@kopjra/pdf-sentinel 1.11.1 → 1.11.2
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.
|
@@ -92,12 +92,12 @@ function y0(d) {
|
|
|
92
92
|
for (let C = 0; C < S; C++) {
|
|
93
93
|
const ln = Ct(
|
|
94
94
|
this.pdfiumModule.pdfium,
|
|
95
|
-
(Y,
|
|
95
|
+
(Y, fn) => this.pdfiumModule.FPDFAnnot_GetOptionLabel(
|
|
96
96
|
h,
|
|
97
97
|
u,
|
|
98
98
|
C,
|
|
99
99
|
Y,
|
|
100
|
-
|
|
100
|
+
fn
|
|
101
101
|
),
|
|
102
102
|
this.pdfiumModule.pdfium.UTF16ToString
|
|
103
103
|
), H = this.pdfiumModule.FPDFAnnot_IsOptionSelected(
|
|
@@ -414,7 +414,9 @@ async function* ss(d, h, u = {}, E = [], w, R = !1) {
|
|
|
414
414
|
let T = 0;
|
|
415
415
|
for (const L of F) {
|
|
416
416
|
if (L.type === Ye.WIDGET) {
|
|
417
|
-
const S = $0(L.field.type) || "text", C = L.rect, ln = C.origin.x, H = C.origin.y, Y = C.size.width,
|
|
417
|
+
const S = $0(L.field.type) || "text", C = L.rect, ln = C.origin.x, H = C.origin.y, Y = C.size.width, fn = C.size.height, D = L.field.name ? String(L.field.name) : `${A}-${T}`;
|
|
418
|
+
let M = !!(L.field.flag & Zf.READONLY) || !!((x = u[D]) != null && x.readonly), rn = !!(L.field.flag & Zf.REQUIRED);
|
|
419
|
+
const J = S === "radiobutton" && L.field.exportValue ? String(L.field.exportValue) : void 0;
|
|
418
420
|
let en;
|
|
419
421
|
if (S === "signature") {
|
|
420
422
|
if (!w && !R) {
|
|
@@ -428,18 +430,16 @@ async function* ss(d, h, u = {}, E = [], w, R = !1) {
|
|
|
428
430
|
T++;
|
|
429
431
|
continue;
|
|
430
432
|
}
|
|
431
|
-
} else
|
|
432
|
-
|
|
433
|
-
continue;
|
|
434
|
-
}
|
|
433
|
+
} else
|
|
434
|
+
!u[D] && !R && (M = !0, rn = !1);
|
|
435
435
|
yield {
|
|
436
436
|
field: {
|
|
437
437
|
name: D,
|
|
438
438
|
type: S,
|
|
439
439
|
pageIndex: A,
|
|
440
|
-
bbox: { x: ln, y: H, width: Y, height:
|
|
441
|
-
required:
|
|
442
|
-
readonly:
|
|
440
|
+
bbox: { x: ln, y: H, width: Y, height: fn },
|
|
441
|
+
required: rn,
|
|
442
|
+
readonly: M,
|
|
443
443
|
radioValue: J,
|
|
444
444
|
conditionalIndex: en
|
|
445
445
|
},
|
|
@@ -494,55 +494,55 @@ function $0(d) {
|
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
function q0(d, h, u = [], E, w, R, x, p) {
|
|
497
|
-
const F = Pe([]), [A, T] = mn(F.current), L = Pe({}), [S, C] = mn(L.current), [ln, H] = mn({}), [Y,
|
|
497
|
+
const F = Pe([]), [A, T] = mn(F.current), L = Pe({}), [S, C] = mn(L.current), [ln, H] = mn({}), [Y, fn] = mn(!1), D = fu(d), M = In(async () => {
|
|
498
498
|
if (!w || !R) {
|
|
499
499
|
T([]);
|
|
500
500
|
return;
|
|
501
501
|
}
|
|
502
502
|
if (R.getDocument(d))
|
|
503
503
|
try {
|
|
504
|
-
const { fields:
|
|
505
|
-
F.current =
|
|
504
|
+
const { fields: un, values: N } = await H0(d, h, u, E, w, R);
|
|
505
|
+
F.current = un, T(F.current), L.current = { ...L.current, ...N }, C(L.current);
|
|
506
506
|
} catch {
|
|
507
507
|
T([]);
|
|
508
508
|
}
|
|
509
509
|
}, [h, w]);
|
|
510
510
|
Dn(() => {
|
|
511
|
-
|
|
511
|
+
M();
|
|
512
512
|
const an = R == null ? void 0 : R.onDocumentOpened(() => {
|
|
513
|
-
|
|
513
|
+
M();
|
|
514
514
|
});
|
|
515
515
|
return () => {
|
|
516
516
|
an == null || an();
|
|
517
517
|
};
|
|
518
|
-
}, [
|
|
519
|
-
const
|
|
518
|
+
}, [M]);
|
|
519
|
+
const rn = In((an) => {
|
|
520
520
|
var N, $;
|
|
521
|
-
const
|
|
521
|
+
const un = {};
|
|
522
522
|
for (const Q of F.current) {
|
|
523
523
|
const G = L.current[Q.name];
|
|
524
|
-
Q.required && (Q.type === "checkbox" && G !== !0 && (
|
|
524
|
+
Q.required && (Q.type === "checkbox" && G !== !0 && (un[Q.name] = "required"), Q.type === "radiobutton" && (G === void 0 || G === !1 || G === "") && (un[Q.name] = "required"), Q.type === "text" && (G === void 0 || String(G).trim() === "") && (un[Q.name] = "required"));
|
|
525
525
|
}
|
|
526
|
-
if (H(
|
|
527
|
-
const Q = F.current.find((G) =>
|
|
526
|
+
if (H(un), fn(!0), Object.keys(un).length > 0 && x && !an) {
|
|
527
|
+
const Q = F.current.find((G) => un[G.name]);
|
|
528
528
|
if (Q) {
|
|
529
529
|
x.scrollToPage({ pageNumber: Q.pageIndex + 1, behavior: "smooth" });
|
|
530
530
|
const G = (D == null ? void 0 : D.scale) || 1, dn = Q.pageIndex * ((($ = (N = D == null ? void 0 : D.document) == null ? void 0 : N.pages[Q.pageIndex]) == null ? void 0 : $.size.height) || 0);
|
|
531
531
|
p == null || p.scrollTo({ x: Q.bbox.x * G, y: Q.bbox.y * G + dn * G, behavior: "smooth" });
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
return { valid: Object.keys(
|
|
535
|
-
}, [x, p, H, D]), J = In((an,
|
|
536
|
-
L.current = { ...L.current, [an]:
|
|
537
|
-
}, [C,
|
|
538
|
-
|
|
539
|
-
}, [
|
|
540
|
-
var
|
|
534
|
+
return { valid: Object.keys(un).length === 0, errors: un };
|
|
535
|
+
}, [x, p, H, D]), J = In((an, un) => {
|
|
536
|
+
L.current = { ...L.current, [an]: un }, C(L.current), Y && rn(!0);
|
|
537
|
+
}, [C, rn, Y]), en = In(() => {
|
|
538
|
+
M();
|
|
539
|
+
}, [M]), tn = In(function* (an) {
|
|
540
|
+
var un, N;
|
|
541
541
|
for (; ; )
|
|
542
542
|
for (const $ of F.current.filter((Q) => Q.type === "signature" && Q.conditionalIndex === an)) {
|
|
543
543
|
if (x && p) {
|
|
544
544
|
x.scrollToPage({ pageNumber: $.pageIndex + 1, behavior: "smooth" });
|
|
545
|
-
const Q = (D == null ? void 0 : D.scale) || 1, G = $.pageIndex * (((N = (
|
|
545
|
+
const Q = (D == null ? void 0 : D.scale) || 1, G = $.pageIndex * (((N = (un = D == null ? void 0 : D.document) == null ? void 0 : un.pages[$.pageIndex]) == null ? void 0 : N.size.height) || 0);
|
|
546
546
|
p == null || p.scrollTo({ x: $.bbox.x * Q, y: $.bbox.y * Q + G * Q, behavior: "smooth" });
|
|
547
547
|
}
|
|
548
548
|
yield $;
|
|
@@ -552,12 +552,12 @@ function q0(d, h, u = [], E, w, R, x, p) {
|
|
|
552
552
|
fields: A,
|
|
553
553
|
values: S,
|
|
554
554
|
setValue: J,
|
|
555
|
-
validate:
|
|
555
|
+
validate: rn,
|
|
556
556
|
reload: en,
|
|
557
557
|
errors: ln,
|
|
558
558
|
showErrors: Y,
|
|
559
559
|
scrollToConditionalSignature: tn
|
|
560
|
-
}), [S, A, J,
|
|
560
|
+
}), [S, A, J, rn, en, ln, x, p, Y]);
|
|
561
561
|
}
|
|
562
562
|
const ls = ou(null), K0 = (d) => {
|
|
563
563
|
const { children: h, setForm: u, initialValues: E, documentId: w, conditionalSignatures: R, signatureFieldNames: x } = d, { engine: p } = ts(), { provides: F } = s0(), { provides: A } = is(), { provides: T } = rs(), L = q0(w, E, R, x, p, F, A, T);
|
|
@@ -583,7 +583,7 @@ const X0 = ({ documentId: d, pageIndex: h }) => {
|
|
|
583
583
|
return p.length ? /* @__PURE__ */ O("div", { className: `pdf-forms-layer${A && x && Object.keys(x).length > 0 ? " pdf-forms-error" : ""}`, style: { position: "absolute", top: 0, left: 0, width: "100%", height: "100%" }, children: p.filter((S) => S.pageIndex === h).map((S) => {
|
|
584
584
|
const C = T(S);
|
|
585
585
|
if (!C) return null;
|
|
586
|
-
const ln = R[S.name], H = `${S.pageIndex}-${S.name}-${S.radioValue || ""}`, Y = A && x && x[S.name],
|
|
586
|
+
const ln = R[S.name], H = `${S.pageIndex}-${S.name}-${S.radioValue || ""}`, Y = A && x && x[S.name], fn = {
|
|
587
587
|
position: "absolute",
|
|
588
588
|
left: C.left,
|
|
589
589
|
top: C.top,
|
|
@@ -608,8 +608,8 @@ const X0 = ({ documentId: d, pageIndex: h }) => {
|
|
|
608
608
|
}
|
|
609
609
|
return D.render({
|
|
610
610
|
value: ln,
|
|
611
|
-
onChange: (
|
|
612
|
-
style:
|
|
611
|
+
onChange: (M) => L(S.name, M),
|
|
612
|
+
style: fn,
|
|
613
613
|
key: H,
|
|
614
614
|
hasError: !!Y,
|
|
615
615
|
readonly: !!S.readonly
|
|
@@ -628,13 +628,13 @@ var Dt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
628
628
|
br.exports;
|
|
629
629
|
(function(d, h) {
|
|
630
630
|
(function() {
|
|
631
|
-
var u, E = "4.17.21", w = 200, R = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", x = "Expected a function", p = "Invalid `variable` option passed into `_.template`", F = "__lodash_hash_undefined__", A = 500, T = "__lodash_placeholder__", L = 1, S = 2, C = 4, ln = 1, H = 2, Y = 1,
|
|
631
|
+
var u, E = "4.17.21", w = 200, R = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", x = "Expected a function", p = "Invalid `variable` option passed into `_.template`", F = "__lodash_hash_undefined__", A = 500, T = "__lodash_placeholder__", L = 1, S = 2, C = 4, ln = 1, H = 2, Y = 1, fn = 2, D = 4, M = 8, rn = 16, J = 32, en = 64, tn = 128, an = 256, un = 512, N = 30, $ = "...", Q = 800, G = 16, dn = 1, Nn = 2, _e = 3, Fn = 1 / 0, Rn = 9007199254740991, Oe = 17976931348623157e292, Pn = NaN, On = 4294967295, at = On - 1, lu = On >>> 1, he = [
|
|
632
632
|
["ary", tn],
|
|
633
633
|
["bind", Y],
|
|
634
|
-
["bindKey",
|
|
635
|
-
["curry",
|
|
636
|
-
["curryRight",
|
|
637
|
-
["flip",
|
|
634
|
+
["bindKey", fn],
|
|
635
|
+
["curry", M],
|
|
636
|
+
["curryRight", rn],
|
|
637
|
+
["flip", un],
|
|
638
638
|
["partial", J],
|
|
639
639
|
["partialRight", en],
|
|
640
640
|
["rearg", an]
|
|
@@ -915,7 +915,7 @@ br.exports;
|
|
|
915
915
|
return c.apply(_, g);
|
|
916
916
|
}
|
|
917
917
|
function xl(c, _, g, b) {
|
|
918
|
-
for (var q = -1,
|
|
918
|
+
for (var q = -1, on = c == null ? 0 : c.length; ++q < on; ) {
|
|
919
919
|
var Tn = c[q];
|
|
920
920
|
_(b, Tn, g(Tn), c);
|
|
921
921
|
}
|
|
@@ -938,11 +938,11 @@ br.exports;
|
|
|
938
938
|
return !0;
|
|
939
939
|
}
|
|
940
940
|
function be(c, _) {
|
|
941
|
-
for (var g = -1, b = c == null ? 0 : c.length, q = 0,
|
|
941
|
+
for (var g = -1, b = c == null ? 0 : c.length, q = 0, on = []; ++g < b; ) {
|
|
942
942
|
var Tn = c[g];
|
|
943
|
-
_(Tn, g, c) && (
|
|
943
|
+
_(Tn, g, c) && (on[q++] = Tn);
|
|
944
944
|
}
|
|
945
|
-
return
|
|
945
|
+
return on;
|
|
946
946
|
}
|
|
947
947
|
function qt(c, _) {
|
|
948
948
|
var g = c == null ? 0 : c.length;
|
|
@@ -965,8 +965,8 @@ br.exports;
|
|
|
965
965
|
return c;
|
|
966
966
|
}
|
|
967
967
|
function Jr(c, _, g, b) {
|
|
968
|
-
var q = -1,
|
|
969
|
-
for (b &&
|
|
968
|
+
var q = -1, on = c == null ? 0 : c.length;
|
|
969
|
+
for (b && on && (g = c[++q]); ++q < on; )
|
|
970
970
|
g = _(g, c[q], q, c);
|
|
971
971
|
return g;
|
|
972
972
|
}
|
|
@@ -991,22 +991,22 @@ br.exports;
|
|
|
991
991
|
}
|
|
992
992
|
function $u(c, _, g) {
|
|
993
993
|
var b;
|
|
994
|
-
return g(c, function(q,
|
|
995
|
-
if (_(q,
|
|
996
|
-
return b =
|
|
994
|
+
return g(c, function(q, on, Tn) {
|
|
995
|
+
if (_(q, on, Tn))
|
|
996
|
+
return b = on, !1;
|
|
997
997
|
}), b;
|
|
998
998
|
}
|
|
999
999
|
function Kt(c, _, g, b) {
|
|
1000
|
-
for (var q = c.length,
|
|
1001
|
-
if (_(c[
|
|
1002
|
-
return
|
|
1000
|
+
for (var q = c.length, on = g + (b ? 1 : -1); b ? on-- : ++on < q; )
|
|
1001
|
+
if (_(c[on], on, c))
|
|
1002
|
+
return on;
|
|
1003
1003
|
return -1;
|
|
1004
1004
|
}
|
|
1005
1005
|
function Qe(c, _, g) {
|
|
1006
1006
|
return _ === _ ? Ul(c, _, g) : Kt(c, qu, g);
|
|
1007
1007
|
}
|
|
1008
1008
|
function Rl(c, _, g, b) {
|
|
1009
|
-
for (var q = g - 1,
|
|
1009
|
+
for (var q = g - 1, on = c.length; ++q < on; )
|
|
1010
1010
|
if (b(c[q], _))
|
|
1011
1011
|
return q;
|
|
1012
1012
|
return -1;
|
|
@@ -1029,8 +1029,8 @@ br.exports;
|
|
|
1029
1029
|
};
|
|
1030
1030
|
}
|
|
1031
1031
|
function Zu(c, _, g, b, q) {
|
|
1032
|
-
return q(c, function(
|
|
1033
|
-
g = b ? (b = !1,
|
|
1032
|
+
return q(c, function(on, Tn, hn) {
|
|
1033
|
+
g = b ? (b = !1, on) : _(g, on, Tn, hn);
|
|
1034
1034
|
}), g;
|
|
1035
1035
|
}
|
|
1036
1036
|
function Pl(c, _) {
|
|
@@ -1041,8 +1041,8 @@ br.exports;
|
|
|
1041
1041
|
}
|
|
1042
1042
|
function ei(c, _) {
|
|
1043
1043
|
for (var g, b = -1, q = c.length; ++b < q; ) {
|
|
1044
|
-
var
|
|
1045
|
-
|
|
1044
|
+
var on = _(c[b]);
|
|
1045
|
+
on !== u && (g = g === u ? on : g + on);
|
|
1046
1046
|
}
|
|
1047
1047
|
return g;
|
|
1048
1048
|
}
|
|
@@ -1117,11 +1117,11 @@ br.exports;
|
|
|
1117
1117
|
};
|
|
1118
1118
|
}
|
|
1119
1119
|
function Fe(c, _) {
|
|
1120
|
-
for (var g = -1, b = c.length, q = 0,
|
|
1120
|
+
for (var g = -1, b = c.length, q = 0, on = []; ++g < b; ) {
|
|
1121
1121
|
var Tn = c[g];
|
|
1122
|
-
(Tn === _ || Tn === T) && (c[g] = T,
|
|
1122
|
+
(Tn === _ || Tn === T) && (c[g] = T, on[q++] = g);
|
|
1123
1123
|
}
|
|
1124
|
-
return
|
|
1124
|
+
return on;
|
|
1125
1125
|
}
|
|
1126
1126
|
function Zt(c) {
|
|
1127
1127
|
var _ = -1, g = Array(c.size);
|
|
@@ -1172,7 +1172,7 @@ br.exports;
|
|
|
1172
1172
|
}
|
|
1173
1173
|
var $l = function c(_) {
|
|
1174
1174
|
_ = _ == null ? Ln : et.defaults(Ln.Object(), _, et.pick(Ln, al));
|
|
1175
|
-
var g = _.Array, b = _.Date, q = _.Error,
|
|
1175
|
+
var g = _.Array, b = _.Date, q = _.Error, on = _.Function, Tn = _.Math, hn = _.Object, ui = _.RegExp, ql = _.String, jn = _.TypeError, Xt = g.prototype, Kl = on.prototype, tt = hn.prototype, kt = _["__core-js_shared__"], Yt = Kl.toString, cn = tt.hasOwnProperty, Zl = 0, Qu = function() {
|
|
1176
1176
|
var n = /[^.]+$/.exec(kt && kt.keys && kt.keys.IE_PROTO || "");
|
|
1177
1177
|
return n ? "Symbol(src)_1." + n : "";
|
|
1178
1178
|
}(), Vt = tt.toString, Xl = Yt.call(hn), kl = Ln._, Yl = ui(
|
|
@@ -1814,7 +1814,7 @@ br.exports;
|
|
|
1814
1814
|
} : f;
|
|
1815
1815
|
}) : e = [Hn];
|
|
1816
1816
|
var r = -1;
|
|
1817
|
-
e = _n(e, Kn(
|
|
1817
|
+
e = _n(e, Kn(U()));
|
|
1818
1818
|
var i = wo(n, function(f, s, l) {
|
|
1819
1819
|
var a = _n(e, function(v) {
|
|
1820
1820
|
return v(f);
|
|
@@ -2138,7 +2138,7 @@ br.exports;
|
|
|
2138
2138
|
function dr(n, e) {
|
|
2139
2139
|
return function(t, r) {
|
|
2140
2140
|
var i = K(t) ? xl : Uc, f = e ? e() : {};
|
|
2141
|
-
return i(t, n,
|
|
2141
|
+
return i(t, n, U(r, 2), f);
|
|
2142
2142
|
};
|
|
2143
2143
|
}
|
|
2144
2144
|
function ot(n) {
|
|
@@ -2245,7 +2245,7 @@ br.exports;
|
|
|
2245
2245
|
return function(e, t, r) {
|
|
2246
2246
|
var i = hn(e);
|
|
2247
2247
|
if (!Gn(e)) {
|
|
2248
|
-
var f =
|
|
2248
|
+
var f = U(t, 3);
|
|
2249
2249
|
e = Sn(e), t = function(l) {
|
|
2250
2250
|
return f(i[l], l, i);
|
|
2251
2251
|
};
|
|
@@ -2267,7 +2267,7 @@ br.exports;
|
|
|
2267
2267
|
for (r = s ? r : t; ++r < t; ) {
|
|
2268
2268
|
f = e[r];
|
|
2269
2269
|
var l = mr(f), a = l == "wrapper" ? Ni(f) : u;
|
|
2270
|
-
a && Di(a[0]) && a[1] == (tn |
|
|
2270
|
+
a && Di(a[0]) && a[1] == (tn | M | J | an) && !a[4].length && a[9] == 1 ? s = s[mr(a[0])].apply(s, a[3]) : s = f.length == 1 && Di(f) ? s[l]() : s.thru(f);
|
|
2271
2271
|
}
|
|
2272
2272
|
return function() {
|
|
2273
2273
|
var v = arguments, m = v[0];
|
|
@@ -2280,7 +2280,7 @@ br.exports;
|
|
|
2280
2280
|
});
|
|
2281
2281
|
}
|
|
2282
2282
|
function gr(n, e, t, r, i, f, s, l, a, v) {
|
|
2283
|
-
var m = e & tn, I = e & Y, P = e &
|
|
2283
|
+
var m = e & tn, I = e & Y, P = e & fn, y = e & (M | rn), B = e & un, X = P ? u : bt(n);
|
|
2284
2284
|
function W() {
|
|
2285
2285
|
for (var V = arguments.length, nn = g(V), kn = V; kn--; )
|
|
2286
2286
|
nn[kn] = arguments[kn];
|
|
@@ -2326,7 +2326,7 @@ br.exports;
|
|
|
2326
2326
|
}
|
|
2327
2327
|
function Pi(n) {
|
|
2328
2328
|
return Ie(function(e) {
|
|
2329
|
-
return e = _n(e, Kn(
|
|
2329
|
+
return e = _n(e, Kn(U())), k(function(t) {
|
|
2330
2330
|
var r = this;
|
|
2331
2331
|
return n(e, function(i) {
|
|
2332
2332
|
return qn(i, r, t);
|
|
@@ -2364,7 +2364,7 @@ br.exports;
|
|
|
2364
2364
|
};
|
|
2365
2365
|
}
|
|
2366
2366
|
function Ko(n, e, t, r, i, f, s, l, a, v) {
|
|
2367
|
-
var m = e &
|
|
2367
|
+
var m = e & M, I = m ? s : u, P = m ? u : s, y = m ? f : u, B = m ? u : f;
|
|
2368
2368
|
e |= m ? J : en, e &= ~(m ? en : J), e & D || (e &= -4);
|
|
2369
2369
|
var X = [
|
|
2370
2370
|
n,
|
|
@@ -2400,7 +2400,7 @@ br.exports;
|
|
|
2400
2400
|
};
|
|
2401
2401
|
}
|
|
2402
2402
|
function Ae(n, e, t, r, i, f, s, l) {
|
|
2403
|
-
var a = e &
|
|
2403
|
+
var a = e & fn;
|
|
2404
2404
|
if (!a && typeof n != "function")
|
|
2405
2405
|
throw new jn(x);
|
|
2406
2406
|
var v = r ? r.length : 0;
|
|
@@ -2420,9 +2420,9 @@ br.exports;
|
|
|
2420
2420
|
s,
|
|
2421
2421
|
l
|
|
2422
2422
|
];
|
|
2423
|
-
if (P && Ca(y, P), n = y[0], e = y[1], t = y[2], r = y[3], i = y[4], l = y[9] = y[9] === u ? a ? 0 : n.length : En(y[9] - v, 0), !l && e & (
|
|
2423
|
+
if (P && Ca(y, P), n = y[0], e = y[1], t = y[2], r = y[3], i = y[4], l = y[9] = y[9] === u ? a ? 0 : n.length : En(y[9] - v, 0), !l && e & (M | rn) && (e &= -25), !e || e == Y)
|
|
2424
2424
|
var B = _a(n, e, t);
|
|
2425
|
-
else e ==
|
|
2425
|
+
else e == M || e == rn ? B = va(n, e, l) : (e == J || e == (Y | J)) && !i.length ? B = ma(n, e, t, r) : B = gr.apply(u, y);
|
|
2426
2426
|
var X = P ? Ro : rf;
|
|
2427
2427
|
return uf(X(B, y), n, e);
|
|
2428
2428
|
}
|
|
@@ -2558,7 +2558,7 @@ br.exports;
|
|
|
2558
2558
|
var e = cn.call(o, "placeholder") ? o : n;
|
|
2559
2559
|
return e.placeholder;
|
|
2560
2560
|
}
|
|
2561
|
-
function
|
|
2561
|
+
function U() {
|
|
2562
2562
|
var n = o.iteratee || ki;
|
|
2563
2563
|
return n = n === ki ? mo : n, arguments.length ? n(arguments[0], arguments[1]) : n;
|
|
2564
2564
|
}
|
|
@@ -2751,7 +2751,7 @@ br.exports;
|
|
|
2751
2751
|
return e;
|
|
2752
2752
|
}
|
|
2753
2753
|
function Ca(n, e) {
|
|
2754
|
-
var t = n[1], r = e[1], i = t | r, f = i < (Y |
|
|
2754
|
+
var t = n[1], r = e[1], i = t | r, f = i < (Y | fn | tn), s = r == tn && t == M || r == tn && t == an && n[7].length <= e[8] || r == (tn | an) && e[7].length <= e[8] && t == M;
|
|
2755
2755
|
if (!(f || s))
|
|
2756
2756
|
return n;
|
|
2757
2757
|
r & Y && (n[2] = e[2], i |= t & Y ? 0 : D);
|
|
@@ -2888,7 +2888,7 @@ br.exports;
|
|
|
2888
2888
|
return xn(n) ? Rt(n, bn(e, 1, xn, !0)) : [];
|
|
2889
2889
|
}), $a = k(function(n, e) {
|
|
2890
2890
|
var t = re(e);
|
|
2891
|
-
return xn(t) && (t = u), xn(n) ? Rt(n, bn(e, 1, xn, !0),
|
|
2891
|
+
return xn(t) && (t = u), xn(n) ? Rt(n, bn(e, 1, xn, !0), U(t, 2)) : [];
|
|
2892
2892
|
}), qa = k(function(n, e) {
|
|
2893
2893
|
var t = re(e);
|
|
2894
2894
|
return xn(t) && (t = u), xn(n) ? Rt(n, bn(e, 1, xn, !0), u, t) : [];
|
|
@@ -2902,10 +2902,10 @@ br.exports;
|
|
|
2902
2902
|
return r ? (e = t || e === u ? 1 : Z(e), e = r - e, te(n, 0, e < 0 ? 0 : e)) : [];
|
|
2903
2903
|
}
|
|
2904
2904
|
function Xa(n, e) {
|
|
2905
|
-
return n && n.length ? hr(n,
|
|
2905
|
+
return n && n.length ? hr(n, U(e, 3), !0, !0) : [];
|
|
2906
2906
|
}
|
|
2907
2907
|
function ka(n, e) {
|
|
2908
|
-
return n && n.length ? hr(n,
|
|
2908
|
+
return n && n.length ? hr(n, U(e, 3), !0) : [];
|
|
2909
2909
|
}
|
|
2910
2910
|
function Ya(n, e, t, r) {
|
|
2911
2911
|
var i = n == null ? 0 : n.length;
|
|
@@ -2916,14 +2916,14 @@ br.exports;
|
|
|
2916
2916
|
if (!r)
|
|
2917
2917
|
return -1;
|
|
2918
2918
|
var i = t == null ? 0 : Z(t);
|
|
2919
|
-
return i < 0 && (i = En(r + i, 0)), Kt(n,
|
|
2919
|
+
return i < 0 && (i = En(r + i, 0)), Kt(n, U(e, 3), i);
|
|
2920
2920
|
}
|
|
2921
2921
|
function cf(n, e, t) {
|
|
2922
2922
|
var r = n == null ? 0 : n.length;
|
|
2923
2923
|
if (!r)
|
|
2924
2924
|
return -1;
|
|
2925
2925
|
var i = r - 1;
|
|
2926
|
-
return t !== u && (i = Z(t), i = t < 0 ? En(r + i, 0) : yn(i, r - 1)), Kt(n,
|
|
2926
|
+
return t !== u && (i = Z(t), i = t < 0 ? En(r + i, 0) : yn(i, r - 1)), Kt(n, U(e, 3), i, !0);
|
|
2927
2927
|
}
|
|
2928
2928
|
function af(n) {
|
|
2929
2929
|
var e = n == null ? 0 : n.length;
|
|
@@ -2963,7 +2963,7 @@ br.exports;
|
|
|
2963
2963
|
return e.length && e[0] === n[0] ? gi(e) : [];
|
|
2964
2964
|
}), th = k(function(n) {
|
|
2965
2965
|
var e = re(n), t = _n(n, Ei);
|
|
2966
|
-
return e === re(t) ? e = u : t.pop(), t.length && t[0] === n[0] ? gi(t,
|
|
2966
|
+
return e === re(t) ? e = u : t.pop(), t.length && t[0] === n[0] ? gi(t, U(e, 2)) : [];
|
|
2967
2967
|
}), rh = k(function(n) {
|
|
2968
2968
|
var e = re(n), t = _n(n, Ei);
|
|
2969
2969
|
return e = typeof e == "function" ? e : u, e && t.pop(), t.length && t[0] === n[0] ? gi(t, u, e) : [];
|
|
@@ -2990,7 +2990,7 @@ br.exports;
|
|
|
2990
2990
|
return n && n.length && e && e.length ? mi(n, e) : n;
|
|
2991
2991
|
}
|
|
2992
2992
|
function sh(n, e, t) {
|
|
2993
|
-
return n && n.length && e && e.length ? mi(n, e,
|
|
2993
|
+
return n && n.length && e && e.length ? mi(n, e, U(t, 2)) : n;
|
|
2994
2994
|
}
|
|
2995
2995
|
function lh(n, e, t) {
|
|
2996
2996
|
return n && n.length && e && e.length ? mi(n, e, u, t) : n;
|
|
@@ -3006,7 +3006,7 @@ br.exports;
|
|
|
3006
3006
|
if (!(n && n.length))
|
|
3007
3007
|
return t;
|
|
3008
3008
|
var r = -1, i = [], f = n.length;
|
|
3009
|
-
for (e =
|
|
3009
|
+
for (e = U(e, 3); ++r < f; ) {
|
|
3010
3010
|
var s = n[r];
|
|
3011
3011
|
e(s, r, n) && (t.push(s), i.push(r));
|
|
3012
3012
|
}
|
|
@@ -3023,7 +3023,7 @@ br.exports;
|
|
|
3023
3023
|
return ar(n, e);
|
|
3024
3024
|
}
|
|
3025
3025
|
function gh(n, e, t) {
|
|
3026
|
-
return Ai(n, e,
|
|
3026
|
+
return Ai(n, e, U(t, 2));
|
|
3027
3027
|
}
|
|
3028
3028
|
function ph(n, e) {
|
|
3029
3029
|
var t = n == null ? 0 : n.length;
|
|
@@ -3038,7 +3038,7 @@ br.exports;
|
|
|
3038
3038
|
return ar(n, e, !0);
|
|
3039
3039
|
}
|
|
3040
3040
|
function vh(n, e, t) {
|
|
3041
|
-
return Ai(n, e,
|
|
3041
|
+
return Ai(n, e, U(t, 2), !0);
|
|
3042
3042
|
}
|
|
3043
3043
|
function mh(n, e) {
|
|
3044
3044
|
var t = n == null ? 0 : n.length;
|
|
@@ -3053,7 +3053,7 @@ br.exports;
|
|
|
3053
3053
|
return n && n.length ? Po(n) : [];
|
|
3054
3054
|
}
|
|
3055
3055
|
function xh(n, e) {
|
|
3056
|
-
return n && n.length ? Po(n,
|
|
3056
|
+
return n && n.length ? Po(n, U(e, 2)) : [];
|
|
3057
3057
|
}
|
|
3058
3058
|
function Ah(n) {
|
|
3059
3059
|
var e = n == null ? 0 : n.length;
|
|
@@ -3067,16 +3067,16 @@ br.exports;
|
|
|
3067
3067
|
return r ? (e = t || e === u ? 1 : Z(e), e = r - e, te(n, e < 0 ? 0 : e, r)) : [];
|
|
3068
3068
|
}
|
|
3069
3069
|
function Eh(n, e) {
|
|
3070
|
-
return n && n.length ? hr(n,
|
|
3070
|
+
return n && n.length ? hr(n, U(e, 3), !1, !0) : [];
|
|
3071
3071
|
}
|
|
3072
3072
|
function Sh(n, e) {
|
|
3073
|
-
return n && n.length ? hr(n,
|
|
3073
|
+
return n && n.length ? hr(n, U(e, 3)) : [];
|
|
3074
3074
|
}
|
|
3075
3075
|
var Rh = k(function(n) {
|
|
3076
3076
|
return De(bn(n, 1, xn, !0));
|
|
3077
3077
|
}), Ph = k(function(n) {
|
|
3078
3078
|
var e = re(n);
|
|
3079
|
-
return xn(e) && (e = u), De(bn(n, 1, xn, !0),
|
|
3079
|
+
return xn(e) && (e = u), De(bn(n, 1, xn, !0), U(e, 2));
|
|
3080
3080
|
}), Oh = k(function(n) {
|
|
3081
3081
|
var e = re(n);
|
|
3082
3082
|
return e = typeof e == "function" ? e : u, De(bn(n, 1, xn, !0), u, e);
|
|
@@ -3085,7 +3085,7 @@ br.exports;
|
|
|
3085
3085
|
return n && n.length ? De(n) : [];
|
|
3086
3086
|
}
|
|
3087
3087
|
function bh(n, e) {
|
|
3088
|
-
return n && n.length ? De(n,
|
|
3088
|
+
return n && n.length ? De(n, U(e, 2)) : [];
|
|
3089
3089
|
}
|
|
3090
3090
|
function Nh(n, e) {
|
|
3091
3091
|
return e = typeof e == "function" ? e : u, n && n.length ? De(n, u, e) : [];
|
|
@@ -3115,7 +3115,7 @@ br.exports;
|
|
|
3115
3115
|
return Ti(be(n, xn));
|
|
3116
3116
|
}), Ch = k(function(n) {
|
|
3117
3117
|
var e = re(n);
|
|
3118
|
-
return xn(e) && (e = u), Ti(be(n, xn),
|
|
3118
|
+
return xn(e) && (e = u), Ti(be(n, xn), U(e, 2));
|
|
3119
3119
|
}), Dh = k(function(n) {
|
|
3120
3120
|
var e = re(n);
|
|
3121
3121
|
return e = typeof e == "function" ? e : u, Ti(be(n, xn), u, e);
|
|
@@ -3195,11 +3195,11 @@ br.exports;
|
|
|
3195
3195
|
});
|
|
3196
3196
|
function Vh(n, e, t) {
|
|
3197
3197
|
var r = K(n) ? Hu : Gc;
|
|
3198
|
-
return t && Un(n, e, t) && (e = u), r(n,
|
|
3198
|
+
return t && Un(n, e, t) && (e = u), r(n, U(e, 3));
|
|
3199
3199
|
}
|
|
3200
3200
|
function Jh(n, e) {
|
|
3201
3201
|
var t = K(n) ? be : ho;
|
|
3202
|
-
return t(n,
|
|
3202
|
+
return t(n, U(e, 3));
|
|
3203
3203
|
}
|
|
3204
3204
|
var Qh = zo(lf), jh = zo(cf);
|
|
3205
3205
|
function nd(n, e) {
|
|
@@ -3213,11 +3213,11 @@ br.exports;
|
|
|
3213
3213
|
}
|
|
3214
3214
|
function _f(n, e) {
|
|
3215
3215
|
var t = K(n) ? Qn : Ce;
|
|
3216
|
-
return t(n,
|
|
3216
|
+
return t(n, U(e, 3));
|
|
3217
3217
|
}
|
|
3218
3218
|
function vf(n, e) {
|
|
3219
3219
|
var t = K(n) ? Al : ao;
|
|
3220
|
-
return t(n,
|
|
3220
|
+
return t(n, U(e, 3));
|
|
3221
3221
|
}
|
|
3222
3222
|
var rd = dr(function(n, e, t) {
|
|
3223
3223
|
cn.call(n, t) ? n[t].push(e) : xe(n, t, [e]);
|
|
@@ -3237,7 +3237,7 @@ br.exports;
|
|
|
3237
3237
|
});
|
|
3238
3238
|
function Ir(n, e) {
|
|
3239
3239
|
var t = K(n) ? _n : wo;
|
|
3240
|
-
return t(n,
|
|
3240
|
+
return t(n, U(e, 3));
|
|
3241
3241
|
}
|
|
3242
3242
|
function fd(n, e, t, r) {
|
|
3243
3243
|
return n == null ? [] : (K(e) || (e = e == null ? [] : [e]), t = r ? u : t, K(t) || (t = t == null ? [] : [t]), To(n, e, t));
|
|
@@ -3249,15 +3249,15 @@ br.exports;
|
|
|
3249
3249
|
});
|
|
3250
3250
|
function ld(n, e, t) {
|
|
3251
3251
|
var r = K(n) ? Jr : Zu, i = arguments.length < 3;
|
|
3252
|
-
return r(n,
|
|
3252
|
+
return r(n, U(e, 4), t, i, Ce);
|
|
3253
3253
|
}
|
|
3254
3254
|
function cd(n, e, t) {
|
|
3255
3255
|
var r = K(n) ? Il : Zu, i = arguments.length < 3;
|
|
3256
|
-
return r(n,
|
|
3256
|
+
return r(n, U(e, 4), t, i, ao);
|
|
3257
3257
|
}
|
|
3258
3258
|
function ad(n, e) {
|
|
3259
3259
|
var t = K(n) ? be : ho;
|
|
3260
|
-
return t(n, Sr(
|
|
3260
|
+
return t(n, Sr(U(e, 3)));
|
|
3261
3261
|
}
|
|
3262
3262
|
function hd(n) {
|
|
3263
3263
|
var e = K(n) ? fo : ia;
|
|
@@ -3282,7 +3282,7 @@ br.exports;
|
|
|
3282
3282
|
}
|
|
3283
3283
|
function _d(n, e, t) {
|
|
3284
3284
|
var r = K(n) ? Qr : sa;
|
|
3285
|
-
return t && Un(n, e, t) && (e = u), r(n,
|
|
3285
|
+
return t && Un(n, e, t) && (e = u), r(n, U(e, 3));
|
|
3286
3286
|
}
|
|
3287
3287
|
var vd = k(function(n, e) {
|
|
3288
3288
|
if (n == null)
|
|
@@ -3319,7 +3319,7 @@ br.exports;
|
|
|
3319
3319
|
}
|
|
3320
3320
|
return Ae(n, r, e, t, i);
|
|
3321
3321
|
}), xf = k(function(n, e, t) {
|
|
3322
|
-
var r = Y |
|
|
3322
|
+
var r = Y | fn;
|
|
3323
3323
|
if (t.length) {
|
|
3324
3324
|
var i = Fe(t, st(xf));
|
|
3325
3325
|
r |= J;
|
|
@@ -3328,12 +3328,12 @@ br.exports;
|
|
|
3328
3328
|
});
|
|
3329
3329
|
function Af(n, e, t) {
|
|
3330
3330
|
e = t ? u : e;
|
|
3331
|
-
var r = Ae(n,
|
|
3331
|
+
var r = Ae(n, M, u, u, u, u, u, e);
|
|
3332
3332
|
return r.placeholder = Af.placeholder, r;
|
|
3333
3333
|
}
|
|
3334
3334
|
function If(n, e, t) {
|
|
3335
3335
|
e = t ? u : e;
|
|
3336
|
-
var r = Ae(n,
|
|
3336
|
+
var r = Ae(n, rn, u, u, u, u, u, e);
|
|
3337
3337
|
return r.placeholder = If.placeholder, r;
|
|
3338
3338
|
}
|
|
3339
3339
|
function Tf(n, e, t) {
|
|
@@ -3389,7 +3389,7 @@ br.exports;
|
|
|
3389
3389
|
return co(n, ie(e) || 0, t);
|
|
3390
3390
|
});
|
|
3391
3391
|
function Ad(n) {
|
|
3392
|
-
return Ae(n,
|
|
3392
|
+
return Ae(n, un);
|
|
3393
3393
|
}
|
|
3394
3394
|
function Er(n, e) {
|
|
3395
3395
|
if (typeof n != "function" || e != null && typeof e != "function")
|
|
@@ -3426,7 +3426,7 @@ br.exports;
|
|
|
3426
3426
|
return wf(2, n);
|
|
3427
3427
|
}
|
|
3428
3428
|
var Td = la(function(n, e) {
|
|
3429
|
-
e = e.length == 1 && K(e[0]) ? _n(e[0], Kn(
|
|
3429
|
+
e = e.length == 1 && K(e[0]) ? _n(e[0], Kn(U())) : _n(bn(e, 1), Kn(U()));
|
|
3430
3430
|
var t = e.length;
|
|
3431
3431
|
return k(function(r) {
|
|
3432
3432
|
for (var i = -1, f = yn(r.length, t); ++i < f; )
|
|
@@ -3704,22 +3704,22 @@ br.exports;
|
|
|
3704
3704
|
return n.push(u, ko), qn(yf, u, n);
|
|
3705
3705
|
});
|
|
3706
3706
|
function ag(n, e) {
|
|
3707
|
-
return $u(n,
|
|
3707
|
+
return $u(n, U(e, 3), de);
|
|
3708
3708
|
}
|
|
3709
3709
|
function hg(n, e) {
|
|
3710
|
-
return $u(n,
|
|
3710
|
+
return $u(n, U(e, 3), hi);
|
|
3711
3711
|
}
|
|
3712
3712
|
function dg(n, e) {
|
|
3713
|
-
return n == null ? n : ai(n,
|
|
3713
|
+
return n == null ? n : ai(n, U(e, 3), zn);
|
|
3714
3714
|
}
|
|
3715
3715
|
function gg(n, e) {
|
|
3716
|
-
return n == null ? n : go(n,
|
|
3716
|
+
return n == null ? n : go(n, U(e, 3), zn);
|
|
3717
3717
|
}
|
|
3718
3718
|
function pg(n, e) {
|
|
3719
|
-
return n && de(n,
|
|
3719
|
+
return n && de(n, U(e, 3));
|
|
3720
3720
|
}
|
|
3721
3721
|
function _g(n, e) {
|
|
3722
|
-
return n && hi(n,
|
|
3722
|
+
return n && hi(n, U(e, 3));
|
|
3723
3723
|
}
|
|
3724
3724
|
function vg(n) {
|
|
3725
3725
|
return n == null ? [] : lr(n, Sn(n));
|
|
@@ -3741,7 +3741,7 @@ br.exports;
|
|
|
3741
3741
|
e != null && typeof e.toString != "function" && (e = Vt.call(e)), n[e] = t;
|
|
3742
3742
|
}, Xi(Hn)), Ag = $o(function(n, e, t) {
|
|
3743
3743
|
e != null && typeof e.toString != "function" && (e = Vt.call(e)), cn.call(n, e) ? n[e].push(t) : n[e] = [t];
|
|
3744
|
-
},
|
|
3744
|
+
}, U), Ig = k(Pt);
|
|
3745
3745
|
function Sn(n) {
|
|
3746
3746
|
return Gn(n) ? oo(n) : _i(n);
|
|
3747
3747
|
}
|
|
@@ -3750,13 +3750,13 @@ br.exports;
|
|
|
3750
3750
|
}
|
|
3751
3751
|
function Tg(n, e) {
|
|
3752
3752
|
var t = {};
|
|
3753
|
-
return e =
|
|
3753
|
+
return e = U(e, 3), de(n, function(r, i, f) {
|
|
3754
3754
|
xe(t, e(r, i, f), r);
|
|
3755
3755
|
}), t;
|
|
3756
3756
|
}
|
|
3757
3757
|
function Eg(n, e) {
|
|
3758
3758
|
var t = {};
|
|
3759
|
-
return e =
|
|
3759
|
+
return e = U(e, 3), de(n, function(r, i, f) {
|
|
3760
3760
|
xe(t, i, e(r, i, f));
|
|
3761
3761
|
}), t;
|
|
3762
3762
|
}
|
|
@@ -3777,7 +3777,7 @@ br.exports;
|
|
|
3777
3777
|
return t;
|
|
3778
3778
|
});
|
|
3779
3779
|
function Pg(n, e) {
|
|
3780
|
-
return Cf(n, Sr(
|
|
3780
|
+
return Cf(n, Sr(U(e)));
|
|
3781
3781
|
}
|
|
3782
3782
|
var Og = Ie(function(n, e) {
|
|
3783
3783
|
return n == null ? {} : ea(n, e);
|
|
@@ -3788,7 +3788,7 @@ br.exports;
|
|
|
3788
3788
|
var t = _n(bi(n), function(r) {
|
|
3789
3789
|
return [r];
|
|
3790
3790
|
});
|
|
3791
|
-
return e =
|
|
3791
|
+
return e = U(e), Eo(n, t, function(r, i) {
|
|
3792
3792
|
return e(r, i[0]);
|
|
3793
3793
|
});
|
|
3794
3794
|
}
|
|
@@ -3810,7 +3810,7 @@ br.exports;
|
|
|
3810
3810
|
var Df = Zo(Sn), Mf = Zo(zn);
|
|
3811
3811
|
function Fg(n, e, t) {
|
|
3812
3812
|
var r = K(n), i = r || Be(n) || lt(n);
|
|
3813
|
-
if (e =
|
|
3813
|
+
if (e = U(e, 4), t == null) {
|
|
3814
3814
|
var f = n && n.constructor;
|
|
3815
3815
|
i ? t = r ? new f() : [] : vn(n) ? t = Ee(f) ? ut(jt(n)) : {} : t = {};
|
|
3816
3816
|
}
|
|
@@ -3951,7 +3951,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3951
3951
|
`) + I + `return __p
|
|
3952
3952
|
}`;
|
|
3953
3953
|
var X = Gf(function() {
|
|
3954
|
-
return
|
|
3954
|
+
return on(f, y + "return " + I).apply(u, s);
|
|
3955
3955
|
});
|
|
3956
3956
|
if (X.source = I, Hi(X))
|
|
3957
3957
|
throw X;
|
|
@@ -4041,7 +4041,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
4041
4041
|
}), n;
|
|
4042
4042
|
});
|
|
4043
4043
|
function dp(n) {
|
|
4044
|
-
var e = n == null ? 0 : n.length, t =
|
|
4044
|
+
var e = n == null ? 0 : n.length, t = U();
|
|
4045
4045
|
return n = e ? _n(n, function(r) {
|
|
4046
4046
|
if (typeof r[1] != "function")
|
|
4047
4047
|
throw new jn(x);
|
|
@@ -4142,7 +4142,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
4142
4142
|
if (n = Z(n), n < 1 || n > Rn)
|
|
4143
4143
|
return [];
|
|
4144
4144
|
var t = On, r = yn(n, On);
|
|
4145
|
-
e =
|
|
4145
|
+
e = U(e), n -= On;
|
|
4146
4146
|
for (var i = ti(r, e); ++t < n; )
|
|
4147
4147
|
e(t);
|
|
4148
4148
|
return i;
|
|
@@ -4163,19 +4163,19 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
4163
4163
|
return n && n.length ? sr(n, Hn, di) : u;
|
|
4164
4164
|
}
|
|
4165
4165
|
function zp(n, e) {
|
|
4166
|
-
return n && n.length ? sr(n,
|
|
4166
|
+
return n && n.length ? sr(n, U(e, 2), di) : u;
|
|
4167
4167
|
}
|
|
4168
4168
|
function Hp(n) {
|
|
4169
4169
|
return Ku(n, Hn);
|
|
4170
4170
|
}
|
|
4171
4171
|
function $p(n, e) {
|
|
4172
|
-
return Ku(n,
|
|
4172
|
+
return Ku(n, U(e, 2));
|
|
4173
4173
|
}
|
|
4174
4174
|
function qp(n) {
|
|
4175
4175
|
return n && n.length ? sr(n, Hn, vi) : u;
|
|
4176
4176
|
}
|
|
4177
4177
|
function Kp(n, e) {
|
|
4178
|
-
return n && n.length ? sr(n,
|
|
4178
|
+
return n && n.length ? sr(n, U(e, 2), vi) : u;
|
|
4179
4179
|
}
|
|
4180
4180
|
var Zp = pr(function(n, e) {
|
|
4181
4181
|
return n * e;
|
|
@@ -4186,7 +4186,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
4186
4186
|
return n && n.length ? ei(n, Hn) : 0;
|
|
4187
4187
|
}
|
|
4188
4188
|
function Vp(n, e) {
|
|
4189
|
-
return n && n.length ? ei(n,
|
|
4189
|
+
return n && n.length ? ei(n, U(e, 2)) : 0;
|
|
4190
4190
|
}
|
|
4191
4191
|
return o.after = md, o.ary = mf, o.assign = ug, o.assignIn = Ff, o.assignInWith = Or, o.assignWith = og, o.at = fg, o.before = wf, o.bind = Gi, o.bindAll = hp, o.bindKey = xf, o.castArray = bd, o.chain = pf, o.chunk = Wa, o.compact = Ga, o.concat = za, o.cond = dp, o.conforms = gp, o.constant = Xi, o.countBy = Yh, o.create = sg, o.curry = Af, o.curryRight = If, o.debounce = Tf, o.defaults = lg, o.defaultsDeep = cg, o.defer = wd, o.delay = xd, o.difference = Ha, o.differenceBy = $a, o.differenceWith = qa, o.drop = Ka, o.dropRight = Za, o.dropRightWhile = Xa, o.dropWhile = ka, o.fill = Ya, o.filter = Jh, o.flatMap = nd, o.flatMapDeep = ed, o.flatMapDepth = td, o.flatten = af, o.flattenDeep = Va, o.flattenDepth = Ja, o.flip = Ad, o.flow = _p, o.flowRight = vp, o.fromPairs = Qa, o.functions = vg, o.functionsIn = mg, o.groupBy = rd, o.initial = nh, o.intersection = eh, o.intersectionBy = th, o.intersectionWith = rh, o.invert = xg, o.invertBy = Ag, o.invokeMap = ud, o.iteratee = ki, o.keyBy = od, o.keys = Sn, o.keysIn = zn, o.map = Ir, o.mapKeys = Tg, o.mapValues = Eg, o.matches = mp, o.matchesProperty = wp, o.memoize = Er, o.merge = Sg, o.mergeWith = yf, o.method = xp, o.methodOf = Ap, o.mixin = Yi, o.negate = Sr, o.nthArg = Tp, o.omit = Rg, o.omitBy = Pg, o.once = Id, o.orderBy = fd, o.over = Ep, o.overArgs = Td, o.overEvery = Sp, o.overSome = Rp, o.partial = zi, o.partialRight = Ef, o.partition = sd, o.pick = Og, o.pickBy = Cf, o.property = zf, o.propertyOf = Pp, o.pull = fh, o.pullAll = df, o.pullAllBy = sh, o.pullAllWith = lh, o.pullAt = ch, o.range = Op, o.rangeRight = Lp, o.rearg = Ed, o.reject = ad, o.remove = ah, o.rest = Sd, o.reverse = Bi, o.sampleSize = dd, o.set = bg, o.setWith = Ng, o.shuffle = gd, o.slice = hh, o.sortBy = vd, o.sortedUniq = wh, o.sortedUniqBy = xh, o.split = np, o.spread = Rd, o.tail = Ah, o.take = Ih, o.takeRight = Th, o.takeRightWhile = Eh, o.takeWhile = Sh, o.tap = Gh, o.throttle = Pd, o.thru = Ar, o.toArray = Lf, o.toPairs = Df, o.toPairsIn = Mf, o.toPath = Cp, o.toPlainObject = Nf, o.transform = Fg, o.unary = Od, o.union = Rh, o.unionBy = Ph, o.unionWith = Oh, o.uniq = Lh, o.uniqBy = bh, o.uniqWith = Nh, o.unset = yg, o.unzip = Wi, o.unzipWith = gf, o.update = Cg, o.updateWith = Dg, o.values = ct, o.valuesIn = Mg, o.without = Fh, o.words = Wf, o.wrap = Ld, o.xor = yh, o.xorBy = Ch, o.xorWith = Dh, o.zip = Mh, o.zipObject = Uh, o.zipObjectDeep = Bh, o.zipWith = Wh, o.entries = Df, o.entriesIn = Mf, o.extend = Ff, o.extendWith = Or, Yi(o, o), o.add = Mp, o.attempt = Gf, o.camelCase = Gg, o.capitalize = Uf, o.ceil = Up, o.clamp = Ug, o.clone = Nd, o.cloneDeep = yd, o.cloneDeepWith = Cd, o.cloneWith = Fd, o.conformsTo = Dd, o.deburr = Bf, o.defaultTo = pp, o.divide = Bp, o.endsWith = zg, o.eq = le, o.escape = Hg, o.escapeRegExp = $g, o.every = Vh, o.find = Qh, o.findIndex = lf, o.findKey = ag, o.findLast = jh, o.findLastIndex = cf, o.findLastKey = hg, o.floor = Wp, o.forEach = _f, o.forEachRight = vf, o.forIn = dg, o.forInRight = gg, o.forOwn = pg, o.forOwnRight = _g, o.get = qi, o.gt = Md, o.gte = Ud, o.has = wg, o.hasIn = Ki, o.head = hf, o.identity = Hn, o.includes = id, o.indexOf = ja, o.inRange = Bg, o.invoke = Ig, o.isArguments = Xe, o.isArray = K, o.isArrayBuffer = Bd, o.isArrayLike = Gn, o.isArrayLikeObject = xn, o.isBoolean = Wd, o.isBuffer = Be, o.isDate = Gd, o.isElement = zd, o.isEmpty = Hd, o.isEqual = $d, o.isEqualWith = qd, o.isError = Hi, o.isFinite = Kd, o.isFunction = Ee, o.isInteger = Sf, o.isLength = Rr, o.isMap = Rf, o.isMatch = Zd, o.isMatchWith = Xd, o.isNaN = kd, o.isNative = Yd, o.isNil = Jd, o.isNull = Vd, o.isNumber = Pf, o.isObject = vn, o.isObjectLike = wn, o.isPlainObject = yt, o.isRegExp = $i, o.isSafeInteger = Qd, o.isSet = Of, o.isString = Pr, o.isSymbol = Xn, o.isTypedArray = lt, o.isUndefined = jd, o.isWeakMap = ng, o.isWeakSet = eg, o.join = ih, o.kebabCase = qg, o.last = re, o.lastIndexOf = uh, o.lowerCase = Kg, o.lowerFirst = Zg, o.lt = tg, o.lte = rg, o.max = Gp, o.maxBy = zp, o.mean = Hp, o.meanBy = $p, o.min = qp, o.minBy = Kp, o.stubArray = Ji, o.stubFalse = Qi, o.stubObject = bp, o.stubString = Np, o.stubTrue = Fp, o.multiply = Zp, o.nth = oh, o.noConflict = Ip, o.noop = Vi, o.now = Tr, o.pad = Xg, o.padEnd = kg, o.padStart = Yg, o.parseInt = Vg, o.random = Wg, o.reduce = ld, o.reduceRight = cd, o.repeat = Jg, o.replace = Qg, o.result = Lg, o.round = Xp, o.runInContext = c, o.sample = hd, o.size = pd, o.snakeCase = jg, o.some = _d, o.sortedIndex = dh, o.sortedIndexBy = gh, o.sortedIndexOf = ph, o.sortedLastIndex = _h, o.sortedLastIndexBy = vh, o.sortedLastIndexOf = mh, o.startCase = ep, o.startsWith = tp, o.subtract = kp, o.sum = Yp, o.sumBy = Vp, o.template = rp, o.times = yp, o.toFinite = Se, o.toInteger = Z, o.toLength = bf, o.toLower = ip, o.toNumber = ie, o.toSafeInteger = ig, o.toString = sn, o.toUpper = up, o.trim = op, o.trimEnd = fp, o.trimStart = sp, o.truncate = lp, o.unescape = cp, o.uniqueId = Dp, o.upperCase = ap, o.upperFirst = Zi, o.each = _f, o.eachRight = vf, o.first = hf, Yi(o, function() {
|
|
4192
4192
|
var n = {};
|
|
@@ -4211,7 +4211,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
4211
4211
|
j.prototype[n] = function(i) {
|
|
4212
4212
|
var f = this.clone();
|
|
4213
4213
|
return f.__iteratees__.push({
|
|
4214
|
-
iteratee:
|
|
4214
|
+
iteratee: U(i, 3),
|
|
4215
4215
|
type: t
|
|
4216
4216
|
}), f.__filtered__ = f.__filtered__ || r, f;
|
|
4217
4217
|
};
|
|
@@ -4236,7 +4236,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
4236
4236
|
return Pt(t, n, e);
|
|
4237
4237
|
});
|
|
4238
4238
|
}), j.prototype.reject = function(n) {
|
|
4239
|
-
return this.filter(Sr(
|
|
4239
|
+
return this.filter(Sr(U(n)));
|
|
4240
4240
|
}, j.prototype.slice = function(n, e) {
|
|
4241
4241
|
n = Z(n);
|
|
4242
4242
|
var t = this;
|
|
@@ -4279,7 +4279,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
4279
4279
|
var r = t.name + "";
|
|
4280
4280
|
cn.call(it, r) || (it[r] = []), it[r].push({ name: e, func: t });
|
|
4281
4281
|
}
|
|
4282
|
-
}), it[gr(u,
|
|
4282
|
+
}), it[gr(u, fn).name] = [{
|
|
4283
4283
|
name: "wrapper",
|
|
4284
4284
|
func: u
|
|
4285
4285
|
}], j.prototype.clone = cc, j.prototype.reverse = ac, j.prototype.value = hc, o.prototype.at = zh, o.prototype.chain = Hh, o.prototype.commit = $h, o.prototype.next = qh, o.prototype.plant = Zh, o.prototype.reverse = Xh, o.prototype.toJSON = o.prototype.valueOf = o.prototype.value = kh, o.prototype.first = o.prototype.head, xt && (o.prototype[xt] = Kh), o;
|
|
@@ -4348,35 +4348,35 @@ async function Q0(d, h) {
|
|
|
4348
4348
|
const ln = ji(p, await Yf(C, d, h), !0);
|
|
4349
4349
|
const H = ln.resource;
|
|
4350
4350
|
const Y = /* @__PURE__ */ new Set();
|
|
4351
|
-
let
|
|
4352
|
-
for await (const { field: D, annotation:
|
|
4353
|
-
const
|
|
4354
|
-
if (D.type === "signature" && (
|
|
4351
|
+
let fn = !1;
|
|
4352
|
+
for await (const { field: D, annotation: M } of ss(H, h, void 0, void 0, void 0, !0)) {
|
|
4353
|
+
const rn = Y0[D.type];
|
|
4354
|
+
if (D.type === "signature" && (fn = !0), rn && !z0(M)) {
|
|
4355
4355
|
const en = {
|
|
4356
|
-
id:
|
|
4356
|
+
id: M.id,
|
|
4357
4357
|
name: D.name,
|
|
4358
|
-
type:
|
|
4358
|
+
type: rn,
|
|
4359
4359
|
page: D.pageIndex + 1,
|
|
4360
4360
|
rect: D.bbox,
|
|
4361
4361
|
required: D.required
|
|
4362
4362
|
};
|
|
4363
4363
|
S.push(en);
|
|
4364
|
-
let tn = H.pages[
|
|
4365
|
-
tn && await h.removePageAnnotation(H, tn,
|
|
4364
|
+
let tn = H.pages[M.pageIndex];
|
|
4365
|
+
tn && await h.removePageAnnotation(H, tn, M).toPromise();
|
|
4366
4366
|
} else
|
|
4367
|
-
Y.add(
|
|
4367
|
+
Y.add(M.pageIndex);
|
|
4368
4368
|
}
|
|
4369
4369
|
for (const D of Y) {
|
|
4370
|
-
const
|
|
4371
|
-
|
|
4370
|
+
const M = H.pages[D];
|
|
4371
|
+
M && await h.flattenPage(H, M, { flag: N0.Display }).toPromise();
|
|
4372
4372
|
}
|
|
4373
|
-
if (
|
|
4373
|
+
if (fn) {
|
|
4374
4374
|
var u = [];
|
|
4375
4375
|
try {
|
|
4376
4376
|
const D = await h.saveAsCopy(H).toPromise();
|
|
4377
|
-
const
|
|
4378
|
-
const
|
|
4379
|
-
const J =
|
|
4377
|
+
const M = kf();
|
|
4378
|
+
const rn = ji(u, await Yf(M, D, h), !0);
|
|
4379
|
+
const J = rn.resource;
|
|
4380
4380
|
const en = await J0(J, h);
|
|
4381
4381
|
return { file: en, annotations: S };
|
|
4382
4382
|
} catch (E) {
|
|
@@ -4532,11 +4532,11 @@ const t_ = ns(({
|
|
|
4532
4532
|
defaultType: x,
|
|
4533
4533
|
selectOnCreation: p = !0
|
|
4534
4534
|
}, F) => {
|
|
4535
|
-
const A = Pe(/* @__PURE__ */ new Set()), [T, L] = mn(u), { provides: S, state: { selectedUids: C, pages: ln } } = R0(w), [H, Y] = mn(!1), { provides:
|
|
4535
|
+
const A = Pe(/* @__PURE__ */ new Set()), [T, L] = mn(u), { provides: S, state: { selectedUids: C, pages: ln } } = R0(w), [H, Y] = mn(!1), { provides: fn } = us(w), D = Pe(fn), M = Pe(S), rn = Pe(!1), J = Pe({}), en = fu(w), { provides: tn } = rs(), { provides: an } = is();
|
|
4536
4536
|
es(F, () => ({
|
|
4537
4537
|
setLocale: (G) => L(G)
|
|
4538
4538
|
}));
|
|
4539
|
-
const
|
|
4539
|
+
const un = In((G, dn, Nn) => {
|
|
4540
4540
|
var _e, Fn;
|
|
4541
4541
|
if (tn && an) {
|
|
4542
4542
|
an.scrollToPage({ pageNumber: Nn + 1, behavior: "smooth" });
|
|
@@ -4545,15 +4545,15 @@ const t_ = ns(({
|
|
|
4545
4545
|
}
|
|
4546
4546
|
}, [tn, en == null ? void 0 : en.scale, an]);
|
|
4547
4547
|
Dn(() => {
|
|
4548
|
-
|
|
4548
|
+
M.current = S;
|
|
4549
4549
|
}, [S]), Dn(() => {
|
|
4550
|
-
D.current =
|
|
4551
|
-
}, [
|
|
4550
|
+
D.current = fn;
|
|
4551
|
+
}, [fn]);
|
|
4552
4552
|
const N = In((G) => {
|
|
4553
|
-
|
|
4553
|
+
rn.current || A.current.forEach((dn) => {
|
|
4554
4554
|
dn(G);
|
|
4555
4555
|
});
|
|
4556
|
-
}, []), $ = Mt(() => e_(J,
|
|
4556
|
+
}, []), $ = Mt(() => e_(J, M, A, Object.keys(ln).length, x, R, D, un, p), [ln, un]);
|
|
4557
4557
|
Dn(() => (E && E($), () => {
|
|
4558
4558
|
E && E(null);
|
|
4559
4559
|
}), [$, E]), Dn(() => {
|
|
@@ -4594,7 +4594,7 @@ const t_ = ns(({
|
|
|
4594
4594
|
}, [H]), Dn(() => {
|
|
4595
4595
|
N && N({
|
|
4596
4596
|
type: "selection",
|
|
4597
|
-
selectedAnnotationsId: C.map((G) => ke(G,
|
|
4597
|
+
selectedAnnotationsId: C.map((G) => ke(G, M.current).id)
|
|
4598
4598
|
});
|
|
4599
4599
|
}, [C]);
|
|
4600
4600
|
const Q = Mt(() => ({
|
|
@@ -4806,14 +4806,14 @@ const t_ = ns(({
|
|
|
4806
4806
|
onDocumentLoaded: ln,
|
|
4807
4807
|
usage: H,
|
|
4808
4808
|
initialLocale: Y,
|
|
4809
|
-
setHistoryCapability:
|
|
4809
|
+
setHistoryCapability: fn,
|
|
4810
4810
|
setPdfBuffer: D
|
|
4811
|
-
},
|
|
4812
|
-
const { engine:
|
|
4813
|
-
if (es(
|
|
4811
|
+
}, M) => {
|
|
4812
|
+
const { engine: rn, error: J, isLoading: en } = ts(), [tn, an] = mn(null), un = Pe(null);
|
|
4813
|
+
if (es(M, () => ({
|
|
4814
4814
|
setLocale: (N) => {
|
|
4815
4815
|
var $;
|
|
4816
|
-
return ($ =
|
|
4816
|
+
return ($ = un.current) == null ? void 0 : $.setLocale(N);
|
|
4817
4817
|
}
|
|
4818
4818
|
})), Dn(() => {
|
|
4819
4819
|
S(en), C(!!J);
|
|
@@ -4824,7 +4824,7 @@ const t_ = ns(({
|
|
|
4824
4824
|
/* @__PURE__ */ O("p", { className: "pdf-sentinel-error-message", children: N })
|
|
4825
4825
|
] }) });
|
|
4826
4826
|
}
|
|
4827
|
-
return en || !
|
|
4827
|
+
return en || !rn ? /* @__PURE__ */ O(eu, {}) : /* @__PURE__ */ O(e0, { engine: rn, plugins: d, onInitialized: async (N) => {
|
|
4828
4828
|
var dn, Nn, _e, Fn, Rn, Oe;
|
|
4829
4829
|
const $ = (dn = N.getPlugin(c0.id)) == null ? void 0 : dn.provides(), Q = (Nn = N.getPlugin(t0.id)) == null ? void 0 : Nn.provides();
|
|
4830
4830
|
w(((_e = N.getPlugin(v0.id)) == null ? void 0 : _e.provides()) || null), R(((Fn = N.getPlugin(w0.id)) == null ? void 0 : Fn.provides()) || null);
|
|
@@ -4834,14 +4834,14 @@ const t_ = ns(({
|
|
|
4834
4834
|
}), $) {
|
|
4835
4835
|
let Pn;
|
|
4836
4836
|
if (H.type === "annotation") {
|
|
4837
|
-
const { file: On, annotations: at } = await Q0(T,
|
|
4837
|
+
const { file: On, annotations: at } = await Q0(T, rn);
|
|
4838
4838
|
Pn = On, H.initialAnnotations === "readFromDocument" && (H.initialAnnotations = at), an(H.initialAnnotations || []);
|
|
4839
4839
|
} else
|
|
4840
4840
|
Pn = T;
|
|
4841
4841
|
if (typeof Pn == "string") {
|
|
4842
4842
|
await $.openDocumentUrl({ documentId: A, url: Pn }).toPromise();
|
|
4843
4843
|
const On = $.getDocument(A);
|
|
4844
|
-
On && D(await (
|
|
4844
|
+
On && D(await (rn == null ? void 0 : rn.saveAsCopy(On).toPromise()) || null);
|
|
4845
4845
|
} else
|
|
4846
4846
|
await $.openDocumentBuffer({
|
|
4847
4847
|
documentId: A,
|
|
@@ -4857,7 +4857,7 @@ const t_ = ns(({
|
|
|
4857
4857
|
{
|
|
4858
4858
|
setCurrentPage: p,
|
|
4859
4859
|
documentId: A,
|
|
4860
|
-
setHistoryCapability:
|
|
4860
|
+
setHistoryCapability: fn
|
|
4861
4861
|
}
|
|
4862
4862
|
),
|
|
4863
4863
|
/* @__PURE__ */ O("div", { style: { height: E ? "100%" : "calc(100% - 40px)", width: "100%" }, children: $ && /* @__PURE__ */ O(l0, { documentId: $, children: ({ isLoading: Q, isError: G }) => {
|
|
@@ -4946,7 +4946,7 @@ const t_ = ns(({
|
|
|
4946
4946
|
height: 80
|
|
4947
4947
|
},
|
|
4948
4948
|
defaultType: H.defaultType || z.SIGNATURE,
|
|
4949
|
-
ref:
|
|
4949
|
+
ref: un,
|
|
4950
4950
|
selectOnCreation: H.selectOnCreation,
|
|
4951
4951
|
children: dn
|
|
4952
4952
|
}
|
|
@@ -4975,17 +4975,17 @@ function s_({
|
|
|
4975
4975
|
Dn(() => F == null ? void 0 : F.subscribe(() => {
|
|
4976
4976
|
L((p == null ? void 0 : p.canUndo()) || !1), C((p == null ? void 0 : p.canRedo()) || !1);
|
|
4977
4977
|
}), [F, p]);
|
|
4978
|
-
const ln = d.filter((N) => N.area === "left"), H = d.filter((N) => N.area === "right"), [Y,
|
|
4978
|
+
const ln = d.filter((N) => N.area === "left"), H = d.filter((N) => N.area === "right"), [Y, fn] = mn(
|
|
4979
4979
|
() => h ? String(h) : "1"
|
|
4980
4980
|
);
|
|
4981
4981
|
Dn(() => {
|
|
4982
|
-
String(h) !== Y &&
|
|
4982
|
+
String(h) !== Y && fn(String(h));
|
|
4983
4983
|
}, [h]);
|
|
4984
4984
|
const D = In(() => {
|
|
4985
4985
|
u == null || u.zoomIn();
|
|
4986
|
-
}, [u]),
|
|
4986
|
+
}, [u]), M = In(() => {
|
|
4987
4987
|
u == null || u.zoomOut();
|
|
4988
|
-
}, [u]),
|
|
4988
|
+
}, [u]), rn = In(() => {
|
|
4989
4989
|
u == null || u.requestZoom(ru.FitWidth);
|
|
4990
4990
|
}, [u]), J = In(() => {
|
|
4991
4991
|
w == null || w.download();
|
|
@@ -4995,19 +4995,19 @@ function s_({
|
|
|
4995
4995
|
p == null || p.redo(), C((p == null ? void 0 : p.canRedo()) || !1), C((p == null ? void 0 : p.canRedo()) || !1);
|
|
4996
4996
|
}, [p]), an = In(
|
|
4997
4997
|
(N) => {
|
|
4998
|
-
|
|
4998
|
+
fn(N.target.value);
|
|
4999
4999
|
},
|
|
5000
5000
|
[]
|
|
5001
|
-
),
|
|
5001
|
+
), un = In(() => {
|
|
5002
5002
|
if (!E)
|
|
5003
5003
|
return;
|
|
5004
5004
|
const N = Number.parseInt(Y, 10);
|
|
5005
5005
|
if (Number.isNaN(N)) {
|
|
5006
|
-
|
|
5006
|
+
fn(String(h));
|
|
5007
5007
|
return;
|
|
5008
5008
|
}
|
|
5009
5009
|
const $ = Math.min(Math.max(N, 1), R || 0);
|
|
5010
|
-
|
|
5010
|
+
fn(String($)), E.scrollToPage({
|
|
5011
5011
|
pageNumber: $
|
|
5012
5012
|
});
|
|
5013
5013
|
}, [h, Y, E, R]);
|
|
@@ -5018,7 +5018,7 @@ function s_({
|
|
|
5018
5018
|
{
|
|
5019
5019
|
className: `tbButton ${u ? "" : "disabled"}`,
|
|
5020
5020
|
title: A("zoomOut"),
|
|
5021
|
-
onClick:
|
|
5021
|
+
onClick: M,
|
|
5022
5022
|
children: /* @__PURE__ */ O("i", { className: "fal fa-minus" })
|
|
5023
5023
|
}
|
|
5024
5024
|
),
|
|
@@ -5036,7 +5036,7 @@ function s_({
|
|
|
5036
5036
|
{
|
|
5037
5037
|
className: `tbButton ${u ? "" : "disabled"}`,
|
|
5038
5038
|
title: A("resetZoom"),
|
|
5039
|
-
onClick:
|
|
5039
|
+
onClick: rn,
|
|
5040
5040
|
children: /* @__PURE__ */ O("i", { className: "fal fa-expand" })
|
|
5041
5041
|
}
|
|
5042
5042
|
),
|
|
@@ -5060,7 +5060,7 @@ function s_({
|
|
|
5060
5060
|
className: `tbInput ${R ? "" : "disabled"}`,
|
|
5061
5061
|
value: Y,
|
|
5062
5062
|
onChange: an,
|
|
5063
|
-
onBlur:
|
|
5063
|
+
onBlur: un,
|
|
5064
5064
|
min: "1"
|
|
5065
5065
|
}
|
|
5066
5066
|
),
|
|
@@ -5133,7 +5133,7 @@ function b_({
|
|
|
5133
5133
|
Dn(() => {
|
|
5134
5134
|
p && y0(p);
|
|
5135
5135
|
}, [p]);
|
|
5136
|
-
const
|
|
5136
|
+
const fn = Mt(() => [
|
|
5137
5137
|
ae(a0),
|
|
5138
5138
|
ae(i0),
|
|
5139
5139
|
ae(f0),
|
|
@@ -5152,7 +5152,7 @@ function b_({
|
|
|
5152
5152
|
ae(b0, {
|
|
5153
5153
|
autoCommit: !0
|
|
5154
5154
|
})
|
|
5155
|
-
], []), D = `pdf-sentinel-doc-${Math.random().toString(36).substring(2, 9)}`, [
|
|
5155
|
+
], []), D = `pdf-sentinel-doc-${Math.random().toString(36).substring(2, 9)}`, [M, rn] = mn(null), [J, en] = mn(null), [tn, an] = mn(null), [un, N] = mn(null), [$, Q] = mn(1), [G, dn] = mn(0), [Nn, _e] = mn(null), [Fn, Rn] = mn(null), [Oe, Pn] = mn(null);
|
|
5156
5156
|
Dn(() => {
|
|
5157
5157
|
var he;
|
|
5158
5158
|
(he = Y.current) == null || he.setLocale(w);
|
|
@@ -5165,16 +5165,16 @@ function b_({
|
|
|
5165
5165
|
removeButtons: Le || [],
|
|
5166
5166
|
currentPage: $,
|
|
5167
5167
|
totalPages: G,
|
|
5168
|
-
zoomCapability:
|
|
5168
|
+
zoomCapability: M,
|
|
5169
5169
|
scrollCapability: tn,
|
|
5170
5170
|
exportCapability: J,
|
|
5171
|
-
historyCapability:
|
|
5171
|
+
historyCapability: un,
|
|
5172
5172
|
annotationsApi: Fn
|
|
5173
5173
|
}
|
|
5174
|
-
) }), [w, R, $, G, u,
|
|
5174
|
+
) }), [w, R, $, G, u, M, J, tn, un]), at = In(() => /* @__PURE__ */ O(n0, { engine: p, isLoading: F, error: A, children: /* @__PURE__ */ O(
|
|
5175
5175
|
f_,
|
|
5176
5176
|
{
|
|
5177
|
-
setZoomCapability:
|
|
5177
|
+
setZoomCapability: rn,
|
|
5178
5178
|
setExportCapability: en,
|
|
5179
5179
|
setScrollCapability: an,
|
|
5180
5180
|
setHistoryCapability: N,
|
|
@@ -5182,7 +5182,7 @@ function b_({
|
|
|
5182
5182
|
setTotalPages: dn,
|
|
5183
5183
|
setForm: _e,
|
|
5184
5184
|
setAnnotationsApi: Rn,
|
|
5185
|
-
plugins:
|
|
5185
|
+
plugins: fn,
|
|
5186
5186
|
hideToolbar: u,
|
|
5187
5187
|
documentId: D,
|
|
5188
5188
|
pdf: d,
|
|
@@ -5211,13 +5211,13 @@ function b_({
|
|
|
5211
5211
|
closedPdf: ln,
|
|
5212
5212
|
helpers: {
|
|
5213
5213
|
zoomIn: () => {
|
|
5214
|
-
|
|
5214
|
+
M == null || M.zoomIn();
|
|
5215
5215
|
},
|
|
5216
5216
|
zoomOut: () => {
|
|
5217
|
-
|
|
5217
|
+
M == null || M.zoomOut();
|
|
5218
5218
|
},
|
|
5219
5219
|
resetZoom: () => {
|
|
5220
|
-
|
|
5220
|
+
M == null || M.requestZoom(ru.FitWidth);
|
|
5221
5221
|
},
|
|
5222
5222
|
scrollToPage: (he) => {
|
|
5223
5223
|
tn == null || tn.scrollToPage({ pageNumber: he });
|