@kong-ui-public/entities-certificates 3.6.30 → 3.6.32
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ref as me, defineComponent as fr, computed as ce, watch as Li, onBeforeMount as kl, resolveComponent as ge, openBlock as Q, createElementBlock as ae, createVNode as M, unref as w, withCtx as E, createBlock as Oe, Teleport as xl, withDirectives as Cl, createTextVNode as ye, toDisplayString as X, vShow as Bl, Fragment as Xt, renderList as er, withModifiers as Il, createCommentVNode as at, createElementVNode as Ze, reactive as
|
|
2
|
-
import { useRouter as
|
|
1
|
+
import { ref as me, defineComponent as fr, computed as ce, watch as Li, onBeforeMount as kl, resolveComponent as ge, openBlock as Q, createElementBlock as ae, createVNode as M, unref as w, withCtx as E, createBlock as Oe, Teleport as xl, withDirectives as Cl, createTextVNode as ye, toDisplayString as X, vShow as Bl, Fragment as Xt, renderList as er, withModifiers as Il, createCommentVNode as at, createElementVNode as Ze, reactive as Hi, createSlots as Kf } from "vue";
|
|
2
|
+
import { useRouter as xn } from "vue-router";
|
|
3
3
|
import { AddIcon as ea, TrashIcon as qf } from "@kong/icons";
|
|
4
4
|
import { createI18n as zf, i18nTComponent as Gf } from "@kong-ui-public/i18n";
|
|
5
|
-
import { useAxios as
|
|
5
|
+
import { useAxios as Cn, useFetcher as El, useDeleteUrlBuilder as Ol, FetcherStatus as Nl, EntityBaseTable as _l, EntityFilter as Tl, PermissionsWrapper as xt, EntityDeleteModal as jl, EntityTypes as Pl, useErrors as Rl, EntityBaseFormType as Wt, EntityBaseForm as Vl, SupportedEntityType as Bn, EntityFormSection as Fi, useStringHelpers as Dl, useHelpers as Ml, ConfigurationSchemaSection as Pe, ConfigurationSchemaType as kt, EntityBaseConfigCard as $l, ConfigCardItem as Ul } from "@kong-ui-public/entities-shared";
|
|
6
6
|
var Ps = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (C) Microsoft. All rights reserved.
|
|
@@ -63,7 +63,7 @@ var Wa;
|
|
|
63
63
|
} : function(g, m) {
|
|
64
64
|
return g[m];
|
|
65
65
|
}
|
|
66
|
-
}, p = Object.getPrototypeOf(Function), G = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : $f(), N = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : Uf(), f = typeof WeakMap == "function" ? WeakMap :
|
|
66
|
+
}, p = Object.getPrototypeOf(Function), G = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : $f(), N = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : Uf(), f = typeof WeakMap == "function" ? WeakMap : Lf(), y = n ? Symbol.for("@reflect-metadata:registry") : void 0, A = Vf(), b = Df(A);
|
|
67
67
|
function O(g, m, S, _) {
|
|
68
68
|
if (W(S)) {
|
|
69
69
|
if (!ke(g))
|
|
@@ -225,12 +225,12 @@ var Wa;
|
|
|
225
225
|
if (S.length <= 0)
|
|
226
226
|
return J;
|
|
227
227
|
for (var Ee = new N(), Ce = [], re = 0, R = S; re < R.length; re++) {
|
|
228
|
-
var U = R[re],
|
|
229
|
-
|
|
228
|
+
var U = R[re], H = Ee.has(U);
|
|
229
|
+
H || (Ee.add(U), Ce.push(U));
|
|
230
230
|
}
|
|
231
231
|
for (var K = 0, ne = J; K < ne.length; K++) {
|
|
232
|
-
var U = ne[K],
|
|
233
|
-
|
|
232
|
+
var U = ne[K], H = Ee.has(U);
|
|
233
|
+
H || (Ee.add(U), Ce.push(U));
|
|
234
234
|
}
|
|
235
235
|
return Ce;
|
|
236
236
|
}
|
|
@@ -269,7 +269,7 @@ var Wa;
|
|
|
269
269
|
function Y(g) {
|
|
270
270
|
return g === null;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function L(g) {
|
|
273
273
|
return typeof g == "symbol";
|
|
274
274
|
}
|
|
275
275
|
function q(g) {
|
|
@@ -290,7 +290,7 @@ var Wa;
|
|
|
290
290
|
case 5:
|
|
291
291
|
return g;
|
|
292
292
|
}
|
|
293
|
-
var S = "string", _ =
|
|
293
|
+
var S = "string", _ = Ha(g, s);
|
|
294
294
|
if (_ !== void 0) {
|
|
295
295
|
var J = _.call(g, S);
|
|
296
296
|
if (q(J))
|
|
@@ -325,7 +325,7 @@ var Wa;
|
|
|
325
325
|
}
|
|
326
326
|
function Z(g) {
|
|
327
327
|
var m = de(g);
|
|
328
|
-
return
|
|
328
|
+
return L(m) ? m : mr(m);
|
|
329
329
|
}
|
|
330
330
|
function ke(g) {
|
|
331
331
|
return Array.isArray ? Array.isArray(g) : g instanceof Object ? g instanceof Array : Object.prototype.toString.call(g) === "[object Array]";
|
|
@@ -349,7 +349,7 @@ var Wa;
|
|
|
349
349
|
function bs(g, m) {
|
|
350
350
|
return g === m || g !== g && m !== m;
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Ha(g, m) {
|
|
353
353
|
var S = g[m];
|
|
354
354
|
if (S != null) {
|
|
355
355
|
if (!z(S))
|
|
@@ -358,7 +358,7 @@ var Wa;
|
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
function Fa(g) {
|
|
361
|
-
var m =
|
|
361
|
+
var m = Ha(g, a);
|
|
362
362
|
if (!z(m))
|
|
363
363
|
throw new TypeError();
|
|
364
364
|
var S = m.call(g);
|
|
@@ -393,7 +393,7 @@ var Wa;
|
|
|
393
393
|
var m, S, _, J = new f(), Ee = {
|
|
394
394
|
registerProvider: Ce,
|
|
395
395
|
getProvider: R,
|
|
396
|
-
setProvider:
|
|
396
|
+
setProvider: H
|
|
397
397
|
};
|
|
398
398
|
return Ee;
|
|
399
399
|
function Ce(K) {
|
|
@@ -447,7 +447,7 @@ var Wa;
|
|
|
447
447
|
throw new TypeError();
|
|
448
448
|
return m === K || S === K || !W(_) && _.has(K);
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function H(K, ne, pe) {
|
|
451
451
|
if (!U(pe))
|
|
452
452
|
throw new Error("Metadata provider not registered.");
|
|
453
453
|
var Se = R(K, ne);
|
|
@@ -471,9 +471,9 @@ var Wa;
|
|
|
471
471
|
}
|
|
472
472
|
function Df(g) {
|
|
473
473
|
var m = new f(), S = {
|
|
474
|
-
isProviderFor: function(U,
|
|
474
|
+
isProviderFor: function(U, H) {
|
|
475
475
|
var K = m.get(U);
|
|
476
|
-
return W(K) ? !1 : K.has(
|
|
476
|
+
return W(K) ? !1 : K.has(H);
|
|
477
477
|
},
|
|
478
478
|
OrdinaryDefineOwnMetadata: Ce,
|
|
479
479
|
OrdinaryHasOwnMetadata: J,
|
|
@@ -482,34 +482,34 @@ var Wa;
|
|
|
482
482
|
OrdinaryDeleteMetadata: R
|
|
483
483
|
};
|
|
484
484
|
return A.registerProvider(S), S;
|
|
485
|
-
function _(U,
|
|
485
|
+
function _(U, H, K) {
|
|
486
486
|
var ne = m.get(U), pe = !1;
|
|
487
487
|
if (W(ne)) {
|
|
488
488
|
if (!K)
|
|
489
489
|
return;
|
|
490
490
|
ne = new G(), m.set(U, ne), pe = !0;
|
|
491
491
|
}
|
|
492
|
-
var Se = ne.get(
|
|
492
|
+
var Se = ne.get(H);
|
|
493
493
|
if (W(Se)) {
|
|
494
494
|
if (!K)
|
|
495
495
|
return;
|
|
496
|
-
if (Se = new G(), ne.set(
|
|
497
|
-
throw ne.delete(
|
|
496
|
+
if (Se = new G(), ne.set(H, Se), !g.setProvider(U, H, S))
|
|
497
|
+
throw ne.delete(H), pe && m.delete(U), new Error("Wrong provider for target.");
|
|
498
498
|
}
|
|
499
499
|
return Se;
|
|
500
500
|
}
|
|
501
|
-
function J(U,
|
|
501
|
+
function J(U, H, K) {
|
|
502
502
|
var ne = _(
|
|
503
|
-
|
|
503
|
+
H,
|
|
504
504
|
K,
|
|
505
505
|
/*Create*/
|
|
506
506
|
!1
|
|
507
507
|
);
|
|
508
508
|
return W(ne) ? !1 : Ge(ne.has(U));
|
|
509
509
|
}
|
|
510
|
-
function Ee(U,
|
|
510
|
+
function Ee(U, H, K) {
|
|
511
511
|
var ne = _(
|
|
512
|
-
|
|
512
|
+
H,
|
|
513
513
|
K,
|
|
514
514
|
/*Create*/
|
|
515
515
|
!1
|
|
@@ -517,19 +517,19 @@ var Wa;
|
|
|
517
517
|
if (!W(ne))
|
|
518
518
|
return ne.get(U);
|
|
519
519
|
}
|
|
520
|
-
function Ce(U,
|
|
520
|
+
function Ce(U, H, K, ne) {
|
|
521
521
|
var pe = _(
|
|
522
522
|
K,
|
|
523
523
|
ne,
|
|
524
524
|
/*Create*/
|
|
525
525
|
!0
|
|
526
526
|
);
|
|
527
|
-
pe.set(U,
|
|
527
|
+
pe.set(U, H);
|
|
528
528
|
}
|
|
529
|
-
function re(U,
|
|
529
|
+
function re(U, H) {
|
|
530
530
|
var K = [], ne = _(
|
|
531
531
|
U,
|
|
532
|
-
|
|
532
|
+
H,
|
|
533
533
|
/*Create*/
|
|
534
534
|
!1
|
|
535
535
|
);
|
|
@@ -539,9 +539,9 @@ var Wa;
|
|
|
539
539
|
var Ga = qa(Se);
|
|
540
540
|
if (!Ga)
|
|
541
541
|
return K.length = nt, K;
|
|
542
|
-
var
|
|
542
|
+
var Hf = Ka(Ga);
|
|
543
543
|
try {
|
|
544
|
-
K[nt] =
|
|
544
|
+
K[nt] = Hf;
|
|
545
545
|
} catch (Ff) {
|
|
546
546
|
try {
|
|
547
547
|
za(Se);
|
|
@@ -552,9 +552,9 @@ var Wa;
|
|
|
552
552
|
nt++;
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
function R(U,
|
|
555
|
+
function R(U, H, K) {
|
|
556
556
|
var ne = _(
|
|
557
|
-
|
|
557
|
+
H,
|
|
558
558
|
K,
|
|
559
559
|
/*Create*/
|
|
560
560
|
!1
|
|
@@ -562,7 +562,7 @@ var Wa;
|
|
|
562
562
|
if (W(ne) || !ne.delete(U))
|
|
563
563
|
return !1;
|
|
564
564
|
if (ne.size === 0) {
|
|
565
|
-
var pe = m.get(
|
|
565
|
+
var pe = m.get(H);
|
|
566
566
|
W(pe) || (pe.delete(K), pe.size === 0 && m.delete(pe));
|
|
567
567
|
}
|
|
568
568
|
return !0;
|
|
@@ -571,8 +571,8 @@ var Wa;
|
|
|
571
571
|
function Mf(g) {
|
|
572
572
|
var m = g.defineMetadata, S = g.hasOwnMetadata, _ = g.getOwnMetadata, J = g.getOwnMetadataKeys, Ee = g.deleteMetadata, Ce = new f(), re = {
|
|
573
573
|
isProviderFor: function(R, U) {
|
|
574
|
-
var
|
|
575
|
-
return !W(
|
|
574
|
+
var H = Ce.get(R);
|
|
575
|
+
return !W(H) && H.has(U) ? !0 : J(R, U).length ? (W(H) && (H = new N(), Ce.set(R, H)), H.add(U), !0) : !1;
|
|
576
576
|
},
|
|
577
577
|
OrdinaryDefineOwnMetadata: m,
|
|
578
578
|
OrdinaryHasOwnMetadata: S,
|
|
@@ -596,8 +596,8 @@ var Wa;
|
|
|
596
596
|
var g = {}, m = [], S = (
|
|
597
597
|
/** @class */
|
|
598
598
|
function() {
|
|
599
|
-
function re(R, U,
|
|
600
|
-
this._index = 0, this._keys = R, this._values = U, this._selector =
|
|
599
|
+
function re(R, U, H) {
|
|
600
|
+
this._index = 0, this._keys = R, this._values = U, this._selector = H;
|
|
601
601
|
}
|
|
602
602
|
return re.prototype["@@iterator"] = function() {
|
|
603
603
|
return this;
|
|
@@ -642,12 +642,12 @@ var Wa;
|
|
|
642
642
|
);
|
|
643
643
|
return U >= 0 ? this._values[U] : void 0;
|
|
644
644
|
}, re.prototype.set = function(R, U) {
|
|
645
|
-
var
|
|
645
|
+
var H = this._find(
|
|
646
646
|
R,
|
|
647
647
|
/*insert*/
|
|
648
648
|
!0
|
|
649
649
|
);
|
|
650
|
-
return this._values[
|
|
650
|
+
return this._values[H] = U, this;
|
|
651
651
|
}, re.prototype.delete = function(R) {
|
|
652
652
|
var U = this._find(
|
|
653
653
|
R,
|
|
@@ -655,7 +655,7 @@ var Wa;
|
|
|
655
655
|
!1
|
|
656
656
|
);
|
|
657
657
|
if (U >= 0) {
|
|
658
|
-
for (var
|
|
658
|
+
for (var H = this._keys.length, K = U + 1; K < H; K++)
|
|
659
659
|
this._keys[K - 1] = this._keys[K], this._values[K - 1] = this._values[K];
|
|
660
660
|
return this._keys.length--, this._values.length--, bs(R, this._cacheKey) && (this._cacheKey = g, this._cacheIndex = -2), !0;
|
|
661
661
|
}
|
|
@@ -675,9 +675,9 @@ var Wa;
|
|
|
675
675
|
}, re.prototype._find = function(R, U) {
|
|
676
676
|
if (!bs(this._cacheKey, R)) {
|
|
677
677
|
this._cacheIndex = -1;
|
|
678
|
-
for (var
|
|
679
|
-
if (bs(this._keys[
|
|
680
|
-
this._cacheIndex =
|
|
678
|
+
for (var H = 0; H < this._keys.length; H++)
|
|
679
|
+
if (bs(this._keys[H], R)) {
|
|
680
|
+
this._cacheIndex = H;
|
|
681
681
|
break;
|
|
682
682
|
}
|
|
683
683
|
}
|
|
@@ -732,7 +732,7 @@ var Wa;
|
|
|
732
732
|
);
|
|
733
733
|
return g;
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function Lf() {
|
|
736
736
|
var g = 16, m = v.create(), S = _();
|
|
737
737
|
return (
|
|
738
738
|
/** @class */
|
|
@@ -741,33 +741,33 @@ var Wa;
|
|
|
741
741
|
this._key = _();
|
|
742
742
|
}
|
|
743
743
|
return R.prototype.has = function(U) {
|
|
744
|
-
var
|
|
744
|
+
var H = J(
|
|
745
745
|
U,
|
|
746
746
|
/*create*/
|
|
747
747
|
!1
|
|
748
748
|
);
|
|
749
|
-
return
|
|
749
|
+
return H !== void 0 ? v.has(H, this._key) : !1;
|
|
750
750
|
}, R.prototype.get = function(U) {
|
|
751
|
-
var
|
|
751
|
+
var H = J(
|
|
752
752
|
U,
|
|
753
753
|
/*create*/
|
|
754
754
|
!1
|
|
755
755
|
);
|
|
756
|
-
return
|
|
757
|
-
}, R.prototype.set = function(U,
|
|
756
|
+
return H !== void 0 ? v.get(H, this._key) : void 0;
|
|
757
|
+
}, R.prototype.set = function(U, H) {
|
|
758
758
|
var K = J(
|
|
759
759
|
U,
|
|
760
760
|
/*create*/
|
|
761
761
|
!0
|
|
762
762
|
);
|
|
763
|
-
return K[this._key] =
|
|
763
|
+
return K[this._key] = H, this;
|
|
764
764
|
}, R.prototype.delete = function(U) {
|
|
765
|
-
var
|
|
765
|
+
var H = J(
|
|
766
766
|
U,
|
|
767
767
|
/*create*/
|
|
768
768
|
!1
|
|
769
769
|
);
|
|
770
|
-
return
|
|
770
|
+
return H !== void 0 ? delete H[this._key] : !1;
|
|
771
771
|
}, R.prototype.clear = function() {
|
|
772
772
|
this._key = _();
|
|
773
773
|
}, R;
|
|
@@ -789,8 +789,8 @@ var Wa;
|
|
|
789
789
|
return R[S];
|
|
790
790
|
}
|
|
791
791
|
function Ee(R, U) {
|
|
792
|
-
for (var
|
|
793
|
-
R[
|
|
792
|
+
for (var H = 0; H < U; ++H)
|
|
793
|
+
R[H] = Math.random() * 255 | 0;
|
|
794
794
|
return R;
|
|
795
795
|
}
|
|
796
796
|
function Ce(R) {
|
|
@@ -803,9 +803,9 @@ var Wa;
|
|
|
803
803
|
function re() {
|
|
804
804
|
var R = Ce(g);
|
|
805
805
|
R[6] = R[6] & 79 | 64, R[8] = R[8] & 191 | 128;
|
|
806
|
-
for (var U = "",
|
|
807
|
-
var K = R[
|
|
808
|
-
(
|
|
806
|
+
for (var U = "", H = 0; H < g; ++H) {
|
|
807
|
+
var K = R[H];
|
|
808
|
+
(H === 4 || H === 6 || H === 8) && (U += "-"), K < 16 && (U += "0"), U += K.toString(16).toLowerCase();
|
|
809
809
|
}
|
|
810
810
|
return U;
|
|
811
811
|
}
|
|
@@ -922,7 +922,7 @@ class ht {
|
|
|
922
922
|
return i;
|
|
923
923
|
}
|
|
924
924
|
}
|
|
925
|
-
class
|
|
925
|
+
class F {
|
|
926
926
|
static isHex(e) {
|
|
927
927
|
return typeof e === Ss && Jf.test(e);
|
|
928
928
|
}
|
|
@@ -989,7 +989,7 @@ class L {
|
|
|
989
989
|
const t = this.formatString(e);
|
|
990
990
|
if (!t)
|
|
991
991
|
return new ArrayBuffer(0);
|
|
992
|
-
if (!
|
|
992
|
+
if (!F.isBase64(t))
|
|
993
993
|
throw new TypeError("Argument 'base64Text' is not Base64 encoded");
|
|
994
994
|
return typeof atob < "u" ? this.FromBinary(atob(t)) : new Uint8Array(Buffer.from(t, "base64")).buffer;
|
|
995
995
|
}
|
|
@@ -997,14 +997,14 @@ class L {
|
|
|
997
997
|
const t = this.formatString(e);
|
|
998
998
|
if (!t)
|
|
999
999
|
return new ArrayBuffer(0);
|
|
1000
|
-
if (!
|
|
1000
|
+
if (!F.isBase64Url(t))
|
|
1001
1001
|
throw new TypeError("Argument 'base64url' is not Base64Url encoded");
|
|
1002
1002
|
return this.FromBase64(this.Base64Padding(t.replace(/\-/g, "+").replace(/\_/g, "/")));
|
|
1003
1003
|
}
|
|
1004
1004
|
static ToBase64Url(e) {
|
|
1005
1005
|
return this.ToBase64(e).replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, "");
|
|
1006
1006
|
}
|
|
1007
|
-
static FromUtf8String(e, t =
|
|
1007
|
+
static FromUtf8String(e, t = F.DEFAULT_UTF8_ENCODING) {
|
|
1008
1008
|
switch (t) {
|
|
1009
1009
|
case "ascii":
|
|
1010
1010
|
return this.FromBinary(e);
|
|
@@ -1020,7 +1020,7 @@ class L {
|
|
|
1020
1020
|
throw new Error(`Unknown type of encoding '${t}'`);
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
|
-
static ToUtf8String(e, t =
|
|
1023
|
+
static ToUtf8String(e, t = F.DEFAULT_UTF8_ENCODING) {
|
|
1024
1024
|
switch (t) {
|
|
1025
1025
|
case "ascii":
|
|
1026
1026
|
return this.ToBinary(e);
|
|
@@ -1063,7 +1063,7 @@ class L {
|
|
|
1063
1063
|
let t = this.formatString(e);
|
|
1064
1064
|
if (!t)
|
|
1065
1065
|
return new ArrayBuffer(0);
|
|
1066
|
-
if (!
|
|
1066
|
+
if (!F.isHex(t))
|
|
1067
1067
|
throw new TypeError("Argument 'hexString' is not HEX encoded");
|
|
1068
1068
|
t.length % 2 && (t = `0${t}`);
|
|
1069
1069
|
const i = new Uint8Array(t.length / 2);
|
|
@@ -1090,7 +1090,7 @@ class L {
|
|
|
1090
1090
|
return (e == null ? void 0 : e.replace(/[\n\r\t ]/g, "")) || "";
|
|
1091
1091
|
}
|
|
1092
1092
|
}
|
|
1093
|
-
|
|
1093
|
+
F.DEFAULT_UTF8_ENCODING = "utf8";
|
|
1094
1094
|
function Qf(...r) {
|
|
1095
1095
|
const e = r.map((n) => n.byteLength).reduce((n, s) => n + s), t = new Uint8Array(e);
|
|
1096
1096
|
let i = 0;
|
|
@@ -1099,7 +1099,7 @@ function Qf(...r) {
|
|
|
1099
1099
|
t[i++] = s;
|
|
1100
1100
|
}), t.buffer;
|
|
1101
1101
|
}
|
|
1102
|
-
function
|
|
1102
|
+
function Ll(r, e) {
|
|
1103
1103
|
if (!(r && e) || r.byteLength !== e.byteLength)
|
|
1104
1104
|
return !1;
|
|
1105
1105
|
const t = new Uint8Array(r), i = new Uint8Array(e);
|
|
@@ -1152,7 +1152,7 @@ function Rs(...r) {
|
|
|
1152
1152
|
n.set(s, t), t += s.length;
|
|
1153
1153
|
return n;
|
|
1154
1154
|
}
|
|
1155
|
-
function
|
|
1155
|
+
function Hl() {
|
|
1156
1156
|
const r = new Uint8Array(this.valueHex);
|
|
1157
1157
|
if (this.valueHex.byteLength >= 2) {
|
|
1158
1158
|
const l = r[0] === 255 && r[1] & 128, u = r[0] === 0 && (r[1] & 128) === 0;
|
|
@@ -1241,7 +1241,7 @@ function We(r, e) {
|
|
|
1241
1241
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1242
1242
|
*
|
|
1243
1243
|
*/
|
|
1244
|
-
function
|
|
1244
|
+
function Ki() {
|
|
1245
1245
|
if (typeof BigInt > "u")
|
|
1246
1246
|
throw new Error("BigInt is not defined. Your environment doesn't implement BigInt.");
|
|
1247
1247
|
}
|
|
@@ -1261,7 +1261,7 @@ function ta(r) {
|
|
|
1261
1261
|
function jt(r, e, t, i) {
|
|
1262
1262
|
return e instanceof Uint8Array ? e.byteLength ? t < 0 ? (r.error = "Wrong parameter: inputOffset less than zero", !1) : i < 0 ? (r.error = "Wrong parameter: inputLength less than zero", !1) : e.byteLength - t - i < 0 ? (r.error = "End of input reached before message was fully decoded (inconsistent offset and length values)", !1) : !0 : (r.error = "Wrong parameter: inputBuffer has zero length", !1) : (r.error = "Wrong parameter: inputBuffer must be 'Uint8Array'", !1);
|
|
1263
1263
|
}
|
|
1264
|
-
class
|
|
1264
|
+
class In {
|
|
1265
1265
|
constructor() {
|
|
1266
1266
|
this.items = [];
|
|
1267
1267
|
}
|
|
@@ -1272,7 +1272,7 @@ class En {
|
|
|
1272
1272
|
return ta(this.items);
|
|
1273
1273
|
}
|
|
1274
1274
|
}
|
|
1275
|
-
const Jr = [new Uint8Array([1])], Ya = "0123456789", ks = "name", Za = "valueHexView", td = "isHexOnly", rd = "idBlock", id = "tagClass", nd = "tagNumber", sd = "isConstructed", od = "fromBER", ad = "toBER", cd = "local",
|
|
1275
|
+
const Jr = [new Uint8Array([1])], Ya = "0123456789", ks = "name", Za = "valueHexView", td = "isHexOnly", rd = "idBlock", id = "tagClass", nd = "tagNumber", sd = "isConstructed", od = "fromBER", ad = "toBER", cd = "local", He = "", ut = new ArrayBuffer(0), En = new Uint8Array(0), ri = "EndOfContent", Fl = "OCTET STRING", Kl = "BIT STRING";
|
|
1276
1276
|
function mt(r) {
|
|
1277
1277
|
var e;
|
|
1278
1278
|
return e = class extends r {
|
|
@@ -1280,7 +1280,7 @@ function mt(r) {
|
|
|
1280
1280
|
var n;
|
|
1281
1281
|
super(...i);
|
|
1282
1282
|
const s = i[0] || {};
|
|
1283
|
-
this.isHexOnly = (n = s.isHexOnly) !== null && n !== void 0 ? n : !1, this.valueHexView = s.valueHex ? T.toUint8Array(s.valueHex) :
|
|
1283
|
+
this.isHexOnly = (n = s.isHexOnly) !== null && n !== void 0 ? n : !1, this.valueHexView = s.valueHex ? T.toUint8Array(s.valueHex) : En;
|
|
1284
1284
|
}
|
|
1285
1285
|
get valueHex() {
|
|
1286
1286
|
return this.valueHexView.slice().buffer;
|
|
@@ -1302,13 +1302,13 @@ function mt(r) {
|
|
|
1302
1302
|
return {
|
|
1303
1303
|
...super.toJSON(),
|
|
1304
1304
|
isHexOnly: this.isHexOnly,
|
|
1305
|
-
valueHex:
|
|
1305
|
+
valueHex: F.ToHex(this.valueHexView)
|
|
1306
1306
|
};
|
|
1307
1307
|
}
|
|
1308
1308
|
}, e.NAME = "hexBlock", e;
|
|
1309
1309
|
}
|
|
1310
1310
|
class dr {
|
|
1311
|
-
constructor({ blockLength: e = 0, error: t =
|
|
1311
|
+
constructor({ blockLength: e = 0, error: t = He, warnings: i = [], valueBeforeDecode: n = En } = {}) {
|
|
1312
1312
|
this.blockLength = e, this.error = t, this.warnings = i, this.valueBeforeDecodeView = T.toUint8Array(n);
|
|
1313
1313
|
}
|
|
1314
1314
|
static blockName() {
|
|
@@ -1326,7 +1326,7 @@ class dr {
|
|
|
1326
1326
|
blockLength: this.blockLength,
|
|
1327
1327
|
error: this.error,
|
|
1328
1328
|
warnings: this.warnings,
|
|
1329
|
-
valueBeforeDecode:
|
|
1329
|
+
valueBeforeDecode: F.ToHex(this.valueBeforeDecodeView)
|
|
1330
1330
|
};
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
@@ -1343,7 +1343,7 @@ Ue.NAME = "valueBlock";
|
|
|
1343
1343
|
class ql extends mt(dr) {
|
|
1344
1344
|
constructor({ idBlock: e = {} } = {}) {
|
|
1345
1345
|
var t, i, n, s;
|
|
1346
|
-
super(), e ? (this.isHexOnly = (t = e.isHexOnly) !== null && t !== void 0 ? t : !1, this.valueHexView = e.valueHex ? T.toUint8Array(e.valueHex) :
|
|
1346
|
+
super(), e ? (this.isHexOnly = (t = e.isHexOnly) !== null && t !== void 0 ? t : !1, this.valueHexView = e.valueHex ? T.toUint8Array(e.valueHex) : En, this.tagClass = (i = e.tagClass) !== null && i !== void 0 ? i : -1, this.tagNumber = (n = e.tagNumber) !== null && n !== void 0 ? n : -1, this.isConstructed = (s = e.isConstructed) !== null && s !== void 0 ? s : !1) : (this.tagClass = -1, this.tagNumber = -1, this.isConstructed = !1);
|
|
1347
1347
|
}
|
|
1348
1348
|
toBER(e = !1) {
|
|
1349
1349
|
let t = 0;
|
|
@@ -1520,7 +1520,7 @@ class zl extends dr {
|
|
|
1520
1520
|
zl.NAME = "lengthBlock";
|
|
1521
1521
|
const D = {};
|
|
1522
1522
|
class _e extends dr {
|
|
1523
|
-
constructor({ name: e =
|
|
1523
|
+
constructor({ name: e = He, optional: t = !1, primitiveSchema: i, ...n } = {}, s) {
|
|
1524
1524
|
super(n), this.name = e, this.optional = t, i && (this.primitiveSchema = i), this.idBlock = new ql(n), this.lenBlock = new zl(n), this.valueBlock = s ? new s(n) : new Ue(n);
|
|
1525
1525
|
}
|
|
1526
1526
|
fromBER(e, t, i) {
|
|
@@ -1528,7 +1528,7 @@ class _e extends dr {
|
|
|
1528
1528
|
return n === -1 ? (this.error = this.valueBlock.error, n) : (this.idBlock.error.length || (this.blockLength += this.idBlock.blockLength), this.lenBlock.error.length || (this.blockLength += this.lenBlock.blockLength), this.valueBlock.error.length || (this.blockLength += this.valueBlock.blockLength), n);
|
|
1529
1529
|
}
|
|
1530
1530
|
toBER(e, t) {
|
|
1531
|
-
const i = t || new
|
|
1531
|
+
const i = t || new In();
|
|
1532
1532
|
t || Gl(this);
|
|
1533
1533
|
const n = this.idBlock.toBER(e);
|
|
1534
1534
|
if (i.write(n), this.lenBlock.isIndefiniteForm)
|
|
@@ -1553,10 +1553,10 @@ class _e extends dr {
|
|
|
1553
1553
|
return this.primitiveSchema && (e.primitiveSchema = this.primitiveSchema.toJSON()), e;
|
|
1554
1554
|
}
|
|
1555
1555
|
toString(e = "ascii") {
|
|
1556
|
-
return e === "ascii" ? this.onAsciiEncoding() :
|
|
1556
|
+
return e === "ascii" ? this.onAsciiEncoding() : F.ToHex(this.toBER());
|
|
1557
1557
|
}
|
|
1558
1558
|
onAsciiEncoding() {
|
|
1559
|
-
return `${this.constructor.NAME} : ${
|
|
1559
|
+
return `${this.constructor.NAME} : ${F.ToHex(this.valueBlock.valueBeforeDecodeView)}`;
|
|
1560
1560
|
}
|
|
1561
1561
|
isEqual(e) {
|
|
1562
1562
|
if (this === e)
|
|
@@ -1575,7 +1575,7 @@ function Gl(r) {
|
|
|
1575
1575
|
return !!r.lenBlock.isIndefiniteForm;
|
|
1576
1576
|
}
|
|
1577
1577
|
class ra extends _e {
|
|
1578
|
-
constructor({ value: e =
|
|
1578
|
+
constructor({ value: e = He, ...t } = {}, i) {
|
|
1579
1579
|
super(t, i), e && this.fromString(e);
|
|
1580
1580
|
}
|
|
1581
1581
|
getValue() {
|
|
@@ -1600,14 +1600,14 @@ class Wl extends mt(Ue) {
|
|
|
1600
1600
|
}
|
|
1601
1601
|
Wl.NAME = "PrimitiveValueBlock";
|
|
1602
1602
|
var Jl;
|
|
1603
|
-
class
|
|
1603
|
+
class pi extends _e {
|
|
1604
1604
|
constructor(e = {}) {
|
|
1605
1605
|
super(e, Wl), this.idBlock.isConstructed = !1;
|
|
1606
1606
|
}
|
|
1607
1607
|
}
|
|
1608
|
-
Jl =
|
|
1608
|
+
Jl = pi;
|
|
1609
1609
|
D.Primitive = Jl;
|
|
1610
|
-
|
|
1610
|
+
pi.NAME = "PRIMITIVE";
|
|
1611
1611
|
function ld(r, e) {
|
|
1612
1612
|
if (r instanceof e)
|
|
1613
1613
|
return r;
|
|
@@ -1804,7 +1804,7 @@ class Mt extends Ue {
|
|
|
1804
1804
|
return this.isIndefiniteForm && (this.value[this.value.length - 1].constructor.NAME === ri ? this.value.pop() : this.warnings.push("No EndOfContent block encoded")), s;
|
|
1805
1805
|
}
|
|
1806
1806
|
toBER(e, t) {
|
|
1807
|
-
const i = t || new
|
|
1807
|
+
const i = t || new In();
|
|
1808
1808
|
for (let n = 0; n < this.value.length; n++)
|
|
1809
1809
|
this.value[n].toBER(e, i);
|
|
1810
1810
|
return t ? ut : i.final();
|
|
@@ -1902,7 +1902,7 @@ class eu extends mt(Ue) {
|
|
|
1902
1902
|
}
|
|
1903
1903
|
fromBER(e, t, i) {
|
|
1904
1904
|
const n = T.toUint8Array(e);
|
|
1905
|
-
return jt(this, n, t, i) ? (this.valueHexView = n.subarray(t, t + i), i > 1 && this.warnings.push("Boolean value encoded in more then 1 octet"), this.isHexOnly = !0,
|
|
1905
|
+
return jt(this, n, t, i) ? (this.valueHexView = n.subarray(t, t + i), i > 1 && this.warnings.push("Boolean value encoded in more then 1 octet"), this.isHexOnly = !0, Hl.call(this), this.blockLength = i, t + i) : -1;
|
|
1906
1906
|
}
|
|
1907
1907
|
toBER() {
|
|
1908
1908
|
return this.valueHexView.slice();
|
|
@@ -1916,7 +1916,7 @@ class eu extends mt(Ue) {
|
|
|
1916
1916
|
}
|
|
1917
1917
|
eu.NAME = "BooleanValueBlock";
|
|
1918
1918
|
var tu;
|
|
1919
|
-
let
|
|
1919
|
+
let On = class extends _e {
|
|
1920
1920
|
constructor(e = {}) {
|
|
1921
1921
|
super(e, eu), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 1;
|
|
1922
1922
|
}
|
|
@@ -1930,9 +1930,9 @@ let Nn = class extends _e {
|
|
|
1930
1930
|
return `${this.constructor.NAME} : ${this.getValue}`;
|
|
1931
1931
|
}
|
|
1932
1932
|
};
|
|
1933
|
-
tu =
|
|
1933
|
+
tu = On;
|
|
1934
1934
|
D.Boolean = tu;
|
|
1935
|
-
|
|
1935
|
+
On.NAME = "BOOLEAN";
|
|
1936
1936
|
class ru extends mt(Mt) {
|
|
1937
1937
|
constructor({ isConstructed: e = !1, ...t } = {}) {
|
|
1938
1938
|
super(t), this.isConstructed = e;
|
|
@@ -1999,7 +1999,7 @@ let Zt = class nu extends _e {
|
|
|
1999
1999
|
return super.fromBER(e, t, i);
|
|
2000
2000
|
}
|
|
2001
2001
|
onAsciiEncoding() {
|
|
2002
|
-
return this.valueBlock.isConstructed || this.valueBlock.value && this.valueBlock.value.length ? Fe.prototype.onAsciiEncoding.call(this) : `${this.constructor.NAME} : ${
|
|
2002
|
+
return this.valueBlock.isConstructed || this.valueBlock.value && this.valueBlock.value.length ? Fe.prototype.onAsciiEncoding.call(this) : `${this.constructor.NAME} : ${F.ToHex(this.valueBlock.valueHexView)}`;
|
|
2003
2003
|
}
|
|
2004
2004
|
getValue() {
|
|
2005
2005
|
if (!this.idBlock.isConstructed)
|
|
@@ -2177,7 +2177,7 @@ class na extends mt(Ue) {
|
|
|
2177
2177
|
super(t), this._valueDec = 0, t.valueHex && this.setValueHex(), e !== void 0 && (this.valueDec = e);
|
|
2178
2178
|
}
|
|
2179
2179
|
setValueHex() {
|
|
2180
|
-
this.valueHexView.length >= 4 ? (this.warnings.push("Too big Integer for decoding, hex only"), this.isHexOnly = !0, this._valueDec = 0) : (this.isHexOnly = !1, this.valueHexView.length > 0 && (this._valueDec =
|
|
2180
|
+
this.valueHexView.length >= 4 ? (this.warnings.push("Too big Integer for decoding, hex only"), this.isHexOnly = !0, this._valueDec = 0) : (this.isHexOnly = !1, this.valueHexView.length > 0 && (this._valueDec = Hl.call(this)));
|
|
2181
2181
|
}
|
|
2182
2182
|
set valueDec(e) {
|
|
2183
2183
|
this._valueDec = e, this.isHexOnly = !1, this.valueHexView = new Uint8Array(Xf(e));
|
|
@@ -2260,15 +2260,15 @@ class yt extends _e {
|
|
|
2260
2260
|
super(e, na), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 2;
|
|
2261
2261
|
}
|
|
2262
2262
|
toBigInt() {
|
|
2263
|
-
return
|
|
2263
|
+
return Ki(), BigInt(this.valueBlock.toString());
|
|
2264
2264
|
}
|
|
2265
2265
|
static fromBigInt(e) {
|
|
2266
|
-
|
|
2267
|
-
const t = BigInt(e), i = new
|
|
2266
|
+
Ki();
|
|
2267
|
+
const t = BigInt(e), i = new In(), n = t.toString(16).replace(/^-/, ""), s = new Uint8Array(F.FromHex(n));
|
|
2268
2268
|
if (t < 0) {
|
|
2269
2269
|
const l = new Uint8Array(s.length + (s[0] & 128 ? 1 : 0));
|
|
2270
2270
|
l[0] |= 128;
|
|
2271
|
-
const d = BigInt(`0x${
|
|
2271
|
+
const d = BigInt(`0x${F.ToHex(l)}`) + t, v = T.toUint8Array(F.FromHex(d.toString(16)));
|
|
2272
2272
|
v[0] |= 128, i.write(v);
|
|
2273
2273
|
} else
|
|
2274
2274
|
s[0] & 128 && i.write(new Uint8Array([0])), i.write(s);
|
|
@@ -2293,14 +2293,14 @@ cu = yt;
|
|
|
2293
2293
|
D.Integer = cu;
|
|
2294
2294
|
yt.NAME = "INTEGER";
|
|
2295
2295
|
var lu;
|
|
2296
|
-
class
|
|
2296
|
+
class Nn extends yt {
|
|
2297
2297
|
constructor(e = {}) {
|
|
2298
2298
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 10;
|
|
2299
2299
|
}
|
|
2300
2300
|
}
|
|
2301
|
-
lu =
|
|
2301
|
+
lu = Nn;
|
|
2302
2302
|
D.Enumerated = lu;
|
|
2303
|
-
|
|
2303
|
+
Nn.NAME = "ENUMERATED";
|
|
2304
2304
|
class Vs extends mt(Ue) {
|
|
2305
2305
|
constructor({ valueDec: e = -1, isFirstSid: t = !1, ...i } = {}) {
|
|
2306
2306
|
super(i), this.valueDec = e, this.isFirstSid = t;
|
|
@@ -2321,7 +2321,7 @@ class Vs extends mt(Ue) {
|
|
|
2321
2321
|
return this.valueHexView = a, s[this.blockLength - 1] & 128 ? (this.error = "End of input reached before message was fully decoded", -1) : (this.valueHexView[0] === 0 && this.warnings.push("Needlessly long format of SID encoding"), this.blockLength <= 8 ? this.valueDec = xr(this.valueHexView, 7) : (this.isHexOnly = !0, this.warnings.push("Too big SID for decoding, hex only")), t + this.blockLength);
|
|
2322
2322
|
}
|
|
2323
2323
|
set valueBigInt(e) {
|
|
2324
|
-
|
|
2324
|
+
Ki();
|
|
2325
2325
|
let t = BigInt(e).toString(2);
|
|
2326
2326
|
for (; t.length % 7; )
|
|
2327
2327
|
t = "0" + t;
|
|
@@ -2354,7 +2354,7 @@ class Vs extends mt(Ue) {
|
|
|
2354
2354
|
toString() {
|
|
2355
2355
|
let e = "";
|
|
2356
2356
|
if (this.isHexOnly)
|
|
2357
|
-
e =
|
|
2357
|
+
e = F.ToHex(this.valueHexView);
|
|
2358
2358
|
else if (this.isFirstSid) {
|
|
2359
2359
|
let t = this.valueDec;
|
|
2360
2360
|
this.valueDec <= 39 ? e = "0." : this.valueDec <= 79 ? (e = "1.", t -= 40) : (e = "2.", t -= 80), e += t.toString();
|
|
@@ -2372,7 +2372,7 @@ class Vs extends mt(Ue) {
|
|
|
2372
2372
|
}
|
|
2373
2373
|
Vs.NAME = "sidBlock";
|
|
2374
2374
|
class uu extends Ue {
|
|
2375
|
-
constructor({ value: e =
|
|
2375
|
+
constructor({ value: e = He, ...t } = {}) {
|
|
2376
2376
|
super(t), this.value = [], e && this.fromString(e);
|
|
2377
2377
|
}
|
|
2378
2378
|
fromBER(e, t, i) {
|
|
@@ -2422,7 +2422,7 @@ class uu extends Ue {
|
|
|
2422
2422
|
} else {
|
|
2423
2423
|
const a = new Vs();
|
|
2424
2424
|
if (n > Number.MAX_SAFE_INTEGER) {
|
|
2425
|
-
|
|
2425
|
+
Ki();
|
|
2426
2426
|
const l = BigInt(n);
|
|
2427
2427
|
a.valueBigInt = l;
|
|
2428
2428
|
} else if (a.valueDec = parseInt(n, 10), isNaN(a.valueDec))
|
|
@@ -2453,7 +2453,7 @@ class uu extends Ue {
|
|
|
2453
2453
|
}
|
|
2454
2454
|
uu.NAME = "ObjectIdentifierValueBlock";
|
|
2455
2455
|
var fu;
|
|
2456
|
-
class
|
|
2456
|
+
class _n extends _e {
|
|
2457
2457
|
constructor(e = {}) {
|
|
2458
2458
|
super(e, uu), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 6;
|
|
2459
2459
|
}
|
|
@@ -2473,9 +2473,9 @@ class Tn extends _e {
|
|
|
2473
2473
|
};
|
|
2474
2474
|
}
|
|
2475
2475
|
}
|
|
2476
|
-
fu =
|
|
2476
|
+
fu = _n;
|
|
2477
2477
|
D.ObjectIdentifier = fu;
|
|
2478
|
-
|
|
2478
|
+
_n.NAME = "OBJECT IDENTIFIER";
|
|
2479
2479
|
class Ds extends mt(dr) {
|
|
2480
2480
|
constructor({ valueDec: e = 0, ...t } = {}) {
|
|
2481
2481
|
super(t), this.valueDec = e;
|
|
@@ -2518,7 +2518,7 @@ class Ds extends mt(dr) {
|
|
|
2518
2518
|
}
|
|
2519
2519
|
toString() {
|
|
2520
2520
|
let e = "";
|
|
2521
|
-
return this.isHexOnly ? e =
|
|
2521
|
+
return this.isHexOnly ? e = F.ToHex(this.valueHexView) : e = this.valueDec.toString(), e;
|
|
2522
2522
|
}
|
|
2523
2523
|
toJSON() {
|
|
2524
2524
|
return {
|
|
@@ -2529,7 +2529,7 @@ class Ds extends mt(dr) {
|
|
|
2529
2529
|
}
|
|
2530
2530
|
Ds.NAME = "relativeSidBlock";
|
|
2531
2531
|
class du extends Ue {
|
|
2532
|
-
constructor({ value: e =
|
|
2532
|
+
constructor({ value: e = He, ...t } = {}) {
|
|
2533
2533
|
super(t), this.value = [], e && this.fromString(e);
|
|
2534
2534
|
}
|
|
2535
2535
|
fromBER(e, t, i) {
|
|
@@ -2629,7 +2629,7 @@ D.Set = yu;
|
|
|
2629
2629
|
It.NAME = "SET";
|
|
2630
2630
|
class gu extends mt(Ue) {
|
|
2631
2631
|
constructor({ ...e } = {}) {
|
|
2632
|
-
super(e), this.isHexOnly = !0, this.value =
|
|
2632
|
+
super(e), this.isHexOnly = !0, this.value = He;
|
|
2633
2633
|
}
|
|
2634
2634
|
toJSON() {
|
|
2635
2635
|
return {
|
|
@@ -2661,13 +2661,13 @@ class mu extends Ye {
|
|
|
2661
2661
|
fromBuffer(e) {
|
|
2662
2662
|
this.valueBlock.valueHexView = T.toUint8Array(e);
|
|
2663
2663
|
try {
|
|
2664
|
-
this.valueBlock.value =
|
|
2664
|
+
this.valueBlock.value = F.ToUtf8String(e);
|
|
2665
2665
|
} catch (t) {
|
|
2666
|
-
this.warnings.push(`Error during "decodeURIComponent": ${t}, using raw string`), this.valueBlock.value =
|
|
2666
|
+
this.warnings.push(`Error during "decodeURIComponent": ${t}, using raw string`), this.valueBlock.value = F.ToBinary(e);
|
|
2667
2667
|
}
|
|
2668
2668
|
}
|
|
2669
2669
|
fromString(e) {
|
|
2670
|
-
this.valueBlock.valueHexView = new Uint8Array(
|
|
2670
|
+
this.valueBlock.valueHexView = new Uint8Array(F.FromUtf8String(e)), this.valueBlock.value = e;
|
|
2671
2671
|
}
|
|
2672
2672
|
}
|
|
2673
2673
|
mu.NAME = "Utf8StringValueBlock";
|
|
@@ -2682,22 +2682,22 @@ D.Utf8String = bu;
|
|
|
2682
2682
|
Pt.NAME = "UTF8String";
|
|
2683
2683
|
class wu extends Ye {
|
|
2684
2684
|
fromBuffer(e) {
|
|
2685
|
-
this.valueBlock.value =
|
|
2685
|
+
this.valueBlock.value = F.ToUtf16String(e), this.valueBlock.valueHexView = T.toUint8Array(e);
|
|
2686
2686
|
}
|
|
2687
2687
|
fromString(e) {
|
|
2688
|
-
this.valueBlock.value = e, this.valueBlock.valueHexView = new Uint8Array(
|
|
2688
|
+
this.valueBlock.value = e, this.valueBlock.valueHexView = new Uint8Array(F.FromUtf16String(e));
|
|
2689
2689
|
}
|
|
2690
2690
|
}
|
|
2691
2691
|
wu.NAME = "BmpStringValueBlock";
|
|
2692
2692
|
var Au;
|
|
2693
|
-
class
|
|
2693
|
+
class Tn extends wu {
|
|
2694
2694
|
constructor({ ...e } = {}) {
|
|
2695
2695
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 30;
|
|
2696
2696
|
}
|
|
2697
2697
|
}
|
|
2698
|
-
Au =
|
|
2698
|
+
Au = Tn;
|
|
2699
2699
|
D.BmpString = Au;
|
|
2700
|
-
|
|
2700
|
+
Tn.NAME = "BMPString";
|
|
2701
2701
|
class Su extends Ye {
|
|
2702
2702
|
fromBuffer(e) {
|
|
2703
2703
|
const t = ArrayBuffer.isView(e) ? e.slice().buffer : e.slice(0), i = new Uint8Array(t);
|
|
@@ -2720,86 +2720,86 @@ class Su extends Ye {
|
|
|
2720
2720
|
}
|
|
2721
2721
|
Su.NAME = "UniversalStringValueBlock";
|
|
2722
2722
|
var ku;
|
|
2723
|
-
class
|
|
2723
|
+
class jn extends Su {
|
|
2724
2724
|
constructor({ ...e } = {}) {
|
|
2725
2725
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 28;
|
|
2726
2726
|
}
|
|
2727
2727
|
}
|
|
2728
|
-
ku =
|
|
2728
|
+
ku = jn;
|
|
2729
2729
|
D.UniversalString = ku;
|
|
2730
|
-
|
|
2730
|
+
jn.NAME = "UniversalString";
|
|
2731
2731
|
var xu;
|
|
2732
|
-
class
|
|
2732
|
+
class Pn extends Ye {
|
|
2733
2733
|
constructor(e = {}) {
|
|
2734
2734
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 18;
|
|
2735
2735
|
}
|
|
2736
2736
|
}
|
|
2737
|
-
xu =
|
|
2737
|
+
xu = Pn;
|
|
2738
2738
|
D.NumericString = xu;
|
|
2739
|
-
|
|
2739
|
+
Pn.NAME = "NumericString";
|
|
2740
2740
|
var Cu;
|
|
2741
|
-
class
|
|
2741
|
+
class Rn extends Ye {
|
|
2742
2742
|
constructor(e = {}) {
|
|
2743
2743
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 19;
|
|
2744
2744
|
}
|
|
2745
2745
|
}
|
|
2746
|
-
Cu =
|
|
2746
|
+
Cu = Rn;
|
|
2747
2747
|
D.PrintableString = Cu;
|
|
2748
|
-
|
|
2748
|
+
Rn.NAME = "PrintableString";
|
|
2749
2749
|
var Bu;
|
|
2750
|
-
class
|
|
2750
|
+
class Vn extends Ye {
|
|
2751
2751
|
constructor(e = {}) {
|
|
2752
2752
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 20;
|
|
2753
2753
|
}
|
|
2754
2754
|
}
|
|
2755
|
-
Bu =
|
|
2755
|
+
Bu = Vn;
|
|
2756
2756
|
D.TeletexString = Bu;
|
|
2757
|
-
|
|
2757
|
+
Vn.NAME = "TeletexString";
|
|
2758
2758
|
var Iu;
|
|
2759
|
-
class
|
|
2759
|
+
class Dn extends Ye {
|
|
2760
2760
|
constructor(e = {}) {
|
|
2761
2761
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 21;
|
|
2762
2762
|
}
|
|
2763
2763
|
}
|
|
2764
|
-
Iu =
|
|
2764
|
+
Iu = Dn;
|
|
2765
2765
|
D.VideotexString = Iu;
|
|
2766
|
-
|
|
2766
|
+
Dn.NAME = "VideotexString";
|
|
2767
2767
|
var Eu;
|
|
2768
|
-
class
|
|
2768
|
+
class Mn extends Ye {
|
|
2769
2769
|
constructor(e = {}) {
|
|
2770
2770
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 22;
|
|
2771
2771
|
}
|
|
2772
2772
|
}
|
|
2773
|
-
Eu =
|
|
2773
|
+
Eu = Mn;
|
|
2774
2774
|
D.IA5String = Eu;
|
|
2775
|
-
|
|
2775
|
+
Mn.NAME = "IA5String";
|
|
2776
2776
|
var Ou;
|
|
2777
|
-
class
|
|
2777
|
+
class $n extends Ye {
|
|
2778
2778
|
constructor(e = {}) {
|
|
2779
2779
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 25;
|
|
2780
2780
|
}
|
|
2781
2781
|
}
|
|
2782
|
-
Ou =
|
|
2782
|
+
Ou = $n;
|
|
2783
2783
|
D.GraphicString = Ou;
|
|
2784
|
-
|
|
2784
|
+
$n.NAME = "GraphicString";
|
|
2785
2785
|
var Nu;
|
|
2786
|
-
class
|
|
2786
|
+
class yi extends Ye {
|
|
2787
2787
|
constructor(e = {}) {
|
|
2788
2788
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 26;
|
|
2789
2789
|
}
|
|
2790
2790
|
}
|
|
2791
|
-
Nu =
|
|
2791
|
+
Nu = yi;
|
|
2792
2792
|
D.VisibleString = Nu;
|
|
2793
|
-
|
|
2793
|
+
yi.NAME = "VisibleString";
|
|
2794
2794
|
var _u;
|
|
2795
|
-
class
|
|
2795
|
+
class Un extends Ye {
|
|
2796
2796
|
constructor(e = {}) {
|
|
2797
2797
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 27;
|
|
2798
2798
|
}
|
|
2799
2799
|
}
|
|
2800
|
-
_u =
|
|
2800
|
+
_u = Un;
|
|
2801
2801
|
D.GeneralString = _u;
|
|
2802
|
-
|
|
2802
|
+
Un.NAME = "GeneralString";
|
|
2803
2803
|
var Tu;
|
|
2804
2804
|
class Ln extends Ye {
|
|
2805
2805
|
constructor(e = {}) {
|
|
@@ -2810,7 +2810,7 @@ Tu = Ln;
|
|
|
2810
2810
|
D.CharacterString = Tu;
|
|
2811
2811
|
Ln.NAME = "CharacterString";
|
|
2812
2812
|
var ju;
|
|
2813
|
-
class
|
|
2813
|
+
class gi extends yi {
|
|
2814
2814
|
constructor({ value: e, valueDate: t, ...i } = {}) {
|
|
2815
2815
|
if (super(i), this.year = 0, this.month = 0, this.day = 0, this.hour = 0, this.minute = 0, this.second = 0, e) {
|
|
2816
2816
|
this.fromString(e), this.valueBlock.valueHexView = new Uint8Array(e.length);
|
|
@@ -2865,11 +2865,11 @@ class vi extends gi {
|
|
|
2865
2865
|
};
|
|
2866
2866
|
}
|
|
2867
2867
|
}
|
|
2868
|
-
ju =
|
|
2868
|
+
ju = gi;
|
|
2869
2869
|
D.UTCTime = ju;
|
|
2870
|
-
|
|
2870
|
+
gi.NAME = "UTCTime";
|
|
2871
2871
|
var Pu;
|
|
2872
|
-
class
|
|
2872
|
+
class Hn extends gi {
|
|
2873
2873
|
constructor(e = {}) {
|
|
2874
2874
|
var t;
|
|
2875
2875
|
super(e), (t = this.millisecond) !== null && t !== void 0 || (this.millisecond = 0), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 24;
|
|
@@ -2989,9 +2989,9 @@ class Fn extends vi {
|
|
|
2989
2989
|
};
|
|
2990
2990
|
}
|
|
2991
2991
|
}
|
|
2992
|
-
Pu =
|
|
2992
|
+
Pu = Hn;
|
|
2993
2993
|
D.GeneralizedTime = Pu;
|
|
2994
|
-
|
|
2994
|
+
Hn.NAME = "GeneralizedTime";
|
|
2995
2995
|
var Ru;
|
|
2996
2996
|
class oa extends Pt {
|
|
2997
2997
|
constructor(e = {}) {
|
|
@@ -3038,7 +3038,7 @@ $u = ua;
|
|
|
3038
3038
|
D.TIME = $u;
|
|
3039
3039
|
ua.NAME = "TIME";
|
|
3040
3040
|
class ir {
|
|
3041
|
-
constructor({ name: e =
|
|
3041
|
+
constructor({ name: e = He, optional: t = !1 } = {}) {
|
|
3042
3042
|
this.name = e, this.optional = t;
|
|
3043
3043
|
}
|
|
3044
3044
|
}
|
|
@@ -3047,13 +3047,13 @@ class fa extends ir {
|
|
|
3047
3047
|
super(t), this.value = e;
|
|
3048
3048
|
}
|
|
3049
3049
|
}
|
|
3050
|
-
class
|
|
3050
|
+
class qi extends ir {
|
|
3051
3051
|
constructor({ value: e = new ir(), local: t = !1, ...i } = {}) {
|
|
3052
3052
|
super(i), this.value = e, this.local = t;
|
|
3053
3053
|
}
|
|
3054
3054
|
}
|
|
3055
3055
|
class hd {
|
|
3056
|
-
constructor({ data: e =
|
|
3056
|
+
constructor({ data: e = En } = {}) {
|
|
3057
3057
|
this.dataView = T.toUint8Array(e);
|
|
3058
3058
|
}
|
|
3059
3059
|
get data() {
|
|
@@ -3193,14 +3193,14 @@ function Jt(r, e, t) {
|
|
|
3193
3193
|
result: r
|
|
3194
3194
|
};
|
|
3195
3195
|
}
|
|
3196
|
-
if (t.name && (t.name = t.name.replace(/^\s+|\s+$/g,
|
|
3196
|
+
if (t.name && (t.name = t.name.replace(/^\s+|\s+$/g, He), t.name && (r[t.name] = e)), t instanceof D.Constructed) {
|
|
3197
3197
|
let s = 0, a = {
|
|
3198
3198
|
verified: !1,
|
|
3199
3199
|
result: {
|
|
3200
3200
|
error: "Unknown error"
|
|
3201
3201
|
}
|
|
3202
3202
|
}, l = t.valueBlock.value.length;
|
|
3203
|
-
if (l > 0 && t.valueBlock.value[0] instanceof
|
|
3203
|
+
if (l > 0 && t.valueBlock.value[0] instanceof qi && (l = e.valueBlock.value.length), l === 0)
|
|
3204
3204
|
return {
|
|
3205
3205
|
verified: !0,
|
|
3206
3206
|
result: r
|
|
@@ -3212,7 +3212,7 @@ function Jt(r, e, t) {
|
|
|
3212
3212
|
return u ? {
|
|
3213
3213
|
verified: !0,
|
|
3214
3214
|
result: r
|
|
3215
|
-
} : (t.name && (t.name = t.name.replace(/^\s+|\s+$/g,
|
|
3215
|
+
} : (t.name && (t.name = t.name.replace(/^\s+|\s+$/g, He), t.name && delete r[t.name]), r.error = "Inconsistent object length", {
|
|
3216
3216
|
verified: !1,
|
|
3217
3217
|
result: r
|
|
3218
3218
|
});
|
|
@@ -3224,14 +3224,14 @@ function Jt(r, e, t) {
|
|
|
3224
3224
|
verified: !1,
|
|
3225
3225
|
result: r
|
|
3226
3226
|
};
|
|
3227
|
-
return r.error = "Inconsistent length between ASN.1 data and schema", t.name && (t.name = t.name.replace(/^\s+|\s+$/g,
|
|
3227
|
+
return r.error = "Inconsistent length between ASN.1 data and schema", t.name && (t.name = t.name.replace(/^\s+|\s+$/g, He), t.name && (delete r[t.name], d.name = t.name)), d;
|
|
3228
3228
|
}
|
|
3229
|
-
} else if (t.valueBlock.value[0] instanceof
|
|
3229
|
+
} else if (t.valueBlock.value[0] instanceof qi) {
|
|
3230
3230
|
if (a = Jt(r, e.valueBlock.value[u], t.valueBlock.value[0].value), a.verified === !1)
|
|
3231
3231
|
if (t.valueBlock.value[0].optional)
|
|
3232
3232
|
s++;
|
|
3233
3233
|
else
|
|
3234
|
-
return t.name && (t.name = t.name.replace(/^\s+|\s+$/g,
|
|
3234
|
+
return t.name && (t.name = t.name.replace(/^\s+|\s+$/g, He), t.name && delete r[t.name]), a;
|
|
3235
3235
|
if (ks in t.valueBlock.value[0] && t.valueBlock.value[0].name.length > 0) {
|
|
3236
3236
|
let d = {};
|
|
3237
3237
|
cd in t.valueBlock.value[0] && t.valueBlock.value[0].local ? d = e : d = r, typeof d[t.valueBlock.value[0].name] > "u" && (d[t.valueBlock.value[0].name] = []), d[t.valueBlock.value[0].name].push(e.valueBlock.value[u]);
|
|
@@ -3240,13 +3240,13 @@ function Jt(r, e, t) {
|
|
|
3240
3240
|
if (t.valueBlock.value[u].optional)
|
|
3241
3241
|
s++;
|
|
3242
3242
|
else
|
|
3243
|
-
return t.name && (t.name = t.name.replace(/^\s+|\s+$/g,
|
|
3243
|
+
return t.name && (t.name = t.name.replace(/^\s+|\s+$/g, He), t.name && delete r[t.name]), a;
|
|
3244
3244
|
if (a.verified === !1) {
|
|
3245
3245
|
const u = {
|
|
3246
3246
|
verified: !1,
|
|
3247
3247
|
result: r
|
|
3248
3248
|
};
|
|
3249
|
-
return t.name && (t.name = t.name.replace(/^\s+|\s+$/g,
|
|
3249
|
+
return t.name && (t.name = t.name.replace(/^\s+|\s+$/g, He), t.name && (delete r[t.name], u.name = t.name)), u;
|
|
3250
3250
|
}
|
|
3251
3251
|
return {
|
|
3252
3252
|
verified: !0,
|
|
@@ -3260,7 +3260,7 @@ function Jt(r, e, t) {
|
|
|
3260
3260
|
verified: !1,
|
|
3261
3261
|
result: s.result
|
|
3262
3262
|
};
|
|
3263
|
-
return t.name && (t.name = t.name.replace(/^\s+|\s+$/g,
|
|
3263
|
+
return t.name && (t.name = t.name.replace(/^\s+|\s+$/g, He), t.name && (delete r[t.name], a.name = t.name)), a;
|
|
3264
3264
|
}
|
|
3265
3265
|
return Jt(r, s.result, t.primitiveSchema);
|
|
3266
3266
|
}
|
|
@@ -3287,8 +3287,8 @@ const Uu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3287
3287
|
BaseBlock: _e,
|
|
3288
3288
|
BaseStringBlock: ra,
|
|
3289
3289
|
BitString: Qt,
|
|
3290
|
-
BmpString:
|
|
3291
|
-
Boolean:
|
|
3290
|
+
BmpString: Tn,
|
|
3291
|
+
Boolean: On,
|
|
3292
3292
|
CharacterString: Ln,
|
|
3293
3293
|
Choice: fa,
|
|
3294
3294
|
Constructed: Fe,
|
|
@@ -3296,34 +3296,34 @@ const Uu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3296
3296
|
DateTime: ca,
|
|
3297
3297
|
Duration: la,
|
|
3298
3298
|
EndOfContent: ia,
|
|
3299
|
-
Enumerated:
|
|
3300
|
-
GeneralString:
|
|
3301
|
-
GeneralizedTime:
|
|
3302
|
-
GraphicString:
|
|
3299
|
+
Enumerated: Nn,
|
|
3300
|
+
GeneralString: Un,
|
|
3301
|
+
GeneralizedTime: Hn,
|
|
3302
|
+
GraphicString: $n,
|
|
3303
3303
|
HexBlock: mt,
|
|
3304
|
-
IA5String:
|
|
3304
|
+
IA5String: Mn,
|
|
3305
3305
|
Integer: yt,
|
|
3306
3306
|
Null: rr,
|
|
3307
|
-
NumericString:
|
|
3308
|
-
ObjectIdentifier:
|
|
3307
|
+
NumericString: Pn,
|
|
3308
|
+
ObjectIdentifier: _n,
|
|
3309
3309
|
OctetString: Zt,
|
|
3310
|
-
Primitive:
|
|
3311
|
-
PrintableString:
|
|
3310
|
+
Primitive: pi,
|
|
3311
|
+
PrintableString: Rn,
|
|
3312
3312
|
RawData: hd,
|
|
3313
3313
|
RelativeObjectIdentifier: sa,
|
|
3314
|
-
Repeated:
|
|
3314
|
+
Repeated: qi,
|
|
3315
3315
|
Sequence: Bt,
|
|
3316
3316
|
Set: It,
|
|
3317
3317
|
TIME: ua,
|
|
3318
|
-
TeletexString:
|
|
3318
|
+
TeletexString: Vn,
|
|
3319
3319
|
TimeOfDay: aa,
|
|
3320
|
-
UTCTime:
|
|
3321
|
-
UniversalString:
|
|
3320
|
+
UTCTime: gi,
|
|
3321
|
+
UniversalString: jn,
|
|
3322
3322
|
Utf8String: Pt,
|
|
3323
3323
|
ValueBlock: Ue,
|
|
3324
|
-
VideotexString:
|
|
3325
|
-
ViewWriter:
|
|
3326
|
-
VisibleString:
|
|
3324
|
+
VideotexString: Dn,
|
|
3325
|
+
ViewWriter: In,
|
|
3326
|
+
VisibleString: yi,
|
|
3327
3327
|
compareSchema: Jt,
|
|
3328
3328
|
fromBER: Sr,
|
|
3329
3329
|
verifySchema: pd
|
|
@@ -3336,7 +3336,7 @@ var h;
|
|
|
3336
3336
|
(function(r) {
|
|
3337
3337
|
r[r.Any = 1] = "Any", r[r.Boolean = 2] = "Boolean", r[r.OctetString = 3] = "OctetString", r[r.BitString = 4] = "BitString", r[r.Integer = 5] = "Integer", r[r.Enumerated = 6] = "Enumerated", r[r.ObjectIdentifier = 7] = "ObjectIdentifier", r[r.Utf8String = 8] = "Utf8String", r[r.BmpString = 9] = "BmpString", r[r.UniversalString = 10] = "UniversalString", r[r.NumericString = 11] = "NumericString", r[r.PrintableString = 12] = "PrintableString", r[r.TeletexString = 13] = "TeletexString", r[r.VideotexString = 14] = "VideotexString", r[r.IA5String = 15] = "IA5String", r[r.GraphicString = 16] = "GraphicString", r[r.VisibleString = 17] = "VisibleString", r[r.GeneralString = 18] = "GeneralString", r[r.CharacterString = 19] = "CharacterString", r[r.UTCTime = 20] = "UTCTime", r[r.GeneralizedTime = 21] = "GeneralizedTime", r[r.DATE = 22] = "DATE", r[r.TimeOfDay = 23] = "TimeOfDay", r[r.DateTime = 24] = "DateTime", r[r.Duration = 25] = "Duration", r[r.TIME = 26] = "TIME", r[r.Null = 27] = "Null";
|
|
3338
3338
|
})(h || (h = {}));
|
|
3339
|
-
class
|
|
3339
|
+
class Fn {
|
|
3340
3340
|
constructor(e, t = 0) {
|
|
3341
3341
|
if (this.unusedBits = 0, this.value = new ArrayBuffer(0), e)
|
|
3342
3342
|
if (typeof e == "number")
|
|
@@ -3413,7 +3413,7 @@ const yd = {
|
|
|
3413
3413
|
toASN: (r) => new yt({ value: +r })
|
|
3414
3414
|
}, vd = {
|
|
3415
3415
|
fromASN: (r) => r.valueBlock.valueDec,
|
|
3416
|
-
toASN: (r) => new
|
|
3416
|
+
toASN: (r) => new Nn({ value: r })
|
|
3417
3417
|
}, ve = {
|
|
3418
3418
|
fromASN: (r) => r.valueBlock.valueHexView,
|
|
3419
3419
|
toASN: (r) => new yt({ valueHex: r })
|
|
@@ -3422,11 +3422,11 @@ const yd = {
|
|
|
3422
3422
|
toASN: (r) => new Qt({ valueHex: r })
|
|
3423
3423
|
}, bd = {
|
|
3424
3424
|
fromASN: (r) => r.valueBlock.toString(),
|
|
3425
|
-
toASN: (r) => new
|
|
3425
|
+
toASN: (r) => new _n({ value: r })
|
|
3426
3426
|
}, wd = {
|
|
3427
3427
|
fromASN: (r) => r.valueBlock.value,
|
|
3428
|
-
toASN: (r) => new
|
|
3429
|
-
},
|
|
3428
|
+
toASN: (r) => new On({ value: r })
|
|
3429
|
+
}, zi = {
|
|
3430
3430
|
fromASN: (r) => r.valueBlock.valueHexView,
|
|
3431
3431
|
toASN: (r) => new Zt({ valueHex: r })
|
|
3432
3432
|
}, Ad = {
|
|
@@ -3439,12 +3439,12 @@ function et(r) {
|
|
|
3439
3439
|
toASN: (e) => new r({ value: e })
|
|
3440
3440
|
};
|
|
3441
3441
|
}
|
|
3442
|
-
const
|
|
3442
|
+
const Lu = et(Pt), Sd = et(Tn), kd = et(jn), xd = et(Pn), Cd = et(Rn), Bd = et(Vn), Id = et(Dn), Ed = et(Mn), Od = et($n), Nd = et(yi), _d = et(Un), Td = et(Ln), jd = {
|
|
3443
3443
|
fromASN: (r) => r.toDate(),
|
|
3444
|
-
toASN: (r) => new
|
|
3444
|
+
toASN: (r) => new gi({ valueDate: r })
|
|
3445
3445
|
}, Pd = {
|
|
3446
3446
|
fromASN: (r) => r.toDate(),
|
|
3447
|
-
toASN: (r) => new
|
|
3447
|
+
toASN: (r) => new Hn({ valueDate: r })
|
|
3448
3448
|
}, Rd = {
|
|
3449
3449
|
fromASN: () => null,
|
|
3450
3450
|
toASN: () => new rr()
|
|
@@ -3480,7 +3480,7 @@ function da(r) {
|
|
|
3480
3480
|
case h.ObjectIdentifier:
|
|
3481
3481
|
return bd;
|
|
3482
3482
|
case h.OctetString:
|
|
3483
|
-
return
|
|
3483
|
+
return zi;
|
|
3484
3484
|
case h.PrintableString:
|
|
3485
3485
|
return Cd;
|
|
3486
3486
|
case h.TeletexString:
|
|
@@ -3490,7 +3490,7 @@ function da(r) {
|
|
|
3490
3490
|
case h.UniversalString:
|
|
3491
3491
|
return kd;
|
|
3492
3492
|
case h.Utf8String:
|
|
3493
|
-
return
|
|
3493
|
+
return Lu;
|
|
3494
3494
|
case h.VideotexString:
|
|
3495
3495
|
return Id;
|
|
3496
3496
|
case h.VisibleString:
|
|
@@ -3502,11 +3502,11 @@ function da(r) {
|
|
|
3502
3502
|
function Ct(r) {
|
|
3503
3503
|
return typeof r == "function" && r.prototype ? r.prototype.toASN && r.prototype.fromASN ? !0 : Ct(r.prototype) : !!(r && typeof r == "object" && "toASN" in r && "fromASN" in r);
|
|
3504
3504
|
}
|
|
3505
|
-
function
|
|
3505
|
+
function Hu(r) {
|
|
3506
3506
|
var e;
|
|
3507
3507
|
if (r) {
|
|
3508
3508
|
const t = Object.getPrototypeOf(r);
|
|
3509
|
-
return ((e = t == null ? void 0 : t.prototype) === null || e === void 0 ? void 0 : e.constructor) === Array ? !0 :
|
|
3509
|
+
return ((e = t == null ? void 0 : t.prototype) === null || e === void 0 ? void 0 : e.constructor) === Array ? !0 : Hu(t);
|
|
3510
3510
|
}
|
|
3511
3511
|
return !1;
|
|
3512
3512
|
}
|
|
@@ -3563,7 +3563,7 @@ class Dd {
|
|
|
3563
3563
|
u = new v({
|
|
3564
3564
|
name: "",
|
|
3565
3565
|
value: [
|
|
3566
|
-
new
|
|
3566
|
+
new qi({
|
|
3567
3567
|
name: l,
|
|
3568
3568
|
value: u
|
|
3569
3569
|
})
|
|
@@ -3573,7 +3573,7 @@ class Dd {
|
|
|
3573
3573
|
if (a.context !== null && a.context !== void 0)
|
|
3574
3574
|
if (a.implicit)
|
|
3575
3575
|
if (typeof a.type == "number" || Ct(a.type)) {
|
|
3576
|
-
const v = a.repeated ? Fe :
|
|
3576
|
+
const v = a.repeated ? Fe : pi;
|
|
3577
3577
|
n.push(new v({
|
|
3578
3578
|
name: l,
|
|
3579
3579
|
optional: d,
|
|
@@ -3677,7 +3677,7 @@ class Md {
|
|
|
3677
3677
|
if (!a.verified)
|
|
3678
3678
|
throw new Xa(`Data does not match to ${t.name} ASN1 schema. ${a.result.error}`);
|
|
3679
3679
|
const l = new t();
|
|
3680
|
-
if (
|
|
3680
|
+
if (Hu(t)) {
|
|
3681
3681
|
if (!("value" in e.valueBlock && Array.isArray(e.valueBlock.value)))
|
|
3682
3682
|
throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");
|
|
3683
3683
|
const u = n.itemType;
|
|
@@ -3772,7 +3772,7 @@ class ha {
|
|
|
3772
3772
|
if (l.implicit)
|
|
3773
3773
|
if (!l.repeated && (typeof l.type == "number" || Ct(l.type))) {
|
|
3774
3774
|
const v = {};
|
|
3775
|
-
v.valueHex = d instanceof rr ? d.valueBeforeDecodeView : d.valueBlock.toBER(), n.push(new
|
|
3775
|
+
v.valueHex = d instanceof rr ? d.valueBeforeDecodeView : d.valueBlock.toBER(), n.push(new pi({
|
|
3776
3776
|
optional: l.optional,
|
|
3777
3777
|
idBlock: {
|
|
3778
3778
|
tagClass: 3,
|
|
@@ -4384,7 +4384,7 @@ class tc {
|
|
|
4384
4384
|
const t = new Uint8Array(e);
|
|
4385
4385
|
return ec.fromByteArray(Array.from(t)).toString();
|
|
4386
4386
|
}
|
|
4387
|
-
return this.decodeIP(
|
|
4387
|
+
return this.decodeIP(F.ToHex(e));
|
|
4388
4388
|
}
|
|
4389
4389
|
static fromString(e) {
|
|
4390
4390
|
const t = ec.parse(e);
|
|
@@ -4423,7 +4423,7 @@ let Cr = class extends Te {
|
|
|
4423
4423
|
super(e), Object.assign(this, e);
|
|
4424
4424
|
}
|
|
4425
4425
|
toString() {
|
|
4426
|
-
return this.ia5String || (this.anyValue ?
|
|
4426
|
+
return this.ia5String || (this.anyValue ? F.ToHex(this.anyValue) : super.toString());
|
|
4427
4427
|
}
|
|
4428
4428
|
};
|
|
4429
4429
|
o([
|
|
@@ -4435,34 +4435,34 @@ o([
|
|
|
4435
4435
|
Cr = o([
|
|
4436
4436
|
B({ type: x.Choice })
|
|
4437
4437
|
], Cr);
|
|
4438
|
-
class
|
|
4438
|
+
class Kn {
|
|
4439
4439
|
constructor(e = {}) {
|
|
4440
4440
|
this.type = "", this.value = new Cr(), Object.assign(this, e);
|
|
4441
4441
|
}
|
|
4442
4442
|
}
|
|
4443
4443
|
o([
|
|
4444
4444
|
c({ type: h.ObjectIdentifier })
|
|
4445
|
-
],
|
|
4445
|
+
], Kn.prototype, "type", void 0);
|
|
4446
4446
|
o([
|
|
4447
4447
|
c({ type: Cr })
|
|
4448
|
-
],
|
|
4448
|
+
], Kn.prototype, "value", void 0);
|
|
4449
4449
|
let Br = Ms = class extends fe {
|
|
4450
4450
|
constructor(e) {
|
|
4451
4451
|
super(e), Object.setPrototypeOf(this, Ms.prototype);
|
|
4452
4452
|
}
|
|
4453
4453
|
};
|
|
4454
4454
|
Br = Ms = o([
|
|
4455
|
-
B({ type: x.Set, itemType:
|
|
4455
|
+
B({ type: x.Set, itemType: Kn })
|
|
4456
4456
|
], Br);
|
|
4457
|
-
let
|
|
4457
|
+
let Ls = $s = class extends fe {
|
|
4458
4458
|
constructor(e) {
|
|
4459
4459
|
super(e), Object.setPrototypeOf(this, $s.prototype);
|
|
4460
4460
|
}
|
|
4461
4461
|
};
|
|
4462
|
-
|
|
4462
|
+
Ls = $s = o([
|
|
4463
4463
|
B({ type: x.Sequence, itemType: Br })
|
|
4464
|
-
],
|
|
4465
|
-
let Be = Us = class extends
|
|
4464
|
+
], Ls);
|
|
4465
|
+
let Be = Us = class extends Ls {
|
|
4466
4466
|
constructor(e) {
|
|
4467
4467
|
super(e), Object.setPrototypeOf(this, Us.prototype);
|
|
4468
4468
|
}
|
|
@@ -4471,20 +4471,20 @@ Be = Us = o([
|
|
|
4471
4471
|
B({ type: x.Sequence })
|
|
4472
4472
|
], Be);
|
|
4473
4473
|
const $d = {
|
|
4474
|
-
fromASN: (r) => tc.toString(
|
|
4475
|
-
toASN: (r) =>
|
|
4474
|
+
fromASN: (r) => tc.toString(zi.fromASN(r)),
|
|
4475
|
+
toASN: (r) => zi.toASN(tc.fromString(r))
|
|
4476
4476
|
};
|
|
4477
|
-
class
|
|
4477
|
+
class ii {
|
|
4478
4478
|
constructor(e = {}) {
|
|
4479
4479
|
this.typeId = "", this.value = new ArrayBuffer(0), Object.assign(this, e);
|
|
4480
4480
|
}
|
|
4481
4481
|
}
|
|
4482
4482
|
o([
|
|
4483
4483
|
c({ type: h.ObjectIdentifier })
|
|
4484
|
-
],
|
|
4484
|
+
], ii.prototype, "typeId", void 0);
|
|
4485
4485
|
o([
|
|
4486
4486
|
c({ type: h.Any, context: 0 })
|
|
4487
|
-
],
|
|
4487
|
+
], ii.prototype, "value", void 0);
|
|
4488
4488
|
class pa {
|
|
4489
4489
|
constructor(e = {}) {
|
|
4490
4490
|
this.partyName = new Te(), Object.assign(this, e);
|
|
@@ -4502,7 +4502,7 @@ let te = class {
|
|
|
4502
4502
|
}
|
|
4503
4503
|
};
|
|
4504
4504
|
o([
|
|
4505
|
-
c({ type:
|
|
4505
|
+
c({ type: ii, context: 0, implicit: !0 })
|
|
4506
4506
|
], te.prototype, "otherName", void 0);
|
|
4507
4507
|
o([
|
|
4508
4508
|
c({ type: h.IA5String, context: 1, implicit: !0 })
|
|
@@ -4532,26 +4532,26 @@ te = o([
|
|
|
4532
4532
|
B({ type: x.Choice })
|
|
4533
4533
|
], te);
|
|
4534
4534
|
const ya = "1.3.6.1.5.5.7", Ud = `${ya}.1`, $r = `${ya}.3`, qn = `${ya}.48`, rc = `${qn}.1`, ic = `${qn}.2`, nc = `${qn}.3`, sc = `${qn}.5`, Ft = "2.5.29";
|
|
4535
|
-
var
|
|
4535
|
+
var Hs;
|
|
4536
4536
|
const Fs = `${Ud}.1`;
|
|
4537
|
-
class
|
|
4537
|
+
class vi {
|
|
4538
4538
|
constructor(e = {}) {
|
|
4539
4539
|
this.accessMethod = "", this.accessLocation = new te(), Object.assign(this, e);
|
|
4540
4540
|
}
|
|
4541
4541
|
}
|
|
4542
4542
|
o([
|
|
4543
4543
|
c({ type: h.ObjectIdentifier })
|
|
4544
|
-
],
|
|
4544
|
+
], vi.prototype, "accessMethod", void 0);
|
|
4545
4545
|
o([
|
|
4546
4546
|
c({ type: te })
|
|
4547
|
-
],
|
|
4548
|
-
let Ar =
|
|
4547
|
+
], vi.prototype, "accessLocation", void 0);
|
|
4548
|
+
let Ar = Hs = class extends fe {
|
|
4549
4549
|
constructor(e) {
|
|
4550
|
-
super(e), Object.setPrototypeOf(this,
|
|
4550
|
+
super(e), Object.setPrototypeOf(this, Hs.prototype);
|
|
4551
4551
|
}
|
|
4552
4552
|
};
|
|
4553
|
-
Ar =
|
|
4554
|
-
B({ type: x.Sequence, itemType:
|
|
4553
|
+
Ar = Hs = o([
|
|
4554
|
+
B({ type: x.Sequence, itemType: vi })
|
|
4555
4555
|
], Ar);
|
|
4556
4556
|
const Ks = `${Ft}.35`;
|
|
4557
4557
|
class ga extends oe {
|
|
@@ -4577,17 +4577,17 @@ o([
|
|
|
4577
4577
|
})
|
|
4578
4578
|
], Yt.prototype, "authorityCertSerialNumber", void 0);
|
|
4579
4579
|
const Ku = `${Ft}.19`;
|
|
4580
|
-
class
|
|
4580
|
+
class Gi {
|
|
4581
4581
|
constructor(e = {}) {
|
|
4582
4582
|
this.cA = !1, Object.assign(this, e);
|
|
4583
4583
|
}
|
|
4584
4584
|
}
|
|
4585
4585
|
o([
|
|
4586
4586
|
c({ type: h.Boolean, defaultValue: !1 })
|
|
4587
|
-
],
|
|
4587
|
+
], Gi.prototype, "cA", void 0);
|
|
4588
4588
|
o([
|
|
4589
4589
|
c({ type: h.Integer, optional: !0 })
|
|
4590
|
-
],
|
|
4590
|
+
], Gi.prototype, "pathLenConstraint", void 0);
|
|
4591
4591
|
var qs;
|
|
4592
4592
|
let Me = qs = class extends fe {
|
|
4593
4593
|
constructor(e) {
|
|
@@ -4653,20 +4653,20 @@ o([
|
|
|
4653
4653
|
o([
|
|
4654
4654
|
c({ type: Et, optional: !0 })
|
|
4655
4655
|
], ma.prototype, "explicitText", void 0);
|
|
4656
|
-
let
|
|
4656
|
+
let Wi = class {
|
|
4657
4657
|
constructor(e = {}) {
|
|
4658
4658
|
Object.assign(this, e);
|
|
4659
4659
|
}
|
|
4660
4660
|
};
|
|
4661
4661
|
o([
|
|
4662
4662
|
c({ type: h.IA5String })
|
|
4663
|
-
],
|
|
4663
|
+
], Wi.prototype, "cPSuri", void 0);
|
|
4664
4664
|
o([
|
|
4665
4665
|
c({ type: ma })
|
|
4666
|
-
],
|
|
4667
|
-
|
|
4666
|
+
], Wi.prototype, "userNotice", void 0);
|
|
4667
|
+
Wi = o([
|
|
4668
4668
|
B({ type: x.Choice })
|
|
4669
|
-
],
|
|
4669
|
+
], Wi);
|
|
4670
4670
|
class ba {
|
|
4671
4671
|
constructor(e = {}) {
|
|
4672
4672
|
this.policyQualifierId = "", this.qualifier = new ArrayBuffer(0), Object.assign(this, e);
|
|
@@ -4689,26 +4689,26 @@ o([
|
|
|
4689
4689
|
o([
|
|
4690
4690
|
c({ type: ba, repeated: "sequence", optional: !0 })
|
|
4691
4691
|
], zn.prototype, "policyQualifiers", void 0);
|
|
4692
|
-
let
|
|
4692
|
+
let Ji = Gs = class extends fe {
|
|
4693
4693
|
constructor(e) {
|
|
4694
4694
|
super(e), Object.setPrototypeOf(this, Gs.prototype);
|
|
4695
4695
|
}
|
|
4696
4696
|
};
|
|
4697
|
-
|
|
4697
|
+
Ji = Gs = o([
|
|
4698
4698
|
B({ type: x.Sequence, itemType: zn })
|
|
4699
|
-
],
|
|
4700
|
-
let
|
|
4699
|
+
], Ji);
|
|
4700
|
+
let Yi = class {
|
|
4701
4701
|
constructor(e = 0) {
|
|
4702
4702
|
this.value = e;
|
|
4703
4703
|
}
|
|
4704
4704
|
};
|
|
4705
4705
|
o([
|
|
4706
4706
|
c({ type: h.Integer })
|
|
4707
|
-
],
|
|
4708
|
-
|
|
4707
|
+
], Yi.prototype, "value", void 0);
|
|
4708
|
+
Yi = o([
|
|
4709
4709
|
B({ type: x.Choice })
|
|
4710
|
-
],
|
|
4711
|
-
let ac = class extends
|
|
4710
|
+
], Yi);
|
|
4711
|
+
let ac = class extends Yi {
|
|
4712
4712
|
};
|
|
4713
4713
|
ac = o([
|
|
4714
4714
|
B({ type: x.Choice })
|
|
@@ -4719,7 +4719,7 @@ var st;
|
|
|
4719
4719
|
(function(r) {
|
|
4720
4720
|
r[r.unused = 1] = "unused", r[r.keyCompromise = 2] = "keyCompromise", r[r.cACompromise = 4] = "cACompromise", r[r.affiliationChanged = 8] = "affiliationChanged", r[r.superseded = 16] = "superseded", r[r.cessationOfOperation = 32] = "cessationOfOperation", r[r.certificateHold = 64] = "certificateHold", r[r.privilegeWithdrawn = 128] = "privilegeWithdrawn", r[r.aACompromise = 256] = "aACompromise";
|
|
4721
4721
|
})(st || (st = {}));
|
|
4722
|
-
class zu extends
|
|
4722
|
+
class zu extends Fn {
|
|
4723
4723
|
toJSON() {
|
|
4724
4724
|
const e = [], t = this.toNumber();
|
|
4725
4725
|
return t & st.aACompromise && e.push("aACompromise"), t & st.affiliationChanged && e.push("affiliationChanged"), t & st.cACompromise && e.push("cACompromise"), t & st.certificateHold && e.push("certificateHold"), t & st.cessationOfOperation && e.push("cessationOfOperation"), t & st.keyCompromise && e.push("keyCompromise"), t & st.privilegeWithdrawn && e.push("privilegeWithdrawn"), t & st.superseded && e.push("superseded"), t & st.unused && e.push("unused"), e;
|
|
@@ -4820,15 +4820,15 @@ Zs = o([
|
|
|
4820
4820
|
], Zs);
|
|
4821
4821
|
var Qs;
|
|
4822
4822
|
const Gu = `${Ft}.37`;
|
|
4823
|
-
let
|
|
4823
|
+
let Zi = Qs = class extends fe {
|
|
4824
4824
|
constructor(e) {
|
|
4825
4825
|
super(e), Object.setPrototypeOf(this, Qs.prototype);
|
|
4826
4826
|
}
|
|
4827
4827
|
};
|
|
4828
|
-
|
|
4828
|
+
Zi = Qs = o([
|
|
4829
4829
|
B({ type: x.Sequence, itemType: h.ObjectIdentifier })
|
|
4830
|
-
],
|
|
4831
|
-
const
|
|
4830
|
+
], Zi);
|
|
4831
|
+
const Ld = `${$r}.1`, Hd = `${$r}.2`, Fd = `${$r}.3`, Kd = `${$r}.4`, qd = `${$r}.8`, zd = `${$r}.9`;
|
|
4832
4832
|
let Xs = class {
|
|
4833
4833
|
constructor(e = new ArrayBuffer(0)) {
|
|
4834
4834
|
this.value = e;
|
|
@@ -4865,7 +4865,7 @@ var ot;
|
|
|
4865
4865
|
(function(r) {
|
|
4866
4866
|
r[r.digitalSignature = 1] = "digitalSignature", r[r.nonRepudiation = 2] = "nonRepudiation", r[r.keyEncipherment = 4] = "keyEncipherment", r[r.dataEncipherment = 8] = "dataEncipherment", r[r.keyAgreement = 16] = "keyAgreement", r[r.keyCertSign = 32] = "keyCertSign", r[r.cRLSign = 64] = "cRLSign", r[r.encipherOnly = 128] = "encipherOnly", r[r.decipherOnly = 256] = "decipherOnly";
|
|
4867
4867
|
})(ot || (ot = {}));
|
|
4868
|
-
class xs extends
|
|
4868
|
+
class xs extends Fn {
|
|
4869
4869
|
toJSON() {
|
|
4870
4870
|
const e = this.toNumber(), t = [];
|
|
4871
4871
|
return e & ot.cRLSign && t.push("crlSign"), e & ot.dataEncipherment && t.push("dataEncipherment"), e & ot.decipherOnly && t.push("decipherOnly"), e & ot.digitalSignature && t.push("digitalSignature"), e & ot.encipherOnly && t.push("encipherOnly"), e & ot.keyAgreement && t.push("keyAgreement"), e & ot.keyCertSign && t.push("keyCertSign"), e & ot.keyEncipherment && t.push("keyEncipherment"), e & ot.nonRepudiation && t.push("nonRepudiation"), t;
|
|
@@ -4889,24 +4889,24 @@ o([
|
|
|
4889
4889
|
o([
|
|
4890
4890
|
c({ type: h.Integer, context: 1, optional: !0, implicit: !0 })
|
|
4891
4891
|
], Gn.prototype, "maximum", void 0);
|
|
4892
|
-
let
|
|
4892
|
+
let Qi = ro = class extends fe {
|
|
4893
4893
|
constructor(e) {
|
|
4894
4894
|
super(e), Object.setPrototypeOf(this, ro.prototype);
|
|
4895
4895
|
}
|
|
4896
4896
|
};
|
|
4897
|
-
|
|
4897
|
+
Qi = ro = o([
|
|
4898
4898
|
B({ type: x.Sequence, itemType: Gn })
|
|
4899
|
-
],
|
|
4899
|
+
], Qi);
|
|
4900
4900
|
class Ju {
|
|
4901
4901
|
constructor(e = {}) {
|
|
4902
4902
|
Object.assign(this, e);
|
|
4903
4903
|
}
|
|
4904
4904
|
}
|
|
4905
4905
|
o([
|
|
4906
|
-
c({ type:
|
|
4906
|
+
c({ type: Qi, context: 0, optional: !0, implicit: !0 })
|
|
4907
4907
|
], Ju.prototype, "permittedSubtrees", void 0);
|
|
4908
4908
|
o([
|
|
4909
|
-
c({ type:
|
|
4909
|
+
c({ type: Qi, context: 1, optional: !0, implicit: !0 })
|
|
4910
4910
|
], Ju.prototype, "excludedSubtrees", void 0);
|
|
4911
4911
|
class Yu {
|
|
4912
4912
|
constructor(e = {}) {
|
|
@@ -4999,7 +4999,7 @@ var Zr;
|
|
|
4999
4999
|
(function(r) {
|
|
5000
5000
|
r[r.keyUpdateAllowed = 1] = "keyUpdateAllowed", r[r.newExtensions = 2] = "newExtensions", r[r.pKIXCertificate = 4] = "pKIXCertificate";
|
|
5001
5001
|
})(Zr || (Zr = {}));
|
|
5002
|
-
class ef extends
|
|
5002
|
+
class ef extends Fn {
|
|
5003
5003
|
toJSON() {
|
|
5004
5004
|
const e = [], t = this.toNumber();
|
|
5005
5005
|
return t & Zr.pKIXCertificate && e.push("pKIXCertificate"), t & Zr.newExtensions && e.push("newExtensions"), t & Zr.keyUpdateAllowed && e.push("keyUpdateAllowed"), e;
|
|
@@ -5026,14 +5026,14 @@ let dc = ao = class extends fe {
|
|
|
5026
5026
|
}
|
|
5027
5027
|
};
|
|
5028
5028
|
dc = ao = o([
|
|
5029
|
-
B({ type: x.Sequence, itemType:
|
|
5029
|
+
B({ type: x.Sequence, itemType: vi })
|
|
5030
5030
|
], dc);
|
|
5031
5031
|
class V {
|
|
5032
5032
|
constructor(e = {}) {
|
|
5033
5033
|
this.algorithm = "", Object.assign(this, e);
|
|
5034
5034
|
}
|
|
5035
5035
|
isEqual(e) {
|
|
5036
|
-
return e instanceof V && e.algorithm == this.algorithm && (e.parameters && this.parameters &&
|
|
5036
|
+
return e instanceof V && e.algorithm == this.algorithm && (e.parameters && this.parameters && Ll(e.parameters, this.parameters) || e.parameters === this.parameters);
|
|
5037
5037
|
}
|
|
5038
5038
|
}
|
|
5039
5039
|
o([
|
|
@@ -5244,17 +5244,17 @@ o([
|
|
|
5244
5244
|
o([
|
|
5245
5245
|
c({ type: h.BitString })
|
|
5246
5246
|
], Aa.prototype, "signature", void 0);
|
|
5247
|
-
class
|
|
5247
|
+
class Lr {
|
|
5248
5248
|
constructor(e = {}) {
|
|
5249
5249
|
this.issuer = new Be(), this.serialNumber = new ArrayBuffer(0), Object.assign(this, e);
|
|
5250
5250
|
}
|
|
5251
5251
|
}
|
|
5252
5252
|
o([
|
|
5253
5253
|
c({ type: Be })
|
|
5254
|
-
],
|
|
5254
|
+
], Lr.prototype, "issuer", void 0);
|
|
5255
5255
|
o([
|
|
5256
5256
|
c({ type: h.Integer, converter: ve })
|
|
5257
|
-
],
|
|
5257
|
+
], Lr.prototype, "serialNumber", void 0);
|
|
5258
5258
|
let Or = class {
|
|
5259
5259
|
constructor(e = {}) {
|
|
5260
5260
|
Object.assign(this, e);
|
|
@@ -5264,7 +5264,7 @@ o([
|
|
|
5264
5264
|
c({ type: $t, context: 0, implicit: !0 })
|
|
5265
5265
|
], Or.prototype, "subjectKeyIdentifier", void 0);
|
|
5266
5266
|
o([
|
|
5267
|
-
c({ type:
|
|
5267
|
+
c({ type: Lr })
|
|
5268
5268
|
], Or.prototype, "issuerAndSerialNumber", void 0);
|
|
5269
5269
|
Or = o([
|
|
5270
5270
|
B({ type: x.Choice })
|
|
@@ -5273,26 +5273,26 @@ var Nt;
|
|
|
5273
5273
|
(function(r) {
|
|
5274
5274
|
r[r.v0 = 0] = "v0", r[r.v1 = 1] = "v1", r[r.v2 = 2] = "v2", r[r.v3 = 3] = "v3", r[r.v4 = 4] = "v4", r[r.v5 = 5] = "v5";
|
|
5275
5275
|
})(Nt || (Nt = {}));
|
|
5276
|
-
let
|
|
5276
|
+
let ni = class extends V {
|
|
5277
5277
|
};
|
|
5278
|
-
|
|
5278
|
+
ni = o([
|
|
5279
5279
|
B({ type: x.Sequence })
|
|
5280
|
-
],
|
|
5281
|
-
let
|
|
5280
|
+
], ni);
|
|
5281
|
+
let Xi = class extends V {
|
|
5282
5282
|
};
|
|
5283
|
-
|
|
5283
|
+
Xi = o([
|
|
5284
5284
|
B({ type: x.Sequence })
|
|
5285
|
-
],
|
|
5285
|
+
], Xi);
|
|
5286
5286
|
let vt = class extends V {
|
|
5287
5287
|
};
|
|
5288
5288
|
vt = o([
|
|
5289
5289
|
B({ type: x.Sequence })
|
|
5290
5290
|
], vt);
|
|
5291
|
-
let
|
|
5291
|
+
let en = class extends V {
|
|
5292
5292
|
};
|
|
5293
|
-
|
|
5293
|
+
en = o([
|
|
5294
5294
|
B({ type: x.Sequence })
|
|
5295
|
-
],
|
|
5295
|
+
], en);
|
|
5296
5296
|
let hc = class extends V {
|
|
5297
5297
|
};
|
|
5298
5298
|
hc = o([
|
|
@@ -5303,21 +5303,21 @@ let lo = class extends V {
|
|
|
5303
5303
|
lo = o([
|
|
5304
5304
|
B({ type: x.Sequence })
|
|
5305
5305
|
], lo);
|
|
5306
|
-
let
|
|
5306
|
+
let Hr = class {
|
|
5307
5307
|
constructor(e = {}) {
|
|
5308
5308
|
this.attrType = "", this.attrValues = [], Object.assign(this, e);
|
|
5309
5309
|
}
|
|
5310
5310
|
};
|
|
5311
5311
|
o([
|
|
5312
5312
|
c({ type: h.ObjectIdentifier })
|
|
5313
|
-
],
|
|
5313
|
+
], Hr.prototype, "attrType", void 0);
|
|
5314
5314
|
o([
|
|
5315
5315
|
c({ type: h.Any, repeated: "set" })
|
|
5316
|
-
],
|
|
5316
|
+
], Hr.prototype, "attrValues", void 0);
|
|
5317
5317
|
var uo;
|
|
5318
5318
|
class bt {
|
|
5319
5319
|
constructor(e = {}) {
|
|
5320
|
-
this.version = Nt.v0, this.sid = new Or(), this.digestAlgorithm = new
|
|
5320
|
+
this.version = Nt.v0, this.sid = new Or(), this.digestAlgorithm = new ni(), this.signatureAlgorithm = new Xi(), this.signature = new oe(), Object.assign(this, e);
|
|
5321
5321
|
}
|
|
5322
5322
|
}
|
|
5323
5323
|
o([
|
|
@@ -5327,28 +5327,28 @@ o([
|
|
|
5327
5327
|
c({ type: Or })
|
|
5328
5328
|
], bt.prototype, "sid", void 0);
|
|
5329
5329
|
o([
|
|
5330
|
-
c({ type:
|
|
5330
|
+
c({ type: ni })
|
|
5331
5331
|
], bt.prototype, "digestAlgorithm", void 0);
|
|
5332
5332
|
o([
|
|
5333
|
-
c({ type:
|
|
5333
|
+
c({ type: Hr, repeated: "set", context: 0, implicit: !0, optional: !0 })
|
|
5334
5334
|
], bt.prototype, "signedAttrs", void 0);
|
|
5335
5335
|
o([
|
|
5336
|
-
c({ type:
|
|
5336
|
+
c({ type: Xi })
|
|
5337
5337
|
], bt.prototype, "signatureAlgorithm", void 0);
|
|
5338
5338
|
o([
|
|
5339
5339
|
c({ type: oe })
|
|
5340
5340
|
], bt.prototype, "signature", void 0);
|
|
5341
5341
|
o([
|
|
5342
|
-
c({ type:
|
|
5342
|
+
c({ type: Hr, repeated: "set", context: 1, implicit: !0, optional: !0 })
|
|
5343
5343
|
], bt.prototype, "unsignedAttrs", void 0);
|
|
5344
|
-
let
|
|
5344
|
+
let tn = uo = class extends fe {
|
|
5345
5345
|
constructor(e) {
|
|
5346
5346
|
super(e), Object.setPrototypeOf(this, uo.prototype);
|
|
5347
5347
|
}
|
|
5348
5348
|
};
|
|
5349
|
-
|
|
5349
|
+
tn = uo = o([
|
|
5350
5350
|
B({ type: x.Set, itemType: bt })
|
|
5351
|
-
],
|
|
5351
|
+
], tn);
|
|
5352
5352
|
let pc = class extends Ne {
|
|
5353
5353
|
};
|
|
5354
5354
|
pc = o([
|
|
@@ -5374,14 +5374,14 @@ o([
|
|
|
5374
5374
|
c({ type: Ot, repeated: "sequence" })
|
|
5375
5375
|
], Sa.prototype, "attrs", void 0);
|
|
5376
5376
|
var fo;
|
|
5377
|
-
let
|
|
5377
|
+
let rn = fo = class extends fe {
|
|
5378
5378
|
constructor(e) {
|
|
5379
5379
|
super(e), Object.setPrototypeOf(this, fo.prototype);
|
|
5380
5380
|
}
|
|
5381
5381
|
};
|
|
5382
|
-
|
|
5382
|
+
rn = fo = o([
|
|
5383
5383
|
B({ type: x.Sequence, itemType: h.ObjectIdentifier })
|
|
5384
|
-
],
|
|
5384
|
+
], rn);
|
|
5385
5385
|
class Yn {
|
|
5386
5386
|
constructor(e = {}) {
|
|
5387
5387
|
this.permitUnSpecified = !0, Object.assign(this, e);
|
|
@@ -5391,10 +5391,10 @@ o([
|
|
|
5391
5391
|
c({ type: h.Integer, optional: !0 })
|
|
5392
5392
|
], Yn.prototype, "pathLenConstraint", void 0);
|
|
5393
5393
|
o([
|
|
5394
|
-
c({ type:
|
|
5394
|
+
c({ type: rn, implicit: !0, context: 0, optional: !0 })
|
|
5395
5395
|
], Yn.prototype, "permittedAttrs", void 0);
|
|
5396
5396
|
o([
|
|
5397
|
-
c({ type:
|
|
5397
|
+
c({ type: rn, implicit: !0, context: 1, optional: !0 })
|
|
5398
5398
|
], Yn.prototype, "excludedAttrs", void 0);
|
|
5399
5399
|
o([
|
|
5400
5400
|
c({ type: h.Boolean, defaultValue: !0 })
|
|
@@ -5473,34 +5473,34 @@ o([
|
|
|
5473
5473
|
o([
|
|
5474
5474
|
c({ type: h.GeneralizedTime })
|
|
5475
5475
|
], Qn.prototype, "notAfterTime", void 0);
|
|
5476
|
-
class
|
|
5476
|
+
class mi {
|
|
5477
5477
|
constructor(e = {}) {
|
|
5478
5478
|
Object.assign(this, e);
|
|
5479
5479
|
}
|
|
5480
5480
|
}
|
|
5481
5481
|
o([
|
|
5482
5482
|
c({ type: hr, implicit: !0, context: 0, optional: !0 })
|
|
5483
|
-
],
|
|
5483
|
+
], mi.prototype, "baseCertificateID", void 0);
|
|
5484
5484
|
o([
|
|
5485
5485
|
c({ type: Me, implicit: !0, context: 1, optional: !0 })
|
|
5486
|
-
],
|
|
5486
|
+
], mi.prototype, "entityName", void 0);
|
|
5487
5487
|
o([
|
|
5488
5488
|
c({ type: pr, implicit: !0, context: 2, optional: !0 })
|
|
5489
|
-
],
|
|
5489
|
+
], mi.prototype, "objectDigestInfo", void 0);
|
|
5490
5490
|
var po;
|
|
5491
5491
|
(function(r) {
|
|
5492
5492
|
r[r.v2 = 1] = "v2";
|
|
5493
5493
|
})(po || (po = {}));
|
|
5494
5494
|
class ft {
|
|
5495
5495
|
constructor(e = {}) {
|
|
5496
|
-
this.version = po.v2, this.holder = new
|
|
5496
|
+
this.version = po.v2, this.holder = new mi(), this.issuer = new Nr(), this.signature = new V(), this.serialNumber = new ArrayBuffer(0), this.attrCertValidityPeriod = new Qn(), this.attributes = [], Object.assign(this, e);
|
|
5497
5497
|
}
|
|
5498
5498
|
}
|
|
5499
5499
|
o([
|
|
5500
5500
|
c({ type: h.Integer })
|
|
5501
5501
|
], ft.prototype, "version", void 0);
|
|
5502
5502
|
o([
|
|
5503
|
-
c({ type:
|
|
5503
|
+
c({ type: mi })
|
|
5504
5504
|
], ft.prototype, "holder", void 0);
|
|
5505
5505
|
o([
|
|
5506
5506
|
c({ type: Nr })
|
|
@@ -5537,11 +5537,11 @@ o([
|
|
|
5537
5537
|
o([
|
|
5538
5538
|
c({ type: h.BitString })
|
|
5539
5539
|
], Xn.prototype, "signatureValue", void 0);
|
|
5540
|
-
var
|
|
5540
|
+
var nn;
|
|
5541
5541
|
(function(r) {
|
|
5542
5542
|
r[r.unmarked = 1] = "unmarked", r[r.unclassified = 2] = "unclassified", r[r.restricted = 4] = "restricted", r[r.confidential = 8] = "confidential", r[r.secret = 16] = "secret", r[r.topSecret = 32] = "topSecret";
|
|
5543
|
-
})(
|
|
5544
|
-
class yo extends
|
|
5543
|
+
})(nn || (nn = {}));
|
|
5544
|
+
class yo extends Fn {
|
|
5545
5545
|
}
|
|
5546
5546
|
class ka {
|
|
5547
5547
|
constructor(e = {}) {
|
|
@@ -5556,14 +5556,14 @@ o([
|
|
|
5556
5556
|
], ka.prototype, "value", void 0);
|
|
5557
5557
|
class xa {
|
|
5558
5558
|
constructor(e = {}) {
|
|
5559
|
-
this.policyId = "", this.classList = new yo(
|
|
5559
|
+
this.policyId = "", this.classList = new yo(nn.unclassified), Object.assign(this, e);
|
|
5560
5560
|
}
|
|
5561
5561
|
}
|
|
5562
5562
|
o([
|
|
5563
5563
|
c({ type: h.ObjectIdentifier })
|
|
5564
5564
|
], xa.prototype, "policyId", void 0);
|
|
5565
5565
|
o([
|
|
5566
|
-
c({ type: yo, defaultValue: new yo(
|
|
5566
|
+
c({ type: yo, defaultValue: new yo(nn.unclassified) })
|
|
5567
5567
|
], xa.prototype, "classList", void 0);
|
|
5568
5568
|
o([
|
|
5569
5569
|
c({ type: ka, repeated: "set" })
|
|
@@ -5696,14 +5696,14 @@ o([
|
|
|
5696
5696
|
Tr = o([
|
|
5697
5697
|
B({ type: x.Choice })
|
|
5698
5698
|
], Tr);
|
|
5699
|
-
let
|
|
5699
|
+
let sn = bo = class extends fe {
|
|
5700
5700
|
constructor(e) {
|
|
5701
5701
|
super(e), Object.setPrototypeOf(this, bo.prototype);
|
|
5702
5702
|
}
|
|
5703
5703
|
};
|
|
5704
|
-
|
|
5704
|
+
sn = bo = o([
|
|
5705
5705
|
B({ type: x.Set, itemType: Tr })
|
|
5706
|
-
],
|
|
5706
|
+
], sn);
|
|
5707
5707
|
class Fr {
|
|
5708
5708
|
constructor(e = {}) {
|
|
5709
5709
|
this.contentType = "", this.content = new ArrayBuffer(0), Object.assign(this, e);
|
|
@@ -5715,20 +5715,20 @@ o([
|
|
|
5715
5715
|
o([
|
|
5716
5716
|
c({ type: h.Any, context: 0 })
|
|
5717
5717
|
], Fr.prototype, "content", void 0);
|
|
5718
|
-
let
|
|
5718
|
+
let si = class {
|
|
5719
5719
|
constructor(e = {}) {
|
|
5720
5720
|
Object.assign(this, e);
|
|
5721
5721
|
}
|
|
5722
5722
|
};
|
|
5723
5723
|
o([
|
|
5724
5724
|
c({ type: oe })
|
|
5725
|
-
],
|
|
5725
|
+
], si.prototype, "single", void 0);
|
|
5726
5726
|
o([
|
|
5727
5727
|
c({ type: h.Any })
|
|
5728
|
-
],
|
|
5729
|
-
|
|
5728
|
+
], si.prototype, "any", void 0);
|
|
5729
|
+
si = o([
|
|
5730
5730
|
B({ type: x.Choice })
|
|
5731
|
-
],
|
|
5731
|
+
], si);
|
|
5732
5732
|
class rs {
|
|
5733
5733
|
constructor(e = {}) {
|
|
5734
5734
|
this.eContentType = "", Object.assign(this, e);
|
|
@@ -5738,36 +5738,36 @@ o([
|
|
|
5738
5738
|
c({ type: h.ObjectIdentifier })
|
|
5739
5739
|
], rs.prototype, "eContentType", void 0);
|
|
5740
5740
|
o([
|
|
5741
|
-
c({ type:
|
|
5741
|
+
c({ type: si, context: 0, optional: !0 })
|
|
5742
5742
|
], rs.prototype, "eContent", void 0);
|
|
5743
|
-
let
|
|
5743
|
+
let oi = class {
|
|
5744
5744
|
constructor(e = {}) {
|
|
5745
5745
|
Object.assign(this, e);
|
|
5746
5746
|
}
|
|
5747
5747
|
};
|
|
5748
5748
|
o([
|
|
5749
5749
|
c({ type: oe, context: 0, implicit: !0, optional: !0 })
|
|
5750
|
-
],
|
|
5750
|
+
], oi.prototype, "value", void 0);
|
|
5751
5751
|
o([
|
|
5752
5752
|
c({ type: oe, converter: Ad, context: 0, implicit: !0, optional: !0, repeated: "sequence" })
|
|
5753
|
-
],
|
|
5754
|
-
|
|
5753
|
+
], oi.prototype, "constructedValue", void 0);
|
|
5754
|
+
oi = o([
|
|
5755
5755
|
B({ type: x.Choice })
|
|
5756
|
-
],
|
|
5757
|
-
class
|
|
5756
|
+
], oi);
|
|
5757
|
+
class bi {
|
|
5758
5758
|
constructor(e = {}) {
|
|
5759
|
-
this.contentType = "", this.contentEncryptionAlgorithm = new
|
|
5759
|
+
this.contentType = "", this.contentEncryptionAlgorithm = new en(), Object.assign(this, e);
|
|
5760
5760
|
}
|
|
5761
5761
|
}
|
|
5762
5762
|
o([
|
|
5763
5763
|
c({ type: h.ObjectIdentifier })
|
|
5764
|
-
],
|
|
5764
|
+
], bi.prototype, "contentType", void 0);
|
|
5765
5765
|
o([
|
|
5766
|
-
c({ type:
|
|
5767
|
-
],
|
|
5766
|
+
c({ type: en })
|
|
5767
|
+
], bi.prototype, "contentEncryptionAlgorithm", void 0);
|
|
5768
5768
|
o([
|
|
5769
|
-
c({ type:
|
|
5770
|
-
],
|
|
5769
|
+
c({ type: oi, optional: !0 })
|
|
5770
|
+
], bi.prototype, "encryptedContent", void 0);
|
|
5771
5771
|
class is {
|
|
5772
5772
|
constructor(e = {}) {
|
|
5773
5773
|
this.keyAttrId = "", Object.assign(this, e);
|
|
@@ -5803,7 +5803,7 @@ o([
|
|
|
5803
5803
|
c({ type: ns, context: 0, implicit: !0, optional: !0 })
|
|
5804
5804
|
], jr.prototype, "rKeyId", void 0);
|
|
5805
5805
|
o([
|
|
5806
|
-
c({ type:
|
|
5806
|
+
c({ type: Lr, optional: !0 })
|
|
5807
5807
|
], jr.prototype, "issuerAndSerialNumber", void 0);
|
|
5808
5808
|
jr = o([
|
|
5809
5809
|
B({ type: x.Choice })
|
|
@@ -5819,14 +5819,14 @@ o([
|
|
|
5819
5819
|
o([
|
|
5820
5820
|
c({ type: oe })
|
|
5821
5821
|
], Ia.prototype, "encryptedKey", void 0);
|
|
5822
|
-
let
|
|
5822
|
+
let on = wo = class extends fe {
|
|
5823
5823
|
constructor(e) {
|
|
5824
5824
|
super(e), Object.setPrototypeOf(this, wo.prototype);
|
|
5825
5825
|
}
|
|
5826
5826
|
};
|
|
5827
|
-
|
|
5827
|
+
on = wo = o([
|
|
5828
5828
|
B({ type: x.Sequence, itemType: Ia })
|
|
5829
|
-
],
|
|
5829
|
+
], on);
|
|
5830
5830
|
class Ea {
|
|
5831
5831
|
constructor(e = {}) {
|
|
5832
5832
|
this.algorithm = new V(), this.publicKey = new ArrayBuffer(0), Object.assign(this, e);
|
|
@@ -5850,14 +5850,14 @@ o([
|
|
|
5850
5850
|
c({ type: Ea, context: 1, implicit: !0, optional: !0 })
|
|
5851
5851
|
], or.prototype, "originatorKey", void 0);
|
|
5852
5852
|
o([
|
|
5853
|
-
c({ type:
|
|
5853
|
+
c({ type: Lr, optional: !0 })
|
|
5854
5854
|
], or.prototype, "issuerAndSerialNumber", void 0);
|
|
5855
5855
|
or = o([
|
|
5856
5856
|
B({ type: x.Choice })
|
|
5857
5857
|
], or);
|
|
5858
5858
|
class Kr {
|
|
5859
5859
|
constructor(e = {}) {
|
|
5860
|
-
this.version = Nt.v3, this.originator = new or(), this.keyEncryptionAlgorithm = new vt(), this.recipientEncryptedKeys = new
|
|
5860
|
+
this.version = Nt.v3, this.originator = new or(), this.keyEncryptionAlgorithm = new vt(), this.recipientEncryptedKeys = new on(), Object.assign(this, e);
|
|
5861
5861
|
}
|
|
5862
5862
|
}
|
|
5863
5863
|
o([
|
|
@@ -5873,7 +5873,7 @@ o([
|
|
|
5873
5873
|
c({ type: vt })
|
|
5874
5874
|
], Kr.prototype, "keyEncryptionAlgorithm", void 0);
|
|
5875
5875
|
o([
|
|
5876
|
-
c({ type:
|
|
5876
|
+
c({ type: on })
|
|
5877
5877
|
], Kr.prototype, "recipientEncryptedKeys", void 0);
|
|
5878
5878
|
let Pr = class {
|
|
5879
5879
|
constructor(e = {}) {
|
|
@@ -5884,76 +5884,76 @@ o([
|
|
|
5884
5884
|
c({ type: $t, context: 0, implicit: !0 })
|
|
5885
5885
|
], Pr.prototype, "subjectKeyIdentifier", void 0);
|
|
5886
5886
|
o([
|
|
5887
|
-
c({ type:
|
|
5887
|
+
c({ type: Lr })
|
|
5888
5888
|
], Pr.prototype, "issuerAndSerialNumber", void 0);
|
|
5889
5889
|
Pr = o([
|
|
5890
5890
|
B({ type: x.Choice })
|
|
5891
5891
|
], Pr);
|
|
5892
|
-
class
|
|
5892
|
+
class wi {
|
|
5893
5893
|
constructor(e = {}) {
|
|
5894
5894
|
this.version = Nt.v0, this.rid = new Pr(), this.keyEncryptionAlgorithm = new vt(), this.encryptedKey = new oe(), Object.assign(this, e);
|
|
5895
5895
|
}
|
|
5896
5896
|
}
|
|
5897
5897
|
o([
|
|
5898
5898
|
c({ type: h.Integer })
|
|
5899
|
-
],
|
|
5899
|
+
], wi.prototype, "version", void 0);
|
|
5900
5900
|
o([
|
|
5901
5901
|
c({ type: Pr })
|
|
5902
|
-
],
|
|
5902
|
+
], wi.prototype, "rid", void 0);
|
|
5903
5903
|
o([
|
|
5904
5904
|
c({ type: vt })
|
|
5905
|
-
],
|
|
5905
|
+
], wi.prototype, "keyEncryptionAlgorithm", void 0);
|
|
5906
5906
|
o([
|
|
5907
5907
|
c({ type: oe })
|
|
5908
|
-
],
|
|
5909
|
-
class
|
|
5908
|
+
], wi.prototype, "encryptedKey", void 0);
|
|
5909
|
+
class Ai {
|
|
5910
5910
|
constructor(e = {}) {
|
|
5911
5911
|
this.keyIdentifier = new oe(), Object.assign(this, e);
|
|
5912
5912
|
}
|
|
5913
5913
|
}
|
|
5914
5914
|
o([
|
|
5915
5915
|
c({ type: oe })
|
|
5916
|
-
],
|
|
5916
|
+
], Ai.prototype, "keyIdentifier", void 0);
|
|
5917
5917
|
o([
|
|
5918
5918
|
c({ type: h.GeneralizedTime, optional: !0 })
|
|
5919
|
-
],
|
|
5919
|
+
], Ai.prototype, "date", void 0);
|
|
5920
5920
|
o([
|
|
5921
5921
|
c({ type: is, optional: !0 })
|
|
5922
|
-
],
|
|
5923
|
-
class
|
|
5922
|
+
], Ai.prototype, "other", void 0);
|
|
5923
|
+
class Si {
|
|
5924
5924
|
constructor(e = {}) {
|
|
5925
|
-
this.version = Nt.v4, this.kekid = new
|
|
5925
|
+
this.version = Nt.v4, this.kekid = new Ai(), this.keyEncryptionAlgorithm = new vt(), this.encryptedKey = new oe(), Object.assign(this, e);
|
|
5926
5926
|
}
|
|
5927
5927
|
}
|
|
5928
5928
|
o([
|
|
5929
5929
|
c({ type: h.Integer })
|
|
5930
|
-
],
|
|
5930
|
+
], Si.prototype, "version", void 0);
|
|
5931
5931
|
o([
|
|
5932
|
-
c({ type:
|
|
5933
|
-
],
|
|
5932
|
+
c({ type: Ai })
|
|
5933
|
+
], Si.prototype, "kekid", void 0);
|
|
5934
5934
|
o([
|
|
5935
5935
|
c({ type: vt })
|
|
5936
|
-
],
|
|
5936
|
+
], Si.prototype, "keyEncryptionAlgorithm", void 0);
|
|
5937
5937
|
o([
|
|
5938
5938
|
c({ type: oe })
|
|
5939
|
-
],
|
|
5940
|
-
class
|
|
5939
|
+
], Si.prototype, "encryptedKey", void 0);
|
|
5940
|
+
class ki {
|
|
5941
5941
|
constructor(e = {}) {
|
|
5942
5942
|
this.version = Nt.v0, this.keyEncryptionAlgorithm = new vt(), this.encryptedKey = new oe(), Object.assign(this, e);
|
|
5943
5943
|
}
|
|
5944
5944
|
}
|
|
5945
5945
|
o([
|
|
5946
5946
|
c({ type: h.Integer })
|
|
5947
|
-
],
|
|
5947
|
+
], ki.prototype, "version", void 0);
|
|
5948
5948
|
o([
|
|
5949
5949
|
c({ type: lo, context: 0, optional: !0 })
|
|
5950
|
-
],
|
|
5950
|
+
], ki.prototype, "keyDerivationAlgorithm", void 0);
|
|
5951
5951
|
o([
|
|
5952
5952
|
c({ type: vt })
|
|
5953
|
-
],
|
|
5953
|
+
], ki.prototype, "keyEncryptionAlgorithm", void 0);
|
|
5954
5954
|
o([
|
|
5955
5955
|
c({ type: oe })
|
|
5956
|
-
],
|
|
5956
|
+
], ki.prototype, "encryptedKey", void 0);
|
|
5957
5957
|
class Oa {
|
|
5958
5958
|
constructor(e = {}) {
|
|
5959
5959
|
this.oriType = "", this.oriValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
@@ -5965,38 +5965,38 @@ o([
|
|
|
5965
5965
|
o([
|
|
5966
5966
|
c({ type: h.Any })
|
|
5967
5967
|
], Oa.prototype, "oriValue", void 0);
|
|
5968
|
-
let
|
|
5968
|
+
let Lt = class {
|
|
5969
5969
|
constructor(e = {}) {
|
|
5970
5970
|
Object.assign(this, e);
|
|
5971
5971
|
}
|
|
5972
5972
|
};
|
|
5973
5973
|
o([
|
|
5974
|
-
c({ type:
|
|
5975
|
-
],
|
|
5974
|
+
c({ type: wi, optional: !0 })
|
|
5975
|
+
], Lt.prototype, "ktri", void 0);
|
|
5976
5976
|
o([
|
|
5977
5977
|
c({ type: Kr, context: 1, implicit: !0, optional: !0 })
|
|
5978
|
-
],
|
|
5978
|
+
], Lt.prototype, "kari", void 0);
|
|
5979
5979
|
o([
|
|
5980
|
-
c({ type:
|
|
5981
|
-
],
|
|
5980
|
+
c({ type: Si, context: 2, implicit: !0, optional: !0 })
|
|
5981
|
+
], Lt.prototype, "kekri", void 0);
|
|
5982
5982
|
o([
|
|
5983
|
-
c({ type:
|
|
5984
|
-
],
|
|
5983
|
+
c({ type: ki, context: 3, implicit: !0, optional: !0 })
|
|
5984
|
+
], Lt.prototype, "pwri", void 0);
|
|
5985
5985
|
o([
|
|
5986
5986
|
c({ type: Oa, context: 4, implicit: !0, optional: !0 })
|
|
5987
|
-
],
|
|
5988
|
-
|
|
5987
|
+
], Lt.prototype, "ori", void 0);
|
|
5988
|
+
Lt = o([
|
|
5989
5989
|
B({ type: x.Choice })
|
|
5990
|
-
],
|
|
5990
|
+
], Lt);
|
|
5991
5991
|
var Ao;
|
|
5992
|
-
let
|
|
5992
|
+
let an = Ao = class extends fe {
|
|
5993
5993
|
constructor(e) {
|
|
5994
5994
|
super(e), Object.setPrototypeOf(this, Ao.prototype);
|
|
5995
5995
|
}
|
|
5996
5996
|
};
|
|
5997
|
-
|
|
5998
|
-
B({ type: x.Set, itemType:
|
|
5999
|
-
],
|
|
5997
|
+
an = Ao = o([
|
|
5998
|
+
B({ type: x.Set, itemType: Lt })
|
|
5999
|
+
], an);
|
|
6000
6000
|
var So;
|
|
6001
6001
|
class ss {
|
|
6002
6002
|
constructor(e = {}) {
|
|
@@ -6009,35 +6009,35 @@ o([
|
|
|
6009
6009
|
o([
|
|
6010
6010
|
c({ type: h.Any })
|
|
6011
6011
|
], ss.prototype, "otherRevInfo", void 0);
|
|
6012
|
-
let
|
|
6012
|
+
let cn = class {
|
|
6013
6013
|
constructor(e = {}) {
|
|
6014
6014
|
this.other = new ss(), Object.assign(this, e);
|
|
6015
6015
|
}
|
|
6016
6016
|
};
|
|
6017
6017
|
o([
|
|
6018
6018
|
c({ type: ss, context: 1, implicit: !0 })
|
|
6019
|
-
],
|
|
6020
|
-
|
|
6019
|
+
], cn.prototype, "other", void 0);
|
|
6020
|
+
cn = o([
|
|
6021
6021
|
B({ type: x.Choice })
|
|
6022
|
-
],
|
|
6023
|
-
let
|
|
6022
|
+
], cn);
|
|
6023
|
+
let ln = So = class extends fe {
|
|
6024
6024
|
constructor(e) {
|
|
6025
6025
|
super(e), Object.setPrototypeOf(this, So.prototype);
|
|
6026
6026
|
}
|
|
6027
6027
|
};
|
|
6028
|
-
|
|
6029
|
-
B({ type: x.Set, itemType:
|
|
6030
|
-
],
|
|
6028
|
+
ln = So = o([
|
|
6029
|
+
B({ type: x.Set, itemType: cn })
|
|
6030
|
+
], ln);
|
|
6031
6031
|
class Na {
|
|
6032
6032
|
constructor(e = {}) {
|
|
6033
6033
|
Object.assign(this, e);
|
|
6034
6034
|
}
|
|
6035
6035
|
}
|
|
6036
6036
|
o([
|
|
6037
|
-
c({ type:
|
|
6037
|
+
c({ type: sn, context: 0, implicit: !0, optional: !0 })
|
|
6038
6038
|
], Na.prototype, "certs", void 0);
|
|
6039
6039
|
o([
|
|
6040
|
-
c({ type:
|
|
6040
|
+
c({ type: ln, context: 1, implicit: !0, optional: !0 })
|
|
6041
6041
|
], Na.prototype, "crls", void 0);
|
|
6042
6042
|
var ko;
|
|
6043
6043
|
let xo = ko = class extends fe {
|
|
@@ -6046,82 +6046,82 @@ let xo = ko = class extends fe {
|
|
|
6046
6046
|
}
|
|
6047
6047
|
};
|
|
6048
6048
|
xo = ko = o([
|
|
6049
|
-
B({ type: x.Set, itemType:
|
|
6049
|
+
B({ type: x.Set, itemType: Hr })
|
|
6050
6050
|
], xo);
|
|
6051
|
-
class
|
|
6051
|
+
class xi {
|
|
6052
6052
|
constructor(e = {}) {
|
|
6053
|
-
this.version = Nt.v0, this.recipientInfos = new
|
|
6053
|
+
this.version = Nt.v0, this.recipientInfos = new an(), this.encryptedContentInfo = new bi(), Object.assign(this, e);
|
|
6054
6054
|
}
|
|
6055
6055
|
}
|
|
6056
6056
|
o([
|
|
6057
6057
|
c({ type: h.Integer })
|
|
6058
|
-
],
|
|
6058
|
+
], xi.prototype, "version", void 0);
|
|
6059
6059
|
o([
|
|
6060
6060
|
c({ type: Na, context: 0, implicit: !0, optional: !0 })
|
|
6061
|
-
],
|
|
6061
|
+
], xi.prototype, "originatorInfo", void 0);
|
|
6062
6062
|
o([
|
|
6063
|
-
c({ type:
|
|
6064
|
-
],
|
|
6063
|
+
c({ type: an })
|
|
6064
|
+
], xi.prototype, "recipientInfos", void 0);
|
|
6065
6065
|
o([
|
|
6066
|
-
c({ type:
|
|
6067
|
-
],
|
|
6066
|
+
c({ type: bi })
|
|
6067
|
+
], xi.prototype, "encryptedContentInfo", void 0);
|
|
6068
6068
|
o([
|
|
6069
6069
|
c({ type: xo, context: 1, implicit: !0, optional: !0 })
|
|
6070
|
-
],
|
|
6070
|
+
], xi.prototype, "unprotectedAttrs", void 0);
|
|
6071
6071
|
const Gd = "1.2.840.113549.1.7.2";
|
|
6072
6072
|
var Co;
|
|
6073
|
-
let
|
|
6073
|
+
let un = Co = class extends fe {
|
|
6074
6074
|
constructor(e) {
|
|
6075
6075
|
super(e), Object.setPrototypeOf(this, Co.prototype);
|
|
6076
6076
|
}
|
|
6077
6077
|
};
|
|
6078
|
-
|
|
6079
|
-
B({ type: x.Set, itemType:
|
|
6080
|
-
],
|
|
6078
|
+
un = Co = o([
|
|
6079
|
+
B({ type: x.Set, itemType: ni })
|
|
6080
|
+
], un);
|
|
6081
6081
|
class qr {
|
|
6082
6082
|
constructor(e = {}) {
|
|
6083
|
-
this.version = Nt.v0, this.digestAlgorithms = new
|
|
6083
|
+
this.version = Nt.v0, this.digestAlgorithms = new un(), this.encapContentInfo = new rs(), this.signerInfos = new tn(), Object.assign(this, e);
|
|
6084
6084
|
}
|
|
6085
6085
|
}
|
|
6086
6086
|
o([
|
|
6087
6087
|
c({ type: h.Integer })
|
|
6088
6088
|
], qr.prototype, "version", void 0);
|
|
6089
6089
|
o([
|
|
6090
|
-
c({ type:
|
|
6090
|
+
c({ type: un })
|
|
6091
6091
|
], qr.prototype, "digestAlgorithms", void 0);
|
|
6092
6092
|
o([
|
|
6093
6093
|
c({ type: rs })
|
|
6094
6094
|
], qr.prototype, "encapContentInfo", void 0);
|
|
6095
6095
|
o([
|
|
6096
|
-
c({ type:
|
|
6096
|
+
c({ type: sn, context: 0, implicit: !0, optional: !0 })
|
|
6097
6097
|
], qr.prototype, "certificates", void 0);
|
|
6098
6098
|
o([
|
|
6099
|
-
c({ type:
|
|
6099
|
+
c({ type: ln, context: 1, implicit: !0, optional: !0 })
|
|
6100
6100
|
], qr.prototype, "crls", void 0);
|
|
6101
6101
|
o([
|
|
6102
|
-
c({ type:
|
|
6102
|
+
c({ type: tn })
|
|
6103
6103
|
], qr.prototype, "signerInfos", void 0);
|
|
6104
|
-
const
|
|
6105
|
-
function
|
|
6104
|
+
const ai = "1.2.840.10045.2.1", _a = "1.2.840.10045.4.1", of = "1.2.840.10045.4.3.1", Ta = "1.2.840.10045.4.3.2", ja = "1.2.840.10045.4.3.3", Pa = "1.2.840.10045.4.3.4", vc = "1.2.840.10045.3.1.7", mc = "1.3.132.0.34", bc = "1.3.132.0.35";
|
|
6105
|
+
function Ci(r) {
|
|
6106
6106
|
return new V({ algorithm: r });
|
|
6107
6107
|
}
|
|
6108
|
-
const Wd =
|
|
6109
|
-
|
|
6110
|
-
const Jd =
|
|
6111
|
-
let
|
|
6108
|
+
const Wd = Ci(_a);
|
|
6109
|
+
Ci(of);
|
|
6110
|
+
const Jd = Ci(Ta), Yd = Ci(ja), Zd = Ci(Pa);
|
|
6111
|
+
let ci = class {
|
|
6112
6112
|
constructor(e = {}) {
|
|
6113
6113
|
Object.assign(this, e);
|
|
6114
6114
|
}
|
|
6115
6115
|
};
|
|
6116
6116
|
o([
|
|
6117
6117
|
c({ type: h.ObjectIdentifier })
|
|
6118
|
-
],
|
|
6118
|
+
], ci.prototype, "fieldType", void 0);
|
|
6119
6119
|
o([
|
|
6120
6120
|
c({ type: h.Any })
|
|
6121
|
-
],
|
|
6122
|
-
|
|
6121
|
+
], ci.prototype, "parameters", void 0);
|
|
6122
|
+
ci = o([
|
|
6123
6123
|
B({ type: x.Sequence })
|
|
6124
|
-
],
|
|
6124
|
+
], ci);
|
|
6125
6125
|
class Qd extends oe {
|
|
6126
6126
|
}
|
|
6127
6127
|
let Rr = class {
|
|
@@ -6154,7 +6154,7 @@ o([
|
|
|
6154
6154
|
c({ type: h.Integer })
|
|
6155
6155
|
], _t.prototype, "version", void 0);
|
|
6156
6156
|
o([
|
|
6157
|
-
c({ type:
|
|
6157
|
+
c({ type: ci })
|
|
6158
6158
|
], _t.prototype, "fieldID", void 0);
|
|
6159
6159
|
o([
|
|
6160
6160
|
c({ type: Rr })
|
|
@@ -6171,23 +6171,23 @@ o([
|
|
|
6171
6171
|
_t = o([
|
|
6172
6172
|
B({ type: x.Sequence })
|
|
6173
6173
|
], _t);
|
|
6174
|
-
let
|
|
6174
|
+
let Ht = class {
|
|
6175
6175
|
constructor(e = {}) {
|
|
6176
6176
|
Object.assign(this, e);
|
|
6177
6177
|
}
|
|
6178
6178
|
};
|
|
6179
6179
|
o([
|
|
6180
6180
|
c({ type: h.ObjectIdentifier })
|
|
6181
|
-
],
|
|
6181
|
+
], Ht.prototype, "namedCurve", void 0);
|
|
6182
6182
|
o([
|
|
6183
6183
|
c({ type: h.Null })
|
|
6184
|
-
],
|
|
6184
|
+
], Ht.prototype, "implicitCurve", void 0);
|
|
6185
6185
|
o([
|
|
6186
6186
|
c({ type: _t })
|
|
6187
|
-
],
|
|
6188
|
-
|
|
6187
|
+
], Ht.prototype, "specifiedCurve", void 0);
|
|
6188
|
+
Ht = o([
|
|
6189
6189
|
B({ type: x.Choice })
|
|
6190
|
-
],
|
|
6190
|
+
], Ht);
|
|
6191
6191
|
class os {
|
|
6192
6192
|
constructor(e = {}) {
|
|
6193
6193
|
this.version = 1, this.privateKey = new oe(), Object.assign(this, e);
|
|
@@ -6200,33 +6200,33 @@ o([
|
|
|
6200
6200
|
c({ type: oe })
|
|
6201
6201
|
], os.prototype, "privateKey", void 0);
|
|
6202
6202
|
o([
|
|
6203
|
-
c({ type:
|
|
6203
|
+
c({ type: Ht, context: 0, optional: !0 })
|
|
6204
6204
|
], os.prototype, "parameters", void 0);
|
|
6205
6205
|
o([
|
|
6206
6206
|
c({ type: h.BitString, context: 1, optional: !0 })
|
|
6207
6207
|
], os.prototype, "publicKey", void 0);
|
|
6208
|
-
class
|
|
6208
|
+
class fn {
|
|
6209
6209
|
constructor(e = {}) {
|
|
6210
6210
|
this.r = new ArrayBuffer(0), this.s = new ArrayBuffer(0), Object.assign(this, e);
|
|
6211
6211
|
}
|
|
6212
6212
|
}
|
|
6213
6213
|
o([
|
|
6214
6214
|
c({ type: h.Integer, converter: ve })
|
|
6215
|
-
],
|
|
6215
|
+
], fn.prototype, "r", void 0);
|
|
6216
6216
|
o([
|
|
6217
6217
|
c({ type: h.Integer, converter: ve })
|
|
6218
|
-
],
|
|
6219
|
-
const qe = "1.2.840.113549.1.1", ar = `${qe}.1`, Xd = `${qe}.7`, eh = `${qe}.9`, Qr = `${qe}.10`, th = `${qe}.2`, rh = `${qe}.4`,
|
|
6218
|
+
], fn.prototype, "s", void 0);
|
|
6219
|
+
const qe = "1.2.840.113549.1.1", ar = `${qe}.1`, Xd = `${qe}.7`, eh = `${qe}.9`, Qr = `${qe}.10`, th = `${qe}.2`, rh = `${qe}.4`, dn = `${qe}.5`, ih = `${qe}.14`, Io = `${qe}.11`, hn = `${qe}.12`, pn = `${qe}.13`, af = `${qe}.15`, cf = `${qe}.16`, yn = "1.3.14.3.2.26", lf = "2.16.840.1.101.3.4.2.4", gn = "2.16.840.1.101.3.4.2.1", vn = "2.16.840.1.101.3.4.2.2", mn = "2.16.840.1.101.3.4.2.3", nh = "2.16.840.1.101.3.4.2.5", sh = "2.16.840.1.101.3.4.2.6", oh = "1.2.840.113549.2.2", ah = "1.2.840.113549.2.5", as = `${qe}.8`;
|
|
6220
6220
|
function Ie(r) {
|
|
6221
6221
|
return new V({ algorithm: r, parameters: null });
|
|
6222
6222
|
}
|
|
6223
6223
|
Ie(oh);
|
|
6224
6224
|
Ie(ah);
|
|
6225
|
-
const cr = Ie(
|
|
6225
|
+
const cr = Ie(yn);
|
|
6226
6226
|
Ie(lf);
|
|
6227
|
+
Ie(gn);
|
|
6227
6228
|
Ie(vn);
|
|
6228
6229
|
Ie(mn);
|
|
6229
|
-
Ie(bn);
|
|
6230
6230
|
Ie(nh);
|
|
6231
6231
|
Ie(sh);
|
|
6232
6232
|
const uf = new V({
|
|
@@ -6234,16 +6234,16 @@ const uf = new V({
|
|
|
6234
6234
|
parameters: P.serialize(cr)
|
|
6235
6235
|
}), ff = new V({
|
|
6236
6236
|
algorithm: eh,
|
|
6237
|
-
parameters: P.serialize(
|
|
6237
|
+
parameters: P.serialize(zi.toASN(new Uint8Array([218, 57, 163, 238, 94, 107, 75, 13, 50, 85, 191, 239, 149, 96, 24, 144, 175, 216, 7, 9]).buffer))
|
|
6238
6238
|
});
|
|
6239
6239
|
Ie(ar);
|
|
6240
6240
|
Ie(th);
|
|
6241
6241
|
Ie(rh);
|
|
6242
|
-
Ie(
|
|
6242
|
+
Ie(dn);
|
|
6243
6243
|
Ie(af);
|
|
6244
6244
|
Ie(cf);
|
|
6245
|
+
Ie(hn);
|
|
6245
6246
|
Ie(pn);
|
|
6246
|
-
Ie(yn);
|
|
6247
6247
|
Ie(af);
|
|
6248
6248
|
Ie(cf);
|
|
6249
6249
|
class cs {
|
|
@@ -6375,7 +6375,7 @@ var No;
|
|
|
6375
6375
|
(function(r) {
|
|
6376
6376
|
r[r.Transient = 0] = "Transient", r[r.Singleton = 1] = "Singleton", r[r.ResolutionScoped = 2] = "ResolutionScoped", r[r.ContainerScoped = 3] = "ContainerScoped";
|
|
6377
6377
|
})(No || (No = {}));
|
|
6378
|
-
const
|
|
6378
|
+
const Le = No;
|
|
6379
6379
|
/*! *****************************************************************************
|
|
6380
6380
|
Copyright (c) Microsoft Corporation.
|
|
6381
6381
|
|
|
@@ -6491,7 +6491,7 @@ function lh(r, e) {
|
|
|
6491
6491
|
return { value: d[0] ? d[1] : void 0, done: !0 };
|
|
6492
6492
|
}
|
|
6493
6493
|
}
|
|
6494
|
-
function
|
|
6494
|
+
function Oi(r) {
|
|
6495
6495
|
var e = typeof Symbol == "function" && Symbol.iterator, t = e && r[e], i = 0;
|
|
6496
6496
|
if (t) return t.call(r);
|
|
6497
6497
|
if (r && typeof r.length == "number") return {
|
|
@@ -6501,7 +6501,7 @@ function Ni(r) {
|
|
|
6501
6501
|
};
|
|
6502
6502
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
6503
6503
|
}
|
|
6504
|
-
function
|
|
6504
|
+
function bn(r, e) {
|
|
6505
6505
|
var t = typeof Symbol == "function" && r[Symbol.iterator];
|
|
6506
6506
|
if (!t) return r;
|
|
6507
6507
|
var i = t.call(r), n, s = [], a;
|
|
@@ -6520,7 +6520,7 @@ function wn(r, e) {
|
|
|
6520
6520
|
}
|
|
6521
6521
|
function Gt() {
|
|
6522
6522
|
for (var r = [], e = 0; e < arguments.length; e++)
|
|
6523
|
-
r = r.concat(
|
|
6523
|
+
r = r.concat(bn(arguments[e]));
|
|
6524
6524
|
return r;
|
|
6525
6525
|
}
|
|
6526
6526
|
var uh = "injectionTokens";
|
|
@@ -6582,14 +6582,14 @@ function wc(r) {
|
|
|
6582
6582
|
function hh(r) {
|
|
6583
6583
|
return typeof r == "function" || r instanceof hf;
|
|
6584
6584
|
}
|
|
6585
|
-
function
|
|
6585
|
+
function Di(r) {
|
|
6586
6586
|
return !!r.useToken;
|
|
6587
6587
|
}
|
|
6588
|
-
function
|
|
6588
|
+
function Mi(r) {
|
|
6589
6589
|
return r.useValue != null;
|
|
6590
6590
|
}
|
|
6591
6591
|
function ph(r) {
|
|
6592
|
-
return df(r) ||
|
|
6592
|
+
return df(r) || Mi(r) || Di(r) || To(r);
|
|
6593
6593
|
}
|
|
6594
6594
|
var Da = function() {
|
|
6595
6595
|
function r() {
|
|
@@ -6640,7 +6640,7 @@ function vh(r, e, t) {
|
|
|
6640
6640
|
`);
|
|
6641
6641
|
}
|
|
6642
6642
|
function mh(r, e, t) {
|
|
6643
|
-
var i =
|
|
6643
|
+
var i = bn(r.toString().match(/constructor\(([\w, ]+)\)/) || [], 2), n = i[1], s = n === void 0 ? null : n, a = gh(s, e);
|
|
6644
6644
|
return vh("Cannot inject the dependency " + a + ' of "' + r.name + '" constructor. Reason:', t);
|
|
6645
6645
|
}
|
|
6646
6646
|
function bh(r) {
|
|
@@ -6671,19 +6671,19 @@ var wh = function(r) {
|
|
|
6671
6671
|
this.parent = e, this._registry = new yh(), this.interceptors = new Sh(), this.disposed = !1, this.disposables = /* @__PURE__ */ new Set();
|
|
6672
6672
|
}
|
|
6673
6673
|
return r.prototype.register = function(e, t, i) {
|
|
6674
|
-
i === void 0 && (i = { lifecycle:
|
|
6674
|
+
i === void 0 && (i = { lifecycle: Le.Transient }), this.ensureNotDisposed();
|
|
6675
6675
|
var n;
|
|
6676
|
-
if (ph(t) ? n = t : n = { useClass: t },
|
|
6676
|
+
if (ph(t) ? n = t : n = { useClass: t }, Di(n))
|
|
6677
6677
|
for (var s = [e], a = n; a != null; ) {
|
|
6678
6678
|
var l = a.useToken;
|
|
6679
6679
|
if (s.includes(l))
|
|
6680
6680
|
throw new Error("Token registration cycle detected! " + Gt(s, [l]).join(" -> "));
|
|
6681
6681
|
s.push(l);
|
|
6682
6682
|
var u = this._registry.get(l);
|
|
6683
|
-
u &&
|
|
6683
|
+
u && Di(u.provider) ? a = u.provider : a = null;
|
|
6684
6684
|
}
|
|
6685
|
-
if ((i.lifecycle ===
|
|
6686
|
-
throw new Error('Cannot use lifecycle "' +
|
|
6685
|
+
if ((i.lifecycle === Le.Singleton || i.lifecycle == Le.ContainerScoped || i.lifecycle == Le.ResolutionScoped) && (Mi(n) || To(n)))
|
|
6686
|
+
throw new Error('Cannot use lifecycle "' + Le[i.lifecycle] + '" with ValueProviders or FactoryProviders');
|
|
6687
6687
|
return this._registry.set(e, { provider: n, options: i }), this;
|
|
6688
6688
|
}, r.prototype.registerType = function(e, t) {
|
|
6689
6689
|
return this.ensureNotDisposed(), wr(t) ? this.register(e, {
|
|
@@ -6700,17 +6700,17 @@ var wh = function(r) {
|
|
|
6700
6700
|
if (wr(t))
|
|
6701
6701
|
return this.register(e, {
|
|
6702
6702
|
useToken: t
|
|
6703
|
-
}, { lifecycle:
|
|
6703
|
+
}, { lifecycle: Le.Singleton });
|
|
6704
6704
|
if (t)
|
|
6705
6705
|
return this.register(e, {
|
|
6706
6706
|
useClass: t
|
|
6707
|
-
}, { lifecycle:
|
|
6707
|
+
}, { lifecycle: Le.Singleton });
|
|
6708
6708
|
throw new Error('Cannot register a type name as a singleton without a "to" token');
|
|
6709
6709
|
}
|
|
6710
6710
|
var i = e;
|
|
6711
6711
|
return t && !wr(t) && (i = t), this.register(e, {
|
|
6712
6712
|
useClass: i
|
|
6713
|
-
}, { lifecycle:
|
|
6713
|
+
}, { lifecycle: Le.Singleton });
|
|
6714
6714
|
}, r.prototype.resolve = function(e, t) {
|
|
6715
6715
|
t === void 0 && (t = new Ac()), this.ensureNotDisposed();
|
|
6716
6716
|
var i = this.getRegistration(e);
|
|
@@ -6730,7 +6730,7 @@ var wh = function(r) {
|
|
|
6730
6730
|
if (this.interceptors.preResolution.has(e)) {
|
|
6731
6731
|
var s = [];
|
|
6732
6732
|
try {
|
|
6733
|
-
for (var a =
|
|
6733
|
+
for (var a = Oi(this.interceptors.preResolution.getAll(e)), l = a.next(); !l.done; l = a.next()) {
|
|
6734
6734
|
var u = l.value;
|
|
6735
6735
|
u.options.frequency != "Once" && s.push(u), u.callback(e, t);
|
|
6736
6736
|
}
|
|
@@ -6750,7 +6750,7 @@ var wh = function(r) {
|
|
|
6750
6750
|
if (this.interceptors.postResolution.has(e)) {
|
|
6751
6751
|
var a = [];
|
|
6752
6752
|
try {
|
|
6753
|
-
for (var l =
|
|
6753
|
+
for (var l = Oi(this.interceptors.postResolution.getAll(e)), u = l.next(); !u.done; u = l.next()) {
|
|
6754
6754
|
var d = u.value;
|
|
6755
6755
|
d.options.frequency != "Once" && a.push(d), d.callback(e, t, i);
|
|
6756
6756
|
}
|
|
@@ -6766,10 +6766,10 @@ var wh = function(r) {
|
|
|
6766
6766
|
this.interceptors.postResolution.setAll(e, a);
|
|
6767
6767
|
}
|
|
6768
6768
|
}, r.prototype.resolveRegistration = function(e, t) {
|
|
6769
|
-
if (this.ensureNotDisposed(), e.options.lifecycle ===
|
|
6769
|
+
if (this.ensureNotDisposed(), e.options.lifecycle === Le.ResolutionScoped && t.scopedResolutions.has(e))
|
|
6770
6770
|
return t.scopedResolutions.get(e);
|
|
6771
|
-
var i = e.options.lifecycle ===
|
|
6772
|
-
return
|
|
6771
|
+
var i = e.options.lifecycle === Le.Singleton, n = e.options.lifecycle === Le.ContainerScoped, s = i || n, a;
|
|
6772
|
+
return Mi(e.provider) ? a = e.provider.useValue : Di(e.provider) ? a = s ? e.instance || (e.instance = this.resolve(e.provider.useToken, t)) : this.resolve(e.provider.useToken, t) : df(e.provider) ? a = s ? e.instance || (e.instance = this.construct(e.provider.useClass, t)) : this.construct(e.provider.useClass, t) : To(e.provider) ? a = e.provider.useFactory(this) : a = this.construct(e.provider, t), e.options.lifecycle === Le.ResolutionScoped && t.scopedResolutions.set(e, a), a;
|
|
6773
6773
|
}, r.prototype.resolveAll = function(e, t) {
|
|
6774
6774
|
var i = this;
|
|
6775
6775
|
t === void 0 && (t = new Ac()), this.ensureNotDisposed();
|
|
@@ -6792,10 +6792,10 @@ var wh = function(r) {
|
|
|
6792
6792
|
var e, t;
|
|
6793
6793
|
this.ensureNotDisposed();
|
|
6794
6794
|
try {
|
|
6795
|
-
for (var i =
|
|
6796
|
-
var s =
|
|
6795
|
+
for (var i = Oi(this._registry.entries()), n = i.next(); !n.done; n = i.next()) {
|
|
6796
|
+
var s = bn(n.value, 2), a = s[0], l = s[1];
|
|
6797
6797
|
this._registry.setAll(a, l.filter(function(u) {
|
|
6798
|
-
return
|
|
6798
|
+
return !Mi(u.provider);
|
|
6799
6799
|
}).map(function(u) {
|
|
6800
6800
|
return u.instance = void 0, u;
|
|
6801
6801
|
}));
|
|
@@ -6814,13 +6814,13 @@ var wh = function(r) {
|
|
|
6814
6814
|
this.ensureNotDisposed();
|
|
6815
6815
|
var i = new r(this);
|
|
6816
6816
|
try {
|
|
6817
|
-
for (var n =
|
|
6818
|
-
var a =
|
|
6817
|
+
for (var n = Oi(this._registry.entries()), s = n.next(); !s.done; s = n.next()) {
|
|
6818
|
+
var a = bn(s.value, 2), l = a[0], u = a[1];
|
|
6819
6819
|
u.some(function(d) {
|
|
6820
6820
|
var v = d.options;
|
|
6821
|
-
return v.lifecycle ===
|
|
6821
|
+
return v.lifecycle === Le.ContainerScoped;
|
|
6822
6822
|
}) && i._registry.setAll(l, u.map(function(d) {
|
|
6823
|
-
return d.options.lifecycle ===
|
|
6823
|
+
return d.options.lifecycle === Le.ContainerScoped ? {
|
|
6824
6824
|
provider: d.provider,
|
|
6825
6825
|
options: d.options
|
|
6826
6826
|
} : d;
|
|
@@ -6982,24 +6982,24 @@ let Do = Ro = class extends fe {
|
|
|
6982
6982
|
Do = Ro = o([
|
|
6983
6983
|
B({ type: x.Sequence, itemType: Ot })
|
|
6984
6984
|
], Do);
|
|
6985
|
-
class
|
|
6985
|
+
class Bi {
|
|
6986
6986
|
constructor(e = {}) {
|
|
6987
6987
|
this.version = Vo.v1, this.privateKeyAlgorithm = new V(), this.privateKey = new mf(), Object.assign(this, e);
|
|
6988
6988
|
}
|
|
6989
6989
|
}
|
|
6990
6990
|
o([
|
|
6991
6991
|
c({ type: h.Integer })
|
|
6992
|
-
],
|
|
6992
|
+
], Bi.prototype, "version", void 0);
|
|
6993
6993
|
o([
|
|
6994
6994
|
c({ type: V })
|
|
6995
|
-
],
|
|
6995
|
+
], Bi.prototype, "privateKeyAlgorithm", void 0);
|
|
6996
6996
|
o([
|
|
6997
6997
|
c({ type: mf })
|
|
6998
|
-
],
|
|
6998
|
+
], Bi.prototype, "privateKey", void 0);
|
|
6999
6999
|
o([
|
|
7000
7000
|
c({ type: Do, implicit: !0, context: 0, optional: !0 })
|
|
7001
|
-
],
|
|
7002
|
-
let xc = class extends
|
|
7001
|
+
], Bi.prototype, "attributes", void 0);
|
|
7002
|
+
let xc = class extends Bi {
|
|
7003
7003
|
};
|
|
7004
7004
|
xc = o([
|
|
7005
7005
|
B({ type: x.Sequence })
|
|
@@ -7020,23 +7020,23 @@ o([
|
|
|
7020
7020
|
o([
|
|
7021
7021
|
c({ type: h.Any, context: 0 })
|
|
7022
7022
|
], bf.prototype, "secretValue", void 0);
|
|
7023
|
-
class
|
|
7023
|
+
class Ii {
|
|
7024
7024
|
constructor(e = {}) {
|
|
7025
7025
|
this.mac = new ls(), this.macSalt = new oe(), this.iterations = 1, Object.assign(this, e);
|
|
7026
7026
|
}
|
|
7027
7027
|
}
|
|
7028
7028
|
o([
|
|
7029
7029
|
c({ type: ls })
|
|
7030
|
-
],
|
|
7030
|
+
], Ii.prototype, "mac", void 0);
|
|
7031
7031
|
o([
|
|
7032
7032
|
c({ type: oe })
|
|
7033
|
-
],
|
|
7033
|
+
], Ii.prototype, "macSalt", void 0);
|
|
7034
7034
|
o([
|
|
7035
7035
|
c({ type: h.Integer, defaultValue: 1 })
|
|
7036
|
-
],
|
|
7036
|
+
], Ii.prototype, "iterations", void 0);
|
|
7037
7037
|
class ps {
|
|
7038
7038
|
constructor(e = {}) {
|
|
7039
|
-
this.version = 3, this.authSafe = new Fr(), this.macData = new
|
|
7039
|
+
this.version = 3, this.authSafe = new Fr(), this.macData = new Ii(), Object.assign(this, e);
|
|
7040
7040
|
}
|
|
7041
7041
|
}
|
|
7042
7042
|
o([
|
|
@@ -7046,7 +7046,7 @@ o([
|
|
|
7046
7046
|
c({ type: Fr })
|
|
7047
7047
|
], ps.prototype, "authSafe", void 0);
|
|
7048
7048
|
o([
|
|
7049
|
-
c({ type:
|
|
7049
|
+
c({ type: Ii, optional: !0 })
|
|
7050
7050
|
], ps.prototype, "macData", void 0);
|
|
7051
7051
|
var Mo;
|
|
7052
7052
|
class ys {
|
|
@@ -7071,9 +7071,9 @@ let Bc = Mo = class extends fe {
|
|
|
7071
7071
|
Bc = Mo = o([
|
|
7072
7072
|
B({ type: x.Sequence, itemType: ys })
|
|
7073
7073
|
], Bc);
|
|
7074
|
-
var $o, Uo,
|
|
7074
|
+
var $o, Uo, Lo;
|
|
7075
7075
|
const wf = "1.2.840.113549.1.9", Af = `${wf}.7`, Ma = `${wf}.14`;
|
|
7076
|
-
let
|
|
7076
|
+
let wn = class extends Te {
|
|
7077
7077
|
constructor(e = {}) {
|
|
7078
7078
|
super(e);
|
|
7079
7079
|
}
|
|
@@ -7083,10 +7083,10 @@ let An = class extends Te {
|
|
|
7083
7083
|
};
|
|
7084
7084
|
o([
|
|
7085
7085
|
c({ type: h.IA5String })
|
|
7086
|
-
],
|
|
7087
|
-
|
|
7086
|
+
], wn.prototype, "ia5String", void 0);
|
|
7087
|
+
wn = o([
|
|
7088
7088
|
B({ type: x.Choice })
|
|
7089
|
-
],
|
|
7089
|
+
], wn);
|
|
7090
7090
|
let Ic = class extends Fr {
|
|
7091
7091
|
};
|
|
7092
7092
|
Ic = o([
|
|
@@ -7102,7 +7102,7 @@ let Oc = class extends hs {
|
|
|
7102
7102
|
Oc = o([
|
|
7103
7103
|
B({ type: x.Sequence })
|
|
7104
7104
|
], Oc);
|
|
7105
|
-
let
|
|
7105
|
+
let Ho = class {
|
|
7106
7106
|
constructor(e = "") {
|
|
7107
7107
|
this.value = e;
|
|
7108
7108
|
}
|
|
@@ -7112,11 +7112,11 @@ let Lo = class {
|
|
|
7112
7112
|
};
|
|
7113
7113
|
o([
|
|
7114
7114
|
c({ type: h.IA5String })
|
|
7115
|
-
],
|
|
7116
|
-
|
|
7115
|
+
], Ho.prototype, "value", void 0);
|
|
7116
|
+
Ho = o([
|
|
7117
7117
|
B({ type: x.Choice })
|
|
7118
|
-
],
|
|
7119
|
-
let Nc = class extends
|
|
7118
|
+
], Ho);
|
|
7119
|
+
let Nc = class extends wn {
|
|
7120
7120
|
};
|
|
7121
7121
|
Nc = o([
|
|
7122
7122
|
B({ type: x.Choice })
|
|
@@ -7156,7 +7156,7 @@ o([
|
|
|
7156
7156
|
Ko = o([
|
|
7157
7157
|
B({ type: x.Choice })
|
|
7158
7158
|
], Ko);
|
|
7159
|
-
let
|
|
7159
|
+
let An = class {
|
|
7160
7160
|
constructor(e = "") {
|
|
7161
7161
|
this.value = e;
|
|
7162
7162
|
}
|
|
@@ -7166,11 +7166,11 @@ let Sn = class {
|
|
|
7166
7166
|
};
|
|
7167
7167
|
o([
|
|
7168
7168
|
c({ type: h.PrintableString })
|
|
7169
|
-
],
|
|
7170
|
-
|
|
7169
|
+
], An.prototype, "value", void 0);
|
|
7170
|
+
An = o([
|
|
7171
7171
|
B({ type: x.Choice })
|
|
7172
|
-
],
|
|
7173
|
-
let jc = class extends
|
|
7172
|
+
], An);
|
|
7173
|
+
let jc = class extends An {
|
|
7174
7174
|
};
|
|
7175
7175
|
jc = o([
|
|
7176
7176
|
B({ type: x.Choice })
|
|
@@ -7218,11 +7218,11 @@ let Vc = class extends bt {
|
|
|
7218
7218
|
Vc = o([
|
|
7219
7219
|
B({ type: x.Sequence })
|
|
7220
7220
|
], Vc);
|
|
7221
|
-
let
|
|
7221
|
+
let Sn = class extends Te {
|
|
7222
7222
|
};
|
|
7223
|
-
|
|
7223
|
+
Sn = o([
|
|
7224
7224
|
B({ type: x.Choice })
|
|
7225
|
-
],
|
|
7225
|
+
], Sn);
|
|
7226
7226
|
let Dc = $o = class extends sr {
|
|
7227
7227
|
constructor(e) {
|
|
7228
7228
|
super(e), Object.setPrototypeOf(this, $o.prototype);
|
|
@@ -7237,7 +7237,7 @@ let Mc = Uo = class extends fe {
|
|
|
7237
7237
|
}
|
|
7238
7238
|
};
|
|
7239
7239
|
Mc = Uo = o([
|
|
7240
|
-
B({ type: x.Set, itemType:
|
|
7240
|
+
B({ type: x.Set, itemType: Hr })
|
|
7241
7241
|
], Mc);
|
|
7242
7242
|
let Go = class {
|
|
7243
7243
|
constructor(e = "") {
|
|
@@ -7258,26 +7258,26 @@ let Wo = class extends V {
|
|
|
7258
7258
|
Wo = o([
|
|
7259
7259
|
B({ type: x.Sequence })
|
|
7260
7260
|
], Wo);
|
|
7261
|
-
let $c =
|
|
7261
|
+
let $c = Lo = class extends fe {
|
|
7262
7262
|
constructor(e) {
|
|
7263
|
-
super(e), Object.setPrototypeOf(this,
|
|
7263
|
+
super(e), Object.setPrototypeOf(this, Lo.prototype);
|
|
7264
7264
|
}
|
|
7265
7265
|
};
|
|
7266
|
-
$c =
|
|
7266
|
+
$c = Lo = o([
|
|
7267
7267
|
B({ type: x.Sequence, itemType: Wo })
|
|
7268
7268
|
], $c);
|
|
7269
7269
|
var Jo;
|
|
7270
|
-
let
|
|
7270
|
+
let kn = Jo = class extends fe {
|
|
7271
7271
|
constructor(e) {
|
|
7272
7272
|
super(e), Object.setPrototypeOf(this, Jo.prototype);
|
|
7273
7273
|
}
|
|
7274
7274
|
};
|
|
7275
|
-
|
|
7275
|
+
kn = Jo = o([
|
|
7276
7276
|
B({ type: x.Sequence, itemType: Ot })
|
|
7277
|
-
],
|
|
7277
|
+
], kn);
|
|
7278
7278
|
class zr {
|
|
7279
7279
|
constructor(e = {}) {
|
|
7280
|
-
this.version = 0, this.subject = new Be(), this.subjectPKInfo = new pt(), this.attributes = new
|
|
7280
|
+
this.version = 0, this.subject = new Be(), this.subjectPKInfo = new pt(), this.attributes = new kn(), Object.assign(this, e);
|
|
7281
7281
|
}
|
|
7282
7282
|
}
|
|
7283
7283
|
o([
|
|
@@ -7290,22 +7290,22 @@ o([
|
|
|
7290
7290
|
c({ type: pt })
|
|
7291
7291
|
], zr.prototype, "subjectPKInfo", void 0);
|
|
7292
7292
|
o([
|
|
7293
|
-
c({ type:
|
|
7293
|
+
c({ type: kn, implicit: !0, context: 0 })
|
|
7294
7294
|
], zr.prototype, "attributes", void 0);
|
|
7295
|
-
class
|
|
7295
|
+
class li {
|
|
7296
7296
|
constructor(e = {}) {
|
|
7297
7297
|
this.certificationRequestInfo = new zr(), this.signatureAlgorithm = new V(), this.signature = new ArrayBuffer(0), Object.assign(this, e);
|
|
7298
7298
|
}
|
|
7299
7299
|
}
|
|
7300
7300
|
o([
|
|
7301
7301
|
c({ type: zr })
|
|
7302
|
-
],
|
|
7302
|
+
], li.prototype, "certificationRequestInfo", void 0);
|
|
7303
7303
|
o([
|
|
7304
7304
|
c({ type: V })
|
|
7305
|
-
],
|
|
7305
|
+
], li.prototype, "signatureAlgorithm", void 0);
|
|
7306
7306
|
o([
|
|
7307
7307
|
c({ type: h.BitString })
|
|
7308
|
-
],
|
|
7308
|
+
], li.prototype, "signature", void 0);
|
|
7309
7309
|
/*!
|
|
7310
7310
|
* MIT License
|
|
7311
7311
|
*
|
|
@@ -7330,10 +7330,10 @@ o([
|
|
|
7330
7330
|
* SOFTWARE.
|
|
7331
7331
|
*
|
|
7332
7332
|
*/
|
|
7333
|
-
const
|
|
7333
|
+
const Ei = "crypto.algorithm";
|
|
7334
7334
|
class xh {
|
|
7335
7335
|
getAlgorithms() {
|
|
7336
|
-
return $e.resolveAll(
|
|
7336
|
+
return $e.resolveAll(Ei);
|
|
7337
7337
|
}
|
|
7338
7338
|
toAsnAlgorithm(e) {
|
|
7339
7339
|
({ ...e });
|
|
@@ -7368,9 +7368,9 @@ class xh {
|
|
|
7368
7368
|
}
|
|
7369
7369
|
const Vr = "crypto.algorithmProvider";
|
|
7370
7370
|
$e.registerSingleton(Vr, xh);
|
|
7371
|
-
var
|
|
7372
|
-
const ze = "1.3.36.3.3.2.8.1.1", Uc = `${ze}.1`,
|
|
7373
|
-
let
|
|
7371
|
+
var $i;
|
|
7372
|
+
const ze = "1.3.36.3.3.2.8.1.1", Uc = `${ze}.1`, Lc = `${ze}.2`, Hc = `${ze}.3`, Fc = `${ze}.4`, Kc = `${ze}.5`, qc = `${ze}.6`, zc = `${ze}.7`, Gc = `${ze}.8`, Wc = `${ze}.9`, Jc = `${ze}.10`, Yc = `${ze}.11`, Zc = `${ze}.12`, Qc = `${ze}.13`, Xc = `${ze}.14`, el = "brainpoolP160r1", tl = "brainpoolP160t1", rl = "brainpoolP192r1", il = "brainpoolP192t1", nl = "brainpoolP224r1", sl = "brainpoolP224t1", ol = "brainpoolP256r1", al = "brainpoolP256t1", cl = "brainpoolP320r1", ll = "brainpoolP320t1", ul = "brainpoolP384r1", fl = "brainpoolP384t1", dl = "brainpoolP512r1", hl = "brainpoolP512t1", be = "ECDSA";
|
|
7373
|
+
let ui = $i = class {
|
|
7374
7374
|
toAsnAlgorithm(e) {
|
|
7375
7375
|
switch (e.name.toLowerCase()) {
|
|
7376
7376
|
case be.toLowerCase():
|
|
@@ -7392,7 +7392,7 @@ let fi = Ui = class {
|
|
|
7392
7392
|
t = vc;
|
|
7393
7393
|
break;
|
|
7394
7394
|
case "K-256":
|
|
7395
|
-
t =
|
|
7395
|
+
t = $i.SECP256K1;
|
|
7396
7396
|
break;
|
|
7397
7397
|
case "P-384":
|
|
7398
7398
|
t = mc;
|
|
@@ -7404,10 +7404,10 @@ let fi = Ui = class {
|
|
|
7404
7404
|
t = Uc;
|
|
7405
7405
|
break;
|
|
7406
7406
|
case tl:
|
|
7407
|
-
t =
|
|
7407
|
+
t = Lc;
|
|
7408
7408
|
break;
|
|
7409
7409
|
case rl:
|
|
7410
|
-
t =
|
|
7410
|
+
t = Hc;
|
|
7411
7411
|
break;
|
|
7412
7412
|
case il:
|
|
7413
7413
|
t = Fc;
|
|
@@ -7445,8 +7445,8 @@ let fi = Ui = class {
|
|
|
7445
7445
|
}
|
|
7446
7446
|
if (t)
|
|
7447
7447
|
return new V({
|
|
7448
|
-
algorithm:
|
|
7449
|
-
parameters: P.serialize(new
|
|
7448
|
+
algorithm: ai,
|
|
7449
|
+
parameters: P.serialize(new Ht({ namedCurve: t }))
|
|
7450
7450
|
});
|
|
7451
7451
|
}
|
|
7452
7452
|
}
|
|
@@ -7462,13 +7462,13 @@ let fi = Ui = class {
|
|
|
7462
7462
|
return { name: be, hash: { name: "SHA-384" } };
|
|
7463
7463
|
case Pa:
|
|
7464
7464
|
return { name: be, hash: { name: "SHA-512" } };
|
|
7465
|
-
case
|
|
7465
|
+
case ai: {
|
|
7466
7466
|
if (!e.parameters)
|
|
7467
7467
|
throw new TypeError("Cannot get required parameters from EC algorithm");
|
|
7468
|
-
switch (P.parse(e.parameters,
|
|
7468
|
+
switch (P.parse(e.parameters, Ht).namedCurve) {
|
|
7469
7469
|
case vc:
|
|
7470
7470
|
return { name: be, namedCurve: "P-256" };
|
|
7471
|
-
case
|
|
7471
|
+
case $i.SECP256K1:
|
|
7472
7472
|
return { name: be, namedCurve: "K-256" };
|
|
7473
7473
|
case mc:
|
|
7474
7474
|
return { name: be, namedCurve: "P-384" };
|
|
@@ -7476,9 +7476,9 @@ let fi = Ui = class {
|
|
|
7476
7476
|
return { name: be, namedCurve: "P-521" };
|
|
7477
7477
|
case Uc:
|
|
7478
7478
|
return { name: be, namedCurve: el };
|
|
7479
|
-
case Hc:
|
|
7480
|
-
return { name: be, namedCurve: tl };
|
|
7481
7479
|
case Lc:
|
|
7480
|
+
return { name: be, namedCurve: tl };
|
|
7481
|
+
case Hc:
|
|
7482
7482
|
return { name: be, namedCurve: rl };
|
|
7483
7483
|
case Fc:
|
|
7484
7484
|
return { name: be, namedCurve: il };
|
|
@@ -7508,11 +7508,11 @@ let fi = Ui = class {
|
|
|
7508
7508
|
return null;
|
|
7509
7509
|
}
|
|
7510
7510
|
};
|
|
7511
|
-
|
|
7512
|
-
|
|
7511
|
+
ui.SECP256K1 = "1.3.132.0.10";
|
|
7512
|
+
ui = $i = o([
|
|
7513
7513
|
fs()
|
|
7514
|
-
],
|
|
7515
|
-
$e.registerSingleton(
|
|
7514
|
+
], ui);
|
|
7515
|
+
$e.registerSingleton(Ei, ui);
|
|
7516
7516
|
const Sf = Symbol("name"), kf = Symbol("value");
|
|
7517
7517
|
class le {
|
|
7518
7518
|
constructor(e, t = {}, i = "") {
|
|
@@ -7528,8 +7528,8 @@ class Ch {
|
|
|
7528
7528
|
const t = new le("Algorithm Identifier", {}, Kt.toString(e.algorithm));
|
|
7529
7529
|
if (e.parameters)
|
|
7530
7530
|
switch (e.algorithm) {
|
|
7531
|
-
case
|
|
7532
|
-
const i = new
|
|
7531
|
+
case ai: {
|
|
7532
|
+
const i = new ui().toWebAlgorithm(e);
|
|
7533
7533
|
i && "namedCurve" in i ? t["Named Curve"] = i.namedCurve : t.Parameters = e.parameters;
|
|
7534
7534
|
break;
|
|
7535
7535
|
}
|
|
@@ -7546,25 +7546,25 @@ class Kt {
|
|
|
7546
7546
|
}
|
|
7547
7547
|
}
|
|
7548
7548
|
Kt.items = {
|
|
7549
|
-
[
|
|
7549
|
+
[yn]: "sha1",
|
|
7550
7550
|
[lf]: "sha224",
|
|
7551
|
-
[
|
|
7552
|
-
[
|
|
7553
|
-
[
|
|
7551
|
+
[gn]: "sha256",
|
|
7552
|
+
[vn]: "sha384",
|
|
7553
|
+
[mn]: "sha512",
|
|
7554
7554
|
[ar]: "rsaEncryption",
|
|
7555
|
-
[
|
|
7555
|
+
[dn]: "sha1WithRSAEncryption",
|
|
7556
7556
|
[ih]: "sha224WithRSAEncryption",
|
|
7557
7557
|
[Io]: "sha256WithRSAEncryption",
|
|
7558
|
-
[
|
|
7559
|
-
[
|
|
7560
|
-
[
|
|
7558
|
+
[hn]: "sha384WithRSAEncryption",
|
|
7559
|
+
[pn]: "sha512WithRSAEncryption",
|
|
7560
|
+
[ai]: "ecPublicKey",
|
|
7561
7561
|
[_a]: "ecdsaWithSHA1",
|
|
7562
7562
|
[of]: "ecdsaWithSHA224",
|
|
7563
7563
|
[Ta]: "ecdsaWithSHA256",
|
|
7564
7564
|
[ja]: "ecdsaWithSHA384",
|
|
7565
7565
|
[Pa]: "ecdsaWithSHA512",
|
|
7566
|
-
[
|
|
7567
|
-
[
|
|
7566
|
+
[Ld]: "TLS WWW server authentication",
|
|
7567
|
+
[Hd]: "TLS WWW client authentication",
|
|
7568
7568
|
[Fd]: "Code Signing",
|
|
7569
7569
|
[Kd]: "E-mail Protection",
|
|
7570
7570
|
[qd]: "Time Stamping",
|
|
@@ -7637,7 +7637,7 @@ class qt {
|
|
|
7637
7637
|
}
|
|
7638
7638
|
}
|
|
7639
7639
|
equal(e) {
|
|
7640
|
-
return e instanceof qt ?
|
|
7640
|
+
return e instanceof qt ? Ll(e.rawData, this.rawData) : !1;
|
|
7641
7641
|
}
|
|
7642
7642
|
toString(e = "text") {
|
|
7643
7643
|
switch (e) {
|
|
@@ -7646,11 +7646,11 @@ class qt {
|
|
|
7646
7646
|
case "text":
|
|
7647
7647
|
return ur.serialize(this.toTextObject());
|
|
7648
7648
|
case "hex":
|
|
7649
|
-
return
|
|
7649
|
+
return F.ToHex(this.rawData);
|
|
7650
7650
|
case "base64":
|
|
7651
|
-
return
|
|
7651
|
+
return F.ToBase64(this.rawData);
|
|
7652
7652
|
case "base64url":
|
|
7653
|
-
return
|
|
7653
|
+
return F.ToBase64Url(this.rawData);
|
|
7654
7654
|
default:
|
|
7655
7655
|
throw TypeError("Argument 'format' is unsupported value");
|
|
7656
7656
|
}
|
|
@@ -7778,7 +7778,7 @@ Ke.register("I", "2.5.4.43");
|
|
|
7778
7778
|
Ke.register("SN", "2.5.4.4");
|
|
7779
7779
|
Ke.register("T", "2.5.4.12");
|
|
7780
7780
|
function Eh(r, e) {
|
|
7781
|
-
return `\\${
|
|
7781
|
+
return `\\${F.ToHex(F.FromUtf8String(e)).toUpperCase()}`;
|
|
7782
7782
|
}
|
|
7783
7783
|
function Oh(r) {
|
|
7784
7784
|
return r.replace(/([,+"\\<>;])/g, "\\$1").replace(/^([ #])/, "\\$1").replace(/([ ]$)/, "\\$1").replace(/([\r\n\t])/, Eh);
|
|
@@ -7814,7 +7814,7 @@ class Ut {
|
|
|
7814
7814
|
}
|
|
7815
7815
|
toString() {
|
|
7816
7816
|
return this.asn.map((e) => e.map((t) => {
|
|
7817
|
-
const i = this.getName(t.type) || t.type, n = t.value.anyValue ? `#${
|
|
7817
|
+
const i = this.getName(t.type) || t.type, n = t.value.anyValue ? `#${F.ToHex(t.value.anyValue)}` : Oh(t.value.toString());
|
|
7818
7818
|
return `${i}=${n}`;
|
|
7819
7819
|
}).join("+")).join(", ");
|
|
7820
7820
|
}
|
|
@@ -7825,7 +7825,7 @@ class Ut {
|
|
|
7825
7825
|
const n = {};
|
|
7826
7826
|
for (const s of i) {
|
|
7827
7827
|
const a = this.getName(s.type) || s.type;
|
|
7828
|
-
(e = n[a]) !== null && e !== void 0 || (n[a] = []), n[a].push(s.value.anyValue ? `#${
|
|
7828
|
+
(e = n[a]) !== null && e !== void 0 || (n[a] = []), n[a].push(s.value.anyValue ? `#${F.ToHex(s.value.anyValue)}` : s.value.toString());
|
|
7829
7829
|
}
|
|
7830
7830
|
t.push(n);
|
|
7831
7831
|
}
|
|
@@ -7839,16 +7839,8 @@ class Ut {
|
|
|
7839
7839
|
const u = l[l.length - 1];
|
|
7840
7840
|
(u === "," || u === "+") && (l = l.slice(0, l.length - 1), n[3] = u);
|
|
7841
7841
|
const d = n[3];
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
const v = new ii({ type: a });
|
|
7845
|
-
if (l.charAt(0) === "#")
|
|
7846
|
-
v.value.anyValue = L.FromHex(l.slice(1));
|
|
7847
|
-
else {
|
|
7848
|
-
const p = /"(.*?[^\\])?"/.exec(l);
|
|
7849
|
-
p && (l = p[1]), l = l.replace(/\\0a/ig, `
|
|
7850
|
-
`).replace(/\\0d/ig, "\r").replace(/\\0g/ig, " ").replace(/\\(.)/g, "$1"), a === this.getName("E") || a === this.getName("DC") ? v.value.ia5String = l : Ut.isPrintableString(l) ? v.value.printableString = l : v.value.utf8String = l;
|
|
7851
|
-
}
|
|
7842
|
+
a = this.getTypeOid(a);
|
|
7843
|
+
const v = this.createAttribute(a, l);
|
|
7852
7844
|
s === "+" ? t[t.length - 1].push(v) : t.push(new Br([v])), s = d;
|
|
7853
7845
|
}
|
|
7854
7846
|
return t;
|
|
@@ -7858,32 +7850,9 @@ class Ut {
|
|
|
7858
7850
|
for (const i of e) {
|
|
7859
7851
|
const n = new Br();
|
|
7860
7852
|
for (const s in i) {
|
|
7861
|
-
|
|
7862
|
-
if (/[\d.]+/.test(s) || (a = this.getName(s) || ""), !a)
|
|
7863
|
-
throw new Error(`Cannot get OID for name type '${s}'`);
|
|
7864
|
-
const l = i[s];
|
|
7853
|
+
const a = this.getTypeOid(s), l = i[s];
|
|
7865
7854
|
for (const u of l) {
|
|
7866
|
-
const d =
|
|
7867
|
-
if (typeof u == "object")
|
|
7868
|
-
for (const v in u)
|
|
7869
|
-
switch (v) {
|
|
7870
|
-
case "ia5String":
|
|
7871
|
-
d.value.ia5String = u[v];
|
|
7872
|
-
break;
|
|
7873
|
-
case "utf8String":
|
|
7874
|
-
d.value.utf8String = u[v];
|
|
7875
|
-
break;
|
|
7876
|
-
case "universalString":
|
|
7877
|
-
d.value.universalString = u[v];
|
|
7878
|
-
break;
|
|
7879
|
-
case "bmpString":
|
|
7880
|
-
d.value.bmpString = u[v];
|
|
7881
|
-
break;
|
|
7882
|
-
case "printableString":
|
|
7883
|
-
d.value.printableString = u[v];
|
|
7884
|
-
break;
|
|
7885
|
-
}
|
|
7886
|
-
else u[0] === "#" ? d.value.anyValue = L.FromHex(u.slice(1)) : a === this.getName("E") || a === this.getName("DC") ? d.value.ia5String = u : d.value.printableString = u;
|
|
7855
|
+
const d = this.createAttribute(a, u);
|
|
7887
7856
|
n.push(d);
|
|
7888
7857
|
}
|
|
7889
7858
|
}
|
|
@@ -7891,6 +7860,45 @@ class Ut {
|
|
|
7891
7860
|
}
|
|
7892
7861
|
return t;
|
|
7893
7862
|
}
|
|
7863
|
+
getTypeOid(e) {
|
|
7864
|
+
if (/[\d.]+/.test(e) || (e = this.getName(e) || ""), !e)
|
|
7865
|
+
throw new Error(`Cannot get OID for name type '${e}'`);
|
|
7866
|
+
return e;
|
|
7867
|
+
}
|
|
7868
|
+
createAttribute(e, t) {
|
|
7869
|
+
const i = new Kn({ type: e });
|
|
7870
|
+
if (typeof t == "object")
|
|
7871
|
+
for (const n in t)
|
|
7872
|
+
switch (n) {
|
|
7873
|
+
case "ia5String":
|
|
7874
|
+
i.value.ia5String = t[n];
|
|
7875
|
+
break;
|
|
7876
|
+
case "utf8String":
|
|
7877
|
+
i.value.utf8String = t[n];
|
|
7878
|
+
break;
|
|
7879
|
+
case "universalString":
|
|
7880
|
+
i.value.universalString = t[n];
|
|
7881
|
+
break;
|
|
7882
|
+
case "bmpString":
|
|
7883
|
+
i.value.bmpString = t[n];
|
|
7884
|
+
break;
|
|
7885
|
+
case "printableString":
|
|
7886
|
+
i.value.printableString = t[n];
|
|
7887
|
+
break;
|
|
7888
|
+
}
|
|
7889
|
+
else if (t[0] === "#")
|
|
7890
|
+
i.value.anyValue = F.FromHex(t.slice(1));
|
|
7891
|
+
else {
|
|
7892
|
+
const n = this.processStringValue(t);
|
|
7893
|
+
e === this.getName("E") || e === this.getName("DC") ? i.value.ia5String = n : Ut.isPrintableString(n) ? i.value.printableString = n : i.value.utf8String = n;
|
|
7894
|
+
}
|
|
7895
|
+
return i;
|
|
7896
|
+
}
|
|
7897
|
+
processStringValue(e) {
|
|
7898
|
+
const t = /"(.*?[^\\])?"/.exec(e);
|
|
7899
|
+
return t && (e = t[1]), e.replace(/\\0a/ig, `
|
|
7900
|
+
`).replace(/\\0d/ig, "\r").replace(/\\0g/ig, " ").replace(/\\(.)/g, "$1");
|
|
7901
|
+
}
|
|
7894
7902
|
toArrayBuffer() {
|
|
7895
7903
|
return P.serialize(this.asn);
|
|
7896
7904
|
}
|
|
@@ -7900,7 +7908,7 @@ class Ut {
|
|
|
7900
7908
|
return e.length >= 1 && !(!((t = e[0]) === null || t === void 0) && t.subtle) ? (n = e[0] || n, i = e[1] || De.get()) : i = e[0] || De.get(), await i.subtle.digest(n, this.toArrayBuffer());
|
|
7901
7909
|
}
|
|
7902
7910
|
}
|
|
7903
|
-
const Bf = "Cannot initialize GeneralName from ASN.1 data.", pl = `${Bf} Unsupported string format in use.`, Nh = `${Bf} Value doesn't match to GUID regular expression.`, yl = /^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i, gl = "1.3.6.1.4.1.311.25.1", vl = "1.3.6.1.4.1.311.20.2.3", Cs = "dns", Bs = "dn", Is = "email", Es = "ip", Os = "url", Ns = "guid", _s = "upn",
|
|
7911
|
+
const Bf = "Cannot initialize GeneralName from ASN.1 data.", pl = `${Bf} Unsupported string format in use.`, Nh = `${Bf} Value doesn't match to GUID regular expression.`, yl = /^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i, gl = "1.3.6.1.4.1.311.25.1", vl = "1.3.6.1.4.1.311.20.2.3", Cs = "dns", Bs = "dn", Is = "email", Es = "ip", Os = "url", Ns = "guid", _s = "upn", Ni = "id";
|
|
7904
7912
|
class Dt extends qt {
|
|
7905
7913
|
constructor(...e) {
|
|
7906
7914
|
let t;
|
|
@@ -7921,11 +7929,11 @@ class Dt extends qt {
|
|
|
7921
7929
|
const i = new RegExp(yl, "i").exec(e[1]);
|
|
7922
7930
|
if (!i)
|
|
7923
7931
|
throw new Error("Cannot parse GUID value. Value doesn't match to regular expression");
|
|
7924
|
-
const n = i.slice(1).map((s, a) => a < 3 ?
|
|
7932
|
+
const n = i.slice(1).map((s, a) => a < 3 ? F.ToHex(new Uint8Array(F.FromHex(s)).reverse()) : s).join("");
|
|
7925
7933
|
t = new te({
|
|
7926
|
-
otherName: new
|
|
7934
|
+
otherName: new ii({
|
|
7927
7935
|
typeId: gl,
|
|
7928
|
-
value: P.serialize(new oe(
|
|
7936
|
+
value: P.serialize(new oe(F.FromHex(n)))
|
|
7929
7937
|
})
|
|
7930
7938
|
});
|
|
7931
7939
|
break;
|
|
@@ -7933,14 +7941,14 @@ class Dt extends qt {
|
|
|
7933
7941
|
case Es:
|
|
7934
7942
|
t = new te({ iPAddress: e[1] });
|
|
7935
7943
|
break;
|
|
7936
|
-
case
|
|
7944
|
+
case Ni:
|
|
7937
7945
|
t = new te({ registeredID: e[1] });
|
|
7938
7946
|
break;
|
|
7939
7947
|
case _s: {
|
|
7940
7948
|
t = new te({
|
|
7941
|
-
otherName: new
|
|
7949
|
+
otherName: new ii({
|
|
7942
7950
|
typeId: vl,
|
|
7943
|
-
value: P.serialize(
|
|
7951
|
+
value: P.serialize(Lu.toASN(e[1]))
|
|
7944
7952
|
})
|
|
7945
7953
|
});
|
|
7946
7954
|
break;
|
|
@@ -7964,16 +7972,16 @@ class Dt extends qt {
|
|
|
7964
7972
|
else if (e.uniformResourceIdentifier != null)
|
|
7965
7973
|
this.type = Os, this.value = e.uniformResourceIdentifier;
|
|
7966
7974
|
else if (e.registeredID != null)
|
|
7967
|
-
this.type =
|
|
7975
|
+
this.type = Ni, this.value = e.registeredID;
|
|
7968
7976
|
else if (e.directoryName != null)
|
|
7969
7977
|
this.type = Bs, this.value = new Ut(e.directoryName).toString();
|
|
7970
7978
|
else if (e.otherName != null)
|
|
7971
7979
|
if (e.otherName.typeId === gl) {
|
|
7972
7980
|
this.type = Ns;
|
|
7973
|
-
const t = P.parse(e.otherName.value, oe), i = new RegExp(yl, "i").exec(
|
|
7981
|
+
const t = P.parse(e.otherName.value, oe), i = new RegExp(yl, "i").exec(F.ToHex(t));
|
|
7974
7982
|
if (!i)
|
|
7975
7983
|
throw new Error(Nh);
|
|
7976
|
-
this.value = i.slice(1).map((n, s) => s < 3 ?
|
|
7984
|
+
this.value = i.slice(1).map((n, s) => s < 3 ? F.ToHex(new Uint8Array(F.FromHex(n)).reverse()) : n).join("-");
|
|
7977
7985
|
} else if (e.otherName.typeId === vl)
|
|
7978
7986
|
this.type = _s, this.value = P.parse(e.otherName.value, Te).toString();
|
|
7979
7987
|
else
|
|
@@ -7994,7 +8002,7 @@ class Dt extends qt {
|
|
|
7994
8002
|
case Cs:
|
|
7995
8003
|
case Ns:
|
|
7996
8004
|
case Es:
|
|
7997
|
-
case
|
|
8005
|
+
case Ni:
|
|
7998
8006
|
case _s:
|
|
7999
8007
|
case Os:
|
|
8000
8008
|
e = this.type.toUpperCase();
|
|
@@ -8006,10 +8014,10 @@ class Dt extends qt {
|
|
|
8006
8014
|
throw new Error("Unsupported GeneralName type");
|
|
8007
8015
|
}
|
|
8008
8016
|
let t = this.value;
|
|
8009
|
-
return this.type ===
|
|
8017
|
+
return this.type === Ni && (t = Kt.toString(t)), new le(e, void 0, t);
|
|
8010
8018
|
}
|
|
8011
8019
|
}
|
|
8012
|
-
class
|
|
8020
|
+
class fi extends qt {
|
|
8013
8021
|
constructor(e) {
|
|
8014
8022
|
let t;
|
|
8015
8023
|
if (e instanceof Me)
|
|
@@ -8056,8 +8064,8 @@ class di extends qt {
|
|
|
8056
8064
|
return e;
|
|
8057
8065
|
}
|
|
8058
8066
|
}
|
|
8059
|
-
|
|
8060
|
-
const Xr = "-{5}",
|
|
8067
|
+
fi.NAME = "GeneralNames";
|
|
8068
|
+
const Xr = "-{5}", di = "\\n", _h = `[^${di}]+`, Th = `${Xr}BEGIN (${_h}(?=${Xr}))${Xr}`, jh = `${Xr}END \\1${Xr}`, Dr = "\\n", Ph = `[^:${di}]+`, Rh = `(?:[^${di}]+${Dr}(?: +[^${di}]+${Dr})*)`, Vh = "[a-zA-Z0-9=+/]+", Dh = `(?:${Vh}${Dr})+`, ml = `${Th}${Dr}(?:((?:${Ph}: ${Rh})+))?${Dr}?(${Dh})${jh}`;
|
|
8061
8069
|
class Je {
|
|
8062
8070
|
static isPem(e) {
|
|
8063
8071
|
return typeof e == "string" && new RegExp(ml, "g").test(e);
|
|
@@ -8067,10 +8075,10 @@ class Je {
|
|
|
8067
8075
|
const t = new RegExp(ml, "g"), i = [];
|
|
8068
8076
|
let n = null;
|
|
8069
8077
|
for (; n = t.exec(e); ) {
|
|
8070
|
-
const s = n[3].replace(new RegExp(`[${
|
|
8078
|
+
const s = n[3].replace(new RegExp(`[${di}]+`, "g"), ""), a = {
|
|
8071
8079
|
type: n[1],
|
|
8072
8080
|
headers: [],
|
|
8073
|
-
rawData:
|
|
8081
|
+
rawData: F.FromBase64(s)
|
|
8074
8082
|
}, l = n[2];
|
|
8075
8083
|
if (l) {
|
|
8076
8084
|
const u = l.split(new RegExp(Dr, "g"));
|
|
@@ -8132,7 +8140,7 @@ class Je {
|
|
|
8132
8140
|
n.push(`${d.key}: ${d.value}`);
|
|
8133
8141
|
n.push("");
|
|
8134
8142
|
}
|
|
8135
|
-
const s =
|
|
8143
|
+
const s = F.ToBase64(e.rawData);
|
|
8136
8144
|
let a, l = 0;
|
|
8137
8145
|
const u = Array();
|
|
8138
8146
|
for (; l < s.length && (s.length - l < 64 ? a = s.substring(l) : (a = s.substring(l, l + 64), l += 64), a.length !== 0); )
|
|
@@ -8155,16 +8163,16 @@ class Tt extends qt {
|
|
|
8155
8163
|
if (typeof e == "string") {
|
|
8156
8164
|
if (Je.isPem(e))
|
|
8157
8165
|
return Je.decode(e)[0];
|
|
8158
|
-
if (
|
|
8159
|
-
return
|
|
8160
|
-
if (
|
|
8161
|
-
return
|
|
8162
|
-
if (
|
|
8163
|
-
return
|
|
8166
|
+
if (F.isHex(e))
|
|
8167
|
+
return F.FromHex(e);
|
|
8168
|
+
if (F.isBase64(e))
|
|
8169
|
+
return F.FromBase64(e);
|
|
8170
|
+
if (F.isBase64Url(e))
|
|
8171
|
+
return F.FromBase64Url(e);
|
|
8164
8172
|
throw new TypeError("Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url");
|
|
8165
8173
|
} else {
|
|
8166
|
-
const t =
|
|
8167
|
-
return Je.isPem(t) ? Je.decode(t)[0] :
|
|
8174
|
+
const t = F.ToBinary(e);
|
|
8175
|
+
return Je.isPem(t) ? Je.decode(t)[0] : F.isHex(t) ? F.FromHex(t) : F.isBase64(t) ? F.FromBase64(t) : F.isBase64Url(t) ? F.FromBase64Url(t) : T.toArrayBuffer(e);
|
|
8168
8176
|
}
|
|
8169
8177
|
}
|
|
8170
8178
|
constructor(...e) {
|
|
@@ -8230,7 +8238,7 @@ class gt extends Tt {
|
|
|
8230
8238
|
toTextObject() {
|
|
8231
8239
|
const e = this.toTextObjectEmpty(), t = P.parse(this.rawData, pt);
|
|
8232
8240
|
switch (e.Algorithm = ur.serializeAlgorithm(t.algorithm), t.algorithm.algorithm) {
|
|
8233
|
-
case
|
|
8241
|
+
case ai:
|
|
8234
8242
|
e["EC Point"] = t.subjectPublicKey;
|
|
8235
8243
|
break;
|
|
8236
8244
|
case ar:
|
|
@@ -8246,23 +8254,23 @@ function Mh(r, e) {
|
|
|
8246
8254
|
parameters: null
|
|
8247
8255
|
}), e = P.serialize(r), e;
|
|
8248
8256
|
}
|
|
8249
|
-
class
|
|
8257
|
+
class hi extends rt {
|
|
8250
8258
|
static async create(e, t = !1, i = De.get()) {
|
|
8251
8259
|
if ("name" in e && "serialNumber" in e)
|
|
8252
|
-
return new
|
|
8260
|
+
return new hi(e, t);
|
|
8253
8261
|
const s = await (await gt.create(e, i)).getKeyIdentifier(i);
|
|
8254
|
-
return new
|
|
8262
|
+
return new hi(F.ToHex(s), t);
|
|
8255
8263
|
}
|
|
8256
8264
|
constructor(...e) {
|
|
8257
8265
|
if (T.isBufferSource(e[0]))
|
|
8258
8266
|
super(e[0]);
|
|
8259
8267
|
else if (typeof e[0] == "string") {
|
|
8260
|
-
const t = new Yt({ keyIdentifier: new ga(
|
|
8268
|
+
const t = new Yt({ keyIdentifier: new ga(F.FromHex(e[0])) });
|
|
8261
8269
|
super(Ks, e[1], P.serialize(t));
|
|
8262
8270
|
} else {
|
|
8263
|
-
const t = e[0], i = t.name instanceof
|
|
8271
|
+
const t = e[0], i = t.name instanceof fi ? P.parse(t.name.rawData, Me) : t.name, n = new Yt({
|
|
8264
8272
|
authorityCertIssuer: i,
|
|
8265
|
-
authorityCertSerialNumber:
|
|
8273
|
+
authorityCertSerialNumber: F.FromHex(t.serialNumber)
|
|
8266
8274
|
});
|
|
8267
8275
|
super(Ks, e[1], P.serialize(n));
|
|
8268
8276
|
}
|
|
@@ -8270,25 +8278,25 @@ class pi extends rt {
|
|
|
8270
8278
|
onInit(e) {
|
|
8271
8279
|
super.onInit(e);
|
|
8272
8280
|
const t = P.parse(e.extnValue, Yt);
|
|
8273
|
-
t.keyIdentifier && (this.keyId =
|
|
8281
|
+
t.keyIdentifier && (this.keyId = F.ToHex(t.keyIdentifier)), (t.authorityCertIssuer || t.authorityCertSerialNumber) && (this.certId = {
|
|
8274
8282
|
name: t.authorityCertIssuer || [],
|
|
8275
|
-
serialNumber: t.authorityCertSerialNumber ?
|
|
8283
|
+
serialNumber: t.authorityCertSerialNumber ? F.ToHex(t.authorityCertSerialNumber) : ""
|
|
8276
8284
|
});
|
|
8277
8285
|
}
|
|
8278
8286
|
toTextObject() {
|
|
8279
8287
|
const e = this.toTextObjectWithoutValue(), t = P.parse(this.value, Yt);
|
|
8280
|
-
return t.authorityCertIssuer && (e["Authority Issuer"] = new
|
|
8288
|
+
return t.authorityCertIssuer && (e["Authority Issuer"] = new fi(t.authorityCertIssuer).toTextObject()), t.authorityCertSerialNumber && (e["Authority Serial Number"] = t.authorityCertSerialNumber), t.keyIdentifier && (e[""] = t.keyIdentifier), e;
|
|
8281
8289
|
}
|
|
8282
8290
|
}
|
|
8283
|
-
|
|
8291
|
+
hi.NAME = "Authority Key Identifier";
|
|
8284
8292
|
class If extends rt {
|
|
8285
8293
|
constructor(...e) {
|
|
8286
8294
|
if (T.isBufferSource(e[0])) {
|
|
8287
8295
|
super(e[0]);
|
|
8288
|
-
const t = P.parse(this.value,
|
|
8296
|
+
const t = P.parse(this.value, Gi);
|
|
8289
8297
|
this.ca = t.cA, this.pathLength = t.pathLenConstraint;
|
|
8290
8298
|
} else {
|
|
8291
|
-
const t = new
|
|
8299
|
+
const t = new Gi({
|
|
8292
8300
|
cA: e[0],
|
|
8293
8301
|
pathLenConstraint: e[1]
|
|
8294
8302
|
});
|
|
@@ -8309,10 +8317,10 @@ class Ef extends rt {
|
|
|
8309
8317
|
constructor(...e) {
|
|
8310
8318
|
if (T.isBufferSource(e[0])) {
|
|
8311
8319
|
super(e[0]);
|
|
8312
|
-
const t = P.parse(this.value,
|
|
8320
|
+
const t = P.parse(this.value, Zi);
|
|
8313
8321
|
this.usages = t.map((i) => i);
|
|
8314
8322
|
} else {
|
|
8315
|
-
const t = new
|
|
8323
|
+
const t = new Zi(e[0]);
|
|
8316
8324
|
super(Gu, e[1], P.serialize(t)), this.usages = e[0];
|
|
8317
8325
|
}
|
|
8318
8326
|
}
|
|
@@ -8346,16 +8354,16 @@ $a.NAME = "Key Usages";
|
|
|
8346
8354
|
class gs extends rt {
|
|
8347
8355
|
static async create(e, t = !1, i = De.get()) {
|
|
8348
8356
|
const s = await (await gt.create(e, i)).getKeyIdentifier(i);
|
|
8349
|
-
return new gs(
|
|
8357
|
+
return new gs(F.ToHex(s), t);
|
|
8350
8358
|
}
|
|
8351
8359
|
constructor(...e) {
|
|
8352
8360
|
if (T.isBufferSource(e[0])) {
|
|
8353
8361
|
super(e[0]);
|
|
8354
8362
|
const t = P.parse(this.value, $t);
|
|
8355
|
-
this.keyId =
|
|
8363
|
+
this.keyId = F.ToHex(t);
|
|
8356
8364
|
} else {
|
|
8357
|
-
const t = typeof e[0] == "string" ?
|
|
8358
|
-
super(Qu, e[1], P.serialize(i)), this.keyId =
|
|
8365
|
+
const t = typeof e[0] == "string" ? F.FromHex(e[0]) : e[0], i = new $t(t);
|
|
8366
|
+
super(Qu, e[1], P.serialize(i)), this.keyId = F.ToHex(t);
|
|
8359
8367
|
}
|
|
8360
8368
|
}
|
|
8361
8369
|
toTextObject() {
|
|
@@ -8366,12 +8374,12 @@ class gs extends rt {
|
|
|
8366
8374
|
gs.NAME = "Subject Key Identifier";
|
|
8367
8375
|
class Ua extends rt {
|
|
8368
8376
|
constructor(...e) {
|
|
8369
|
-
T.isBufferSource(e[0]) ? super(e[0]) : super(Zu, e[1], new
|
|
8377
|
+
T.isBufferSource(e[0]) ? super(e[0]) : super(Zu, e[1], new fi(e[0] || []).rawData);
|
|
8370
8378
|
}
|
|
8371
8379
|
onInit(e) {
|
|
8372
8380
|
super.onInit(e);
|
|
8373
8381
|
const t = P.parse(e.extnValue, so);
|
|
8374
|
-
this.names = new
|
|
8382
|
+
this.names = new fi(t);
|
|
8375
8383
|
}
|
|
8376
8384
|
toTextObject() {
|
|
8377
8385
|
const e = this.toTextObjectWithoutValue(), t = this.names.toTextObject();
|
|
@@ -8396,10 +8404,10 @@ class Of extends rt {
|
|
|
8396
8404
|
var t;
|
|
8397
8405
|
if (T.isBufferSource(e[0])) {
|
|
8398
8406
|
super(e[0]);
|
|
8399
|
-
const i = P.parse(this.value,
|
|
8407
|
+
const i = P.parse(this.value, Ji);
|
|
8400
8408
|
this.policies = i.map((n) => n.policyIdentifier);
|
|
8401
8409
|
} else {
|
|
8402
|
-
const i = e[0], n = (t = e[1]) !== null && t !== void 0 ? t : !1, s = new
|
|
8410
|
+
const i = e[0], n = (t = e[1]) !== null && t !== void 0 ? t : !1, s = new Ji(i.map((a) => new zn({
|
|
8403
8411
|
policyIdentifier: a
|
|
8404
8412
|
})));
|
|
8405
8413
|
super(qu, n, P.serialize(s)), this.policies = i;
|
|
@@ -8455,7 +8463,7 @@ class _f extends rt {
|
|
|
8455
8463
|
super(Fs, e[1], P.serialize(a));
|
|
8456
8464
|
} else {
|
|
8457
8465
|
const a = e[0], l = new Ar();
|
|
8458
|
-
|
|
8466
|
+
Ti(l, a, rc, "ocsp"), Ti(l, a, ic, "caIssuers"), Ti(l, a, nc, "timeStamping"), Ti(l, a, sc, "caRepository"), super(Fs, e[1], P.serialize(l));
|
|
8459
8467
|
}
|
|
8460
8468
|
(t = this.ocsp) !== null && t !== void 0 || (this.ocsp = []), (i = this.caIssuers) !== null && i !== void 0 || (this.caIssuers = []), (n = this.timeStamping) !== null && n !== void 0 || (this.timeStamping = []), (s = this.caRepository) !== null && s !== void 0 || (this.caRepository = []);
|
|
8461
8469
|
}
|
|
@@ -8479,11 +8487,11 @@ class _f extends rt {
|
|
|
8479
8487
|
}
|
|
8480
8488
|
toTextObject() {
|
|
8481
8489
|
const e = this.toTextObjectWithoutValue();
|
|
8482
|
-
return this.ocsp.length &&
|
|
8490
|
+
return this.ocsp.length && _i(e, "OCSP", this.ocsp), this.caIssuers.length && _i(e, "CA Issuers", this.caIssuers), this.timeStamping.length && _i(e, "Time Stamping", this.timeStamping), this.caRepository.length && _i(e, "CA Repository", this.caRepository), e;
|
|
8483
8491
|
}
|
|
8484
8492
|
}
|
|
8485
8493
|
_f.NAME = "Authority Info Access";
|
|
8486
|
-
function
|
|
8494
|
+
function _i(r, e, t) {
|
|
8487
8495
|
if (t.length === 1)
|
|
8488
8496
|
r[e] = t[0].toTextObject();
|
|
8489
8497
|
else {
|
|
@@ -8495,10 +8503,10 @@ function Ti(r, e, t) {
|
|
|
8495
8503
|
}), r[e] = i;
|
|
8496
8504
|
}
|
|
8497
8505
|
}
|
|
8498
|
-
function
|
|
8506
|
+
function Ti(r, e, t, i) {
|
|
8499
8507
|
const n = e[i];
|
|
8500
8508
|
n && (Array.isArray(n) ? n : [n]).forEach((a) => {
|
|
8501
|
-
typeof a == "string" && (a = new Dt("url", a)), r.push(new
|
|
8509
|
+
typeof a == "string" && (a = new Dt("url", a)), r.push(new vi({
|
|
8502
8510
|
accessMethod: t,
|
|
8503
8511
|
accessLocation: P.parse(a.rawData, te)
|
|
8504
8512
|
}));
|
|
@@ -8534,7 +8542,7 @@ class Tf extends Gr {
|
|
|
8534
8542
|
if (T.isBufferSource(e[0]))
|
|
8535
8543
|
super(e[0]);
|
|
8536
8544
|
else {
|
|
8537
|
-
const i = new
|
|
8545
|
+
const i = new Sn({
|
|
8538
8546
|
printableString: e[0]
|
|
8539
8547
|
});
|
|
8540
8548
|
super(Af, [P.serialize(i)]);
|
|
@@ -8543,7 +8551,7 @@ class Tf extends Gr {
|
|
|
8543
8551
|
}
|
|
8544
8552
|
onInit(e) {
|
|
8545
8553
|
if (super.onInit(e), this.values[0]) {
|
|
8546
|
-
const t = P.parse(this.values[0],
|
|
8554
|
+
const t = P.parse(this.values[0], Sn);
|
|
8547
8555
|
this.password = t.toString();
|
|
8548
8556
|
}
|
|
8549
8557
|
}
|
|
@@ -8553,7 +8561,7 @@ class Tf extends Gr {
|
|
|
8553
8561
|
}
|
|
8554
8562
|
}
|
|
8555
8563
|
Tf.NAME = "Challenge Password";
|
|
8556
|
-
class
|
|
8564
|
+
class La extends Gr {
|
|
8557
8565
|
constructor(...e) {
|
|
8558
8566
|
var t;
|
|
8559
8567
|
if (T.isBufferSource(e[0]))
|
|
@@ -8579,7 +8587,7 @@ class Ha extends Gr {
|
|
|
8579
8587
|
return e;
|
|
8580
8588
|
}
|
|
8581
8589
|
}
|
|
8582
|
-
|
|
8590
|
+
La.NAME = "Extensions";
|
|
8583
8591
|
class vs {
|
|
8584
8592
|
static register(e, t) {
|
|
8585
8593
|
this.items.set(e, t);
|
|
@@ -8599,10 +8607,10 @@ class $h {
|
|
|
8599
8607
|
return T.toArrayBuffer(t);
|
|
8600
8608
|
}
|
|
8601
8609
|
}
|
|
8602
|
-
var
|
|
8603
|
-
let Zo =
|
|
8610
|
+
var Ui;
|
|
8611
|
+
let Zo = Ui = class {
|
|
8604
8612
|
static createPssParams(e, t) {
|
|
8605
|
-
const i =
|
|
8613
|
+
const i = Ui.getHashAlgorithm(e);
|
|
8606
8614
|
return i ? new lr({
|
|
8607
8615
|
hashAlgorithm: i,
|
|
8608
8616
|
maskGenAlgorithm: new V({
|
|
@@ -8629,13 +8637,13 @@ let Zo = Hi = class {
|
|
|
8629
8637
|
throw new Error("Cannot get hash algorithm name");
|
|
8630
8638
|
switch (t.toLowerCase()) {
|
|
8631
8639
|
case "sha-1":
|
|
8632
|
-
return new V({ algorithm:
|
|
8640
|
+
return new V({ algorithm: dn, parameters: null });
|
|
8633
8641
|
case "sha-256":
|
|
8634
8642
|
return new V({ algorithm: Io, parameters: null });
|
|
8635
8643
|
case "sha-384":
|
|
8636
|
-
return new V({ algorithm:
|
|
8644
|
+
return new V({ algorithm: hn, parameters: null });
|
|
8637
8645
|
case "sha-512":
|
|
8638
|
-
return new V({ algorithm:
|
|
8646
|
+
return new V({ algorithm: pn, parameters: null });
|
|
8639
8647
|
}
|
|
8640
8648
|
} else
|
|
8641
8649
|
return new V({ algorithm: ar, parameters: null });
|
|
@@ -8644,7 +8652,7 @@ let Zo = Hi = class {
|
|
|
8644
8652
|
if ("hash" in e) {
|
|
8645
8653
|
if (!("saltLength" in e && typeof e.saltLength == "number"))
|
|
8646
8654
|
throw new Error("Cannot get 'saltLength' from 'alg' argument");
|
|
8647
|
-
const t =
|
|
8655
|
+
const t = Ui.createPssParams(e.hash, e.saltLength);
|
|
8648
8656
|
if (!t)
|
|
8649
8657
|
throw new Error("Cannot create PSS parameters");
|
|
8650
8658
|
return new V({ algorithm: Qr, parameters: P.serialize(t) });
|
|
@@ -8657,13 +8665,13 @@ let Zo = Hi = class {
|
|
|
8657
8665
|
switch (e.algorithm) {
|
|
8658
8666
|
case ar:
|
|
8659
8667
|
return { name: "RSASSA-PKCS1-v1_5" };
|
|
8660
|
-
case
|
|
8668
|
+
case dn:
|
|
8661
8669
|
return { name: "RSASSA-PKCS1-v1_5", hash: { name: "SHA-1" } };
|
|
8662
8670
|
case Io:
|
|
8663
8671
|
return { name: "RSASSA-PKCS1-v1_5", hash: { name: "SHA-256" } };
|
|
8664
|
-
case
|
|
8672
|
+
case hn:
|
|
8665
8673
|
return { name: "RSASSA-PKCS1-v1_5", hash: { name: "SHA-384" } };
|
|
8666
|
-
case
|
|
8674
|
+
case pn:
|
|
8667
8675
|
return { name: "RSASSA-PKCS1-v1_5", hash: { name: "SHA-512" } };
|
|
8668
8676
|
case Qr:
|
|
8669
8677
|
if (e.parameters) {
|
|
@@ -8679,33 +8687,33 @@ let Zo = Hi = class {
|
|
|
8679
8687
|
return null;
|
|
8680
8688
|
}
|
|
8681
8689
|
};
|
|
8682
|
-
Zo =
|
|
8690
|
+
Zo = Ui = o([
|
|
8683
8691
|
fs()
|
|
8684
8692
|
], Zo);
|
|
8685
|
-
$e.registerSingleton(
|
|
8693
|
+
$e.registerSingleton(Ei, Zo);
|
|
8686
8694
|
let Qo = class {
|
|
8687
8695
|
toAsnAlgorithm(e) {
|
|
8688
8696
|
switch (e.name.toLowerCase()) {
|
|
8689
8697
|
case "sha-1":
|
|
8690
|
-
return new V({ algorithm:
|
|
8698
|
+
return new V({ algorithm: yn });
|
|
8691
8699
|
case "sha-256":
|
|
8692
|
-
return new V({ algorithm:
|
|
8700
|
+
return new V({ algorithm: gn });
|
|
8693
8701
|
case "sha-384":
|
|
8694
|
-
return new V({ algorithm:
|
|
8702
|
+
return new V({ algorithm: vn });
|
|
8695
8703
|
case "sha-512":
|
|
8696
|
-
return new V({ algorithm:
|
|
8704
|
+
return new V({ algorithm: mn });
|
|
8697
8705
|
}
|
|
8698
8706
|
return null;
|
|
8699
8707
|
}
|
|
8700
8708
|
toWebAlgorithm(e) {
|
|
8701
8709
|
switch (e.algorithm) {
|
|
8702
|
-
case
|
|
8710
|
+
case yn:
|
|
8703
8711
|
return { name: "SHA-1" };
|
|
8704
|
-
case
|
|
8712
|
+
case gn:
|
|
8705
8713
|
return { name: "SHA-256" };
|
|
8706
|
-
case
|
|
8714
|
+
case vn:
|
|
8707
8715
|
return { name: "SHA-384" };
|
|
8708
|
-
case
|
|
8716
|
+
case mn:
|
|
8709
8717
|
return { name: "SHA-512" };
|
|
8710
8718
|
}
|
|
8711
8719
|
return null;
|
|
@@ -8714,7 +8722,7 @@ let Qo = class {
|
|
|
8714
8722
|
Qo = o([
|
|
8715
8723
|
fs()
|
|
8716
8724
|
], Qo);
|
|
8717
|
-
$e.registerSingleton(
|
|
8725
|
+
$e.registerSingleton(Ei, Qo);
|
|
8718
8726
|
class Xe {
|
|
8719
8727
|
addPadding(e, t) {
|
|
8720
8728
|
const i = T.toUint8Array(t), n = new Uint8Array(e);
|
|
@@ -8735,14 +8743,14 @@ class Xe {
|
|
|
8735
8743
|
}
|
|
8736
8744
|
toAsnSignature(e, t) {
|
|
8737
8745
|
if (e.name === "ECDSA") {
|
|
8738
|
-
const i = e.namedCurve, n = Xe.namedCurveSize.get(i) || Xe.defaultNamedCurveSize, s = new
|
|
8746
|
+
const i = e.namedCurve, n = Xe.namedCurveSize.get(i) || Xe.defaultNamedCurveSize, s = new fn(), a = T.toUint8Array(t);
|
|
8739
8747
|
return s.r = this.removePadding(a.slice(0, n), !0), s.s = this.removePadding(a.slice(n, n + n), !0), P.serialize(s);
|
|
8740
8748
|
}
|
|
8741
8749
|
return null;
|
|
8742
8750
|
}
|
|
8743
8751
|
toWebSignature(e, t) {
|
|
8744
8752
|
if (e.name === "ECDSA") {
|
|
8745
|
-
const i = P.parse(t,
|
|
8753
|
+
const i = P.parse(t, fn), n = e.namedCurve, s = Xe.namedCurveSize.get(n) || Xe.defaultNamedCurveSize, a = this.addPadding(s, this.removePadding(i.r)), l = this.addPadding(s, this.removePadding(i.s));
|
|
8746
8754
|
return Qf(a, l);
|
|
8747
8755
|
}
|
|
8748
8756
|
return null;
|
|
@@ -8802,17 +8810,17 @@ let Xo = class {
|
|
|
8802
8810
|
Xo = o([
|
|
8803
8811
|
fs()
|
|
8804
8812
|
], Xo);
|
|
8805
|
-
$e.registerSingleton(
|
|
8813
|
+
$e.registerSingleton(Ei, Xo);
|
|
8806
8814
|
class Uh extends Tt {
|
|
8807
8815
|
constructor(e) {
|
|
8808
|
-
Tt.isAsnEncoded(e) ? super(e,
|
|
8816
|
+
Tt.isAsnEncoded(e) ? super(e, li) : super(e), this.tag = Je.CertificateRequestTag;
|
|
8809
8817
|
}
|
|
8810
8818
|
onInit(e) {
|
|
8811
8819
|
this.tbs = P.serialize(e.certificationRequestInfo), this.publicKey = new gt(e.certificationRequestInfo.subjectPKInfo);
|
|
8812
8820
|
const t = $e.resolve(Vr);
|
|
8813
8821
|
this.signatureAlgorithm = t.toWebAlgorithm(e.signatureAlgorithm), this.signature = e.signature, this.attributes = e.certificationRequestInfo.attributes.map((n) => vs.create(P.serialize(n)));
|
|
8814
8822
|
const i = this.getAttribute(Ma);
|
|
8815
|
-
this.extensions = [], i instanceof
|
|
8823
|
+
this.extensions = [], i instanceof La && (this.extensions = i.items), this.subjectName = new Ut(e.certificationRequestInfo.subject), this.subject = this.subjectName.toString();
|
|
8816
8824
|
}
|
|
8817
8825
|
getAttribute(e) {
|
|
8818
8826
|
for (const t of this.attributes)
|
|
@@ -8843,7 +8851,7 @@ class Uh extends Tt {
|
|
|
8843
8851
|
return await e.subtle.verify(this.signatureAlgorithm, i, s, this.tbs);
|
|
8844
8852
|
}
|
|
8845
8853
|
toTextObject() {
|
|
8846
|
-
const e = this.toTextObjectEmpty(), t = P.parse(this.rawData,
|
|
8854
|
+
const e = this.toTextObjectEmpty(), t = P.parse(this.rawData, li), i = t.certificationRequestInfo, n = new le("", {
|
|
8847
8855
|
Version: `${Ir[i.version]} (${i.version})`,
|
|
8848
8856
|
Subject: this.subject,
|
|
8849
8857
|
"Subject Public Key Info": this.publicKey
|
|
@@ -8869,7 +8877,7 @@ class jf extends Tt {
|
|
|
8869
8877
|
}
|
|
8870
8878
|
onInit(e) {
|
|
8871
8879
|
const t = e.tbsCertificate;
|
|
8872
|
-
this.tbs = P.serialize(t), this.serialNumber =
|
|
8880
|
+
this.tbs = P.serialize(t), this.serialNumber = F.ToHex(t.serialNumber), this.subjectName = new Ut(t.subject), this.subject = new Ut(t.subject).toString(), this.issuerName = new Ut(t.issuer), this.issuer = this.issuerName.toString();
|
|
8873
8881
|
const i = $e.resolve(Vr);
|
|
8874
8882
|
this.signatureAlgorithm = i.toWebAlgorithm(e.signatureAlgorithm), this.signature = e.signatureValue;
|
|
8875
8883
|
const n = t.validity.notBefore.utcTime || t.validity.notBefore.generalTime;
|
|
@@ -8969,12 +8977,12 @@ it.register(Ku, If);
|
|
|
8969
8977
|
it.register(Gu, Ef);
|
|
8970
8978
|
it.register(Wu, $a);
|
|
8971
8979
|
it.register(Qu, gs);
|
|
8972
|
-
it.register(Ks,
|
|
8980
|
+
it.register(Ks, hi);
|
|
8973
8981
|
it.register(Zu, Ua);
|
|
8974
8982
|
it.register(Js, Nf);
|
|
8975
8983
|
it.register(Fs, _f);
|
|
8976
8984
|
vs.register(Af, Tf);
|
|
8977
|
-
vs.register(Ma,
|
|
8985
|
+
vs.register(Ma, La);
|
|
8978
8986
|
$e.registerSingleton(ms, $h);
|
|
8979
8987
|
$e.registerSingleton(ms, Xe);
|
|
8980
8988
|
Xe.namedCurveSize.set("P-256", 32);
|
|
@@ -9014,7 +9022,7 @@ function Pf() {
|
|
|
9014
9022
|
}
|
|
9015
9023
|
};
|
|
9016
9024
|
}
|
|
9017
|
-
function
|
|
9025
|
+
function Lh() {
|
|
9018
9026
|
const r = Pf(), e = me({}), t = (n) => {
|
|
9019
9027
|
if (!(n.id in e.value))
|
|
9020
9028
|
try {
|
|
@@ -9038,7 +9046,7 @@ function Hh() {
|
|
|
9038
9046
|
}
|
|
9039
9047
|
};
|
|
9040
9048
|
}
|
|
9041
|
-
const
|
|
9049
|
+
const Hh = {
|
|
9042
9050
|
title: "Certificates",
|
|
9043
9051
|
list: {
|
|
9044
9052
|
toolbar_actions: {
|
|
@@ -9146,7 +9154,7 @@ const Lh = {
|
|
|
9146
9154
|
KEY_USAGE_TYPE_CONTENT_COMMITMENT: "nonRepudiation"
|
|
9147
9155
|
}
|
|
9148
9156
|
}, Kh = {
|
|
9149
|
-
certificates:
|
|
9157
|
+
certificates: Hh,
|
|
9150
9158
|
"ca-certificates": {
|
|
9151
9159
|
title: "CA Certificates",
|
|
9152
9160
|
list: {
|
|
@@ -9230,24 +9238,24 @@ function qh() {
|
|
|
9230
9238
|
};
|
|
9231
9239
|
}
|
|
9232
9240
|
const lt = {
|
|
9233
|
-
useCertificate:
|
|
9241
|
+
useCertificate: Lh,
|
|
9234
9242
|
useI18n: qh,
|
|
9235
9243
|
useX509: Pf
|
|
9236
|
-
},
|
|
9244
|
+
}, ji = "/v2/control-planes/{controlPlaneId}/core-entities", Pi = "/{workspace}", ei = {
|
|
9237
9245
|
list: {
|
|
9238
|
-
konnect: `${
|
|
9239
|
-
kongManager: `${
|
|
9246
|
+
konnect: `${ji}/certificates`,
|
|
9247
|
+
kongManager: `${Pi}/certificates`
|
|
9240
9248
|
},
|
|
9241
9249
|
form: {
|
|
9242
9250
|
konnect: {
|
|
9243
|
-
create: `${
|
|
9244
|
-
edit: `${
|
|
9245
|
-
validate: `${
|
|
9251
|
+
create: `${ji}/certificates`,
|
|
9252
|
+
edit: `${ji}/certificates/{id}`,
|
|
9253
|
+
validate: `${ji}/v1/schemas/json/certificate/validate`
|
|
9246
9254
|
},
|
|
9247
9255
|
kongManager: {
|
|
9248
|
-
create: `${
|
|
9249
|
-
edit: `${
|
|
9250
|
-
validate: `${
|
|
9256
|
+
create: `${Pi}/certificates`,
|
|
9257
|
+
edit: `${Pi}/certificates/{id}`,
|
|
9258
|
+
validate: `${Pi}/schemas/certificates/validate`
|
|
9251
9259
|
}
|
|
9252
9260
|
}
|
|
9253
9261
|
}, zh = { class: "kong-ui-entities-certificates-list" }, Gh = { key: 0 }, Wh = { key: 1 }, Jh = { key: 0 }, Yh = { key: 1 }, Zh = { key: 0 }, Qh = { key: 1 }, Xh = { key: 1 }, ep = { key: 1 }, tp = /* @__PURE__ */ fr({
|
|
@@ -9303,7 +9311,7 @@ const lt = {
|
|
|
9303
9311
|
emits: ["error", "copy:success", "copy:error", "delete:success"],
|
|
9304
9312
|
setup(r, { emit: e }) {
|
|
9305
9313
|
var Y;
|
|
9306
|
-
const t = e, i = r, { i18n: { t: n, formatUnixTimeStamp: s }, i18nT: a } = lt.useI18n(), l =
|
|
9314
|
+
const t = e, i = r, { i18n: { t: n, formatUnixTimeStamp: s }, i18nT: a } = lt.useI18n(), l = xn(), { axiosInstance: u } = Cn((Y = i.config) == null ? void 0 : Y.axiosRequestConfig), d = me(1), v = ce(() => i.config.app !== "kongManager" || !!i.config.disableSorting), G = {
|
|
9307
9315
|
// the Subject column is non-hidable
|
|
9308
9316
|
subject: { label: n("certificates.list.table_headers.subject"), hidable: !1 },
|
|
9309
9317
|
expiry: { label: n("certificates.list.table_headers.expiry") },
|
|
@@ -9312,71 +9320,71 @@ const lt = {
|
|
|
9312
9320
|
tags: { label: n("certificates.list.table_headers.tags"), sortable: !0 }
|
|
9313
9321
|
}, N = ce(() => {
|
|
9314
9322
|
var q, de;
|
|
9315
|
-
let
|
|
9316
|
-
return i.config.app === "konnect" ?
|
|
9323
|
+
let L = `${i.config.apiBaseUrl}${ei.list[i.config.app]}`;
|
|
9324
|
+
return i.config.app === "konnect" ? L = L.replace(/{controlPlaneId}/gi, ((q = i.config) == null ? void 0 : q.controlPlaneId) || "") : i.config.app === "kongManager" && (L = L.replace(/\/{workspace}/gi, (de = i.config) != null && de.workspace ? `/${i.config.workspace}` : "")), L;
|
|
9317
9325
|
}), f = me(""), y = ce(() => {
|
|
9318
|
-
const
|
|
9319
|
-
return
|
|
9320
|
-
isExactMatch:
|
|
9326
|
+
const L = i.config.app === "konnect" || i.config.isExactMatch;
|
|
9327
|
+
return L ? {
|
|
9328
|
+
isExactMatch: L,
|
|
9321
9329
|
placeholder: n("certificates.search.placeholder")
|
|
9322
9330
|
} : {
|
|
9323
|
-
isExactMatch:
|
|
9331
|
+
isExactMatch: L,
|
|
9324
9332
|
schema: i.config.filterSchema
|
|
9325
9333
|
};
|
|
9326
9334
|
}), { fetcher: A, fetcherState: b } = El(i.config, N.value), O = () => {
|
|
9327
9335
|
f.value = "";
|
|
9328
9336
|
}, k = () => {
|
|
9329
9337
|
d.value++;
|
|
9330
|
-
}, I = me(null), ee = (
|
|
9331
|
-
const de =
|
|
9338
|
+
}, I = me(null), ee = (L, q) => {
|
|
9339
|
+
const de = L.id;
|
|
9332
9340
|
if (!q(de)) {
|
|
9333
9341
|
t("copy:error", {
|
|
9334
|
-
entity:
|
|
9342
|
+
entity: L,
|
|
9335
9343
|
field: "id",
|
|
9336
9344
|
message: n("certificates.errors.copy")
|
|
9337
9345
|
});
|
|
9338
9346
|
return;
|
|
9339
9347
|
}
|
|
9340
9348
|
t("copy:success", {
|
|
9341
|
-
entity:
|
|
9349
|
+
entity: L,
|
|
9342
9350
|
field: "id",
|
|
9343
9351
|
message: n("certificates.copy.success", { val: de })
|
|
9344
9352
|
});
|
|
9345
|
-
}, ue = (
|
|
9346
|
-
const de = JSON.stringify(
|
|
9353
|
+
}, ue = (L, q) => {
|
|
9354
|
+
const de = JSON.stringify(L);
|
|
9347
9355
|
if (!q(de)) {
|
|
9348
9356
|
t("copy:error", {
|
|
9349
|
-
entity:
|
|
9357
|
+
entity: L,
|
|
9350
9358
|
message: n("certificates.errors.copy")
|
|
9351
9359
|
});
|
|
9352
9360
|
return;
|
|
9353
9361
|
}
|
|
9354
9362
|
t("copy:success", {
|
|
9355
|
-
entity:
|
|
9363
|
+
entity: L,
|
|
9356
9364
|
message: n("certificates.copy.success_brief")
|
|
9357
9365
|
});
|
|
9358
|
-
}, $ = async (
|
|
9366
|
+
}, $ = async (L) => {
|
|
9359
9367
|
var de;
|
|
9360
|
-
await ((de = i.canRetrieve) == null ? void 0 : de.call(i,
|
|
9361
|
-
}, C = (
|
|
9368
|
+
await ((de = i.canRetrieve) == null ? void 0 : de.call(i, L)) && l.push(i.config.getViewRoute(L.id));
|
|
9369
|
+
}, C = (L) => ({
|
|
9362
9370
|
label: n("certificates.actions.view"),
|
|
9363
|
-
to: i.config.getViewRoute(
|
|
9364
|
-
}), j = (
|
|
9371
|
+
to: i.config.getViewRoute(L)
|
|
9372
|
+
}), j = (L) => ({
|
|
9365
9373
|
label: n("certificates.actions.edit"),
|
|
9366
|
-
to: i.config.getEditRoute(
|
|
9367
|
-
}), we = (
|
|
9374
|
+
to: i.config.getEditRoute(L)
|
|
9375
|
+
}), we = (L) => {
|
|
9368
9376
|
if (i.config.getCreateSniRoute)
|
|
9369
9377
|
return {
|
|
9370
9378
|
label: n("certificates.actions.addSni"),
|
|
9371
|
-
to: i.config.getCreateSniRoute(
|
|
9379
|
+
to: i.config.getCreateSniRoute(L)
|
|
9372
9380
|
};
|
|
9373
|
-
}, se = me(void 0), je = me(!1), he = me(!1), Ae = me(""), dt = Ol(i.config, N.value), { certificateDataCache: ie, getCertificateData: At } = lt.useCertificate(), gr = (
|
|
9374
|
-
se.value =
|
|
9381
|
+
}, se = me(void 0), je = me(!1), he = me(!1), Ae = me(""), dt = Ol(i.config, N.value), { certificateDataCache: ie, getCertificateData: At } = lt.useCertificate(), gr = (L) => {
|
|
9382
|
+
se.value = L, je.value = !0;
|
|
9375
9383
|
}, vr = () => {
|
|
9376
9384
|
je.value = !1;
|
|
9377
9385
|
}, zt = async () => {
|
|
9378
|
-
var
|
|
9379
|
-
if ((
|
|
9386
|
+
var L, q, de;
|
|
9387
|
+
if ((L = se.value) != null && L.id) {
|
|
9380
9388
|
he.value = !0;
|
|
9381
9389
|
try {
|
|
9382
9390
|
await u.delete(dt(se.value.id)), he.value = !1, je.value = !1, d.value++, t("delete:success", se.value);
|
|
@@ -9387,12 +9395,12 @@ const lt = {
|
|
|
9387
9395
|
}
|
|
9388
9396
|
}
|
|
9389
9397
|
}, St = me(!1);
|
|
9390
|
-
Li(b, (
|
|
9398
|
+
Li(b, (L) => {
|
|
9391
9399
|
var q, de, Ve, Ge;
|
|
9392
|
-
if (Array.isArray((q =
|
|
9400
|
+
if (Array.isArray((q = L == null ? void 0 : L.response) == null ? void 0 : q.data) && (St.value = L.response.data.length > 0), L.status === Nl.Error) {
|
|
9393
9401
|
I.value = {
|
|
9394
9402
|
title: n("certificates.errors.general")
|
|
9395
|
-
}, (Ge = (Ve = (de =
|
|
9403
|
+
}, (Ge = (Ve = (de = L.error) == null ? void 0 : de.response) == null ? void 0 : Ve.data) != null && Ge.message && (I.value.message = L.error.response.data.message), t("error", L.error);
|
|
9396
9404
|
return;
|
|
9397
9405
|
}
|
|
9398
9406
|
ie.value = {}, I.value = null;
|
|
@@ -9405,7 +9413,7 @@ const lt = {
|
|
|
9405
9413
|
});
|
|
9406
9414
|
return kl(async () => {
|
|
9407
9415
|
await i.canCreate() && (W.value.title = n("certificates.list.empty_state.title"), W.value.ctaText = n("certificates.actions.create"));
|
|
9408
|
-
}), (
|
|
9416
|
+
}), (L, q) => {
|
|
9409
9417
|
const de = ge("KButton"), Ve = ge("KCopy"), Ge = ge("KBadge"), mr = ge("KTruncate"), Z = ge("KDropdownItem"), ke = ge("KClipboardProvider");
|
|
9410
9418
|
return Q(), ae("div", zh, [
|
|
9411
9419
|
M(w(_l), {
|
|
@@ -9759,7 +9767,7 @@ const lt = {
|
|
|
9759
9767
|
emits: ["update", "error", "loading"],
|
|
9760
9768
|
setup(r, { emit: e }) {
|
|
9761
9769
|
var ue;
|
|
9762
|
-
const t = e, i = r, n =
|
|
9770
|
+
const t = e, i = r, n = xn(), { i18nT: s, i18n: { t: a } } = lt.useI18n(), { getMessageFromError: l } = Rl(), { axiosInstance: u } = Cn((ue = i.config) == null ? void 0 : ue.axiosRequestConfig), d = ce(() => ei.form[i.config.app].edit), v = ce(() => i.certificateId ? Wt.Edit : Wt.Create), p = Hi({
|
|
9763
9771
|
fields: {
|
|
9764
9772
|
cert: "",
|
|
9765
9773
|
key: "",
|
|
@@ -9770,7 +9778,7 @@ const lt = {
|
|
|
9770
9778
|
},
|
|
9771
9779
|
isReadonly: !1,
|
|
9772
9780
|
errorMessage: ""
|
|
9773
|
-
}), G =
|
|
9781
|
+
}), G = Hi({
|
|
9774
9782
|
cert: "",
|
|
9775
9783
|
key: "",
|
|
9776
9784
|
certAlt: "",
|
|
@@ -9824,7 +9832,7 @@ const lt = {
|
|
|
9824
9832
|
config: r.config,
|
|
9825
9833
|
"edit-id": r.certificateId,
|
|
9826
9834
|
"enable-terraform": r.enableTerraform,
|
|
9827
|
-
"entity-type": w(
|
|
9835
|
+
"entity-type": w(Bn).Certificate,
|
|
9828
9836
|
"error-message": p.errorMessage,
|
|
9829
9837
|
"fetch-url": d.value,
|
|
9830
9838
|
"form-fields": I.value,
|
|
@@ -9836,7 +9844,7 @@ const lt = {
|
|
|
9836
9844
|
onSubmit: ee
|
|
9837
9845
|
}, {
|
|
9838
9846
|
default: E(() => [
|
|
9839
|
-
M(w(
|
|
9847
|
+
M(w(Fi), {
|
|
9840
9848
|
description: w(a)("certificates.form.sections.ssl.description"),
|
|
9841
9849
|
title: w(a)("certificates.form.sections.ssl.title")
|
|
9842
9850
|
}, {
|
|
@@ -9951,7 +9959,7 @@ const lt = {
|
|
|
9951
9959
|
]),
|
|
9952
9960
|
_: 1
|
|
9953
9961
|
}, 8, ["description", "title"]),
|
|
9954
|
-
M(w(
|
|
9962
|
+
M(w(Fi), {
|
|
9955
9963
|
description: w(a)("certificates.form.sections.general.description"),
|
|
9956
9964
|
title: w(a)("certificates.form.sections.general.title")
|
|
9957
9965
|
}, {
|
|
@@ -9981,21 +9989,21 @@ const lt = {
|
|
|
9981
9989
|
]);
|
|
9982
9990
|
};
|
|
9983
9991
|
}
|
|
9984
|
-
}), Eg = /* @__PURE__ */ yr(lp, [["__scopeId", "data-v-db6ee71c"]]),
|
|
9992
|
+
}), Eg = /* @__PURE__ */ yr(lp, [["__scopeId", "data-v-db6ee71c"]]), Ri = "/v2/control-planes/{controlPlaneId}/core-entities", Vi = "/{workspace}", ti = {
|
|
9985
9993
|
list: {
|
|
9986
|
-
konnect: `${
|
|
9987
|
-
kongManager: `${
|
|
9994
|
+
konnect: `${Ri}/ca_certificates`,
|
|
9995
|
+
kongManager: `${Vi}/ca_certificates`
|
|
9988
9996
|
},
|
|
9989
9997
|
form: {
|
|
9990
9998
|
konnect: {
|
|
9991
|
-
create: `${
|
|
9992
|
-
edit: `${
|
|
9993
|
-
validate: `${
|
|
9999
|
+
create: `${Ri}/ca_certificates`,
|
|
10000
|
+
edit: `${Ri}/ca_certificates/{id}`,
|
|
10001
|
+
validate: `${Ri}/v1/schemas/json/ca-certificate/validate`
|
|
9994
10002
|
},
|
|
9995
10003
|
kongManager: {
|
|
9996
|
-
create: `${
|
|
9997
|
-
edit: `${
|
|
9998
|
-
validate: `${
|
|
10004
|
+
create: `${Vi}/ca_certificates`,
|
|
10005
|
+
edit: `${Vi}/ca_certificates/{id}`,
|
|
10006
|
+
validate: `${Vi}/schemas/ca_certificates/validate`
|
|
9999
10007
|
}
|
|
10000
10008
|
}
|
|
10001
10009
|
}, up = { class: "kong-ui-ca-certificate-entity-config-card" }, fp = { key: 0 }, dp = /* @__PURE__ */ fr({
|
|
@@ -10105,7 +10113,7 @@ const lt = {
|
|
|
10105
10113
|
"config-card-doc": r.configCardDoc,
|
|
10106
10114
|
"config-schema": O.value,
|
|
10107
10115
|
"enable-terraform": r.enableTerraform,
|
|
10108
|
-
"entity-type": w(
|
|
10116
|
+
"entity-type": w(Bn).CaCertificate,
|
|
10109
10117
|
"fetch-url": v.value,
|
|
10110
10118
|
"hide-title": r.hideTitle,
|
|
10111
10119
|
"onFetch:error": I[0] || (I[0] = (C) => k.$emit("fetch:error", C)),
|
|
@@ -10214,15 +10222,15 @@ const lt = {
|
|
|
10214
10222
|
emits: ["error", "copy:success", "copy:error", "delete:success"],
|
|
10215
10223
|
setup(r, { emit: e }) {
|
|
10216
10224
|
var W;
|
|
10217
|
-
const t = e, i = r, { i18n: { t: n, formatUnixTimeStamp: s }, i18nT: a } = lt.useI18n(), l =
|
|
10225
|
+
const t = e, i = r, { i18n: { t: n, formatUnixTimeStamp: s }, i18nT: a } = lt.useI18n(), l = xn(), { axiosInstance: u } = Cn((W = i.config) == null ? void 0 : W.axiosRequestConfig), d = me(1), v = ce(() => i.config.app !== "kongManager" || !!i.config.disableSorting), G = {
|
|
10218
10226
|
// the Issuer column is non-hidable
|
|
10219
10227
|
issuer: { label: n("ca-certificates.list.table_headers.issuer"), hidable: !1 },
|
|
10220
10228
|
expiry: { label: n("ca-certificates.list.table_headers.expiry") },
|
|
10221
10229
|
tags: { label: n("ca-certificates.list.table_headers.tags"), sortable: !0 }
|
|
10222
10230
|
}, N = ce(() => {
|
|
10223
|
-
var
|
|
10231
|
+
var L, q;
|
|
10224
10232
|
let Y = `${i.config.apiBaseUrl}${ti.list[i.config.app]}`;
|
|
10225
|
-
return i.config.app === "konnect" ? Y = Y.replace(/{controlPlaneId}/gi, ((
|
|
10233
|
+
return i.config.app === "konnect" ? Y = Y.replace(/{controlPlaneId}/gi, ((L = i.config) == null ? void 0 : L.controlPlaneId) || "") : i.config.app === "kongManager" && (Y = Y.replace(/\/{workspace}/gi, (q = i.config) != null && q.workspace ? `/${i.config.workspace}` : "")), Y;
|
|
10226
10234
|
}), f = me(""), y = ce(() => {
|
|
10227
10235
|
const Y = i.config.app === "konnect" || i.config.isExactMatch;
|
|
10228
10236
|
return Y ? {
|
|
@@ -10236,9 +10244,9 @@ const lt = {
|
|
|
10236
10244
|
f.value = "";
|
|
10237
10245
|
}, k = () => {
|
|
10238
10246
|
d.value++;
|
|
10239
|
-
}, I = me(null), ee = (Y,
|
|
10247
|
+
}, I = me(null), ee = (Y, L) => {
|
|
10240
10248
|
const q = Y.id;
|
|
10241
|
-
if (!
|
|
10249
|
+
if (!L(q)) {
|
|
10242
10250
|
t("copy:error", {
|
|
10243
10251
|
entity: Y,
|
|
10244
10252
|
field: "id",
|
|
@@ -10251,9 +10259,9 @@ const lt = {
|
|
|
10251
10259
|
field: "id",
|
|
10252
10260
|
message: n("ca-certificates.copy.success", { val: q })
|
|
10253
10261
|
});
|
|
10254
|
-
}, ue = (Y,
|
|
10262
|
+
}, ue = (Y, L) => {
|
|
10255
10263
|
const q = JSON.stringify(Y);
|
|
10256
|
-
if (!
|
|
10264
|
+
if (!L(q)) {
|
|
10257
10265
|
t("copy:error", {
|
|
10258
10266
|
entity: Y,
|
|
10259
10267
|
message: n("ca-certificates.errors.copy")
|
|
@@ -10278,21 +10286,21 @@ const lt = {
|
|
|
10278
10286
|
}, gr = () => {
|
|
10279
10287
|
se.value = !1;
|
|
10280
10288
|
}, vr = async () => {
|
|
10281
|
-
var Y,
|
|
10289
|
+
var Y, L, q;
|
|
10282
10290
|
if ((Y = we.value) != null && Y.id) {
|
|
10283
10291
|
je.value = !0;
|
|
10284
10292
|
try {
|
|
10285
10293
|
await u.delete(Ae(we.value.id)), je.value = !1, se.value = !1, d.value++, t("delete:success", we.value);
|
|
10286
10294
|
} catch (de) {
|
|
10287
|
-
he.value = ((q = (
|
|
10295
|
+
he.value = ((q = (L = de.response) == null ? void 0 : L.data) == null ? void 0 : q.message) || de.message || n("ca-certificates.errors.delete"), t("error", de);
|
|
10288
10296
|
} finally {
|
|
10289
10297
|
je.value = !1;
|
|
10290
10298
|
}
|
|
10291
10299
|
}
|
|
10292
10300
|
}, zt = me(!1);
|
|
10293
10301
|
Li(b, (Y) => {
|
|
10294
|
-
var
|
|
10295
|
-
if (Array.isArray((
|
|
10302
|
+
var L, q, de, Ve;
|
|
10303
|
+
if (Array.isArray((L = Y == null ? void 0 : Y.response) == null ? void 0 : L.data) && (zt.value = Y.response.data.length > 0), Y.status === Nl.Error) {
|
|
10296
10304
|
I.value = {
|
|
10297
10305
|
title: n("ca-certificates.errors.general")
|
|
10298
10306
|
}, (Ve = (de = (q = Y.error) == null ? void 0 : q.response) == null ? void 0 : de.data) != null && Ve.message && (I.value.message = Y.error.response.data.message), t("error", Y.error);
|
|
@@ -10308,7 +10316,7 @@ const lt = {
|
|
|
10308
10316
|
});
|
|
10309
10317
|
return kl(async () => {
|
|
10310
10318
|
await i.canCreate() && (St.value.title = n("ca-certificates.list.empty_state.title"), St.value.ctaText = n("ca-certificates.actions.create"));
|
|
10311
|
-
}), (Y,
|
|
10319
|
+
}), (Y, L) => {
|
|
10312
10320
|
const q = ge("KButton"), de = ge("KBadge"), Ve = ge("KTruncate"), Ge = ge("KDropdownItem"), mr = ge("KClipboardProvider");
|
|
10313
10321
|
return Q(), ae("div", hp, [
|
|
10314
10322
|
M(w(_l), {
|
|
@@ -10325,13 +10333,13 @@ const lt = {
|
|
|
10325
10333
|
query: f.value,
|
|
10326
10334
|
"table-headers": w(G),
|
|
10327
10335
|
onClearSearchInput: O,
|
|
10328
|
-
"onClick:row":
|
|
10336
|
+
"onClick:row": L[2] || (L[2] = (Z) => $(Z)),
|
|
10329
10337
|
onSort: k
|
|
10330
10338
|
}, {
|
|
10331
10339
|
"toolbar-filter": E(() => [
|
|
10332
10340
|
M(w(Tl), {
|
|
10333
10341
|
modelValue: f.value,
|
|
10334
|
-
"onUpdate:modelValue":
|
|
10342
|
+
"onUpdate:modelValue": L[0] || (L[0] = (Z) => f.value = Z),
|
|
10335
10343
|
config: y.value
|
|
10336
10344
|
}, null, 8, ["modelValue", "config"])
|
|
10337
10345
|
]),
|
|
@@ -10382,7 +10390,7 @@ const lt = {
|
|
|
10382
10390
|
default: E(() => [
|
|
10383
10391
|
(Q(!0), ae(Xt, null, er(Z == null ? void 0 : Z.tags, (z) => (Q(), Oe(de, {
|
|
10384
10392
|
key: z,
|
|
10385
|
-
onClick:
|
|
10393
|
+
onClick: L[1] || (L[1] = Il(() => {
|
|
10386
10394
|
}, ["stop"]))
|
|
10387
10395
|
}, {
|
|
10388
10396
|
default: E(() => [
|
|
@@ -10521,7 +10529,7 @@ const lt = {
|
|
|
10521
10529
|
emits: ["update", "error", "loading"],
|
|
10522
10530
|
setup(r, { emit: e }) {
|
|
10523
10531
|
var k;
|
|
10524
|
-
const t = e, i = r, n =
|
|
10532
|
+
const t = e, i = r, n = xn(), { i18n: { t: s } } = lt.useI18n(), { getMessageFromError: a } = Rl(), { axiosInstance: l } = Cn((k = i.config) == null ? void 0 : k.axiosRequestConfig), u = ce(() => ti.form[i.config.app].edit), d = ce(() => i.certificateId ? Wt.Edit : Wt.Create), v = Hi({
|
|
10525
10533
|
fields: {
|
|
10526
10534
|
cert: "",
|
|
10527
10535
|
certDigest: "",
|
|
@@ -10529,7 +10537,7 @@ const lt = {
|
|
|
10529
10537
|
},
|
|
10530
10538
|
isReadonly: !1,
|
|
10531
10539
|
errorMessage: ""
|
|
10532
|
-
}), p =
|
|
10540
|
+
}), p = Hi({
|
|
10533
10541
|
cert: "",
|
|
10534
10542
|
certDigest: "",
|
|
10535
10543
|
tags: ""
|
|
@@ -10573,7 +10581,7 @@ const lt = {
|
|
|
10573
10581
|
config: r.config,
|
|
10574
10582
|
"edit-id": r.certificateId,
|
|
10575
10583
|
"enable-terraform": r.enableTerraform,
|
|
10576
|
-
"entity-type": w(
|
|
10584
|
+
"entity-type": w(Bn).CaCertificate,
|
|
10577
10585
|
"error-message": v.errorMessage,
|
|
10578
10586
|
"fetch-url": u.value,
|
|
10579
10587
|
"form-fields": b.value,
|
|
@@ -10585,7 +10593,7 @@ const lt = {
|
|
|
10585
10593
|
onSubmit: O
|
|
10586
10594
|
}, {
|
|
10587
10595
|
default: E(() => [
|
|
10588
|
-
M(w(
|
|
10596
|
+
M(w(Fi), {
|
|
10589
10597
|
description: w(s)("ca-certificates.form.sections.cert.description"),
|
|
10590
10598
|
title: w(s)("ca-certificates.form.sections.cert.title")
|
|
10591
10599
|
}, {
|
|
@@ -10618,7 +10626,7 @@ const lt = {
|
|
|
10618
10626
|
]),
|
|
10619
10627
|
_: 1
|
|
10620
10628
|
}, 8, ["description", "title"]),
|
|
10621
|
-
M(w(
|
|
10629
|
+
M(w(Fi), {
|
|
10622
10630
|
description: w(s)("ca-certificates.form.sections.general.description"),
|
|
10623
10631
|
title: w(s)("ca-certificates.form.sections.general.title")
|
|
10624
10632
|
}, {
|
|
@@ -10789,7 +10797,7 @@ const lt = {
|
|
|
10789
10797
|
"config-card-doc": r.configCardDoc,
|
|
10790
10798
|
"config-schema": G.value,
|
|
10791
10799
|
"enable-terraform": r.enableTerraform,
|
|
10792
|
-
"entity-type": w(
|
|
10800
|
+
"entity-type": w(Bn).Certificate,
|
|
10793
10801
|
"fetch-url": v.value,
|
|
10794
10802
|
"hide-title": r.hideTitle,
|
|
10795
10803
|
"onFetch:error": j[0] || (j[0] = (he) => C.$emit("fetch:error", he)),
|