@neuctra/authix 1.1.4 → 1.1.6

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.
@@ -1,4 +1,4 @@
1
- import _t, { forwardRef as Nt, createElement as Ze, useState as I, useEffect as se, useRef as ut } from "react";
1
+ import _t, { forwardRef as Nt, createElement as Ze, useState as I, useEffect as ne, useRef as ut } from "react";
2
2
  function $t(e, t) {
3
3
  return function() {
4
4
  return e.apply(t, arguments);
@@ -7,42 +7,42 @@ function $t(e, t) {
7
7
  const { toString: pr } = Object.prototype, { getPrototypeOf: ot } = Object, { iterator: Le, toStringTag: Ut } = Symbol, Me = /* @__PURE__ */ ((e) => (t) => {
8
8
  const r = pr.call(t);
9
9
  return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
10
- })(/* @__PURE__ */ Object.create(null)), ae = (e) => (e = e.toLowerCase(), (t) => Me(t) === e), Be = (e) => (t) => typeof t === e, { isArray: je } = Array, be = Be("undefined");
11
- function Te(e) {
12
- return e !== null && !be(e) && e.constructor !== null && !be(e.constructor) && te(e.constructor.isBuffer) && e.constructor.isBuffer(e);
10
+ })(/* @__PURE__ */ Object.create(null)), se = (e) => (e = e.toLowerCase(), (t) => Me(t) === e), Be = (e) => (t) => typeof t === e, { isArray: we } = Array, ye = Be("undefined");
11
+ function Ce(e) {
12
+ return e !== null && !ye(e) && e.constructor !== null && !ye(e.constructor) && te(e.constructor.isBuffer) && e.constructor.isBuffer(e);
13
13
  }
14
- const Dt = ae("ArrayBuffer");
14
+ const Dt = se("ArrayBuffer");
15
15
  function fr(e) {
16
16
  let t;
17
17
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Dt(e.buffer), t;
18
18
  }
19
- const xr = Be("string"), te = Be("function"), Ft = Be("number"), Re = (e) => e !== null && typeof e == "object", hr = (e) => e === !0 || e === !1, _e = (e) => {
19
+ const xr = Be("string"), te = Be("function"), Ft = Be("number"), Te = (e) => e !== null && typeof e == "object", hr = (e) => e === !0 || e === !1, _e = (e) => {
20
20
  if (Me(e) !== "object")
21
21
  return !1;
22
22
  const t = ot(e);
23
23
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ut in e) && !(Le in e);
24
24
  }, gr = (e) => {
25
- if (!Re(e) || Te(e))
25
+ if (!Te(e) || Ce(e))
26
26
  return !1;
27
27
  try {
28
28
  return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
29
29
  } catch {
30
30
  return !1;
31
31
  }
32
- }, mr = ae("Date"), yr = ae("File"), br = ae("Blob"), wr = ae("FileList"), jr = (e) => Re(e) && te(e.pipe), vr = (e) => {
32
+ }, mr = se("Date"), yr = se("File"), br = se("Blob"), wr = se("FileList"), jr = (e) => Te(e) && te(e.pipe), vr = (e) => {
33
33
  let t;
34
34
  return e && (typeof FormData == "function" && e instanceof FormData || te(e.append) && ((t = Me(e)) === "formdata" || // detect form-data instance
35
35
  t === "object" && te(e.toString) && e.toString() === "[object FormData]"));
36
- }, Sr = ae("URLSearchParams"), [kr, Er, Cr, Tr] = ["ReadableStream", "Request", "Response", "Headers"].map(ae), Rr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
- function Ie(e, t, { allOwnKeys: r = !1 } = {}) {
36
+ }, Sr = se("URLSearchParams"), [kr, Er, Cr, Tr] = ["ReadableStream", "Request", "Response", "Headers"].map(se), Rr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
+ function Re(e, t, { allOwnKeys: r = !1 } = {}) {
38
38
  if (e === null || typeof e > "u")
39
39
  return;
40
40
  let s, o;
41
- if (typeof e != "object" && (e = [e]), je(e))
41
+ if (typeof e != "object" && (e = [e]), we(e))
42
42
  for (s = 0, o = e.length; s < o; s++)
43
43
  t.call(null, e[s], s, e);
44
44
  else {
45
- if (Te(e))
45
+ if (Ce(e))
46
46
  return;
47
47
  const i = r ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length;
48
48
  let l;
@@ -51,7 +51,7 @@ function Ie(e, t, { allOwnKeys: r = !1 } = {}) {
51
51
  }
52
52
  }
53
53
  function Lt(e, t) {
54
- if (Te(e))
54
+ if (Ce(e))
55
55
  return null;
56
56
  t = t.toLowerCase();
57
57
  const r = Object.keys(e);
@@ -61,17 +61,17 @@ function Lt(e, t) {
61
61
  return o;
62
62
  return null;
63
63
  }
64
- const pe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Mt = (e) => !be(e) && e !== pe;
64
+ const pe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Mt = (e) => !ye(e) && e !== pe;
65
65
  function Qe() {
66
66
  const { caseless: e, skipUndefined: t } = Mt(this) && this || {}, r = {}, s = (o, i) => {
67
67
  const a = e && Lt(r, i) || i;
68
- _e(r[a]) && _e(o) ? r[a] = Qe(r[a], o) : _e(o) ? r[a] = Qe({}, o) : je(o) ? r[a] = o.slice() : (!t || !be(o)) && (r[a] = o);
68
+ _e(r[a]) && _e(o) ? r[a] = Qe(r[a], o) : _e(o) ? r[a] = Qe({}, o) : we(o) ? r[a] = o.slice() : (!t || !ye(o)) && (r[a] = o);
69
69
  };
70
70
  for (let o = 0, i = arguments.length; o < i; o++)
71
- arguments[o] && Ie(arguments[o], s);
71
+ arguments[o] && Re(arguments[o], s);
72
72
  return r;
73
73
  }
74
- const Ir = (e, t, r, { allOwnKeys: s } = {}) => (Ie(t, (o, i) => {
74
+ const Ir = (e, t, r, { allOwnKeys: s } = {}) => (Re(t, (o, i) => {
75
75
  r && te(o) ? e[i] = $t(o, r) : e[i] = o;
76
76
  }, { allOwnKeys: s }), e), Pr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Or = (e, t, r, s) => {
77
77
  e.prototype = Object.create(t.prototype, s), e.prototype.constructor = e, Object.defineProperty(e, "super", {
@@ -93,7 +93,7 @@ const Ir = (e, t, r, { allOwnKeys: s } = {}) => (Ie(t, (o, i) => {
93
93
  return s !== -1 && s === r;
94
94
  }, _r = (e) => {
95
95
  if (!e) return null;
96
- if (je(e)) return e;
96
+ if (we(e)) return e;
97
97
  let t = e.length;
98
98
  if (!Ft(t)) return null;
99
99
  const r = new Array(t);
@@ -113,14 +113,14 @@ const Ir = (e, t, r, { allOwnKeys: s } = {}) => (Ie(t, (o, i) => {
113
113
  for (; (r = e.exec(t)) !== null; )
114
114
  s.push(r);
115
115
  return s;
116
- }, Dr = ae("HTMLFormElement"), Fr = (e) => e.toLowerCase().replace(
116
+ }, Dr = se("HTMLFormElement"), Fr = (e) => e.toLowerCase().replace(
117
117
  /[-_\s]([a-z\d])(\w*)/g,
118
118
  function(r, s, o) {
119
119
  return s.toUpperCase() + o;
120
120
  }
121
- ), pt = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Lr = ae("RegExp"), Bt = (e, t) => {
121
+ ), pt = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Lr = se("RegExp"), Bt = (e, t) => {
122
122
  const r = Object.getOwnPropertyDescriptors(e), s = {};
123
- Ie(r, (o, i) => {
123
+ Re(r, (o, i) => {
124
124
  let a;
125
125
  (a = t(o, i, e)) !== !1 && (s[i] = a || o);
126
126
  }), Object.defineProperties(e, s);
@@ -145,7 +145,7 @@ const Ir = (e, t, r, { allOwnKeys: s } = {}) => (Ie(t, (o, i) => {
145
145
  r[i] = !0;
146
146
  });
147
147
  };
148
- return je(e) ? s(e) : s(String(e).split(t)), r;
148
+ return we(e) ? s(e) : s(String(e).split(t)), r;
149
149
  }, Wr = () => {
150
150
  }, qr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
151
151
  function Hr(e) {
@@ -153,24 +153,24 @@ function Hr(e) {
153
153
  }
154
154
  const Vr = (e) => {
155
155
  const t = new Array(10), r = (s, o) => {
156
- if (Re(s)) {
156
+ if (Te(s)) {
157
157
  if (t.indexOf(s) >= 0)
158
158
  return;
159
- if (Te(s))
159
+ if (Ce(s))
160
160
  return s;
161
161
  if (!("toJSON" in s)) {
162
162
  t[o] = s;
163
- const i = je(s) ? [] : {};
164
- return Ie(s, (a, l) => {
165
- const h = r(a, o + 1);
166
- !be(h) && (i[l] = h);
163
+ const i = we(s) ? [] : {};
164
+ return Re(s, (a, l) => {
165
+ const g = r(a, o + 1);
166
+ !ye(g) && (i[l] = g);
167
167
  }), t[o] = void 0, i;
168
168
  }
169
169
  }
170
170
  return s;
171
171
  };
172
172
  return r(e, 0);
173
- }, Yr = ae("AsyncFunction"), Kr = (e) => e && (Re(e) || te(e)) && te(e.then) && te(e.catch), Wt = ((e, t) => e ? setImmediate : t ? ((r, s) => (pe.addEventListener("message", ({ source: o, data: i }) => {
173
+ }, Yr = se("AsyncFunction"), Kr = (e) => e && (Te(e) || te(e)) && te(e.then) && te(e.catch), Wt = ((e, t) => e ? setImmediate : t ? ((r, s) => (pe.addEventListener("message", ({ source: o, data: i }) => {
174
174
  o === pe && i === r && s.length && s.shift()();
175
175
  }, !1), (o) => {
176
176
  s.push(o), pe.postMessage(r, "*");
@@ -178,22 +178,22 @@ const Vr = (e) => {
178
178
  typeof setImmediate == "function",
179
179
  te(pe.postMessage)
180
180
  ), Jr = typeof queueMicrotask < "u" ? queueMicrotask.bind(pe) : typeof process < "u" && process.nextTick || Wt, Xr = (e) => e != null && te(e[Le]), u = {
181
- isArray: je,
181
+ isArray: we,
182
182
  isArrayBuffer: Dt,
183
- isBuffer: Te,
183
+ isBuffer: Ce,
184
184
  isFormData: vr,
185
185
  isArrayBufferView: fr,
186
186
  isString: xr,
187
187
  isNumber: Ft,
188
188
  isBoolean: hr,
189
- isObject: Re,
189
+ isObject: Te,
190
190
  isPlainObject: _e,
191
191
  isEmptyObject: gr,
192
192
  isReadableStream: kr,
193
193
  isRequest: Er,
194
194
  isResponse: Cr,
195
195
  isHeaders: Tr,
196
- isUndefined: be,
196
+ isUndefined: ye,
197
197
  isDate: mr,
198
198
  isFile: yr,
199
199
  isBlob: br,
@@ -203,7 +203,7 @@ const Vr = (e) => {
203
203
  isURLSearchParams: Sr,
204
204
  isTypedArray: Nr,
205
205
  isFileList: wr,
206
- forEach: Ie,
206
+ forEach: Re,
207
207
  merge: Qe,
208
208
  extend: Ir,
209
209
  trim: Rr,
@@ -211,7 +211,7 @@ const Vr = (e) => {
211
211
  inherits: Or,
212
212
  toFlatObject: zr,
213
213
  kindOf: Me,
214
- kindOfTest: ae,
214
+ kindOfTest: se,
215
215
  endsWith: Ar,
216
216
  toArray: _r,
217
217
  forEachEntry: $r,
@@ -286,8 +286,8 @@ A.from = (e, t, r, s, o, i) => {
286
286
  u.toFlatObject(e, a, function(c) {
287
287
  return c !== Error.prototype;
288
288
  }, (p) => p !== "isAxiosError");
289
- const l = e && e.message ? e.message : "Error", h = t == null && e ? e.code : t;
290
- return A.call(a, l, h, r, s, o), e && a.cause == null && Object.defineProperty(a, "cause", { value: e, configurable: !0 }), a.name = e && e.name || "Error", i && Object.assign(a, i), a;
289
+ const l = e && e.message ? e.message : "Error", g = t == null && e ? e.code : t;
290
+ return A.call(a, l, g, r, s, o), e && a.cause == null && Object.defineProperty(a, "cause", { value: e, configurable: !0 }), a.name = e && e.name || "Error", i && Object.assign(a, i), a;
291
291
  };
292
292
  const Gr = null;
293
293
  function et(e) {
@@ -314,10 +314,10 @@ function We(e, t, r) {
314
314
  metaTokens: !0,
315
315
  dots: !1,
316
316
  indexes: !1
317
- }, !1, function(b, g) {
318
- return !u.isUndefined(g[b]);
317
+ }, !1, function(w, h) {
318
+ return !u.isUndefined(h[w]);
319
319
  });
320
- const s = r.metaTokens, o = r.visitor || c, i = r.dots, a = r.indexes, h = (r.Blob || typeof Blob < "u" && Blob) && u.isSpecCompliantForm(t);
320
+ const s = r.metaTokens, o = r.visitor || c, i = r.dots, a = r.indexes, g = (r.Blob || typeof Blob < "u" && Blob) && u.isSpecCompliantForm(t);
321
321
  if (!u.isFunction(o))
322
322
  throw new TypeError("visitor must be a function");
323
323
  function p(d) {
@@ -326,49 +326,49 @@ function We(e, t, r) {
326
326
  return d.toISOString();
327
327
  if (u.isBoolean(d))
328
328
  return d.toString();
329
- if (!h && u.isBlob(d))
329
+ if (!g && u.isBlob(d))
330
330
  throw new A("Blob is not supported. Use a Buffer instead.");
331
- return u.isArrayBuffer(d) || u.isTypedArray(d) ? h && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
331
+ return u.isArrayBuffer(d) || u.isTypedArray(d) ? g && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
332
332
  }
333
- function c(d, b, g) {
333
+ function c(d, w, h) {
334
334
  let $ = d;
335
- if (d && !g && typeof d == "object") {
336
- if (u.endsWith(b, "{}"))
337
- b = s ? b : b.slice(0, -2), d = JSON.stringify(d);
338
- else if (u.isArray(d) && Zr(d) || (u.isFileList(d) || u.endsWith(b, "[]")) && ($ = u.toArray(d)))
339
- return b = Vt(b), $.forEach(function(P, E) {
335
+ if (d && !h && typeof d == "object") {
336
+ if (u.endsWith(w, "{}"))
337
+ w = s ? w : w.slice(0, -2), d = JSON.stringify(d);
338
+ else if (u.isArray(d) && Zr(d) || (u.isFileList(d) || u.endsWith(w, "[]")) && ($ = u.toArray(d)))
339
+ return w = Vt(w), $.forEach(function(P, k) {
340
340
  !(u.isUndefined(P) || P === null) && t.append(
341
341
  // eslint-disable-next-line no-nested-ternary
342
- a === !0 ? ft([b], E, i) : a === null ? b : b + "[]",
342
+ a === !0 ? ft([w], k, i) : a === null ? w : w + "[]",
343
343
  p(P)
344
344
  );
345
345
  }), !1;
346
346
  }
347
- return et(d) ? !0 : (t.append(ft(g, b, i), p(d)), !1);
347
+ return et(d) ? !0 : (t.append(ft(h, w, i), p(d)), !1);
348
348
  }
349
349
  const m = [], R = Object.assign(Qr, {
350
350
  defaultVisitor: c,
351
351
  convertValue: p,
352
352
  isVisitable: et
353
353
  });
354
- function v(d, b) {
354
+ function j(d, w) {
355
355
  if (!u.isUndefined(d)) {
356
356
  if (m.indexOf(d) !== -1)
357
- throw Error("Circular reference detected in " + b.join("."));
357
+ throw Error("Circular reference detected in " + w.join("."));
358
358
  m.push(d), u.forEach(d, function($, _) {
359
359
  (!(u.isUndefined($) || $ === null) && o.call(
360
360
  t,
361
361
  $,
362
362
  u.isString(_) ? _.trim() : _,
363
- b,
363
+ w,
364
364
  R
365
- )) === !0 && v($, b ? b.concat(_) : [_]);
365
+ )) === !0 && j($, w ? w.concat(_) : [_]);
366
366
  }), m.pop();
367
367
  }
368
368
  }
369
369
  if (!u.isObject(e))
370
370
  throw new TypeError("data must be an object");
371
- return v(e), t;
371
+ return j(e), t;
372
372
  }
373
373
  function xt(e) {
374
374
  const t = {
@@ -519,8 +519,8 @@ function Xt(e) {
519
519
  function t(r, s, o, i) {
520
520
  let a = r[i++];
521
521
  if (a === "__proto__") return !0;
522
- const l = Number.isFinite(+a), h = i >= r.length;
523
- return a = !a && u.isArray(o) ? o.length : a, h ? (u.hasOwnProp(o, a) ? o[a] = [o[a], s] : o[a] = s, !l) : ((!o[a] || !u.isObject(o[a])) && (o[a] = []), t(r, s, o[a], i) && u.isArray(o[a]) && (o[a] = pn(o[a])), !l);
522
+ const l = Number.isFinite(+a), g = i >= r.length;
523
+ return a = !a && u.isArray(o) ? o.length : a, g ? (u.hasOwnProp(o, a) ? o[a] = [o[a], s] : o[a] = s, !l) : ((!o[a] || !u.isObject(o[a])) && (o[a] = []), t(r, s, o[a], i) && u.isArray(o[a]) && (o[a] = pn(o[a])), !l);
524
524
  }
525
525
  if (u.isFormData(e) && u.isFunction(e.entries)) {
526
526
  const r = {};
@@ -540,7 +540,7 @@ function fn(e, t, r) {
540
540
  }
541
541
  return (r || JSON.stringify)(e);
542
542
  }
543
- const Pe = {
543
+ const Ie = {
544
544
  transitional: Jt,
545
545
  adapter: ["xhr", "http", "fetch"],
546
546
  transformRequest: [function(t, r) {
@@ -558,10 +558,10 @@ const Pe = {
558
558
  if (s.indexOf("application/x-www-form-urlencoded") > -1)
559
559
  return dn(t, this.formSerializer).toString();
560
560
  if ((l = u.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
561
- const h = this.env && this.env.FormData;
561
+ const g = this.env && this.env.FormData;
562
562
  return We(
563
563
  l ? { "files[]": t } : t,
564
- h && new h(),
564
+ g && new g(),
565
565
  this.formSerializer
566
566
  );
567
567
  }
@@ -569,7 +569,7 @@ const Pe = {
569
569
  return i || o ? (r.setContentType("application/json", !1), fn(t)) : t;
570
570
  }],
571
571
  transformResponse: [function(t) {
572
- const r = this.transitional || Pe.transitional, s = r && r.forcedJSONParsing, o = this.responseType === "json";
572
+ const r = this.transitional || Ie.transitional, s = r && r.forcedJSONParsing, o = this.responseType === "json";
573
573
  if (u.isResponse(t) || u.isReadableStream(t))
574
574
  return t;
575
575
  if (t && u.isString(t) && (s && !this.responseType || o)) {
@@ -607,7 +607,7 @@ const Pe = {
607
607
  }
608
608
  };
609
609
  u.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
610
- Pe.headers[e] = {};
610
+ Ie.headers[e] = {};
611
611
  });
612
612
  const xn = u.toObjectSet([
613
613
  "age",
@@ -635,7 +635,7 @@ const xn = u.toObjectSet([
635
635
  o = a.indexOf(":"), r = a.substring(0, o).trim().toLowerCase(), s = a.substring(o + 1).trim(), !(!r || t[r] && xn[r]) && (r === "set-cookie" ? t[r] ? t[r].push(s) : t[r] = [s] : t[r] = t[r] ? t[r] + ", " + s : s);
636
636
  }), t;
637
637
  }, gt = Symbol("internals");
638
- function ke(e) {
638
+ function Se(e) {
639
639
  return e && String(e).trim().toLowerCase();
640
640
  }
641
641
  function Ne(e) {
@@ -679,24 +679,24 @@ let re = class {
679
679
  }
680
680
  set(t, r, s) {
681
681
  const o = this;
682
- function i(l, h, p) {
683
- const c = ke(h);
682
+ function i(l, g, p) {
683
+ const c = Se(g);
684
684
  if (!c)
685
685
  throw new Error("header name must be a non-empty string");
686
686
  const m = u.findKey(o, c);
687
- (!m || o[m] === void 0 || p === !0 || p === void 0 && o[m] !== !1) && (o[m || h] = Ne(l));
687
+ (!m || o[m] === void 0 || p === !0 || p === void 0 && o[m] !== !1) && (o[m || g] = Ne(l));
688
688
  }
689
- const a = (l, h) => u.forEach(l, (p, c) => i(p, c, h));
689
+ const a = (l, g) => u.forEach(l, (p, c) => i(p, c, g));
690
690
  if (u.isPlainObject(t) || t instanceof this.constructor)
691
691
  a(t, r);
692
692
  else if (u.isString(t) && (t = t.trim()) && !mn(t))
693
693
  a(hn(t), r);
694
694
  else if (u.isObject(t) && u.isIterable(t)) {
695
- let l = {}, h, p;
695
+ let l = {}, g, p;
696
696
  for (const c of t) {
697
697
  if (!u.isArray(c))
698
698
  throw TypeError("Object iterator must return a key-value pair");
699
- l[p = c[0]] = (h = l[p]) ? u.isArray(h) ? [...h, c[1]] : [h, c[1]] : c[1];
699
+ l[p = c[0]] = (g = l[p]) ? u.isArray(g) ? [...g, c[1]] : [g, c[1]] : c[1];
700
700
  }
701
701
  a(l, r);
702
702
  } else
@@ -704,7 +704,7 @@ let re = class {
704
704
  return this;
705
705
  }
706
706
  get(t, r) {
707
- if (t = ke(t), t) {
707
+ if (t = Se(t), t) {
708
708
  const s = u.findKey(this, t);
709
709
  if (s) {
710
710
  const o = this[s];
@@ -721,7 +721,7 @@ let re = class {
721
721
  }
722
722
  }
723
723
  has(t, r) {
724
- if (t = ke(t), t) {
724
+ if (t = Se(t), t) {
725
725
  const s = u.findKey(this, t);
726
726
  return !!(s && this[s] !== void 0 && (!r || Ke(this, this[s], s, r)));
727
727
  }
@@ -731,7 +731,7 @@ let re = class {
731
731
  const s = this;
732
732
  let o = !1;
733
733
  function i(a) {
734
- if (a = ke(a), a) {
734
+ if (a = Se(a), a) {
735
735
  const l = u.findKey(s, a);
736
736
  l && (!r || Ke(s, s[l], l, r)) && (delete s[l], o = !0);
737
737
  }
@@ -793,7 +793,7 @@ let re = class {
793
793
  accessors: {}
794
794
  }).accessors, o = this.prototype;
795
795
  function i(a) {
796
- const l = ke(a);
796
+ const l = Se(a);
797
797
  s[l] || (bn(o, a), s[l] = !0);
798
798
  }
799
799
  return u.isArray(t) ? t.forEach(i) : i(t), this;
@@ -811,7 +811,7 @@ u.reduceDescriptors(re.prototype, ({ value: e }, t) => {
811
811
  });
812
812
  u.freezeMethods(re);
813
813
  function Je(e, t) {
814
- const r = this || Pe, s = t || r, o = re.from(s.headers);
814
+ const r = this || Ie, s = t || r, o = re.from(s.headers);
815
815
  let i = s.data;
816
816
  return u.forEach(e, function(l) {
817
817
  i = l.call(r, i, o.normalize(), t ? t.status : void 0);
@@ -820,10 +820,10 @@ function Je(e, t) {
820
820
  function Gt(e) {
821
821
  return !!(e && e.__CANCEL__);
822
822
  }
823
- function ve(e, t, r) {
823
+ function je(e, t, r) {
824
824
  A.call(this, e ?? "canceled", A.ERR_CANCELED, t, r), this.name = "CanceledError";
825
825
  }
826
- u.inherits(ve, A, {
826
+ u.inherits(je, A, {
827
827
  __CANCEL__: !0
828
828
  });
829
829
  function Zt(e, t, r) {
@@ -844,16 +844,16 @@ function jn(e, t) {
844
844
  e = e || 10;
845
845
  const r = new Array(e), s = new Array(e);
846
846
  let o = 0, i = 0, a;
847
- return t = t !== void 0 ? t : 1e3, function(h) {
847
+ return t = t !== void 0 ? t : 1e3, function(g) {
848
848
  const p = Date.now(), c = s[i];
849
- a || (a = p), r[o] = h, s[o] = p;
849
+ a || (a = p), r[o] = g, s[o] = p;
850
850
  let m = i, R = 0;
851
851
  for (; m !== o; )
852
852
  R += r[m++], m = m % e;
853
853
  if (o = (o + 1) % e, o === i && (i = (i + 1) % e), p - a < t)
854
854
  return;
855
- const v = c && p - c;
856
- return v ? Math.round(R * 1e3 / v) : void 0;
855
+ const j = c && p - c;
856
+ return j ? Math.round(R * 1e3 / j) : void 0;
857
857
  };
858
858
  }
859
859
  function vn(e, t) {
@@ -872,13 +872,13 @@ const Fe = (e, t, r = 3) => {
872
872
  let s = 0;
873
873
  const o = jn(50, 250);
874
874
  return vn((i) => {
875
- const a = i.loaded, l = i.lengthComputable ? i.total : void 0, h = a - s, p = o(h), c = a <= l;
875
+ const a = i.loaded, l = i.lengthComputable ? i.total : void 0, g = a - s, p = o(g), c = a <= l;
876
876
  s = a;
877
877
  const m = {
878
878
  loaded: a,
879
879
  total: l,
880
880
  progress: l ? a / l : void 0,
881
- bytes: h,
881
+ bytes: g,
882
882
  rate: p || void 0,
883
883
  estimated: p && l && c ? (l - a) / p : void 0,
884
884
  event: i,
@@ -963,7 +963,7 @@ function he(e, t) {
963
963
  if (m in e)
964
964
  return s(void 0, p);
965
965
  }
966
- const h = {
966
+ const g = {
967
967
  url: i,
968
968
  method: i,
969
969
  data: i,
@@ -995,7 +995,7 @@ function he(e, t) {
995
995
  headers: (p, c, m) => o(bt(p), bt(c), m, !0)
996
996
  };
997
997
  return u.forEach(Object.keys({ ...e, ...t }), function(c) {
998
- const m = h[c] || o, R = m(e[c], t[c], c);
998
+ const m = g[c] || o, R = m(e[c], t[c], c);
999
999
  u.isUndefined(R) && m !== l || (r[c] = R);
1000
1000
  }), r;
1001
1001
  }
@@ -1009,15 +1009,15 @@ const er = (e) => {
1009
1009
  if (ee.hasStandardBrowserEnv || ee.hasStandardBrowserWebWorkerEnv)
1010
1010
  a.setContentType(void 0);
1011
1011
  else if (u.isFunction(r.getHeaders)) {
1012
- const h = r.getHeaders(), p = ["content-type", "content-length"];
1013
- Object.entries(h).forEach(([c, m]) => {
1012
+ const g = r.getHeaders(), p = ["content-type", "content-length"];
1013
+ Object.entries(g).forEach(([c, m]) => {
1014
1014
  p.includes(c.toLowerCase()) && a.set(c, m);
1015
1015
  });
1016
1016
  }
1017
1017
  }
1018
1018
  if (ee.hasStandardBrowserEnv && (s && u.isFunction(s) && (s = s(t)), s || s !== !1 && Sn(t.url))) {
1019
- const h = o && i && kn.read(i);
1020
- h && a.set(o, h);
1019
+ const g = o && i && kn.read(i);
1020
+ g && a.set(o, g);
1021
1021
  }
1022
1022
  return t;
1023
1023
  }, Tn = typeof XMLHttpRequest < "u", Rn = Tn && function(e) {
@@ -1025,58 +1025,58 @@ const er = (e) => {
1025
1025
  const o = er(e);
1026
1026
  let i = o.data;
1027
1027
  const a = re.from(o.headers).normalize();
1028
- let { responseType: l, onUploadProgress: h, onDownloadProgress: p } = o, c, m, R, v, d;
1029
- function b() {
1030
- v && v(), d && d(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
1028
+ let { responseType: l, onUploadProgress: g, onDownloadProgress: p } = o, c, m, R, j, d;
1029
+ function w() {
1030
+ j && j(), d && d(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
1031
1031
  }
1032
- let g = new XMLHttpRequest();
1033
- g.open(o.method.toUpperCase(), o.url, !0), g.timeout = o.timeout;
1032
+ let h = new XMLHttpRequest();
1033
+ h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
1034
1034
  function $() {
1035
- if (!g)
1035
+ if (!h)
1036
1036
  return;
1037
1037
  const P = re.from(
1038
- "getAllResponseHeaders" in g && g.getAllResponseHeaders()
1038
+ "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1039
1039
  ), L = {
1040
- data: !l || l === "text" || l === "json" ? g.responseText : g.response,
1041
- status: g.status,
1042
- statusText: g.statusText,
1040
+ data: !l || l === "text" || l === "json" ? h.responseText : h.response,
1041
+ status: h.status,
1042
+ statusText: h.statusText,
1043
1043
  headers: P,
1044
1044
  config: e,
1045
- request: g
1045
+ request: h
1046
1046
  };
1047
1047
  Zt(function(O) {
1048
- r(O), b();
1048
+ r(O), w();
1049
1049
  }, function(O) {
1050
- s(O), b();
1051
- }, L), g = null;
1050
+ s(O), w();
1051
+ }, L), h = null;
1052
1052
  }
1053
- "onloadend" in g ? g.onloadend = $ : g.onreadystatechange = function() {
1054
- !g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.indexOf("file:") === 0) || setTimeout($);
1055
- }, g.onabort = function() {
1056
- g && (s(new A("Request aborted", A.ECONNABORTED, e, g)), g = null);
1057
- }, g.onerror = function(E) {
1058
- const L = E && E.message ? E.message : "Network Error", y = new A(L, A.ERR_NETWORK, e, g);
1059
- y.event = E || null, s(y), g = null;
1060
- }, g.ontimeout = function() {
1061
- let E = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1053
+ "onloadend" in h ? h.onloadend = $ : h.onreadystatechange = function() {
1054
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout($);
1055
+ }, h.onabort = function() {
1056
+ h && (s(new A("Request aborted", A.ECONNABORTED, e, h)), h = null);
1057
+ }, h.onerror = function(k) {
1058
+ const L = k && k.message ? k.message : "Network Error", y = new A(L, A.ERR_NETWORK, e, h);
1059
+ y.event = k || null, s(y), h = null;
1060
+ }, h.ontimeout = function() {
1061
+ let k = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1062
1062
  const L = o.transitional || Jt;
1063
- o.timeoutErrorMessage && (E = o.timeoutErrorMessage), s(new A(
1064
- E,
1063
+ o.timeoutErrorMessage && (k = o.timeoutErrorMessage), s(new A(
1064
+ k,
1065
1065
  L.clarifyTimeoutError ? A.ETIMEDOUT : A.ECONNABORTED,
1066
1066
  e,
1067
- g
1068
- )), g = null;
1069
- }, i === void 0 && a.setContentType(null), "setRequestHeader" in g && u.forEach(a.toJSON(), function(E, L) {
1070
- g.setRequestHeader(L, E);
1071
- }), u.isUndefined(o.withCredentials) || (g.withCredentials = !!o.withCredentials), l && l !== "json" && (g.responseType = o.responseType), p && ([R, d] = Fe(p, !0), g.addEventListener("progress", R)), h && g.upload && ([m, v] = Fe(h), g.upload.addEventListener("progress", m), g.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = (P) => {
1072
- g && (s(!P || P.type ? new ve(null, e, g) : P), g.abort(), g = null);
1067
+ h
1068
+ )), h = null;
1069
+ }, i === void 0 && a.setContentType(null), "setRequestHeader" in h && u.forEach(a.toJSON(), function(k, L) {
1070
+ h.setRequestHeader(L, k);
1071
+ }), u.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), l && l !== "json" && (h.responseType = o.responseType), p && ([R, d] = Fe(p, !0), h.addEventListener("progress", R)), g && h.upload && ([m, j] = Fe(g), h.upload.addEventListener("progress", m), h.upload.addEventListener("loadend", j)), (o.cancelToken || o.signal) && (c = (P) => {
1072
+ h && (s(!P || P.type ? new je(null, e, h) : P), h.abort(), h = null);
1073
1073
  }, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
1074
1074
  const _ = wn(o.url);
1075
1075
  if (_ && ee.protocols.indexOf(_) === -1) {
1076
1076
  s(new A("Unsupported protocol " + _ + ":", A.ERR_BAD_REQUEST, e));
1077
1077
  return;
1078
1078
  }
1079
- g.send(i || null);
1079
+ h.send(i || null);
1080
1080
  });
1081
1081
  }, In = (e, t) => {
1082
1082
  const { length: r } = e = e ? e.filter(Boolean) : [];
@@ -1086,7 +1086,7 @@ const er = (e) => {
1086
1086
  if (!o) {
1087
1087
  o = !0, l();
1088
1088
  const c = p instanceof Error ? p : this.reason;
1089
- s.abort(c instanceof A ? c : new ve(c instanceof Error ? c.message : c));
1089
+ s.abort(c instanceof A ? c : new je(c instanceof Error ? c.message : c));
1090
1090
  }
1091
1091
  };
1092
1092
  let a = t && setTimeout(() => {
@@ -1098,8 +1098,8 @@ const er = (e) => {
1098
1098
  }), e = null);
1099
1099
  };
1100
1100
  e.forEach((p) => p.addEventListener("abort", i));
1101
- const { signal: h } = s;
1102
- return h.unsubscribe = () => u.asap(l), h;
1101
+ const { signal: g } = s;
1102
+ return g.unsubscribe = () => u.asap(l), g;
1103
1103
  }
1104
1104
  }, Pn = function* (e, t) {
1105
1105
  let r = e.byteLength;
@@ -1131,15 +1131,15 @@ const er = (e) => {
1131
1131
  }
1132
1132
  }, wt = (e, t, r, s) => {
1133
1133
  const o = On(e, t);
1134
- let i = 0, a, l = (h) => {
1135
- a || (a = !0, s && s(h));
1134
+ let i = 0, a, l = (g) => {
1135
+ a || (a = !0, s && s(g));
1136
1136
  };
1137
1137
  return new ReadableStream({
1138
- async pull(h) {
1138
+ async pull(g) {
1139
1139
  try {
1140
1140
  const { done: p, value: c } = await o.next();
1141
1141
  if (p) {
1142
- l(), h.close();
1142
+ l(), g.close();
1143
1143
  return;
1144
1144
  }
1145
1145
  let m = c.byteLength;
@@ -1147,13 +1147,13 @@ const er = (e) => {
1147
1147
  let R = i += m;
1148
1148
  r(R);
1149
1149
  }
1150
- h.enqueue(new Uint8Array(c));
1150
+ g.enqueue(new Uint8Array(c));
1151
1151
  } catch (p) {
1152
1152
  throw l(p), p;
1153
1153
  }
1154
1154
  },
1155
- cancel(h) {
1156
- return l(h), o.return();
1155
+ cancel(g) {
1156
+ return l(g), o.return();
1157
1157
  }
1158
1158
  }, {
1159
1159
  highWaterMark: 2
@@ -1177,25 +1177,25 @@ const er = (e) => {
1177
1177
  const { fetch: t, Request: r, Response: s } = e, o = t ? ze(t) : typeof fetch == "function", i = ze(r), a = ze(s);
1178
1178
  if (!o)
1179
1179
  return !1;
1180
- const l = o && ze(vt), h = o && (typeof St == "function" ? /* @__PURE__ */ ((d) => (b) => d.encode(b))(new St()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), p = i && l && kt(() => {
1180
+ const l = o && ze(vt), g = o && (typeof St == "function" ? /* @__PURE__ */ ((d) => (w) => d.encode(w))(new St()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), p = i && l && kt(() => {
1181
1181
  let d = !1;
1182
- const b = new r(ee.origin, {
1182
+ const w = new r(ee.origin, {
1183
1183
  body: new vt(),
1184
1184
  method: "POST",
1185
1185
  get duplex() {
1186
1186
  return d = !0, "half";
1187
1187
  }
1188
1188
  }).headers.has("Content-Type");
1189
- return d && !b;
1189
+ return d && !w;
1190
1190
  }), c = a && l && kt(() => u.isReadableStream(new s("").body)), m = {
1191
1191
  stream: c && ((d) => d.body)
1192
1192
  };
1193
1193
  o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((d) => {
1194
- !m[d] && (m[d] = (b, g) => {
1195
- let $ = b && b[d];
1194
+ !m[d] && (m[d] = (w, h) => {
1195
+ let $ = w && w[d];
1196
1196
  if ($)
1197
- return $.call(b);
1198
- throw new A(`Response type '${d}' is not supported`, A.ERR_NOT_SUPPORT, g);
1197
+ return $.call(w);
1198
+ throw new A(`Response type '${d}' is not supported`, A.ERR_NOT_SUPPORT, h);
1199
1199
  });
1200
1200
  });
1201
1201
  const R = async (d) => {
@@ -1211,84 +1211,84 @@ const er = (e) => {
1211
1211
  if (u.isArrayBufferView(d) || u.isArrayBuffer(d))
1212
1212
  return d.byteLength;
1213
1213
  if (u.isURLSearchParams(d) && (d = d + ""), u.isString(d))
1214
- return (await h(d)).byteLength;
1215
- }, v = async (d, b) => {
1216
- const g = u.toFiniteNumber(d.getContentLength());
1217
- return g ?? R(b);
1214
+ return (await g(d)).byteLength;
1215
+ }, j = async (d, w) => {
1216
+ const h = u.toFiniteNumber(d.getContentLength());
1217
+ return h ?? R(w);
1218
1218
  };
1219
1219
  return async (d) => {
1220
1220
  let {
1221
- url: b,
1222
- method: g,
1221
+ url: w,
1222
+ method: h,
1223
1223
  data: $,
1224
1224
  signal: _,
1225
1225
  cancelToken: P,
1226
- timeout: E,
1226
+ timeout: k,
1227
1227
  onDownloadProgress: L,
1228
1228
  onUploadProgress: y,
1229
1229
  responseType: O,
1230
- headers: w,
1231
- withCredentials: D = "same-origin",
1232
- fetchOptions: K
1233
- } = er(d), U = t || fetch;
1230
+ headers: b,
1231
+ withCredentials: N = "same-origin",
1232
+ fetchOptions: J
1233
+ } = er(d), D = t || fetch;
1234
1234
  O = O ? (O + "").toLowerCase() : "text";
1235
- let Y = In([_, P && P.toAbortSignal()], E), Q = null;
1236
- const S = Y && Y.unsubscribe && (() => {
1237
- Y.unsubscribe();
1235
+ let H = In([_, P && P.toAbortSignal()], k), Q = null;
1236
+ const S = H && H.unsubscribe && (() => {
1237
+ H.unsubscribe();
1238
1238
  });
1239
- let Z;
1239
+ let G;
1240
1240
  try {
1241
- if (y && p && g !== "get" && g !== "head" && (Z = await v(w, $)) !== 0) {
1242
- let k = new r(b, {
1241
+ if (y && p && h !== "get" && h !== "head" && (G = await j(b, $)) !== 0) {
1242
+ let x = new r(w, {
1243
1243
  method: "POST",
1244
1244
  body: $,
1245
1245
  duplex: "half"
1246
- }), N;
1247
- if (u.isFormData($) && (N = k.headers.get("content-type")) && w.setContentType(N), k.body) {
1248
- const [B, f] = mt(
1249
- Z,
1246
+ }), T;
1247
+ if (u.isFormData($) && (T = x.headers.get("content-type")) && b.setContentType(T), x.body) {
1248
+ const [U, f] = mt(
1249
+ G,
1250
1250
  Fe(yt(y))
1251
1251
  );
1252
- $ = wt(k.body, jt, B, f);
1252
+ $ = wt(x.body, jt, U, f);
1253
1253
  }
1254
1254
  }
1255
- u.isString(D) || (D = D ? "include" : "omit");
1255
+ u.isString(N) || (N = N ? "include" : "omit");
1256
1256
  const M = i && "credentials" in r.prototype, F = {
1257
- ...K,
1258
- signal: Y,
1259
- method: g.toUpperCase(),
1260
- headers: w.normalize().toJSON(),
1257
+ ...J,
1258
+ signal: H,
1259
+ method: h.toUpperCase(),
1260
+ headers: b.normalize().toJSON(),
1261
1261
  body: $,
1262
1262
  duplex: "half",
1263
- credentials: M ? D : void 0
1263
+ credentials: M ? N : void 0
1264
1264
  };
1265
- Q = i && new r(b, F);
1266
- let T = await (i ? U(Q, K) : U(b, F));
1265
+ Q = i && new r(w, F);
1266
+ let C = await (i ? D(Q, J) : D(w, F));
1267
1267
  const V = c && (O === "stream" || O === "response");
1268
1268
  if (c && (L || V && S)) {
1269
- const k = {};
1270
- ["status", "statusText", "headers"].forEach((j) => {
1271
- k[j] = T[j];
1269
+ const x = {};
1270
+ ["status", "statusText", "headers"].forEach((v) => {
1271
+ x[v] = C[v];
1272
1272
  });
1273
- const N = u.toFiniteNumber(T.headers.get("content-length")), [B, f] = L && mt(
1274
- N,
1273
+ const T = u.toFiniteNumber(C.headers.get("content-length")), [U, f] = L && mt(
1274
+ T,
1275
1275
  Fe(yt(L), !0)
1276
1276
  ) || [];
1277
- T = new s(
1278
- wt(T.body, jt, B, () => {
1277
+ C = new s(
1278
+ wt(C.body, jt, U, () => {
1279
1279
  f && f(), S && S();
1280
1280
  }),
1281
- k
1281
+ x
1282
1282
  );
1283
1283
  }
1284
1284
  O = O || "text";
1285
- let x = await m[u.findKey(m, O) || "text"](T, d);
1286
- return !V && S && S(), await new Promise((k, N) => {
1287
- Zt(k, N, {
1288
- data: x,
1289
- headers: re.from(T.headers),
1290
- status: T.status,
1291
- statusText: T.statusText,
1285
+ let K = await m[u.findKey(m, O) || "text"](C, d);
1286
+ return !V && S && S(), await new Promise((x, T) => {
1287
+ Zt(x, T, {
1288
+ data: K,
1289
+ headers: re.from(C.headers),
1290
+ status: C.status,
1291
+ statusText: C.statusText,
1292
1292
  config: d,
1293
1293
  request: Q
1294
1294
  });
@@ -1309,9 +1309,9 @@ const er = (e) => {
1309
1309
  o,
1310
1310
  r
1311
1311
  ];
1312
- let a = i.length, l = a, h, p, c = Nn;
1312
+ let a = i.length, l = a, g, p, c = Nn;
1313
1313
  for (; l--; )
1314
- h = i[l], p = c.get(h), p === void 0 && c.set(h, p = l ? /* @__PURE__ */ new Map() : _n(t)), c = p;
1314
+ g = i[l], p = c.get(g), p === void 0 && c.set(g, p = l ? /* @__PURE__ */ new Map() : _n(t)), c = p;
1315
1315
  return p;
1316
1316
  };
1317
1317
  tr();
@@ -1348,7 +1348,7 @@ const Et = (e) => `- ${e}`, $n = (e) => u.isFunction(e) || e === null || e === !
1348
1348
  }
1349
1349
  if (!o) {
1350
1350
  const a = Object.entries(i).map(
1351
- ([h, p]) => `adapter ${h} ` + (p === !1 ? "is not supported by the environment" : "is not available in the build")
1351
+ ([g, p]) => `adapter ${g} ` + (p === !1 ? "is not supported by the environment" : "is not available in the build")
1352
1352
  );
1353
1353
  let l = r ? a.length > 1 ? `since :
1354
1354
  ` + a.map(Et).join(`
@@ -1364,13 +1364,13 @@ const Et = (e) => `- ${e}`, $n = (e) => u.isFunction(e) || e === null || e === !
1364
1364
  };
1365
1365
  function Xe(e) {
1366
1366
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1367
- throw new ve(null, e);
1367
+ throw new je(null, e);
1368
1368
  }
1369
1369
  function Ct(e) {
1370
1370
  return Xe(e), e.headers = re.from(e.headers), e.data = Je.call(
1371
1371
  e,
1372
1372
  e.transformRequest
1373
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), rr.getAdapter(e.adapter || Pe.adapter, e)(e).then(function(s) {
1373
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), rr.getAdapter(e.adapter || Ie.adapter, e)(e).then(function(s) {
1374
1374
  return Xe(e), s.data = Je.call(
1375
1375
  e,
1376
1376
  e.transformResponse,
@@ -1420,9 +1420,9 @@ function Un(e, t, r) {
1420
1420
  for (; o-- > 0; ) {
1421
1421
  const i = s[o], a = t[i];
1422
1422
  if (a) {
1423
- const l = e[i], h = l === void 0 || a(l, i, e);
1424
- if (h !== !0)
1425
- throw new A("option " + i + " must be " + h, A.ERR_BAD_OPTION_VALUE);
1423
+ const l = e[i], g = l === void 0 || a(l, i, e);
1424
+ if (g !== !0)
1425
+ throw new A("option " + i + " must be " + g, A.ERR_BAD_OPTION_VALUE);
1426
1426
  continue;
1427
1427
  }
1428
1428
  if (r !== !0)
@@ -1432,7 +1432,7 @@ function Un(e, t, r) {
1432
1432
  const $e = {
1433
1433
  assertOptions: Un,
1434
1434
  validators: qe
1435
- }, ie = $e.validators;
1435
+ }, ae = $e.validators;
1436
1436
  let fe = class {
1437
1437
  constructor(t) {
1438
1438
  this.defaults = t || {}, this.interceptors = {
@@ -1469,17 +1469,17 @@ let fe = class {
1469
1469
  typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = he(this.defaults, r);
1470
1470
  const { transitional: s, paramsSerializer: o, headers: i } = r;
1471
1471
  s !== void 0 && $e.assertOptions(s, {
1472
- silentJSONParsing: ie.transitional(ie.boolean),
1473
- forcedJSONParsing: ie.transitional(ie.boolean),
1474
- clarifyTimeoutError: ie.transitional(ie.boolean)
1472
+ silentJSONParsing: ae.transitional(ae.boolean),
1473
+ forcedJSONParsing: ae.transitional(ae.boolean),
1474
+ clarifyTimeoutError: ae.transitional(ae.boolean)
1475
1475
  }, !1), o != null && (u.isFunction(o) ? r.paramsSerializer = {
1476
1476
  serialize: o
1477
1477
  } : $e.assertOptions(o, {
1478
- encode: ie.function,
1479
- serialize: ie.function
1478
+ encode: ae.function,
1479
+ serialize: ae.function
1480
1480
  }, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), $e.assertOptions(r, {
1481
- baseUrl: ie.spelling("baseURL"),
1482
- withXsrfToken: ie.spelling("withXSRFToken")
1481
+ baseUrl: ae.spelling("baseURL"),
1482
+ withXsrfToken: ae.spelling("withXSRFToken")
1483
1483
  }, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
1484
1484
  let a = i && u.merge(
1485
1485
  i.common,
@@ -1492,34 +1492,34 @@ let fe = class {
1492
1492
  }
1493
1493
  ), r.headers = re.concat(a, i);
1494
1494
  const l = [];
1495
- let h = !0;
1496
- this.interceptors.request.forEach(function(b) {
1497
- typeof b.runWhen == "function" && b.runWhen(r) === !1 || (h = h && b.synchronous, l.unshift(b.fulfilled, b.rejected));
1495
+ let g = !0;
1496
+ this.interceptors.request.forEach(function(w) {
1497
+ typeof w.runWhen == "function" && w.runWhen(r) === !1 || (g = g && w.synchronous, l.unshift(w.fulfilled, w.rejected));
1498
1498
  });
1499
1499
  const p = [];
1500
- this.interceptors.response.forEach(function(b) {
1501
- p.push(b.fulfilled, b.rejected);
1500
+ this.interceptors.response.forEach(function(w) {
1501
+ p.push(w.fulfilled, w.rejected);
1502
1502
  });
1503
1503
  let c, m = 0, R;
1504
- if (!h) {
1504
+ if (!g) {
1505
1505
  const d = [Ct.bind(this), void 0];
1506
1506
  for (d.unshift(...l), d.push(...p), R = d.length, c = Promise.resolve(r); m < R; )
1507
1507
  c = c.then(d[m++], d[m++]);
1508
1508
  return c;
1509
1509
  }
1510
1510
  R = l.length;
1511
- let v = r;
1511
+ let j = r;
1512
1512
  for (; m < R; ) {
1513
- const d = l[m++], b = l[m++];
1513
+ const d = l[m++], w = l[m++];
1514
1514
  try {
1515
- v = d(v);
1516
- } catch (g) {
1517
- b.call(this, g);
1515
+ j = d(j);
1516
+ } catch (h) {
1517
+ w.call(this, h);
1518
1518
  break;
1519
1519
  }
1520
1520
  }
1521
1521
  try {
1522
- c = Ct.call(this, v);
1522
+ c = Ct.call(this, j);
1523
1523
  } catch (d) {
1524
1524
  return Promise.reject(d);
1525
1525
  }
@@ -1581,7 +1581,7 @@ let Dn = class sr {
1581
1581
  s.unsubscribe(i);
1582
1582
  }, a;
1583
1583
  }, t(function(i, a, l) {
1584
- s.reason || (s.reason = new ve(i, a, l), r(s.reason));
1584
+ s.reason || (s.reason = new je(i, a, l), r(s.reason));
1585
1585
  });
1586
1586
  }
1587
1587
  /**
@@ -1712,26 +1712,26 @@ function or(e) {
1712
1712
  return or(he(e, o));
1713
1713
  }, r;
1714
1714
  }
1715
- const W = or(Pe);
1716
- W.Axios = fe;
1717
- W.CanceledError = ve;
1718
- W.CancelToken = Dn;
1719
- W.isCancel = Gt;
1720
- W.VERSION = nr;
1721
- W.toFormData = We;
1722
- W.AxiosError = A;
1723
- W.Cancel = W.CanceledError;
1724
- W.all = function(t) {
1715
+ const B = or(Ie);
1716
+ B.Axios = fe;
1717
+ B.CanceledError = je;
1718
+ B.CancelToken = Dn;
1719
+ B.isCancel = Gt;
1720
+ B.VERSION = nr;
1721
+ B.toFormData = We;
1722
+ B.AxiosError = A;
1723
+ B.Cancel = B.CanceledError;
1724
+ B.all = function(t) {
1725
1725
  return Promise.all(t);
1726
1726
  };
1727
- W.spread = Fn;
1728
- W.isAxiosError = Ln;
1729
- W.mergeConfig = he;
1730
- W.AxiosHeaders = re;
1731
- W.formToJSON = (e) => Xt(u.isHTMLForm(e) ? new FormData(e) : e);
1732
- W.getAdapter = rr.getAdapter;
1733
- W.HttpStatusCode = nt;
1734
- W.default = W;
1727
+ B.spread = Fn;
1728
+ B.isAxiosError = Ln;
1729
+ B.mergeConfig = he;
1730
+ B.AxiosHeaders = re;
1731
+ B.formToJSON = (e) => Xt(u.isHTMLForm(e) ? new FormData(e) : e);
1732
+ B.getAdapter = rr.getAdapter;
1733
+ B.HttpStatusCode = nt;
1734
+ B.default = B;
1735
1735
  const {
1736
1736
  Axios: Ks,
1737
1737
  AxiosError: Js,
@@ -1749,7 +1749,7 @@ const {
1749
1749
  formToJSON: io,
1750
1750
  getAdapter: lo,
1751
1751
  mergeConfig: co
1752
- } = W;
1752
+ } = B;
1753
1753
  class uo {
1754
1754
  baseUrl;
1755
1755
  apiKey;
@@ -1762,7 +1762,7 @@ class uo {
1762
1762
  constructor(t) {
1763
1763
  if (!t || !t.baseUrl)
1764
1764
  throw new Error("NeuctraAuthixClient: 'baseUrl' is required in config");
1765
- this.baseUrl = t.baseUrl.replace(/\/$/, ""), this.apiKey = t.apiKey || null, this.appId = t.appId || null, this.client = W.create({
1765
+ this.baseUrl = t.baseUrl.replace(/\/$/, ""), this.apiKey = t.apiKey || null, this.appId = t.appId || null, this.client = B.create({
1766
1766
  baseURL: this.baseUrl,
1767
1767
  headers: {
1768
1768
  "Content-Type": "application/json",
@@ -1991,7 +1991,7 @@ class uo {
1991
1991
  return this.request("DELETE", `/users/${r}/data/${s}`);
1992
1992
  }
1993
1993
  }
1994
- var Ae = { exports: {} }, Ee = {};
1994
+ var Ae = { exports: {} }, ke = {};
1995
1995
  /**
1996
1996
  * @license React
1997
1997
  * react-jsx-runtime.production.js
@@ -2003,7 +2003,7 @@ var Ae = { exports: {} }, Ee = {};
2003
2003
  */
2004
2004
  var Rt;
2005
2005
  function Mn() {
2006
- if (Rt) return Ee;
2006
+ if (Rt) return ke;
2007
2007
  Rt = 1;
2008
2008
  var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
2009
2009
  function r(s, o, i) {
@@ -2021,9 +2021,9 @@ function Mn() {
2021
2021
  props: i
2022
2022
  };
2023
2023
  }
2024
- return Ee.Fragment = t, Ee.jsx = r, Ee.jsxs = r, Ee;
2024
+ return ke.Fragment = t, ke.jsx = r, ke.jsxs = r, ke;
2025
2025
  }
2026
- var Ce = {};
2026
+ var Ee = {};
2027
2027
  /**
2028
2028
  * @license React
2029
2029
  * react-jsx-runtime.development.js
@@ -2039,41 +2039,41 @@ function Bn() {
2039
2039
  function e(x) {
2040
2040
  if (x == null) return null;
2041
2041
  if (typeof x == "function")
2042
- return x.$$typeof === K ? null : x.displayName || x.name || null;
2042
+ return x.$$typeof === D ? null : x.displayName || x.name || null;
2043
2043
  if (typeof x == "string") return x;
2044
2044
  switch (x) {
2045
- case b:
2045
+ case h:
2046
2046
  return "Fragment";
2047
- case $:
2047
+ case _:
2048
2048
  return "Profiler";
2049
- case g:
2049
+ case $:
2050
2050
  return "StrictMode";
2051
- case L:
2052
- return "Suspense";
2053
2051
  case y:
2052
+ return "Suspense";
2053
+ case O:
2054
2054
  return "SuspenseList";
2055
- case D:
2055
+ case J:
2056
2056
  return "Activity";
2057
2057
  }
2058
2058
  if (typeof x == "object")
2059
2059
  switch (typeof x.tag == "number" && console.error(
2060
2060
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
2061
2061
  ), x.$$typeof) {
2062
- case d:
2062
+ case w:
2063
2063
  return "Portal";
2064
+ case k:
2065
+ return x.displayName || "Context";
2064
2066
  case P:
2065
- return (x.displayName || "Context") + ".Provider";
2066
- case _:
2067
2067
  return (x._context.displayName || "Context") + ".Consumer";
2068
- case E:
2069
- var k = x.render;
2070
- return x = x.displayName, x || (x = k.displayName || k.name || "", x = x !== "" ? "ForwardRef(" + x + ")" : "ForwardRef"), x;
2071
- case O:
2072
- return k = x.displayName || null, k !== null ? k : e(x.type) || "Memo";
2073
- case w:
2074
- k = x._payload, x = x._init;
2068
+ case L:
2069
+ var T = x.render;
2070
+ return x = x.displayName, x || (x = T.displayName || T.name || "", x = x !== "" ? "ForwardRef(" + x + ")" : "ForwardRef"), x;
2071
+ case b:
2072
+ return T = x.displayName || null, T !== null ? T : e(x.type) || "Memo";
2073
+ case N:
2074
+ T = x._payload, x = x._init;
2075
2075
  try {
2076
- return e(x(k));
2076
+ return e(x(T));
2077
2077
  } catch {
2078
2078
  }
2079
2079
  }
@@ -2085,73 +2085,74 @@ function Bn() {
2085
2085
  function r(x) {
2086
2086
  try {
2087
2087
  t(x);
2088
- var k = !1;
2088
+ var T = !1;
2089
2089
  } catch {
2090
- k = !0;
2090
+ T = !0;
2091
2091
  }
2092
- if (k) {
2093
- k = console;
2094
- var N = k.error, B = typeof Symbol == "function" && Symbol.toStringTag && x[Symbol.toStringTag] || x.constructor.name || "Object";
2095
- return N.call(
2096
- k,
2092
+ if (T) {
2093
+ T = console;
2094
+ var U = T.error, f = typeof Symbol == "function" && Symbol.toStringTag && x[Symbol.toStringTag] || x.constructor.name || "Object";
2095
+ return U.call(
2096
+ T,
2097
2097
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
2098
- B
2098
+ f
2099
2099
  ), t(x);
2100
2100
  }
2101
2101
  }
2102
2102
  function s(x) {
2103
- if (x === b) return "<>";
2104
- if (typeof x == "object" && x !== null && x.$$typeof === w)
2103
+ if (x === h) return "<>";
2104
+ if (typeof x == "object" && x !== null && x.$$typeof === N)
2105
2105
  return "<...>";
2106
2106
  try {
2107
- var k = e(x);
2108
- return k ? "<" + k + ">" : "<...>";
2107
+ var T = e(x);
2108
+ return T ? "<" + T + ">" : "<...>";
2109
2109
  } catch {
2110
2110
  return "<...>";
2111
2111
  }
2112
2112
  }
2113
2113
  function o() {
2114
- var x = U.A;
2114
+ var x = H.A;
2115
2115
  return x === null ? null : x.getOwner();
2116
2116
  }
2117
2117
  function i() {
2118
2118
  return Error("react-stack-top-frame");
2119
2119
  }
2120
2120
  function a(x) {
2121
- if (Y.call(x, "key")) {
2122
- var k = Object.getOwnPropertyDescriptor(x, "key").get;
2123
- if (k && k.isReactWarning) return !1;
2121
+ if (Q.call(x, "key")) {
2122
+ var T = Object.getOwnPropertyDescriptor(x, "key").get;
2123
+ if (T && T.isReactWarning) return !1;
2124
2124
  }
2125
2125
  return x.key !== void 0;
2126
2126
  }
2127
- function l(x, k) {
2128
- function N() {
2129
- Z || (Z = !0, console.error(
2127
+ function l(x, T) {
2128
+ function U() {
2129
+ M || (M = !0, console.error(
2130
2130
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
2131
- k
2131
+ T
2132
2132
  ));
2133
2133
  }
2134
- N.isReactWarning = !0, Object.defineProperty(x, "key", {
2135
- get: N,
2134
+ U.isReactWarning = !0, Object.defineProperty(x, "key", {
2135
+ get: U,
2136
2136
  configurable: !0
2137
2137
  });
2138
2138
  }
2139
- function h() {
2139
+ function g() {
2140
2140
  var x = e(this.type);
2141
- return M[x] || (M[x] = !0, console.error(
2141
+ return F[x] || (F[x] = !0, console.error(
2142
2142
  "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."
2143
2143
  )), x = this.props.ref, x !== void 0 ? x : null;
2144
2144
  }
2145
- function p(x, k, N, B, f, j, J, ne) {
2146
- return N = j.ref, x = {
2147
- $$typeof: v,
2145
+ function p(x, T, U, f, v, X) {
2146
+ var Y = U.ref;
2147
+ return x = {
2148
+ $$typeof: d,
2148
2149
  type: x,
2149
- key: k,
2150
- props: j,
2150
+ key: T,
2151
+ props: U,
2151
2152
  _owner: f
2152
- }, (N !== void 0 ? N : null) !== null ? Object.defineProperty(x, "ref", {
2153
+ }, (Y !== void 0 ? Y : null) !== null ? Object.defineProperty(x, "ref", {
2153
2154
  enumerable: !1,
2154
- get: h
2155
+ get: g
2155
2156
  }) : Object.defineProperty(x, "ref", { enumerable: !1, value: null }), x._store = {}, Object.defineProperty(x._store, "validated", {
2156
2157
  configurable: !1,
2157
2158
  enumerable: !1,
@@ -2166,105 +2167,102 @@ function Bn() {
2166
2167
  configurable: !1,
2167
2168
  enumerable: !1,
2168
2169
  writable: !0,
2169
- value: J
2170
+ value: v
2170
2171
  }), Object.defineProperty(x, "_debugTask", {
2171
2172
  configurable: !1,
2172
2173
  enumerable: !1,
2173
2174
  writable: !0,
2174
- value: ne
2175
+ value: X
2175
2176
  }), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
2176
2177
  }
2177
- function c(x, k, N, B, f, j, J, ne) {
2178
- var X = k.children;
2179
- if (X !== void 0)
2180
- if (B)
2181
- if (Q(X)) {
2182
- for (B = 0; B < X.length; B++)
2183
- m(X[B]);
2184
- Object.freeze && Object.freeze(X);
2178
+ function c(x, T, U, f, v, X) {
2179
+ var Y = T.children;
2180
+ if (Y !== void 0)
2181
+ if (f)
2182
+ if (S(Y)) {
2183
+ for (f = 0; f < Y.length; f++)
2184
+ m(Y[f]);
2185
+ Object.freeze && Object.freeze(Y);
2185
2186
  } else
2186
2187
  console.error(
2187
2188
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
2188
2189
  );
2189
- else m(X);
2190
- if (Y.call(k, "key")) {
2191
- X = e(x);
2192
- var oe = Object.keys(k).filter(function(me) {
2193
- return me !== "key";
2190
+ else m(Y);
2191
+ if (Q.call(T, "key")) {
2192
+ Y = e(x);
2193
+ var oe = Object.keys(T).filter(function(de) {
2194
+ return de !== "key";
2194
2195
  });
2195
- B = 0 < oe.length ? "{key: someKey, " + oe.join(": ..., ") + ": ...}" : "{key: someKey}", V[X + B] || (oe = 0 < oe.length ? "{" + oe.join(": ..., ") + ": ...}" : "{}", console.error(
2196
+ f = 0 < oe.length ? "{key: someKey, " + oe.join(": ..., ") + ": ...}" : "{key: someKey}", K[Y + f] || (oe = 0 < oe.length ? "{" + oe.join(": ..., ") + ": ...}" : "{}", console.error(
2196
2197
  `A props object containing a "key" prop is being spread into JSX:
2197
2198
  let props = %s;
2198
2199
  <%s {...props} />
2199
2200
  React keys must be passed directly to JSX without using spread:
2200
2201
  let props = %s;
2201
2202
  <%s key={someKey} {...props} />`,
2202
- B,
2203
- X,
2203
+ f,
2204
+ Y,
2204
2205
  oe,
2205
- X
2206
- ), V[X + B] = !0);
2206
+ Y
2207
+ ), K[Y + f] = !0);
2207
2208
  }
2208
- if (X = null, N !== void 0 && (r(N), X = "" + N), a(k) && (r(k.key), X = "" + k.key), "key" in k) {
2209
- N = {};
2210
- for (var le in k)
2211
- le !== "key" && (N[le] = k[le]);
2212
- } else N = k;
2213
- return X && l(
2214
- N,
2209
+ if (Y = null, U !== void 0 && (r(U), Y = "" + U), a(T) && (r(T.key), Y = "" + T.key), "key" in T) {
2210
+ U = {};
2211
+ for (var ce in T)
2212
+ ce !== "key" && (U[ce] = T[ce]);
2213
+ } else U = T;
2214
+ return Y && l(
2215
+ U,
2215
2216
  typeof x == "function" ? x.displayName || x.name || "Unknown" : x
2216
2217
  ), p(
2217
2218
  x,
2218
- X,
2219
- j,
2220
- f,
2219
+ Y,
2220
+ U,
2221
2221
  o(),
2222
- N,
2223
- J,
2224
- ne
2222
+ v,
2223
+ X
2225
2224
  );
2226
2225
  }
2227
2226
  function m(x) {
2228
- typeof x == "object" && x !== null && x.$$typeof === v && x._store && (x._store.validated = 1);
2227
+ R(x) ? x._store && (x._store.validated = 1) : typeof x == "object" && x !== null && x.$$typeof === N && (x._payload.status === "fulfilled" ? R(x._payload.value) && x._payload.value._store && (x._payload.value._store.validated = 1) : x._store && (x._store.validated = 1));
2229
2228
  }
2230
- var R = _t, v = Symbol.for("react.transitional.element"), d = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), P = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), L = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), K = Symbol.for("react.client.reference"), U = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, Q = Array.isArray, S = console.createTask ? console.createTask : function() {
2229
+ function R(x) {
2230
+ return typeof x == "object" && x !== null && x.$$typeof === d;
2231
+ }
2232
+ var j = _t, d = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), $ = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), P = Symbol.for("react.consumer"), k = Symbol.for("react.context"), L = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), O = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), J = Symbol.for("react.activity"), D = Symbol.for("react.client.reference"), H = j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Q = Object.prototype.hasOwnProperty, S = Array.isArray, G = console.createTask ? console.createTask : function() {
2231
2233
  return null;
2232
2234
  };
2233
- R = {
2235
+ j = {
2234
2236
  react_stack_bottom_frame: function(x) {
2235
2237
  return x();
2236
2238
  }
2237
2239
  };
2238
- var Z, M = {}, F = R.react_stack_bottom_frame.bind(
2239
- R,
2240
+ var M, F = {}, C = j.react_stack_bottom_frame.bind(
2241
+ j,
2240
2242
  i
2241
- )(), T = S(s(i)), V = {};
2242
- Ce.Fragment = b, Ce.jsx = function(x, k, N, B, f) {
2243
- var j = 1e4 > U.recentlyCreatedOwnerStacks++;
2243
+ )(), V = G(s(i)), K = {};
2244
+ Ee.Fragment = h, Ee.jsx = function(x, T, U) {
2245
+ var f = 1e4 > H.recentlyCreatedOwnerStacks++;
2244
2246
  return c(
2245
2247
  x,
2246
- k,
2247
- N,
2248
+ T,
2249
+ U,
2248
2250
  !1,
2249
- B,
2250
- f,
2251
- j ? Error("react-stack-top-frame") : F,
2252
- j ? S(s(x)) : T
2251
+ f ? Error("react-stack-top-frame") : C,
2252
+ f ? G(s(x)) : V
2253
2253
  );
2254
- }, Ce.jsxs = function(x, k, N, B, f) {
2255
- var j = 1e4 > U.recentlyCreatedOwnerStacks++;
2254
+ }, Ee.jsxs = function(x, T, U) {
2255
+ var f = 1e4 > H.recentlyCreatedOwnerStacks++;
2256
2256
  return c(
2257
2257
  x,
2258
- k,
2259
- N,
2258
+ T,
2259
+ U,
2260
2260
  !0,
2261
- B,
2262
- f,
2263
- j ? Error("react-stack-top-frame") : F,
2264
- j ? S(s(x)) : T
2261
+ f ? Error("react-stack-top-frame") : C,
2262
+ f ? G(s(x)) : V
2265
2263
  );
2266
2264
  };
2267
- })()), Ce;
2265
+ })()), Ee;
2268
2266
  }
2269
2267
  var Pt;
2270
2268
  function Wn() {
@@ -2272,13 +2270,13 @@ function Wn() {
2272
2270
  }
2273
2271
  var n = Wn();
2274
2272
  const qn = async (e, t) => {
2275
- const { name: r, email: s, password: o, appId: i, phone: a, address: l, avatarUrl: h, isActive: p = !0, role: c = "user" } = e, { baseUrl: m, apiKey: R } = t;
2273
+ const { name: r, email: s, password: o, appId: i, phone: a, address: l, avatarUrl: g, isActive: p = !0, role: c = "user" } = e, { baseUrl: m, apiKey: R } = t;
2276
2274
  if (!R)
2277
2275
  throw new Error("API key is required for signup");
2278
2276
  if (!r || !s || !o || !i)
2279
2277
  throw new Error("Name, email, password, and appId are required");
2280
2278
  try {
2281
- const v = await W.post(
2279
+ const j = await B.post(
2282
2280
  `${m}/users/signup`,
2283
2281
  {
2284
2282
  name: r,
@@ -2287,7 +2285,7 @@ const qn = async (e, t) => {
2287
2285
  appId: i,
2288
2286
  phone: a,
2289
2287
  address: l,
2290
- avatarUrl: h,
2288
+ avatarUrl: g,
2291
2289
  isActive: p,
2292
2290
  role: c
2293
2291
  },
@@ -2298,10 +2296,10 @@ const qn = async (e, t) => {
2298
2296
  }
2299
2297
  }
2300
2298
  );
2301
- return v.data?.user && localStorage.setItem("userInfo", JSON.stringify(v.data.user)), v.data.user;
2302
- } catch (v) {
2303
- const d = v.response?.data?.message || v.message || "Signup failed";
2304
- if (console.error("Signup API Error:", d), v.response?.status === 400) {
2299
+ return j.data?.user && localStorage.setItem("userInfo", JSON.stringify(j.data.user)), j.data.user;
2300
+ } catch (j) {
2301
+ const d = j.response?.data?.message || j.message || "Signup failed";
2302
+ if (console.error("Signup API Error:", d), j.response?.status === 400) {
2305
2303
  if (d.includes("already exists"))
2306
2304
  throw {
2307
2305
  success: !1,
@@ -2315,14 +2313,14 @@ const qn = async (e, t) => {
2315
2313
  status: 400
2316
2314
  };
2317
2315
  }
2318
- throw v.response?.status === 404 ? {
2316
+ throw j.response?.status === 404 ? {
2319
2317
  success: !1,
2320
2318
  message: "Invalid or inactive app",
2321
2319
  status: 404
2322
2320
  } : {
2323
2321
  success: !1,
2324
2322
  message: d,
2325
- status: v.response?.status || 500
2323
+ status: j.response?.status || 500
2326
2324
  };
2327
2325
  }
2328
2326
  };
@@ -2376,10 +2374,10 @@ const Jn = Nt(
2376
2374
  children: i,
2377
2375
  iconNode: a,
2378
2376
  ...l
2379
- }, h) => Ze(
2377
+ }, g) => Ze(
2380
2378
  "svg",
2381
2379
  {
2382
- ref: h,
2380
+ ref: g,
2383
2381
  ...Kn,
2384
2382
  width: t,
2385
2383
  height: t,
@@ -2401,7 +2399,7 @@ const Jn = Nt(
2401
2399
  * This source code is licensed under the ISC license.
2402
2400
  * See the LICENSE file in the root directory of this source tree.
2403
2401
  */
2404
- const q = (e, t) => {
2402
+ const W = (e, t) => {
2405
2403
  const r = Nt(
2406
2404
  ({ className: s, ...o }, i) => Ze(Jn, {
2407
2405
  ref: i,
@@ -2431,14 +2429,14 @@ const Xn = [
2431
2429
  }
2432
2430
  ],
2433
2431
  ["circle", { cx: "12", cy: "13", r: "3", key: "1vg3eu" }]
2434
- ], st = q("camera", Xn);
2432
+ ], st = W("camera", Xn);
2435
2433
  /**
2436
2434
  * @license lucide-react v0.544.0 - ISC
2437
2435
  *
2438
2436
  * This source code is licensed under the ISC license.
2439
2437
  * See the LICENSE file in the root directory of this source tree.
2440
2438
  */
2441
- const Gn = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Zn = q("chevron-down", Gn);
2439
+ const Gn = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Zn = W("chevron-down", Gn);
2442
2440
  /**
2443
2441
  * @license lucide-react v0.544.0 - ISC
2444
2442
  *
@@ -2449,7 +2447,7 @@ const Qn = [
2449
2447
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
2450
2448
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
2451
2449
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
2452
- ], ce = q("circle-alert", Qn);
2450
+ ], ie = W("circle-alert", Qn);
2453
2451
  /**
2454
2452
  * @license lucide-react v0.544.0 - ISC
2455
2453
  *
@@ -2459,7 +2457,7 @@ const Qn = [
2459
2457
  const es = [
2460
2458
  ["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
2461
2459
  ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
2462
- ], xe = q("circle-check-big", es);
2460
+ ], xe = W("circle-check-big", es);
2463
2461
  /**
2464
2462
  * @license lucide-react v0.544.0 - ISC
2465
2463
  *
@@ -2469,7 +2467,7 @@ const es = [
2469
2467
  const ts = [
2470
2468
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
2471
2469
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
2472
- ], Ge = q("circle-check", ts);
2470
+ ], Ge = W("circle-check", ts);
2473
2471
  /**
2474
2472
  * @license lucide-react v0.544.0 - ISC
2475
2473
  *
@@ -2480,7 +2478,7 @@ const rs = [
2480
2478
  ["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
2481
2479
  ["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
2482
2480
  ["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
2483
- ], ns = q("database", rs);
2481
+ ], ns = W("database", rs);
2484
2482
  /**
2485
2483
  * @license lucide-react v0.544.0 - ISC
2486
2484
  *
@@ -2491,7 +2489,7 @@ const ss = [
2491
2489
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
2492
2490
  ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
2493
2491
  ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
2494
- ], os = q("ellipsis-vertical", ss);
2492
+ ], os = W("ellipsis-vertical", ss);
2495
2493
  /**
2496
2494
  * @license lucide-react v0.544.0 - ISC
2497
2495
  *
@@ -2515,7 +2513,7 @@ const as = [
2515
2513
  }
2516
2514
  ],
2517
2515
  ["path", { d: "m2 2 20 20", key: "1ooewy" }]
2518
- ], lt = q("eye-off", as);
2516
+ ], lt = W("eye-off", as);
2519
2517
  /**
2520
2518
  * @license lucide-react v0.544.0 - ISC
2521
2519
  *
@@ -2531,7 +2529,7 @@ const is = [
2531
2529
  }
2532
2530
  ],
2533
2531
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
2534
- ], ct = q("eye", is);
2532
+ ], ct = W("eye", is);
2535
2533
  /**
2536
2534
  * @license lucide-react v0.544.0 - ISC
2537
2535
  *
@@ -2547,7 +2545,7 @@ const ls = [
2547
2545
  key: "r6nss1"
2548
2546
  }
2549
2547
  ]
2550
- ], cs = q("house", ls);
2548
+ ], cs = W("house", ls);
2551
2549
  /**
2552
2550
  * @license lucide-react v0.544.0 - ISC
2553
2551
  *
@@ -2558,7 +2556,7 @@ const ds = [
2558
2556
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
2559
2557
  ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
2560
2558
  ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
2561
- ], ir = q("image", ds);
2559
+ ], ir = W("image", ds);
2562
2560
  /**
2563
2561
  * @license lucide-react v0.544.0 - ISC
2564
2562
  *
@@ -2574,7 +2572,7 @@ const us = [
2574
2572
  }
2575
2573
  ],
2576
2574
  ["circle", { cx: "16.5", cy: "7.5", r: ".5", fill: "currentColor", key: "w0ekpg" }]
2577
- ], lr = q("key-round", us);
2575
+ ], lr = W("key-round", us);
2578
2576
  /**
2579
2577
  * @license lucide-react v0.544.0 - ISC
2580
2578
  *
@@ -2585,7 +2583,7 @@ const ps = [
2585
2583
  ["path", { d: "m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4", key: "g0fldk" }],
2586
2584
  ["path", { d: "m21 2-9.6 9.6", key: "1j0ho8" }],
2587
2585
  ["circle", { cx: "7.5", cy: "15.5", r: "5.5", key: "yqb3hr" }]
2588
- ], cr = q("key", ps);
2586
+ ], cr = W("key", ps);
2589
2587
  /**
2590
2588
  * @license lucide-react v0.544.0 - ISC
2591
2589
  *
@@ -2596,14 +2594,14 @@ const fs = [
2596
2594
  ["path", { d: "M9 17H7A5 5 0 0 1 7 7h2", key: "8i5ue5" }],
2597
2595
  ["path", { d: "M15 7h2a5 5 0 1 1 0 10h-2", key: "1b9ql8" }],
2598
2596
  ["line", { x1: "8", x2: "16", y1: "12", y2: "12", key: "1jonct" }]
2599
- ], xs = q("link-2", fs);
2597
+ ], xs = W("link-2", fs);
2600
2598
  /**
2601
2599
  * @license lucide-react v0.544.0 - ISC
2602
2600
  *
2603
2601
  * This source code is licensed under the ISC license.
2604
2602
  * See the LICENSE file in the root directory of this source tree.
2605
2603
  */
2606
- const hs = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], de = q("loader-circle", hs);
2604
+ const hs = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], le = W("loader-circle", hs);
2607
2605
  /**
2608
2606
  * @license lucide-react v0.544.0 - ISC
2609
2607
  *
@@ -2619,7 +2617,7 @@ const gs = [
2619
2617
  ["path", { d: "m4.9 19.1 2.9-2.9", key: "bwix9q" }],
2620
2618
  ["path", { d: "M2 12h4", key: "j09sii" }],
2621
2619
  ["path", { d: "m4.9 4.9 2.9 2.9", key: "giyufr" }]
2622
- ], ms = q("loader", gs);
2620
+ ], ms = W("loader", gs);
2623
2621
  /**
2624
2622
  * @license lucide-react v0.544.0 - ISC
2625
2623
  *
@@ -2629,7 +2627,7 @@ const gs = [
2629
2627
  const ys = [
2630
2628
  ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
2631
2629
  ["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
2632
- ], ye = q("lock", ys);
2630
+ ], me = W("lock", ys);
2633
2631
  /**
2634
2632
  * @license lucide-react v0.544.0 - ISC
2635
2633
  *
@@ -2640,7 +2638,7 @@ const bs = [
2640
2638
  ["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
2641
2639
  ["path", { d: "M21 12H9", key: "dn1m92" }],
2642
2640
  ["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
2643
- ], dt = q("log-out", bs);
2641
+ ], dt = W("log-out", bs);
2644
2642
  /**
2645
2643
  * @license lucide-react v0.544.0 - ISC
2646
2644
  *
@@ -2650,7 +2648,7 @@ const bs = [
2650
2648
  const ws = [
2651
2649
  ["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
2652
2650
  ["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
2653
- ], ge = q("mail", ws);
2651
+ ], ge = W("mail", ws);
2654
2652
  /**
2655
2653
  * @license lucide-react v0.544.0 - ISC
2656
2654
  *
@@ -2666,7 +2664,7 @@ const js = [
2666
2664
  }
2667
2665
  ],
2668
2666
  ["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
2669
- ], vs = q("map-pin", js);
2667
+ ], vs = W("map-pin", js);
2670
2668
  /**
2671
2669
  * @license lucide-react v0.544.0 - ISC
2672
2670
  *
@@ -2682,7 +2680,7 @@ const Ss = [
2682
2680
  key: "1a8usu"
2683
2681
  }
2684
2682
  ]
2685
- ], ks = q("pen-line", Ss);
2683
+ ], ks = W("pen-line", Ss);
2686
2684
  /**
2687
2685
  * @license lucide-react v0.544.0 - ISC
2688
2686
  *
@@ -2697,7 +2695,7 @@ const Es = [
2697
2695
  key: "9njp5v"
2698
2696
  }
2699
2697
  ]
2700
- ], Cs = q("phone", Es);
2698
+ ], Cs = W("phone", Es);
2701
2699
  /**
2702
2700
  * @license lucide-react v0.544.0 - ISC
2703
2701
  *
@@ -2714,7 +2712,7 @@ const Ts = [
2714
2712
  ],
2715
2713
  ["path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7", key: "1ydtos" }],
2716
2714
  ["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
2717
- ], Rs = q("save", Ts);
2715
+ ], Rs = W("save", Ts);
2718
2716
  /**
2719
2717
  * @license lucide-react v0.544.0 - ISC
2720
2718
  *
@@ -2730,7 +2728,7 @@ const Is = [
2730
2728
  }
2731
2729
  ],
2732
2730
  ["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
2733
- ], dr = q("send", Is);
2731
+ ], dr = W("send", Is);
2734
2732
  /**
2735
2733
  * @license lucide-react v0.544.0 - ISC
2736
2734
  *
@@ -2746,7 +2744,7 @@ const Ps = [
2746
2744
  }
2747
2745
  ],
2748
2746
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
2749
- ], Os = q("settings", Ps);
2747
+ ], Os = W("settings", Ps);
2750
2748
  /**
2751
2749
  * @license lucide-react v0.544.0 - ISC
2752
2750
  *
@@ -2761,7 +2759,7 @@ const zs = [
2761
2759
  key: "oel41y"
2762
2760
  }
2763
2761
  ]
2764
- ], ur = q("shield", zs);
2762
+ ], ur = W("shield", zs);
2765
2763
  /**
2766
2764
  * @license lucide-react v0.544.0 - ISC
2767
2765
  *
@@ -2774,7 +2772,7 @@ const As = [
2774
2772
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
2775
2773
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
2776
2774
  ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
2777
- ], Ue = q("trash-2", As);
2775
+ ], Ue = W("trash-2", As);
2778
2776
  /**
2779
2777
  * @license lucide-react v0.544.0 - ISC
2780
2778
  *
@@ -2791,7 +2789,7 @@ const _s = [
2791
2789
  ],
2792
2790
  ["path", { d: "M12 9v4", key: "juzpu7" }],
2793
2791
  ["path", { d: "M12 17h.01", key: "p32p05" }]
2794
- ], zt = q("triangle-alert", _s);
2792
+ ], zt = W("triangle-alert", _s);
2795
2793
  /**
2796
2794
  * @license lucide-react v0.544.0 - ISC
2797
2795
  *
@@ -2803,7 +2801,7 @@ const Ns = [
2803
2801
  ["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
2804
2802
  ["line", { x1: "17", x2: "22", y1: "8", y2: "13", key: "3nzzx3" }],
2805
2803
  ["line", { x1: "22", x2: "17", y1: "8", y2: "13", key: "1swrse" }]
2806
- ], $s = q("user-x", Ns);
2804
+ ], $s = W("user-x", Ns);
2807
2805
  /**
2808
2806
  * @license lucide-react v0.544.0 - ISC
2809
2807
  *
@@ -2813,7 +2811,7 @@ const Ns = [
2813
2811
  const Us = [
2814
2812
  ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
2815
2813
  ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
2816
- ], we = q("user", Us);
2814
+ ], be = W("user", Us);
2817
2815
  /**
2818
2816
  * @license lucide-react v0.544.0 - ISC
2819
2817
  *
@@ -2823,7 +2821,7 @@ const Us = [
2823
2821
  const Ds = [
2824
2822
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
2825
2823
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
2826
- ], Oe = q("x", Ds), De = {
2824
+ ], Pe = W("x", Ds), De = {
2827
2825
  baseUrl: "",
2828
2826
  apiKey: "",
2829
2827
  appId: ""
@@ -2831,7 +2829,7 @@ const Ds = [
2831
2829
  if (!e.baseUrl || !e.apiKey || !e.appId)
2832
2830
  throw new Error("baseUrl, apiKey, and appId are required");
2833
2831
  De.baseUrl = e.baseUrl, De.apiKey = e.apiKey, De.appId = e.appId;
2834
- }, Se = () => De, fo = ({
2832
+ }, ve = () => De, fo = ({
2835
2833
  logoUrl: e,
2836
2834
  logoLinkUrl: t,
2837
2835
  title: r = "Create Your Account",
@@ -2841,45 +2839,45 @@ const Ds = [
2841
2839
  gradient: a = "linear-gradient(135deg, #22c55e, #00C214)",
2842
2840
  darkMode: l = !0,
2843
2841
  // Only avatar is optional
2844
- showAvatar: h = !1,
2842
+ showAvatar: g = !1,
2845
2843
  loginUrl: p,
2846
2844
  onSuccess: c,
2847
2845
  onError: m
2848
2846
  }) => {
2849
- const { baseUrl: R, apiKey: v, appId: d } = Se(), b = {
2847
+ const { baseUrl: R, apiKey: j, appId: d } = ve(), w = {
2850
2848
  name: "",
2851
2849
  email: "",
2852
2850
  password: "",
2853
- ...h && { avatarUrl: "" }
2854
- }, [g, $] = I(b), [_, P] = I(!1), [E, L] = I(!1), [y, O] = I(null), [w, D] = I({}), K = typeof window < "u" ? window.innerWidth < 768 : !1, U = l ? "#ffffff" : "#111827", Y = l ? "#a1a1aa" : "#6b7280", Q = l ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", S = l ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)", Z = (V) => {
2855
- const { name: x, value: k } = V.target;
2856
- $((N) => ({ ...N, [x]: k })), w[x] && D((N) => ({ ...N, [x]: void 0 }));
2851
+ ...g && { avatarUrl: "" }
2852
+ }, [h, $] = I(w), [_, P] = I(!1), [k, L] = I(!1), [y, O] = I(null), [b, N] = I({}), J = typeof window < "u" ? window.innerWidth < 768 : !1, D = l ? "#ffffff" : "#111827", H = l ? "#a1a1aa" : "#6b7280", Q = l ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", S = l ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)", G = (V) => {
2853
+ const { name: K, value: x } = V.target;
2854
+ $((T) => ({ ...T, [K]: x })), b[K] && N((T) => ({ ...T, [K]: void 0 }));
2857
2855
  }, M = () => {
2858
2856
  const V = {};
2859
- return g.name.trim() || (V.name = "Name is required"), g.email.trim() ? /\S+@\S+\.\S+/.test(g.email) || (V.email = "Invalid email address") : V.email = "Email is required", g.password ? g.password.length < 6 && (V.password = "Password must be at least 6 characters") : V.password = "Password is required", D(V), Object.keys(V).length === 0;
2857
+ return h.name.trim() || (V.name = "Name is required"), h.email.trim() ? /\S+@\S+\.\S+/.test(h.email) || (V.email = "Invalid email address") : V.email = "Email is required", h.password ? h.password.length < 6 && (V.password = "Password must be at least 6 characters") : V.password = "Password is required", N(V), Object.keys(V).length === 0;
2860
2858
  }, F = async (V) => {
2861
2859
  if (V.preventDefault(), !!M()) {
2862
2860
  L(!0), O(null);
2863
2861
  try {
2864
- const x = {
2865
- ...g,
2862
+ const K = {
2863
+ ...h,
2866
2864
  appId: d
2867
- }, k = await qn(x, { baseUrl: R, apiKey: v });
2868
- O({ type: "success", text: "Account created successfully!" }), c && c(k);
2869
- } catch (x) {
2870
- const k = x.message || "Signup failed. Please try again.";
2871
- O({ type: "error", text: k }), m && m(x);
2865
+ }, x = await qn(K, { baseUrl: R, apiKey: j });
2866
+ O({ type: "success", text: "Account created successfully!" }), c && c(x);
2867
+ } catch (K) {
2868
+ const x = K.message || "Signup failed. Please try again.";
2869
+ O({ type: "error", text: x }), m && m(K);
2872
2870
  } finally {
2873
2871
  L(!1);
2874
2872
  }
2875
2873
  }
2876
- }, T = {
2874
+ }, C = {
2877
2875
  width: "100%",
2878
- padding: K ? "10px 14px 10px 44px" : "10px 16px 10px 44px",
2876
+ padding: J ? "10px 14px 10px 44px" : "10px 16px 10px 44px",
2879
2877
  backgroundColor: Q,
2880
2878
  border: `1px solid ${S}`,
2881
2879
  borderRadius: "10px",
2882
- color: U,
2880
+ color: D,
2883
2881
  fontSize: "15px",
2884
2882
  outline: "none",
2885
2883
  transition: "all 0.2s ease",
@@ -2898,15 +2896,15 @@ const Ds = [
2898
2896
  "div",
2899
2897
  {
2900
2898
  style: {
2901
- minWidth: K ? "320px" : "380px",
2899
+ minWidth: J ? "320px" : "380px",
2902
2900
  width: "100%",
2903
- maxWidth: K ? "340px" : "390px",
2901
+ maxWidth: J ? "340px" : "390px",
2904
2902
  display: "flex",
2905
2903
  flexDirection: "column",
2906
2904
  borderRadius: "10px",
2907
2905
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
2908
2906
  backgroundColor: l ? "#000000" : "#ffffff",
2909
- padding: K ? "30px 24px" : "18px 28px"
2907
+ padding: J ? "30px 24px" : "18px 28px"
2910
2908
  },
2911
2909
  children: [
2912
2910
  /* @__PURE__ */ n.jsxs(
@@ -2927,7 +2925,7 @@ const Ds = [
2927
2925
  style: { height: "50px", width: "50px", marginBottom: "10px" }
2928
2926
  }
2929
2927
  ) }) : /* @__PURE__ */ n.jsx(
2930
- we,
2928
+ be,
2931
2929
  {
2932
2930
  size: 40,
2933
2931
  color: i,
@@ -2940,7 +2938,7 @@ const Ds = [
2940
2938
  style: {
2941
2939
  fontSize: "24px",
2942
2940
  fontWeight: 700,
2943
- color: U,
2941
+ color: D,
2944
2942
  margin: 0
2945
2943
  },
2946
2944
  children: r
@@ -2951,7 +2949,7 @@ const Ds = [
2951
2949
  {
2952
2950
  style: {
2953
2951
  fontSize: "14px",
2954
- color: Y
2952
+ color: H
2955
2953
  },
2956
2954
  children: s
2957
2955
  }
@@ -2959,7 +2957,7 @@ const Ds = [
2959
2957
  ]
2960
2958
  }
2961
2959
  ),
2962
- h && g.avatarUrl && /* @__PURE__ */ n.jsx(
2960
+ g && h.avatarUrl && /* @__PURE__ */ n.jsx(
2963
2961
  "div",
2964
2962
  {
2965
2963
  style: {
@@ -2970,7 +2968,7 @@ const Ds = [
2970
2968
  children: /* @__PURE__ */ n.jsx(
2971
2969
  "img",
2972
2970
  {
2973
- src: g.avatarUrl,
2971
+ src: h.avatarUrl,
2974
2972
  alt: "Avatar Preview",
2975
2973
  style: {
2976
2974
  width: "60px",
@@ -2980,8 +2978,8 @@ const Ds = [
2980
2978
  border: `2px solid ${i}30`
2981
2979
  },
2982
2980
  onError: (V) => {
2983
- const x = V.target;
2984
- x.style.display = "none";
2981
+ const K = V.target;
2982
+ K.style.display = "none";
2985
2983
  }
2986
2984
  }
2987
2985
  )
@@ -3001,14 +2999,14 @@ const Ds = [
3001
2999
  style: {
3002
3000
  fontSize: "14px",
3003
3001
  fontWeight: 500,
3004
- color: U
3002
+ color: D
3005
3003
  },
3006
3004
  children: "Full Name"
3007
3005
  }
3008
3006
  ),
3009
3007
  /* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
3010
3008
  /* @__PURE__ */ n.jsx(
3011
- we,
3009
+ be,
3012
3010
  {
3013
3011
  size: 20,
3014
3012
  style: {
@@ -3016,7 +3014,7 @@ const Ds = [
3016
3014
  left: "14px",
3017
3015
  top: "50%",
3018
3016
  transform: "translateY(-50%)",
3019
- color: Y
3017
+ color: H
3020
3018
  }
3021
3019
  }
3022
3020
  ),
@@ -3027,16 +3025,16 @@ const Ds = [
3027
3025
  type: "text",
3028
3026
  name: "name",
3029
3027
  placeholder: "Enter your full name",
3030
- value: g.name,
3031
- onChange: Z,
3028
+ value: h.name,
3029
+ onChange: G,
3032
3030
  style: {
3033
- ...T,
3034
- borderColor: w.name ? "#ef4444" : S
3031
+ ...C,
3032
+ borderColor: b.name ? "#ef4444" : S
3035
3033
  }
3036
3034
  }
3037
3035
  )
3038
3036
  ] }),
3039
- w.name && /* @__PURE__ */ n.jsx(
3037
+ b.name && /* @__PURE__ */ n.jsx(
3040
3038
  "span",
3041
3039
  {
3042
3040
  style: {
@@ -3044,7 +3042,7 @@ const Ds = [
3044
3042
  fontSize: "12px",
3045
3043
  marginTop: "2px"
3046
3044
  },
3047
- children: w.name
3045
+ children: b.name
3048
3046
  }
3049
3047
  )
3050
3048
  ] }),
@@ -3056,7 +3054,7 @@ const Ds = [
3056
3054
  style: {
3057
3055
  fontSize: "14px",
3058
3056
  fontWeight: 500,
3059
- color: U
3057
+ color: D
3060
3058
  },
3061
3059
  children: "Email Address"
3062
3060
  }
@@ -3071,7 +3069,7 @@ const Ds = [
3071
3069
  left: "14px",
3072
3070
  top: "50%",
3073
3071
  transform: "translateY(-50%)",
3074
- color: Y
3072
+ color: H
3075
3073
  }
3076
3074
  }
3077
3075
  ),
@@ -3082,16 +3080,16 @@ const Ds = [
3082
3080
  type: "email",
3083
3081
  name: "email",
3084
3082
  placeholder: "Enter your email address",
3085
- value: g.email,
3086
- onChange: Z,
3083
+ value: h.email,
3084
+ onChange: G,
3087
3085
  style: {
3088
- ...T,
3089
- borderColor: w.email ? "#ef4444" : S
3086
+ ...C,
3087
+ borderColor: b.email ? "#ef4444" : S
3090
3088
  }
3091
3089
  }
3092
3090
  )
3093
3091
  ] }),
3094
- w.email && /* @__PURE__ */ n.jsx(
3092
+ b.email && /* @__PURE__ */ n.jsx(
3095
3093
  "span",
3096
3094
  {
3097
3095
  style: {
@@ -3099,7 +3097,7 @@ const Ds = [
3099
3097
  fontSize: "12px",
3100
3098
  marginTop: "2px"
3101
3099
  },
3102
- children: w.email
3100
+ children: b.email
3103
3101
  }
3104
3102
  )
3105
3103
  ] }),
@@ -3111,14 +3109,14 @@ const Ds = [
3111
3109
  style: {
3112
3110
  fontSize: "14px",
3113
3111
  fontWeight: 500,
3114
- color: U
3112
+ color: D
3115
3113
  },
3116
3114
  children: "Password"
3117
3115
  }
3118
3116
  ),
3119
3117
  /* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
3120
3118
  /* @__PURE__ */ n.jsx(
3121
- ye,
3119
+ me,
3122
3120
  {
3123
3121
  size: 20,
3124
3122
  style: {
@@ -3126,7 +3124,7 @@ const Ds = [
3126
3124
  left: "14px",
3127
3125
  top: "50%",
3128
3126
  transform: "translateY(-50%)",
3129
- color: Y
3127
+ color: H
3130
3128
  }
3131
3129
  }
3132
3130
  ),
@@ -3137,11 +3135,11 @@ const Ds = [
3137
3135
  type: _ ? "text" : "password",
3138
3136
  name: "password",
3139
3137
  placeholder: "Create a secure password",
3140
- value: g.password,
3141
- onChange: Z,
3138
+ value: h.password,
3139
+ onChange: G,
3142
3140
  style: {
3143
- ...T,
3144
- borderColor: w.password ? "#ef4444" : S
3141
+ ...C,
3142
+ borderColor: b.password ? "#ef4444" : S
3145
3143
  }
3146
3144
  }
3147
3145
  ),
@@ -3157,7 +3155,7 @@ const Ds = [
3157
3155
  transform: "translateY(-50%)",
3158
3156
  background: "transparent",
3159
3157
  border: "none",
3160
- color: Y,
3158
+ color: H,
3161
3159
  cursor: "pointer",
3162
3160
  padding: "4px"
3163
3161
  },
@@ -3165,7 +3163,7 @@ const Ds = [
3165
3163
  }
3166
3164
  )
3167
3165
  ] }),
3168
- w.password && /* @__PURE__ */ n.jsx(
3166
+ b.password && /* @__PURE__ */ n.jsx(
3169
3167
  "span",
3170
3168
  {
3171
3169
  style: {
@@ -3173,11 +3171,11 @@ const Ds = [
3173
3171
  fontSize: "12px",
3174
3172
  marginTop: "2px"
3175
3173
  },
3176
- children: w.password
3174
+ children: b.password
3177
3175
  }
3178
3176
  )
3179
3177
  ] }),
3180
- h && /* @__PURE__ */ n.jsxs(
3178
+ g && /* @__PURE__ */ n.jsxs(
3181
3179
  "div",
3182
3180
  {
3183
3181
  style: { display: "flex", flexDirection: "column", gap: "4px" },
@@ -3189,7 +3187,7 @@ const Ds = [
3189
3187
  style: {
3190
3188
  fontSize: "14px",
3191
3189
  fontWeight: 500,
3192
- color: U
3190
+ color: D
3193
3191
  },
3194
3192
  children: "Avatar URL (Optional)"
3195
3193
  }
@@ -3204,7 +3202,7 @@ const Ds = [
3204
3202
  left: "14px",
3205
3203
  top: "50%",
3206
3204
  transform: "translateY(-50%)",
3207
- color: Y
3205
+ color: H
3208
3206
  }
3209
3207
  }
3210
3208
  ),
@@ -3215,9 +3213,9 @@ const Ds = [
3215
3213
  type: "url",
3216
3214
  name: "avatarUrl",
3217
3215
  placeholder: "Paste your avatar image URL",
3218
- value: g.avatarUrl || "",
3219
- onChange: Z,
3220
- style: T
3216
+ value: h.avatarUrl || "",
3217
+ onChange: G,
3218
+ style: C
3221
3219
  }
3222
3220
  )
3223
3221
  ] })
@@ -3261,7 +3259,7 @@ const Ds = [
3261
3259
  color: y.type === "success" ? i : "#ef4444"
3262
3260
  },
3263
3261
  children: [
3264
- y.type === "success" ? /* @__PURE__ */ n.jsx(xe, { size: 20 }) : /* @__PURE__ */ n.jsx(ce, { size: 20 }),
3262
+ y.type === "success" ? /* @__PURE__ */ n.jsx(xe, { size: 20 }) : /* @__PURE__ */ n.jsx(ie, { size: 20 }),
3265
3263
  /* @__PURE__ */ n.jsx("span", { children: y.text })
3266
3264
  ]
3267
3265
  }
@@ -3270,7 +3268,7 @@ const Ds = [
3270
3268
  "button",
3271
3269
  {
3272
3270
  type: "submit",
3273
- disabled: E,
3271
+ disabled: k,
3274
3272
  style: {
3275
3273
  padding: "12px",
3276
3274
  background: a,
@@ -3279,14 +3277,14 @@ const Ds = [
3279
3277
  borderRadius: "10px",
3280
3278
  fontSize: "14px",
3281
3279
  fontWeight: 600,
3282
- cursor: E ? "not-allowed" : "pointer",
3283
- opacity: E ? 0.7 : 1,
3280
+ cursor: k ? "not-allowed" : "pointer",
3281
+ opacity: k ? 0.7 : 1,
3284
3282
  display: "flex",
3285
3283
  alignItems: "center",
3286
3284
  justifyContent: "center",
3287
3285
  gap: "8px"
3288
3286
  },
3289
- children: E ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3287
+ children: k ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3290
3288
  /* @__PURE__ */ n.jsx(
3291
3289
  ms,
3292
3290
  {
@@ -3307,7 +3305,7 @@ const Ds = [
3307
3305
  style: {
3308
3306
  textAlign: "center",
3309
3307
  fontSize: "12px",
3310
- color: Y,
3308
+ color: H,
3311
3309
  marginTop: "16px",
3312
3310
  padding: "0 4px"
3313
3311
  },
@@ -3335,7 +3333,7 @@ const Ds = [
3335
3333
  if (!a)
3336
3334
  throw new Error("API key is required for login");
3337
3335
  try {
3338
- const l = await W.post(
3336
+ const l = await B.post(
3339
3337
  `${i}/users/login`,
3340
3338
  { email: r, password: s, appId: o },
3341
3339
  {
@@ -3347,10 +3345,10 @@ const Ds = [
3347
3345
  );
3348
3346
  return l.data?.user && localStorage.setItem("userInfo", JSON.stringify(l.data.user)), l.data.user;
3349
3347
  } catch (l) {
3350
- const h = l.response?.data?.message || l.message || "Login failed";
3351
- throw console.error("Login API Error:", h), {
3348
+ const g = l.response?.data?.message || l.message || "Login failed";
3349
+ throw console.error("Login API Error:", g), {
3352
3350
  success: !1,
3353
- message: h,
3351
+ message: g,
3354
3352
  status: l.response?.status || 500
3355
3353
  };
3356
3354
  }
@@ -3363,78 +3361,78 @@ const Ds = [
3363
3361
  primaryColor: i = "#00C214",
3364
3362
  gradient: a = "linear-gradient(135deg, #22c55e, #00C214)",
3365
3363
  darkMode: l = !0,
3366
- signupUrl: h,
3364
+ signupUrl: g,
3367
3365
  onSuccess: p,
3368
3366
  onError: c
3369
3367
  }) => {
3370
- const { baseUrl: m, apiKey: R, appId: v } = Se(), [d, b] = I("login"), [g, $] = I(1), [_, P] = I(!1), [E, L] = I(!1), [y, O] = I(null), [w, D] = I(""), [K, U] = I(""), [Y, Q] = I({
3368
+ const { baseUrl: m, apiKey: R, appId: j } = ve(), [d, w] = I("login"), [h, $] = I(1), [_, P] = I(!1), [k, L] = I(!1), [y, O] = I(null), [b, N] = I(""), [J, D] = I(""), [H, Q] = I({
3371
3369
  email: "",
3372
3370
  otp: "",
3373
3371
  newPassword: "",
3374
- appId: v
3375
- }), S = window.innerWidth < 768, Z = l ? "#ffffff" : "#111827", M = l ? "#a1a1aa" : "#6b7280", F = l ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", T = l ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)", V = async (f) => {
3372
+ appId: j
3373
+ }), S = window.innerWidth < 768, G = l ? "#ffffff" : "#111827", M = l ? "#a1a1aa" : "#6b7280", F = l ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", C = l ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)", V = async (f) => {
3376
3374
  f.preventDefault(), L(!0), O(null);
3377
3375
  try {
3378
- const j = await Fs(
3379
- { email: w, password: K, appId: v },
3376
+ const v = await Fs(
3377
+ { email: b, password: J, appId: j },
3380
3378
  { baseUrl: m, apiKey: R }
3381
3379
  );
3382
- O({ type: "success", text: `Welcome ${j.name}` }), p?.(j);
3383
- } catch (j) {
3384
- const J = j.message || "Login failed";
3385
- O({ type: "error", text: J }), c?.(j);
3380
+ O({ type: "success", text: `Welcome ${v.name}` }), p?.(v);
3381
+ } catch (v) {
3382
+ const X = v.message || "Login failed";
3383
+ O({ type: "error", text: X }), c?.(v);
3386
3384
  } finally {
3387
3385
  L(!1);
3388
3386
  }
3389
- }, x = (f) => {
3390
- Q({ ...Y, [f.target.name]: f.target.value });
3391
- }, k = async (f) => {
3387
+ }, K = (f) => {
3388
+ Q({ ...H, [f.target.name]: f.target.value });
3389
+ }, x = async (f) => {
3392
3390
  f.preventDefault(), L(!0), O(null);
3393
3391
  try {
3394
- const j = await W.post(
3392
+ const v = await B.post(
3395
3393
  `${m}/users/forgot-password`,
3396
3394
  {
3397
- email: Y.email,
3398
- appId: v
3395
+ email: H.email,
3396
+ appId: j
3399
3397
  },
3400
3398
  { headers: { "x-api-key": R } }
3401
3399
  );
3402
- j.data.success ? ($(2), O({ type: "success", text: "OTP sent to your email" })) : O({
3400
+ v.data.success ? ($(2), O({ type: "success", text: "OTP sent to your email" })) : O({
3403
3401
  type: "error",
3404
- text: j.data.message || "Failed to send OTP"
3402
+ text: v.data.message || "Failed to send OTP"
3405
3403
  });
3406
- } catch (j) {
3404
+ } catch (v) {
3407
3405
  O({
3408
3406
  type: "error",
3409
- text: j.response?.data?.message || "Something went wrong"
3407
+ text: v.response?.data?.message || "Something went wrong"
3410
3408
  });
3411
3409
  } finally {
3412
3410
  L(!1);
3413
3411
  }
3414
- }, N = async (f) => {
3412
+ }, T = async (f) => {
3415
3413
  f.preventDefault(), L(!0), O(null);
3416
3414
  try {
3417
- const j = await W.post(
3415
+ const v = await B.post(
3418
3416
  `${m}/users/reset-password`,
3419
- Y,
3417
+ H,
3420
3418
  { headers: { "x-api-key": R } }
3421
3419
  );
3422
- j.data.success ? (O({ type: "success", text: "Password reset successfully!" }), $(1), Q({ email: "", otp: "", newPassword: "", appId: v }), b("login")) : O({ type: "error", text: j.data.message || "Reset failed" });
3423
- } catch (j) {
3420
+ v.data.success ? (O({ type: "success", text: "Password reset successfully!" }), $(1), Q({ email: "", otp: "", newPassword: "", appId: j }), w("login")) : O({ type: "error", text: v.data.message || "Reset failed" });
3421
+ } catch (v) {
3424
3422
  O({
3425
3423
  type: "error",
3426
- text: j.response?.data?.message || "Something went wrong"
3424
+ text: v.response?.data?.message || "Something went wrong"
3427
3425
  });
3428
3426
  } finally {
3429
3427
  L(!1);
3430
3428
  }
3431
- }, B = {
3429
+ }, U = {
3432
3430
  width: "100%",
3433
3431
  padding: S ? "10px 14px 10px 44px" : "10px 16px 10px 44px",
3434
3432
  backgroundColor: F,
3435
- border: `1px solid ${T}`,
3433
+ border: `1px solid ${C}`,
3436
3434
  borderRadius: "10px",
3437
- color: Z,
3435
+ color: G,
3438
3436
  fontSize: "15px",
3439
3437
  outline: "none",
3440
3438
  transition: "all 0.2s ease"
@@ -3480,7 +3478,7 @@ const Ds = [
3480
3478
  style: { height: "50px", width: "50px", marginBottom: "10px" }
3481
3479
  }
3482
3480
  ) }) : /* @__PURE__ */ n.jsx(
3483
- we,
3481
+ be,
3484
3482
  {
3485
3483
  size: 40,
3486
3484
  color: i,
@@ -3493,10 +3491,10 @@ const Ds = [
3493
3491
  style: {
3494
3492
  fontSize: "24px",
3495
3493
  fontWeight: 700,
3496
- color: Z,
3494
+ color: G,
3497
3495
  margin: 0
3498
3496
  },
3499
- children: d === "login" ? r : g === 1 ? "Forgot Password" : "Reset Password"
3497
+ children: d === "login" ? r : h === 1 ? "Forgot Password" : "Reset Password"
3500
3498
  }
3501
3499
  ),
3502
3500
  /* @__PURE__ */ n.jsx(
@@ -3555,9 +3553,9 @@ const Ds = [
3555
3553
  id: "login-email",
3556
3554
  type: "email",
3557
3555
  placeholder: "Enter your email",
3558
- value: w,
3559
- onChange: (f) => D(f.target.value),
3560
- style: B
3556
+ value: b,
3557
+ onChange: (f) => N(f.target.value),
3558
+ style: U
3561
3559
  }
3562
3560
  )
3563
3561
  ] })
@@ -3583,7 +3581,7 @@ const Ds = [
3583
3581
  ),
3584
3582
  /* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
3585
3583
  /* @__PURE__ */ n.jsx(
3586
- ye,
3584
+ me,
3587
3585
  {
3588
3586
  size: 20,
3589
3587
  style: {
@@ -3601,9 +3599,9 @@ const Ds = [
3601
3599
  id: "login-password",
3602
3600
  type: _ ? "text" : "password",
3603
3601
  placeholder: "Enter your password",
3604
- value: K,
3605
- onChange: (f) => U(f.target.value),
3606
- style: B
3602
+ value: J,
3603
+ onChange: (f) => D(f.target.value),
3604
+ style: U
3607
3605
  }
3608
3606
  ),
3609
3607
  /* @__PURE__ */ n.jsx(
@@ -3638,10 +3636,10 @@ const Ds = [
3638
3636
  fontSize: "13px"
3639
3637
  },
3640
3638
  children: [
3641
- h && /* @__PURE__ */ n.jsx(
3639
+ g && /* @__PURE__ */ n.jsx(
3642
3640
  "a",
3643
3641
  {
3644
- href: h,
3642
+ href: g,
3645
3643
  style: {
3646
3644
  color: i,
3647
3645
  textDecoration: "none",
@@ -3654,7 +3652,7 @@ const Ds = [
3654
3652
  "button",
3655
3653
  {
3656
3654
  type: "button",
3657
- onClick: () => b("forgot"),
3655
+ onClick: () => w("forgot"),
3658
3656
  style: {
3659
3657
  background: "none",
3660
3658
  border: "none",
@@ -3672,7 +3670,7 @@ const Ds = [
3672
3670
  "button",
3673
3671
  {
3674
3672
  type: "submit",
3675
- disabled: E,
3673
+ disabled: k,
3676
3674
  style: {
3677
3675
  padding: "12px",
3678
3676
  background: a,
@@ -3682,7 +3680,7 @@ const Ds = [
3682
3680
  fontSize: "14px",
3683
3681
  fontWeight: 600
3684
3682
  },
3685
- children: E ? "Signing In..." : "Sign In"
3683
+ children: k ? "Signing In..." : "Sign In"
3686
3684
  }
3687
3685
  )
3688
3686
  ]
@@ -3691,10 +3689,10 @@ const Ds = [
3691
3689
  d === "forgot" && /* @__PURE__ */ n.jsxs(
3692
3690
  "form",
3693
3691
  {
3694
- onSubmit: g === 1 ? k : N,
3692
+ onSubmit: h === 1 ? x : T,
3695
3693
  style: { display: "flex", flexDirection: "column", gap: "14px" },
3696
3694
  children: [
3697
- g === 1 ? /* @__PURE__ */ n.jsxs(
3695
+ h === 1 ? /* @__PURE__ */ n.jsxs(
3698
3696
  "div",
3699
3697
  {
3700
3698
  style: { display: "flex", flexDirection: "column", gap: "4px" },
@@ -3732,9 +3730,9 @@ const Ds = [
3732
3730
  type: "email",
3733
3731
  name: "email",
3734
3732
  placeholder: "Enter your email",
3735
- value: Y.email,
3736
- onChange: x,
3737
- style: B
3733
+ value: H.email,
3734
+ onChange: K,
3735
+ style: U
3738
3736
  }
3739
3737
  )
3740
3738
  ] })
@@ -3783,9 +3781,9 @@ const Ds = [
3783
3781
  type: "text",
3784
3782
  name: "otp",
3785
3783
  placeholder: "Enter OTP",
3786
- value: Y.otp,
3787
- onChange: x,
3788
- style: B
3784
+ value: H.otp,
3785
+ onChange: K,
3786
+ style: U
3789
3787
  }
3790
3788
  )
3791
3789
  ] })
@@ -3815,7 +3813,7 @@ const Ds = [
3815
3813
  ),
3816
3814
  /* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
3817
3815
  /* @__PURE__ */ n.jsx(
3818
- ye,
3816
+ me,
3819
3817
  {
3820
3818
  size: 20,
3821
3819
  style: {
@@ -3834,9 +3832,9 @@ const Ds = [
3834
3832
  type: "password",
3835
3833
  name: "newPassword",
3836
3834
  placeholder: "Enter new password",
3837
- value: Y.newPassword,
3838
- onChange: x,
3839
- style: B
3835
+ value: H.newPassword,
3836
+ onChange: K,
3837
+ style: U
3840
3838
  }
3841
3839
  )
3842
3840
  ] })
@@ -3848,7 +3846,7 @@ const Ds = [
3848
3846
  "button",
3849
3847
  {
3850
3848
  type: "submit",
3851
- disabled: E,
3849
+ disabled: k,
3852
3850
  style: {
3853
3851
  padding: "12px",
3854
3852
  background: a,
@@ -3858,7 +3856,7 @@ const Ds = [
3858
3856
  borderRadius: "10px",
3859
3857
  fontWeight: 600
3860
3858
  },
3861
- children: E ? "Please wait..." : g === 1 ? "Send Reset OTP" : "Reset Password"
3859
+ children: k ? "Please wait..." : h === 1 ? "Send Reset OTP" : "Reset Password"
3862
3860
  }
3863
3861
  ),
3864
3862
  /* @__PURE__ */ n.jsx(
@@ -3866,7 +3864,7 @@ const Ds = [
3866
3864
  {
3867
3865
  type: "button",
3868
3866
  onClick: () => {
3869
- b("login"), $(1);
3867
+ w("login"), $(1);
3870
3868
  },
3871
3869
  style: {
3872
3870
  background: "none",
@@ -3898,7 +3896,7 @@ const Ds = [
3898
3896
  color: y.type === "success" ? i : "#ef4444"
3899
3897
  },
3900
3898
  children: [
3901
- y.type === "success" ? /* @__PURE__ */ n.jsx(xe, { size: 20 }) : /* @__PURE__ */ n.jsx(ce, { size: 20 }),
3899
+ y.type === "success" ? /* @__PURE__ */ n.jsx(xe, { size: 20 }) : /* @__PURE__ */ n.jsx(ie, { size: 20 }),
3902
3900
  /* @__PURE__ */ n.jsx("span", { children: y.text })
3903
3901
  ]
3904
3902
  }
@@ -3940,7 +3938,7 @@ const Ds = [
3940
3938
  height: s
3941
3939
  }) => {
3942
3940
  const [o, i] = I(!1);
3943
- return se(() => {
3941
+ return ne(() => {
3944
3942
  const a = () => i(Ls());
3945
3943
  return a(), window.addEventListener("storage", a), () => window.removeEventListener("storage", a);
3946
3944
  }, []), o ? /* @__PURE__ */ n.jsx(
@@ -3971,7 +3969,7 @@ const Ds = [
3971
3969
  height: s
3972
3970
  }) => {
3973
3971
  const [o, i] = I(!At());
3974
- return se(() => {
3972
+ return ne(() => {
3975
3973
  const a = () => i(!At());
3976
3974
  return a(), window.addEventListener("storage", a), () => window.removeEventListener("storage", a);
3977
3975
  }, []), o ? /* @__PURE__ */ n.jsx(
@@ -3996,31 +3994,31 @@ const Ds = [
3996
3994
  token: i,
3997
3995
  colors: a
3998
3996
  }) => {
3999
- const { baseUrl: l, apiKey: h, appId: p } = Se(), [c, m] = I(!1), [R, v] = I(""), [d, b] = I("warning"), [g, $] = I(!1);
4000
- if (se(() => {
3997
+ const { baseUrl: l, apiKey: g, appId: p } = ve(), [c, m] = I(!1), [R, j] = I(""), [d, w] = I("warning"), [h, $] = I(!1);
3998
+ if (ne(() => {
4001
3999
  const y = () => {
4002
4000
  $(window.innerWidth < 640);
4003
4001
  };
4004
4002
  return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
4005
4003
  }, []), !e) return null;
4006
4004
  const _ = async () => {
4007
- m(!0), b("processing");
4005
+ m(!0), w("processing");
4008
4006
  try {
4009
- const { data: y } = await W.delete(`${l}/users/delete/${o}`, {
4007
+ const { data: y } = await B.delete(`${l}/users/delete/${o}`, {
4010
4008
  data: { appId: p },
4011
4009
  headers: {
4012
- "x-api-key": h
4010
+ "x-api-key": g
4013
4011
  }
4014
4012
  });
4015
- y.success ? (r(y.message || "Account deleted successfully"), b("success"), setTimeout(() => {
4013
+ y.success ? (r(y.message || "Account deleted successfully"), w("success"), setTimeout(() => {
4016
4014
  localStorage.removeItem("userInfo"), localStorage.removeItem("userToken"), window.location.href = "/";
4017
- }, 2e3)) : (s(y.message || "Failed to delete account"), b("warning"));
4015
+ }, 2e3)) : (s(y.message || "Failed to delete account"), w("warning"));
4018
4016
  } catch (y) {
4019
- s(y.response?.data?.message || "Something went wrong"), b("warning");
4017
+ s(y.response?.data?.message || "Something went wrong"), w("warning");
4020
4018
  } finally {
4021
4019
  m(!1);
4022
4020
  }
4023
- }, P = R.toLowerCase() === "delete my account", E = (y) => {
4021
+ }, P = R.toLowerCase() === "delete my account", k = (y) => {
4024
4022
  y.target === y.currentTarget && d !== "processing" && d !== "success" && t();
4025
4023
  }, L = () => {
4026
4024
  switch (d) {
@@ -4106,7 +4104,7 @@ const Ds = [
4106
4104
  onMouseOut: (y) => {
4107
4105
  y.currentTarget.style.backgroundColor = "transparent", y.currentTarget.style.color = a.textTertiary;
4108
4106
  },
4109
- children: /* @__PURE__ */ n.jsx(Oe, { size: 20 })
4107
+ children: /* @__PURE__ */ n.jsx(Pe, { size: 20 })
4110
4108
  }
4111
4109
  )
4112
4110
  ]
@@ -4200,7 +4198,7 @@ const Ds = [
4200
4198
  style: {
4201
4199
  display: "flex",
4202
4200
  gap: "12px",
4203
- flexDirection: g ? "column-reverse" : "row",
4201
+ flexDirection: h ? "column-reverse" : "row",
4204
4202
  justifyContent: "flex-end",
4205
4203
  alignItems: "stretch"
4206
4204
  },
@@ -4218,8 +4216,8 @@ const Ds = [
4218
4216
  fontSize: "14px",
4219
4217
  fontWeight: 500,
4220
4218
  cursor: "pointer",
4221
- flex: g ? "none" : 1,
4222
- minWidth: g ? "100%" : "120px",
4219
+ flex: h ? "none" : 1,
4220
+ minWidth: h ? "100%" : "120px",
4223
4221
  transition: "all 0.2s ease"
4224
4222
  },
4225
4223
  onMouseOver: (y) => {
@@ -4234,7 +4232,7 @@ const Ds = [
4234
4232
  /* @__PURE__ */ n.jsxs(
4235
4233
  "button",
4236
4234
  {
4237
- onClick: () => b("confirmation"),
4235
+ onClick: () => w("confirmation"),
4238
4236
  style: {
4239
4237
  padding: "10px 24px",
4240
4238
  borderRadius: "10px",
@@ -4244,8 +4242,8 @@ const Ds = [
4244
4242
  fontSize: "14px",
4245
4243
  fontWeight: 600,
4246
4244
  cursor: "pointer",
4247
- flex: g ? "none" : 1,
4248
- minWidth: g ? "100%" : "140px",
4245
+ flex: h ? "none" : 1,
4246
+ minWidth: h ? "100%" : "140px",
4249
4247
  display: "flex",
4250
4248
  alignItems: "center",
4251
4249
  justifyContent: "center",
@@ -4338,7 +4336,7 @@ const Ds = [
4338
4336
  {
4339
4337
  type: "text",
4340
4338
  value: R,
4341
- onChange: (y) => v(y.target.value),
4339
+ onChange: (y) => j(y.target.value),
4342
4340
  placeholder: "delete my account",
4343
4341
  style: {
4344
4342
  width: "100%",
@@ -4395,7 +4393,7 @@ const Ds = [
4395
4393
  "button",
4396
4394
  {
4397
4395
  onClick: () => {
4398
- b("warning"), v("");
4396
+ w("warning"), j("");
4399
4397
  },
4400
4398
  style: {
4401
4399
  padding: "10px 24px",
@@ -4406,8 +4404,8 @@ const Ds = [
4406
4404
  fontSize: "14px",
4407
4405
  fontWeight: 500,
4408
4406
  cursor: "pointer",
4409
- flex: g ? "none" : 1,
4410
- minWidth: g ? "100%" : "120px",
4407
+ flex: h ? "none" : 1,
4408
+ minWidth: h ? "100%" : "120px",
4411
4409
  transition: "all 0.2s ease"
4412
4410
  },
4413
4411
  onMouseOver: (y) => {
@@ -4433,8 +4431,8 @@ const Ds = [
4433
4431
  fontSize: "14px",
4434
4432
  fontWeight: 600,
4435
4433
  cursor: !P || c ? "not-allowed" : "pointer",
4436
- flex: g ? "none" : 1,
4437
- minWidth: g ? "100%" : "140px",
4434
+ flex: h ? "none" : 1,
4435
+ minWidth: h ? "100%" : "140px",
4438
4436
  opacity: !P || c ? 0.6 : 1,
4439
4437
  display: "flex",
4440
4438
  alignItems: "center",
@@ -4486,7 +4484,7 @@ const Ds = [
4486
4484
  flexShrink: 0
4487
4485
  },
4488
4486
  children: /* @__PURE__ */ n.jsx(
4489
- de,
4487
+ le,
4490
4488
  {
4491
4489
  size: 20,
4492
4490
  style: {
@@ -4733,7 +4731,7 @@ const Ds = [
4733
4731
  },
4734
4732
  children: [
4735
4733
  /* @__PURE__ */ n.jsx(
4736
- de,
4734
+ le,
4737
4735
  {
4738
4736
  size: 16,
4739
4737
  style: {
@@ -4764,7 +4762,7 @@ const Ds = [
4764
4762
  zIndex: 1e4,
4765
4763
  animation: "fadeIn 0.3s ease-out"
4766
4764
  },
4767
- onClick: E,
4765
+ onClick: k,
4768
4766
  children: [
4769
4767
  /* @__PURE__ */ n.jsx(
4770
4768
  "div",
@@ -4847,20 +4845,20 @@ const Ds = [
4847
4845
  onUpdate: r,
4848
4846
  colors: s
4849
4847
  }) => {
4850
- const [o, i] = I(""), [a, l] = I(!1), [h, p] = I(!1), [c, m] = I({ isValid: !1, message: "", type: null });
4851
- if (se(() => {
4848
+ const [o, i] = I(""), [a, l] = I(!1), [g, p] = I(!1), [c, m] = I({ isValid: !1, message: "", type: null });
4849
+ if (ne(() => {
4852
4850
  const d = () => {
4853
4851
  p(window.innerWidth < 640);
4854
4852
  };
4855
4853
  return d(), window.addEventListener("resize", d), () => window.removeEventListener("resize", d);
4856
- }, []), se(() => {
4854
+ }, []), ne(() => {
4857
4855
  if (!o.trim()) {
4858
4856
  m({ isValid: !1, message: "", type: null });
4859
4857
  return;
4860
4858
  }
4861
4859
  try {
4862
- const d = new URL(o), b = /\.(jpg|jpeg|png|gif|webp|svg)$/i.test(d.pathname);
4863
- m(b ? {
4860
+ const d = new URL(o), w = /\.(jpg|jpeg|png|gif|webp|svg)$/i.test(d.pathname);
4861
+ m(w ? {
4864
4862
  isValid: !0,
4865
4863
  message: "Valid image URL",
4866
4864
  type: "success"
@@ -4886,7 +4884,7 @@ const Ds = [
4886
4884
  l(!1);
4887
4885
  }
4888
4886
  }
4889
- }, v = (d) => {
4887
+ }, j = (d) => {
4890
4888
  d.target === d.currentTarget && t();
4891
4889
  };
4892
4890
  return /* @__PURE__ */ n.jsxs(
@@ -4903,7 +4901,7 @@ const Ds = [
4903
4901
  padding: "16px",
4904
4902
  zIndex: 1e3
4905
4903
  },
4906
- onClick: v,
4904
+ onClick: j,
4907
4905
  children: [
4908
4906
  /* @__PURE__ */ n.jsxs(
4909
4907
  "div",
@@ -5000,7 +4998,7 @@ const Ds = [
5000
4998
  onMouseOut: (d) => {
5001
4999
  d.currentTarget.style.backgroundColor = "transparent", d.currentTarget.style.color = s.textTertiary;
5002
5000
  },
5003
- children: /* @__PURE__ */ n.jsx(Oe, { size: 20 })
5001
+ children: /* @__PURE__ */ n.jsx(Pe, { size: 20 })
5004
5002
  }
5005
5003
  )
5006
5004
  ]
@@ -5093,8 +5091,8 @@ const Ds = [
5093
5091
  },
5094
5092
  children: [
5095
5093
  c.type === "success" && /* @__PURE__ */ n.jsx(xe, { size: 14 }),
5096
- c.type === "error" && /* @__PURE__ */ n.jsx(ce, { size: 14 }),
5097
- c.type === "warning" && /* @__PURE__ */ n.jsx(ce, { size: 14 }),
5094
+ c.type === "error" && /* @__PURE__ */ n.jsx(ie, { size: 14 }),
5095
+ c.type === "warning" && /* @__PURE__ */ n.jsx(ie, { size: 14 }),
5098
5096
  c.message
5099
5097
  ]
5100
5098
  }
@@ -5153,7 +5151,7 @@ const Ds = [
5153
5151
  style: {
5154
5152
  display: "flex",
5155
5153
  gap: "12px",
5156
- flexDirection: h ? "column-reverse" : "row",
5154
+ flexDirection: g ? "column-reverse" : "row",
5157
5155
  justifyContent: "flex-end",
5158
5156
  alignItems: "stretch",
5159
5157
  marginTop: "24px"
@@ -5173,8 +5171,8 @@ const Ds = [
5173
5171
  fontSize: "14px",
5174
5172
  fontWeight: 500,
5175
5173
  cursor: a ? "not-allowed" : "pointer",
5176
- flex: h ? "none" : 1,
5177
- minWidth: h ? "100%" : "120px",
5174
+ flex: g ? "none" : 1,
5175
+ minWidth: g ? "100%" : "120px",
5178
5176
  opacity: a ? 0.6 : 1,
5179
5177
  transition: "all 0.2s ease"
5180
5178
  },
@@ -5201,8 +5199,8 @@ const Ds = [
5201
5199
  fontSize: "14px",
5202
5200
  fontWeight: 600,
5203
5201
  cursor: a || !c.isValid ? "not-allowed" : "pointer",
5204
- flex: h ? "none" : 1,
5205
- minWidth: h ? "100%" : "140px",
5202
+ flex: g ? "none" : 1,
5203
+ minWidth: g ? "100%" : "140px",
5206
5204
  opacity: a || !c.isValid ? 0.6 : 1,
5207
5205
  display: "flex",
5208
5206
  alignItems: "center",
@@ -5219,7 +5217,7 @@ const Ds = [
5219
5217
  },
5220
5218
  children: a ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
5221
5219
  /* @__PURE__ */ n.jsx(
5222
- de,
5220
+ le,
5223
5221
  {
5224
5222
  size: 16,
5225
5223
  style: {
@@ -5300,37 +5298,37 @@ const Ds = [
5300
5298
  userId: o,
5301
5299
  colors: i
5302
5300
  }) => {
5303
- const { baseUrl: a, apiKey: l, appId: h } = Se(), [p, c] = I({
5301
+ const { baseUrl: a, apiKey: l, appId: g } = ve(), [p, c] = I({
5304
5302
  currentPassword: "",
5305
5303
  newPassword: "",
5306
5304
  confirmPassword: ""
5307
- }), [m, R] = I({}), [v, d] = I(!1), [b, g] = I({
5305
+ }), [m, R] = I({}), [j, d] = I(!1), [w, h] = I({
5308
5306
  currentPassword: !1,
5309
5307
  newPassword: !1,
5310
5308
  confirmPassword: !1
5311
5309
  }), [$, _] = I(!1);
5312
5310
  if (_t.useEffect(() => {
5313
- const w = () => {
5311
+ const b = () => {
5314
5312
  _(window.innerWidth < 640);
5315
5313
  };
5316
- return w(), window.addEventListener("resize", w), () => window.removeEventListener("resize", w);
5314
+ return b(), window.addEventListener("resize", b), () => window.removeEventListener("resize", b);
5317
5315
  }, []), !e) return null;
5318
- const P = (w) => {
5319
- const { name: D, value: K } = w.target;
5320
- c((U) => ({ ...U, [D]: K })), m[D] && R((U) => ({ ...U, [D]: "" }));
5321
- }, E = (w) => {
5322
- g((D) => ({ ...D, [w]: !D[w] }));
5316
+ const P = (b) => {
5317
+ const { name: N, value: J } = b.target;
5318
+ c((D) => ({ ...D, [N]: J })), m[N] && R((D) => ({ ...D, [N]: "" }));
5319
+ }, k = (b) => {
5320
+ h((N) => ({ ...N, [b]: !N[b] }));
5323
5321
  }, L = () => {
5324
- const w = {};
5325
- return p.currentPassword || (w.currentPassword = "Current password is required"), p.newPassword ? p.newPassword.length < 6 && (w.newPassword = "Password must be at least 6 characters") : w.newPassword = "New password is required", p.newPassword !== p.confirmPassword && (w.confirmPassword = "Passwords do not match"), R(w), Object.keys(w).length === 0;
5326
- }, y = async (w) => {
5327
- if (w.preventDefault(), !!L()) {
5322
+ const b = {};
5323
+ return p.currentPassword || (b.currentPassword = "Current password is required"), p.newPassword ? p.newPassword.length < 6 && (b.newPassword = "Password must be at least 6 characters") : b.newPassword = "New password is required", p.newPassword !== p.confirmPassword && (b.confirmPassword = "Passwords do not match"), R(b), Object.keys(b).length === 0;
5324
+ }, y = async (b) => {
5325
+ if (b.preventDefault(), !!L()) {
5328
5326
  d(!0);
5329
5327
  try {
5330
- const { data: D } = await W.put(
5328
+ const { data: N } = await B.put(
5331
5329
  `${a}/users/change-password/${o}`,
5332
5330
  {
5333
- appId: h,
5331
+ appId: g,
5334
5332
  currentPassword: p.currentPassword,
5335
5333
  newPassword: p.newPassword
5336
5334
  },
@@ -5340,13 +5338,13 @@ const Ds = [
5340
5338
  }
5341
5339
  }
5342
5340
  );
5343
- D.success ? (r(D.message || "Password updated successfully"), c({
5341
+ N.success ? (r(N.message || "Password updated successfully"), c({
5344
5342
  currentPassword: "",
5345
5343
  newPassword: "",
5346
5344
  confirmPassword: ""
5347
- }), t()) : s(D.message || "Failed to update password");
5348
- } catch (D) {
5349
- s(D.response?.data?.message || "Something went wrong");
5345
+ }), t()) : s(N.message || "Failed to update password");
5346
+ } catch (N) {
5347
+ s(N.response?.data?.message || "Something went wrong");
5350
5348
  } finally {
5351
5349
  d(!1);
5352
5350
  }
@@ -5360,12 +5358,12 @@ const Ds = [
5360
5358
  {
5361
5359
  field: "newPassword",
5362
5360
  label: "New Password",
5363
- icon: /* @__PURE__ */ n.jsx(ye, { size: 18 })
5361
+ icon: /* @__PURE__ */ n.jsx(me, { size: 18 })
5364
5362
  },
5365
5363
  {
5366
5364
  field: "confirmPassword",
5367
5365
  label: "Confirm Password",
5368
- icon: /* @__PURE__ */ n.jsx(ye, { size: 18 })
5366
+ icon: /* @__PURE__ */ n.jsx(me, { size: 18 })
5369
5367
  }
5370
5368
  ];
5371
5369
  return /* @__PURE__ */ n.jsx(
@@ -5433,7 +5431,7 @@ const Ds = [
5433
5431
  color: i.accent,
5434
5432
  flexShrink: 0
5435
5433
  },
5436
- children: /* @__PURE__ */ n.jsx(ye, { size: 20 })
5434
+ children: /* @__PURE__ */ n.jsx(me, { size: 20 })
5437
5435
  }
5438
5436
  ),
5439
5437
  /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(
@@ -5471,20 +5469,20 @@ const Ds = [
5471
5469
  alignItems: "center",
5472
5470
  justifyContent: "center"
5473
5471
  },
5474
- onMouseOver: (w) => {
5475
- w.currentTarget.style.backgroundColor = i.border, w.currentTarget.style.color = i.textPrimary;
5472
+ onMouseOver: (b) => {
5473
+ b.currentTarget.style.backgroundColor = i.border, b.currentTarget.style.color = i.textPrimary;
5476
5474
  },
5477
- onMouseOut: (w) => {
5478
- w.currentTarget.style.backgroundColor = "transparent", w.currentTarget.style.color = i.textTertiary;
5475
+ onMouseOut: (b) => {
5476
+ b.currentTarget.style.backgroundColor = "transparent", b.currentTarget.style.color = i.textTertiary;
5479
5477
  },
5480
- children: /* @__PURE__ */ n.jsx(Oe, { size: 20 })
5478
+ children: /* @__PURE__ */ n.jsx(Pe, { size: 20 })
5481
5479
  }
5482
5480
  )
5483
5481
  ]
5484
5482
  }
5485
5483
  ),
5486
5484
  /* @__PURE__ */ n.jsxs("form", { onSubmit: y, children: [
5487
- O.map(({ field: w, label: D, icon: K }) => /* @__PURE__ */ n.jsxs(
5485
+ O.map(({ field: b, label: N, icon: J }) => /* @__PURE__ */ n.jsxs(
5488
5486
  "div",
5489
5487
  {
5490
5488
  style: {
@@ -5495,7 +5493,7 @@ const Ds = [
5495
5493
  /* @__PURE__ */ n.jsx(
5496
5494
  "label",
5497
5495
  {
5498
- htmlFor: w,
5496
+ htmlFor: b,
5499
5497
  style: {
5500
5498
  display: "block",
5501
5499
  marginBottom: "8px",
@@ -5504,7 +5502,7 @@ const Ds = [
5504
5502
  fontWeight: 500,
5505
5503
  lineHeight: "1.4"
5506
5504
  },
5507
- children: D
5505
+ children: N
5508
5506
  }
5509
5507
  ),
5510
5508
  /* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
@@ -5519,23 +5517,23 @@ const Ds = [
5519
5517
  color: i.textTertiary,
5520
5518
  zIndex: 2
5521
5519
  },
5522
- children: K
5520
+ children: J
5523
5521
  }
5524
5522
  ),
5525
5523
  /* @__PURE__ */ n.jsx(
5526
5524
  "input",
5527
5525
  {
5528
- type: b[w] ? "text" : "password",
5529
- id: w,
5530
- name: w,
5531
- placeholder: `Enter ${D.toLowerCase()}`,
5532
- value: p[w],
5526
+ type: w[b] ? "text" : "password",
5527
+ id: b,
5528
+ name: b,
5529
+ placeholder: `Enter ${N.toLowerCase()}`,
5530
+ value: p[b],
5533
5531
  onChange: P,
5534
5532
  style: {
5535
5533
  width: "100%",
5536
5534
  padding: "14px 48px 14px 44px",
5537
5535
  borderRadius: "10px",
5538
- border: `1.5px solid ${m[w] ? i.error : i.border}`,
5536
+ border: `1.5px solid ${m[b] ? i.error : i.border}`,
5539
5537
  backgroundColor: "transparent",
5540
5538
  color: i.textPrimary,
5541
5539
  fontSize: "15px",
@@ -5543,11 +5541,11 @@ const Ds = [
5543
5541
  transition: "all 0.2s ease",
5544
5542
  boxSizing: "border-box"
5545
5543
  },
5546
- onFocus: (U) => {
5547
- U.target.style.borderColor = i.accent, U.target.style.boxShadow = `0 0 0 3px ${i.accent}20`;
5544
+ onFocus: (D) => {
5545
+ D.target.style.borderColor = i.accent, D.target.style.boxShadow = `0 0 0 3px ${i.accent}20`;
5548
5546
  },
5549
- onBlur: (U) => {
5550
- U.target.style.borderColor = m[w] ? i.error : i.border, U.target.style.boxShadow = "none";
5547
+ onBlur: (D) => {
5548
+ D.target.style.borderColor = m[b] ? i.error : i.border, D.target.style.boxShadow = "none";
5551
5549
  }
5552
5550
  }
5553
5551
  ),
@@ -5555,7 +5553,7 @@ const Ds = [
5555
5553
  "button",
5556
5554
  {
5557
5555
  type: "button",
5558
- onClick: () => E(w),
5556
+ onClick: () => k(b),
5559
5557
  style: {
5560
5558
  position: "absolute",
5561
5559
  right: "14px",
@@ -5573,17 +5571,17 @@ const Ds = [
5573
5571
  alignItems: "center",
5574
5572
  justifyContent: "center"
5575
5573
  },
5576
- onMouseOver: (U) => {
5577
- U.currentTarget.style.backgroundColor = i.border, U.currentTarget.style.color = i.textPrimary;
5574
+ onMouseOver: (D) => {
5575
+ D.currentTarget.style.backgroundColor = i.border, D.currentTarget.style.color = i.textPrimary;
5578
5576
  },
5579
- onMouseOut: (U) => {
5580
- U.currentTarget.style.backgroundColor = "transparent", U.currentTarget.style.color = i.textTertiary;
5577
+ onMouseOut: (D) => {
5578
+ D.currentTarget.style.backgroundColor = "transparent", D.currentTarget.style.color = i.textTertiary;
5581
5579
  },
5582
- children: b[w] ? /* @__PURE__ */ n.jsx(lt, { size: 18 }) : /* @__PURE__ */ n.jsx(ct, { size: 18 })
5580
+ children: w[b] ? /* @__PURE__ */ n.jsx(lt, { size: 18 }) : /* @__PURE__ */ n.jsx(ct, { size: 18 })
5583
5581
  }
5584
5582
  )
5585
5583
  ] }),
5586
- m[w] && /* @__PURE__ */ n.jsxs(
5584
+ m[b] && /* @__PURE__ */ n.jsxs(
5587
5585
  "div",
5588
5586
  {
5589
5587
  style: {
@@ -5596,13 +5594,13 @@ const Ds = [
5596
5594
  },
5597
5595
  children: [
5598
5596
  /* @__PURE__ */ n.jsx("span", { style: { fontSize: "16px" }, children: "⚠" }),
5599
- m[w]
5597
+ m[b]
5600
5598
  ]
5601
5599
  }
5602
5600
  )
5603
5601
  ]
5604
5602
  },
5605
- w
5603
+ b
5606
5604
  )),
5607
5605
  /* @__PURE__ */ n.jsxs(
5608
5606
  "div",
@@ -5620,7 +5618,7 @@ const Ds = [
5620
5618
  {
5621
5619
  type: "button",
5622
5620
  onClick: t,
5623
- disabled: v,
5621
+ disabled: j,
5624
5622
  style: {
5625
5623
  padding: "14px 24px",
5626
5624
  borderRadius: "10px",
@@ -5629,17 +5627,17 @@ const Ds = [
5629
5627
  color: i.textPrimary,
5630
5628
  fontSize: "14px",
5631
5629
  fontWeight: 500,
5632
- cursor: v ? "not-allowed" : "pointer",
5630
+ cursor: j ? "not-allowed" : "pointer",
5633
5631
  flex: $ ? "none" : 1,
5634
5632
  minWidth: $ ? "100%" : "120px",
5635
- opacity: v ? 0.6 : 1,
5633
+ opacity: j ? 0.6 : 1,
5636
5634
  transition: "all 0.2s ease"
5637
5635
  },
5638
- onMouseOver: (w) => {
5639
- v || (w.currentTarget.style.backgroundColor = i.border, w.currentTarget.style.transform = "translateY(-1px)");
5636
+ onMouseOver: (b) => {
5637
+ j || (b.currentTarget.style.backgroundColor = i.border, b.currentTarget.style.transform = "translateY(-1px)");
5640
5638
  },
5641
- onMouseOut: (w) => {
5642
- v || (w.currentTarget.style.backgroundColor = "transparent", w.currentTarget.style.transform = "translateY(0)");
5639
+ onMouseOut: (b) => {
5640
+ j || (b.currentTarget.style.backgroundColor = "transparent", b.currentTarget.style.transform = "translateY(0)");
5643
5641
  },
5644
5642
  children: "Cancel"
5645
5643
  }
@@ -5648,7 +5646,7 @@ const Ds = [
5648
5646
  "button",
5649
5647
  {
5650
5648
  type: "submit",
5651
- disabled: v,
5649
+ disabled: j,
5652
5650
  style: {
5653
5651
  padding: "14px 24px",
5654
5652
  borderRadius: "10px",
@@ -5657,26 +5655,26 @@ const Ds = [
5657
5655
  color: "#fff",
5658
5656
  fontSize: "14px",
5659
5657
  fontWeight: 600,
5660
- cursor: v ? "not-allowed" : "pointer",
5658
+ cursor: j ? "not-allowed" : "pointer",
5661
5659
  flex: $ ? "none" : 1,
5662
5660
  minWidth: $ ? "100%" : "140px",
5663
- opacity: v ? 0.8 : 1,
5661
+ opacity: j ? 0.8 : 1,
5664
5662
  display: "flex",
5665
5663
  alignItems: "center",
5666
5664
  justifyContent: "center",
5667
5665
  gap: "8px",
5668
5666
  transition: "all 0.2s ease",
5669
- boxShadow: v ? "none" : `0 4px 12px ${i.accent}40`
5667
+ boxShadow: j ? "none" : `0 4px 12px ${i.accent}40`
5670
5668
  },
5671
- onMouseOver: (w) => {
5672
- v || (w.currentTarget.style.transform = "translateY(-1px)", w.currentTarget.style.boxShadow = `0 6px 20px ${i.accent}60`);
5669
+ onMouseOver: (b) => {
5670
+ j || (b.currentTarget.style.transform = "translateY(-1px)", b.currentTarget.style.boxShadow = `0 6px 20px ${i.accent}60`);
5673
5671
  },
5674
- onMouseOut: (w) => {
5675
- v || (w.currentTarget.style.transform = "translateY(0)", w.currentTarget.style.boxShadow = `0 4px 12px ${i.accent}40`);
5672
+ onMouseOut: (b) => {
5673
+ j || (b.currentTarget.style.transform = "translateY(0)", b.currentTarget.style.boxShadow = `0 4px 12px ${i.accent}40`);
5676
5674
  },
5677
- children: v ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
5675
+ children: j ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
5678
5676
  /* @__PURE__ */ n.jsx(
5679
- de,
5677
+ le,
5680
5678
  {
5681
5679
  size: 16,
5682
5680
  style: {
@@ -5745,13 +5743,13 @@ const Ds = [
5745
5743
  setVerifyFormData: i,
5746
5744
  otpSent: a,
5747
5745
  verifying: l,
5748
- user: h,
5746
+ user: g,
5749
5747
  colors: p,
5750
5748
  darkMode: c
5751
5749
  }) => {
5752
5750
  if (!e) return null;
5753
5751
  const m = () => {
5754
- t(), i({ email: h?.email || "", otp: "", appId: o.appId });
5752
+ t(), i({ email: g?.email || "", otp: "", appId: o.appId });
5755
5753
  };
5756
5754
  return /* @__PURE__ */ n.jsxs(
5757
5755
  "div",
@@ -5779,7 +5777,7 @@ const Ds = [
5779
5777
  className: "close-btn",
5780
5778
  style: { color: p.textTertiary },
5781
5779
  "aria-label": "Close verification modal",
5782
- children: /* @__PURE__ */ n.jsx(Oe, { size: 20, "aria-hidden": "true" })
5780
+ children: /* @__PURE__ */ n.jsx(Pe, { size: 20, "aria-hidden": "true" })
5783
5781
  }
5784
5782
  )
5785
5783
  ] }),
@@ -5793,7 +5791,7 @@ const Ds = [
5793
5791
  {
5794
5792
  type: "email",
5795
5793
  value: o.email,
5796
- onChange: (R) => i((v) => ({ ...v, email: R.target.value })),
5794
+ onChange: (R) => i((j) => ({ ...j, email: R.target.value })),
5797
5795
  placeholder: "Enter your email",
5798
5796
  style: {
5799
5797
  backgroundColor: p.surfaceLight,
@@ -5816,7 +5814,7 @@ const Ds = [
5816
5814
  {
5817
5815
  type: "text",
5818
5816
  value: o.otp,
5819
- onChange: (R) => i((v) => ({ ...v, otp: R.target.value })),
5817
+ onChange: (R) => i((j) => ({ ...j, otp: R.target.value })),
5820
5818
  placeholder: "Enter OTP",
5821
5819
  style: {
5822
5820
  backgroundColor: p.surfaceLight,
@@ -5842,7 +5840,7 @@ const Ds = [
5842
5840
  },
5843
5841
  "aria-label": l ? "Verifying email" : "Verify email",
5844
5842
  children: [
5845
- l ? /* @__PURE__ */ n.jsx(de, { size: 16, className: "spinner", "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(xe, { size: 16, "aria-hidden": "true" }),
5843
+ l ? /* @__PURE__ */ n.jsx(le, { size: 16, className: "spinner", "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(xe, { size: 16, "aria-hidden": "true" }),
5846
5844
  l ? "Verifying..." : "Verify Email"
5847
5845
  ]
5848
5846
  }
@@ -5859,7 +5857,7 @@ const Ds = [
5859
5857
  },
5860
5858
  "aria-label": l ? "Sending OTP" : "Send OTP",
5861
5859
  children: [
5862
- l ? /* @__PURE__ */ n.jsx(de, { size: 16, className: "spinner", "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(dr, { size: 16, "aria-hidden": "true" }),
5860
+ l ? /* @__PURE__ */ n.jsx(le, { size: 16, className: "spinner", "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(dr, { size: 16, "aria-hidden": "true" }),
5863
5861
  l ? "Sending..." : "Send OTP"
5864
5862
  ]
5865
5863
  }
@@ -6028,141 +6026,141 @@ const Ds = [
6028
6026
  onVerify: i,
6029
6027
  primaryColor: a = "#00C212"
6030
6028
  }) => {
6031
- const { baseUrl: l, apiKey: h, appId: p } = Se(), [c, m] = I(t), [R, v] = I(!0), [d, b] = I(!1), [g, $] = I(!1), [_, P] = I(!1), [E, L] = I(!1), [y, O] = I(!1), [w, D] = I(!1), [K, U] = I(!1), [Y, Q] = I(!1), [S, Z] = I(null), [M, F] = I(!1), [T, V] = I({
6029
+ const { baseUrl: l, apiKey: g, appId: p } = ve(), [c, m] = I(t), [R, j] = I(!0), [d, w] = I(!1), [h, $] = I(!1), [_, P] = I(!1), [k, L] = I(!1), [y, O] = I(!1), [b, N] = I(!1), [J, D] = I(!1), [H, Q] = I(!1), [S, G] = I(null), [M, F] = I(!1), [C, V] = I({
6032
6030
  email: "",
6033
6031
  otp: "",
6034
6032
  appId: p
6035
- }), [x, k] = I(!1), [N, B] = I(!1), f = (C, H) => {
6036
- Z({ type: C, message: H }), setTimeout(() => Z(null), 3e3);
6037
- }, j = () => {
6033
+ }), [K, x] = I(!1), [T, U] = I(!1), f = (E, q) => {
6034
+ G({ type: E, message: q }), setTimeout(() => G(null), 3e3);
6035
+ }, v = () => {
6038
6036
  Q(!0);
6039
- const C = setTimeout(() => {
6040
- U(!1), Q(!1);
6037
+ const E = setTimeout(() => {
6038
+ D(!1), Q(!1);
6041
6039
  }, 150);
6042
- return () => clearTimeout(C);
6040
+ return () => clearTimeout(E);
6043
6041
  };
6044
- se(() => {
6045
- const C = (H) => {
6046
- const G = document.querySelector(".dropdown-container");
6047
- G && !G.contains(H.target) && j();
6042
+ ne(() => {
6043
+ const E = (q) => {
6044
+ const Z = document.querySelector(".dropdown-container");
6045
+ Z && !Z.contains(q.target) && v();
6048
6046
  };
6049
- return K && document.addEventListener("mousedown", C), () => {
6050
- document.removeEventListener("mousedown", C);
6047
+ return J && document.addEventListener("mousedown", E), () => {
6048
+ document.removeEventListener("mousedown", E);
6051
6049
  };
6052
- }, [K]);
6053
- const J = async () => {
6054
- if (!T.email || !/\S+@\S+\.\S+/.test(T.email)) {
6050
+ }, [J]);
6051
+ const X = async () => {
6052
+ if (!C.email || !/\S+@\S+\.\S+/.test(C.email)) {
6055
6053
  f("error", "Please enter a valid email");
6056
6054
  return;
6057
6055
  }
6058
6056
  try {
6059
- B(!0);
6060
- const C = await W.post(
6057
+ U(!0);
6058
+ const E = await B.post(
6061
6059
  `${l}/users/send-verify-otp/${c?.id}`,
6062
- { email: T.email },
6060
+ { email: C.email },
6063
6061
  {
6064
- headers: { "x-api-key": h, "x-app-id": p }
6062
+ headers: { "x-api-key": g, "x-app-id": p }
6065
6063
  }
6066
6064
  );
6067
- C.data.success ? (f("success", C.data.message || "OTP sent to email!"), k(!0)) : f("error", C.data.message || "Failed to send OTP");
6068
- } catch (C) {
6069
- f("error", C.response?.data?.message || "Server error");
6065
+ E.data.success ? (f("success", E.data.message || "OTP sent to email!"), x(!0)) : f("error", E.data.message || "Failed to send OTP");
6066
+ } catch (E) {
6067
+ f("error", E.response?.data?.message || "Server error");
6070
6068
  } finally {
6071
- B(!1);
6069
+ U(!1);
6072
6070
  }
6073
- }, ne = async (C) => {
6074
- if (C.preventDefault(), !T.email || !T.otp) {
6071
+ }, Y = async (E) => {
6072
+ if (E.preventDefault(), !C.email || !C.otp) {
6075
6073
  f("error", "Please fill in all fields");
6076
6074
  return;
6077
6075
  }
6078
6076
  try {
6079
- B(!0);
6080
- const H = await W.post(
6077
+ U(!0);
6078
+ const q = await B.post(
6081
6079
  `${l}/users/verify-email`,
6082
- T
6080
+ C
6083
6081
  );
6084
- if (H.data.success) {
6085
- if (f("success", H.data.message || "Email verified!"), c) {
6086
- const G = { ...c, isVerified: !0 };
6087
- m(G), localStorage.setItem(
6082
+ if (q.data.success) {
6083
+ if (f("success", q.data.message || "Email verified!"), c) {
6084
+ const Z = { ...c, isVerified: !0 };
6085
+ m(Z), localStorage.setItem(
6088
6086
  "userInfo",
6089
- JSON.stringify({ ...G, token: e })
6090
- ), typeof i == "function" && i(G);
6087
+ JSON.stringify({ ...Z, token: e })
6088
+ ), typeof i == "function" && i(Z);
6091
6089
  }
6092
- V({ email: "", otp: "", appId: p }), k(!1), D(!1);
6090
+ V({ email: "", otp: "", appId: p }), x(!1), N(!1);
6093
6091
  } else
6094
- f("error", H.data.message || "Verification failed");
6095
- } catch (H) {
6092
+ f("error", q.data.message || "Verification failed");
6093
+ } catch (q) {
6096
6094
  f(
6097
6095
  "error",
6098
- H.response?.data?.message || "Something went wrong"
6096
+ q.response?.data?.message || "Something went wrong"
6099
6097
  );
6100
6098
  } finally {
6101
- B(!1);
6099
+ U(!1);
6102
6100
  }
6103
- }, X = async (C) => {
6101
+ }, oe = async (E) => {
6104
6102
  if (!c) return !1;
6105
6103
  try {
6106
- const H = { ...c, avatarUrl: C }, { data: G } = await W.put(
6104
+ const q = { ...c, avatarUrl: E }, { data: Z } = await B.put(
6107
6105
  `${l}/users/update/${c.id}`,
6108
- H,
6109
- { headers: { "x-api-key": h } }
6106
+ q,
6107
+ { headers: { "x-api-key": g } }
6110
6108
  );
6111
- return G.success ? (m(H), localStorage.setItem(
6109
+ return Z.success ? (m(q), localStorage.setItem(
6112
6110
  "userInfo",
6113
- JSON.stringify({ ...H, token: e })
6114
- ), f("success", "Avatar updated successfully!"), !0) : (f("error", G.message || "Failed to update avatar"), !1);
6115
- } catch (H) {
6116
- return console.error("Avatar update error:", H), f("error", "Failed to update avatar"), !1;
6111
+ JSON.stringify({ ...q, token: e })
6112
+ ), f("success", "Avatar updated successfully!"), !0) : (f("error", Z.message || "Failed to update avatar"), !1);
6113
+ } catch (q) {
6114
+ return console.error("Avatar update error:", q), f("error", "Failed to update avatar"), !1;
6117
6115
  }
6118
- }, oe = async () => {
6116
+ }, ce = async () => {
6119
6117
  if (c) {
6120
6118
  $(!0);
6121
6119
  try {
6122
- const { data: C } = await W.put(
6120
+ const { data: E } = await B.put(
6123
6121
  `${l}/users/update/${c.id}`,
6124
6122
  c,
6125
- { headers: { "x-api-key": h } }
6123
+ { headers: { "x-api-key": g } }
6126
6124
  );
6127
- C.success ? (m(C.user), b(!1), localStorage.setItem(
6125
+ E.success ? (m(E.user), w(!1), localStorage.setItem(
6128
6126
  "userInfo",
6129
- JSON.stringify({ ...C.user, token: e })
6130
- ), f("success", "Profile updated successfully")) : f("error", C.message);
6131
- } catch (C) {
6132
- console.error(C), f("error", "Update failed");
6127
+ JSON.stringify({ ...E.user, token: e })
6128
+ ), f("success", "Profile updated successfully")) : f("error", E.message);
6129
+ } catch (E) {
6130
+ console.error(E), f("error", "Update failed");
6133
6131
  } finally {
6134
6132
  $(!1);
6135
6133
  }
6136
6134
  }
6137
- }, le = async (C) => {
6135
+ }, de = async (E) => {
6138
6136
  try {
6139
- const { data: H } = await W.get(
6140
- `${l}/users/check-user/${C}?appId=${p}`,
6141
- { headers: { "x-api-key": h } }
6137
+ const { data: q } = await B.get(
6138
+ `${l}/users/check-user/${E}?appId=${p}`,
6139
+ { headers: { "x-api-key": g } }
6142
6140
  );
6143
- (!H.success || !H.exists) && (console.warn("User not found, clearing session..."), localStorage.removeItem("userInfo"), m(null));
6144
- } catch (H) {
6145
- console.error("User check failed:", H), localStorage.removeItem("userInfo"), m(null);
6141
+ (!q.success || !q.exists) && (console.warn("User not found, clearing session..."), localStorage.removeItem("userInfo"), m(null));
6142
+ } catch (q) {
6143
+ console.error("User check failed:", q), localStorage.removeItem("userInfo"), m(null);
6146
6144
  }
6147
6145
  };
6148
- se(() => {
6146
+ ne(() => {
6149
6147
  (() => {
6150
6148
  if (t)
6151
- m(t), v(!1), le(t.id);
6149
+ m(t), j(!1), de(t.id);
6152
6150
  else {
6153
- const H = localStorage.getItem("userInfo");
6154
- if (H) {
6155
- const G = JSON.parse(H);
6156
- m(G), v(!1), le(G.id);
6151
+ const q = localStorage.getItem("userInfo");
6152
+ if (q) {
6153
+ const Z = JSON.parse(q);
6154
+ m(Z), j(!1), de(Z.id);
6157
6155
  } else
6158
- v(!1);
6156
+ j(!1);
6159
6157
  }
6160
6158
  })();
6161
- }, [t]), se(() => {
6162
- c?.email && V((C) => ({ ...C, email: c.email }));
6159
+ }, [t]), ne(() => {
6160
+ c?.email && V((E) => ({ ...E, email: c.email }));
6163
6161
  }, [c?.email]);
6164
- const me = (C, H) => {
6165
- let G = parseInt(C.replace("#", ""), 16), ue = (G >> 16) + H, Ve = (G >> 8 & 255) + H, Ye = (G & 255) + H;
6162
+ const Oe = (E, q) => {
6163
+ let Z = parseInt(E.replace("#", ""), 16), ue = (Z >> 16) + q, Ve = (Z >> 8 & 255) + q, Ye = (Z & 255) + q;
6166
6164
  return ue = Math.min(255, Math.max(0, ue)), Ve = Math.min(255, Math.max(0, Ve)), Ye = Math.min(255, Math.max(0, Ye)), `#${(Ye | Ve << 8 | ue << 16).toString(16).padStart(6, "0")}`;
6167
6165
  }, z = r ? {
6168
6166
  background: "#000000",
@@ -6173,7 +6171,7 @@ const Ds = [
6173
6171
  textSecondary: "#d4d4d8",
6174
6172
  textTertiary: "#a1a1aa",
6175
6173
  accent: a,
6176
- accentHover: me(a, -15),
6174
+ accentHover: Oe(a, -15),
6177
6175
  success: "#10b981",
6178
6176
  error: "#ef4444",
6179
6177
  border: "#27272a",
@@ -6187,7 +6185,7 @@ const Ds = [
6187
6185
  textSecondary: "#52525b",
6188
6186
  textTertiary: "#71717a",
6189
6187
  accent: a,
6190
- accentHover: me(a, -15),
6188
+ accentHover: Oe(a, -15),
6191
6189
  success: "#10b981",
6192
6190
  error: "#ef4444",
6193
6191
  border: "#e4e4e7",
@@ -6218,7 +6216,7 @@ const Ds = [
6218
6216
  },
6219
6217
  children: [
6220
6218
  /* @__PURE__ */ n.jsx(
6221
- de,
6219
+ le,
6222
6220
  {
6223
6221
  size: 40,
6224
6222
  color: z.accent,
@@ -6256,7 +6254,7 @@ const Ds = [
6256
6254
  textAlign: "center"
6257
6255
  },
6258
6256
  children: [
6259
- /* @__PURE__ */ n.jsx(ce, { size: 40, color: z.error, "aria-hidden": "true" }),
6257
+ /* @__PURE__ */ n.jsx(ie, { size: 40, color: z.error, "aria-hidden": "true" }),
6260
6258
  /* @__PURE__ */ n.jsx("p", { style: { color: z.textTertiary, margin: 0 }, children: "No profile found. Please log in again." })
6261
6259
  ]
6262
6260
  }
@@ -6269,7 +6267,7 @@ const Ds = [
6269
6267
  value: c.name,
6270
6268
  name: "name",
6271
6269
  type: "text",
6272
- icon: we
6270
+ icon: be
6273
6271
  },
6274
6272
  {
6275
6273
  label: "Email Address",
@@ -6340,7 +6338,7 @@ const Ds = [
6340
6338
  role: "alert",
6341
6339
  "aria-live": "polite",
6342
6340
  children: [
6343
- S.type === "success" ? /* @__PURE__ */ n.jsx(xe, { size: 20, "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(ce, { size: 20, "aria-hidden": "true" }),
6341
+ S.type === "success" ? /* @__PURE__ */ n.jsx(xe, { size: 20, "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(ie, { size: 20, "aria-hidden": "true" }),
6344
6342
  S.message
6345
6343
  ]
6346
6344
  }
@@ -6515,7 +6513,7 @@ const Ds = [
6515
6513
  marginTop: "8px"
6516
6514
  },
6517
6515
  children: [
6518
- c.isVerified ? /* @__PURE__ */ n.jsx(xe, { size: 16, "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(ce, { size: 16, "aria-hidden": "true" }),
6516
+ c.isVerified ? /* @__PURE__ */ n.jsx(xe, { size: 16, "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(ie, { size: 16, "aria-hidden": "true" }),
6519
6517
  c.isVerified ? "Email Verified" : "Not Verified"
6520
6518
  ]
6521
6519
  }
@@ -6535,7 +6533,7 @@ const Ds = [
6535
6533
  /* @__PURE__ */ n.jsxs(
6536
6534
  "button",
6537
6535
  {
6538
- onClick: () => b(!1),
6536
+ onClick: () => w(!1),
6539
6537
  style: {
6540
6538
  backgroundColor: z.surfaceLight,
6541
6539
  border: `1px solid ${z.border}`,
@@ -6556,7 +6554,7 @@ const Ds = [
6556
6554
  flex: window.innerWidth < 1024 ? "1" : "auto"
6557
6555
  },
6558
6556
  children: [
6559
- /* @__PURE__ */ n.jsx(Oe, { size: 16, "aria-hidden": "true" }),
6557
+ /* @__PURE__ */ n.jsx(Pe, { size: 16, "aria-hidden": "true" }),
6560
6558
  "Cancel"
6561
6559
  ]
6562
6560
  }
@@ -6564,16 +6562,16 @@ const Ds = [
6564
6562
  /* @__PURE__ */ n.jsxs(
6565
6563
  "button",
6566
6564
  {
6567
- onClick: oe,
6568
- disabled: g,
6565
+ onClick: ce,
6566
+ disabled: h,
6569
6567
  style: {
6570
6568
  background: `linear-gradient(to right, ${z.accent}, ${z.accentHover})`,
6571
- opacity: g ? 0.7 : 1,
6569
+ opacity: h ? 0.7 : 1,
6572
6570
  color: "white",
6573
6571
  padding: "10px 20px",
6574
6572
  borderRadius: "6px",
6575
6573
  border: "none",
6576
- cursor: g ? "not-allowed" : "pointer",
6574
+ cursor: h ? "not-allowed" : "pointer",
6577
6575
  transition: "all 0.2s ease",
6578
6576
  fontSize: "12px",
6579
6577
  fontWeight: 500,
@@ -6586,15 +6584,15 @@ const Ds = [
6586
6584
  flex: window.innerWidth < 1024 ? "1" : "auto"
6587
6585
  },
6588
6586
  children: [
6589
- g ? /* @__PURE__ */ n.jsx(
6590
- de,
6587
+ h ? /* @__PURE__ */ n.jsx(
6588
+ le,
6591
6589
  {
6592
6590
  size: 16,
6593
6591
  style: { animation: "spin 1s linear infinite" },
6594
6592
  "aria-hidden": "true"
6595
6593
  }
6596
6594
  ) : /* @__PURE__ */ n.jsx(Rs, { size: 16, "aria-hidden": "true" }),
6597
- g ? "Saving..." : "Save Changes"
6595
+ h ? "Saving..." : "Save Changes"
6598
6596
  ]
6599
6597
  }
6600
6598
  )
@@ -6602,7 +6600,7 @@ const Ds = [
6602
6600
  /* @__PURE__ */ n.jsxs(
6603
6601
  "button",
6604
6602
  {
6605
- onClick: () => b(!0),
6603
+ onClick: () => w(!0),
6606
6604
  style: {
6607
6605
  background: `linear-gradient(to right, ${z.accent}, ${z.accentHover})`,
6608
6606
  color: "white",
@@ -6630,7 +6628,7 @@ const Ds = [
6630
6628
  !c.isVerified && /* @__PURE__ */ n.jsxs(
6631
6629
  "button",
6632
6630
  {
6633
- onClick: () => D(!0),
6631
+ onClick: () => N(!0),
6634
6632
  disabled: M,
6635
6633
  style: {
6636
6634
  background: "linear-gradient(to right, #fbbf24, #f59e0b)",
@@ -6653,7 +6651,7 @@ const Ds = [
6653
6651
  },
6654
6652
  children: [
6655
6653
  M ? /* @__PURE__ */ n.jsx(
6656
- de,
6654
+ le,
6657
6655
  {
6658
6656
  size: 14,
6659
6657
  style: { animation: "spin 1s linear infinite" },
@@ -6687,17 +6685,17 @@ const Ds = [
6687
6685
  width: "100%",
6688
6686
  boxSizing: "border-box"
6689
6687
  },
6690
- onClick: () => U(!K),
6688
+ onClick: () => D(!J),
6691
6689
  children: [
6692
6690
  /* @__PURE__ */ n.jsx(os, { size: 16, "aria-hidden": "true" }),
6693
6691
  "More Actions"
6694
6692
  ]
6695
6693
  }
6696
6694
  ),
6697
- K && /* @__PURE__ */ n.jsxs(
6695
+ J && /* @__PURE__ */ n.jsxs(
6698
6696
  "div",
6699
6697
  {
6700
- className: `dropdown-container ${Y ? "closing" : ""}`,
6698
+ className: `dropdown-container ${H ? "closing" : ""}`,
6701
6699
  style: {
6702
6700
  position: "absolute",
6703
6701
  bottom: "100%",
@@ -6710,14 +6708,14 @@ const Ds = [
6710
6708
  zIndex: 200,
6711
6709
  marginBottom: "6px",
6712
6710
  overflow: "hidden",
6713
- animation: `${Y ? "drawerSlideDown" : "drawerSlideUp"} 0.25s ease-out forwards`
6711
+ animation: `${H ? "drawerSlideDown" : "drawerSlideUp"} 0.25s ease-out forwards`
6714
6712
  },
6715
6713
  children: [
6716
6714
  /* @__PURE__ */ n.jsxs(
6717
6715
  "button",
6718
6716
  {
6719
6717
  onClick: () => {
6720
- L(!0), j();
6718
+ L(!0), v();
6721
6719
  },
6722
6720
  style: {
6723
6721
  width: "100%",
@@ -6734,8 +6732,8 @@ const Ds = [
6734
6732
  gap: "8px",
6735
6733
  textAlign: "left"
6736
6734
  },
6737
- onMouseEnter: (C) => C.currentTarget.style.backgroundColor = z.surfaceLight,
6738
- onMouseLeave: (C) => C.currentTarget.style.backgroundColor = "transparent",
6735
+ onMouseEnter: (E) => E.currentTarget.style.backgroundColor = z.surfaceLight,
6736
+ onMouseLeave: (E) => E.currentTarget.style.backgroundColor = "transparent",
6739
6737
  children: [
6740
6738
  /* @__PURE__ */ n.jsx(cr, { size: 14, "aria-hidden": "true" }),
6741
6739
  "Change Password"
@@ -6746,7 +6744,7 @@ const Ds = [
6746
6744
  "button",
6747
6745
  {
6748
6746
  onClick: () => {
6749
- o(), j();
6747
+ o(), v();
6750
6748
  },
6751
6749
  style: {
6752
6750
  width: "100%",
@@ -6763,10 +6761,10 @@ const Ds = [
6763
6761
  gap: "8px",
6764
6762
  textAlign: "left"
6765
6763
  },
6766
- onMouseEnter: (C) => {
6767
- C.currentTarget.style.backgroundColor = r ? "rgba(239, 68, 68, 0.1)" : "rgba(239, 68, 68, 0.05)";
6764
+ onMouseEnter: (E) => {
6765
+ E.currentTarget.style.backgroundColor = r ? "rgba(239, 68, 68, 0.1)" : "rgba(239, 68, 68, 0.05)";
6768
6766
  },
6769
- onMouseLeave: (C) => C.currentTarget.style.backgroundColor = "transparent",
6767
+ onMouseLeave: (E) => E.currentTarget.style.backgroundColor = "transparent",
6770
6768
  children: [
6771
6769
  /* @__PURE__ */ n.jsx(dt, { size: 14, "aria-hidden": "true" }),
6772
6770
  "Logout"
@@ -6777,7 +6775,7 @@ const Ds = [
6777
6775
  "button",
6778
6776
  {
6779
6777
  onClick: () => {
6780
- O(!0), j();
6778
+ O(!0), v();
6781
6779
  },
6782
6780
  style: {
6783
6781
  width: "100%",
@@ -6794,10 +6792,10 @@ const Ds = [
6794
6792
  gap: "8px",
6795
6793
  textAlign: "left"
6796
6794
  },
6797
- onMouseEnter: (C) => {
6798
- C.currentTarget.style.backgroundColor = r ? "rgba(239, 68, 68, 0.1)" : "rgba(239, 68, 68, 0.05)";
6795
+ onMouseEnter: (E) => {
6796
+ E.currentTarget.style.backgroundColor = r ? "rgba(239, 68, 68, 0.1)" : "rgba(239, 68, 68, 0.05)";
6799
6797
  },
6800
- onMouseLeave: (C) => C.currentTarget.style.backgroundColor = "transparent",
6798
+ onMouseLeave: (E) => E.currentTarget.style.backgroundColor = "transparent",
6801
6799
  children: [
6802
6800
  /* @__PURE__ */ n.jsx(Ue, { size: 14, "aria-hidden": "true" }),
6803
6801
  "Delete Account"
@@ -6847,7 +6845,7 @@ const Ds = [
6847
6845
  gap: "8px"
6848
6846
  },
6849
6847
  children: [
6850
- /* @__PURE__ */ n.jsx(we, { size: 20, "aria-hidden": "true" }),
6848
+ /* @__PURE__ */ n.jsx(be, { size: 20, "aria-hidden": "true" }),
6851
6849
  "Personal Information"
6852
6850
  ]
6853
6851
  }
@@ -6864,8 +6862,8 @@ const Ds = [
6864
6862
  gap: "20px"
6865
6863
  }
6866
6864
  },
6867
- children: He.map((C) => {
6868
- const H = C.icon;
6865
+ children: He.map((E) => {
6866
+ const q = E.icon;
6869
6867
  return /* @__PURE__ */ n.jsxs(
6870
6868
  "div",
6871
6869
  {
@@ -6887,19 +6885,19 @@ const Ds = [
6887
6885
  gap: "8px"
6888
6886
  },
6889
6887
  children: [
6890
- /* @__PURE__ */ n.jsx(H, { size: 16, "aria-hidden": "true" }),
6891
- C.label
6888
+ /* @__PURE__ */ n.jsx(q, { size: 16, "aria-hidden": "true" }),
6889
+ E.label
6892
6890
  ]
6893
6891
  }
6894
6892
  ),
6895
6893
  d ? /* @__PURE__ */ n.jsx(
6896
6894
  "input",
6897
6895
  {
6898
- type: C.type,
6899
- name: C.name,
6900
- value: c[C.name],
6901
- onChange: (G) => m(
6902
- (ue) => ue && { ...ue, [G.target.name]: G.target.value }
6896
+ type: E.type,
6897
+ name: E.name,
6898
+ value: c[E.name],
6899
+ onChange: (Z) => m(
6900
+ (ue) => ue && { ...ue, [Z.target.name]: Z.target.value }
6903
6901
  ),
6904
6902
  style: {
6905
6903
  padding: "12px",
@@ -6914,8 +6912,8 @@ const Ds = [
6914
6912
  width: "100%",
6915
6913
  boxSizing: "border-box"
6916
6914
  },
6917
- placeholder: `Enter ${C.label.toLowerCase()}`,
6918
- "aria-label": C.label
6915
+ placeholder: `Enter ${E.label.toLowerCase()}`,
6916
+ "aria-label": E.label
6919
6917
  }
6920
6918
  ) : /* @__PURE__ */ n.jsx(
6921
6919
  "div",
@@ -6932,12 +6930,12 @@ const Ds = [
6932
6930
  color: z.textPrimary,
6933
6931
  backgroundColor: r ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.05)"
6934
6932
  },
6935
- children: C.value
6933
+ children: E.value
6936
6934
  }
6937
6935
  )
6938
6936
  ]
6939
6937
  },
6940
- C.name
6938
+ E.name
6941
6939
  );
6942
6940
  })
6943
6941
  }
@@ -7032,7 +7030,7 @@ const Ds = [
7032
7030
  /* @__PURE__ */ n.jsx(xe, { size: 16, "aria-hidden": "true" }),
7033
7031
  "Verified"
7034
7032
  ] }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7035
- /* @__PURE__ */ n.jsx(ce, { size: 16, "aria-hidden": "true" }),
7033
+ /* @__PURE__ */ n.jsx(ie, { size: 16, "aria-hidden": "true" }),
7036
7034
  "Not Verified"
7037
7035
  ] })
7038
7036
  }
@@ -7082,7 +7080,7 @@ const Ds = [
7082
7080
  onClose: () => {
7083
7081
  P(!1);
7084
7082
  },
7085
- onUpdate: X,
7083
+ onUpdate: oe,
7086
7084
  colors: z
7087
7085
  }
7088
7086
  ),
@@ -7090,13 +7088,13 @@ const Ds = [
7090
7088
  Ws,
7091
7089
  {
7092
7090
  baseUrl: l,
7093
- apiKey: h,
7091
+ apiKey: g,
7094
7092
  appId: p,
7095
7093
  userId: c.id,
7096
- isOpen: E,
7094
+ isOpen: k,
7097
7095
  onClose: () => L(!1),
7098
- onSuccess: (C) => f("success", C),
7099
- onError: (C) => f("error", C),
7096
+ onSuccess: (E) => f("success", E),
7097
+ onError: (E) => f("error", E),
7100
7098
  colors: z
7101
7099
  }
7102
7100
  ),
@@ -7104,30 +7102,30 @@ const Ds = [
7104
7102
  Ms,
7105
7103
  {
7106
7104
  baseUrl: l,
7107
- apiKey: h,
7105
+ apiKey: g,
7108
7106
  appId: p,
7109
7107
  userId: c.id,
7110
7108
  token: e,
7111
7109
  isOpen: y,
7112
7110
  onClose: () => O(!1),
7113
- onSuccess: (C) => f("success", C),
7114
- onError: (C) => f("error", C),
7111
+ onSuccess: (E) => f("success", E),
7112
+ onError: (E) => f("error", E),
7115
7113
  colors: z
7116
7114
  }
7117
7115
  ),
7118
7116
  /* @__PURE__ */ n.jsx(
7119
7117
  qs,
7120
7118
  {
7121
- isOpen: w,
7119
+ isOpen: b,
7122
7120
  onClose: () => {
7123
- D(!1), k(!1), V({ email: c?.email || "", otp: "", appId: p });
7121
+ N(!1), x(!1), V({ email: c?.email || "", otp: "", appId: p });
7124
7122
  },
7125
- onVerify: ne,
7126
- onSendOTP: J,
7127
- verifyFormData: T,
7123
+ onVerify: Y,
7124
+ onSendOTP: X,
7125
+ verifyFormData: C,
7128
7126
  setVerifyFormData: V,
7129
- otpSent: x,
7130
- verifying: N,
7127
+ otpSent: K,
7128
+ verifying: T,
7131
7129
  user: c,
7132
7130
  colors: z,
7133
7131
  darkMode: r
@@ -7236,19 +7234,19 @@ const Ds = [
7236
7234
  profileUrl: a,
7237
7235
  settingsUrl: l,
7238
7236
  // Menu item visibility with defaults
7239
- showProfileMenuItem: h = !0,
7237
+ showProfileMenuItem: g = !0,
7240
7238
  showSettingsMenuItem: p = !0,
7241
7239
  showViewProfileMenuItem: c = !0,
7242
7240
  // Custom labels with defaults
7243
7241
  profileLabel: m = "My Profile",
7244
7242
  settingsLabel: R = "Settings",
7245
- viewProfileLabel: v = "View Profile",
7243
+ viewProfileLabel: j = "View Profile",
7246
7244
  logoutLabel: d = "Sign Out"
7247
7245
  }) => {
7248
- const { baseUrl: b, apiKey: g, appId: $ } = Se(), [_, P] = I(!1), [E, L] = I(null), [y, O] = I(!0), [w, D] = I(null), K = ut(null), U = ut(null), [Y, Q] = I(!1), [S, Z] = I(!1);
7249
- se(() => {
7246
+ const { baseUrl: w, apiKey: h, appId: $ } = ve(), [_, P] = I(!1), [k, L] = I(null), [y, O] = I(!0), [b, N] = I(null), J = ut(null), D = ut(null), [H, Q] = I(!1), [S, G] = I(!1);
7247
+ ne(() => {
7250
7248
  const f = () => {
7251
- Z(window.innerWidth < 768);
7249
+ G(window.innerWidth < 768);
7252
7250
  };
7253
7251
  return f(), window.addEventListener("resize", f), () => window.removeEventListener("resize", f);
7254
7252
  }, []);
@@ -7256,64 +7254,64 @@ const Ds = [
7256
7254
  try {
7257
7255
  if (!f)
7258
7256
  throw new Error("Invalid user ID");
7259
- const { data: j } = await W.get(
7260
- `${b}/users/check-user/${f}?appId=${$}`,
7257
+ const { data: v } = await B.get(
7258
+ `${w}/users/check-user/${f}?appId=${$}`,
7261
7259
  {
7262
- headers: { "x-api-key": g },
7260
+ headers: { "x-api-key": h },
7263
7261
  timeout: 1e4
7264
7262
  // 10 second timeout
7265
7263
  }
7266
7264
  );
7267
- (!j.success || !j.exists) && (console.warn("User not found, clearing session..."), localStorage.removeItem("userInfo"), L(null), D("Session expired"));
7268
- } catch (j) {
7269
- console.error("User validation failed:", j);
7270
- const J = j.response?.status === 404 ? "User not found" : j.code === "NETWORK_ERROR" ? "Network error" : "Validation failed";
7271
- D(J), j.response?.status === 404 && (localStorage.removeItem("userInfo"), L(null));
7265
+ (!v.success || !v.exists) && (console.warn("User not found, clearing session..."), localStorage.removeItem("userInfo"), L(null), N("Session expired"));
7266
+ } catch (v) {
7267
+ console.error("User validation failed:", v);
7268
+ const X = v.response?.status === 404 ? "User not found" : v.code === "NETWORK_ERROR" ? "Network error" : "Validation failed";
7269
+ N(X), v.response?.status === 404 && (localStorage.removeItem("userInfo"), L(null));
7272
7270
  }
7273
7271
  };
7274
- se(() => {
7272
+ ne(() => {
7275
7273
  (async () => {
7276
7274
  try {
7277
- if (O(!0), D(null), o) {
7275
+ if (O(!0), N(null), o) {
7278
7276
  if (!o.id || !o.name || !o.email)
7279
7277
  throw new Error("Invalid user data provided");
7280
7278
  L(o), await M(o.id);
7281
7279
  } else {
7282
- const j = localStorage.getItem("userInfo");
7283
- if (j)
7280
+ const v = localStorage.getItem("userInfo");
7281
+ if (v)
7284
7282
  try {
7285
- const J = JSON.parse(j);
7286
- if (!J.id || !J.name || !J.email)
7283
+ const X = JSON.parse(v);
7284
+ if (!X.id || !X.name || !X.email)
7287
7285
  throw new Error("Invalid stored user data");
7288
- L(J), await M(J.id);
7289
- } catch (J) {
7290
- console.error("Failed to parse stored user data:", J), localStorage.removeItem("userInfo"), D("Invalid user data");
7286
+ L(X), await M(X.id);
7287
+ } catch (X) {
7288
+ console.error("Failed to parse stored user data:", X), localStorage.removeItem("userInfo"), N("Invalid user data");
7291
7289
  }
7292
7290
  }
7293
- } catch (j) {
7294
- console.error("User initialization failed:", j), D(j.message || "Failed to load user");
7291
+ } catch (v) {
7292
+ console.error("User initialization failed:", v), N(v.message || "Failed to load user");
7295
7293
  } finally {
7296
7294
  O(!1);
7297
7295
  }
7298
7296
  })();
7299
- }, [o]), se(() => {
7297
+ }, [o]), ne(() => {
7300
7298
  const f = () => {
7301
- if (_ && U.current) {
7302
- const j = U.current.getBoundingClientRect(), J = window.innerWidth, ne = window.innerHeight, X = 280, oe = 300, le = J - j.right, me = j.left, z = ne - j.bottom, He = le >= X || le > me;
7303
- Q(He), z < oe && j.top > oe;
7299
+ if (_ && D.current) {
7300
+ const v = D.current.getBoundingClientRect(), X = window.innerWidth, Y = window.innerHeight, oe = 280, ce = 300, de = X - v.right, Oe = v.left, z = Y - v.bottom, He = de >= oe || de > Oe;
7301
+ Q(He), z < ce && v.top > ce;
7304
7302
  }
7305
7303
  };
7306
7304
  return f(), window.addEventListener("resize", f), () => window.removeEventListener("resize", f);
7307
- }, [_]), se(() => {
7308
- const f = (ne) => {
7309
- K.current && !K.current.contains(ne.target) && !U.current?.contains(ne.target) && P(!1);
7310
- }, j = (ne) => {
7311
- ne.key === "Escape" && P(!1);
7312
- }, J = () => {
7305
+ }, [_]), ne(() => {
7306
+ const f = (Y) => {
7307
+ J.current && !J.current.contains(Y.target) && !D.current?.contains(Y.target) && P(!1);
7308
+ }, v = (Y) => {
7309
+ Y.key === "Escape" && P(!1);
7310
+ }, X = () => {
7313
7311
  _ && P(!1);
7314
7312
  };
7315
- return _ && (document.addEventListener("mousedown", f), document.addEventListener("keydown", j), window.addEventListener("scroll", J, { passive: !0 })), () => {
7316
- document.removeEventListener("mousedown", f), document.removeEventListener("keydown", j), window.removeEventListener("scroll", J);
7313
+ return _ && (document.addEventListener("mousedown", f), document.addEventListener("keydown", v), window.addEventListener("scroll", X, { passive: !0 })), () => {
7314
+ document.removeEventListener("mousedown", f), document.removeEventListener("keydown", v), window.removeEventListener("scroll", X);
7317
7315
  };
7318
7316
  }, [_]);
7319
7317
  const F = e ? {
@@ -7340,7 +7338,7 @@ const Ds = [
7340
7338
  accent: t,
7341
7339
  accentHover: `${t}e6`,
7342
7340
  error: "#ef4444"
7343
- }, T = {
7341
+ }, C = {
7344
7342
  wrapper: {
7345
7343
  position: "relative",
7346
7344
  display: "inline-block"
@@ -7403,7 +7401,7 @@ const Ds = [
7403
7401
  position: "absolute",
7404
7402
  top: "100%",
7405
7403
  marginTop: "8px",
7406
- [Y ? "left" : "right"]: "0",
7404
+ [H ? "left" : "right"]: "0",
7407
7405
  backgroundColor: F.surfaceElevated,
7408
7406
  border: `1px solid ${F.border}`,
7409
7407
  borderRadius: "12px",
@@ -7533,29 +7531,29 @@ const Ds = [
7533
7531
  transition: "background-color 0.2s ease"
7534
7532
  }
7535
7533
  }, V = () => {
7536
- D(null), O(!0);
7534
+ N(null), O(!0);
7537
7535
  const f = localStorage.getItem("userInfo");
7538
7536
  if (f)
7539
7537
  try {
7540
- const j = JSON.parse(f);
7541
- L(j), M(j.id);
7538
+ const v = JSON.parse(f);
7539
+ L(v), M(v.id);
7542
7540
  } catch {
7543
- D("Invalid user data");
7541
+ N("Invalid user data");
7544
7542
  }
7545
7543
  O(!1);
7546
- }, x = (f, j) => {
7547
- (f.key === "Enter" || f.key === " ") && (f.preventDefault(), j());
7548
- }, k = () => a || E?.profileUrl, N = () => {
7549
- const f = k();
7544
+ }, K = (f, v) => {
7545
+ (f.key === "Enter" || f.key === " ") && (f.preventDefault(), v());
7546
+ }, x = () => a || k?.profileUrl, T = () => {
7547
+ const f = x();
7550
7548
  f && window.open(f, "_self", "noopener,noreferrer");
7551
- }, B = () => {
7549
+ }, U = () => {
7552
7550
  l && window.open(l, "_self", "noopener,noreferrer");
7553
7551
  };
7554
7552
  return /* @__PURE__ */ n.jsxs(
7555
7553
  "div",
7556
7554
  {
7557
- style: T.wrapper,
7558
- ref: K,
7555
+ style: C.wrapper,
7556
+ ref: J,
7559
7557
  className: i,
7560
7558
  role: "menu",
7561
7559
  "aria-label": "User menu",
@@ -7563,19 +7561,19 @@ const Ds = [
7563
7561
  s === "classic" ? /* @__PURE__ */ n.jsx(
7564
7562
  "div",
7565
7563
  {
7566
- ref: U,
7564
+ ref: D,
7567
7565
  onClick: () => P((f) => !f),
7568
- onKeyDown: (f) => x(f, () => P((j) => !j)),
7566
+ onKeyDown: (f) => K(f, () => P((v) => !v)),
7569
7567
  tabIndex: 0,
7570
7568
  role: "button",
7571
7569
  "aria-haspopup": "true",
7572
7570
  "aria-expanded": _,
7573
7571
  "aria-label": "Toggle user menu",
7574
- children: E?.avatarUrl ? /* @__PURE__ */ n.jsx(
7572
+ children: k?.avatarUrl ? /* @__PURE__ */ n.jsx(
7575
7573
  "img",
7576
7574
  {
7577
- src: E.avatarUrl,
7578
- alt: `${E?.name || "User"}'s avatar`,
7575
+ src: k.avatarUrl,
7576
+ alt: `${k?.name || "User"}'s avatar`,
7579
7577
  style: {
7580
7578
  width: S ? "34px" : "40px",
7581
7579
  height: S ? "34px" : "40px",
@@ -7586,9 +7584,9 @@ const Ds = [
7586
7584
  },
7587
7585
  loading: "lazy",
7588
7586
  onError: (f) => {
7589
- const j = f.target;
7590
- j.onerror = null, j.src = `https://api.dicebear.com/9.x/initials/svg?seed=${encodeURIComponent(
7591
- E?.name || "User"
7587
+ const v = f.target;
7588
+ v.onerror = null, v.src = `https://api.dicebear.com/9.x/initials/svg?seed=${encodeURIComponent(
7589
+ k?.name || "User"
7592
7590
  )}`;
7593
7591
  }
7594
7592
  }
@@ -7596,7 +7594,7 @@ const Ds = [
7596
7594
  "img",
7597
7595
  {
7598
7596
  src: `https://api.dicebear.com/9.x/initials/svg?seed=${encodeURIComponent(
7599
- E?.name || "User"
7597
+ k?.name || "User"
7600
7598
  )}`,
7601
7599
  alt: "Default user avatar",
7602
7600
  style: {
@@ -7614,10 +7612,10 @@ const Ds = [
7614
7612
  ) : /* @__PURE__ */ n.jsxs(
7615
7613
  "div",
7616
7614
  {
7617
- ref: U,
7618
- style: T.avatarButton,
7615
+ ref: D,
7616
+ style: C.avatarButton,
7619
7617
  onClick: () => P((f) => !f),
7620
- onKeyDown: (f) => x(f, () => P((j) => !j)),
7618
+ onKeyDown: (f) => K(f, () => P((v) => !v)),
7621
7619
  tabIndex: 0,
7622
7620
  role: "button",
7623
7621
  "aria-haspopup": "true",
@@ -7633,16 +7631,16 @@ const Ds = [
7633
7631
  f.currentTarget.style.outline = "none";
7634
7632
  },
7635
7633
  children: [
7636
- E?.avatarUrl ? /* @__PURE__ */ n.jsx(
7634
+ k?.avatarUrl ? /* @__PURE__ */ n.jsx(
7637
7635
  "img",
7638
7636
  {
7639
- src: E.avatarUrl,
7640
- alt: `${E.name}'s avatar`,
7641
- style: T.avatarImage,
7637
+ src: k.avatarUrl,
7638
+ alt: `${k.name}'s avatar`,
7639
+ style: C.avatarImage,
7642
7640
  loading: "lazy",
7643
7641
  onError: (f) => {
7644
- const j = f.target;
7645
- j.src = "https://api.dicebear.com/9.x/glass/svg?seed=Kingston";
7642
+ const v = f.target;
7643
+ v.src = "https://api.dicebear.com/9.x/glass/svg?seed=Kingston";
7646
7644
  }
7647
7645
  }
7648
7646
  ) : /* @__PURE__ */ n.jsx(
@@ -7650,101 +7648,101 @@ const Ds = [
7650
7648
  {
7651
7649
  src: "https://api.dicebear.com/9.x/glass/svg?seed=Kingston",
7652
7650
  alt: "Default user avatar",
7653
- style: T.avatarImage,
7651
+ style: C.avatarImage,
7654
7652
  loading: "lazy"
7655
7653
  }
7656
7654
  ),
7657
- !S && /* @__PURE__ */ n.jsxs("div", { style: T.userInfo, children: [
7658
- /* @__PURE__ */ n.jsx("div", { style: T.userName, title: E?.name, children: E?.name || "Guest" }),
7659
- E?.email && /* @__PURE__ */ n.jsx("div", { style: T.userEmail, title: E.email, children: E.email })
7655
+ !S && /* @__PURE__ */ n.jsxs("div", { style: C.userInfo, children: [
7656
+ /* @__PURE__ */ n.jsx("div", { style: C.userName, title: k?.name, children: k?.name || "Guest" }),
7657
+ k?.email && /* @__PURE__ */ n.jsx("div", { style: C.userEmail, title: k.email, children: k.email })
7660
7658
  ] }),
7661
7659
  /* @__PURE__ */ n.jsx(
7662
7660
  Zn,
7663
7661
  {
7664
7662
  size: S ? 14 : 16,
7665
- style: T.chevron,
7663
+ style: C.chevron,
7666
7664
  "aria-hidden": "true"
7667
7665
  }
7668
7666
  )
7669
7667
  ]
7670
7668
  }
7671
7669
  ),
7672
- _ && /* @__PURE__ */ n.jsx("div", { style: T.dropdown, role: "menu", "aria-label": "User options", children: y ? /* @__PURE__ */ n.jsx("div", { style: T.loadingText, role: "status", "aria-live": "polite", children: "Loading user information..." }) : E ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7673
- /* @__PURE__ */ n.jsxs("div", { style: T.userSection, children: [
7674
- E?.avatarUrl ? /* @__PURE__ */ n.jsx(
7670
+ _ && /* @__PURE__ */ n.jsx("div", { style: C.dropdown, role: "menu", "aria-label": "User options", children: y ? /* @__PURE__ */ n.jsx("div", { style: C.loadingText, role: "status", "aria-live": "polite", children: "Loading user information..." }) : k ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7671
+ /* @__PURE__ */ n.jsxs("div", { style: C.userSection, children: [
7672
+ k?.avatarUrl ? /* @__PURE__ */ n.jsx(
7675
7673
  "img",
7676
7674
  {
7677
- src: E.avatarUrl,
7678
- alt: `${E.name}'s profile picture`,
7679
- style: T.dropdownAvatar,
7675
+ src: k.avatarUrl,
7676
+ alt: `${k.name}'s profile picture`,
7677
+ style: C.dropdownAvatar,
7680
7678
  loading: "lazy",
7681
7679
  onError: (f) => {
7682
- const j = f.target;
7683
- j.src = `https://api.dicebear.com/9.x/initials/svg?seed=${E.name}`;
7680
+ const v = f.target;
7681
+ v.src = `https://api.dicebear.com/9.x/initials/svg?seed=${k.name}`;
7684
7682
  }
7685
7683
  }
7686
7684
  ) : /* @__PURE__ */ n.jsx(
7687
7685
  "img",
7688
7686
  {
7689
- src: `https://api.dicebear.com/9.x/initials/svg?seed=${E.name}`,
7690
- alt: `${E.name}'s default avatar`,
7691
- style: T.dropdownAvatar,
7687
+ src: `https://api.dicebear.com/9.x/initials/svg?seed=${k.name}`,
7688
+ alt: `${k.name}'s default avatar`,
7689
+ style: C.dropdownAvatar,
7692
7690
  loading: "lazy"
7693
7691
  }
7694
7692
  ),
7695
- /* @__PURE__ */ n.jsxs("div", { style: T.dropdownUserInfo, children: [
7696
- /* @__PURE__ */ n.jsx("div", { style: T.dropdownUserName, title: E.name, children: E.name }),
7697
- /* @__PURE__ */ n.jsx("div", { style: T.dropdownUserEmail, title: E.email, children: E.email })
7693
+ /* @__PURE__ */ n.jsxs("div", { style: C.dropdownUserInfo, children: [
7694
+ /* @__PURE__ */ n.jsx("div", { style: C.dropdownUserName, title: k.name, children: k.name }),
7695
+ /* @__PURE__ */ n.jsx("div", { style: C.dropdownUserEmail, title: k.email, children: k.email })
7698
7696
  ] })
7699
7697
  ] }),
7700
- /* @__PURE__ */ n.jsxs("div", { style: T.dropdownSection, children: [
7701
- h && k() && /* @__PURE__ */ n.jsxs(
7698
+ /* @__PURE__ */ n.jsxs("div", { style: C.dropdownSection, children: [
7699
+ g && x() && /* @__PURE__ */ n.jsxs(
7702
7700
  "button",
7703
7701
  {
7704
- style: T.menuItem,
7705
- onClick: N,
7702
+ style: C.menuItem,
7703
+ onClick: T,
7706
7704
  onMouseOver: (f) => {
7707
7705
  f.currentTarget.style.backgroundColor = F.surfaceHover;
7708
7706
  },
7709
7707
  onMouseOut: (f) => {
7710
7708
  f.currentTarget.style.backgroundColor = "transparent";
7711
7709
  },
7712
- onKeyDown: (f) => x(f, N),
7710
+ onKeyDown: (f) => K(f, T),
7713
7711
  role: "menuitem",
7714
7712
  tabIndex: 0,
7715
7713
  children: [
7716
- /* @__PURE__ */ n.jsx(we, { style: T.icon, "aria-hidden": "true" }),
7717
- /* @__PURE__ */ n.jsx("span", { style: T.menuItemText, children: m })
7714
+ /* @__PURE__ */ n.jsx(be, { style: C.icon, "aria-hidden": "true" }),
7715
+ /* @__PURE__ */ n.jsx("span", { style: C.menuItemText, children: m })
7718
7716
  ]
7719
7717
  }
7720
7718
  ),
7721
7719
  p && l && /* @__PURE__ */ n.jsxs(
7722
7720
  "button",
7723
7721
  {
7724
- style: T.menuItem,
7725
- onClick: B,
7722
+ style: C.menuItem,
7723
+ onClick: U,
7726
7724
  onMouseOver: (f) => {
7727
7725
  f.currentTarget.style.backgroundColor = F.surfaceHover;
7728
7726
  },
7729
7727
  onMouseOut: (f) => {
7730
7728
  f.currentTarget.style.backgroundColor = "transparent";
7731
7729
  },
7732
- onKeyDown: (f) => x(f, B),
7730
+ onKeyDown: (f) => K(f, U),
7733
7731
  role: "menuitem",
7734
7732
  tabIndex: 0,
7735
7733
  children: [
7736
- /* @__PURE__ */ n.jsx(Os, { style: T.icon, "aria-hidden": "true" }),
7737
- /* @__PURE__ */ n.jsx("span", { style: T.menuItemText, children: R })
7734
+ /* @__PURE__ */ n.jsx(Os, { style: C.icon, "aria-hidden": "true" }),
7735
+ /* @__PURE__ */ n.jsx("span", { style: C.menuItemText, children: R })
7738
7736
  ]
7739
7737
  }
7740
7738
  ),
7741
- c && E.profileUrl && /* @__PURE__ */ n.jsxs(
7739
+ c && k.profileUrl && /* @__PURE__ */ n.jsxs(
7742
7740
  "a",
7743
7741
  {
7744
- href: E.profileUrl,
7742
+ href: k.profileUrl,
7745
7743
  target: "_self",
7746
7744
  rel: "noopener noreferrer",
7747
- style: T.menuItem,
7745
+ style: C.menuItem,
7748
7746
  onMouseOver: (f) => {
7749
7747
  f.currentTarget.style.backgroundColor = F.surfaceHover;
7750
7748
  },
@@ -7754,16 +7752,16 @@ const Ds = [
7754
7752
  role: "menuitem",
7755
7753
  tabIndex: 0,
7756
7754
  children: [
7757
- /* @__PURE__ */ n.jsx(ge, { style: T.icon, "aria-hidden": "true" }),
7758
- /* @__PURE__ */ n.jsx("span", { style: T.menuItemText, children: v })
7755
+ /* @__PURE__ */ n.jsx(ge, { style: C.icon, "aria-hidden": "true" }),
7756
+ /* @__PURE__ */ n.jsx("span", { style: C.menuItemText, children: j })
7759
7757
  ]
7760
7758
  }
7761
7759
  )
7762
7760
  ] }),
7763
- /* @__PURE__ */ n.jsx("div", { style: T.dropdownSection, children: /* @__PURE__ */ n.jsxs(
7761
+ /* @__PURE__ */ n.jsx("div", { style: C.dropdownSection, children: /* @__PURE__ */ n.jsxs(
7764
7762
  "button",
7765
7763
  {
7766
- style: T.logoutButton,
7764
+ style: C.logoutButton,
7767
7765
  onClick: r,
7768
7766
  onMouseOver: (f) => {
7769
7767
  f.currentTarget.style.backgroundColor = F.surfaceHover;
@@ -7771,36 +7769,36 @@ const Ds = [
7771
7769
  onMouseOut: (f) => {
7772
7770
  f.currentTarget.style.backgroundColor = "transparent";
7773
7771
  },
7774
- onKeyDown: (f) => x(f, r),
7772
+ onKeyDown: (f) => K(f, r),
7775
7773
  role: "menuitem",
7776
7774
  tabIndex: 0,
7777
7775
  children: [
7778
7776
  /* @__PURE__ */ n.jsx(
7779
7777
  dt,
7780
7778
  {
7781
- style: { ...T.icon, color: F.error },
7779
+ style: { ...C.icon, color: F.error },
7782
7780
  "aria-hidden": "true"
7783
7781
  }
7784
7782
  ),
7785
- /* @__PURE__ */ n.jsx("span", { style: T.menuItemText, children: d })
7783
+ /* @__PURE__ */ n.jsx("span", { style: C.menuItemText, children: d })
7786
7784
  ]
7787
7785
  }
7788
7786
  ) })
7789
- ] }) : /* @__PURE__ */ n.jsxs("div", { style: T.errorState, role: "alert", children: [
7787
+ ] }) : /* @__PURE__ */ n.jsxs("div", { style: C.errorState, role: "alert", children: [
7790
7788
  /* @__PURE__ */ n.jsxs(
7791
7789
  "div",
7792
7790
  {
7793
7791
  style: { display: "flex", alignItems: "center", gap: "8px" },
7794
7792
  children: [
7795
- /* @__PURE__ */ n.jsx(ce, { size: 16, "aria-hidden": "true" }),
7796
- /* @__PURE__ */ n.jsx("span", { children: w || "Not signed in" })
7793
+ /* @__PURE__ */ n.jsx(ie, { size: 16, "aria-hidden": "true" }),
7794
+ /* @__PURE__ */ n.jsx("span", { children: b || "Not signed in" })
7797
7795
  ]
7798
7796
  }
7799
7797
  ),
7800
- w && w !== "Not signed in" && /* @__PURE__ */ n.jsx(
7798
+ b && b !== "Not signed in" && /* @__PURE__ */ n.jsx(
7801
7799
  "button",
7802
7800
  {
7803
- style: T.retryButton,
7801
+ style: C.retryButton,
7804
7802
  onClick: V,
7805
7803
  onMouseOver: (f) => {
7806
7804
  f.currentTarget.style.backgroundColor = F.accentHover;
@@ -7824,6 +7822,6 @@ export {
7824
7822
  xo as ReactUserLogin,
7825
7823
  mo as ReactUserProfile,
7826
7824
  fo as ReactUserSignUp,
7827
- Se as getSdkConfig,
7825
+ ve as getSdkConfig,
7828
7826
  po as setSdkConfig
7829
7827
  };