authhero 0.59.0 → 0.61.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 +9 -9
- package/dist/authhero.mjs +856 -829
- package/package.json +3 -3
package/dist/authhero.mjs
CHANGED
|
@@ -57,7 +57,7 @@ const Q = (n) => typeof n == "string", ni = () => {
|
|
|
57
57
|
for (const i in e)
|
|
58
58
|
i !== "__proto__" && i !== "constructor" && (i in n ? Q(n[i]) || n[i] instanceof String || Q(e[i]) || e[i] instanceof String ? t && (n[i] = e[i]) : bd(n[i], e[i], t) : n[i] = e[i]);
|
|
59
59
|
return n;
|
|
60
|
-
},
|
|
60
|
+
}, bn = (n) => n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
61
61
|
var mh = {
|
|
62
62
|
"&": "&",
|
|
63
63
|
"<": "<",
|
|
@@ -90,7 +90,7 @@ const wh = [" ", ",", "?", "!", ";"], bh = new vh(20), kh = (n, e, t) => {
|
|
|
90
90
|
o > 0 && !r.test(n.substring(0, o)) && (s = !0);
|
|
91
91
|
}
|
|
92
92
|
return s;
|
|
93
|
-
},
|
|
93
|
+
}, ho = function(n, e) {
|
|
94
94
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
95
95
|
if (!n) return;
|
|
96
96
|
if (n[e])
|
|
@@ -226,7 +226,7 @@ class cl extends Yr {
|
|
|
226
226
|
let c;
|
|
227
227
|
e.indexOf(".") > -1 ? c = e.split(".") : (c = [e, t], i && (Array.isArray(i) ? c.push(...i) : Q(i) && s ? c.push(...i.split(s)) : c.push(i)));
|
|
228
228
|
const l = lr(this.data, c);
|
|
229
|
-
return !l && !t && !i && e.indexOf(".") > -1 && (e = c[0], t = c[1], i = c.slice(2).join(".")), l || !o || !Q(i) ? l :
|
|
229
|
+
return !l && !t && !i && e.indexOf(".") > -1 && (e = c[0], t = c[1], i = c.slice(2).join(".")), l || !o || !Q(i) ? l : ho((p = (u = this.data) == null ? void 0 : u[e]) == null ? void 0 : p[t], i, s);
|
|
230
230
|
}
|
|
231
231
|
addResource(e, t, i, r) {
|
|
232
232
|
let s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
@@ -670,8 +670,8 @@ class Sh {
|
|
|
670
670
|
}
|
|
671
671
|
const fl = function(n, e, t) {
|
|
672
672
|
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = _h(n, e, t);
|
|
673
|
-
return !s && r && Q(t) && (s =
|
|
674
|
-
},
|
|
673
|
+
return !s && r && Q(t) && (s = ho(n, t, i), s === void 0 && (s = ho(e, t, i))), s;
|
|
674
|
+
}, Zs = (n) => n.replace(/\$/g, "$$$$");
|
|
675
675
|
class Ah {
|
|
676
676
|
constructor() {
|
|
677
677
|
var t;
|
|
@@ -702,7 +702,7 @@ class Ah {
|
|
|
702
702
|
maxReplaces: S,
|
|
703
703
|
alwaysFormat: B
|
|
704
704
|
} = e.interpolation;
|
|
705
|
-
this.escape = t !== void 0 ? t : yh, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = r !== void 0 ? r : !1, this.prefix = s ?
|
|
705
|
+
this.escape = t !== void 0 ? t : yh, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = r !== void 0 ? r : !1, this.prefix = s ? bn(s) : o || "{{", this.suffix = c ? bn(c) : l || "}}", this.formatSeparator = u || ",", this.unescapePrefix = p ? "" : g || "-", this.unescapeSuffix = this.unescapePrefix ? "" : p || "", this.nestingPrefix = _ ? bn(_) : x || bn("$t("), this.nestingSuffix = h ? bn(h) : m || bn(")"), this.nestingOptionsSeparator = b || ",", this.maxReplaces = S || 1e3, this.alwaysFormat = B !== void 0 ? B : !1, this.resetRegExp();
|
|
706
706
|
}
|
|
707
707
|
reset() {
|
|
708
708
|
this.options && this.init(this.options);
|
|
@@ -734,10 +734,10 @@ class Ah {
|
|
|
734
734
|
const p = (r == null ? void 0 : r.missingInterpolationHandler) || this.options.missingInterpolationHandler, g = ((x = r == null ? void 0 : r.interpolation) == null ? void 0 : x.skipOnVariables) !== void 0 ? r.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
735
735
|
return [{
|
|
736
736
|
regex: this.regexpUnescape,
|
|
737
|
-
safeValue: (h) =>
|
|
737
|
+
safeValue: (h) => Zs(h)
|
|
738
738
|
}, {
|
|
739
739
|
regex: this.regexp,
|
|
740
|
-
safeValue: (h) => this.escapeValue ?
|
|
740
|
+
safeValue: (h) => this.escapeValue ? Zs(this.escape(h)) : Zs(h)
|
|
741
741
|
}].forEach((h) => {
|
|
742
742
|
for (c = 0; s = h.regex.exec(e); ) {
|
|
743
743
|
const m = s[1].trim();
|
|
@@ -816,7 +816,7 @@ const Ih = (n) => {
|
|
|
816
816
|
formatName: e,
|
|
817
817
|
formatOptions: t
|
|
818
818
|
};
|
|
819
|
-
},
|
|
819
|
+
}, kn = (n) => {
|
|
820
820
|
const e = {};
|
|
821
821
|
return (t, i, r) => {
|
|
822
822
|
let s = r;
|
|
@@ -833,32 +833,32 @@ class Eh {
|
|
|
833
833
|
constructor() {
|
|
834
834
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
835
835
|
this.logger = _t.create("formatter"), this.options = e, this.formats = {
|
|
836
|
-
number:
|
|
836
|
+
number: kn((t, i) => {
|
|
837
837
|
const r = new Intl.NumberFormat(t, {
|
|
838
838
|
...i
|
|
839
839
|
});
|
|
840
840
|
return (s) => r.format(s);
|
|
841
841
|
}),
|
|
842
|
-
currency:
|
|
842
|
+
currency: kn((t, i) => {
|
|
843
843
|
const r = new Intl.NumberFormat(t, {
|
|
844
844
|
...i,
|
|
845
845
|
style: "currency"
|
|
846
846
|
});
|
|
847
847
|
return (s) => r.format(s);
|
|
848
848
|
}),
|
|
849
|
-
datetime:
|
|
849
|
+
datetime: kn((t, i) => {
|
|
850
850
|
const r = new Intl.DateTimeFormat(t, {
|
|
851
851
|
...i
|
|
852
852
|
});
|
|
853
853
|
return (s) => r.format(s);
|
|
854
854
|
}),
|
|
855
|
-
relativetime:
|
|
855
|
+
relativetime: kn((t, i) => {
|
|
856
856
|
const r = new Intl.RelativeTimeFormat(t, {
|
|
857
857
|
...i
|
|
858
858
|
});
|
|
859
859
|
return (s) => r.format(s, i.range || "day");
|
|
860
860
|
}),
|
|
861
|
-
list:
|
|
861
|
+
list: kn((t, i) => {
|
|
862
862
|
const r = new Intl.ListFormat(t, {
|
|
863
863
|
...i
|
|
864
864
|
});
|
|
@@ -876,7 +876,7 @@ class Eh {
|
|
|
876
876
|
this.formats[e.toLowerCase().trim()] = t;
|
|
877
877
|
}
|
|
878
878
|
addCached(e, t) {
|
|
879
|
-
this.formats[e.toLowerCase().trim()] =
|
|
879
|
+
this.formats[e.toLowerCase().trim()] = kn(t);
|
|
880
880
|
}
|
|
881
881
|
format(e, t, i) {
|
|
882
882
|
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
@@ -1385,11 +1385,11 @@ Pe.setDefaultNamespace;
|
|
|
1385
1385
|
Pe.hasLoadedNamespace;
|
|
1386
1386
|
Pe.loadNamespaces;
|
|
1387
1387
|
Pe.loadLanguages;
|
|
1388
|
-
const
|
|
1388
|
+
const mn = a.object({
|
|
1389
1389
|
start: a.number(),
|
|
1390
1390
|
limit: a.number(),
|
|
1391
1391
|
length: a.number()
|
|
1392
|
-
}),
|
|
1392
|
+
}), Da = a.object({
|
|
1393
1393
|
created_at: a.string(),
|
|
1394
1394
|
updated_at: a.string()
|
|
1395
1395
|
}), Nh = a.object({
|
|
@@ -1410,7 +1410,7 @@ const yn = a.object({
|
|
|
1410
1410
|
access_token_secret: a.string().optional(),
|
|
1411
1411
|
refresh_token: a.string().optional(),
|
|
1412
1412
|
profileData: Nh.optional()
|
|
1413
|
-
}),
|
|
1413
|
+
}), qa = a.object({
|
|
1414
1414
|
email: a.string().optional(),
|
|
1415
1415
|
username: a.string().optional(),
|
|
1416
1416
|
given_name: a.string().optional(),
|
|
@@ -1424,7 +1424,7 @@ const yn = a.object({
|
|
|
1424
1424
|
user_id: a.string().optional(),
|
|
1425
1425
|
app_metadata: a.any().default({}).optional(),
|
|
1426
1426
|
user_metadata: a.any().default({}).optional()
|
|
1427
|
-
}),
|
|
1427
|
+
}), go = qa.extend({
|
|
1428
1428
|
email_verified: a.boolean().default(!1),
|
|
1429
1429
|
verify_email: a.boolean().optional(),
|
|
1430
1430
|
last_ip: a.string().optional(),
|
|
@@ -1434,15 +1434,15 @@ const yn = a.object({
|
|
|
1434
1434
|
connection: a.string().default("email"),
|
|
1435
1435
|
is_social: a.boolean().optional()
|
|
1436
1436
|
}), xd = a.object({
|
|
1437
|
-
...
|
|
1438
|
-
...
|
|
1437
|
+
...go.shape,
|
|
1438
|
+
...Da.shape,
|
|
1439
1439
|
user_id: a.string(),
|
|
1440
1440
|
is_social: a.boolean(),
|
|
1441
1441
|
// TODO: this not might be correct if you use the username
|
|
1442
1442
|
email: a.string(),
|
|
1443
1443
|
login_count: a.number(),
|
|
1444
1444
|
identities: a.array(Oh).optional()
|
|
1445
|
-
}), St = xd, H3 =
|
|
1445
|
+
}), St = xd, H3 = qa.extend({
|
|
1446
1446
|
email: a.string(),
|
|
1447
1447
|
login_count: a.number(),
|
|
1448
1448
|
multifactor: a.array(a.string()).optional(),
|
|
@@ -1473,7 +1473,7 @@ const Ph = a.object({
|
|
|
1473
1473
|
nameIdentifierProbes: a.array(a.string()).optional(),
|
|
1474
1474
|
authnContextClassRef: a.string().optional(),
|
|
1475
1475
|
mappings: a.record(a.string()).optional()
|
|
1476
|
-
}),
|
|
1476
|
+
}), _o = a.object({
|
|
1477
1477
|
id: a.string(),
|
|
1478
1478
|
name: a.string(),
|
|
1479
1479
|
callbacks: a.array(a.string()).default([]).optional().openapi({
|
|
@@ -1503,25 +1503,25 @@ const Ph = a.object({
|
|
|
1503
1503
|
disable_sign_ups: a.boolean().optional().default(!1).openapi({
|
|
1504
1504
|
description: "Prevents users from signing up using the hosted login page. This is not available in auth0"
|
|
1505
1505
|
})
|
|
1506
|
-
}),
|
|
1506
|
+
}), An = a.object({
|
|
1507
1507
|
created_at: a.string().transform((n) => n === null ? "" : n),
|
|
1508
1508
|
updated_at: a.string().transform((n) => n === null ? "" : n),
|
|
1509
|
-
...
|
|
1509
|
+
..._o.shape
|
|
1510
1510
|
});
|
|
1511
|
-
var
|
|
1511
|
+
var jn = /* @__PURE__ */ ((n) => (n.TOKEN = "token", n.TOKEN_ID_TOKEN = "token id_token", n.CODE = "code", n))(jn || {}), nn = /* @__PURE__ */ ((n) => (n.QUERY = "query", n.FRAGMENT = "fragment", n.FORM_POST = "form_post", n.WEB_MESSAGE = "web_message", n.SAML_POST = "saml_post", n))(nn || {}), Fa = /* @__PURE__ */ ((n) => (n.S256 = "S256", n.Plain = "plain", n))(Fa || {});
|
|
1512
1512
|
const Sd = a.object({
|
|
1513
1513
|
client_id: a.string(),
|
|
1514
1514
|
vendor_id: a.string().optional(),
|
|
1515
1515
|
act_as: a.string().optional(),
|
|
1516
|
-
response_type: a.nativeEnum(
|
|
1517
|
-
response_mode: a.nativeEnum(
|
|
1516
|
+
response_type: a.nativeEnum(jn).optional(),
|
|
1517
|
+
response_mode: a.nativeEnum(nn).optional(),
|
|
1518
1518
|
redirect_uri: a.string().optional(),
|
|
1519
1519
|
audience: a.string().optional(),
|
|
1520
1520
|
state: a.string().optional(),
|
|
1521
1521
|
nonce: a.string().optional(),
|
|
1522
1522
|
scope: a.string().optional(),
|
|
1523
1523
|
prompt: a.string().optional(),
|
|
1524
|
-
code_challenge_method: a.nativeEnum(
|
|
1524
|
+
code_challenge_method: a.nativeEnum(Fa).optional(),
|
|
1525
1525
|
code_challenge: a.string().optional(),
|
|
1526
1526
|
username: a.string().optional(),
|
|
1527
1527
|
ui_locales: a.string().optional()
|
|
@@ -1540,7 +1540,7 @@ const Sd = a.object({
|
|
|
1540
1540
|
font: a.object({
|
|
1541
1541
|
url: a.string()
|
|
1542
1542
|
}).optional()
|
|
1543
|
-
}),
|
|
1543
|
+
}), mo = a.object({
|
|
1544
1544
|
id: a.string().optional(),
|
|
1545
1545
|
name: a.string(),
|
|
1546
1546
|
strategy: a.string(),
|
|
@@ -1566,7 +1566,7 @@ const Sd = a.object({
|
|
|
1566
1566
|
id: a.string(),
|
|
1567
1567
|
created_at: a.string().transform((n) => n === null ? "" : n),
|
|
1568
1568
|
updated_at: a.string().transform((n) => n === null ? "" : n)
|
|
1569
|
-
}).extend(
|
|
1569
|
+
}).extend(mo.shape), yo = a.object({
|
|
1570
1570
|
name: a.string(),
|
|
1571
1571
|
audience: a.string(),
|
|
1572
1572
|
sender_email: a.string().email(),
|
|
@@ -1580,7 +1580,7 @@ const Sd = a.object({
|
|
|
1580
1580
|
}), li = a.object({
|
|
1581
1581
|
created_at: a.string().transform((n) => n === null ? "" : n),
|
|
1582
1582
|
updated_at: a.string().transform((n) => n === null ? "" : n),
|
|
1583
|
-
...
|
|
1583
|
+
...yo.shape,
|
|
1584
1584
|
id: a.string()
|
|
1585
1585
|
}), K3 = a.object({
|
|
1586
1586
|
logoUrl: a.string(),
|
|
@@ -1607,7 +1607,7 @@ const Sd = a.object({
|
|
|
1607
1607
|
email_service: a.string().optional()
|
|
1608
1608
|
});
|
|
1609
1609
|
a.object({
|
|
1610
|
-
...
|
|
1610
|
+
...An.shape,
|
|
1611
1611
|
domains: a.array(Rh),
|
|
1612
1612
|
tenant: li,
|
|
1613
1613
|
connections: a.array(Jt)
|
|
@@ -1645,10 +1645,10 @@ const Lh = a.enum([
|
|
|
1645
1645
|
dkim_public_key: a.string().optional(),
|
|
1646
1646
|
email_api_key: a.string().optional(),
|
|
1647
1647
|
email_service: a.string().optional()
|
|
1648
|
-
}), G3 =
|
|
1648
|
+
}), G3 = Da.extend({
|
|
1649
1649
|
...Vh.shape,
|
|
1650
1650
|
id: a.string()
|
|
1651
|
-
}),
|
|
1651
|
+
}), vo = a.object({
|
|
1652
1652
|
trigger_id: a.enum([
|
|
1653
1653
|
"pre-user-signup",
|
|
1654
1654
|
"post-user-registration",
|
|
@@ -1659,8 +1659,8 @@ const Lh = a.enum([
|
|
|
1659
1659
|
hook_id: a.string().optional(),
|
|
1660
1660
|
synchronous: a.boolean().default(!1),
|
|
1661
1661
|
priority: a.number().optional()
|
|
1662
|
-
}), ai =
|
|
1663
|
-
...
|
|
1662
|
+
}), ai = vo.extend({
|
|
1663
|
+
...Da.shape,
|
|
1664
1664
|
hook_id: a.string()
|
|
1665
1665
|
}), Ad = a.object({
|
|
1666
1666
|
alg: a.enum([
|
|
@@ -1777,7 +1777,7 @@ const Dh = a.enum([
|
|
|
1777
1777
|
env: a.object({
|
|
1778
1778
|
node: a.string().optional()
|
|
1779
1779
|
}).optional()
|
|
1780
|
-
}),
|
|
1780
|
+
}), wo = a.object({
|
|
1781
1781
|
type: Dh,
|
|
1782
1782
|
date: a.string(),
|
|
1783
1783
|
description: a.string().optional(),
|
|
@@ -1818,7 +1818,7 @@ const Dh = a.enum([
|
|
|
1818
1818
|
}), Hh = a.object({
|
|
1819
1819
|
id: a.string(),
|
|
1820
1820
|
revoked_at: a.string().optional(),
|
|
1821
|
-
used_at: a.string(),
|
|
1821
|
+
used_at: a.string().optional(),
|
|
1822
1822
|
user_id: a.string().describe("The user ID associated with the session"),
|
|
1823
1823
|
expires_at: a.string().optional(),
|
|
1824
1824
|
idle_expires_at: a.string().optional(),
|
|
@@ -1826,7 +1826,7 @@ const Dh = a.enum([
|
|
|
1826
1826
|
"Metadata related to the device used in the session"
|
|
1827
1827
|
),
|
|
1828
1828
|
clients: a.array(a.string()).describe("List of client details for the session")
|
|
1829
|
-
}),
|
|
1829
|
+
}), Ha = a.object({
|
|
1830
1830
|
created_at: a.string(),
|
|
1831
1831
|
updated_at: a.string(),
|
|
1832
1832
|
authenticated_at: a.string(),
|
|
@@ -1896,19 +1896,19 @@ const Wh = a.object({
|
|
|
1896
1896
|
success: a.string(),
|
|
1897
1897
|
widget_background: a.string(),
|
|
1898
1898
|
widget_border: a.string()
|
|
1899
|
-
}),
|
|
1899
|
+
}), xn = a.object({
|
|
1900
1900
|
bold: a.boolean(),
|
|
1901
1901
|
size: a.number()
|
|
1902
1902
|
}), Jh = a.object({
|
|
1903
|
-
body_text:
|
|
1904
|
-
buttons_text:
|
|
1903
|
+
body_text: xn,
|
|
1904
|
+
buttons_text: xn,
|
|
1905
1905
|
font_url: a.string(),
|
|
1906
|
-
input_labels:
|
|
1907
|
-
links:
|
|
1906
|
+
input_labels: xn,
|
|
1907
|
+
links: xn,
|
|
1908
1908
|
links_style: a.enum(["normal"]),
|
|
1909
1909
|
reference_text_size: a.number(),
|
|
1910
|
-
subtitle:
|
|
1911
|
-
title:
|
|
1910
|
+
subtitle: xn,
|
|
1911
|
+
title: xn
|
|
1912
1912
|
}), Zh = a.object({
|
|
1913
1913
|
background_color: a.string(),
|
|
1914
1914
|
background_image_url: a.string(),
|
|
@@ -1928,12 +1928,12 @@ const Wh = a.object({
|
|
|
1928
1928
|
widget: Yh
|
|
1929
1929
|
}), Y3 = Xh.extend({
|
|
1930
1930
|
themeId: a.string()
|
|
1931
|
-
}),
|
|
1931
|
+
}), Ys = a.object({
|
|
1932
1932
|
universal_login_experience: a.enum(["new", "classic"]).default("new"),
|
|
1933
1933
|
identifier_first: a.boolean().default(!0),
|
|
1934
1934
|
password_first: a.boolean().default(!1),
|
|
1935
1935
|
webauthn_platform_first_factor: a.boolean()
|
|
1936
|
-
}),
|
|
1936
|
+
}), Xs = a.object({
|
|
1937
1937
|
name: a.string(),
|
|
1938
1938
|
enabled: a.boolean().optional().default(!0),
|
|
1939
1939
|
default_from_address: a.string().optional(),
|
|
@@ -3642,7 +3642,7 @@ const ig = {}, rg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3642
3642
|
});
|
|
3643
3643
|
})($d);
|
|
3644
3644
|
var og = $d.exports;
|
|
3645
|
-
const
|
|
3645
|
+
const Ka = /* @__PURE__ */ eg(og), ag = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
3646
3646
|
let cg = (n) => crypto.getRandomValues(new Uint8Array(n)), lg = (n, e, t) => {
|
|
3647
3647
|
let i = (2 << Math.log2(n.length - 1)) - 1, r = -~(1.6 * i * e / n.length);
|
|
3648
3648
|
return (s = e) => {
|
|
@@ -3660,7 +3660,7 @@ let cg = (n) => crypto.getRandomValues(new Uint8Array(n)), lg = (n, e, t) => {
|
|
|
3660
3660
|
return e;
|
|
3661
3661
|
};
|
|
3662
3662
|
const dg = 24;
|
|
3663
|
-
function
|
|
3663
|
+
function Wa() {
|
|
3664
3664
|
return ug("0123456789abcdef", dg)();
|
|
3665
3665
|
}
|
|
3666
3666
|
function vl(n) {
|
|
@@ -3677,7 +3677,7 @@ async function Cd(n, e, t) {
|
|
|
3677
3677
|
q: `email:${t}`
|
|
3678
3678
|
})).users;
|
|
3679
3679
|
}
|
|
3680
|
-
async function
|
|
3680
|
+
async function Ga({
|
|
3681
3681
|
userAdapter: n,
|
|
3682
3682
|
tenant_id: e,
|
|
3683
3683
|
email: t,
|
|
@@ -3725,7 +3725,7 @@ async function Xr({
|
|
|
3725
3725
|
email: t,
|
|
3726
3726
|
provider: i
|
|
3727
3727
|
}) {
|
|
3728
|
-
const r = await
|
|
3728
|
+
const r = await Ga({
|
|
3729
3729
|
userAdapter: n,
|
|
3730
3730
|
tenant_id: e,
|
|
3731
3731
|
email: t,
|
|
@@ -3733,7 +3733,7 @@ async function Xr({
|
|
|
3733
3733
|
});
|
|
3734
3734
|
return r ? r.linked_to ? n.get(e, r.linked_to) : r : null;
|
|
3735
3735
|
}
|
|
3736
|
-
const
|
|
3736
|
+
const rn = a.object({
|
|
3737
3737
|
page: a.string().min(0).optional().default("0").transform((n) => parseInt(n, 10)).openapi({
|
|
3738
3738
|
description: "The page number where 0 is the first page"
|
|
3739
3739
|
}),
|
|
@@ -3808,17 +3808,17 @@ var pg = {
|
|
|
3808
3808
|
function mt(n, e) {
|
|
3809
3809
|
fg() === "workerd" && n.executionCtx.waitUntil(e);
|
|
3810
3810
|
}
|
|
3811
|
-
const wl =
|
|
3811
|
+
const wl = mn.extend({
|
|
3812
3812
|
users: a.array(St)
|
|
3813
|
-
}), gg =
|
|
3814
|
-
sessions: a.array(
|
|
3813
|
+
}), gg = mn.extend({
|
|
3814
|
+
sessions: a.array(Ha)
|
|
3815
3815
|
}), _g = new fe().openapi(
|
|
3816
3816
|
Z({
|
|
3817
3817
|
tags: ["users"],
|
|
3818
3818
|
method: "get",
|
|
3819
3819
|
path: "/",
|
|
3820
3820
|
request: {
|
|
3821
|
-
query:
|
|
3821
|
+
query: rn,
|
|
3822
3822
|
headers: a.object({
|
|
3823
3823
|
"tenant-id": a.string()
|
|
3824
3824
|
})
|
|
@@ -3964,7 +3964,7 @@ const wl = yn.extend({
|
|
|
3964
3964
|
body: {
|
|
3965
3965
|
content: {
|
|
3966
3966
|
"application/json": {
|
|
3967
|
-
schema: a.object({ ...
|
|
3967
|
+
schema: a.object({ ...go.shape })
|
|
3968
3968
|
}
|
|
3969
3969
|
}
|
|
3970
3970
|
}
|
|
@@ -3991,7 +3991,7 @@ const wl = yn.extend({
|
|
|
3991
3991
|
const { email: i } = t;
|
|
3992
3992
|
if (!i)
|
|
3993
3993
|
throw new N(400, { message: "Email is required" });
|
|
3994
|
-
const r = i.toLowerCase(), s = `${t.provider}|${t.user_id ||
|
|
3994
|
+
const r = i.toLowerCase(), s = `${t.provider}|${t.user_id || Wa()}`;
|
|
3995
3995
|
try {
|
|
3996
3996
|
const o = await n.env.data.users.create(e, {
|
|
3997
3997
|
email: r,
|
|
@@ -4045,7 +4045,7 @@ const wl = yn.extend({
|
|
|
4045
4045
|
content: {
|
|
4046
4046
|
"application/json": {
|
|
4047
4047
|
schema: a.object({
|
|
4048
|
-
...
|
|
4048
|
+
...go.shape,
|
|
4049
4049
|
verify_email: a.boolean(),
|
|
4050
4050
|
password: a.string()
|
|
4051
4051
|
}).partial()
|
|
@@ -4098,7 +4098,7 @@ const wl = yn.extend({
|
|
|
4098
4098
|
});
|
|
4099
4099
|
await n.env.data.passwords.update(e, {
|
|
4100
4100
|
user_id: `${p.provider}|${p.user_id}`,
|
|
4101
|
-
password:
|
|
4101
|
+
password: Ka.hashSync(s, 10),
|
|
4102
4102
|
algorithm: "bcrypt"
|
|
4103
4103
|
});
|
|
4104
4104
|
}
|
|
@@ -4229,7 +4229,7 @@ const wl = yn.extend({
|
|
|
4229
4229
|
method: "get",
|
|
4230
4230
|
path: "/{user_id}/sessions",
|
|
4231
4231
|
request: {
|
|
4232
|
-
query:
|
|
4232
|
+
query: rn,
|
|
4233
4233
|
headers: a.object({
|
|
4234
4234
|
"tenant-id": a.string()
|
|
4235
4235
|
}),
|
|
@@ -4247,7 +4247,7 @@ const wl = yn.extend({
|
|
|
4247
4247
|
content: {
|
|
4248
4248
|
"application/json": {
|
|
4249
4249
|
schema: a.union([
|
|
4250
|
-
a.array(
|
|
4250
|
+
a.array(Ha),
|
|
4251
4251
|
gg
|
|
4252
4252
|
])
|
|
4253
4253
|
}
|
|
@@ -4309,11 +4309,11 @@ var bl;
|
|
|
4309
4309
|
var i = Object.prototype.hasOwnProperty, r = typeof Symbol == "function", s = r && typeof Symbol.toPrimitive < "u" ? Symbol.toPrimitive : "@@toPrimitive", o = r && typeof Symbol.iterator < "u" ? Symbol.iterator : "@@iterator", c = typeof Object.create == "function", l = { __proto__: [] } instanceof Array, u = !c && !l, p = {
|
|
4310
4310
|
// create an object in dictionary mode (a.k.a. "slow" mode in v8)
|
|
4311
4311
|
create: c ? function() {
|
|
4312
|
-
return
|
|
4312
|
+
return Js(/* @__PURE__ */ Object.create(null));
|
|
4313
4313
|
} : l ? function() {
|
|
4314
|
-
return
|
|
4314
|
+
return Js({ __proto__: null });
|
|
4315
4315
|
} : function() {
|
|
4316
|
-
return
|
|
4316
|
+
return Js({});
|
|
4317
4317
|
},
|
|
4318
4318
|
has: u ? function(k, I) {
|
|
4319
4319
|
return i.call(k, I);
|
|
@@ -4438,7 +4438,7 @@ var bl;
|
|
|
4438
4438
|
var L = v(k, I, j);
|
|
4439
4439
|
if (L)
|
|
4440
4440
|
return !0;
|
|
4441
|
-
var X =
|
|
4441
|
+
var X = Gs(I);
|
|
4442
4442
|
return Ie(X) ? !1 : w(k, X, j);
|
|
4443
4443
|
}
|
|
4444
4444
|
function v(k, I, j) {
|
|
@@ -4454,7 +4454,7 @@ var bl;
|
|
|
4454
4454
|
var L = v(k, I, j);
|
|
4455
4455
|
if (L)
|
|
4456
4456
|
return R(k, I, j);
|
|
4457
|
-
var X =
|
|
4457
|
+
var X = Gs(I);
|
|
4458
4458
|
if (!Ie(X))
|
|
4459
4459
|
return C(k, X, j);
|
|
4460
4460
|
}
|
|
@@ -4478,7 +4478,7 @@ var bl;
|
|
|
4478
4478
|
X.OrdinaryDefineOwnMetadata(k, I, j, L);
|
|
4479
4479
|
}
|
|
4480
4480
|
function K(k, I) {
|
|
4481
|
-
var j = te(k, I), L =
|
|
4481
|
+
var j = te(k, I), L = Gs(k);
|
|
4482
4482
|
if (L === null)
|
|
4483
4483
|
return j;
|
|
4484
4484
|
var X = K(L, I);
|
|
@@ -4608,7 +4608,7 @@ var bl;
|
|
|
4608
4608
|
return !1;
|
|
4609
4609
|
}
|
|
4610
4610
|
}
|
|
4611
|
-
function
|
|
4611
|
+
function Ws(k, I) {
|
|
4612
4612
|
return k === I || k !== k && I !== I;
|
|
4613
4613
|
}
|
|
4614
4614
|
function Xc(k, I) {
|
|
@@ -4639,7 +4639,7 @@ var bl;
|
|
|
4639
4639
|
var I = k.return;
|
|
4640
4640
|
I && I.call(k);
|
|
4641
4641
|
}
|
|
4642
|
-
function
|
|
4642
|
+
function Gs(k) {
|
|
4643
4643
|
var I = Object.getPrototypeOf(k);
|
|
4644
4644
|
if (typeof k != "function" || k === g || I !== g)
|
|
4645
4645
|
return I;
|
|
@@ -4919,7 +4919,7 @@ var bl;
|
|
|
4919
4919
|
if (F >= 0) {
|
|
4920
4920
|
for (var G = this._keys.length, J = F + 1; J < G; J++)
|
|
4921
4921
|
this._keys[J - 1] = this._keys[J], this._values[J - 1] = this._values[J];
|
|
4922
|
-
return this._keys.length--, this._values.length--,
|
|
4922
|
+
return this._keys.length--, this._values.length--, Ws(M, this._cacheKey) && (this._cacheKey = k, this._cacheIndex = -2), !0;
|
|
4923
4923
|
}
|
|
4924
4924
|
return !1;
|
|
4925
4925
|
}, ie.prototype.clear = function() {
|
|
@@ -4935,10 +4935,10 @@ var bl;
|
|
|
4935
4935
|
}, ie.prototype[o] = function() {
|
|
4936
4936
|
return this.entries();
|
|
4937
4937
|
}, ie.prototype._find = function(M, F) {
|
|
4938
|
-
if (!
|
|
4938
|
+
if (!Ws(this._cacheKey, M)) {
|
|
4939
4939
|
this._cacheIndex = -1;
|
|
4940
4940
|
for (var G = 0; G < this._keys.length; G++)
|
|
4941
|
-
if (
|
|
4941
|
+
if (Ws(this._keys[G], M)) {
|
|
4942
4942
|
this._cacheIndex = G;
|
|
4943
4943
|
break;
|
|
4944
4944
|
}
|
|
@@ -5072,7 +5072,7 @@ var bl;
|
|
|
5072
5072
|
return F;
|
|
5073
5073
|
}
|
|
5074
5074
|
}
|
|
5075
|
-
function
|
|
5075
|
+
function Js(k) {
|
|
5076
5076
|
return k.__ = void 0, delete k.__, k;
|
|
5077
5077
|
}
|
|
5078
5078
|
});
|
|
@@ -5151,7 +5151,7 @@ class V {
|
|
|
5151
5151
|
return e[e.length - 1] instanceof Function ? this.toView(r, e[e.length - 1]) : r.buffer;
|
|
5152
5152
|
}
|
|
5153
5153
|
}
|
|
5154
|
-
const
|
|
5154
|
+
const Qs = "string", yg = /^[0-9a-f]+$/i, vg = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/, wg = /^[a-zA-Z0-9-_]+$/;
|
|
5155
5155
|
class kl {
|
|
5156
5156
|
static fromString(e) {
|
|
5157
5157
|
const t = unescape(encodeURIComponent(e)), i = new Uint8Array(t.length);
|
|
@@ -5186,13 +5186,13 @@ class ht {
|
|
|
5186
5186
|
}
|
|
5187
5187
|
class W {
|
|
5188
5188
|
static isHex(e) {
|
|
5189
|
-
return typeof e ===
|
|
5189
|
+
return typeof e === Qs && yg.test(e);
|
|
5190
5190
|
}
|
|
5191
5191
|
static isBase64(e) {
|
|
5192
|
-
return typeof e ===
|
|
5192
|
+
return typeof e === Qs && vg.test(e);
|
|
5193
5193
|
}
|
|
5194
5194
|
static isBase64Url(e) {
|
|
5195
|
-
return typeof e ===
|
|
5195
|
+
return typeof e === Qs && wg.test(e);
|
|
5196
5196
|
}
|
|
5197
5197
|
static ToString(e, t = "utf8") {
|
|
5198
5198
|
const i = V.toUint8Array(e);
|
|
@@ -5381,7 +5381,7 @@ function Nn(n, e) {
|
|
|
5381
5381
|
t += n[n.length - 1 - i] * Math.pow(2, e * i);
|
|
5382
5382
|
return t;
|
|
5383
5383
|
}
|
|
5384
|
-
function
|
|
5384
|
+
function sn(n, e, t = -1) {
|
|
5385
5385
|
const i = t;
|
|
5386
5386
|
let r = n, s = 0, o = Math.pow(2, e);
|
|
5387
5387
|
for (let c = 1; c < 8; c++) {
|
|
@@ -5405,7 +5405,7 @@ function on(n, e, t = -1) {
|
|
|
5405
5405
|
}
|
|
5406
5406
|
return new ArrayBuffer(0);
|
|
5407
5407
|
}
|
|
5408
|
-
function
|
|
5408
|
+
function bo(...n) {
|
|
5409
5409
|
let e = 0, t = 0;
|
|
5410
5410
|
for (const s of n)
|
|
5411
5411
|
e += s.length;
|
|
@@ -5435,10 +5435,10 @@ function kg(n) {
|
|
|
5435
5435
|
for (let i = 1; i < 8; i++) {
|
|
5436
5436
|
if (e <= t) {
|
|
5437
5437
|
if (n < 0) {
|
|
5438
|
-
const o = t - e, c =
|
|
5438
|
+
const o = t - e, c = sn(o, 8, i), l = new Uint8Array(c);
|
|
5439
5439
|
return l[0] |= 128, c;
|
|
5440
5440
|
}
|
|
5441
|
-
let r =
|
|
5441
|
+
let r = sn(e, 8, i), s = new Uint8Array(r);
|
|
5442
5442
|
if (s[0] & 128) {
|
|
5443
5443
|
const o = r.slice(0), c = new Uint8Array(o);
|
|
5444
5444
|
r = new ArrayBuffer(r.byteLength + 1), s = new Uint8Array(r);
|
|
@@ -5507,7 +5507,7 @@ function hr() {
|
|
|
5507
5507
|
if (typeof BigInt > "u")
|
|
5508
5508
|
throw new Error("BigInt is not defined. Your environment doesn't implement BigInt.");
|
|
5509
5509
|
}
|
|
5510
|
-
function
|
|
5510
|
+
function Ja(n) {
|
|
5511
5511
|
let e = 0, t = 0;
|
|
5512
5512
|
for (let r = 0; r < n.length; r++) {
|
|
5513
5513
|
const s = n[r];
|
|
@@ -5531,10 +5531,10 @@ class Qr {
|
|
|
5531
5531
|
this.items.push(e);
|
|
5532
5532
|
}
|
|
5533
5533
|
final() {
|
|
5534
|
-
return
|
|
5534
|
+
return Ja(this.items);
|
|
5535
5535
|
}
|
|
5536
5536
|
}
|
|
5537
|
-
const ii = [new Uint8Array([1])], xl = "0123456789",
|
|
5537
|
+
const ii = [new Uint8Array([1])], xl = "0123456789", eo = "name", Sl = "valueHexView", Sg = "isHexOnly", Ag = "idBlock", Ig = "tagClass", Eg = "tagNumber", $g = "isConstructed", Cg = "fromBER", jg = "toBER", Ng = "local", ze = "", dt = new ArrayBuffer(0), es = new Uint8Array(0), mi = "EndOfContent", Bd = "OCTET STRING", Td = "BIT STRING";
|
|
5538
5538
|
function bt(n) {
|
|
5539
5539
|
var e;
|
|
5540
5540
|
return e = class extends n {
|
|
@@ -5569,7 +5569,7 @@ function bt(n) {
|
|
|
5569
5569
|
}
|
|
5570
5570
|
}, e.NAME = "hexBlock", e;
|
|
5571
5571
|
}
|
|
5572
|
-
class
|
|
5572
|
+
class yn {
|
|
5573
5573
|
constructor({ blockLength: e = 0, error: t = ze, warnings: i = [], valueBeforeDecode: r = es } = {}) {
|
|
5574
5574
|
this.blockLength = e, this.error = t, this.warnings = i, this.valueBeforeDecodeView = V.toUint8Array(r);
|
|
5575
5575
|
}
|
|
@@ -5592,8 +5592,8 @@ class vn {
|
|
|
5592
5592
|
};
|
|
5593
5593
|
}
|
|
5594
5594
|
}
|
|
5595
|
-
|
|
5596
|
-
class Ue extends
|
|
5595
|
+
yn.NAME = "baseBlock";
|
|
5596
|
+
class Ue extends yn {
|
|
5597
5597
|
fromBER(e, t, i) {
|
|
5598
5598
|
throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'");
|
|
5599
5599
|
}
|
|
@@ -5602,7 +5602,7 @@ class Ue extends vn {
|
|
|
5602
5602
|
}
|
|
5603
5603
|
}
|
|
5604
5604
|
Ue.NAME = "valueBlock";
|
|
5605
|
-
class Pd extends bt(
|
|
5605
|
+
class Pd extends bt(yn) {
|
|
5606
5606
|
constructor({ idBlock: e = {} } = {}) {
|
|
5607
5607
|
var t, i, r, s;
|
|
5608
5608
|
super(), e ? (this.isHexOnly = (t = e.isHexOnly) !== null && t !== void 0 ? t : !1, this.valueHexView = e.valueHex ? V.toUint8Array(e.valueHex) : es, this.tagClass = (i = e.tagClass) !== null && i !== void 0 ? i : -1, this.tagNumber = (r = e.tagNumber) !== null && r !== void 0 ? r : -1, this.isConstructed = (s = e.isConstructed) !== null && s !== void 0 ? s : !1) : (this.tagClass = -1, this.tagNumber = -1, this.isConstructed = !1);
|
|
@@ -5634,7 +5634,7 @@ class Pd extends bt(vn) {
|
|
|
5634
5634
|
return r.buffer;
|
|
5635
5635
|
}
|
|
5636
5636
|
if (!this.isHexOnly) {
|
|
5637
|
-
const r =
|
|
5637
|
+
const r = sn(this.tagNumber, 7), s = new Uint8Array(r), o = r.byteLength, c = new Uint8Array(o + 1);
|
|
5638
5638
|
if (c[0] = t | 31, !e) {
|
|
5639
5639
|
for (let l = 0; l < o - 1; l++)
|
|
5640
5640
|
c[l + 1] = s[l] | 128;
|
|
@@ -5726,7 +5726,7 @@ class Pd extends bt(vn) {
|
|
|
5726
5726
|
}
|
|
5727
5727
|
}
|
|
5728
5728
|
Pd.NAME = "identificationBlock";
|
|
5729
|
-
class Rd extends
|
|
5729
|
+
class Rd extends yn {
|
|
5730
5730
|
constructor({ lenBlock: e = {} } = {}) {
|
|
5731
5731
|
var t, i, r;
|
|
5732
5732
|
super(), this.isIndefiniteForm = (t = e.isIndefiniteForm) !== null && t !== void 0 ? t : !1, this.longFormUsed = (i = e.longFormUsed) !== null && i !== void 0 ? i : !1, this.length = (r = e.length) !== null && r !== void 0 ? r : 0;
|
|
@@ -5757,7 +5757,7 @@ class Rd extends vn {
|
|
|
5757
5757
|
if (this.length > 127 && (this.longFormUsed = !0), this.isIndefiniteForm)
|
|
5758
5758
|
return t = new ArrayBuffer(1), e === !1 && (i = new Uint8Array(t), i[0] = 128), t;
|
|
5759
5759
|
if (this.longFormUsed) {
|
|
5760
|
-
const r =
|
|
5760
|
+
const r = sn(this.length, 8);
|
|
5761
5761
|
if (r.byteLength > 127)
|
|
5762
5762
|
return this.error = "Too big length", dt;
|
|
5763
5763
|
if (t = new ArrayBuffer(r.byteLength + 1), e)
|
|
@@ -5781,7 +5781,7 @@ class Rd extends vn {
|
|
|
5781
5781
|
}
|
|
5782
5782
|
Rd.NAME = "lengthBlock";
|
|
5783
5783
|
const q = {};
|
|
5784
|
-
class Ne extends
|
|
5784
|
+
class Ne extends yn {
|
|
5785
5785
|
constructor({ name: e = ze, optional: t = !1, primitiveSchema: i, ...r } = {}, s) {
|
|
5786
5786
|
super(r), this.name = e, this.optional = t, i && (this.primitiveSchema = i), this.idBlock = new Pd(r), this.lenBlock = new Rd(r), this.valueBlock = s ? new s(r) : new Ue(r);
|
|
5787
5787
|
}
|
|
@@ -5836,7 +5836,7 @@ function Ld(n) {
|
|
|
5836
5836
|
Ld(e) && (n.lenBlock.isIndefiniteForm = !0);
|
|
5837
5837
|
return !!n.lenBlock.isIndefiniteForm;
|
|
5838
5838
|
}
|
|
5839
|
-
class
|
|
5839
|
+
class Za extends Ne {
|
|
5840
5840
|
constructor({ value: e = ze, ...t } = {}, i) {
|
|
5841
5841
|
super(t, i), e && this.fromString(e);
|
|
5842
5842
|
}
|
|
@@ -5854,7 +5854,7 @@ class Ja extends Ne {
|
|
|
5854
5854
|
return `${this.constructor.NAME} : '${this.valueBlock.value}'`;
|
|
5855
5855
|
}
|
|
5856
5856
|
}
|
|
5857
|
-
|
|
5857
|
+
Za.NAME = "BaseStringBlock";
|
|
5858
5858
|
class Ud extends bt(Ue) {
|
|
5859
5859
|
constructor({ isHexOnly: e = !0, ...t } = {}) {
|
|
5860
5860
|
super(t), this.isHexOnly = e;
|
|
@@ -5879,7 +5879,7 @@ function Og(n, e) {
|
|
|
5879
5879
|
function Fn(n, e = 0, t = n.length) {
|
|
5880
5880
|
const i = e;
|
|
5881
5881
|
let r = new Ne({}, Ue);
|
|
5882
|
-
const s = new
|
|
5882
|
+
const s = new yn();
|
|
5883
5883
|
if (!Bt(s, n, e, t))
|
|
5884
5884
|
return r.error = s.error, {
|
|
5885
5885
|
offset: -1,
|
|
@@ -6032,7 +6032,7 @@ function Fn(n, e = 0, t = n.length) {
|
|
|
6032
6032
|
result: r
|
|
6033
6033
|
};
|
|
6034
6034
|
}
|
|
6035
|
-
function
|
|
6035
|
+
function En(n) {
|
|
6036
6036
|
if (!n.byteLength) {
|
|
6037
6037
|
const e = new Ne({}, Ue);
|
|
6038
6038
|
return e.error = "Input buffer has zero length", {
|
|
@@ -6118,16 +6118,16 @@ class zd extends Ue {
|
|
|
6118
6118
|
}
|
|
6119
6119
|
zd.override = "EndOfContentValueBlock";
|
|
6120
6120
|
var Dd;
|
|
6121
|
-
class
|
|
6121
|
+
class Ya extends Ne {
|
|
6122
6122
|
constructor(e = {}) {
|
|
6123
6123
|
super(e, zd), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 0;
|
|
6124
6124
|
}
|
|
6125
6125
|
}
|
|
6126
|
-
Dd =
|
|
6126
|
+
Dd = Ya;
|
|
6127
6127
|
q.EndOfContent = Dd;
|
|
6128
|
-
|
|
6128
|
+
Ya.NAME = mi;
|
|
6129
6129
|
var qd;
|
|
6130
|
-
class
|
|
6130
|
+
class on extends Ne {
|
|
6131
6131
|
constructor(e = {}) {
|
|
6132
6132
|
super(e, Ue), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 5;
|
|
6133
6133
|
}
|
|
@@ -6146,9 +6146,9 @@ class an extends Ne {
|
|
|
6146
6146
|
return `${this.constructor.NAME}`;
|
|
6147
6147
|
}
|
|
6148
6148
|
}
|
|
6149
|
-
qd =
|
|
6149
|
+
qd = on;
|
|
6150
6150
|
q.Null = qd;
|
|
6151
|
-
|
|
6151
|
+
on.NAME = "NULL";
|
|
6152
6152
|
class Fd extends bt(Ue) {
|
|
6153
6153
|
constructor({ value: e, ...t } = {}) {
|
|
6154
6154
|
super(t), t.valueHex ? this.valueHexView = V.toUint8Array(t.valueHex) : this.valueHexView = new Uint8Array(1), e && (this.value = e);
|
|
@@ -6391,13 +6391,13 @@ function Tg(n, e) {
|
|
|
6391
6391
|
}
|
|
6392
6392
|
switch (t[0] = u / 10, !0) {
|
|
6393
6393
|
case g >= s.length:
|
|
6394
|
-
s =
|
|
6394
|
+
s = bo(new Uint8Array([u % 10]), s);
|
|
6395
6395
|
break;
|
|
6396
6396
|
default:
|
|
6397
6397
|
s[o - g] = u % 10;
|
|
6398
6398
|
}
|
|
6399
6399
|
}
|
|
6400
|
-
return t[0] > 0 && (s =
|
|
6400
|
+
return t[0] > 0 && (s = bo(t, s)), s;
|
|
6401
6401
|
}
|
|
6402
6402
|
function Al(n) {
|
|
6403
6403
|
if (n >= ii.length)
|
|
@@ -6408,7 +6408,7 @@ function Al(n) {
|
|
|
6408
6408
|
const s = new Uint8Array([(i[r] << 1) + t[0]]);
|
|
6409
6409
|
t[0] = s[0] / 10, i[r] = s[0] % 10;
|
|
6410
6410
|
}
|
|
6411
|
-
t[0] > 0 && (i =
|
|
6411
|
+
t[0] > 0 && (i = bo(t, i)), ii.push(i);
|
|
6412
6412
|
}
|
|
6413
6413
|
return ii[n];
|
|
6414
6414
|
}
|
|
@@ -6434,7 +6434,7 @@ function Pg(n, e) {
|
|
|
6434
6434
|
}
|
|
6435
6435
|
return s.slice();
|
|
6436
6436
|
}
|
|
6437
|
-
class
|
|
6437
|
+
class Xa extends bt(Ue) {
|
|
6438
6438
|
constructor({ value: e, ...t } = {}) {
|
|
6439
6439
|
super(t), this._valueDec = 0, t.valueHex && this.setValueHex(), e !== void 0 && (this.valueDec = e);
|
|
6440
6440
|
}
|
|
@@ -6506,8 +6506,8 @@ class Ya extends bt(Ue) {
|
|
|
6506
6506
|
return c === !1 && (o += xl.charAt(0)), o;
|
|
6507
6507
|
}
|
|
6508
6508
|
}
|
|
6509
|
-
Yd =
|
|
6510
|
-
|
|
6509
|
+
Yd = Xa;
|
|
6510
|
+
Xa.NAME = "IntegerValueBlock";
|
|
6511
6511
|
Object.defineProperty(Yd.prototype, "valueHex", {
|
|
6512
6512
|
set: function(n) {
|
|
6513
6513
|
this.valueHexView = new Uint8Array(n), this.setValueHex();
|
|
@@ -6519,7 +6519,7 @@ Object.defineProperty(Yd.prototype, "valueHex", {
|
|
|
6519
6519
|
var Xd;
|
|
6520
6520
|
class yt extends Ne {
|
|
6521
6521
|
constructor(e = {}) {
|
|
6522
|
-
super(e,
|
|
6522
|
+
super(e, Xa), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 2;
|
|
6523
6523
|
}
|
|
6524
6524
|
toBigInt() {
|
|
6525
6525
|
return hr(), BigInt(this.valueBlock.toString());
|
|
@@ -6563,7 +6563,7 @@ class ns extends yt {
|
|
|
6563
6563
|
Qd = ns;
|
|
6564
6564
|
q.Enumerated = Qd;
|
|
6565
6565
|
ns.NAME = "ENUMERATED";
|
|
6566
|
-
class
|
|
6566
|
+
class ko extends bt(Ue) {
|
|
6567
6567
|
constructor({ valueDec: e = -1, isFirstSid: t = !1, ...i } = {}) {
|
|
6568
6568
|
super(i), this.valueDec = e, this.isFirstSid = t;
|
|
6569
6569
|
}
|
|
@@ -6601,7 +6601,7 @@ class bo extends bt(Ue) {
|
|
|
6601
6601
|
s[o] = r[o] | 128;
|
|
6602
6602
|
return s[this.blockLength - 1] = r[this.blockLength - 1], s.buffer;
|
|
6603
6603
|
}
|
|
6604
|
-
const t =
|
|
6604
|
+
const t = sn(this.valueDec, 7);
|
|
6605
6605
|
if (t.byteLength === 0)
|
|
6606
6606
|
return this.error = "Error during encoding SID value", dt;
|
|
6607
6607
|
const i = new Uint8Array(t.byteLength);
|
|
@@ -6632,7 +6632,7 @@ class bo extends bt(Ue) {
|
|
|
6632
6632
|
};
|
|
6633
6633
|
}
|
|
6634
6634
|
}
|
|
6635
|
-
|
|
6635
|
+
ko.NAME = "sidBlock";
|
|
6636
6636
|
class ep extends Ue {
|
|
6637
6637
|
constructor({ value: e = ze, ...t } = {}) {
|
|
6638
6638
|
super(t), this.value = [], e && this.fromString(e);
|
|
@@ -6640,7 +6640,7 @@ class ep extends Ue {
|
|
|
6640
6640
|
fromBER(e, t, i) {
|
|
6641
6641
|
let r = t;
|
|
6642
6642
|
for (; i > 0; ) {
|
|
6643
|
-
const s = new
|
|
6643
|
+
const s = new ko();
|
|
6644
6644
|
if (r = s.fromBER(e, r, i), r === -1)
|
|
6645
6645
|
return this.blockLength = 0, this.error = s.error, r;
|
|
6646
6646
|
this.value.length === 0 && (s.isFirstSid = !0), this.blockLength += s.blockLength, i -= s.blockLength, this.value.push(s);
|
|
@@ -6655,7 +6655,7 @@ class ep extends Ue {
|
|
|
6655
6655
|
return this.error = this.value[i].error, dt;
|
|
6656
6656
|
t.push(r);
|
|
6657
6657
|
}
|
|
6658
|
-
return
|
|
6658
|
+
return Ja(t);
|
|
6659
6659
|
}
|
|
6660
6660
|
fromString(e) {
|
|
6661
6661
|
this.value = [];
|
|
@@ -6682,7 +6682,7 @@ class ep extends Ue {
|
|
|
6682
6682
|
return;
|
|
6683
6683
|
o.valueDec = l + c, s = !1;
|
|
6684
6684
|
} else {
|
|
6685
|
-
const o = new
|
|
6685
|
+
const o = new ko();
|
|
6686
6686
|
if (r > Number.MAX_SAFE_INTEGER) {
|
|
6687
6687
|
hr();
|
|
6688
6688
|
const c = BigInt(r);
|
|
@@ -6738,7 +6738,7 @@ class is extends Ne {
|
|
|
6738
6738
|
tp = is;
|
|
6739
6739
|
q.ObjectIdentifier = tp;
|
|
6740
6740
|
is.NAME = "OBJECT IDENTIFIER";
|
|
6741
|
-
class
|
|
6741
|
+
class xo extends bt(yn) {
|
|
6742
6742
|
constructor({ valueDec: e = 0, ...t } = {}) {
|
|
6743
6743
|
super(t), this.valueDec = e;
|
|
6744
6744
|
}
|
|
@@ -6766,7 +6766,7 @@ class ko extends bt(vn) {
|
|
|
6766
6766
|
s[o] = r[o] | 128;
|
|
6767
6767
|
return s[this.blockLength - 1] = r[this.blockLength - 1], s.buffer;
|
|
6768
6768
|
}
|
|
6769
|
-
const t =
|
|
6769
|
+
const t = sn(this.valueDec, 7);
|
|
6770
6770
|
if (t.byteLength === 0)
|
|
6771
6771
|
return this.error = "Error during encoding SID value", dt;
|
|
6772
6772
|
const i = new Uint8Array(t.byteLength);
|
|
@@ -6789,7 +6789,7 @@ class ko extends bt(vn) {
|
|
|
6789
6789
|
};
|
|
6790
6790
|
}
|
|
6791
6791
|
}
|
|
6792
|
-
|
|
6792
|
+
xo.NAME = "relativeSidBlock";
|
|
6793
6793
|
class np extends Ue {
|
|
6794
6794
|
constructor({ value: e = ze, ...t } = {}) {
|
|
6795
6795
|
super(t), this.value = [], e && this.fromString(e);
|
|
@@ -6797,7 +6797,7 @@ class np extends Ue {
|
|
|
6797
6797
|
fromBER(e, t, i) {
|
|
6798
6798
|
let r = t;
|
|
6799
6799
|
for (; i > 0; ) {
|
|
6800
|
-
const s = new
|
|
6800
|
+
const s = new xo();
|
|
6801
6801
|
if (r = s.fromBER(e, r, i), r === -1)
|
|
6802
6802
|
return this.blockLength = 0, this.error = s.error, r;
|
|
6803
6803
|
this.blockLength += s.blockLength, i -= s.blockLength, this.value.push(s);
|
|
@@ -6812,14 +6812,14 @@ class np extends Ue {
|
|
|
6812
6812
|
return this.error = this.value[r].error, dt;
|
|
6813
6813
|
i.push(s);
|
|
6814
6814
|
}
|
|
6815
|
-
return
|
|
6815
|
+
return Ja(i);
|
|
6816
6816
|
}
|
|
6817
6817
|
fromString(e) {
|
|
6818
6818
|
this.value = [];
|
|
6819
6819
|
let t = 0, i = 0, r = "";
|
|
6820
6820
|
do {
|
|
6821
6821
|
i = e.indexOf(".", t), i === -1 ? r = e.substring(t) : r = e.substring(t, i), t = i + 1;
|
|
6822
|
-
const s = new
|
|
6822
|
+
const s = new xo();
|
|
6823
6823
|
if (s.valueDec = parseInt(r, 10), isNaN(s.valueDec))
|
|
6824
6824
|
return !0;
|
|
6825
6825
|
this.value.push(s);
|
|
@@ -6848,7 +6848,7 @@ class np extends Ue {
|
|
|
6848
6848
|
}
|
|
6849
6849
|
np.NAME = "RelativeObjectIdentifierValueBlock";
|
|
6850
6850
|
var ip;
|
|
6851
|
-
class
|
|
6851
|
+
class Qa extends Ne {
|
|
6852
6852
|
constructor(e = {}) {
|
|
6853
6853
|
super(e, np), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 13;
|
|
6854
6854
|
}
|
|
@@ -6868,9 +6868,9 @@ class Xa extends Ne {
|
|
|
6868
6868
|
};
|
|
6869
6869
|
}
|
|
6870
6870
|
}
|
|
6871
|
-
ip =
|
|
6871
|
+
ip = Qa;
|
|
6872
6872
|
q.RelativeObjectIdentifier = ip;
|
|
6873
|
-
|
|
6873
|
+
Qa.NAME = "RelativeObjectIdentifier";
|
|
6874
6874
|
var rp;
|
|
6875
6875
|
class It extends De {
|
|
6876
6876
|
constructor(e = {}) {
|
|
@@ -6904,7 +6904,7 @@ op.NAME = "StringValueBlock";
|
|
|
6904
6904
|
class ap extends op {
|
|
6905
6905
|
}
|
|
6906
6906
|
ap.NAME = "SimpleStringValueBlock";
|
|
6907
|
-
class Ze extends
|
|
6907
|
+
class Ze extends Za {
|
|
6908
6908
|
constructor({ ...e } = {}) {
|
|
6909
6909
|
super(e, ap);
|
|
6910
6910
|
}
|
|
@@ -6970,7 +6970,7 @@ class pp extends Ze {
|
|
|
6970
6970
|
fromString(e) {
|
|
6971
6971
|
const t = e.length, i = this.valueBlock.valueHexView = new Uint8Array(t * 4);
|
|
6972
6972
|
for (let r = 0; r < t; r++) {
|
|
6973
|
-
const s =
|
|
6973
|
+
const s = sn(e.charCodeAt(r), 8), o = new Uint8Array(s);
|
|
6974
6974
|
if (o.length > 4)
|
|
6975
6975
|
continue;
|
|
6976
6976
|
const c = 4 - o.length;
|
|
@@ -7255,62 +7255,62 @@ Sp = hs;
|
|
|
7255
7255
|
q.GeneralizedTime = Sp;
|
|
7256
7256
|
hs.NAME = "GeneralizedTime";
|
|
7257
7257
|
var Ap;
|
|
7258
|
-
class
|
|
7258
|
+
class ec extends Tt {
|
|
7259
7259
|
constructor(e = {}) {
|
|
7260
7260
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 31;
|
|
7261
7261
|
}
|
|
7262
7262
|
}
|
|
7263
|
-
Ap =
|
|
7263
|
+
Ap = ec;
|
|
7264
7264
|
q.DATE = Ap;
|
|
7265
|
-
|
|
7265
|
+
ec.NAME = "DATE";
|
|
7266
7266
|
var Ip;
|
|
7267
|
-
class
|
|
7267
|
+
class tc extends Tt {
|
|
7268
7268
|
constructor(e = {}) {
|
|
7269
7269
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 32;
|
|
7270
7270
|
}
|
|
7271
7271
|
}
|
|
7272
|
-
Ip =
|
|
7272
|
+
Ip = tc;
|
|
7273
7273
|
q.TimeOfDay = Ip;
|
|
7274
|
-
|
|
7274
|
+
tc.NAME = "TimeOfDay";
|
|
7275
7275
|
var Ep;
|
|
7276
|
-
class
|
|
7276
|
+
class nc extends Tt {
|
|
7277
7277
|
constructor(e = {}) {
|
|
7278
7278
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 33;
|
|
7279
7279
|
}
|
|
7280
7280
|
}
|
|
7281
|
-
Ep =
|
|
7281
|
+
Ep = nc;
|
|
7282
7282
|
q.DateTime = Ep;
|
|
7283
|
-
|
|
7283
|
+
nc.NAME = "DateTime";
|
|
7284
7284
|
var $p;
|
|
7285
|
-
class
|
|
7285
|
+
class ic extends Tt {
|
|
7286
7286
|
constructor(e = {}) {
|
|
7287
7287
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 34;
|
|
7288
7288
|
}
|
|
7289
7289
|
}
|
|
7290
|
-
$p =
|
|
7290
|
+
$p = ic;
|
|
7291
7291
|
q.Duration = $p;
|
|
7292
|
-
|
|
7292
|
+
ic.NAME = "Duration";
|
|
7293
7293
|
var Cp;
|
|
7294
|
-
class
|
|
7294
|
+
class rc extends Tt {
|
|
7295
7295
|
constructor(e = {}) {
|
|
7296
7296
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 14;
|
|
7297
7297
|
}
|
|
7298
7298
|
}
|
|
7299
|
-
Cp =
|
|
7299
|
+
Cp = rc;
|
|
7300
7300
|
q.TIME = Cp;
|
|
7301
|
-
|
|
7302
|
-
class
|
|
7301
|
+
rc.NAME = "TIME";
|
|
7302
|
+
class an {
|
|
7303
7303
|
constructor({ name: e = ze, optional: t = !1 } = {}) {
|
|
7304
7304
|
this.name = e, this.optional = t;
|
|
7305
7305
|
}
|
|
7306
7306
|
}
|
|
7307
|
-
class
|
|
7307
|
+
class sc extends an {
|
|
7308
7308
|
constructor({ value: e = [], ...t } = {}) {
|
|
7309
7309
|
super(t), this.value = e;
|
|
7310
7310
|
}
|
|
7311
7311
|
}
|
|
7312
|
-
class gr extends
|
|
7313
|
-
constructor({ value: e = new
|
|
7312
|
+
class gr extends an {
|
|
7313
|
+
constructor({ value: e = new an(), local: t = !1, ...i } = {}) {
|
|
7314
7314
|
super(i), this.value = e, this.local = t;
|
|
7315
7315
|
}
|
|
7316
7316
|
}
|
|
@@ -7333,7 +7333,7 @@ class Rg {
|
|
|
7333
7333
|
}
|
|
7334
7334
|
}
|
|
7335
7335
|
function Zt(n, e, t) {
|
|
7336
|
-
if (t instanceof
|
|
7336
|
+
if (t instanceof sc) {
|
|
7337
7337
|
for (let s = 0; s < t.value.length; s++)
|
|
7338
7338
|
if (Zt(n, e, t.value[s]).verified)
|
|
7339
7339
|
return {
|
|
@@ -7347,11 +7347,11 @@ function Zt(n, e, t) {
|
|
|
7347
7347
|
error: "Wrong values for Choice type"
|
|
7348
7348
|
}
|
|
7349
7349
|
};
|
|
7350
|
-
return t.hasOwnProperty(
|
|
7350
|
+
return t.hasOwnProperty(eo) && (s.name = t.name), s;
|
|
7351
7351
|
}
|
|
7352
7352
|
}
|
|
7353
|
-
if (t instanceof
|
|
7354
|
-
return t.hasOwnProperty(
|
|
7353
|
+
if (t instanceof an)
|
|
7354
|
+
return t.hasOwnProperty(eo) && (n[t.name] = e), {
|
|
7355
7355
|
verified: !0,
|
|
7356
7356
|
result: n
|
|
7357
7357
|
};
|
|
@@ -7494,7 +7494,7 @@ function Zt(n, e, t) {
|
|
|
7494
7494
|
s++;
|
|
7495
7495
|
else
|
|
7496
7496
|
return t.name && (t.name = t.name.replace(/^\s+|\s+$/g, ze), t.name && delete n[t.name]), o;
|
|
7497
|
-
if (
|
|
7497
|
+
if (eo in t.valueBlock.value[0] && t.valueBlock.value[0].name.length > 0) {
|
|
7498
7498
|
let u = {};
|
|
7499
7499
|
Ng in t.valueBlock.value[0] && t.valueBlock.value[0].local ? u = e : u = n, typeof u[t.valueBlock.value[0].name] > "u" && (u[t.valueBlock.value[0].name] = []), u[t.valueBlock.value[0].name].push(e.valueBlock.value[l]);
|
|
7500
7500
|
}
|
|
@@ -7545,19 +7545,19 @@ function Lg(n, e) {
|
|
|
7545
7545
|
}
|
|
7546
7546
|
const jp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7547
7547
|
__proto__: null,
|
|
7548
|
-
Any:
|
|
7548
|
+
Any: an,
|
|
7549
7549
|
BaseBlock: Ne,
|
|
7550
|
-
BaseStringBlock:
|
|
7550
|
+
BaseStringBlock: Za,
|
|
7551
7551
|
BitString: en,
|
|
7552
7552
|
BmpString: rs,
|
|
7553
7553
|
Boolean: ts,
|
|
7554
7554
|
CharacterString: fs,
|
|
7555
|
-
Choice:
|
|
7555
|
+
Choice: sc,
|
|
7556
7556
|
Constructed: De,
|
|
7557
|
-
DATE:
|
|
7558
|
-
DateTime:
|
|
7559
|
-
Duration:
|
|
7560
|
-
EndOfContent:
|
|
7557
|
+
DATE: ec,
|
|
7558
|
+
DateTime: nc,
|
|
7559
|
+
Duration: ic,
|
|
7560
|
+
EndOfContent: Ya,
|
|
7561
7561
|
Enumerated: ns,
|
|
7562
7562
|
GeneralString: ps,
|
|
7563
7563
|
GeneralizedTime: hs,
|
|
@@ -7565,20 +7565,20 @@ const jp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7565
7565
|
HexBlock: bt,
|
|
7566
7566
|
IA5String: us,
|
|
7567
7567
|
Integer: yt,
|
|
7568
|
-
Null:
|
|
7568
|
+
Null: on,
|
|
7569
7569
|
NumericString: os,
|
|
7570
7570
|
ObjectIdentifier: is,
|
|
7571
7571
|
OctetString: Qt,
|
|
7572
7572
|
Primitive: Ni,
|
|
7573
7573
|
PrintableString: as,
|
|
7574
7574
|
RawData: Rg,
|
|
7575
|
-
RelativeObjectIdentifier:
|
|
7575
|
+
RelativeObjectIdentifier: Qa,
|
|
7576
7576
|
Repeated: gr,
|
|
7577
7577
|
Sequence: It,
|
|
7578
7578
|
Set: Et,
|
|
7579
|
-
TIME:
|
|
7579
|
+
TIME: rc,
|
|
7580
7580
|
TeletexString: cs,
|
|
7581
|
-
TimeOfDay:
|
|
7581
|
+
TimeOfDay: tc,
|
|
7582
7582
|
UTCTime: Bi,
|
|
7583
7583
|
UniversalString: ss,
|
|
7584
7584
|
Utf8String: Tt,
|
|
@@ -7587,7 +7587,7 @@ const jp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7587
7587
|
ViewWriter: Qr,
|
|
7588
7588
|
VisibleString: Oi,
|
|
7589
7589
|
compareSchema: Zt,
|
|
7590
|
-
fromBER:
|
|
7590
|
+
fromBER: En,
|
|
7591
7591
|
verifySchema: Lg
|
|
7592
7592
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
7593
7593
|
var O;
|
|
@@ -7661,11 +7661,11 @@ class se {
|
|
|
7661
7661
|
}
|
|
7662
7662
|
}
|
|
7663
7663
|
const Ug = {
|
|
7664
|
-
fromASN: (n) => n instanceof
|
|
7664
|
+
fromASN: (n) => n instanceof on ? null : n.valueBeforeDecodeView,
|
|
7665
7665
|
toASN: (n) => {
|
|
7666
7666
|
if (n === null)
|
|
7667
|
-
return new
|
|
7668
|
-
const e =
|
|
7667
|
+
return new on();
|
|
7668
|
+
const e = En(n);
|
|
7669
7669
|
if (e.result.error)
|
|
7670
7670
|
throw new Error(e.result.error);
|
|
7671
7671
|
return e.result;
|
|
@@ -7709,9 +7709,9 @@ const Np = nt(Tt), Hg = nt(rs), Kg = nt(ss), Wg = nt(os), Gg = nt(as), Jg = nt(c
|
|
|
7709
7709
|
toASN: (n) => new hs({ valueDate: n })
|
|
7710
7710
|
}, r_ = {
|
|
7711
7711
|
fromASN: () => null,
|
|
7712
|
-
toASN: () => new
|
|
7712
|
+
toASN: () => new on()
|
|
7713
7713
|
};
|
|
7714
|
-
function
|
|
7714
|
+
function oc(n) {
|
|
7715
7715
|
switch (n) {
|
|
7716
7716
|
case y.Any:
|
|
7717
7717
|
return Ug;
|
|
@@ -7817,7 +7817,7 @@ class o_ {
|
|
|
7817
7817
|
if (!g)
|
|
7818
7818
|
throw new Error(`Cannot get ASN1 class by name '${p}'`);
|
|
7819
7819
|
l = new g({ name: c });
|
|
7820
|
-
} else At(o.type) ? l = new o.type().toSchema(c) : o.optional ? this.get(o.type).type === O.Choice ? l = new
|
|
7820
|
+
} else At(o.type) ? l = new o.type().toSchema(c) : o.optional ? this.get(o.type).type === O.Choice ? l = new an({ name: c }) : (l = this.create(o.type, !1), l.name = c) : l = new an({ name: c });
|
|
7821
7821
|
const u = !!o.optional || o.defaultValue !== void 0;
|
|
7822
7822
|
if (o.repeated) {
|
|
7823
7823
|
l.name = "";
|
|
@@ -7876,7 +7876,7 @@ class o_ {
|
|
|
7876
7876
|
case O.Set:
|
|
7877
7877
|
return new Et({ value: r, name: "" });
|
|
7878
7878
|
case O.Choice:
|
|
7879
|
-
return new
|
|
7879
|
+
return new sc({ value: r, name: "" });
|
|
7880
7880
|
default:
|
|
7881
7881
|
throw new Error("Unsupported ASN1 type in use");
|
|
7882
7882
|
}
|
|
@@ -7897,7 +7897,7 @@ const Xe = new o_(), T = (n) => (e) => {
|
|
|
7897
7897
|
Xe.has(e.constructor) ? i = Xe.get(e.constructor) : (i = Xe.createDefault(e.constructor), Xe.set(e.constructor, i));
|
|
7898
7898
|
const r = Object.assign({}, n);
|
|
7899
7899
|
if (typeof r.type == "number" && !r.converter) {
|
|
7900
|
-
const s =
|
|
7900
|
+
const s = oc(n.type);
|
|
7901
7901
|
if (!s)
|
|
7902
7902
|
throw new Error(`Cannot get default converter for property '${t}' of ${e.constructor.name}`);
|
|
7903
7903
|
r.converter = s;
|
|
@@ -7911,7 +7911,7 @@ class Il extends Error {
|
|
|
7911
7911
|
}
|
|
7912
7912
|
class a_ {
|
|
7913
7913
|
static parse(e, t) {
|
|
7914
|
-
const i =
|
|
7914
|
+
const i = En(e);
|
|
7915
7915
|
if (i.result.error)
|
|
7916
7916
|
throw new Error(i.result.error);
|
|
7917
7917
|
return this.fromASN(i.result, t);
|
|
@@ -7944,7 +7944,7 @@ class a_ {
|
|
|
7944
7944
|
throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");
|
|
7945
7945
|
const l = r.itemType;
|
|
7946
7946
|
if (typeof l == "number") {
|
|
7947
|
-
const u =
|
|
7947
|
+
const u = oc(l);
|
|
7948
7948
|
if (!u)
|
|
7949
7949
|
throw new Error(`Cannot get default converter for array item of ${t.name} ASN1 schema`);
|
|
7950
7950
|
return t.from(e.valueBlock.value, (p) => u.fromASN(p));
|
|
@@ -7964,7 +7964,7 @@ class a_ {
|
|
|
7964
7964
|
if (p.implicit) {
|
|
7965
7965
|
const x = p.repeated === "sequence" ? It : Et, h = new x();
|
|
7966
7966
|
h.valueBlock = u.valueBlock;
|
|
7967
|
-
const m =
|
|
7967
|
+
const m = En(h.toBER(!1));
|
|
7968
7968
|
if (m.offset === -1)
|
|
7969
7969
|
throw new Error(`Cannot parse the child item. ${m.result.error}`);
|
|
7970
7970
|
if (!("value" in m.result.valueBlock && Array.isArray(m.result.valueBlock.value)))
|
|
@@ -7985,7 +7985,7 @@ class a_ {
|
|
|
7985
7985
|
throw new Error(`Cannot get '${m}' class from asn1js module`);
|
|
7986
7986
|
h = new b();
|
|
7987
7987
|
}
|
|
7988
|
-
h.valueBlock = x.valueBlock, x =
|
|
7988
|
+
h.valueBlock = x.valueBlock, x = En(h.toBER(!1)).result;
|
|
7989
7989
|
}
|
|
7990
7990
|
c[l] = _.fromASN(x);
|
|
7991
7991
|
}
|
|
@@ -8002,7 +8002,7 @@ class a_ {
|
|
|
8002
8002
|
}
|
|
8003
8003
|
}
|
|
8004
8004
|
}
|
|
8005
|
-
class
|
|
8005
|
+
class ac {
|
|
8006
8006
|
static serialize(e) {
|
|
8007
8007
|
return e instanceof Ne ? e.toBER(!1) : this.toASN(e).toBER(!1);
|
|
8008
8008
|
}
|
|
@@ -8018,7 +8018,7 @@ class oc {
|
|
|
8018
8018
|
if (!Array.isArray(e))
|
|
8019
8019
|
throw new TypeError("Parameter 1 should be type of Array.");
|
|
8020
8020
|
if (typeof i.itemType == "number") {
|
|
8021
|
-
const o =
|
|
8021
|
+
const o = oc(i.itemType);
|
|
8022
8022
|
if (!o)
|
|
8023
8023
|
throw new Error(`Cannot get default converter for array item of ${t.name} ASN1 schema`);
|
|
8024
8024
|
r = e.map((c) => o.toASN(c));
|
|
@@ -8029,12 +8029,12 @@ class oc {
|
|
|
8029
8029
|
const c = i.items[o], l = e[o];
|
|
8030
8030
|
if (l === void 0 || c.defaultValue === l || typeof c.defaultValue == "object" && typeof l == "object" && s_(this.serialize(c.defaultValue), this.serialize(l)))
|
|
8031
8031
|
continue;
|
|
8032
|
-
const u =
|
|
8032
|
+
const u = ac.toAsnItem(c, o, t, l);
|
|
8033
8033
|
if (typeof c.context == "number")
|
|
8034
8034
|
if (c.implicit)
|
|
8035
8035
|
if (!c.repeated && (typeof c.type == "number" || At(c.type))) {
|
|
8036
8036
|
const p = {};
|
|
8037
|
-
p.valueHex = u instanceof
|
|
8037
|
+
p.valueHex = u instanceof on ? u.valueBeforeDecodeView : u.valueBlock.toBER(), r.push(new Ni({
|
|
8038
8038
|
optional: c.optional,
|
|
8039
8039
|
idBlock: {
|
|
8040
8040
|
tagClass: 3,
|
|
@@ -8118,13 +8118,13 @@ class ue extends Array {
|
|
|
8118
8118
|
}
|
|
8119
8119
|
class U {
|
|
8120
8120
|
static serialize(e) {
|
|
8121
|
-
return
|
|
8121
|
+
return ac.serialize(e);
|
|
8122
8122
|
}
|
|
8123
8123
|
static parse(e, t) {
|
|
8124
8124
|
return a_.parse(e, t);
|
|
8125
8125
|
}
|
|
8126
8126
|
static toString(e) {
|
|
8127
|
-
const t = V.isBufferSource(e) ? V.toArrayBuffer(e) : U.serialize(e), i =
|
|
8127
|
+
const t = V.isBufferSource(e) ? V.toArrayBuffer(e) : U.serialize(e), i = En(t);
|
|
8128
8128
|
if (i.offset === -1)
|
|
8129
8129
|
throw new Error(`Cannot decode ASN.1 data. ${i.result.error}`);
|
|
8130
8130
|
return i.result.toString();
|
|
@@ -8653,7 +8653,7 @@ class $l {
|
|
|
8653
8653
|
return new Uint8Array(t.toByteArray()).buffer;
|
|
8654
8654
|
}
|
|
8655
8655
|
}
|
|
8656
|
-
var
|
|
8656
|
+
var So, Ao, Io;
|
|
8657
8657
|
let Oe = class {
|
|
8658
8658
|
constructor(e = {}) {
|
|
8659
8659
|
Object.assign(this, e);
|
|
@@ -8708,28 +8708,28 @@ d([
|
|
|
8708
8708
|
d([
|
|
8709
8709
|
f({ type: On })
|
|
8710
8710
|
], _s.prototype, "value", void 0);
|
|
8711
|
-
let Bn =
|
|
8711
|
+
let Bn = So = class extends ue {
|
|
8712
8712
|
constructor(e) {
|
|
8713
|
-
super(e), Object.setPrototypeOf(this,
|
|
8713
|
+
super(e), Object.setPrototypeOf(this, So.prototype);
|
|
8714
8714
|
}
|
|
8715
8715
|
};
|
|
8716
|
-
Bn =
|
|
8716
|
+
Bn = So = d([
|
|
8717
8717
|
T({ type: O.Set, itemType: _s })
|
|
8718
8718
|
], Bn);
|
|
8719
|
-
let
|
|
8719
|
+
let Eo = Ao = class extends ue {
|
|
8720
8720
|
constructor(e) {
|
|
8721
|
-
super(e), Object.setPrototypeOf(this,
|
|
8721
|
+
super(e), Object.setPrototypeOf(this, Ao.prototype);
|
|
8722
8722
|
}
|
|
8723
8723
|
};
|
|
8724
|
-
|
|
8724
|
+
Eo = Ao = d([
|
|
8725
8725
|
T({ type: O.Sequence, itemType: Bn })
|
|
8726
|
-
],
|
|
8727
|
-
let be =
|
|
8726
|
+
], Eo);
|
|
8727
|
+
let be = Io = class extends Eo {
|
|
8728
8728
|
constructor(e) {
|
|
8729
|
-
super(e), Object.setPrototypeOf(this,
|
|
8729
|
+
super(e), Object.setPrototypeOf(this, Io.prototype);
|
|
8730
8730
|
}
|
|
8731
8731
|
};
|
|
8732
|
-
be =
|
|
8732
|
+
be = Io = d([
|
|
8733
8733
|
T({ type: O.Sequence })
|
|
8734
8734
|
], be);
|
|
8735
8735
|
const c_ = {
|
|
@@ -8747,17 +8747,17 @@ d([
|
|
|
8747
8747
|
d([
|
|
8748
8748
|
f({ type: y.Any, context: 0 })
|
|
8749
8749
|
], yi.prototype, "value", void 0);
|
|
8750
|
-
class
|
|
8750
|
+
class cc {
|
|
8751
8751
|
constructor(e = {}) {
|
|
8752
8752
|
this.partyName = new Oe(), Object.assign(this, e);
|
|
8753
8753
|
}
|
|
8754
8754
|
}
|
|
8755
8755
|
d([
|
|
8756
8756
|
f({ type: Oe, optional: !0, context: 0, implicit: !0 })
|
|
8757
|
-
],
|
|
8757
|
+
], cc.prototype, "nameAssigner", void 0);
|
|
8758
8758
|
d([
|
|
8759
8759
|
f({ type: Oe, context: 1, implicit: !0 })
|
|
8760
|
-
],
|
|
8760
|
+
], cc.prototype, "partyName", void 0);
|
|
8761
8761
|
let ee = class {
|
|
8762
8762
|
constructor(e = {}) {
|
|
8763
8763
|
Object.assign(this, e);
|
|
@@ -8779,7 +8779,7 @@ d([
|
|
|
8779
8779
|
f({ type: be, context: 4, implicit: !1 })
|
|
8780
8780
|
], ee.prototype, "directoryName", void 0);
|
|
8781
8781
|
d([
|
|
8782
|
-
f({ type:
|
|
8782
|
+
f({ type: cc, context: 5 })
|
|
8783
8783
|
], ee.prototype, "ediPartyName", void 0);
|
|
8784
8784
|
d([
|
|
8785
8785
|
f({ type: y.IA5String, context: 6, implicit: !0 })
|
|
@@ -8793,9 +8793,9 @@ d([
|
|
|
8793
8793
|
ee = d([
|
|
8794
8794
|
T({ type: O.Choice })
|
|
8795
8795
|
], ee);
|
|
8796
|
-
const
|
|
8797
|
-
var
|
|
8798
|
-
const
|
|
8796
|
+
const lc = "1.3.6.1.5.5.7", l_ = `${lc}.1`, Hn = `${lc}.3`, ms = `${lc}.48`, Cl = `${ms}.1`, jl = `${ms}.2`, Nl = `${ms}.3`, Ol = `${ms}.5`, qt = "2.5.29";
|
|
8797
|
+
var $o;
|
|
8798
|
+
const Co = `${l_}.1`;
|
|
8799
8799
|
class Ti {
|
|
8800
8800
|
constructor(e = {}) {
|
|
8801
8801
|
this.accessMethod = "", this.accessLocation = new ee(), Object.assign(this, e);
|
|
@@ -8807,16 +8807,16 @@ d([
|
|
|
8807
8807
|
d([
|
|
8808
8808
|
f({ type: ee })
|
|
8809
8809
|
], Ti.prototype, "accessLocation", void 0);
|
|
8810
|
-
let
|
|
8810
|
+
let In = $o = class extends ue {
|
|
8811
8811
|
constructor(e) {
|
|
8812
|
-
super(e), Object.setPrototypeOf(this,
|
|
8812
|
+
super(e), Object.setPrototypeOf(this, $o.prototype);
|
|
8813
8813
|
}
|
|
8814
8814
|
};
|
|
8815
|
-
|
|
8815
|
+
In = $o = d([
|
|
8816
8816
|
T({ type: O.Sequence, itemType: Ti })
|
|
8817
|
-
],
|
|
8818
|
-
const
|
|
8819
|
-
class
|
|
8817
|
+
], In);
|
|
8818
|
+
const jo = `${qt}.35`;
|
|
8819
|
+
class uc extends se {
|
|
8820
8820
|
}
|
|
8821
8821
|
class Yt {
|
|
8822
8822
|
constructor(e = {}) {
|
|
@@ -8824,7 +8824,7 @@ class Yt {
|
|
|
8824
8824
|
}
|
|
8825
8825
|
}
|
|
8826
8826
|
d([
|
|
8827
|
-
f({ type:
|
|
8827
|
+
f({ type: uc, context: 0, optional: !0, implicit: !0 })
|
|
8828
8828
|
], Yt.prototype, "keyIdentifier", void 0);
|
|
8829
8829
|
d([
|
|
8830
8830
|
f({ type: ee, context: 1, optional: !0, implicit: !0, repeated: "sequence" })
|
|
@@ -8850,25 +8850,25 @@ d([
|
|
|
8850
8850
|
d([
|
|
8851
8851
|
f({ type: y.Integer, optional: !0 })
|
|
8852
8852
|
], mr.prototype, "pathLenConstraint", void 0);
|
|
8853
|
-
var
|
|
8854
|
-
let Le =
|
|
8853
|
+
var No;
|
|
8854
|
+
let Le = No = class extends ue {
|
|
8855
8855
|
constructor(e) {
|
|
8856
|
-
super(e), Object.setPrototypeOf(this,
|
|
8856
|
+
super(e), Object.setPrototypeOf(this, No.prototype);
|
|
8857
8857
|
}
|
|
8858
8858
|
};
|
|
8859
|
-
Le =
|
|
8859
|
+
Le = No = d([
|
|
8860
8860
|
T({ type: O.Sequence, itemType: ee })
|
|
8861
8861
|
], Le);
|
|
8862
|
-
var
|
|
8863
|
-
let Bl =
|
|
8862
|
+
var Oo;
|
|
8863
|
+
let Bl = Oo = class extends Le {
|
|
8864
8864
|
constructor(e) {
|
|
8865
|
-
super(e), Object.setPrototypeOf(this,
|
|
8865
|
+
super(e), Object.setPrototypeOf(this, Oo.prototype);
|
|
8866
8866
|
}
|
|
8867
8867
|
};
|
|
8868
|
-
Bl =
|
|
8868
|
+
Bl = Oo = d([
|
|
8869
8869
|
T({ type: O.Sequence })
|
|
8870
8870
|
], Bl);
|
|
8871
|
-
var
|
|
8871
|
+
var Bo;
|
|
8872
8872
|
const Pp = `${qt}.32`;
|
|
8873
8873
|
let $t = class {
|
|
8874
8874
|
constructor(e = {}) {
|
|
@@ -8893,28 +8893,28 @@ d([
|
|
|
8893
8893
|
$t = d([
|
|
8894
8894
|
T({ type: O.Choice })
|
|
8895
8895
|
], $t);
|
|
8896
|
-
class
|
|
8896
|
+
class dc {
|
|
8897
8897
|
constructor(e = {}) {
|
|
8898
8898
|
this.organization = new $t(), this.noticeNumbers = [], Object.assign(this, e);
|
|
8899
8899
|
}
|
|
8900
8900
|
}
|
|
8901
8901
|
d([
|
|
8902
8902
|
f({ type: $t })
|
|
8903
|
-
],
|
|
8903
|
+
], dc.prototype, "organization", void 0);
|
|
8904
8904
|
d([
|
|
8905
8905
|
f({ type: y.Integer, repeated: "sequence" })
|
|
8906
|
-
],
|
|
8907
|
-
class
|
|
8906
|
+
], dc.prototype, "noticeNumbers", void 0);
|
|
8907
|
+
class pc {
|
|
8908
8908
|
constructor(e = {}) {
|
|
8909
8909
|
Object.assign(this, e);
|
|
8910
8910
|
}
|
|
8911
8911
|
}
|
|
8912
8912
|
d([
|
|
8913
|
-
f({ type:
|
|
8914
|
-
],
|
|
8913
|
+
f({ type: dc, optional: !0 })
|
|
8914
|
+
], pc.prototype, "noticeRef", void 0);
|
|
8915
8915
|
d([
|
|
8916
8916
|
f({ type: $t, optional: !0 })
|
|
8917
|
-
],
|
|
8917
|
+
], pc.prototype, "explicitText", void 0);
|
|
8918
8918
|
let yr = class {
|
|
8919
8919
|
constructor(e = {}) {
|
|
8920
8920
|
Object.assign(this, e);
|
|
@@ -8924,22 +8924,22 @@ d([
|
|
|
8924
8924
|
f({ type: y.IA5String })
|
|
8925
8925
|
], yr.prototype, "cPSuri", void 0);
|
|
8926
8926
|
d([
|
|
8927
|
-
f({ type:
|
|
8927
|
+
f({ type: pc })
|
|
8928
8928
|
], yr.prototype, "userNotice", void 0);
|
|
8929
8929
|
yr = d([
|
|
8930
8930
|
T({ type: O.Choice })
|
|
8931
8931
|
], yr);
|
|
8932
|
-
class
|
|
8932
|
+
class fc {
|
|
8933
8933
|
constructor(e = {}) {
|
|
8934
8934
|
this.policyQualifierId = "", this.qualifier = new ArrayBuffer(0), Object.assign(this, e);
|
|
8935
8935
|
}
|
|
8936
8936
|
}
|
|
8937
8937
|
d([
|
|
8938
8938
|
f({ type: y.ObjectIdentifier })
|
|
8939
|
-
],
|
|
8939
|
+
], fc.prototype, "policyQualifierId", void 0);
|
|
8940
8940
|
d([
|
|
8941
8941
|
f({ type: y.Any })
|
|
8942
|
-
],
|
|
8942
|
+
], fc.prototype, "qualifier", void 0);
|
|
8943
8943
|
class ys {
|
|
8944
8944
|
constructor(e = {}) {
|
|
8945
8945
|
this.policyIdentifier = "", Object.assign(this, e);
|
|
@@ -8949,14 +8949,14 @@ d([
|
|
|
8949
8949
|
f({ type: y.ObjectIdentifier })
|
|
8950
8950
|
], ys.prototype, "policyIdentifier", void 0);
|
|
8951
8951
|
d([
|
|
8952
|
-
f({ type:
|
|
8952
|
+
f({ type: fc, repeated: "sequence", optional: !0 })
|
|
8953
8953
|
], ys.prototype, "policyQualifiers", void 0);
|
|
8954
|
-
let vr =
|
|
8954
|
+
let vr = Bo = class extends ue {
|
|
8955
8955
|
constructor(e) {
|
|
8956
|
-
super(e), Object.setPrototypeOf(this,
|
|
8956
|
+
super(e), Object.setPrototypeOf(this, Bo.prototype);
|
|
8957
8957
|
}
|
|
8958
8958
|
};
|
|
8959
|
-
vr =
|
|
8959
|
+
vr = Bo = d([
|
|
8960
8960
|
T({ type: O.Sequence, itemType: ys })
|
|
8961
8961
|
], vr);
|
|
8962
8962
|
let wr = class {
|
|
@@ -8975,8 +8975,8 @@ let Tl = class extends wr {
|
|
|
8975
8975
|
Tl = d([
|
|
8976
8976
|
T({ type: O.Choice })
|
|
8977
8977
|
], Tl);
|
|
8978
|
-
var
|
|
8979
|
-
const
|
|
8978
|
+
var To;
|
|
8979
|
+
const Po = `${qt}.31`;
|
|
8980
8980
|
var at;
|
|
8981
8981
|
(function(n) {
|
|
8982
8982
|
n[n.unused = 1] = "unused", n[n.keyCompromise = 2] = "keyCompromise", n[n.cACompromise = 4] = "cACompromise", n[n.affiliationChanged = 8] = "affiliationChanged", n[n.superseded = 16] = "superseded", n[n.cessationOfOperation = 32] = "cessationOfOperation", n[n.certificateHold = 64] = "certificateHold", n[n.privilegeWithdrawn = 128] = "privilegeWithdrawn", n[n.aACompromise = 256] = "aACompromise";
|
|
@@ -8990,27 +8990,27 @@ class Rp extends gs {
|
|
|
8990
8990
|
return `[${this.toJSON().join(", ")}]`;
|
|
8991
8991
|
}
|
|
8992
8992
|
}
|
|
8993
|
-
let
|
|
8993
|
+
let cn = class {
|
|
8994
8994
|
constructor(e = {}) {
|
|
8995
8995
|
Object.assign(this, e);
|
|
8996
8996
|
}
|
|
8997
8997
|
};
|
|
8998
8998
|
d([
|
|
8999
8999
|
f({ type: ee, context: 0, repeated: "sequence", implicit: !0 })
|
|
9000
|
-
],
|
|
9000
|
+
], cn.prototype, "fullName", void 0);
|
|
9001
9001
|
d([
|
|
9002
9002
|
f({ type: Bn, context: 1, implicit: !0 })
|
|
9003
|
-
],
|
|
9004
|
-
|
|
9003
|
+
], cn.prototype, "nameRelativeToCRLIssuer", void 0);
|
|
9004
|
+
cn = d([
|
|
9005
9005
|
T({ type: O.Choice })
|
|
9006
|
-
],
|
|
9006
|
+
], cn);
|
|
9007
9007
|
class Kn {
|
|
9008
9008
|
constructor(e = {}) {
|
|
9009
9009
|
Object.assign(this, e);
|
|
9010
9010
|
}
|
|
9011
9011
|
}
|
|
9012
9012
|
d([
|
|
9013
|
-
f({ type:
|
|
9013
|
+
f({ type: cn, context: 0, optional: !0 })
|
|
9014
9014
|
], Kn.prototype, "distributionPoint", void 0);
|
|
9015
9015
|
d([
|
|
9016
9016
|
f({ type: Rp, context: 1, optional: !0, implicit: !0 })
|
|
@@ -9018,21 +9018,21 @@ d([
|
|
|
9018
9018
|
d([
|
|
9019
9019
|
f({ type: ee, context: 2, optional: !0, repeated: "sequence", implicit: !0 })
|
|
9020
9020
|
], Kn.prototype, "cRLIssuer", void 0);
|
|
9021
|
-
let
|
|
9021
|
+
let $n = To = class extends ue {
|
|
9022
9022
|
constructor(e) {
|
|
9023
|
-
super(e), Object.setPrototypeOf(this,
|
|
9023
|
+
super(e), Object.setPrototypeOf(this, To.prototype);
|
|
9024
9024
|
}
|
|
9025
9025
|
};
|
|
9026
|
-
|
|
9026
|
+
$n = To = d([
|
|
9027
9027
|
T({ type: O.Sequence, itemType: Kn })
|
|
9028
|
-
],
|
|
9029
|
-
var
|
|
9030
|
-
let Pl =
|
|
9028
|
+
], $n);
|
|
9029
|
+
var Ro;
|
|
9030
|
+
let Pl = Ro = class extends $n {
|
|
9031
9031
|
constructor(e) {
|
|
9032
|
-
super(e), Object.setPrototypeOf(this,
|
|
9032
|
+
super(e), Object.setPrototypeOf(this, Ro.prototype);
|
|
9033
9033
|
}
|
|
9034
9034
|
};
|
|
9035
|
-
Pl =
|
|
9035
|
+
Pl = Ro = d([
|
|
9036
9036
|
T({ type: O.Sequence, itemType: Kn })
|
|
9037
9037
|
], Pl);
|
|
9038
9038
|
class Te {
|
|
@@ -9042,7 +9042,7 @@ class Te {
|
|
|
9042
9042
|
}
|
|
9043
9043
|
Te.ONLY = !1;
|
|
9044
9044
|
d([
|
|
9045
|
-
f({ type:
|
|
9045
|
+
f({ type: cn, context: 0, optional: !0 })
|
|
9046
9046
|
], Te.prototype, "distributionPoint", void 0);
|
|
9047
9047
|
d([
|
|
9048
9048
|
f({ type: y.Boolean, context: 1, defaultValue: Te.ONLY, implicit: !0 })
|
|
@@ -9063,7 +9063,7 @@ var ui;
|
|
|
9063
9063
|
(function(n) {
|
|
9064
9064
|
n[n.unspecified = 0] = "unspecified", n[n.keyCompromise = 1] = "keyCompromise", n[n.cACompromise = 2] = "cACompromise", n[n.affiliationChanged = 3] = "affiliationChanged", n[n.superseded = 4] = "superseded", n[n.cessationOfOperation = 5] = "cessationOfOperation", n[n.certificateHold = 6] = "certificateHold", n[n.removeFromCRL = 8] = "removeFromCRL", n[n.privilegeWithdrawn = 9] = "privilegeWithdrawn", n[n.aACompromise = 10] = "aACompromise";
|
|
9065
9065
|
})(ui || (ui = {}));
|
|
9066
|
-
let
|
|
9066
|
+
let Lo = class {
|
|
9067
9067
|
constructor(e = ui.unspecified) {
|
|
9068
9068
|
this.reason = ui.unspecified, this.reason = e;
|
|
9069
9069
|
}
|
|
@@ -9076,50 +9076,50 @@ let Ro = class {
|
|
|
9076
9076
|
};
|
|
9077
9077
|
d([
|
|
9078
9078
|
f({ type: y.Enumerated })
|
|
9079
|
-
],
|
|
9080
|
-
|
|
9079
|
+
], Lo.prototype, "reason", void 0);
|
|
9080
|
+
Lo = d([
|
|
9081
9081
|
T({ type: O.Choice })
|
|
9082
|
-
],
|
|
9083
|
-
var
|
|
9082
|
+
], Lo);
|
|
9083
|
+
var Uo;
|
|
9084
9084
|
const Lp = `${qt}.37`;
|
|
9085
|
-
let br =
|
|
9085
|
+
let br = Uo = class extends ue {
|
|
9086
9086
|
constructor(e) {
|
|
9087
|
-
super(e), Object.setPrototypeOf(this,
|
|
9087
|
+
super(e), Object.setPrototypeOf(this, Uo.prototype);
|
|
9088
9088
|
}
|
|
9089
9089
|
};
|
|
9090
|
-
br =
|
|
9090
|
+
br = Uo = d([
|
|
9091
9091
|
T({ type: O.Sequence, itemType: y.ObjectIdentifier })
|
|
9092
9092
|
], br);
|
|
9093
9093
|
const u_ = `${Hn}.1`, d_ = `${Hn}.2`, p_ = `${Hn}.3`, f_ = `${Hn}.4`, h_ = `${Hn}.8`, g_ = `${Hn}.9`;
|
|
9094
|
-
let
|
|
9094
|
+
let Vo = class {
|
|
9095
9095
|
constructor(e = new ArrayBuffer(0)) {
|
|
9096
9096
|
this.value = e;
|
|
9097
9097
|
}
|
|
9098
9098
|
};
|
|
9099
9099
|
d([
|
|
9100
9100
|
f({ type: y.Integer, converter: _e })
|
|
9101
|
-
],
|
|
9102
|
-
|
|
9101
|
+
], Vo.prototype, "value", void 0);
|
|
9102
|
+
Vo = d([
|
|
9103
9103
|
T({ type: O.Choice })
|
|
9104
|
-
],
|
|
9105
|
-
let
|
|
9104
|
+
], Vo);
|
|
9105
|
+
let Mo = class {
|
|
9106
9106
|
constructor(e) {
|
|
9107
9107
|
this.value = /* @__PURE__ */ new Date(), e && (this.value = e);
|
|
9108
9108
|
}
|
|
9109
9109
|
};
|
|
9110
9110
|
d([
|
|
9111
9111
|
f({ type: y.GeneralizedTime })
|
|
9112
|
-
],
|
|
9113
|
-
|
|
9112
|
+
], Mo.prototype, "value", void 0);
|
|
9113
|
+
Mo = d([
|
|
9114
9114
|
T({ type: O.Choice })
|
|
9115
|
-
],
|
|
9116
|
-
var
|
|
9117
|
-
let Rl =
|
|
9115
|
+
], Mo);
|
|
9116
|
+
var zo;
|
|
9117
|
+
let Rl = zo = class extends Le {
|
|
9118
9118
|
constructor(e) {
|
|
9119
|
-
super(e), Object.setPrototypeOf(this,
|
|
9119
|
+
super(e), Object.setPrototypeOf(this, zo.prototype);
|
|
9120
9120
|
}
|
|
9121
9121
|
};
|
|
9122
|
-
Rl =
|
|
9122
|
+
Rl = zo = d([
|
|
9123
9123
|
T({ type: O.Sequence })
|
|
9124
9124
|
], Rl);
|
|
9125
9125
|
const Up = `${qt}.15`;
|
|
@@ -9127,7 +9127,7 @@ var ct;
|
|
|
9127
9127
|
(function(n) {
|
|
9128
9128
|
n[n.digitalSignature = 1] = "digitalSignature", n[n.nonRepudiation = 2] = "nonRepudiation", n[n.keyEncipherment = 4] = "keyEncipherment", n[n.dataEncipherment = 8] = "dataEncipherment", n[n.keyAgreement = 16] = "keyAgreement", n[n.keyCertSign = 32] = "keyCertSign", n[n.cRLSign = 64] = "cRLSign", n[n.encipherOnly = 128] = "encipherOnly", n[n.decipherOnly = 256] = "decipherOnly";
|
|
9129
9129
|
})(ct || (ct = {}));
|
|
9130
|
-
class
|
|
9130
|
+
class to extends gs {
|
|
9131
9131
|
toJSON() {
|
|
9132
9132
|
const e = this.toNumber(), t = [];
|
|
9133
9133
|
return e & ct.cRLSign && t.push("crlSign"), e & ct.dataEncipherment && t.push("dataEncipherment"), e & ct.decipherOnly && t.push("decipherOnly"), e & ct.digitalSignature && t.push("digitalSignature"), e & ct.encipherOnly && t.push("encipherOnly"), e & ct.keyAgreement && t.push("keyAgreement"), e & ct.keyCertSign && t.push("keyCertSign"), e & ct.keyEncipherment && t.push("keyEncipherment"), e & ct.nonRepudiation && t.push("nonRepudiation"), t;
|
|
@@ -9136,7 +9136,7 @@ class eo extends gs {
|
|
|
9136
9136
|
return `[${this.toJSON().join(", ")}]`;
|
|
9137
9137
|
}
|
|
9138
9138
|
}
|
|
9139
|
-
var
|
|
9139
|
+
var Do;
|
|
9140
9140
|
class vs {
|
|
9141
9141
|
constructor(e = {}) {
|
|
9142
9142
|
this.base = new ee(), this.minimum = 0, Object.assign(this, e);
|
|
@@ -9151,12 +9151,12 @@ d([
|
|
|
9151
9151
|
d([
|
|
9152
9152
|
f({ type: y.Integer, context: 1, optional: !0, implicit: !0 })
|
|
9153
9153
|
], vs.prototype, "maximum", void 0);
|
|
9154
|
-
let kr =
|
|
9154
|
+
let kr = Do = class extends ue {
|
|
9155
9155
|
constructor(e) {
|
|
9156
|
-
super(e), Object.setPrototypeOf(this,
|
|
9156
|
+
super(e), Object.setPrototypeOf(this, Do.prototype);
|
|
9157
9157
|
}
|
|
9158
9158
|
};
|
|
9159
|
-
kr =
|
|
9159
|
+
kr = Do = d([
|
|
9160
9160
|
T({ type: O.Sequence, itemType: vs })
|
|
9161
9161
|
], kr);
|
|
9162
9162
|
class Vp {
|
|
@@ -9193,36 +9193,36 @@ d([
|
|
|
9193
9193
|
converter: _e
|
|
9194
9194
|
})
|
|
9195
9195
|
], Mp.prototype, "inhibitPolicyMapping", void 0);
|
|
9196
|
-
var
|
|
9197
|
-
class
|
|
9196
|
+
var qo;
|
|
9197
|
+
class hc {
|
|
9198
9198
|
constructor(e = {}) {
|
|
9199
9199
|
this.issuerDomainPolicy = "", this.subjectDomainPolicy = "", Object.assign(this, e);
|
|
9200
9200
|
}
|
|
9201
9201
|
}
|
|
9202
9202
|
d([
|
|
9203
9203
|
f({ type: y.ObjectIdentifier })
|
|
9204
|
-
],
|
|
9204
|
+
], hc.prototype, "issuerDomainPolicy", void 0);
|
|
9205
9205
|
d([
|
|
9206
9206
|
f({ type: y.ObjectIdentifier })
|
|
9207
|
-
],
|
|
9208
|
-
let Ll =
|
|
9207
|
+
], hc.prototype, "subjectDomainPolicy", void 0);
|
|
9208
|
+
let Ll = qo = class extends ue {
|
|
9209
9209
|
constructor(e) {
|
|
9210
|
-
super(e), Object.setPrototypeOf(this,
|
|
9210
|
+
super(e), Object.setPrototypeOf(this, qo.prototype);
|
|
9211
9211
|
}
|
|
9212
9212
|
};
|
|
9213
|
-
Ll =
|
|
9214
|
-
T({ type: O.Sequence, itemType:
|
|
9213
|
+
Ll = qo = d([
|
|
9214
|
+
T({ type: O.Sequence, itemType: hc })
|
|
9215
9215
|
], Ll);
|
|
9216
|
-
var
|
|
9216
|
+
var Fo;
|
|
9217
9217
|
const zp = `${qt}.17`;
|
|
9218
|
-
let
|
|
9218
|
+
let Ho = Fo = class extends Le {
|
|
9219
9219
|
constructor(e) {
|
|
9220
|
-
super(e), Object.setPrototypeOf(this,
|
|
9220
|
+
super(e), Object.setPrototypeOf(this, Fo.prototype);
|
|
9221
9221
|
}
|
|
9222
9222
|
};
|
|
9223
|
-
|
|
9223
|
+
Ho = Fo = d([
|
|
9224
9224
|
T({ type: O.Sequence })
|
|
9225
|
-
],
|
|
9225
|
+
], Ho);
|
|
9226
9226
|
let Ct = class {
|
|
9227
9227
|
constructor(e = {}) {
|
|
9228
9228
|
this.type = "", this.values = [], Object.assign(this, e);
|
|
@@ -9234,17 +9234,17 @@ d([
|
|
|
9234
9234
|
d([
|
|
9235
9235
|
f({ type: y.Any, repeated: "set" })
|
|
9236
9236
|
], Ct.prototype, "values", void 0);
|
|
9237
|
-
var
|
|
9238
|
-
let Ul =
|
|
9237
|
+
var Ko;
|
|
9238
|
+
let Ul = Ko = class extends ue {
|
|
9239
9239
|
constructor(e) {
|
|
9240
|
-
super(e), Object.setPrototypeOf(this,
|
|
9240
|
+
super(e), Object.setPrototypeOf(this, Ko.prototype);
|
|
9241
9241
|
}
|
|
9242
9242
|
};
|
|
9243
|
-
Ul =
|
|
9243
|
+
Ul = Ko = d([
|
|
9244
9244
|
T({ type: O.Sequence, itemType: Ct })
|
|
9245
9245
|
], Ul);
|
|
9246
9246
|
const Dp = `${qt}.14`;
|
|
9247
|
-
class Vt extends
|
|
9247
|
+
class Vt extends uc {
|
|
9248
9248
|
}
|
|
9249
9249
|
class qp {
|
|
9250
9250
|
constructor(e = {}) {
|
|
@@ -9281,13 +9281,13 @@ d([
|
|
|
9281
9281
|
d([
|
|
9282
9282
|
f({ type: Fp })
|
|
9283
9283
|
], Hp.prototype, "entrustInfoFlags", void 0);
|
|
9284
|
-
var
|
|
9285
|
-
let Vl =
|
|
9284
|
+
var Wo;
|
|
9285
|
+
let Vl = Wo = class extends ue {
|
|
9286
9286
|
constructor(e) {
|
|
9287
|
-
super(e), Object.setPrototypeOf(this,
|
|
9287
|
+
super(e), Object.setPrototypeOf(this, Wo.prototype);
|
|
9288
9288
|
}
|
|
9289
9289
|
};
|
|
9290
|
-
Vl =
|
|
9290
|
+
Vl = Wo = d([
|
|
9291
9291
|
T({ type: O.Sequence, itemType: Ti })
|
|
9292
9292
|
], Vl);
|
|
9293
9293
|
class D {
|
|
@@ -9360,7 +9360,7 @@ d([
|
|
|
9360
9360
|
d([
|
|
9361
9361
|
f({ type: je })
|
|
9362
9362
|
], Pi.prototype, "notAfter", void 0);
|
|
9363
|
-
var
|
|
9363
|
+
var Go;
|
|
9364
9364
|
let tt = class Kp {
|
|
9365
9365
|
constructor(e = {}) {
|
|
9366
9366
|
this.extnID = "", this.critical = Kp.CRITICAL, this.extnValue = new se(), Object.assign(this, e);
|
|
@@ -9379,28 +9379,28 @@ d([
|
|
|
9379
9379
|
d([
|
|
9380
9380
|
f({ type: se })
|
|
9381
9381
|
], tt.prototype, "extnValue", void 0);
|
|
9382
|
-
let Mt =
|
|
9382
|
+
let Mt = Go = class extends ue {
|
|
9383
9383
|
constructor(e) {
|
|
9384
|
-
super(e), Object.setPrototypeOf(this,
|
|
9384
|
+
super(e), Object.setPrototypeOf(this, Go.prototype);
|
|
9385
9385
|
}
|
|
9386
9386
|
};
|
|
9387
|
-
Mt =
|
|
9387
|
+
Mt = Go = d([
|
|
9388
9388
|
T({ type: O.Sequence, itemType: tt })
|
|
9389
9389
|
], Mt);
|
|
9390
|
-
var
|
|
9390
|
+
var ln;
|
|
9391
9391
|
(function(n) {
|
|
9392
9392
|
n[n.v1 = 0] = "v1", n[n.v2 = 1] = "v2", n[n.v3 = 2] = "v3";
|
|
9393
|
-
})(
|
|
9393
|
+
})(ln || (ln = {}));
|
|
9394
9394
|
class Ye {
|
|
9395
9395
|
constructor(e = {}) {
|
|
9396
|
-
this.version =
|
|
9396
|
+
this.version = ln.v1, this.serialNumber = new ArrayBuffer(0), this.signature = new D(), this.issuer = new be(), this.validity = new Pi(), this.subject = new be(), this.subjectPublicKeyInfo = new lt(), Object.assign(this, e);
|
|
9397
9397
|
}
|
|
9398
9398
|
}
|
|
9399
9399
|
d([
|
|
9400
9400
|
f({
|
|
9401
9401
|
type: y.Integer,
|
|
9402
9402
|
context: 0,
|
|
9403
|
-
defaultValue:
|
|
9403
|
+
defaultValue: ln.v1
|
|
9404
9404
|
})
|
|
9405
9405
|
], Ye.prototype, "version", void 0);
|
|
9406
9406
|
d([
|
|
@@ -9438,20 +9438,20 @@ d([
|
|
|
9438
9438
|
d([
|
|
9439
9439
|
f({ type: Mt, context: 3, optional: !0 })
|
|
9440
9440
|
], Ye.prototype, "extensions", void 0);
|
|
9441
|
-
class
|
|
9441
|
+
class un {
|
|
9442
9442
|
constructor(e = {}) {
|
|
9443
9443
|
this.tbsCertificate = new Ye(), this.signatureAlgorithm = new D(), this.signatureValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
9444
9444
|
}
|
|
9445
9445
|
}
|
|
9446
9446
|
d([
|
|
9447
9447
|
f({ type: Ye })
|
|
9448
|
-
],
|
|
9448
|
+
], un.prototype, "tbsCertificate", void 0);
|
|
9449
9449
|
d([
|
|
9450
9450
|
f({ type: D })
|
|
9451
|
-
],
|
|
9451
|
+
], un.prototype, "signatureAlgorithm", void 0);
|
|
9452
9452
|
d([
|
|
9453
9453
|
f({ type: y.BitString })
|
|
9454
|
-
],
|
|
9454
|
+
], un.prototype, "signatureValue", void 0);
|
|
9455
9455
|
class ws {
|
|
9456
9456
|
constructor(e = {}) {
|
|
9457
9457
|
this.userCertificate = new ArrayBuffer(0), this.revocationDate = new je(), Object.assign(this, e);
|
|
@@ -9492,20 +9492,20 @@ d([
|
|
|
9492
9492
|
d([
|
|
9493
9493
|
f({ type: tt, optional: !0, context: 0, repeated: "sequence" })
|
|
9494
9494
|
], Pt.prototype, "crlExtensions", void 0);
|
|
9495
|
-
class
|
|
9495
|
+
class gc {
|
|
9496
9496
|
constructor(e = {}) {
|
|
9497
9497
|
this.tbsCertList = new Pt(), this.signatureAlgorithm = new D(), this.signature = new ArrayBuffer(0), Object.assign(this, e);
|
|
9498
9498
|
}
|
|
9499
9499
|
}
|
|
9500
9500
|
d([
|
|
9501
9501
|
f({ type: Pt })
|
|
9502
|
-
],
|
|
9502
|
+
], gc.prototype, "tbsCertList", void 0);
|
|
9503
9503
|
d([
|
|
9504
9504
|
f({ type: D })
|
|
9505
|
-
],
|
|
9505
|
+
], gc.prototype, "signatureAlgorithm", void 0);
|
|
9506
9506
|
d([
|
|
9507
9507
|
f({ type: y.BitString })
|
|
9508
|
-
],
|
|
9508
|
+
], gc.prototype, "signature", void 0);
|
|
9509
9509
|
class Wn {
|
|
9510
9510
|
constructor(e = {}) {
|
|
9511
9511
|
this.issuer = new be(), this.serialNumber = new ArrayBuffer(0), Object.assign(this, e);
|
|
@@ -9560,11 +9560,11 @@ let Ml = class extends D {
|
|
|
9560
9560
|
Ml = d([
|
|
9561
9561
|
T({ type: O.Sequence })
|
|
9562
9562
|
], Ml);
|
|
9563
|
-
let
|
|
9563
|
+
let Jo = class extends D {
|
|
9564
9564
|
};
|
|
9565
|
-
|
|
9565
|
+
Jo = d([
|
|
9566
9566
|
T({ type: O.Sequence })
|
|
9567
|
-
],
|
|
9567
|
+
], Jo);
|
|
9568
9568
|
let Gn = class {
|
|
9569
9569
|
constructor(e = {}) {
|
|
9570
9570
|
this.attrType = "", this.attrValues = [], Object.assign(this, e);
|
|
@@ -9576,7 +9576,7 @@ d([
|
|
|
9576
9576
|
d([
|
|
9577
9577
|
f({ type: y.Any, repeated: "set" })
|
|
9578
9578
|
], Gn.prototype, "attrValues", void 0);
|
|
9579
|
-
var
|
|
9579
|
+
var Zo;
|
|
9580
9580
|
class kt {
|
|
9581
9581
|
constructor(e = {}) {
|
|
9582
9582
|
this.version = jt.v0, this.sid = new Tn(), this.digestAlgorithm = new vi(), this.signatureAlgorithm = new xr(), this.signature = new se(), Object.assign(this, e);
|
|
@@ -9603,12 +9603,12 @@ d([
|
|
|
9603
9603
|
d([
|
|
9604
9604
|
f({ type: Gn, repeated: "set", context: 1, implicit: !0, optional: !0 })
|
|
9605
9605
|
], kt.prototype, "unsignedAttrs", void 0);
|
|
9606
|
-
let Ar =
|
|
9606
|
+
let Ar = Zo = class extends ue {
|
|
9607
9607
|
constructor(e) {
|
|
9608
|
-
super(e), Object.setPrototypeOf(this,
|
|
9608
|
+
super(e), Object.setPrototypeOf(this, Zo.prototype);
|
|
9609
9609
|
}
|
|
9610
9610
|
};
|
|
9611
|
-
Ar =
|
|
9611
|
+
Ar = Zo = d([
|
|
9612
9612
|
T({ type: O.Set, itemType: kt })
|
|
9613
9613
|
], Ar);
|
|
9614
9614
|
let zl = class extends je {
|
|
@@ -9621,27 +9621,27 @@ let Dl = class extends kt {
|
|
|
9621
9621
|
Dl = d([
|
|
9622
9622
|
T({ type: O.Sequence })
|
|
9623
9623
|
], Dl);
|
|
9624
|
-
class
|
|
9624
|
+
class _c {
|
|
9625
9625
|
constructor(e = {}) {
|
|
9626
9626
|
this.acIssuer = new ee(), this.acSerial = 0, this.attrs = [], Object.assign(this, e);
|
|
9627
9627
|
}
|
|
9628
9628
|
}
|
|
9629
9629
|
d([
|
|
9630
9630
|
f({ type: ee })
|
|
9631
|
-
],
|
|
9631
|
+
], _c.prototype, "acIssuer", void 0);
|
|
9632
9632
|
d([
|
|
9633
9633
|
f({ type: y.Integer })
|
|
9634
|
-
],
|
|
9634
|
+
], _c.prototype, "acSerial", void 0);
|
|
9635
9635
|
d([
|
|
9636
9636
|
f({ type: Ct, repeated: "sequence" })
|
|
9637
|
-
],
|
|
9638
|
-
var
|
|
9639
|
-
let Ir =
|
|
9637
|
+
], _c.prototype, "attrs", void 0);
|
|
9638
|
+
var Yo;
|
|
9639
|
+
let Ir = Yo = class extends ue {
|
|
9640
9640
|
constructor(e) {
|
|
9641
|
-
super(e), Object.setPrototypeOf(this,
|
|
9641
|
+
super(e), Object.setPrototypeOf(this, Yo.prototype);
|
|
9642
9642
|
}
|
|
9643
9643
|
};
|
|
9644
|
-
Ir =
|
|
9644
|
+
Ir = Yo = d([
|
|
9645
9645
|
T({ type: O.Sequence, itemType: y.ObjectIdentifier })
|
|
9646
9646
|
], Ir);
|
|
9647
9647
|
class bs {
|
|
@@ -9661,41 +9661,41 @@ d([
|
|
|
9661
9661
|
d([
|
|
9662
9662
|
f({ type: y.Boolean, defaultValue: !0 })
|
|
9663
9663
|
], bs.prototype, "permitUnSpecified", void 0);
|
|
9664
|
-
class
|
|
9664
|
+
class vn {
|
|
9665
9665
|
constructor(e = {}) {
|
|
9666
9666
|
this.issuer = new Le(), this.serial = new ArrayBuffer(0), this.issuerUID = new ArrayBuffer(0), Object.assign(this, e);
|
|
9667
9667
|
}
|
|
9668
9668
|
}
|
|
9669
9669
|
d([
|
|
9670
9670
|
f({ type: Le })
|
|
9671
|
-
],
|
|
9671
|
+
], vn.prototype, "issuer", void 0);
|
|
9672
9672
|
d([
|
|
9673
9673
|
f({ type: y.Integer, converter: _e })
|
|
9674
|
-
],
|
|
9674
|
+
], vn.prototype, "serial", void 0);
|
|
9675
9675
|
d([
|
|
9676
9676
|
f({ type: y.BitString, optional: !0 })
|
|
9677
|
-
],
|
|
9678
|
-
var
|
|
9677
|
+
], vn.prototype, "issuerUID", void 0);
|
|
9678
|
+
var Xo;
|
|
9679
9679
|
(function(n) {
|
|
9680
9680
|
n[n.publicKey = 0] = "publicKey", n[n.publicKeyCert = 1] = "publicKeyCert", n[n.otherObjectTypes = 2] = "otherObjectTypes";
|
|
9681
|
-
})(
|
|
9682
|
-
class
|
|
9681
|
+
})(Xo || (Xo = {}));
|
|
9682
|
+
class wn {
|
|
9683
9683
|
constructor(e = {}) {
|
|
9684
|
-
this.digestedObjectType =
|
|
9684
|
+
this.digestedObjectType = Xo.publicKey, this.digestAlgorithm = new D(), this.objectDigest = new ArrayBuffer(0), Object.assign(this, e);
|
|
9685
9685
|
}
|
|
9686
9686
|
}
|
|
9687
9687
|
d([
|
|
9688
9688
|
f({ type: y.Enumerated })
|
|
9689
|
-
],
|
|
9689
|
+
], wn.prototype, "digestedObjectType", void 0);
|
|
9690
9690
|
d([
|
|
9691
9691
|
f({ type: y.ObjectIdentifier, optional: !0 })
|
|
9692
|
-
],
|
|
9692
|
+
], wn.prototype, "otherObjectTypeID", void 0);
|
|
9693
9693
|
d([
|
|
9694
9694
|
f({ type: D })
|
|
9695
|
-
],
|
|
9695
|
+
], wn.prototype, "digestAlgorithm", void 0);
|
|
9696
9696
|
d([
|
|
9697
9697
|
f({ type: y.BitString })
|
|
9698
|
-
],
|
|
9698
|
+
], wn.prototype, "objectDigest", void 0);
|
|
9699
9699
|
class ks {
|
|
9700
9700
|
constructor(e = {}) {
|
|
9701
9701
|
Object.assign(this, e);
|
|
@@ -9705,10 +9705,10 @@ d([
|
|
|
9705
9705
|
f({ type: Le, optional: !0 })
|
|
9706
9706
|
], ks.prototype, "issuerName", void 0);
|
|
9707
9707
|
d([
|
|
9708
|
-
f({ type:
|
|
9708
|
+
f({ type: vn, context: 0, implicit: !0, optional: !0 })
|
|
9709
9709
|
], ks.prototype, "baseCertificateID", void 0);
|
|
9710
9710
|
d([
|
|
9711
|
-
f({ type:
|
|
9711
|
+
f({ type: wn, context: 1, implicit: !0, optional: !0 })
|
|
9712
9712
|
], ks.prototype, "objectDigestInfo", void 0);
|
|
9713
9713
|
let Pn = class {
|
|
9714
9714
|
constructor(e = {}) {
|
|
@@ -9741,21 +9741,21 @@ class Ri {
|
|
|
9741
9741
|
}
|
|
9742
9742
|
}
|
|
9743
9743
|
d([
|
|
9744
|
-
f({ type:
|
|
9744
|
+
f({ type: vn, implicit: !0, context: 0, optional: !0 })
|
|
9745
9745
|
], Ri.prototype, "baseCertificateID", void 0);
|
|
9746
9746
|
d([
|
|
9747
9747
|
f({ type: Le, implicit: !0, context: 1, optional: !0 })
|
|
9748
9748
|
], Ri.prototype, "entityName", void 0);
|
|
9749
9749
|
d([
|
|
9750
|
-
f({ type:
|
|
9750
|
+
f({ type: wn, implicit: !0, context: 2, optional: !0 })
|
|
9751
9751
|
], Ri.prototype, "objectDigestInfo", void 0);
|
|
9752
|
-
var
|
|
9752
|
+
var Qo;
|
|
9753
9753
|
(function(n) {
|
|
9754
9754
|
n[n.v2 = 1] = "v2";
|
|
9755
|
-
})(
|
|
9755
|
+
})(Qo || (Qo = {}));
|
|
9756
9756
|
class pt {
|
|
9757
9757
|
constructor(e = {}) {
|
|
9758
|
-
this.version =
|
|
9758
|
+
this.version = Qo.v2, this.holder = new Ri(), this.issuer = new Pn(), this.signature = new D(), this.serialNumber = new ArrayBuffer(0), this.attrCertValidityPeriod = new xs(), this.attributes = [], Object.assign(this, e);
|
|
9759
9759
|
}
|
|
9760
9760
|
}
|
|
9761
9761
|
d([
|
|
@@ -9803,33 +9803,33 @@ var Er;
|
|
|
9803
9803
|
(function(n) {
|
|
9804
9804
|
n[n.unmarked = 1] = "unmarked", n[n.unclassified = 2] = "unclassified", n[n.restricted = 4] = "restricted", n[n.confidential = 8] = "confidential", n[n.secret = 16] = "secret", n[n.topSecret = 32] = "topSecret";
|
|
9805
9805
|
})(Er || (Er = {}));
|
|
9806
|
-
class
|
|
9806
|
+
class ea extends gs {
|
|
9807
9807
|
}
|
|
9808
|
-
class
|
|
9808
|
+
class mc {
|
|
9809
9809
|
constructor(e = {}) {
|
|
9810
9810
|
this.type = "", this.value = new ArrayBuffer(0), Object.assign(this, e);
|
|
9811
9811
|
}
|
|
9812
9812
|
}
|
|
9813
9813
|
d([
|
|
9814
9814
|
f({ type: y.ObjectIdentifier, implicit: !0, context: 0 })
|
|
9815
|
-
],
|
|
9815
|
+
], mc.prototype, "type", void 0);
|
|
9816
9816
|
d([
|
|
9817
9817
|
f({ type: y.Any, implicit: !0, context: 1 })
|
|
9818
|
-
],
|
|
9819
|
-
class
|
|
9818
|
+
], mc.prototype, "value", void 0);
|
|
9819
|
+
class yc {
|
|
9820
9820
|
constructor(e = {}) {
|
|
9821
|
-
this.policyId = "", this.classList = new
|
|
9821
|
+
this.policyId = "", this.classList = new ea(Er.unclassified), Object.assign(this, e);
|
|
9822
9822
|
}
|
|
9823
9823
|
}
|
|
9824
9824
|
d([
|
|
9825
9825
|
f({ type: y.ObjectIdentifier })
|
|
9826
|
-
],
|
|
9826
|
+
], yc.prototype, "policyId", void 0);
|
|
9827
9827
|
d([
|
|
9828
|
-
f({ type:
|
|
9829
|
-
],
|
|
9828
|
+
f({ type: ea, defaultValue: new ea(Er.unclassified) })
|
|
9829
|
+
], yc.prototype, "classList", void 0);
|
|
9830
9830
|
d([
|
|
9831
|
-
f({ type:
|
|
9832
|
-
],
|
|
9831
|
+
f({ type: mc, repeated: "set" })
|
|
9832
|
+
], yc.prototype, "securityCategories", void 0);
|
|
9833
9833
|
class As {
|
|
9834
9834
|
constructor(e = {}) {
|
|
9835
9835
|
Object.assign(this, e);
|
|
@@ -9855,20 +9855,20 @@ d([
|
|
|
9855
9855
|
d([
|
|
9856
9856
|
f({ type: As, repeated: "sequence" })
|
|
9857
9857
|
], Wp.prototype, "values", void 0);
|
|
9858
|
-
var
|
|
9858
|
+
var ta;
|
|
9859
9859
|
class Is {
|
|
9860
9860
|
constructor(e = {}) {
|
|
9861
|
-
this.targetCertificate = new
|
|
9861
|
+
this.targetCertificate = new vn(), Object.assign(this, e);
|
|
9862
9862
|
}
|
|
9863
9863
|
}
|
|
9864
9864
|
d([
|
|
9865
|
-
f({ type:
|
|
9865
|
+
f({ type: vn })
|
|
9866
9866
|
], Is.prototype, "targetCertificate", void 0);
|
|
9867
9867
|
d([
|
|
9868
9868
|
f({ type: ee, optional: !0 })
|
|
9869
9869
|
], Is.prototype, "targetName", void 0);
|
|
9870
9870
|
d([
|
|
9871
|
-
f({ type:
|
|
9871
|
+
f({ type: wn, optional: !0 })
|
|
9872
9872
|
], Is.prototype, "certDigestInfo", void 0);
|
|
9873
9873
|
let Rn = class {
|
|
9874
9874
|
constructor(e = {}) {
|
|
@@ -9887,22 +9887,22 @@ d([
|
|
|
9887
9887
|
Rn = d([
|
|
9888
9888
|
T({ type: O.Choice })
|
|
9889
9889
|
], Rn);
|
|
9890
|
-
let
|
|
9890
|
+
let na = ta = class extends ue {
|
|
9891
9891
|
constructor(e) {
|
|
9892
|
-
super(e), Object.setPrototypeOf(this,
|
|
9892
|
+
super(e), Object.setPrototypeOf(this, ta.prototype);
|
|
9893
9893
|
}
|
|
9894
9894
|
};
|
|
9895
|
-
|
|
9895
|
+
na = ta = d([
|
|
9896
9896
|
T({ type: O.Sequence, itemType: Rn })
|
|
9897
|
-
],
|
|
9898
|
-
var
|
|
9899
|
-
let ql =
|
|
9897
|
+
], na);
|
|
9898
|
+
var ia;
|
|
9899
|
+
let ql = ia = class extends ue {
|
|
9900
9900
|
constructor(e) {
|
|
9901
|
-
super(e), Object.setPrototypeOf(this,
|
|
9901
|
+
super(e), Object.setPrototypeOf(this, ia.prototype);
|
|
9902
9902
|
}
|
|
9903
9903
|
};
|
|
9904
|
-
ql =
|
|
9905
|
-
T({ type: O.Sequence, itemType:
|
|
9904
|
+
ql = ia = d([
|
|
9905
|
+
T({ type: O.Sequence, itemType: na })
|
|
9906
9906
|
], ql);
|
|
9907
9907
|
class Gp {
|
|
9908
9908
|
constructor(e = {}) {
|
|
@@ -9915,55 +9915,55 @@ d([
|
|
|
9915
9915
|
d([
|
|
9916
9916
|
f({ type: ee, implicit: !0, context: 1 })
|
|
9917
9917
|
], Gp.prototype, "roleName", void 0);
|
|
9918
|
-
class
|
|
9918
|
+
class vc {
|
|
9919
9919
|
constructor(e = {}) {
|
|
9920
9920
|
this.service = new ee(), this.ident = new ee(), Object.assign(this, e);
|
|
9921
9921
|
}
|
|
9922
9922
|
}
|
|
9923
9923
|
d([
|
|
9924
9924
|
f({ type: ee })
|
|
9925
|
-
],
|
|
9925
|
+
], vc.prototype, "service", void 0);
|
|
9926
9926
|
d([
|
|
9927
9927
|
f({ type: ee })
|
|
9928
|
-
],
|
|
9928
|
+
], vc.prototype, "ident", void 0);
|
|
9929
9929
|
d([
|
|
9930
9930
|
f({ type: se, optional: !0 })
|
|
9931
|
-
],
|
|
9932
|
-
var
|
|
9933
|
-
class
|
|
9931
|
+
], vc.prototype, "authInfo", void 0);
|
|
9932
|
+
var ra;
|
|
9933
|
+
class wc {
|
|
9934
9934
|
constructor(e = {}) {
|
|
9935
9935
|
this.otherCertFormat = "", this.otherCert = new ArrayBuffer(0), Object.assign(this, e);
|
|
9936
9936
|
}
|
|
9937
9937
|
}
|
|
9938
9938
|
d([
|
|
9939
9939
|
f({ type: y.ObjectIdentifier })
|
|
9940
|
-
],
|
|
9940
|
+
], wc.prototype, "otherCertFormat", void 0);
|
|
9941
9941
|
d([
|
|
9942
9942
|
f({ type: y.Any })
|
|
9943
|
-
],
|
|
9943
|
+
], wc.prototype, "otherCert", void 0);
|
|
9944
9944
|
let Ln = class {
|
|
9945
9945
|
constructor(e = {}) {
|
|
9946
9946
|
Object.assign(this, e);
|
|
9947
9947
|
}
|
|
9948
9948
|
};
|
|
9949
9949
|
d([
|
|
9950
|
-
f({ type:
|
|
9950
|
+
f({ type: un })
|
|
9951
9951
|
], Ln.prototype, "certificate", void 0);
|
|
9952
9952
|
d([
|
|
9953
9953
|
f({ type: Ss, context: 2, implicit: !0 })
|
|
9954
9954
|
], Ln.prototype, "v2AttrCert", void 0);
|
|
9955
9955
|
d([
|
|
9956
|
-
f({ type:
|
|
9956
|
+
f({ type: wc, context: 3, implicit: !0 })
|
|
9957
9957
|
], Ln.prototype, "other", void 0);
|
|
9958
9958
|
Ln = d([
|
|
9959
9959
|
T({ type: O.Choice })
|
|
9960
9960
|
], Ln);
|
|
9961
|
-
let $r =
|
|
9961
|
+
let $r = ra = class extends ue {
|
|
9962
9962
|
constructor(e) {
|
|
9963
|
-
super(e), Object.setPrototypeOf(this,
|
|
9963
|
+
super(e), Object.setPrototypeOf(this, ra.prototype);
|
|
9964
9964
|
}
|
|
9965
9965
|
};
|
|
9966
|
-
$r =
|
|
9966
|
+
$r = ra = d([
|
|
9967
9967
|
T({ type: O.Set, itemType: Ln })
|
|
9968
9968
|
], $r);
|
|
9969
9969
|
class Jn {
|
|
@@ -10041,7 +10041,7 @@ d([
|
|
|
10041
10041
|
d([
|
|
10042
10042
|
f({ type: y.Any, optional: !0 })
|
|
10043
10043
|
], $s.prototype, "keyAttr", void 0);
|
|
10044
|
-
var
|
|
10044
|
+
var sa;
|
|
10045
10045
|
class Cs {
|
|
10046
10046
|
constructor(e = {}) {
|
|
10047
10047
|
this.subjectKeyIdentifier = new Vt(), Object.assign(this, e);
|
|
@@ -10070,63 +10070,63 @@ d([
|
|
|
10070
10070
|
Un = d([
|
|
10071
10071
|
T({ type: O.Choice })
|
|
10072
10072
|
], Un);
|
|
10073
|
-
class
|
|
10073
|
+
class bc {
|
|
10074
10074
|
constructor(e = {}) {
|
|
10075
10075
|
this.rid = new Un(), this.encryptedKey = new se(), Object.assign(this, e);
|
|
10076
10076
|
}
|
|
10077
10077
|
}
|
|
10078
10078
|
d([
|
|
10079
10079
|
f({ type: Un })
|
|
10080
|
-
],
|
|
10080
|
+
], bc.prototype, "rid", void 0);
|
|
10081
10081
|
d([
|
|
10082
10082
|
f({ type: se })
|
|
10083
|
-
],
|
|
10084
|
-
let Cr =
|
|
10083
|
+
], bc.prototype, "encryptedKey", void 0);
|
|
10084
|
+
let Cr = sa = class extends ue {
|
|
10085
10085
|
constructor(e) {
|
|
10086
|
-
super(e), Object.setPrototypeOf(this,
|
|
10086
|
+
super(e), Object.setPrototypeOf(this, sa.prototype);
|
|
10087
10087
|
}
|
|
10088
10088
|
};
|
|
10089
|
-
Cr =
|
|
10090
|
-
T({ type: O.Sequence, itemType:
|
|
10089
|
+
Cr = sa = d([
|
|
10090
|
+
T({ type: O.Sequence, itemType: bc })
|
|
10091
10091
|
], Cr);
|
|
10092
|
-
class
|
|
10092
|
+
class kc {
|
|
10093
10093
|
constructor(e = {}) {
|
|
10094
10094
|
this.algorithm = new D(), this.publicKey = new ArrayBuffer(0), Object.assign(this, e);
|
|
10095
10095
|
}
|
|
10096
10096
|
}
|
|
10097
10097
|
d([
|
|
10098
10098
|
f({ type: D })
|
|
10099
|
-
],
|
|
10099
|
+
], kc.prototype, "algorithm", void 0);
|
|
10100
10100
|
d([
|
|
10101
10101
|
f({ type: y.BitString })
|
|
10102
|
-
],
|
|
10103
|
-
let
|
|
10102
|
+
], kc.prototype, "publicKey", void 0);
|
|
10103
|
+
let dn = class {
|
|
10104
10104
|
constructor(e = {}) {
|
|
10105
10105
|
Object.assign(this, e);
|
|
10106
10106
|
}
|
|
10107
10107
|
};
|
|
10108
10108
|
d([
|
|
10109
10109
|
f({ type: Vt, context: 0, implicit: !0, optional: !0 })
|
|
10110
|
-
],
|
|
10110
|
+
], dn.prototype, "subjectKeyIdentifier", void 0);
|
|
10111
10111
|
d([
|
|
10112
|
-
f({ type:
|
|
10113
|
-
],
|
|
10112
|
+
f({ type: kc, context: 1, implicit: !0, optional: !0 })
|
|
10113
|
+
], dn.prototype, "originatorKey", void 0);
|
|
10114
10114
|
d([
|
|
10115
10115
|
f({ type: Wn, optional: !0 })
|
|
10116
|
-
],
|
|
10117
|
-
|
|
10116
|
+
], dn.prototype, "issuerAndSerialNumber", void 0);
|
|
10117
|
+
dn = d([
|
|
10118
10118
|
T({ type: O.Choice })
|
|
10119
|
-
],
|
|
10119
|
+
], dn);
|
|
10120
10120
|
class Zn {
|
|
10121
10121
|
constructor(e = {}) {
|
|
10122
|
-
this.version = jt.v3, this.originator = new
|
|
10122
|
+
this.version = jt.v3, this.originator = new dn(), this.keyEncryptionAlgorithm = new vt(), this.recipientEncryptedKeys = new Cr(), Object.assign(this, e);
|
|
10123
10123
|
}
|
|
10124
10124
|
}
|
|
10125
10125
|
d([
|
|
10126
10126
|
f({ type: y.Integer })
|
|
10127
10127
|
], Zn.prototype, "version", void 0);
|
|
10128
10128
|
d([
|
|
10129
|
-
f({ type:
|
|
10129
|
+
f({ type: dn, context: 0 })
|
|
10130
10130
|
], Zn.prototype, "originator", void 0);
|
|
10131
10131
|
d([
|
|
10132
10132
|
f({ type: se, context: 1, optional: !0 })
|
|
@@ -10208,7 +10208,7 @@ d([
|
|
|
10208
10208
|
f({ type: y.Integer })
|
|
10209
10209
|
], zi.prototype, "version", void 0);
|
|
10210
10210
|
d([
|
|
10211
|
-
f({ type:
|
|
10211
|
+
f({ type: Jo, context: 0, optional: !0 })
|
|
10212
10212
|
], zi.prototype, "keyDerivationAlgorithm", void 0);
|
|
10213
10213
|
d([
|
|
10214
10214
|
f({ type: vt })
|
|
@@ -10216,17 +10216,17 @@ d([
|
|
|
10216
10216
|
d([
|
|
10217
10217
|
f({ type: se })
|
|
10218
10218
|
], zi.prototype, "encryptedKey", void 0);
|
|
10219
|
-
class
|
|
10219
|
+
class xc {
|
|
10220
10220
|
constructor(e = {}) {
|
|
10221
10221
|
this.oriType = "", this.oriValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
10222
10222
|
}
|
|
10223
10223
|
}
|
|
10224
10224
|
d([
|
|
10225
10225
|
f({ type: y.ObjectIdentifier })
|
|
10226
|
-
],
|
|
10226
|
+
], xc.prototype, "oriType", void 0);
|
|
10227
10227
|
d([
|
|
10228
10228
|
f({ type: y.Any })
|
|
10229
|
-
],
|
|
10229
|
+
], xc.prototype, "oriValue", void 0);
|
|
10230
10230
|
let zt = class {
|
|
10231
10231
|
constructor(e = {}) {
|
|
10232
10232
|
Object.assign(this, e);
|
|
@@ -10245,21 +10245,21 @@ d([
|
|
|
10245
10245
|
f({ type: zi, context: 3, implicit: !0, optional: !0 })
|
|
10246
10246
|
], zt.prototype, "pwri", void 0);
|
|
10247
10247
|
d([
|
|
10248
|
-
f({ type:
|
|
10248
|
+
f({ type: xc, context: 4, implicit: !0, optional: !0 })
|
|
10249
10249
|
], zt.prototype, "ori", void 0);
|
|
10250
10250
|
zt = d([
|
|
10251
10251
|
T({ type: O.Choice })
|
|
10252
10252
|
], zt);
|
|
10253
|
-
var
|
|
10254
|
-
let jr =
|
|
10253
|
+
var oa;
|
|
10254
|
+
let jr = oa = class extends ue {
|
|
10255
10255
|
constructor(e) {
|
|
10256
|
-
super(e), Object.setPrototypeOf(this,
|
|
10256
|
+
super(e), Object.setPrototypeOf(this, oa.prototype);
|
|
10257
10257
|
}
|
|
10258
10258
|
};
|
|
10259
|
-
jr =
|
|
10259
|
+
jr = oa = d([
|
|
10260
10260
|
T({ type: O.Set, itemType: zt })
|
|
10261
10261
|
], jr);
|
|
10262
|
-
var
|
|
10262
|
+
var aa;
|
|
10263
10263
|
class js {
|
|
10264
10264
|
constructor(e = {}) {
|
|
10265
10265
|
this.otherRevInfoFormat = "", this.otherRevInfo = new ArrayBuffer(0), Object.assign(this, e);
|
|
@@ -10282,34 +10282,34 @@ d([
|
|
|
10282
10282
|
Nr = d([
|
|
10283
10283
|
T({ type: O.Choice })
|
|
10284
10284
|
], Nr);
|
|
10285
|
-
let Or =
|
|
10285
|
+
let Or = aa = class extends ue {
|
|
10286
10286
|
constructor(e) {
|
|
10287
|
-
super(e), Object.setPrototypeOf(this,
|
|
10287
|
+
super(e), Object.setPrototypeOf(this, aa.prototype);
|
|
10288
10288
|
}
|
|
10289
10289
|
};
|
|
10290
|
-
Or =
|
|
10290
|
+
Or = aa = d([
|
|
10291
10291
|
T({ type: O.Set, itemType: Nr })
|
|
10292
10292
|
], Or);
|
|
10293
|
-
class
|
|
10293
|
+
class Sc {
|
|
10294
10294
|
constructor(e = {}) {
|
|
10295
10295
|
Object.assign(this, e);
|
|
10296
10296
|
}
|
|
10297
10297
|
}
|
|
10298
10298
|
d([
|
|
10299
10299
|
f({ type: $r, context: 0, implicit: !0, optional: !0 })
|
|
10300
|
-
],
|
|
10300
|
+
], Sc.prototype, "certs", void 0);
|
|
10301
10301
|
d([
|
|
10302
10302
|
f({ type: Or, context: 1, implicit: !0, optional: !0 })
|
|
10303
|
-
],
|
|
10304
|
-
var
|
|
10305
|
-
let
|
|
10303
|
+
], Sc.prototype, "crls", void 0);
|
|
10304
|
+
var ca;
|
|
10305
|
+
let la = ca = class extends ue {
|
|
10306
10306
|
constructor(e) {
|
|
10307
|
-
super(e), Object.setPrototypeOf(this,
|
|
10307
|
+
super(e), Object.setPrototypeOf(this, ca.prototype);
|
|
10308
10308
|
}
|
|
10309
10309
|
};
|
|
10310
|
-
|
|
10310
|
+
la = ca = d([
|
|
10311
10311
|
T({ type: O.Set, itemType: Gn })
|
|
10312
|
-
],
|
|
10312
|
+
], la);
|
|
10313
10313
|
class Di {
|
|
10314
10314
|
constructor(e = {}) {
|
|
10315
10315
|
this.version = jt.v0, this.recipientInfos = new jr(), this.encryptedContentInfo = new Li(), Object.assign(this, e);
|
|
@@ -10319,7 +10319,7 @@ d([
|
|
|
10319
10319
|
f({ type: y.Integer })
|
|
10320
10320
|
], Di.prototype, "version", void 0);
|
|
10321
10321
|
d([
|
|
10322
|
-
f({ type:
|
|
10322
|
+
f({ type: Sc, context: 0, implicit: !0, optional: !0 })
|
|
10323
10323
|
], Di.prototype, "originatorInfo", void 0);
|
|
10324
10324
|
d([
|
|
10325
10325
|
f({ type: jr })
|
|
@@ -10328,16 +10328,16 @@ d([
|
|
|
10328
10328
|
f({ type: Li })
|
|
10329
10329
|
], Di.prototype, "encryptedContentInfo", void 0);
|
|
10330
10330
|
d([
|
|
10331
|
-
f({ type:
|
|
10331
|
+
f({ type: la, context: 1, implicit: !0, optional: !0 })
|
|
10332
10332
|
], Di.prototype, "unprotectedAttrs", void 0);
|
|
10333
10333
|
const __ = "1.2.840.113549.1.7.2";
|
|
10334
|
-
var
|
|
10335
|
-
let Br =
|
|
10334
|
+
var ua;
|
|
10335
|
+
let Br = ua = class extends ue {
|
|
10336
10336
|
constructor(e) {
|
|
10337
|
-
super(e), Object.setPrototypeOf(this,
|
|
10337
|
+
super(e), Object.setPrototypeOf(this, ua.prototype);
|
|
10338
10338
|
}
|
|
10339
10339
|
};
|
|
10340
|
-
Br =
|
|
10340
|
+
Br = ua = d([
|
|
10341
10341
|
T({ type: O.Set, itemType: vi })
|
|
10342
10342
|
], Br);
|
|
10343
10343
|
class Yn {
|
|
@@ -10363,13 +10363,13 @@ d([
|
|
|
10363
10363
|
d([
|
|
10364
10364
|
f({ type: Ar })
|
|
10365
10365
|
], Yn.prototype, "signerInfos", void 0);
|
|
10366
|
-
const ki = "1.2.840.10045.2.1",
|
|
10366
|
+
const ki = "1.2.840.10045.2.1", Ac = "1.2.840.10045.4.1", Jp = "1.2.840.10045.4.3.1", Ic = "1.2.840.10045.4.3.2", Ec = "1.2.840.10045.4.3.3", $c = "1.2.840.10045.4.3.4", Fl = "1.2.840.10045.3.1.7", Hl = "1.3.132.0.34", Kl = "1.3.132.0.35";
|
|
10367
10367
|
function qi(n) {
|
|
10368
10368
|
return new D({ algorithm: n });
|
|
10369
10369
|
}
|
|
10370
|
-
const m_ = qi(
|
|
10370
|
+
const m_ = qi(Ac);
|
|
10371
10371
|
qi(Jp);
|
|
10372
|
-
const y_ = qi(
|
|
10372
|
+
const y_ = qi(Ic), v_ = qi(Ec), w_ = qi($c);
|
|
10373
10373
|
let xi = class {
|
|
10374
10374
|
constructor(e = {}) {
|
|
10375
10375
|
Object.assign(this, e);
|
|
@@ -10403,13 +10403,13 @@ d([
|
|
|
10403
10403
|
Mn = d([
|
|
10404
10404
|
T({ type: O.Sequence })
|
|
10405
10405
|
], Mn);
|
|
10406
|
-
var
|
|
10406
|
+
var da;
|
|
10407
10407
|
(function(n) {
|
|
10408
10408
|
n[n.ecpVer1 = 1] = "ecpVer1";
|
|
10409
|
-
})(
|
|
10409
|
+
})(da || (da = {}));
|
|
10410
10410
|
let Nt = class {
|
|
10411
10411
|
constructor(e = {}) {
|
|
10412
|
-
this.version =
|
|
10412
|
+
this.version = da.ecpVer1, Object.assign(this, e);
|
|
10413
10413
|
}
|
|
10414
10414
|
};
|
|
10415
10415
|
d([
|
|
@@ -10478,13 +10478,13 @@ d([
|
|
|
10478
10478
|
d([
|
|
10479
10479
|
f({ type: y.Integer, converter: _e })
|
|
10480
10480
|
], Tr.prototype, "s", void 0);
|
|
10481
|
-
const He = "1.2.840.113549.1.1",
|
|
10481
|
+
const He = "1.2.840.113549.1.1", pn = `${He}.1`, k_ = `${He}.7`, x_ = `${He}.9`, pi = `${He}.10`, S_ = `${He}.2`, A_ = `${He}.4`, Pr = `${He}.5`, I_ = `${He}.14`, pa = `${He}.11`, Rr = `${He}.12`, Lr = `${He}.13`, Zp = `${He}.15`, Yp = `${He}.16`, Ur = "1.3.14.3.2.26", Xp = "2.16.840.1.101.3.4.2.4", Vr = "2.16.840.1.101.3.4.2.1", Mr = "2.16.840.1.101.3.4.2.2", zr = "2.16.840.1.101.3.4.2.3", E_ = "2.16.840.1.101.3.4.2.5", $_ = "2.16.840.1.101.3.4.2.6", C_ = "1.2.840.113549.2.2", j_ = "1.2.840.113549.2.5", Os = `${He}.8`;
|
|
10482
10482
|
function Ae(n) {
|
|
10483
10483
|
return new D({ algorithm: n, parameters: null });
|
|
10484
10484
|
}
|
|
10485
10485
|
Ae(C_);
|
|
10486
10486
|
Ae(j_);
|
|
10487
|
-
const
|
|
10487
|
+
const fn = Ae(Ur);
|
|
10488
10488
|
Ae(Xp);
|
|
10489
10489
|
Ae(Vr);
|
|
10490
10490
|
Ae(Mr);
|
|
@@ -10493,12 +10493,12 @@ Ae(E_);
|
|
|
10493
10493
|
Ae($_);
|
|
10494
10494
|
const Qp = new D({
|
|
10495
10495
|
algorithm: Os,
|
|
10496
|
-
parameters: U.serialize(
|
|
10496
|
+
parameters: U.serialize(fn)
|
|
10497
10497
|
}), ef = new D({
|
|
10498
10498
|
algorithm: x_,
|
|
10499
10499
|
parameters: U.serialize(_r.toASN(new Uint8Array([218, 57, 163, 238, 94, 107, 75, 13, 50, 85, 191, 239, 149, 96, 24, 144, 175, 216, 7, 9]).buffer))
|
|
10500
10500
|
});
|
|
10501
|
-
Ae(
|
|
10501
|
+
Ae(pn);
|
|
10502
10502
|
Ae(S_);
|
|
10503
10503
|
Ae(A_);
|
|
10504
10504
|
Ae(Pr);
|
|
@@ -10510,14 +10510,14 @@ Ae(Zp);
|
|
|
10510
10510
|
Ae(Yp);
|
|
10511
10511
|
class Bs {
|
|
10512
10512
|
constructor(e = {}) {
|
|
10513
|
-
this.hashAlgorithm = new D(
|
|
10513
|
+
this.hashAlgorithm = new D(fn), this.maskGenAlgorithm = new D({
|
|
10514
10514
|
algorithm: Os,
|
|
10515
|
-
parameters: U.serialize(
|
|
10515
|
+
parameters: U.serialize(fn)
|
|
10516
10516
|
}), this.pSourceAlgorithm = new D(ef), Object.assign(this, e);
|
|
10517
10517
|
}
|
|
10518
10518
|
}
|
|
10519
10519
|
d([
|
|
10520
|
-
f({ type: D, context: 0, defaultValue:
|
|
10520
|
+
f({ type: D, context: 0, defaultValue: fn })
|
|
10521
10521
|
], Bs.prototype, "hashAlgorithm", void 0);
|
|
10522
10522
|
d([
|
|
10523
10523
|
f({ type: D, context: 1, defaultValue: Qp })
|
|
@@ -10529,29 +10529,29 @@ new D({
|
|
|
10529
10529
|
algorithm: k_,
|
|
10530
10530
|
parameters: U.serialize(new Bs())
|
|
10531
10531
|
});
|
|
10532
|
-
class
|
|
10532
|
+
class hn {
|
|
10533
10533
|
constructor(e = {}) {
|
|
10534
|
-
this.hashAlgorithm = new D(
|
|
10534
|
+
this.hashAlgorithm = new D(fn), this.maskGenAlgorithm = new D({
|
|
10535
10535
|
algorithm: Os,
|
|
10536
|
-
parameters: U.serialize(
|
|
10536
|
+
parameters: U.serialize(fn)
|
|
10537
10537
|
}), this.saltLength = 20, this.trailerField = 1, Object.assign(this, e);
|
|
10538
10538
|
}
|
|
10539
10539
|
}
|
|
10540
10540
|
d([
|
|
10541
|
-
f({ type: D, context: 0, defaultValue:
|
|
10542
|
-
],
|
|
10541
|
+
f({ type: D, context: 0, defaultValue: fn })
|
|
10542
|
+
], hn.prototype, "hashAlgorithm", void 0);
|
|
10543
10543
|
d([
|
|
10544
10544
|
f({ type: D, context: 1, defaultValue: Qp })
|
|
10545
|
-
],
|
|
10545
|
+
], hn.prototype, "maskGenAlgorithm", void 0);
|
|
10546
10546
|
d([
|
|
10547
10547
|
f({ type: y.Integer, context: 2, defaultValue: 20 })
|
|
10548
|
-
],
|
|
10548
|
+
], hn.prototype, "saltLength", void 0);
|
|
10549
10549
|
d([
|
|
10550
10550
|
f({ type: y.Integer, context: 3, defaultValue: 1 })
|
|
10551
|
-
],
|
|
10551
|
+
], hn.prototype, "trailerField", void 0);
|
|
10552
10552
|
new D({
|
|
10553
10553
|
algorithm: pi,
|
|
10554
|
-
parameters: U.serialize(new
|
|
10554
|
+
parameters: U.serialize(new hn())
|
|
10555
10555
|
});
|
|
10556
10556
|
class Ts {
|
|
10557
10557
|
constructor(e = {}) {
|
|
@@ -10564,7 +10564,7 @@ d([
|
|
|
10564
10564
|
d([
|
|
10565
10565
|
f({ type: se })
|
|
10566
10566
|
], Ts.prototype, "digest", void 0);
|
|
10567
|
-
var
|
|
10567
|
+
var fa;
|
|
10568
10568
|
class Ps {
|
|
10569
10569
|
constructor(e = {}) {
|
|
10570
10570
|
this.prime = new ArrayBuffer(0), this.exponent = new ArrayBuffer(0), this.coefficient = new ArrayBuffer(0), Object.assign(this, e);
|
|
@@ -10579,14 +10579,14 @@ d([
|
|
|
10579
10579
|
d([
|
|
10580
10580
|
f({ type: y.Integer, converter: _e })
|
|
10581
10581
|
], Ps.prototype, "coefficient", void 0);
|
|
10582
|
-
let
|
|
10582
|
+
let ha = fa = class extends ue {
|
|
10583
10583
|
constructor(e) {
|
|
10584
|
-
super(e), Object.setPrototypeOf(this,
|
|
10584
|
+
super(e), Object.setPrototypeOf(this, fa.prototype);
|
|
10585
10585
|
}
|
|
10586
10586
|
};
|
|
10587
|
-
|
|
10587
|
+
ha = fa = d([
|
|
10588
10588
|
T({ type: O.Sequence, itemType: Ps })
|
|
10589
|
-
],
|
|
10589
|
+
], ha);
|
|
10590
10590
|
class xt {
|
|
10591
10591
|
constructor(e = {}) {
|
|
10592
10592
|
this.version = 0, this.modulus = new ArrayBuffer(0), this.publicExponent = new ArrayBuffer(0), this.privateExponent = new ArrayBuffer(0), this.prime1 = new ArrayBuffer(0), this.prime2 = new ArrayBuffer(0), this.exponent1 = new ArrayBuffer(0), this.exponent2 = new ArrayBuffer(0), this.coefficient = new ArrayBuffer(0), Object.assign(this, e);
|
|
@@ -10620,24 +10620,24 @@ d([
|
|
|
10620
10620
|
f({ type: y.Integer, converter: _e })
|
|
10621
10621
|
], xt.prototype, "coefficient", void 0);
|
|
10622
10622
|
d([
|
|
10623
|
-
f({ type:
|
|
10623
|
+
f({ type: ha, optional: !0 })
|
|
10624
10624
|
], xt.prototype, "otherPrimeInfos", void 0);
|
|
10625
|
-
class
|
|
10625
|
+
class Cc {
|
|
10626
10626
|
constructor(e = {}) {
|
|
10627
10627
|
this.modulus = new ArrayBuffer(0), this.publicExponent = new ArrayBuffer(0), Object.assign(this, e);
|
|
10628
10628
|
}
|
|
10629
10629
|
}
|
|
10630
10630
|
d([
|
|
10631
10631
|
f({ type: y.Integer, converter: _e })
|
|
10632
|
-
],
|
|
10632
|
+
], Cc.prototype, "modulus", void 0);
|
|
10633
10633
|
d([
|
|
10634
10634
|
f({ type: y.Integer, converter: _e })
|
|
10635
|
-
],
|
|
10636
|
-
var
|
|
10635
|
+
], Cc.prototype, "publicExponent", void 0);
|
|
10636
|
+
var ga;
|
|
10637
10637
|
(function(n) {
|
|
10638
10638
|
n[n.Transient = 0] = "Transient", n[n.Singleton = 1] = "Singleton", n[n.ResolutionScoped = 2] = "ResolutionScoped", n[n.ContainerScoped = 3] = "ContainerScoped";
|
|
10639
|
-
})(
|
|
10640
|
-
const Me =
|
|
10639
|
+
})(ga || (ga = {}));
|
|
10640
|
+
const Me = ga;
|
|
10641
10641
|
/*! *****************************************************************************
|
|
10642
10642
|
Copyright (c) Microsoft Corporation.
|
|
10643
10643
|
|
|
@@ -10652,15 +10652,15 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
10652
10652
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
10653
10653
|
PERFORMANCE OF THIS SOFTWARE.
|
|
10654
10654
|
***************************************************************************** */
|
|
10655
|
-
var
|
|
10656
|
-
return
|
|
10655
|
+
var _a = function(n, e) {
|
|
10656
|
+
return _a = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
|
|
10657
10657
|
t.__proto__ = i;
|
|
10658
10658
|
} || function(t, i) {
|
|
10659
10659
|
for (var r in i) i.hasOwnProperty(r) && (t[r] = i[r]);
|
|
10660
|
-
},
|
|
10660
|
+
}, _a(n, e);
|
|
10661
10661
|
};
|
|
10662
|
-
function
|
|
10663
|
-
|
|
10662
|
+
function jc(n, e) {
|
|
10663
|
+
_a(n, e);
|
|
10664
10664
|
function t() {
|
|
10665
10665
|
this.constructor = n;
|
|
10666
10666
|
}
|
|
@@ -10795,7 +10795,7 @@ function T_(n) {
|
|
|
10795
10795
|
function tf(n) {
|
|
10796
10796
|
return !!n.useClass;
|
|
10797
10797
|
}
|
|
10798
|
-
function
|
|
10798
|
+
function ma(n) {
|
|
10799
10799
|
return !!n.useFactory;
|
|
10800
10800
|
}
|
|
10801
10801
|
var nf = function() {
|
|
@@ -10832,7 +10832,7 @@ var nf = function() {
|
|
|
10832
10832
|
return this.reflectMethods.forEach(i), t;
|
|
10833
10833
|
}, n;
|
|
10834
10834
|
}();
|
|
10835
|
-
function
|
|
10835
|
+
function Sn(n) {
|
|
10836
10836
|
return typeof n == "string" || typeof n == "symbol";
|
|
10837
10837
|
}
|
|
10838
10838
|
function P_(n) {
|
|
@@ -10851,9 +10851,9 @@ function rr(n) {
|
|
|
10851
10851
|
return n.useValue != null;
|
|
10852
10852
|
}
|
|
10853
10853
|
function L_(n) {
|
|
10854
|
-
return tf(n) || rr(n) || ir(n) ||
|
|
10854
|
+
return tf(n) || rr(n) || ir(n) || ma(n);
|
|
10855
10855
|
}
|
|
10856
|
-
var
|
|
10856
|
+
var Nc = function() {
|
|
10857
10857
|
function n() {
|
|
10858
10858
|
this._registryMap = /* @__PURE__ */ new Map();
|
|
10859
10859
|
}
|
|
@@ -10877,12 +10877,12 @@ var jc = function() {
|
|
|
10877
10877
|
this._registryMap.has(e) || this._registryMap.set(e, []);
|
|
10878
10878
|
}, n;
|
|
10879
10879
|
}(), U_ = function(n) {
|
|
10880
|
-
|
|
10880
|
+
jc(e, n);
|
|
10881
10881
|
function e() {
|
|
10882
10882
|
return n !== null && n.apply(this, arguments) || this;
|
|
10883
10883
|
}
|
|
10884
10884
|
return e;
|
|
10885
|
-
}(
|
|
10885
|
+
}(Nc), Gl = /* @__PURE__ */ function() {
|
|
10886
10886
|
function n() {
|
|
10887
10887
|
this.scopedResolutions = /* @__PURE__ */ new Map();
|
|
10888
10888
|
}
|
|
@@ -10912,18 +10912,18 @@ function D_(n) {
|
|
|
10912
10912
|
return !(e.length > 0);
|
|
10913
10913
|
}
|
|
10914
10914
|
var q_ = function(n) {
|
|
10915
|
-
|
|
10915
|
+
jc(e, n);
|
|
10916
10916
|
function e() {
|
|
10917
10917
|
return n !== null && n.apply(this, arguments) || this;
|
|
10918
10918
|
}
|
|
10919
10919
|
return e;
|
|
10920
|
-
}(
|
|
10921
|
-
|
|
10920
|
+
}(Nc), F_ = function(n) {
|
|
10921
|
+
jc(e, n);
|
|
10922
10922
|
function e() {
|
|
10923
10923
|
return n !== null && n.apply(this, arguments) || this;
|
|
10924
10924
|
}
|
|
10925
10925
|
return e;
|
|
10926
|
-
}(
|
|
10926
|
+
}(Nc), H_ = /* @__PURE__ */ function() {
|
|
10927
10927
|
function n() {
|
|
10928
10928
|
this.preResolution = new q_(), this.postResolution = new F_();
|
|
10929
10929
|
}
|
|
@@ -10944,11 +10944,11 @@ var q_ = function(n) {
|
|
|
10944
10944
|
var l = this._registry.get(c);
|
|
10945
10945
|
l && ir(l.provider) ? o = l.provider : o = null;
|
|
10946
10946
|
}
|
|
10947
|
-
if ((i.lifecycle === Me.Singleton || i.lifecycle == Me.ContainerScoped || i.lifecycle == Me.ResolutionScoped) && (rr(r) ||
|
|
10947
|
+
if ((i.lifecycle === Me.Singleton || i.lifecycle == Me.ContainerScoped || i.lifecycle == Me.ResolutionScoped) && (rr(r) || ma(r)))
|
|
10948
10948
|
throw new Error('Cannot use lifecycle "' + Me[i.lifecycle] + '" with ValueProviders or FactoryProviders');
|
|
10949
10949
|
return this._registry.set(e, { provider: r, options: i }), this;
|
|
10950
10950
|
}, n.prototype.registerType = function(e, t) {
|
|
10951
|
-
return this.ensureNotDisposed(),
|
|
10951
|
+
return this.ensureNotDisposed(), Sn(t) ? this.register(e, {
|
|
10952
10952
|
useToken: t
|
|
10953
10953
|
}) : this.register(e, {
|
|
10954
10954
|
useClass: t
|
|
@@ -10958,8 +10958,8 @@ var q_ = function(n) {
|
|
|
10958
10958
|
useValue: t
|
|
10959
10959
|
});
|
|
10960
10960
|
}, n.prototype.registerSingleton = function(e, t) {
|
|
10961
|
-
if (this.ensureNotDisposed(),
|
|
10962
|
-
if (
|
|
10961
|
+
if (this.ensureNotDisposed(), Sn(e)) {
|
|
10962
|
+
if (Sn(t))
|
|
10963
10963
|
return this.register(e, {
|
|
10964
10964
|
useToken: t
|
|
10965
10965
|
}, { lifecycle: Me.Singleton });
|
|
@@ -10970,13 +10970,13 @@ var q_ = function(n) {
|
|
|
10970
10970
|
throw new Error('Cannot register a type name as a singleton without a "to" token');
|
|
10971
10971
|
}
|
|
10972
10972
|
var i = e;
|
|
10973
|
-
return t && !
|
|
10973
|
+
return t && !Sn(t) && (i = t), this.register(e, {
|
|
10974
10974
|
useClass: i
|
|
10975
10975
|
}, { lifecycle: Me.Singleton });
|
|
10976
10976
|
}, n.prototype.resolve = function(e, t) {
|
|
10977
10977
|
t === void 0 && (t = new Gl()), this.ensureNotDisposed();
|
|
10978
10978
|
var i = this.getRegistration(e);
|
|
10979
|
-
if (!i &&
|
|
10979
|
+
if (!i && Sn(e))
|
|
10980
10980
|
throw new Error('Attempted to resolve unregistered dependency token: "' + e.toString() + '"');
|
|
10981
10981
|
if (this.executePreResolutionInterceptor(e, "Single"), i) {
|
|
10982
10982
|
var r = this.resolveRegistration(i, t);
|
|
@@ -11031,12 +11031,12 @@ var q_ = function(n) {
|
|
|
11031
11031
|
if (this.ensureNotDisposed(), e.options.lifecycle === Me.ResolutionScoped && t.scopedResolutions.has(e))
|
|
11032
11032
|
return t.scopedResolutions.get(e);
|
|
11033
11033
|
var i = e.options.lifecycle === Me.Singleton, r = e.options.lifecycle === Me.ContainerScoped, s = i || r, o;
|
|
11034
|
-
return rr(e.provider) ? o = e.provider.useValue : ir(e.provider) ? o = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, t)) : this.resolve(e.provider.useToken, t) : tf(e.provider) ? o = s ? e.instance || (e.instance = this.construct(e.provider.useClass, t)) : this.construct(e.provider.useClass, t) :
|
|
11034
|
+
return rr(e.provider) ? o = e.provider.useValue : ir(e.provider) ? o = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, t)) : this.resolve(e.provider.useToken, t) : tf(e.provider) ? o = s ? e.instance || (e.instance = this.construct(e.provider.useClass, t)) : this.construct(e.provider.useClass, t) : ma(e.provider) ? o = e.provider.useFactory(this) : o = this.construct(e.provider, t), e.options.lifecycle === Me.ResolutionScoped && t.scopedResolutions.set(e, o), o;
|
|
11035
11035
|
}, n.prototype.resolveAll = function(e, t) {
|
|
11036
11036
|
var i = this;
|
|
11037
11037
|
t === void 0 && (t = new Gl()), this.ensureNotDisposed();
|
|
11038
11038
|
var r = this.getAllRegistrations(e);
|
|
11039
|
-
if (!r &&
|
|
11039
|
+
if (!r && Sn(e))
|
|
11040
11040
|
throw new Error('Attempted to resolve unregistered dependency token: "' + e.toString() + '"');
|
|
11041
11041
|
if (this.executePreResolutionInterceptor(e, "All"), r) {
|
|
11042
11042
|
var s = r.map(function(c) {
|
|
@@ -11166,7 +11166,7 @@ function Rs() {
|
|
|
11166
11166
|
}
|
|
11167
11167
|
if (typeof Reflect > "u" || !Reflect.getMetadata)
|
|
11168
11168
|
throw new Error(`tsyringe requires a reflect polyfill. Please add 'import "reflect-metadata"' to the top of your entry point.`);
|
|
11169
|
-
var
|
|
11169
|
+
var ya;
|
|
11170
11170
|
class Ls {
|
|
11171
11171
|
constructor(e = {}) {
|
|
11172
11172
|
this.attrId = "", this.attrValues = [], Object.assign(e);
|
|
@@ -11178,21 +11178,21 @@ d([
|
|
|
11178
11178
|
d([
|
|
11179
11179
|
f({ type: y.Any, repeated: "set" })
|
|
11180
11180
|
], Ls.prototype, "attrValues", void 0);
|
|
11181
|
-
let Jl =
|
|
11181
|
+
let Jl = ya = class extends ue {
|
|
11182
11182
|
constructor(e) {
|
|
11183
|
-
super(e), Object.setPrototypeOf(this,
|
|
11183
|
+
super(e), Object.setPrototypeOf(this, ya.prototype);
|
|
11184
11184
|
}
|
|
11185
11185
|
};
|
|
11186
|
-
Jl =
|
|
11186
|
+
Jl = ya = d([
|
|
11187
11187
|
T({ type: O.Sequence, itemType: Ls })
|
|
11188
11188
|
], Jl);
|
|
11189
|
-
var
|
|
11190
|
-
let Zl =
|
|
11189
|
+
var va;
|
|
11190
|
+
let Zl = va = class extends ue {
|
|
11191
11191
|
constructor(e) {
|
|
11192
|
-
super(e), Object.setPrototypeOf(this,
|
|
11192
|
+
super(e), Object.setPrototypeOf(this, va.prototype);
|
|
11193
11193
|
}
|
|
11194
11194
|
};
|
|
11195
|
-
Zl =
|
|
11195
|
+
Zl = va = d([
|
|
11196
11196
|
T({ type: O.Sequence, itemType: Jn })
|
|
11197
11197
|
], Zl);
|
|
11198
11198
|
class sf {
|
|
@@ -11230,23 +11230,23 @@ d([
|
|
|
11230
11230
|
d([
|
|
11231
11231
|
f({ type: af })
|
|
11232
11232
|
], Us.prototype, "encryptedData", void 0);
|
|
11233
|
-
var
|
|
11233
|
+
var wa, ba;
|
|
11234
11234
|
(function(n) {
|
|
11235
11235
|
n[n.v1 = 0] = "v1";
|
|
11236
|
-
})(
|
|
11236
|
+
})(ba || (ba = {}));
|
|
11237
11237
|
class cf extends se {
|
|
11238
11238
|
}
|
|
11239
|
-
let
|
|
11239
|
+
let ka = wa = class extends ue {
|
|
11240
11240
|
constructor(e) {
|
|
11241
|
-
super(e), Object.setPrototypeOf(this,
|
|
11241
|
+
super(e), Object.setPrototypeOf(this, wa.prototype);
|
|
11242
11242
|
}
|
|
11243
11243
|
};
|
|
11244
|
-
|
|
11244
|
+
ka = wa = d([
|
|
11245
11245
|
T({ type: O.Sequence, itemType: Ct })
|
|
11246
|
-
],
|
|
11246
|
+
], ka);
|
|
11247
11247
|
class Fi {
|
|
11248
11248
|
constructor(e = {}) {
|
|
11249
|
-
this.version =
|
|
11249
|
+
this.version = ba.v1, this.privateKeyAlgorithm = new D(), this.privateKey = new cf(), Object.assign(this, e);
|
|
11250
11250
|
}
|
|
11251
11251
|
}
|
|
11252
11252
|
d([
|
|
@@ -11259,7 +11259,7 @@ d([
|
|
|
11259
11259
|
f({ type: cf })
|
|
11260
11260
|
], Fi.prototype, "privateKey", void 0);
|
|
11261
11261
|
d([
|
|
11262
|
-
f({ type:
|
|
11262
|
+
f({ type: ka, implicit: !0, context: 0, optional: !0 })
|
|
11263
11263
|
], Fi.prototype, "attributes", void 0);
|
|
11264
11264
|
let Yl = class extends Fi {
|
|
11265
11265
|
};
|
|
@@ -11310,7 +11310,7 @@ d([
|
|
|
11310
11310
|
d([
|
|
11311
11311
|
f({ type: Hi, optional: !0 })
|
|
11312
11312
|
], Vs.prototype, "macData", void 0);
|
|
11313
|
-
var
|
|
11313
|
+
var xa;
|
|
11314
11314
|
class Ms {
|
|
11315
11315
|
constructor(e = {}) {
|
|
11316
11316
|
this.bagId = "", this.bagValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
@@ -11325,16 +11325,16 @@ d([
|
|
|
11325
11325
|
d([
|
|
11326
11326
|
f({ type: Ls, repeated: "set", optional: !0 })
|
|
11327
11327
|
], Ms.prototype, "bagAttributes", void 0);
|
|
11328
|
-
let Ql =
|
|
11328
|
+
let Ql = xa = class extends ue {
|
|
11329
11329
|
constructor(e) {
|
|
11330
|
-
super(e), Object.setPrototypeOf(this,
|
|
11330
|
+
super(e), Object.setPrototypeOf(this, xa.prototype);
|
|
11331
11331
|
}
|
|
11332
11332
|
};
|
|
11333
|
-
Ql =
|
|
11333
|
+
Ql = xa = d([
|
|
11334
11334
|
T({ type: O.Sequence, itemType: Ms })
|
|
11335
11335
|
], Ql);
|
|
11336
|
-
var
|
|
11337
|
-
const uf = "1.2.840.113549.1.9", df = `${uf}.7`,
|
|
11336
|
+
var Sa, Aa, Ia;
|
|
11337
|
+
const uf = "1.2.840.113549.1.9", df = `${uf}.7`, Oc = `${uf}.14`;
|
|
11338
11338
|
let qr = class extends Oe {
|
|
11339
11339
|
constructor(e = {}) {
|
|
11340
11340
|
super(e);
|
|
@@ -11364,7 +11364,7 @@ let nu = class extends Us {
|
|
|
11364
11364
|
nu = d([
|
|
11365
11365
|
T({ type: O.Sequence })
|
|
11366
11366
|
], nu);
|
|
11367
|
-
let
|
|
11367
|
+
let Ea = class {
|
|
11368
11368
|
constructor(e = "") {
|
|
11369
11369
|
this.value = e;
|
|
11370
11370
|
}
|
|
@@ -11374,10 +11374,10 @@ let Ia = class {
|
|
|
11374
11374
|
};
|
|
11375
11375
|
d([
|
|
11376
11376
|
f({ type: y.IA5String })
|
|
11377
|
-
],
|
|
11378
|
-
|
|
11377
|
+
], Ea.prototype, "value", void 0);
|
|
11378
|
+
Ea = d([
|
|
11379
11379
|
T({ type: O.Choice })
|
|
11380
|
-
],
|
|
11380
|
+
], Ea);
|
|
11381
11381
|
let iu = class extends qr {
|
|
11382
11382
|
};
|
|
11383
11383
|
iu = d([
|
|
@@ -11388,23 +11388,23 @@ let ru = class extends Oe {
|
|
|
11388
11388
|
ru = d([
|
|
11389
11389
|
T({ type: O.Choice })
|
|
11390
11390
|
], ru);
|
|
11391
|
-
let
|
|
11391
|
+
let $a = class {
|
|
11392
11392
|
constructor(e = /* @__PURE__ */ new Date()) {
|
|
11393
11393
|
this.value = e;
|
|
11394
11394
|
}
|
|
11395
11395
|
};
|
|
11396
11396
|
d([
|
|
11397
11397
|
f({ type: y.GeneralizedTime })
|
|
11398
|
-
],
|
|
11399
|
-
|
|
11398
|
+
], $a.prototype, "value", void 0);
|
|
11399
|
+
$a = d([
|
|
11400
11400
|
T({ type: O.Choice })
|
|
11401
|
-
],
|
|
11401
|
+
], $a);
|
|
11402
11402
|
let su = class extends Oe {
|
|
11403
11403
|
};
|
|
11404
11404
|
su = d([
|
|
11405
11405
|
T({ type: O.Choice })
|
|
11406
11406
|
], su);
|
|
11407
|
-
let
|
|
11407
|
+
let Ca = class {
|
|
11408
11408
|
constructor(e = "M") {
|
|
11409
11409
|
this.value = e;
|
|
11410
11410
|
}
|
|
@@ -11414,10 +11414,10 @@ let $a = class {
|
|
|
11414
11414
|
};
|
|
11415
11415
|
d([
|
|
11416
11416
|
f({ type: y.PrintableString })
|
|
11417
|
-
],
|
|
11418
|
-
|
|
11417
|
+
], Ca.prototype, "value", void 0);
|
|
11418
|
+
Ca = d([
|
|
11419
11419
|
T({ type: O.Choice })
|
|
11420
|
-
],
|
|
11420
|
+
], Ca);
|
|
11421
11421
|
let Fr = class {
|
|
11422
11422
|
constructor(e = "") {
|
|
11423
11423
|
this.value = e;
|
|
@@ -11442,7 +11442,7 @@ let au = class extends Oe {
|
|
|
11442
11442
|
au = d([
|
|
11443
11443
|
T({ type: O.Choice })
|
|
11444
11444
|
], au);
|
|
11445
|
-
let
|
|
11445
|
+
let ja = class {
|
|
11446
11446
|
constructor(e = "") {
|
|
11447
11447
|
this.value = e;
|
|
11448
11448
|
}
|
|
@@ -11452,16 +11452,16 @@ let Ca = class {
|
|
|
11452
11452
|
};
|
|
11453
11453
|
d([
|
|
11454
11454
|
f({ type: y.ObjectIdentifier })
|
|
11455
|
-
],
|
|
11456
|
-
|
|
11455
|
+
], ja.prototype, "value", void 0);
|
|
11456
|
+
ja = d([
|
|
11457
11457
|
T({ type: O.Choice })
|
|
11458
|
-
],
|
|
11458
|
+
], ja);
|
|
11459
11459
|
let cu = class extends je {
|
|
11460
11460
|
};
|
|
11461
11461
|
cu = d([
|
|
11462
11462
|
T({ type: O.Choice })
|
|
11463
11463
|
], cu);
|
|
11464
|
-
let
|
|
11464
|
+
let Na = class {
|
|
11465
11465
|
constructor(e = 0) {
|
|
11466
11466
|
this.value = e;
|
|
11467
11467
|
}
|
|
@@ -11471,10 +11471,10 @@ let ja = class {
|
|
|
11471
11471
|
};
|
|
11472
11472
|
d([
|
|
11473
11473
|
f({ type: y.Integer })
|
|
11474
|
-
],
|
|
11475
|
-
|
|
11474
|
+
], Na.prototype, "value", void 0);
|
|
11475
|
+
Na = d([
|
|
11476
11476
|
T({ type: O.Choice })
|
|
11477
|
-
],
|
|
11477
|
+
], Na);
|
|
11478
11478
|
let lu = class extends kt {
|
|
11479
11479
|
};
|
|
11480
11480
|
lu = d([
|
|
@@ -11485,23 +11485,23 @@ let Hr = class extends Oe {
|
|
|
11485
11485
|
Hr = d([
|
|
11486
11486
|
T({ type: O.Choice })
|
|
11487
11487
|
], Hr);
|
|
11488
|
-
let uu =
|
|
11488
|
+
let uu = Sa = class extends Mt {
|
|
11489
11489
|
constructor(e) {
|
|
11490
|
-
super(e), Object.setPrototypeOf(this,
|
|
11490
|
+
super(e), Object.setPrototypeOf(this, Sa.prototype);
|
|
11491
11491
|
}
|
|
11492
11492
|
};
|
|
11493
|
-
uu =
|
|
11493
|
+
uu = Sa = d([
|
|
11494
11494
|
T({ type: O.Sequence })
|
|
11495
11495
|
], uu);
|
|
11496
|
-
let du =
|
|
11496
|
+
let du = Aa = class extends ue {
|
|
11497
11497
|
constructor(e) {
|
|
11498
|
-
super(e), Object.setPrototypeOf(this,
|
|
11498
|
+
super(e), Object.setPrototypeOf(this, Aa.prototype);
|
|
11499
11499
|
}
|
|
11500
11500
|
};
|
|
11501
|
-
du =
|
|
11501
|
+
du = Aa = d([
|
|
11502
11502
|
T({ type: O.Set, itemType: Gn })
|
|
11503
11503
|
], du);
|
|
11504
|
-
let
|
|
11504
|
+
let Oa = class {
|
|
11505
11505
|
constructor(e = "") {
|
|
11506
11506
|
this.value = e;
|
|
11507
11507
|
}
|
|
@@ -11511,30 +11511,30 @@ let Na = class {
|
|
|
11511
11511
|
};
|
|
11512
11512
|
d([
|
|
11513
11513
|
f({ type: y.BmpString })
|
|
11514
|
-
],
|
|
11515
|
-
|
|
11514
|
+
], Oa.prototype, "value", void 0);
|
|
11515
|
+
Oa = d([
|
|
11516
11516
|
T({ type: O.Choice })
|
|
11517
|
-
],
|
|
11518
|
-
let
|
|
11517
|
+
], Oa);
|
|
11518
|
+
let Ba = class extends D {
|
|
11519
11519
|
};
|
|
11520
|
-
|
|
11520
|
+
Ba = d([
|
|
11521
11521
|
T({ type: O.Sequence })
|
|
11522
|
-
],
|
|
11523
|
-
let pu =
|
|
11522
|
+
], Ba);
|
|
11523
|
+
let pu = Ia = class extends ue {
|
|
11524
11524
|
constructor(e) {
|
|
11525
|
-
super(e), Object.setPrototypeOf(this,
|
|
11525
|
+
super(e), Object.setPrototypeOf(this, Ia.prototype);
|
|
11526
11526
|
}
|
|
11527
11527
|
};
|
|
11528
|
-
pu =
|
|
11529
|
-
T({ type: O.Sequence, itemType:
|
|
11528
|
+
pu = Ia = d([
|
|
11529
|
+
T({ type: O.Sequence, itemType: Ba })
|
|
11530
11530
|
], pu);
|
|
11531
|
-
var
|
|
11532
|
-
let Kr =
|
|
11531
|
+
var Ta;
|
|
11532
|
+
let Kr = Ta = class extends ue {
|
|
11533
11533
|
constructor(e) {
|
|
11534
|
-
super(e), Object.setPrototypeOf(this,
|
|
11534
|
+
super(e), Object.setPrototypeOf(this, Ta.prototype);
|
|
11535
11535
|
}
|
|
11536
11536
|
};
|
|
11537
|
-
Kr =
|
|
11537
|
+
Kr = Ta = d([
|
|
11538
11538
|
T({ type: O.Sequence, itemType: Ct })
|
|
11539
11539
|
], Kr);
|
|
11540
11540
|
class Xn {
|
|
@@ -11628,8 +11628,8 @@ class W_ {
|
|
|
11628
11628
|
};
|
|
11629
11629
|
}
|
|
11630
11630
|
}
|
|
11631
|
-
const
|
|
11632
|
-
Be.registerSingleton(
|
|
11631
|
+
const gn = "crypto.algorithmProvider";
|
|
11632
|
+
Be.registerSingleton(gn, W_);
|
|
11633
11633
|
var sr;
|
|
11634
11634
|
const Ke = "1.3.36.3.3.2.8.1.1", fu = `${Ke}.1`, hu = `${Ke}.2`, gu = `${Ke}.3`, _u = `${Ke}.4`, mu = `${Ke}.5`, yu = `${Ke}.6`, vu = `${Ke}.7`, wu = `${Ke}.8`, bu = `${Ke}.9`, ku = `${Ke}.10`, xu = `${Ke}.11`, Su = `${Ke}.12`, Au = `${Ke}.13`, Iu = `${Ke}.14`, Eu = "brainpoolP160r1", $u = "brainpoolP160t1", Cu = "brainpoolP192r1", ju = "brainpoolP192t1", Nu = "brainpoolP224r1", Ou = "brainpoolP224t1", Bu = "brainpoolP256r1", Tu = "brainpoolP256t1", Pu = "brainpoolP320r1", Ru = "brainpoolP320t1", Lu = "brainpoolP384r1", Uu = "brainpoolP384t1", Vu = "brainpoolP512r1", Mu = "brainpoolP512t1", me = "ECDSA";
|
|
11635
11635
|
let Ai = sr = class {
|
|
@@ -11716,13 +11716,13 @@ let Ai = sr = class {
|
|
|
11716
11716
|
}
|
|
11717
11717
|
toWebAlgorithm(e) {
|
|
11718
11718
|
switch (e.algorithm) {
|
|
11719
|
-
case Sc:
|
|
11720
|
-
return { name: me, hash: { name: "SHA-1" } };
|
|
11721
11719
|
case Ac:
|
|
11722
|
-
return { name: me, hash: { name: "SHA-
|
|
11720
|
+
return { name: me, hash: { name: "SHA-1" } };
|
|
11723
11721
|
case Ic:
|
|
11724
|
-
return { name: me, hash: { name: "SHA-
|
|
11722
|
+
return { name: me, hash: { name: "SHA-256" } };
|
|
11725
11723
|
case Ec:
|
|
11724
|
+
return { name: me, hash: { name: "SHA-384" } };
|
|
11725
|
+
case $c:
|
|
11726
11726
|
return { name: me, hash: { name: "SHA-512" } };
|
|
11727
11727
|
case ki: {
|
|
11728
11728
|
if (!e.parameters)
|
|
@@ -11813,18 +11813,18 @@ Ft.items = {
|
|
|
11813
11813
|
[Vr]: "sha256",
|
|
11814
11814
|
[Mr]: "sha384",
|
|
11815
11815
|
[zr]: "sha512",
|
|
11816
|
-
[
|
|
11816
|
+
[pn]: "rsaEncryption",
|
|
11817
11817
|
[Pr]: "sha1WithRSAEncryption",
|
|
11818
11818
|
[I_]: "sha224WithRSAEncryption",
|
|
11819
|
-
[
|
|
11819
|
+
[pa]: "sha256WithRSAEncryption",
|
|
11820
11820
|
[Rr]: "sha384WithRSAEncryption",
|
|
11821
11821
|
[Lr]: "sha512WithRSAEncryption",
|
|
11822
11822
|
[ki]: "ecPublicKey",
|
|
11823
|
-
[
|
|
11823
|
+
[Ac]: "ecdsaWithSHA1",
|
|
11824
11824
|
[Jp]: "ecdsaWithSHA224",
|
|
11825
|
-
[
|
|
11826
|
-
[
|
|
11827
|
-
[
|
|
11825
|
+
[Ic]: "ecdsaWithSHA256",
|
|
11826
|
+
[Ec]: "ecdsaWithSHA384",
|
|
11827
|
+
[$c]: "ecdsaWithSHA512",
|
|
11828
11828
|
[u_]: "TLS WWW server authentication",
|
|
11829
11829
|
[d_]: "TLS WWW client authentication",
|
|
11830
11830
|
[p_]: "Code Signing",
|
|
@@ -11833,7 +11833,7 @@ Ft.items = {
|
|
|
11833
11833
|
[g_]: "OCSP Signing",
|
|
11834
11834
|
[__]: "Signed Data"
|
|
11835
11835
|
};
|
|
11836
|
-
class
|
|
11836
|
+
class _n {
|
|
11837
11837
|
static serialize(e) {
|
|
11838
11838
|
return this.serializeObj(e).join(`
|
|
11839
11839
|
`);
|
|
@@ -11886,8 +11886,8 @@ class mn {
|
|
|
11886
11886
|
return this.algorithmSerializer.toTextObject(e);
|
|
11887
11887
|
}
|
|
11888
11888
|
}
|
|
11889
|
-
|
|
11890
|
-
|
|
11889
|
+
_n.oidSerializer = Ft;
|
|
11890
|
+
_n.algorithmSerializer = G_;
|
|
11891
11891
|
class Ht {
|
|
11892
11892
|
constructor(...e) {
|
|
11893
11893
|
if (e.length === 1) {
|
|
@@ -11906,7 +11906,7 @@ class Ht {
|
|
|
11906
11906
|
case "asn":
|
|
11907
11907
|
return U.toString(this.rawData);
|
|
11908
11908
|
case "text":
|
|
11909
|
-
return
|
|
11909
|
+
return _n.serialize(this.toTextObject());
|
|
11910
11910
|
case "hex":
|
|
11911
11911
|
return W.ToHex(this.rawData);
|
|
11912
11912
|
case "base64":
|
|
@@ -12170,24 +12170,24 @@ class Qe {
|
|
|
12170
12170
|
return e.length >= 1 && !(!((t = e[0]) === null || t === void 0) && t.subtle) ? (r = e[0] || r, i = e[1] || Ce.get()) : i = e[0] || Ce.get(), await i.subtle.digest(r, this.toArrayBuffer());
|
|
12171
12171
|
}
|
|
12172
12172
|
}
|
|
12173
|
-
const _f = "Cannot initialize GeneralName from ASN.1 data.", zu = `${_f} Unsupported string format in use.`, Q_ = `${_f} Value doesn't match to GUID regular expression.`, Du = /^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i, qu = "1.3.6.1.4.1.311.25.1", Fu = "1.3.6.1.4.1.311.20.2.3",
|
|
12173
|
+
const _f = "Cannot initialize GeneralName from ASN.1 data.", zu = `${_f} Unsupported string format in use.`, Q_ = `${_f} Value doesn't match to GUID regular expression.`, Du = /^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i, qu = "1.3.6.1.4.1.311.25.1", Fu = "1.3.6.1.4.1.311.20.2.3", no = "dns", io = "dn", ro = "email", so = "ip", oo = "url", ao = "guid", co = "upn", Xi = "id";
|
|
12174
12174
|
class Lt extends Ht {
|
|
12175
12175
|
constructor(...e) {
|
|
12176
12176
|
let t;
|
|
12177
12177
|
if (e.length === 2)
|
|
12178
12178
|
switch (e[0]) {
|
|
12179
|
-
case
|
|
12179
|
+
case io: {
|
|
12180
12180
|
const i = new Qe(e[1]).toArrayBuffer(), r = U.parse(i, be);
|
|
12181
12181
|
t = new ee({ directoryName: r });
|
|
12182
12182
|
break;
|
|
12183
12183
|
}
|
|
12184
|
-
case
|
|
12184
|
+
case no:
|
|
12185
12185
|
t = new ee({ dNSName: e[1] });
|
|
12186
12186
|
break;
|
|
12187
|
-
case
|
|
12187
|
+
case ro:
|
|
12188
12188
|
t = new ee({ rfc822Name: e[1] });
|
|
12189
12189
|
break;
|
|
12190
|
-
case
|
|
12190
|
+
case ao: {
|
|
12191
12191
|
const i = new RegExp(Du, "i").exec(e[1]);
|
|
12192
12192
|
if (!i)
|
|
12193
12193
|
throw new Error("Cannot parse GUID value. Value doesn't match to regular expression");
|
|
@@ -12200,13 +12200,13 @@ class Lt extends Ht {
|
|
|
12200
12200
|
});
|
|
12201
12201
|
break;
|
|
12202
12202
|
}
|
|
12203
|
-
case
|
|
12203
|
+
case so:
|
|
12204
12204
|
t = new ee({ iPAddress: e[1] });
|
|
12205
12205
|
break;
|
|
12206
12206
|
case Xi:
|
|
12207
12207
|
t = new ee({ registeredID: e[1] });
|
|
12208
12208
|
break;
|
|
12209
|
-
case
|
|
12209
|
+
case co: {
|
|
12210
12210
|
t = new ee({
|
|
12211
12211
|
otherName: new yi({
|
|
12212
12212
|
typeId: Fu,
|
|
@@ -12215,7 +12215,7 @@ class Lt extends Ht {
|
|
|
12215
12215
|
});
|
|
12216
12216
|
break;
|
|
12217
12217
|
}
|
|
12218
|
-
case
|
|
12218
|
+
case oo:
|
|
12219
12219
|
t = new ee({ uniformResourceIdentifier: e[1] });
|
|
12220
12220
|
break;
|
|
12221
12221
|
default:
|
|
@@ -12226,26 +12226,26 @@ class Lt extends Ht {
|
|
|
12226
12226
|
}
|
|
12227
12227
|
onInit(e) {
|
|
12228
12228
|
if (e.dNSName != null)
|
|
12229
|
-
this.type =
|
|
12229
|
+
this.type = no, this.value = e.dNSName;
|
|
12230
12230
|
else if (e.rfc822Name != null)
|
|
12231
|
-
this.type =
|
|
12231
|
+
this.type = ro, this.value = e.rfc822Name;
|
|
12232
12232
|
else if (e.iPAddress != null)
|
|
12233
|
-
this.type =
|
|
12233
|
+
this.type = so, this.value = e.iPAddress;
|
|
12234
12234
|
else if (e.uniformResourceIdentifier != null)
|
|
12235
|
-
this.type =
|
|
12235
|
+
this.type = oo, this.value = e.uniformResourceIdentifier;
|
|
12236
12236
|
else if (e.registeredID != null)
|
|
12237
12237
|
this.type = Xi, this.value = e.registeredID;
|
|
12238
12238
|
else if (e.directoryName != null)
|
|
12239
|
-
this.type =
|
|
12239
|
+
this.type = io, this.value = new Qe(e.directoryName).toString();
|
|
12240
12240
|
else if (e.otherName != null)
|
|
12241
12241
|
if (e.otherName.typeId === qu) {
|
|
12242
|
-
this.type =
|
|
12242
|
+
this.type = ao;
|
|
12243
12243
|
const t = U.parse(e.otherName.value, se), i = new RegExp(Du, "i").exec(W.ToHex(t));
|
|
12244
12244
|
if (!i)
|
|
12245
12245
|
throw new Error(Q_);
|
|
12246
12246
|
this.value = i.slice(1).map((r, s) => s < 3 ? W.ToHex(new Uint8Array(W.FromHex(r)).reverse()) : r).join("-");
|
|
12247
12247
|
} else if (e.otherName.typeId === Fu)
|
|
12248
|
-
this.type =
|
|
12248
|
+
this.type = co, this.value = U.parse(e.otherName.value, Oe).toString();
|
|
12249
12249
|
else
|
|
12250
12250
|
throw new Error(zu);
|
|
12251
12251
|
else
|
|
@@ -12260,16 +12260,16 @@ class Lt extends Ht {
|
|
|
12260
12260
|
toTextObject() {
|
|
12261
12261
|
let e;
|
|
12262
12262
|
switch (this.type) {
|
|
12263
|
+
case io:
|
|
12263
12264
|
case no:
|
|
12264
|
-
case to:
|
|
12265
|
-
case oo:
|
|
12266
|
-
case ro:
|
|
12267
|
-
case Xi:
|
|
12268
12265
|
case ao:
|
|
12269
12266
|
case so:
|
|
12267
|
+
case Xi:
|
|
12268
|
+
case co:
|
|
12269
|
+
case oo:
|
|
12270
12270
|
e = this.type.toUpperCase();
|
|
12271
12271
|
break;
|
|
12272
|
-
case
|
|
12272
|
+
case ro:
|
|
12273
12273
|
e = "Email";
|
|
12274
12274
|
break;
|
|
12275
12275
|
default:
|
|
@@ -12477,10 +12477,10 @@ class ut extends Ot {
|
|
|
12477
12477
|
return o.algorithm.algorithm === pi && (s = a0(o, s)), t.subtle.importKey("spki", s, r, !0, i);
|
|
12478
12478
|
}
|
|
12479
12479
|
onInit(e) {
|
|
12480
|
-
const t = Be.resolve(
|
|
12480
|
+
const t = Be.resolve(gn), i = this.algorithm = t.toWebAlgorithm(e.algorithm);
|
|
12481
12481
|
switch (e.algorithm.algorithm) {
|
|
12482
|
-
case
|
|
12483
|
-
const r = U.parse(e.subjectPublicKey,
|
|
12482
|
+
case pn: {
|
|
12483
|
+
const r = U.parse(e.subjectPublicKey, Cc), s = V.toUint8Array(r.modulus);
|
|
12484
12484
|
i.publicExponent = V.toUint8Array(r.publicExponent), i.modulusLength = (s[0] ? s : s.slice(1)).byteLength << 3;
|
|
12485
12485
|
break;
|
|
12486
12486
|
}
|
|
@@ -12499,11 +12499,11 @@ class ut extends Ot {
|
|
|
12499
12499
|
}
|
|
12500
12500
|
toTextObject() {
|
|
12501
12501
|
const e = this.toTextObjectEmpty(), t = U.parse(this.rawData, lt);
|
|
12502
|
-
switch (e.Algorithm =
|
|
12502
|
+
switch (e.Algorithm = _n.serializeAlgorithm(t.algorithm), t.algorithm.algorithm) {
|
|
12503
12503
|
case ki:
|
|
12504
12504
|
e["EC Point"] = t.subjectPublicKey;
|
|
12505
12505
|
break;
|
|
12506
|
-
case
|
|
12506
|
+
case pn:
|
|
12507
12507
|
default:
|
|
12508
12508
|
e["Raw Data"] = t.subjectPublicKey;
|
|
12509
12509
|
}
|
|
@@ -12512,7 +12512,7 @@ class ut extends Ot {
|
|
|
12512
12512
|
}
|
|
12513
12513
|
function a0(n, e) {
|
|
12514
12514
|
return n.algorithm = new D({
|
|
12515
|
-
algorithm:
|
|
12515
|
+
algorithm: pn,
|
|
12516
12516
|
parameters: null
|
|
12517
12517
|
}), e = U.serialize(n), e;
|
|
12518
12518
|
}
|
|
@@ -12527,14 +12527,14 @@ class $i extends it {
|
|
|
12527
12527
|
if (V.isBufferSource(e[0]))
|
|
12528
12528
|
super(e[0]);
|
|
12529
12529
|
else if (typeof e[0] == "string") {
|
|
12530
|
-
const t = new Yt({ keyIdentifier: new
|
|
12531
|
-
super(
|
|
12530
|
+
const t = new Yt({ keyIdentifier: new uc(W.FromHex(e[0])) });
|
|
12531
|
+
super(jo, e[1], U.serialize(t));
|
|
12532
12532
|
} else {
|
|
12533
12533
|
const t = e[0], i = t.name instanceof Ii ? U.parse(t.name.rawData, Le) : t.name, r = new Yt({
|
|
12534
12534
|
authorityCertIssuer: i,
|
|
12535
12535
|
authorityCertSerialNumber: W.FromHex(t.serialNumber)
|
|
12536
12536
|
});
|
|
12537
|
-
super(
|
|
12537
|
+
super(jo, e[1], U.serialize(r));
|
|
12538
12538
|
}
|
|
12539
12539
|
}
|
|
12540
12540
|
onInit(e) {
|
|
@@ -12551,7 +12551,7 @@ class $i extends it {
|
|
|
12551
12551
|
}
|
|
12552
12552
|
}
|
|
12553
12553
|
$i.NAME = "Authority Key Identifier";
|
|
12554
|
-
class
|
|
12554
|
+
class Bc extends it {
|
|
12555
12555
|
constructor(...e) {
|
|
12556
12556
|
if (V.isBufferSource(e[0])) {
|
|
12557
12557
|
super(e[0]);
|
|
@@ -12570,12 +12570,12 @@ class Oc extends it {
|
|
|
12570
12570
|
return this.ca && (e.CA = this.ca), this.pathLength !== void 0 && (e["Path Length"] = this.pathLength), e;
|
|
12571
12571
|
}
|
|
12572
12572
|
}
|
|
12573
|
-
|
|
12573
|
+
Bc.NAME = "Basic Constraints";
|
|
12574
12574
|
var Ku;
|
|
12575
12575
|
(function(n) {
|
|
12576
12576
|
n.serverAuth = "1.3.6.1.5.5.7.3.1", n.clientAuth = "1.3.6.1.5.5.7.3.2", n.codeSigning = "1.3.6.1.5.5.7.3.3", n.emailProtection = "1.3.6.1.5.5.7.3.4", n.timeStamping = "1.3.6.1.5.5.7.3.8", n.ocspSigning = "1.3.6.1.5.5.7.3.9";
|
|
12577
12577
|
})(Ku || (Ku = {}));
|
|
12578
|
-
class
|
|
12578
|
+
class Tc extends it {
|
|
12579
12579
|
constructor(...e) {
|
|
12580
12580
|
if (V.isBufferSource(e[0])) {
|
|
12581
12581
|
super(e[0]);
|
|
@@ -12591,28 +12591,28 @@ class Bc extends it {
|
|
|
12591
12591
|
return e[""] = this.usages.map((t) => Ft.toString(t)).join(", "), e;
|
|
12592
12592
|
}
|
|
12593
12593
|
}
|
|
12594
|
-
|
|
12594
|
+
Tc.NAME = "Extended Key Usages";
|
|
12595
12595
|
var Wr;
|
|
12596
12596
|
(function(n) {
|
|
12597
12597
|
n[n.digitalSignature = 1] = "digitalSignature", n[n.nonRepudiation = 2] = "nonRepudiation", n[n.keyEncipherment = 4] = "keyEncipherment", n[n.dataEncipherment = 8] = "dataEncipherment", n[n.keyAgreement = 16] = "keyAgreement", n[n.keyCertSign = 32] = "keyCertSign", n[n.cRLSign = 64] = "cRLSign", n[n.encipherOnly = 128] = "encipherOnly", n[n.decipherOnly = 256] = "decipherOnly";
|
|
12598
12598
|
})(Wr || (Wr = {}));
|
|
12599
|
-
class
|
|
12599
|
+
class Pc extends it {
|
|
12600
12600
|
constructor(...e) {
|
|
12601
12601
|
if (V.isBufferSource(e[0])) {
|
|
12602
12602
|
super(e[0]);
|
|
12603
|
-
const t = U.parse(this.value,
|
|
12603
|
+
const t = U.parse(this.value, to);
|
|
12604
12604
|
this.usages = t.toNumber();
|
|
12605
12605
|
} else {
|
|
12606
|
-
const t = new
|
|
12606
|
+
const t = new to(e[0]);
|
|
12607
12607
|
super(Up, e[1], U.serialize(t)), this.usages = e[0];
|
|
12608
12608
|
}
|
|
12609
12609
|
}
|
|
12610
12610
|
toTextObject() {
|
|
12611
|
-
const e = this.toTextObjectWithoutValue(), t = U.parse(this.value,
|
|
12611
|
+
const e = this.toTextObjectWithoutValue(), t = U.parse(this.value, to);
|
|
12612
12612
|
return e[""] = t.toJSON().join(", "), e;
|
|
12613
12613
|
}
|
|
12614
12614
|
}
|
|
12615
|
-
|
|
12615
|
+
Pc.NAME = "Key Usages";
|
|
12616
12616
|
class Wi extends it {
|
|
12617
12617
|
static async create(e, t = !1, i = Ce.get()) {
|
|
12618
12618
|
const s = await (await ut.create(e, i)).getKeyIdentifier(i);
|
|
@@ -12640,7 +12640,7 @@ class mf extends it {
|
|
|
12640
12640
|
}
|
|
12641
12641
|
onInit(e) {
|
|
12642
12642
|
super.onInit(e);
|
|
12643
|
-
const t = U.parse(e.extnValue,
|
|
12643
|
+
const t = U.parse(e.extnValue, Ho);
|
|
12644
12644
|
this.names = new Ii(t);
|
|
12645
12645
|
}
|
|
12646
12646
|
toTextObject() {
|
|
@@ -12689,20 +12689,20 @@ class vf extends it {
|
|
|
12689
12689
|
super(e[0]);
|
|
12690
12690
|
else if (Array.isArray(e[0]) && typeof e[0][0] == "string") {
|
|
12691
12691
|
const r = e[0].map((o) => new Kn({
|
|
12692
|
-
distributionPoint: new
|
|
12692
|
+
distributionPoint: new cn({
|
|
12693
12693
|
fullName: [new ee({ uniformResourceIdentifier: o })]
|
|
12694
12694
|
})
|
|
12695
|
-
})), s = new
|
|
12696
|
-
super(
|
|
12695
|
+
})), s = new $n(r);
|
|
12696
|
+
super(Po, e[1], U.serialize(s));
|
|
12697
12697
|
} else {
|
|
12698
|
-
const i = new
|
|
12699
|
-
super(
|
|
12698
|
+
const i = new $n(e[0]);
|
|
12699
|
+
super(Po, e[1], U.serialize(i));
|
|
12700
12700
|
}
|
|
12701
12701
|
(t = this.distributionPoints) !== null && t !== void 0 || (this.distributionPoints = []);
|
|
12702
12702
|
}
|
|
12703
12703
|
onInit(e) {
|
|
12704
12704
|
super.onInit(e);
|
|
12705
|
-
const t = U.parse(e.extnValue,
|
|
12705
|
+
const t = U.parse(e.extnValue, $n);
|
|
12706
12706
|
this.distributionPoints = t;
|
|
12707
12707
|
}
|
|
12708
12708
|
toTextObject() {
|
|
@@ -12720,17 +12720,17 @@ class wf extends it {
|
|
|
12720
12720
|
var t, i, r, s;
|
|
12721
12721
|
if (V.isBufferSource(e[0]))
|
|
12722
12722
|
super(e[0]);
|
|
12723
|
-
else if (e[0] instanceof
|
|
12724
|
-
const o = new
|
|
12725
|
-
super(
|
|
12723
|
+
else if (e[0] instanceof In) {
|
|
12724
|
+
const o = new In(e[0]);
|
|
12725
|
+
super(Co, e[1], U.serialize(o));
|
|
12726
12726
|
} else {
|
|
12727
|
-
const o = e[0], c = new
|
|
12728
|
-
er(c, o, Cl, "ocsp"), er(c, o, jl, "caIssuers"), er(c, o, Nl, "timeStamping"), er(c, o, Ol, "caRepository"), super(
|
|
12727
|
+
const o = e[0], c = new In();
|
|
12728
|
+
er(c, o, Cl, "ocsp"), er(c, o, jl, "caIssuers"), er(c, o, Nl, "timeStamping"), er(c, o, Ol, "caRepository"), super(Co, e[1], U.serialize(c));
|
|
12729
12729
|
}
|
|
12730
12730
|
(t = this.ocsp) !== null && t !== void 0 || (this.ocsp = []), (i = this.caIssuers) !== null && i !== void 0 || (this.caIssuers = []), (r = this.timeStamping) !== null && r !== void 0 || (this.timeStamping = []), (s = this.caRepository) !== null && s !== void 0 || (this.caRepository = []);
|
|
12731
12731
|
}
|
|
12732
12732
|
onInit(e) {
|
|
12733
|
-
super.onInit(e), this.ocsp = [], this.caIssuers = [], this.timeStamping = [], this.caRepository = [], U.parse(e.extnValue,
|
|
12733
|
+
super.onInit(e), this.ocsp = [], this.caIssuers = [], this.timeStamping = [], this.caRepository = [], U.parse(e.extnValue, In).forEach((i) => {
|
|
12734
12734
|
switch (i.accessMethod) {
|
|
12735
12735
|
case Cl:
|
|
12736
12736
|
this.ocsp.push(new Lt(i.accessLocation));
|
|
@@ -12823,7 +12823,7 @@ class bf extends Qn {
|
|
|
12823
12823
|
}
|
|
12824
12824
|
}
|
|
12825
12825
|
bf.NAME = "Challenge Password";
|
|
12826
|
-
class
|
|
12826
|
+
class Rc extends Qn {
|
|
12827
12827
|
constructor(...e) {
|
|
12828
12828
|
var t;
|
|
12829
12829
|
if (V.isBufferSource(e[0]))
|
|
@@ -12832,7 +12832,7 @@ class Pc extends Qn {
|
|
|
12832
12832
|
const i = e[0], r = new Mt();
|
|
12833
12833
|
for (const s of i)
|
|
12834
12834
|
r.push(U.parse(s.rawData, tt));
|
|
12835
|
-
super(
|
|
12835
|
+
super(Oc, [U.serialize(r)]);
|
|
12836
12836
|
}
|
|
12837
12837
|
(t = this.items) !== null && t !== void 0 || (this.items = []);
|
|
12838
12838
|
}
|
|
@@ -12849,7 +12849,7 @@ class Pc extends Qn {
|
|
|
12849
12849
|
return e;
|
|
12850
12850
|
}
|
|
12851
12851
|
}
|
|
12852
|
-
|
|
12852
|
+
Rc.NAME = "Extensions";
|
|
12853
12853
|
class zs {
|
|
12854
12854
|
static register(e, t) {
|
|
12855
12855
|
this.items.set(e, t);
|
|
@@ -12870,10 +12870,10 @@ class c0 {
|
|
|
12870
12870
|
}
|
|
12871
12871
|
}
|
|
12872
12872
|
var or;
|
|
12873
|
-
let
|
|
12873
|
+
let Pa = or = class {
|
|
12874
12874
|
static createPssParams(e, t) {
|
|
12875
12875
|
const i = or.getHashAlgorithm(e);
|
|
12876
|
-
return i ? new
|
|
12876
|
+
return i ? new hn({
|
|
12877
12877
|
hashAlgorithm: i,
|
|
12878
12878
|
maskGenAlgorithm: new D({
|
|
12879
12879
|
algorithm: Os,
|
|
@@ -12883,7 +12883,7 @@ let Ta = or = class {
|
|
|
12883
12883
|
}) : null;
|
|
12884
12884
|
}
|
|
12885
12885
|
static getHashAlgorithm(e) {
|
|
12886
|
-
const t = Be.resolve(
|
|
12886
|
+
const t = Be.resolve(gn);
|
|
12887
12887
|
return typeof e == "string" ? t.toAsnAlgorithm({ name: e }) : typeof e == "object" && e && "name" in e ? t.toAsnAlgorithm(e) : null;
|
|
12888
12888
|
}
|
|
12889
12889
|
toAsnAlgorithm(e) {
|
|
@@ -12901,14 +12901,14 @@ let Ta = or = class {
|
|
|
12901
12901
|
case "sha-1":
|
|
12902
12902
|
return new D({ algorithm: Pr, parameters: null });
|
|
12903
12903
|
case "sha-256":
|
|
12904
|
-
return new D({ algorithm:
|
|
12904
|
+
return new D({ algorithm: pa, parameters: null });
|
|
12905
12905
|
case "sha-384":
|
|
12906
12906
|
return new D({ algorithm: Rr, parameters: null });
|
|
12907
12907
|
case "sha-512":
|
|
12908
12908
|
return new D({ algorithm: Lr, parameters: null });
|
|
12909
12909
|
}
|
|
12910
12910
|
} else
|
|
12911
|
-
return new D({ algorithm:
|
|
12911
|
+
return new D({ algorithm: pn, parameters: null });
|
|
12912
12912
|
break;
|
|
12913
12913
|
case "rsa-pss":
|
|
12914
12914
|
if ("hash" in e) {
|
|
@@ -12925,11 +12925,11 @@ let Ta = or = class {
|
|
|
12925
12925
|
}
|
|
12926
12926
|
toWebAlgorithm(e) {
|
|
12927
12927
|
switch (e.algorithm) {
|
|
12928
|
-
case
|
|
12928
|
+
case pn:
|
|
12929
12929
|
return { name: "RSASSA-PKCS1-v1_5" };
|
|
12930
12930
|
case Pr:
|
|
12931
12931
|
return { name: "RSASSA-PKCS1-v1_5", hash: { name: "SHA-1" } };
|
|
12932
|
-
case
|
|
12932
|
+
case pa:
|
|
12933
12933
|
return { name: "RSASSA-PKCS1-v1_5", hash: { name: "SHA-256" } };
|
|
12934
12934
|
case Rr:
|
|
12935
12935
|
return { name: "RSASSA-PKCS1-v1_5", hash: { name: "SHA-384" } };
|
|
@@ -12937,10 +12937,10 @@ let Ta = or = class {
|
|
|
12937
12937
|
return { name: "RSASSA-PKCS1-v1_5", hash: { name: "SHA-512" } };
|
|
12938
12938
|
case pi:
|
|
12939
12939
|
if (e.parameters) {
|
|
12940
|
-
const t = U.parse(e.parameters,
|
|
12940
|
+
const t = U.parse(e.parameters, hn);
|
|
12941
12941
|
return {
|
|
12942
12942
|
name: "RSA-PSS",
|
|
12943
|
-
hash: Be.resolve(
|
|
12943
|
+
hash: Be.resolve(gn).toWebAlgorithm(t.hashAlgorithm),
|
|
12944
12944
|
saltLength: t.saltLength
|
|
12945
12945
|
};
|
|
12946
12946
|
} else
|
|
@@ -12949,11 +12949,11 @@ let Ta = or = class {
|
|
|
12949
12949
|
return null;
|
|
12950
12950
|
}
|
|
12951
12951
|
};
|
|
12952
|
-
|
|
12952
|
+
Pa = or = d([
|
|
12953
12953
|
Rs()
|
|
12954
|
-
],
|
|
12955
|
-
Be.registerSingleton(Ki,
|
|
12956
|
-
let
|
|
12954
|
+
], Pa);
|
|
12955
|
+
Be.registerSingleton(Ki, Pa);
|
|
12956
|
+
let Ra = class {
|
|
12957
12957
|
toAsnAlgorithm(e) {
|
|
12958
12958
|
switch (e.name.toLowerCase()) {
|
|
12959
12959
|
case "sha-1":
|
|
@@ -12981,10 +12981,10 @@ let Pa = class {
|
|
|
12981
12981
|
return null;
|
|
12982
12982
|
}
|
|
12983
12983
|
};
|
|
12984
|
-
|
|
12984
|
+
Ra = d([
|
|
12985
12985
|
Rs()
|
|
12986
|
-
],
|
|
12987
|
-
Be.registerSingleton(Ki,
|
|
12986
|
+
], Ra);
|
|
12987
|
+
Be.registerSingleton(Ki, Ra);
|
|
12988
12988
|
class et {
|
|
12989
12989
|
addPadding(e, t) {
|
|
12990
12990
|
const i = V.toUint8Array(t), r = new Uint8Array(e);
|
|
@@ -13020,21 +13020,21 @@ class et {
|
|
|
13020
13020
|
}
|
|
13021
13021
|
et.namedCurveSize = /* @__PURE__ */ new Map();
|
|
13022
13022
|
et.defaultNamedCurveSize = 32;
|
|
13023
|
-
const
|
|
13024
|
-
let
|
|
13023
|
+
const lo = "1.3.101.110", Wu = "1.3.101.111", uo = "1.3.101.112", Gu = "1.3.101.113";
|
|
13024
|
+
let La = class {
|
|
13025
13025
|
toAsnAlgorithm(e) {
|
|
13026
13026
|
let t = null;
|
|
13027
13027
|
switch (e.name.toLowerCase()) {
|
|
13028
13028
|
case "ed25519":
|
|
13029
|
-
t =
|
|
13029
|
+
t = uo;
|
|
13030
13030
|
break;
|
|
13031
13031
|
case "x25519":
|
|
13032
|
-
t =
|
|
13032
|
+
t = lo;
|
|
13033
13033
|
break;
|
|
13034
13034
|
case "eddsa":
|
|
13035
13035
|
switch (e.namedCurve.toLowerCase()) {
|
|
13036
13036
|
case "ed25519":
|
|
13037
|
-
t =
|
|
13037
|
+
t = uo;
|
|
13038
13038
|
break;
|
|
13039
13039
|
case "ed448":
|
|
13040
13040
|
t = Gu;
|
|
@@ -13044,7 +13044,7 @@ let Ra = class {
|
|
|
13044
13044
|
case "ecdh-es":
|
|
13045
13045
|
switch (e.namedCurve.toLowerCase()) {
|
|
13046
13046
|
case "x25519":
|
|
13047
|
-
t =
|
|
13047
|
+
t = lo;
|
|
13048
13048
|
break;
|
|
13049
13049
|
case "x448":
|
|
13050
13050
|
t = Wu;
|
|
@@ -13057,11 +13057,11 @@ let Ra = class {
|
|
|
13057
13057
|
}
|
|
13058
13058
|
toWebAlgorithm(e) {
|
|
13059
13059
|
switch (e.algorithm) {
|
|
13060
|
-
case
|
|
13060
|
+
case uo:
|
|
13061
13061
|
return { name: "Ed25519" };
|
|
13062
13062
|
case Gu:
|
|
13063
13063
|
return { name: "EdDSA", namedCurve: "Ed448" };
|
|
13064
|
-
case
|
|
13064
|
+
case lo:
|
|
13065
13065
|
return { name: "X25519" };
|
|
13066
13066
|
case Wu:
|
|
13067
13067
|
return { name: "ECDH-ES", namedCurve: "X448" };
|
|
@@ -13069,20 +13069,20 @@ let Ra = class {
|
|
|
13069
13069
|
return null;
|
|
13070
13070
|
}
|
|
13071
13071
|
};
|
|
13072
|
-
|
|
13072
|
+
La = d([
|
|
13073
13073
|
Rs()
|
|
13074
|
-
],
|
|
13075
|
-
Be.registerSingleton(Ki,
|
|
13074
|
+
], La);
|
|
13075
|
+
Be.registerSingleton(Ki, La);
|
|
13076
13076
|
class l0 extends Ot {
|
|
13077
13077
|
constructor(e) {
|
|
13078
13078
|
Ot.isAsnEncoded(e) ? super(e, Si) : super(e), this.tag = Je.CertificateRequestTag;
|
|
13079
13079
|
}
|
|
13080
13080
|
onInit(e) {
|
|
13081
13081
|
this.tbs = U.serialize(e.certificationRequestInfo), this.publicKey = new ut(e.certificationRequestInfo.subjectPKInfo);
|
|
13082
|
-
const t = Be.resolve(
|
|
13082
|
+
const t = Be.resolve(gn);
|
|
13083
13083
|
this.signatureAlgorithm = t.toWebAlgorithm(e.signatureAlgorithm), this.signature = e.signature, this.attributes = e.certificationRequestInfo.attributes.map((r) => zs.create(U.serialize(r)));
|
|
13084
|
-
const i = this.getAttribute(
|
|
13085
|
-
this.extensions = [], i instanceof
|
|
13084
|
+
const i = this.getAttribute(Oc);
|
|
13085
|
+
this.extensions = [], i instanceof Rc && (this.extensions = i.items), this.subjectName = new Qe(e.certificationRequestInfo.subject), this.subject = this.subjectName.toString();
|
|
13086
13086
|
}
|
|
13087
13087
|
getAttribute(e) {
|
|
13088
13088
|
for (const t of this.attributes)
|
|
@@ -13114,7 +13114,7 @@ class l0 extends Ot {
|
|
|
13114
13114
|
}
|
|
13115
13115
|
toTextObject() {
|
|
13116
13116
|
const e = this.toTextObjectEmpty(), t = U.parse(this.rawData, Si), i = t.certificationRequestInfo, r = new ce("", {
|
|
13117
|
-
Version: `${
|
|
13117
|
+
Version: `${ln[i.version]} (${i.version})`,
|
|
13118
13118
|
Subject: this.subject,
|
|
13119
13119
|
"Subject Public Key Info": this.publicKey
|
|
13120
13120
|
});
|
|
@@ -13127,20 +13127,20 @@ class l0 extends Ot {
|
|
|
13127
13127
|
r.Attributes = s;
|
|
13128
13128
|
}
|
|
13129
13129
|
return e.Data = r, e.Signature = new ce("", {
|
|
13130
|
-
Algorithm:
|
|
13130
|
+
Algorithm: _n.serializeAlgorithm(t.signatureAlgorithm),
|
|
13131
13131
|
"": t.signature
|
|
13132
13132
|
}), e;
|
|
13133
13133
|
}
|
|
13134
13134
|
}
|
|
13135
13135
|
l0.NAME = "PKCS#10 Certificate Request";
|
|
13136
|
-
class
|
|
13136
|
+
class Lc extends Ot {
|
|
13137
13137
|
constructor(e) {
|
|
13138
|
-
Ot.isAsnEncoded(e) ? super(e,
|
|
13138
|
+
Ot.isAsnEncoded(e) ? super(e, un) : super(e), this.tag = Je.CertificateTag;
|
|
13139
13139
|
}
|
|
13140
13140
|
onInit(e) {
|
|
13141
13141
|
const t = e.tbsCertificate;
|
|
13142
13142
|
this.tbs = U.serialize(t), this.serialNumber = W.ToHex(t.serialNumber), this.subjectName = new Qe(t.subject), this.subject = new Qe(t.subject).toString(), this.issuerName = new Qe(t.issuer), this.issuer = this.issuerName.toString();
|
|
13143
|
-
const i = Be.resolve(
|
|
13143
|
+
const i = Be.resolve(gn);
|
|
13144
13144
|
this.signatureAlgorithm = i.toWebAlgorithm(e.signatureAlgorithm), this.signature = e.signatureValue;
|
|
13145
13145
|
const r = t.validity.notBefore.utcTime || t.validity.notBefore.generalTime;
|
|
13146
13146
|
if (!r)
|
|
@@ -13204,10 +13204,10 @@ class Rc extends Ot {
|
|
|
13204
13204
|
return this.subject === this.issuer && await this.verify({ signatureOnly: !0 }, e);
|
|
13205
13205
|
}
|
|
13206
13206
|
toTextObject() {
|
|
13207
|
-
const e = this.toTextObjectEmpty(), t = U.parse(this.rawData,
|
|
13208
|
-
Version: `${
|
|
13207
|
+
const e = this.toTextObjectEmpty(), t = U.parse(this.rawData, un), i = t.tbsCertificate, r = new ce("", {
|
|
13208
|
+
Version: `${ln[i.version]} (${i.version})`,
|
|
13209
13209
|
"Serial Number": i.serialNumber,
|
|
13210
|
-
"Signature Algorithm":
|
|
13210
|
+
"Signature Algorithm": _n.serializeAlgorithm(i.signature),
|
|
13211
13211
|
Issuer: this.issuer,
|
|
13212
13212
|
Validity: new ce("", {
|
|
13213
13213
|
"Not Before": i.validity.notBefore.getTime(),
|
|
@@ -13225,12 +13225,12 @@ class Rc extends Ot {
|
|
|
13225
13225
|
r.Extensions = s;
|
|
13226
13226
|
}
|
|
13227
13227
|
return e.Data = r, e.Signature = new ce("", {
|
|
13228
|
-
Algorithm:
|
|
13228
|
+
Algorithm: _n.serializeAlgorithm(t.signatureAlgorithm),
|
|
13229
13229
|
"": t.signatureValue
|
|
13230
13230
|
}), e;
|
|
13231
13231
|
}
|
|
13232
13232
|
}
|
|
13233
|
-
|
|
13233
|
+
Lc.NAME = "Certificate";
|
|
13234
13234
|
class u0 {
|
|
13235
13235
|
static async createSelfSigned(e, t = Ce.get()) {
|
|
13236
13236
|
if (!e.keys.privateKey)
|
|
@@ -13255,9 +13255,9 @@ class u0 {
|
|
|
13255
13255
|
e.publicKey instanceof ut ? r = e.publicKey.rawData : "publicKey" in e.publicKey ? r = e.publicKey.publicKey.rawData : V.isBufferSource(e.publicKey) ? r = e.publicKey : r = await t.subtle.exportKey("spki", e.publicKey);
|
|
13256
13256
|
const s = e.serialNumber ? V.toUint8Array(W.FromHex(e.serialNumber)) : t.getRandomValues(new Uint8Array(16));
|
|
13257
13257
|
s[0] > 127 && (s[0] &= 127), s.length > 1 && s[0] === 0 && (s[1] |= 128);
|
|
13258
|
-
const o = e.notBefore || /* @__PURE__ */ new Date(), c = e.notAfter || new Date(o.getTime() + 31536e6), l = new
|
|
13258
|
+
const o = e.notBefore || /* @__PURE__ */ new Date(), c = e.notAfter || new Date(o.getTime() + 31536e6), l = new un({
|
|
13259
13259
|
tbsCertificate: new Ye({
|
|
13260
|
-
version:
|
|
13260
|
+
version: ln.v3,
|
|
13261
13261
|
serialNumber: s,
|
|
13262
13262
|
validity: new Pi({
|
|
13263
13263
|
notBefore: o,
|
|
@@ -13277,7 +13277,7 @@ class u0 {
|
|
|
13277
13277
|
}
|
|
13278
13278
|
const u = {
|
|
13279
13279
|
hash: "SHA-256"
|
|
13280
|
-
}, p = "signingKey" in e ? { ...u, ...e.signingAlgorithm, ...e.signingKey.algorithm } : { ...u, ...e.signingAlgorithm }, g = Be.resolve(
|
|
13280
|
+
}, p = "signingKey" in e ? { ...u, ...e.signingAlgorithm, ...e.signingKey.algorithm } : { ...u, ...e.signingAlgorithm }, g = Be.resolve(gn);
|
|
13281
13281
|
l.tbsCertificate.signature = l.signatureAlgorithm = g.toAsnAlgorithm(p);
|
|
13282
13282
|
const _ = U.serialize(l.tbsCertificate), x = "signingKey" in e ? await t.subtle.sign(p, e.signingKey, _) : e.signature, h = Be.resolveAll(Gi).reverse();
|
|
13283
13283
|
let m = null;
|
|
@@ -13286,23 +13286,23 @@ class u0 {
|
|
|
13286
13286
|
break;
|
|
13287
13287
|
if (!m)
|
|
13288
13288
|
throw Error("Cannot convert ASN.1 signature value to WebCrypto format");
|
|
13289
|
-
return l.signatureValue = m, new
|
|
13289
|
+
return l.signatureValue = m, new Lc(U.serialize(l));
|
|
13290
13290
|
}
|
|
13291
13291
|
}
|
|
13292
13292
|
var Ju;
|
|
13293
13293
|
(function(n) {
|
|
13294
13294
|
n[n.unspecified = 0] = "unspecified", n[n.keyCompromise = 1] = "keyCompromise", n[n.cACompromise = 2] = "cACompromise", n[n.affiliationChanged = 3] = "affiliationChanged", n[n.superseded = 4] = "superseded", n[n.cessationOfOperation = 5] = "cessationOfOperation", n[n.certificateHold = 6] = "certificateHold", n[n.removeFromCRL = 8] = "removeFromCRL", n[n.privilegeWithdrawn = 9] = "privilegeWithdrawn", n[n.aACompromise = 10] = "aACompromise";
|
|
13295
13295
|
})(Ju || (Ju = {}));
|
|
13296
|
-
rt.register(Tp,
|
|
13297
|
-
rt.register(Lp,
|
|
13298
|
-
rt.register(Up,
|
|
13296
|
+
rt.register(Tp, Bc);
|
|
13297
|
+
rt.register(Lp, Tc);
|
|
13298
|
+
rt.register(Up, Pc);
|
|
13299
13299
|
rt.register(Dp, Wi);
|
|
13300
|
-
rt.register(
|
|
13300
|
+
rt.register(jo, $i);
|
|
13301
13301
|
rt.register(zp, mf);
|
|
13302
|
-
rt.register(
|
|
13303
|
-
rt.register(
|
|
13302
|
+
rt.register(Po, vf);
|
|
13303
|
+
rt.register(Co, wf);
|
|
13304
13304
|
zs.register(df, bf);
|
|
13305
|
-
zs.register(
|
|
13305
|
+
zs.register(Oc, Rc);
|
|
13306
13306
|
Be.registerSingleton(Gi, c0);
|
|
13307
13307
|
Be.registerSingleton(Gi, et);
|
|
13308
13308
|
et.namedCurveSize.set("P-256", 32);
|
|
@@ -13310,7 +13310,7 @@ et.namedCurveSize.set("K-256", 32);
|
|
|
13310
13310
|
et.namedCurveSize.set("P-384", 48);
|
|
13311
13311
|
et.namedCurveSize.set("P-521", 66);
|
|
13312
13312
|
const Zu = "0123456789abcdef";
|
|
13313
|
-
function
|
|
13313
|
+
function Ua(n) {
|
|
13314
13314
|
const e = new Uint8Array(n);
|
|
13315
13315
|
let t = "";
|
|
13316
13316
|
for (let i = 0; i < e.length; i++) {
|
|
@@ -13482,13 +13482,13 @@ class p0 {
|
|
|
13482
13482
|
async function Sf(n) {
|
|
13483
13483
|
return await crypto.subtle.digest("SHA-256", n);
|
|
13484
13484
|
}
|
|
13485
|
-
async function
|
|
13485
|
+
async function Va(n) {
|
|
13486
13486
|
const e = {
|
|
13487
13487
|
name: "RSASSA-PKCS1-v1_5",
|
|
13488
13488
|
hash: "SHA-256",
|
|
13489
13489
|
publicExponent: new Uint8Array([1, 0, 1]),
|
|
13490
13490
|
modulusLength: 2048
|
|
13491
|
-
}, t = await crypto.subtle.generateKey(e, !0, ["sign", "verify"]), i = qe(), r =
|
|
13491
|
+
}, t = await crypto.subtle.generateKey(e, !0, ["sign", "verify"]), i = qe(), r = Ua(new TextEncoder().encode(i)), s = await u0.createSelfSigned({
|
|
13492
13492
|
serialNumber: r,
|
|
13493
13493
|
name: n.name,
|
|
13494
13494
|
notBefore: /* @__PURE__ */ new Date(),
|
|
@@ -13497,16 +13497,16 @@ async function Ua(n) {
|
|
|
13497
13497
|
signingAlgorithm: e,
|
|
13498
13498
|
keys: t,
|
|
13499
13499
|
extensions: [
|
|
13500
|
-
new
|
|
13501
|
-
new
|
|
13500
|
+
new Bc(!0, 2, !0),
|
|
13501
|
+
new Tc(["1.3.6.1.5.5.7.3.1"], !0),
|
|
13502
13502
|
// serverAuth
|
|
13503
|
-
new
|
|
13503
|
+
new Pc(
|
|
13504
13504
|
Wr.keyCertSign | Wr.cRLSign,
|
|
13505
13505
|
!0
|
|
13506
13506
|
),
|
|
13507
13507
|
await Wi.create(t.publicKey)
|
|
13508
13508
|
]
|
|
13509
|
-
}), o = await crypto.subtle.exportKey("pkcs8", t.privateKey), c = s.toString("pem"), l = await h0(s), u =
|
|
13509
|
+
}), o = await crypto.subtle.exportKey("pkcs8", t.privateKey), c = s.toString("pem"), l = await h0(s), u = Ua(await s.getThumbprint()), p = f0("PRIVATE", o);
|
|
13510
13510
|
return {
|
|
13511
13511
|
kid: s.serialNumber,
|
|
13512
13512
|
cert: c,
|
|
@@ -13528,7 +13528,7 @@ function f0(n, e) {
|
|
|
13528
13528
|
}
|
|
13529
13529
|
async function h0(n) {
|
|
13530
13530
|
const e = await n.publicKey.export(), t = await crypto.subtle.exportKey("jwk", e), i = JSON.stringify(t, Object.keys(t).sort()), s = new TextEncoder().encode(i);
|
|
13531
|
-
return
|
|
13531
|
+
return Ua(await Sf(s));
|
|
13532
13532
|
}
|
|
13533
13533
|
const g0 = 1e3 * 60 * 60 * 24, _0 = new fe().openapi(
|
|
13534
13534
|
Z({
|
|
@@ -13622,7 +13622,7 @@ const g0 = 1e3 * 60 * 60 * 24, _0 = new fe().openapi(
|
|
|
13622
13622
|
await n.env.data.keys.update(i.kid, {
|
|
13623
13623
|
revoked_at: new Date(Date.now() + g0).toISOString()
|
|
13624
13624
|
});
|
|
13625
|
-
const t = await
|
|
13625
|
+
const t = await Va({
|
|
13626
13626
|
name: `CN=${n.env.ORGANIZATION_NAME}`
|
|
13627
13627
|
});
|
|
13628
13628
|
return await n.env.data.keys.create(t), n.text("OK", { status: 201 });
|
|
@@ -13657,7 +13657,7 @@ const g0 = 1e3 * 60 * 60 * 24, _0 = new fe().openapi(
|
|
|
13657
13657
|
revoked_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
13658
13658
|
}))
|
|
13659
13659
|
throw new N(404, { message: "Key not found" });
|
|
13660
|
-
const i = await
|
|
13660
|
+
const i = await Va({
|
|
13661
13661
|
name: `CN=${n.env.ORGANIZATION_NAME}`
|
|
13662
13662
|
});
|
|
13663
13663
|
return await n.env.data.keys.create(i), n.text("OK");
|
|
@@ -13695,15 +13695,15 @@ const g0 = 1e3 * 60 * 60 * 24, _0 = new fe().openapi(
|
|
|
13695
13695
|
const { "tenant-id": e } = n.req.valid("header"), { email: t } = n.req.valid("query"), r = (await Cd(n.env.data.users, e, t)).filter((s) => !s.linked_to);
|
|
13696
13696
|
return n.json(r);
|
|
13697
13697
|
}
|
|
13698
|
-
), y0 =
|
|
13699
|
-
clients: a.array(
|
|
13698
|
+
), y0 = mn.extend({
|
|
13699
|
+
clients: a.array(An)
|
|
13700
13700
|
}), v0 = new fe().openapi(
|
|
13701
13701
|
Z({
|
|
13702
13702
|
tags: ["clients"],
|
|
13703
13703
|
method: "get",
|
|
13704
13704
|
path: "/",
|
|
13705
13705
|
request: {
|
|
13706
|
-
query:
|
|
13706
|
+
query: rn,
|
|
13707
13707
|
headers: a.object({
|
|
13708
13708
|
"tenant-id": a.string()
|
|
13709
13709
|
})
|
|
@@ -13719,7 +13719,7 @@ const g0 = 1e3 * 60 * 60 * 24, _0 = new fe().openapi(
|
|
|
13719
13719
|
"application/json": {
|
|
13720
13720
|
schema: a.union([
|
|
13721
13721
|
y0,
|
|
13722
|
-
a.array(
|
|
13722
|
+
a.array(An)
|
|
13723
13723
|
])
|
|
13724
13724
|
}
|
|
13725
13725
|
},
|
|
@@ -13764,7 +13764,7 @@ const g0 = 1e3 * 60 * 60 * 24, _0 = new fe().openapi(
|
|
|
13764
13764
|
200: {
|
|
13765
13765
|
content: {
|
|
13766
13766
|
"application/json": {
|
|
13767
|
-
schema:
|
|
13767
|
+
schema: An
|
|
13768
13768
|
}
|
|
13769
13769
|
},
|
|
13770
13770
|
description: "An application"
|
|
@@ -13820,7 +13820,7 @@ const g0 = 1e3 * 60 * 60 * 24, _0 = new fe().openapi(
|
|
|
13820
13820
|
body: {
|
|
13821
13821
|
content: {
|
|
13822
13822
|
"application/json": {
|
|
13823
|
-
schema: a.object(
|
|
13823
|
+
schema: a.object(_o.shape).partial()
|
|
13824
13824
|
}
|
|
13825
13825
|
}
|
|
13826
13826
|
},
|
|
@@ -13840,7 +13840,7 @@ const g0 = 1e3 * 60 * 60 * 24, _0 = new fe().openapi(
|
|
|
13840
13840
|
200: {
|
|
13841
13841
|
content: {
|
|
13842
13842
|
"application/json": {
|
|
13843
|
-
schema:
|
|
13843
|
+
schema: An
|
|
13844
13844
|
}
|
|
13845
13845
|
},
|
|
13846
13846
|
description: "The update application"
|
|
@@ -13864,7 +13864,7 @@ const g0 = 1e3 * 60 * 60 * 24, _0 = new fe().openapi(
|
|
|
13864
13864
|
body: {
|
|
13865
13865
|
content: {
|
|
13866
13866
|
"application/json": {
|
|
13867
|
-
schema: a.object(
|
|
13867
|
+
schema: a.object(_o.shape)
|
|
13868
13868
|
}
|
|
13869
13869
|
}
|
|
13870
13870
|
},
|
|
@@ -13881,7 +13881,7 @@ const g0 = 1e3 * 60 * 60 * 24, _0 = new fe().openapi(
|
|
|
13881
13881
|
201: {
|
|
13882
13882
|
content: {
|
|
13883
13883
|
"application/json": {
|
|
13884
|
-
schema: a.object(
|
|
13884
|
+
schema: a.object(An.shape)
|
|
13885
13885
|
}
|
|
13886
13886
|
},
|
|
13887
13887
|
description: "An application"
|
|
@@ -13905,7 +13905,7 @@ a.object({
|
|
|
13905
13905
|
limit: a.number(),
|
|
13906
13906
|
length: a.number()
|
|
13907
13907
|
});
|
|
13908
|
-
|
|
13908
|
+
qa.extend({
|
|
13909
13909
|
email: a.string(),
|
|
13910
13910
|
login_count: a.number(),
|
|
13911
13911
|
multifactor: a.array(a.string()).optional(),
|
|
@@ -13913,7 +13913,7 @@ Da.extend({
|
|
|
13913
13913
|
last_login: a.string().optional(),
|
|
13914
13914
|
user_id: a.string()
|
|
13915
13915
|
}).catchall(a.any());
|
|
13916
|
-
const w0 =
|
|
13916
|
+
const w0 = mn.extend({
|
|
13917
13917
|
tenants: a.array(li)
|
|
13918
13918
|
}), b0 = new fe().openapi(
|
|
13919
13919
|
Z({
|
|
@@ -13921,7 +13921,7 @@ const w0 = yn.extend({
|
|
|
13921
13921
|
method: "get",
|
|
13922
13922
|
path: "/",
|
|
13923
13923
|
request: {
|
|
13924
|
-
query:
|
|
13924
|
+
query: rn
|
|
13925
13925
|
},
|
|
13926
13926
|
security: [
|
|
13927
13927
|
{
|
|
@@ -14015,7 +14015,7 @@ const w0 = yn.extend({
|
|
|
14015
14015
|
body: {
|
|
14016
14016
|
content: {
|
|
14017
14017
|
"application/json": {
|
|
14018
|
-
schema: a.object(
|
|
14018
|
+
schema: a.object(yo.shape).partial()
|
|
14019
14019
|
}
|
|
14020
14020
|
}
|
|
14021
14021
|
},
|
|
@@ -14047,7 +14047,7 @@ const w0 = yn.extend({
|
|
|
14047
14047
|
body: {
|
|
14048
14048
|
content: {
|
|
14049
14049
|
"application/json": {
|
|
14050
|
-
schema: a.object(
|
|
14050
|
+
schema: a.object(yo.shape)
|
|
14051
14051
|
}
|
|
14052
14052
|
}
|
|
14053
14053
|
}
|
|
@@ -14072,15 +14072,15 @@ const w0 = yn.extend({
|
|
|
14072
14072
|
const e = n.req.valid("json"), t = await n.env.data.tenants.create(e);
|
|
14073
14073
|
return n.json(t, { status: 201 });
|
|
14074
14074
|
}
|
|
14075
|
-
), k0 =
|
|
14076
|
-
logs: a.array(
|
|
14075
|
+
), k0 = mn.extend({
|
|
14076
|
+
logs: a.array(wo)
|
|
14077
14077
|
}), x0 = new fe().openapi(
|
|
14078
14078
|
Z({
|
|
14079
14079
|
tags: ["logs"],
|
|
14080
14080
|
method: "get",
|
|
14081
14081
|
path: "/",
|
|
14082
14082
|
request: {
|
|
14083
|
-
query:
|
|
14083
|
+
query: rn,
|
|
14084
14084
|
headers: a.object({
|
|
14085
14085
|
"tenant-id": a.string()
|
|
14086
14086
|
})
|
|
@@ -14094,7 +14094,7 @@ const w0 = yn.extend({
|
|
|
14094
14094
|
200: {
|
|
14095
14095
|
content: {
|
|
14096
14096
|
"application/json": {
|
|
14097
|
-
schema: a.union([a.array(
|
|
14097
|
+
schema: a.union([a.array(wo), k0])
|
|
14098
14098
|
}
|
|
14099
14099
|
},
|
|
14100
14100
|
description: "List of log rows"
|
|
@@ -14133,7 +14133,7 @@ const w0 = yn.extend({
|
|
|
14133
14133
|
200: {
|
|
14134
14134
|
content: {
|
|
14135
14135
|
"application/json": {
|
|
14136
|
-
schema:
|
|
14136
|
+
schema: wo
|
|
14137
14137
|
}
|
|
14138
14138
|
},
|
|
14139
14139
|
description: "A log entry"
|
|
@@ -14146,7 +14146,7 @@ const w0 = yn.extend({
|
|
|
14146
14146
|
throw new N(404);
|
|
14147
14147
|
return n.json(i);
|
|
14148
14148
|
}
|
|
14149
|
-
), S0 =
|
|
14149
|
+
), S0 = mn.extend({
|
|
14150
14150
|
hooks: a.array(ai)
|
|
14151
14151
|
}), A0 = new fe().openapi(
|
|
14152
14152
|
Z({
|
|
@@ -14154,7 +14154,7 @@ const w0 = yn.extend({
|
|
|
14154
14154
|
method: "get",
|
|
14155
14155
|
path: "/",
|
|
14156
14156
|
request: {
|
|
14157
|
-
query:
|
|
14157
|
+
query: rn,
|
|
14158
14158
|
headers: a.object({
|
|
14159
14159
|
"tenant-id": a.string()
|
|
14160
14160
|
})
|
|
@@ -14197,7 +14197,7 @@ const w0 = yn.extend({
|
|
|
14197
14197
|
body: {
|
|
14198
14198
|
content: {
|
|
14199
14199
|
"application/json": {
|
|
14200
|
-
schema: a.object(
|
|
14200
|
+
schema: a.object(vo.shape)
|
|
14201
14201
|
}
|
|
14202
14202
|
}
|
|
14203
14203
|
}
|
|
@@ -14237,7 +14237,7 @@ const w0 = yn.extend({
|
|
|
14237
14237
|
body: {
|
|
14238
14238
|
content: {
|
|
14239
14239
|
"application/json": {
|
|
14240
|
-
schema: a.object(
|
|
14240
|
+
schema: a.object(vo.shape).omit({ hook_id: !0 }).partial()
|
|
14241
14241
|
}
|
|
14242
14242
|
}
|
|
14243
14243
|
}
|
|
@@ -14337,7 +14337,7 @@ const w0 = yn.extend({
|
|
|
14337
14337
|
throw new N(404, { message: "Hook not found" });
|
|
14338
14338
|
return n.text("OK");
|
|
14339
14339
|
}
|
|
14340
|
-
), I0 =
|
|
14340
|
+
), I0 = mn.extend({
|
|
14341
14341
|
connections: a.array(Jt)
|
|
14342
14342
|
}), E0 = new fe().openapi(
|
|
14343
14343
|
Z({
|
|
@@ -14345,7 +14345,7 @@ const w0 = yn.extend({
|
|
|
14345
14345
|
method: "get",
|
|
14346
14346
|
path: "/",
|
|
14347
14347
|
request: {
|
|
14348
|
-
query:
|
|
14348
|
+
query: rn,
|
|
14349
14349
|
headers: a.object({
|
|
14350
14350
|
"tenant-id": a.string()
|
|
14351
14351
|
})
|
|
@@ -14461,7 +14461,7 @@ const w0 = yn.extend({
|
|
|
14461
14461
|
body: {
|
|
14462
14462
|
content: {
|
|
14463
14463
|
"application/json": {
|
|
14464
|
-
schema: a.object(
|
|
14464
|
+
schema: a.object(mo.shape).partial()
|
|
14465
14465
|
}
|
|
14466
14466
|
}
|
|
14467
14467
|
},
|
|
@@ -14510,7 +14510,7 @@ const w0 = yn.extend({
|
|
|
14510
14510
|
body: {
|
|
14511
14511
|
content: {
|
|
14512
14512
|
"application/json": {
|
|
14513
|
-
schema: a.object(
|
|
14513
|
+
schema: a.object(mo.shape)
|
|
14514
14514
|
}
|
|
14515
14515
|
}
|
|
14516
14516
|
},
|
|
@@ -14557,7 +14557,7 @@ const w0 = yn.extend({
|
|
|
14557
14557
|
200: {
|
|
14558
14558
|
content: {
|
|
14559
14559
|
"application/json": {
|
|
14560
|
-
schema:
|
|
14560
|
+
schema: Ys
|
|
14561
14561
|
}
|
|
14562
14562
|
},
|
|
14563
14563
|
description: "Branding settings"
|
|
@@ -14566,7 +14566,7 @@ const w0 = yn.extend({
|
|
|
14566
14566
|
}),
|
|
14567
14567
|
async (n) => {
|
|
14568
14568
|
const { "tenant-id": e } = n.req.valid("header"), t = await n.env.data.promptSettings.get(e);
|
|
14569
|
-
return t ? n.json(t) : n.json(
|
|
14569
|
+
return t ? n.json(t) : n.json(Ys.parse({}));
|
|
14570
14570
|
}
|
|
14571
14571
|
).openapi(
|
|
14572
14572
|
Z({
|
|
@@ -14580,7 +14580,7 @@ const w0 = yn.extend({
|
|
|
14580
14580
|
body: {
|
|
14581
14581
|
content: {
|
|
14582
14582
|
"application/json": {
|
|
14583
|
-
schema: a.object(
|
|
14583
|
+
schema: a.object(Ys.shape).partial()
|
|
14584
14584
|
}
|
|
14585
14585
|
}
|
|
14586
14586
|
}
|
|
@@ -14713,7 +14713,7 @@ const O0 = new fe().openapi(
|
|
|
14713
14713
|
200: {
|
|
14714
14714
|
content: {
|
|
14715
14715
|
"application/json": {
|
|
14716
|
-
schema:
|
|
14716
|
+
schema: Xs
|
|
14717
14717
|
}
|
|
14718
14718
|
},
|
|
14719
14719
|
description: "Email provider"
|
|
@@ -14738,7 +14738,7 @@ const O0 = new fe().openapi(
|
|
|
14738
14738
|
body: {
|
|
14739
14739
|
content: {
|
|
14740
14740
|
"application/json": {
|
|
14741
|
-
schema: a.object(
|
|
14741
|
+
schema: a.object(Xs.shape)
|
|
14742
14742
|
}
|
|
14743
14743
|
}
|
|
14744
14744
|
}
|
|
@@ -14770,7 +14770,7 @@ const O0 = new fe().openapi(
|
|
|
14770
14770
|
body: {
|
|
14771
14771
|
content: {
|
|
14772
14772
|
"application/json": {
|
|
14773
|
-
schema: a.object(
|
|
14773
|
+
schema: a.object(Xs.shape).partial()
|
|
14774
14774
|
}
|
|
14775
14775
|
}
|
|
14776
14776
|
}
|
|
@@ -14812,7 +14812,7 @@ const O0 = new fe().openapi(
|
|
|
14812
14812
|
200: {
|
|
14813
14813
|
content: {
|
|
14814
14814
|
"application/json": {
|
|
14815
|
-
schema:
|
|
14815
|
+
schema: Ha
|
|
14816
14816
|
}
|
|
14817
14817
|
},
|
|
14818
14818
|
description: "A session"
|
|
@@ -14985,7 +14985,7 @@ function Dn(n) {
|
|
|
14985
14985
|
useragent: (i = n.header("user-agent")) == null ? void 0 : i.slice(0, 512)
|
|
14986
14986
|
};
|
|
14987
14987
|
}
|
|
14988
|
-
const tr = 60 * 5,
|
|
14988
|
+
const tr = 60 * 5, Ds = 30 * 24 * 60 * 60, Gr = 24 * 60 * 60, L0 = "auth-token", Xu = 30 * 60 * 1e3, U0 = 5 * 60, V0 = 5 * 60;
|
|
14989
14989
|
var Qu;
|
|
14990
14990
|
(function(n) {
|
|
14991
14991
|
n[n.Include = 0] = "Include", n[n.None = 1] = "None";
|
|
@@ -15354,7 +15354,7 @@ function hi(n, e) {
|
|
|
15354
15354
|
});
|
|
15355
15355
|
return i.headers.set("Content-Type", "application/x-www-form-urlencoded"), i.headers.set("Accept", "application/json"), i.headers.set("User-Agent", "arctic"), i.headers.set("Content-Length", t.byteLength.toString()), i;
|
|
15356
15356
|
}
|
|
15357
|
-
function
|
|
15357
|
+
function po(n, e) {
|
|
15358
15358
|
const t = new TextEncoder().encode(`${n}:${e}`);
|
|
15359
15359
|
return M0(t);
|
|
15360
15360
|
}
|
|
@@ -15373,12 +15373,12 @@ async function Jr(n) {
|
|
|
15373
15373
|
throw new ar(e.status);
|
|
15374
15374
|
}
|
|
15375
15375
|
if (typeof t != "object" || t === null)
|
|
15376
|
-
throw new
|
|
15376
|
+
throw new Cn(e.status, t);
|
|
15377
15377
|
let i;
|
|
15378
15378
|
try {
|
|
15379
15379
|
i = Cf(t);
|
|
15380
15380
|
} catch {
|
|
15381
|
-
throw new
|
|
15381
|
+
throw new Cn(e.status, t);
|
|
15382
15382
|
}
|
|
15383
15383
|
throw i;
|
|
15384
15384
|
}
|
|
@@ -15390,7 +15390,7 @@ async function Jr(n) {
|
|
|
15390
15390
|
throw new ar(e.status);
|
|
15391
15391
|
}
|
|
15392
15392
|
if (typeof t != "object" || t === null)
|
|
15393
|
-
throw new
|
|
15393
|
+
throw new Cn(e.status, t);
|
|
15394
15394
|
return new W0(t);
|
|
15395
15395
|
}
|
|
15396
15396
|
throw e.body !== null && await e.body.cancel(), new ar(e.status);
|
|
@@ -15407,15 +15407,15 @@ async function Z0(n) {
|
|
|
15407
15407
|
try {
|
|
15408
15408
|
t = await e.json();
|
|
15409
15409
|
} catch {
|
|
15410
|
-
throw new
|
|
15410
|
+
throw new Cn(e.status, null);
|
|
15411
15411
|
}
|
|
15412
15412
|
if (typeof t != "object" || t === null)
|
|
15413
|
-
throw new
|
|
15413
|
+
throw new Cn(e.status, t);
|
|
15414
15414
|
let i;
|
|
15415
15415
|
try {
|
|
15416
15416
|
i = Cf(t);
|
|
15417
15417
|
} catch {
|
|
15418
|
-
throw new
|
|
15418
|
+
throw new Cn(e.status, t);
|
|
15419
15419
|
}
|
|
15420
15420
|
throw i;
|
|
15421
15421
|
}
|
|
@@ -15473,7 +15473,7 @@ class ar extends Error {
|
|
|
15473
15473
|
this.status = t;
|
|
15474
15474
|
}
|
|
15475
15475
|
}
|
|
15476
|
-
class
|
|
15476
|
+
class Cn extends Error {
|
|
15477
15477
|
constructor(t, i) {
|
|
15478
15478
|
super("Unexpected error response body");
|
|
15479
15479
|
ne(this, "status");
|
|
@@ -15505,7 +15505,7 @@ class Uc {
|
|
|
15505
15505
|
r.set("grant_type", "authorization_code"), r.set("code", t), this.redirectURI !== null && r.set("redirect_uri", this.redirectURI), i !== null && r.set("code_verifier", i), this.clientPassword === null && r.set("client_id", this.clientId);
|
|
15506
15506
|
const s = hi(e, r);
|
|
15507
15507
|
if (this.clientPassword !== null) {
|
|
15508
|
-
const c =
|
|
15508
|
+
const c = po(this.clientId, this.clientPassword);
|
|
15509
15509
|
s.headers.set("Authorization", `Basic ${c}`);
|
|
15510
15510
|
}
|
|
15511
15511
|
return await Jr(s);
|
|
@@ -15515,7 +15515,7 @@ class Uc {
|
|
|
15515
15515
|
r.set("grant_type", "refresh_token"), r.set("refresh_token", t), this.clientPassword === null && r.set("client_id", this.clientId), i.length > 0 && r.set("scope", i.join(" "));
|
|
15516
15516
|
const s = hi(e, r);
|
|
15517
15517
|
if (this.clientPassword !== null) {
|
|
15518
|
-
const c =
|
|
15518
|
+
const c = po(this.clientId, this.clientPassword);
|
|
15519
15519
|
s.headers.set("Authorization", `Basic ${c}`);
|
|
15520
15520
|
}
|
|
15521
15521
|
return await Jr(s);
|
|
@@ -15525,7 +15525,7 @@ class Uc {
|
|
|
15525
15525
|
i.set("token", t), this.clientPassword === null && i.set("client_id", this.clientId);
|
|
15526
15526
|
const r = hi(e, i);
|
|
15527
15527
|
if (this.clientPassword !== null) {
|
|
15528
|
-
const s =
|
|
15528
|
+
const s = po(this.clientId, this.clientPassword);
|
|
15529
15529
|
r.headers.set("Authorization", `Basic ${s}`);
|
|
15530
15530
|
}
|
|
15531
15531
|
await Z0(r);
|
|
@@ -15795,7 +15795,7 @@ const dm = {
|
|
|
15795
15795
|
RS256: "SHA-256",
|
|
15796
15796
|
RS384: "SHA-384",
|
|
15797
15797
|
RS512: "SHA-512"
|
|
15798
|
-
},
|
|
15798
|
+
}, qs = a.object({
|
|
15799
15799
|
iss: a.string().url(),
|
|
15800
15800
|
sub: a.string(),
|
|
15801
15801
|
aud: a.string(),
|
|
@@ -15821,7 +15821,7 @@ const dm = {
|
|
|
15821
15821
|
c_hash: a.string().optional()
|
|
15822
15822
|
// Code hash
|
|
15823
15823
|
}).passthrough();
|
|
15824
|
-
|
|
15824
|
+
qs.omit({
|
|
15825
15825
|
iat: !0,
|
|
15826
15826
|
auth_time: !0,
|
|
15827
15827
|
nonce: !0,
|
|
@@ -15874,7 +15874,7 @@ async function hm(n, e, t) {
|
|
|
15874
15874
|
).validateAuthorizationCode(t), c = Mc(o.idToken());
|
|
15875
15875
|
if (!c)
|
|
15876
15876
|
throw new Error("Invalid ID token");
|
|
15877
|
-
const l =
|
|
15877
|
+
const l = qs.parse(c.payload);
|
|
15878
15878
|
return {
|
|
15879
15879
|
sub: l.sub,
|
|
15880
15880
|
email: l.email,
|
|
@@ -15971,7 +15971,7 @@ async function wm(n, e, t, i) {
|
|
|
15971
15971
|
const c = Mc(o.idToken());
|
|
15972
15972
|
if (!c)
|
|
15973
15973
|
throw new Error("Invalid ID token");
|
|
15974
|
-
const l =
|
|
15974
|
+
const l = qs.parse(c.payload);
|
|
15975
15975
|
return {
|
|
15976
15976
|
sub: l.sub,
|
|
15977
15977
|
email: l.email,
|
|
@@ -16028,7 +16028,7 @@ async function xm(n, e, t) {
|
|
|
16028
16028
|
), o = Mc(s.idToken());
|
|
16029
16029
|
if (!o)
|
|
16030
16030
|
throw new Error("Invalid ID token");
|
|
16031
|
-
const c =
|
|
16031
|
+
const c = qs.parse(o.payload);
|
|
16032
16032
|
if (typeof c.msn != "string")
|
|
16033
16033
|
throw new Error("msn not available in id token");
|
|
16034
16034
|
const l = await fetch(
|
|
@@ -16104,7 +16104,7 @@ async function zc(n, e) {
|
|
|
16104
16104
|
}
|
|
16105
16105
|
};
|
|
16106
16106
|
}
|
|
16107
|
-
function
|
|
16107
|
+
function Fs(n, e = [], t = {}) {
|
|
16108
16108
|
try {
|
|
16109
16109
|
const i = new URL(n);
|
|
16110
16110
|
return e.some((r) => {
|
|
@@ -16174,7 +16174,7 @@ function Dc(n) {
|
|
|
16174
16174
|
return `${n}-${L0}`;
|
|
16175
16175
|
}
|
|
16176
16176
|
function Lf(n, e) {
|
|
16177
|
-
return e ? $m(e).get(Dc(n)) : void 0;
|
|
16177
|
+
return e ? (console.log("cookieHeaders", e), $m(e).get(Dc(n))) : void 0;
|
|
16178
16178
|
}
|
|
16179
16179
|
function Cm(n) {
|
|
16180
16180
|
const e = {
|
|
@@ -16193,14 +16193,14 @@ function Uf(n, e) {
|
|
|
16193
16193
|
path: "/",
|
|
16194
16194
|
httpOnly: !0,
|
|
16195
16195
|
secure: !0,
|
|
16196
|
-
maxAge:
|
|
16196
|
+
maxAge: Ds
|
|
16197
16197
|
};
|
|
16198
16198
|
return Rf(Dc(n), e, {
|
|
16199
16199
|
...t,
|
|
16200
16200
|
sameSite: "none"
|
|
16201
16201
|
});
|
|
16202
16202
|
}
|
|
16203
|
-
var qc = {},
|
|
16203
|
+
var qc = {}, Hs = {};
|
|
16204
16204
|
(function(n) {
|
|
16205
16205
|
const e = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", t = e + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040", i = "[" + e + "][" + t + "]*", r = new RegExp("^" + i + "$"), s = function(c, l) {
|
|
16206
16206
|
const u = [];
|
|
@@ -16231,8 +16231,8 @@ var qc = {}, Fs = {};
|
|
|
16231
16231
|
}, n.getValue = function(c) {
|
|
16232
16232
|
return n.isExist(c) ? c : "";
|
|
16233
16233
|
}, n.isName = o, n.getAllMatches = s, n.nameRegexp = i;
|
|
16234
|
-
})(
|
|
16235
|
-
const Fc =
|
|
16234
|
+
})(Hs);
|
|
16235
|
+
const Fc = Hs, jm = {
|
|
16236
16236
|
allowBooleanAttributes: !1,
|
|
16237
16237
|
//A tag can have attributes without any value
|
|
16238
16238
|
unpairedTags: []
|
|
@@ -16523,7 +16523,7 @@ class Mm {
|
|
|
16523
16523
|
}
|
|
16524
16524
|
}
|
|
16525
16525
|
var zm = Mm;
|
|
16526
|
-
const Dm =
|
|
16526
|
+
const Dm = Hs;
|
|
16527
16527
|
function qm(n, e) {
|
|
16528
16528
|
const t = {};
|
|
16529
16529
|
if (n[e + 3] === "O" && n[e + 4] === "C" && n[e + 5] === "T" && n[e + 6] === "Y" && n[e + 7] === "P" && n[e + 8] === "E") {
|
|
@@ -16630,7 +16630,7 @@ function ry(n) {
|
|
|
16630
16630
|
} : () => !1;
|
|
16631
16631
|
}
|
|
16632
16632
|
var Mf = ry;
|
|
16633
|
-
const zf =
|
|
16633
|
+
const zf = Hs, si = zm, sy = Ym, oy = iy, ay = Mf;
|
|
16634
16634
|
let cy = class {
|
|
16635
16635
|
constructor(e) {
|
|
16636
16636
|
this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = {
|
|
@@ -16671,7 +16671,7 @@ function uy(n, e, t, i, r, s, o) {
|
|
|
16671
16671
|
if (n !== void 0 && (this.options.trimValues && !i && (n = n.trim()), n.length > 0)) {
|
|
16672
16672
|
o || (n = this.replaceEntitiesValue(n));
|
|
16673
16673
|
const c = this.options.tagValueProcessor(e, n, t, r, s);
|
|
16674
|
-
return c == null ? n : typeof c != typeof n || c !== n ? c : this.options.trimValues ?
|
|
16674
|
+
return c == null ? n : typeof c != typeof n || c !== n ? c : this.options.trimValues ? za(n, this.options.parseTagValue, this.options.numberParseOptions) : n.trim() === n ? za(n, this.options.parseTagValue, this.options.numberParseOptions) : n;
|
|
16675
16675
|
}
|
|
16676
16676
|
}
|
|
16677
16677
|
function dy(n) {
|
|
@@ -16696,7 +16696,7 @@ function fy(n, e, t) {
|
|
|
16696
16696
|
if (this.options.transformAttributeName && (u = this.options.transformAttributeName(u)), u === "__proto__" && (u = "#__proto__"), l !== void 0) {
|
|
16697
16697
|
this.options.trimValues && (l = l.trim()), l = this.replaceEntitiesValue(l);
|
|
16698
16698
|
const p = this.options.attributeValueProcessor(c, l, e);
|
|
16699
|
-
p == null ? s[u] = l : typeof p != typeof l || p !== l ? s[u] = p : s[u] =
|
|
16699
|
+
p == null ? s[u] = l : typeof p != typeof l || p !== l ? s[u] = p : s[u] = za(
|
|
16700
16700
|
l,
|
|
16701
16701
|
this.options.parseAttributeValue,
|
|
16702
16702
|
this.options.numberParseOptions
|
|
@@ -16733,7 +16733,7 @@ const hy = function(n) {
|
|
|
16733
16733
|
let p = 0;
|
|
16734
16734
|
u && this.options.unpairedTags.indexOf(u) !== -1 ? (p = r.lastIndexOf(".", r.lastIndexOf(".") - 1), this.tagsNodeStack.pop()) : p = r.lastIndexOf("."), r = r.substring(0, p), t = this.tagsNodeStack.pop(), i = "", s = c;
|
|
16735
16735
|
} else if (n[s + 1] === "?") {
|
|
16736
|
-
let c =
|
|
16736
|
+
let c = Ma(n, s, !1, "?>");
|
|
16737
16737
|
if (!c) throw new Error("Pi Tag is not closed.");
|
|
16738
16738
|
if (i = this.saveTextToParentTag(i, t, r), !(this.options.ignoreDeclaration && c.tagName === "?xml" || this.options.ignorePiTags)) {
|
|
16739
16739
|
const l = new si(c.tagName);
|
|
@@ -16756,7 +16756,7 @@ const hy = function(n) {
|
|
|
16756
16756
|
let u = this.parseTextData(l, t.tagname, r, !0, !1, !0, !0);
|
|
16757
16757
|
u == null && (u = ""), this.options.cdataPropName ? t.add(this.options.cdataPropName, [{ [this.options.textNodeName]: l }]) : t.add(this.options.textNodeName, u), s = c + 2;
|
|
16758
16758
|
} else {
|
|
16759
|
-
let c =
|
|
16759
|
+
let c = Ma(n, s, this.options.removeNSPrefix), l = c.tagName;
|
|
16760
16760
|
const u = c.rawTagName;
|
|
16761
16761
|
let p = c.tagExp, g = c.attrExpPresent, _ = c.closeIndex;
|
|
16762
16762
|
this.options.transformTagName && (l = this.options.transformTagName(l)), t && i && t.tagname !== "!xml" && (i = this.saveTextToParentTag(i, t, r, !1));
|
|
@@ -16861,7 +16861,7 @@ function Xt(n, e, t, i) {
|
|
|
16861
16861
|
throw new Error(i);
|
|
16862
16862
|
return r + e.length - 1;
|
|
16863
16863
|
}
|
|
16864
|
-
function
|
|
16864
|
+
function Ma(n, e, t, i = ">") {
|
|
16865
16865
|
const r = vy(n, e + 1, i);
|
|
16866
16866
|
if (!r) return;
|
|
16867
16867
|
let s = r.data;
|
|
@@ -16901,11 +16901,11 @@ function wy(n, e, t) {
|
|
|
16901
16901
|
else if (n.substr(t + 1, 2) === "![")
|
|
16902
16902
|
t = Xt(n, "]]>", t, "StopNode is not closed.") - 2;
|
|
16903
16903
|
else {
|
|
16904
|
-
const s =
|
|
16904
|
+
const s = Ma(n, t, ">");
|
|
16905
16905
|
s && ((s && s.tagName) === e && s.tagExp[s.tagExp.length - 1] !== "/" && r++, t = s.closeIndex);
|
|
16906
16906
|
}
|
|
16907
16907
|
}
|
|
16908
|
-
function
|
|
16908
|
+
function za(n, e, t) {
|
|
16909
16909
|
if (e && typeof n == "string") {
|
|
16910
16910
|
const i = n.trim();
|
|
16911
16911
|
return i === "true" ? !0 : i === "false" ? !1 : oy(n, t);
|
|
@@ -17651,7 +17651,7 @@ async function Yy(n, e) {
|
|
|
17651
17651
|
session_id: s,
|
|
17652
17652
|
client_id: t.id,
|
|
17653
17653
|
expires_at: new Date(
|
|
17654
|
-
Date.now() +
|
|
17654
|
+
Date.now() + Ds * 1e3
|
|
17655
17655
|
).toISOString(),
|
|
17656
17656
|
user_id: e.user.user_id,
|
|
17657
17657
|
device: {
|
|
@@ -17676,7 +17676,9 @@ async function Kf(n, e) {
|
|
|
17676
17676
|
const { user: t, client: i, scope: r, audience: s } = e, o = await n.env.data.sessions.create(i.tenant.id, {
|
|
17677
17677
|
id: qe(),
|
|
17678
17678
|
user_id: t.user_id,
|
|
17679
|
-
expires_at: new Date(
|
|
17679
|
+
expires_at: new Date(
|
|
17680
|
+
Date.now() + Ds * 1e3
|
|
17681
|
+
).toISOString(),
|
|
17680
17682
|
used_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
17681
17683
|
device: {
|
|
17682
17684
|
last_ip: n.req.header("x-real-ip") || "",
|
|
@@ -17721,7 +17723,7 @@ async function ei(n, e) {
|
|
|
17721
17723
|
});
|
|
17722
17724
|
c = _.id, o = (g = _.refresh_token) == null ? void 0 : g.id;
|
|
17723
17725
|
}
|
|
17724
|
-
if (e.authParams.response_mode ===
|
|
17726
|
+
if (e.authParams.response_mode === nn.SAML_POST)
|
|
17725
17727
|
return Jy(
|
|
17726
17728
|
n,
|
|
17727
17729
|
e.client,
|
|
@@ -17738,11 +17740,11 @@ async function ei(n, e) {
|
|
|
17738
17740
|
}), u = new Headers({
|
|
17739
17741
|
"set-cookie": Uf(r.tenant.id, c)
|
|
17740
17742
|
});
|
|
17741
|
-
if (t.response_mode ===
|
|
17743
|
+
if (t.response_mode === nn.WEB_MESSAGE)
|
|
17742
17744
|
return n.json(l, {
|
|
17743
17745
|
headers: u
|
|
17744
17746
|
});
|
|
17745
|
-
if ((t.response_type ||
|
|
17747
|
+
if ((t.response_type || jn.CODE) === jn.CODE) {
|
|
17746
17748
|
if (!e.loginSession)
|
|
17747
17749
|
throw new N(500, {
|
|
17748
17750
|
message: "Login session not found"
|
|
@@ -17922,7 +17924,7 @@ async function hd(n, { code: e, state: t }) {
|
|
|
17922
17924
|
});
|
|
17923
17925
|
throw await i.data.logs.create(o.tenant.id, m), new N(403, { message: "Redirect URI not defined" });
|
|
17924
17926
|
}
|
|
17925
|
-
if (!
|
|
17927
|
+
if (!Fs(
|
|
17926
17928
|
s.authParams.redirect_uri,
|
|
17927
17929
|
o.callbacks || [],
|
|
17928
17930
|
{ allowPathWildcards: !0 }
|
|
@@ -18144,7 +18146,7 @@ const sv = new fe().openapi(
|
|
|
18144
18146
|
const s = t || n.req.header("referer");
|
|
18145
18147
|
if (!s)
|
|
18146
18148
|
return n.text("OK");
|
|
18147
|
-
if (!
|
|
18149
|
+
if (!Fs(
|
|
18148
18150
|
s,
|
|
18149
18151
|
[
|
|
18150
18152
|
...i.allowed_logout_urls || [],
|
|
@@ -18246,7 +18248,7 @@ const sv = new fe().openapi(
|
|
|
18246
18248
|
async (n) => {
|
|
18247
18249
|
const e = await n.env.data.keys.list(), t = await Promise.all(
|
|
18248
18250
|
e.map(async (i) => {
|
|
18249
|
-
const s = await new
|
|
18251
|
+
const s = await new Lc(i.cert).publicKey.export(), o = await crypto.subtle.exportKey("jwk", s);
|
|
18250
18252
|
return Ad.parse({
|
|
18251
18253
|
...o,
|
|
18252
18254
|
kid: i.kid
|
|
@@ -18447,7 +18449,7 @@ async function dv(n, e) {
|
|
|
18447
18449
|
loginSession: r,
|
|
18448
18450
|
authParams: {
|
|
18449
18451
|
...r.authParams,
|
|
18450
|
-
response_mode:
|
|
18452
|
+
response_mode: nn.WEB_MESSAGE
|
|
18451
18453
|
}
|
|
18452
18454
|
});
|
|
18453
18455
|
}
|
|
@@ -18466,29 +18468,51 @@ async function fv(n, e) {
|
|
|
18466
18468
|
e.refresh_token
|
|
18467
18469
|
);
|
|
18468
18470
|
if (i) {
|
|
18469
|
-
if (i.expires_at && new Date(i.expires_at) < /* @__PURE__ */ new Date())
|
|
18470
|
-
throw new N(403, {
|
|
18471
|
-
|
|
18472
|
-
|
|
18471
|
+
if (i.expires_at && new Date(i.expires_at) < /* @__PURE__ */ new Date() || i.idle_expires_at && new Date(i.idle_expires_at) < /* @__PURE__ */ new Date())
|
|
18472
|
+
throw new N(403, {
|
|
18473
|
+
message: JSON.stringify({
|
|
18474
|
+
error: "invalid_grant",
|
|
18475
|
+
error_description: "Refresh token has expired"
|
|
18476
|
+
})
|
|
18477
|
+
});
|
|
18478
|
+
} else throw new N(403, {
|
|
18479
|
+
message: JSON.stringify({
|
|
18480
|
+
error: "invalid_grant",
|
|
18481
|
+
error_description: "Invalid refresh token"
|
|
18482
|
+
})
|
|
18483
|
+
});
|
|
18484
|
+
const r = await n.env.data.users.get(
|
|
18473
18485
|
t.tenant.id,
|
|
18474
|
-
i.
|
|
18486
|
+
i.user_id
|
|
18475
18487
|
);
|
|
18476
18488
|
if (!r)
|
|
18477
|
-
throw new N(403, { message: "Session not found" });
|
|
18478
|
-
const s = await n.env.data.users.get(t.tenant.id, r.user_id);
|
|
18479
|
-
if (!s)
|
|
18480
18489
|
throw new N(403, { message: "User not found" });
|
|
18481
|
-
const
|
|
18490
|
+
const s = i.resource_servers[0];
|
|
18491
|
+
if (i.idle_expires_at) {
|
|
18492
|
+
const o = new Date(
|
|
18493
|
+
Date.now() + 2592e6
|
|
18494
|
+
// 30 days
|
|
18495
|
+
);
|
|
18496
|
+
await n.env.data.refreshTokens.update(t.tenant.id, i.id, {
|
|
18497
|
+
idle_expires_at: o.toISOString(),
|
|
18498
|
+
last_exchanged_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
18499
|
+
device: {
|
|
18500
|
+
...i.device,
|
|
18501
|
+
last_ip: n.req.header["x-real-ip"] || "",
|
|
18502
|
+
last_user_agent: n.req.header["user-agent"] || ""
|
|
18503
|
+
}
|
|
18504
|
+
});
|
|
18505
|
+
}
|
|
18482
18506
|
return ei(n, {
|
|
18483
|
-
user:
|
|
18507
|
+
user: r,
|
|
18484
18508
|
client: t,
|
|
18485
18509
|
refreshToken: i.id,
|
|
18486
|
-
sessionId:
|
|
18510
|
+
sessionId: i.session_id,
|
|
18487
18511
|
authParams: {
|
|
18488
18512
|
client_id: t.id,
|
|
18489
|
-
audience:
|
|
18490
|
-
scope:
|
|
18491
|
-
response_mode:
|
|
18513
|
+
audience: s == null ? void 0 : s.audience,
|
|
18514
|
+
scope: s == null ? void 0 : s.scopes,
|
|
18515
|
+
response_mode: nn.WEB_MESSAGE
|
|
18492
18516
|
}
|
|
18493
18517
|
});
|
|
18494
18518
|
}
|
|
@@ -18641,7 +18665,7 @@ function yv(n) {
|
|
|
18641
18665
|
/[0-9]/.test(n) && // At least one number
|
|
18642
18666
|
/[^A-Za-z0-9]/.test(n);
|
|
18643
18667
|
}
|
|
18644
|
-
async function
|
|
18668
|
+
async function Ks(n, e) {
|
|
18645
18669
|
var r;
|
|
18646
18670
|
const t = await n.env.data.emailProviders.get(n.var.tenant_id) || // Fallback to default tenant
|
|
18647
18671
|
(n.env.DEFAULT_TENANT_ID ? await n.env.data.emailProviders.get(n.env.DEFAULT_TENANT_ID) : null);
|
|
@@ -18664,7 +18688,7 @@ async function vv(n, e, t, i) {
|
|
|
18664
18688
|
vendorName: r.name,
|
|
18665
18689
|
lng: r.language || "en"
|
|
18666
18690
|
};
|
|
18667
|
-
await
|
|
18691
|
+
await Ks(n, {
|
|
18668
18692
|
to: e,
|
|
18669
18693
|
subject: "Reset your password",
|
|
18670
18694
|
html: `Click here to reset your password: ${wt(n.env)}reset-password?state=${i}&code=${t}`,
|
|
@@ -18696,7 +18720,7 @@ async function wv(n, e, t) {
|
|
|
18696
18720
|
code: t,
|
|
18697
18721
|
lng: i.language || "en"
|
|
18698
18722
|
};
|
|
18699
|
-
await
|
|
18723
|
+
await Ks(n, {
|
|
18700
18724
|
to: e,
|
|
18701
18725
|
subject: de("code_email_subject", r),
|
|
18702
18726
|
html: `Click here to validate your email: ${wt(n.env)}validate-email`,
|
|
@@ -18733,7 +18757,7 @@ async function Zf(n, e, t) {
|
|
|
18733
18757
|
code: t,
|
|
18734
18758
|
lng: i.language || "en"
|
|
18735
18759
|
};
|
|
18736
|
-
await
|
|
18760
|
+
await Ks(n, {
|
|
18737
18761
|
to: e,
|
|
18738
18762
|
subject: de("code_email_subject", r),
|
|
18739
18763
|
html: `Click here to validate your email: ${wt(n.env)}validate-email`,
|
|
@@ -18769,7 +18793,7 @@ async function Yf(n, e) {
|
|
|
18769
18793
|
vendorName: t.name,
|
|
18770
18794
|
lng: t.language || "en"
|
|
18771
18795
|
};
|
|
18772
|
-
await
|
|
18796
|
+
await Ks(n, {
|
|
18773
18797
|
to: e.email,
|
|
18774
18798
|
subject: "Validate your email address",
|
|
18775
18799
|
html: `Click here to validate your email: ${wt(n.env)}validate-email`,
|
|
@@ -18842,7 +18866,7 @@ const bv = new fe().openapi(
|
|
|
18842
18866
|
}))
|
|
18843
18867
|
throw new N(400, { message: "Invalid sign up" });
|
|
18844
18868
|
const o = await n.env.data.users.create(r.tenant.id, {
|
|
18845
|
-
user_id: `auth2|${
|
|
18869
|
+
user_id: `auth2|${Wa()}`,
|
|
18846
18870
|
email: e,
|
|
18847
18871
|
email_verified: !1,
|
|
18848
18872
|
provider: "auth2",
|
|
@@ -18850,7 +18874,7 @@ const bv = new fe().openapi(
|
|
|
18850
18874
|
is_social: !1
|
|
18851
18875
|
});
|
|
18852
18876
|
n.set("user_id", o.user_id), n.set("username", o.email), n.set("connection", o.connection);
|
|
18853
|
-
const c = await
|
|
18877
|
+
const c = await Ka.hash(t, 10);
|
|
18854
18878
|
await n.env.data.passwords.create(r.tenant.id, {
|
|
18855
18879
|
user_id: o.user_id,
|
|
18856
18880
|
password: c,
|
|
@@ -18898,7 +18922,7 @@ const bv = new fe().openapi(
|
|
|
18898
18922
|
throw new N(400, {
|
|
18899
18923
|
message: "Client not found"
|
|
18900
18924
|
});
|
|
18901
|
-
if (n.set("client_id", i.id), n.set("tenant_id", i.tenant.id), !await
|
|
18925
|
+
if (n.set("client_id", i.id), n.set("tenant_id", i.tenant.id), !await Ga({
|
|
18902
18926
|
userAdapter: n.env.data.users,
|
|
18903
18927
|
tenant_id: i.tenant.id,
|
|
18904
18928
|
email: e,
|
|
@@ -18987,7 +19011,7 @@ const kv = new fe().openapi(
|
|
|
18987
19011
|
request: {
|
|
18988
19012
|
query: a.object({
|
|
18989
19013
|
scope: a.string(),
|
|
18990
|
-
response_type: a.nativeEnum(
|
|
19014
|
+
response_type: a.nativeEnum(jn),
|
|
18991
19015
|
redirect_uri: a.string(),
|
|
18992
19016
|
state: a.string(),
|
|
18993
19017
|
nonce: a.string().optional(),
|
|
@@ -19043,7 +19067,7 @@ const kv = new fe().openapi(
|
|
|
19043
19067
|
return n.redirect(
|
|
19044
19068
|
`${wt(n.env)}invalid-session?state=${x.login_id}`
|
|
19045
19069
|
);
|
|
19046
|
-
if (!
|
|
19070
|
+
if (!Fs(s, g.callbacks, {
|
|
19047
19071
|
allowPathWildcards: !0
|
|
19048
19072
|
}))
|
|
19049
19073
|
throw new N(400, {
|
|
@@ -19089,7 +19113,7 @@ async function xv(n, e, t) {
|
|
|
19089
19113
|
const { env: i } = n, r = t.username;
|
|
19090
19114
|
if (n.set("username", r), !r)
|
|
19091
19115
|
throw new N(400, { message: "Username is required" });
|
|
19092
|
-
const s = await
|
|
19116
|
+
const s = await Ga({
|
|
19093
19117
|
userAdapter: n.env.data.users,
|
|
19094
19118
|
tenant_id: e.tenant.id,
|
|
19095
19119
|
email: r,
|
|
@@ -19116,7 +19140,7 @@ async function xv(n, e, t) {
|
|
|
19116
19140
|
e.tenant.id,
|
|
19117
19141
|
s.user_id
|
|
19118
19142
|
);
|
|
19119
|
-
if (!await
|
|
19143
|
+
if (!await Ka.compare(t.password, c)) {
|
|
19120
19144
|
const _ = xe(n, {
|
|
19121
19145
|
type: ye.FAILED_LOGIN_INCORRECT_PASSWORD,
|
|
19122
19146
|
description: "Invalid password"
|
|
@@ -19290,17 +19314,17 @@ function Iv(n, e) {
|
|
|
19290
19314
|
var i, r, s;
|
|
19291
19315
|
if (!n || e.length === 0)
|
|
19292
19316
|
return !1;
|
|
19293
|
-
const t = ((i =
|
|
19317
|
+
const t = ((i = fo(n)) == null ? void 0 : i.host) ?? null;
|
|
19294
19318
|
if (!t)
|
|
19295
19319
|
return !1;
|
|
19296
19320
|
for (const o of e) {
|
|
19297
19321
|
let c;
|
|
19298
|
-
if (o.startsWith("http://") || o.startsWith("https://") ? c = ((r =
|
|
19322
|
+
if (o.startsWith("http://") || o.startsWith("https://") ? c = ((r = fo(o)) == null ? void 0 : r.host) ?? null : c = ((s = fo("https://" + o)) == null ? void 0 : s.host) ?? null, t === c)
|
|
19299
19323
|
return !0;
|
|
19300
19324
|
}
|
|
19301
19325
|
return !1;
|
|
19302
19326
|
}
|
|
19303
|
-
function
|
|
19327
|
+
function fo(n) {
|
|
19304
19328
|
try {
|
|
19305
19329
|
return new URL(n);
|
|
19306
19330
|
} catch {
|
|
@@ -19378,7 +19402,7 @@ async function Cv(n, e, t, i, r) {
|
|
|
19378
19402
|
provider: u
|
|
19379
19403
|
});
|
|
19380
19404
|
p || (p = await s.data.users.create(e, {
|
|
19381
|
-
user_id: `email|${
|
|
19405
|
+
user_id: `email|${Wa()}`,
|
|
19382
19406
|
email: c.authParams.username,
|
|
19383
19407
|
name: c.authParams.username,
|
|
19384
19408
|
provider: "email",
|
|
@@ -19461,17 +19485,18 @@ async function jv({
|
|
|
19461
19485
|
code_challenge_method: o,
|
|
19462
19486
|
code_challenge: c,
|
|
19463
19487
|
audience: l,
|
|
19464
|
-
scope: u
|
|
19488
|
+
scope: u,
|
|
19489
|
+
response_type: p
|
|
19465
19490
|
}) {
|
|
19466
|
-
const { env:
|
|
19467
|
-
if (t) {
|
|
19491
|
+
const { env: g } = n, _ = new URL(i);
|
|
19492
|
+
if (t != null && t.expires_at && new Date(t.expires_at) > /* @__PURE__ */ new Date()) {
|
|
19468
19493
|
n.set("user_id", t.user_id);
|
|
19469
|
-
const
|
|
19470
|
-
|
|
19471
|
-
const
|
|
19472
|
-
if (
|
|
19473
|
-
n.set("username",
|
|
19474
|
-
const
|
|
19494
|
+
const h = new Headers(), m = Uf(e.tenant.id, t.id);
|
|
19495
|
+
h.set("set-cookie", m);
|
|
19496
|
+
const b = await g.data.users.get(e.tenant.id, t.user_id);
|
|
19497
|
+
if (b) {
|
|
19498
|
+
n.set("username", b.email), n.set("connection", b.connection);
|
|
19499
|
+
const S = await Kc(n, {
|
|
19475
19500
|
client: e,
|
|
19476
19501
|
authParams: {
|
|
19477
19502
|
client_id: e.id,
|
|
@@ -19481,37 +19506,39 @@ async function jv({
|
|
|
19481
19506
|
scope: u,
|
|
19482
19507
|
state: r,
|
|
19483
19508
|
nonce: s,
|
|
19484
|
-
|
|
19485
|
-
response_type: nn.TOKEN_ID_TOKEN
|
|
19509
|
+
response_type: p
|
|
19486
19510
|
},
|
|
19487
|
-
user:
|
|
19511
|
+
user: b,
|
|
19488
19512
|
session_id: t.id
|
|
19489
19513
|
});
|
|
19490
|
-
await
|
|
19491
|
-
used_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
19514
|
+
await g.data.sessions.update(e.tenant.id, t.id, {
|
|
19515
|
+
used_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
19516
|
+
expires_at: new Date(
|
|
19517
|
+
Date.now() + Ds * 1e3
|
|
19518
|
+
).toISOString()
|
|
19492
19519
|
});
|
|
19493
|
-
const
|
|
19520
|
+
const B = xe(n, {
|
|
19494
19521
|
type: ye.SUCCESS_SILENT_AUTH,
|
|
19495
19522
|
description: "Successful silent authentication"
|
|
19496
19523
|
});
|
|
19497
|
-
return await n.env.data.logs.create(e.tenant.id,
|
|
19524
|
+
return await n.env.data.logs.create(e.tenant.id, B), n.html(
|
|
19498
19525
|
wd(
|
|
19499
|
-
`${
|
|
19500
|
-
JSON.stringify(
|
|
19526
|
+
`${_.protocol}//${_.host}`,
|
|
19527
|
+
JSON.stringify(S)
|
|
19501
19528
|
),
|
|
19502
19529
|
{
|
|
19503
|
-
headers:
|
|
19530
|
+
headers: h
|
|
19504
19531
|
}
|
|
19505
19532
|
);
|
|
19506
19533
|
}
|
|
19507
19534
|
}
|
|
19508
|
-
const
|
|
19535
|
+
const x = xe(n, {
|
|
19509
19536
|
type: ye.FAILED_SILENT_AUTH,
|
|
19510
19537
|
description: "Login required"
|
|
19511
19538
|
});
|
|
19512
|
-
return await n.env.data.logs.create(e.tenant.id,
|
|
19539
|
+
return await n.env.data.logs.create(e.tenant.id, x), n.html(
|
|
19513
19540
|
wd(
|
|
19514
|
-
`${
|
|
19541
|
+
`${_.protocol}//${_.host}`,
|
|
19515
19542
|
JSON.stringify({
|
|
19516
19543
|
error: "login_required",
|
|
19517
19544
|
error_description: "Login required",
|
|
@@ -19533,14 +19560,14 @@ const Nv = new fe().openapi(
|
|
|
19533
19560
|
scope: a.string().optional(),
|
|
19534
19561
|
state: a.string(),
|
|
19535
19562
|
prompt: a.string().optional(),
|
|
19536
|
-
response_mode: a.nativeEnum(
|
|
19537
|
-
response_type: a.nativeEnum(
|
|
19563
|
+
response_mode: a.nativeEnum(nn).optional(),
|
|
19564
|
+
response_type: a.nativeEnum(jn).optional(),
|
|
19538
19565
|
audience: a.string().optional(),
|
|
19539
19566
|
connection: a.string().optional(),
|
|
19540
19567
|
nonce: a.string().optional(),
|
|
19541
19568
|
max_age: a.string().optional(),
|
|
19542
19569
|
login_ticket: a.string().optional(),
|
|
19543
|
-
code_challenge_method: a.nativeEnum(
|
|
19570
|
+
code_challenge_method: a.nativeEnum(Fa).optional(),
|
|
19544
19571
|
code_challenge: a.string().optional(),
|
|
19545
19572
|
realm: a.string().optional(),
|
|
19546
19573
|
auth0Client: a.string().optional(),
|
|
@@ -19601,7 +19628,7 @@ const Nv = new fe().openapi(
|
|
|
19601
19628
|
throw new N(403, {
|
|
19602
19629
|
message: `Origin ${he} not allowed`
|
|
19603
19630
|
});
|
|
19604
|
-
if (ae.redirect_uri && !
|
|
19631
|
+
if (ae.redirect_uri && !Fs(ae.redirect_uri, H.callbacks || [], {
|
|
19605
19632
|
allowPathWildcards: !0
|
|
19606
19633
|
}))
|
|
19607
19634
|
throw new N(400, {
|
|
@@ -20587,41 +20614,41 @@ function YN(n) {
|
|
|
20587
20614
|
managementApp: t,
|
|
20588
20615
|
oauthApp: i,
|
|
20589
20616
|
universalApp: r,
|
|
20590
|
-
createX509Certificate:
|
|
20617
|
+
createX509Certificate: Va
|
|
20591
20618
|
};
|
|
20592
20619
|
}
|
|
20593
20620
|
export {
|
|
20594
20621
|
qh as Auth0Client,
|
|
20595
|
-
|
|
20596
|
-
|
|
20597
|
-
|
|
20622
|
+
nn as AuthorizationResponseMode,
|
|
20623
|
+
jn as AuthorizationResponseType,
|
|
20624
|
+
Fa as CodeChallengeMethod,
|
|
20598
20625
|
nr as GrantType,
|
|
20599
20626
|
ye as LogTypes,
|
|
20600
|
-
|
|
20601
|
-
|
|
20627
|
+
_o as applicationInsertSchema,
|
|
20628
|
+
An as applicationSchema,
|
|
20602
20629
|
St as auth0UserResponseSchema,
|
|
20603
20630
|
Sd as authParamsSchema,
|
|
20604
|
-
|
|
20631
|
+
qa as baseUserSchema,
|
|
20605
20632
|
Wh as bordersSchema,
|
|
20606
20633
|
_l as brandingSchema,
|
|
20607
20634
|
Uh as codeInsertSchema,
|
|
20608
20635
|
W3 as codeSchema,
|
|
20609
20636
|
Lh as codeTypeSchema,
|
|
20610
20637
|
Gh as colorsSchema,
|
|
20611
|
-
|
|
20638
|
+
mo as connectionInsertSchema,
|
|
20612
20639
|
Jt as connectionSchema,
|
|
20613
20640
|
Vh as domainInsertSchema,
|
|
20614
20641
|
G3 as domainSchema,
|
|
20615
|
-
|
|
20616
|
-
|
|
20642
|
+
Xs as emailProviderSchema,
|
|
20643
|
+
xn as fontDetailsSchema,
|
|
20617
20644
|
Jh as fontsSchema,
|
|
20618
|
-
|
|
20645
|
+
vo as hookInsertSchema,
|
|
20619
20646
|
ai as hookSchema,
|
|
20620
20647
|
Oh as identitySchema,
|
|
20621
20648
|
YN as init,
|
|
20622
20649
|
Mh as jwksKeySchema,
|
|
20623
20650
|
Ad as jwksSchema,
|
|
20624
|
-
|
|
20651
|
+
wo as logSchema,
|
|
20625
20652
|
zh as loginInsertSchema,
|
|
20626
20653
|
J3 as loginSchema,
|
|
20627
20654
|
ml as openIDConfigurationSchema,
|
|
@@ -20630,20 +20657,20 @@ export {
|
|
|
20630
20657
|
Fh as passwordInsertSchema,
|
|
20631
20658
|
Z3 as passwordSchema,
|
|
20632
20659
|
Nh as profileDataSchema,
|
|
20633
|
-
|
|
20660
|
+
Ys as promptSettingSchema,
|
|
20634
20661
|
Ed as refreshTokenInsertSchema,
|
|
20635
20662
|
X3 as refreshTokenSchema,
|
|
20636
20663
|
Ph as samlpAddon,
|
|
20637
20664
|
Hh as sessionInsertSchema,
|
|
20638
|
-
|
|
20665
|
+
Ha as sessionSchema,
|
|
20639
20666
|
yl as signingKeySchema,
|
|
20640
|
-
|
|
20667
|
+
yo as tenantInsertSchema,
|
|
20641
20668
|
li as tenantSchema,
|
|
20642
20669
|
Xh as themeInsertSchema,
|
|
20643
20670
|
Y3 as themeSchema,
|
|
20644
20671
|
Kh as tokenResponseSchema,
|
|
20645
|
-
|
|
20646
|
-
|
|
20672
|
+
mn as totalsSchema,
|
|
20673
|
+
go as userInsertSchema,
|
|
20647
20674
|
H3 as userResponseSchema,
|
|
20648
20675
|
xd as userSchema,
|
|
20649
20676
|
K3 as vendorSettingsSchema,
|