authhero 0.32.0 → 0.32.1
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 +7 -7
- package/dist/authhero.d.ts +7 -13
- package/dist/authhero.mjs +361 -361
- package/package.json +1 -1
package/dist/authhero.mjs
CHANGED
|
@@ -4,10 +4,10 @@ var Yh = (t) => {
|
|
|
4
4
|
};
|
|
5
5
|
var fk = (t, e, a) => e in t ? gk(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
|
|
6
6
|
var D = (t, e, a) => fk(t, typeof e != "symbol" ? e + "" : e, a), yc = (t, e, a) => e.has(t) || Yh("Cannot " + a);
|
|
7
|
-
var E = (t, e, a) => (yc(t, e, "read from private field"), a ? a.call(t) : e.get(t)), Ae = (t, e, a) => e.has(t) ? Yh("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, a),
|
|
7
|
+
var E = (t, e, a) => (yc(t, e, "read from private field"), a ? a.call(t) : e.get(t)), Ae = (t, e, a) => e.has(t) ? Yh("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, a), me = (t, e, a, i) => (yc(t, e, "write to private field"), i ? i.call(t, a) : e.set(t, a), a), Oe = (t, e, a) => (yc(t, e, "access private method"), a);
|
|
8
8
|
var Xh = (t, e, a, i) => ({
|
|
9
9
|
set _(r) {
|
|
10
|
-
|
|
10
|
+
me(t, e, r, a);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
13
|
return E(t, e, i);
|
|
@@ -46,11 +46,11 @@ function yk(t) {
|
|
|
46
46
|
if (qe(this, "ZodObject")) {
|
|
47
47
|
const I = this.extend;
|
|
48
48
|
C.extend = function(...B) {
|
|
49
|
-
var
|
|
49
|
+
var ie, le, K, he, _e, X;
|
|
50
50
|
const q = I.apply(this, B);
|
|
51
51
|
return q._def.openapi = {
|
|
52
52
|
_internal: {
|
|
53
|
-
extendedFrom: !((
|
|
53
|
+
extendedFrom: !((le = (ie = this._def.openapi) === null || ie === void 0 ? void 0 : ie._internal) === null || le === void 0) && le.refId ? { refId: (he = (K = this._def.openapi) === null || K === void 0 ? void 0 : K._internal) === null || he === void 0 ? void 0 : he.refId, schema: this } : (_e = this._def.openapi) === null || _e === void 0 ? void 0 : _e._internal.extendedFrom
|
|
54
54
|
},
|
|
55
55
|
metadata: (X = q._def.openapi) === null || X === void 0 ? void 0 : X.metadata
|
|
56
56
|
}, q;
|
|
@@ -1164,7 +1164,7 @@ var cv = (t, e, a) => {
|
|
|
1164
1164
|
const r = Object.keys(e)[0];
|
|
1165
1165
|
return r ? e[r].then((n) => (r === "json" && (n = JSON.stringify(n)), new Response(n)[t]())) : e[t] = a[t]();
|
|
1166
1166
|
});
|
|
1167
|
-
this.raw = t, this.path = e,
|
|
1167
|
+
this.raw = t, this.path = e, me(this, Fa, a), me(this, jr, {});
|
|
1168
1168
|
}
|
|
1169
1169
|
param(t) {
|
|
1170
1170
|
return t ? Oe(this, Vt, Lg).call(this, t) : Oe(this, Vt, Dg).call(this);
|
|
@@ -1268,24 +1268,24 @@ var cv = (t, e, a) => {
|
|
|
1268
1268
|
Ae(this, qr);
|
|
1269
1269
|
Ae(this, qs);
|
|
1270
1270
|
Ae(this, Ss);
|
|
1271
|
-
D(this, "render", (...t) => (E(this, zr) ??
|
|
1272
|
-
D(this, "setLayout", (t) =>
|
|
1271
|
+
D(this, "render", (...t) => (E(this, zr) ?? me(this, zr, (e) => this.html(e)), E(this, zr).call(this, ...t)));
|
|
1272
|
+
D(this, "setLayout", (t) => me(this, zs, t));
|
|
1273
1273
|
D(this, "getLayout", () => E(this, zs));
|
|
1274
1274
|
D(this, "setRenderer", (t) => {
|
|
1275
|
-
|
|
1275
|
+
me(this, zr, t);
|
|
1276
1276
|
});
|
|
1277
1277
|
D(this, "header", (t, e, a) => {
|
|
1278
1278
|
if (e === void 0) {
|
|
1279
1279
|
E(this, Ke) ? E(this, Ke).delete(t) : E(this, Je) && delete E(this, Je)[t.toLocaleLowerCase()], this.finalized && this.res.headers.delete(t);
|
|
1280
1280
|
return;
|
|
1281
1281
|
}
|
|
1282
|
-
a != null && a.append ? (E(this, Ke) || (
|
|
1282
|
+
a != null && a.append ? (E(this, Ke) || (me(this, At, !1), me(this, Ke, new Headers(E(this, Je))), me(this, Je, {})), E(this, Ke).append(t, e)) : E(this, Ke) ? E(this, Ke).set(t, e) : (E(this, Je) ?? me(this, Je, {}), E(this, Je)[t.toLowerCase()] = e), this.finalized && (a != null && a.append ? this.res.headers.append(t, e) : this.res.headers.set(t, e));
|
|
1283
1283
|
});
|
|
1284
1284
|
D(this, "status", (t) => {
|
|
1285
|
-
|
|
1285
|
+
me(this, At, !1), me(this, qi, t);
|
|
1286
1286
|
});
|
|
1287
1287
|
D(this, "set", (t, e) => {
|
|
1288
|
-
E(this, qt) ??
|
|
1288
|
+
E(this, qt) ?? me(this, qt, /* @__PURE__ */ new Map()), E(this, qt).set(t, e);
|
|
1289
1289
|
});
|
|
1290
1290
|
D(this, "get", (t) => E(this, qt) ? E(this, qt).get(t) : void 0);
|
|
1291
1291
|
D(this, "newResponse", (...t) => Oe(this, va, Ta).call(this, ...t));
|
|
@@ -1294,21 +1294,21 @@ var cv = (t, e, a) => {
|
|
|
1294
1294
|
if (!E(this, Je)) {
|
|
1295
1295
|
if (E(this, At) && !a && !e)
|
|
1296
1296
|
return new Response(t);
|
|
1297
|
-
|
|
1297
|
+
me(this, Je, {});
|
|
1298
1298
|
}
|
|
1299
1299
|
return E(this, Je)["content-type"] = hv, typeof e == "number" ? Oe(this, va, Ta).call(this, t, e, a) : Oe(this, va, Ta).call(this, t, e);
|
|
1300
1300
|
});
|
|
1301
1301
|
D(this, "json", (t, e, a) => {
|
|
1302
1302
|
const i = JSON.stringify(t);
|
|
1303
|
-
return E(this, Je) ??
|
|
1303
|
+
return E(this, Je) ?? me(this, Je, {}), E(this, Je)["content-type"] = "application/json; charset=UTF-8", typeof e == "number" ? Oe(this, va, Ta).call(this, i, e, a) : Oe(this, va, Ta).call(this, i, e);
|
|
1304
1304
|
});
|
|
1305
|
-
D(this, "html", (t, e, a) => (E(this, Je) ??
|
|
1306
|
-
D(this, "redirect", (t, e) => (E(this, Ke) ??
|
|
1307
|
-
D(this, "notFound", () => (E(this, qr) ??
|
|
1308
|
-
|
|
1305
|
+
D(this, "html", (t, e, a) => (E(this, Je) ?? me(this, Je, {}), E(this, Je)["content-type"] = "text/html; charset=UTF-8", typeof t == "object" ? Vg(t, uv.Stringify, !1, {}).then((i) => typeof e == "number" ? Oe(this, va, Ta).call(this, i, e, a) : Oe(this, va, Ta).call(this, i, e)) : typeof e == "number" ? Oe(this, va, Ta).call(this, t, e, a) : Oe(this, va, Ta).call(this, t, e)));
|
|
1306
|
+
D(this, "redirect", (t, e) => (E(this, Ke) ?? me(this, Ke, new Headers()), E(this, Ke).set("Location", String(t)), this.newResponse(null, e ?? 302)));
|
|
1307
|
+
D(this, "notFound", () => (E(this, qr) ?? me(this, qr, () => new Response()), E(this, qr).call(this, this)));
|
|
1308
|
+
me(this, xs, t), e && (me(this, St, e.executionCtx), this.env = e.env, me(this, qr, e.notFoundHandler), me(this, Ss, e.path), me(this, qs, e.matchResult));
|
|
1309
1309
|
}
|
|
1310
1310
|
get req() {
|
|
1311
|
-
return E(this, js) ??
|
|
1311
|
+
return E(this, js) ?? me(this, js, new Ug(E(this, xs), E(this, Ss), E(this, qs))), E(this, js);
|
|
1312
1312
|
}
|
|
1313
1313
|
get event() {
|
|
1314
1314
|
if (E(this, St) && "respondWith" in E(this, St))
|
|
@@ -1321,10 +1321,10 @@ var cv = (t, e, a) => {
|
|
|
1321
1321
|
throw Error("This context has no ExecutionContext");
|
|
1322
1322
|
}
|
|
1323
1323
|
get res() {
|
|
1324
|
-
return
|
|
1324
|
+
return me(this, At, !1), E(this, dt) || me(this, dt, new Response("404 Not Found", { status: 404 }));
|
|
1325
1325
|
}
|
|
1326
1326
|
set res(t) {
|
|
1327
|
-
if (
|
|
1327
|
+
if (me(this, At, !1), E(this, dt) && t)
|
|
1328
1328
|
try {
|
|
1329
1329
|
for (const [e, a] of E(this, dt).headers.entries())
|
|
1330
1330
|
if (e !== "content-type")
|
|
@@ -1345,7 +1345,7 @@ var cv = (t, e, a) => {
|
|
|
1345
1345
|
} else
|
|
1346
1346
|
throw e;
|
|
1347
1347
|
}
|
|
1348
|
-
|
|
1348
|
+
me(this, dt, t), this.finalized = !0;
|
|
1349
1349
|
}
|
|
1350
1350
|
get var() {
|
|
1351
1351
|
return E(this, qt) ? Object.fromEntries(E(this, qt)) : {};
|
|
@@ -1367,7 +1367,7 @@ var cv = (t, e, a) => {
|
|
|
1367
1367
|
});
|
|
1368
1368
|
}
|
|
1369
1369
|
const i = typeof e == "number" ? e : E(this, qi);
|
|
1370
|
-
E(this, Je) ??
|
|
1370
|
+
E(this, Je) ?? me(this, Je, {}), E(this, Ke) ?? me(this, Ke, new Headers()), vc(E(this, Ke), E(this, Je)), E(this, dt) && (E(this, dt).headers.forEach((r, n) => {
|
|
1371
1371
|
var s, o;
|
|
1372
1372
|
n === "set-cookie" ? (s = E(this, Ke)) == null || s.append(n, r) : (o = E(this, Ke)) == null || o.set(n, r);
|
|
1373
1373
|
}), vc(E(this, Ke), E(this, Je))), a ?? (a = {});
|
|
@@ -1426,7 +1426,7 @@ var cv = (t, e, a) => {
|
|
|
1426
1426
|
Ae(this, Et, fv);
|
|
1427
1427
|
D(this, "errorHandler", im);
|
|
1428
1428
|
D(this, "onError", (e) => (this.errorHandler = e, this));
|
|
1429
|
-
D(this, "notFound", (e) => (
|
|
1429
|
+
D(this, "notFound", (e) => (me(this, Et, e), this));
|
|
1430
1430
|
D(this, "fetch", (e, ...a) => Oe(this, aa, no).call(this, e, a[1], a[0], e.method));
|
|
1431
1431
|
D(this, "request", (e, a, i, r) => e instanceof Request ? this.fetch(a ? new Request(e, a) : e, i, r) : (e = e.toString(), this.fetch(
|
|
1432
1432
|
new Request(
|
|
@@ -1442,19 +1442,19 @@ var cv = (t, e, a) => {
|
|
|
1442
1442
|
});
|
|
1443
1443
|
});
|
|
1444
1444
|
[...pv, mv].forEach((r) => {
|
|
1445
|
-
this[r] = (n, ...s) => (typeof n == "string" ?
|
|
1445
|
+
this[r] = (n, ...s) => (typeof n == "string" ? me(this, Wa, n) : Oe(this, aa, vi).call(this, r, E(this, Wa), n), s.forEach((o) => {
|
|
1446
1446
|
Oe(this, aa, vi).call(this, r, E(this, Wa), o);
|
|
1447
1447
|
}), this);
|
|
1448
1448
|
}), this.on = (r, n, ...s) => {
|
|
1449
1449
|
for (const o of [n].flat()) {
|
|
1450
|
-
|
|
1450
|
+
me(this, Wa, o);
|
|
1451
1451
|
for (const l of [r].flat())
|
|
1452
1452
|
s.map((c) => {
|
|
1453
1453
|
Oe(this, aa, vi).call(this, l.toUpperCase(), E(this, Wa), c);
|
|
1454
1454
|
});
|
|
1455
1455
|
}
|
|
1456
1456
|
return this;
|
|
1457
|
-
}, this.use = (r, ...n) => (typeof r == "string" ?
|
|
1457
|
+
}, this.use = (r, ...n) => (typeof r == "string" ? me(this, Wa, r) : (me(this, Wa, "*"), n.unshift(r)), n.forEach((s) => {
|
|
1458
1458
|
Oe(this, aa, vi).call(this, ea, E(this, Wa), s);
|
|
1459
1459
|
}), this);
|
|
1460
1460
|
const i = e.strict ?? !0;
|
|
@@ -1567,7 +1567,7 @@ var Si, Ai, Ga, qg, Vc = (qg = class {
|
|
|
1567
1567
|
throw pn;
|
|
1568
1568
|
if (n)
|
|
1569
1569
|
return;
|
|
1570
|
-
|
|
1570
|
+
me(this, Si, a);
|
|
1571
1571
|
return;
|
|
1572
1572
|
}
|
|
1573
1573
|
const [s, ...o] = e, l = s === "*" ? o.length === 0 ? ["", "", jn] : ["", "", go] : s === "/*" ? ["", "", zn] : s.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);
|
|
@@ -1584,7 +1584,7 @@ var Si, Ai, Ga, qg, Vc = (qg = class {
|
|
|
1584
1584
|
throw pn;
|
|
1585
1585
|
if (n)
|
|
1586
1586
|
return;
|
|
1587
|
-
c = E(this, Ga)[m] = new Vc(), d !== "" &&
|
|
1587
|
+
c = E(this, Ga)[m] = new Vc(), d !== "" && me(c, Ai, r.varIndex++);
|
|
1588
1588
|
}
|
|
1589
1589
|
!n && d !== "" && i.push([d, E(c, Ai)]);
|
|
1590
1590
|
} else if (c = E(this, Ga)[s], !c) {
|
|
@@ -1673,8 +1673,8 @@ function _v(t) {
|
|
|
1673
1673
|
v || (a[m] = b.map(([x, C]) => {
|
|
1674
1674
|
const I = /* @__PURE__ */ Object.create(null);
|
|
1675
1675
|
for (C -= 1; C >= 0; C--) {
|
|
1676
|
-
const [B,
|
|
1677
|
-
I[B] =
|
|
1676
|
+
const [B, ie] = k[C];
|
|
1677
|
+
I[B] = ie;
|
|
1678
1678
|
}
|
|
1679
1679
|
return [x, I];
|
|
1680
1680
|
}));
|
|
@@ -1707,7 +1707,7 @@ var Yt, Xt, Kr, Jg, Yg, Ag, xv = (Ag = class {
|
|
|
1707
1707
|
D(this, "name", "RegExpRouter");
|
|
1708
1708
|
Ae(this, Yt);
|
|
1709
1709
|
Ae(this, Xt);
|
|
1710
|
-
|
|
1710
|
+
me(this, Yt, { [ea]: /* @__PURE__ */ Object.create(null) }), me(this, Xt, { [ea]: /* @__PURE__ */ Object.create(null) });
|
|
1711
1711
|
}
|
|
1712
1712
|
add(t, e, a) {
|
|
1713
1713
|
var o;
|
|
@@ -1765,7 +1765,7 @@ var Yt, Xt, Kr, Jg, Yg, Ag, xv = (Ag = class {
|
|
|
1765
1765
|
const t = /* @__PURE__ */ Object.create(null);
|
|
1766
1766
|
return Object.keys(E(this, Xt)).concat(Object.keys(E(this, Yt))).forEach((e) => {
|
|
1767
1767
|
t[e] || (t[e] = Oe(this, Kr, Yg).call(this, e));
|
|
1768
|
-
}),
|
|
1768
|
+
}), me(this, Yt, me(this, Xt, void 0)), t;
|
|
1769
1769
|
}, Yg = function(t) {
|
|
1770
1770
|
const e = [];
|
|
1771
1771
|
let a = t === ea;
|
|
@@ -1780,7 +1780,7 @@ var Yt, Xt, Kr, Jg, Yg, Ag, xv = (Ag = class {
|
|
|
1780
1780
|
D(this, "name", "SmartRouter");
|
|
1781
1781
|
Ae(this, Qt, []);
|
|
1782
1782
|
Ae(this, It, []);
|
|
1783
|
-
|
|
1783
|
+
me(this, Qt, t.routers);
|
|
1784
1784
|
}
|
|
1785
1785
|
add(t, e, a) {
|
|
1786
1786
|
if (!E(this, It))
|
|
@@ -1803,7 +1803,7 @@ var Yt, Xt, Kr, Jg, Yg, Ag, xv = (Ag = class {
|
|
|
1803
1803
|
continue;
|
|
1804
1804
|
throw l;
|
|
1805
1805
|
}
|
|
1806
|
-
this.match = o.match.bind(o),
|
|
1806
|
+
this.match = o.match.bind(o), me(this, Qt, [o]), me(this, It, void 0);
|
|
1807
1807
|
break;
|
|
1808
1808
|
}
|
|
1809
1809
|
if (n === r)
|
|
@@ -1823,14 +1823,14 @@ var Yt, Xt, Kr, Jg, Yg, Ag, xv = (Ag = class {
|
|
|
1823
1823
|
Ae(this, Ei);
|
|
1824
1824
|
Ae(this, Sr, 0);
|
|
1825
1825
|
Ae(this, wa, /* @__PURE__ */ Object.create(null));
|
|
1826
|
-
if (
|
|
1826
|
+
if (me(this, pa, a || /* @__PURE__ */ Object.create(null)), me(this, ei, []), t && e) {
|
|
1827
1827
|
const i = /* @__PURE__ */ Object.create(null);
|
|
1828
|
-
i[t] = { handler: e, possibleKeys: [], score: 0 },
|
|
1828
|
+
i[t] = { handler: e, possibleKeys: [], score: 0 }, me(this, ei, [i]);
|
|
1829
1829
|
}
|
|
1830
|
-
|
|
1830
|
+
me(this, Ei, []);
|
|
1831
1831
|
}
|
|
1832
1832
|
insert(t, e, a) {
|
|
1833
|
-
|
|
1833
|
+
me(this, Sr, ++Xh(this, Sr)._);
|
|
1834
1834
|
let i = this;
|
|
1835
1835
|
const r = Hk(e), n = [];
|
|
1836
1836
|
for (let l = 0, c = r.length; l < c; l++) {
|
|
@@ -1854,14 +1854,14 @@ var Yt, Xt, Kr, Jg, Yg, Ag, xv = (Ag = class {
|
|
|
1854
1854
|
}
|
|
1855
1855
|
search(t, e) {
|
|
1856
1856
|
const a = [];
|
|
1857
|
-
|
|
1857
|
+
me(this, wa, /* @__PURE__ */ Object.create(null));
|
|
1858
1858
|
let r = [this];
|
|
1859
1859
|
const n = Tg(e);
|
|
1860
1860
|
for (let o = 0, l = n.length; o < l; o++) {
|
|
1861
1861
|
const c = n[o], d = o === l - 1, m = [];
|
|
1862
1862
|
for (let y = 0, v = r.length; y < v; y++) {
|
|
1863
1863
|
const p = r[y], b = E(p, pa)[c];
|
|
1864
|
-
b && (
|
|
1864
|
+
b && (me(b, wa, E(p, wa)), d ? (E(b, pa)["*"] && a.push(
|
|
1865
1865
|
...Oe(this, Ot, wi).call(this, E(b, pa)["*"], t, E(p, wa), /* @__PURE__ */ Object.create(null))
|
|
1866
1866
|
), a.push(
|
|
1867
1867
|
...Oe(this, Ot, wi).call(this, b, t, E(p, wa), /* @__PURE__ */ Object.create(null))
|
|
@@ -1877,14 +1877,14 @@ var Yt, Xt, Kr, Jg, Yg, Ag, xv = (Ag = class {
|
|
|
1877
1877
|
}
|
|
1878
1878
|
if (c === "")
|
|
1879
1879
|
continue;
|
|
1880
|
-
const [B,
|
|
1881
|
-
if (
|
|
1882
|
-
I[
|
|
1880
|
+
const [B, ie, le] = C, K = E(p, pa)[B], he = n.slice(o).join("/");
|
|
1881
|
+
if (le instanceof RegExp && le.test(he)) {
|
|
1882
|
+
I[ie] = he, a.push(...Oe(this, Ot, wi).call(this, K, t, E(p, wa), I));
|
|
1883
1883
|
continue;
|
|
1884
1884
|
}
|
|
1885
|
-
(
|
|
1885
|
+
(le === !0 || le.test(c)) && (I[ie] = c, d ? (a.push(...Oe(this, Ot, wi).call(this, K, t, I, E(p, wa))), E(K, pa)["*"] && a.push(
|
|
1886
1886
|
...Oe(this, Ot, wi).call(this, E(K, pa)["*"], t, I, E(p, wa))
|
|
1887
|
-
)) : (
|
|
1887
|
+
)) : (me(K, wa, I), m.push(K)));
|
|
1888
1888
|
}
|
|
1889
1889
|
}
|
|
1890
1890
|
r = m;
|
|
@@ -1909,7 +1909,7 @@ var Yt, Xt, Kr, Jg, Yg, Ag, xv = (Ag = class {
|
|
|
1909
1909
|
constructor() {
|
|
1910
1910
|
D(this, "name", "TrieRouter");
|
|
1911
1911
|
Ae(this, Ii);
|
|
1912
|
-
|
|
1912
|
+
me(this, Ii, new Xg());
|
|
1913
1913
|
}
|
|
1914
1914
|
add(t, e, a) {
|
|
1915
1915
|
const i = Pg(e);
|
|
@@ -4858,29 +4858,29 @@ var f = /* @__PURE__ */ Object.freeze({
|
|
|
4858
4858
|
const B = o[I].schema;
|
|
4859
4859
|
if (B instanceof Se) {
|
|
4860
4860
|
if (om(I)) {
|
|
4861
|
-
const
|
|
4861
|
+
const ie = rr("json", B, n);
|
|
4862
4862
|
if ((k = (b = i.request) == null ? void 0 : b.body) != null && k.required)
|
|
4863
|
-
s.push(
|
|
4863
|
+
s.push(ie);
|
|
4864
4864
|
else {
|
|
4865
|
-
const
|
|
4865
|
+
const le = async (K, he) => {
|
|
4866
4866
|
if (K.req.header("content-type") && om(K.req.header("content-type")))
|
|
4867
|
-
return await
|
|
4868
|
-
K.req.addValidatedData("json", {}), await
|
|
4867
|
+
return await ie(K, he);
|
|
4868
|
+
K.req.addValidatedData("json", {}), await he();
|
|
4869
4869
|
};
|
|
4870
|
-
s.push(
|
|
4870
|
+
s.push(le);
|
|
4871
4871
|
}
|
|
4872
4872
|
}
|
|
4873
4873
|
if (lm(I)) {
|
|
4874
|
-
const
|
|
4874
|
+
const ie = rr("form", B, n);
|
|
4875
4875
|
if ((C = (x = i.request) == null ? void 0 : x.body) != null && C.required)
|
|
4876
|
-
s.push(
|
|
4876
|
+
s.push(ie);
|
|
4877
4877
|
else {
|
|
4878
|
-
const
|
|
4878
|
+
const le = async (K, he) => {
|
|
4879
4879
|
if (K.req.header("content-type") && lm(K.req.header("content-type")))
|
|
4880
|
-
return await
|
|
4881
|
-
K.req.addValidatedData("form", {}), await
|
|
4880
|
+
return await ie(K, he);
|
|
4881
|
+
K.req.addValidatedData("form", {}), await he();
|
|
4882
4882
|
};
|
|
4883
|
-
s.push(
|
|
4883
|
+
s.push(le);
|
|
4884
4884
|
}
|
|
4885
4885
|
}
|
|
4886
4886
|
}
|
|
@@ -4955,7 +4955,7 @@ var f = /* @__PURE__ */ Object.freeze({
|
|
|
4955
4955
|
basePath(a) {
|
|
4956
4956
|
return new Fc({ ...super.basePath(a), defaultHook: this.defaultHook });
|
|
4957
4957
|
}
|
|
4958
|
-
},
|
|
4958
|
+
}, pe = (t) => {
|
|
4959
4959
|
const e = {
|
|
4960
4960
|
...t,
|
|
4961
4961
|
getRoutingPath() {
|
|
@@ -5350,28 +5350,28 @@ class qo extends _l {
|
|
|
5350
5350
|
return r ? (m.res = B, m.usedParams = this.getUsedParamsDetails(a), m) : B;
|
|
5351
5351
|
}
|
|
5352
5352
|
if (n) {
|
|
5353
|
-
const B = Array.isArray(y),
|
|
5353
|
+
const B = Array.isArray(y), ie = B ? [] : {}, le = B ? p : v;
|
|
5354
5354
|
for (const K in y)
|
|
5355
5355
|
if (Object.prototype.hasOwnProperty.call(y, K)) {
|
|
5356
|
-
const
|
|
5357
|
-
|
|
5356
|
+
const he = `${le}${n}${K}`;
|
|
5357
|
+
ie[K] = this.translate(he, {
|
|
5358
5358
|
...a,
|
|
5359
5359
|
joinArrays: !1,
|
|
5360
5360
|
ns: o
|
|
5361
|
-
}),
|
|
5361
|
+
}), ie[K] === he && (ie[K] = y[K]);
|
|
5362
5362
|
}
|
|
5363
|
-
y =
|
|
5363
|
+
y = ie;
|
|
5364
5364
|
}
|
|
5365
5365
|
} else if (C && we(x) && Array.isArray(y))
|
|
5366
5366
|
y = y.join(x), y && (y = this.extendTranslation(y, e, a, i));
|
|
5367
5367
|
else {
|
|
5368
|
-
let B = !1,
|
|
5369
|
-
const
|
|
5368
|
+
let B = !1, ie = !1;
|
|
5369
|
+
const le = a.count !== void 0 && !we(a.count), K = qo.hasDefaultValue(a), he = le ? this.pluralResolver.getSuffix(c, a.count, a) : "", _e = a.ordinal && le ? this.pluralResolver.getSuffix(c, a.count, {
|
|
5370
5370
|
ordinal: !1
|
|
5371
|
-
}) : "", X =
|
|
5372
|
-
!this.isValidLookup(y) && K && (B = !0, y = q), this.isValidLookup(y) || (
|
|
5373
|
-
const S = (a.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) &&
|
|
5374
|
-
if (
|
|
5371
|
+
}) : "", X = le && !a.ordinal && a.count === 0, q = X && a[`defaultValue${this.options.pluralSeparator}zero`] || a[`defaultValue${he}`] || a[`defaultValue${_e}`] || a.defaultValue;
|
|
5372
|
+
!this.isValidLookup(y) && K && (B = !0, y = q), this.isValidLookup(y) || (ie = !0, y = s);
|
|
5373
|
+
const S = (a.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && ie ? void 0 : y, _ = K && q !== y && this.options.updateMissing;
|
|
5374
|
+
if (ie || B || _) {
|
|
5375
5375
|
if (this.logger.log(_ ? "updateKey" : "missingKey", c, l, s, _ ? q : y), n) {
|
|
5376
5376
|
const F = this.resolve(s, {
|
|
5377
5377
|
...a,
|
|
@@ -5390,14 +5390,14 @@ class qo extends _l {
|
|
|
5390
5390
|
const Ce = K && ve !== y ? ve : S;
|
|
5391
5391
|
this.options.missingKeyHandler ? this.options.missingKeyHandler(F, l, W, Ce, _, a) : (G = this.backendConnector) != null && G.saveMissing && this.backendConnector.saveMissing(F, l, W, Ce, _, a), this.emit("missingKey", F, l, W, y);
|
|
5392
5392
|
};
|
|
5393
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
5393
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && le ? w.forEach((F) => {
|
|
5394
5394
|
const W = this.pluralResolver.getSuffixes(F, a);
|
|
5395
5395
|
X && a[`defaultValue${this.options.pluralSeparator}zero`] && W.indexOf(`${this.options.pluralSeparator}zero`) < 0 && W.push(`${this.options.pluralSeparator}zero`), W.forEach((ve) => {
|
|
5396
5396
|
N([F], s + ve, a[`defaultValue${ve}`] || q);
|
|
5397
5397
|
});
|
|
5398
5398
|
}) : N(w, s, q));
|
|
5399
5399
|
}
|
|
5400
|
-
y = this.extendTranslation(y, e, a, m, i),
|
|
5400
|
+
y = this.extendTranslation(y, e, a, m, i), ie && y === s && this.options.appendNamespaceToMissingKey && (y = `${l}:${s}`), (ie || B) && this.options.parseMissingKeyHandler && (y = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}:${s}` : s, B ? y : void 0));
|
|
5401
5401
|
}
|
|
5402
5402
|
return r ? (m.res = y, m.usedParams = this.getUsedParamsDetails(a), m) : y;
|
|
5403
5403
|
}
|
|
@@ -5460,24 +5460,24 @@ class qo extends _l {
|
|
|
5460
5460
|
m.forEach((k) => {
|
|
5461
5461
|
var x, C;
|
|
5462
5462
|
this.isValidLookup(i) || (o = k, !pm[`${b[0]}-${k}`] && ((x = this.utils) != null && x.hasLoadedNamespace) && !((C = this.utils) != null && C.hasLoadedNamespace(o)) && (pm[`${b[0]}-${k}`] = !0, this.logger.warn(`key "${r}" for languages "${b.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), b.forEach((I) => {
|
|
5463
|
-
var
|
|
5463
|
+
var le;
|
|
5464
5464
|
if (this.isValidLookup(i)) return;
|
|
5465
5465
|
s = I;
|
|
5466
5466
|
const B = [d];
|
|
5467
|
-
if ((
|
|
5467
|
+
if ((le = this.i18nFormat) != null && le.addLookupKeys)
|
|
5468
5468
|
this.i18nFormat.addLookupKeys(B, d, I, k, a);
|
|
5469
5469
|
else {
|
|
5470
5470
|
let K;
|
|
5471
5471
|
y && (K = this.pluralResolver.getSuffix(I, a.count, a));
|
|
5472
|
-
const
|
|
5473
|
-
if (y && (B.push(d + K), a.ordinal && K.indexOf(_e) === 0 && B.push(d + K.replace(_e, this.options.pluralSeparator)), v && B.push(d +
|
|
5472
|
+
const he = `${this.options.pluralSeparator}zero`, _e = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
5473
|
+
if (y && (B.push(d + K), a.ordinal && K.indexOf(_e) === 0 && B.push(d + K.replace(_e, this.options.pluralSeparator)), v && B.push(d + he)), p) {
|
|
5474
5474
|
const X = `${d}${this.options.contextSeparator}${a.context}`;
|
|
5475
|
-
B.push(X), y && (B.push(X + K), a.ordinal && K.indexOf(_e) === 0 && B.push(X + K.replace(_e, this.options.pluralSeparator)), v && B.push(X +
|
|
5475
|
+
B.push(X), y && (B.push(X + K), a.ordinal && K.indexOf(_e) === 0 && B.push(X + K.replace(_e, this.options.pluralSeparator)), v && B.push(X + he));
|
|
5476
5476
|
}
|
|
5477
5477
|
}
|
|
5478
|
-
let
|
|
5479
|
-
for (;
|
|
5480
|
-
this.isValidLookup(i) || (n =
|
|
5478
|
+
let ie;
|
|
5479
|
+
for (; ie = B.pop(); )
|
|
5480
|
+
this.isValidLookup(i) || (n = ie, i = this.getResource(I, k, ie, a));
|
|
5481
5481
|
}));
|
|
5482
5482
|
});
|
|
5483
5483
|
}), {
|
|
@@ -6393,11 +6393,11 @@ function G1(t) {
|
|
|
6393
6393
|
if (W1(this, "ZodObject")) {
|
|
6394
6394
|
const I = this.extend;
|
|
6395
6395
|
C.extend = function(...B) {
|
|
6396
|
-
var
|
|
6396
|
+
var ie, le, K, he, _e, X;
|
|
6397
6397
|
const q = I.apply(this, B);
|
|
6398
6398
|
return q._def.openapi = {
|
|
6399
6399
|
_internal: {
|
|
6400
|
-
extendedFrom: !((
|
|
6400
|
+
extendedFrom: !((le = (ie = this._def.openapi) === null || ie === void 0 ? void 0 : ie._internal) === null || le === void 0) && le.refId ? { refId: (he = (K = this._def.openapi) === null || K === void 0 ? void 0 : K._internal) === null || he === void 0 ? void 0 : he.refId, schema: this } : (_e = this._def.openapi) === null || _e === void 0 ? void 0 : _e._internal.extendedFrom
|
|
6401
6401
|
},
|
|
6402
6402
|
metadata: (X = q._def.openapi) === null || X === void 0 ? void 0 : X.metadata
|
|
6403
6403
|
}, q;
|
|
@@ -9675,14 +9675,8 @@ const c0 = h.enum([
|
|
|
9675
9675
|
// SUCCESS_SILENT_AUTH,
|
|
9676
9676
|
"sv",
|
|
9677
9677
|
// SUCCESS_VERIFICATION_EMAIL
|
|
9678
|
-
"svr"
|
|
9678
|
+
"svr"
|
|
9679
9679
|
// SUCCESS_VERIFICATION_EMAIL_REQUEST
|
|
9680
|
-
"limit_wc",
|
|
9681
|
-
// BLOCKED_ACCOUNT_EMAIL
|
|
9682
|
-
"limit_sul",
|
|
9683
|
-
// BLOCKED_ACCOUNT_IP
|
|
9684
|
-
"limit_mu"
|
|
9685
|
-
// BLOCKED_IP_ADDRESS
|
|
9686
9680
|
]), d0 = h.object({
|
|
9687
9681
|
name: h.string(),
|
|
9688
9682
|
version: h.string(),
|
|
@@ -9869,7 +9863,7 @@ function KC(t) {
|
|
|
9869
9863
|
return { connection: e, id: a };
|
|
9870
9864
|
}
|
|
9871
9865
|
const k0 = new We().openapi(
|
|
9872
|
-
|
|
9866
|
+
pe({
|
|
9873
9867
|
tags: ["branding"],
|
|
9874
9868
|
method: "get",
|
|
9875
9869
|
path: "/",
|
|
@@ -9899,7 +9893,7 @@ const k0 = new We().openapi(
|
|
|
9899
9893
|
return a ? t.json(a) : t.json({});
|
|
9900
9894
|
}
|
|
9901
9895
|
).openapi(
|
|
9902
|
-
|
|
9896
|
+
pe({
|
|
9903
9897
|
tags: ["branding"],
|
|
9904
9898
|
method: "patch",
|
|
9905
9899
|
path: "/",
|
|
@@ -11382,30 +11376,30 @@ const _0 = {}, x0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
11382
11376
|
1668446532,
|
|
11383
11377
|
1869963892
|
|
11384
11378
|
];
|
|
11385
|
-
function
|
|
11379
|
+
function ie(q, z, S, _) {
|
|
11386
11380
|
var w, O = q[z], N = q[z + 1];
|
|
11387
11381
|
return O ^= S[0], w = _[O >>> 24], w += _[256 | O >> 16 & 255], w ^= _[512 | O >> 8 & 255], w += _[768 | O & 255], N ^= w ^ S[1], w = _[N >>> 24], w += _[256 | N >> 16 & 255], w ^= _[512 | N >> 8 & 255], w += _[768 | N & 255], O ^= w ^ S[2], w = _[O >>> 24], w += _[256 | O >> 16 & 255], w ^= _[512 | O >> 8 & 255], w += _[768 | O & 255], N ^= w ^ S[3], w = _[N >>> 24], w += _[256 | N >> 16 & 255], w ^= _[512 | N >> 8 & 255], w += _[768 | N & 255], O ^= w ^ S[4], w = _[O >>> 24], w += _[256 | O >> 16 & 255], w ^= _[512 | O >> 8 & 255], w += _[768 | O & 255], N ^= w ^ S[5], w = _[N >>> 24], w += _[256 | N >> 16 & 255], w ^= _[512 | N >> 8 & 255], w += _[768 | N & 255], O ^= w ^ S[6], w = _[O >>> 24], w += _[256 | O >> 16 & 255], w ^= _[512 | O >> 8 & 255], w += _[768 | O & 255], N ^= w ^ S[7], w = _[N >>> 24], w += _[256 | N >> 16 & 255], w ^= _[512 | N >> 8 & 255], w += _[768 | N & 255], O ^= w ^ S[8], w = _[O >>> 24], w += _[256 | O >> 16 & 255], w ^= _[512 | O >> 8 & 255], w += _[768 | O & 255], N ^= w ^ S[9], w = _[N >>> 24], w += _[256 | N >> 16 & 255], w ^= _[512 | N >> 8 & 255], w += _[768 | N & 255], O ^= w ^ S[10], w = _[O >>> 24], w += _[256 | O >> 16 & 255], w ^= _[512 | O >> 8 & 255], w += _[768 | O & 255], N ^= w ^ S[11], w = _[N >>> 24], w += _[256 | N >> 16 & 255], w ^= _[512 | N >> 8 & 255], w += _[768 | N & 255], O ^= w ^ S[12], w = _[O >>> 24], w += _[256 | O >> 16 & 255], w ^= _[512 | O >> 8 & 255], w += _[768 | O & 255], N ^= w ^ S[13], w = _[N >>> 24], w += _[256 | N >> 16 & 255], w ^= _[512 | N >> 8 & 255], w += _[768 | N & 255], O ^= w ^ S[14], w = _[O >>> 24], w += _[256 | O >> 16 & 255], w ^= _[512 | O >> 8 & 255], w += _[768 | O & 255], N ^= w ^ S[15], w = _[N >>> 24], w += _[256 | N >> 16 & 255], w ^= _[512 | N >> 8 & 255], w += _[768 | N & 255], O ^= w ^ S[16], q[z] = N ^ S[k + 1], q[z + 1] = O, q;
|
|
11388
11382
|
}
|
|
11389
|
-
function
|
|
11383
|
+
function le(q, z) {
|
|
11390
11384
|
for (var S = 0, _ = 0; S < 4; ++S)
|
|
11391
11385
|
_ = _ << 8 | q[z] & 255, z = (z + 1) % q.length;
|
|
11392
11386
|
return { key: _, offp: z };
|
|
11393
11387
|
}
|
|
11394
11388
|
function K(q, z, S) {
|
|
11395
11389
|
for (var _ = 0, w = [0, 0], O = z.length, N = S.length, F, W = 0; W < O; W++)
|
|
11396
|
-
F =
|
|
11390
|
+
F = le(q, _), _ = F.offp, z[W] = z[W] ^ F.key;
|
|
11397
11391
|
for (W = 0; W < O; W += 2)
|
|
11398
|
-
w =
|
|
11392
|
+
w = ie(w, 0, z, S), z[W] = w[0], z[W + 1] = w[1];
|
|
11399
11393
|
for (W = 0; W < N; W += 2)
|
|
11400
|
-
w =
|
|
11394
|
+
w = ie(w, 0, z, S), S[W] = w[0], S[W + 1] = w[1];
|
|
11401
11395
|
}
|
|
11402
|
-
function
|
|
11396
|
+
function he(q, z, S, _) {
|
|
11403
11397
|
for (var w = 0, O = [0, 0], N = S.length, F = _.length, W, ve = 0; ve < N; ve++)
|
|
11404
|
-
W =
|
|
11398
|
+
W = le(z, w), w = W.offp, S[ve] = S[ve] ^ W.key;
|
|
11405
11399
|
for (w = 0, ve = 0; ve < N; ve += 2)
|
|
11406
|
-
W =
|
|
11400
|
+
W = le(q, w), w = W.offp, O[0] ^= W.key, W = le(q, w), w = W.offp, O[1] ^= W.key, O = ie(O, 0, S, _), S[ve] = O[0], S[ve + 1] = O[1];
|
|
11407
11401
|
for (ve = 0; ve < F; ve += 2)
|
|
11408
|
-
W =
|
|
11402
|
+
W = le(q, w), w = W.offp, O[0] ^= W.key, W = le(q, w), w = W.offp, O[1] ^= W.key, O = ie(O, 0, S, _), _[ve] = O[0], _[ve + 1] = O[1];
|
|
11409
11403
|
}
|
|
11410
11404
|
function _e(q, z, S, _, w) {
|
|
11411
11405
|
var O = B.slice(), N = O.length, F;
|
|
@@ -11423,7 +11417,7 @@ const _0 = {}, x0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
11423
11417
|
throw F;
|
|
11424
11418
|
S = 1 << S >>> 0;
|
|
11425
11419
|
var W, ve, Ce = 0, G;
|
|
11426
|
-
Int32Array ? (W = new Int32Array(C), ve = new Int32Array(I)) : (W = C.slice(), ve = I.slice()),
|
|
11420
|
+
Int32Array ? (W = new Int32Array(C), ve = new Int32Array(I)) : (W = C.slice(), ve = I.slice()), he(z, q, W, ve);
|
|
11427
11421
|
function He() {
|
|
11428
11422
|
if (w && w(Ce / S), Ce < S)
|
|
11429
11423
|
for (var Le = Date.now(); Ce < S && (Ce = Ce + 1, K(q, W, ve), K(z, W, ve), !(Date.now() - Le > x)); )
|
|
@@ -11431,7 +11425,7 @@ const _0 = {}, x0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
11431
11425
|
else {
|
|
11432
11426
|
for (Ce = 0; Ce < 64; Ce++)
|
|
11433
11427
|
for (G = 0; G < N >> 1; G++)
|
|
11434
|
-
|
|
11428
|
+
ie(O, G << 1, W, ve);
|
|
11435
11429
|
var Xe = [];
|
|
11436
11430
|
for (Ce = 0; Ce < N; Ce++)
|
|
11437
11431
|
Xe.push((O[Ce] >> 24 & 255) >>> 0), Xe.push((O[Ce] >> 16 & 255) >>> 0), Xe.push((O[Ce] >> 8 & 255) >>> 0), Xe.push((O[Ce] & 255) >>> 0);
|
|
@@ -11670,7 +11664,7 @@ const Sm = er.extend({
|
|
|
11670
11664
|
}), N0 = er.extend({
|
|
11671
11665
|
sessions: f.array(zf)
|
|
11672
11666
|
}), R0 = new We().openapi(
|
|
11673
|
-
|
|
11667
|
+
pe({
|
|
11674
11668
|
tags: ["users"],
|
|
11675
11669
|
method: "get",
|
|
11676
11670
|
path: "/",
|
|
@@ -11741,7 +11735,7 @@ const Sm = er.extend({
|
|
|
11741
11735
|
) : t.json(f.array(jt).parse(c));
|
|
11742
11736
|
}
|
|
11743
11737
|
).openapi(
|
|
11744
|
-
|
|
11738
|
+
pe({
|
|
11745
11739
|
tags: ["users"],
|
|
11746
11740
|
method: "get",
|
|
11747
11741
|
path: "/{user_id}",
|
|
@@ -11780,7 +11774,7 @@ const Sm = er.extend({
|
|
|
11780
11774
|
return t.json(i);
|
|
11781
11775
|
}
|
|
11782
11776
|
).openapi(
|
|
11783
|
-
|
|
11777
|
+
pe({
|
|
11784
11778
|
tags: ["users"],
|
|
11785
11779
|
method: "delete",
|
|
11786
11780
|
path: "/{user_id}",
|
|
@@ -11810,7 +11804,7 @@ const Sm = er.extend({
|
|
|
11810
11804
|
return t.text("OK");
|
|
11811
11805
|
}
|
|
11812
11806
|
).openapi(
|
|
11813
|
-
|
|
11807
|
+
pe({
|
|
11814
11808
|
tags: ["users"],
|
|
11815
11809
|
method: "post",
|
|
11816
11810
|
path: "/",
|
|
@@ -11890,7 +11884,7 @@ const Sm = er.extend({
|
|
|
11890
11884
|
}
|
|
11891
11885
|
}
|
|
11892
11886
|
).openapi(
|
|
11893
|
-
|
|
11887
|
+
pe({
|
|
11894
11888
|
tags: ["users"],
|
|
11895
11889
|
method: "patch",
|
|
11896
11890
|
path: "/{user_id}",
|
|
@@ -11965,7 +11959,7 @@ const Sm = er.extend({
|
|
|
11965
11959
|
return t.json(l);
|
|
11966
11960
|
}
|
|
11967
11961
|
).openapi(
|
|
11968
|
-
|
|
11962
|
+
pe({
|
|
11969
11963
|
tags: ["users"],
|
|
11970
11964
|
method: "post",
|
|
11971
11965
|
path: "/{user_id}/identities",
|
|
@@ -12037,7 +12031,7 @@ const Sm = er.extend({
|
|
|
12037
12031
|
return t.json(o, { status: 201 });
|
|
12038
12032
|
}
|
|
12039
12033
|
).openapi(
|
|
12040
|
-
|
|
12034
|
+
pe({
|
|
12041
12035
|
tags: ["users"],
|
|
12042
12036
|
method: "delete",
|
|
12043
12037
|
path: "/{user_id}/identities/{provider}/{linked_user_id}",
|
|
@@ -12081,7 +12075,7 @@ const Sm = er.extend({
|
|
|
12081
12075
|
return t.json([jt.parse(n)]);
|
|
12082
12076
|
}
|
|
12083
12077
|
).openapi(
|
|
12084
|
-
|
|
12078
|
+
pe({
|
|
12085
12079
|
tags: ["users"],
|
|
12086
12080
|
method: "get",
|
|
12087
12081
|
path: "/{user_id}/sessions",
|
|
@@ -12218,30 +12212,30 @@ var Am;
|
|
|
12218
12212
|
return G(M) || (M = ot(M)), F(A, $, T, M);
|
|
12219
12213
|
}
|
|
12220
12214
|
e("defineMetadata", B);
|
|
12221
|
-
function
|
|
12215
|
+
function ie(A, $, T) {
|
|
12222
12216
|
if (!Le($))
|
|
12223
12217
|
throw new TypeError();
|
|
12224
12218
|
return G(T) || (T = ot(T)), _(A, $, T);
|
|
12225
12219
|
}
|
|
12226
|
-
e("hasMetadata",
|
|
12227
|
-
function
|
|
12220
|
+
e("hasMetadata", ie);
|
|
12221
|
+
function le(A, $, T) {
|
|
12228
12222
|
if (!Le($))
|
|
12229
12223
|
throw new TypeError();
|
|
12230
12224
|
return G(T) || (T = ot(T)), w(A, $, T);
|
|
12231
12225
|
}
|
|
12232
|
-
e("hasOwnMetadata",
|
|
12226
|
+
e("hasOwnMetadata", le);
|
|
12233
12227
|
function K(A, $, T) {
|
|
12234
12228
|
if (!Le($))
|
|
12235
12229
|
throw new TypeError();
|
|
12236
12230
|
return G(T) || (T = ot(T)), O(A, $, T);
|
|
12237
12231
|
}
|
|
12238
12232
|
e("getMetadata", K);
|
|
12239
|
-
function
|
|
12233
|
+
function he(A, $, T) {
|
|
12240
12234
|
if (!Le($))
|
|
12241
12235
|
throw new TypeError();
|
|
12242
12236
|
return G(T) || (T = ot(T)), N(A, $, T);
|
|
12243
12237
|
}
|
|
12244
|
-
e("getOwnMetadata",
|
|
12238
|
+
e("getOwnMetadata", he);
|
|
12245
12239
|
function _e(A, $) {
|
|
12246
12240
|
if (!Le(A))
|
|
12247
12241
|
throw new TypeError();
|
|
@@ -12344,12 +12338,12 @@ var Am;
|
|
|
12344
12338
|
if (T.length <= 0)
|
|
12345
12339
|
return ge;
|
|
12346
12340
|
for (var ia = new v(), Qe = [], Ie = 0, Q = T; Ie < Q.length; Ie++) {
|
|
12347
|
-
var
|
|
12348
|
-
oe || (ia.add(
|
|
12341
|
+
var ne = Q[Ie], oe = ia.has(ne);
|
|
12342
|
+
oe || (ia.add(ne), Qe.push(ne));
|
|
12349
12343
|
}
|
|
12350
|
-
for (var
|
|
12351
|
-
var
|
|
12352
|
-
oe || (ia.add(
|
|
12344
|
+
for (var ce = 0, $e = ge; ce < $e.length; ce++) {
|
|
12345
|
+
var ne = $e[ce], oe = ia.has(ne);
|
|
12346
|
+
oe || (ia.add(ne), Qe.push(ne));
|
|
12353
12347
|
}
|
|
12354
12348
|
return Qe;
|
|
12355
12349
|
}
|
|
@@ -12515,33 +12509,33 @@ var Am;
|
|
|
12515
12509
|
setProvider: oe
|
|
12516
12510
|
};
|
|
12517
12511
|
return ia;
|
|
12518
|
-
function Qe(
|
|
12512
|
+
function Qe(ce) {
|
|
12519
12513
|
if (!Object.isExtensible(ia))
|
|
12520
12514
|
throw new Error("Cannot add provider to a frozen registry.");
|
|
12521
12515
|
switch (!0) {
|
|
12522
|
-
case A ===
|
|
12516
|
+
case A === ce:
|
|
12523
12517
|
break;
|
|
12524
12518
|
case G($):
|
|
12525
|
-
$ =
|
|
12519
|
+
$ = ce;
|
|
12526
12520
|
break;
|
|
12527
|
-
case $ ===
|
|
12521
|
+
case $ === ce:
|
|
12528
12522
|
break;
|
|
12529
12523
|
case G(T):
|
|
12530
|
-
T =
|
|
12524
|
+
T = ce;
|
|
12531
12525
|
break;
|
|
12532
|
-
case T ===
|
|
12526
|
+
case T === ce:
|
|
12533
12527
|
break;
|
|
12534
12528
|
default:
|
|
12535
|
-
M === void 0 && (M = new v()), M.add(
|
|
12529
|
+
M === void 0 && (M = new v()), M.add(ce);
|
|
12536
12530
|
break;
|
|
12537
12531
|
}
|
|
12538
12532
|
}
|
|
12539
|
-
function Ie(
|
|
12533
|
+
function Ie(ce, $e) {
|
|
12540
12534
|
if (!G($)) {
|
|
12541
|
-
if ($.isProviderFor(
|
|
12535
|
+
if ($.isProviderFor(ce, $e))
|
|
12542
12536
|
return $;
|
|
12543
12537
|
if (!G(T)) {
|
|
12544
|
-
if (T.isProviderFor(
|
|
12538
|
+
if (T.isProviderFor(ce, $e))
|
|
12545
12539
|
return $;
|
|
12546
12540
|
if (!G(M))
|
|
12547
12541
|
for (var De = Kh(M); ; ) {
|
|
@@ -12549,32 +12543,32 @@ var Am;
|
|
|
12549
12543
|
if (!Ge)
|
|
12550
12544
|
return;
|
|
12551
12545
|
var Ma = Fh(Ge);
|
|
12552
|
-
if (Ma.isProviderFor(
|
|
12546
|
+
if (Ma.isProviderFor(ce, $e))
|
|
12553
12547
|
return Gh(De), Ma;
|
|
12554
12548
|
}
|
|
12555
12549
|
}
|
|
12556
12550
|
}
|
|
12557
|
-
if (!G(A) && A.isProviderFor(
|
|
12551
|
+
if (!G(A) && A.isProviderFor(ce, $e))
|
|
12558
12552
|
return A;
|
|
12559
12553
|
}
|
|
12560
|
-
function Q(
|
|
12561
|
-
var De = ge.get(
|
|
12562
|
-
return G(De) || (Ge = De.get($e)), G(Ge) && (Ge = Ie(
|
|
12554
|
+
function Q(ce, $e) {
|
|
12555
|
+
var De = ge.get(ce), Ge;
|
|
12556
|
+
return G(De) || (Ge = De.get($e)), G(Ge) && (Ge = Ie(ce, $e), G(Ge) || (G(De) && (De = new y(), ge.set(ce, De)), De.set($e, Ge))), Ge;
|
|
12563
12557
|
}
|
|
12564
|
-
function
|
|
12565
|
-
if (G(
|
|
12558
|
+
function ne(ce) {
|
|
12559
|
+
if (G(ce))
|
|
12566
12560
|
throw new TypeError();
|
|
12567
|
-
return $ ===
|
|
12561
|
+
return $ === ce || T === ce || !G(M) && M.has(ce);
|
|
12568
12562
|
}
|
|
12569
|
-
function oe(
|
|
12570
|
-
if (!
|
|
12563
|
+
function oe(ce, $e, De) {
|
|
12564
|
+
if (!ne(De))
|
|
12571
12565
|
throw new Error("Metadata provider not registered.");
|
|
12572
|
-
var Ge = Q(
|
|
12566
|
+
var Ge = Q(ce, $e);
|
|
12573
12567
|
if (Ge !== De) {
|
|
12574
12568
|
if (!G(Ge))
|
|
12575
12569
|
return !1;
|
|
12576
|
-
var Ma = ge.get(
|
|
12577
|
-
G(Ma) && (Ma = new y(), ge.set(
|
|
12570
|
+
var Ma = ge.get(ce);
|
|
12571
|
+
G(Ma) && (Ma = new y(), ge.set(ce, Ma)), Ma.set($e, De);
|
|
12578
12572
|
}
|
|
12579
12573
|
return !0;
|
|
12580
12574
|
}
|
|
@@ -12590,9 +12584,9 @@ var Am;
|
|
|
12590
12584
|
}
|
|
12591
12585
|
function lk(A) {
|
|
12592
12586
|
var $ = new p(), T = {
|
|
12593
|
-
isProviderFor: function(
|
|
12594
|
-
var
|
|
12595
|
-
return G(
|
|
12587
|
+
isProviderFor: function(ne, oe) {
|
|
12588
|
+
var ce = $.get(ne);
|
|
12589
|
+
return G(ce) ? !1 : ce.has(oe);
|
|
12596
12590
|
},
|
|
12597
12591
|
OrdinaryDefineOwnMetadata: Qe,
|
|
12598
12592
|
OrdinaryHasOwnMetadata: ge,
|
|
@@ -12601,66 +12595,66 @@ var Am;
|
|
|
12601
12595
|
OrdinaryDeleteMetadata: Q
|
|
12602
12596
|
};
|
|
12603
12597
|
return k.registerProvider(T), T;
|
|
12604
|
-
function M(
|
|
12605
|
-
var $e = $.get(
|
|
12598
|
+
function M(ne, oe, ce) {
|
|
12599
|
+
var $e = $.get(ne), De = !1;
|
|
12606
12600
|
if (G($e)) {
|
|
12607
|
-
if (!
|
|
12601
|
+
if (!ce)
|
|
12608
12602
|
return;
|
|
12609
|
-
$e = new y(), $.set(
|
|
12603
|
+
$e = new y(), $.set(ne, $e), De = !0;
|
|
12610
12604
|
}
|
|
12611
12605
|
var Ge = $e.get(oe);
|
|
12612
12606
|
if (G(Ge)) {
|
|
12613
|
-
if (!
|
|
12607
|
+
if (!ce)
|
|
12614
12608
|
return;
|
|
12615
|
-
if (Ge = new y(), $e.set(oe, Ge), !A.setProvider(
|
|
12616
|
-
throw $e.delete(oe), De && $.delete(
|
|
12609
|
+
if (Ge = new y(), $e.set(oe, Ge), !A.setProvider(ne, oe, T))
|
|
12610
|
+
throw $e.delete(oe), De && $.delete(ne), new Error("Wrong provider for target.");
|
|
12617
12611
|
}
|
|
12618
12612
|
return Ge;
|
|
12619
12613
|
}
|
|
12620
|
-
function ge(
|
|
12614
|
+
function ge(ne, oe, ce) {
|
|
12621
12615
|
var $e = M(
|
|
12622
12616
|
oe,
|
|
12623
|
-
|
|
12617
|
+
ce,
|
|
12624
12618
|
/*Create*/
|
|
12625
12619
|
!1
|
|
12626
12620
|
);
|
|
12627
|
-
return G($e) ? !1 : Vh($e.has(
|
|
12621
|
+
return G($e) ? !1 : Vh($e.has(ne));
|
|
12628
12622
|
}
|
|
12629
|
-
function ia(
|
|
12623
|
+
function ia(ne, oe, ce) {
|
|
12630
12624
|
var $e = M(
|
|
12631
12625
|
oe,
|
|
12632
|
-
|
|
12626
|
+
ce,
|
|
12633
12627
|
/*Create*/
|
|
12634
12628
|
!1
|
|
12635
12629
|
);
|
|
12636
12630
|
if (!G($e))
|
|
12637
|
-
return $e.get(
|
|
12631
|
+
return $e.get(ne);
|
|
12638
12632
|
}
|
|
12639
|
-
function Qe(
|
|
12633
|
+
function Qe(ne, oe, ce, $e) {
|
|
12640
12634
|
var De = M(
|
|
12641
|
-
|
|
12635
|
+
ce,
|
|
12642
12636
|
$e,
|
|
12643
12637
|
/*Create*/
|
|
12644
12638
|
!0
|
|
12645
12639
|
);
|
|
12646
|
-
De.set(
|
|
12640
|
+
De.set(ne, oe);
|
|
12647
12641
|
}
|
|
12648
|
-
function Ie(
|
|
12649
|
-
var
|
|
12650
|
-
|
|
12642
|
+
function Ie(ne, oe) {
|
|
12643
|
+
var ce = [], $e = M(
|
|
12644
|
+
ne,
|
|
12651
12645
|
oe,
|
|
12652
12646
|
/*Create*/
|
|
12653
12647
|
!1
|
|
12654
12648
|
);
|
|
12655
12649
|
if (G($e))
|
|
12656
|
-
return
|
|
12650
|
+
return ce;
|
|
12657
12651
|
for (var De = $e.keys(), Ge = Kh(De), Ma = 0; ; ) {
|
|
12658
12652
|
var Jh = Wh(Ge);
|
|
12659
12653
|
if (!Jh)
|
|
12660
|
-
return
|
|
12654
|
+
return ce.length = Ma, ce;
|
|
12661
12655
|
var mk = Fh(Jh);
|
|
12662
12656
|
try {
|
|
12663
|
-
|
|
12657
|
+
ce[Ma] = mk;
|
|
12664
12658
|
} catch (pk) {
|
|
12665
12659
|
try {
|
|
12666
12660
|
Gh(Ge);
|
|
@@ -12671,27 +12665,27 @@ var Am;
|
|
|
12671
12665
|
Ma++;
|
|
12672
12666
|
}
|
|
12673
12667
|
}
|
|
12674
|
-
function Q(
|
|
12668
|
+
function Q(ne, oe, ce) {
|
|
12675
12669
|
var $e = M(
|
|
12676
12670
|
oe,
|
|
12677
|
-
|
|
12671
|
+
ce,
|
|
12678
12672
|
/*Create*/
|
|
12679
12673
|
!1
|
|
12680
12674
|
);
|
|
12681
|
-
if (G($e) || !$e.delete(
|
|
12675
|
+
if (G($e) || !$e.delete(ne))
|
|
12682
12676
|
return !1;
|
|
12683
12677
|
if ($e.size === 0) {
|
|
12684
12678
|
var De = $.get(oe);
|
|
12685
|
-
G(De) || (De.delete(
|
|
12679
|
+
G(De) || (De.delete(ce), De.size === 0 && $.delete(De));
|
|
12686
12680
|
}
|
|
12687
12681
|
return !0;
|
|
12688
12682
|
}
|
|
12689
12683
|
}
|
|
12690
12684
|
function ck(A) {
|
|
12691
12685
|
var $ = A.defineMetadata, T = A.hasOwnMetadata, M = A.getOwnMetadata, ge = A.getOwnMetadataKeys, ia = A.deleteMetadata, Qe = new p(), Ie = {
|
|
12692
|
-
isProviderFor: function(Q,
|
|
12686
|
+
isProviderFor: function(Q, ne) {
|
|
12693
12687
|
var oe = Qe.get(Q);
|
|
12694
|
-
return !G(oe) && oe.has(
|
|
12688
|
+
return !G(oe) && oe.has(ne) ? !0 : ge(Q, ne).length ? (G(oe) && (oe = new v(), Qe.set(Q, oe)), oe.add(ne), !0) : !1;
|
|
12695
12689
|
},
|
|
12696
12690
|
OrdinaryDefineOwnMetadata: $,
|
|
12697
12691
|
OrdinaryHasOwnMetadata: T,
|
|
@@ -12715,8 +12709,8 @@ var Am;
|
|
|
12715
12709
|
var A = {}, $ = [], T = (
|
|
12716
12710
|
/** @class */
|
|
12717
12711
|
function() {
|
|
12718
|
-
function Ie(Q,
|
|
12719
|
-
this._index = 0, this._keys = Q, this._values =
|
|
12712
|
+
function Ie(Q, ne, oe) {
|
|
12713
|
+
this._index = 0, this._keys = Q, this._values = ne, this._selector = oe;
|
|
12720
12714
|
}
|
|
12721
12715
|
return Ie.prototype["@@iterator"] = function() {
|
|
12722
12716
|
return this;
|
|
@@ -12725,8 +12719,8 @@ var Am;
|
|
|
12725
12719
|
}, Ie.prototype.next = function() {
|
|
12726
12720
|
var Q = this._index;
|
|
12727
12721
|
if (Q >= 0 && Q < this._keys.length) {
|
|
12728
|
-
var
|
|
12729
|
-
return Q + 1 >= this._keys.length ? (this._index = -1, this._keys = $, this._values = $) : this._index++, { value:
|
|
12722
|
+
var ne = this._selector(this._keys[Q], this._values[Q]);
|
|
12723
|
+
return Q + 1 >= this._keys.length ? (this._index = -1, this._keys = $, this._values = $) : this._index++, { value: ne, done: !1 };
|
|
12730
12724
|
}
|
|
12731
12725
|
return { value: void 0, done: !0 };
|
|
12732
12726
|
}, Ie.prototype.throw = function(Q) {
|
|
@@ -12754,28 +12748,28 @@ var Am;
|
|
|
12754
12748
|
!1
|
|
12755
12749
|
) >= 0;
|
|
12756
12750
|
}, Ie.prototype.get = function(Q) {
|
|
12757
|
-
var
|
|
12751
|
+
var ne = this._find(
|
|
12758
12752
|
Q,
|
|
12759
12753
|
/*insert*/
|
|
12760
12754
|
!1
|
|
12761
12755
|
);
|
|
12762
|
-
return
|
|
12763
|
-
}, Ie.prototype.set = function(Q,
|
|
12756
|
+
return ne >= 0 ? this._values[ne] : void 0;
|
|
12757
|
+
}, Ie.prototype.set = function(Q, ne) {
|
|
12764
12758
|
var oe = this._find(
|
|
12765
12759
|
Q,
|
|
12766
12760
|
/*insert*/
|
|
12767
12761
|
!0
|
|
12768
12762
|
);
|
|
12769
|
-
return this._values[oe] =
|
|
12763
|
+
return this._values[oe] = ne, this;
|
|
12770
12764
|
}, Ie.prototype.delete = function(Q) {
|
|
12771
|
-
var
|
|
12765
|
+
var ne = this._find(
|
|
12772
12766
|
Q,
|
|
12773
12767
|
/*insert*/
|
|
12774
12768
|
!1
|
|
12775
12769
|
);
|
|
12776
|
-
if (
|
|
12777
|
-
for (var oe = this._keys.length,
|
|
12778
|
-
this._keys[
|
|
12770
|
+
if (ne >= 0) {
|
|
12771
|
+
for (var oe = this._keys.length, ce = ne + 1; ce < oe; ce++)
|
|
12772
|
+
this._keys[ce - 1] = this._keys[ce], this._values[ce - 1] = this._values[ce];
|
|
12779
12773
|
return this._keys.length--, this._values.length--, gc(Q, this._cacheKey) && (this._cacheKey = A, this._cacheIndex = -2), !0;
|
|
12780
12774
|
}
|
|
12781
12775
|
return !1;
|
|
@@ -12791,7 +12785,7 @@ var Am;
|
|
|
12791
12785
|
return this.entries();
|
|
12792
12786
|
}, Ie.prototype[s] = function() {
|
|
12793
12787
|
return this.entries();
|
|
12794
|
-
}, Ie.prototype._find = function(Q,
|
|
12788
|
+
}, Ie.prototype._find = function(Q, ne) {
|
|
12795
12789
|
if (!gc(this._cacheKey, Q)) {
|
|
12796
12790
|
this._cacheIndex = -1;
|
|
12797
12791
|
for (var oe = 0; oe < this._keys.length; oe++)
|
|
@@ -12800,7 +12794,7 @@ var Am;
|
|
|
12800
12794
|
break;
|
|
12801
12795
|
}
|
|
12802
12796
|
}
|
|
12803
|
-
return this._cacheIndex < 0 &&
|
|
12797
|
+
return this._cacheIndex < 0 && ne && (this._cacheIndex = this._keys.length, this._keys.push(Q), this._values.push(void 0)), this._cacheIndex;
|
|
12804
12798
|
}, Ie;
|
|
12805
12799
|
}()
|
|
12806
12800
|
);
|
|
@@ -12859,30 +12853,30 @@ var Am;
|
|
|
12859
12853
|
function Q() {
|
|
12860
12854
|
this._key = M();
|
|
12861
12855
|
}
|
|
12862
|
-
return Q.prototype.has = function(
|
|
12856
|
+
return Q.prototype.has = function(ne) {
|
|
12863
12857
|
var oe = ge(
|
|
12864
|
-
|
|
12858
|
+
ne,
|
|
12865
12859
|
/*create*/
|
|
12866
12860
|
!1
|
|
12867
12861
|
);
|
|
12868
12862
|
return oe !== void 0 ? d.has(oe, this._key) : !1;
|
|
12869
|
-
}, Q.prototype.get = function(
|
|
12863
|
+
}, Q.prototype.get = function(ne) {
|
|
12870
12864
|
var oe = ge(
|
|
12871
|
-
|
|
12865
|
+
ne,
|
|
12872
12866
|
/*create*/
|
|
12873
12867
|
!1
|
|
12874
12868
|
);
|
|
12875
12869
|
return oe !== void 0 ? d.get(oe, this._key) : void 0;
|
|
12876
|
-
}, Q.prototype.set = function(
|
|
12877
|
-
var
|
|
12878
|
-
|
|
12870
|
+
}, Q.prototype.set = function(ne, oe) {
|
|
12871
|
+
var ce = ge(
|
|
12872
|
+
ne,
|
|
12879
12873
|
/*create*/
|
|
12880
12874
|
!0
|
|
12881
12875
|
);
|
|
12882
|
-
return
|
|
12883
|
-
}, Q.prototype.delete = function(
|
|
12876
|
+
return ce[this._key] = oe, this;
|
|
12877
|
+
}, Q.prototype.delete = function(ne) {
|
|
12884
12878
|
var oe = ge(
|
|
12885
|
-
|
|
12879
|
+
ne,
|
|
12886
12880
|
/*create*/
|
|
12887
12881
|
!1
|
|
12888
12882
|
);
|
|
@@ -12899,34 +12893,34 @@ var Am;
|
|
|
12899
12893
|
while (d.has($, Q));
|
|
12900
12894
|
return $[Q] = !0, Q;
|
|
12901
12895
|
}
|
|
12902
|
-
function ge(Q,
|
|
12896
|
+
function ge(Q, ne) {
|
|
12903
12897
|
if (!i.call(Q, T)) {
|
|
12904
|
-
if (!
|
|
12898
|
+
if (!ne)
|
|
12905
12899
|
return;
|
|
12906
12900
|
Object.defineProperty(Q, T, { value: d.create() });
|
|
12907
12901
|
}
|
|
12908
12902
|
return Q[T];
|
|
12909
12903
|
}
|
|
12910
|
-
function ia(Q,
|
|
12911
|
-
for (var oe = 0; oe <
|
|
12904
|
+
function ia(Q, ne) {
|
|
12905
|
+
for (var oe = 0; oe < ne; ++oe)
|
|
12912
12906
|
Q[oe] = Math.random() * 255 | 0;
|
|
12913
12907
|
return Q;
|
|
12914
12908
|
}
|
|
12915
12909
|
function Qe(Q) {
|
|
12916
12910
|
if (typeof Uint8Array == "function") {
|
|
12917
|
-
var
|
|
12918
|
-
return typeof crypto < "u" ? crypto.getRandomValues(
|
|
12911
|
+
var ne = new Uint8Array(Q);
|
|
12912
|
+
return typeof crypto < "u" ? crypto.getRandomValues(ne) : typeof msCrypto < "u" ? msCrypto.getRandomValues(ne) : ia(ne, Q), ne;
|
|
12919
12913
|
}
|
|
12920
12914
|
return ia(new Array(Q), Q);
|
|
12921
12915
|
}
|
|
12922
12916
|
function Ie() {
|
|
12923
12917
|
var Q = Qe(A);
|
|
12924
12918
|
Q[6] = Q[6] & 79 | 64, Q[8] = Q[8] & 191 | 128;
|
|
12925
|
-
for (var
|
|
12926
|
-
var
|
|
12927
|
-
(oe === 4 || oe === 6 || oe === 8) && (
|
|
12919
|
+
for (var ne = "", oe = 0; oe < A; ++oe) {
|
|
12920
|
+
var ce = Q[oe];
|
|
12921
|
+
(oe === 4 || oe === 6 || oe === 8) && (ne += "-"), ce < 16 && (ne += "0"), ne += ce.toString(16).toLowerCase();
|
|
12928
12922
|
}
|
|
12929
|
-
return
|
|
12923
|
+
return ne;
|
|
12930
12924
|
}
|
|
12931
12925
|
}
|
|
12932
12926
|
function bc(A) {
|
|
@@ -13637,7 +13631,7 @@ class Tf extends ar {
|
|
|
13637
13631
|
}
|
|
13638
13632
|
}
|
|
13639
13633
|
Tf.NAME = "lengthBlock";
|
|
13640
|
-
const
|
|
13634
|
+
const re = {};
|
|
13641
13635
|
class sa extends ar {
|
|
13642
13636
|
constructor({ name: e = _a, optional: a = !1, primitiveSchema: i, ...r } = {}, n) {
|
|
13643
13637
|
super(r), this.name = e, this.optional = a, i && (this.primitiveSchema = i), this.idBlock = new $f(r), this.lenBlock = new Tf(r), this.valueBlock = n ? new n(r) : new ya(r);
|
|
@@ -13688,7 +13682,7 @@ class sa extends ar {
|
|
|
13688
13682
|
}
|
|
13689
13683
|
sa.NAME = "BaseBlock";
|
|
13690
13684
|
function Nf(t) {
|
|
13691
|
-
if (t instanceof
|
|
13685
|
+
if (t instanceof re.Constructed)
|
|
13692
13686
|
for (const e of t.valueBlock.value)
|
|
13693
13687
|
Nf(e) && (t.lenBlock.isIndefiniteForm = !0);
|
|
13694
13688
|
return !!t.lenBlock.isIndefiniteForm;
|
|
@@ -13725,7 +13719,7 @@ class Cs extends sa {
|
|
|
13725
13719
|
}
|
|
13726
13720
|
}
|
|
13727
13721
|
Pf = Cs;
|
|
13728
|
-
|
|
13722
|
+
re.Primitive = Pf;
|
|
13729
13723
|
Cs.NAME = "PRIMITIVE";
|
|
13730
13724
|
function X0(t, e) {
|
|
13731
13725
|
if (t instanceof e)
|
|
@@ -13778,37 +13772,37 @@ function Wr(t, e = 0, a = t.length) {
|
|
|
13778
13772
|
offset: -1,
|
|
13779
13773
|
result: r
|
|
13780
13774
|
};
|
|
13781
|
-
l =
|
|
13775
|
+
l = re.EndOfContent;
|
|
13782
13776
|
break;
|
|
13783
13777
|
case 1:
|
|
13784
|
-
l =
|
|
13778
|
+
l = re.Boolean;
|
|
13785
13779
|
break;
|
|
13786
13780
|
case 2:
|
|
13787
|
-
l =
|
|
13781
|
+
l = re.Integer;
|
|
13788
13782
|
break;
|
|
13789
13783
|
case 3:
|
|
13790
|
-
l =
|
|
13784
|
+
l = re.BitString;
|
|
13791
13785
|
break;
|
|
13792
13786
|
case 4:
|
|
13793
|
-
l =
|
|
13787
|
+
l = re.OctetString;
|
|
13794
13788
|
break;
|
|
13795
13789
|
case 5:
|
|
13796
|
-
l =
|
|
13790
|
+
l = re.Null;
|
|
13797
13791
|
break;
|
|
13798
13792
|
case 6:
|
|
13799
|
-
l =
|
|
13793
|
+
l = re.ObjectIdentifier;
|
|
13800
13794
|
break;
|
|
13801
13795
|
case 10:
|
|
13802
|
-
l =
|
|
13796
|
+
l = re.Enumerated;
|
|
13803
13797
|
break;
|
|
13804
13798
|
case 12:
|
|
13805
|
-
l =
|
|
13799
|
+
l = re.Utf8String;
|
|
13806
13800
|
break;
|
|
13807
13801
|
case 13:
|
|
13808
|
-
l =
|
|
13802
|
+
l = re.RelativeObjectIdentifier;
|
|
13809
13803
|
break;
|
|
13810
13804
|
case 14:
|
|
13811
|
-
l =
|
|
13805
|
+
l = re.TIME;
|
|
13812
13806
|
break;
|
|
13813
13807
|
case 15:
|
|
13814
13808
|
return r.error = "[UNIVERSAL 15] is reserved by ASN.1 standard", {
|
|
@@ -13816,64 +13810,64 @@ function Wr(t, e = 0, a = t.length) {
|
|
|
13816
13810
|
result: r
|
|
13817
13811
|
};
|
|
13818
13812
|
case 16:
|
|
13819
|
-
l =
|
|
13813
|
+
l = re.Sequence;
|
|
13820
13814
|
break;
|
|
13821
13815
|
case 17:
|
|
13822
|
-
l =
|
|
13816
|
+
l = re.Set;
|
|
13823
13817
|
break;
|
|
13824
13818
|
case 18:
|
|
13825
|
-
l =
|
|
13819
|
+
l = re.NumericString;
|
|
13826
13820
|
break;
|
|
13827
13821
|
case 19:
|
|
13828
|
-
l =
|
|
13822
|
+
l = re.PrintableString;
|
|
13829
13823
|
break;
|
|
13830
13824
|
case 20:
|
|
13831
|
-
l =
|
|
13825
|
+
l = re.TeletexString;
|
|
13832
13826
|
break;
|
|
13833
13827
|
case 21:
|
|
13834
|
-
l =
|
|
13828
|
+
l = re.VideotexString;
|
|
13835
13829
|
break;
|
|
13836
13830
|
case 22:
|
|
13837
|
-
l =
|
|
13831
|
+
l = re.IA5String;
|
|
13838
13832
|
break;
|
|
13839
13833
|
case 23:
|
|
13840
|
-
l =
|
|
13834
|
+
l = re.UTCTime;
|
|
13841
13835
|
break;
|
|
13842
13836
|
case 24:
|
|
13843
|
-
l =
|
|
13837
|
+
l = re.GeneralizedTime;
|
|
13844
13838
|
break;
|
|
13845
13839
|
case 25:
|
|
13846
|
-
l =
|
|
13840
|
+
l = re.GraphicString;
|
|
13847
13841
|
break;
|
|
13848
13842
|
case 26:
|
|
13849
|
-
l =
|
|
13843
|
+
l = re.VisibleString;
|
|
13850
13844
|
break;
|
|
13851
13845
|
case 27:
|
|
13852
|
-
l =
|
|
13846
|
+
l = re.GeneralString;
|
|
13853
13847
|
break;
|
|
13854
13848
|
case 28:
|
|
13855
|
-
l =
|
|
13849
|
+
l = re.UniversalString;
|
|
13856
13850
|
break;
|
|
13857
13851
|
case 29:
|
|
13858
|
-
l =
|
|
13852
|
+
l = re.CharacterString;
|
|
13859
13853
|
break;
|
|
13860
13854
|
case 30:
|
|
13861
|
-
l =
|
|
13855
|
+
l = re.BmpString;
|
|
13862
13856
|
break;
|
|
13863
13857
|
case 31:
|
|
13864
|
-
l =
|
|
13858
|
+
l = re.DATE;
|
|
13865
13859
|
break;
|
|
13866
13860
|
case 32:
|
|
13867
|
-
l =
|
|
13861
|
+
l = re.TimeOfDay;
|
|
13868
13862
|
break;
|
|
13869
13863
|
case 33:
|
|
13870
|
-
l =
|
|
13864
|
+
l = re.DateTime;
|
|
13871
13865
|
break;
|
|
13872
13866
|
case 34:
|
|
13873
|
-
l =
|
|
13867
|
+
l = re.Duration;
|
|
13874
13868
|
break;
|
|
13875
13869
|
default: {
|
|
13876
|
-
const c = r.idBlock.isConstructed ? new
|
|
13870
|
+
const c = r.idBlock.isConstructed ? new re.Constructed() : new re.Primitive();
|
|
13877
13871
|
c.idBlock = r.idBlock, c.lenBlock = r.lenBlock, c.warnings = r.warnings, r = c;
|
|
13878
13872
|
}
|
|
13879
13873
|
}
|
|
@@ -13882,7 +13876,7 @@ function Wr(t, e = 0, a = t.length) {
|
|
|
13882
13876
|
case 3:
|
|
13883
13877
|
case 4:
|
|
13884
13878
|
default:
|
|
13885
|
-
l = r.idBlock.isConstructed ?
|
|
13879
|
+
l = r.idBlock.isConstructed ? re.Constructed : re.Primitive;
|
|
13886
13880
|
}
|
|
13887
13881
|
return r = X0(r, l), o = r.fromBER(t, e, r.lenBlock.isIndefiniteForm ? a : r.lenBlock.length), r.valueBeforeDecodeView = t.subarray(i, i + r.blockLength), {
|
|
13888
13882
|
offset: o,
|
|
@@ -13963,7 +13957,7 @@ ${e.join(`
|
|
|
13963
13957
|
}
|
|
13964
13958
|
}
|
|
13965
13959
|
Bf = ja;
|
|
13966
|
-
|
|
13960
|
+
re.Constructed = Bf;
|
|
13967
13961
|
ja.NAME = "CONSTRUCTED";
|
|
13968
13962
|
class Uf extends ya {
|
|
13969
13963
|
fromBER(e, a, i) {
|
|
@@ -13981,7 +13975,7 @@ class Fu extends sa {
|
|
|
13981
13975
|
}
|
|
13982
13976
|
}
|
|
13983
13977
|
Lf = Fu;
|
|
13984
|
-
|
|
13978
|
+
re.EndOfContent = Lf;
|
|
13985
13979
|
Fu.NAME = cs;
|
|
13986
13980
|
var Df;
|
|
13987
13981
|
class Mi extends sa {
|
|
@@ -14004,7 +13998,7 @@ class Mi extends sa {
|
|
|
14004
13998
|
}
|
|
14005
13999
|
}
|
|
14006
14000
|
Df = Mi;
|
|
14007
|
-
|
|
14001
|
+
re.Null = Df;
|
|
14008
14002
|
Mi.NAME = "NULL";
|
|
14009
14003
|
class Vf extends vt(ya) {
|
|
14010
14004
|
constructor({ value: e, ...a } = {}) {
|
|
@@ -14050,7 +14044,7 @@ let ql = class extends sa {
|
|
|
14050
14044
|
}
|
|
14051
14045
|
};
|
|
14052
14046
|
Mf = ql;
|
|
14053
|
-
|
|
14047
|
+
re.Boolean = Mf;
|
|
14054
14048
|
ql.NAME = "BOOLEAN";
|
|
14055
14049
|
class Hf extends vt(ii) {
|
|
14056
14050
|
constructor({ isConstructed: e = !1, ...a } = {}) {
|
|
@@ -14130,7 +14124,7 @@ let $i = class Kf extends sa {
|
|
|
14130
14124
|
}
|
|
14131
14125
|
};
|
|
14132
14126
|
Zf = $i;
|
|
14133
|
-
|
|
14127
|
+
re.OctetString = Zf;
|
|
14134
14128
|
$i.NAME = Of;
|
|
14135
14129
|
class Ff extends vt(ii) {
|
|
14136
14130
|
constructor({ unusedBits: e = 0, isConstructed: a = !1, ...i } = {}) {
|
|
@@ -14228,7 +14222,7 @@ let Ti = class extends sa {
|
|
|
14228
14222
|
}
|
|
14229
14223
|
};
|
|
14230
14224
|
Wf = Ti;
|
|
14231
|
-
|
|
14225
|
+
re.BitString = Wf;
|
|
14232
14226
|
Ti.NAME = Cf;
|
|
14233
14227
|
var Gf;
|
|
14234
14228
|
function e_(t, e) {
|
|
@@ -14409,7 +14403,7 @@ class pt extends sa {
|
|
|
14409
14403
|
}
|
|
14410
14404
|
}
|
|
14411
14405
|
Jf = pt;
|
|
14412
|
-
|
|
14406
|
+
re.Integer = Jf;
|
|
14413
14407
|
pt.NAME = "INTEGER";
|
|
14414
14408
|
var Yf;
|
|
14415
14409
|
class Sl extends pt {
|
|
@@ -14418,7 +14412,7 @@ class Sl extends pt {
|
|
|
14418
14412
|
}
|
|
14419
14413
|
}
|
|
14420
14414
|
Yf = Sl;
|
|
14421
|
-
|
|
14415
|
+
re.Enumerated = Yf;
|
|
14422
14416
|
Sl.NAME = "ENUMERATED";
|
|
14423
14417
|
class od extends vt(ya) {
|
|
14424
14418
|
constructor({ valueDec: e = -1, isFirstSid: a = !1, ...i } = {}) {
|
|
@@ -14593,7 +14587,7 @@ class Al extends sa {
|
|
|
14593
14587
|
}
|
|
14594
14588
|
}
|
|
14595
14589
|
Qf = Al;
|
|
14596
|
-
|
|
14590
|
+
re.ObjectIdentifier = Qf;
|
|
14597
14591
|
Al.NAME = "OBJECT IDENTIFIER";
|
|
14598
14592
|
class ld extends vt(ar) {
|
|
14599
14593
|
constructor({ valueDec: e = 0, ...a } = {}) {
|
|
@@ -14726,7 +14720,7 @@ class Gu extends sa {
|
|
|
14726
14720
|
}
|
|
14727
14721
|
}
|
|
14728
14722
|
ab = Gu;
|
|
14729
|
-
|
|
14723
|
+
re.RelativeObjectIdentifier = ab;
|
|
14730
14724
|
Gu.NAME = "RelativeObjectIdentifier";
|
|
14731
14725
|
var tb;
|
|
14732
14726
|
class $t extends ja {
|
|
@@ -14735,7 +14729,7 @@ class $t extends ja {
|
|
|
14735
14729
|
}
|
|
14736
14730
|
}
|
|
14737
14731
|
tb = $t;
|
|
14738
|
-
|
|
14732
|
+
re.Sequence = tb;
|
|
14739
14733
|
$t.NAME = "SEQUENCE";
|
|
14740
14734
|
var ib;
|
|
14741
14735
|
let Tt = class extends ja {
|
|
@@ -14744,7 +14738,7 @@ let Tt = class extends ja {
|
|
|
14744
14738
|
}
|
|
14745
14739
|
};
|
|
14746
14740
|
ib = Tt;
|
|
14747
|
-
|
|
14741
|
+
re.Set = ib;
|
|
14748
14742
|
Tt.NAME = "SET";
|
|
14749
14743
|
class rb extends vt(ya) {
|
|
14750
14744
|
constructor({ ...e } = {}) {
|
|
@@ -14797,7 +14791,7 @@ class Ht extends sb {
|
|
|
14797
14791
|
}
|
|
14798
14792
|
}
|
|
14799
14793
|
ob = Ht;
|
|
14800
|
-
|
|
14794
|
+
re.Utf8String = ob;
|
|
14801
14795
|
Ht.NAME = "UTF8String";
|
|
14802
14796
|
class lb extends Ca {
|
|
14803
14797
|
fromBuffer(e) {
|
|
@@ -14815,7 +14809,7 @@ class El extends lb {
|
|
|
14815
14809
|
}
|
|
14816
14810
|
}
|
|
14817
14811
|
cb = El;
|
|
14818
|
-
|
|
14812
|
+
re.BmpString = cb;
|
|
14819
14813
|
El.NAME = "BMPString";
|
|
14820
14814
|
class db extends Ca {
|
|
14821
14815
|
fromBuffer(e) {
|
|
@@ -14845,7 +14839,7 @@ class Il extends db {
|
|
|
14845
14839
|
}
|
|
14846
14840
|
}
|
|
14847
14841
|
ub = Il;
|
|
14848
|
-
|
|
14842
|
+
re.UniversalString = ub;
|
|
14849
14843
|
Il.NAME = "UniversalString";
|
|
14850
14844
|
var hb;
|
|
14851
14845
|
class Ol extends Ca {
|
|
@@ -14854,7 +14848,7 @@ class Ol extends Ca {
|
|
|
14854
14848
|
}
|
|
14855
14849
|
}
|
|
14856
14850
|
hb = Ol;
|
|
14857
|
-
|
|
14851
|
+
re.NumericString = hb;
|
|
14858
14852
|
Ol.NAME = "NumericString";
|
|
14859
14853
|
var mb;
|
|
14860
14854
|
class Cl extends Ca {
|
|
@@ -14863,7 +14857,7 @@ class Cl extends Ca {
|
|
|
14863
14857
|
}
|
|
14864
14858
|
}
|
|
14865
14859
|
mb = Cl;
|
|
14866
|
-
|
|
14860
|
+
re.PrintableString = mb;
|
|
14867
14861
|
Cl.NAME = "PrintableString";
|
|
14868
14862
|
var pb;
|
|
14869
14863
|
class $l extends Ca {
|
|
@@ -14872,7 +14866,7 @@ class $l extends Ca {
|
|
|
14872
14866
|
}
|
|
14873
14867
|
}
|
|
14874
14868
|
pb = $l;
|
|
14875
|
-
|
|
14869
|
+
re.TeletexString = pb;
|
|
14876
14870
|
$l.NAME = "TeletexString";
|
|
14877
14871
|
var gb;
|
|
14878
14872
|
class Tl extends Ca {
|
|
@@ -14881,7 +14875,7 @@ class Tl extends Ca {
|
|
|
14881
14875
|
}
|
|
14882
14876
|
}
|
|
14883
14877
|
gb = Tl;
|
|
14884
|
-
|
|
14878
|
+
re.VideotexString = gb;
|
|
14885
14879
|
Tl.NAME = "VideotexString";
|
|
14886
14880
|
var fb;
|
|
14887
14881
|
class Nl extends Ca {
|
|
@@ -14890,7 +14884,7 @@ class Nl extends Ca {
|
|
|
14890
14884
|
}
|
|
14891
14885
|
}
|
|
14892
14886
|
fb = Nl;
|
|
14893
|
-
|
|
14887
|
+
re.IA5String = fb;
|
|
14894
14888
|
Nl.NAME = "IA5String";
|
|
14895
14889
|
var bb;
|
|
14896
14890
|
class Rl extends Ca {
|
|
@@ -14899,7 +14893,7 @@ class Rl extends Ca {
|
|
|
14899
14893
|
}
|
|
14900
14894
|
}
|
|
14901
14895
|
bb = Rl;
|
|
14902
|
-
|
|
14896
|
+
re.GraphicString = bb;
|
|
14903
14897
|
Rl.NAME = "GraphicString";
|
|
14904
14898
|
var yb;
|
|
14905
14899
|
class $s extends Ca {
|
|
@@ -14908,7 +14902,7 @@ class $s extends Ca {
|
|
|
14908
14902
|
}
|
|
14909
14903
|
}
|
|
14910
14904
|
yb = $s;
|
|
14911
|
-
|
|
14905
|
+
re.VisibleString = yb;
|
|
14912
14906
|
$s.NAME = "VisibleString";
|
|
14913
14907
|
var kb;
|
|
14914
14908
|
class Pl extends Ca {
|
|
@@ -14917,7 +14911,7 @@ class Pl extends Ca {
|
|
|
14917
14911
|
}
|
|
14918
14912
|
}
|
|
14919
14913
|
kb = Pl;
|
|
14920
|
-
|
|
14914
|
+
re.GeneralString = kb;
|
|
14921
14915
|
Pl.NAME = "GeneralString";
|
|
14922
14916
|
var vb;
|
|
14923
14917
|
class Bl extends Ca {
|
|
@@ -14926,7 +14920,7 @@ class Bl extends Ca {
|
|
|
14926
14920
|
}
|
|
14927
14921
|
}
|
|
14928
14922
|
vb = Bl;
|
|
14929
|
-
|
|
14923
|
+
re.CharacterString = vb;
|
|
14930
14924
|
Bl.NAME = "CharacterString";
|
|
14931
14925
|
var wb;
|
|
14932
14926
|
class Ts extends $s {
|
|
@@ -14985,7 +14979,7 @@ class Ts extends $s {
|
|
|
14985
14979
|
}
|
|
14986
14980
|
}
|
|
14987
14981
|
wb = Ts;
|
|
14988
|
-
|
|
14982
|
+
re.UTCTime = wb;
|
|
14989
14983
|
Ts.NAME = "UTCTime";
|
|
14990
14984
|
var _b;
|
|
14991
14985
|
class Ul extends Ts {
|
|
@@ -15109,7 +15103,7 @@ class Ul extends Ts {
|
|
|
15109
15103
|
}
|
|
15110
15104
|
}
|
|
15111
15105
|
_b = Ul;
|
|
15112
|
-
|
|
15106
|
+
re.GeneralizedTime = _b;
|
|
15113
15107
|
Ul.NAME = "GeneralizedTime";
|
|
15114
15108
|
var xb;
|
|
15115
15109
|
class Ju extends Ht {
|
|
@@ -15118,7 +15112,7 @@ class Ju extends Ht {
|
|
|
15118
15112
|
}
|
|
15119
15113
|
}
|
|
15120
15114
|
xb = Ju;
|
|
15121
|
-
|
|
15115
|
+
re.DATE = xb;
|
|
15122
15116
|
Ju.NAME = "DATE";
|
|
15123
15117
|
var jb;
|
|
15124
15118
|
class Yu extends Ht {
|
|
@@ -15127,7 +15121,7 @@ class Yu extends Ht {
|
|
|
15127
15121
|
}
|
|
15128
15122
|
}
|
|
15129
15123
|
jb = Yu;
|
|
15130
|
-
|
|
15124
|
+
re.TimeOfDay = jb;
|
|
15131
15125
|
Yu.NAME = "TimeOfDay";
|
|
15132
15126
|
var zb;
|
|
15133
15127
|
class Xu extends Ht {
|
|
@@ -15136,7 +15130,7 @@ class Xu extends Ht {
|
|
|
15136
15130
|
}
|
|
15137
15131
|
}
|
|
15138
15132
|
zb = Xu;
|
|
15139
|
-
|
|
15133
|
+
re.DateTime = zb;
|
|
15140
15134
|
Xu.NAME = "DateTime";
|
|
15141
15135
|
var qb;
|
|
15142
15136
|
class Qu extends Ht {
|
|
@@ -15145,7 +15139,7 @@ class Qu extends Ht {
|
|
|
15145
15139
|
}
|
|
15146
15140
|
}
|
|
15147
15141
|
qb = Qu;
|
|
15148
|
-
|
|
15142
|
+
re.Duration = qb;
|
|
15149
15143
|
Qu.NAME = "Duration";
|
|
15150
15144
|
var Sb;
|
|
15151
15145
|
class eh extends Ht {
|
|
@@ -15154,7 +15148,7 @@ class eh extends Ht {
|
|
|
15154
15148
|
}
|
|
15155
15149
|
}
|
|
15156
15150
|
Sb = eh;
|
|
15157
|
-
|
|
15151
|
+
re.TIME = Sb;
|
|
15158
15152
|
eh.NAME = "TIME";
|
|
15159
15153
|
class Hi {
|
|
15160
15154
|
constructor({ name: e = _a, optional: a = !1 } = {}) {
|
|
@@ -15312,7 +15306,7 @@ function ji(t, e, a) {
|
|
|
15312
15306
|
result: t
|
|
15313
15307
|
};
|
|
15314
15308
|
}
|
|
15315
|
-
if (a.name && (a.name = a.name.replace(/^\s+|\s+$/g, _a), a.name && (t[a.name] = e)), a instanceof
|
|
15309
|
+
if (a.name && (a.name = a.name.replace(/^\s+|\s+$/g, _a), a.name && (t[a.name] = e)), a instanceof re.Constructed) {
|
|
15316
15310
|
let n = 0, s = {
|
|
15317
15311
|
verified: !1,
|
|
15318
15312
|
result: {
|
|
@@ -16018,10 +16012,10 @@ var Ob = { exports: {} };
|
|
|
16018
16012
|
for (B = b - k, I = ":"; B--; )
|
|
16019
16013
|
I += "0:";
|
|
16020
16014
|
return p = p.replace("::", I), p[0] === ":" && (p = p.slice(1)), p[p.length - 1] === ":" && (p = p.slice(0, -1)), b = function() {
|
|
16021
|
-
const
|
|
16022
|
-
for (let K = 0; K <
|
|
16023
|
-
|
|
16024
|
-
return
|
|
16015
|
+
const ie = p.split(":"), le = [];
|
|
16016
|
+
for (let K = 0; K < ie.length; K++)
|
|
16017
|
+
le.push(parseInt(ie[K], 16));
|
|
16018
|
+
return le;
|
|
16025
16019
|
}(), {
|
|
16026
16020
|
parts: b,
|
|
16027
16021
|
zoneId: C
|
|
@@ -21388,7 +21382,7 @@ async function T2(t) {
|
|
|
21388
21382
|
return xu(await wy(n));
|
|
21389
21383
|
}
|
|
21390
21384
|
const N2 = 1e3 * 60 * 60 * 24, R2 = new We().openapi(
|
|
21391
|
-
|
|
21385
|
+
pe({
|
|
21392
21386
|
tags: ["keys"],
|
|
21393
21387
|
method: "get",
|
|
21394
21388
|
path: "/signing",
|
|
@@ -21418,7 +21412,7 @@ const N2 = 1e3 * 60 * 60 * 24, R2 = new We().openapi(
|
|
|
21418
21412
|
return t.json(a);
|
|
21419
21413
|
}
|
|
21420
21414
|
).openapi(
|
|
21421
|
-
|
|
21415
|
+
pe({
|
|
21422
21416
|
tags: ["keys"],
|
|
21423
21417
|
method: "get",
|
|
21424
21418
|
path: "/signing/{kid}",
|
|
@@ -21453,7 +21447,7 @@ const N2 = 1e3 * 60 * 60 * 24, R2 = new We().openapi(
|
|
|
21453
21447
|
return t.json(i);
|
|
21454
21448
|
}
|
|
21455
21449
|
).openapi(
|
|
21456
|
-
|
|
21450
|
+
pe({
|
|
21457
21451
|
tags: ["keys"],
|
|
21458
21452
|
method: "post",
|
|
21459
21453
|
path: "/signing/rotate",
|
|
@@ -21485,7 +21479,7 @@ const N2 = 1e3 * 60 * 60 * 24, R2 = new We().openapi(
|
|
|
21485
21479
|
return await t.env.data.keys.create(a), t.text("OK", { status: 201 });
|
|
21486
21480
|
}
|
|
21487
21481
|
).openapi(
|
|
21488
|
-
|
|
21482
|
+
pe({
|
|
21489
21483
|
tags: ["keys"],
|
|
21490
21484
|
method: "put",
|
|
21491
21485
|
path: "/signing/{kid}/revoke",
|
|
@@ -21520,7 +21514,7 @@ const N2 = 1e3 * 60 * 60 * 24, R2 = new We().openapi(
|
|
|
21520
21514
|
return await t.env.data.keys.create(i), t.text("OK");
|
|
21521
21515
|
}
|
|
21522
21516
|
), P2 = new We().openapi(
|
|
21523
|
-
|
|
21517
|
+
pe({
|
|
21524
21518
|
tags: ["users"],
|
|
21525
21519
|
method: "get",
|
|
21526
21520
|
path: "/",
|
|
@@ -21555,7 +21549,7 @@ const N2 = 1e3 * 60 * 60 * 24, R2 = new We().openapi(
|
|
|
21555
21549
|
), B2 = er.extend({
|
|
21556
21550
|
clients: f.array(pr)
|
|
21557
21551
|
}), U2 = new We().openapi(
|
|
21558
|
-
|
|
21552
|
+
pe({
|
|
21559
21553
|
tags: ["clients"],
|
|
21560
21554
|
method: "get",
|
|
21561
21555
|
path: "/",
|
|
@@ -21600,7 +21594,7 @@ const N2 = 1e3 * 60 * 60 * 24, R2 = new We().openapi(
|
|
|
21600
21594
|
}) : t.json(l);
|
|
21601
21595
|
}
|
|
21602
21596
|
).openapi(
|
|
21603
|
-
|
|
21597
|
+
pe({
|
|
21604
21598
|
tags: ["clients"],
|
|
21605
21599
|
method: "get",
|
|
21606
21600
|
path: "/{id}",
|
|
@@ -21639,7 +21633,7 @@ const N2 = 1e3 * 60 * 60 * 24, R2 = new We().openapi(
|
|
|
21639
21633
|
return t.json(r);
|
|
21640
21634
|
}
|
|
21641
21635
|
).openapi(
|
|
21642
|
-
|
|
21636
|
+
pe({
|
|
21643
21637
|
tags: ["clients"],
|
|
21644
21638
|
method: "delete",
|
|
21645
21639
|
path: "/{id}",
|
|
@@ -21669,7 +21663,7 @@ const N2 = 1e3 * 60 * 60 * 24, R2 = new We().openapi(
|
|
|
21669
21663
|
return t.text("OK");
|
|
21670
21664
|
}
|
|
21671
21665
|
).openapi(
|
|
21672
|
-
|
|
21666
|
+
pe({
|
|
21673
21667
|
tags: ["clients"],
|
|
21674
21668
|
method: "patch",
|
|
21675
21669
|
path: "/{id}",
|
|
@@ -21713,7 +21707,7 @@ const N2 = 1e3 * 60 * 60 * 24, R2 = new We().openapi(
|
|
|
21713
21707
|
return t.json(n);
|
|
21714
21708
|
}
|
|
21715
21709
|
).openapi(
|
|
21716
|
-
|
|
21710
|
+
pe({
|
|
21717
21711
|
tags: ["clients"],
|
|
21718
21712
|
method: "post",
|
|
21719
21713
|
path: "/",
|
|
@@ -21773,7 +21767,7 @@ Uu.extend({
|
|
|
21773
21767
|
const L2 = er.extend({
|
|
21774
21768
|
tenants: f.array(Sn)
|
|
21775
21769
|
}), D2 = new We().openapi(
|
|
21776
|
-
|
|
21770
|
+
pe({
|
|
21777
21771
|
tags: ["tenants"],
|
|
21778
21772
|
method: "get",
|
|
21779
21773
|
path: "/",
|
|
@@ -21807,7 +21801,7 @@ const L2 = er.extend({
|
|
|
21807
21801
|
return i ? t.json(s) : t.json(s.tenants);
|
|
21808
21802
|
}
|
|
21809
21803
|
).openapi(
|
|
21810
|
-
|
|
21804
|
+
pe({
|
|
21811
21805
|
tags: ["tenants"],
|
|
21812
21806
|
method: "get",
|
|
21813
21807
|
path: "/{id}",
|
|
@@ -21839,7 +21833,7 @@ const L2 = er.extend({
|
|
|
21839
21833
|
return t.json(a);
|
|
21840
21834
|
}
|
|
21841
21835
|
).openapi(
|
|
21842
|
-
|
|
21836
|
+
pe({
|
|
21843
21837
|
tags: ["tenants"],
|
|
21844
21838
|
method: "delete",
|
|
21845
21839
|
path: "/{id}",
|
|
@@ -21864,7 +21858,7 @@ const L2 = er.extend({
|
|
|
21864
21858
|
return await t.env.data.tenants.remove(e), t.text("OK");
|
|
21865
21859
|
}
|
|
21866
21860
|
).openapi(
|
|
21867
|
-
|
|
21861
|
+
pe({
|
|
21868
21862
|
tags: ["tenants"],
|
|
21869
21863
|
method: "patch",
|
|
21870
21864
|
path: "/{id}",
|
|
@@ -21896,7 +21890,7 @@ const L2 = er.extend({
|
|
|
21896
21890
|
return await t.env.data.tenants.update(e, a), t.text("OK");
|
|
21897
21891
|
}
|
|
21898
21892
|
).openapi(
|
|
21899
|
-
|
|
21893
|
+
pe({
|
|
21900
21894
|
tags: ["tenants"],
|
|
21901
21895
|
method: "post",
|
|
21902
21896
|
path: "/",
|
|
@@ -21932,7 +21926,7 @@ const L2 = er.extend({
|
|
|
21932
21926
|
), V2 = er.extend({
|
|
21933
21927
|
logs: f.array(rd)
|
|
21934
21928
|
}), M2 = new We().openapi(
|
|
21935
|
-
|
|
21929
|
+
pe({
|
|
21936
21930
|
tags: ["logs"],
|
|
21937
21931
|
method: "get",
|
|
21938
21932
|
path: "/",
|
|
@@ -21969,7 +21963,7 @@ const L2 = er.extend({
|
|
|
21969
21963
|
return i ? t.json(o) : t.json(o.logs);
|
|
21970
21964
|
}
|
|
21971
21965
|
).openapi(
|
|
21972
|
-
|
|
21966
|
+
pe({
|
|
21973
21967
|
tags: ["logs"],
|
|
21974
21968
|
method: "get",
|
|
21975
21969
|
path: "/{id}",
|
|
@@ -22006,7 +22000,7 @@ const L2 = er.extend({
|
|
|
22006
22000
|
), H2 = er.extend({
|
|
22007
22001
|
hooks: f.array(kn)
|
|
22008
22002
|
}), Z2 = new We().openapi(
|
|
22009
|
-
|
|
22003
|
+
pe({
|
|
22010
22004
|
tags: ["hooks"],
|
|
22011
22005
|
method: "get",
|
|
22012
22006
|
path: "/",
|
|
@@ -22043,7 +22037,7 @@ const L2 = er.extend({
|
|
|
22043
22037
|
return r ? t.json(o) : t.json(o.hooks);
|
|
22044
22038
|
}
|
|
22045
22039
|
).openapi(
|
|
22046
|
-
|
|
22040
|
+
pe({
|
|
22047
22041
|
tags: ["hooks"],
|
|
22048
22042
|
method: "post",
|
|
22049
22043
|
path: "/",
|
|
@@ -22080,7 +22074,7 @@ const L2 = er.extend({
|
|
|
22080
22074
|
return t.json(i, { status: 201 });
|
|
22081
22075
|
}
|
|
22082
22076
|
).openapi(
|
|
22083
|
-
|
|
22077
|
+
pe({
|
|
22084
22078
|
tags: ["hooks"],
|
|
22085
22079
|
method: "patch",
|
|
22086
22080
|
path: "/{hook_id}",
|
|
@@ -22127,7 +22121,7 @@ const L2 = er.extend({
|
|
|
22127
22121
|
return t.json(r);
|
|
22128
22122
|
}
|
|
22129
22123
|
).openapi(
|
|
22130
|
-
|
|
22124
|
+
pe({
|
|
22131
22125
|
tags: ["hooks"],
|
|
22132
22126
|
method: "get",
|
|
22133
22127
|
path: "/{hook_id}",
|
|
@@ -22165,7 +22159,7 @@ const L2 = er.extend({
|
|
|
22165
22159
|
return t.json(i);
|
|
22166
22160
|
}
|
|
22167
22161
|
).openapi(
|
|
22168
|
-
|
|
22162
|
+
pe({
|
|
22169
22163
|
tags: ["hooks"],
|
|
22170
22164
|
method: "delete",
|
|
22171
22165
|
path: "/{hook_id}",
|
|
@@ -22197,7 +22191,7 @@ const L2 = er.extend({
|
|
|
22197
22191
|
), K2 = er.extend({
|
|
22198
22192
|
connections: f.array(gr)
|
|
22199
22193
|
}), F2 = new We().openapi(
|
|
22200
|
-
|
|
22194
|
+
pe({
|
|
22201
22195
|
tags: ["connections"],
|
|
22202
22196
|
method: "get",
|
|
22203
22197
|
path: "/",
|
|
@@ -22243,7 +22237,7 @@ const L2 = er.extend({
|
|
|
22243
22237
|
return r ? t.json(o) : t.json(o.connections);
|
|
22244
22238
|
}
|
|
22245
22239
|
).openapi(
|
|
22246
|
-
|
|
22240
|
+
pe({
|
|
22247
22241
|
tags: ["connections"],
|
|
22248
22242
|
method: "get",
|
|
22249
22243
|
path: "/{id}",
|
|
@@ -22278,7 +22272,7 @@ const L2 = er.extend({
|
|
|
22278
22272
|
return t.json(i);
|
|
22279
22273
|
}
|
|
22280
22274
|
).openapi(
|
|
22281
|
-
|
|
22275
|
+
pe({
|
|
22282
22276
|
tags: ["connections"],
|
|
22283
22277
|
method: "delete",
|
|
22284
22278
|
path: "/{id}",
|
|
@@ -22310,7 +22304,7 @@ const L2 = er.extend({
|
|
|
22310
22304
|
return t.text("OK");
|
|
22311
22305
|
}
|
|
22312
22306
|
).openapi(
|
|
22313
|
-
|
|
22307
|
+
pe({
|
|
22314
22308
|
tags: ["connections"],
|
|
22315
22309
|
method: "patch",
|
|
22316
22310
|
path: "/{id}",
|
|
@@ -22359,7 +22353,7 @@ const L2 = er.extend({
|
|
|
22359
22353
|
return t.json(n);
|
|
22360
22354
|
}
|
|
22361
22355
|
).openapi(
|
|
22362
|
-
|
|
22356
|
+
pe({
|
|
22363
22357
|
tags: ["connections"],
|
|
22364
22358
|
method: "post",
|
|
22365
22359
|
path: "/",
|
|
@@ -22396,7 +22390,7 @@ const L2 = er.extend({
|
|
|
22396
22390
|
return t.json(i, { status: 201 });
|
|
22397
22391
|
}
|
|
22398
22392
|
), W2 = new We().openapi(
|
|
22399
|
-
|
|
22393
|
+
pe({
|
|
22400
22394
|
tags: ["prompts"],
|
|
22401
22395
|
method: "get",
|
|
22402
22396
|
path: "/",
|
|
@@ -22426,7 +22420,7 @@ const L2 = er.extend({
|
|
|
22426
22420
|
return a ? t.json(a) : t.json(jc.parse({}));
|
|
22427
22421
|
}
|
|
22428
22422
|
).openapi(
|
|
22429
|
-
|
|
22423
|
+
pe({
|
|
22430
22424
|
tags: ["prompts"],
|
|
22431
22425
|
method: "patch",
|
|
22432
22426
|
path: "/",
|
|
@@ -22552,7 +22546,7 @@ function xy(t) {
|
|
|
22552
22546
|
};
|
|
22553
22547
|
}
|
|
22554
22548
|
const X2 = new We().openapi(
|
|
22555
|
-
|
|
22549
|
+
pe({
|
|
22556
22550
|
tags: ["emails"],
|
|
22557
22551
|
method: "get",
|
|
22558
22552
|
path: "/",
|
|
@@ -22584,7 +22578,7 @@ const X2 = new We().openapi(
|
|
|
22584
22578
|
return t.json(a);
|
|
22585
22579
|
}
|
|
22586
22580
|
).openapi(
|
|
22587
|
-
|
|
22581
|
+
pe({
|
|
22588
22582
|
tags: ["emails"],
|
|
22589
22583
|
method: "post",
|
|
22590
22584
|
path: "/",
|
|
@@ -22616,7 +22610,7 @@ const X2 = new We().openapi(
|
|
|
22616
22610
|
return await t.env.data.emailProviders.create(e, a), t.text("OK", { status: 201 });
|
|
22617
22611
|
}
|
|
22618
22612
|
).openapi(
|
|
22619
|
-
|
|
22613
|
+
pe({
|
|
22620
22614
|
tags: ["emails"],
|
|
22621
22615
|
method: "patch",
|
|
22622
22616
|
path: "/",
|
|
@@ -22661,7 +22655,7 @@ function Q2() {
|
|
|
22661
22655
|
}), e;
|
|
22662
22656
|
}
|
|
22663
22657
|
const io = 60 * 5, jy = 30 * 24 * 60 * 60, fl = 24 * 60 * 60, ex = "auth-token", ng = 30 * 60 * 1e3, ax = 5 * 60, sg = 5 * 60, tx = new We().openapi(
|
|
22664
|
-
|
|
22658
|
+
pe({
|
|
22665
22659
|
tags: ["well known"],
|
|
22666
22660
|
method: "get",
|
|
22667
22661
|
path: "/jwks.json",
|
|
@@ -22699,7 +22693,7 @@ const io = 60 * 5, jy = 30 * 24 * 60 * 60, fl = 24 * 60 * 60, ex = "auth-token",
|
|
|
22699
22693
|
);
|
|
22700
22694
|
}
|
|
22701
22695
|
).openapi(
|
|
22702
|
-
|
|
22696
|
+
pe({
|
|
22703
22697
|
tags: ["well known"],
|
|
22704
22698
|
method: "get",
|
|
22705
22699
|
path: "/openid-configuration",
|
|
@@ -23247,7 +23241,7 @@ function gx(t) {
|
|
|
23247
23241
|
return {};
|
|
23248
23242
|
}
|
|
23249
23243
|
const fx = new We().openapi(
|
|
23250
|
-
|
|
23244
|
+
pe({
|
|
23251
23245
|
tags: ["oauth2"],
|
|
23252
23246
|
method: "post",
|
|
23253
23247
|
path: "/",
|
|
@@ -23327,7 +23321,7 @@ function bx(t, e) {
|
|
|
23327
23321
|
return t.hostname === e.hostname;
|
|
23328
23322
|
}
|
|
23329
23323
|
const yx = new We().openapi(
|
|
23330
|
-
|
|
23324
|
+
pe({
|
|
23331
23325
|
tags: ["oauth2"],
|
|
23332
23326
|
method: "get",
|
|
23333
23327
|
path: "/",
|
|
@@ -23399,7 +23393,7 @@ const yx = new We().openapi(
|
|
|
23399
23393
|
given_name: f.string().optional(),
|
|
23400
23394
|
email_verified: f.boolean()
|
|
23401
23395
|
}), kx = new We().openapi(
|
|
23402
|
-
|
|
23396
|
+
pe({
|
|
23403
23397
|
tags: ["oauth2"],
|
|
23404
23398
|
method: "get",
|
|
23405
23399
|
path: "/",
|
|
@@ -23723,7 +23717,7 @@ Ny = {
|
|
|
23723
23717
|
return e;
|
|
23724
23718
|
},
|
|
23725
23719
|
most_guessable_match_sequence: function(t, e, a) {
|
|
23726
|
-
var i, r, n, s, o, l, c, d, m, y, v, p, b, k, x, C, I, B,
|
|
23720
|
+
var i, r, n, s, o, l, c, d, m, y, v, p, b, k, x, C, I, B, ie, le, K, he, _e;
|
|
23727
23721
|
for (a == null && (a = !1), p = t.length, v = function() {
|
|
23728
23722
|
var X, q, z;
|
|
23729
23723
|
for (z = [], X = 0, q = p; 0 <= q ? X < q : X > q; 0 <= q ? ++X : --X)
|
|
@@ -23754,7 +23748,7 @@ Ny = {
|
|
|
23754
23748
|
q.push({});
|
|
23755
23749
|
return q;
|
|
23756
23750
|
}()
|
|
23757
|
-
},
|
|
23751
|
+
}, he = /* @__PURE__ */ function(X) {
|
|
23758
23752
|
return function(q, z) {
|
|
23759
23753
|
var S, _, w, O, N, F;
|
|
23760
23754
|
O = q.j, N = X.estimate_guesses(q, t), z > 1 && (N *= k.pi[q.i - 1][z - 1]), w = X.factorial(z) * N, a || (w += Math.pow(Ty, z - 1)), F = k.g[O];
|
|
@@ -23766,12 +23760,12 @@ Ny = {
|
|
|
23766
23760
|
}(this), i = /* @__PURE__ */ function(X) {
|
|
23767
23761
|
return function(q) {
|
|
23768
23762
|
var z, S, _, w, O, N;
|
|
23769
|
-
for (m = y(0, q),
|
|
23763
|
+
for (m = y(0, q), he(m, 1), O = [], z = N = 1, w = q; 1 <= w ? N <= w : N >= w; z = 1 <= w ? ++N : --N)
|
|
23770
23764
|
m = y(z, q), O.push(function() {
|
|
23771
23765
|
var F, W;
|
|
23772
23766
|
F = k.m[z - 1], W = [];
|
|
23773
23767
|
for (S in F)
|
|
23774
|
-
_ = F[S], S = parseInt(S), _.pattern !== "bruteforce" && W.push(
|
|
23768
|
+
_ = F[S], S = parseInt(S), _.pattern !== "bruteforce" && W.push(he(m, S + 1));
|
|
23775
23769
|
return W;
|
|
23776
23770
|
}());
|
|
23777
23771
|
return O;
|
|
@@ -23795,13 +23789,13 @@ Ny = {
|
|
|
23795
23789
|
m = k.m[w][O], N.unshift(m), w = m.i - 1, O--;
|
|
23796
23790
|
return N;
|
|
23797
23791
|
};
|
|
23798
|
-
}(), n =
|
|
23799
|
-
for (
|
|
23800
|
-
if (m =
|
|
23792
|
+
}(), n = le = 0, B = p; 0 <= B ? le < B : le > B; n = 0 <= B ? ++le : --le) {
|
|
23793
|
+
for (ie = v[n], _e = 0, c = ie.length; _e < c; _e++)
|
|
23794
|
+
if (m = ie[_e], m.i > 0)
|
|
23801
23795
|
for (s in k.m[m.i - 1])
|
|
23802
|
-
s = parseInt(s),
|
|
23796
|
+
s = parseInt(s), he(m, s + 1);
|
|
23803
23797
|
else
|
|
23804
|
-
|
|
23798
|
+
he(m, 1);
|
|
23805
23799
|
i(n);
|
|
23806
23800
|
}
|
|
23807
23801
|
return C = K(p), x = C.length, t.length === 0 ? r = 1 : r = k.g[p - 1][x], {
|
|
@@ -24075,25 +24069,25 @@ Ly = {
|
|
|
24075
24069
|
k.push(r);
|
|
24076
24070
|
return k;
|
|
24077
24071
|
}(), b = [[]], a = function(k) {
|
|
24078
|
-
var x, C, I, B,
|
|
24079
|
-
for (C = [],
|
|
24080
|
-
K = k[
|
|
24072
|
+
var x, C, I, B, ie, le, K, he;
|
|
24073
|
+
for (C = [], ie = {}, le = 0, B = k.length; le < B; le++)
|
|
24074
|
+
K = k[le], x = function() {
|
|
24081
24075
|
var _e, X, q;
|
|
24082
|
-
for (q = [],
|
|
24083
|
-
r = K[
|
|
24076
|
+
for (q = [], he = X = 0, _e = K.length; X < _e; he = ++X)
|
|
24077
|
+
r = K[he], q.push([r, he]);
|
|
24084
24078
|
return q;
|
|
24085
24079
|
}(), x.sort(), I = function() {
|
|
24086
24080
|
var _e, X, q;
|
|
24087
|
-
for (q = [],
|
|
24088
|
-
r = x[
|
|
24081
|
+
for (q = [], he = X = 0, _e = x.length; X < _e; he = ++X)
|
|
24082
|
+
r = x[he], q.push(r + "," + he);
|
|
24089
24083
|
return q;
|
|
24090
|
-
}().join("-"), I in
|
|
24084
|
+
}().join("-"), I in ie || (ie[I] = !0, C.push(K));
|
|
24091
24085
|
return C;
|
|
24092
24086
|
}, i = function(k) {
|
|
24093
|
-
var x, C, I, B,
|
|
24087
|
+
var x, C, I, B, ie, le, K, he, _e, X, q, z, S, _, w, O;
|
|
24094
24088
|
if (k.length) {
|
|
24095
|
-
for (C = k[0], S = k.slice(1), K = [], q = t[C],
|
|
24096
|
-
for (B = q[
|
|
24089
|
+
for (C = k[0], S = k.slice(1), K = [], q = t[C], he = 0, ie = q.length; he < ie; he++)
|
|
24090
|
+
for (B = q[he], _e = 0, le = b.length; _e < le; _e++) {
|
|
24097
24091
|
for (_ = b[_e], x = -1, I = X = 0, z = _.length; 0 <= z ? X < z : X > z; I = 0 <= z ? ++X : --X)
|
|
24098
24092
|
if (_[I][0] === B) {
|
|
24099
24093
|
x = I;
|
|
@@ -24220,12 +24214,12 @@ Ly = {
|
|
|
24220
24214
|
return this.sorted(a);
|
|
24221
24215
|
},
|
|
24222
24216
|
date_match: function(t) {
|
|
24223
|
-
var e, a, i, r, n, s, o, l, c, d, m, y, v, p, b, k, x, C, I, B,
|
|
24224
|
-
for (y = [], v = /^\d{4,8}$/, p = /^(\d{1,4})([\s\/\\_.-])(\d{1,2})\2(\d{1,4})$/, s = x = 0,
|
|
24225
|
-
for (o = C =
|
|
24217
|
+
var e, a, i, r, n, s, o, l, c, d, m, y, v, p, b, k, x, C, I, B, ie, le, K, he, _e, X, q, z, S, _, w, O, N, F;
|
|
24218
|
+
for (y = [], v = /^\d{4,8}$/, p = /^(\d{1,4})([\s\/\\_.-])(\d{1,2})\2(\d{1,4})$/, s = x = 0, ie = t.length - 4; 0 <= ie ? x <= ie : x >= ie; s = 0 <= ie ? ++x : --x)
|
|
24219
|
+
for (o = C = le = s + 3, K = s + 7; (le <= K ? C <= K : C >= K) && !(o >= t.length); o = le <= K ? ++C : --C)
|
|
24226
24220
|
if (F = t.slice(s, +o + 1 || 9e9), !!v.exec(F)) {
|
|
24227
|
-
for (i = [],
|
|
24228
|
-
_e =
|
|
24221
|
+
for (i = [], he = Ry[F.length], I = 0, d = he.length; I < d; I++)
|
|
24222
|
+
_e = he[I], l = _e[0], c = _e[1], n = this.map_ints_to_dmy([parseInt(F.slice(0, l)), parseInt(F.slice(l, c)), parseInt(F.slice(c))]), n != null && i.push(n);
|
|
24229
24223
|
if (i.length > 0) {
|
|
24230
24224
|
for (e = i[0], b = function(W) {
|
|
24231
24225
|
return Math.abs(W.year - Ou.REFERENCE_YEAR);
|
|
@@ -24578,7 +24572,7 @@ async function Fy(t, e) {
|
|
|
24578
24572
|
});
|
|
24579
24573
|
}
|
|
24580
24574
|
const Ex = new We().openapi(
|
|
24581
|
-
|
|
24575
|
+
pe({
|
|
24582
24576
|
tags: ["dbconnections"],
|
|
24583
24577
|
method: "post",
|
|
24584
24578
|
path: "/signup",
|
|
@@ -24658,7 +24652,7 @@ const Ex = new We().openapi(
|
|
|
24658
24652
|
});
|
|
24659
24653
|
}
|
|
24660
24654
|
).openapi(
|
|
24661
|
-
|
|
24655
|
+
pe({
|
|
24662
24656
|
tags: ["dbconnections"],
|
|
24663
24657
|
method: "post",
|
|
24664
24658
|
path: "/change_password",
|
|
@@ -24724,7 +24718,7 @@ function Wy() {
|
|
|
24724
24718
|
return e.toString();
|
|
24725
24719
|
}
|
|
24726
24720
|
const Ix = new We().openapi(
|
|
24727
|
-
|
|
24721
|
+
pe({
|
|
24728
24722
|
tags: ["passwordless"],
|
|
24729
24723
|
method: "post",
|
|
24730
24724
|
path: "/start",
|
|
@@ -24769,7 +24763,7 @@ const Ix = new We().openapi(
|
|
|
24769
24763
|
return n === "link" ? await Ky(t, r, c.code_id) : await Ax(t, r, c.code_id), t.html("OK");
|
|
24770
24764
|
}
|
|
24771
24765
|
).openapi(
|
|
24772
|
-
|
|
24766
|
+
pe({
|
|
24773
24767
|
tags: ["passwordless"],
|
|
24774
24768
|
method: "get",
|
|
24775
24769
|
path: "/verify_redirect",
|
|
@@ -24979,7 +24973,7 @@ function hg() {
|
|
|
24979
24973
|
});
|
|
24980
24974
|
}
|
|
24981
24975
|
const mg = 30 * 60 * 1e3, $x = new We().openapi(
|
|
24982
|
-
|
|
24976
|
+
pe({
|
|
24983
24977
|
tags: ["oauth"],
|
|
24984
24978
|
method: "post",
|
|
24985
24979
|
path: "/",
|
|
@@ -26151,7 +26145,7 @@ async function kj(t, e, a, i) {
|
|
|
26151
26145
|
}), t.redirect(c.href);
|
|
26152
26146
|
}
|
|
26153
26147
|
const vj = new We().openapi(
|
|
26154
|
-
|
|
26148
|
+
pe({
|
|
26155
26149
|
tags: ["oauth"],
|
|
26156
26150
|
method: "get",
|
|
26157
26151
|
path: "/",
|
|
@@ -26212,7 +26206,7 @@ const vj = new We().openapi(
|
|
|
26212
26206
|
message: "Client not found"
|
|
26213
26207
|
});
|
|
26214
26208
|
t.set("client_id", I.id);
|
|
26215
|
-
const B = {
|
|
26209
|
+
const B = t.env.DEFAULT_CLIENT_ID ? await e.data.clients.get(t.env.DEFAULT_CLIENT_ID) : void 0, ie = {
|
|
26216
26210
|
redirect_uri: r,
|
|
26217
26211
|
scope: n,
|
|
26218
26212
|
state: s,
|
|
@@ -26226,19 +26220,25 @@ const vj = new We().openapi(
|
|
|
26226
26220
|
code_challenge_method: y,
|
|
26227
26221
|
username: x,
|
|
26228
26222
|
ui_locales: C
|
|
26229
|
-
},
|
|
26230
|
-
if (
|
|
26223
|
+
}, le = t.req.header("origin");
|
|
26224
|
+
if (le && !Tx(le, [
|
|
26225
|
+
...I.web_origins || [],
|
|
26226
|
+
...(B == null ? void 0 : B.web_origins) || []
|
|
26227
|
+
]))
|
|
26231
26228
|
throw new V(403, {
|
|
26232
|
-
message: `Origin ${
|
|
26229
|
+
message: `Origin ${le} not allowed`
|
|
26233
26230
|
});
|
|
26234
|
-
if (
|
|
26231
|
+
if (ie.redirect_uri && !Bh(ie.redirect_uri, [
|
|
26232
|
+
...I.callbacks || [],
|
|
26233
|
+
...(B == null ? void 0 : B.callbacks) || []
|
|
26234
|
+
]))
|
|
26235
26235
|
throw new V(400, {
|
|
26236
|
-
message: `Invalid redirect URI - ${
|
|
26236
|
+
message: `Invalid redirect URI - ${ie.redirect_uri}`
|
|
26237
26237
|
});
|
|
26238
|
-
const
|
|
26238
|
+
const K = qy(
|
|
26239
26239
|
I.tenant.id,
|
|
26240
26240
|
t.req.header("cookie")
|
|
26241
|
-
),
|
|
26241
|
+
), he = K ? await e.data.sessions.get(I.tenant.id, K) : void 0;
|
|
26242
26242
|
if (v == "none") {
|
|
26243
26243
|
if (!d)
|
|
26244
26244
|
throw new V(400, {
|
|
@@ -26246,7 +26246,7 @@ const vj = new We().openapi(
|
|
|
26246
26246
|
});
|
|
26247
26247
|
return Bx({
|
|
26248
26248
|
ctx: t,
|
|
26249
|
-
session:
|
|
26249
|
+
session: he || void 0,
|
|
26250
26250
|
redirect_uri: r,
|
|
26251
26251
|
state: s,
|
|
26252
26252
|
response_type: d,
|
|
@@ -26258,18 +26258,18 @@ const vj = new We().openapi(
|
|
|
26258
26258
|
scope: n
|
|
26259
26259
|
});
|
|
26260
26260
|
}
|
|
26261
|
-
return c && c !== "email" ? kj(t, I, c,
|
|
26261
|
+
return c && c !== "email" ? kj(t, I, c, ie) : p ? Px(
|
|
26262
26262
|
t,
|
|
26263
26263
|
I.tenant.id,
|
|
26264
26264
|
p,
|
|
26265
|
-
|
|
26265
|
+
ie,
|
|
26266
26266
|
b
|
|
26267
26267
|
) : Nx({
|
|
26268
26268
|
ctx: t,
|
|
26269
26269
|
client: I,
|
|
26270
26270
|
auth0Client: k,
|
|
26271
|
-
authParams:
|
|
26272
|
-
session:
|
|
26271
|
+
authParams: ie,
|
|
26272
|
+
session: he || void 0,
|
|
26273
26273
|
connection: c,
|
|
26274
26274
|
login_hint: x
|
|
26275
26275
|
});
|