authhero 0.267.0 → 0.268.0
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.
- package/dist/authhero.cjs +16 -16
- package/dist/authhero.mjs +888 -891
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/authhero.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as o, OpenAPIHono as W, createRoute as x } from "@hono/zod-openapi";
|
|
2
|
-
const
|
|
2
|
+
const Y = (t) => typeof t == "string", bi = () => {
|
|
3
3
|
let t, e;
|
|
4
4
|
const n = new Promise((r, i) => {
|
|
5
5
|
t = r, e = i;
|
|
@@ -9,8 +9,8 @@ const Q = (t) => typeof t == "string", bi = () => {
|
|
|
9
9
|
t.forEach((r) => {
|
|
10
10
|
e[r] && (n[r] = e[r]);
|
|
11
11
|
});
|
|
12
|
-
}, v1 = /###/g, qp = (t) => t && t.indexOf("###") > -1 ? t.replace(v1, ".") : t, Fp = (t) => !t ||
|
|
13
|
-
const r =
|
|
12
|
+
}, v1 = /###/g, qp = (t) => t && t.indexOf("###") > -1 ? t.replace(v1, ".") : t, Fp = (t) => !t || Y(t), Ji = (t, e, n) => {
|
|
13
|
+
const r = Y(e) ? e.split(".") : e;
|
|
14
14
|
let i = 0;
|
|
15
15
|
for (; i < r.length - 1; ) {
|
|
16
16
|
if (Fp(t)) return {};
|
|
@@ -52,7 +52,7 @@ const Q = (t) => typeof t == "string", bi = () => {
|
|
|
52
52
|
return r !== void 0 ? r : As(e, n);
|
|
53
53
|
}, m0 = (t, e, n) => {
|
|
54
54
|
for (const r in e)
|
|
55
|
-
r !== "__proto__" && r !== "constructor" && (r in t ?
|
|
55
|
+
r !== "__proto__" && r !== "constructor" && (r in t ? Y(t[r]) || t[r] instanceof String || Y(e[r]) || e[r] instanceof String ? n && (t[r] = e[r]) : m0(t[r], e[r], n) : t[r] = e[r]);
|
|
56
56
|
return t;
|
|
57
57
|
}, wr = (t) => t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
58
58
|
var x1 = {
|
|
@@ -63,7 +63,7 @@ var x1 = {
|
|
|
63
63
|
"'": "'",
|
|
64
64
|
"/": "/"
|
|
65
65
|
};
|
|
66
|
-
const S1 = (t) =>
|
|
66
|
+
const S1 = (t) => Y(t) ? t.replace(/[&<>"'\/]/g, (e) => x1[e]) : t;
|
|
67
67
|
class A1 {
|
|
68
68
|
constructor(e) {
|
|
69
69
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
@@ -142,7 +142,7 @@ class Es {
|
|
|
142
142
|
return this.forward(e, "warn", "WARNING DEPRECATED: ", !0);
|
|
143
143
|
}
|
|
144
144
|
forward(e, n, r, i) {
|
|
145
|
-
return i && !this.debug ? null : (
|
|
145
|
+
return i && !this.debug ? null : (Y(e[0]) && (e[0] = `${r}${this.prefix} ${e[0]}`), this.logger[n](e));
|
|
146
146
|
}
|
|
147
147
|
create(e) {
|
|
148
148
|
return new Es(this.logger, {
|
|
@@ -202,9 +202,9 @@ class Vp extends ba {
|
|
|
202
202
|
getResource(e, n, r, i = {}) {
|
|
203
203
|
const s = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, a = i.ignoreJSONStructure !== void 0 ? i.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
204
204
|
let c;
|
|
205
|
-
e.indexOf(".") > -1 ? c = e.split(".") : (c = [e, n], r && (Array.isArray(r) ? c.push(...r) :
|
|
205
|
+
e.indexOf(".") > -1 ? c = e.split(".") : (c = [e, n], r && (Array.isArray(r) ? c.push(...r) : Y(r) && s ? c.push(...r.split(s)) : c.push(r)));
|
|
206
206
|
const l = As(this.data, c);
|
|
207
|
-
return !l && !n && !r && e.indexOf(".") > -1 && (e = c[0], n = c[1], r = c.slice(2).join(".")), l || !a || !
|
|
207
|
+
return !l && !n && !r && e.indexOf(".") > -1 && (e = c[0], n = c[1], r = c.slice(2).join(".")), l || !a || !Y(r) ? l : hl(this.data?.[e]?.[n], r, s);
|
|
208
208
|
}
|
|
209
209
|
addResource(e, n, r, i, s = {
|
|
210
210
|
silent: !1
|
|
@@ -217,7 +217,7 @@ class Vp extends ba {
|
|
|
217
217
|
silent: !1
|
|
218
218
|
}) {
|
|
219
219
|
for (const s in r)
|
|
220
|
-
(
|
|
220
|
+
(Y(r[s]) || Array.isArray(r[s])) && this.addResource(e, n, s, r[s], {
|
|
221
221
|
silent: !0
|
|
222
222
|
});
|
|
223
223
|
i.silent || this.emit("added", e, n, r);
|
|
@@ -277,7 +277,7 @@ function gl(t, e) {
|
|
|
277
277
|
} = t(I1());
|
|
278
278
|
return n.join(e?.keySeparator ?? ".");
|
|
279
279
|
}
|
|
280
|
-
const Kp = {}, Rc = (t) => !
|
|
280
|
+
const Kp = {}, Rc = (t) => !Y(t) && typeof t != "boolean" && typeof t != "number";
|
|
281
281
|
class Cs extends ba {
|
|
282
282
|
constructor(e, n = {}) {
|
|
283
283
|
super(), b1(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = qt.create("translator");
|
|
@@ -308,14 +308,14 @@ class Cs extends ba {
|
|
|
308
308
|
if (l && l.length > 0)
|
|
309
309
|
return {
|
|
310
310
|
key: e,
|
|
311
|
-
namespaces:
|
|
311
|
+
namespaces: Y(s) ? [s] : s
|
|
312
312
|
};
|
|
313
313
|
const d = e.split(r);
|
|
314
314
|
(r !== i || r === i && this.options.ns.indexOf(d[0]) > -1) && (s = d.shift()), e = d.join(i);
|
|
315
315
|
}
|
|
316
316
|
return {
|
|
317
317
|
key: e,
|
|
318
|
-
namespaces:
|
|
318
|
+
namespaces: Y(s) ? [s] : s
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
321
|
translate(e, n, r) {
|
|
@@ -354,47 +354,47 @@ class Cs extends ba {
|
|
|
354
354
|
} : c;
|
|
355
355
|
const _ = this.resolve(e, i);
|
|
356
356
|
let w = _?.res;
|
|
357
|
-
const k = _?.usedKey || c, A = _?.exactUsedKey || c, j = ["[object Number]", "[object Function]", "[object RegExp]"],
|
|
357
|
+
const k = _?.usedKey || c, A = _?.exactUsedKey || c, j = ["[object Number]", "[object Function]", "[object RegExp]"], P = i.joinArrays !== void 0 ? i.joinArrays : this.options.joinArrays, C = !this.i18nFormat || this.i18nFormat.handleAsObject, I = i.count !== void 0 && !Y(i.count), L = Cs.hasDefaultValue(i), J = I ? this.pluralResolver.getSuffix(f, i.count, i) : "", ie = i.ordinal && I ? this.pluralResolver.getSuffix(f, i.count, {
|
|
358
358
|
ordinal: !1
|
|
359
|
-
}) : "",
|
|
360
|
-
let
|
|
361
|
-
|
|
362
|
-
const fe = Rc(
|
|
363
|
-
if (
|
|
359
|
+
}) : "", V = I && !i.ordinal && i.count === 0, Q = V && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${J}`] || i[`defaultValue${ie}`] || i.defaultValue;
|
|
360
|
+
let ae = w;
|
|
361
|
+
C && !w && L && (ae = Q);
|
|
362
|
+
const fe = Rc(ae), he = Object.prototype.toString.apply(ae);
|
|
363
|
+
if (C && ae && fe && j.indexOf(he) < 0 && !(Y(P) && Array.isArray(ae))) {
|
|
364
364
|
if (!i.returnObjects && !this.options.returnObjects) {
|
|
365
365
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
366
|
-
const xe = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(k,
|
|
366
|
+
const xe = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(k, ae, {
|
|
367
367
|
...i,
|
|
368
368
|
ns: l
|
|
369
369
|
}) : `key '${c} (${this.language})' returned an object instead of string.`;
|
|
370
370
|
return s ? (_.res = xe, _.usedParams = this.getUsedParamsDetails(i), _) : xe;
|
|
371
371
|
}
|
|
372
372
|
if (a) {
|
|
373
|
-
const xe = Array.isArray(
|
|
374
|
-
for (const Ge in
|
|
375
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
373
|
+
const xe = Array.isArray(ae), be = xe ? [] : {}, Lt = xe ? A : k;
|
|
374
|
+
for (const Ge in ae)
|
|
375
|
+
if (Object.prototype.hasOwnProperty.call(ae, Ge)) {
|
|
376
376
|
const rt = `${Lt}${a}${Ge}`;
|
|
377
|
-
|
|
377
|
+
L && !w ? be[Ge] = this.translate(rt, {
|
|
378
378
|
...i,
|
|
379
|
-
defaultValue: Rc(
|
|
379
|
+
defaultValue: Rc(Q) ? Q[Ge] : void 0,
|
|
380
380
|
joinArrays: !1,
|
|
381
381
|
ns: l
|
|
382
382
|
}) : be[Ge] = this.translate(rt, {
|
|
383
383
|
...i,
|
|
384
384
|
joinArrays: !1,
|
|
385
385
|
ns: l
|
|
386
|
-
}), be[Ge] === rt && (be[Ge] =
|
|
386
|
+
}), be[Ge] === rt && (be[Ge] = ae[Ge]);
|
|
387
387
|
}
|
|
388
388
|
w = be;
|
|
389
389
|
}
|
|
390
|
-
} else if (
|
|
391
|
-
w = w.join(
|
|
390
|
+
} else if (C && Y(P) && Array.isArray(w))
|
|
391
|
+
w = w.join(P), w && (w = this.extendTranslation(w, e, i, r));
|
|
392
392
|
else {
|
|
393
393
|
let xe = !1, be = !1;
|
|
394
|
-
!this.isValidLookup(w) &&
|
|
395
|
-
const Ge = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && be ? void 0 : w, rt =
|
|
394
|
+
!this.isValidLookup(w) && L && (xe = !0, w = Q), this.isValidLookup(w) || (be = !0, w = c);
|
|
395
|
+
const Ge = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && be ? void 0 : w, rt = L && Q !== w && this.options.updateMissing;
|
|
396
396
|
if (be || xe || rt) {
|
|
397
|
-
if (this.logger.log(rt ? "updateKey" : "missingKey", f, d, c, rt ?
|
|
397
|
+
if (this.logger.log(rt ? "updateKey" : "missingKey", f, d, c, rt ? Q : w), a) {
|
|
398
398
|
const Ue = this.resolve(c, {
|
|
399
399
|
...i,
|
|
400
400
|
keySeparator: !1
|
|
@@ -408,15 +408,15 @@ class Cs extends ba {
|
|
|
408
408
|
mt.push(Qt[Ue]);
|
|
409
409
|
else this.options.saveMissingTo === "all" ? mt = this.languageUtils.toResolveHierarchy(i.lng || this.language) : mt.push(i.lng || this.language);
|
|
410
410
|
const zn = (Ue, ve, G) => {
|
|
411
|
-
const en =
|
|
411
|
+
const en = L && G !== w ? G : Ge;
|
|
412
412
|
this.options.missingKeyHandler ? this.options.missingKeyHandler(Ue, d, ve, en, rt, i) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(Ue, d, ve, en, rt, i), this.emit("missingKey", Ue, d, ve, w);
|
|
413
413
|
};
|
|
414
414
|
this.options.saveMissing && (this.options.saveMissingPlurals && I ? mt.forEach((Ue) => {
|
|
415
415
|
const ve = this.pluralResolver.getSuffixes(Ue, i);
|
|
416
|
-
|
|
417
|
-
zn([Ue], c + G, i[`defaultValue${G}`] ||
|
|
416
|
+
V && i[`defaultValue${this.options.pluralSeparator}zero`] && ve.indexOf(`${this.options.pluralSeparator}zero`) < 0 && ve.push(`${this.options.pluralSeparator}zero`), ve.forEach((G) => {
|
|
417
|
+
zn([Ue], c + G, i[`defaultValue${G}`] || Q);
|
|
418
418
|
});
|
|
419
|
-
}) : zn(mt, c,
|
|
419
|
+
}) : zn(mt, c, Q));
|
|
420
420
|
}
|
|
421
421
|
w = this.extendTranslation(w, e, i, _, r), be && w === c && this.options.appendNamespaceToMissingKey && (w = `${d}${p}${c}`), (be || xe) && this.options.parseMissingKeyHandler && (w = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}${p}${c}` : c, xe ? w : void 0, i));
|
|
422
422
|
}
|
|
@@ -438,13 +438,13 @@ class Cs extends ba {
|
|
|
438
438
|
...r.interpolation
|
|
439
439
|
}
|
|
440
440
|
});
|
|
441
|
-
const l =
|
|
441
|
+
const l = Y(e) && (r?.interpolation?.skipOnVariables !== void 0 ? r.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
442
442
|
let d;
|
|
443
443
|
if (l) {
|
|
444
444
|
const f = e.match(this.interpolator.nestingRegexp);
|
|
445
445
|
d = f && f.length;
|
|
446
446
|
}
|
|
447
|
-
let p = r.replace && !
|
|
447
|
+
let p = r.replace && !Y(r.replace) ? r.replace : r;
|
|
448
448
|
if (this.options.interpolation.defaultVariables && (p = {
|
|
449
449
|
...this.options.interpolation.defaultVariables,
|
|
450
450
|
...p
|
|
@@ -454,7 +454,7 @@ class Cs extends ba {
|
|
|
454
454
|
}
|
|
455
455
|
!r.lng && i && i.res && (r.lng = this.language || i.usedLng), r.nest !== !1 && (e = this.interpolator.nest(e, (...f) => s?.[0] === f[0] && !r.context ? (this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${n[0]}`), null) : this.translate(...f, n), r)), r.interpolation && this.interpolator.reset();
|
|
456
456
|
}
|
|
457
|
-
const a = r.postProcess || this.options.postProcess, c =
|
|
457
|
+
const a = r.postProcess || this.options.postProcess, c = Y(a) ? [a] : a;
|
|
458
458
|
return e != null && c?.length && r.applyPostProcessor !== !1 && (e = _0.handle(c, e, n, this.options && this.options.postProcessPassResolved ? {
|
|
459
459
|
i18nResolved: {
|
|
460
460
|
...i,
|
|
@@ -465,32 +465,32 @@ class Cs extends ba {
|
|
|
465
465
|
}
|
|
466
466
|
resolve(e, n = {}) {
|
|
467
467
|
let r, i, s, a, c;
|
|
468
|
-
return
|
|
468
|
+
return Y(e) && (e = [e]), e.forEach((l) => {
|
|
469
469
|
if (this.isValidLookup(r)) return;
|
|
470
470
|
const d = this.extractFromKey(l, n), p = d.key;
|
|
471
471
|
i = p;
|
|
472
472
|
let f = d.namespaces;
|
|
473
473
|
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
474
|
-
const g = n.count !== void 0 && !
|
|
474
|
+
const g = n.count !== void 0 && !Y(n.count), _ = g && !n.ordinal && n.count === 0, w = n.context !== void 0 && (Y(n.context) || typeof n.context == "number") && n.context !== "", k = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
|
|
475
475
|
f.forEach((A) => {
|
|
476
476
|
this.isValidLookup(r) || (c = A, !Kp[`${k[0]}-${A}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(c) && (Kp[`${k[0]}-${A}`] = !0, this.logger.warn(`key "${i}" for languages "${k.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), k.forEach((j) => {
|
|
477
477
|
if (this.isValidLookup(r)) return;
|
|
478
478
|
a = j;
|
|
479
|
-
const
|
|
479
|
+
const P = [p];
|
|
480
480
|
if (this.i18nFormat?.addLookupKeys)
|
|
481
|
-
this.i18nFormat.addLookupKeys(
|
|
481
|
+
this.i18nFormat.addLookupKeys(P, p, j, A, n);
|
|
482
482
|
else {
|
|
483
483
|
let I;
|
|
484
484
|
g && (I = this.pluralResolver.getSuffix(j, n.count, n));
|
|
485
|
-
const
|
|
486
|
-
if (g && (n.ordinal && I.indexOf(J) === 0 &&
|
|
487
|
-
const
|
|
488
|
-
|
|
485
|
+
const L = `${this.options.pluralSeparator}zero`, J = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
486
|
+
if (g && (n.ordinal && I.indexOf(J) === 0 && P.push(p + I.replace(J, this.options.pluralSeparator)), P.push(p + I), _ && P.push(p + L)), w) {
|
|
487
|
+
const ie = `${p}${this.options.contextSeparator || "_"}${n.context}`;
|
|
488
|
+
P.push(ie), g && (n.ordinal && I.indexOf(J) === 0 && P.push(ie + I.replace(J, this.options.pluralSeparator)), P.push(ie + I), _ && P.push(ie + L));
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
let
|
|
492
|
-
for (;
|
|
493
|
-
this.isValidLookup(r) || (s =
|
|
491
|
+
let C;
|
|
492
|
+
for (; C = P.pop(); )
|
|
493
|
+
this.isValidLookup(r) || (s = C, r = this.getResource(j, A, C, n));
|
|
494
494
|
}));
|
|
495
495
|
});
|
|
496
496
|
}), {
|
|
@@ -508,7 +508,7 @@ class Cs extends ba {
|
|
|
508
508
|
return this.i18nFormat?.getResource ? this.i18nFormat.getResource(e, n, r, i) : this.resourceStore.getResource(e, n, r, i);
|
|
509
509
|
}
|
|
510
510
|
getUsedParamsDetails(e = {}) {
|
|
511
|
-
const n = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], r = e.replace && !
|
|
511
|
+
const n = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], r = e.replace && !Y(e.replace);
|
|
512
512
|
let i = r ? e.replace : e;
|
|
513
513
|
if (r && typeof e.count < "u" && (i.count = e.count), this.options.interpolation.defaultVariables && (i = {
|
|
514
514
|
...this.options.interpolation.defaultVariables,
|
|
@@ -545,7 +545,7 @@ class Gp {
|
|
|
545
545
|
return this.formatLanguageCode(n[0]);
|
|
546
546
|
}
|
|
547
547
|
formatLanguageCode(e) {
|
|
548
|
-
if (
|
|
548
|
+
if (Y(e) && e.indexOf("-") > -1) {
|
|
549
549
|
let n;
|
|
550
550
|
try {
|
|
551
551
|
n = Intl.getCanonicalLocales(e)[0];
|
|
@@ -580,7 +580,7 @@ class Gp {
|
|
|
580
580
|
}
|
|
581
581
|
getFallbackCodes(e, n) {
|
|
582
582
|
if (!e) return [];
|
|
583
|
-
if (typeof e == "function" && (e = e(n)),
|
|
583
|
+
if (typeof e == "function" && (e = e(n)), Y(e) && (e = [e]), Array.isArray(e)) return e;
|
|
584
584
|
if (!n) return e.default || [];
|
|
585
585
|
let r = e[n];
|
|
586
586
|
return r || (r = e[this.getScriptPartFromCode(n)]), r || (r = e[this.formatLanguageCode(n)]), r || (r = e[this.getLanguagePartFromCode(n)]), r || (r = e.default), r || [];
|
|
@@ -589,7 +589,7 @@ class Gp {
|
|
|
589
589
|
const r = this.getFallbackCodes((n === !1 ? [] : n) || this.options.fallbackLng || [], e), i = [], s = (a) => {
|
|
590
590
|
a && (this.isSupportedCode(a) ? i.push(a) : this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`));
|
|
591
591
|
};
|
|
592
|
-
return
|
|
592
|
+
return Y(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && s(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && s(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && s(this.getLanguagePartFromCode(e))) : Y(e) && s(this.formatLanguageCode(e)), r.forEach((a) => {
|
|
593
593
|
i.indexOf(a) < 0 && s(this.formatLanguageCode(a));
|
|
594
594
|
}), i;
|
|
595
595
|
}
|
|
@@ -656,7 +656,7 @@ class O1 {
|
|
|
656
656
|
}
|
|
657
657
|
const Xp = (t, e, n, r = ".", i = !0) => {
|
|
658
658
|
let s = k1(t, e, n);
|
|
659
|
-
return !s && i &&
|
|
659
|
+
return !s && i && Y(n) && (s = hl(t, n, r), s === void 0 && (s = hl(e, n, r))), s;
|
|
660
660
|
}, Bc = (t) => t.replace(/\$/g, "$$$$");
|
|
661
661
|
class P1 {
|
|
662
662
|
constructor(e = {}) {
|
|
@@ -683,9 +683,9 @@ class P1 {
|
|
|
683
683
|
nestingSuffixEscaped: k,
|
|
684
684
|
nestingOptionsSeparator: A,
|
|
685
685
|
maxReplaces: j,
|
|
686
|
-
alwaysFormat:
|
|
686
|
+
alwaysFormat: P
|
|
687
687
|
} = e.interpolation;
|
|
688
|
-
this.escape = n !== void 0 ? n : S1, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? wr(s) : a || "{{", this.suffix = c ? wr(c) : l || "}}", this.formatSeparator = d || ",", this.unescapePrefix = p ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : p || "", this.nestingPrefix = g ? wr(g) : _ || wr("$t("), this.nestingSuffix = w ? wr(w) : k || wr(")"), this.nestingOptionsSeparator = A || ",", this.maxReplaces = j || 1e3, this.alwaysFormat =
|
|
688
|
+
this.escape = n !== void 0 ? n : S1, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? wr(s) : a || "{{", this.suffix = c ? wr(c) : l || "}}", this.formatSeparator = d || ",", this.unescapePrefix = p ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : p || "", this.nestingPrefix = g ? wr(g) : _ || wr("$t("), this.nestingSuffix = w ? wr(w) : k || wr(")"), this.nestingOptionsSeparator = A || ",", this.maxReplaces = j || 1e3, this.alwaysFormat = P !== void 0 ? P : !1, this.resetRegExp();
|
|
689
689
|
}
|
|
690
690
|
reset() {
|
|
691
691
|
this.options && this.init(this.options);
|
|
@@ -726,7 +726,7 @@ class P1 {
|
|
|
726
726
|
if (a = d(w), a === void 0)
|
|
727
727
|
if (typeof p == "function") {
|
|
728
728
|
const A = p(e, s, i);
|
|
729
|
-
a =
|
|
729
|
+
a = Y(A) ? A : "";
|
|
730
730
|
} else if (i && Object.prototype.hasOwnProperty.call(i, w))
|
|
731
731
|
a = "";
|
|
732
732
|
else if (f) {
|
|
@@ -734,7 +734,7 @@ class P1 {
|
|
|
734
734
|
continue;
|
|
735
735
|
} else
|
|
736
736
|
this.logger.warn(`missed to pass in variable ${w} for interpolating ${e}`), a = "";
|
|
737
|
-
else !
|
|
737
|
+
else !Y(a) && !this.useRawValueToEscape && (a = zp(a));
|
|
738
738
|
const k = _.safeValue(a);
|
|
739
739
|
if (e = e.replace(s[0], k), f ? (_.regex.lastIndex += a.length, _.regex.lastIndex -= s[0].length) : _.regex.lastIndex = 0, c++, c >= this.maxReplaces)
|
|
740
740
|
break;
|
|
@@ -765,10 +765,10 @@ class P1 {
|
|
|
765
765
|
let l = [];
|
|
766
766
|
a = {
|
|
767
767
|
...r
|
|
768
|
-
}, a = a.replace && !
|
|
768
|
+
}, a = a.replace && !Y(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
|
|
769
769
|
const d = /{.*}/.test(i[1]) ? i[1].lastIndexOf("}") + 1 : i[1].indexOf(this.formatSeparator);
|
|
770
|
-
if (d !== -1 && (l = i[1].slice(d).split(this.formatSeparator).map((p) => p.trim()).filter(Boolean), i[1] = i[1].slice(0, d)), s = n(c.call(this, i[1].trim(), a), a), s && i[0] === e && !
|
|
771
|
-
|
|
770
|
+
if (d !== -1 && (l = i[1].slice(d).split(this.formatSeparator).map((p) => p.trim()).filter(Boolean), i[1] = i[1].slice(0, d)), s = n(c.call(this, i[1].trim(), a), a), s && i[0] === e && !Y(s)) return s;
|
|
771
|
+
Y(s) || (s = zp(s)), s || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), s = ""), l.length && (s = l.reduce((p, f) => this.format(p, f, r.lng, {
|
|
772
772
|
...r,
|
|
773
773
|
interpolationkey: i[1].trim()
|
|
774
774
|
}), s.trim())), e = e.replace(i[0], s), this.regexp.lastIndex = 0;
|
|
@@ -971,7 +971,7 @@ class U1 extends ba {
|
|
|
971
971
|
prepareLoading(e, n, r = {}, i) {
|
|
972
972
|
if (!this.backend)
|
|
973
973
|
return this.logger.warn("No backend was added via i18next.use. Will not load resources."), i && i();
|
|
974
|
-
|
|
974
|
+
Y(e) && (e = this.languageUtils.toResolveHierarchy(e)), Y(n) && (n = [n]);
|
|
975
975
|
const s = this.queueLoad(e, n, r, i);
|
|
976
976
|
if (!s.toLoad.length)
|
|
977
977
|
return s.pending.length || i(), null;
|
|
@@ -1054,7 +1054,7 @@ const Yp = () => ({
|
|
|
1054
1054
|
appendNamespaceToCIMode: !1,
|
|
1055
1055
|
overloadTranslationOptionHandler: (t) => {
|
|
1056
1056
|
let e = {};
|
|
1057
|
-
if (typeof t[1] == "object" && (e = t[1]),
|
|
1057
|
+
if (typeof t[1] == "object" && (e = t[1]), Y(t[1]) && (e.defaultValue = t[1]), Y(t[2]) && (e.tDescription = t[2]), typeof t[2] == "object" || typeof t[3] == "object") {
|
|
1058
1058
|
const n = t[3] || t[2];
|
|
1059
1059
|
Object.keys(n).forEach((r) => {
|
|
1060
1060
|
e[r] = n[r];
|
|
@@ -1076,7 +1076,7 @@ const Yp = () => ({
|
|
|
1076
1076
|
skipOnVariables: !0
|
|
1077
1077
|
},
|
|
1078
1078
|
cacheInBuiltFormats: !0
|
|
1079
|
-
}), Qp = (t) => (
|
|
1079
|
+
}), Qp = (t) => (Y(t.ns) && (t.ns = [t.ns]), Y(t.fallbackLng) && (t.fallbackLng = [t.fallbackLng]), Y(t.fallbackNS) && (t.fallbackNS = [t.fallbackNS]), t.supportedLngs?.indexOf?.("cimode") < 0 && (t.supportedLngs = t.supportedLngs.concat(["cimode"])), typeof t.initImmediate == "boolean" && (t.initAsync = t.initImmediate), t), ss = () => {
|
|
1080
1080
|
}, D1 = (t) => {
|
|
1081
1081
|
Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach((n) => {
|
|
1082
1082
|
typeof t[n] == "function" && (t[n] = t[n].bind(t));
|
|
@@ -1095,7 +1095,7 @@ class Xi extends ba {
|
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
1097
1097
|
init(e = {}, n) {
|
|
1098
|
-
this.isInitializing = !0, typeof e == "function" && (n = e, e = {}), e.defaultNS == null && e.ns && (
|
|
1098
|
+
this.isInitializing = !0, typeof e == "function" && (n = e, e = {}), e.defaultNS == null && e.ns && (Y(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
|
|
1099
1099
|
const r = Yp();
|
|
1100
1100
|
this.options = {
|
|
1101
1101
|
...r,
|
|
@@ -1146,7 +1146,7 @@ class Xi extends ba {
|
|
|
1146
1146
|
}
|
|
1147
1147
|
loadResources(e, n = ss) {
|
|
1148
1148
|
let r = n;
|
|
1149
|
-
const i =
|
|
1149
|
+
const i = Y(e) ? e : this.language;
|
|
1150
1150
|
if (typeof e == "function" && (r = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
1151
1151
|
if (i?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return r();
|
|
1152
1152
|
const s = [], a = (c) => {
|
|
@@ -1194,7 +1194,7 @@ class Xi extends ba {
|
|
|
1194
1194
|
l ? this.isLanguageChangingTo === e && (i(l), this.translator.changeLanguage(l), this.isLanguageChangingTo = void 0, this.emit("languageChanged", l), this.logger.log("languageChanged", l)) : this.isLanguageChangingTo = void 0, r.resolve((...d) => this.t(...d)), n && n(c, (...d) => this.t(...d));
|
|
1195
1195
|
}, a = (c) => {
|
|
1196
1196
|
!e && !c && this.services.languageDetector && (c = []);
|
|
1197
|
-
const l =
|
|
1197
|
+
const l = Y(c) ? c : c && c[0], d = this.store.hasLanguageSomeTranslations(l) ? l : this.services.languageUtils.getBestMatchFromCodes(Y(c) ? [c] : c);
|
|
1198
1198
|
d && (this.language || i(d), this.translator.language || this.translator.changeLanguage(d), this.services.languageDetector?.cacheUserLanguage?.(d)), this.loadResources(d, (p) => {
|
|
1199
1199
|
s(p, d);
|
|
1200
1200
|
});
|
|
@@ -1217,7 +1217,7 @@ class Xi extends ba {
|
|
|
1217
1217
|
...a
|
|
1218
1218
|
})), p = l.keyPrefix ? `${l.keyPrefix}${d}${s}` : s), this.t(p, l);
|
|
1219
1219
|
};
|
|
1220
|
-
return
|
|
1220
|
+
return Y(e) ? i.lng = e : i.lngs = e, i.ns = n, i.keyPrefix = r, i;
|
|
1221
1221
|
}
|
|
1222
1222
|
t(...e) {
|
|
1223
1223
|
return this.translator?.translate(...e);
|
|
@@ -1247,7 +1247,7 @@ class Xi extends ba {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
loadNamespaces(e, n) {
|
|
1249
1249
|
const r = bi();
|
|
1250
|
-
return this.options.ns ? (
|
|
1250
|
+
return this.options.ns ? (Y(e) && (e = [e]), e.forEach((i) => {
|
|
1251
1251
|
this.options.ns.indexOf(i) < 0 && this.options.ns.push(i);
|
|
1252
1252
|
}), this.loadResources((i) => {
|
|
1253
1253
|
r.resolve(), n && n(i);
|
|
@@ -1255,7 +1255,7 @@ class Xi extends ba {
|
|
|
1255
1255
|
}
|
|
1256
1256
|
loadLanguages(e, n) {
|
|
1257
1257
|
const r = bi();
|
|
1258
|
-
|
|
1258
|
+
Y(e) && (e = [e]);
|
|
1259
1259
|
const i = this.options.preload || [], s = e.filter((a) => i.indexOf(a) < 0 && this.services.languageUtils.isSupportedCode(a));
|
|
1260
1260
|
return s.length ? (this.options.preload = i.concat(s), this.loadResources((a) => {
|
|
1261
1261
|
r.resolve(), n && n(a);
|
|
@@ -1325,7 +1325,7 @@ y.reloadResources;
|
|
|
1325
1325
|
y.use;
|
|
1326
1326
|
y.changeLanguage;
|
|
1327
1327
|
y.getFixedT;
|
|
1328
|
-
const
|
|
1328
|
+
const Z = y.t;
|
|
1329
1329
|
y.exists;
|
|
1330
1330
|
y.setDefaultNamespace;
|
|
1331
1331
|
y.hasLoadedNamespace;
|
|
@@ -2343,7 +2343,7 @@ const iw = o.enum([
|
|
|
2343
2343
|
}),
|
|
2344
2344
|
created_at: o.string(),
|
|
2345
2345
|
updated_at: o.string()
|
|
2346
|
-
}),
|
|
2346
|
+
}), re = {
|
|
2347
2347
|
// Network & System
|
|
2348
2348
|
ACLS_SUMMARY: "acls_summary",
|
|
2349
2349
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
@@ -2511,7 +2511,7 @@ const iw = o.enum([
|
|
|
2511
2511
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
2512
2512
|
WARNING_USER_MANAGEMENT: "wum"
|
|
2513
2513
|
}, mw = o.string().refine(
|
|
2514
|
-
(t) => Object.values(
|
|
2514
|
+
(t) => Object.values(re).includes(t),
|
|
2515
2515
|
{ message: "Invalid log type" }
|
|
2516
2516
|
), _w = o.object({
|
|
2517
2517
|
name: o.string(),
|
|
@@ -6372,9 +6372,9 @@ const W0 = [
|
|
|
6372
6372
|
];
|
|
6373
6373
|
async function ev(t, e) {
|
|
6374
6374
|
const { tenantId: n, clientId: r, audience: i, requestedScopes: s } = e, a = s.filter(
|
|
6375
|
-
(
|
|
6375
|
+
(C) => W0.includes(C)
|
|
6376
6376
|
), l = (await t.env.data.resourceServers.list(n)).resource_servers.filter(
|
|
6377
|
-
(
|
|
6377
|
+
(C) => C.identifier === i
|
|
6378
6378
|
);
|
|
6379
6379
|
if (l.length === 0)
|
|
6380
6380
|
return { scopes: a, permissions: [] };
|
|
@@ -6384,37 +6384,36 @@ async function ev(t, e) {
|
|
|
6384
6384
|
const p = d.options?.enforce_policies === !0, f = d.options?.token_dialect || "access_token", _ = (await t.env.data.clientGrants.list(n, {
|
|
6385
6385
|
q: `client_id:"${r}"`
|
|
6386
6386
|
})).client_grants.find(
|
|
6387
|
-
(
|
|
6387
|
+
(C) => C.audience === i
|
|
6388
6388
|
);
|
|
6389
6389
|
if (!_)
|
|
6390
6390
|
return { scopes: a, permissions: [] };
|
|
6391
6391
|
const w = _.scope || [], k = (d.scopes || []).map(
|
|
6392
|
-
(
|
|
6392
|
+
(C) => C.value
|
|
6393
6393
|
);
|
|
6394
6394
|
if (!p) {
|
|
6395
|
-
let
|
|
6396
|
-
return s.length === 0 ?
|
|
6397
|
-
(
|
|
6398
|
-
) :
|
|
6399
|
-
(
|
|
6395
|
+
let C;
|
|
6396
|
+
return s.length === 0 ? C = w.filter(
|
|
6397
|
+
(L) => k.includes(L)
|
|
6398
|
+
) : C = s.filter(
|
|
6399
|
+
(L) => k.includes(L) && w.includes(L)
|
|
6400
6400
|
), { scopes: [
|
|
6401
|
-
.../* @__PURE__ */ new Set([...a, ...
|
|
6401
|
+
.../* @__PURE__ */ new Set([...a, ...C])
|
|
6402
6402
|
], permissions: [] };
|
|
6403
6403
|
}
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
return { scopes: a, permissions:
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
(N) => k.includes(N) && w.includes(N)
|
|
6404
|
+
const A = w.filter(
|
|
6405
|
+
(C) => k.includes(C)
|
|
6406
|
+
);
|
|
6407
|
+
if (f === "access_token_authz")
|
|
6408
|
+
return { scopes: a, permissions: A };
|
|
6409
|
+
let j;
|
|
6410
|
+
return s.length === 0 ? j = w.filter(
|
|
6411
|
+
(C) => k.includes(C)
|
|
6412
|
+
) : j = s.filter(
|
|
6413
|
+
(C) => k.includes(C) && w.includes(C)
|
|
6415
6414
|
), { scopes: [
|
|
6416
|
-
.../* @__PURE__ */ new Set([...a, ...
|
|
6417
|
-
], permissions:
|
|
6415
|
+
.../* @__PURE__ */ new Set([...a, ...j])
|
|
6416
|
+
], permissions: A };
|
|
6418
6417
|
}
|
|
6419
6418
|
async function Ps(t, e) {
|
|
6420
6419
|
if (e.grantType === zt.ClientCredential)
|
|
@@ -6430,7 +6429,7 @@ async function Ps(t, e) {
|
|
|
6430
6429
|
per_page: 1e3
|
|
6431
6430
|
// Should be enough for most cases
|
|
6432
6431
|
})).userOrganizations.some(
|
|
6433
|
-
(
|
|
6432
|
+
(ae) => ae.organization_id === a
|
|
6434
6433
|
))
|
|
6435
6434
|
throw new D(403, {
|
|
6436
6435
|
error: "access_denied",
|
|
@@ -6451,7 +6450,7 @@ async function Ps(t, e) {
|
|
|
6451
6450
|
), g = p.options?.enforce_policies === !0, _ = p.options?.token_dialect || "access_token";
|
|
6452
6451
|
if (!g) {
|
|
6453
6452
|
const V = s.filter(
|
|
6454
|
-
(
|
|
6453
|
+
(ae) => f.includes(ae)
|
|
6455
6454
|
);
|
|
6456
6455
|
return { scopes: [
|
|
6457
6456
|
.../* @__PURE__ */ new Set([...c, ...V])
|
|
@@ -6473,33 +6472,31 @@ async function Ps(t, e) {
|
|
|
6473
6472
|
r,
|
|
6474
6473
|
void 0,
|
|
6475
6474
|
a
|
|
6476
|
-
) : [], j = [...k, ...A],
|
|
6475
|
+
) : [], j = [...k, ...A], P = [];
|
|
6477
6476
|
for (const V of j)
|
|
6478
6477
|
(await t.env.data.rolePermissions.list(
|
|
6479
6478
|
n,
|
|
6480
6479
|
V.id
|
|
6481
|
-
)).forEach((
|
|
6482
|
-
|
|
6480
|
+
)).forEach((ae) => {
|
|
6481
|
+
ae.resource_server_identifier === i && P.push(ae.permission_name);
|
|
6483
6482
|
});
|
|
6484
|
-
const
|
|
6483
|
+
const C = /* @__PURE__ */ new Set();
|
|
6485
6484
|
w.forEach((V) => {
|
|
6486
|
-
V.resource_server_identifier === i &&
|
|
6487
|
-
}),
|
|
6488
|
-
|
|
6485
|
+
V.resource_server_identifier === i && C.add(V.permission_name);
|
|
6486
|
+
}), P.forEach((V) => {
|
|
6487
|
+
C.add(V);
|
|
6489
6488
|
});
|
|
6490
|
-
const I = Array.from(
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
}
|
|
6497
|
-
const U = s.filter(
|
|
6489
|
+
const I = Array.from(C), L = I.filter(
|
|
6490
|
+
(V) => f.includes(V)
|
|
6491
|
+
);
|
|
6492
|
+
if (_ === "access_token_authz")
|
|
6493
|
+
return { scopes: c, permissions: L };
|
|
6494
|
+
const J = s.filter(
|
|
6498
6495
|
(V) => f.includes(V) && I.includes(V)
|
|
6499
6496
|
);
|
|
6500
6497
|
return { scopes: [
|
|
6501
|
-
.../* @__PURE__ */ new Set([...c, ...
|
|
6502
|
-
], permissions:
|
|
6498
|
+
.../* @__PURE__ */ new Set([...c, ...J])
|
|
6499
|
+
], permissions: L };
|
|
6503
6500
|
}
|
|
6504
6501
|
const hf = ["sub", "iss", "aud", "exp", "nbf", "iat", "jti"];
|
|
6505
6502
|
async function Aa(t, e) {
|
|
@@ -6514,7 +6511,7 @@ async function Aa(t, e) {
|
|
|
6514
6511
|
} = e, { signingKeys: d } = await t.env.data.keys.list({
|
|
6515
6512
|
q: "type:jwt_signing"
|
|
6516
6513
|
}), p = d.filter(
|
|
6517
|
-
(
|
|
6514
|
+
(C) => !C.revoked_at || new Date(C.revoked_at) > /* @__PURE__ */ new Date()
|
|
6518
6515
|
), f = p[p.length - 1];
|
|
6519
6516
|
if (!f?.pkcs7)
|
|
6520
6517
|
throw new D(500, { message: "No signing key available" });
|
|
@@ -6565,34 +6562,34 @@ async function Aa(t, e) {
|
|
|
6565
6562
|
},
|
|
6566
6563
|
{
|
|
6567
6564
|
accessToken: {
|
|
6568
|
-
setCustomClaim: (
|
|
6569
|
-
if (hf.includes(
|
|
6570
|
-
throw new Error(`Cannot overwrite reserved claim '${
|
|
6571
|
-
w[
|
|
6565
|
+
setCustomClaim: (C, I) => {
|
|
6566
|
+
if (hf.includes(C))
|
|
6567
|
+
throw new Error(`Cannot overwrite reserved claim '${C}'`);
|
|
6568
|
+
w[C] = I;
|
|
6572
6569
|
}
|
|
6573
6570
|
},
|
|
6574
6571
|
idToken: {
|
|
6575
|
-
setCustomClaim: (
|
|
6576
|
-
if (hf.includes(
|
|
6577
|
-
throw new Error(`Cannot overwrite reserved claim '${
|
|
6578
|
-
k && (k[
|
|
6572
|
+
setCustomClaim: (C, I) => {
|
|
6573
|
+
if (hf.includes(C))
|
|
6574
|
+
throw new Error(`Cannot overwrite reserved claim '${C}'`);
|
|
6575
|
+
k && (k[C] = I);
|
|
6579
6576
|
}
|
|
6580
6577
|
},
|
|
6581
6578
|
access: {
|
|
6582
|
-
deny: (
|
|
6579
|
+
deny: (C) => {
|
|
6583
6580
|
throw new D(400, {
|
|
6584
|
-
message: `Access denied: ${
|
|
6581
|
+
message: `Access denied: ${C}`
|
|
6585
6582
|
});
|
|
6586
6583
|
}
|
|
6587
6584
|
},
|
|
6588
6585
|
token: {
|
|
6589
|
-
createServiceToken: async (
|
|
6586
|
+
createServiceToken: async (C) => {
|
|
6590
6587
|
const { createServiceToken: I } = await Promise.resolve().then(() => nv);
|
|
6591
6588
|
return (await I(
|
|
6592
6589
|
t,
|
|
6593
6590
|
t.var.tenant_id,
|
|
6594
|
-
|
|
6595
|
-
|
|
6591
|
+
C.scope,
|
|
6592
|
+
C.expiresInSeconds
|
|
6596
6593
|
)).access_token;
|
|
6597
6594
|
}
|
|
6598
6595
|
}
|
|
@@ -6608,11 +6605,11 @@ async function Aa(t, e) {
|
|
|
6608
6605
|
g,
|
|
6609
6606
|
w,
|
|
6610
6607
|
A
|
|
6611
|
-
),
|
|
6608
|
+
), P = k ? await df("RS256", g, k, A) : void 0;
|
|
6612
6609
|
return {
|
|
6613
6610
|
access_token: j,
|
|
6614
6611
|
refresh_token: e.refresh_token,
|
|
6615
|
-
id_token:
|
|
6612
|
+
id_token: P,
|
|
6616
6613
|
token_type: "Bearer",
|
|
6617
6614
|
expires_in: l ? 3600 : 86400
|
|
6618
6615
|
// 1 hour for impersonation, 24 hours for regular sessions
|
|
@@ -7039,7 +7036,7 @@ async function Ca(t, e, n) {
|
|
|
7039
7036
|
body: JSON.stringify(n)
|
|
7040
7037
|
})).ok) {
|
|
7041
7038
|
const a = oe(t, {
|
|
7042
|
-
type:
|
|
7039
|
+
type: re.FAILED_HOOK,
|
|
7043
7040
|
description: `Failed to invoke hook ${i.hook_id}`
|
|
7044
7041
|
});
|
|
7045
7042
|
se(t, t.env.data.logs.create(n.tenant_id, a));
|
|
@@ -7200,7 +7197,7 @@ function pv(t, e) {
|
|
|
7200
7197
|
);
|
|
7201
7198
|
} catch {
|
|
7202
7199
|
const c = oe(t, {
|
|
7203
|
-
type:
|
|
7200
|
+
type: re.FAILED_SIGNUP,
|
|
7204
7201
|
description: "Pre user registration hook failed"
|
|
7205
7202
|
});
|
|
7206
7203
|
se(t, e.logs.create(n, c));
|
|
@@ -7221,7 +7218,7 @@ function pv(t, e) {
|
|
|
7221
7218
|
);
|
|
7222
7219
|
} catch {
|
|
7223
7220
|
const c = oe(t, {
|
|
7224
|
-
type:
|
|
7221
|
+
type: re.FAILED_SIGNUP,
|
|
7225
7222
|
description: "Post user registration hook failed"
|
|
7226
7223
|
});
|
|
7227
7224
|
se(t, t.env.data.logs.create(n, c));
|
|
@@ -7292,7 +7289,7 @@ function fv(t, e) {
|
|
|
7292
7289
|
}
|
|
7293
7290
|
if (i.email) {
|
|
7294
7291
|
const c = oe(t, {
|
|
7295
|
-
type:
|
|
7292
|
+
type: re.SUCCESS_CHANGE_EMAIL,
|
|
7296
7293
|
description: `Email updated to ${i.email}`,
|
|
7297
7294
|
userId: r
|
|
7298
7295
|
});
|
|
@@ -7378,7 +7375,7 @@ async function Q0(t, e, n, r, i = "email") {
|
|
|
7378
7375
|
};
|
|
7379
7376
|
} catch {
|
|
7380
7377
|
const c = oe(t, {
|
|
7381
|
-
type:
|
|
7378
|
+
type: re.FAILED_HOOK,
|
|
7382
7379
|
description: "Validate signup email webhook failed"
|
|
7383
7380
|
});
|
|
7384
7381
|
se(t, n.logs.create(e.tenant.id, c));
|
|
@@ -7389,7 +7386,7 @@ async function hv(t, e, n, r) {
|
|
|
7389
7386
|
const i = await Q0(t, e, n, r);
|
|
7390
7387
|
if (!i.allowed) {
|
|
7391
7388
|
const s = oe(t, {
|
|
7392
|
-
type:
|
|
7389
|
+
type: re.FAILED_SIGNUP,
|
|
7393
7390
|
description: i.reason || "Signup not allowed"
|
|
7394
7391
|
});
|
|
7395
7392
|
throw se(t, n.logs.create(e.tenant.id, s)), new D(400, {
|
|
@@ -7434,7 +7431,7 @@ function gv(t, e) {
|
|
|
7434
7431
|
if (c instanceof v)
|
|
7435
7432
|
throw c;
|
|
7436
7433
|
const l = oe(t, {
|
|
7437
|
-
type:
|
|
7434
|
+
type: re.FAILED_HOOK,
|
|
7438
7435
|
description: `Pre user deletion hook failed: ${c instanceof Error ? c.message : String(c)}`
|
|
7439
7436
|
});
|
|
7440
7437
|
throw se(t, e.logs.create(n, l)), new D(400, {
|
|
@@ -7445,7 +7442,7 @@ function gv(t, e) {
|
|
|
7445
7442
|
await cv(t)(n, i);
|
|
7446
7443
|
} catch (c) {
|
|
7447
7444
|
const l = oe(t, {
|
|
7448
|
-
type:
|
|
7445
|
+
type: re.FAILED_HOOK,
|
|
7449
7446
|
description: `Pre user deletion webhook failed: ${c instanceof Error ? c.message : String(c)}`
|
|
7450
7447
|
});
|
|
7451
7448
|
throw se(t, e.logs.create(n, l)), new D(400, {
|
|
@@ -7455,7 +7452,7 @@ function gv(t, e) {
|
|
|
7455
7452
|
const a = await e.users.remove(n, r);
|
|
7456
7453
|
if (a) {
|
|
7457
7454
|
const c = oe(t, {
|
|
7458
|
-
type:
|
|
7455
|
+
type: re.SUCCESS_USER_DELETION,
|
|
7459
7456
|
description: `user_id: ${r}`,
|
|
7460
7457
|
strategy: i.provider || "auth0",
|
|
7461
7458
|
strategy_type: i.is_social ? "social" : "database"
|
|
@@ -7471,7 +7468,7 @@ function gv(t, e) {
|
|
|
7471
7468
|
await lv(t)(n, i);
|
|
7472
7469
|
} catch (l) {
|
|
7473
7470
|
const d = oe(t, {
|
|
7474
|
-
type:
|
|
7471
|
+
type: re.FAILED_HOOK,
|
|
7475
7472
|
description: `Post user deletion webhook failed: ${l instanceof Error ? l.message : String(l)}`
|
|
7476
7473
|
});
|
|
7477
7474
|
se(t, e.logs.create(n, d));
|
|
@@ -7495,7 +7492,7 @@ function gv(t, e) {
|
|
|
7495
7492
|
);
|
|
7496
7493
|
} catch (c) {
|
|
7497
7494
|
const l = oe(t, {
|
|
7498
|
-
type:
|
|
7495
|
+
type: re.FAILED_HOOK,
|
|
7499
7496
|
description: `Post user deletion hook failed: ${c instanceof Error ? c.message : String(c)}`
|
|
7500
7497
|
});
|
|
7501
7498
|
se(t, e.logs.create(n, l));
|
|
@@ -7651,7 +7648,7 @@ async function mv(t, e, n, r, i, s) {
|
|
|
7651
7648
|
}
|
|
7652
7649
|
async function em(t, e, n, r, i, s) {
|
|
7653
7650
|
const a = s?.authStrategy?.strategy_type ? s.authStrategy.strategy_type : r.is_social ? "social" : "database", c = s?.authStrategy?.strategy || r.connection || "", l = oe(t, {
|
|
7654
|
-
type:
|
|
7651
|
+
type: re.SUCCESS_LOGIN,
|
|
7655
7652
|
description: `Successful login for ${r.user_id}`,
|
|
7656
7653
|
userId: r.user_id,
|
|
7657
7654
|
strategy_type: a,
|
|
@@ -7740,7 +7737,7 @@ async function em(t, e, n, r, i, s) {
|
|
|
7740
7737
|
});
|
|
7741
7738
|
} catch {
|
|
7742
7739
|
const _ = oe(t, {
|
|
7743
|
-
type:
|
|
7740
|
+
type: re.FAILED_HOOK,
|
|
7744
7741
|
description: `Failed to invoke post-user-login webhook: ${f.url}`
|
|
7745
7742
|
});
|
|
7746
7743
|
se(t, e.logs.create(n, _));
|
|
@@ -8024,7 +8021,7 @@ const wf = ut.extend({
|
|
|
8024
8021
|
))
|
|
8025
8022
|
throw new v(404);
|
|
8026
8023
|
const r = oe(t, {
|
|
8027
|
-
type:
|
|
8024
|
+
type: re.SUCCESS_API_OPERATION,
|
|
8028
8025
|
description: "Delete a User"
|
|
8029
8026
|
});
|
|
8030
8027
|
return r.details = {
|
|
@@ -8115,7 +8112,7 @@ const wf = ut.extend({
|
|
|
8115
8112
|
}
|
|
8116
8113
|
t.set("user_id", w.user_id);
|
|
8117
8114
|
const k = oe(t, {
|
|
8118
|
-
type:
|
|
8115
|
+
type: re.SUCCESS_API_OPERATION,
|
|
8119
8116
|
description: "User created"
|
|
8120
8117
|
});
|
|
8121
8118
|
se(t, t.env.data.logs.create(t.var.tenant_id, k));
|
|
@@ -8252,7 +8249,7 @@ const wf = ut.extend({
|
|
|
8252
8249
|
if (!f)
|
|
8253
8250
|
throw new v(500);
|
|
8254
8251
|
const g = oe(t, {
|
|
8255
|
-
type:
|
|
8252
|
+
type: re.SUCCESS_API_OPERATION,
|
|
8256
8253
|
description: "Update a User",
|
|
8257
8254
|
body: n
|
|
8258
8255
|
});
|
|
@@ -8840,8 +8837,8 @@ function $v() {
|
|
|
8840
8837
|
} : function($, S) {
|
|
8841
8838
|
return $[S];
|
|
8842
8839
|
}
|
|
8843
|
-
}, g = Object.getPrototypeOf(Function), _ = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : g1(), w = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : m1(), k = typeof WeakMap == "function" ? WeakMap : _1(), A = s ? Symbol.for("@reflect-metadata:registry") : void 0, j = p1(),
|
|
8844
|
-
function
|
|
8840
|
+
}, g = Object.getPrototypeOf(Function), _ = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : g1(), w = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : m1(), k = typeof WeakMap == "function" ? WeakMap : _1(), A = s ? Symbol.for("@reflect-metadata:registry") : void 0, j = p1(), P = f1(j);
|
|
8841
|
+
function C($, S, E, B) {
|
|
8845
8842
|
if (G(E)) {
|
|
8846
8843
|
if (!Pp($))
|
|
8847
8844
|
throw new TypeError();
|
|
@@ -8858,54 +8855,54 @@ function $v() {
|
|
|
8858
8855
|
return en(B) && (B = void 0), E = Ut(E), be($, S, E, B);
|
|
8859
8856
|
}
|
|
8860
8857
|
}
|
|
8861
|
-
n("decorate",
|
|
8858
|
+
n("decorate", C);
|
|
8862
8859
|
function I($, S) {
|
|
8863
|
-
function E(B,
|
|
8860
|
+
function E(B, X) {
|
|
8864
8861
|
if (!Te(B))
|
|
8865
8862
|
throw new TypeError();
|
|
8866
|
-
if (!G(
|
|
8863
|
+
if (!G(X) && !d1(X))
|
|
8867
8864
|
throw new TypeError();
|
|
8868
|
-
Qt($, S, B,
|
|
8865
|
+
Qt($, S, B, X);
|
|
8869
8866
|
}
|
|
8870
8867
|
return E;
|
|
8871
8868
|
}
|
|
8872
8869
|
n("metadata", I);
|
|
8873
|
-
function
|
|
8870
|
+
function L($, S, E, B) {
|
|
8874
8871
|
if (!Te(E))
|
|
8875
8872
|
throw new TypeError();
|
|
8876
8873
|
return G(B) || (B = Ut(B)), Qt($, S, E, B);
|
|
8877
8874
|
}
|
|
8878
|
-
n("defineMetadata",
|
|
8875
|
+
n("defineMetadata", L);
|
|
8879
8876
|
function J($, S, E) {
|
|
8880
8877
|
if (!Te(S))
|
|
8881
8878
|
throw new TypeError();
|
|
8882
8879
|
return G(E) || (E = Ut(E)), Lt($, S, E);
|
|
8883
8880
|
}
|
|
8884
8881
|
n("hasMetadata", J);
|
|
8885
|
-
function
|
|
8882
|
+
function ie($, S, E) {
|
|
8886
8883
|
if (!Te(S))
|
|
8887
8884
|
throw new TypeError();
|
|
8888
8885
|
return G(E) || (E = Ut(E)), Ge($, S, E);
|
|
8889
8886
|
}
|
|
8890
|
-
n("hasOwnMetadata",
|
|
8891
|
-
function
|
|
8887
|
+
n("hasOwnMetadata", ie);
|
|
8888
|
+
function V($, S, E) {
|
|
8892
8889
|
if (!Te(S))
|
|
8893
8890
|
throw new TypeError();
|
|
8894
8891
|
return G(E) || (E = Ut(E)), rt($, S, E);
|
|
8895
8892
|
}
|
|
8896
|
-
n("getMetadata",
|
|
8897
|
-
function
|
|
8893
|
+
n("getMetadata", V);
|
|
8894
|
+
function Q($, S, E) {
|
|
8898
8895
|
if (!Te(S))
|
|
8899
8896
|
throw new TypeError();
|
|
8900
8897
|
return G(E) || (E = Ut(E)), mt($, S, E);
|
|
8901
8898
|
}
|
|
8902
|
-
n("getOwnMetadata",
|
|
8903
|
-
function
|
|
8899
|
+
n("getOwnMetadata", Q);
|
|
8900
|
+
function ae($, S) {
|
|
8904
8901
|
if (!Te($))
|
|
8905
8902
|
throw new TypeError();
|
|
8906
8903
|
return G(S) || (S = Ut(S)), zn($, S);
|
|
8907
8904
|
}
|
|
8908
|
-
n("getMetadataKeys",
|
|
8905
|
+
n("getMetadataKeys", ae);
|
|
8909
8906
|
function fe($, S) {
|
|
8910
8907
|
if (!Te($))
|
|
8911
8908
|
throw new TypeError();
|
|
@@ -8929,18 +8926,18 @@ function $v() {
|
|
|
8929
8926
|
n("deleteMetadata", he);
|
|
8930
8927
|
function xe($, S) {
|
|
8931
8928
|
for (var E = $.length - 1; E >= 0; --E) {
|
|
8932
|
-
var B = $[E],
|
|
8933
|
-
if (!G(
|
|
8934
|
-
if (!Tp(
|
|
8929
|
+
var B = $[E], X = B(S);
|
|
8930
|
+
if (!G(X) && !en(X)) {
|
|
8931
|
+
if (!Tp(X))
|
|
8935
8932
|
throw new TypeError();
|
|
8936
|
-
S =
|
|
8933
|
+
S = X;
|
|
8937
8934
|
}
|
|
8938
8935
|
}
|
|
8939
8936
|
return S;
|
|
8940
8937
|
}
|
|
8941
8938
|
function be($, S, E, B) {
|
|
8942
|
-
for (var
|
|
8943
|
-
var Ae = $[
|
|
8939
|
+
for (var X = $.length - 1; X >= 0; --X) {
|
|
8940
|
+
var Ae = $[X], Re = Ae(S, E, B);
|
|
8944
8941
|
if (!G(Re) && !en(Re)) {
|
|
8945
8942
|
if (!Te(Re))
|
|
8946
8943
|
throw new TypeError();
|
|
@@ -8953,8 +8950,8 @@ function $v() {
|
|
|
8953
8950
|
var B = Ge($, S, E);
|
|
8954
8951
|
if (B)
|
|
8955
8952
|
return !0;
|
|
8956
|
-
var
|
|
8957
|
-
return en(
|
|
8953
|
+
var X = Pc(S);
|
|
8954
|
+
return en(X) ? !1 : Lt($, X, E);
|
|
8958
8955
|
}
|
|
8959
8956
|
function Ge($, S, E) {
|
|
8960
8957
|
var B = wi(
|
|
@@ -8969,9 +8966,9 @@ function $v() {
|
|
|
8969
8966
|
var B = Ge($, S, E);
|
|
8970
8967
|
if (B)
|
|
8971
8968
|
return mt($, S, E);
|
|
8972
|
-
var
|
|
8973
|
-
if (!en(
|
|
8974
|
-
return rt($,
|
|
8969
|
+
var X = Pc(S);
|
|
8970
|
+
if (!en(X))
|
|
8971
|
+
return rt($, X, E);
|
|
8975
8972
|
}
|
|
8976
8973
|
function mt($, S, E) {
|
|
8977
8974
|
var B = wi(
|
|
@@ -8984,29 +8981,29 @@ function $v() {
|
|
|
8984
8981
|
return B.OrdinaryGetOwnMetadata($, S, E);
|
|
8985
8982
|
}
|
|
8986
8983
|
function Qt($, S, E, B) {
|
|
8987
|
-
var
|
|
8984
|
+
var X = wi(
|
|
8988
8985
|
E,
|
|
8989
8986
|
B,
|
|
8990
8987
|
/*Create*/
|
|
8991
8988
|
!0
|
|
8992
8989
|
);
|
|
8993
|
-
|
|
8990
|
+
X.OrdinaryDefineOwnMetadata($, S, E, B);
|
|
8994
8991
|
}
|
|
8995
8992
|
function zn($, S) {
|
|
8996
8993
|
var E = Ue($, S), B = Pc($);
|
|
8997
8994
|
if (B === null)
|
|
8998
8995
|
return E;
|
|
8999
|
-
var
|
|
9000
|
-
if (
|
|
8996
|
+
var X = zn(B, S);
|
|
8997
|
+
if (X.length <= 0)
|
|
9001
8998
|
return E;
|
|
9002
8999
|
if (E.length <= 0)
|
|
9003
|
-
return
|
|
9004
|
-
for (var Ae = new w(), Re = [],
|
|
9005
|
-
var q =
|
|
9000
|
+
return X;
|
|
9001
|
+
for (var Ae = new w(), Re = [], ce = 0, U = E; ce < U.length; ce++) {
|
|
9002
|
+
var q = U[ce], H = Ae.has(q);
|
|
9006
9003
|
H || (Ae.add(q), Re.push(q));
|
|
9007
9004
|
}
|
|
9008
|
-
for (var K = 0,
|
|
9009
|
-
var q =
|
|
9005
|
+
for (var K = 0, le = X; K < le.length; K++) {
|
|
9006
|
+
var q = le[K], H = Ae.has(q);
|
|
9010
9007
|
H || (Ae.add(q), Re.push(q));
|
|
9011
9008
|
}
|
|
9012
9009
|
return Re;
|
|
@@ -9069,15 +9066,15 @@ function $v() {
|
|
|
9069
9066
|
}
|
|
9070
9067
|
var E = "string", B = Rp($, a);
|
|
9071
9068
|
if (B !== void 0) {
|
|
9072
|
-
var
|
|
9073
|
-
if (Te(
|
|
9069
|
+
var X = B.call($, E);
|
|
9070
|
+
if (Te(X))
|
|
9074
9071
|
throw new TypeError();
|
|
9075
|
-
return
|
|
9072
|
+
return X;
|
|
9076
9073
|
}
|
|
9077
9074
|
return c1($);
|
|
9078
9075
|
}
|
|
9079
9076
|
function c1($, S) {
|
|
9080
|
-
var E, B,
|
|
9077
|
+
var E, B, X;
|
|
9081
9078
|
{
|
|
9082
9079
|
var Ae = $.toString;
|
|
9083
9080
|
if (os(Ae)) {
|
|
@@ -9161,15 +9158,15 @@ function $v() {
|
|
|
9161
9158
|
var E = $.prototype, B = E && Object.getPrototypeOf(E);
|
|
9162
9159
|
if (B == null || B === Object.prototype)
|
|
9163
9160
|
return S;
|
|
9164
|
-
var
|
|
9165
|
-
return typeof
|
|
9161
|
+
var X = B.constructor;
|
|
9162
|
+
return typeof X != "function" || X === $ ? S : X;
|
|
9166
9163
|
}
|
|
9167
9164
|
function u1() {
|
|
9168
9165
|
var $;
|
|
9169
9166
|
!G(A) && typeof r.Reflect < "u" && !(A in r.Reflect) && typeof r.Reflect.defineMetadata == "function" && ($ = h1(r.Reflect));
|
|
9170
|
-
var S, E, B,
|
|
9167
|
+
var S, E, B, X = new k(), Ae = {
|
|
9171
9168
|
registerProvider: Re,
|
|
9172
|
-
getProvider:
|
|
9169
|
+
getProvider: U,
|
|
9173
9170
|
setProvider: H
|
|
9174
9171
|
};
|
|
9175
9172
|
return Ae;
|
|
@@ -9194,12 +9191,12 @@ function $v() {
|
|
|
9194
9191
|
break;
|
|
9195
9192
|
}
|
|
9196
9193
|
}
|
|
9197
|
-
function
|
|
9194
|
+
function ce(K, le) {
|
|
9198
9195
|
if (!G(S)) {
|
|
9199
|
-
if (S.isProviderFor(K,
|
|
9196
|
+
if (S.isProviderFor(K, le))
|
|
9200
9197
|
return S;
|
|
9201
9198
|
if (!G(E)) {
|
|
9202
|
-
if (E.isProviderFor(K,
|
|
9199
|
+
if (E.isProviderFor(K, le))
|
|
9203
9200
|
return S;
|
|
9204
9201
|
if (!G(B))
|
|
9205
9202
|
for (var _e = Bp(B); ; ) {
|
|
@@ -9207,32 +9204,32 @@ function $v() {
|
|
|
9207
9204
|
if (!Ee)
|
|
9208
9205
|
return;
|
|
9209
9206
|
var vt = Lp(Ee);
|
|
9210
|
-
if (vt.isProviderFor(K,
|
|
9207
|
+
if (vt.isProviderFor(K, le))
|
|
9211
9208
|
return Dp(_e), vt;
|
|
9212
9209
|
}
|
|
9213
9210
|
}
|
|
9214
9211
|
}
|
|
9215
|
-
if (!G($) && $.isProviderFor(K,
|
|
9212
|
+
if (!G($) && $.isProviderFor(K, le))
|
|
9216
9213
|
return $;
|
|
9217
9214
|
}
|
|
9218
|
-
function
|
|
9219
|
-
var _e =
|
|
9220
|
-
return G(_e) || (Ee = _e.get(
|
|
9215
|
+
function U(K, le) {
|
|
9216
|
+
var _e = X.get(K), Ee;
|
|
9217
|
+
return G(_e) || (Ee = _e.get(le)), G(Ee) && (Ee = ce(K, le), G(Ee) || (G(_e) && (_e = new _(), X.set(K, _e)), _e.set(le, Ee))), Ee;
|
|
9221
9218
|
}
|
|
9222
9219
|
function q(K) {
|
|
9223
9220
|
if (G(K))
|
|
9224
9221
|
throw new TypeError();
|
|
9225
9222
|
return S === K || E === K || !G(B) && B.has(K);
|
|
9226
9223
|
}
|
|
9227
|
-
function H(K,
|
|
9224
|
+
function H(K, le, _e) {
|
|
9228
9225
|
if (!q(_e))
|
|
9229
9226
|
throw new Error("Metadata provider not registered.");
|
|
9230
|
-
var Ee =
|
|
9227
|
+
var Ee = U(K, le);
|
|
9231
9228
|
if (Ee !== _e) {
|
|
9232
9229
|
if (!G(Ee))
|
|
9233
9230
|
return !1;
|
|
9234
|
-
var vt =
|
|
9235
|
-
G(vt) && (vt = new _(),
|
|
9231
|
+
var vt = X.get(K);
|
|
9232
|
+
G(vt) && (vt = new _(), X.set(K, vt)), vt.set(le, _e);
|
|
9236
9233
|
}
|
|
9237
9234
|
return !0;
|
|
9238
9235
|
}
|
|
@@ -9253,66 +9250,66 @@ function $v() {
|
|
|
9253
9250
|
return G(K) ? !1 : K.has(H);
|
|
9254
9251
|
},
|
|
9255
9252
|
OrdinaryDefineOwnMetadata: Re,
|
|
9256
|
-
OrdinaryHasOwnMetadata:
|
|
9253
|
+
OrdinaryHasOwnMetadata: X,
|
|
9257
9254
|
OrdinaryGetOwnMetadata: Ae,
|
|
9258
|
-
OrdinaryOwnMetadataKeys:
|
|
9259
|
-
OrdinaryDeleteMetadata:
|
|
9255
|
+
OrdinaryOwnMetadataKeys: ce,
|
|
9256
|
+
OrdinaryDeleteMetadata: U
|
|
9260
9257
|
};
|
|
9261
9258
|
return j.registerProvider(E), E;
|
|
9262
9259
|
function B(q, H, K) {
|
|
9263
|
-
var
|
|
9264
|
-
if (G(
|
|
9260
|
+
var le = S.get(q), _e = !1;
|
|
9261
|
+
if (G(le)) {
|
|
9265
9262
|
if (!K)
|
|
9266
9263
|
return;
|
|
9267
|
-
|
|
9264
|
+
le = new _(), S.set(q, le), _e = !0;
|
|
9268
9265
|
}
|
|
9269
|
-
var Ee =
|
|
9266
|
+
var Ee = le.get(H);
|
|
9270
9267
|
if (G(Ee)) {
|
|
9271
9268
|
if (!K)
|
|
9272
9269
|
return;
|
|
9273
|
-
if (Ee = new _(),
|
|
9274
|
-
throw
|
|
9270
|
+
if (Ee = new _(), le.set(H, Ee), !$.setProvider(q, H, E))
|
|
9271
|
+
throw le.delete(H), _e && S.delete(q), new Error("Wrong provider for target.");
|
|
9275
9272
|
}
|
|
9276
9273
|
return Ee;
|
|
9277
9274
|
}
|
|
9278
|
-
function
|
|
9279
|
-
var
|
|
9275
|
+
function X(q, H, K) {
|
|
9276
|
+
var le = B(
|
|
9280
9277
|
H,
|
|
9281
9278
|
K,
|
|
9282
9279
|
/*Create*/
|
|
9283
9280
|
!1
|
|
9284
9281
|
);
|
|
9285
|
-
return G(
|
|
9282
|
+
return G(le) ? !1 : Op(le.has(q));
|
|
9286
9283
|
}
|
|
9287
9284
|
function Ae(q, H, K) {
|
|
9288
|
-
var
|
|
9285
|
+
var le = B(
|
|
9289
9286
|
H,
|
|
9290
9287
|
K,
|
|
9291
9288
|
/*Create*/
|
|
9292
9289
|
!1
|
|
9293
9290
|
);
|
|
9294
|
-
if (!G(
|
|
9295
|
-
return
|
|
9291
|
+
if (!G(le))
|
|
9292
|
+
return le.get(q);
|
|
9296
9293
|
}
|
|
9297
|
-
function Re(q, H, K,
|
|
9294
|
+
function Re(q, H, K, le) {
|
|
9298
9295
|
var _e = B(
|
|
9299
9296
|
K,
|
|
9300
|
-
|
|
9297
|
+
le,
|
|
9301
9298
|
/*Create*/
|
|
9302
9299
|
!0
|
|
9303
9300
|
);
|
|
9304
9301
|
_e.set(q, H);
|
|
9305
9302
|
}
|
|
9306
|
-
function
|
|
9307
|
-
var K = [],
|
|
9303
|
+
function ce(q, H) {
|
|
9304
|
+
var K = [], le = B(
|
|
9308
9305
|
q,
|
|
9309
9306
|
H,
|
|
9310
9307
|
/*Create*/
|
|
9311
9308
|
!1
|
|
9312
9309
|
);
|
|
9313
|
-
if (G(
|
|
9310
|
+
if (G(le))
|
|
9314
9311
|
return K;
|
|
9315
|
-
for (var _e =
|
|
9312
|
+
for (var _e = le.keys(), Ee = Bp(_e), vt = 0; ; ) {
|
|
9316
9313
|
var Mp = Up(Ee);
|
|
9317
9314
|
if (!Mp)
|
|
9318
9315
|
return K.length = vt, K;
|
|
@@ -9329,16 +9326,16 @@ function $v() {
|
|
|
9329
9326
|
vt++;
|
|
9330
9327
|
}
|
|
9331
9328
|
}
|
|
9332
|
-
function
|
|
9333
|
-
var
|
|
9329
|
+
function U(q, H, K) {
|
|
9330
|
+
var le = B(
|
|
9334
9331
|
H,
|
|
9335
9332
|
K,
|
|
9336
9333
|
/*Create*/
|
|
9337
9334
|
!1
|
|
9338
9335
|
);
|
|
9339
|
-
if (G(
|
|
9336
|
+
if (G(le) || !le.delete(q))
|
|
9340
9337
|
return !1;
|
|
9341
|
-
if (
|
|
9338
|
+
if (le.size === 0) {
|
|
9342
9339
|
var _e = S.get(H);
|
|
9343
9340
|
G(_e) || (_e.delete(K), _e.size === 0 && S.delete(_e));
|
|
9344
9341
|
}
|
|
@@ -9346,26 +9343,26 @@ function $v() {
|
|
|
9346
9343
|
}
|
|
9347
9344
|
}
|
|
9348
9345
|
function h1($) {
|
|
9349
|
-
var S = $.defineMetadata, E = $.hasOwnMetadata, B = $.getOwnMetadata,
|
|
9350
|
-
isProviderFor: function(
|
|
9351
|
-
var H = Re.get(
|
|
9352
|
-
return !G(H) && H.has(q) ? !0 :
|
|
9346
|
+
var S = $.defineMetadata, E = $.hasOwnMetadata, B = $.getOwnMetadata, X = $.getOwnMetadataKeys, Ae = $.deleteMetadata, Re = new k(), ce = {
|
|
9347
|
+
isProviderFor: function(U, q) {
|
|
9348
|
+
var H = Re.get(U);
|
|
9349
|
+
return !G(H) && H.has(q) ? !0 : X(U, q).length ? (G(H) && (H = new w(), Re.set(U, H)), H.add(q), !0) : !1;
|
|
9353
9350
|
},
|
|
9354
9351
|
OrdinaryDefineOwnMetadata: S,
|
|
9355
9352
|
OrdinaryHasOwnMetadata: E,
|
|
9356
9353
|
OrdinaryGetOwnMetadata: B,
|
|
9357
|
-
OrdinaryOwnMetadataKeys:
|
|
9354
|
+
OrdinaryOwnMetadataKeys: X,
|
|
9358
9355
|
OrdinaryDeleteMetadata: Ae
|
|
9359
9356
|
};
|
|
9360
|
-
return
|
|
9357
|
+
return ce;
|
|
9361
9358
|
}
|
|
9362
9359
|
function wi($, S, E) {
|
|
9363
9360
|
var B = j.getProvider($, S);
|
|
9364
9361
|
if (!G(B))
|
|
9365
9362
|
return B;
|
|
9366
9363
|
if (E) {
|
|
9367
|
-
if (j.setProvider($, S,
|
|
9368
|
-
return
|
|
9364
|
+
if (j.setProvider($, S, P))
|
|
9365
|
+
return P;
|
|
9369
9366
|
throw new Error("Illegal state.");
|
|
9370
9367
|
}
|
|
9371
9368
|
}
|
|
@@ -9373,104 +9370,104 @@ function $v() {
|
|
|
9373
9370
|
var $ = {}, S = [], E = (
|
|
9374
9371
|
/** @class */
|
|
9375
9372
|
(function() {
|
|
9376
|
-
function
|
|
9377
|
-
this._index = 0, this._keys =
|
|
9373
|
+
function ce(U, q, H) {
|
|
9374
|
+
this._index = 0, this._keys = U, this._values = q, this._selector = H;
|
|
9378
9375
|
}
|
|
9379
|
-
return
|
|
9376
|
+
return ce.prototype["@@iterator"] = function() {
|
|
9380
9377
|
return this;
|
|
9381
|
-
},
|
|
9378
|
+
}, ce.prototype[c] = function() {
|
|
9382
9379
|
return this;
|
|
9383
|
-
},
|
|
9384
|
-
var
|
|
9385
|
-
if (
|
|
9386
|
-
var q = this._selector(this._keys[
|
|
9387
|
-
return
|
|
9380
|
+
}, ce.prototype.next = function() {
|
|
9381
|
+
var U = this._index;
|
|
9382
|
+
if (U >= 0 && U < this._keys.length) {
|
|
9383
|
+
var q = this._selector(this._keys[U], this._values[U]);
|
|
9384
|
+
return U + 1 >= this._keys.length ? (this._index = -1, this._keys = S, this._values = S) : this._index++, { value: q, done: !1 };
|
|
9388
9385
|
}
|
|
9389
9386
|
return { value: void 0, done: !0 };
|
|
9390
|
-
},
|
|
9391
|
-
throw this._index >= 0 && (this._index = -1, this._keys = S, this._values = S),
|
|
9392
|
-
},
|
|
9393
|
-
return this._index >= 0 && (this._index = -1, this._keys = S, this._values = S), { value:
|
|
9394
|
-
},
|
|
9387
|
+
}, ce.prototype.throw = function(U) {
|
|
9388
|
+
throw this._index >= 0 && (this._index = -1, this._keys = S, this._values = S), U;
|
|
9389
|
+
}, ce.prototype.return = function(U) {
|
|
9390
|
+
return this._index >= 0 && (this._index = -1, this._keys = S, this._values = S), { value: U, done: !0 };
|
|
9391
|
+
}, ce;
|
|
9395
9392
|
})()
|
|
9396
9393
|
), B = (
|
|
9397
9394
|
/** @class */
|
|
9398
9395
|
(function() {
|
|
9399
|
-
function
|
|
9396
|
+
function ce() {
|
|
9400
9397
|
this._keys = [], this._values = [], this._cacheKey = $, this._cacheIndex = -2;
|
|
9401
9398
|
}
|
|
9402
|
-
return Object.defineProperty(
|
|
9399
|
+
return Object.defineProperty(ce.prototype, "size", {
|
|
9403
9400
|
get: function() {
|
|
9404
9401
|
return this._keys.length;
|
|
9405
9402
|
},
|
|
9406
9403
|
enumerable: !0,
|
|
9407
9404
|
configurable: !0
|
|
9408
|
-
}),
|
|
9405
|
+
}), ce.prototype.has = function(U) {
|
|
9409
9406
|
return this._find(
|
|
9410
|
-
|
|
9407
|
+
U,
|
|
9411
9408
|
/*insert*/
|
|
9412
9409
|
!1
|
|
9413
9410
|
) >= 0;
|
|
9414
|
-
},
|
|
9411
|
+
}, ce.prototype.get = function(U) {
|
|
9415
9412
|
var q = this._find(
|
|
9416
|
-
|
|
9413
|
+
U,
|
|
9417
9414
|
/*insert*/
|
|
9418
9415
|
!1
|
|
9419
9416
|
);
|
|
9420
9417
|
return q >= 0 ? this._values[q] : void 0;
|
|
9421
|
-
},
|
|
9418
|
+
}, ce.prototype.set = function(U, q) {
|
|
9422
9419
|
var H = this._find(
|
|
9423
|
-
|
|
9420
|
+
U,
|
|
9424
9421
|
/*insert*/
|
|
9425
9422
|
!0
|
|
9426
9423
|
);
|
|
9427
9424
|
return this._values[H] = q, this;
|
|
9428
|
-
},
|
|
9425
|
+
}, ce.prototype.delete = function(U) {
|
|
9429
9426
|
var q = this._find(
|
|
9430
|
-
|
|
9427
|
+
U,
|
|
9431
9428
|
/*insert*/
|
|
9432
9429
|
!1
|
|
9433
9430
|
);
|
|
9434
9431
|
if (q >= 0) {
|
|
9435
9432
|
for (var H = this._keys.length, K = q + 1; K < H; K++)
|
|
9436
9433
|
this._keys[K - 1] = this._keys[K], this._values[K - 1] = this._values[K];
|
|
9437
|
-
return this._keys.length--, this._values.length--, Oc(
|
|
9434
|
+
return this._keys.length--, this._values.length--, Oc(U, this._cacheKey) && (this._cacheKey = $, this._cacheIndex = -2), !0;
|
|
9438
9435
|
}
|
|
9439
9436
|
return !1;
|
|
9440
|
-
},
|
|
9437
|
+
}, ce.prototype.clear = function() {
|
|
9441
9438
|
this._keys.length = 0, this._values.length = 0, this._cacheKey = $, this._cacheIndex = -2;
|
|
9442
|
-
},
|
|
9443
|
-
return new E(this._keys, this._values,
|
|
9444
|
-
},
|
|
9439
|
+
}, ce.prototype.keys = function() {
|
|
9440
|
+
return new E(this._keys, this._values, X);
|
|
9441
|
+
}, ce.prototype.values = function() {
|
|
9445
9442
|
return new E(this._keys, this._values, Ae);
|
|
9446
|
-
},
|
|
9443
|
+
}, ce.prototype.entries = function() {
|
|
9447
9444
|
return new E(this._keys, this._values, Re);
|
|
9448
|
-
},
|
|
9445
|
+
}, ce.prototype["@@iterator"] = function() {
|
|
9449
9446
|
return this.entries();
|
|
9450
|
-
},
|
|
9447
|
+
}, ce.prototype[c] = function() {
|
|
9451
9448
|
return this.entries();
|
|
9452
|
-
},
|
|
9453
|
-
if (!Oc(this._cacheKey,
|
|
9449
|
+
}, ce.prototype._find = function(U, q) {
|
|
9450
|
+
if (!Oc(this._cacheKey, U)) {
|
|
9454
9451
|
this._cacheIndex = -1;
|
|
9455
9452
|
for (var H = 0; H < this._keys.length; H++)
|
|
9456
|
-
if (Oc(this._keys[H],
|
|
9453
|
+
if (Oc(this._keys[H], U)) {
|
|
9457
9454
|
this._cacheIndex = H;
|
|
9458
9455
|
break;
|
|
9459
9456
|
}
|
|
9460
9457
|
}
|
|
9461
|
-
return this._cacheIndex < 0 && q && (this._cacheIndex = this._keys.length, this._keys.push(
|
|
9462
|
-
},
|
|
9458
|
+
return this._cacheIndex < 0 && q && (this._cacheIndex = this._keys.length, this._keys.push(U), this._values.push(void 0)), this._cacheIndex;
|
|
9459
|
+
}, ce;
|
|
9463
9460
|
})()
|
|
9464
9461
|
);
|
|
9465
9462
|
return B;
|
|
9466
|
-
function
|
|
9467
|
-
return
|
|
9463
|
+
function X(ce, U) {
|
|
9464
|
+
return ce;
|
|
9468
9465
|
}
|
|
9469
|
-
function Ae(
|
|
9470
|
-
return
|
|
9466
|
+
function Ae(ce, U) {
|
|
9467
|
+
return U;
|
|
9471
9468
|
}
|
|
9472
|
-
function Re(
|
|
9473
|
-
return [
|
|
9469
|
+
function Re(ce, U) {
|
|
9470
|
+
return [ce, U];
|
|
9474
9471
|
}
|
|
9475
9472
|
}
|
|
9476
9473
|
function m1() {
|
|
@@ -9514,74 +9511,74 @@ function $v() {
|
|
|
9514
9511
|
return (
|
|
9515
9512
|
/** @class */
|
|
9516
9513
|
(function() {
|
|
9517
|
-
function
|
|
9514
|
+
function U() {
|
|
9518
9515
|
this._key = B();
|
|
9519
9516
|
}
|
|
9520
|
-
return
|
|
9521
|
-
var H =
|
|
9517
|
+
return U.prototype.has = function(q) {
|
|
9518
|
+
var H = X(
|
|
9522
9519
|
q,
|
|
9523
9520
|
/*create*/
|
|
9524
9521
|
!1
|
|
9525
9522
|
);
|
|
9526
9523
|
return H !== void 0 ? f.has(H, this._key) : !1;
|
|
9527
|
-
},
|
|
9528
|
-
var H =
|
|
9524
|
+
}, U.prototype.get = function(q) {
|
|
9525
|
+
var H = X(
|
|
9529
9526
|
q,
|
|
9530
9527
|
/*create*/
|
|
9531
9528
|
!1
|
|
9532
9529
|
);
|
|
9533
9530
|
return H !== void 0 ? f.get(H, this._key) : void 0;
|
|
9534
|
-
},
|
|
9535
|
-
var K =
|
|
9531
|
+
}, U.prototype.set = function(q, H) {
|
|
9532
|
+
var K = X(
|
|
9536
9533
|
q,
|
|
9537
9534
|
/*create*/
|
|
9538
9535
|
!0
|
|
9539
9536
|
);
|
|
9540
9537
|
return K[this._key] = H, this;
|
|
9541
|
-
},
|
|
9542
|
-
var H =
|
|
9538
|
+
}, U.prototype.delete = function(q) {
|
|
9539
|
+
var H = X(
|
|
9543
9540
|
q,
|
|
9544
9541
|
/*create*/
|
|
9545
9542
|
!1
|
|
9546
9543
|
);
|
|
9547
9544
|
return H !== void 0 ? delete H[this._key] : !1;
|
|
9548
|
-
},
|
|
9545
|
+
}, U.prototype.clear = function() {
|
|
9549
9546
|
this._key = B();
|
|
9550
|
-
},
|
|
9547
|
+
}, U;
|
|
9551
9548
|
})()
|
|
9552
9549
|
);
|
|
9553
9550
|
function B() {
|
|
9554
|
-
var
|
|
9551
|
+
var U;
|
|
9555
9552
|
do
|
|
9556
|
-
|
|
9557
|
-
while (f.has(S,
|
|
9558
|
-
return S[
|
|
9553
|
+
U = "@@WeakMap@@" + ce();
|
|
9554
|
+
while (f.has(S, U));
|
|
9555
|
+
return S[U] = !0, U;
|
|
9559
9556
|
}
|
|
9560
|
-
function
|
|
9561
|
-
if (!i.call(
|
|
9557
|
+
function X(U, q) {
|
|
9558
|
+
if (!i.call(U, E)) {
|
|
9562
9559
|
if (!q)
|
|
9563
9560
|
return;
|
|
9564
|
-
Object.defineProperty(
|
|
9561
|
+
Object.defineProperty(U, E, { value: f.create() });
|
|
9565
9562
|
}
|
|
9566
|
-
return
|
|
9563
|
+
return U[E];
|
|
9567
9564
|
}
|
|
9568
|
-
function Ae(
|
|
9565
|
+
function Ae(U, q) {
|
|
9569
9566
|
for (var H = 0; H < q; ++H)
|
|
9570
|
-
|
|
9571
|
-
return
|
|
9567
|
+
U[H] = Math.random() * 255 | 0;
|
|
9568
|
+
return U;
|
|
9572
9569
|
}
|
|
9573
|
-
function Re(
|
|
9570
|
+
function Re(U) {
|
|
9574
9571
|
if (typeof Uint8Array == "function") {
|
|
9575
|
-
var q = new Uint8Array(
|
|
9576
|
-
return typeof crypto < "u" ? crypto.getRandomValues(q) : typeof msCrypto < "u" ? msCrypto.getRandomValues(q) : Ae(q,
|
|
9572
|
+
var q = new Uint8Array(U);
|
|
9573
|
+
return typeof crypto < "u" ? crypto.getRandomValues(q) : typeof msCrypto < "u" ? msCrypto.getRandomValues(q) : Ae(q, U), q;
|
|
9577
9574
|
}
|
|
9578
|
-
return Ae(new Array(
|
|
9575
|
+
return Ae(new Array(U), U);
|
|
9579
9576
|
}
|
|
9580
|
-
function
|
|
9581
|
-
var
|
|
9582
|
-
|
|
9577
|
+
function ce() {
|
|
9578
|
+
var U = Re($);
|
|
9579
|
+
U[6] = U[6] & 79 | 64, U[8] = U[8] & 191 | 128;
|
|
9583
9580
|
for (var q = "", H = 0; H < $; ++H) {
|
|
9584
|
-
var K =
|
|
9581
|
+
var K = U[H];
|
|
9585
9582
|
(H === 4 || H === 6 || H === 8) && (q += "-"), K < 16 && (q += "0"), q += K.toString(16).toLowerCase();
|
|
9586
9583
|
}
|
|
9587
9584
|
return q;
|
|
@@ -12047,10 +12044,10 @@ const Zm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12047
12044
|
fromBER: Br,
|
|
12048
12045
|
verifySchema: Fv
|
|
12049
12046
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12050
|
-
var
|
|
12047
|
+
var N;
|
|
12051
12048
|
(function(t) {
|
|
12052
12049
|
t[t.Sequence = 0] = "Sequence", t[t.Set = 1] = "Set", t[t.Choice = 2] = "Choice";
|
|
12053
|
-
})(
|
|
12050
|
+
})(N || (N = {}));
|
|
12054
12051
|
var b;
|
|
12055
12052
|
(function(t) {
|
|
12056
12053
|
t[t.Any = 1] = "Any", t[t.Boolean = 2] = "Boolean", t[t.OctetString = 3] = "OctetString", t[t.BitString = 4] = "BitString", t[t.Integer = 5] = "Integer", t[t.Enumerated = 6] = "Enumerated", t[t.ObjectIdentifier = 7] = "ObjectIdentifier", t[t.Utf8String = 8] = "Utf8String", t[t.BmpString = 9] = "BmpString", t[t.UniversalString = 10] = "UniversalString", t[t.NumericString = 11] = "NumericString", t[t.PrintableString = 12] = "PrintableString", t[t.TeletexString = 13] = "TeletexString", t[t.VideotexString = 14] = "VideotexString", t[t.IA5String = 15] = "IA5String", t[t.GraphicString = 16] = "GraphicString", t[t.VisibleString = 17] = "VisibleString", t[t.GeneralString = 18] = "GeneralString", t[t.CharacterString = 19] = "CharacterString", t[t.UTCTime = 20] = "UTCTime", t[t.GeneralizedTime = 21] = "GeneralizedTime", t[t.DATE = 22] = "DATE", t[t.TimeOfDay = 23] = "TimeOfDay", t[t.DateTime = 24] = "DateTime", t[t.Duration = 25] = "Duration", t[t.TIME = 26] = "TIME", t[t.Null = 27] = "Null";
|
|
@@ -12095,7 +12092,7 @@ class Ka {
|
|
|
12095
12092
|
this.value = i.buffer;
|
|
12096
12093
|
}
|
|
12097
12094
|
}
|
|
12098
|
-
class
|
|
12095
|
+
class de {
|
|
12099
12096
|
get byteLength() {
|
|
12100
12097
|
return this.buffer.byteLength;
|
|
12101
12098
|
}
|
|
@@ -12149,7 +12146,7 @@ const Hv = {
|
|
|
12149
12146
|
fromASN: (t) => t.valueBlock.valueHexView,
|
|
12150
12147
|
toASN: (t) => new Jn({ valueHex: t })
|
|
12151
12148
|
}, Xv = {
|
|
12152
|
-
fromASN: (t) => new
|
|
12149
|
+
fromASN: (t) => new de(t.getValue()),
|
|
12153
12150
|
toASN: (t) => t.toASN()
|
|
12154
12151
|
};
|
|
12155
12152
|
function bt(t) {
|
|
@@ -12258,7 +12255,7 @@ class p2 {
|
|
|
12258
12255
|
n.schema || (n.schema = this.create(e, !0));
|
|
12259
12256
|
}
|
|
12260
12257
|
createDefault(e) {
|
|
12261
|
-
const n = { type:
|
|
12258
|
+
const n = { type: N.Sequence, items: {} }, r = this.findParentSchema(e);
|
|
12262
12259
|
return r && (Object.assign(n, r), n.items = Object.assign({}, n.items, r.items)), n;
|
|
12263
12260
|
}
|
|
12264
12261
|
create(e, n) {
|
|
@@ -12271,7 +12268,7 @@ class p2 {
|
|
|
12271
12268
|
if (!f)
|
|
12272
12269
|
throw new Error(`Cannot get ASN1 class by name '${p}'`);
|
|
12273
12270
|
l = new f({ name: c });
|
|
12274
|
-
} else on(a.type) ? l = new a.type().toSchema(c) : a.optional ? this.get(a.type).type ===
|
|
12271
|
+
} else on(a.type) ? l = new a.type().toSchema(c) : a.optional ? this.get(a.type).type === N.Choice ? l = new nr({ name: c }) : (l = this.create(a.type, !1), l.name = c) : l = new nr({ name: c });
|
|
12275
12272
|
const d = !!a.optional || a.defaultValue !== void 0;
|
|
12276
12273
|
if (a.repeated) {
|
|
12277
12274
|
l.name = "";
|
|
@@ -12307,11 +12304,11 @@ class p2 {
|
|
|
12307
12304
|
l.optional = d, i.push(l);
|
|
12308
12305
|
}
|
|
12309
12306
|
switch (r.type) {
|
|
12310
|
-
case
|
|
12307
|
+
case N.Sequence:
|
|
12311
12308
|
return new Ct({ value: i, name: "" });
|
|
12312
|
-
case
|
|
12309
|
+
case N.Set:
|
|
12313
12310
|
return new Ht({ value: i, name: "" });
|
|
12314
|
-
case
|
|
12311
|
+
case N.Choice:
|
|
12315
12312
|
return new Nu({ value: i, name: "" });
|
|
12316
12313
|
default:
|
|
12317
12314
|
throw new Error("Unsupported ASN1 type in use");
|
|
@@ -12325,7 +12322,7 @@ class p2 {
|
|
|
12325
12322
|
return n ? this.items.get(n) || this.findParentSchema(n) : null;
|
|
12326
12323
|
}
|
|
12327
12324
|
}
|
|
12328
|
-
const Be = new p2(),
|
|
12325
|
+
const Be = new p2(), O = (t) => (e) => {
|
|
12329
12326
|
let n;
|
|
12330
12327
|
Be.has(e) ? n = Be.get(e) : (n = Be.createDefault(e), Be.set(e, n)), Object.assign(n, t);
|
|
12331
12328
|
}, m = (t) => (e, n) => {
|
|
@@ -12373,12 +12370,12 @@ class f2 {
|
|
|
12373
12370
|
}
|
|
12374
12371
|
}
|
|
12375
12372
|
static handleChoiceTypes(e, n, r, i) {
|
|
12376
|
-
if (e.constructor === tt && n.type ===
|
|
12373
|
+
if (e.constructor === tt && n.type === N.Choice && e.idBlock.tagClass === 3)
|
|
12377
12374
|
for (const s in n.items) {
|
|
12378
12375
|
const a = n.items[s];
|
|
12379
12376
|
if (a.context === e.idBlock.tagNumber && a.implicit && typeof a.type == "function" && Be.has(a.type)) {
|
|
12380
12377
|
const c = Be.get(a.type);
|
|
12381
|
-
if (c && c.type ===
|
|
12378
|
+
if (c && c.type === N.Sequence) {
|
|
12382
12379
|
const l = new Ct();
|
|
12383
12380
|
if ("value" in e.valueBlock && Array.isArray(e.valueBlock.value) && "value" in l.valueBlock) {
|
|
12384
12381
|
l.valueBlock.value = e.valueBlock.value;
|
|
@@ -12388,7 +12385,7 @@ class f2 {
|
|
|
12388
12385
|
}
|
|
12389
12386
|
}
|
|
12390
12387
|
}
|
|
12391
|
-
else if (e.constructor === tt && n.type !==
|
|
12388
|
+
else if (e.constructor === tt && n.type !== N.Choice) {
|
|
12392
12389
|
const s = new tt({
|
|
12393
12390
|
idBlock: {
|
|
12394
12391
|
tagClass: 3,
|
|
@@ -12403,10 +12400,10 @@ class f2 {
|
|
|
12403
12400
|
return null;
|
|
12404
12401
|
}
|
|
12405
12402
|
static handleSequenceTypes(e, n, r, i) {
|
|
12406
|
-
if (n.type ===
|
|
12403
|
+
if (n.type === N.Sequence) {
|
|
12407
12404
|
if (Object.keys(n.items).filter((c) => {
|
|
12408
12405
|
const l = n.items[c];
|
|
12409
|
-
return l.optional && typeof l.type == "function" && Be.has(l.type) && Be.get(l.type).type ===
|
|
12406
|
+
return l.optional && typeof l.type == "function" && Be.has(l.type) && Be.get(l.type).type === N.Choice;
|
|
12410
12407
|
}).length > 0 && "value" in e.valueBlock && Array.isArray(e.valueBlock.value) && r.name === "CertReqMsg")
|
|
12411
12408
|
return this.handleManualMapping(e, n, r);
|
|
12412
12409
|
const a = An({}, e, i);
|
|
@@ -12473,7 +12470,7 @@ class f2 {
|
|
|
12473
12470
|
return r.fromASN(e);
|
|
12474
12471
|
}
|
|
12475
12472
|
static isOptionalChoiceField(e) {
|
|
12476
|
-
return e.optional && typeof e.type == "function" && Be.has(e.type) && Be.get(e.type).type ===
|
|
12473
|
+
return e.optional && typeof e.type == "function" && Be.has(e.type) && Be.get(e.type).type === N.Choice;
|
|
12477
12474
|
}
|
|
12478
12475
|
static processOptionalChoiceField(e, n) {
|
|
12479
12476
|
try {
|
|
@@ -12570,11 +12567,11 @@ class f2 {
|
|
|
12570
12567
|
static handleImplicitTagging(e, n, r) {
|
|
12571
12568
|
if (n.implicit && typeof n.context == "number") {
|
|
12572
12569
|
const i = Be.get(r);
|
|
12573
|
-
if (i.type ===
|
|
12570
|
+
if (i.type === N.Sequence) {
|
|
12574
12571
|
const s = new Ct();
|
|
12575
12572
|
if ("value" in e.valueBlock && Array.isArray(e.valueBlock.value) && "value" in s.valueBlock)
|
|
12576
12573
|
return s.valueBlock.value = e.valueBlock.value, s;
|
|
12577
|
-
} else if (i.type ===
|
|
12574
|
+
} else if (i.type === N.Set) {
|
|
12578
12575
|
const s = new Ht();
|
|
12579
12576
|
if ("value" in e.valueBlock && Array.isArray(e.valueBlock.value) && "value" in s.valueBlock)
|
|
12580
12577
|
return s.valueBlock.value = e.valueBlock.value, s;
|
|
@@ -12645,13 +12642,13 @@ class ju {
|
|
|
12645
12642
|
}
|
|
12646
12643
|
let s;
|
|
12647
12644
|
switch (r.type) {
|
|
12648
|
-
case
|
|
12645
|
+
case N.Sequence:
|
|
12649
12646
|
s = new Ct({ value: i });
|
|
12650
12647
|
break;
|
|
12651
|
-
case
|
|
12648
|
+
case N.Set:
|
|
12652
12649
|
s = new Ht({ value: i });
|
|
12653
12650
|
break;
|
|
12654
|
-
case
|
|
12651
|
+
case N.Choice:
|
|
12655
12652
|
if (!i[0])
|
|
12656
12653
|
throw new Error(`Schema '${n.name}' has wrong data. Choice cannot be empty.`);
|
|
12657
12654
|
s = i[0];
|
|
@@ -12717,7 +12714,7 @@ function h(t, e, n, r) {
|
|
|
12717
12714
|
else for (var c = t.length - 1; c >= 0; c--) (a = t[c]) && (s = (i < 3 ? a(s) : i > 3 ? a(e, n, s) : a(e, n)) || s);
|
|
12718
12715
|
return i > 3 && s && Object.defineProperty(e, n, s), s;
|
|
12719
12716
|
}
|
|
12720
|
-
function
|
|
12717
|
+
function ne(t, e, n, r) {
|
|
12721
12718
|
if (n === "a" && !r) throw new TypeError("Private accessor was defined without a getter");
|
|
12722
12719
|
if (typeof e == "function" ? t !== e || !r : !e.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
12723
12720
|
return n === "m" ? r : n === "a" ? r.call(t) : r ? r.value : e.get(t);
|
|
@@ -12856,7 +12853,7 @@ h([
|
|
|
12856
12853
|
m({ type: b.BmpString })
|
|
12857
12854
|
], He.prototype, "bmpString", void 0);
|
|
12858
12855
|
He = h([
|
|
12859
|
-
|
|
12856
|
+
O({ type: N.Choice })
|
|
12860
12857
|
], He);
|
|
12861
12858
|
let Hr = class extends He {
|
|
12862
12859
|
constructor(e = {}) {
|
|
@@ -12873,7 +12870,7 @@ h([
|
|
|
12873
12870
|
m({ type: b.Any })
|
|
12874
12871
|
], Hr.prototype, "anyValue", void 0);
|
|
12875
12872
|
Hr = h([
|
|
12876
|
-
|
|
12873
|
+
O({ type: N.Choice })
|
|
12877
12874
|
], Hr);
|
|
12878
12875
|
class Ga {
|
|
12879
12876
|
constructor(e = {}) {
|
|
@@ -12892,7 +12889,7 @@ let Vr = Rl = class extends pe {
|
|
|
12892
12889
|
}
|
|
12893
12890
|
};
|
|
12894
12891
|
Vr = Rl = h([
|
|
12895
|
-
|
|
12892
|
+
O({ type: N.Set, itemType: Ga })
|
|
12896
12893
|
], Vr);
|
|
12897
12894
|
let Ul = Bl = class extends pe {
|
|
12898
12895
|
constructor(e) {
|
|
@@ -12900,7 +12897,7 @@ let Ul = Bl = class extends pe {
|
|
|
12900
12897
|
}
|
|
12901
12898
|
};
|
|
12902
12899
|
Ul = Bl = h([
|
|
12903
|
-
|
|
12900
|
+
O({ type: N.Sequence, itemType: Vr })
|
|
12904
12901
|
], Ul);
|
|
12905
12902
|
let je = Ll = class extends Ul {
|
|
12906
12903
|
constructor(e) {
|
|
@@ -12908,7 +12905,7 @@ let je = Ll = class extends Ul {
|
|
|
12908
12905
|
}
|
|
12909
12906
|
};
|
|
12910
12907
|
je = Ll = h([
|
|
12911
|
-
|
|
12908
|
+
O({ type: N.Sequence })
|
|
12912
12909
|
], je);
|
|
12913
12910
|
const h2 = {
|
|
12914
12911
|
fromASN: (t) => Ef.toString(Bs.fromASN(t)),
|
|
@@ -12936,32 +12933,32 @@ h([
|
|
|
12936
12933
|
h([
|
|
12937
12934
|
m({ type: He, context: 1, implicit: !0 })
|
|
12938
12935
|
], Iu.prototype, "partyName", void 0);
|
|
12939
|
-
let
|
|
12936
|
+
let te = class {
|
|
12940
12937
|
constructor(e = {}) {
|
|
12941
12938
|
Object.assign(this, e);
|
|
12942
12939
|
}
|
|
12943
12940
|
};
|
|
12944
12941
|
h([
|
|
12945
12942
|
m({ type: po, context: 0, implicit: !0 })
|
|
12946
|
-
],
|
|
12943
|
+
], te.prototype, "otherName", void 0);
|
|
12947
12944
|
h([
|
|
12948
12945
|
m({ type: b.IA5String, context: 1, implicit: !0 })
|
|
12949
|
-
],
|
|
12946
|
+
], te.prototype, "rfc822Name", void 0);
|
|
12950
12947
|
h([
|
|
12951
12948
|
m({ type: b.IA5String, context: 2, implicit: !0 })
|
|
12952
|
-
],
|
|
12949
|
+
], te.prototype, "dNSName", void 0);
|
|
12953
12950
|
h([
|
|
12954
12951
|
m({ type: b.Any, context: 3, implicit: !0 })
|
|
12955
|
-
],
|
|
12952
|
+
], te.prototype, "x400Address", void 0);
|
|
12956
12953
|
h([
|
|
12957
12954
|
m({ type: je, context: 4, implicit: !1 })
|
|
12958
|
-
],
|
|
12955
|
+
], te.prototype, "directoryName", void 0);
|
|
12959
12956
|
h([
|
|
12960
12957
|
m({ type: Iu, context: 5 })
|
|
12961
|
-
],
|
|
12958
|
+
], te.prototype, "ediPartyName", void 0);
|
|
12962
12959
|
h([
|
|
12963
12960
|
m({ type: b.IA5String, context: 6, implicit: !0 })
|
|
12964
|
-
],
|
|
12961
|
+
], te.prototype, "uniformResourceIdentifier", void 0);
|
|
12965
12962
|
h([
|
|
12966
12963
|
m({
|
|
12967
12964
|
type: b.OctetString,
|
|
@@ -12969,26 +12966,26 @@ h([
|
|
|
12969
12966
|
implicit: !0,
|
|
12970
12967
|
converter: h2
|
|
12971
12968
|
})
|
|
12972
|
-
],
|
|
12969
|
+
], te.prototype, "iPAddress", void 0);
|
|
12973
12970
|
h([
|
|
12974
12971
|
m({ type: b.ObjectIdentifier, context: 8, implicit: !0 })
|
|
12975
|
-
],
|
|
12976
|
-
|
|
12977
|
-
|
|
12978
|
-
],
|
|
12972
|
+
], te.prototype, "registeredID", void 0);
|
|
12973
|
+
te = h([
|
|
12974
|
+
O({ type: N.Choice })
|
|
12975
|
+
], te);
|
|
12979
12976
|
const Ou = "1.3.6.1.5.5.7", g2 = `${Ou}.1`, ci = `${Ou}.3`, Wa = `${Ou}.48`, Cf = `${Wa}.1`, Nf = `${Wa}.2`, jf = `${Wa}.3`, If = `${Wa}.5`, yn = "2.5.29";
|
|
12980
12977
|
var Dl;
|
|
12981
12978
|
const Ml = `${g2}.1`;
|
|
12982
12979
|
class Uo {
|
|
12983
12980
|
constructor(e = {}) {
|
|
12984
|
-
this.accessMethod = "", this.accessLocation = new
|
|
12981
|
+
this.accessMethod = "", this.accessLocation = new te(), Object.assign(this, e);
|
|
12985
12982
|
}
|
|
12986
12983
|
}
|
|
12987
12984
|
h([
|
|
12988
12985
|
m({ type: b.ObjectIdentifier })
|
|
12989
12986
|
], Uo.prototype, "accessMethod", void 0);
|
|
12990
12987
|
h([
|
|
12991
|
-
m({ type:
|
|
12988
|
+
m({ type: te })
|
|
12992
12989
|
], Uo.prototype, "accessLocation", void 0);
|
|
12993
12990
|
let Tr = Dl = class extends pe {
|
|
12994
12991
|
constructor(e) {
|
|
@@ -12996,10 +12993,10 @@ let Tr = Dl = class extends pe {
|
|
|
12996
12993
|
}
|
|
12997
12994
|
};
|
|
12998
12995
|
Tr = Dl = h([
|
|
12999
|
-
|
|
12996
|
+
O({ type: N.Sequence, itemType: Uo })
|
|
13000
12997
|
], Tr);
|
|
13001
12998
|
const zl = `${yn}.35`;
|
|
13002
|
-
class Pu extends
|
|
12999
|
+
class Pu extends de {
|
|
13003
13000
|
}
|
|
13004
13001
|
class Kn {
|
|
13005
13002
|
constructor(e = {}) {
|
|
@@ -13010,7 +13007,7 @@ h([
|
|
|
13010
13007
|
m({ type: Pu, context: 0, optional: !0, implicit: !0 })
|
|
13011
13008
|
], Kn.prototype, "keyIdentifier", void 0);
|
|
13012
13009
|
h([
|
|
13013
|
-
m({ type:
|
|
13010
|
+
m({ type: te, context: 1, optional: !0, implicit: !0, repeated: "sequence" })
|
|
13014
13011
|
], Kn.prototype, "authorityCertIssuer", void 0);
|
|
13015
13012
|
h([
|
|
13016
13013
|
m({
|
|
@@ -13040,7 +13037,7 @@ let Ye = ql = class extends pe {
|
|
|
13040
13037
|
}
|
|
13041
13038
|
};
|
|
13042
13039
|
Ye = ql = h([
|
|
13043
|
-
|
|
13040
|
+
O({ type: N.Sequence, itemType: te })
|
|
13044
13041
|
], Ye);
|
|
13045
13042
|
var Fl;
|
|
13046
13043
|
let Of = Fl = class extends Ye {
|
|
@@ -13049,7 +13046,7 @@ let Of = Fl = class extends Ye {
|
|
|
13049
13046
|
}
|
|
13050
13047
|
};
|
|
13051
13048
|
Of = Fl = h([
|
|
13052
|
-
|
|
13049
|
+
O({ type: N.Sequence })
|
|
13053
13050
|
], Of);
|
|
13054
13051
|
var Hl;
|
|
13055
13052
|
const t_ = `${yn}.32`;
|
|
@@ -13074,7 +13071,7 @@ h([
|
|
|
13074
13071
|
m({ type: b.Utf8String })
|
|
13075
13072
|
], cn.prototype, "utf8String", void 0);
|
|
13076
13073
|
cn = h([
|
|
13077
|
-
|
|
13074
|
+
O({ type: N.Choice })
|
|
13078
13075
|
], cn);
|
|
13079
13076
|
class Tu {
|
|
13080
13077
|
constructor(e = {}) {
|
|
@@ -13110,7 +13107,7 @@ h([
|
|
|
13110
13107
|
m({ type: Ru })
|
|
13111
13108
|
], Us.prototype, "userNotice", void 0);
|
|
13112
13109
|
Us = h([
|
|
13113
|
-
|
|
13110
|
+
O({ type: N.Choice })
|
|
13114
13111
|
], Us);
|
|
13115
13112
|
class Bu {
|
|
13116
13113
|
constructor(e = {}) {
|
|
@@ -13140,7 +13137,7 @@ let Ds = Hl = class extends pe {
|
|
|
13140
13137
|
}
|
|
13141
13138
|
};
|
|
13142
13139
|
Ds = Hl = h([
|
|
13143
|
-
|
|
13140
|
+
O({ type: N.Sequence, itemType: Ja })
|
|
13144
13141
|
], Ds);
|
|
13145
13142
|
let Ms = class {
|
|
13146
13143
|
constructor(e = 0) {
|
|
@@ -13151,12 +13148,12 @@ h([
|
|
|
13151
13148
|
m({ type: b.Integer })
|
|
13152
13149
|
], Ms.prototype, "value", void 0);
|
|
13153
13150
|
Ms = h([
|
|
13154
|
-
|
|
13151
|
+
O({ type: N.Choice })
|
|
13155
13152
|
], Ms);
|
|
13156
13153
|
let Pf = class extends Ms {
|
|
13157
13154
|
};
|
|
13158
13155
|
Pf = h([
|
|
13159
|
-
|
|
13156
|
+
O({ type: N.Choice })
|
|
13160
13157
|
], Pf);
|
|
13161
13158
|
var Vl;
|
|
13162
13159
|
const Kl = `${yn}.31`;
|
|
@@ -13179,13 +13176,13 @@ let rr = class {
|
|
|
13179
13176
|
}
|
|
13180
13177
|
};
|
|
13181
13178
|
h([
|
|
13182
|
-
m({ type:
|
|
13179
|
+
m({ type: te, context: 0, repeated: "sequence", implicit: !0 })
|
|
13183
13180
|
], rr.prototype, "fullName", void 0);
|
|
13184
13181
|
h([
|
|
13185
13182
|
m({ type: Vr, context: 1, implicit: !0 })
|
|
13186
13183
|
], rr.prototype, "nameRelativeToCRLIssuer", void 0);
|
|
13187
13184
|
rr = h([
|
|
13188
|
-
|
|
13185
|
+
O({ type: N.Choice })
|
|
13189
13186
|
], rr);
|
|
13190
13187
|
class li {
|
|
13191
13188
|
constructor(e = {}) {
|
|
@@ -13199,7 +13196,7 @@ h([
|
|
|
13199
13196
|
m({ type: n_, context: 1, optional: !0, implicit: !0 })
|
|
13200
13197
|
], li.prototype, "reasons", void 0);
|
|
13201
13198
|
h([
|
|
13202
|
-
m({ type:
|
|
13199
|
+
m({ type: te, context: 2, optional: !0, repeated: "sequence", implicit: !0 })
|
|
13203
13200
|
], li.prototype, "cRLIssuer", void 0);
|
|
13204
13201
|
let Lr = Vl = class extends pe {
|
|
13205
13202
|
constructor(e) {
|
|
@@ -13207,7 +13204,7 @@ let Lr = Vl = class extends pe {
|
|
|
13207
13204
|
}
|
|
13208
13205
|
};
|
|
13209
13206
|
Lr = Vl = h([
|
|
13210
|
-
|
|
13207
|
+
O({ type: N.Sequence, itemType: li })
|
|
13211
13208
|
], Lr);
|
|
13212
13209
|
var Gl;
|
|
13213
13210
|
let Tf = Gl = class extends Lr {
|
|
@@ -13216,7 +13213,7 @@ let Tf = Gl = class extends Lr {
|
|
|
13216
13213
|
}
|
|
13217
13214
|
};
|
|
13218
13215
|
Tf = Gl = h([
|
|
13219
|
-
|
|
13216
|
+
O({ type: N.Sequence, itemType: li })
|
|
13220
13217
|
], Tf);
|
|
13221
13218
|
class Ze {
|
|
13222
13219
|
constructor(e = {}) {
|
|
@@ -13281,7 +13278,7 @@ h([
|
|
|
13281
13278
|
m({ type: b.Enumerated })
|
|
13282
13279
|
], Wl.prototype, "reason", void 0);
|
|
13283
13280
|
Wl = h([
|
|
13284
|
-
|
|
13281
|
+
O({ type: N.Choice })
|
|
13285
13282
|
], Wl);
|
|
13286
13283
|
var Jl;
|
|
13287
13284
|
const r_ = `${yn}.37`;
|
|
@@ -13291,7 +13288,7 @@ let zs = Jl = class extends pe {
|
|
|
13291
13288
|
}
|
|
13292
13289
|
};
|
|
13293
13290
|
zs = Jl = h([
|
|
13294
|
-
|
|
13291
|
+
O({ type: N.Sequence, itemType: b.ObjectIdentifier })
|
|
13295
13292
|
], zs);
|
|
13296
13293
|
const m2 = `${ci}.1`, _2 = `${ci}.2`, y2 = `${ci}.3`, w2 = `${ci}.4`, b2 = `${ci}.8`, v2 = `${ci}.9`;
|
|
13297
13294
|
let Xl = class {
|
|
@@ -13303,7 +13300,7 @@ h([
|
|
|
13303
13300
|
m({ type: b.Integer, converter: ye })
|
|
13304
13301
|
], Xl.prototype, "value", void 0);
|
|
13305
13302
|
Xl = h([
|
|
13306
|
-
|
|
13303
|
+
O({ type: N.Choice })
|
|
13307
13304
|
], Xl);
|
|
13308
13305
|
let Zl = class {
|
|
13309
13306
|
constructor(e) {
|
|
@@ -13314,7 +13311,7 @@ h([
|
|
|
13314
13311
|
m({ type: b.GeneralizedTime })
|
|
13315
13312
|
], Zl.prototype, "value", void 0);
|
|
13316
13313
|
Zl = h([
|
|
13317
|
-
|
|
13314
|
+
O({ type: N.Choice })
|
|
13318
13315
|
], Zl);
|
|
13319
13316
|
var Yl;
|
|
13320
13317
|
const i_ = `${yn}.18`;
|
|
@@ -13324,7 +13321,7 @@ let Rf = Yl = class extends Ye {
|
|
|
13324
13321
|
}
|
|
13325
13322
|
};
|
|
13326
13323
|
Rf = Yl = h([
|
|
13327
|
-
|
|
13324
|
+
O({ type: N.Sequence })
|
|
13328
13325
|
], Rf);
|
|
13329
13326
|
const o_ = `${yn}.15`;
|
|
13330
13327
|
var kt;
|
|
@@ -13343,11 +13340,11 @@ class Fc extends Ka {
|
|
|
13343
13340
|
var Ql;
|
|
13344
13341
|
class Xa {
|
|
13345
13342
|
constructor(e = {}) {
|
|
13346
|
-
this.base = new
|
|
13343
|
+
this.base = new te(), this.minimum = 0, Object.assign(this, e);
|
|
13347
13344
|
}
|
|
13348
13345
|
}
|
|
13349
13346
|
h([
|
|
13350
|
-
m({ type:
|
|
13347
|
+
m({ type: te })
|
|
13351
13348
|
], Xa.prototype, "base", void 0);
|
|
13352
13349
|
h([
|
|
13353
13350
|
m({ type: b.Integer, context: 0, defaultValue: 0, implicit: !0 })
|
|
@@ -13361,7 +13358,7 @@ let qs = Ql = class extends pe {
|
|
|
13361
13358
|
}
|
|
13362
13359
|
};
|
|
13363
13360
|
qs = Ql = h([
|
|
13364
|
-
|
|
13361
|
+
O({ type: N.Sequence, itemType: Xa })
|
|
13365
13362
|
], qs);
|
|
13366
13363
|
class s_ {
|
|
13367
13364
|
constructor(e = {}) {
|
|
@@ -13415,7 +13412,7 @@ let Bf = ed = class extends pe {
|
|
|
13415
13412
|
}
|
|
13416
13413
|
};
|
|
13417
13414
|
Bf = ed = h([
|
|
13418
|
-
|
|
13415
|
+
O({ type: N.Sequence, itemType: Lu })
|
|
13419
13416
|
], Bf);
|
|
13420
13417
|
var td;
|
|
13421
13418
|
const c_ = `${yn}.17`;
|
|
@@ -13425,7 +13422,7 @@ let nd = td = class extends Ye {
|
|
|
13425
13422
|
}
|
|
13426
13423
|
};
|
|
13427
13424
|
nd = td = h([
|
|
13428
|
-
|
|
13425
|
+
O({ type: N.Sequence })
|
|
13429
13426
|
], nd);
|
|
13430
13427
|
let ln = class {
|
|
13431
13428
|
constructor(e = {}) {
|
|
@@ -13445,7 +13442,7 @@ let Lf = rd = class extends pe {
|
|
|
13445
13442
|
}
|
|
13446
13443
|
};
|
|
13447
13444
|
Lf = rd = h([
|
|
13448
|
-
|
|
13445
|
+
O({ type: N.Sequence, itemType: ln })
|
|
13449
13446
|
], Lf);
|
|
13450
13447
|
const l_ = `${yn}.14`;
|
|
13451
13448
|
class jn extends Pu {
|
|
@@ -13492,7 +13489,7 @@ let Uf = id = class extends pe {
|
|
|
13492
13489
|
}
|
|
13493
13490
|
};
|
|
13494
13491
|
Uf = id = h([
|
|
13495
|
-
|
|
13492
|
+
O({ type: N.Sequence, itemType: Uo })
|
|
13496
13493
|
], Uf);
|
|
13497
13494
|
class M {
|
|
13498
13495
|
constructor(e = {}) {
|
|
@@ -13551,7 +13548,7 @@ h([
|
|
|
13551
13548
|
})
|
|
13552
13549
|
], ze.prototype, "generalTime", void 0);
|
|
13553
13550
|
ze = h([
|
|
13554
|
-
|
|
13551
|
+
O({ type: N.Choice })
|
|
13555
13552
|
], ze);
|
|
13556
13553
|
class Do {
|
|
13557
13554
|
constructor(e) {
|
|
@@ -13567,7 +13564,7 @@ h([
|
|
|
13567
13564
|
var od;
|
|
13568
13565
|
let yt = class f_ {
|
|
13569
13566
|
constructor(e = {}) {
|
|
13570
|
-
this.extnID = "", this.critical = f_.CRITICAL, this.extnValue = new
|
|
13567
|
+
this.extnID = "", this.critical = f_.CRITICAL, this.extnValue = new de(), Object.assign(this, e);
|
|
13571
13568
|
}
|
|
13572
13569
|
};
|
|
13573
13570
|
yt.CRITICAL = !1;
|
|
@@ -13581,7 +13578,7 @@ h([
|
|
|
13581
13578
|
})
|
|
13582
13579
|
], yt.prototype, "critical", void 0);
|
|
13583
13580
|
h([
|
|
13584
|
-
m({ type:
|
|
13581
|
+
m({ type: de })
|
|
13585
13582
|
], yt.prototype, "extnValue", void 0);
|
|
13586
13583
|
let Pn = od = class extends pe {
|
|
13587
13584
|
constructor(e) {
|
|
@@ -13589,7 +13586,7 @@ let Pn = od = class extends pe {
|
|
|
13589
13586
|
}
|
|
13590
13587
|
};
|
|
13591
13588
|
Pn = od = h([
|
|
13592
|
-
|
|
13589
|
+
O({ type: N.Sequence, itemType: yt })
|
|
13593
13590
|
], Pn);
|
|
13594
13591
|
var ir;
|
|
13595
13592
|
(function(t) {
|
|
@@ -13733,7 +13730,7 @@ h([
|
|
|
13733
13730
|
m({ type: di })
|
|
13734
13731
|
], Kr.prototype, "issuerAndSerialNumber", void 0);
|
|
13735
13732
|
Kr = h([
|
|
13736
|
-
|
|
13733
|
+
O({ type: N.Choice })
|
|
13737
13734
|
], Kr);
|
|
13738
13735
|
var dn;
|
|
13739
13736
|
(function(t) {
|
|
@@ -13742,32 +13739,32 @@ var dn;
|
|
|
13742
13739
|
let fo = class extends M {
|
|
13743
13740
|
};
|
|
13744
13741
|
fo = h([
|
|
13745
|
-
|
|
13742
|
+
O({ type: N.Sequence })
|
|
13746
13743
|
], fo);
|
|
13747
13744
|
let Fs = class extends M {
|
|
13748
13745
|
};
|
|
13749
13746
|
Fs = h([
|
|
13750
|
-
|
|
13747
|
+
O({ type: N.Sequence })
|
|
13751
13748
|
], Fs);
|
|
13752
13749
|
let Gt = class extends M {
|
|
13753
13750
|
};
|
|
13754
13751
|
Gt = h([
|
|
13755
|
-
|
|
13752
|
+
O({ type: N.Sequence })
|
|
13756
13753
|
], Gt);
|
|
13757
13754
|
let Hs = class extends M {
|
|
13758
13755
|
};
|
|
13759
13756
|
Hs = h([
|
|
13760
|
-
|
|
13757
|
+
O({ type: N.Sequence })
|
|
13761
13758
|
], Hs);
|
|
13762
13759
|
let Df = class extends M {
|
|
13763
13760
|
};
|
|
13764
13761
|
Df = h([
|
|
13765
|
-
|
|
13762
|
+
O({ type: N.Sequence })
|
|
13766
13763
|
], Df);
|
|
13767
13764
|
let sd = class extends M {
|
|
13768
13765
|
};
|
|
13769
13766
|
sd = h([
|
|
13770
|
-
|
|
13767
|
+
O({ type: N.Sequence })
|
|
13771
13768
|
], sd);
|
|
13772
13769
|
let ui = class {
|
|
13773
13770
|
constructor(e = {}) {
|
|
@@ -13783,7 +13780,7 @@ h([
|
|
|
13783
13780
|
var ad;
|
|
13784
13781
|
class Jt {
|
|
13785
13782
|
constructor(e = {}) {
|
|
13786
|
-
this.version = dn.v0, this.sid = new Kr(), this.digestAlgorithm = new fo(), this.signatureAlgorithm = new Fs(), this.signature = new
|
|
13783
|
+
this.version = dn.v0, this.sid = new Kr(), this.digestAlgorithm = new fo(), this.signatureAlgorithm = new Fs(), this.signature = new de(), Object.assign(this, e);
|
|
13787
13784
|
}
|
|
13788
13785
|
}
|
|
13789
13786
|
h([
|
|
@@ -13809,7 +13806,7 @@ h([
|
|
|
13809
13806
|
m({ type: Fs })
|
|
13810
13807
|
], Jt.prototype, "signatureAlgorithm", void 0);
|
|
13811
13808
|
h([
|
|
13812
|
-
m({ type:
|
|
13809
|
+
m({ type: de })
|
|
13813
13810
|
], Jt.prototype, "signature", void 0);
|
|
13814
13811
|
h([
|
|
13815
13812
|
m({ type: ui, repeated: "set", context: 1, implicit: !0, optional: !0 })
|
|
@@ -13820,25 +13817,25 @@ let Vs = ad = class extends pe {
|
|
|
13820
13817
|
}
|
|
13821
13818
|
};
|
|
13822
13819
|
Vs = ad = h([
|
|
13823
|
-
|
|
13820
|
+
O({ type: N.Set, itemType: Jt })
|
|
13824
13821
|
], Vs);
|
|
13825
13822
|
let Mf = class extends ze {
|
|
13826
13823
|
};
|
|
13827
13824
|
Mf = h([
|
|
13828
|
-
|
|
13825
|
+
O({ type: N.Choice })
|
|
13829
13826
|
], Mf);
|
|
13830
13827
|
let zf = class extends Jt {
|
|
13831
13828
|
};
|
|
13832
13829
|
zf = h([
|
|
13833
|
-
|
|
13830
|
+
O({ type: N.Sequence })
|
|
13834
13831
|
], zf);
|
|
13835
13832
|
class Du {
|
|
13836
13833
|
constructor(e = {}) {
|
|
13837
|
-
this.acIssuer = new
|
|
13834
|
+
this.acIssuer = new te(), this.acSerial = 0, this.attrs = [], Object.assign(this, e);
|
|
13838
13835
|
}
|
|
13839
13836
|
}
|
|
13840
13837
|
h([
|
|
13841
|
-
m({ type:
|
|
13838
|
+
m({ type: te })
|
|
13842
13839
|
], Du.prototype, "acIssuer", void 0);
|
|
13843
13840
|
h([
|
|
13844
13841
|
m({ type: b.Integer })
|
|
@@ -13853,7 +13850,7 @@ let Ks = cd = class extends pe {
|
|
|
13853
13850
|
}
|
|
13854
13851
|
};
|
|
13855
13852
|
Ks = cd = h([
|
|
13856
|
-
|
|
13853
|
+
O({ type: N.Sequence, itemType: b.ObjectIdentifier })
|
|
13857
13854
|
], Ks);
|
|
13858
13855
|
class Ya {
|
|
13859
13856
|
constructor(e = {}) {
|
|
@@ -13927,13 +13924,13 @@ let Gr = class {
|
|
|
13927
13924
|
}
|
|
13928
13925
|
};
|
|
13929
13926
|
h([
|
|
13930
|
-
m({ type:
|
|
13927
|
+
m({ type: te, repeated: "sequence" })
|
|
13931
13928
|
], Gr.prototype, "v1Form", void 0);
|
|
13932
13929
|
h([
|
|
13933
13930
|
m({ type: Qa, context: 0, implicit: !0 })
|
|
13934
13931
|
], Gr.prototype, "v2Form", void 0);
|
|
13935
13932
|
Gr = h([
|
|
13936
|
-
|
|
13933
|
+
O({ type: N.Choice })
|
|
13937
13934
|
], Gr);
|
|
13938
13935
|
class ec {
|
|
13939
13936
|
constructor(e = {}) {
|
|
@@ -14047,7 +14044,7 @@ class nc {
|
|
|
14047
14044
|
}
|
|
14048
14045
|
}
|
|
14049
14046
|
h([
|
|
14050
|
-
m({ type:
|
|
14047
|
+
m({ type: de })
|
|
14051
14048
|
], nc.prototype, "cotets", void 0);
|
|
14052
14049
|
h([
|
|
14053
14050
|
m({ type: b.ObjectIdentifier })
|
|
@@ -14076,7 +14073,7 @@ h([
|
|
|
14076
14073
|
m({ type: _r })
|
|
14077
14074
|
], rc.prototype, "targetCertificate", void 0);
|
|
14078
14075
|
h([
|
|
14079
|
-
m({ type:
|
|
14076
|
+
m({ type: te, optional: !0 })
|
|
14080
14077
|
], rc.prototype, "targetName", void 0);
|
|
14081
14078
|
h([
|
|
14082
14079
|
m({ type: yr, optional: !0 })
|
|
@@ -14087,16 +14084,16 @@ let Wr = class {
|
|
|
14087
14084
|
}
|
|
14088
14085
|
};
|
|
14089
14086
|
h([
|
|
14090
|
-
m({ type:
|
|
14087
|
+
m({ type: te, context: 0, implicit: !0 })
|
|
14091
14088
|
], Wr.prototype, "targetName", void 0);
|
|
14092
14089
|
h([
|
|
14093
|
-
m({ type:
|
|
14090
|
+
m({ type: te, context: 1, implicit: !0 })
|
|
14094
14091
|
], Wr.prototype, "targetGroup", void 0);
|
|
14095
14092
|
h([
|
|
14096
14093
|
m({ type: rc, context: 2, implicit: !0 })
|
|
14097
14094
|
], Wr.prototype, "targetCert", void 0);
|
|
14098
14095
|
Wr = h([
|
|
14099
|
-
|
|
14096
|
+
O({ type: N.Choice })
|
|
14100
14097
|
], Wr);
|
|
14101
14098
|
let fd = pd = class extends pe {
|
|
14102
14099
|
constructor(e) {
|
|
@@ -14104,7 +14101,7 @@ let fd = pd = class extends pe {
|
|
|
14104
14101
|
}
|
|
14105
14102
|
};
|
|
14106
14103
|
fd = pd = h([
|
|
14107
|
-
|
|
14104
|
+
O({ type: N.Sequence, itemType: Wr })
|
|
14108
14105
|
], fd);
|
|
14109
14106
|
var hd;
|
|
14110
14107
|
let qf = hd = class extends pe {
|
|
@@ -14113,7 +14110,7 @@ let qf = hd = class extends pe {
|
|
|
14113
14110
|
}
|
|
14114
14111
|
};
|
|
14115
14112
|
qf = hd = h([
|
|
14116
|
-
|
|
14113
|
+
O({ type: N.Sequence, itemType: fd })
|
|
14117
14114
|
], qf);
|
|
14118
14115
|
class g_ {
|
|
14119
14116
|
constructor(e = {}) {
|
|
@@ -14124,21 +14121,21 @@ h([
|
|
|
14124
14121
|
m({ type: Ye, implicit: !0, context: 0, optional: !0 })
|
|
14125
14122
|
], g_.prototype, "roleAuthority", void 0);
|
|
14126
14123
|
h([
|
|
14127
|
-
m({ type:
|
|
14124
|
+
m({ type: te, implicit: !0, context: 1 })
|
|
14128
14125
|
], g_.prototype, "roleName", void 0);
|
|
14129
14126
|
class qu {
|
|
14130
14127
|
constructor(e = {}) {
|
|
14131
|
-
this.service = new
|
|
14128
|
+
this.service = new te(), this.ident = new te(), Object.assign(this, e);
|
|
14132
14129
|
}
|
|
14133
14130
|
}
|
|
14134
14131
|
h([
|
|
14135
|
-
m({ type:
|
|
14132
|
+
m({ type: te })
|
|
14136
14133
|
], qu.prototype, "service", void 0);
|
|
14137
14134
|
h([
|
|
14138
|
-
m({ type:
|
|
14135
|
+
m({ type: te })
|
|
14139
14136
|
], qu.prototype, "ident", void 0);
|
|
14140
14137
|
h([
|
|
14141
|
-
m({ type:
|
|
14138
|
+
m({ type: de, optional: !0 })
|
|
14142
14139
|
], qu.prototype, "authInfo", void 0);
|
|
14143
14140
|
var gd;
|
|
14144
14141
|
class Fu {
|
|
@@ -14167,7 +14164,7 @@ h([
|
|
|
14167
14164
|
m({ type: Fu, context: 3, implicit: !0 })
|
|
14168
14165
|
], Jr.prototype, "other", void 0);
|
|
14169
14166
|
Jr = h([
|
|
14170
|
-
|
|
14167
|
+
O({ type: N.Choice })
|
|
14171
14168
|
], Jr);
|
|
14172
14169
|
let Ws = gd = class extends pe {
|
|
14173
14170
|
constructor(e) {
|
|
@@ -14175,7 +14172,7 @@ let Ws = gd = class extends pe {
|
|
|
14175
14172
|
}
|
|
14176
14173
|
};
|
|
14177
14174
|
Ws = gd = h([
|
|
14178
|
-
|
|
14175
|
+
O({ type: N.Set, itemType: Jr })
|
|
14179
14176
|
], Ws);
|
|
14180
14177
|
class pi {
|
|
14181
14178
|
constructor(e = {}) {
|
|
@@ -14194,13 +14191,13 @@ let ho = class {
|
|
|
14194
14191
|
}
|
|
14195
14192
|
};
|
|
14196
14193
|
h([
|
|
14197
|
-
m({ type:
|
|
14194
|
+
m({ type: de })
|
|
14198
14195
|
], ho.prototype, "single", void 0);
|
|
14199
14196
|
h([
|
|
14200
14197
|
m({ type: b.Any })
|
|
14201
14198
|
], ho.prototype, "any", void 0);
|
|
14202
14199
|
ho = h([
|
|
14203
|
-
|
|
14200
|
+
O({ type: N.Choice })
|
|
14204
14201
|
], ho);
|
|
14205
14202
|
class ic {
|
|
14206
14203
|
constructor(e = {}) {
|
|
@@ -14219,11 +14216,11 @@ let go = class {
|
|
|
14219
14216
|
}
|
|
14220
14217
|
};
|
|
14221
14218
|
h([
|
|
14222
|
-
m({ type:
|
|
14219
|
+
m({ type: de, context: 0, implicit: !0, optional: !0 })
|
|
14223
14220
|
], go.prototype, "value", void 0);
|
|
14224
14221
|
h([
|
|
14225
14222
|
m({
|
|
14226
|
-
type:
|
|
14223
|
+
type: de,
|
|
14227
14224
|
converter: Xv,
|
|
14228
14225
|
context: 0,
|
|
14229
14226
|
implicit: !0,
|
|
@@ -14232,7 +14229,7 @@ h([
|
|
|
14232
14229
|
})
|
|
14233
14230
|
], go.prototype, "constructedValue", void 0);
|
|
14234
14231
|
go = h([
|
|
14235
|
-
|
|
14232
|
+
O({ type: N.Choice })
|
|
14236
14233
|
], go);
|
|
14237
14234
|
class zo {
|
|
14238
14235
|
constructor(e = {}) {
|
|
@@ -14286,18 +14283,18 @@ h([
|
|
|
14286
14283
|
m({ type: di, optional: !0 })
|
|
14287
14284
|
], Xr.prototype, "issuerAndSerialNumber", void 0);
|
|
14288
14285
|
Xr = h([
|
|
14289
|
-
|
|
14286
|
+
O({ type: N.Choice })
|
|
14290
14287
|
], Xr);
|
|
14291
14288
|
class Hu {
|
|
14292
14289
|
constructor(e = {}) {
|
|
14293
|
-
this.rid = new Xr(), this.encryptedKey = new
|
|
14290
|
+
this.rid = new Xr(), this.encryptedKey = new de(), Object.assign(this, e);
|
|
14294
14291
|
}
|
|
14295
14292
|
}
|
|
14296
14293
|
h([
|
|
14297
14294
|
m({ type: Xr })
|
|
14298
14295
|
], Hu.prototype, "rid", void 0);
|
|
14299
14296
|
h([
|
|
14300
|
-
m({ type:
|
|
14297
|
+
m({ type: de })
|
|
14301
14298
|
], Hu.prototype, "encryptedKey", void 0);
|
|
14302
14299
|
let Js = md = class extends pe {
|
|
14303
14300
|
constructor(e) {
|
|
@@ -14305,7 +14302,7 @@ let Js = md = class extends pe {
|
|
|
14305
14302
|
}
|
|
14306
14303
|
};
|
|
14307
14304
|
Js = md = h([
|
|
14308
|
-
|
|
14305
|
+
O({ type: N.Sequence, itemType: Hu })
|
|
14309
14306
|
], Js);
|
|
14310
14307
|
class Vu {
|
|
14311
14308
|
constructor(e = {}) {
|
|
@@ -14333,7 +14330,7 @@ h([
|
|
|
14333
14330
|
m({ type: di, optional: !0 })
|
|
14334
14331
|
], sr.prototype, "issuerAndSerialNumber", void 0);
|
|
14335
14332
|
sr = h([
|
|
14336
|
-
|
|
14333
|
+
O({ type: N.Choice })
|
|
14337
14334
|
], sr);
|
|
14338
14335
|
class fi {
|
|
14339
14336
|
constructor(e = {}) {
|
|
@@ -14347,7 +14344,7 @@ h([
|
|
|
14347
14344
|
m({ type: sr, context: 0 })
|
|
14348
14345
|
], fi.prototype, "originator", void 0);
|
|
14349
14346
|
h([
|
|
14350
|
-
m({ type:
|
|
14347
|
+
m({ type: de, context: 1, optional: !0 })
|
|
14351
14348
|
], fi.prototype, "ukm", void 0);
|
|
14352
14349
|
h([
|
|
14353
14350
|
m({ type: Gt })
|
|
@@ -14367,11 +14364,11 @@ h([
|
|
|
14367
14364
|
m({ type: di })
|
|
14368
14365
|
], Zr.prototype, "issuerAndSerialNumber", void 0);
|
|
14369
14366
|
Zr = h([
|
|
14370
|
-
|
|
14367
|
+
O({ type: N.Choice })
|
|
14371
14368
|
], Zr);
|
|
14372
14369
|
class qo {
|
|
14373
14370
|
constructor(e = {}) {
|
|
14374
|
-
this.version = dn.v0, this.rid = new Zr(), this.keyEncryptionAlgorithm = new Gt(), this.encryptedKey = new
|
|
14371
|
+
this.version = dn.v0, this.rid = new Zr(), this.keyEncryptionAlgorithm = new Gt(), this.encryptedKey = new de(), Object.assign(this, e);
|
|
14375
14372
|
}
|
|
14376
14373
|
}
|
|
14377
14374
|
h([
|
|
@@ -14384,15 +14381,15 @@ h([
|
|
|
14384
14381
|
m({ type: Gt })
|
|
14385
14382
|
], qo.prototype, "keyEncryptionAlgorithm", void 0);
|
|
14386
14383
|
h([
|
|
14387
|
-
m({ type:
|
|
14384
|
+
m({ type: de })
|
|
14388
14385
|
], qo.prototype, "encryptedKey", void 0);
|
|
14389
14386
|
class Fo {
|
|
14390
14387
|
constructor(e = {}) {
|
|
14391
|
-
this.keyIdentifier = new
|
|
14388
|
+
this.keyIdentifier = new de(), Object.assign(this, e);
|
|
14392
14389
|
}
|
|
14393
14390
|
}
|
|
14394
14391
|
h([
|
|
14395
|
-
m({ type:
|
|
14392
|
+
m({ type: de })
|
|
14396
14393
|
], Fo.prototype, "keyIdentifier", void 0);
|
|
14397
14394
|
h([
|
|
14398
14395
|
m({ type: b.GeneralizedTime, optional: !0 })
|
|
@@ -14402,7 +14399,7 @@ h([
|
|
|
14402
14399
|
], Fo.prototype, "other", void 0);
|
|
14403
14400
|
class Ho {
|
|
14404
14401
|
constructor(e = {}) {
|
|
14405
|
-
this.version = dn.v4, this.kekid = new Fo(), this.keyEncryptionAlgorithm = new Gt(), this.encryptedKey = new
|
|
14402
|
+
this.version = dn.v4, this.kekid = new Fo(), this.keyEncryptionAlgorithm = new Gt(), this.encryptedKey = new de(), Object.assign(this, e);
|
|
14406
14403
|
}
|
|
14407
14404
|
}
|
|
14408
14405
|
h([
|
|
@@ -14415,11 +14412,11 @@ h([
|
|
|
14415
14412
|
m({ type: Gt })
|
|
14416
14413
|
], Ho.prototype, "keyEncryptionAlgorithm", void 0);
|
|
14417
14414
|
h([
|
|
14418
|
-
m({ type:
|
|
14415
|
+
m({ type: de })
|
|
14419
14416
|
], Ho.prototype, "encryptedKey", void 0);
|
|
14420
14417
|
class Vo {
|
|
14421
14418
|
constructor(e = {}) {
|
|
14422
|
-
this.version = dn.v0, this.keyEncryptionAlgorithm = new Gt(), this.encryptedKey = new
|
|
14419
|
+
this.version = dn.v0, this.keyEncryptionAlgorithm = new Gt(), this.encryptedKey = new de(), Object.assign(this, e);
|
|
14423
14420
|
}
|
|
14424
14421
|
}
|
|
14425
14422
|
h([
|
|
@@ -14432,7 +14429,7 @@ h([
|
|
|
14432
14429
|
m({ type: Gt })
|
|
14433
14430
|
], Vo.prototype, "keyEncryptionAlgorithm", void 0);
|
|
14434
14431
|
h([
|
|
14435
|
-
m({ type:
|
|
14432
|
+
m({ type: de })
|
|
14436
14433
|
], Vo.prototype, "encryptedKey", void 0);
|
|
14437
14434
|
class Ku {
|
|
14438
14435
|
constructor(e = {}) {
|
|
@@ -14466,7 +14463,7 @@ h([
|
|
|
14466
14463
|
m({ type: Ku, context: 4, implicit: !0, optional: !0 })
|
|
14467
14464
|
], Tn.prototype, "ori", void 0);
|
|
14468
14465
|
Tn = h([
|
|
14469
|
-
|
|
14466
|
+
O({ type: N.Choice })
|
|
14470
14467
|
], Tn);
|
|
14471
14468
|
var _d;
|
|
14472
14469
|
let Xs = _d = class extends pe {
|
|
@@ -14475,7 +14472,7 @@ let Xs = _d = class extends pe {
|
|
|
14475
14472
|
}
|
|
14476
14473
|
};
|
|
14477
14474
|
Xs = _d = h([
|
|
14478
|
-
|
|
14475
|
+
O({ type: N.Set, itemType: Tn })
|
|
14479
14476
|
], Xs);
|
|
14480
14477
|
var yd;
|
|
14481
14478
|
class ac {
|
|
@@ -14498,7 +14495,7 @@ h([
|
|
|
14498
14495
|
m({ type: ac, context: 1, implicit: !0 })
|
|
14499
14496
|
], Zs.prototype, "other", void 0);
|
|
14500
14497
|
Zs = h([
|
|
14501
|
-
|
|
14498
|
+
O({ type: N.Choice })
|
|
14502
14499
|
], Zs);
|
|
14503
14500
|
let Ys = yd = class extends pe {
|
|
14504
14501
|
constructor(e) {
|
|
@@ -14506,7 +14503,7 @@ let Ys = yd = class extends pe {
|
|
|
14506
14503
|
}
|
|
14507
14504
|
};
|
|
14508
14505
|
Ys = yd = h([
|
|
14509
|
-
|
|
14506
|
+
O({ type: N.Set, itemType: Zs })
|
|
14510
14507
|
], Ys);
|
|
14511
14508
|
class Gu {
|
|
14512
14509
|
constructor(e = {}) {
|
|
@@ -14526,7 +14523,7 @@ let bd = wd = class extends pe {
|
|
|
14526
14523
|
}
|
|
14527
14524
|
};
|
|
14528
14525
|
bd = wd = h([
|
|
14529
|
-
|
|
14526
|
+
O({ type: N.Set, itemType: ui })
|
|
14530
14527
|
], bd);
|
|
14531
14528
|
class Ko {
|
|
14532
14529
|
constructor(e = {}) {
|
|
@@ -14556,7 +14553,7 @@ let Qs = vd = class extends pe {
|
|
|
14556
14553
|
}
|
|
14557
14554
|
};
|
|
14558
14555
|
Qs = vd = h([
|
|
14559
|
-
|
|
14556
|
+
O({ type: N.Set, itemType: fo })
|
|
14560
14557
|
], Qs);
|
|
14561
14558
|
class hi {
|
|
14562
14559
|
constructor(e = {}) {
|
|
@@ -14600,9 +14597,9 @@ h([
|
|
|
14600
14597
|
m({ type: b.Any })
|
|
14601
14598
|
], _o.prototype, "parameters", void 0);
|
|
14602
14599
|
_o = h([
|
|
14603
|
-
|
|
14600
|
+
O({ type: N.Sequence })
|
|
14604
14601
|
], _o);
|
|
14605
|
-
class E2 extends
|
|
14602
|
+
class E2 extends de {
|
|
14606
14603
|
}
|
|
14607
14604
|
let Yr = class {
|
|
14608
14605
|
constructor(e = {}) {
|
|
@@ -14619,7 +14616,7 @@ h([
|
|
|
14619
14616
|
m({ type: b.BitString, optional: !0 })
|
|
14620
14617
|
], Yr.prototype, "seed", void 0);
|
|
14621
14618
|
Yr = h([
|
|
14622
|
-
|
|
14619
|
+
O({ type: N.Sequence })
|
|
14623
14620
|
], Yr);
|
|
14624
14621
|
var $d;
|
|
14625
14622
|
(function(t) {
|
|
@@ -14649,7 +14646,7 @@ h([
|
|
|
14649
14646
|
m({ type: b.Integer, optional: !0 })
|
|
14650
14647
|
], un.prototype, "cofactor", void 0);
|
|
14651
14648
|
un = h([
|
|
14652
|
-
|
|
14649
|
+
O({ type: N.Sequence })
|
|
14653
14650
|
], un);
|
|
14654
14651
|
let Rn = class {
|
|
14655
14652
|
constructor(e = {}) {
|
|
@@ -14666,18 +14663,18 @@ h([
|
|
|
14666
14663
|
m({ type: un })
|
|
14667
14664
|
], Rn.prototype, "specifiedCurve", void 0);
|
|
14668
14665
|
Rn = h([
|
|
14669
|
-
|
|
14666
|
+
O({ type: N.Choice })
|
|
14670
14667
|
], Rn);
|
|
14671
14668
|
class cc {
|
|
14672
14669
|
constructor(e = {}) {
|
|
14673
|
-
this.version = 1, this.privateKey = new
|
|
14670
|
+
this.version = 1, this.privateKey = new de(), Object.assign(this, e);
|
|
14674
14671
|
}
|
|
14675
14672
|
}
|
|
14676
14673
|
h([
|
|
14677
14674
|
m({ type: b.Integer })
|
|
14678
14675
|
], cc.prototype, "version", void 0);
|
|
14679
14676
|
h([
|
|
14680
|
-
m({ type:
|
|
14677
|
+
m({ type: de })
|
|
14681
14678
|
], cc.prototype, "privateKey", void 0);
|
|
14682
14679
|
h([
|
|
14683
14680
|
m({ type: Rn, context: 0, optional: !0 })
|
|
@@ -14794,14 +14791,14 @@ new M({
|
|
|
14794
14791
|
});
|
|
14795
14792
|
class uc {
|
|
14796
14793
|
constructor(e = {}) {
|
|
14797
|
-
this.digestAlgorithm = new M(), this.digest = new
|
|
14794
|
+
this.digestAlgorithm = new M(), this.digest = new de(), Object.assign(this, e);
|
|
14798
14795
|
}
|
|
14799
14796
|
}
|
|
14800
14797
|
h([
|
|
14801
14798
|
m({ type: M })
|
|
14802
14799
|
], uc.prototype, "digestAlgorithm", void 0);
|
|
14803
14800
|
h([
|
|
14804
|
-
m({ type:
|
|
14801
|
+
m({ type: de })
|
|
14805
14802
|
], uc.prototype, "digest", void 0);
|
|
14806
14803
|
var xd;
|
|
14807
14804
|
class pc {
|
|
@@ -14824,7 +14821,7 @@ let Sd = xd = class extends pe {
|
|
|
14824
14821
|
}
|
|
14825
14822
|
};
|
|
14826
14823
|
Sd = xd = h([
|
|
14827
|
-
|
|
14824
|
+
O({ type: N.Sequence, itemType: pc })
|
|
14828
14825
|
], Sd);
|
|
14829
14826
|
class Xt {
|
|
14830
14827
|
constructor(e = {}) {
|
|
@@ -15415,7 +15412,7 @@ let Gf = Nd = class extends pe {
|
|
|
15415
15412
|
}
|
|
15416
15413
|
};
|
|
15417
15414
|
Gf = Nd = h([
|
|
15418
|
-
|
|
15415
|
+
O({ type: N.Sequence, itemType: hc })
|
|
15419
15416
|
], Gf);
|
|
15420
15417
|
var jd;
|
|
15421
15418
|
let Wf = jd = class extends pe {
|
|
@@ -15424,7 +15421,7 @@ let Wf = jd = class extends pe {
|
|
|
15424
15421
|
}
|
|
15425
15422
|
};
|
|
15426
15423
|
Wf = jd = h([
|
|
15427
|
-
|
|
15424
|
+
O({ type: N.Sequence, itemType: pi })
|
|
15428
15425
|
], Wf);
|
|
15429
15426
|
class S_ {
|
|
15430
15427
|
constructor(e = {}) {
|
|
@@ -15448,7 +15445,7 @@ h([
|
|
|
15448
15445
|
h([
|
|
15449
15446
|
m({ type: b.Any, context: 0 })
|
|
15450
15447
|
], A_.prototype, "crltValue", void 0);
|
|
15451
|
-
class E_ extends
|
|
15448
|
+
class E_ extends de {
|
|
15452
15449
|
}
|
|
15453
15450
|
let gc = class {
|
|
15454
15451
|
constructor(e = {}) {
|
|
@@ -15465,7 +15462,7 @@ var Id, Od;
|
|
|
15465
15462
|
(function(t) {
|
|
15466
15463
|
t[t.v1 = 0] = "v1";
|
|
15467
15464
|
})(Od || (Od = {}));
|
|
15468
|
-
class C_ extends
|
|
15465
|
+
class C_ extends de {
|
|
15469
15466
|
}
|
|
15470
15467
|
let Pd = Id = class extends pe {
|
|
15471
15468
|
constructor(e) {
|
|
@@ -15473,7 +15470,7 @@ let Pd = Id = class extends pe {
|
|
|
15473
15470
|
}
|
|
15474
15471
|
};
|
|
15475
15472
|
Pd = Id = h([
|
|
15476
|
-
|
|
15473
|
+
O({ type: N.Sequence, itemType: ln })
|
|
15477
15474
|
], Pd);
|
|
15478
15475
|
class Wo {
|
|
15479
15476
|
constructor(e = {}) {
|
|
@@ -15495,12 +15492,12 @@ h([
|
|
|
15495
15492
|
let Jf = class extends Wo {
|
|
15496
15493
|
};
|
|
15497
15494
|
Jf = h([
|
|
15498
|
-
|
|
15495
|
+
O({ type: N.Sequence })
|
|
15499
15496
|
], Jf);
|
|
15500
15497
|
let Xf = class extends gc {
|
|
15501
15498
|
};
|
|
15502
15499
|
Xf = h([
|
|
15503
|
-
|
|
15500
|
+
O({ type: N.Sequence })
|
|
15504
15501
|
], Xf);
|
|
15505
15502
|
class N_ {
|
|
15506
15503
|
constructor(e = {}) {
|
|
@@ -15515,14 +15512,14 @@ h([
|
|
|
15515
15512
|
], N_.prototype, "secretValue", void 0);
|
|
15516
15513
|
class Jo {
|
|
15517
15514
|
constructor(e = {}) {
|
|
15518
|
-
this.mac = new uc(), this.macSalt = new
|
|
15515
|
+
this.mac = new uc(), this.macSalt = new de(), this.iterations = 1, Object.assign(this, e);
|
|
15519
15516
|
}
|
|
15520
15517
|
}
|
|
15521
15518
|
h([
|
|
15522
15519
|
m({ type: uc })
|
|
15523
15520
|
], Jo.prototype, "mac", void 0);
|
|
15524
15521
|
h([
|
|
15525
|
-
m({ type:
|
|
15522
|
+
m({ type: de })
|
|
15526
15523
|
], Jo.prototype, "macSalt", void 0);
|
|
15527
15524
|
h([
|
|
15528
15525
|
m({ type: b.Integer, defaultValue: 1 })
|
|
@@ -15562,7 +15559,7 @@ let Zf = Td = class extends pe {
|
|
|
15562
15559
|
}
|
|
15563
15560
|
};
|
|
15564
15561
|
Zf = Td = h([
|
|
15565
|
-
|
|
15562
|
+
O({ type: N.Sequence, itemType: _c })
|
|
15566
15563
|
], Zf);
|
|
15567
15564
|
var Rd, Bd, Ld;
|
|
15568
15565
|
const j_ = "1.2.840.113549.1.9", I_ = `${j_}.7`, tp = `${j_}.14`;
|
|
@@ -15578,22 +15575,22 @@ h([
|
|
|
15578
15575
|
m({ type: b.IA5String })
|
|
15579
15576
|
], la.prototype, "ia5String", void 0);
|
|
15580
15577
|
la = h([
|
|
15581
|
-
|
|
15578
|
+
O({ type: N.Choice })
|
|
15582
15579
|
], la);
|
|
15583
15580
|
let Yf = class extends pi {
|
|
15584
15581
|
};
|
|
15585
15582
|
Yf = h([
|
|
15586
|
-
|
|
15583
|
+
O({ type: N.Sequence })
|
|
15587
15584
|
], Yf);
|
|
15588
15585
|
let Qf = class extends mc {
|
|
15589
15586
|
};
|
|
15590
15587
|
Qf = h([
|
|
15591
|
-
|
|
15588
|
+
O({ type: N.Sequence })
|
|
15592
15589
|
], Qf);
|
|
15593
15590
|
let eh = class extends gc {
|
|
15594
15591
|
};
|
|
15595
15592
|
eh = h([
|
|
15596
|
-
|
|
15593
|
+
O({ type: N.Sequence })
|
|
15597
15594
|
], eh);
|
|
15598
15595
|
let Ud = class {
|
|
15599
15596
|
constructor(e = "") {
|
|
@@ -15607,17 +15604,17 @@ h([
|
|
|
15607
15604
|
m({ type: b.IA5String })
|
|
15608
15605
|
], Ud.prototype, "value", void 0);
|
|
15609
15606
|
Ud = h([
|
|
15610
|
-
|
|
15607
|
+
O({ type: N.Choice })
|
|
15611
15608
|
], Ud);
|
|
15612
15609
|
let th = class extends la {
|
|
15613
15610
|
};
|
|
15614
15611
|
th = h([
|
|
15615
|
-
|
|
15612
|
+
O({ type: N.Choice })
|
|
15616
15613
|
], th);
|
|
15617
15614
|
let nh = class extends He {
|
|
15618
15615
|
};
|
|
15619
15616
|
nh = h([
|
|
15620
|
-
|
|
15617
|
+
O({ type: N.Choice })
|
|
15621
15618
|
], nh);
|
|
15622
15619
|
let Dd = class {
|
|
15623
15620
|
constructor(e = /* @__PURE__ */ new Date()) {
|
|
@@ -15628,12 +15625,12 @@ h([
|
|
|
15628
15625
|
m({ type: b.GeneralizedTime })
|
|
15629
15626
|
], Dd.prototype, "value", void 0);
|
|
15630
15627
|
Dd = h([
|
|
15631
|
-
|
|
15628
|
+
O({ type: N.Choice })
|
|
15632
15629
|
], Dd);
|
|
15633
15630
|
let rh = class extends He {
|
|
15634
15631
|
};
|
|
15635
15632
|
rh = h([
|
|
15636
|
-
|
|
15633
|
+
O({ type: N.Choice })
|
|
15637
15634
|
], rh);
|
|
15638
15635
|
let Md = class {
|
|
15639
15636
|
constructor(e = "M") {
|
|
@@ -15647,7 +15644,7 @@ h([
|
|
|
15647
15644
|
m({ type: b.PrintableString })
|
|
15648
15645
|
], Md.prototype, "value", void 0);
|
|
15649
15646
|
Md = h([
|
|
15650
|
-
|
|
15647
|
+
O({ type: N.Choice })
|
|
15651
15648
|
], Md);
|
|
15652
15649
|
let da = class {
|
|
15653
15650
|
constructor(e = "") {
|
|
@@ -15661,17 +15658,17 @@ h([
|
|
|
15661
15658
|
m({ type: b.PrintableString })
|
|
15662
15659
|
], da.prototype, "value", void 0);
|
|
15663
15660
|
da = h([
|
|
15664
|
-
|
|
15661
|
+
O({ type: N.Choice })
|
|
15665
15662
|
], da);
|
|
15666
15663
|
let ih = class extends da {
|
|
15667
15664
|
};
|
|
15668
15665
|
ih = h([
|
|
15669
|
-
|
|
15666
|
+
O({ type: N.Choice })
|
|
15670
15667
|
], ih);
|
|
15671
15668
|
let oh = class extends He {
|
|
15672
15669
|
};
|
|
15673
15670
|
oh = h([
|
|
15674
|
-
|
|
15671
|
+
O({ type: N.Choice })
|
|
15675
15672
|
], oh);
|
|
15676
15673
|
let zd = class {
|
|
15677
15674
|
constructor(e = "") {
|
|
@@ -15685,12 +15682,12 @@ h([
|
|
|
15685
15682
|
m({ type: b.ObjectIdentifier })
|
|
15686
15683
|
], zd.prototype, "value", void 0);
|
|
15687
15684
|
zd = h([
|
|
15688
|
-
|
|
15685
|
+
O({ type: N.Choice })
|
|
15689
15686
|
], zd);
|
|
15690
15687
|
let sh = class extends ze {
|
|
15691
15688
|
};
|
|
15692
15689
|
sh = h([
|
|
15693
|
-
|
|
15690
|
+
O({ type: N.Choice })
|
|
15694
15691
|
], sh);
|
|
15695
15692
|
let qd = class {
|
|
15696
15693
|
constructor(e = 0) {
|
|
@@ -15704,17 +15701,17 @@ h([
|
|
|
15704
15701
|
m({ type: b.Integer })
|
|
15705
15702
|
], qd.prototype, "value", void 0);
|
|
15706
15703
|
qd = h([
|
|
15707
|
-
|
|
15704
|
+
O({ type: N.Choice })
|
|
15708
15705
|
], qd);
|
|
15709
15706
|
let ah = class extends Jt {
|
|
15710
15707
|
};
|
|
15711
15708
|
ah = h([
|
|
15712
|
-
|
|
15709
|
+
O({ type: N.Sequence })
|
|
15713
15710
|
], ah);
|
|
15714
15711
|
let ua = class extends He {
|
|
15715
15712
|
};
|
|
15716
15713
|
ua = h([
|
|
15717
|
-
|
|
15714
|
+
O({ type: N.Choice })
|
|
15718
15715
|
], ua);
|
|
15719
15716
|
let ch = Rd = class extends Pn {
|
|
15720
15717
|
constructor(e) {
|
|
@@ -15722,7 +15719,7 @@ let ch = Rd = class extends Pn {
|
|
|
15722
15719
|
}
|
|
15723
15720
|
};
|
|
15724
15721
|
ch = Rd = h([
|
|
15725
|
-
|
|
15722
|
+
O({ type: N.Sequence })
|
|
15726
15723
|
], ch);
|
|
15727
15724
|
let lh = Bd = class extends pe {
|
|
15728
15725
|
constructor(e) {
|
|
@@ -15730,7 +15727,7 @@ let lh = Bd = class extends pe {
|
|
|
15730
15727
|
}
|
|
15731
15728
|
};
|
|
15732
15729
|
lh = Bd = h([
|
|
15733
|
-
|
|
15730
|
+
O({ type: N.Set, itemType: ui })
|
|
15734
15731
|
], lh);
|
|
15735
15732
|
let Fd = class {
|
|
15736
15733
|
constructor(e = "") {
|
|
@@ -15744,12 +15741,12 @@ h([
|
|
|
15744
15741
|
m({ type: b.BmpString })
|
|
15745
15742
|
], Fd.prototype, "value", void 0);
|
|
15746
15743
|
Fd = h([
|
|
15747
|
-
|
|
15744
|
+
O({ type: N.Choice })
|
|
15748
15745
|
], Fd);
|
|
15749
15746
|
let Hd = class extends M {
|
|
15750
15747
|
};
|
|
15751
15748
|
Hd = h([
|
|
15752
|
-
|
|
15749
|
+
O({ type: N.Sequence })
|
|
15753
15750
|
], Hd);
|
|
15754
15751
|
let dh = Ld = class extends pe {
|
|
15755
15752
|
constructor(e) {
|
|
@@ -15757,7 +15754,7 @@ let dh = Ld = class extends pe {
|
|
|
15757
15754
|
}
|
|
15758
15755
|
};
|
|
15759
15756
|
dh = Ld = h([
|
|
15760
|
-
|
|
15757
|
+
O({ type: N.Sequence, itemType: Hd })
|
|
15761
15758
|
], dh);
|
|
15762
15759
|
var Vd;
|
|
15763
15760
|
let pa = Vd = class extends pe {
|
|
@@ -15766,7 +15763,7 @@ let pa = Vd = class extends pe {
|
|
|
15766
15763
|
}
|
|
15767
15764
|
};
|
|
15768
15765
|
pa = Vd = h([
|
|
15769
|
-
|
|
15766
|
+
O({ type: N.Sequence, itemType: ln })
|
|
15770
15767
|
], pa);
|
|
15771
15768
|
class gi {
|
|
15772
15769
|
constructor(e = {}) {
|
|
@@ -15983,18 +15980,18 @@ wo = ws = h([
|
|
|
15983
15980
|
], wo);
|
|
15984
15981
|
Ve.registerSingleton(Xo, wo);
|
|
15985
15982
|
const O_ = Symbol("name"), P_ = Symbol("value");
|
|
15986
|
-
class
|
|
15983
|
+
class ue {
|
|
15987
15984
|
constructor(e, n = {}, r = "") {
|
|
15988
15985
|
this[O_] = e, this[P_] = r;
|
|
15989
15986
|
for (const i in n)
|
|
15990
15987
|
this[i] = n[i];
|
|
15991
15988
|
}
|
|
15992
15989
|
}
|
|
15993
|
-
|
|
15994
|
-
|
|
15990
|
+
ue.NAME = O_;
|
|
15991
|
+
ue.VALUE = P_;
|
|
15995
15992
|
class e3 {
|
|
15996
15993
|
static toTextObject(e) {
|
|
15997
|
-
const n = new
|
|
15994
|
+
const n = new ue("Algorithm Identifier", {}, Un.toString(e.algorithm));
|
|
15998
15995
|
if (e.parameters)
|
|
15999
15996
|
switch (e.algorithm) {
|
|
16000
15997
|
case mo: {
|
|
@@ -16051,8 +16048,8 @@ class ur {
|
|
|
16051
16048
|
static serializeObj(e, n = 0) {
|
|
16052
16049
|
const r = [];
|
|
16053
16050
|
let i = this.pad(n++), s = "";
|
|
16054
|
-
const a = e[
|
|
16055
|
-
a && (s = ` ${a}`), r.push(`${i}${e[
|
|
16051
|
+
const a = e[ue.VALUE];
|
|
16052
|
+
a && (s = ` ${a}`), r.push(`${i}${e[ue.NAME]}:${s}`), i = this.pad(n);
|
|
16056
16053
|
for (const c in e) {
|
|
16057
16054
|
if (typeof c == "symbol")
|
|
16058
16055
|
continue;
|
|
@@ -16063,14 +16060,14 @@ class ur {
|
|
|
16063
16060
|
r.push(`${i}${d}${l.toUTCString()}`);
|
|
16064
16061
|
else if (Array.isArray(l))
|
|
16065
16062
|
for (const p of l)
|
|
16066
|
-
p[
|
|
16067
|
-
else if (l instanceof
|
|
16068
|
-
l[
|
|
16063
|
+
p[ue.NAME] = c, r.push(...this.serializeObj(p, n));
|
|
16064
|
+
else if (l instanceof ue)
|
|
16065
|
+
l[ue.NAME] = c, r.push(...this.serializeObj(l, n));
|
|
16069
16066
|
else if (R.isBufferSource(l))
|
|
16070
16067
|
c ? (r.push(`${i}${d}`), r.push(...this.serializeBufferSource(l, n + 1))) : r.push(...this.serializeBufferSource(l, n));
|
|
16071
16068
|
else if ("toTextObject" in l) {
|
|
16072
16069
|
const p = l.toTextObject();
|
|
16073
|
-
p[
|
|
16070
|
+
p[ue.NAME] = c, r.push(...this.serializeObj(p, n));
|
|
16074
16071
|
} else
|
|
16075
16072
|
throw new TypeError("Cannot serialize data in text format. Unsupported type.");
|
|
16076
16073
|
}
|
|
@@ -16098,7 +16095,7 @@ ur.algorithmSerializer = e3;
|
|
|
16098
16095
|
var Ar;
|
|
16099
16096
|
class Dn {
|
|
16100
16097
|
get rawData() {
|
|
16101
|
-
return
|
|
16098
|
+
return ne(this, Ar, "f") || we(this, Ar, T.serialize(this.asn), "f"), ne(this, Ar, "f");
|
|
16102
16099
|
}
|
|
16103
16100
|
constructor(...e) {
|
|
16104
16101
|
Ar.set(this, void 0), R.isBufferSource(e[0]) ? (this.asn = T.parse(e[0], e[1]), we(this, Ar, R.toArrayBuffer(e[0]), "f"), this.onInit(this.asn)) : (this.asn = e[0], this.onInit(this.asn));
|
|
@@ -16130,7 +16127,7 @@ class Dn {
|
|
|
16130
16127
|
return e[""] = this.rawData, e;
|
|
16131
16128
|
}
|
|
16132
16129
|
toTextObjectEmpty(e) {
|
|
16133
|
-
return new
|
|
16130
|
+
return new ue(this.getTextName(), {}, e);
|
|
16134
16131
|
}
|
|
16135
16132
|
}
|
|
16136
16133
|
Ar = /* @__PURE__ */ new WeakMap();
|
|
@@ -16141,7 +16138,7 @@ class ht extends Dn {
|
|
|
16141
16138
|
R.isBufferSource(e[0]) ? n = R.toArrayBuffer(e[0]) : n = T.serialize(new yt({
|
|
16142
16139
|
extnID: e[0],
|
|
16143
16140
|
critical: e[1],
|
|
16144
|
-
extnValue: new
|
|
16141
|
+
extnValue: new de(R.toArrayBuffer(e[2]))
|
|
16145
16142
|
})), super(n, yt);
|
|
16146
16143
|
}
|
|
16147
16144
|
onInit(e) {
|
|
@@ -16153,7 +16150,7 @@ class ht extends Dn {
|
|
|
16153
16150
|
}
|
|
16154
16151
|
toTextObjectWithoutValue() {
|
|
16155
16152
|
const e = this.toTextObjectEmpty(this.critical ? "critical" : void 0);
|
|
16156
|
-
return e[
|
|
16153
|
+
return e[ue.NAME] === ht.NAME && (e[ue.NAME] = Un.toString(this.type)), e;
|
|
16157
16154
|
}
|
|
16158
16155
|
}
|
|
16159
16156
|
var T_;
|
|
@@ -16384,36 +16381,36 @@ class Cn extends Dn {
|
|
|
16384
16381
|
switch (e[0]) {
|
|
16385
16382
|
case Vc: {
|
|
16386
16383
|
const r = new At(e[1]).toArrayBuffer(), i = T.parse(r, je);
|
|
16387
|
-
n = new
|
|
16384
|
+
n = new te({ directoryName: i });
|
|
16388
16385
|
break;
|
|
16389
16386
|
}
|
|
16390
16387
|
case Hc:
|
|
16391
|
-
n = new
|
|
16388
|
+
n = new te({ dNSName: e[1] });
|
|
16392
16389
|
break;
|
|
16393
16390
|
case Kc:
|
|
16394
|
-
n = new
|
|
16391
|
+
n = new te({ rfc822Name: e[1] });
|
|
16395
16392
|
break;
|
|
16396
16393
|
case Jc: {
|
|
16397
16394
|
const r = new RegExp(Mh, "i").exec(e[1]);
|
|
16398
16395
|
if (!r)
|
|
16399
16396
|
throw new Error("Cannot parse GUID value. Value doesn't match to regular expression");
|
|
16400
16397
|
const i = r.slice(1).map((s, a) => a < 3 ? F.ToHex(new Uint8Array(F.FromHex(s)).reverse()) : s).join("");
|
|
16401
|
-
n = new
|
|
16398
|
+
n = new te({
|
|
16402
16399
|
otherName: new po({
|
|
16403
16400
|
typeId: zh,
|
|
16404
|
-
value: T.serialize(new
|
|
16401
|
+
value: T.serialize(new de(F.FromHex(i)))
|
|
16405
16402
|
})
|
|
16406
16403
|
});
|
|
16407
16404
|
break;
|
|
16408
16405
|
}
|
|
16409
16406
|
case Gc:
|
|
16410
|
-
n = new
|
|
16407
|
+
n = new te({ iPAddress: e[1] });
|
|
16411
16408
|
break;
|
|
16412
16409
|
case us:
|
|
16413
|
-
n = new
|
|
16410
|
+
n = new te({ registeredID: e[1] });
|
|
16414
16411
|
break;
|
|
16415
16412
|
case Xc: {
|
|
16416
|
-
n = new
|
|
16413
|
+
n = new te({
|
|
16417
16414
|
otherName: new po({
|
|
16418
16415
|
typeId: qh,
|
|
16419
16416
|
value: T.serialize(Ym.toASN(e[1]))
|
|
@@ -16422,12 +16419,12 @@ class Cn extends Dn {
|
|
|
16422
16419
|
break;
|
|
16423
16420
|
}
|
|
16424
16421
|
case Wc:
|
|
16425
|
-
n = new
|
|
16422
|
+
n = new te({ uniformResourceIdentifier: e[1] });
|
|
16426
16423
|
break;
|
|
16427
16424
|
default:
|
|
16428
16425
|
throw new Error("Cannot create GeneralName. Unsupported type of the name");
|
|
16429
16426
|
}
|
|
16430
|
-
else R.isBufferSource(e[0]) ? n = T.parse(e[0],
|
|
16427
|
+
else R.isBufferSource(e[0]) ? n = T.parse(e[0], te) : n = e[0];
|
|
16431
16428
|
super(n);
|
|
16432
16429
|
}
|
|
16433
16430
|
onInit(e) {
|
|
@@ -16446,7 +16443,7 @@ class Cn extends Dn {
|
|
|
16446
16443
|
else if (e.otherName != null)
|
|
16447
16444
|
if (e.otherName.typeId === zh) {
|
|
16448
16445
|
this.type = Jc;
|
|
16449
|
-
const n = T.parse(e.otherName.value,
|
|
16446
|
+
const n = T.parse(e.otherName.value, de), r = new RegExp(Mh, "i").exec(F.ToHex(n));
|
|
16450
16447
|
if (!r)
|
|
16451
16448
|
throw new Error(o3);
|
|
16452
16449
|
this.value = r.slice(1).map((i, s) => s < 3 ? F.ToHex(new Uint8Array(F.FromHex(i)).reverse()) : i).join("-");
|
|
@@ -16482,7 +16479,7 @@ class Cn extends Dn {
|
|
|
16482
16479
|
throw new Error("Unsupported GeneralName type");
|
|
16483
16480
|
}
|
|
16484
16481
|
let n = this.value;
|
|
16485
|
-
return this.type === us && (n = Un.toString(n)), new
|
|
16482
|
+
return this.type === us && (n = Un.toString(n)), new ue(e, void 0, n);
|
|
16486
16483
|
}
|
|
16487
16484
|
}
|
|
16488
16485
|
class pr extends Dn {
|
|
@@ -16493,10 +16490,10 @@ class pr extends Dn {
|
|
|
16493
16490
|
else if (Array.isArray(e)) {
|
|
16494
16491
|
const r = [];
|
|
16495
16492
|
for (const i of e)
|
|
16496
|
-
if (i instanceof
|
|
16493
|
+
if (i instanceof te)
|
|
16497
16494
|
r.push(i);
|
|
16498
16495
|
else {
|
|
16499
|
-
const s = T.parse(new Cn(i.type, i.value).rawData,
|
|
16496
|
+
const s = T.parse(new Cn(i.type, i.value).rawData, te);
|
|
16500
16497
|
r.push(s);
|
|
16501
16498
|
}
|
|
16502
16499
|
n = new Ye(r);
|
|
@@ -16526,8 +16523,8 @@ class pr extends Dn {
|
|
|
16526
16523
|
const e = super.toTextObjectEmpty();
|
|
16527
16524
|
for (const n of this.items) {
|
|
16528
16525
|
const r = n.toTextObject();
|
|
16529
|
-
let i = e[r[
|
|
16530
|
-
Array.isArray(i) || (i = [], e[r[
|
|
16526
|
+
let i = e[r[ue.NAME]];
|
|
16527
|
+
Array.isArray(i) || (i = [], e[r[ue.NAME]] = i), i.push(r);
|
|
16531
16528
|
}
|
|
16532
16529
|
return e;
|
|
16533
16530
|
}
|
|
@@ -16894,7 +16891,7 @@ class U_ extends ht {
|
|
|
16894
16891
|
}
|
|
16895
16892
|
toTextObject() {
|
|
16896
16893
|
const e = this.toTextObjectWithoutValue();
|
|
16897
|
-
return e.Policy = this.policies.map((n) => new
|
|
16894
|
+
return e.Policy = this.policies.map((n) => new ue("", {}, Un.toString(n))), e;
|
|
16898
16895
|
}
|
|
16899
16896
|
}
|
|
16900
16897
|
U_.NAME = "Certificate Policies";
|
|
@@ -16907,7 +16904,7 @@ class D_ extends ht {
|
|
|
16907
16904
|
else if (Array.isArray(e[0]) && typeof e[0][0] == "string") {
|
|
16908
16905
|
const i = e[0].map((a) => new li({
|
|
16909
16906
|
distributionPoint: new rr({
|
|
16910
|
-
fullName: [new
|
|
16907
|
+
fullName: [new te({ uniformResourceIdentifier: a })]
|
|
16911
16908
|
})
|
|
16912
16909
|
})), s = new Lr(i);
|
|
16913
16910
|
super(Kl, e[1], T.serialize(s));
|
|
@@ -16974,9 +16971,9 @@ function ps(t, e, n) {
|
|
|
16974
16971
|
if (n.length === 1)
|
|
16975
16972
|
t[e] = n[0].toTextObject();
|
|
16976
16973
|
else {
|
|
16977
|
-
const r = new
|
|
16974
|
+
const r = new ue("");
|
|
16978
16975
|
n.forEach((i, s) => {
|
|
16979
|
-
const a = i.toTextObject(), c = `${a[
|
|
16976
|
+
const a = i.toTextObject(), c = `${a[ue.NAME]} ${s + 1}`;
|
|
16980
16977
|
let l = r[c];
|
|
16981
16978
|
Array.isArray(l) || (l = [], r[c] = l), l.push(a);
|
|
16982
16979
|
}), t[e] = r;
|
|
@@ -16987,7 +16984,7 @@ function fs(t, e, n, r) {
|
|
|
16987
16984
|
i && (Array.isArray(i) ? i : [i]).forEach((a) => {
|
|
16988
16985
|
typeof a == "string" && (a = new Cn("url", a)), t.push(new Uo({
|
|
16989
16986
|
accessMethod: n,
|
|
16990
|
-
accessLocation: T.parse(a.rawData,
|
|
16987
|
+
accessLocation: T.parse(a.rawData, te)
|
|
16991
16988
|
}));
|
|
16992
16989
|
});
|
|
16993
16990
|
}
|
|
@@ -17024,11 +17021,11 @@ class mi extends Dn {
|
|
|
17024
17021
|
}
|
|
17025
17022
|
toTextObject() {
|
|
17026
17023
|
const e = this.toTextObjectWithoutValue();
|
|
17027
|
-
return e.Value = this.values.map((n) => new
|
|
17024
|
+
return e.Value = this.values.map((n) => new ue("", { "": n })), e;
|
|
17028
17025
|
}
|
|
17029
17026
|
toTextObjectWithoutValue() {
|
|
17030
17027
|
const e = this.toTextObjectEmpty();
|
|
17031
|
-
return e[
|
|
17028
|
+
return e[ue.NAME] === mi.NAME && (e[ue.NAME] = Un.toString(this.type)), e;
|
|
17032
17029
|
}
|
|
17033
17030
|
}
|
|
17034
17031
|
mi.NAME = "Attribute";
|
|
@@ -17053,7 +17050,7 @@ class q_ extends mi {
|
|
|
17053
17050
|
}
|
|
17054
17051
|
toTextObject() {
|
|
17055
17052
|
const e = this.toTextObjectWithoutValue();
|
|
17056
|
-
return e[
|
|
17053
|
+
return e[ue.VALUE] = this.password, e;
|
|
17057
17054
|
}
|
|
17058
17055
|
}
|
|
17059
17056
|
q_.NAME = "Challenge Password";
|
|
@@ -17079,7 +17076,7 @@ class op extends mi {
|
|
|
17079
17076
|
toTextObject() {
|
|
17080
17077
|
const e = this.toTextObjectWithoutValue(), n = this.items.map((r) => r.toTextObject());
|
|
17081
17078
|
for (const r of n)
|
|
17082
|
-
e[r[
|
|
17079
|
+
e[r[ue.NAME]] = r;
|
|
17083
17080
|
return e;
|
|
17084
17081
|
}
|
|
17085
17082
|
}
|
|
@@ -17310,37 +17307,37 @@ Ve.registerSingleton(Xo, Wd);
|
|
|
17310
17307
|
var ji, Ii, Oi, Pi, Ti, Ri, Bi, Er;
|
|
17311
17308
|
class g3 extends pn {
|
|
17312
17309
|
get subjectName() {
|
|
17313
|
-
return
|
|
17310
|
+
return ne(this, Ii, "f") || we(this, Ii, new At(this.asn.certificationRequestInfo.subject), "f"), ne(this, Ii, "f");
|
|
17314
17311
|
}
|
|
17315
17312
|
get subject() {
|
|
17316
|
-
return
|
|
17313
|
+
return ne(this, Oi, "f") || we(this, Oi, this.subjectName.toString(), "f"), ne(this, Oi, "f");
|
|
17317
17314
|
}
|
|
17318
17315
|
get signatureAlgorithm() {
|
|
17319
|
-
if (!
|
|
17316
|
+
if (!ne(this, Pi, "f")) {
|
|
17320
17317
|
const e = Ve.resolve(dr);
|
|
17321
17318
|
we(this, Pi, e.toWebAlgorithm(this.asn.signatureAlgorithm), "f");
|
|
17322
17319
|
}
|
|
17323
|
-
return
|
|
17320
|
+
return ne(this, Pi, "f");
|
|
17324
17321
|
}
|
|
17325
17322
|
get signature() {
|
|
17326
|
-
return
|
|
17323
|
+
return ne(this, Ti, "f") || we(this, Ti, this.asn.signature, "f"), ne(this, Ti, "f");
|
|
17327
17324
|
}
|
|
17328
17325
|
get publicKey() {
|
|
17329
|
-
return
|
|
17326
|
+
return ne(this, Ri, "f") || we(this, Ri, new Nt(this.asn.certificationRequestInfo.subjectPKInfo), "f"), ne(this, Ri, "f");
|
|
17330
17327
|
}
|
|
17331
17328
|
get attributes() {
|
|
17332
|
-
return
|
|
17329
|
+
return ne(this, Bi, "f") || we(this, Bi, this.asn.certificationRequestInfo.attributes.map((e) => yc.create(T.serialize(e))), "f"), ne(this, Bi, "f");
|
|
17333
17330
|
}
|
|
17334
17331
|
get extensions() {
|
|
17335
|
-
if (!
|
|
17332
|
+
if (!ne(this, Er, "f")) {
|
|
17336
17333
|
we(this, Er, [], "f");
|
|
17337
17334
|
const e = this.getAttribute(tp);
|
|
17338
17335
|
e instanceof op && we(this, Er, e.items, "f");
|
|
17339
17336
|
}
|
|
17340
|
-
return
|
|
17337
|
+
return ne(this, Er, "f");
|
|
17341
17338
|
}
|
|
17342
17339
|
get tbs() {
|
|
17343
|
-
return
|
|
17340
|
+
return ne(this, ji, "f") || we(this, ji, this.asn.certificationRequestInfoRaw || T.serialize(this.asn.certificationRequestInfo), "f"), ne(this, ji, "f");
|
|
17344
17341
|
}
|
|
17345
17342
|
constructor(e) {
|
|
17346
17343
|
const n = pn.isAsnEncoded(e) ? [e, yo] : [e];
|
|
@@ -17377,20 +17374,20 @@ class g3 extends pn {
|
|
|
17377
17374
|
return await e.subtle.verify(this.signatureAlgorithm, r, s, this.tbs);
|
|
17378
17375
|
}
|
|
17379
17376
|
toTextObject() {
|
|
17380
|
-
const e = this.toTextObjectEmpty(), n = T.parse(this.rawData, yo), r = n.certificationRequestInfo, i = new
|
|
17377
|
+
const e = this.toTextObjectEmpty(), n = T.parse(this.rawData, yo), r = n.certificationRequestInfo, i = new ue("", {
|
|
17381
17378
|
Version: `${ir[r.version]} (${r.version})`,
|
|
17382
17379
|
Subject: this.subject,
|
|
17383
17380
|
"Subject Public Key Info": this.publicKey
|
|
17384
17381
|
});
|
|
17385
17382
|
if (this.attributes.length) {
|
|
17386
|
-
const s = new
|
|
17383
|
+
const s = new ue("");
|
|
17387
17384
|
for (const a of this.attributes) {
|
|
17388
17385
|
const c = a.toTextObject();
|
|
17389
|
-
s[c[
|
|
17386
|
+
s[c[ue.NAME]] = c;
|
|
17390
17387
|
}
|
|
17391
17388
|
i.Attributes = s;
|
|
17392
17389
|
}
|
|
17393
|
-
return e.Data = i, e.Signature = new
|
|
17390
|
+
return e.Data = i, e.Signature = new ue("", {
|
|
17394
17391
|
Algorithm: ur.serializeAlgorithm(n.signatureAlgorithm),
|
|
17395
17392
|
"": n.signature
|
|
17396
17393
|
}), e;
|
|
@@ -17401,61 +17398,61 @@ g3.NAME = "PKCS#10 Certificate Request";
|
|
|
17401
17398
|
var Li, Ui, Di, Mi, zi, qi, Fi, Hi, Vi, Ki, Cr, Gi;
|
|
17402
17399
|
class wc extends pn {
|
|
17403
17400
|
get publicKey() {
|
|
17404
|
-
return
|
|
17401
|
+
return ne(this, Gi, "f") || we(this, Gi, new Nt(this.asn.tbsCertificate.subjectPublicKeyInfo), "f"), ne(this, Gi, "f");
|
|
17405
17402
|
}
|
|
17406
17403
|
get serialNumber() {
|
|
17407
|
-
if (!
|
|
17404
|
+
if (!ne(this, Ui, "f")) {
|
|
17408
17405
|
const e = this.asn.tbsCertificate;
|
|
17409
17406
|
let n = new Uint8Array(e.serialNumber);
|
|
17410
17407
|
n.length > 1 && n[0] === 0 && n[1] > 127 && (n = n.slice(1)), we(this, Ui, F.ToHex(n), "f");
|
|
17411
17408
|
}
|
|
17412
|
-
return
|
|
17409
|
+
return ne(this, Ui, "f");
|
|
17413
17410
|
}
|
|
17414
17411
|
get subjectName() {
|
|
17415
|
-
return
|
|
17412
|
+
return ne(this, Di, "f") || we(this, Di, new At(this.asn.tbsCertificate.subject), "f"), ne(this, Di, "f");
|
|
17416
17413
|
}
|
|
17417
17414
|
get subject() {
|
|
17418
|
-
return
|
|
17415
|
+
return ne(this, Mi, "f") || we(this, Mi, this.subjectName.toString(), "f"), ne(this, Mi, "f");
|
|
17419
17416
|
}
|
|
17420
17417
|
get issuerName() {
|
|
17421
|
-
return
|
|
17418
|
+
return ne(this, zi, "f") || we(this, zi, new At(this.asn.tbsCertificate.issuer), "f"), ne(this, zi, "f");
|
|
17422
17419
|
}
|
|
17423
17420
|
get issuer() {
|
|
17424
|
-
return
|
|
17421
|
+
return ne(this, qi, "f") || we(this, qi, this.issuerName.toString(), "f"), ne(this, qi, "f");
|
|
17425
17422
|
}
|
|
17426
17423
|
get notBefore() {
|
|
17427
|
-
if (!
|
|
17424
|
+
if (!ne(this, Fi, "f")) {
|
|
17428
17425
|
const e = this.asn.tbsCertificate.validity.notBefore.utcTime || this.asn.tbsCertificate.validity.notBefore.generalTime;
|
|
17429
17426
|
if (!e)
|
|
17430
17427
|
throw new Error("Cannot get 'notBefore' value");
|
|
17431
17428
|
we(this, Fi, e, "f");
|
|
17432
17429
|
}
|
|
17433
|
-
return
|
|
17430
|
+
return ne(this, Fi, "f");
|
|
17434
17431
|
}
|
|
17435
17432
|
get notAfter() {
|
|
17436
|
-
if (!
|
|
17433
|
+
if (!ne(this, Hi, "f")) {
|
|
17437
17434
|
const e = this.asn.tbsCertificate.validity.notAfter.utcTime || this.asn.tbsCertificate.validity.notAfter.generalTime;
|
|
17438
17435
|
if (!e)
|
|
17439
17436
|
throw new Error("Cannot get 'notAfter' value");
|
|
17440
17437
|
we(this, Hi, e, "f");
|
|
17441
17438
|
}
|
|
17442
|
-
return
|
|
17439
|
+
return ne(this, Hi, "f");
|
|
17443
17440
|
}
|
|
17444
17441
|
get signatureAlgorithm() {
|
|
17445
|
-
if (!
|
|
17442
|
+
if (!ne(this, Vi, "f")) {
|
|
17446
17443
|
const e = Ve.resolve(dr);
|
|
17447
17444
|
we(this, Vi, e.toWebAlgorithm(this.asn.signatureAlgorithm), "f");
|
|
17448
17445
|
}
|
|
17449
|
-
return
|
|
17446
|
+
return ne(this, Vi, "f");
|
|
17450
17447
|
}
|
|
17451
17448
|
get signature() {
|
|
17452
|
-
return
|
|
17449
|
+
return ne(this, Ki, "f") || we(this, Ki, this.asn.signatureValue, "f"), ne(this, Ki, "f");
|
|
17453
17450
|
}
|
|
17454
17451
|
get extensions() {
|
|
17455
|
-
return
|
|
17452
|
+
return ne(this, Cr, "f") || (we(this, Cr, [], "f"), this.asn.tbsCertificate.extensions && we(this, Cr, this.asn.tbsCertificate.extensions.map((e) => gt.create(T.serialize(e))), "f")), ne(this, Cr, "f");
|
|
17456
17453
|
}
|
|
17457
17454
|
get tbs() {
|
|
17458
|
-
return
|
|
17455
|
+
return ne(this, Li, "f") || we(this, Li, this.asn.tbsCertificateRaw || T.serialize(this.asn.tbsCertificate), "f"), ne(this, Li, "f");
|
|
17459
17456
|
}
|
|
17460
17457
|
constructor(e) {
|
|
17461
17458
|
const n = pn.isAsnEncoded(e) ? [e, or] : [e];
|
|
@@ -17516,12 +17513,12 @@ class wc extends pn {
|
|
|
17516
17513
|
return this.subject === this.issuer && await this.verify({ signatureOnly: !0 }, e);
|
|
17517
17514
|
}
|
|
17518
17515
|
toTextObject() {
|
|
17519
|
-
const e = this.toTextObjectEmpty(), n = T.parse(this.rawData, or), r = n.tbsCertificate, i = new
|
|
17516
|
+
const e = this.toTextObjectEmpty(), n = T.parse(this.rawData, or), r = n.tbsCertificate, i = new ue("", {
|
|
17520
17517
|
Version: `${ir[r.version]} (${r.version})`,
|
|
17521
17518
|
"Serial Number": r.serialNumber,
|
|
17522
17519
|
"Signature Algorithm": ur.serializeAlgorithm(r.signature),
|
|
17523
17520
|
Issuer: this.issuer,
|
|
17524
|
-
Validity: new
|
|
17521
|
+
Validity: new ue("", {
|
|
17525
17522
|
"Not Before": r.validity.notBefore.getTime(),
|
|
17526
17523
|
"Not After": r.validity.notAfter.getTime()
|
|
17527
17524
|
}),
|
|
@@ -17529,14 +17526,14 @@ class wc extends pn {
|
|
|
17529
17526
|
"Subject Public Key Info": this.publicKey
|
|
17530
17527
|
});
|
|
17531
17528
|
if (r.issuerUniqueID && (i["Issuer Unique ID"] = r.issuerUniqueID), r.subjectUniqueID && (i["Subject Unique ID"] = r.subjectUniqueID), this.extensions.length) {
|
|
17532
|
-
const s = new
|
|
17529
|
+
const s = new ue("");
|
|
17533
17530
|
for (const a of this.extensions) {
|
|
17534
17531
|
const c = a.toTextObject();
|
|
17535
|
-
s[c[
|
|
17532
|
+
s[c[ue.NAME]] = c;
|
|
17536
17533
|
}
|
|
17537
17534
|
i.Extensions = s;
|
|
17538
17535
|
}
|
|
17539
|
-
return e.Data = i, e.Signature = new
|
|
17536
|
+
return e.Data = i, e.Signature = new ue("", {
|
|
17540
17537
|
Algorithm: ur.serializeAlgorithm(n.signatureAlgorithm),
|
|
17541
17538
|
"": n.signatureValue
|
|
17542
17539
|
}), e;
|
|
@@ -20011,12 +20008,12 @@ function Sc(t, e) {
|
|
|
20011
20008
|
k[A] = j;
|
|
20012
20009
|
continue;
|
|
20013
20010
|
}
|
|
20014
|
-
const
|
|
20015
|
-
if (l.has(
|
|
20011
|
+
const P = `${g}:${A}`;
|
|
20012
|
+
if (l.has(P)) {
|
|
20016
20013
|
k[A] = j;
|
|
20017
20014
|
continue;
|
|
20018
20015
|
}
|
|
20019
|
-
const
|
|
20016
|
+
const C = i[P] ?? r, I = [
|
|
20020
20017
|
"create",
|
|
20021
20018
|
"update",
|
|
20022
20019
|
"remove",
|
|
@@ -20024,33 +20021,33 @@ function Sc(t, e) {
|
|
|
20024
20021
|
"set",
|
|
20025
20022
|
"used"
|
|
20026
20023
|
].includes(A);
|
|
20027
|
-
k[A] = async (...
|
|
20024
|
+
k[A] = async (...L) => {
|
|
20028
20025
|
if (I)
|
|
20029
|
-
return await j.apply(_,
|
|
20026
|
+
return await j.apply(_, L);
|
|
20030
20027
|
const J = k4(
|
|
20031
20028
|
g,
|
|
20032
20029
|
A,
|
|
20033
|
-
|
|
20030
|
+
L,
|
|
20034
20031
|
c
|
|
20035
|
-
),
|
|
20036
|
-
if (
|
|
20037
|
-
if (
|
|
20038
|
-
const
|
|
20039
|
-
return
|
|
20032
|
+
), ie = await n.get(J);
|
|
20033
|
+
if (ie !== null)
|
|
20034
|
+
if (ie && typeof ie == "object" && "isCachedNull" in ie) {
|
|
20035
|
+
const Q = ie;
|
|
20036
|
+
return Q.isCachedNull ? null : Q.value;
|
|
20040
20037
|
} else
|
|
20041
|
-
return
|
|
20042
|
-
const
|
|
20043
|
-
if (
|
|
20044
|
-
if (
|
|
20045
|
-
await n.set(J,
|
|
20038
|
+
return ie;
|
|
20039
|
+
const V = await j.apply(_, L);
|
|
20040
|
+
if (C >= 0)
|
|
20041
|
+
if (V !== null)
|
|
20042
|
+
await n.set(J, V, C);
|
|
20046
20043
|
else {
|
|
20047
|
-
const
|
|
20044
|
+
const Q = {
|
|
20048
20045
|
value: null,
|
|
20049
20046
|
isCachedNull: !0
|
|
20050
20047
|
};
|
|
20051
|
-
await n.set(J,
|
|
20048
|
+
await n.set(J, Q, C);
|
|
20052
20049
|
}
|
|
20053
|
-
return
|
|
20050
|
+
return V;
|
|
20054
20051
|
};
|
|
20055
20052
|
} else
|
|
20056
20053
|
k[A] = j;
|
|
@@ -21838,10 +21835,10 @@ const S4 = ut.extend({
|
|
|
21838
21835
|
if (g) {
|
|
21839
21836
|
const { sort_by: _, sort_order: w } = g;
|
|
21840
21837
|
f.sort((k, A) => {
|
|
21841
|
-
const j = k[_],
|
|
21842
|
-
if (j === void 0 ||
|
|
21843
|
-
const
|
|
21844
|
-
return w === "asc" ?
|
|
21838
|
+
const j = k[_], P = A[_];
|
|
21839
|
+
if (j === void 0 || P === void 0 || j === P) return 0;
|
|
21840
|
+
const C = j < P ? -1 : 1;
|
|
21841
|
+
return w === "asc" ? C : -C;
|
|
21845
21842
|
});
|
|
21846
21843
|
}
|
|
21847
21844
|
}
|
|
@@ -23821,7 +23818,7 @@ async function gg(t, e, n, r) {
|
|
|
23821
23818
|
if (!i) {
|
|
23822
23819
|
t.set("client_id", e.client_id);
|
|
23823
23820
|
const l = oe(t, {
|
|
23824
|
-
type:
|
|
23821
|
+
type: re.FAILED_LOGIN,
|
|
23825
23822
|
description: "Connection not found"
|
|
23826
23823
|
});
|
|
23827
23824
|
throw se(t, t.env.data.logs.create(e.tenant.id, l)), new D(403, { message: "Connection Not Found" });
|
|
@@ -23897,14 +23894,14 @@ async function mg(t, { code: e, state: n }) {
|
|
|
23897
23894
|
);
|
|
23898
23895
|
if (!c) {
|
|
23899
23896
|
const w = oe(t, {
|
|
23900
|
-
type:
|
|
23897
|
+
type: re.FAILED_LOGIN,
|
|
23901
23898
|
description: "Connection not found"
|
|
23902
23899
|
});
|
|
23903
23900
|
throw se(t, r.data.logs.create(a.tenant.id, w)), new D(403, { message: "Connection not found" });
|
|
23904
23901
|
}
|
|
23905
23902
|
if (t.set("connection", c.name), !s.authParams.redirect_uri) {
|
|
23906
23903
|
const w = oe(t, {
|
|
23907
|
-
type:
|
|
23904
|
+
type: re.FAILED_LOGIN,
|
|
23908
23905
|
description: "Redirect URI not defined"
|
|
23909
23906
|
});
|
|
23910
23907
|
throw se(t, r.data.logs.create(a.tenant.id, w)), new D(403, { message: "Redirect URI not defined" });
|
|
@@ -23957,7 +23954,7 @@ async function _g(t, e, n, r, i, s) {
|
|
|
23957
23954
|
if (!l)
|
|
23958
23955
|
throw new v(400, { message: "Redirect uri not found" });
|
|
23959
23956
|
const d = oe(t, {
|
|
23960
|
-
type:
|
|
23957
|
+
type: re.FAILED_LOGIN,
|
|
23961
23958
|
description: `Failed connection login: ${i} ${n}, ${r}`
|
|
23962
23959
|
});
|
|
23963
23960
|
se(t, t.env.data.logs.create(t.var.tenant_id, d));
|
|
@@ -24227,7 +24224,7 @@ const ek = new W().openapi(
|
|
|
24227
24224
|
}
|
|
24228
24225
|
}
|
|
24229
24226
|
const c = oe(t, {
|
|
24230
|
-
type:
|
|
24227
|
+
type: re.SUCCESS_LOGOUT,
|
|
24231
24228
|
description: "User successfully logged out"
|
|
24232
24229
|
});
|
|
24233
24230
|
return se(t, t.env.data.logs.create(r.tenant.id, c)), new Response("Redirecting", {
|
|
@@ -24464,20 +24461,20 @@ async function ok(t, e) {
|
|
|
24464
24461
|
);
|
|
24465
24462
|
if (!r || !r.user_id) {
|
|
24466
24463
|
const l = oe(t, {
|
|
24467
|
-
type:
|
|
24464
|
+
type: re.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN,
|
|
24468
24465
|
description: "Invalid client credentials"
|
|
24469
24466
|
});
|
|
24470
24467
|
throw se(t, t.env.data.logs.create(n.tenant.id, l)), new D(403, { message: "Invalid client credentials" });
|
|
24471
24468
|
} else if (new Date(r.expires_at) < /* @__PURE__ */ new Date()) {
|
|
24472
24469
|
const l = oe(t, {
|
|
24473
|
-
type:
|
|
24470
|
+
type: re.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN,
|
|
24474
24471
|
description: "Code expired",
|
|
24475
24472
|
userId: r.user_id
|
|
24476
24473
|
});
|
|
24477
24474
|
throw se(t, t.env.data.logs.create(n.tenant.id, l)), new D(403, { message: "Code expired" });
|
|
24478
24475
|
} else if (r.used_at) {
|
|
24479
24476
|
const l = oe(t, {
|
|
24480
|
-
type:
|
|
24477
|
+
type: re.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN,
|
|
24481
24478
|
description: "Invalid authorization code",
|
|
24482
24479
|
userId: r.user_id
|
|
24483
24480
|
});
|
|
@@ -24501,7 +24498,7 @@ async function ok(t, e) {
|
|
|
24501
24498
|
const l = await t.env.data.legacyClients.get("DEFAULT_CLIENT");
|
|
24502
24499
|
if (!oo(n.client_secret, e.client_secret) && !oo(l?.client_secret, e.client_secret)) {
|
|
24503
24500
|
const d = oe(t, {
|
|
24504
|
-
type:
|
|
24501
|
+
type: re.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN,
|
|
24505
24502
|
description: "Invalid client credentials",
|
|
24506
24503
|
userId: r.user_id
|
|
24507
24504
|
});
|
|
@@ -24516,7 +24513,7 @@ async function ok(t, e) {
|
|
|
24516
24513
|
);
|
|
24517
24514
|
if (!oo(l, r.code_challenge)) {
|
|
24518
24515
|
const d = oe(t, {
|
|
24519
|
-
type:
|
|
24516
|
+
type: re.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN,
|
|
24520
24517
|
description: "Invalid client credentials",
|
|
24521
24518
|
userId: r.user_id
|
|
24522
24519
|
});
|
|
@@ -24527,7 +24524,7 @@ async function ok(t, e) {
|
|
|
24527
24524
|
}
|
|
24528
24525
|
if (r.redirect_uri && r.redirect_uri !== e.redirect_uri) {
|
|
24529
24526
|
const l = oe(t, {
|
|
24530
|
-
type:
|
|
24527
|
+
type: re.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN,
|
|
24531
24528
|
description: "Invalid redirect uri",
|
|
24532
24529
|
userId: r.user_id
|
|
24533
24530
|
});
|
|
@@ -25457,8 +25454,8 @@ var Yk = ";ext=", kr = function(e) {
|
|
|
25457
25454
|
return "([".concat(Pt, "]{1,").concat(e, "})");
|
|
25458
25455
|
};
|
|
25459
25456
|
function Iy(t) {
|
|
25460
|
-
var e = "20", n = "15", r = "9", i = "6", s = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", c = "#?", l = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", d = "(?:[xx##~~]|int|int)", p = "[- ]+", f = "[ \\t]*", g = "(?:,{2}|;)", _ = Yk + kr(e), w = s + l + a + kr(e) + c, k = s + d + a + kr(r) + c, A = p + kr(i) + "#", j = f + g + a + kr(n) + c,
|
|
25461
|
-
return _ + "|" + w + "|" + k + "|" + A + "|" + j + "|" +
|
|
25457
|
+
var e = "20", n = "15", r = "9", i = "6", s = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", c = "#?", l = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", d = "(?:[xx##~~]|int|int)", p = "[- ]+", f = "[ \\t]*", g = "(?:,{2}|;)", _ = Yk + kr(e), w = s + l + a + kr(e) + c, k = s + d + a + kr(r) + c, A = p + kr(i) + "#", j = f + g + a + kr(n) + c, P = f + "(?:,)+" + a + kr(r) + c;
|
|
25458
|
+
return _ + "|" + w + "|" + k + "|" + A + "|" + j + "|" + P;
|
|
25462
25459
|
}
|
|
25463
25460
|
var Qk = "[" + Pt + "]{" + wp + "}", e5 = "[" + bp + "]{0,1}(?:[" + ya + "]*[" + Pt + "]){3,}[" + ya + Pt + "]*", t5 = new RegExp("^[" + bp + "]{0,1}(?:[" + ya + "]*[" + Pt + "]){1,2}$", "i"), n5 = e5 + // Phone number extensions
|
|
25464
25461
|
"(?:" + Iy() + ")?", r5 = new RegExp(
|
|
@@ -26427,15 +26424,15 @@ async function Ty(t, {
|
|
|
26427
26424
|
const { env: f } = t, g = await f.data.codes.get(p.tenant.id, r, "otp");
|
|
26428
26425
|
if (!g)
|
|
26429
26426
|
throw new D(400, {
|
|
26430
|
-
message:
|
|
26427
|
+
message: Z("code_invalid")
|
|
26431
26428
|
});
|
|
26432
26429
|
if (g.expires_at < (/* @__PURE__ */ new Date()).toISOString())
|
|
26433
26430
|
throw new D(400, {
|
|
26434
|
-
message:
|
|
26431
|
+
message: Z("code_expired")
|
|
26435
26432
|
});
|
|
26436
26433
|
if (g.used_at)
|
|
26437
26434
|
throw new D(400, {
|
|
26438
|
-
message:
|
|
26435
|
+
message: Z("code_used")
|
|
26439
26436
|
});
|
|
26440
26437
|
const _ = await f.data.loginSessions.get(
|
|
26441
26438
|
p.tenant.id,
|
|
@@ -26799,7 +26796,7 @@ async function By(t, e, n, r, i) {
|
|
|
26799
26796
|
};
|
|
26800
26797
|
await rs(t, {
|
|
26801
26798
|
to: e,
|
|
26802
|
-
subject:
|
|
26799
|
+
subject: Z("reset_password_title", p),
|
|
26803
26800
|
html: `Click here to reset your password: ${qe(t.env)}reset-password?state=${r}&code=${n}`,
|
|
26804
26801
|
template: "auth-password-reset",
|
|
26805
26802
|
data: {
|
|
@@ -26808,21 +26805,21 @@ async function By(t, e, n, r, i) {
|
|
|
26808
26805
|
passwordResetUrl: a,
|
|
26809
26806
|
supportUrl: s.support_url || "https://support.sesamy.com",
|
|
26810
26807
|
buttonColor: d,
|
|
26811
|
-
passwordResetTitle:
|
|
26812
|
-
resetPasswordEmailClickToReset:
|
|
26808
|
+
passwordResetTitle: Z("password_reset_title", p),
|
|
26809
|
+
resetPasswordEmailClickToReset: Z(
|
|
26813
26810
|
"reset_password_email_click_to_reset",
|
|
26814
26811
|
p
|
|
26815
26812
|
),
|
|
26816
|
-
resetPasswordEmailReset:
|
|
26817
|
-
supportInfo:
|
|
26818
|
-
contactUs:
|
|
26819
|
-
copyright:
|
|
26813
|
+
resetPasswordEmailReset: Z("reset_password_email_reset", p),
|
|
26814
|
+
supportInfo: Z("support_info", p),
|
|
26815
|
+
contactUs: Z("contact_us", p),
|
|
26816
|
+
copyright: Z("copyright", p),
|
|
26820
26817
|
tenantName: s.friendly_name,
|
|
26821
26818
|
tenantId: s.id
|
|
26822
26819
|
}
|
|
26823
26820
|
});
|
|
26824
26821
|
const f = oe(t, {
|
|
26825
|
-
type:
|
|
26822
|
+
type: re.SUCCESS_CHANGE_PASSWORD_REQUEST,
|
|
26826
26823
|
description: e
|
|
26827
26824
|
});
|
|
26828
26825
|
se(t, t.env.data.logs.create(s.id, f));
|
|
@@ -26840,7 +26837,7 @@ async function Sp(t, { to: e, code: n, language: r }) {
|
|
|
26840
26837
|
};
|
|
26841
26838
|
s === "email" ? await rs(t, {
|
|
26842
26839
|
to: e,
|
|
26843
|
-
subject:
|
|
26840
|
+
subject: Z("code_email_subject", p),
|
|
26844
26841
|
html: `Click here to validate your email: ${qe(t.env)}validate-email`,
|
|
26845
26842
|
template: "auth-code",
|
|
26846
26843
|
data: {
|
|
@@ -26849,23 +26846,23 @@ async function Sp(t, { to: e, code: n, language: r }) {
|
|
|
26849
26846
|
logo: c,
|
|
26850
26847
|
supportUrl: i.support_url || "",
|
|
26851
26848
|
buttonColor: l,
|
|
26852
|
-
welcomeToYourAccount:
|
|
26853
|
-
linkEmailClickToLogin:
|
|
26854
|
-
linkEmailLogin:
|
|
26855
|
-
linkEmailOrEnterCode:
|
|
26856
|
-
codeValid30Mins:
|
|
26857
|
-
supportInfo:
|
|
26858
|
-
contactUs:
|
|
26859
|
-
copyright:
|
|
26849
|
+
welcomeToYourAccount: Z("welcome_to_your_account", p),
|
|
26850
|
+
linkEmailClickToLogin: Z("link_email_click_to_login", p),
|
|
26851
|
+
linkEmailLogin: Z("link_email_login", p),
|
|
26852
|
+
linkEmailOrEnterCode: Z("link_email_or_enter_code", p),
|
|
26853
|
+
codeValid30Mins: Z("code_valid_30_minutes", p),
|
|
26854
|
+
supportInfo: Z("support_info", p),
|
|
26855
|
+
contactUs: Z("contact_us", p),
|
|
26856
|
+
copyright: Z("copyright", p)
|
|
26860
26857
|
}
|
|
26861
26858
|
}) : s === "sms" && await Ry(t, {
|
|
26862
26859
|
to: e,
|
|
26863
|
-
text:
|
|
26860
|
+
text: Z("sms_code_text", p),
|
|
26864
26861
|
code: n,
|
|
26865
26862
|
from: i.friendly_name
|
|
26866
26863
|
});
|
|
26867
26864
|
const f = oe(t, {
|
|
26868
|
-
type:
|
|
26865
|
+
type: re.CODE_LINK_SENT,
|
|
26869
26866
|
description: e
|
|
26870
26867
|
});
|
|
26871
26868
|
se(t, t.env.data.logs.create(i.id, f));
|
|
@@ -26889,7 +26886,7 @@ async function Ap(t, { to: e, code: n, authParams: r, language: i }) {
|
|
|
26889
26886
|
if (a === "email")
|
|
26890
26887
|
await rs(t, {
|
|
26891
26888
|
to: e,
|
|
26892
|
-
subject:
|
|
26889
|
+
subject: Z("code_email_subject", f),
|
|
26893
26890
|
html: `Click here to validate your email: ${qe(t.env)}validate-email`,
|
|
26894
26891
|
template: "auth-link",
|
|
26895
26892
|
data: {
|
|
@@ -26899,20 +26896,20 @@ async function Ap(t, { to: e, code: n, authParams: r, language: i }) {
|
|
|
26899
26896
|
supportUrl: s.support_url || "",
|
|
26900
26897
|
magicLink: p.toString(),
|
|
26901
26898
|
buttonColor: d,
|
|
26902
|
-
welcomeToYourAccount:
|
|
26903
|
-
linkEmailClickToLogin:
|
|
26904
|
-
linkEmailLogin:
|
|
26905
|
-
linkEmailOrEnterCode:
|
|
26906
|
-
codeValid30Mins:
|
|
26907
|
-
supportInfo:
|
|
26908
|
-
contactUs:
|
|
26909
|
-
copyright:
|
|
26899
|
+
welcomeToYourAccount: Z("welcome_to_your_account", f),
|
|
26900
|
+
linkEmailClickToLogin: Z("link_email_click_to_login", f),
|
|
26901
|
+
linkEmailLogin: Z("link_email_login", f),
|
|
26902
|
+
linkEmailOrEnterCode: Z("link_email_or_enter_code", f),
|
|
26903
|
+
codeValid30Mins: Z("code_valid_30_minutes", f),
|
|
26904
|
+
supportInfo: Z("support_info", f),
|
|
26905
|
+
contactUs: Z("contact_us", f),
|
|
26906
|
+
copyright: Z("copyright", f)
|
|
26910
26907
|
}
|
|
26911
26908
|
});
|
|
26912
26909
|
else if (a === "sms")
|
|
26913
26910
|
await Ry(t, {
|
|
26914
26911
|
to: e,
|
|
26915
|
-
text: `${
|
|
26912
|
+
text: `${Z("link_sms_login", f)}: ${p.toString()}`,
|
|
26916
26913
|
code: n,
|
|
26917
26914
|
from: s.friendly_name
|
|
26918
26915
|
});
|
|
@@ -26921,7 +26918,7 @@ async function Ap(t, { to: e, code: n, authParams: r, language: i }) {
|
|
|
26921
26918
|
message: "Only email and SMS connections are supported for magic links"
|
|
26922
26919
|
});
|
|
26923
26920
|
const g = oe(t, {
|
|
26924
|
-
type:
|
|
26921
|
+
type: re.CODE_LINK_SENT,
|
|
26925
26922
|
description: e
|
|
26926
26923
|
});
|
|
26927
26924
|
se(t, t.env.data.logs.create(s.id, g));
|
|
@@ -26938,7 +26935,7 @@ async function Ep(t, e, n) {
|
|
|
26938
26935
|
};
|
|
26939
26936
|
await rs(t, {
|
|
26940
26937
|
to: e.email,
|
|
26941
|
-
subject:
|
|
26938
|
+
subject: Z("welcome_to_your_account", c),
|
|
26942
26939
|
html: `Click here to validate your email: ${qe(t.env)}validate-email`,
|
|
26943
26940
|
template: "auth-verify-email",
|
|
26944
26941
|
data: {
|
|
@@ -26947,11 +26944,11 @@ async function Ep(t, e, n) {
|
|
|
26947
26944
|
emailValidationUrl: `${qe(t.env)}validate-email`,
|
|
26948
26945
|
supportUrl: r.support_url || "https://support.sesamy.com",
|
|
26949
26946
|
buttonColor: a,
|
|
26950
|
-
welcomeToYourAccount:
|
|
26951
|
-
verifyEmailVerify:
|
|
26952
|
-
supportInfo:
|
|
26953
|
-
contactUs:
|
|
26954
|
-
copyright:
|
|
26947
|
+
welcomeToYourAccount: Z("welcome_to_your_account", c),
|
|
26948
|
+
verifyEmailVerify: Z("verify_email_verify", c),
|
|
26949
|
+
supportInfo: Z("support_info", c),
|
|
26950
|
+
contactUs: Z("contact_us", c),
|
|
26951
|
+
copyright: Z("copyright", c)
|
|
26955
26952
|
}
|
|
26956
26953
|
});
|
|
26957
26954
|
}
|
|
@@ -26965,23 +26962,23 @@ async function I6(t, e, n, r, i) {
|
|
|
26965
26962
|
}, p = `${qe(t.env)}signup?state=${r}&code=${n}`;
|
|
26966
26963
|
await rs(t, {
|
|
26967
26964
|
to: e,
|
|
26968
|
-
subject:
|
|
26965
|
+
subject: Z("register_password_account", d),
|
|
26969
26966
|
html: `Click here to register: ${p}`,
|
|
26970
26967
|
template: "auth-pre-signup-verification",
|
|
26971
26968
|
data: {
|
|
26972
26969
|
vendorName: s.friendly_name,
|
|
26973
26970
|
logo: c,
|
|
26974
26971
|
signupUrl: p,
|
|
26975
|
-
setPassword:
|
|
26976
|
-
registerPasswordAccount:
|
|
26977
|
-
clickToSignUpDescription:
|
|
26972
|
+
setPassword: Z("set_password", d),
|
|
26973
|
+
registerPasswordAccount: Z("register_password_account", d),
|
|
26974
|
+
clickToSignUpDescription: Z("click_to_sign_up_description", d),
|
|
26978
26975
|
supportUrl: s.support_url || "https://support.sesamy.com",
|
|
26979
26976
|
buttonColor: l,
|
|
26980
|
-
welcomeToYourAccount:
|
|
26981
|
-
verifyEmailVerify:
|
|
26982
|
-
supportInfo:
|
|
26983
|
-
contactUs:
|
|
26984
|
-
copyright:
|
|
26977
|
+
welcomeToYourAccount: Z("welcome_to_your_account", d),
|
|
26978
|
+
verifyEmailVerify: Z("verify_email_verify", d),
|
|
26979
|
+
supportInfo: Z("support_info", d),
|
|
26980
|
+
contactUs: Z("contact_us", d),
|
|
26981
|
+
copyright: Z("copyright", d)
|
|
26985
26982
|
}
|
|
26986
26983
|
});
|
|
26987
26984
|
}
|
|
@@ -27054,7 +27051,7 @@ const O6 = new W().openapi(
|
|
|
27054
27051
|
algorithm: "bcrypt"
|
|
27055
27052
|
}), await Ep(t, a);
|
|
27056
27053
|
const l = oe(t, {
|
|
27057
|
-
type:
|
|
27054
|
+
type: re.SUCCESS_SIGNUP,
|
|
27058
27055
|
description: "Successful signup"
|
|
27059
27056
|
});
|
|
27060
27057
|
return se(t, t.env.data.logs.create(i.tenant.id, l)), t.json({
|
|
@@ -27283,22 +27280,22 @@ const P6 = new W().openapi(
|
|
|
27283
27280
|
};
|
|
27284
27281
|
let _ = "Something went wrong. Please try again later.";
|
|
27285
27282
|
try {
|
|
27286
|
-
const
|
|
27283
|
+
const C = await kp(t, {
|
|
27287
27284
|
client_id: n,
|
|
27288
27285
|
username: r,
|
|
27289
27286
|
otp: i,
|
|
27290
27287
|
authParams: g,
|
|
27291
27288
|
enforceIpCheck: !0
|
|
27292
27289
|
});
|
|
27293
|
-
if (
|
|
27294
|
-
return
|
|
27295
|
-
if (
|
|
27296
|
-
return t.json(
|
|
27297
|
-
} catch (
|
|
27298
|
-
const I =
|
|
27290
|
+
if (C instanceof Response)
|
|
27291
|
+
return C;
|
|
27292
|
+
if (C && typeof C == "object" && "access_token" in C)
|
|
27293
|
+
return t.json(C);
|
|
27294
|
+
} catch (C) {
|
|
27295
|
+
const I = C;
|
|
27299
27296
|
"message" in I && typeof I.message == "string" && (_ = I.message);
|
|
27300
27297
|
}
|
|
27301
|
-
const w = t.get("ip"), k = t.get("useragent"), A = t.get("auth0_client"), j = fn(A),
|
|
27298
|
+
const w = t.get("ip"), k = t.get("useragent"), A = t.get("auth0_client"), j = fn(A), P = await e.data.loginSessions.create(
|
|
27302
27299
|
f.tenant.id,
|
|
27303
27300
|
{
|
|
27304
27301
|
authParams: {
|
|
@@ -27313,7 +27310,7 @@ const P6 = new W().openapi(
|
|
|
27313
27310
|
}
|
|
27314
27311
|
);
|
|
27315
27312
|
return t.redirect(
|
|
27316
|
-
`${qe(t.env)}invalid-session?state=${
|
|
27313
|
+
`${qe(t.env)}invalid-session?state=${P.id}&error=${encodeURIComponent(_)}`,
|
|
27317
27314
|
302
|
|
27318
27315
|
);
|
|
27319
27316
|
}
|
|
@@ -27339,7 +27336,7 @@ async function Ly(t, e, n, r) {
|
|
|
27339
27336
|
});
|
|
27340
27337
|
if (!a) {
|
|
27341
27338
|
const g = oe(t, {
|
|
27342
|
-
type:
|
|
27339
|
+
type: re.FAILED_LOGIN_INCORRECT_PASSWORD,
|
|
27343
27340
|
description: "Invalid user"
|
|
27344
27341
|
});
|
|
27345
27342
|
throw se(t, i.logs.create(e.tenant.id, g)), new Nr(403, {
|
|
@@ -27357,7 +27354,7 @@ async function Ly(t, e, n, r) {
|
|
|
27357
27354
|
const l = await i.passwords.get(e.tenant.id, a.user_id);
|
|
27358
27355
|
if (!(l && await zr.compare(n.password, l.password))) {
|
|
27359
27356
|
const g = oe(t, {
|
|
27360
|
-
type:
|
|
27357
|
+
type: re.FAILED_LOGIN_INCORRECT_PASSWORD,
|
|
27361
27358
|
description: "Invalid password"
|
|
27362
27359
|
});
|
|
27363
27360
|
throw se(t, i.logs.create(e.tenant.id, g)), new Nr(403, {
|
|
@@ -27371,11 +27368,11 @@ async function Ly(t, e, n, r) {
|
|
|
27371
27368
|
include_totals: !1,
|
|
27372
27369
|
q: `user_id:${c.user_id}`
|
|
27373
27370
|
})).logs.filter(
|
|
27374
|
-
(g) => g.type ===
|
|
27371
|
+
(g) => g.type === re.FAILED_LOGIN_INCORRECT_PASSWORD && new Date(g.date) > new Date(Date.now() - 1e3 * 60 * 5)
|
|
27375
27372
|
).length >= 3) {
|
|
27376
27373
|
const g = oe(t, {
|
|
27377
27374
|
// TODO: change to BLOCKED_ACCOUNT_EMAIL
|
|
27378
|
-
type:
|
|
27375
|
+
type: re.FAILED_LOGIN,
|
|
27379
27376
|
description: "Too many failed login attempts"
|
|
27380
27377
|
});
|
|
27381
27378
|
throw se(t, i.logs.create(e.tenant.id, g)), new Nr(403, {
|
|
@@ -27387,7 +27384,7 @@ async function Ly(t, e, n, r) {
|
|
|
27387
27384
|
const g = r?.authParams?.ui_locales?.split(" ")?.map((w) => w.split("-")[0])[0];
|
|
27388
27385
|
await Ep(t, a, g);
|
|
27389
27386
|
const _ = oe(t, {
|
|
27390
|
-
type:
|
|
27387
|
+
type: re.FAILED_LOGIN,
|
|
27391
27388
|
description: "Email not verified"
|
|
27392
27389
|
});
|
|
27393
27390
|
throw se(t, i.logs.create(e.tenant.id, _)), new Nr(403, {
|
|
@@ -27701,17 +27698,17 @@ async function D6({
|
|
|
27701
27698
|
organization: f
|
|
27702
27699
|
}) {
|
|
27703
27700
|
const { env: g } = t, _ = new URL(r), w = `${_.protocol}//${_.host}`;
|
|
27704
|
-
async function k(
|
|
27705
|
-
const
|
|
27706
|
-
type:
|
|
27707
|
-
description:
|
|
27701
|
+
async function k(V = "Login required") {
|
|
27702
|
+
const Q = oe(t, {
|
|
27703
|
+
type: re.FAILED_SILENT_AUTH,
|
|
27704
|
+
description: V
|
|
27708
27705
|
});
|
|
27709
|
-
return se(t, t.env.data.logs.create(e.tenant.id,
|
|
27706
|
+
return se(t, t.env.data.logs.create(e.tenant.id, Q)), t.html(
|
|
27710
27707
|
Il(
|
|
27711
27708
|
w,
|
|
27712
27709
|
JSON.stringify({
|
|
27713
27710
|
error: "login_required",
|
|
27714
|
-
error_description:
|
|
27711
|
+
error_description: V,
|
|
27715
27712
|
state: i
|
|
27716
27713
|
})
|
|
27717
27714
|
)
|
|
@@ -27724,7 +27721,7 @@ async function D6({
|
|
|
27724
27721
|
if (!j)
|
|
27725
27722
|
return console.error("User not found", n.user_id), k("User not found");
|
|
27726
27723
|
t.set("username", j.email), t.set("connection", j.connection);
|
|
27727
|
-
const
|
|
27724
|
+
const P = await g.data.loginSessions.create(e.tenant.id, {
|
|
27728
27725
|
csrf_token: me(),
|
|
27729
27726
|
authParams: {
|
|
27730
27727
|
client_id: e.client_id,
|
|
@@ -27741,7 +27738,7 @@ async function D6({
|
|
|
27741
27738
|
session_id: n.id,
|
|
27742
27739
|
ip: t.var.ip,
|
|
27743
27740
|
useragent: t.var.useragent
|
|
27744
|
-
}),
|
|
27741
|
+
}), C = {
|
|
27745
27742
|
client: e,
|
|
27746
27743
|
authParams: {
|
|
27747
27744
|
client_id: e.client_id,
|
|
@@ -27759,13 +27756,13 @@ async function D6({
|
|
|
27759
27756
|
}, I = p === Et.CODE ? await J0(t, {
|
|
27760
27757
|
user: j,
|
|
27761
27758
|
client: e,
|
|
27762
|
-
authParams:
|
|
27763
|
-
login_id:
|
|
27764
|
-
}) : await Aa(t,
|
|
27759
|
+
authParams: C.authParams,
|
|
27760
|
+
login_id: P.id
|
|
27761
|
+
}) : await Aa(t, C);
|
|
27765
27762
|
await g.data.sessions.update(e.tenant.id, n.id, {
|
|
27766
27763
|
used_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
27767
27764
|
last_interaction_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
27768
|
-
login_session_id:
|
|
27765
|
+
login_session_id: P.id,
|
|
27769
27766
|
device: {
|
|
27770
27767
|
...n.device,
|
|
27771
27768
|
last_ip: t.var.ip || "",
|
|
@@ -27775,19 +27772,19 @@ async function D6({
|
|
|
27775
27772
|
Date.now() + Sa * 1e3
|
|
27776
27773
|
).toISOString() : void 0
|
|
27777
27774
|
});
|
|
27778
|
-
const
|
|
27779
|
-
type:
|
|
27775
|
+
const L = oe(t, {
|
|
27776
|
+
type: re.SUCCESS_SILENT_AUTH,
|
|
27780
27777
|
description: "Successful silent authentication"
|
|
27781
27778
|
});
|
|
27782
|
-
se(t, t.env.data.logs.create(e.tenant.id,
|
|
27779
|
+
se(t, t.env.data.logs.create(e.tenant.id, L));
|
|
27783
27780
|
const J = new Headers();
|
|
27784
27781
|
J.set("Server-Timing", "cf-nel=0; no-cloudflare-insights=1");
|
|
27785
|
-
const
|
|
27782
|
+
const ie = Os(
|
|
27786
27783
|
e.tenant.id,
|
|
27787
27784
|
n.id,
|
|
27788
27785
|
t.req.header("host")
|
|
27789
27786
|
);
|
|
27790
|
-
return J.set("set-cookie",
|
|
27787
|
+
return J.set("set-cookie", ie), t.html(
|
|
27791
27788
|
Il(
|
|
27792
27789
|
w,
|
|
27793
27790
|
JSON.stringify({
|
|
@@ -27891,13 +27888,13 @@ const M6 = ["email", "sms", "Username-Password-Authentication"], z6 = new W().op
|
|
|
27891
27888
|
login_ticket: k,
|
|
27892
27889
|
realm: A,
|
|
27893
27890
|
auth0Client: j,
|
|
27894
|
-
login_hint:
|
|
27895
|
-
ui_locales:
|
|
27891
|
+
login_hint: P,
|
|
27892
|
+
ui_locales: C,
|
|
27896
27893
|
organization: I
|
|
27897
27894
|
} = t.req.valid("query");
|
|
27898
27895
|
t.set("log", "authorize");
|
|
27899
|
-
const
|
|
27900
|
-
t.set("client_id",
|
|
27896
|
+
const L = await yi(e, n);
|
|
27897
|
+
t.set("client_id", L.client_id), t.set("tenant_id", L.tenant.id);
|
|
27901
27898
|
const J = {
|
|
27902
27899
|
redirect_uri: i.split("#")[0],
|
|
27903
27900
|
// Remove fragment if present
|
|
@@ -27912,16 +27909,16 @@ const M6 = ["email", "sms", "Username-Password-Authentication"], z6 = new W().op
|
|
|
27912
27909
|
response_mode: f,
|
|
27913
27910
|
code_challenge: g,
|
|
27914
27911
|
code_challenge_method: _,
|
|
27915
|
-
username:
|
|
27916
|
-
ui_locales:
|
|
27912
|
+
username: P,
|
|
27913
|
+
ui_locales: C,
|
|
27917
27914
|
organization: I
|
|
27918
|
-
},
|
|
27919
|
-
if (
|
|
27915
|
+
}, ie = t.req.header("origin");
|
|
27916
|
+
if (ie && !Dy(ie, L.web_origins || []))
|
|
27920
27917
|
throw new v(403, {
|
|
27921
|
-
message: `Origin ${
|
|
27918
|
+
message: `Origin ${ie} not allowed`
|
|
27922
27919
|
});
|
|
27923
27920
|
if (J.redirect_uri) {
|
|
27924
|
-
const he =
|
|
27921
|
+
const he = L.callbacks || [];
|
|
27925
27922
|
if (t.var.host && (he.push(`${$c(t.env)}/*`), he.push(`${qe(t.env)}/*`)), !gp(J.redirect_uri, he, {
|
|
27926
27923
|
allowPathWildcards: !0,
|
|
27927
27924
|
allowSubDomainWildcards: !0
|
|
@@ -27930,10 +27927,10 @@ const M6 = ["email", "sms", "Username-Password-Authentication"], z6 = new W().op
|
|
|
27930
27927
|
message: `Invalid redirect URI - ${J.redirect_uri}`
|
|
27931
27928
|
});
|
|
27932
27929
|
}
|
|
27933
|
-
const
|
|
27934
|
-
|
|
27930
|
+
const V = qr(
|
|
27931
|
+
L.tenant.id,
|
|
27935
27932
|
t.req.header("cookie")
|
|
27936
|
-
),
|
|
27933
|
+
), Q = V ? await e.data.sessions.get(L.tenant.id, V) : void 0, ae = Q && !Q.revoked_at ? Q : void 0;
|
|
27937
27934
|
if (w == "none") {
|
|
27938
27935
|
if (!p)
|
|
27939
27936
|
throw new v(400, {
|
|
@@ -27941,11 +27938,11 @@ const M6 = ["email", "sms", "Username-Password-Authentication"], z6 = new W().op
|
|
|
27941
27938
|
});
|
|
27942
27939
|
return D6({
|
|
27943
27940
|
ctx: t,
|
|
27944
|
-
session:
|
|
27941
|
+
session: ae || void 0,
|
|
27945
27942
|
redirect_uri: i,
|
|
27946
27943
|
state: a,
|
|
27947
27944
|
response_type: p,
|
|
27948
|
-
client:
|
|
27945
|
+
client: L,
|
|
27949
27946
|
nonce: l,
|
|
27950
27947
|
code_challenge_method: _,
|
|
27951
27948
|
code_challenge: g,
|
|
@@ -27954,19 +27951,19 @@ const M6 = ["email", "sms", "Username-Password-Authentication"], z6 = new W().op
|
|
|
27954
27951
|
organization: I
|
|
27955
27952
|
});
|
|
27956
27953
|
}
|
|
27957
|
-
if (
|
|
27954
|
+
if (L.connections.length === 1 && L.connections[0] && !M6.includes(L.connections[0].strategy || ""))
|
|
27958
27955
|
return gg(
|
|
27959
27956
|
t,
|
|
27960
|
-
|
|
27961
|
-
|
|
27957
|
+
L,
|
|
27958
|
+
L.connections[0].name,
|
|
27962
27959
|
J
|
|
27963
27960
|
);
|
|
27964
27961
|
if (d && d !== "email")
|
|
27965
|
-
return gg(t,
|
|
27962
|
+
return gg(t, L, d, J);
|
|
27966
27963
|
if (k) {
|
|
27967
27964
|
const he = await U6(
|
|
27968
27965
|
t,
|
|
27969
|
-
|
|
27966
|
+
L.tenant.id,
|
|
27970
27967
|
k,
|
|
27971
27968
|
J,
|
|
27972
27969
|
A
|
|
@@ -27975,11 +27972,11 @@ const M6 = ["email", "sms", "Username-Password-Authentication"], z6 = new W().op
|
|
|
27975
27972
|
}
|
|
27976
27973
|
const fe = await B6({
|
|
27977
27974
|
ctx: t,
|
|
27978
|
-
client:
|
|
27975
|
+
client: L,
|
|
27979
27976
|
authParams: J,
|
|
27980
|
-
session:
|
|
27977
|
+
session: ae || void 0,
|
|
27981
27978
|
connection: d,
|
|
27982
|
-
login_hint:
|
|
27979
|
+
login_hint: P
|
|
27983
27980
|
});
|
|
27984
27981
|
return fe instanceof Response ? fe : t.json(fe);
|
|
27985
27982
|
}
|
|
@@ -28035,8 +28032,8 @@ const M6 = ["email", "sms", "Username-Password-Authentication"], z6 = new W().op
|
|
|
28035
28032
|
message: `Origin ${l} not allowed`
|
|
28036
28033
|
});
|
|
28037
28034
|
if (c.redirect_uri) {
|
|
28038
|
-
const
|
|
28039
|
-
if (t.var.host && (
|
|
28035
|
+
const P = a.callbacks || [];
|
|
28036
|
+
if (t.var.host && (P.push(`${$c(t.env)}/*`), P.push(`${qe(t.env)}/*`)), !gp(c.redirect_uri, P, {
|
|
28040
28037
|
allowPathWildcards: !0,
|
|
28041
28038
|
allowSubDomainWildcards: !0
|
|
28042
28039
|
}))
|
|
@@ -28074,14 +28071,14 @@ const M6 = ["email", "sms", "Username-Password-Authentication"], z6 = new W().op
|
|
|
28074
28071
|
if (await e.data.loginSessions.update(a.tenant.id, j.id, {
|
|
28075
28072
|
session_id: f.id
|
|
28076
28073
|
}), s === "change-email") {
|
|
28077
|
-
const
|
|
28074
|
+
const C = new URL(
|
|
28078
28075
|
"/u/account/change-email",
|
|
28079
28076
|
t.req.url
|
|
28080
28077
|
);
|
|
28081
|
-
return
|
|
28078
|
+
return C.searchParams.set("state", j.id), t.redirect(C.toString());
|
|
28082
28079
|
}
|
|
28083
|
-
const
|
|
28084
|
-
return
|
|
28080
|
+
const P = new URL("/u/account", t.req.url);
|
|
28081
|
+
return P.searchParams.set("state", j.id), t.redirect(P.toString());
|
|
28085
28082
|
}
|
|
28086
28083
|
return t.redirect(
|
|
28087
28084
|
`${qe(t.env)}login/identifier?state=${encodeURIComponent(j.id)}`
|
|
@@ -28267,14 +28264,14 @@ function V6() {
|
|
|
28267
28264
|
})(sl)), sl.exports;
|
|
28268
28265
|
}
|
|
28269
28266
|
var K6 = V6();
|
|
28270
|
-
const
|
|
28267
|
+
const ee = /* @__PURE__ */ vv(K6), bn = ({
|
|
28271
28268
|
children: t,
|
|
28272
28269
|
className: e,
|
|
28273
28270
|
style: n
|
|
28274
28271
|
}) => /* @__PURE__ */ u(
|
|
28275
28272
|
"div",
|
|
28276
28273
|
{
|
|
28277
|
-
className:
|
|
28274
|
+
className: ee(
|
|
28278
28275
|
"rounded-lg border border-gray-200 bg-white shadow-sm dark:border-gray-700 dark:bg-gray-800",
|
|
28279
28276
|
e
|
|
28280
28277
|
),
|
|
@@ -28284,14 +28281,14 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
28284
28281
|
), vn = ({
|
|
28285
28282
|
children: t,
|
|
28286
28283
|
className: e
|
|
28287
|
-
}) => /* @__PURE__ */ u("div", { className:
|
|
28284
|
+
}) => /* @__PURE__ */ u("div", { className: ee("flex flex-col space-y-1.5 p-6", e), children: t }), $n = ({
|
|
28288
28285
|
children: t,
|
|
28289
28286
|
className: e,
|
|
28290
28287
|
style: n
|
|
28291
28288
|
}) => /* @__PURE__ */ u(
|
|
28292
28289
|
"h3",
|
|
28293
28290
|
{
|
|
28294
|
-
className:
|
|
28291
|
+
className: ee(
|
|
28295
28292
|
"text-2xl font-semibold leading-none tracking-tight",
|
|
28296
28293
|
e
|
|
28297
28294
|
),
|
|
@@ -28305,17 +28302,17 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
28305
28302
|
}) => /* @__PURE__ */ u(
|
|
28306
28303
|
"p",
|
|
28307
28304
|
{
|
|
28308
|
-
className:
|
|
28305
|
+
className: ee("text-sm text-gray-500 dark:text-gray-400", e),
|
|
28309
28306
|
style: n,
|
|
28310
28307
|
children: t
|
|
28311
28308
|
}
|
|
28312
28309
|
), xn = ({
|
|
28313
28310
|
children: t,
|
|
28314
28311
|
className: e
|
|
28315
|
-
}) => /* @__PURE__ */ u("div", { className:
|
|
28312
|
+
}) => /* @__PURE__ */ u("div", { className: ee("p-6 pt-0", e), children: t }), G6 = ({
|
|
28316
28313
|
children: t,
|
|
28317
28314
|
className: e
|
|
28318
|
-
}) => /* @__PURE__ */ u("div", { className:
|
|
28315
|
+
}) => /* @__PURE__ */ u("div", { className: ee("flex items-center p-6 pt-0", e), children: t }), Vt = ({
|
|
28319
28316
|
id: t,
|
|
28320
28317
|
type: e = "text",
|
|
28321
28318
|
name: n,
|
|
@@ -28336,7 +28333,7 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
28336
28333
|
required: s,
|
|
28337
28334
|
value: a,
|
|
28338
28335
|
disabled: c,
|
|
28339
|
-
className:
|
|
28336
|
+
className: ee(
|
|
28340
28337
|
"flex h-10 w-full rounded-md border border-gray-300 bg-white px-3 py-2 text-sm ring-offset-white transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-gray-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-600 dark:bg-gray-800 dark:ring-offset-gray-900 dark:placeholder:text-gray-400",
|
|
28341
28338
|
l && "border-red-500 focus-visible:ring-red-500",
|
|
28342
28339
|
i
|
|
@@ -28366,7 +28363,7 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
28366
28363
|
{
|
|
28367
28364
|
type: i,
|
|
28368
28365
|
disabled: s,
|
|
28369
|
-
className:
|
|
28366
|
+
className: ee(
|
|
28370
28367
|
"inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 disabled:pointer-events-none disabled:opacity-50",
|
|
28371
28368
|
c[n],
|
|
28372
28369
|
l[r],
|
|
@@ -28385,14 +28382,14 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
28385
28382
|
"label",
|
|
28386
28383
|
{
|
|
28387
28384
|
for: t,
|
|
28388
|
-
className:
|
|
28385
|
+
className: ee(
|
|
28389
28386
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
28390
28387
|
e
|
|
28391
28388
|
),
|
|
28392
28389
|
style: n,
|
|
28393
28390
|
children: r
|
|
28394
28391
|
}
|
|
28395
|
-
), Ke = ({ children: t, className: e }) => /* @__PURE__ */ u("div", { className:
|
|
28392
|
+
), Ke = ({ children: t, className: e }) => /* @__PURE__ */ u("div", { className: ee("mb-2 text-sm text-red", e), children: t }), Zt = ({ theme: t, branding: e }) => {
|
|
28396
28393
|
const n = t?.widget?.logo_url || e?.logo_url;
|
|
28397
28394
|
return n ? /* @__PURE__ */ u("div", { className: "inline-flex h-9 items-center", children: /* @__PURE__ */ u("img", { src: n, className: "h-full w-auto", alt: "Logo" }) }) : /* @__PURE__ */ u(Ec, {});
|
|
28398
28395
|
}, al = ({
|
|
@@ -28410,14 +28407,14 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
28410
28407
|
}).filter((ve) => ve !== null), f = l && d ? "email_or_phone_placeholder" : l ? "email_placeholder" : "phone_placeholder", g = y.t(
|
|
28411
28408
|
f,
|
|
28412
28409
|
l && d ? "Email or Phone Number" : l ? "Email Address" : "Phone Number"
|
|
28413
|
-
), _ = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", w = e?.colors?.primary_button_label || "#ffffff", k = e?.colors?.body_text || "#333333", A = e?.colors?.input_background || "#ffffff", j = e?.colors?.input_border || "#d1d5db",
|
|
28410
|
+
), _ = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", w = e?.colors?.primary_button_label || "#ffffff", k = e?.colors?.body_text || "#333333", A = e?.colors?.input_background || "#ffffff", j = e?.colors?.input_border || "#d1d5db", P = e?.colors?.input_filled_text || "#111827", C = e?.colors?.error || "#dc2626", I = e?.colors?.widget_background || "#ffffff", L = e?.colors?.widget_border || "#e5e7eb", J = e?.borders?.widget_corner_radius || 8, ie = e?.borders?.input_border_radius || 4, V = e?.borders?.button_border_radius || 4, Q = e?.borders?.show_widget_shadow ?? !0, ae = e?.fonts?.title?.size || 24, fe = e?.fonts?.title?.bold ?? !0, he = e?.fonts?.body_text?.size || 14, xe = {
|
|
28414
28411
|
backgroundColor: I,
|
|
28415
|
-
borderColor:
|
|
28412
|
+
borderColor: L,
|
|
28416
28413
|
borderRadius: `${J}px`,
|
|
28417
|
-
boxShadow:
|
|
28414
|
+
boxShadow: Q ? "0 1px 3px 0 rgba(0, 0, 0, 0.1)" : "none",
|
|
28418
28415
|
color: k
|
|
28419
28416
|
}, be = {
|
|
28420
|
-
fontSize: `${
|
|
28417
|
+
fontSize: `${ae}px`,
|
|
28421
28418
|
fontWeight: fe ? "700" : "400",
|
|
28422
28419
|
color: e?.colors?.header || k
|
|
28423
28420
|
}, Lt = {
|
|
@@ -28425,17 +28422,17 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
28425
28422
|
color: e?.colors?.input_labels_placeholders || "#6b7280"
|
|
28426
28423
|
}, Ge = {
|
|
28427
28424
|
backgroundColor: A,
|
|
28428
|
-
borderColor: t ?
|
|
28429
|
-
borderRadius: `${
|
|
28430
|
-
color:
|
|
28425
|
+
borderColor: t ? C : j,
|
|
28426
|
+
borderRadius: `${ie}px`,
|
|
28427
|
+
color: P
|
|
28431
28428
|
}, rt = {
|
|
28432
28429
|
backgroundColor: _,
|
|
28433
28430
|
color: w,
|
|
28434
|
-
borderRadius: `${
|
|
28431
|
+
borderRadius: `${V}px`
|
|
28435
28432
|
}, mt = e?.widget?.logo_position || "center", Qt = mt === "left" ? "text-left" : mt === "right" ? "text-right" : "text-center", zn = e?.widget?.logo_url || n?.logo_url, Ue = mt !== "none" && zn;
|
|
28436
|
-
return /* @__PURE__ */ u("div", { className:
|
|
28433
|
+
return /* @__PURE__ */ u("div", { className: ee("flex flex-col gap-6 w-full max-w-sm", a), children: /* @__PURE__ */ u(bn, { style: xe, className: "border", children: [
|
|
28437
28434
|
/* @__PURE__ */ u(vn, { children: [
|
|
28438
|
-
Ue && /* @__PURE__ */ u("div", { className:
|
|
28435
|
+
Ue && /* @__PURE__ */ u("div", { className: ee("mb-4", Qt), children: /* @__PURE__ */ u(Zt, { theme: e, branding: n }) }),
|
|
28439
28436
|
/* @__PURE__ */ u($n, { style: be, children: y.t("welcome", "Login") }),
|
|
28440
28437
|
/* @__PURE__ */ u(kn, { style: Lt, children: y.t("login_description_template", {
|
|
28441
28438
|
authMethod: y.t(f, {
|
|
@@ -28489,7 +28486,7 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
28489
28486
|
"div",
|
|
28490
28487
|
{
|
|
28491
28488
|
className: "absolute left-0 right-0 top-1/2 border-b",
|
|
28492
|
-
style: { borderColor:
|
|
28489
|
+
style: { borderColor: L }
|
|
28493
28490
|
}
|
|
28494
28491
|
),
|
|
28495
28492
|
/* @__PURE__ */ u(
|
|
@@ -28512,7 +28509,7 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
28512
28509
|
className: "inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 disabled:pointer-events-none disabled:opacity-50 border bg-transparent hover:bg-gray-100 dark:hover:bg-gray-800 h-10 px-4 py-2 w-full sm:w-full short:flex-1",
|
|
28513
28510
|
style: {
|
|
28514
28511
|
borderColor: j,
|
|
28515
|
-
borderRadius: `${
|
|
28512
|
+
borderRadius: `${V}px`,
|
|
28516
28513
|
color: k
|
|
28517
28514
|
},
|
|
28518
28515
|
children: [
|
|
@@ -28548,7 +28545,7 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
28548
28545
|
)
|
|
28549
28546
|
] }) }), J6 = (t) => t === "small" ? "text-base" : t === "medium" ? "text-2xl" : t === "large" ? "text-3xl" : "", Pe = ({ name: t, size: e, className: n = "" }) => {
|
|
28550
28547
|
const r = J6(e);
|
|
28551
|
-
return /* @__PURE__ */ u("span", { className:
|
|
28548
|
+
return /* @__PURE__ */ u("span", { className: ee(`uicon-${t}`, n, r) });
|
|
28552
28549
|
}, X6 = (t, e) => {
|
|
28553
28550
|
const n = t.replace("#", ""), r = parseInt(n, 16), i = r >> 16 & 255, s = r >> 8 & 255, a = r & 255, c = Math.min(255, Math.round(i + (255 - i) * e)), l = Math.min(255, Math.round(s + (255 - s) * e)), d = Math.min(255, Math.round(a + (255 - a) * e));
|
|
28554
28551
|
return `#${(c << 16 | l << 8 | d).toString(16).padStart(6, "0")}`;
|
|
@@ -28648,7 +28645,7 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
28648
28645
|
/* @__PURE__ */ u(
|
|
28649
28646
|
Pe,
|
|
28650
28647
|
{
|
|
28651
|
-
className:
|
|
28648
|
+
className: ee("text-gray-200 dark:text-[#201a41]", {
|
|
28652
28649
|
[e]: e
|
|
28653
28650
|
}),
|
|
28654
28651
|
name: "spinner-circle"
|
|
@@ -28657,7 +28654,7 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
28657
28654
|
/* @__PURE__ */ u(
|
|
28658
28655
|
Pe,
|
|
28659
28656
|
{
|
|
28660
|
-
className:
|
|
28657
|
+
className: ee("absolute inset-0 animate-spin text-primary", {
|
|
28661
28658
|
[e]: e
|
|
28662
28659
|
}),
|
|
28663
28660
|
name: "spinner-inner"
|
|
@@ -28680,7 +28677,7 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
28680
28677
|
/* @__PURE__ */ u(
|
|
28681
28678
|
n,
|
|
28682
28679
|
{
|
|
28683
|
-
class:
|
|
28680
|
+
class: ee(
|
|
28684
28681
|
"btn relative w-full rounded-lg text-center",
|
|
28685
28682
|
{
|
|
28686
28683
|
"px-4 py-5": r !== "custom",
|
|
@@ -28719,7 +28716,7 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
28719
28716
|
return /* @__PURE__ */ u(
|
|
28720
28717
|
Ie,
|
|
28721
28718
|
{
|
|
28722
|
-
className:
|
|
28719
|
+
className: ee(
|
|
28723
28720
|
"border border-gray-200 bg-white hover:bg-gray-100 dark:border-gray-400 dark:bg-black dark:hover:bg-black/90",
|
|
28724
28721
|
{
|
|
28725
28722
|
"px-0 py-3 sm:px-10 sm:py-4 short:px-0 short:py-3": r,
|
|
@@ -28735,7 +28732,7 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
28735
28732
|
/* @__PURE__ */ u(
|
|
28736
28733
|
"div",
|
|
28737
28734
|
{
|
|
28738
|
-
className:
|
|
28735
|
+
className: ee("text-left text-black dark:text-white sm:text-base", {
|
|
28739
28736
|
"hidden sm:inline short:hidden": r
|
|
28740
28737
|
}),
|
|
28741
28738
|
children: e
|
|
@@ -28785,7 +28782,7 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
28785
28782
|
type: f,
|
|
28786
28783
|
name: g,
|
|
28787
28784
|
placeholder: w,
|
|
28788
|
-
className:
|
|
28785
|
+
className: ee(
|
|
28789
28786
|
"mb-2 w-full rounded-lg border bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 md:text-base",
|
|
28790
28787
|
{
|
|
28791
28788
|
"border-red": t,
|
|
@@ -28835,7 +28832,7 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
28835
28832
|
const i = n?.page_background?.page_layout || "center", s = n?.page_background?.background_color || "#ffffff", a = n?.page_background?.background_image_url, c = a ?? n8, l = c?.startsWith("linear-gradient") || c?.startsWith("radial-gradient") || c?.startsWith("conic-gradient"), d = c ? l ? c : `url(${c})` : void 0;
|
|
28836
28833
|
let p = "justify-center", f = "p-6 md:p-10";
|
|
28837
28834
|
i === "left" ? (p = "justify-start", f = "pl-12 pr-6 py-6 md:pl-20 md:pr-10 md:py-10") : i === "right" && (p = "justify-end", f = "pr-12 pl-6 py-6 md:pr-20 md:pl-10 md:py-10");
|
|
28838
|
-
const g =
|
|
28835
|
+
const g = ee(
|
|
28839
28836
|
"min-h-screen w-full flex bg-cover bg-center",
|
|
28840
28837
|
p,
|
|
28841
28838
|
f
|
|
@@ -28849,7 +28846,7 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
28849
28846
|
justifyContent: i === "left" ? "flex-start" : i === "right" ? "flex-end" : "center",
|
|
28850
28847
|
minHeight: "100vh",
|
|
28851
28848
|
width: "100%"
|
|
28852
|
-
}, w =
|
|
28849
|
+
}, w = ee(
|
|
28853
28850
|
"w-full max-w-sm",
|
|
28854
28851
|
// Center vertically within flex container, allowing overflow
|
|
28855
28852
|
"flex flex-col justify-center"
|
|
@@ -29045,11 +29042,11 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
29045
29042
|
f
|
|
29046
29043
|
);
|
|
29047
29044
|
if (!I.allowed) {
|
|
29048
|
-
const
|
|
29049
|
-
type:
|
|
29045
|
+
const L = oe(t, {
|
|
29046
|
+
type: re.FAILED_SIGNUP,
|
|
29050
29047
|
description: I.reason || "Public signup is disabled"
|
|
29051
29048
|
});
|
|
29052
|
-
return se(t, t.env.data.logs.create(i.tenant.id,
|
|
29049
|
+
return se(t, t.env.data.logs.create(i.tenant.id, L)), l ? t.html(
|
|
29053
29050
|
/* @__PURE__ */ u(
|
|
29054
29051
|
ke,
|
|
29055
29052
|
{
|
|
@@ -29115,26 +29112,26 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
29115
29112
|
login_id: s.id,
|
|
29116
29113
|
expires_at: new Date(Date.now() + ms).toISOString(),
|
|
29117
29114
|
redirect_uri: s.authParams.redirect_uri
|
|
29118
|
-
}),
|
|
29115
|
+
}), P = i.connections.find(
|
|
29119
29116
|
(I) => I.strategy === f
|
|
29120
29117
|
);
|
|
29121
|
-
if (!
|
|
29118
|
+
if (!P)
|
|
29122
29119
|
throw new v(400, {
|
|
29123
29120
|
message: y.t("connection_not_found", {
|
|
29124
29121
|
connection: f
|
|
29125
29122
|
})
|
|
29126
29123
|
});
|
|
29127
|
-
const
|
|
29124
|
+
const C = s.authParams?.ui_locales?.split(" ")?.map((I) => I.split("-")[0])[0];
|
|
29128
29125
|
return f === "email" && // This is different to how it works in auth0
|
|
29129
|
-
|
|
29126
|
+
P.options.authentication_method === "magic_link" ? await Ap(t, {
|
|
29130
29127
|
to: p,
|
|
29131
29128
|
code: j.code_id,
|
|
29132
29129
|
authParams: s.authParams,
|
|
29133
|
-
language:
|
|
29130
|
+
language: C
|
|
29134
29131
|
}) : await Sp(t, {
|
|
29135
29132
|
to: p,
|
|
29136
29133
|
code: j.code_id,
|
|
29137
|
-
language:
|
|
29134
|
+
language: C
|
|
29138
29135
|
}), t.redirect(`/u/enter-code?state=${n}`);
|
|
29139
29136
|
}
|
|
29140
29137
|
), wt = (t) => /* @__PURE__ */ u(
|
|
@@ -29520,23 +29517,23 @@ var Io = "_hp", i8 = {
|
|
|
29520
29517
|
const _ = vs[t];
|
|
29521
29518
|
let w;
|
|
29522
29519
|
if (_.length > 0) {
|
|
29523
|
-
const
|
|
29520
|
+
const P = s.querySelectorAll(t);
|
|
29524
29521
|
e:
|
|
29525
|
-
for (const
|
|
29522
|
+
for (const C of P)
|
|
29526
29523
|
for (const I of vs[t])
|
|
29527
|
-
if (
|
|
29528
|
-
f =
|
|
29524
|
+
if (C.getAttribute(I) === e[I]) {
|
|
29525
|
+
f = C;
|
|
29529
29526
|
break e;
|
|
29530
29527
|
}
|
|
29531
29528
|
if (!f) {
|
|
29532
|
-
const
|
|
29533
|
-
(I,
|
|
29529
|
+
const C = _.reduce(
|
|
29530
|
+
(I, L) => e[L] === void 0 ? I : `${I}-${L}-${e[L]}`,
|
|
29534
29531
|
t
|
|
29535
29532
|
);
|
|
29536
|
-
g = !Qg[
|
|
29533
|
+
g = !Qg[C], f = Qg[C] ||= (() => {
|
|
29537
29534
|
const I = document.createElement(t);
|
|
29538
|
-
for (const
|
|
29539
|
-
e[
|
|
29535
|
+
for (const L of _)
|
|
29536
|
+
e[L] !== void 0 && I.setAttribute(L, e[L]), e.rel && I.setAttribute("rel", e.rel);
|
|
29540
29537
|
return I;
|
|
29541
29538
|
})();
|
|
29542
29539
|
}
|
|
@@ -29544,48 +29541,48 @@ var Io = "_hp", i8 = {
|
|
|
29544
29541
|
w = s.querySelectorAll(t);
|
|
29545
29542
|
l = r ? l ?? "" : void 0, r && (p[$s] = l);
|
|
29546
29543
|
const k = Cp(
|
|
29547
|
-
(
|
|
29544
|
+
(P) => {
|
|
29548
29545
|
if (_.length > 0) {
|
|
29549
|
-
let
|
|
29546
|
+
let C = !1;
|
|
29550
29547
|
for (const I of s.querySelectorAll(t)) {
|
|
29551
|
-
if (
|
|
29552
|
-
s.insertBefore(
|
|
29548
|
+
if (C && I.getAttribute($s) !== l) {
|
|
29549
|
+
s.insertBefore(P, I);
|
|
29553
29550
|
return;
|
|
29554
29551
|
}
|
|
29555
|
-
I.getAttribute($s) === l && (
|
|
29552
|
+
I.getAttribute($s) === l && (C = !0);
|
|
29556
29553
|
}
|
|
29557
|
-
s.appendChild(
|
|
29554
|
+
s.appendChild(P);
|
|
29558
29555
|
} else if (w) {
|
|
29559
|
-
let
|
|
29556
|
+
let C = !1;
|
|
29560
29557
|
for (const I of w)
|
|
29561
|
-
if (I ===
|
|
29562
|
-
|
|
29558
|
+
if (I === P) {
|
|
29559
|
+
C = !0;
|
|
29563
29560
|
break;
|
|
29564
29561
|
}
|
|
29565
|
-
|
|
29566
|
-
|
|
29562
|
+
C || s.insertBefore(
|
|
29563
|
+
P,
|
|
29567
29564
|
s.contains(w[0]) ? w[0] : s.querySelector(t)
|
|
29568
29565
|
), w = void 0;
|
|
29569
29566
|
}
|
|
29570
29567
|
},
|
|
29571
29568
|
[l]
|
|
29572
|
-
), A = Np(e.ref, (
|
|
29573
|
-
const
|
|
29574
|
-
if (n === 2 && (
|
|
29569
|
+
), A = Np(e.ref, (P) => {
|
|
29570
|
+
const C = _[0];
|
|
29571
|
+
if (n === 2 && (P.innerHTML = ""), (g || w) && k(P), !c && !a)
|
|
29575
29572
|
return;
|
|
29576
|
-
let I = Yg[
|
|
29577
|
-
(
|
|
29578
|
-
|
|
29573
|
+
let I = Yg[P.getAttribute(C)] ||= new Promise(
|
|
29574
|
+
(L, J) => {
|
|
29575
|
+
P.addEventListener("load", L), P.addEventListener("error", J);
|
|
29579
29576
|
}
|
|
29580
29577
|
);
|
|
29581
29578
|
a && (I = I.then(a)), c && (I = I.catch(c)), I.catch(() => {
|
|
29582
29579
|
});
|
|
29583
29580
|
});
|
|
29584
29581
|
if (i && d === "render") {
|
|
29585
|
-
const
|
|
29586
|
-
if (e[
|
|
29587
|
-
const
|
|
29588
|
-
k(f), f.addEventListener("load",
|
|
29582
|
+
const P = vs[t][0];
|
|
29583
|
+
if (e[P]) {
|
|
29584
|
+
const C = e[P], I = Yg[C] ||= new Promise((L, J) => {
|
|
29585
|
+
k(f), f.addEventListener("load", L), f.addEventListener("error", J);
|
|
29589
29586
|
});
|
|
29590
29587
|
y8(I);
|
|
29591
29588
|
}
|
|
@@ -29753,7 +29750,7 @@ const gr = (t) => {
|
|
|
29753
29750
|
inputMode: "numeric",
|
|
29754
29751
|
name: "code",
|
|
29755
29752
|
placeholder: "******",
|
|
29756
|
-
className:
|
|
29753
|
+
className: ee(
|
|
29757
29754
|
"mb-2 w-full rounded-lg border bg-gray-100 px-4 pb-2 pt-2.5 text-center indent-[5px] font-mono text-3xl placeholder:text-gray-300 dark:bg-gray-600 md:text-3xl",
|
|
29758
29755
|
{
|
|
29759
29756
|
"border-red": t,
|
|
@@ -29809,7 +29806,7 @@ const gr = (t) => {
|
|
|
29809
29806
|
}) => /* @__PURE__ */ u(
|
|
29810
29807
|
"div",
|
|
29811
29808
|
{
|
|
29812
|
-
className:
|
|
29809
|
+
className: ee(
|
|
29813
29810
|
"flex items-center gap-2 has-[:disabled]:opacity-50",
|
|
29814
29811
|
i
|
|
29815
29812
|
),
|
|
@@ -29826,7 +29823,7 @@ const gr = (t) => {
|
|
|
29826
29823
|
id: p === 0 ? a : void 0,
|
|
29827
29824
|
required: p === 0 ? c : void 0,
|
|
29828
29825
|
autoFocus: p === 0 ? l : void 0,
|
|
29829
|
-
className:
|
|
29826
|
+
className: ee(
|
|
29830
29827
|
"relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md text-center font-mono",
|
|
29831
29828
|
"focus:z-10 focus:ring-1 focus:ring-ring",
|
|
29832
29829
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
@@ -29848,29 +29845,29 @@ const gr = (t) => {
|
|
|
29848
29845
|
}) => {
|
|
29849
29846
|
const c = new URLSearchParams({
|
|
29850
29847
|
state: i
|
|
29851
|
-
}), l = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", d = e?.colors?.primary_button_label || "#ffffff", p = e?.colors?.body_text || "#333333", f = e?.colors?.input_border || "#d1d5db", g = e?.colors?.widget_background || "#ffffff", _ = e?.colors?.widget_border || "#e5e7eb", w = e?.borders?.widget_corner_radius || 8, k = e?.borders?.button_border_radius || 4, A = e?.borders?.show_widget_shadow ?? !0, j = e?.fonts?.title?.size || 24,
|
|
29848
|
+
}), l = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", d = e?.colors?.primary_button_label || "#ffffff", p = e?.colors?.body_text || "#333333", f = e?.colors?.input_border || "#d1d5db", g = e?.colors?.widget_background || "#ffffff", _ = e?.colors?.widget_border || "#e5e7eb", w = e?.borders?.widget_corner_radius || 8, k = e?.borders?.button_border_radius || 4, A = e?.borders?.show_widget_shadow ?? !0, j = e?.fonts?.title?.size || 24, P = e?.fonts?.title?.bold ?? !0, C = e?.fonts?.body_text?.size || 14, I = {
|
|
29852
29849
|
backgroundColor: g,
|
|
29853
29850
|
borderColor: _,
|
|
29854
29851
|
borderRadius: `${w}px`,
|
|
29855
29852
|
boxShadow: A ? "0 1px 3px 0 rgba(0, 0, 0, 0.1)" : "none",
|
|
29856
29853
|
color: p
|
|
29857
|
-
},
|
|
29854
|
+
}, L = {
|
|
29858
29855
|
fontSize: `${j}px`,
|
|
29859
|
-
fontWeight:
|
|
29856
|
+
fontWeight: P ? "700" : "400",
|
|
29860
29857
|
color: e?.colors?.header || p
|
|
29861
29858
|
}, J = {
|
|
29862
|
-
fontSize: `${
|
|
29859
|
+
fontSize: `${C}px`,
|
|
29863
29860
|
color: e?.colors?.input_labels_placeholders || "#6b7280"
|
|
29864
|
-
},
|
|
29861
|
+
}, ie = {
|
|
29865
29862
|
backgroundColor: l,
|
|
29866
29863
|
color: d,
|
|
29867
29864
|
borderRadius: `${k}px`
|
|
29868
|
-
},
|
|
29869
|
-
return /* @__PURE__ */ u("div", { className:
|
|
29865
|
+
}, V = e?.widget?.logo_position || "center", Q = V === "left" ? "text-left" : V === "right" ? "text-right" : "text-center", ae = e?.widget?.logo_url || n?.logo_url, fe = V !== "none" && ae;
|
|
29866
|
+
return /* @__PURE__ */ u("div", { className: ee("flex flex-col gap-6 w-full max-w-sm", a), children: [
|
|
29870
29867
|
/* @__PURE__ */ u(bn, { style: I, className: "border", children: [
|
|
29871
29868
|
/* @__PURE__ */ u(vn, { children: [
|
|
29872
|
-
fe && /* @__PURE__ */ u("div", { className:
|
|
29873
|
-
/* @__PURE__ */ u($n, { style:
|
|
29869
|
+
fe && /* @__PURE__ */ u("div", { className: ee("mb-4", Q), children: /* @__PURE__ */ u(Zt, { theme: e, branding: n }) }),
|
|
29870
|
+
/* @__PURE__ */ u($n, { style: L, children: y.t("verify_your_email", "Verify your email") }),
|
|
29874
29871
|
/* @__PURE__ */ u(kn, { style: J, children: /* @__PURE__ */ u(
|
|
29875
29872
|
gr,
|
|
29876
29873
|
{
|
|
@@ -29896,7 +29893,7 @@ const gr = (t) => {
|
|
|
29896
29893
|
required: !0,
|
|
29897
29894
|
autoFocus: !0,
|
|
29898
29895
|
containerClassName: "gap-2",
|
|
29899
|
-
className:
|
|
29896
|
+
className: ee(
|
|
29900
29897
|
"w-12 h-12 text-center text-lg font-mono border rounded-md transition-colors",
|
|
29901
29898
|
t ? "border-red-500 focus:ring-red-500" : "border-gray-300 focus:ring-blue-500 focus:border-blue-500"
|
|
29902
29899
|
)
|
|
@@ -29909,7 +29906,7 @@ const gr = (t) => {
|
|
|
29909
29906
|
{
|
|
29910
29907
|
type: "submit",
|
|
29911
29908
|
className: "w-full transition-colors hover:brightness-90",
|
|
29912
|
-
style:
|
|
29909
|
+
style: ie,
|
|
29913
29910
|
children: y.t("login", "Login")
|
|
29914
29911
|
}
|
|
29915
29912
|
),
|
|
@@ -29964,7 +29961,7 @@ const gr = (t) => {
|
|
|
29964
29961
|
"a",
|
|
29965
29962
|
{
|
|
29966
29963
|
href: `/u/${s ? "enter-password" : "pre-signup"}?${c.toString()}`,
|
|
29967
|
-
className:
|
|
29964
|
+
className: ee(
|
|
29968
29965
|
"w-full inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500",
|
|
29969
29966
|
"border border-gray-300 bg-transparent hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-800",
|
|
29970
29967
|
"h-10 px-4 py-2"
|
|
@@ -30404,41 +30401,41 @@ const ul = (t) => {
|
|
|
30404
30401
|
email: i,
|
|
30405
30402
|
className: s
|
|
30406
30403
|
}) => {
|
|
30407
|
-
const a = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", c = e?.colors?.primary_button_label || "#ffffff", l = e?.colors?.body_text || "#333333", d = e?.colors?.input_background || "#ffffff", p = e?.colors?.input_border || "#d1d5db", f = e?.colors?.input_filled_text || "#111827", g = e?.colors?.error || "#dc2626", _ = e?.colors?.widget_background || "#ffffff", w = e?.colors?.widget_border || "#e5e7eb", k = e?.borders?.widget_corner_radius || 8, A = e?.borders?.input_border_radius || 4, j = e?.borders?.button_border_radius || 4,
|
|
30404
|
+
const a = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", c = e?.colors?.primary_button_label || "#ffffff", l = e?.colors?.body_text || "#333333", d = e?.colors?.input_background || "#ffffff", p = e?.colors?.input_border || "#d1d5db", f = e?.colors?.input_filled_text || "#111827", g = e?.colors?.error || "#dc2626", _ = e?.colors?.widget_background || "#ffffff", w = e?.colors?.widget_border || "#e5e7eb", k = e?.borders?.widget_corner_radius || 8, A = e?.borders?.input_border_radius || 4, j = e?.borders?.button_border_radius || 4, P = e?.borders?.show_widget_shadow ?? !0, C = e?.fonts?.title?.size || 24, I = e?.fonts?.title?.bold ?? !0, L = e?.fonts?.body_text?.size || 14, J = {
|
|
30408
30405
|
backgroundColor: _,
|
|
30409
30406
|
borderColor: w,
|
|
30410
30407
|
borderRadius: `${k}px`,
|
|
30411
|
-
boxShadow:
|
|
30408
|
+
boxShadow: P ? "0 1px 3px 0 rgba(0, 0, 0, 0.1)" : "none",
|
|
30412
30409
|
color: l
|
|
30413
|
-
},
|
|
30414
|
-
fontSize: `${
|
|
30410
|
+
}, ie = {
|
|
30411
|
+
fontSize: `${C}px`,
|
|
30415
30412
|
fontWeight: I ? "700" : "400",
|
|
30416
30413
|
color: e?.colors?.header || l
|
|
30417
|
-
},
|
|
30418
|
-
fontSize: `${
|
|
30414
|
+
}, V = {
|
|
30415
|
+
fontSize: `${L}px`,
|
|
30419
30416
|
color: e?.colors?.input_labels_placeholders || "#6b7280"
|
|
30420
|
-
},
|
|
30417
|
+
}, Q = {
|
|
30421
30418
|
backgroundColor: d,
|
|
30422
30419
|
borderColor: t ? g : p,
|
|
30423
30420
|
borderRadius: `${A}px`,
|
|
30424
30421
|
color: f
|
|
30425
|
-
},
|
|
30422
|
+
}, ae = {
|
|
30426
30423
|
backgroundColor: a,
|
|
30427
30424
|
color: c,
|
|
30428
30425
|
borderRadius: `${j}px`
|
|
30429
30426
|
}, fe = e?.widget?.logo_position || "center", he = fe === "left" ? "text-left" : fe === "right" ? "text-right" : "text-center", xe = e?.widget?.logo_url || n?.logo_url, be = fe !== "none" && xe;
|
|
30430
|
-
return /* @__PURE__ */ u("div", { className:
|
|
30427
|
+
return /* @__PURE__ */ u("div", { className: ee("flex flex-col gap-6 w-full max-w-sm", s), children: /* @__PURE__ */ u(bn, { style: J, className: "border", children: [
|
|
30431
30428
|
/* @__PURE__ */ u(vn, { children: [
|
|
30432
|
-
be && /* @__PURE__ */ u("div", { className:
|
|
30433
|
-
/* @__PURE__ */ u($n, { style:
|
|
30434
|
-
/* @__PURE__ */ u(kn, { style:
|
|
30429
|
+
be && /* @__PURE__ */ u("div", { className: ee("mb-4", he), children: /* @__PURE__ */ u(Zt, { theme: e, branding: n }) }),
|
|
30430
|
+
/* @__PURE__ */ u($n, { style: ie, children: y.t("enter_password", "Enter your password") }),
|
|
30431
|
+
/* @__PURE__ */ u(kn, { style: V, children: y.t(
|
|
30435
30432
|
"enter_password_description",
|
|
30436
30433
|
"Enter your password to continue"
|
|
30437
30434
|
) })
|
|
30438
30435
|
] }),
|
|
30439
30436
|
/* @__PURE__ */ u(xn, { children: /* @__PURE__ */ u("form", { method: "post", children: /* @__PURE__ */ u("div", { className: "grid gap-6", children: [
|
|
30440
30437
|
/* @__PURE__ */ u("div", { className: "grid gap-2", children: [
|
|
30441
|
-
/* @__PURE__ */ u(Ot, { htmlFor: "email", style:
|
|
30438
|
+
/* @__PURE__ */ u(Ot, { htmlFor: "email", style: V, children: y.t("email", "Email") }),
|
|
30442
30439
|
/* @__PURE__ */ u(
|
|
30443
30440
|
Vt,
|
|
30444
30441
|
{
|
|
@@ -30448,13 +30445,13 @@ const ul = (t) => {
|
|
|
30448
30445
|
value: i,
|
|
30449
30446
|
disabled: !0,
|
|
30450
30447
|
className: "border bg-gray-50",
|
|
30451
|
-
style: { ...
|
|
30448
|
+
style: { ...Q, cursor: "not-allowed" }
|
|
30452
30449
|
}
|
|
30453
30450
|
)
|
|
30454
30451
|
] }),
|
|
30455
30452
|
/* @__PURE__ */ u("div", { className: "grid gap-2", children: [
|
|
30456
30453
|
/* @__PURE__ */ u("div", { className: "flex items-center justify-between", children: [
|
|
30457
|
-
/* @__PURE__ */ u(Ot, { htmlFor: "password", style:
|
|
30454
|
+
/* @__PURE__ */ u(Ot, { htmlFor: "password", style: V, children: y.t("password", "Password") }),
|
|
30458
30455
|
/* @__PURE__ */ u(
|
|
30459
30456
|
"a",
|
|
30460
30457
|
{
|
|
@@ -30480,7 +30477,7 @@ const ul = (t) => {
|
|
|
30480
30477
|
required: !0,
|
|
30481
30478
|
error: !!t,
|
|
30482
30479
|
className: "border pr-8",
|
|
30483
|
-
style:
|
|
30480
|
+
style: Q
|
|
30484
30481
|
}
|
|
30485
30482
|
),
|
|
30486
30483
|
/* @__PURE__ */ u(
|
|
@@ -30546,7 +30543,7 @@ const ul = (t) => {
|
|
|
30546
30543
|
{
|
|
30547
30544
|
type: "submit",
|
|
30548
30545
|
className: "w-full transition-colors hover:brightness-90",
|
|
30549
|
-
style:
|
|
30546
|
+
style: ae,
|
|
30550
30547
|
children: y.t("continue", "Continue")
|
|
30551
30548
|
}
|
|
30552
30549
|
),
|
|
@@ -30555,7 +30552,7 @@ const ul = (t) => {
|
|
|
30555
30552
|
{
|
|
30556
30553
|
href: `/u/login/identifier?state=${r.id}`,
|
|
30557
30554
|
className: "text-sm hover:underline",
|
|
30558
|
-
style:
|
|
30555
|
+
style: V,
|
|
30559
30556
|
children: [
|
|
30560
30557
|
"← ",
|
|
30561
30558
|
y.t("back", "Back")
|
|
@@ -30822,20 +30819,20 @@ const ul = (t) => {
|
|
|
30822
30819
|
code: s,
|
|
30823
30820
|
className: a
|
|
30824
30821
|
}) => {
|
|
30825
|
-
const c = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", l = e?.colors?.primary_button_label || "#ffffff", d = e?.colors?.body_text || "#333333", p = e?.colors?.input_background || "#ffffff", f = e?.colors?.input_border || "#d1d5db", g = e?.colors?.input_filled_text || "#111827", _ = e?.colors?.error || "#dc2626", w = e?.colors?.widget_background || "#ffffff", k = e?.colors?.widget_border || "#e5e7eb", A = e?.borders?.widget_corner_radius || 8, j = e?.borders?.input_border_radius || 4,
|
|
30822
|
+
const c = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", l = e?.colors?.primary_button_label || "#ffffff", d = e?.colors?.body_text || "#333333", p = e?.colors?.input_background || "#ffffff", f = e?.colors?.input_border || "#d1d5db", g = e?.colors?.input_filled_text || "#111827", _ = e?.colors?.error || "#dc2626", w = e?.colors?.widget_background || "#ffffff", k = e?.colors?.widget_border || "#e5e7eb", A = e?.borders?.widget_corner_radius || 8, j = e?.borders?.input_border_radius || 4, P = e?.borders?.button_border_radius || 4, C = e?.borders?.show_widget_shadow ?? !0, I = e?.fonts?.title?.size || 24, L = e?.fonts?.title?.bold ?? !0, J = e?.fonts?.body_text?.size || 14, ie = {
|
|
30826
30823
|
backgroundColor: w,
|
|
30827
30824
|
borderColor: k,
|
|
30828
30825
|
borderRadius: `${A}px`,
|
|
30829
|
-
boxShadow:
|
|
30826
|
+
boxShadow: C ? "0 1px 3px 0 rgba(0, 0, 0, 0.1)" : "none",
|
|
30830
30827
|
color: d
|
|
30831
|
-
},
|
|
30828
|
+
}, V = {
|
|
30832
30829
|
fontSize: `${I}px`,
|
|
30833
|
-
fontWeight:
|
|
30830
|
+
fontWeight: L ? "700" : "400",
|
|
30834
30831
|
color: e?.colors?.header || d
|
|
30835
|
-
},
|
|
30832
|
+
}, Q = {
|
|
30836
30833
|
fontSize: `${J}px`,
|
|
30837
30834
|
color: e?.colors?.input_labels_placeholders || "#6b7280"
|
|
30838
|
-
},
|
|
30835
|
+
}, ae = {
|
|
30839
30836
|
backgroundColor: p,
|
|
30840
30837
|
borderColor: t ? _ : f,
|
|
30841
30838
|
borderRadius: `${j}px`,
|
|
@@ -30843,13 +30840,13 @@ const ul = (t) => {
|
|
|
30843
30840
|
}, fe = {
|
|
30844
30841
|
backgroundColor: c,
|
|
30845
30842
|
color: l,
|
|
30846
|
-
borderRadius: `${
|
|
30843
|
+
borderRadius: `${P}px`
|
|
30847
30844
|
}, he = e?.widget?.logo_position || "center", xe = he === "left" ? "text-left" : he === "right" ? "text-right" : "text-center", be = e?.widget?.logo_url || n?.logo_url, Lt = he !== "none" && be;
|
|
30848
|
-
return /* @__PURE__ */ u("div", { className:
|
|
30845
|
+
return /* @__PURE__ */ u("div", { className: ee("flex flex-col gap-6 w-full max-w-sm", a), children: /* @__PURE__ */ u(bn, { style: ie, className: "border", children: [
|
|
30849
30846
|
/* @__PURE__ */ u(vn, { children: [
|
|
30850
|
-
Lt && /* @__PURE__ */ u("div", { className:
|
|
30851
|
-
/* @__PURE__ */ u($n, { style:
|
|
30852
|
-
/* @__PURE__ */ u(kn, { style:
|
|
30847
|
+
Lt && /* @__PURE__ */ u("div", { className: ee("mb-4", xe), children: /* @__PURE__ */ u(Zt, { theme: e, branding: n }) }),
|
|
30848
|
+
/* @__PURE__ */ u($n, { style: V, children: y.t("create_account_title", "Create Account") }),
|
|
30849
|
+
/* @__PURE__ */ u(kn, { style: Q, children: y.t("create_account_description", "Sign up to get started") })
|
|
30853
30850
|
] }),
|
|
30854
30851
|
/* @__PURE__ */ u(xn, { children: [
|
|
30855
30852
|
/* @__PURE__ */ u("form", { method: "post", className: "space-y-4", children: [
|
|
@@ -30863,7 +30860,7 @@ const ul = (t) => {
|
|
|
30863
30860
|
),
|
|
30864
30861
|
s && /* @__PURE__ */ u("input", { type: "hidden", name: "code", value: s }),
|
|
30865
30862
|
/* @__PURE__ */ u("div", { className: "space-y-2", children: [
|
|
30866
|
-
/* @__PURE__ */ u(Ot, { htmlFor: "username", style:
|
|
30863
|
+
/* @__PURE__ */ u(Ot, { htmlFor: "username", style: Q, children: y.t("email_label", "Email") }),
|
|
30867
30864
|
/* @__PURE__ */ u(
|
|
30868
30865
|
Vt,
|
|
30869
30866
|
{
|
|
@@ -30873,14 +30870,14 @@ const ul = (t) => {
|
|
|
30873
30870
|
placeholder: y.t("email_placeholder", "Email Address"),
|
|
30874
30871
|
value: i,
|
|
30875
30872
|
disabled: !!i,
|
|
30876
|
-
style:
|
|
30873
|
+
style: ae,
|
|
30877
30874
|
className: "w-full",
|
|
30878
30875
|
required: !0
|
|
30879
30876
|
}
|
|
30880
30877
|
)
|
|
30881
30878
|
] }),
|
|
30882
30879
|
/* @__PURE__ */ u("div", { className: "space-y-2", children: [
|
|
30883
|
-
/* @__PURE__ */ u(Ot, { htmlFor: "password", style:
|
|
30880
|
+
/* @__PURE__ */ u(Ot, { htmlFor: "password", style: Q, children: y.t("password", "Password") }),
|
|
30884
30881
|
/* @__PURE__ */ u("div", { className: "relative", "data-password-toggle": !0, children: [
|
|
30885
30882
|
/* @__PURE__ */ u(
|
|
30886
30883
|
Vt,
|
|
@@ -30896,7 +30893,7 @@ const ul = (t) => {
|
|
|
30896
30893
|
required: !0,
|
|
30897
30894
|
error: !!t,
|
|
30898
30895
|
className: "border pr-8",
|
|
30899
|
-
style:
|
|
30896
|
+
style: ae
|
|
30900
30897
|
}
|
|
30901
30898
|
),
|
|
30902
30899
|
/* @__PURE__ */ u(
|
|
@@ -30957,7 +30954,7 @@ const ul = (t) => {
|
|
|
30957
30954
|
] })
|
|
30958
30955
|
] }),
|
|
30959
30956
|
/* @__PURE__ */ u("div", { className: "space-y-2", children: [
|
|
30960
|
-
/* @__PURE__ */ u(Ot, { htmlFor: "re-enter-password", style:
|
|
30957
|
+
/* @__PURE__ */ u(Ot, { htmlFor: "re-enter-password", style: Q, children: y.t("confirm_password", "Confirm Password") }),
|
|
30961
30958
|
/* @__PURE__ */ u("div", { className: "relative", "data-password-toggle": !0, children: [
|
|
30962
30959
|
/* @__PURE__ */ u(
|
|
30963
30960
|
Vt,
|
|
@@ -30973,7 +30970,7 @@ const ul = (t) => {
|
|
|
30973
30970
|
required: !0,
|
|
30974
30971
|
error: !!t,
|
|
30975
30972
|
className: "border pr-8",
|
|
30976
|
-
style:
|
|
30973
|
+
style: ae
|
|
30977
30974
|
}
|
|
30978
30975
|
),
|
|
30979
30976
|
/* @__PURE__ */ u(
|
|
@@ -31318,7 +31315,7 @@ const ul = (t) => {
|
|
|
31318
31315
|
password: await zr.hash(n.password, 10),
|
|
31319
31316
|
algorithm: "bcrypt"
|
|
31320
31317
|
}), !_) {
|
|
31321
|
-
const j = c.authParams?.ui_locales?.split(" ")?.map((
|
|
31318
|
+
const j = c.authParams?.ui_locales?.split(" ")?.map((P) => P.split("-")[0])[0];
|
|
31322
31319
|
return await Ep(t, k, j), t.html(
|
|
31323
31320
|
/* @__PURE__ */ u(
|
|
31324
31321
|
Tt,
|
|
@@ -31426,34 +31423,34 @@ const ul = (t) => {
|
|
|
31426
31423
|
email: i,
|
|
31427
31424
|
className: s
|
|
31428
31425
|
}) => {
|
|
31429
|
-
const a = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", c = e?.colors?.primary_button_label || "#ffffff", l = e?.colors?.body_text || "#333333", d = e?.colors?.input_background || "#ffffff", p = e?.colors?.input_border || "#d1d5db", f = e?.colors?.input_filled_text || "#111827", g = e?.colors?.error || "#dc2626", _ = e?.colors?.widget_background || "#ffffff", w = e?.colors?.widget_border || "#e5e7eb", k = e?.borders?.widget_corner_radius || 8, A = e?.borders?.input_border_radius || 4, j = e?.borders?.button_border_radius || 4,
|
|
31426
|
+
const a = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", c = e?.colors?.primary_button_label || "#ffffff", l = e?.colors?.body_text || "#333333", d = e?.colors?.input_background || "#ffffff", p = e?.colors?.input_border || "#d1d5db", f = e?.colors?.input_filled_text || "#111827", g = e?.colors?.error || "#dc2626", _ = e?.colors?.widget_background || "#ffffff", w = e?.colors?.widget_border || "#e5e7eb", k = e?.borders?.widget_corner_radius || 8, A = e?.borders?.input_border_radius || 4, j = e?.borders?.button_border_radius || 4, P = e?.borders?.show_widget_shadow ?? !0, C = e?.fonts?.title?.size || 24, I = e?.fonts?.title?.bold ?? !0, L = e?.fonts?.body_text?.size || 14, J = {
|
|
31430
31427
|
backgroundColor: _,
|
|
31431
31428
|
borderColor: w,
|
|
31432
31429
|
borderRadius: `${k}px`,
|
|
31433
|
-
boxShadow:
|
|
31430
|
+
boxShadow: P ? "0 1px 3px 0 rgba(0, 0, 0, 0.1)" : "none",
|
|
31434
31431
|
color: l
|
|
31435
|
-
},
|
|
31436
|
-
fontSize: `${
|
|
31432
|
+
}, ie = {
|
|
31433
|
+
fontSize: `${C}px`,
|
|
31437
31434
|
fontWeight: I ? "700" : "400",
|
|
31438
31435
|
color: e?.colors?.header || l
|
|
31439
|
-
},
|
|
31440
|
-
fontSize: `${
|
|
31436
|
+
}, V = {
|
|
31437
|
+
fontSize: `${L}px`,
|
|
31441
31438
|
color: e?.colors?.input_labels_placeholders || "#6b7280"
|
|
31442
|
-
},
|
|
31439
|
+
}, Q = {
|
|
31443
31440
|
backgroundColor: d,
|
|
31444
31441
|
borderColor: t ? g : p,
|
|
31445
31442
|
borderRadius: `${A}px`,
|
|
31446
31443
|
color: f
|
|
31447
|
-
},
|
|
31444
|
+
}, ae = {
|
|
31448
31445
|
backgroundColor: a,
|
|
31449
31446
|
color: c,
|
|
31450
31447
|
borderRadius: `${j}px`
|
|
31451
31448
|
}, fe = e?.widget?.logo_position || "center", he = fe === "left" ? "text-left" : fe === "right" ? "text-right" : "text-center", xe = e?.widget?.logo_url || n?.logo_url, be = fe !== "none" && xe;
|
|
31452
|
-
return /* @__PURE__ */ u("div", { className:
|
|
31449
|
+
return /* @__PURE__ */ u("div", { className: ee("flex flex-col gap-6 w-full max-w-sm", s), children: /* @__PURE__ */ u(bn, { style: J, className: "border", children: [
|
|
31453
31450
|
/* @__PURE__ */ u(vn, { children: [
|
|
31454
|
-
be && /* @__PURE__ */ u("div", { className:
|
|
31455
|
-
/* @__PURE__ */ u($n, { style:
|
|
31456
|
-
/* @__PURE__ */ u(kn, { style:
|
|
31451
|
+
be && /* @__PURE__ */ u("div", { className: ee("mb-4", he), children: /* @__PURE__ */ u(Zt, { theme: e, branding: n }) }),
|
|
31452
|
+
/* @__PURE__ */ u($n, { style: ie, children: y.t("reset_password_title", "Reset Password") }),
|
|
31453
|
+
/* @__PURE__ */ u(kn, { style: V, children: `${y.t("reset_password_description", "Set a new password for")} ${i}` })
|
|
31457
31454
|
] }),
|
|
31458
31455
|
/* @__PURE__ */ u(xn, { children: /* @__PURE__ */ u("form", { method: "post", className: "space-y-4", children: [
|
|
31459
31456
|
/* @__PURE__ */ u(
|
|
@@ -31465,7 +31462,7 @@ const ul = (t) => {
|
|
|
31465
31462
|
}
|
|
31466
31463
|
),
|
|
31467
31464
|
/* @__PURE__ */ u("div", { className: "space-y-2", children: [
|
|
31468
|
-
/* @__PURE__ */ u(Ot, { htmlFor: "password", style:
|
|
31465
|
+
/* @__PURE__ */ u(Ot, { htmlFor: "password", style: V, children: y.t("new_password", "New Password") }),
|
|
31469
31466
|
/* @__PURE__ */ u("div", { className: "relative", "data-password-toggle": !0, children: [
|
|
31470
31467
|
/* @__PURE__ */ u(
|
|
31471
31468
|
Vt,
|
|
@@ -31481,7 +31478,7 @@ const ul = (t) => {
|
|
|
31481
31478
|
required: !0,
|
|
31482
31479
|
error: !!t,
|
|
31483
31480
|
className: "border pr-8",
|
|
31484
|
-
style:
|
|
31481
|
+
style: Q
|
|
31485
31482
|
}
|
|
31486
31483
|
),
|
|
31487
31484
|
/* @__PURE__ */ u(
|
|
@@ -31542,7 +31539,7 @@ const ul = (t) => {
|
|
|
31542
31539
|
] })
|
|
31543
31540
|
] }),
|
|
31544
31541
|
/* @__PURE__ */ u("div", { className: "space-y-2", children: [
|
|
31545
|
-
/* @__PURE__ */ u(Ot, { htmlFor: "re-enter-password", style:
|
|
31542
|
+
/* @__PURE__ */ u(Ot, { htmlFor: "re-enter-password", style: V, children: y.t("confirm_password", "Confirm Password") }),
|
|
31546
31543
|
/* @__PURE__ */ u("div", { className: "relative", "data-password-toggle": !0, children: [
|
|
31547
31544
|
/* @__PURE__ */ u(
|
|
31548
31545
|
Vt,
|
|
@@ -31558,7 +31555,7 @@ const ul = (t) => {
|
|
|
31558
31555
|
required: !0,
|
|
31559
31556
|
error: !!t,
|
|
31560
31557
|
className: "border pr-8",
|
|
31561
|
-
style:
|
|
31558
|
+
style: Q
|
|
31562
31559
|
}
|
|
31563
31560
|
),
|
|
31564
31561
|
/* @__PURE__ */ u(
|
|
@@ -31624,7 +31621,7 @@ const ul = (t) => {
|
|
|
31624
31621
|
{
|
|
31625
31622
|
type: "submit",
|
|
31626
31623
|
className: "w-full",
|
|
31627
|
-
style:
|
|
31624
|
+
style: ae,
|
|
31628
31625
|
disabled: !1,
|
|
31629
31626
|
children: y.t("reset_password_cta", "Reset Password")
|
|
31630
31627
|
}
|
|
@@ -31856,7 +31853,7 @@ const ul = (t) => {
|
|
|
31856
31853
|
email_verified: !0
|
|
31857
31854
|
});
|
|
31858
31855
|
const k = oe(t, {
|
|
31859
|
-
type:
|
|
31856
|
+
type: re.SUCCESS_CHANGE_PASSWORD,
|
|
31860
31857
|
description: `Password changed for ${f.email}`,
|
|
31861
31858
|
userId: f.user_id
|
|
31862
31859
|
});
|
|
@@ -31952,34 +31949,34 @@ const ul = (t) => {
|
|
|
31952
31949
|
email: i,
|
|
31953
31950
|
className: s
|
|
31954
31951
|
}) => {
|
|
31955
|
-
const a = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", c = e?.colors?.primary_button_label || "#ffffff", l = e?.colors?.body_text || "#333333", d = e?.colors?.input_background || "#ffffff", p = e?.colors?.input_border || "#d1d5db", f = e?.colors?.input_filled_text || "#111827", g = e?.colors?.error || "#dc2626", _ = e?.colors?.widget_background || "#ffffff", w = e?.colors?.widget_border || "#e5e7eb", k = e?.borders?.widget_corner_radius || 8, A = e?.borders?.input_border_radius || 4, j = e?.borders?.button_border_radius || 4,
|
|
31952
|
+
const a = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", c = e?.colors?.primary_button_label || "#ffffff", l = e?.colors?.body_text || "#333333", d = e?.colors?.input_background || "#ffffff", p = e?.colors?.input_border || "#d1d5db", f = e?.colors?.input_filled_text || "#111827", g = e?.colors?.error || "#dc2626", _ = e?.colors?.widget_background || "#ffffff", w = e?.colors?.widget_border || "#e5e7eb", k = e?.borders?.widget_corner_radius || 8, A = e?.borders?.input_border_radius || 4, j = e?.borders?.button_border_radius || 4, P = e?.borders?.show_widget_shadow ?? !0, C = e?.fonts?.title?.size || 24, I = e?.fonts?.title?.bold ?? !0, L = e?.fonts?.body_text?.size || 14, J = {
|
|
31956
31953
|
backgroundColor: _,
|
|
31957
31954
|
borderColor: w,
|
|
31958
31955
|
borderRadius: `${k}px`,
|
|
31959
|
-
boxShadow:
|
|
31956
|
+
boxShadow: P ? "0 1px 3px 0 rgba(0, 0, 0, 0.1)" : "none",
|
|
31960
31957
|
color: l
|
|
31961
|
-
},
|
|
31962
|
-
fontSize: `${
|
|
31958
|
+
}, ie = {
|
|
31959
|
+
fontSize: `${C}px`,
|
|
31963
31960
|
fontWeight: I ? "700" : "400",
|
|
31964
31961
|
color: e?.colors?.header || l
|
|
31965
|
-
},
|
|
31966
|
-
fontSize: `${
|
|
31962
|
+
}, V = {
|
|
31963
|
+
fontSize: `${L}px`,
|
|
31967
31964
|
color: e?.colors?.input_labels_placeholders || "#6b7280"
|
|
31968
|
-
},
|
|
31965
|
+
}, Q = {
|
|
31969
31966
|
backgroundColor: d,
|
|
31970
31967
|
borderColor: t ? g : p,
|
|
31971
31968
|
borderRadius: `${A}px`,
|
|
31972
31969
|
color: f
|
|
31973
|
-
},
|
|
31970
|
+
}, ae = {
|
|
31974
31971
|
backgroundColor: a,
|
|
31975
31972
|
color: c,
|
|
31976
31973
|
borderRadius: `${j}px`
|
|
31977
31974
|
}, fe = e?.widget?.logo_position || "center", he = fe === "left" ? "text-left" : fe === "right" ? "text-right" : "text-center", xe = e?.widget?.logo_url || n?.logo_url, be = fe !== "none" && xe;
|
|
31978
|
-
return /* @__PURE__ */ u("div", { className:
|
|
31975
|
+
return /* @__PURE__ */ u("div", { className: ee("flex flex-col gap-6 w-full max-w-sm", s), children: /* @__PURE__ */ u(bn, { style: J, className: "border", children: [
|
|
31979
31976
|
/* @__PURE__ */ u(vn, { children: [
|
|
31980
|
-
be && /* @__PURE__ */ u("div", { className:
|
|
31981
|
-
/* @__PURE__ */ u($n, { style:
|
|
31982
|
-
/* @__PURE__ */ u(kn, { style:
|
|
31977
|
+
be && /* @__PURE__ */ u("div", { className: ee("mb-4", he), children: /* @__PURE__ */ u(Zt, { theme: e, branding: n }) }),
|
|
31978
|
+
/* @__PURE__ */ u($n, { style: ie, children: y.t("forgot_password_title", "Forgot Password") }),
|
|
31979
|
+
/* @__PURE__ */ u(kn, { style: V, children: y.t(
|
|
31983
31980
|
"forgot_password_description",
|
|
31984
31981
|
"Enter your email address and we'll send you a link to reset your password."
|
|
31985
31982
|
) })
|
|
@@ -31999,7 +31996,7 @@ const ul = (t) => {
|
|
|
31999
31996
|
Ot,
|
|
32000
31997
|
{
|
|
32001
31998
|
htmlFor: "username",
|
|
32002
|
-
style:
|
|
31999
|
+
style: V,
|
|
32003
32000
|
className: "text-sm font-medium",
|
|
32004
32001
|
children: y.t("email_label", "Email")
|
|
32005
32002
|
}
|
|
@@ -32013,7 +32010,7 @@ const ul = (t) => {
|
|
|
32013
32010
|
placeholder: y.t("email_placeholder", "Email Address"),
|
|
32014
32011
|
value: i,
|
|
32015
32012
|
disabled: !!i,
|
|
32016
|
-
style:
|
|
32013
|
+
style: Q,
|
|
32017
32014
|
className: "w-full",
|
|
32018
32015
|
required: !0
|
|
32019
32016
|
}
|
|
@@ -32025,7 +32022,7 @@ const ul = (t) => {
|
|
|
32025
32022
|
{
|
|
32026
32023
|
type: "submit",
|
|
32027
32024
|
className: "w-full",
|
|
32028
|
-
style:
|
|
32025
|
+
style: ae,
|
|
32029
32026
|
disabled: !1,
|
|
32030
32027
|
children: y.t("forgot_password_cta", "Send Reset Link")
|
|
32031
32028
|
}
|
|
@@ -32156,7 +32153,7 @@ const ul = (t) => {
|
|
|
32156
32153
|
}) => /* @__PURE__ */ u(
|
|
32157
32154
|
Oe,
|
|
32158
32155
|
{
|
|
32159
|
-
title:
|
|
32156
|
+
title: Z("check_email_title"),
|
|
32160
32157
|
theme: t,
|
|
32161
32158
|
branding: e,
|
|
32162
32159
|
client: n,
|
|
@@ -32179,7 +32176,7 @@ const ul = (t) => {
|
|
|
32179
32176
|
}
|
|
32180
32177
|
),
|
|
32181
32178
|
/* @__PURE__ */ u("br", {}),
|
|
32182
|
-
|
|
32179
|
+
Z("continue_with_sso_provider_headline")
|
|
32183
32180
|
] }),
|
|
32184
32181
|
/* @__PURE__ */ u("div", { className: "space-y-6", children: [
|
|
32185
32182
|
/* @__PURE__ */ u(Yt, { children: /* @__PURE__ */ u(Ie, { className: "!text-base", children: /* @__PURE__ */ u("span", { children: y.t("yes_continue_with_existing_account") }) }) }),
|
|
@@ -32211,22 +32208,22 @@ const ul = (t) => {
|
|
|
32211
32208
|
fontSize: `${_}px`,
|
|
32212
32209
|
fontWeight: w ? "700" : "400",
|
|
32213
32210
|
color: t?.colors?.header || c
|
|
32214
|
-
},
|
|
32211
|
+
}, P = {
|
|
32215
32212
|
fontSize: `${k}px`,
|
|
32216
32213
|
color: t?.colors?.input_labels_placeholders || "#6b7280"
|
|
32217
|
-
},
|
|
32214
|
+
}, C = {
|
|
32218
32215
|
backgroundColor: s,
|
|
32219
32216
|
color: a,
|
|
32220
32217
|
borderRadius: `${f}px`
|
|
32221
32218
|
}, I = {
|
|
32222
32219
|
color: t?.colors?.links_focused_components || s,
|
|
32223
32220
|
fontSize: `${k}px`
|
|
32224
|
-
},
|
|
32225
|
-
return /* @__PURE__ */ u("div", { className:
|
|
32221
|
+
}, L = t?.widget?.logo_position || "center", J = L === "left" ? "text-left" : L === "right" ? "text-right" : "text-center", ie = t?.widget?.logo_url || e?.logo_url, V = L !== "none" && ie;
|
|
32222
|
+
return /* @__PURE__ */ u("div", { className: ee("flex flex-col gap-6 w-full max-w-sm", i), children: /* @__PURE__ */ u(bn, { style: A, className: "border", children: [
|
|
32226
32223
|
/* @__PURE__ */ u(vn, { children: [
|
|
32227
|
-
|
|
32224
|
+
V && /* @__PURE__ */ u("div", { className: ee("mb-4", J), children: /* @__PURE__ */ u(Zt, { theme: t, branding: e }) }),
|
|
32228
32225
|
/* @__PURE__ */ u($n, { style: j, children: y.t("continue_with_account", "Continue with account") }),
|
|
32229
|
-
/* @__PURE__ */ u(kn, { style:
|
|
32226
|
+
/* @__PURE__ */ u(kn, { style: P, children: [
|
|
32230
32227
|
/* @__PURE__ */ u(
|
|
32231
32228
|
gr,
|
|
32232
32229
|
{
|
|
@@ -32251,7 +32248,7 @@ const ul = (t) => {
|
|
|
32251
32248
|
{
|
|
32252
32249
|
type: "submit",
|
|
32253
32250
|
className: "w-full transition-colors hover:brightness-90",
|
|
32254
|
-
style:
|
|
32251
|
+
style: C,
|
|
32255
32252
|
children: y.t(
|
|
32256
32253
|
"yes_continue_with_existing_account",
|
|
32257
32254
|
"Yes, continue"
|
|
@@ -32666,7 +32663,7 @@ const ul = (t) => {
|
|
|
32666
32663
|
id: "email",
|
|
32667
32664
|
name: "email",
|
|
32668
32665
|
placeholder: y.t("new_email"),
|
|
32669
|
-
className:
|
|
32666
|
+
className: ee(
|
|
32670
32667
|
"mb-2 w-full rounded-lg border bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 md:text-base",
|
|
32671
32668
|
{
|
|
32672
32669
|
"border-red": a,
|
|
@@ -32914,7 +32911,7 @@ const ul = (t) => {
|
|
|
32914
32911
|
inputMode: "numeric",
|
|
32915
32912
|
name: "code",
|
|
32916
32913
|
placeholder: "******",
|
|
32917
|
-
className:
|
|
32914
|
+
className: ee(
|
|
32918
32915
|
"mb-2 w-full rounded-lg border bg-gray-100 px-4 pb-2 pt-2.5 text-center indent-[5px] font-mono text-3xl placeholder:text-gray-300 dark:bg-gray-600 md:text-3xl",
|
|
32919
32916
|
{
|
|
32920
32917
|
"border-red": t,
|
|
@@ -33416,17 +33413,17 @@ const ul = (t) => {
|
|
|
33416
33413
|
fontSize: `${_}px`,
|
|
33417
33414
|
fontWeight: w ? "700" : "400",
|
|
33418
33415
|
color: t?.colors?.header || a
|
|
33419
|
-
},
|
|
33416
|
+
}, P = {
|
|
33420
33417
|
fontSize: `${k}px`,
|
|
33421
33418
|
color: t?.colors?.input_labels_placeholders || "#6b7280"
|
|
33422
|
-
},
|
|
33419
|
+
}, C = {
|
|
33423
33420
|
backgroundColor: i,
|
|
33424
33421
|
color: s,
|
|
33425
33422
|
borderRadius: `${f}px`
|
|
33426
|
-
}, I = t?.widget?.logo_position || "center",
|
|
33427
|
-
return /* @__PURE__ */ u("div", { className:
|
|
33423
|
+
}, I = t?.widget?.logo_position || "center", L = I === "left" ? "text-left" : I === "right" ? "text-right" : "text-center", J = t?.widget?.logo_url || e?.logo_url, ie = I !== "none" && J;
|
|
33424
|
+
return /* @__PURE__ */ u("div", { className: ee("flex flex-col gap-6 w-full max-w-sm", r), children: /* @__PURE__ */ u(bn, { style: A, className: "border", children: [
|
|
33428
33425
|
/* @__PURE__ */ u(vn, { children: [
|
|
33429
|
-
|
|
33426
|
+
ie && /* @__PURE__ */ u("div", { className: ee("mb-4", L), children: /* @__PURE__ */ u(Zt, { theme: t, branding: e }) }),
|
|
33430
33427
|
/* @__PURE__ */ u("div", { className: "flex justify-center mb-4", children: /* @__PURE__ */ u(
|
|
33431
33428
|
"div",
|
|
33432
33429
|
{
|
|
@@ -33453,7 +33450,7 @@ const ul = (t) => {
|
|
|
33453
33450
|
}
|
|
33454
33451
|
) }),
|
|
33455
33452
|
/* @__PURE__ */ u($n, { style: j, className: "text-center", children: y.t("email_validated", "Email Verified") }),
|
|
33456
|
-
/* @__PURE__ */ u(kn, { style:
|
|
33453
|
+
/* @__PURE__ */ u(kn, { style: P, className: "text-center", children: y.t(
|
|
33457
33454
|
"email_validated_description",
|
|
33458
33455
|
"Your email has been successfully verified. You can now continue to login."
|
|
33459
33456
|
) })
|
|
@@ -33463,7 +33460,7 @@ const ul = (t) => {
|
|
|
33463
33460
|
{
|
|
33464
33461
|
href: `/u/enter-password?state=${encodeURIComponent(n.authParams.state || "")}`,
|
|
33465
33462
|
className: "w-full flex items-center justify-center gap-2 h-10 px-4 py-2 rounded-md font-medium transition-colors",
|
|
33466
|
-
style:
|
|
33463
|
+
style: C,
|
|
33467
33464
|
children: [
|
|
33468
33465
|
/* @__PURE__ */ u("span", { children: y.t("email_validated_cta", "Continue to Login") }),
|
|
33469
33466
|
/* @__PURE__ */ u(
|
|
@@ -33862,8 +33859,8 @@ const fl = ({
|
|
|
33862
33859
|
const p = await t.req.parseBody(), f = [], g = {};
|
|
33863
33860
|
for (const j of d)
|
|
33864
33861
|
if (j.type === "LEGAL") {
|
|
33865
|
-
const
|
|
33866
|
-
|
|
33862
|
+
const P = j.id, C = !!j.required, I = p[P];
|
|
33863
|
+
C && (!I || I === "") ? f.push(P) : typeof I == "string" && (g[P] = I);
|
|
33867
33864
|
}
|
|
33868
33865
|
if (f.length > 0)
|
|
33869
33866
|
return t.html(
|
|
@@ -34011,20 +34008,20 @@ const fl = ({
|
|
|
34011
34008
|
user: i,
|
|
34012
34009
|
className: s
|
|
34013
34010
|
}) => {
|
|
34014
|
-
const a = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", c = e?.colors?.primary_button_label || "#ffffff", l = e?.colors?.body_text || "#333333", d = e?.colors?.input_border || "#d1d5db", p = e?.colors?.widget_background || "#ffffff", f = e?.colors?.widget_border || "#e5e7eb", g = e?.borders?.widget_corner_radius || 8, _ = e?.borders?.button_border_radius || 4, w = e?.borders?.show_widget_shadow ?? !0, k = e?.fonts?.title?.size || 24, A = e?.fonts?.title?.bold ?? !0, j = e?.fonts?.body_text?.size || 14,
|
|
34011
|
+
const a = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", c = e?.colors?.primary_button_label || "#ffffff", l = e?.colors?.body_text || "#333333", d = e?.colors?.input_border || "#d1d5db", p = e?.colors?.widget_background || "#ffffff", f = e?.colors?.widget_border || "#e5e7eb", g = e?.borders?.widget_corner_radius || 8, _ = e?.borders?.button_border_radius || 4, w = e?.borders?.show_widget_shadow ?? !0, k = e?.fonts?.title?.size || 24, A = e?.fonts?.title?.bold ?? !0, j = e?.fonts?.body_text?.size || 14, P = {
|
|
34015
34012
|
backgroundColor: p,
|
|
34016
34013
|
borderColor: f,
|
|
34017
34014
|
borderRadius: `${g}px`,
|
|
34018
34015
|
boxShadow: w ? "0 1px 3px 0 rgba(0, 0, 0, 0.1)" : "none",
|
|
34019
34016
|
color: l
|
|
34020
|
-
},
|
|
34017
|
+
}, C = {
|
|
34021
34018
|
fontSize: `${k}px`,
|
|
34022
34019
|
fontWeight: A ? "700" : "400",
|
|
34023
34020
|
color: e?.colors?.header || l
|
|
34024
34021
|
}, I = {
|
|
34025
34022
|
fontSize: `${j}px`,
|
|
34026
34023
|
color: e?.colors?.input_labels_placeholders || "#6b7280"
|
|
34027
|
-
},
|
|
34024
|
+
}, L = {
|
|
34028
34025
|
backgroundColor: a,
|
|
34029
34026
|
color: c,
|
|
34030
34027
|
borderRadius: `${_}px`
|
|
@@ -34033,19 +34030,19 @@ const fl = ({
|
|
|
34033
34030
|
color: l,
|
|
34034
34031
|
borderColor: d,
|
|
34035
34032
|
borderRadius: `${_}px`
|
|
34036
|
-
},
|
|
34033
|
+
}, ie = {
|
|
34037
34034
|
color: e?.colors?.links_focused_components || a,
|
|
34038
34035
|
fontSize: `${j}px`
|
|
34039
|
-
},
|
|
34036
|
+
}, V = {
|
|
34040
34037
|
borderColor: d,
|
|
34041
34038
|
borderRadius: `${_}px`,
|
|
34042
34039
|
fontSize: `${j}px`,
|
|
34043
34040
|
color: l
|
|
34044
|
-
},
|
|
34045
|
-
return /* @__PURE__ */ u("div", { className:
|
|
34041
|
+
}, Q = e?.widget?.logo_position || "center", ae = Q === "left" ? "text-left" : Q === "right" ? "text-right" : "text-center", fe = e?.widget?.logo_url || n?.logo_url, he = Q !== "none" && fe;
|
|
34042
|
+
return /* @__PURE__ */ u("div", { className: ee("flex flex-col gap-6 w-full max-w-sm", s), children: /* @__PURE__ */ u(bn, { style: P, className: "border", children: [
|
|
34046
34043
|
/* @__PURE__ */ u(vn, { children: [
|
|
34047
|
-
he && /* @__PURE__ */ u("div", { className:
|
|
34048
|
-
/* @__PURE__ */ u($n, { style:
|
|
34044
|
+
he && /* @__PURE__ */ u("div", { className: ee("mb-4", ae), children: /* @__PURE__ */ u(Zt, { theme: e, branding: n }) }),
|
|
34045
|
+
/* @__PURE__ */ u($n, { style: C, children: y.t("impersonation", "Impersonation") }),
|
|
34049
34046
|
/* @__PURE__ */ u(kn, { style: I, children: y.t(
|
|
34050
34047
|
"impersonation_description",
|
|
34051
34048
|
"You have permission to impersonate other users."
|
|
@@ -34076,7 +34073,7 @@ const fl = ({
|
|
|
34076
34073
|
{
|
|
34077
34074
|
type: "submit",
|
|
34078
34075
|
className: "w-full transition-colors hover:brightness-90",
|
|
34079
|
-
style:
|
|
34076
|
+
style: L,
|
|
34080
34077
|
children: y.t("continue", "Continue")
|
|
34081
34078
|
}
|
|
34082
34079
|
)
|
|
@@ -34111,7 +34108,7 @@ const fl = ({
|
|
|
34111
34108
|
"summary",
|
|
34112
34109
|
{
|
|
34113
34110
|
className: "cursor-pointer select-none flex items-center justify-between p-3 rounded-md hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors",
|
|
34114
|
-
style:
|
|
34111
|
+
style: ie,
|
|
34115
34112
|
children: [
|
|
34116
34113
|
/* @__PURE__ */ u("span", { className: "font-medium", children: y.t("advanced_options", "Advanced Options") }),
|
|
34117
34114
|
/* @__PURE__ */ u(
|
|
@@ -34162,7 +34159,7 @@ const fl = ({
|
|
|
34162
34159
|
"Enter user ID"
|
|
34163
34160
|
),
|
|
34164
34161
|
required: !0,
|
|
34165
|
-
style:
|
|
34162
|
+
style: V,
|
|
34166
34163
|
className: "w-full"
|
|
34167
34164
|
}
|
|
34168
34165
|
),
|
|
@@ -34190,7 +34187,7 @@ const fl = ({
|
|
|
34190
34187
|
{
|
|
34191
34188
|
href: `/u/login/identifier?state=${encodeURIComponent(r)}`,
|
|
34192
34189
|
className: "text-sm hover:underline focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors w-full text-center",
|
|
34193
|
-
style:
|
|
34190
|
+
style: ie,
|
|
34194
34191
|
children: y.t("go_back", "Go back")
|
|
34195
34192
|
}
|
|
34196
34193
|
) })
|
|
@@ -34465,7 +34462,7 @@ const fl = ({
|
|
|
34465
34462
|
user_id: g.user_id
|
|
34466
34463
|
});
|
|
34467
34464
|
const _ = oe(t, {
|
|
34468
|
-
type:
|
|
34465
|
+
type: re.SUCCESS_LOGIN,
|
|
34469
34466
|
description: `${g.email || g.user_id} (impersonated by ${d.email || d.user_id})`,
|
|
34470
34467
|
userId: g.user_id,
|
|
34471
34468
|
connection: g.connection,
|
|
@@ -37816,7 +37813,7 @@ export {
|
|
|
37816
37813
|
nx as InvalidSession,
|
|
37817
37814
|
Ot as LabelUI,
|
|
37818
37815
|
Oe as Layout,
|
|
37819
|
-
|
|
37816
|
+
re as LogTypes,
|
|
37820
37817
|
Tt as Message,
|
|
37821
37818
|
X1 as NodeType,
|
|
37822
37819
|
cx as PreSignUpConfirmationPage,
|