authhero 0.103.0 → 0.105.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 +28 -28
- package/dist/authhero.d.ts +1 -0
- package/dist/authhero.mjs +508 -496
- package/package.json +1 -1
package/dist/authhero.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var ne = (t, e, n) =>
|
|
1
|
+
var dm = Object.defineProperty;
|
|
2
|
+
var pm = (t, e, n) => e in t ? dm(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var ne = (t, e, n) => pm(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
import { z as a, OpenAPIHono as ae, createRoute as U } from "@hono/zod-openapi";
|
|
5
5
|
const re = (t) => typeof t == "string", Ar = () => {
|
|
6
6
|
let t, e;
|
|
@@ -8,11 +8,11 @@ const re = (t) => typeof t == "string", Ar = () => {
|
|
|
8
8
|
t = r, e = i;
|
|
9
9
|
});
|
|
10
10
|
return n.resolve = t, n.reject = e, n;
|
|
11
|
-
}, xu = (t) => t == null ? "" : "" + t,
|
|
11
|
+
}, xu = (t) => t == null ? "" : "" + t, fm = (t, e, n) => {
|
|
12
12
|
t.forEach((r) => {
|
|
13
13
|
e[r] && (n[r] = e[r]);
|
|
14
14
|
});
|
|
15
|
-
},
|
|
15
|
+
}, hm = /###/g, Su = (t) => t && t.indexOf("###") > -1 ? t.replace(hm, ".") : t, Au = (t) => !t || re(t), Tr = (t, e, n) => {
|
|
16
16
|
const r = re(e) ? e.split(".") : e;
|
|
17
17
|
let i = 0;
|
|
18
18
|
for (; i < r.length - 1; ) {
|
|
@@ -37,7 +37,7 @@ const re = (t) => typeof t == "string", Ar = () => {
|
|
|
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 = Tr(t, o, Object), c != null && c.obj && typeof c.obj[`${c.k}.${s}`] < "u" && (c.obj = void 0);
|
|
39
39
|
c.obj[`${c.k}.${s}`] = n;
|
|
40
|
-
},
|
|
40
|
+
}, gm = (t, e, n, r) => {
|
|
41
41
|
const {
|
|
42
42
|
obj: i,
|
|
43
43
|
k: s
|
|
@@ -50,7 +50,7 @@ const re = (t) => typeof t == "string", Ar = () => {
|
|
|
50
50
|
} = Tr(t, e);
|
|
51
51
|
if (n && Object.prototype.hasOwnProperty.call(n, r))
|
|
52
52
|
return n[r];
|
|
53
|
-
},
|
|
53
|
+
}, mm = (t, e, n) => {
|
|
54
54
|
const r = Yi(t, n);
|
|
55
55
|
return r !== void 0 ? r : Yi(e, n);
|
|
56
56
|
}, tf = (t, e, n) => {
|
|
@@ -58,7 +58,7 @@ const re = (t) => typeof t == "string", Ar = () => {
|
|
|
58
58
|
r !== "__proto__" && r !== "constructor" && (r in t ? re(t[r]) || t[r] instanceof String || re(e[r]) || e[r] instanceof String ? n && (t[r] = e[r]) : tf(t[r], e[r], n) : t[r] = e[r]);
|
|
59
59
|
return t;
|
|
60
60
|
}, Vn = (t) => t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
61
|
-
var
|
|
61
|
+
var _m = {
|
|
62
62
|
"&": "&",
|
|
63
63
|
"<": "<",
|
|
64
64
|
">": ">",
|
|
@@ -66,8 +66,8 @@ var mm = {
|
|
|
66
66
|
"'": "'",
|
|
67
67
|
"/": "/"
|
|
68
68
|
};
|
|
69
|
-
const
|
|
70
|
-
class
|
|
69
|
+
const ym = (t) => re(t) ? t.replace(/[&<>"'\/]/g, (e) => _m[e]) : t;
|
|
70
|
+
class vm {
|
|
71
71
|
constructor(e) {
|
|
72
72
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
73
73
|
}
|
|
@@ -79,11 +79,11 @@ class ym {
|
|
|
79
79
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, r), this.regExpQueue.push(e), r;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
const
|
|
82
|
+
const wm = [" ", ",", "?", "!", ";"], bm = new vm(20), km = (t, e, n) => {
|
|
83
83
|
e = e || "", n = n || "";
|
|
84
|
-
const r =
|
|
84
|
+
const r = wm.filter((o) => e.indexOf(o) < 0 && n.indexOf(o) < 0);
|
|
85
85
|
if (r.length === 0) return !0;
|
|
86
|
-
const i =
|
|
86
|
+
const i = bm.getRegExp(`(${r.map((o) => o === "?" ? "\\?" : o).join("|")})`);
|
|
87
87
|
let s = !i.test(t);
|
|
88
88
|
if (!s) {
|
|
89
89
|
const o = t.indexOf(n);
|
|
@@ -111,7 +111,7 @@ const vm = [" ", ",", "?", "!", ";"], wm = new ym(20), bm = (t, e, n) => {
|
|
|
111
111
|
i = o;
|
|
112
112
|
}
|
|
113
113
|
return i;
|
|
114
|
-
}, Xi = (t) => t == null ? void 0 : t.replace("_", "-"),
|
|
114
|
+
}, Xi = (t) => t == null ? void 0 : t.replace("_", "-"), xm = {
|
|
115
115
|
type: "logger",
|
|
116
116
|
log(t) {
|
|
117
117
|
this.output("log", t);
|
|
@@ -134,7 +134,7 @@ class Qi {
|
|
|
134
134
|
}
|
|
135
135
|
init(e) {
|
|
136
136
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
137
|
-
this.prefix = n.prefix || "i18next:", this.logger = e ||
|
|
137
|
+
this.prefix = n.prefix || "i18next:", this.logger = e || xm, this.options = n, this.debug = n.debug;
|
|
138
138
|
}
|
|
139
139
|
log() {
|
|
140
140
|
for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
|
|
@@ -294,7 +294,7 @@ const Cu = {};
|
|
|
294
294
|
class es extends zs {
|
|
295
295
|
constructor(e) {
|
|
296
296
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
297
|
-
super(),
|
|
297
|
+
super(), fm(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = At.create("translator");
|
|
298
298
|
}
|
|
299
299
|
changeLanguage(e) {
|
|
300
300
|
e && (this.language = e);
|
|
@@ -313,7 +313,7 @@ class es extends zs {
|
|
|
313
313
|
r === void 0 && (r = ":");
|
|
314
314
|
const i = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator;
|
|
315
315
|
let s = n.ns || this.options.defaultNS || [];
|
|
316
|
-
const o = r && e.indexOf(r) > -1, c = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !
|
|
316
|
+
const o = r && e.indexOf(r) > -1, c = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !km(e, r, i);
|
|
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 ju = {
|
|
|
617
617
|
pluralCategories: ["one", "other"]
|
|
618
618
|
})
|
|
619
619
|
};
|
|
620
|
-
class
|
|
620
|
+
class Sm {
|
|
621
621
|
constructor(e) {
|
|
622
622
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
623
623
|
this.languageUtils = e, this.options = n, this.logger = At.create("pluralResolver"), this.pluralRulesCache = {};
|
|
@@ -669,10 +669,10 @@ class xm {
|
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
const Ou = function(t, e, n) {
|
|
672
|
-
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s =
|
|
672
|
+
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = mm(t, e, n);
|
|
673
673
|
return !s && i && re(n) && (s = _a(t, n, r), s === void 0 && (s = _a(e, n, r))), s;
|
|
674
674
|
}, Ko = (t) => t.replace(/\$/g, "$$$$");
|
|
675
|
-
class
|
|
675
|
+
class Am {
|
|
676
676
|
constructor() {
|
|
677
677
|
var n;
|
|
678
678
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -702,7 +702,7 @@ class Sm {
|
|
|
702
702
|
maxReplaces: S,
|
|
703
703
|
alwaysFormat: j
|
|
704
704
|
} = e.interpolation;
|
|
705
|
-
this.escape = n !== void 0 ? n :
|
|
705
|
+
this.escape = n !== void 0 ? n : ym, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? Vn(s) : o || "{{", this.suffix = c ? Vn(c) : l || "}}", this.formatSeparator = u || ",", this.unescapePrefix = p ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : p || "", this.nestingPrefix = m ? Vn(m) : v || Vn("$t("), this.nestingSuffix = h ? Vn(h) : _ || Vn(")"), this.nestingOptionsSeparator = w || ",", this.maxReplaces = S || 1e3, this.alwaysFormat = j !== void 0 ? j : !1, this.resetRegExp();
|
|
706
706
|
}
|
|
707
707
|
reset() {
|
|
708
708
|
this.options && this.init(this.options);
|
|
@@ -798,7 +798,7 @@ class Sm {
|
|
|
798
798
|
return e;
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
|
-
const
|
|
801
|
+
const Em = (t) => {
|
|
802
802
|
let e = t.toLowerCase().trim();
|
|
803
803
|
const n = {};
|
|
804
804
|
if (t.indexOf("(") > -1) {
|
|
@@ -829,7 +829,7 @@ const Am = (t) => {
|
|
|
829
829
|
return c || (c = t(Xi(r), i), e[o] = c), c(n);
|
|
830
830
|
};
|
|
831
831
|
};
|
|
832
|
-
class
|
|
832
|
+
class Im {
|
|
833
833
|
constructor() {
|
|
834
834
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
835
835
|
this.logger = At.create("formatter"), this.options = e, this.formats = {
|
|
@@ -890,7 +890,7 @@ class Em {
|
|
|
890
890
|
const {
|
|
891
891
|
formatName: u,
|
|
892
892
|
formatOptions: p
|
|
893
|
-
} =
|
|
893
|
+
} = Em(l);
|
|
894
894
|
if (this.formats[u]) {
|
|
895
895
|
let m = c;
|
|
896
896
|
try {
|
|
@@ -910,10 +910,10 @@ class Em {
|
|
|
910
910
|
}, e);
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
|
-
const
|
|
913
|
+
const Cm = (t, e) => {
|
|
914
914
|
t.pending[e] !== void 0 && (delete t.pending[e], t.pendingCount--);
|
|
915
915
|
};
|
|
916
|
-
class
|
|
916
|
+
class Nm extends zs {
|
|
917
917
|
constructor(e, n, r) {
|
|
918
918
|
var s, o;
|
|
919
919
|
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
@@ -947,7 +947,7 @@ class Cm extends zs {
|
|
|
947
947
|
}), this.state[e] = n ? -1 : 2, n && r && (this.state[e] = 0);
|
|
948
948
|
const c = {};
|
|
949
949
|
this.queue.forEach((l) => {
|
|
950
|
-
|
|
950
|
+
gm(l.loaded, [s], o), Cm(l, e), n && l.errors.push(n), 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((f) => {
|
|
@@ -1110,7 +1110,7 @@ const Bu = () => ({
|
|
|
1110
1110
|
var e, n;
|
|
1111
1111
|
return re(t.ns) && (t.ns = [t.ns]), re(t.fallbackLng) && (t.fallbackLng = [t.fallbackLng]), re(t.fallbackNS) && (t.fallbackNS = [t.fallbackNS]), ((n = (e = t.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : n.call(e, "cimode")) < 0 && (t.supportedLngs = t.supportedLngs.concat(["cimode"])), typeof t.initImmediate == "boolean" && (t.initAsync = t.initImmediate), t;
|
|
1112
1112
|
}, $i = () => {
|
|
1113
|
-
},
|
|
1113
|
+
}, jm = (t) => {
|
|
1114
1114
|
Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach((n) => {
|
|
1115
1115
|
typeof t[n] == "function" && (t[n] = t[n].bind(t));
|
|
1116
1116
|
});
|
|
@@ -1120,7 +1120,7 @@ class zr extends zs {
|
|
|
1120
1120
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
1121
1121
|
if (super(), this.options = Tu(e), this.services = {}, this.logger = At, this.modules = {
|
|
1122
1122
|
external: []
|
|
1123
|
-
},
|
|
1123
|
+
}, jm(this), n && !this.isInitialized && !e.isClone) {
|
|
1124
1124
|
if (!this.options.initAsync)
|
|
1125
1125
|
return this.init(e, n), this;
|
|
1126
1126
|
setTimeout(() => {
|
|
@@ -1145,16 +1145,16 @@ class zr extends zs {
|
|
|
1145
1145
|
if (!this.options.isClone) {
|
|
1146
1146
|
this.modules.logger ? At.init(s(this.modules.logger), this.options) : At.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 = Im;
|
|
1149
1149
|
const f = new Nu(this.options);
|
|
1150
1150
|
this.store = new Iu(this.options.resources, this.options);
|
|
1151
1151
|
const m = this.services;
|
|
1152
|
-
m.logger = At, m.resourceStore = this.store, m.languageUtils = f, m.pluralResolver = new
|
|
1152
|
+
m.logger = At, m.resourceStore = this.store, m.languageUtils = f, m.pluralResolver = new Sm(f, {
|
|
1153
1153
|
prepend: this.options.pluralSeparator,
|
|
1154
1154
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
1155
|
-
}), p && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (m.formatter = s(p), m.formatter.init(m, this.options), this.options.interpolation.format = m.formatter.format.bind(m.formatter)), m.interpolator = new
|
|
1155
|
+
}), p && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (m.formatter = s(p), m.formatter.init(m, this.options), this.options.interpolation.format = m.formatter.format.bind(m.formatter)), m.interpolator = new Am(this.options), m.utils = {
|
|
1156
1156
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
1157
|
-
}, m.backendConnector = new
|
|
1157
|
+
}, m.backendConnector = new Nm(s(this.modules.backend), m.resourceStore, m, this.options), m.backendConnector.on("*", function(v) {
|
|
1158
1158
|
for (var h = arguments.length, _ = new Array(h > 1 ? h - 1 : 0), w = 1; w < h; w++)
|
|
1159
1159
|
_[w - 1] = arguments[w];
|
|
1160
1160
|
e.emit(v, ..._);
|
|
@@ -1385,7 +1385,7 @@ R.setDefaultNamespace;
|
|
|
1385
1385
|
R.hasLoadedNamespace;
|
|
1386
1386
|
R.loadNamespaces;
|
|
1387
1387
|
R.loadLanguages;
|
|
1388
|
-
var
|
|
1388
|
+
var rf = (t) => {
|
|
1389
1389
|
const n = {
|
|
1390
1390
|
...{
|
|
1391
1391
|
origin: "*",
|
|
@@ -1425,7 +1425,7 @@ const Pn = a.object({
|
|
|
1425
1425
|
start: a.number(),
|
|
1426
1426
|
limit: a.number(),
|
|
1427
1427
|
length: a.number()
|
|
1428
|
-
}),
|
|
1428
|
+
}), sf = a.object({
|
|
1429
1429
|
created_at: a.string(),
|
|
1430
1430
|
updated_at: a.string()
|
|
1431
1431
|
}), $m = a.object({
|
|
@@ -1469,16 +1469,16 @@ const Pn = a.object({
|
|
|
1469
1469
|
provider: a.string().default("email"),
|
|
1470
1470
|
connection: a.string().default("email"),
|
|
1471
1471
|
is_social: a.boolean().optional()
|
|
1472
|
-
}),
|
|
1472
|
+
}), of = a.object({
|
|
1473
1473
|
...ya.shape,
|
|
1474
|
-
...
|
|
1474
|
+
...sf.shape,
|
|
1475
1475
|
user_id: a.string(),
|
|
1476
1476
|
is_social: a.boolean(),
|
|
1477
1477
|
// TODO: this not might be correct if you use the username
|
|
1478
1478
|
email: a.string(),
|
|
1479
1479
|
login_count: a.number(),
|
|
1480
1480
|
identities: a.array(Om).optional()
|
|
1481
|
-
}), Bt =
|
|
1481
|
+
}), Bt = of, m5 = Zc.extend({
|
|
1482
1482
|
email: a.string(),
|
|
1483
1483
|
login_count: a.number(),
|
|
1484
1484
|
multifactor: a.array(a.string()).optional(),
|
|
@@ -1545,7 +1545,7 @@ const Pm = a.object({
|
|
|
1545
1545
|
...va.shape
|
|
1546
1546
|
});
|
|
1547
1547
|
var Yt = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(Yt || {}), bn = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(bn || {}), Yc = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(Yc || {});
|
|
1548
|
-
const
|
|
1548
|
+
const af = a.object({
|
|
1549
1549
|
client_id: a.string(),
|
|
1550
1550
|
act_as: a.string().optional(),
|
|
1551
1551
|
response_type: a.nativeEnum(Yt).optional(),
|
|
@@ -1670,7 +1670,7 @@ const Lm = a.enum([
|
|
|
1670
1670
|
}), _5 = a.object({
|
|
1671
1671
|
...Um.shape,
|
|
1672
1672
|
created_at: a.string()
|
|
1673
|
-
}),
|
|
1673
|
+
}), cf = a.object({
|
|
1674
1674
|
domain: a.string(),
|
|
1675
1675
|
custom_domain_id: a.string().optional(),
|
|
1676
1676
|
type: a.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -1689,7 +1689,7 @@ const Lm = a.enum([
|
|
|
1689
1689
|
record: a.string(),
|
|
1690
1690
|
domain: a.string()
|
|
1691
1691
|
}), pn = a.object({
|
|
1692
|
-
...
|
|
1692
|
+
...cf.shape,
|
|
1693
1693
|
custom_domain_id: a.string(),
|
|
1694
1694
|
primary: a.boolean(),
|
|
1695
1695
|
status: a.enum(["disabled", "pending", "pending_verification", "ready"]),
|
|
@@ -1712,9 +1712,9 @@ const Lm = a.enum([
|
|
|
1712
1712
|
synchronous: a.boolean().default(!1),
|
|
1713
1713
|
priority: a.number().optional()
|
|
1714
1714
|
}), Or = ka.extend({
|
|
1715
|
-
...
|
|
1715
|
+
...sf.shape,
|
|
1716
1716
|
hook_id: a.string()
|
|
1717
|
-
}),
|
|
1717
|
+
}), lf = a.object({
|
|
1718
1718
|
alg: a.enum([
|
|
1719
1719
|
"RS256",
|
|
1720
1720
|
"RS384",
|
|
@@ -1734,7 +1734,7 @@ const Lm = a.enum([
|
|
|
1734
1734
|
x5c: a.array(a.string()).optional(),
|
|
1735
1735
|
use: a.enum(["sig", "enc"]).optional()
|
|
1736
1736
|
}), qm = a.object({
|
|
1737
|
-
keys: a.array(
|
|
1737
|
+
keys: a.array(lf)
|
|
1738
1738
|
}), Ru = a.object({
|
|
1739
1739
|
issuer: a.string(),
|
|
1740
1740
|
authorization_endpoint: a.string(),
|
|
@@ -1759,7 +1759,7 @@ const Lm = a.enum([
|
|
|
1759
1759
|
}), Mm = a.object({
|
|
1760
1760
|
csrf_token: a.string(),
|
|
1761
1761
|
auth0Client: a.string().optional(),
|
|
1762
|
-
authParams:
|
|
1762
|
+
authParams: af,
|
|
1763
1763
|
expires_at: a.string(),
|
|
1764
1764
|
deleted_at: a.string().optional(),
|
|
1765
1765
|
ip: a.string().optional(),
|
|
@@ -1863,7 +1863,7 @@ const zm = a.enum([
|
|
|
1863
1863
|
...Fm.shape,
|
|
1864
1864
|
created_at: a.string(),
|
|
1865
1865
|
updated_at: a.string()
|
|
1866
|
-
}),
|
|
1866
|
+
}), uf = a.object({
|
|
1867
1867
|
initial_user_agent: a.string().describe("First user agent of the device from which this user logged in"),
|
|
1868
1868
|
initial_ip: a.string().describe("First IP address associated with this session"),
|
|
1869
1869
|
initial_asn: a.string().describe("First autonomous system number associated with this session"),
|
|
@@ -1877,7 +1877,7 @@ const zm = a.enum([
|
|
|
1877
1877
|
user_id: a.string().describe("The user ID associated with the session"),
|
|
1878
1878
|
expires_at: a.string().optional(),
|
|
1879
1879
|
idle_expires_at: a.string().optional(),
|
|
1880
|
-
device:
|
|
1880
|
+
device: uf.describe(
|
|
1881
1881
|
"Metadata related to the device used in the session"
|
|
1882
1882
|
),
|
|
1883
1883
|
clients: a.array(a.string()).describe("List of client details for the session")
|
|
@@ -2018,7 +2018,7 @@ const Wm = a.object({
|
|
|
2018
2018
|
})
|
|
2019
2019
|
]),
|
|
2020
2020
|
settings: a.object({}).optional()
|
|
2021
|
-
}),
|
|
2021
|
+
}), df = a.object({
|
|
2022
2022
|
// The actual refresh token value (primary key).
|
|
2023
2023
|
id: a.string(),
|
|
2024
2024
|
// Link to the session record
|
|
@@ -2031,7 +2031,7 @@ const Wm = a.object({
|
|
|
2031
2031
|
idle_expires_at: a.string().optional(),
|
|
2032
2032
|
// When the token was last used.
|
|
2033
2033
|
last_exchanged_at: a.string().optional(),
|
|
2034
|
-
device:
|
|
2034
|
+
device: uf,
|
|
2035
2035
|
resource_servers: a.array(
|
|
2036
2036
|
a.object({
|
|
2037
2037
|
audience: a.string(),
|
|
@@ -2043,7 +2043,7 @@ const Wm = a.object({
|
|
|
2043
2043
|
// When the refresh token record was created.
|
|
2044
2044
|
created_at: a.string(),
|
|
2045
2045
|
// Spread in the rest of the refresh token properties.
|
|
2046
|
-
...
|
|
2046
|
+
...df.shape
|
|
2047
2047
|
});
|
|
2048
2048
|
function x5(t) {
|
|
2049
2049
|
const [e, n] = t.split("|");
|
|
@@ -2130,7 +2130,7 @@ var C = class extends Error {
|
|
|
2130
2130
|
});
|
|
2131
2131
|
}
|
|
2132
2132
|
}, ts = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2133
|
-
function
|
|
2133
|
+
function pf(t) {
|
|
2134
2134
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
2135
2135
|
}
|
|
2136
2136
|
function e_(t) {
|
|
@@ -2155,7 +2155,7 @@ function e_(t) {
|
|
|
2155
2155
|
function t_(t) {
|
|
2156
2156
|
throw new Error('Could not dynamically require "' + t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
2157
2157
|
}
|
|
2158
|
-
var
|
|
2158
|
+
var ff = { exports: {} };
|
|
2159
2159
|
const n_ = {}, r_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2160
2160
|
__proto__: null,
|
|
2161
2161
|
default: n_
|
|
@@ -3695,9 +3695,9 @@ const n_ = {}, r_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3695
3695
|
}
|
|
3696
3696
|
return e.encodeBase64 = f, e.decodeBase64 = m, e;
|
|
3697
3697
|
});
|
|
3698
|
-
})(
|
|
3699
|
-
var s_ =
|
|
3700
|
-
const oi = /* @__PURE__ */
|
|
3698
|
+
})(ff);
|
|
3699
|
+
var s_ = ff.exports;
|
|
3700
|
+
const oi = /* @__PURE__ */ pf(s_), o_ = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
3701
3701
|
let a_ = (t) => crypto.getRandomValues(new Uint8Array(t)), c_ = (t, e, n) => {
|
|
3702
3702
|
let r = (2 << Math.log2(t.length - 1)) - 1, i = -~(1.6 * r * e / t.length);
|
|
3703
3703
|
return (s = e) => {
|
|
@@ -3817,7 +3817,7 @@ class p_ {
|
|
|
3817
3817
|
};
|
|
3818
3818
|
}
|
|
3819
3819
|
}
|
|
3820
|
-
async function
|
|
3820
|
+
async function hf(t) {
|
|
3821
3821
|
return await crypto.subtle.digest("SHA-256", t);
|
|
3822
3822
|
}
|
|
3823
3823
|
const Vu = "0123456789abcdef";
|
|
@@ -3832,7 +3832,7 @@ function Sa(t) {
|
|
|
3832
3832
|
}
|
|
3833
3833
|
return n;
|
|
3834
3834
|
}
|
|
3835
|
-
class
|
|
3835
|
+
class gf {
|
|
3836
3836
|
constructor(e, n) {
|
|
3837
3837
|
ne(this, "alphabet");
|
|
3838
3838
|
ne(this, "padding");
|
|
@@ -3903,9 +3903,9 @@ class hf {
|
|
|
3903
3903
|
return Uint8Array.from(s);
|
|
3904
3904
|
}
|
|
3905
3905
|
}
|
|
3906
|
-
new
|
|
3907
|
-
new
|
|
3908
|
-
class
|
|
3906
|
+
new gf("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567");
|
|
3907
|
+
new gf("0123456789ABCDEFGHIJKLMNOPQRSTUV");
|
|
3908
|
+
class mf {
|
|
3909
3909
|
constructor(e, n) {
|
|
3910
3910
|
ne(this, "alphabet");
|
|
3911
3911
|
ne(this, "padding");
|
|
@@ -3957,7 +3957,7 @@ class gf {
|
|
|
3957
3957
|
return Uint8Array.from(s);
|
|
3958
3958
|
}
|
|
3959
3959
|
}
|
|
3960
|
-
const f_ = new
|
|
3960
|
+
const f_ = new mf("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"), yn = new mf("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_");
|
|
3961
3961
|
async function qu(t, e, n, r) {
|
|
3962
3962
|
const i = {
|
|
3963
3963
|
alg: t,
|
|
@@ -4105,13 +4105,13 @@ function v_(t) {
|
|
|
4105
4105
|
async function w_(t, e) {
|
|
4106
4106
|
if (e === "plain")
|
|
4107
4107
|
return t;
|
|
4108
|
-
const n = new TextEncoder().encode(t), r = await
|
|
4108
|
+
const n = new TextEncoder().encode(t), r = await hf(n);
|
|
4109
4109
|
return yn.encode(new Uint8Array(r), {
|
|
4110
4110
|
includePadding: !1
|
|
4111
4111
|
});
|
|
4112
4112
|
}
|
|
4113
4113
|
const Oi = 60 * 5, Fs = 30 * 24 * 60 * 60, Jn = 24 * 60 * 60, b_ = "auth-token", Aa = 30 * 60 * 1e3, k_ = 7 * 24 * 60 * 60 * 1e3, x_ = 5 * 60, S_ = 5 * 60, A_ = 30 * 60 * 1e3, E_ = 30 * 60 * 1e3, I_ = 24 * 60 * 60 * 1e3;
|
|
4114
|
-
function
|
|
4114
|
+
function _f(t, e, n) {
|
|
4115
4115
|
const r = [];
|
|
4116
4116
|
return r.push([encodeURIComponent(t), encodeURIComponent(e)]), (n == null ? void 0 : n.domain) !== void 0 && r.push(["Domain", n.domain]), (n == null ? void 0 : n.expires) !== void 0 && r.push(["Expires", n.expires.toUTCString()]), n != null && n.httpOnly && r.push(["HttpOnly"]), (n == null ? void 0 : n.maxAge) !== void 0 && r.push(["Max-Age", n.maxAge.toString()]), (n == null ? void 0 : n.path) !== void 0 && r.push(["Path", n.path]), (n == null ? void 0 : n.sameSite) === "lax" && r.push(["SameSite", "Lax"]), (n == null ? void 0 : n.sameSite) === "none" && r.push(["SameSite", "None"]), (n == null ? void 0 : n.sameSite) === "strict" && r.push(["SameSite", "Strict"]), n != null && n.secure && r.push(["Secure"]), r.map((i) => i.join("=")).join("; ");
|
|
4117
4117
|
}
|
|
@@ -4126,7 +4126,7 @@ function C_(t) {
|
|
|
4126
4126
|
function tl(t) {
|
|
4127
4127
|
return `${t}-${b_}`;
|
|
4128
4128
|
}
|
|
4129
|
-
function
|
|
4129
|
+
function yf(t) {
|
|
4130
4130
|
if (!t)
|
|
4131
4131
|
return;
|
|
4132
4132
|
if (t === "localhost" || /^(\d{1,3}\.){3}\d{1,3}$/.test(t))
|
|
@@ -4138,23 +4138,23 @@ function ns(t, e) {
|
|
|
4138
4138
|
return e ? C_(e).get(tl(t)) : void 0;
|
|
4139
4139
|
}
|
|
4140
4140
|
function N_(t, e) {
|
|
4141
|
-
return
|
|
4141
|
+
return _f(tl(t), "", {
|
|
4142
4142
|
path: "/",
|
|
4143
4143
|
httpOnly: !0,
|
|
4144
4144
|
secure: !0,
|
|
4145
4145
|
maxAge: 0,
|
|
4146
4146
|
sameSite: "none",
|
|
4147
|
-
domain: e ?
|
|
4147
|
+
domain: e ? yf(e) : void 0
|
|
4148
4148
|
});
|
|
4149
4149
|
}
|
|
4150
|
-
function
|
|
4151
|
-
return
|
|
4150
|
+
function vf(t, e, n) {
|
|
4151
|
+
return _f(tl(t), e, {
|
|
4152
4152
|
path: "/",
|
|
4153
4153
|
httpOnly: !0,
|
|
4154
4154
|
secure: !0,
|
|
4155
4155
|
maxAge: Fs,
|
|
4156
4156
|
sameSite: "none",
|
|
4157
|
-
domain: n ?
|
|
4157
|
+
domain: n ? yf(n) : void 0
|
|
4158
4158
|
});
|
|
4159
4159
|
}
|
|
4160
4160
|
var nl = {}, Hs = {};
|
|
@@ -4420,7 +4420,7 @@ function Er(t) {
|
|
|
4420
4420
|
return t.startIndex + t[1].length;
|
|
4421
4421
|
}
|
|
4422
4422
|
var il = {};
|
|
4423
|
-
const
|
|
4423
|
+
const wf = {
|
|
4424
4424
|
preserveOrder: !1,
|
|
4425
4425
|
attributeNamePrefix: "@_",
|
|
4426
4426
|
attributesGroupName: !1,
|
|
@@ -4464,10 +4464,10 @@ const vf = {
|
|
|
4464
4464
|
}
|
|
4465
4465
|
// skipEmptyListItem: false
|
|
4466
4466
|
}, V_ = function(t) {
|
|
4467
|
-
return Object.assign({},
|
|
4467
|
+
return Object.assign({}, wf, t);
|
|
4468
4468
|
};
|
|
4469
4469
|
il.buildOptions = V_;
|
|
4470
|
-
il.defaultOptions =
|
|
4470
|
+
il.defaultOptions = wf;
|
|
4471
4471
|
class q_ {
|
|
4472
4472
|
constructor(e) {
|
|
4473
4473
|
this.tagname = e, this.child = [], this[":@"] = {};
|
|
@@ -4586,8 +4586,8 @@ function i0(t) {
|
|
|
4586
4586
|
return !0;
|
|
4587
4587
|
} : () => !1;
|
|
4588
4588
|
}
|
|
4589
|
-
var
|
|
4590
|
-
const
|
|
4589
|
+
var bf = i0;
|
|
4590
|
+
const kf = Hs, Ir = M_, s0 = Y_, o0 = r0, a0 = bf;
|
|
4591
4591
|
let c0 = class {
|
|
4592
4592
|
constructor(e) {
|
|
4593
4593
|
this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = {
|
|
@@ -4643,7 +4643,7 @@ function d0(t) {
|
|
|
4643
4643
|
const p0 = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
|
|
4644
4644
|
function f0(t, e, n) {
|
|
4645
4645
|
if (this.options.ignoreAttributes !== !0 && typeof t == "string") {
|
|
4646
|
-
const r =
|
|
4646
|
+
const r = kf.getAllMatches(t, p0), i = r.length, s = {};
|
|
4647
4647
|
for (let o = 0; o < i; o++) {
|
|
4648
4648
|
const c = this.resolveNameSpace(r[o][1]);
|
|
4649
4649
|
if (this.ignoreAttributesFn(c, e))
|
|
@@ -4867,13 +4867,13 @@ function Ia(t, e, n) {
|
|
|
4867
4867
|
const r = t.trim();
|
|
4868
4868
|
return r === "true" ? !0 : r === "false" ? !1 : o0(t, n);
|
|
4869
4869
|
} else
|
|
4870
|
-
return
|
|
4870
|
+
return kf.isExist(t) ? t : "";
|
|
4871
4871
|
}
|
|
4872
|
-
var b0 = c0,
|
|
4872
|
+
var b0 = c0, xf = {};
|
|
4873
4873
|
function k0(t, e) {
|
|
4874
|
-
return
|
|
4874
|
+
return Sf(t, e);
|
|
4875
4875
|
}
|
|
4876
|
-
function
|
|
4876
|
+
function Sf(t, e, n) {
|
|
4877
4877
|
let r;
|
|
4878
4878
|
const i = {};
|
|
4879
4879
|
for (let s = 0; s < t.length; s++) {
|
|
@@ -4885,7 +4885,7 @@ function xf(t, e, n) {
|
|
|
4885
4885
|
if (c === void 0)
|
|
4886
4886
|
continue;
|
|
4887
4887
|
if (o[c]) {
|
|
4888
|
-
let u =
|
|
4888
|
+
let u = Sf(o[c], e, l);
|
|
4889
4889
|
const p = A0(u, e);
|
|
4890
4890
|
o[":@"] ? S0(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 = ""), i[c] !== void 0 && i.hasOwnProperty(c) ? (Array.isArray(i[c]) || (i[c] = [i[c]]), i[c].push(u)) : e.isArray(c, l, p) ? i[c] = [u] : i[c] = u;
|
|
4891
4891
|
}
|
|
@@ -4913,8 +4913,8 @@ function A0(t, e) {
|
|
|
4913
4913
|
const { textNodeName: n } = e, r = Object.keys(t).length;
|
|
4914
4914
|
return !!(r === 0 || r === 1 && (t[n] || typeof t[n] == "boolean" || t[n] === 0));
|
|
4915
4915
|
}
|
|
4916
|
-
|
|
4917
|
-
const { buildOptions: E0 } = il, I0 = b0, { prettify: C0 } =
|
|
4916
|
+
xf.prettify = k0;
|
|
4917
|
+
const { buildOptions: E0 } = il, I0 = b0, { prettify: C0 } = xf, N0 = nl;
|
|
4918
4918
|
let j0 = class {
|
|
4919
4919
|
constructor(e) {
|
|
4920
4920
|
this.externalEntities = {}, this.options = E0(e);
|
|
@@ -4960,9 +4960,9 @@ const O0 = `
|
|
|
4960
4960
|
`;
|
|
4961
4961
|
function B0(t, e) {
|
|
4962
4962
|
let n = "";
|
|
4963
|
-
return e.format && e.indentBy.length > 0 && (n = O0),
|
|
4963
|
+
return e.format && e.indentBy.length > 0 && (n = O0), Af(t, e, "", n);
|
|
4964
4964
|
}
|
|
4965
|
-
function
|
|
4965
|
+
function Af(t, e, n, r) {
|
|
4966
4966
|
let i = "", s = !1;
|
|
4967
4967
|
for (let o = 0; o < t.length; o++) {
|
|
4968
4968
|
const c = t[o], l = T0(c);
|
|
@@ -4970,7 +4970,7 @@ function Sf(t, e, n, r) {
|
|
|
4970
4970
|
let u = "";
|
|
4971
4971
|
if (n.length === 0 ? u = l : u = `${n}.${l}`, l === e.textNodeName) {
|
|
4972
4972
|
let h = c[l];
|
|
4973
|
-
P0(u, e) || (h = e.tagValueProcessor(l, h), h =
|
|
4973
|
+
P0(u, e) || (h = e.tagValueProcessor(l, h), h = Ef(h, e)), s && (i += r), i += h, s = !1;
|
|
4974
4974
|
continue;
|
|
4975
4975
|
} else if (l === e.cdataPropName) {
|
|
4976
4976
|
s && (i += r), i += `<![CDATA[${c[l][0][e.textNodeName]}]]>`, s = !1;
|
|
@@ -4986,7 +4986,7 @@ function Sf(t, e, n, r) {
|
|
|
4986
4986
|
}
|
|
4987
4987
|
let p = r;
|
|
4988
4988
|
p !== "" && (p += e.indentBy);
|
|
4989
|
-
const f = Hu(c[":@"], e), m = r + `<${l}${f}`, v =
|
|
4989
|
+
const f = Hu(c[":@"], e), m = r + `<${l}${f}`, v = Af(c[l], e, u, p);
|
|
4990
4990
|
e.unpairedTags.indexOf(l) !== -1 ? e.suppressUnpairedNode ? i += m + ">" : i += m + "/>" : (!v || v.length === 0) && e.suppressEmptyNode ? i += m + "/>" : v && v.endsWith(">") ? i += m + `>${v}${r}</${l}>` : (i += m + ">", v && r !== "" && (v.includes("/>") || v.includes("</")) ? i += r + e.indentBy + v + r : i += v, i += `</${l}>`), s = !0;
|
|
4991
4991
|
}
|
|
4992
4992
|
return i;
|
|
@@ -5005,7 +5005,7 @@ function Hu(t, e) {
|
|
|
5005
5005
|
for (let r in t) {
|
|
5006
5006
|
if (!t.hasOwnProperty(r)) continue;
|
|
5007
5007
|
let i = e.attributeValueProcessor(r, t[r]);
|
|
5008
|
-
i =
|
|
5008
|
+
i = Ef(i, e), i === !0 && e.suppressBooleanAttributes ? n += ` ${r.substr(e.attributeNamePrefix.length)}` : n += ` ${r.substr(e.attributeNamePrefix.length)}="${i}"`;
|
|
5009
5009
|
}
|
|
5010
5010
|
return n;
|
|
5011
5011
|
}
|
|
@@ -5016,7 +5016,7 @@ function P0(t, e) {
|
|
|
5016
5016
|
if (e.stopNodes[r] === t || e.stopNodes[r] === "*." + n) return !0;
|
|
5017
5017
|
return !1;
|
|
5018
5018
|
}
|
|
5019
|
-
function
|
|
5019
|
+
function Ef(t, e) {
|
|
5020
5020
|
if (t && t.length > 0 && e.processEntities)
|
|
5021
5021
|
for (let n = 0; n < e.entities.length; n++) {
|
|
5022
5022
|
const r = e.entities[n];
|
|
@@ -5025,7 +5025,7 @@ function Af(t, e) {
|
|
|
5025
5025
|
return t;
|
|
5026
5026
|
}
|
|
5027
5027
|
var R0 = B0;
|
|
5028
|
-
const L0 = R0, U0 =
|
|
5028
|
+
const L0 = R0, U0 = bf, V0 = {
|
|
5029
5029
|
attributeNamePrefix: "@_",
|
|
5030
5030
|
attributesGroupName: !1,
|
|
5031
5031
|
textNodeName: "#text",
|
|
@@ -5549,14 +5549,14 @@ async function Ks(t, e) {
|
|
|
5549
5549
|
aud: n.audience || "default",
|
|
5550
5550
|
scope: n.scope || "",
|
|
5551
5551
|
sub: (r == null ? void 0 : r.user_id) || n.client_id,
|
|
5552
|
-
iss: t.env.ISSUER,
|
|
5552
|
+
iss: t.var.custom_domain ? `https://${t.var.custom_domain}` : t.env.ISSUER,
|
|
5553
5553
|
tenant_id: t.var.tenant_id,
|
|
5554
5554
|
sid: s
|
|
5555
5555
|
}, f = r && ((_ = n.scope) != null && _.split(" ").includes("openid")) ? {
|
|
5556
5556
|
// The audience for an id token is the client id
|
|
5557
5557
|
aud: n.client_id,
|
|
5558
5558
|
sub: r.user_id,
|
|
5559
|
-
iss: t.env.ISSUER,
|
|
5559
|
+
iss: t.var.custom_domain ? `https://${t.var.custom_domain}` : t.env.ISSUER,
|
|
5560
5560
|
sid: s,
|
|
5561
5561
|
nonce: n.nonce,
|
|
5562
5562
|
given_name: r.given_name,
|
|
@@ -5625,7 +5625,7 @@ async function Ks(t, e) {
|
|
|
5625
5625
|
expires_in: 86400
|
|
5626
5626
|
};
|
|
5627
5627
|
}
|
|
5628
|
-
async function
|
|
5628
|
+
async function If(t, e) {
|
|
5629
5629
|
return e.loginSession || (e.loginSession = await t.env.data.loginSessions.create(
|
|
5630
5630
|
e.client.tenant.id,
|
|
5631
5631
|
{
|
|
@@ -5687,7 +5687,7 @@ async function ey(t, e) {
|
|
|
5687
5687
|
}
|
|
5688
5688
|
);
|
|
5689
5689
|
}
|
|
5690
|
-
async function
|
|
5690
|
+
async function Cf(t, { user: e, client: n, loginSession: r }) {
|
|
5691
5691
|
const i = await t.env.data.sessions.create(n.tenant.id, {
|
|
5692
5692
|
id: Ae(),
|
|
5693
5693
|
user_id: e.user_id,
|
|
@@ -5760,7 +5760,7 @@ async function sn(t, e) {
|
|
|
5760
5760
|
i.tenant.id,
|
|
5761
5761
|
r
|
|
5762
5762
|
);
|
|
5763
|
-
const h = await
|
|
5763
|
+
const h = await Cf(t, {
|
|
5764
5764
|
user: r,
|
|
5765
5765
|
client: i,
|
|
5766
5766
|
loginSession: e.loginSession
|
|
@@ -5782,7 +5782,7 @@ async function sn(t, e) {
|
|
|
5782
5782
|
session_id: l,
|
|
5783
5783
|
refresh_token: c
|
|
5784
5784
|
}), f = new Headers({
|
|
5785
|
-
"set-cookie":
|
|
5785
|
+
"set-cookie": vf(
|
|
5786
5786
|
i.tenant.id,
|
|
5787
5787
|
l,
|
|
5788
5788
|
t.req.header("host")
|
|
@@ -5793,7 +5793,7 @@ async function sn(t, e) {
|
|
|
5793
5793
|
headers: f
|
|
5794
5794
|
});
|
|
5795
5795
|
if ((n.response_type || Yt.CODE) === Yt.CODE) {
|
|
5796
|
-
const h = await
|
|
5796
|
+
const h = await If(t, e);
|
|
5797
5797
|
if (!n.redirect_uri)
|
|
5798
5798
|
throw new C(400, {
|
|
5799
5799
|
message: "Redirect uri not found"
|
|
@@ -5961,7 +5961,7 @@ function Ws(t, e) {
|
|
|
5961
5961
|
users: { ...e.users, create: sy(t, e) }
|
|
5962
5962
|
};
|
|
5963
5963
|
}
|
|
5964
|
-
function
|
|
5964
|
+
function Nf(t) {
|
|
5965
5965
|
return Ws(t, t.env.data);
|
|
5966
5966
|
}
|
|
5967
5967
|
async function ol(t, e, n) {
|
|
@@ -6059,7 +6059,7 @@ async function Js(t, e) {
|
|
|
6059
6059
|
last_login: (/* @__PURE__ */ new Date()).toISOString(),
|
|
6060
6060
|
profileData: JSON.stringify(l)
|
|
6061
6061
|
};
|
|
6062
|
-
p = await
|
|
6062
|
+
p = await Nf(t).users.create(s.tenant.id, f), t.set("user_id", p.user_id);
|
|
6063
6063
|
}
|
|
6064
6064
|
return p;
|
|
6065
6065
|
}
|
|
@@ -6611,7 +6611,7 @@ var Gu;
|
|
|
6611
6611
|
} : function(A, I) {
|
|
6612
6612
|
return A[I];
|
|
6613
6613
|
}
|
|
6614
|
-
}, f = Object.getPrototypeOf(Function), m = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map :
|
|
6614
|
+
}, f = Object.getPrototypeOf(Function), m = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : om(), v = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : am(), h = typeof WeakMap == "function" ? WeakMap : cm(), _ = i ? Symbol.for("@reflect-metadata:registry") : void 0, w = rm(), S = im(w);
|
|
6615
6615
|
function j(A, I, B, M) {
|
|
6616
6616
|
if (H(B)) {
|
|
6617
6617
|
if (!gu(A))
|
|
@@ -6634,7 +6634,7 @@ var Gu;
|
|
|
6634
6634
|
function B(M, te) {
|
|
6635
6635
|
if (!me(M))
|
|
6636
6636
|
throw new TypeError();
|
|
6637
|
-
if (!H(te) && !
|
|
6637
|
+
if (!H(te) && !tm(te))
|
|
6638
6638
|
throw new TypeError();
|
|
6639
6639
|
Q(A, I, M, te);
|
|
6640
6640
|
}
|
|
@@ -6845,9 +6845,9 @@ var Gu;
|
|
|
6845
6845
|
throw new TypeError();
|
|
6846
6846
|
return te;
|
|
6847
6847
|
}
|
|
6848
|
-
return
|
|
6848
|
+
return Qg(A);
|
|
6849
6849
|
}
|
|
6850
|
-
function
|
|
6850
|
+
function Qg(A, I) {
|
|
6851
6851
|
var B, M;
|
|
6852
6852
|
{
|
|
6853
6853
|
var te = A.toString;
|
|
@@ -6868,12 +6868,12 @@ var Gu;
|
|
|
6868
6868
|
function hu(A) {
|
|
6869
6869
|
return !!A;
|
|
6870
6870
|
}
|
|
6871
|
-
function
|
|
6871
|
+
function em(A) {
|
|
6872
6872
|
return "" + A;
|
|
6873
6873
|
}
|
|
6874
6874
|
function kt(A) {
|
|
6875
6875
|
var I = Ee(A);
|
|
6876
|
-
return dn(I) ? I :
|
|
6876
|
+
return dn(I) ? I : em(I);
|
|
6877
6877
|
}
|
|
6878
6878
|
function gu(A) {
|
|
6879
6879
|
return Array.isArray ? Array.isArray(A) : A instanceof Object ? A instanceof Array : Object.prototype.toString.call(A) === "[object Array]";
|
|
@@ -6884,7 +6884,7 @@ var Gu;
|
|
|
6884
6884
|
function mu(A) {
|
|
6885
6885
|
return typeof A == "function";
|
|
6886
6886
|
}
|
|
6887
|
-
function
|
|
6887
|
+
function tm(A) {
|
|
6888
6888
|
switch (fe(A)) {
|
|
6889
6889
|
case 3:
|
|
6890
6890
|
return !0;
|
|
@@ -6935,9 +6935,9 @@ var Gu;
|
|
|
6935
6935
|
var te = M.constructor;
|
|
6936
6936
|
return typeof te != "function" || te === A ? I : te;
|
|
6937
6937
|
}
|
|
6938
|
-
function
|
|
6938
|
+
function nm() {
|
|
6939
6939
|
var A;
|
|
6940
|
-
!H(_) && typeof n.Reflect < "u" && !(_ in n.Reflect) && typeof n.Reflect.defineMetadata == "function" && (A =
|
|
6940
|
+
!H(_) && typeof n.Reflect < "u" && !(_ in n.Reflect) && typeof n.Reflect.defineMetadata == "function" && (A = sm(n.Reflect));
|
|
6941
6941
|
var I, B, M, te = new h(), Oe = {
|
|
6942
6942
|
registerProvider: Ce,
|
|
6943
6943
|
getProvider: F,
|
|
@@ -7008,16 +7008,16 @@ var Gu;
|
|
|
7008
7008
|
return !0;
|
|
7009
7009
|
}
|
|
7010
7010
|
}
|
|
7011
|
-
function
|
|
7011
|
+
function rm() {
|
|
7012
7012
|
var A;
|
|
7013
|
-
return !H(_) && me(n.Reflect) && Object.isExtensible(n.Reflect) && (A = n.Reflect[_]), H(A) && (A =
|
|
7013
|
+
return !H(_) && me(n.Reflect) && Object.isExtensible(n.Reflect) && (A = n.Reflect[_]), H(A) && (A = nm()), !H(_) && me(n.Reflect) && Object.isExtensible(n.Reflect) && Object.defineProperty(n.Reflect, _, {
|
|
7014
7014
|
enumerable: !1,
|
|
7015
7015
|
configurable: !1,
|
|
7016
7016
|
writable: !1,
|
|
7017
7017
|
value: A
|
|
7018
7018
|
}), A;
|
|
7019
7019
|
}
|
|
7020
|
-
function
|
|
7020
|
+
function im(A) {
|
|
7021
7021
|
var I = new h(), B = {
|
|
7022
7022
|
isProviderFor: function(G, Y) {
|
|
7023
7023
|
var X = I.get(G);
|
|
@@ -7087,14 +7087,14 @@ var Gu;
|
|
|
7087
7087
|
var ku = wu(ke);
|
|
7088
7088
|
if (!ku)
|
|
7089
7089
|
return X.length = pt, X;
|
|
7090
|
-
var
|
|
7090
|
+
var lm = vu(ku);
|
|
7091
7091
|
try {
|
|
7092
|
-
X[pt] =
|
|
7093
|
-
} catch (
|
|
7092
|
+
X[pt] = lm;
|
|
7093
|
+
} catch (um) {
|
|
7094
7094
|
try {
|
|
7095
7095
|
bu(ke);
|
|
7096
7096
|
} finally {
|
|
7097
|
-
throw
|
|
7097
|
+
throw um;
|
|
7098
7098
|
}
|
|
7099
7099
|
}
|
|
7100
7100
|
pt++;
|
|
@@ -7116,7 +7116,7 @@ var Gu;
|
|
|
7116
7116
|
return !0;
|
|
7117
7117
|
}
|
|
7118
7118
|
}
|
|
7119
|
-
function
|
|
7119
|
+
function sm(A) {
|
|
7120
7120
|
var I = A.defineMetadata, B = A.hasOwnMetadata, M = A.getOwnMetadata, te = A.getOwnMetadataKeys, Oe = A.deleteMetadata, Ce = new h(), ce = {
|
|
7121
7121
|
isProviderFor: function(F, G) {
|
|
7122
7122
|
var Y = Ce.get(F);
|
|
@@ -7140,7 +7140,7 @@ var Gu;
|
|
|
7140
7140
|
throw new Error("Illegal state.");
|
|
7141
7141
|
}
|
|
7142
7142
|
}
|
|
7143
|
-
function
|
|
7143
|
+
function om() {
|
|
7144
7144
|
var A = {}, I = [], B = (
|
|
7145
7145
|
/** @class */
|
|
7146
7146
|
function() {
|
|
@@ -7244,7 +7244,7 @@ var Gu;
|
|
|
7244
7244
|
return [ce, F];
|
|
7245
7245
|
}
|
|
7246
7246
|
}
|
|
7247
|
-
function
|
|
7247
|
+
function am() {
|
|
7248
7248
|
var A = (
|
|
7249
7249
|
/** @class */
|
|
7250
7250
|
function() {
|
|
@@ -7280,7 +7280,7 @@ var Gu;
|
|
|
7280
7280
|
);
|
|
7281
7281
|
return A;
|
|
7282
7282
|
}
|
|
7283
|
-
function
|
|
7283
|
+
function cm() {
|
|
7284
7284
|
var A = 16, I = p.create(), B = M();
|
|
7285
7285
|
return (
|
|
7286
7286
|
/** @class */
|
|
@@ -7647,7 +7647,7 @@ function fy(...t) {
|
|
|
7647
7647
|
n[r++] = s;
|
|
7648
7648
|
}), n.buffer;
|
|
7649
7649
|
}
|
|
7650
|
-
function
|
|
7650
|
+
function jf(t, e) {
|
|
7651
7651
|
if (!(t && e) || t.byteLength !== e.byteLength)
|
|
7652
7652
|
return !1;
|
|
7653
7653
|
const n = new Uint8Array(t), r = new Uint8Array(e);
|
|
@@ -7700,7 +7700,7 @@ function Ca(...t) {
|
|
|
7700
7700
|
i.set(s, n), n += s.length;
|
|
7701
7701
|
return i;
|
|
7702
7702
|
}
|
|
7703
|
-
function
|
|
7703
|
+
function $f() {
|
|
7704
7704
|
const t = new Uint8Array(this.valueHex);
|
|
7705
7705
|
if (this.valueHex.byteLength >= 2) {
|
|
7706
7706
|
const c = t[0] === 255 && t[1] & 128, l = t[0] === 0 && (t[1] & 128) === 0;
|
|
@@ -7820,7 +7820,7 @@ class Zs {
|
|
|
7820
7820
|
return al(this.items);
|
|
7821
7821
|
}
|
|
7822
7822
|
}
|
|
7823
|
-
const Cr = [new Uint8Array([1])], Zu = "0123456789", Zo = "name", Yu = "valueHexView", my = "isHexOnly", _y = "idBlock", yy = "tagClass", vy = "tagNumber", wy = "isConstructed", by = "fromBER", ky = "toBER", xy = "local", We = "", wt = new ArrayBuffer(0), Ys = new Uint8Array(0), Dr = "EndOfContent",
|
|
7823
|
+
const Cr = [new Uint8Array([1])], Zu = "0123456789", Zo = "name", Yu = "valueHexView", my = "isHexOnly", _y = "idBlock", yy = "tagClass", vy = "tagNumber", wy = "isConstructed", by = "fromBER", ky = "toBER", xy = "local", We = "", wt = new ArrayBuffer(0), Ys = new Uint8Array(0), Dr = "EndOfContent", Of = "OCTET STRING", Bf = "BIT STRING";
|
|
7824
7824
|
function jt(t) {
|
|
7825
7825
|
var e;
|
|
7826
7826
|
return e = class extends t {
|
|
@@ -7888,7 +7888,7 @@ class Fe extends Rn {
|
|
|
7888
7888
|
}
|
|
7889
7889
|
}
|
|
7890
7890
|
Fe.NAME = "valueBlock";
|
|
7891
|
-
class
|
|
7891
|
+
class Tf extends jt(Rn) {
|
|
7892
7892
|
constructor({ idBlock: e = {} } = {}) {
|
|
7893
7893
|
var n, r, i, s;
|
|
7894
7894
|
super(), e ? (this.isHexOnly = (n = e.isHexOnly) !== null && n !== void 0 ? n : !1, this.valueHexView = e.valueHex ? D.toUint8Array(e.valueHex) : Ys, this.tagClass = (r = e.tagClass) !== null && r !== void 0 ? r : -1, this.tagNumber = (i = e.tagNumber) !== null && i !== void 0 ? i : -1, this.isConstructed = (s = e.isConstructed) !== null && s !== void 0 ? s : !1) : (this.tagClass = -1, this.tagNumber = -1, this.isConstructed = !1);
|
|
@@ -8011,8 +8011,8 @@ class Bf extends jt(Rn) {
|
|
|
8011
8011
|
};
|
|
8012
8012
|
}
|
|
8013
8013
|
}
|
|
8014
|
-
|
|
8015
|
-
class
|
|
8014
|
+
Tf.NAME = "identificationBlock";
|
|
8015
|
+
class Pf extends Rn {
|
|
8016
8016
|
constructor({ lenBlock: e = {} } = {}) {
|
|
8017
8017
|
var n, r, i;
|
|
8018
8018
|
super(), this.isIndefiniteForm = (n = e.isIndefiniteForm) !== null && n !== void 0 ? n : !1, this.longFormUsed = (r = e.longFormUsed) !== null && r !== void 0 ? r : !1, this.length = (i = e.length) !== null && i !== void 0 ? i : 0;
|
|
@@ -8065,11 +8065,11 @@ class Tf extends Rn {
|
|
|
8065
8065
|
};
|
|
8066
8066
|
}
|
|
8067
8067
|
}
|
|
8068
|
-
|
|
8068
|
+
Pf.NAME = "lengthBlock";
|
|
8069
8069
|
const W = {};
|
|
8070
8070
|
class Re extends Rn {
|
|
8071
8071
|
constructor({ name: e = We, optional: n = !1, primitiveSchema: r, ...i } = {}, s) {
|
|
8072
|
-
super(i), this.name = e, this.optional = n, r && (this.primitiveSchema = r), this.idBlock = new
|
|
8072
|
+
super(i), this.name = e, this.optional = n, r && (this.primitiveSchema = r), this.idBlock = new Tf(i), this.lenBlock = new Pf(i), this.valueBlock = s ? new s(i) : new Fe(i);
|
|
8073
8073
|
}
|
|
8074
8074
|
fromBER(e, n, r) {
|
|
8075
8075
|
const i = this.valueBlock.fromBER(e, n, this.lenBlock.isIndefiniteForm ? r : this.lenBlock.length);
|
|
@@ -8077,7 +8077,7 @@ class Re extends Rn {
|
|
|
8077
8077
|
}
|
|
8078
8078
|
toBER(e, n) {
|
|
8079
8079
|
const r = n || new Zs();
|
|
8080
|
-
n ||
|
|
8080
|
+
n || Rf(this);
|
|
8081
8081
|
const i = this.idBlock.toBER(e);
|
|
8082
8082
|
if (r.write(i), this.lenBlock.isIndefiniteForm)
|
|
8083
8083
|
r.write(new Uint8Array([128]).buffer), this.valueBlock.toBER(e, r), r.write(new ArrayBuffer(2));
|
|
@@ -8116,10 +8116,10 @@ class Re extends Rn {
|
|
|
8116
8116
|
}
|
|
8117
8117
|
}
|
|
8118
8118
|
Re.NAME = "BaseBlock";
|
|
8119
|
-
function
|
|
8119
|
+
function Rf(t) {
|
|
8120
8120
|
if (t instanceof W.Constructed)
|
|
8121
8121
|
for (const e of t.valueBlock.value)
|
|
8122
|
-
|
|
8122
|
+
Rf(e) && (t.lenBlock.isIndefiniteForm = !0);
|
|
8123
8123
|
return !!t.lenBlock.isIndefiniteForm;
|
|
8124
8124
|
}
|
|
8125
8125
|
class cl extends Re {
|
|
@@ -8141,20 +8141,20 @@ class cl extends Re {
|
|
|
8141
8141
|
}
|
|
8142
8142
|
}
|
|
8143
8143
|
cl.NAME = "BaseStringBlock";
|
|
8144
|
-
class
|
|
8144
|
+
class Lf extends jt(Fe) {
|
|
8145
8145
|
constructor({ isHexOnly: e = !0, ...n } = {}) {
|
|
8146
8146
|
super(n), this.isHexOnly = e;
|
|
8147
8147
|
}
|
|
8148
8148
|
}
|
|
8149
|
-
|
|
8150
|
-
var
|
|
8149
|
+
Lf.NAME = "PrimitiveValueBlock";
|
|
8150
|
+
var Uf;
|
|
8151
8151
|
class ai extends Re {
|
|
8152
8152
|
constructor(e = {}) {
|
|
8153
|
-
super(e,
|
|
8153
|
+
super(e, Lf), this.idBlock.isConstructed = !1;
|
|
8154
8154
|
}
|
|
8155
8155
|
}
|
|
8156
|
-
|
|
8157
|
-
W.Primitive =
|
|
8156
|
+
Uf = ai;
|
|
8157
|
+
W.Primitive = Uf;
|
|
8158
8158
|
ai.NAME = "PRIMITIVE";
|
|
8159
8159
|
function Sy(t, e) {
|
|
8160
8160
|
if (t instanceof e)
|
|
@@ -8369,7 +8369,7 @@ class Gt extends Fe {
|
|
|
8369
8369
|
}
|
|
8370
8370
|
}
|
|
8371
8371
|
Gt.NAME = "ConstructedValueBlock";
|
|
8372
|
-
var
|
|
8372
|
+
var Vf;
|
|
8373
8373
|
class Ge extends Re {
|
|
8374
8374
|
constructor(e = {}) {
|
|
8375
8375
|
super(e, Gt), this.idBlock.isConstructed = !0;
|
|
@@ -8391,10 +8391,10 @@ ${e.join(`
|
|
|
8391
8391
|
`)}` : `${n} :`;
|
|
8392
8392
|
}
|
|
8393
8393
|
}
|
|
8394
|
-
|
|
8395
|
-
W.Constructed =
|
|
8394
|
+
Vf = Ge;
|
|
8395
|
+
W.Constructed = Vf;
|
|
8396
8396
|
Ge.NAME = "CONSTRUCTED";
|
|
8397
|
-
class
|
|
8397
|
+
class qf extends Fe {
|
|
8398
8398
|
fromBER(e, n, r) {
|
|
8399
8399
|
return n;
|
|
8400
8400
|
}
|
|
@@ -8402,17 +8402,17 @@ class Vf extends Fe {
|
|
|
8402
8402
|
return wt;
|
|
8403
8403
|
}
|
|
8404
8404
|
}
|
|
8405
|
-
|
|
8406
|
-
var
|
|
8405
|
+
qf.override = "EndOfContentValueBlock";
|
|
8406
|
+
var Mf;
|
|
8407
8407
|
class ll extends Re {
|
|
8408
8408
|
constructor(e = {}) {
|
|
8409
|
-
super(e,
|
|
8409
|
+
super(e, qf), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 0;
|
|
8410
8410
|
}
|
|
8411
8411
|
}
|
|
8412
|
-
|
|
8413
|
-
W.EndOfContent =
|
|
8412
|
+
Mf = ll;
|
|
8413
|
+
W.EndOfContent = Mf;
|
|
8414
8414
|
ll.NAME = Dr;
|
|
8415
|
-
var
|
|
8415
|
+
var zf;
|
|
8416
8416
|
class xn extends Re {
|
|
8417
8417
|
constructor(e = {}) {
|
|
8418
8418
|
super(e, Fe), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 5;
|
|
@@ -8432,10 +8432,10 @@ class xn extends Re {
|
|
|
8432
8432
|
return `${this.constructor.NAME}`;
|
|
8433
8433
|
}
|
|
8434
8434
|
}
|
|
8435
|
-
|
|
8436
|
-
W.Null =
|
|
8435
|
+
zf = xn;
|
|
8436
|
+
W.Null = zf;
|
|
8437
8437
|
xn.NAME = "NULL";
|
|
8438
|
-
class
|
|
8438
|
+
class Df extends jt(Fe) {
|
|
8439
8439
|
constructor({ value: e, ...n } = {}) {
|
|
8440
8440
|
super(n), n.valueHex ? this.valueHexView = D.toUint8Array(n.valueHex) : this.valueHexView = new Uint8Array(1), e && (this.value = e);
|
|
8441
8441
|
}
|
|
@@ -8450,7 +8450,7 @@ class zf extends jt(Fe) {
|
|
|
8450
8450
|
}
|
|
8451
8451
|
fromBER(e, n, r) {
|
|
8452
8452
|
const i = D.toUint8Array(e);
|
|
8453
|
-
return Dt(this, i, n, r) ? (this.valueHexView = i.subarray(n, n + r), r > 1 && this.warnings.push("Boolean value encoded in more then 1 octet"), this.isHexOnly = !0,
|
|
8453
|
+
return Dt(this, i, n, r) ? (this.valueHexView = i.subarray(n, n + r), r > 1 && this.warnings.push("Boolean value encoded in more then 1 octet"), this.isHexOnly = !0, $f.call(this), this.blockLength = r, n + r) : -1;
|
|
8454
8454
|
}
|
|
8455
8455
|
toBER() {
|
|
8456
8456
|
return this.valueHexView.slice();
|
|
@@ -8462,11 +8462,11 @@ class zf extends jt(Fe) {
|
|
|
8462
8462
|
};
|
|
8463
8463
|
}
|
|
8464
8464
|
}
|
|
8465
|
-
|
|
8466
|
-
var
|
|
8465
|
+
Df.NAME = "BooleanValueBlock";
|
|
8466
|
+
var Ff;
|
|
8467
8467
|
class Xs extends Re {
|
|
8468
8468
|
constructor(e = {}) {
|
|
8469
|
-
super(e,
|
|
8469
|
+
super(e, Df), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 1;
|
|
8470
8470
|
}
|
|
8471
8471
|
getValue() {
|
|
8472
8472
|
return this.valueBlock.value;
|
|
@@ -8478,10 +8478,10 @@ class Xs extends Re {
|
|
|
8478
8478
|
return `${this.constructor.NAME} : ${this.getValue}`;
|
|
8479
8479
|
}
|
|
8480
8480
|
}
|
|
8481
|
-
|
|
8482
|
-
W.Boolean =
|
|
8481
|
+
Ff = Xs;
|
|
8482
|
+
W.Boolean = Ff;
|
|
8483
8483
|
Xs.NAME = "BOOLEAN";
|
|
8484
|
-
class
|
|
8484
|
+
class Hf extends jt(Gt) {
|
|
8485
8485
|
constructor({ isConstructed: e = !1, ...n } = {}) {
|
|
8486
8486
|
super(n), this.isConstructed = e;
|
|
8487
8487
|
}
|
|
@@ -8497,7 +8497,7 @@ class Ff extends jt(Gt) {
|
|
|
8497
8497
|
break;
|
|
8498
8498
|
return this.error = "EndOfContent is unexpected, OCTET STRING may consists of OCTET STRINGs only", -1;
|
|
8499
8499
|
}
|
|
8500
|
-
if (o !==
|
|
8500
|
+
if (o !== Of)
|
|
8501
8501
|
return this.error = "OCTET STRING may consists of OCTET STRINGs only", -1;
|
|
8502
8502
|
}
|
|
8503
8503
|
} else
|
|
@@ -8514,9 +8514,9 @@ class Ff extends jt(Gt) {
|
|
|
8514
8514
|
};
|
|
8515
8515
|
}
|
|
8516
8516
|
}
|
|
8517
|
-
|
|
8518
|
-
var
|
|
8519
|
-
let vn = class
|
|
8517
|
+
Hf.NAME = "OctetStringValueBlock";
|
|
8518
|
+
var Kf;
|
|
8519
|
+
let vn = class Wf extends Re {
|
|
8520
8520
|
constructor({ idBlock: e = {}, lenBlock: n = {}, ...r } = {}) {
|
|
8521
8521
|
var i, s;
|
|
8522
8522
|
(i = r.isConstructed) !== null && i !== void 0 || (r.isConstructed = !!(!((s = r.value) === null || s === void 0) && s.length)), super({
|
|
@@ -8529,7 +8529,7 @@ let vn = class Kf extends Re {
|
|
|
8529
8529
|
isIndefiniteForm: !!r.isIndefiniteForm
|
|
8530
8530
|
},
|
|
8531
8531
|
...r
|
|
8532
|
-
},
|
|
8532
|
+
}, Hf), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 4;
|
|
8533
8533
|
}
|
|
8534
8534
|
fromBER(e, n, r) {
|
|
8535
8535
|
if (this.valueBlock.isConstructed = this.idBlock.isConstructed, this.valueBlock.isIndefiniteForm = this.lenBlock.isIndefiniteForm, r === 0)
|
|
@@ -8554,14 +8554,14 @@ let vn = class Kf extends Re {
|
|
|
8554
8554
|
return this.valueBlock.valueHexView.slice().buffer;
|
|
8555
8555
|
const e = [];
|
|
8556
8556
|
for (const n of this.valueBlock.value)
|
|
8557
|
-
n instanceof
|
|
8557
|
+
n instanceof Wf && e.push(n.valueBlock.valueHexView);
|
|
8558
8558
|
return D.concat(e);
|
|
8559
8559
|
}
|
|
8560
8560
|
};
|
|
8561
|
-
|
|
8562
|
-
W.OctetString =
|
|
8563
|
-
vn.NAME =
|
|
8564
|
-
class
|
|
8561
|
+
Kf = vn;
|
|
8562
|
+
W.OctetString = Kf;
|
|
8563
|
+
vn.NAME = Of;
|
|
8564
|
+
class Gf extends jt(Gt) {
|
|
8565
8565
|
constructor({ unusedBits: e = 0, isConstructed: n = !1, ...r } = {}) {
|
|
8566
8566
|
super(r), this.unusedBits = e, this.isConstructed = n, this.blockLength = this.valueHexView.byteLength;
|
|
8567
8567
|
}
|
|
@@ -8579,7 +8579,7 @@ class Wf extends jt(Gt) {
|
|
|
8579
8579
|
break;
|
|
8580
8580
|
return this.error = "EndOfContent is unexpected, BIT STRING may consists of BIT STRINGs only", -1;
|
|
8581
8581
|
}
|
|
8582
|
-
if (l !==
|
|
8582
|
+
if (l !== Bf)
|
|
8583
8583
|
return this.error = "BIT STRING may consists of BIT STRINGs only", -1;
|
|
8584
8584
|
const u = c.valueBlock;
|
|
8585
8585
|
if (this.unusedBits > 0 && u.unusedBits > 0)
|
|
@@ -8624,8 +8624,8 @@ class Wf extends jt(Gt) {
|
|
|
8624
8624
|
};
|
|
8625
8625
|
}
|
|
8626
8626
|
}
|
|
8627
|
-
|
|
8628
|
-
var
|
|
8627
|
+
Gf.NAME = "BitStringValueBlock";
|
|
8628
|
+
var Jf;
|
|
8629
8629
|
let wn = class extends Re {
|
|
8630
8630
|
constructor({ idBlock: e = {}, lenBlock: n = {}, ...r } = {}) {
|
|
8631
8631
|
var i, s;
|
|
@@ -8639,7 +8639,7 @@ let wn = class extends Re {
|
|
|
8639
8639
|
isIndefiniteForm: !!r.isIndefiniteForm
|
|
8640
8640
|
},
|
|
8641
8641
|
...r
|
|
8642
|
-
},
|
|
8642
|
+
}, Gf), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 3;
|
|
8643
8643
|
}
|
|
8644
8644
|
fromBER(e, n, r) {
|
|
8645
8645
|
return this.valueBlock.isConstructed = this.idBlock.isConstructed, this.valueBlock.isIndefiniteForm = this.lenBlock.isIndefiniteForm, super.fromBER(e, n, r);
|
|
@@ -8656,10 +8656,10 @@ let wn = class extends Re {
|
|
|
8656
8656
|
}
|
|
8657
8657
|
}
|
|
8658
8658
|
};
|
|
8659
|
-
|
|
8660
|
-
W.BitString =
|
|
8661
|
-
wn.NAME =
|
|
8662
|
-
var
|
|
8659
|
+
Jf = wn;
|
|
8660
|
+
W.BitString = Jf;
|
|
8661
|
+
wn.NAME = Bf;
|
|
8662
|
+
var Zf;
|
|
8663
8663
|
function Ey(t, e) {
|
|
8664
8664
|
const n = new Uint8Array([0]), r = new Uint8Array(t), i = new Uint8Array(e);
|
|
8665
8665
|
let s = r.slice(0);
|
|
@@ -8725,7 +8725,7 @@ class ul extends jt(Fe) {
|
|
|
8725
8725
|
super(n), this._valueDec = 0, n.valueHex && this.setValueHex(), e !== void 0 && (this.valueDec = e);
|
|
8726
8726
|
}
|
|
8727
8727
|
setValueHex() {
|
|
8728
|
-
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 =
|
|
8728
|
+
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 = $f.call(this)));
|
|
8729
8729
|
}
|
|
8730
8730
|
set valueDec(e) {
|
|
8731
8731
|
this._valueDec = e, this.isHexOnly = !1, this.valueHexView = new Uint8Array(hy(e));
|
|
@@ -8792,9 +8792,9 @@ class ul extends jt(Fe) {
|
|
|
8792
8792
|
return c === !1 && (o += Zu.charAt(0)), o;
|
|
8793
8793
|
}
|
|
8794
8794
|
}
|
|
8795
|
-
|
|
8795
|
+
Zf = ul;
|
|
8796
8796
|
ul.NAME = "IntegerValueBlock";
|
|
8797
|
-
Object.defineProperty(
|
|
8797
|
+
Object.defineProperty(Zf.prototype, "valueHex", {
|
|
8798
8798
|
set: function(t) {
|
|
8799
8799
|
this.valueHexView = new Uint8Array(t), this.setValueHex();
|
|
8800
8800
|
},
|
|
@@ -8802,7 +8802,7 @@ Object.defineProperty(Jf.prototype, "valueHex", {
|
|
|
8802
8802
|
return this.valueHexView.slice().buffer;
|
|
8803
8803
|
}
|
|
8804
8804
|
});
|
|
8805
|
-
var
|
|
8805
|
+
var Yf;
|
|
8806
8806
|
class Et extends Re {
|
|
8807
8807
|
constructor(e = {}) {
|
|
8808
8808
|
super(e, ul), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 2;
|
|
@@ -8837,17 +8837,17 @@ class Et extends Re {
|
|
|
8837
8837
|
return `${this.constructor.NAME} : ${this.valueBlock.toString()}`;
|
|
8838
8838
|
}
|
|
8839
8839
|
}
|
|
8840
|
-
|
|
8841
|
-
W.Integer =
|
|
8840
|
+
Yf = Et;
|
|
8841
|
+
W.Integer = Yf;
|
|
8842
8842
|
Et.NAME = "INTEGER";
|
|
8843
|
-
var
|
|
8843
|
+
var Xf;
|
|
8844
8844
|
class Qs extends Et {
|
|
8845
8845
|
constructor(e = {}) {
|
|
8846
8846
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 10;
|
|
8847
8847
|
}
|
|
8848
8848
|
}
|
|
8849
|
-
|
|
8850
|
-
W.Enumerated =
|
|
8849
|
+
Xf = Qs;
|
|
8850
|
+
W.Enumerated = Xf;
|
|
8851
8851
|
Qs.NAME = "ENUMERATED";
|
|
8852
8852
|
class Na extends jt(Fe) {
|
|
8853
8853
|
constructor({ valueDec: e = -1, isFirstSid: n = !1, ...r } = {}) {
|
|
@@ -8919,7 +8919,7 @@ class Na extends jt(Fe) {
|
|
|
8919
8919
|
}
|
|
8920
8920
|
}
|
|
8921
8921
|
Na.NAME = "sidBlock";
|
|
8922
|
-
class
|
|
8922
|
+
class Qf extends Fe {
|
|
8923
8923
|
constructor({ value: e = We, ...n } = {}) {
|
|
8924
8924
|
super(n), this.value = [], e && this.fromString(e);
|
|
8925
8925
|
}
|
|
@@ -8999,11 +8999,11 @@ class Xf extends Fe {
|
|
|
8999
8999
|
return e;
|
|
9000
9000
|
}
|
|
9001
9001
|
}
|
|
9002
|
-
|
|
9003
|
-
var
|
|
9002
|
+
Qf.NAME = "ObjectIdentifierValueBlock";
|
|
9003
|
+
var eh;
|
|
9004
9004
|
class eo extends Re {
|
|
9005
9005
|
constructor(e = {}) {
|
|
9006
|
-
super(e,
|
|
9006
|
+
super(e, Qf), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 6;
|
|
9007
9007
|
}
|
|
9008
9008
|
getValue() {
|
|
9009
9009
|
return this.valueBlock.toString();
|
|
@@ -9021,8 +9021,8 @@ class eo extends Re {
|
|
|
9021
9021
|
};
|
|
9022
9022
|
}
|
|
9023
9023
|
}
|
|
9024
|
-
|
|
9025
|
-
W.ObjectIdentifier =
|
|
9024
|
+
eh = eo;
|
|
9025
|
+
W.ObjectIdentifier = eh;
|
|
9026
9026
|
eo.NAME = "OBJECT IDENTIFIER";
|
|
9027
9027
|
class ja extends jt(Rn) {
|
|
9028
9028
|
constructor({ valueDec: e = 0, ...n } = {}) {
|
|
@@ -9076,7 +9076,7 @@ class ja extends jt(Rn) {
|
|
|
9076
9076
|
}
|
|
9077
9077
|
}
|
|
9078
9078
|
ja.NAME = "relativeSidBlock";
|
|
9079
|
-
class
|
|
9079
|
+
class th extends Fe {
|
|
9080
9080
|
constructor({ value: e = We, ...n } = {}) {
|
|
9081
9081
|
super(n), this.value = [], e && this.fromString(e);
|
|
9082
9082
|
}
|
|
@@ -9132,11 +9132,11 @@ class eh extends Fe {
|
|
|
9132
9132
|
return e;
|
|
9133
9133
|
}
|
|
9134
9134
|
}
|
|
9135
|
-
|
|
9136
|
-
var
|
|
9135
|
+
th.NAME = "RelativeObjectIdentifierValueBlock";
|
|
9136
|
+
var nh;
|
|
9137
9137
|
class dl extends Re {
|
|
9138
9138
|
constructor(e = {}) {
|
|
9139
|
-
super(e,
|
|
9139
|
+
super(e, th), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 13;
|
|
9140
9140
|
}
|
|
9141
9141
|
getValue() {
|
|
9142
9142
|
return this.valueBlock.toString();
|
|
@@ -9154,28 +9154,28 @@ class dl extends Re {
|
|
|
9154
9154
|
};
|
|
9155
9155
|
}
|
|
9156
9156
|
}
|
|
9157
|
-
|
|
9158
|
-
W.RelativeObjectIdentifier =
|
|
9157
|
+
nh = dl;
|
|
9158
|
+
W.RelativeObjectIdentifier = nh;
|
|
9159
9159
|
dl.NAME = "RelativeObjectIdentifier";
|
|
9160
|
-
var
|
|
9160
|
+
var rh;
|
|
9161
9161
|
class Rt extends Ge {
|
|
9162
9162
|
constructor(e = {}) {
|
|
9163
9163
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 16;
|
|
9164
9164
|
}
|
|
9165
9165
|
}
|
|
9166
|
-
|
|
9167
|
-
W.Sequence =
|
|
9166
|
+
rh = Rt;
|
|
9167
|
+
W.Sequence = rh;
|
|
9168
9168
|
Rt.NAME = "SEQUENCE";
|
|
9169
|
-
var
|
|
9169
|
+
var ih;
|
|
9170
9170
|
let Lt = class extends Ge {
|
|
9171
9171
|
constructor(e = {}) {
|
|
9172
9172
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 17;
|
|
9173
9173
|
}
|
|
9174
9174
|
};
|
|
9175
|
-
|
|
9176
|
-
W.Set =
|
|
9175
|
+
ih = Lt;
|
|
9176
|
+
W.Set = ih;
|
|
9177
9177
|
Lt.NAME = "SET";
|
|
9178
|
-
class
|
|
9178
|
+
class sh extends jt(Fe) {
|
|
9179
9179
|
constructor({ ...e } = {}) {
|
|
9180
9180
|
super(e), this.isHexOnly = !0, this.value = We;
|
|
9181
9181
|
}
|
|
@@ -9186,13 +9186,13 @@ class ih extends jt(Fe) {
|
|
|
9186
9186
|
};
|
|
9187
9187
|
}
|
|
9188
9188
|
}
|
|
9189
|
-
|
|
9190
|
-
class
|
|
9189
|
+
sh.NAME = "StringValueBlock";
|
|
9190
|
+
class oh extends sh {
|
|
9191
9191
|
}
|
|
9192
|
-
|
|
9192
|
+
oh.NAME = "SimpleStringValueBlock";
|
|
9193
9193
|
class nt extends cl {
|
|
9194
9194
|
constructor({ ...e } = {}) {
|
|
9195
|
-
super(e,
|
|
9195
|
+
super(e, oh);
|
|
9196
9196
|
}
|
|
9197
9197
|
fromBuffer(e) {
|
|
9198
9198
|
this.valueBlock.value = String.fromCharCode.apply(null, D.toUint8Array(e));
|
|
@@ -9205,7 +9205,7 @@ class nt extends cl {
|
|
|
9205
9205
|
}
|
|
9206
9206
|
}
|
|
9207
9207
|
nt.NAME = "SIMPLE STRING";
|
|
9208
|
-
class
|
|
9208
|
+
class ah extends nt {
|
|
9209
9209
|
fromBuffer(e) {
|
|
9210
9210
|
this.valueBlock.valueHexView = D.toUint8Array(e);
|
|
9211
9211
|
try {
|
|
@@ -9218,17 +9218,17 @@ class oh extends nt {
|
|
|
9218
9218
|
this.valueBlock.valueHexView = new Uint8Array(Z.FromUtf8String(e)), this.valueBlock.value = e;
|
|
9219
9219
|
}
|
|
9220
9220
|
}
|
|
9221
|
-
|
|
9222
|
-
var
|
|
9223
|
-
class Ft extends
|
|
9221
|
+
ah.NAME = "Utf8StringValueBlock";
|
|
9222
|
+
var ch;
|
|
9223
|
+
class Ft extends ah {
|
|
9224
9224
|
constructor(e = {}) {
|
|
9225
9225
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 12;
|
|
9226
9226
|
}
|
|
9227
9227
|
}
|
|
9228
|
-
|
|
9229
|
-
W.Utf8String =
|
|
9228
|
+
ch = Ft;
|
|
9229
|
+
W.Utf8String = ch;
|
|
9230
9230
|
Ft.NAME = "UTF8String";
|
|
9231
|
-
class
|
|
9231
|
+
class lh extends nt {
|
|
9232
9232
|
fromBuffer(e) {
|
|
9233
9233
|
this.valueBlock.value = Z.ToUtf16String(e), this.valueBlock.valueHexView = D.toUint8Array(e);
|
|
9234
9234
|
}
|
|
@@ -9236,17 +9236,17 @@ class ch extends nt {
|
|
|
9236
9236
|
this.valueBlock.value = e, this.valueBlock.valueHexView = new Uint8Array(Z.FromUtf16String(e));
|
|
9237
9237
|
}
|
|
9238
9238
|
}
|
|
9239
|
-
|
|
9240
|
-
var
|
|
9241
|
-
class to extends
|
|
9239
|
+
lh.NAME = "BmpStringValueBlock";
|
|
9240
|
+
var uh;
|
|
9241
|
+
class to extends lh {
|
|
9242
9242
|
constructor({ ...e } = {}) {
|
|
9243
9243
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 30;
|
|
9244
9244
|
}
|
|
9245
9245
|
}
|
|
9246
|
-
|
|
9247
|
-
W.BmpString =
|
|
9246
|
+
uh = to;
|
|
9247
|
+
W.BmpString = uh;
|
|
9248
9248
|
to.NAME = "BMPString";
|
|
9249
|
-
class
|
|
9249
|
+
class dh extends nt {
|
|
9250
9250
|
fromBuffer(e) {
|
|
9251
9251
|
const n = ArrayBuffer.isView(e) ? e.slice().buffer : e.slice(0), r = new Uint8Array(n);
|
|
9252
9252
|
for (let i = 0; i < r.length; i += 4)
|
|
@@ -9266,98 +9266,98 @@ class uh extends nt {
|
|
|
9266
9266
|
this.valueBlock.value = e;
|
|
9267
9267
|
}
|
|
9268
9268
|
}
|
|
9269
|
-
|
|
9270
|
-
var
|
|
9271
|
-
class no extends
|
|
9269
|
+
dh.NAME = "UniversalStringValueBlock";
|
|
9270
|
+
var ph;
|
|
9271
|
+
class no extends dh {
|
|
9272
9272
|
constructor({ ...e } = {}) {
|
|
9273
9273
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 28;
|
|
9274
9274
|
}
|
|
9275
9275
|
}
|
|
9276
|
-
|
|
9277
|
-
W.UniversalString =
|
|
9276
|
+
ph = no;
|
|
9277
|
+
W.UniversalString = ph;
|
|
9278
9278
|
no.NAME = "UniversalString";
|
|
9279
|
-
var
|
|
9279
|
+
var fh;
|
|
9280
9280
|
class ro extends nt {
|
|
9281
9281
|
constructor(e = {}) {
|
|
9282
9282
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 18;
|
|
9283
9283
|
}
|
|
9284
9284
|
}
|
|
9285
|
-
|
|
9286
|
-
W.NumericString =
|
|
9285
|
+
fh = ro;
|
|
9286
|
+
W.NumericString = fh;
|
|
9287
9287
|
ro.NAME = "NumericString";
|
|
9288
|
-
var
|
|
9288
|
+
var hh;
|
|
9289
9289
|
class io extends nt {
|
|
9290
9290
|
constructor(e = {}) {
|
|
9291
9291
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 19;
|
|
9292
9292
|
}
|
|
9293
9293
|
}
|
|
9294
|
-
|
|
9295
|
-
W.PrintableString =
|
|
9294
|
+
hh = io;
|
|
9295
|
+
W.PrintableString = hh;
|
|
9296
9296
|
io.NAME = "PrintableString";
|
|
9297
|
-
var
|
|
9297
|
+
var gh;
|
|
9298
9298
|
class so extends nt {
|
|
9299
9299
|
constructor(e = {}) {
|
|
9300
9300
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 20;
|
|
9301
9301
|
}
|
|
9302
9302
|
}
|
|
9303
|
-
|
|
9304
|
-
W.TeletexString =
|
|
9303
|
+
gh = so;
|
|
9304
|
+
W.TeletexString = gh;
|
|
9305
9305
|
so.NAME = "TeletexString";
|
|
9306
|
-
var
|
|
9306
|
+
var mh;
|
|
9307
9307
|
class oo extends nt {
|
|
9308
9308
|
constructor(e = {}) {
|
|
9309
9309
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 21;
|
|
9310
9310
|
}
|
|
9311
9311
|
}
|
|
9312
|
-
|
|
9313
|
-
W.VideotexString =
|
|
9312
|
+
mh = oo;
|
|
9313
|
+
W.VideotexString = mh;
|
|
9314
9314
|
oo.NAME = "VideotexString";
|
|
9315
|
-
var
|
|
9315
|
+
var _h;
|
|
9316
9316
|
class ao extends nt {
|
|
9317
9317
|
constructor(e = {}) {
|
|
9318
9318
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 22;
|
|
9319
9319
|
}
|
|
9320
9320
|
}
|
|
9321
|
-
|
|
9322
|
-
W.IA5String =
|
|
9321
|
+
_h = ao;
|
|
9322
|
+
W.IA5String = _h;
|
|
9323
9323
|
ao.NAME = "IA5String";
|
|
9324
|
-
var
|
|
9324
|
+
var yh;
|
|
9325
9325
|
class co extends nt {
|
|
9326
9326
|
constructor(e = {}) {
|
|
9327
9327
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 25;
|
|
9328
9328
|
}
|
|
9329
9329
|
}
|
|
9330
|
-
|
|
9331
|
-
W.GraphicString =
|
|
9330
|
+
yh = co;
|
|
9331
|
+
W.GraphicString = yh;
|
|
9332
9332
|
co.NAME = "GraphicString";
|
|
9333
|
-
var
|
|
9333
|
+
var vh;
|
|
9334
9334
|
class ci extends nt {
|
|
9335
9335
|
constructor(e = {}) {
|
|
9336
9336
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 26;
|
|
9337
9337
|
}
|
|
9338
9338
|
}
|
|
9339
|
-
|
|
9340
|
-
W.VisibleString =
|
|
9339
|
+
vh = ci;
|
|
9340
|
+
W.VisibleString = vh;
|
|
9341
9341
|
ci.NAME = "VisibleString";
|
|
9342
|
-
var
|
|
9342
|
+
var wh;
|
|
9343
9343
|
class lo extends nt {
|
|
9344
9344
|
constructor(e = {}) {
|
|
9345
9345
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 27;
|
|
9346
9346
|
}
|
|
9347
9347
|
}
|
|
9348
|
-
|
|
9349
|
-
W.GeneralString =
|
|
9348
|
+
wh = lo;
|
|
9349
|
+
W.GeneralString = wh;
|
|
9350
9350
|
lo.NAME = "GeneralString";
|
|
9351
|
-
var
|
|
9351
|
+
var bh;
|
|
9352
9352
|
class uo extends nt {
|
|
9353
9353
|
constructor(e = {}) {
|
|
9354
9354
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 29;
|
|
9355
9355
|
}
|
|
9356
9356
|
}
|
|
9357
|
-
|
|
9358
|
-
W.CharacterString =
|
|
9357
|
+
bh = uo;
|
|
9358
|
+
W.CharacterString = bh;
|
|
9359
9359
|
uo.NAME = "CharacterString";
|
|
9360
|
-
var
|
|
9360
|
+
var kh;
|
|
9361
9361
|
class li extends ci {
|
|
9362
9362
|
constructor({ value: e, valueDate: n, ...r } = {}) {
|
|
9363
9363
|
if (super(r), this.year = 0, this.month = 0, this.day = 0, this.hour = 0, this.minute = 0, this.second = 0, e) {
|
|
@@ -9413,10 +9413,10 @@ class li extends ci {
|
|
|
9413
9413
|
};
|
|
9414
9414
|
}
|
|
9415
9415
|
}
|
|
9416
|
-
|
|
9417
|
-
W.UTCTime =
|
|
9416
|
+
kh = li;
|
|
9417
|
+
W.UTCTime = kh;
|
|
9418
9418
|
li.NAME = "UTCTime";
|
|
9419
|
-
var
|
|
9419
|
+
var xh;
|
|
9420
9420
|
class po extends li {
|
|
9421
9421
|
constructor(e = {}) {
|
|
9422
9422
|
var n;
|
|
@@ -9537,53 +9537,53 @@ class po extends li {
|
|
|
9537
9537
|
};
|
|
9538
9538
|
}
|
|
9539
9539
|
}
|
|
9540
|
-
|
|
9541
|
-
W.GeneralizedTime =
|
|
9540
|
+
xh = po;
|
|
9541
|
+
W.GeneralizedTime = xh;
|
|
9542
9542
|
po.NAME = "GeneralizedTime";
|
|
9543
|
-
var
|
|
9543
|
+
var Sh;
|
|
9544
9544
|
class pl extends Ft {
|
|
9545
9545
|
constructor(e = {}) {
|
|
9546
9546
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 31;
|
|
9547
9547
|
}
|
|
9548
9548
|
}
|
|
9549
|
-
|
|
9550
|
-
W.DATE =
|
|
9549
|
+
Sh = pl;
|
|
9550
|
+
W.DATE = Sh;
|
|
9551
9551
|
pl.NAME = "DATE";
|
|
9552
|
-
var
|
|
9552
|
+
var Ah;
|
|
9553
9553
|
class fl extends Ft {
|
|
9554
9554
|
constructor(e = {}) {
|
|
9555
9555
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 32;
|
|
9556
9556
|
}
|
|
9557
9557
|
}
|
|
9558
|
-
|
|
9559
|
-
W.TimeOfDay =
|
|
9558
|
+
Ah = fl;
|
|
9559
|
+
W.TimeOfDay = Ah;
|
|
9560
9560
|
fl.NAME = "TimeOfDay";
|
|
9561
|
-
var
|
|
9561
|
+
var Eh;
|
|
9562
9562
|
class hl extends Ft {
|
|
9563
9563
|
constructor(e = {}) {
|
|
9564
9564
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 33;
|
|
9565
9565
|
}
|
|
9566
9566
|
}
|
|
9567
|
-
|
|
9568
|
-
W.DateTime =
|
|
9567
|
+
Eh = hl;
|
|
9568
|
+
W.DateTime = Eh;
|
|
9569
9569
|
hl.NAME = "DateTime";
|
|
9570
|
-
var
|
|
9570
|
+
var Ih;
|
|
9571
9571
|
class gl extends Ft {
|
|
9572
9572
|
constructor(e = {}) {
|
|
9573
9573
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 34;
|
|
9574
9574
|
}
|
|
9575
9575
|
}
|
|
9576
|
-
|
|
9577
|
-
W.Duration =
|
|
9576
|
+
Ih = gl;
|
|
9577
|
+
W.Duration = Ih;
|
|
9578
9578
|
gl.NAME = "Duration";
|
|
9579
|
-
var
|
|
9579
|
+
var Ch;
|
|
9580
9580
|
class ml extends Ft {
|
|
9581
9581
|
constructor(e = {}) {
|
|
9582
9582
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 14;
|
|
9583
9583
|
}
|
|
9584
9584
|
}
|
|
9585
|
-
|
|
9586
|
-
W.TIME =
|
|
9585
|
+
Ch = ml;
|
|
9586
|
+
W.TIME = Ch;
|
|
9587
9587
|
ml.NAME = "TIME";
|
|
9588
9588
|
class Sn {
|
|
9589
9589
|
constructor({ name: e = We, optional: n = !1 } = {}) {
|
|
@@ -9829,7 +9829,7 @@ function Ny(t, e) {
|
|
|
9829
9829
|
result: n.result
|
|
9830
9830
|
} : mn(n.result, n.result, e);
|
|
9831
9831
|
}
|
|
9832
|
-
const
|
|
9832
|
+
const Nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9833
9833
|
__proto__: null,
|
|
9834
9834
|
Any: Sn,
|
|
9835
9835
|
BaseBlock: Re,
|
|
@@ -9987,7 +9987,7 @@ function lt(t) {
|
|
|
9987
9987
|
toASN: (e) => new t({ value: e })
|
|
9988
9988
|
};
|
|
9989
9989
|
}
|
|
9990
|
-
const
|
|
9990
|
+
const jh = lt(Ft), Ly = lt(to), Uy = lt(no), Vy = lt(ro), qy = lt(io), My = lt(so), zy = lt(oo), Dy = lt(ao), Fy = lt(co), Hy = lt(ci), Ky = lt(lo), Wy = lt(uo), Gy = {
|
|
9991
9991
|
fromASN: (t) => t.toDate(),
|
|
9992
9992
|
toASN: (t) => new li({ valueDate: t })
|
|
9993
9993
|
}, Jy = {
|
|
@@ -10038,7 +10038,7 @@ function yl(t) {
|
|
|
10038
10038
|
case b.UniversalString:
|
|
10039
10039
|
return Uy;
|
|
10040
10040
|
case b.Utf8String:
|
|
10041
|
-
return
|
|
10041
|
+
return jh;
|
|
10042
10042
|
case b.VideotexString:
|
|
10043
10043
|
return zy;
|
|
10044
10044
|
case b.VisibleString:
|
|
@@ -10050,11 +10050,11 @@ function yl(t) {
|
|
|
10050
10050
|
function Pt(t) {
|
|
10051
10051
|
return typeof t == "function" && t.prototype ? t.prototype.toASN && t.prototype.fromASN ? !0 : Pt(t.prototype) : !!(t && typeof t == "object" && "toASN" in t && "fromASN" in t);
|
|
10052
10052
|
}
|
|
10053
|
-
function
|
|
10053
|
+
function $h(t) {
|
|
10054
10054
|
var e;
|
|
10055
10055
|
if (t) {
|
|
10056
10056
|
const n = Object.getPrototypeOf(t);
|
|
10057
|
-
return ((e = n == null ? void 0 : n.prototype) === null || e === void 0 ? void 0 : e.constructor) === Array ? !0 :
|
|
10057
|
+
return ((e = n == null ? void 0 : n.prototype) === null || e === void 0 ? void 0 : e.constructor) === Array ? !0 : $h(n);
|
|
10058
10058
|
}
|
|
10059
10059
|
return !1;
|
|
10060
10060
|
}
|
|
@@ -10099,7 +10099,7 @@ class Xy {
|
|
|
10099
10099
|
const o = r.items[s], c = n ? s : "";
|
|
10100
10100
|
let l;
|
|
10101
10101
|
if (typeof o.type == "number") {
|
|
10102
|
-
const p = b[o.type], f =
|
|
10102
|
+
const p = b[o.type], f = Nh[p];
|
|
10103
10103
|
if (!f)
|
|
10104
10104
|
throw new Error(`Cannot get ASN1 class by name '${p}'`);
|
|
10105
10105
|
l = new f({ name: c });
|
|
@@ -10225,7 +10225,7 @@ class Qy {
|
|
|
10225
10225
|
if (!o.verified)
|
|
10226
10226
|
throw new Qu(`Data does not match to ${n.name} ASN1 schema. ${o.result.error}`);
|
|
10227
10227
|
const c = new n();
|
|
10228
|
-
if (
|
|
10228
|
+
if ($h(n)) {
|
|
10229
10229
|
if (!("value" in e.valueBlock && Array.isArray(e.valueBlock.value)))
|
|
10230
10230
|
throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");
|
|
10231
10231
|
const l = i.itemType;
|
|
@@ -10266,7 +10266,7 @@ class Qy {
|
|
|
10266
10266
|
if (Pt(f))
|
|
10267
10267
|
h = new f().toSchema("");
|
|
10268
10268
|
else {
|
|
10269
|
-
const _ = b[f], w =
|
|
10269
|
+
const _ = b[f], w = Nh[_];
|
|
10270
10270
|
if (!w)
|
|
10271
10271
|
throw new Error(`Cannot get '${_}' class from asn1js module`);
|
|
10272
10272
|
h = new w();
|
|
@@ -10422,7 +10422,7 @@ function d(t, e, n, r) {
|
|
|
10422
10422
|
else for (var c = t.length - 1; c >= 0; c--) (o = t[c]) && (s = (i < 3 ? o(s) : i > 3 ? o(e, n, s) : o(e, n)) || s);
|
|
10423
10423
|
return i > 3 && s && Object.defineProperty(e, n, s), s;
|
|
10424
10424
|
}
|
|
10425
|
-
var
|
|
10425
|
+
var Oh = { exports: {} };
|
|
10426
10426
|
(function(t) {
|
|
10427
10427
|
(function(e) {
|
|
10428
10428
|
const n = "(0?\\d+|0x[a-f0-9]+)", r = {
|
|
@@ -10915,8 +10915,8 @@ var $h = { exports: {} };
|
|
|
10915
10915
|
return w;
|
|
10916
10916
|
}, t.exports ? t.exports = v : e.ipaddr = v;
|
|
10917
10917
|
})(ts);
|
|
10918
|
-
})(
|
|
10919
|
-
var ed =
|
|
10918
|
+
})(Oh);
|
|
10919
|
+
var ed = Oh.exports;
|
|
10920
10920
|
class td {
|
|
10921
10921
|
static decodeIP(e) {
|
|
10922
10922
|
if (e.length === 64 && parseInt(e, 16) === 0)
|
|
@@ -11124,7 +11124,7 @@ d([
|
|
|
11124
11124
|
converter: ve
|
|
11125
11125
|
})
|
|
11126
11126
|
], _n.prototype, "authorityCertSerialNumber", void 0);
|
|
11127
|
-
const
|
|
11127
|
+
const Bh = `${on}.19`;
|
|
11128
11128
|
class as {
|
|
11129
11129
|
constructor(e = {}) {
|
|
11130
11130
|
this.cA = !1, Object.assign(this, e);
|
|
@@ -11155,7 +11155,7 @@ od = Va = d([
|
|
|
11155
11155
|
L({ type: P.Sequence })
|
|
11156
11156
|
], od);
|
|
11157
11157
|
var qa;
|
|
11158
|
-
const
|
|
11158
|
+
const Th = `${on}.32`;
|
|
11159
11159
|
let Ut = class {
|
|
11160
11160
|
constructor(e = {}) {
|
|
11161
11161
|
Object.assign(this, e);
|
|
@@ -11267,7 +11267,7 @@ var ft;
|
|
|
11267
11267
|
(function(t) {
|
|
11268
11268
|
t[t.unused = 1] = "unused", t[t.keyCompromise = 2] = "keyCompromise", t[t.cACompromise = 4] = "cACompromise", t[t.affiliationChanged = 8] = "affiliationChanged", t[t.superseded = 16] = "superseded", t[t.cessationOfOperation = 32] = "cessationOfOperation", t[t.certificateHold = 64] = "certificateHold", t[t.privilegeWithdrawn = 128] = "privilegeWithdrawn", t[t.aACompromise = 256] = "aACompromise";
|
|
11269
11269
|
})(ft || (ft = {}));
|
|
11270
|
-
class
|
|
11270
|
+
class Ph extends fo {
|
|
11271
11271
|
toJSON() {
|
|
11272
11272
|
const e = [], n = this.toNumber();
|
|
11273
11273
|
return n & ft.aACompromise && e.push("aACompromise"), n & ft.affiliationChanged && e.push("affiliationChanged"), n & ft.cACompromise && e.push("cACompromise"), n & ft.certificateHold && e.push("certificateHold"), n & ft.cessationOfOperation && e.push("cessationOfOperation"), n & ft.keyCompromise && e.push("keyCompromise"), n & ft.privilegeWithdrawn && e.push("privilegeWithdrawn"), n & ft.superseded && e.push("superseded"), n & ft.unused && e.push("unused"), e;
|
|
@@ -11299,7 +11299,7 @@ d([
|
|
|
11299
11299
|
g({ type: An, context: 0, optional: !0 })
|
|
11300
11300
|
], hr.prototype, "distributionPoint", void 0);
|
|
11301
11301
|
d([
|
|
11302
|
-
g({ type:
|
|
11302
|
+
g({ type: Ph, context: 1, optional: !0, implicit: !0 })
|
|
11303
11303
|
], hr.prototype, "reasons", void 0);
|
|
11304
11304
|
d([
|
|
11305
11305
|
g({ type: ie, context: 2, optional: !0, repeated: "sequence", implicit: !0 })
|
|
@@ -11337,7 +11337,7 @@ d([
|
|
|
11337
11337
|
g({ type: b.Boolean, context: 2, defaultValue: qe.ONLY, implicit: !0 })
|
|
11338
11338
|
], qe.prototype, "onlyContainsCACerts", void 0);
|
|
11339
11339
|
d([
|
|
11340
|
-
g({ type:
|
|
11340
|
+
g({ type: Ph, context: 3, optional: !0, implicit: !0 })
|
|
11341
11341
|
], qe.prototype, "onlySomeReasons", void 0);
|
|
11342
11342
|
d([
|
|
11343
11343
|
g({ type: b.Boolean, context: 4, defaultValue: qe.ONLY, implicit: !0 })
|
|
@@ -11367,7 +11367,7 @@ Fa = d([
|
|
|
11367
11367
|
L({ type: P.Choice })
|
|
11368
11368
|
], Fa);
|
|
11369
11369
|
var Ha;
|
|
11370
|
-
const
|
|
11370
|
+
const Rh = `${on}.37`;
|
|
11371
11371
|
let ds = Ha = class extends ge {
|
|
11372
11372
|
constructor(e) {
|
|
11373
11373
|
super(e), Object.setPrototypeOf(this, Ha.prototype);
|
|
@@ -11408,7 +11408,7 @@ let ld = Ga = class extends De {
|
|
|
11408
11408
|
ld = Ga = d([
|
|
11409
11409
|
L({ type: P.Sequence })
|
|
11410
11410
|
], ld);
|
|
11411
|
-
const
|
|
11411
|
+
const Lh = `${on}.15`;
|
|
11412
11412
|
var ht;
|
|
11413
11413
|
(function(t) {
|
|
11414
11414
|
t[t.digitalSignature = 1] = "digitalSignature", t[t.nonRepudiation = 2] = "nonRepudiation", t[t.keyEncipherment = 4] = "keyEncipherment", t[t.dataEncipherment = 8] = "dataEncipherment", t[t.keyAgreement = 16] = "keyAgreement", t[t.keyCertSign = 32] = "keyCertSign", t[t.cRLSign = 64] = "cRLSign", t[t.encipherOnly = 128] = "encipherOnly", t[t.decipherOnly = 256] = "decipherOnly";
|
|
@@ -11445,18 +11445,18 @@ let ps = Ja = class extends ge {
|
|
|
11445
11445
|
ps = Ja = d([
|
|
11446
11446
|
L({ type: P.Sequence, itemType: _o })
|
|
11447
11447
|
], ps);
|
|
11448
|
-
class
|
|
11448
|
+
class Uh {
|
|
11449
11449
|
constructor(e = {}) {
|
|
11450
11450
|
Object.assign(this, e);
|
|
11451
11451
|
}
|
|
11452
11452
|
}
|
|
11453
11453
|
d([
|
|
11454
11454
|
g({ type: ps, context: 0, optional: !0, implicit: !0 })
|
|
11455
|
-
],
|
|
11455
|
+
], Uh.prototype, "permittedSubtrees", void 0);
|
|
11456
11456
|
d([
|
|
11457
11457
|
g({ type: ps, context: 1, optional: !0, implicit: !0 })
|
|
11458
|
-
],
|
|
11459
|
-
class
|
|
11458
|
+
], Uh.prototype, "excludedSubtrees", void 0);
|
|
11459
|
+
class Vh {
|
|
11460
11460
|
constructor(e = {}) {
|
|
11461
11461
|
Object.assign(this, e);
|
|
11462
11462
|
}
|
|
@@ -11469,7 +11469,7 @@ d([
|
|
|
11469
11469
|
optional: !0,
|
|
11470
11470
|
converter: ve
|
|
11471
11471
|
})
|
|
11472
|
-
],
|
|
11472
|
+
], Vh.prototype, "requireExplicitPolicy", void 0);
|
|
11473
11473
|
d([
|
|
11474
11474
|
g({
|
|
11475
11475
|
type: b.Integer,
|
|
@@ -11478,7 +11478,7 @@ d([
|
|
|
11478
11478
|
optional: !0,
|
|
11479
11479
|
converter: ve
|
|
11480
11480
|
})
|
|
11481
|
-
],
|
|
11481
|
+
], Vh.prototype, "inhibitPolicyMapping", void 0);
|
|
11482
11482
|
var Za;
|
|
11483
11483
|
class El {
|
|
11484
11484
|
constructor(e = {}) {
|
|
@@ -11500,7 +11500,7 @@ ud = Za = d([
|
|
|
11500
11500
|
L({ type: P.Sequence, itemType: El })
|
|
11501
11501
|
], ud);
|
|
11502
11502
|
var Ya;
|
|
11503
|
-
const
|
|
11503
|
+
const qh = `${on}.17`;
|
|
11504
11504
|
let Xa = Ya = class extends De {
|
|
11505
11505
|
constructor(e) {
|
|
11506
11506
|
super(e), Object.setPrototypeOf(this, Ya.prototype);
|
|
@@ -11529,25 +11529,25 @@ let dd = Qa = class extends ge {
|
|
|
11529
11529
|
dd = Qa = d([
|
|
11530
11530
|
L({ type: P.Sequence, itemType: Vt })
|
|
11531
11531
|
], dd);
|
|
11532
|
-
const
|
|
11532
|
+
const Mh = `${on}.14`;
|
|
11533
11533
|
class Jt extends kl {
|
|
11534
11534
|
}
|
|
11535
|
-
class
|
|
11535
|
+
class zh {
|
|
11536
11536
|
constructor(e = {}) {
|
|
11537
11537
|
Object.assign(this, e);
|
|
11538
11538
|
}
|
|
11539
11539
|
}
|
|
11540
11540
|
d([
|
|
11541
11541
|
g({ type: b.GeneralizedTime, context: 0, implicit: !0, optional: !0 })
|
|
11542
|
-
],
|
|
11542
|
+
], zh.prototype, "notBefore", void 0);
|
|
11543
11543
|
d([
|
|
11544
11544
|
g({ type: b.GeneralizedTime, context: 1, implicit: !0, optional: !0 })
|
|
11545
|
-
],
|
|
11545
|
+
], zh.prototype, "notAfter", void 0);
|
|
11546
11546
|
var Lr;
|
|
11547
11547
|
(function(t) {
|
|
11548
11548
|
t[t.keyUpdateAllowed = 1] = "keyUpdateAllowed", t[t.newExtensions = 2] = "newExtensions", t[t.pKIXCertificate = 4] = "pKIXCertificate";
|
|
11549
11549
|
})(Lr || (Lr = {}));
|
|
11550
|
-
class
|
|
11550
|
+
class Dh extends fo {
|
|
11551
11551
|
toJSON() {
|
|
11552
11552
|
const e = [], n = this.toNumber();
|
|
11553
11553
|
return n & Lr.pKIXCertificate && e.push("pKIXCertificate"), n & Lr.newExtensions && e.push("newExtensions"), n & Lr.keyUpdateAllowed && e.push("keyUpdateAllowed"), e;
|
|
@@ -11556,17 +11556,17 @@ class zh extends fo {
|
|
|
11556
11556
|
return `[${this.toJSON().join(", ")}]`;
|
|
11557
11557
|
}
|
|
11558
11558
|
}
|
|
11559
|
-
class
|
|
11559
|
+
class Fh {
|
|
11560
11560
|
constructor(e = {}) {
|
|
11561
|
-
this.entrustVers = "", this.entrustInfoFlags = new
|
|
11561
|
+
this.entrustVers = "", this.entrustInfoFlags = new Dh(), Object.assign(this, e);
|
|
11562
11562
|
}
|
|
11563
11563
|
}
|
|
11564
11564
|
d([
|
|
11565
11565
|
g({ type: b.GeneralString })
|
|
11566
|
-
],
|
|
11566
|
+
], Fh.prototype, "entrustVers", void 0);
|
|
11567
11567
|
d([
|
|
11568
|
-
g({ type:
|
|
11569
|
-
],
|
|
11568
|
+
g({ type: Dh })
|
|
11569
|
+
], Fh.prototype, "entrustInfoFlags", void 0);
|
|
11570
11570
|
var ec;
|
|
11571
11571
|
let pd = ec = class extends ge {
|
|
11572
11572
|
constructor(e) {
|
|
@@ -11581,7 +11581,7 @@ class K {
|
|
|
11581
11581
|
this.algorithm = "", Object.assign(this, e);
|
|
11582
11582
|
}
|
|
11583
11583
|
isEqual(e) {
|
|
11584
|
-
return e instanceof K && e.algorithm == this.algorithm && (e.parameters && this.parameters &&
|
|
11584
|
+
return e instanceof K && e.algorithm == this.algorithm && (e.parameters && this.parameters && jf(e.parameters, this.parameters) || e.parameters === this.parameters);
|
|
11585
11585
|
}
|
|
11586
11586
|
}
|
|
11587
11587
|
d([
|
|
@@ -11647,9 +11647,9 @@ d([
|
|
|
11647
11647
|
g({ type: Pe })
|
|
11648
11648
|
], di.prototype, "notAfter", void 0);
|
|
11649
11649
|
var tc;
|
|
11650
|
-
let ct = class
|
|
11650
|
+
let ct = class Hh {
|
|
11651
11651
|
constructor(e = {}) {
|
|
11652
|
-
this.extnID = "", this.critical =
|
|
11652
|
+
this.extnID = "", this.critical = Hh.CRITICAL, this.extnValue = new pe(), Object.assign(this, e);
|
|
11653
11653
|
}
|
|
11654
11654
|
};
|
|
11655
11655
|
ct.CRITICAL = !1;
|
|
@@ -12130,17 +12130,17 @@ d([
|
|
|
12130
12130
|
d([
|
|
12131
12131
|
g({ type: b.Utf8String })
|
|
12132
12132
|
], xo.prototype, "string", void 0);
|
|
12133
|
-
class
|
|
12133
|
+
class Kh {
|
|
12134
12134
|
constructor(e = {}) {
|
|
12135
12135
|
this.values = [], Object.assign(this, e);
|
|
12136
12136
|
}
|
|
12137
12137
|
}
|
|
12138
12138
|
d([
|
|
12139
12139
|
g({ type: De, implicit: !0, context: 0, optional: !0 })
|
|
12140
|
-
],
|
|
12140
|
+
], Kh.prototype, "policyAuthority", void 0);
|
|
12141
12141
|
d([
|
|
12142
12142
|
g({ type: xo, repeated: "sequence" })
|
|
12143
|
-
],
|
|
12143
|
+
], Kh.prototype, "values", void 0);
|
|
12144
12144
|
var cc;
|
|
12145
12145
|
class So {
|
|
12146
12146
|
constructor(e = {}) {
|
|
@@ -12190,17 +12190,17 @@ let md = uc = class extends ge {
|
|
|
12190
12190
|
md = uc = d([
|
|
12191
12191
|
L({ type: P.Sequence, itemType: lc })
|
|
12192
12192
|
], md);
|
|
12193
|
-
class
|
|
12193
|
+
class Wh {
|
|
12194
12194
|
constructor(e = {}) {
|
|
12195
12195
|
Object.assign(this, e);
|
|
12196
12196
|
}
|
|
12197
12197
|
}
|
|
12198
12198
|
d([
|
|
12199
12199
|
g({ type: De, implicit: !0, context: 0, optional: !0 })
|
|
12200
|
-
],
|
|
12200
|
+
], Wh.prototype, "roleAuthority", void 0);
|
|
12201
12201
|
d([
|
|
12202
12202
|
g({ type: ie, implicit: !0, context: 1 })
|
|
12203
|
-
],
|
|
12203
|
+
], Wh.prototype, "roleName", void 0);
|
|
12204
12204
|
class $l {
|
|
12205
12205
|
constructor(e = {}) {
|
|
12206
12206
|
this.service = new ie(), this.ident = new ie(), Object.assign(this, e);
|
|
@@ -12649,12 +12649,12 @@ d([
|
|
|
12649
12649
|
d([
|
|
12650
12650
|
g({ type: gs })
|
|
12651
12651
|
], vr.prototype, "signerInfos", void 0);
|
|
12652
|
-
const Gr = "1.2.840.10045.2.1", Ll = "1.2.840.10045.4.1",
|
|
12652
|
+
const Gr = "1.2.840.10045.2.1", Ll = "1.2.840.10045.4.1", Gh = "1.2.840.10045.4.3.1", Ul = "1.2.840.10045.4.3.2", Vl = "1.2.840.10045.4.3.3", ql = "1.2.840.10045.4.3.4", _d = "1.2.840.10045.3.1.7", yd = "1.3.132.0.34", vd = "1.3.132.0.35";
|
|
12653
12653
|
function vi(t) {
|
|
12654
12654
|
return new K({ algorithm: t });
|
|
12655
12655
|
}
|
|
12656
12656
|
const lv = vi(Ll);
|
|
12657
|
-
vi(
|
|
12657
|
+
vi(Gh);
|
|
12658
12658
|
const uv = vi(Ul), dv = vi(Vl), pv = vi(ql);
|
|
12659
12659
|
let Jr = class {
|
|
12660
12660
|
constructor(e = {}) {
|
|
@@ -12764,23 +12764,23 @@ d([
|
|
|
12764
12764
|
d([
|
|
12765
12765
|
g({ type: b.Integer, converter: ve })
|
|
12766
12766
|
], Ss.prototype, "s", void 0);
|
|
12767
|
-
const Ze = "1.2.840.113549.1.1", Nn = `${Ze}.1`, hv = `${Ze}.7`, gv = `${Ze}.9`, Ur = `${Ze}.10`, mv = `${Ze}.2`, _v = `${Ze}.4`, As = `${Ze}.5`, yv = `${Ze}.14`, vc = `${Ze}.11`, Es = `${Ze}.12`, Is = `${Ze}.13`,
|
|
12767
|
+
const Ze = "1.2.840.113549.1.1", Nn = `${Ze}.1`, hv = `${Ze}.7`, gv = `${Ze}.9`, Ur = `${Ze}.10`, mv = `${Ze}.2`, _v = `${Ze}.4`, As = `${Ze}.5`, yv = `${Ze}.14`, vc = `${Ze}.11`, Es = `${Ze}.12`, Is = `${Ze}.13`, Jh = `${Ze}.15`, Zh = `${Ze}.16`, Cs = "1.3.14.3.2.26", Yh = "2.16.840.1.101.3.4.2.4", Ns = "2.16.840.1.101.3.4.2.1", js = "2.16.840.1.101.3.4.2.2", $s = "2.16.840.1.101.3.4.2.3", vv = "2.16.840.1.101.3.4.2.5", wv = "2.16.840.1.101.3.4.2.6", bv = "1.2.840.113549.2.2", kv = "1.2.840.113549.2.5", jo = `${Ze}.8`;
|
|
12768
12768
|
function je(t) {
|
|
12769
12769
|
return new K({ algorithm: t, parameters: null });
|
|
12770
12770
|
}
|
|
12771
12771
|
je(bv);
|
|
12772
12772
|
je(kv);
|
|
12773
12773
|
const jn = je(Cs);
|
|
12774
|
-
je(
|
|
12774
|
+
je(Yh);
|
|
12775
12775
|
je(Ns);
|
|
12776
12776
|
je(js);
|
|
12777
12777
|
je($s);
|
|
12778
12778
|
je(vv);
|
|
12779
12779
|
je(wv);
|
|
12780
|
-
const
|
|
12780
|
+
const Xh = new K({
|
|
12781
12781
|
algorithm: jo,
|
|
12782
12782
|
parameters: z.serialize(jn)
|
|
12783
|
-
}),
|
|
12783
|
+
}), Qh = new K({
|
|
12784
12784
|
algorithm: gv,
|
|
12785
12785
|
parameters: z.serialize(os.toASN(new Uint8Array([218, 57, 163, 238, 94, 107, 75, 13, 50, 85, 191, 239, 149, 96, 24, 144, 175, 216, 7, 9]).buffer))
|
|
12786
12786
|
});
|
|
@@ -12788,28 +12788,28 @@ je(Nn);
|
|
|
12788
12788
|
je(mv);
|
|
12789
12789
|
je(_v);
|
|
12790
12790
|
je(As);
|
|
12791
|
-
je(Gh);
|
|
12792
12791
|
je(Jh);
|
|
12792
|
+
je(Zh);
|
|
12793
12793
|
je(Es);
|
|
12794
12794
|
je(Is);
|
|
12795
|
-
je(Gh);
|
|
12796
12795
|
je(Jh);
|
|
12796
|
+
je(Zh);
|
|
12797
12797
|
class $o {
|
|
12798
12798
|
constructor(e = {}) {
|
|
12799
12799
|
this.hashAlgorithm = new K(jn), this.maskGenAlgorithm = new K({
|
|
12800
12800
|
algorithm: jo,
|
|
12801
12801
|
parameters: z.serialize(jn)
|
|
12802
|
-
}), this.pSourceAlgorithm = new K(
|
|
12802
|
+
}), this.pSourceAlgorithm = new K(Qh), Object.assign(this, e);
|
|
12803
12803
|
}
|
|
12804
12804
|
}
|
|
12805
12805
|
d([
|
|
12806
12806
|
g({ type: K, context: 0, defaultValue: jn })
|
|
12807
12807
|
], $o.prototype, "hashAlgorithm", void 0);
|
|
12808
12808
|
d([
|
|
12809
|
-
g({ type: K, context: 1, defaultValue:
|
|
12809
|
+
g({ type: K, context: 1, defaultValue: Xh })
|
|
12810
12810
|
], $o.prototype, "maskGenAlgorithm", void 0);
|
|
12811
12811
|
d([
|
|
12812
|
-
g({ type: K, context: 2, defaultValue:
|
|
12812
|
+
g({ type: K, context: 2, defaultValue: Qh })
|
|
12813
12813
|
], $o.prototype, "pSourceAlgorithm", void 0);
|
|
12814
12814
|
new K({
|
|
12815
12815
|
algorithm: hv,
|
|
@@ -12827,7 +12827,7 @@ d([
|
|
|
12827
12827
|
g({ type: K, context: 0, defaultValue: jn })
|
|
12828
12828
|
], $n.prototype, "hashAlgorithm", void 0);
|
|
12829
12829
|
d([
|
|
12830
|
-
g({ type: K, context: 1, defaultValue:
|
|
12830
|
+
g({ type: K, context: 1, defaultValue: Xh })
|
|
12831
12831
|
], $n.prototype, "maskGenAlgorithm", void 0);
|
|
12832
12832
|
d([
|
|
12833
12833
|
g({ type: b.Integer, context: 2, defaultValue: 20 })
|
|
@@ -13078,13 +13078,13 @@ function Ev(t) {
|
|
|
13078
13078
|
e[+r] = n[r];
|
|
13079
13079
|
}), e;
|
|
13080
13080
|
}
|
|
13081
|
-
function
|
|
13081
|
+
function eg(t) {
|
|
13082
13082
|
return !!t.useClass;
|
|
13083
13083
|
}
|
|
13084
13084
|
function Sc(t) {
|
|
13085
13085
|
return !!t.useFactory;
|
|
13086
13086
|
}
|
|
13087
|
-
var
|
|
13087
|
+
var tg = function() {
|
|
13088
13088
|
function t(e) {
|
|
13089
13089
|
this.wrap = e, this.reflectMethods = [
|
|
13090
13090
|
"get",
|
|
@@ -13128,7 +13128,7 @@ function wd(t) {
|
|
|
13128
13128
|
return typeof t == "object" && "token" in t && "transform" in t;
|
|
13129
13129
|
}
|
|
13130
13130
|
function Cv(t) {
|
|
13131
|
-
return typeof t == "function" || t instanceof
|
|
13131
|
+
return typeof t == "function" || t instanceof tg;
|
|
13132
13132
|
}
|
|
13133
13133
|
function qi(t) {
|
|
13134
13134
|
return !!t.useToken;
|
|
@@ -13137,7 +13137,7 @@ function Mi(t) {
|
|
|
13137
13137
|
return t.useValue != null;
|
|
13138
13138
|
}
|
|
13139
13139
|
function Nv(t) {
|
|
13140
|
-
return
|
|
13140
|
+
return eg(t) || Mi(t) || qi(t) || Sc(t);
|
|
13141
13141
|
}
|
|
13142
13142
|
var Dl = function() {
|
|
13143
13143
|
function t() {
|
|
@@ -13214,7 +13214,7 @@ var Pv = function(t) {
|
|
|
13214
13214
|
this.preResolution = new Pv(), this.postResolution = new Rv();
|
|
13215
13215
|
}
|
|
13216
13216
|
return t;
|
|
13217
|
-
}(),
|
|
13217
|
+
}(), ng = /* @__PURE__ */ new Map(), Uv = function() {
|
|
13218
13218
|
function t(e) {
|
|
13219
13219
|
this.parent = e, this._registry = new jv(), this.interceptors = new Lv(), this.disposed = !1, this.disposables = /* @__PURE__ */ new Set();
|
|
13220
13220
|
}
|
|
@@ -13317,7 +13317,7 @@ var Pv = function(t) {
|
|
|
13317
13317
|
if (this.ensureNotDisposed(), e.options.lifecycle === Ke.ResolutionScoped && n.scopedResolutions.has(e))
|
|
13318
13318
|
return n.scopedResolutions.get(e);
|
|
13319
13319
|
var r = e.options.lifecycle === Ke.Singleton, i = e.options.lifecycle === Ke.ContainerScoped, s = r || i, o;
|
|
13320
|
-
return Mi(e.provider) ? o = e.provider.useValue : qi(e.provider) ? o = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, n)) : this.resolve(e.provider.useToken, n) :
|
|
13320
|
+
return Mi(e.provider) ? o = e.provider.useValue : qi(e.provider) ? o = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, n)) : this.resolve(e.provider.useToken, n) : eg(e.provider) ? o = s ? e.instance || (e.instance = this.construct(e.provider.useClass, n)) : this.construct(e.provider.useClass, n) : Sc(e.provider) ? o = e.provider.useFactory(this) : o = this.construct(e.provider, n), e.options.lifecycle === Ke.ResolutionScoped && n.scopedResolutions.set(e, o), o;
|
|
13321
13321
|
}, t.prototype.resolveAll = function(e, n) {
|
|
13322
13322
|
var r = this;
|
|
13323
13323
|
n === void 0 && (n = new bd()), this.ensureNotDisposed();
|
|
@@ -13415,12 +13415,12 @@ var Pv = function(t) {
|
|
|
13415
13415
|
return this.isRegistered(e) ? this._registry.getAll(e) : this.parent ? this.parent.getAllRegistrations(e) : null;
|
|
13416
13416
|
}, t.prototype.construct = function(e, n) {
|
|
13417
13417
|
var r = this;
|
|
13418
|
-
if (e instanceof
|
|
13418
|
+
if (e instanceof tg)
|
|
13419
13419
|
return e.createProxy(function(s) {
|
|
13420
13420
|
return r.resolve(s, n);
|
|
13421
13421
|
});
|
|
13422
13422
|
var i = function() {
|
|
13423
|
-
var s =
|
|
13423
|
+
var s = ng.get(e);
|
|
13424
13424
|
if (!s || s.length === 0) {
|
|
13425
13425
|
if (e.length === 0)
|
|
13426
13426
|
return new e();
|
|
@@ -13447,7 +13447,7 @@ var Pv = function(t) {
|
|
|
13447
13447
|
}(), Ue = new Uv();
|
|
13448
13448
|
function To() {
|
|
13449
13449
|
return function(t) {
|
|
13450
|
-
|
|
13450
|
+
ng.set(t, Ev(t));
|
|
13451
13451
|
};
|
|
13452
13452
|
}
|
|
13453
13453
|
if (typeof Reflect > "u" || !Reflect.getMetadata)
|
|
@@ -13481,46 +13481,46 @@ let xd = Ec = class extends ge {
|
|
|
13481
13481
|
xd = Ec = d([
|
|
13482
13482
|
L({ type: P.Sequence, itemType: _r })
|
|
13483
13483
|
], xd);
|
|
13484
|
-
class
|
|
13484
|
+
class rg {
|
|
13485
13485
|
constructor(e = {}) {
|
|
13486
13486
|
this.certId = "", this.certValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
13487
13487
|
}
|
|
13488
13488
|
}
|
|
13489
13489
|
d([
|
|
13490
13490
|
g({ type: b.ObjectIdentifier })
|
|
13491
|
-
],
|
|
13491
|
+
], rg.prototype, "certId", void 0);
|
|
13492
13492
|
d([
|
|
13493
13493
|
g({ type: b.Any, context: 0 })
|
|
13494
|
-
],
|
|
13495
|
-
class
|
|
13494
|
+
], rg.prototype, "certValue", void 0);
|
|
13495
|
+
class ig {
|
|
13496
13496
|
constructor(e = {}) {
|
|
13497
13497
|
this.crlId = "", this.crltValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
13498
13498
|
}
|
|
13499
13499
|
}
|
|
13500
13500
|
d([
|
|
13501
13501
|
g({ type: b.ObjectIdentifier })
|
|
13502
|
-
],
|
|
13502
|
+
], ig.prototype, "crlId", void 0);
|
|
13503
13503
|
d([
|
|
13504
13504
|
g({ type: b.Any, context: 0 })
|
|
13505
|
-
],
|
|
13506
|
-
class
|
|
13505
|
+
], ig.prototype, "crltValue", void 0);
|
|
13506
|
+
class sg extends pe {
|
|
13507
13507
|
}
|
|
13508
13508
|
let Ro = class {
|
|
13509
13509
|
constructor(e = {}) {
|
|
13510
|
-
this.encryptionAlgorithm = new K(), this.encryptedData = new
|
|
13510
|
+
this.encryptionAlgorithm = new K(), this.encryptedData = new sg(), Object.assign(this, e);
|
|
13511
13511
|
}
|
|
13512
13512
|
};
|
|
13513
13513
|
d([
|
|
13514
13514
|
g({ type: K })
|
|
13515
13515
|
], Ro.prototype, "encryptionAlgorithm", void 0);
|
|
13516
13516
|
d([
|
|
13517
|
-
g({ type:
|
|
13517
|
+
g({ type: sg })
|
|
13518
13518
|
], Ro.prototype, "encryptedData", void 0);
|
|
13519
13519
|
var Ic, Cc;
|
|
13520
13520
|
(function(t) {
|
|
13521
13521
|
t[t.v1 = 0] = "v1";
|
|
13522
13522
|
})(Cc || (Cc = {}));
|
|
13523
|
-
class
|
|
13523
|
+
class og extends pe {
|
|
13524
13524
|
}
|
|
13525
13525
|
let Nc = Ic = class extends ge {
|
|
13526
13526
|
constructor(e) {
|
|
@@ -13532,7 +13532,7 @@ Nc = Ic = d([
|
|
|
13532
13532
|
], Nc);
|
|
13533
13533
|
class wi {
|
|
13534
13534
|
constructor(e = {}) {
|
|
13535
|
-
this.version = Cc.v1, this.privateKeyAlgorithm = new K(), this.privateKey = new
|
|
13535
|
+
this.version = Cc.v1, this.privateKeyAlgorithm = new K(), this.privateKey = new og(), Object.assign(this, e);
|
|
13536
13536
|
}
|
|
13537
13537
|
}
|
|
13538
13538
|
d([
|
|
@@ -13542,7 +13542,7 @@ d([
|
|
|
13542
13542
|
g({ type: K })
|
|
13543
13543
|
], wi.prototype, "privateKeyAlgorithm", void 0);
|
|
13544
13544
|
d([
|
|
13545
|
-
g({ type:
|
|
13545
|
+
g({ type: og })
|
|
13546
13546
|
], wi.prototype, "privateKey", void 0);
|
|
13547
13547
|
d([
|
|
13548
13548
|
g({ type: Nc, implicit: !0, context: 0, optional: !0 })
|
|
@@ -13557,17 +13557,17 @@ let Ad = class extends Ro {
|
|
|
13557
13557
|
Ad = d([
|
|
13558
13558
|
L({ type: P.Sequence })
|
|
13559
13559
|
], Ad);
|
|
13560
|
-
class
|
|
13560
|
+
class ag {
|
|
13561
13561
|
constructor(e = {}) {
|
|
13562
13562
|
this.secretTypeId = "", this.secretValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
13563
13563
|
}
|
|
13564
13564
|
}
|
|
13565
13565
|
d([
|
|
13566
13566
|
g({ type: b.ObjectIdentifier })
|
|
13567
|
-
],
|
|
13567
|
+
], ag.prototype, "secretTypeId", void 0);
|
|
13568
13568
|
d([
|
|
13569
13569
|
g({ type: b.Any, context: 0 })
|
|
13570
|
-
],
|
|
13570
|
+
], ag.prototype, "secretValue", void 0);
|
|
13571
13571
|
class bi {
|
|
13572
13572
|
constructor(e = {}) {
|
|
13573
13573
|
this.mac = new Oo(), this.macSalt = new pe(), this.iterations = 1, Object.assign(this, e);
|
|
@@ -13620,7 +13620,7 @@ Ed = jc = d([
|
|
|
13620
13620
|
L({ type: P.Sequence, itemType: Uo })
|
|
13621
13621
|
], Ed);
|
|
13622
13622
|
var $c, Oc, Bc;
|
|
13623
|
-
const
|
|
13623
|
+
const cg = "1.2.840.113549.1.9", lg = `${cg}.7`, Fl = `${cg}.14`;
|
|
13624
13624
|
let Bs = class extends Le {
|
|
13625
13625
|
constructor(e = {}) {
|
|
13626
13626
|
super(e);
|
|
@@ -14061,16 +14061,16 @@ Yr = zi = d([
|
|
|
14061
14061
|
To()
|
|
14062
14062
|
], Yr);
|
|
14063
14063
|
Ue.registerSingleton(ki, Yr);
|
|
14064
|
-
const
|
|
14064
|
+
const ug = Symbol("name"), dg = Symbol("value");
|
|
14065
14065
|
class he {
|
|
14066
14066
|
constructor(e, n = {}, r = "") {
|
|
14067
|
-
this[
|
|
14067
|
+
this[ug] = e, this[dg] = r;
|
|
14068
14068
|
for (const i in n)
|
|
14069
14069
|
this[i] = n[i];
|
|
14070
14070
|
}
|
|
14071
14071
|
}
|
|
14072
|
-
he.NAME =
|
|
14073
|
-
he.VALUE =
|
|
14072
|
+
he.NAME = ug;
|
|
14073
|
+
he.VALUE = dg;
|
|
14074
14074
|
class qv {
|
|
14075
14075
|
static toTextObject(e) {
|
|
14076
14076
|
const n = new he("Algorithm Identifier", {}, an.toString(e.algorithm));
|
|
@@ -14095,7 +14095,7 @@ class an {
|
|
|
14095
14095
|
}
|
|
14096
14096
|
an.items = {
|
|
14097
14097
|
[Cs]: "sha1",
|
|
14098
|
-
[
|
|
14098
|
+
[Yh]: "sha224",
|
|
14099
14099
|
[Ns]: "sha256",
|
|
14100
14100
|
[js]: "sha384",
|
|
14101
14101
|
[$s]: "sha512",
|
|
@@ -14107,7 +14107,7 @@ an.items = {
|
|
|
14107
14107
|
[Is]: "sha512WithRSAEncryption",
|
|
14108
14108
|
[Gr]: "ecPublicKey",
|
|
14109
14109
|
[Ll]: "ecdsaWithSHA1",
|
|
14110
|
-
[
|
|
14110
|
+
[Gh]: "ecdsaWithSHA224",
|
|
14111
14111
|
[Ul]: "ecdsaWithSHA256",
|
|
14112
14112
|
[Vl]: "ecdsaWithSHA384",
|
|
14113
14113
|
[ql]: "ecdsaWithSHA512",
|
|
@@ -14185,7 +14185,7 @@ class cn {
|
|
|
14185
14185
|
}
|
|
14186
14186
|
}
|
|
14187
14187
|
equal(e) {
|
|
14188
|
-
return e instanceof cn ?
|
|
14188
|
+
return e instanceof cn ? jf(e.rawData, this.rawData) : !1;
|
|
14189
14189
|
}
|
|
14190
14190
|
toString(e = "text") {
|
|
14191
14191
|
switch (e) {
|
|
@@ -14236,7 +14236,7 @@ class ut extends cn {
|
|
|
14236
14236
|
return e[he.NAME] === ut.NAME && (e[he.NAME] = an.toString(this.type)), e;
|
|
14237
14237
|
}
|
|
14238
14238
|
}
|
|
14239
|
-
var
|
|
14239
|
+
var pg;
|
|
14240
14240
|
class Kt {
|
|
14241
14241
|
static isCryptoKeyPair(e) {
|
|
14242
14242
|
return e && e.privateKey && e.publicKey;
|
|
@@ -14245,7 +14245,7 @@ class Kt {
|
|
|
14245
14245
|
return e && e.usages && e.type && e.algorithm && e.extractable !== void 0;
|
|
14246
14246
|
}
|
|
14247
14247
|
constructor() {
|
|
14248
|
-
this.items = /* @__PURE__ */ new Map(), this[
|
|
14248
|
+
this.items = /* @__PURE__ */ new Map(), this[pg] = "CryptoProvider", typeof self < "u" && typeof crypto < "u" ? this.set(Kt.DEFAULT, crypto) : typeof global < "u" && global.crypto && global.crypto.subtle && this.set(Kt.DEFAULT, global.crypto);
|
|
14249
14249
|
}
|
|
14250
14250
|
clear() {
|
|
14251
14251
|
this.items.clear();
|
|
@@ -14290,13 +14290,13 @@ class Kt {
|
|
|
14290
14290
|
return this;
|
|
14291
14291
|
}
|
|
14292
14292
|
}
|
|
14293
|
-
|
|
14293
|
+
pg = Symbol.toStringTag;
|
|
14294
14294
|
Kt.DEFAULT = "default";
|
|
14295
14295
|
const Te = new Kt(), Mv = /^[0-2](?:\.[1-9][0-9]*)+$/;
|
|
14296
14296
|
function zv(t) {
|
|
14297
14297
|
return new RegExp(Mv).test(t);
|
|
14298
14298
|
}
|
|
14299
|
-
class
|
|
14299
|
+
class fg {
|
|
14300
14300
|
constructor(e = {}) {
|
|
14301
14301
|
this.items = {};
|
|
14302
14302
|
for (const n in e)
|
|
@@ -14312,7 +14312,7 @@ class pg {
|
|
|
14312
14312
|
this.items[e] = n, this.items[n] = e;
|
|
14313
14313
|
}
|
|
14314
14314
|
}
|
|
14315
|
-
const Je = new
|
|
14315
|
+
const Je = new fg();
|
|
14316
14316
|
Je.register("CN", "2.5.4.3");
|
|
14317
14317
|
Je.register("L", "2.5.4.7");
|
|
14318
14318
|
Je.register("ST", "2.5.4.8");
|
|
@@ -14342,7 +14342,7 @@ class ot {
|
|
|
14342
14342
|
return /^[A-Za-z0-9 '()+,-./:=?]*$/g.test(e);
|
|
14343
14343
|
}
|
|
14344
14344
|
constructor(e, n = {}) {
|
|
14345
|
-
this.extraNames = new
|
|
14345
|
+
this.extraNames = new fg(), this.asn = new Se();
|
|
14346
14346
|
for (const r in n)
|
|
14347
14347
|
if (Object.prototype.hasOwnProperty.call(n, r)) {
|
|
14348
14348
|
const i = n[r];
|
|
@@ -14456,7 +14456,7 @@ class ot {
|
|
|
14456
14456
|
return e.length >= 1 && !(!((n = e[0]) === null || n === void 0) && n.subtle) ? (i = e[0] || i, r = e[1] || Te.get()) : r = e[0] || Te.get(), await r.subtle.digest(i, this.toArrayBuffer());
|
|
14457
14457
|
}
|
|
14458
14458
|
}
|
|
14459
|
-
const
|
|
14459
|
+
const hg = "Cannot initialize GeneralName from ASN.1 data.", hp = `${hg} Unsupported string format in use.`, Hv = `${hg} Value doesn't match to GUID regular expression.`, gp = /^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i, mp = "1.3.6.1.4.1.311.25.1", _p = "1.3.6.1.4.1.311.20.2.3", Xo = "dns", Qo = "dn", ea = "email", ta = "ip", na = "url", ra = "guid", ia = "upn", Ti = "id";
|
|
14460
14460
|
class Wt extends cn {
|
|
14461
14461
|
constructor(...e) {
|
|
14462
14462
|
let n;
|
|
@@ -14496,7 +14496,7 @@ class Wt extends cn {
|
|
|
14496
14496
|
n = new ie({
|
|
14497
14497
|
otherName: new Fr({
|
|
14498
14498
|
typeId: _p,
|
|
14499
|
-
value: z.serialize(
|
|
14499
|
+
value: z.serialize(jh.toASN(e[1]))
|
|
14500
14500
|
})
|
|
14501
14501
|
});
|
|
14502
14502
|
break;
|
|
@@ -14848,7 +14848,7 @@ class Hl extends ut {
|
|
|
14848
14848
|
cA: e[0],
|
|
14849
14849
|
pathLenConstraint: e[1]
|
|
14850
14850
|
});
|
|
14851
|
-
super(
|
|
14851
|
+
super(Bh, e[2], z.serialize(n)), this.ca = e[0], this.pathLength = e[1];
|
|
14852
14852
|
}
|
|
14853
14853
|
}
|
|
14854
14854
|
toTextObject() {
|
|
@@ -14869,7 +14869,7 @@ class Kl extends ut {
|
|
|
14869
14869
|
this.usages = n.map((r) => r);
|
|
14870
14870
|
} else {
|
|
14871
14871
|
const n = new ds(e[0]);
|
|
14872
|
-
super(
|
|
14872
|
+
super(Rh, e[1], z.serialize(n)), this.usages = e[0];
|
|
14873
14873
|
}
|
|
14874
14874
|
}
|
|
14875
14875
|
toTextObject() {
|
|
@@ -14890,7 +14890,7 @@ class Wl extends ut {
|
|
|
14890
14890
|
this.usages = n.toNumber();
|
|
14891
14891
|
} else {
|
|
14892
14892
|
const n = new Yo(e[0]);
|
|
14893
|
-
super(
|
|
14893
|
+
super(Lh, e[1], z.serialize(n)), this.usages = e[0];
|
|
14894
14894
|
}
|
|
14895
14895
|
}
|
|
14896
14896
|
toTextObject() {
|
|
@@ -14911,7 +14911,7 @@ class xi extends ut {
|
|
|
14911
14911
|
this.keyId = Z.ToHex(n);
|
|
14912
14912
|
} else {
|
|
14913
14913
|
const n = typeof e[0] == "string" ? Z.FromHex(e[0]) : e[0], r = new Jt(n);
|
|
14914
|
-
super(
|
|
14914
|
+
super(Mh, e[1], z.serialize(r)), this.keyId = Z.ToHex(n);
|
|
14915
14915
|
}
|
|
14916
14916
|
}
|
|
14917
14917
|
toTextObject() {
|
|
@@ -14920,9 +14920,9 @@ class xi extends ut {
|
|
|
14920
14920
|
}
|
|
14921
14921
|
}
|
|
14922
14922
|
xi.NAME = "Subject Key Identifier";
|
|
14923
|
-
class
|
|
14923
|
+
class gg extends ut {
|
|
14924
14924
|
constructor(...e) {
|
|
14925
|
-
D.isBufferSource(e[0]) ? super(e[0]) : super(
|
|
14925
|
+
D.isBufferSource(e[0]) ? super(e[0]) : super(qh, e[1], new Xr(e[0] || []).rawData);
|
|
14926
14926
|
}
|
|
14927
14927
|
onInit(e) {
|
|
14928
14928
|
super.onInit(e);
|
|
@@ -14936,7 +14936,7 @@ class hg extends ut {
|
|
|
14936
14936
|
return e;
|
|
14937
14937
|
}
|
|
14938
14938
|
}
|
|
14939
|
-
|
|
14939
|
+
gg.NAME = "Subject Alternative Name";
|
|
14940
14940
|
class dt {
|
|
14941
14941
|
static register(e, n) {
|
|
14942
14942
|
this.items.set(e, n);
|
|
@@ -14947,7 +14947,7 @@ class dt {
|
|
|
14947
14947
|
}
|
|
14948
14948
|
}
|
|
14949
14949
|
dt.items = /* @__PURE__ */ new Map();
|
|
14950
|
-
class
|
|
14950
|
+
class mg extends ut {
|
|
14951
14951
|
constructor(...e) {
|
|
14952
14952
|
var n;
|
|
14953
14953
|
if (D.isBufferSource(e[0])) {
|
|
@@ -14958,7 +14958,7 @@ class gg extends ut {
|
|
|
14958
14958
|
const r = e[0], i = (n = e[1]) !== null && n !== void 0 ? n : !1, s = new ls(r.map((o) => new mo({
|
|
14959
14959
|
policyIdentifier: o
|
|
14960
14960
|
})));
|
|
14961
|
-
super(
|
|
14961
|
+
super(Th, i, z.serialize(s)), this.policies = r;
|
|
14962
14962
|
}
|
|
14963
14963
|
}
|
|
14964
14964
|
toTextObject() {
|
|
@@ -14966,9 +14966,9 @@ class gg extends ut {
|
|
|
14966
14966
|
return e.Policy = this.policies.map((n) => new he("", {}, an.toString(n))), e;
|
|
14967
14967
|
}
|
|
14968
14968
|
}
|
|
14969
|
-
|
|
14970
|
-
dt.register(
|
|
14971
|
-
class
|
|
14969
|
+
mg.NAME = "Certificate Policies";
|
|
14970
|
+
dt.register(Th, mg);
|
|
14971
|
+
class _g extends ut {
|
|
14972
14972
|
constructor(...e) {
|
|
14973
14973
|
var n;
|
|
14974
14974
|
if (D.isBufferSource(e[0]))
|
|
@@ -15000,8 +15000,8 @@ class mg extends ut {
|
|
|
15000
15000
|
}), e;
|
|
15001
15001
|
}
|
|
15002
15002
|
}
|
|
15003
|
-
|
|
15004
|
-
class
|
|
15003
|
+
_g.NAME = "CRL Distribution Points";
|
|
15004
|
+
class yg extends ut {
|
|
15005
15005
|
constructor(...e) {
|
|
15006
15006
|
var n, r, i, s;
|
|
15007
15007
|
if (D.isBufferSource(e[0]))
|
|
@@ -15038,7 +15038,7 @@ class _g extends ut {
|
|
|
15038
15038
|
return this.ocsp.length && Pi(e, "OCSP", this.ocsp), this.caIssuers.length && Pi(e, "CA Issuers", this.caIssuers), this.timeStamping.length && Pi(e, "Time Stamping", this.timeStamping), this.caRepository.length && Pi(e, "CA Repository", this.caRepository), e;
|
|
15039
15039
|
}
|
|
15040
15040
|
}
|
|
15041
|
-
|
|
15041
|
+
yg.NAME = "Authority Info Access";
|
|
15042
15042
|
function Pi(t, e, n) {
|
|
15043
15043
|
if (n.length === 1)
|
|
15044
15044
|
t[e] = n[0].toTextObject();
|
|
@@ -15084,7 +15084,7 @@ class br extends cn {
|
|
|
15084
15084
|
}
|
|
15085
15085
|
}
|
|
15086
15086
|
br.NAME = "Attribute";
|
|
15087
|
-
class
|
|
15087
|
+
class vg extends br {
|
|
15088
15088
|
constructor(...e) {
|
|
15089
15089
|
var n;
|
|
15090
15090
|
if (D.isBufferSource(e[0]))
|
|
@@ -15093,7 +15093,7 @@ class yg extends br {
|
|
|
15093
15093
|
const r = new Ps({
|
|
15094
15094
|
printableString: e[0]
|
|
15095
15095
|
});
|
|
15096
|
-
super(
|
|
15096
|
+
super(lg, [z.serialize(r)]);
|
|
15097
15097
|
}
|
|
15098
15098
|
(n = this.password) !== null && n !== void 0 || (this.password = "");
|
|
15099
15099
|
}
|
|
@@ -15108,7 +15108,7 @@ class yg extends br {
|
|
|
15108
15108
|
return e[he.VALUE] = this.password, e;
|
|
15109
15109
|
}
|
|
15110
15110
|
}
|
|
15111
|
-
|
|
15111
|
+
vg.NAME = "Challenge Password";
|
|
15112
15112
|
class Gl extends br {
|
|
15113
15113
|
constructor(...e) {
|
|
15114
15114
|
var n;
|
|
@@ -15579,15 +15579,15 @@ var kp;
|
|
|
15579
15579
|
(function(t) {
|
|
15580
15580
|
t[t.unspecified = 0] = "unspecified", t[t.keyCompromise = 1] = "keyCompromise", t[t.cACompromise = 2] = "cACompromise", t[t.affiliationChanged = 3] = "affiliationChanged", t[t.superseded = 4] = "superseded", t[t.cessationOfOperation = 5] = "cessationOfOperation", t[t.certificateHold = 6] = "certificateHold", t[t.removeFromCRL = 8] = "removeFromCRL", t[t.privilegeWithdrawn = 9] = "privilegeWithdrawn", t[t.aACompromise = 10] = "aACompromise";
|
|
15581
15581
|
})(kp || (kp = {}));
|
|
15582
|
-
dt.register(
|
|
15583
|
-
dt.register(
|
|
15584
|
-
dt.register(
|
|
15585
|
-
dt.register(
|
|
15582
|
+
dt.register(Bh, Hl);
|
|
15583
|
+
dt.register(Rh, Kl);
|
|
15584
|
+
dt.register(Lh, Wl);
|
|
15585
|
+
dt.register(Mh, xi);
|
|
15586
15586
|
dt.register(La, ei);
|
|
15587
|
-
dt.register(
|
|
15588
|
-
dt.register(za,
|
|
15589
|
-
dt.register(Ra,
|
|
15590
|
-
Vo.register(
|
|
15587
|
+
dt.register(qh, gg);
|
|
15588
|
+
dt.register(za, _g);
|
|
15589
|
+
dt.register(Ra, yg);
|
|
15590
|
+
Vo.register(lg, vg);
|
|
15591
15591
|
Vo.register(Fl, Gl);
|
|
15592
15592
|
Ue.registerSingleton(Si, ew);
|
|
15593
15593
|
Ue.registerSingleton(Si, at);
|
|
@@ -15641,7 +15641,7 @@ function rw(t, e) {
|
|
|
15641
15641
|
}
|
|
15642
15642
|
async function iw(t) {
|
|
15643
15643
|
const e = await t.publicKey.export(), n = await crypto.subtle.exportKey("jwk", e), r = JSON.stringify(n, Object.keys(n).sort()), s = new TextEncoder().encode(r);
|
|
15644
|
-
return Sa(await
|
|
15644
|
+
return Sa(await hf(s));
|
|
15645
15645
|
}
|
|
15646
15646
|
const sw = 1e3 * 60 * 60 * 24, ow = new ae().openapi(
|
|
15647
15647
|
U({
|
|
@@ -15797,7 +15797,7 @@ const sw = 1e3 * 60 * 60 * 24, ow = new ae().openapi(
|
|
|
15797
15797
|
200: {
|
|
15798
15798
|
content: {
|
|
15799
15799
|
"tenant/json": {
|
|
15800
|
-
schema: a.array(
|
|
15800
|
+
schema: a.array(of)
|
|
15801
15801
|
}
|
|
15802
15802
|
},
|
|
15803
15803
|
description: "List of users"
|
|
@@ -16715,7 +16715,7 @@ const uw = Pn.extend({
|
|
|
16715
16715
|
}
|
|
16716
16716
|
);
|
|
16717
16717
|
let xp = !1;
|
|
16718
|
-
function
|
|
16718
|
+
function wg(t) {
|
|
16719
16719
|
t.use(async (e, n) => (xp || (t.openAPIRegistry.registerComponent("securitySchemes", "Bearer", {
|
|
16720
16720
|
type: "oauth2",
|
|
16721
16721
|
scheme: "bearer",
|
|
@@ -16780,7 +16780,7 @@ function bw(t) {
|
|
|
16780
16780
|
raw: { header: e, payload: n, signature: r }
|
|
16781
16781
|
};
|
|
16782
16782
|
}
|
|
16783
|
-
function
|
|
16783
|
+
function bg(t) {
|
|
16784
16784
|
return async (e, n) => {
|
|
16785
16785
|
var i, s, o;
|
|
16786
16786
|
const r = t.openAPIRegistry.definitions.find(
|
|
@@ -17026,7 +17026,7 @@ const kw = new ae().openapi(
|
|
|
17026
17026
|
200: {
|
|
17027
17027
|
content: {
|
|
17028
17028
|
"application/json": {
|
|
17029
|
-
schema:
|
|
17029
|
+
schema: df
|
|
17030
17030
|
}
|
|
17031
17031
|
},
|
|
17032
17032
|
description: "A session"
|
|
@@ -17227,7 +17227,7 @@ const kw = new ae().openapi(
|
|
|
17227
17227
|
body: {
|
|
17228
17228
|
content: {
|
|
17229
17229
|
"application/json": {
|
|
17230
|
-
schema: a.object(
|
|
17230
|
+
schema: a.object(cf.shape)
|
|
17231
17231
|
}
|
|
17232
17232
|
}
|
|
17233
17233
|
},
|
|
@@ -17298,7 +17298,7 @@ async function Zl(t, e) {
|
|
|
17298
17298
|
if (n) {
|
|
17299
17299
|
const i = await t.env.data.customDomains.getByDomain(n);
|
|
17300
17300
|
if (i)
|
|
17301
|
-
return t.set("tenant_id", i.tenant_id), await e();
|
|
17301
|
+
return t.set("tenant_id", i.tenant_id), t.set("custom_domain", n), await e();
|
|
17302
17302
|
}
|
|
17303
17303
|
const r = t.req.header("host");
|
|
17304
17304
|
if (r) {
|
|
@@ -17313,8 +17313,7 @@ async function Zl(t, e) {
|
|
|
17313
17313
|
function Ew(t) {
|
|
17314
17314
|
const e = new ae();
|
|
17315
17315
|
e.use(
|
|
17316
|
-
|
|
17317
|
-
jm({
|
|
17316
|
+
rf({
|
|
17318
17317
|
origin: (r) => {
|
|
17319
17318
|
var i;
|
|
17320
17319
|
return r && (i = t.allowedOrigins) != null && i.includes(r) ? r : "";
|
|
@@ -17333,7 +17332,7 @@ function Ew(t) {
|
|
|
17333
17332
|
maxAge: 600,
|
|
17334
17333
|
credentials: !0
|
|
17335
17334
|
})
|
|
17336
|
-
),
|
|
17335
|
+
), wg(e), e.use(async (r, i) => (r.env.data = Ws(r, t.dataAdapter), i())), e.use(Zl).use(bg(e));
|
|
17337
17336
|
const n = e.route("/branding", Qm).route("/custom-domains", Aw).route("/email/providers", kw).route("/users", cy).route("/keys", ow).route("/users-by-email", aw).route("/clients", lw).route("/tenants", dw).route("/logs", fw).route("/hooks", gw).route("/connections", _w).route("/prompts", yw).route("/sessions", xw).route("/refresh_tokens", Sw);
|
|
17338
17337
|
return n.doc("/spec", {
|
|
17339
17338
|
openapi: "3.0.0",
|
|
@@ -17363,12 +17362,12 @@ var Ap;
|
|
|
17363
17362
|
t[t.Required = 0] = "Required", t[t.Ignore = 1] = "Ignore";
|
|
17364
17363
|
})(Ap || (Ap = {}));
|
|
17365
17364
|
function Cw(t) {
|
|
17366
|
-
return
|
|
17365
|
+
return xg(t, Nw, ti.Include);
|
|
17367
17366
|
}
|
|
17368
|
-
function
|
|
17369
|
-
return
|
|
17367
|
+
function kg(t) {
|
|
17368
|
+
return xg(t, jw, ti.None);
|
|
17370
17369
|
}
|
|
17371
|
-
function
|
|
17370
|
+
function xg(t, e, n) {
|
|
17372
17371
|
let r = "";
|
|
17373
17372
|
for (let i = 0; i < t.byteLength; i += 3) {
|
|
17374
17373
|
let s = 0, o = 0;
|
|
@@ -17709,11 +17708,11 @@ class Pw {
|
|
|
17709
17708
|
}
|
|
17710
17709
|
function Rw(t) {
|
|
17711
17710
|
const e = Ow(new TextEncoder().encode(t));
|
|
17712
|
-
return
|
|
17711
|
+
return kg(e);
|
|
17713
17712
|
}
|
|
17714
17713
|
function Lw() {
|
|
17715
17714
|
const t = new Uint8Array(32);
|
|
17716
|
-
return crypto.getRandomValues(t),
|
|
17715
|
+
return crypto.getRandomValues(t), kg(t);
|
|
17717
17716
|
}
|
|
17718
17717
|
function qr(t, e) {
|
|
17719
17718
|
const n = new TextEncoder().encode(e.toString()), r = new Request(t, {
|
|
@@ -17731,7 +17730,7 @@ async function Us(t) {
|
|
|
17731
17730
|
try {
|
|
17732
17731
|
e = await fetch(t);
|
|
17733
17732
|
} catch (n) {
|
|
17734
|
-
throw new
|
|
17733
|
+
throw new Ag(n);
|
|
17735
17734
|
}
|
|
17736
17735
|
if (e.status === 400 || e.status === 401) {
|
|
17737
17736
|
let n;
|
|
@@ -17744,7 +17743,7 @@ async function Us(t) {
|
|
|
17744
17743
|
throw new Gn(e.status, n);
|
|
17745
17744
|
let r;
|
|
17746
17745
|
try {
|
|
17747
|
-
r =
|
|
17746
|
+
r = Sg(n);
|
|
17748
17747
|
} catch {
|
|
17749
17748
|
throw new Gn(e.status, n);
|
|
17750
17749
|
}
|
|
@@ -17768,7 +17767,7 @@ async function Uw(t) {
|
|
|
17768
17767
|
try {
|
|
17769
17768
|
e = await fetch(t);
|
|
17770
17769
|
} catch (n) {
|
|
17771
|
-
throw new
|
|
17770
|
+
throw new Ag(n);
|
|
17772
17771
|
}
|
|
17773
17772
|
if (e.status === 400 || e.status === 401) {
|
|
17774
17773
|
let n;
|
|
@@ -17781,7 +17780,7 @@ async function Uw(t) {
|
|
|
17781
17780
|
throw new Gn(e.status, n);
|
|
17782
17781
|
let r;
|
|
17783
17782
|
try {
|
|
17784
|
-
r =
|
|
17783
|
+
r = Sg(n);
|
|
17785
17784
|
} catch {
|
|
17786
17785
|
throw new Gn(e.status, n);
|
|
17787
17786
|
}
|
|
@@ -17793,7 +17792,7 @@ async function Uw(t) {
|
|
|
17793
17792
|
}
|
|
17794
17793
|
throw e.body !== null && await e.body.cancel(), new Fi(e.status);
|
|
17795
17794
|
}
|
|
17796
|
-
function
|
|
17795
|
+
function Sg(t) {
|
|
17797
17796
|
let e;
|
|
17798
17797
|
if ("error" in t && typeof t.error == "string")
|
|
17799
17798
|
e = t.error;
|
|
@@ -17817,7 +17816,7 @@ function xg(t) {
|
|
|
17817
17816
|
}
|
|
17818
17817
|
return new Vw(e, n, r, i);
|
|
17819
17818
|
}
|
|
17820
|
-
class
|
|
17819
|
+
class Ag extends Error {
|
|
17821
17820
|
constructor(e) {
|
|
17822
17821
|
super("Failed to send request", {
|
|
17823
17822
|
cause: e
|
|
@@ -17943,7 +17942,7 @@ function Dw(t, e) {
|
|
|
17943
17942
|
return new TextEncoder().encode(i);
|
|
17944
17943
|
}
|
|
17945
17944
|
const Fw = "https://appleid.apple.com/auth/authorize", Hw = "https://appleid.apple.com/auth/token";
|
|
17946
|
-
class
|
|
17945
|
+
class Eg {
|
|
17947
17946
|
constructor(e, n, r, i, s) {
|
|
17948
17947
|
ne(this, "clientId");
|
|
17949
17948
|
ne(this, "teamId");
|
|
@@ -17986,7 +17985,7 @@ class Ag {
|
|
|
17986
17985
|
}
|
|
17987
17986
|
}
|
|
17988
17987
|
const Kw = "https://www.facebook.com/v16.0/dialog/oauth", Ww = "https://graph.facebook.com/v16.0/oauth/access_token";
|
|
17989
|
-
class
|
|
17988
|
+
class Ig {
|
|
17990
17989
|
constructor(e, n, r) {
|
|
17991
17990
|
ne(this, "clientId");
|
|
17992
17991
|
ne(this, "clientSecret");
|
|
@@ -18005,7 +18004,7 @@ class Eg {
|
|
|
18005
18004
|
}
|
|
18006
18005
|
}
|
|
18007
18006
|
const Gw = "https://accounts.google.com/o/oauth2/v2/auth", $p = "https://oauth2.googleapis.com/token", Jw = "https://oauth2.googleapis.com/revoke";
|
|
18008
|
-
let
|
|
18007
|
+
let Cg = class {
|
|
18009
18008
|
constructor(e, n, r) {
|
|
18010
18009
|
ne(this, "client");
|
|
18011
18010
|
this.client = new Yl(e, n, r);
|
|
@@ -18068,7 +18067,7 @@ function vt(t) {
|
|
|
18068
18067
|
function Be(t) {
|
|
18069
18068
|
return t.OAUTH_API_URL || t.ISSUER;
|
|
18070
18069
|
}
|
|
18071
|
-
function
|
|
18070
|
+
function Ng(t) {
|
|
18072
18071
|
const { options: e } = t;
|
|
18073
18072
|
if (!e || !e.client_id || !e.team_id || !e.kid || !e.app_secret)
|
|
18074
18073
|
throw new Error("Missing required Apple authentication parameters");
|
|
@@ -18077,7 +18076,7 @@ function Cg(t) {
|
|
|
18077
18076
|
}
|
|
18078
18077
|
async function Yw(t, e) {
|
|
18079
18078
|
var l, u;
|
|
18080
|
-
const { options: n, keyArray: r } =
|
|
18079
|
+
const { options: n, keyArray: r } = Ng(e), i = new Eg(
|
|
18081
18080
|
n.client_id,
|
|
18082
18081
|
n.team_id,
|
|
18083
18082
|
n.kid,
|
|
@@ -18093,7 +18092,7 @@ async function Yw(t, e) {
|
|
|
18093
18092
|
};
|
|
18094
18093
|
}
|
|
18095
18094
|
async function Xw(t, e, n) {
|
|
18096
|
-
const { options: r, keyArray: i } =
|
|
18095
|
+
const { options: r, keyArray: i } = Ng(e), o = await new Eg(
|
|
18097
18096
|
r.client_id,
|
|
18098
18097
|
r.team_id,
|
|
18099
18098
|
r.kid,
|
|
@@ -18123,7 +18122,7 @@ async function eb(t, e) {
|
|
|
18123
18122
|
const { options: n } = e;
|
|
18124
18123
|
if (!(n != null && n.client_id) || !n.client_secret)
|
|
18125
18124
|
throw new Error("Missing required authentication parameters");
|
|
18126
|
-
const r = new
|
|
18125
|
+
const r = new Ig(
|
|
18127
18126
|
n.client_id,
|
|
18128
18127
|
n.client_secret,
|
|
18129
18128
|
`${Be(t.env)}callback`
|
|
@@ -18140,7 +18139,7 @@ async function tb(t, e, n) {
|
|
|
18140
18139
|
const { options: r } = e;
|
|
18141
18140
|
if (!(r != null && r.client_id) || !r.client_secret)
|
|
18142
18141
|
throw new Error("Missing required authentication parameters");
|
|
18143
|
-
const s = await new
|
|
18142
|
+
const s = await new Ig(
|
|
18144
18143
|
r.client_id,
|
|
18145
18144
|
r.client_secret,
|
|
18146
18145
|
`${Be(t.env)}callback`
|
|
@@ -18171,7 +18170,7 @@ async function rb(t, e) {
|
|
|
18171
18170
|
const { options: n } = e;
|
|
18172
18171
|
if (!(n != null && n.client_id) || !n.client_secret)
|
|
18173
18172
|
throw new Error("Missing required Google authentication parameters");
|
|
18174
|
-
const r = new
|
|
18173
|
+
const r = new Cg(
|
|
18175
18174
|
n.client_id,
|
|
18176
18175
|
n.client_secret,
|
|
18177
18176
|
`${Be(t.env)}callback`
|
|
@@ -18190,7 +18189,7 @@ async function ib(t, e, n, r) {
|
|
|
18190
18189
|
const { options: i } = e;
|
|
18191
18190
|
if (!(i != null && i.client_id) || !i.client_secret || !r)
|
|
18192
18191
|
throw new Error("Missing required authentication parameters");
|
|
18193
|
-
const o = await new
|
|
18192
|
+
const o = await new Cg(
|
|
18194
18193
|
i.client_id,
|
|
18195
18194
|
i.client_secret,
|
|
18196
18195
|
`${Be(t.env)}callback`
|
|
@@ -18275,7 +18274,7 @@ const cb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
18275
18274
|
getRedirect: ob,
|
|
18276
18275
|
validateAuthorizationCodeAndGetUser: ab
|
|
18277
18276
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
18278
|
-
function
|
|
18277
|
+
function jg(t, e) {
|
|
18279
18278
|
const n = t.env.STRATEGIES || {}, i = {
|
|
18280
18279
|
apple: Qw,
|
|
18281
18280
|
facebook: nb,
|
|
@@ -18386,7 +18385,7 @@ async function ub(t, e, n, r) {
|
|
|
18386
18385
|
csrf_token: Ae(),
|
|
18387
18386
|
...rn(t.req)
|
|
18388
18387
|
}));
|
|
18389
|
-
const c = await
|
|
18388
|
+
const c = await jg(t, i.strategy).getRedirect(t, i);
|
|
18390
18389
|
return await t.env.data.codes.create(e.tenant.id, {
|
|
18391
18390
|
login_id: s.id,
|
|
18392
18391
|
code_id: c.code,
|
|
@@ -18448,7 +18447,7 @@ async function Op(t, { code: e, state: n }) {
|
|
|
18448
18447
|
message: _
|
|
18449
18448
|
});
|
|
18450
18449
|
}
|
|
18451
|
-
const u = await
|
|
18450
|
+
const u = await jg(t, c.strategy).validateAuthorizationCodeAndGetUser(
|
|
18452
18451
|
t,
|
|
18453
18452
|
c,
|
|
18454
18453
|
e,
|
|
@@ -18762,7 +18761,7 @@ const db = new ae().openapi(
|
|
|
18762
18761
|
const e = await t.env.data.keys.list(), n = await Promise.all(
|
|
18763
18762
|
e.map(async (r) => {
|
|
18764
18763
|
const s = await new Jl(r.cert).publicKey.export(), o = await crypto.subtle.exportKey("jwk", s);
|
|
18765
|
-
return
|
|
18764
|
+
return lf.parse({
|
|
18766
18765
|
...o,
|
|
18767
18766
|
kid: r.kid
|
|
18768
18767
|
});
|
|
@@ -18885,7 +18884,7 @@ function Hi(t, e) {
|
|
|
18885
18884
|
n |= t.charCodeAt(r) ^ e.charCodeAt(r);
|
|
18886
18885
|
return n === 0;
|
|
18887
18886
|
}
|
|
18888
|
-
const
|
|
18887
|
+
const $g = a.object({
|
|
18889
18888
|
grant_type: a.literal("client_credentials"),
|
|
18890
18889
|
scope: a.string().optional(),
|
|
18891
18890
|
client_secret: a.string(),
|
|
@@ -19034,7 +19033,7 @@ const Pp = a.object({
|
|
|
19034
19033
|
client_secret: a.string().optional()
|
|
19035
19034
|
}), wb = a.union([
|
|
19036
19035
|
// Client credentials
|
|
19037
|
-
|
|
19036
|
+
$g.extend(Pp.shape),
|
|
19038
19037
|
// PKCE. This needs to be before the normal code grant as the client_secret is optional here
|
|
19039
19038
|
a.object({
|
|
19040
19039
|
grant_type: a.literal("authorization_code"),
|
|
@@ -19107,7 +19106,7 @@ const kb = new ae().openapi(
|
|
|
19107
19106
|
case Vi.ClientCredential:
|
|
19108
19107
|
return gb(
|
|
19109
19108
|
t,
|
|
19110
|
-
|
|
19109
|
+
$g.parse(r)
|
|
19111
19110
|
);
|
|
19112
19111
|
case Vi.RefreshToken:
|
|
19113
19112
|
return vb(t, yb.parse(r));
|
|
@@ -19142,7 +19141,7 @@ const Ql = [
|
|
|
19142
19141
|
minDiversity: 4,
|
|
19143
19142
|
minLength: 10
|
|
19144
19143
|
}
|
|
19145
|
-
],
|
|
19144
|
+
], Og = (t, e = Ql, n = "!\"#$%&'()*+,-./:;<=>?@[\\\\\\]^_`{|}~") => {
|
|
19146
19145
|
let r = t || "";
|
|
19147
19146
|
e[0].minDiversity = 0, e[0].minLength = 0;
|
|
19148
19147
|
const i = [
|
|
@@ -19168,8 +19167,8 @@ const Ql = [
|
|
|
19168
19167
|
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 }));
|
|
19169
19168
|
return Object.assign(s, o[0]), s;
|
|
19170
19169
|
};
|
|
19171
|
-
Xl.exports = { passwordStrength:
|
|
19172
|
-
var xb = Xl.exports.passwordStrength =
|
|
19170
|
+
Xl.exports = { passwordStrength: Og, defaultOptions: Ql };
|
|
19171
|
+
var xb = Xl.exports.passwordStrength = Og;
|
|
19173
19172
|
Xl.exports.defaultOptions = Ql;
|
|
19174
19173
|
function eu(t) {
|
|
19175
19174
|
return xb(t).id < 2 ? !1 : t.length >= 8 && // Minimum length
|
|
@@ -19193,7 +19192,7 @@ async function Ai(t, e) {
|
|
|
19193
19192
|
from: n.default_from_address || `login@${t.env.ISSUER}`
|
|
19194
19193
|
});
|
|
19195
19194
|
}
|
|
19196
|
-
async function
|
|
19195
|
+
async function Bg(t, e, n, r) {
|
|
19197
19196
|
const i = await t.env.data.tenants.get(t.var.tenant_id);
|
|
19198
19197
|
if (!i)
|
|
19199
19198
|
throw new C(500, { message: "Tenant not found" });
|
|
@@ -19224,7 +19223,7 @@ async function Og(t, e, n, r) {
|
|
|
19224
19223
|
}
|
|
19225
19224
|
});
|
|
19226
19225
|
}
|
|
19227
|
-
async function
|
|
19226
|
+
async function Tg(t, e, n) {
|
|
19228
19227
|
const r = await t.env.data.tenants.get(t.var.tenant_id);
|
|
19229
19228
|
if (!r)
|
|
19230
19229
|
throw new C(500, { message: "Tenant not found" });
|
|
@@ -19494,7 +19493,7 @@ const Ab = new ae().openapi(
|
|
|
19494
19493
|
...rn(t.req)
|
|
19495
19494
|
}
|
|
19496
19495
|
);
|
|
19497
|
-
return await
|
|
19496
|
+
return await Bg(
|
|
19498
19497
|
t,
|
|
19499
19498
|
e,
|
|
19500
19499
|
o.id,
|
|
@@ -19578,7 +19577,7 @@ const Eb = new ae().openapi(
|
|
|
19578
19577
|
connection: a.string(),
|
|
19579
19578
|
email: a.string().transform((t) => t.toLowerCase()),
|
|
19580
19579
|
send: a.enum(["link", "code"]),
|
|
19581
|
-
authParams:
|
|
19580
|
+
authParams: af.omit({ client_id: !0 })
|
|
19582
19581
|
})
|
|
19583
19582
|
}
|
|
19584
19583
|
}
|
|
@@ -19611,7 +19610,7 @@ const Eb = new ae().openapi(
|
|
|
19611
19610
|
login_id: l.id,
|
|
19612
19611
|
expires_at: new Date(Date.now() + Aa).toISOString()
|
|
19613
19612
|
});
|
|
19614
|
-
return s === "link" ? await tu(t, i, u.code_id, { ...o, client_id: r }) : await
|
|
19613
|
+
return s === "link" ? await tu(t, i, u.code_id, { ...o, client_id: r }) : await Tg(t, i, u.code_id), t.html("OK");
|
|
19615
19614
|
}
|
|
19616
19615
|
).openapi(
|
|
19617
19616
|
U({
|
|
@@ -19801,7 +19800,7 @@ async function Ib(t, e, n, r) {
|
|
|
19801
19800
|
Date.now() + E_
|
|
19802
19801
|
).toISOString()
|
|
19803
19802
|
});
|
|
19804
|
-
await
|
|
19803
|
+
await Bg(t, n, c.code_id, r);
|
|
19805
19804
|
}
|
|
19806
19805
|
const Cb = new ae().openapi(
|
|
19807
19806
|
U({
|
|
@@ -19995,7 +19994,7 @@ async function Ob(t, e, n, r, i) {
|
|
|
19995
19994
|
ip: t.req.header("x-real-ip")
|
|
19996
19995
|
});
|
|
19997
19996
|
t.set("username", p.email), t.set("user_id", p.user_id);
|
|
19998
|
-
const f = await
|
|
19997
|
+
const f = await Cf(t, {
|
|
19999
19998
|
user: p,
|
|
20000
19999
|
client: l,
|
|
20001
20000
|
loginSession: c
|
|
@@ -20108,7 +20107,7 @@ async function Bb({
|
|
|
20108
20107
|
},
|
|
20109
20108
|
user: w,
|
|
20110
20109
|
session_id: n.id
|
|
20111
|
-
}, j = p === Yt.CODE ? await
|
|
20110
|
+
}, j = p === Yt.CODE ? await If(t, S) : await Ks(t, S);
|
|
20112
20111
|
await f.data.sessions.update(e.tenant.id, n.id, {
|
|
20113
20112
|
used_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
20114
20113
|
last_interaction_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -20128,7 +20127,7 @@ async function Bb({
|
|
|
20128
20127
|
await t.env.data.logs.create(e.tenant.id, T);
|
|
20129
20128
|
const V = new Headers();
|
|
20130
20129
|
V.set("Server-Timing", "cf-nel=0; no-cloudflare-insights=1");
|
|
20131
|
-
const ee =
|
|
20130
|
+
const ee = vf(
|
|
20132
20131
|
e.tenant.id,
|
|
20133
20132
|
n.id,
|
|
20134
20133
|
t.req.header("host")
|
|
@@ -20269,7 +20268,20 @@ const Tb = new ae().openapi(
|
|
|
20269
20268
|
);
|
|
20270
20269
|
function Pb(t) {
|
|
20271
20270
|
const e = new ae();
|
|
20272
|
-
e.use(async (r, i) => (r.env.data = Ws(r, t.dataAdapter), i())), e.use(
|
|
20271
|
+
e.use(async (r, i) => (r.env.data = Ws(r, t.dataAdapter), i())), e.use(
|
|
20272
|
+
"/oauth/token",
|
|
20273
|
+
rf({
|
|
20274
|
+
origin: (r) => r || "",
|
|
20275
|
+
allowHeaders: [
|
|
20276
|
+
"Tenant-Id",
|
|
20277
|
+
"Content-Type",
|
|
20278
|
+
"Auth0-Client",
|
|
20279
|
+
"Upgrade-Insecure-Requests"
|
|
20280
|
+
],
|
|
20281
|
+
allowMethods: ["POST"],
|
|
20282
|
+
maxAge: 600
|
|
20283
|
+
})
|
|
20284
|
+
), e.use(Zl).use(bg(e));
|
|
20273
20285
|
const n = e.route("/v2/logout", pb).route("/userinfo", fb).route("/.well-known", hb).route("/oauth/token", kb).route("/dbconnections", Ab).route("/passwordless", Eb).route("/co/authenticate", Cb).route("/authorize", Tb).route("/callback", db);
|
|
20274
20286
|
return n.doc("/spec", {
|
|
20275
20287
|
openapi: "3.0.0",
|
|
@@ -20282,7 +20294,7 @@ function Pb(t) {
|
|
|
20282
20294
|
oauth2: ["openid", "email", "profile"]
|
|
20283
20295
|
}
|
|
20284
20296
|
]
|
|
20285
|
-
}),
|
|
20297
|
+
}), wg(n), n;
|
|
20286
20298
|
}
|
|
20287
20299
|
var Rb = {
|
|
20288
20300
|
Stringify: 1,
|
|
@@ -20291,7 +20303,7 @@ var Rb = {
|
|
|
20291
20303
|
}, _t = (t, e) => {
|
|
20292
20304
|
const n = new String(t);
|
|
20293
20305
|
return n.isEscaped = !0, n.callbacks = e, n;
|
|
20294
|
-
}, Lb = /[&<>'"]/,
|
|
20306
|
+
}, Lb = /[&<>'"]/, Pg = async (t, e) => {
|
|
20295
20307
|
let n = "";
|
|
20296
20308
|
e || (e = []);
|
|
20297
20309
|
const r = await Promise.all(t);
|
|
@@ -20337,7 +20349,7 @@ var Rb = {
|
|
|
20337
20349
|
e[0] += t.substring(s, i) + r, s = i + 1;
|
|
20338
20350
|
}
|
|
20339
20351
|
e[0] += t.substring(s, i);
|
|
20340
|
-
},
|
|
20352
|
+
}, Rg = (t) => {
|
|
20341
20353
|
const e = t.callbacks;
|
|
20342
20354
|
if (!(e != null && e.length))
|
|
20343
20355
|
return t;
|
|
@@ -20368,8 +20380,8 @@ var Rb = {
|
|
|
20368
20380
|
}
|
|
20369
20381
|
}
|
|
20370
20382
|
}
|
|
20371
|
-
return n[0] += t[t.length - 1], n.length === 1 ? "callbacks" in n ? _t(
|
|
20372
|
-
}, su = Symbol("RENDERER"), Kc = Symbol("ERROR_HANDLER"), Ie = Symbol("STASH"),
|
|
20383
|
+
return n[0] += t[t.length - 1], n.length === 1 ? "callbacks" in n ? _t(Rg(_t(n[0], n.callbacks))) : _t(n[0]) : Pg(n, n.callbacks);
|
|
20384
|
+
}, su = Symbol("RENDERER"), Kc = Symbol("ERROR_HANDLER"), Ie = Symbol("STASH"), Lg = Symbol("INTERNAL"), Vb = Symbol("MEMO"), qs = Symbol("PERMALINK"), Lp = (t) => (t[Lg] = !0, t), Ug = (t) => ({ value: e, children: n }) => {
|
|
20373
20385
|
if (!n)
|
|
20374
20386
|
return;
|
|
20375
20387
|
const r = {
|
|
@@ -20392,21 +20404,21 @@ var Rb = {
|
|
|
20392
20404
|
return i[Kc] = (s) => {
|
|
20393
20405
|
throw t.pop(), s;
|
|
20394
20406
|
}, i;
|
|
20395
|
-
},
|
|
20396
|
-
const e = [t], n =
|
|
20407
|
+
}, Vg = (t) => {
|
|
20408
|
+
const e = [t], n = Ug(e);
|
|
20397
20409
|
return n.values = e, n.Provider = n, ar.push(n), n;
|
|
20398
20410
|
}, ar = [], qb = (t) => {
|
|
20399
20411
|
const e = [t], n = (r) => {
|
|
20400
20412
|
e.push(r.value);
|
|
20401
20413
|
let i;
|
|
20402
20414
|
try {
|
|
20403
|
-
i = r.children ? (Array.isArray(r.children) ? new
|
|
20415
|
+
i = r.children ? (Array.isArray(r.children) ? new Dg("", {}, r.children) : r.children).toString() : "";
|
|
20404
20416
|
} finally {
|
|
20405
20417
|
e.pop();
|
|
20406
20418
|
}
|
|
20407
20419
|
return i instanceof Promise ? i.then((s) => _t(s, s.callbacks)) : _t(i);
|
|
20408
20420
|
};
|
|
20409
|
-
return n.values = e, n.Provider = n, n[su] =
|
|
20421
|
+
return n.values = e, n.Provider = n, n[su] = Ug(e), ar.push(n), n;
|
|
20410
20422
|
}, kr = (t) => t.values.at(-1), Ki = {
|
|
20411
20423
|
title: [],
|
|
20412
20424
|
script: ["src"],
|
|
@@ -20481,7 +20493,7 @@ var Rb = {
|
|
|
20481
20493
|
}) => ["href", "precedence"].every((n) => n in e) ? (e["data-href"] = e.href, delete e.href, Ci("style", t, e, !0)) : Ii("style", t, e), Fb = ({ children: t, ...e }) => ["onLoad", "onError"].some((n) => n in e) || e.rel === "stylesheet" && (!("precedence" in e) || "disabled" in e) ? Ii("link", t, e) : Ci("link", t, e, "precedence" in e), Hb = ({ children: t, ...e }) => {
|
|
20482
20494
|
const n = ou();
|
|
20483
20495
|
return n && kr(n) === "head" ? Ii("meta", t, e) : Ci("meta", t, e, !1);
|
|
20484
|
-
},
|
|
20496
|
+
}, qg = (t, { children: e, ...n }) => new yt(t, n, Ei(e ?? [])), Kb = (t) => (typeof t.action == "function" && (t.action = qs in t.action ? t.action[qs] : void 0), qg("form", t)), Mg = (t, e) => (typeof e.formAction == "function" && (e.formAction = qs in e.formAction ? e.formAction[qs] : void 0), qg(t, e)), Wb = (t) => Mg("input", t), Gb = (t) => Mg("button", t);
|
|
20485
20497
|
const la = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20486
20498
|
__proto__: null,
|
|
20487
20499
|
button: Gb,
|
|
@@ -20502,7 +20514,7 @@ var Jb = /* @__PURE__ */ new Map([
|
|
|
20502
20514
|
["fetchPriority", "fetchpriority"],
|
|
20503
20515
|
["noModule", "nomodule"],
|
|
20504
20516
|
["formAction", "formaction"]
|
|
20505
|
-
]), Ms = (t) => Jb.get(t) || t,
|
|
20517
|
+
]), Ms = (t) => Jb.get(t) || t, zg = (t, e) => {
|
|
20506
20518
|
for (const [n, r] of Object.entries(t)) {
|
|
20507
20519
|
const i = n[0] === "-" || !/[A-Z]/.test(n) ? n : n.replace(/[A-Z]/g, (s) => `-${s.toLowerCase()}`);
|
|
20508
20520
|
e(
|
|
@@ -20597,7 +20609,7 @@ var Jb = /* @__PURE__ */ new Map([
|
|
|
20597
20609
|
r.values.pop();
|
|
20598
20610
|
});
|
|
20599
20611
|
}
|
|
20600
|
-
return t.length === 1 ? "callbacks" in t ?
|
|
20612
|
+
return t.length === 1 ? "callbacks" in t ? Rg(_t(t[0], t.callbacks)).toString() : t[0] : Pg(t, t.callbacks);
|
|
20601
20613
|
}
|
|
20602
20614
|
toStringToBuffer(t) {
|
|
20603
20615
|
const e = this.tag, n = this.props;
|
|
@@ -20608,7 +20620,7 @@ var Jb = /* @__PURE__ */ new Map([
|
|
|
20608
20620
|
if (s = i(s), s !== "children") {
|
|
20609
20621
|
if (s === "style" && typeof o == "object") {
|
|
20610
20622
|
let c = "";
|
|
20611
|
-
|
|
20623
|
+
zg(o, (l, u) => {
|
|
20612
20624
|
u != null && (c += `${c ? ";" : ""}${l}:${u}`);
|
|
20613
20625
|
}), t[0] += ' style="', Zt(c, t), t[0] += '"';
|
|
20614
20626
|
} else if (typeof o == "string")
|
|
@@ -20654,7 +20666,7 @@ var Jb = /* @__PURE__ */ new Map([
|
|
|
20654
20666
|
}
|
|
20655
20667
|
else n instanceof yt ? n.toStringToBuffer(t) : typeof n == "number" || n.isEscaped ? (t[0] += n, n.callbacks && (t.callbacks || (t.callbacks = []), t.callbacks.push(...n.callbacks))) : Zt(n, t);
|
|
20656
20668
|
}
|
|
20657
|
-
},
|
|
20669
|
+
}, Dg = class extends yt {
|
|
20658
20670
|
toStringToBuffer(t) {
|
|
20659
20671
|
au(this.children, t);
|
|
20660
20672
|
}
|
|
@@ -20685,7 +20697,7 @@ var Jb = /* @__PURE__ */ new Map([
|
|
|
20685
20697
|
])) : new yt(t, e, n);
|
|
20686
20698
|
}, cu = ({
|
|
20687
20699
|
children: t
|
|
20688
|
-
}) => new
|
|
20700
|
+
}) => new Dg(
|
|
20689
20701
|
"",
|
|
20690
20702
|
{
|
|
20691
20703
|
children: t
|
|
@@ -20828,7 +20840,7 @@ const n1 = ({ vendorSettings: t }) => t != null && t.logoUrl ? /* @__PURE__ */ y
|
|
|
20828
20840
|
)
|
|
20829
20841
|
] }) });
|
|
20830
20842
|
};
|
|
20831
|
-
var
|
|
20843
|
+
var Fg = { exports: {} };
|
|
20832
20844
|
/*!
|
|
20833
20845
|
Copyright (c) 2018 Jed Watson.
|
|
20834
20846
|
Licensed under the MIT License (MIT), see
|
|
@@ -20863,9 +20875,9 @@ var Dg = { exports: {} };
|
|
|
20863
20875
|
}
|
|
20864
20876
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
20865
20877
|
})();
|
|
20866
|
-
})(
|
|
20867
|
-
var i1 =
|
|
20868
|
-
const Ct = /* @__PURE__ */
|
|
20878
|
+
})(Fg);
|
|
20879
|
+
var i1 = Fg.exports;
|
|
20880
|
+
const Ct = /* @__PURE__ */ pf(i1), s1 = (t) => t === "small" ? "text-base" : t === "medium" ? "text-2xl" : t === "large" ? "text-3xl" : "", tt = ({ name: t, size: e, className: n = "" }) => {
|
|
20869
20881
|
const r = s1(e);
|
|
20870
20882
|
return /* @__PURE__ */ y("span", { className: Ct(`uicon-${t}`, n, r) });
|
|
20871
20883
|
};
|
|
@@ -21443,7 +21455,7 @@ const m1 = new ae().openapi(
|
|
|
21443
21455
|
f.code_id,
|
|
21444
21456
|
s.authParams
|
|
21445
21457
|
)
|
|
21446
|
-
) : it(t,
|
|
21458
|
+
) : it(t, Tg(t, r.username, f.code_id)), t.redirect(`/u/enter-code?state=${n}`);
|
|
21447
21459
|
}
|
|
21448
21460
|
), Nt = (t) => /* @__PURE__ */ y(
|
|
21449
21461
|
"a",
|
|
@@ -21492,7 +21504,7 @@ var ii = "_hp", _1 = {
|
|
|
21492
21504
|
typeof s == "function" ? c = s(t) || (() => s(null)) : s && "current" in s && (s.current = t, c = () => s.current = null), Gc.set(t, c);
|
|
21493
21505
|
} else if (i === "style") {
|
|
21494
21506
|
const c = t.style;
|
|
21495
|
-
typeof s == "string" ? c.cssText = s : (c.cssText = "", s != null &&
|
|
21507
|
+
typeof s == "string" ? c.cssText = s : (c.cssText = "", s != null && zg(s, c.setProperty.bind(c)));
|
|
21496
21508
|
} else {
|
|
21497
21509
|
if (i === "value") {
|
|
21498
21510
|
const l = t.nodeName;
|
|
@@ -21531,16 +21543,16 @@ var ii = "_hp", _1 = {
|
|
|
21531
21543
|
} finally {
|
|
21532
21544
|
si.pop();
|
|
21533
21545
|
}
|
|
21534
|
-
},
|
|
21546
|
+
}, Hg = (t, e, n, r, i) => {
|
|
21535
21547
|
var s, o;
|
|
21536
|
-
(s = t.vR) != null && s.length && (r.push(...t.vR), delete t.vR), typeof t.tag == "function" && ((o = t[Ie][1][
|
|
21548
|
+
(s = t.vR) != null && s.length && (r.push(...t.vR), delete t.vR), typeof t.tag == "function" && ((o = t[Ie][1][Jg]) == null || o.forEach((c) => i.push(c))), t.vC.forEach((c) => {
|
|
21537
21549
|
var l;
|
|
21538
21550
|
if (Tt(c))
|
|
21539
21551
|
n.push(c);
|
|
21540
21552
|
else if (typeof c.tag == "function" || c.tag === "") {
|
|
21541
21553
|
c.c = e;
|
|
21542
21554
|
const u = n.length;
|
|
21543
|
-
if (
|
|
21555
|
+
if (Hg(c, e, n, r, i), c.s) {
|
|
21544
21556
|
for (let p = u; p < n.length; p++)
|
|
21545
21557
|
n[p].s = !0;
|
|
21546
21558
|
c.s = !1;
|
|
@@ -21555,24 +21567,24 @@ var ii = "_hp", _1 = {
|
|
|
21555
21567
|
if (t.tag !== ii && t.e)
|
|
21556
21568
|
return t.e;
|
|
21557
21569
|
}
|
|
21558
|
-
},
|
|
21570
|
+
}, Kg = (t) => {
|
|
21559
21571
|
var e, n, r, i, s, o;
|
|
21560
|
-
Tt(t) || ((n = (e = t[Ie]) == null ? void 0 : e[1][
|
|
21572
|
+
Tt(t) || ((n = (e = t[Ie]) == null ? void 0 : e[1][Jg]) == null || n.forEach((c) => {
|
|
21561
21573
|
var l;
|
|
21562
21574
|
return (l = c[2]) == null ? void 0 : l.call(c);
|
|
21563
|
-
}), (r = Gc.get(t.e)) == null || r(), t.p === 2 && ((i = t.vC) == null || i.forEach((c) => c.p = 2)), (s = t.vC) == null || s.forEach(
|
|
21564
|
-
},
|
|
21565
|
-
t.c = e,
|
|
21575
|
+
}), (r = Gc.get(t.e)) == null || r(), t.p === 2 && ((i = t.vC) == null || i.forEach((c) => c.p = 2)), (s = t.vC) == null || s.forEach(Kg)), t.p || ((o = t.e) == null || o.remove(), delete t.e), typeof t.tag == "function" && (Br.delete(t), Ji.delete(t), delete t[Ie][3], t.a = !0);
|
|
21576
|
+
}, Wg = (t, e, n) => {
|
|
21577
|
+
t.c = e, Gg(t, e, n);
|
|
21566
21578
|
}, Wp = (t, e) => {
|
|
21567
21579
|
if (e) {
|
|
21568
21580
|
for (let n = 0, r = t.length; n < r; n++)
|
|
21569
21581
|
if (t[n] === e)
|
|
21570
21582
|
return n;
|
|
21571
21583
|
}
|
|
21572
|
-
}, Gp = Symbol(),
|
|
21584
|
+
}, Gp = Symbol(), Gg = (t, e, n) => {
|
|
21573
21585
|
var u;
|
|
21574
21586
|
const r = [], i = [], s = [];
|
|
21575
|
-
|
|
21587
|
+
Hg(t, e, r, i, s), i.forEach(Kg);
|
|
21576
21588
|
const o = n ? void 0 : e.childNodes;
|
|
21577
21589
|
let c, l = null;
|
|
21578
21590
|
if (n)
|
|
@@ -21590,7 +21602,7 @@ var ii = "_hp", _1 = {
|
|
|
21590
21602
|
v = m.e, m.s = !1;
|
|
21591
21603
|
else {
|
|
21592
21604
|
const h = n || !m.e;
|
|
21593
|
-
Tt(m) ? (m.e && m.d && (m.e.textContent = m.t), m.d = !1, v = m.e || (m.e = document.createTextNode(m.t))) : (v = m.e || (m.e = m.n ? document.createElementNS(m.n, m.tag) : document.createElement(m.tag)), w1(v, m.props, m.pP),
|
|
21605
|
+
Tt(m) ? (m.e && m.d && (m.e.textContent = m.t), m.d = !1, v = m.e || (m.e = document.createTextNode(m.t))) : (v = m.e || (m.e = m.n ? document.createElementNS(m.n, m.tag) : document.createElement(m.tag)), w1(v, m.props, m.pP), Gg(m, v, h));
|
|
21594
21606
|
}
|
|
21595
21607
|
m.tag === ii ? c-- : n ? v.parentNode || e.appendChild(v) : o[c] !== v && o[c - 1] !== v && (o[c + 1] === v ? e.appendChild(o[c]) : e.insertBefore(v, l || o[c] || null));
|
|
21596
21608
|
}
|
|
@@ -21615,7 +21627,7 @@ var ii = "_hp", _1 = {
|
|
|
21615
21627
|
Array.isArray(n[h]) && n.splice(h, 1, ...n[h].flat());
|
|
21616
21628
|
let _ = x1(n[h]);
|
|
21617
21629
|
if (_) {
|
|
21618
|
-
typeof _.tag == "function" && !_.tag[
|
|
21630
|
+
typeof _.tag == "function" && !_.tag[Lg] && (ar.length > 0 && (_[Ie][2] = ar.map((S) => [S, S.values.at(-1)])), (o = t[5]) != null && o.length && (_[Ie][3] = t[5].at(-1)));
|
|
21619
21631
|
let w;
|
|
21620
21632
|
if (f && f.length) {
|
|
21621
21633
|
const S = f.findIndex(
|
|
@@ -21663,7 +21675,7 @@ var ii = "_hp", _1 = {
|
|
|
21663
21675
|
if (t[0] === 1)
|
|
21664
21676
|
t[1] = !0;
|
|
21665
21677
|
else if (Jc(t, h, [S]), (v.length === 1 || t !== m) && h.c) {
|
|
21666
|
-
|
|
21678
|
+
Wg(h, h.c, !1);
|
|
21667
21679
|
return;
|
|
21668
21680
|
}
|
|
21669
21681
|
throw Gp;
|
|
@@ -21689,7 +21701,7 @@ var ii = "_hp", _1 = {
|
|
|
21689
21701
|
t[Ie] = [0, []];
|
|
21690
21702
|
else {
|
|
21691
21703
|
const e = y1[t.tag];
|
|
21692
|
-
e && (lr || (lr =
|
|
21704
|
+
e && (lr || (lr = Vg("")), t.props.children = [
|
|
21693
21705
|
{
|
|
21694
21706
|
tag: lr,
|
|
21695
21707
|
props: {
|
|
@@ -21717,7 +21729,7 @@ var ii = "_hp", _1 = {
|
|
|
21717
21729
|
}
|
|
21718
21730
|
(r = e[Ie][2]) == null || r.forEach(([i]) => {
|
|
21719
21731
|
i.values.pop();
|
|
21720
|
-
}), (t[0] !== 1 || !t[1]) &&
|
|
21732
|
+
}), (t[0] !== 1 || !t[1]) && Wg(e, e.c, !1);
|
|
21721
21733
|
}, Br = /* @__PURE__ */ new WeakMap(), Zp = [], Zi = async (t, e) => {
|
|
21722
21734
|
t[5] || (t[5] = []);
|
|
21723
21735
|
const n = Br.get(e);
|
|
@@ -21747,7 +21759,7 @@ var ii = "_hp", _1 = {
|
|
|
21747
21759
|
key: n,
|
|
21748
21760
|
e,
|
|
21749
21761
|
p: 1
|
|
21750
|
-
}), pa = 0,
|
|
21762
|
+
}), pa = 0, Jg = 1, fa = 2, ha = 3, ga = /* @__PURE__ */ new WeakMap(), Zg = (t, e) => !t || !e || t.length !== e.length || e.some((n, r) => n !== t[r]), A1 = void 0, Yp = [], E1 = (t) => {
|
|
21751
21763
|
var o;
|
|
21752
21764
|
const e = () => typeof t == "function" ? t() : t, n = si.at(-1);
|
|
21753
21765
|
if (!n)
|
|
@@ -21784,7 +21796,7 @@ var ii = "_hp", _1 = {
|
|
|
21784
21796
|
if (!n)
|
|
21785
21797
|
return t;
|
|
21786
21798
|
const [, r] = n, i = (c = r[Ie][1])[fa] || (c[fa] = []), s = r[Ie][0]++, o = i[s];
|
|
21787
|
-
return
|
|
21799
|
+
return Zg(o == null ? void 0 : o[1], e) ? i[s] = [t, e] : t = i[s][0], t;
|
|
21788
21800
|
}, I1 = (t) => {
|
|
21789
21801
|
const e = ga.get(t);
|
|
21790
21802
|
if (e) {
|
|
@@ -21802,8 +21814,8 @@ var ii = "_hp", _1 = {
|
|
|
21802
21814
|
if (!n)
|
|
21803
21815
|
return t();
|
|
21804
21816
|
const [, r] = n, i = (c = r[Ie][1])[ha] || (c[ha] = []), s = r[Ie][0]++, o = i[s];
|
|
21805
|
-
return
|
|
21806
|
-
}, N1 =
|
|
21817
|
+
return Zg(o == null ? void 0 : o[1], e) && (i[s] = [t(), e]), i[s][0];
|
|
21818
|
+
}, N1 = Vg({
|
|
21807
21819
|
pending: !1,
|
|
21808
21820
|
data: null,
|
|
21809
21821
|
method: null,
|
|
@@ -21944,12 +21956,12 @@ var ii = "_hp", _1 = {
|
|
|
21944
21956
|
props: t,
|
|
21945
21957
|
type: "link",
|
|
21946
21958
|
ref: t.ref
|
|
21947
|
-
} : Ni("link", t, 1, "precedence" in t, !0), P1 = (t) => Ni("meta", t, void 0, !1, !1),
|
|
21959
|
+
} : Ni("link", t, 1, "precedence" in t, !0), P1 = (t) => Ni("meta", t, void 0, !1, !1), Yg = Symbol(), R1 = (t) => {
|
|
21948
21960
|
const { action: e, ...n } = t;
|
|
21949
21961
|
typeof e != "function" && (n.action = e);
|
|
21950
21962
|
const [r, i] = E1([null, !1]), s = uu(
|
|
21951
21963
|
async (u) => {
|
|
21952
|
-
const p = u.isTrusted ? e : u.detail[
|
|
21964
|
+
const p = u.isTrusted ? e : u.detail[Yg];
|
|
21953
21965
|
if (typeof p != "function")
|
|
21954
21966
|
return;
|
|
21955
21967
|
u.preventDefault();
|
|
@@ -21983,14 +21995,14 @@ var ii = "_hp", _1 = {
|
|
|
21983
21995
|
},
|
|
21984
21996
|
f: l
|
|
21985
21997
|
};
|
|
21986
|
-
},
|
|
21998
|
+
}, Xg = (t, {
|
|
21987
21999
|
formAction: e,
|
|
21988
22000
|
...n
|
|
21989
22001
|
}) => {
|
|
21990
22002
|
if (typeof e == "function") {
|
|
21991
22003
|
const r = uu((i) => {
|
|
21992
22004
|
i.preventDefault(), i.currentTarget.form.dispatchEvent(
|
|
21993
|
-
new CustomEvent("submit", { detail: { [
|
|
22005
|
+
new CustomEvent("submit", { detail: { [Yg]: e } })
|
|
21994
22006
|
);
|
|
21995
22007
|
}, []);
|
|
21996
22008
|
n.ref = du(n.ref, (i) => (i.addEventListener("click", r), () => {
|
|
@@ -22003,7 +22015,7 @@ var ii = "_hp", _1 = {
|
|
|
22003
22015
|
type: t,
|
|
22004
22016
|
ref: n.ref
|
|
22005
22017
|
};
|
|
22006
|
-
}, L1 = (t) =>
|
|
22018
|
+
}, L1 = (t) => Xg("input", t), U1 = (t) => Xg("button", t);
|
|
22007
22019
|
Object.assign(Wc, {
|
|
22008
22020
|
title: $1,
|
|
22009
22021
|
script: O1,
|
|
@@ -22611,7 +22623,7 @@ const pu = (t) => {
|
|
|
22611
22623
|
provider: "auth2"
|
|
22612
22624
|
}))
|
|
22613
22625
|
throw new C(400, { message: "Invalid sign up" });
|
|
22614
|
-
const m = (p == null ? void 0 : p.authParams.username) === l, v = await
|
|
22626
|
+
const m = (p == null ? void 0 : p.authParams.username) === l, v = await Nf(t).users.create(
|
|
22615
22627
|
s.tenant.id,
|
|
22616
22628
|
{
|
|
22617
22629
|
user_id: `auth2|${Ds()}`,
|
|
@@ -24360,7 +24372,7 @@ export {
|
|
|
24360
24372
|
va as applicationInsertSchema,
|
|
24361
24373
|
Fn as applicationSchema,
|
|
24362
24374
|
Bt as auth0UserResponseSchema,
|
|
24363
|
-
|
|
24375
|
+
af as authParamsSchema,
|
|
24364
24376
|
Zc as baseUserSchema,
|
|
24365
24377
|
Wm as bordersSchema,
|
|
24366
24378
|
Pu as brandingSchema,
|
|
@@ -24370,7 +24382,7 @@ export {
|
|
|
24370
24382
|
Gm as colorsSchema,
|
|
24371
24383
|
wa as connectionInsertSchema,
|
|
24372
24384
|
hn as connectionSchema,
|
|
24373
|
-
|
|
24385
|
+
cf as customDomainInsertSchema,
|
|
24374
24386
|
pn as customDomainSchema,
|
|
24375
24387
|
y5 as customDomainWithTenantIdSchema,
|
|
24376
24388
|
Go as emailProviderSchema,
|
|
@@ -24381,7 +24393,7 @@ export {
|
|
|
24381
24393
|
Om as identitySchema,
|
|
24382
24394
|
kB as init,
|
|
24383
24395
|
qm as jwksKeySchema,
|
|
24384
|
-
|
|
24396
|
+
lf as jwksSchema,
|
|
24385
24397
|
xa as logSchema,
|
|
24386
24398
|
Mm as loginSessionInsertSchema,
|
|
24387
24399
|
v5 as loginSessionSchema,
|
|
@@ -24392,7 +24404,7 @@ export {
|
|
|
24392
24404
|
w5 as passwordSchema,
|
|
24393
24405
|
$m as profileDataSchema,
|
|
24394
24406
|
Wo as promptSettingSchema,
|
|
24395
|
-
|
|
24407
|
+
df as refreshTokenInsertSchema,
|
|
24396
24408
|
k5 as refreshTokenSchema,
|
|
24397
24409
|
Pm as samlpAddon,
|
|
24398
24410
|
Hm as sessionInsertSchema,
|
|
@@ -24406,7 +24418,7 @@ export {
|
|
|
24406
24418
|
Pn as totalsSchema,
|
|
24407
24419
|
ya as userInsertSchema,
|
|
24408
24420
|
m5 as userResponseSchema,
|
|
24409
|
-
|
|
24421
|
+
of as userSchema,
|
|
24410
24422
|
Rm as vendorSettingsSchema,
|
|
24411
24423
|
Vm as verificationMethodsSchema,
|
|
24412
24424
|
Ym as widgetSchema
|