authhero 0.55.0 → 0.56.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 +20 -20
- package/dist/authhero.d.ts +150 -55
- package/dist/authhero.mjs +498 -487
- package/package.json +3 -3
package/dist/authhero.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var ne = (n, e, t) =>
|
|
1
|
+
var uh = Object.defineProperty;
|
|
2
|
+
var dh = (n, e, t) => e in n ? uh(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var ne = (n, e, t) => dh(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { z as a, OpenAPIHono as ge, createRoute as Z } from "@hono/zod-openapi";
|
|
5
5
|
const Q = (n) => typeof n == "string", ni = () => {
|
|
6
6
|
let n, e;
|
|
@@ -8,11 +8,11 @@ const Q = (n) => typeof n == "string", ni = () => {
|
|
|
8
8
|
n = i, e = r;
|
|
9
9
|
});
|
|
10
10
|
return t.resolve = n, t.reject = e, t;
|
|
11
|
-
}, rl = (n) => n == null ? "" : "" + n,
|
|
11
|
+
}, rl = (n) => n == null ? "" : "" + n, ph = (n, e, t) => {
|
|
12
12
|
n.forEach((i) => {
|
|
13
13
|
e[i] && (t[i] = e[i]);
|
|
14
14
|
});
|
|
15
|
-
},
|
|
15
|
+
}, fh = /###/g, sl = (n) => n && n.indexOf("###") > -1 ? n.replace(fh, ".") : n, ol = (n) => !n || Q(n), ci = (n, e, t) => {
|
|
16
16
|
const i = Q(e) ? e.split(".") : e;
|
|
17
17
|
let r = 0;
|
|
18
18
|
for (; r < i.length - 1; ) {
|
|
@@ -37,7 +37,7 @@ const Q = (n) => typeof n == "string", ni = () => {
|
|
|
37
37
|
for (; c.obj === void 0 && o.length; )
|
|
38
38
|
s = `${o[o.length - 1]}.${s}`, o = o.slice(0, o.length - 1), c = ci(n, o, Object), c != null && c.obj && typeof c.obj[`${c.k}.${s}`] < "u" && (c.obj = void 0);
|
|
39
39
|
c.obj[`${c.k}.${s}`] = t;
|
|
40
|
-
},
|
|
40
|
+
}, hh = (n, e, t, i) => {
|
|
41
41
|
const {
|
|
42
42
|
obj: r,
|
|
43
43
|
k: s
|
|
@@ -50,7 +50,7 @@ const Q = (n) => typeof n == "string", ni = () => {
|
|
|
50
50
|
} = ci(n, e);
|
|
51
51
|
if (t && Object.prototype.hasOwnProperty.call(t, i))
|
|
52
52
|
return t[i];
|
|
53
|
-
},
|
|
53
|
+
}, gh = (n, e, t) => {
|
|
54
54
|
const i = lr(n, t);
|
|
55
55
|
return i !== void 0 ? i : lr(e, t);
|
|
56
56
|
}, bd = (n, e, t) => {
|
|
@@ -58,7 +58,7 @@ const Q = (n) => typeof n == "string", ni = () => {
|
|
|
58
58
|
i !== "__proto__" && i !== "constructor" && (i in n ? Q(n[i]) || n[i] instanceof String || Q(e[i]) || e[i] instanceof String ? t && (n[i] = e[i]) : bd(n[i], e[i], t) : n[i] = e[i]);
|
|
59
59
|
return n;
|
|
60
60
|
}, kn = (n) => n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
61
|
-
var
|
|
61
|
+
var _h = {
|
|
62
62
|
"&": "&",
|
|
63
63
|
"<": "<",
|
|
64
64
|
">": ">",
|
|
@@ -66,8 +66,8 @@ var gh = {
|
|
|
66
66
|
"'": "'",
|
|
67
67
|
"/": "/"
|
|
68
68
|
};
|
|
69
|
-
const
|
|
70
|
-
class
|
|
69
|
+
const mh = (n) => Q(n) ? n.replace(/[&<>"'\/]/g, (e) => _h[e]) : n;
|
|
70
|
+
class yh {
|
|
71
71
|
constructor(e) {
|
|
72
72
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
73
73
|
}
|
|
@@ -79,11 +79,11 @@ class mh {
|
|
|
79
79
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, i), this.regExpQueue.push(e), i;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
const
|
|
82
|
+
const vh = [" ", ",", "?", "!", ";"], wh = new yh(20), bh = (n, e, t) => {
|
|
83
83
|
e = e || "", t = t || "";
|
|
84
|
-
const i =
|
|
84
|
+
const i = vh.filter((o) => e.indexOf(o) < 0 && t.indexOf(o) < 0);
|
|
85
85
|
if (i.length === 0) return !0;
|
|
86
|
-
const r =
|
|
86
|
+
const r = wh.getRegExp(`(${i.map((o) => o === "?" ? "\\?" : o).join("|")})`);
|
|
87
87
|
let s = !r.test(n);
|
|
88
88
|
if (!s) {
|
|
89
89
|
const o = n.indexOf(t);
|
|
@@ -111,7 +111,7 @@ const yh = [" ", ",", "?", "!", ";"], vh = new mh(20), wh = (n, e, t) => {
|
|
|
111
111
|
r = o;
|
|
112
112
|
}
|
|
113
113
|
return r;
|
|
114
|
-
}, ur = (n) => n == null ? void 0 : n.replace("_", "-"),
|
|
114
|
+
}, ur = (n) => n == null ? void 0 : n.replace("_", "-"), kh = {
|
|
115
115
|
type: "logger",
|
|
116
116
|
log(n) {
|
|
117
117
|
this.output("log", n);
|
|
@@ -134,7 +134,7 @@ class dr {
|
|
|
134
134
|
}
|
|
135
135
|
init(e) {
|
|
136
136
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
137
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
137
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || kh, this.options = t, this.debug = t.debug;
|
|
138
138
|
}
|
|
139
139
|
log() {
|
|
140
140
|
for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
|
|
@@ -294,7 +294,7 @@ const ll = {};
|
|
|
294
294
|
class pr extends Yr {
|
|
295
295
|
constructor(e) {
|
|
296
296
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
297
|
-
super(),
|
|
297
|
+
super(), ph(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = _t.create("translator");
|
|
298
298
|
}
|
|
299
299
|
changeLanguage(e) {
|
|
300
300
|
e && (this.language = e);
|
|
@@ -313,7 +313,7 @@ class pr extends Yr {
|
|
|
313
313
|
i === void 0 && (i = ":");
|
|
314
314
|
const r = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
315
315
|
let s = t.ns || this.options.defaultNS || [];
|
|
316
|
-
const o = i && e.indexOf(i) > -1, c = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !
|
|
316
|
+
const o = i && e.indexOf(i) > -1, c = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !bh(e, i, r);
|
|
317
317
|
if (o && !c) {
|
|
318
318
|
const l = e.match(this.interpolator.nestingRegexp);
|
|
319
319
|
if (l && l.length > 0)
|
|
@@ -617,7 +617,7 @@ const dl = {
|
|
|
617
617
|
pluralCategories: ["one", "other"]
|
|
618
618
|
})
|
|
619
619
|
};
|
|
620
|
-
class
|
|
620
|
+
class xh {
|
|
621
621
|
constructor(e) {
|
|
622
622
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
623
623
|
this.languageUtils = e, this.options = t, this.logger = _t.create("pluralResolver"), this.pluralRulesCache = {};
|
|
@@ -669,10 +669,10 @@ class kh {
|
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
const fl = function(n, e, t) {
|
|
672
|
-
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s =
|
|
672
|
+
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = gh(n, e, t);
|
|
673
673
|
return !s && r && Q(t) && (s = fo(n, t, i), s === void 0 && (s = fo(e, t, i))), s;
|
|
674
674
|
}, Js = (n) => n.replace(/\$/g, "$$$$");
|
|
675
|
-
class
|
|
675
|
+
class Sh {
|
|
676
676
|
constructor() {
|
|
677
677
|
var t;
|
|
678
678
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -702,7 +702,7 @@ class xh {
|
|
|
702
702
|
maxReplaces: S,
|
|
703
703
|
alwaysFormat: B
|
|
704
704
|
} = e.interpolation;
|
|
705
|
-
this.escape = t !== void 0 ? t :
|
|
705
|
+
this.escape = t !== void 0 ? t : mh, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = r !== void 0 ? r : !1, this.prefix = s ? kn(s) : o || "{{", this.suffix = c ? kn(c) : l || "}}", this.formatSeparator = u || ",", this.unescapePrefix = p ? "" : g || "-", this.unescapeSuffix = this.unescapePrefix ? "" : p || "", this.nestingPrefix = _ ? kn(_) : x || kn("$t("), this.nestingSuffix = h ? kn(h) : m || kn(")"), this.nestingOptionsSeparator = b || ",", this.maxReplaces = S || 1e3, this.alwaysFormat = B !== void 0 ? B : !1, this.resetRegExp();
|
|
706
706
|
}
|
|
707
707
|
reset() {
|
|
708
708
|
this.options && this.init(this.options);
|
|
@@ -798,7 +798,7 @@ class xh {
|
|
|
798
798
|
return e;
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
|
-
const
|
|
801
|
+
const Ah = (n) => {
|
|
802
802
|
let e = n.toLowerCase().trim();
|
|
803
803
|
const t = {};
|
|
804
804
|
if (n.indexOf("(") > -1) {
|
|
@@ -829,7 +829,7 @@ const Sh = (n) => {
|
|
|
829
829
|
return c || (c = n(ur(i), r), e[o] = c), c(t);
|
|
830
830
|
};
|
|
831
831
|
};
|
|
832
|
-
class
|
|
832
|
+
class Ih {
|
|
833
833
|
constructor() {
|
|
834
834
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
835
835
|
this.logger = _t.create("formatter"), this.options = e, this.formats = {
|
|
@@ -890,7 +890,7 @@ class Ah {
|
|
|
890
890
|
const {
|
|
891
891
|
formatName: u,
|
|
892
892
|
formatOptions: p
|
|
893
|
-
} =
|
|
893
|
+
} = Ah(l);
|
|
894
894
|
if (this.formats[u]) {
|
|
895
895
|
let _ = c;
|
|
896
896
|
try {
|
|
@@ -910,10 +910,10 @@ class Ah {
|
|
|
910
910
|
}, e);
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
|
-
const
|
|
913
|
+
const Eh = (n, e) => {
|
|
914
914
|
n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
|
|
915
915
|
};
|
|
916
|
-
class
|
|
916
|
+
class $h extends Yr {
|
|
917
917
|
constructor(e, t, i) {
|
|
918
918
|
var s, o;
|
|
919
919
|
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
@@ -947,7 +947,7 @@ class Eh extends Yr {
|
|
|
947
947
|
}), this.state[e] = t ? -1 : 2, t && i && (this.state[e] = 0);
|
|
948
948
|
const c = {};
|
|
949
949
|
this.queue.forEach((l) => {
|
|
950
|
-
|
|
950
|
+
hh(l.loaded, [s], o), Eh(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
|
|
951
951
|
c[u] || (c[u] = {});
|
|
952
952
|
const p = l.loaded[u];
|
|
953
953
|
p.length && p.forEach((g) => {
|
|
@@ -1110,7 +1110,7 @@ const hl = () => ({
|
|
|
1110
1110
|
var e, t;
|
|
1111
1111
|
return Q(n.ns) && (n.ns = [n.ns]), Q(n.fallbackLng) && (n.fallbackLng = [n.fallbackLng]), Q(n.fallbackNS) && (n.fallbackNS = [n.fallbackNS]), ((t = (e = n.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : t.call(e, "cimode")) < 0 && (n.supportedLngs = n.supportedLngs.concat(["cimode"])), typeof n.initImmediate == "boolean" && (n.initAsync = n.initImmediate), n;
|
|
1112
1112
|
}, Zi = () => {
|
|
1113
|
-
},
|
|
1113
|
+
}, Ch = (n) => {
|
|
1114
1114
|
Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t) => {
|
|
1115
1115
|
typeof n[t] == "function" && (n[t] = n[t].bind(n));
|
|
1116
1116
|
});
|
|
@@ -1120,7 +1120,7 @@ class _i extends Yr {
|
|
|
1120
1120
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
1121
1121
|
if (super(), this.options = gl(e), this.services = {}, this.logger = _t, this.modules = {
|
|
1122
1122
|
external: []
|
|
1123
|
-
},
|
|
1123
|
+
}, Ch(this), t && !this.isInitialized && !e.isClone) {
|
|
1124
1124
|
if (!this.options.initAsync)
|
|
1125
1125
|
return this.init(e, t), this;
|
|
1126
1126
|
setTimeout(() => {
|
|
@@ -1145,16 +1145,16 @@ class _i extends Yr {
|
|
|
1145
1145
|
if (!this.options.isClone) {
|
|
1146
1146
|
this.modules.logger ? _t.init(s(this.modules.logger), this.options) : _t.init(null, this.options);
|
|
1147
1147
|
let p;
|
|
1148
|
-
this.modules.formatter ? p = this.modules.formatter : p =
|
|
1148
|
+
this.modules.formatter ? p = this.modules.formatter : p = Ih;
|
|
1149
1149
|
const g = new ul(this.options);
|
|
1150
1150
|
this.store = new cl(this.options.resources, this.options);
|
|
1151
1151
|
const _ = this.services;
|
|
1152
|
-
_.logger = _t, _.resourceStore = this.store, _.languageUtils = g, _.pluralResolver = new
|
|
1152
|
+
_.logger = _t, _.resourceStore = this.store, _.languageUtils = g, _.pluralResolver = new xh(g, {
|
|
1153
1153
|
prepend: this.options.pluralSeparator,
|
|
1154
1154
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
1155
|
-
}), p && (!this.options.interpolation.format || this.options.interpolation.format === r.interpolation.format) && (_.formatter = s(p), _.formatter.init(_, this.options), this.options.interpolation.format = _.formatter.format.bind(_.formatter)), _.interpolator = new
|
|
1155
|
+
}), p && (!this.options.interpolation.format || this.options.interpolation.format === r.interpolation.format) && (_.formatter = s(p), _.formatter.init(_, this.options), this.options.interpolation.format = _.formatter.format.bind(_.formatter)), _.interpolator = new Sh(this.options), _.utils = {
|
|
1156
1156
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
1157
|
-
}, _.backendConnector = new
|
|
1157
|
+
}, _.backendConnector = new $h(s(this.modules.backend), _.resourceStore, _, this.options), _.backendConnector.on("*", function(x) {
|
|
1158
1158
|
for (var h = arguments.length, m = new Array(h > 1 ? h - 1 : 0), b = 1; b < h; b++)
|
|
1159
1159
|
m[b - 1] = arguments[b];
|
|
1160
1160
|
e.emit(x, ...m);
|
|
@@ -1392,7 +1392,7 @@ const yn = a.object({
|
|
|
1392
1392
|
}), za = a.object({
|
|
1393
1393
|
created_at: a.string(),
|
|
1394
1394
|
updated_at: a.string()
|
|
1395
|
-
}),
|
|
1395
|
+
}), jh = a.object({
|
|
1396
1396
|
email: a.string().optional(),
|
|
1397
1397
|
email_verified: a.boolean().optional(),
|
|
1398
1398
|
name: a.string().optional(),
|
|
@@ -1401,7 +1401,7 @@ const yn = a.object({
|
|
|
1401
1401
|
phone_number: a.string().optional(),
|
|
1402
1402
|
phone_verified: a.boolean().optional(),
|
|
1403
1403
|
family_name: a.string().optional()
|
|
1404
|
-
}).catchall(a.any()),
|
|
1404
|
+
}).catchall(a.any()), Nh = a.object({
|
|
1405
1405
|
connection: a.string(),
|
|
1406
1406
|
user_id: a.string(),
|
|
1407
1407
|
provider: a.string(),
|
|
@@ -1409,7 +1409,7 @@ const yn = a.object({
|
|
|
1409
1409
|
access_token: a.string().optional(),
|
|
1410
1410
|
access_token_secret: a.string().optional(),
|
|
1411
1411
|
refresh_token: a.string().optional(),
|
|
1412
|
-
profileData:
|
|
1412
|
+
profileData: jh.optional()
|
|
1413
1413
|
}), Da = a.object({
|
|
1414
1414
|
email: a.string().optional(),
|
|
1415
1415
|
username: a.string().optional(),
|
|
@@ -1441,7 +1441,7 @@ const yn = a.object({
|
|
|
1441
1441
|
// TODO: this not might be correct if you use the username
|
|
1442
1442
|
email: a.string(),
|
|
1443
1443
|
login_count: a.number(),
|
|
1444
|
-
identities: a.array(
|
|
1444
|
+
identities: a.array(Nh).optional()
|
|
1445
1445
|
}), St = xd, F3 = Da.extend({
|
|
1446
1446
|
email: a.string(),
|
|
1447
1447
|
login_count: a.number(),
|
|
@@ -1449,14 +1449,14 @@ const yn = a.object({
|
|
|
1449
1449
|
last_ip: a.string().optional(),
|
|
1450
1450
|
last_login: a.string().optional(),
|
|
1451
1451
|
user_id: a.string()
|
|
1452
|
-
}).catchall(a.any()),
|
|
1453
|
-
let
|
|
1452
|
+
}).catchall(a.any()), Oh = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
1453
|
+
let Bh = (n = 21) => {
|
|
1454
1454
|
let e = "", t = crypto.getRandomValues(new Uint8Array(n));
|
|
1455
1455
|
for (; n--; )
|
|
1456
|
-
e +=
|
|
1456
|
+
e += Oh[t[n] & 63];
|
|
1457
1457
|
return e;
|
|
1458
1458
|
};
|
|
1459
|
-
const
|
|
1459
|
+
const Th = a.object({
|
|
1460
1460
|
audience: a.string().optional(),
|
|
1461
1461
|
recipient: a.string().optional(),
|
|
1462
1462
|
createUpnClaim: a.boolean().optional(),
|
|
@@ -1492,14 +1492,14 @@ const Bh = a.object({
|
|
|
1492
1492
|
description: "Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients"
|
|
1493
1493
|
}),
|
|
1494
1494
|
addons: a.object({
|
|
1495
|
-
samlp:
|
|
1495
|
+
samlp: Th.optional()
|
|
1496
1496
|
}).default({}).optional().openapi({
|
|
1497
1497
|
description: "Addons associated with the client. The key is the addon's package name and the value is an object with the configuration for the addon."
|
|
1498
1498
|
}),
|
|
1499
1499
|
email_validation: a.enum(["enabled", "disabled", "enforced"]).default("enforced").optional().openapi({
|
|
1500
1500
|
description: "Defines if it possible to sign in with an unverified email and if verification emails will be sent. This is not available in auth0"
|
|
1501
1501
|
}),
|
|
1502
|
-
client_secret: a.string().default(() =>
|
|
1502
|
+
client_secret: a.string().default(() => Bh()).optional(),
|
|
1503
1503
|
disable_sign_ups: a.boolean().optional().default(!1).openapi({
|
|
1504
1504
|
description: "Prevents users from signing up using the hosted login page. This is not available in auth0"
|
|
1505
1505
|
})
|
|
@@ -1575,12 +1575,13 @@ const Sd = a.object({
|
|
|
1575
1575
|
logo: a.string().url().optional(),
|
|
1576
1576
|
primary_color: a.string().optional(),
|
|
1577
1577
|
secondary_color: a.string().optional(),
|
|
1578
|
-
language: a.string().optional()
|
|
1578
|
+
language: a.string().optional(),
|
|
1579
|
+
id: a.string().optional()
|
|
1579
1580
|
}), li = a.object({
|
|
1580
1581
|
created_at: a.string().transform((n) => n === null ? "" : n),
|
|
1581
1582
|
updated_at: a.string().transform((n) => n === null ? "" : n),
|
|
1582
|
-
|
|
1583
|
-
|
|
1583
|
+
...mo.shape,
|
|
1584
|
+
id: a.string()
|
|
1584
1585
|
}), H3 = a.object({
|
|
1585
1586
|
logoUrl: a.string(),
|
|
1586
1587
|
loginBackgroundImage: a.string().nullish(),
|
|
@@ -1598,7 +1599,7 @@ const Sd = a.object({
|
|
|
1598
1599
|
checkoutHideSocial: a.boolean().optional(),
|
|
1599
1600
|
siteUrl: a.string().nullable(),
|
|
1600
1601
|
manageSubscriptionsUrl: a.string().optional()
|
|
1601
|
-
}),
|
|
1602
|
+
}), Ph = a.object({
|
|
1602
1603
|
domain: a.string(),
|
|
1603
1604
|
dkim_private_key: a.string().optional(),
|
|
1604
1605
|
dkim_public_key: a.string().optional(),
|
|
@@ -1607,18 +1608,18 @@ const Sd = a.object({
|
|
|
1607
1608
|
});
|
|
1608
1609
|
a.object({
|
|
1609
1610
|
...In.shape,
|
|
1610
|
-
domains: a.array(
|
|
1611
|
+
domains: a.array(Ph),
|
|
1611
1612
|
tenant: li,
|
|
1612
1613
|
connections: a.array(Jt)
|
|
1613
1614
|
});
|
|
1614
|
-
const
|
|
1615
|
+
const Rh = a.enum([
|
|
1615
1616
|
"password_reset",
|
|
1616
1617
|
"email_verification",
|
|
1617
1618
|
"otp",
|
|
1618
1619
|
"authorization_code",
|
|
1619
1620
|
"oauth2_state",
|
|
1620
1621
|
"ticket"
|
|
1621
|
-
]),
|
|
1622
|
+
]), Lh = a.object({
|
|
1622
1623
|
code_id: a.string().openapi({
|
|
1623
1624
|
description: "The code that will be used in for instance an email verification flow"
|
|
1624
1625
|
}),
|
|
@@ -1628,7 +1629,7 @@ const Ph = a.enum([
|
|
|
1628
1629
|
connection_id: a.string().optional().openapi({
|
|
1629
1630
|
description: "The connection that the code is connected to"
|
|
1630
1631
|
}),
|
|
1631
|
-
code_type:
|
|
1632
|
+
code_type: Rh,
|
|
1632
1633
|
code_verifier: a.string().optional().openapi({
|
|
1633
1634
|
description: "The code verifier used in PKCE in outbound flows"
|
|
1634
1635
|
}),
|
|
@@ -1636,16 +1637,16 @@ const Ph = a.enum([
|
|
|
1636
1637
|
used_at: a.string().optional(),
|
|
1637
1638
|
user_id: a.string().optional()
|
|
1638
1639
|
}), K3 = a.object({
|
|
1639
|
-
...
|
|
1640
|
+
...Lh.shape,
|
|
1640
1641
|
created_at: a.string()
|
|
1641
|
-
}),
|
|
1642
|
+
}), Uh = a.object({
|
|
1642
1643
|
domain: a.string(),
|
|
1643
1644
|
dkim_private_key: a.string().optional(),
|
|
1644
1645
|
dkim_public_key: a.string().optional(),
|
|
1645
1646
|
email_api_key: a.string().optional(),
|
|
1646
1647
|
email_service: a.string().optional()
|
|
1647
1648
|
}), W3 = za.extend({
|
|
1648
|
-
...
|
|
1649
|
+
...Uh.shape,
|
|
1649
1650
|
id: a.string()
|
|
1650
1651
|
}), yo = a.object({
|
|
1651
1652
|
trigger_id: a.enum([
|
|
@@ -1680,7 +1681,7 @@ const Ph = a.enum([
|
|
|
1680
1681
|
x5t: a.string().optional(),
|
|
1681
1682
|
x5c: a.array(a.string()).optional(),
|
|
1682
1683
|
use: a.enum(["sig", "enc"]).optional()
|
|
1683
|
-
}),
|
|
1684
|
+
}), Vh = a.object({
|
|
1684
1685
|
keys: a.array(Ad)
|
|
1685
1686
|
}), ml = a.object({
|
|
1686
1687
|
issuer: a.string(),
|
|
@@ -1703,7 +1704,7 @@ const Ph = a.enum([
|
|
|
1703
1704
|
request_uri_parameter_supported: a.boolean(),
|
|
1704
1705
|
request_parameter_supported: a.boolean(),
|
|
1705
1706
|
token_endpoint_auth_signing_alg_values_supported: a.array(a.string())
|
|
1706
|
-
}),
|
|
1707
|
+
}), Mh = a.object({
|
|
1707
1708
|
auth0Client: a.string().optional(),
|
|
1708
1709
|
authParams: Sd,
|
|
1709
1710
|
expires_at: a.string(),
|
|
@@ -1713,7 +1714,7 @@ const Ph = a.enum([
|
|
|
1713
1714
|
}).openapi({
|
|
1714
1715
|
description: "This represents a login sesion"
|
|
1715
1716
|
}), G3 = a.object({
|
|
1716
|
-
...
|
|
1717
|
+
...Mh.shape,
|
|
1717
1718
|
login_id: a.string().openapi({
|
|
1718
1719
|
description: "This is is used as the state in the universal login"
|
|
1719
1720
|
}),
|
|
@@ -1721,7 +1722,7 @@ const Ph = a.enum([
|
|
|
1721
1722
|
updated_at: a.string()
|
|
1722
1723
|
});
|
|
1723
1724
|
var ye = /* @__PURE__ */ ((n) => (n.FAILED_SILENT_AUTH = "fsa", n.FAILED_SIGNUP = "fs", n.FAILED_LOGIN = "f", n.FAILED_LOGIN_INCORRECT_PASSWORD = "fp", n.FAILED_CHANGE_PASSWORD = "fcp", n.FAILED_BY_CONNECTOR = "fc", n.FAILED_LOGIN_INVALID_EMAIL_USERNAME = "fu", n.FAILED_HOOK = "fh", n.FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa", n.SUCCESS_API_OPERATION = "sapi", n.SUCCESS_CHANGE_PASSWORD = "scp", n.SUCCESS_CHANGE_PASSWORD_REQUEST = "scpr", n.SUCCESS_CHANGE_USERNAME = "scu", n.SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa", n.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft", n.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft", n.SUCCESS_LOGIN = "s", n.SUCCESS_LOGOUT = "slo", n.SUCCESS_SIGNUP = "ss", n.SUCCESS_SILENT_AUTH = "ssa", n.SUCCESS_VERIFICATION_EMAIL = "sv", n.SUCCESS_VERIFICATION_EMAIL_REQUEST = "svr", n.CODE_LINK_SENT = "cls", n.BLOCKED_ACCOUNT_EMAIL = "limit_wc", n.BLOCKED_ACCOUNT_IP = "limit_sul", n.BLOCKED_IP_ADDRESS = "limit_mu", n))(ye || {});
|
|
1724
|
-
const
|
|
1725
|
+
const zh = a.enum([
|
|
1725
1726
|
"cls",
|
|
1726
1727
|
// CODE_LINK_SENT
|
|
1727
1728
|
"fsa",
|
|
@@ -1770,14 +1771,14 @@ const Mh = a.enum([
|
|
|
1770
1771
|
// SUCCESS_VERIFICATION_EMAIL
|
|
1771
1772
|
"svr"
|
|
1772
1773
|
// SUCCESS_VERIFICATION_EMAIL_REQUEST
|
|
1773
|
-
]),
|
|
1774
|
+
]), Dh = a.object({
|
|
1774
1775
|
name: a.string(),
|
|
1775
1776
|
version: a.string(),
|
|
1776
1777
|
env: a.object({
|
|
1777
1778
|
node: a.string().optional()
|
|
1778
1779
|
}).optional()
|
|
1779
1780
|
}), vo = a.object({
|
|
1780
|
-
type:
|
|
1781
|
+
type: zh,
|
|
1781
1782
|
date: a.string(),
|
|
1782
1783
|
description: a.string().optional(),
|
|
1783
1784
|
log_id: a.string().optional(),
|
|
@@ -1798,16 +1799,16 @@ const Mh = a.enum([
|
|
|
1798
1799
|
strategy: a.string().optional(),
|
|
1799
1800
|
strategy_type: a.string().optional(),
|
|
1800
1801
|
hostname: a.string().optional(),
|
|
1801
|
-
auth0_client:
|
|
1802
|
-
}),
|
|
1802
|
+
auth0_client: Dh.optional()
|
|
1803
|
+
}), qh = a.object({
|
|
1803
1804
|
user_id: a.string(),
|
|
1804
1805
|
password: a.string(),
|
|
1805
1806
|
algorithm: a.enum(["bcrypt", "argon2id"]).default("argon2id")
|
|
1806
1807
|
}), J3 = a.object({
|
|
1807
|
-
...
|
|
1808
|
+
...qh.shape,
|
|
1808
1809
|
created_at: a.string(),
|
|
1809
1810
|
updated_at: a.string()
|
|
1810
|
-
}),
|
|
1811
|
+
}), Id = a.object({
|
|
1811
1812
|
initial_user_agent: a.string().describe("First user agent of the device from which this user logged in"),
|
|
1812
1813
|
initial_ip: a.string().describe("First IP address associated with this session"),
|
|
1813
1814
|
initial_asn: a.string().describe("First autonomous system number associated with this session"),
|
|
@@ -1816,15 +1817,13 @@ const Mh = a.enum([
|
|
|
1816
1817
|
last_asn: a.string().describe("Last autonomous system number from which this user logged in")
|
|
1817
1818
|
}), Fh = a.object({
|
|
1818
1819
|
id: a.string(),
|
|
1819
|
-
// TODO: Remove once data migrated
|
|
1820
|
-
session_id: a.string().optional(),
|
|
1821
1820
|
client_id: a.string(),
|
|
1822
1821
|
revoked_at: a.string().optional(),
|
|
1823
1822
|
used_at: a.string(),
|
|
1824
1823
|
user_id: a.string().describe("The user ID associated with the session"),
|
|
1825
1824
|
expires_at: a.string().optional(),
|
|
1826
1825
|
idle_expires_at: a.string().optional(),
|
|
1827
|
-
device:
|
|
1826
|
+
device: Id.describe(
|
|
1828
1827
|
"Metadata related to the device used in the session"
|
|
1829
1828
|
),
|
|
1830
1829
|
clients: a.array(a.string()).describe("List of client details for the session")
|
|
@@ -1968,17 +1967,23 @@ const Kh = a.object({
|
|
|
1968
1967
|
}), Xh = a.object({
|
|
1969
1968
|
// The actual refresh token value (primary key).
|
|
1970
1969
|
token: a.string(),
|
|
1971
|
-
// Link to the session record
|
|
1970
|
+
// Link to the session record
|
|
1972
1971
|
session_id: a.string(),
|
|
1973
|
-
//
|
|
1974
|
-
|
|
1975
|
-
audience: a.string(),
|
|
1972
|
+
// Link to user (foreign key)
|
|
1973
|
+
user_id: a.string(),
|
|
1976
1974
|
// When the refresh token expires.
|
|
1977
|
-
expires_at: a.string(),
|
|
1975
|
+
expires_at: a.string().optional(),
|
|
1976
|
+
idle_expires_at: a.string().optional(),
|
|
1978
1977
|
// When the token was last used.
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1978
|
+
last_exchanged_at: a.string().optional(),
|
|
1979
|
+
device: Id.optional(),
|
|
1980
|
+
resource_servers: a.array(
|
|
1981
|
+
a.object({
|
|
1982
|
+
audience: a.string(),
|
|
1983
|
+
scopes: a.string()
|
|
1984
|
+
})
|
|
1985
|
+
),
|
|
1986
|
+
rotating: a.boolean()
|
|
1982
1987
|
}), Y3 = a.object({
|
|
1983
1988
|
// When the refresh token record was created.
|
|
1984
1989
|
created_at: a.string(),
|
|
@@ -2095,7 +2100,7 @@ function tg(n) {
|
|
|
2095
2100
|
function ng(n) {
|
|
2096
2101
|
throw new Error('Could not dynamically require "' + n + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
2097
2102
|
}
|
|
2098
|
-
var
|
|
2103
|
+
var Ed = { exports: {} };
|
|
2099
2104
|
const ig = {}, rg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2100
2105
|
__proto__: null,
|
|
2101
2106
|
default: ig
|
|
@@ -3635,8 +3640,8 @@ const ig = {}, rg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3635
3640
|
}
|
|
3636
3641
|
return e.encodeBase64 = g, e.decodeBase64 = _, e;
|
|
3637
3642
|
});
|
|
3638
|
-
})(
|
|
3639
|
-
var og =
|
|
3643
|
+
})(Ed);
|
|
3644
|
+
var og = Ed.exports;
|
|
3640
3645
|
const Ha = /* @__PURE__ */ eg(og), ag = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
3641
3646
|
let cg = (n) => crypto.getRandomValues(new Uint8Array(n)), lg = (n, e, t) => {
|
|
3642
3647
|
let i = (2 << Math.log2(n.length - 1)) - 1, r = -~(1.6 * i * e / n.length);
|
|
@@ -3664,7 +3669,7 @@ function vl(n) {
|
|
|
3664
3669
|
const [, e] = n.split("|");
|
|
3665
3670
|
return e;
|
|
3666
3671
|
}
|
|
3667
|
-
async function
|
|
3672
|
+
async function $d(n, e, t) {
|
|
3668
3673
|
return (await n.list(e, {
|
|
3669
3674
|
page: 0,
|
|
3670
3675
|
per_page: 10,
|
|
@@ -3686,7 +3691,7 @@ async function Wa({
|
|
|
3686
3691
|
});
|
|
3687
3692
|
return r.length > 1 && console.error("More than one user found for same email and provider"), r[0] || null;
|
|
3688
3693
|
}
|
|
3689
|
-
async function
|
|
3694
|
+
async function Cd({
|
|
3690
3695
|
userAdapter: n,
|
|
3691
3696
|
tenant_id: e,
|
|
3692
3697
|
email: t
|
|
@@ -4068,7 +4073,7 @@ const wl = yn.extend({
|
|
|
4068
4073
|
if (!c)
|
|
4069
4074
|
throw new N(404);
|
|
4070
4075
|
if (o.email && o.email !== c.email) {
|
|
4071
|
-
const p = await
|
|
4076
|
+
const p = await $d(
|
|
4072
4077
|
n.env.data.users,
|
|
4073
4078
|
e,
|
|
4074
4079
|
o.email
|
|
@@ -4320,7 +4325,7 @@ var bl;
|
|
|
4320
4325
|
} : function(k, I) {
|
|
4321
4326
|
return k[I];
|
|
4322
4327
|
}
|
|
4323
|
-
}, g = Object.getPrototypeOf(Function), _ = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map :
|
|
4328
|
+
}, g = Object.getPrototypeOf(Function), _ = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : sh(), x = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : oh(), h = typeof WeakMap == "function" ? WeakMap : ah(), m = r ? Symbol.for("@reflect-metadata:registry") : void 0, b = nh(), S = ih(b);
|
|
4324
4329
|
function B(k, I, j, L) {
|
|
4325
4330
|
if (z(j)) {
|
|
4326
4331
|
if (!Zc(k))
|
|
@@ -4343,7 +4348,7 @@ var bl;
|
|
|
4343
4348
|
function j(L, X) {
|
|
4344
4349
|
if (!pe(L))
|
|
4345
4350
|
throw new TypeError();
|
|
4346
|
-
if (!z(X) && !
|
|
4351
|
+
if (!z(X) && !eh(X))
|
|
4347
4352
|
throw new TypeError();
|
|
4348
4353
|
Y(k, I, L, X);
|
|
4349
4354
|
}
|
|
@@ -4554,9 +4559,9 @@ var bl;
|
|
|
4554
4559
|
throw new TypeError();
|
|
4555
4560
|
return X;
|
|
4556
4561
|
}
|
|
4557
|
-
return
|
|
4562
|
+
return Xf(k);
|
|
4558
4563
|
}
|
|
4559
|
-
function
|
|
4564
|
+
function Xf(k, I) {
|
|
4560
4565
|
var j, L;
|
|
4561
4566
|
{
|
|
4562
4567
|
var X = k.toString;
|
|
@@ -4577,12 +4582,12 @@ var bl;
|
|
|
4577
4582
|
function Jc(k) {
|
|
4578
4583
|
return !!k;
|
|
4579
4584
|
}
|
|
4580
|
-
function
|
|
4585
|
+
function Qf(k) {
|
|
4581
4586
|
return "" + k;
|
|
4582
4587
|
}
|
|
4583
4588
|
function ft(k) {
|
|
4584
4589
|
var I = ke(k);
|
|
4585
|
-
return Wt(I) ? I :
|
|
4590
|
+
return Wt(I) ? I : Qf(I);
|
|
4586
4591
|
}
|
|
4587
4592
|
function Zc(k) {
|
|
4588
4593
|
return Array.isArray ? Array.isArray(k) : k instanceof Object ? k instanceof Array : Object.prototype.toString.call(k) === "[object Array]";
|
|
@@ -4593,7 +4598,7 @@ var bl;
|
|
|
4593
4598
|
function Yc(k) {
|
|
4594
4599
|
return typeof k == "function";
|
|
4595
4600
|
}
|
|
4596
|
-
function
|
|
4601
|
+
function eh(k) {
|
|
4597
4602
|
switch (oe(k)) {
|
|
4598
4603
|
case 3:
|
|
4599
4604
|
return !0;
|
|
@@ -4644,9 +4649,9 @@ var bl;
|
|
|
4644
4649
|
var X = L.constructor;
|
|
4645
4650
|
return typeof X != "function" || X === k ? I : X;
|
|
4646
4651
|
}
|
|
4647
|
-
function
|
|
4652
|
+
function th() {
|
|
4648
4653
|
var k;
|
|
4649
|
-
!z(m) && typeof t.Reflect < "u" && !(m in t.Reflect) && typeof t.Reflect.defineMetadata == "function" && (k =
|
|
4654
|
+
!z(m) && typeof t.Reflect < "u" && !(m in t.Reflect) && typeof t.Reflect.defineMetadata == "function" && (k = rh(t.Reflect));
|
|
4650
4655
|
var I, j, L, X = new h(), Ee = {
|
|
4651
4656
|
registerProvider: Se,
|
|
4652
4657
|
getProvider: M,
|
|
@@ -4717,16 +4722,16 @@ var bl;
|
|
|
4717
4722
|
return !0;
|
|
4718
4723
|
}
|
|
4719
4724
|
}
|
|
4720
|
-
function
|
|
4725
|
+
function nh() {
|
|
4721
4726
|
var k;
|
|
4722
|
-
return !z(m) && pe(t.Reflect) && Object.isExtensible(t.Reflect) && (k = t.Reflect[m]), z(k) && (k =
|
|
4727
|
+
return !z(m) && pe(t.Reflect) && Object.isExtensible(t.Reflect) && (k = t.Reflect[m]), z(k) && (k = th()), !z(m) && pe(t.Reflect) && Object.isExtensible(t.Reflect) && Object.defineProperty(t.Reflect, m, {
|
|
4723
4728
|
enumerable: !1,
|
|
4724
4729
|
configurable: !1,
|
|
4725
4730
|
writable: !1,
|
|
4726
4731
|
value: k
|
|
4727
4732
|
}), k;
|
|
4728
4733
|
}
|
|
4729
|
-
function
|
|
4734
|
+
function ih(k) {
|
|
4730
4735
|
var I = new h(), j = {
|
|
4731
4736
|
isProviderFor: function(F, G) {
|
|
4732
4737
|
var J = I.get(F);
|
|
@@ -4796,14 +4801,14 @@ var bl;
|
|
|
4796
4801
|
var il = tl(ve);
|
|
4797
4802
|
if (!il)
|
|
4798
4803
|
return J.length = ot, J;
|
|
4799
|
-
var
|
|
4804
|
+
var ch = el(il);
|
|
4800
4805
|
try {
|
|
4801
|
-
J[ot] =
|
|
4802
|
-
} catch (
|
|
4806
|
+
J[ot] = ch;
|
|
4807
|
+
} catch (lh) {
|
|
4803
4808
|
try {
|
|
4804
4809
|
nl(ve);
|
|
4805
4810
|
} finally {
|
|
4806
|
-
throw
|
|
4811
|
+
throw lh;
|
|
4807
4812
|
}
|
|
4808
4813
|
}
|
|
4809
4814
|
ot++;
|
|
@@ -4825,7 +4830,7 @@ var bl;
|
|
|
4825
4830
|
return !0;
|
|
4826
4831
|
}
|
|
4827
4832
|
}
|
|
4828
|
-
function
|
|
4833
|
+
function rh(k) {
|
|
4829
4834
|
var I = k.defineMetadata, j = k.hasOwnMetadata, L = k.getOwnMetadata, X = k.getOwnMetadataKeys, Ee = k.deleteMetadata, Se = new h(), ie = {
|
|
4830
4835
|
isProviderFor: function(M, F) {
|
|
4831
4836
|
var G = Se.get(M);
|
|
@@ -4849,7 +4854,7 @@ var bl;
|
|
|
4849
4854
|
throw new Error("Illegal state.");
|
|
4850
4855
|
}
|
|
4851
4856
|
}
|
|
4852
|
-
function
|
|
4857
|
+
function sh() {
|
|
4853
4858
|
var k = {}, I = [], j = (
|
|
4854
4859
|
/** @class */
|
|
4855
4860
|
function() {
|
|
@@ -4953,7 +4958,7 @@ var bl;
|
|
|
4953
4958
|
return [ie, M];
|
|
4954
4959
|
}
|
|
4955
4960
|
}
|
|
4956
|
-
function
|
|
4961
|
+
function oh() {
|
|
4957
4962
|
var k = (
|
|
4958
4963
|
/** @class */
|
|
4959
4964
|
function() {
|
|
@@ -4989,7 +4994,7 @@ var bl;
|
|
|
4989
4994
|
);
|
|
4990
4995
|
return k;
|
|
4991
4996
|
}
|
|
4992
|
-
function
|
|
4997
|
+
function ah() {
|
|
4993
4998
|
var k = 16, I = p.create(), j = L();
|
|
4994
4999
|
return (
|
|
4995
5000
|
/** @class */
|
|
@@ -5356,7 +5361,7 @@ function bg(...n) {
|
|
|
5356
5361
|
t[i++] = s;
|
|
5357
5362
|
}), t.buffer;
|
|
5358
5363
|
}
|
|
5359
|
-
function
|
|
5364
|
+
function jd(n, e) {
|
|
5360
5365
|
if (!(n && e) || n.byteLength !== e.byteLength)
|
|
5361
5366
|
return !1;
|
|
5362
5367
|
const t = new Uint8Array(n), i = new Uint8Array(e);
|
|
@@ -5409,7 +5414,7 @@ function wo(...n) {
|
|
|
5409
5414
|
r.set(s, t), t += s.length;
|
|
5410
5415
|
return r;
|
|
5411
5416
|
}
|
|
5412
|
-
function
|
|
5417
|
+
function Nd() {
|
|
5413
5418
|
const n = new Uint8Array(this.valueHex);
|
|
5414
5419
|
if (this.valueHex.byteLength >= 2) {
|
|
5415
5420
|
const c = n[0] === 255 && n[1] & 128, l = n[0] === 0 && (n[1] & 128) === 0;
|
|
@@ -5529,7 +5534,7 @@ class Qr {
|
|
|
5529
5534
|
return Ga(this.items);
|
|
5530
5535
|
}
|
|
5531
5536
|
}
|
|
5532
|
-
const ii = [new Uint8Array([1])], xl = "0123456789", Qs = "name", Sl = "valueHexView", Sg = "isHexOnly", Ag = "idBlock", Ig = "tagClass", Eg = "tagNumber", $g = "isConstructed", Cg = "fromBER", jg = "toBER", Ng = "local", ze = "", dt = new ArrayBuffer(0), es = new Uint8Array(0), mi = "EndOfContent",
|
|
5537
|
+
const ii = [new Uint8Array([1])], xl = "0123456789", Qs = "name", Sl = "valueHexView", Sg = "isHexOnly", Ag = "idBlock", Ig = "tagClass", Eg = "tagNumber", $g = "isConstructed", Cg = "fromBER", jg = "toBER", Ng = "local", ze = "", dt = new ArrayBuffer(0), es = new Uint8Array(0), mi = "EndOfContent", Od = "OCTET STRING", Bd = "BIT STRING";
|
|
5533
5538
|
function bt(n) {
|
|
5534
5539
|
var e;
|
|
5535
5540
|
return e = class extends n {
|
|
@@ -5597,7 +5602,7 @@ class Ue extends vn {
|
|
|
5597
5602
|
}
|
|
5598
5603
|
}
|
|
5599
5604
|
Ue.NAME = "valueBlock";
|
|
5600
|
-
class
|
|
5605
|
+
class Td extends bt(vn) {
|
|
5601
5606
|
constructor({ idBlock: e = {} } = {}) {
|
|
5602
5607
|
var t, i, r, s;
|
|
5603
5608
|
super(), e ? (this.isHexOnly = (t = e.isHexOnly) !== null && t !== void 0 ? t : !1, this.valueHexView = e.valueHex ? V.toUint8Array(e.valueHex) : es, this.tagClass = (i = e.tagClass) !== null && i !== void 0 ? i : -1, this.tagNumber = (r = e.tagNumber) !== null && r !== void 0 ? r : -1, this.isConstructed = (s = e.isConstructed) !== null && s !== void 0 ? s : !1) : (this.tagClass = -1, this.tagNumber = -1, this.isConstructed = !1);
|
|
@@ -5720,8 +5725,8 @@ class Bd extends bt(vn) {
|
|
|
5720
5725
|
};
|
|
5721
5726
|
}
|
|
5722
5727
|
}
|
|
5723
|
-
|
|
5724
|
-
class
|
|
5728
|
+
Td.NAME = "identificationBlock";
|
|
5729
|
+
class Pd extends vn {
|
|
5725
5730
|
constructor({ lenBlock: e = {} } = {}) {
|
|
5726
5731
|
var t, i, r;
|
|
5727
5732
|
super(), this.isIndefiniteForm = (t = e.isIndefiniteForm) !== null && t !== void 0 ? t : !1, this.longFormUsed = (i = e.longFormUsed) !== null && i !== void 0 ? i : !1, this.length = (r = e.length) !== null && r !== void 0 ? r : 0;
|
|
@@ -5774,11 +5779,11 @@ class Td extends vn {
|
|
|
5774
5779
|
};
|
|
5775
5780
|
}
|
|
5776
5781
|
}
|
|
5777
|
-
|
|
5782
|
+
Pd.NAME = "lengthBlock";
|
|
5778
5783
|
const q = {};
|
|
5779
5784
|
class Ne extends vn {
|
|
5780
5785
|
constructor({ name: e = ze, optional: t = !1, primitiveSchema: i, ...r } = {}, s) {
|
|
5781
|
-
super(r), this.name = e, this.optional = t, i && (this.primitiveSchema = i), this.idBlock = new
|
|
5786
|
+
super(r), this.name = e, this.optional = t, i && (this.primitiveSchema = i), this.idBlock = new Td(r), this.lenBlock = new Pd(r), this.valueBlock = s ? new s(r) : new Ue(r);
|
|
5782
5787
|
}
|
|
5783
5788
|
fromBER(e, t, i) {
|
|
5784
5789
|
const r = this.valueBlock.fromBER(e, t, this.lenBlock.isIndefiniteForm ? i : this.lenBlock.length);
|
|
@@ -5786,7 +5791,7 @@ class Ne extends vn {
|
|
|
5786
5791
|
}
|
|
5787
5792
|
toBER(e, t) {
|
|
5788
5793
|
const i = t || new Qr();
|
|
5789
|
-
t ||
|
|
5794
|
+
t || Rd(this);
|
|
5790
5795
|
const r = this.idBlock.toBER(e);
|
|
5791
5796
|
if (i.write(r), this.lenBlock.isIndefiniteForm)
|
|
5792
5797
|
i.write(new Uint8Array([128]).buffer), this.valueBlock.toBER(e, i), i.write(new ArrayBuffer(2));
|
|
@@ -5825,10 +5830,10 @@ class Ne extends vn {
|
|
|
5825
5830
|
}
|
|
5826
5831
|
}
|
|
5827
5832
|
Ne.NAME = "BaseBlock";
|
|
5828
|
-
function
|
|
5833
|
+
function Rd(n) {
|
|
5829
5834
|
if (n instanceof q.Constructed)
|
|
5830
5835
|
for (const e of n.valueBlock.value)
|
|
5831
|
-
|
|
5836
|
+
Rd(e) && (n.lenBlock.isIndefiniteForm = !0);
|
|
5832
5837
|
return !!n.lenBlock.isIndefiniteForm;
|
|
5833
5838
|
}
|
|
5834
5839
|
class Ja extends Ne {
|
|
@@ -5850,20 +5855,20 @@ class Ja extends Ne {
|
|
|
5850
5855
|
}
|
|
5851
5856
|
}
|
|
5852
5857
|
Ja.NAME = "BaseStringBlock";
|
|
5853
|
-
class
|
|
5858
|
+
class Ld extends bt(Ue) {
|
|
5854
5859
|
constructor({ isHexOnly: e = !0, ...t } = {}) {
|
|
5855
5860
|
super(t), this.isHexOnly = e;
|
|
5856
5861
|
}
|
|
5857
5862
|
}
|
|
5858
|
-
|
|
5859
|
-
var
|
|
5863
|
+
Ld.NAME = "PrimitiveValueBlock";
|
|
5864
|
+
var Ud;
|
|
5860
5865
|
class Ni extends Ne {
|
|
5861
5866
|
constructor(e = {}) {
|
|
5862
|
-
super(e,
|
|
5867
|
+
super(e, Ld), this.idBlock.isConstructed = !1;
|
|
5863
5868
|
}
|
|
5864
5869
|
}
|
|
5865
|
-
|
|
5866
|
-
q.Primitive =
|
|
5870
|
+
Ud = Ni;
|
|
5871
|
+
q.Primitive = Ud;
|
|
5867
5872
|
Ni.NAME = "PRIMITIVE";
|
|
5868
5873
|
function Og(n, e) {
|
|
5869
5874
|
if (n instanceof e)
|
|
@@ -6078,7 +6083,7 @@ class Ut extends Ue {
|
|
|
6078
6083
|
}
|
|
6079
6084
|
}
|
|
6080
6085
|
Ut.NAME = "ConstructedValueBlock";
|
|
6081
|
-
var
|
|
6086
|
+
var Vd;
|
|
6082
6087
|
class De extends Ne {
|
|
6083
6088
|
constructor(e = {}) {
|
|
6084
6089
|
super(e, Ut), this.idBlock.isConstructed = !0;
|
|
@@ -6100,10 +6105,10 @@ ${e.join(`
|
|
|
6100
6105
|
`)}` : `${t} :`;
|
|
6101
6106
|
}
|
|
6102
6107
|
}
|
|
6103
|
-
|
|
6104
|
-
q.Constructed =
|
|
6108
|
+
Vd = De;
|
|
6109
|
+
q.Constructed = Vd;
|
|
6105
6110
|
De.NAME = "CONSTRUCTED";
|
|
6106
|
-
class
|
|
6111
|
+
class Md extends Ue {
|
|
6107
6112
|
fromBER(e, t, i) {
|
|
6108
6113
|
return t;
|
|
6109
6114
|
}
|
|
@@ -6111,17 +6116,17 @@ class Vd extends Ue {
|
|
|
6111
6116
|
return dt;
|
|
6112
6117
|
}
|
|
6113
6118
|
}
|
|
6114
|
-
|
|
6115
|
-
var
|
|
6119
|
+
Md.override = "EndOfContentValueBlock";
|
|
6120
|
+
var zd;
|
|
6116
6121
|
class Za extends Ne {
|
|
6117
6122
|
constructor(e = {}) {
|
|
6118
|
-
super(e,
|
|
6123
|
+
super(e, Md), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 0;
|
|
6119
6124
|
}
|
|
6120
6125
|
}
|
|
6121
|
-
|
|
6122
|
-
q.EndOfContent =
|
|
6126
|
+
zd = Za;
|
|
6127
|
+
q.EndOfContent = zd;
|
|
6123
6128
|
Za.NAME = mi;
|
|
6124
|
-
var
|
|
6129
|
+
var Dd;
|
|
6125
6130
|
class an extends Ne {
|
|
6126
6131
|
constructor(e = {}) {
|
|
6127
6132
|
super(e, Ue), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 5;
|
|
@@ -6141,10 +6146,10 @@ class an extends Ne {
|
|
|
6141
6146
|
return `${this.constructor.NAME}`;
|
|
6142
6147
|
}
|
|
6143
6148
|
}
|
|
6144
|
-
|
|
6145
|
-
q.Null =
|
|
6149
|
+
Dd = an;
|
|
6150
|
+
q.Null = Dd;
|
|
6146
6151
|
an.NAME = "NULL";
|
|
6147
|
-
class
|
|
6152
|
+
class qd extends bt(Ue) {
|
|
6148
6153
|
constructor({ value: e, ...t } = {}) {
|
|
6149
6154
|
super(t), t.valueHex ? this.valueHexView = V.toUint8Array(t.valueHex) : this.valueHexView = new Uint8Array(1), e && (this.value = e);
|
|
6150
6155
|
}
|
|
@@ -6159,7 +6164,7 @@ class Dd extends bt(Ue) {
|
|
|
6159
6164
|
}
|
|
6160
6165
|
fromBER(e, t, i) {
|
|
6161
6166
|
const r = V.toUint8Array(e);
|
|
6162
|
-
return Bt(this, r, t, i) ? (this.valueHexView = r.subarray(t, t + i), i > 1 && this.warnings.push("Boolean value encoded in more then 1 octet"), this.isHexOnly = !0,
|
|
6167
|
+
return Bt(this, r, t, i) ? (this.valueHexView = r.subarray(t, t + i), i > 1 && this.warnings.push("Boolean value encoded in more then 1 octet"), this.isHexOnly = !0, Nd.call(this), this.blockLength = i, t + i) : -1;
|
|
6163
6168
|
}
|
|
6164
6169
|
toBER() {
|
|
6165
6170
|
return this.valueHexView.slice();
|
|
@@ -6171,11 +6176,11 @@ class Dd extends bt(Ue) {
|
|
|
6171
6176
|
};
|
|
6172
6177
|
}
|
|
6173
6178
|
}
|
|
6174
|
-
|
|
6175
|
-
var
|
|
6179
|
+
qd.NAME = "BooleanValueBlock";
|
|
6180
|
+
var Fd;
|
|
6176
6181
|
class ts extends Ne {
|
|
6177
6182
|
constructor(e = {}) {
|
|
6178
|
-
super(e,
|
|
6183
|
+
super(e, qd), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 1;
|
|
6179
6184
|
}
|
|
6180
6185
|
getValue() {
|
|
6181
6186
|
return this.valueBlock.value;
|
|
@@ -6187,10 +6192,10 @@ class ts extends Ne {
|
|
|
6187
6192
|
return `${this.constructor.NAME} : ${this.getValue}`;
|
|
6188
6193
|
}
|
|
6189
6194
|
}
|
|
6190
|
-
|
|
6191
|
-
q.Boolean =
|
|
6195
|
+
Fd = ts;
|
|
6196
|
+
q.Boolean = Fd;
|
|
6192
6197
|
ts.NAME = "BOOLEAN";
|
|
6193
|
-
class
|
|
6198
|
+
class Hd extends bt(Ut) {
|
|
6194
6199
|
constructor({ isConstructed: e = !1, ...t } = {}) {
|
|
6195
6200
|
super(t), this.isConstructed = e;
|
|
6196
6201
|
}
|
|
@@ -6206,7 +6211,7 @@ class Fd extends bt(Ut) {
|
|
|
6206
6211
|
break;
|
|
6207
6212
|
return this.error = "EndOfContent is unexpected, OCTET STRING may consists of OCTET STRINGs only", -1;
|
|
6208
6213
|
}
|
|
6209
|
-
if (o !==
|
|
6214
|
+
if (o !== Od)
|
|
6210
6215
|
return this.error = "OCTET STRING may consists of OCTET STRINGs only", -1;
|
|
6211
6216
|
}
|
|
6212
6217
|
} else
|
|
@@ -6223,9 +6228,9 @@ class Fd extends bt(Ut) {
|
|
|
6223
6228
|
};
|
|
6224
6229
|
}
|
|
6225
6230
|
}
|
|
6226
|
-
|
|
6227
|
-
var
|
|
6228
|
-
let Qt = class
|
|
6231
|
+
Hd.NAME = "OctetStringValueBlock";
|
|
6232
|
+
var Kd;
|
|
6233
|
+
let Qt = class Wd extends Ne {
|
|
6229
6234
|
constructor({ idBlock: e = {}, lenBlock: t = {}, ...i } = {}) {
|
|
6230
6235
|
var r, s;
|
|
6231
6236
|
(r = i.isConstructed) !== null && r !== void 0 || (i.isConstructed = !!(!((s = i.value) === null || s === void 0) && s.length)), super({
|
|
@@ -6238,7 +6243,7 @@ let Qt = class Kd extends Ne {
|
|
|
6238
6243
|
isIndefiniteForm: !!i.isIndefiniteForm
|
|
6239
6244
|
},
|
|
6240
6245
|
...i
|
|
6241
|
-
},
|
|
6246
|
+
}, Hd), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 4;
|
|
6242
6247
|
}
|
|
6243
6248
|
fromBER(e, t, i) {
|
|
6244
6249
|
if (this.valueBlock.isConstructed = this.idBlock.isConstructed, this.valueBlock.isIndefiniteForm = this.lenBlock.isIndefiniteForm, i === 0)
|
|
@@ -6263,14 +6268,14 @@ let Qt = class Kd extends Ne {
|
|
|
6263
6268
|
return this.valueBlock.valueHexView.slice().buffer;
|
|
6264
6269
|
const e = [];
|
|
6265
6270
|
for (const t of this.valueBlock.value)
|
|
6266
|
-
t instanceof
|
|
6271
|
+
t instanceof Wd && e.push(t.valueBlock.valueHexView);
|
|
6267
6272
|
return V.concat(e);
|
|
6268
6273
|
}
|
|
6269
6274
|
};
|
|
6270
|
-
|
|
6271
|
-
q.OctetString =
|
|
6272
|
-
Qt.NAME =
|
|
6273
|
-
class
|
|
6275
|
+
Kd = Qt;
|
|
6276
|
+
q.OctetString = Kd;
|
|
6277
|
+
Qt.NAME = Od;
|
|
6278
|
+
class Gd extends bt(Ut) {
|
|
6274
6279
|
constructor({ unusedBits: e = 0, isConstructed: t = !1, ...i } = {}) {
|
|
6275
6280
|
super(i), this.unusedBits = e, this.isConstructed = t, this.blockLength = this.valueHexView.byteLength;
|
|
6276
6281
|
}
|
|
@@ -6288,7 +6293,7 @@ class Wd extends bt(Ut) {
|
|
|
6288
6293
|
break;
|
|
6289
6294
|
return this.error = "EndOfContent is unexpected, BIT STRING may consists of BIT STRINGs only", -1;
|
|
6290
6295
|
}
|
|
6291
|
-
if (l !==
|
|
6296
|
+
if (l !== Bd)
|
|
6292
6297
|
return this.error = "BIT STRING may consists of BIT STRINGs only", -1;
|
|
6293
6298
|
const u = c.valueBlock;
|
|
6294
6299
|
if (this.unusedBits > 0 && u.unusedBits > 0)
|
|
@@ -6333,8 +6338,8 @@ class Wd extends bt(Ut) {
|
|
|
6333
6338
|
};
|
|
6334
6339
|
}
|
|
6335
6340
|
}
|
|
6336
|
-
|
|
6337
|
-
var
|
|
6341
|
+
Gd.NAME = "BitStringValueBlock";
|
|
6342
|
+
var Jd;
|
|
6338
6343
|
let en = class extends Ne {
|
|
6339
6344
|
constructor({ idBlock: e = {}, lenBlock: t = {}, ...i } = {}) {
|
|
6340
6345
|
var r, s;
|
|
@@ -6348,7 +6353,7 @@ let en = class extends Ne {
|
|
|
6348
6353
|
isIndefiniteForm: !!i.isIndefiniteForm
|
|
6349
6354
|
},
|
|
6350
6355
|
...i
|
|
6351
|
-
},
|
|
6356
|
+
}, Gd), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 3;
|
|
6352
6357
|
}
|
|
6353
6358
|
fromBER(e, t, i) {
|
|
6354
6359
|
return this.valueBlock.isConstructed = this.idBlock.isConstructed, this.valueBlock.isIndefiniteForm = this.lenBlock.isIndefiniteForm, super.fromBER(e, t, i);
|
|
@@ -6365,10 +6370,10 @@ let en = class extends Ne {
|
|
|
6365
6370
|
}
|
|
6366
6371
|
}
|
|
6367
6372
|
};
|
|
6368
|
-
|
|
6369
|
-
q.BitString =
|
|
6370
|
-
en.NAME =
|
|
6371
|
-
var
|
|
6373
|
+
Jd = en;
|
|
6374
|
+
q.BitString = Jd;
|
|
6375
|
+
en.NAME = Bd;
|
|
6376
|
+
var Zd;
|
|
6372
6377
|
function Tg(n, e) {
|
|
6373
6378
|
const t = new Uint8Array([0]), i = new Uint8Array(n), r = new Uint8Array(e);
|
|
6374
6379
|
let s = i.slice(0);
|
|
@@ -6434,7 +6439,7 @@ class Ya extends bt(Ue) {
|
|
|
6434
6439
|
super(t), this._valueDec = 0, t.valueHex && this.setValueHex(), e !== void 0 && (this.valueDec = e);
|
|
6435
6440
|
}
|
|
6436
6441
|
setValueHex() {
|
|
6437
|
-
this.valueHexView.length >= 4 ? (this.warnings.push("Too big Integer for decoding, hex only"), this.isHexOnly = !0, this._valueDec = 0) : (this.isHexOnly = !1, this.valueHexView.length > 0 && (this._valueDec =
|
|
6442
|
+
this.valueHexView.length >= 4 ? (this.warnings.push("Too big Integer for decoding, hex only"), this.isHexOnly = !0, this._valueDec = 0) : (this.isHexOnly = !1, this.valueHexView.length > 0 && (this._valueDec = Nd.call(this)));
|
|
6438
6443
|
}
|
|
6439
6444
|
set valueDec(e) {
|
|
6440
6445
|
this._valueDec = e, this.isHexOnly = !1, this.valueHexView = new Uint8Array(kg(e));
|
|
@@ -6501,9 +6506,9 @@ class Ya extends bt(Ue) {
|
|
|
6501
6506
|
return c === !1 && (o += xl.charAt(0)), o;
|
|
6502
6507
|
}
|
|
6503
6508
|
}
|
|
6504
|
-
|
|
6509
|
+
Zd = Ya;
|
|
6505
6510
|
Ya.NAME = "IntegerValueBlock";
|
|
6506
|
-
Object.defineProperty(
|
|
6511
|
+
Object.defineProperty(Zd.prototype, "valueHex", {
|
|
6507
6512
|
set: function(n) {
|
|
6508
6513
|
this.valueHexView = new Uint8Array(n), this.setValueHex();
|
|
6509
6514
|
},
|
|
@@ -6511,7 +6516,7 @@ Object.defineProperty(Jd.prototype, "valueHex", {
|
|
|
6511
6516
|
return this.valueHexView.slice().buffer;
|
|
6512
6517
|
}
|
|
6513
6518
|
});
|
|
6514
|
-
var
|
|
6519
|
+
var Yd;
|
|
6515
6520
|
class yt extends Ne {
|
|
6516
6521
|
constructor(e = {}) {
|
|
6517
6522
|
super(e, Ya), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 2;
|
|
@@ -6546,17 +6551,17 @@ class yt extends Ne {
|
|
|
6546
6551
|
return `${this.constructor.NAME} : ${this.valueBlock.toString()}`;
|
|
6547
6552
|
}
|
|
6548
6553
|
}
|
|
6549
|
-
|
|
6550
|
-
q.Integer =
|
|
6554
|
+
Yd = yt;
|
|
6555
|
+
q.Integer = Yd;
|
|
6551
6556
|
yt.NAME = "INTEGER";
|
|
6552
|
-
var
|
|
6557
|
+
var Xd;
|
|
6553
6558
|
class ns extends yt {
|
|
6554
6559
|
constructor(e = {}) {
|
|
6555
6560
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 10;
|
|
6556
6561
|
}
|
|
6557
6562
|
}
|
|
6558
|
-
|
|
6559
|
-
q.Enumerated =
|
|
6563
|
+
Xd = ns;
|
|
6564
|
+
q.Enumerated = Xd;
|
|
6560
6565
|
ns.NAME = "ENUMERATED";
|
|
6561
6566
|
class bo extends bt(Ue) {
|
|
6562
6567
|
constructor({ valueDec: e = -1, isFirstSid: t = !1, ...i } = {}) {
|
|
@@ -6628,7 +6633,7 @@ class bo extends bt(Ue) {
|
|
|
6628
6633
|
}
|
|
6629
6634
|
}
|
|
6630
6635
|
bo.NAME = "sidBlock";
|
|
6631
|
-
class
|
|
6636
|
+
class Qd extends Ue {
|
|
6632
6637
|
constructor({ value: e = ze, ...t } = {}) {
|
|
6633
6638
|
super(t), this.value = [], e && this.fromString(e);
|
|
6634
6639
|
}
|
|
@@ -6708,11 +6713,11 @@ class Xd extends Ue {
|
|
|
6708
6713
|
return e;
|
|
6709
6714
|
}
|
|
6710
6715
|
}
|
|
6711
|
-
|
|
6712
|
-
var
|
|
6716
|
+
Qd.NAME = "ObjectIdentifierValueBlock";
|
|
6717
|
+
var ep;
|
|
6713
6718
|
class is extends Ne {
|
|
6714
6719
|
constructor(e = {}) {
|
|
6715
|
-
super(e,
|
|
6720
|
+
super(e, Qd), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 6;
|
|
6716
6721
|
}
|
|
6717
6722
|
getValue() {
|
|
6718
6723
|
return this.valueBlock.toString();
|
|
@@ -6730,8 +6735,8 @@ class is extends Ne {
|
|
|
6730
6735
|
};
|
|
6731
6736
|
}
|
|
6732
6737
|
}
|
|
6733
|
-
|
|
6734
|
-
q.ObjectIdentifier =
|
|
6738
|
+
ep = is;
|
|
6739
|
+
q.ObjectIdentifier = ep;
|
|
6735
6740
|
is.NAME = "OBJECT IDENTIFIER";
|
|
6736
6741
|
class ko extends bt(vn) {
|
|
6737
6742
|
constructor({ valueDec: e = 0, ...t } = {}) {
|
|
@@ -6785,7 +6790,7 @@ class ko extends bt(vn) {
|
|
|
6785
6790
|
}
|
|
6786
6791
|
}
|
|
6787
6792
|
ko.NAME = "relativeSidBlock";
|
|
6788
|
-
class
|
|
6793
|
+
class tp extends Ue {
|
|
6789
6794
|
constructor({ value: e = ze, ...t } = {}) {
|
|
6790
6795
|
super(t), this.value = [], e && this.fromString(e);
|
|
6791
6796
|
}
|
|
@@ -6841,11 +6846,11 @@ class ep extends Ue {
|
|
|
6841
6846
|
return e;
|
|
6842
6847
|
}
|
|
6843
6848
|
}
|
|
6844
|
-
|
|
6845
|
-
var
|
|
6849
|
+
tp.NAME = "RelativeObjectIdentifierValueBlock";
|
|
6850
|
+
var np;
|
|
6846
6851
|
class Xa extends Ne {
|
|
6847
6852
|
constructor(e = {}) {
|
|
6848
|
-
super(e,
|
|
6853
|
+
super(e, tp), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 13;
|
|
6849
6854
|
}
|
|
6850
6855
|
getValue() {
|
|
6851
6856
|
return this.valueBlock.toString();
|
|
@@ -6863,28 +6868,28 @@ class Xa extends Ne {
|
|
|
6863
6868
|
};
|
|
6864
6869
|
}
|
|
6865
6870
|
}
|
|
6866
|
-
|
|
6867
|
-
q.RelativeObjectIdentifier =
|
|
6871
|
+
np = Xa;
|
|
6872
|
+
q.RelativeObjectIdentifier = np;
|
|
6868
6873
|
Xa.NAME = "RelativeObjectIdentifier";
|
|
6869
|
-
var
|
|
6874
|
+
var ip;
|
|
6870
6875
|
class It extends De {
|
|
6871
6876
|
constructor(e = {}) {
|
|
6872
6877
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 16;
|
|
6873
6878
|
}
|
|
6874
6879
|
}
|
|
6875
|
-
|
|
6876
|
-
q.Sequence =
|
|
6880
|
+
ip = It;
|
|
6881
|
+
q.Sequence = ip;
|
|
6877
6882
|
It.NAME = "SEQUENCE";
|
|
6878
|
-
var
|
|
6883
|
+
var rp;
|
|
6879
6884
|
let Et = class extends De {
|
|
6880
6885
|
constructor(e = {}) {
|
|
6881
6886
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 17;
|
|
6882
6887
|
}
|
|
6883
6888
|
};
|
|
6884
|
-
|
|
6885
|
-
q.Set =
|
|
6889
|
+
rp = Et;
|
|
6890
|
+
q.Set = rp;
|
|
6886
6891
|
Et.NAME = "SET";
|
|
6887
|
-
class
|
|
6892
|
+
class sp extends bt(Ue) {
|
|
6888
6893
|
constructor({ ...e } = {}) {
|
|
6889
6894
|
super(e), this.isHexOnly = !0, this.value = ze;
|
|
6890
6895
|
}
|
|
@@ -6895,13 +6900,13 @@ class rp extends bt(Ue) {
|
|
|
6895
6900
|
};
|
|
6896
6901
|
}
|
|
6897
6902
|
}
|
|
6898
|
-
|
|
6899
|
-
class
|
|
6903
|
+
sp.NAME = "StringValueBlock";
|
|
6904
|
+
class op extends sp {
|
|
6900
6905
|
}
|
|
6901
|
-
|
|
6906
|
+
op.NAME = "SimpleStringValueBlock";
|
|
6902
6907
|
class Ze extends Ja {
|
|
6903
6908
|
constructor({ ...e } = {}) {
|
|
6904
|
-
super(e,
|
|
6909
|
+
super(e, op);
|
|
6905
6910
|
}
|
|
6906
6911
|
fromBuffer(e) {
|
|
6907
6912
|
this.valueBlock.value = String.fromCharCode.apply(null, V.toUint8Array(e));
|
|
@@ -6914,7 +6919,7 @@ class Ze extends Ja {
|
|
|
6914
6919
|
}
|
|
6915
6920
|
}
|
|
6916
6921
|
Ze.NAME = "SIMPLE STRING";
|
|
6917
|
-
class
|
|
6922
|
+
class ap extends Ze {
|
|
6918
6923
|
fromBuffer(e) {
|
|
6919
6924
|
this.valueBlock.valueHexView = V.toUint8Array(e);
|
|
6920
6925
|
try {
|
|
@@ -6927,17 +6932,17 @@ class op extends Ze {
|
|
|
6927
6932
|
this.valueBlock.valueHexView = new Uint8Array(W.FromUtf8String(e)), this.valueBlock.value = e;
|
|
6928
6933
|
}
|
|
6929
6934
|
}
|
|
6930
|
-
|
|
6931
|
-
var
|
|
6932
|
-
class Tt extends
|
|
6935
|
+
ap.NAME = "Utf8StringValueBlock";
|
|
6936
|
+
var cp;
|
|
6937
|
+
class Tt extends ap {
|
|
6933
6938
|
constructor(e = {}) {
|
|
6934
6939
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 12;
|
|
6935
6940
|
}
|
|
6936
6941
|
}
|
|
6937
|
-
|
|
6938
|
-
q.Utf8String =
|
|
6942
|
+
cp = Tt;
|
|
6943
|
+
q.Utf8String = cp;
|
|
6939
6944
|
Tt.NAME = "UTF8String";
|
|
6940
|
-
class
|
|
6945
|
+
class lp extends Ze {
|
|
6941
6946
|
fromBuffer(e) {
|
|
6942
6947
|
this.valueBlock.value = W.ToUtf16String(e), this.valueBlock.valueHexView = V.toUint8Array(e);
|
|
6943
6948
|
}
|
|
@@ -6945,17 +6950,17 @@ class cp extends Ze {
|
|
|
6945
6950
|
this.valueBlock.value = e, this.valueBlock.valueHexView = new Uint8Array(W.FromUtf16String(e));
|
|
6946
6951
|
}
|
|
6947
6952
|
}
|
|
6948
|
-
|
|
6949
|
-
var
|
|
6950
|
-
class rs extends
|
|
6953
|
+
lp.NAME = "BmpStringValueBlock";
|
|
6954
|
+
var up;
|
|
6955
|
+
class rs extends lp {
|
|
6951
6956
|
constructor({ ...e } = {}) {
|
|
6952
6957
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 30;
|
|
6953
6958
|
}
|
|
6954
6959
|
}
|
|
6955
|
-
|
|
6956
|
-
q.BmpString =
|
|
6960
|
+
up = rs;
|
|
6961
|
+
q.BmpString = up;
|
|
6957
6962
|
rs.NAME = "BMPString";
|
|
6958
|
-
class
|
|
6963
|
+
class dp extends Ze {
|
|
6959
6964
|
fromBuffer(e) {
|
|
6960
6965
|
const t = ArrayBuffer.isView(e) ? e.slice().buffer : e.slice(0), i = new Uint8Array(t);
|
|
6961
6966
|
for (let r = 0; r < i.length; r += 4)
|
|
@@ -6975,98 +6980,98 @@ class up extends Ze {
|
|
|
6975
6980
|
this.valueBlock.value = e;
|
|
6976
6981
|
}
|
|
6977
6982
|
}
|
|
6978
|
-
|
|
6979
|
-
var
|
|
6980
|
-
class ss extends
|
|
6983
|
+
dp.NAME = "UniversalStringValueBlock";
|
|
6984
|
+
var pp;
|
|
6985
|
+
class ss extends dp {
|
|
6981
6986
|
constructor({ ...e } = {}) {
|
|
6982
6987
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 28;
|
|
6983
6988
|
}
|
|
6984
6989
|
}
|
|
6985
|
-
|
|
6986
|
-
q.UniversalString =
|
|
6990
|
+
pp = ss;
|
|
6991
|
+
q.UniversalString = pp;
|
|
6987
6992
|
ss.NAME = "UniversalString";
|
|
6988
|
-
var
|
|
6993
|
+
var fp;
|
|
6989
6994
|
class os extends Ze {
|
|
6990
6995
|
constructor(e = {}) {
|
|
6991
6996
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 18;
|
|
6992
6997
|
}
|
|
6993
6998
|
}
|
|
6994
|
-
|
|
6995
|
-
q.NumericString =
|
|
6999
|
+
fp = os;
|
|
7000
|
+
q.NumericString = fp;
|
|
6996
7001
|
os.NAME = "NumericString";
|
|
6997
|
-
var
|
|
7002
|
+
var hp;
|
|
6998
7003
|
class as extends Ze {
|
|
6999
7004
|
constructor(e = {}) {
|
|
7000
7005
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 19;
|
|
7001
7006
|
}
|
|
7002
7007
|
}
|
|
7003
|
-
|
|
7004
|
-
q.PrintableString =
|
|
7008
|
+
hp = as;
|
|
7009
|
+
q.PrintableString = hp;
|
|
7005
7010
|
as.NAME = "PrintableString";
|
|
7006
|
-
var
|
|
7011
|
+
var gp;
|
|
7007
7012
|
class cs extends Ze {
|
|
7008
7013
|
constructor(e = {}) {
|
|
7009
7014
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 20;
|
|
7010
7015
|
}
|
|
7011
7016
|
}
|
|
7012
|
-
|
|
7013
|
-
q.TeletexString =
|
|
7017
|
+
gp = cs;
|
|
7018
|
+
q.TeletexString = gp;
|
|
7014
7019
|
cs.NAME = "TeletexString";
|
|
7015
|
-
var
|
|
7020
|
+
var _p;
|
|
7016
7021
|
class ls extends Ze {
|
|
7017
7022
|
constructor(e = {}) {
|
|
7018
7023
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 21;
|
|
7019
7024
|
}
|
|
7020
7025
|
}
|
|
7021
|
-
|
|
7022
|
-
q.VideotexString =
|
|
7026
|
+
_p = ls;
|
|
7027
|
+
q.VideotexString = _p;
|
|
7023
7028
|
ls.NAME = "VideotexString";
|
|
7024
|
-
var
|
|
7029
|
+
var mp;
|
|
7025
7030
|
class us extends Ze {
|
|
7026
7031
|
constructor(e = {}) {
|
|
7027
7032
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 22;
|
|
7028
7033
|
}
|
|
7029
7034
|
}
|
|
7030
|
-
|
|
7031
|
-
q.IA5String =
|
|
7035
|
+
mp = us;
|
|
7036
|
+
q.IA5String = mp;
|
|
7032
7037
|
us.NAME = "IA5String";
|
|
7033
|
-
var
|
|
7038
|
+
var yp;
|
|
7034
7039
|
class ds extends Ze {
|
|
7035
7040
|
constructor(e = {}) {
|
|
7036
7041
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 25;
|
|
7037
7042
|
}
|
|
7038
7043
|
}
|
|
7039
|
-
|
|
7040
|
-
q.GraphicString =
|
|
7044
|
+
yp = ds;
|
|
7045
|
+
q.GraphicString = yp;
|
|
7041
7046
|
ds.NAME = "GraphicString";
|
|
7042
|
-
var
|
|
7047
|
+
var vp;
|
|
7043
7048
|
class Oi extends Ze {
|
|
7044
7049
|
constructor(e = {}) {
|
|
7045
7050
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 26;
|
|
7046
7051
|
}
|
|
7047
7052
|
}
|
|
7048
|
-
|
|
7049
|
-
q.VisibleString =
|
|
7053
|
+
vp = Oi;
|
|
7054
|
+
q.VisibleString = vp;
|
|
7050
7055
|
Oi.NAME = "VisibleString";
|
|
7051
|
-
var
|
|
7056
|
+
var wp;
|
|
7052
7057
|
class ps extends Ze {
|
|
7053
7058
|
constructor(e = {}) {
|
|
7054
7059
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 27;
|
|
7055
7060
|
}
|
|
7056
7061
|
}
|
|
7057
|
-
|
|
7058
|
-
q.GeneralString =
|
|
7062
|
+
wp = ps;
|
|
7063
|
+
q.GeneralString = wp;
|
|
7059
7064
|
ps.NAME = "GeneralString";
|
|
7060
|
-
var
|
|
7065
|
+
var bp;
|
|
7061
7066
|
class fs extends Ze {
|
|
7062
7067
|
constructor(e = {}) {
|
|
7063
7068
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 29;
|
|
7064
7069
|
}
|
|
7065
7070
|
}
|
|
7066
|
-
|
|
7067
|
-
q.CharacterString =
|
|
7071
|
+
bp = fs;
|
|
7072
|
+
q.CharacterString = bp;
|
|
7068
7073
|
fs.NAME = "CharacterString";
|
|
7069
|
-
var
|
|
7074
|
+
var kp;
|
|
7070
7075
|
class Bi extends Oi {
|
|
7071
7076
|
constructor({ value: e, valueDate: t, ...i } = {}) {
|
|
7072
7077
|
if (super(i), this.year = 0, this.month = 0, this.day = 0, this.hour = 0, this.minute = 0, this.second = 0, e) {
|
|
@@ -7122,10 +7127,10 @@ class Bi extends Oi {
|
|
|
7122
7127
|
};
|
|
7123
7128
|
}
|
|
7124
7129
|
}
|
|
7125
|
-
|
|
7126
|
-
q.UTCTime =
|
|
7130
|
+
kp = Bi;
|
|
7131
|
+
q.UTCTime = kp;
|
|
7127
7132
|
Bi.NAME = "UTCTime";
|
|
7128
|
-
var
|
|
7133
|
+
var xp;
|
|
7129
7134
|
class hs extends Bi {
|
|
7130
7135
|
constructor(e = {}) {
|
|
7131
7136
|
var t;
|
|
@@ -7246,53 +7251,53 @@ class hs extends Bi {
|
|
|
7246
7251
|
};
|
|
7247
7252
|
}
|
|
7248
7253
|
}
|
|
7249
|
-
|
|
7250
|
-
q.GeneralizedTime =
|
|
7254
|
+
xp = hs;
|
|
7255
|
+
q.GeneralizedTime = xp;
|
|
7251
7256
|
hs.NAME = "GeneralizedTime";
|
|
7252
|
-
var
|
|
7257
|
+
var Sp;
|
|
7253
7258
|
class Qa extends Tt {
|
|
7254
7259
|
constructor(e = {}) {
|
|
7255
7260
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 31;
|
|
7256
7261
|
}
|
|
7257
7262
|
}
|
|
7258
|
-
|
|
7259
|
-
q.DATE =
|
|
7263
|
+
Sp = Qa;
|
|
7264
|
+
q.DATE = Sp;
|
|
7260
7265
|
Qa.NAME = "DATE";
|
|
7261
|
-
var
|
|
7266
|
+
var Ap;
|
|
7262
7267
|
class ec extends Tt {
|
|
7263
7268
|
constructor(e = {}) {
|
|
7264
7269
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 32;
|
|
7265
7270
|
}
|
|
7266
7271
|
}
|
|
7267
|
-
|
|
7268
|
-
q.TimeOfDay =
|
|
7272
|
+
Ap = ec;
|
|
7273
|
+
q.TimeOfDay = Ap;
|
|
7269
7274
|
ec.NAME = "TimeOfDay";
|
|
7270
|
-
var
|
|
7275
|
+
var Ip;
|
|
7271
7276
|
class tc extends Tt {
|
|
7272
7277
|
constructor(e = {}) {
|
|
7273
7278
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 33;
|
|
7274
7279
|
}
|
|
7275
7280
|
}
|
|
7276
|
-
|
|
7277
|
-
q.DateTime =
|
|
7281
|
+
Ip = tc;
|
|
7282
|
+
q.DateTime = Ip;
|
|
7278
7283
|
tc.NAME = "DateTime";
|
|
7279
|
-
var
|
|
7284
|
+
var Ep;
|
|
7280
7285
|
class nc extends Tt {
|
|
7281
7286
|
constructor(e = {}) {
|
|
7282
7287
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 34;
|
|
7283
7288
|
}
|
|
7284
7289
|
}
|
|
7285
|
-
|
|
7286
|
-
q.Duration =
|
|
7290
|
+
Ep = nc;
|
|
7291
|
+
q.Duration = Ep;
|
|
7287
7292
|
nc.NAME = "Duration";
|
|
7288
|
-
var
|
|
7293
|
+
var $p;
|
|
7289
7294
|
class ic extends Tt {
|
|
7290
7295
|
constructor(e = {}) {
|
|
7291
7296
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 14;
|
|
7292
7297
|
}
|
|
7293
7298
|
}
|
|
7294
|
-
|
|
7295
|
-
q.TIME =
|
|
7299
|
+
$p = ic;
|
|
7300
|
+
q.TIME = $p;
|
|
7296
7301
|
ic.NAME = "TIME";
|
|
7297
7302
|
class cn {
|
|
7298
7303
|
constructor({ name: e = ze, optional: t = !1 } = {}) {
|
|
@@ -7538,7 +7543,7 @@ function Lg(n, e) {
|
|
|
7538
7543
|
result: t.result
|
|
7539
7544
|
} : Zt(t.result, t.result, e);
|
|
7540
7545
|
}
|
|
7541
|
-
const
|
|
7546
|
+
const Cp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7542
7547
|
__proto__: null,
|
|
7543
7548
|
Any: cn,
|
|
7544
7549
|
BaseBlock: Ne,
|
|
@@ -7696,7 +7701,7 @@ function nt(n) {
|
|
|
7696
7701
|
toASN: (e) => new n({ value: e })
|
|
7697
7702
|
};
|
|
7698
7703
|
}
|
|
7699
|
-
const
|
|
7704
|
+
const jp = nt(Tt), Hg = nt(rs), Kg = nt(ss), Wg = nt(os), Gg = nt(as), Jg = nt(cs), Zg = nt(ls), Yg = nt(us), Xg = nt(ds), Qg = nt(Oi), e_ = nt(ps), t_ = nt(fs), n_ = {
|
|
7700
7705
|
fromASN: (n) => n.toDate(),
|
|
7701
7706
|
toASN: (n) => new Bi({ valueDate: n })
|
|
7702
7707
|
}, i_ = {
|
|
@@ -7747,7 +7752,7 @@ function sc(n) {
|
|
|
7747
7752
|
case y.UniversalString:
|
|
7748
7753
|
return Kg;
|
|
7749
7754
|
case y.Utf8String:
|
|
7750
|
-
return
|
|
7755
|
+
return jp;
|
|
7751
7756
|
case y.VideotexString:
|
|
7752
7757
|
return Zg;
|
|
7753
7758
|
case y.VisibleString:
|
|
@@ -7759,11 +7764,11 @@ function sc(n) {
|
|
|
7759
7764
|
function At(n) {
|
|
7760
7765
|
return typeof n == "function" && n.prototype ? n.prototype.toASN && n.prototype.fromASN ? !0 : At(n.prototype) : !!(n && typeof n == "object" && "toASN" in n && "fromASN" in n);
|
|
7761
7766
|
}
|
|
7762
|
-
function
|
|
7767
|
+
function Np(n) {
|
|
7763
7768
|
var e;
|
|
7764
7769
|
if (n) {
|
|
7765
7770
|
const t = Object.getPrototypeOf(n);
|
|
7766
|
-
return ((e = t == null ? void 0 : t.prototype) === null || e === void 0 ? void 0 : e.constructor) === Array ? !0 :
|
|
7771
|
+
return ((e = t == null ? void 0 : t.prototype) === null || e === void 0 ? void 0 : e.constructor) === Array ? !0 : Np(t);
|
|
7767
7772
|
}
|
|
7768
7773
|
return !1;
|
|
7769
7774
|
}
|
|
@@ -7808,7 +7813,7 @@ class o_ {
|
|
|
7808
7813
|
const o = i.items[s], c = t ? s : "";
|
|
7809
7814
|
let l;
|
|
7810
7815
|
if (typeof o.type == "number") {
|
|
7811
|
-
const p = y[o.type], g =
|
|
7816
|
+
const p = y[o.type], g = Cp[p];
|
|
7812
7817
|
if (!g)
|
|
7813
7818
|
throw new Error(`Cannot get ASN1 class by name '${p}'`);
|
|
7814
7819
|
l = new g({ name: c });
|
|
@@ -7934,7 +7939,7 @@ class a_ {
|
|
|
7934
7939
|
if (!o.verified)
|
|
7935
7940
|
throw new Il(`Data does not match to ${t.name} ASN1 schema. ${o.result.error}`);
|
|
7936
7941
|
const c = new t();
|
|
7937
|
-
if (
|
|
7942
|
+
if (Np(t)) {
|
|
7938
7943
|
if (!("value" in e.valueBlock && Array.isArray(e.valueBlock.value)))
|
|
7939
7944
|
throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");
|
|
7940
7945
|
const l = r.itemType;
|
|
@@ -7975,7 +7980,7 @@ class a_ {
|
|
|
7975
7980
|
if (At(g))
|
|
7976
7981
|
h = new g().toSchema("");
|
|
7977
7982
|
else {
|
|
7978
|
-
const m = y[g], b =
|
|
7983
|
+
const m = y[g], b = Cp[m];
|
|
7979
7984
|
if (!b)
|
|
7980
7985
|
throw new Error(`Cannot get '${m}' class from asn1js module`);
|
|
7981
7986
|
h = new b();
|
|
@@ -8131,7 +8136,7 @@ function d(n, e, t, i) {
|
|
|
8131
8136
|
else for (var c = n.length - 1; c >= 0; c--) (o = n[c]) && (s = (r < 3 ? o(s) : r > 3 ? o(e, t, s) : o(e, t)) || s);
|
|
8132
8137
|
return r > 3 && s && Object.defineProperty(e, t, s), s;
|
|
8133
8138
|
}
|
|
8134
|
-
var
|
|
8139
|
+
var Op = { exports: {} };
|
|
8135
8140
|
(function(n) {
|
|
8136
8141
|
(function(e) {
|
|
8137
8142
|
const t = "(0?\\d+|0x[a-f0-9]+)", i = {
|
|
@@ -8624,8 +8629,8 @@ var Np = { exports: {} };
|
|
|
8624
8629
|
return b;
|
|
8625
8630
|
}, n.exports ? n.exports = x : e.ipaddr = x;
|
|
8626
8631
|
})(fr);
|
|
8627
|
-
})(
|
|
8628
|
-
var El =
|
|
8632
|
+
})(Op);
|
|
8633
|
+
var El = Op.exports;
|
|
8629
8634
|
class $l {
|
|
8630
8635
|
static decodeIP(e) {
|
|
8631
8636
|
if (e.length === 64 && parseInt(e, 16) === 0)
|
|
@@ -8833,7 +8838,7 @@ d([
|
|
|
8833
8838
|
converter: _e
|
|
8834
8839
|
})
|
|
8835
8840
|
], Yt.prototype, "authorityCertSerialNumber", void 0);
|
|
8836
|
-
const
|
|
8841
|
+
const Bp = `${qt}.19`;
|
|
8837
8842
|
class mr {
|
|
8838
8843
|
constructor(e = {}) {
|
|
8839
8844
|
this.cA = !1, Object.assign(this, e);
|
|
@@ -8864,7 +8869,7 @@ Bl = No = d([
|
|
|
8864
8869
|
T({ type: O.Sequence })
|
|
8865
8870
|
], Bl);
|
|
8866
8871
|
var Oo;
|
|
8867
|
-
const
|
|
8872
|
+
const Tp = `${qt}.32`;
|
|
8868
8873
|
let $t = class {
|
|
8869
8874
|
constructor(e = {}) {
|
|
8870
8875
|
Object.assign(this, e);
|
|
@@ -8976,7 +8981,7 @@ var at;
|
|
|
8976
8981
|
(function(n) {
|
|
8977
8982
|
n[n.unused = 1] = "unused", n[n.keyCompromise = 2] = "keyCompromise", n[n.cACompromise = 4] = "cACompromise", n[n.affiliationChanged = 8] = "affiliationChanged", n[n.superseded = 16] = "superseded", n[n.cessationOfOperation = 32] = "cessationOfOperation", n[n.certificateHold = 64] = "certificateHold", n[n.privilegeWithdrawn = 128] = "privilegeWithdrawn", n[n.aACompromise = 256] = "aACompromise";
|
|
8978
8983
|
})(at || (at = {}));
|
|
8979
|
-
class
|
|
8984
|
+
class Pp extends gs {
|
|
8980
8985
|
toJSON() {
|
|
8981
8986
|
const e = [], t = this.toNumber();
|
|
8982
8987
|
return t & at.aACompromise && e.push("aACompromise"), t & at.affiliationChanged && e.push("affiliationChanged"), t & at.cACompromise && e.push("cACompromise"), t & at.certificateHold && e.push("certificateHold"), t & at.cessationOfOperation && e.push("cessationOfOperation"), t & at.keyCompromise && e.push("keyCompromise"), t & at.privilegeWithdrawn && e.push("privilegeWithdrawn"), t & at.superseded && e.push("superseded"), t & at.unused && e.push("unused"), e;
|
|
@@ -9008,7 +9013,7 @@ d([
|
|
|
9008
9013
|
f({ type: ln, context: 0, optional: !0 })
|
|
9009
9014
|
], Kn.prototype, "distributionPoint", void 0);
|
|
9010
9015
|
d([
|
|
9011
|
-
f({ type:
|
|
9016
|
+
f({ type: Pp, context: 1, optional: !0, implicit: !0 })
|
|
9012
9017
|
], Kn.prototype, "reasons", void 0);
|
|
9013
9018
|
d([
|
|
9014
9019
|
f({ type: ee, context: 2, optional: !0, repeated: "sequence", implicit: !0 })
|
|
@@ -9046,7 +9051,7 @@ d([
|
|
|
9046
9051
|
f({ type: y.Boolean, context: 2, defaultValue: Te.ONLY, implicit: !0 })
|
|
9047
9052
|
], Te.prototype, "onlyContainsCACerts", void 0);
|
|
9048
9053
|
d([
|
|
9049
|
-
f({ type:
|
|
9054
|
+
f({ type: Pp, context: 3, optional: !0, implicit: !0 })
|
|
9050
9055
|
], Te.prototype, "onlySomeReasons", void 0);
|
|
9051
9056
|
d([
|
|
9052
9057
|
f({ type: y.Boolean, context: 4, defaultValue: Te.ONLY, implicit: !0 })
|
|
@@ -9076,7 +9081,7 @@ Ro = d([
|
|
|
9076
9081
|
T({ type: O.Choice })
|
|
9077
9082
|
], Ro);
|
|
9078
9083
|
var Lo;
|
|
9079
|
-
const
|
|
9084
|
+
const Rp = `${qt}.37`;
|
|
9080
9085
|
let br = Lo = class extends ue {
|
|
9081
9086
|
constructor(e) {
|
|
9082
9087
|
super(e), Object.setPrototypeOf(this, Lo.prototype);
|
|
@@ -9117,7 +9122,7 @@ let Rl = Mo = class extends Le {
|
|
|
9117
9122
|
Rl = Mo = d([
|
|
9118
9123
|
T({ type: O.Sequence })
|
|
9119
9124
|
], Rl);
|
|
9120
|
-
const
|
|
9125
|
+
const Lp = `${qt}.15`;
|
|
9121
9126
|
var ct;
|
|
9122
9127
|
(function(n) {
|
|
9123
9128
|
n[n.digitalSignature = 1] = "digitalSignature", n[n.nonRepudiation = 2] = "nonRepudiation", n[n.keyEncipherment = 4] = "keyEncipherment", n[n.dataEncipherment = 8] = "dataEncipherment", n[n.keyAgreement = 16] = "keyAgreement", n[n.keyCertSign = 32] = "keyCertSign", n[n.cRLSign = 64] = "cRLSign", n[n.encipherOnly = 128] = "encipherOnly", n[n.decipherOnly = 256] = "decipherOnly";
|
|
@@ -9154,18 +9159,18 @@ let kr = zo = class extends ue {
|
|
|
9154
9159
|
kr = zo = d([
|
|
9155
9160
|
T({ type: O.Sequence, itemType: vs })
|
|
9156
9161
|
], kr);
|
|
9157
|
-
class
|
|
9162
|
+
class Up {
|
|
9158
9163
|
constructor(e = {}) {
|
|
9159
9164
|
Object.assign(this, e);
|
|
9160
9165
|
}
|
|
9161
9166
|
}
|
|
9162
9167
|
d([
|
|
9163
9168
|
f({ type: kr, context: 0, optional: !0, implicit: !0 })
|
|
9164
|
-
],
|
|
9169
|
+
], Up.prototype, "permittedSubtrees", void 0);
|
|
9165
9170
|
d([
|
|
9166
9171
|
f({ type: kr, context: 1, optional: !0, implicit: !0 })
|
|
9167
|
-
],
|
|
9168
|
-
class
|
|
9172
|
+
], Up.prototype, "excludedSubtrees", void 0);
|
|
9173
|
+
class Vp {
|
|
9169
9174
|
constructor(e = {}) {
|
|
9170
9175
|
Object.assign(this, e);
|
|
9171
9176
|
}
|
|
@@ -9178,7 +9183,7 @@ d([
|
|
|
9178
9183
|
optional: !0,
|
|
9179
9184
|
converter: _e
|
|
9180
9185
|
})
|
|
9181
|
-
],
|
|
9186
|
+
], Vp.prototype, "requireExplicitPolicy", void 0);
|
|
9182
9187
|
d([
|
|
9183
9188
|
f({
|
|
9184
9189
|
type: y.Integer,
|
|
@@ -9187,7 +9192,7 @@ d([
|
|
|
9187
9192
|
optional: !0,
|
|
9188
9193
|
converter: _e
|
|
9189
9194
|
})
|
|
9190
|
-
],
|
|
9195
|
+
], Vp.prototype, "inhibitPolicyMapping", void 0);
|
|
9191
9196
|
var Do;
|
|
9192
9197
|
class fc {
|
|
9193
9198
|
constructor(e = {}) {
|
|
@@ -9209,7 +9214,7 @@ Ll = Do = d([
|
|
|
9209
9214
|
T({ type: O.Sequence, itemType: fc })
|
|
9210
9215
|
], Ll);
|
|
9211
9216
|
var qo;
|
|
9212
|
-
const
|
|
9217
|
+
const Mp = `${qt}.17`;
|
|
9213
9218
|
let Fo = qo = class extends Le {
|
|
9214
9219
|
constructor(e) {
|
|
9215
9220
|
super(e), Object.setPrototypeOf(this, qo.prototype);
|
|
@@ -9238,25 +9243,25 @@ let Ul = Ho = class extends ue {
|
|
|
9238
9243
|
Ul = Ho = d([
|
|
9239
9244
|
T({ type: O.Sequence, itemType: Ct })
|
|
9240
9245
|
], Ul);
|
|
9241
|
-
const
|
|
9246
|
+
const zp = `${qt}.14`;
|
|
9242
9247
|
class Vt extends lc {
|
|
9243
9248
|
}
|
|
9244
|
-
class
|
|
9249
|
+
class Dp {
|
|
9245
9250
|
constructor(e = {}) {
|
|
9246
9251
|
Object.assign(this, e);
|
|
9247
9252
|
}
|
|
9248
9253
|
}
|
|
9249
9254
|
d([
|
|
9250
9255
|
f({ type: y.GeneralizedTime, context: 0, implicit: !0, optional: !0 })
|
|
9251
|
-
],
|
|
9256
|
+
], Dp.prototype, "notBefore", void 0);
|
|
9252
9257
|
d([
|
|
9253
9258
|
f({ type: y.GeneralizedTime, context: 1, implicit: !0, optional: !0 })
|
|
9254
|
-
],
|
|
9259
|
+
], Dp.prototype, "notAfter", void 0);
|
|
9255
9260
|
var di;
|
|
9256
9261
|
(function(n) {
|
|
9257
9262
|
n[n.keyUpdateAllowed = 1] = "keyUpdateAllowed", n[n.newExtensions = 2] = "newExtensions", n[n.pKIXCertificate = 4] = "pKIXCertificate";
|
|
9258
9263
|
})(di || (di = {}));
|
|
9259
|
-
class
|
|
9264
|
+
class qp extends gs {
|
|
9260
9265
|
toJSON() {
|
|
9261
9266
|
const e = [], t = this.toNumber();
|
|
9262
9267
|
return t & di.pKIXCertificate && e.push("pKIXCertificate"), t & di.newExtensions && e.push("newExtensions"), t & di.keyUpdateAllowed && e.push("keyUpdateAllowed"), e;
|
|
@@ -9265,17 +9270,17 @@ class Dp extends gs {
|
|
|
9265
9270
|
return `[${this.toJSON().join(", ")}]`;
|
|
9266
9271
|
}
|
|
9267
9272
|
}
|
|
9268
|
-
class
|
|
9273
|
+
class Fp {
|
|
9269
9274
|
constructor(e = {}) {
|
|
9270
|
-
this.entrustVers = "", this.entrustInfoFlags = new
|
|
9275
|
+
this.entrustVers = "", this.entrustInfoFlags = new qp(), Object.assign(this, e);
|
|
9271
9276
|
}
|
|
9272
9277
|
}
|
|
9273
9278
|
d([
|
|
9274
9279
|
f({ type: y.GeneralString })
|
|
9275
|
-
],
|
|
9280
|
+
], Fp.prototype, "entrustVers", void 0);
|
|
9276
9281
|
d([
|
|
9277
|
-
f({ type:
|
|
9278
|
-
],
|
|
9282
|
+
f({ type: qp })
|
|
9283
|
+
], Fp.prototype, "entrustInfoFlags", void 0);
|
|
9279
9284
|
var Ko;
|
|
9280
9285
|
let Vl = Ko = class extends ue {
|
|
9281
9286
|
constructor(e) {
|
|
@@ -9290,7 +9295,7 @@ class D {
|
|
|
9290
9295
|
this.algorithm = "", Object.assign(this, e);
|
|
9291
9296
|
}
|
|
9292
9297
|
isEqual(e) {
|
|
9293
|
-
return e instanceof D && e.algorithm == this.algorithm && (e.parameters && this.parameters &&
|
|
9298
|
+
return e instanceof D && e.algorithm == this.algorithm && (e.parameters && this.parameters && jd(e.parameters, this.parameters) || e.parameters === this.parameters);
|
|
9294
9299
|
}
|
|
9295
9300
|
}
|
|
9296
9301
|
d([
|
|
@@ -9356,9 +9361,9 @@ d([
|
|
|
9356
9361
|
f({ type: je })
|
|
9357
9362
|
], Pi.prototype, "notAfter", void 0);
|
|
9358
9363
|
var Wo;
|
|
9359
|
-
let tt = class
|
|
9364
|
+
let tt = class Hp {
|
|
9360
9365
|
constructor(e = {}) {
|
|
9361
|
-
this.extnID = "", this.critical =
|
|
9366
|
+
this.extnID = "", this.critical = Hp.CRITICAL, this.extnValue = new se(), Object.assign(this, e);
|
|
9362
9367
|
}
|
|
9363
9368
|
};
|
|
9364
9369
|
tt.CRITICAL = !1;
|
|
@@ -9839,17 +9844,17 @@ d([
|
|
|
9839
9844
|
d([
|
|
9840
9845
|
f({ type: y.Utf8String })
|
|
9841
9846
|
], As.prototype, "string", void 0);
|
|
9842
|
-
class
|
|
9847
|
+
class Kp {
|
|
9843
9848
|
constructor(e = {}) {
|
|
9844
9849
|
this.values = [], Object.assign(this, e);
|
|
9845
9850
|
}
|
|
9846
9851
|
}
|
|
9847
9852
|
d([
|
|
9848
9853
|
f({ type: Le, implicit: !0, context: 0, optional: !0 })
|
|
9849
|
-
],
|
|
9854
|
+
], Kp.prototype, "policyAuthority", void 0);
|
|
9850
9855
|
d([
|
|
9851
9856
|
f({ type: As, repeated: "sequence" })
|
|
9852
|
-
],
|
|
9857
|
+
], Kp.prototype, "values", void 0);
|
|
9853
9858
|
var ea;
|
|
9854
9859
|
class Is {
|
|
9855
9860
|
constructor(e = {}) {
|
|
@@ -9899,17 +9904,17 @@ let ql = na = class extends ue {
|
|
|
9899
9904
|
ql = na = d([
|
|
9900
9905
|
T({ type: O.Sequence, itemType: ta })
|
|
9901
9906
|
], ql);
|
|
9902
|
-
class
|
|
9907
|
+
class Wp {
|
|
9903
9908
|
constructor(e = {}) {
|
|
9904
9909
|
Object.assign(this, e);
|
|
9905
9910
|
}
|
|
9906
9911
|
}
|
|
9907
9912
|
d([
|
|
9908
9913
|
f({ type: Le, implicit: !0, context: 0, optional: !0 })
|
|
9909
|
-
],
|
|
9914
|
+
], Wp.prototype, "roleAuthority", void 0);
|
|
9910
9915
|
d([
|
|
9911
9916
|
f({ type: ee, implicit: !0, context: 1 })
|
|
9912
|
-
],
|
|
9917
|
+
], Wp.prototype, "roleName", void 0);
|
|
9913
9918
|
class yc {
|
|
9914
9919
|
constructor(e = {}) {
|
|
9915
9920
|
this.service = new ee(), this.ident = new ee(), Object.assign(this, e);
|
|
@@ -10358,12 +10363,12 @@ d([
|
|
|
10358
10363
|
d([
|
|
10359
10364
|
f({ type: Ar })
|
|
10360
10365
|
], Yn.prototype, "signerInfos", void 0);
|
|
10361
|
-
const ki = "1.2.840.10045.2.1", Sc = "1.2.840.10045.4.1",
|
|
10366
|
+
const ki = "1.2.840.10045.2.1", Sc = "1.2.840.10045.4.1", Gp = "1.2.840.10045.4.3.1", Ac = "1.2.840.10045.4.3.2", Ic = "1.2.840.10045.4.3.3", Ec = "1.2.840.10045.4.3.4", Fl = "1.2.840.10045.3.1.7", Hl = "1.3.132.0.34", Kl = "1.3.132.0.35";
|
|
10362
10367
|
function qi(n) {
|
|
10363
10368
|
return new D({ algorithm: n });
|
|
10364
10369
|
}
|
|
10365
10370
|
const m_ = qi(Sc);
|
|
10366
|
-
qi(
|
|
10371
|
+
qi(Gp);
|
|
10367
10372
|
const y_ = qi(Ac), v_ = qi(Ic), w_ = qi(Ec);
|
|
10368
10373
|
let xi = class {
|
|
10369
10374
|
constructor(e = {}) {
|
|
@@ -10473,23 +10478,23 @@ d([
|
|
|
10473
10478
|
d([
|
|
10474
10479
|
f({ type: y.Integer, converter: _e })
|
|
10475
10480
|
], Tr.prototype, "s", void 0);
|
|
10476
|
-
const He = "1.2.840.113549.1.1", fn = `${He}.1`, k_ = `${He}.7`, x_ = `${He}.9`, pi = `${He}.10`, S_ = `${He}.2`, A_ = `${He}.4`, Pr = `${He}.5`, I_ = `${He}.14`, da = `${He}.11`, Rr = `${He}.12`, Lr = `${He}.13`,
|
|
10481
|
+
const He = "1.2.840.113549.1.1", fn = `${He}.1`, k_ = `${He}.7`, x_ = `${He}.9`, pi = `${He}.10`, S_ = `${He}.2`, A_ = `${He}.4`, Pr = `${He}.5`, I_ = `${He}.14`, da = `${He}.11`, Rr = `${He}.12`, Lr = `${He}.13`, Jp = `${He}.15`, Zp = `${He}.16`, Ur = "1.3.14.3.2.26", Yp = "2.16.840.1.101.3.4.2.4", Vr = "2.16.840.1.101.3.4.2.1", Mr = "2.16.840.1.101.3.4.2.2", zr = "2.16.840.1.101.3.4.2.3", E_ = "2.16.840.1.101.3.4.2.5", $_ = "2.16.840.1.101.3.4.2.6", C_ = "1.2.840.113549.2.2", j_ = "1.2.840.113549.2.5", Os = `${He}.8`;
|
|
10477
10482
|
function Ae(n) {
|
|
10478
10483
|
return new D({ algorithm: n, parameters: null });
|
|
10479
10484
|
}
|
|
10480
10485
|
Ae(C_);
|
|
10481
10486
|
Ae(j_);
|
|
10482
10487
|
const hn = Ae(Ur);
|
|
10483
|
-
Ae(
|
|
10488
|
+
Ae(Yp);
|
|
10484
10489
|
Ae(Vr);
|
|
10485
10490
|
Ae(Mr);
|
|
10486
10491
|
Ae(zr);
|
|
10487
10492
|
Ae(E_);
|
|
10488
10493
|
Ae($_);
|
|
10489
|
-
const
|
|
10494
|
+
const Xp = new D({
|
|
10490
10495
|
algorithm: Os,
|
|
10491
10496
|
parameters: U.serialize(hn)
|
|
10492
|
-
}),
|
|
10497
|
+
}), Qp = new D({
|
|
10493
10498
|
algorithm: x_,
|
|
10494
10499
|
parameters: U.serialize(_r.toASN(new Uint8Array([218, 57, 163, 238, 94, 107, 75, 13, 50, 85, 191, 239, 149, 96, 24, 144, 175, 216, 7, 9]).buffer))
|
|
10495
10500
|
});
|
|
@@ -10497,28 +10502,28 @@ Ae(fn);
|
|
|
10497
10502
|
Ae(S_);
|
|
10498
10503
|
Ae(A_);
|
|
10499
10504
|
Ae(Pr);
|
|
10500
|
-
Ae(Gp);
|
|
10501
10505
|
Ae(Jp);
|
|
10506
|
+
Ae(Zp);
|
|
10502
10507
|
Ae(Rr);
|
|
10503
10508
|
Ae(Lr);
|
|
10504
|
-
Ae(Gp);
|
|
10505
10509
|
Ae(Jp);
|
|
10510
|
+
Ae(Zp);
|
|
10506
10511
|
class Bs {
|
|
10507
10512
|
constructor(e = {}) {
|
|
10508
10513
|
this.hashAlgorithm = new D(hn), this.maskGenAlgorithm = new D({
|
|
10509
10514
|
algorithm: Os,
|
|
10510
10515
|
parameters: U.serialize(hn)
|
|
10511
|
-
}), this.pSourceAlgorithm = new D(
|
|
10516
|
+
}), this.pSourceAlgorithm = new D(Qp), Object.assign(this, e);
|
|
10512
10517
|
}
|
|
10513
10518
|
}
|
|
10514
10519
|
d([
|
|
10515
10520
|
f({ type: D, context: 0, defaultValue: hn })
|
|
10516
10521
|
], Bs.prototype, "hashAlgorithm", void 0);
|
|
10517
10522
|
d([
|
|
10518
|
-
f({ type: D, context: 1, defaultValue:
|
|
10523
|
+
f({ type: D, context: 1, defaultValue: Xp })
|
|
10519
10524
|
], Bs.prototype, "maskGenAlgorithm", void 0);
|
|
10520
10525
|
d([
|
|
10521
|
-
f({ type: D, context: 2, defaultValue:
|
|
10526
|
+
f({ type: D, context: 2, defaultValue: Qp })
|
|
10522
10527
|
], Bs.prototype, "pSourceAlgorithm", void 0);
|
|
10523
10528
|
new D({
|
|
10524
10529
|
algorithm: k_,
|
|
@@ -10536,7 +10541,7 @@ d([
|
|
|
10536
10541
|
f({ type: D, context: 0, defaultValue: hn })
|
|
10537
10542
|
], gn.prototype, "hashAlgorithm", void 0);
|
|
10538
10543
|
d([
|
|
10539
|
-
f({ type: D, context: 1, defaultValue:
|
|
10544
|
+
f({ type: D, context: 1, defaultValue: Xp })
|
|
10540
10545
|
], gn.prototype, "maskGenAlgorithm", void 0);
|
|
10541
10546
|
d([
|
|
10542
10547
|
f({ type: y.Integer, context: 2, defaultValue: 20 })
|
|
@@ -10787,13 +10792,13 @@ function T_(n) {
|
|
|
10787
10792
|
e[+i] = t[i];
|
|
10788
10793
|
}), e;
|
|
10789
10794
|
}
|
|
10790
|
-
function
|
|
10795
|
+
function ef(n) {
|
|
10791
10796
|
return !!n.useClass;
|
|
10792
10797
|
}
|
|
10793
10798
|
function _a(n) {
|
|
10794
10799
|
return !!n.useFactory;
|
|
10795
10800
|
}
|
|
10796
|
-
var
|
|
10801
|
+
var tf = function() {
|
|
10797
10802
|
function n(e) {
|
|
10798
10803
|
this.wrap = e, this.reflectMethods = [
|
|
10799
10804
|
"get",
|
|
@@ -10837,7 +10842,7 @@ function Wl(n) {
|
|
|
10837
10842
|
return typeof n == "object" && "token" in n && "transform" in n;
|
|
10838
10843
|
}
|
|
10839
10844
|
function R_(n) {
|
|
10840
|
-
return typeof n == "function" || n instanceof
|
|
10845
|
+
return typeof n == "function" || n instanceof tf;
|
|
10841
10846
|
}
|
|
10842
10847
|
function ir(n) {
|
|
10843
10848
|
return !!n.useToken;
|
|
@@ -10846,7 +10851,7 @@ function rr(n) {
|
|
|
10846
10851
|
return n.useValue != null;
|
|
10847
10852
|
}
|
|
10848
10853
|
function L_(n) {
|
|
10849
|
-
return
|
|
10854
|
+
return ef(n) || rr(n) || ir(n) || _a(n);
|
|
10850
10855
|
}
|
|
10851
10856
|
var jc = function() {
|
|
10852
10857
|
function n() {
|
|
@@ -10923,7 +10928,7 @@ var q_ = function(n) {
|
|
|
10923
10928
|
this.preResolution = new q_(), this.postResolution = new F_();
|
|
10924
10929
|
}
|
|
10925
10930
|
return n;
|
|
10926
|
-
}(),
|
|
10931
|
+
}(), nf = /* @__PURE__ */ new Map(), K_ = function() {
|
|
10927
10932
|
function n(e) {
|
|
10928
10933
|
this.parent = e, this._registry = new U_(), this.interceptors = new H_(), this.disposed = !1, this.disposables = /* @__PURE__ */ new Set();
|
|
10929
10934
|
}
|
|
@@ -11026,7 +11031,7 @@ var q_ = function(n) {
|
|
|
11026
11031
|
if (this.ensureNotDisposed(), e.options.lifecycle === Me.ResolutionScoped && t.scopedResolutions.has(e))
|
|
11027
11032
|
return t.scopedResolutions.get(e);
|
|
11028
11033
|
var i = e.options.lifecycle === Me.Singleton, r = e.options.lifecycle === Me.ContainerScoped, s = i || r, o;
|
|
11029
|
-
return rr(e.provider) ? o = e.provider.useValue : ir(e.provider) ? o = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, t)) : this.resolve(e.provider.useToken, t) :
|
|
11034
|
+
return rr(e.provider) ? o = e.provider.useValue : ir(e.provider) ? o = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, t)) : this.resolve(e.provider.useToken, t) : ef(e.provider) ? o = s ? e.instance || (e.instance = this.construct(e.provider.useClass, t)) : this.construct(e.provider.useClass, t) : _a(e.provider) ? o = e.provider.useFactory(this) : o = this.construct(e.provider, t), e.options.lifecycle === Me.ResolutionScoped && t.scopedResolutions.set(e, o), o;
|
|
11030
11035
|
}, n.prototype.resolveAll = function(e, t) {
|
|
11031
11036
|
var i = this;
|
|
11032
11037
|
t === void 0 && (t = new Gl()), this.ensureNotDisposed();
|
|
@@ -11124,12 +11129,12 @@ var q_ = function(n) {
|
|
|
11124
11129
|
return this.isRegistered(e) ? this._registry.getAll(e) : this.parent ? this.parent.getAllRegistrations(e) : null;
|
|
11125
11130
|
}, n.prototype.construct = function(e, t) {
|
|
11126
11131
|
var i = this;
|
|
11127
|
-
if (e instanceof
|
|
11132
|
+
if (e instanceof tf)
|
|
11128
11133
|
return e.createProxy(function(s) {
|
|
11129
11134
|
return i.resolve(s, t);
|
|
11130
11135
|
});
|
|
11131
11136
|
var r = function() {
|
|
11132
|
-
var s =
|
|
11137
|
+
var s = nf.get(e);
|
|
11133
11138
|
if (!s || s.length === 0) {
|
|
11134
11139
|
if (e.length === 0)
|
|
11135
11140
|
return new e();
|
|
@@ -11156,7 +11161,7 @@ var q_ = function(n) {
|
|
|
11156
11161
|
}(), Be = new K_();
|
|
11157
11162
|
function Rs() {
|
|
11158
11163
|
return function(n) {
|
|
11159
|
-
|
|
11164
|
+
nf.set(n, T_(n));
|
|
11160
11165
|
};
|
|
11161
11166
|
}
|
|
11162
11167
|
if (typeof Reflect > "u" || !Reflect.getMetadata)
|
|
@@ -11190,46 +11195,46 @@ let Zl = ya = class extends ue {
|
|
|
11190
11195
|
Zl = ya = d([
|
|
11191
11196
|
T({ type: O.Sequence, itemType: Jn })
|
|
11192
11197
|
], Zl);
|
|
11193
|
-
class
|
|
11198
|
+
class rf {
|
|
11194
11199
|
constructor(e = {}) {
|
|
11195
11200
|
this.certId = "", this.certValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
11196
11201
|
}
|
|
11197
11202
|
}
|
|
11198
11203
|
d([
|
|
11199
11204
|
f({ type: y.ObjectIdentifier })
|
|
11200
|
-
],
|
|
11205
|
+
], rf.prototype, "certId", void 0);
|
|
11201
11206
|
d([
|
|
11202
11207
|
f({ type: y.Any, context: 0 })
|
|
11203
|
-
],
|
|
11204
|
-
class
|
|
11208
|
+
], rf.prototype, "certValue", void 0);
|
|
11209
|
+
class sf {
|
|
11205
11210
|
constructor(e = {}) {
|
|
11206
11211
|
this.crlId = "", this.crltValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
11207
11212
|
}
|
|
11208
11213
|
}
|
|
11209
11214
|
d([
|
|
11210
11215
|
f({ type: y.ObjectIdentifier })
|
|
11211
|
-
],
|
|
11216
|
+
], sf.prototype, "crlId", void 0);
|
|
11212
11217
|
d([
|
|
11213
11218
|
f({ type: y.Any, context: 0 })
|
|
11214
|
-
],
|
|
11215
|
-
class
|
|
11219
|
+
], sf.prototype, "crltValue", void 0);
|
|
11220
|
+
class of extends se {
|
|
11216
11221
|
}
|
|
11217
11222
|
let Us = class {
|
|
11218
11223
|
constructor(e = {}) {
|
|
11219
|
-
this.encryptionAlgorithm = new D(), this.encryptedData = new
|
|
11224
|
+
this.encryptionAlgorithm = new D(), this.encryptedData = new of(), Object.assign(this, e);
|
|
11220
11225
|
}
|
|
11221
11226
|
};
|
|
11222
11227
|
d([
|
|
11223
11228
|
f({ type: D })
|
|
11224
11229
|
], Us.prototype, "encryptionAlgorithm", void 0);
|
|
11225
11230
|
d([
|
|
11226
|
-
f({ type:
|
|
11231
|
+
f({ type: of })
|
|
11227
11232
|
], Us.prototype, "encryptedData", void 0);
|
|
11228
11233
|
var va, wa;
|
|
11229
11234
|
(function(n) {
|
|
11230
11235
|
n[n.v1 = 0] = "v1";
|
|
11231
11236
|
})(wa || (wa = {}));
|
|
11232
|
-
class
|
|
11237
|
+
class af extends se {
|
|
11233
11238
|
}
|
|
11234
11239
|
let ba = va = class extends ue {
|
|
11235
11240
|
constructor(e) {
|
|
@@ -11241,7 +11246,7 @@ ba = va = d([
|
|
|
11241
11246
|
], ba);
|
|
11242
11247
|
class Fi {
|
|
11243
11248
|
constructor(e = {}) {
|
|
11244
|
-
this.version = wa.v1, this.privateKeyAlgorithm = new D(), this.privateKey = new
|
|
11249
|
+
this.version = wa.v1, this.privateKeyAlgorithm = new D(), this.privateKey = new af(), Object.assign(this, e);
|
|
11245
11250
|
}
|
|
11246
11251
|
}
|
|
11247
11252
|
d([
|
|
@@ -11251,7 +11256,7 @@ d([
|
|
|
11251
11256
|
f({ type: D })
|
|
11252
11257
|
], Fi.prototype, "privateKeyAlgorithm", void 0);
|
|
11253
11258
|
d([
|
|
11254
|
-
f({ type:
|
|
11259
|
+
f({ type: af })
|
|
11255
11260
|
], Fi.prototype, "privateKey", void 0);
|
|
11256
11261
|
d([
|
|
11257
11262
|
f({ type: ba, implicit: !0, context: 0, optional: !0 })
|
|
@@ -11266,17 +11271,17 @@ let Xl = class extends Us {
|
|
|
11266
11271
|
Xl = d([
|
|
11267
11272
|
T({ type: O.Sequence })
|
|
11268
11273
|
], Xl);
|
|
11269
|
-
class
|
|
11274
|
+
class cf {
|
|
11270
11275
|
constructor(e = {}) {
|
|
11271
11276
|
this.secretTypeId = "", this.secretValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
11272
11277
|
}
|
|
11273
11278
|
}
|
|
11274
11279
|
d([
|
|
11275
11280
|
f({ type: y.ObjectIdentifier })
|
|
11276
|
-
],
|
|
11281
|
+
], cf.prototype, "secretTypeId", void 0);
|
|
11277
11282
|
d([
|
|
11278
11283
|
f({ type: y.Any, context: 0 })
|
|
11279
|
-
],
|
|
11284
|
+
], cf.prototype, "secretValue", void 0);
|
|
11280
11285
|
class Hi {
|
|
11281
11286
|
constructor(e = {}) {
|
|
11282
11287
|
this.mac = new Ts(), this.macSalt = new se(), this.iterations = 1, Object.assign(this, e);
|
|
@@ -11329,7 +11334,7 @@ Ql = ka = d([
|
|
|
11329
11334
|
T({ type: O.Sequence, itemType: Ms })
|
|
11330
11335
|
], Ql);
|
|
11331
11336
|
var xa, Sa, Aa;
|
|
11332
|
-
const
|
|
11337
|
+
const lf = "1.2.840.113549.1.9", uf = `${lf}.7`, Nc = `${lf}.14`;
|
|
11333
11338
|
let qr = class extends Oe {
|
|
11334
11339
|
constructor(e = {}) {
|
|
11335
11340
|
super(e);
|
|
@@ -11770,16 +11775,16 @@ Ai = sr = d([
|
|
|
11770
11775
|
Rs()
|
|
11771
11776
|
], Ai);
|
|
11772
11777
|
Be.registerSingleton(Ki, Ai);
|
|
11773
|
-
const
|
|
11778
|
+
const df = Symbol("name"), pf = Symbol("value");
|
|
11774
11779
|
class ce {
|
|
11775
11780
|
constructor(e, t = {}, i = "") {
|
|
11776
|
-
this[
|
|
11781
|
+
this[df] = e, this[pf] = i;
|
|
11777
11782
|
for (const r in t)
|
|
11778
11783
|
this[r] = t[r];
|
|
11779
11784
|
}
|
|
11780
11785
|
}
|
|
11781
|
-
ce.NAME =
|
|
11782
|
-
ce.VALUE =
|
|
11786
|
+
ce.NAME = df;
|
|
11787
|
+
ce.VALUE = pf;
|
|
11783
11788
|
class G_ {
|
|
11784
11789
|
static toTextObject(e) {
|
|
11785
11790
|
const t = new ce("Algorithm Identifier", {}, Ft.toString(e.algorithm));
|
|
@@ -11804,7 +11809,7 @@ class Ft {
|
|
|
11804
11809
|
}
|
|
11805
11810
|
Ft.items = {
|
|
11806
11811
|
[Ur]: "sha1",
|
|
11807
|
-
[
|
|
11812
|
+
[Yp]: "sha224",
|
|
11808
11813
|
[Vr]: "sha256",
|
|
11809
11814
|
[Mr]: "sha384",
|
|
11810
11815
|
[zr]: "sha512",
|
|
@@ -11816,7 +11821,7 @@ Ft.items = {
|
|
|
11816
11821
|
[Lr]: "sha512WithRSAEncryption",
|
|
11817
11822
|
[ki]: "ecPublicKey",
|
|
11818
11823
|
[Sc]: "ecdsaWithSHA1",
|
|
11819
|
-
[
|
|
11824
|
+
[Gp]: "ecdsaWithSHA224",
|
|
11820
11825
|
[Ac]: "ecdsaWithSHA256",
|
|
11821
11826
|
[Ic]: "ecdsaWithSHA384",
|
|
11822
11827
|
[Ec]: "ecdsaWithSHA512",
|
|
@@ -11894,7 +11899,7 @@ class Ht {
|
|
|
11894
11899
|
}
|
|
11895
11900
|
}
|
|
11896
11901
|
equal(e) {
|
|
11897
|
-
return e instanceof Ht ?
|
|
11902
|
+
return e instanceof Ht ? jd(e.rawData, this.rawData) : !1;
|
|
11898
11903
|
}
|
|
11899
11904
|
toString(e = "text") {
|
|
11900
11905
|
switch (e) {
|
|
@@ -11945,7 +11950,7 @@ class it extends Ht {
|
|
|
11945
11950
|
return e[ce.NAME] === it.NAME && (e[ce.NAME] = Ft.toString(this.type)), e;
|
|
11946
11951
|
}
|
|
11947
11952
|
}
|
|
11948
|
-
var
|
|
11953
|
+
var ff;
|
|
11949
11954
|
class Rt {
|
|
11950
11955
|
static isCryptoKeyPair(e) {
|
|
11951
11956
|
return e && e.privateKey && e.publicKey;
|
|
@@ -11954,7 +11959,7 @@ class Rt {
|
|
|
11954
11959
|
return e && e.usages && e.type && e.algorithm && e.extractable !== void 0;
|
|
11955
11960
|
}
|
|
11956
11961
|
constructor() {
|
|
11957
|
-
this.items = /* @__PURE__ */ new Map(), this[
|
|
11962
|
+
this.items = /* @__PURE__ */ new Map(), this[ff] = "CryptoProvider", typeof self < "u" && typeof crypto < "u" ? this.set(Rt.DEFAULT, crypto) : typeof global < "u" && global.crypto && global.crypto.subtle && this.set(Rt.DEFAULT, global.crypto);
|
|
11958
11963
|
}
|
|
11959
11964
|
clear() {
|
|
11960
11965
|
this.items.clear();
|
|
@@ -11999,13 +12004,13 @@ class Rt {
|
|
|
11999
12004
|
return this;
|
|
12000
12005
|
}
|
|
12001
12006
|
}
|
|
12002
|
-
|
|
12007
|
+
ff = Symbol.toStringTag;
|
|
12003
12008
|
Rt.DEFAULT = "default";
|
|
12004
12009
|
const Ce = new Rt(), J_ = /^[0-2](?:\.[1-9][0-9]*)+$/;
|
|
12005
12010
|
function Z_(n) {
|
|
12006
12011
|
return new RegExp(J_).test(n);
|
|
12007
12012
|
}
|
|
12008
|
-
class
|
|
12013
|
+
class hf {
|
|
12009
12014
|
constructor(e = {}) {
|
|
12010
12015
|
this.items = {};
|
|
12011
12016
|
for (const t in e)
|
|
@@ -12021,7 +12026,7 @@ class ff {
|
|
|
12021
12026
|
this.items[e] = t, this.items[t] = e;
|
|
12022
12027
|
}
|
|
12023
12028
|
}
|
|
12024
|
-
const Fe = new
|
|
12029
|
+
const Fe = new hf();
|
|
12025
12030
|
Fe.register("CN", "2.5.4.3");
|
|
12026
12031
|
Fe.register("L", "2.5.4.7");
|
|
12027
12032
|
Fe.register("ST", "2.5.4.8");
|
|
@@ -12051,7 +12056,7 @@ class Qe {
|
|
|
12051
12056
|
return /^[A-Za-z0-9 '()+,-./:=?]*$/g.test(e);
|
|
12052
12057
|
}
|
|
12053
12058
|
constructor(e, t = {}) {
|
|
12054
|
-
this.extraNames = new
|
|
12059
|
+
this.extraNames = new hf(), this.asn = new be();
|
|
12055
12060
|
for (const i in t)
|
|
12056
12061
|
if (Object.prototype.hasOwnProperty.call(t, i)) {
|
|
12057
12062
|
const r = t[i];
|
|
@@ -12165,7 +12170,7 @@ class Qe {
|
|
|
12165
12170
|
return e.length >= 1 && !(!((t = e[0]) === null || t === void 0) && t.subtle) ? (r = e[0] || r, i = e[1] || Ce.get()) : i = e[0] || Ce.get(), await i.subtle.digest(r, this.toArrayBuffer());
|
|
12166
12171
|
}
|
|
12167
12172
|
}
|
|
12168
|
-
const
|
|
12173
|
+
const gf = "Cannot initialize GeneralName from ASN.1 data.", zu = `${gf} Unsupported string format in use.`, Q_ = `${gf} Value doesn't match to GUID regular expression.`, Du = /^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i, qu = "1.3.6.1.4.1.311.25.1", Fu = "1.3.6.1.4.1.311.20.2.3", to = "dns", no = "dn", io = "email", ro = "ip", so = "url", oo = "guid", ao = "upn", Xi = "id";
|
|
12169
12174
|
class Lt extends Ht {
|
|
12170
12175
|
constructor(...e) {
|
|
12171
12176
|
let t;
|
|
@@ -12205,7 +12210,7 @@ class Lt extends Ht {
|
|
|
12205
12210
|
t = new ee({
|
|
12206
12211
|
otherName: new yi({
|
|
12207
12212
|
typeId: Fu,
|
|
12208
|
-
value: U.serialize(
|
|
12213
|
+
value: U.serialize(jp.toASN(e[1]))
|
|
12209
12214
|
})
|
|
12210
12215
|
});
|
|
12211
12216
|
break;
|
|
@@ -12557,7 +12562,7 @@ class Oc extends it {
|
|
|
12557
12562
|
cA: e[0],
|
|
12558
12563
|
pathLenConstraint: e[1]
|
|
12559
12564
|
});
|
|
12560
|
-
super(
|
|
12565
|
+
super(Bp, e[2], U.serialize(t)), this.ca = e[0], this.pathLength = e[1];
|
|
12561
12566
|
}
|
|
12562
12567
|
}
|
|
12563
12568
|
toTextObject() {
|
|
@@ -12578,7 +12583,7 @@ class Bc extends it {
|
|
|
12578
12583
|
this.usages = t.map((i) => i);
|
|
12579
12584
|
} else {
|
|
12580
12585
|
const t = new br(e[0]);
|
|
12581
|
-
super(
|
|
12586
|
+
super(Rp, e[1], U.serialize(t)), this.usages = e[0];
|
|
12582
12587
|
}
|
|
12583
12588
|
}
|
|
12584
12589
|
toTextObject() {
|
|
@@ -12599,7 +12604,7 @@ class Tc extends it {
|
|
|
12599
12604
|
this.usages = t.toNumber();
|
|
12600
12605
|
} else {
|
|
12601
12606
|
const t = new eo(e[0]);
|
|
12602
|
-
super(
|
|
12607
|
+
super(Lp, e[1], U.serialize(t)), this.usages = e[0];
|
|
12603
12608
|
}
|
|
12604
12609
|
}
|
|
12605
12610
|
toTextObject() {
|
|
@@ -12620,7 +12625,7 @@ class Wi extends it {
|
|
|
12620
12625
|
this.keyId = W.ToHex(t);
|
|
12621
12626
|
} else {
|
|
12622
12627
|
const t = typeof e[0] == "string" ? W.FromHex(e[0]) : e[0], i = new Vt(t);
|
|
12623
|
-
super(
|
|
12628
|
+
super(zp, e[1], U.serialize(i)), this.keyId = W.ToHex(t);
|
|
12624
12629
|
}
|
|
12625
12630
|
}
|
|
12626
12631
|
toTextObject() {
|
|
@@ -12629,9 +12634,9 @@ class Wi extends it {
|
|
|
12629
12634
|
}
|
|
12630
12635
|
}
|
|
12631
12636
|
Wi.NAME = "Subject Key Identifier";
|
|
12632
|
-
class
|
|
12637
|
+
class _f extends it {
|
|
12633
12638
|
constructor(...e) {
|
|
12634
|
-
V.isBufferSource(e[0]) ? super(e[0]) : super(
|
|
12639
|
+
V.isBufferSource(e[0]) ? super(e[0]) : super(Mp, e[1], new Ii(e[0] || []).rawData);
|
|
12635
12640
|
}
|
|
12636
12641
|
onInit(e) {
|
|
12637
12642
|
super.onInit(e);
|
|
@@ -12645,7 +12650,7 @@ class gf extends it {
|
|
|
12645
12650
|
return e;
|
|
12646
12651
|
}
|
|
12647
12652
|
}
|
|
12648
|
-
|
|
12653
|
+
_f.NAME = "Subject Alternative Name";
|
|
12649
12654
|
class rt {
|
|
12650
12655
|
static register(e, t) {
|
|
12651
12656
|
this.items.set(e, t);
|
|
@@ -12656,7 +12661,7 @@ class rt {
|
|
|
12656
12661
|
}
|
|
12657
12662
|
}
|
|
12658
12663
|
rt.items = /* @__PURE__ */ new Map();
|
|
12659
|
-
class
|
|
12664
|
+
class mf extends it {
|
|
12660
12665
|
constructor(...e) {
|
|
12661
12666
|
var t;
|
|
12662
12667
|
if (V.isBufferSource(e[0])) {
|
|
@@ -12667,7 +12672,7 @@ class _f extends it {
|
|
|
12667
12672
|
const i = e[0], r = (t = e[1]) !== null && t !== void 0 ? t : !1, s = new vr(i.map((o) => new ys({
|
|
12668
12673
|
policyIdentifier: o
|
|
12669
12674
|
})));
|
|
12670
|
-
super(
|
|
12675
|
+
super(Tp, r, U.serialize(s)), this.policies = i;
|
|
12671
12676
|
}
|
|
12672
12677
|
}
|
|
12673
12678
|
toTextObject() {
|
|
@@ -12675,9 +12680,9 @@ class _f extends it {
|
|
|
12675
12680
|
return e.Policy = this.policies.map((t) => new ce("", {}, Ft.toString(t))), e;
|
|
12676
12681
|
}
|
|
12677
12682
|
}
|
|
12678
|
-
|
|
12679
|
-
rt.register(
|
|
12680
|
-
class
|
|
12683
|
+
mf.NAME = "Certificate Policies";
|
|
12684
|
+
rt.register(Tp, mf);
|
|
12685
|
+
class yf extends it {
|
|
12681
12686
|
constructor(...e) {
|
|
12682
12687
|
var t;
|
|
12683
12688
|
if (V.isBufferSource(e[0]))
|
|
@@ -12709,8 +12714,8 @@ class mf extends it {
|
|
|
12709
12714
|
}), e;
|
|
12710
12715
|
}
|
|
12711
12716
|
}
|
|
12712
|
-
|
|
12713
|
-
class
|
|
12717
|
+
yf.NAME = "CRL Distribution Points";
|
|
12718
|
+
class vf extends it {
|
|
12714
12719
|
constructor(...e) {
|
|
12715
12720
|
var t, i, r, s;
|
|
12716
12721
|
if (V.isBufferSource(e[0]))
|
|
@@ -12747,7 +12752,7 @@ class yf extends it {
|
|
|
12747
12752
|
return this.ocsp.length && Qi(e, "OCSP", this.ocsp), this.caIssuers.length && Qi(e, "CA Issuers", this.caIssuers), this.timeStamping.length && Qi(e, "Time Stamping", this.timeStamping), this.caRepository.length && Qi(e, "CA Repository", this.caRepository), e;
|
|
12748
12753
|
}
|
|
12749
12754
|
}
|
|
12750
|
-
|
|
12755
|
+
vf.NAME = "Authority Info Access";
|
|
12751
12756
|
function Qi(n, e, t) {
|
|
12752
12757
|
if (t.length === 1)
|
|
12753
12758
|
n[e] = t[0].toTextObject();
|
|
@@ -12793,7 +12798,7 @@ class Qn extends Ht {
|
|
|
12793
12798
|
}
|
|
12794
12799
|
}
|
|
12795
12800
|
Qn.NAME = "Attribute";
|
|
12796
|
-
class
|
|
12801
|
+
class wf extends Qn {
|
|
12797
12802
|
constructor(...e) {
|
|
12798
12803
|
var t;
|
|
12799
12804
|
if (V.isBufferSource(e[0]))
|
|
@@ -12802,7 +12807,7 @@ class vf extends Qn {
|
|
|
12802
12807
|
const i = new Hr({
|
|
12803
12808
|
printableString: e[0]
|
|
12804
12809
|
});
|
|
12805
|
-
super(
|
|
12810
|
+
super(uf, [U.serialize(i)]);
|
|
12806
12811
|
}
|
|
12807
12812
|
(t = this.password) !== null && t !== void 0 || (this.password = "");
|
|
12808
12813
|
}
|
|
@@ -12817,7 +12822,7 @@ class vf extends Qn {
|
|
|
12817
12822
|
return e[ce.VALUE] = this.password, e;
|
|
12818
12823
|
}
|
|
12819
12824
|
}
|
|
12820
|
-
|
|
12825
|
+
wf.NAME = "Challenge Password";
|
|
12821
12826
|
class Pc extends Qn {
|
|
12822
12827
|
constructor(...e) {
|
|
12823
12828
|
var t;
|
|
@@ -13288,15 +13293,15 @@ var Ju;
|
|
|
13288
13293
|
(function(n) {
|
|
13289
13294
|
n[n.unspecified = 0] = "unspecified", n[n.keyCompromise = 1] = "keyCompromise", n[n.cACompromise = 2] = "cACompromise", n[n.affiliationChanged = 3] = "affiliationChanged", n[n.superseded = 4] = "superseded", n[n.cessationOfOperation = 5] = "cessationOfOperation", n[n.certificateHold = 6] = "certificateHold", n[n.removeFromCRL = 8] = "removeFromCRL", n[n.privilegeWithdrawn = 9] = "privilegeWithdrawn", n[n.aACompromise = 10] = "aACompromise";
|
|
13290
13295
|
})(Ju || (Ju = {}));
|
|
13291
|
-
rt.register(
|
|
13292
|
-
rt.register(
|
|
13293
|
-
rt.register(
|
|
13294
|
-
rt.register(
|
|
13296
|
+
rt.register(Bp, Oc);
|
|
13297
|
+
rt.register(Rp, Bc);
|
|
13298
|
+
rt.register(Lp, Tc);
|
|
13299
|
+
rt.register(zp, Wi);
|
|
13295
13300
|
rt.register(Co, $i);
|
|
13296
|
-
rt.register(
|
|
13297
|
-
rt.register(To,
|
|
13298
|
-
rt.register($o,
|
|
13299
|
-
zs.register(
|
|
13301
|
+
rt.register(Mp, _f);
|
|
13302
|
+
rt.register(To, yf);
|
|
13303
|
+
rt.register($o, vf);
|
|
13304
|
+
zs.register(uf, wf);
|
|
13300
13305
|
zs.register(Nc, Pc);
|
|
13301
13306
|
Be.registerSingleton(Gi, c0);
|
|
13302
13307
|
Be.registerSingleton(Gi, et);
|
|
@@ -13316,7 +13321,7 @@ function La(n) {
|
|
|
13316
13321
|
}
|
|
13317
13322
|
return t;
|
|
13318
13323
|
}
|
|
13319
|
-
class
|
|
13324
|
+
class bf {
|
|
13320
13325
|
constructor(e, t) {
|
|
13321
13326
|
ne(this, "alphabet");
|
|
13322
13327
|
ne(this, "padding");
|
|
@@ -13387,9 +13392,9 @@ class wf {
|
|
|
13387
13392
|
return Uint8Array.from(s);
|
|
13388
13393
|
}
|
|
13389
13394
|
}
|
|
13390
|
-
new
|
|
13391
|
-
new
|
|
13392
|
-
class
|
|
13395
|
+
new bf("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567");
|
|
13396
|
+
new bf("0123456789ABCDEFGHIJKLMNOPQRSTUV");
|
|
13397
|
+
class kf {
|
|
13393
13398
|
constructor(e, t) {
|
|
13394
13399
|
ne(this, "alphabet");
|
|
13395
13400
|
ne(this, "padding");
|
|
@@ -13441,7 +13446,7 @@ class bf {
|
|
|
13441
13446
|
return Uint8Array.from(s);
|
|
13442
13447
|
}
|
|
13443
13448
|
}
|
|
13444
|
-
const d0 = new
|
|
13449
|
+
const d0 = new kf("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"), tn = new kf("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_");
|
|
13445
13450
|
class p0 {
|
|
13446
13451
|
constructor(e) {
|
|
13447
13452
|
ne(this, "hash");
|
|
@@ -13474,7 +13479,7 @@ class p0 {
|
|
|
13474
13479
|
};
|
|
13475
13480
|
}
|
|
13476
13481
|
}
|
|
13477
|
-
async function
|
|
13482
|
+
async function xf(n) {
|
|
13478
13483
|
return await crypto.subtle.digest("SHA-256", n);
|
|
13479
13484
|
}
|
|
13480
13485
|
async function Ua(n) {
|
|
@@ -13523,7 +13528,7 @@ function f0(n, e) {
|
|
|
13523
13528
|
}
|
|
13524
13529
|
async function h0(n) {
|
|
13525
13530
|
const e = await n.publicKey.export(), t = await crypto.subtle.exportKey("jwk", e), i = JSON.stringify(t, Object.keys(t).sort()), s = new TextEncoder().encode(i);
|
|
13526
|
-
return La(await
|
|
13531
|
+
return La(await xf(s));
|
|
13527
13532
|
}
|
|
13528
13533
|
const g0 = 1e3 * 60 * 60 * 24, _0 = new ge().openapi(
|
|
13529
13534
|
Z({
|
|
@@ -13687,7 +13692,7 @@ const g0 = 1e3 * 60 * 60 * 24, _0 = new ge().openapi(
|
|
|
13687
13692
|
}
|
|
13688
13693
|
}),
|
|
13689
13694
|
async (n) => {
|
|
13690
|
-
const { "tenant-id": e } = n.req.valid("header"), { email: t } = n.req.valid("query"), r = (await
|
|
13695
|
+
const { "tenant-id": e } = n.req.valid("header"), { email: t } = n.req.valid("query"), r = (await $d(n.env.data.users, e, t)).filter((s) => !s.linked_to);
|
|
13691
13696
|
return n.json(r);
|
|
13692
13697
|
}
|
|
13693
13698
|
), y0 = yn.extend({
|
|
@@ -14597,7 +14602,7 @@ const w0 = yn.extend({
|
|
|
14597
14602
|
}
|
|
14598
14603
|
);
|
|
14599
14604
|
let Yu = !1;
|
|
14600
|
-
function
|
|
14605
|
+
function Sf(n) {
|
|
14601
14606
|
n.use(async (e, t) => (Yu || (n.openAPIRegistry.registerComponent("securitySchemes", "Bearer", {
|
|
14602
14607
|
type: "oauth2",
|
|
14603
14608
|
scheme: "bearer",
|
|
@@ -14662,7 +14667,7 @@ function N0(n) {
|
|
|
14662
14667
|
raw: { header: e, payload: t, signature: i }
|
|
14663
14668
|
};
|
|
14664
14669
|
}
|
|
14665
|
-
function
|
|
14670
|
+
function Af(n) {
|
|
14666
14671
|
return async (e, t) => {
|
|
14667
14672
|
var r, s, o;
|
|
14668
14673
|
const i = n.openAPIRegistry.definitions.find(
|
|
@@ -14889,9 +14894,9 @@ const O0 = new ge().openapi(
|
|
|
14889
14894
|
);
|
|
14890
14895
|
function T0() {
|
|
14891
14896
|
const n = new ge();
|
|
14892
|
-
n.use(
|
|
14897
|
+
n.use(Af(n));
|
|
14893
14898
|
const e = n.route("/branding", Qh).route("/email/providers", O0).route("/users", _g).route("/keys", _0).route("/users-by-email", m0).route("/clients", v0).route("/tenants", b0).route("/logs", x0).route("/hooks", A0).route("/connections", E0).route("/prompts", $0).route("/sessions", B0);
|
|
14894
|
-
return
|
|
14899
|
+
return Sf(e), e.doc("/spec", {
|
|
14895
14900
|
openapi: "3.0.0",
|
|
14896
14901
|
info: {
|
|
14897
14902
|
version: "1.0.0",
|
|
@@ -14923,12 +14928,12 @@ var ed;
|
|
|
14923
14928
|
n[n.Required = 0] = "Required", n[n.Ignore = 1] = "Ignore";
|
|
14924
14929
|
})(ed || (ed = {}));
|
|
14925
14930
|
function V0(n) {
|
|
14926
|
-
return
|
|
14931
|
+
return Ef(n, M0, Ci.Include);
|
|
14927
14932
|
}
|
|
14928
|
-
function
|
|
14929
|
-
return
|
|
14933
|
+
function If(n) {
|
|
14934
|
+
return Ef(n, z0, Ci.None);
|
|
14930
14935
|
}
|
|
14931
|
-
function
|
|
14936
|
+
function Ef(n, e, t) {
|
|
14932
14937
|
let i = "";
|
|
14933
14938
|
for (let r = 0; r < n.byteLength; r += 3) {
|
|
14934
14939
|
let s = 0, o = 0;
|
|
@@ -15269,11 +15274,11 @@ class K0 {
|
|
|
15269
15274
|
}
|
|
15270
15275
|
function W0(n) {
|
|
15271
15276
|
const e = q0(new TextEncoder().encode(n));
|
|
15272
|
-
return
|
|
15277
|
+
return If(e);
|
|
15273
15278
|
}
|
|
15274
15279
|
function G0() {
|
|
15275
15280
|
const n = new Uint8Array(32);
|
|
15276
|
-
return crypto.getRandomValues(n),
|
|
15281
|
+
return crypto.getRandomValues(n), If(n);
|
|
15277
15282
|
}
|
|
15278
15283
|
function hi(n, e) {
|
|
15279
15284
|
const t = new TextEncoder().encode(e.toString()), i = new Request(n, {
|
|
@@ -15291,7 +15296,7 @@ async function Jr(n) {
|
|
|
15291
15296
|
try {
|
|
15292
15297
|
e = await fetch(n);
|
|
15293
15298
|
} catch (t) {
|
|
15294
|
-
throw new
|
|
15299
|
+
throw new Cf(t);
|
|
15295
15300
|
}
|
|
15296
15301
|
if (e.status === 400 || e.status === 401) {
|
|
15297
15302
|
let t;
|
|
@@ -15304,7 +15309,7 @@ async function Jr(n) {
|
|
|
15304
15309
|
throw new jn(e.status, t);
|
|
15305
15310
|
let i;
|
|
15306
15311
|
try {
|
|
15307
|
-
i =
|
|
15312
|
+
i = $f(t);
|
|
15308
15313
|
} catch {
|
|
15309
15314
|
throw new jn(e.status, t);
|
|
15310
15315
|
}
|
|
@@ -15328,7 +15333,7 @@ async function J0(n) {
|
|
|
15328
15333
|
try {
|
|
15329
15334
|
e = await fetch(n);
|
|
15330
15335
|
} catch (t) {
|
|
15331
|
-
throw new
|
|
15336
|
+
throw new Cf(t);
|
|
15332
15337
|
}
|
|
15333
15338
|
if (e.status === 400 || e.status === 401) {
|
|
15334
15339
|
let t;
|
|
@@ -15341,7 +15346,7 @@ async function J0(n) {
|
|
|
15341
15346
|
throw new jn(e.status, t);
|
|
15342
15347
|
let i;
|
|
15343
15348
|
try {
|
|
15344
|
-
i =
|
|
15349
|
+
i = $f(t);
|
|
15345
15350
|
} catch {
|
|
15346
15351
|
throw new jn(e.status, t);
|
|
15347
15352
|
}
|
|
@@ -15353,7 +15358,7 @@ async function J0(n) {
|
|
|
15353
15358
|
}
|
|
15354
15359
|
throw e.body !== null && await e.body.cancel(), new ar(e.status);
|
|
15355
15360
|
}
|
|
15356
|
-
function
|
|
15361
|
+
function $f(n) {
|
|
15357
15362
|
let e;
|
|
15358
15363
|
if ("error" in n && typeof n.error == "string")
|
|
15359
15364
|
e = n.error;
|
|
@@ -15377,7 +15382,7 @@ function Ef(n) {
|
|
|
15377
15382
|
}
|
|
15378
15383
|
return new Z0(e, t, i, r);
|
|
15379
15384
|
}
|
|
15380
|
-
class
|
|
15385
|
+
class Cf extends Error {
|
|
15381
15386
|
constructor(e) {
|
|
15382
15387
|
super("Failed to send request", {
|
|
15383
15388
|
cause: e
|
|
@@ -15503,7 +15508,7 @@ function em(n, e) {
|
|
|
15503
15508
|
return new TextEncoder().encode(r);
|
|
15504
15509
|
}
|
|
15505
15510
|
const tm = "https://appleid.apple.com/auth/authorize", nm = "https://appleid.apple.com/auth/token";
|
|
15506
|
-
class
|
|
15511
|
+
class jf {
|
|
15507
15512
|
constructor(e, t, i, r, s) {
|
|
15508
15513
|
ne(this, "clientId");
|
|
15509
15514
|
ne(this, "teamId");
|
|
@@ -15546,7 +15551,7 @@ class Cf {
|
|
|
15546
15551
|
}
|
|
15547
15552
|
}
|
|
15548
15553
|
const im = "https://www.facebook.com/v16.0/dialog/oauth", rm = "https://graph.facebook.com/v16.0/oauth/access_token";
|
|
15549
|
-
class
|
|
15554
|
+
class Nf {
|
|
15550
15555
|
constructor(e, t, i) {
|
|
15551
15556
|
ne(this, "clientId");
|
|
15552
15557
|
ne(this, "clientSecret");
|
|
@@ -15565,7 +15570,7 @@ class jf {
|
|
|
15565
15570
|
}
|
|
15566
15571
|
}
|
|
15567
15572
|
const sm = "https://accounts.google.com/o/oauth2/v2/auth", od = "https://oauth2.googleapis.com/token", om = "https://oauth2.googleapis.com/revoke";
|
|
15568
|
-
class
|
|
15573
|
+
class Of {
|
|
15569
15574
|
constructor(e, t, i) {
|
|
15570
15575
|
ne(this, "client");
|
|
15571
15576
|
this.client = new Uc(e, t, i);
|
|
@@ -15768,7 +15773,7 @@ function wt(n) {
|
|
|
15768
15773
|
function $e(n) {
|
|
15769
15774
|
return n.OAUTH_API_URL || n.ISSUER;
|
|
15770
15775
|
}
|
|
15771
|
-
function
|
|
15776
|
+
function Bf(n) {
|
|
15772
15777
|
const { options: e } = n;
|
|
15773
15778
|
if (!e || !e.client_id || !e.team_id || !e.kid || !e.app_secret)
|
|
15774
15779
|
throw new Error("Missing required Apple authentication parameters");
|
|
@@ -15777,7 +15782,7 @@ function Of(n) {
|
|
|
15777
15782
|
}
|
|
15778
15783
|
async function pm(n, e) {
|
|
15779
15784
|
var l, u;
|
|
15780
|
-
const { options: t, keyArray: i } =
|
|
15785
|
+
const { options: t, keyArray: i } = Bf(e), r = new jf(
|
|
15781
15786
|
t.client_id,
|
|
15782
15787
|
t.team_id,
|
|
15783
15788
|
t.kid,
|
|
@@ -15793,7 +15798,7 @@ async function pm(n, e) {
|
|
|
15793
15798
|
};
|
|
15794
15799
|
}
|
|
15795
15800
|
async function fm(n, e, t) {
|
|
15796
|
-
const { options: i, keyArray: r } =
|
|
15801
|
+
const { options: i, keyArray: r } = Bf(e), o = await new jf(
|
|
15797
15802
|
i.client_id,
|
|
15798
15803
|
i.team_id,
|
|
15799
15804
|
i.kid,
|
|
@@ -15823,7 +15828,7 @@ async function gm(n, e) {
|
|
|
15823
15828
|
const { options: t } = e;
|
|
15824
15829
|
if (!(t != null && t.client_id) || !t.client_secret)
|
|
15825
15830
|
throw new Error("Missing required authentication parameters");
|
|
15826
|
-
const i = new
|
|
15831
|
+
const i = new Nf(
|
|
15827
15832
|
t.client_id,
|
|
15828
15833
|
t.client_secret,
|
|
15829
15834
|
`${$e(n.env)}callback`
|
|
@@ -15840,7 +15845,7 @@ async function _m(n, e, t) {
|
|
|
15840
15845
|
const { options: i } = e;
|
|
15841
15846
|
if (!(i != null && i.client_id) || !i.client_secret)
|
|
15842
15847
|
throw new Error("Missing required authentication parameters");
|
|
15843
|
-
const s = await new
|
|
15848
|
+
const s = await new Nf(
|
|
15844
15849
|
i.client_id,
|
|
15845
15850
|
i.client_secret,
|
|
15846
15851
|
`${$e(n.env)}callback`
|
|
@@ -15871,7 +15876,7 @@ async function ym(n, e) {
|
|
|
15871
15876
|
const { options: t } = e;
|
|
15872
15877
|
if (!(t != null && t.client_id) || !t.client_secret)
|
|
15873
15878
|
throw new Error("Missing required Google authentication parameters");
|
|
15874
|
-
const i = new
|
|
15879
|
+
const i = new Of(
|
|
15875
15880
|
t.client_id,
|
|
15876
15881
|
t.client_secret,
|
|
15877
15882
|
`${$e(n.env)}callback`
|
|
@@ -15890,7 +15895,7 @@ async function vm(n, e, t, i) {
|
|
|
15890
15895
|
const { options: r } = e;
|
|
15891
15896
|
if (!(r != null && r.client_id) || !r.client_secret || !i)
|
|
15892
15897
|
throw new Error("Missing required authentication parameters");
|
|
15893
|
-
const o = await new
|
|
15898
|
+
const o = await new Of(
|
|
15894
15899
|
r.client_id,
|
|
15895
15900
|
r.client_secret,
|
|
15896
15901
|
`${$e(n.env)}callback`
|
|
@@ -15977,7 +15982,7 @@ const xm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15977
15982
|
getRedirect: bm,
|
|
15978
15983
|
validateAuthorizationCodeAndGetUser: km
|
|
15979
15984
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
15980
|
-
function
|
|
15985
|
+
function Tf(n, e) {
|
|
15981
15986
|
const t = n.env.STRATEGIES || {}, r = {
|
|
15982
15987
|
apple: hm,
|
|
15983
15988
|
facebook: mm,
|
|
@@ -16081,12 +16086,12 @@ function Am(n) {
|
|
|
16081
16086
|
async function Im(n, e) {
|
|
16082
16087
|
if (e === "plain")
|
|
16083
16088
|
return n;
|
|
16084
|
-
const t = new TextEncoder().encode(n), i = await
|
|
16089
|
+
const t = new TextEncoder().encode(n), i = await xf(t);
|
|
16085
16090
|
return tn.encode(new Uint8Array(i), {
|
|
16086
16091
|
includePadding: !1
|
|
16087
16092
|
});
|
|
16088
16093
|
}
|
|
16089
|
-
function
|
|
16094
|
+
function Pf(n, e, t) {
|
|
16090
16095
|
const i = [];
|
|
16091
16096
|
return i.push([encodeURIComponent(n), encodeURIComponent(e)]), (t == null ? void 0 : t.domain) !== void 0 && i.push(["Domain", t.domain]), (t == null ? void 0 : t.expires) !== void 0 && i.push(["Expires", t.expires.toUTCString()]), t != null && t.httpOnly && i.push(["HttpOnly"]), (t == null ? void 0 : t.maxAge) !== void 0 && i.push(["Max-Age", t.maxAge.toString()]), (t == null ? void 0 : t.path) !== void 0 && i.push(["Path", t.path]), (t == null ? void 0 : t.sameSite) === "lax" && i.push(["SameSite", "Lax"]), (t == null ? void 0 : t.sameSite) === "none" && i.push(["SameSite", "None"]), (t == null ? void 0 : t.sameSite) === "strict" && i.push(["SameSite", "Strict"]), t != null && t.secure && i.push(["Secure"]), i.map((r) => r.join("=")).join("; ");
|
|
16092
16097
|
}
|
|
@@ -16101,7 +16106,7 @@ function Em(n) {
|
|
|
16101
16106
|
function Dc(n) {
|
|
16102
16107
|
return `${n}-${R0}`;
|
|
16103
16108
|
}
|
|
16104
|
-
function
|
|
16109
|
+
function Rf(n, e) {
|
|
16105
16110
|
return e ? Em(e).get(Dc(n)) : void 0;
|
|
16106
16111
|
}
|
|
16107
16112
|
function $m(n) {
|
|
@@ -16111,19 +16116,19 @@ function $m(n) {
|
|
|
16111
16116
|
secure: !0,
|
|
16112
16117
|
maxAge: 0
|
|
16113
16118
|
};
|
|
16114
|
-
return
|
|
16119
|
+
return Pf(Dc(n), "", {
|
|
16115
16120
|
...e,
|
|
16116
16121
|
sameSite: "none"
|
|
16117
16122
|
});
|
|
16118
16123
|
}
|
|
16119
|
-
function
|
|
16124
|
+
function Lf(n, e) {
|
|
16120
16125
|
const t = {
|
|
16121
16126
|
path: "/",
|
|
16122
16127
|
httpOnly: !0,
|
|
16123
16128
|
secure: !0,
|
|
16124
16129
|
maxAge: Lc
|
|
16125
16130
|
};
|
|
16126
|
-
return
|
|
16131
|
+
return Pf(Dc(n), e, {
|
|
16127
16132
|
...t,
|
|
16128
16133
|
sameSite: "none"
|
|
16129
16134
|
});
|
|
@@ -16391,7 +16396,7 @@ function ri(n) {
|
|
|
16391
16396
|
return n.startIndex + n[1].length;
|
|
16392
16397
|
}
|
|
16393
16398
|
var Hc = {};
|
|
16394
|
-
const
|
|
16399
|
+
const Uf = {
|
|
16395
16400
|
preserveOrder: !1,
|
|
16396
16401
|
attributeNamePrefix: "@_",
|
|
16397
16402
|
attributesGroupName: !1,
|
|
@@ -16435,10 +16440,10 @@ const Lf = {
|
|
|
16435
16440
|
}
|
|
16436
16441
|
// skipEmptyListItem: false
|
|
16437
16442
|
}, Um = function(n) {
|
|
16438
|
-
return Object.assign({},
|
|
16443
|
+
return Object.assign({}, Uf, n);
|
|
16439
16444
|
};
|
|
16440
16445
|
Hc.buildOptions = Um;
|
|
16441
|
-
Hc.defaultOptions =
|
|
16446
|
+
Hc.defaultOptions = Uf;
|
|
16442
16447
|
class Vm {
|
|
16443
16448
|
constructor(e) {
|
|
16444
16449
|
this.tagname = e, this.child = [], this[":@"] = {};
|
|
@@ -16557,8 +16562,8 @@ function iy(n) {
|
|
|
16557
16562
|
return !0;
|
|
16558
16563
|
} : () => !1;
|
|
16559
16564
|
}
|
|
16560
|
-
var
|
|
16561
|
-
const
|
|
16565
|
+
var Vf = iy;
|
|
16566
|
+
const Mf = Fs, si = Mm, ry = Zm, sy = ny, oy = Vf;
|
|
16562
16567
|
let ay = class {
|
|
16563
16568
|
constructor(e) {
|
|
16564
16569
|
this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = {
|
|
@@ -16614,7 +16619,7 @@ function uy(n) {
|
|
|
16614
16619
|
const dy = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
|
|
16615
16620
|
function py(n, e, t) {
|
|
16616
16621
|
if (this.options.ignoreAttributes !== !0 && typeof n == "string") {
|
|
16617
|
-
const i =
|
|
16622
|
+
const i = Mf.getAllMatches(n, dy), r = i.length, s = {};
|
|
16618
16623
|
for (let o = 0; o < r; o++) {
|
|
16619
16624
|
const c = this.resolveNameSpace(i[o][1]);
|
|
16620
16625
|
if (this.ignoreAttributesFn(c, e))
|
|
@@ -16838,13 +16843,13 @@ function Ma(n, e, t) {
|
|
|
16838
16843
|
const i = n.trim();
|
|
16839
16844
|
return i === "true" ? !0 : i === "false" ? !1 : sy(n, t);
|
|
16840
16845
|
} else
|
|
16841
|
-
return
|
|
16846
|
+
return Mf.isExist(n) ? n : "";
|
|
16842
16847
|
}
|
|
16843
|
-
var wy = ay,
|
|
16848
|
+
var wy = ay, zf = {};
|
|
16844
16849
|
function by(n, e) {
|
|
16845
|
-
return
|
|
16850
|
+
return Df(n, e);
|
|
16846
16851
|
}
|
|
16847
|
-
function
|
|
16852
|
+
function Df(n, e, t) {
|
|
16848
16853
|
let i;
|
|
16849
16854
|
const r = {};
|
|
16850
16855
|
for (let s = 0; s < n.length; s++) {
|
|
@@ -16856,7 +16861,7 @@ function zf(n, e, t) {
|
|
|
16856
16861
|
if (c === void 0)
|
|
16857
16862
|
continue;
|
|
16858
16863
|
if (o[c]) {
|
|
16859
|
-
let u =
|
|
16864
|
+
let u = Df(o[c], e, l);
|
|
16860
16865
|
const p = Sy(u, e);
|
|
16861
16866
|
o[":@"] ? xy(u, o[":@"], l, e) : Object.keys(u).length === 1 && u[e.textNodeName] !== void 0 && !e.alwaysCreateTextNode ? u = u[e.textNodeName] : Object.keys(u).length === 0 && (e.alwaysCreateTextNode ? u[e.textNodeName] = "" : u = ""), r[c] !== void 0 && r.hasOwnProperty(c) ? (Array.isArray(r[c]) || (r[c] = [r[c]]), r[c].push(u)) : e.isArray(c, l, p) ? r[c] = [u] : r[c] = u;
|
|
16862
16867
|
}
|
|
@@ -16884,8 +16889,8 @@ function Sy(n, e) {
|
|
|
16884
16889
|
const { textNodeName: t } = e, i = Object.keys(n).length;
|
|
16885
16890
|
return !!(i === 0 || i === 1 && (n[t] || typeof n[t] == "boolean" || n[t] === 0));
|
|
16886
16891
|
}
|
|
16887
|
-
|
|
16888
|
-
const { buildOptions: Ay } = Hc, Iy = wy, { prettify: Ey } =
|
|
16892
|
+
zf.prettify = by;
|
|
16893
|
+
const { buildOptions: Ay } = Hc, Iy = wy, { prettify: Ey } = zf, $y = qc;
|
|
16889
16894
|
let Cy = class {
|
|
16890
16895
|
constructor(e) {
|
|
16891
16896
|
this.externalEntities = {}, this.options = Ay(e);
|
|
@@ -16931,9 +16936,9 @@ const Ny = `
|
|
|
16931
16936
|
`;
|
|
16932
16937
|
function Oy(n, e) {
|
|
16933
16938
|
let t = "";
|
|
16934
|
-
return e.format && e.indentBy.length > 0 && (t = Ny),
|
|
16939
|
+
return e.format && e.indentBy.length > 0 && (t = Ny), qf(n, e, "", t);
|
|
16935
16940
|
}
|
|
16936
|
-
function
|
|
16941
|
+
function qf(n, e, t, i) {
|
|
16937
16942
|
let r = "", s = !1;
|
|
16938
16943
|
for (let o = 0; o < n.length; o++) {
|
|
16939
16944
|
const c = n[o], l = By(c);
|
|
@@ -16941,7 +16946,7 @@ function Df(n, e, t, i) {
|
|
|
16941
16946
|
let u = "";
|
|
16942
16947
|
if (t.length === 0 ? u = l : u = `${t}.${l}`, l === e.textNodeName) {
|
|
16943
16948
|
let h = c[l];
|
|
16944
|
-
Ty(u, e) || (h = e.tagValueProcessor(l, h), h =
|
|
16949
|
+
Ty(u, e) || (h = e.tagValueProcessor(l, h), h = Ff(h, e)), s && (r += i), r += h, s = !1;
|
|
16945
16950
|
continue;
|
|
16946
16951
|
} else if (l === e.cdataPropName) {
|
|
16947
16952
|
s && (r += i), r += `<![CDATA[${c[l][0][e.textNodeName]}]]>`, s = !1;
|
|
@@ -16957,7 +16962,7 @@ function Df(n, e, t, i) {
|
|
|
16957
16962
|
}
|
|
16958
16963
|
let p = i;
|
|
16959
16964
|
p !== "" && (p += e.indentBy);
|
|
16960
|
-
const g = pd(c[":@"], e), _ = i + `<${l}${g}`, x =
|
|
16965
|
+
const g = pd(c[":@"], e), _ = i + `<${l}${g}`, x = qf(c[l], e, u, p);
|
|
16961
16966
|
e.unpairedTags.indexOf(l) !== -1 ? e.suppressUnpairedNode ? r += _ + ">" : r += _ + "/>" : (!x || x.length === 0) && e.suppressEmptyNode ? r += _ + "/>" : x && x.endsWith(">") ? r += _ + `>${x}${i}</${l}>` : (r += _ + ">", x && i !== "" && (x.includes("/>") || x.includes("</")) ? r += i + e.indentBy + x + i : r += x, r += `</${l}>`), s = !0;
|
|
16962
16967
|
}
|
|
16963
16968
|
return r;
|
|
@@ -16976,7 +16981,7 @@ function pd(n, e) {
|
|
|
16976
16981
|
for (let i in n) {
|
|
16977
16982
|
if (!n.hasOwnProperty(i)) continue;
|
|
16978
16983
|
let r = e.attributeValueProcessor(i, n[i]);
|
|
16979
|
-
r =
|
|
16984
|
+
r = Ff(r, e), r === !0 && e.suppressBooleanAttributes ? t += ` ${i.substr(e.attributeNamePrefix.length)}` : t += ` ${i.substr(e.attributeNamePrefix.length)}="${r}"`;
|
|
16980
16985
|
}
|
|
16981
16986
|
return t;
|
|
16982
16987
|
}
|
|
@@ -16987,7 +16992,7 @@ function Ty(n, e) {
|
|
|
16987
16992
|
if (e.stopNodes[i] === n || e.stopNodes[i] === "*." + t) return !0;
|
|
16988
16993
|
return !1;
|
|
16989
16994
|
}
|
|
16990
|
-
function
|
|
16995
|
+
function Ff(n, e) {
|
|
16991
16996
|
if (n && n.length > 0 && e.processEntities)
|
|
16992
16997
|
for (let t = 0; t < e.entities.length; t++) {
|
|
16993
16998
|
const i = e.entities[t];
|
|
@@ -16996,7 +17001,7 @@ function qf(n, e) {
|
|
|
16996
17001
|
return n;
|
|
16997
17002
|
}
|
|
16998
17003
|
var Py = Oy;
|
|
16999
|
-
const Ry = Py, Ly =
|
|
17004
|
+
const Ry = Py, Ly = Vf, Uy = {
|
|
17000
17005
|
attributeNamePrefix: "@_",
|
|
17001
17006
|
attributesGroupName: !1,
|
|
17002
17007
|
textNodeName: "#text",
|
|
@@ -17580,13 +17585,18 @@ async function Zy(n, e) {
|
|
|
17580
17585
|
expires_at: new Date(
|
|
17581
17586
|
Date.now() + Lc * 1e3
|
|
17582
17587
|
).toISOString(),
|
|
17583
|
-
|
|
17584
|
-
|
|
17585
|
-
|
|
17588
|
+
user_id: e.user.user_id,
|
|
17589
|
+
resource_servers: [
|
|
17590
|
+
{
|
|
17591
|
+
audience: r,
|
|
17592
|
+
scopes: i
|
|
17593
|
+
}
|
|
17594
|
+
],
|
|
17595
|
+
rotating: !1
|
|
17586
17596
|
}
|
|
17587
17597
|
);
|
|
17588
17598
|
}
|
|
17589
|
-
async function
|
|
17599
|
+
async function Hf(n, e) {
|
|
17590
17600
|
const { user: t, client: i, scope: r, audience: s } = e, o = await n.env.data.sessions.create(i.tenant.id, {
|
|
17591
17601
|
id: qe(),
|
|
17592
17602
|
user_id: t.user_id,
|
|
@@ -17628,7 +17638,7 @@ async function ei(n, e) {
|
|
|
17628
17638
|
);
|
|
17629
17639
|
let o = e.refreshToken, c = e.sessionId;
|
|
17630
17640
|
if (!c) {
|
|
17631
|
-
const _ = await
|
|
17641
|
+
const _ = await Hf(n, {
|
|
17632
17642
|
user: i,
|
|
17633
17643
|
client: r,
|
|
17634
17644
|
scope: t.scope,
|
|
@@ -17651,7 +17661,7 @@ async function ei(n, e) {
|
|
|
17651
17661
|
session_id: c,
|
|
17652
17662
|
refresh_token: o
|
|
17653
17663
|
}), u = new Headers({
|
|
17654
|
-
"set-cookie":
|
|
17664
|
+
"set-cookie": Lf(r.tenant.id, c)
|
|
17655
17665
|
});
|
|
17656
17666
|
if (t.response_mode === rn.WEB_MESSAGE)
|
|
17657
17667
|
return n.json(l, {
|
|
@@ -17685,7 +17695,7 @@ function Yy(n) {
|
|
|
17685
17695
|
return async (e, t) => {
|
|
17686
17696
|
if (!t.email || !t.email_verified)
|
|
17687
17697
|
return n.users.create(e, t);
|
|
17688
|
-
const i = await
|
|
17698
|
+
const i = await Cd({
|
|
17689
17699
|
userAdapter: n.users,
|
|
17690
17700
|
tenant_id: e,
|
|
17691
17701
|
email: t.email
|
|
@@ -17696,7 +17706,7 @@ function Yy(n) {
|
|
|
17696
17706
|
}), i) : n.users.create(e, t);
|
|
17697
17707
|
};
|
|
17698
17708
|
}
|
|
17699
|
-
async function
|
|
17709
|
+
async function Kf(n, e, t) {
|
|
17700
17710
|
for await (const i of e)
|
|
17701
17711
|
if (!(await fetch(i.url, {
|
|
17702
17712
|
method: "POST",
|
|
@@ -17715,7 +17725,7 @@ async function Hf(n, e, t) {
|
|
|
17715
17725
|
function Xy(n, e) {
|
|
17716
17726
|
return async (t, i) => {
|
|
17717
17727
|
const { hooks: r } = await e.hooks.list(t);
|
|
17718
|
-
return await
|
|
17728
|
+
return await Kf(n, r, {
|
|
17719
17729
|
tenant_id: t,
|
|
17720
17730
|
user: i,
|
|
17721
17731
|
trigger_id: "post-user-registration"
|
|
@@ -17730,7 +17740,7 @@ function Qy(n, e) {
|
|
|
17730
17740
|
per_page: 100,
|
|
17731
17741
|
include_totals: !1
|
|
17732
17742
|
});
|
|
17733
|
-
await
|
|
17743
|
+
await Kf(n, r, {
|
|
17734
17744
|
tenant_id: t,
|
|
17735
17745
|
email: i,
|
|
17736
17746
|
trigger_id: "pre-user-signup"
|
|
@@ -17744,7 +17754,7 @@ function ev(n, e) {
|
|
|
17744
17754
|
};
|
|
17745
17755
|
}
|
|
17746
17756
|
async function tv(n, e, t, i) {
|
|
17747
|
-
if (e.disable_sign_ups && !await
|
|
17757
|
+
if (e.disable_sign_ups && !await Cd({
|
|
17748
17758
|
userAdapter: n.env.data.users,
|
|
17749
17759
|
tenant_id: e.tenant.id,
|
|
17750
17760
|
email: i
|
|
@@ -17788,7 +17798,7 @@ async function iv(n, e, t, i) {
|
|
|
17788
17798
|
authParams: i,
|
|
17789
17799
|
...Dn(n.req)
|
|
17790
17800
|
}));
|
|
17791
|
-
const c = await
|
|
17801
|
+
const c = await Tf(n, r.strategy).getRedirect(n, r);
|
|
17792
17802
|
return await n.env.data.codes.create(e.tenant.id, {
|
|
17793
17803
|
login_id: s.login_id,
|
|
17794
17804
|
code_id: c.code,
|
|
@@ -17850,7 +17860,7 @@ async function hd(n, { code: e, state: t }) {
|
|
|
17850
17860
|
message: m
|
|
17851
17861
|
});
|
|
17852
17862
|
}
|
|
17853
|
-
const u = await
|
|
17863
|
+
const u = await Tf(n, c.strategy).validateAuthorizationCodeAndGetUser(
|
|
17854
17864
|
n,
|
|
17855
17865
|
c,
|
|
17856
17866
|
e,
|
|
@@ -18072,7 +18082,7 @@ const rv = new ge().openapi(
|
|
|
18072
18082
|
});
|
|
18073
18083
|
const o = n.req.header("cookie");
|
|
18074
18084
|
if (o) {
|
|
18075
|
-
const l =
|
|
18085
|
+
const l = Rf(i.tenant.id, o);
|
|
18076
18086
|
if (l) {
|
|
18077
18087
|
const u = await n.env.data.sessions.get(
|
|
18078
18088
|
i.tenant.id,
|
|
@@ -18151,7 +18161,7 @@ const rv = new ge().openapi(
|
|
|
18151
18161
|
200: {
|
|
18152
18162
|
content: {
|
|
18153
18163
|
"application/json": {
|
|
18154
|
-
schema:
|
|
18164
|
+
schema: Vh
|
|
18155
18165
|
}
|
|
18156
18166
|
},
|
|
18157
18167
|
description: "List of tenants"
|
|
@@ -18285,7 +18295,7 @@ function cr(n, e) {
|
|
|
18285
18295
|
t |= n.charCodeAt(i) ^ e.charCodeAt(i);
|
|
18286
18296
|
return t === 0;
|
|
18287
18297
|
}
|
|
18288
|
-
const
|
|
18298
|
+
const Wf = a.object({
|
|
18289
18299
|
grant_type: a.literal("client_credentials"),
|
|
18290
18300
|
scope: a.string().optional(),
|
|
18291
18301
|
client_secret: a.string(),
|
|
@@ -18381,7 +18391,7 @@ async function pv(n, e) {
|
|
|
18381
18391
|
e.refresh_token
|
|
18382
18392
|
);
|
|
18383
18393
|
if (i) {
|
|
18384
|
-
if (new Date(i.expires_at) < /* @__PURE__ */ new Date())
|
|
18394
|
+
if (i.expires_at && new Date(i.expires_at) < /* @__PURE__ */ new Date())
|
|
18385
18395
|
throw new N(403, { message: "Refresh token expired" });
|
|
18386
18396
|
} else throw new N(403, { message: "Invalid refresh token" });
|
|
18387
18397
|
const r = await n.env.data.sessions.get(
|
|
@@ -18393,15 +18403,16 @@ async function pv(n, e) {
|
|
|
18393
18403
|
const s = await n.env.data.users.get(t.tenant.id, r.user_id);
|
|
18394
18404
|
if (!s)
|
|
18395
18405
|
throw new N(403, { message: "User not found" });
|
|
18406
|
+
const o = i.resource_servers[0];
|
|
18396
18407
|
return ei(n, {
|
|
18397
18408
|
user: s,
|
|
18398
18409
|
client: t,
|
|
18399
18410
|
refreshToken: i.token,
|
|
18400
|
-
sessionId: r.
|
|
18411
|
+
sessionId: r.id,
|
|
18401
18412
|
authParams: {
|
|
18402
18413
|
client_id: t.id,
|
|
18403
|
-
audience:
|
|
18404
|
-
scope:
|
|
18414
|
+
audience: o == null ? void 0 : o.audience,
|
|
18415
|
+
scope: o == null ? void 0 : o.scopes,
|
|
18405
18416
|
response_mode: rn.WEB_MESSAGE
|
|
18406
18417
|
}
|
|
18407
18418
|
});
|
|
@@ -18411,7 +18422,7 @@ const md = a.object({
|
|
|
18411
18422
|
client_secret: a.string().optional()
|
|
18412
18423
|
}), fv = a.union([
|
|
18413
18424
|
// Client credentials
|
|
18414
|
-
|
|
18425
|
+
Wf.extend(md.shape),
|
|
18415
18426
|
// PKCE. This needs to be before the normal code grant as the client_secret is optional here
|
|
18416
18427
|
a.object({
|
|
18417
18428
|
grant_type: a.literal("authorization_code"),
|
|
@@ -18484,7 +18495,7 @@ const gv = new ge().openapi(
|
|
|
18484
18495
|
case nr.ClientCredential:
|
|
18485
18496
|
return cv(
|
|
18486
18497
|
n,
|
|
18487
|
-
|
|
18498
|
+
Wf.parse(i)
|
|
18488
18499
|
);
|
|
18489
18500
|
case nr.RefreshToken:
|
|
18490
18501
|
return pv(n, dv.parse(i));
|
|
@@ -18519,7 +18530,7 @@ const Gc = [
|
|
|
18519
18530
|
minDiversity: 4,
|
|
18520
18531
|
minLength: 10
|
|
18521
18532
|
}
|
|
18522
|
-
],
|
|
18533
|
+
], Gf = (n, e = Gc, t = "!\"#$%&'()*+,-./:;<=>?@[\\\\\\]^_`{|}~") => {
|
|
18523
18534
|
let i = n || "";
|
|
18524
18535
|
e[0].minDiversity = 0, e[0].minLength = 0;
|
|
18525
18536
|
const r = [
|
|
@@ -18545,8 +18556,8 @@ const Gc = [
|
|
|
18545
18556
|
let o = e.filter((c) => s.contains.length >= c.minDiversity).filter((c) => s.length >= c.minLength).sort((c, l) => l.id - c.id).map((c) => ({ id: c.id, value: c.value }));
|
|
18546
18557
|
return Object.assign(s, o[0]), s;
|
|
18547
18558
|
};
|
|
18548
|
-
Wc.exports = { passwordStrength:
|
|
18549
|
-
var _v = Wc.exports.passwordStrength =
|
|
18559
|
+
Wc.exports = { passwordStrength: Gf, defaultOptions: Gc };
|
|
18560
|
+
var _v = Wc.exports.passwordStrength = Gf;
|
|
18550
18561
|
Wc.exports.defaultOptions = Gc;
|
|
18551
18562
|
function mv(n) {
|
|
18552
18563
|
return _v(n).id < 2 ? !1 : n.length >= 8 && // Minimum length
|
|
@@ -18638,7 +18649,7 @@ async function vv(n, e, t) {
|
|
|
18638
18649
|
});
|
|
18639
18650
|
mt(n, n.env.data.logs.create(i.id, s));
|
|
18640
18651
|
}
|
|
18641
|
-
async function
|
|
18652
|
+
async function Jf(n, e, t) {
|
|
18642
18653
|
const i = await n.env.data.tenants.get(n.var.tenant_id);
|
|
18643
18654
|
if (!i)
|
|
18644
18655
|
throw new N(500, { message: "Tenant not found" });
|
|
@@ -18675,7 +18686,7 @@ async function Gf(n, e, t) {
|
|
|
18675
18686
|
});
|
|
18676
18687
|
mt(n, n.env.data.logs.create(i.id, s));
|
|
18677
18688
|
}
|
|
18678
|
-
async function
|
|
18689
|
+
async function Zf(n, e) {
|
|
18679
18690
|
const t = await n.env.data.tenants.get(n.var.tenant_id);
|
|
18680
18691
|
if (!t)
|
|
18681
18692
|
throw new N(500, { message: "Tenant not found" });
|
|
@@ -18769,7 +18780,7 @@ const wv = new ge().openapi(
|
|
|
18769
18780
|
user_id: o.user_id,
|
|
18770
18781
|
password: c,
|
|
18771
18782
|
algorithm: "bcrypt"
|
|
18772
|
-
}), await
|
|
18783
|
+
}), await Zf(n, o);
|
|
18773
18784
|
const l = xe(n, {
|
|
18774
18785
|
type: ye.SUCCESS_SIGNUP,
|
|
18775
18786
|
description: "Successful signup"
|
|
@@ -18841,7 +18852,7 @@ const wv = new ge().openapi(
|
|
|
18841
18852
|
);
|
|
18842
18853
|
}
|
|
18843
18854
|
);
|
|
18844
|
-
function
|
|
18855
|
+
function Yf() {
|
|
18845
18856
|
const n = "1234567890";
|
|
18846
18857
|
let e = "";
|
|
18847
18858
|
for (let t = 0; t < 6; t += 1)
|
|
@@ -18886,12 +18897,12 @@ const bv = new ge().openapi(
|
|
|
18886
18897
|
expires_at: new Date(Date.now() + Xu).toISOString(),
|
|
18887
18898
|
...Dn(n.req)
|
|
18888
18899
|
}), u = await t.data.codes.create(c.tenant.id, {
|
|
18889
|
-
code_id:
|
|
18900
|
+
code_id: Yf(),
|
|
18890
18901
|
code_type: "otp",
|
|
18891
18902
|
login_id: l.login_id,
|
|
18892
18903
|
expires_at: new Date(Date.now() + Xu).toISOString()
|
|
18893
18904
|
});
|
|
18894
|
-
return s === "link" ? await
|
|
18905
|
+
return s === "link" ? await Jf(n, r, u.code_id) : await vv(n, r, u.code_id), n.html("OK");
|
|
18895
18906
|
}
|
|
18896
18907
|
).openapi(
|
|
18897
18908
|
Z({
|
|
@@ -19059,7 +19070,7 @@ async function kv(n, e, t) {
|
|
|
19059
19070
|
});
|
|
19060
19071
|
}
|
|
19061
19072
|
if (!s.email_verified && e.email_validation === "enforced") {
|
|
19062
|
-
await
|
|
19073
|
+
await Zf(n, s);
|
|
19063
19074
|
const _ = xe(n, {
|
|
19064
19075
|
type: ye.FAILED_LOGIN,
|
|
19065
19076
|
description: "Email not verified"
|
|
@@ -19247,11 +19258,11 @@ async function Iv({
|
|
|
19247
19258
|
loginSession: o,
|
|
19248
19259
|
authParams: i,
|
|
19249
19260
|
user: c,
|
|
19250
|
-
sessionId: e.
|
|
19261
|
+
sessionId: e.id
|
|
19251
19262
|
});
|
|
19252
19263
|
}
|
|
19253
19264
|
if (r === "email" && s) {
|
|
19254
|
-
const c =
|
|
19265
|
+
const c = Yf();
|
|
19255
19266
|
return await n.env.data.codes.create(t.tenant.id, {
|
|
19256
19267
|
code_id: c,
|
|
19257
19268
|
code_type: "otp",
|
|
@@ -19259,7 +19270,7 @@ async function Iv({
|
|
|
19259
19270
|
expires_at: new Date(
|
|
19260
19271
|
Date.now() + Gr * 1e3
|
|
19261
19272
|
).toISOString()
|
|
19262
|
-
}), await
|
|
19273
|
+
}), await Jf(n, s, c), n.redirect(`/u/enter-code?state=${o.login_id}`);
|
|
19263
19274
|
}
|
|
19264
19275
|
return e ? n.redirect(`/u/check-account?state=${o.login_id}`) : n.redirect(`/u/enter-email?state=${o.login_id}`);
|
|
19265
19276
|
}
|
|
@@ -19302,7 +19313,7 @@ async function $v(n, e, t, i, r) {
|
|
|
19302
19313
|
last_ip: "",
|
|
19303
19314
|
last_login: (/* @__PURE__ */ new Date()).toISOString()
|
|
19304
19315
|
})), n.set("username", p.email), n.set("user_id", p.user_id);
|
|
19305
|
-
const g = await
|
|
19316
|
+
const g = await Hf(n, {
|
|
19306
19317
|
user: p,
|
|
19307
19318
|
client: l,
|
|
19308
19319
|
scope: i.scope,
|
|
@@ -19380,7 +19391,7 @@ async function Cv({
|
|
|
19380
19391
|
const { env: p } = n, g = new URL(i);
|
|
19381
19392
|
if (t) {
|
|
19382
19393
|
n.set("user_id", t.user_id);
|
|
19383
|
-
const x = new Headers(), h =
|
|
19394
|
+
const x = new Headers(), h = Lf(e.tenant.id, t.id);
|
|
19384
19395
|
x.set("set-cookie", h);
|
|
19385
19396
|
const m = await p.data.users.get(e.tenant.id, t.user_id);
|
|
19386
19397
|
if (m) {
|
|
@@ -19521,7 +19532,7 @@ const jv = new ge().openapi(
|
|
|
19521
19532
|
throw new N(400, {
|
|
19522
19533
|
message: `Invalid redirect URI - ${ae.redirect_uri}`
|
|
19523
19534
|
});
|
|
19524
|
-
const le =
|
|
19535
|
+
const le = Rf(
|
|
19525
19536
|
H.tenant.id,
|
|
19526
19537
|
n.req.header("cookie")
|
|
19527
19538
|
), Ve = le ? await e.data.sessions.get(H.tenant.id, le) : void 0;
|
|
@@ -19563,7 +19574,7 @@ const jv = new ge().openapi(
|
|
|
19563
19574
|
);
|
|
19564
19575
|
function Nv() {
|
|
19565
19576
|
const n = new ge();
|
|
19566
|
-
n.use(
|
|
19577
|
+
n.use(Af(n));
|
|
19567
19578
|
const e = n.route("/v2/logout", sv).route("/userinfo", ov).route("/.well-known", av).route("/oauth/token", gv).route("/dbconnections", wv).route("/passwordless", bv).route("/co/authenticate", Sv).route("/authorize", jv).route("/callback", rv);
|
|
19568
19579
|
return e.doc("/spec", {
|
|
19569
19580
|
openapi: "3.0.0",
|
|
@@ -19571,7 +19582,7 @@ function Nv() {
|
|
|
19571
19582
|
version: "1.0.0",
|
|
19572
19583
|
title: "Oauth API"
|
|
19573
19584
|
}
|
|
19574
|
-
}),
|
|
19585
|
+
}), Sf(e), e;
|
|
19575
19586
|
}
|
|
19576
19587
|
function Ov() {
|
|
19577
19588
|
const e = new ge();
|
|
@@ -20505,7 +20516,7 @@ function ZN(n) {
|
|
|
20505
20516
|
};
|
|
20506
20517
|
}
|
|
20507
20518
|
export {
|
|
20508
|
-
|
|
20519
|
+
Dh as Auth0Client,
|
|
20509
20520
|
rn as AuthorizationResponseMode,
|
|
20510
20521
|
nn as AuthorizationResponseType,
|
|
20511
20522
|
qa as CodeChallengeMethod,
|
|
@@ -20518,36 +20529,36 @@ export {
|
|
|
20518
20529
|
Da as baseUserSchema,
|
|
20519
20530
|
Kh as bordersSchema,
|
|
20520
20531
|
_l as brandingSchema,
|
|
20521
|
-
|
|
20532
|
+
Lh as codeInsertSchema,
|
|
20522
20533
|
K3 as codeSchema,
|
|
20523
|
-
|
|
20534
|
+
Rh as codeTypeSchema,
|
|
20524
20535
|
Wh as colorsSchema,
|
|
20525
20536
|
_o as connectionInsertSchema,
|
|
20526
20537
|
Jt as connectionSchema,
|
|
20527
|
-
|
|
20538
|
+
Uh as domainInsertSchema,
|
|
20528
20539
|
W3 as domainSchema,
|
|
20529
20540
|
Ys as emailProviderSchema,
|
|
20530
20541
|
Sn as fontDetailsSchema,
|
|
20531
20542
|
Gh as fontsSchema,
|
|
20532
20543
|
yo as hookInsertSchema,
|
|
20533
20544
|
ai as hookSchema,
|
|
20534
|
-
|
|
20545
|
+
Nh as identitySchema,
|
|
20535
20546
|
ZN as init,
|
|
20536
|
-
|
|
20547
|
+
Vh as jwksKeySchema,
|
|
20537
20548
|
Ad as jwksSchema,
|
|
20538
20549
|
vo as logSchema,
|
|
20539
|
-
|
|
20550
|
+
Mh as loginInsertSchema,
|
|
20540
20551
|
G3 as loginSchema,
|
|
20541
20552
|
ml as openIDConfigurationSchema,
|
|
20542
20553
|
Jh as pageBackgroundSchema,
|
|
20543
20554
|
X3 as parseUserId,
|
|
20544
|
-
|
|
20555
|
+
qh as passwordInsertSchema,
|
|
20545
20556
|
J3 as passwordSchema,
|
|
20546
|
-
|
|
20557
|
+
jh as profileDataSchema,
|
|
20547
20558
|
Zs as promptSettingSchema,
|
|
20548
20559
|
Xh as refreshTokenInsertSchema,
|
|
20549
20560
|
Y3 as refreshTokenSchema,
|
|
20550
|
-
|
|
20561
|
+
Th as samlpAddon,
|
|
20551
20562
|
Fh as sessionInsertSchema,
|
|
20552
20563
|
Fa as sessionSchema,
|
|
20553
20564
|
yl as signingKeySchema,
|