authifyer-sdk 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  var Bt = Object.defineProperty;
2
2
  var Dt = (t, e, r) => e in t ? Bt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var V = (t, e, r) => Dt(t, typeof e != "symbol" ? e + "" : e, r);
4
- import qt, { createContext as Mt, useMemo as Ht, useState as I, useEffect as $t, useContext as zt } from "react";
3
+ var K = (t, e, r) => Dt(t, typeof e != "symbol" ? e + "" : e, r);
4
+ import qt, { createContext as Mt, useMemo as Ht, useState as v, useEffect as $t, useContext as zt } from "react";
5
5
  var be = { exports: {} }, se = {};
6
6
  /**
7
7
  * @license React
@@ -12,10 +12,10 @@ var be = { exports: {} }, se = {};
12
12
  * This source code is licensed under the MIT license found in the
13
13
  * LICENSE file in the root directory of this source tree.
14
14
  */
15
- var Ve;
15
+ var Ke;
16
16
  function Wt() {
17
- if (Ve) return se;
18
- Ve = 1;
17
+ if (Ke) return se;
18
+ Ke = 1;
19
19
  var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
20
20
  function r(n, s, o) {
21
21
  var i = null;
@@ -44,9 +44,9 @@ var oe = {};
44
44
  * This source code is licensed under the MIT license found in the
45
45
  * LICENSE file in the root directory of this source tree.
46
46
  */
47
- var Ke;
48
- function Jt() {
49
- return Ke || (Ke = 1, process.env.NODE_ENV !== "production" && (function() {
47
+ var Ye;
48
+ function Vt() {
49
+ return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && (function() {
50
50
  function t(l) {
51
51
  if (l == null) return null;
52
52
  if (typeof l == "function")
@@ -59,9 +59,9 @@ function Jt() {
59
59
  return "Profiler";
60
60
  case S:
61
61
  return "StrictMode";
62
- case M:
62
+ case q:
63
63
  return "Suspense";
64
- case v:
64
+ case k:
65
65
  return "SuspenseList";
66
66
  case pe:
67
67
  return "Activity";
@@ -70,18 +70,18 @@ function Jt() {
70
70
  switch (typeof l.tag == "number" && console.error(
71
71
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
72
72
  ), l.$$typeof) {
73
- case y:
73
+ case b:
74
74
  return "Portal";
75
- case C:
75
+ case N:
76
76
  return l.displayName || "Context";
77
- case _:
77
+ case x:
78
78
  return (l._context.displayName || "Context") + ".Consumer";
79
- case U:
79
+ case _:
80
80
  var E = l.render;
81
81
  return l = l.displayName, l || (l = E.displayName || E.name || "", l = l !== "" ? "ForwardRef(" + l + ")" : "ForwardRef"), l;
82
- case te:
82
+ case U:
83
83
  return E = l.displayName || null, E !== null ? E : t(l.type) || "Memo";
84
- case $:
84
+ case I:
85
85
  E = l._payload, l = l._init;
86
86
  try {
87
87
  return t(l(E));
@@ -112,7 +112,7 @@ function Jt() {
112
112
  }
113
113
  function n(l) {
114
114
  if (l === h) return "<>";
115
- if (typeof l == "object" && l !== null && l.$$typeof === $)
115
+ if (typeof l == "object" && l !== null && l.$$typeof === I)
116
116
  return "<...>";
117
117
  try {
118
118
  var E = t(l);
@@ -122,14 +122,14 @@ function Jt() {
122
122
  }
123
123
  }
124
124
  function s() {
125
- var l = z.A;
125
+ var l = W.A;
126
126
  return l === null ? null : l.getOwner();
127
127
  }
128
128
  function o() {
129
129
  return Error("react-stack-top-frame");
130
130
  }
131
131
  function i(l) {
132
- if (W.call(l, "key")) {
132
+ if (V.call(l, "key")) {
133
133
  var E = Object.getOwnPropertyDescriptor(l, "key").get;
134
134
  if (E && E.isReactWarning) return !1;
135
135
  }
@@ -137,7 +137,7 @@ function Jt() {
137
137
  }
138
138
  function c(l, E) {
139
139
  function T() {
140
- N || (N = !0, console.error(
140
+ P || (P = !0, console.error(
141
141
  "%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)",
142
142
  E
143
143
  ));
@@ -153,15 +153,15 @@ function Jt() {
153
153
  "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."
154
154
  )), l = this.props.ref, l !== void 0 ? l : null;
155
155
  }
156
- function d(l, E, T, A, J, Ne) {
157
- var O = T.ref;
156
+ function d(l, E, T, A, J, Ce) {
157
+ var C = T.ref;
158
158
  return l = {
159
159
  $$typeof: f,
160
160
  type: l,
161
161
  key: E,
162
162
  props: T,
163
163
  _owner: A
164
- }, (O !== void 0 ? O : null) !== null ? Object.defineProperty(l, "ref", {
164
+ }, (C !== void 0 ? C : null) !== null ? Object.defineProperty(l, "ref", {
165
165
  enumerable: !1,
166
166
  get: p
167
167
  }) : Object.defineProperty(l, "ref", { enumerable: !1, value: null }), l._store = {}, Object.defineProperty(l._store, "validated", {
@@ -183,28 +183,28 @@ function Jt() {
183
183
  configurable: !1,
184
184
  enumerable: !1,
185
185
  writable: !0,
186
- value: Ne
186
+ value: Ce
187
187
  }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
188
188
  }
189
- function u(l, E, T, A, J, Ne) {
190
- var O = E.children;
191
- if (O !== void 0)
189
+ function u(l, E, T, A, J, Ce) {
190
+ var C = E.children;
191
+ if (C !== void 0)
192
192
  if (A)
193
- if (H(O)) {
194
- for (A = 0; A < O.length; A++)
195
- m(O[A]);
196
- Object.freeze && Object.freeze(O);
193
+ if (z(C)) {
194
+ for (A = 0; A < C.length; A++)
195
+ y(C[A]);
196
+ Object.freeze && Object.freeze(C);
197
197
  } else
198
198
  console.error(
199
199
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
200
200
  );
201
- else m(O);
202
- if (W.call(E, "key")) {
203
- O = t(l);
204
- var Q = Object.keys(E).filter(function(Ft) {
201
+ else y(C);
202
+ if (V.call(E, "key")) {
203
+ C = t(l);
204
+ var Z = Object.keys(E).filter(function(Ft) {
205
205
  return Ft !== "key";
206
206
  });
207
- A = 0 < Q.length ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}", ye[O + A] || (Q = 0 < Q.length ? "{" + Q.join(": ..., ") + ": ...}" : "{}", console.error(
207
+ A = 0 < Z.length ? "{key: someKey, " + Z.join(": ..., ") + ": ...}" : "{key: someKey}", ye[C + A] || (Z = 0 < Z.length ? "{" + Z.join(": ..., ") + ": ...}" : "{}", console.error(
208
208
  `A props object containing a "key" prop is being spread into JSX:
209
209
  let props = %s;
210
210
  <%s {...props} />
@@ -212,35 +212,35 @@ React keys must be passed directly to JSX without using spread:
212
212
  let props = %s;
213
213
  <%s key={someKey} {...props} />`,
214
214
  A,
215
- O,
216
- Q,
217
- O
218
- ), ye[O + A] = !0);
215
+ C,
216
+ Z,
217
+ C
218
+ ), ye[C + A] = !0);
219
219
  }
220
- if (O = null, T !== void 0 && (r(T), O = "" + T), i(E) && (r(E.key), O = "" + E.key), "key" in E) {
220
+ if (C = null, T !== void 0 && (r(T), C = "" + T), i(E) && (r(E.key), C = "" + E.key), "key" in E) {
221
221
  T = {};
222
- for (var Ce in E)
223
- Ce !== "key" && (T[Ce] = E[Ce]);
222
+ for (var je in E)
223
+ je !== "key" && (T[je] = E[je]);
224
224
  } else T = E;
225
- return O && c(
225
+ return C && c(
226
226
  T,
227
227
  typeof l == "function" ? l.displayName || l.name || "Unknown" : l
228
228
  ), d(
229
229
  l,
230
- O,
230
+ C,
231
231
  T,
232
232
  s(),
233
233
  J,
234
- Ne
234
+ Ce
235
235
  );
236
236
  }
237
- function m(l) {
238
- w(l) ? l._store && (l._store.validated = 1) : typeof l == "object" && l !== null && l.$$typeof === $ && (l._payload.status === "fulfilled" ? w(l._payload.value) && l._payload.value._store && (l._payload.value._store.validated = 1) : l._store && (l._store.validated = 1));
237
+ function y(l) {
238
+ w(l) ? l._store && (l._store.validated = 1) : typeof l == "object" && l !== null && l.$$typeof === I && (l._payload.status === "fulfilled" ? w(l._payload.value) && l._payload.value._store && (l._payload.value._store.validated = 1) : l._store && (l._store.validated = 1));
239
239
  }
240
240
  function w(l) {
241
241
  return typeof l == "object" && l !== null && l.$$typeof === f;
242
242
  }
243
- var R = qt, f = Symbol.for("react.transitional.element"), y = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), C = Symbol.for("react.context"), U = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), te = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), pe = Symbol.for("react.activity"), me = Symbol.for("react.client.reference"), z = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, H = Array.isArray, G = console.createTask ? console.createTask : function() {
243
+ var R = qt, f = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), N = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), q = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), U = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), pe = Symbol.for("react.activity"), me = Symbol.for("react.client.reference"), W = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, V = Object.prototype.hasOwnProperty, z = Array.isArray, Q = console.createTask ? console.createTask : function() {
244
244
  return null;
245
245
  };
246
246
  R = {
@@ -248,60 +248,60 @@ React keys must be passed directly to JSX without using spread:
248
248
  return l();
249
249
  }
250
250
  };
251
- var N, re = {}, B = R.react_stack_bottom_frame.bind(
251
+ var P, re = {}, M = R.react_stack_bottom_frame.bind(
252
252
  R,
253
253
  o
254
- )(), ne = G(n(o)), ye = {};
254
+ )(), ne = Q(n(o)), ye = {};
255
255
  oe.Fragment = h, oe.jsx = function(l, E, T) {
256
- var A = 1e4 > z.recentlyCreatedOwnerStacks++;
256
+ var A = 1e4 > W.recentlyCreatedOwnerStacks++;
257
257
  return u(
258
258
  l,
259
259
  E,
260
260
  T,
261
261
  !1,
262
- A ? Error("react-stack-top-frame") : B,
263
- A ? G(n(l)) : ne
262
+ A ? Error("react-stack-top-frame") : M,
263
+ A ? Q(n(l)) : ne
264
264
  );
265
265
  }, oe.jsxs = function(l, E, T) {
266
- var A = 1e4 > z.recentlyCreatedOwnerStacks++;
266
+ var A = 1e4 > W.recentlyCreatedOwnerStacks++;
267
267
  return u(
268
268
  l,
269
269
  E,
270
270
  T,
271
271
  !0,
272
- A ? Error("react-stack-top-frame") : B,
273
- A ? G(n(l)) : ne
272
+ A ? Error("react-stack-top-frame") : M,
273
+ A ? Q(n(l)) : ne
274
274
  );
275
275
  };
276
276
  })()), oe;
277
277
  }
278
- var Ye;
279
- function Vt() {
280
- return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? be.exports = Wt() : be.exports = Jt()), be.exports;
278
+ var Xe;
279
+ function Jt() {
280
+ return Xe || (Xe = 1, process.env.NODE_ENV === "production" ? be.exports = Wt() : be.exports = Vt()), be.exports;
281
281
  }
282
- var b = Vt();
282
+ var m = Jt();
283
283
  function pt(t, e) {
284
284
  return function() {
285
285
  return t.apply(e, arguments);
286
286
  };
287
287
  }
288
- const { toString: Kt } = Object.prototype, { getPrototypeOf: He } = Object, { iterator: Te, toStringTag: mt } = Symbol, Ae = /* @__PURE__ */ ((t) => (e) => {
288
+ const { toString: Kt } = Object.prototype, { getPrototypeOf: $e } = Object, { iterator: Ae, toStringTag: mt } = Symbol, xe = /* @__PURE__ */ ((t) => (e) => {
289
289
  const r = Kt.call(e);
290
290
  return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
291
- })(/* @__PURE__ */ Object.create(null)), D = (t) => (t = t.toLowerCase(), (e) => Ae(e) === t), xe = (t) => (e) => typeof e === t, { isArray: ee } = Array, Z = xe("undefined");
291
+ })(/* @__PURE__ */ Object.create(null)), $ = (t) => (t = t.toLowerCase(), (e) => xe(e) === t), Oe = (t) => (e) => typeof e === t, { isArray: te } = Array, ee = Oe("undefined");
292
292
  function ce(t) {
293
- return t !== null && !Z(t) && t.constructor !== null && !Z(t.constructor) && k(t.constructor.isBuffer) && t.constructor.isBuffer(t);
293
+ return t !== null && !ee(t) && t.constructor !== null && !ee(t.constructor) && F(t.constructor.isBuffer) && t.constructor.isBuffer(t);
294
294
  }
295
- const yt = D("ArrayBuffer");
295
+ const yt = $("ArrayBuffer");
296
296
  function Yt(t) {
297
297
  let e;
298
298
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && yt(t.buffer), e;
299
299
  }
300
- const Xt = xe("string"), k = xe("function"), bt = xe("number"), le = (t) => t !== null && typeof t == "object", Gt = (t) => t === !0 || t === !1, Ee = (t) => {
301
- if (Ae(t) !== "object")
300
+ const Xt = Oe("string"), F = Oe("function"), bt = Oe("number"), le = (t) => t !== null && typeof t == "object", Gt = (t) => t === !0 || t === !1, Ee = (t) => {
301
+ if (xe(t) !== "object")
302
302
  return !1;
303
- const e = He(t);
304
- return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(mt in t) && !(Te in t);
303
+ const e = $e(t);
304
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(mt in t) && !(Ae in t);
305
305
  }, Qt = (t) => {
306
306
  if (!le(t) || ce(t))
307
307
  return !1;
@@ -310,21 +310,21 @@ const Xt = xe("string"), k = xe("function"), bt = xe("number"), le = (t) => t !=
310
310
  } catch {
311
311
  return !1;
312
312
  }
313
- }, Zt = D("Date"), er = D("File"), tr = D("Blob"), rr = D("FileList"), nr = (t) => le(t) && k(t.pipe), sr = (t) => {
313
+ }, Zt = $("Date"), er = $("File"), tr = $("Blob"), rr = $("FileList"), nr = (t) => le(t) && F(t.pipe), sr = (t) => {
314
314
  let e;
315
- return t && (typeof FormData == "function" && t instanceof FormData || k(t.append) && ((e = Ae(t)) === "formdata" || // detect form-data instance
316
- e === "object" && k(t.toString) && t.toString() === "[object FormData]"));
317
- }, or = D("URLSearchParams"), [ir, ar, cr, lr] = [
315
+ return t && (typeof FormData == "function" && t instanceof FormData || F(t.append) && ((e = xe(t)) === "formdata" || // detect form-data instance
316
+ e === "object" && F(t.toString) && t.toString() === "[object FormData]"));
317
+ }, or = $("URLSearchParams"), [ir, ar, cr, lr] = [
318
318
  "ReadableStream",
319
319
  "Request",
320
320
  "Response",
321
321
  "Headers"
322
- ].map(D), ur = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
322
+ ].map($), ur = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
323
323
  function ue(t, e, { allOwnKeys: r = !1 } = {}) {
324
324
  if (t === null || typeof t > "u")
325
325
  return;
326
326
  let n, s;
327
- if (typeof t != "object" && (t = [t]), ee(t))
327
+ if (typeof t != "object" && (t = [t]), te(t))
328
328
  for (n = 0, s = t.length; n < s; n++)
329
329
  e.call(null, t[n], n, t);
330
330
  else {
@@ -347,13 +347,13 @@ function gt(t, e) {
347
347
  return s;
348
348
  return null;
349
349
  }
350
- const K = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Et = (t) => !Z(t) && t !== K;
351
- function Ue() {
350
+ const Y = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Et = (t) => !ee(t) && t !== Y;
351
+ function Fe() {
352
352
  const { caseless: t, skipUndefined: e } = Et(this) && this || {}, r = {}, n = (s, o) => {
353
353
  if (o === "__proto__" || o === "constructor" || o === "prototype")
354
354
  return;
355
355
  const i = t && gt(r, o) || o;
356
- Ee(r[i]) && Ee(s) ? r[i] = Ue(r[i], s) : Ee(s) ? r[i] = Ue({}, s) : ee(s) ? r[i] = s.slice() : (!e || !Z(s)) && (r[i] = s);
356
+ Ee(r[i]) && Ee(s) ? r[i] = Fe(r[i], s) : Ee(s) ? r[i] = Fe({}, s) : te(s) ? r[i] = s.slice() : (!e || !ee(s)) && (r[i] = s);
357
357
  };
358
358
  for (let s = 0, o = arguments.length; s < o; s++)
359
359
  arguments[s] && ue(arguments[s], n);
@@ -362,7 +362,7 @@ function Ue() {
362
362
  const fr = (t, e, r, { allOwnKeys: n } = {}) => (ue(
363
363
  e,
364
364
  (s, o) => {
365
- r && k(s) ? Object.defineProperty(t, o, {
365
+ r && F(s) ? Object.defineProperty(t, o, {
366
366
  value: pt(s, r),
367
367
  writable: !0,
368
368
  enumerable: !0,
@@ -394,7 +394,7 @@ const fr = (t, e, r, { allOwnKeys: n } = {}) => (ue(
394
394
  do {
395
395
  for (s = Object.getOwnPropertyNames(t), o = s.length; o-- > 0; )
396
396
  i = s[o], (!n || n(i, t, e)) && !c[i] && (e[i] = t[i], c[i] = !0);
397
- t = r !== !1 && He(t);
397
+ t = r !== !1 && $e(t);
398
398
  } while (t && (!r || r(t, e)) && t !== Object.prototype);
399
399
  return e;
400
400
  }, mr = (t, e, r) => {
@@ -403,15 +403,15 @@ const fr = (t, e, r, { allOwnKeys: n } = {}) => (ue(
403
403
  return n !== -1 && n === r;
404
404
  }, yr = (t) => {
405
405
  if (!t) return null;
406
- if (ee(t)) return t;
406
+ if (te(t)) return t;
407
407
  let e = t.length;
408
408
  if (!bt(e)) return null;
409
409
  const r = new Array(e);
410
410
  for (; e-- > 0; )
411
411
  r[e] = t[e];
412
412
  return r;
413
- }, br = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && He(Uint8Array)), gr = (t, e) => {
414
- const n = (t && t[Te]).call(t);
413
+ }, br = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && $e(Uint8Array)), gr = (t, e) => {
414
+ const n = (t && t[Ae]).call(t);
415
415
  let s;
416
416
  for (; (s = n.next()) && !s.done; ) {
417
417
  const o = s.value;
@@ -423,9 +423,9 @@ const fr = (t, e, r, { allOwnKeys: n } = {}) => (ue(
423
423
  for (; (r = t.exec(e)) !== null; )
424
424
  n.push(r);
425
425
  return n;
426
- }, wr = D("HTMLFormElement"), Rr = (t) => t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, n, s) {
426
+ }, wr = $("HTMLFormElement"), Rr = (t) => t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, n, s) {
427
427
  return n.toUpperCase() + s;
428
- }), Xe = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Sr = D("RegExp"), wt = (t, e) => {
428
+ }), Ge = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Sr = $("RegExp"), wt = (t, e) => {
429
429
  const r = Object.getOwnPropertyDescriptors(t), n = {};
430
430
  ue(r, (s, o) => {
431
431
  let i;
@@ -433,10 +433,10 @@ const fr = (t, e, r, { allOwnKeys: n } = {}) => (ue(
433
433
  }), Object.defineProperties(t, n);
434
434
  }, Tr = (t) => {
435
435
  wt(t, (e, r) => {
436
- if (k(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
436
+ if (F(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
437
437
  return !1;
438
438
  const n = t[r];
439
- if (k(n)) {
439
+ if (F(n)) {
440
440
  if (e.enumerable = !1, "writable" in e) {
441
441
  e.writable = !1;
442
442
  return;
@@ -452,11 +452,11 @@ const fr = (t, e, r, { allOwnKeys: n } = {}) => (ue(
452
452
  r[o] = !0;
453
453
  });
454
454
  };
455
- return ee(t) ? n(t) : n(String(t).split(e)), r;
455
+ return te(t) ? n(t) : n(String(t).split(e)), r;
456
456
  }, xr = () => {
457
- }, _r = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
458
- function Or(t) {
459
- return !!(t && k(t.append) && t[mt] === "FormData" && t[Te]);
457
+ }, Or = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
458
+ function _r(t) {
459
+ return !!(t && F(t.append) && t[mt] === "FormData" && t[Ae]);
460
460
  }
461
461
  const Nr = (t) => {
462
462
  const e = new Array(10), r = (n, s) => {
@@ -467,26 +467,26 @@ const Nr = (t) => {
467
467
  return n;
468
468
  if (!("toJSON" in n)) {
469
469
  e[s] = n;
470
- const o = ee(n) ? [] : {};
470
+ const o = te(n) ? [] : {};
471
471
  return ue(n, (i, c) => {
472
472
  const p = r(i, s + 1);
473
- !Z(p) && (o[c] = p);
473
+ !ee(p) && (o[c] = p);
474
474
  }), e[s] = void 0, o;
475
475
  }
476
476
  }
477
477
  return n;
478
478
  };
479
479
  return r(t, 0);
480
- }, Cr = D("AsyncFunction"), Pr = (t) => t && (le(t) || k(t)) && k(t.then) && k(t.catch), Rt = ((t, e) => t ? setImmediate : e ? ((r, n) => (K.addEventListener(
480
+ }, Cr = $("AsyncFunction"), jr = (t) => t && (le(t) || F(t)) && F(t.then) && F(t.catch), Rt = ((t, e) => t ? setImmediate : e ? ((r, n) => (Y.addEventListener(
481
481
  "message",
482
482
  ({ source: s, data: o }) => {
483
- s === K && o === r && n.length && n.shift()();
483
+ s === Y && o === r && n.length && n.shift()();
484
484
  },
485
485
  !1
486
486
  ), (s) => {
487
- n.push(s), K.postMessage(r, "*");
488
- }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", k(K.postMessage)), jr = typeof queueMicrotask < "u" ? queueMicrotask.bind(K) : typeof process < "u" && process.nextTick || Rt, vr = (t) => t != null && k(t[Te]), a = {
489
- isArray: ee,
487
+ n.push(s), Y.postMessage(r, "*");
488
+ }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", F(Y.postMessage)), Pr = typeof queueMicrotask < "u" ? queueMicrotask.bind(Y) : typeof process < "u" && process.nextTick || Rt, vr = (t) => t != null && F(t[Ae]), a = {
489
+ isArray: te,
490
490
  isArrayBuffer: yt,
491
491
  isBuffer: ce,
492
492
  isFormData: sr,
@@ -501,48 +501,48 @@ const Nr = (t) => {
501
501
  isRequest: ar,
502
502
  isResponse: cr,
503
503
  isHeaders: lr,
504
- isUndefined: Z,
504
+ isUndefined: ee,
505
505
  isDate: Zt,
506
506
  isFile: er,
507
507
  isBlob: tr,
508
508
  isRegExp: Sr,
509
- isFunction: k,
509
+ isFunction: F,
510
510
  isStream: nr,
511
511
  isURLSearchParams: or,
512
512
  isTypedArray: br,
513
513
  isFileList: rr,
514
514
  forEach: ue,
515
- merge: Ue,
515
+ merge: Fe,
516
516
  extend: fr,
517
517
  trim: ur,
518
518
  stripBOM: dr,
519
519
  inherits: hr,
520
520
  toFlatObject: pr,
521
- kindOf: Ae,
522
- kindOfTest: D,
521
+ kindOf: xe,
522
+ kindOfTest: $,
523
523
  endsWith: mr,
524
524
  toArray: yr,
525
525
  forEachEntry: gr,
526
526
  matchAll: Er,
527
527
  isHTMLForm: wr,
528
- hasOwnProperty: Xe,
529
- hasOwnProp: Xe,
528
+ hasOwnProperty: Ge,
529
+ hasOwnProp: Ge,
530
530
  // an alias to avoid ESLint no-prototype-builtins detection
531
531
  reduceDescriptors: wt,
532
532
  freezeMethods: Tr,
533
533
  toObjectSet: Ar,
534
534
  toCamelCase: Rr,
535
535
  noop: xr,
536
- toFiniteNumber: _r,
536
+ toFiniteNumber: Or,
537
537
  findKey: gt,
538
- global: K,
538
+ global: Y,
539
539
  isContextDefined: Et,
540
- isSpecCompliantForm: Or,
540
+ isSpecCompliantForm: _r,
541
541
  toJSONObject: Nr,
542
542
  isAsyncFn: Cr,
543
- isThenable: Pr,
543
+ isThenable: jr,
544
544
  setImmediate: Rt,
545
- asap: jr,
545
+ asap: Pr,
546
546
  isIterable: vr
547
547
  };
548
548
  let g = class St extends Error {
@@ -597,19 +597,19 @@ g.ERR_CANCELED = "ERR_CANCELED";
597
597
  g.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
598
598
  g.ERR_INVALID_URL = "ERR_INVALID_URL";
599
599
  const kr = null;
600
- function Ie(t) {
600
+ function Be(t) {
601
601
  return a.isPlainObject(t) || a.isArray(t);
602
602
  }
603
603
  function Tt(t) {
604
604
  return a.endsWith(t, "[]") ? t.slice(0, -2) : t;
605
605
  }
606
- function Ge(t, e, r) {
606
+ function Qe(t, e, r) {
607
607
  return t ? t.concat(e).map(function(s, o) {
608
608
  return s = Tt(s), !r && o ? "[" + s + "]" : s;
609
609
  }).join(r ? "." : "") : e;
610
610
  }
611
611
  function Lr(t) {
612
- return a.isArray(t) && !t.some(Ie);
612
+ return a.isArray(t) && !t.some(Be);
613
613
  }
614
614
  const Ur = a.toFlatObject(a, {}, null, function(e) {
615
615
  return /^is[A-Z]/.test(e);
@@ -621,8 +621,8 @@ function _e(t, e, r) {
621
621
  metaTokens: !0,
622
622
  dots: !1,
623
623
  indexes: !1
624
- }, !1, function(y, h) {
625
- return !a.isUndefined(h[y]);
624
+ }, !1, function(b, h) {
625
+ return !a.isUndefined(h[b]);
626
626
  });
627
627
  const n = r.metaTokens, s = r.visitor || u, o = r.dots, i = r.indexes, p = (r.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(e);
628
628
  if (!a.isFunction(s))
@@ -637,47 +637,47 @@ function _e(t, e, r) {
637
637
  throw new g("Blob is not supported. Use a Buffer instead.");
638
638
  return a.isArrayBuffer(f) || a.isTypedArray(f) ? p && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
639
639
  }
640
- function u(f, y, h) {
640
+ function u(f, b, h) {
641
641
  let S = f;
642
642
  if (f && !h && typeof f == "object") {
643
- if (a.endsWith(y, "{}"))
644
- y = n ? y : y.slice(0, -2), f = JSON.stringify(f);
645
- else if (a.isArray(f) && Lr(f) || (a.isFileList(f) || a.endsWith(y, "[]")) && (S = a.toArray(f)))
646
- return y = Tt(y), S.forEach(function(_, C) {
647
- !(a.isUndefined(_) || _ === null) && e.append(
643
+ if (a.endsWith(b, "{}"))
644
+ b = n ? b : b.slice(0, -2), f = JSON.stringify(f);
645
+ else if (a.isArray(f) && Lr(f) || (a.isFileList(f) || a.endsWith(b, "[]")) && (S = a.toArray(f)))
646
+ return b = Tt(b), S.forEach(function(x, N) {
647
+ !(a.isUndefined(x) || x === null) && e.append(
648
648
  // eslint-disable-next-line no-nested-ternary
649
- i === !0 ? Ge([y], C, o) : i === null ? y : y + "[]",
650
- d(_)
649
+ i === !0 ? Qe([b], N, o) : i === null ? b : b + "[]",
650
+ d(x)
651
651
  );
652
652
  }), !1;
653
653
  }
654
- return Ie(f) ? !0 : (e.append(Ge(h, y, o), d(f)), !1);
654
+ return Be(f) ? !0 : (e.append(Qe(h, b, o), d(f)), !1);
655
655
  }
656
- const m = [], w = Object.assign(Ur, {
656
+ const y = [], w = Object.assign(Ur, {
657
657
  defaultVisitor: u,
658
658
  convertValue: d,
659
- isVisitable: Ie
659
+ isVisitable: Be
660
660
  });
661
- function R(f, y) {
661
+ function R(f, b) {
662
662
  if (!a.isUndefined(f)) {
663
- if (m.indexOf(f) !== -1)
664
- throw Error("Circular reference detected in " + y.join("."));
665
- m.push(f), a.forEach(f, function(S, j) {
663
+ if (y.indexOf(f) !== -1)
664
+ throw Error("Circular reference detected in " + b.join("."));
665
+ y.push(f), a.forEach(f, function(S, j) {
666
666
  (!(a.isUndefined(S) || S === null) && s.call(
667
667
  e,
668
668
  S,
669
669
  a.isString(j) ? j.trim() : j,
670
- y,
670
+ b,
671
671
  w
672
- )) === !0 && R(S, y ? y.concat(j) : [j]);
673
- }), m.pop();
672
+ )) === !0 && R(S, b ? b.concat(j) : [j]);
673
+ }), y.pop();
674
674
  }
675
675
  }
676
676
  if (!a.isObject(t))
677
677
  throw new TypeError("data must be an object");
678
678
  return R(t), e;
679
679
  }
680
- function Qe(t) {
680
+ function Ze(t) {
681
681
  const e = {
682
682
  "!": "%21",
683
683
  "'": "%27",
@@ -691,17 +691,17 @@ function Qe(t) {
691
691
  return e[n];
692
692
  });
693
693
  }
694
- function $e(t, e) {
694
+ function ze(t, e) {
695
695
  this._pairs = [], t && _e(t, this, e);
696
696
  }
697
- const At = $e.prototype;
697
+ const At = ze.prototype;
698
698
  At.append = function(e, r) {
699
699
  this._pairs.push([e, r]);
700
700
  };
701
701
  At.toString = function(e) {
702
702
  const r = e ? function(n) {
703
- return e.call(this, n, Qe);
704
- } : Qe;
703
+ return e.call(this, n, Ze);
704
+ } : Ze;
705
705
  return this._pairs.map(function(s) {
706
706
  return r(s[0]) + "=" + r(s[1]);
707
707
  }, "").join("&");
@@ -716,13 +716,13 @@ function xt(t, e, r) {
716
716
  serialize: r
717
717
  } : r, o = s && s.serialize;
718
718
  let i;
719
- if (o ? i = o(e, s) : i = a.isURLSearchParams(e) ? e.toString() : new $e(e, s).toString(n), i) {
719
+ if (o ? i = o(e, s) : i = a.isURLSearchParams(e) ? e.toString() : new ze(e, s).toString(n), i) {
720
720
  const c = t.indexOf("#");
721
721
  c !== -1 && (t = t.slice(0, c)), t += (t.indexOf("?") === -1 ? "?" : "&") + i;
722
722
  }
723
723
  return t;
724
724
  }
725
- class Ze {
725
+ class et {
726
726
  constructor() {
727
727
  this.handlers = [];
728
728
  }
@@ -777,12 +777,12 @@ class Ze {
777
777
  });
778
778
  }
779
779
  }
780
- const ze = {
780
+ const We = {
781
781
  silentJSONParsing: !0,
782
782
  forcedJSONParsing: !0,
783
783
  clarifyTimeoutError: !1,
784
784
  legacyInterceptorReqResOrdering: !0
785
- }, Fr = typeof URLSearchParams < "u" ? URLSearchParams : $e, Br = typeof FormData < "u" ? FormData : null, Dr = typeof Blob < "u" ? Blob : null, qr = {
785
+ }, Fr = typeof URLSearchParams < "u" ? URLSearchParams : ze, Br = typeof FormData < "u" ? FormData : null, Dr = typeof Blob < "u" ? Blob : null, qr = {
786
786
  isBrowser: !0,
787
787
  classes: {
788
788
  URLSearchParams: Fr,
@@ -790,30 +790,30 @@ const ze = {
790
790
  Blob: Dr
791
791
  },
792
792
  protocols: ["http", "https", "file", "blob", "url", "data"]
793
- }, We = typeof window < "u" && typeof document < "u", Fe = typeof navigator == "object" && navigator || void 0, Mr = We && (!Fe || ["ReactNative", "NativeScript", "NS"].indexOf(Fe.product) < 0), Hr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
794
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", $r = We && window.location.href || "http://localhost", zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
793
+ }, Ve = typeof window < "u" && typeof document < "u", De = typeof navigator == "object" && navigator || void 0, Mr = Ve && (!De || ["ReactNative", "NativeScript", "NS"].indexOf(De.product) < 0), Hr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
794
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", $r = Ve && window.location.href || "http://localhost", zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
795
795
  __proto__: null,
796
- hasBrowserEnv: We,
796
+ hasBrowserEnv: Ve,
797
797
  hasStandardBrowserEnv: Mr,
798
798
  hasStandardBrowserWebWorkerEnv: Hr,
799
- navigator: Fe,
799
+ navigator: De,
800
800
  origin: $r
801
- }, Symbol.toStringTag, { value: "Module" })), P = {
801
+ }, Symbol.toStringTag, { value: "Module" })), L = {
802
802
  ...zr,
803
803
  ...qr
804
804
  };
805
805
  function Wr(t, e) {
806
- return _e(t, new P.classes.URLSearchParams(), {
806
+ return _e(t, new L.classes.URLSearchParams(), {
807
807
  visitor: function(r, n, s, o) {
808
- return P.isNode && a.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
808
+ return L.isNode && a.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
809
809
  },
810
810
  ...e
811
811
  });
812
812
  }
813
- function Jr(t) {
813
+ function Vr(t) {
814
814
  return a.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
815
815
  }
816
- function Vr(t) {
816
+ function Jr(t) {
817
817
  const e = {}, r = Object.keys(t);
818
818
  let n;
819
819
  const s = r.length;
@@ -822,17 +822,17 @@ function Vr(t) {
822
822
  o = r[n], e[o] = t[o];
823
823
  return e;
824
824
  }
825
- function _t(t) {
825
+ function Ot(t) {
826
826
  function e(r, n, s, o) {
827
827
  let i = r[o++];
828
828
  if (i === "__proto__") return !0;
829
829
  const c = Number.isFinite(+i), p = o >= r.length;
830
- return i = !i && a.isArray(s) ? s.length : i, p ? (a.hasOwnProp(s, i) ? s[i] = [s[i], n] : s[i] = n, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), e(r, n, s[i], o) && a.isArray(s[i]) && (s[i] = Vr(s[i])), !c);
830
+ return i = !i && a.isArray(s) ? s.length : i, p ? (a.hasOwnProp(s, i) ? s[i] = [s[i], n] : s[i] = n, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), e(r, n, s[i], o) && a.isArray(s[i]) && (s[i] = Jr(s[i])), !c);
831
831
  }
832
832
  if (a.isFormData(t) && a.isFunction(t.entries)) {
833
833
  const r = {};
834
834
  return a.forEachEntry(t, (n, s) => {
835
- e(Jr(n), s, r, 0);
835
+ e(Vr(n), s, r, 0);
836
836
  }), r;
837
837
  }
838
838
  return null;
@@ -848,12 +848,12 @@ function Kr(t, e, r) {
848
848
  return (r || JSON.stringify)(t);
849
849
  }
850
850
  const fe = {
851
- transitional: ze,
851
+ transitional: We,
852
852
  adapter: ["xhr", "http", "fetch"],
853
853
  transformRequest: [function(e, r) {
854
854
  const n = r.getContentType() || "", s = n.indexOf("application/json") > -1, o = a.isObject(e);
855
855
  if (o && a.isHTMLForm(e) && (e = new FormData(e)), a.isFormData(e))
856
- return s ? JSON.stringify(_t(e)) : e;
856
+ return s ? JSON.stringify(Ot(e)) : e;
857
857
  if (a.isArrayBuffer(e) || a.isBuffer(e) || a.isStream(e) || a.isFile(e) || a.isBlob(e) || a.isReadableStream(e))
858
858
  return e;
859
859
  if (a.isArrayBufferView(e))
@@ -900,8 +900,8 @@ const fe = {
900
900
  maxContentLength: -1,
901
901
  maxBodyLength: -1,
902
902
  env: {
903
- FormData: P.classes.FormData,
904
- Blob: P.classes.Blob
903
+ FormData: L.classes.FormData,
904
+ Blob: L.classes.Blob
905
905
  },
906
906
  validateStatus: function(e) {
907
907
  return e >= 200 && e < 300;
@@ -941,7 +941,7 @@ const Yr = a.toObjectSet([
941
941
  `).forEach(function(i) {
942
942
  s = i.indexOf(":"), r = i.substring(0, s).trim().toLowerCase(), n = i.substring(s + 1).trim(), !(!r || e[r] && Yr[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n);
943
943
  }), e;
944
- }, et = Symbol("internals");
944
+ }, tt = Symbol("internals");
945
945
  function ie(t) {
946
946
  return t && String(t).trim().toLowerCase();
947
947
  }
@@ -980,7 +980,7 @@ function en(t, e) {
980
980
  });
981
981
  });
982
982
  }
983
- let L = class {
983
+ let B = class {
984
984
  constructor(e) {
985
985
  e && this.set(e);
986
986
  }
@@ -990,8 +990,8 @@ let L = class {
990
990
  const u = ie(p);
991
991
  if (!u)
992
992
  throw new Error("header name must be a non-empty string");
993
- const m = a.findKey(s, u);
994
- (!m || s[m] === void 0 || d === !0 || d === void 0 && s[m] !== !1) && (s[m || p] = we(c));
993
+ const y = a.findKey(s, u);
994
+ (!y || s[y] === void 0 || d === !0 || d === void 0 && s[y] !== !1) && (s[y || p] = we(c));
995
995
  }
996
996
  const i = (c, p) => a.forEach(c, (d, u) => o(d, u, p));
997
997
  if (a.isPlainObject(e) || e instanceof this.constructor)
@@ -1096,7 +1096,7 @@ let L = class {
1096
1096
  return r.forEach((s) => n.set(s)), n;
1097
1097
  }
1098
1098
  static accessor(e) {
1099
- const n = (this[et] = this[et] = {
1099
+ const n = (this[tt] = this[tt] = {
1100
1100
  accessors: {}
1101
1101
  }).accessors, s = this.prototype;
1102
1102
  function o(i) {
@@ -1106,8 +1106,8 @@ let L = class {
1106
1106
  return a.isArray(e) ? e.forEach(o) : o(e), this;
1107
1107
  }
1108
1108
  };
1109
- L.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1110
- a.reduceDescriptors(L.prototype, ({ value: t }, e) => {
1109
+ B.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1110
+ a.reduceDescriptors(B.prototype, ({ value: t }, e) => {
1111
1111
  let r = e[0].toUpperCase() + e.slice(1);
1112
1112
  return {
1113
1113
  get: () => t,
@@ -1116,15 +1116,15 @@ a.reduceDescriptors(L.prototype, ({ value: t }, e) => {
1116
1116
  }
1117
1117
  };
1118
1118
  });
1119
- a.freezeMethods(L);
1120
- function je(t, e) {
1121
- const r = this || fe, n = e || r, s = L.from(n.headers);
1119
+ a.freezeMethods(B);
1120
+ function ve(t, e) {
1121
+ const r = this || fe, n = e || r, s = B.from(n.headers);
1122
1122
  let o = n.data;
1123
1123
  return a.forEach(t, function(c) {
1124
1124
  o = c.call(r, o, s.normalize(), e ? e.status : void 0);
1125
1125
  }), s.normalize(), o;
1126
1126
  }
1127
- function Ot(t) {
1127
+ function _t(t) {
1128
1128
  return !!(t && t.__CANCEL__);
1129
1129
  }
1130
1130
  let de = class extends g {
@@ -1162,9 +1162,9 @@ function rn(t, e) {
1162
1162
  return e = e !== void 0 ? e : 1e3, function(p) {
1163
1163
  const d = Date.now(), u = n[o];
1164
1164
  i || (i = d), r[s] = p, n[s] = d;
1165
- let m = o, w = 0;
1166
- for (; m !== s; )
1167
- w += r[m++], m = m % t;
1165
+ let y = o, w = 0;
1166
+ for (; y !== s; )
1167
+ w += r[y++], y = y % t;
1168
1168
  if (s = (s + 1) % t, s === o && (o = (o + 1) % t), d - i < e)
1169
1169
  return;
1170
1170
  const R = u && d - u;
@@ -1177,19 +1177,19 @@ function nn(t, e) {
1177
1177
  r = u, s = null, o && (clearTimeout(o), o = null), t(...d);
1178
1178
  };
1179
1179
  return [(...d) => {
1180
- const u = Date.now(), m = u - r;
1181
- m >= n ? i(d, u) : (s = d, o || (o = setTimeout(() => {
1180
+ const u = Date.now(), y = u - r;
1181
+ y >= n ? i(d, u) : (s = d, o || (o = setTimeout(() => {
1182
1182
  o = null, i(s);
1183
- }, n - m)));
1183
+ }, n - y)));
1184
1184
  }, () => s && i(s)];
1185
1185
  }
1186
- const Se = (t, e, r = 3) => {
1186
+ const Te = (t, e, r = 3) => {
1187
1187
  let n = 0;
1188
1188
  const s = rn(50, 250);
1189
1189
  return nn((o) => {
1190
1190
  const i = o.loaded, c = o.lengthComputable ? o.total : void 0, p = i - n, d = s(p), u = i <= c;
1191
1191
  n = i;
1192
- const m = {
1192
+ const y = {
1193
1193
  loaded: i,
1194
1194
  total: c,
1195
1195
  progress: c ? i / c : void 0,
@@ -1200,19 +1200,19 @@ const Se = (t, e, r = 3) => {
1200
1200
  lengthComputable: c != null,
1201
1201
  [e ? "download" : "upload"]: !0
1202
1202
  };
1203
- t(m);
1203
+ t(y);
1204
1204
  }, r);
1205
- }, tt = (t, e) => {
1205
+ }, rt = (t, e) => {
1206
1206
  const r = t != null;
1207
1207
  return [(n) => e[0]({
1208
1208
  lengthComputable: r,
1209
1209
  total: t,
1210
1210
  loaded: n
1211
1211
  }), e[1]];
1212
- }, rt = (t) => (...e) => a.asap(() => t(...e)), sn = P.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, P.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
1213
- new URL(P.origin),
1214
- P.navigator && /(msie|trident)/i.test(P.navigator.userAgent)
1215
- ) : () => !0, on = P.hasStandardBrowserEnv ? (
1212
+ }, nt = (t) => (...e) => a.asap(() => t(...e)), sn = L.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, L.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
1213
+ new URL(L.origin),
1214
+ L.navigator && /(msie|trident)/i.test(L.navigator.userAgent)
1215
+ ) : () => !0, on = L.hasStandardBrowserEnv ? (
1216
1216
  // Standard browser envs support document.cookie
1217
1217
  {
1218
1218
  write(t, e, r, n, s, o, i) {
@@ -1251,18 +1251,18 @@ function Ct(t, e, r) {
1251
1251
  let n = !an(e);
1252
1252
  return t && (n || r == !1) ? cn(t, e) : e;
1253
1253
  }
1254
- const nt = (t) => t instanceof L ? { ...t } : t;
1255
- function X(t, e) {
1254
+ const st = (t) => t instanceof B ? { ...t } : t;
1255
+ function G(t, e) {
1256
1256
  e = e || {};
1257
1257
  const r = {};
1258
- function n(d, u, m, w) {
1258
+ function n(d, u, y, w) {
1259
1259
  return a.isPlainObject(d) && a.isPlainObject(u) ? a.merge.call({ caseless: w }, d, u) : a.isPlainObject(u) ? a.merge({}, u) : a.isArray(u) ? u.slice() : u;
1260
1260
  }
1261
- function s(d, u, m, w) {
1261
+ function s(d, u, y, w) {
1262
1262
  if (a.isUndefined(u)) {
1263
1263
  if (!a.isUndefined(d))
1264
- return n(void 0, d, m, w);
1265
- } else return n(d, u, m, w);
1264
+ return n(void 0, d, y, w);
1265
+ } else return n(d, u, y, w);
1266
1266
  }
1267
1267
  function o(d, u) {
1268
1268
  if (!a.isUndefined(u))
@@ -1274,10 +1274,10 @@ function X(t, e) {
1274
1274
  return n(void 0, d);
1275
1275
  } else return n(void 0, u);
1276
1276
  }
1277
- function c(d, u, m) {
1278
- if (m in e)
1277
+ function c(d, u, y) {
1278
+ if (y in e)
1279
1279
  return n(d, u);
1280
- if (m in t)
1280
+ if (y in t)
1281
1281
  return n(void 0, d);
1282
1282
  }
1283
1283
  const p = {
@@ -1309,46 +1309,46 @@ function X(t, e) {
1309
1309
  socketPath: i,
1310
1310
  responseEncoding: i,
1311
1311
  validateStatus: c,
1312
- headers: (d, u, m) => s(nt(d), nt(u), m, !0)
1312
+ headers: (d, u, y) => s(st(d), st(u), y, !0)
1313
1313
  };
1314
1314
  return a.forEach(
1315
1315
  Object.keys({ ...t, ...e }),
1316
1316
  function(u) {
1317
1317
  if (u === "__proto__" || u === "constructor" || u === "prototype")
1318
1318
  return;
1319
- const m = a.hasOwnProp(p, u) ? p[u] : s, w = m(t[u], e[u], u);
1320
- a.isUndefined(w) && m !== c || (r[u] = w);
1319
+ const y = a.hasOwnProp(p, u) ? p[u] : s, w = y(t[u], e[u], u);
1320
+ a.isUndefined(w) && y !== c || (r[u] = w);
1321
1321
  }
1322
1322
  ), r;
1323
1323
  }
1324
- const Pt = (t) => {
1325
- const e = X({}, t);
1324
+ const jt = (t) => {
1325
+ const e = G({}, t);
1326
1326
  let { data: r, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = e;
1327
- if (e.headers = i = L.from(i), e.url = xt(Ct(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), c && i.set(
1327
+ if (e.headers = i = B.from(i), e.url = xt(Ct(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), c && i.set(
1328
1328
  "Authorization",
1329
1329
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1330
1330
  ), a.isFormData(r)) {
1331
- if (P.hasStandardBrowserEnv || P.hasStandardBrowserWebWorkerEnv)
1331
+ if (L.hasStandardBrowserEnv || L.hasStandardBrowserWebWorkerEnv)
1332
1332
  i.setContentType(void 0);
1333
1333
  else if (a.isFunction(r.getHeaders)) {
1334
1334
  const p = r.getHeaders(), d = ["content-type", "content-length"];
1335
- Object.entries(p).forEach(([u, m]) => {
1336
- d.includes(u.toLowerCase()) && i.set(u, m);
1335
+ Object.entries(p).forEach(([u, y]) => {
1336
+ d.includes(u.toLowerCase()) && i.set(u, y);
1337
1337
  });
1338
1338
  }
1339
1339
  }
1340
- if (P.hasStandardBrowserEnv && (n && a.isFunction(n) && (n = n(e)), n || n !== !1 && sn(e.url))) {
1340
+ if (L.hasStandardBrowserEnv && (n && a.isFunction(n) && (n = n(e)), n || n !== !1 && sn(e.url))) {
1341
1341
  const p = s && o && on.read(o);
1342
1342
  p && i.set(s, p);
1343
1343
  }
1344
1344
  return e;
1345
1345
  }, ln = typeof XMLHttpRequest < "u", un = ln && function(t) {
1346
1346
  return new Promise(function(r, n) {
1347
- const s = Pt(t);
1347
+ const s = jt(t);
1348
1348
  let o = s.data;
1349
- const i = L.from(s.headers).normalize();
1350
- let { responseType: c, onUploadProgress: p, onDownloadProgress: d } = s, u, m, w, R, f;
1351
- function y() {
1349
+ const i = B.from(s.headers).normalize();
1350
+ let { responseType: c, onUploadProgress: p, onDownloadProgress: d } = s, u, y, w, R, f;
1351
+ function b() {
1352
1352
  R && R(), f && f(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
1353
1353
  }
1354
1354
  let h = new XMLHttpRequest();
@@ -1356,45 +1356,45 @@ const Pt = (t) => {
1356
1356
  function S() {
1357
1357
  if (!h)
1358
1358
  return;
1359
- const _ = L.from(
1359
+ const x = B.from(
1360
1360
  "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1361
- ), U = {
1361
+ ), _ = {
1362
1362
  data: !c || c === "text" || c === "json" ? h.responseText : h.response,
1363
1363
  status: h.status,
1364
1364
  statusText: h.statusText,
1365
- headers: _,
1365
+ headers: x,
1366
1366
  config: t,
1367
1367
  request: h
1368
1368
  };
1369
- Nt(function(v) {
1370
- r(v), y();
1371
- }, function(v) {
1372
- n(v), y();
1373
- }, U), h = null;
1369
+ Nt(function(k) {
1370
+ r(k), b();
1371
+ }, function(k) {
1372
+ n(k), b();
1373
+ }, _), h = null;
1374
1374
  }
1375
1375
  "onloadend" in h ? h.onloadend = S : h.onreadystatechange = function() {
1376
1376
  !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(S);
1377
1377
  }, h.onabort = function() {
1378
1378
  h && (n(new g("Request aborted", g.ECONNABORTED, t, h)), h = null);
1379
- }, h.onerror = function(C) {
1380
- const U = C && C.message ? C.message : "Network Error", M = new g(U, g.ERR_NETWORK, t, h);
1381
- M.event = C || null, n(M), h = null;
1379
+ }, h.onerror = function(N) {
1380
+ const _ = N && N.message ? N.message : "Network Error", q = new g(_, g.ERR_NETWORK, t, h);
1381
+ q.event = N || null, n(q), h = null;
1382
1382
  }, h.ontimeout = function() {
1383
- let C = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1384
- const U = s.transitional || ze;
1385
- s.timeoutErrorMessage && (C = s.timeoutErrorMessage), n(new g(
1386
- C,
1387
- U.clarifyTimeoutError ? g.ETIMEDOUT : g.ECONNABORTED,
1383
+ let N = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1384
+ const _ = s.transitional || We;
1385
+ s.timeoutErrorMessage && (N = s.timeoutErrorMessage), n(new g(
1386
+ N,
1387
+ _.clarifyTimeoutError ? g.ETIMEDOUT : g.ECONNABORTED,
1388
1388
  t,
1389
1389
  h
1390
1390
  )), h = null;
1391
- }, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(C, U) {
1392
- h.setRequestHeader(U, C);
1393
- }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), d && ([w, f] = Se(d, !0), h.addEventListener("progress", w)), p && h.upload && ([m, R] = Se(p), h.upload.addEventListener("progress", m), h.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (u = (_) => {
1394
- h && (n(!_ || _.type ? new de(null, t, h) : _), h.abort(), h = null);
1391
+ }, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(N, _) {
1392
+ h.setRequestHeader(_, N);
1393
+ }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), d && ([w, f] = Te(d, !0), h.addEventListener("progress", w)), p && h.upload && ([y, R] = Te(p), h.upload.addEventListener("progress", y), h.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (u = (x) => {
1394
+ h && (n(!x || x.type ? new de(null, t, h) : x), h.abort(), h = null);
1395
1395
  }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
1396
1396
  const j = tn(s.url);
1397
- if (j && P.protocols.indexOf(j) === -1) {
1397
+ if (j && L.protocols.indexOf(j) === -1) {
1398
1398
  n(new g("Unsupported protocol " + j + ":", g.ERR_BAD_REQUEST, t));
1399
1399
  return;
1400
1400
  }
@@ -1451,7 +1451,7 @@ const Pt = (t) => {
1451
1451
  } finally {
1452
1452
  await e.cancel();
1453
1453
  }
1454
- }, st = (t, e, r, n) => {
1454
+ }, ot = (t, e, r, n) => {
1455
1455
  const s = hn(t, e);
1456
1456
  let o = 0, i, c = (p) => {
1457
1457
  i || (i = !0, n && n(p));
@@ -1464,9 +1464,9 @@ const Pt = (t) => {
1464
1464
  c(), p.close();
1465
1465
  return;
1466
1466
  }
1467
- let m = u.byteLength;
1467
+ let y = u.byteLength;
1468
1468
  if (r) {
1469
- let w = o += m;
1469
+ let w = o += y;
1470
1470
  r(w);
1471
1471
  }
1472
1472
  p.enqueue(new Uint8Array(u));
@@ -1480,13 +1480,13 @@ const Pt = (t) => {
1480
1480
  }, {
1481
1481
  highWaterMark: 2
1482
1482
  });
1483
- }, ot = 64 * 1024, { isFunction: ge } = a, mn = (({ Request: t, Response: e }) => ({
1483
+ }, it = 64 * 1024, { isFunction: ge } = a, mn = (({ Request: t, Response: e }) => ({
1484
1484
  Request: t,
1485
1485
  Response: e
1486
1486
  }))(a.global), {
1487
- ReadableStream: it,
1488
- TextEncoder: at
1489
- } = a.global, ct = (t, ...e) => {
1487
+ ReadableStream: at,
1488
+ TextEncoder: ct
1489
+ } = a.global, lt = (t, ...e) => {
1490
1490
  try {
1491
1491
  return !!t(...e);
1492
1492
  } catch {
@@ -1499,24 +1499,24 @@ const Pt = (t) => {
1499
1499
  const { fetch: e, Request: r, Response: n } = t, s = e ? ge(e) : typeof fetch == "function", o = ge(r), i = ge(n);
1500
1500
  if (!s)
1501
1501
  return !1;
1502
- const c = s && ge(it), p = s && (typeof at == "function" ? /* @__PURE__ */ ((f) => (y) => f.encode(y))(new at()) : async (f) => new Uint8Array(await new r(f).arrayBuffer())), d = o && c && ct(() => {
1502
+ const c = s && ge(at), p = s && (typeof ct == "function" ? /* @__PURE__ */ ((f) => (b) => f.encode(b))(new ct()) : async (f) => new Uint8Array(await new r(f).arrayBuffer())), d = o && c && lt(() => {
1503
1503
  let f = !1;
1504
- const y = new r(P.origin, {
1505
- body: new it(),
1504
+ const b = new r(L.origin, {
1505
+ body: new at(),
1506
1506
  method: "POST",
1507
1507
  get duplex() {
1508
1508
  return f = !0, "half";
1509
1509
  }
1510
1510
  }).headers.has("Content-Type");
1511
- return f && !y;
1512
- }), u = i && c && ct(() => a.isReadableStream(new n("").body)), m = {
1511
+ return f && !b;
1512
+ }), u = i && c && lt(() => a.isReadableStream(new n("").body)), y = {
1513
1513
  stream: u && ((f) => f.body)
1514
1514
  };
1515
1515
  s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
1516
- !m[f] && (m[f] = (y, h) => {
1517
- let S = y && y[f];
1516
+ !y[f] && (y[f] = (b, h) => {
1517
+ let S = b && b[f];
1518
1518
  if (S)
1519
- return S.call(y);
1519
+ return S.call(b);
1520
1520
  throw new g(`Response type '${f}' is not supported`, g.ERR_NOT_SUPPORT, h);
1521
1521
  });
1522
1522
  });
@@ -1526,7 +1526,7 @@ const Pt = (t) => {
1526
1526
  if (a.isBlob(f))
1527
1527
  return f.size;
1528
1528
  if (a.isSpecCompliantForm(f))
1529
- return (await new r(P.origin, {
1529
+ return (await new r(L.origin, {
1530
1530
  method: "POST",
1531
1531
  body: f
1532
1532
  }).arrayBuffer()).byteLength;
@@ -1534,97 +1534,97 @@ const Pt = (t) => {
1534
1534
  return f.byteLength;
1535
1535
  if (a.isURLSearchParams(f) && (f = f + ""), a.isString(f))
1536
1536
  return (await p(f)).byteLength;
1537
- }, R = async (f, y) => {
1537
+ }, R = async (f, b) => {
1538
1538
  const h = a.toFiniteNumber(f.getContentLength());
1539
- return h ?? w(y);
1539
+ return h ?? w(b);
1540
1540
  };
1541
1541
  return async (f) => {
1542
1542
  let {
1543
- url: y,
1543
+ url: b,
1544
1544
  method: h,
1545
1545
  data: S,
1546
1546
  signal: j,
1547
- cancelToken: _,
1548
- timeout: C,
1549
- onDownloadProgress: U,
1550
- onUploadProgress: M,
1551
- responseType: v,
1552
- headers: te,
1553
- withCredentials: $ = "same-origin",
1547
+ cancelToken: x,
1548
+ timeout: N,
1549
+ onDownloadProgress: _,
1550
+ onUploadProgress: q,
1551
+ responseType: k,
1552
+ headers: U,
1553
+ withCredentials: I = "same-origin",
1554
1554
  fetchOptions: pe
1555
- } = Pt(f), me = e || fetch;
1556
- v = v ? (v + "").toLowerCase() : "text";
1557
- let z = fn([j, _ && _.toAbortSignal()], C), W = null;
1558
- const H = z && z.unsubscribe && (() => {
1559
- z.unsubscribe();
1555
+ } = jt(f), me = e || fetch;
1556
+ k = k ? (k + "").toLowerCase() : "text";
1557
+ let W = fn([j, x && x.toAbortSignal()], N), V = null;
1558
+ const z = W && W.unsubscribe && (() => {
1559
+ W.unsubscribe();
1560
1560
  });
1561
- let G;
1561
+ let Q;
1562
1562
  try {
1563
- if (M && d && h !== "get" && h !== "head" && (G = await R(te, S)) !== 0) {
1564
- let l = new r(y, {
1563
+ if (q && d && h !== "get" && h !== "head" && (Q = await R(U, S)) !== 0) {
1564
+ let l = new r(b, {
1565
1565
  method: "POST",
1566
1566
  body: S,
1567
1567
  duplex: "half"
1568
1568
  }), E;
1569
- if (a.isFormData(S) && (E = l.headers.get("content-type")) && te.setContentType(E), l.body) {
1570
- const [T, A] = tt(
1571
- G,
1572
- Se(rt(M))
1569
+ if (a.isFormData(S) && (E = l.headers.get("content-type")) && U.setContentType(E), l.body) {
1570
+ const [T, A] = rt(
1571
+ Q,
1572
+ Te(nt(q))
1573
1573
  );
1574
- S = st(l.body, ot, T, A);
1574
+ S = ot(l.body, it, T, A);
1575
1575
  }
1576
1576
  }
1577
- a.isString($) || ($ = $ ? "include" : "omit");
1578
- const N = o && "credentials" in r.prototype, re = {
1577
+ a.isString(I) || (I = I ? "include" : "omit");
1578
+ const P = o && "credentials" in r.prototype, re = {
1579
1579
  ...pe,
1580
- signal: z,
1580
+ signal: W,
1581
1581
  method: h.toUpperCase(),
1582
- headers: te.normalize().toJSON(),
1582
+ headers: U.normalize().toJSON(),
1583
1583
  body: S,
1584
1584
  duplex: "half",
1585
- credentials: N ? $ : void 0
1585
+ credentials: P ? I : void 0
1586
1586
  };
1587
- W = o && new r(y, re);
1588
- let B = await (o ? me(W, pe) : me(y, re));
1589
- const ne = u && (v === "stream" || v === "response");
1590
- if (u && (U || ne && H)) {
1587
+ V = o && new r(b, re);
1588
+ let M = await (o ? me(V, pe) : me(b, re));
1589
+ const ne = u && (k === "stream" || k === "response");
1590
+ if (u && (_ || ne && z)) {
1591
1591
  const l = {};
1592
1592
  ["status", "statusText", "headers"].forEach((J) => {
1593
- l[J] = B[J];
1593
+ l[J] = M[J];
1594
1594
  });
1595
- const E = a.toFiniteNumber(B.headers.get("content-length")), [T, A] = U && tt(
1595
+ const E = a.toFiniteNumber(M.headers.get("content-length")), [T, A] = _ && rt(
1596
1596
  E,
1597
- Se(rt(U), !0)
1597
+ Te(nt(_), !0)
1598
1598
  ) || [];
1599
- B = new n(
1600
- st(B.body, ot, T, () => {
1601
- A && A(), H && H();
1599
+ M = new n(
1600
+ ot(M.body, it, T, () => {
1601
+ A && A(), z && z();
1602
1602
  }),
1603
1603
  l
1604
1604
  );
1605
1605
  }
1606
- v = v || "text";
1607
- let ye = await m[a.findKey(m, v) || "text"](B, f);
1608
- return !ne && H && H(), await new Promise((l, E) => {
1606
+ k = k || "text";
1607
+ let ye = await y[a.findKey(y, k) || "text"](M, f);
1608
+ return !ne && z && z(), await new Promise((l, E) => {
1609
1609
  Nt(l, E, {
1610
1610
  data: ye,
1611
- headers: L.from(B.headers),
1612
- status: B.status,
1613
- statusText: B.statusText,
1611
+ headers: B.from(M.headers),
1612
+ status: M.status,
1613
+ statusText: M.statusText,
1614
1614
  config: f,
1615
- request: W
1615
+ request: V
1616
1616
  });
1617
1617
  });
1618
- } catch (N) {
1619
- throw H && H(), N && N.name === "TypeError" && /Load failed|fetch/i.test(N.message) ? Object.assign(
1620
- new g("Network Error", g.ERR_NETWORK, f, W, N && N.response),
1618
+ } catch (P) {
1619
+ throw z && z(), P && P.name === "TypeError" && /Load failed|fetch/i.test(P.message) ? Object.assign(
1620
+ new g("Network Error", g.ERR_NETWORK, f, V, P && P.response),
1621
1621
  {
1622
- cause: N.cause || N
1622
+ cause: P.cause || P
1623
1623
  }
1624
- ) : g.from(N, N && N.code, f, W, N && N.response);
1624
+ ) : g.from(P, P && P.code, f, V, P && P.response);
1625
1625
  }
1626
1626
  };
1627
- }, bn = /* @__PURE__ */ new Map(), jt = (t) => {
1627
+ }, bn = /* @__PURE__ */ new Map(), Pt = (t) => {
1628
1628
  let e = t && t.env || {};
1629
1629
  const { fetch: r, Request: n, Response: s } = e, o = [
1630
1630
  n,
@@ -1636,12 +1636,12 @@ const Pt = (t) => {
1636
1636
  p = o[c], d = u.get(p), d === void 0 && u.set(p, d = c ? /* @__PURE__ */ new Map() : yn(e)), u = d;
1637
1637
  return d;
1638
1638
  };
1639
- jt();
1639
+ Pt();
1640
1640
  const Je = {
1641
1641
  http: kr,
1642
1642
  xhr: un,
1643
1643
  fetch: {
1644
- get: jt
1644
+ get: Pt
1645
1645
  }
1646
1646
  };
1647
1647
  a.forEach(Je, (t, e) => {
@@ -1653,7 +1653,7 @@ a.forEach(Je, (t, e) => {
1653
1653
  Object.defineProperty(t, "adapterName", { value: e });
1654
1654
  }
1655
1655
  });
1656
- const lt = (t) => `- ${t}`, gn = (t) => a.isFunction(t) || t === null || t === !1;
1656
+ const ut = (t) => `- ${t}`, gn = (t) => a.isFunction(t) || t === null || t === !1;
1657
1657
  function En(t, e) {
1658
1658
  t = a.isArray(t) ? t : [t];
1659
1659
  const { length: r } = t;
@@ -1673,8 +1673,8 @@ function En(t, e) {
1673
1673
  ([p, d]) => `adapter ${p} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
1674
1674
  );
1675
1675
  let c = r ? i.length > 1 ? `since :
1676
- ` + i.map(lt).join(`
1677
- `) : " " + lt(i[0]) : "as no adapter specified";
1676
+ ` + i.map(ut).join(`
1677
+ `) : " " + ut(i[0]) : "as no adapter specified";
1678
1678
  throw new g(
1679
1679
  "There is no suitable adapter to dispatch the request " + c,
1680
1680
  "ERR_NOT_SUPPORT"
@@ -1694,36 +1694,36 @@ const vt = {
1694
1694
  */
1695
1695
  adapters: Je
1696
1696
  };
1697
- function ve(t) {
1697
+ function ke(t) {
1698
1698
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1699
1699
  throw new de(null, t);
1700
1700
  }
1701
- function ut(t) {
1702
- return ve(t), t.headers = L.from(t.headers), t.data = je.call(
1701
+ function ft(t) {
1702
+ return ke(t), t.headers = B.from(t.headers), t.data = ve.call(
1703
1703
  t,
1704
1704
  t.transformRequest
1705
1705
  ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), vt.getAdapter(t.adapter || fe.adapter, t)(t).then(function(n) {
1706
- return ve(t), n.data = je.call(
1706
+ return ke(t), n.data = ve.call(
1707
1707
  t,
1708
1708
  t.transformResponse,
1709
1709
  n
1710
- ), n.headers = L.from(n.headers), n;
1710
+ ), n.headers = B.from(n.headers), n;
1711
1711
  }, function(n) {
1712
- return Ot(n) || (ve(t), n && n.response && (n.response.data = je.call(
1712
+ return _t(n) || (ke(t), n && n.response && (n.response.data = ve.call(
1713
1713
  t,
1714
1714
  t.transformResponse,
1715
1715
  n.response
1716
- ), n.response.headers = L.from(n.response.headers))), Promise.reject(n);
1716
+ ), n.response.headers = B.from(n.response.headers))), Promise.reject(n);
1717
1717
  });
1718
1718
  }
1719
- const kt = "1.13.5", Oe = {};
1719
+ const kt = "1.13.5", Ne = {};
1720
1720
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1721
- Oe[t] = function(n) {
1721
+ Ne[t] = function(n) {
1722
1722
  return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
1723
1723
  };
1724
1724
  });
1725
- const ft = {};
1726
- Oe.transitional = function(e, r, n) {
1725
+ const dt = {};
1726
+ Ne.transitional = function(e, r, n) {
1727
1727
  function s(o, i) {
1728
1728
  return "[Axios v" + kt + "] Transitional option '" + o + "'" + i + (n ? ". " + n : "");
1729
1729
  }
@@ -1733,7 +1733,7 @@ Oe.transitional = function(e, r, n) {
1733
1733
  s(i, " has been removed" + (r ? " in " + r : "")),
1734
1734
  g.ERR_DEPRECATED
1735
1735
  );
1736
- return r && !ft[i] && (ft[i] = !0, console.warn(
1736
+ return r && !dt[i] && (dt[i] = !0, console.warn(
1737
1737
  s(
1738
1738
  i,
1739
1739
  " has been deprecated since v" + r + " and will be removed in the near future"
@@ -1741,7 +1741,7 @@ Oe.transitional = function(e, r, n) {
1741
1741
  )), e ? e(o, i, c) : !0;
1742
1742
  };
1743
1743
  };
1744
- Oe.spelling = function(e) {
1744
+ Ne.spelling = function(e) {
1745
1745
  return (r, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
1746
1746
  };
1747
1747
  function wn(t, e, r) {
@@ -1763,13 +1763,13 @@ function wn(t, e, r) {
1763
1763
  }
1764
1764
  const Re = {
1765
1765
  assertOptions: wn,
1766
- validators: Oe
1767
- }, F = Re.validators;
1768
- let Y = class {
1766
+ validators: Ne
1767
+ }, D = Re.validators;
1768
+ let X = class {
1769
1769
  constructor(e) {
1770
1770
  this.defaults = e || {}, this.interceptors = {
1771
- request: new Ze(),
1772
- response: new Ze()
1771
+ request: new et(),
1772
+ response: new et()
1773
1773
  };
1774
1774
  }
1775
1775
  /**
@@ -1798,21 +1798,21 @@ let Y = class {
1798
1798
  }
1799
1799
  }
1800
1800
  _request(e, r) {
1801
- typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = X(this.defaults, r);
1801
+ typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = G(this.defaults, r);
1802
1802
  const { transitional: n, paramsSerializer: s, headers: o } = r;
1803
1803
  n !== void 0 && Re.assertOptions(n, {
1804
- silentJSONParsing: F.transitional(F.boolean),
1805
- forcedJSONParsing: F.transitional(F.boolean),
1806
- clarifyTimeoutError: F.transitional(F.boolean),
1807
- legacyInterceptorReqResOrdering: F.transitional(F.boolean)
1804
+ silentJSONParsing: D.transitional(D.boolean),
1805
+ forcedJSONParsing: D.transitional(D.boolean),
1806
+ clarifyTimeoutError: D.transitional(D.boolean),
1807
+ legacyInterceptorReqResOrdering: D.transitional(D.boolean)
1808
1808
  }, !1), s != null && (a.isFunction(s) ? r.paramsSerializer = {
1809
1809
  serialize: s
1810
1810
  } : Re.assertOptions(s, {
1811
- encode: F.function,
1812
- serialize: F.function
1811
+ encode: D.function,
1812
+ serialize: D.function
1813
1813
  }, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), Re.assertOptions(r, {
1814
- baseUrl: F.spelling("baseURL"),
1815
- withXsrfToken: F.spelling("withXSRFToken")
1814
+ baseUrl: D.spelling("baseURL"),
1815
+ withXsrfToken: D.spelling("withXSRFToken")
1816
1816
  }, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
1817
1817
  let i = o && a.merge(
1818
1818
  o.common,
@@ -1823,56 +1823,56 @@ let Y = class {
1823
1823
  (f) => {
1824
1824
  delete o[f];
1825
1825
  }
1826
- ), r.headers = L.concat(i, o);
1826
+ ), r.headers = B.concat(i, o);
1827
1827
  const c = [];
1828
1828
  let p = !0;
1829
- this.interceptors.request.forEach(function(y) {
1830
- if (typeof y.runWhen == "function" && y.runWhen(r) === !1)
1829
+ this.interceptors.request.forEach(function(b) {
1830
+ if (typeof b.runWhen == "function" && b.runWhen(r) === !1)
1831
1831
  return;
1832
- p = p && y.synchronous;
1833
- const h = r.transitional || ze;
1834
- h && h.legacyInterceptorReqResOrdering ? c.unshift(y.fulfilled, y.rejected) : c.push(y.fulfilled, y.rejected);
1832
+ p = p && b.synchronous;
1833
+ const h = r.transitional || We;
1834
+ h && h.legacyInterceptorReqResOrdering ? c.unshift(b.fulfilled, b.rejected) : c.push(b.fulfilled, b.rejected);
1835
1835
  });
1836
1836
  const d = [];
1837
- this.interceptors.response.forEach(function(y) {
1838
- d.push(y.fulfilled, y.rejected);
1837
+ this.interceptors.response.forEach(function(b) {
1838
+ d.push(b.fulfilled, b.rejected);
1839
1839
  });
1840
- let u, m = 0, w;
1840
+ let u, y = 0, w;
1841
1841
  if (!p) {
1842
- const f = [ut.bind(this), void 0];
1843
- for (f.unshift(...c), f.push(...d), w = f.length, u = Promise.resolve(r); m < w; )
1844
- u = u.then(f[m++], f[m++]);
1842
+ const f = [ft.bind(this), void 0];
1843
+ for (f.unshift(...c), f.push(...d), w = f.length, u = Promise.resolve(r); y < w; )
1844
+ u = u.then(f[y++], f[y++]);
1845
1845
  return u;
1846
1846
  }
1847
1847
  w = c.length;
1848
1848
  let R = r;
1849
- for (; m < w; ) {
1850
- const f = c[m++], y = c[m++];
1849
+ for (; y < w; ) {
1850
+ const f = c[y++], b = c[y++];
1851
1851
  try {
1852
1852
  R = f(R);
1853
1853
  } catch (h) {
1854
- y.call(this, h);
1854
+ b.call(this, h);
1855
1855
  break;
1856
1856
  }
1857
1857
  }
1858
1858
  try {
1859
- u = ut.call(this, R);
1859
+ u = ft.call(this, R);
1860
1860
  } catch (f) {
1861
1861
  return Promise.reject(f);
1862
1862
  }
1863
- for (m = 0, w = d.length; m < w; )
1864
- u = u.then(d[m++], d[m++]);
1863
+ for (y = 0, w = d.length; y < w; )
1864
+ u = u.then(d[y++], d[y++]);
1865
1865
  return u;
1866
1866
  }
1867
1867
  getUri(e) {
1868
- e = X(this.defaults, e);
1868
+ e = G(this.defaults, e);
1869
1869
  const r = Ct(e.baseURL, e.url, e.allowAbsoluteUrls);
1870
1870
  return xt(r, e.params, e.paramsSerializer);
1871
1871
  }
1872
1872
  };
1873
1873
  a.forEach(["delete", "get", "head", "options"], function(e) {
1874
- Y.prototype[e] = function(r, n) {
1875
- return this.request(X(n || {}, {
1874
+ X.prototype[e] = function(r, n) {
1875
+ return this.request(G(n || {}, {
1876
1876
  method: e,
1877
1877
  url: r,
1878
1878
  data: (n || {}).data
@@ -1882,7 +1882,7 @@ a.forEach(["delete", "get", "head", "options"], function(e) {
1882
1882
  a.forEach(["post", "put", "patch"], function(e) {
1883
1883
  function r(n) {
1884
1884
  return function(o, i, c) {
1885
- return this.request(X(c || {}, {
1885
+ return this.request(G(c || {}, {
1886
1886
  method: e,
1887
1887
  headers: n ? {
1888
1888
  "Content-Type": "multipart/form-data"
@@ -1892,7 +1892,7 @@ a.forEach(["post", "put", "patch"], function(e) {
1892
1892
  }));
1893
1893
  };
1894
1894
  }
1895
- Y.prototype[e] = r(), Y.prototype[e + "Form"] = r(!0);
1895
+ X.prototype[e] = r(), X.prototype[e + "Form"] = r(!0);
1896
1896
  });
1897
1897
  let Rn = class Lt {
1898
1898
  constructor(e) {
@@ -1975,7 +1975,7 @@ function Sn(t) {
1975
1975
  function Tn(t) {
1976
1976
  return a.isObject(t) && t.isAxiosError === !0;
1977
1977
  }
1978
- const Be = {
1978
+ const qe = {
1979
1979
  Continue: 100,
1980
1980
  SwitchingProtocols: 101,
1981
1981
  Processing: 102,
@@ -2046,35 +2046,35 @@ const Be = {
2046
2046
  SslHandshakeFailed: 525,
2047
2047
  InvalidSslCertificate: 526
2048
2048
  };
2049
- Object.entries(Be).forEach(([t, e]) => {
2050
- Be[e] = t;
2049
+ Object.entries(qe).forEach(([t, e]) => {
2050
+ qe[e] = t;
2051
2051
  });
2052
2052
  function Ut(t) {
2053
- const e = new Y(t), r = pt(Y.prototype.request, e);
2054
- return a.extend(r, Y.prototype, e, { allOwnKeys: !0 }), a.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(s) {
2055
- return Ut(X(t, s));
2053
+ const e = new X(t), r = pt(X.prototype.request, e);
2054
+ return a.extend(r, X.prototype, e, { allOwnKeys: !0 }), a.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(s) {
2055
+ return Ut(G(t, s));
2056
2056
  }, r;
2057
2057
  }
2058
- const x = Ut(fe);
2059
- x.Axios = Y;
2060
- x.CanceledError = de;
2061
- x.CancelToken = Rn;
2062
- x.isCancel = Ot;
2063
- x.VERSION = kt;
2064
- x.toFormData = _e;
2065
- x.AxiosError = g;
2066
- x.Cancel = x.CanceledError;
2067
- x.all = function(e) {
2058
+ const O = Ut(fe);
2059
+ O.Axios = X;
2060
+ O.CanceledError = de;
2061
+ O.CancelToken = Rn;
2062
+ O.isCancel = _t;
2063
+ O.VERSION = kt;
2064
+ O.toFormData = _e;
2065
+ O.AxiosError = g;
2066
+ O.Cancel = O.CanceledError;
2067
+ O.all = function(e) {
2068
2068
  return Promise.all(e);
2069
2069
  };
2070
- x.spread = Sn;
2071
- x.isAxiosError = Tn;
2072
- x.mergeConfig = X;
2073
- x.AxiosHeaders = L;
2074
- x.formToJSON = (t) => _t(a.isHTMLForm(t) ? new FormData(t) : t);
2075
- x.getAdapter = vt.getAdapter;
2076
- x.HttpStatusCode = Be;
2077
- x.default = x;
2070
+ O.spread = Sn;
2071
+ O.isAxiosError = Tn;
2072
+ O.mergeConfig = G;
2073
+ O.AxiosHeaders = B;
2074
+ O.formToJSON = (t) => Ot(a.isHTMLForm(t) ? new FormData(t) : t);
2075
+ O.getAdapter = vt.getAdapter;
2076
+ O.HttpStatusCode = qe;
2077
+ O.default = O;
2078
2078
  const {
2079
2079
  Axios: Un,
2080
2080
  AxiosError: In,
@@ -2087,37 +2087,37 @@ const {
2087
2087
  isAxiosError: $n,
2088
2088
  spread: zn,
2089
2089
  toFormData: Wn,
2090
- AxiosHeaders: Jn,
2091
- HttpStatusCode: Vn,
2090
+ AxiosHeaders: Vn,
2091
+ HttpStatusCode: Jn,
2092
2092
  formToJSON: Kn,
2093
2093
  getAdapter: Yn,
2094
2094
  mergeConfig: Xn
2095
- } = x, An = "https://authifyer-backend.onrender.com", q = x.create({
2095
+ } = O, An = "https://authifyer-backend.onrender.com", H = O.create({
2096
2096
  baseURL: An,
2097
2097
  headers: {
2098
2098
  "Content-Type": "application/json"
2099
2099
  }
2100
- }), De = "authifyer_access_token", ke = (t) => {
2100
+ }), Me = "authifyer_access_token", Le = (t) => {
2101
2101
  try {
2102
- t ? (localStorage.setItem(De, t), q.defaults.headers.common.Authorization = `Bearer ${t}`) : (localStorage.removeItem(De), delete q.defaults.headers.common.Authorization);
2102
+ t ? (localStorage.setItem(Me, t), H.defaults.headers.common.Authorization = `Bearer ${t}`) : (localStorage.removeItem(Me), delete H.defaults.headers.common.Authorization);
2103
2103
  } catch (e) {
2104
2104
  console.warn("Authifyer: localStorage is not accessible.", e);
2105
2105
  }
2106
2106
  }, xn = () => {
2107
2107
  try {
2108
- return localStorage.getItem(De);
2108
+ return localStorage.getItem(Me);
2109
2109
  } catch {
2110
2110
  return null;
2111
2111
  }
2112
- }, qe = "authifyer_refresh_token", Le = (t) => {
2112
+ }, He = "authifyer_refresh_token", Ue = (t) => {
2113
2113
  try {
2114
- t ? localStorage.setItem(qe, t) : localStorage.removeItem(qe);
2114
+ t ? localStorage.setItem(He, t) : localStorage.removeItem(He);
2115
2115
  } catch (e) {
2116
2116
  console.warn("Authifyer: localStorage is not accessible. Session persistence may fail.", e), typeof window < "u" && window.dispatchEvent(new CustomEvent("auth:storage_error"));
2117
2117
  }
2118
- }, dt = () => {
2118
+ }, Ie = () => {
2119
2119
  try {
2120
- return localStorage.getItem(qe);
2120
+ return localStorage.getItem(He);
2121
2121
  } catch (t) {
2122
2122
  return console.warn("Authifyer: localStorage is not accessible. Session persistence may fail.", t), typeof window < "u" && window.dispatchEvent(new CustomEvent("auth:storage_error")), null;
2123
2123
  }
@@ -2125,13 +2125,13 @@ const {
2125
2125
  class ae extends Error {
2126
2126
  }
2127
2127
  ae.prototype.name = "InvalidTokenError";
2128
- function _n(t) {
2128
+ function On(t) {
2129
2129
  return decodeURIComponent(atob(t).replace(/(.)/g, (e, r) => {
2130
2130
  let n = r.charCodeAt(0).toString(16).toUpperCase();
2131
2131
  return n.length < 2 && (n = "0" + n), "%" + n;
2132
2132
  }));
2133
2133
  }
2134
- function On(t) {
2134
+ function _n(t) {
2135
2135
  let e = t.replace(/-/g, "+").replace(/_/g, "/");
2136
2136
  switch (e.length % 4) {
2137
2137
  case 0:
@@ -2146,7 +2146,7 @@ function On(t) {
2146
2146
  throw new Error("base64 string is not of the correct length");
2147
2147
  }
2148
2148
  try {
2149
- return _n(e);
2149
+ return On(e);
2150
2150
  } catch {
2151
2151
  return atob(e);
2152
2152
  }
@@ -2160,7 +2160,7 @@ function Nn(t, e) {
2160
2160
  throw new ae(`Invalid token specified: missing part #${r + 1}`);
2161
2161
  let s;
2162
2162
  try {
2163
- s = On(n);
2163
+ s = _n(n);
2164
2164
  } catch (o) {
2165
2165
  throw new ae(`Invalid token specified: invalid base64 for part #${r + 1} (${o.message})`);
2166
2166
  }
@@ -2197,21 +2197,21 @@ const ht = (t) => {
2197
2197
  };
2198
2198
  class Cn {
2199
2199
  constructor(e, r) {
2200
- V(this, "publishableKey");
2201
- V(this, "refreshTimer", null);
2200
+ K(this, "publishableKey");
2201
+ K(this, "refreshTimer", null);
2202
2202
  // State
2203
- V(this, "session", null);
2204
- V(this, "config", null);
2205
- V(this, "isLoading", !0);
2206
- V(this, "listeners", []);
2207
- this.publishableKey = e, r != null && r.backendUrl && (q.defaults.baseURL = r.backendUrl);
2203
+ K(this, "session", null);
2204
+ K(this, "config", null);
2205
+ K(this, "isLoading", !0);
2206
+ K(this, "listeners", []);
2207
+ this.publishableKey = e, r != null && r.backendUrl && (H.defaults.baseURL = r.backendUrl);
2208
2208
  }
2209
2209
  // --- API Methods ---
2210
2210
  async load() {
2211
2211
  try {
2212
2212
  this.isLoading = !0, this.notifyListeners();
2213
2213
  try {
2214
- const n = (await q.get(`/public/config/${this.publishableKey}`)).data, s = [];
2214
+ const n = (await H.get(`/public/config/${this.publishableKey}`)).data, s = [];
2215
2215
  n.isGoogleOauthEnabled && s.push("google"), n.isGithubOauthEnabled && s.push("github"), this.config = {
2216
2216
  emailPasswordEnabled: n.isEmailPassEnabled,
2217
2217
  oauthProviders: s
@@ -2225,7 +2225,7 @@ class Cn {
2225
2225
  const e = xn();
2226
2226
  if (e) {
2227
2227
  const r = ht(e);
2228
- r && (this.session = r, ke(e), this.startRefreshTimer());
2228
+ r && (this.session = r, Le(e), this.startRefreshTimer());
2229
2229
  }
2230
2230
  this.session || await this.refreshSession();
2231
2231
  } catch (e) {
@@ -2237,7 +2237,7 @@ class Cn {
2237
2237
  // --- Auth Actions ---
2238
2238
  async signInWithEmail(e, r) {
2239
2239
  try {
2240
- const n = await q.post("/authifyer/project/login/email", {
2240
+ const n = await H.post("/authifyer/project/login/email", {
2241
2241
  email: e,
2242
2242
  password: r,
2243
2243
  publicProjectId: this.publishableKey
@@ -2250,19 +2250,32 @@ class Cn {
2250
2250
  }
2251
2251
  async signUpWithEmail(e, r) {
2252
2252
  try {
2253
- const n = await q.post("/authifyer/project/register/email", {
2253
+ const n = await H.post("/authifyer/project/register/email", {
2254
2254
  email: e,
2255
2255
  password: r,
2256
2256
  publicProjectId: this.publishableKey
2257
2257
  });
2258
- this.handleAuthResponse(n.data);
2258
+ return this.handleAuthResponse(n.data), n.data;
2259
+ } catch (n) {
2260
+ throw n;
2261
+ }
2262
+ }
2263
+ async verifyEmail(e, r) {
2264
+ try {
2265
+ await H.post("/api/auth/verify-email", {
2266
+ token: e,
2267
+ subjectId: r
2268
+ });
2259
2269
  } catch (n) {
2260
2270
  throw n;
2261
2271
  }
2262
2272
  }
2263
2273
  async signOut() {
2264
2274
  try {
2265
- await q.post("/authifyer/session/logout");
2275
+ const e = Ie();
2276
+ await H.post("/authifyer/session/logout", {
2277
+ refresh_token: e || void 0
2278
+ });
2266
2279
  } catch (e) {
2267
2280
  console.warn("Logout failed", e);
2268
2281
  } finally {
@@ -2270,20 +2283,25 @@ class Cn {
2270
2283
  }
2271
2284
  }
2272
2285
  signInWithOAuth(e) {
2273
- const r = window.location.origin, n = `${q.defaults.baseURL}/oauth2/authorization/${e}?publishable_key=${this.publishableKey}&redirect_uri=${r}`;
2286
+ const r = window.location.origin, n = `${H.defaults.baseURL}/oauth2/authorization/${e}?publishable_key=${this.publishableKey}&redirect_uri=${r}`;
2274
2287
  window.location.href = n;
2275
2288
  }
2276
2289
  // --- Session Management ---
2277
2290
  async refreshSession() {
2278
2291
  try {
2279
- const e = dt(), r = await q.post("/authifyer/jwt/refresh-jwt", {
2280
- refresh_token: e || void 0
2292
+ const e = Ie();
2293
+ if (!e) {
2294
+ this.clearSession();
2295
+ return;
2296
+ }
2297
+ const r = await H.post("/authifyer/jwt/refresh-jwt", {
2298
+ refresh_token: e
2281
2299
  }), { access_token: n, refresh_token: s } = r.data;
2282
2300
  if (n) {
2283
2301
  const o = n.accessToken || n;
2284
2302
  this.setSession(o);
2285
2303
  }
2286
- s && Le(s);
2304
+ s && Ue(s);
2287
2305
  } catch {
2288
2306
  this.clearSession();
2289
2307
  }
@@ -2295,8 +2313,8 @@ class Cn {
2295
2313
  */
2296
2314
  async rotateSession() {
2297
2315
  try {
2298
- const e = dt();
2299
- await q.post("/authifyer/session/refresh", {
2316
+ const e = Ie();
2317
+ await H.post("/authifyer/session/refresh", {
2300
2318
  refresh_token: e || void 0
2301
2319
  }), await this.refreshSession();
2302
2320
  } catch (e) {
@@ -2304,14 +2322,14 @@ class Cn {
2304
2322
  }
2305
2323
  }
2306
2324
  handleAuthResponse(e) {
2307
- e.accessToken && this.setSession(e.accessToken), (e.refreshToken || e.refresh_token) && Le(e.refreshToken || e.refresh_token);
2325
+ e.accessToken && this.setSession(e.accessToken), (e.refreshToken || e.refresh_token) && Ue(e.refreshToken || e.refresh_token);
2308
2326
  }
2309
2327
  setSession(e) {
2310
2328
  const r = ht(e);
2311
- r && (this.session = r, ke(e), this.startRefreshTimer(), this.notifyListeners());
2329
+ r && (this.session = r, Le(e), this.startRefreshTimer(), this.notifyListeners());
2312
2330
  }
2313
2331
  clearSession() {
2314
- this.session = null, ke(null), Le(null), this.stopRefreshTimer(), this.notifyListeners();
2332
+ this.session = null, Le(null), Ue(null), this.stopRefreshTimer(), this.notifyListeners();
2315
2333
  }
2316
2334
  // --- Timer ---
2317
2335
  startRefreshTimer() {
@@ -2340,22 +2358,22 @@ const It = Mt(void 0), Gn = ({
2340
2358
  }) => {
2341
2359
  var f;
2342
2360
  const s = Ht(() => {
2343
- const y = (
2361
+ const b = (
2344
2362
  // @ts-ignore (Vite)
2345
2363
  // @ts-ignore (Next.js / CRA)
2346
2364
  typeof process < "u" && process.env && (process.env.NEXT_PUBLIC_AUTHIFYER_PUBLISHABLE_KEY || process.env.REACT_APP_AUTHIFYER_PUBLISHABLE_KEY)
2347
- ), h = t || y;
2365
+ ), h = t || b;
2348
2366
  h || console.error("AuthifyerProvider requires a publishableKey either passed as a prop or set as an environment variable (e.g. VITE_AUTHIFYER_PUBLISHABLE_KEY, NEXT_PUBLIC_AUTHIFYER_PUBLISHABLE_KEY, REACT_APP_AUTHIFYER_PUBLISHABLE_KEY).");
2349
2367
  const S = new Cn(h || "", { backendUrl: e });
2350
2368
  return r && (S.config = r), S;
2351
- }, [t, e, r]), [o, i] = I(((f = s.session) == null ? void 0 : f.user) || null), [c, p] = I(s.session), [d, u] = I(s.config), [m, w] = I(s.isLoading);
2369
+ }, [t, e, r]), [o, i] = v(((f = s.session) == null ? void 0 : f.user) || null), [c, p] = v(s.session), [d, u] = v(s.config), [y, w] = v(s.isLoading);
2352
2370
  $t(() => {
2353
- const y = s.subscribe((h) => {
2371
+ const b = s.subscribe((h) => {
2354
2372
  var S;
2355
2373
  i(((S = h.session) == null ? void 0 : S.user) || null), p(h.session), r || u(h.config), w(h.isLoading);
2356
2374
  });
2357
2375
  return s.load(), () => {
2358
- y();
2376
+ b();
2359
2377
  };
2360
2378
  }, [s, r]);
2361
2379
  const R = {
@@ -2363,9 +2381,9 @@ const It = Mt(void 0), Gn = ({
2363
2381
  user: o,
2364
2382
  session: c,
2365
2383
  config: r || d,
2366
- isLoading: m
2384
+ isLoading: y
2367
2385
  };
2368
- return /* @__PURE__ */ b.jsx(It.Provider, { value: R, children: n });
2386
+ return /* @__PURE__ */ m.jsx(It.Provider, { value: R, children: n });
2369
2387
  }, he = () => {
2370
2388
  const t = zt(It);
2371
2389
  if (t === void 0)
@@ -2380,21 +2398,21 @@ const It = Mt(void 0), Gn = ({
2380
2398
  }, es = () => {
2381
2399
  const { client: t } = he();
2382
2400
  return t;
2383
- }, Me = ({ title: t, subtitle: e, children: r }) => /* @__PURE__ */ b.jsx("div", { className: "authifyer-root", children: /* @__PURE__ */ b.jsxs("div", { className: "authifyer-card", children: [
2384
- /* @__PURE__ */ b.jsxs("div", { className: "authifyer-card-header", children: [
2385
- /* @__PURE__ */ b.jsx("h2", { className: "authifyer-card-title", children: t }),
2386
- e && /* @__PURE__ */ b.jsx("p", { className: "authifyer-card-subtitle", children: e })
2401
+ }, Se = ({ title: t, subtitle: e, children: r }) => /* @__PURE__ */ m.jsx("div", { className: "authifyer-root", children: /* @__PURE__ */ m.jsxs("div", { className: "authifyer-card", children: [
2402
+ /* @__PURE__ */ m.jsxs("div", { className: "authifyer-card-header", children: [
2403
+ /* @__PURE__ */ m.jsx("h2", { className: "authifyer-card-title", children: t }),
2404
+ e && /* @__PURE__ */ m.jsx("p", { className: "authifyer-card-subtitle", children: e })
2387
2405
  ] }),
2388
- /* @__PURE__ */ b.jsx("div", { className: "authifyer-card-content", children: r }),
2389
- /* @__PURE__ */ b.jsxs("div", { className: "authifyer-footer", children: [
2390
- /* @__PURE__ */ b.jsx("span", { className: "authifyer-secured-text", children: "Secured by" }),
2391
- /* @__PURE__ */ b.jsxs("span", { className: "authifyer-brand", children: [
2392
- /* @__PURE__ */ b.jsx("svg", { className: "authifyer-logo-icon", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ b.jsx("path", { d: "M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5" }) }),
2406
+ /* @__PURE__ */ m.jsx("div", { className: "authifyer-card-content", children: r }),
2407
+ /* @__PURE__ */ m.jsxs("div", { className: "authifyer-footer", children: [
2408
+ /* @__PURE__ */ m.jsx("span", { className: "authifyer-secured-text", children: "Secured by" }),
2409
+ /* @__PURE__ */ m.jsxs("span", { className: "authifyer-brand", children: [
2410
+ /* @__PURE__ */ m.jsx("svg", { className: "authifyer-logo-icon", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ m.jsx("path", { d: "M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5" }) }),
2393
2411
  "Authifyer"
2394
2412
  ] })
2395
2413
  ] })
2396
2414
  ] }) }), ts = () => {
2397
- const { client: t, config: e } = he(), [r, n] = I(""), [s, o] = I(""), [i, c] = I(""), [p, d] = I(!1), u = (e == null ? void 0 : e.emailPasswordEnabled) ?? !0, m = (e == null ? void 0 : e.oauthProviders) ?? ["google", "github"], w = async (R) => {
2415
+ const { client: t, config: e } = he(), [r, n] = v(""), [s, o] = v(""), [i, c] = v(""), [p, d] = v(!1), u = (e == null ? void 0 : e.emailPasswordEnabled) ?? !0, y = (e == null ? void 0 : e.oauthProviders) ?? ["google", "github"], w = async (R) => {
2398
2416
  R.preventDefault(), d(!0), c("");
2399
2417
  try {
2400
2418
  await t.signInWithEmail(r, s);
@@ -2404,42 +2422,42 @@ const It = Mt(void 0), Gn = ({
2404
2422
  d(!1);
2405
2423
  }
2406
2424
  };
2407
- return /* @__PURE__ */ b.jsxs(Me, { title: "Sign in", subtitle: "to continue to Authifyer", children: [
2408
- i && /* @__PURE__ */ b.jsx("p", { className: "authifyer-error", children: i }),
2409
- (m.includes("google") || m.includes("github")) && /* @__PURE__ */ b.jsxs("div", { className: "authifyer-form", children: [
2410
- m.includes("google") && /* @__PURE__ */ b.jsxs(
2425
+ return /* @__PURE__ */ m.jsxs(Se, { title: "Sign in", subtitle: "to continue to Authifyer", children: [
2426
+ i && /* @__PURE__ */ m.jsx("p", { className: "authifyer-error", children: i }),
2427
+ (y.includes("google") || y.includes("github")) && /* @__PURE__ */ m.jsxs("div", { className: "authifyer-form", children: [
2428
+ y.includes("google") && /* @__PURE__ */ m.jsxs(
2411
2429
  "button",
2412
2430
  {
2413
2431
  className: "authifyer-provider-btn",
2414
2432
  onClick: () => t.signInWithOAuth("google"),
2415
2433
  children: [
2416
- /* @__PURE__ */ b.jsxs("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
2417
- /* @__PURE__ */ b.jsx("path", { d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z", fill: "#4285F4" }),
2418
- /* @__PURE__ */ b.jsx("path", { d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z", fill: "#34A853" }),
2419
- /* @__PURE__ */ b.jsx("path", { d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z", fill: "#FBBC05" }),
2420
- /* @__PURE__ */ b.jsx("path", { d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z", fill: "#EA4335" })
2434
+ /* @__PURE__ */ m.jsxs("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
2435
+ /* @__PURE__ */ m.jsx("path", { d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z", fill: "#4285F4" }),
2436
+ /* @__PURE__ */ m.jsx("path", { d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z", fill: "#34A853" }),
2437
+ /* @__PURE__ */ m.jsx("path", { d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z", fill: "#FBBC05" }),
2438
+ /* @__PURE__ */ m.jsx("path", { d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z", fill: "#EA4335" })
2421
2439
  ] }),
2422
2440
  "Continue with Google"
2423
2441
  ]
2424
2442
  }
2425
2443
  ),
2426
- m.includes("github") && /* @__PURE__ */ b.jsxs(
2444
+ y.includes("github") && /* @__PURE__ */ m.jsxs(
2427
2445
  "button",
2428
2446
  {
2429
2447
  className: "authifyer-provider-btn",
2430
2448
  onClick: () => t.signInWithOAuth("github"),
2431
2449
  children: [
2432
- /* @__PURE__ */ b.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ b.jsx("path", { d: "M12 0C5.37 0 0 5.37 0 12c0 5.3 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z" }) }),
2450
+ /* @__PURE__ */ m.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ m.jsx("path", { d: "M12 0C5.37 0 0 5.37 0 12c0 5.3 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z" }) }),
2433
2451
  "Continue with GitHub"
2434
2452
  ]
2435
2453
  }
2436
2454
  )
2437
2455
  ] }),
2438
- (m.includes("google") || m.includes("github")) && u && /* @__PURE__ */ b.jsx("div", { className: "authifyer-divider", children: "or" }),
2439
- u && /* @__PURE__ */ b.jsxs("form", { onSubmit: w, className: "authifyer-form", children: [
2440
- /* @__PURE__ */ b.jsxs("div", { className: "authifyer-form-group", children: [
2441
- /* @__PURE__ */ b.jsx("label", { className: "authifyer-label", children: "Email address" }),
2442
- /* @__PURE__ */ b.jsx(
2456
+ (y.includes("google") || y.includes("github")) && u && /* @__PURE__ */ m.jsx("div", { className: "authifyer-divider", children: "or" }),
2457
+ u && /* @__PURE__ */ m.jsxs("form", { onSubmit: w, className: "authifyer-form", children: [
2458
+ /* @__PURE__ */ m.jsxs("div", { className: "authifyer-form-group", children: [
2459
+ /* @__PURE__ */ m.jsx("label", { className: "authifyer-label", children: "Email address" }),
2460
+ /* @__PURE__ */ m.jsx(
2443
2461
  "input",
2444
2462
  {
2445
2463
  type: "email",
@@ -2450,9 +2468,9 @@ const It = Mt(void 0), Gn = ({
2450
2468
  }
2451
2469
  )
2452
2470
  ] }),
2453
- /* @__PURE__ */ b.jsxs("div", { className: "authifyer-form-group", children: [
2454
- /* @__PURE__ */ b.jsx("label", { className: "authifyer-label", children: "Password" }),
2455
- /* @__PURE__ */ b.jsx(
2471
+ /* @__PURE__ */ m.jsxs("div", { className: "authifyer-form-group", children: [
2472
+ /* @__PURE__ */ m.jsx("label", { className: "authifyer-label", children: "Password" }),
2473
+ /* @__PURE__ */ m.jsx(
2456
2474
  "input",
2457
2475
  {
2458
2476
  type: "password",
@@ -2463,86 +2481,130 @@ const It = Mt(void 0), Gn = ({
2463
2481
  }
2464
2482
  )
2465
2483
  ] }),
2466
- /* @__PURE__ */ b.jsx("button", { type: "submit", className: "authifyer-submit-btn", disabled: p, children: p ? "Signing In..." : "Continue" })
2484
+ /* @__PURE__ */ m.jsx("button", { type: "submit", className: "authifyer-submit-btn", disabled: p, children: p ? "Signing In..." : "Continue" })
2467
2485
  ] })
2468
2486
  ] });
2469
2487
  }, rs = () => {
2470
- const { client: t, config: e } = he(), [r, n] = I(""), [s, o] = I(""), [i, c] = I(""), [p, d] = I(!1), [u, m] = I(!1), w = (e == null ? void 0 : e.emailPasswordEnabled) ?? !0, R = (e == null ? void 0 : e.oauthProviders) ?? ["google", "github"], f = async (y) => {
2471
- y.preventDefault(), d(!0), c("");
2488
+ const { client: t, config: e } = he(), [r, n] = v(""), [s, o] = v(""), [i, c] = v(""), [p, d] = v(!1), [u, y] = v(!1), [w, R] = v(null), [f, b] = v(""), [h, S] = v(""), [j, x] = v(!1), N = (e == null ? void 0 : e.emailPasswordEnabled) ?? !0, _ = (e == null ? void 0 : e.oauthProviders) ?? ["google", "github"], q = async (U) => {
2489
+ U.preventDefault(), d(!0), c("");
2472
2490
  try {
2473
- await t.signUpWithEmail(r, s), m(!0);
2491
+ const I = await t.signUpWithEmail(r, s);
2492
+ I != null && I.subjectId ? R(I.subjectId) : y(!0);
2474
2493
  } catch {
2475
2494
  c("Registration failed. User might already exist.");
2476
2495
  } finally {
2477
2496
  d(!1);
2478
2497
  }
2498
+ }, k = async (U) => {
2499
+ if (U.preventDefault(), !!w) {
2500
+ x(!0), S("");
2501
+ try {
2502
+ await t.verifyEmail(f, w), R(null), y(!0);
2503
+ } catch {
2504
+ S("Invalid authorization code. Please try again.");
2505
+ } finally {
2506
+ x(!1);
2507
+ }
2508
+ }
2479
2509
  };
2480
- return u ? /* @__PURE__ */ b.jsx(Me, { title: "Welcome!", children: /* @__PURE__ */ b.jsxs("div", { className: "authifyer-success", children: [
2481
- /* @__PURE__ */ b.jsx("svg", { className: "authifyer-success-icon", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ b.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" }) }),
2482
- /* @__PURE__ */ b.jsxs("div", { children: [
2483
- /* @__PURE__ */ b.jsx("h3", { className: "authifyer-success-title", children: "Success" }),
2484
- /* @__PURE__ */ b.jsx("p", { className: "authifyer-success-text", children: "Registration completed. Please verify your email." })
2510
+ return u ? /* @__PURE__ */ m.jsx(Se, { title: "Welcome!", children: /* @__PURE__ */ m.jsxs("div", { className: "authifyer-success", children: [
2511
+ /* @__PURE__ */ m.jsx("svg", { className: "authifyer-success-icon", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ m.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" }) }),
2512
+ /* @__PURE__ */ m.jsxs("div", { children: [
2513
+ /* @__PURE__ */ m.jsx("h3", { className: "authifyer-success-title", children: "Success" }),
2514
+ /* @__PURE__ */ m.jsx("p", { className: "authifyer-success-text", children: "Application authenticated. You are now logged in." })
2515
+ ] })
2516
+ ] }) }) : w ? /* @__PURE__ */ m.jsxs(Se, { title: "Verify your email", subtitle: `Code sent to ${r}`, children: [
2517
+ h && /* @__PURE__ */ m.jsx("p", { className: "authifyer-error", children: h }),
2518
+ /* @__PURE__ */ m.jsxs("form", { onSubmit: k, className: "authifyer-form", children: [
2519
+ /* @__PURE__ */ m.jsxs("div", { className: "authifyer-form-group", children: [
2520
+ /* @__PURE__ */ m.jsx("label", { className: "authifyer-label", style: { textAlign: "center" }, children: "Enter 6-digit Code" }),
2521
+ /* @__PURE__ */ m.jsx(
2522
+ "input",
2523
+ {
2524
+ type: "text",
2525
+ maxLength: 6,
2526
+ className: "authifyer-input",
2527
+ style: { textAlign: "center", letterSpacing: "0.25em", fontSize: "1.25rem", fontWeight: 600 },
2528
+ value: f,
2529
+ onChange: (U) => b(U.target.value.replace(/\D/g, "")),
2530
+ required: !0
2531
+ }
2532
+ )
2533
+ ] }),
2534
+ /* @__PURE__ */ m.jsx("button", { type: "submit", className: "authifyer-submit-btn", disabled: j || f.length < 6, children: j ? "Verifying..." : "Verify Code" }),
2535
+ /* @__PURE__ */ m.jsx(
2536
+ "button",
2537
+ {
2538
+ type: "button",
2539
+ className: "authifyer-provider-btn",
2540
+ style: { marginTop: "0.5rem", border: "none", background: "transparent", color: "#666" },
2541
+ onClick: () => {
2542
+ R(null), b("");
2543
+ },
2544
+ children: "Back to Sign Up"
2545
+ }
2546
+ )
2485
2547
  ] })
2486
- ] }) }) : /* @__PURE__ */ b.jsxs(Me, { title: "Create your account", subtitle: "Welcome to Authifyer", children: [
2487
- i && /* @__PURE__ */ b.jsx("p", { className: "authifyer-error", children: i }),
2488
- (R.includes("google") || R.includes("github")) && /* @__PURE__ */ b.jsxs("div", { className: "authifyer-form", children: [
2489
- R.includes("google") && /* @__PURE__ */ b.jsxs(
2548
+ ] }) : /* @__PURE__ */ m.jsxs(Se, { title: "Create your account", subtitle: "Welcome to Authifyer", children: [
2549
+ i && /* @__PURE__ */ m.jsx("p", { className: "authifyer-error", children: i }),
2550
+ (_.includes("google") || _.includes("github")) && /* @__PURE__ */ m.jsxs("div", { className: "authifyer-form", children: [
2551
+ _.includes("google") && /* @__PURE__ */ m.jsxs(
2490
2552
  "button",
2491
2553
  {
2492
2554
  className: "authifyer-provider-btn",
2493
2555
  onClick: () => t.signInWithOAuth("google"),
2494
2556
  children: [
2495
- /* @__PURE__ */ b.jsxs("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
2496
- /* @__PURE__ */ b.jsx("path", { d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z", fill: "#4285F4" }),
2497
- /* @__PURE__ */ b.jsx("path", { d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z", fill: "#34A853" }),
2498
- /* @__PURE__ */ b.jsx("path", { d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z", fill: "#FBBC05" }),
2499
- /* @__PURE__ */ b.jsx("path", { d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z", fill: "#EA4335" })
2557
+ /* @__PURE__ */ m.jsxs("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
2558
+ /* @__PURE__ */ m.jsx("path", { d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z", fill: "#4285F4" }),
2559
+ /* @__PURE__ */ m.jsx("path", { d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z", fill: "#34A853" }),
2560
+ /* @__PURE__ */ m.jsx("path", { d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z", fill: "#FBBC05" }),
2561
+ /* @__PURE__ */ m.jsx("path", { d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z", fill: "#EA4335" })
2500
2562
  ] }),
2501
2563
  "Continue with Google"
2502
2564
  ]
2503
2565
  }
2504
2566
  ),
2505
- R.includes("github") && /* @__PURE__ */ b.jsxs(
2567
+ _.includes("github") && /* @__PURE__ */ m.jsxs(
2506
2568
  "button",
2507
2569
  {
2508
2570
  className: "authifyer-provider-btn",
2509
2571
  onClick: () => t.signInWithOAuth("github"),
2510
2572
  children: [
2511
- /* @__PURE__ */ b.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ b.jsx("path", { d: "M12 0C5.37 0 0 5.37 0 12c0 5.3 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z" }) }),
2573
+ /* @__PURE__ */ m.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ m.jsx("path", { d: "M12 0C5.37 0 0 5.37 0 12c0 5.3 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z" }) }),
2512
2574
  "Continue with GitHub"
2513
2575
  ]
2514
2576
  }
2515
2577
  )
2516
2578
  ] }),
2517
- (R.includes("google") || R.includes("github")) && w && /* @__PURE__ */ b.jsx("div", { className: "authifyer-divider", children: "or" }),
2518
- w && /* @__PURE__ */ b.jsxs("form", { onSubmit: f, className: "authifyer-form", children: [
2519
- /* @__PURE__ */ b.jsxs("div", { className: "authifyer-form-group", children: [
2520
- /* @__PURE__ */ b.jsx("label", { className: "authifyer-label", children: "Email address" }),
2521
- /* @__PURE__ */ b.jsx(
2579
+ (_.includes("google") || _.includes("github")) && N && /* @__PURE__ */ m.jsx("div", { className: "authifyer-divider", children: "or" }),
2580
+ N && /* @__PURE__ */ m.jsxs("form", { onSubmit: q, className: "authifyer-form", children: [
2581
+ /* @__PURE__ */ m.jsxs("div", { className: "authifyer-form-group", children: [
2582
+ /* @__PURE__ */ m.jsx("label", { className: "authifyer-label", children: "Email address" }),
2583
+ /* @__PURE__ */ m.jsx(
2522
2584
  "input",
2523
2585
  {
2524
2586
  type: "email",
2525
2587
  className: "authifyer-input",
2526
2588
  value: r,
2527
- onChange: (y) => n(y.target.value),
2589
+ onChange: (U) => n(U.target.value),
2528
2590
  required: !0
2529
2591
  }
2530
2592
  )
2531
2593
  ] }),
2532
- /* @__PURE__ */ b.jsxs("div", { className: "authifyer-form-group", children: [
2533
- /* @__PURE__ */ b.jsx("label", { className: "authifyer-label", children: "Password" }),
2534
- /* @__PURE__ */ b.jsx(
2594
+ /* @__PURE__ */ m.jsxs("div", { className: "authifyer-form-group", children: [
2595
+ /* @__PURE__ */ m.jsx("label", { className: "authifyer-label", children: "Password" }),
2596
+ /* @__PURE__ */ m.jsx(
2535
2597
  "input",
2536
2598
  {
2537
2599
  type: "password",
2538
2600
  className: "authifyer-input",
2539
2601
  value: s,
2540
- onChange: (y) => o(y.target.value),
2602
+ onChange: (U) => o(U.target.value),
2541
2603
  required: !0
2542
2604
  }
2543
2605
  )
2544
2606
  ] }),
2545
- /* @__PURE__ */ b.jsx("button", { type: "submit", className: "authifyer-submit-btn", disabled: p, children: p ? "Signing Up..." : "Continue" })
2607
+ /* @__PURE__ */ m.jsx("button", { type: "submit", className: "authifyer-submit-btn", disabled: p, children: p ? "Signing Up..." : "Continue" })
2546
2608
  ] })
2547
2609
  ] });
2548
2610
  };