@opensecret/react 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +8 -22
- package/dist/opensecret-react.es.js +256 -257
- package/dist/opensecret-react.umd.js +12 -12
- package/package.json +1 -1
|
@@ -104,10 +104,10 @@ function Br(r) {
|
|
|
104
104
|
}
|
|
105
105
|
const Hy = 20;
|
|
106
106
|
function Fy(r, e, t) {
|
|
107
|
-
let n = 1634760805, i = 857760878, s = 2036477234, o = 1797285236, c = t[3] << 24 | t[2] << 16 | t[1] << 8 | t[0], u = t[7] << 24 | t[6] << 16 | t[5] << 8 | t[4], h = t[11] << 24 | t[10] << 16 | t[9] << 8 | t[8], v = t[15] << 24 | t[14] << 16 | t[13] << 8 | t[12], b = t[19] << 24 | t[18] << 16 | t[17] << 8 | t[16], H = t[23] << 24 | t[22] << 16 | t[21] << 8 | t[20], T = t[27] << 24 | t[26] << 16 | t[25] << 8 | t[24], m = t[31] << 24 | t[30] << 16 | t[29] << 8 | t[28], A = e[3] << 24 | e[2] << 16 | e[1] << 8 | e[0], k = e[7] << 24 | e[6] << 16 | e[5] << 8 | e[4], I = e[11] << 24 | e[10] << 16 | e[9] << 8 | e[8], P = e[15] << 24 | e[14] << 16 | e[13] << 8 | e[12], D = n, pe = i, Ze = s, Te = o, Be = c, et = u, yt = h, pt = v,
|
|
107
|
+
let n = 1634760805, i = 857760878, s = 2036477234, o = 1797285236, c = t[3] << 24 | t[2] << 16 | t[1] << 8 | t[0], u = t[7] << 24 | t[6] << 16 | t[5] << 8 | t[4], h = t[11] << 24 | t[10] << 16 | t[9] << 8 | t[8], v = t[15] << 24 | t[14] << 16 | t[13] << 8 | t[12], b = t[19] << 24 | t[18] << 16 | t[17] << 8 | t[16], H = t[23] << 24 | t[22] << 16 | t[21] << 8 | t[20], T = t[27] << 24 | t[26] << 16 | t[25] << 8 | t[24], m = t[31] << 24 | t[30] << 16 | t[29] << 8 | t[28], A = e[3] << 24 | e[2] << 16 | e[1] << 8 | e[0], k = e[7] << 24 | e[6] << 16 | e[5] << 8 | e[4], I = e[11] << 24 | e[10] << 16 | e[9] << 8 | e[8], P = e[15] << 24 | e[14] << 16 | e[13] << 8 | e[12], D = n, pe = i, Ze = s, Te = o, Be = c, et = u, yt = h, pt = v, ue = b, fe = H, ye = T, xe = m, Re = A, Je = k, ie = I, Ee = P;
|
|
108
108
|
for (let mt = 0; mt < Hy; mt += 2)
|
|
109
|
-
D = D + Be | 0, Re ^= D, Re = Re >>> 16 | Re << 16,
|
|
110
|
-
Gt(D + n | 0, r, 0), Gt(pe + i | 0, r, 4), Gt(Ze + s | 0, r, 8), Gt(Te + o | 0, r, 12), Gt(Be + c | 0, r, 16), Gt(et + u | 0, r, 20), Gt(yt + h | 0, r, 24), Gt(pt + v | 0, r, 28), Gt(
|
|
109
|
+
D = D + Be | 0, Re ^= D, Re = Re >>> 16 | Re << 16, ue = ue + Re | 0, Be ^= ue, Be = Be >>> 20 | Be << 12, pe = pe + et | 0, Je ^= pe, Je = Je >>> 16 | Je << 16, fe = fe + Je | 0, et ^= fe, et = et >>> 20 | et << 12, Ze = Ze + yt | 0, ie ^= Ze, ie = ie >>> 16 | ie << 16, ye = ye + ie | 0, yt ^= ye, yt = yt >>> 20 | yt << 12, Te = Te + pt | 0, Ee ^= Te, Ee = Ee >>> 16 | Ee << 16, xe = xe + Ee | 0, pt ^= xe, pt = pt >>> 20 | pt << 12, Ze = Ze + yt | 0, ie ^= Ze, ie = ie >>> 24 | ie << 8, ye = ye + ie | 0, yt ^= ye, yt = yt >>> 25 | yt << 7, Te = Te + pt | 0, Ee ^= Te, Ee = Ee >>> 24 | Ee << 8, xe = xe + Ee | 0, pt ^= xe, pt = pt >>> 25 | pt << 7, pe = pe + et | 0, Je ^= pe, Je = Je >>> 24 | Je << 8, fe = fe + Je | 0, et ^= fe, et = et >>> 25 | et << 7, D = D + Be | 0, Re ^= D, Re = Re >>> 24 | Re << 8, ue = ue + Re | 0, Be ^= ue, Be = Be >>> 25 | Be << 7, D = D + et | 0, Ee ^= D, Ee = Ee >>> 16 | Ee << 16, ye = ye + Ee | 0, et ^= ye, et = et >>> 20 | et << 12, pe = pe + yt | 0, Re ^= pe, Re = Re >>> 16 | Re << 16, xe = xe + Re | 0, yt ^= xe, yt = yt >>> 20 | yt << 12, Ze = Ze + pt | 0, Je ^= Ze, Je = Je >>> 16 | Je << 16, ue = ue + Je | 0, pt ^= ue, pt = pt >>> 20 | pt << 12, Te = Te + Be | 0, ie ^= Te, ie = ie >>> 16 | ie << 16, fe = fe + ie | 0, Be ^= fe, Be = Be >>> 20 | Be << 12, Ze = Ze + pt | 0, Je ^= Ze, Je = Je >>> 24 | Je << 8, ue = ue + Je | 0, pt ^= ue, pt = pt >>> 25 | pt << 7, Te = Te + Be | 0, ie ^= Te, ie = ie >>> 24 | ie << 8, fe = fe + ie | 0, Be ^= fe, Be = Be >>> 25 | Be << 7, pe = pe + yt | 0, Re ^= pe, Re = Re >>> 24 | Re << 8, xe = xe + Re | 0, yt ^= xe, yt = yt >>> 25 | yt << 7, D = D + et | 0, Ee ^= D, Ee = Ee >>> 24 | Ee << 8, ye = ye + Ee | 0, et ^= ye, et = et >>> 25 | et << 7;
|
|
110
|
+
Gt(D + n | 0, r, 0), Gt(pe + i | 0, r, 4), Gt(Ze + s | 0, r, 8), Gt(Te + o | 0, r, 12), Gt(Be + c | 0, r, 16), Gt(et + u | 0, r, 20), Gt(yt + h | 0, r, 24), Gt(pt + v | 0, r, 28), Gt(ue + b | 0, r, 32), Gt(fe + H | 0, r, 36), Gt(ye + T | 0, r, 40), Gt(xe + m | 0, r, 44), Gt(Re + A | 0, r, 48), Gt(Je + k | 0, r, 52), Gt(ie + I | 0, r, 56), Gt(Ee + P | 0, r, 60);
|
|
111
111
|
}
|
|
112
112
|
function il(r, e, t, n, i = 0) {
|
|
113
113
|
if (r.length !== 32)
|
|
@@ -189,12 +189,12 @@ class Zy {
|
|
|
189
189
|
s += yt & 8191;
|
|
190
190
|
let pt = e[t + 2] | e[t + 3] << 8;
|
|
191
191
|
o += (yt >>> 13 | pt << 3) & 8191;
|
|
192
|
-
let
|
|
193
|
-
c += (pt >>> 10 |
|
|
194
|
-
let
|
|
195
|
-
u += (
|
|
192
|
+
let ue = e[t + 4] | e[t + 5] << 8;
|
|
193
|
+
c += (pt >>> 10 | ue << 6) & 8191;
|
|
194
|
+
let fe = e[t + 6] | e[t + 7] << 8;
|
|
195
|
+
u += (ue >>> 7 | fe << 9) & 8191;
|
|
196
196
|
let ye = e[t + 8] | e[t + 9] << 8;
|
|
197
|
-
h += (
|
|
197
|
+
h += (fe >>> 4 | ye << 12) & 8191, v += ye >>> 1 & 8191;
|
|
198
198
|
let xe = e[t + 10] | e[t + 11] << 8;
|
|
199
199
|
b += (ye >>> 14 | xe << 2) & 8191;
|
|
200
200
|
let Re = e[t + 12] | e[t + 13] << 8;
|
|
@@ -209,8 +209,8 @@ class Zy {
|
|
|
209
209
|
Ut += s * I, Ut += o * k, Ut += c * A, Ut += u * (5 * et), Ut += h * (5 * Be), ie = Ut >>> 13, Ut &= 8191, Ut += v * (5 * Te), Ut += b * (5 * Ze), Ut += H * (5 * pe), Ut += T * (5 * D), Ut += m * (5 * P), ie += Ut >>> 13, Ut &= 8191;
|
|
210
210
|
let Dt = ie;
|
|
211
211
|
Dt += s * P, Dt += o * I, Dt += c * k, Dt += u * A, Dt += h * (5 * et), ie = Dt >>> 13, Dt &= 8191, Dt += v * (5 * Be), Dt += b * (5 * Te), Dt += H * (5 * Ze), Dt += T * (5 * pe), Dt += m * (5 * D), ie += Dt >>> 13, Dt &= 8191;
|
|
212
|
-
let
|
|
213
|
-
|
|
212
|
+
let ae = ie;
|
|
213
|
+
ae += s * D, ae += o * P, ae += c * I, ae += u * k, ae += h * A, ie = ae >>> 13, ae &= 8191, ae += v * (5 * et), ae += b * (5 * Be), ae += H * (5 * Te), ae += T * (5 * Ze), ae += m * (5 * pe), ie += ae >>> 13, ae &= 8191;
|
|
214
214
|
let ot = ie;
|
|
215
215
|
ot += s * pe, ot += o * D, ot += c * P, ot += u * I, ot += h * k, ie = ot >>> 13, ot &= 8191, ot += v * A, ot += b * (5 * et), ot += H * (5 * Be), ot += T * (5 * Te), ot += m * (5 * Ze), ie += ot >>> 13, ot &= 8191;
|
|
216
216
|
let wt = ie;
|
|
@@ -220,7 +220,7 @@ class Zy {
|
|
|
220
220
|
let gt = ie;
|
|
221
221
|
gt += s * Be, gt += o * Te, gt += c * Ze, gt += u * pe, gt += h * D, ie = gt >>> 13, gt &= 8191, gt += v * P, gt += b * I, gt += H * k, gt += T * A, gt += m * (5 * et), ie += gt >>> 13, gt &= 8191;
|
|
222
222
|
let Vt = ie;
|
|
223
|
-
Vt += s * et, Vt += o * Be, Vt += c * Te, Vt += u * Ze, Vt += h * pe, ie = Vt >>> 13, Vt &= 8191, Vt += v * D, Vt += b * P, Vt += H * I, Vt += T * k, Vt += m * A, ie += Vt >>> 13, Vt &= 8191, ie = (ie << 2) + ie | 0, ie = ie + Ee | 0, Ee = ie & 8191, ie = ie >>> 13, mt += ie, s = Ee, o = mt, c = Ut, u = Dt, h =
|
|
223
|
+
Vt += s * et, Vt += o * Be, Vt += c * Te, Vt += u * Ze, Vt += h * pe, ie = Vt >>> 13, Vt &= 8191, Vt += v * D, Vt += b * P, Vt += H * I, Vt += T * k, Vt += m * A, ie += Vt >>> 13, Vt &= 8191, ie = (ie << 2) + ie | 0, ie = ie + Ee | 0, Ee = ie & 8191, ie = ie >>> 13, mt += ie, s = Ee, o = mt, c = Ut, u = Dt, h = ae, v = ot, b = wt, H = Q, T = gt, m = Vt, t += 16, n -= 16;
|
|
224
224
|
}
|
|
225
225
|
this._h[0] = s, this._h[1] = o, this._h[2] = c, this._h[3] = u, this._h[4] = h, this._h[5] = v, this._h[6] = b, this._h[7] = H, this._h[8] = T, this._h[9] = m;
|
|
226
226
|
}
|
|
@@ -476,18 +476,18 @@ var jf;
|
|
|
476
476
|
}
|
|
477
477
|
}, b = Object.getPrototypeOf(Function), H = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : bs(), T = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : xs(), m = typeof WeakMap == "function" ? WeakMap : Bo(), A = i ? Symbol.for("@reflect-metadata:registry") : void 0, k = ms(), I = Oi(k);
|
|
478
478
|
function P(_, C, N, K) {
|
|
479
|
-
if (
|
|
479
|
+
if (ae(N)) {
|
|
480
480
|
if (!hs(_))
|
|
481
481
|
throw new TypeError();
|
|
482
482
|
if (!ds(C))
|
|
483
483
|
throw new TypeError();
|
|
484
|
-
return
|
|
484
|
+
return fe(_, C);
|
|
485
485
|
} else {
|
|
486
486
|
if (!hs(_))
|
|
487
487
|
throw new TypeError();
|
|
488
488
|
if (!Q(C))
|
|
489
489
|
throw new TypeError();
|
|
490
|
-
if (!Q(K) && !
|
|
490
|
+
if (!Q(K) && !ae(K) && !ot(K))
|
|
491
491
|
throw new TypeError();
|
|
492
492
|
return ot(K) && (K = void 0), N = or(N), ye(_, C, N, K);
|
|
493
493
|
}
|
|
@@ -497,7 +497,7 @@ var jf;
|
|
|
497
497
|
function N(K, be) {
|
|
498
498
|
if (!Q(K))
|
|
499
499
|
throw new TypeError();
|
|
500
|
-
if (!
|
|
500
|
+
if (!ae(be) && !Mc(be))
|
|
501
501
|
throw new TypeError();
|
|
502
502
|
Ee(_, C, K, be);
|
|
503
503
|
}
|
|
@@ -507,64 +507,64 @@ var jf;
|
|
|
507
507
|
function pe(_, C, N, K) {
|
|
508
508
|
if (!Q(N))
|
|
509
509
|
throw new TypeError();
|
|
510
|
-
return
|
|
510
|
+
return ae(K) || (K = or(K)), Ee(_, C, N, K);
|
|
511
511
|
}
|
|
512
512
|
e("defineMetadata", pe);
|
|
513
513
|
function Ze(_, C, N) {
|
|
514
514
|
if (!Q(C))
|
|
515
515
|
throw new TypeError();
|
|
516
|
-
return
|
|
516
|
+
return ae(N) || (N = or(N)), xe(_, C, N);
|
|
517
517
|
}
|
|
518
518
|
e("hasMetadata", Ze);
|
|
519
519
|
function Te(_, C, N) {
|
|
520
520
|
if (!Q(C))
|
|
521
521
|
throw new TypeError();
|
|
522
|
-
return
|
|
522
|
+
return ae(N) || (N = or(N)), Re(_, C, N);
|
|
523
523
|
}
|
|
524
524
|
e("hasOwnMetadata", Te);
|
|
525
525
|
function Be(_, C, N) {
|
|
526
526
|
if (!Q(C))
|
|
527
527
|
throw new TypeError();
|
|
528
|
-
return
|
|
528
|
+
return ae(N) || (N = or(N)), Je(_, C, N);
|
|
529
529
|
}
|
|
530
530
|
e("getMetadata", Be);
|
|
531
531
|
function et(_, C, N) {
|
|
532
532
|
if (!Q(C))
|
|
533
533
|
throw new TypeError();
|
|
534
|
-
return
|
|
534
|
+
return ae(N) || (N = or(N)), ie(_, C, N);
|
|
535
535
|
}
|
|
536
536
|
e("getOwnMetadata", et);
|
|
537
537
|
function yt(_, C) {
|
|
538
538
|
if (!Q(_))
|
|
539
539
|
throw new TypeError();
|
|
540
|
-
return
|
|
540
|
+
return ae(C) || (C = or(C)), mt(_, C);
|
|
541
541
|
}
|
|
542
542
|
e("getMetadataKeys", yt);
|
|
543
543
|
function pt(_, C) {
|
|
544
544
|
if (!Q(_))
|
|
545
545
|
throw new TypeError();
|
|
546
|
-
return
|
|
546
|
+
return ae(C) || (C = or(C)), Ut(_, C);
|
|
547
547
|
}
|
|
548
548
|
e("getOwnMetadataKeys", pt);
|
|
549
|
-
function
|
|
549
|
+
function ue(_, C, N) {
|
|
550
550
|
if (!Q(C))
|
|
551
551
|
throw new TypeError();
|
|
552
|
-
if (
|
|
552
|
+
if (ae(N) || (N = or(N)), !Q(C))
|
|
553
553
|
throw new TypeError();
|
|
554
|
-
|
|
554
|
+
ae(N) || (N = or(N));
|
|
555
555
|
var K = Wr(
|
|
556
556
|
C,
|
|
557
557
|
N,
|
|
558
558
|
/*Create*/
|
|
559
559
|
!1
|
|
560
560
|
);
|
|
561
|
-
return
|
|
561
|
+
return ae(K) ? !1 : K.OrdinaryDeleteMetadata(_, C, N);
|
|
562
562
|
}
|
|
563
|
-
e("deleteMetadata",
|
|
564
|
-
function
|
|
563
|
+
e("deleteMetadata", ue);
|
|
564
|
+
function fe(_, C) {
|
|
565
565
|
for (var N = _.length - 1; N >= 0; --N) {
|
|
566
566
|
var K = _[N], be = K(C);
|
|
567
|
-
if (!
|
|
567
|
+
if (!ae(be) && !ot(be)) {
|
|
568
568
|
if (!ds(be))
|
|
569
569
|
throw new TypeError();
|
|
570
570
|
C = be;
|
|
@@ -575,7 +575,7 @@ var jf;
|
|
|
575
575
|
function ye(_, C, N, K) {
|
|
576
576
|
for (var be = _.length - 1; be >= 0; --be) {
|
|
577
577
|
var _t = _[be], Et = _t(C, N, K);
|
|
578
|
-
if (!
|
|
578
|
+
if (!ae(Et) && !ot(Et)) {
|
|
579
579
|
if (!Q(Et))
|
|
580
580
|
throw new TypeError();
|
|
581
581
|
K = Et;
|
|
@@ -597,7 +597,7 @@ var jf;
|
|
|
597
597
|
/*Create*/
|
|
598
598
|
!1
|
|
599
599
|
);
|
|
600
|
-
return
|
|
600
|
+
return ae(K) ? !1 : fs(K.OrdinaryHasOwnMetadata(_, C, N));
|
|
601
601
|
}
|
|
602
602
|
function Je(_, C, N) {
|
|
603
603
|
var K = Re(_, C, N);
|
|
@@ -614,7 +614,7 @@ var jf;
|
|
|
614
614
|
/*Create*/
|
|
615
615
|
!1
|
|
616
616
|
);
|
|
617
|
-
if (!
|
|
617
|
+
if (!ae(K))
|
|
618
618
|
return K.OrdinaryGetOwnMetadata(_, C, N);
|
|
619
619
|
}
|
|
620
620
|
function Ee(_, C, N, K) {
|
|
@@ -636,12 +636,12 @@ var jf;
|
|
|
636
636
|
if (N.length <= 0)
|
|
637
637
|
return be;
|
|
638
638
|
for (var _t = new T(), Et = [], $e = 0, Z = N; $e < Z.length; $e++) {
|
|
639
|
-
var ee = Z[$e],
|
|
640
|
-
|
|
639
|
+
var ee = Z[$e], ce = _t.has(ee);
|
|
640
|
+
ce || (_t.add(ee), Et.push(ee));
|
|
641
641
|
}
|
|
642
642
|
for (var ge = 0, tt = be; ge < tt.length; ge++) {
|
|
643
|
-
var ee = tt[ge],
|
|
644
|
-
|
|
643
|
+
var ee = tt[ge], ce = _t.has(ee);
|
|
644
|
+
ce || (_t.add(ee), Et.push(ee));
|
|
645
645
|
}
|
|
646
646
|
return Et;
|
|
647
647
|
}
|
|
@@ -674,7 +674,7 @@ var jf;
|
|
|
674
674
|
return 6;
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function ae(_) {
|
|
678
678
|
return _ === void 0;
|
|
679
679
|
}
|
|
680
680
|
function ot(_) {
|
|
@@ -800,11 +800,11 @@ var jf;
|
|
|
800
800
|
}
|
|
801
801
|
function vs() {
|
|
802
802
|
var _;
|
|
803
|
-
!
|
|
803
|
+
!ae(A) && typeof t.Reflect < "u" && !(A in t.Reflect) && typeof t.Reflect.defineMetadata == "function" && (_ = ws(t.Reflect));
|
|
804
804
|
var C, N, K, be = new m(), _t = {
|
|
805
805
|
registerProvider: Et,
|
|
806
806
|
getProvider: Z,
|
|
807
|
-
setProvider:
|
|
807
|
+
setProvider: ce
|
|
808
808
|
};
|
|
809
809
|
return _t;
|
|
810
810
|
function Et(ge) {
|
|
@@ -813,12 +813,12 @@ var jf;
|
|
|
813
813
|
switch (!0) {
|
|
814
814
|
case _ === ge:
|
|
815
815
|
break;
|
|
816
|
-
case
|
|
816
|
+
case ae(C):
|
|
817
817
|
C = ge;
|
|
818
818
|
break;
|
|
819
819
|
case C === ge:
|
|
820
820
|
break;
|
|
821
|
-
case
|
|
821
|
+
case ae(N):
|
|
822
822
|
N = ge;
|
|
823
823
|
break;
|
|
824
824
|
case N === ge:
|
|
@@ -829,13 +829,13 @@ var jf;
|
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
831
|
function $e(ge, tt) {
|
|
832
|
-
if (!
|
|
832
|
+
if (!ae(C)) {
|
|
833
833
|
if (C.isProviderFor(ge, tt))
|
|
834
834
|
return C;
|
|
835
|
-
if (!
|
|
835
|
+
if (!ae(N)) {
|
|
836
836
|
if (N.isProviderFor(ge, tt))
|
|
837
837
|
return C;
|
|
838
|
-
if (!
|
|
838
|
+
if (!ae(K))
|
|
839
839
|
for (var nt = ys(K); ; ) {
|
|
840
840
|
var bt = Zr(nt);
|
|
841
841
|
if (!bt)
|
|
@@ -846,34 +846,34 @@ var jf;
|
|
|
846
846
|
}
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
|
-
if (!
|
|
849
|
+
if (!ae(_) && _.isProviderFor(ge, tt))
|
|
850
850
|
return _;
|
|
851
851
|
}
|
|
852
852
|
function Z(ge, tt) {
|
|
853
853
|
var nt = be.get(ge), bt;
|
|
854
|
-
return
|
|
854
|
+
return ae(nt) || (bt = nt.get(tt)), ae(bt) && (bt = $e(ge, tt), ae(bt) || (ae(nt) && (nt = new H(), be.set(ge, nt)), nt.set(tt, bt))), bt;
|
|
855
855
|
}
|
|
856
856
|
function ee(ge) {
|
|
857
|
-
if (
|
|
857
|
+
if (ae(ge))
|
|
858
858
|
throw new TypeError();
|
|
859
|
-
return C === ge || N === ge || !
|
|
859
|
+
return C === ge || N === ge || !ae(K) && K.has(ge);
|
|
860
860
|
}
|
|
861
|
-
function
|
|
861
|
+
function ce(ge, tt, nt) {
|
|
862
862
|
if (!ee(nt))
|
|
863
863
|
throw new Error("Metadata provider not registered.");
|
|
864
864
|
var bt = Z(ge, tt);
|
|
865
865
|
if (bt !== nt) {
|
|
866
|
-
if (!
|
|
866
|
+
if (!ae(bt))
|
|
867
867
|
return !1;
|
|
868
868
|
var zt = be.get(ge);
|
|
869
|
-
|
|
869
|
+
ae(zt) && (zt = new H(), be.set(ge, zt)), zt.set(tt, nt);
|
|
870
870
|
}
|
|
871
871
|
return !0;
|
|
872
872
|
}
|
|
873
873
|
}
|
|
874
874
|
function ms() {
|
|
875
875
|
var _;
|
|
876
|
-
return !
|
|
876
|
+
return !ae(A) && Q(t.Reflect) && Object.isExtensible(t.Reflect) && (_ = t.Reflect[A]), ae(_) && (_ = vs()), !ae(A) && Q(t.Reflect) && Object.isExtensible(t.Reflect) && Object.defineProperty(t.Reflect, A, {
|
|
877
877
|
enumerable: !1,
|
|
878
878
|
configurable: !1,
|
|
879
879
|
writable: !1,
|
|
@@ -882,9 +882,9 @@ var jf;
|
|
|
882
882
|
}
|
|
883
883
|
function Oi(_) {
|
|
884
884
|
var C = new m(), N = {
|
|
885
|
-
isProviderFor: function(ee,
|
|
885
|
+
isProviderFor: function(ee, ce) {
|
|
886
886
|
var ge = C.get(ee);
|
|
887
|
-
return
|
|
887
|
+
return ae(ge) ? !1 : ge.has(ce);
|
|
888
888
|
},
|
|
889
889
|
OrdinaryDefineOwnMetadata: Et,
|
|
890
890
|
OrdinaryHasOwnMetadata: be,
|
|
@@ -893,58 +893,58 @@ var jf;
|
|
|
893
893
|
OrdinaryDeleteMetadata: Z
|
|
894
894
|
};
|
|
895
895
|
return k.registerProvider(N), N;
|
|
896
|
-
function K(ee,
|
|
896
|
+
function K(ee, ce, ge) {
|
|
897
897
|
var tt = C.get(ee), nt = !1;
|
|
898
|
-
if (
|
|
898
|
+
if (ae(tt)) {
|
|
899
899
|
if (!ge)
|
|
900
900
|
return;
|
|
901
901
|
tt = new H(), C.set(ee, tt), nt = !0;
|
|
902
902
|
}
|
|
903
|
-
var bt = tt.get(
|
|
904
|
-
if (
|
|
903
|
+
var bt = tt.get(ce);
|
|
904
|
+
if (ae(bt)) {
|
|
905
905
|
if (!ge)
|
|
906
906
|
return;
|
|
907
|
-
if (bt = new H(), tt.set(
|
|
908
|
-
throw tt.delete(
|
|
907
|
+
if (bt = new H(), tt.set(ce, bt), !_.setProvider(ee, ce, N))
|
|
908
|
+
throw tt.delete(ce), nt && C.delete(ee), new Error("Wrong provider for target.");
|
|
909
909
|
}
|
|
910
910
|
return bt;
|
|
911
911
|
}
|
|
912
|
-
function be(ee,
|
|
912
|
+
function be(ee, ce, ge) {
|
|
913
913
|
var tt = K(
|
|
914
|
-
|
|
914
|
+
ce,
|
|
915
915
|
ge,
|
|
916
916
|
/*Create*/
|
|
917
917
|
!1
|
|
918
918
|
);
|
|
919
|
-
return
|
|
919
|
+
return ae(tt) ? !1 : fs(tt.has(ee));
|
|
920
920
|
}
|
|
921
|
-
function _t(ee,
|
|
921
|
+
function _t(ee, ce, ge) {
|
|
922
922
|
var tt = K(
|
|
923
|
-
|
|
923
|
+
ce,
|
|
924
924
|
ge,
|
|
925
925
|
/*Create*/
|
|
926
926
|
!1
|
|
927
927
|
);
|
|
928
|
-
if (!
|
|
928
|
+
if (!ae(tt))
|
|
929
929
|
return tt.get(ee);
|
|
930
930
|
}
|
|
931
|
-
function Et(ee,
|
|
931
|
+
function Et(ee, ce, ge, tt) {
|
|
932
932
|
var nt = K(
|
|
933
933
|
ge,
|
|
934
934
|
tt,
|
|
935
935
|
/*Create*/
|
|
936
936
|
!0
|
|
937
937
|
);
|
|
938
|
-
nt.set(ee,
|
|
938
|
+
nt.set(ee, ce);
|
|
939
939
|
}
|
|
940
|
-
function $e(ee,
|
|
940
|
+
function $e(ee, ce) {
|
|
941
941
|
var ge = [], tt = K(
|
|
942
942
|
ee,
|
|
943
|
-
|
|
943
|
+
ce,
|
|
944
944
|
/*Create*/
|
|
945
945
|
!1
|
|
946
946
|
);
|
|
947
|
-
if (
|
|
947
|
+
if (ae(tt))
|
|
948
948
|
return ge;
|
|
949
949
|
for (var nt = tt.keys(), bt = ys(nt), zt = 0; ; ) {
|
|
950
950
|
var Ti = Zr(bt);
|
|
@@ -963,18 +963,18 @@ var jf;
|
|
|
963
963
|
zt++;
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
|
-
function Z(ee,
|
|
966
|
+
function Z(ee, ce, ge) {
|
|
967
967
|
var tt = K(
|
|
968
|
-
|
|
968
|
+
ce,
|
|
969
969
|
ge,
|
|
970
970
|
/*Create*/
|
|
971
971
|
!1
|
|
972
972
|
);
|
|
973
|
-
if (
|
|
973
|
+
if (ae(tt) || !tt.delete(ee))
|
|
974
974
|
return !1;
|
|
975
975
|
if (tt.size === 0) {
|
|
976
|
-
var nt = C.get(
|
|
977
|
-
|
|
976
|
+
var nt = C.get(ce);
|
|
977
|
+
ae(nt) || (nt.delete(ge), nt.size === 0 && C.delete(nt));
|
|
978
978
|
}
|
|
979
979
|
return !0;
|
|
980
980
|
}
|
|
@@ -982,8 +982,8 @@ var jf;
|
|
|
982
982
|
function ws(_) {
|
|
983
983
|
var C = _.defineMetadata, N = _.hasOwnMetadata, K = _.getOwnMetadata, be = _.getOwnMetadataKeys, _t = _.deleteMetadata, Et = new m(), $e = {
|
|
984
984
|
isProviderFor: function(Z, ee) {
|
|
985
|
-
var
|
|
986
|
-
return !
|
|
985
|
+
var ce = Et.get(Z);
|
|
986
|
+
return !ae(ce) && ce.has(ee) ? !0 : be(Z, ee).length ? (ae(ce) && (ce = new T(), Et.set(Z, ce)), ce.add(ee), !0) : !1;
|
|
987
987
|
},
|
|
988
988
|
OrdinaryDefineOwnMetadata: C,
|
|
989
989
|
OrdinaryHasOwnMetadata: N,
|
|
@@ -995,7 +995,7 @@ var jf;
|
|
|
995
995
|
}
|
|
996
996
|
function Wr(_, C, N) {
|
|
997
997
|
var K = k.getProvider(_, C);
|
|
998
|
-
if (!
|
|
998
|
+
if (!ae(K))
|
|
999
999
|
return K;
|
|
1000
1000
|
if (N) {
|
|
1001
1001
|
if (k.setProvider(_, C, I))
|
|
@@ -1007,8 +1007,8 @@ var jf;
|
|
|
1007
1007
|
var _ = {}, C = [], N = (
|
|
1008
1008
|
/** @class */
|
|
1009
1009
|
function() {
|
|
1010
|
-
function $e(Z, ee,
|
|
1011
|
-
this._index = 0, this._keys = Z, this._values = ee, this._selector =
|
|
1010
|
+
function $e(Z, ee, ce) {
|
|
1011
|
+
this._index = 0, this._keys = Z, this._values = ee, this._selector = ce;
|
|
1012
1012
|
}
|
|
1013
1013
|
return $e.prototype["@@iterator"] = function() {
|
|
1014
1014
|
return this;
|
|
@@ -1053,12 +1053,12 @@ var jf;
|
|
|
1053
1053
|
);
|
|
1054
1054
|
return ee >= 0 ? this._values[ee] : void 0;
|
|
1055
1055
|
}, $e.prototype.set = function(Z, ee) {
|
|
1056
|
-
var
|
|
1056
|
+
var ce = this._find(
|
|
1057
1057
|
Z,
|
|
1058
1058
|
/*insert*/
|
|
1059
1059
|
!0
|
|
1060
1060
|
);
|
|
1061
|
-
return this._values[
|
|
1061
|
+
return this._values[ce] = ee, this;
|
|
1062
1062
|
}, $e.prototype.delete = function(Z) {
|
|
1063
1063
|
var ee = this._find(
|
|
1064
1064
|
Z,
|
|
@@ -1066,7 +1066,7 @@ var jf;
|
|
|
1066
1066
|
!1
|
|
1067
1067
|
);
|
|
1068
1068
|
if (ee >= 0) {
|
|
1069
|
-
for (var
|
|
1069
|
+
for (var ce = this._keys.length, ge = ee + 1; ge < ce; ge++)
|
|
1070
1070
|
this._keys[ge - 1] = this._keys[ge], this._values[ge - 1] = this._values[ge];
|
|
1071
1071
|
return this._keys.length--, this._values.length--, ps(Z, this._cacheKey) && (this._cacheKey = _, this._cacheIndex = -2), !0;
|
|
1072
1072
|
}
|
|
@@ -1086,9 +1086,9 @@ var jf;
|
|
|
1086
1086
|
}, $e.prototype._find = function(Z, ee) {
|
|
1087
1087
|
if (!ps(this._cacheKey, Z)) {
|
|
1088
1088
|
this._cacheIndex = -1;
|
|
1089
|
-
for (var
|
|
1090
|
-
if (ps(this._keys[
|
|
1091
|
-
this._cacheIndex =
|
|
1089
|
+
for (var ce = 0; ce < this._keys.length; ce++)
|
|
1090
|
+
if (ps(this._keys[ce], Z)) {
|
|
1091
|
+
this._cacheIndex = ce;
|
|
1092
1092
|
break;
|
|
1093
1093
|
}
|
|
1094
1094
|
}
|
|
@@ -1152,33 +1152,33 @@ var jf;
|
|
|
1152
1152
|
this._key = K();
|
|
1153
1153
|
}
|
|
1154
1154
|
return Z.prototype.has = function(ee) {
|
|
1155
|
-
var
|
|
1155
|
+
var ce = be(
|
|
1156
1156
|
ee,
|
|
1157
1157
|
/*create*/
|
|
1158
1158
|
!1
|
|
1159
1159
|
);
|
|
1160
|
-
return
|
|
1160
|
+
return ce !== void 0 ? v.has(ce, this._key) : !1;
|
|
1161
1161
|
}, Z.prototype.get = function(ee) {
|
|
1162
|
-
var
|
|
1162
|
+
var ce = be(
|
|
1163
1163
|
ee,
|
|
1164
1164
|
/*create*/
|
|
1165
1165
|
!1
|
|
1166
1166
|
);
|
|
1167
|
-
return
|
|
1168
|
-
}, Z.prototype.set = function(ee,
|
|
1167
|
+
return ce !== void 0 ? v.get(ce, this._key) : void 0;
|
|
1168
|
+
}, Z.prototype.set = function(ee, ce) {
|
|
1169
1169
|
var ge = be(
|
|
1170
1170
|
ee,
|
|
1171
1171
|
/*create*/
|
|
1172
1172
|
!0
|
|
1173
1173
|
);
|
|
1174
|
-
return ge[this._key] =
|
|
1174
|
+
return ge[this._key] = ce, this;
|
|
1175
1175
|
}, Z.prototype.delete = function(ee) {
|
|
1176
|
-
var
|
|
1176
|
+
var ce = be(
|
|
1177
1177
|
ee,
|
|
1178
1178
|
/*create*/
|
|
1179
1179
|
!1
|
|
1180
1180
|
);
|
|
1181
|
-
return
|
|
1181
|
+
return ce !== void 0 ? delete ce[this._key] : !1;
|
|
1182
1182
|
}, Z.prototype.clear = function() {
|
|
1183
1183
|
this._key = K();
|
|
1184
1184
|
}, Z;
|
|
@@ -1200,8 +1200,8 @@ var jf;
|
|
|
1200
1200
|
return Z[N];
|
|
1201
1201
|
}
|
|
1202
1202
|
function _t(Z, ee) {
|
|
1203
|
-
for (var
|
|
1204
|
-
Z[
|
|
1203
|
+
for (var ce = 0; ce < ee; ++ce)
|
|
1204
|
+
Z[ce] = Math.random() * 255 | 0;
|
|
1205
1205
|
return Z;
|
|
1206
1206
|
}
|
|
1207
1207
|
function Et(Z) {
|
|
@@ -1214,9 +1214,9 @@ var jf;
|
|
|
1214
1214
|
function $e() {
|
|
1215
1215
|
var Z = Et(_);
|
|
1216
1216
|
Z[6] = Z[6] & 79 | 64, Z[8] = Z[8] & 191 | 128;
|
|
1217
|
-
for (var ee = "",
|
|
1218
|
-
var ge = Z[
|
|
1219
|
-
(
|
|
1217
|
+
for (var ee = "", ce = 0; ce < _; ++ce) {
|
|
1218
|
+
var ge = Z[ce];
|
|
1219
|
+
(ce === 4 || ce === 6 || ce === 8) && (ee += "-"), ge < 16 && (ee += "0"), ee += ge.toString(16).toLowerCase();
|
|
1220
1220
|
}
|
|
1221
1221
|
return ee;
|
|
1222
1222
|
}
|
|
@@ -1333,7 +1333,7 @@ class Yr {
|
|
|
1333
1333
|
return n;
|
|
1334
1334
|
}
|
|
1335
1335
|
}
|
|
1336
|
-
class
|
|
1336
|
+
class le {
|
|
1337
1337
|
static isHex(e) {
|
|
1338
1338
|
return typeof e === Lc && ig.test(e);
|
|
1339
1339
|
}
|
|
@@ -1400,7 +1400,7 @@ class fe {
|
|
|
1400
1400
|
const t = this.formatString(e);
|
|
1401
1401
|
if (!t)
|
|
1402
1402
|
return new ArrayBuffer(0);
|
|
1403
|
-
if (!
|
|
1403
|
+
if (!le.isBase64(t))
|
|
1404
1404
|
throw new TypeError("Argument 'base64Text' is not Base64 encoded");
|
|
1405
1405
|
return typeof atob < "u" ? this.FromBinary(atob(t)) : new Uint8Array(Buffer.from(t, "base64")).buffer;
|
|
1406
1406
|
}
|
|
@@ -1408,14 +1408,14 @@ class fe {
|
|
|
1408
1408
|
const t = this.formatString(e);
|
|
1409
1409
|
if (!t)
|
|
1410
1410
|
return new ArrayBuffer(0);
|
|
1411
|
-
if (!
|
|
1411
|
+
if (!le.isBase64Url(t))
|
|
1412
1412
|
throw new TypeError("Argument 'base64url' is not Base64Url encoded");
|
|
1413
1413
|
return this.FromBase64(this.Base64Padding(t.replace(/\-/g, "+").replace(/\_/g, "/")));
|
|
1414
1414
|
}
|
|
1415
1415
|
static ToBase64Url(e) {
|
|
1416
1416
|
return this.ToBase64(e).replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, "");
|
|
1417
1417
|
}
|
|
1418
|
-
static FromUtf8String(e, t =
|
|
1418
|
+
static FromUtf8String(e, t = le.DEFAULT_UTF8_ENCODING) {
|
|
1419
1419
|
switch (t) {
|
|
1420
1420
|
case "ascii":
|
|
1421
1421
|
return this.FromBinary(e);
|
|
@@ -1431,7 +1431,7 @@ class fe {
|
|
|
1431
1431
|
throw new Error(`Unknown type of encoding '${t}'`);
|
|
1432
1432
|
}
|
|
1433
1433
|
}
|
|
1434
|
-
static ToUtf8String(e, t =
|
|
1434
|
+
static ToUtf8String(e, t = le.DEFAULT_UTF8_ENCODING) {
|
|
1435
1435
|
switch (t) {
|
|
1436
1436
|
case "ascii":
|
|
1437
1437
|
return this.ToBinary(e);
|
|
@@ -1474,7 +1474,7 @@ class fe {
|
|
|
1474
1474
|
let t = this.formatString(e);
|
|
1475
1475
|
if (!t)
|
|
1476
1476
|
return new ArrayBuffer(0);
|
|
1477
|
-
if (!
|
|
1477
|
+
if (!le.isHex(t))
|
|
1478
1478
|
throw new TypeError("Argument 'hexString' is not HEX encoded");
|
|
1479
1479
|
t.length % 2 && (t = `0${t}`);
|
|
1480
1480
|
const n = new Uint8Array(t.length / 2);
|
|
@@ -1501,7 +1501,7 @@ class fe {
|
|
|
1501
1501
|
return (e == null ? void 0 : e.replace(/[\n\r\t ]/g, "")) || "";
|
|
1502
1502
|
}
|
|
1503
1503
|
}
|
|
1504
|
-
|
|
1504
|
+
le.DEFAULT_UTF8_ENCODING = "utf8";
|
|
1505
1505
|
function ag(...r) {
|
|
1506
1506
|
const e = r.map((i) => i.byteLength).reduce((i, s) => i + s), t = new Uint8Array(e);
|
|
1507
1507
|
let n = 0;
|
|
@@ -1713,7 +1713,7 @@ function fn(r) {
|
|
|
1713
1713
|
return {
|
|
1714
1714
|
...super.toJSON(),
|
|
1715
1715
|
isHexOnly: this.isHexOnly,
|
|
1716
|
-
valueHex:
|
|
1716
|
+
valueHex: le.ToHex(this.valueHexView)
|
|
1717
1717
|
};
|
|
1718
1718
|
}
|
|
1719
1719
|
}, e.NAME = "hexBlock", e;
|
|
@@ -1737,7 +1737,7 @@ class Ei {
|
|
|
1737
1737
|
blockLength: this.blockLength,
|
|
1738
1738
|
error: this.error,
|
|
1739
1739
|
warnings: this.warnings,
|
|
1740
|
-
valueBeforeDecode:
|
|
1740
|
+
valueBeforeDecode: le.ToHex(this.valueBeforeDecodeView)
|
|
1741
1741
|
};
|
|
1742
1742
|
}
|
|
1743
1743
|
}
|
|
@@ -1964,10 +1964,10 @@ class Jt extends Ei {
|
|
|
1964
1964
|
return this.primitiveSchema && (e.primitiveSchema = this.primitiveSchema.toJSON()), e;
|
|
1965
1965
|
}
|
|
1966
1966
|
toString(e = "ascii") {
|
|
1967
|
-
return e === "ascii" ? this.onAsciiEncoding() :
|
|
1967
|
+
return e === "ascii" ? this.onAsciiEncoding() : le.ToHex(this.toBER());
|
|
1968
1968
|
}
|
|
1969
1969
|
onAsciiEncoding() {
|
|
1970
|
-
return `${this.constructor.NAME} : ${
|
|
1970
|
+
return `${this.constructor.NAME} : ${le.ToHex(this.valueBlock.valueBeforeDecodeView)}`;
|
|
1971
1971
|
}
|
|
1972
1972
|
isEqual(e) {
|
|
1973
1973
|
if (this === e)
|
|
@@ -2410,7 +2410,7 @@ let si = class zd extends Jt {
|
|
|
2410
2410
|
return super.fromBER(e, t, n);
|
|
2411
2411
|
}
|
|
2412
2412
|
onAsciiEncoding() {
|
|
2413
|
-
return this.valueBlock.isConstructed || this.valueBlock.value && this.valueBlock.value.length ? vr.prototype.onAsciiEncoding.call(this) : `${this.constructor.NAME} : ${
|
|
2413
|
+
return this.valueBlock.isConstructed || this.valueBlock.value && this.valueBlock.value.length ? vr.prototype.onAsciiEncoding.call(this) : `${this.constructor.NAME} : ${le.ToHex(this.valueBlock.valueHexView)}`;
|
|
2414
2414
|
}
|
|
2415
2415
|
getValue() {
|
|
2416
2416
|
if (!this.idBlock.isConstructed)
|
|
@@ -2675,11 +2675,11 @@ class nn extends Jt {
|
|
|
2675
2675
|
}
|
|
2676
2676
|
static fromBigInt(e) {
|
|
2677
2677
|
zo();
|
|
2678
|
-
const t = BigInt(e), n = new Fa(), i = t.toString(16).replace(/^-/, ""), s = new Uint8Array(
|
|
2678
|
+
const t = BigInt(e), n = new Fa(), i = t.toString(16).replace(/^-/, ""), s = new Uint8Array(le.FromHex(i));
|
|
2679
2679
|
if (t < 0) {
|
|
2680
2680
|
const c = new Uint8Array(s.length + (s[0] & 128 ? 1 : 0));
|
|
2681
2681
|
c[0] |= 128;
|
|
2682
|
-
const h = BigInt(`0x${
|
|
2682
|
+
const h = BigInt(`0x${le.ToHex(c)}`) + t, v = W.toUint8Array(le.FromHex(h.toString(16)));
|
|
2683
2683
|
v[0] |= 128, n.write(v);
|
|
2684
2684
|
} else
|
|
2685
2685
|
s[0] & 128 && n.write(new Uint8Array([0])), n.write(s);
|
|
@@ -2765,7 +2765,7 @@ class cl extends fn(fr) {
|
|
|
2765
2765
|
toString() {
|
|
2766
2766
|
let e = "";
|
|
2767
2767
|
if (this.isHexOnly)
|
|
2768
|
-
e =
|
|
2768
|
+
e = le.ToHex(this.valueHexView);
|
|
2769
2769
|
else if (this.isFirstSid) {
|
|
2770
2770
|
let t = this.valueDec;
|
|
2771
2771
|
this.valueDec <= 39 ? e = "0." : this.valueDec <= 79 ? (e = "1.", t -= 40) : (e = "2.", t -= 80), e += t.toString();
|
|
@@ -2929,7 +2929,7 @@ class ll extends fn(Ei) {
|
|
|
2929
2929
|
}
|
|
2930
2930
|
toString() {
|
|
2931
2931
|
let e = "";
|
|
2932
|
-
return this.isHexOnly ? e =
|
|
2932
|
+
return this.isHexOnly ? e = le.ToHex(this.valueHexView) : e = this.valueDec.toString(), e;
|
|
2933
2933
|
}
|
|
2934
2934
|
toJSON() {
|
|
2935
2935
|
return {
|
|
@@ -3072,13 +3072,13 @@ class ip extends kr {
|
|
|
3072
3072
|
fromBuffer(e) {
|
|
3073
3073
|
this.valueBlock.valueHexView = W.toUint8Array(e);
|
|
3074
3074
|
try {
|
|
3075
|
-
this.valueBlock.value =
|
|
3075
|
+
this.valueBlock.value = le.ToUtf8String(e);
|
|
3076
3076
|
} catch (t) {
|
|
3077
|
-
this.warnings.push(`Error during "decodeURIComponent": ${t}, using raw string`), this.valueBlock.value =
|
|
3077
|
+
this.warnings.push(`Error during "decodeURIComponent": ${t}, using raw string`), this.valueBlock.value = le.ToBinary(e);
|
|
3078
3078
|
}
|
|
3079
3079
|
}
|
|
3080
3080
|
fromString(e) {
|
|
3081
|
-
this.valueBlock.valueHexView = new Uint8Array(
|
|
3081
|
+
this.valueBlock.valueHexView = new Uint8Array(le.FromUtf8String(e)), this.valueBlock.value = e;
|
|
3082
3082
|
}
|
|
3083
3083
|
}
|
|
3084
3084
|
ip.NAME = "Utf8StringValueBlock";
|
|
@@ -3093,10 +3093,10 @@ se.Utf8String = sp;
|
|
|
3093
3093
|
kn.NAME = "UTF8String";
|
|
3094
3094
|
class op extends kr {
|
|
3095
3095
|
fromBuffer(e) {
|
|
3096
|
-
this.valueBlock.value =
|
|
3096
|
+
this.valueBlock.value = le.ToUtf16String(e), this.valueBlock.valueHexView = W.toUint8Array(e);
|
|
3097
3097
|
}
|
|
3098
3098
|
fromString(e) {
|
|
3099
|
-
this.valueBlock.value = e, this.valueBlock.valueHexView = new Uint8Array(
|
|
3099
|
+
this.valueBlock.value = e, this.valueBlock.valueHexView = new Uint8Array(le.FromUtf16String(e));
|
|
3100
3100
|
}
|
|
3101
3101
|
}
|
|
3102
3102
|
op.NAME = "BmpStringValueBlock";
|
|
@@ -4795,7 +4795,7 @@ class Lf {
|
|
|
4795
4795
|
const t = new Uint8Array(e);
|
|
4796
4796
|
return Vf.fromByteArray(Array.from(t)).toString();
|
|
4797
4797
|
}
|
|
4798
|
-
return this.decodeIP(
|
|
4798
|
+
return this.decodeIP(le.ToHex(e));
|
|
4799
4799
|
}
|
|
4800
4800
|
static fromString(e) {
|
|
4801
4801
|
const t = Vf.parse(e);
|
|
@@ -4834,7 +4834,7 @@ let Vi = class extends Xt {
|
|
|
4834
4834
|
super(e), Object.assign(this, e);
|
|
4835
4835
|
}
|
|
4836
4836
|
toString() {
|
|
4837
|
-
return this.ia5String || (this.anyValue ?
|
|
4837
|
+
return this.ia5String || (this.anyValue ? le.ToHex(this.anyValue) : super.toString());
|
|
4838
4838
|
}
|
|
4839
4839
|
};
|
|
4840
4840
|
f([
|
|
@@ -8057,11 +8057,11 @@ class Jn {
|
|
|
8057
8057
|
case "text":
|
|
8058
8058
|
return Gn.serialize(this.toTextObject());
|
|
8059
8059
|
case "hex":
|
|
8060
|
-
return
|
|
8060
|
+
return le.ToHex(this.rawData);
|
|
8061
8061
|
case "base64":
|
|
8062
|
-
return
|
|
8062
|
+
return le.ToBase64(this.rawData);
|
|
8063
8063
|
case "base64url":
|
|
8064
|
-
return
|
|
8064
|
+
return le.ToBase64Url(this.rawData);
|
|
8065
8065
|
default:
|
|
8066
8066
|
throw TypeError("Argument 'format' is unsupported value");
|
|
8067
8067
|
}
|
|
@@ -8189,7 +8189,7 @@ mr.register("I", "2.5.4.43");
|
|
|
8189
8189
|
mr.register("SN", "2.5.4.4");
|
|
8190
8190
|
mr.register("T", "2.5.4.12");
|
|
8191
8191
|
function Dv(r, e) {
|
|
8192
|
-
return `\\${
|
|
8192
|
+
return `\\${le.ToHex(le.FromUtf8String(e)).toUpperCase()}`;
|
|
8193
8193
|
}
|
|
8194
8194
|
function $v(r) {
|
|
8195
8195
|
return r.replace(/([,+"\\<>;])/g, "\\$1").replace(/^([ #])/, "\\$1").replace(/([ ]$)/, "\\$1").replace(/([\r\n\t])/, Dv);
|
|
@@ -8225,7 +8225,7 @@ class Hn {
|
|
|
8225
8225
|
}
|
|
8226
8226
|
toString() {
|
|
8227
8227
|
return this.asn.map((e) => e.map((t) => {
|
|
8228
|
-
const n = this.getName(t.type) || t.type, i = t.value.anyValue ? `#${
|
|
8228
|
+
const n = this.getName(t.type) || t.type, i = t.value.anyValue ? `#${le.ToHex(t.value.anyValue)}` : $v(t.value.toString());
|
|
8229
8229
|
return `${n}=${i}`;
|
|
8230
8230
|
}).join("+")).join(", ");
|
|
8231
8231
|
}
|
|
@@ -8236,7 +8236,7 @@ class Hn {
|
|
|
8236
8236
|
const i = {};
|
|
8237
8237
|
for (const s of n) {
|
|
8238
8238
|
const o = this.getName(s.type) || s.type;
|
|
8239
|
-
(e = i[o]) !== null && e !== void 0 || (i[o] = []), i[o].push(s.value.anyValue ? `#${
|
|
8239
|
+
(e = i[o]) !== null && e !== void 0 || (i[o] = []), i[o].push(s.value.anyValue ? `#${le.ToHex(s.value.anyValue)}` : s.value.toString());
|
|
8240
8240
|
}
|
|
8241
8241
|
t.push(i);
|
|
8242
8242
|
}
|
|
@@ -8298,7 +8298,7 @@ class Hn {
|
|
|
8298
8298
|
break;
|
|
8299
8299
|
}
|
|
8300
8300
|
else if (t[0] === "#")
|
|
8301
|
-
n.value.anyValue =
|
|
8301
|
+
n.value.anyValue = le.FromHex(t.slice(1));
|
|
8302
8302
|
else {
|
|
8303
8303
|
const i = this.processStringValue(t);
|
|
8304
8304
|
e === this.getName("E") || e === this.getName("DC") ? n.value.ia5String = i : Hn.isPrintableString(i) ? n.value.printableString = i : n.value.utf8String = i;
|
|
@@ -8340,11 +8340,11 @@ class $n extends Jn {
|
|
|
8340
8340
|
const n = new RegExp(td, "i").exec(e[1]);
|
|
8341
8341
|
if (!n)
|
|
8342
8342
|
throw new Error("Cannot parse GUID value. Value doesn't match to regular expression");
|
|
8343
|
-
const i = n.slice(1).map((s, o) => o < 3 ?
|
|
8343
|
+
const i = n.slice(1).map((s, o) => o < 3 ? le.ToHex(new Uint8Array(le.FromHex(s)).reverse()) : s).join("");
|
|
8344
8344
|
t = new Le({
|
|
8345
8345
|
otherName: new Ds({
|
|
8346
8346
|
typeId: rd,
|
|
8347
|
-
value: q.serialize(new st(
|
|
8347
|
+
value: q.serialize(new st(le.FromHex(i)))
|
|
8348
8348
|
})
|
|
8349
8349
|
});
|
|
8350
8350
|
break;
|
|
@@ -8389,10 +8389,10 @@ class $n extends Jn {
|
|
|
8389
8389
|
else if (e.otherName != null)
|
|
8390
8390
|
if (e.otherName.typeId === rd) {
|
|
8391
8391
|
this.type = Wc;
|
|
8392
|
-
const t = q.parse(e.otherName.value, st), n = new RegExp(td, "i").exec(
|
|
8392
|
+
const t = q.parse(e.otherName.value, st), n = new RegExp(td, "i").exec(le.ToHex(t));
|
|
8393
8393
|
if (!n)
|
|
8394
8394
|
throw new Error(Mv);
|
|
8395
|
-
this.value = n.slice(1).map((i, s) => s < 3 ?
|
|
8395
|
+
this.value = n.slice(1).map((i, s) => s < 3 ? le.ToHex(new Uint8Array(le.FromHex(i)).reverse()) : i).join("-");
|
|
8396
8396
|
} else if (e.otherName.typeId === nd)
|
|
8397
8397
|
this.type = Yc, this.value = q.parse(e.otherName.value, Xt).toString();
|
|
8398
8398
|
else
|
|
@@ -8489,7 +8489,7 @@ class gr {
|
|
|
8489
8489
|
const s = i[3].replace(new RegExp(`[${Ks}]+`, "g"), ""), o = {
|
|
8490
8490
|
type: i[1],
|
|
8491
8491
|
headers: [],
|
|
8492
|
-
rawData:
|
|
8492
|
+
rawData: le.FromBase64(s)
|
|
8493
8493
|
}, c = i[2];
|
|
8494
8494
|
if (c) {
|
|
8495
8495
|
const u = c.split(new RegExp(Ji, "g"));
|
|
@@ -8551,7 +8551,7 @@ class gr {
|
|
|
8551
8551
|
i.push(`${h.key}: ${h.value}`);
|
|
8552
8552
|
i.push("");
|
|
8553
8553
|
}
|
|
8554
|
-
const s =
|
|
8554
|
+
const s = le.ToBase64(e.rawData);
|
|
8555
8555
|
let o, c = 0;
|
|
8556
8556
|
const u = Array();
|
|
8557
8557
|
for (; c < s.length && (s.length - c < 64 ? o = s.substring(c) : (o = s.substring(c, c + 64), c += 64), o.length !== 0); )
|
|
@@ -8574,16 +8574,16 @@ class Fr extends Jn {
|
|
|
8574
8574
|
if (typeof e == "string") {
|
|
8575
8575
|
if (gr.isPem(e))
|
|
8576
8576
|
return gr.decode(e)[0];
|
|
8577
|
-
if (
|
|
8578
|
-
return
|
|
8579
|
-
if (
|
|
8580
|
-
return
|
|
8581
|
-
if (
|
|
8582
|
-
return
|
|
8577
|
+
if (le.isHex(e))
|
|
8578
|
+
return le.FromHex(e);
|
|
8579
|
+
if (le.isBase64(e))
|
|
8580
|
+
return le.FromBase64(e);
|
|
8581
|
+
if (le.isBase64Url(e))
|
|
8582
|
+
return le.FromBase64Url(e);
|
|
8583
8583
|
throw new TypeError("Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url");
|
|
8584
8584
|
} else {
|
|
8585
|
-
const t =
|
|
8586
|
-
return gr.isPem(t) ? gr.decode(t)[0] :
|
|
8585
|
+
const t = le.ToBinary(e);
|
|
8586
|
+
return gr.isPem(t) ? gr.decode(t)[0] : le.isHex(t) ? le.FromHex(t) : le.isBase64(t) ? le.FromBase64(t) : le.isBase64Url(t) ? le.FromBase64Url(t) : W.toArrayBuffer(e);
|
|
8587
8587
|
}
|
|
8588
8588
|
}
|
|
8589
8589
|
constructor(...e) {
|
|
@@ -8670,18 +8670,18 @@ class qs extends jr {
|
|
|
8670
8670
|
if ("name" in e && "serialNumber" in e)
|
|
8671
8671
|
return new qs(e, t);
|
|
8672
8672
|
const s = await (await sn.create(e, n)).getKeyIdentifier(n);
|
|
8673
|
-
return new qs(
|
|
8673
|
+
return new qs(le.ToHex(s), t);
|
|
8674
8674
|
}
|
|
8675
8675
|
constructor(...e) {
|
|
8676
8676
|
if (W.isBufferSource(e[0]))
|
|
8677
8677
|
super(e[0]);
|
|
8678
8678
|
else if (typeof e[0] == "string") {
|
|
8679
|
-
const t = new ni({ keyIdentifier: new Zu(
|
|
8679
|
+
const t = new ni({ keyIdentifier: new Zu(le.FromHex(e[0])) });
|
|
8680
8680
|
super(qo, e[1], q.serialize(t));
|
|
8681
8681
|
} else {
|
|
8682
8682
|
const t = e[0], n = t.name instanceof Gs ? q.parse(t.name.rawData, cr) : t.name, i = new ni({
|
|
8683
8683
|
authorityCertIssuer: n,
|
|
8684
|
-
authorityCertSerialNumber:
|
|
8684
|
+
authorityCertSerialNumber: le.FromHex(t.serialNumber)
|
|
8685
8685
|
});
|
|
8686
8686
|
super(qo, e[1], q.serialize(i));
|
|
8687
8687
|
}
|
|
@@ -8689,9 +8689,9 @@ class qs extends jr {
|
|
|
8689
8689
|
onInit(e) {
|
|
8690
8690
|
super.onInit(e);
|
|
8691
8691
|
const t = q.parse(e.extnValue, ni);
|
|
8692
|
-
t.keyIdentifier && (this.keyId =
|
|
8692
|
+
t.keyIdentifier && (this.keyId = le.ToHex(t.keyIdentifier)), (t.authorityCertIssuer || t.authorityCertSerialNumber) && (this.certId = {
|
|
8693
8693
|
name: t.authorityCertIssuer || [],
|
|
8694
|
-
serialNumber: t.authorityCertSerialNumber ?
|
|
8694
|
+
serialNumber: t.authorityCertSerialNumber ? le.ToHex(t.authorityCertSerialNumber) : ""
|
|
8695
8695
|
});
|
|
8696
8696
|
}
|
|
8697
8697
|
toTextObject() {
|
|
@@ -8765,16 +8765,16 @@ h0.NAME = "Key Usages";
|
|
|
8765
8765
|
class Nc extends jr {
|
|
8766
8766
|
static async create(e, t = !1, n = Zt.get()) {
|
|
8767
8767
|
const s = await (await sn.create(e, n)).getKeyIdentifier(n);
|
|
8768
|
-
return new Nc(
|
|
8768
|
+
return new Nc(le.ToHex(s), t);
|
|
8769
8769
|
}
|
|
8770
8770
|
constructor(...e) {
|
|
8771
8771
|
if (W.isBufferSource(e[0])) {
|
|
8772
8772
|
super(e[0]);
|
|
8773
8773
|
const t = q.parse(this.value, Ln);
|
|
8774
|
-
this.keyId =
|
|
8774
|
+
this.keyId = le.ToHex(t);
|
|
8775
8775
|
} else {
|
|
8776
|
-
const t = typeof e[0] == "string" ?
|
|
8777
|
-
super(ef, e[1], q.serialize(n)), this.keyId =
|
|
8776
|
+
const t = typeof e[0] == "string" ? le.FromHex(e[0]) : e[0], n = new Ln(t);
|
|
8777
|
+
super(ef, e[1], q.serialize(n)), this.keyId = le.ToHex(t);
|
|
8778
8778
|
}
|
|
8779
8779
|
}
|
|
8780
8780
|
toTextObject() {
|
|
@@ -9288,7 +9288,7 @@ class wi extends Fr {
|
|
|
9288
9288
|
}
|
|
9289
9289
|
onInit(e) {
|
|
9290
9290
|
const t = e.tbsCertificate;
|
|
9291
|
-
this.tbs = q.serialize(t), this.serialNumber =
|
|
9291
|
+
this.tbs = q.serialize(t), this.serialNumber = le.ToHex(t.serialNumber), this.subjectName = new Hn(t.subject), this.subject = new Hn(t.subject).toString(), this.issuerName = new Hn(t.issuer), this.issuer = this.issuerName.toString();
|
|
9292
9292
|
const n = lr.resolve(Yi);
|
|
9293
9293
|
this.signatureAlgorithm = n.toWebAlgorithm(e.signatureAlgorithm), this.signature = e.signatureValue;
|
|
9294
9294
|
const i = t.validity.notBefore.utcTime || t.validity.notBefore.generalTime;
|
|
@@ -9427,11 +9427,11 @@ class Yv extends Array {
|
|
|
9427
9427
|
case "asn":
|
|
9428
9428
|
return q.toString(t);
|
|
9429
9429
|
case "hex":
|
|
9430
|
-
return
|
|
9430
|
+
return le.ToHex(t);
|
|
9431
9431
|
case "base64":
|
|
9432
|
-
return
|
|
9432
|
+
return le.ToBase64(t);
|
|
9433
9433
|
case "base64url":
|
|
9434
|
-
return
|
|
9434
|
+
return le.ToBase64Url(t);
|
|
9435
9435
|
case "text":
|
|
9436
9436
|
return Gn.serialize(this.toTextObject());
|
|
9437
9437
|
default:
|
|
@@ -13423,12 +13423,12 @@ const D1 = {}, $1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13423
13423
|
return A(l, p, d, a, 32);
|
|
13424
13424
|
}
|
|
13425
13425
|
function P(l, p, d, a) {
|
|
13426
|
-
for (var g = a[0] & 255 | (a[1] & 255) << 8 | (a[2] & 255) << 16 | (a[3] & 255) << 24, S = d[0] & 255 | (d[1] & 255) << 8 | (d[2] & 255) << 16 | (d[3] & 255) << 24, E = d[4] & 255 | (d[5] & 255) << 8 | (d[6] & 255) << 16 | (d[7] & 255) << 24, R = d[8] & 255 | (d[9] & 255) << 8 | (d[10] & 255) << 16 | (d[11] & 255) << 24, G = d[12] & 255 | (d[13] & 255) << 8 | (d[14] & 255) << 16 | (d[15] & 255) << 24, we = a[4] & 255 | (a[5] & 255) << 8 | (a[6] & 255) << 16 | (a[7] & 255) << 24, J = p[0] & 255 | (p[1] & 255) << 8 | (p[2] & 255) << 16 | (p[3] & 255) << 24, ft = p[4] & 255 | (p[5] & 255) << 8 | (p[6] & 255) << 16 | (p[7] & 255) << 24,
|
|
13426
|
+
for (var g = a[0] & 255 | (a[1] & 255) << 8 | (a[2] & 255) << 16 | (a[3] & 255) << 24, S = d[0] & 255 | (d[1] & 255) << 8 | (d[2] & 255) << 16 | (d[3] & 255) << 24, E = d[4] & 255 | (d[5] & 255) << 8 | (d[6] & 255) << 16 | (d[7] & 255) << 24, R = d[8] & 255 | (d[9] & 255) << 8 | (d[10] & 255) << 16 | (d[11] & 255) << 24, G = d[12] & 255 | (d[13] & 255) << 8 | (d[14] & 255) << 16 | (d[15] & 255) << 24, we = a[4] & 255 | (a[5] & 255) << 8 | (a[6] & 255) << 16 | (a[7] & 255) << 24, J = p[0] & 255 | (p[1] & 255) << 8 | (p[2] & 255) << 16 | (p[3] & 255) << 24, ft = p[4] & 255 | (p[5] & 255) << 8 | (p[6] & 255) << 16 | (p[7] & 255) << 24, oe = p[8] & 255 | (p[9] & 255) << 8 | (p[10] & 255) << 16 | (p[11] & 255) << 24, Oe = p[12] & 255 | (p[13] & 255) << 8 | (p[14] & 255) << 16 | (p[15] & 255) << 24, Ne = a[8] & 255 | (a[9] & 255) << 8 | (a[10] & 255) << 16 | (a[11] & 255) << 24, He = d[16] & 255 | (d[17] & 255) << 8 | (d[18] & 255) << 16 | (d[19] & 255) << 24, Me = d[20] & 255 | (d[21] & 255) << 8 | (d[22] & 255) << 16 | (d[23] & 255) << 24, Pe = d[24] & 255 | (d[25] & 255) << 8 | (d[26] & 255) << 16 | (d[27] & 255) << 24, Ue = d[28] & 255 | (d[29] & 255) << 8 | (d[30] & 255) << 16 | (d[31] & 255) << 24, je = a[12] & 255 | (a[13] & 255) << 8 | (a[14] & 255) << 16 | (a[15] & 255) << 24, he = g, Ae = S, te = E, de = R, ve = G, Y = we, B = J, O = ft, V = oe, j = Oe, U = Ne, L = He, _e = Me, Fe = Pe, qe = Ue, ze = je, w, Xe = 0; Xe < 20; Xe += 2)
|
|
13427
13427
|
w = he + _e | 0, ve ^= w << 7 | w >>> 25, w = ve + he | 0, V ^= w << 9 | w >>> 23, w = V + ve | 0, _e ^= w << 13 | w >>> 19, w = _e + V | 0, he ^= w << 18 | w >>> 14, w = Y + Ae | 0, j ^= w << 7 | w >>> 25, w = j + Y | 0, Fe ^= w << 9 | w >>> 23, w = Fe + j | 0, Ae ^= w << 13 | w >>> 19, w = Ae + Fe | 0, Y ^= w << 18 | w >>> 14, w = U + B | 0, qe ^= w << 7 | w >>> 25, w = qe + U | 0, te ^= w << 9 | w >>> 23, w = te + qe | 0, B ^= w << 13 | w >>> 19, w = B + te | 0, U ^= w << 18 | w >>> 14, w = ze + L | 0, de ^= w << 7 | w >>> 25, w = de + ze | 0, O ^= w << 9 | w >>> 23, w = O + de | 0, L ^= w << 13 | w >>> 19, w = L + O | 0, ze ^= w << 18 | w >>> 14, w = he + de | 0, Ae ^= w << 7 | w >>> 25, w = Ae + he | 0, te ^= w << 9 | w >>> 23, w = te + Ae | 0, de ^= w << 13 | w >>> 19, w = de + te | 0, he ^= w << 18 | w >>> 14, w = Y + ve | 0, B ^= w << 7 | w >>> 25, w = B + Y | 0, O ^= w << 9 | w >>> 23, w = O + B | 0, ve ^= w << 13 | w >>> 19, w = ve + O | 0, Y ^= w << 18 | w >>> 14, w = U + j | 0, L ^= w << 7 | w >>> 25, w = L + U | 0, V ^= w << 9 | w >>> 23, w = V + L | 0, j ^= w << 13 | w >>> 19, w = j + V | 0, U ^= w << 18 | w >>> 14, w = ze + qe | 0, _e ^= w << 7 | w >>> 25, w = _e + ze | 0, Fe ^= w << 9 | w >>> 23, w = Fe + _e | 0, qe ^= w << 13 | w >>> 19, w = qe + Fe | 0, ze ^= w << 18 | w >>> 14;
|
|
13428
|
-
he = he + g | 0, Ae = Ae + S | 0, te = te + E | 0, de = de + R | 0, ve = ve + G | 0, Y = Y + we | 0, B = B + J | 0, O = O + ft | 0, V = V +
|
|
13428
|
+
he = he + g | 0, Ae = Ae + S | 0, te = te + E | 0, de = de + R | 0, ve = ve + G | 0, Y = Y + we | 0, B = B + J | 0, O = O + ft | 0, V = V + oe | 0, j = j + Oe | 0, U = U + Ne | 0, L = L + He | 0, _e = _e + Me | 0, Fe = Fe + Pe | 0, qe = qe + Ue | 0, ze = ze + je | 0, l[0] = he >>> 0 & 255, l[1] = he >>> 8 & 255, l[2] = he >>> 16 & 255, l[3] = he >>> 24 & 255, l[4] = Ae >>> 0 & 255, l[5] = Ae >>> 8 & 255, l[6] = Ae >>> 16 & 255, l[7] = Ae >>> 24 & 255, l[8] = te >>> 0 & 255, l[9] = te >>> 8 & 255, l[10] = te >>> 16 & 255, l[11] = te >>> 24 & 255, l[12] = de >>> 0 & 255, l[13] = de >>> 8 & 255, l[14] = de >>> 16 & 255, l[15] = de >>> 24 & 255, l[16] = ve >>> 0 & 255, l[17] = ve >>> 8 & 255, l[18] = ve >>> 16 & 255, l[19] = ve >>> 24 & 255, l[20] = Y >>> 0 & 255, l[21] = Y >>> 8 & 255, l[22] = Y >>> 16 & 255, l[23] = Y >>> 24 & 255, l[24] = B >>> 0 & 255, l[25] = B >>> 8 & 255, l[26] = B >>> 16 & 255, l[27] = B >>> 24 & 255, l[28] = O >>> 0 & 255, l[29] = O >>> 8 & 255, l[30] = O >>> 16 & 255, l[31] = O >>> 24 & 255, l[32] = V >>> 0 & 255, l[33] = V >>> 8 & 255, l[34] = V >>> 16 & 255, l[35] = V >>> 24 & 255, l[36] = j >>> 0 & 255, l[37] = j >>> 8 & 255, l[38] = j >>> 16 & 255, l[39] = j >>> 24 & 255, l[40] = U >>> 0 & 255, l[41] = U >>> 8 & 255, l[42] = U >>> 16 & 255, l[43] = U >>> 24 & 255, l[44] = L >>> 0 & 255, l[45] = L >>> 8 & 255, l[46] = L >>> 16 & 255, l[47] = L >>> 24 & 255, l[48] = _e >>> 0 & 255, l[49] = _e >>> 8 & 255, l[50] = _e >>> 16 & 255, l[51] = _e >>> 24 & 255, l[52] = Fe >>> 0 & 255, l[53] = Fe >>> 8 & 255, l[54] = Fe >>> 16 & 255, l[55] = Fe >>> 24 & 255, l[56] = qe >>> 0 & 255, l[57] = qe >>> 8 & 255, l[58] = qe >>> 16 & 255, l[59] = qe >>> 24 & 255, l[60] = ze >>> 0 & 255, l[61] = ze >>> 8 & 255, l[62] = ze >>> 16 & 255, l[63] = ze >>> 24 & 255;
|
|
13429
13429
|
}
|
|
13430
13430
|
function D(l, p, d, a) {
|
|
13431
|
-
for (var g = a[0] & 255 | (a[1] & 255) << 8 | (a[2] & 255) << 16 | (a[3] & 255) << 24, S = d[0] & 255 | (d[1] & 255) << 8 | (d[2] & 255) << 16 | (d[3] & 255) << 24, E = d[4] & 255 | (d[5] & 255) << 8 | (d[6] & 255) << 16 | (d[7] & 255) << 24, R = d[8] & 255 | (d[9] & 255) << 8 | (d[10] & 255) << 16 | (d[11] & 255) << 24, G = d[12] & 255 | (d[13] & 255) << 8 | (d[14] & 255) << 16 | (d[15] & 255) << 24, we = a[4] & 255 | (a[5] & 255) << 8 | (a[6] & 255) << 16 | (a[7] & 255) << 24, J = p[0] & 255 | (p[1] & 255) << 8 | (p[2] & 255) << 16 | (p[3] & 255) << 24, ft = p[4] & 255 | (p[5] & 255) << 8 | (p[6] & 255) << 16 | (p[7] & 255) << 24,
|
|
13431
|
+
for (var g = a[0] & 255 | (a[1] & 255) << 8 | (a[2] & 255) << 16 | (a[3] & 255) << 24, S = d[0] & 255 | (d[1] & 255) << 8 | (d[2] & 255) << 16 | (d[3] & 255) << 24, E = d[4] & 255 | (d[5] & 255) << 8 | (d[6] & 255) << 16 | (d[7] & 255) << 24, R = d[8] & 255 | (d[9] & 255) << 8 | (d[10] & 255) << 16 | (d[11] & 255) << 24, G = d[12] & 255 | (d[13] & 255) << 8 | (d[14] & 255) << 16 | (d[15] & 255) << 24, we = a[4] & 255 | (a[5] & 255) << 8 | (a[6] & 255) << 16 | (a[7] & 255) << 24, J = p[0] & 255 | (p[1] & 255) << 8 | (p[2] & 255) << 16 | (p[3] & 255) << 24, ft = p[4] & 255 | (p[5] & 255) << 8 | (p[6] & 255) << 16 | (p[7] & 255) << 24, oe = p[8] & 255 | (p[9] & 255) << 8 | (p[10] & 255) << 16 | (p[11] & 255) << 24, Oe = p[12] & 255 | (p[13] & 255) << 8 | (p[14] & 255) << 16 | (p[15] & 255) << 24, Ne = a[8] & 255 | (a[9] & 255) << 8 | (a[10] & 255) << 16 | (a[11] & 255) << 24, He = d[16] & 255 | (d[17] & 255) << 8 | (d[18] & 255) << 16 | (d[19] & 255) << 24, Me = d[20] & 255 | (d[21] & 255) << 8 | (d[22] & 255) << 16 | (d[23] & 255) << 24, Pe = d[24] & 255 | (d[25] & 255) << 8 | (d[26] & 255) << 16 | (d[27] & 255) << 24, Ue = d[28] & 255 | (d[29] & 255) << 8 | (d[30] & 255) << 16 | (d[31] & 255) << 24, je = a[12] & 255 | (a[13] & 255) << 8 | (a[14] & 255) << 16 | (a[15] & 255) << 24, he = g, Ae = S, te = E, de = R, ve = G, Y = we, B = J, O = ft, V = oe, j = Oe, U = Ne, L = He, _e = Me, Fe = Pe, qe = Ue, ze = je, w, Xe = 0; Xe < 20; Xe += 2)
|
|
13432
13432
|
w = he + _e | 0, ve ^= w << 7 | w >>> 25, w = ve + he | 0, V ^= w << 9 | w >>> 23, w = V + ve | 0, _e ^= w << 13 | w >>> 19, w = _e + V | 0, he ^= w << 18 | w >>> 14, w = Y + Ae | 0, j ^= w << 7 | w >>> 25, w = j + Y | 0, Fe ^= w << 9 | w >>> 23, w = Fe + j | 0, Ae ^= w << 13 | w >>> 19, w = Ae + Fe | 0, Y ^= w << 18 | w >>> 14, w = U + B | 0, qe ^= w << 7 | w >>> 25, w = qe + U | 0, te ^= w << 9 | w >>> 23, w = te + qe | 0, B ^= w << 13 | w >>> 19, w = B + te | 0, U ^= w << 18 | w >>> 14, w = ze + L | 0, de ^= w << 7 | w >>> 25, w = de + ze | 0, O ^= w << 9 | w >>> 23, w = O + de | 0, L ^= w << 13 | w >>> 19, w = L + O | 0, ze ^= w << 18 | w >>> 14, w = he + de | 0, Ae ^= w << 7 | w >>> 25, w = Ae + he | 0, te ^= w << 9 | w >>> 23, w = te + Ae | 0, de ^= w << 13 | w >>> 19, w = de + te | 0, he ^= w << 18 | w >>> 14, w = Y + ve | 0, B ^= w << 7 | w >>> 25, w = B + Y | 0, O ^= w << 9 | w >>> 23, w = O + B | 0, ve ^= w << 13 | w >>> 19, w = ve + O | 0, Y ^= w << 18 | w >>> 14, w = U + j | 0, L ^= w << 7 | w >>> 25, w = L + U | 0, V ^= w << 9 | w >>> 23, w = V + L | 0, j ^= w << 13 | w >>> 19, w = j + V | 0, U ^= w << 18 | w >>> 14, w = ze + qe | 0, _e ^= w << 7 | w >>> 25, w = _e + ze | 0, Fe ^= w << 9 | w >>> 23, w = Fe + _e | 0, qe ^= w << 13 | w >>> 19, w = qe + Fe | 0, ze ^= w << 18 | w >>> 14;
|
|
13433
13433
|
l[0] = he >>> 0 & 255, l[1] = he >>> 8 & 255, l[2] = he >>> 16 & 255, l[3] = he >>> 24 & 255, l[4] = Y >>> 0 & 255, l[5] = Y >>> 8 & 255, l[6] = Y >>> 16 & 255, l[7] = Y >>> 24 & 255, l[8] = U >>> 0 & 255, l[9] = U >>> 8 & 255, l[10] = U >>> 16 & 255, l[11] = U >>> 24 & 255, l[12] = ze >>> 0 & 255, l[13] = ze >>> 8 & 255, l[14] = ze >>> 16 & 255, l[15] = ze >>> 24 & 255, l[16] = B >>> 0 & 255, l[17] = B >>> 8 & 255, l[18] = B >>> 16 & 255, l[19] = B >>> 24 & 255, l[20] = O >>> 0 & 255, l[21] = O >>> 8 & 255, l[22] = O >>> 16 & 255, l[23] = O >>> 24 & 255, l[24] = V >>> 0 & 255, l[25] = V >>> 8 & 255, l[26] = V >>> 16 & 255, l[27] = V >>> 24 & 255, l[28] = j >>> 0 & 255, l[29] = j >>> 8 & 255, l[30] = j >>> 16 & 255, l[31] = j >>> 24 & 255;
|
|
13434
13434
|
}
|
|
@@ -13479,16 +13479,16 @@ const D1 = {}, $1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13479
13479
|
for (var G = new Uint8Array(8), we = 0; we < 8; we++) G[we] = S[we + 16];
|
|
13480
13480
|
return Be(l, p, d, a, g, G, R);
|
|
13481
13481
|
}
|
|
13482
|
-
var
|
|
13482
|
+
var ue = function(l) {
|
|
13483
13483
|
this.buffer = new Uint8Array(16), this.r = new Uint16Array(10), this.h = new Uint16Array(10), this.pad = new Uint16Array(8), this.leftover = 0, this.fin = 0;
|
|
13484
13484
|
var p, d, a, g, S, E, R, G;
|
|
13485
13485
|
p = l[0] & 255 | (l[1] & 255) << 8, this.r[0] = p & 8191, d = l[2] & 255 | (l[3] & 255) << 8, this.r[1] = (p >>> 13 | d << 3) & 8191, a = l[4] & 255 | (l[5] & 255) << 8, this.r[2] = (d >>> 10 | a << 6) & 7939, g = l[6] & 255 | (l[7] & 255) << 8, this.r[3] = (a >>> 7 | g << 9) & 8191, S = l[8] & 255 | (l[9] & 255) << 8, this.r[4] = (g >>> 4 | S << 12) & 255, this.r[5] = S >>> 1 & 8190, E = l[10] & 255 | (l[11] & 255) << 8, this.r[6] = (S >>> 14 | E << 2) & 8191, R = l[12] & 255 | (l[13] & 255) << 8, this.r[7] = (E >>> 11 | R << 5) & 8065, G = l[14] & 255 | (l[15] & 255) << 8, this.r[8] = (R >>> 8 | G << 8) & 8191, this.r[9] = G >>> 5 & 127, this.pad[0] = l[16] & 255 | (l[17] & 255) << 8, this.pad[1] = l[18] & 255 | (l[19] & 255) << 8, this.pad[2] = l[20] & 255 | (l[21] & 255) << 8, this.pad[3] = l[22] & 255 | (l[23] & 255) << 8, this.pad[4] = l[24] & 255 | (l[25] & 255) << 8, this.pad[5] = l[26] & 255 | (l[27] & 255) << 8, this.pad[6] = l[28] & 255 | (l[29] & 255) << 8, this.pad[7] = l[30] & 255 | (l[31] & 255) << 8;
|
|
13486
13486
|
};
|
|
13487
|
-
|
|
13488
|
-
for (var a = this.fin ? 0 : 2048, g, S, E, R, G, we, J, ft,
|
|
13489
|
-
g = l[p + 0] & 255 | (l[p + 1] & 255) << 8, de += g & 8191, S = l[p + 2] & 255 | (l[p + 3] & 255) << 8, ve += (g >>> 13 | S << 3) & 8191, E = l[p + 4] & 255 | (l[p + 5] & 255) << 8, Y += (S >>> 10 | E << 6) & 8191, R = l[p + 6] & 255 | (l[p + 7] & 255) << 8, B += (E >>> 7 | R << 9) & 8191, G = l[p + 8] & 255 | (l[p + 9] & 255) << 8, O += (R >>> 4 | G << 12) & 8191, V += G >>> 1 & 8191, we = l[p + 10] & 255 | (l[p + 11] & 255) << 8, j += (G >>> 14 | we << 2) & 8191, J = l[p + 12] & 255 | (l[p + 13] & 255) << 8, U += (we >>> 11 | J << 5) & 8191, ft = l[p + 14] & 255 | (l[p + 15] & 255) << 8, L += (J >>> 8 | ft << 8) & 8191, _e += ft >>> 5 | a,
|
|
13487
|
+
ue.prototype.blocks = function(l, p, d) {
|
|
13488
|
+
for (var a = this.fin ? 0 : 2048, g, S, E, R, G, we, J, ft, oe, Oe, Ne, He, Me, Pe, Ue, je, he, Ae, te, de = this.h[0], ve = this.h[1], Y = this.h[2], B = this.h[3], O = this.h[4], V = this.h[5], j = this.h[6], U = this.h[7], L = this.h[8], _e = this.h[9], Fe = this.r[0], qe = this.r[1], ze = this.r[2], w = this.r[3], Xe = this.r[4], ht = this.r[5], dt = this.r[6], We = this.r[7], at = this.r[8], ct = this.r[9]; d >= 16; )
|
|
13489
|
+
g = l[p + 0] & 255 | (l[p + 1] & 255) << 8, de += g & 8191, S = l[p + 2] & 255 | (l[p + 3] & 255) << 8, ve += (g >>> 13 | S << 3) & 8191, E = l[p + 4] & 255 | (l[p + 5] & 255) << 8, Y += (S >>> 10 | E << 6) & 8191, R = l[p + 6] & 255 | (l[p + 7] & 255) << 8, B += (E >>> 7 | R << 9) & 8191, G = l[p + 8] & 255 | (l[p + 9] & 255) << 8, O += (R >>> 4 | G << 12) & 8191, V += G >>> 1 & 8191, we = l[p + 10] & 255 | (l[p + 11] & 255) << 8, j += (G >>> 14 | we << 2) & 8191, J = l[p + 12] & 255 | (l[p + 13] & 255) << 8, U += (we >>> 11 | J << 5) & 8191, ft = l[p + 14] & 255 | (l[p + 15] & 255) << 8, L += (J >>> 8 | ft << 8) & 8191, _e += ft >>> 5 | a, oe = 0, Oe = oe, Oe += de * Fe, Oe += ve * (5 * ct), Oe += Y * (5 * at), Oe += B * (5 * We), Oe += O * (5 * dt), oe = Oe >>> 13, Oe &= 8191, Oe += V * (5 * ht), Oe += j * (5 * Xe), Oe += U * (5 * w), Oe += L * (5 * ze), Oe += _e * (5 * qe), oe += Oe >>> 13, Oe &= 8191, Ne = oe, Ne += de * qe, Ne += ve * Fe, Ne += Y * (5 * ct), Ne += B * (5 * at), Ne += O * (5 * We), oe = Ne >>> 13, Ne &= 8191, Ne += V * (5 * dt), Ne += j * (5 * ht), Ne += U * (5 * Xe), Ne += L * (5 * w), Ne += _e * (5 * ze), oe += Ne >>> 13, Ne &= 8191, He = oe, He += de * ze, He += ve * qe, He += Y * Fe, He += B * (5 * ct), He += O * (5 * at), oe = He >>> 13, He &= 8191, He += V * (5 * We), He += j * (5 * dt), He += U * (5 * ht), He += L * (5 * Xe), He += _e * (5 * w), oe += He >>> 13, He &= 8191, Me = oe, Me += de * w, Me += ve * ze, Me += Y * qe, Me += B * Fe, Me += O * (5 * ct), oe = Me >>> 13, Me &= 8191, Me += V * (5 * at), Me += j * (5 * We), Me += U * (5 * dt), Me += L * (5 * ht), Me += _e * (5 * Xe), oe += Me >>> 13, Me &= 8191, Pe = oe, Pe += de * Xe, Pe += ve * w, Pe += Y * ze, Pe += B * qe, Pe += O * Fe, oe = Pe >>> 13, Pe &= 8191, Pe += V * (5 * ct), Pe += j * (5 * at), Pe += U * (5 * We), Pe += L * (5 * dt), Pe += _e * (5 * ht), oe += Pe >>> 13, Pe &= 8191, Ue = oe, Ue += de * ht, Ue += ve * Xe, Ue += Y * w, Ue += B * ze, Ue += O * qe, oe = Ue >>> 13, Ue &= 8191, Ue += V * Fe, Ue += j * (5 * ct), Ue += U * (5 * at), Ue += L * (5 * We), Ue += _e * (5 * dt), oe += Ue >>> 13, Ue &= 8191, je = oe, je += de * dt, je += ve * ht, je += Y * Xe, je += B * w, je += O * ze, oe = je >>> 13, je &= 8191, je += V * qe, je += j * Fe, je += U * (5 * ct), je += L * (5 * at), je += _e * (5 * We), oe += je >>> 13, je &= 8191, he = oe, he += de * We, he += ve * dt, he += Y * ht, he += B * Xe, he += O * w, oe = he >>> 13, he &= 8191, he += V * ze, he += j * qe, he += U * Fe, he += L * (5 * ct), he += _e * (5 * at), oe += he >>> 13, he &= 8191, Ae = oe, Ae += de * at, Ae += ve * We, Ae += Y * dt, Ae += B * ht, Ae += O * Xe, oe = Ae >>> 13, Ae &= 8191, Ae += V * w, Ae += j * ze, Ae += U * qe, Ae += L * Fe, Ae += _e * (5 * ct), oe += Ae >>> 13, Ae &= 8191, te = oe, te += de * ct, te += ve * at, te += Y * We, te += B * dt, te += O * ht, oe = te >>> 13, te &= 8191, te += V * Xe, te += j * w, te += U * ze, te += L * qe, te += _e * Fe, oe += te >>> 13, te &= 8191, oe = (oe << 2) + oe | 0, oe = oe + Oe | 0, Oe = oe & 8191, oe = oe >>> 13, Ne += oe, de = Oe, ve = Ne, Y = He, B = Me, O = Pe, V = Ue, j = je, U = he, L = Ae, _e = te, p += 16, d -= 16;
|
|
13490
13490
|
this.h[0] = de, this.h[1] = ve, this.h[2] = Y, this.h[3] = B, this.h[4] = O, this.h[5] = V, this.h[6] = j, this.h[7] = U, this.h[8] = L, this.h[9] = _e;
|
|
13491
|
-
},
|
|
13491
|
+
}, ue.prototype.finish = function(l, p) {
|
|
13492
13492
|
var d = new Uint16Array(10), a, g, S, E;
|
|
13493
13493
|
if (this.leftover) {
|
|
13494
13494
|
for (E = this.leftover, this.buffer[E++] = 1; E < 16; E++) this.buffer[E] = 0;
|
|
@@ -13503,7 +13503,7 @@ const D1 = {}, $1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13503
13503
|
for (this.h[0] = (this.h[0] | this.h[1] << 13) & 65535, this.h[1] = (this.h[1] >>> 3 | this.h[2] << 10) & 65535, this.h[2] = (this.h[2] >>> 6 | this.h[3] << 7) & 65535, this.h[3] = (this.h[3] >>> 9 | this.h[4] << 4) & 65535, this.h[4] = (this.h[4] >>> 12 | this.h[5] << 1 | this.h[6] << 14) & 65535, this.h[5] = (this.h[6] >>> 2 | this.h[7] << 11) & 65535, this.h[6] = (this.h[7] >>> 5 | this.h[8] << 8) & 65535, this.h[7] = (this.h[8] >>> 8 | this.h[9] << 5) & 65535, S = this.h[0] + this.pad[0], this.h[0] = S & 65535, E = 1; E < 8; E++)
|
|
13504
13504
|
S = (this.h[E] + this.pad[E] | 0) + (S >>> 16) | 0, this.h[E] = S & 65535;
|
|
13505
13505
|
l[p + 0] = this.h[0] >>> 0 & 255, l[p + 1] = this.h[0] >>> 8 & 255, l[p + 2] = this.h[1] >>> 0 & 255, l[p + 3] = this.h[1] >>> 8 & 255, l[p + 4] = this.h[2] >>> 0 & 255, l[p + 5] = this.h[2] >>> 8 & 255, l[p + 6] = this.h[3] >>> 0 & 255, l[p + 7] = this.h[3] >>> 8 & 255, l[p + 8] = this.h[4] >>> 0 & 255, l[p + 9] = this.h[4] >>> 8 & 255, l[p + 10] = this.h[5] >>> 0 & 255, l[p + 11] = this.h[5] >>> 8 & 255, l[p + 12] = this.h[6] >>> 0 & 255, l[p + 13] = this.h[6] >>> 8 & 255, l[p + 14] = this.h[7] >>> 0 & 255, l[p + 15] = this.h[7] >>> 8 & 255;
|
|
13506
|
-
},
|
|
13506
|
+
}, ue.prototype.update = function(l, p, d) {
|
|
13507
13507
|
var a, g;
|
|
13508
13508
|
if (this.leftover) {
|
|
13509
13509
|
for (g = 16 - this.leftover, g > d && (g = d), a = 0; a < g; a++)
|
|
@@ -13518,18 +13518,18 @@ const D1 = {}, $1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13518
13518
|
this.leftover += d;
|
|
13519
13519
|
}
|
|
13520
13520
|
};
|
|
13521
|
-
function
|
|
13522
|
-
var E = new
|
|
13521
|
+
function fe(l, p, d, a, g, S) {
|
|
13522
|
+
var E = new ue(S);
|
|
13523
13523
|
return E.update(d, a, g), E.finish(l, p), 0;
|
|
13524
13524
|
}
|
|
13525
13525
|
function ye(l, p, d, a, g, S) {
|
|
13526
13526
|
var E = new Uint8Array(16);
|
|
13527
|
-
return
|
|
13527
|
+
return fe(E, 0, d, a, g, S), k(l, p, E, 0);
|
|
13528
13528
|
}
|
|
13529
13529
|
function xe(l, p, d, a, g) {
|
|
13530
13530
|
var S;
|
|
13531
13531
|
if (d < 32) return -1;
|
|
13532
|
-
for (pt(l, 0, p, 0, d, a, g),
|
|
13532
|
+
for (pt(l, 0, p, 0, d, a, g), fe(l, 16, l, 32, d - 32, l), S = 0; S < 16; S++) l[S] = 0;
|
|
13533
13533
|
return 0;
|
|
13534
13534
|
}
|
|
13535
13535
|
function Re(l, p, d, a, g) {
|
|
@@ -13571,7 +13571,7 @@ const D1 = {}, $1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13571
13571
|
var p = new Uint8Array(32);
|
|
13572
13572
|
return mt(p, l), p[0] & 1;
|
|
13573
13573
|
}
|
|
13574
|
-
function
|
|
13574
|
+
function ae(l, p) {
|
|
13575
13575
|
var d;
|
|
13576
13576
|
for (d = 0; d < 16; d++) l[d] = p[2 * d] + (p[2 * d + 1] << 8);
|
|
13577
13577
|
l[15] &= 32767;
|
|
@@ -13583,8 +13583,8 @@ const D1 = {}, $1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13583
13583
|
for (var a = 0; a < 16; a++) l[a] = p[a] - d[a];
|
|
13584
13584
|
}
|
|
13585
13585
|
function Q(l, p, d) {
|
|
13586
|
-
var a, g, S = 0, E = 0, R = 0, G = 0, we = 0, J = 0, ft = 0,
|
|
13587
|
-
a = p[0], S += a * w, E += a * Xe, R += a * ht, G += a * dt, we += a * We, J += a * at, ft += a * ct,
|
|
13586
|
+
var a, g, S = 0, E = 0, R = 0, G = 0, we = 0, J = 0, ft = 0, oe = 0, Oe = 0, Ne = 0, He = 0, Me = 0, Pe = 0, Ue = 0, je = 0, he = 0, Ae = 0, te = 0, de = 0, ve = 0, Y = 0, B = 0, O = 0, V = 0, j = 0, U = 0, L = 0, _e = 0, Fe = 0, qe = 0, ze = 0, w = d[0], Xe = d[1], ht = d[2], dt = d[3], We = d[4], at = d[5], ct = d[6], $t = d[7], xt = d[8], Nt = d[9], Pt = d[10], jt = d[11], Lt = d[12], Qt = d[13], er = d[14], tr = d[15];
|
|
13587
|
+
a = p[0], S += a * w, E += a * Xe, R += a * ht, G += a * dt, we += a * We, J += a * at, ft += a * ct, oe += a * $t, Oe += a * xt, Ne += a * Nt, He += a * Pt, Me += a * jt, Pe += a * Lt, Ue += a * Qt, je += a * er, he += a * tr, a = p[1], E += a * w, R += a * Xe, G += a * ht, we += a * dt, J += a * We, ft += a * at, oe += a * ct, Oe += a * $t, Ne += a * xt, He += a * Nt, Me += a * Pt, Pe += a * jt, Ue += a * Lt, je += a * Qt, he += a * er, Ae += a * tr, a = p[2], R += a * w, G += a * Xe, we += a * ht, J += a * dt, ft += a * We, oe += a * at, Oe += a * ct, Ne += a * $t, He += a * xt, Me += a * Nt, Pe += a * Pt, Ue += a * jt, je += a * Lt, he += a * Qt, Ae += a * er, te += a * tr, a = p[3], G += a * w, we += a * Xe, J += a * ht, ft += a * dt, oe += a * We, Oe += a * at, Ne += a * ct, He += a * $t, Me += a * xt, Pe += a * Nt, Ue += a * Pt, je += a * jt, he += a * Lt, Ae += a * Qt, te += a * er, de += a * tr, a = p[4], we += a * w, J += a * Xe, ft += a * ht, oe += a * dt, Oe += a * We, Ne += a * at, He += a * ct, Me += a * $t, Pe += a * xt, Ue += a * Nt, je += a * Pt, he += a * jt, Ae += a * Lt, te += a * Qt, de += a * er, ve += a * tr, a = p[5], J += a * w, ft += a * Xe, oe += a * ht, Oe += a * dt, Ne += a * We, He += a * at, Me += a * ct, Pe += a * $t, Ue += a * xt, je += a * Nt, he += a * Pt, Ae += a * jt, te += a * Lt, de += a * Qt, ve += a * er, Y += a * tr, a = p[6], ft += a * w, oe += a * Xe, Oe += a * ht, Ne += a * dt, He += a * We, Me += a * at, Pe += a * ct, Ue += a * $t, je += a * xt, he += a * Nt, Ae += a * Pt, te += a * jt, de += a * Lt, ve += a * Qt, Y += a * er, B += a * tr, a = p[7], oe += a * w, Oe += a * Xe, Ne += a * ht, He += a * dt, Me += a * We, Pe += a * at, Ue += a * ct, je += a * $t, he += a * xt, Ae += a * Nt, te += a * Pt, de += a * jt, ve += a * Lt, Y += a * Qt, B += a * er, O += a * tr, a = p[8], Oe += a * w, Ne += a * Xe, He += a * ht, Me += a * dt, Pe += a * We, Ue += a * at, je += a * ct, he += a * $t, Ae += a * xt, te += a * Nt, de += a * Pt, ve += a * jt, Y += a * Lt, B += a * Qt, O += a * er, V += a * tr, a = p[9], Ne += a * w, He += a * Xe, Me += a * ht, Pe += a * dt, Ue += a * We, je += a * at, he += a * ct, Ae += a * $t, te += a * xt, de += a * Nt, ve += a * Pt, Y += a * jt, B += a * Lt, O += a * Qt, V += a * er, j += a * tr, a = p[10], He += a * w, Me += a * Xe, Pe += a * ht, Ue += a * dt, je += a * We, he += a * at, Ae += a * ct, te += a * $t, de += a * xt, ve += a * Nt, Y += a * Pt, B += a * jt, O += a * Lt, V += a * Qt, j += a * er, U += a * tr, a = p[11], Me += a * w, Pe += a * Xe, Ue += a * ht, je += a * dt, he += a * We, Ae += a * at, te += a * ct, de += a * $t, ve += a * xt, Y += a * Nt, B += a * Pt, O += a * jt, V += a * Lt, j += a * Qt, U += a * er, L += a * tr, a = p[12], Pe += a * w, Ue += a * Xe, je += a * ht, he += a * dt, Ae += a * We, te += a * at, de += a * ct, ve += a * $t, Y += a * xt, B += a * Nt, O += a * Pt, V += a * jt, j += a * Lt, U += a * Qt, L += a * er, _e += a * tr, a = p[13], Ue += a * w, je += a * Xe, he += a * ht, Ae += a * dt, te += a * We, de += a * at, ve += a * ct, Y += a * $t, B += a * xt, O += a * Nt, V += a * Pt, j += a * jt, U += a * Lt, L += a * Qt, _e += a * er, Fe += a * tr, a = p[14], je += a * w, he += a * Xe, Ae += a * ht, te += a * dt, de += a * We, ve += a * at, Y += a * ct, B += a * $t, O += a * xt, V += a * Nt, j += a * Pt, U += a * jt, L += a * Lt, _e += a * Qt, Fe += a * er, qe += a * tr, a = p[15], he += a * w, Ae += a * Xe, te += a * ht, de += a * dt, ve += a * We, Y += a * at, B += a * ct, O += a * $t, V += a * xt, j += a * Nt, U += a * Pt, L += a * jt, _e += a * Lt, Fe += a * Qt, qe += a * er, ze += a * tr, S += 38 * Ae, E += 38 * te, R += 38 * de, G += 38 * ve, we += 38 * Y, J += 38 * B, ft += 38 * O, oe += 38 * V, Oe += 38 * j, Ne += 38 * U, He += 38 * L, Me += 38 * _e, Pe += 38 * Fe, Ue += 38 * qe, je += 38 * ze, g = 1, a = S + g + 65535, g = Math.floor(a / 65536), S = a - g * 65536, a = E + g + 65535, g = Math.floor(a / 65536), E = a - g * 65536, a = R + g + 65535, g = Math.floor(a / 65536), R = a - g * 65536, a = G + g + 65535, g = Math.floor(a / 65536), G = a - g * 65536, a = we + g + 65535, g = Math.floor(a / 65536), we = a - g * 65536, a = J + g + 65535, g = Math.floor(a / 65536), J = a - g * 65536, a = ft + g + 65535, g = Math.floor(a / 65536), ft = a - g * 65536, a = oe + g + 65535, g = Math.floor(a / 65536), oe = a - g * 65536, a = Oe + g + 65535, g = Math.floor(a / 65536), Oe = a - g * 65536, a = Ne + g + 65535, g = Math.floor(a / 65536), Ne = a - g * 65536, a = He + g + 65535, g = Math.floor(a / 65536), He = a - g * 65536, a = Me + g + 65535, g = Math.floor(a / 65536), Me = a - g * 65536, a = Pe + g + 65535, g = Math.floor(a / 65536), Pe = a - g * 65536, a = Ue + g + 65535, g = Math.floor(a / 65536), Ue = a - g * 65536, a = je + g + 65535, g = Math.floor(a / 65536), je = a - g * 65536, a = he + g + 65535, g = Math.floor(a / 65536), he = a - g * 65536, S += g - 1 + 37 * (g - 1), g = 1, a = S + g + 65535, g = Math.floor(a / 65536), S = a - g * 65536, a = E + g + 65535, g = Math.floor(a / 65536), E = a - g * 65536, a = R + g + 65535, g = Math.floor(a / 65536), R = a - g * 65536, a = G + g + 65535, g = Math.floor(a / 65536), G = a - g * 65536, a = we + g + 65535, g = Math.floor(a / 65536), we = a - g * 65536, a = J + g + 65535, g = Math.floor(a / 65536), J = a - g * 65536, a = ft + g + 65535, g = Math.floor(a / 65536), ft = a - g * 65536, a = oe + g + 65535, g = Math.floor(a / 65536), oe = a - g * 65536, a = Oe + g + 65535, g = Math.floor(a / 65536), Oe = a - g * 65536, a = Ne + g + 65535, g = Math.floor(a / 65536), Ne = a - g * 65536, a = He + g + 65535, g = Math.floor(a / 65536), He = a - g * 65536, a = Me + g + 65535, g = Math.floor(a / 65536), Me = a - g * 65536, a = Pe + g + 65535, g = Math.floor(a / 65536), Pe = a - g * 65536, a = Ue + g + 65535, g = Math.floor(a / 65536), Ue = a - g * 65536, a = je + g + 65535, g = Math.floor(a / 65536), je = a - g * 65536, a = he + g + 65535, g = Math.floor(a / 65536), he = a - g * 65536, S += g - 1 + 37 * (g - 1), l[0] = S, l[1] = E, l[2] = R, l[3] = G, l[4] = we, l[5] = J, l[6] = ft, l[7] = oe, l[8] = Oe, l[9] = Ne, l[10] = He, l[11] = Me, l[12] = Pe, l[13] = Ue, l[14] = je, l[15] = he;
|
|
13588
13588
|
}
|
|
13589
13589
|
function gt(l, p) {
|
|
13590
13590
|
Q(l, p, p);
|
|
@@ -13604,12 +13604,12 @@ const D1 = {}, $1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13604
13604
|
for (a = 0; a < 16; a++) l[a] = d[a];
|
|
13605
13605
|
}
|
|
13606
13606
|
function Ci(l, p, d) {
|
|
13607
|
-
var a = new Uint8Array(32), g = new Float64Array(80), S, E, R = t(), G = t(), we = t(), J = t(), ft = t(),
|
|
13607
|
+
var a = new Uint8Array(32), g = new Float64Array(80), S, E, R = t(), G = t(), we = t(), J = t(), ft = t(), oe = t();
|
|
13608
13608
|
for (E = 0; E < 31; E++) a[E] = p[E];
|
|
13609
|
-
for (a[31] = p[31] & 127 | 64, a[0] &= 248,
|
|
13609
|
+
for (a[31] = p[31] & 127 | 64, a[0] &= 248, ae(g, d), E = 0; E < 16; E++)
|
|
13610
13610
|
G[E] = g[E], J[E] = R[E] = we[E] = 0;
|
|
13611
13611
|
for (R[0] = J[0] = 1, E = 254; E >= 0; --E)
|
|
13612
|
-
S = a[E >>> 3] >>> (E & 7) & 1, Ee(R, G, S), Ee(we, J, S), ot(ft, R, we), wt(R, R, we), ot(we, G, J), wt(G, G, J), gt(J, ft), gt(
|
|
13612
|
+
S = a[E >>> 3] >>> (E & 7) & 1, Ee(R, G, S), Ee(we, J, S), ot(ft, R, we), wt(R, R, we), ot(we, G, J), wt(G, G, J), gt(J, ft), gt(oe, R), Q(R, we, R), Q(we, G, ft), ot(ft, R, we), wt(R, R, we), gt(G, R), wt(we, J, oe), Q(R, we, u), ot(R, R, J), Q(we, we, R), Q(R, J, oe), Q(J, G, g), gt(G, ft), Ee(R, G, S), Ee(we, J, S);
|
|
13613
13613
|
for (E = 0; E < 16; E++)
|
|
13614
13614
|
g[E + 16] = R[E], g[E + 32] = we[E], g[E + 48] = G[E], g[E + 64] = J[E];
|
|
13615
13615
|
var Oe = g.subarray(32), Ne = g.subarray(16);
|
|
@@ -13797,11 +13797,11 @@ const D1 = {}, $1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13797
13797
|
1246189591
|
|
13798
13798
|
];
|
|
13799
13799
|
function gs(l, p, d, a) {
|
|
13800
|
-
for (var g = new Int32Array(16), S = new Int32Array(16), E, R, G, we, J, ft,
|
|
13800
|
+
for (var g = new Int32Array(16), S = new Int32Array(16), E, R, G, we, J, ft, oe, Oe, Ne, He, Me, Pe, Ue, je, he, Ae, te, de, ve, Y, B, O, V, j, U, L, _e = l[0], Fe = l[1], qe = l[2], ze = l[3], w = l[4], Xe = l[5], ht = l[6], dt = l[7], We = p[0], at = p[1], ct = p[2], $t = p[3], xt = p[4], Nt = p[5], Pt = p[6], jt = p[7], Lt = 0; a >= 128; ) {
|
|
13801
13801
|
for (ve = 0; ve < 16; ve++)
|
|
13802
13802
|
Y = 8 * ve + Lt, g[ve] = d[Y + 0] << 24 | d[Y + 1] << 16 | d[Y + 2] << 8 | d[Y + 3], S[ve] = d[Y + 4] << 24 | d[Y + 5] << 16 | d[Y + 6] << 8 | d[Y + 7];
|
|
13803
13803
|
for (ve = 0; ve < 80; ve++)
|
|
13804
|
-
if (E = _e, R = Fe, G = qe, we = ze, J = w, ft = Xe,
|
|
13804
|
+
if (E = _e, R = Fe, G = qe, we = ze, J = w, ft = Xe, oe = ht, Oe = dt, Ne = We, He = at, Me = ct, Pe = $t, Ue = xt, je = Nt, he = Pt, Ae = jt, B = dt, O = jt, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = (w >>> 14 | xt << 18) ^ (w >>> 18 | xt << 14) ^ (xt >>> 9 | w << 23), O = (xt >>> 14 | w << 18) ^ (xt >>> 18 | w << 14) ^ (w >>> 9 | xt << 23), V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, B = w & Xe ^ ~w & ht, O = xt & Nt ^ ~xt & Pt, V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, B = ys[ve * 2], O = ys[ve * 2 + 1], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, B = g[ve % 16], O = S[ve % 16], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, te = U & 65535 | L << 16, de = V & 65535 | j << 16, B = te, O = de, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = (_e >>> 28 | We << 4) ^ (We >>> 2 | _e << 30) ^ (We >>> 7 | _e << 25), O = (We >>> 28 | _e << 4) ^ (_e >>> 2 | We << 30) ^ (_e >>> 7 | We << 25), V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, B = _e & Fe ^ _e & qe ^ Fe & qe, O = We & at ^ We & ct ^ at & ct, V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, Oe = U & 65535 | L << 16, Ae = V & 65535 | j << 16, B = we, O = Pe, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = te, O = de, V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, we = U & 65535 | L << 16, Pe = V & 65535 | j << 16, Fe = E, qe = R, ze = G, w = we, Xe = J, ht = ft, dt = oe, _e = Oe, at = Ne, ct = He, $t = Me, xt = Pe, Nt = Ue, Pt = je, jt = he, We = Ae, ve % 16 === 15)
|
|
13805
13805
|
for (Y = 0; Y < 16; Y++)
|
|
13806
13806
|
B = g[Y], O = S[Y], V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = g[(Y + 9) % 16], O = S[(Y + 9) % 16], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, te = g[(Y + 1) % 16], de = S[(Y + 1) % 16], B = (te >>> 1 | de << 31) ^ (te >>> 8 | de << 24) ^ te >>> 7, O = (de >>> 1 | te << 31) ^ (de >>> 8 | te << 24) ^ (de >>> 7 | te << 25), V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, te = g[(Y + 14) % 16], de = S[(Y + 14) % 16], B = (te >>> 19 | de << 13) ^ (de >>> 29 | te << 3) ^ te >>> 6, O = (de >>> 19 | te << 13) ^ (te >>> 29 | de << 3) ^ (de >>> 6 | te << 26), V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, g[Y] = U & 65535 | L << 16, S[Y] = V & 65535 | j << 16;
|
|
13807
13807
|
B = _e, O = We, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = l[0], O = p[0], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, l[0] = _e = U & 65535 | L << 16, p[0] = We = V & 65535 | j << 16, B = Fe, O = at, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = l[1], O = p[1], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, l[1] = Fe = U & 65535 | L << 16, p[1] = at = V & 65535 | j << 16, B = qe, O = ct, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = l[2], O = p[2], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, l[2] = qe = U & 65535 | L << 16, p[2] = ct = V & 65535 | j << 16, B = ze, O = $t, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = l[3], O = p[3], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, l[3] = ze = U & 65535 | L << 16, p[3] = $t = V & 65535 | j << 16, B = w, O = xt, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = l[4], O = p[4], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, l[4] = w = U & 65535 | L << 16, p[4] = xt = V & 65535 | j << 16, B = Xe, O = Nt, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = l[5], O = p[5], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, l[5] = Xe = U & 65535 | L << 16, p[5] = Nt = V & 65535 | j << 16, B = ht, O = Pt, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = l[6], O = p[6], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, l[6] = ht = U & 65535 | L << 16, p[6] = Pt = V & 65535 | j << 16, B = dt, O = jt, V = O & 65535, j = O >>> 16, U = B & 65535, L = B >>> 16, B = l[7], O = p[7], V += O & 65535, j += O >>> 16, U += B & 65535, L += B >>> 16, j += V >>> 16, U += j >>> 16, L += U >>> 16, l[7] = dt = U & 65535 | L << 16, p[7] = jt = V & 65535 | j << 16, Lt += 128, a -= 128;
|
|
@@ -13877,7 +13877,7 @@ const D1 = {}, $1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13877
13877
|
}
|
|
13878
13878
|
function As(l, p) {
|
|
13879
13879
|
var d = t(), a = t(), g = t(), S = t(), E = t(), R = t(), G = t();
|
|
13880
|
-
return Je(l[2], c),
|
|
13880
|
+
return Je(l[2], c), ae(l[1], p), gt(g, l[1]), Q(S, g, h), wt(g, g, l[2]), ot(S, l[2], S), gt(E, S), gt(R, E), Q(G, R, E), Q(d, G, g), Q(d, d, S), fs(d, d), Q(d, d, g), Q(d, d, S), Q(d, d, S), Q(l[0], d, S), gt(a, l[0]), Q(a, a, S), Ut(a, g) && Q(l[0], l[0], T), gt(a, l[0]), Q(a, a, S), Ut(a, g) ? -1 : (Dt(l[0]) === p[31] >> 7 && wt(l[0], o, l[0]), Q(l[3], l[0], l[1]), 0);
|
|
13881
13881
|
}
|
|
13882
13882
|
function _(l, p, d, a) {
|
|
13883
13883
|
var g, S = new Uint8Array(32), E = new Uint8Array(64), R = [t(), t(), t(), t()], G = [t(), t(), t(), t()];
|
|
@@ -13891,14 +13891,14 @@ const D1 = {}, $1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13891
13891
|
for (g = 0; g < d; g++) l[g] = p[g + 64];
|
|
13892
13892
|
return d;
|
|
13893
13893
|
}
|
|
13894
|
-
var C = 32, N = 24, K = 32, be = 16, _t = 32, Et = 32, $e = 32, Z = 32, ee = 32,
|
|
13894
|
+
var C = 32, N = 24, K = 32, be = 16, _t = 32, Et = 32, $e = 32, Z = 32, ee = 32, ce = N, ge = K, tt = be, nt = 64, bt = 32, zt = 64, Ti = 32, Ss = 64;
|
|
13895
13895
|
e.lowlevel = {
|
|
13896
13896
|
crypto_core_hsalsa20: Ze,
|
|
13897
13897
|
crypto_stream_xor: pt,
|
|
13898
13898
|
crypto_stream: yt,
|
|
13899
13899
|
crypto_stream_salsa20_xor: Be,
|
|
13900
13900
|
crypto_stream_salsa20: et,
|
|
13901
|
-
crypto_onetimeauth:
|
|
13901
|
+
crypto_onetimeauth: fe,
|
|
13902
13902
|
crypto_onetimeauth_verify: ye,
|
|
13903
13903
|
crypto_verify_16: k,
|
|
13904
13904
|
crypto_verify_32: I,
|
|
@@ -13924,7 +13924,7 @@ const D1 = {}, $1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13924
13924
|
crypto_box_PUBLICKEYBYTES: $e,
|
|
13925
13925
|
crypto_box_SECRETKEYBYTES: Z,
|
|
13926
13926
|
crypto_box_BEFORENMBYTES: ee,
|
|
13927
|
-
crypto_box_NONCEBYTES:
|
|
13927
|
+
crypto_box_NONCEBYTES: ce,
|
|
13928
13928
|
crypto_box_ZEROBYTES: ge,
|
|
13929
13929
|
crypto_box_BOXZEROBYTES: tt,
|
|
13930
13930
|
crypto_sign_BYTES: nt,
|
|
@@ -13936,7 +13936,7 @@ const D1 = {}, $1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
13936
13936
|
D: h,
|
|
13937
13937
|
L: Wr,
|
|
13938
13938
|
pack25519: mt,
|
|
13939
|
-
unpack25519:
|
|
13939
|
+
unpack25519: ae,
|
|
13940
13940
|
M: Q,
|
|
13941
13941
|
A: ot,
|
|
13942
13942
|
S: gt,
|
|
@@ -14002,7 +14002,7 @@ const D1 = {}, $1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14002
14002
|
throw new Error("bad secret key size");
|
|
14003
14003
|
var p = new Uint8Array($e);
|
|
14004
14004
|
return or(p, l), { publicKey: p, secretKey: new Uint8Array(l) };
|
|
14005
|
-
}, e.box.publicKeyLength = $e, e.box.secretKeyLength = Z, e.box.sharedKeyLength = ee, e.box.nonceLength =
|
|
14005
|
+
}, e.box.publicKeyLength = $e, e.box.secretKeyLength = Z, e.box.sharedKeyLength = ee, e.box.nonceLength = ce, e.box.overheadLength = e.secretbox.overheadLength, e.sign = function(l, p) {
|
|
14006
14006
|
if (xr(l, p), p.length !== zt)
|
|
14007
14007
|
throw new Error("bad secret key size");
|
|
14008
14008
|
var d = new Uint8Array(nt + l.length);
|
|
@@ -15064,23 +15064,22 @@ async function Py(r, e) {
|
|
|
15064
15064
|
}
|
|
15065
15065
|
throw new Error("Document processing timed out");
|
|
15066
15066
|
}
|
|
15067
|
-
async function jy(r, e) {
|
|
15068
|
-
const
|
|
15069
|
-
file:
|
|
15070
|
-
filename:
|
|
15071
|
-
content_type:
|
|
15072
|
-
model:
|
|
15073
|
-
...
|
|
15074
|
-
...
|
|
15075
|
-
...
|
|
15076
|
-
...(e == null ? void 0 : e.temperature) !== void 0 && { temperature: e.temperature }
|
|
15067
|
+
async function jy(r, e, t, n, i, s) {
|
|
15068
|
+
const o = await r.arrayBuffer(), c = new Uint8Array(o), u = _r(c), h = r instanceof File ? r.name : "audio", v = r.type || "audio/mpeg", b = {
|
|
15069
|
+
file: u,
|
|
15070
|
+
filename: h,
|
|
15071
|
+
content_type: v,
|
|
15072
|
+
model: e || "whisper-large-v3",
|
|
15073
|
+
...t && { language: t },
|
|
15074
|
+
...n && { prompt: n },
|
|
15075
|
+
...i !== void 0 && { temperature: i }
|
|
15077
15076
|
};
|
|
15078
15077
|
return gy(
|
|
15079
15078
|
`${De}/v1/audio/transcriptions`,
|
|
15080
15079
|
"POST",
|
|
15081
|
-
|
|
15080
|
+
b,
|
|
15082
15081
|
"Failed to transcribe audio",
|
|
15083
|
-
|
|
15082
|
+
s
|
|
15084
15083
|
);
|
|
15085
15084
|
}
|
|
15086
15085
|
function bw(r) {
|
|
@@ -15463,14 +15462,14 @@ const Uy = _d({
|
|
|
15463
15462
|
generateThirdPartyToken: async () => ({ token: "" }),
|
|
15464
15463
|
encryptData: ky,
|
|
15465
15464
|
decryptData: Cy,
|
|
15466
|
-
fetchModels:
|
|
15465
|
+
fetchModels: By,
|
|
15467
15466
|
uploadDocument: Ef,
|
|
15468
15467
|
checkDocumentStatus: If,
|
|
15469
15468
|
uploadDocumentWithPolling: Py,
|
|
15470
15469
|
createApiKey: Oy,
|
|
15471
15470
|
listApiKeys: Ty,
|
|
15472
15471
|
deleteApiKey: Ny,
|
|
15473
|
-
transcribeAudio:
|
|
15472
|
+
transcribeAudio: jy
|
|
15474
15473
|
});
|
|
15475
15474
|
function Tx({
|
|
15476
15475
|
children: r,
|
|
@@ -15481,17 +15480,17 @@ function Tx({
|
|
|
15481
15480
|
const [i, s] = Do({
|
|
15482
15481
|
loading: !0,
|
|
15483
15482
|
user: void 0
|
|
15484
|
-
}), [o, c] = Do(), [u, h] = Do(), v = (
|
|
15485
|
-
if (
|
|
15483
|
+
}), [o, c] = Do(), [u, h] = Do(), v = (ue) => {
|
|
15484
|
+
if (ue === void 0) {
|
|
15486
15485
|
c(void 0);
|
|
15487
15486
|
return;
|
|
15488
15487
|
}
|
|
15489
|
-
const
|
|
15490
|
-
if (!/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(
|
|
15488
|
+
const fe = ue.trim();
|
|
15489
|
+
if (!/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(fe)) {
|
|
15491
15490
|
console.warn("setApiKey: provided key does not look like a UUID; clearing apiKey"), c(void 0);
|
|
15492
15491
|
return;
|
|
15493
15492
|
}
|
|
15494
|
-
c(
|
|
15493
|
+
c(fe);
|
|
15495
15494
|
};
|
|
15496
15495
|
Os(() => {
|
|
15497
15496
|
if (!e || e.trim() === "")
|
|
@@ -15502,16 +15501,16 @@ function Tx({
|
|
|
15502
15501
|
throw new Error(
|
|
15503
15502
|
"OpenSecretProvider requires a non-empty clientId. Please provide a valid project UUID."
|
|
15504
15503
|
);
|
|
15505
|
-
Y1(e), Promise.resolve().then(() => yy).then(({ apiConfig:
|
|
15506
|
-
const
|
|
15507
|
-
|
|
15504
|
+
Y1(e), Promise.resolve().then(() => yy).then(({ apiConfig: ue }) => {
|
|
15505
|
+
const fe = ue.platformApiUrl || "";
|
|
15506
|
+
ue.configure(e, fe);
|
|
15508
15507
|
});
|
|
15509
15508
|
}, [e, t]), Os(() => {
|
|
15510
15509
|
h(e ? () => bw(o ? { apiKey: o } : void 0) : void 0);
|
|
15511
15510
|
}, [e, o]);
|
|
15512
15511
|
async function b() {
|
|
15513
|
-
const
|
|
15514
|
-
if (!
|
|
15512
|
+
const ue = window.localStorage.getItem("access_token"), fe = window.localStorage.getItem("refresh_token");
|
|
15513
|
+
if (!ue || !fe) {
|
|
15515
15514
|
s({
|
|
15516
15515
|
loading: !1,
|
|
15517
15516
|
user: void 0
|
|
@@ -15534,20 +15533,20 @@ function Tx({
|
|
|
15534
15533
|
Os(() => {
|
|
15535
15534
|
b();
|
|
15536
15535
|
}, []);
|
|
15537
|
-
async function H(
|
|
15536
|
+
async function H(ue, fe) {
|
|
15538
15537
|
console.log("Signing in");
|
|
15539
15538
|
try {
|
|
15540
|
-
const { access_token: ye, refresh_token: xe } = await X1(
|
|
15539
|
+
const { access_token: ye, refresh_token: xe } = await X1(ue, fe, t);
|
|
15541
15540
|
window.localStorage.setItem("access_token", ye), window.localStorage.setItem("refresh_token", xe), v(void 0), await b();
|
|
15542
15541
|
} catch (ye) {
|
|
15543
15542
|
throw console.error(ye), ye;
|
|
15544
15543
|
}
|
|
15545
15544
|
}
|
|
15546
|
-
async function T(
|
|
15545
|
+
async function T(ue, fe, ye, xe) {
|
|
15547
15546
|
try {
|
|
15548
15547
|
const { access_token: Re, refresh_token: Je } = await ew(
|
|
15549
|
-
|
|
15550
|
-
|
|
15548
|
+
ue,
|
|
15549
|
+
fe,
|
|
15551
15550
|
ye,
|
|
15552
15551
|
t,
|
|
15553
15552
|
xe || null
|
|
@@ -15557,20 +15556,20 @@ function Tx({
|
|
|
15557
15556
|
throw console.error(Re), Re;
|
|
15558
15557
|
}
|
|
15559
15558
|
}
|
|
15560
|
-
async function m(
|
|
15559
|
+
async function m(ue, fe) {
|
|
15561
15560
|
console.log("Signing in Guest");
|
|
15562
15561
|
try {
|
|
15563
|
-
const { access_token: ye, refresh_token: xe } = await Q1(
|
|
15562
|
+
const { access_token: ye, refresh_token: xe } = await Q1(ue, fe, t);
|
|
15564
15563
|
window.localStorage.setItem("access_token", ye), window.localStorage.setItem("refresh_token", xe), v(void 0), await b();
|
|
15565
15564
|
} catch (ye) {
|
|
15566
15565
|
throw console.error(ye), ye;
|
|
15567
15566
|
}
|
|
15568
15567
|
}
|
|
15569
|
-
async function A(
|
|
15568
|
+
async function A(ue, fe) {
|
|
15570
15569
|
try {
|
|
15571
15570
|
const { access_token: ye, refresh_token: xe, id: Re } = await tw(
|
|
15572
|
-
|
|
15573
|
-
|
|
15571
|
+
ue,
|
|
15572
|
+
fe,
|
|
15574
15573
|
t
|
|
15575
15574
|
);
|
|
15576
15575
|
return window.localStorage.setItem("access_token", ye), window.localStorage.setItem("refresh_token", xe), v(void 0), await b(), { access_token: ye, refresh_token: xe, id: Re };
|
|
@@ -15578,20 +15577,20 @@ function Tx({
|
|
|
15578
15577
|
throw console.error(ye), ye;
|
|
15579
15578
|
}
|
|
15580
15579
|
}
|
|
15581
|
-
async function k(
|
|
15580
|
+
async function k(ue, fe, ye) {
|
|
15582
15581
|
try {
|
|
15583
|
-
await yw(
|
|
15582
|
+
await yw(ue, fe, ye), await b();
|
|
15584
15583
|
} catch (xe) {
|
|
15585
15584
|
throw console.error(xe), xe;
|
|
15586
15585
|
}
|
|
15587
15586
|
}
|
|
15588
15587
|
async function I() {
|
|
15589
|
-
const
|
|
15590
|
-
if (
|
|
15588
|
+
const ue = window.localStorage.getItem("refresh_token");
|
|
15589
|
+
if (ue)
|
|
15591
15590
|
try {
|
|
15592
|
-
await nw(
|
|
15593
|
-
} catch (
|
|
15594
|
-
console.error("Error during logout:",
|
|
15591
|
+
await nw(ue);
|
|
15592
|
+
} catch (fe) {
|
|
15593
|
+
console.error("Error during logout:", fe);
|
|
15595
15594
|
}
|
|
15596
15595
|
localStorage.removeItem("access_token"), localStorage.removeItem("refresh_token"), sessionStorage.removeItem("sessionKey"), sessionStorage.removeItem("sessionId"), v(void 0), s({
|
|
15597
15596
|
loading: !1,
|
|
@@ -15619,22 +15618,22 @@ function Tx({
|
|
|
15619
15618
|
requestNewVerificationEmail: Ma,
|
|
15620
15619
|
changePassword: Ay,
|
|
15621
15620
|
refreshAccessToken: Dc,
|
|
15622
|
-
requestPasswordReset: (
|
|
15623
|
-
confirmPasswordReset: (
|
|
15621
|
+
requestPasswordReset: (ue, fe) => ow(ue, fe, t),
|
|
15622
|
+
confirmPasswordReset: (ue, fe, ye, xe) => aw(ue, fe, ye, xe, t),
|
|
15624
15623
|
requestAccountDeletion: vw,
|
|
15625
15624
|
confirmAccountDeletion: mw,
|
|
15626
|
-
initiateGitHubAuth: async (
|
|
15625
|
+
initiateGitHubAuth: async (ue) => {
|
|
15627
15626
|
try {
|
|
15628
|
-
return await cw(t,
|
|
15629
|
-
} catch (
|
|
15630
|
-
throw console.error("Failed to initiate GitHub auth:",
|
|
15627
|
+
return await cw(t, ue);
|
|
15628
|
+
} catch (fe) {
|
|
15629
|
+
throw console.error("Failed to initiate GitHub auth:", fe), fe;
|
|
15631
15630
|
}
|
|
15632
15631
|
},
|
|
15633
|
-
handleGitHubCallback: async (
|
|
15632
|
+
handleGitHubCallback: async (ue, fe, ye) => {
|
|
15634
15633
|
try {
|
|
15635
15634
|
const { access_token: xe, refresh_token: Re } = await lw(
|
|
15636
|
-
|
|
15637
|
-
|
|
15635
|
+
ue,
|
|
15636
|
+
fe,
|
|
15638
15637
|
ye
|
|
15639
15638
|
);
|
|
15640
15639
|
window.localStorage.setItem("access_token", xe), window.localStorage.setItem("refresh_token", Re), v(void 0), await b();
|
|
@@ -15642,18 +15641,18 @@ function Tx({
|
|
|
15642
15641
|
throw console.error("GitHub callback error:", xe), xe;
|
|
15643
15642
|
}
|
|
15644
15643
|
},
|
|
15645
|
-
initiateGoogleAuth: async (
|
|
15644
|
+
initiateGoogleAuth: async (ue) => {
|
|
15646
15645
|
try {
|
|
15647
|
-
return await uw(t,
|
|
15648
|
-
} catch (
|
|
15649
|
-
throw console.error("Failed to initiate Google auth:",
|
|
15646
|
+
return await uw(t, ue);
|
|
15647
|
+
} catch (fe) {
|
|
15648
|
+
throw console.error("Failed to initiate Google auth:", fe), fe;
|
|
15650
15649
|
}
|
|
15651
15650
|
},
|
|
15652
|
-
handleGoogleCallback: async (
|
|
15651
|
+
handleGoogleCallback: async (ue, fe, ye) => {
|
|
15653
15652
|
try {
|
|
15654
15653
|
const { access_token: xe, refresh_token: Re } = await fw(
|
|
15655
|
-
|
|
15656
|
-
|
|
15654
|
+
ue,
|
|
15655
|
+
fe,
|
|
15657
15656
|
ye
|
|
15658
15657
|
);
|
|
15659
15658
|
window.localStorage.setItem("access_token", xe), window.localStorage.setItem("refresh_token", Re), v(void 0), await b();
|
|
@@ -15661,18 +15660,18 @@ function Tx({
|
|
|
15661
15660
|
throw console.error("Google callback error:", xe), xe;
|
|
15662
15661
|
}
|
|
15663
15662
|
},
|
|
15664
|
-
initiateAppleAuth: async (
|
|
15663
|
+
initiateAppleAuth: async (ue) => {
|
|
15665
15664
|
try {
|
|
15666
|
-
return await hw(t,
|
|
15667
|
-
} catch (
|
|
15668
|
-
throw console.error("Failed to initiate Apple auth:",
|
|
15665
|
+
return await hw(t, ue);
|
|
15666
|
+
} catch (fe) {
|
|
15667
|
+
throw console.error("Failed to initiate Apple auth:", fe), fe;
|
|
15669
15668
|
}
|
|
15670
15669
|
},
|
|
15671
|
-
handleAppleCallback: async (
|
|
15670
|
+
handleAppleCallback: async (ue, fe, ye) => {
|
|
15672
15671
|
try {
|
|
15673
15672
|
const { access_token: xe, refresh_token: Re } = await dw(
|
|
15674
|
-
|
|
15675
|
-
|
|
15673
|
+
ue,
|
|
15674
|
+
fe,
|
|
15676
15675
|
ye
|
|
15677
15676
|
);
|
|
15678
15677
|
window.localStorage.setItem("access_token", xe), window.localStorage.setItem("refresh_token", Re), v(void 0), await b();
|
|
@@ -15680,12 +15679,12 @@ function Tx({
|
|
|
15680
15679
|
throw console.error("Apple callback error:", xe), xe;
|
|
15681
15680
|
}
|
|
15682
15681
|
},
|
|
15683
|
-
handleAppleNativeSignIn: async (
|
|
15682
|
+
handleAppleNativeSignIn: async (ue, fe) => {
|
|
15684
15683
|
try {
|
|
15685
15684
|
const { access_token: ye, refresh_token: xe } = await pw(
|
|
15686
|
-
|
|
15685
|
+
ue,
|
|
15687
15686
|
t,
|
|
15688
|
-
|
|
15687
|
+
fe
|
|
15689
15688
|
);
|
|
15690
15689
|
window.localStorage.setItem("access_token", ye), window.localStorage.setItem("refresh_token", xe), v(void 0), await b();
|
|
15691
15690
|
} catch (ye) {
|
|
@@ -15705,27 +15704,27 @@ function Tx({
|
|
|
15705
15704
|
awsRootCertDer: ts,
|
|
15706
15705
|
expectedRootCertHash: $c,
|
|
15707
15706
|
getAttestationDocument: async () => {
|
|
15708
|
-
const
|
|
15709
|
-
if (!
|
|
15707
|
+
const ue = window.crypto.randomUUID(), fe = await fetch(`${e}/attestation/${ue}`);
|
|
15708
|
+
if (!fe.ok)
|
|
15710
15709
|
throw new Error("Failed to fetch attestation document");
|
|
15711
|
-
const ye = await
|
|
15710
|
+
const ye = await fe.json(), xe = await Si(
|
|
15712
15711
|
ye.attestation_document,
|
|
15713
15712
|
ts,
|
|
15714
|
-
|
|
15713
|
+
ue
|
|
15715
15714
|
);
|
|
15716
15715
|
return rs(xe, xe.cabundle, n);
|
|
15717
15716
|
},
|
|
15718
15717
|
generateThirdPartyToken: gw,
|
|
15719
15718
|
encryptData: ky,
|
|
15720
15719
|
decryptData: Cy,
|
|
15721
|
-
fetchModels:
|
|
15720
|
+
fetchModels: By,
|
|
15722
15721
|
uploadDocument: Ef,
|
|
15723
15722
|
checkDocumentStatus: If,
|
|
15724
15723
|
uploadDocumentWithPolling: Py,
|
|
15725
15724
|
createApiKey: Oy,
|
|
15726
15725
|
listApiKeys: Ty,
|
|
15727
15726
|
deleteApiKey: Ny,
|
|
15728
|
-
transcribeAudio:
|
|
15727
|
+
transcribeAudio: jy
|
|
15729
15728
|
};
|
|
15730
15729
|
return /* @__PURE__ */ Sd(Uy.Provider, { value: pt, children: r });
|
|
15731
15730
|
}
|