authhero 0.287.0 → 0.288.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 +14 -14
- package/dist/authhero.mjs +507 -501
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/authhero.mjs
CHANGED
|
@@ -154,7 +154,7 @@ class Is {
|
|
|
154
154
|
return e = e || this.options, e.prefix = e.prefix || this.prefix, new Is(this.logger, e);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
var
|
|
157
|
+
var Mt = new Is();
|
|
158
158
|
class xa {
|
|
159
159
|
constructor() {
|
|
160
160
|
this.observers = {};
|
|
@@ -280,7 +280,7 @@ function wl(t, e) {
|
|
|
280
280
|
const Qp = {}, Dc = (t) => !Q(t) && typeof t != "boolean" && typeof t != "number";
|
|
281
281
|
class Os extends xa {
|
|
282
282
|
constructor(e, n = {}) {
|
|
283
|
-
super(), m1(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger =
|
|
283
|
+
super(), m1(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = Mt.create("translator");
|
|
284
284
|
}
|
|
285
285
|
changeLanguage(e) {
|
|
286
286
|
e && (this.language = e);
|
|
@@ -354,13 +354,13 @@ class Os extends xa {
|
|
|
354
354
|
} : c;
|
|
355
355
|
const _ = this.resolve(e, i);
|
|
356
356
|
let w = _?.res;
|
|
357
|
-
const k = _?.usedKey || c, E = _?.exactUsedKey || c,
|
|
357
|
+
const k = _?.usedKey || c, E = _?.exactUsedKey || c, I = ["[object Number]", "[object Function]", "[object RegExp]"], O = i.joinArrays !== void 0 ? i.joinArrays : this.options.joinArrays, A = !this.i18nFormat || this.i18nFormat.handleAsObject, N = i.count !== void 0 && !Q(i.count), T = Os.hasDefaultValue(i), G = N ? this.pluralResolver.getSuffix(f, i.count, i) : "", X = i.ordinal && N ? this.pluralResolver.getSuffix(f, i.count, {
|
|
358
358
|
ordinal: !1
|
|
359
|
-
}) : "", se =
|
|
359
|
+
}) : "", se = N && !i.ordinal && i.count === 0, H = se && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${G}`] || i[`defaultValue${X}`] || i.defaultValue;
|
|
360
360
|
let ce = w;
|
|
361
361
|
A && !w && T && (ce = H);
|
|
362
362
|
const de = Dc(ce), ge = Object.prototype.toString.apply(ce);
|
|
363
|
-
if (A && ce && de &&
|
|
363
|
+
if (A && ce && de && I.indexOf(ge) < 0 && !(Q(O) && Array.isArray(ce))) {
|
|
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
366
|
const xe = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(k, ce, {
|
|
@@ -387,8 +387,8 @@ class Os extends xa {
|
|
|
387
387
|
}
|
|
388
388
|
w = we;
|
|
389
389
|
}
|
|
390
|
-
} else if (A && Q(
|
|
391
|
-
w = w.join(
|
|
390
|
+
} else if (A && Q(O) && Array.isArray(w))
|
|
391
|
+
w = w.join(O), w && (w = this.extendTranslation(w, e, i, r));
|
|
392
392
|
else {
|
|
393
393
|
let xe = !1, we = !1;
|
|
394
394
|
!this.isValidLookup(w) && T && (xe = !0, w = H), this.isValidLookup(w) || (we = !0, w = c);
|
|
@@ -401,22 +401,22 @@ class Os extends xa {
|
|
|
401
401
|
});
|
|
402
402
|
Be && Be.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
403
403
|
}
|
|
404
|
-
let
|
|
404
|
+
let Tt = [];
|
|
405
405
|
const Qt = this.languageUtils.getFallbackCodes(this.options.fallbackLng, i.lng || this.language);
|
|
406
406
|
if (this.options.saveMissingTo === "fallback" && Qt && Qt[0])
|
|
407
407
|
for (let Be = 0; Be < Qt.length; Be++)
|
|
408
|
-
|
|
409
|
-
else this.options.saveMissingTo === "all" ?
|
|
408
|
+
Tt.push(Qt[Be]);
|
|
409
|
+
else this.options.saveMissingTo === "all" ? Tt = this.languageUtils.toResolveHierarchy(i.lng || this.language) : Tt.push(i.lng || this.language);
|
|
410
410
|
const en = (Be, gt, W) => {
|
|
411
411
|
const be = T && W !== w ? W : Ke;
|
|
412
412
|
this.options.missingKeyHandler ? this.options.missingKeyHandler(Be, d, gt, be, Qe, i) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(Be, d, gt, be, Qe, i), this.emit("missingKey", Be, d, gt, w);
|
|
413
413
|
};
|
|
414
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
414
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && N ? Tt.forEach((Be) => {
|
|
415
415
|
const gt = this.pluralResolver.getSuffixes(Be, i);
|
|
416
416
|
se && i[`defaultValue${this.options.pluralSeparator}zero`] && gt.indexOf(`${this.options.pluralSeparator}zero`) < 0 && gt.push(`${this.options.pluralSeparator}zero`), gt.forEach((W) => {
|
|
417
417
|
en([Be], c + W, i[`defaultValue${W}`] || H);
|
|
418
418
|
});
|
|
419
|
-
}) : en(
|
|
419
|
+
}) : en(Tt, c, H));
|
|
420
420
|
}
|
|
421
421
|
w = this.extendTranslation(w, e, i, _, r), we && w === c && this.options.appendNamespaceToMissingKey && (w = `${d}${p}${c}`), (we || xe) && this.options.parseMissingKeyHandler && (w = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}${p}${c}` : c, xe ? w : void 0, i));
|
|
422
422
|
}
|
|
@@ -473,24 +473,24 @@ class Os extends xa {
|
|
|
473
473
|
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
474
474
|
const g = n.count !== void 0 && !Q(n.count), _ = g && !n.ordinal && n.count === 0, w = n.context !== void 0 && (Q(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((E) => {
|
|
476
|
-
this.isValidLookup(r) || (c = E, !Qp[`${k[0]}-${E}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(c) && (Qp[`${k[0]}-${E}`] = !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((
|
|
476
|
+
this.isValidLookup(r) || (c = E, !Qp[`${k[0]}-${E}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(c) && (Qp[`${k[0]}-${E}`] = !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((I) => {
|
|
477
477
|
if (this.isValidLookup(r)) return;
|
|
478
|
-
a =
|
|
479
|
-
const
|
|
478
|
+
a = I;
|
|
479
|
+
const O = [p];
|
|
480
480
|
if (this.i18nFormat?.addLookupKeys)
|
|
481
|
-
this.i18nFormat.addLookupKeys(
|
|
481
|
+
this.i18nFormat.addLookupKeys(O, p, I, E, n);
|
|
482
482
|
else {
|
|
483
|
-
let
|
|
484
|
-
g && (
|
|
483
|
+
let N;
|
|
484
|
+
g && (N = this.pluralResolver.getSuffix(I, n.count, n));
|
|
485
485
|
const T = `${this.options.pluralSeparator}zero`, G = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
486
|
-
if (g && (n.ordinal &&
|
|
486
|
+
if (g && (n.ordinal && N.indexOf(G) === 0 && O.push(p + N.replace(G, this.options.pluralSeparator)), O.push(p + N), _ && O.push(p + T)), w) {
|
|
487
487
|
const X = `${p}${this.options.contextSeparator || "_"}${n.context}`;
|
|
488
|
-
|
|
488
|
+
O.push(X), g && (n.ordinal && N.indexOf(G) === 0 && O.push(X + N.replace(G, this.options.pluralSeparator)), O.push(X + N), _ && O.push(X + T));
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
491
|
let A;
|
|
492
|
-
for (; A =
|
|
493
|
-
this.isValidLookup(r) || (s = A, r = this.getResource(
|
|
492
|
+
for (; A = O.pop(); )
|
|
493
|
+
this.isValidLookup(r) || (s = A, r = this.getResource(I, E, A, n));
|
|
494
494
|
}));
|
|
495
495
|
});
|
|
496
496
|
}), {
|
|
@@ -532,7 +532,7 @@ class Os extends xa {
|
|
|
532
532
|
}
|
|
533
533
|
class ef {
|
|
534
534
|
constructor(e) {
|
|
535
|
-
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
|
535
|
+
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Mt.create("languageUtils");
|
|
536
536
|
}
|
|
537
537
|
getScriptPartFromCode(e) {
|
|
538
538
|
if (e = po(e), !e || e.indexOf("-") < 0) return null;
|
|
@@ -609,7 +609,7 @@ const tf = {
|
|
|
609
609
|
};
|
|
610
610
|
class C1 {
|
|
611
611
|
constructor(e, n = {}) {
|
|
612
|
-
this.languageUtils = e, this.options = n, this.logger =
|
|
612
|
+
this.languageUtils = e, this.options = n, this.logger = Mt.create("pluralResolver"), this.pluralRulesCache = {};
|
|
613
613
|
}
|
|
614
614
|
addRule(e, n) {
|
|
615
615
|
this.rules[e] = n;
|
|
@@ -660,7 +660,7 @@ const rf = (t, e, n, r = ".", i = !0) => {
|
|
|
660
660
|
}, Mc = (t) => t.replace(/\$/g, "$$$$");
|
|
661
661
|
class of {
|
|
662
662
|
constructor(e = {}) {
|
|
663
|
-
this.logger =
|
|
663
|
+
this.logger = Mt.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((n) => n), this.init(e);
|
|
664
664
|
}
|
|
665
665
|
init(e = {}) {
|
|
666
666
|
e.interpolation || (e.interpolation = {
|
|
@@ -682,10 +682,10 @@ class of {
|
|
|
682
682
|
nestingSuffix: w,
|
|
683
683
|
nestingSuffixEscaped: k,
|
|
684
684
|
nestingOptionsSeparator: E,
|
|
685
|
-
maxReplaces:
|
|
686
|
-
alwaysFormat:
|
|
685
|
+
maxReplaces: I,
|
|
686
|
+
alwaysFormat: O
|
|
687
687
|
} = e.interpolation;
|
|
688
|
-
this.escape = n !== void 0 ? n : v1, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? kr(s) : a || "{{", this.suffix = c ? kr(c) : l || "}}", this.formatSeparator = d || ",", this.unescapePrefix = p ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : p || "", this.nestingPrefix = g ? kr(g) : _ || kr("$t("), this.nestingSuffix = w ? kr(w) : k || kr(")"), this.nestingOptionsSeparator = E || ",", this.maxReplaces =
|
|
688
|
+
this.escape = n !== void 0 ? n : v1, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? kr(s) : a || "{{", this.suffix = c ? kr(c) : l || "}}", this.formatSeparator = d || ",", this.unescapePrefix = p ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : p || "", this.nestingPrefix = g ? kr(g) : _ || kr("$t("), this.nestingSuffix = w ? kr(w) : k || kr(")"), this.nestingOptionsSeparator = E || ",", this.maxReplaces = I || 1e3, this.alwaysFormat = O !== void 0 ? O : !1, this.resetRegExp();
|
|
689
689
|
}
|
|
690
690
|
reset() {
|
|
691
691
|
this.options && this.init(this.options);
|
|
@@ -698,12 +698,12 @@ class of {
|
|
|
698
698
|
let s, a, c;
|
|
699
699
|
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, d = (_) => {
|
|
700
700
|
if (_.indexOf(this.formatSeparator) < 0) {
|
|
701
|
-
const
|
|
702
|
-
return this.alwaysFormat ? this.format(
|
|
701
|
+
const I = rf(n, l, _, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
702
|
+
return this.alwaysFormat ? this.format(I, void 0, r, {
|
|
703
703
|
...i,
|
|
704
704
|
...n,
|
|
705
705
|
interpolationkey: _
|
|
706
|
-
}) :
|
|
706
|
+
}) : I;
|
|
707
707
|
}
|
|
708
708
|
const w = _.split(this.formatSeparator), k = w.shift().trim(), E = w.join(this.formatSeparator).trim();
|
|
709
709
|
return this.format(rf(n, l, k, this.options.keySeparator, this.options.ignoreJSONStructure), E, r, {
|
|
@@ -809,7 +809,7 @@ const N1 = (t) => {
|
|
|
809
809
|
}, j1 = (t) => (e, n, r) => t(po(n), r)(e);
|
|
810
810
|
class I1 {
|
|
811
811
|
constructor(e = {}) {
|
|
812
|
-
this.logger =
|
|
812
|
+
this.logger = Mt.create("formatter"), this.options = e, this.init(e);
|
|
813
813
|
}
|
|
814
814
|
init(e, n = {
|
|
815
815
|
interpolation: {}
|
|
@@ -891,7 +891,7 @@ const O1 = (t, e) => {
|
|
|
891
891
|
};
|
|
892
892
|
class P1 extends xa {
|
|
893
893
|
constructor(e, n, r, i = {}) {
|
|
894
|
-
super(), this.backend = e, this.store = n, this.services = r, this.languageUtils = r.languageUtils, this.options = i, this.logger =
|
|
894
|
+
super(), this.backend = e, this.store = n, this.services = r, this.languageUtils = r.languageUtils, this.options = i, this.logger = Mt.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = i.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = i.maxRetries >= 0 ? i.maxRetries : 5, this.retryTimeout = i.retryTimeout >= 1 ? i.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(r, i.backend, i);
|
|
895
895
|
}
|
|
896
896
|
queueLoad(e, n, r, i) {
|
|
897
897
|
const s = {}, a = {}, c = {}, l = {};
|
|
@@ -1084,7 +1084,7 @@ const af = () => ({
|
|
|
1084
1084
|
};
|
|
1085
1085
|
class to extends xa {
|
|
1086
1086
|
constructor(e = {}, n) {
|
|
1087
|
-
if (super(), this.options = cf(e), this.services = {}, this.logger =
|
|
1087
|
+
if (super(), this.options = cf(e), this.services = {}, this.logger = Mt, this.modules = {
|
|
1088
1088
|
external: []
|
|
1089
1089
|
}, T1(this), n && !this.isInitialized && !e.isClone) {
|
|
1090
1090
|
if (!this.options.initAsync)
|
|
@@ -1107,13 +1107,13 @@ class to extends xa {
|
|
|
1107
1107
|
}, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator), typeof this.options.overloadTranslationOptionHandler != "function" && (this.options.overloadTranslationOptionHandler = r.overloadTranslationOptionHandler);
|
|
1108
1108
|
const i = (d) => d ? typeof d == "function" ? new d() : d : null;
|
|
1109
1109
|
if (!this.options.isClone) {
|
|
1110
|
-
this.modules.logger ?
|
|
1110
|
+
this.modules.logger ? Mt.init(i(this.modules.logger), this.options) : Mt.init(null, this.options);
|
|
1111
1111
|
let d;
|
|
1112
1112
|
this.modules.formatter ? d = this.modules.formatter : d = I1;
|
|
1113
1113
|
const p = new ef(this.options);
|
|
1114
1114
|
this.store = new Yp(this.options.resources, this.options);
|
|
1115
1115
|
const f = this.services;
|
|
1116
|
-
f.logger =
|
|
1116
|
+
f.logger = Mt, f.resourceStore = this.store, f.languageUtils = p, f.pluralResolver = new C1(p, {
|
|
1117
1117
|
prepend: this.options.pluralSeparator,
|
|
1118
1118
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
1119
1119
|
}), this.options.interpolation.format && this.options.interpolation.format !== r.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), d && (!this.options.interpolation.format || this.options.interpolation.format === r.interpolation.format) && (f.formatter = i(d), f.formatter.init && f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new of(this.options), f.utils = {
|
|
@@ -1901,7 +1901,7 @@ const Ps = o.object({
|
|
|
1901
1901
|
is_domain_connection: o.boolean().optional(),
|
|
1902
1902
|
show_as_button: o.boolean().optional(),
|
|
1903
1903
|
metadata: o.record(o.any()).optional()
|
|
1904
|
-
}),
|
|
1904
|
+
}), zt = o.object({
|
|
1905
1905
|
id: o.string(),
|
|
1906
1906
|
created_at: o.string().transform((t) => t === null ? "" : t),
|
|
1907
1907
|
updated_at: o.string().transform((t) => t === null ? "" : t)
|
|
@@ -2034,7 +2034,7 @@ const Ps = o.object({
|
|
|
2034
2034
|
o.object({
|
|
2035
2035
|
...Tr.shape,
|
|
2036
2036
|
tenant: Fn,
|
|
2037
|
-
connections: o.array(
|
|
2037
|
+
connections: o.array(zt)
|
|
2038
2038
|
});
|
|
2039
2039
|
const Q1 = o.enum([
|
|
2040
2040
|
"password_reset",
|
|
@@ -2635,7 +2635,7 @@ const Q1 = o.enum([
|
|
|
2635
2635
|
description: "The type of the signing key"
|
|
2636
2636
|
})
|
|
2637
2637
|
});
|
|
2638
|
-
var
|
|
2638
|
+
var Dt = /* @__PURE__ */ ((t) => (t.RefreshToken = "refresh_token", t.AuthorizationCode = "authorization_code", t.ClientCredential = "client_credentials", t.Passwordless = "passwordless", t.Password = "password", t.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", t))(Dt || {});
|
|
2639
2639
|
const L0 = o.object({
|
|
2640
2640
|
access_token: o.string(),
|
|
2641
2641
|
id_token: o.string().optional(),
|
|
@@ -6482,17 +6482,17 @@ async function ev(t, e) {
|
|
|
6482
6482
|
);
|
|
6483
6483
|
if (f === "access_token_authz")
|
|
6484
6484
|
return { scopes: a, permissions: E };
|
|
6485
|
-
let
|
|
6486
|
-
return s.length === 0 ?
|
|
6485
|
+
let I;
|
|
6486
|
+
return s.length === 0 ? I = w.filter(
|
|
6487
6487
|
(A) => k.includes(A)
|
|
6488
|
-
) :
|
|
6488
|
+
) : I = s.filter(
|
|
6489
6489
|
(A) => k.includes(A) && w.includes(A)
|
|
6490
6490
|
), { scopes: [
|
|
6491
|
-
.../* @__PURE__ */ new Set([...a, ...
|
|
6491
|
+
.../* @__PURE__ */ new Set([...a, ...I])
|
|
6492
6492
|
], permissions: E };
|
|
6493
6493
|
}
|
|
6494
6494
|
async function Ls(t, e) {
|
|
6495
|
-
if (e.grantType ===
|
|
6495
|
+
if (e.grantType === Dt.ClientCredential)
|
|
6496
6496
|
return await ev(t, {
|
|
6497
6497
|
tenantId: e.tenantId,
|
|
6498
6498
|
clientId: e.clientId,
|
|
@@ -6542,21 +6542,21 @@ async function Ls(t, e) {
|
|
|
6542
6542
|
r,
|
|
6543
6543
|
void 0,
|
|
6544
6544
|
a
|
|
6545
|
-
) : [],
|
|
6546
|
-
for (const H of
|
|
6545
|
+
) : [], I = [...k, ...E], O = [];
|
|
6546
|
+
for (const H of I)
|
|
6547
6547
|
(await t.env.data.rolePermissions.list(
|
|
6548
6548
|
n,
|
|
6549
6549
|
H.id
|
|
6550
6550
|
)).forEach((de) => {
|
|
6551
|
-
de.resource_server_identifier === i &&
|
|
6551
|
+
de.resource_server_identifier === i && O.push(de.permission_name);
|
|
6552
6552
|
});
|
|
6553
6553
|
const A = /* @__PURE__ */ new Set();
|
|
6554
6554
|
w.forEach((H) => {
|
|
6555
6555
|
H.resource_server_identifier === i && A.add(H.permission_name);
|
|
6556
|
-
}),
|
|
6556
|
+
}), O.forEach((H) => {
|
|
6557
6557
|
A.add(H);
|
|
6558
6558
|
});
|
|
6559
|
-
const
|
|
6559
|
+
const N = Array.from(A), T = N.filter(
|
|
6560
6560
|
(H) => f.includes(H)
|
|
6561
6561
|
), G = s.filter(
|
|
6562
6562
|
(H) => !f.includes(H) && !Bl.includes(H)
|
|
@@ -6564,7 +6564,7 @@ async function Ls(t, e) {
|
|
|
6564
6564
|
if (_ === "access_token_authz")
|
|
6565
6565
|
return { scopes: [.../* @__PURE__ */ new Set([...c, ...G])], permissions: T };
|
|
6566
6566
|
const X = s.filter(
|
|
6567
|
-
(H) => f.includes(H) &&
|
|
6567
|
+
(H) => f.includes(H) && N.includes(H)
|
|
6568
6568
|
);
|
|
6569
6569
|
return { scopes: [
|
|
6570
6570
|
.../* @__PURE__ */ new Set([...c, ...X, ...G])
|
|
@@ -6583,7 +6583,7 @@ async function Na(t, e) {
|
|
|
6583
6583
|
} = e, { signingKeys: d } = await t.env.data.keys.list({
|
|
6584
6584
|
q: "type:jwt_signing"
|
|
6585
6585
|
}), p = d.filter(
|
|
6586
|
-
(
|
|
6586
|
+
(N) => !N.revoked_at || new Date(N.revoked_at) > /* @__PURE__ */ new Date()
|
|
6587
6587
|
), f = p[p.length - 1];
|
|
6588
6588
|
if (!f?.pkcs7)
|
|
6589
6589
|
throw new D(500, { message: "No signing key available" });
|
|
@@ -6639,52 +6639,52 @@ async function Na(t, e) {
|
|
|
6639
6639
|
},
|
|
6640
6640
|
{
|
|
6641
6641
|
accessToken: {
|
|
6642
|
-
setCustomClaim: (
|
|
6643
|
-
if ($f.includes(
|
|
6644
|
-
throw new Error(`Cannot overwrite reserved claim '${
|
|
6645
|
-
k[
|
|
6642
|
+
setCustomClaim: (N, T) => {
|
|
6643
|
+
if ($f.includes(N))
|
|
6644
|
+
throw new Error(`Cannot overwrite reserved claim '${N}'`);
|
|
6645
|
+
k[N] = T;
|
|
6646
6646
|
}
|
|
6647
6647
|
},
|
|
6648
6648
|
idToken: {
|
|
6649
|
-
setCustomClaim: (
|
|
6650
|
-
if ($f.includes(
|
|
6651
|
-
throw new Error(`Cannot overwrite reserved claim '${
|
|
6652
|
-
E && (E[
|
|
6649
|
+
setCustomClaim: (N, T) => {
|
|
6650
|
+
if ($f.includes(N))
|
|
6651
|
+
throw new Error(`Cannot overwrite reserved claim '${N}'`);
|
|
6652
|
+
E && (E[N] = T);
|
|
6653
6653
|
}
|
|
6654
6654
|
},
|
|
6655
6655
|
access: {
|
|
6656
|
-
deny: (
|
|
6656
|
+
deny: (N) => {
|
|
6657
6657
|
throw new D(400, {
|
|
6658
|
-
message: `Access denied: ${
|
|
6658
|
+
message: `Access denied: ${N}`
|
|
6659
6659
|
});
|
|
6660
6660
|
}
|
|
6661
6661
|
},
|
|
6662
6662
|
token: {
|
|
6663
|
-
createServiceToken: async (
|
|
6663
|
+
createServiceToken: async (N) => {
|
|
6664
6664
|
const { createServiceToken: T } = await Promise.resolve().then(() => nv);
|
|
6665
6665
|
return (await T(
|
|
6666
6666
|
t,
|
|
6667
6667
|
t.var.tenant_id,
|
|
6668
|
-
|
|
6669
|
-
|
|
6668
|
+
N.scope,
|
|
6669
|
+
N.expiresInSeconds
|
|
6670
6670
|
)).access_token;
|
|
6671
6671
|
}
|
|
6672
6672
|
}
|
|
6673
6673
|
}
|
|
6674
6674
|
);
|
|
6675
|
-
const
|
|
6675
|
+
const I = {
|
|
6676
6676
|
expiresIn: l ? new Rs(1, "h") : new Rs(1, "d"),
|
|
6677
6677
|
headers: {
|
|
6678
6678
|
kid: f.kid
|
|
6679
6679
|
}
|
|
6680
|
-
},
|
|
6680
|
+
}, O = await yf(
|
|
6681
6681
|
"RS256",
|
|
6682
6682
|
g,
|
|
6683
6683
|
k,
|
|
6684
|
-
|
|
6685
|
-
), A = E ? await yf("RS256", g, E,
|
|
6684
|
+
I
|
|
6685
|
+
), A = E ? await yf("RS256", g, E, I) : void 0;
|
|
6686
6686
|
return {
|
|
6687
|
-
access_token:
|
|
6687
|
+
access_token: O,
|
|
6688
6688
|
refresh_token: e.refresh_token,
|
|
6689
6689
|
id_token: A,
|
|
6690
6690
|
token_type: "Bearer",
|
|
@@ -6771,7 +6771,7 @@ async function om(t, { user: e, client: n, loginSession: r }) {
|
|
|
6771
6771
|
session_id: i.id
|
|
6772
6772
|
}), i;
|
|
6773
6773
|
}
|
|
6774
|
-
async function
|
|
6774
|
+
async function Ht(t, e) {
|
|
6775
6775
|
const { authParams: n, client: r, ticketAuth: i } = e;
|
|
6776
6776
|
let { user: s } = e;
|
|
6777
6777
|
const a = n.response_type || At.CODE, c = n.response_mode || sn.QUERY;
|
|
@@ -6956,9 +6956,9 @@ async function tv(t, e) {
|
|
|
6956
6956
|
if (e.authParams.audience)
|
|
6957
6957
|
try {
|
|
6958
6958
|
let c;
|
|
6959
|
-
if (e.grantType ===
|
|
6959
|
+
if (e.grantType === Dt.ClientCredential || !n && !e.user)
|
|
6960
6960
|
c = await Ls(t, {
|
|
6961
|
-
grantType:
|
|
6961
|
+
grantType: Dt.ClientCredential,
|
|
6962
6962
|
tenantId: e.client.tenant.id,
|
|
6963
6963
|
clientId: e.client.client_id,
|
|
6964
6964
|
audience: e.authParams.audience,
|
|
@@ -8406,7 +8406,7 @@ class Uv {
|
|
|
8406
8406
|
}
|
|
8407
8407
|
}
|
|
8408
8408
|
const Tf = new Uv();
|
|
8409
|
-
function
|
|
8409
|
+
function Bt(t, e) {
|
|
8410
8410
|
return (t << 32 - e | t >>> e) >>> 0;
|
|
8411
8411
|
}
|
|
8412
8412
|
function Dv(t) {
|
|
@@ -8460,12 +8460,12 @@ class Mv {
|
|
|
8460
8460
|
for (let d = 0; d < 16; d++)
|
|
8461
8461
|
this.w[d] = (this.blocks[d * 4] << 24 | this.blocks[d * 4 + 1] << 16 | this.blocks[d * 4 + 2] << 8 | this.blocks[d * 4 + 3]) >>> 0;
|
|
8462
8462
|
for (let d = 16; d < 64; d++) {
|
|
8463
|
-
const p = (
|
|
8463
|
+
const p = (Bt(this.w[d - 2], 17) ^ Bt(this.w[d - 2], 19) ^ this.w[d - 2] >>> 10) >>> 0, f = (Bt(this.w[d - 15], 7) ^ Bt(this.w[d - 15], 18) ^ this.w[d - 15] >>> 3) >>> 0;
|
|
8464
8464
|
this.w[d] = p + this.w[d - 7] + f + this.w[d - 16] | 0;
|
|
8465
8465
|
}
|
|
8466
8466
|
let e = this.H[0], n = this.H[1], r = this.H[2], i = this.H[3], s = this.H[4], a = this.H[5], c = this.H[6], l = this.H[7];
|
|
8467
8467
|
for (let d = 0; d < 64; d++) {
|
|
8468
|
-
const p = (
|
|
8468
|
+
const p = (Bt(s, 6) ^ Bt(s, 11) ^ Bt(s, 25)) >>> 0, f = (s & a ^ ~s & c) >>> 0, g = l + p + f + zv[d] + this.w[d] | 0, _ = (Bt(e, 2) ^ Bt(e, 13) ^ Bt(e, 22)) >>> 0, w = (e & n ^ e & r ^ n & r) >>> 0, k = _ + w | 0;
|
|
8469
8469
|
l = c, c = a, a = s, s = i + g | 0, i = r, r = n, n = e, e = g + k | 0;
|
|
8470
8470
|
}
|
|
8471
8471
|
this.H[0] = e + this.H[0] | 0, this.H[1] = n + this.H[1] | 0, this.H[2] = r + this.H[2] | 0, this.H[3] = i + this.H[3] | 0, this.H[4] = s + this.H[4] | 0, this.H[5] = a + this.H[5] | 0, this.H[6] = c + this.H[6] | 0, this.H[7] = l + this.H[7] | 0;
|
|
@@ -10053,7 +10053,7 @@ const Ff = dt.extend({
|
|
|
10053
10053
|
k
|
|
10054
10054
|
);
|
|
10055
10055
|
if (d) {
|
|
10056
|
-
const
|
|
10056
|
+
const O = {
|
|
10057
10057
|
user_id: w,
|
|
10058
10058
|
// Use the original user_id, not result.user_id
|
|
10059
10059
|
password: await Yn.hash(d, 10),
|
|
@@ -10062,14 +10062,14 @@ const Ff = dt.extend({
|
|
|
10062
10062
|
};
|
|
10063
10063
|
await t.env.data.passwords.create(
|
|
10064
10064
|
t.var.tenant_id,
|
|
10065
|
-
|
|
10065
|
+
O
|
|
10066
10066
|
);
|
|
10067
10067
|
}
|
|
10068
10068
|
t.set("user_id", E.user_id), await ie(t, t.var.tenant_id, {
|
|
10069
10069
|
type: re.SUCCESS_API_OPERATION,
|
|
10070
10070
|
description: "User created"
|
|
10071
10071
|
});
|
|
10072
|
-
const
|
|
10072
|
+
const I = E.identities ? E : {
|
|
10073
10073
|
...E,
|
|
10074
10074
|
identities: [
|
|
10075
10075
|
{
|
|
@@ -10080,7 +10080,7 @@ const Ff = dt.extend({
|
|
|
10080
10080
|
}
|
|
10081
10081
|
]
|
|
10082
10082
|
};
|
|
10083
|
-
return t.json(tn.parse(
|
|
10083
|
+
return t.json(tn.parse(I), {
|
|
10084
10084
|
status: 201
|
|
10085
10085
|
});
|
|
10086
10086
|
} catch (k) {
|
|
@@ -10794,7 +10794,7 @@ function J2() {
|
|
|
10794
10794
|
} : function($, S) {
|
|
10795
10795
|
return $[S];
|
|
10796
10796
|
}
|
|
10797
|
-
}, g = Object.getPrototypeOf(Function), _ = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : u1(), w = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : p1(), k = typeof WeakMap == "function" ? WeakMap : f1(), E = s ? Symbol.for("@reflect-metadata:registry") : void 0,
|
|
10797
|
+
}, g = Object.getPrototypeOf(Function), _ = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : u1(), w = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : p1(), k = typeof WeakMap == "function" ? WeakMap : f1(), E = s ? Symbol.for("@reflect-metadata:registry") : void 0, I = c1(), O = l1(I);
|
|
10798
10798
|
function A($, S, C, L) {
|
|
10799
10799
|
if (W(C)) {
|
|
10800
10800
|
if (!Mp($))
|
|
@@ -10809,11 +10809,11 @@ function J2() {
|
|
|
10809
10809
|
throw new TypeError();
|
|
10810
10810
|
if (!Pe(L) && !W(L) && !be(L))
|
|
10811
10811
|
throw new TypeError();
|
|
10812
|
-
return be(L) && (L = void 0), C =
|
|
10812
|
+
return be(L) && (L = void 0), C = Rt(C), we($, S, C, L);
|
|
10813
10813
|
}
|
|
10814
10814
|
}
|
|
10815
10815
|
n("decorate", A);
|
|
10816
|
-
function
|
|
10816
|
+
function N($, S) {
|
|
10817
10817
|
function C(L, Z) {
|
|
10818
10818
|
if (!Pe(L))
|
|
10819
10819
|
throw new TypeError();
|
|
@@ -10823,55 +10823,55 @@ function J2() {
|
|
|
10823
10823
|
}
|
|
10824
10824
|
return C;
|
|
10825
10825
|
}
|
|
10826
|
-
n("metadata",
|
|
10826
|
+
n("metadata", N);
|
|
10827
10827
|
function T($, S, C, L) {
|
|
10828
10828
|
if (!Pe(C))
|
|
10829
10829
|
throw new TypeError();
|
|
10830
|
-
return W(L) || (L =
|
|
10830
|
+
return W(L) || (L = Rt(L)), Qt($, S, C, L);
|
|
10831
10831
|
}
|
|
10832
10832
|
n("defineMetadata", T);
|
|
10833
10833
|
function G($, S, C) {
|
|
10834
10834
|
if (!Pe(S))
|
|
10835
10835
|
throw new TypeError();
|
|
10836
|
-
return W(C) || (C =
|
|
10836
|
+
return W(C) || (C = Rt(C)), Yt($, S, C);
|
|
10837
10837
|
}
|
|
10838
10838
|
n("hasMetadata", G);
|
|
10839
10839
|
function X($, S, C) {
|
|
10840
10840
|
if (!Pe(S))
|
|
10841
10841
|
throw new TypeError();
|
|
10842
|
-
return W(C) || (C =
|
|
10842
|
+
return W(C) || (C = Rt(C)), Ke($, S, C);
|
|
10843
10843
|
}
|
|
10844
10844
|
n("hasOwnMetadata", X);
|
|
10845
10845
|
function se($, S, C) {
|
|
10846
10846
|
if (!Pe(S))
|
|
10847
10847
|
throw new TypeError();
|
|
10848
|
-
return W(C) || (C =
|
|
10848
|
+
return W(C) || (C = Rt(C)), Qe($, S, C);
|
|
10849
10849
|
}
|
|
10850
10850
|
n("getMetadata", se);
|
|
10851
10851
|
function H($, S, C) {
|
|
10852
10852
|
if (!Pe(S))
|
|
10853
10853
|
throw new TypeError();
|
|
10854
|
-
return W(C) || (C =
|
|
10854
|
+
return W(C) || (C = Rt(C)), Tt($, S, C);
|
|
10855
10855
|
}
|
|
10856
10856
|
n("getOwnMetadata", H);
|
|
10857
10857
|
function ce($, S) {
|
|
10858
10858
|
if (!Pe($))
|
|
10859
10859
|
throw new TypeError();
|
|
10860
|
-
return W(S) || (S =
|
|
10860
|
+
return W(S) || (S = Rt(S)), en($, S);
|
|
10861
10861
|
}
|
|
10862
10862
|
n("getMetadataKeys", ce);
|
|
10863
10863
|
function de($, S) {
|
|
10864
10864
|
if (!Pe($))
|
|
10865
10865
|
throw new TypeError();
|
|
10866
|
-
return W(S) || (S =
|
|
10866
|
+
return W(S) || (S = Rt(S)), Be($, S);
|
|
10867
10867
|
}
|
|
10868
10868
|
n("getOwnMetadataKeys", de);
|
|
10869
10869
|
function ge($, S, C) {
|
|
10870
10870
|
if (!Pe(S))
|
|
10871
10871
|
throw new TypeError();
|
|
10872
|
-
if (W(C) || (C =
|
|
10872
|
+
if (W(C) || (C = Rt(C)), !Pe(S))
|
|
10873
10873
|
throw new TypeError();
|
|
10874
|
-
W(C) || (C =
|
|
10874
|
+
W(C) || (C = Rt(C));
|
|
10875
10875
|
var L = xi(
|
|
10876
10876
|
S,
|
|
10877
10877
|
C,
|
|
@@ -10922,12 +10922,12 @@ function J2() {
|
|
|
10922
10922
|
function Qe($, S, C) {
|
|
10923
10923
|
var L = Ke($, S, C);
|
|
10924
10924
|
if (L)
|
|
10925
|
-
return
|
|
10925
|
+
return Tt($, S, C);
|
|
10926
10926
|
var Z = Lc(S);
|
|
10927
10927
|
if (!be(Z))
|
|
10928
10928
|
return Qe($, Z, C);
|
|
10929
10929
|
}
|
|
10930
|
-
function
|
|
10930
|
+
function Tt($, S, C) {
|
|
10931
10931
|
var L = xi(
|
|
10932
10932
|
S,
|
|
10933
10933
|
C,
|
|
@@ -11054,7 +11054,7 @@ function J2() {
|
|
|
11054
11054
|
function o1($) {
|
|
11055
11055
|
return "" + $;
|
|
11056
11056
|
}
|
|
11057
|
-
function
|
|
11057
|
+
function Rt($) {
|
|
11058
11058
|
var S = r1($);
|
|
11059
11059
|
return $r(S) ? S : o1(S);
|
|
11060
11060
|
}
|
|
@@ -11212,7 +11212,7 @@ function J2() {
|
|
|
11212
11212
|
OrdinaryOwnMetadataKeys: oe,
|
|
11213
11213
|
OrdinaryDeleteMetadata: U
|
|
11214
11214
|
};
|
|
11215
|
-
return
|
|
11215
|
+
return I.registerProvider(C), C;
|
|
11216
11216
|
function L(q, V, K) {
|
|
11217
11217
|
var ae = S.get(q), me = !1;
|
|
11218
11218
|
if (W(ae)) {
|
|
@@ -11314,12 +11314,12 @@ function J2() {
|
|
|
11314
11314
|
return oe;
|
|
11315
11315
|
}
|
|
11316
11316
|
function xi($, S, C) {
|
|
11317
|
-
var L =
|
|
11317
|
+
var L = I.getProvider($, S);
|
|
11318
11318
|
if (!W(L))
|
|
11319
11319
|
return L;
|
|
11320
11320
|
if (C) {
|
|
11321
|
-
if (
|
|
11322
|
-
return
|
|
11321
|
+
if (I.setProvider($, S, O))
|
|
11322
|
+
return O;
|
|
11323
11323
|
throw new Error("Illegal state.");
|
|
11324
11324
|
}
|
|
11325
11325
|
}
|
|
@@ -11614,7 +11614,7 @@ class Gf {
|
|
|
11614
11614
|
return decodeURIComponent(escape(r));
|
|
11615
11615
|
}
|
|
11616
11616
|
}
|
|
11617
|
-
class
|
|
11617
|
+
class Lt {
|
|
11618
11618
|
static toString(e, n = !1) {
|
|
11619
11619
|
const r = B.toArrayBuffer(e), i = new DataView(r);
|
|
11620
11620
|
let s = "";
|
|
@@ -11655,10 +11655,10 @@ class F {
|
|
|
11655
11655
|
case "base64url":
|
|
11656
11656
|
return this.ToBase64Url(r);
|
|
11657
11657
|
case "utf16le":
|
|
11658
|
-
return
|
|
11658
|
+
return Lt.toString(r, !0);
|
|
11659
11659
|
case "utf16":
|
|
11660
11660
|
case "utf16be":
|
|
11661
|
-
return
|
|
11661
|
+
return Lt.toString(r);
|
|
11662
11662
|
default:
|
|
11663
11663
|
throw new Error(`Unknown type of encoding '${n}'`);
|
|
11664
11664
|
}
|
|
@@ -11678,10 +11678,10 @@ class F {
|
|
|
11678
11678
|
case "base64url":
|
|
11679
11679
|
return this.FromBase64Url(e);
|
|
11680
11680
|
case "utf16le":
|
|
11681
|
-
return
|
|
11681
|
+
return Lt.fromString(e, !0);
|
|
11682
11682
|
case "utf16":
|
|
11683
11683
|
case "utf16be":
|
|
11684
|
-
return
|
|
11684
|
+
return Lt.fromString(e);
|
|
11685
11685
|
default:
|
|
11686
11686
|
throw new Error(`Unknown type of encoding '${n}'`);
|
|
11687
11687
|
}
|
|
@@ -11721,10 +11721,10 @@ class F {
|
|
|
11721
11721
|
return Gf.fromString(e);
|
|
11722
11722
|
case "utf16":
|
|
11723
11723
|
case "utf16be":
|
|
11724
|
-
return
|
|
11724
|
+
return Lt.fromString(e);
|
|
11725
11725
|
case "utf16le":
|
|
11726
11726
|
case "usc2":
|
|
11727
|
-
return
|
|
11727
|
+
return Lt.fromString(e, !0);
|
|
11728
11728
|
default:
|
|
11729
11729
|
throw new Error(`Unknown type of encoding '${n}'`);
|
|
11730
11730
|
}
|
|
@@ -11737,10 +11737,10 @@ class F {
|
|
|
11737
11737
|
return Gf.toString(e);
|
|
11738
11738
|
case "utf16":
|
|
11739
11739
|
case "utf16be":
|
|
11740
|
-
return
|
|
11740
|
+
return Lt.toString(e);
|
|
11741
11741
|
case "utf16le":
|
|
11742
11742
|
case "usc2":
|
|
11743
|
-
return
|
|
11743
|
+
return Lt.toString(e, !0);
|
|
11744
11744
|
default:
|
|
11745
11745
|
throw new Error(`Unknown type of encoding '${n}'`);
|
|
11746
11746
|
}
|
|
@@ -11783,10 +11783,10 @@ class F {
|
|
|
11783
11783
|
return r.buffer;
|
|
11784
11784
|
}
|
|
11785
11785
|
static ToUtf16String(e, n = !1) {
|
|
11786
|
-
return
|
|
11786
|
+
return Lt.toString(e, n);
|
|
11787
11787
|
}
|
|
11788
11788
|
static FromUtf16String(e, n = !1) {
|
|
11789
|
-
return
|
|
11789
|
+
return Lt.fromString(e, n);
|
|
11790
11790
|
}
|
|
11791
11791
|
static Base64Padding(e) {
|
|
11792
11792
|
const n = 4 - e.length % 4;
|
|
@@ -11945,7 +11945,7 @@ class Ba {
|
|
|
11945
11945
|
return ju(this.items);
|
|
11946
11946
|
}
|
|
11947
11947
|
}
|
|
11948
|
-
const Ai = [new Uint8Array([1])], Wf = "0123456789", Wc = "name", Jf = "valueHexView", r3 = "isHexOnly", i3 = "idBlock", o3 = "tagClass", s3 = "tagNumber", a3 = "isConstructed", c3 = "fromBER", l3 = "toBER", d3 = "local", it = "",
|
|
11948
|
+
const Ai = [new Uint8Array([1])], Wf = "0123456789", Wc = "name", Jf = "valueHexView", r3 = "isHexOnly", i3 = "idBlock", o3 = "tagClass", s3 = "tagNumber", a3 = "isConstructed", c3 = "fromBER", l3 = "toBER", d3 = "local", it = "", Kt = new ArrayBuffer(0), La = new Uint8Array(0), yo = "EndOfContent", Nm = "OCTET STRING", jm = "BIT STRING";
|
|
11949
11949
|
function Gt(t) {
|
|
11950
11950
|
var e;
|
|
11951
11951
|
return e = class extends t {
|
|
@@ -11969,7 +11969,7 @@ function Gt(t) {
|
|
|
11969
11969
|
return this.valueHexView = a.subarray(i, c), this.valueHexView.length ? (this.blockLength = s, c) : (this.warnings.push("Zero buffer length"), i);
|
|
11970
11970
|
}
|
|
11971
11971
|
toBER(r = !1) {
|
|
11972
|
-
return this.isHexOnly ? r ? new ArrayBuffer(this.valueHexView.byteLength) : this.valueHexView.byteLength === this.valueHexView.buffer.byteLength ? this.valueHexView.buffer : this.valueHexView.slice().buffer : (this.error = "Flag 'isHexOnly' is not set, abort",
|
|
11972
|
+
return this.isHexOnly ? r ? new ArrayBuffer(this.valueHexView.byteLength) : this.valueHexView.byteLength === this.valueHexView.buffer.byteLength ? this.valueHexView.buffer : this.valueHexView.slice().buffer : (this.error = "Flag 'isHexOnly' is not set, abort", Kt);
|
|
11973
11973
|
}
|
|
11974
11974
|
toJSON() {
|
|
11975
11975
|
return {
|
|
@@ -12034,7 +12034,7 @@ class Im extends Gt(wr) {
|
|
|
12034
12034
|
n |= 192;
|
|
12035
12035
|
break;
|
|
12036
12036
|
default:
|
|
12037
|
-
return this.error = "Unknown tag class",
|
|
12037
|
+
return this.error = "Unknown tag class", Kt;
|
|
12038
12038
|
}
|
|
12039
12039
|
if (this.isConstructed && (n |= 32), this.tagNumber < 31 && !this.isHexOnly) {
|
|
12040
12040
|
const i = new Uint8Array(1);
|
|
@@ -12170,7 +12170,7 @@ class Om extends wr {
|
|
|
12170
12170
|
if (this.longFormUsed) {
|
|
12171
12171
|
const i = nr(this.length, 8);
|
|
12172
12172
|
if (i.byteLength > 127)
|
|
12173
|
-
return this.error = "Too big length",
|
|
12173
|
+
return this.error = "Too big length", Kt;
|
|
12174
12174
|
if (n = new ArrayBuffer(i.byteLength + 1), e)
|
|
12175
12175
|
return n;
|
|
12176
12176
|
const s = new Uint8Array(i);
|
|
@@ -12212,7 +12212,7 @@ class qe extends wr {
|
|
|
12212
12212
|
const a = this.lenBlock.toBER(e);
|
|
12213
12213
|
r.write(a), r.write(s);
|
|
12214
12214
|
}
|
|
12215
|
-
return n ?
|
|
12215
|
+
return n ? Kt : r.final();
|
|
12216
12216
|
}
|
|
12217
12217
|
toJSON() {
|
|
12218
12218
|
const e = {
|
|
@@ -12482,7 +12482,7 @@ class In extends nt {
|
|
|
12482
12482
|
const r = n || new Ba();
|
|
12483
12483
|
for (let i = 0; i < this.value.length; i++)
|
|
12484
12484
|
this.value[i].toBER(e, r);
|
|
12485
|
-
return n ?
|
|
12485
|
+
return n ? Kt : r.final();
|
|
12486
12486
|
}
|
|
12487
12487
|
toJSON() {
|
|
12488
12488
|
const e = {
|
|
@@ -12526,7 +12526,7 @@ class Lm extends nt {
|
|
|
12526
12526
|
return n;
|
|
12527
12527
|
}
|
|
12528
12528
|
toBER(e) {
|
|
12529
|
-
return
|
|
12529
|
+
return Kt;
|
|
12530
12530
|
}
|
|
12531
12531
|
}
|
|
12532
12532
|
Lm.override = "EndOfContentValueBlock";
|
|
@@ -12741,8 +12741,10 @@ class Fm extends Gt(In) {
|
|
|
12741
12741
|
return In.prototype.toBER.call(this, e, n);
|
|
12742
12742
|
if (e)
|
|
12743
12743
|
return new ArrayBuffer(this.valueHexView.byteLength + 1);
|
|
12744
|
-
if (!this.valueHexView.byteLength)
|
|
12745
|
-
|
|
12744
|
+
if (!this.valueHexView.byteLength) {
|
|
12745
|
+
const i = new Uint8Array(1);
|
|
12746
|
+
return i[0] = 0, i.buffer;
|
|
12747
|
+
}
|
|
12746
12748
|
const r = new Uint8Array(this.valueHexView.length + 1);
|
|
12747
12749
|
return r[0] = this.unusedBits, r.set(this.valueHexView, 1), r.buffer;
|
|
12748
12750
|
}
|
|
@@ -13017,7 +13019,7 @@ class Ml extends Gt(nt) {
|
|
|
13017
13019
|
}
|
|
13018
13020
|
const n = nr(this.valueDec, 7);
|
|
13019
13021
|
if (n.byteLength === 0)
|
|
13020
|
-
return this.error = "Error during encoding SID value",
|
|
13022
|
+
return this.error = "Error during encoding SID value", Kt;
|
|
13021
13023
|
const r = new Uint8Array(n.byteLength);
|
|
13022
13024
|
if (!e) {
|
|
13023
13025
|
const i = new Uint8Array(n), s = n.byteLength - 1;
|
|
@@ -13066,7 +13068,7 @@ class Gm extends nt {
|
|
|
13066
13068
|
for (let r = 0; r < this.value.length; r++) {
|
|
13067
13069
|
const i = this.value[r].toBER(e);
|
|
13068
13070
|
if (i.byteLength === 0)
|
|
13069
|
-
return this.error = this.value[r].error,
|
|
13071
|
+
return this.error = this.value[r].error, Kt;
|
|
13070
13072
|
n.push(i);
|
|
13071
13073
|
}
|
|
13072
13074
|
return ju(n);
|
|
@@ -13182,7 +13184,7 @@ class zl extends Gt(wr) {
|
|
|
13182
13184
|
}
|
|
13183
13185
|
const n = nr(this.valueDec, 7);
|
|
13184
13186
|
if (n.byteLength === 0)
|
|
13185
|
-
return this.error = "Error during encoding SID value",
|
|
13187
|
+
return this.error = "Error during encoding SID value", Kt;
|
|
13186
13188
|
const r = new Uint8Array(n.byteLength);
|
|
13187
13189
|
if (!e) {
|
|
13188
13190
|
const i = new Uint8Array(n), s = n.byteLength - 1;
|
|
@@ -13223,7 +13225,7 @@ class Jm extends nt {
|
|
|
13223
13225
|
for (let i = 0; i < this.value.length; i++) {
|
|
13224
13226
|
const s = this.value[i].toBER(e);
|
|
13225
13227
|
if (s.byteLength === 0)
|
|
13226
|
-
return this.error = this.value[i].error,
|
|
13228
|
+
return this.error = this.value[i].error, Kt;
|
|
13227
13229
|
r.push(s);
|
|
13228
13230
|
}
|
|
13229
13231
|
return ju(r);
|
|
@@ -13295,14 +13297,14 @@ Zm = Ct;
|
|
|
13295
13297
|
z.Sequence = Zm;
|
|
13296
13298
|
Ct.NAME = "SEQUENCE";
|
|
13297
13299
|
var Ym;
|
|
13298
|
-
let
|
|
13300
|
+
let qt = class extends tt {
|
|
13299
13301
|
constructor(e = {}) {
|
|
13300
13302
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 17;
|
|
13301
13303
|
}
|
|
13302
13304
|
};
|
|
13303
|
-
Ym =
|
|
13305
|
+
Ym = qt;
|
|
13304
13306
|
z.Set = Ym;
|
|
13305
|
-
|
|
13307
|
+
qt.NAME = "SET";
|
|
13306
13308
|
class Qm extends Gt(nt) {
|
|
13307
13309
|
constructor({ ...e } = {}) {
|
|
13308
13310
|
super(e), this.isHexOnly = !0, this.value = it;
|
|
@@ -13986,7 +13988,7 @@ const k_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13986
13988
|
RelativeObjectIdentifier: Ru,
|
|
13987
13989
|
Repeated: qs,
|
|
13988
13990
|
Sequence: Ct,
|
|
13989
|
-
Set:
|
|
13991
|
+
Set: qt,
|
|
13990
13992
|
TIME: Mu,
|
|
13991
13993
|
TeletexString: Va,
|
|
13992
13994
|
TimeOfDay: Lu,
|
|
@@ -14001,10 +14003,10 @@ const k_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14001
14003
|
fromBER: qr,
|
|
14002
14004
|
verifySchema: m3
|
|
14003
14005
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
14004
|
-
var
|
|
14006
|
+
var j;
|
|
14005
14007
|
(function(t) {
|
|
14006
14008
|
t[t.Sequence = 0] = "Sequence", t[t.Set = 1] = "Set", t[t.Choice = 2] = "Choice";
|
|
14007
|
-
})(
|
|
14009
|
+
})(j || (j = {}));
|
|
14008
14010
|
var b;
|
|
14009
14011
|
(function(t) {
|
|
14010
14012
|
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";
|
|
@@ -14212,7 +14214,7 @@ class D3 {
|
|
|
14212
14214
|
n.schema || (n.schema = this.create(e, !0));
|
|
14213
14215
|
}
|
|
14214
14216
|
createDefault(e) {
|
|
14215
|
-
const n = { type:
|
|
14217
|
+
const n = { type: j.Sequence, items: {} }, r = this.findParentSchema(e);
|
|
14216
14218
|
return r && (Object.assign(n, r), n.items = Object.assign({}, n.items, r.items)), n;
|
|
14217
14219
|
}
|
|
14218
14220
|
create(e, n) {
|
|
@@ -14225,11 +14227,11 @@ class D3 {
|
|
|
14225
14227
|
if (!f)
|
|
14226
14228
|
throw new Error(`Cannot get ASN1 class by name '${p}'`);
|
|
14227
14229
|
l = new f({ name: c });
|
|
14228
|
-
} else on(a.type) ? l = new a.type().toSchema(c) : a.optional ? this.get(a.type).type ===
|
|
14230
|
+
} else on(a.type) ? l = new a.type().toSchema(c) : a.optional ? this.get(a.type).type === j.Choice ? l = new ir({ name: c }) : (l = this.create(a.type, !1), l.name = c) : l = new ir({ name: c });
|
|
14229
14231
|
const d = !!a.optional || a.defaultValue !== void 0;
|
|
14230
14232
|
if (a.repeated) {
|
|
14231
14233
|
l.name = "";
|
|
14232
|
-
const p = a.repeated === "set" ?
|
|
14234
|
+
const p = a.repeated === "set" ? qt : Ct;
|
|
14233
14235
|
l = new p({
|
|
14234
14236
|
name: "",
|
|
14235
14237
|
value: [new qs({ name: c, value: l })]
|
|
@@ -14261,11 +14263,11 @@ class D3 {
|
|
|
14261
14263
|
l.optional = d, i.push(l);
|
|
14262
14264
|
}
|
|
14263
14265
|
switch (r.type) {
|
|
14264
|
-
case
|
|
14266
|
+
case j.Sequence:
|
|
14265
14267
|
return new Ct({ value: i, name: "" });
|
|
14266
|
-
case
|
|
14267
|
-
return new
|
|
14268
|
-
case
|
|
14268
|
+
case j.Set:
|
|
14269
|
+
return new qt({ value: i, name: "" });
|
|
14270
|
+
case j.Choice:
|
|
14269
14271
|
return new zu({ value: i, name: "" });
|
|
14270
14272
|
default:
|
|
14271
14273
|
throw new Error("Unsupported ASN1 type in use");
|
|
@@ -14324,12 +14326,12 @@ class M3 {
|
|
|
14324
14326
|
}
|
|
14325
14327
|
}
|
|
14326
14328
|
static handleChoiceTypes(e, n, r, i) {
|
|
14327
|
-
if (e.constructor === tt && n.type ===
|
|
14329
|
+
if (e.constructor === tt && n.type === j.Choice && e.idBlock.tagClass === 3)
|
|
14328
14330
|
for (const s in n.items) {
|
|
14329
14331
|
const a = n.items[s];
|
|
14330
14332
|
if (a.context === e.idBlock.tagNumber && a.implicit && typeof a.type == "function" && De.has(a.type)) {
|
|
14331
14333
|
const c = De.get(a.type);
|
|
14332
|
-
if (c && c.type ===
|
|
14334
|
+
if (c && c.type === j.Sequence) {
|
|
14333
14335
|
const l = new Ct();
|
|
14334
14336
|
if ("value" in e.valueBlock && Array.isArray(e.valueBlock.value) && "value" in l.valueBlock) {
|
|
14335
14337
|
l.valueBlock.value = e.valueBlock.value;
|
|
@@ -14339,7 +14341,7 @@ class M3 {
|
|
|
14339
14341
|
}
|
|
14340
14342
|
}
|
|
14341
14343
|
}
|
|
14342
|
-
else if (e.constructor === tt && n.type !==
|
|
14344
|
+
else if (e.constructor === tt && n.type !== j.Choice) {
|
|
14343
14345
|
const s = new tt({
|
|
14344
14346
|
idBlock: {
|
|
14345
14347
|
tagClass: 3,
|
|
@@ -14354,7 +14356,7 @@ class M3 {
|
|
|
14354
14356
|
return null;
|
|
14355
14357
|
}
|
|
14356
14358
|
static handleSequenceTypes(e, n, r, i) {
|
|
14357
|
-
if (n.type ===
|
|
14359
|
+
if (n.type === j.Sequence) {
|
|
14358
14360
|
const s = En({}, e, i);
|
|
14359
14361
|
if (!s.verified)
|
|
14360
14362
|
throw new Ei(`Data does not match to ${r.name} ASN1 schema.${s.result.error ? ` ${s.result.error}` : ""}`);
|
|
@@ -14399,7 +14401,7 @@ class M3 {
|
|
|
14399
14401
|
return r.fromASN(e);
|
|
14400
14402
|
}
|
|
14401
14403
|
static isOptionalChoiceField(e) {
|
|
14402
|
-
return e.optional && typeof e.type == "function" && De.has(e.type) && De.get(e.type).type ===
|
|
14404
|
+
return e.optional && typeof e.type == "function" && De.has(e.type) && De.get(e.type).type === j.Choice;
|
|
14403
14405
|
}
|
|
14404
14406
|
static processOptionalChoiceField(e, n) {
|
|
14405
14407
|
try {
|
|
@@ -14441,7 +14443,7 @@ class M3 {
|
|
|
14441
14443
|
}
|
|
14442
14444
|
static processRepeatedPrimitiveItem(e, n, r) {
|
|
14443
14445
|
if (n.implicit) {
|
|
14444
|
-
const i = n.repeated === "sequence" ? Ct :
|
|
14446
|
+
const i = n.repeated === "sequence" ? Ct : qt, s = new i();
|
|
14445
14447
|
s.valueBlock = e.valueBlock;
|
|
14446
14448
|
const a = qr(s.toBER(!1));
|
|
14447
14449
|
if (a.offset === -1)
|
|
@@ -14496,12 +14498,12 @@ class M3 {
|
|
|
14496
14498
|
static handleImplicitTagging(e, n, r) {
|
|
14497
14499
|
if (n.implicit && typeof n.context == "number") {
|
|
14498
14500
|
const i = De.get(r);
|
|
14499
|
-
if (i.type ===
|
|
14501
|
+
if (i.type === j.Sequence) {
|
|
14500
14502
|
const s = new Ct();
|
|
14501
14503
|
if ("value" in e.valueBlock && Array.isArray(e.valueBlock.value) && "value" in s.valueBlock)
|
|
14502
14504
|
return s.valueBlock.value = e.valueBlock.value, s;
|
|
14503
|
-
} else if (i.type ===
|
|
14504
|
-
const s = new
|
|
14505
|
+
} else if (i.type === j.Set) {
|
|
14506
|
+
const s = new qt();
|
|
14505
14507
|
if ("value" in e.valueBlock && Array.isArray(e.valueBlock.value) && "value" in s.valueBlock)
|
|
14506
14508
|
return s.valueBlock.value = e.valueBlock.value, s;
|
|
14507
14509
|
}
|
|
@@ -14571,13 +14573,13 @@ class qu {
|
|
|
14571
14573
|
}
|
|
14572
14574
|
let s;
|
|
14573
14575
|
switch (r.type) {
|
|
14574
|
-
case
|
|
14576
|
+
case j.Sequence:
|
|
14575
14577
|
s = new Ct({ value: i });
|
|
14576
14578
|
break;
|
|
14577
|
-
case
|
|
14578
|
-
s = new
|
|
14579
|
+
case j.Set:
|
|
14580
|
+
s = new qt({ value: i });
|
|
14579
14581
|
break;
|
|
14580
|
-
case
|
|
14582
|
+
case j.Choice:
|
|
14581
14583
|
if (!i[0])
|
|
14582
14584
|
throw new Error(`Schema '${n.name}' has wrong data. Choice cannot be empty.`);
|
|
14583
14585
|
s = i[0];
|
|
@@ -14594,7 +14596,7 @@ class qu {
|
|
|
14594
14596
|
if (e.repeated) {
|
|
14595
14597
|
if (!Array.isArray(i))
|
|
14596
14598
|
throw new TypeError("Parameter 'objProp' should be type of Array.");
|
|
14597
|
-
const c = Array.from(i, (d) => a.toASN(d)), l = e.repeated === "sequence" ? Ct :
|
|
14599
|
+
const c = Array.from(i, (d) => a.toASN(d)), l = e.repeated === "sequence" ? Ct : qt;
|
|
14598
14600
|
s = new l({
|
|
14599
14601
|
value: c
|
|
14600
14602
|
});
|
|
@@ -14603,7 +14605,7 @@ class qu {
|
|
|
14603
14605
|
} else if (e.repeated) {
|
|
14604
14606
|
if (!Array.isArray(i))
|
|
14605
14607
|
throw new TypeError("Parameter 'objProp' should be type of Array.");
|
|
14606
|
-
const a = Array.from(i, (l) => this.toASN(l)), c = e.repeated === "sequence" ? Ct :
|
|
14608
|
+
const a = Array.from(i, (l) => this.toASN(l)), c = e.repeated === "sequence" ? Ct : qt;
|
|
14607
14609
|
s = new c({
|
|
14608
14610
|
value: a
|
|
14609
14611
|
});
|
|
@@ -14782,7 +14784,7 @@ h([
|
|
|
14782
14784
|
m({ type: b.BmpString })
|
|
14783
14785
|
], Fe.prototype, "bmpString", void 0);
|
|
14784
14786
|
Fe = h([
|
|
14785
|
-
P({ type:
|
|
14787
|
+
P({ type: j.Choice })
|
|
14786
14788
|
], Fe);
|
|
14787
14789
|
let Xr = class extends Fe {
|
|
14788
14790
|
constructor(e = {}) {
|
|
@@ -14799,7 +14801,7 @@ h([
|
|
|
14799
14801
|
m({ type: b.Any })
|
|
14800
14802
|
], Xr.prototype, "anyValue", void 0);
|
|
14801
14803
|
Xr = h([
|
|
14802
|
-
P({ type:
|
|
14804
|
+
P({ type: j.Choice })
|
|
14803
14805
|
], Xr);
|
|
14804
14806
|
class Qa {
|
|
14805
14807
|
constructor(e = {}) {
|
|
@@ -14818,7 +14820,7 @@ let Zr = ql = class extends pe {
|
|
|
14818
14820
|
}
|
|
14819
14821
|
};
|
|
14820
14822
|
Zr = ql = h([
|
|
14821
|
-
P({ type:
|
|
14823
|
+
P({ type: j.Set, itemType: Qa })
|
|
14822
14824
|
], Zr);
|
|
14823
14825
|
let Vl = Fl = class extends pe {
|
|
14824
14826
|
constructor(e) {
|
|
@@ -14826,7 +14828,7 @@ let Vl = Fl = class extends pe {
|
|
|
14826
14828
|
}
|
|
14827
14829
|
};
|
|
14828
14830
|
Vl = Fl = h([
|
|
14829
|
-
P({ type:
|
|
14831
|
+
P({ type: j.Sequence, itemType: Zr })
|
|
14830
14832
|
], Vl);
|
|
14831
14833
|
let Ne = Hl = class extends Vl {
|
|
14832
14834
|
constructor(e) {
|
|
@@ -14834,7 +14836,7 @@ let Ne = Hl = class extends Vl {
|
|
|
14834
14836
|
}
|
|
14835
14837
|
};
|
|
14836
14838
|
Ne = Hl = h([
|
|
14837
|
-
P({ type:
|
|
14839
|
+
P({ type: j.Sequence })
|
|
14838
14840
|
], Ne);
|
|
14839
14841
|
const z3 = {
|
|
14840
14842
|
fromASN: (t) => Zf.toString(Fs.fromASN(t)),
|
|
@@ -14900,7 +14902,7 @@ h([
|
|
|
14900
14902
|
m({ type: b.ObjectIdentifier, context: 8, implicit: !0 })
|
|
14901
14903
|
], te.prototype, "registeredID", void 0);
|
|
14902
14904
|
te = h([
|
|
14903
|
-
P({ type:
|
|
14905
|
+
P({ type: j.Choice })
|
|
14904
14906
|
], te);
|
|
14905
14907
|
const Hu = "1.3.6.1.5.5.7", q3 = `${Hu}.1`, hi = `${Hu}.3`, ec = `${Hu}.48`, Yf = `${ec}.1`, Qf = `${ec}.2`, eh = `${ec}.3`, th = `${ec}.5`, yn = "2.5.29";
|
|
14906
14908
|
var Kl;
|
|
@@ -14922,7 +14924,7 @@ let Ur = Kl = class extends pe {
|
|
|
14922
14924
|
}
|
|
14923
14925
|
};
|
|
14924
14926
|
Ur = Kl = h([
|
|
14925
|
-
P({ type:
|
|
14927
|
+
P({ type: j.Sequence, itemType: Ko })
|
|
14926
14928
|
], Ur);
|
|
14927
14929
|
const Wl = `${yn}.35`;
|
|
14928
14930
|
class Vu extends le {
|
|
@@ -14966,7 +14968,7 @@ let Ze = Jl = class extends pe {
|
|
|
14966
14968
|
}
|
|
14967
14969
|
};
|
|
14968
14970
|
Ze = Jl = h([
|
|
14969
|
-
P({ type:
|
|
14971
|
+
P({ type: j.Sequence, itemType: te })
|
|
14970
14972
|
], Ze);
|
|
14971
14973
|
var Xl;
|
|
14972
14974
|
let nh = Xl = class extends Ze {
|
|
@@ -14975,7 +14977,7 @@ let nh = Xl = class extends Ze {
|
|
|
14975
14977
|
}
|
|
14976
14978
|
};
|
|
14977
14979
|
nh = Xl = h([
|
|
14978
|
-
P({ type:
|
|
14980
|
+
P({ type: j.Sequence })
|
|
14979
14981
|
], nh);
|
|
14980
14982
|
var Zl;
|
|
14981
14983
|
const E_ = `${yn}.32`;
|
|
@@ -15000,7 +15002,7 @@ h([
|
|
|
15000
15002
|
m({ type: b.Utf8String })
|
|
15001
15003
|
], cn.prototype, "utf8String", void 0);
|
|
15002
15004
|
cn = h([
|
|
15003
|
-
P({ type:
|
|
15005
|
+
P({ type: j.Choice })
|
|
15004
15006
|
], cn);
|
|
15005
15007
|
class Ku {
|
|
15006
15008
|
constructor(e = {}) {
|
|
@@ -15036,7 +15038,7 @@ h([
|
|
|
15036
15038
|
m({ type: Gu })
|
|
15037
15039
|
], Vs.prototype, "userNotice", void 0);
|
|
15038
15040
|
Vs = h([
|
|
15039
|
-
P({ type:
|
|
15041
|
+
P({ type: j.Choice })
|
|
15040
15042
|
], Vs);
|
|
15041
15043
|
class Wu {
|
|
15042
15044
|
constructor(e = {}) {
|
|
@@ -15066,7 +15068,7 @@ let Ks = Zl = class extends pe {
|
|
|
15066
15068
|
}
|
|
15067
15069
|
};
|
|
15068
15070
|
Ks = Zl = h([
|
|
15069
|
-
P({ type:
|
|
15071
|
+
P({ type: j.Sequence, itemType: tc })
|
|
15070
15072
|
], Ks);
|
|
15071
15073
|
let Gs = class {
|
|
15072
15074
|
constructor(e = 0) {
|
|
@@ -15077,12 +15079,12 @@ h([
|
|
|
15077
15079
|
m({ type: b.Integer })
|
|
15078
15080
|
], Gs.prototype, "value", void 0);
|
|
15079
15081
|
Gs = h([
|
|
15080
|
-
P({ type:
|
|
15082
|
+
P({ type: j.Choice })
|
|
15081
15083
|
], Gs);
|
|
15082
15084
|
let rh = class extends Gs {
|
|
15083
15085
|
};
|
|
15084
15086
|
rh = h([
|
|
15085
|
-
P({ type:
|
|
15087
|
+
P({ type: j.Choice })
|
|
15086
15088
|
], rh);
|
|
15087
15089
|
var Yl;
|
|
15088
15090
|
const Ql = `${yn}.31`;
|
|
@@ -15111,7 +15113,7 @@ h([
|
|
|
15111
15113
|
m({ type: Zr, context: 1, implicit: !0 })
|
|
15112
15114
|
], or.prototype, "nameRelativeToCRLIssuer", void 0);
|
|
15113
15115
|
or = h([
|
|
15114
|
-
P({ type:
|
|
15116
|
+
P({ type: j.Choice })
|
|
15115
15117
|
], or);
|
|
15116
15118
|
class gi {
|
|
15117
15119
|
constructor(e = {}) {
|
|
@@ -15133,7 +15135,7 @@ let Fr = Yl = class extends pe {
|
|
|
15133
15135
|
}
|
|
15134
15136
|
};
|
|
15135
15137
|
Fr = Yl = h([
|
|
15136
|
-
P({ type:
|
|
15138
|
+
P({ type: j.Sequence, itemType: gi })
|
|
15137
15139
|
], Fr);
|
|
15138
15140
|
var ed;
|
|
15139
15141
|
let ih = ed = class extends Fr {
|
|
@@ -15142,7 +15144,7 @@ let ih = ed = class extends Fr {
|
|
|
15142
15144
|
}
|
|
15143
15145
|
};
|
|
15144
15146
|
ih = ed = h([
|
|
15145
|
-
P({ type:
|
|
15147
|
+
P({ type: j.Sequence, itemType: gi })
|
|
15146
15148
|
], ih);
|
|
15147
15149
|
class Xe {
|
|
15148
15150
|
constructor(e = {}) {
|
|
@@ -15207,7 +15209,7 @@ h([
|
|
|
15207
15209
|
m({ type: b.Enumerated })
|
|
15208
15210
|
], td.prototype, "reason", void 0);
|
|
15209
15211
|
td = h([
|
|
15210
|
-
P({ type:
|
|
15212
|
+
P({ type: j.Choice })
|
|
15211
15213
|
], td);
|
|
15212
15214
|
var nd;
|
|
15213
15215
|
const N_ = `${yn}.37`;
|
|
@@ -15217,7 +15219,7 @@ let Ws = nd = class extends pe {
|
|
|
15217
15219
|
}
|
|
15218
15220
|
};
|
|
15219
15221
|
Ws = nd = h([
|
|
15220
|
-
P({ type:
|
|
15222
|
+
P({ type: j.Sequence, itemType: b.ObjectIdentifier })
|
|
15221
15223
|
], Ws);
|
|
15222
15224
|
const F3 = `${hi}.1`, H3 = `${hi}.2`, V3 = `${hi}.3`, K3 = `${hi}.4`, G3 = `${hi}.8`, W3 = `${hi}.9`;
|
|
15223
15225
|
let rd = class {
|
|
@@ -15229,7 +15231,7 @@ h([
|
|
|
15229
15231
|
m({ type: b.Integer, converter: ye })
|
|
15230
15232
|
], rd.prototype, "value", void 0);
|
|
15231
15233
|
rd = h([
|
|
15232
|
-
P({ type:
|
|
15234
|
+
P({ type: j.Choice })
|
|
15233
15235
|
], rd);
|
|
15234
15236
|
let id = class {
|
|
15235
15237
|
constructor(e) {
|
|
@@ -15240,7 +15242,7 @@ h([
|
|
|
15240
15242
|
m({ type: b.GeneralizedTime })
|
|
15241
15243
|
], id.prototype, "value", void 0);
|
|
15242
15244
|
id = h([
|
|
15243
|
-
P({ type:
|
|
15245
|
+
P({ type: j.Choice })
|
|
15244
15246
|
], id);
|
|
15245
15247
|
var od;
|
|
15246
15248
|
const j_ = `${yn}.18`;
|
|
@@ -15250,7 +15252,7 @@ let oh = od = class extends Ze {
|
|
|
15250
15252
|
}
|
|
15251
15253
|
};
|
|
15252
15254
|
oh = od = h([
|
|
15253
|
-
P({ type:
|
|
15255
|
+
P({ type: j.Sequence })
|
|
15254
15256
|
], oh);
|
|
15255
15257
|
const I_ = `${yn}.15`;
|
|
15256
15258
|
var $t;
|
|
@@ -15287,7 +15289,7 @@ let Js = sd = class extends pe {
|
|
|
15287
15289
|
}
|
|
15288
15290
|
};
|
|
15289
15291
|
Js = sd = h([
|
|
15290
|
-
P({ type:
|
|
15292
|
+
P({ type: j.Sequence, itemType: nc })
|
|
15291
15293
|
], Js);
|
|
15292
15294
|
class O_ {
|
|
15293
15295
|
constructor(e = {}) {
|
|
@@ -15341,7 +15343,7 @@ let sh = ad = class extends pe {
|
|
|
15341
15343
|
}
|
|
15342
15344
|
};
|
|
15343
15345
|
sh = ad = h([
|
|
15344
|
-
P({ type:
|
|
15346
|
+
P({ type: j.Sequence, itemType: Ju })
|
|
15345
15347
|
], sh);
|
|
15346
15348
|
var cd;
|
|
15347
15349
|
const T_ = `${yn}.17`;
|
|
@@ -15351,7 +15353,7 @@ let ld = cd = class extends Ze {
|
|
|
15351
15353
|
}
|
|
15352
15354
|
};
|
|
15353
15355
|
ld = cd = h([
|
|
15354
|
-
P({ type:
|
|
15356
|
+
P({ type: j.Sequence })
|
|
15355
15357
|
], ld);
|
|
15356
15358
|
let ln = class {
|
|
15357
15359
|
constructor(e = {}) {
|
|
@@ -15371,7 +15373,7 @@ let ah = dd = class extends pe {
|
|
|
15371
15373
|
}
|
|
15372
15374
|
};
|
|
15373
15375
|
ah = dd = h([
|
|
15374
|
-
P({ type:
|
|
15376
|
+
P({ type: j.Sequence, itemType: ln })
|
|
15375
15377
|
], ah);
|
|
15376
15378
|
const R_ = `${yn}.14`;
|
|
15377
15379
|
class On extends Vu {
|
|
@@ -15418,7 +15420,7 @@ let ch = ud = class extends pe {
|
|
|
15418
15420
|
}
|
|
15419
15421
|
};
|
|
15420
15422
|
ch = ud = h([
|
|
15421
|
-
P({ type:
|
|
15423
|
+
P({ type: j.Sequence, itemType: Ko })
|
|
15422
15424
|
], ch);
|
|
15423
15425
|
class M {
|
|
15424
15426
|
constructor(e = {}) {
|
|
@@ -15477,7 +15479,7 @@ h([
|
|
|
15477
15479
|
})
|
|
15478
15480
|
], Me.prototype, "generalTime", void 0);
|
|
15479
15481
|
Me = h([
|
|
15480
|
-
P({ type:
|
|
15482
|
+
P({ type: j.Choice })
|
|
15481
15483
|
], Me);
|
|
15482
15484
|
class Go {
|
|
15483
15485
|
constructor(e) {
|
|
@@ -15515,7 +15517,7 @@ let Tn = pd = class extends pe {
|
|
|
15515
15517
|
}
|
|
15516
15518
|
};
|
|
15517
15519
|
Tn = pd = h([
|
|
15518
|
-
P({ type:
|
|
15520
|
+
P({ type: j.Sequence, itemType: _t })
|
|
15519
15521
|
], Tn);
|
|
15520
15522
|
var sr;
|
|
15521
15523
|
(function(t) {
|
|
@@ -15659,7 +15661,7 @@ h([
|
|
|
15659
15661
|
m({ type: mi })
|
|
15660
15662
|
], Yr.prototype, "issuerAndSerialNumber", void 0);
|
|
15661
15663
|
Yr = h([
|
|
15662
|
-
P({ type:
|
|
15664
|
+
P({ type: j.Choice })
|
|
15663
15665
|
], Yr);
|
|
15664
15666
|
var dn;
|
|
15665
15667
|
(function(t) {
|
|
@@ -15668,32 +15670,32 @@ var dn;
|
|
|
15668
15670
|
let bo = class extends M {
|
|
15669
15671
|
};
|
|
15670
15672
|
bo = h([
|
|
15671
|
-
P({ type:
|
|
15673
|
+
P({ type: j.Sequence })
|
|
15672
15674
|
], bo);
|
|
15673
15675
|
let Xs = class extends M {
|
|
15674
15676
|
};
|
|
15675
15677
|
Xs = h([
|
|
15676
|
-
P({ type:
|
|
15678
|
+
P({ type: j.Sequence })
|
|
15677
15679
|
], Xs);
|
|
15678
|
-
let
|
|
15680
|
+
let Vt = class extends M {
|
|
15679
15681
|
};
|
|
15680
|
-
|
|
15681
|
-
P({ type:
|
|
15682
|
-
],
|
|
15682
|
+
Vt = h([
|
|
15683
|
+
P({ type: j.Sequence })
|
|
15684
|
+
], Vt);
|
|
15683
15685
|
let Zs = class extends M {
|
|
15684
15686
|
};
|
|
15685
15687
|
Zs = h([
|
|
15686
|
-
P({ type:
|
|
15688
|
+
P({ type: j.Sequence })
|
|
15687
15689
|
], Zs);
|
|
15688
15690
|
let lh = class extends M {
|
|
15689
15691
|
};
|
|
15690
15692
|
lh = h([
|
|
15691
|
-
P({ type:
|
|
15693
|
+
P({ type: j.Sequence })
|
|
15692
15694
|
], lh);
|
|
15693
15695
|
let fd = class extends M {
|
|
15694
15696
|
};
|
|
15695
15697
|
fd = h([
|
|
15696
|
-
P({ type:
|
|
15698
|
+
P({ type: j.Sequence })
|
|
15697
15699
|
], fd);
|
|
15698
15700
|
let _i = class {
|
|
15699
15701
|
constructor(e = {}) {
|
|
@@ -15746,17 +15748,17 @@ let Ys = hd = class extends pe {
|
|
|
15746
15748
|
}
|
|
15747
15749
|
};
|
|
15748
15750
|
Ys = hd = h([
|
|
15749
|
-
P({ type:
|
|
15751
|
+
P({ type: j.Set, itemType: Wt })
|
|
15750
15752
|
], Ys);
|
|
15751
15753
|
let dh = class extends Wt {
|
|
15752
15754
|
};
|
|
15753
15755
|
dh = h([
|
|
15754
|
-
P({ type:
|
|
15756
|
+
P({ type: j.Sequence })
|
|
15755
15757
|
], dh);
|
|
15756
15758
|
let uh = class extends Me {
|
|
15757
15759
|
};
|
|
15758
15760
|
uh = h([
|
|
15759
|
-
P({ type:
|
|
15761
|
+
P({ type: j.Choice })
|
|
15760
15762
|
], uh);
|
|
15761
15763
|
class Zu {
|
|
15762
15764
|
constructor(e = {}) {
|
|
@@ -15779,7 +15781,7 @@ let Qs = gd = class extends pe {
|
|
|
15779
15781
|
}
|
|
15780
15782
|
};
|
|
15781
15783
|
Qs = gd = h([
|
|
15782
|
-
P({ type:
|
|
15784
|
+
P({ type: j.Sequence, itemType: b.ObjectIdentifier })
|
|
15783
15785
|
], Qs);
|
|
15784
15786
|
class ic {
|
|
15785
15787
|
constructor(e = {}) {
|
|
@@ -15859,7 +15861,7 @@ h([
|
|
|
15859
15861
|
m({ type: oc, context: 0, implicit: !0 })
|
|
15860
15862
|
], Qr.prototype, "v2Form", void 0);
|
|
15861
15863
|
Qr = h([
|
|
15862
|
-
P({ type:
|
|
15864
|
+
P({ type: j.Choice })
|
|
15863
15865
|
], Qr);
|
|
15864
15866
|
class sc {
|
|
15865
15867
|
constructor(e = {}) {
|
|
@@ -15890,45 +15892,45 @@ var _d;
|
|
|
15890
15892
|
(function(t) {
|
|
15891
15893
|
t[t.v2 = 1] = "v2";
|
|
15892
15894
|
})(_d || (_d = {}));
|
|
15893
|
-
class
|
|
15895
|
+
class Pt {
|
|
15894
15896
|
constructor(e = {}) {
|
|
15895
15897
|
this.version = _d.v2, this.holder = new Wo(), this.issuer = new Qr(), this.signature = new M(), this.serialNumber = new ArrayBuffer(0), this.attrCertValidityPeriod = new sc(), this.attributes = [], Object.assign(this, e);
|
|
15896
15898
|
}
|
|
15897
15899
|
}
|
|
15898
15900
|
h([
|
|
15899
15901
|
m({ type: b.Integer })
|
|
15900
|
-
],
|
|
15902
|
+
], Pt.prototype, "version", void 0);
|
|
15901
15903
|
h([
|
|
15902
15904
|
m({ type: Wo })
|
|
15903
|
-
],
|
|
15905
|
+
], Pt.prototype, "holder", void 0);
|
|
15904
15906
|
h([
|
|
15905
15907
|
m({ type: Qr })
|
|
15906
|
-
],
|
|
15908
|
+
], Pt.prototype, "issuer", void 0);
|
|
15907
15909
|
h([
|
|
15908
15910
|
m({ type: M })
|
|
15909
|
-
],
|
|
15911
|
+
], Pt.prototype, "signature", void 0);
|
|
15910
15912
|
h([
|
|
15911
15913
|
m({ type: b.Integer, converter: ye })
|
|
15912
|
-
],
|
|
15914
|
+
], Pt.prototype, "serialNumber", void 0);
|
|
15913
15915
|
h([
|
|
15914
15916
|
m({ type: sc })
|
|
15915
|
-
],
|
|
15917
|
+
], Pt.prototype, "attrCertValidityPeriod", void 0);
|
|
15916
15918
|
h([
|
|
15917
15919
|
m({ type: ln, repeated: "sequence" })
|
|
15918
|
-
],
|
|
15920
|
+
], Pt.prototype, "attributes", void 0);
|
|
15919
15921
|
h([
|
|
15920
15922
|
m({ type: b.BitString, optional: !0 })
|
|
15921
|
-
],
|
|
15923
|
+
], Pt.prototype, "issuerUniqueID", void 0);
|
|
15922
15924
|
h([
|
|
15923
15925
|
m({ type: Tn, optional: !0 })
|
|
15924
|
-
],
|
|
15926
|
+
], Pt.prototype, "extensions", void 0);
|
|
15925
15927
|
class ac {
|
|
15926
15928
|
constructor(e = {}) {
|
|
15927
|
-
this.acinfo = new
|
|
15929
|
+
this.acinfo = new Pt(), this.signatureAlgorithm = new M(), this.signatureValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
15928
15930
|
}
|
|
15929
15931
|
}
|
|
15930
15932
|
h([
|
|
15931
|
-
m({ type:
|
|
15933
|
+
m({ type: Pt })
|
|
15932
15934
|
], ac.prototype, "acinfo", void 0);
|
|
15933
15935
|
h([
|
|
15934
15936
|
m({ type: M })
|
|
@@ -16022,7 +16024,7 @@ h([
|
|
|
16022
16024
|
m({ type: lc, context: 2, implicit: !0 })
|
|
16023
16025
|
], ei.prototype, "targetCert", void 0);
|
|
16024
16026
|
ei = h([
|
|
16025
|
-
P({ type:
|
|
16027
|
+
P({ type: j.Choice })
|
|
16026
16028
|
], ei);
|
|
16027
16029
|
let bd = wd = class extends pe {
|
|
16028
16030
|
constructor(e) {
|
|
@@ -16030,7 +16032,7 @@ let bd = wd = class extends pe {
|
|
|
16030
16032
|
}
|
|
16031
16033
|
};
|
|
16032
16034
|
bd = wd = h([
|
|
16033
|
-
P({ type:
|
|
16035
|
+
P({ type: j.Sequence, itemType: ei })
|
|
16034
16036
|
], bd);
|
|
16035
16037
|
var vd;
|
|
16036
16038
|
let ph = vd = class extends pe {
|
|
@@ -16039,7 +16041,7 @@ let ph = vd = class extends pe {
|
|
|
16039
16041
|
}
|
|
16040
16042
|
};
|
|
16041
16043
|
ph = vd = h([
|
|
16042
|
-
P({ type:
|
|
16044
|
+
P({ type: j.Sequence, itemType: bd })
|
|
16043
16045
|
], ph);
|
|
16044
16046
|
class z_ {
|
|
16045
16047
|
constructor(e = {}) {
|
|
@@ -16093,7 +16095,7 @@ h([
|
|
|
16093
16095
|
m({ type: tp, context: 3, implicit: !0 })
|
|
16094
16096
|
], ti.prototype, "other", void 0);
|
|
16095
16097
|
ti = h([
|
|
16096
|
-
P({ type:
|
|
16098
|
+
P({ type: j.Choice })
|
|
16097
16099
|
], ti);
|
|
16098
16100
|
let ta = $d = class extends pe {
|
|
16099
16101
|
constructor(e) {
|
|
@@ -16101,7 +16103,7 @@ let ta = $d = class extends pe {
|
|
|
16101
16103
|
}
|
|
16102
16104
|
};
|
|
16103
16105
|
ta = $d = h([
|
|
16104
|
-
P({ type:
|
|
16106
|
+
P({ type: j.Set, itemType: ti })
|
|
16105
16107
|
], ta);
|
|
16106
16108
|
class yi {
|
|
16107
16109
|
constructor(e = {}) {
|
|
@@ -16126,7 +16128,7 @@ h([
|
|
|
16126
16128
|
m({ type: b.Any })
|
|
16127
16129
|
], vo.prototype, "any", void 0);
|
|
16128
16130
|
vo = h([
|
|
16129
|
-
P({ type:
|
|
16131
|
+
P({ type: j.Choice })
|
|
16130
16132
|
], vo);
|
|
16131
16133
|
class dc {
|
|
16132
16134
|
constructor(e = {}) {
|
|
@@ -16158,7 +16160,7 @@ h([
|
|
|
16158
16160
|
})
|
|
16159
16161
|
], $o.prototype, "constructedValue", void 0);
|
|
16160
16162
|
$o = h([
|
|
16161
|
-
P({ type:
|
|
16163
|
+
P({ type: j.Choice })
|
|
16162
16164
|
], $o);
|
|
16163
16165
|
class Jo {
|
|
16164
16166
|
constructor(e = {}) {
|
|
@@ -16212,7 +16214,7 @@ h([
|
|
|
16212
16214
|
m({ type: mi, optional: !0 })
|
|
16213
16215
|
], ni.prototype, "issuerAndSerialNumber", void 0);
|
|
16214
16216
|
ni = h([
|
|
16215
|
-
P({ type:
|
|
16217
|
+
P({ type: j.Choice })
|
|
16216
16218
|
], ni);
|
|
16217
16219
|
class np {
|
|
16218
16220
|
constructor(e = {}) {
|
|
@@ -16231,7 +16233,7 @@ let na = kd = class extends pe {
|
|
|
16231
16233
|
}
|
|
16232
16234
|
};
|
|
16233
16235
|
na = kd = h([
|
|
16234
|
-
P({ type:
|
|
16236
|
+
P({ type: j.Sequence, itemType: np })
|
|
16235
16237
|
], na);
|
|
16236
16238
|
class rp {
|
|
16237
16239
|
constructor(e = {}) {
|
|
@@ -16259,11 +16261,11 @@ h([
|
|
|
16259
16261
|
m({ type: mi, optional: !0 })
|
|
16260
16262
|
], cr.prototype, "issuerAndSerialNumber", void 0);
|
|
16261
16263
|
cr = h([
|
|
16262
|
-
P({ type:
|
|
16264
|
+
P({ type: j.Choice })
|
|
16263
16265
|
], cr);
|
|
16264
16266
|
class wi {
|
|
16265
16267
|
constructor(e = {}) {
|
|
16266
|
-
this.version = dn.v3, this.originator = new cr(), this.keyEncryptionAlgorithm = new
|
|
16268
|
+
this.version = dn.v3, this.originator = new cr(), this.keyEncryptionAlgorithm = new Vt(), this.recipientEncryptedKeys = new na(), Object.assign(this, e);
|
|
16267
16269
|
}
|
|
16268
16270
|
}
|
|
16269
16271
|
h([
|
|
@@ -16276,7 +16278,7 @@ h([
|
|
|
16276
16278
|
m({ type: le, context: 1, optional: !0 })
|
|
16277
16279
|
], wi.prototype, "ukm", void 0);
|
|
16278
16280
|
h([
|
|
16279
|
-
m({ type:
|
|
16281
|
+
m({ type: Vt })
|
|
16280
16282
|
], wi.prototype, "keyEncryptionAlgorithm", void 0);
|
|
16281
16283
|
h([
|
|
16282
16284
|
m({ type: na })
|
|
@@ -16293,11 +16295,11 @@ h([
|
|
|
16293
16295
|
m({ type: mi })
|
|
16294
16296
|
], ri.prototype, "issuerAndSerialNumber", void 0);
|
|
16295
16297
|
ri = h([
|
|
16296
|
-
P({ type:
|
|
16298
|
+
P({ type: j.Choice })
|
|
16297
16299
|
], ri);
|
|
16298
16300
|
class Xo {
|
|
16299
16301
|
constructor(e = {}) {
|
|
16300
|
-
this.version = dn.v0, this.rid = new ri(), this.keyEncryptionAlgorithm = new
|
|
16302
|
+
this.version = dn.v0, this.rid = new ri(), this.keyEncryptionAlgorithm = new Vt(), this.encryptedKey = new le(), Object.assign(this, e);
|
|
16301
16303
|
}
|
|
16302
16304
|
}
|
|
16303
16305
|
h([
|
|
@@ -16307,7 +16309,7 @@ h([
|
|
|
16307
16309
|
m({ type: ri })
|
|
16308
16310
|
], Xo.prototype, "rid", void 0);
|
|
16309
16311
|
h([
|
|
16310
|
-
m({ type:
|
|
16312
|
+
m({ type: Vt })
|
|
16311
16313
|
], Xo.prototype, "keyEncryptionAlgorithm", void 0);
|
|
16312
16314
|
h([
|
|
16313
16315
|
m({ type: le })
|
|
@@ -16328,7 +16330,7 @@ h([
|
|
|
16328
16330
|
], Zo.prototype, "other", void 0);
|
|
16329
16331
|
class Yo {
|
|
16330
16332
|
constructor(e = {}) {
|
|
16331
|
-
this.version = dn.v4, this.kekid = new Zo(), this.keyEncryptionAlgorithm = new
|
|
16333
|
+
this.version = dn.v4, this.kekid = new Zo(), this.keyEncryptionAlgorithm = new Vt(), this.encryptedKey = new le(), Object.assign(this, e);
|
|
16332
16334
|
}
|
|
16333
16335
|
}
|
|
16334
16336
|
h([
|
|
@@ -16338,14 +16340,14 @@ h([
|
|
|
16338
16340
|
m({ type: Zo })
|
|
16339
16341
|
], Yo.prototype, "kekid", void 0);
|
|
16340
16342
|
h([
|
|
16341
|
-
m({ type:
|
|
16343
|
+
m({ type: Vt })
|
|
16342
16344
|
], Yo.prototype, "keyEncryptionAlgorithm", void 0);
|
|
16343
16345
|
h([
|
|
16344
16346
|
m({ type: le })
|
|
16345
16347
|
], Yo.prototype, "encryptedKey", void 0);
|
|
16346
16348
|
class Qo {
|
|
16347
16349
|
constructor(e = {}) {
|
|
16348
|
-
this.version = dn.v0, this.keyEncryptionAlgorithm = new
|
|
16350
|
+
this.version = dn.v0, this.keyEncryptionAlgorithm = new Vt(), this.encryptedKey = new le(), Object.assign(this, e);
|
|
16349
16351
|
}
|
|
16350
16352
|
}
|
|
16351
16353
|
h([
|
|
@@ -16355,7 +16357,7 @@ h([
|
|
|
16355
16357
|
m({ type: fd, context: 0, optional: !0 })
|
|
16356
16358
|
], Qo.prototype, "keyDerivationAlgorithm", void 0);
|
|
16357
16359
|
h([
|
|
16358
|
-
m({ type:
|
|
16360
|
+
m({ type: Vt })
|
|
16359
16361
|
], Qo.prototype, "keyEncryptionAlgorithm", void 0);
|
|
16360
16362
|
h([
|
|
16361
16363
|
m({ type: le })
|
|
@@ -16392,7 +16394,7 @@ h([
|
|
|
16392
16394
|
m({ type: ip, context: 4, implicit: !0, optional: !0 })
|
|
16393
16395
|
], Rn.prototype, "ori", void 0);
|
|
16394
16396
|
Rn = h([
|
|
16395
|
-
P({ type:
|
|
16397
|
+
P({ type: j.Choice })
|
|
16396
16398
|
], Rn);
|
|
16397
16399
|
var xd;
|
|
16398
16400
|
let ra = xd = class extends pe {
|
|
@@ -16401,7 +16403,7 @@ let ra = xd = class extends pe {
|
|
|
16401
16403
|
}
|
|
16402
16404
|
};
|
|
16403
16405
|
ra = xd = h([
|
|
16404
|
-
P({ type:
|
|
16406
|
+
P({ type: j.Set, itemType: Rn })
|
|
16405
16407
|
], ra);
|
|
16406
16408
|
var Sd;
|
|
16407
16409
|
class fc {
|
|
@@ -16424,7 +16426,7 @@ h([
|
|
|
16424
16426
|
m({ type: fc, context: 1, implicit: !0 })
|
|
16425
16427
|
], ia.prototype, "other", void 0);
|
|
16426
16428
|
ia = h([
|
|
16427
|
-
P({ type:
|
|
16429
|
+
P({ type: j.Choice })
|
|
16428
16430
|
], ia);
|
|
16429
16431
|
let oa = Sd = class extends pe {
|
|
16430
16432
|
constructor(e) {
|
|
@@ -16432,7 +16434,7 @@ let oa = Sd = class extends pe {
|
|
|
16432
16434
|
}
|
|
16433
16435
|
};
|
|
16434
16436
|
oa = Sd = h([
|
|
16435
|
-
P({ type:
|
|
16437
|
+
P({ type: j.Set, itemType: ia })
|
|
16436
16438
|
], oa);
|
|
16437
16439
|
class op {
|
|
16438
16440
|
constructor(e = {}) {
|
|
@@ -16452,7 +16454,7 @@ let Ed = Ad = class extends pe {
|
|
|
16452
16454
|
}
|
|
16453
16455
|
};
|
|
16454
16456
|
Ed = Ad = h([
|
|
16455
|
-
P({ type:
|
|
16457
|
+
P({ type: j.Set, itemType: _i })
|
|
16456
16458
|
], Ed);
|
|
16457
16459
|
class es {
|
|
16458
16460
|
constructor(e = {}) {
|
|
@@ -16482,7 +16484,7 @@ let sa = Cd = class extends pe {
|
|
|
16482
16484
|
}
|
|
16483
16485
|
};
|
|
16484
16486
|
sa = Cd = h([
|
|
16485
|
-
P({ type:
|
|
16487
|
+
P({ type: j.Set, itemType: bo })
|
|
16486
16488
|
], sa);
|
|
16487
16489
|
class bi {
|
|
16488
16490
|
constructor(e = {}) {
|
|
@@ -16526,7 +16528,7 @@ h([
|
|
|
16526
16528
|
m({ type: b.Any })
|
|
16527
16529
|
], xo.prototype, "parameters", void 0);
|
|
16528
16530
|
xo = h([
|
|
16529
|
-
P({ type:
|
|
16531
|
+
P({ type: j.Sequence })
|
|
16530
16532
|
], xo);
|
|
16531
16533
|
class e4 extends le {
|
|
16532
16534
|
}
|
|
@@ -16545,7 +16547,7 @@ h([
|
|
|
16545
16547
|
m({ type: b.BitString, optional: !0 })
|
|
16546
16548
|
], ii.prototype, "seed", void 0);
|
|
16547
16549
|
ii = h([
|
|
16548
|
-
P({ type:
|
|
16550
|
+
P({ type: j.Sequence })
|
|
16549
16551
|
], ii);
|
|
16550
16552
|
var Nd;
|
|
16551
16553
|
(function(t) {
|
|
@@ -16575,7 +16577,7 @@ h([
|
|
|
16575
16577
|
m({ type: b.Integer, optional: !0 })
|
|
16576
16578
|
], un.prototype, "cofactor", void 0);
|
|
16577
16579
|
un = h([
|
|
16578
|
-
P({ type:
|
|
16580
|
+
P({ type: j.Sequence })
|
|
16579
16581
|
], un);
|
|
16580
16582
|
let Bn = class {
|
|
16581
16583
|
constructor(e = {}) {
|
|
@@ -16592,7 +16594,7 @@ h([
|
|
|
16592
16594
|
m({ type: un })
|
|
16593
16595
|
], Bn.prototype, "specifiedCurve", void 0);
|
|
16594
16596
|
Bn = h([
|
|
16595
|
-
P({ type:
|
|
16597
|
+
P({ type: j.Choice })
|
|
16596
16598
|
], Bn);
|
|
16597
16599
|
class hc {
|
|
16598
16600
|
constructor(e = {}) {
|
|
@@ -16750,7 +16752,7 @@ let Od = Id = class extends pe {
|
|
|
16750
16752
|
}
|
|
16751
16753
|
};
|
|
16752
16754
|
Od = Id = h([
|
|
16753
|
-
P({ type:
|
|
16755
|
+
P({ type: j.Sequence, itemType: yc })
|
|
16754
16756
|
], Od);
|
|
16755
16757
|
class Jt {
|
|
16756
16758
|
constructor(e = {}) {
|
|
@@ -17341,7 +17343,7 @@ let _h = Bd = class extends pe {
|
|
|
17341
17343
|
}
|
|
17342
17344
|
};
|
|
17343
17345
|
_h = Bd = h([
|
|
17344
|
-
P({ type:
|
|
17346
|
+
P({ type: j.Sequence, itemType: bc })
|
|
17345
17347
|
], _h);
|
|
17346
17348
|
var Ld;
|
|
17347
17349
|
let yh = Ld = class extends pe {
|
|
@@ -17350,7 +17352,7 @@ let yh = Ld = class extends pe {
|
|
|
17350
17352
|
}
|
|
17351
17353
|
};
|
|
17352
17354
|
yh = Ld = h([
|
|
17353
|
-
P({ type:
|
|
17355
|
+
P({ type: j.Sequence, itemType: yi })
|
|
17354
17356
|
], yh);
|
|
17355
17357
|
class Z_ {
|
|
17356
17358
|
constructor(e = {}) {
|
|
@@ -17399,7 +17401,7 @@ let Md = Ud = class extends pe {
|
|
|
17399
17401
|
}
|
|
17400
17402
|
};
|
|
17401
17403
|
Md = Ud = h([
|
|
17402
|
-
P({ type:
|
|
17404
|
+
P({ type: j.Sequence, itemType: ln })
|
|
17403
17405
|
], Md);
|
|
17404
17406
|
class ns {
|
|
17405
17407
|
constructor(e = {}) {
|
|
@@ -17421,12 +17423,12 @@ h([
|
|
|
17421
17423
|
let wh = class extends ns {
|
|
17422
17424
|
};
|
|
17423
17425
|
wh = h([
|
|
17424
|
-
P({ type:
|
|
17426
|
+
P({ type: j.Sequence })
|
|
17425
17427
|
], wh);
|
|
17426
17428
|
let bh = class extends vc {
|
|
17427
17429
|
};
|
|
17428
17430
|
bh = h([
|
|
17429
|
-
P({ type:
|
|
17431
|
+
P({ type: j.Sequence })
|
|
17430
17432
|
], bh);
|
|
17431
17433
|
class ty {
|
|
17432
17434
|
constructor(e = {}) {
|
|
@@ -17488,7 +17490,7 @@ let vh = zd = class extends pe {
|
|
|
17488
17490
|
}
|
|
17489
17491
|
};
|
|
17490
17492
|
vh = zd = h([
|
|
17491
|
-
P({ type:
|
|
17493
|
+
P({ type: j.Sequence, itemType: kc })
|
|
17492
17494
|
], vh);
|
|
17493
17495
|
var qd, Fd, Hd;
|
|
17494
17496
|
const ny = "1.2.840.113549.1.9", ry = `${ny}.7`, fp = `${ny}.14`;
|
|
@@ -17504,22 +17506,22 @@ h([
|
|
|
17504
17506
|
m({ type: b.IA5String })
|
|
17505
17507
|
], ma.prototype, "ia5String", void 0);
|
|
17506
17508
|
ma = h([
|
|
17507
|
-
P({ type:
|
|
17509
|
+
P({ type: j.Choice })
|
|
17508
17510
|
], ma);
|
|
17509
17511
|
let $h = class extends yi {
|
|
17510
17512
|
};
|
|
17511
17513
|
$h = h([
|
|
17512
|
-
P({ type:
|
|
17514
|
+
P({ type: j.Sequence })
|
|
17513
17515
|
], $h);
|
|
17514
17516
|
let kh = class extends $c {
|
|
17515
17517
|
};
|
|
17516
17518
|
kh = h([
|
|
17517
|
-
P({ type:
|
|
17519
|
+
P({ type: j.Sequence })
|
|
17518
17520
|
], kh);
|
|
17519
17521
|
let xh = class extends vc {
|
|
17520
17522
|
};
|
|
17521
17523
|
xh = h([
|
|
17522
|
-
P({ type:
|
|
17524
|
+
P({ type: j.Sequence })
|
|
17523
17525
|
], xh);
|
|
17524
17526
|
let Vd = class {
|
|
17525
17527
|
constructor(e = "") {
|
|
@@ -17533,17 +17535,17 @@ h([
|
|
|
17533
17535
|
m({ type: b.IA5String })
|
|
17534
17536
|
], Vd.prototype, "value", void 0);
|
|
17535
17537
|
Vd = h([
|
|
17536
|
-
P({ type:
|
|
17538
|
+
P({ type: j.Choice })
|
|
17537
17539
|
], Vd);
|
|
17538
17540
|
let Sh = class extends ma {
|
|
17539
17541
|
};
|
|
17540
17542
|
Sh = h([
|
|
17541
|
-
P({ type:
|
|
17543
|
+
P({ type: j.Choice })
|
|
17542
17544
|
], Sh);
|
|
17543
17545
|
let Ah = class extends Fe {
|
|
17544
17546
|
};
|
|
17545
17547
|
Ah = h([
|
|
17546
|
-
P({ type:
|
|
17548
|
+
P({ type: j.Choice })
|
|
17547
17549
|
], Ah);
|
|
17548
17550
|
let Kd = class {
|
|
17549
17551
|
constructor(e = /* @__PURE__ */ new Date()) {
|
|
@@ -17554,12 +17556,12 @@ h([
|
|
|
17554
17556
|
m({ type: b.GeneralizedTime })
|
|
17555
17557
|
], Kd.prototype, "value", void 0);
|
|
17556
17558
|
Kd = h([
|
|
17557
|
-
P({ type:
|
|
17559
|
+
P({ type: j.Choice })
|
|
17558
17560
|
], Kd);
|
|
17559
17561
|
let Eh = class extends Fe {
|
|
17560
17562
|
};
|
|
17561
17563
|
Eh = h([
|
|
17562
|
-
P({ type:
|
|
17564
|
+
P({ type: j.Choice })
|
|
17563
17565
|
], Eh);
|
|
17564
17566
|
let Gd = class {
|
|
17565
17567
|
constructor(e = "M") {
|
|
@@ -17573,7 +17575,7 @@ h([
|
|
|
17573
17575
|
m({ type: b.PrintableString })
|
|
17574
17576
|
], Gd.prototype, "value", void 0);
|
|
17575
17577
|
Gd = h([
|
|
17576
|
-
P({ type:
|
|
17578
|
+
P({ type: j.Choice })
|
|
17577
17579
|
], Gd);
|
|
17578
17580
|
let _a = class {
|
|
17579
17581
|
constructor(e = "") {
|
|
@@ -17587,17 +17589,17 @@ h([
|
|
|
17587
17589
|
m({ type: b.PrintableString })
|
|
17588
17590
|
], _a.prototype, "value", void 0);
|
|
17589
17591
|
_a = h([
|
|
17590
|
-
P({ type:
|
|
17592
|
+
P({ type: j.Choice })
|
|
17591
17593
|
], _a);
|
|
17592
17594
|
let Ch = class extends _a {
|
|
17593
17595
|
};
|
|
17594
17596
|
Ch = h([
|
|
17595
|
-
P({ type:
|
|
17597
|
+
P({ type: j.Choice })
|
|
17596
17598
|
], Ch);
|
|
17597
17599
|
let Nh = class extends Fe {
|
|
17598
17600
|
};
|
|
17599
17601
|
Nh = h([
|
|
17600
|
-
P({ type:
|
|
17602
|
+
P({ type: j.Choice })
|
|
17601
17603
|
], Nh);
|
|
17602
17604
|
let Wd = class {
|
|
17603
17605
|
constructor(e = "") {
|
|
@@ -17611,12 +17613,12 @@ h([
|
|
|
17611
17613
|
m({ type: b.ObjectIdentifier })
|
|
17612
17614
|
], Wd.prototype, "value", void 0);
|
|
17613
17615
|
Wd = h([
|
|
17614
|
-
P({ type:
|
|
17616
|
+
P({ type: j.Choice })
|
|
17615
17617
|
], Wd);
|
|
17616
17618
|
let jh = class extends Me {
|
|
17617
17619
|
};
|
|
17618
17620
|
jh = h([
|
|
17619
|
-
P({ type:
|
|
17621
|
+
P({ type: j.Choice })
|
|
17620
17622
|
], jh);
|
|
17621
17623
|
let Jd = class {
|
|
17622
17624
|
constructor(e = 0) {
|
|
@@ -17630,17 +17632,17 @@ h([
|
|
|
17630
17632
|
m({ type: b.Integer })
|
|
17631
17633
|
], Jd.prototype, "value", void 0);
|
|
17632
17634
|
Jd = h([
|
|
17633
|
-
P({ type:
|
|
17635
|
+
P({ type: j.Choice })
|
|
17634
17636
|
], Jd);
|
|
17635
17637
|
let Ih = class extends Wt {
|
|
17636
17638
|
};
|
|
17637
17639
|
Ih = h([
|
|
17638
|
-
P({ type:
|
|
17640
|
+
P({ type: j.Sequence })
|
|
17639
17641
|
], Ih);
|
|
17640
17642
|
let ya = class extends Fe {
|
|
17641
17643
|
};
|
|
17642
17644
|
ya = h([
|
|
17643
|
-
P({ type:
|
|
17645
|
+
P({ type: j.Choice })
|
|
17644
17646
|
], ya);
|
|
17645
17647
|
let Oh = qd = class extends Tn {
|
|
17646
17648
|
constructor(e) {
|
|
@@ -17648,7 +17650,7 @@ let Oh = qd = class extends Tn {
|
|
|
17648
17650
|
}
|
|
17649
17651
|
};
|
|
17650
17652
|
Oh = qd = h([
|
|
17651
|
-
P({ type:
|
|
17653
|
+
P({ type: j.Sequence })
|
|
17652
17654
|
], Oh);
|
|
17653
17655
|
let Ph = Fd = class extends pe {
|
|
17654
17656
|
constructor(e) {
|
|
@@ -17656,7 +17658,7 @@ let Ph = Fd = class extends pe {
|
|
|
17656
17658
|
}
|
|
17657
17659
|
};
|
|
17658
17660
|
Ph = Fd = h([
|
|
17659
|
-
P({ type:
|
|
17661
|
+
P({ type: j.Set, itemType: _i })
|
|
17660
17662
|
], Ph);
|
|
17661
17663
|
let Xd = class {
|
|
17662
17664
|
constructor(e = "") {
|
|
@@ -17670,12 +17672,12 @@ h([
|
|
|
17670
17672
|
m({ type: b.BmpString })
|
|
17671
17673
|
], Xd.prototype, "value", void 0);
|
|
17672
17674
|
Xd = h([
|
|
17673
|
-
P({ type:
|
|
17675
|
+
P({ type: j.Choice })
|
|
17674
17676
|
], Xd);
|
|
17675
17677
|
let Zd = class extends M {
|
|
17676
17678
|
};
|
|
17677
17679
|
Zd = h([
|
|
17678
|
-
P({ type:
|
|
17680
|
+
P({ type: j.Sequence })
|
|
17679
17681
|
], Zd);
|
|
17680
17682
|
let Th = Hd = class extends pe {
|
|
17681
17683
|
constructor(e) {
|
|
@@ -17683,7 +17685,7 @@ let Th = Hd = class extends pe {
|
|
|
17683
17685
|
}
|
|
17684
17686
|
};
|
|
17685
17687
|
Th = Hd = h([
|
|
17686
|
-
P({ type:
|
|
17688
|
+
P({ type: j.Sequence, itemType: Zd })
|
|
17687
17689
|
], Th);
|
|
17688
17690
|
var Yd;
|
|
17689
17691
|
let wa = Yd = class extends pe {
|
|
@@ -17692,7 +17694,7 @@ let wa = Yd = class extends pe {
|
|
|
17692
17694
|
}
|
|
17693
17695
|
};
|
|
17694
17696
|
wa = Yd = h([
|
|
17695
|
-
P({ type:
|
|
17697
|
+
P({ type: j.Sequence, itemType: ln })
|
|
17696
17698
|
], wa);
|
|
17697
17699
|
class vi {
|
|
17698
17700
|
constructor(e = {}) {
|
|
@@ -20662,7 +20664,7 @@ const c$ = dt.extend({
|
|
|
20662
20664
|
return t.text("OK");
|
|
20663
20665
|
}
|
|
20664
20666
|
), d$ = dt.extend({
|
|
20665
|
-
connections: o.array(
|
|
20667
|
+
connections: o.array(zt)
|
|
20666
20668
|
}), u$ = new J().openapi(
|
|
20667
20669
|
x({
|
|
20668
20670
|
tags: ["connections"],
|
|
@@ -20684,7 +20686,7 @@ const c$ = dt.extend({
|
|
|
20684
20686
|
content: {
|
|
20685
20687
|
"application/json": {
|
|
20686
20688
|
schema: o.union([
|
|
20687
|
-
o.array(
|
|
20689
|
+
o.array(zt),
|
|
20688
20690
|
d$
|
|
20689
20691
|
])
|
|
20690
20692
|
}
|
|
@@ -20731,7 +20733,7 @@ const c$ = dt.extend({
|
|
|
20731
20733
|
200: {
|
|
20732
20734
|
content: {
|
|
20733
20735
|
"application/json": {
|
|
20734
|
-
schema:
|
|
20736
|
+
schema: zt
|
|
20735
20737
|
}
|
|
20736
20738
|
},
|
|
20737
20739
|
description: "A connection"
|
|
@@ -20811,7 +20813,7 @@ const c$ = dt.extend({
|
|
|
20811
20813
|
200: {
|
|
20812
20814
|
content: {
|
|
20813
20815
|
"application/json": {
|
|
20814
|
-
schema:
|
|
20816
|
+
schema: zt
|
|
20815
20817
|
}
|
|
20816
20818
|
},
|
|
20817
20819
|
description: "The updated connection"
|
|
@@ -20864,7 +20866,7 @@ const c$ = dt.extend({
|
|
|
20864
20866
|
201: {
|
|
20865
20867
|
content: {
|
|
20866
20868
|
"application/json": {
|
|
20867
|
-
schema:
|
|
20869
|
+
schema: zt
|
|
20868
20870
|
}
|
|
20869
20871
|
},
|
|
20870
20872
|
description: "A connection"
|
|
@@ -21277,7 +21279,7 @@ var R$ = async (t, e, n) => {
|
|
|
21277
21279
|
if (!f.aud)
|
|
21278
21280
|
throw new E$(f);
|
|
21279
21281
|
if (!(Array.isArray(f.aud) ? f.aud : [f.aud]).some(
|
|
21280
|
-
(
|
|
21282
|
+
(I) => l instanceof RegExp ? l.test(I) : typeof l == "string" ? I === l : Array.isArray(l) && l.includes(I)
|
|
21281
21283
|
))
|
|
21282
21284
|
throw new C$(l, f.aud);
|
|
21283
21285
|
}
|
|
@@ -21994,20 +21996,20 @@ function jc(t, e) {
|
|
|
21994
21996
|
if (_ == null)
|
|
21995
21997
|
continue;
|
|
21996
21998
|
const w = d || p.has(g), k = {};
|
|
21997
|
-
for (const [E,
|
|
21999
|
+
for (const [E, I] of Object.entries(
|
|
21998
22000
|
_
|
|
21999
22001
|
))
|
|
22000
|
-
if (typeof
|
|
22002
|
+
if (typeof I == "function") {
|
|
22001
22003
|
if (!w) {
|
|
22002
|
-
k[E] =
|
|
22004
|
+
k[E] = I;
|
|
22003
22005
|
continue;
|
|
22004
22006
|
}
|
|
22005
|
-
const
|
|
22006
|
-
if (l.has(
|
|
22007
|
-
k[E] =
|
|
22007
|
+
const O = `${g}:${E}`;
|
|
22008
|
+
if (l.has(O)) {
|
|
22009
|
+
k[E] = I;
|
|
22008
22010
|
continue;
|
|
22009
22011
|
}
|
|
22010
|
-
const A = i[
|
|
22012
|
+
const A = i[O] ?? r, N = [
|
|
22011
22013
|
"create",
|
|
22012
22014
|
"update",
|
|
22013
22015
|
"remove",
|
|
@@ -22016,8 +22018,8 @@ function jc(t, e) {
|
|
|
22016
22018
|
"used"
|
|
22017
22019
|
].includes(E);
|
|
22018
22020
|
k[E] = async (...T) => {
|
|
22019
|
-
if (
|
|
22020
|
-
return await
|
|
22021
|
+
if (N)
|
|
22022
|
+
return await I.apply(_, T);
|
|
22021
22023
|
const G = W$(
|
|
22022
22024
|
g,
|
|
22023
22025
|
E,
|
|
@@ -22030,7 +22032,7 @@ function jc(t, e) {
|
|
|
22030
22032
|
return H.isCachedNull ? null : H.value;
|
|
22031
22033
|
} else
|
|
22032
22034
|
return X;
|
|
22033
|
-
const se = await
|
|
22035
|
+
const se = await I.apply(_, T);
|
|
22034
22036
|
if (A >= 0)
|
|
22035
22037
|
if (se !== null)
|
|
22036
22038
|
await n.set(G, se, A);
|
|
@@ -22044,7 +22046,7 @@ function jc(t, e) {
|
|
|
22044
22046
|
return se;
|
|
22045
22047
|
};
|
|
22046
22048
|
} else
|
|
22047
|
-
k[E] =
|
|
22049
|
+
k[E] = I;
|
|
22048
22050
|
f[g] = k;
|
|
22049
22051
|
}
|
|
22050
22052
|
return f;
|
|
@@ -23829,9 +23831,9 @@ const X$ = dt.extend({
|
|
|
23829
23831
|
if (g) {
|
|
23830
23832
|
const { sort_by: _, sort_order: w } = g;
|
|
23831
23833
|
f.sort((k, E) => {
|
|
23832
|
-
const
|
|
23833
|
-
if (
|
|
23834
|
-
const A =
|
|
23834
|
+
const I = k[_], O = E[_];
|
|
23835
|
+
if (I === void 0 || O === void 0 || I === O) return 0;
|
|
23836
|
+
const A = I < O ? -1 : 1;
|
|
23835
23837
|
return w === "asc" ? A : -A;
|
|
23836
23838
|
});
|
|
23837
23839
|
}
|
|
@@ -24082,7 +24084,7 @@ async function ki(t, e) {
|
|
|
24082
24084
|
);
|
|
24083
24085
|
if (!d?.options)
|
|
24084
24086
|
return l;
|
|
24085
|
-
const p =
|
|
24087
|
+
const p = zt.parse({
|
|
24086
24088
|
...d || {},
|
|
24087
24089
|
...l
|
|
24088
24090
|
});
|
|
@@ -24235,7 +24237,7 @@ async function xg(t, { code: e, state: n }) {
|
|
|
24235
24237
|
isSocial: !0,
|
|
24236
24238
|
ip: t.var.ip
|
|
24237
24239
|
});
|
|
24238
|
-
return
|
|
24240
|
+
return Ht(t, {
|
|
24239
24241
|
client: a,
|
|
24240
24242
|
authParams: s.authParams,
|
|
24241
24243
|
loginSession: s,
|
|
@@ -25758,8 +25760,8 @@ var m5 = ";ext=", Er = function(e) {
|
|
|
25758
25760
|
return "([".concat(It, "]{1,").concat(e, "})");
|
|
25759
25761
|
};
|
|
25760
25762
|
function Cy(t) {
|
|
25761
|
-
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}|;)", _ = m5 + Er(e), w = s + l + a + Er(e) + c, k = s + d + a + Er(r) + c, E = p + Er(i) + "#",
|
|
25762
|
-
return _ + "|" + w + "|" + k + "|" + E + "|" +
|
|
25763
|
+
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}|;)", _ = m5 + Er(e), w = s + l + a + Er(e) + c, k = s + d + a + Er(r) + c, E = p + Er(i) + "#", I = f + g + a + Er(n) + c, O = f + "(?:,)+" + a + Er(r) + c;
|
|
25764
|
+
return _ + "|" + w + "|" + k + "|" + E + "|" + I + "|" + O;
|
|
25763
25765
|
}
|
|
25764
25766
|
var _5 = "[" + It + "]{" + Sp + "}", y5 = "[" + Ap + "]{0,1}(?:[" + $a + "]*[" + It + "]){3,}[" + $a + It + "]*", w5 = new RegExp("^[" + Ap + "]{0,1}(?:[" + $a + "]*[" + It + "]){1,2}$", "i"), b5 = y5 + // Phone number extensions
|
|
25765
25767
|
"(?:" + Cy() + ")?", v5 = new RegExp(
|
|
@@ -26772,7 +26774,7 @@ async function Iy(t, {
|
|
|
26772
26774
|
}
|
|
26773
26775
|
async function Np(t, e) {
|
|
26774
26776
|
const n = await Iy(t, e);
|
|
26775
|
-
return
|
|
26777
|
+
return Ht(t, {
|
|
26776
26778
|
authParams: n.authParams,
|
|
26777
26779
|
client: n.client,
|
|
26778
26780
|
user: n.user,
|
|
@@ -26905,25 +26907,25 @@ const V6 = new J().openapi(
|
|
|
26905
26907
|
t.set("client_id", i.client_id);
|
|
26906
26908
|
let s;
|
|
26907
26909
|
switch (n.grant_type) {
|
|
26908
|
-
case
|
|
26910
|
+
case Dt.AuthorizationCode:
|
|
26909
26911
|
s = await kk(
|
|
26910
26912
|
t,
|
|
26911
26913
|
$k.parse(i)
|
|
26912
26914
|
);
|
|
26913
26915
|
break;
|
|
26914
|
-
case
|
|
26916
|
+
case Dt.ClientCredential:
|
|
26915
26917
|
s = await vk(
|
|
26916
26918
|
t,
|
|
26917
26919
|
$y.parse(i)
|
|
26918
26920
|
);
|
|
26919
26921
|
break;
|
|
26920
|
-
case
|
|
26922
|
+
case Dt.RefreshToken:
|
|
26921
26923
|
s = await Sk(
|
|
26922
26924
|
t,
|
|
26923
26925
|
xk.parse(i)
|
|
26924
26926
|
);
|
|
26925
26927
|
break;
|
|
26926
|
-
case
|
|
26928
|
+
case Dt.OTP:
|
|
26927
26929
|
s = await Iy(
|
|
26928
26930
|
t,
|
|
26929
26931
|
F6.parse(i)
|
|
@@ -26951,9 +26953,9 @@ const V6 = new J().openapi(
|
|
|
26951
26953
|
if (s.authParams.audience)
|
|
26952
26954
|
try {
|
|
26953
26955
|
let d;
|
|
26954
|
-
if (n.grant_type ===
|
|
26956
|
+
if (n.grant_type === Dt.ClientCredential)
|
|
26955
26957
|
d = await Ls(t, {
|
|
26956
|
-
grantType:
|
|
26958
|
+
grantType: Dt.ClientCredential,
|
|
26957
26959
|
tenantId: s.client.tenant.id,
|
|
26958
26960
|
clientId: s.client.client_id,
|
|
26959
26961
|
audience: s.authParams.audience,
|
|
@@ -27001,7 +27003,7 @@ const V6 = new J().openapi(
|
|
|
27001
27003
|
CONTAINS_PERSONAL_INFO: "password_contains_personal_info",
|
|
27002
27004
|
CONTAINS_FORBIDDEN_WORD: "password_contains_forbidden_word"
|
|
27003
27005
|
};
|
|
27004
|
-
class
|
|
27006
|
+
class Ut extends Error {
|
|
27005
27007
|
code;
|
|
27006
27008
|
params;
|
|
27007
27009
|
constructor(e, n, r) {
|
|
@@ -27011,29 +27013,29 @@ class Dt extends Error {
|
|
|
27011
27013
|
async function jp(t, e) {
|
|
27012
27014
|
const { newPassword: n, userData: r, data: i, tenantId: s, userId: a } = e, c = t.passwordPolicy !== void 0 || t.password_complexity_options !== void 0 || t.password_history !== void 0 || t.password_no_personal_info !== void 0 || t.password_dictionary !== void 0, l = c ? t.passwordPolicy : "good", d = c ? t.password_complexity_options?.min_length : 8;
|
|
27013
27015
|
if (d && n.length < d)
|
|
27014
|
-
throw new
|
|
27016
|
+
throw new Ut(
|
|
27015
27017
|
An.TOO_SHORT,
|
|
27016
27018
|
`Password must be at least ${d} characters`,
|
|
27017
27019
|
{ minLength: d }
|
|
27018
27020
|
);
|
|
27019
27021
|
if (l && l !== "none" && l === "good") {
|
|
27020
27022
|
if (!/[a-z]/.test(n))
|
|
27021
|
-
throw new
|
|
27023
|
+
throw new Ut(
|
|
27022
27024
|
An.MISSING_LOWERCASE,
|
|
27023
27025
|
"Password must contain at least one lowercase letter"
|
|
27024
27026
|
);
|
|
27025
27027
|
if (!/[A-Z]/.test(n))
|
|
27026
|
-
throw new
|
|
27028
|
+
throw new Ut(
|
|
27027
27029
|
An.MISSING_UPPERCASE,
|
|
27028
27030
|
"Password must contain at least one uppercase letter"
|
|
27029
27031
|
);
|
|
27030
27032
|
if (!/\d/.test(n))
|
|
27031
|
-
throw new
|
|
27033
|
+
throw new Ut(
|
|
27032
27034
|
An.MISSING_NUMBER,
|
|
27033
27035
|
"Password must contain at least one number"
|
|
27034
27036
|
);
|
|
27035
27037
|
if (!/[^A-Za-z0-9]/.test(n))
|
|
27036
|
-
throw new
|
|
27038
|
+
throw new Ut(
|
|
27037
27039
|
An.MISSING_SPECIAL,
|
|
27038
27040
|
"Password must contain at least one special character"
|
|
27039
27041
|
);
|
|
@@ -27042,21 +27044,21 @@ async function jp(t, e) {
|
|
|
27042
27044
|
const p = t.password_history.size || 5, f = await i.passwords.list(s, a, p);
|
|
27043
27045
|
for (const g of f)
|
|
27044
27046
|
if (await Yn.compare(n, g.password))
|
|
27045
|
-
throw new
|
|
27047
|
+
throw new Ut(
|
|
27046
27048
|
An.REUSED,
|
|
27047
27049
|
"Password was used recently and cannot be reused",
|
|
27048
27050
|
{ historySize: p }
|
|
27049
27051
|
);
|
|
27050
27052
|
}
|
|
27051
27053
|
if (t.password_no_personal_info?.enable && r && [r.email, r.name].filter(Boolean).join(" ").toLowerCase().includes(n.toLowerCase()))
|
|
27052
|
-
throw new
|
|
27054
|
+
throw new Ut(
|
|
27053
27055
|
An.CONTAINS_PERSONAL_INFO,
|
|
27054
27056
|
"Password cannot contain personal information like your name or email"
|
|
27055
27057
|
);
|
|
27056
27058
|
if (t.password_dictionary?.enable && t.password_dictionary.dictionary && t.password_dictionary.dictionary.some(
|
|
27057
27059
|
(p) => n.toLowerCase().includes(p.toLowerCase())
|
|
27058
27060
|
))
|
|
27059
|
-
throw new
|
|
27061
|
+
throw new Ut(
|
|
27060
27062
|
An.CONTAINS_FORBIDDEN_WORD,
|
|
27061
27063
|
"Password contains a forbidden word"
|
|
27062
27064
|
);
|
|
@@ -27334,22 +27336,24 @@ const G6 = new J().openapi(
|
|
|
27334
27336
|
message: "Client not found"
|
|
27335
27337
|
});
|
|
27336
27338
|
t.set("client_id", i.client_id), t.set("tenant_id", i.tenant.id);
|
|
27337
|
-
const
|
|
27339
|
+
const a = i.connections.find(
|
|
27340
|
+
(f) => f.strategy === "Username-Password-Authentication"
|
|
27341
|
+
)?.name || "Username-Password-Authentication", c = await Ip(
|
|
27338
27342
|
t.env.data,
|
|
27339
27343
|
i.tenant.id,
|
|
27340
|
-
|
|
27344
|
+
a
|
|
27341
27345
|
);
|
|
27342
27346
|
try {
|
|
27343
|
-
await jp(
|
|
27347
|
+
await jp(c, {
|
|
27344
27348
|
tenantId: i.tenant.id,
|
|
27345
27349
|
userId: "",
|
|
27346
27350
|
// No user yet for signup
|
|
27347
27351
|
newPassword: n,
|
|
27348
27352
|
data: t.env.data
|
|
27349
27353
|
});
|
|
27350
|
-
} catch (
|
|
27354
|
+
} catch (f) {
|
|
27351
27355
|
throw new v(400, {
|
|
27352
|
-
message:
|
|
27356
|
+
message: f?.message || "Password does not meet the requirements"
|
|
27353
27357
|
});
|
|
27354
27358
|
}
|
|
27355
27359
|
if (await go({
|
|
@@ -27359,7 +27363,7 @@ const G6 = new J().openapi(
|
|
|
27359
27363
|
provider: "auth2"
|
|
27360
27364
|
}))
|
|
27361
27365
|
throw new v(400, { message: "Invalid sign up" });
|
|
27362
|
-
const
|
|
27366
|
+
const d = await t.env.data.users.create(i.tenant.id, {
|
|
27363
27367
|
user_id: `auth2|${Ea()}`,
|
|
27364
27368
|
email: e,
|
|
27365
27369
|
email_verified: !1,
|
|
@@ -27367,19 +27371,19 @@ const G6 = new J().openapi(
|
|
|
27367
27371
|
connection: "Username-Password-Authentication",
|
|
27368
27372
|
is_social: !1
|
|
27369
27373
|
});
|
|
27370
|
-
t.set("user_id",
|
|
27371
|
-
const
|
|
27374
|
+
t.set("user_id", d.user_id), t.set("username", d.email), t.set("connection", d.connection);
|
|
27375
|
+
const p = await Yn.hash(n, 10);
|
|
27372
27376
|
return await t.env.data.passwords.create(i.tenant.id, {
|
|
27373
|
-
user_id:
|
|
27374
|
-
password:
|
|
27377
|
+
user_id: d.user_id,
|
|
27378
|
+
password: p,
|
|
27375
27379
|
algorithm: "bcrypt",
|
|
27376
27380
|
is_current: !0
|
|
27377
|
-
}), await Tp(t,
|
|
27381
|
+
}), await Tp(t, d), ie(t, i.tenant.id, {
|
|
27378
27382
|
type: re.SUCCESS_SIGNUP,
|
|
27379
27383
|
description: "Successful signup"
|
|
27380
27384
|
}), t.json({
|
|
27381
|
-
_id:
|
|
27382
|
-
email:
|
|
27385
|
+
_id: d.user_id,
|
|
27386
|
+
email: d.email,
|
|
27383
27387
|
email_verified: !1,
|
|
27384
27388
|
app_metadata: {},
|
|
27385
27389
|
user_metadata: {}
|
|
@@ -27615,10 +27619,10 @@ const W6 = new J().openapi(
|
|
|
27615
27619
|
if (A && typeof A == "object" && "access_token" in A)
|
|
27616
27620
|
return t.json(A);
|
|
27617
27621
|
} catch (A) {
|
|
27618
|
-
const
|
|
27619
|
-
"message" in
|
|
27622
|
+
const N = A;
|
|
27623
|
+
"message" in N && typeof N.message == "string" && (_ = N.message);
|
|
27620
27624
|
}
|
|
27621
|
-
const w = t.get("ip"), k = t.get("useragent"), E = t.get("auth0_client"),
|
|
27625
|
+
const w = t.get("ip"), k = t.get("useragent"), E = t.get("auth0_client"), I = fn(E), O = await e.data.loginSessions.create(
|
|
27622
27626
|
f.tenant.id,
|
|
27623
27627
|
{
|
|
27624
27628
|
authParams: {
|
|
@@ -27629,11 +27633,11 @@ const W6 = new J().openapi(
|
|
|
27629
27633
|
csrf_token: he(),
|
|
27630
27634
|
ip: w,
|
|
27631
27635
|
useragent: k,
|
|
27632
|
-
auth0Client:
|
|
27636
|
+
auth0Client: I
|
|
27633
27637
|
}
|
|
27634
27638
|
);
|
|
27635
27639
|
return t.redirect(
|
|
27636
|
-
`${ze(t.env)}invalid-session?state=${
|
|
27640
|
+
`${ze(t.env)}invalid-session?state=${O.id}&error=${encodeURIComponent(_)}`,
|
|
27637
27641
|
302
|
|
27638
27642
|
);
|
|
27639
27643
|
}
|
|
@@ -27724,7 +27728,7 @@ async function Ty(t, e, n, r) {
|
|
|
27724
27728
|
}
|
|
27725
27729
|
async function Ry(t, e, n, r, i) {
|
|
27726
27730
|
const s = await Ty(t, e, n, r);
|
|
27727
|
-
return
|
|
27731
|
+
return Ht(t, {
|
|
27728
27732
|
...s,
|
|
27729
27733
|
ticketAuth: i,
|
|
27730
27734
|
authStrategy: {
|
|
@@ -27925,7 +27929,7 @@ async function Q6({
|
|
|
27925
27929
|
if (g?.email === s)
|
|
27926
27930
|
return await t.env.data.loginSessions.update(n.tenant.id, f.id, {
|
|
27927
27931
|
session_id: e.id
|
|
27928
|
-
}),
|
|
27932
|
+
}), Ht(t, {
|
|
27929
27933
|
client: n,
|
|
27930
27934
|
loginSession: { ...f, session_id: e.id },
|
|
27931
27935
|
authParams: r,
|
|
@@ -27991,7 +27995,7 @@ async function t8(t, e, n, r, i) {
|
|
|
27991
27995
|
client: l,
|
|
27992
27996
|
loginSession: c
|
|
27993
27997
|
});
|
|
27994
|
-
return
|
|
27998
|
+
return Ht(t, {
|
|
27995
27999
|
authParams: {
|
|
27996
28000
|
scope: c.authParams?.scope,
|
|
27997
28001
|
...r
|
|
@@ -28039,11 +28043,11 @@ async function n8({
|
|
|
28039
28043
|
if (!n || n?.expires_at && new Date(n.expires_at) < /* @__PURE__ */ new Date() || n?.idle_expires_at && new Date(n.idle_expires_at) < /* @__PURE__ */ new Date())
|
|
28040
28044
|
return k();
|
|
28041
28045
|
t.set("user_id", n.user_id);
|
|
28042
|
-
const
|
|
28043
|
-
if (!
|
|
28046
|
+
const I = await g.data.users.get(e.tenant.id, n.user_id);
|
|
28047
|
+
if (!I)
|
|
28044
28048
|
return console.error("User not found", n.user_id), k("User not found");
|
|
28045
|
-
t.set("username",
|
|
28046
|
-
const
|
|
28049
|
+
t.set("username", I.email), t.set("connection", I.connection);
|
|
28050
|
+
const O = await g.data.loginSessions.create(e.tenant.id, {
|
|
28047
28051
|
csrf_token: he(),
|
|
28048
28052
|
authParams: {
|
|
28049
28053
|
client_id: e.client_id,
|
|
@@ -28073,18 +28077,18 @@ async function n8({
|
|
|
28073
28077
|
response_type: p,
|
|
28074
28078
|
redirect_uri: r
|
|
28075
28079
|
},
|
|
28076
|
-
user:
|
|
28080
|
+
user: I,
|
|
28077
28081
|
session_id: n.id
|
|
28078
|
-
},
|
|
28079
|
-
user:
|
|
28082
|
+
}, N = p === At.CODE ? await rm(t, {
|
|
28083
|
+
user: I,
|
|
28080
28084
|
client: e,
|
|
28081
28085
|
authParams: A.authParams,
|
|
28082
|
-
login_id:
|
|
28086
|
+
login_id: O.id
|
|
28083
28087
|
}) : await Na(t, A);
|
|
28084
28088
|
await g.data.sessions.update(e.tenant.id, n.id, {
|
|
28085
28089
|
used_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
28086
28090
|
last_interaction_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
28087
|
-
login_session_id:
|
|
28091
|
+
login_session_id: O.id,
|
|
28088
28092
|
device: {
|
|
28089
28093
|
...n.device,
|
|
28090
28094
|
last_ip: t.var.ip || "",
|
|
@@ -28108,7 +28112,7 @@ async function n8({
|
|
|
28108
28112
|
Rl(
|
|
28109
28113
|
w,
|
|
28110
28114
|
JSON.stringify({
|
|
28111
|
-
...
|
|
28115
|
+
...N,
|
|
28112
28116
|
state: i
|
|
28113
28117
|
})
|
|
28114
28118
|
),
|
|
@@ -28207,10 +28211,10 @@ const r8 = ["email", "sms", "Username-Password-Authentication"], i8 = new J().op
|
|
|
28207
28211
|
prompt: w,
|
|
28208
28212
|
login_ticket: k,
|
|
28209
28213
|
realm: E,
|
|
28210
|
-
auth0Client:
|
|
28211
|
-
login_hint:
|
|
28214
|
+
auth0Client: I,
|
|
28215
|
+
login_hint: O,
|
|
28212
28216
|
ui_locales: A,
|
|
28213
|
-
organization:
|
|
28217
|
+
organization: N
|
|
28214
28218
|
} = t.req.valid("query");
|
|
28215
28219
|
t.set("log", "authorize");
|
|
28216
28220
|
const T = await ki(e, n);
|
|
@@ -28229,9 +28233,9 @@ const r8 = ["email", "sms", "Username-Password-Authentication"], i8 = new J().op
|
|
|
28229
28233
|
response_mode: f,
|
|
28230
28234
|
code_challenge: g,
|
|
28231
28235
|
code_challenge_method: _,
|
|
28232
|
-
username:
|
|
28236
|
+
username: O,
|
|
28233
28237
|
ui_locales: A,
|
|
28234
|
-
organization:
|
|
28238
|
+
organization: N
|
|
28235
28239
|
}, X = t.req.header("origin");
|
|
28236
28240
|
if (X && !By(X, T.web_origins || []))
|
|
28237
28241
|
throw new v(403, {
|
|
@@ -28268,7 +28272,7 @@ const r8 = ["email", "sms", "Username-Password-Authentication"], i8 = new J().op
|
|
|
28268
28272
|
code_challenge: g,
|
|
28269
28273
|
audience: c,
|
|
28270
28274
|
scope: s,
|
|
28271
|
-
organization:
|
|
28275
|
+
organization: N
|
|
28272
28276
|
});
|
|
28273
28277
|
}
|
|
28274
28278
|
if (T.connections.length === 1 && T.connections[0] && !r8.includes(T.connections[0].strategy || ""))
|
|
@@ -28296,7 +28300,7 @@ const r8 = ["email", "sms", "Username-Password-Authentication"], i8 = new J().op
|
|
|
28296
28300
|
authParams: G,
|
|
28297
28301
|
session: ce || void 0,
|
|
28298
28302
|
connection: d,
|
|
28299
|
-
login_hint:
|
|
28303
|
+
login_hint: O
|
|
28300
28304
|
});
|
|
28301
28305
|
return de instanceof Response ? de : t.json(de);
|
|
28302
28306
|
}
|
|
@@ -28352,8 +28356,8 @@ const r8 = ["email", "sms", "Username-Password-Authentication"], i8 = new J().op
|
|
|
28352
28356
|
message: `Origin ${l} not allowed`
|
|
28353
28357
|
});
|
|
28354
28358
|
if (c.redirect_uri) {
|
|
28355
|
-
const
|
|
28356
|
-
if (t.var.host && (
|
|
28359
|
+
const O = a.callbacks || [];
|
|
28360
|
+
if (t.var.host && (O.push(`${Ra(t.env)}/*`), O.push(`${ze(t.env)}/*`)), !vp(c.redirect_uri, O, {
|
|
28357
28361
|
allowPathWildcards: !0,
|
|
28358
28362
|
allowSubDomainWildcards: !0
|
|
28359
28363
|
}))
|
|
@@ -28366,7 +28370,7 @@ const r8 = ["email", "sms", "Username-Password-Authentication"], i8 = new J().op
|
|
|
28366
28370
|
t.req.header("cookie")
|
|
28367
28371
|
), p = d ? await e.data.sessions.get(a.tenant.id, d) : void 0, f = p && !p.revoked_at ? p : void 0, g = new URL(t.req.url);
|
|
28368
28372
|
t.var.custom_domain && (g.hostname = t.var.custom_domain);
|
|
28369
|
-
const { ip: _, auth0_client: w, useragent: k } = t.var, E = fn(w),
|
|
28373
|
+
const { ip: _, auth0_client: w, useragent: k } = t.var, E = fn(w), I = await e.data.loginSessions.create(
|
|
28370
28374
|
a.tenant.id,
|
|
28371
28375
|
{
|
|
28372
28376
|
expires_at: new Date(
|
|
@@ -28386,22 +28390,22 @@ const r8 = ["email", "sms", "Username-Password-Authentication"], i8 = new J().op
|
|
|
28386
28390
|
f.user_id
|
|
28387
28391
|
))?.email !== i)
|
|
28388
28392
|
return t.redirect(
|
|
28389
|
-
`${ze(t.env)}login/identifier?state=${encodeURIComponent(
|
|
28393
|
+
`${ze(t.env)}login/identifier?state=${encodeURIComponent(I.id)}`
|
|
28390
28394
|
);
|
|
28391
|
-
if (await e.data.loginSessions.update(a.tenant.id,
|
|
28395
|
+
if (await e.data.loginSessions.update(a.tenant.id, I.id, {
|
|
28392
28396
|
session_id: f.id
|
|
28393
28397
|
}), s === "change-email") {
|
|
28394
28398
|
const A = new URL(
|
|
28395
28399
|
"/u/account/change-email",
|
|
28396
28400
|
t.req.url
|
|
28397
28401
|
);
|
|
28398
|
-
return A.searchParams.set("state",
|
|
28402
|
+
return A.searchParams.set("state", I.id), t.redirect(A.toString());
|
|
28399
28403
|
}
|
|
28400
|
-
const
|
|
28401
|
-
return
|
|
28404
|
+
const O = new URL("/u/account", t.req.url);
|
|
28405
|
+
return O.searchParams.set("state", I.id), t.redirect(O.toString());
|
|
28402
28406
|
}
|
|
28403
28407
|
return t.redirect(
|
|
28404
|
-
`${ze(t.env)}login/identifier?state=${encodeURIComponent(
|
|
28408
|
+
`${ze(t.env)}login/identifier?state=${encodeURIComponent(I.id)}`
|
|
28405
28409
|
);
|
|
28406
28410
|
}
|
|
28407
28411
|
);
|
|
@@ -28632,7 +28636,7 @@ const ee = /* @__PURE__ */ W2(l8), bn = ({
|
|
|
28632
28636
|
}) => /* @__PURE__ */ u("div", { className: ee("p-6 pt-0", e), children: t }), d8 = ({
|
|
28633
28637
|
children: t,
|
|
28634
28638
|
className: e
|
|
28635
|
-
}) => /* @__PURE__ */ u("div", { className: ee("flex items-center p-6 pt-0", e), children: t }),
|
|
28639
|
+
}) => /* @__PURE__ */ u("div", { className: ee("flex items-center p-6 pt-0", e), children: t }), Ft = ({
|
|
28636
28640
|
id: t,
|
|
28637
28641
|
type: e = "text",
|
|
28638
28642
|
name: n,
|
|
@@ -28729,24 +28733,24 @@ const ee = /* @__PURE__ */ W2(l8), bn = ({
|
|
|
28729
28733
|
}).filter((be) => be !== null).filter((be) => !(c && be.disableEmbeddedBrowsers)), _ = p && f ? "email_or_phone_placeholder" : p ? "email_placeholder" : "phone_placeholder", w = y.t(
|
|
28730
28734
|
_,
|
|
28731
28735
|
p && f ? "Email or Phone Number" : p ? "Email Address" : "Phone Number"
|
|
28732
|
-
), k = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", E = e?.colors?.primary_button_label || "#ffffff",
|
|
28736
|
+
), k = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", E = e?.colors?.primary_button_label || "#ffffff", I = e?.colors?.body_text || "#333333", O = e?.colors?.input_background || "#ffffff", A = e?.colors?.input_border || "#d1d5db", N = e?.colors?.input_filled_text || "#111827", T = e?.colors?.error || "#dc2626", G = e?.colors?.widget_background || "#ffffff", X = e?.colors?.widget_border || "#e5e7eb", se = e?.borders?.widget_corner_radius || 8, H = e?.borders?.input_border_radius || 4, ce = e?.borders?.button_border_radius || 4, de = e?.borders?.show_widget_shadow ?? !0, ge = e?.fonts?.title?.size || 24, xe = e?.fonts?.title?.bold ?? !0, we = e?.fonts?.body_text?.size || 14, Yt = {
|
|
28733
28737
|
backgroundColor: G,
|
|
28734
28738
|
borderColor: X,
|
|
28735
28739
|
borderRadius: `${se}px`,
|
|
28736
28740
|
boxShadow: de ? "0 1px 3px 0 rgba(0, 0, 0, 0.1)" : "none",
|
|
28737
|
-
color:
|
|
28741
|
+
color: I
|
|
28738
28742
|
}, Ke = {
|
|
28739
28743
|
fontSize: `${ge}px`,
|
|
28740
28744
|
fontWeight: xe ? "700" : "400",
|
|
28741
|
-
color: e?.colors?.header ||
|
|
28745
|
+
color: e?.colors?.header || I
|
|
28742
28746
|
}, Qe = {
|
|
28743
28747
|
fontSize: `${we}px`,
|
|
28744
28748
|
color: e?.colors?.input_labels_placeholders || "#6b7280"
|
|
28745
|
-
},
|
|
28746
|
-
backgroundColor:
|
|
28749
|
+
}, Tt = {
|
|
28750
|
+
backgroundColor: O,
|
|
28747
28751
|
borderColor: t ? T : A,
|
|
28748
28752
|
borderRadius: `${H}px`,
|
|
28749
|
-
color:
|
|
28753
|
+
color: N
|
|
28750
28754
|
}, Qt = {
|
|
28751
28755
|
backgroundColor: k,
|
|
28752
28756
|
color: E,
|
|
@@ -28802,7 +28806,7 @@ const ee = /* @__PURE__ */ W2(l8), bn = ({
|
|
|
28802
28806
|
p && f ? "Email or Phone Number" : p ? "Email" : "Phone Number"
|
|
28803
28807
|
) }),
|
|
28804
28808
|
/* @__PURE__ */ u(
|
|
28805
|
-
|
|
28809
|
+
Ft,
|
|
28806
28810
|
{
|
|
28807
28811
|
id: "username",
|
|
28808
28812
|
name: "username",
|
|
@@ -28812,7 +28816,7 @@ const ee = /* @__PURE__ */ W2(l8), bn = ({
|
|
|
28812
28816
|
value: i || "",
|
|
28813
28817
|
error: !!t,
|
|
28814
28818
|
className: "border",
|
|
28815
|
-
style:
|
|
28819
|
+
style: Tt
|
|
28816
28820
|
}
|
|
28817
28821
|
),
|
|
28818
28822
|
t && /* @__PURE__ */ u(Ve, { children: t })
|
|
@@ -28864,7 +28868,7 @@ const ee = /* @__PURE__ */ W2(l8), bn = ({
|
|
|
28864
28868
|
style: {
|
|
28865
28869
|
borderColor: A,
|
|
28866
28870
|
borderRadius: `${ce}px`,
|
|
28867
|
-
color:
|
|
28871
|
+
color: I
|
|
28868
28872
|
},
|
|
28869
28873
|
children: [
|
|
28870
28874
|
/* @__PURE__ */ u($r, { className: "h-5 w-5" }),
|
|
@@ -29114,18 +29118,18 @@ const ee = /* @__PURE__ */ W2(l8), bn = ({
|
|
|
29114
29118
|
"Username-Password-Authentication",
|
|
29115
29119
|
"auth0"
|
|
29116
29120
|
]), g = s.connections.filter((A) => !f.has(A.strategy)).filter((A) => A.show_as_button !== !1).map((A) => {
|
|
29117
|
-
const
|
|
29118
|
-
return
|
|
29119
|
-
...
|
|
29121
|
+
const N = Nu[A.strategy];
|
|
29122
|
+
return N ? {
|
|
29123
|
+
...N,
|
|
29120
29124
|
connectionName: A.name,
|
|
29121
29125
|
// Use display_name if set, otherwise fall back to strategy displayName
|
|
29122
|
-
displayName: A.display_name ||
|
|
29126
|
+
displayName: A.display_name || N.displayName || A.name,
|
|
29123
29127
|
iconUrl: A.options.icon_url
|
|
29124
29128
|
} : null;
|
|
29125
29129
|
}).filter((A) => A !== null).filter((A) => !(a && A.disableEmbeddedBrowsers)), _ = d || p;
|
|
29126
29130
|
let w = "text", k = "username";
|
|
29127
29131
|
const E = d && p ? "email_or_phone_placeholder" : d ? "email_placeholder" : "phone_placeholder";
|
|
29128
|
-
let
|
|
29132
|
+
let I = y.t(
|
|
29129
29133
|
E,
|
|
29130
29134
|
d && p ? "Email or Phone Number" : d ? "Email Address" : "Phone Number"
|
|
29131
29135
|
);
|
|
@@ -29185,7 +29189,7 @@ const ee = /* @__PURE__ */ W2(l8), bn = ({
|
|
|
29185
29189
|
{
|
|
29186
29190
|
type: w,
|
|
29187
29191
|
name: k,
|
|
29188
|
-
placeholder:
|
|
29192
|
+
placeholder: I,
|
|
29189
29193
|
className: ee(
|
|
29190
29194
|
"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",
|
|
29191
29195
|
{
|
|
@@ -29208,7 +29212,7 @@ const ee = /* @__PURE__ */ W2(l8), bn = ({
|
|
|
29208
29212
|
/* @__PURE__ */ u("div", { className: "relative inline-block bg-white px-2 dark:bg-gray-800", children: y.t("continue_social_login") })
|
|
29209
29213
|
] }),
|
|
29210
29214
|
/* @__PURE__ */ u("div", { className: "flex space-x-4 sm:flex-col sm:space-x-0 sm:space-y-4 short:flex-row short:space-x-4 short:space-y-0", children: g.map((A) => {
|
|
29211
|
-
const
|
|
29215
|
+
const N = A.logo;
|
|
29212
29216
|
return /* @__PURE__ */ u(
|
|
29213
29217
|
y8,
|
|
29214
29218
|
{
|
|
@@ -29218,7 +29222,7 @@ const ee = /* @__PURE__ */ W2(l8), bn = ({
|
|
|
29218
29222
|
}),
|
|
29219
29223
|
canResize: !0,
|
|
29220
29224
|
icon: /* @__PURE__ */ u(
|
|
29221
|
-
|
|
29225
|
+
N,
|
|
29222
29226
|
{
|
|
29223
29227
|
className: "h-5 w-5 sm:absolute sm:left-4 sm:top-1/2 sm:h-6 sm:w-6 sm:-translate-y-1/2 short:static short:left-auto short:top-auto short:h-5 short:w-5 short:translate-y-0",
|
|
29224
29228
|
iconUrl: A.iconUrl
|
|
@@ -29551,19 +29555,19 @@ const v8 = new J().openapi(
|
|
|
29551
29555
|
r.login_selection
|
|
29552
29556
|
))
|
|
29553
29557
|
return t.redirect(`/u/enter-password?state=${n}`);
|
|
29554
|
-
let
|
|
29558
|
+
let O = Ln(), A = await e.data.codes.get(
|
|
29555
29559
|
i.tenant.id,
|
|
29556
|
-
|
|
29560
|
+
O,
|
|
29557
29561
|
"otp"
|
|
29558
29562
|
);
|
|
29559
29563
|
for (; A; )
|
|
29560
|
-
|
|
29564
|
+
O = Ln(), A = await e.data.codes.get(
|
|
29561
29565
|
i.tenant.id,
|
|
29562
|
-
|
|
29566
|
+
O,
|
|
29563
29567
|
"otp"
|
|
29564
29568
|
);
|
|
29565
|
-
const
|
|
29566
|
-
code_id:
|
|
29569
|
+
const N = await t.env.data.codes.create(i.tenant.id, {
|
|
29570
|
+
code_id: O,
|
|
29567
29571
|
code_type: "otp",
|
|
29568
29572
|
login_id: s.id,
|
|
29569
29573
|
expires_at: new Date(Date.now() + bs).toISOString(),
|
|
@@ -29581,12 +29585,12 @@ const v8 = new J().openapi(
|
|
|
29581
29585
|
return w === "email" && // This is different to how it works in auth0
|
|
29582
29586
|
T.options.authentication_method === "magic_link" ? await Pp(t, {
|
|
29583
29587
|
to: _,
|
|
29584
|
-
code:
|
|
29588
|
+
code: N.code_id,
|
|
29585
29589
|
authParams: s.authParams,
|
|
29586
29590
|
language: G
|
|
29587
29591
|
}) : await Op(t, {
|
|
29588
29592
|
to: _,
|
|
29589
|
-
code:
|
|
29593
|
+
code: N.code_id,
|
|
29590
29594
|
language: G
|
|
29591
29595
|
}), t.redirect(`/u/enter-code?state=${n}`);
|
|
29592
29596
|
}
|
|
@@ -29973,77 +29977,77 @@ var Ro = "_hp", $8 = {
|
|
|
29973
29977
|
const _ = vs[t];
|
|
29974
29978
|
let w;
|
|
29975
29979
|
if (_.length > 0) {
|
|
29976
|
-
const
|
|
29980
|
+
const O = s.querySelectorAll(t);
|
|
29977
29981
|
e:
|
|
29978
|
-
for (const A of
|
|
29979
|
-
for (const
|
|
29980
|
-
if (A.getAttribute(
|
|
29982
|
+
for (const A of O)
|
|
29983
|
+
for (const N of vs[t])
|
|
29984
|
+
if (A.getAttribute(N) === e[N]) {
|
|
29981
29985
|
f = A;
|
|
29982
29986
|
break e;
|
|
29983
29987
|
}
|
|
29984
29988
|
if (!f) {
|
|
29985
29989
|
const A = _.reduce(
|
|
29986
|
-
(
|
|
29990
|
+
(N, T) => e[T] === void 0 ? N : `${N}-${T}-${e[T]}`,
|
|
29987
29991
|
t
|
|
29988
29992
|
);
|
|
29989
29993
|
g = !l0[A], f = l0[A] ||= (() => {
|
|
29990
|
-
const
|
|
29994
|
+
const N = document.createElement(t);
|
|
29991
29995
|
for (const T of _)
|
|
29992
|
-
e[T] !== void 0 &&
|
|
29993
|
-
return
|
|
29996
|
+
e[T] !== void 0 && N.setAttribute(T, e[T]), e.rel && N.setAttribute("rel", e.rel);
|
|
29997
|
+
return N;
|
|
29994
29998
|
})();
|
|
29995
29999
|
}
|
|
29996
30000
|
} else
|
|
29997
30001
|
w = s.querySelectorAll(t);
|
|
29998
30002
|
l = r ? l ?? "" : void 0, r && (p[$s] = l);
|
|
29999
30003
|
const k = Rp(
|
|
30000
|
-
(
|
|
30004
|
+
(O) => {
|
|
30001
30005
|
if (_.length > 0) {
|
|
30002
30006
|
let A = !1;
|
|
30003
|
-
for (const
|
|
30004
|
-
if (A &&
|
|
30005
|
-
s.insertBefore(
|
|
30007
|
+
for (const N of s.querySelectorAll(t)) {
|
|
30008
|
+
if (A && N.getAttribute($s) !== l) {
|
|
30009
|
+
s.insertBefore(O, N);
|
|
30006
30010
|
return;
|
|
30007
30011
|
}
|
|
30008
|
-
|
|
30012
|
+
N.getAttribute($s) === l && (A = !0);
|
|
30009
30013
|
}
|
|
30010
|
-
s.appendChild(
|
|
30014
|
+
s.appendChild(O);
|
|
30011
30015
|
} else if (w) {
|
|
30012
30016
|
let A = !1;
|
|
30013
|
-
for (const
|
|
30014
|
-
if (
|
|
30017
|
+
for (const N of w)
|
|
30018
|
+
if (N === O) {
|
|
30015
30019
|
A = !0;
|
|
30016
30020
|
break;
|
|
30017
30021
|
}
|
|
30018
30022
|
A || s.insertBefore(
|
|
30019
|
-
|
|
30023
|
+
O,
|
|
30020
30024
|
s.contains(w[0]) ? w[0] : s.querySelector(t)
|
|
30021
30025
|
), w = void 0;
|
|
30022
30026
|
}
|
|
30023
30027
|
},
|
|
30024
30028
|
[l]
|
|
30025
|
-
), E = Bp(e.ref, (
|
|
30029
|
+
), E = Bp(e.ref, (O) => {
|
|
30026
30030
|
const A = _[0];
|
|
30027
|
-
if (n === 2 && (
|
|
30031
|
+
if (n === 2 && (O.innerHTML = ""), (g || w) && k(O), !c && !a)
|
|
30028
30032
|
return;
|
|
30029
|
-
let
|
|
30033
|
+
let N = c0[O.getAttribute(A)] ||= new Promise(
|
|
30030
30034
|
(T, G) => {
|
|
30031
|
-
|
|
30035
|
+
O.addEventListener("load", T), O.addEventListener("error", G);
|
|
30032
30036
|
}
|
|
30033
30037
|
);
|
|
30034
|
-
a && (
|
|
30038
|
+
a && (N = N.then(a)), c && (N = N.catch(c)), N.catch(() => {
|
|
30035
30039
|
});
|
|
30036
30040
|
});
|
|
30037
30041
|
if (i && d === "render") {
|
|
30038
|
-
const
|
|
30039
|
-
if (e[
|
|
30040
|
-
const A = e[
|
|
30042
|
+
const O = vs[t][0];
|
|
30043
|
+
if (e[O]) {
|
|
30044
|
+
const A = e[O], N = c0[A] ||= new Promise((T, G) => {
|
|
30041
30045
|
k(f), f.addEventListener("load", T), f.addEventListener("error", G);
|
|
30042
30046
|
});
|
|
30043
|
-
B8(
|
|
30047
|
+
B8(N);
|
|
30044
30048
|
}
|
|
30045
30049
|
}
|
|
30046
|
-
const
|
|
30050
|
+
const I = {
|
|
30047
30051
|
tag: t,
|
|
30048
30052
|
type: t,
|
|
30049
30053
|
props: {
|
|
@@ -30052,8 +30056,8 @@ var Ro = "_hp", $8 = {
|
|
|
30052
30056
|
},
|
|
30053
30057
|
ref: E
|
|
30054
30058
|
};
|
|
30055
|
-
return
|
|
30056
|
-
|
|
30059
|
+
return I.p = n, f && (I.e = f), j8(
|
|
30060
|
+
I,
|
|
30057
30061
|
s
|
|
30058
30062
|
);
|
|
30059
30063
|
}, M8 = (t) => {
|
|
@@ -30301,15 +30305,15 @@ const _r = (t) => {
|
|
|
30301
30305
|
}) => {
|
|
30302
30306
|
const c = new URLSearchParams({
|
|
30303
30307
|
state: i
|
|
30304
|
-
}), 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, E = e?.borders?.show_widget_shadow ?? !0,
|
|
30308
|
+
}), 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, E = e?.borders?.show_widget_shadow ?? !0, I = e?.fonts?.title?.size || 24, O = e?.fonts?.title?.bold ?? !0, A = e?.fonts?.body_text?.size || 14, N = {
|
|
30305
30309
|
backgroundColor: g,
|
|
30306
30310
|
borderColor: _,
|
|
30307
30311
|
borderRadius: `${w}px`,
|
|
30308
30312
|
boxShadow: E ? "0 1px 3px 0 rgba(0, 0, 0, 0.1)" : "none",
|
|
30309
30313
|
color: p
|
|
30310
30314
|
}, T = {
|
|
30311
|
-
fontSize: `${
|
|
30312
|
-
fontWeight:
|
|
30315
|
+
fontSize: `${I}px`,
|
|
30316
|
+
fontWeight: O ? "700" : "400",
|
|
30313
30317
|
color: e?.colors?.header || p
|
|
30314
30318
|
}, G = {
|
|
30315
30319
|
fontSize: `${A}px`,
|
|
@@ -30320,7 +30324,7 @@ const _r = (t) => {
|
|
|
30320
30324
|
borderRadius: `${k}px`
|
|
30321
30325
|
}, se = e?.widget?.logo_position || "center", H = se === "left" ? "text-left" : se === "right" ? "text-right" : "text-center", ce = e?.widget?.logo_url || n?.logo_url, de = se !== "none" && ce;
|
|
30322
30326
|
return /* @__PURE__ */ u("div", { className: ee("flex flex-col gap-6 w-full max-w-sm", a), children: [
|
|
30323
|
-
/* @__PURE__ */ u(bn, { style:
|
|
30327
|
+
/* @__PURE__ */ u(bn, { style: N, className: "border", children: [
|
|
30324
30328
|
/* @__PURE__ */ u(vn, { children: [
|
|
30325
30329
|
de && /* @__PURE__ */ u("div", { className: ee("mb-4", H), children: /* @__PURE__ */ u(Xt, { theme: e, branding: n }) }),
|
|
30326
30330
|
/* @__PURE__ */ u($n, { style: T, children: y.t("verify_your_email", "Verify your email") }),
|
|
@@ -30832,15 +30836,15 @@ const _r = (t) => {
|
|
|
30832
30836
|
email: i,
|
|
30833
30837
|
className: s
|
|
30834
30838
|
}) => {
|
|
30835
|
-
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, E = e?.borders?.input_border_radius || 4,
|
|
30839
|
+
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, E = e?.borders?.input_border_radius || 4, I = e?.borders?.button_border_radius || 4, O = e?.borders?.show_widget_shadow ?? !0, A = e?.fonts?.title?.size || 24, N = e?.fonts?.title?.bold ?? !0, T = e?.fonts?.body_text?.size || 14, G = {
|
|
30836
30840
|
backgroundColor: _,
|
|
30837
30841
|
borderColor: w,
|
|
30838
30842
|
borderRadius: `${k}px`,
|
|
30839
|
-
boxShadow:
|
|
30843
|
+
boxShadow: O ? "0 1px 3px 0 rgba(0, 0, 0, 0.1)" : "none",
|
|
30840
30844
|
color: l
|
|
30841
30845
|
}, X = {
|
|
30842
30846
|
fontSize: `${A}px`,
|
|
30843
|
-
fontWeight:
|
|
30847
|
+
fontWeight: N ? "700" : "400",
|
|
30844
30848
|
color: e?.colors?.header || l
|
|
30845
30849
|
}, se = {
|
|
30846
30850
|
fontSize: `${T}px`,
|
|
@@ -30853,7 +30857,7 @@ const _r = (t) => {
|
|
|
30853
30857
|
}, ce = {
|
|
30854
30858
|
backgroundColor: a,
|
|
30855
30859
|
color: c,
|
|
30856
|
-
borderRadius: `${
|
|
30860
|
+
borderRadius: `${I}px`
|
|
30857
30861
|
}, de = e?.widget?.logo_position || "center", ge = de === "left" ? "text-left" : de === "right" ? "text-right" : "text-center", xe = e?.widget?.logo_url || n?.logo_url, we = de !== "none" && xe;
|
|
30858
30862
|
return /* @__PURE__ */ u("div", { className: ee("flex flex-col gap-6 w-full max-w-sm", s), children: /* @__PURE__ */ u(bn, { style: G, className: "border", children: [
|
|
30859
30863
|
/* @__PURE__ */ u(vn, { children: [
|
|
@@ -30868,7 +30872,7 @@ const _r = (t) => {
|
|
|
30868
30872
|
/* @__PURE__ */ u("div", { className: "grid gap-2", children: [
|
|
30869
30873
|
/* @__PURE__ */ u(jt, { htmlFor: "email", style: se, children: y.t("email", "Email") }),
|
|
30870
30874
|
/* @__PURE__ */ u(
|
|
30871
|
-
|
|
30875
|
+
Ft,
|
|
30872
30876
|
{
|
|
30873
30877
|
id: "email",
|
|
30874
30878
|
name: "username",
|
|
@@ -30895,7 +30899,7 @@ const _r = (t) => {
|
|
|
30895
30899
|
] }),
|
|
30896
30900
|
/* @__PURE__ */ u("div", { className: "relative", "data-password-toggle": !0, children: [
|
|
30897
30901
|
/* @__PURE__ */ u(
|
|
30898
|
-
|
|
30902
|
+
Ft,
|
|
30899
30903
|
{
|
|
30900
30904
|
id: "password",
|
|
30901
30905
|
name: "password",
|
|
@@ -31250,14 +31254,14 @@ const _r = (t) => {
|
|
|
31250
31254
|
code: s,
|
|
31251
31255
|
className: a
|
|
31252
31256
|
}) => {
|
|
31253
|
-
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", E = e?.borders?.widget_corner_radius || 8,
|
|
31257
|
+
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", E = e?.borders?.widget_corner_radius || 8, I = e?.borders?.input_border_radius || 4, O = e?.borders?.button_border_radius || 4, A = e?.borders?.show_widget_shadow ?? !0, N = e?.fonts?.title?.size || 24, T = e?.fonts?.title?.bold ?? !0, G = e?.fonts?.body_text?.size || 14, X = {
|
|
31254
31258
|
backgroundColor: w,
|
|
31255
31259
|
borderColor: k,
|
|
31256
31260
|
borderRadius: `${E}px`,
|
|
31257
31261
|
boxShadow: A ? "0 1px 3px 0 rgba(0, 0, 0, 0.1)" : "none",
|
|
31258
31262
|
color: d
|
|
31259
31263
|
}, se = {
|
|
31260
|
-
fontSize: `${
|
|
31264
|
+
fontSize: `${N}px`,
|
|
31261
31265
|
fontWeight: T ? "700" : "400",
|
|
31262
31266
|
color: e?.colors?.header || d
|
|
31263
31267
|
}, H = {
|
|
@@ -31266,12 +31270,12 @@ const _r = (t) => {
|
|
|
31266
31270
|
}, ce = {
|
|
31267
31271
|
backgroundColor: p,
|
|
31268
31272
|
borderColor: t ? _ : f,
|
|
31269
|
-
borderRadius: `${
|
|
31273
|
+
borderRadius: `${I}px`,
|
|
31270
31274
|
color: g
|
|
31271
31275
|
}, de = {
|
|
31272
31276
|
backgroundColor: c,
|
|
31273
31277
|
color: l,
|
|
31274
|
-
borderRadius: `${
|
|
31278
|
+
borderRadius: `${O}px`
|
|
31275
31279
|
}, ge = e?.widget?.logo_position || "center", xe = ge === "left" ? "text-left" : ge === "right" ? "text-right" : "text-center", we = e?.widget?.logo_url || n?.logo_url, Yt = ge !== "none" && we;
|
|
31276
31280
|
return /* @__PURE__ */ u("div", { className: ee("flex flex-col gap-6 w-full max-w-sm", a), children: /* @__PURE__ */ u(bn, { style: X, className: "border", children: [
|
|
31277
31281
|
/* @__PURE__ */ u(vn, { children: [
|
|
@@ -31293,7 +31297,7 @@ const _r = (t) => {
|
|
|
31293
31297
|
/* @__PURE__ */ u("div", { className: "space-y-2", children: [
|
|
31294
31298
|
/* @__PURE__ */ u(jt, { htmlFor: "username", style: H, children: y.t("email_label", "Email") }),
|
|
31295
31299
|
/* @__PURE__ */ u(
|
|
31296
|
-
|
|
31300
|
+
Ft,
|
|
31297
31301
|
{
|
|
31298
31302
|
id: "username",
|
|
31299
31303
|
type: "email",
|
|
@@ -31311,7 +31315,7 @@ const _r = (t) => {
|
|
|
31311
31315
|
/* @__PURE__ */ u(jt, { htmlFor: "password", style: H, children: y.t("password", "Password") }),
|
|
31312
31316
|
/* @__PURE__ */ u("div", { className: "relative", "data-password-toggle": !0, children: [
|
|
31313
31317
|
/* @__PURE__ */ u(
|
|
31314
|
-
|
|
31318
|
+
Ft,
|
|
31315
31319
|
{
|
|
31316
31320
|
id: "password",
|
|
31317
31321
|
name: "password",
|
|
@@ -31388,7 +31392,7 @@ const _r = (t) => {
|
|
|
31388
31392
|
/* @__PURE__ */ u(jt, { htmlFor: "re-enter-password", style: H, children: y.t("confirm_password", "Confirm Password") }),
|
|
31389
31393
|
/* @__PURE__ */ u("div", { className: "relative", "data-password-toggle": !0, children: [
|
|
31390
31394
|
/* @__PURE__ */ u(
|
|
31391
|
-
|
|
31395
|
+
Ft,
|
|
31392
31396
|
{
|
|
31393
31397
|
id: "re-enter-password",
|
|
31394
31398
|
name: "re-enter-password",
|
|
@@ -31602,8 +31606,10 @@ const _r = (t) => {
|
|
|
31602
31606
|
try {
|
|
31603
31607
|
if (!c.authParams.username)
|
|
31604
31608
|
throw new v(400, { message: "Username required" });
|
|
31605
|
-
const
|
|
31606
|
-
|
|
31609
|
+
const p = a.connections.find(
|
|
31610
|
+
(A) => A.strategy === "Username-Password-Authentication"
|
|
31611
|
+
)?.name || "Username-Password-Authentication";
|
|
31612
|
+
if (t.set("connection", p), n.password !== n["re-enter-password"])
|
|
31607
31613
|
return l ? t.html(
|
|
31608
31614
|
/* @__PURE__ */ u(
|
|
31609
31615
|
ke,
|
|
@@ -31642,25 +31648,25 @@ const _r = (t) => {
|
|
|
31642
31648
|
),
|
|
31643
31649
|
400
|
|
31644
31650
|
);
|
|
31645
|
-
const
|
|
31651
|
+
const f = await Ip(
|
|
31646
31652
|
r.data,
|
|
31647
31653
|
a.tenant.id,
|
|
31648
|
-
|
|
31654
|
+
p
|
|
31649
31655
|
);
|
|
31650
31656
|
try {
|
|
31651
|
-
await jp(
|
|
31657
|
+
await jp(f, {
|
|
31652
31658
|
tenantId: a.tenant.id,
|
|
31653
31659
|
userId: "",
|
|
31654
31660
|
// No user yet for signup
|
|
31655
31661
|
newPassword: n.password,
|
|
31656
31662
|
data: r.data
|
|
31657
31663
|
});
|
|
31658
|
-
} catch (
|
|
31659
|
-
let
|
|
31660
|
-
return
|
|
31661
|
-
defaultValue:
|
|
31662
|
-
...
|
|
31663
|
-
}) :
|
|
31664
|
+
} catch (A) {
|
|
31665
|
+
let N;
|
|
31666
|
+
return A instanceof Ut ? N = y.t(A.code, {
|
|
31667
|
+
defaultValue: A.message,
|
|
31668
|
+
...A.params
|
|
31669
|
+
}) : N = A?.message || y.t("create_account_weak_password"), l ? t.html(
|
|
31664
31670
|
/* @__PURE__ */ u(
|
|
31665
31671
|
ke,
|
|
31666
31672
|
{
|
|
@@ -31676,7 +31682,7 @@ const _r = (t) => {
|
|
|
31676
31682
|
loginSession: c,
|
|
31677
31683
|
email: c.authParams.username,
|
|
31678
31684
|
code: n.code,
|
|
31679
|
-
error:
|
|
31685
|
+
error: N,
|
|
31680
31686
|
client: a
|
|
31681
31687
|
}
|
|
31682
31688
|
)
|
|
@@ -31692,20 +31698,20 @@ const _r = (t) => {
|
|
|
31692
31698
|
theme: i,
|
|
31693
31699
|
branding: s,
|
|
31694
31700
|
client: a,
|
|
31695
|
-
error:
|
|
31701
|
+
error: N,
|
|
31696
31702
|
email: c.authParams.username
|
|
31697
31703
|
}
|
|
31698
31704
|
),
|
|
31699
31705
|
400
|
|
31700
31706
|
);
|
|
31701
31707
|
}
|
|
31702
|
-
const
|
|
31708
|
+
const g = n.code ? await r.data.codes.get(
|
|
31703
31709
|
a.tenant.id,
|
|
31704
31710
|
n.code,
|
|
31705
31711
|
"email_verification"
|
|
31706
|
-
) : void 0,
|
|
31712
|
+
) : void 0, _ = g ? await r.data.loginSessions.get(
|
|
31707
31713
|
a.tenant.id,
|
|
31708
|
-
|
|
31714
|
+
g.login_id
|
|
31709
31715
|
) : void 0;
|
|
31710
31716
|
if (await li({
|
|
31711
31717
|
userAdapter: t.env.data.users,
|
|
@@ -31751,22 +31757,22 @@ const _r = (t) => {
|
|
|
31751
31757
|
),
|
|
31752
31758
|
400
|
|
31753
31759
|
);
|
|
31754
|
-
const
|
|
31755
|
-
user_id:
|
|
31760
|
+
const k = _?.authParams.username === c.authParams.username, E = `auth2|${Ea()}`, I = await r.data.users.create(a.tenant.id, {
|
|
31761
|
+
user_id: E,
|
|
31756
31762
|
email: c.authParams.username,
|
|
31757
|
-
email_verified:
|
|
31763
|
+
email_verified: k,
|
|
31758
31764
|
provider: "auth2",
|
|
31759
|
-
connection:
|
|
31765
|
+
connection: p,
|
|
31760
31766
|
is_social: !1
|
|
31761
31767
|
});
|
|
31762
31768
|
if (await r.data.passwords.create(a.tenant.id, {
|
|
31763
|
-
user_id:
|
|
31769
|
+
user_id: E,
|
|
31764
31770
|
password: await Yn.hash(n.password, 10),
|
|
31765
31771
|
algorithm: "bcrypt",
|
|
31766
31772
|
is_current: !0
|
|
31767
|
-
}), !
|
|
31768
|
-
const
|
|
31769
|
-
return await Tp(t,
|
|
31773
|
+
}), !k) {
|
|
31774
|
+
const A = c.authParams?.ui_locales?.split(" ")?.map((N) => N.split("-")[0])[0];
|
|
31775
|
+
return await Tp(t, I, A), t.html(
|
|
31770
31776
|
/* @__PURE__ */ u(
|
|
31771
31777
|
Ot,
|
|
31772
31778
|
{
|
|
@@ -31789,7 +31795,7 @@ const _r = (t) => {
|
|
|
31789
31795
|
},
|
|
31790
31796
|
c
|
|
31791
31797
|
);
|
|
31792
|
-
return
|
|
31798
|
+
return Ht(t, O);
|
|
31793
31799
|
} catch (d) {
|
|
31794
31800
|
let p = y.t("unknown_error_message"), f = 400;
|
|
31795
31801
|
return d instanceof v ? (p = d.message || p, f = d.status === 400 ? 400 : 500) : d instanceof Pr ? p = d.message || p : d instanceof Error && (p = d.message || p, f = 500), l ? t.html(
|
|
@@ -31873,15 +31879,15 @@ const _r = (t) => {
|
|
|
31873
31879
|
email: i,
|
|
31874
31880
|
className: s
|
|
31875
31881
|
}) => {
|
|
31876
|
-
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, E = e?.borders?.input_border_radius || 4,
|
|
31882
|
+
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, E = e?.borders?.input_border_radius || 4, I = e?.borders?.button_border_radius || 4, O = e?.borders?.show_widget_shadow ?? !0, A = e?.fonts?.title?.size || 24, N = e?.fonts?.title?.bold ?? !0, T = e?.fonts?.body_text?.size || 14, G = {
|
|
31877
31883
|
backgroundColor: _,
|
|
31878
31884
|
borderColor: w,
|
|
31879
31885
|
borderRadius: `${k}px`,
|
|
31880
|
-
boxShadow:
|
|
31886
|
+
boxShadow: O ? "0 1px 3px 0 rgba(0, 0, 0, 0.1)" : "none",
|
|
31881
31887
|
color: l
|
|
31882
31888
|
}, X = {
|
|
31883
31889
|
fontSize: `${A}px`,
|
|
31884
|
-
fontWeight:
|
|
31890
|
+
fontWeight: N ? "700" : "400",
|
|
31885
31891
|
color: e?.colors?.header || l
|
|
31886
31892
|
}, se = {
|
|
31887
31893
|
fontSize: `${T}px`,
|
|
@@ -31894,7 +31900,7 @@ const _r = (t) => {
|
|
|
31894
31900
|
}, ce = {
|
|
31895
31901
|
backgroundColor: a,
|
|
31896
31902
|
color: c,
|
|
31897
|
-
borderRadius: `${
|
|
31903
|
+
borderRadius: `${I}px`
|
|
31898
31904
|
}, de = e?.widget?.logo_position || "center", ge = de === "left" ? "text-left" : de === "right" ? "text-right" : "text-center", xe = e?.widget?.logo_url || n?.logo_url, we = de !== "none" && xe;
|
|
31899
31905
|
return /* @__PURE__ */ u("div", { className: ee("flex flex-col gap-6 w-full max-w-sm", s), children: /* @__PURE__ */ u(bn, { style: G, className: "border", children: [
|
|
31900
31906
|
/* @__PURE__ */ u(vn, { children: [
|
|
@@ -31915,7 +31921,7 @@ const _r = (t) => {
|
|
|
31915
31921
|
/* @__PURE__ */ u(jt, { htmlFor: "password", style: se, children: y.t("new_password", "New Password") }),
|
|
31916
31922
|
/* @__PURE__ */ u("div", { className: "relative", "data-password-toggle": !0, children: [
|
|
31917
31923
|
/* @__PURE__ */ u(
|
|
31918
|
-
|
|
31924
|
+
Ft,
|
|
31919
31925
|
{
|
|
31920
31926
|
id: "password",
|
|
31921
31927
|
name: "password",
|
|
@@ -31992,7 +31998,7 @@ const _r = (t) => {
|
|
|
31992
31998
|
/* @__PURE__ */ u(jt, { htmlFor: "re-enter-password", style: se, children: y.t("confirm_password", "Confirm Password") }),
|
|
31993
31999
|
/* @__PURE__ */ u("div", { className: "relative", "data-password-toggle": !0, children: [
|
|
31994
32000
|
/* @__PURE__ */ u(
|
|
31995
|
-
|
|
32001
|
+
Ft,
|
|
31996
32002
|
{
|
|
31997
32003
|
id: "re-enter-password",
|
|
31998
32004
|
name: "re-enter-password",
|
|
@@ -32217,7 +32223,7 @@ const _r = (t) => {
|
|
|
32217
32223
|
const g = await Ip(
|
|
32218
32224
|
s.data,
|
|
32219
32225
|
l.tenant.id,
|
|
32220
|
-
|
|
32226
|
+
f.connection
|
|
32221
32227
|
);
|
|
32222
32228
|
try {
|
|
32223
32229
|
await jp(g, {
|
|
@@ -32342,7 +32348,7 @@ const _r = (t) => {
|
|
|
32342
32348
|
userId: f.user_id
|
|
32343
32349
|
});
|
|
32344
32350
|
let k;
|
|
32345
|
-
return _ instanceof
|
|
32351
|
+
return _ instanceof Ut ? k = y.t(_.code, {
|
|
32346
32352
|
defaultValue: _.message,
|
|
32347
32353
|
..._.params
|
|
32348
32354
|
}) : k = y.t(
|
|
@@ -32438,15 +32444,15 @@ const _r = (t) => {
|
|
|
32438
32444
|
email: i,
|
|
32439
32445
|
className: s
|
|
32440
32446
|
}) => {
|
|
32441
|
-
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, E = e?.borders?.input_border_radius || 4,
|
|
32447
|
+
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, E = e?.borders?.input_border_radius || 4, I = e?.borders?.button_border_radius || 4, O = e?.borders?.show_widget_shadow ?? !0, A = e?.fonts?.title?.size || 24, N = e?.fonts?.title?.bold ?? !0, T = e?.fonts?.body_text?.size || 14, G = {
|
|
32442
32448
|
backgroundColor: _,
|
|
32443
32449
|
borderColor: w,
|
|
32444
32450
|
borderRadius: `${k}px`,
|
|
32445
|
-
boxShadow:
|
|
32451
|
+
boxShadow: O ? "0 1px 3px 0 rgba(0, 0, 0, 0.1)" : "none",
|
|
32446
32452
|
color: l
|
|
32447
32453
|
}, X = {
|
|
32448
32454
|
fontSize: `${A}px`,
|
|
32449
|
-
fontWeight:
|
|
32455
|
+
fontWeight: N ? "700" : "400",
|
|
32450
32456
|
color: e?.colors?.header || l
|
|
32451
32457
|
}, se = {
|
|
32452
32458
|
fontSize: `${T}px`,
|
|
@@ -32459,7 +32465,7 @@ const _r = (t) => {
|
|
|
32459
32465
|
}, ce = {
|
|
32460
32466
|
backgroundColor: a,
|
|
32461
32467
|
color: c,
|
|
32462
|
-
borderRadius: `${
|
|
32468
|
+
borderRadius: `${I}px`
|
|
32463
32469
|
}, de = e?.widget?.logo_position || "center", ge = de === "left" ? "text-left" : de === "right" ? "text-right" : "text-center", xe = e?.widget?.logo_url || n?.logo_url, we = de !== "none" && xe;
|
|
32464
32470
|
return /* @__PURE__ */ u("div", { className: ee("flex flex-col gap-6 w-full max-w-sm", s), children: /* @__PURE__ */ u(bn, { style: G, className: "border", children: [
|
|
32465
32471
|
/* @__PURE__ */ u(vn, { children: [
|
|
@@ -32491,7 +32497,7 @@ const _r = (t) => {
|
|
|
32491
32497
|
}
|
|
32492
32498
|
),
|
|
32493
32499
|
/* @__PURE__ */ u(
|
|
32494
|
-
|
|
32500
|
+
Ft,
|
|
32495
32501
|
{
|
|
32496
32502
|
id: "username",
|
|
32497
32503
|
type: "email",
|
|
@@ -32693,26 +32699,26 @@ const _r = (t) => {
|
|
|
32693
32699
|
borderRadius: `${p}px`,
|
|
32694
32700
|
boxShadow: g ? "0 1px 3px 0 rgba(0, 0, 0, 0.1)" : "none",
|
|
32695
32701
|
color: c
|
|
32696
|
-
},
|
|
32702
|
+
}, I = {
|
|
32697
32703
|
fontSize: `${_}px`,
|
|
32698
32704
|
fontWeight: w ? "700" : "400",
|
|
32699
32705
|
color: t?.colors?.header || c
|
|
32700
|
-
},
|
|
32706
|
+
}, O = {
|
|
32701
32707
|
fontSize: `${k}px`,
|
|
32702
32708
|
color: t?.colors?.input_labels_placeholders || "#6b7280"
|
|
32703
32709
|
}, A = {
|
|
32704
32710
|
backgroundColor: s,
|
|
32705
32711
|
color: a,
|
|
32706
32712
|
borderRadius: `${f}px`
|
|
32707
|
-
},
|
|
32713
|
+
}, N = {
|
|
32708
32714
|
color: t?.colors?.links_focused_components || s,
|
|
32709
32715
|
fontSize: `${k}px`
|
|
32710
32716
|
}, T = t?.widget?.logo_position || "center", G = T === "left" ? "text-left" : T === "right" ? "text-right" : "text-center", X = t?.widget?.logo_url || e?.logo_url, se = T !== "none" && X;
|
|
32711
32717
|
return /* @__PURE__ */ u("div", { className: ee("flex flex-col gap-6 w-full max-w-sm", i), children: /* @__PURE__ */ u(bn, { style: E, className: "border", children: [
|
|
32712
32718
|
/* @__PURE__ */ u(vn, { children: [
|
|
32713
32719
|
se && /* @__PURE__ */ u("div", { className: ee("mb-4", G), children: /* @__PURE__ */ u(Xt, { theme: t, branding: e }) }),
|
|
32714
|
-
/* @__PURE__ */ u($n, { style:
|
|
32715
|
-
/* @__PURE__ */ u(kn, { style:
|
|
32720
|
+
/* @__PURE__ */ u($n, { style: I, children: y.t("continue_with_account", "Continue with account") }),
|
|
32721
|
+
/* @__PURE__ */ u(kn, { style: O, children: [
|
|
32716
32722
|
/* @__PURE__ */ u(
|
|
32717
32723
|
_r,
|
|
32718
32724
|
{
|
|
@@ -32749,7 +32755,7 @@ const _r = (t) => {
|
|
|
32749
32755
|
{
|
|
32750
32756
|
href: `/u/login/identifier?state=${encodeURIComponent(n)}`,
|
|
32751
32757
|
className: "text-sm hover:underline focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors",
|
|
32752
|
-
style:
|
|
32758
|
+
style: N,
|
|
32753
32759
|
children: y.t("no_use_another", "No, use another account")
|
|
32754
32760
|
}
|
|
32755
32761
|
) })
|
|
@@ -32915,7 +32921,7 @@ const _r = (t) => {
|
|
|
32915
32921
|
await e.data.loginSessions.update(s.tenant.id, a.id, {
|
|
32916
32922
|
session_id: l.id
|
|
32917
32923
|
});
|
|
32918
|
-
const p = await
|
|
32924
|
+
const p = await Ht(t, {
|
|
32919
32925
|
user: d,
|
|
32920
32926
|
authParams: a.authParams,
|
|
32921
32927
|
client: s,
|
|
@@ -33898,18 +33904,18 @@ const _r = (t) => {
|
|
|
33898
33904
|
borderRadius: `${p}px`,
|
|
33899
33905
|
boxShadow: g ? "0 1px 3px 0 rgba(0, 0, 0, 0.1)" : "none",
|
|
33900
33906
|
color: a
|
|
33901
|
-
},
|
|
33907
|
+
}, I = {
|
|
33902
33908
|
fontSize: `${_}px`,
|
|
33903
33909
|
fontWeight: w ? "700" : "400",
|
|
33904
33910
|
color: t?.colors?.header || a
|
|
33905
|
-
},
|
|
33911
|
+
}, O = {
|
|
33906
33912
|
fontSize: `${k}px`,
|
|
33907
33913
|
color: t?.colors?.input_labels_placeholders || "#6b7280"
|
|
33908
33914
|
}, A = {
|
|
33909
33915
|
backgroundColor: i,
|
|
33910
33916
|
color: s,
|
|
33911
33917
|
borderRadius: `${f}px`
|
|
33912
|
-
},
|
|
33918
|
+
}, N = t?.widget?.logo_position || "center", T = N === "left" ? "text-left" : N === "right" ? "text-right" : "text-center", G = t?.widget?.logo_url || e?.logo_url, X = N !== "none" && G;
|
|
33913
33919
|
return /* @__PURE__ */ u("div", { className: ee("flex flex-col gap-6 w-full max-w-sm", r), children: /* @__PURE__ */ u(bn, { style: E, className: "border", children: [
|
|
33914
33920
|
/* @__PURE__ */ u(vn, { children: [
|
|
33915
33921
|
X && /* @__PURE__ */ u("div", { className: ee("mb-4", T), children: /* @__PURE__ */ u(Xt, { theme: t, branding: e }) }),
|
|
@@ -33938,8 +33944,8 @@ const _r = (t) => {
|
|
|
33938
33944
|
)
|
|
33939
33945
|
}
|
|
33940
33946
|
) }),
|
|
33941
|
-
/* @__PURE__ */ u($n, { style:
|
|
33942
|
-
/* @__PURE__ */ u(kn, { style:
|
|
33947
|
+
/* @__PURE__ */ u($n, { style: I, className: "text-center", children: y.t("email_validated", "Email Verified") }),
|
|
33948
|
+
/* @__PURE__ */ u(kn, { style: O, className: "text-center", children: y.t(
|
|
33943
33949
|
"email_validated_description",
|
|
33944
33950
|
"Your email has been successfully verified. You can now continue to login."
|
|
33945
33951
|
) })
|
|
@@ -34339,17 +34345,17 @@ const _l = ({
|
|
|
34339
34345
|
try {
|
|
34340
34346
|
if (c = await t.env.data.forms.get(a.tenant.id, e), !c) throw new v(404, { message: "Form not found" });
|
|
34341
34347
|
if (l = (c.nodes || []).find(
|
|
34342
|
-
(
|
|
34348
|
+
(I) => I.id === n && I.type === "STEP"
|
|
34343
34349
|
), !l)
|
|
34344
34350
|
throw new v(404, {
|
|
34345
34351
|
message: "Node not found or not a STEP node"
|
|
34346
34352
|
});
|
|
34347
34353
|
d = "components" in l.config ? l.config.components : [];
|
|
34348
34354
|
const p = await t.req.parseBody(), f = [], g = {};
|
|
34349
|
-
for (const
|
|
34350
|
-
if (
|
|
34351
|
-
const
|
|
34352
|
-
A && (!
|
|
34355
|
+
for (const I of d)
|
|
34356
|
+
if (I.type === "LEGAL") {
|
|
34357
|
+
const O = I.id, A = !!I.required, N = p[O];
|
|
34358
|
+
A && (!N || N === "") ? f.push(O) : typeof N == "string" && (g[O] = N);
|
|
34353
34359
|
}
|
|
34354
34360
|
if (f.length > 0)
|
|
34355
34361
|
return t.html(
|
|
@@ -34385,7 +34391,7 @@ const _l = ({
|
|
|
34385
34391
|
);
|
|
34386
34392
|
if (!k)
|
|
34387
34393
|
throw new Error("Session expired");
|
|
34388
|
-
return await
|
|
34394
|
+
return await Ht(t, {
|
|
34389
34395
|
authParams: _.authParams,
|
|
34390
34396
|
client: a,
|
|
34391
34397
|
user: k,
|
|
@@ -34497,7 +34503,7 @@ const _l = ({
|
|
|
34497
34503
|
user: i,
|
|
34498
34504
|
className: s
|
|
34499
34505
|
}) => {
|
|
34500
|
-
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, E = e?.fonts?.title?.bold ?? !0,
|
|
34506
|
+
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, E = e?.fonts?.title?.bold ?? !0, I = e?.fonts?.body_text?.size || 14, O = {
|
|
34501
34507
|
backgroundColor: p,
|
|
34502
34508
|
borderColor: f,
|
|
34503
34509
|
borderRadius: `${g}px`,
|
|
@@ -34507,8 +34513,8 @@ const _l = ({
|
|
|
34507
34513
|
fontSize: `${k}px`,
|
|
34508
34514
|
fontWeight: E ? "700" : "400",
|
|
34509
34515
|
color: e?.colors?.header || l
|
|
34510
|
-
},
|
|
34511
|
-
fontSize: `${
|
|
34516
|
+
}, N = {
|
|
34517
|
+
fontSize: `${I}px`,
|
|
34512
34518
|
color: e?.colors?.input_labels_placeholders || "#6b7280"
|
|
34513
34519
|
}, T = {
|
|
34514
34520
|
backgroundColor: a,
|
|
@@ -34521,18 +34527,18 @@ const _l = ({
|
|
|
34521
34527
|
borderRadius: `${_}px`
|
|
34522
34528
|
}, X = {
|
|
34523
34529
|
color: e?.colors?.links_focused_components || a,
|
|
34524
|
-
fontSize: `${
|
|
34530
|
+
fontSize: `${I}px`
|
|
34525
34531
|
}, se = {
|
|
34526
34532
|
borderColor: d,
|
|
34527
34533
|
borderRadius: `${_}px`,
|
|
34528
|
-
fontSize: `${
|
|
34534
|
+
fontSize: `${I}px`,
|
|
34529
34535
|
color: l
|
|
34530
34536
|
}, H = e?.widget?.logo_position || "center", ce = H === "left" ? "text-left" : H === "right" ? "text-right" : "text-center", de = e?.widget?.logo_url || n?.logo_url, ge = H !== "none" && de;
|
|
34531
|
-
return /* @__PURE__ */ u("div", { className: ee("flex flex-col gap-6 w-full max-w-sm", s), children: /* @__PURE__ */ u(bn, { style:
|
|
34537
|
+
return /* @__PURE__ */ u("div", { className: ee("flex flex-col gap-6 w-full max-w-sm", s), children: /* @__PURE__ */ u(bn, { style: O, className: "border", children: [
|
|
34532
34538
|
/* @__PURE__ */ u(vn, { children: [
|
|
34533
34539
|
ge && /* @__PURE__ */ u("div", { className: ee("mb-4", ce), children: /* @__PURE__ */ u(Xt, { theme: e, branding: n }) }),
|
|
34534
34540
|
/* @__PURE__ */ u($n, { style: A, children: y.t("impersonation", "Impersonation") }),
|
|
34535
|
-
/* @__PURE__ */ u(kn, { style:
|
|
34541
|
+
/* @__PURE__ */ u(kn, { style: N, children: y.t(
|
|
34536
34542
|
"impersonation_description",
|
|
34537
34543
|
"You have permission to impersonate other users."
|
|
34538
34544
|
) })
|
|
@@ -34547,7 +34553,7 @@ const _l = ({
|
|
|
34547
34553
|
"p",
|
|
34548
34554
|
{
|
|
34549
34555
|
className: "font-semibold",
|
|
34550
|
-
style: { fontSize: `${
|
|
34556
|
+
style: { fontSize: `${I}px` },
|
|
34551
34557
|
children: i.email
|
|
34552
34558
|
}
|
|
34553
34559
|
)
|
|
@@ -34587,7 +34593,7 @@ const _l = ({
|
|
|
34587
34593
|
"span",
|
|
34588
34594
|
{
|
|
34589
34595
|
className: "px-2",
|
|
34590
|
-
style: { backgroundColor: p, ...
|
|
34596
|
+
style: { backgroundColor: p, ...N },
|
|
34591
34597
|
children: y.t("or", "Or")
|
|
34592
34598
|
}
|
|
34593
34599
|
) })
|
|
@@ -34633,12 +34639,12 @@ const _l = ({
|
|
|
34633
34639
|
action: `/u/impersonate/switch?state=${encodeURIComponent(r)}`,
|
|
34634
34640
|
children: /* @__PURE__ */ u("div", { className: "space-y-4", children: [
|
|
34635
34641
|
/* @__PURE__ */ u("div", { className: "space-y-2", children: [
|
|
34636
|
-
/* @__PURE__ */ u(jt, { htmlFor: "user_id", style:
|
|
34642
|
+
/* @__PURE__ */ u(jt, { htmlFor: "user_id", style: N, children: y.t(
|
|
34637
34643
|
"user_id_to_impersonate",
|
|
34638
34644
|
"User ID to Impersonate"
|
|
34639
34645
|
) }),
|
|
34640
34646
|
/* @__PURE__ */ u(
|
|
34641
|
-
|
|
34647
|
+
Ft,
|
|
34642
34648
|
{
|
|
34643
34649
|
type: "text",
|
|
34644
34650
|
id: "user_id",
|
|
@@ -34822,7 +34828,7 @@ const _l = ({
|
|
|
34822
34828
|
throw new v(403, {
|
|
34823
34829
|
message: "Access denied: insufficient permissions"
|
|
34824
34830
|
});
|
|
34825
|
-
return
|
|
34831
|
+
return Ht(t, {
|
|
34826
34832
|
client: n,
|
|
34827
34833
|
authParams: r.authParams,
|
|
34828
34834
|
loginSession: r,
|
|
@@ -34919,7 +34925,7 @@ const _l = ({
|
|
|
34919
34925
|
connection: g.connection,
|
|
34920
34926
|
strategy: g.connection,
|
|
34921
34927
|
strategy_type: g.is_social ? "social" : "database"
|
|
34922
|
-
}),
|
|
34928
|
+
}), Ht(t, {
|
|
34923
34929
|
client: s,
|
|
34924
34930
|
authParams: a.authParams,
|
|
34925
34931
|
loginSession: a,
|
|
@@ -38242,7 +38248,7 @@ function qW(t, e) {
|
|
|
38242
38248
|
);
|
|
38243
38249
|
if (!g?.options)
|
|
38244
38250
|
return f;
|
|
38245
|
-
const _ =
|
|
38251
|
+
const _ = zt.parse({
|
|
38246
38252
|
...g || {},
|
|
38247
38253
|
...f
|
|
38248
38254
|
});
|
|
@@ -38288,7 +38294,7 @@ function qW(t, e) {
|
|
|
38288
38294
|
);
|
|
38289
38295
|
if (!c)
|
|
38290
38296
|
return a;
|
|
38291
|
-
const l =
|
|
38297
|
+
const l = zt.parse({
|
|
38292
38298
|
...c,
|
|
38293
38299
|
...a
|
|
38294
38300
|
});
|
|
@@ -38307,7 +38313,7 @@ function qW(t, e) {
|
|
|
38307
38313
|
);
|
|
38308
38314
|
if (!p?.options)
|
|
38309
38315
|
return d;
|
|
38310
|
-
const f =
|
|
38316
|
+
const f = zt.parse({
|
|
38311
38317
|
...p,
|
|
38312
38318
|
...d
|
|
38313
38319
|
});
|
|
@@ -38401,12 +38407,12 @@ export {
|
|
|
38401
38407
|
Zt as FormComponent,
|
|
38402
38408
|
yt as GoBack,
|
|
38403
38409
|
dZ as GoogleLogo,
|
|
38404
|
-
|
|
38410
|
+
Dt as GrantType,
|
|
38405
38411
|
Zb as HttpSamlSigner,
|
|
38406
38412
|
Oe as Icon,
|
|
38407
38413
|
ul as IdentifierForm,
|
|
38408
38414
|
pl as IdentifierPage,
|
|
38409
|
-
|
|
38415
|
+
Ft as InputUI,
|
|
38410
38416
|
yx as InvalidSession,
|
|
38411
38417
|
jt as LabelUI,
|
|
38412
38418
|
Ie as Layout,
|
|
@@ -38445,7 +38451,7 @@ export {
|
|
|
38445
38451
|
H1 as componentSchema,
|
|
38446
38452
|
kl as connectionInsertSchema,
|
|
38447
38453
|
no as connectionOptionsSchema,
|
|
38448
|
-
|
|
38454
|
+
zt as connectionSchema,
|
|
38449
38455
|
Lo as coordinatesSchema,
|
|
38450
38456
|
Ic as createInMemoryCache,
|
|
38451
38457
|
I0 as customDomainInsertSchema,
|