@springmicro/auth 0.7.16 → 0.7.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/{Index-1e31d199-CO-3sUD-.js → Index-1e31d199-BXGGyb0l.js} +48 -48
  2. package/dist/{Index-6078f122-CDowfR7U.js → Index-6078f122-DGZJdnAZ.js} +67 -67
  3. package/dist/{Web3Auth-C1gorwXx.js → Web3Auth-DG8Yz_cD.js} +5884 -5161
  4. package/dist/{ccip-c78d2f16-DUJGUJJo.js → ccip-c78d2f16-BfTJLflq.js} +2 -2
  5. package/dist/{hmac-CGR-aDxj.js → hmac-CW2mnXa8.js} +1 -1
  6. package/dist/{index-021f6a62-DBObZnNM.js → index-021f6a62-CxfpndDE.js} +32 -32
  7. package/dist/{index-40a497ea-BEwImqwN.js → index-40a497ea-BRLn4BDo.js} +3 -3
  8. package/dist/index-B51q7F_W.js +9742 -0
  9. package/dist/{index-cTAxNlZn.js → index-BXvsDp0W.js} +582 -584
  10. package/dist/{index-D0GY6Fny.js → index-BYJic99M.js} +1400 -1751
  11. package/dist/{index-DJiTRo2_.js → index-Bfb6JoQf.js} +9082 -8717
  12. package/dist/{index-BIEw47XG.js → index-C8R4klyg.js} +27 -27
  13. package/dist/{index-ClXLxv7Y.js → index-CBbDq4vF.js} +3310 -3294
  14. package/dist/{index-C2J9ZZ0N.js → index-DbQi7wFl.js} +26 -26
  15. package/dist/index-hDobpv7u.js +32 -0
  16. package/dist/index.js +1 -1
  17. package/dist/index.umd.cjs +297 -298
  18. package/dist/native-FDN9oNjc.js +15 -0
  19. package/dist/{number-9K9sKV6s.js → number-DvQcSzeP.js} +556 -335
  20. package/dist/parseEther-C7cmMVOE.js +24 -0
  21. package/dist/{sha256-JJGtJ2gn.js → sha256-C90UGNQg.js} +8 -7
  22. package/dist/{transactionRequest-be6a8ea9-_q5BIZxq.js → transactionRequest-be6a8ea9-CCwC71wa.js} +9 -9
  23. package/package.json +4 -4
  24. package/src/components/SignUp.tsx +19 -19
  25. package/src/components/forms/CaptchaController.tsx +2 -2
  26. package/dist/index-BLh7Sl_6.js +0 -6151
  27. package/dist/index-bH4yLInF.js +0 -29
@@ -1,767 +1,416 @@
1
- import m, { useEffect as Bt } from "react";
2
- import { useTranslation as Le, initReactI18next as $n, I18nextProvider as kn } from "react-i18next";
3
- import K from "i18next";
4
- var Je = { exports: {} }, ye = {};
1
+ import f, { useEffect as Ze } from "react";
2
+ import { useTranslation as ge, initReactI18next as dt, I18nextProvider as pt } from "react-i18next";
3
+ import U from "i18next";
4
+ var Ae = { exports: {} }, ae = {};
5
5
  /**
6
6
  * @license React
7
- * react-jsx-runtime.production.min.js
7
+ * react-jsx-runtime.production.js
8
8
  *
9
- * Copyright (c) Facebook, Inc. and its affiliates.
9
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
10
10
  *
11
11
  * This source code is licensed under the MIT license found in the
12
12
  * LICENSE file in the root directory of this source tree.
13
13
  */
14
- var yt;
15
- function Sn() {
16
- if (yt) return ye;
17
- yt = 1;
18
- var t = m, e = Symbol.for("react.element"), o = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
19
- function c(g, u, f) {
20
- var h, k = {}, w = null, x = null;
21
- f !== void 0 && (w = "" + f), u.key !== void 0 && (w = "" + u.key), u.ref !== void 0 && (x = u.ref);
22
- for (h in u) r.call(u, h) && !l.hasOwnProperty(h) && (k[h] = u[h]);
23
- if (g && g.defaultProps) for (h in u = g.defaultProps, u) k[h] === void 0 && (k[h] = u[h]);
24
- return { $$typeof: e, type: g, key: w, ref: x, props: k, _owner: i.current };
14
+ var Te;
15
+ function ft() {
16
+ if (Te) return ae;
17
+ Te = 1;
18
+ var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
19
+ function n(i, a, l) {
20
+ var r = null;
21
+ if (l !== void 0 && (r = "" + l), a.key !== void 0 && (r = "" + a.key), "key" in a) {
22
+ l = {};
23
+ for (var p in a)
24
+ p !== "key" && (l[p] = a[p]);
25
+ } else l = a;
26
+ return a = l.ref, {
27
+ $$typeof: t,
28
+ type: i,
29
+ key: r,
30
+ ref: a !== void 0 ? a : null,
31
+ props: l
32
+ };
25
33
  }
26
- return ye.Fragment = o, ye.jsx = c, ye.jsxs = c, ye;
34
+ return ae.Fragment = e, ae.jsx = n, ae.jsxs = n, ae;
27
35
  }
28
- var we = {};
36
+ var ie = {};
29
37
  /**
30
38
  * @license React
31
39
  * react-jsx-runtime.development.js
32
40
  *
33
- * Copyright (c) Facebook, Inc. and its affiliates.
41
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
34
42
  *
35
43
  * This source code is licensed under the MIT license found in the
36
44
  * LICENSE file in the root directory of this source tree.
37
45
  */
38
- var wt;
39
- function _n() {
40
- return wt || (wt = 1, process.env.NODE_ENV !== "production" && function() {
41
- var t = m, e = Symbol.for("react.element"), o = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), g = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), A = Symbol.iterator, U = "@@iterator";
42
- function Q(n) {
43
- if (n === null || typeof n != "object")
44
- return null;
45
- var s = A && n[A] || n[U];
46
- return typeof s == "function" ? s : null;
47
- }
48
- var R = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
49
- function b(n) {
50
- {
51
- for (var s = arguments.length, p = new Array(s > 1 ? s - 1 : 0), y = 1; y < s; y++)
52
- p[y - 1] = arguments[y];
53
- E("error", n, p);
54
- }
55
- }
56
- function E(n, s, p) {
57
- {
58
- var y = R.ReactDebugCurrentFrame, S = y.getStackAddendum();
59
- S !== "" && (s += "%s", p = p.concat([S]));
60
- var _ = p.map(function($) {
61
- return String($);
62
- });
63
- _.unshift("Warning: " + s), Function.prototype.apply.call(console[n], console, _);
64
- }
65
- }
66
- var M = !1, W = !1, ie = !1, pe = !1, ne = !1, I;
67
- I = Symbol.for("react.module.reference");
68
- function Me(n) {
69
- return !!(typeof n == "string" || typeof n == "function" || n === r || n === l || ne || n === i || n === f || n === h || pe || n === x || M || W || ie || typeof n == "object" && n !== null && (n.$$typeof === w || n.$$typeof === k || n.$$typeof === c || n.$$typeof === g || n.$$typeof === u || // This needs to include all possible module reference object
70
- // types supported by any Flight configuration anywhere since
71
- // we don't know which Flight build this will end up being used
72
- // with.
73
- n.$$typeof === I || n.getModuleId !== void 0));
74
- }
75
- function ge(n, s, p) {
76
- var y = n.displayName;
77
- if (y)
78
- return y;
79
- var S = s.displayName || s.name || "";
80
- return S !== "" ? p + "(" + S + ")" : p;
81
- }
82
- function he(n) {
83
- return n.displayName || "Context";
84
- }
85
- function J(n) {
86
- if (n == null)
87
- return null;
88
- if (typeof n.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
89
- return n.displayName || n.name || null;
90
- if (typeof n == "string")
91
- return n;
92
- switch (n) {
93
- case r:
46
+ var Be;
47
+ function gt() {
48
+ return Be || (Be = 1, process.env.NODE_ENV !== "production" && function() {
49
+ function t(c) {
50
+ if (c == null) return null;
51
+ if (typeof c == "function")
52
+ return c.$$typeof === ne ? null : c.displayName || c.name || null;
53
+ if (typeof c == "string") return c;
54
+ switch (c) {
55
+ case F:
94
56
  return "Fragment";
95
- case o:
96
- return "Portal";
97
- case l:
57
+ case x:
98
58
  return "Profiler";
99
- case i:
59
+ case I:
100
60
  return "StrictMode";
101
- case f:
61
+ case Q:
102
62
  return "Suspense";
103
- case h:
63
+ case te:
104
64
  return "SuspenseList";
105
- }
106
- if (typeof n == "object")
107
- switch (n.$$typeof) {
108
- case g:
109
- var s = n;
110
- return he(s) + ".Consumer";
111
- case c:
112
- var p = n;
113
- return he(p._context) + ".Provider";
114
- case u:
115
- return ge(n, n.render, "ForwardRef");
116
- case k:
117
- var y = n.displayName || null;
118
- return y !== null ? y : J(n.type) || "Memo";
119
- case w: {
120
- var S = n, _ = S._payload, $ = S._init;
65
+ case we:
66
+ return "Activity";
67
+ }
68
+ if (typeof c == "object")
69
+ switch (typeof c.tag == "number" && console.error(
70
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
71
+ ), c.$$typeof) {
72
+ case B:
73
+ return "Portal";
74
+ case E:
75
+ return c.displayName || "Context";
76
+ case $:
77
+ return (c._context.displayName || "Context") + ".Consumer";
78
+ case N:
79
+ var h = c.render;
80
+ return c = c.displayName, c || (c = h.displayName || h.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
81
+ case V:
82
+ return h = c.displayName || null, h !== null ? h : t(c.type) || "Memo";
83
+ case z:
84
+ h = c._payload, c = c._init;
121
85
  try {
122
- return J($(_));
86
+ return t(c(h));
123
87
  } catch {
124
- return null;
125
88
  }
126
- }
127
89
  }
128
90
  return null;
129
91
  }
130
- var Z = Object.assign, re = 0, $e, ke, T, ze, Ze, Xe, et;
131
- function tt() {
132
- }
133
- tt.__reactDisabledLog = !0;
134
- function Yt() {
135
- {
136
- if (re === 0) {
137
- $e = console.log, ke = console.info, T = console.warn, ze = console.error, Ze = console.group, Xe = console.groupCollapsed, et = console.groupEnd;
138
- var n = {
139
- configurable: !0,
140
- enumerable: !0,
141
- value: tt,
142
- writable: !0
143
- };
144
- Object.defineProperties(console, {
145
- info: n,
146
- log: n,
147
- warn: n,
148
- error: n,
149
- group: n,
150
- groupCollapsed: n,
151
- groupEnd: n
152
- });
153
- }
154
- re++;
155
- }
156
- }
157
- function Kt() {
158
- {
159
- if (re--, re === 0) {
160
- var n = {
161
- configurable: !0,
162
- enumerable: !0,
163
- writable: !0
164
- };
165
- Object.defineProperties(console, {
166
- log: Z({}, n, {
167
- value: $e
168
- }),
169
- info: Z({}, n, {
170
- value: ke
171
- }),
172
- warn: Z({}, n, {
173
- value: T
174
- }),
175
- error: Z({}, n, {
176
- value: ze
177
- }),
178
- group: Z({}, n, {
179
- value: Ze
180
- }),
181
- groupCollapsed: Z({}, n, {
182
- value: Xe
183
- }),
184
- groupEnd: Z({}, n, {
185
- value: et
186
- })
187
- });
188
- }
189
- re < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
190
- }
191
- }
192
- var Oe = R.ReactCurrentDispatcher, Be;
193
- function Se(n, s, p) {
194
- {
195
- if (Be === void 0)
196
- try {
197
- throw Error();
198
- } catch (S) {
199
- var y = S.stack.trim().match(/\n( *(at )?)/);
200
- Be = y && y[1] || "";
201
- }
202
- return `
203
- ` + Be + n;
204
- }
205
- }
206
- var Pe = !1, _e;
207
- {
208
- var Jt = typeof WeakMap == "function" ? WeakMap : Map;
209
- _e = new Jt();
92
+ function e(c) {
93
+ return "" + c;
210
94
  }
211
- function nt(n, s) {
212
- if (!n || Pe)
213
- return "";
214
- {
215
- var p = _e.get(n);
216
- if (p !== void 0)
217
- return p;
218
- }
219
- var y;
220
- Pe = !0;
221
- var S = Error.prepareStackTrace;
222
- Error.prepareStackTrace = void 0;
223
- var _;
224
- _ = Oe.current, Oe.current = null, Yt();
95
+ function n(c) {
225
96
  try {
226
- if (s) {
227
- var $ = function() {
228
- throw Error();
229
- };
230
- if (Object.defineProperty($.prototype, "props", {
231
- set: function() {
232
- throw Error();
233
- }
234
- }), typeof Reflect == "object" && Reflect.construct) {
235
- try {
236
- Reflect.construct($, []);
237
- } catch (D) {
238
- y = D;
239
- }
240
- Reflect.construct(n, [], $);
241
- } else {
242
- try {
243
- $.call();
244
- } catch (D) {
245
- y = D;
246
- }
247
- n.call($.prototype);
248
- }
249
- } else {
250
- try {
251
- throw Error();
252
- } catch (D) {
253
- y = D;
254
- }
255
- n();
256
- }
257
- } catch (D) {
258
- if (D && y && typeof D.stack == "string") {
259
- for (var v = D.stack.split(`
260
- `), N = y.stack.split(`
261
- `), z = v.length - 1, B = N.length - 1; z >= 1 && B >= 0 && v[z] !== N[B]; )
262
- B--;
263
- for (; z >= 1 && B >= 0; z--, B--)
264
- if (v[z] !== N[B]) {
265
- if (z !== 1 || B !== 1)
266
- do
267
- if (z--, B--, B < 0 || v[z] !== N[B]) {
268
- var V = `
269
- ` + v[z].replace(" at new ", " at ");
270
- return n.displayName && V.includes("<anonymous>") && (V = V.replace("<anonymous>", n.displayName)), typeof n == "function" && _e.set(n, V), V;
271
- }
272
- while (z >= 1 && B >= 0);
273
- break;
274
- }
275
- }
276
- } finally {
277
- Pe = !1, Oe.current = _, Kt(), Error.prepareStackTrace = S;
278
- }
279
- var de = n ? n.displayName || n.name : "", le = de ? Se(de) : "";
280
- return typeof n == "function" && _e.set(n, le), le;
281
- }
282
- function Qt(n, s, p) {
283
- return nt(n, !1);
284
- }
285
- function Zt(n) {
286
- var s = n.prototype;
287
- return !!(s && s.isReactComponent);
288
- }
289
- function Ce(n, s, p) {
290
- if (n == null)
291
- return "";
292
- if (typeof n == "function")
293
- return nt(n, Zt(n));
294
- if (typeof n == "string")
295
- return Se(n);
296
- switch (n) {
297
- case f:
298
- return Se("Suspense");
299
- case h:
300
- return Se("SuspenseList");
301
- }
302
- if (typeof n == "object")
303
- switch (n.$$typeof) {
304
- case u:
305
- return Qt(n.render);
306
- case k:
307
- return Ce(n.type, s, p);
308
- case w: {
309
- var y = n, S = y._payload, _ = y._init;
310
- try {
311
- return Ce(_(S), s, p);
312
- } catch {
313
- }
314
- }
315
- }
316
- return "";
317
- }
318
- var me = Object.prototype.hasOwnProperty, ot = {}, at = R.ReactDebugCurrentFrame;
319
- function Ee(n) {
320
- if (n) {
321
- var s = n._owner, p = Ce(n.type, n._source, s ? s.type : null);
322
- at.setExtraStackFrame(p);
323
- } else
324
- at.setExtraStackFrame(null);
325
- }
326
- function Xt(n, s, p, y, S) {
327
- {
328
- var _ = Function.call.bind(me);
329
- for (var $ in n)
330
- if (_(n, $)) {
331
- var v = void 0;
332
- try {
333
- if (typeof n[$] != "function") {
334
- var N = Error((y || "React class") + ": " + p + " type `" + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[$] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
335
- throw N.name = "Invariant Violation", N;
336
- }
337
- v = n[$](s, $, y, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
338
- } catch (z) {
339
- v = z;
340
- }
341
- v && !(v instanceof Error) && (Ee(S), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", y || "React class", p, $, typeof v), Ee(null)), v instanceof Error && !(v.message in ot) && (ot[v.message] = !0, Ee(S), b("Failed %s type: %s", p, v.message), Ee(null));
342
- }
343
- }
344
- }
345
- var en = Array.isArray;
346
- function Re(n) {
347
- return en(n);
348
- }
349
- function tn(n) {
350
- {
351
- var s = typeof Symbol == "function" && Symbol.toStringTag, p = s && n[Symbol.toStringTag] || n.constructor.name || "Object";
352
- return p;
353
- }
354
- }
355
- function nn(n) {
97
+ e(c);
98
+ var h = !1;
99
+ } catch {
100
+ h = !0;
101
+ }
102
+ if (h) {
103
+ h = console;
104
+ var _ = h.error, L = typeof Symbol == "function" && Symbol.toStringTag && c[Symbol.toStringTag] || c.constructor.name || "Object";
105
+ return _.call(
106
+ h,
107
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
108
+ L
109
+ ), e(c);
110
+ }
111
+ }
112
+ function i(c) {
113
+ if (c === F) return "<>";
114
+ if (typeof c == "object" && c !== null && c.$$typeof === z)
115
+ return "<...>";
356
116
  try {
357
- return it(n), !1;
117
+ var h = t(c);
118
+ return h ? "<" + h + ">" : "<...>";
358
119
  } catch {
359
- return !0;
360
- }
361
- }
362
- function it(n) {
363
- return "" + n;
364
- }
365
- function rt(n) {
366
- if (nn(n))
367
- return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", tn(n)), it(n);
368
- }
369
- var lt = R.ReactCurrentOwner, on = {
370
- key: !0,
371
- ref: !0,
372
- __self: !0,
373
- __source: !0
374
- }, ct, st;
375
- function an(n) {
376
- if (me.call(n, "ref")) {
377
- var s = Object.getOwnPropertyDescriptor(n, "ref").get;
378
- if (s && s.isReactWarning)
379
- return !1;
380
- }
381
- return n.ref !== void 0;
382
- }
383
- function rn(n) {
384
- if (me.call(n, "key")) {
385
- var s = Object.getOwnPropertyDescriptor(n, "key").get;
386
- if (s && s.isReactWarning)
387
- return !1;
388
- }
389
- return n.key !== void 0;
390
- }
391
- function ln(n, s) {
392
- typeof n.ref == "string" && lt.current;
393
- }
394
- function cn(n, s) {
395
- {
396
- var p = function() {
397
- ct || (ct = !0, b("%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://reactjs.org/link/special-props)", s));
398
- };
399
- p.isReactWarning = !0, Object.defineProperty(n, "key", {
400
- get: p,
401
- configurable: !0
402
- });
403
- }
404
- }
405
- function sn(n, s) {
406
- {
407
- var p = function() {
408
- st || (st = !0, b("%s: `ref` 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://reactjs.org/link/special-props)", s));
409
- };
410
- p.isReactWarning = !0, Object.defineProperty(n, "ref", {
411
- get: p,
412
- configurable: !0
413
- });
414
- }
415
- }
416
- var un = function(n, s, p, y, S, _, $) {
417
- var v = {
418
- // This tag allows us to uniquely identify this as a React Element
419
- $$typeof: e,
420
- // Built-in properties that belong on the element
421
- type: n,
422
- key: s,
423
- ref: p,
424
- props: $,
425
- // Record the component responsible for creating this element.
426
- _owner: _
427
- };
428
- return v._store = {}, Object.defineProperty(v._store, "validated", {
120
+ return "<...>";
121
+ }
122
+ }
123
+ function a() {
124
+ var c = K.A;
125
+ return c === null ? null : c.getOwner();
126
+ }
127
+ function l() {
128
+ return Error("react-stack-top-frame");
129
+ }
130
+ function r(c) {
131
+ if (se.call(c, "key")) {
132
+ var h = Object.getOwnPropertyDescriptor(c, "key").get;
133
+ if (h && h.isReactWarning) return !1;
134
+ }
135
+ return c.key !== void 0;
136
+ }
137
+ function p(c, h) {
138
+ function _() {
139
+ ue || (ue = !0, console.error(
140
+ "%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)",
141
+ h
142
+ ));
143
+ }
144
+ _.isReactWarning = !0, Object.defineProperty(c, "key", {
145
+ get: _,
146
+ configurable: !0
147
+ });
148
+ }
149
+ function u() {
150
+ var c = t(this.type);
151
+ return de[c] || (de[c] = !0, console.error(
152
+ "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."
153
+ )), c = this.props.ref, c !== void 0 ? c : null;
154
+ }
155
+ function d(c, h, _, L, pe, xe) {
156
+ var A = _.ref;
157
+ return c = {
158
+ $$typeof: C,
159
+ type: c,
160
+ key: h,
161
+ props: _,
162
+ _owner: L
163
+ }, (A !== void 0 ? A : null) !== null ? Object.defineProperty(c, "ref", {
164
+ enumerable: !1,
165
+ get: u
166
+ }) : Object.defineProperty(c, "ref", { enumerable: !1, value: null }), c._store = {}, Object.defineProperty(c._store, "validated", {
429
167
  configurable: !1,
430
168
  enumerable: !1,
431
169
  writable: !0,
432
- value: !1
433
- }), Object.defineProperty(v, "_self", {
170
+ value: 0
171
+ }), Object.defineProperty(c, "_debugInfo", {
434
172
  configurable: !1,
435
173
  enumerable: !1,
436
- writable: !1,
437
- value: y
438
- }), Object.defineProperty(v, "_source", {
174
+ writable: !0,
175
+ value: null
176
+ }), Object.defineProperty(c, "_debugStack", {
439
177
  configurable: !1,
440
178
  enumerable: !1,
441
- writable: !1,
442
- value: S
443
- }), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
444
- };
445
- function dn(n, s, p, y, S) {
446
- {
447
- var _, $ = {}, v = null, N = null;
448
- p !== void 0 && (rt(p), v = "" + p), rn(s) && (rt(s.key), v = "" + s.key), an(s) && (N = s.ref, ln(s, S));
449
- for (_ in s)
450
- me.call(s, _) && !on.hasOwnProperty(_) && ($[_] = s[_]);
451
- if (n && n.defaultProps) {
452
- var z = n.defaultProps;
453
- for (_ in z)
454
- $[_] === void 0 && ($[_] = z[_]);
455
- }
456
- if (v || N) {
457
- var B = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
458
- v && cn($, B), N && sn($, B);
459
- }
460
- return un(n, v, N, S, y, lt.current, $);
461
- }
462
- }
463
- var Ie = R.ReactCurrentOwner, ut = R.ReactDebugCurrentFrame;
464
- function ue(n) {
465
- if (n) {
466
- var s = n._owner, p = Ce(n.type, n._source, s ? s.type : null);
467
- ut.setExtraStackFrame(p);
468
- } else
469
- ut.setExtraStackFrame(null);
470
- }
471
- var Fe;
472
- Fe = !1;
473
- function Ne(n) {
474
- return typeof n == "object" && n !== null && n.$$typeof === e;
475
- }
476
- function dt() {
477
- {
478
- if (Ie.current) {
479
- var n = J(Ie.current.type);
480
- if (n)
481
- return `
482
-
483
- Check the render method of \`` + n + "`.";
484
- }
485
- return "";
486
- }
487
- }
488
- function fn(n) {
489
- return "";
490
- }
491
- var ft = {};
492
- function pn(n) {
493
- {
494
- var s = dt();
495
- if (!s) {
496
- var p = typeof n == "string" ? n : n.displayName || n.name;
497
- p && (s = `
498
-
499
- Check the top-level render call using <` + p + ">.");
500
- }
501
- return s;
502
- }
503
- }
504
- function pt(n, s) {
505
- {
506
- if (!n._store || n._store.validated || n.key != null)
507
- return;
508
- n._store.validated = !0;
509
- var p = pn(s);
510
- if (ft[p])
511
- return;
512
- ft[p] = !0;
513
- var y = "";
514
- n && n._owner && n._owner !== Ie.current && (y = " It was passed a child from " + J(n._owner.type) + "."), ue(n), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, y), ue(null);
515
- }
516
- }
517
- function gt(n, s) {
518
- {
519
- if (typeof n != "object")
520
- return;
521
- if (Re(n))
522
- for (var p = 0; p < n.length; p++) {
523
- var y = n[p];
524
- Ne(y) && pt(y, s);
525
- }
526
- else if (Ne(n))
527
- n._store && (n._store.validated = !0);
528
- else if (n) {
529
- var S = Q(n);
530
- if (typeof S == "function" && S !== n.entries)
531
- for (var _ = S.call(n), $; !($ = _.next()).done; )
532
- Ne($.value) && pt($.value, s);
533
- }
534
- }
535
- }
536
- function gn(n) {
537
- {
538
- var s = n.type;
539
- if (s == null || typeof s == "string")
540
- return;
541
- var p;
542
- if (typeof s == "function")
543
- p = s.propTypes;
544
- else if (typeof s == "object" && (s.$$typeof === u || // Note: Memo only checks outer props here.
545
- // Inner props are checked in the reconciler.
546
- s.$$typeof === k))
547
- p = s.propTypes;
548
- else
549
- return;
550
- if (p) {
551
- var y = J(s);
552
- Xt(p, n.props, "prop", y, n);
553
- } else if (s.PropTypes !== void 0 && !Fe) {
554
- Fe = !0;
555
- var S = J(s);
556
- b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
557
- }
558
- typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
559
- }
560
- }
561
- function hn(n) {
562
- {
563
- for (var s = Object.keys(n.props), p = 0; p < s.length; p++) {
564
- var y = s[p];
565
- if (y !== "children" && y !== "key") {
566
- ue(n), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), ue(null);
567
- break;
568
- }
569
- }
570
- n.ref !== null && (ue(n), b("Invalid attribute `ref` supplied to `React.Fragment`."), ue(null));
571
- }
572
- }
573
- var ht = {};
574
- function mt(n, s, p, y, S, _) {
575
- {
576
- var $ = Me(n);
577
- if (!$) {
578
- var v = "";
579
- (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (v += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
580
- var N = fn();
581
- N ? v += N : v += dt();
582
- var z;
583
- n === null ? z = "null" : Re(n) ? z = "array" : n !== void 0 && n.$$typeof === e ? (z = "<" + (J(n.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : z = typeof n, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, v);
584
- }
585
- var B = dn(n, s, p, S, _);
586
- if (B == null)
587
- return B;
588
- if ($) {
589
- var V = s.children;
590
- if (V !== void 0)
591
- if (y)
592
- if (Re(V)) {
593
- for (var de = 0; de < V.length; de++)
594
- gt(V[de], n);
595
- Object.freeze && Object.freeze(V);
596
- } else
597
- b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
598
- else
599
- gt(V, n);
600
- }
601
- if (me.call(s, "key")) {
602
- var le = J(n), D = Object.keys(s).filter(function(xn) {
603
- return xn !== "key";
604
- }), De = D.length > 0 ? "{key: someKey, " + D.join(": ..., ") + ": ...}" : "{key: someKey}";
605
- if (!ht[le + De]) {
606
- var vn = D.length > 0 ? "{" + D.join(": ..., ") + ": ...}" : "{}";
607
- b(`A props object containing a "key" prop is being spread into JSX:
179
+ writable: !0,
180
+ value: pe
181
+ }), Object.defineProperty(c, "_debugTask", {
182
+ configurable: !1,
183
+ enumerable: !1,
184
+ writable: !0,
185
+ value: xe
186
+ }), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
187
+ }
188
+ function g(c, h, _, L, pe, xe) {
189
+ var A = h.children;
190
+ if (A !== void 0)
191
+ if (L)
192
+ if (ye(A)) {
193
+ for (L = 0; L < A.length; L++)
194
+ b(A[L]);
195
+ Object.freeze && Object.freeze(A);
196
+ } else
197
+ console.error(
198
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
199
+ );
200
+ else b(A);
201
+ if (se.call(h, "key")) {
202
+ A = t(c);
203
+ var X = Object.keys(h).filter(function(ut) {
204
+ return ut !== "key";
205
+ });
206
+ L = 0 < X.length ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}", Me[A + L] || (X = 0 < X.length ? "{" + X.join(": ..., ") + ": ...}" : "{}", console.error(
207
+ `A props object containing a "key" prop is being spread into JSX:
608
208
  let props = %s;
609
209
  <%s {...props} />
610
210
  React keys must be passed directly to JSX without using spread:
611
211
  let props = %s;
612
- <%s key={someKey} {...props} />`, De, le, vn, le), ht[le + De] = !0;
613
- }
614
- }
615
- return n === r ? hn(B) : gn(B), B;
616
- }
212
+ <%s key={someKey} {...props} />`,
213
+ L,
214
+ A,
215
+ X,
216
+ A
217
+ ), Me[A + L] = !0);
218
+ }
219
+ if (A = null, _ !== void 0 && (n(_), A = "" + _), r(h) && (n(h.key), A = "" + h.key), "key" in h) {
220
+ _ = {};
221
+ for (var $e in h)
222
+ $e !== "key" && (_[$e] = h[$e]);
223
+ } else _ = h;
224
+ return A && p(
225
+ _,
226
+ typeof c == "function" ? c.displayName || c.name || "Unknown" : c
227
+ ), d(
228
+ c,
229
+ A,
230
+ _,
231
+ a(),
232
+ pe,
233
+ xe
234
+ );
617
235
  }
618
- function mn(n, s, p) {
619
- return mt(n, s, p, !0);
236
+ function b(c) {
237
+ m(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof === z && (c._payload.status === "fulfilled" ? m(c._payload.value) && c._payload.value._store && (c._payload.value._store.validated = 1) : c._store && (c._store.validated = 1));
620
238
  }
621
- function yn(n, s, p) {
622
- return mt(n, s, p, !1);
239
+ function m(c) {
240
+ return typeof c == "object" && c !== null && c.$$typeof === C;
623
241
  }
624
- var wn = yn, bn = mn;
625
- we.Fragment = r, we.jsx = wn, we.jsxs = bn;
626
- }()), we;
242
+ var w = f, C = Symbol.for("react.transitional.element"), B = Symbol.for("react.portal"), F = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), $ = Symbol.for("react.consumer"), E = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), Q = Symbol.for("react.suspense"), te = Symbol.for("react.suspense_list"), V = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), we = Symbol.for("react.activity"), ne = Symbol.for("react.client.reference"), K = w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, se = Object.prototype.hasOwnProperty, ye = Array.isArray, oe = console.createTask ? console.createTask : function() {
243
+ return null;
244
+ };
245
+ w = {
246
+ react_stack_bottom_frame: function(c) {
247
+ return c();
248
+ }
249
+ };
250
+ var ue, de = {}, S = w.react_stack_bottom_frame.bind(
251
+ w,
252
+ l
253
+ )(), be = oe(i(l)), Me = {};
254
+ ie.Fragment = F, ie.jsx = function(c, h, _) {
255
+ var L = 1e4 > K.recentlyCreatedOwnerStacks++;
256
+ return g(
257
+ c,
258
+ h,
259
+ _,
260
+ !1,
261
+ L ? Error("react-stack-top-frame") : S,
262
+ L ? oe(i(c)) : be
263
+ );
264
+ }, ie.jsxs = function(c, h, _) {
265
+ var L = 1e4 > K.recentlyCreatedOwnerStacks++;
266
+ return g(
267
+ c,
268
+ h,
269
+ _,
270
+ !0,
271
+ L ? Error("react-stack-top-frame") : S,
272
+ L ? oe(i(c)) : be
273
+ );
274
+ };
275
+ }()), ie;
627
276
  }
628
- process.env.NODE_ENV === "production" ? Je.exports = Sn() : Je.exports = _n();
629
- var a = Je.exports;
630
- const d = "https://cdn.casbin.org", P = {
277
+ process.env.NODE_ENV === "production" ? Ae.exports = ft() : Ae.exports = gt();
278
+ var o = Ae.exports;
279
+ const s = "https://cdn.casbin.org", M = {
631
280
  casdoor: "https://casdoor",
632
281
  springmicro: void 0
633
282
  };
634
- function Cn() {
283
+ function ht() {
635
284
  return "en";
636
285
  }
637
- function te() {
286
+ function G() {
638
287
  return "en;q=0.9,en;q=0.8";
639
288
  }
640
- function G(t, e) {
289
+ function P(t, e) {
641
290
  alert(e);
642
291
  }
643
- function En(t) {
292
+ function mt(t) {
644
293
  t !== void 0 && (window.location.href = t);
645
294
  }
646
- function Pt(t) {
295
+ function Ke(t) {
647
296
  return !(t.provider === void 0 || t.provider === null || !["OAuth", "SAML", "Web3"].includes(t.provider.category) || t.provider.type === "WeChatMiniProgram");
648
297
  }
649
- function jn(t) {
650
- return Pt(t) && t.prompted;
298
+ function wt(t) {
299
+ return Ke(t) && t.prompted;
651
300
  }
652
- function Ln(t) {
301
+ function yt(t) {
653
302
  return t.visible && t.prompted;
654
303
  }
655
- function Tn(t) {
304
+ function bt(t) {
656
305
  var e;
657
306
  return (e = t.providers) == null ? void 0 : e.filter(
658
- (o) => jn(o)
307
+ (n) => wt(n)
659
308
  );
660
309
  }
661
- function An(t) {
310
+ function xt(t) {
662
311
  var e;
663
312
  return (e = t.signupItems) == null ? void 0 : e.filter(
664
- (o) => Ln(o)
313
+ (n) => yt(n)
665
314
  );
666
315
  }
667
- function Mn(t, e) {
668
- var r;
669
- const o = (r = t.signupItems) == null ? void 0 : r.filter(
670
- (i) => i.name === e
316
+ function $t(t, e) {
317
+ var i;
318
+ const n = (i = t.signupItems) == null ? void 0 : i.filter(
319
+ (a) => a.name === e
671
320
  );
672
- return (o == null ? void 0 : o.length) ?? !1 ? o[0] : null;
321
+ return (n == null ? void 0 : n.length) ?? !1 ? n[0] : null;
673
322
  }
674
- function zn(t) {
675
- const e = Mn(t, "Affiliation");
323
+ function kt(t) {
324
+ const e = $t(t, "Affiliation");
676
325
  return e === null ? !1 : e.prompted;
677
326
  }
678
- function bt(t) {
327
+ function Ne(t) {
679
328
  return /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t);
680
329
  }
681
- function Te(t, e) {
682
- return t && t.signinMethods ? t.signinMethods.filter((o) => o.name === e).length > 0 : !1;
330
+ function he(t, e) {
331
+ return t && t.signinMethods ? t.signinMethods.filter((n) => n.name === e).length > 0 : !1;
683
332
  }
684
- function On(t) {
685
- return Te(t, "Password");
333
+ function vt(t) {
334
+ return he(t, "Password");
686
335
  }
687
- function Bn(t) {
688
- return Te(t, "Verification code");
336
+ function St(t) {
337
+ return he(t, "Verification code");
689
338
  }
690
- function Pn(t) {
691
- return Te(t, "WebAuthn");
339
+ function _t(t) {
340
+ return he(t, "WebAuthn");
692
341
  }
693
- function Rn(t) {
694
- return Te(t, "LDAP");
342
+ function Ct(t) {
343
+ return he(t, "LDAP");
695
344
  }
696
- function In(t) {
697
- const e = Tn(t);
345
+ function Et(t) {
346
+ const e = bt(t);
698
347
  if ((e == null ? void 0 : e.length) ?? !1)
699
348
  return !0;
700
- const o = An(t);
701
- return (o == null ? void 0 : o.length) ?? !1 ? !0 : zn(t);
349
+ const n = xt(t);
350
+ return (n == null ? void 0 : n.length) ?? !1 ? !0 : kt(t);
702
351
  }
703
- function se(t) {
352
+ function Z(t) {
704
353
  if (t.type === "Custom" && t.customLogo)
705
354
  return t.customLogo;
706
355
  if (t.category === "OAuth")
707
- return `${d}/img/social_${t.type.toLowerCase()}.png`;
356
+ return `${s}/img/social_${t.type.toLowerCase()}.png`;
708
357
  {
709
- const e = Fn[t.category][t.type];
358
+ const e = jt[t.category][t.type];
710
359
  return e ? e.logo : "";
711
360
  }
712
361
  }
713
- const Fn = {
362
+ const jt = {
714
363
  SMS: {
715
364
  "Aliyun SMS": {
716
- logo: `${d}/img/social_aliyun.png`,
365
+ logo: `${s}/img/social_aliyun.png`,
717
366
  url: "https://aliyun.com/product/sms"
718
367
  },
719
368
  "Amazon SNS": {
720
- logo: `${d}/img/social_aws.png`,
369
+ logo: `${s}/img/social_aws.png`,
721
370
  url: "https://aws.amazon.com/cn/sns/"
722
371
  },
723
372
  "Azure ACS": {
724
- logo: `${d}/img/social_azure.png`,
373
+ logo: `${s}/img/social_azure.png`,
725
374
  url: "https://azure.microsoft.com/en-us/products/communication-services"
726
375
  },
727
376
  "Infobip SMS": {
728
- logo: `${d}/img/social_infobip.png`,
377
+ logo: `${s}/img/social_infobip.png`,
729
378
  url: "https://portal.infobip.com/homepage/"
730
379
  },
731
380
  "Tencent Cloud SMS": {
732
- logo: `${d}/img/social_tencent_cloud.jpg`,
381
+ logo: `${s}/img/social_tencent_cloud.jpg`,
733
382
  url: "https://cloud.tencent.com/product/sms"
734
383
  },
735
384
  "Baidu Cloud SMS": {
736
- logo: `${d}/img/social_baidu_cloud.png`,
385
+ logo: `${s}/img/social_baidu_cloud.png`,
737
386
  url: "https://cloud.baidu.com/product/sms.html"
738
387
  },
739
388
  "Volc Engine SMS": {
740
- logo: `${d}/img/social_volc_engine.jpg`,
389
+ logo: `${s}/img/social_volc_engine.jpg`,
741
390
  url: "https://www.volcengine.com/products/cloud-sms"
742
391
  },
743
392
  "Huawei Cloud SMS": {
744
- logo: `${d}/img/social_huawei.png`,
393
+ logo: `${s}/img/social_huawei.png`,
745
394
  url: "https://www.huaweicloud.com/product/msgsms.html"
746
395
  },
747
396
  "UCloud SMS": {
748
- logo: `${d}/img/social_ucloud.png`,
397
+ logo: `${s}/img/social_ucloud.png`,
749
398
  url: "https://www.ucloud.cn/site/product/usms.html"
750
399
  },
751
400
  "Twilio SMS": {
752
- logo: `${d}/img/social_twilio.svg`,
401
+ logo: `${s}/img/social_twilio.svg`,
753
402
  url: "https://www.twilio.com/messaging"
754
403
  },
755
404
  "SmsBao SMS": {
756
- logo: `${d}/img/social_smsbao.png`,
405
+ logo: `${s}/img/social_smsbao.png`,
757
406
  url: "https://www.smsbao.com/"
758
407
  },
759
408
  "SUBMAIL SMS": {
760
- logo: `${d}/img/social_submail.svg`,
409
+ logo: `${s}/img/social_submail.svg`,
761
410
  url: "https://www.mysubmail.com"
762
411
  },
763
412
  "Msg91 SMS": {
764
- logo: `${d}/img/social_msg91.ico`,
413
+ logo: `${s}/img/social_msg91.ico`,
765
414
  url: "https://control.msg91.com/app/"
766
415
  },
767
416
  "OSON SMS": {
@@ -769,47 +418,47 @@ const Fn = {
769
418
  url: "https://osonsms.com/"
770
419
  },
771
420
  "Custom HTTP SMS": {
772
- logo: `${d}/img/social_default.png`,
421
+ logo: `${s}/img/social_default.png`,
773
422
  url: "https://casdoor.org/docs/provider/sms/overview"
774
423
  },
775
424
  "Mock SMS": {
776
- logo: `${d}/img/social_default.png`,
425
+ logo: `${s}/img/social_default.png`,
777
426
  url: ""
778
427
  }
779
428
  },
780
429
  Email: {
781
430
  Default: {
782
- logo: `${d}/img/email_default.png`,
431
+ logo: `${s}/img/email_default.png`,
783
432
  url: ""
784
433
  },
785
434
  SUBMAIL: {
786
- logo: `${d}/img/social_submail.svg`,
435
+ logo: `${s}/img/social_submail.svg`,
787
436
  url: "https://www.mysubmail.com"
788
437
  },
789
438
  Mailtrap: {
790
- logo: `${d}/img/email_mailtrap.png`,
439
+ logo: `${s}/img/email_mailtrap.png`,
791
440
  url: "https://mailtrap.io"
792
441
  },
793
442
  "Azure ACS": {
794
- logo: `${d}/img/social_azure.png`,
443
+ logo: `${s}/img/social_azure.png`,
795
444
  url: "https://learn.microsoft.com/zh-cn/azure/communication-services"
796
445
  },
797
446
  SendGrid: {
798
- logo: `${d}/img/email_sendgrid.png`,
447
+ logo: `${s}/img/email_sendgrid.png`,
799
448
  url: "https://sendgrid.com/"
800
449
  },
801
450
  "Custom HTTP Email": {
802
- logo: `${d}/img/social_default.png`,
451
+ logo: `${s}/img/social_default.png`,
803
452
  url: "https://casdoor.org/docs/provider/email/overview"
804
453
  }
805
454
  },
806
455
  Storage: {
807
456
  "Local File System": {
808
- logo: `${d}/img/social_file.png`,
457
+ logo: `${s}/img/social_file.png`,
809
458
  url: ""
810
459
  },
811
460
  "AWS S3": {
812
- logo: `${d}/img/social_aws.png`,
461
+ logo: `${s}/img/social_aws.png`,
813
462
  url: "https://aws.amazon.com/s3"
814
463
  },
815
464
  MinIO: {
@@ -817,267 +466,267 @@ const Fn = {
817
466
  url: "https://min.io/"
818
467
  },
819
468
  "Aliyun OSS": {
820
- logo: `${d}/img/social_aliyun.png`,
469
+ logo: `${s}/img/social_aliyun.png`,
821
470
  url: "https://aliyun.com/product/oss"
822
471
  },
823
472
  "Tencent Cloud COS": {
824
- logo: `${d}/img/social_tencent_cloud.jpg`,
473
+ logo: `${s}/img/social_tencent_cloud.jpg`,
825
474
  url: "https://cloud.tencent.com/product/cos"
826
475
  },
827
476
  "Azure Blob": {
828
- logo: `${d}/img/social_azure.png`,
477
+ logo: `${s}/img/social_azure.png`,
829
478
  url: "https://azure.microsoft.com/en-us/services/storage/blobs/"
830
479
  },
831
480
  "Qiniu Cloud Kodo": {
832
- logo: `${d}/img/social_qiniu_cloud.png`,
481
+ logo: `${s}/img/social_qiniu_cloud.png`,
833
482
  url: "https://www.qiniu.com/solutions/storage"
834
483
  },
835
484
  "Google Cloud Storage": {
836
- logo: `${d}/img/social_google_cloud.png`,
485
+ logo: `${s}/img/social_google_cloud.png`,
837
486
  url: "https://cloud.google.com/storage"
838
487
  },
839
488
  Synology: {
840
- logo: `${d}/img/social_synology.png`,
489
+ logo: `${s}/img/social_synology.png`,
841
490
  url: "https://www.synology.com/en-global/dsm/feature/file_sharing"
842
491
  }
843
492
  },
844
493
  SAML: {
845
494
  "Aliyun IDaaS": {
846
- logo: `${d}/img/social_aliyun.png`,
495
+ logo: `${s}/img/social_aliyun.png`,
847
496
  url: "https://aliyun.com/product/idaas"
848
497
  },
849
498
  Keycloak: {
850
- logo: `${d}/img/social_keycloak.png`,
499
+ logo: `${s}/img/social_keycloak.png`,
851
500
  url: "https://www.keycloak.org/"
852
501
  },
853
502
  Custom: {
854
- logo: `${d}/img/social_custom.png`,
503
+ logo: `${s}/img/social_custom.png`,
855
504
  url: "https://door.casdoor.com/"
856
505
  }
857
506
  },
858
507
  Payment: {
859
508
  Dummy: {
860
- logo: `${d}/img/payment_paypal.png`,
509
+ logo: `${s}/img/payment_paypal.png`,
861
510
  url: ""
862
511
  },
863
512
  Alipay: {
864
- logo: `${d}/img/payment_alipay.png`,
513
+ logo: `${s}/img/payment_alipay.png`,
865
514
  url: "https://www.alipay.com/"
866
515
  },
867
516
  "WeChat Pay": {
868
- logo: `${d}/img/payment_wechat_pay.png`,
517
+ logo: `${s}/img/payment_wechat_pay.png`,
869
518
  url: "https://pay.weixin.qq.com/"
870
519
  },
871
520
  PayPal: {
872
- logo: `${d}/img/payment_paypal.png`,
521
+ logo: `${s}/img/payment_paypal.png`,
873
522
  url: "https://www.paypal.com/"
874
523
  },
875
524
  Stripe: {
876
- logo: `${d}/img/social_stripe.png`,
525
+ logo: `${s}/img/social_stripe.png`,
877
526
  url: "https://stripe.com/"
878
527
  },
879
528
  GC: {
880
- logo: `${d}/img/payment_gc.png`,
529
+ logo: `${s}/img/payment_gc.png`,
881
530
  url: "https://gc.org"
882
531
  }
883
532
  },
884
533
  Captcha: {
885
534
  Default: {
886
- logo: `${d}/img/captcha_default.png`,
535
+ logo: `${s}/img/captcha_default.png`,
887
536
  url: "https://pkg.go.dev/github.com/dchest/captcha"
888
537
  },
889
538
  reCAPTCHA: {
890
- logo: `${d}/img/social_recaptcha.png`,
539
+ logo: `${s}/img/social_recaptcha.png`,
891
540
  url: "https://www.google.com/recaptcha"
892
541
  },
893
542
  hCaptcha: {
894
- logo: `${d}/img/social_hcaptcha.png`,
543
+ logo: `${s}/img/social_hcaptcha.png`,
895
544
  url: "https://www.hcaptcha.com"
896
545
  },
897
546
  "Aliyun Captcha": {
898
- logo: `${d}/img/social_aliyun.png`,
547
+ logo: `${s}/img/social_aliyun.png`,
899
548
  url: "https://help.aliyun.com/product/28308.html"
900
549
  },
901
550
  GEETEST: {
902
- logo: `${d}/img/social_geetest.png`,
551
+ logo: `${s}/img/social_geetest.png`,
903
552
  url: "https://www.geetest.com"
904
553
  },
905
554
  "Cloudflare Turnstile": {
906
- logo: `${d}/img/social_cloudflare.png`,
555
+ logo: `${s}/img/social_cloudflare.png`,
907
556
  url: "https://www.cloudflare.com/products/turnstile/"
908
557
  }
909
558
  },
910
559
  AI: {
911
560
  "OpenAI API - GPT": {
912
- logo: `${d}/img/social_openai.svg`,
561
+ logo: `${s}/img/social_openai.svg`,
913
562
  url: "https://platform.openai.com"
914
563
  }
915
564
  },
916
565
  Web3: {
917
566
  MetaMask: {
918
- logo: `${d}/img/social_metamask.svg`,
567
+ logo: `${s}/img/social_metamask.svg`,
919
568
  url: "https://metamask.io/"
920
569
  },
921
570
  Web3Onboard: {
922
- logo: `${d}/img/social_web3onboard.svg`,
571
+ logo: `${s}/img/social_web3onboard.svg`,
923
572
  url: "https://onboard.blocknative.com/"
924
573
  }
925
574
  },
926
575
  Notification: {
927
576
  Telegram: {
928
- logo: `${d}/img/social_telegram.png`,
577
+ logo: `${s}/img/social_telegram.png`,
929
578
  url: "https://telegram.org/"
930
579
  },
931
580
  "Custom HTTP": {
932
- logo: `${d}/img/email_default.png`,
581
+ logo: `${s}/img/email_default.png`,
933
582
  url: "https://casdoor.org/docs/provider/notification/overview"
934
583
  },
935
584
  DingTalk: {
936
- logo: `${d}/img/social_dingtalk.png`,
585
+ logo: `${s}/img/social_dingtalk.png`,
937
586
  url: "https://www.dingtalk.com/"
938
587
  },
939
588
  Lark: {
940
- logo: `${d}/img/social_lark.png`,
589
+ logo: `${s}/img/social_lark.png`,
941
590
  url: "https://www.larksuite.com/"
942
591
  },
943
592
  "Microsoft Teams": {
944
- logo: `${d}/img/social_teams.png`,
593
+ logo: `${s}/img/social_teams.png`,
945
594
  url: "https://www.microsoft.com/microsoft-teams"
946
595
  },
947
596
  Bark: {
948
- logo: `${d}/img/social_bark.png`,
597
+ logo: `${s}/img/social_bark.png`,
949
598
  url: "https://apps.apple.com/us/app/bark-customed-notifications/id1403753865"
950
599
  },
951
600
  Pushover: {
952
- logo: `${d}/img/social_pushover.png`,
601
+ logo: `${s}/img/social_pushover.png`,
953
602
  url: "https://pushover.net/"
954
603
  },
955
604
  Pushbullet: {
956
- logo: `${d}/img/social_pushbullet.png`,
605
+ logo: `${s}/img/social_pushbullet.png`,
957
606
  url: "https://www.pushbullet.com/"
958
607
  },
959
608
  Slack: {
960
- logo: `${d}/img/social_slack.png`,
609
+ logo: `${s}/img/social_slack.png`,
961
610
  url: "https://slack.com/"
962
611
  },
963
612
  Webpush: {
964
- logo: `${d}/img/email_default.png`,
613
+ logo: `${s}/img/email_default.png`,
965
614
  url: "https://developer.mozilla.org/en-US/docs/Web/API/Push_API"
966
615
  },
967
616
  Discord: {
968
- logo: `${d}/img/social_discord.png`,
617
+ logo: `${s}/img/social_discord.png`,
969
618
  url: "https://discord.com/"
970
619
  },
971
620
  "Google Chat": {
972
- logo: `${d}/img/social_google_chat.png`,
621
+ logo: `${s}/img/social_google_chat.png`,
973
622
  url: "https://workspace.google.com/intl/en/products/chat/"
974
623
  },
975
624
  Line: {
976
- logo: `${d}/img/social_line.png`,
625
+ logo: `${s}/img/social_line.png`,
977
626
  url: "https://line.me/"
978
627
  },
979
628
  Matrix: {
980
- logo: `${d}/img/social_matrix.png`,
629
+ logo: `${s}/img/social_matrix.png`,
981
630
  url: "https://www.matrix.org/"
982
631
  },
983
632
  Twitter: {
984
- logo: `${d}/img/social_twitter.png`,
633
+ logo: `${s}/img/social_twitter.png`,
985
634
  url: "https://twitter.com/"
986
635
  },
987
636
  Reddit: {
988
- logo: `${d}/img/social_reddit.png`,
637
+ logo: `${s}/img/social_reddit.png`,
989
638
  url: "https://www.reddit.com/"
990
639
  },
991
640
  "Rocket Chat": {
992
- logo: `${d}/img/social_rocket_chat.png`,
641
+ logo: `${s}/img/social_rocket_chat.png`,
993
642
  url: "https://rocket.chat/"
994
643
  },
995
644
  Viber: {
996
- logo: `${d}/img/social_viber.png`,
645
+ logo: `${s}/img/social_viber.png`,
997
646
  url: "https://www.viber.com/"
998
647
  }
999
648
  }
1000
649
  };
1001
- function Nn(t = "") {
1002
- return fetch(`${P.casdoor}/api/get-account${t}`, {
650
+ function Lt(t = "") {
651
+ return fetch(`${M.casdoor}/api/get-account${t}`, {
1003
652
  method: "GET",
1004
653
  credentials: "include",
1005
654
  headers: {
1006
- "Accept-Language": te()
655
+ "Accept-Language": G()
1007
656
  }
1008
657
  }).then((e) => e.json());
1009
658
  }
1010
- function Dn(t) {
1011
- let e = `${P.casdoor}/api/signup`;
1012
- return P.springmicro && (e = `${P.springmicro}/api/accounts/users/register`), fetch(e, {
659
+ function At(t) {
660
+ let e = `${M.casdoor}/api/signup`;
661
+ return M.springmicro && (e = `${M.springmicro}/api/accounts/users/register`), fetch(e, {
1013
662
  method: "POST",
1014
663
  credentials: "include",
1015
664
  body: JSON.stringify(t),
1016
665
  headers: {
1017
- "Accept-Language": te(),
666
+ "Accept-Language": G(),
1018
667
  "Content-Type": "application/json"
1019
668
  }
1020
- }).then((o) => o.json());
669
+ }).then((n) => n.json());
1021
670
  }
1022
- function Un(t) {
671
+ function zt(t) {
1023
672
  return `?type=${t == null ? void 0 : t.type}&id=${t == null ? void 0 : t.id}&redirectUri=${t == null ? void 0 : t.service}`;
1024
673
  }
1025
- function Wn(t) {
674
+ function Mt(t) {
1026
675
  return t == null ? "" : `?clientId=${t.clientId}&responseType=${t.responseType}&redirectUri=${encodeURIComponent(t.redirectUri)}&type=${t.type}&scope=${t.scope}&state=${t.state}&nonce=${t.nonce}&code_challenge_method=${t.challengeMethod}&code_challenge=${t.codeChallenge}`;
1027
676
  }
1028
- function Rt(t) {
1029
- const e = (t == null ? void 0 : t.type) === "cas" ? Un(t) : Wn(t);
1030
- return fetch(`${P.casdoor}/api/get-app-login${e}`, {
677
+ function Xe(t) {
678
+ const e = (t == null ? void 0 : t.type) === "cas" ? zt(t) : Mt(t);
679
+ return fetch(`${M.casdoor}/api/get-app-login${e}`, {
1031
680
  method: "GET",
1032
681
  credentials: "include",
1033
682
  headers: {
1034
- "Accept-Language": te()
683
+ "Accept-Language": G()
1035
684
  }
1036
- }).then((o) => o.json());
685
+ }).then((n) => n.json());
1037
686
  }
1038
- function Hn(t, e) {
687
+ function Tt(t, e) {
1039
688
  return fetch(
1040
- `${P.casdoor}/api/get-saml-login?id=${t}&relayState=${e}`,
689
+ `${M.casdoor}/api/get-saml-login?id=${t}&relayState=${e}`,
1041
690
  {
1042
691
  method: "GET",
1043
692
  credentials: "include",
1044
693
  headers: {
1045
- "Accept-Language": te()
694
+ "Accept-Language": G()
1046
695
  }
1047
696
  }
1048
- ).then((o) => o.json());
697
+ ).then((n) => n.json());
1049
698
  }
1050
- function Vn(t) {
1051
- return fetch(`${P.casdoor}/api/get-webhook-event?ticket=${t}`, {
699
+ function Bt(t) {
700
+ return fetch(`${M.casdoor}/api/get-webhook-event?ticket=${t}`, {
1052
701
  method: "GET",
1053
702
  credentials: "include",
1054
703
  headers: {
1055
- "Accept-Language": te()
704
+ "Accept-Language": G()
1056
705
  }
1057
706
  }).then((e) => e.json());
1058
707
  }
1059
- function Gn(t) {
1060
- return fetch(`${P.casdoor}/api/get-qrcode?id=${t}`, {
708
+ function Nt(t) {
709
+ return fetch(`${M.casdoor}/api/get-qrcode?id=${t}`, {
1061
710
  method: "GET",
1062
711
  credentials: "include",
1063
712
  headers: {
1064
- "Accept-Language": te()
713
+ "Accept-Language": G()
1065
714
  }
1066
715
  }).then((e) => e.json());
1067
716
  }
1068
- function Qe(t, e) {
717
+ function ze(t, e) {
1069
718
  return fetch(
1070
- `${P.casdoor}/api/get-application?id=${t}/${encodeURIComponent(e)}`,
719
+ `${M.casdoor}/api/get-application?id=${t}/${encodeURIComponent(e)}`,
1071
720
  {
1072
721
  method: "GET",
1073
- credentials: P.casdoor.startsWith("https") ? "include" : void 0,
722
+ credentials: M.casdoor.startsWith("https") ? "include" : void 0,
1074
723
  headers: {
1075
724
  "Content-Type": "application/json"
1076
725
  }
1077
726
  }
1078
- ).then((o) => o.json());
727
+ ).then((n) => n.json());
1079
728
  }
1080
- const ce = {
729
+ const J = {
1081
730
  Google: {
1082
731
  scope: "profile+email",
1083
732
  endpoint: "https://accounts.google.com/signin/oauth"
@@ -1390,533 +1039,533 @@ const ce = {
1390
1039
  endpoint: ""
1391
1040
  }
1392
1041
  };
1393
- function qn(t, e, o, r) {
1042
+ function Ot(t, e, n, i) {
1394
1043
  if (t === null || e === null)
1395
1044
  return "";
1396
- let i = ce[e.type].endpoint, l = `${window.location.origin}/callback`;
1397
- const c = ce[e.type].scope, g = e.type === "WeChat" && navigator.userAgent.includes("MicroMessenger") || e.type === "Twitter", u = Yn(
1045
+ let a = J[e.type].endpoint, l = `${window.location.origin}/callback`;
1046
+ const r = J[e.type].scope, p = e.type === "WeChat" && navigator.userAgent.includes("MicroMessenger") || e.type === "Twitter", u = It(
1398
1047
  t.name,
1399
1048
  e.name,
1400
- o,
1401
- g
1402
- ), f = "P3S-a7dr8bgM4bF6vOyiKkKETDl16rcAzao9F8UIL1Y";
1403
- if (e.type === "AzureAD" ? e.domain !== "" && (i = i.replace("common", e.domain)) : e.type === "Apple" && (l = `${window.location.origin}/api/callback`), e.type === "Google" || e.type === "GitHub" || e.type === "QQ" || e.type === "Facebook" || e.type === "Weibo" || e.type === "Gitee" || e.type === "LinkedIn" || e.type === "GitLab" || e.type === "AzureAD" || e.type === "Slack" || e.type === "Line" || e.type === "Amazon" || e.type === "Auth0" || e.type === "BattleNet" || e.type === "Bitbucket" || e.type === "Box" || e.type === "CloudFoundry" || e.type === "Dailymotion" || e.type === "DigitalOcean" || e.type === "Discord" || e.type === "Dropbox" || e.type === "EveOnline" || e.type === "Gitea" || e.type === "Heroku" || e.type === "InfluxCloud" || e.type === "Instagram" || e.type === "Intercom" || e.type === "Kakao" || e.type === "MailRu" || e.type === "Meetup" || e.type === "MicrosoftOnline" || e.type === "Naver" || e.type === "Nextcloud" || e.type === "OneDrive" || e.type === "Oura" || e.type === "Patreon" || e.type === "PayPal" || e.type === "SalesForce" || e.type === "SoundCloud" || e.type === "Spotify" || e.type === "Strava" || e.type === "Stripe" || e.type === "Tumblr" || e.type === "Twitch" || e.type === "Typetalk" || e.type === "Uber" || e.type === "VK" || e.type === "Wepay" || e.type === "Xero" || e.type === "Yahoo" || e.type === "Yammer" || e.type === "Yandex" || e.type === "Zoom")
1404
- return `${i}?client_id=${e.clientId}&redirect_uri=${l}&scope=${c}&response_type=code&state=${u}`;
1049
+ n,
1050
+ p
1051
+ ), d = "P3S-a7dr8bgM4bF6vOyiKkKETDl16rcAzao9F8UIL1Y";
1052
+ if (e.type === "AzureAD" ? e.domain !== "" && (a = a.replace("common", e.domain)) : e.type === "Apple" && (l = `${window.location.origin}/api/callback`), e.type === "Google" || e.type === "GitHub" || e.type === "QQ" || e.type === "Facebook" || e.type === "Weibo" || e.type === "Gitee" || e.type === "LinkedIn" || e.type === "GitLab" || e.type === "AzureAD" || e.type === "Slack" || e.type === "Line" || e.type === "Amazon" || e.type === "Auth0" || e.type === "BattleNet" || e.type === "Bitbucket" || e.type === "Box" || e.type === "CloudFoundry" || e.type === "Dailymotion" || e.type === "DigitalOcean" || e.type === "Discord" || e.type === "Dropbox" || e.type === "EveOnline" || e.type === "Gitea" || e.type === "Heroku" || e.type === "InfluxCloud" || e.type === "Instagram" || e.type === "Intercom" || e.type === "Kakao" || e.type === "MailRu" || e.type === "Meetup" || e.type === "MicrosoftOnline" || e.type === "Naver" || e.type === "Nextcloud" || e.type === "OneDrive" || e.type === "Oura" || e.type === "Patreon" || e.type === "PayPal" || e.type === "SalesForce" || e.type === "SoundCloud" || e.type === "Spotify" || e.type === "Strava" || e.type === "Stripe" || e.type === "Tumblr" || e.type === "Twitch" || e.type === "Typetalk" || e.type === "Uber" || e.type === "VK" || e.type === "Wepay" || e.type === "Xero" || e.type === "Yahoo" || e.type === "Yammer" || e.type === "Yandex" || e.type === "Zoom")
1053
+ return `${a}?client_id=${e.clientId}&redirect_uri=${l}&scope=${r}&response_type=code&state=${u}`;
1405
1054
  if (e.type === "AzureADB2C")
1406
1055
  return `https://${e.domain}.b2clogin.com/${e.domain}.onmicrosoft.com/${e.appId}/oauth2/v2.0/authorize?client_id=${e.clientId}&nonce=defaultNonce&redirect_uri=${encodeURIComponent(
1407
1056
  l
1408
- )}&scope=${c}&response_type=code&state=${u}&prompt=login`;
1057
+ )}&scope=${r}&response_type=code&state=${u}&prompt=login`;
1409
1058
  if (e.type === "DingTalk")
1410
- return `${i}?client_id=${e.clientId}&redirect_uri=${l}&scope=${c}&response_type=code&prompt=consent&state=${u}`;
1059
+ return `${a}?client_id=${e.clientId}&redirect_uri=${l}&scope=${r}&response_type=code&prompt=consent&state=${u}`;
1411
1060
  if (e.type === "WeChat")
1412
- return navigator.userAgent.includes("MicroMessenger") ? `${ce[e.type].mpEndpoint}?appid=${e.clientId2}&redirect_uri=${l}&state=${u}&scope=${ce[e.type].mpScope}&response_type=code#wechat_redirect` : e.clientId2 && (e != null && e.disableSsl) && (e == null ? void 0 : e.signName) === "media" ? `${window.location.origin}/callback?state=${u}&code=${"wechat_oa:" + r}` : `${i}?appid=${e.clientId}&redirect_uri=${l}&scope=${c}&response_type=code&state=${u}#wechat_redirect`;
1061
+ return navigator.userAgent.includes("MicroMessenger") ? `${J[e.type].mpEndpoint}?appid=${e.clientId2}&redirect_uri=${l}&state=${u}&scope=${J[e.type].mpScope}&response_type=code#wechat_redirect` : e.clientId2 && (e != null && e.disableSsl) && (e == null ? void 0 : e.signName) === "media" ? `${window.location.origin}/callback?state=${u}&code=${"wechat_oa:" + i}` : `${a}?appid=${e.clientId}&redirect_uri=${l}&scope=${r}&response_type=code&state=${u}#wechat_redirect`;
1413
1062
  if (e.type === "WeCom")
1414
- return e.subType === "Internal" ? e.method === "Silent" ? (i = ce[e.type].silentEndpoint, `${i}?appid=${e.clientId}&redirect_uri=${l}&state=${u}&scope=${c}&response_type=code#wechat_redirect`) : e.method === "Normal" ? (i = ce[e.type].internalEndpoint, `${i}?appid=${e.clientId}&agentid=${e.appId}&redirect_uri=${l}&state=${u}&usertype=member`) : `https://error:not-supported-provider-method:${e.method}` : e.subType === "Third-party" ? e.method === "Silent" ? (i = ce[e.type].silentEndpoint, `${i}?appid=${e.clientId}&redirect_uri=${l}&state=${u}&scope=${c}&response_type=code#wechat_redirect`) : e.method === "Normal" ? `${i}?appid=${e.clientId}&redirect_uri=${l}&state=${u}&usertype=member` : `https://error:not-supported-provider-method:${e.method}` : `https://error:not-supported-provider-sub-type:${e.subType}`;
1063
+ return e.subType === "Internal" ? e.method === "Silent" ? (a = J[e.type].silentEndpoint, `${a}?appid=${e.clientId}&redirect_uri=${l}&state=${u}&scope=${r}&response_type=code#wechat_redirect`) : e.method === "Normal" ? (a = J[e.type].internalEndpoint, `${a}?appid=${e.clientId}&agentid=${e.appId}&redirect_uri=${l}&state=${u}&usertype=member`) : `https://error:not-supported-provider-method:${e.method}` : e.subType === "Third-party" ? e.method === "Silent" ? (a = J[e.type].silentEndpoint, `${a}?appid=${e.clientId}&redirect_uri=${l}&state=${u}&scope=${r}&response_type=code#wechat_redirect`) : e.method === "Normal" ? `${a}?appid=${e.clientId}&redirect_uri=${l}&state=${u}&usertype=member` : `https://error:not-supported-provider-method:${e.method}` : `https://error:not-supported-provider-sub-type:${e.subType}`;
1415
1064
  if (e.type === "Lark")
1416
- return `${i}?app_id=${e.clientId}&redirect_uri=${l}&state=${u}`;
1065
+ return `${a}?app_id=${e.clientId}&redirect_uri=${l}&state=${u}`;
1417
1066
  if (e.type === "ADFS")
1418
1067
  return `${e.domain}/adfs/oauth2/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&nonce=casdoor&scope=openid`;
1419
1068
  if (e.type === "Baidu")
1420
- return `${i}?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&scope=${c}&display=popup`;
1069
+ return `${a}?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&scope=${r}&display=popup`;
1421
1070
  if (e.type === "Alipay")
1422
- return `${i}?app_id=${e.clientId}&scope=auth_user&redirect_uri=${l}&state=${u}&response_type=code&scope=${c}&display=popup`;
1071
+ return `${a}?app_id=${e.clientId}&scope=auth_user&redirect_uri=${l}&state=${u}&response_type=code&scope=${r}&display=popup`;
1423
1072
  if (e.type === "Casdoor")
1424
- return `${e.domain}/login/oauth/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&scope=${c}`;
1073
+ return `${e.domain}/login/oauth/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&scope=${r}`;
1425
1074
  if (e.type === "Infoflow")
1426
- return `${i}?appid=${e.clientId}&redirect_uri=${l}?state=${u}`;
1075
+ return `${a}?appid=${e.clientId}&redirect_uri=${l}?state=${u}`;
1427
1076
  if (e.type === "Apple")
1428
- return `${i}?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code%20id_token&scope=${c}&response_mode=form_post`;
1077
+ return `${a}?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code%20id_token&scope=${r}&response_mode=form_post`;
1429
1078
  if (e.type === "Steam")
1430
- return `${i}?openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns=http://specs.openid.net/auth/2.0&openid.realm=${window.location.origin}&openid.return_to=${l}?state=${u}`;
1079
+ return `${a}?openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns=http://specs.openid.net/auth/2.0&openid.realm=${window.location.origin}&openid.return_to=${l}?state=${u}`;
1431
1080
  if (e.type === "Okta")
1432
- return `${e.domain}/v1/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&scope=${c}`;
1081
+ return `${e.domain}/v1/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&scope=${r}`;
1433
1082
  if (e.type === "Douyin" || e.type === "TikTok")
1434
- return `${i}?client_key=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&scope=${c}`;
1083
+ return `${a}?client_key=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&scope=${r}`;
1435
1084
  if (e.type === "Custom")
1436
1085
  return `${e.customAuthUrl}?client_id=${e.clientId}&redirect_uri=${l}&scope=${e.scopes}&response_type=code&state=${u}`;
1437
1086
  if (e.type === "Bilibili")
1438
- return `${i}#/?client_id=${e.clientId}&return_url=${l}&state=${u}&response_type=code`;
1087
+ return `${a}#/?client_id=${e.clientId}&return_url=${l}&state=${u}&response_type=code`;
1439
1088
  if (e.type === "Deezer")
1440
- return `${i}?app_id=${e.clientId}&redirect_uri=${l}&perms=${c}`;
1089
+ return `${a}?app_id=${e.clientId}&redirect_uri=${l}&perms=${r}`;
1441
1090
  if (e.type === "Lastfm")
1442
- return `${i}?api_key=${e.clientId}&cb=${l}`;
1091
+ return `${a}?api_key=${e.clientId}&cb=${l}`;
1443
1092
  if (e.type === "Shopify")
1444
- return `${i}?client_id=${e.clientId}&redirect_uri=${l}&scope=${c}&state=${u}&grant_options[]=per-user`;
1093
+ return `${a}?client_id=${e.clientId}&redirect_uri=${l}&scope=${r}&state=${u}&grant_options[]=per-user`;
1445
1094
  if (e.type === "Twitter" || e.type === "Fitbit")
1446
- return `${i}?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&scope=${c}&code_challenge=${f}&code_challenge_method=S256`;
1095
+ return `${a}?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&scope=${r}&code_challenge=${d}&code_challenge_method=S256`;
1447
1096
  if (e.type === "MetaMask")
1448
1097
  return `${l}?state=${u}`;
1449
1098
  if (e.type === "Web3Onboard")
1450
1099
  return `${l}?state=${u}`;
1451
1100
  }
1452
- function q(t) {
1101
+ function R(t) {
1453
1102
  return t ?? "";
1454
1103
  }
1455
- function Ue(t) {
1456
- const o = window.location.href.split(`${t}=`)[1];
1457
- if (!o)
1104
+ function ke(t) {
1105
+ const n = window.location.href.split(`${t}=`)[1];
1106
+ if (!n)
1458
1107
  return "";
1459
- let r = o.split("&")[0];
1460
- return r ? (r = decodeURIComponent(r), r) : "";
1461
- }
1462
- function It(t) {
1463
- const e = new URLSearchParams(window.location.search), o = q(e.get("client_id")), r = q(e.get("response_type"));
1464
- let i = Ue("redirect_uri");
1465
- i === "" && (i = q(e.get("redirect_uri")));
1466
- let l = q(e.get("scope"));
1467
- i.includes("#") && l === "" && (l = Ue("scope"));
1468
- let c = q(e.get("state"));
1469
- c.startsWith("/auth/oauth2/login.php?wantsurl=") && (c = encodeURIComponent(c)), i.includes("#") && c === "" && (c = Ue("state"));
1470
- const g = q(e.get("nonce")), u = q(e.get("code_challenge_method")), f = q(e.get("code_challenge")), h = q(e.get("SAMLRequest")), k = q(e.get("RelayState")), w = q(e.get("noRedirect"));
1471
- return o === "" && h === "" ? null : {
1472
- clientId: o,
1473
- responseType: r,
1474
- redirectUri: i,
1108
+ let i = n.split("&")[0];
1109
+ return i ? (i = decodeURIComponent(i), i) : "";
1110
+ }
1111
+ function et(t) {
1112
+ const e = new URLSearchParams(window.location.search), n = R(e.get("client_id")), i = R(e.get("response_type"));
1113
+ let a = ke("redirect_uri");
1114
+ a === "" && (a = R(e.get("redirect_uri")));
1115
+ let l = R(e.get("scope"));
1116
+ a.includes("#") && l === "" && (l = ke("scope"));
1117
+ let r = R(e.get("state"));
1118
+ r.startsWith("/auth/oauth2/login.php?wantsurl=") && (r = encodeURIComponent(r)), a.includes("#") && r === "" && (r = ke("state"));
1119
+ const p = R(e.get("nonce")), u = R(e.get("code_challenge_method")), d = R(e.get("code_challenge")), g = R(e.get("SAMLRequest")), b = R(e.get("RelayState")), m = R(e.get("noRedirect"));
1120
+ return n === "" && g === "" ? null : {
1121
+ clientId: n,
1122
+ responseType: i,
1123
+ redirectUri: a,
1475
1124
  scope: l,
1476
- state: c,
1477
- nonce: g,
1125
+ state: r,
1126
+ nonce: p,
1478
1127
  challengeMethod: u,
1479
- codeChallenge: f,
1480
- samlRequest: h,
1481
- relayState: k,
1482
- noRedirect: w,
1128
+ codeChallenge: d,
1129
+ samlRequest: g,
1130
+ relayState: b,
1131
+ noRedirect: m,
1483
1132
  type: "code"
1484
1133
  };
1485
1134
  }
1486
- function Yn(t, e, o, r) {
1487
- let i = window.location.search;
1488
- if (i = `${i}&application=${encodeURIComponent(
1135
+ function It(t, e, n, i) {
1136
+ let a = window.location.search;
1137
+ if (a = `${a}&application=${encodeURIComponent(
1489
1138
  t
1490
- )}&provider=${encodeURIComponent(e)}&method=${o}`, o === "link" && (i = `${i}&from=${window.location.pathname}`), r) {
1139
+ )}&provider=${encodeURIComponent(e)}&method=${n}`, n === "link" && (a = `${a}&from=${window.location.pathname}`), i) {
1491
1140
  const l = e;
1492
- return sessionStorage.setItem(l, i), l;
1141
+ return sessionStorage.setItem(l, a), l;
1493
1142
  } else
1494
- return btoa(i);
1495
- }
1496
- function Kn(t, e, o, r) {
1497
- Vn(o).then((i) => {
1498
- if (i.data === "SCAN" || i.data === "subscribe") {
1499
- const l = i == null ? void 0 : i.data2;
1500
- En(
1501
- qn(t, e, r ?? "signup", l)
1143
+ return btoa(a);
1144
+ }
1145
+ function Pt(t, e, n, i) {
1146
+ Bt(n).then((a) => {
1147
+ if (a.data === "SCAN" || a.data === "subscribe") {
1148
+ const l = a == null ? void 0 : a.data2;
1149
+ mt(
1150
+ Ot(t, e, i ?? "signup", l)
1502
1151
  );
1503
1152
  }
1504
1153
  });
1505
1154
  }
1506
- async function Jn(t, e, o) {
1507
- document.addEventListener("click", function(i) {
1155
+ async function Ft(t, e, n) {
1156
+ document.addEventListener("click", function(a) {
1508
1157
  const l = document.getElementById("WechatOfficialAccountModal");
1509
- l && i.target === l && l.close();
1158
+ l && a.target === l && l.close();
1510
1159
  });
1511
- function r(i, l) {
1512
- function c() {
1513
- const h = document.getElementById("WechatOfficialAccountModal");
1514
- h && h.showModal();
1160
+ function i(a, l) {
1161
+ function r() {
1162
+ const g = document.getElementById("WechatOfficialAccountModal");
1163
+ g && g.showModal();
1515
1164
  }
1516
- function g() {
1165
+ function p() {
1517
1166
  window.clearInterval(l);
1518
- const h = document.getElementById("WechatOfficialAccountModal");
1519
- h && h.close();
1167
+ const g = document.getElementById("WechatOfficialAccountModal");
1168
+ g && g.close();
1520
1169
  }
1521
- window.closeDialog = g;
1170
+ window.closeDialog = p;
1522
1171
  const u = `
1523
1172
  <div style="margin-right: 34px;">
1524
- <img src="data:image/png;base64,${i.data}" alt="Wechat QR code" style="width: 100%;" />
1173
+ <img src="data:image/png;base64,${a.data}" alt="Wechat QR code" style="width: 100%;" />
1525
1174
  </div>
1526
1175
  <button onclick="window.closeDialog()">Close</button>
1527
- `, f = document.createElement("dialog");
1528
- f.innerHTML = u, f.id = "WechatOfficialAccountModal", document.body.appendChild(f), c();
1176
+ `, d = document.createElement("dialog");
1177
+ d.innerHTML = u, d.id = "WechatOfficialAccountModal", document.body.appendChild(d), r();
1529
1178
  }
1530
- Gn(`${e.owner}/${e.name}`).then(
1531
- async (i) => {
1532
- if (i.status !== "ok") {
1533
- G("error", i == null ? void 0 : i.msg);
1179
+ Nt(`${e.owner}/${e.name}`).then(
1180
+ async (a) => {
1181
+ if (a.status !== "ok") {
1182
+ P("error", a == null ? void 0 : a.msg);
1534
1183
  return;
1535
1184
  }
1536
1185
  const l = setInterval(
1537
- await Kn,
1186
+ await Pt,
1538
1187
  1e3,
1539
1188
  t,
1540
1189
  e,
1541
- i.data2,
1542
- o
1190
+ a.data2,
1191
+ n
1543
1192
  );
1544
- r(i, l);
1193
+ i(a, l);
1545
1194
  }
1546
1195
  );
1547
1196
  }
1548
- function Ft(t, e) {
1197
+ function tt(t, e) {
1549
1198
  return fetch(
1550
- `${P.casdoor}/api/get-invitation-info?code=${t}&applicationId=${encodeURIComponent(
1199
+ `${M.casdoor}/api/get-invitation-info?code=${t}&applicationId=${encodeURIComponent(
1551
1200
  e
1552
1201
  )}`,
1553
1202
  {
1554
1203
  method: "GET",
1555
1204
  credentials: "include",
1556
1205
  headers: {
1557
- "Accept-Language": te()
1206
+ "Accept-Language": G()
1558
1207
  }
1559
1208
  }
1560
- ).then((o) => o.json());
1209
+ ).then((n) => n.json());
1561
1210
  }
1562
- function Nt(t, e, o, r, i = "", l, c, g, u = "") {
1563
- const f = new FormData();
1564
- return f.append("captchaType", t), f.append("captchaToken", e), f.append("clientSecret", o), f.append("method", r), f.append("countryCode", i), f.append("dest", l), f.append("type", c), f.append("applicationId", "admin/" + g), f.append("checkUser", u), fetch(`${P.casdoor}/api/send-verification-code`, {
1211
+ function nt(t, e, n, i, a = "", l, r, p, u = "") {
1212
+ const d = new FormData();
1213
+ return d.append("captchaType", t), d.append("captchaToken", e), d.append("clientSecret", n), d.append("method", i), d.append("countryCode", a), d.append("dest", l), d.append("type", r), d.append("applicationId", "admin/" + p), d.append("checkUser", u), fetch(`${M.casdoor}/api/send-verification-code`, {
1565
1214
  method: "POST",
1566
- credentials: P.casdoor.startsWith("https") ? "include" : void 0,
1567
- body: f,
1215
+ credentials: M.casdoor.startsWith("https") ? "include" : void 0,
1216
+ body: d,
1568
1217
  headers: {
1569
1218
  // "Content-Type": "application/json",
1570
- "Accept-Language": te()
1219
+ "Accept-Language": G()
1571
1220
  }
1572
- }).then((h) => h.json()).then((h) => h.status === "ok" ? (G("success", "Verification code sent"), !0) : (G("error", h.msg), !1));
1221
+ }).then((g) => g.json()).then((g) => g.status === "ok" ? (P("success", "Verification code sent"), !0) : (P("error", g.msg), !1));
1573
1222
  }
1574
- function Dt(t, e, o) {
1223
+ function ot(t, e, n) {
1575
1224
  return fetch(
1576
- `${P.casdoor}/api/get-captcha?applicationId=${t}/${encodeURIComponent(
1225
+ `${M.casdoor}/api/get-captcha?applicationId=${t}/${encodeURIComponent(
1577
1226
  e
1578
- )}&isCurrentProvider=${o}`,
1227
+ )}&isCurrentProvider=${n}`,
1579
1228
  {
1580
1229
  method: "GET",
1581
1230
  headers: {
1582
- "Accept-Language": te()
1231
+ "Accept-Language": G()
1583
1232
  }
1584
1233
  }
1585
- ).then((r) => r.json()).then((r) => r.data);
1234
+ ).then((i) => i.json()).then((i) => i.data);
1586
1235
  }
1587
- const Qn = (t) => {
1236
+ const Rt = (t) => {
1588
1237
  const {
1589
1238
  captchaType: e,
1590
- subType: o,
1591
- siteKey: r,
1592
- clientSecret: i,
1239
+ subType: n,
1240
+ siteKey: i,
1241
+ clientSecret: a,
1593
1242
  clientId2: l,
1594
- clientSecret2: c,
1595
- onChange: g
1596
- } = t, u = (f) => {
1597
- const h = document.createElement("script");
1598
- h.async = !1, h.src = f, document.getElementsByTagName("body")[0].appendChild(h);
1243
+ clientSecret2: r,
1244
+ onChange: p
1245
+ } = t, u = (d) => {
1246
+ const g = document.createElement("script");
1247
+ g.async = !1, g.src = d, document.getElementsByTagName("body")[0].appendChild(g);
1599
1248
  };
1600
- return Bt(() => {
1249
+ return Ze(() => {
1601
1250
  switch (e) {
1602
1251
  case "reCAPTCHA": {
1603
- const f = setInterval(() => {
1252
+ const d = setInterval(() => {
1604
1253
  window.grecaptcha || u("https://recaptcha.net/recaptcha/api.js"), window.grecaptcha && window.grecaptcha.render && (window.grecaptcha.render("captcha", {
1605
- sitekey: r,
1606
- callback: g
1607
- }), clearInterval(f));
1254
+ sitekey: i,
1255
+ callback: p
1256
+ }), clearInterval(d));
1608
1257
  }, 300);
1609
1258
  break;
1610
1259
  }
1611
1260
  case "hCaptcha": {
1612
- const f = setInterval(() => {
1261
+ const d = setInterval(() => {
1613
1262
  window.hcaptcha || u("https://js.hcaptcha.com/1/api.js"), window.hcaptcha && window.hcaptcha.render && (window.hcaptcha.render("captcha", {
1614
- sitekey: r,
1615
- callback: g
1616
- }), clearInterval(f));
1263
+ sitekey: i,
1264
+ callback: p
1265
+ }), clearInterval(d));
1617
1266
  }, 300);
1618
1267
  break;
1619
1268
  }
1620
1269
  case "Aliyun Captcha": {
1621
- const f = setInterval(() => {
1622
- window.AWSC || u("https://g.alicdn.com/AWSC/AWSC/awsc.js"), window.AWSC && (c && c !== "***" && window.AWSC.use(o, function(h, k) {
1623
- k.init({
1624
- appkey: c,
1270
+ const d = setInterval(() => {
1271
+ window.AWSC || u("https://g.alicdn.com/AWSC/AWSC/awsc.js"), window.AWSC && (r && r !== "***" && window.AWSC.use(n, function(g, b) {
1272
+ b.init({
1273
+ appkey: r,
1625
1274
  scene: l,
1626
1275
  renderTo: "captcha",
1627
- success: function(w) {
1628
- g(
1629
- `SessionId=${w.sessionId}&AccessKeyId=${r}&Scene=${l}&AppKey=${c}&Token=${w.token}&Sig=${w.sig}&RemoteIp=192.168.0.1`
1276
+ success: function(m) {
1277
+ p(
1278
+ `SessionId=${m.sessionId}&AccessKeyId=${i}&Scene=${l}&AppKey=${r}&Token=${m.token}&Sig=${m.sig}&RemoteIp=192.168.0.1`
1630
1279
  );
1631
1280
  }
1632
1281
  });
1633
- }), clearInterval(f));
1282
+ }), clearInterval(d));
1634
1283
  }, 300);
1635
1284
  break;
1636
1285
  }
1637
1286
  case "GEETEST": {
1638
- let f = !1;
1639
- const h = setInterval(() => {
1640
- if (window.initGeetest4 || u("https://static.geetest.com/v4/gt4.js"), window.initGeetest4 && r && !f) {
1641
- const k = String(r);
1287
+ let d = !1;
1288
+ const g = setInterval(() => {
1289
+ if (window.initGeetest4 || u("https://static.geetest.com/v4/gt4.js"), window.initGeetest4 && i && !d) {
1290
+ const b = String(i);
1642
1291
  window.initGeetest4(
1643
1292
  {
1644
- captchaId: k,
1293
+ captchaId: b,
1645
1294
  product: "float"
1646
1295
  },
1647
- function(w) {
1648
- f || (w.appendTo("#captcha"), f = !0), w.onSuccess(function() {
1649
- const x = w.getValidate();
1650
- g(
1651
- `lot_number=${x.lot_number}&captcha_output=${x.captcha_output}&pass_token=${x.pass_token}&gen_time=${x.gen_time}&captcha_id=${r}`
1296
+ function(m) {
1297
+ d || (m.appendTo("#captcha"), d = !0), m.onSuccess(function() {
1298
+ const w = m.getValidate();
1299
+ p(
1300
+ `lot_number=${w.lot_number}&captcha_output=${w.captcha_output}&pass_token=${w.pass_token}&gen_time=${w.gen_time}&captcha_id=${i}`
1652
1301
  );
1653
1302
  });
1654
1303
  }
1655
- ), clearInterval(h);
1304
+ ), clearInterval(g);
1656
1305
  }
1657
1306
  }, 500);
1658
1307
  break;
1659
1308
  }
1660
1309
  case "Cloudflare Turnstile": {
1661
- const f = setInterval(() => {
1310
+ const d = setInterval(() => {
1662
1311
  window.turnstile || u("https://challenges.cloudflare.com/turnstile/v0/api.js"), window.turnstile && window.turnstile.render && (window.turnstile.render("#captcha", {
1663
- sitekey: r,
1664
- callback: g
1665
- }), clearInterval(f));
1312
+ sitekey: i,
1313
+ callback: p
1314
+ }), clearInterval(d));
1666
1315
  }, 300);
1667
1316
  break;
1668
1317
  }
1669
1318
  }
1670
- }, [e, o, r, i, l, c]), /* @__PURE__ */ a.jsx("div", { id: "captcha" });
1671
- }, Zn = (t) => {
1672
- const { t: e } = Le(), { owner: o, name: r, visible: i, onOk: l, onCancel: c, isCurrentProvider: g } = t, [u, f] = m.useState("none"), [h, k] = m.useState(""), [w, x] = m.useState(""), [A, U] = m.useState(""), [Q, R] = m.useState(""), [b, E] = m.useState(""), [M, W] = m.useState(!1), [ie, pe] = m.useState(""), [ne, I] = m.useState(""), Me = m.useRef(null);
1673
- Bt(() => {
1674
- i ? J() : (he(), W(!1));
1675
- }, [i]);
1676
- const ge = () => {
1677
- l == null || l(u, ne, w);
1678
- }, he = () => {
1679
- I(""), c == null || c();
1680
- }, J = () => {
1681
- Dt(o, r, g).then((T) => {
1682
- T.type === "none" ? ge() : T.type === "Default" ? (W(!0), x(T.captchaId), pe(T.captchaImage), f("Default")) : (W(!0), f(T.type), k(T.clientId), x(T.clientSecret), U(T.subType), R(T.clientId2), E(T.clientSecret2));
1319
+ }, [e, n, i, a, l, r]), /* @__PURE__ */ o.jsx("div", { id: "captcha" });
1320
+ }, Dt = (t) => {
1321
+ const { t: e } = ge(), { owner: n, name: i, visible: a, onOk: l, onCancel: r, isCurrentProvider: p } = t, [u, d] = f.useState("none"), [g, b] = f.useState(""), [m, w] = f.useState(""), [C, B] = f.useState(""), [F, I] = f.useState(""), [x, $] = f.useState(""), [E, N] = f.useState(!1), [Q, te] = f.useState(""), [V, z] = f.useState(""), we = f.useRef(null);
1322
+ Ze(() => {
1323
+ a ? se() : (K(), N(!1));
1324
+ }, [a]);
1325
+ const ne = () => {
1326
+ l == null || l(u, V, m);
1327
+ }, K = () => {
1328
+ z(""), r == null || r();
1329
+ }, se = () => {
1330
+ ot(n, i, p).then((S) => {
1331
+ S.type === "none" ? ne() : S.type === "Default" ? (N(!0), w(S.captchaId), te(S.captchaImage), d("Default")) : (N(!0), d(S.type), b(S.clientId), w(S.clientSecret), B(S.subType), I(S.clientId2), $(S.clientSecret2));
1683
1332
  });
1684
- }, Z = () => /* @__PURE__ */ a.jsxs("div", { className: "flex flex-col items-center", children: [
1685
- /* @__PURE__ */ a.jsx(
1333
+ }, ye = () => /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col items-center", children: [
1334
+ /* @__PURE__ */ o.jsx(
1686
1335
  "div",
1687
1336
  {
1688
1337
  className: "bg-no-repeat mb-4 border border-current rounded w-[200px] h-[80px]",
1689
1338
  style: {
1690
- backgroundImage: `url('data:image/png;base64,${ie}')`
1339
+ backgroundImage: `url('data:image/png;base64,${Q}')`
1691
1340
  }
1692
1341
  }
1693
1342
  ),
1694
- /* @__PURE__ */ a.jsx(
1343
+ /* @__PURE__ */ o.jsx(
1695
1344
  "input",
1696
1345
  {
1697
1346
  className: "input input-bordered w-[200px]",
1698
1347
  type: "text",
1699
- ref: Me,
1700
- value: ne,
1348
+ ref: we,
1349
+ value: V,
1701
1350
  placeholder: e("general.captcha"),
1702
- onKeyDown: (T) => T.key === "Enter" ? ge() : null,
1703
- onChange: (T) => I(T.target.value)
1351
+ onKeyDown: (S) => S.key === "Enter" ? ne() : null,
1352
+ onChange: (S) => z(S.target.value)
1704
1353
  }
1705
1354
  )
1706
- ] }), re = (T) => {
1707
- I(T);
1708
- }, $e = () => u === "Default" ? Z() : /* @__PURE__ */ a.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ a.jsx(
1709
- Qn,
1355
+ ] }), oe = (S) => {
1356
+ z(S);
1357
+ }, ue = () => u === "Default" ? ye() : /* @__PURE__ */ o.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ o.jsx(
1358
+ Rt,
1710
1359
  {
1711
1360
  captchaType: u,
1712
- subType: A,
1713
- siteKey: h,
1714
- clientSecret: w,
1715
- onChange: re,
1716
- clientId2: Q,
1717
- clientSecret2: b
1718
- }
1719
- ) }), ke = () => {
1720
- let T = !1;
1721
- return u === "Default" ? /^\d{5}$/.test(ne) || (T = !0) : ne === "" && (T = !0), [
1722
- /* @__PURE__ */ a.jsx("button", { className: "btn", onClick: he, children: "Cancel" }, "closebtn"),
1723
- /* @__PURE__ */ a.jsx(
1361
+ subType: C,
1362
+ siteKey: g,
1363
+ clientSecret: m,
1364
+ onChange: oe,
1365
+ clientId2: F,
1366
+ clientSecret2: x
1367
+ }
1368
+ ) }), de = () => {
1369
+ let S = !1;
1370
+ return u === "Default" ? /^\d{5}$/.test(V) || (S = !0) : V === "" && (S = !0), [
1371
+ /* @__PURE__ */ o.jsx("button", { className: "btn", onClick: K, children: "Cancel" }, "closebtn"),
1372
+ /* @__PURE__ */ o.jsx(
1724
1373
  "button",
1725
1374
  {
1726
1375
  className: "btn btn-primary",
1727
- disabled: T,
1728
- onClick: ge,
1376
+ disabled: S,
1377
+ onClick: ne,
1729
1378
  children: "OK"
1730
1379
  },
1731
1380
  "okbtn"
1732
1381
  )
1733
1382
  ];
1734
1383
  };
1735
- return /* @__PURE__ */ a.jsx("dialog", { id: "captcha-modal", className: "modal", children: /* @__PURE__ */ a.jsxs("div", { className: "modal-box", children: [
1736
- /* @__PURE__ */ a.jsx("div", { className: "mt-4 mb-8", children: $e() }),
1737
- /* @__PURE__ */ a.jsxs("div", { className: "modal-action", children: [
1738
- /* @__PURE__ */ a.jsx("form", { method: "dialog", className: "modal-backdrop", children: /* @__PURE__ */ a.jsx("button", { children: "Close" }) }),
1739
- /* @__PURE__ */ a.jsx("form", { method: "dialog", className: "flex gap-3", children: ke() })
1384
+ return /* @__PURE__ */ o.jsx("dialog", { id: "captcha-modal", className: "modal", children: /* @__PURE__ */ o.jsxs("div", { className: "modal-box", children: [
1385
+ /* @__PURE__ */ o.jsx("div", { className: "mt-4 mb-8", children: ue() }),
1386
+ /* @__PURE__ */ o.jsxs("div", { className: "modal-action", children: [
1387
+ /* @__PURE__ */ o.jsx("form", { method: "dialog", className: "modal-backdrop", children: /* @__PURE__ */ o.jsx("button", { children: "Close" }) }),
1388
+ /* @__PURE__ */ o.jsx("form", { method: "dialog", className: "flex gap-3", children: de() })
1740
1389
  ] })
1741
1390
  ] }) });
1742
- }, Xn = ({
1391
+ }, Ut = ({
1743
1392
  value: t,
1744
1393
  disabled: e,
1745
- textBefore: o,
1746
- onChange: r,
1747
- onButtonClickArgs: i,
1394
+ textBefore: n,
1395
+ onChange: i,
1396
+ onButtonClickArgs: a,
1748
1397
  application: l,
1749
- method: c,
1750
- countryCode: g
1398
+ method: r,
1399
+ countryCode: p
1751
1400
  }) => {
1752
- const { t: u } = Le(), [f, h] = m.useState(!1), [k, w] = m.useState(0), [x, A] = m.useState(!1), U = m.useRef(null), Q = (E = 60) => {
1753
- let M = E;
1754
- w(M);
1755
- const W = () => {
1756
- M--, w(M), M !== 0 && setTimeout(W, 1e3);
1401
+ const { t: u } = ge(), [d, g] = f.useState(!1), [b, m] = f.useState(0), [w, C] = f.useState(!1), B = f.useRef(null), F = ($ = 60) => {
1402
+ let E = $;
1403
+ m(E);
1404
+ const N = () => {
1405
+ E--, m(E), E !== 0 && setTimeout(N, 1e3);
1757
1406
  };
1758
- setTimeout(W, 1e3);
1759
- }, R = (E, M, W) => {
1760
- h(!1), A(!0), Nt(
1407
+ setTimeout(N, 1e3);
1408
+ }, I = ($, E, N) => {
1409
+ g(!1), C(!0), nt(
1410
+ $,
1761
1411
  E,
1762
- M,
1763
- W,
1764
- c,
1765
- g,
1766
- ...i
1767
- ).then((ie) => {
1768
- A(!1), ie && Q(60);
1412
+ N,
1413
+ r,
1414
+ p,
1415
+ ...a
1416
+ ).then((Q) => {
1417
+ C(!1), Q && F(60);
1769
1418
  });
1770
- }, b = () => {
1771
- h(!1);
1419
+ }, x = () => {
1420
+ g(!1);
1772
1421
  };
1773
- return m.useEffect(() => {
1774
- U.current = document.getElementById("captcha-modal");
1775
- }, []), m.useEffect(() => {
1776
- U.current && (f ? U.current.showModal() : U.current.close());
1777
- }, [f]), /* @__PURE__ */ a.jsxs(m.Fragment, { children: [
1778
- /* @__PURE__ */ a.jsxs("div", { className: "flex", children: [
1779
- /* @__PURE__ */ a.jsx(
1422
+ return f.useEffect(() => {
1423
+ B.current = document.getElementById("captcha-modal");
1424
+ }, []), f.useEffect(() => {
1425
+ B.current && (d ? B.current.showModal() : B.current.close());
1426
+ }, [d]), /* @__PURE__ */ o.jsxs(f.Fragment, { children: [
1427
+ /* @__PURE__ */ o.jsxs("div", { className: "flex", children: [
1428
+ /* @__PURE__ */ o.jsx(
1780
1429
  "input",
1781
1430
  {
1782
1431
  className: "input",
1783
1432
  disabled: e,
1784
1433
  value: t,
1785
1434
  placeholder: "Enter your code",
1786
- onChange: (E) => r(E.target.value),
1435
+ onChange: ($) => i($.target.value),
1787
1436
  autoComplete: "one-time-code"
1788
1437
  }
1789
1438
  ),
1790
- /* @__PURE__ */ a.jsx(
1439
+ /* @__PURE__ */ o.jsx(
1791
1440
  "button",
1792
1441
  {
1793
1442
  className: "btn",
1794
- disabled: e || k > 0,
1795
- onClick: () => h(!0),
1796
- children: k > 0 ? `${k} s` : u(x ? "code.sending" : "code.sendCode")
1443
+ disabled: e || b > 0,
1444
+ onClick: () => g(!0),
1445
+ children: b > 0 ? `${b} s` : u(w ? "code.sending" : "code.sendCode")
1797
1446
  }
1798
1447
  )
1799
1448
  ] }),
1800
- /* @__PURE__ */ a.jsx(
1801
- Zn,
1449
+ /* @__PURE__ */ o.jsx(
1450
+ Dt,
1802
1451
  {
1803
1452
  owner: l.owner,
1804
1453
  name: l.name,
1805
- visible: f,
1806
- onOk: R,
1807
- onCancel: b,
1454
+ visible: d,
1455
+ onOk: I,
1456
+ onCancel: x,
1808
1457
  isCurrentProvider: !1
1809
1458
  }
1810
1459
  )
1811
1460
  ] });
1812
1461
  };
1813
- var eo = Object.create, xe = Object.defineProperty, to = Object.defineProperties, no = Object.getOwnPropertyDescriptor, oo = Object.getOwnPropertyDescriptors, ao = Object.getOwnPropertyNames, vt = Object.getOwnPropertySymbols, io = Object.getPrototypeOf, Ut = Object.prototype.hasOwnProperty, ro = Object.prototype.propertyIsEnumerable, xt = (t, e, o) => e in t ? xe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, F = (t, e) => {
1814
- for (var o in e || (e = {}))
1815
- Ut.call(e, o) && xt(t, o, e[o]);
1816
- if (vt)
1817
- for (var o of vt(e))
1818
- ro.call(e, o) && xt(t, o, e[o]);
1462
+ var Wt = Object.create, re = Object.defineProperty, Ht = Object.defineProperties, Gt = Object.getOwnPropertyDescriptor, Vt = Object.getOwnPropertyDescriptors, qt = Object.getOwnPropertyNames, Oe = Object.getOwnPropertySymbols, Yt = Object.getPrototypeOf, at = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable, Ie = (t, e, n) => e in t ? re(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, T = (t, e) => {
1463
+ for (var n in e || (e = {}))
1464
+ at.call(e, n) && Ie(t, n, e[n]);
1465
+ if (Oe)
1466
+ for (var n of Oe(e))
1467
+ Qt.call(e, n) && Ie(t, n, e[n]);
1819
1468
  return t;
1820
- }, Wt = (t, e) => to(t, oo(e)), lo = (t, e) => {
1821
- for (var o in e)
1822
- xe(t, o, { get: e[o], enumerable: !0 });
1823
- }, Ht = (t, e, o, r) => {
1469
+ }, it = (t, e) => Ht(t, Vt(e)), Jt = (t, e) => {
1470
+ for (var n in e)
1471
+ re(t, n, { get: e[n], enumerable: !0 });
1472
+ }, lt = (t, e, n, i) => {
1824
1473
  if (e && typeof e == "object" || typeof e == "function")
1825
- for (let i of ao(e))
1826
- !Ut.call(t, i) && i !== o && xe(t, i, { get: () => e[i], enumerable: !(r = no(e, i)) || r.enumerable });
1474
+ for (let a of qt(e))
1475
+ !at.call(t, a) && a !== n && re(t, a, { get: () => e[a], enumerable: !(i = Gt(e, a)) || i.enumerable });
1827
1476
  return t;
1828
- }, L = (t, e, o) => (o = t != null ? eo(io(t)) : {}, Ht(
1477
+ }, v = (t, e, n) => (n = t != null ? Wt(Yt(t)) : {}, lt(
1829
1478
  // If the importer is in node compatibility mode or this is not an ESM
1830
1479
  // file that has been converted to a CommonJS file using a Babel-
1831
1480
  // compatible transform (i.e. "__esModule" has not been set), then set
1832
1481
  // "default" to the CommonJS "module.exports" for node compatibility.
1833
- !t || !t.__esModule ? xe(o, "default", { value: t, enumerable: !0 }) : o,
1482
+ !t || !t.__esModule ? re(n, "default", { value: t, enumerable: !0 }) : n,
1834
1483
  t
1835
- )), co = (t) => Ht(xe({}, "__esModule", { value: !0 }), t), Vt = {};
1836
- lo(Vt, {
1837
- AmazonLoginButton: () => Ao,
1838
- AppleLoginButton: () => Ko,
1839
- BufferLoginButton: () => Wo,
1840
- DiscordLoginButton: () => Zo,
1841
- FacebookLoginButton: () => bo,
1842
- GithubLoginButton: () => _o,
1843
- GitlabLoginButton: () => ba,
1844
- GoogleLoginButton: () => $o,
1845
- InstagramLoginButton: () => Oo,
1846
- LinkedInLoginButton: () => Ro,
1847
- MetamaskLoginButton: () => ma,
1848
- MicrosoftLoginButton: () => No,
1849
- OktaLoginButton: () => ta,
1850
- SlackLoginButton: () => aa,
1851
- TelegramLoginButton: () => Go,
1852
- TikTokLoginButton: () => pa,
1853
- TwitterLoginButton: () => jo,
1854
- XLoginButton: () => $a,
1855
- YahooLoginButton: () => la,
1856
- ZaloLoginButton: () => ua,
1857
- createButton: () => O
1484
+ )), Zt = (t) => lt(re({}, "__esModule", { value: !0 }), t), ct = {};
1485
+ Jt(ct, {
1486
+ AmazonLoginButton: () => xn,
1487
+ AppleLoginButton: () => Pn,
1488
+ BufferLoginButton: () => Mn,
1489
+ DiscordLoginButton: () => Dn,
1490
+ FacebookLoginButton: () => rn,
1491
+ GithubLoginButton: () => gn,
1492
+ GitlabLoginButton: () => ro,
1493
+ GoogleLoginButton: () => dn,
1494
+ InstagramLoginButton: () => vn,
1495
+ LinkedInLoginButton: () => Cn,
1496
+ MetamaskLoginButton: () => io,
1497
+ MicrosoftLoginButton: () => Ln,
1498
+ OktaLoginButton: () => Hn,
1499
+ SlackLoginButton: () => qn,
1500
+ TelegramLoginButton: () => Nn,
1501
+ TikTokLoginButton: () => no,
1502
+ TwitterLoginButton: () => wn,
1503
+ XLoginButton: () => po,
1504
+ YahooLoginButton: () => Jn,
1505
+ ZaloLoginButton: () => Xn,
1506
+ createButton: () => j
1858
1507
  });
1859
- var C = co(Vt), We = L(m), oe = L(m), so = L(m), uo = ({ name: t, size: e, format: o }) => /* @__PURE__ */ so.default.createElement("i", { className: o(t), style: { fontSize: e } }), fo = uo, $t = L(m), po = ({ type: t, size: e, format: o, color: r = "#FFFFFF" }) => typeof t == "string" ? /* @__PURE__ */ $t.default.createElement(fo, F({}, { format: o, name: t, size: e })) : /* @__PURE__ */ $t.default.createElement(t, { size: e, color: r }), go = "#FFFFFF", ho = (t) => {
1860
- const [e, o] = (0, oe.useState)(!1), [r, i] = (0, oe.useState)(!1), l = () => {
1861
- var I;
1862
- i(!0), (I = t.onMouseEnter) == null || I.call(t);
1863
- }, c = () => {
1864
- var I;
1865
- i(!1), (I = t.onMouseLeave) == null || I.call(t);
1866
- }, g = () => o(!0), u = () => o(!1), f = () => {
1867
- var I;
1868
- return (I = t.onClick) == null ? void 0 : I.call(t);
1508
+ var y = Zt(ct), ve = v(f), q = v(f), Kt = v(f), Xt = ({ name: t, size: e, format: n }) => /* @__PURE__ */ Kt.default.createElement("i", { className: n(t), style: { fontSize: e } }), en = Xt, Pe = v(f), tn = ({ type: t, size: e, format: n, color: i = "#FFFFFF" }) => typeof t == "string" ? /* @__PURE__ */ Pe.default.createElement(en, T({}, { format: n, name: t, size: e })) : /* @__PURE__ */ Pe.default.createElement(t, { size: e, color: i }), nn = "#FFFFFF", on = (t) => {
1509
+ const [e, n] = (0, q.useState)(!1), [i, a] = (0, q.useState)(!1), l = () => {
1510
+ var z;
1511
+ a(!0), (z = t.onMouseEnter) == null || z.call(t);
1512
+ }, r = () => {
1513
+ var z;
1514
+ a(!1), (z = t.onMouseLeave) == null || z.call(t);
1515
+ }, p = () => n(!0), u = () => n(!1), d = () => {
1516
+ var z;
1517
+ return (z = t.onClick) == null ? void 0 : z.call(t);
1869
1518
  }, {
1870
- activeStyle: h,
1871
- align: k = "left",
1872
- text: w,
1873
- children: x = w,
1874
- className: A,
1875
- icon: U,
1876
- iconFormat: Q = (I) => I,
1877
- iconSize: R = "26px",
1878
- iconColor: b = go,
1879
- preventActiveStyles: E = !1,
1880
- size: M = "50px",
1881
- style: W,
1882
- disabled: ie,
1883
- type: pe = "button"
1884
- } = t, ne = mo(He.button, {
1885
- activeStyle: E ? W : h,
1886
- customStyle: W,
1887
- active: r || e,
1888
- size: M
1519
+ activeStyle: g,
1520
+ align: b = "left",
1521
+ text: m,
1522
+ children: w = m,
1523
+ className: C,
1524
+ icon: B,
1525
+ iconFormat: F = (z) => z,
1526
+ iconSize: I = "26px",
1527
+ iconColor: x = nn,
1528
+ preventActiveStyles: $ = !1,
1529
+ size: E = "50px",
1530
+ style: N,
1531
+ disabled: Q,
1532
+ type: te = "button"
1533
+ } = t, V = an(Se.button, {
1534
+ activeStyle: $ ? N : g,
1535
+ customStyle: N,
1536
+ active: i || e,
1537
+ size: E
1889
1538
  });
1890
- return /* @__PURE__ */ oe.default.createElement(
1539
+ return /* @__PURE__ */ q.default.createElement(
1891
1540
  "button",
1892
- F({
1893
- style: ne,
1894
- onClick: f,
1541
+ T({
1542
+ style: V,
1543
+ onClick: d,
1895
1544
  onMouseEnter: l,
1896
- onMouseLeave: c,
1897
- onFocus: g,
1545
+ onMouseLeave: r,
1546
+ onFocus: p,
1898
1547
  onBlur: u
1899
- }, { className: A, disabled: ie, type: pe }),
1900
- /* @__PURE__ */ oe.default.createElement("div", { style: He.flex }, !kt(R) && !!U && /* @__PURE__ */ oe.default.createElement(
1548
+ }, { className: C, disabled: Q, type: te }),
1549
+ /* @__PURE__ */ q.default.createElement("div", { style: Se.flex }, !Fe(I) && !!B && /* @__PURE__ */ q.default.createElement(
1901
1550
  "div",
1902
1551
  {
1903
1552
  style: {
1904
1553
  display: "flex",
1905
1554
  justifyContent: "center",
1906
- minWidth: R
1555
+ minWidth: I
1907
1556
  }
1908
1557
  },
1909
- /* @__PURE__ */ oe.default.createElement(po, { type: U, size: R, format: Q, color: b })
1910
- ), !kt(R) && /* @__PURE__ */ oe.default.createElement("div", { style: He.divider }), /* @__PURE__ */ oe.default.createElement("div", { style: { textAlign: k, width: "100%" } }, x))
1558
+ /* @__PURE__ */ q.default.createElement(tn, { type: B, size: I, format: F, color: x })
1559
+ ), !Fe(I) && /* @__PURE__ */ q.default.createElement("div", { style: Se.divider }), /* @__PURE__ */ q.default.createElement("div", { style: { textAlign: b, width: "100%" } }, w))
1911
1560
  );
1912
- }, kt = (t) => t === "0" || t === "0px" || t === 0, mo = (t, {
1561
+ }, Fe = (t) => t === "0" || t === "0px" || t === 0, an = (t, {
1913
1562
  size: e,
1914
- customStyle: o,
1915
- active: r,
1916
- activeStyle: i
1917
- }) => F(F(Wt(F({}, t), {
1563
+ customStyle: n,
1564
+ active: i,
1565
+ activeStyle: a
1566
+ }) => T(T(it(T({}, t), {
1918
1567
  height: e
1919
- }), o), r && i), He = {
1568
+ }), n), i && a), Se = {
1920
1569
  button: {
1921
1570
  display: "block",
1922
1571
  border: 0,
@@ -1939,21 +1588,21 @@ var C = co(Vt), We = L(m), oe = L(m), so = L(m), uo = ({ name: t, size: e, forma
1939
1588
  display: "flex",
1940
1589
  height: "100%"
1941
1590
  }
1942
- }, yo = L(m), O = (t) => (e) => {
1943
- const o = Wt(F(F({
1944
- activeStyle: F(F({}, t == null ? void 0 : t.activeStyle), e.activeStyle)
1591
+ }, ln = v(f), j = (t) => (e) => {
1592
+ const n = it(T(T({
1593
+ activeStyle: T(T({}, t == null ? void 0 : t.activeStyle), e.activeStyle)
1945
1594
  }, t), e), {
1946
- style: F(F({}, t == null ? void 0 : t.style), e.style)
1595
+ style: T(T({}, t == null ? void 0 : t.style), e.style)
1947
1596
  });
1948
- return /* @__PURE__ */ yo.default.createElement(ho, F({}, o));
1949
- }, wo = {
1597
+ return /* @__PURE__ */ ln.default.createElement(on, T({}, n));
1598
+ }, cn = {
1950
1599
  activeStyle: { background: "#293e69" },
1951
- icon: vo,
1600
+ icon: sn,
1952
1601
  style: { background: "#3b5998" },
1953
1602
  text: "Log in with Facebook"
1954
- }, bo = O(wo);
1955
- function vo({ size: t, color: e }) {
1956
- return /* @__PURE__ */ We.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 90 90" }, /* @__PURE__ */ We.default.createElement("g", null, /* @__PURE__ */ We.default.createElement(
1603
+ }, rn = j(cn);
1604
+ function sn({ size: t, color: e }) {
1605
+ return /* @__PURE__ */ ve.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 90 90" }, /* @__PURE__ */ ve.default.createElement("g", null, /* @__PURE__ */ ve.default.createElement(
1957
1606
  "path",
1958
1607
  {
1959
1608
  d: "M90,15.001C90,7.119,82.884,0,75,0H15C7.116,0,0,7.119,0,15.001v59.998 C0,82.881,7.116,90,15.001,90H45V56H34V41h11v-5.844C45,25.077,52.568,16,61.875,16H74v15H61.875C60.548,31,59,32.611,59,35.024V41 h15v15H59v34h16c7.884,0,15-7.119,15-15.001V15.001z",
@@ -1961,14 +1610,14 @@ function vo({ size: t, color: e }) {
1961
1610
  }
1962
1611
  )));
1963
1612
  }
1964
- var j = L(m), xo = {
1613
+ var k = v(f), un = {
1965
1614
  activeStyle: { background: "#EFF0EE" },
1966
- icon: ko,
1615
+ icon: pn,
1967
1616
  style: { background: "white", color: "black" },
1968
1617
  text: "Log in with Google"
1969
- }, $o = O(xo);
1970
- function ko({ size: t }) {
1971
- return /* @__PURE__ */ j.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", width: t, height: t }, /* @__PURE__ */ j.default.createElement(
1618
+ }, dn = j(un);
1619
+ function pn({ size: t }) {
1620
+ return /* @__PURE__ */ k.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", width: t, height: t }, /* @__PURE__ */ k.default.createElement(
1972
1621
  "linearGradient",
1973
1622
  {
1974
1623
  id: "95yY7w43Oj6n2vH63j6HJb",
@@ -1979,18 +1628,18 @@ function ko({ size: t }) {
1979
1628
  gradientTransform: "matrix(1 0 0 -1 0 66)",
1980
1629
  gradientUnits: "userSpaceOnUse"
1981
1630
  },
1982
- /* @__PURE__ */ j.default.createElement("stop", { offset: "0", stopColor: "#ff5840" }),
1983
- /* @__PURE__ */ j.default.createElement("stop", { offset: ".007", stopColor: "#ff5840" }),
1984
- /* @__PURE__ */ j.default.createElement("stop", { offset: ".989", stopColor: "#fa528c" }),
1985
- /* @__PURE__ */ j.default.createElement("stop", { offset: "1", stopColor: "#fa528c" })
1986
- ), /* @__PURE__ */ j.default.createElement(
1631
+ /* @__PURE__ */ k.default.createElement("stop", { offset: "0", stopColor: "#ff5840" }),
1632
+ /* @__PURE__ */ k.default.createElement("stop", { offset: ".007", stopColor: "#ff5840" }),
1633
+ /* @__PURE__ */ k.default.createElement("stop", { offset: ".989", stopColor: "#fa528c" }),
1634
+ /* @__PURE__ */ k.default.createElement("stop", { offset: "1", stopColor: "#fa528c" })
1635
+ ), /* @__PURE__ */ k.default.createElement(
1987
1636
  "path",
1988
1637
  {
1989
1638
  fill: "url(#95yY7w43Oj6n2vH63j6HJb)",
1990
1639
  d: `M47.46,15.5l-1.37,1.48c-1.34,1.44-3.5,1.67-5.15,0.6c-2.71-1.75-6.43-3.13-11-2.37 c-4.94,0.83-9.17,3.85-11.64,
1991
1640
  7.97l-8.03-6.08C14.99,9.82,23.2,5,32.5,5c5,0,9.94,1.56,14.27,4.46 C48.81,10.83,49.13,13.71,47.46,15.5z`
1992
1641
  }
1993
- ), /* @__PURE__ */ j.default.createElement(
1642
+ ), /* @__PURE__ */ k.default.createElement(
1994
1643
  "linearGradient",
1995
1644
  {
1996
1645
  id: "95yY7w43Oj6n2vH63j6HJc",
@@ -2001,17 +1650,17 @@ function ko({ size: t }) {
2001
1650
  gradientTransform: "matrix(1 0 0 -1 0 66)",
2002
1651
  gradientUnits: "userSpaceOnUse"
2003
1652
  },
2004
- /* @__PURE__ */ j.default.createElement("stop", { offset: "0", stopColor: "#feaa53" }),
2005
- /* @__PURE__ */ j.default.createElement("stop", { offset: ".612", stopColor: "#ffcd49" }),
2006
- /* @__PURE__ */ j.default.createElement("stop", { offset: "1", stopColor: "#ffde44" })
2007
- ), /* @__PURE__ */ j.default.createElement(
1653
+ /* @__PURE__ */ k.default.createElement("stop", { offset: "0", stopColor: "#feaa53" }),
1654
+ /* @__PURE__ */ k.default.createElement("stop", { offset: ".612", stopColor: "#ffcd49" }),
1655
+ /* @__PURE__ */ k.default.createElement("stop", { offset: "1", stopColor: "#ffde44" })
1656
+ ), /* @__PURE__ */ k.default.createElement(
2008
1657
  "path",
2009
1658
  {
2010
1659
  fill: "url(#95yY7w43Oj6n2vH63j6HJc)",
2011
1660
  d: `M16.01,30.91c-0.09,2.47,0.37,4.83,1.27,6.96l-8.21,6.05c-1.35-2.51-2.3-5.28-2.75-8.22 c-1.06-6.88,0.54-13.38,
2012
1661
  3.95-18.6l8.03,6.08C16.93,25.47,16.1,28.11,16.01,30.91z`
2013
1662
  }
2014
- ), /* @__PURE__ */ j.default.createElement(
1663
+ ), /* @__PURE__ */ k.default.createElement(
2015
1664
  "linearGradient",
2016
1665
  {
2017
1666
  id: "95yY7w43Oj6n2vH63j6HJd",
@@ -2022,17 +1671,17 @@ function ko({ size: t }) {
2022
1671
  gradientTransform: "matrix(1 0 0 -1 0 66)",
2023
1672
  gradientUnits: "userSpaceOnUse"
2024
1673
  },
2025
- /* @__PURE__ */ j.default.createElement("stop", { offset: "0", stopColor: "#42d778" }),
2026
- /* @__PURE__ */ j.default.createElement("stop", { offset: ".428", stopColor: "#3dca76" }),
2027
- /* @__PURE__ */ j.default.createElement("stop", { offset: "1", stopColor: "#34b171" })
2028
- ), /* @__PURE__ */ j.default.createElement(
1674
+ /* @__PURE__ */ k.default.createElement("stop", { offset: "0", stopColor: "#42d778" }),
1675
+ /* @__PURE__ */ k.default.createElement("stop", { offset: ".428", stopColor: "#3dca76" }),
1676
+ /* @__PURE__ */ k.default.createElement("stop", { offset: "1", stopColor: "#34b171" })
1677
+ ), /* @__PURE__ */ k.default.createElement(
2029
1678
  "path",
2030
1679
  {
2031
1680
  fill: "url(#95yY7w43Oj6n2vH63j6HJd)",
2032
1681
  d: `M50.45,51.28c-4.55,4.07-10.61,6.57-17.36,6.71C22.91,58.2,13.66,52.53,9.07,43.92l8.21-6.05 C19.78,43.81,
2033
1682
  25.67,48,32.5,48c3.94,0,7.52-1.28,10.33-3.44L50.45,51.28z`
2034
1683
  }
2035
- ), /* @__PURE__ */ j.default.createElement(
1684
+ ), /* @__PURE__ */ k.default.createElement(
2036
1685
  "linearGradient",
2037
1686
  {
2038
1687
  id: "95yY7w43Oj6n2vH63j6HJe",
@@ -2043,12 +1692,12 @@ function ko({ size: t }) {
2043
1692
  gradientTransform: "matrix(1 0 0 -1 0 66)",
2044
1693
  gradientUnits: "userSpaceOnUse"
2045
1694
  },
2046
- /* @__PURE__ */ j.default.createElement("stop", { offset: "0", stopColor: "#155cde" }),
2047
- /* @__PURE__ */ j.default.createElement("stop", { offset: ".278", stopColor: "#1f7fe5" }),
2048
- /* @__PURE__ */ j.default.createElement("stop", { offset: ".569", stopColor: "#279ceb" }),
2049
- /* @__PURE__ */ j.default.createElement("stop", { offset: ".82", stopColor: "#2cafef" }),
2050
- /* @__PURE__ */ j.default.createElement("stop", { offset: "1", stopColor: "#2eb5f0" })
2051
- ), /* @__PURE__ */ j.default.createElement(
1695
+ /* @__PURE__ */ k.default.createElement("stop", { offset: "0", stopColor: "#155cde" }),
1696
+ /* @__PURE__ */ k.default.createElement("stop", { offset: ".278", stopColor: "#1f7fe5" }),
1697
+ /* @__PURE__ */ k.default.createElement("stop", { offset: ".569", stopColor: "#279ceb" }),
1698
+ /* @__PURE__ */ k.default.createElement("stop", { offset: ".82", stopColor: "#2cafef" }),
1699
+ /* @__PURE__ */ k.default.createElement("stop", { offset: "1", stopColor: "#2eb5f0" })
1700
+ ), /* @__PURE__ */ k.default.createElement(
2052
1701
  "path",
2053
1702
  {
2054
1703
  fill: "url(#95yY7w43Oj6n2vH63j6HJe)",
@@ -2057,23 +1706,23 @@ function ko({ size: t }) {
2057
1706
  }
2058
1707
  ));
2059
1708
  }
2060
- var St = L(m), So = {
1709
+ var Re = v(f), fn = {
2061
1710
  activeStyle: { background: "#555555" },
2062
- icon: Co,
1711
+ icon: hn,
2063
1712
  style: { background: "#333333" },
2064
1713
  text: "Log in with GitHub"
2065
- }, _o = O(So);
2066
- function Co({ size: t, color: e }) {
2067
- return /* @__PURE__ */ St.default.createElement("svg", { fill: e, role: "img", viewBox: "0 0 24 24", width: t, height: t, xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ St.default.createElement("path", { d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 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.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" }));
1714
+ }, gn = j(fn);
1715
+ function hn({ size: t, color: e }) {
1716
+ return /* @__PURE__ */ Re.default.createElement("svg", { fill: e, role: "img", viewBox: "0 0 24 24", width: t, height: t, xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ Re.default.createElement("path", { d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 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.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" }));
2068
1717
  }
2069
- var _t = L(m), Eo = {
1718
+ var De = v(f), mn = {
2070
1719
  activeStyle: { background: "#282e36" },
2071
- icon: Lo,
1720
+ icon: yn,
2072
1721
  style: { background: "#0f1419" },
2073
1722
  text: "Log in with Twitter"
2074
- }, jo = O(Eo);
2075
- function Lo({ size: t, color: e }) {
2076
- return /* @__PURE__ */ _t.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ _t.default.createElement(
1723
+ }, wn = j(mn);
1724
+ function yn({ size: t, color: e }) {
1725
+ return /* @__PURE__ */ De.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ De.default.createElement(
2077
1726
  "path",
2078
1727
  {
2079
1728
  fill: e,
@@ -2081,14 +1730,14 @@ function Lo({ size: t, color: e }) {
2081
1730
  }
2082
1731
  ));
2083
1732
  }
2084
- var Ct = L(m), To = {
1733
+ var Ue = v(f), bn = {
2085
1734
  activeStyle: { background: "#ff9f23" },
2086
- icon: Mo,
1735
+ icon: $n,
2087
1736
  style: { background: "#f9ae32" },
2088
1737
  text: "Log in with Amazon"
2089
- }, Ao = O(To);
2090
- function Mo({ size: t, color: e }) {
2091
- return /* @__PURE__ */ Ct.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: e, width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ Ct.default.createElement(
1738
+ }, xn = j(bn);
1739
+ function $n({ size: t, color: e }) {
1740
+ return /* @__PURE__ */ Ue.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: e, width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ Ue.default.createElement(
2092
1741
  "path",
2093
1742
  {
2094
1743
  d: "M13.958 10.09c0 1.232.029 2.256-.591 3.351-.502.891-1.301 1.438-2.186 1.438-1.214 0-1.922-.924-1.922-2.292 0-2.692 2.415-3.182 4.7-3.182v.685zm3.186 7.705c-.209.189-.512.201-.745.074-1.052-.872-1.238-1.276-1.814-2.106-1.734 1.767-2.962 2.297-5.209 2.297-2.66 0-4.731-1.641-4.731-4.925 0-2.565 1.391-4.309 3.37-5.164 1.715-.754 4.11-.891 5.942-1.095v-.41c0-.753.06-1.642-.383-2.294-.385-.579-1.124-.82-1.775-.82-1.205 0-2.277.618-2.54 1.897-.054.285-.261.567-.549.582l-3.061-.333c-.259-.056-.548-.266-.472-.66.704-3.716 4.06-4.838 7.066-4.838 1.537 0 3.547.41 4.758 1.574 1.538 1.436 1.392 3.352 1.392 5.438v4.923c0 1.481.616 2.13 1.192 2.929.204.287.247.63-.01.839-.647.541-1.794 1.537-2.423 2.099l-.008-.007zm3.559 1.988c-2.748 1.472-5.735 2.181-8.453 2.181-4.027 0-7.927-1.393-11.081-3.706-.277-.202-.481.154-.251.416 2.925 3.326 6.786 5.326 11.076 5.326 3.061 0 6.614-1.214 9.066-3.494.406-.377.058-.945-.357-.723zm.67 2.216c-.091.227.104.32.31.147 1.339-1.12 1.685-3.466 1.411-3.804-.272-.336-2.612-.626-4.04.377-.22.154-.182.367.062.337.805-.096 2.595-.312 2.913.098.319.41-.355 2.094-.656 2.845z",
@@ -2097,27 +1746,27 @@ function Mo({ size: t, color: e }) {
2097
1746
  }
2098
1747
  ));
2099
1748
  }
2100
- var be = L(m), zo = {
1749
+ var le = v(f), kn = {
2101
1750
  activeStyle: {
2102
1751
  background: "linear-gradient(to right, rgb(214, 146, 60) 0%, rgb(160, 11, 143) 50%, rgb(56, 10, 115) 100%)"
2103
1752
  },
2104
- icon: Bo,
1753
+ icon: Sn,
2105
1754
  style: {
2106
1755
  background: "linear-gradient(to right, rgb(236, 146, 35) 0%, rgb(177, 42, 160) 50%, rgb(105, 14, 224) 100%)"
2107
1756
  },
2108
1757
  text: "Log in with Instagram"
2109
- }, Oo = O(zo);
2110
- function Bo({ size: t, color: e }) {
2111
- return /* @__PURE__ */ be.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 169.063 169.063" }, /* @__PURE__ */ be.default.createElement("g", { fill: e }, /* @__PURE__ */ be.default.createElement("path", { d: "M122.406,0H46.654C20.929,0,0,20.93,0,46.655v75.752c0,25.726,20.929,46.655,46.654,46.655h75.752 c25.727,0,46.656-20.93,46.656-46.655V46.655C169.063,20.93,148.133,0,122.406,0z M154.063,122.407 c0,17.455-14.201,31.655-31.656,31.655H46.654C29.2,154.063,15,139.862,15,122.407V46.655C15,29.201,29.2,15,46.654,15h75.752 c17.455,0,31.656,14.201,31.656,31.655V122.407z" }), /* @__PURE__ */ be.default.createElement("path", { d: "M84.531,40.97c-24.021,0-43.563,19.542-43.563,43.563c0,24.02,19.542,43.561,43.563,43.561s43.563-19.541,43.563-43.561 C128.094,60.512,108.552,40.97,84.531,40.97z M84.531,113.093c-15.749,0-28.563-12.812-28.563-28.561 c0-15.75,12.813-28.563,28.563-28.563s28.563,12.813,28.563,28.563C113.094,100.281,100.28,113.093,84.531,113.093z" }), /* @__PURE__ */ be.default.createElement("path", { d: "M129.921,28.251c-2.89,0-5.729,1.17-7.77,3.22c-2.051,2.04-3.23,4.88-3.23,7.78c0,2.891,1.18,5.73,3.23,7.78 c2.04,2.04,4.88,3.22,7.77,3.22c2.9,0,5.73-1.18,7.78-3.22c2.05-2.05,3.22-4.89,3.22-7.78c0-2.9-1.17-5.74-3.22-7.78 C135.661,29.421,132.821,28.251,129.921,28.251z" })));
1758
+ }, vn = j(kn);
1759
+ function Sn({ size: t, color: e }) {
1760
+ return /* @__PURE__ */ le.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 169.063 169.063" }, /* @__PURE__ */ le.default.createElement("g", { fill: e }, /* @__PURE__ */ le.default.createElement("path", { d: "M122.406,0H46.654C20.929,0,0,20.93,0,46.655v75.752c0,25.726,20.929,46.655,46.654,46.655h75.752 c25.727,0,46.656-20.93,46.656-46.655V46.655C169.063,20.93,148.133,0,122.406,0z M154.063,122.407 c0,17.455-14.201,31.655-31.656,31.655H46.654C29.2,154.063,15,139.862,15,122.407V46.655C15,29.201,29.2,15,46.654,15h75.752 c17.455,0,31.656,14.201,31.656,31.655V122.407z" }), /* @__PURE__ */ le.default.createElement("path", { d: "M84.531,40.97c-24.021,0-43.563,19.542-43.563,43.563c0,24.02,19.542,43.561,43.563,43.561s43.563-19.541,43.563-43.561 C128.094,60.512,108.552,40.97,84.531,40.97z M84.531,113.093c-15.749,0-28.563-12.812-28.563-28.561 c0-15.75,12.813-28.563,28.563-28.563s28.563,12.813,28.563,28.563C113.094,100.281,100.28,113.093,84.531,113.093z" }), /* @__PURE__ */ le.default.createElement("path", { d: "M129.921,28.251c-2.89,0-5.729,1.17-7.77,3.22c-2.051,2.04-3.23,4.88-3.23,7.78c0,2.891,1.18,5.73,3.23,7.78 c2.04,2.04,4.88,3.22,7.77,3.22c2.9,0,5.73-1.18,7.78-3.22c2.05-2.05,3.22-4.89,3.22-7.78c0-2.9-1.17-5.74-3.22-7.78 C135.661,29.421,132.821,28.251,129.921,28.251z" })));
2112
1761
  }
2113
- var Ve = L(m), Po = {
1762
+ var _e = v(f), _n = {
2114
1763
  activeStyle: { background: "rgb(7, 112, 169)" },
2115
- icon: Io,
1764
+ icon: En,
2116
1765
  style: { background: "rgb(26, 129, 185)" },
2117
1766
  text: "Log in with LinkedIn"
2118
- }, Ro = O(Po);
2119
- function Io({ size: t, color: e }) {
2120
- return /* @__PURE__ */ Ve.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 430.117 430.117" }, /* @__PURE__ */ Ve.default.createElement("g", null, /* @__PURE__ */ Ve.default.createElement(
1767
+ }, Cn = j(_n);
1768
+ function En({ size: t, color: e }) {
1769
+ return /* @__PURE__ */ _e.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 430.117 430.117" }, /* @__PURE__ */ _e.default.createElement("g", null, /* @__PURE__ */ _e.default.createElement(
2121
1770
  "path",
2122
1771
  {
2123
1772
  d: "M430.117,261.543V420.56h-92.188V272.193c0-37.271-13.334-62.707-46.703-62.707 c-25.473,0-40.632,17.142-47.301,33.724c-2.432,5.928-3.058,14.179-3.058,22.477V420.56h-92.219c0,0,1.242-251.285,0-277.32h92.21 v39.309c-0.187,0.294-0.43,0.611-0.606,0.896h0.606v-0.896c12.251-18.869,34.13-45.824,83.102-45.824 C384.633,136.724,430.117,176.361,430.117,261.543z M52.183,9.558C20.635,9.558,0,30.251,0,57.463 c0,26.619,20.038,47.94,50.959,47.94h0.616c32.159,0,52.159-21.317,52.159-47.94C103.128,30.251,83.734,9.558,52.183,9.558z M5.477,420.56h92.184v-277.32H5.477V420.56z",
@@ -2125,23 +1774,23 @@ function Io({ size: t, color: e }) {
2125
1774
  }
2126
1775
  )));
2127
1776
  }
2128
- var ve = L(m), Fo = {
1777
+ var ce = v(f), jn = {
2129
1778
  activeStyle: { background: "#555555" },
2130
- icon: Do,
1779
+ icon: An,
2131
1780
  style: { background: "#333333" },
2132
1781
  text: "Log in with Microsoft"
2133
- }, No = O(Fo);
2134
- function Do({ size: t, color: e }) {
2135
- return /* @__PURE__ */ ve.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, fill: e, x: "0px", y: "0px", viewBox: "0 0 48 48" }, /* @__PURE__ */ ve.default.createElement("path", { fill: "#ff5722", d: "M6 6H22V22H6z", transform: "rotate(-180 14 14)" }), /* @__PURE__ */ ve.default.createElement("path", { fill: "#4caf50", d: "M26 6H42V22H26z", transform: "rotate(-180 34 14)" }), /* @__PURE__ */ ve.default.createElement("path", { fill: "#ffc107", d: "M26 26H42V42H26z", transform: "rotate(-180 34 34)" }), /* @__PURE__ */ ve.default.createElement("path", { fill: "#03a9f4", d: "M6 26H22V42H6z", transform: "rotate(-180 14 34)" }));
1782
+ }, Ln = j(jn);
1783
+ function An({ size: t, color: e }) {
1784
+ return /* @__PURE__ */ ce.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, fill: e, x: "0px", y: "0px", viewBox: "0 0 48 48" }, /* @__PURE__ */ ce.default.createElement("path", { fill: "#ff5722", d: "M6 6H22V22H6z", transform: "rotate(-180 14 14)" }), /* @__PURE__ */ ce.default.createElement("path", { fill: "#4caf50", d: "M26 6H42V22H26z", transform: "rotate(-180 34 14)" }), /* @__PURE__ */ ce.default.createElement("path", { fill: "#ffc107", d: "M26 26H42V42H26z", transform: "rotate(-180 34 34)" }), /* @__PURE__ */ ce.default.createElement("path", { fill: "#03a9f4", d: "M6 26H22V42H6z", transform: "rotate(-180 14 34)" }));
2136
1785
  }
2137
- var Et = L(m), Uo = {
1786
+ var We = v(f), zn = {
2138
1787
  activeStyle: { background: "#1171BB" },
2139
- icon: Ho,
1788
+ icon: Tn,
2140
1789
  style: { background: "#168EEA" },
2141
1790
  text: "Log in with Buffer"
2142
- }, Wo = O(Uo);
2143
- function Ho({ size: t, color: e }) {
2144
- return /* @__PURE__ */ Et.default.createElement(
1791
+ }, Mn = j(zn);
1792
+ function Tn({ size: t, color: e }) {
1793
+ return /* @__PURE__ */ We.default.createElement(
2145
1794
  "svg",
2146
1795
  {
2147
1796
  "aria-labelledby": "simpleicons-buffer-icon",
@@ -2151,7 +1800,7 @@ function Ho({ size: t, color: e }) {
2151
1800
  height: t,
2152
1801
  xmlns: "http://www.w3.org/2000/svg"
2153
1802
  },
2154
- /* @__PURE__ */ Et.default.createElement(
1803
+ /* @__PURE__ */ We.default.createElement(
2155
1804
  "path",
2156
1805
  {
2157
1806
  d: "M23.784 18.24c.287.142.287.267 0 .374l-11.357 5.223c-.287.145-.57.145-.854 0L.213 18.614c-.284-.107-.284-.232 0-.375l2.722-1.23c.284-.14.57-.14.852 0l7.787 3.573c.285.14.57.14.854 0l7.787-3.574c.283-.14.568-.14.852 0l2.717 1.23zm0-6.454c.287.143.287.285 0 .426L12.427 17.44c-.287.104-.57.104-.854 0L.213 12.21c-.284-.143-.284-.284 0-.426l2.722-1.227c.284-.144.57-.144.852 0l7.787 3.57c.285.144.57.144.854 0l7.787-3.57c.283-.144.568-.144.852 0l2.717 1.226zM.214 5.76c-.285-.143-.285-.267 0-.375L11.574.16c.283-.14.57-.14.852 0l11.358 5.23c.287.107.287.232 0 .375l-11.357 5.223c-.287.143-.57.143-.854 0L.213 5.76z",
@@ -2160,18 +1809,18 @@ function Ho({ size: t, color: e }) {
2160
1809
  )
2161
1810
  );
2162
1811
  }
2163
- var X = L(m), Vo = {
1812
+ var W = v(f), Bn = {
2164
1813
  activeStyle: {
2165
1814
  background: "#0088cc"
2166
1815
  },
2167
- icon: qo,
1816
+ icon: On,
2168
1817
  style: {
2169
1818
  background: "#54a9eb"
2170
1819
  },
2171
1820
  text: "Log in with Telegram"
2172
- }, Go = O(Vo);
2173
- function qo({ size: t }) {
2174
- return /* @__PURE__ */ X.default.createElement(
1821
+ }, Nn = j(Bn);
1822
+ function On({ size: t }) {
1823
+ return /* @__PURE__ */ W.default.createElement(
2175
1824
  "svg",
2176
1825
  {
2177
1826
  xmlns: "http://www.w3.org/2000/svg",
@@ -2180,11 +1829,11 @@ function qo({ size: t }) {
2180
1829
  height: t,
2181
1830
  style: { transform: "scale(1.5)" }
2182
1831
  },
2183
- /* @__PURE__ */ X.default.createElement("defs", null, /* @__PURE__ */ X.default.createElement("linearGradient", { id: "b", x1: ".66", x2: ".851", y1: ".437", y2: ".802" }, /* @__PURE__ */ X.default.createElement("stop", { offset: "0", stopColor: "#eff7fc" }), /* @__PURE__ */ X.default.createElement("stop", { offset: "1", stopColor: "#fff" }))),
2184
- /* @__PURE__ */ X.default.createElement("circle", { cx: "120", cy: "120", r: "120", fill: "url(#a)" }),
2185
- /* @__PURE__ */ X.default.createElement("path", { fill: "#c8daea", d: "M98 175c-3.888 0-3.227-1.468-4.568-5.17L82 132.207 170 80" }),
2186
- /* @__PURE__ */ X.default.createElement("path", { fill: "#a9c9dd", d: "M98 175c3 0 4.325-1.372 6-3l16-15.558-19.958-12.035" }),
2187
- /* @__PURE__ */ X.default.createElement(
1832
+ /* @__PURE__ */ W.default.createElement("defs", null, /* @__PURE__ */ W.default.createElement("linearGradient", { id: "b", x1: ".66", x2: ".851", y1: ".437", y2: ".802" }, /* @__PURE__ */ W.default.createElement("stop", { offset: "0", stopColor: "#eff7fc" }), /* @__PURE__ */ W.default.createElement("stop", { offset: "1", stopColor: "#fff" }))),
1833
+ /* @__PURE__ */ W.default.createElement("circle", { cx: "120", cy: "120", r: "120", fill: "url(#a)" }),
1834
+ /* @__PURE__ */ W.default.createElement("path", { fill: "#c8daea", d: "M98 175c-3.888 0-3.227-1.468-4.568-5.17L82 132.207 170 80" }),
1835
+ /* @__PURE__ */ W.default.createElement("path", { fill: "#a9c9dd", d: "M98 175c3 0 4.325-1.372 6-3l16-15.558-19.958-12.035" }),
1836
+ /* @__PURE__ */ W.default.createElement(
2188
1837
  "path",
2189
1838
  {
2190
1839
  fill: "url(#b)",
@@ -2193,14 +1842,14 @@ function qo({ size: t }) {
2193
1842
  )
2194
1843
  );
2195
1844
  }
2196
- var Ge = L(m), Yo = {
1845
+ var Ce = v(f), In = {
2197
1846
  activeStyle: { background: "#EFF0EE" },
2198
- icon: Jo,
1847
+ icon: Fn,
2199
1848
  style: { background: "#FFFFFF", color: "#000000" },
2200
1849
  text: "Log in with Apple"
2201
- }, Ko = O(Yo);
2202
- function Jo({ size: t }) {
2203
- return /* @__PURE__ */ Ge.default.createElement(
1850
+ }, Pn = j(In);
1851
+ function Fn({ size: t }) {
1852
+ return /* @__PURE__ */ Ce.default.createElement(
2204
1853
  "svg",
2205
1854
  {
2206
1855
  width: t,
@@ -2210,7 +1859,7 @@ function Jo({ size: t }) {
2210
1859
  version: "1.1",
2211
1860
  xmlns: "http://www.w3.org/2000/svg"
2212
1861
  },
2213
- /* @__PURE__ */ Ge.default.createElement("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd" }, /* @__PURE__ */ Ge.default.createElement(
1862
+ /* @__PURE__ */ Ce.default.createElement("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd" }, /* @__PURE__ */ Ce.default.createElement(
2214
1863
  "path",
2215
1864
  {
2216
1865
  d: "M28.2226562,20.3846154 C29.0546875,20.3846154 30.0976562,19.8048315 30.71875,19.0317864 C31.28125,18.3312142 31.6914062,17.352829 31.6914062,16.3744437 C31.6914062,16.2415766 31.6796875,16.1087095 31.65625,16 C30.7304687,16.0362365 29.6171875,16.640178 28.9492187,17.4494596 C28.421875,18.06548 27.9414062,19.0317864 27.9414062,20.0222505 C27.9414062,20.1671964 27.9648438,20.3121424 27.9765625,20.3604577 C28.0351562,20.3725366 28.1289062,20.3846154 28.2226562,20.3846154 Z M25.2929688,35 C26.4296875,35 26.9335938,34.214876 28.3515625,34.214876 C29.7929688,34.214876 30.109375,34.9758423 31.375,34.9758423 C32.6171875,34.9758423 33.4492188,33.792117 34.234375,32.6325493 C35.1132812,31.3038779 35.4765625,29.9993643 35.5,29.9389701 C35.4179688,29.9148125 33.0390625,28.9122695 33.0390625,26.0979021 C33.0390625,23.6579784 34.9140625,22.5588048 35.0195312,22.474253 C33.7773438,20.6382708 31.890625,20.5899555 31.375,20.5899555 C29.9804688,20.5899555 28.84375,21.4596313 28.1289062,21.4596313 C27.3554688,21.4596313 26.3359375,20.6382708 25.1289062,20.6382708 C22.8320312,20.6382708 20.5,22.5950413 20.5,26.2911634 C20.5,28.5861411 21.3671875,31.013986 22.4335938,32.5842339 C23.3476562,33.9129053 24.1445312,35 25.2929688,35 Z",
@@ -2220,23 +1869,23 @@ function Jo({ size: t }) {
2220
1869
  ))
2221
1870
  );
2222
1871
  }
2223
- var qe = L(m), Qo = {
1872
+ var Ee = v(f), Rn = {
2224
1873
  activeStyle: { background: "#697ec4" },
2225
- icon: Xo,
1874
+ icon: Un,
2226
1875
  style: { background: "#7289DA" },
2227
1876
  text: "Log in with Discord"
2228
- }, Zo = O(Qo);
2229
- function Xo({ size: t, color: e }) {
2230
- return /* @__PURE__ */ qe.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: e, width: t, height: t }, /* @__PURE__ */ qe.default.createElement("title", null, "Discord icon"), /* @__PURE__ */ qe.default.createElement("path", { d: "M20.222 0c1.406 0 2.54 1.137 2.607 2.475V24l-2.677-2.273-1.47-1.338-1.604-1.398.67 2.205H3.71c-1.402 0-2.54-1.065-2.54-2.476V2.48C1.17 1.142 2.31.003 3.715.003h16.5L20.222 0zm-6.118 5.683h-.03l-.202.2c2.073.6 3.076 1.537 3.076 1.537-1.336-.668-2.54-1.002-3.744-1.137-.87-.135-1.74-.064-2.475 0h-.2c-.47 0-1.47.2-2.81.735-.467.203-.735.336-.735.336s1.002-1.002 3.21-1.537l-.135-.135s-1.672-.064-3.477 1.27c0 0-1.805 3.144-1.805 7.02 0 0 1 1.74 3.743 1.806 0 0 .4-.533.805-1.002-1.54-.468-2.14-1.404-2.14-1.404s.134.066.335.2h.06c.03 0 .044.015.06.03v.006c.016.016.03.03.06.03.33.136.66.27.93.4.466.202 1.065.403 1.8.536.93.135 1.996.2 3.21 0 .6-.135 1.2-.267 1.8-.535.39-.2.87-.4 1.397-.737 0 0-.6.936-2.205 1.404.33.466.795 1 .795 1 2.744-.06 3.81-1.8 3.87-1.726 0-3.87-1.815-7.02-1.815-7.02-1.635-1.214-3.165-1.26-3.435-1.26l.056-.02zm.168 4.413c.703 0 1.27.6 1.27 1.335 0 .74-.57 1.34-1.27 1.34-.7 0-1.27-.6-1.27-1.334.002-.74.573-1.338 1.27-1.338zm-4.543 0c.7 0 1.266.6 1.266 1.335 0 .74-.57 1.34-1.27 1.34-.7 0-1.27-.6-1.27-1.334 0-.74.57-1.338 1.27-1.338z" }));
1877
+ }, Dn = j(Rn);
1878
+ function Un({ size: t, color: e }) {
1879
+ return /* @__PURE__ */ Ee.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: e, width: t, height: t }, /* @__PURE__ */ Ee.default.createElement("title", null, "Discord icon"), /* @__PURE__ */ Ee.default.createElement("path", { d: "M20.222 0c1.406 0 2.54 1.137 2.607 2.475V24l-2.677-2.273-1.47-1.338-1.604-1.398.67 2.205H3.71c-1.402 0-2.54-1.065-2.54-2.476V2.48C1.17 1.142 2.31.003 3.715.003h16.5L20.222 0zm-6.118 5.683h-.03l-.202.2c2.073.6 3.076 1.537 3.076 1.537-1.336-.668-2.54-1.002-3.744-1.137-.87-.135-1.74-.064-2.475 0h-.2c-.47 0-1.47.2-2.81.735-.467.203-.735.336-.735.336s1.002-1.002 3.21-1.537l-.135-.135s-1.672-.064-3.477 1.27c0 0-1.805 3.144-1.805 7.02 0 0 1 1.74 3.743 1.806 0 0 .4-.533.805-1.002-1.54-.468-2.14-1.404-2.14-1.404s.134.066.335.2h.06c.03 0 .044.015.06.03v.006c.016.016.03.03.06.03.33.136.66.27.93.4.466.202 1.065.403 1.8.536.93.135 1.996.2 3.21 0 .6-.135 1.2-.267 1.8-.535.39-.2.87-.4 1.397-.737 0 0-.6.936-2.205 1.404.33.466.795 1 .795 1 2.744-.06 3.81-1.8 3.87-1.726 0-3.87-1.815-7.02-1.815-7.02-1.635-1.214-3.165-1.26-3.435-1.26l.056-.02zm.168 4.413c.703 0 1.27.6 1.27 1.335 0 .74-.57 1.34-1.27 1.34-.7 0-1.27-.6-1.27-1.334.002-.74.573-1.338 1.27-1.338zm-4.543 0c.7 0 1.266.6 1.266 1.335 0 .74-.57 1.34-1.27 1.34-.7 0-1.27-.6-1.27-1.334 0-.74.57-1.338 1.27-1.338z" }));
2231
1880
  }
2232
- var ae = L(m), ea = {
1881
+ var Y = v(f), Wn = {
2233
1882
  activeStyle: { background: "#f5f5f5" },
2234
- icon: na,
1883
+ icon: Gn,
2235
1884
  style: { background: "white", color: "black" },
2236
1885
  text: "Log in with Okta"
2237
- }, ta = O(ea);
2238
- function na({ size: t }) {
2239
- return /* @__PURE__ */ ae.default.createElement(
1886
+ }, Hn = j(Wn);
1887
+ function Gn({ size: t }) {
1888
+ return /* @__PURE__ */ Y.default.createElement(
2240
1889
  "svg",
2241
1890
  {
2242
1891
  version: "1.1",
@@ -2247,14 +1896,14 @@ function na({ size: t }) {
2247
1896
  width: t,
2248
1897
  height: t
2249
1898
  },
2250
- /* @__PURE__ */ ae.default.createElement("g", null, /* @__PURE__ */ ae.default.createElement("g", null, /* @__PURE__ */ ae.default.createElement(
1899
+ /* @__PURE__ */ Y.default.createElement("g", null, /* @__PURE__ */ Y.default.createElement("g", null, /* @__PURE__ */ Y.default.createElement(
2251
1900
  "path",
2252
1901
  {
2253
1902
  fill: "#007DC1",
2254
1903
  d: `M50.3,33.8C22.5,33.8,0,56.3,0,84.1s22.5,50.3,50.3,50.3s50.3-22.5,50.3-50.3S78.1,33.8,50.3,33.8z
2255
1904
  M50.3,109.3c-13.9,0-25.2-11.3-25.2-25.2s11.3-25.2,25.2-25.2s25.2,11.3,25.2,25.2S64.2,109.3,50.3,109.3z`
2256
1905
  }
2257
- )), /* @__PURE__ */ ae.default.createElement(
1906
+ )), /* @__PURE__ */ Y.default.createElement(
2258
1907
  "path",
2259
1908
  {
2260
1909
  fill: "#007DC1",
@@ -2263,7 +1912,7 @@ function na({ size: t }) {
2263
1912
  h-20.6c-0.8,0-1.4,0-2,0.2c-1.2,0.4-1.7,0.8-2,1.2c-0.1,0.1-16.6,17.9-26.8,28.8c-2.8,3-7.8,1-7.8-3.1l0-57.1c0-2.9-2.4-4-4.3-4
2264
1913
  h-16.8c-2.9,0-4.3,1.9-4.3,3.6v126.6c0,2.9,2.4,3.7,4.4,3.7h16.8c2.6,0,4.3-1.9,4.3-3.8v-1.3V101z`
2265
1914
  }
2266
- ), /* @__PURE__ */ ae.default.createElement(
1915
+ ), /* @__PURE__ */ Y.default.createElement(
2267
1916
  "path",
2268
1917
  {
2269
1918
  fill: "#007DC1",
@@ -2273,7 +1922,7 @@ function na({ size: t }) {
2273
1922
  C274.6,133.9,276.2,131.9,275.9,129.6z`
2274
1923
  }
2275
1924
  )),
2276
- /* @__PURE__ */ ae.default.createElement("g", null, /* @__PURE__ */ ae.default.createElement(
1925
+ /* @__PURE__ */ Y.default.createElement("g", null, /* @__PURE__ */ Y.default.createElement(
2277
1926
  "path",
2278
1927
  {
2279
1928
  fill: "#007DC1",
@@ -2286,14 +1935,14 @@ function na({ size: t }) {
2286
1935
  ))
2287
1936
  );
2288
1937
  }
2289
- var fe = L(m), oa = {
1938
+ var ee = v(f), Vn = {
2290
1939
  activeStyle: { background: "#f5f5f5" },
2291
- icon: ia,
1940
+ icon: Yn,
2292
1941
  style: { background: "white", color: "black" },
2293
1942
  text: "Log in with Slack"
2294
- }, aa = O(oa);
2295
- function ia({ size: t, color: e }) {
2296
- return /* @__PURE__ */ fe.default.createElement(
1943
+ }, qn = j(Vn);
1944
+ function Yn({ size: t, color: e }) {
1945
+ return /* @__PURE__ */ ee.default.createElement(
2297
1946
  "svg",
2298
1947
  {
2299
1948
  enableBackground: "new 0 0 2447.6 2452.5",
@@ -2303,25 +1952,25 @@ function ia({ size: t, color: e }) {
2303
1952
  height: t,
2304
1953
  xmlns: "http://www.w3.org/2000/svg"
2305
1954
  },
2306
- /* @__PURE__ */ fe.default.createElement("g", { clipRule: "evenodd", fillRule: "evenodd" }, /* @__PURE__ */ fe.default.createElement(
1955
+ /* @__PURE__ */ ee.default.createElement("g", { clipRule: "evenodd", fillRule: "evenodd" }, /* @__PURE__ */ ee.default.createElement(
2307
1956
  "path",
2308
1957
  {
2309
1958
  d: "m897.4 0c-135.3.1-244.8 109.9-244.7 245.2-.1 135.3 109.5 245.1 244.8 245.2h244.8v-245.1c.1-135.3-109.5-245.1-244.9-245.3.1 0 .1 0 0 0m0 654h-652.6c-135.3.1-244.9 109.9-244.8 245.2-.2 135.3 109.4 245.1 244.7 245.3h652.7c135.3-.1 244.9-109.9 244.8-245.2.1-135.4-109.5-245.2-244.8-245.3z",
2310
1959
  fill: "#36c5f0"
2311
1960
  }
2312
- ), /* @__PURE__ */ fe.default.createElement(
1961
+ ), /* @__PURE__ */ ee.default.createElement(
2313
1962
  "path",
2314
1963
  {
2315
1964
  d: "m2447.6 899.2c.1-135.3-109.5-245.1-244.8-245.2-135.3.1-244.9 109.9-244.8 245.2v245.3h244.8c135.3-.1 244.9-109.9 244.8-245.3zm-652.7 0v-654c.1-135.2-109.4-245-244.7-245.2-135.3.1-244.9 109.9-244.8 245.2v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.3z",
2316
1965
  fill: "#2eb67d"
2317
1966
  }
2318
- ), /* @__PURE__ */ fe.default.createElement(
1967
+ ), /* @__PURE__ */ ee.default.createElement(
2319
1968
  "path",
2320
1969
  {
2321
1970
  d: "m1550.1 2452.5c135.3-.1 244.9-109.9 244.8-245.2.1-135.3-109.5-245.1-244.8-245.2h-244.8v245.2c-.1 135.2 109.5 245 244.8 245.2zm0-654.1h652.7c135.3-.1 244.9-109.9 244.8-245.2.2-135.3-109.4-245.1-244.7-245.3h-652.7c-135.3.1-244.9 109.9-244.8 245.2-.1 135.4 109.4 245.2 244.7 245.3z",
2322
1971
  fill: "#ecb22e"
2323
1972
  }
2324
- ), /* @__PURE__ */ fe.default.createElement(
1973
+ ), /* @__PURE__ */ ee.default.createElement(
2325
1974
  "path",
2326
1975
  {
2327
1976
  d: "m0 1553.2c-.1 135.3 109.5 245.1 244.8 245.2 135.3-.1 244.9-109.9 244.8-245.2v-245.2h-244.8c-135.3.1-244.9 109.9-244.8 245.2zm652.7 0v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.2v-653.9c.2-135.3-109.4-245.1-244.7-245.3-135.4 0-244.9 109.8-244.8 245.1 0 0 0 .1 0 0",
@@ -2330,14 +1979,14 @@ function ia({ size: t, color: e }) {
2330
1979
  ))
2331
1980
  );
2332
1981
  }
2333
- var je = L(m), ra = {
1982
+ var fe = v(f), Qn = {
2334
1983
  activeStyle: { background: "#ac3ade" },
2335
- icon: ca,
1984
+ icon: Zn,
2336
1985
  style: { background: "#720E9E" },
2337
1986
  text: "Log in with Yahoo"
2338
- }, la = O(ra);
2339
- function ca({ size: t, color: e }) {
2340
- return /* @__PURE__ */ je.default.createElement(
1987
+ }, Jn = j(Qn);
1988
+ function Zn({ size: t, color: e }) {
1989
+ return /* @__PURE__ */ fe.default.createElement(
2341
1990
  "svg",
2342
1991
  {
2343
1992
  version: "1.1",
@@ -2350,14 +1999,14 @@ function ca({ size: t, color: e }) {
2350
1999
  width: t,
2351
2000
  height: t
2352
2001
  },
2353
- /* @__PURE__ */ je.default.createElement("g", null, /* @__PURE__ */ je.default.createElement(
2002
+ /* @__PURE__ */ fe.default.createElement("g", null, /* @__PURE__ */ fe.default.createElement(
2354
2003
  "path",
2355
2004
  {
2356
2005
  fill: "transparent",
2357
2006
  d: `M145.659,0c80.45,0,145.66,65.219,145.66,145.66c0,80.45-65.21,145.659-145.66,145.659
2358
2007
  S0,226.109,0,145.66C0,65.219,65.21,0,145.659,0z`
2359
2008
  }
2360
- ), /* @__PURE__ */ je.default.createElement(
2009
+ ), /* @__PURE__ */ fe.default.createElement(
2361
2010
  "path",
2362
2011
  {
2363
2012
  fill: "#FFFFFF",
@@ -2373,14 +2022,14 @@ function ca({ size: t, color: e }) {
2373
2022
  ))
2374
2023
  );
2375
2024
  }
2376
- var jt = L(m), sa = {
2025
+ var He = v(f), Kn = {
2377
2026
  activeStyle: { background: "#008FF3" },
2378
- icon: da,
2027
+ icon: eo,
2379
2028
  style: { background: "#0573ff" },
2380
2029
  text: "Log in with Zalo"
2381
- }, ua = O(sa);
2382
- function da({ size: t, color: e }) {
2383
- return /* @__PURE__ */ jt.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ jt.default.createElement(
2030
+ }, Xn = j(Kn);
2031
+ function eo({ size: t, color: e }) {
2032
+ return /* @__PURE__ */ He.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ He.default.createElement(
2384
2033
  "path",
2385
2034
  {
2386
2035
  fill: e,
@@ -2388,23 +2037,23 @@ function da({ size: t, color: e }) {
2388
2037
  }
2389
2038
  ));
2390
2039
  }
2391
- var Lt = L(m), fa = {
2040
+ var Ge = v(f), to = {
2392
2041
  activeStyle: { background: "#333333" },
2393
- icon: ga,
2042
+ icon: oo,
2394
2043
  style: { background: "#000000", color: "#FFFFFF" },
2395
2044
  text: "Log in with TikTok"
2396
- }, pa = O(fa);
2397
- function ga({ size: t, color: e }) {
2398
- return /* @__PURE__ */ Lt.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, fill: e, viewBox: "0 0 512 512" }, /* @__PURE__ */ Lt.default.createElement("path", { d: "M412.19 118.66a109.27 109.27 0 01-9.45-5.5 132.87 132.87 0 01-24.27-20.62c-18.1-20.71-24.86-41.72-27.35-56.43h.1C349.14 23.9 350 16 350.13 16h-82.44v318.78c0 4.28 0 8.51-.18 12.69 0 .52-.05 1-.08 1.56 0 .23 0 .47-.05.71v.18a70 70 0 01-35.22 55.56 68.8 68.8 0 01-34.11 9c-38.41 0-69.54-31.32-69.54-70s31.13-70 69.54-70a68.9 68.9 0 0121.41 3.39l.1-83.94a153.14 153.14 0 00-118 34.52 161.79 161.79 0 00-35.3 43.53c-3.48 6-16.61 30.11-18.2 69.24-1 22.21 5.67 45.22 8.85 54.73v.2c2 5.6 9.75 24.71 22.38 40.82A167.53 167.53 0 00115 470.66v-.2l.2.2c39.91 27.12 84.16 25.34 84.16 25.34 7.66-.31 33.32 0 62.46-13.81 32.32-15.31 50.72-38.12 50.72-38.12a158.46 158.46 0 0027.64-45.93c7.46-19.61 9.95-43.13 9.95-52.53V176.49c1 .6 14.32 9.41 14.32 9.41s19.19 12.3 49.13 20.31c21.48 5.7 50.42 6.9 50.42 6.9v-81.84c-10.14 1.1-30.73-2.1-51.81-12.61z" }));
2045
+ }, no = j(to);
2046
+ function oo({ size: t, color: e }) {
2047
+ return /* @__PURE__ */ Ge.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, fill: e, viewBox: "0 0 512 512" }, /* @__PURE__ */ Ge.default.createElement("path", { d: "M412.19 118.66a109.27 109.27 0 01-9.45-5.5 132.87 132.87 0 01-24.27-20.62c-18.1-20.71-24.86-41.72-27.35-56.43h.1C349.14 23.9 350 16 350.13 16h-82.44v318.78c0 4.28 0 8.51-.18 12.69 0 .52-.05 1-.08 1.56 0 .23 0 .47-.05.71v.18a70 70 0 01-35.22 55.56 68.8 68.8 0 01-34.11 9c-38.41 0-69.54-31.32-69.54-70s31.13-70 69.54-70a68.9 68.9 0 0121.41 3.39l.1-83.94a153.14 153.14 0 00-118 34.52 161.79 161.79 0 00-35.3 43.53c-3.48 6-16.61 30.11-18.2 69.24-1 22.21 5.67 45.22 8.85 54.73v.2c2 5.6 9.75 24.71 22.38 40.82A167.53 167.53 0 00115 470.66v-.2l.2.2c39.91 27.12 84.16 25.34 84.16 25.34 7.66-.31 33.32 0 62.46-13.81 32.32-15.31 50.72-38.12 50.72-38.12a158.46 158.46 0 0027.64-45.93c7.46-19.61 9.95-43.13 9.95-52.53V176.49c1 .6 14.32 9.41 14.32 9.41s19.19 12.3 49.13 20.31c21.48 5.7 50.42 6.9 50.42 6.9v-81.84c-10.14 1.1-30.73-2.1-51.81-12.61z" }));
2399
2048
  }
2400
- var H = L(m), ha = {
2049
+ var O = v(f), ao = {
2401
2050
  activeStyle: { background: "#eeeeee" },
2402
- icon: ya,
2051
+ icon: lo,
2403
2052
  style: { background: "#ffffff", color: "#333333" },
2404
2053
  text: "Log in with Metamask"
2405
- }, ma = O(ha);
2406
- function ya({ size: t }) {
2407
- return /* @__PURE__ */ H.default.createElement(
2054
+ }, io = j(ao);
2055
+ function lo({ size: t }) {
2056
+ return /* @__PURE__ */ O.default.createElement(
2408
2057
  "svg",
2409
2058
  {
2410
2059
  xmlns: "http://www.w3.org/2000/svg",
@@ -2416,7 +2065,7 @@ function ya({ size: t }) {
2416
2065
  viewBox: "0 0 318.6 318.6",
2417
2066
  xmlSpace: "preserve"
2418
2067
  },
2419
- /* @__PURE__ */ H.default.createElement(
2068
+ /* @__PURE__ */ O.default.createElement(
2420
2069
  "path",
2421
2070
  {
2422
2071
  fill: "#e2761b",
@@ -2426,19 +2075,19 @@ function ya({ size: t }) {
2426
2075
  d: "M274.1 35.5l-99.5 73.9L193 65.8z"
2427
2076
  }
2428
2077
  ),
2429
- /* @__PURE__ */ H.default.createElement(
2078
+ /* @__PURE__ */ O.default.createElement(
2430
2079
  "path",
2431
- F({
2080
+ T({
2432
2081
  d: "M44.4 35.5l98.7 74.6-17.5-44.3zm193.9 171.3l-26.5 40.6 56.7 15.6 16.3-55.3zm-204.4.9L50.1 263l56.7-15.6-26.5-40.6z"
2433
- }, Tt)
2082
+ }, Ve)
2434
2083
  ),
2435
- /* @__PURE__ */ H.default.createElement(
2084
+ /* @__PURE__ */ O.default.createElement(
2436
2085
  "path",
2437
- F({
2086
+ T({
2438
2087
  d: "M103.6 138.2l-15.8 23.9 56.3 2.5-2-60.5zm111.3 0l-39-34.8-1.3 61.2 56.2-2.5zM106.8 247.4l33.8-16.5-29.2-22.8zm71.1-16.5l33.9 16.5-4.7-39.3z"
2439
- }, Tt)
2088
+ }, Ve)
2440
2089
  ),
2441
- /* @__PURE__ */ H.default.createElement(
2090
+ /* @__PURE__ */ O.default.createElement(
2442
2091
  "path",
2443
2092
  {
2444
2093
  fill: "#d7c1b3",
@@ -2448,7 +2097,7 @@ function ya({ size: t }) {
2448
2097
  d: "M211.8 247.4l-33.9-16.5 2.7 22.1-.3 9.3zm-105 0l31.5 14.9-.2-9.3 2.5-22.1z"
2449
2098
  }
2450
2099
  ),
2451
- /* @__PURE__ */ H.default.createElement(
2100
+ /* @__PURE__ */ O.default.createElement(
2452
2101
  "path",
2453
2102
  {
2454
2103
  fill: "#233447",
@@ -2458,7 +2107,7 @@ function ya({ size: t }) {
2458
2107
  d: "M138.8 193.5l-28.2-8.3 19.9-9.1zm40.9 0l8.3-17.4 20 9.1z"
2459
2108
  }
2460
2109
  ),
2461
- /* @__PURE__ */ H.default.createElement(
2110
+ /* @__PURE__ */ O.default.createElement(
2462
2111
  "path",
2463
2112
  {
2464
2113
  fill: "#cd6116",
@@ -2468,7 +2117,7 @@ function ya({ size: t }) {
2468
2117
  d: "M106.8 247.4l4.8-40.6-31.3.9zM207 206.8l4.8 40.6 26.5-39.7zm23.8-44.7l-56.2 2.5 5.2 28.9 8.3-17.4 20 9.1zm-120.2 23.1l20-9.1 8.2 17.4 5.3-28.9-56.3-2.5z"
2469
2118
  }
2470
2119
  ),
2471
- /* @__PURE__ */ H.default.createElement(
2120
+ /* @__PURE__ */ O.default.createElement(
2472
2121
  "path",
2473
2122
  {
2474
2123
  fill: "#e4751f",
@@ -2478,13 +2127,13 @@ function ya({ size: t }) {
2478
2127
  d: "M87.8 162.1l23.6 46-.8-22.9zm120.3 23.1l-1 22.9 23.7-46zm-64-20.6l-5.3 28.9 6.6 34.1 1.5-44.9zm30.5 0l-2.7 18 1.2 45 6.7-34.1z"
2479
2128
  }
2480
2129
  ),
2481
- /* @__PURE__ */ H.default.createElement(
2130
+ /* @__PURE__ */ O.default.createElement(
2482
2131
  "path",
2483
- F({
2132
+ T({
2484
2133
  d: "M179.8 193.5l-6.7 34.1 4.8 3.3 29.2-22.8 1-22.9zm-69.2-8.3l.8 22.9 29.2 22.8 4.8-3.3-6.6-34.1z"
2485
- }, At)
2134
+ }, qe)
2486
2135
  ),
2487
- /* @__PURE__ */ H.default.createElement(
2136
+ /* @__PURE__ */ O.default.createElement(
2488
2137
  "path",
2489
2138
  {
2490
2139
  fill: "#c0ad9e",
@@ -2494,7 +2143,7 @@ function ya({ size: t }) {
2494
2143
  d: "M180.3 262.3l.3-9.3-2.5-2.2h-37.7l-2.3 2.2.2 9.3-31.5-14.9 11 9 22.3 15.5h38.3l22.4-15.5 11-9z"
2495
2144
  }
2496
2145
  ),
2497
- /* @__PURE__ */ H.default.createElement(
2146
+ /* @__PURE__ */ O.default.createElement(
2498
2147
  "path",
2499
2148
  {
2500
2149
  fill: "#161616",
@@ -2504,7 +2153,7 @@ function ya({ size: t }) {
2504
2153
  d: "M177.9 230.9l-4.8-3.3h-27.7l-4.8 3.3-2.5 22.1 2.3-2.2h37.7l2.5 2.2z"
2505
2154
  }
2506
2155
  ),
2507
- /* @__PURE__ */ H.default.createElement(
2156
+ /* @__PURE__ */ O.default.createElement(
2508
2157
  "path",
2509
2158
  {
2510
2159
  fill: "#763d16",
@@ -2514,41 +2163,41 @@ function ya({ size: t }) {
2514
2163
  d: "M278.3 114.2l8.5-40.8-12.7-37.9-96.2 71.4 37 31.3 52.3 15.3 11.6-13.5-5-3.6 8-7.3-6.2-4.8 8-6.1zM31.8 73.4l8.5 40.8-5.4 4 8 6.1-6.1 4.8 8 7.3-5 3.6 11.5 13.5 52.3-15.3 37-31.3-96.2-71.4z"
2515
2164
  }
2516
2165
  ),
2517
- /* @__PURE__ */ H.default.createElement(
2166
+ /* @__PURE__ */ O.default.createElement(
2518
2167
  "path",
2519
- F({
2168
+ T({
2520
2169
  d: "M267.2 153.5l-52.3-15.3 15.9 23.9-23.7 46 31.2-.4h46.5zm-163.6-15.3l-52.3 15.3-17.4 54.2h46.4l31.1.4-23.6-46zm71 26.4l3.3-57.7 15.2-41.1h-67.5l15 41.1 3.5 57.7 1.2 18.2.1 44.8h27.7l.2-44.8z"
2521
- }, At)
2170
+ }, qe)
2522
2171
  )
2523
2172
  );
2524
2173
  }
2525
- var Tt = {
2174
+ var Ve = {
2526
2175
  fill: "#e4761b",
2527
2176
  stroke: "#e4761b",
2528
2177
  strokeLinecap: "round",
2529
2178
  strokeLinejoin: "round"
2530
- }, At = {
2179
+ }, qe = {
2531
2180
  fill: "#f6851b",
2532
2181
  stroke: "#f6851b",
2533
2182
  strokeLinecap: "round",
2534
2183
  strokeLinejoin: "round"
2535
- }, Mt = L(m), wa = {
2536
- icon: va,
2184
+ }, Ye = v(f), co = {
2185
+ icon: so,
2537
2186
  style: { background: "#fc6d26" },
2538
2187
  activeStyle: { background: "#d55a1c" },
2539
2188
  text: "Log in with Gitlab"
2540
- }, ba = O(wa);
2541
- function va({ size: t, color: e }) {
2542
- return /* @__PURE__ */ Mt.default.createElement("svg", { fill: e, role: "img", viewBox: "0 0 24 24", width: t, height: t, xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ Mt.default.createElement("path", { d: "M21.94 13.11L20.89 9.89C20.89 9.86 20.88 9.83 20.87 9.8L18.76 3.32C18.65 3 18.33 2.75 17.96 2.75C17.6 2.75 17.28 3 17.17 3.33L15.17 9.5H8.84L6.83 3.33C6.72 3 6.4 2.75 6.04 2.75H6.04C5.67 2.75 5.35 3 5.24 3.33L3.13 9.82C3.13 9.82 3.13 9.83 3.13 9.83L2.06 13.11C1.9 13.61 2.07 14.15 2.5 14.45L11.72 21.16C11.89 21.28 12.11 21.28 12.28 21.15L21.5 14.45C21.93 14.15 22.1 13.61 21.94 13.11M8.15 10.45L10.72 18.36L4.55 10.45M13.28 18.37L15.75 10.78L15.85 10.45H19.46L13.87 17.61M17.97 3.94L19.78 9.5H16.16M14.86 10.45L13.07 15.96L12 19.24L9.14 10.45M6.03 3.94L7.84 9.5H4.23M3.05 13.69C2.96 13.62 2.92 13.5 2.96 13.4L3.75 10.97L9.57 18.42M20.95 13.69L14.44 18.42L14.46 18.39L20.25 10.97L21.04 13.4C21.08 13.5 21.04 13.62 20.95 13.69" }));
2189
+ }, ro = j(co);
2190
+ function so({ size: t, color: e }) {
2191
+ return /* @__PURE__ */ Ye.default.createElement("svg", { fill: e, role: "img", viewBox: "0 0 24 24", width: t, height: t, xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ Ye.default.createElement("path", { d: "M21.94 13.11L20.89 9.89C20.89 9.86 20.88 9.83 20.87 9.8L18.76 3.32C18.65 3 18.33 2.75 17.96 2.75C17.6 2.75 17.28 3 17.17 3.33L15.17 9.5H8.84L6.83 3.33C6.72 3 6.4 2.75 6.04 2.75H6.04C5.67 2.75 5.35 3 5.24 3.33L3.13 9.82C3.13 9.82 3.13 9.83 3.13 9.83L2.06 13.11C1.9 13.61 2.07 14.15 2.5 14.45L11.72 21.16C11.89 21.28 12.11 21.28 12.28 21.15L21.5 14.45C21.93 14.15 22.1 13.61 21.94 13.11M8.15 10.45L10.72 18.36L4.55 10.45M13.28 18.37L15.75 10.78L15.85 10.45H19.46L13.87 17.61M17.97 3.94L19.78 9.5H16.16M14.86 10.45L13.07 15.96L12 19.24L9.14 10.45M6.03 3.94L7.84 9.5H4.23M3.05 13.69C2.96 13.62 2.92 13.5 2.96 13.4L3.75 10.97L9.57 18.42M20.95 13.69L14.44 18.42L14.46 18.39L20.25 10.97L21.04 13.4C21.08 13.5 21.04 13.62 20.95 13.69" }));
2543
2192
  }
2544
- var zt = L(m), xa = {
2193
+ var Qe = v(f), uo = {
2545
2194
  activeStyle: { background: "#282e36" },
2546
- icon: ka,
2195
+ icon: fo,
2547
2196
  style: { background: "#0f1419" },
2548
2197
  text: "Log in with X"
2549
- }, $a = O(xa);
2550
- function ka({ size: t, color: e }) {
2551
- return /* @__PURE__ */ zt.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ zt.default.createElement(
2198
+ }, po = j(uo);
2199
+ function fo({ size: t, color: e }) {
2200
+ return /* @__PURE__ */ Qe.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ Qe.default.createElement(
2552
2201
  "path",
2553
2202
  {
2554
2203
  fill: e,
@@ -2556,491 +2205,491 @@ function ka({ size: t, color: e }) {
2556
2205
  }
2557
2206
  ));
2558
2207
  }
2559
- function Sa({ width: t = 24, height: e = 24, color: o }) {
2560
- return /* @__PURE__ */ a.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", height: "48", width: "32", viewBox: "-18.15 -35.9725 157.3 215.835", children: [
2561
- /* @__PURE__ */ a.jsx("path", { fill: "#faab07", d: "M60.503 142.237c-12.533 0-24.038-4.195-31.445-10.46-3.762 1.124-8.574 2.932-11.61 5.175-2.6 1.918-2.275 3.874-1.807 4.663 2.056 3.47 35.273 2.216 44.862 1.136zm0 0c12.535 0 24.039-4.195 31.447-10.46 3.76 1.124 8.573 2.932 11.61 5.175 2.598 1.918 2.274 3.874 1.805 4.663-2.056 3.47-35.272 2.216-44.862 1.136zm0 0" }),
2562
- /* @__PURE__ */ a.jsx("path", { d: "M60.576 67.119c20.698-.14 37.286-4.147 42.907-5.683 1.34-.367 2.056-1.024 2.056-1.024.005-.189.085-3.37.085-5.01C105.624 27.768 92.58.001 60.5 0 28.42.001 15.375 27.769 15.375 55.401c0 1.642.08 4.822.086 5.01 0 0 .583.615 1.65.913 5.19 1.444 22.09 5.65 43.312 5.795zm56.245 23.02c-1.283-4.129-3.034-8.944-4.808-13.568 0 0-1.02-.126-1.537.023-15.913 4.623-35.202 7.57-49.9 7.392h-.153c-14.616.175-33.774-2.737-49.634-7.315-.606-.175-1.802-.1-1.802-.1-1.774 4.624-3.525 9.44-4.808 13.568-6.119 19.69-4.136 27.838-2.627 28.02 3.239.392 12.606-14.821 12.606-14.821 0 15.459 13.957 39.195 45.918 39.413h.848c31.96-.218 45.917-23.954 45.917-39.413 0 0 9.368 15.213 12.607 14.822 1.508-.183 3.491-8.332-2.627-28.021" }),
2563
- /* @__PURE__ */ a.jsx("path", { fill: "#fff", d: "M49.085 40.824c-4.352.197-8.07-4.76-8.304-11.063-.236-6.305 3.098-11.576 7.45-11.773 4.347-.195 8.064 4.76 8.3 11.065.238 6.306-3.097 11.577-7.446 11.771m31.133-11.063c-.233 6.302-3.951 11.26-8.303 11.063-4.35-.195-7.684-5.465-7.446-11.77.236-6.305 3.952-11.26 8.3-11.066 4.352.197 7.686 5.468 7.449 11.773" }),
2564
- /* @__PURE__ */ a.jsx("path", { fill: "#faab07", d: "M87.952 49.725C86.79 47.15 75.077 44.28 60.578 44.28h-.156c-14.5 0-26.212 2.87-27.375 5.446a.863.863 0 00-.085.367.88.88 0 00.16.496c.98 1.427 13.985 8.487 27.3 8.487h.156c13.314 0 26.319-7.058 27.299-8.487a.873.873 0 00.16-.498.856.856 0 00-.085-.365" }),
2565
- /* @__PURE__ */ a.jsx("path", { d: "M54.434 29.854c.199 2.49-1.167 4.702-3.046 4.943-1.883.242-3.568-1.58-3.768-4.07-.197-2.492 1.167-4.704 3.043-4.944 1.886-.244 3.574 1.58 3.771 4.07m11.956.833c.385-.689 3.004-4.312 8.427-2.993 1.425.347 2.084.857 2.223 1.057.205.296.262.718.053 1.286-.412 1.126-1.263 1.095-1.734.875-.305-.142-4.082-2.66-7.562 1.097-.24.257-.668.346-1.073.04-.407-.308-.574-.93-.334-1.362" }),
2566
- /* @__PURE__ */ a.jsx("path", { fill: "#fff", d: "M60.576 83.08h-.153c-9.996.12-22.116-1.204-33.854-3.518-1.004 5.818-1.61 13.132-1.09 21.853 1.316 22.043 14.407 35.9 34.614 36.1h.82c20.208-.2 33.298-14.057 34.616-36.1.52-8.723-.087-16.035-1.092-21.854-11.739 2.315-23.862 3.64-33.86 3.518" }),
2567
- /* @__PURE__ */ a.jsx("path", { fill: "#eb1923", d: "M32.102 81.235v21.693s9.937 2.004 19.893.616V83.535c-6.307-.357-13.109-1.152-19.893-2.3" }),
2568
- /* @__PURE__ */ a.jsx("path", { fill: "#eb1923", d: "M105.539 60.412s-19.33 6.102-44.963 6.275h-.153c-25.591-.172-44.896-6.255-44.962-6.275L8.987 76.57c16.193 4.882 36.261 8.028 51.436 7.845h.153c15.175.183 35.242-2.963 51.437-7.845zm0 0" })
2208
+ function go({ width: t = 24, height: e = 24, color: n }) {
2209
+ return /* @__PURE__ */ o.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", height: "48", width: "32", viewBox: "-18.15 -35.9725 157.3 215.835", children: [
2210
+ /* @__PURE__ */ o.jsx("path", { fill: "#faab07", d: "M60.503 142.237c-12.533 0-24.038-4.195-31.445-10.46-3.762 1.124-8.574 2.932-11.61 5.175-2.6 1.918-2.275 3.874-1.807 4.663 2.056 3.47 35.273 2.216 44.862 1.136zm0 0c12.535 0 24.039-4.195 31.447-10.46 3.76 1.124 8.573 2.932 11.61 5.175 2.598 1.918 2.274 3.874 1.805 4.663-2.056 3.47-35.272 2.216-44.862 1.136zm0 0" }),
2211
+ /* @__PURE__ */ o.jsx("path", { d: "M60.576 67.119c20.698-.14 37.286-4.147 42.907-5.683 1.34-.367 2.056-1.024 2.056-1.024.005-.189.085-3.37.085-5.01C105.624 27.768 92.58.001 60.5 0 28.42.001 15.375 27.769 15.375 55.401c0 1.642.08 4.822.086 5.01 0 0 .583.615 1.65.913 5.19 1.444 22.09 5.65 43.312 5.795zm56.245 23.02c-1.283-4.129-3.034-8.944-4.808-13.568 0 0-1.02-.126-1.537.023-15.913 4.623-35.202 7.57-49.9 7.392h-.153c-14.616.175-33.774-2.737-49.634-7.315-.606-.175-1.802-.1-1.802-.1-1.774 4.624-3.525 9.44-4.808 13.568-6.119 19.69-4.136 27.838-2.627 28.02 3.239.392 12.606-14.821 12.606-14.821 0 15.459 13.957 39.195 45.918 39.413h.848c31.96-.218 45.917-23.954 45.917-39.413 0 0 9.368 15.213 12.607 14.822 1.508-.183 3.491-8.332-2.627-28.021" }),
2212
+ /* @__PURE__ */ o.jsx("path", { fill: "#fff", d: "M49.085 40.824c-4.352.197-8.07-4.76-8.304-11.063-.236-6.305 3.098-11.576 7.45-11.773 4.347-.195 8.064 4.76 8.3 11.065.238 6.306-3.097 11.577-7.446 11.771m31.133-11.063c-.233 6.302-3.951 11.26-8.303 11.063-4.35-.195-7.684-5.465-7.446-11.77.236-6.305 3.952-11.26 8.3-11.066 4.352.197 7.686 5.468 7.449 11.773" }),
2213
+ /* @__PURE__ */ o.jsx("path", { fill: "#faab07", d: "M87.952 49.725C86.79 47.15 75.077 44.28 60.578 44.28h-.156c-14.5 0-26.212 2.87-27.375 5.446a.863.863 0 00-.085.367.88.88 0 00.16.496c.98 1.427 13.985 8.487 27.3 8.487h.156c13.314 0 26.319-7.058 27.299-8.487a.873.873 0 00.16-.498.856.856 0 00-.085-.365" }),
2214
+ /* @__PURE__ */ o.jsx("path", { d: "M54.434 29.854c.199 2.49-1.167 4.702-3.046 4.943-1.883.242-3.568-1.58-3.768-4.07-.197-2.492 1.167-4.704 3.043-4.944 1.886-.244 3.574 1.58 3.771 4.07m11.956.833c.385-.689 3.004-4.312 8.427-2.993 1.425.347 2.084.857 2.223 1.057.205.296.262.718.053 1.286-.412 1.126-1.263 1.095-1.734.875-.305-.142-4.082-2.66-7.562 1.097-.24.257-.668.346-1.073.04-.407-.308-.574-.93-.334-1.362" }),
2215
+ /* @__PURE__ */ o.jsx("path", { fill: "#fff", d: "M60.576 83.08h-.153c-9.996.12-22.116-1.204-33.854-3.518-1.004 5.818-1.61 13.132-1.09 21.853 1.316 22.043 14.407 35.9 34.614 36.1h.82c20.208-.2 33.298-14.057 34.616-36.1.52-8.723-.087-16.035-1.092-21.854-11.739 2.315-23.862 3.64-33.86 3.518" }),
2216
+ /* @__PURE__ */ o.jsx("path", { fill: "#eb1923", d: "M32.102 81.235v21.693s9.937 2.004 19.893.616V83.535c-6.307-.357-13.109-1.152-19.893-2.3" }),
2217
+ /* @__PURE__ */ o.jsx("path", { fill: "#eb1923", d: "M105.539 60.412s-19.33 6.102-44.963 6.275h-.153c-25.591-.172-44.896-6.255-44.962-6.275L8.987 76.57c16.193 4.882 36.261 8.028 51.436 7.845h.153c15.175.183 35.242-2.963 51.437-7.845zm0 0" })
2569
2218
  ] });
2570
2219
  }
2571
- const _a = {
2220
+ const ho = {
2572
2221
  text: "Sign in with QQ",
2573
- icon: Sa,
2222
+ icon: go,
2574
2223
  iconFormat: (t) => `fa fa-${t}`,
2575
2224
  style: { background: "rgb(94,188,249)" },
2576
2225
  activeStyle: { background: "rgb(76,143,208)" }
2577
- }, Ca = C.createButton(_a);
2578
- function Ea({ width: t = 24, height: e = 24, color: o }) {
2579
- return /* @__PURE__ */ a.jsx(
2226
+ }, mo = y.createButton(ho);
2227
+ function wo({ width: t = 24, height: e = 24, color: n }) {
2228
+ return /* @__PURE__ */ o.jsx(
2580
2229
  "img",
2581
2230
  {
2582
- src: `${d}/buttons/facebook.svg`,
2231
+ src: `${s}/buttons/facebook.svg`,
2583
2232
  alt: "Sign in with Facebook"
2584
2233
  }
2585
2234
  );
2586
2235
  }
2587
- const ja = {
2236
+ const yo = {
2588
2237
  text: "Sign in with Facebook",
2589
- icon: Ea,
2238
+ icon: wo,
2590
2239
  iconFormat: (t) => `fa fa-${t}`,
2591
2240
  style: { background: "#3b5998" },
2592
2241
  activeStyle: { background: "#2b3f65" }
2593
- }, La = C.createButton(ja);
2594
- function Ta({ width: t = 24, height: e = 24, color: o }) {
2595
- return /* @__PURE__ */ a.jsx("img", { src: `${d}/buttons/weibo.svg`, alt: "Sign in with Weibo" });
2242
+ }, bo = y.createButton(yo);
2243
+ function xo({ width: t = 24, height: e = 24, color: n }) {
2244
+ return /* @__PURE__ */ o.jsx("img", { src: `${s}/buttons/weibo.svg`, alt: "Sign in with Weibo" });
2596
2245
  }
2597
- const Aa = {
2246
+ const $o = {
2598
2247
  text: "Sign in with Weibo",
2599
- icon: Ta,
2248
+ icon: xo,
2600
2249
  iconFormat: (t) => `fa fa-${t}`,
2601
2250
  style: { background: "#e62329" },
2602
2251
  activeStyle: { background: "#e54329" }
2603
- }, Ma = C.createButton(Aa);
2604
- function za({ width: t = 24, height: e = 24, color: o }) {
2605
- return /* @__PURE__ */ a.jsx("img", { src: `${d}/buttons/gitee.svg`, alt: "Sign in with Gitee" });
2252
+ }, ko = y.createButton($o);
2253
+ function vo({ width: t = 24, height: e = 24, color: n }) {
2254
+ return /* @__PURE__ */ o.jsx("img", { src: `${s}/buttons/gitee.svg`, alt: "Sign in with Gitee" });
2606
2255
  }
2607
- const Oa = {
2256
+ const So = {
2608
2257
  text: "Sign in with Gitee",
2609
- icon: za,
2258
+ icon: vo,
2610
2259
  iconFormat: (t) => `fa fa-${t}`,
2611
2260
  style: { background: "rgb(199,29,35)" },
2612
2261
  activeStyle: { background: "rgb(147,22,26)" }
2613
- }, Ba = C.createButton(Oa);
2614
- function Pa({ width: t = 24, height: e = 24, color: o }) {
2615
- return /* @__PURE__ */ a.jsx(
2262
+ }, _o = y.createButton(So);
2263
+ function Co({ width: t = 24, height: e = 24, color: n }) {
2264
+ return /* @__PURE__ */ o.jsx(
2616
2265
  "img",
2617
2266
  {
2618
- src: `${d}/buttons/wechat.svg`,
2267
+ src: `${s}/buttons/wechat.svg`,
2619
2268
  alt: "Sign in with Wechat"
2620
2269
  }
2621
2270
  );
2622
2271
  }
2623
- const Ra = {
2272
+ const Eo = {
2624
2273
  text: "Sign in with Wechat",
2625
- icon: Pa,
2274
+ icon: Co,
2626
2275
  iconFormat: (t) => `fa fa-${t}`,
2627
2276
  style: { background: "rgb(0,194,80)" },
2628
2277
  activeStyle: { background: "rgb(0,158,64)" }
2629
- }, Ia = C.createButton(Ra);
2630
- function Fa({ width: t = 24, height: e = 24, color: o }) {
2631
- return /* @__PURE__ */ a.jsx(
2278
+ }, jo = y.createButton(Eo);
2279
+ function Lo({ width: t = 24, height: e = 24, color: n }) {
2280
+ return /* @__PURE__ */ o.jsx(
2632
2281
  "img",
2633
2282
  {
2634
- src: `${d}/buttons/dingtalk.svg`,
2283
+ src: `${s}/buttons/dingtalk.svg`,
2635
2284
  alt: "Sign in with DingTalk"
2636
2285
  }
2637
2286
  );
2638
2287
  }
2639
- const Na = {
2288
+ const Ao = {
2640
2289
  text: "Sign in with DingTalk",
2641
- icon: Fa,
2290
+ icon: Lo,
2642
2291
  iconFormat: (t) => `fa fa-${t}`,
2643
2292
  style: { background: "#0191e0" },
2644
2293
  activeStyle: { background: "rgb(76,143,208)" }
2645
- }, Da = C.createButton(Na);
2646
- function Ua({ width: t = 24, height: e = 24, color: o }) {
2647
- return /* @__PURE__ */ a.jsx(
2294
+ }, zo = y.createButton(Ao);
2295
+ function Mo({ width: t = 24, height: e = 24, color: n }) {
2296
+ return /* @__PURE__ */ o.jsx(
2648
2297
  "img",
2649
2298
  {
2650
- src: `${d}/buttons/linkedin.svg`,
2299
+ src: `${s}/buttons/linkedin.svg`,
2651
2300
  alt: "Sign in with LinkedIn"
2652
2301
  }
2653
2302
  );
2654
2303
  }
2655
- const Wa = {
2304
+ const To = {
2656
2305
  text: "Sign in with LinkedIn",
2657
- icon: Ua,
2306
+ icon: Mo,
2658
2307
  iconFormat: (t) => `fa fa-${t}`,
2659
2308
  style: { background: "rgb(255,255,255)", color: "#000000" },
2660
2309
  activeStyle: { background: "rgb(240,240,250)" }
2661
- }, Ha = C.createButton(Wa);
2662
- function Va({ width: t = 24, height: e = 24, color: o }) {
2663
- return /* @__PURE__ */ a.jsx("img", { src: `${d}/buttons/wecom.svg`, alt: "Sign in with WeCom" });
2310
+ }, Bo = y.createButton(To);
2311
+ function No({ width: t = 24, height: e = 24, color: n }) {
2312
+ return /* @__PURE__ */ o.jsx("img", { src: `${s}/buttons/wecom.svg`, alt: "Sign in with WeCom" });
2664
2313
  }
2665
- const Ga = {
2314
+ const Oo = {
2666
2315
  text: "Sign in with WeCom",
2667
- icon: Va,
2316
+ icon: No,
2668
2317
  iconFormat: (t) => `fa fa-${t}`,
2669
2318
  style: { background: "rgb(255,255,255)", color: "#000000" },
2670
2319
  activeStyle: { background: "rgb(100,150,250)" }
2671
- }, qa = C.createButton(Ga);
2672
- function Ya({ width: t = 24, height: e = 24, color: o }) {
2673
- return /* @__PURE__ */ a.jsx(
2320
+ }, Io = y.createButton(Oo);
2321
+ function Po({ width: t = 24, height: e = 24, color: n }) {
2322
+ return /* @__PURE__ */ o.jsx(
2674
2323
  "img",
2675
2324
  {
2676
- src: `${d}/buttons/lark.svg`,
2325
+ src: `${s}/buttons/lark.svg`,
2677
2326
  alt: "Sign in with Lark",
2678
2327
  style: { width: 24, height: 24 }
2679
2328
  }
2680
2329
  );
2681
2330
  }
2682
- const Ka = {
2331
+ const Fo = {
2683
2332
  text: "Sign in with Lark",
2684
- icon: Ya,
2333
+ icon: Po,
2685
2334
  iconFormat: (t) => `fa fa-${t}`,
2686
2335
  style: { background: "#ffffff", color: "#000000" },
2687
2336
  activeStyle: { background: "#ededee" }
2688
- }, Ja = C.createButton(Ka);
2689
- function Qa({ width: t = 24, height: e = 24, color: o }) {
2690
- return /* @__PURE__ */ a.jsx(
2337
+ }, Ro = y.createButton(Fo);
2338
+ function Do({ width: t = 24, height: e = 24, color: n }) {
2339
+ return /* @__PURE__ */ o.jsx(
2691
2340
  "img",
2692
2341
  {
2693
- src: `${d}/buttons/gitlab.svg`,
2342
+ src: `${s}/buttons/gitlab.svg`,
2694
2343
  alt: "Sign in with GitLab",
2695
2344
  style: { width: 24, height: 24 }
2696
2345
  }
2697
2346
  );
2698
2347
  }
2699
- const Za = {
2348
+ const Uo = {
2700
2349
  text: "Sign in with GitLab",
2701
- icon: Qa,
2350
+ icon: Do,
2702
2351
  iconFormat: (t) => `fa fa-${t}`,
2703
2352
  style: { background: "rgb(255,255,255)", color: "#000000" },
2704
2353
  activeStyle: { background: "rgb(100,150,250)" }
2705
- }, Xa = C.createButton(Za);
2706
- function ei({ width: t = 24, height: e = 24, color: o }) {
2707
- return /* @__PURE__ */ a.jsx(
2354
+ }, Wo = y.createButton(Uo);
2355
+ function Ho({ width: t = 24, height: e = 24, color: n }) {
2356
+ return /* @__PURE__ */ o.jsx(
2708
2357
  "img",
2709
2358
  {
2710
- src: `${d}/buttons/adfs.svg`,
2359
+ src: `${s}/buttons/adfs.svg`,
2711
2360
  alt: "Sign in with ADFS",
2712
2361
  style: { width: 24, height: 24 }
2713
2362
  }
2714
2363
  );
2715
2364
  }
2716
- const ti = {
2365
+ const Go = {
2717
2366
  text: "Sign in with ADFS",
2718
- icon: ei,
2367
+ icon: Ho,
2719
2368
  iconFormat: (t) => `fa fa-${t}`,
2720
2369
  style: { background: "#ffffff", color: "#000000" },
2721
2370
  activeStyle: { background: "#ededee" }
2722
- }, ni = C.createButton(ti);
2723
- function oi({ width: t = 24, height: e = 24, color: o }) {
2724
- return /* @__PURE__ */ a.jsx(
2371
+ }, Vo = y.createButton(Go);
2372
+ function qo({ width: t = 24, height: e = 24, color: n }) {
2373
+ return /* @__PURE__ */ o.jsx(
2725
2374
  "img",
2726
2375
  {
2727
- src: `${d}/buttons/casdoor.svg`,
2376
+ src: `${s}/buttons/casdoor.svg`,
2728
2377
  alt: "Sign in with Casdoor",
2729
2378
  style: { width: 24, height: 24 }
2730
2379
  }
2731
2380
  );
2732
2381
  }
2733
- const ai = {
2382
+ const Yo = {
2734
2383
  text: "Sign in with Casdoor",
2735
- icon: oi,
2384
+ icon: qo,
2736
2385
  iconFormat: (t) => `fa fa-${t}`,
2737
2386
  style: { background: "#ffffff", color: "#000000" },
2738
2387
  activeStyle: { background: "#ededee" }
2739
- }, ii = C.createButton(ai);
2740
- function ri({ width: t = 24, height: e = 24, color: o }) {
2741
- return /* @__PURE__ */ a.jsx(
2388
+ }, Qo = y.createButton(Yo);
2389
+ function Jo({ width: t = 24, height: e = 24, color: n }) {
2390
+ return /* @__PURE__ */ o.jsx(
2742
2391
  "img",
2743
2392
  {
2744
- src: `${d}/buttons/baidu.svg`,
2393
+ src: `${s}/buttons/baidu.svg`,
2745
2394
  alt: "Sign in with Baidu",
2746
2395
  style: { width: 24, height: 24 }
2747
2396
  }
2748
2397
  );
2749
2398
  }
2750
- const li = {
2399
+ const Zo = {
2751
2400
  text: "Sign in with Baidu",
2752
- icon: ri,
2401
+ icon: Jo,
2753
2402
  iconFormat: (t) => `fa fa-${t}`,
2754
2403
  style: { background: "#ffffff", color: "#000000" },
2755
2404
  activeStyle: { background: "#ededee" }
2756
- }, ci = C.createButton(li);
2757
- function si({ width: t = 24, height: e = 24, color: o }) {
2758
- return /* @__PURE__ */ a.jsx(
2405
+ }, Ko = y.createButton(Zo);
2406
+ function Xo({ width: t = 24, height: e = 24, color: n }) {
2407
+ return /* @__PURE__ */ o.jsx(
2759
2408
  "img",
2760
2409
  {
2761
- src: `${d}/buttons/alipay.svg`,
2410
+ src: `${s}/buttons/alipay.svg`,
2762
2411
  alt: "Sign in with Alipay",
2763
2412
  style: { width: 24, height: 24 }
2764
2413
  }
2765
2414
  );
2766
2415
  }
2767
- const ui = {
2416
+ const ea = {
2768
2417
  text: "Sign in with Alipay",
2769
- icon: si,
2418
+ icon: Xo,
2770
2419
  iconFormat: (t) => `fa fa-${t}`,
2771
2420
  style: { background: "#ffffff", color: "#000000" },
2772
2421
  activeStyle: { background: "#ededee" }
2773
- }, di = C.createButton(ui);
2774
- function fi({ width: t = 24, height: e = 24, color: o }) {
2775
- return /* @__PURE__ */ a.jsx(
2422
+ }, ta = y.createButton(ea);
2423
+ function na({ width: t = 24, height: e = 24, color: n }) {
2424
+ return /* @__PURE__ */ o.jsx(
2776
2425
  "img",
2777
2426
  {
2778
- src: `${d}/buttons/infoflow.svg`,
2427
+ src: `${s}/buttons/infoflow.svg`,
2779
2428
  alt: "Sign in with Infoflow",
2780
2429
  style: { width: 24, height: 24 }
2781
2430
  }
2782
2431
  );
2783
2432
  }
2784
- const pi = {
2433
+ const oa = {
2785
2434
  text: "Sign in with Infoflow",
2786
- icon: fi,
2435
+ icon: na,
2787
2436
  iconFormat: (t) => `fa fa-${t}`,
2788
2437
  style: { background: "#ffffff", color: "#000000" },
2789
2438
  activeStyle: { background: "#ededee" }
2790
- }, gi = C.createButton(pi);
2791
- function hi({ width: t = 24, height: e = 24, color: o }) {
2792
- return /* @__PURE__ */ a.jsx(
2439
+ }, aa = y.createButton(oa);
2440
+ function ia({ width: t = 24, height: e = 24, color: n }) {
2441
+ return /* @__PURE__ */ o.jsx(
2793
2442
  "img",
2794
2443
  {
2795
- src: `${d}/buttons/apple.svg`,
2444
+ src: `${s}/buttons/apple.svg`,
2796
2445
  alt: "Sign in with Apple",
2797
2446
  style: { width: 24, height: 24 }
2798
2447
  }
2799
2448
  );
2800
2449
  }
2801
- const mi = {
2450
+ const la = {
2802
2451
  text: "Sign in with Apple",
2803
- icon: hi,
2452
+ icon: ia,
2804
2453
  iconFormat: (t) => `fa fa-${t}`,
2805
2454
  style: { background: "#ffffff", color: "#000000" },
2806
2455
  activeStyle: { background: "#ededee" }
2807
- }, yi = C.createButton(mi);
2808
- function wi({ width: t = 24, height: e = 24, color: o }) {
2809
- return /* @__PURE__ */ a.jsx(
2456
+ }, ca = y.createButton(la);
2457
+ function ra({ width: t = 24, height: e = 24, color: n }) {
2458
+ return /* @__PURE__ */ o.jsx(
2810
2459
  "img",
2811
2460
  {
2812
- src: `${d}/buttons/azuread.svg`,
2461
+ src: `${s}/buttons/azuread.svg`,
2813
2462
  alt: "Sign in with Azure AD",
2814
2463
  style: { width: 24, height: 24 }
2815
2464
  }
2816
2465
  );
2817
2466
  }
2818
- const bi = {
2467
+ const sa = {
2819
2468
  text: "Sign in with Azure AD",
2820
- icon: wi,
2469
+ icon: ra,
2821
2470
  iconFormat: (t) => `fa fa-${t}`,
2822
2471
  style: { background: "#ffffff", color: "#000000" },
2823
2472
  activeStyle: { background: "#ededee" }
2824
- }, vi = C.createButton(bi);
2825
- function xi({ width: t = 24, height: e = 24, color: o }) {
2826
- return /* @__PURE__ */ a.jsx(
2473
+ }, ua = y.createButton(sa);
2474
+ function da({ width: t = 24, height: e = 24, color: n }) {
2475
+ return /* @__PURE__ */ o.jsx(
2827
2476
  "img",
2828
2477
  {
2829
- src: `${d}/buttons/azuread.svg`,
2478
+ src: `${s}/buttons/azuread.svg`,
2830
2479
  alt: "Sign in with Azure AD B2C",
2831
2480
  style: { width: 24, height: 24 }
2832
2481
  }
2833
2482
  );
2834
2483
  }
2835
- const $i = {
2484
+ const pa = {
2836
2485
  text: "Sign in with Azure AD B2C",
2837
- icon: xi,
2486
+ icon: da,
2838
2487
  iconFormat: (t) => `fa fa-${t}`,
2839
2488
  style: { background: "#ffffff", color: "#000000" },
2840
2489
  activeStyle: { background: "#ededee" }
2841
- }, ki = C.createButton($i);
2842
- function Si({ width: t = 24, height: e = 24, color: o }) {
2843
- return /* @__PURE__ */ a.jsx(
2490
+ }, fa = y.createButton(pa);
2491
+ function ga({ width: t = 24, height: e = 24, color: n }) {
2492
+ return /* @__PURE__ */ o.jsx(
2844
2493
  "img",
2845
2494
  {
2846
- src: `${d}/buttons/slack.svg`,
2495
+ src: `${s}/buttons/slack.svg`,
2847
2496
  alt: "Sign in with Slack",
2848
2497
  style: { width: 24, height: 24 }
2849
2498
  }
2850
2499
  );
2851
2500
  }
2852
- const _i = {
2501
+ const ha = {
2853
2502
  text: "Sign in with Slack",
2854
- icon: Si,
2503
+ icon: ga,
2855
2504
  iconFormat: (t) => `fa fa-${t}`,
2856
2505
  style: { background: "#ffffff", color: "#000000" },
2857
2506
  activeStyle: { background: "#ededee" }
2858
- }, Ci = C.createButton(_i);
2859
- function Ei({ width: t = 24, height: e = 24, color: o }) {
2860
- return /* @__PURE__ */ a.jsx(
2507
+ }, ma = y.createButton(ha);
2508
+ function wa({ width: t = 24, height: e = 24, color: n }) {
2509
+ return /* @__PURE__ */ o.jsx(
2861
2510
  "img",
2862
2511
  {
2863
- src: `${d}/buttons/steam.svg`,
2512
+ src: `${s}/buttons/steam.svg`,
2864
2513
  alt: "Sign in with Steam",
2865
2514
  style: { width: 24, height: 24 }
2866
2515
  }
2867
2516
  );
2868
2517
  }
2869
- const ji = {
2518
+ const ya = {
2870
2519
  text: "Sign in with Steam",
2871
- icon: Ei,
2520
+ icon: wa,
2872
2521
  iconFormat: (t) => `fa fa-${t}`,
2873
2522
  style: { background: "#ffffff", color: "#000000" },
2874
2523
  activeStyle: { background: "#ededee" }
2875
- }, Li = C.createButton(ji);
2876
- function Ti({ width: t = 24, height: e = 24, color: o }) {
2877
- return /* @__PURE__ */ a.jsx(
2524
+ }, ba = y.createButton(ya);
2525
+ function xa({ width: t = 24, height: e = 24, color: n }) {
2526
+ return /* @__PURE__ */ o.jsx(
2878
2527
  "img",
2879
2528
  {
2880
- src: `${d}/buttons/bilibili.svg`,
2529
+ src: `${s}/buttons/bilibili.svg`,
2881
2530
  alt: "Sign in with Bilibili"
2882
2531
  }
2883
2532
  );
2884
2533
  }
2885
- const Ai = {
2534
+ const $a = {
2886
2535
  text: "Sign in with Bilibili",
2887
- icon: Ti,
2536
+ icon: xa,
2888
2537
  iconFormat: (t) => `fa fa-${t}`,
2889
2538
  style: { background: "#0191e0" },
2890
2539
  activeStyle: { background: "rgb(76,143,208)" }
2891
- }, Mi = C.createButton(Ai);
2892
- function zi({ width: t = 24, height: e = 24, color: o }) {
2893
- return /* @__PURE__ */ a.jsx(
2540
+ }, ka = y.createButton($a);
2541
+ function va({ width: t = 24, height: e = 24, color: n }) {
2542
+ return /* @__PURE__ */ o.jsx(
2894
2543
  "img",
2895
2544
  {
2896
- src: `${d}/buttons/okta.svg`,
2545
+ src: `${s}/buttons/okta.svg`,
2897
2546
  alt: "Sign in with Okta",
2898
2547
  style: { width: 24, height: 24 }
2899
2548
  }
2900
2549
  );
2901
2550
  }
2902
- const Oi = {
2551
+ const Sa = {
2903
2552
  text: "Sign in with Okta",
2904
- icon: zi,
2553
+ icon: va,
2905
2554
  iconFormat: (t) => `fa fa-${t}`,
2906
2555
  style: { background: "#ffffff", color: "#000000" },
2907
2556
  activeStyle: { background: "#ededee" }
2908
- }, Bi = C.createButton(Oi);
2909
- function Pi({ width: t = 24, height: e = 24, color: o }) {
2910
- return /* @__PURE__ */ a.jsx(
2557
+ }, _a = y.createButton(Sa);
2558
+ function Ca({ width: t = 24, height: e = 24, color: n }) {
2559
+ return /* @__PURE__ */ o.jsx(
2911
2560
  "img",
2912
2561
  {
2913
- src: `${d}/buttons/douyin.svg`,
2562
+ src: `${s}/buttons/douyin.svg`,
2914
2563
  alt: "Sign in with Douyin",
2915
2564
  style: { width: 24, height: 24 }
2916
2565
  }
2917
2566
  );
2918
2567
  }
2919
- const Ri = {
2568
+ const Ea = {
2920
2569
  text: "Sign in with Douyin",
2921
- icon: Pi,
2570
+ icon: Ca,
2922
2571
  iconFormat: (t) => `fa fa-${t}`,
2923
2572
  style: { background: "#ffffff", color: "#000000" },
2924
2573
  activeStyle: { background: "#ededee" }
2925
- }, Ii = C.createButton(Ri);
2926
- function Fi({ type: t, logoUrl: e, align: o = "center", style: r = { background: "#ffffff", color: "#000000" }, activeStyle: i = { background: "#ededee" } }) {
2927
- function l({ width: f = 24, height: h = 24, color: k }) {
2928
- return /* @__PURE__ */ a.jsx("img", { src: e, alt: `Sign in with ${t}`, style: { width: f, height: h } });
2574
+ }, ja = y.createButton(Ea);
2575
+ function La({ type: t, logoUrl: e, align: n = "center", style: i = { background: "#ffffff", color: "#000000" }, activeStyle: a = { background: "#ededee" } }) {
2576
+ function l({ width: d = 24, height: g = 24, color: b }) {
2577
+ return /* @__PURE__ */ o.jsx("img", { src: e, alt: `Sign in with ${t}`, style: { width: d, height: g } });
2929
2578
  }
2930
- const c = {
2579
+ const r = {
2931
2580
  text: `Sign in with ${t}`,
2932
2581
  icon: l,
2933
- style: r,
2934
- activeStyle: i
2935
- }, g = C.createButton(c), u = K.t("login:Sign in with {type}").replace("{type}", t);
2936
- return /* @__PURE__ */ a.jsx(g, { text: u, align: o });
2582
+ style: i,
2583
+ activeStyle: a
2584
+ }, p = y.createButton(r), u = U.t("login:Sign in with {type}").replace("{type}", t);
2585
+ return /* @__PURE__ */ o.jsx(p, { text: u, align: n });
2937
2586
  }
2938
- function Ye(t) {
2939
- const e = K.t("login:Sign in with {type}").replace(
2587
+ function je(t) {
2588
+ const e = U.t("login:Sign in with {type}").replace(
2940
2589
  "{type}",
2941
2590
  t.displayName !== "" ? t.displayName : t.type
2942
2591
  );
2943
- return t.type === "GitHub" ? /* @__PURE__ */ a.jsx(C.GithubLoginButton, { text: e, align: "center" }) : t.type === "Google" ? /* @__PURE__ */ a.jsx(C.GoogleLoginButton, { text: e, align: "center" }) : t.type === "QQ" ? /* @__PURE__ */ a.jsx(Ca, { text: e, align: "center" }) : t.type === "Facebook" ? /* @__PURE__ */ a.jsx(La, { text: e, align: "center" }) : t.type === "Weibo" ? /* @__PURE__ */ a.jsx(Ma, { text: e, align: "center" }) : t.type === "Gitee" ? /* @__PURE__ */ a.jsx(Ba, { text: e, align: "center" }) : t.type === "WeChat" ? /* @__PURE__ */ a.jsx(Ia, { text: e, align: "center" }) : t.type === "DingTalk" ? /* @__PURE__ */ a.jsx(Da, { text: e, align: "center" }) : t.type === "LinkedIn" ? /* @__PURE__ */ a.jsx(Ha, { text: e, align: "center" }) : t.type === "WeCom" ? /* @__PURE__ */ a.jsx(qa, { text: e, align: "center" }) : t.type === "Lark" ? /* @__PURE__ */ a.jsx(Ja, { text: e, align: "center" }) : t.type === "GitLab" ? /* @__PURE__ */ a.jsx(Xa, { text: e, align: "center" }) : t.type === "ADFS" ? /* @__PURE__ */ a.jsx(ni, { text: e, align: "center" }) : t.type === "Casdoor" ? /* @__PURE__ */ a.jsx(ii, { text: e, align: "center" }) : t.type === "Baidu" ? /* @__PURE__ */ a.jsx(ci, { text: e, align: "center" }) : t.type === "Alipay" ? /* @__PURE__ */ a.jsx(di, { text: e, align: "center" }) : t.type === "Infoflow" ? /* @__PURE__ */ a.jsx(gi, { text: e, align: "center" }) : t.type === "Apple" ? /* @__PURE__ */ a.jsx(yi, { text: e, align: "center" }) : t.type === "AzureAD" ? /* @__PURE__ */ a.jsx(vi, { text: e, align: "center" }) : t.type === "AzureADB2C" ? /* @__PURE__ */ a.jsx(ki, { text: e, align: "center" }) : t.type === "Slack" ? /* @__PURE__ */ a.jsx(Ci, { text: e, align: "center" }) : t.type === "Steam" ? /* @__PURE__ */ a.jsx(Li, { text: e, align: "center" }) : t.type === "Bilibili" ? /* @__PURE__ */ a.jsx(Mi, { text: e, align: "center" }) : t.type === "Okta" ? /* @__PURE__ */ a.jsx(Bi, { text: e, align: "center" }) : t.type === "Douyin" ? /* @__PURE__ */ a.jsx(Ii, { text: e, align: "center" }) : /* @__PURE__ */ a.jsx(
2944
- Fi,
2592
+ return t.type === "GitHub" ? /* @__PURE__ */ o.jsx(y.GithubLoginButton, { text: e, align: "center" }) : t.type === "Google" ? /* @__PURE__ */ o.jsx(y.GoogleLoginButton, { text: e, align: "center" }) : t.type === "QQ" ? /* @__PURE__ */ o.jsx(mo, { text: e, align: "center" }) : t.type === "Facebook" ? /* @__PURE__ */ o.jsx(bo, { text: e, align: "center" }) : t.type === "Weibo" ? /* @__PURE__ */ o.jsx(ko, { text: e, align: "center" }) : t.type === "Gitee" ? /* @__PURE__ */ o.jsx(_o, { text: e, align: "center" }) : t.type === "WeChat" ? /* @__PURE__ */ o.jsx(jo, { text: e, align: "center" }) : t.type === "DingTalk" ? /* @__PURE__ */ o.jsx(zo, { text: e, align: "center" }) : t.type === "LinkedIn" ? /* @__PURE__ */ o.jsx(Bo, { text: e, align: "center" }) : t.type === "WeCom" ? /* @__PURE__ */ o.jsx(Io, { text: e, align: "center" }) : t.type === "Lark" ? /* @__PURE__ */ o.jsx(Ro, { text: e, align: "center" }) : t.type === "GitLab" ? /* @__PURE__ */ o.jsx(Wo, { text: e, align: "center" }) : t.type === "ADFS" ? /* @__PURE__ */ o.jsx(Vo, { text: e, align: "center" }) : t.type === "Casdoor" ? /* @__PURE__ */ o.jsx(Qo, { text: e, align: "center" }) : t.type === "Baidu" ? /* @__PURE__ */ o.jsx(Ko, { text: e, align: "center" }) : t.type === "Alipay" ? /* @__PURE__ */ o.jsx(ta, { text: e, align: "center" }) : t.type === "Infoflow" ? /* @__PURE__ */ o.jsx(aa, { text: e, align: "center" }) : t.type === "Apple" ? /* @__PURE__ */ o.jsx(ca, { text: e, align: "center" }) : t.type === "AzureAD" ? /* @__PURE__ */ o.jsx(ua, { text: e, align: "center" }) : t.type === "AzureADB2C" ? /* @__PURE__ */ o.jsx(fa, { text: e, align: "center" }) : t.type === "Slack" ? /* @__PURE__ */ o.jsx(ma, { text: e, align: "center" }) : t.type === "Steam" ? /* @__PURE__ */ o.jsx(ba, { text: e, align: "center" }) : t.type === "Bilibili" ? /* @__PURE__ */ o.jsx(ka, { text: e, align: "center" }) : t.type === "Okta" ? /* @__PURE__ */ o.jsx(_a, { text: e, align: "center" }) : t.type === "Douyin" ? /* @__PURE__ */ o.jsx(ja, { text: e, align: "center" }) : /* @__PURE__ */ o.jsx(
2593
+ La,
2945
2594
  {
2946
2595
  type: t.type,
2947
- logoUrl: se(t)
2596
+ logoUrl: Z(t)
2948
2597
  },
2949
2598
  t.type
2950
2599
  );
2951
2600
  }
2952
- function Ke(t, e) {
2953
- const o = new URLSearchParams(e.search), r = o.get("client_id") ?? "", i = o.get("state"), l = o.get("redirect_uri"), c = `${window.location.origin}/callback/saml`, g = t.name, u = `${r}&${i}&${g}&${l}&${c}`;
2954
- Hn(
2955
- `${t.owner}/${g}`,
2601
+ function Le(t, e) {
2602
+ const n = new URLSearchParams(e.search), i = n.get("client_id") ?? "", a = n.get("state"), l = n.get("redirect_uri"), r = `${window.location.origin}/callback/saml`, p = t.name, u = `${i}&${a}&${p}&${l}&${r}`;
2603
+ Tt(
2604
+ `${t.owner}/${p}`,
2956
2605
  btoa(u)
2957
- ).then((f) => {
2958
- f.data2 === "POST" ? document.write(f.data) : window.location.href = f.data;
2606
+ ).then((d) => {
2607
+ d.data2 === "POST" ? document.write(d.data) : window.location.href = d.data;
2959
2608
  });
2960
2609
  }
2961
- function Ot(t, e, o) {
2962
- e.type === "MetaMask" ? import("./Web3Auth-C1gorwXx.js").then((r) => r.bO).then((r) => {
2963
- const i = r.authViaMetaMask;
2964
- i(t, e, o);
2965
- }) : e.type === "Web3Onboard" && import("./Web3Auth-C1gorwXx.js").then((r) => r.bO).then((r) => {
2966
- const i = r.authViaWeb3Onboard;
2967
- i(t, e, o);
2610
+ function Je(t, e, n) {
2611
+ e.type === "MetaMask" ? import("./Web3Auth-DG8Yz_cD.js").then((i) => i.bQ).then((i) => {
2612
+ const a = i.authViaMetaMask;
2613
+ a(t, e, n);
2614
+ }) : e.type === "Web3Onboard" && import("./Web3Auth-DG8Yz_cD.js").then((i) => i.bQ).then((i) => {
2615
+ const a = i.authViaWeb3Onboard;
2616
+ a(t, e, n);
2968
2617
  });
2969
2618
  }
2970
- function Ni(t, e, o, r, i, l) {
2971
- if (i === "small") {
2619
+ function Aa(t, e, n, i, a, l) {
2620
+ if (a === "small") {
2972
2621
  if (t.category === "OAuth")
2973
- return t.type === "WeChat" && t.clientId2 !== "" && t.clientSecret2 !== "" && t.disableSsl === !0 && !navigator.userAgent.includes("MicroMessenger") ? /* @__PURE__ */ a.jsx("a", { children: /* @__PURE__ */ a.jsx(
2622
+ return t.type === "WeChat" && t.clientId2 !== "" && t.clientSecret2 !== "" && t.disableSsl === !0 && !navigator.userAgent.includes("MicroMessenger") ? /* @__PURE__ */ o.jsx("a", { children: /* @__PURE__ */ o.jsx(
2974
2623
  "img",
2975
2624
  {
2976
- width: o,
2977
- height: o,
2978
- src: se(t),
2625
+ width: n,
2626
+ height: n,
2627
+ src: Z(t),
2979
2628
  alt: t.displayName,
2980
2629
  className: "provider-img",
2981
- style: { margin: r },
2630
+ style: { margin: i },
2982
2631
  onClick: () => {
2983
- Jn(e, t, "signup");
2632
+ Ft(e, t, "signup");
2984
2633
  }
2985
2634
  }
2986
- ) }, t.displayName) : /* @__PURE__ */ a.jsx(
2635
+ ) }, t.displayName) : /* @__PURE__ */ o.jsx(
2987
2636
  "a",
2988
2637
  {
2989
2638
  href: (void 0)(e, t, "signup"),
2990
- children: /* @__PURE__ */ a.jsx(
2639
+ children: /* @__PURE__ */ o.jsx(
2991
2640
  "img",
2992
2641
  {
2993
- width: o,
2994
- height: o,
2995
- src: se(t),
2642
+ width: n,
2643
+ height: n,
2644
+ src: Z(t),
2996
2645
  alt: t.displayName,
2997
2646
  className: "provider-img",
2998
- style: { margin: r }
2647
+ style: { margin: i }
2999
2648
  }
3000
2649
  )
3001
2650
  },
3002
2651
  t.displayName
3003
2652
  );
3004
2653
  if (t.category === "SAML")
3005
- return /* @__PURE__ */ a.jsx(
2654
+ return /* @__PURE__ */ o.jsx(
3006
2655
  "a",
3007
2656
  {
3008
- onClick: () => Ke(t, l),
3009
- children: /* @__PURE__ */ a.jsx(
2657
+ onClick: () => Le(t, l),
2658
+ children: /* @__PURE__ */ o.jsx(
3010
2659
  "img",
3011
2660
  {
3012
- width: o,
3013
- height: o,
3014
- src: se(t),
2661
+ width: n,
2662
+ height: n,
2663
+ src: Z(t),
3015
2664
  alt: t.displayName,
3016
2665
  className: "provider-img",
3017
- style: { margin: r }
2666
+ style: { margin: i }
3018
2667
  }
3019
2668
  )
3020
2669
  },
3021
2670
  t.displayName
3022
2671
  );
3023
2672
  if (t.category === "Web3")
3024
- return /* @__PURE__ */ a.jsx(
2673
+ return /* @__PURE__ */ o.jsx(
3025
2674
  "a",
3026
2675
  {
3027
- onClick: () => Ot(e, t, "signup"),
3028
- children: /* @__PURE__ */ a.jsx(
2676
+ onClick: () => Je(e, t, "signup"),
2677
+ children: /* @__PURE__ */ o.jsx(
3029
2678
  "img",
3030
2679
  {
3031
- width: o,
3032
- height: o,
3033
- src: se(t),
2680
+ width: n,
2681
+ height: n,
2682
+ src: Z(t),
3034
2683
  alt: t.displayName,
3035
2684
  className: "provider-img",
3036
- style: { margin: r }
2685
+ style: { margin: i }
3037
2686
  }
3038
2687
  )
3039
2688
  },
3040
2689
  t.displayName
3041
2690
  );
3042
2691
  } else if (t.type === "Custom") {
3043
- const c = K.t("login:Sign in with {type}").replace("{type}", t.displayName), g = { display: "block", height: "55px", color: "#000" }, u = {
2692
+ const r = U.t("login:Sign in with {type}").replace("{type}", t.displayName), p = { display: "block", height: "55px", color: "#000" }, u = {
3044
2693
  display: "flex",
3045
2694
  alignItems: "center",
3046
2695
  width: "calc(100% - 10px)",
@@ -3052,123 +2701,123 @@ function Ni(t, e, o, r, i, l) {
3052
2701
  border: "0px",
3053
2702
  borderRadius: "3px",
3054
2703
  cursor: "pointer"
3055
- }, f = { justfyContent: "space-between" }, h = {
2704
+ }, d = { justfyContent: "space-between" }, g = {
3056
2705
  textAlign: "center",
3057
2706
  width: "100%",
3058
2707
  fontSize: "19px"
3059
2708
  };
3060
2709
  if (t.category === "OAuth")
3061
- return /* @__PURE__ */ a.jsx(
2710
+ return /* @__PURE__ */ o.jsx(
3062
2711
  "a",
3063
2712
  {
3064
2713
  href: (void 0)(e, t, "signup"),
3065
- style: g,
3066
- children: /* @__PURE__ */ a.jsxs("div", { style: u, children: [
3067
- /* @__PURE__ */ a.jsx(
2714
+ style: p,
2715
+ children: /* @__PURE__ */ o.jsxs("div", { style: u, children: [
2716
+ /* @__PURE__ */ o.jsx(
3068
2717
  "img",
3069
2718
  {
3070
2719
  width: 26,
3071
- src: se(t),
2720
+ src: Z(t),
3072
2721
  alt: t.displayName,
3073
2722
  className: "provider-img",
3074
- style: f
2723
+ style: d
3075
2724
  }
3076
2725
  ),
3077
- /* @__PURE__ */ a.jsx("span", { style: h, children: c })
2726
+ /* @__PURE__ */ o.jsx("span", { style: g, children: r })
3078
2727
  ] })
3079
2728
  },
3080
2729
  t.displayName
3081
2730
  );
3082
2731
  if (t.category === "SAML")
3083
- return /* @__PURE__ */ a.jsx(
2732
+ return /* @__PURE__ */ o.jsx(
3084
2733
  "a",
3085
2734
  {
3086
- onClick: () => Ke(t, l),
3087
- style: g,
3088
- children: /* @__PURE__ */ a.jsxs("div", { style: u, children: [
3089
- /* @__PURE__ */ a.jsx(
2735
+ onClick: () => Le(t, l),
2736
+ style: p,
2737
+ children: /* @__PURE__ */ o.jsxs("div", { style: u, children: [
2738
+ /* @__PURE__ */ o.jsx(
3090
2739
  "img",
3091
2740
  {
3092
2741
  width: 26,
3093
- src: se(t),
2742
+ src: Z(t),
3094
2743
  alt: t.displayName,
3095
2744
  className: "provider-img",
3096
- style: f
2745
+ style: d
3097
2746
  }
3098
2747
  ),
3099
- /* @__PURE__ */ a.jsx("span", { style: h, children: c })
2748
+ /* @__PURE__ */ o.jsx("span", { style: g, children: r })
3100
2749
  ] })
3101
2750
  },
3102
2751
  t.displayName
3103
2752
  );
3104
2753
  } else
3105
- return t.category === "SAML" ? /* @__PURE__ */ a.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ a.jsx("a", { onClick: () => Ke(t, l), children: Ye(t) }) }, t.displayName) : t.category === "Web3" ? /* @__PURE__ */ a.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ a.jsx("a", { onClick: () => Ot(e, t, "signup"), children: Ye(t) }) }, t.displayName) : /* @__PURE__ */ a.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ a.jsx("a", { href: (void 0)(e, t, "signup"), children: Ye(t) }) }, t.displayName);
2754
+ return t.category === "SAML" ? /* @__PURE__ */ o.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ o.jsx("a", { onClick: () => Le(t, l), children: je(t) }) }, t.displayName) : t.category === "Web3" ? /* @__PURE__ */ o.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ o.jsx("a", { onClick: () => Je(e, t, "signup"), children: je(t) }) }, t.displayName) : /* @__PURE__ */ o.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ o.jsx("a", { href: (void 0)(e, t, "signup"), children: je(t) }) }, t.displayName);
3106
2755
  }
3107
- function Di(t) {
3108
- return t.length < 6 ? K.t("user:The password must have at least 6 characters") : "";
2756
+ function za(t) {
2757
+ return t.length < 6 ? U.t("user:The password must have at least 6 characters") : "";
3109
2758
  }
3110
- function Ui(t) {
3111
- return t.length < 8 ? K.t("user:The password must have at least 8 characters") : "";
2759
+ function Ma(t) {
2760
+ return t.length < 8 ? U.t("user:The password must have at least 8 characters") : "";
3112
2761
  }
3113
- function Wi(t) {
3114
- return /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).+$/.test(t) ? "" : K.t(
2762
+ function Ta(t) {
2763
+ return /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).+$/.test(t) ? "" : U.t(
3115
2764
  "user:The password must contain at least one uppercase letter, one lowercase letter and one digit"
3116
2765
  );
3117
2766
  }
3118
- function Hi(t) {
3119
- return /^(?=.*[!-/:-@[-`{-~]).+$/.test(t) ? "" : K.t(
2767
+ function Ba(t) {
2768
+ return /^(?=.*[!-/:-@[-`{-~]).+$/.test(t) ? "" : U.t(
3120
2769
  "user:The password must contain at least one special character"
3121
2770
  );
3122
2771
  }
3123
- function Vi(t) {
3124
- return /(.)\1+/.test(t) ? K.t(
2772
+ function Na(t) {
2773
+ return /(.)\1+/.test(t) ? U.t(
3125
2774
  "user:The password must not contain any repeated characters"
3126
2775
  ) : "";
3127
2776
  }
3128
- function Gi(t, e) {
2777
+ function Oa(t, e) {
3129
2778
  if (t.length === 0)
3130
- return K.t("login:Please input your password!");
2779
+ return U.t("login:Please input your password!");
3131
2780
  (!e || e.length === 0) && (e = ["AtLeast6"]);
3132
- const o = {
3133
- AtLeast6: Di,
3134
- AtLeast8: Ui,
3135
- Aa123: Wi,
3136
- SpecialChar: Hi,
3137
- NoRepeat: Vi
2781
+ const n = {
2782
+ AtLeast6: za,
2783
+ AtLeast8: Ma,
2784
+ Aa123: Ta,
2785
+ SpecialChar: Ba,
2786
+ NoRepeat: Na
3138
2787
  };
3139
- for (const r of e) {
3140
- const i = o[r];
3141
- if (i) {
3142
- const l = i(t);
2788
+ for (const i of e) {
2789
+ const a = n[i];
2790
+ if (a) {
2791
+ const l = a(t);
3143
2792
  if (l !== "")
3144
2793
  return l;
3145
2794
  }
3146
2795
  }
3147
2796
  return "";
3148
2797
  }
3149
- function qi({
2798
+ function Ia({
3150
2799
  application: t,
3151
2800
  state: e,
3152
- setState: o
2801
+ setState: n
3153
2802
  }) {
3154
- const [r, i] = m.useState(!1), l = m.useRef(null);
3155
- m.useEffect(() => {
2803
+ const [i, a] = f.useState(!1), l = f.useRef(null);
2804
+ f.useEffect(() => {
3156
2805
  l.current || (l.current = document.getElementById(
3157
2806
  "agreementDialog"
3158
2807
  ));
3159
- }, []), m.useEffect(() => {
3160
- l.current && (r ? l.current.showModal() : l.current.close());
3161
- }, [r]);
3162
- const c = () => {
3163
- o({ ...e, agreement: !1 }), i(!1);
3164
- }, g = () => {
3165
- o({ ...e, agreement: !0 }), i(!1);
2808
+ }, []), f.useEffect(() => {
2809
+ l.current && (i ? l.current.showModal() : l.current.close());
2810
+ }, [i]);
2811
+ const r = () => {
2812
+ n({ ...e, agreement: !1 }), a(!1);
2813
+ }, p = () => {
2814
+ n({ ...e, agreement: !0 }), a(!1);
3166
2815
  }, u = () => {
3167
- i(!0);
2816
+ a(!0);
3168
2817
  };
3169
- return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3170
- /* @__PURE__ */ a.jsx("dialog", { id: "agreementDialog", className: "modal", children: /* @__PURE__ */ a.jsxs("div", { className: "modal-box", children: [
3171
- /* @__PURE__ */ a.jsx("div", { className: "mt-4 mb-8", children: /* @__PURE__ */ a.jsx(
2818
+ return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2819
+ /* @__PURE__ */ o.jsx("dialog", { id: "agreementDialog", className: "modal", children: /* @__PURE__ */ o.jsxs("div", { className: "modal-box", children: [
2820
+ /* @__PURE__ */ o.jsx("div", { className: "mt-4 mb-8", children: /* @__PURE__ */ o.jsx(
3172
2821
  "iframe",
3173
2822
  {
3174
2823
  src: t.termsOfUse,
@@ -3177,15 +2826,15 @@ function qi({
3177
2826
  sandbox: "allow-scripts"
3178
2827
  }
3179
2828
  ) }),
3180
- /* @__PURE__ */ a.jsxs("div", { className: "modal-action", children: [
3181
- /* @__PURE__ */ a.jsx("form", { method: "dialog", className: "modal-backdrop", children: /* @__PURE__ */ a.jsx("button", { children: "Close" }) }),
3182
- /* @__PURE__ */ a.jsxs("form", { method: "dialog", className: "flex gap-3", children: [
3183
- /* @__PURE__ */ a.jsx("button", { className: "btn", onClick: c, children: "Cancel" }, "closebtn"),
3184
- /* @__PURE__ */ a.jsx(
2829
+ /* @__PURE__ */ o.jsxs("div", { className: "modal-action", children: [
2830
+ /* @__PURE__ */ o.jsx("form", { method: "dialog", className: "modal-backdrop", children: /* @__PURE__ */ o.jsx("button", { children: "Close" }) }),
2831
+ /* @__PURE__ */ o.jsxs("form", { method: "dialog", className: "flex gap-3", children: [
2832
+ /* @__PURE__ */ o.jsx("button", { className: "btn", onClick: r, children: "Cancel" }, "closebtn"),
2833
+ /* @__PURE__ */ o.jsx(
3185
2834
  "button",
3186
2835
  {
3187
2836
  className: "btn btn-primary",
3188
- onClick: g,
2837
+ onClick: p,
3189
2838
  children: "OK"
3190
2839
  },
3191
2840
  "okbtn"
@@ -3193,89 +2842,89 @@ function qi({
3193
2842
  ] })
3194
2843
  ] })
3195
2844
  ] }) }),
3196
- /* @__PURE__ */ a.jsx("input", { checked: !!e.agreement, type: "checkbox", readOnly: !0 }),
3197
- /* @__PURE__ */ a.jsx("button", { onClick: u, children: "Open Terms" })
2845
+ /* @__PURE__ */ o.jsx("input", { checked: !!e.agreement, type: "checkbox", readOnly: !0 }),
2846
+ /* @__PURE__ */ o.jsx("button", { onClick: u, children: "Open Terms" })
3198
2847
  ] });
3199
2848
  }
3200
- function Y({
2849
+ function D({
3201
2850
  label: t,
3202
2851
  name: e,
3203
- rules: o,
3204
- inputEl: r,
3205
- setFieldValue: i,
2852
+ rules: n,
2853
+ inputEl: i,
2854
+ setFieldValue: a,
3206
2855
  onChange: l,
3207
- ...c
2856
+ ...r
3208
2857
  }) {
3209
- return /* @__PURE__ */ a.jsxs("label", { className: "form-control w-full max-w-xs", htmlFor: e, children: [
3210
- /* @__PURE__ */ a.jsx("div", { className: "label", children: /* @__PURE__ */ a.jsx("span", { className: "label-text", children: t }) }),
3211
- r || /* @__PURE__ */ a.jsx(
2858
+ return /* @__PURE__ */ o.jsxs("label", { className: "form-control w-full max-w-xs", htmlFor: e, children: [
2859
+ /* @__PURE__ */ o.jsx("div", { className: "label", children: /* @__PURE__ */ o.jsx("span", { className: "label-text", children: t }) }),
2860
+ i || /* @__PURE__ */ o.jsx(
3212
2861
  "input",
3213
2862
  {
3214
2863
  type: "text",
3215
- ...c,
2864
+ ...r,
3216
2865
  name: e,
3217
2866
  className: "input input-bordered w-full max-w-xs",
3218
- onChange: (g) => {
3219
- i(e, g.target.value), l == null || l(g);
2867
+ onChange: (p) => {
2868
+ a(e, p.target.value), l == null || l(p);
3220
2869
  }
3221
2870
  }
3222
2871
  ),
3223
- /* @__PURE__ */ a.jsx("div", { className: "label flex-col", children: o == null ? void 0 : o.map((g, u) => /* @__PURE__ */ a.jsx("span", { className: "label-text-alt", children: g.message }, e + u)) })
2872
+ /* @__PURE__ */ o.jsx("div", { className: "label flex-col", children: n == null ? void 0 : n.map((p, u) => /* @__PURE__ */ o.jsx("span", { className: "label-text-alt", children: p.message }, e + u)) })
3224
2873
  ] });
3225
2874
  }
3226
- const Yi = (t, e) => (delete t.applicationName, delete t.emailOrPhoneMode, delete t.isTermsOfUseVisible, {
2875
+ const Pa = (t, e) => (delete t.applicationName, delete t.emailOrPhoneMode, delete t.isTermsOfUseVisible, {
3227
2876
  application: e.name,
3228
2877
  organization: e.organization,
3229
2878
  plan: null,
3230
2879
  pricing: null,
3231
2880
  ...t
3232
- }), Ki = (t, e, o) => {
2881
+ }), Fa = (t, e, n) => {
3233
2882
  t.preventDefault();
3234
- const r = Yi(e, o);
3235
- console.log(r), Dn(r).then((i) => {
3236
- i.status === "ok" ? (r.username = i.data.split("/")[1], o && In(o) ? Nn("").then((l) => {
3237
- let c = null;
3238
- l.status === "ok" ? (c = l.data, c.organization = l.data2, console.log("account", c), alert("redirect")) : G("error", `Failed to sign in: ${l.msg}`);
3239
- }) : alert("redirect")) : G("error", i.msg);
2883
+ const i = Pa(e, n);
2884
+ console.log(i), At(i).then((a) => {
2885
+ a.status === "ok" ? (i.username = a.data.split("/")[1], n && Et(n) ? Lt("").then((l) => {
2886
+ let r = null;
2887
+ l.status === "ok" ? (r = l.data, r.organization = l.data2, console.log("account", r), alert("redirect")) : P("error", `Failed to sign in: ${l.msg}`);
2888
+ }) : alert("redirect")) : P("error", a.msg);
3240
2889
  });
3241
2890
  };
3242
- function Ji(t, e, o, r, i) {
2891
+ function Ra(t, e, n, i, a) {
3243
2892
  if (!e.visible)
3244
2893
  return null;
3245
- const l = (g, u) => {
3246
- o[g] = u, r(o);
3247
- }, c = e.required;
2894
+ const l = (p, u) => {
2895
+ n[p] = u, i(n);
2896
+ }, r = e.required;
3248
2897
  if (e.name === "Username")
3249
- return /* @__PURE__ */ a.jsx(
3250
- Y,
2898
+ return /* @__PURE__ */ o.jsx(
2899
+ D,
3251
2900
  {
3252
2901
  name: "username",
3253
2902
  className: "signup-username",
3254
- label: e.label ? e.label : i("signup.username"),
2903
+ label: e.label ? e.label : a("signup.username"),
3255
2904
  rules: [
3256
2905
  {
3257
- required: c,
3258
- message: i("forget.username"),
2906
+ required: r,
2907
+ message: a("forget.username"),
3259
2908
  whitespace: !0
3260
2909
  }
3261
2910
  ],
3262
2911
  placeholder: e.placeholder,
3263
- disabled: o.invitation !== void 0 && o.invitation.username !== "",
2912
+ disabled: n.invitation !== void 0 && n.invitation.username !== "",
3264
2913
  setFieldValue: l
3265
2914
  }
3266
2915
  );
3267
2916
  if (e.name === "Display name")
3268
- return e.rule === "First, last" && Cn() !== "zh" ? /* @__PURE__ */ a.jsxs(m.Fragment, { children: [
3269
- /* @__PURE__ */ a.jsx(
3270
- Y,
2917
+ return e.rule === "First, last" && ht() !== "zh" ? /* @__PURE__ */ o.jsxs(f.Fragment, { children: [
2918
+ /* @__PURE__ */ o.jsx(
2919
+ D,
3271
2920
  {
3272
2921
  name: "firstName",
3273
2922
  className: "signup-first-name",
3274
- label: e.label ? e.label : i("general.firstName"),
2923
+ label: e.label ? e.label : a("general.firstName"),
3275
2924
  rules: [
3276
2925
  {
3277
- required: c,
3278
- message: i("forget.firstName"),
2926
+ required: r,
2927
+ message: a("forget.firstName"),
3279
2928
  whitespace: !0
3280
2929
  }
3281
2930
  ],
@@ -3283,16 +2932,16 @@ function Ji(t, e, o, r, i) {
3283
2932
  setFieldValue: l
3284
2933
  }
3285
2934
  ),
3286
- /* @__PURE__ */ a.jsx(
3287
- Y,
2935
+ /* @__PURE__ */ o.jsx(
2936
+ D,
3288
2937
  {
3289
2938
  name: "lastName",
3290
2939
  className: "signup-last-name",
3291
- label: e.label ? e.label : i("general.lastName"),
2940
+ label: e.label ? e.label : a("general.lastName"),
3292
2941
  rules: [
3293
2942
  {
3294
- required: c,
3295
- message: i("forget.lastName"),
2943
+ required: r,
2944
+ message: a("forget.lastName"),
3296
2945
  whitespace: !0
3297
2946
  }
3298
2947
  ],
@@ -3300,16 +2949,16 @@ function Ji(t, e, o, r, i) {
3300
2949
  setFieldValue: l
3301
2950
  }
3302
2951
  )
3303
- ] }) : /* @__PURE__ */ a.jsx(
3304
- Y,
2952
+ ] }) : /* @__PURE__ */ o.jsx(
2953
+ D,
3305
2954
  {
3306
2955
  name: "name",
3307
2956
  className: "signup-name",
3308
- label: e.label ? e.label : e.rule === "Real name" || e.rule === "First, last" ? i("general.realName") : i("general.displayName"),
2957
+ label: e.label ? e.label : e.rule === "Real name" || e.rule === "First, last" ? a("general.realName") : a("general.displayName"),
3309
2958
  rules: [
3310
2959
  {
3311
- required: c,
3312
- message: e.rule === "Real name" || e.rule === "First, last" ? i("forget.realName") : i("forget.displayName"),
2960
+ required: r,
2961
+ message: e.rule === "Real name" || e.rule === "First, last" ? a("forget.realName") : a("forget.displayName"),
3313
2962
  whitespace: !0
3314
2963
  }
3315
2964
  ],
@@ -3318,16 +2967,16 @@ function Ji(t, e, o, r, i) {
3318
2967
  }
3319
2968
  );
3320
2969
  if (e.name === "Affiliation")
3321
- return /* @__PURE__ */ a.jsx(
3322
- Y,
2970
+ return /* @__PURE__ */ o.jsx(
2971
+ D,
3323
2972
  {
3324
2973
  name: "affiliation",
3325
2974
  className: "signup-affiliation",
3326
- label: e.label ? e.label : i("user.affiliation"),
2975
+ label: e.label ? e.label : a("user.affiliation"),
3327
2976
  rules: [
3328
2977
  {
3329
- required: c,
3330
- message: i("forget.affiliation"),
2978
+ required: r,
2979
+ message: a("forget.affiliation"),
3331
2980
  whitespace: !0
3332
2981
  }
3333
2982
  ],
@@ -3336,25 +2985,25 @@ function Ji(t, e, o, r, i) {
3336
2985
  }
3337
2986
  );
3338
2987
  if (e.name === "ID card")
3339
- return /* @__PURE__ */ a.jsx(
3340
- Y,
2988
+ return /* @__PURE__ */ o.jsx(
2989
+ D,
3341
2990
  {
3342
2991
  name: "idCard",
3343
2992
  className: "signup-idcard",
3344
- label: e.label ? e.label : i("user.idCard"),
2993
+ label: e.label ? e.label : a("user.idCard"),
3345
2994
  rules: [
3346
2995
  {
3347
- required: c,
3348
- message: i("forget.idCard"),
2996
+ required: r,
2997
+ message: a("forget.idCard"),
3349
2998
  whitespace: !0
3350
2999
  },
3351
3000
  {
3352
- required: c,
3001
+ required: r,
3353
3002
  pattern: new RegExp(
3354
3003
  /^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9X]$/,
3355
3004
  "g"
3356
3005
  ),
3357
- message: i("format.idCard")
3006
+ message: a("format.idCard")
3358
3007
  }
3359
3008
  ],
3360
3009
  placeholder: e.placeholder,
@@ -3362,84 +3011,84 @@ function Ji(t, e, o, r, i) {
3362
3011
  }
3363
3012
  );
3364
3013
  if (e.name === "Email" || e.name === "Phone" || e.name === "Email or Phone" || e.name === "Phone or Email") {
3365
- const g = () => /* @__PURE__ */ a.jsxs(m.Fragment, { children: [
3366
- /* @__PURE__ */ a.jsx(
3367
- Y,
3014
+ const p = () => /* @__PURE__ */ o.jsxs(f.Fragment, { children: [
3015
+ /* @__PURE__ */ o.jsx(
3016
+ D,
3368
3017
  {
3369
3018
  name: "email",
3370
- label: e.label ? e.label : i("general.email"),
3019
+ label: e.label ? e.label : a("general.email"),
3371
3020
  rules: [
3372
3021
  {
3373
- required: c,
3374
- message: i("forget.email")
3022
+ required: r,
3023
+ message: a("forget.email")
3375
3024
  }
3376
3025
  ],
3377
3026
  placeholder: e.placeholder,
3378
- disabled: o.invitation !== void 0 && o.invitation.email !== "",
3379
- onChange: (f) => {
3380
- const h = f.target.value;
3381
- console.log("email", h, bt(h)), h !== "" && !bt(h) ? r({ ...o, email: h, validEmail: !1 }) : r({ ...o, email: h, validEmail: !0 });
3027
+ disabled: n.invitation !== void 0 && n.invitation.email !== "",
3028
+ onChange: (d) => {
3029
+ const g = d.target.value;
3030
+ console.log("email", g, Ne(g)), g !== "" && !Ne(g) ? i({ ...n, email: g, validEmail: !1 }) : i({ ...n, email: g, validEmail: !0 });
3382
3031
  },
3383
3032
  setFieldValue: l
3384
3033
  }
3385
3034
  ),
3386
- e.rule !== "No verification" && /* @__PURE__ */ a.jsx(
3387
- Y,
3035
+ e.rule !== "No verification" && /* @__PURE__ */ o.jsx(
3036
+ D,
3388
3037
  {
3389
3038
  name: "emailCode",
3390
3039
  className: "signup-email-code",
3391
- label: e.label ? e.label : i("code.email"),
3040
+ label: e.label ? e.label : a("code.email"),
3392
3041
  rules: [
3393
3042
  {
3394
- required: c,
3395
- message: i("forget.code")
3043
+ required: r,
3044
+ message: a("forget.code")
3396
3045
  }
3397
3046
  ],
3398
- inputEl: /* @__PURE__ */ a.jsx(
3399
- Xn,
3047
+ inputEl: /* @__PURE__ */ o.jsx(
3048
+ Ut,
3400
3049
  {
3401
- disabled: !o.validEmail,
3050
+ disabled: !n.validEmail,
3402
3051
  method: "signup",
3403
- onButtonClickArgs: [o.email, "email", t.name],
3052
+ onButtonClickArgs: [n.email, "email", t.name],
3404
3053
  application: t,
3405
3054
  countryCode: "US",
3406
- onChange: (f) => r({ ...o, emailCode: f })
3055
+ onChange: (d) => i({ ...n, emailCode: d })
3407
3056
  }
3408
3057
  ),
3409
3058
  setFieldValue: l
3410
3059
  }
3411
3060
  )
3412
- ] }), u = () => /* @__PURE__ */ a.jsx(a.Fragment, {});
3061
+ ] }), u = () => /* @__PURE__ */ o.jsx(o.Fragment, {});
3413
3062
  if (e.name === "Email")
3414
- return g();
3063
+ return p();
3415
3064
  if (e.name === "Phone")
3416
3065
  return u();
3417
3066
  if (e.name === "Email or Phone" || e.name === "Phone or Email") {
3418
- let f = o.emailOrPhoneMode;
3419
- return f === "" && (f = e.name === "Email or Phone" ? "Email" : "Phone"), /* @__PURE__ */ a.jsxs(m.Fragment, { children: [
3420
- /* @__PURE__ */ a.jsx("div", { style: { marginTop: "30px", marginBottom: "20px" } }),
3421
- f === "Email" ? g() : u()
3067
+ let d = n.emailOrPhoneMode;
3068
+ return d === "" && (d = e.name === "Email or Phone" ? "Email" : "Phone"), /* @__PURE__ */ o.jsxs(f.Fragment, { children: [
3069
+ /* @__PURE__ */ o.jsx("div", { style: { marginTop: "30px", marginBottom: "20px" } }),
3070
+ d === "Email" ? p() : u()
3422
3071
  ] });
3423
3072
  } else
3424
3073
  return null;
3425
3074
  } else {
3426
3075
  if (e.name === "Password")
3427
- return /* @__PURE__ */ a.jsx(
3428
- Y,
3076
+ return /* @__PURE__ */ o.jsx(
3077
+ D,
3429
3078
  {
3430
3079
  name: "password",
3431
3080
  className: "signup-password",
3432
- label: e.label ? e.label : i("general.password"),
3081
+ label: e.label ? e.label : a("general.password"),
3433
3082
  rules: [
3434
3083
  {
3435
- required: c,
3084
+ required: r,
3436
3085
  validateTrigger: "onChange",
3437
- validator: (g, u) => {
3438
- const f = Gi(
3086
+ validator: (p, u) => {
3087
+ const d = Oa(
3439
3088
  u,
3440
3089
  t.organizationObj.passwordOptions
3441
3090
  );
3442
- return f === "" ? Promise.resolve() : Promise.reject(f);
3091
+ return d === "" ? Promise.resolve() : Promise.reject(d);
3443
3092
  }
3444
3093
  }
3445
3094
  ],
@@ -3449,16 +3098,16 @@ function Ji(t, e, o, r, i) {
3449
3098
  }
3450
3099
  );
3451
3100
  if (e.name === "Confirm password")
3452
- return /* @__PURE__ */ a.jsx(
3453
- Y,
3101
+ return /* @__PURE__ */ o.jsx(
3102
+ D,
3454
3103
  {
3455
3104
  name: "confirm",
3456
3105
  className: "signup-confirm",
3457
- label: e.label ? e.label : i("signup.confirm"),
3106
+ label: e.label ? e.label : a("signup.confirm"),
3458
3107
  rules: [
3459
3108
  {
3460
- required: c,
3461
- message: i("forget.confirm")
3109
+ required: r,
3110
+ message: a("forget.confirm")
3462
3111
  }
3463
3112
  // ({ getFieldValue }) => ({
3464
3113
  // validator(rule, value) {
@@ -3479,55 +3128,55 @@ function Ji(t, e, o, r, i) {
3479
3128
  }
3480
3129
  );
3481
3130
  if (e.name === "Invitation code")
3482
- return /* @__PURE__ */ a.jsx(
3483
- Y,
3131
+ return /* @__PURE__ */ o.jsx(
3132
+ D,
3484
3133
  {
3485
3134
  name: "invitationCode",
3486
3135
  className: "signup-invitation-code",
3487
- label: e.label ? e.label : i("application.invitationCode"),
3136
+ label: e.label ? e.label : a("application.invitationCode"),
3488
3137
  rules: [
3489
3138
  {
3490
- required: c,
3491
- message: i("forget.invitationCode")
3139
+ required: r,
3140
+ message: a("forget.invitationCode")
3492
3141
  }
3493
3142
  ],
3494
3143
  placeholder: e.placeholder,
3495
- disabled: o.invitation !== void 0 && o.invitation !== "",
3144
+ disabled: n.invitation !== void 0 && n.invitation !== "",
3496
3145
  setFieldValue: l
3497
3146
  }
3498
3147
  );
3499
3148
  if (e.name === "Agreement")
3500
- return /* @__PURE__ */ a.jsx(
3501
- qi,
3149
+ return /* @__PURE__ */ o.jsx(
3150
+ Ia,
3502
3151
  {
3503
- state: o,
3504
- setState: r,
3152
+ state: n,
3153
+ setState: i,
3505
3154
  application: t
3506
3155
  }
3507
3156
  );
3508
3157
  if (e.name.startsWith("Text "))
3509
- return /* @__PURE__ */ a.jsx("div", { dangerouslySetInnerHTML: { __html: e.label } });
3158
+ return /* @__PURE__ */ o.jsx("div", { dangerouslySetInnerHTML: { __html: e.label } });
3510
3159
  if (e.name === "Signup button")
3511
- return /* @__PURE__ */ a.jsxs("form", { onSubmit: (g) => Ki(g, o, t), children: [
3512
- /* @__PURE__ */ a.jsx("button", { className: "btn btn-primary", type: "submit", children: i("signup.signUp") }),
3160
+ return /* @__PURE__ */ o.jsxs("form", { onSubmit: (p) => Fa(p, n, t), children: [
3161
+ /* @__PURE__ */ o.jsx("button", { className: "btn btn-primary", type: "submit", children: a("signup.signUp") }),
3513
3162
  "  ",
3514
- i("signup.haveAccount"),
3163
+ a("signup.haveAccount"),
3515
3164
  " ",
3516
- /* @__PURE__ */ a.jsx(
3165
+ /* @__PURE__ */ o.jsx(
3517
3166
  "a",
3518
3167
  {
3519
3168
  className: "signup-link",
3520
3169
  onClick: () => {
3521
- const g = sessionStorage.getItem("signinUrl");
3170
+ const p = sessionStorage.getItem("signinUrl");
3522
3171
  alert("redirect");
3523
3172
  },
3524
- children: i("signup.signInNow")
3173
+ children: a("signup.signInNow")
3525
3174
  }
3526
3175
  )
3527
3176
  ] });
3528
3177
  if (e.name === "Providers" && t.providers) {
3529
- const g = On(t) || Bn(t) || Pn(t) || Rn(t);
3530
- return (e.rule === "None" || e.rule === "") && (e.rule = g ? "small" : "big"), t.providers.filter((u) => Pt(u)).map((u) => Ni(
3178
+ const p = vt(t) || St(t) || _t(t) || Ct(t);
3179
+ return (e.rule === "None" || e.rule === "") && (e.rule = p ? "small" : "big"), t.providers.filter((u) => Ke(u)).map((u) => Aa(
3531
3180
  u.provider,
3532
3181
  t,
3533
3182
  null,
@@ -3539,7 +3188,7 @@ function Ji(t, e, o, r, i) {
3539
3188
  }
3540
3189
  return e.name;
3541
3190
  }
3542
- const Qi = {
3191
+ const Da = {
3543
3192
  signup: {
3544
3193
  username: "Username",
3545
3194
  confirm: "Confirm password",
@@ -3584,19 +3233,19 @@ const Qi = {
3584
3233
  application: {
3585
3234
  invitationCode: "Invitation code"
3586
3235
  }
3587
- }, Zi = {
3588
- translation: Qi
3236
+ }, Ua = {
3237
+ translation: Da
3589
3238
  };
3590
- K.use($n).init({
3239
+ U.use(dt).init({
3591
3240
  lng: "en",
3592
3241
  fallbackLng: "en",
3593
3242
  // use en if detected lng is not available
3594
3243
  resources: {
3595
- en: Zi
3244
+ en: Ua
3596
3245
  }
3597
3246
  });
3598
- function Xi(t, e, o) {
3599
- const r = /* @__PURE__ */ a.jsxs(
3247
+ function Wa(t, e, n) {
3248
+ const i = /* @__PURE__ */ o.jsxs(
3600
3249
  "svg",
3601
3250
  {
3602
3251
  xmlns: "http://www.w3.org/2000/svg",
@@ -3610,11 +3259,11 @@ function Xi(t, e, o) {
3610
3259
  "stroke-linejoin": "round",
3611
3260
  className: "lucide lucide-eye",
3612
3261
  children: [
3613
- /* @__PURE__ */ a.jsx("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
3614
- /* @__PURE__ */ a.jsx("circle", { cx: "12", cy: "12", r: "3" })
3262
+ /* @__PURE__ */ o.jsx("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
3263
+ /* @__PURE__ */ o.jsx("circle", { cx: "12", cy: "12", r: "3" })
3615
3264
  ]
3616
3265
  }
3617
- ), i = /* @__PURE__ */ a.jsxs(
3266
+ ), a = /* @__PURE__ */ o.jsxs(
3618
3267
  "svg",
3619
3268
  {
3620
3269
  xmlns: "http://www.w3.org/2000/svg",
@@ -3628,17 +3277,17 @@ function Xi(t, e, o) {
3628
3277
  "stroke-linejoin": "round",
3629
3278
  className: "lucide lucide-eye-off",
3630
3279
  children: [
3631
- /* @__PURE__ */ a.jsx("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
3632
- /* @__PURE__ */ a.jsx("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
3633
- /* @__PURE__ */ a.jsx("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
3634
- /* @__PURE__ */ a.jsx("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
3280
+ /* @__PURE__ */ o.jsx("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
3281
+ /* @__PURE__ */ o.jsx("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
3282
+ /* @__PURE__ */ o.jsx("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
3283
+ /* @__PURE__ */ o.jsx("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
3635
3284
  ]
3636
3285
  }
3637
- ), l = Ae(t), c = ee(t);
3286
+ ), l = me(t), r = H(t);
3638
3287
  if (l === "password") {
3639
- const g = e.password.state[c];
3640
- return /* @__PURE__ */ a.jsxs(
3641
- o,
3288
+ const p = e.password.state[r];
3289
+ return /* @__PURE__ */ o.jsxs(
3290
+ n,
3642
3291
  {
3643
3292
  variant: "ghost",
3644
3293
  size: "icon",
@@ -3646,19 +3295,19 @@ function Xi(t, e, o) {
3646
3295
  onClick: (u) => {
3647
3296
  u.preventDefault(), u.stopPropagation(), e.password.setState({
3648
3297
  ...e.password.state,
3649
- [c]: !g
3298
+ [r]: !p
3650
3299
  });
3651
3300
  },
3652
3301
  children: [
3653
- g ? i : r,
3654
- /* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Toggle password visibility" })
3302
+ p ? a : i,
3303
+ /* @__PURE__ */ o.jsx("span", { className: "sr-only", children: "Toggle password visibility" })
3655
3304
  ]
3656
3305
  }
3657
3306
  );
3658
3307
  } else
3659
3308
  return null;
3660
3309
  }
3661
- function ee(t) {
3310
+ function H(t) {
3662
3311
  const e = {
3663
3312
  ID: "id",
3664
3313
  Username: "username",
@@ -3676,43 +3325,43 @@ function ee(t) {
3676
3325
  };
3677
3326
  return Object.keys(e).includes(t.name) ? e[t.name] : t.name;
3678
3327
  }
3679
- function Ae(t, e) {
3680
- const o = ["password", "confirm"], r = ee(t);
3681
- return o.includes(r) && !(e != null && e.hidePassword[r]) ? "password" : "text";
3328
+ function me(t, e) {
3329
+ const n = ["password", "confirm"], i = H(t);
3330
+ return n.includes(i) && !(e != null && e.hidePassword[i]) ? "password" : "text";
3682
3331
  }
3683
- function er(t) {
3332
+ function Ha(t) {
3684
3333
  return Object.fromEntries(
3685
- t.filter((e) => Ae(e) === "password").map((e) => [ee(e), !1])
3334
+ t.filter((e) => me(e) === "password").map((e) => [H(e), !1])
3686
3335
  );
3687
3336
  }
3688
- function tr(t) {
3337
+ function Ga(t) {
3689
3338
  return {
3690
- name: ee(t),
3339
+ name: H(t),
3691
3340
  label: t.label || t.name,
3692
3341
  placeholder: t.placeholder,
3693
3342
  required: t.required,
3694
- type: Ae(t)
3343
+ type: me(t)
3695
3344
  };
3696
3345
  }
3697
- function nr(t, e) {
3698
- const o = ee(e);
3699
- let r = t.string();
3700
- return o === "email" && (r = r.email()), e.required || (r = r.optional()), r;
3346
+ function Va(t, e) {
3347
+ const n = H(e);
3348
+ let i = t.string();
3349
+ return n === "email" && (i = i.email()), e.required || (i = i.optional()), i;
3701
3350
  }
3702
- function or(t) {
3703
- const e = t.map((r) => [ee(r), ""]), o = t.filter((r) => Gt(r)).map((r) => [ee(r) + "Code", ""]);
3704
- return Object.fromEntries([...e, ...o]);
3351
+ function qa(t) {
3352
+ const e = t.map((i) => [H(i), ""]), n = t.filter((i) => rt(i)).map((i) => [H(i) + "Code", ""]);
3353
+ return Object.fromEntries([...e, ...n]);
3705
3354
  }
3706
- function Gt(t) {
3707
- const e = ee(t);
3355
+ function rt(t) {
3356
+ const e = H(t);
3708
3357
  return (e === "email" || e === "phone") && !["None", "No verification"].includes(t.rule);
3709
3358
  }
3710
- function ar(t) {
3359
+ function Ya(t) {
3711
3360
  return t.visible === !0;
3712
3361
  }
3713
- function ir(t) {
3714
- var k;
3715
- const { t: e, i18n: o } = Le(), [r, i] = m.useState({
3362
+ function Qa(t) {
3363
+ var b;
3364
+ const { t: e, i18n: n } = ge(), [i, a] = f.useState({
3716
3365
  applicationName: t.applicationName ?? null,
3717
3366
  email: "",
3718
3367
  phone: "",
@@ -3726,223 +3375,223 @@ function ir(t) {
3726
3375
  isTermsOfUseVisible: !1,
3727
3376
  termsOfUseContent: ""
3728
3377
  });
3729
- m.useRef();
3730
- const l = (w) => {
3731
- w !== void 0 && Qe("admin", w).then(
3732
- (x) => {
3733
- if (x.status === "error") {
3734
- G("error", x.msg);
3378
+ f.useRef();
3379
+ const l = (m) => {
3380
+ m !== void 0 && ze("admin", m).then(
3381
+ (w) => {
3382
+ if (w.status === "error") {
3383
+ P("error", w.msg);
3735
3384
  return;
3736
3385
  }
3737
- f(x.data);
3386
+ d(w.data);
3738
3387
  }
3739
3388
  );
3740
- }, c = (w) => {
3741
- Rt(w).then((x) => {
3742
- if (x.status === "ok") {
3743
- const A = x.data;
3744
- f(A);
3389
+ }, r = (m) => {
3390
+ Xe(m).then((w) => {
3391
+ if (w.status === "ok") {
3392
+ const C = w.data;
3393
+ d(C);
3745
3394
  } else
3746
- f(null), i({
3747
- ...r,
3748
- msg: x.msg
3395
+ d(null), a({
3396
+ ...i,
3397
+ msg: w.msg
3749
3398
  });
3750
3399
  });
3751
- }, g = () => t.application, u = (w, x) => {
3752
- Ft(w, x).then(
3753
- (A) => {
3754
- if (A.status === "error") {
3755
- G("error", A.msg);
3400
+ }, p = () => t.application, u = (m, w) => {
3401
+ tt(m, w).then(
3402
+ (C) => {
3403
+ if (C.status === "error") {
3404
+ P("error", C.msg);
3756
3405
  return;
3757
3406
  }
3758
- i({ ...r, invitation: A.data });
3407
+ a({ ...i, invitation: C.data });
3759
3408
  }
3760
3409
  );
3761
- }, f = (w) => {
3762
- t.onUpdateApplication(w);
3410
+ }, d = (m) => {
3411
+ t.onUpdateApplication(m);
3763
3412
  };
3764
- m.useEffect(() => {
3765
- const w = It();
3766
- if (w !== null) {
3767
- const x = window.location.pathname.replace(
3413
+ f.useEffect(() => {
3414
+ const m = et();
3415
+ if (m !== null) {
3416
+ const w = window.location.pathname.replace(
3768
3417
  "/signup/oauth/authorize",
3769
3418
  "/login/oauth/authorize"
3770
3419
  );
3771
- sessionStorage.setItem("signinUrl", x + window.location.search);
3772
- }
3773
- if (g() === void 0)
3774
- if (r.applicationName !== null) {
3775
- l(r.applicationName);
3776
- const x = new URLSearchParams(window.location.search);
3777
- if (x.has("invitationCode")) {
3778
- const A = x.get("invitationCode") ?? "";
3779
- i({ ...r, invitationCode: A }), A !== "" && u(
3780
- A,
3781
- "admin/" + r.applicationName
3420
+ sessionStorage.setItem("signinUrl", w + window.location.search);
3421
+ }
3422
+ if (p() === void 0)
3423
+ if (i.applicationName !== null) {
3424
+ l(i.applicationName);
3425
+ const w = new URLSearchParams(window.location.search);
3426
+ if (w.has("invitationCode")) {
3427
+ const C = w.get("invitationCode") ?? "";
3428
+ a({ ...i, invitationCode: C }), C !== "" && u(
3429
+ C,
3430
+ "admin/" + i.applicationName
3782
3431
  );
3783
3432
  }
3784
- } else w !== null ? c(w) : (G(
3433
+ } else m !== null ? r(m) : (P(
3785
3434
  "error",
3786
- `Unknown application name: ${r.applicationName}`
3787
- ), f(null));
3435
+ `Unknown application name: ${i.applicationName}`
3436
+ ), d(null));
3788
3437
  }, []);
3789
- const h = g();
3790
- return h == null ? null : (k = h.signupItems) == null ? void 0 : k.map((w, x) => /* @__PURE__ */ a.jsx("div", { children: Ji(h, w, r, i, e) }, x));
3438
+ const g = p();
3439
+ return g == null ? null : (b = g.signupItems) == null ? void 0 : b.map((m, w) => /* @__PURE__ */ o.jsx("div", { children: Ra(g, m, i, a, e) }, w));
3791
3440
  }
3792
- function sr({
3441
+ function Xa({
3793
3442
  applicationName: t,
3794
3443
  casdoorApiRoot: e,
3795
- springmicroApiRoot: o
3444
+ springmicroApiRoot: n
3796
3445
  }) {
3797
- P.casdoor = e, o && (P.springmicro = o);
3798
- const [r, i] = m.useState({ application: null }), l = () => {
3799
- Qe("admin", t).then(
3800
- (c) => {
3801
- if (console.log(c), c.status === "error") {
3802
- G("error", c.msg);
3446
+ M.casdoor = e, n && (M.springmicro = n);
3447
+ const [i, a] = f.useState({ application: null }), l = () => {
3448
+ ze("admin", t).then(
3449
+ (r) => {
3450
+ if (r.status === "error") {
3451
+ P("error", r.msg);
3803
3452
  return;
3804
3453
  }
3805
- i({
3806
- application: c.data
3454
+ a({
3455
+ application: r.data
3807
3456
  });
3808
3457
  }
3809
3458
  );
3810
3459
  };
3811
- return m.useEffect(() => {
3460
+ return f.useEffect(() => {
3812
3461
  l();
3813
- }, []), r.application === void 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsx(kn, { i18n: K, children: /* @__PURE__ */ a.jsx(
3814
- ir,
3462
+ }, []), i.application === void 0 ? /* @__PURE__ */ o.jsx(o.Fragment, {}) : /* @__PURE__ */ o.jsx(pt, { i18n: U, children: /* @__PURE__ */ o.jsx(
3463
+ Qa,
3815
3464
  {
3816
- application: r.application,
3817
- onUpdateApplication: (c) => {
3818
- i({
3819
- application: c
3465
+ application: i.application,
3466
+ onUpdateApplication: (r) => {
3467
+ a({
3468
+ application: r
3820
3469
  });
3821
3470
  }
3822
3471
  }
3823
3472
  ) });
3824
3473
  }
3825
- const qt = m.createContext(
3474
+ const st = f.createContext(
3826
3475
  void 0
3827
3476
  );
3828
- function ur({
3477
+ function ei({
3829
3478
  applicationName: t,
3830
3479
  casdoorApiRoot: e,
3831
- springmicroApiRoot: o,
3832
- children: r
3480
+ springmicroApiRoot: n,
3481
+ children: i
3833
3482
  }) {
3834
- const { t: i, i18n: l } = Le();
3835
- P.casdoor = e, o && (P.springmicro = o);
3836
- const [c, g] = m.useState({ application: null }), [u, f] = m.useState({}), h = () => {
3837
- Qe("admin", t).then(
3838
- (b) => {
3839
- if (console.log(b), b.status === "error") {
3840
- G("error", b.msg);
3483
+ const { t: a, i18n: l } = ge();
3484
+ M.casdoor = e, n && (M.springmicro = n);
3485
+ const [r, p] = f.useState({ application: null }), [u, d] = f.useState({}), g = () => {
3486
+ ze("admin", t).then(
3487
+ (x) => {
3488
+ if (x.status === "error") {
3489
+ P("error", x.msg);
3841
3490
  return;
3842
3491
  }
3843
- g({
3844
- application: b.data
3492
+ p({
3493
+ application: x.data
3845
3494
  });
3846
3495
  }
3847
3496
  );
3848
- }, k = (b) => {
3849
- g({
3850
- application: b
3497
+ }, b = (x) => {
3498
+ p({
3499
+ application: x
3851
3500
  });
3852
- }, w = (b, E) => {
3853
- Ft(b, E).then(
3854
- (M) => {
3855
- if (M.status === "error") {
3856
- G("error", M.msg);
3501
+ }, m = (x, $) => {
3502
+ tt(x, $).then(
3503
+ (E) => {
3504
+ if (E.status === "error") {
3505
+ P("error", E.msg);
3857
3506
  return;
3858
3507
  }
3859
- g({ ...c, invitation: M.data });
3508
+ p({ ...r, invitation: E.data });
3860
3509
  }
3861
3510
  );
3862
- }, x = (b) => {
3863
- Rt(b).then((E) => {
3864
- if (E.status === "ok") {
3865
- const M = E.data;
3866
- k(M);
3511
+ }, w = (x) => {
3512
+ Xe(x).then(($) => {
3513
+ if ($.status === "ok") {
3514
+ const E = $.data;
3515
+ b(E);
3867
3516
  } else
3868
- k(null), g({
3869
- ...c,
3870
- msg: E.msg
3517
+ b(null), p({
3518
+ ...r,
3519
+ msg: $.msg
3871
3520
  });
3872
3521
  });
3873
- }, A = (b, E) => Xi(
3874
- b,
3522
+ }, C = (x, $) => Wa(
3523
+ x,
3875
3524
  {
3876
3525
  password: {
3877
3526
  state: u,
3878
- setState: f
3527
+ setState: d
3879
3528
  }
3880
3529
  },
3881
- E
3882
- ), U = (b) => Ae(b, {
3530
+ $
3531
+ ), B = (x) => me(x, {
3883
3532
  hidePassword: u
3884
- }), Q = Nt, R = Dt;
3885
- return m.useEffect(() => {
3886
- h();
3887
- }, []), m.useEffect(() => {
3888
- c.application && f(
3889
- er(c.application.signupItems)
3533
+ }), F = nt, I = ot;
3534
+ return f.useEffect(() => {
3535
+ g();
3536
+ }, []), f.useEffect(() => {
3537
+ r.application && d(
3538
+ Ha(r.application.signupItems)
3890
3539
  );
3891
- }, [c.application]), m.useEffect(() => {
3892
- const b = It();
3893
- if (b !== null) {
3894
- const E = window.location.pathname.replace(
3540
+ }, [r.application]), f.useEffect(() => {
3541
+ const x = et();
3542
+ if (x !== null) {
3543
+ const $ = window.location.pathname.replace(
3895
3544
  "/signup/oauth/authorize",
3896
3545
  "/login/oauth/authorize"
3897
3546
  );
3898
- sessionStorage.setItem("signinUrl", E + window.location.search);
3899
- }
3900
- if (c.application === void 0)
3901
- if (c.applicationName !== null) {
3902
- h();
3903
- const E = new URLSearchParams(window.location.search);
3904
- if (E.has("invitationCode")) {
3905
- const M = E.get("invitationCode") ?? "";
3906
- g({ ...c, invitationCode: M }), M !== "" && w(
3907
- M,
3908
- "admin/" + c.applicationName
3547
+ sessionStorage.setItem("signinUrl", $ + window.location.search);
3548
+ }
3549
+ if (r.application === void 0)
3550
+ if (r.applicationName !== null) {
3551
+ g();
3552
+ const $ = new URLSearchParams(window.location.search);
3553
+ if ($.has("invitationCode")) {
3554
+ const E = $.get("invitationCode") ?? "";
3555
+ p({ ...r, invitationCode: E }), E !== "" && m(
3556
+ E,
3557
+ "admin/" + r.applicationName
3909
3558
  );
3910
3559
  }
3911
- } else b !== null ? x(b) : (G(
3560
+ } else x !== null ? w(x) : (P(
3912
3561
  "error",
3913
- `Unknown application name: ${c.applicationName}`
3914
- ), k(null));
3915
- }, []), c.application === void 0 || c.application === null ? null : /* @__PURE__ */ a.jsx(
3916
- qt.Provider,
3562
+ `Unknown application name: ${r.applicationName}`
3563
+ ), b(null));
3564
+ }, []), r.application === void 0 || r.application === null ? null : /* @__PURE__ */ o.jsx(
3565
+ st.Provider,
3917
3566
  {
3918
3567
  value: {
3919
- application: c.application,
3920
- getDefaultValues: or,
3921
- getFormProps: tr,
3922
- icon: A,
3923
- getZod: nr,
3924
- getKey: ee,
3925
- type: U,
3926
- sendCode: Q,
3927
- requiresCode: Gt,
3928
- getCaptcha: R,
3929
- isVisible: ar
3568
+ application: r.application,
3569
+ getDefaultValues: qa,
3570
+ getFormProps: Ga,
3571
+ icon: C,
3572
+ getZod: Va,
3573
+ getKey: H,
3574
+ type: B,
3575
+ sendCode: F,
3576
+ requiresCode: rt,
3577
+ getCaptcha: I,
3578
+ isVisible: Ya
3930
3579
  },
3931
- children: r
3580
+ children: i
3932
3581
  }
3933
3582
  );
3934
3583
  }
3935
- const dr = () => {
3936
- const t = m.useContext(qt);
3584
+ const ti = () => {
3585
+ const t = f.useContext(st);
3937
3586
  if (!t)
3938
3587
  throw new Error("useSignUp must be used within a SignUpProvider");
3939
3588
  return t;
3940
3589
  };
3941
3590
  export {
3942
- sr as S,
3943
- En as a,
3944
- ur as b,
3945
- qn as g,
3946
- G as s,
3947
- dr as u
3591
+ Xa as S,
3592
+ mt as a,
3593
+ ei as b,
3594
+ Ot as g,
3595
+ P as s,
3596
+ ti as u
3948
3597
  };