@neuctra/authix 1.2.3 → 1.2.4

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.
@@ -177,7 +177,7 @@ const Hr = (t) => {
177
177
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
178
178
  typeof setImmediate == "function",
179
179
  te(xe.postMessage)
180
- ), Jr = typeof queueMicrotask < "u" ? queueMicrotask.bind(xe) : typeof process < "u" && process.nextTick || Lt, Kr = (t) => t != null && te(t[Fe]), f = {
180
+ ), Jr = typeof queueMicrotask < "u" ? queueMicrotask.bind(xe) : typeof process < "u" && process.nextTick || Lt, Kr = (t) => t != null && te(t[Fe]), x = {
181
181
  isArray: je,
182
182
  isArrayBuffer: Ut,
183
183
  isBuffer: Te,
@@ -240,7 +240,7 @@ const Hr = (t) => {
240
240
  function $(t, e, n, s, i) {
241
241
  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), s && (this.request = s), i && (this.response = i, this.status = i.status ? i.status : null);
242
242
  }
243
- f.inherits($, Error, {
243
+ x.inherits($, Error, {
244
244
  toJSON: function() {
245
245
  return {
246
246
  // Standard
@@ -255,7 +255,7 @@ f.inherits($, Error, {
255
255
  columnNumber: this.columnNumber,
256
256
  stack: this.stack,
257
257
  // Axios
258
- config: f.toJSONObject(this.config),
258
+ config: x.toJSONObject(this.config),
259
259
  code: this.code,
260
260
  status: this.status
261
261
  };
@@ -283,18 +283,18 @@ Object.defineProperties($, Mt);
283
283
  Object.defineProperty(qt, "isAxiosError", { value: !0 });
284
284
  $.from = (t, e, n, s, i, a) => {
285
285
  const o = Object.create(qt);
286
- f.toFlatObject(t, o, function(x) {
287
- return x !== Error.prototype;
288
- }, (p) => p !== "isAxiosError");
286
+ x.toFlatObject(t, o, function(p) {
287
+ return p !== Error.prototype;
288
+ }, (f) => f !== "isAxiosError");
289
289
  const c = t && t.message ? t.message : "Error", d = e == null && t ? t.code : e;
290
290
  return $.call(o, c, d, n, s, i), t && o.cause == null && Object.defineProperty(o, "cause", { value: t, configurable: !0 }), o.name = t && t.name || "Error", a && Object.assign(o, a), o;
291
291
  };
292
292
  const Gr = null;
293
293
  function Xe(t) {
294
- return f.isPlainObject(t) || f.isArray(t);
294
+ return x.isPlainObject(t) || x.isArray(t);
295
295
  }
296
296
  function Wt(t) {
297
- return f.endsWith(t, "[]") ? t.slice(0, -2) : t;
297
+ return x.endsWith(t, "[]") ? t.slice(0, -2) : t;
298
298
  }
299
299
  function pt(t, e, n) {
300
300
  return t ? t.concat(e).map(function(i, a) {
@@ -302,71 +302,71 @@ function pt(t, e, n) {
302
302
  }).join(n ? "." : "") : e;
303
303
  }
304
304
  function Xr(t) {
305
- return f.isArray(t) && !t.some(Xe);
305
+ return x.isArray(t) && !t.some(Xe);
306
306
  }
307
- const Zr = f.toFlatObject(f, {}, null, function(e) {
307
+ const Zr = x.toFlatObject(x, {}, null, function(e) {
308
308
  return /^is[A-Z]/.test(e);
309
309
  });
310
310
  function Me(t, e, n) {
311
- if (!f.isObject(t))
311
+ if (!x.isObject(t))
312
312
  throw new TypeError("target must be an object");
313
- e = e || new FormData(), n = f.toFlatObject(n, {
313
+ e = e || new FormData(), n = x.toFlatObject(n, {
314
314
  metaTokens: !0,
315
315
  dots: !1,
316
316
  indexes: !1
317
317
  }, !1, function(w, h) {
318
- return !f.isUndefined(h[w]);
318
+ return !x.isUndefined(h[w]);
319
319
  });
320
- const s = n.metaTokens, i = n.visitor || x, a = n.dots, o = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(e);
321
- if (!f.isFunction(i))
320
+ const s = n.metaTokens, i = n.visitor || p, a = n.dots, o = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && x.isSpecCompliantForm(e);
321
+ if (!x.isFunction(i))
322
322
  throw new TypeError("visitor must be a function");
323
- function p(u) {
323
+ function f(u) {
324
324
  if (u === null) return "";
325
- if (f.isDate(u))
325
+ if (x.isDate(u))
326
326
  return u.toISOString();
327
- if (f.isBoolean(u))
327
+ if (x.isBoolean(u))
328
328
  return u.toString();
329
- if (!d && f.isBlob(u))
329
+ if (!d && x.isBlob(u))
330
330
  throw new $("Blob is not supported. Use a Buffer instead.");
331
- return f.isArrayBuffer(u) || f.isTypedArray(u) ? d && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
331
+ return x.isArrayBuffer(u) || x.isTypedArray(u) ? d && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
332
332
  }
333
- function x(u, w, h) {
333
+ function p(u, w, h) {
334
334
  let O = u;
335
335
  if (u && !h && typeof u == "object") {
336
- if (f.endsWith(w, "{}"))
336
+ if (x.endsWith(w, "{}"))
337
337
  w = s ? w : w.slice(0, -2), u = JSON.stringify(u);
338
- else if (f.isArray(u) && Xr(u) || (f.isFileList(u) || f.endsWith(w, "[]")) && (O = f.toArray(u)))
338
+ else if (x.isArray(u) && Xr(u) || (x.isFileList(u) || x.endsWith(w, "[]")) && (O = x.toArray(u)))
339
339
  return w = Wt(w), O.forEach(function(g, A) {
340
- !(f.isUndefined(g) || g === null) && e.append(
340
+ !(x.isUndefined(g) || g === null) && e.append(
341
341
  // eslint-disable-next-line no-nested-ternary
342
342
  o === !0 ? pt([w], A, a) : o === null ? w : w + "[]",
343
- p(g)
343
+ f(g)
344
344
  );
345
345
  }), !1;
346
346
  }
347
- return Xe(u) ? !0 : (e.append(pt(h, w, a), p(u)), !1);
347
+ return Xe(u) ? !0 : (e.append(pt(h, w, a), f(u)), !1);
348
348
  }
349
349
  const y = [], k = Object.assign(Zr, {
350
- defaultVisitor: x,
351
- convertValue: p,
350
+ defaultVisitor: p,
351
+ convertValue: f,
352
352
  isVisitable: Xe
353
353
  });
354
354
  function E(u, w) {
355
- if (!f.isUndefined(u)) {
355
+ if (!x.isUndefined(u)) {
356
356
  if (y.indexOf(u) !== -1)
357
357
  throw Error("Circular reference detected in " + w.join("."));
358
- y.push(u), f.forEach(u, function(O, C) {
359
- (!(f.isUndefined(O) || O === null) && i.call(
358
+ y.push(u), x.forEach(u, function(O, C) {
359
+ (!(x.isUndefined(O) || O === null) && i.call(
360
360
  e,
361
361
  O,
362
- f.isString(C) ? C.trim() : C,
362
+ x.isString(C) ? C.trim() : C,
363
363
  w,
364
364
  k
365
365
  )) === !0 && E(O, w ? w.concat(C) : [C]);
366
366
  }), y.pop();
367
367
  }
368
368
  }
369
- if (!f.isObject(t))
369
+ if (!x.isObject(t))
370
370
  throw new TypeError("data must be an object");
371
371
  return E(t), e;
372
372
  }
@@ -406,12 +406,12 @@ function Ht(t, e, n) {
406
406
  if (!e)
407
407
  return t;
408
408
  const s = n && n.encode || Qr;
409
- f.isFunction(n) && (n = {
409
+ x.isFunction(n) && (n = {
410
410
  serialize: n
411
411
  });
412
412
  const i = n && n.serialize;
413
413
  let a;
414
- if (i ? a = i(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new nt(e, n).toString(s), a) {
414
+ if (i ? a = i(e, n) : a = x.isURLSearchParams(e) ? e.toString() : new nt(e, n).toString(s), a) {
415
415
  const o = t.indexOf("#");
416
416
  o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
417
417
  }
@@ -466,7 +466,7 @@ class xt {
466
466
  * @returns {void}
467
467
  */
468
468
  forEach(e) {
469
- f.forEach(this.handlers, function(s) {
469
+ x.forEach(this.handlers, function(s) {
470
470
  s !== null && e(s);
471
471
  });
472
472
  }
@@ -498,13 +498,13 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", on
498
498
  function cn(t, e) {
499
499
  return Me(t, new Q.classes.URLSearchParams(), {
500
500
  visitor: function(n, s, i, a) {
501
- return Q.isNode && f.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
501
+ return Q.isNode && x.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
502
502
  },
503
503
  ...e
504
504
  });
505
505
  }
506
506
  function dn(t) {
507
- return f.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
507
+ return x.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
508
508
  }
509
509
  function un(t) {
510
510
  const e = {}, n = Object.keys(t);
@@ -520,20 +520,20 @@ function Yt(t) {
520
520
  let o = n[a++];
521
521
  if (o === "__proto__") return !0;
522
522
  const c = Number.isFinite(+o), d = a >= n.length;
523
- return o = !o && f.isArray(i) ? i.length : o, d ? (f.hasOwnProp(i, o) ? i[o] = [i[o], s] : i[o] = s, !c) : ((!i[o] || !f.isObject(i[o])) && (i[o] = []), e(n, s, i[o], a) && f.isArray(i[o]) && (i[o] = un(i[o])), !c);
523
+ return o = !o && x.isArray(i) ? i.length : o, d ? (x.hasOwnProp(i, o) ? i[o] = [i[o], s] : i[o] = s, !c) : ((!i[o] || !x.isObject(i[o])) && (i[o] = []), e(n, s, i[o], a) && x.isArray(i[o]) && (i[o] = un(i[o])), !c);
524
524
  }
525
- if (f.isFormData(t) && f.isFunction(t.entries)) {
525
+ if (x.isFormData(t) && x.isFunction(t.entries)) {
526
526
  const n = {};
527
- return f.forEachEntry(t, (s, i) => {
527
+ return x.forEachEntry(t, (s, i) => {
528
528
  e(dn(s), i, n, 0);
529
529
  }), n;
530
530
  }
531
531
  return null;
532
532
  }
533
533
  function pn(t, e, n) {
534
- if (f.isString(t))
534
+ if (x.isString(t))
535
535
  try {
536
- return (e || JSON.parse)(t), f.trim(t);
536
+ return (e || JSON.parse)(t), x.trim(t);
537
537
  } catch (s) {
538
538
  if (s.name !== "SyntaxError")
539
539
  throw s;
@@ -544,20 +544,20 @@ const Oe = {
544
544
  transitional: Vt,
545
545
  adapter: ["xhr", "http", "fetch"],
546
546
  transformRequest: [function(e, n) {
547
- const s = n.getContentType() || "", i = s.indexOf("application/json") > -1, a = f.isObject(e);
548
- if (a && f.isHTMLForm(e) && (e = new FormData(e)), f.isFormData(e))
547
+ const s = n.getContentType() || "", i = s.indexOf("application/json") > -1, a = x.isObject(e);
548
+ if (a && x.isHTMLForm(e) && (e = new FormData(e)), x.isFormData(e))
549
549
  return i ? JSON.stringify(Yt(e)) : e;
550
- if (f.isArrayBuffer(e) || f.isBuffer(e) || f.isStream(e) || f.isFile(e) || f.isBlob(e) || f.isReadableStream(e))
550
+ if (x.isArrayBuffer(e) || x.isBuffer(e) || x.isStream(e) || x.isFile(e) || x.isBlob(e) || x.isReadableStream(e))
551
551
  return e;
552
- if (f.isArrayBufferView(e))
552
+ if (x.isArrayBufferView(e))
553
553
  return e.buffer;
554
- if (f.isURLSearchParams(e))
554
+ if (x.isURLSearchParams(e))
555
555
  return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
556
556
  let c;
557
557
  if (a) {
558
558
  if (s.indexOf("application/x-www-form-urlencoded") > -1)
559
559
  return cn(e, this.formSerializer).toString();
560
- if ((c = f.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
560
+ if ((c = x.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
561
561
  const d = this.env && this.env.FormData;
562
562
  return Me(
563
563
  c ? { "files[]": e } : e,
@@ -570,9 +570,9 @@ const Oe = {
570
570
  }],
571
571
  transformResponse: [function(e) {
572
572
  const n = this.transitional || Oe.transitional, s = n && n.forcedJSONParsing, i = this.responseType === "json";
573
- if (f.isResponse(e) || f.isReadableStream(e))
573
+ if (x.isResponse(e) || x.isReadableStream(e))
574
574
  return e;
575
- if (e && f.isString(e) && (s && !this.responseType || i)) {
575
+ if (e && x.isString(e) && (s && !this.responseType || i)) {
576
576
  const o = !(n && n.silentJSONParsing) && i;
577
577
  try {
578
578
  return JSON.parse(e, this.parseReviver);
@@ -606,10 +606,10 @@ const Oe = {
606
606
  }
607
607
  }
608
608
  };
609
- f.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
609
+ x.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
610
610
  Oe.headers[t] = {};
611
611
  });
612
- const fn = f.toObjectSet([
612
+ const fn = x.toObjectSet([
613
613
  "age",
614
614
  "authorization",
615
615
  "content-length",
@@ -639,7 +639,7 @@ function Se(t) {
639
639
  return t && String(t).trim().toLowerCase();
640
640
  }
641
641
  function Ue(t) {
642
- return t === !1 || t == null ? t : f.isArray(t) ? t.map(Ue) : String(t);
642
+ return t === !1 || t == null ? t : x.isArray(t) ? t.map(Ue) : String(t);
643
643
  }
644
644
  function hn(t) {
645
645
  const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -650,12 +650,12 @@ function hn(t) {
650
650
  }
651
651
  const mn = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
652
652
  function He(t, e, n, s, i) {
653
- if (f.isFunction(s))
653
+ if (x.isFunction(s))
654
654
  return s.call(this, e, n);
655
- if (i && (e = n), !!f.isString(e)) {
656
- if (f.isString(s))
655
+ if (i && (e = n), !!x.isString(e)) {
656
+ if (x.isString(s))
657
657
  return e.indexOf(s) !== -1;
658
- if (f.isRegExp(s))
658
+ if (x.isRegExp(s))
659
659
  return s.test(e);
660
660
  }
661
661
  }
@@ -663,7 +663,7 @@ function gn(t) {
663
663
  return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, s) => n.toUpperCase() + s);
664
664
  }
665
665
  function yn(t, e) {
666
- const n = f.toCamelCase(" " + e);
666
+ const n = x.toCamelCase(" " + e);
667
667
  ["get", "set", "has"].forEach((s) => {
668
668
  Object.defineProperty(t, s + n, {
669
669
  value: function(i, a, o) {
@@ -679,24 +679,24 @@ let re = class {
679
679
  }
680
680
  set(e, n, s) {
681
681
  const i = this;
682
- function a(c, d, p) {
683
- const x = Se(d);
684
- if (!x)
682
+ function a(c, d, f) {
683
+ const p = Se(d);
684
+ if (!p)
685
685
  throw new Error("header name must be a non-empty string");
686
- const y = f.findKey(i, x);
687
- (!y || i[y] === void 0 || p === !0 || p === void 0 && i[y] !== !1) && (i[y || d] = Ue(c));
686
+ const y = x.findKey(i, p);
687
+ (!y || i[y] === void 0 || f === !0 || f === void 0 && i[y] !== !1) && (i[y || d] = Ue(c));
688
688
  }
689
- const o = (c, d) => f.forEach(c, (p, x) => a(p, x, d));
690
- if (f.isPlainObject(e) || e instanceof this.constructor)
689
+ const o = (c, d) => x.forEach(c, (f, p) => a(f, p, d));
690
+ if (x.isPlainObject(e) || e instanceof this.constructor)
691
691
  o(e, n);
692
- else if (f.isString(e) && (e = e.trim()) && !mn(e))
692
+ else if (x.isString(e) && (e = e.trim()) && !mn(e))
693
693
  o(xn(e), n);
694
- else if (f.isObject(e) && f.isIterable(e)) {
695
- let c = {}, d, p;
696
- for (const x of e) {
697
- if (!f.isArray(x))
694
+ else if (x.isObject(e) && x.isIterable(e)) {
695
+ let c = {}, d, f;
696
+ for (const p of e) {
697
+ if (!x.isArray(p))
698
698
  throw TypeError("Object iterator must return a key-value pair");
699
- c[p = x[0]] = (d = c[p]) ? f.isArray(d) ? [...d, x[1]] : [d, x[1]] : x[1];
699
+ c[f = p[0]] = (d = c[f]) ? x.isArray(d) ? [...d, p[1]] : [d, p[1]] : p[1];
700
700
  }
701
701
  o(c, n);
702
702
  } else
@@ -705,16 +705,16 @@ let re = class {
705
705
  }
706
706
  get(e, n) {
707
707
  if (e = Se(e), e) {
708
- const s = f.findKey(this, e);
708
+ const s = x.findKey(this, e);
709
709
  if (s) {
710
710
  const i = this[s];
711
711
  if (!n)
712
712
  return i;
713
713
  if (n === !0)
714
714
  return hn(i);
715
- if (f.isFunction(n))
715
+ if (x.isFunction(n))
716
716
  return n.call(this, i, s);
717
- if (f.isRegExp(n))
717
+ if (x.isRegExp(n))
718
718
  return n.exec(i);
719
719
  throw new TypeError("parser must be boolean|regexp|function");
720
720
  }
@@ -722,7 +722,7 @@ let re = class {
722
722
  }
723
723
  has(e, n) {
724
724
  if (e = Se(e), e) {
725
- const s = f.findKey(this, e);
725
+ const s = x.findKey(this, e);
726
726
  return !!(s && this[s] !== void 0 && (!n || He(this, this[s], s, n)));
727
727
  }
728
728
  return !1;
@@ -732,11 +732,11 @@ let re = class {
732
732
  let i = !1;
733
733
  function a(o) {
734
734
  if (o = Se(o), o) {
735
- const c = f.findKey(s, o);
735
+ const c = x.findKey(s, o);
736
736
  c && (!n || He(s, s[c], c, n)) && (delete s[c], i = !0);
737
737
  }
738
738
  }
739
- return f.isArray(e) ? e.forEach(a) : a(e), i;
739
+ return x.isArray(e) ? e.forEach(a) : a(e), i;
740
740
  }
741
741
  clear(e) {
742
742
  const n = Object.keys(this);
@@ -749,8 +749,8 @@ let re = class {
749
749
  }
750
750
  normalize(e) {
751
751
  const n = this, s = {};
752
- return f.forEach(this, (i, a) => {
753
- const o = f.findKey(s, a);
752
+ return x.forEach(this, (i, a) => {
753
+ const o = x.findKey(s, a);
754
754
  if (o) {
755
755
  n[o] = Ue(i), delete n[a];
756
756
  return;
@@ -764,8 +764,8 @@ let re = class {
764
764
  }
765
765
  toJSON(e) {
766
766
  const n = /* @__PURE__ */ Object.create(null);
767
- return f.forEach(this, (s, i) => {
768
- s != null && s !== !1 && (n[i] = e && f.isArray(s) ? s.join(", ") : s);
767
+ return x.forEach(this, (s, i) => {
768
+ s != null && s !== !1 && (n[i] = e && x.isArray(s) ? s.join(", ") : s);
769
769
  }), n;
770
770
  }
771
771
  [Symbol.iterator]() {
@@ -796,11 +796,11 @@ let re = class {
796
796
  const c = Se(o);
797
797
  s[c] || (yn(i, o), s[c] = !0);
798
798
  }
799
- return f.isArray(e) ? e.forEach(a) : a(e), this;
799
+ return x.isArray(e) ? e.forEach(a) : a(e), this;
800
800
  }
801
801
  };
802
802
  re.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
803
- f.reduceDescriptors(re.prototype, ({ value: t }, e) => {
803
+ x.reduceDescriptors(re.prototype, ({ value: t }, e) => {
804
804
  let n = e[0].toUpperCase() + e.slice(1);
805
805
  return {
806
806
  get: () => t,
@@ -809,11 +809,11 @@ f.reduceDescriptors(re.prototype, ({ value: t }, e) => {
809
809
  }
810
810
  };
811
811
  });
812
- f.freezeMethods(re);
812
+ x.freezeMethods(re);
813
813
  function Ve(t, e) {
814
814
  const n = this || Oe, s = e || n, i = re.from(s.headers);
815
815
  let a = s.data;
816
- return f.forEach(t, function(c) {
816
+ return x.forEach(t, function(c) {
817
817
  a = c.call(n, a, i.normalize(), e ? e.status : void 0);
818
818
  }), i.normalize(), a;
819
819
  }
@@ -823,7 +823,7 @@ function Jt(t) {
823
823
  function ve(t, e, n) {
824
824
  $.call(this, t ?? "canceled", $.ERR_CANCELED, e, n), this.name = "CanceledError";
825
825
  }
826
- f.inherits(ve, $, {
826
+ x.inherits(ve, $, {
827
827
  __CANCEL__: !0
828
828
  });
829
829
  function Kt(t, e, n) {
@@ -845,25 +845,25 @@ function wn(t, e) {
845
845
  const n = new Array(t), s = new Array(t);
846
846
  let i = 0, a = 0, o;
847
847
  return e = e !== void 0 ? e : 1e3, function(d) {
848
- const p = Date.now(), x = s[a];
849
- o || (o = p), n[i] = d, s[i] = p;
848
+ const f = Date.now(), p = s[a];
849
+ o || (o = f), n[i] = d, s[i] = f;
850
850
  let y = a, k = 0;
851
851
  for (; y !== i; )
852
852
  k += n[y++], y = y % t;
853
- if (i = (i + 1) % t, i === a && (a = (a + 1) % t), p - o < e)
853
+ if (i = (i + 1) % t, i === a && (a = (a + 1) % t), f - o < e)
854
854
  return;
855
- const E = x && p - x;
855
+ const E = p && f - p;
856
856
  return E ? Math.round(k * 1e3 / E) : void 0;
857
857
  };
858
858
  }
859
859
  function jn(t, e) {
860
860
  let n = 0, s = 1e3 / e, i, a;
861
- const o = (p, x = Date.now()) => {
862
- n = x, i = null, a && (clearTimeout(a), a = null), t(...p);
861
+ const o = (f, p = Date.now()) => {
862
+ n = p, i = null, a && (clearTimeout(a), a = null), t(...f);
863
863
  };
864
- return [(...p) => {
865
- const x = Date.now(), y = x - n;
866
- y >= s ? o(p, x) : (i = p, a || (a = setTimeout(() => {
864
+ return [(...f) => {
865
+ const p = Date.now(), y = p - n;
866
+ y >= s ? o(f, p) : (i = f, a || (a = setTimeout(() => {
867
867
  a = null, o(i);
868
868
  }, s - y)));
869
869
  }, () => i && o(i)];
@@ -872,15 +872,15 @@ const Ne = (t, e, n = 3) => {
872
872
  let s = 0;
873
873
  const i = wn(50, 250);
874
874
  return jn((a) => {
875
- const o = a.loaded, c = a.lengthComputable ? a.total : void 0, d = o - s, p = i(d), x = o <= c;
875
+ const o = a.loaded, c = a.lengthComputable ? a.total : void 0, d = o - s, f = i(d), p = o <= c;
876
876
  s = o;
877
877
  const y = {
878
878
  loaded: o,
879
879
  total: c,
880
880
  progress: c ? o / c : void 0,
881
881
  bytes: d,
882
- rate: p || void 0,
883
- estimated: p && c && x ? (c - o) / p : void 0,
882
+ rate: f || void 0,
883
+ estimated: f && c && p ? (c - o) / f : void 0,
884
884
  event: a,
885
885
  lengthComputable: c != null,
886
886
  [e ? "download" : "upload"]: !0
@@ -894,7 +894,7 @@ const Ne = (t, e, n = 3) => {
894
894
  total: t,
895
895
  loaded: s
896
896
  }), e[1]];
897
- }, gt = (t) => (...e) => f.asap(() => t(...e)), vn = Q.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, Q.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
897
+ }, gt = (t) => (...e) => x.asap(() => t(...e)), vn = Q.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, Q.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
898
898
  new URL(Q.origin),
899
899
  Q.navigator && /(msie|trident)/i.test(Q.navigator.userAgent)
900
900
  ) : () => !0, Sn = Q.hasStandardBrowserEnv ? (
@@ -902,7 +902,7 @@ const Ne = (t, e, n = 3) => {
902
902
  {
903
903
  write(t, e, n, s, i, a) {
904
904
  const o = [t + "=" + encodeURIComponent(e)];
905
- f.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), f.isString(s) && o.push("path=" + s), f.isString(i) && o.push("domain=" + i), a === !0 && o.push("secure"), document.cookie = o.join("; ");
905
+ x.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), x.isString(s) && o.push("path=" + s), x.isString(i) && o.push("domain=" + i), a === !0 && o.push("secure"), document.cookie = o.join("; ");
906
906
  },
907
907
  read(t) {
908
908
  const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
@@ -938,30 +938,30 @@ const yt = (t) => t instanceof re ? { ...t } : t;
938
938
  function me(t, e) {
939
939
  e = e || {};
940
940
  const n = {};
941
- function s(p, x, y, k) {
942
- return f.isPlainObject(p) && f.isPlainObject(x) ? f.merge.call({ caseless: k }, p, x) : f.isPlainObject(x) ? f.merge({}, x) : f.isArray(x) ? x.slice() : x;
941
+ function s(f, p, y, k) {
942
+ return x.isPlainObject(f) && x.isPlainObject(p) ? x.merge.call({ caseless: k }, f, p) : x.isPlainObject(p) ? x.merge({}, p) : x.isArray(p) ? p.slice() : p;
943
943
  }
944
- function i(p, x, y, k) {
945
- if (f.isUndefined(x)) {
946
- if (!f.isUndefined(p))
947
- return s(void 0, p, y, k);
948
- } else return s(p, x, y, k);
944
+ function i(f, p, y, k) {
945
+ if (x.isUndefined(p)) {
946
+ if (!x.isUndefined(f))
947
+ return s(void 0, f, y, k);
948
+ } else return s(f, p, y, k);
949
949
  }
950
- function a(p, x) {
951
- if (!f.isUndefined(x))
952
- return s(void 0, x);
950
+ function a(f, p) {
951
+ if (!x.isUndefined(p))
952
+ return s(void 0, p);
953
953
  }
954
- function o(p, x) {
955
- if (f.isUndefined(x)) {
956
- if (!f.isUndefined(p))
957
- return s(void 0, p);
958
- } else return s(void 0, x);
954
+ function o(f, p) {
955
+ if (x.isUndefined(p)) {
956
+ if (!x.isUndefined(f))
957
+ return s(void 0, f);
958
+ } else return s(void 0, p);
959
959
  }
960
- function c(p, x, y) {
960
+ function c(f, p, y) {
961
961
  if (y in e)
962
- return s(p, x);
962
+ return s(f, p);
963
963
  if (y in t)
964
- return s(void 0, p);
964
+ return s(void 0, f);
965
965
  }
966
966
  const d = {
967
967
  url: a,
@@ -992,11 +992,11 @@ function me(t, e) {
992
992
  socketPath: o,
993
993
  responseEncoding: o,
994
994
  validateStatus: c,
995
- headers: (p, x, y) => i(yt(p), yt(x), y, !0)
995
+ headers: (f, p, y) => i(yt(f), yt(p), y, !0)
996
996
  };
997
- return f.forEach(Object.keys({ ...t, ...e }), function(x) {
998
- const y = d[x] || i, k = y(t[x], e[x], x);
999
- f.isUndefined(k) && y !== c || (n[x] = k);
997
+ return x.forEach(Object.keys({ ...t, ...e }), function(p) {
998
+ const y = d[p] || i, k = y(t[p], e[p], p);
999
+ x.isUndefined(k) && y !== c || (n[p] = k);
1000
1000
  }), n;
1001
1001
  }
1002
1002
  const Xt = (t) => {
@@ -1005,17 +1005,17 @@ const Xt = (t) => {
1005
1005
  if (e.headers = o = re.from(o), e.url = Ht(Gt(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), c && o.set(
1006
1006
  "Authorization",
1007
1007
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1008
- ), f.isFormData(n)) {
1008
+ ), x.isFormData(n)) {
1009
1009
  if (Q.hasStandardBrowserEnv || Q.hasStandardBrowserWebWorkerEnv)
1010
1010
  o.setContentType(void 0);
1011
- else if (f.isFunction(n.getHeaders)) {
1012
- const d = n.getHeaders(), p = ["content-type", "content-length"];
1013
- Object.entries(d).forEach(([x, y]) => {
1014
- p.includes(x.toLowerCase()) && o.set(x, y);
1011
+ else if (x.isFunction(n.getHeaders)) {
1012
+ const d = n.getHeaders(), f = ["content-type", "content-length"];
1013
+ Object.entries(d).forEach(([p, y]) => {
1014
+ f.includes(p.toLowerCase()) && o.set(p, y);
1015
1015
  });
1016
1016
  }
1017
1017
  }
1018
- if (Q.hasStandardBrowserEnv && (s && f.isFunction(s) && (s = s(e)), s || s !== !1 && vn(e.url))) {
1018
+ if (Q.hasStandardBrowserEnv && (s && x.isFunction(s) && (s = s(e)), s || s !== !1 && vn(e.url))) {
1019
1019
  const d = i && a && Sn.read(a);
1020
1020
  d && o.set(i, d);
1021
1021
  }
@@ -1025,9 +1025,9 @@ const Xt = (t) => {
1025
1025
  const i = Xt(t);
1026
1026
  let a = i.data;
1027
1027
  const o = re.from(i.headers).normalize();
1028
- let { responseType: c, onUploadProgress: d, onDownloadProgress: p } = i, x, y, k, E, u;
1028
+ let { responseType: c, onUploadProgress: d, onDownloadProgress: f } = i, p, y, k, E, u;
1029
1029
  function w() {
1030
- E && E(), u && u(), i.cancelToken && i.cancelToken.unsubscribe(x), i.signal && i.signal.removeEventListener("abort", x);
1030
+ E && E(), u && u(), i.cancelToken && i.cancelToken.unsubscribe(p), i.signal && i.signal.removeEventListener("abort", p);
1031
1031
  }
1032
1032
  let h = new XMLHttpRequest();
1033
1033
  h.open(i.method.toUpperCase(), i.url, !0), h.timeout = i.timeout;
@@ -1066,11 +1066,11 @@ const Xt = (t) => {
1066
1066
  t,
1067
1067
  h
1068
1068
  )), h = null;
1069
- }, a === void 0 && o.setContentType(null), "setRequestHeader" in h && f.forEach(o.toJSON(), function(A, N) {
1069
+ }, a === void 0 && o.setContentType(null), "setRequestHeader" in h && x.forEach(o.toJSON(), function(A, N) {
1070
1070
  h.setRequestHeader(N, A);
1071
- }), f.isUndefined(i.withCredentials) || (h.withCredentials = !!i.withCredentials), c && c !== "json" && (h.responseType = i.responseType), p && ([k, u] = Ne(p, !0), h.addEventListener("progress", k)), d && h.upload && ([y, E] = Ne(d), h.upload.addEventListener("progress", y), h.upload.addEventListener("loadend", E)), (i.cancelToken || i.signal) && (x = (g) => {
1071
+ }), x.isUndefined(i.withCredentials) || (h.withCredentials = !!i.withCredentials), c && c !== "json" && (h.responseType = i.responseType), f && ([k, u] = Ne(f, !0), h.addEventListener("progress", k)), d && h.upload && ([y, E] = Ne(d), h.upload.addEventListener("progress", y), h.upload.addEventListener("loadend", E)), (i.cancelToken || i.signal) && (p = (g) => {
1072
1072
  h && (s(!g || g.type ? new ve(null, t, h) : g), h.abort(), h = null);
1073
- }, i.cancelToken && i.cancelToken.subscribe(x), i.signal && (i.signal.aborted ? x() : i.signal.addEventListener("abort", x)));
1073
+ }, i.cancelToken && i.cancelToken.subscribe(p), i.signal && (i.signal.aborted ? p() : i.signal.addEventListener("abort", p)));
1074
1074
  const C = bn(i.url);
1075
1075
  if (C && Q.protocols.indexOf(C) === -1) {
1076
1076
  s(new $("Unsupported protocol " + C + ":", $.ERR_BAD_REQUEST, t));
@@ -1082,24 +1082,24 @@ const Xt = (t) => {
1082
1082
  const { length: n } = t = t ? t.filter(Boolean) : [];
1083
1083
  if (e || n) {
1084
1084
  let s = new AbortController(), i;
1085
- const a = function(p) {
1085
+ const a = function(f) {
1086
1086
  if (!i) {
1087
1087
  i = !0, c();
1088
- const x = p instanceof Error ? p : this.reason;
1089
- s.abort(x instanceof $ ? x : new ve(x instanceof Error ? x.message : x));
1088
+ const p = f instanceof Error ? f : this.reason;
1089
+ s.abort(p instanceof $ ? p : new ve(p instanceof Error ? p.message : p));
1090
1090
  }
1091
1091
  };
1092
1092
  let o = e && setTimeout(() => {
1093
1093
  o = null, a(new $(`timeout ${e} of ms exceeded`, $.ETIMEDOUT));
1094
1094
  }, e);
1095
1095
  const c = () => {
1096
- t && (o && clearTimeout(o), o = null, t.forEach((p) => {
1097
- p.unsubscribe ? p.unsubscribe(a) : p.removeEventListener("abort", a);
1096
+ t && (o && clearTimeout(o), o = null, t.forEach((f) => {
1097
+ f.unsubscribe ? f.unsubscribe(a) : f.removeEventListener("abort", a);
1098
1098
  }), t = null);
1099
1099
  };
1100
- t.forEach((p) => p.addEventListener("abort", a));
1100
+ t.forEach((f) => f.addEventListener("abort", a));
1101
1101
  const { signal: d } = s;
1102
- return d.unsubscribe = () => f.asap(c), d;
1102
+ return d.unsubscribe = () => x.asap(c), d;
1103
1103
  }
1104
1104
  }, Pn = function* (t, e) {
1105
1105
  let n = t.byteLength;
@@ -1137,19 +1137,19 @@ const Xt = (t) => {
1137
1137
  return new ReadableStream({
1138
1138
  async pull(d) {
1139
1139
  try {
1140
- const { done: p, value: x } = await i.next();
1141
- if (p) {
1140
+ const { done: f, value: p } = await i.next();
1141
+ if (f) {
1142
1142
  c(), d.close();
1143
1143
  return;
1144
1144
  }
1145
- let y = x.byteLength;
1145
+ let y = p.byteLength;
1146
1146
  if (n) {
1147
1147
  let k = a += y;
1148
1148
  n(k);
1149
1149
  }
1150
- d.enqueue(new Uint8Array(x));
1151
- } catch (p) {
1152
- throw c(p), p;
1150
+ d.enqueue(new Uint8Array(p));
1151
+ } catch (f) {
1152
+ throw c(f), f;
1153
1153
  }
1154
1154
  },
1155
1155
  cancel(d) {
@@ -1158,26 +1158,26 @@ const Xt = (t) => {
1158
1158
  }, {
1159
1159
  highWaterMark: 2
1160
1160
  });
1161
- }, wt = 64 * 1024, { isFunction: ze } = f, zn = (({ Request: t, Response: e }) => ({
1161
+ }, wt = 64 * 1024, { isFunction: ze } = x, zn = (({ Request: t, Response: e }) => ({
1162
1162
  Request: t,
1163
1163
  Response: e
1164
- }))(f.global), {
1164
+ }))(x.global), {
1165
1165
  ReadableStream: jt,
1166
1166
  TextEncoder: vt
1167
- } = f.global, St = (t, ...e) => {
1167
+ } = x.global, St = (t, ...e) => {
1168
1168
  try {
1169
1169
  return !!t(...e);
1170
1170
  } catch {
1171
1171
  return !1;
1172
1172
  }
1173
1173
  }, An = (t) => {
1174
- t = f.merge.call({
1174
+ t = x.merge.call({
1175
1175
  skipUndefined: !0
1176
1176
  }, zn, t);
1177
1177
  const { fetch: e, Request: n, Response: s } = t, i = e ? ze(e) : typeof fetch == "function", a = ze(n), o = ze(s);
1178
1178
  if (!i)
1179
1179
  return !1;
1180
- const c = i && ze(jt), d = i && (typeof vt == "function" ? /* @__PURE__ */ ((u) => (w) => u.encode(w))(new vt()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), p = a && c && St(() => {
1180
+ const c = i && ze(jt), d = i && (typeof vt == "function" ? /* @__PURE__ */ ((u) => (w) => u.encode(w))(new vt()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f = a && c && St(() => {
1181
1181
  let u = !1;
1182
1182
  const w = new n(Q.origin, {
1183
1183
  body: new jt(),
@@ -1187,8 +1187,8 @@ const Xt = (t) => {
1187
1187
  }
1188
1188
  }).headers.has("Content-Type");
1189
1189
  return u && !w;
1190
- }), x = o && c && St(() => f.isReadableStream(new s("").body)), y = {
1191
- stream: x && ((u) => u.body)
1190
+ }), p = o && c && St(() => x.isReadableStream(new s("").body)), y = {
1191
+ stream: p && ((u) => u.body)
1192
1192
  };
1193
1193
  i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
1194
1194
  !y[u] && (y[u] = (w, h) => {
@@ -1201,19 +1201,19 @@ const Xt = (t) => {
1201
1201
  const k = async (u) => {
1202
1202
  if (u == null)
1203
1203
  return 0;
1204
- if (f.isBlob(u))
1204
+ if (x.isBlob(u))
1205
1205
  return u.size;
1206
- if (f.isSpecCompliantForm(u))
1206
+ if (x.isSpecCompliantForm(u))
1207
1207
  return (await new n(Q.origin, {
1208
1208
  method: "POST",
1209
1209
  body: u
1210
1210
  }).arrayBuffer()).byteLength;
1211
- if (f.isArrayBufferView(u) || f.isArrayBuffer(u))
1211
+ if (x.isArrayBufferView(u) || x.isArrayBuffer(u))
1212
1212
  return u.byteLength;
1213
- if (f.isURLSearchParams(u) && (u = u + ""), f.isString(u))
1213
+ if (x.isURLSearchParams(u) && (u = u + ""), x.isString(u))
1214
1214
  return (await d(u)).byteLength;
1215
1215
  }, E = async (u, w) => {
1216
- const h = f.toFiniteNumber(u.getContentLength());
1216
+ const h = x.toFiniteNumber(u.getContentLength());
1217
1217
  return h ?? k(w);
1218
1218
  };
1219
1219
  return async (u) => {
@@ -1238,13 +1238,13 @@ const Xt = (t) => {
1238
1238
  });
1239
1239
  let z;
1240
1240
  try {
1241
- if (b && p && h !== "get" && h !== "head" && (z = await E(q, O)) !== 0) {
1241
+ if (b && f && h !== "get" && h !== "head" && (z = await E(q, O)) !== 0) {
1242
1242
  let l = new n(w, {
1243
1243
  method: "POST",
1244
1244
  body: O,
1245
1245
  duplex: "half"
1246
1246
  }), m;
1247
- if (f.isFormData(O) && (m = l.headers.get("content-type")) && q.setContentType(m), l.body) {
1247
+ if (x.isFormData(O) && (m = l.headers.get("content-type")) && q.setContentType(m), l.body) {
1248
1248
  const [S, D] = mt(
1249
1249
  z,
1250
1250
  Ne(gt(b))
@@ -1252,7 +1252,7 @@ const Xt = (t) => {
1252
1252
  O = bt(l.body, wt, S, D);
1253
1253
  }
1254
1254
  }
1255
- f.isString(I) || (I = I ? "include" : "omit");
1255
+ x.isString(I) || (I = I ? "include" : "omit");
1256
1256
  const M = a && "credentials" in n.prototype, K = {
1257
1257
  ...X,
1258
1258
  signal: T,
@@ -1264,13 +1264,13 @@ const Xt = (t) => {
1264
1264
  };
1265
1265
  G = a && new n(w, K);
1266
1266
  let H = await (a ? W(G, X) : W(w, K));
1267
- const F = x && (j === "stream" || j === "response");
1268
- if (x && (N || F && R)) {
1267
+ const F = p && (j === "stream" || j === "response");
1268
+ if (p && (N || F && R)) {
1269
1269
  const l = {};
1270
1270
  ["status", "statusText", "headers"].forEach((ne) => {
1271
1271
  l[ne] = H[ne];
1272
1272
  });
1273
- const m = f.toFiniteNumber(H.headers.get("content-length")), [S, D] = N && mt(
1273
+ const m = x.toFiniteNumber(H.headers.get("content-length")), [S, D] = N && mt(
1274
1274
  m,
1275
1275
  Ne(gt(N), !0)
1276
1276
  ) || [];
@@ -1282,7 +1282,7 @@ const Xt = (t) => {
1282
1282
  );
1283
1283
  }
1284
1284
  j = j || "text";
1285
- let Y = await y[f.findKey(y, j) || "text"](H, u);
1285
+ let Y = await y[x.findKey(y, j) || "text"](H, u);
1286
1286
  return !F && R && R(), await new Promise((l, m) => {
1287
1287
  Kt(l, m, {
1288
1288
  data: Y,
@@ -1309,10 +1309,10 @@ const Xt = (t) => {
1309
1309
  i,
1310
1310
  n
1311
1311
  ];
1312
- let o = a.length, c = o, d, p, x = _n;
1312
+ let o = a.length, c = o, d, f, p = _n;
1313
1313
  for (; c--; )
1314
- d = a[c], p = x.get(d), p === void 0 && x.set(d, p = c ? /* @__PURE__ */ new Map() : An(e)), x = p;
1315
- return p;
1314
+ d = a[c], f = p.get(d), f === void 0 && p.set(d, f = c ? /* @__PURE__ */ new Map() : An(e)), p = f;
1315
+ return f;
1316
1316
  };
1317
1317
  Zt();
1318
1318
  const Qe = {
@@ -1322,7 +1322,7 @@ const Qe = {
1322
1322
  get: Zt
1323
1323
  }
1324
1324
  };
1325
- f.forEach(Qe, (t, e) => {
1325
+ x.forEach(Qe, (t, e) => {
1326
1326
  if (t) {
1327
1327
  try {
1328
1328
  Object.defineProperty(t, "name", { value: e });
@@ -1331,9 +1331,9 @@ f.forEach(Qe, (t, e) => {
1331
1331
  Object.defineProperty(t, "adapterName", { value: e });
1332
1332
  }
1333
1333
  });
1334
- const kt = (t) => `- ${t}`, Un = (t) => f.isFunction(t) || t === null || t === !1, Qt = {
1334
+ const kt = (t) => `- ${t}`, Un = (t) => x.isFunction(t) || t === null || t === !1, Qt = {
1335
1335
  getAdapter: (t, e) => {
1336
- t = f.isArray(t) ? t : [t];
1336
+ t = x.isArray(t) ? t : [t];
1337
1337
  const { length: n } = t;
1338
1338
  let s, i;
1339
1339
  const a = {};
@@ -1342,13 +1342,13 @@ const kt = (t) => `- ${t}`, Un = (t) => f.isFunction(t) || t === null || t === !
1342
1342
  let c;
1343
1343
  if (i = s, !Un(s) && (i = Qe[(c = String(s)).toLowerCase()], i === void 0))
1344
1344
  throw new $(`Unknown adapter '${c}'`);
1345
- if (i && (f.isFunction(i) || (i = i.get(e))))
1345
+ if (i && (x.isFunction(i) || (i = i.get(e))))
1346
1346
  break;
1347
1347
  a[c || "#" + o] = i;
1348
1348
  }
1349
1349
  if (!i) {
1350
1350
  const o = Object.entries(a).map(
1351
- ([d, p]) => `adapter ${d} ` + (p === !1 ? "is not supported by the environment" : "is not available in the build")
1351
+ ([d, f]) => `adapter ${d} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1352
1352
  );
1353
1353
  let c = n ? o.length > 1 ? `since :
1354
1354
  ` + o.map(kt).join(`
@@ -1472,7 +1472,7 @@ let he = class {
1472
1472
  silentJSONParsing: ce.transitional(ce.boolean),
1473
1473
  forcedJSONParsing: ce.transitional(ce.boolean),
1474
1474
  clarifyTimeoutError: ce.transitional(ce.boolean)
1475
- }, !1), i != null && (f.isFunction(i) ? n.paramsSerializer = {
1475
+ }, !1), i != null && (x.isFunction(i) ? n.paramsSerializer = {
1476
1476
  serialize: i
1477
1477
  } : $e.assertOptions(i, {
1478
1478
  encode: ce.function,
@@ -1481,11 +1481,11 @@ let he = class {
1481
1481
  baseUrl: ce.spelling("baseURL"),
1482
1482
  withXsrfToken: ce.spelling("withXSRFToken")
1483
1483
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1484
- let o = a && f.merge(
1484
+ let o = a && x.merge(
1485
1485
  a.common,
1486
1486
  a[n.method]
1487
1487
  );
1488
- a && f.forEach(
1488
+ a && x.forEach(
1489
1489
  ["delete", "get", "head", "post", "put", "patch", "common"],
1490
1490
  (u) => {
1491
1491
  delete a[u];
@@ -1496,16 +1496,16 @@ let he = class {
1496
1496
  this.interceptors.request.forEach(function(w) {
1497
1497
  typeof w.runWhen == "function" && w.runWhen(n) === !1 || (d = d && w.synchronous, c.unshift(w.fulfilled, w.rejected));
1498
1498
  });
1499
- const p = [];
1499
+ const f = [];
1500
1500
  this.interceptors.response.forEach(function(w) {
1501
- p.push(w.fulfilled, w.rejected);
1501
+ f.push(w.fulfilled, w.rejected);
1502
1502
  });
1503
- let x, y = 0, k;
1503
+ let p, y = 0, k;
1504
1504
  if (!d) {
1505
1505
  const u = [Et.bind(this), void 0];
1506
- for (u.unshift(...c), u.push(...p), k = u.length, x = Promise.resolve(n); y < k; )
1507
- x = x.then(u[y++], u[y++]);
1508
- return x;
1506
+ for (u.unshift(...c), u.push(...f), k = u.length, p = Promise.resolve(n); y < k; )
1507
+ p = p.then(u[y++], u[y++]);
1508
+ return p;
1509
1509
  }
1510
1510
  k = c.length;
1511
1511
  let E = n;
@@ -1519,13 +1519,13 @@ let he = class {
1519
1519
  }
1520
1520
  }
1521
1521
  try {
1522
- x = Et.call(this, E);
1522
+ p = Et.call(this, E);
1523
1523
  } catch (u) {
1524
1524
  return Promise.reject(u);
1525
1525
  }
1526
- for (y = 0, k = p.length; y < k; )
1527
- x = x.then(p[y++], p[y++]);
1528
- return x;
1526
+ for (y = 0, k = f.length; y < k; )
1527
+ p = p.then(f[y++], f[y++]);
1528
+ return p;
1529
1529
  }
1530
1530
  getUri(e) {
1531
1531
  e = me(this.defaults, e);
@@ -1533,7 +1533,7 @@ let he = class {
1533
1533
  return Ht(n, e.params, e.paramsSerializer);
1534
1534
  }
1535
1535
  };
1536
- f.forEach(["delete", "get", "head", "options"], function(e) {
1536
+ x.forEach(["delete", "get", "head", "options"], function(e) {
1537
1537
  he.prototype[e] = function(n, s) {
1538
1538
  return this.request(me(s || {}, {
1539
1539
  method: e,
@@ -1542,7 +1542,7 @@ f.forEach(["delete", "get", "head", "options"], function(e) {
1542
1542
  }));
1543
1543
  };
1544
1544
  });
1545
- f.forEach(["post", "put", "patch"], function(e) {
1545
+ x.forEach(["post", "put", "patch"], function(e) {
1546
1546
  function n(s) {
1547
1547
  return function(a, o, c) {
1548
1548
  return this.request(me(c || {}, {
@@ -1636,7 +1636,7 @@ function Nn(t) {
1636
1636
  };
1637
1637
  }
1638
1638
  function Fn(t) {
1639
- return f.isObject(t) && t.isAxiosError === !0;
1639
+ return x.isObject(t) && t.isAxiosError === !0;
1640
1640
  }
1641
1641
  const et = {
1642
1642
  Continue: 100,
@@ -1708,7 +1708,7 @@ Object.entries(et).forEach(([t, e]) => {
1708
1708
  });
1709
1709
  function rr(t) {
1710
1710
  const e = new he(t), n = At(he.prototype.request, e);
1711
- return f.extend(n, he.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(i) {
1711
+ return x.extend(n, he.prototype, e, { allOwnKeys: !0 }), x.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(i) {
1712
1712
  return rr(me(t, i));
1713
1713
  }, n;
1714
1714
  }
@@ -1728,7 +1728,7 @@ J.spread = Nn;
1728
1728
  J.isAxiosError = Fn;
1729
1729
  J.mergeConfig = me;
1730
1730
  J.AxiosHeaders = re;
1731
- J.formToJSON = (t) => Yt(f.isHTMLForm(t) ? new FormData(t) : t);
1731
+ J.formToJSON = (t) => Yt(x.isHTMLForm(t) ? new FormData(t) : t);
1732
1732
  J.getAdapter = Qt.getAdapter;
1733
1733
  J.HttpStatusCode = et;
1734
1734
  J.default = J;
@@ -2426,7 +2426,7 @@ function qn() {
2426
2426
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
2427
2427
  )), l = this.props.ref, l !== void 0 ? l : null;
2428
2428
  }
2429
- function p(l, m, S, D, ne, oe) {
2429
+ function f(l, m, S, D, ne, oe) {
2430
2430
  var B = S.ref;
2431
2431
  return l = {
2432
2432
  $$typeof: u,
@@ -2459,7 +2459,7 @@ function qn() {
2459
2459
  value: oe
2460
2460
  }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
2461
2461
  }
2462
- function x(l, m, S, D, ne, oe) {
2462
+ function p(l, m, S, D, ne, oe) {
2463
2463
  var B = m.children;
2464
2464
  if (B !== void 0)
2465
2465
  if (D)
@@ -2498,7 +2498,7 @@ React keys must be passed directly to JSX without using spread:
2498
2498
  return B && c(
2499
2499
  S,
2500
2500
  typeof l == "function" ? l.displayName || l.name || "Unknown" : l
2501
- ), p(
2501
+ ), f(
2502
2502
  l,
2503
2503
  B,
2504
2504
  S,
@@ -2527,7 +2527,7 @@ React keys must be passed directly to JSX without using spread:
2527
2527
  )(), F = z(s(a)), Y = {};
2528
2528
  Ee.Fragment = h, Ee.jsx = function(l, m, S) {
2529
2529
  var D = 1e4 > T.recentlyCreatedOwnerStacks++;
2530
- return x(
2530
+ return p(
2531
2531
  l,
2532
2532
  m,
2533
2533
  S,
@@ -2537,7 +2537,7 @@ React keys must be passed directly to JSX without using spread:
2537
2537
  );
2538
2538
  }, Ee.jsxs = function(l, m, S) {
2539
2539
  var D = 1e4 > T.recentlyCreatedOwnerStacks++;
2540
- return x(
2540
+ return p(
2541
2541
  l,
2542
2542
  m,
2543
2543
  S,
@@ -2617,7 +2617,7 @@ const Yn = zt(
2617
2617
  ...c
2618
2618
  },
2619
2619
  [
2620
- ...o.map(([p, x]) => Ke(p, x)),
2620
+ ...o.map(([f, p]) => Ke(f, p)),
2621
2621
  ...Array.isArray(a) ? a : [a]
2622
2622
  ]
2623
2623
  )
@@ -3086,9 +3086,9 @@ const Ns = [
3086
3086
  showAvatar: c = !1,
3087
3087
  roles: d = [],
3088
3088
  // 🔥 FIXED
3089
- showRoleSelector: p = !1,
3089
+ showRoleSelector: f = !1,
3090
3090
  // 🔥 FIXED
3091
- loginUrl: x,
3091
+ loginUrl: p,
3092
3092
  onSuccess: y,
3093
3093
  onError: k
3094
3094
  }) => {
@@ -3263,7 +3263,7 @@ const Ns = [
3263
3263
  onSubmit: K,
3264
3264
  style: { display: "flex", flexDirection: "column", gap: "14px" },
3265
3265
  children: [
3266
- p && d && d.length === 2 && /* @__PURE__ */ r.jsxs(
3266
+ f && d && d.length === 2 && /* @__PURE__ */ r.jsxs(
3267
3267
  "div",
3268
3268
  {
3269
3269
  style: { display: "flex", flexDirection: "column", gap: "4px" },
@@ -3593,7 +3593,7 @@ const Ns = [
3593
3593
  ]
3594
3594
  }
3595
3595
  ),
3596
- x && /* @__PURE__ */ r.jsx(
3596
+ p && /* @__PURE__ */ r.jsx(
3597
3597
  "div",
3598
3598
  {
3599
3599
  style: {
@@ -3604,7 +3604,7 @@ const Ns = [
3604
3604
  children: /* @__PURE__ */ r.jsx(
3605
3605
  "a",
3606
3606
  {
3607
- href: x,
3607
+ href: p,
3608
3608
  style: {
3609
3609
  color: i,
3610
3610
  textDecoration: "none",
@@ -3709,9 +3709,9 @@ const Ns = [
3709
3709
  darkMode: o = !0,
3710
3710
  signupUrl: c,
3711
3711
  onSuccess: d,
3712
- onError: p
3712
+ onError: f
3713
3713
  }) => {
3714
- const x = fe(), [y, k] = P("login"), [E, u] = P(1), [w, h] = P(!1), [O, C] = P(!1), [g, A] = P(null), [N, b] = P(""), [j, q] = P(""), [I, X] = P({
3714
+ const p = fe(), [y, k] = P("login"), [E, u] = P(1), [w, h] = P(!1), [O, C] = P(!1), [g, A] = P(null), [N, b] = P(""), [j, q] = P(""), [I, X] = P({
3715
3715
  email: "",
3716
3716
  otp: "",
3717
3717
  newPassword: ""
@@ -3725,7 +3725,7 @@ const Ns = [
3725
3725
  const K = async (m) => {
3726
3726
  m.preventDefault(), C(!0), A(null);
3727
3727
  try {
3728
- const S = await x.loginUser({ email: N, password: j }), { user: D } = S;
3728
+ const S = await p.loginUser({ email: N, password: j }), { user: D } = S;
3729
3729
  if (!D)
3730
3730
  throw new Error(S.message || "Login failed");
3731
3731
  if (typeof document < "u") {
@@ -3735,7 +3735,7 @@ const Ns = [
3735
3735
  A({ type: "success", text: `Welcome ${D.name}` }), d?.(D);
3736
3736
  } catch (S) {
3737
3737
  const D = S.message || "Login failed";
3738
- A({ type: "error", text: D }), p?.(S);
3738
+ A({ type: "error", text: D }), f?.(S);
3739
3739
  } finally {
3740
3740
  C(!1);
3741
3741
  }
@@ -3744,7 +3744,7 @@ const Ns = [
3744
3744
  }, F = async (m) => {
3745
3745
  m.preventDefault(), C(!0), A(null);
3746
3746
  try {
3747
- const S = await x.requestResetUserPasswordOTP({
3747
+ const S = await p.requestResetUserPasswordOTP({
3748
3748
  email: I.email
3749
3749
  });
3750
3750
  S.success ? (u(2), A({
@@ -3765,7 +3765,7 @@ const Ns = [
3765
3765
  }, Y = async (m) => {
3766
3766
  m.preventDefault(), C(!0), A(null);
3767
3767
  try {
3768
- const S = await x.resetUserPassword({
3768
+ const S = await p.resetUserPassword({
3769
3769
  email: I.email,
3770
3770
  otp: I.otp,
3771
3771
  newPassword: I.newPassword
@@ -4294,14 +4294,14 @@ const Ns = [
4294
4294
  const n = fe(), [s, i] = P("loading");
4295
4295
  ee(() => {
4296
4296
  (async () => {
4297
+ if (!(document.cookie.split(";").map((p) => p.trim()).find((p) => p.startsWith("a_s_b="))?.split("=")[1] === "true")) {
4298
+ i("unauthenticated");
4299
+ return;
4300
+ }
4297
4301
  try {
4298
- if (!(document.cookie.split(";").map((y) => y.trim()).find((y) => y.startsWith("a_s_b="))?.split("=")[1] === "true")) {
4299
- i("unauthenticated");
4300
- return;
4301
- }
4302
4302
  (await n.checkUserSession())?.user?.id ? i("authenticated") : (document.cookie = "a_s_b=false; path=/; max-age=0; SameSite=Lax", i("unauthenticated"));
4303
- } catch {
4304
- document.cookie = "a_s_b=false; path=/; max-age=0; SameSite=Lax", i("unauthenticated");
4303
+ } catch (p) {
4304
+ console.error("Session validation failed:", p), document.cookie = "a_s_b=false; path=/; max-age=0; SameSite=Lax", i("unauthenticated");
4305
4305
  }
4306
4306
  })();
4307
4307
  }, [n]);
@@ -4314,7 +4314,7 @@ const Ns = [
4314
4314
  const [n, s] = P(!1), [i, a] = P(null);
4315
4315
  if (ee(() => {
4316
4316
  s(!0);
4317
- const d = document.cookie.split(";").map((p) => p.trim()).find((p) => p.startsWith("a_s_b="));
4317
+ const d = document.cookie.split(";").map((f) => f.trim()).find((f) => f.startsWith("a_s_b="));
4318
4318
  a(d?.split("=")[1] !== "true");
4319
4319
  }, []), !n) return null;
4320
4320
  const o = (c) => typeof c == "function" ? c() : c;
@@ -4327,7 +4327,7 @@ const Ns = [
4327
4327
  userId: i,
4328
4328
  colors: a
4329
4329
  }) => {
4330
- const o = fe(), [c, d] = P(!1), [p, x] = P(""), [y, k] = P("warning"), [E, u] = P(!1);
4330
+ const o = fe(), [c, d] = P(!1), [f, p] = P(""), [y, k] = P("warning"), [E, u] = P(!1);
4331
4331
  if (ee(() => {
4332
4332
  if (typeof window > "u") return;
4333
4333
  const g = () => {
@@ -4349,7 +4349,7 @@ const Ns = [
4349
4349
  } finally {
4350
4350
  d(!1);
4351
4351
  }
4352
- }, h = p.toLowerCase() === "delete my account", O = (g) => {
4352
+ }, h = f.toLowerCase() === "delete my account", O = (g) => {
4353
4353
  g.target === g.currentTarget && y !== "processing" && y !== "success" && e();
4354
4354
  }, C = () => {
4355
4355
  switch (y) {
@@ -4666,8 +4666,8 @@ const Ns = [
4666
4666
  "input",
4667
4667
  {
4668
4668
  type: "text",
4669
- value: p,
4670
- onChange: (g) => x(g.target.value),
4669
+ value: f,
4670
+ onChange: (g) => p(g.target.value),
4671
4671
  placeholder: "delete my account",
4672
4672
  style: {
4673
4673
  width: "100%",
@@ -4724,7 +4724,7 @@ const Ns = [
4724
4724
  "button",
4725
4725
  {
4726
4726
  onClick: () => {
4727
- k("warning"), x("");
4727
+ k("warning"), p("");
4728
4728
  },
4729
4729
  style: {
4730
4730
  padding: "10px 24px",
@@ -5176,11 +5176,11 @@ const Ns = [
5176
5176
  onUpdate: n,
5177
5177
  colors: s
5178
5178
  }) => {
5179
- const [i, a] = P(""), [o, c] = P(!1), [d, p] = P(!1), [x, y] = P({ isValid: !1, message: "", type: null });
5179
+ const [i, a] = P(""), [o, c] = P(!1), [d, f] = P(!1), [p, y] = P({ isValid: !1, message: "", type: null });
5180
5180
  if (ee(() => {
5181
5181
  if (typeof window > "u") return;
5182
5182
  const u = () => {
5183
- p(window.innerWidth < 640);
5183
+ f(window.innerWidth < 640);
5184
5184
  };
5185
5185
  return u(), window.addEventListener("resize", u), () => window.removeEventListener("resize", u);
5186
5186
  }, []), ee(() => {
@@ -5208,7 +5208,7 @@ const Ns = [
5208
5208
  }
5209
5209
  }, [i]), !t) return null;
5210
5210
  const k = async () => {
5211
- if (!(!i || !x.isValid)) {
5211
+ if (!(!i || !p.isValid)) {
5212
5212
  c(!0);
5213
5213
  try {
5214
5214
  await n(i) && (a(""), e());
@@ -5379,7 +5379,7 @@ const Ns = [
5379
5379
  padding: "14px 16px",
5380
5380
  paddingLeft: "44px",
5381
5381
  borderRadius: "12px",
5382
- border: `1.5px solid ${x.type === "error" ? s.error : x.type === "success" ? s.success : s.border}`,
5382
+ border: `1.5px solid ${p.type === "error" ? s.error : p.type === "success" ? s.success : s.border}`,
5383
5383
  backgroundColor: "transparent",
5384
5384
  color: s.textPrimary,
5385
5385
  fontSize: "15px",
@@ -5391,7 +5391,7 @@ const Ns = [
5391
5391
  u.target.style.borderColor = s.accent, u.target.style.boxShadow = `0 0 0 3px ${s.accent}20`;
5392
5392
  },
5393
5393
  onBlur: (u) => {
5394
- u.target.style.borderColor = x.type === "error" ? s.error : x.type === "success" ? s.success : s.border, u.target.style.boxShadow = "none";
5394
+ u.target.style.borderColor = p.type === "error" ? s.error : p.type === "success" ? s.success : s.border, u.target.style.boxShadow = "none";
5395
5395
  },
5396
5396
  disabled: o
5397
5397
  }
@@ -5410,7 +5410,7 @@ const Ns = [
5410
5410
  }
5411
5411
  )
5412
5412
  ] }),
5413
- x.message && /* @__PURE__ */ r.jsxs(
5413
+ p.message && /* @__PURE__ */ r.jsxs(
5414
5414
  "div",
5415
5415
  {
5416
5416
  style: {
@@ -5419,18 +5419,18 @@ const Ns = [
5419
5419
  gap: "6px",
5420
5420
  marginTop: "8px",
5421
5421
  fontSize: "13px",
5422
- color: x.type === "success" ? s.success : x.type === "error" ? s.error : s.textTertiary
5422
+ color: p.type === "success" ? s.success : p.type === "error" ? s.error : s.textTertiary
5423
5423
  },
5424
5424
  children: [
5425
- x.type === "success" && /* @__PURE__ */ r.jsx(ue, { size: 14 }),
5426
- x.type === "error" && /* @__PURE__ */ r.jsx(se, { size: 14 }),
5427
- x.type === "warning" && /* @__PURE__ */ r.jsx(se, { size: 14 }),
5428
- x.message
5425
+ p.type === "success" && /* @__PURE__ */ r.jsx(ue, { size: 14 }),
5426
+ p.type === "error" && /* @__PURE__ */ r.jsx(se, { size: 14 }),
5427
+ p.type === "warning" && /* @__PURE__ */ r.jsx(se, { size: 14 }),
5428
+ p.message
5429
5429
  ]
5430
5430
  }
5431
5431
  )
5432
5432
  ] }),
5433
- i && x.type === "success" && /* @__PURE__ */ r.jsxs(
5433
+ i && p.type === "success" && /* @__PURE__ */ r.jsxs(
5434
5434
  "div",
5435
5435
  {
5436
5436
  style: {
@@ -5521,7 +5521,7 @@ const Ns = [
5521
5521
  "button",
5522
5522
  {
5523
5523
  onClick: k,
5524
- disabled: o || !x.isValid,
5524
+ disabled: o || !p.isValid,
5525
5525
  style: {
5526
5526
  padding: "10px 24px",
5527
5527
  borderRadius: "10px",
@@ -5530,22 +5530,22 @@ const Ns = [
5530
5530
  color: "#fff",
5531
5531
  fontSize: "14px",
5532
5532
  fontWeight: 600,
5533
- cursor: o || !x.isValid ? "not-allowed" : "pointer",
5533
+ cursor: o || !p.isValid ? "not-allowed" : "pointer",
5534
5534
  flex: d ? "none" : 1,
5535
5535
  minWidth: d ? "100%" : "140px",
5536
- opacity: o || !x.isValid ? 0.6 : 1,
5536
+ opacity: o || !p.isValid ? 0.6 : 1,
5537
5537
  display: "flex",
5538
5538
  alignItems: "center",
5539
5539
  justifyContent: "center",
5540
5540
  gap: "8px",
5541
5541
  transition: "all 0.2s ease",
5542
- boxShadow: o || !x.isValid ? "none" : `0 4px 12px ${s.accent}40`
5542
+ boxShadow: o || !p.isValid ? "none" : `0 4px 12px ${s.accent}40`
5543
5543
  },
5544
5544
  onMouseOver: (u) => {
5545
- !o && x.isValid && (u.currentTarget.style.transform = "translateY(-1px)", u.currentTarget.style.boxShadow = `0 6px 20px ${s.accent}60`);
5545
+ !o && p.isValid && (u.currentTarget.style.transform = "translateY(-1px)", u.currentTarget.style.boxShadow = `0 6px 20px ${s.accent}60`);
5546
5546
  },
5547
5547
  onMouseOut: (u) => {
5548
- !o && x.isValid && (u.currentTarget.style.transform = "translateY(0)", u.currentTarget.style.boxShadow = `0 4px 12px ${s.accent}40`);
5548
+ !o && p.isValid && (u.currentTarget.style.transform = "translateY(0)", u.currentTarget.style.boxShadow = `0 4px 12px ${s.accent}40`);
5549
5549
  },
5550
5550
  children: o ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
5551
5551
  /* @__PURE__ */ r.jsx(
@@ -5634,7 +5634,7 @@ const Ns = [
5634
5634
  currentPassword: "",
5635
5635
  newPassword: "",
5636
5636
  confirmPassword: ""
5637
- }), [p, x] = P({}), [y, k] = P(!1), [E, u] = P({
5637
+ }), [f, p] = P({}), [y, k] = P(!1), [E, u] = P({
5638
5638
  currentPassword: !1,
5639
5639
  newPassword: !1,
5640
5640
  confirmPassword: !1
@@ -5648,12 +5648,12 @@ const Ns = [
5648
5648
  }, []), !t) return null;
5649
5649
  const O = (b) => {
5650
5650
  const { name: j, value: q } = b.target;
5651
- d((I) => ({ ...I, [j]: q })), p[j] && x((I) => ({ ...I, [j]: "" }));
5651
+ d((I) => ({ ...I, [j]: q })), f[j] && p((I) => ({ ...I, [j]: "" }));
5652
5652
  }, C = (b) => {
5653
5653
  u((j) => ({ ...j, [b]: !j[b] }));
5654
5654
  }, g = () => {
5655
5655
  const b = {};
5656
- return c.currentPassword || (b.currentPassword = "Current password is required"), c.newPassword ? c.newPassword.length < 6 && (b.newPassword = "Password must be at least 6 characters") : b.newPassword = "New password is required", c.newPassword !== c.confirmPassword && (b.confirmPassword = "Passwords do not match"), x(b), Object.keys(b).length === 0;
5656
+ return c.currentPassword || (b.currentPassword = "Current password is required"), c.newPassword ? c.newPassword.length < 6 && (b.newPassword = "Password must be at least 6 characters") : b.newPassword = "New password is required", c.newPassword !== c.confirmPassword && (b.confirmPassword = "Passwords do not match"), p(b), Object.keys(b).length === 0;
5657
5657
  }, A = async (b) => {
5658
5658
  if (b.preventDefault(), !!g()) {
5659
5659
  k(!0);
@@ -5858,7 +5858,7 @@ const Ns = [
5858
5858
  width: "100%",
5859
5859
  padding: "14px 48px 14px 44px",
5860
5860
  borderRadius: "10px",
5861
- border: `1.5px solid ${p[b] ? a.error : a.border}`,
5861
+ border: `1.5px solid ${f[b] ? a.error : a.border}`,
5862
5862
  backgroundColor: "transparent",
5863
5863
  color: a.textPrimary,
5864
5864
  fontSize: "15px",
@@ -5870,7 +5870,7 @@ const Ns = [
5870
5870
  I.target.style.borderColor = a.accent, I.target.style.boxShadow = `0 0 0 3px ${a.accent}20`;
5871
5871
  },
5872
5872
  onBlur: (I) => {
5873
- I.target.style.borderColor = p[b] ? a.error : a.border, I.target.style.boxShadow = "none";
5873
+ I.target.style.borderColor = f[b] ? a.error : a.border, I.target.style.boxShadow = "none";
5874
5874
  }
5875
5875
  }
5876
5876
  ),
@@ -5906,7 +5906,7 @@ const Ns = [
5906
5906
  }
5907
5907
  )
5908
5908
  ] }),
5909
- p[b] && /* @__PURE__ */ r.jsxs(
5909
+ f[b] && /* @__PURE__ */ r.jsxs(
5910
5910
  "div",
5911
5911
  {
5912
5912
  style: {
@@ -5919,7 +5919,7 @@ const Ns = [
5919
5919
  },
5920
5920
  children: [
5921
5921
  /* @__PURE__ */ r.jsx("span", { style: { fontSize: "16px" }, children: "⚠" }),
5922
- p[b]
5922
+ f[b]
5923
5923
  ]
5924
5924
  }
5925
5925
  )
@@ -6069,8 +6069,8 @@ const Ns = [
6069
6069
  otpSent: o,
6070
6070
  verifying: c,
6071
6071
  user: d,
6072
- colors: p,
6073
- darkMode: x
6072
+ colors: f,
6073
+ darkMode: p
6074
6074
  }) => {
6075
6075
  if (!t) return null;
6076
6076
  const y = () => {
@@ -6081,7 +6081,7 @@ const Ns = [
6081
6081
  {
6082
6082
  className: "modal-overlay",
6083
6083
  style: {
6084
- backgroundColor: x ? "rgba(0, 0, 0, 0.8)" : "rgba(0, 0, 0, 0.5)"
6084
+ backgroundColor: p ? "rgba(0, 0, 0, 0.8)" : "rgba(0, 0, 0, 0.5)"
6085
6085
  },
6086
6086
  children: [
6087
6087
  /* @__PURE__ */ r.jsxs(
@@ -6089,18 +6089,18 @@ const Ns = [
6089
6089
  {
6090
6090
  className: "verify-email-modal",
6091
6091
  style: {
6092
- backgroundColor: p.surface,
6093
- border: `1px solid ${p.border}`
6092
+ backgroundColor: f.surface,
6093
+ border: `1px solid ${f.border}`
6094
6094
  },
6095
6095
  children: [
6096
6096
  /* @__PURE__ */ r.jsxs("div", { className: "modal-header", children: [
6097
- /* @__PURE__ */ r.jsx("h3", { style: { color: p.textPrimary }, children: "Verify Your Email" }),
6097
+ /* @__PURE__ */ r.jsx("h3", { style: { color: f.textPrimary }, children: "Verify Your Email" }),
6098
6098
  /* @__PURE__ */ r.jsx(
6099
6099
  "button",
6100
6100
  {
6101
6101
  onClick: y,
6102
6102
  className: "close-btn",
6103
- style: { color: p.textTertiary },
6103
+ style: { color: f.textTertiary },
6104
6104
  "aria-label": "Close verification modal",
6105
6105
  children: /* @__PURE__ */ r.jsx(Ie, { size: 20, "aria-hidden": "true" })
6106
6106
  }
@@ -6108,13 +6108,13 @@ const Ns = [
6108
6108
  ] }),
6109
6109
  /* @__PURE__ */ r.jsxs("form", { className: "verify-form", onSubmit: n, children: [
6110
6110
  /* @__PURE__ */ r.jsxs("div", { className: "form-group", children: [
6111
- /* @__PURE__ */ r.jsx("label", { style: { color: p.textSecondary }, children: "Email" }),
6111
+ /* @__PURE__ */ r.jsx("label", { style: { color: f.textSecondary }, children: "Email" }),
6112
6112
  /* @__PURE__ */ r.jsxs("div", { className: "input-container", children: [
6113
6113
  /* @__PURE__ */ r.jsx(
6114
6114
  pe,
6115
6115
  {
6116
6116
  size: 18,
6117
- style: { color: p.textTertiary },
6117
+ style: { color: f.textTertiary },
6118
6118
  "aria-hidden": "true"
6119
6119
  }
6120
6120
  ),
@@ -6129,9 +6129,9 @@ const Ns = [
6129
6129
  })),
6130
6130
  placeholder: "Enter your email",
6131
6131
  style: {
6132
- backgroundColor: p.surfaceLight,
6133
- color: p.textPrimary,
6134
- borderColor: p.border
6132
+ backgroundColor: f.surfaceLight,
6133
+ color: f.textPrimary,
6134
+ borderColor: f.border
6135
6135
  },
6136
6136
  required: !0,
6137
6137
  "aria-required": "true",
@@ -6141,13 +6141,13 @@ const Ns = [
6141
6141
  ] })
6142
6142
  ] }),
6143
6143
  o && /* @__PURE__ */ r.jsxs("div", { className: "form-group", children: [
6144
- /* @__PURE__ */ r.jsx("label", { style: { color: p.textSecondary }, children: "OTP" }),
6144
+ /* @__PURE__ */ r.jsx("label", { style: { color: f.textSecondary }, children: "OTP" }),
6145
6145
  /* @__PURE__ */ r.jsxs("div", { className: "input-container", children: [
6146
6146
  /* @__PURE__ */ r.jsx(
6147
6147
  ir,
6148
6148
  {
6149
6149
  size: 18,
6150
- style: { color: p.textTertiary },
6150
+ style: { color: f.textTertiary },
6151
6151
  "aria-hidden": "true"
6152
6152
  }
6153
6153
  ),
@@ -6162,9 +6162,9 @@ const Ns = [
6162
6162
  })),
6163
6163
  placeholder: "Enter OTP",
6164
6164
  style: {
6165
- backgroundColor: p.surfaceLight,
6166
- color: p.textPrimary,
6167
- borderColor: p.border
6165
+ backgroundColor: f.surfaceLight,
6166
+ color: f.textPrimary,
6167
+ borderColor: f.border
6168
6168
  },
6169
6169
  required: !0,
6170
6170
  "aria-required": "true",
@@ -6180,7 +6180,7 @@ const Ns = [
6180
6180
  disabled: c,
6181
6181
  className: "btn-primary",
6182
6182
  style: {
6183
- background: `linear-gradient(to right, ${p.accent}, ${p.accentHover})`,
6183
+ background: `linear-gradient(to right, ${f.accent}, ${f.accentHover})`,
6184
6184
  opacity: c ? 0.7 : 1
6185
6185
  },
6186
6186
  "aria-label": c ? "Verifying email" : "Verify email",
@@ -6197,7 +6197,7 @@ const Ns = [
6197
6197
  disabled: c,
6198
6198
  className: "btn-primary",
6199
6199
  style: {
6200
- background: `linear-gradient(to right, ${p.accent}, ${p.accentHover})`,
6200
+ background: `linear-gradient(to right, ${f.accent}, ${f.accentHover})`,
6201
6201
  opacity: c ? 0.7 : 1
6202
6202
  },
6203
6203
  "aria-label": c ? "Sending OTP" : "Send OTP",
@@ -6260,7 +6260,7 @@ const Ns = [
6260
6260
  }
6261
6261
 
6262
6262
  .close-btn:hover {
6263
- background-color: ${x ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)"};
6263
+ background-color: ${p ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)"};
6264
6264
  }
6265
6265
 
6266
6266
  .verify-form {
@@ -6304,8 +6304,8 @@ const Ns = [
6304
6304
  }
6305
6305
 
6306
6306
  .input-container input:focus {
6307
- border-color: ${p.accent};
6308
- box-shadow: 0 0 0 3px ${p.accent}20;
6307
+ border-color: ${f.accent};
6308
+ box-shadow: 0 0 0 3px ${f.accent}20;
6309
6309
  }
6310
6310
 
6311
6311
  .modal-actions {
@@ -6369,7 +6369,7 @@ const Ns = [
6369
6369
  onVerify: s,
6370
6370
  primaryColor: i = "#00C212"
6371
6371
  }) => {
6372
- const a = fe(), [o, c] = P(null), [d, p] = P(), [x, y] = P(!0), [k, E] = P(!1), [u, w] = P(!1), [h, O] = P(!1), [C, g] = P(!1), [A, N] = P(!1), [b, j] = P(!1), [q, I] = P(!1), [X, W] = P(!1), [T, G] = P(null), [R, z] = P(!1), [M, K] = P({
6372
+ const a = fe(), [o, c] = P(null), [d, f] = P(), [p, y] = P(!0), [k, E] = P(!1), [u, w] = P(!1), [h, O] = P(!1), [C, g] = P(!1), [A, N] = P(!1), [b, j] = P(!1), [q, I] = P(!1), [X, W] = P(!1), [T, G] = P(null), [R, z] = P(!1), [M, K] = P({
6373
6373
  email: "",
6374
6374
  otp: ""
6375
6375
  }), [H, F] = P(!1), [Y, l] = P(!1);
@@ -6437,7 +6437,7 @@ const Ns = [
6437
6437
  if (V) {
6438
6438
  m("success", Z || "Email verified!");
6439
6439
  const de = { ...d, isVerified: !0 };
6440
- p(de), typeof s == "function" && s(de), K({ email: de.email, otp: "" }), F(!1), j?.(!1);
6440
+ f(de), typeof s == "function" && s(de), K({ email: de.email, otp: "" }), F(!1), j?.(!1);
6441
6441
  } else
6442
6442
  m("error", Z || "Verification failed");
6443
6443
  } catch (U) {
@@ -6461,7 +6461,7 @@ const Ns = [
6461
6461
  // 🔁 merge backend response if present
6462
6462
  avatarUrl: v
6463
6463
  };
6464
- return p(V), m("success", "Avatar updated successfully!"), !0;
6464
+ return f(V), m("success", "Avatar updated successfully!"), !0;
6465
6465
  }
6466
6466
  return m("error", U?.message || "Failed to update avatar"), !1;
6467
6467
  } catch (U) {
@@ -6483,7 +6483,7 @@ const Ns = [
6483
6483
  // overwrite updated fields
6484
6484
  isVerified: V ? !1 : d.isVerified
6485
6485
  };
6486
- p(Z), localStorage.setItem("userInfo", JSON.stringify(Z)), m(
6486
+ f(Z), localStorage.setItem("userInfo", JSON.stringify(Z)), m(
6487
6487
  "success",
6488
6488
  V ? "Email updated. Please verify your new email." : "Profile updated successfully"
6489
6489
  ), E(!1);
@@ -6498,7 +6498,7 @@ const Ns = [
6498
6498
  }, le = async (v) => {
6499
6499
  try {
6500
6500
  const U = await a.checkIfUserExists(v);
6501
- U?.success === !0 && U?.exists === !1 && (console.warn("❌ User does not exist on server. Clearing session..."), localStorage.removeItem("userInfo"), p(null));
6501
+ U?.success === !0 && U?.exists === !1 && (console.warn("❌ User does not exist on server. Clearing session..."), localStorage.removeItem("userInfo"), f(null));
6502
6502
  } catch (U) {
6503
6503
  console.error("⚠️ User validation request failed:", U);
6504
6504
  }
@@ -6512,13 +6512,13 @@ const Ns = [
6512
6512
  const V = U.user.id, Z = await a.getUserProfile({ userId: V });
6513
6513
  if (Z.user) {
6514
6514
  const de = Z.user;
6515
- p(de), le(V);
6515
+ f(de), le(V);
6516
6516
  } else
6517
- p(null), localStorage.removeItem("userInfo");
6517
+ f(null), localStorage.removeItem("userInfo");
6518
6518
  } else
6519
- p(null), localStorage.removeItem("userInfo");
6519
+ f(null), localStorage.removeItem("userInfo");
6520
6520
  } catch (U) {
6521
- console.error("User init failed:", U), p(null), localStorage.removeItem("userInfo");
6521
+ console.error("User init failed:", U), f(null), localStorage.removeItem("userInfo");
6522
6522
  } finally {
6523
6523
  y(!1);
6524
6524
  }
@@ -6558,7 +6558,7 @@ const Ns = [
6558
6558
  border: "#e4e4e7",
6559
6559
  warning: "#d97706"
6560
6560
  };
6561
- if (x)
6561
+ if (p)
6562
6562
  return /* @__PURE__ */ r.jsx(
6563
6563
  "div",
6564
6564
  {
@@ -7263,7 +7263,7 @@ const Ns = [
7263
7263
  type: v.type,
7264
7264
  name: v.name,
7265
7265
  value: d[v.name],
7266
- onChange: (V) => p(
7266
+ onChange: (V) => f(
7267
7267
  (Z) => Z && { ...Z, [V.target.name]: V.target.value }
7268
7268
  ),
7269
7269
  style: {
@@ -7595,8 +7595,8 @@ const Ns = [
7595
7595
  settingsUrl: c,
7596
7596
  // Menu item visibility with defaults
7597
7597
  showProfileMenuItem: d = !0,
7598
- showSettingsMenuItem: p = !0,
7599
- showViewProfileMenuItem: x = !0,
7598
+ showSettingsMenuItem: f = !0,
7599
+ showViewProfileMenuItem: p = !0,
7600
7600
  // Custom labels with defaults
7601
7601
  profileLabel: y = "My Profile",
7602
7602
  settingsLabel: k = "Settings",
@@ -8082,7 +8082,7 @@ const Ns = [
8082
8082
  ]
8083
8083
  }
8084
8084
  ),
8085
- p && c && /* @__PURE__ */ r.jsxs(
8085
+ f && c && /* @__PURE__ */ r.jsxs(
8086
8086
  "button",
8087
8087
  {
8088
8088
  style: z.menuItem,
@@ -8102,7 +8102,7 @@ const Ns = [
8102
8102
  ]
8103
8103
  }
8104
8104
  ),
8105
- x && C.profileUrl && /* @__PURE__ */ r.jsxs(
8105
+ p && C.profileUrl && /* @__PURE__ */ r.jsxs(
8106
8106
  "a",
8107
8107
  {
8108
8108
  href: C.profileUrl,
@@ -8212,7 +8212,7 @@ const Ns = [
8212
8212
  const [a, o] = P(!1), [c, d] = P({
8213
8213
  email: t?.email || "",
8214
8214
  otp: ""
8215
- }), [p, x] = P(!1), [y, k] = P(!1), [E, u] = P(null);
8215
+ }), [f, p] = P(!1), [y, k] = P(!1), [E, u] = P(null);
8216
8216
  Ce.useEffect(() => {
8217
8217
  if (typeof window < "u") {
8218
8218
  const b = () => o(window.innerWidth < 768);
@@ -8265,7 +8265,7 @@ const Ns = [
8265
8265
  });
8266
8266
  if (console.log("Send OTP response:", b), b.success || b.data?.success) {
8267
8267
  const j = b.message || b.data?.message || "OTP sent!";
8268
- O("success", j), x(!0);
8268
+ O("success", j), p(!0);
8269
8269
  } else {
8270
8270
  const j = b.message || b.data?.message || "Failed to send OTP";
8271
8271
  O("error", j);
@@ -8288,7 +8288,7 @@ const Ns = [
8288
8288
  });
8289
8289
  if (j.success) {
8290
8290
  const q = { ...t, isVerified: !0 };
8291
- s?.(q), O("success", j.message || "Email verified!"), x(!1), d({ email: t.email, otp: "" });
8291
+ s?.(q), O("success", j.message || "Email verified!"), p(!1), d({ email: t.email, otp: "" });
8292
8292
  } else
8293
8293
  O("error", j.message || "Verification failed");
8294
8294
  } catch (j) {
@@ -8448,7 +8448,7 @@ const Ns = [
8448
8448
  }
8449
8449
  )
8450
8450
  ] }),
8451
- p && /* @__PURE__ */ r.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 4 }, children: [
8451
+ f && /* @__PURE__ */ r.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 4 }, children: [
8452
8452
  /* @__PURE__ */ r.jsxs(
8453
8453
  "div",
8454
8454
  {
@@ -8498,7 +8498,7 @@ const Ns = [
8498
8498
  }
8499
8499
  )
8500
8500
  ] }),
8501
- /* @__PURE__ */ r.jsx("div", { style: { display: "flex", gap: 12 }, children: p ? /* @__PURE__ */ r.jsxs(
8501
+ /* @__PURE__ */ r.jsx("div", { style: { display: "flex", gap: 12 }, children: f ? /* @__PURE__ */ r.jsxs(
8502
8502
  "button",
8503
8503
  {
8504
8504
  type: "submit",