@borurio-print/print-designer 1.0.22 → 1.0.23
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-lib/{canvasPdfGenerator-pJNUI5Gk.js → canvasPdfGenerator-D8G0wt4_.js} +859 -859
- package/dist-lib/core/canvasPdfGenerator.d.ts +1 -1
- package/dist-lib/{index-Bu8jtsvL.js → index-BgS_O90Y.js} +4 -4
- package/dist-lib/{index.es-ZRdg0tBY.js → index.es-Dnr3WAbj.js} +2 -2
- package/dist-lib/index.js +1 -1
- package/dist-lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as Mc, f as Bs, g as Rs, r as Ic, a as Ec, b as zu, c as Cc, J as Fc, Q as
|
|
1
|
+
import { i as Mc, f as Bs, g as Rs, r as Ic, a as Ec, b as zu, c as Cc, J as Fc, Q as jc, l as Oc, d as Bc, e as nf, T as Rc, h as Tc, j as Dc } from "./index-BgS_O90Y.js";
|
|
2
2
|
function xe(r) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
4
|
return xe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
@@ -7,7 +7,7 @@ function xe(r) {
|
|
|
7
7
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
8
8
|
}, xe(r);
|
|
9
9
|
}
|
|
10
|
-
var Zr = Uint8Array,
|
|
10
|
+
var Zr = Uint8Array, jr = Uint16Array, Qo = Int32Array, tu = new Zr([
|
|
11
11
|
0,
|
|
12
12
|
0,
|
|
13
13
|
0,
|
|
@@ -77,7 +77,7 @@ var Zr = Uint8Array, Or = Uint16Array, Qo = Int32Array, tu = new Zr([
|
|
|
77
77
|
0,
|
|
78
78
|
0
|
|
79
79
|
]), Hu = new Zr([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), af = function(r, t) {
|
|
80
|
-
for (var e = new
|
|
80
|
+
for (var e = new jr(31), n = 0; n < 31; ++n)
|
|
81
81
|
e[n] = t += 1 << r[n - 1];
|
|
82
82
|
for (var s = new Qo(e[30]), n = 1; n < 30; ++n)
|
|
83
83
|
for (var a = e[n]; a < e[n + 1]; ++a)
|
|
@@ -85,27 +85,27 @@ var Zr = Uint8Array, Or = Uint16Array, Qo = Int32Array, tu = new Zr([
|
|
|
85
85
|
return { b: e, r: s };
|
|
86
86
|
}, sf = af(tu, 2), qc = sf.b, zo = sf.r;
|
|
87
87
|
qc[28] = 258, zo[258] = 28;
|
|
88
|
-
var Uc = af(eu, 0), Wu = Uc.r, Ho = new
|
|
88
|
+
var Uc = af(eu, 0), Wu = Uc.r, Ho = new jr(32768);
|
|
89
89
|
for (var Ce = 0; Ce < 32768; ++Ce) {
|
|
90
|
-
var
|
|
91
|
-
|
|
90
|
+
var Jn = (Ce & 43690) >> 1 | (Ce & 21845) << 1;
|
|
91
|
+
Jn = (Jn & 52428) >> 2 | (Jn & 13107) << 2, Jn = (Jn & 61680) >> 4 | (Jn & 3855) << 4, Ho[Ce] = ((Jn & 65280) >> 8 | (Jn & 255) << 8) >> 1;
|
|
92
92
|
}
|
|
93
93
|
var Ca = (function(r, t, e) {
|
|
94
|
-
for (var n = r.length, s = 0, a = new
|
|
94
|
+
for (var n = r.length, s = 0, a = new jr(t); s < n; ++s)
|
|
95
95
|
r[s] && ++a[r[s] - 1];
|
|
96
|
-
var c = new
|
|
96
|
+
var c = new jr(t);
|
|
97
97
|
for (s = 1; s < t; ++s)
|
|
98
98
|
c[s] = c[s - 1] + a[s - 1] << 1;
|
|
99
99
|
var u;
|
|
100
100
|
if (e) {
|
|
101
|
-
u = new
|
|
101
|
+
u = new jr(1 << t);
|
|
102
102
|
var f = 15 - t;
|
|
103
103
|
for (s = 0; s < n; ++s)
|
|
104
104
|
if (r[s])
|
|
105
105
|
for (var d = s << 4 | r[s], g = t - r[s], x = c[r[s] - 1]++ << g, N = x | (1 << g) - 1; x <= N; ++x)
|
|
106
106
|
u[Ho[x] >> f] = d;
|
|
107
107
|
} else
|
|
108
|
-
for (u = new
|
|
108
|
+
for (u = new jr(n), s = 0; s < n; ++s)
|
|
109
109
|
r[s] && (u[s] = Ho[c[r[s] - 1]++] >> 15 - r[s]);
|
|
110
110
|
return u;
|
|
111
111
|
}), xi = new Zr(288);
|
|
@@ -150,15 +150,15 @@ var zc = /* @__PURE__ */ Ca(xi, 9, 0), Hc = /* @__PURE__ */ Ca(Is, 5, 0), of = f
|
|
|
150
150
|
u = e[e[d].f < e[x].f ? d++ : x++], f = e[d != g && e[d].f < e[x].f ? d++ : x++], e[g++] = { s: -1, f: u.f + f.f, l: u, r: f };
|
|
151
151
|
for (var N = a[0].s, n = 1; n < s; ++n)
|
|
152
152
|
a[n].s > N && (N = a[n].s);
|
|
153
|
-
var p = new
|
|
154
|
-
if (
|
|
155
|
-
var n = 0, P = 0, B =
|
|
153
|
+
var p = new jr(N + 1), j = Wo(e[g - 1], p, 0);
|
|
154
|
+
if (j > t) {
|
|
155
|
+
var n = 0, P = 0, B = j - t, k = 1 << B;
|
|
156
156
|
for (a.sort(function(mt, dt) {
|
|
157
157
|
return p[dt.s] - p[mt.s] || mt.f - dt.f;
|
|
158
158
|
}); n < s; ++n) {
|
|
159
159
|
var G = a[n].s;
|
|
160
160
|
if (p[G] > t)
|
|
161
|
-
P += k - (1 <<
|
|
161
|
+
P += k - (1 << j - p[G]), p[G] = t;
|
|
162
162
|
else
|
|
163
163
|
break;
|
|
164
164
|
}
|
|
@@ -170,15 +170,15 @@ var zc = /* @__PURE__ */ Ca(xi, 9, 0), Hc = /* @__PURE__ */ Ca(Is, 5, 0), of = f
|
|
|
170
170
|
var q = a[n].s;
|
|
171
171
|
p[q] == t && (--p[q], ++P);
|
|
172
172
|
}
|
|
173
|
-
|
|
173
|
+
j = t;
|
|
174
174
|
}
|
|
175
|
-
return { t: new Zr(p), l:
|
|
175
|
+
return { t: new Zr(p), l: j };
|
|
176
176
|
}, Wo = function(r, t, e) {
|
|
177
177
|
return r.s == -1 ? Math.max(Wo(r.l, t, e + 1), Wo(r.r, t, e + 1)) : t[r.s] = e;
|
|
178
178
|
}, Gu = function(r) {
|
|
179
179
|
for (var t = r.length; t && !r[--t]; )
|
|
180
180
|
;
|
|
181
|
-
for (var e = new
|
|
181
|
+
for (var e = new jr(++t), n = 0, s = r[0], a = 1, c = function(f) {
|
|
182
182
|
e[n++] = f;
|
|
183
183
|
}, u = 1; u <= t; ++u)
|
|
184
184
|
if (r[u] == s && u != t)
|
|
@@ -210,7 +210,7 @@ var zc = /* @__PURE__ */ Ca(xi, 9, 0), Hc = /* @__PURE__ */ Ca(Is, 5, 0), of = f
|
|
|
210
210
|
return (s + 4 + n) * 8;
|
|
211
211
|
}, Vu = function(r, t, e, n, s, a, c, u, f, d, g) {
|
|
212
212
|
En(t, g++, e), ++s[256];
|
|
213
|
-
for (var x = Ao(s, 15), N = x.t, p = x.l,
|
|
213
|
+
for (var x = Ao(s, 15), N = x.t, p = x.l, j = Ao(a, 15), P = j.t, B = j.l, k = Gu(N), G = k.c, Y = k.n, q = Gu(P), it = q.c, mt = q.n, dt = new jr(19), K = 0; K < G.length; ++K)
|
|
214
214
|
++dt[G[K] & 31];
|
|
215
215
|
for (var K = 0; K < it.length; ++K)
|
|
216
216
|
++dt[it[K] & 31];
|
|
@@ -228,9 +228,9 @@ var zc = /* @__PURE__ */ Ca(xi, 9, 0), Hc = /* @__PURE__ */ Ca(Is, 5, 0), of = f
|
|
|
228
228
|
En(t, g + 3 * K, tt[Hu[K]]);
|
|
229
229
|
g += 3 * F;
|
|
230
230
|
for (var wt = [G, it], A = 0; A < 2; ++A)
|
|
231
|
-
for (var
|
|
232
|
-
var T =
|
|
233
|
-
En(t, g, Nt[T]), g += tt[T], T > 15 && (En(t, g,
|
|
231
|
+
for (var O = wt[A], K = 0; K < O.length; ++K) {
|
|
232
|
+
var T = O[K] & 31;
|
|
233
|
+
En(t, g, Nt[T]), g += tt[T], T > 15 && (En(t, g, O[K] >> 5 & 127), g += O[K] >> 12);
|
|
234
234
|
}
|
|
235
235
|
} else
|
|
236
236
|
ot = zc, ft = xi, rt = Hc, ht = Is;
|
|
@@ -239,8 +239,8 @@ var zc = /* @__PURE__ */ Ca(xi, 9, 0), Hc = /* @__PURE__ */ Ca(Is, 5, 0), of = f
|
|
|
239
239
|
if (H > 255) {
|
|
240
240
|
var T = H >> 18 & 31;
|
|
241
241
|
Ia(t, g, ot[T + 257]), g += ft[T + 257], T > 7 && (En(t, g, H >> 23 & 31), g += tu[T]);
|
|
242
|
-
var
|
|
243
|
-
Ia(t, g, rt[
|
|
242
|
+
var J = H & 31;
|
|
243
|
+
Ia(t, g, rt[J]), g += ht[J], J > 3 && (Ia(t, g, H >> 5 & 8191), g += eu[J]);
|
|
244
244
|
} else
|
|
245
245
|
Ia(t, g, ot[H]), g += ft[H];
|
|
246
246
|
}
|
|
@@ -249,9 +249,9 @@ var zc = /* @__PURE__ */ Ca(xi, 9, 0), Hc = /* @__PURE__ */ Ca(Is, 5, 0), of = f
|
|
|
249
249
|
var c = a.z || r.length, u = new Zr(n + c + 5 * (1 + Math.ceil(c / 7e3)) + s), f = u.subarray(n, u.length - s), d = a.l, g = (a.r || 0) & 7;
|
|
250
250
|
if (t) {
|
|
251
251
|
g && (f[0] = a.r >> 3);
|
|
252
|
-
for (var x = Gc[t - 1], N = x >> 13, p = x & 8191,
|
|
253
|
-
return (r[Dt] ^ r[Dt + 1] << k ^ r[Dt + 2] << G) &
|
|
254
|
-
}, q = new Qo(25e3), it = new
|
|
252
|
+
for (var x = Gc[t - 1], N = x >> 13, p = x & 8191, j = (1 << e) - 1, P = a.p || new jr(32768), B = a.h || new jr(j + 1), k = Math.ceil(e / 3), G = 2 * k, Y = function(Dt) {
|
|
253
|
+
return (r[Dt] ^ r[Dt + 1] << k ^ r[Dt + 2] << G) & j;
|
|
254
|
+
}, q = new Qo(25e3), it = new jr(288), mt = new jr(32), dt = 0, K = 0, R = a.i || 0, tt = 0, _ = a.w || 0, F = 0; R + 2 < c; ++R) {
|
|
255
255
|
var z = Y(R), U = R & 32767, nt = B[z];
|
|
256
256
|
if (P[U] = nt, B[z] = U, _ <= R) {
|
|
257
257
|
var ot = c - R;
|
|
@@ -264,14 +264,14 @@ var zc = /* @__PURE__ */ Ca(xi, 9, 0), Hc = /* @__PURE__ */ Ca(Is, 5, 0), of = f
|
|
|
264
264
|
}
|
|
265
265
|
var rt = 2, ht = 0, Nt = p, wt = U - nt & 32767;
|
|
266
266
|
if (ot > 2 && z == Y(R - wt))
|
|
267
|
-
for (var A = Math.min(N, ot) - 1,
|
|
267
|
+
for (var A = Math.min(N, ot) - 1, O = Math.min(32767, R), T = Math.min(258, ot); wt <= O && --Nt && U != nt; ) {
|
|
268
268
|
if (r[R + rt] == r[R + rt - wt]) {
|
|
269
269
|
for (var H = 0; H < T && r[R + H] == r[R + H - wt]; ++H)
|
|
270
270
|
;
|
|
271
271
|
if (H > rt) {
|
|
272
272
|
if (rt = H, ht = wt, H > A)
|
|
273
273
|
break;
|
|
274
|
-
for (var
|
|
274
|
+
for (var J = Math.min(wt, H - 2), Z = 0, ft = 0; ft < J; ++ft) {
|
|
275
275
|
var at = R - wt + ft & 32767, st = P[at], gt = at - st & 32767;
|
|
276
276
|
gt > Z && (Z = gt, nt = at);
|
|
277
277
|
}
|
|
@@ -322,7 +322,7 @@ var zc = /* @__PURE__ */ Ca(xi, 9, 0), Hc = /* @__PURE__ */ Ca(Is, 5, 0), of = f
|
|
|
322
322
|
}, cf = function(r, t, e) {
|
|
323
323
|
for (; e; ++t)
|
|
324
324
|
r[t] = e, e >>>= 8;
|
|
325
|
-
},
|
|
325
|
+
}, Jc = function(r, t) {
|
|
326
326
|
var e = t.level, n = e == 0 ? 0 : e < 6 ? 1 : e == 9 ? 3 : 2;
|
|
327
327
|
if (r[0] = 120, r[1] = n << 6 | (t.dictionary && 32), r[1] |= 31 - (r[0] << 8 | r[1]) % 31, t.dictionary) {
|
|
328
328
|
var s = ff();
|
|
@@ -334,11 +334,11 @@ function Go(r, t) {
|
|
|
334
334
|
var e = ff();
|
|
335
335
|
e.p(r);
|
|
336
336
|
var n = Yc(r, t, t.dictionary ? 6 : 2, 4);
|
|
337
|
-
return
|
|
337
|
+
return Jc(n, t), cf(n, n.length - 4, e.d()), n;
|
|
338
338
|
}
|
|
339
|
-
var
|
|
339
|
+
var Xc = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), Kc = 0;
|
|
340
340
|
try {
|
|
341
|
-
|
|
341
|
+
Xc.decode(lf, { stream: !0 }), Kc = 1;
|
|
342
342
|
} catch {
|
|
343
343
|
}
|
|
344
344
|
function $c(r) {
|
|
@@ -378,10 +378,10 @@ function th() {
|
|
|
378
378
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
379
379
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function Ju(r, t) {
|
|
382
382
|
return $c(r) || Zc(r, t) || Qc(r, t) || th();
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function Xu(r, t = "utf8") {
|
|
385
385
|
return new TextDecoder(t).decode(r);
|
|
386
386
|
}
|
|
387
387
|
const eh = new TextEncoder();
|
|
@@ -710,7 +710,7 @@ class ru {
|
|
|
710
710
|
* @returns The decoded string.
|
|
711
711
|
*/
|
|
712
712
|
readUtf8(t = 1) {
|
|
713
|
-
return
|
|
713
|
+
return Xu(this.readBytes(t));
|
|
714
714
|
}
|
|
715
715
|
/**
|
|
716
716
|
* Read the next `n` bytes, return a string decoded with `encoding` and move pointer
|
|
@@ -721,7 +721,7 @@ class ru {
|
|
|
721
721
|
* @returns The decoded string.
|
|
722
722
|
*/
|
|
723
723
|
decodeText(t = 1, e = "utf8") {
|
|
724
|
-
return
|
|
724
|
+
return Xu(this.readBytes(t), e);
|
|
725
725
|
}
|
|
726
726
|
/**
|
|
727
727
|
* Write 0xff if the passed value is truthy, 0x00 otherwise and move pointer
|
|
@@ -1011,10 +1011,10 @@ try {
|
|
|
1011
1011
|
} catch {
|
|
1012
1012
|
mf = !1;
|
|
1013
1013
|
}
|
|
1014
|
-
const
|
|
1014
|
+
const Oa = new Uint8Array(256);
|
|
1015
1015
|
for (let r = 0; r < 256; r++)
|
|
1016
|
-
|
|
1017
|
-
|
|
1016
|
+
Oa[r] = r >= 252 ? 6 : r >= 248 ? 5 : r >= 240 ? 4 : r >= 224 ? 3 : r >= 192 ? 2 : 1;
|
|
1017
|
+
Oa[254] = Oa[255] = 1;
|
|
1018
1018
|
var Nh = (r) => {
|
|
1019
1019
|
if (typeof TextEncoder == "function" && TextEncoder.prototype.encode)
|
|
1020
1020
|
return new TextEncoder().encode(r);
|
|
@@ -1045,7 +1045,7 @@ var _h = (r, t) => {
|
|
|
1045
1045
|
a[s++] = c;
|
|
1046
1046
|
continue;
|
|
1047
1047
|
}
|
|
1048
|
-
let u =
|
|
1048
|
+
let u = Oa[c];
|
|
1049
1049
|
if (u > 4) {
|
|
1050
1050
|
a[s++] = 65533, n += u - 1;
|
|
1051
1051
|
continue;
|
|
@@ -1064,8 +1064,8 @@ var _h = (r, t) => {
|
|
|
1064
1064
|
let e = t - 1;
|
|
1065
1065
|
for (; e >= 0 && (r[e] & 192) === 128; )
|
|
1066
1066
|
e--;
|
|
1067
|
-
return e < 0 || e === 0 ? t : e +
|
|
1068
|
-
},
|
|
1067
|
+
return e < 0 || e === 0 ? t : e + Oa[r[e]] > t ? e : t;
|
|
1068
|
+
}, Jo = {
|
|
1069
1069
|
string2buf: Nh,
|
|
1070
1070
|
buf2string: _h,
|
|
1071
1071
|
utf8border: Sh
|
|
@@ -1076,26 +1076,26 @@ function kh() {
|
|
|
1076
1076
|
var Ph = kh;
|
|
1077
1077
|
const vs = 16209, Mh = 16191;
|
|
1078
1078
|
var Ih = function(t, e) {
|
|
1079
|
-
let n, s, a, c, u, f, d, g, x, N, p,
|
|
1079
|
+
let n, s, a, c, u, f, d, g, x, N, p, j, P, B, k, G, Y, q, it, mt, dt, K, R, tt;
|
|
1080
1080
|
const _ = t.state;
|
|
1081
|
-
n = t.next_in, R = t.input, s = n + (t.avail_in - 5), a = t.next_out, tt = t.output, c = a - (e - t.avail_out), u = a + (t.avail_out - 257), f = _.dmax, d = _.wsize, g = _.whave, x = _.wnext, N = _.window, p = _.hold,
|
|
1081
|
+
n = t.next_in, R = t.input, s = n + (t.avail_in - 5), a = t.next_out, tt = t.output, c = a - (e - t.avail_out), u = a + (t.avail_out - 257), f = _.dmax, d = _.wsize, g = _.whave, x = _.wnext, N = _.window, p = _.hold, j = _.bits, P = _.lencode, B = _.distcode, k = (1 << _.lenbits) - 1, G = (1 << _.distbits) - 1;
|
|
1082
1082
|
t:
|
|
1083
1083
|
do {
|
|
1084
|
-
|
|
1084
|
+
j < 15 && (p += R[n++] << j, j += 8, p += R[n++] << j, j += 8), Y = P[p & k];
|
|
1085
1085
|
e:
|
|
1086
1086
|
for (; ; ) {
|
|
1087
|
-
if (q = Y >>> 24, p >>>= q,
|
|
1087
|
+
if (q = Y >>> 24, p >>>= q, j -= q, q = Y >>> 16 & 255, q === 0)
|
|
1088
1088
|
tt[a++] = Y & 65535;
|
|
1089
1089
|
else if (q & 16) {
|
|
1090
|
-
it = Y & 65535, q &= 15, q && (
|
|
1090
|
+
it = Y & 65535, q &= 15, q && (j < q && (p += R[n++] << j, j += 8), it += p & (1 << q) - 1, p >>>= q, j -= q), j < 15 && (p += R[n++] << j, j += 8, p += R[n++] << j, j += 8), Y = B[p & G];
|
|
1091
1091
|
r:
|
|
1092
1092
|
for (; ; ) {
|
|
1093
|
-
if (q = Y >>> 24, p >>>= q,
|
|
1094
|
-
if (mt = Y & 65535, q &= 15,
|
|
1093
|
+
if (q = Y >>> 24, p >>>= q, j -= q, q = Y >>> 16 & 255, q & 16) {
|
|
1094
|
+
if (mt = Y & 65535, q &= 15, j < q && (p += R[n++] << j, j += 8, j < q && (p += R[n++] << j, j += 8)), mt += p & (1 << q) - 1, mt > f) {
|
|
1095
1095
|
t.msg = "invalid distance too far back", _.mode = vs;
|
|
1096
1096
|
break t;
|
|
1097
1097
|
}
|
|
1098
|
-
if (p >>>= q,
|
|
1098
|
+
if (p >>>= q, j -= q, q = a - c, mt > q) {
|
|
1099
1099
|
if (q = mt - q, q > g && _.sane) {
|
|
1100
1100
|
t.msg = "invalid distance too far back", _.mode = vs;
|
|
1101
1101
|
break t;
|
|
@@ -1161,9 +1161,9 @@ var Ih = function(t, e) {
|
|
|
1161
1161
|
break;
|
|
1162
1162
|
}
|
|
1163
1163
|
} while (n < s && a < u);
|
|
1164
|
-
it =
|
|
1164
|
+
it = j >> 3, n -= it, j -= it << 3, p &= (1 << j) - 1, t.next_in = n, t.next_out = a, t.avail_in = n < s ? 5 + (s - n) : 5 - (n - s), t.avail_out = a < u ? 257 + (u - a) : 257 - (a - u), _.hold = p, _.bits = j;
|
|
1165
1165
|
};
|
|
1166
|
-
const
|
|
1166
|
+
const Ji = 15, Ku = 852, $u = 592, Zu = 0, Lo = 1, Qu = 2, Eh = new Uint16Array([
|
|
1167
1167
|
/* Length codes 257..285 base */
|
|
1168
1168
|
3,
|
|
1169
1169
|
4,
|
|
@@ -1263,7 +1263,7 @@ const Xi = 15, Ku = 852, $u = 592, Zu = 0, Lo = 1, Qu = 2, Eh = new Uint16Array(
|
|
|
1263
1263
|
24577,
|
|
1264
1264
|
0,
|
|
1265
1265
|
0
|
|
1266
|
-
]),
|
|
1266
|
+
]), jh = new Uint8Array([
|
|
1267
1267
|
/* Distance codes 0..29 extra */
|
|
1268
1268
|
16,
|
|
1269
1269
|
16,
|
|
@@ -1297,34 +1297,34 @@ const Xi = 15, Ku = 852, $u = 592, Zu = 0, Lo = 1, Qu = 2, Eh = new Uint16Array(
|
|
|
1297
1297
|
29,
|
|
1298
1298
|
64,
|
|
1299
1299
|
64
|
|
1300
|
-
]),
|
|
1300
|
+
]), Oh = (r, t, e, n, s, a, c, u) => {
|
|
1301
1301
|
const f = u.bits;
|
|
1302
|
-
let d = 0, g = 0, x = 0, N = 0, p = 0,
|
|
1303
|
-
const tt = new Uint16Array(
|
|
1302
|
+
let d = 0, g = 0, x = 0, N = 0, p = 0, j = 0, P = 0, B = 0, k = 0, G = 0, Y, q, it, mt, dt, K = null, R;
|
|
1303
|
+
const tt = new Uint16Array(Ji + 1), _ = new Uint16Array(Ji + 1);
|
|
1304
1304
|
let F = null, z, U, nt;
|
|
1305
|
-
for (d = 0; d <=
|
|
1305
|
+
for (d = 0; d <= Ji; d++)
|
|
1306
1306
|
tt[d] = 0;
|
|
1307
1307
|
for (g = 0; g < n; g++)
|
|
1308
1308
|
tt[t[e + g]]++;
|
|
1309
|
-
for (p = f, N =
|
|
1309
|
+
for (p = f, N = Ji; N >= 1 && tt[N] === 0; N--)
|
|
1310
1310
|
;
|
|
1311
1311
|
if (p > N && (p = N), N === 0)
|
|
1312
1312
|
return s[a++] = 1 << 24 | 64 << 16 | 0, s[a++] = 1 << 24 | 64 << 16 | 0, u.bits = 1, 0;
|
|
1313
1313
|
for (x = 1; x < N && tt[x] === 0; x++)
|
|
1314
1314
|
;
|
|
1315
|
-
for (p < x && (p = x), B = 1, d = 1; d <=
|
|
1315
|
+
for (p < x && (p = x), B = 1, d = 1; d <= Ji; d++)
|
|
1316
1316
|
if (B <<= 1, B -= tt[d], B < 0)
|
|
1317
1317
|
return -1;
|
|
1318
1318
|
if (B > 0 && (r === Zu || N !== 1))
|
|
1319
1319
|
return -1;
|
|
1320
|
-
for (_[1] = 0, d = 1; d <
|
|
1320
|
+
for (_[1] = 0, d = 1; d < Ji; d++)
|
|
1321
1321
|
_[d + 1] = _[d] + tt[d];
|
|
1322
1322
|
for (g = 0; g < n; g++)
|
|
1323
1323
|
t[e + g] !== 0 && (c[_[t[e + g]]++] = g);
|
|
1324
|
-
if (r === Zu ? (K = F = c, R = 20) : r === Lo ? (K = Eh, F = Ch, R = 257) : (K = Fh, F =
|
|
1324
|
+
if (r === Zu ? (K = F = c, R = 20) : r === Lo ? (K = Eh, F = Ch, R = 257) : (K = Fh, F = jh, R = 0), G = 0, g = 0, d = x, dt = a, j = p, P = 0, it = -1, k = 1 << p, mt = k - 1, r === Lo && k > Ku || r === Qu && k > $u)
|
|
1325
1325
|
return 1;
|
|
1326
1326
|
for (; ; ) {
|
|
1327
|
-
z = d - P, c[g] + 1 < R ? (U = 0, nt = c[g]) : c[g] >= R ? (U = F[c[g] - R], nt = K[c[g] - R]) : (U = 96, nt = 0), Y = 1 << d - P, q = 1 <<
|
|
1327
|
+
z = d - P, c[g] + 1 < R ? (U = 0, nt = c[g]) : c[g] >= R ? (U = F[c[g] - R], nt = K[c[g] - R]) : (U = 96, nt = 0), Y = 1 << d - P, q = 1 << j, x = q;
|
|
1328
1328
|
do
|
|
1329
1329
|
q -= Y, s[dt + (G >> P) + q] = z << 24 | U << 16 | nt | 0;
|
|
1330
1330
|
while (q !== 0);
|
|
@@ -1336,16 +1336,16 @@ const Xi = 15, Ku = 852, $u = 592, Zu = 0, Lo = 1, Qu = 2, Eh = new Uint16Array(
|
|
|
1336
1336
|
d = t[e + c[g]];
|
|
1337
1337
|
}
|
|
1338
1338
|
if (d > p && (G & mt) !== it) {
|
|
1339
|
-
for (P === 0 && (P = p), dt += x,
|
|
1340
|
-
|
|
1341
|
-
if (k += 1 <<
|
|
1339
|
+
for (P === 0 && (P = p), dt += x, j = d - P, B = 1 << j; j + P < N && (B -= tt[j + P], !(B <= 0)); )
|
|
1340
|
+
j++, B <<= 1;
|
|
1341
|
+
if (k += 1 << j, r === Lo && k > Ku || r === Qu && k > $u)
|
|
1342
1342
|
return 1;
|
|
1343
|
-
it = G & mt, s[it] = p << 24 |
|
|
1343
|
+
it = G & mt, s[it] = p << 24 | j << 16 | dt - a | 0;
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
1346
|
return G !== 0 && (s[dt + G] = d - P << 24 | 64 << 16 | 0), u.bits = p, 0;
|
|
1347
1347
|
};
|
|
1348
|
-
var Fa =
|
|
1348
|
+
var Fa = Oh;
|
|
1349
1349
|
const Bh = 0, vf = 1, bf = 2, {
|
|
1350
1350
|
Z_FINISH: tl,
|
|
1351
1351
|
Z_BLOCK: Rh,
|
|
@@ -1358,7 +1358,7 @@ const Bh = 0, vf = 1, bf = 2, {
|
|
|
1358
1358
|
Z_MEM_ERROR: yf,
|
|
1359
1359
|
Z_BUF_ERROR: qh,
|
|
1360
1360
|
Z_DEFLATED: el
|
|
1361
|
-
} = pf, Ts = 16180, rl = 16181, nl = 16182, il = 16183, al = 16184, sl = 16185, ol = 16186, ul = 16187, ll = 16188, fl = 16189, Es = 16190, Cn = 16191, _o = 16192, cl = 16193, So = 16194, hl = 16195, dl = 16196, pl = 16197, gl = 16198, ws = 16199, ys = 16200, ml = 16201, vl = 16202, bl = 16203, wl = 16204, yl = 16205, ko = 16206, xl = 16207, Al = 16208,
|
|
1361
|
+
} = pf, Ts = 16180, rl = 16181, nl = 16182, il = 16183, al = 16184, sl = 16185, ol = 16186, ul = 16187, ll = 16188, fl = 16189, Es = 16190, Cn = 16191, _o = 16192, cl = 16193, So = 16194, hl = 16195, dl = 16196, pl = 16197, gl = 16198, ws = 16199, ys = 16200, ml = 16201, vl = 16202, bl = 16203, wl = 16204, yl = 16205, ko = 16206, xl = 16207, Al = 16208, Oe = 16209, xf = 16210, Af = 16211, Uh = 852, zh = 592, Hh = 15, Wh = Hh, Nl = (r) => (r >>> 24 & 255) + (r >>> 8 & 65280) + ((r & 65280) << 8) + ((r & 255) << 24);
|
|
1362
1362
|
function Gh() {
|
|
1363
1363
|
this.strm = null, this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new Uint16Array(320), this.work = new Uint16Array(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
1364
1364
|
}
|
|
@@ -1413,8 +1413,8 @@ const Yh = (r) => {
|
|
|
1413
1413
|
let s;
|
|
1414
1414
|
const a = r.state;
|
|
1415
1415
|
return a.window === null && (a.window = new Uint8Array(1 << a.wbits)), a.wsize === 0 && (a.wsize = 1 << a.wbits, a.wnext = 0, a.whave = 0), n >= a.wsize ? (a.window.set(t.subarray(e - a.wsize, e), 0), a.wnext = 0, a.whave = a.wsize) : (s = a.wsize - a.wnext, s > n && (s = n), a.window.set(t.subarray(e - n, e - n + s), a.wnext), n -= s, n ? (a.window.set(t.subarray(e - n, e), 0), a.wnext = n, a.whave = a.wsize) : (a.wnext += s, a.wnext === a.wsize && (a.wnext = 0), a.whave < a.wsize && (a.whave += s))), 0;
|
|
1416
|
-
},
|
|
1417
|
-
let e, n, s, a, c, u, f, d, g, x, N, p,
|
|
1416
|
+
}, Jh = (r, t) => {
|
|
1417
|
+
let e, n, s, a, c, u, f, d, g, x, N, p, j, P, B = 0, k, G, Y, q, it, mt, dt, K;
|
|
1418
1418
|
const R = new Uint8Array(4);
|
|
1419
1419
|
let tt, _;
|
|
1420
1420
|
const F = (
|
|
@@ -1443,15 +1443,15 @@ const Yh = (r) => {
|
|
|
1443
1443
|
}
|
|
1444
1444
|
if (e.head && (e.head.done = !1), !(e.wrap & 1) || /* check if zlib header allowed */
|
|
1445
1445
|
(((d & 255) << 8) + (d >> 8)) % 31) {
|
|
1446
|
-
r.msg = "incorrect header check", e.mode =
|
|
1446
|
+
r.msg = "incorrect header check", e.mode = Oe;
|
|
1447
1447
|
break;
|
|
1448
1448
|
}
|
|
1449
1449
|
if ((d & 15) !== el) {
|
|
1450
|
-
r.msg = "unknown compression method", e.mode =
|
|
1450
|
+
r.msg = "unknown compression method", e.mode = Oe;
|
|
1451
1451
|
break;
|
|
1452
1452
|
}
|
|
1453
1453
|
if (d >>>= 4, g -= 4, dt = (d & 15) + 8, e.wbits === 0 && (e.wbits = dt), dt > 15 || dt > e.wbits) {
|
|
1454
|
-
r.msg = "invalid window size", e.mode =
|
|
1454
|
+
r.msg = "invalid window size", e.mode = Oe;
|
|
1455
1455
|
break;
|
|
1456
1456
|
}
|
|
1457
1457
|
e.dmax = 1 << e.wbits, e.flags = 0, r.adler = e.check = 1, e.mode = d & 512 ? fl : Cn, d = 0, g = 0;
|
|
@@ -1463,11 +1463,11 @@ const Yh = (r) => {
|
|
|
1463
1463
|
u--, d += n[a++] << g, g += 8;
|
|
1464
1464
|
}
|
|
1465
1465
|
if (e.flags = d, (e.flags & 255) !== el) {
|
|
1466
|
-
r.msg = "unknown compression method", e.mode =
|
|
1466
|
+
r.msg = "unknown compression method", e.mode = Oe;
|
|
1467
1467
|
break;
|
|
1468
1468
|
}
|
|
1469
1469
|
if (e.flags & 57344) {
|
|
1470
|
-
r.msg = "unknown header flags set", e.mode =
|
|
1470
|
+
r.msg = "unknown header flags set", e.mode = Oe;
|
|
1471
1471
|
break;
|
|
1472
1472
|
}
|
|
1473
1473
|
e.head && (e.head.text = d >> 8 & 1), e.flags & 512 && e.wrap & 4 && (R[0] = d & 255, R[1] = d >>> 8 & 255, e.check = hn(e.check, R, 2, 0)), d = 0, g = 0, e.mode = nl;
|
|
@@ -1547,7 +1547,7 @@ const Yh = (r) => {
|
|
|
1547
1547
|
u--, d += n[a++] << g, g += 8;
|
|
1548
1548
|
}
|
|
1549
1549
|
if (e.wrap & 4 && d !== (e.check & 65535)) {
|
|
1550
|
-
r.msg = "header crc mismatch", e.mode =
|
|
1550
|
+
r.msg = "header crc mismatch", e.mode = Oe;
|
|
1551
1551
|
break;
|
|
1552
1552
|
}
|
|
1553
1553
|
d = 0, g = 0;
|
|
@@ -1595,7 +1595,7 @@ const Yh = (r) => {
|
|
|
1595
1595
|
e.mode = dl;
|
|
1596
1596
|
break;
|
|
1597
1597
|
case 3:
|
|
1598
|
-
r.msg = "invalid block type", e.mode =
|
|
1598
|
+
r.msg = "invalid block type", e.mode = Oe;
|
|
1599
1599
|
}
|
|
1600
1600
|
d >>>= 2, g -= 2;
|
|
1601
1601
|
break;
|
|
@@ -1606,7 +1606,7 @@ const Yh = (r) => {
|
|
|
1606
1606
|
u--, d += n[a++] << g, g += 8;
|
|
1607
1607
|
}
|
|
1608
1608
|
if ((d & 65535) !== (d >>> 16 ^ 65535)) {
|
|
1609
|
-
r.msg = "invalid stored block lengths", e.mode =
|
|
1609
|
+
r.msg = "invalid stored block lengths", e.mode = Oe;
|
|
1610
1610
|
break;
|
|
1611
1611
|
}
|
|
1612
1612
|
if (e.length = d & 65535, d = 0, g = 0, e.mode = So, t === bs)
|
|
@@ -1631,7 +1631,7 @@ const Yh = (r) => {
|
|
|
1631
1631
|
u--, d += n[a++] << g, g += 8;
|
|
1632
1632
|
}
|
|
1633
1633
|
if (e.nlen = (d & 31) + 257, d >>>= 5, g -= 5, e.ndist = (d & 31) + 1, d >>>= 5, g -= 5, e.ncode = (d & 15) + 4, d >>>= 4, g -= 4, e.nlen > 286 || e.ndist > 30) {
|
|
1634
|
-
r.msg = "too many length or distance symbols", e.mode =
|
|
1634
|
+
r.msg = "too many length or distance symbols", e.mode = Oe;
|
|
1635
1635
|
break;
|
|
1636
1636
|
}
|
|
1637
1637
|
e.have = 0, e.mode = pl;
|
|
@@ -1648,7 +1648,7 @@ const Yh = (r) => {
|
|
|
1648
1648
|
for (; e.have < 19; )
|
|
1649
1649
|
e.lens[F[e.have++]] = 0;
|
|
1650
1650
|
if (e.lencode = e.lendyn, e.lenbits = 7, tt = { bits: e.lenbits }, K = Fa(Bh, e.lens, 0, 19, e.lencode, 0, e.work, tt), e.lenbits = tt.bits, K) {
|
|
1651
|
-
r.msg = "invalid code lengths set", e.mode =
|
|
1651
|
+
r.msg = "invalid code lengths set", e.mode = Oe;
|
|
1652
1652
|
break;
|
|
1653
1653
|
}
|
|
1654
1654
|
e.have = 0, e.mode = gl;
|
|
@@ -1670,7 +1670,7 @@ const Yh = (r) => {
|
|
|
1670
1670
|
u--, d += n[a++] << g, g += 8;
|
|
1671
1671
|
}
|
|
1672
1672
|
if (d >>>= k, g -= k, e.have === 0) {
|
|
1673
|
-
r.msg = "invalid bit length repeat", e.mode =
|
|
1673
|
+
r.msg = "invalid bit length repeat", e.mode = Oe;
|
|
1674
1674
|
break;
|
|
1675
1675
|
}
|
|
1676
1676
|
dt = e.lens[e.have - 1], p = 3 + (d & 3), d >>>= 2, g -= 2;
|
|
@@ -1690,25 +1690,25 @@ const Yh = (r) => {
|
|
|
1690
1690
|
d >>>= k, g -= k, dt = 0, p = 11 + (d & 127), d >>>= 7, g -= 7;
|
|
1691
1691
|
}
|
|
1692
1692
|
if (e.have + p > e.nlen + e.ndist) {
|
|
1693
|
-
r.msg = "invalid bit length repeat", e.mode =
|
|
1693
|
+
r.msg = "invalid bit length repeat", e.mode = Oe;
|
|
1694
1694
|
break;
|
|
1695
1695
|
}
|
|
1696
1696
|
for (; p--; )
|
|
1697
1697
|
e.lens[e.have++] = dt;
|
|
1698
1698
|
}
|
|
1699
1699
|
}
|
|
1700
|
-
if (e.mode ===
|
|
1700
|
+
if (e.mode === Oe)
|
|
1701
1701
|
break;
|
|
1702
1702
|
if (e.lens[256] === 0) {
|
|
1703
|
-
r.msg = "invalid code -- missing end-of-block", e.mode =
|
|
1703
|
+
r.msg = "invalid code -- missing end-of-block", e.mode = Oe;
|
|
1704
1704
|
break;
|
|
1705
1705
|
}
|
|
1706
1706
|
if (e.lenbits = 9, tt = { bits: e.lenbits }, K = Fa(vf, e.lens, 0, e.nlen, e.lencode, 0, e.work, tt), e.lenbits = tt.bits, K) {
|
|
1707
|
-
r.msg = "invalid literal/lengths set", e.mode =
|
|
1707
|
+
r.msg = "invalid literal/lengths set", e.mode = Oe;
|
|
1708
1708
|
break;
|
|
1709
1709
|
}
|
|
1710
1710
|
if (e.distbits = 6, e.distcode = e.distdyn, tt = { bits: e.distbits }, K = Fa(bf, e.lens, e.nlen, e.ndist, e.distcode, 0, e.work, tt), e.distbits = tt.bits, K) {
|
|
1711
|
-
r.msg = "invalid distances set", e.mode =
|
|
1711
|
+
r.msg = "invalid distances set", e.mode = Oe;
|
|
1712
1712
|
break;
|
|
1713
1713
|
}
|
|
1714
1714
|
if (e.mode = ws, t === bs)
|
|
@@ -1744,7 +1744,7 @@ const Yh = (r) => {
|
|
|
1744
1744
|
break;
|
|
1745
1745
|
}
|
|
1746
1746
|
if (G & 64) {
|
|
1747
|
-
r.msg = "invalid literal/length code", e.mode =
|
|
1747
|
+
r.msg = "invalid literal/length code", e.mode = Oe;
|
|
1748
1748
|
break;
|
|
1749
1749
|
}
|
|
1750
1750
|
e.extra = G & 15, e.mode = ml;
|
|
@@ -1775,7 +1775,7 @@ const Yh = (r) => {
|
|
|
1775
1775
|
d >>>= q, g -= q, e.back += q;
|
|
1776
1776
|
}
|
|
1777
1777
|
if (d >>>= k, g -= k, e.back += k, G & 64) {
|
|
1778
|
-
r.msg = "invalid distance code", e.mode =
|
|
1778
|
+
r.msg = "invalid distance code", e.mode = Oe;
|
|
1779
1779
|
break;
|
|
1780
1780
|
}
|
|
1781
1781
|
e.offset = Y, e.extra = G & 15, e.mode = bl;
|
|
@@ -1790,7 +1790,7 @@ const Yh = (r) => {
|
|
|
1790
1790
|
e.offset += d & (1 << e.extra) - 1, d >>>= e.extra, g -= e.extra, e.back += e.extra;
|
|
1791
1791
|
}
|
|
1792
1792
|
if (e.offset > e.dmax) {
|
|
1793
|
-
r.msg = "invalid distance too far back", e.mode =
|
|
1793
|
+
r.msg = "invalid distance too far back", e.mode = Oe;
|
|
1794
1794
|
break;
|
|
1795
1795
|
}
|
|
1796
1796
|
e.mode = wl;
|
|
@@ -1800,15 +1800,15 @@ const Yh = (r) => {
|
|
|
1800
1800
|
break t;
|
|
1801
1801
|
if (p = N - f, e.offset > p) {
|
|
1802
1802
|
if (p = e.offset - p, p > e.whave && e.sane) {
|
|
1803
|
-
r.msg = "invalid distance too far back", e.mode =
|
|
1803
|
+
r.msg = "invalid distance too far back", e.mode = Oe;
|
|
1804
1804
|
break;
|
|
1805
1805
|
}
|
|
1806
|
-
p > e.wnext ? (p -= e.wnext,
|
|
1806
|
+
p > e.wnext ? (p -= e.wnext, j = e.wsize - p) : j = e.wnext - p, p > e.length && (p = e.length), P = e.window;
|
|
1807
1807
|
} else
|
|
1808
|
-
P = s,
|
|
1808
|
+
P = s, j = c - e.offset, p = e.length;
|
|
1809
1809
|
p > f && (p = f), f -= p, e.length -= p;
|
|
1810
1810
|
do
|
|
1811
|
-
s[c++] = P[
|
|
1811
|
+
s[c++] = P[j++];
|
|
1812
1812
|
while (--p);
|
|
1813
1813
|
e.length === 0 && (e.mode = ys);
|
|
1814
1814
|
break;
|
|
@@ -1826,7 +1826,7 @@ const Yh = (r) => {
|
|
|
1826
1826
|
}
|
|
1827
1827
|
if (N -= f, r.total_out += N, e.total += N, e.wrap & 4 && N && (r.adler = e.check = /*UPDATE_CHECK(state.check, put - _out, _out);*/
|
|
1828
1828
|
e.flags ? hn(e.check, s, N, c - N) : Vo(e.check, s, N, c - N)), N = f, e.wrap & 4 && (e.flags ? d : Nl(d)) !== e.check) {
|
|
1829
|
-
r.msg = "incorrect data check", e.mode =
|
|
1829
|
+
r.msg = "incorrect data check", e.mode = Oe;
|
|
1830
1830
|
break;
|
|
1831
1831
|
}
|
|
1832
1832
|
d = 0, g = 0;
|
|
@@ -1841,7 +1841,7 @@ const Yh = (r) => {
|
|
|
1841
1841
|
u--, d += n[a++] << g, g += 8;
|
|
1842
1842
|
}
|
|
1843
1843
|
if (e.wrap & 4 && d !== (e.total & 4294967295)) {
|
|
1844
|
-
r.msg = "incorrect length check", e.mode =
|
|
1844
|
+
r.msg = "incorrect length check", e.mode = Oe;
|
|
1845
1845
|
break;
|
|
1846
1846
|
}
|
|
1847
1847
|
d = 0, g = 0;
|
|
@@ -1851,7 +1851,7 @@ const Yh = (r) => {
|
|
|
1851
1851
|
case Al:
|
|
1852
1852
|
K = Th;
|
|
1853
1853
|
break t;
|
|
1854
|
-
case
|
|
1854
|
+
case Oe:
|
|
1855
1855
|
K = wf;
|
|
1856
1856
|
break t;
|
|
1857
1857
|
case xf:
|
|
@@ -1861,9 +1861,9 @@ const Yh = (r) => {
|
|
|
1861
1861
|
default:
|
|
1862
1862
|
return zr;
|
|
1863
1863
|
}
|
|
1864
|
-
return r.next_out = c, r.avail_out = f, r.next_in = a, r.avail_in = u, e.hold = d, e.bits = g, (e.wsize || N !== r.avail_out && e.mode <
|
|
1864
|
+
return r.next_out = c, r.avail_out = f, r.next_in = a, r.avail_in = u, e.hold = d, e.bits = g, (e.wsize || N !== r.avail_out && e.mode < Oe && (e.mode < ko || t !== tl)) && kf(r, r.output, r.next_out, N - r.avail_out), x -= r.avail_in, N -= r.avail_out, r.total_in += x, r.total_out += N, e.total += N, e.wrap & 4 && N && (r.adler = e.check = /*UPDATE_CHECK(state.check, strm.next_out - _out, _out);*/
|
|
1865
1865
|
e.flags ? hn(e.check, s, N, r.next_out - N) : Vo(e.check, s, N, r.next_out - N)), r.data_type = e.bits + (e.last ? 64 : 0) + (e.mode === Cn ? 128 : 0) + (e.mode === ws || e.mode === So ? 256 : 0), (x === 0 && N === 0 || t === tl) && K === Ai && (K = qh), K;
|
|
1866
|
-
},
|
|
1866
|
+
}, Xh = (r) => {
|
|
1867
1867
|
if (Li(r))
|
|
1868
1868
|
return zr;
|
|
1869
1869
|
let t = r.state;
|
|
@@ -1878,7 +1878,7 @@ const Yh = (r) => {
|
|
|
1878
1878
|
let n, s, a;
|
|
1879
1879
|
return Li(r) || (n = r.state, n.wrap !== 0 && n.mode !== Es) ? zr : n.mode === Es && (s = 1, s = Vo(s, t, e, 0), s !== n.check) ? wf : (a = kf(r, t, e, e), a ? (n.mode = xf, yf) : (n.havedict = 1, Ai));
|
|
1880
1880
|
};
|
|
1881
|
-
var Zh = Lf, Qh = _f, t1 = Nf, e1 = Vh, r1 = Sf, n1 =
|
|
1881
|
+
var Zh = Lf, Qh = _f, t1 = Nf, e1 = Vh, r1 = Sf, n1 = Jh, i1 = Xh, a1 = Kh, s1 = $h, o1 = "pako inflate (from Nodeca project)", pn = {
|
|
1882
1882
|
inflateReset: Zh,
|
|
1883
1883
|
inflateReset2: Qh,
|
|
1884
1884
|
inflateResetKeep: t1,
|
|
@@ -1919,7 +1919,7 @@ function Ba(r) {
|
|
|
1919
1919
|
);
|
|
1920
1920
|
if (e !== ea)
|
|
1921
1921
|
throw new Error(Yo[e]);
|
|
1922
|
-
if (this.header = new l1(), pn.inflateGetHeader(this.strm, this.header), t.dictionary && (typeof t.dictionary == "string" ? t.dictionary =
|
|
1922
|
+
if (this.header = new l1(), pn.inflateGetHeader(this.strm, this.header), t.dictionary && (typeof t.dictionary == "string" ? t.dictionary = Jo.string2buf(t.dictionary) : Pf.call(t.dictionary) === "[object ArrayBuffer]" && (t.dictionary = new Uint8Array(t.dictionary)), t.raw && (e = pn.inflateSetDictionary(this.strm, t.dictionary), e !== ea)))
|
|
1923
1923
|
throw new Error(Yo[e]);
|
|
1924
1924
|
}
|
|
1925
1925
|
Ba.prototype.push = function(r, t) {
|
|
@@ -1938,7 +1938,7 @@ Ba.prototype.push = function(r, t) {
|
|
|
1938
1938
|
}
|
|
1939
1939
|
if (u = e.avail_out, e.next_out && (e.avail_out === 0 || a === Io || c > 0))
|
|
1940
1940
|
if (this.options.to === "string") {
|
|
1941
|
-
let f =
|
|
1941
|
+
let f = Jo.utf8border(e.output, e.next_out), d = e.next_out - f, g = Jo.buf2string(e.output, f);
|
|
1942
1942
|
e.next_out = d, e.avail_out = n - d, d && e.output.set(e.output.subarray(f, f + d), 0), this.onData(g);
|
|
1943
1943
|
} else
|
|
1944
1944
|
this.onData(e.output.length === e.next_out ? e.output : e.output.subarray(0, e.next_out)), e.avail_out = 0, e.next_out = 0;
|
|
@@ -1992,10 +1992,10 @@ var $r;
|
|
|
1992
1992
|
(function(r) {
|
|
1993
1993
|
r[r.UNKNOWN = -1] = "UNKNOWN", r[r.GREYSCALE = 0] = "GREYSCALE", r[r.TRUECOLOUR = 2] = "TRUECOLOUR", r[r.INDEXED_COLOUR = 3] = "INDEXED_COLOUR", r[r.GREYSCALE_ALPHA = 4] = "GREYSCALE_ALPHA", r[r.TRUECOLOUR_ALPHA = 6] = "TRUECOLOUR_ALPHA";
|
|
1994
1994
|
})($r || ($r = {}));
|
|
1995
|
-
var
|
|
1995
|
+
var ja;
|
|
1996
1996
|
(function(r) {
|
|
1997
1997
|
r[r.UNKNOWN = -1] = "UNKNOWN", r[r.DEFLATE = 0] = "DEFLATE";
|
|
1998
|
-
})(
|
|
1998
|
+
})(ja || (ja = {}));
|
|
1999
1999
|
var Cs;
|
|
2000
2000
|
(function(r) {
|
|
2001
2001
|
r[r.UNKNOWN = -1] = "UNKNOWN", r[r.ADAPTIVE = 0] = "ADAPTIVE";
|
|
@@ -2016,7 +2016,7 @@ class P1 extends ru {
|
|
|
2016
2016
|
data: new Uint8Array(0),
|
|
2017
2017
|
depth: 1,
|
|
2018
2018
|
text: {}
|
|
2019
|
-
}, this._end = !1, this._hasPalette = !1, this._palette = [], this._hasTransparency = !1, this._transparency = new Uint16Array(0), this._compressionMethod =
|
|
2019
|
+
}, this._end = !1, this._hasPalette = !1, this._palette = [], this._hasTransparency = !1, this._transparency = new Uint16Array(0), this._compressionMethod = ja.UNKNOWN, this._filterMethod = Cs.UNKNOWN, this._interlaceMethod = Fs.UNKNOWN, this._colorType = $r.UNKNOWN, this.setBigEndian();
|
|
2020
2020
|
}
|
|
2021
2021
|
decode() {
|
|
2022
2022
|
for (this.decodeSignature(); !this._end; )
|
|
@@ -2098,7 +2098,7 @@ class P1 extends ru {
|
|
|
2098
2098
|
default:
|
|
2099
2099
|
throw new Error(`Unknown color type: ${e}`);
|
|
2100
2100
|
}
|
|
2101
|
-
if (this._png.channels = n, this._compressionMethod = this.readUint8(), this._compressionMethod !==
|
|
2101
|
+
if (this._png.channels = n, this._compressionMethod = this.readUint8(), this._compressionMethod !== ja.DEFLATE)
|
|
2102
2102
|
throw new Error(`Unsupported compression method: ${this._compressionMethod}`);
|
|
2103
2103
|
this._filterMethod = this.readUint8(), this._interlaceMethod = this.readUint8();
|
|
2104
2104
|
}
|
|
@@ -2153,7 +2153,7 @@ class P1 extends ru {
|
|
|
2153
2153
|
for (; (n = this.readChar()) !== Ml; )
|
|
2154
2154
|
e += n;
|
|
2155
2155
|
const s = this.readUint8();
|
|
2156
|
-
if (s !==
|
|
2156
|
+
if (s !== ja.DEFLATE)
|
|
2157
2157
|
throw new Error(`Unsupported iCCP compression method: ${s}`);
|
|
2158
2158
|
const a = this.readBytes(t - e.length - 2);
|
|
2159
2159
|
this._png.iccEmbeddedProfile = {
|
|
@@ -2213,7 +2213,7 @@ class P1 extends ru {
|
|
|
2213
2213
|
const g = new Uint16Array(a.buffer);
|
|
2214
2214
|
if (k1)
|
|
2215
2215
|
for (let x = 0; x < g.length; x++)
|
|
2216
|
-
g[x] =
|
|
2216
|
+
g[x] = O1(g[x]);
|
|
2217
2217
|
this._png.data = g;
|
|
2218
2218
|
} else
|
|
2219
2219
|
this._png.data = a;
|
|
@@ -2264,14 +2264,14 @@ function F1(r, t, e, n, s) {
|
|
|
2264
2264
|
for (; a < s; a++)
|
|
2265
2265
|
t[a] = r[a] + e[a] & 255;
|
|
2266
2266
|
for (; a < n; a++)
|
|
2267
|
-
t[a] = r[a] +
|
|
2267
|
+
t[a] = r[a] + j1(t[a - s], e[a], e[a - s]) & 255;
|
|
2268
2268
|
}
|
|
2269
2269
|
}
|
|
2270
|
-
function
|
|
2270
|
+
function j1(r, t, e) {
|
|
2271
2271
|
const n = r + t - e, s = Math.abs(n - r), a = Math.abs(n - t), c = Math.abs(n - e);
|
|
2272
2272
|
return s <= a && s <= c ? r : a <= c ? t : e;
|
|
2273
2273
|
}
|
|
2274
|
-
function
|
|
2274
|
+
function O1(r) {
|
|
2275
2275
|
return (r & 255) << 8 | r >> 8 & 255;
|
|
2276
2276
|
}
|
|
2277
2277
|
function B1(r) {
|
|
@@ -2286,18 +2286,18 @@ var Il;
|
|
|
2286
2286
|
function R1(r, t) {
|
|
2287
2287
|
return new P1(r, t).decode();
|
|
2288
2288
|
}
|
|
2289
|
-
var
|
|
2289
|
+
var Xt = /* @__PURE__ */ (function() {
|
|
2290
2290
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : this;
|
|
2291
2291
|
})();
|
|
2292
2292
|
function Fo() {
|
|
2293
|
-
|
|
2293
|
+
Xt.console && typeof Xt.console.log == "function" && Xt.console.log.apply(Xt.console, arguments);
|
|
2294
2294
|
}
|
|
2295
2295
|
var _e = { log: Fo, warn: function(r) {
|
|
2296
|
-
|
|
2296
|
+
Xt.console && (typeof Xt.console.warn == "function" ? Xt.console.warn.apply(Xt.console, arguments) : Fo.call(null, arguments));
|
|
2297
2297
|
}, error: function(r) {
|
|
2298
|
-
|
|
2298
|
+
Xt.console && (typeof Xt.console.error == "function" ? Xt.console.error.apply(Xt.console, arguments) : Fo(r));
|
|
2299
2299
|
} };
|
|
2300
|
-
function
|
|
2300
|
+
function jo(r, t, e) {
|
|
2301
2301
|
var n = new XMLHttpRequest();
|
|
2302
2302
|
n.open("GET", r), n.responseType = "blob", n.onload = function() {
|
|
2303
2303
|
bi(n.response, t, e);
|
|
@@ -2322,16 +2322,16 @@ function xs(r) {
|
|
|
2322
2322
|
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), r.dispatchEvent(t);
|
|
2323
2323
|
}
|
|
2324
2324
|
}
|
|
2325
|
-
var bi =
|
|
2325
|
+
var bi = Xt.saveAs || ((typeof window > "u" ? "undefined" : xe(window)) !== "object" || window !== Xt ? function() {
|
|
2326
2326
|
} : typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype ? function(r, t, e) {
|
|
2327
|
-
var n =
|
|
2328
|
-
t = t || r.name || "download", s.download = t, s.rel = "noopener", typeof r == "string" ? (s.href = r, s.origin !== location.origin ? El(s.href) ?
|
|
2327
|
+
var n = Xt.URL || Xt.webkitURL, s = document.createElement("a");
|
|
2328
|
+
t = t || r.name || "download", s.download = t, s.rel = "noopener", typeof r == "string" ? (s.href = r, s.origin !== location.origin ? El(s.href) ? jo(r, t, e) : xs(s, s.target = "_blank") : xs(s)) : (s.href = n.createObjectURL(r), setTimeout(function() {
|
|
2329
2329
|
n.revokeObjectURL(s.href);
|
|
2330
2330
|
}, 4e4), setTimeout(function() {
|
|
2331
2331
|
xs(s);
|
|
2332
2332
|
}, 0));
|
|
2333
2333
|
} : "msSaveOrOpenBlob" in navigator ? function(r, t, e) {
|
|
2334
|
-
if (t = t || r.name || "download", typeof r == "string") if (El(r))
|
|
2334
|
+
if (t = t || r.name || "download", typeof r == "string") if (El(r)) jo(r, t, e);
|
|
2335
2335
|
else {
|
|
2336
2336
|
var n = document.createElement("a");
|
|
2337
2337
|
n.href = r, n.target = "_blank", setTimeout(function() {
|
|
@@ -2342,8 +2342,8 @@ var bi = Jt.saveAs || ((typeof window > "u" ? "undefined" : xe(window)) !== "obj
|
|
|
2342
2342
|
return a === void 0 ? a = { autoBom: !1 } : xe(a) !== "object" && (_e.warn("Deprecated: Expected third argument to be a object"), a = { autoBom: !a }), a.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type) ? new Blob(["\uFEFF", s], { type: s.type }) : s;
|
|
2343
2343
|
})(r, e), t);
|
|
2344
2344
|
} : function(r, t, e, n) {
|
|
2345
|
-
if ((n = n || open("", "_blank")) && (n.document.title = n.document.body.innerText = "downloading..."), typeof r == "string") return
|
|
2346
|
-
var s = r.type === "application/octet-stream", a = /constructor/i.test(
|
|
2345
|
+
if ((n = n || open("", "_blank")) && (n.document.title = n.document.body.innerText = "downloading..."), typeof r == "string") return jo(r, t, e);
|
|
2346
|
+
var s = r.type === "application/octet-stream", a = /constructor/i.test(Xt.HTMLElement) || Xt.safari, c = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
2347
2347
|
if ((c || s && a) && (typeof FileReader > "u" ? "undefined" : xe(FileReader)) === "object") {
|
|
2348
2348
|
var u = new FileReader();
|
|
2349
2349
|
u.onloadend = function() {
|
|
@@ -2351,7 +2351,7 @@ var bi = Jt.saveAs || ((typeof window > "u" ? "undefined" : xe(window)) !== "obj
|
|
|
2351
2351
|
g = c ? g : g.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = g : location = g, n = null;
|
|
2352
2352
|
}, u.readAsDataURL(r);
|
|
2353
2353
|
} else {
|
|
2354
|
-
var f =
|
|
2354
|
+
var f = Xt.URL || Xt.webkitURL, d = f.createObjectURL(r);
|
|
2355
2355
|
n ? n.location = d : location.href = d, n = null, setTimeout(function() {
|
|
2356
2356
|
f.revokeObjectURL(d);
|
|
2357
2357
|
}, 4e4);
|
|
@@ -2377,8 +2377,8 @@ function If(r) {
|
|
|
2377
2377
|
return u.length == 1 && (u = "0" + u), f.length == 1 && (f = "0" + f), d.length == 1 && (d = "0" + d), "#" + u + f + d;
|
|
2378
2378
|
};
|
|
2379
2379
|
}
|
|
2380
|
-
var _s =
|
|
2381
|
-
function
|
|
2380
|
+
var _s = Xt.atob.bind(Xt), Cl = Xt.btoa.bind(Xt);
|
|
2381
|
+
function Oo(r, t) {
|
|
2382
2382
|
var e = r[0], n = r[1], s = r[2], a = r[3];
|
|
2383
2383
|
e = pr(e, n, s, a, t[0], 7, -680876936), a = pr(a, e, n, s, t[1], 12, -389564586), s = pr(s, a, e, n, t[2], 17, 606105819), n = pr(n, s, a, e, t[3], 22, -1044525330), e = pr(e, n, s, a, t[4], 7, -176418897), a = pr(a, e, n, s, t[5], 12, 1200080426), s = pr(s, a, e, n, t[6], 17, -1473231341), n = pr(n, s, a, e, t[7], 22, -45705983), e = pr(e, n, s, a, t[8], 7, 1770035416), a = pr(a, e, n, s, t[9], 12, -1958414417), s = pr(s, a, e, n, t[10], 17, -42063), n = pr(n, s, a, e, t[11], 22, -1990404162), e = pr(e, n, s, a, t[12], 7, 1804603682), a = pr(a, e, n, s, t[13], 12, -40341101), s = pr(s, a, e, n, t[14], 17, -1502002290), e = gr(e, n = pr(n, s, a, e, t[15], 22, 1236535329), s, a, t[1], 5, -165796510), a = gr(a, e, n, s, t[6], 9, -1069501632), s = gr(s, a, e, n, t[11], 14, 643717713), n = gr(n, s, a, e, t[0], 20, -373897302), e = gr(e, n, s, a, t[5], 5, -701558691), a = gr(a, e, n, s, t[10], 9, 38016083), s = gr(s, a, e, n, t[15], 14, -660478335), n = gr(n, s, a, e, t[4], 20, -405537848), e = gr(e, n, s, a, t[9], 5, 568446438), a = gr(a, e, n, s, t[14], 9, -1019803690), s = gr(s, a, e, n, t[3], 14, -187363961), n = gr(n, s, a, e, t[8], 20, 1163531501), e = gr(e, n, s, a, t[13], 5, -1444681467), a = gr(a, e, n, s, t[2], 9, -51403784), s = gr(s, a, e, n, t[7], 14, 1735328473), e = mr(e, n = gr(n, s, a, e, t[12], 20, -1926607734), s, a, t[5], 4, -378558), a = mr(a, e, n, s, t[8], 11, -2022574463), s = mr(s, a, e, n, t[11], 16, 1839030562), n = mr(n, s, a, e, t[14], 23, -35309556), e = mr(e, n, s, a, t[1], 4, -1530992060), a = mr(a, e, n, s, t[4], 11, 1272893353), s = mr(s, a, e, n, t[7], 16, -155497632), n = mr(n, s, a, e, t[10], 23, -1094730640), e = mr(e, n, s, a, t[13], 4, 681279174), a = mr(a, e, n, s, t[0], 11, -358537222), s = mr(s, a, e, n, t[3], 16, -722521979), n = mr(n, s, a, e, t[6], 23, 76029189), e = mr(e, n, s, a, t[9], 4, -640364487), a = mr(a, e, n, s, t[12], 11, -421815835), s = mr(s, a, e, n, t[15], 16, 530742520), e = vr(e, n = mr(n, s, a, e, t[2], 23, -995338651), s, a, t[0], 6, -198630844), a = vr(a, e, n, s, t[7], 10, 1126891415), s = vr(s, a, e, n, t[14], 15, -1416354905), n = vr(n, s, a, e, t[5], 21, -57434055), e = vr(e, n, s, a, t[12], 6, 1700485571), a = vr(a, e, n, s, t[3], 10, -1894986606), s = vr(s, a, e, n, t[10], 15, -1051523), n = vr(n, s, a, e, t[1], 21, -2054922799), e = vr(e, n, s, a, t[8], 6, 1873313359), a = vr(a, e, n, s, t[15], 10, -30611744), s = vr(s, a, e, n, t[6], 15, -1560198380), n = vr(n, s, a, e, t[13], 21, 1309151649), e = vr(e, n, s, a, t[4], 6, -145523070), a = vr(a, e, n, s, t[11], 10, -1120210379), s = vr(s, a, e, n, t[2], 15, 718787259), n = vr(n, s, a, e, t[9], 21, -343485551), r[0] = Kn(e, r[0]), r[1] = Kn(n, r[1]), r[2] = Kn(s, r[2]), r[3] = Kn(a, r[3]);
|
|
2384
2384
|
}
|
|
@@ -2399,12 +2399,12 @@ function vr(r, t, e, n, s, a, c) {
|
|
|
2399
2399
|
}
|
|
2400
2400
|
function Ef(r) {
|
|
2401
2401
|
var t, e = r.length, n = [1732584193, -271733879, -1732584194, 271733878];
|
|
2402
|
-
for (t = 64; t <= r.length; t += 64)
|
|
2402
|
+
for (t = 64; t <= r.length; t += 64) Oo(n, T1(r.substring(t - 64, t)));
|
|
2403
2403
|
r = r.substring(t - 64);
|
|
2404
2404
|
var s = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
2405
2405
|
for (t = 0; t < r.length; t++) s[t >> 2] |= r.charCodeAt(t) << (t % 4 << 3);
|
|
2406
|
-
if (s[t >> 2] |= 128 << (t % 4 << 3), t > 55) for (
|
|
2407
|
-
return s[14] = 8 * e,
|
|
2406
|
+
if (s[t >> 2] |= 128 << (t % 4 << 3), t > 55) for (Oo(n, s), t = 0; t < 16; t++) s[t] = 0;
|
|
2407
|
+
return s[14] = 8 * e, Oo(n, s), n;
|
|
2408
2408
|
}
|
|
2409
2409
|
function T1(r) {
|
|
2410
2410
|
var t, e = [];
|
|
@@ -2419,7 +2419,7 @@ function D1(r) {
|
|
|
2419
2419
|
function q1(r) {
|
|
2420
2420
|
return String.fromCharCode(255 & r, (65280 & r) >> 8, (16711680 & r) >> 16, (4278190080 & r) >> 24);
|
|
2421
2421
|
}
|
|
2422
|
-
function
|
|
2422
|
+
function Xo(r) {
|
|
2423
2423
|
return Ef(r).map(q1).join("");
|
|
2424
2424
|
}
|
|
2425
2425
|
var U1 = (function(r) {
|
|
@@ -2444,20 +2444,20 @@ function Ko(r, t) {
|
|
|
2444
2444
|
}
|
|
2445
2445
|
e = r, n = u;
|
|
2446
2446
|
} else u = n;
|
|
2447
|
-
var x = t.length, N = 0, p = 0,
|
|
2448
|
-
for (f = 0; f < x; f++) p = (p + (g = u[N = (N + 1) % 256])) % 256, u[N] = u[p], u[p] = g, c = u[(u[N] + u[p]) % 256],
|
|
2449
|
-
return
|
|
2447
|
+
var x = t.length, N = 0, p = 0, j = "";
|
|
2448
|
+
for (f = 0; f < x; f++) p = (p + (g = u[N = (N + 1) % 256])) % 256, u[N] = u[p], u[p] = g, c = u[(u[N] + u[p]) % 256], j += String.fromCharCode(t.charCodeAt(f) ^ c);
|
|
2449
|
+
return j;
|
|
2450
2450
|
}
|
|
2451
|
-
var
|
|
2451
|
+
var jl = { print: 4, modify: 8, copy: 16, "annot-forms": 32 };
|
|
2452
2452
|
function Zi(r, t, e, n) {
|
|
2453
2453
|
this.v = 1, this.r = 2;
|
|
2454
2454
|
var s = 192;
|
|
2455
2455
|
r.forEach(function(u) {
|
|
2456
|
-
if (
|
|
2457
|
-
s +=
|
|
2456
|
+
if (jl.perm !== void 0) throw new Error("Invalid permission: " + u);
|
|
2457
|
+
s += jl[u];
|
|
2458
2458
|
}), this.padding = "(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";
|
|
2459
2459
|
var a = (t + this.padding).substr(0, 32), c = (e + this.padding).substr(0, 32);
|
|
2460
|
-
this.O = this.processOwnerPassword(a, c), this.P = -(1 + (255 ^ s)), this.encryptionKey =
|
|
2460
|
+
this.O = this.processOwnerPassword(a, c), this.P = -(1 + (255 ^ s)), this.encryptionKey = Xo(a + this.O + this.lsbFirstWord(this.P) + this.hexToBytes(n)).substr(0, 5), this.U = Ko(this.encryptionKey, this.padding);
|
|
2461
2461
|
}
|
|
2462
2462
|
function Qi(r) {
|
|
2463
2463
|
if (/[^\u0000-\u00ff]/.test(r)) throw new Error("Invalid PDF Name Object: " + r + ", Only accept ASCII characters.");
|
|
@@ -2467,7 +2467,7 @@ function Qi(r) {
|
|
|
2467
2467
|
}
|
|
2468
2468
|
return t;
|
|
2469
2469
|
}
|
|
2470
|
-
function
|
|
2470
|
+
function Ol(r) {
|
|
2471
2471
|
if (xe(r) !== "object") throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");
|
|
2472
2472
|
var t = {};
|
|
2473
2473
|
this.subscribe = function(e, n, s) {
|
|
@@ -2486,7 +2486,7 @@ function jl(r) {
|
|
|
2486
2486
|
try {
|
|
2487
2487
|
c[0].apply(r, n);
|
|
2488
2488
|
} catch (u) {
|
|
2489
|
-
|
|
2489
|
+
Xt.console && _e.error("jsPDF PubSub Error", u.message, u);
|
|
2490
2490
|
}
|
|
2491
2491
|
c[1] && s.push(a);
|
|
2492
2492
|
}
|
|
@@ -2496,8 +2496,8 @@ function jl(r) {
|
|
|
2496
2496
|
return t;
|
|
2497
2497
|
};
|
|
2498
2498
|
}
|
|
2499
|
-
function
|
|
2500
|
-
if (!(this instanceof
|
|
2499
|
+
function js(r) {
|
|
2500
|
+
if (!(this instanceof js)) return new js(r);
|
|
2501
2501
|
var t = "opacity,stroke-opacity".split(",");
|
|
2502
2502
|
for (var e in r) r.hasOwnProperty(e) && t.indexOf(e) >= 0 && (this[e] = r[e]);
|
|
2503
2503
|
this.id = "", this.objectNumber = -1;
|
|
@@ -2517,12 +2517,12 @@ function Rt(r) {
|
|
|
2517
2517
|
var t, e = typeof arguments[0] == "string" ? arguments[0] : "p", n = arguments[1], s = arguments[2], a = arguments[3], c = [], u = 1, f = 16, d = "S", g = null;
|
|
2518
2518
|
xe(r = r || {}) === "object" && (e = r.orientation, n = r.unit || n, s = r.format || s, a = r.compress || r.compressPdf || a, (g = r.encryption || null) !== null && (g.userPassword = g.userPassword || "", g.ownerPassword = g.ownerPassword || "", g.userPermissions = g.userPermissions || []), u = typeof r.userUnit == "number" ? Math.abs(r.userUnit) : 1, r.precision !== void 0 && (t = r.precision), r.floatPrecision !== void 0 && (f = r.floatPrecision), d = r.defaultPathOperation || "S"), c = r.filters || (a === !0 ? ["FlateEncode"] : c), n = n || "mm", e = ("" + (e || "P")).toLowerCase();
|
|
2519
2519
|
var x = r.putOnlyUsedFonts || !1, N = {}, p = { internal: {}, __private__: {} };
|
|
2520
|
-
p.__private__.PubSub =
|
|
2521
|
-
var
|
|
2522
|
-
return
|
|
2520
|
+
p.__private__.PubSub = Ol;
|
|
2521
|
+
var j = "1.3", P = p.__private__.getPdfVersion = function() {
|
|
2522
|
+
return j;
|
|
2523
2523
|
};
|
|
2524
2524
|
p.__private__.setPdfVersion = function(l) {
|
|
2525
|
-
|
|
2525
|
+
j = l;
|
|
2526
2526
|
};
|
|
2527
2527
|
var B = { a0: [2383.94, 3370.39], a1: [1683.78, 2383.94], a2: [1190.55, 1683.78], a3: [841.89, 1190.55], a4: [595.28, 841.89], a5: [419.53, 595.28], a6: [297.64, 419.53], a7: [209.76, 297.64], a8: [147.4, 209.76], a9: [104.88, 147.4], a10: [73.7, 104.88], b0: [2834.65, 4008.19], b1: [2004.09, 2834.65], b2: [1417.32, 2004.09], b3: [1000.63, 1417.32], b4: [708.66, 1000.63], b5: [498.9, 708.66], b6: [354.33, 498.9], b7: [249.45, 354.33], b8: [175.75, 249.45], b9: [124.72, 175.75], b10: [87.87, 124.72], c0: [2599.37, 3676.54], c1: [1836.85, 2599.37], c2: [1298.27, 1836.85], c3: [918.43, 1298.27], c4: [649.13, 918.43], c5: [459.21, 649.13], c6: [323.15, 459.21], c7: [229.61, 323.15], c8: [161.57, 229.61], c9: [113.39, 161.57], c10: [79.37, 113.39], dl: [311.81, 623.62], letter: [612, 792], "government-letter": [576, 756], legal: [612, 1008], "junior-legal": [576, 360], ledger: [1224, 792], tabloid: [792, 1224], "credit-card": [153, 243] };
|
|
2528
2528
|
p.__private__.getPageFormats = function() {
|
|
@@ -2599,11 +2599,11 @@ function Rt(r) {
|
|
|
2599
2599
|
return ft();
|
|
2600
2600
|
};
|
|
2601
2601
|
var ht = p.__private__.convertDateToPDFDate = function(l) {
|
|
2602
|
-
var v = l.getTimezoneOffset(), I = v < 0 ? "+" : "-", D = Math.floor(Math.abs(v / 60)),
|
|
2602
|
+
var v = l.getTimezoneOffset(), I = v < 0 ? "+" : "-", D = Math.floor(Math.abs(v / 60)), X = Math.abs(v % 60), ut = [I, T(D), "'", T(X), "'"].join("");
|
|
2603
2603
|
return ["D:", l.getFullYear(), T(l.getMonth() + 1), T(l.getDate()), T(l.getHours()), T(l.getMinutes()), T(l.getSeconds()), ut].join("");
|
|
2604
2604
|
}, Nt = p.__private__.convertPDFDateToDate = function(l) {
|
|
2605
|
-
var v = parseInt(l.substr(2, 4), 10), I = parseInt(l.substr(6, 2), 10) - 1, D = parseInt(l.substr(8, 2), 10),
|
|
2606
|
-
return new Date(v, I, D,
|
|
2605
|
+
var v = parseInt(l.substr(2, 4), 10), I = parseInt(l.substr(6, 2), 10) - 1, D = parseInt(l.substr(8, 2), 10), X = parseInt(l.substr(10, 2), 10), ut = parseInt(l.substr(12, 2), 10), vt = parseInt(l.substr(14, 2), 10);
|
|
2606
|
+
return new Date(v, I, D, X, ut, vt, 0);
|
|
2607
2607
|
}, wt = p.__private__.setCreationDate = function(l) {
|
|
2608
2608
|
var v;
|
|
2609
2609
|
if (l === void 0 && (l = /* @__PURE__ */ new Date()), l instanceof Date) v = ht(l);
|
|
@@ -2621,11 +2621,11 @@ function Rt(r) {
|
|
|
2621
2621
|
}, p.getCreationDate = function(l) {
|
|
2622
2622
|
return A(l);
|
|
2623
2623
|
};
|
|
2624
|
-
var
|
|
2624
|
+
var O, T = p.__private__.padd2 = function(l) {
|
|
2625
2625
|
return ("0" + parseInt(l)).slice(-2);
|
|
2626
2626
|
}, H = p.__private__.padd2Hex = function(l) {
|
|
2627
2627
|
return ("00" + (l = l.toString())).substr(l.length);
|
|
2628
|
-
},
|
|
2628
|
+
}, J = 0, Z = [], at = [], st = 0, gt = [], At = [], kt = !1, St = at;
|
|
2629
2629
|
p.__private__.setCustomOutputDestination = function(l) {
|
|
2630
2630
|
kt = !0, St = l;
|
|
2631
2631
|
};
|
|
@@ -2697,9 +2697,9 @@ function Rt(r) {
|
|
|
2697
2697
|
if (Object.keys(fe).indexOf(l) === -1) throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");
|
|
2698
2698
|
return fe[l] = v;
|
|
2699
2699
|
};
|
|
2700
|
-
var
|
|
2701
|
-
if (!(this instanceof l)) return new l(v, I, D,
|
|
2702
|
-
isNaN(v) && (v = 1), isNaN(I) && (I = 0), isNaN(D) && (D = 0), isNaN(
|
|
2700
|
+
var Ot, re, Tt, ze, ge, se = {}, oe = {}, Fe = [], Ut = {}, Se = {}, Yt = {}, Qt = {}, je = null, ue = 0, Gt = [], be = new Ol(p), Qn = r.hotfixes || [], lr = {}, vn = {}, en = [], Vt = function l(v, I, D, X, ut, vt) {
|
|
2701
|
+
if (!(this instanceof l)) return new l(v, I, D, X, ut, vt);
|
|
2702
|
+
isNaN(v) && (v = 1), isNaN(I) && (I = 0), isNaN(D) && (D = 0), isNaN(X) && (X = 1), isNaN(ut) && (ut = 0), isNaN(vt) && (vt = 0), this._matrix = [v, I, D, X, ut, vt];
|
|
2703
2703
|
};
|
|
2704
2704
|
Object.defineProperty(Vt.prototype, "sx", { get: function() {
|
|
2705
2705
|
return this._matrix[0];
|
|
@@ -2760,18 +2760,18 @@ function Rt(r) {
|
|
|
2760
2760
|
} }), Vt.prototype.join = function(l) {
|
|
2761
2761
|
return [this.sx, this.shy, this.shx, this.sy, this.tx, this.ty].map(K).join(l);
|
|
2762
2762
|
}, Vt.prototype.multiply = function(l) {
|
|
2763
|
-
var v = l.sx * this.sx + l.shy * this.shx, I = l.sx * this.shy + l.shy * this.sy, D = l.shx * this.sx + l.sy * this.shx,
|
|
2764
|
-
return new Vt(v, I, D,
|
|
2763
|
+
var v = l.sx * this.sx + l.shy * this.shx, I = l.sx * this.shy + l.shy * this.sy, D = l.shx * this.sx + l.sy * this.shx, X = l.shx * this.shy + l.sy * this.sy, ut = l.tx * this.sx + l.ty * this.shx + this.tx, vt = l.tx * this.shy + l.ty * this.sy + this.ty;
|
|
2764
|
+
return new Vt(v, I, D, X, ut, vt);
|
|
2765
2765
|
}, Vt.prototype.decompose = function() {
|
|
2766
|
-
var l = this.sx, v = this.shy, I = this.shx, D = this.sy,
|
|
2766
|
+
var l = this.sx, v = this.shy, I = this.shx, D = this.sy, X = this.tx, ut = this.ty, vt = Math.sqrt(l * l + v * v), Ct = (l /= vt) * I + (v /= vt) * D;
|
|
2767
2767
|
I -= l * Ct, D -= v * Ct;
|
|
2768
2768
|
var Et = Math.sqrt(I * I + D * D);
|
|
2769
|
-
return Ct /= Et, l * (D /= Et) < v * (I /= Et) && (l = -l, v = -v, Ct = -Ct, vt = -vt), { scale: new Vt(vt, 0, 0, Et, 0, 0), translate: new Vt(1, 0, 0, 1,
|
|
2769
|
+
return Ct /= Et, l * (D /= Et) < v * (I /= Et) && (l = -l, v = -v, Ct = -Ct, vt = -vt), { scale: new Vt(vt, 0, 0, Et, 0, 0), translate: new Vt(1, 0, 0, 1, X, ut), rotate: new Vt(l, v, -v, l, 0, 0), skew: new Vt(1, 0, Ct, 1, 0, 0) };
|
|
2770
2770
|
}, Vt.prototype.toString = function(l) {
|
|
2771
2771
|
return this.join(" ");
|
|
2772
2772
|
}, Vt.prototype.inversed = function() {
|
|
2773
|
-
var l = this.sx, v = this.shy, I = this.shx, D = this.sy,
|
|
2774
|
-
return new Vt(Ct, Et, Kt, te, -Ct *
|
|
2773
|
+
var l = this.sx, v = this.shy, I = this.shx, D = this.sy, X = this.tx, ut = this.ty, vt = 1 / (l * D - v * I), Ct = D * vt, Et = -v * vt, Kt = -I * vt, te = l * vt;
|
|
2774
|
+
return new Vt(Ct, Et, Kt, te, -Ct * X - Kt * ut, -Et * X - te * ut);
|
|
2775
2775
|
}, Vt.prototype.applyToPoint = function(l) {
|
|
2776
2776
|
var v = l.x * this.sx + l.y * this.shx + this.tx, I = l.x * this.shy + l.y * this.sy + this.ty;
|
|
2777
2777
|
return new ii(v, I);
|
|
@@ -2779,34 +2779,34 @@ function Rt(r) {
|
|
|
2779
2779
|
var v = this.applyToPoint(l), I = this.applyToPoint(new ii(l.x + l.w, l.y + l.h));
|
|
2780
2780
|
return new ga(v.x, v.y, I.x - v.x, I.y - v.y);
|
|
2781
2781
|
}, Vt.prototype.clone = function() {
|
|
2782
|
-
var l = this.sx, v = this.shy, I = this.shx, D = this.sy,
|
|
2783
|
-
return new Vt(l, v, I, D,
|
|
2782
|
+
var l = this.sx, v = this.shy, I = this.shx, D = this.sy, X = this.tx, ut = this.ty;
|
|
2783
|
+
return new Vt(l, v, I, D, X, ut);
|
|
2784
2784
|
}, p.Matrix = Vt;
|
|
2785
2785
|
var bn = p.matrixMult = function(l, v) {
|
|
2786
2786
|
return v.multiply(l);
|
|
2787
2787
|
}, wn = new Vt(1, 0, 0, 1, 0, 0);
|
|
2788
2788
|
p.unitMatrix = p.identityMatrix = wn;
|
|
2789
|
-
var
|
|
2789
|
+
var Or = function(l, v) {
|
|
2790
2790
|
if (!Se[l]) {
|
|
2791
2791
|
var I = (v instanceof wi ? "Sh" : "P") + (Object.keys(Ut).length + 1).toString(10);
|
|
2792
2792
|
v.id = I, Se[l] = I, Ut[I] = v, be.publish("addPattern", v);
|
|
2793
2793
|
}
|
|
2794
2794
|
};
|
|
2795
2795
|
p.ShadingPattern = wi, p.TilingPattern = ta, p.addShadingPattern = function(l, v) {
|
|
2796
|
-
return R("addShadingPattern()"),
|
|
2796
|
+
return R("addShadingPattern()"), Or(l, v), this;
|
|
2797
2797
|
}, p.beginTilingPattern = function(l) {
|
|
2798
2798
|
R("beginTilingPattern()"), ma(l.boundingBox[0], l.boundingBox[1], l.boundingBox[2] - l.boundingBox[0], l.boundingBox[3] - l.boundingBox[1], l.matrix);
|
|
2799
2799
|
}, p.endTilingPattern = function(l, v) {
|
|
2800
|
-
R("endTilingPattern()"), v.stream = At[
|
|
2801
|
-
`),
|
|
2800
|
+
R("endTilingPattern()"), v.stream = At[O].join(`
|
|
2801
|
+
`), Or(l, v), be.publish("endTilingPattern", v), en.pop().restore();
|
|
2802
2802
|
};
|
|
2803
2803
|
var Br, Te = p.__private__.newObject = function() {
|
|
2804
2804
|
var l = rr();
|
|
2805
2805
|
return ir(l, !0), l;
|
|
2806
2806
|
}, rr = p.__private__.newObjectDeferred = function() {
|
|
2807
|
-
return
|
|
2807
|
+
return J++, Z[J] = function() {
|
|
2808
2808
|
return st;
|
|
2809
|
-
},
|
|
2809
|
+
}, J;
|
|
2810
2810
|
}, ir = function(l, v) {
|
|
2811
2811
|
return v = typeof v == "boolean" && v, Z[l] = st, v && M(l + " 0 obj"), l;
|
|
2812
2812
|
}, ti = p.__private__.newAdditionalObject = function() {
|
|
@@ -2819,12 +2819,12 @@ function Rt(r) {
|
|
|
2819
2819
|
var I = parseFloat(v[0]);
|
|
2820
2820
|
v = [I, I, I, "r"];
|
|
2821
2821
|
}
|
|
2822
|
-
for (var D = "#",
|
|
2822
|
+
for (var D = "#", X = 0; X < 3; X++) D += ("0" + Math.floor(255 * parseFloat(v[X])).toString(16)).slice(-2);
|
|
2823
2823
|
return D;
|
|
2824
2824
|
}, Wr = p.__private__.encodeColorString = function(l) {
|
|
2825
2825
|
var v;
|
|
2826
2826
|
typeof l == "string" && (l = { ch1: l });
|
|
2827
|
-
var I = l.ch1, D = l.ch2,
|
|
2827
|
+
var I = l.ch1, D = l.ch2, X = l.ch3, ut = l.ch4, vt = l.pdfColorType === "draw" ? ["G", "RG", "K"] : ["g", "rg", "k"];
|
|
2828
2828
|
if (typeof I == "string" && I.charAt(0) !== "#") {
|
|
2829
2829
|
var Ct = new If(I);
|
|
2830
2830
|
if (Ct.ok) I = Ct.toHex();
|
|
@@ -2832,18 +2832,18 @@ function Rt(r) {
|
|
|
2832
2832
|
}
|
|
2833
2833
|
if (typeof I == "string" && /^#[0-9A-Fa-f]{3}$/.test(I) && (I = "#" + I[1] + I[1] + I[2] + I[2] + I[3] + I[3]), typeof I == "string" && /^#[0-9A-Fa-f]{6}$/.test(I)) {
|
|
2834
2834
|
var Et = parseInt(I.substr(1), 16);
|
|
2835
|
-
I = Et >> 16 & 255, D = Et >> 8 & 255,
|
|
2835
|
+
I = Et >> 16 & 255, D = Et >> 8 & 255, X = 255 & Et;
|
|
2836
2836
|
}
|
|
2837
|
-
if (D === void 0 || ut === void 0 && I === D && D ===
|
|
2837
|
+
if (D === void 0 || ut === void 0 && I === D && D === X) v = typeof I == "string" ? I + " " + vt[0] : l.precision === 2 ? _(I / 255) + " " + vt[0] : F(I / 255) + " " + vt[0];
|
|
2838
2838
|
else if (ut === void 0 || xe(ut) === "object") {
|
|
2839
2839
|
if (ut && !isNaN(ut.a) && ut.a === 0) return ["1.", "1.", "1.", vt[1]].join(" ");
|
|
2840
|
-
v = typeof I == "string" ? [I, D,
|
|
2841
|
-
} else v = typeof I == "string" ? [I, D,
|
|
2840
|
+
v = typeof I == "string" ? [I, D, X, vt[1]].join(" ") : l.precision === 2 ? [_(I / 255), _(D / 255), _(X / 255), vt[1]].join(" ") : [F(I / 255), F(D / 255), F(X / 255), vt[1]].join(" ");
|
|
2841
|
+
} else v = typeof I == "string" ? [I, D, X, ut, vt[2]].join(" ") : l.precision === 2 ? [_(I), _(D), _(X), _(ut), vt[2]].join(" ") : [F(I), F(D), F(X), F(ut), vt[2]].join(" ");
|
|
2842
2842
|
return v;
|
|
2843
2843
|
}, Gr = p.__private__.getFilters = function() {
|
|
2844
2844
|
return c;
|
|
2845
2845
|
}, Rr = p.__private__.putStream = function(l) {
|
|
2846
|
-
var v = (l = l || {}).data || "", I = l.filters || Gr(), D = l.alreadyAppliedFilters || [],
|
|
2846
|
+
var v = (l = l || {}).data || "", I = l.filters || Gr(), D = l.alreadyAppliedFilters || [], X = l.addLength1 || !1, ut = v.length, vt = l.objectId, Ct = function(Ie) {
|
|
2847
2847
|
return Ie;
|
|
2848
2848
|
};
|
|
2849
2849
|
if (g !== null && vt === void 0) throw new Error("ObjectId must be passed to putStream for file encryption");
|
|
@@ -2851,7 +2851,7 @@ function Rt(r) {
|
|
|
2851
2851
|
var Et = {};
|
|
2852
2852
|
I === !0 && (I = ["FlateEncode"]);
|
|
2853
2853
|
var Kt = l.additionalKeyValues || [], te = (Et = Rt.API.processDataByFilters !== void 0 ? Rt.API.processDataByFilters(v, I) : { data: v, reverseChain: [] }).reverseChain + (Array.isArray(D) ? D.join(" ") : D.toString());
|
|
2854
|
-
if (Et.data.length !== 0 && (Kt.push({ key: "Length", value: Et.data.length }),
|
|
2854
|
+
if (Et.data.length !== 0 && (Kt.push({ key: "Length", value: Et.data.length }), X === !0 && Kt.push({ key: "Length1", value: ut })), te.length != 0) if (te.split("/").length - 1 == 1) Kt.push({ key: "Filter", value: te });
|
|
2855
2855
|
else {
|
|
2856
2856
|
Kt.push({ key: "Filter", value: "[" + te + "]" });
|
|
2857
2857
|
for (var de = 0; de < Kt.length; de += 1) if (Kt[de].key === "DecodeParms") {
|
|
@@ -2863,12 +2863,12 @@ function Rt(r) {
|
|
|
2863
2863
|
for (var Ae = 0; Ae < Kt.length; Ae++) M("/" + Kt[Ae].key + " " + Kt[Ae].value);
|
|
2864
2864
|
M(">>"), Et.data.length !== 0 && (M("stream"), M(Ct(Et.data)), M("endstream"));
|
|
2865
2865
|
}, ei = p.__private__.putPage = function(l) {
|
|
2866
|
-
var v = l.number, I = l.data, D = l.objId,
|
|
2867
|
-
ir(D, !0), M("<</Type /Page"), M("/Parent " + l.rootDictionaryObjId + " 0 R"), M("/Resources " + l.resourceDictionaryObjId + " 0 R"), M("/MediaBox [" + parseFloat(K(l.mediaBox.bottomLeftX)) + " " + parseFloat(K(l.mediaBox.bottomLeftY)) + " " + K(l.mediaBox.topRightX) + " " + K(l.mediaBox.topRightY) + "]"), l.cropBox !== null && M("/CropBox [" + K(l.cropBox.bottomLeftX) + " " + K(l.cropBox.bottomLeftY) + " " + K(l.cropBox.topRightX) + " " + K(l.cropBox.topRightY) + "]"), l.bleedBox !== null && M("/BleedBox [" + K(l.bleedBox.bottomLeftX) + " " + K(l.bleedBox.bottomLeftY) + " " + K(l.bleedBox.topRightX) + " " + K(l.bleedBox.topRightY) + "]"), l.trimBox !== null && M("/TrimBox [" + K(l.trimBox.bottomLeftX) + " " + K(l.trimBox.bottomLeftY) + " " + K(l.trimBox.topRightX) + " " + K(l.trimBox.topRightY) + "]"), l.artBox !== null && M("/ArtBox [" + K(l.artBox.bottomLeftX) + " " + K(l.artBox.bottomLeftY) + " " + K(l.artBox.topRightX) + " " + K(l.artBox.topRightY) + "]"), typeof l.userUnit == "number" && l.userUnit !== 1 && M("/UserUnit " + l.userUnit), be.publish("putPage", { objId: D, pageContext: Gt[v], pageNumber: v, page: I }), M("/Contents " +
|
|
2866
|
+
var v = l.number, I = l.data, D = l.objId, X = l.contentsObjId;
|
|
2867
|
+
ir(D, !0), M("<</Type /Page"), M("/Parent " + l.rootDictionaryObjId + " 0 R"), M("/Resources " + l.resourceDictionaryObjId + " 0 R"), M("/MediaBox [" + parseFloat(K(l.mediaBox.bottomLeftX)) + " " + parseFloat(K(l.mediaBox.bottomLeftY)) + " " + K(l.mediaBox.topRightX) + " " + K(l.mediaBox.topRightY) + "]"), l.cropBox !== null && M("/CropBox [" + K(l.cropBox.bottomLeftX) + " " + K(l.cropBox.bottomLeftY) + " " + K(l.cropBox.topRightX) + " " + K(l.cropBox.topRightY) + "]"), l.bleedBox !== null && M("/BleedBox [" + K(l.bleedBox.bottomLeftX) + " " + K(l.bleedBox.bottomLeftY) + " " + K(l.bleedBox.topRightX) + " " + K(l.bleedBox.topRightY) + "]"), l.trimBox !== null && M("/TrimBox [" + K(l.trimBox.bottomLeftX) + " " + K(l.trimBox.bottomLeftY) + " " + K(l.trimBox.topRightX) + " " + K(l.trimBox.topRightY) + "]"), l.artBox !== null && M("/ArtBox [" + K(l.artBox.bottomLeftX) + " " + K(l.artBox.bottomLeftY) + " " + K(l.artBox.topRightX) + " " + K(l.artBox.topRightY) + "]"), typeof l.userUnit == "number" && l.userUnit !== 1 && M("/UserUnit " + l.userUnit), be.publish("putPage", { objId: D, pageContext: Gt[v], pageNumber: v, page: I }), M("/Contents " + X + " 0 R"), M(">>"), M("endobj");
|
|
2868
2868
|
var ut = I.join(`
|
|
2869
2869
|
`);
|
|
2870
2870
|
return q === Y && (ut += `
|
|
2871
|
-
Q`), ir(
|
|
2871
|
+
Q`), ir(X, !0), Rr({ data: ut, filters: Gr(), objectId: X }), M("endobj"), D;
|
|
2872
2872
|
}, nn = p.__private__.putPages = function() {
|
|
2873
2873
|
var l, v, I = [];
|
|
2874
2874
|
for (l = 1; l <= ue; l++) Gt[l].objId = rr(), Gt[l].contentsObjId = rr();
|
|
@@ -2905,15 +2905,15 @@ Q`), ir(J, !0), Rr({ data: ut, filters: Gr(), objectId: J }), M("endobj"), D;
|
|
|
2905
2905
|
Ne += H(Math.round((1 - Re) * fr[0] + Re * _n[0]).toString(16)) + H(Math.round((1 - Re) * fr[1] + Re * _n[1]).toString(16)) + H(Math.round((1 - Re) * fr[2] + Re * _n[2]).toString(16));
|
|
2906
2906
|
}
|
|
2907
2907
|
return Ne.trim();
|
|
2908
|
-
})(l.colors, v),
|
|
2909
|
-
|
|
2908
|
+
})(l.colors, v), X = [];
|
|
2909
|
+
X.push({ key: "FunctionType", value: "0" }), X.push({ key: "Domain", value: "[0.0 1.0]" }), X.push({ key: "Size", value: "[" + v + "]" }), X.push({ key: "BitsPerSample", value: "8" }), X.push({ key: "Range", value: "[0.0 1.0 0.0 1.0 0.0 1.0]" }), X.push({ key: "Decode", value: "[0.0 1.0 0.0 1.0 0.0 1.0]" }), Rr({ data: D, additionalKeyValues: X, alreadyAppliedFilters: ["/ASCIIHexDecode"], objectId: I }), M("endobj"), l.objectNumber = Te(), M("<< /ShadingType " + l.type), M("/ColorSpace /DeviceRGB");
|
|
2910
2910
|
var ut = "/Coords [" + K(parseFloat(l.coords[0])) + " " + K(parseFloat(l.coords[1])) + " ";
|
|
2911
2911
|
l.type === 2 ? ut += K(parseFloat(l.coords[2])) + " " + K(parseFloat(l.coords[3])) : ut += K(parseFloat(l.coords[2])) + " " + K(parseFloat(l.coords[3])) + " " + K(parseFloat(l.coords[4])) + " " + K(parseFloat(l.coords[5])), M(ut += "]"), l.matrix && M("/Matrix [" + l.matrix.toString() + "]"), M("/Function " + I + " 0 R"), M("/Extend [true true]"), M(">>"), M("endobj");
|
|
2912
2912
|
}, Pi = function(l, v) {
|
|
2913
2913
|
var I = rr(), D = Te();
|
|
2914
2914
|
v.push({ resourcesOid: I, objectOid: D }), l.objectNumber = D;
|
|
2915
|
-
var
|
|
2916
|
-
|
|
2915
|
+
var X = [];
|
|
2916
|
+
X.push({ key: "Type", value: "/Pattern" }), X.push({ key: "PatternType", value: "1" }), X.push({ key: "PaintType", value: "1" }), X.push({ key: "TilingType", value: "1" }), X.push({ key: "BBox", value: "[" + l.boundingBox.map(K).join(" ") + "]" }), X.push({ key: "XStep", value: K(l.xStep) }), X.push({ key: "YStep", value: K(l.yStep) }), X.push({ key: "Resources", value: I + " 0 R" }), l.matrix && X.push({ key: "Matrix", value: "[" + l.matrix.toString() + "]" }), Rr({ data: l.stream, additionalKeyValues: X, objectId: l.objectNumber }), M("endobj");
|
|
2917
2917
|
}, qs = function(l) {
|
|
2918
2918
|
for (var v in l.objectNumber = Te(), M("<<"), l) switch (v) {
|
|
2919
2919
|
case "opacity":
|
|
@@ -2949,45 +2949,45 @@ Q`), ir(J, !0), Rr({ data: ut, filters: Gr(), objectId: J }), M("endobj"), D;
|
|
|
2949
2949
|
})(), M(">>"), M("endobj");
|
|
2950
2950
|
}, Ra = function(l) {
|
|
2951
2951
|
oe[l.fontName] = oe[l.fontName] || {}, oe[l.fontName][l.fontStyle] = l.id;
|
|
2952
|
-
}, Ta = function(l, v, I, D,
|
|
2953
|
-
var ut = { id: "F" + (Object.keys(se).length + 1).toString(10), postScriptName: l, fontName: v, fontStyle: I, encoding: D, isStandardFont:
|
|
2952
|
+
}, Ta = function(l, v, I, D, X) {
|
|
2953
|
+
var ut = { id: "F" + (Object.keys(se).length + 1).toString(10), postScriptName: l, fontName: v, fontStyle: I, encoding: D, isStandardFont: X || !1, metadata: {} };
|
|
2954
2954
|
return be.publish("addFont", { font: ut, instance: this }), se[ut.id] = ut, Ra(ut), ut.id;
|
|
2955
2955
|
}, Tr = p.__private__.pdfEscape = p.pdfEscape = function(l, v) {
|
|
2956
2956
|
return (function(I, D) {
|
|
2957
|
-
var
|
|
2958
|
-
if (vt = (D = D || {}).sourceEncoding || "Unicode", Et = D.outputEncoding, (D.autoencode || Et) && se[
|
|
2959
|
-
for (te = !1, Kt = [],
|
|
2957
|
+
var X, ut, vt, Ct, Et, Kt, te, de, Ke;
|
|
2958
|
+
if (vt = (D = D || {}).sourceEncoding || "Unicode", Et = D.outputEncoding, (D.autoencode || Et) && se[Ot].metadata && se[Ot].metadata[vt] && se[Ot].metadata[vt].encoding && (Ct = se[Ot].metadata[vt].encoding, !Et && se[Ot].encoding && (Et = se[Ot].encoding), !Et && Ct.codePages && (Et = Ct.codePages[0]), typeof Et == "string" && (Et = Ct[Et]), Et)) {
|
|
2959
|
+
for (te = !1, Kt = [], X = 0, ut = I.length; X < ut; X++) (de = Et[I.charCodeAt(X)]) ? Kt.push(String.fromCharCode(de)) : Kt.push(I[X]), Kt[X].charCodeAt(0) >> 8 && (te = !0);
|
|
2960
2960
|
I = Kt.join("");
|
|
2961
2961
|
}
|
|
2962
|
-
for (
|
|
2962
|
+
for (X = I.length; te === void 0 && X !== 0; ) I.charCodeAt(X - 1) >> 8 && (te = !0), X--;
|
|
2963
2963
|
if (!te) return I;
|
|
2964
|
-
for (Kt = D.noBOM ? [] : [254, 255],
|
|
2965
|
-
if ((Ke = (de = I.charCodeAt(
|
|
2964
|
+
for (Kt = D.noBOM ? [] : [254, 255], X = 0, ut = I.length; X < ut; X++) {
|
|
2965
|
+
if ((Ke = (de = I.charCodeAt(X)) >> 8) >> 8) throw new Error("Character at position " + X + " of string '" + I + "' exceeds 16bits. Cannot be encoded into UCS-2 BE");
|
|
2966
2966
|
Kt.push(Ke), Kt.push(de - (Ke << 8));
|
|
2967
2967
|
}
|
|
2968
2968
|
return String.fromCharCode.apply(void 0, Kt);
|
|
2969
2969
|
})(l, v).replace(/\\/g, "\\\\").replace(/\(/g, "\\(").replace(/\)/g, "\\)");
|
|
2970
2970
|
}, ua = p.__private__.beginPage = function(l) {
|
|
2971
|
-
At[++ue] = [], Gt[ue] = { objId: 0, contentsObjId: 0, userUnit: Number(u), artBox: null, bleedBox: null, cropBox: null, trimBox: null, mediaBox: { bottomLeftX: 0, bottomLeftY: 0, topRightX: Number(l[0]), topRightY: Number(l[1]) } }, qa(ue), Dt(At[
|
|
2971
|
+
At[++ue] = [], Gt[ue] = { objId: 0, contentsObjId: 0, userUnit: Number(u), artBox: null, bleedBox: null, cropBox: null, trimBox: null, mediaBox: { bottomLeftX: 0, bottomLeftY: 0, topRightX: Number(l[0]), topRightY: Number(l[1]) } }, qa(ue), Dt(At[O]);
|
|
2972
2972
|
}, Da = function(l, v) {
|
|
2973
|
-
var I, D,
|
|
2974
|
-
switch (e = v || e, typeof l == "string" && (I = k(l.toLowerCase()), Array.isArray(I) && (D = I[0],
|
|
2973
|
+
var I, D, X;
|
|
2974
|
+
switch (e = v || e, typeof l == "string" && (I = k(l.toLowerCase()), Array.isArray(I) && (D = I[0], X = I[1])), Array.isArray(l) && (D = l[0] * re, X = l[1] * re), isNaN(D) && (D = s[0], X = s[1]), (D > 14400 || X > 14400) && (_e.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"), D = Math.min(14400, D), X = Math.min(14400, X)), s = [D, X], e.substr(0, 1)) {
|
|
2975
2975
|
case "l":
|
|
2976
|
-
|
|
2976
|
+
X > D && (s = [X, D]);
|
|
2977
2977
|
break;
|
|
2978
2978
|
case "p":
|
|
2979
|
-
D >
|
|
2979
|
+
D > X && (s = [X, D]);
|
|
2980
2980
|
}
|
|
2981
|
-
ua(s), Ks(
|
|
2981
|
+
ua(s), Ks(Jt), M(ji), da !== 0 && M(da + " J"), Bn !== 0 && M(Bn + " j"), be.publish("addPage", { pageNumber: ue });
|
|
2982
2982
|
}, la = function(l) {
|
|
2983
|
-
l > 0 && l <= ue && (At.splice(l, 1), Gt.splice(l, 1), ue--,
|
|
2983
|
+
l > 0 && l <= ue && (At.splice(l, 1), Gt.splice(l, 1), ue--, O > ue && (O = ue), this.setPage(O));
|
|
2984
2984
|
}, qa = function(l) {
|
|
2985
|
-
l > 0 && l <= ue && (
|
|
2985
|
+
l > 0 && l <= ue && (O = l);
|
|
2986
2986
|
}, Ua = p.__private__.getNumberOfPages = p.getNumberOfPages = function() {
|
|
2987
2987
|
return At.length - 1;
|
|
2988
2988
|
}, za = function(l, v, I) {
|
|
2989
|
-
var D,
|
|
2990
|
-
return I = I || {}, l = l !== void 0 ? l : se[
|
|
2989
|
+
var D, X = void 0;
|
|
2990
|
+
return I = I || {}, l = l !== void 0 ? l : se[Ot].fontName, v = v !== void 0 ? v : se[Ot].fontStyle, D = l.toLowerCase(), oe[D] !== void 0 && oe[D][v] !== void 0 ? X = oe[D][v] : oe[l] !== void 0 && oe[l][v] !== void 0 ? X = oe[l][v] : I.disableWarning === !1 && _e.warn("Unable to look up font label for font '" + l + "', '" + v + "'. Refer to getFontList() for available fonts."), X || I.noFallback || (X = oe.times[v]) == null && (X = oe.times.normal), X;
|
|
2991
2991
|
}, an = p.__private__.putInfo = function() {
|
|
2992
2992
|
var l = Te(), v = function(D) {
|
|
2993
2993
|
return D;
|
|
@@ -3029,16 +3029,16 @@ Q`), ir(J, !0), Rr({ data: ut, filters: Gr(), objectId: J }), M("endobj"), D;
|
|
|
3029
3029
|
}
|
|
3030
3030
|
qt && M("/PageMode /" + qt), be.publish("putCatalog"), M(">>"), M("endobj");
|
|
3031
3031
|
}, Us = p.__private__.putTrailer = function() {
|
|
3032
|
-
M("trailer"), M("<<"), M("/Size " + (
|
|
3033
|
-
},
|
|
3034
|
-
M("%PDF-" +
|
|
3032
|
+
M("trailer"), M("<<"), M("/Size " + (J + 1)), M("/Root " + J + " 0 R"), M("/Info " + (J - 1) + " 0 R"), g !== null && M("/Encrypt " + ar.oid + " 0 R"), M("/ID [ <" + ot + "> <" + ot + "> ]"), M(">>");
|
|
3033
|
+
}, Xe = p.__private__.putHeader = function() {
|
|
3034
|
+
M("%PDF-" + j), M("%ºß¬à");
|
|
3035
3035
|
}, Ha = p.__private__.putXRef = function() {
|
|
3036
3036
|
var l = "0000000000";
|
|
3037
|
-
M("xref"), M("0 " + (
|
|
3038
|
-
for (var v = 1; v <=
|
|
3037
|
+
M("xref"), M("0 " + (J + 1)), M("0000000000 65535 f ");
|
|
3038
|
+
for (var v = 1; v <= J; v++) typeof Z[v] == "function" ? M((l + Z[v]()).slice(-10) + " 00000 n ") : Z[v] !== void 0 ? M((l + Z[v]).slice(-10) + " 00000 n ") : M("0000000000 00000 n ");
|
|
3039
3039
|
}, sn = p.__private__.buildDocument = function() {
|
|
3040
3040
|
var l;
|
|
3041
|
-
|
|
3041
|
+
J = 0, st = 0, at = [], Z = [], gt = [], Fn = rr(), Hr = rr(), Dt(at), be.publish("buildDocument"), Xe(), nn(), (function() {
|
|
3042
3042
|
be.publish("putAdditionalObjects");
|
|
3043
3043
|
for (var I = 0; I < gt.length; I++) {
|
|
3044
3044
|
var D = gt[I];
|
|
@@ -3057,15 +3057,15 @@ Q`), ir(J, !0), Rr({ data: ut, filters: Gr(), objectId: J }), M("endobj"), D;
|
|
|
3057
3057
|
for (D in Ut) Ut.hasOwnProperty(D) && (Ut[D] instanceof wi ? ki(Ut[D]) : Ut[D] instanceof ta && Pi(Ut[D], I));
|
|
3058
3058
|
})(l), be.publish("putResources"), l.forEach(oa), oa({ resourcesOid: Hr, objectOid: Number.MAX_SAFE_INTEGER }), be.publish("postPutResources"), g !== null && (ar.oid = Te(), M("<<"), M("/Filter /Standard"), M("/V " + ar.v), M("/R " + ar.r), M("/U <" + ar.toHexString(ar.U) + ">"), M("/O <" + ar.toHexString(ar.O) + ">"), M("/P " + ar.P), M(">>"), M("endobj")), an(), Mi();
|
|
3059
3059
|
var v = st;
|
|
3060
|
-
return Ha(), Us(), M("startxref"), M("" + v), M("%%EOF"), Dt(At[
|
|
3060
|
+
return Ha(), Us(), M("startxref"), M("" + v), M("%%EOF"), Dt(At[O]), at.join(`
|
|
3061
3061
|
`);
|
|
3062
3062
|
}, Ii = p.__private__.getBlob = function(l) {
|
|
3063
3063
|
return new Blob([ae(l)], { type: "application/pdf" });
|
|
3064
3064
|
}, fa = function(l) {
|
|
3065
3065
|
for (; l.firstChild; ) l.removeChild(l.firstChild);
|
|
3066
3066
|
}, kr = function(l) {
|
|
3067
|
-
var v, I = l.document, D = I.documentElement,
|
|
3068
|
-
return
|
|
3067
|
+
var v, I = l.document, D = I.documentElement, X = I.head, ut = I.body;
|
|
3068
|
+
return X || (X = I.createElement("head"), D.appendChild(X)), ut || (ut = I.createElement("body"), D.appendChild(ut)), fa(X), fa(ut), (v = I.createElement("style")).appendChild(I.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")), X.appendChild(v), { document: I, body: ut };
|
|
3069
3069
|
}, Ei = p.output = p.__private__.output = (Br = function(l, v) {
|
|
3070
3070
|
switch (typeof (v = v || {}) == "string" ? v = { filename: v } : v.filename = v.filename || "generated.pdf", l) {
|
|
3071
3071
|
case void 0:
|
|
@@ -3079,7 +3079,7 @@ Q`), ir(J, !0), Rr({ data: ut, filters: Gr(), objectId: J }), M("endobj"), D;
|
|
|
3079
3079
|
return Ii(sn());
|
|
3080
3080
|
case "bloburi":
|
|
3081
3081
|
case "bloburl":
|
|
3082
|
-
if (
|
|
3082
|
+
if (Xt.URL !== void 0 && typeof Xt.URL.createObjectURL == "function") return Xt.URL && Xt.URL.createObjectURL(Ii(sn())) || void 0;
|
|
3083
3083
|
_e.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");
|
|
3084
3084
|
break;
|
|
3085
3085
|
case "datauristring":
|
|
@@ -3092,13 +3092,13 @@ Q`), ir(J, !0), Rr({ data: ut, filters: Gr(), objectId: J }), M("endobj"), D;
|
|
|
3092
3092
|
}
|
|
3093
3093
|
return "data:application/pdf;filename=" + encodeURIComponent(v.filename) + ";base64," + I;
|
|
3094
3094
|
case "pdfobjectnewwindow":
|
|
3095
|
-
if (Object.prototype.toString.call(
|
|
3096
|
-
var
|
|
3097
|
-
ut || (
|
|
3098
|
-
var vt =
|
|
3095
|
+
if (Object.prototype.toString.call(Xt) === "[object Window]") {
|
|
3096
|
+
var X = "https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js", ut = !v.pdfObjectUrl;
|
|
3097
|
+
ut || (X = v.pdfObjectUrl);
|
|
3098
|
+
var vt = Xt.open();
|
|
3099
3099
|
if (vt !== null) {
|
|
3100
3100
|
var Ct = kr(vt), Et = Ct.document.createElement("script"), Kt = this;
|
|
3101
|
-
Et.src =
|
|
3101
|
+
Et.src = X, ut && (Et.integrity = "sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==", Et.crossOrigin = "anonymous"), Et.onload = function() {
|
|
3102
3102
|
vt.PDFObject.embed(Kt.output("dataurlstring"), v);
|
|
3103
3103
|
}, Ct.body.appendChild(Et);
|
|
3104
3104
|
}
|
|
@@ -3106,8 +3106,8 @@ Q`), ir(J, !0), Rr({ data: ut, filters: Gr(), objectId: J }), M("endobj"), D;
|
|
|
3106
3106
|
}
|
|
3107
3107
|
throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");
|
|
3108
3108
|
case "pdfjsnewwindow":
|
|
3109
|
-
if (Object.prototype.toString.call(
|
|
3110
|
-
var te = v.pdfJsUrl || "examples/PDF.js/web/viewer.html", de =
|
|
3109
|
+
if (Object.prototype.toString.call(Xt) === "[object Window]") {
|
|
3110
|
+
var te = v.pdfJsUrl || "examples/PDF.js/web/viewer.html", de = Xt.open();
|
|
3111
3111
|
if (de !== null) {
|
|
3112
3112
|
var Ke = kr(de), Ne = Ke.document.createElement("iframe"), Ae = te.indexOf("?") === -1 ? "?" : "&";
|
|
3113
3113
|
Kt = this, Ne.id = "pdfViewer", Ne.width = "500px", Ne.height = "400px", Ne.src = te + Ae + "file=&downloadName=" + encodeURIComponent(v.filename), Ne.onload = function() {
|
|
@@ -3118,8 +3118,8 @@ Q`), ir(J, !0), Rr({ data: ut, filters: Gr(), objectId: J }), M("endobj"), D;
|
|
|
3118
3118
|
}
|
|
3119
3119
|
throw new Error("The option pdfjsnewwindow just works in a browser-environment.");
|
|
3120
3120
|
case "dataurlnewwindow":
|
|
3121
|
-
if (Object.prototype.toString.call(
|
|
3122
|
-
var Ie =
|
|
3121
|
+
if (Object.prototype.toString.call(Xt) !== "[object Window]") throw new Error("The option dataurlnewwindow just works in a browser-environment.");
|
|
3122
|
+
var Ie = Xt.open();
|
|
3123
3123
|
if (Ie !== null) {
|
|
3124
3124
|
var Be = kr(Ie), Re = Be.document.createElement("iframe");
|
|
3125
3125
|
Re.src = this.output("datauristring", v), Be.body.appendChild(Re), Ie.document.title = v.filename;
|
|
@@ -3128,7 +3128,7 @@ Q`), ir(J, !0), Rr({ data: ut, filters: Gr(), objectId: J }), M("endobj"), D;
|
|
|
3128
3128
|
break;
|
|
3129
3129
|
case "datauri":
|
|
3130
3130
|
case "dataurl":
|
|
3131
|
-
return
|
|
3131
|
+
return Xt.document.location.href = this.output("datauristring", v);
|
|
3132
3132
|
default:
|
|
3133
3133
|
return null;
|
|
3134
3134
|
}
|
|
@@ -3140,8 +3140,8 @@ Q`), ir(J, !0), Rr({ data: ut, filters: Gr(), objectId: J }), M("endobj"), D;
|
|
|
3140
3140
|
~l.indexOf(" at ") && (l = l.split(" at ")[1]);
|
|
3141
3141
|
var v = "Error in function " + l.split(`
|
|
3142
3142
|
`)[0].split("<")[0] + ": " + I.message;
|
|
3143
|
-
if (!
|
|
3144
|
-
|
|
3143
|
+
if (!Xt.console) throw new Error(v);
|
|
3144
|
+
Xt.console.error(v, I), Xt.alert && alert(v);
|
|
3145
3145
|
}
|
|
3146
3146
|
}, Br.foo.bar = Br, Br.foo), yn = function(l) {
|
|
3147
3147
|
return Array.isArray(Qn) === !0 && Qn.indexOf(l) > -1;
|
|
@@ -3183,19 +3183,19 @@ Q`), ir(J, !0), Rr({ data: ut, filters: Gr(), objectId: J }), M("endobj"), D;
|
|
|
3183
3183
|
for (var v in Gt) if (Gt[v].objId === l) break;
|
|
3184
3184
|
return Wa(v);
|
|
3185
3185
|
}, Hs = p.__private__.getCurrentPageInfo = p.getCurrentPageInfo = function() {
|
|
3186
|
-
return { objId: Gt[
|
|
3186
|
+
return { objId: Gt[O].objId, pageNumber: O, pageContext: Gt[O] };
|
|
3187
3187
|
};
|
|
3188
3188
|
p.addPage = function() {
|
|
3189
3189
|
return Da.apply(this, arguments), this;
|
|
3190
3190
|
}, p.setPage = function() {
|
|
3191
|
-
return qa.apply(this, arguments), Dt.call(this, At[
|
|
3191
|
+
return qa.apply(this, arguments), Dt.call(this, At[O]), this;
|
|
3192
3192
|
}, p.insertPage = function(l) {
|
|
3193
|
-
return this.addPage(), this.movePage(
|
|
3193
|
+
return this.addPage(), this.movePage(O, l), this;
|
|
3194
3194
|
}, p.movePage = function(l, v) {
|
|
3195
3195
|
var I, D;
|
|
3196
3196
|
if (l > v) {
|
|
3197
3197
|
I = At[l], D = Gt[l];
|
|
3198
|
-
for (var
|
|
3198
|
+
for (var X = l; X > v; X--) At[X] = At[X - 1], Gt[X] = Gt[X - 1];
|
|
3199
3199
|
At[v] = I, Gt[v] = D, this.setPage(v);
|
|
3200
3200
|
} else if (l < v) {
|
|
3201
3201
|
I = At[l], D = Gt[l];
|
|
@@ -3205,13 +3205,13 @@ Q`), ir(J, !0), Rr({ data: ut, filters: Gr(), objectId: J }), M("endobj"), D;
|
|
|
3205
3205
|
return this;
|
|
3206
3206
|
}, p.deletePage = function() {
|
|
3207
3207
|
return la.apply(this, arguments), this;
|
|
3208
|
-
}, p.__private__.text = p.text = function(l, v, I, D,
|
|
3208
|
+
}, p.__private__.text = p.text = function(l, v, I, D, X) {
|
|
3209
3209
|
var ut, vt, Ct, Et, Kt, te, de, Ke, Ne, Ae = (D = D || {}).scope || this;
|
|
3210
3210
|
if (typeof l == "number" && typeof v == "number" && (typeof I == "string" || Array.isArray(I))) {
|
|
3211
3211
|
var Ie = I;
|
|
3212
3212
|
I = v, v = l, l = Ie;
|
|
3213
3213
|
}
|
|
3214
|
-
if (arguments[3] instanceof Vt == 0 ? (Ct = arguments[4], Et = arguments[5], xe(de = arguments[3]) === "object" && de !== null || (typeof Ct == "string" && (Et = Ct, Ct = null), typeof de == "string" && (Et = de, de = null), typeof de == "number" && (Ct = de, de = null), D = { flags: de, angle: Ct, align: Et })) : (R("The transform parameter of text() with a Matrix value"), Ne =
|
|
3214
|
+
if (arguments[3] instanceof Vt == 0 ? (Ct = arguments[4], Et = arguments[5], xe(de = arguments[3]) === "object" && de !== null || (typeof Ct == "string" && (Et = Ct, Ct = null), typeof de == "string" && (Et = de, de = null), typeof de == "number" && (Ct = de, de = null), D = { flags: de, angle: Ct, align: Et })) : (R("The transform parameter of text() with a Matrix value"), Ne = X), isNaN(v) || isNaN(I) || l == null) throw new Error("Invalid arguments passed to jsPDF.text");
|
|
3215
3215
|
if (l.length === 0) return Ae;
|
|
3216
3216
|
var Be, Re = "", fr = typeof D.lineHeightFactor == "number" ? D.lineHeightFactor : ni, _n = Ae.internal.scaleFactor;
|
|
3217
3217
|
function va(ke) {
|
|
@@ -3256,12 +3256,12 @@ Q`), ir(J, !0), Rr({ data: ut, filters: Gr(), objectId: J }), M("endobj"), D;
|
|
|
3256
3256
|
}
|
|
3257
3257
|
if ((te = D.maxWidth || 0) > 0 && (typeof l == "string" ? l = Ae.splitTextToSize(l, te) : Object.prototype.toString.call(l) === "[object Array]" && (l = l.reduce(function(ke, Pe) {
|
|
3258
3258
|
return ke.concat(Ae.splitTextToSize(Pe, te));
|
|
3259
|
-
}, []))), ut = { text: l, x: v, y: I, options: D, mutex: { pdfEscape: Tr, activeFontKey:
|
|
3259
|
+
}, []))), ut = { text: l, x: v, y: I, options: D, mutex: { pdfEscape: Tr, activeFontKey: Ot, fonts: se, activeFontSize: yt } }, be.publish("preProcessText", ut), l = ut.text, Ct = (D = ut.options).angle, Ne instanceof Vt == 0 && Ct && typeof Ct == "number") {
|
|
3260
3260
|
Ct *= Math.PI / 180, D.rotationDirection === 0 && (Ct = -Ct), q === Y && (Ct = -Ct);
|
|
3261
3261
|
var ba = Math.cos(Ct), ln = Math.sin(Ct);
|
|
3262
3262
|
Ne = new Vt(ba, ln, -ln, ba, 0, 0);
|
|
3263
3263
|
} else Ct && Ct instanceof Vt && (Ne = Ct);
|
|
3264
|
-
q !== Y || Ne || (Ne = wn), (Kt = D.charSpace ||
|
|
3264
|
+
q !== Y || Ne || (Ne = wn), (Kt = D.charSpace || Oi) !== void 0 && (Re += K(z(Kt)) + ` Tc
|
|
3265
3265
|
`, this.setCharSpace(this.getCharSpace() || 0)), (Ke = D.horizontalScale) !== void 0 && (Re += K(100 * Ke) + ` Tz
|
|
3266
3266
|
`), D.lang;
|
|
3267
3267
|
var br = -1, Za = D.renderingMode !== void 0 ? D.renderingMode : D.stroke, qi = Ae.internal.getCurrentPageInfo().pageContext;
|
|
@@ -3304,8 +3304,8 @@ Q`), ir(J, !0), Rr({ data: ut, filters: Gr(), objectId: J }), M("endobj"), D;
|
|
|
3304
3304
|
br !== -1 ? Re += br + ` Tr
|
|
3305
3305
|
` : Qa !== -1 && (Re += `0 Tr
|
|
3306
3306
|
`), br !== -1 && (qi.usedRenderingMode = br), Et = D.align || "left";
|
|
3307
|
-
var Dr, ci = yt * fr, wa = Ae.internal.pageSize.getWidth(), Ui = se[
|
|
3308
|
-
Kt = D.charSpace ||
|
|
3307
|
+
var Dr, ci = yt * fr, wa = Ae.internal.pageSize.getWidth(), Ui = se[Ot];
|
|
3308
|
+
Kt = D.charSpace || Oi, te = D.maxWidth || 0, de = Object.assign({ autoencode: !0, noBOM: !0 }, D.flags);
|
|
3309
3309
|
var hi = [], ya = function(ke) {
|
|
3310
3310
|
return Ae.getStringUnitWidth(ke, { font: Ui, charSpace: Kt, fontSize: yt, doKerning: !1 }) * yt / _n;
|
|
3311
3311
|
};
|
|
@@ -3344,8 +3344,8 @@ Q`), ir(J, !0), Rr({ data: ut, filters: Gr(), objectId: J }), M("endobj"), D;
|
|
|
3344
3344
|
}
|
|
3345
3345
|
(typeof D.R2L == "boolean" ? D.R2L : zt) === !0 && (l = oi(l, function(ke, Pe, He) {
|
|
3346
3346
|
return [ke.split("").reverse().join(""), Pe, He];
|
|
3347
|
-
})), ut = { text: l, x: v, y: I, options: D, mutex: { pdfEscape: Tr, activeFontKey:
|
|
3348
|
-
var Wi = se[
|
|
3347
|
+
})), ut = { text: l, x: v, y: I, options: D, mutex: { pdfEscape: Tr, activeFontKey: Ot, fonts: se, activeFontSize: yt } }, be.publish("postProcessText", ut), l = ut.text, Be = ut.mutex.isHex || !1;
|
|
3348
|
+
var Wi = se[Ot].encoding;
|
|
3349
3349
|
Wi !== "WinAnsiEncoding" && Wi !== "StandardEncoding" || (l = oi(l, function(ke, Pe, He) {
|
|
3350
3350
|
return [va(ke), Pe, He];
|
|
3351
3351
|
})), vt = si(l), l = [];
|
|
@@ -3371,10 +3371,10 @@ T* `) : l.join(` Tj
|
|
|
3371
3371
|
`;
|
|
3372
3372
|
var cn = `BT
|
|
3373
3373
|
/`;
|
|
3374
|
-
return cn +=
|
|
3374
|
+
return cn += Ot + " " + yt + ` Tf
|
|
3375
3375
|
`, cn += K(yt * fr) + ` TL
|
|
3376
3376
|
`, cn += un + `
|
|
3377
|
-
`, cn += Re, cn += l, M(cn += "ET"), N[
|
|
3377
|
+
`, cn += Re, cn += l, M(cn += "ET"), N[Ot] = !0, Ae;
|
|
3378
3378
|
};
|
|
3379
3379
|
var Ws = p.__private__.clip = p.clip = function(l) {
|
|
3380
3380
|
return M(l === "evenodd" ? "W*" : "W"), this;
|
|
@@ -3431,18 +3431,18 @@ T* `) : l.join(` Tj
|
|
|
3431
3431
|
}, ca = function(l) {
|
|
3432
3432
|
l === null || q === Y && l === void 0 || (l = Ga(l), M(l));
|
|
3433
3433
|
};
|
|
3434
|
-
function Gs(l, v, I, D,
|
|
3435
|
-
var ut = new ta(v || this.boundingBox, I || this.xStep, D || this.yStep, this.gState,
|
|
3434
|
+
function Gs(l, v, I, D, X) {
|
|
3435
|
+
var ut = new ta(v || this.boundingBox, I || this.xStep, D || this.yStep, this.gState, X || this.matrix);
|
|
3436
3436
|
ut.stream = this.stream;
|
|
3437
3437
|
var vt = l + "$$" + this.cloneIndex++ + "$$";
|
|
3438
|
-
return
|
|
3438
|
+
return Or(vt, ut), ut;
|
|
3439
3439
|
}
|
|
3440
3440
|
var Vs = function(l, v) {
|
|
3441
3441
|
var I = Se[l.key], D = Ut[I];
|
|
3442
3442
|
if (D instanceof wi) M("q"), M(Ys(v)), D.gState && p.setGState(D.gState), M(l.matrix.toString() + " cm"), M("/" + I + " sh"), M("Q");
|
|
3443
3443
|
else if (D instanceof ta) {
|
|
3444
|
-
var
|
|
3445
|
-
l.matrix && (
|
|
3444
|
+
var X = new Vt(1, 0, 0, -1, 0, ai());
|
|
3445
|
+
l.matrix && (X = X.multiply(l.matrix || wn), I = Gs.call(D, l.key, l.boundingBox, l.xStep, l.yStep, X).id), M("q"), M("/Pattern cs"), M("/" + I + " scn"), D.gState && p.setGState(D.gState), M(v), M("Q");
|
|
3446
3446
|
}
|
|
3447
3447
|
}, Ys = function(l) {
|
|
3448
3448
|
switch (l) {
|
|
@@ -3458,74 +3458,74 @@ T* `) : l.join(` Tj
|
|
|
3458
3458
|
case "B*":
|
|
3459
3459
|
return "W* S";
|
|
3460
3460
|
}
|
|
3461
|
-
},
|
|
3461
|
+
}, jn = p.moveTo = function(l, v) {
|
|
3462
3462
|
return M(K(z(l)) + " " + K(U(v)) + " m"), this;
|
|
3463
3463
|
}, Va = p.lineTo = function(l, v) {
|
|
3464
3464
|
return M(K(z(l)) + " " + K(U(v)) + " l"), this;
|
|
3465
|
-
},
|
|
3466
|
-
return M([K(z(l)), K(U(v)), K(z(I)), K(U(D)), K(z(
|
|
3465
|
+
}, On = p.curveTo = function(l, v, I, D, X, ut) {
|
|
3466
|
+
return M([K(z(l)), K(U(v)), K(z(I)), K(U(D)), K(z(X)), K(U(ut)), "c"].join(" ")), this;
|
|
3467
3467
|
};
|
|
3468
|
-
p.__private__.line = p.line = function(l, v, I, D,
|
|
3469
|
-
if (isNaN(l) || isNaN(v) || isNaN(I) || isNaN(D) || !on(
|
|
3470
|
-
return q === G ? this.lines([[I - l, D - v]], l, v, [1, 1],
|
|
3471
|
-
}, p.__private__.lines = p.lines = function(l, v, I, D,
|
|
3468
|
+
p.__private__.line = p.line = function(l, v, I, D, X) {
|
|
3469
|
+
if (isNaN(l) || isNaN(v) || isNaN(I) || isNaN(D) || !on(X)) throw new Error("Invalid arguments passed to jsPDF.line");
|
|
3470
|
+
return q === G ? this.lines([[I - l, D - v]], l, v, [1, 1], X || "S") : this.lines([[I - l, D - v]], l, v, [1, 1]).stroke();
|
|
3471
|
+
}, p.__private__.lines = p.lines = function(l, v, I, D, X, ut) {
|
|
3472
3472
|
var vt, Ct, Et, Kt, te, de, Ke, Ne, Ae, Ie, Be, Re;
|
|
3473
|
-
if (typeof l == "number" && (Re = I, I = v, v = l, l = Re), D = D || [1, 1], ut = ut || !1, isNaN(v) || isNaN(I) || !Array.isArray(l) || !Array.isArray(D) || !on(
|
|
3474
|
-
for (
|
|
3475
|
-
return ut && Ci(), ca(
|
|
3473
|
+
if (typeof l == "number" && (Re = I, I = v, v = l, l = Re), D = D || [1, 1], ut = ut || !1, isNaN(v) || isNaN(I) || !Array.isArray(l) || !Array.isArray(D) || !on(X) || typeof ut != "boolean") throw new Error("Invalid arguments passed to jsPDF.lines");
|
|
3474
|
+
for (jn(v, I), vt = D[0], Ct = D[1], Kt = l.length, Ie = v, Be = I, Et = 0; Et < Kt; Et++) (te = l[Et]).length === 2 ? (Ie = te[0] * vt + Ie, Be = te[1] * Ct + Be, Va(Ie, Be)) : (de = te[0] * vt + Ie, Ke = te[1] * Ct + Be, Ne = te[2] * vt + Ie, Ae = te[3] * Ct + Be, Ie = te[4] * vt + Ie, Be = te[5] * Ct + Be, On(de, Ke, Ne, Ae, Ie, Be));
|
|
3475
|
+
return ut && Ci(), ca(X), this;
|
|
3476
3476
|
}, p.path = function(l) {
|
|
3477
3477
|
for (var v = 0; v < l.length; v++) {
|
|
3478
3478
|
var I = l[v], D = I.c;
|
|
3479
3479
|
switch (I.op) {
|
|
3480
3480
|
case "m":
|
|
3481
|
-
|
|
3481
|
+
jn(D[0], D[1]);
|
|
3482
3482
|
break;
|
|
3483
3483
|
case "l":
|
|
3484
3484
|
Va(D[0], D[1]);
|
|
3485
3485
|
break;
|
|
3486
3486
|
case "c":
|
|
3487
|
-
|
|
3487
|
+
On.apply(this, D);
|
|
3488
3488
|
break;
|
|
3489
3489
|
case "h":
|
|
3490
3490
|
Ci();
|
|
3491
3491
|
}
|
|
3492
3492
|
}
|
|
3493
3493
|
return this;
|
|
3494
|
-
}, p.__private__.rect = p.rect = function(l, v, I, D,
|
|
3495
|
-
if (isNaN(l) || isNaN(v) || isNaN(I) || isNaN(D) || !on(
|
|
3496
|
-
return q === G && (D = -D), M([K(z(l)), K(U(v)), K(z(I)), K(z(D)), "re"].join(" ")), ca(
|
|
3497
|
-
}, p.__private__.triangle = p.triangle = function(l, v, I, D,
|
|
3498
|
-
if (isNaN(l) || isNaN(v) || isNaN(I) || isNaN(D) || isNaN(
|
|
3499
|
-
return this.lines([[I - l, D - v], [
|
|
3500
|
-
}, p.__private__.roundedRect = p.roundedRect = function(l, v, I, D,
|
|
3501
|
-
if (isNaN(l) || isNaN(v) || isNaN(I) || isNaN(D) || isNaN(
|
|
3494
|
+
}, p.__private__.rect = p.rect = function(l, v, I, D, X) {
|
|
3495
|
+
if (isNaN(l) || isNaN(v) || isNaN(I) || isNaN(D) || !on(X)) throw new Error("Invalid arguments passed to jsPDF.rect");
|
|
3496
|
+
return q === G && (D = -D), M([K(z(l)), K(U(v)), K(z(I)), K(z(D)), "re"].join(" ")), ca(X), this;
|
|
3497
|
+
}, p.__private__.triangle = p.triangle = function(l, v, I, D, X, ut, vt) {
|
|
3498
|
+
if (isNaN(l) || isNaN(v) || isNaN(I) || isNaN(D) || isNaN(X) || isNaN(ut) || !on(vt)) throw new Error("Invalid arguments passed to jsPDF.triangle");
|
|
3499
|
+
return this.lines([[I - l, D - v], [X - I, ut - D], [l - X, v - ut]], l, v, [1, 1], vt, !0), this;
|
|
3500
|
+
}, p.__private__.roundedRect = p.roundedRect = function(l, v, I, D, X, ut, vt) {
|
|
3501
|
+
if (isNaN(l) || isNaN(v) || isNaN(I) || isNaN(D) || isNaN(X) || isNaN(ut) || !on(vt)) throw new Error("Invalid arguments passed to jsPDF.roundedRect");
|
|
3502
3502
|
var Ct = 4 / 3 * (Math.SQRT2 - 1);
|
|
3503
|
-
return
|
|
3504
|
-
}, p.__private__.ellipse = p.ellipse = function(l, v, I, D,
|
|
3505
|
-
if (isNaN(l) || isNaN(v) || isNaN(I) || isNaN(D) || !on(
|
|
3503
|
+
return X = Math.min(X, 0.5 * I), ut = Math.min(ut, 0.5 * D), this.lines([[I - 2 * X, 0], [X * Ct, 0, X, ut - ut * Ct, X, ut], [0, D - 2 * ut], [0, ut * Ct, -X * Ct, ut, -X, ut], [2 * X - I, 0], [-X * Ct, 0, -X, -ut * Ct, -X, -ut], [0, 2 * ut - D], [0, -ut * Ct, X * Ct, -ut, X, -ut]], l + X, v, [1, 1], vt, !0), this;
|
|
3504
|
+
}, p.__private__.ellipse = p.ellipse = function(l, v, I, D, X) {
|
|
3505
|
+
if (isNaN(l) || isNaN(v) || isNaN(I) || isNaN(D) || !on(X)) throw new Error("Invalid arguments passed to jsPDF.ellipse");
|
|
3506
3506
|
var ut = 4 / 3 * (Math.SQRT2 - 1) * I, vt = 4 / 3 * (Math.SQRT2 - 1) * D;
|
|
3507
|
-
return
|
|
3507
|
+
return jn(l + I, v), On(l + I, v - vt, l + ut, v - D, l, v - D), On(l - ut, v - D, l - I, v - vt, l - I, v), On(l - I, v + vt, l - ut, v + D, l, v + D), On(l + ut, v + D, l + I, v + vt, l + I, v), ca(X), this;
|
|
3508
3508
|
}, p.__private__.circle = p.circle = function(l, v, I, D) {
|
|
3509
3509
|
if (isNaN(l) || isNaN(v) || isNaN(I) || !on(D)) throw new Error("Invalid arguments passed to jsPDF.circle");
|
|
3510
3510
|
return this.ellipse(l, v, I, I, D);
|
|
3511
3511
|
}, p.setFont = function(l, v, I) {
|
|
3512
|
-
return I && (v = dt(v, I)),
|
|
3512
|
+
return I && (v = dt(v, I)), Ot = za(l, v, { disableWarning: !1 }), this;
|
|
3513
3513
|
};
|
|
3514
|
-
var
|
|
3514
|
+
var Js = p.__private__.getFont = p.getFont = function() {
|
|
3515
3515
|
return se[za.apply(p, arguments)];
|
|
3516
3516
|
};
|
|
3517
3517
|
p.__private__.getFontList = p.getFontList = function() {
|
|
3518
3518
|
var l, v, I = {};
|
|
3519
3519
|
for (l in oe) if (oe.hasOwnProperty(l)) for (v in I[l] = [], oe[l]) oe[l].hasOwnProperty(v) && I[l].push(v);
|
|
3520
3520
|
return I;
|
|
3521
|
-
}, p.addFont = function(l, v, I, D,
|
|
3521
|
+
}, p.addFont = function(l, v, I, D, X) {
|
|
3522
3522
|
var ut = ["StandardEncoding", "MacRomanEncoding", "Identity-H", "WinAnsiEncoding"];
|
|
3523
|
-
return arguments[3] && ut.indexOf(arguments[3]) !== -1 ?
|
|
3523
|
+
return arguments[3] && ut.indexOf(arguments[3]) !== -1 ? X = arguments[3] : arguments[3] && ut.indexOf(arguments[3]) == -1 && (I = dt(I, D)), Ta.call(this, l, v, I, X = X || "Identity-H");
|
|
3524
3524
|
};
|
|
3525
|
-
var ni,
|
|
3526
|
-
return
|
|
3525
|
+
var ni, Jt = r.lineWidth || 0.200025, Xs = p.__private__.getLineWidth = p.getLineWidth = function() {
|
|
3526
|
+
return Jt;
|
|
3527
3527
|
}, Ks = p.__private__.setLineWidth = p.setLineWidth = function(l) {
|
|
3528
|
-
return
|
|
3528
|
+
return Jt = l, M(K(z(l)) + " w"), this;
|
|
3529
3529
|
};
|
|
3530
3530
|
p.__private__.setLineDash = Rt.API.setLineDash = Rt.API.setLineDashPattern = function(l, v) {
|
|
3531
3531
|
if (l = l || [], v = v || 0, isNaN(v) || !Array.isArray(l)) throw new Error("Invalid arguments passed to jsPDF.setLineDash");
|
|
@@ -3548,16 +3548,16 @@ T* `) : l.join(` Tj
|
|
|
3548
3548
|
var xn = p.__private__.getHorizontalCoordinate = function(l) {
|
|
3549
3549
|
return z(l);
|
|
3550
3550
|
}, An = p.__private__.getVerticalCoordinate = function(l) {
|
|
3551
|
-
return q === Y ? l : Gt[
|
|
3551
|
+
return q === Y ? l : Gt[O].mediaBox.topRightY - Gt[O].mediaBox.bottomLeftY - z(l);
|
|
3552
3552
|
}, to = p.__private__.getHorizontalCoordinateString = p.getHorizontalCoordinateString = function(l) {
|
|
3553
3553
|
return K(xn(l));
|
|
3554
3554
|
}, eo = p.__private__.getVerticalCoordinateString = p.getVerticalCoordinateString = function(l) {
|
|
3555
3555
|
return K(An(l));
|
|
3556
|
-
},
|
|
3556
|
+
}, ji = r.strokeColor || "0 G";
|
|
3557
3557
|
p.__private__.getStrokeColor = p.getDrawColor = function() {
|
|
3558
|
-
return rn(
|
|
3558
|
+
return rn(ji);
|
|
3559
3559
|
}, p.__private__.setStrokeColor = p.setDrawColor = function(l, v, I, D) {
|
|
3560
|
-
return
|
|
3560
|
+
return ji = Wr({ ch1: l, ch2: v, ch3: I, ch4: D, pdfColorType: "draw", precision: 2 }), M(ji), this;
|
|
3561
3561
|
};
|
|
3562
3562
|
var ha = r.fillColor || "0 g";
|
|
3563
3563
|
p.__private__.getFillColor = p.getFillColor = function() {
|
|
@@ -3571,12 +3571,12 @@ T* `) : l.join(` Tj
|
|
|
3571
3571
|
p.__private__.setTextColor = p.setTextColor = function(l, v, I, D) {
|
|
3572
3572
|
return un = Wr({ ch1: l, ch2: v, ch3: I, ch4: D, pdfColorType: "text", precision: 3 }), this;
|
|
3573
3573
|
};
|
|
3574
|
-
var
|
|
3575
|
-
return parseFloat(
|
|
3574
|
+
var Oi = r.charSpace, no = p.__private__.getCharSpace = p.getCharSpace = function() {
|
|
3575
|
+
return parseFloat(Oi || 0);
|
|
3576
3576
|
};
|
|
3577
3577
|
p.__private__.setCharSpace = p.setCharSpace = function(l) {
|
|
3578
3578
|
if (isNaN(l)) throw new Error("Invalid argument passed to jsPDF.setCharSpace");
|
|
3579
|
-
return
|
|
3579
|
+
return Oi = l, this;
|
|
3580
3580
|
};
|
|
3581
3581
|
var da = 0;
|
|
3582
3582
|
p.CapJoinStyles = { 0: 0, butt: 0, but: 0, miter: 0, 1: 1, round: 1, rounded: 1, circle: 1, 2: 2, projecting: 2, project: 2, square: 2, bevel: 2 }, p.__private__.setLineCap = p.setLineCap = function(l) {
|
|
@@ -3592,8 +3592,8 @@ T* `) : l.join(` Tj
|
|
|
3592
3592
|
}, p.__private__.setLineMiterLimit = p.__private__.setMiterLimit = p.setLineMiterLimit = p.setMiterLimit = function(l) {
|
|
3593
3593
|
if (l = l || 0, isNaN(l)) throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");
|
|
3594
3594
|
return M(K(z(l)) + " M"), this;
|
|
3595
|
-
}, p.GState =
|
|
3596
|
-
(l = typeof l == "string" ? Yt[Qt[l]] : pa(null, l)).equals(
|
|
3595
|
+
}, p.GState = js, p.setGState = function(l) {
|
|
3596
|
+
(l = typeof l == "string" ? Yt[Qt[l]] : pa(null, l)).equals(je) || (M("/" + l.id + " gs"), je = l);
|
|
3597
3597
|
};
|
|
3598
3598
|
var pa = function(l, v) {
|
|
3599
3599
|
if (!l || !Qt[l]) {
|
|
@@ -3604,8 +3604,8 @@ T* `) : l.join(` Tj
|
|
|
3604
3604
|
}
|
|
3605
3605
|
if (I) v = Yt[D];
|
|
3606
3606
|
else {
|
|
3607
|
-
var
|
|
3608
|
-
Yt[
|
|
3607
|
+
var X = "GS" + (Object.keys(Yt).length + 1).toString(10);
|
|
3608
|
+
Yt[X] = v, v.id = X;
|
|
3609
3609
|
}
|
|
3610
3610
|
return l && (Qt[l] = v.id), be.publish("addGState", v), v;
|
|
3611
3611
|
}
|
|
@@ -3613,11 +3613,11 @@ T* `) : l.join(` Tj
|
|
|
3613
3613
|
p.addGState = function(l, v) {
|
|
3614
3614
|
return pa(l, v), this;
|
|
3615
3615
|
}, p.saveGraphicsState = function() {
|
|
3616
|
-
return M("q"), Fe.push({ key:
|
|
3616
|
+
return M("q"), Fe.push({ key: Ot, size: yt, color: un }), this;
|
|
3617
3617
|
}, p.restoreGraphicsState = function() {
|
|
3618
3618
|
M("Q");
|
|
3619
3619
|
var l = Fe.pop();
|
|
3620
|
-
return
|
|
3620
|
+
return Ot = l.key, yt = l.size, un = l.color, je = null, this;
|
|
3621
3621
|
}, p.setCurrentTransformationMatrix = function(l) {
|
|
3622
3622
|
return M(l.toString() + " cm"), this;
|
|
3623
3623
|
}, p.comment = function(l) {
|
|
@@ -3636,19 +3636,19 @@ T* `) : l.join(` Tj
|
|
|
3636
3636
|
}, set: function(ut) {
|
|
3637
3637
|
isNaN(ut) || (D = parseFloat(ut));
|
|
3638
3638
|
} });
|
|
3639
|
-
var
|
|
3639
|
+
var X = "pt";
|
|
3640
3640
|
return Object.defineProperty(this, "type", { enumerable: !0, get: function() {
|
|
3641
|
-
return
|
|
3641
|
+
return X;
|
|
3642
3642
|
}, set: function(ut) {
|
|
3643
|
-
|
|
3643
|
+
X = ut.toString();
|
|
3644
3644
|
} }), this;
|
|
3645
3645
|
}, ga = function(l, v, I, D) {
|
|
3646
3646
|
ii.call(this, l, v), this.type = "rect";
|
|
3647
|
-
var
|
|
3647
|
+
var X = I || 0;
|
|
3648
3648
|
Object.defineProperty(this, "w", { enumerable: !0, get: function() {
|
|
3649
|
-
return
|
|
3649
|
+
return X;
|
|
3650
3650
|
}, set: function(vt) {
|
|
3651
|
-
isNaN(vt) || (
|
|
3651
|
+
isNaN(vt) || (X = parseFloat(vt));
|
|
3652
3652
|
} });
|
|
3653
3653
|
var ut = D || 0;
|
|
3654
3654
|
return Object.defineProperty(this, "h", { enumerable: !0, get: function() {
|
|
@@ -3657,16 +3657,16 @@ T* `) : l.join(` Tj
|
|
|
3657
3657
|
isNaN(vt) || (ut = parseFloat(vt));
|
|
3658
3658
|
} }), this;
|
|
3659
3659
|
}, Bi = function() {
|
|
3660
|
-
this.page = ue, this.currentPage =
|
|
3660
|
+
this.page = ue, this.currentPage = O, this.pages = At.slice(0), this.pagesContext = Gt.slice(0), this.x = Tt, this.y = ze, this.matrix = ge, this.width = Ya(O), this.height = Ln(O), this.outputDestination = St, this.id = "", this.objectNumber = -1;
|
|
3661
3661
|
};
|
|
3662
3662
|
Bi.prototype.restore = function() {
|
|
3663
|
-
ue = this.page,
|
|
3663
|
+
ue = this.page, O = this.currentPage, Gt = this.pagesContext, At = this.pages, Tt = this.x, ze = this.y, ge = this.matrix, Nn(O, this.width), Ja(O, this.height), St = this.outputDestination;
|
|
3664
3664
|
};
|
|
3665
|
-
var ma = function(l, v, I, D,
|
|
3666
|
-
en.push(new Bi()), ue =
|
|
3665
|
+
var ma = function(l, v, I, D, X) {
|
|
3666
|
+
en.push(new Bi()), ue = O = 0, At = [], Tt = l, ze = v, ge = X, ua([I, D]);
|
|
3667
3667
|
};
|
|
3668
|
-
for (var Ri in p.beginFormObject = function(l, v, I, D,
|
|
3669
|
-
return ma(l, v, I, D,
|
|
3668
|
+
for (var Ri in p.beginFormObject = function(l, v, I, D, X) {
|
|
3669
|
+
return ma(l, v, I, D, X), this;
|
|
3670
3670
|
}, p.endFormObject = function(l) {
|
|
3671
3671
|
return (function(v) {
|
|
3672
3672
|
if (vn[v]) en.pop().restore();
|
|
@@ -3682,17 +3682,17 @@ T* `) : l.join(` Tj
|
|
|
3682
3682
|
var v = lr[vn[l]];
|
|
3683
3683
|
return { x: v.x, y: v.y, width: v.width, height: v.height, matrix: v.matrix };
|
|
3684
3684
|
}, p.save = function(l, v) {
|
|
3685
|
-
return l = l || "generated.pdf", (v = v || {}).returnPromise = v.returnPromise || !1, v.returnPromise === !1 ? (bi(Ii(sn()), l), typeof bi.unload == "function" &&
|
|
3685
|
+
return l = l || "generated.pdf", (v = v || {}).returnPromise = v.returnPromise || !1, v.returnPromise === !1 ? (bi(Ii(sn()), l), typeof bi.unload == "function" && Xt.setTimeout && setTimeout(bi.unload, 911), this) : new Promise(function(I, D) {
|
|
3686
3686
|
try {
|
|
3687
|
-
var
|
|
3688
|
-
typeof bi.unload == "function" &&
|
|
3687
|
+
var X = bi(Ii(sn()), l);
|
|
3688
|
+
typeof bi.unload == "function" && Xt.setTimeout && setTimeout(bi.unload, 911), I(X);
|
|
3689
3689
|
} catch (ut) {
|
|
3690
3690
|
D(ut.message);
|
|
3691
3691
|
}
|
|
3692
3692
|
});
|
|
3693
3693
|
}, Rt.API) Rt.API.hasOwnProperty(Ri) && (Ri === "events" && Rt.API.events.length ? (function(l, v) {
|
|
3694
|
-
var I, D,
|
|
3695
|
-
for (
|
|
3694
|
+
var I, D, X;
|
|
3695
|
+
for (X = v.length - 1; X !== -1; X--) I = v[X][0], D = v[X][1], l.subscribe.apply(l, [I].concat(typeof D == "function" ? [D] : D));
|
|
3696
3696
|
})(be, Rt.API.events) : p[Ri] = Rt.API[Ri]);
|
|
3697
3697
|
function Ya(l) {
|
|
3698
3698
|
return Gt[l].mediaBox.topRightX - Gt[l].mediaBox.bottomLeftX;
|
|
@@ -3703,26 +3703,26 @@ T* `) : l.join(` Tj
|
|
|
3703
3703
|
function Ln(l) {
|
|
3704
3704
|
return Gt[l].mediaBox.topRightY - Gt[l].mediaBox.bottomLeftY;
|
|
3705
3705
|
}
|
|
3706
|
-
function
|
|
3706
|
+
function Ja(l, v) {
|
|
3707
3707
|
Gt[l].mediaBox.topRightY = v + Gt[l].mediaBox.bottomLeftY;
|
|
3708
3708
|
}
|
|
3709
|
-
var
|
|
3710
|
-
return Ya(l = l ||
|
|
3709
|
+
var Xa = p.getPageWidth = function(l) {
|
|
3710
|
+
return Ya(l = l || O) / re;
|
|
3711
3711
|
}, Ka = p.setPageWidth = function(l, v) {
|
|
3712
3712
|
Nn(l, v * re);
|
|
3713
3713
|
}, ai = p.getPageHeight = function(l) {
|
|
3714
|
-
return Ln(l = l ||
|
|
3714
|
+
return Ln(l = l || O) / re;
|
|
3715
3715
|
}, $a = p.setPageHeight = function(l, v) {
|
|
3716
|
-
|
|
3716
|
+
Ja(l, v * re);
|
|
3717
3717
|
};
|
|
3718
|
-
return p.internal = { pdfEscape: Tr, getStyle: Ga, getFont:
|
|
3719
|
-
return
|
|
3718
|
+
return p.internal = { pdfEscape: Tr, getStyle: Ga, getFont: Js, getFontSize: Mt, getCharSpace: no, getTextColor: ro, getLineHeight: $s, getLineHeightFactor: Qs, getLineWidth: Xs, write: _t, getHorizontalCoordinate: xn, getVerticalCoordinate: An, getCoordinateString: to, getVerticalCoordinateString: eo, collections: {}, newObject: Te, newAdditionalObject: ti, newObjectDeferred: rr, newObjectDeferredBegin: ir, getFilters: Gr, putStream: Rr, events: be, scaleFactor: re, pageSize: { getWidth: function() {
|
|
3719
|
+
return Xa(O);
|
|
3720
3720
|
}, setWidth: function(l) {
|
|
3721
|
-
Ka(
|
|
3721
|
+
Ka(O, l);
|
|
3722
3722
|
}, getHeight: function() {
|
|
3723
|
-
return ai(
|
|
3723
|
+
return ai(O);
|
|
3724
3724
|
}, setHeight: function(l) {
|
|
3725
|
-
$a(
|
|
3725
|
+
$a(O, l);
|
|
3726
3726
|
} }, encryptionOptions: g, encryption: ar, getEncryptor: function(l) {
|
|
3727
3727
|
return g !== null ? ar.encryptor(l, 0) : function(v) {
|
|
3728
3728
|
return v;
|
|
@@ -3730,22 +3730,22 @@ T* `) : l.join(` Tj
|
|
|
3730
3730
|
}, output: Ei, getNumberOfPages: Ua, get pages() {
|
|
3731
3731
|
return At;
|
|
3732
3732
|
}, out: M, f2: _, f3: F, getPageInfo: Wa, getPageInfoByObjId: zs, getCurrentPageInfo: Hs, getPDFVersion: P, Point: ii, Rectangle: ga, Matrix: Vt, hasHotfix: yn }, Object.defineProperty(p.internal.pageSize, "width", { get: function() {
|
|
3733
|
-
return
|
|
3733
|
+
return Xa(O);
|
|
3734
3734
|
}, set: function(l) {
|
|
3735
|
-
Ka(
|
|
3735
|
+
Ka(O, l);
|
|
3736
3736
|
}, enumerable: !0, configurable: !0 }), Object.defineProperty(p.internal.pageSize, "height", { get: function() {
|
|
3737
|
-
return ai(
|
|
3737
|
+
return ai(O);
|
|
3738
3738
|
}, set: function(l) {
|
|
3739
|
-
$a(
|
|
3739
|
+
$a(O, l);
|
|
3740
3740
|
}, enumerable: !0, configurable: !0 }), (function(l) {
|
|
3741
3741
|
for (var v = 0, I = Ht.length; v < I; v++) {
|
|
3742
3742
|
var D = Ta.call(this, l[v][0], l[v][1], l[v][2], Ht[v][3], !0);
|
|
3743
3743
|
x === !1 && (N[D] = !0);
|
|
3744
|
-
var
|
|
3745
|
-
Ra({ id: D, fontName:
|
|
3744
|
+
var X = l[v][0].split("-");
|
|
3745
|
+
Ra({ id: D, fontName: X[0], fontStyle: X[1] || "" });
|
|
3746
3746
|
}
|
|
3747
3747
|
be.publish("addFonts", { fonts: se, dictionary: oe });
|
|
3748
|
-
}).call(p, Ht),
|
|
3748
|
+
}).call(p, Ht), Ot = "F1", Da(s, e), be.publish("initialized"), p;
|
|
3749
3749
|
}
|
|
3750
3750
|
Zi.prototype.lsbFirstWord = function(r) {
|
|
3751
3751
|
return String.fromCharCode(255 & r, r >> 8 & 255, r >> 16 & 255, r >> 24 & 255);
|
|
@@ -3757,13 +3757,13 @@ Zi.prototype.lsbFirstWord = function(r) {
|
|
|
3757
3757
|
for (var t = [], e = 0; e < r.length; e += 2) t.push(String.fromCharCode(parseInt(r.substr(e, 2), 16)));
|
|
3758
3758
|
return t.join("");
|
|
3759
3759
|
}, Zi.prototype.processOwnerPassword = function(r, t) {
|
|
3760
|
-
return Ko(
|
|
3760
|
+
return Ko(Xo(t).substr(0, 5), r);
|
|
3761
3761
|
}, Zi.prototype.encryptor = function(r, t) {
|
|
3762
|
-
var e =
|
|
3762
|
+
var e = Xo(this.encryptionKey + String.fromCharCode(255 & r, r >> 8 & 255, r >> 16 & 255, 255 & t, t >> 8 & 255)).substr(0, 10);
|
|
3763
3763
|
return function(n) {
|
|
3764
3764
|
return Ko(e, n);
|
|
3765
3765
|
};
|
|
3766
|
-
},
|
|
3766
|
+
}, js.prototype.equals = function(r) {
|
|
3767
3767
|
var t, e = "id,objectNumber,equals";
|
|
3768
3768
|
if (!r || xe(r) !== xe(this)) return !1;
|
|
3769
3769
|
var n = 0;
|
|
@@ -3776,7 +3776,7 @@ Zi.prototype.lsbFirstWord = function(r) {
|
|
|
3776
3776
|
}, Rt.API = { events: [] }, Rt.version = "4.2.1";
|
|
3777
3777
|
var Ue = Rt.API, nu = 1, _i = function(r) {
|
|
3778
3778
|
return r.replace(/\\/g, "\\\\").replace(/\(/g, "\\(").replace(/\)/g, "\\)");
|
|
3779
|
-
},
|
|
3779
|
+
}, Xi = function(r) {
|
|
3780
3780
|
return r.replace(/\\\\/g, "\\").replace(/\\\(/g, "(").replace(/\\\)/g, ")");
|
|
3781
3781
|
}, Ni = function(r) {
|
|
3782
3782
|
return r.toString().replace(/#/g, "#23").replace(/[\s\n\r()<>[\]{}\/%]/g, function(t) {
|
|
@@ -3785,7 +3785,7 @@ var Ue = Rt.API, nu = 1, _i = function(r) {
|
|
|
3785
3785
|
});
|
|
3786
3786
|
}, $t = function(r) {
|
|
3787
3787
|
return r.toFixed(2);
|
|
3788
|
-
},
|
|
3788
|
+
}, Xn = function(r) {
|
|
3789
3789
|
return r.toFixed(5);
|
|
3790
3790
|
};
|
|
3791
3791
|
Ue.__acroform__ = {};
|
|
@@ -3794,7 +3794,7 @@ var Sr = function(r, t) {
|
|
|
3794
3794
|
}, Bl = function(r) {
|
|
3795
3795
|
return r * nu;
|
|
3796
3796
|
}, dn = function(r) {
|
|
3797
|
-
var t = new
|
|
3797
|
+
var t = new jf(), e = It.internal.getHeight(r) || 0, n = It.internal.getWidth(r) || 0;
|
|
3798
3798
|
return t.BBox = [0, 0, Number($t(n)), Number($t(e))], t;
|
|
3799
3799
|
}, z1 = Ue.__acroform__.setBit = function(r, t) {
|
|
3800
3800
|
if (r = r || 0, t = t || 0, isNaN(r) || isNaN(t)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");
|
|
@@ -3811,7 +3811,7 @@ var Sr = function(r, t) {
|
|
|
3811
3811
|
}, Ye = Ue.__acroform__.setBitForPdf = function(r, t) {
|
|
3812
3812
|
if (isNaN(r) || isNaN(t)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");
|
|
3813
3813
|
return z1(r, t - 1);
|
|
3814
|
-
},
|
|
3814
|
+
}, Je = Ue.__acroform__.clearBitForPdf = function(r, t) {
|
|
3815
3815
|
if (isNaN(r) || isNaN(t)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");
|
|
3816
3816
|
return H1(r, t - 1);
|
|
3817
3817
|
}, G1 = Ue.__acroform__.calculateCoordinates = function(r, t) {
|
|
@@ -3848,7 +3848,7 @@ var Sr = function(r, t) {
|
|
|
3848
3848
|
a++;
|
|
3849
3849
|
t: for (; a > 0; ) {
|
|
3850
3850
|
t = "", a--;
|
|
3851
|
-
var d, g, x = As("3", r, a).height, N = r.multiline ? c - a : (c - x) / 2, p = N += 2,
|
|
3851
|
+
var d, g, x = As("3", r, a).height, N = r.multiline ? c - a : (c - x) / 2, p = N += 2, j = 0, P = 0, B = 0;
|
|
3852
3852
|
if (a <= 0) {
|
|
3853
3853
|
t = `(...) Tj
|
|
3854
3854
|
`, t += "% Width of Text: " + As(t, r, a = 12).width + ", FieldWidth:" + u + `
|
|
@@ -3875,14 +3875,14 @@ var Sr = function(r, t) {
|
|
|
3875
3875
|
P = it;
|
|
3876
3876
|
}
|
|
3877
3877
|
}
|
|
3878
|
-
for (var K = "", R =
|
|
3878
|
+
for (var K = "", R = j; R <= P; R++) {
|
|
3879
3879
|
var tt = s[R];
|
|
3880
3880
|
if (r.multiline) {
|
|
3881
3881
|
if (R === P) {
|
|
3882
3882
|
K += tt[B] + " ", B = (B + 1) % tt.length;
|
|
3883
3883
|
continue;
|
|
3884
3884
|
}
|
|
3885
|
-
if (R ===
|
|
3885
|
+
if (R === j) {
|
|
3886
3886
|
K += tt[tt.length - 1] + " ";
|
|
3887
3887
|
continue;
|
|
3888
3888
|
}
|
|
@@ -3902,7 +3902,7 @@ var Sr = function(r, t) {
|
|
|
3902
3902
|
t += $t(d) + " " + $t(p) + ` Td
|
|
3903
3903
|
`, t += "(" + _i(K) + `) Tj
|
|
3904
3904
|
`, t += -$t(d) + ` 0 Td
|
|
3905
|
-
`, p = -(a + 2), g = 0,
|
|
3905
|
+
`, p = -(a + 2), g = 0, j = q ? P : P + 1, G++, k = "";
|
|
3906
3906
|
}
|
|
3907
3907
|
break;
|
|
3908
3908
|
}
|
|
@@ -3910,15 +3910,15 @@ var Sr = function(r, t) {
|
|
|
3910
3910
|
}, As = function(r, t, e) {
|
|
3911
3911
|
var n = t.scope.internal.getFont(t.fontName, t.fontStyle), s = t.scope.getStringUnitWidth(r, { font: n, fontSize: parseFloat(e), charSpace: 0 }) * parseFloat(e);
|
|
3912
3912
|
return { height: t.scope.getStringUnitWidth("3", { font: n, fontSize: parseFloat(e), charSpace: 0 }) * parseFloat(e) * 1.5, width: s };
|
|
3913
|
-
}, Y1 = { fields: [], xForms: [], acroFormDictionaryRoot: null, printedOut: !1, internal: null, isInitialized: !1 },
|
|
3913
|
+
}, Y1 = { fields: [], xForms: [], acroFormDictionaryRoot: null, printedOut: !1, internal: null, isInitialized: !1 }, J1 = function(r, t) {
|
|
3914
3914
|
var e = { type: "reference", object: r };
|
|
3915
3915
|
t.internal.getPageInfo(r.page).pageContext.annotations.find(function(n) {
|
|
3916
3916
|
return n.type === e.type && n.object === e.object;
|
|
3917
3917
|
}) === void 0 && t.internal.getPageInfo(r.page).pageContext.annotations.push(e);
|
|
3918
|
-
},
|
|
3918
|
+
}, X1 = function(r, t) {
|
|
3919
3919
|
if (t.scope = r, r.internal !== void 0 && (r.internal.acroformPlugin === void 0 || r.internal.acroformPlugin.isInitialized === !1)) {
|
|
3920
3920
|
if (Qr.FieldNum = 0, r.internal.acroformPlugin = JSON.parse(JSON.stringify(Y1)), r.internal.acroformPlugin.acroFormDictionaryRoot) throw new Error("Exception while creating AcroformDictionary");
|
|
3921
|
-
nu = r.internal.scaleFactor, r.internal.acroformPlugin.acroFormDictionaryRoot = new
|
|
3921
|
+
nu = r.internal.scaleFactor, r.internal.acroformPlugin.acroFormDictionaryRoot = new Of(), r.internal.acroformPlugin.acroFormDictionaryRoot.scope = r, r.internal.acroformPlugin.acroFormDictionaryRoot._eventID = r.internal.events.subscribe("postPutResources", function() {
|
|
3922
3922
|
(function(e) {
|
|
3923
3923
|
e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID), delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID, e.internal.acroformPlugin.printedOut = !0;
|
|
3924
3924
|
})(r);
|
|
@@ -3928,7 +3928,7 @@ var Sr = function(r, t) {
|
|
|
3928
3928
|
var n = e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;
|
|
3929
3929
|
for (var s in n) if (n.hasOwnProperty(s)) {
|
|
3930
3930
|
var a = n[s];
|
|
3931
|
-
a.objId = void 0, a.hasAnnotation &&
|
|
3931
|
+
a.objId = void 0, a.hasAnnotation && J1(a, e);
|
|
3932
3932
|
}
|
|
3933
3933
|
})(r);
|
|
3934
3934
|
}), r.internal.events.subscribe("putCatalog", function() {
|
|
@@ -3951,10 +3951,10 @@ var Sr = function(r, t) {
|
|
|
3951
3951
|
var p = u.appearanceStreamContent[N];
|
|
3952
3952
|
if (x += "/" + N + " ", x += "<<", Object.keys(p).length >= 1 || Array.isArray(p)) {
|
|
3953
3953
|
for (var c in p) if (p.hasOwnProperty(c)) {
|
|
3954
|
-
var
|
|
3955
|
-
typeof
|
|
3954
|
+
var j = p[c];
|
|
3955
|
+
typeof j == "function" && (j = j.call(s, u)), x += "/" + c + " " + j + " ", s.internal.acroformPlugin.xForms.indexOf(j) >= 0 || s.internal.acroformPlugin.xForms.push(j);
|
|
3956
3956
|
}
|
|
3957
|
-
} else typeof (
|
|
3957
|
+
} else typeof (j = p) == "function" && (j = j.call(s, u)), x += "/" + c + " " + j, s.internal.acroformPlugin.xForms.indexOf(j) >= 0 || s.internal.acroformPlugin.xForms.push(j);
|
|
3958
3958
|
x += ">>";
|
|
3959
3959
|
}
|
|
3960
3960
|
f.push({ key: "AP", value: `<<
|
|
@@ -4019,7 +4019,7 @@ gn.prototype.toString = function() {
|
|
|
4019
4019
|
}
|
|
4020
4020
|
return r;
|
|
4021
4021
|
};
|
|
4022
|
-
var
|
|
4022
|
+
var jf = function() {
|
|
4023
4023
|
gn.call(this), Object.defineProperty(this, "Type", { value: "/XObject", configurable: !1, writable: !0 }), Object.defineProperty(this, "Subtype", { value: "/Form", configurable: !1, writable: !0 }), Object.defineProperty(this, "FormType", { value: 1, configurable: !1, writable: !0 });
|
|
4024
4024
|
var r, t = [];
|
|
4025
4025
|
Object.defineProperty(this, "BBox", { configurable: !1, get: function() {
|
|
@@ -4032,8 +4032,8 @@ var Of = function() {
|
|
|
4032
4032
|
return r || null;
|
|
4033
4033
|
} });
|
|
4034
4034
|
};
|
|
4035
|
-
Sr(
|
|
4036
|
-
var
|
|
4035
|
+
Sr(jf, gn);
|
|
4036
|
+
var Of = function() {
|
|
4037
4037
|
gn.call(this);
|
|
4038
4038
|
var r, t = [];
|
|
4039
4039
|
Object.defineProperty(this, "Kids", { enumerable: !1, configurable: !0, get: function() {
|
|
@@ -4051,7 +4051,7 @@ var jf = function() {
|
|
|
4051
4051
|
r = e;
|
|
4052
4052
|
} });
|
|
4053
4053
|
};
|
|
4054
|
-
Sr(
|
|
4054
|
+
Sr(Of, gn);
|
|
4055
4055
|
var Qr = function r() {
|
|
4056
4056
|
gn.call(this);
|
|
4057
4057
|
var t = 4;
|
|
@@ -4063,7 +4063,7 @@ var Qr = function r() {
|
|
|
4063
4063
|
} }), Object.defineProperty(this, "showWhenPrinted", { enumerable: !0, configurable: !0, get: function() {
|
|
4064
4064
|
return !!Ve(t, 3);
|
|
4065
4065
|
}, set: function(k) {
|
|
4066
|
-
k ? this.F = Ye(t, 3) : this.F =
|
|
4066
|
+
k ? this.F = Ye(t, 3) : this.F = Je(t, 3);
|
|
4067
4067
|
} });
|
|
4068
4068
|
var e = 0;
|
|
4069
4069
|
Object.defineProperty(this, "Ff", { enumerable: !1, configurable: !1, get: function() {
|
|
@@ -4112,7 +4112,7 @@ var Qr = function r() {
|
|
|
4112
4112
|
var a = null;
|
|
4113
4113
|
Object.defineProperty(this, "T", { enumerable: !0, configurable: !1, get: function() {
|
|
4114
4114
|
if (!a || a.length < 1) {
|
|
4115
|
-
if (this instanceof
|
|
4115
|
+
if (this instanceof Os) return;
|
|
4116
4116
|
a = "FieldObject" + r.FieldNum++;
|
|
4117
4117
|
}
|
|
4118
4118
|
var k = function(G) {
|
|
@@ -4158,7 +4158,7 @@ var Qr = function r() {
|
|
|
4158
4158
|
} });
|
|
4159
4159
|
var x = "/F1 0 Tf 0 g";
|
|
4160
4160
|
Object.defineProperty(this, "DA", { enumerable: !0, configurable: !1, get: function() {
|
|
4161
|
-
if (!(!x || this instanceof
|
|
4161
|
+
if (!(!x || this instanceof Os || this instanceof yi)) return Bo(x, this.objId, this.scope);
|
|
4162
4162
|
}, set: function(k) {
|
|
4163
4163
|
k = k.toString(), x = k;
|
|
4164
4164
|
} });
|
|
@@ -4166,9 +4166,9 @@ var Qr = function r() {
|
|
|
4166
4166
|
Object.defineProperty(this, "DV", { enumerable: !1, configurable: !1, get: function() {
|
|
4167
4167
|
if (N) return this instanceof nr == 0 ? Bo(N, this.objId, this.scope) : N;
|
|
4168
4168
|
}, set: function(k) {
|
|
4169
|
-
k = k.toString(), N = this instanceof nr == 0 ? k.substr(0, 1) === "(" ?
|
|
4169
|
+
k = k.toString(), N = this instanceof nr == 0 ? k.substr(0, 1) === "(" ? Xi(k.substr(1, k.length - 2)) : Xi(k) : k;
|
|
4170
4170
|
} }), Object.defineProperty(this, "defaultValue", { enumerable: !0, configurable: !0, get: function() {
|
|
4171
|
-
return this instanceof nr == 1 ?
|
|
4171
|
+
return this instanceof nr == 1 ? Xi(N.substr(1, N.length - 1)) : N;
|
|
4172
4172
|
}, set: function(k) {
|
|
4173
4173
|
k = k.toString(), N = this instanceof nr == 1 ? "/" + Ni(k) : k;
|
|
4174
4174
|
} });
|
|
@@ -4180,9 +4180,9 @@ var Qr = function r() {
|
|
|
4180
4180
|
} }), Object.defineProperty(this, "V", { enumerable: !1, configurable: !1, get: function() {
|
|
4181
4181
|
if (p) return this instanceof nr == 0 ? Bo(p, this.objId, this.scope) : p;
|
|
4182
4182
|
}, set: function(k) {
|
|
4183
|
-
k = k.toString(), p = this instanceof nr == 0 ? k.substr(0, 1) === "(" ?
|
|
4183
|
+
k = k.toString(), p = this instanceof nr == 0 ? k.substr(0, 1) === "(" ? Xi(k.substr(1, k.length - 2)) : Xi(k) : k;
|
|
4184
4184
|
} }), Object.defineProperty(this, "value", { enumerable: !0, configurable: !0, get: function() {
|
|
4185
|
-
return this instanceof nr == 1 ?
|
|
4185
|
+
return this instanceof nr == 1 ? Xi(p.substr(1, p.length - 1)) : p;
|
|
4186
4186
|
}, set: function(k) {
|
|
4187
4187
|
k = k.toString(), p = this instanceof nr == 1 ? "/" + Ni(k) : k;
|
|
4188
4188
|
} }), Object.defineProperty(this, "hasAnnotation", { enumerable: !0, configurable: !0, get: function() {
|
|
@@ -4192,27 +4192,27 @@ var Qr = function r() {
|
|
|
4192
4192
|
} }), Object.defineProperty(this, "Subtype", { enumerable: !0, configurable: !1, get: function() {
|
|
4193
4193
|
return this.hasAnnotation ? "/Widget" : null;
|
|
4194
4194
|
} });
|
|
4195
|
-
var
|
|
4195
|
+
var j, P = !1;
|
|
4196
4196
|
Object.defineProperty(this, "hasAppearanceStream", { enumerable: !0, configurable: !0, get: function() {
|
|
4197
4197
|
return P;
|
|
4198
4198
|
}, set: function(k) {
|
|
4199
4199
|
k = !!k, P = k;
|
|
4200
4200
|
} }), Object.defineProperty(this, "page", { enumerable: !0, configurable: !0, get: function() {
|
|
4201
|
-
if (
|
|
4201
|
+
if (j) return j;
|
|
4202
4202
|
}, set: function(k) {
|
|
4203
|
-
|
|
4203
|
+
j = k;
|
|
4204
4204
|
} }), Object.defineProperty(this, "readOnly", { enumerable: !0, configurable: !0, get: function() {
|
|
4205
4205
|
return !!Ve(this.Ff, 1);
|
|
4206
4206
|
}, set: function(k) {
|
|
4207
|
-
k ? this.Ff = Ye(this.Ff, 1) : this.Ff =
|
|
4207
|
+
k ? this.Ff = Ye(this.Ff, 1) : this.Ff = Je(this.Ff, 1);
|
|
4208
4208
|
} }), Object.defineProperty(this, "required", { enumerable: !0, configurable: !0, get: function() {
|
|
4209
4209
|
return !!Ve(this.Ff, 2);
|
|
4210
4210
|
}, set: function(k) {
|
|
4211
|
-
k ? this.Ff = Ye(this.Ff, 2) : this.Ff =
|
|
4211
|
+
k ? this.Ff = Ye(this.Ff, 2) : this.Ff = Je(this.Ff, 2);
|
|
4212
4212
|
} }), Object.defineProperty(this, "noExport", { enumerable: !0, configurable: !0, get: function() {
|
|
4213
4213
|
return !!Ve(this.Ff, 3);
|
|
4214
4214
|
}, set: function(k) {
|
|
4215
|
-
k ? this.Ff = Ye(this.Ff, 3) : this.Ff =
|
|
4215
|
+
k ? this.Ff = Ye(this.Ff, 3) : this.Ff = Je(this.Ff, 3);
|
|
4216
4216
|
} });
|
|
4217
4217
|
var B = null;
|
|
4218
4218
|
Object.defineProperty(this, "Q", { enumerable: !0, configurable: !1, get: function() {
|
|
@@ -4283,27 +4283,27 @@ var ra = function() {
|
|
|
4283
4283
|
}, Object.defineProperty(this, "combo", { enumerable: !0, configurable: !0, get: function() {
|
|
4284
4284
|
return !!Ve(this.Ff, 18);
|
|
4285
4285
|
}, set: function(e) {
|
|
4286
|
-
e ? this.Ff = Ye(this.Ff, 18) : this.Ff =
|
|
4286
|
+
e ? this.Ff = Ye(this.Ff, 18) : this.Ff = Je(this.Ff, 18);
|
|
4287
4287
|
} }), Object.defineProperty(this, "edit", { enumerable: !0, configurable: !0, get: function() {
|
|
4288
4288
|
return !!Ve(this.Ff, 19);
|
|
4289
4289
|
}, set: function(e) {
|
|
4290
|
-
this.combo === !0 && (e ? this.Ff = Ye(this.Ff, 19) : this.Ff =
|
|
4290
|
+
this.combo === !0 && (e ? this.Ff = Ye(this.Ff, 19) : this.Ff = Je(this.Ff, 19));
|
|
4291
4291
|
} }), Object.defineProperty(this, "sort", { enumerable: !0, configurable: !0, get: function() {
|
|
4292
4292
|
return !!Ve(this.Ff, 20);
|
|
4293
4293
|
}, set: function(e) {
|
|
4294
|
-
e ? (this.Ff = Ye(this.Ff, 20), t.sort()) : this.Ff =
|
|
4294
|
+
e ? (this.Ff = Ye(this.Ff, 20), t.sort()) : this.Ff = Je(this.Ff, 20);
|
|
4295
4295
|
} }), Object.defineProperty(this, "multiSelect", { enumerable: !0, configurable: !0, get: function() {
|
|
4296
4296
|
return !!Ve(this.Ff, 22);
|
|
4297
4297
|
}, set: function(e) {
|
|
4298
|
-
e ? this.Ff = Ye(this.Ff, 22) : this.Ff =
|
|
4298
|
+
e ? this.Ff = Ye(this.Ff, 22) : this.Ff = Je(this.Ff, 22);
|
|
4299
4299
|
} }), Object.defineProperty(this, "doNotSpellCheck", { enumerable: !0, configurable: !0, get: function() {
|
|
4300
4300
|
return !!Ve(this.Ff, 23);
|
|
4301
4301
|
}, set: function(e) {
|
|
4302
|
-
e ? this.Ff = Ye(this.Ff, 23) : this.Ff =
|
|
4302
|
+
e ? this.Ff = Ye(this.Ff, 23) : this.Ff = Je(this.Ff, 23);
|
|
4303
4303
|
} }), Object.defineProperty(this, "commitOnSelChange", { enumerable: !0, configurable: !0, get: function() {
|
|
4304
4304
|
return !!Ve(this.Ff, 27);
|
|
4305
4305
|
}, set: function(e) {
|
|
4306
|
-
e ? this.Ff = Ye(this.Ff, 27) : this.Ff =
|
|
4306
|
+
e ? this.Ff = Ye(this.Ff, 27) : this.Ff = Je(this.Ff, 27);
|
|
4307
4307
|
} }), this.hasAppearanceStream = !1;
|
|
4308
4308
|
};
|
|
4309
4309
|
Sr(ra, Qr);
|
|
@@ -4323,19 +4323,19 @@ var nr = function() {
|
|
|
4323
4323
|
Qr.call(this), this.FT = "/Btn", Object.defineProperty(this, "noToggleToOff", { enumerable: !0, configurable: !0, get: function() {
|
|
4324
4324
|
return !!Ve(this.Ff, 15);
|
|
4325
4325
|
}, set: function(e) {
|
|
4326
|
-
e ? this.Ff = Ye(this.Ff, 15) : this.Ff =
|
|
4326
|
+
e ? this.Ff = Ye(this.Ff, 15) : this.Ff = Je(this.Ff, 15);
|
|
4327
4327
|
} }), Object.defineProperty(this, "radio", { enumerable: !0, configurable: !0, get: function() {
|
|
4328
4328
|
return !!Ve(this.Ff, 16);
|
|
4329
4329
|
}, set: function(e) {
|
|
4330
|
-
e ? this.Ff = Ye(this.Ff, 16) : this.Ff =
|
|
4330
|
+
e ? this.Ff = Ye(this.Ff, 16) : this.Ff = Je(this.Ff, 16);
|
|
4331
4331
|
} }), Object.defineProperty(this, "pushButton", { enumerable: !0, configurable: !0, get: function() {
|
|
4332
4332
|
return !!Ve(this.Ff, 17);
|
|
4333
4333
|
}, set: function(e) {
|
|
4334
|
-
e ? this.Ff = Ye(this.Ff, 17) : this.Ff =
|
|
4334
|
+
e ? this.Ff = Ye(this.Ff, 17) : this.Ff = Je(this.Ff, 17);
|
|
4335
4335
|
} }), Object.defineProperty(this, "radioIsUnison", { enumerable: !0, configurable: !0, get: function() {
|
|
4336
4336
|
return !!Ve(this.Ff, 26);
|
|
4337
4337
|
}, set: function(e) {
|
|
4338
|
-
e ? this.Ff = Ye(this.Ff, 26) : this.Ff =
|
|
4338
|
+
e ? this.Ff = Ye(this.Ff, 26) : this.Ff = Je(this.Ff, 26);
|
|
4339
4339
|
} });
|
|
4340
4340
|
var r, t = {};
|
|
4341
4341
|
Object.defineProperty(this, "MK", { enumerable: !1, configurable: !1, get: function() {
|
|
@@ -4380,7 +4380,7 @@ var aa = function() {
|
|
|
4380
4380
|
} });
|
|
4381
4381
|
};
|
|
4382
4382
|
Sr(aa, nr);
|
|
4383
|
-
var
|
|
4383
|
+
var Os = function() {
|
|
4384
4384
|
var r, t;
|
|
4385
4385
|
Qr.call(this), Object.defineProperty(this, "Parent", { enumerable: !1, configurable: !1, get: function() {
|
|
4386
4386
|
return r;
|
|
@@ -4419,14 +4419,14 @@ var js = function() {
|
|
|
4419
4419
|
a.substr(0, 1) === "/" && (a = a.substr(1)), e = "/" + Ni(a);
|
|
4420
4420
|
} }), this.caption = "l", this.appearanceState = "Off", this._AppearanceType = It.RadioButton.Circle, this.appearanceStreamContent = this._AppearanceType.createAppearanceStream(this.optionName);
|
|
4421
4421
|
};
|
|
4422
|
-
Sr(
|
|
4422
|
+
Sr(Os, Qr), aa.prototype.setAppearance = function(r) {
|
|
4423
4423
|
if (!("createAppearanceStream" in r) || !("getCA" in r)) throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");
|
|
4424
4424
|
for (var t in this.Kids) if (this.Kids.hasOwnProperty(t)) {
|
|
4425
4425
|
var e = this.Kids[t];
|
|
4426
4426
|
e.appearanceStreamContent = r.createAppearanceStream(e.optionName), e.caption = r.getCA();
|
|
4427
4427
|
}
|
|
4428
4428
|
}, aa.prototype.createOption = function(r) {
|
|
4429
|
-
var t = new
|
|
4429
|
+
var t = new Os();
|
|
4430
4430
|
return t.Parent = this, t.optionName = r, this.Kids.push(t), K1.call(this.scope, t), t;
|
|
4431
4431
|
};
|
|
4432
4432
|
var Ps = function() {
|
|
@@ -4437,27 +4437,27 @@ var yi = function() {
|
|
|
4437
4437
|
Qr.call(this), this.FT = "/Tx", Object.defineProperty(this, "multiline", { enumerable: !0, configurable: !0, get: function() {
|
|
4438
4438
|
return !!Ve(this.Ff, 13);
|
|
4439
4439
|
}, set: function(t) {
|
|
4440
|
-
t ? this.Ff = Ye(this.Ff, 13) : this.Ff =
|
|
4440
|
+
t ? this.Ff = Ye(this.Ff, 13) : this.Ff = Je(this.Ff, 13);
|
|
4441
4441
|
} }), Object.defineProperty(this, "fileSelect", { enumerable: !0, configurable: !0, get: function() {
|
|
4442
4442
|
return !!Ve(this.Ff, 21);
|
|
4443
4443
|
}, set: function(t) {
|
|
4444
|
-
t ? this.Ff = Ye(this.Ff, 21) : this.Ff =
|
|
4444
|
+
t ? this.Ff = Ye(this.Ff, 21) : this.Ff = Je(this.Ff, 21);
|
|
4445
4445
|
} }), Object.defineProperty(this, "doNotSpellCheck", { enumerable: !0, configurable: !0, get: function() {
|
|
4446
4446
|
return !!Ve(this.Ff, 23);
|
|
4447
4447
|
}, set: function(t) {
|
|
4448
|
-
t ? this.Ff = Ye(this.Ff, 23) : this.Ff =
|
|
4448
|
+
t ? this.Ff = Ye(this.Ff, 23) : this.Ff = Je(this.Ff, 23);
|
|
4449
4449
|
} }), Object.defineProperty(this, "doNotScroll", { enumerable: !0, configurable: !0, get: function() {
|
|
4450
4450
|
return !!Ve(this.Ff, 24);
|
|
4451
4451
|
}, set: function(t) {
|
|
4452
|
-
t ? this.Ff = Ye(this.Ff, 24) : this.Ff =
|
|
4452
|
+
t ? this.Ff = Ye(this.Ff, 24) : this.Ff = Je(this.Ff, 24);
|
|
4453
4453
|
} }), Object.defineProperty(this, "comb", { enumerable: !0, configurable: !0, get: function() {
|
|
4454
4454
|
return !!Ve(this.Ff, 25);
|
|
4455
4455
|
}, set: function(t) {
|
|
4456
|
-
t ? this.Ff = Ye(this.Ff, 25) : this.Ff =
|
|
4456
|
+
t ? this.Ff = Ye(this.Ff, 25) : this.Ff = Je(this.Ff, 25);
|
|
4457
4457
|
} }), Object.defineProperty(this, "richText", { enumerable: !0, configurable: !0, get: function() {
|
|
4458
4458
|
return !!Ve(this.Ff, 26);
|
|
4459
4459
|
}, set: function(t) {
|
|
4460
|
-
t ? this.Ff = Ye(this.Ff, 26) : this.Ff =
|
|
4460
|
+
t ? this.Ff = Ye(this.Ff, 26) : this.Ff = Je(this.Ff, 26);
|
|
4461
4461
|
} });
|
|
4462
4462
|
var r = null;
|
|
4463
4463
|
Object.defineProperty(this, "MaxLen", { enumerable: !0, configurable: !1, get: function() {
|
|
@@ -4477,7 +4477,7 @@ var Ms = function() {
|
|
|
4477
4477
|
yi.call(this), Object.defineProperty(this, "password", { enumerable: !0, configurable: !0, get: function() {
|
|
4478
4478
|
return !!Ve(this.Ff, 14);
|
|
4479
4479
|
}, set: function(r) {
|
|
4480
|
-
r ? this.Ff = Ye(this.Ff, 14) : this.Ff =
|
|
4480
|
+
r ? this.Ff = Ye(this.Ff, 14) : this.Ff = Je(this.Ff, 14);
|
|
4481
4481
|
} }), this.password = !0;
|
|
4482
4482
|
};
|
|
4483
4483
|
Sr(Ms, yi);
|
|
@@ -4512,7 +4512,7 @@ var It = { CheckBox: { createAppearanceStream: function() {
|
|
|
4512
4512
|
var e = [], n = It.internal.getWidth(r) <= It.internal.getHeight(r) ? It.internal.getWidth(r) / 4 : It.internal.getHeight(r) / 4;
|
|
4513
4513
|
n = Number((0.9 * n).toFixed(5));
|
|
4514
4514
|
var s = It.internal.Bezier_C, a = Number((n * s).toFixed(5));
|
|
4515
|
-
return e.push("q"), e.push("1 0 0 1 " +
|
|
4515
|
+
return e.push("q"), e.push("1 0 0 1 " + Xn(It.internal.getWidth(r) / 2) + " " + Xn(It.internal.getHeight(r) / 2) + " cm"), e.push(n + " 0 m"), e.push(n + " " + a + " " + a + " " + n + " 0 " + n + " c"), e.push("-" + a + " " + n + " -" + n + " " + a + " -" + n + " 0 c"), e.push("-" + n + " -" + a + " -" + a + " -" + n + " 0 -" + n + " c"), e.push(a + " -" + n + " " + n + " -" + a + " " + n + " 0 c"), e.push("f"), e.push("Q"), t.stream = e.join(`
|
|
4516
4516
|
`), t;
|
|
4517
4517
|
}, YesPushDown: function(r) {
|
|
4518
4518
|
var t = dn(r);
|
|
@@ -4520,7 +4520,7 @@ var It = { CheckBox: { createAppearanceStream: function() {
|
|
|
4520
4520
|
var e = [], n = It.internal.getWidth(r) <= It.internal.getHeight(r) ? It.internal.getWidth(r) / 4 : It.internal.getHeight(r) / 4;
|
|
4521
4521
|
n = Number((0.9 * n).toFixed(5));
|
|
4522
4522
|
var s = Number((2 * n).toFixed(5)), a = Number((s * It.internal.Bezier_C).toFixed(5)), c = Number((n * It.internal.Bezier_C).toFixed(5));
|
|
4523
|
-
return e.push("0.749023 g"), e.push("q"), e.push("1 0 0 1 " +
|
|
4523
|
+
return e.push("0.749023 g"), e.push("q"), e.push("1 0 0 1 " + Xn(It.internal.getWidth(r) / 2) + " " + Xn(It.internal.getHeight(r) / 2) + " cm"), e.push(s + " 0 m"), e.push(s + " " + a + " " + a + " " + s + " 0 " + s + " c"), e.push("-" + a + " " + s + " -" + s + " " + a + " -" + s + " 0 c"), e.push("-" + s + " -" + a + " -" + a + " -" + s + " 0 -" + s + " c"), e.push(a + " -" + s + " " + s + " -" + a + " " + s + " 0 c"), e.push("f"), e.push("Q"), e.push("0 g"), e.push("q"), e.push("1 0 0 1 " + Xn(It.internal.getWidth(r) / 2) + " " + Xn(It.internal.getHeight(r) / 2) + " cm"), e.push(n + " 0 m"), e.push(n + " " + c + " " + c + " " + n + " 0 " + n + " c"), e.push("-" + c + " " + n + " -" + n + " " + c + " -" + n + " 0 c"), e.push("-" + n + " -" + c + " -" + c + " -" + n + " 0 -" + n + " c"), e.push(c + " -" + n + " " + n + " -" + c + " " + n + " 0 c"), e.push("f"), e.push("Q"), t.stream = e.join(`
|
|
4524
4524
|
`), t;
|
|
4525
4525
|
}, OffPushDown: function(r) {
|
|
4526
4526
|
var t = dn(r);
|
|
@@ -4528,7 +4528,7 @@ var It = { CheckBox: { createAppearanceStream: function() {
|
|
|
4528
4528
|
var e = [], n = It.internal.getWidth(r) <= It.internal.getHeight(r) ? It.internal.getWidth(r) / 4 : It.internal.getHeight(r) / 4;
|
|
4529
4529
|
n = Number((0.9 * n).toFixed(5));
|
|
4530
4530
|
var s = Number((2 * n).toFixed(5)), a = Number((s * It.internal.Bezier_C).toFixed(5));
|
|
4531
|
-
return e.push("0.749023 g"), e.push("q"), e.push("1 0 0 1 " +
|
|
4531
|
+
return e.push("0.749023 g"), e.push("q"), e.push("1 0 0 1 " + Xn(It.internal.getWidth(r) / 2) + " " + Xn(It.internal.getHeight(r) / 2) + " cm"), e.push(s + " 0 m"), e.push(s + " " + a + " " + a + " " + s + " 0 " + s + " c"), e.push("-" + a + " " + s + " -" + s + " " + a + " -" + s + " 0 c"), e.push("-" + s + " -" + a + " -" + a + " -" + s + " 0 -" + s + " c"), e.push(a + " -" + s + " " + s + " -" + a + " " + s + " 0 c"), e.push("f"), e.push("Q"), t.stream = e.join(`
|
|
4532
4532
|
`), t;
|
|
4533
4533
|
} }, Cross: { createAppearanceStream: function(r) {
|
|
4534
4534
|
var t = { D: { Off: It.RadioButton.Cross.OffPushDown }, N: {} };
|
|
@@ -4568,7 +4568,7 @@ It.internal = { Bezier_C: 0.551915024494, calculateCross: function(r) {
|
|
|
4568
4568
|
return xe(r) === "object" && (t = Bl(r.Rect[3])), t;
|
|
4569
4569
|
};
|
|
4570
4570
|
var K1 = Ue.addField = function(r) {
|
|
4571
|
-
if (
|
|
4571
|
+
if (X1(this, r), !(r instanceof Qr)) throw new Error("Invalid argument passed to jsPDF.addField.");
|
|
4572
4572
|
var t;
|
|
4573
4573
|
return (t = r).scope.internal.acroformPlugin.printedOut && (t.scope.internal.acroformPlugin.printedOut = !1, t.scope.internal.acroformPlugin.acroFormDictionaryRoot = null), t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t), r.page = r.scope.internal.getCurrentPageInfo().pageNumber, this;
|
|
4574
4574
|
};
|
|
@@ -4617,8 +4617,8 @@ function Bf(r) {
|
|
|
4617
4617
|
F.sMask !== void 0 && ot.push({ key: "SMask", value: F.objectId + 1 + " 0 R" });
|
|
4618
4618
|
var Nt = F.filter !== void 0 ? ["/" + F.filter] : void 0;
|
|
4619
4619
|
if (U({ data: F.data, additionalKeyValues: ot, alreadyAppliedFilters: Nt, objectId: F.objectId }), z("endobj"), "sMask" in F && F.sMask !== void 0) {
|
|
4620
|
-
var wt, A = (wt = F.sMaskBitsPerComponent) !== null && wt !== void 0 ? wt : F.bitsPerComponent,
|
|
4621
|
-
"filter" in F && (
|
|
4620
|
+
var wt, A = (wt = F.sMaskBitsPerComponent) !== null && wt !== void 0 ? wt : F.bitsPerComponent, O = { width: F.width, height: F.height, colorSpace: "DeviceGray", bitsPerComponent: A, data: F.sMask };
|
|
4621
|
+
"filter" in F && (O.decodeParameters = "/Predictor ".concat(F.predictor, " /Colors 1 /BitsPerComponent ").concat(A, " /Columns ").concat(F.width), O.filter = F.filter), _.call(this, O);
|
|
4622
4622
|
}
|
|
4623
4623
|
if (F.colorSpace === k.INDEXED) {
|
|
4624
4624
|
var T = this.internal.newObject();
|
|
@@ -4663,7 +4663,7 @@ function Bf(r) {
|
|
|
4663
4663
|
}
|
|
4664
4664
|
return _s(_.toDataURL(nt, 1).split("base64,").pop());
|
|
4665
4665
|
}
|
|
4666
|
-
},
|
|
4666
|
+
}, j = function(_) {
|
|
4667
4667
|
var F = this.internal.collections[t + "images"];
|
|
4668
4668
|
if (F) {
|
|
4669
4669
|
for (var z in F) if (_ === F[z].alias) return F[z];
|
|
@@ -4674,9 +4674,9 @@ function Bf(r) {
|
|
|
4674
4674
|
var ft = P.call(this, z, U, nt), rt = this.internal.getCoordinateString, ht = this.internal.getVerticalCoordinateString, Nt = d.call(this);
|
|
4675
4675
|
if (z = ft[0], U = ft[1], Nt[nt.index] = nt, ot) {
|
|
4676
4676
|
ot *= Math.PI / 180;
|
|
4677
|
-
var wt = Math.cos(ot), A = Math.sin(ot),
|
|
4677
|
+
var wt = Math.cos(ot), A = Math.sin(ot), O = function(H) {
|
|
4678
4678
|
return H.toFixed(4);
|
|
4679
|
-
}, T = [
|
|
4679
|
+
}, T = [O(wt), O(A), O(-1 * A), O(wt), 0, 0, "cm"];
|
|
4680
4680
|
}
|
|
4681
4681
|
this.internal.write("q"), ot ? (this.internal.write([1, "0", "0", 1, rt(_), ht(F + U), "cm"].join(" ")), this.internal.write(T.join(" ")), this.internal.write([rt(z), "0", "0", rt(U), "0", "0", "cm"].join(" "))) : this.internal.write([rt(z), "0", "0", rt(U), rt(_), ht(F + U), "cm"].join(" ")), this.isAdvancedAPI() && this.internal.write([1, 0, 0, -1, 0, 0, "cm"].join(" ")), this.internal.write("/I" + nt.index + " Do"), this.internal.write("Q");
|
|
4682
4682
|
}, k = r.color_spaces = { DEVICE_RGB: "DeviceRGB", DEVICE_GRAY: "DeviceGray", DEVICE_CMYK: "DeviceCMYK", CAL_GREY: "CalGray", CAL_RGB: "CalRGB", LAB: "Lab", ICC_BASED: "ICCBased", INDEXED: "Indexed", PATTERN: "Pattern", SEPARATION: "Separation", DEVICE_N: "DeviceN" };
|
|
@@ -4729,7 +4729,7 @@ function Bf(r) {
|
|
|
4729
4729
|
if (N(_) && (_ = p(_, F)), F = s(_, F), !x(F)) throw new Error("addImage does not support files of type '" + F + "', please ensure that a plugin for '" + F + "' support is added.");
|
|
4730
4730
|
if (((ft = z) == null || ft.length === 0) && (z = (function(ht) {
|
|
4731
4731
|
return typeof ht == "string" || mt(ht) ? Y(ht) : mt(ht.data) ? Y(ht.data) : null;
|
|
4732
|
-
})(_)), (nt =
|
|
4732
|
+
})(_)), (nt = j.call(this, z)) || (_ instanceof Uint8Array || F === "RGBA" || (ot = _, _ = dt(_)), nt = this["process" + F.toUpperCase()](_, g.call(this), z, (function(ht) {
|
|
4733
4733
|
return ht && typeof ht == "string" && (ht = ht.toUpperCase()), ht in r.image_compression ? ht : G.NONE;
|
|
4734
4734
|
})(U), ot)), !nt) throw new Error("An unknown error occurred whilst processing the image.");
|
|
4735
4735
|
return nt;
|
|
@@ -4780,7 +4780,7 @@ function Bf(r) {
|
|
|
4780
4780
|
this.internal.write("/Annots [");
|
|
4781
4781
|
for (var N = 0; N < d.length; N++) {
|
|
4782
4782
|
n = d[N];
|
|
4783
|
-
var p = this.internal.pdfEscape,
|
|
4783
|
+
var p = this.internal.pdfEscape, j = this.internal.getEncryptor(e.objId);
|
|
4784
4784
|
switch (n.type) {
|
|
4785
4785
|
case "reference":
|
|
4786
4786
|
this.internal.write(" " + n.object.objId + " 0 R ");
|
|
@@ -4794,14 +4794,14 @@ function Bf(r) {
|
|
|
4794
4794
|
case "freetext":
|
|
4795
4795
|
s = "/Rect [" + c(n.bounds.x) + " " + u(n.bounds.y) + " " + c(n.bounds.x + n.bounds.w) + " " + u(n.bounds.y + n.bounds.h) + "] ";
|
|
4796
4796
|
var q = "font: Helvetica,sans-serif 12.0pt; text-align:left; color:#" + (n.color || "#000000");
|
|
4797
|
-
a = "<</Type /Annot /Subtype /FreeText " + s + "/Contents (" + p(
|
|
4797
|
+
a = "<</Type /Annot /Subtype /FreeText " + s + "/Contents (" + p(j(n.contents)) + ")", a += " /DS(" + p(j(q)) + ")", a += " /Border [0 0 0]", a += " >>", this.internal.write(a);
|
|
4798
4798
|
break;
|
|
4799
4799
|
case "link":
|
|
4800
4800
|
if (n.options.name) {
|
|
4801
4801
|
var it = this.annotations._nameMap[n.options.name];
|
|
4802
4802
|
n.options.pageNumber = it.page, n.options.top = it.y;
|
|
4803
4803
|
} else n.options.top || (n.options.top = 0);
|
|
4804
|
-
if (s = "/Rect [" + n.finalBounds.x + " " + n.finalBounds.y + " " + n.finalBounds.w + " " + n.finalBounds.h + "] ", a = "", n.options.url) a = "<</Type /Annot /Subtype /Link " + s + "/Border [0 0 0] /A <</S /URI /URI (" + p(
|
|
4804
|
+
if (s = "/Rect [" + n.finalBounds.x + " " + n.finalBounds.y + " " + n.finalBounds.w + " " + n.finalBounds.h + "] ", a = "", n.options.url) a = "<</Type /Annot /Subtype /Link " + s + "/Border [0 0 0] /A <</S /URI /URI (" + p(j(n.options.url)) + ") >>";
|
|
4805
4805
|
else if (n.options.pageNumber) switch (a = "<</Type /Annot /Subtype /Link " + s + "/Border [0 0 0] /Dest [" + this.internal.getPageInfo(n.options.pageNumber).objId + " 0 R", n.options.magFactor = n.options.magFactor || "XYZ", n.options.magFactor) {
|
|
4806
4806
|
case "Fit":
|
|
4807
4807
|
a += " /Fit]";
|
|
@@ -4893,7 +4893,7 @@ function Bf(r) {
|
|
|
4893
4893
|
dt[B] = x(dt[B]);
|
|
4894
4894
|
}
|
|
4895
4895
|
return dt.join(" ");
|
|
4896
|
-
},
|
|
4896
|
+
}, j = r.__arabicParser__.processArabic = r.processArabic = function() {
|
|
4897
4897
|
var P, B = typeof arguments[0] == "string" ? arguments[0] : arguments[0].text, k = [];
|
|
4898
4898
|
if (Array.isArray(B)) {
|
|
4899
4899
|
var G = 0;
|
|
@@ -4902,7 +4902,7 @@ function Bf(r) {
|
|
|
4902
4902
|
} else P = p(B);
|
|
4903
4903
|
return typeof arguments[0] == "string" ? P : (arguments[0].text = P, arguments[0]);
|
|
4904
4904
|
};
|
|
4905
|
-
r.events.push(["preProcessText",
|
|
4905
|
+
r.events.push(["preProcessText", j]);
|
|
4906
4906
|
})(Rt.API), Rt.API.autoPrint = function(r) {
|
|
4907
4907
|
var t;
|
|
4908
4908
|
return (r = r || {}).variant = r.variant || "non-conform", r.variant === "javascript" ? this.addJS("print({});") : (this.internal.events.subscribe("postPutResources", function() {
|
|
@@ -5002,11 +5002,11 @@ function Bf(r) {
|
|
|
5002
5002
|
}, set: function(P) {
|
|
5003
5003
|
p = P;
|
|
5004
5004
|
} });
|
|
5005
|
-
var
|
|
5005
|
+
var j = arguments[6];
|
|
5006
5006
|
return Object.defineProperty(this, "align", { enumerable: !0, get: function() {
|
|
5007
|
-
return
|
|
5007
|
+
return j;
|
|
5008
5008
|
}, set: function(P) {
|
|
5009
|
-
|
|
5009
|
+
j = P;
|
|
5010
5010
|
} }), this;
|
|
5011
5011
|
};
|
|
5012
5012
|
a.prototype.clone = function() {
|
|
@@ -5017,7 +5017,7 @@ function Bf(r) {
|
|
|
5017
5017
|
return n.call(this), this.internal.__cell__.headerFunction = typeof f == "function" ? f : void 0, this;
|
|
5018
5018
|
}, r.getTextDimensions = function(f, d) {
|
|
5019
5019
|
n.call(this);
|
|
5020
|
-
var g = (d = d || {}).fontSize || this.getFontSize(), x = d.font || this.getFont(), N = d.scaleFactor || this.internal.scaleFactor, p = 0,
|
|
5020
|
+
var g = (d = d || {}).fontSize || this.getFontSize(), x = d.font || this.getFont(), N = d.scaleFactor || this.internal.scaleFactor, p = 0, j = 0, P = 0, B = this;
|
|
5021
5021
|
if (!Array.isArray(f) && typeof f != "string") {
|
|
5022
5022
|
if (typeof f != "number") throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");
|
|
5023
5023
|
f = String(f);
|
|
@@ -5027,7 +5027,7 @@ function Bf(r) {
|
|
|
5027
5027
|
return Y.concat(B.splitTextToSize(q, k));
|
|
5028
5028
|
}, [])) : f = Array.isArray(f) ? f : [f];
|
|
5029
5029
|
for (var G = 0; G < f.length; G++) p < (P = this.getStringUnitWidth(f[G], { font: x }) * g) && (p = P);
|
|
5030
|
-
return p !== 0 && (
|
|
5030
|
+
return p !== 0 && (j = f.length), { w: p /= N, h: Math.max((j * g * this.getLineHeightFactor() - g * (this.getLineHeightFactor() - 1)) / N, 0) };
|
|
5031
5031
|
}, r.cellAddPage = function() {
|
|
5032
5032
|
n.call(this), this.addPage();
|
|
5033
5033
|
var f = this.internal.__cell__.margins || t;
|
|
@@ -5041,7 +5041,7 @@ function Bf(r) {
|
|
|
5041
5041
|
};
|
|
5042
5042
|
r.table = function(f, d, g, x, N) {
|
|
5043
5043
|
if (n.call(this), !g) throw new Error("No data for PDF table.");
|
|
5044
|
-
var p,
|
|
5044
|
+
var p, j, P, B, k = [], G = [], Y = [], q = {}, it = {}, mt = [], dt = [], K = (N = N || {}).autoSize || !1, R = N.printHeaders !== !1, tt = N.css && N.css["font-size"] !== void 0 ? 16 * N.css["font-size"] : N.fontSize || 12, _ = N.margins || Object.assign({ width: this.getPageWidth() }, t), F = typeof N.padding == "number" ? N.padding : 3, z = N.headerBackgroundColor || "#c8c8c8", U = N.headerTextColor || "#000";
|
|
5045
5045
|
if (s.call(this), this.internal.__cell__.printHeaders = R, this.internal.__cell__.margins = _, this.internal.__cell__.table_font_size = tt, this.internal.__cell__.padding = F, this.internal.__cell__.headerBackgroundColor = z, this.internal.__cell__.headerTextColor = U, this.setFontSize(tt), x == null) G = k = Object.keys(g[0]), Y = k.map(function() {
|
|
5046
5046
|
return "left";
|
|
5047
5047
|
});
|
|
@@ -5058,7 +5058,7 @@ function Bf(r) {
|
|
|
5058
5058
|
if (K || Array.isArray(x) && typeof x[0] == "string") for (p = 0; p < k.length; p += 1) {
|
|
5059
5059
|
for (q[B = k[p]] = g.map(function(Nt) {
|
|
5060
5060
|
return Nt[B];
|
|
5061
|
-
}), this.setFont(void 0, "bold"), mt.push(this.getTextDimensions(G[p], { fontSize: this.internal.__cell__.table_font_size, scaleFactor: this.internal.scaleFactor }).w),
|
|
5061
|
+
}), this.setFont(void 0, "bold"), mt.push(this.getTextDimensions(G[p], { fontSize: this.internal.__cell__.table_font_size, scaleFactor: this.internal.scaleFactor }).w), j = q[B], this.setFont(void 0, "normal"), P = 0; P < j.length; P += 1) mt.push(this.getTextDimensions(j[P], { fontSize: this.internal.__cell__.table_font_size, scaleFactor: this.internal.scaleFactor }).w);
|
|
5062
5062
|
it[B] = Math.max.apply(null, mt) + F + F, mt = [];
|
|
5063
5063
|
}
|
|
5064
5064
|
if (R) {
|
|
@@ -5085,12 +5085,12 @@ function Bf(r) {
|
|
|
5085
5085
|
var u = function(f, d) {
|
|
5086
5086
|
var g = this.internal.__cell__.padding, x = this.internal.__cell__.table_font_size, N = this.internal.scaleFactor;
|
|
5087
5087
|
return Object.keys(f).map(function(p) {
|
|
5088
|
-
var
|
|
5089
|
-
return this.splitTextToSize(
|
|
5088
|
+
var j = f[p];
|
|
5089
|
+
return this.splitTextToSize(j.hasOwnProperty("text") ? j.text : j, d[p] - g - g);
|
|
5090
5090
|
}, this).map(function(p) {
|
|
5091
5091
|
return this.getLineHeightFactor() * p.length * x / N + g + g;
|
|
5092
|
-
}, this).reduce(function(p,
|
|
5093
|
-
return Math.max(p,
|
|
5092
|
+
}, this).reduce(function(p, j) {
|
|
5093
|
+
return Math.max(p, j);
|
|
5094
5094
|
}, 0);
|
|
5095
5095
|
};
|
|
5096
5096
|
r.setTableHeaderRow = function(f) {
|
|
@@ -5105,8 +5105,8 @@ function Bf(r) {
|
|
|
5105
5105
|
this.setFont(void 0, "bold");
|
|
5106
5106
|
for (var N = [], p = 0; p < this.internal.__cell__.tableHeaderRow.length; p += 1) {
|
|
5107
5107
|
g = this.internal.__cell__.tableHeaderRow[p].clone(), d && (g.y = this.internal.__cell__.margins.top || 0, N.push(g)), g.lineNumber = f;
|
|
5108
|
-
var
|
|
5109
|
-
this.setTextColor(this.internal.__cell__.headerTextColor), this.setFillColor(this.internal.__cell__.headerBackgroundColor), c.call(this, g), this.setTextColor(
|
|
5108
|
+
var j = this.getTextColor();
|
|
5109
|
+
this.setTextColor(this.internal.__cell__.headerTextColor), this.setFillColor(this.internal.__cell__.headerBackgroundColor), c.call(this, g), this.setTextColor(j);
|
|
5110
5110
|
}
|
|
5111
5111
|
N.length > 0 && this.setTableHeaderRow(N), this.setFont(void 0, "normal"), e = !1;
|
|
5112
5112
|
};
|
|
@@ -5156,20 +5156,20 @@ function Wl(r, t, e, n, s) {
|
|
|
5156
5156
|
a = 6, c = Yl;
|
|
5157
5157
|
break;
|
|
5158
5158
|
case Rt.API.image_compression.SLOW:
|
|
5159
|
-
a = 9, c =
|
|
5159
|
+
a = 9, c = Jl;
|
|
5160
5160
|
}
|
|
5161
5161
|
r = (function(f, d, g, x) {
|
|
5162
|
-
for (var N, p = f.length / d,
|
|
5162
|
+
for (var N, p = f.length / d, j = new Uint8Array(f.length + p), P = [e2, Gl, Vl, Yl, Jl], B = 0; B < p; B += 1) {
|
|
5163
5163
|
var k = B * d, G = f.subarray(k, k + d);
|
|
5164
|
-
if (x)
|
|
5164
|
+
if (x) j.set(x(G, g, N), k + B);
|
|
5165
5165
|
else {
|
|
5166
5166
|
for (var Y = P.length, q = [], it = 0; it < Y; it += 1) q[it] = P[it](G, g, N);
|
|
5167
5167
|
var mt = n2(q.concat());
|
|
5168
|
-
|
|
5168
|
+
j.set(q[mt], k + B);
|
|
5169
5169
|
}
|
|
5170
5170
|
N = G;
|
|
5171
5171
|
}
|
|
5172
|
-
return
|
|
5172
|
+
return j;
|
|
5173
5173
|
})(r, t, Math.ceil(e * n / 8), c);
|
|
5174
5174
|
var u = Go(r, { level: a });
|
|
5175
5175
|
return Rt.API.__addimage__.arrayBufferToBinaryString(u);
|
|
@@ -5205,7 +5205,7 @@ function Yl(r, t, e) {
|
|
|
5205
5205
|
}
|
|
5206
5206
|
return s;
|
|
5207
5207
|
}
|
|
5208
|
-
function
|
|
5208
|
+
function Jl(r, t, e) {
|
|
5209
5209
|
var n = r.length, s = [];
|
|
5210
5210
|
s[0] = 4;
|
|
5211
5211
|
for (var a = 0; a < n; a += 1) {
|
|
@@ -5231,7 +5231,7 @@ function Do(r, t, e) {
|
|
|
5231
5231
|
var n = t * e, s = Math.floor(n / 8), a = 16 - (n - 8 * s + e), c = (1 << e) - 1;
|
|
5232
5232
|
return qf(r, s) >> a & c;
|
|
5233
5233
|
}
|
|
5234
|
-
function
|
|
5234
|
+
function Xl(r, t, e, n) {
|
|
5235
5235
|
var s = e * n, a = Math.floor(s / 8), c = 16 - (s - 8 * a + n), u = (1 << n) - 1, f = (t & u) << c;
|
|
5236
5236
|
(function(d, g, x) {
|
|
5237
5237
|
if (g + 1 < d.byteLength) d.setUint16(g, x, !1);
|
|
@@ -5251,12 +5251,12 @@ function i2(r) {
|
|
|
5251
5251
|
r[t++], r[t++];
|
|
5252
5252
|
var u = null, f = null;
|
|
5253
5253
|
a && (u = t, f = c, t += 3 * c);
|
|
5254
|
-
var d = !0, g = [], x = 0, N = null, p = 0,
|
|
5254
|
+
var d = !0, g = [], x = 0, N = null, p = 0, j = null;
|
|
5255
5255
|
for (this.width = e, this.height = n; d && t < r.length; ) switch (r[t++]) {
|
|
5256
5256
|
case 33:
|
|
5257
5257
|
switch (r[t++]) {
|
|
5258
5258
|
case 255:
|
|
5259
|
-
if (r[t] !== 11 || r[t + 1] == 78 && r[t + 2] == 69 && r[t + 3] == 84 && r[t + 4] == 83 && r[t + 5] == 67 && r[t + 6] == 65 && r[t + 7] == 80 && r[t + 8] == 69 && r[t + 9] == 50 && r[t + 10] == 46 && r[t + 11] == 48 && r[t + 12] == 3 && r[t + 13] == 1 && r[t + 16] == 0) t += 14,
|
|
5259
|
+
if (r[t] !== 11 || r[t + 1] == 78 && r[t + 2] == 69 && r[t + 3] == 84 && r[t + 4] == 83 && r[t + 5] == 67 && r[t + 6] == 65 && r[t + 7] == 80 && r[t + 8] == 69 && r[t + 9] == 50 && r[t + 10] == 46 && r[t + 11] == 48 && r[t + 12] == 3 && r[t + 13] == 1 && r[t + 16] == 0) t += 14, j = r[t++] | r[t++] << 8, t++;
|
|
5260
5260
|
else for (t += 12; ; ) {
|
|
5261
5261
|
if (!((_ = r[t++]) >= 0)) throw Error("Invalid block size");
|
|
5262
5262
|
if (_ === 0) break;
|
|
@@ -5300,7 +5300,7 @@ function i2(r) {
|
|
|
5300
5300
|
this.numFrames = function() {
|
|
5301
5301
|
return g.length;
|
|
5302
5302
|
}, this.loopCount = function() {
|
|
5303
|
-
return
|
|
5303
|
+
return j;
|
|
5304
5304
|
}, this.frameInfo = function(F) {
|
|
5305
5305
|
if (F < 0 || F >= g.length) throw new Error("Frame index out of range.");
|
|
5306
5306
|
return g[F];
|
|
@@ -5311,11 +5311,11 @@ function i2(r) {
|
|
|
5311
5311
|
Kl(r, U.data_offset, ot, nt);
|
|
5312
5312
|
var ft = U.palette_offset, rt = U.transparent_index;
|
|
5313
5313
|
rt === null && (rt = 256);
|
|
5314
|
-
var ht = U.width, Nt = e - ht, wt = ht, A = 4 * (U.y * e + U.x),
|
|
5314
|
+
var ht = U.width, Nt = e - ht, wt = ht, A = 4 * (U.y * e + U.x), O = 4 * ((U.y + U.height) * e + U.x), T = A, H = 4 * Nt;
|
|
5315
5315
|
U.interlaced === !0 && (H += 4 * e * 7);
|
|
5316
|
-
for (var
|
|
5316
|
+
for (var J = 8, Z = 0, at = ot.length; Z < at; ++Z) {
|
|
5317
5317
|
var st = ot[Z];
|
|
5318
|
-
if (wt === 0 && (wt = ht, (T += H) >=
|
|
5318
|
+
if (wt === 0 && (wt = ht, (T += H) >= O && (H = 4 * Nt + 4 * e * (J - 1), T = A + (ht + Nt) * (J << 1), J >>= 1)), st === rt) T += 4;
|
|
5319
5319
|
else {
|
|
5320
5320
|
var gt = r[ft + 3 * st], At = r[ft + 3 * st + 1], kt = r[ft + 3 * st + 2];
|
|
5321
5321
|
z[T++] = kt, z[T++] = At, z[T++] = gt, z[T++] = 255;
|
|
@@ -5329,11 +5329,11 @@ function i2(r) {
|
|
|
5329
5329
|
Kl(r, U.data_offset, ot, nt);
|
|
5330
5330
|
var ft = U.palette_offset, rt = U.transparent_index;
|
|
5331
5331
|
rt === null && (rt = 256);
|
|
5332
|
-
var ht = U.width, Nt = e - ht, wt = ht, A = 4 * (U.y * e + U.x),
|
|
5332
|
+
var ht = U.width, Nt = e - ht, wt = ht, A = 4 * (U.y * e + U.x), O = 4 * ((U.y + U.height) * e + U.x), T = A, H = 4 * Nt;
|
|
5333
5333
|
U.interlaced === !0 && (H += 4 * e * 7);
|
|
5334
|
-
for (var
|
|
5334
|
+
for (var J = 8, Z = 0, at = ot.length; Z < at; ++Z) {
|
|
5335
5335
|
var st = ot[Z];
|
|
5336
|
-
if (wt === 0 && (wt = ht, (T += H) >=
|
|
5336
|
+
if (wt === 0 && (wt = ht, (T += H) >= O && (H = 4 * Nt + 4 * e * (J - 1), T = A + (ht + Nt) * (J << 1), J >>= 1)), st === rt) T += 4;
|
|
5337
5337
|
else {
|
|
5338
5338
|
var gt = r[ft + 3 * st], At = r[ft + 3 * st + 1], kt = r[ft + 3 * st + 2];
|
|
5339
5339
|
z[T++] = gt, z[T++] = At, z[T++] = kt, z[T++] = 255;
|
|
@@ -5343,34 +5343,34 @@ function i2(r) {
|
|
|
5343
5343
|
};
|
|
5344
5344
|
}
|
|
5345
5345
|
function Kl(r, t, e, n) {
|
|
5346
|
-
for (var s = r[t++], a = 1 << s, c = a + 1, u = c + 1, f = s + 1, d = (1 << f) - 1, g = 0, x = 0, N = 0, p = r[t++],
|
|
5346
|
+
for (var s = r[t++], a = 1 << s, c = a + 1, u = c + 1, f = s + 1, d = (1 << f) - 1, g = 0, x = 0, N = 0, p = r[t++], j = new Int32Array(4096), P = null; ; ) {
|
|
5347
5347
|
for (; g < 16 && p !== 0; ) x |= r[t++] << g, g += 8, p === 1 ? p = r[t++] : --p;
|
|
5348
5348
|
if (g < f) break;
|
|
5349
5349
|
var B = x & d;
|
|
5350
5350
|
if (x >>= f, g -= f, B !== a) {
|
|
5351
5351
|
if (B === c) break;
|
|
5352
|
-
for (var k = B < u ? B : P, G = 0, Y = k; Y > a; ) Y =
|
|
5352
|
+
for (var k = B < u ? B : P, G = 0, Y = k; Y > a; ) Y = j[Y] >> 8, ++G;
|
|
5353
5353
|
var q = Y;
|
|
5354
5354
|
if (N + G + (k !== B ? 1 : 0) > n) return void _e.log("Warning, gif stream longer than expected.");
|
|
5355
5355
|
e[N++] = q;
|
|
5356
5356
|
var it = N += G;
|
|
5357
|
-
for (k !== B && (e[N++] = q), Y = k; G--; ) Y =
|
|
5358
|
-
P !== null && u < 4096 && (
|
|
5357
|
+
for (k !== B && (e[N++] = q), Y = k; G--; ) Y = j[Y], e[--it] = 255 & Y, Y >>= 8;
|
|
5358
|
+
P !== null && u < 4096 && (j[u++] = P << 8 | q, u >= d + 1 && f < 12 && (++f, d = d << 1 | 1)), P = B;
|
|
5359
5359
|
} else u = c + 1, d = (1 << (f = s + 1)) - 1, P = null;
|
|
5360
5360
|
}
|
|
5361
5361
|
return N !== n && _e.log("Warning, gif stream shorter than expected."), e;
|
|
5362
5362
|
}
|
|
5363
5363
|
function qo(r) {
|
|
5364
|
-
var t, e, n, s, a, c = Math.floor, u = new Array(64), f = new Array(64), d = new Array(64), g = new Array(64), x = new Array(65535), N = new Array(65535), p = new Array(64),
|
|
5365
|
-
function ot(A,
|
|
5366
|
-
for (var T = 0, H = 0,
|
|
5367
|
-
for (var at = 1; at <= A[Z]; at++)
|
|
5364
|
+
var t, e, n, s, a, c = Math.floor, u = new Array(64), f = new Array(64), d = new Array(64), g = new Array(64), x = new Array(65535), N = new Array(65535), p = new Array(64), j = new Array(64), P = [], B = 0, k = 7, G = new Array(64), Y = new Array(64), q = new Array(64), it = new Array(256), mt = new Array(2048), dt = [0, 1, 5, 6, 14, 15, 27, 28, 2, 4, 7, 13, 16, 26, 29, 42, 3, 8, 12, 17, 25, 30, 41, 43, 9, 11, 18, 24, 31, 40, 44, 53, 10, 19, 23, 32, 39, 45, 52, 54, 20, 22, 33, 38, 46, 51, 55, 60, 21, 34, 37, 47, 50, 56, 59, 61, 35, 36, 48, 49, 57, 58, 62, 63], K = [0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0], R = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], tt = [0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 125], _ = [1, 2, 3, 0, 4, 17, 5, 18, 33, 49, 65, 6, 19, 81, 97, 7, 34, 113, 20, 50, 129, 145, 161, 8, 35, 66, 177, 193, 21, 82, 209, 240, 36, 51, 98, 114, 130, 9, 10, 22, 23, 24, 25, 26, 37, 38, 39, 40, 41, 42, 52, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250], F = [0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0], z = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], U = [0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 119], nt = [0, 1, 2, 3, 17, 4, 5, 33, 49, 6, 18, 65, 81, 7, 97, 113, 19, 34, 50, 129, 8, 20, 66, 145, 161, 177, 193, 9, 35, 51, 82, 240, 21, 98, 114, 209, 10, 22, 36, 52, 225, 37, 241, 23, 24, 25, 26, 38, 39, 40, 41, 42, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 130, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 226, 227, 228, 229, 230, 231, 232, 233, 234, 242, 243, 244, 245, 246, 247, 248, 249, 250];
|
|
5365
|
+
function ot(A, O) {
|
|
5366
|
+
for (var T = 0, H = 0, J = new Array(), Z = 1; Z <= 16; Z++) {
|
|
5367
|
+
for (var at = 1; at <= A[Z]; at++) J[O[H]] = [], J[O[H]][0] = T, J[O[H]][1] = Z, H++, T++;
|
|
5368
5368
|
T *= 2;
|
|
5369
5369
|
}
|
|
5370
|
-
return
|
|
5370
|
+
return J;
|
|
5371
5371
|
}
|
|
5372
5372
|
function ft(A) {
|
|
5373
|
-
for (var
|
|
5373
|
+
for (var O = A[0], T = A[1] - 1; T >= 0; ) O & 1 << T && (B |= 1 << k), T--, --k < 0 && (B == 255 ? (rt(255), rt(0)) : rt(B), k = 7, B = 0);
|
|
5374
5374
|
}
|
|
5375
5375
|
function rt(A) {
|
|
5376
5376
|
P.push(A);
|
|
@@ -5378,61 +5378,61 @@ function qo(r) {
|
|
|
5378
5378
|
function ht(A) {
|
|
5379
5379
|
rt(A >> 8 & 255), rt(255 & A);
|
|
5380
5380
|
}
|
|
5381
|
-
function Nt(A,
|
|
5382
|
-
for (var Z, at =
|
|
5383
|
-
var Mt, zt, qt, ve, le, Zt, ce, fe,
|
|
5384
|
-
for (
|
|
5381
|
+
function Nt(A, O, T, H, J) {
|
|
5382
|
+
for (var Z, at = J[0], st = J[240], gt = (function(yt, Wt) {
|
|
5383
|
+
var Mt, zt, qt, ve, le, Zt, ce, fe, Ot, re, Tt = 0;
|
|
5384
|
+
for (Ot = 0; Ot < 8; ++Ot) {
|
|
5385
5385
|
Mt = yt[Tt], zt = yt[Tt + 1], qt = yt[Tt + 2], ve = yt[Tt + 3], le = yt[Tt + 4], Zt = yt[Tt + 5], ce = yt[Tt + 6];
|
|
5386
|
-
var ze = Mt + (fe = yt[Tt + 7]), ge = Mt - fe, se = zt + ce, oe = zt - ce, Fe = qt + Zt, Ut = qt - Zt, Se = ve + le, Yt = ve - le, Qt = ze + Se,
|
|
5386
|
+
var ze = Mt + (fe = yt[Tt + 7]), ge = Mt - fe, se = zt + ce, oe = zt - ce, Fe = qt + Zt, Ut = qt - Zt, Se = ve + le, Yt = ve - le, Qt = ze + Se, je = ze - Se, ue = se + Fe, Gt = se - Fe;
|
|
5387
5387
|
yt[Tt] = Qt + ue, yt[Tt + 4] = Qt - ue;
|
|
5388
|
-
var be = 0.707106781 * (Gt +
|
|
5389
|
-
yt[Tt + 2] =
|
|
5388
|
+
var be = 0.707106781 * (Gt + je);
|
|
5389
|
+
yt[Tt + 2] = je + be, yt[Tt + 6] = je - be;
|
|
5390
5390
|
var Qn = 0.382683433 * ((Qt = Yt + Ut) - (Gt = oe + ge)), lr = 0.5411961 * Qt + Qn, vn = 1.306562965 * Gt + Qn, en = 0.707106781 * (ue = Ut + oe), Vt = ge + en, bn = ge - en;
|
|
5391
5391
|
yt[Tt + 5] = bn + lr, yt[Tt + 3] = bn - lr, yt[Tt + 1] = Vt + vn, yt[Tt + 7] = Vt - vn, Tt += 8;
|
|
5392
5392
|
}
|
|
5393
|
-
for (Tt = 0,
|
|
5393
|
+
for (Tt = 0, Ot = 0; Ot < 8; ++Ot) {
|
|
5394
5394
|
Mt = yt[Tt], zt = yt[Tt + 8], qt = yt[Tt + 16], ve = yt[Tt + 24], le = yt[Tt + 32], Zt = yt[Tt + 40], ce = yt[Tt + 48];
|
|
5395
|
-
var wn = Mt + (fe = yt[Tt + 56]),
|
|
5395
|
+
var wn = Mt + (fe = yt[Tt + 56]), Or = Mt - fe, Br = zt + ce, Te = zt - ce, rr = qt + Zt, ir = qt - Zt, ti = ve + le, Fn = ve - le, Hr = wn + ti, rn = wn - ti, Wr = Br + rr, Gr = Br - rr;
|
|
5396
5396
|
yt[Tt] = Hr + Wr, yt[Tt + 32] = Hr - Wr;
|
|
5397
5397
|
var Rr = 0.707106781 * (Gr + rn);
|
|
5398
5398
|
yt[Tt + 16] = rn + Rr, yt[Tt + 48] = rn - Rr;
|
|
5399
|
-
var ei = 0.382683433 * ((Hr = Fn + ir) - (Gr = Te +
|
|
5399
|
+
var ei = 0.382683433 * ((Hr = Fn + ir) - (Gr = Te + Or)), nn = 0.5411961 * Hr + ei, ri = 1.306562965 * Gr + ei, Si = 0.707106781 * (Wr = ir + Te), ki = Or + Si, Pi = Or - Si;
|
|
5400
5400
|
yt[Tt + 40] = Pi + nn, yt[Tt + 24] = Pi - nn, yt[Tt + 8] = ki + ri, yt[Tt + 56] = ki - ri, Tt++;
|
|
5401
5401
|
}
|
|
5402
|
-
for (
|
|
5402
|
+
for (Ot = 0; Ot < 64; ++Ot) re = yt[Ot] * Wt[Ot], p[Ot] = re > 0 ? re + 0.5 | 0 : re - 0.5 | 0;
|
|
5403
5403
|
return p;
|
|
5404
|
-
})(A,
|
|
5405
|
-
var kt =
|
|
5406
|
-
T =
|
|
5407
|
-
for (var St = 63; St > 0 &&
|
|
5404
|
+
})(A, O), At = 0; At < 64; ++At) j[dt[At]] = gt[At];
|
|
5405
|
+
var kt = j[0] - T;
|
|
5406
|
+
T = j[0], kt == 0 ? ft(H[0]) : (ft(H[N[Z = 32767 + kt]]), ft(x[Z]));
|
|
5407
|
+
for (var St = 63; St > 0 && j[St] == 0; ) St--;
|
|
5408
5408
|
if (St == 0) return ft(at), T;
|
|
5409
5409
|
for (var Dt, M = 1; M <= St; ) {
|
|
5410
|
-
for (var _t = M;
|
|
5410
|
+
for (var _t = M; j[M] == 0 && M <= St; ) ++M;
|
|
5411
5411
|
var ae = M - _t;
|
|
5412
5412
|
if (ae >= 16) {
|
|
5413
5413
|
Dt = ae >> 4;
|
|
5414
5414
|
for (var Ht = 1; Ht <= Dt; ++Ht) ft(st);
|
|
5415
5415
|
ae &= 15;
|
|
5416
5416
|
}
|
|
5417
|
-
Z = 32767 +
|
|
5417
|
+
Z = 32767 + j[M], ft(J[(ae << 4) + N[Z]]), ft(x[Z]), M++;
|
|
5418
5418
|
}
|
|
5419
5419
|
return St != 63 && ft(at), T;
|
|
5420
5420
|
}
|
|
5421
5421
|
function wt(A) {
|
|
5422
|
-
A = Math.min(Math.max(A, 1), 100), a != A && ((function(
|
|
5422
|
+
A = Math.min(Math.max(A, 1), 100), a != A && ((function(O) {
|
|
5423
5423
|
for (var T = [16, 11, 10, 16, 24, 40, 51, 61, 12, 12, 14, 19, 26, 58, 60, 55, 14, 13, 16, 24, 40, 57, 69, 56, 14, 17, 22, 29, 51, 87, 80, 62, 18, 22, 37, 56, 68, 109, 103, 77, 24, 35, 55, 64, 81, 104, 113, 92, 49, 64, 78, 87, 103, 121, 120, 101, 72, 92, 95, 98, 112, 100, 103, 99], H = 0; H < 64; H++) {
|
|
5424
|
-
var
|
|
5425
|
-
|
|
5424
|
+
var J = c((T[H] * O + 50) / 100);
|
|
5425
|
+
J = Math.min(Math.max(J, 1), 255), u[dt[H]] = J;
|
|
5426
5426
|
}
|
|
5427
5427
|
for (var Z = [17, 18, 24, 47, 99, 99, 99, 99, 18, 21, 26, 66, 99, 99, 99, 99, 24, 26, 56, 99, 99, 99, 99, 99, 47, 66, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99], at = 0; at < 64; at++) {
|
|
5428
|
-
var st = c((Z[at] *
|
|
5428
|
+
var st = c((Z[at] * O + 50) / 100);
|
|
5429
5429
|
st = Math.min(Math.max(st, 1), 255), f[dt[at]] = st;
|
|
5430
5430
|
}
|
|
5431
5431
|
for (var gt = [1, 1.387039845, 1.306562965, 1.175875602, 1, 0.785694958, 0.5411961, 0.275899379], At = 0, kt = 0; kt < 8; kt++) for (var St = 0; St < 8; St++) d[At] = 1 / (u[dt[At]] * gt[kt] * gt[St] * 8), g[At] = 1 / (f[dt[At]] * gt[kt] * gt[St] * 8), At++;
|
|
5432
5432
|
})(A < 50 ? Math.floor(5e3 / A) : Math.floor(200 - 2 * A)), a = A);
|
|
5433
5433
|
}
|
|
5434
|
-
this.encode = function(A,
|
|
5435
|
-
|
|
5434
|
+
this.encode = function(A, O) {
|
|
5435
|
+
O && wt(O), P = new Array(), B = 0, k = 7, ht(65496), ht(65504), ht(16), rt(74), rt(70), rt(73), rt(70), rt(0), rt(1), rt(1), rt(0), ht(1), ht(1), rt(0), rt(0), (function() {
|
|
5436
5436
|
ht(65499), ht(132), rt(0);
|
|
5437
5437
|
for (var zt = 0; zt < 64; zt++) rt(u[zt]);
|
|
5438
5438
|
rt(1);
|
|
@@ -5451,14 +5451,14 @@ function qo(r) {
|
|
|
5451
5451
|
for (var ce = 0; ce <= 11; ce++) rt(z[ce]);
|
|
5452
5452
|
rt(17);
|
|
5453
5453
|
for (var fe = 0; fe < 16; fe++) rt(U[fe + 1]);
|
|
5454
|
-
for (var
|
|
5454
|
+
for (var Ot = 0; Ot <= 161; Ot++) rt(nt[Ot]);
|
|
5455
5455
|
})(), ht(65498), ht(12), rt(3), rt(1), rt(0), rt(2), rt(17), rt(3), rt(17), rt(0), rt(63), rt(0);
|
|
5456
|
-
var T = 0, H = 0,
|
|
5456
|
+
var T = 0, H = 0, J = 0;
|
|
5457
5457
|
B = 0, k = 7, this.encode.displayName = "_encode_";
|
|
5458
5458
|
for (var Z, at, st, gt, At, kt, St, Dt, M, _t = A.data, ae = A.width, Ht = A.height, yt = 4 * ae, Wt = 0; Wt < Ht; ) {
|
|
5459
5459
|
for (Z = 0; Z < yt; ) {
|
|
5460
5460
|
for (At = yt * Wt + Z, St = -1, Dt = 0, M = 0; M < 64; M++) kt = At + (Dt = M >> 3) * yt + (St = 4 * (7 & M)), Wt + Dt >= Ht && (kt -= yt * (Wt + 1 + Dt - Ht)), Z + St >= yt && (kt -= Z + St - yt + 4), at = _t[kt++], st = _t[kt++], gt = _t[kt++], G[M] = (mt[at] + mt[st + 256 | 0] + mt[gt + 512 | 0] >> 16) - 128, Y[M] = (mt[at + 768 | 0] + mt[st + 1024 | 0] + mt[gt + 1280 | 0] >> 16) - 128, q[M] = (mt[at + 1280 | 0] + mt[st + 1536 | 0] + mt[gt + 1792 | 0] >> 16) - 128;
|
|
5461
|
-
T = Nt(G, d, T, t, n), H = Nt(Y, g, H, e, s),
|
|
5461
|
+
T = Nt(G, d, T, t, n), H = Nt(Y, g, H, e, s), J = Nt(q, g, J, e, s), Z += 32;
|
|
5462
5462
|
}
|
|
5463
5463
|
Wt += 8;
|
|
5464
5464
|
}
|
|
@@ -5468,12 +5468,12 @@ function qo(r) {
|
|
|
5468
5468
|
}
|
|
5469
5469
|
return ht(65497), new Uint8Array(P);
|
|
5470
5470
|
}, r = r || 50, (function() {
|
|
5471
|
-
for (var A = String.fromCharCode,
|
|
5471
|
+
for (var A = String.fromCharCode, O = 0; O < 256; O++) it[O] = A(O);
|
|
5472
5472
|
})(), t = ot(K, R), e = ot(F, z), n = ot(tt, _), s = ot(U, nt), (function() {
|
|
5473
|
-
for (var A = 1,
|
|
5474
|
-
for (var H = A; H <
|
|
5475
|
-
for (var
|
|
5476
|
-
A <<= 1,
|
|
5473
|
+
for (var A = 1, O = 2, T = 1; T <= 15; T++) {
|
|
5474
|
+
for (var H = A; H < O; H++) N[32767 + H] = T, x[32767 + H] = [], x[32767 + H][1] = T, x[32767 + H][0] = H;
|
|
5475
|
+
for (var J = -(O - 1); J <= -A; J++) N[32767 + J] = T, x[32767 + J] = [], x[32767 + J][1] = T, x[32767 + J][0] = O - 1 + J;
|
|
5476
|
+
A <<= 1, O <<= 1;
|
|
5477
5477
|
}
|
|
5478
5478
|
})(), (function() {
|
|
5479
5479
|
for (var A = 0; A < 256; A++) mt[A] = 19595 * A, mt[A + 256 | 0] = 38470 * A, mt[A + 512 | 0] = 7471 * A + 32768, mt[A + 768 | 0] = -11059 * A, mt[A + 1024 | 0] = -21709 * A, mt[A + 1280 | 0] = 32768 * A + 8421375, mt[A + 1536 | 0] = -27439 * A, mt[A + 1792 | 0] = -5329 * A;
|
|
@@ -5595,7 +5595,7 @@ function $l(r) {
|
|
|
5595
5595
|
function A() {
|
|
5596
5596
|
this.b = this.Ca = this.I = 0, this.oa = [], this.pa = 0, this.Jd = [], this.Yc = 0, this.Zc = [], this.Ka = 0;
|
|
5597
5597
|
}
|
|
5598
|
-
function
|
|
5598
|
+
function O() {
|
|
5599
5599
|
this.Ra = 0, this.oa = [], this.h = this.u = this.bb = this.Sb = this.pa = 0;
|
|
5600
5600
|
}
|
|
5601
5601
|
function T(i) {
|
|
@@ -5604,7 +5604,7 @@ function $l(r) {
|
|
|
5604
5604
|
function H(i) {
|
|
5605
5605
|
return t(i.bb <= i.Sb), i.h || i.bb == i.Sb && i.u > wr;
|
|
5606
5606
|
}
|
|
5607
|
-
function
|
|
5607
|
+
function J(i, o) {
|
|
5608
5608
|
i.u = o, i.h = H(i);
|
|
5609
5609
|
}
|
|
5610
5610
|
function Z(i) {
|
|
@@ -5690,7 +5690,7 @@ function $l(r) {
|
|
|
5690
5690
|
m[b + w] = (4278255360 & y) + S >>> 0;
|
|
5691
5691
|
}
|
|
5692
5692
|
}
|
|
5693
|
-
function
|
|
5693
|
+
function Ot(i, o) {
|
|
5694
5694
|
o.jd = 255 & i, o.hd = i >> 8 & 255, o.ud = i >> 16 & 255;
|
|
5695
5695
|
}
|
|
5696
5696
|
function re(i, o, h, m, b, w) {
|
|
@@ -5755,11 +5755,11 @@ function $l(r) {
|
|
|
5755
5755
|
function Qt() {
|
|
5756
5756
|
this.eb = [], this.size = this.A = this.fb = 0;
|
|
5757
5757
|
}
|
|
5758
|
-
function
|
|
5758
|
+
function je() {
|
|
5759
5759
|
this.y = [], this.f = [], this.ea = [], this.F = [], this.Tc = this.Ed = this.Cd = this.Fd = this.lb = this.Db = this.Ab = this.fa = this.J = this.W = this.N = this.O = 0;
|
|
5760
5760
|
}
|
|
5761
5761
|
function ue() {
|
|
5762
|
-
this.Rd = this.height = this.width = this.S = 0, this.f = {}, this.f.RGBA = new Qt(), this.f.kb = new
|
|
5762
|
+
this.Rd = this.height = this.width = this.S = 0, this.f = {}, this.f.RGBA = new Qt(), this.f.kb = new je(), this.sd = null;
|
|
5763
5763
|
}
|
|
5764
5764
|
function Gt() {
|
|
5765
5765
|
this.width = [0], this.height = [0], this.Pd = [0], this.Qd = [0], this.format = [0];
|
|
@@ -5817,7 +5817,7 @@ function $l(r) {
|
|
|
5817
5817
|
function wn(i, o, h, m) {
|
|
5818
5818
|
return wt(i, 8) != 47 ? 0 : (o[0] = wt(i, 14) + 1, h[0] = wt(i, 14) + 1, m[0] = wt(i, 1), wt(i, 3) != 0 ? 0 : !i.h);
|
|
5819
5819
|
}
|
|
5820
|
-
function
|
|
5820
|
+
function Or(i, o) {
|
|
5821
5821
|
if (4 > i) return i + 1;
|
|
5822
5822
|
var h = i - 2 >> 1;
|
|
5823
5823
|
return (2 + (1 & i) << h) + wt(o, h) + 1;
|
|
@@ -5828,7 +5828,7 @@ function $l(r) {
|
|
|
5828
5828
|
}
|
|
5829
5829
|
function Te(i, o, h) {
|
|
5830
5830
|
var m = T(h), b = i[o += 255 & m].g - 8;
|
|
5831
|
-
return 0 < b && (
|
|
5831
|
+
return 0 < b && (J(h, h.u + 8), m = T(h), o += i[o].value, o += m & (1 << b) - 1), J(h, h.u + i[o].g), i[o].value;
|
|
5832
5832
|
}
|
|
5833
5833
|
function rr(i, o, h) {
|
|
5834
5834
|
return h.g += i.g, h.value += i.value << o >>> 0, t(8 >= h.g), i.g;
|
|
@@ -5853,8 +5853,8 @@ function $l(r) {
|
|
|
5853
5853
|
for (var bt = 1 << Ft.b, Bt = bt - 1, Pt = yt(xt, Ft.b), ne = Ft.K, Ft = Ft.w + (lt >> Ft.b) * Pt; lt < Q; ) {
|
|
5854
5854
|
var he = ne, Qe = Ft, ie = 1;
|
|
5855
5855
|
for (Dn(C, V, ct, pt - xt, 1, ct, pt); ie < xt; ) {
|
|
5856
|
-
var
|
|
5857
|
-
|
|
5856
|
+
var jt = (ie & ~Bt) + bt;
|
|
5857
|
+
jt > xt && (jt = xt), (0, Vr[he[Qe++] >> 8 & 15])(C, V + +ie, ct, pt + ie - xt, jt - ie, ct, pt + ie), ie = jt;
|
|
5858
5858
|
}
|
|
5859
5859
|
V += xt, pt += xt, ++lt & Bt || (Ft += Pt);
|
|
5860
5860
|
}
|
|
@@ -5862,8 +5862,8 @@ function $l(r) {
|
|
|
5862
5862
|
break;
|
|
5863
5863
|
case 1:
|
|
5864
5864
|
for ($ = C, Q = V, xt = (C = E.Ea) - (pt = C & ~(ct = (V = 1 << E.b) - 1)), lt = yt(C, E.b), bt = E.K, E = E.w + (W >> E.b) * lt; W < et; ) {
|
|
5865
|
-
for (Bt = bt, Pt = E, ne = new zt(), Ft = Q + pt, he = Q + C; Q < Ft; )
|
|
5866
|
-
Q < he && (
|
|
5865
|
+
for (Bt = bt, Pt = E, ne = new zt(), Ft = Q + pt, he = Q + C; Q < Ft; ) Ot(Bt[Pt++], ne), pi(ne, $, Q, V, S, L), Q += V, L += V;
|
|
5866
|
+
Q < he && (Ot(Bt[Pt++], ne), pi(ne, $, Q, xt, S, L), Q += xt, L += xt), ++W & ct || (E += lt);
|
|
5867
5867
|
}
|
|
5868
5868
|
break;
|
|
5869
5869
|
case 3:
|
|
@@ -5976,7 +5976,7 @@ function $l(r) {
|
|
|
5976
5976
|
if (S & ct || (pt = ir(W, S, L)), t(pt != null), pt.Qb && (o[et] = pt.qb, xt = !0), !xt) if (Z(E), pt.jc) {
|
|
5977
5977
|
bt = E, Bt = o;
|
|
5978
5978
|
var Pt = et, ne = pt.pd[T(bt) & Ui - 1];
|
|
5979
|
-
t(pt.jc), 256 > ne.g ? (
|
|
5979
|
+
t(pt.jc), 256 > ne.g ? (J(bt, bt.u + ne.g), Bt[Pt] = ne.value, bt = 0) : (J(bt, bt.u + ne.g - 256), t(256 <= ne.value), bt = ne.value), bt == 0 && (xt = !0);
|
|
5980
5980
|
} else bt = Te(pt.G[0], pt.H[0], E);
|
|
5981
5981
|
if (E.h) break;
|
|
5982
5982
|
if (xt || 256 > bt) {
|
|
@@ -5987,7 +5987,7 @@ function $l(r) {
|
|
|
5987
5987
|
}
|
|
5988
5988
|
if (xt = !1, ++et, ++S >= m && (S = 0, ++L, y != null && L <= w && !(L % 16) && y(i, L), Q != null)) for (; C < et; ) bt = o[C++], Q.X[(506832829 * bt & 4294967295) >>> Q.Mb] = bt;
|
|
5989
5989
|
} else if (280 > bt) {
|
|
5990
|
-
if (bt =
|
|
5990
|
+
if (bt = Or(bt - 256, E), Bt = Te(pt.G[4], pt.H[4], E), Z(E), Bt = Br(m, Bt = Or(Bt, E)), E.h) break;
|
|
5991
5991
|
if (et - h < Bt || b - et < bt) break t;
|
|
5992
5992
|
for (Pt = 0; Pt < bt; ++Pt) o[et + Pt] = o[et + Pt - Bt];
|
|
5993
5993
|
for (et += bt, S += bt; S >= m; ) S -= m, ++L, y != null && L <= w && !(L % 16) && y(i, L);
|
|
@@ -6035,8 +6035,8 @@ function $l(r) {
|
|
|
6035
6035
|
var Pt, ne = bt, Ft = ct, he = 1 << (8 >> Ft.b), Qe = a(he);
|
|
6036
6036
|
if (Qe == null) xt = 0;
|
|
6037
6037
|
else {
|
|
6038
|
-
var ie = Ft.K[0],
|
|
6039
|
-
for (Qe[0] = Ft.K[0][0], Pt = 1; Pt < 1 * ne; ++Pt) Qe[Pt] = Wt(ie[
|
|
6038
|
+
var ie = Ft.K[0], jt = Ft.w;
|
|
6039
|
+
for (Qe[0] = Ft.K[0][0], Pt = 1; Pt < 1 * ne; ++Pt) Qe[Pt] = Wt(ie[jt + Pt], Qe[Pt - 1]);
|
|
6040
6040
|
for (; Pt < 4 * he; ++Pt) Qe[Pt] = 0;
|
|
6041
6041
|
Ft.K[0] = null, Ft.K[0] = Qe, xt = 1;
|
|
6042
6042
|
}
|
|
@@ -6060,8 +6060,8 @@ function $l(r) {
|
|
|
6060
6060
|
var We, ee, pe, Ee = m, sr = y, yr = L, De = et, dr = h, xr = Ee.m, tr = Ee.s, me = [null], we = 1, qe = 0, ye = $f[De];
|
|
6061
6061
|
r: for (; ; ) {
|
|
6062
6062
|
if (dr && wt(xr, 1)) {
|
|
6063
|
-
var or = wt(xr, 3) + 2,
|
|
6064
|
-
if (!nn(
|
|
6063
|
+
var or = wt(xr, 3) + 2, Jr = yt(sr, or), Ge = yt(yr, or), Lr = Jr * Ge;
|
|
6064
|
+
if (!nn(Jr, Ge, 0, Ee, me)) break r;
|
|
6065
6065
|
for (me = me[0], tr.xc = or, We = 0; We < Lr; ++We) {
|
|
6066
6066
|
var Le = me[We] >> 8 & 65535;
|
|
6067
6067
|
me[We] = Le, Le >= we && (we = Le + 1);
|
|
@@ -6082,9 +6082,9 @@ function $l(r) {
|
|
|
6082
6082
|
}
|
|
6083
6083
|
var Cr = Mr;
|
|
6084
6084
|
for (We = pe = 0; We < we; ++We) {
|
|
6085
|
-
var Me = Er[We], Fr = Me.G,
|
|
6085
|
+
var Me = Er[We], Fr = Me.G, Xr = Me.H, vi = 0, Mn = 1, ur = 0;
|
|
6086
6086
|
for (ee = 0; 5 > ee; ++ee) {
|
|
6087
|
-
er = xu[ee], Fr[ee] = Cr,
|
|
6087
|
+
er = xu[ee], Fr[ee] = Cr, Xr[ee] = pe, !ee && 0 < De && (er += 1 << De);
|
|
6088
6088
|
i: {
|
|
6089
6089
|
var fs, po = er, cs = Ee, ka = _r, bc = Cr, wc = pe, go = 0, Wn = cs.m, yc = wt(Wn, 1);
|
|
6090
6090
|
if (s(ka, 0, 0, po), yc) {
|
|
@@ -6098,8 +6098,8 @@ function $l(r) {
|
|
|
6098
6098
|
var ds = 0;
|
|
6099
6099
|
break i;
|
|
6100
6100
|
}
|
|
6101
|
-
for (fs = 0; fs < Fu; ++fs) Cu[
|
|
6102
|
-
var mo = void 0, Pa = void 0,
|
|
6101
|
+
for (fs = 0; fs < Fu; ++fs) Cu[Xf[fs]] = wt(Wn, 3);
|
|
6102
|
+
var mo = void 0, Pa = void 0, ju = cs, Nc = Cu, ps = po, Ou = ka, vo = 0, Gn = ju.m, Bu = 8, Ru = c(128, z);
|
|
6103
6103
|
n: for (; F(Ru, 0, 7, Nc, 19); ) {
|
|
6104
6104
|
if (wt(Gn, 1)) {
|
|
6105
6105
|
var Lc = 2 + 2 * wt(Gn, 3);
|
|
@@ -6108,30 +6108,30 @@ function $l(r) {
|
|
|
6108
6108
|
for (Pa = 0; Pa < ps && mo--; ) {
|
|
6109
6109
|
Z(Gn);
|
|
6110
6110
|
var Tu = Ru[0 + (127 & T(Gn))];
|
|
6111
|
-
|
|
6111
|
+
J(Gn, Gn.u + Tu.g);
|
|
6112
6112
|
var Yi = Tu.value;
|
|
6113
|
-
if (16 > Yi)
|
|
6113
|
+
if (16 > Yi) Ou[Pa++] = Yi, Yi != 0 && (Bu = Yi);
|
|
6114
6114
|
else {
|
|
6115
6115
|
var _c = Yi == 16, Du = Yi - 16, Sc = Yf[Du], qu = wt(Gn, Vf[Du]) + Sc;
|
|
6116
6116
|
if (Pa + qu > ps) break n;
|
|
6117
|
-
for (var kc = _c ? Bu : 0; 0 < qu--; )
|
|
6117
|
+
for (var kc = _c ? Bu : 0; 0 < qu--; ) Ou[Pa++] = kc;
|
|
6118
6118
|
}
|
|
6119
6119
|
}
|
|
6120
6120
|
vo = 1;
|
|
6121
6121
|
break n;
|
|
6122
6122
|
}
|
|
6123
|
-
vo || (
|
|
6123
|
+
vo || (ju.a = 3), hs = vo;
|
|
6124
6124
|
}
|
|
6125
6125
|
(hs = hs && !Wn.h) && (go = F(bc, wc, 8, ka, po)), hs && go != 0 ? ds = go : (cs.a = 3, ds = 0);
|
|
6126
6126
|
}
|
|
6127
6127
|
if (ds == 0) break r;
|
|
6128
|
-
if (Mn &&
|
|
6128
|
+
if (Mn && Jf[ee] == 1 && (Mn = Cr[pe].g == 0), vi += Cr[pe].g, pe += ds, 3 >= ee) {
|
|
6129
6129
|
var Ma, bo = _r[0];
|
|
6130
6130
|
for (Ma = 1; Ma < er; ++Ma) _r[Ma] > bo && (bo = _r[Ma]);
|
|
6131
6131
|
ur += bo;
|
|
6132
6132
|
}
|
|
6133
6133
|
}
|
|
6134
|
-
if (Me.nd = Mn, Me.Qb = 0, Mn && (Me.qb = (Fr[3][
|
|
6134
|
+
if (Me.nd = Mn, Me.Qb = 0, Mn && (Me.qb = (Fr[3][Xr[3] + 0].value << 24 | Fr[1][Xr[1] + 0].value << 16 | Fr[2][Xr[2] + 0].value) >>> 0, vi == 0 && 256 > Fr[0][Xr[0] + 0].value && (Me.Qb = 1, Me.qb += Fr[0][Xr[0] + 0].value << 8)), Me.jc = !Me.Qb && 6 > ur, Me.jc) {
|
|
6135
6135
|
var gs, In = Me;
|
|
6136
6136
|
for (gs = 0; gs < Ui; ++gs) {
|
|
6137
6137
|
var Vn = gs, Yn = In.pd[Vn], ms = In.G[0][In.H[0] + Vn];
|
|
@@ -6234,7 +6234,7 @@ function $l(r) {
|
|
|
6234
6234
|
var i = new za();
|
|
6235
6235
|
return i != null && (i.a = 0, i.sc = "OK", i.cb = 0, i.Xb = 0, _a || (_a = Ii)), i;
|
|
6236
6236
|
}
|
|
6237
|
-
function
|
|
6237
|
+
function Xe(i, o, h) {
|
|
6238
6238
|
return i.a == 0 && (i.a = o, i.sc = h, i.cb = 0), 0;
|
|
6239
6239
|
}
|
|
6240
6240
|
function Ha(i, o, h) {
|
|
@@ -6242,20 +6242,20 @@ function $l(r) {
|
|
|
6242
6242
|
}
|
|
6243
6243
|
function sn(i, o) {
|
|
6244
6244
|
if (i == null) return 0;
|
|
6245
|
-
if (i.a = 0, i.sc = "OK", o == null) return
|
|
6245
|
+
if (i.a = 0, i.sc = "OK", o == null) return Xe(i, 2, "null VP8Io passed to VP8GetHeaders()");
|
|
6246
6246
|
var h = o.data, m = o.w, b = o.ha;
|
|
6247
|
-
if (4 > b) return
|
|
6247
|
+
if (4 > b) return Xe(i, 7, "Truncated header.");
|
|
6248
6248
|
var w = h[m + 0] | h[m + 1] << 8 | h[m + 2] << 16, y = i.Od;
|
|
6249
|
-
if (y.Rb = !(1 & w), y.td = w >> 1 & 7, y.yd = w >> 4 & 1, y.ub = w >> 5, 3 < y.td) return
|
|
6250
|
-
if (!y.yd) return
|
|
6249
|
+
if (y.Rb = !(1 & w), y.td = w >> 1 & 7, y.yd = w >> 4 & 1, y.ub = w >> 5, 3 < y.td) return Xe(i, 3, "Incorrect keyframe parameters.");
|
|
6250
|
+
if (!y.yd) return Xe(i, 4, "Frame not displayable.");
|
|
6251
6251
|
m += 3, b -= 3;
|
|
6252
6252
|
var L = i.Kc;
|
|
6253
6253
|
if (y.Rb) {
|
|
6254
|
-
if (7 > b) return
|
|
6255
|
-
if (!Ha(h, m, b)) return
|
|
6254
|
+
if (7 > b) return Xe(i, 7, "cannot parse picture header");
|
|
6255
|
+
if (!Ha(h, m, b)) return Xe(i, 3, "Bad code word");
|
|
6256
6256
|
L.c = 16383 & (h[m + 4] << 8 | h[m + 3]), L.Td = h[m + 4] >> 6, L.i = 16383 & (h[m + 6] << 8 | h[m + 5]), L.Ud = h[m + 6] >> 6, m += 7, b -= 7, i.za = L.c + 15 >> 4, i.Ub = L.i + 15 >> 4, o.width = L.c, o.height = L.i, o.Da = 0, o.j = 0, o.v = 0, o.va = o.width, o.o = o.height, o.da = 0, o.ib = o.width, o.hb = o.height, o.U = o.width, o.T = o.height, s((w = i.Pa).jb, 0, 255, w.jb.length), t((w = i.Qa) != null), w.Cb = 0, w.Bb = 0, w.Fb = 1, s(w.Zb, 0, 0, w.Zb.length), s(w.Lb, 0, 0, w.Lb);
|
|
6257
6257
|
}
|
|
6258
|
-
if (y.ub > b) return
|
|
6258
|
+
if (y.ub > b) return Xe(i, 7, "bad partition length");
|
|
6259
6259
|
ot(w = i.m, h, m, y.ub), m += y.ub, b -= y.ub, y.Rb && (L.Ld = st(w), L.Kd = st(w)), L = i.Qa;
|
|
6260
6260
|
var S, E = i.Pa;
|
|
6261
6261
|
if (t(w != null), t(L != null), L.Cb = st(w), L.Cb) {
|
|
@@ -6265,12 +6265,12 @@ function $l(r) {
|
|
|
6265
6265
|
}
|
|
6266
6266
|
if (L.Bb) for (S = 0; 3 > S; ++S) E.jb[S] = st(w) ? ft(w, 8) : 255;
|
|
6267
6267
|
} else L.Bb = 0;
|
|
6268
|
-
if (w.Ka) return
|
|
6268
|
+
if (w.Ka) return Xe(i, 3, "cannot parse segment header");
|
|
6269
6269
|
if ((L = i.ed).zd = st(w), L.Tb = ft(w, 6), L.wb = ft(w, 3), L.Pc = st(w), L.Pc && st(w)) {
|
|
6270
6270
|
for (E = 0; 4 > E; ++E) st(w) && (L.vd[E] = rt(w, 6));
|
|
6271
6271
|
for (E = 0; 4 > E; ++E) st(w) && (L.od[E] = rt(w, 6));
|
|
6272
6272
|
}
|
|
6273
|
-
if (i.L = L.Tb == 0 ? 0 : L.zd ? 1 : 2, w.Ka) return
|
|
6273
|
+
if (i.L = L.Tb == 0 ? 0 : L.zd ? 1 : 2, w.Ka) return Xe(i, 3, "cannot parse filter header");
|
|
6274
6274
|
var W = b;
|
|
6275
6275
|
if (b = S = m, m = S + W, L = W, i.Xb = (1 << ft(i.m, 2)) - 1, W < 3 * (E = i.Xb)) h = 7;
|
|
6276
6276
|
else {
|
|
@@ -6280,7 +6280,7 @@ function $l(r) {
|
|
|
6280
6280
|
}
|
|
6281
6281
|
ot(i.Jc[+E], h, S, L), h = S < m ? 0 : 5;
|
|
6282
6282
|
}
|
|
6283
|
-
if (h != 0) return
|
|
6283
|
+
if (h != 0) return Xe(i, h, "cannot parse partitions");
|
|
6284
6284
|
for (h = ft(S = i.m, 7), b = st(S) ? rt(S, 4) : 0, m = st(S) ? rt(S, 4) : 0, L = st(S) ? rt(S, 4) : 0, E = st(S) ? rt(S, 4) : 0, S = st(S) ? rt(S, 4) : 0, W = i.Qa, et = 0; 4 > et; ++et) {
|
|
6285
6285
|
if (W.Cb) {
|
|
6286
6286
|
var C = W.Zb[et];
|
|
@@ -6295,7 +6295,7 @@ function $l(r) {
|
|
|
6295
6295
|
var V = i.pb[et];
|
|
6296
6296
|
V.Sc[0] = fo[an(C + b, 127)], V.Sc[1] = co[an(C + 0, 127)], V.Eb[0] = 2 * fo[an(C + m, 127)], V.Eb[1] = 101581 * co[an(C + L, 127)] >> 16, 8 > V.Eb[1] && (V.Eb[1] = 8), V.Qc[0] = fo[an(C + E, 117)], V.Qc[1] = co[an(C + S, 127)], V.lc = C + S;
|
|
6297
6297
|
}
|
|
6298
|
-
if (!y.Rb) return
|
|
6298
|
+
if (!y.Rb) return Xe(i, 4, "Not a key frame.");
|
|
6299
6299
|
for (st(w), y = i.Pa, h = 0; 4 > h; ++h) {
|
|
6300
6300
|
for (b = 0; 8 > b; ++b) for (m = 0; 3 > m; ++m) for (L = 0; 11 > L; ++L) E = gt(w, nc[h][b][m][L]) ? ft(w, 8) : ec[h][b][m][L], y.Wc[h][b].Yb[m][L] = E;
|
|
6301
6301
|
for (b = 0; 17 > b; ++b) y.Xc[h][b] = y.Wc[h][ic[b]];
|
|
@@ -6394,38 +6394,38 @@ function $l(r) {
|
|
|
6394
6394
|
var h;
|
|
6395
6395
|
for (h = 16; 0 < h; --h) s(i, o, i[o - 1], 16), o += 32;
|
|
6396
6396
|
}
|
|
6397
|
-
function
|
|
6397
|
+
function jn(i, o, h) {
|
|
6398
6398
|
var m;
|
|
6399
6399
|
for (m = 0; 16 > m; ++m) s(o, h + 32 * m, i, 16);
|
|
6400
6400
|
}
|
|
6401
6401
|
function Va(i, o) {
|
|
6402
6402
|
var h, m = 16;
|
|
6403
6403
|
for (h = 0; 16 > h; ++h) m += i[o - 1 + 32 * h] + i[o + h - 32];
|
|
6404
|
-
|
|
6404
|
+
jn(m >> 5, i, o);
|
|
6405
6405
|
}
|
|
6406
|
-
function
|
|
6406
|
+
function On(i, o) {
|
|
6407
6407
|
var h, m = 8;
|
|
6408
6408
|
for (h = 0; 16 > h; ++h) m += i[o - 1 + 32 * h];
|
|
6409
|
-
|
|
6409
|
+
jn(m >> 4, i, o);
|
|
6410
6410
|
}
|
|
6411
|
-
function
|
|
6411
|
+
function Js(i, o) {
|
|
6412
6412
|
var h, m = 8;
|
|
6413
6413
|
for (h = 0; 16 > h; ++h) m += i[o + h - 32];
|
|
6414
|
-
|
|
6414
|
+
jn(m >> 4, i, o);
|
|
6415
6415
|
}
|
|
6416
6416
|
function ni(i, o) {
|
|
6417
|
-
|
|
6417
|
+
jn(128, i, o);
|
|
6418
6418
|
}
|
|
6419
|
-
function
|
|
6419
|
+
function Jt(i, o, h) {
|
|
6420
6420
|
return i + 2 * o + h + 2 >> 2;
|
|
6421
6421
|
}
|
|
6422
|
-
function
|
|
6422
|
+
function Xs(i, o) {
|
|
6423
6423
|
var h, m = o - 32;
|
|
6424
|
-
for (m = new Uint8Array([
|
|
6424
|
+
for (m = new Uint8Array([Jt(i[m - 1], i[m + 0], i[m + 1]), Jt(i[m + 0], i[m + 1], i[m + 2]), Jt(i[m + 1], i[m + 2], i[m + 3]), Jt(i[m + 2], i[m + 3], i[m + 4])]), h = 0; 4 > h; ++h) n(i, o + 32 * h, m, 0, m.length);
|
|
6425
6425
|
}
|
|
6426
6426
|
function Ks(i, o) {
|
|
6427
6427
|
var h = i[o - 1], m = i[o - 1 + 32], b = i[o - 1 + 64], w = i[o - 1 + 96];
|
|
6428
|
-
At(i, o + 0, 16843009 *
|
|
6428
|
+
At(i, o + 0, 16843009 * Jt(i[o - 1 - 32], h, m)), At(i, o + 32, 16843009 * Jt(h, m, b)), At(i, o + 64, 16843009 * Jt(m, b, w)), At(i, o + 96, 16843009 * Jt(b, w, w));
|
|
6429
6429
|
}
|
|
6430
6430
|
function $s(i, o) {
|
|
6431
6431
|
var h, m = 4;
|
|
@@ -6434,29 +6434,29 @@ function $l(r) {
|
|
|
6434
6434
|
}
|
|
6435
6435
|
function Zs(i, o) {
|
|
6436
6436
|
var h = i[o - 1 + 0], m = i[o - 1 + 32], b = i[o - 1 + 64], w = i[o - 1 - 32], y = i[o + 0 - 32], L = i[o + 1 - 32], S = i[o + 2 - 32], E = i[o + 3 - 32];
|
|
6437
|
-
i[o + 0 + 96] =
|
|
6437
|
+
i[o + 0 + 96] = Jt(m, b, i[o - 1 + 96]), i[o + 1 + 96] = i[o + 0 + 64] = Jt(h, m, b), i[o + 2 + 96] = i[o + 1 + 64] = i[o + 0 + 32] = Jt(w, h, m), i[o + 3 + 96] = i[o + 2 + 64] = i[o + 1 + 32] = i[o + 0 + 0] = Jt(y, w, h), i[o + 3 + 64] = i[o + 2 + 32] = i[o + 1 + 0] = Jt(L, y, w), i[o + 3 + 32] = i[o + 2 + 0] = Jt(S, L, y), i[o + 3 + 0] = Jt(E, S, L);
|
|
6438
6438
|
}
|
|
6439
6439
|
function Qs(i, o) {
|
|
6440
6440
|
var h = i[o + 1 - 32], m = i[o + 2 - 32], b = i[o + 3 - 32], w = i[o + 4 - 32], y = i[o + 5 - 32], L = i[o + 6 - 32], S = i[o + 7 - 32];
|
|
6441
|
-
i[o + 0 + 0] =
|
|
6441
|
+
i[o + 0 + 0] = Jt(i[o + 0 - 32], h, m), i[o + 1 + 0] = i[o + 0 + 32] = Jt(h, m, b), i[o + 2 + 0] = i[o + 1 + 32] = i[o + 0 + 64] = Jt(m, b, w), i[o + 3 + 0] = i[o + 2 + 32] = i[o + 1 + 64] = i[o + 0 + 96] = Jt(b, w, y), i[o + 3 + 32] = i[o + 2 + 64] = i[o + 1 + 96] = Jt(w, y, L), i[o + 3 + 64] = i[o + 2 + 96] = Jt(y, L, S), i[o + 3 + 96] = Jt(L, S, S);
|
|
6442
6442
|
}
|
|
6443
6443
|
function xn(i, o) {
|
|
6444
6444
|
var h = i[o - 1 + 0], m = i[o - 1 + 32], b = i[o - 1 + 64], w = i[o - 1 - 32], y = i[o + 0 - 32], L = i[o + 1 - 32], S = i[o + 2 - 32], E = i[o + 3 - 32];
|
|
6445
|
-
i[o + 0 + 0] = i[o + 1 + 64] = w + y + 1 >> 1, i[o + 1 + 0] = i[o + 2 + 64] = y + L + 1 >> 1, i[o + 2 + 0] = i[o + 3 + 64] = L + S + 1 >> 1, i[o + 3 + 0] = S + E + 1 >> 1, i[o + 0 + 96] =
|
|
6445
|
+
i[o + 0 + 0] = i[o + 1 + 64] = w + y + 1 >> 1, i[o + 1 + 0] = i[o + 2 + 64] = y + L + 1 >> 1, i[o + 2 + 0] = i[o + 3 + 64] = L + S + 1 >> 1, i[o + 3 + 0] = S + E + 1 >> 1, i[o + 0 + 96] = Jt(b, m, h), i[o + 0 + 64] = Jt(m, h, w), i[o + 0 + 32] = i[o + 1 + 96] = Jt(h, w, y), i[o + 1 + 32] = i[o + 2 + 96] = Jt(w, y, L), i[o + 2 + 32] = i[o + 3 + 96] = Jt(y, L, S), i[o + 3 + 32] = Jt(L, S, E);
|
|
6446
6446
|
}
|
|
6447
6447
|
function An(i, o) {
|
|
6448
6448
|
var h = i[o + 0 - 32], m = i[o + 1 - 32], b = i[o + 2 - 32], w = i[o + 3 - 32], y = i[o + 4 - 32], L = i[o + 5 - 32], S = i[o + 6 - 32], E = i[o + 7 - 32];
|
|
6449
|
-
i[o + 0 + 0] = h + m + 1 >> 1, i[o + 1 + 0] = i[o + 0 + 64] = m + b + 1 >> 1, i[o + 2 + 0] = i[o + 1 + 64] = b + w + 1 >> 1, i[o + 3 + 0] = i[o + 2 + 64] = w + y + 1 >> 1, i[o + 0 + 32] =
|
|
6449
|
+
i[o + 0 + 0] = h + m + 1 >> 1, i[o + 1 + 0] = i[o + 0 + 64] = m + b + 1 >> 1, i[o + 2 + 0] = i[o + 1 + 64] = b + w + 1 >> 1, i[o + 3 + 0] = i[o + 2 + 64] = w + y + 1 >> 1, i[o + 0 + 32] = Jt(h, m, b), i[o + 1 + 32] = i[o + 0 + 96] = Jt(m, b, w), i[o + 2 + 32] = i[o + 1 + 96] = Jt(b, w, y), i[o + 3 + 32] = i[o + 2 + 96] = Jt(w, y, L), i[o + 3 + 64] = Jt(y, L, S), i[o + 3 + 96] = Jt(L, S, E);
|
|
6450
6450
|
}
|
|
6451
6451
|
function to(i, o) {
|
|
6452
6452
|
var h = i[o - 1 + 0], m = i[o - 1 + 32], b = i[o - 1 + 64], w = i[o - 1 + 96];
|
|
6453
|
-
i[o + 0 + 0] = h + m + 1 >> 1, i[o + 2 + 0] = i[o + 0 + 32] = m + b + 1 >> 1, i[o + 2 + 32] = i[o + 0 + 64] = b + w + 1 >> 1, i[o + 1 + 0] =
|
|
6453
|
+
i[o + 0 + 0] = h + m + 1 >> 1, i[o + 2 + 0] = i[o + 0 + 32] = m + b + 1 >> 1, i[o + 2 + 32] = i[o + 0 + 64] = b + w + 1 >> 1, i[o + 1 + 0] = Jt(h, m, b), i[o + 3 + 0] = i[o + 1 + 32] = Jt(m, b, w), i[o + 3 + 32] = i[o + 1 + 64] = Jt(b, w, w), i[o + 3 + 64] = i[o + 2 + 64] = i[o + 0 + 96] = i[o + 1 + 96] = i[o + 2 + 96] = i[o + 3 + 96] = w;
|
|
6454
6454
|
}
|
|
6455
6455
|
function eo(i, o) {
|
|
6456
6456
|
var h = i[o - 1 + 0], m = i[o - 1 + 32], b = i[o - 1 + 64], w = i[o - 1 + 96], y = i[o - 1 - 32], L = i[o + 0 - 32], S = i[o + 1 - 32], E = i[o + 2 - 32];
|
|
6457
|
-
i[o + 0 + 0] = i[o + 2 + 32] = h + y + 1 >> 1, i[o + 0 + 32] = i[o + 2 + 64] = m + h + 1 >> 1, i[o + 0 + 64] = i[o + 2 + 96] = b + m + 1 >> 1, i[o + 0 + 96] = w + b + 1 >> 1, i[o + 3 + 0] =
|
|
6457
|
+
i[o + 0 + 0] = i[o + 2 + 32] = h + y + 1 >> 1, i[o + 0 + 32] = i[o + 2 + 64] = m + h + 1 >> 1, i[o + 0 + 64] = i[o + 2 + 96] = b + m + 1 >> 1, i[o + 0 + 96] = w + b + 1 >> 1, i[o + 3 + 0] = Jt(L, S, E), i[o + 2 + 0] = Jt(y, L, S), i[o + 1 + 0] = i[o + 3 + 32] = Jt(h, y, L), i[o + 1 + 32] = i[o + 3 + 64] = Jt(m, h, y), i[o + 1 + 64] = i[o + 3 + 96] = Jt(b, m, h), i[o + 1 + 96] = Jt(w, b, m);
|
|
6458
6458
|
}
|
|
6459
|
-
function
|
|
6459
|
+
function ji(i, o) {
|
|
6460
6460
|
var h;
|
|
6461
6461
|
for (h = 0; 8 > h; ++h) n(i, o + 32 * h, i, o - 32, 8);
|
|
6462
6462
|
}
|
|
@@ -6473,7 +6473,7 @@ function $l(r) {
|
|
|
6473
6473
|
for (h = 0; 8 > h; ++h) m += i[o + h - 32] + i[o - 1 + 32 * h];
|
|
6474
6474
|
un(m >> 4, i, o);
|
|
6475
6475
|
}
|
|
6476
|
-
function
|
|
6476
|
+
function Oi(i, o) {
|
|
6477
6477
|
var h, m = 4;
|
|
6478
6478
|
for (h = 0; 8 > h; ++h) m += i[o + h - 32];
|
|
6479
6479
|
un(m >> 3, i, o);
|
|
@@ -6537,10 +6537,10 @@ function $l(r) {
|
|
|
6537
6537
|
o += m;
|
|
6538
6538
|
}
|
|
6539
6539
|
}
|
|
6540
|
-
function
|
|
6540
|
+
function Ja(i, o, h, m, b, w) {
|
|
6541
6541
|
Nn(i, o, h, 1, 16, m, b, w);
|
|
6542
6542
|
}
|
|
6543
|
-
function
|
|
6543
|
+
function Xa(i, o, h, m, b, w) {
|
|
6544
6544
|
Nn(i, o, 1, h, 16, m, b, w);
|
|
6545
6545
|
}
|
|
6546
6546
|
function Ka(i, o, h, m, b, w) {
|
|
@@ -6566,7 +6566,7 @@ function $l(r) {
|
|
|
6566
6566
|
function D() {
|
|
6567
6567
|
this.ba = new ue(), this.ec = [], this.cc = [], this.Mc = [], this.Dc = this.Nc = this.dc = this.fc = 0, this.Oa = new be(), this.memory = 0, this.Ib = "OutputFunc", this.Jb = "OutputAlphaFunc", this.Nd = "OutputRowFunc";
|
|
6568
6568
|
}
|
|
6569
|
-
function
|
|
6569
|
+
function X() {
|
|
6570
6570
|
this.data = [], this.offset = this.kd = this.ha = this.w = 0, this.na = [], this.xa = this.gb = this.Ja = this.Sa = this.P = 0;
|
|
6571
6571
|
}
|
|
6572
6572
|
function ut() {
|
|
@@ -6576,7 +6576,7 @@ function $l(r) {
|
|
|
6576
6576
|
this.ua = 0, this.Wa = new ae(), this.vb = new ae(), this.md = this.xc = this.wc = 0, this.vc = [], this.Wb = 0, this.Ya = new nt(), this.yc = new z();
|
|
6577
6577
|
}
|
|
6578
6578
|
function Ct() {
|
|
6579
|
-
this.xb = this.a = 0, this.l = new Mi(), this.ca = new ue(), this.V = [], this.Ba = 0, this.Ta = [], this.Ua = 0, this.m = new
|
|
6579
|
+
this.xb = this.a = 0, this.l = new Mi(), this.ca = new ue(), this.V = [], this.Ba = 0, this.Ta = [], this.Ua = 0, this.m = new O(), this.Pb = 0, this.wd = new O(), this.Ma = this.$ = this.C = this.i = this.c = this.xd = 0, this.s = new vt(), this.ab = 0, this.gc = c(4, ut), this.Oc = 0;
|
|
6580
6580
|
}
|
|
6581
6581
|
function Et() {
|
|
6582
6582
|
this.Lc = this.Z = this.$a = this.i = this.c = 0, this.l = new Mi(), this.ic = 0, this.ca = [], this.tb = 0, this.qd = null, this.rd = 0;
|
|
@@ -6646,9 +6646,9 @@ function $l(r) {
|
|
|
6646
6646
|
$ = 0;
|
|
6647
6647
|
break e;
|
|
6648
6648
|
}
|
|
6649
|
-
lt =
|
|
6649
|
+
lt = Or(lt - 256, W);
|
|
6650
6650
|
var Bt, Pt = Te(bt.G[4], bt.H[4], W);
|
|
6651
|
-
if (Z(W), !(Q >= (Pt = Br(V, Pt =
|
|
6651
|
+
if (Z(W), !(Q >= (Pt = Br(V, Pt = Or(Pt, W))) && ct - Q >= lt)) {
|
|
6652
6652
|
$ = 0;
|
|
6653
6653
|
break e;
|
|
6654
6654
|
}
|
|
@@ -6719,8 +6719,8 @@ function $l(r) {
|
|
|
6719
6719
|
t(m != null);
|
|
6720
6720
|
var Ft = 3 * Pt + ne + 131074 >> 2;
|
|
6721
6721
|
for (o(m[b + 0], 255 & Ft, Ft >> 16, lt, Q), w != null && (Ft = 3 * ne + Pt + 131074 >> 2, o(w[y + 0], 255 & Ft, Ft >> 16, ct, pt)), bt = 1; bt <= Bt; ++bt) {
|
|
6722
|
-
var he = L[S + bt] | E[W + bt] << 16, Qe = et[C + bt] | V[$ + bt] << 16, ie = Pt + he + ne + Qe + 524296,
|
|
6723
|
-
Ft =
|
|
6722
|
+
var he = L[S + bt] | E[W + bt] << 16, Qe = et[C + bt] | V[$ + bt] << 16, ie = Pt + he + ne + Qe + 524296, jt = ie + 2 * (he + ne) >> 3;
|
|
6723
|
+
Ft = jt + Pt >> 1, Pt = (ie = ie + 2 * (Pt + Qe) >> 3) + he >> 1, o(m[b + 2 * bt - 1], 255 & Ft, Ft >> 16, lt, Q + (2 * bt - 1) * h), o(m[b + 2 * bt - 0], 255 & Pt, Pt >> 16, lt, Q + (2 * bt - 0) * h), w != null && (Ft = ie + ne >> 1, Pt = jt + Qe >> 1, o(w[y + 2 * bt - 1], 255 & Ft, Ft >> 16, ct, pt + (2 * bt - 1) * h), o(w[y + 2 * bt + 0], 255 & Pt, Pt >> 16, ct, pt + (2 * bt + 0) * h)), Pt = he, ne = Qe;
|
|
6724
6724
|
}
|
|
6725
6725
|
1 & xt || (Ft = 3 * Pt + ne + 131074 >> 2, o(m[b + xt - 1], 255 & Ft, Ft >> 16, lt, Q + (xt - 1) * h), w != null && (Ft = 3 * ne + Pt + 131074 >> 2, o(w[y + xt - 1], 255 & Ft, Ft >> 16, ct, pt + (xt - 1) * h)));
|
|
6726
6726
|
};
|
|
@@ -6805,7 +6805,7 @@ function $l(r) {
|
|
|
6805
6805
|
}
|
|
6806
6806
|
}
|
|
6807
6807
|
function Qa(i, o, h, m, b, w, y, L, S) {
|
|
6808
|
-
var E = [0], W = [0], et = 0, C = S != null ? S.kd : 0, V = S ?? new
|
|
6808
|
+
var E = [0], W = [0], et = 0, C = S != null ? S.kd : 0, V = S ?? new X();
|
|
6809
6809
|
if (i == null || 12 > h) return 7;
|
|
6810
6810
|
V.data = i, V.w = o, V.ha = h, o = [o], h = [h], V.gb = [V.gb];
|
|
6811
6811
|
t: {
|
|
@@ -6923,7 +6923,7 @@ function $l(r) {
|
|
|
6923
6923
|
Q = 7;
|
|
6924
6924
|
break;
|
|
6925
6925
|
}
|
|
6926
|
-
L = y, C = $, lt = w, i == null || 5 > h ? i = 0 : 5 <= h && i[o + 0] == 47 && !(i[o + 4] >> 5) ? (ct = [0], Ft = [0], xt = [0], ht(bt = new
|
|
6926
|
+
L = y, C = $, lt = w, i == null || 5 > h ? i = 0 : 5 <= h && i[o + 0] == 47 && !(i[o + 4] >> 5) ? (ct = [0], Ft = [0], xt = [0], ht(bt = new O(), i, o, h), wn(bt, ct, Ft, xt) ? (L != null && (L[0] = ct[0]), C != null && (C[0] = Ft[0]), lt != null && (lt[0] = xt[0]), i = 1) : i = 0) : i = 0;
|
|
6927
6927
|
} else {
|
|
6928
6928
|
if (10 > h) {
|
|
6929
6929
|
Q = 7;
|
|
@@ -7040,7 +7040,7 @@ function $l(r) {
|
|
|
7040
7040
|
});
|
|
7041
7041
|
var Hi, di = R.ColorIndexInverseTransform, $e = R.MapARGB, io = R.VP8LColorIndexInverseTransformAlpha, fn = R.MapAlpha, Vr = R.VP8LPredictorsAdd = [];
|
|
7042
7042
|
Vr.length = 16, (R.VP8LPredictors = []).length = 16, (R.VP8LPredictorsAdd_C = []).length = 16, (R.VP8LPredictors_C = []).length = 16;
|
|
7043
|
-
var pi, xa, Aa, Wi, gi, mi, qn, Sn, Un, Gi, hr, cn, ke, Pe, He, Ze, kn, Na, Vi, ts, ou, uu, lu, fu, La, cu, hu, du, pu = a(511), gu = a(2041), mu = a(225), vu = a(767), bu = 0, ao = gu, es = mu, Pr = vu, qr = pu, rs = 0, ns = 1, wu = 2, is = 3, as = 4, so = 5, yu = 6, oo = 7, uo = 8, ss = 9, lo = 10, Vf = [2, 3, 7], Yf = [3, 3, 11], xu = [280, 256, 256, 256, 40], Xf = [0, 1, 1, 1, 0], Jf = [17, 18, 0, 1, 2, 3, 4, 5, 16, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], Kf = [24, 7, 23, 25, 40, 6, 39, 41, 22, 26, 38, 42, 56, 5, 55, 57, 21, 27, 54, 58, 37, 43, 72, 4, 71, 73, 20, 28, 53, 59, 70, 74, 36, 44, 88, 69, 75, 52, 60, 3, 87, 89, 19, 29, 86, 90, 35, 45, 68, 76, 85, 91, 51, 61, 104, 2, 103, 105, 18, 30, 102, 106, 34, 46, 84, 92, 67, 77, 101, 107, 50, 62, 120, 1, 119, 121, 83, 93, 17, 31, 100, 108, 66, 78, 118, 122, 33, 47, 117, 123, 49, 63, 99, 109, 82, 94, 0, 116, 124, 65, 79, 16, 32, 98, 110, 48, 115, 125, 81, 95, 64, 114, 126, 97, 111, 80, 113, 127, 96, 112], $f = [2954, 2956, 2958, 2962, 2970, 2986, 3018, 3082, 3212, 3468, 3980, 5004], Zf = 8, fo = [4, 5, 6, 7, 8, 9, 10, 10, 11, 12, 13, 14, 15, 16, 17, 17, 18, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 25, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 91, 93, 95, 96, 98, 100, 101, 102, 104, 106, 108, 110, 112, 114, 116, 118, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 143, 145, 148, 151, 154, 157], co = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 119, 122, 125, 128, 131, 134, 137, 140, 143, 146, 149, 152, 155, 158, 161, 164, 167, 170, 173, 177, 181, 185, 189, 193, 197, 201, 205, 209, 213, 217, 221, 225, 229, 234, 239, 245, 249, 254, 259, 264, 269, 274, 279, 284], _a = null, Qf = [[173, 148, 140, 0], [176, 155, 140, 135, 0], [180, 157, 141, 134, 130, 0], [254, 254, 243, 230, 196, 177, 153, 140, 133, 130, 129, 0]], tc = [0, 1, 4, 8, 5, 2, 3, 6, 9, 12, 13, 10, 7, 11, 14, 15], Au = [-0, 1, -1, 2, -2, 3, 4, 6, -3, 5, -4, -5, -6, 7, -7, 8, -8, -9], ec = [[[[128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]], [[253, 136, 254, 255, 228, 219, 128, 128, 128, 128, 128], [189, 129, 242, 255, 227, 213, 255, 219, 128, 128, 128], [106, 126, 227, 252, 214, 209, 255, 255, 128, 128, 128]], [[1, 98, 248, 255, 236, 226, 255, 255, 128, 128, 128], [181, 133, 238, 254, 221, 234, 255, 154, 128, 128, 128], [78, 134, 202, 247, 198, 180, 255, 219, 128, 128, 128]], [[1, 185, 249, 255, 243, 255, 128, 128, 128, 128, 128], [184, 150, 247, 255, 236, 224, 128, 128, 128, 128, 128], [77, 110, 216, 255, 236, 230, 128, 128, 128, 128, 128]], [[1, 101, 251, 255, 241, 255, 128, 128, 128, 128, 128], [170, 139, 241, 252, 236, 209, 255, 255, 128, 128, 128], [37, 116, 196, 243, 228, 255, 255, 255, 128, 128, 128]], [[1, 204, 254, 255, 245, 255, 128, 128, 128, 128, 128], [207, 160, 250, 255, 238, 128, 128, 128, 128, 128, 128], [102, 103, 231, 255, 211, 171, 128, 128, 128, 128, 128]], [[1, 152, 252, 255, 240, 255, 128, 128, 128, 128, 128], [177, 135, 243, 255, 234, 225, 128, 128, 128, 128, 128], [80, 129, 211, 255, 194, 224, 128, 128, 128, 128, 128]], [[1, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [246, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [255, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]]], [[[198, 35, 237, 223, 193, 187, 162, 160, 145, 155, 62], [131, 45, 198, 221, 172, 176, 220, 157, 252, 221, 1], [68, 47, 146, 208, 149, 167, 221, 162, 255, 223, 128]], [[1, 149, 241, 255, 221, 224, 255, 255, 128, 128, 128], [184, 141, 234, 253, 222, 220, 255, 199, 128, 128, 128], [81, 99, 181, 242, 176, 190, 249, 202, 255, 255, 128]], [[1, 129, 232, 253, 214, 197, 242, 196, 255, 255, 128], [99, 121, 210, 250, 201, 198, 255, 202, 128, 128, 128], [23, 91, 163, 242, 170, 187, 247, 210, 255, 255, 128]], [[1, 200, 246, 255, 234, 255, 128, 128, 128, 128, 128], [109, 178, 241, 255, 231, 245, 255, 255, 128, 128, 128], [44, 130, 201, 253, 205, 192, 255, 255, 128, 128, 128]], [[1, 132, 239, 251, 219, 209, 255, 165, 128, 128, 128], [94, 136, 225, 251, 218, 190, 255, 255, 128, 128, 128], [22, 100, 174, 245, 186, 161, 255, 199, 128, 128, 128]], [[1, 182, 249, 255, 232, 235, 128, 128, 128, 128, 128], [124, 143, 241, 255, 227, 234, 128, 128, 128, 128, 128], [35, 77, 181, 251, 193, 211, 255, 205, 128, 128, 128]], [[1, 157, 247, 255, 236, 231, 255, 255, 128, 128, 128], [121, 141, 235, 255, 225, 227, 255, 255, 128, 128, 128], [45, 99, 188, 251, 195, 217, 255, 224, 128, 128, 128]], [[1, 1, 251, 255, 213, 255, 128, 128, 128, 128, 128], [203, 1, 248, 255, 255, 128, 128, 128, 128, 128, 128], [137, 1, 177, 255, 224, 255, 128, 128, 128, 128, 128]]], [[[253, 9, 248, 251, 207, 208, 255, 192, 128, 128, 128], [175, 13, 224, 243, 193, 185, 249, 198, 255, 255, 128], [73, 17, 171, 221, 161, 179, 236, 167, 255, 234, 128]], [[1, 95, 247, 253, 212, 183, 255, 255, 128, 128, 128], [239, 90, 244, 250, 211, 209, 255, 255, 128, 128, 128], [155, 77, 195, 248, 188, 195, 255, 255, 128, 128, 128]], [[1, 24, 239, 251, 218, 219, 255, 205, 128, 128, 128], [201, 51, 219, 255, 196, 186, 128, 128, 128, 128, 128], [69, 46, 190, 239, 201, 218, 255, 228, 128, 128, 128]], [[1, 191, 251, 255, 255, 128, 128, 128, 128, 128, 128], [223, 165, 249, 255, 213, 255, 128, 128, 128, 128, 128], [141, 124, 248, 255, 255, 128, 128, 128, 128, 128, 128]], [[1, 16, 248, 255, 255, 128, 128, 128, 128, 128, 128], [190, 36, 230, 255, 236, 255, 128, 128, 128, 128, 128], [149, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[1, 226, 255, 128, 128, 128, 128, 128, 128, 128, 128], [247, 192, 255, 128, 128, 128, 128, 128, 128, 128, 128], [240, 128, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[1, 134, 252, 255, 255, 128, 128, 128, 128, 128, 128], [213, 62, 250, 255, 255, 128, 128, 128, 128, 128, 128], [55, 93, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]]], [[[202, 24, 213, 235, 186, 191, 220, 160, 240, 175, 255], [126, 38, 182, 232, 169, 184, 228, 174, 255, 187, 128], [61, 46, 138, 219, 151, 178, 240, 170, 255, 216, 128]], [[1, 112, 230, 250, 199, 191, 247, 159, 255, 255, 128], [166, 109, 228, 252, 211, 215, 255, 174, 128, 128, 128], [39, 77, 162, 232, 172, 180, 245, 178, 255, 255, 128]], [[1, 52, 220, 246, 198, 199, 249, 220, 255, 255, 128], [124, 74, 191, 243, 183, 193, 250, 221, 255, 255, 128], [24, 71, 130, 219, 154, 170, 243, 182, 255, 255, 128]], [[1, 182, 225, 249, 219, 240, 255, 224, 128, 128, 128], [149, 150, 226, 252, 216, 205, 255, 171, 128, 128, 128], [28, 108, 170, 242, 183, 194, 254, 223, 255, 255, 128]], [[1, 81, 230, 252, 204, 203, 255, 192, 128, 128, 128], [123, 102, 209, 247, 188, 196, 255, 233, 128, 128, 128], [20, 95, 153, 243, 164, 173, 255, 203, 128, 128, 128]], [[1, 222, 248, 255, 216, 213, 128, 128, 128, 128, 128], [168, 175, 246, 252, 235, 205, 255, 255, 128, 128, 128], [47, 116, 215, 255, 211, 212, 255, 255, 128, 128, 128]], [[1, 121, 236, 253, 212, 214, 255, 255, 128, 128, 128], [141, 84, 213, 252, 201, 202, 255, 219, 128, 128, 128], [42, 80, 160, 240, 162, 185, 255, 205, 128, 128, 128]], [[1, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [244, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [238, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128]]]], rc = [[[231, 120, 48, 89, 115, 113, 120, 152, 112], [152, 179, 64, 126, 170, 118, 46, 70, 95], [175, 69, 143, 80, 85, 82, 72, 155, 103], [56, 58, 10, 171, 218, 189, 17, 13, 152], [114, 26, 17, 163, 44, 195, 21, 10, 173], [121, 24, 80, 195, 26, 62, 44, 64, 85], [144, 71, 10, 38, 171, 213, 144, 34, 26], [170, 46, 55, 19, 136, 160, 33, 206, 71], [63, 20, 8, 114, 114, 208, 12, 9, 226], [81, 40, 11, 96, 182, 84, 29, 16, 36]], [[134, 183, 89, 137, 98, 101, 106, 165, 148], [72, 187, 100, 130, 157, 111, 32, 75, 80], [66, 102, 167, 99, 74, 62, 40, 234, 128], [41, 53, 9, 178, 241, 141, 26, 8, 107], [74, 43, 26, 146, 73, 166, 49, 23, 157], [65, 38, 105, 160, 51, 52, 31, 115, 128], [104, 79, 12, 27, 217, 255, 87, 17, 7], [87, 68, 71, 44, 114, 51, 15, 186, 23], [47, 41, 14, 110, 182, 183, 21, 17, 194], [66, 45, 25, 102, 197, 189, 23, 18, 22]], [[88, 88, 147, 150, 42, 46, 45, 196, 205], [43, 97, 183, 117, 85, 38, 35, 179, 61], [39, 53, 200, 87, 26, 21, 43, 232, 171], [56, 34, 51, 104, 114, 102, 29, 93, 77], [39, 28, 85, 171, 58, 165, 90, 98, 64], [34, 22, 116, 206, 23, 34, 43, 166, 73], [107, 54, 32, 26, 51, 1, 81, 43, 31], [68, 25, 106, 22, 64, 171, 36, 225, 114], [34, 19, 21, 102, 132, 188, 16, 76, 124], [62, 18, 78, 95, 85, 57, 50, 48, 51]], [[193, 101, 35, 159, 215, 111, 89, 46, 111], [60, 148, 31, 172, 219, 228, 21, 18, 111], [112, 113, 77, 85, 179, 255, 38, 120, 114], [40, 42, 1, 196, 245, 209, 10, 25, 109], [88, 43, 29, 140, 166, 213, 37, 43, 154], [61, 63, 30, 155, 67, 45, 68, 1, 209], [100, 80, 8, 43, 154, 1, 51, 26, 71], [142, 78, 78, 16, 255, 128, 34, 197, 171], [41, 40, 5, 102, 211, 183, 4, 1, 221], [51, 50, 17, 168, 209, 192, 23, 25, 82]], [[138, 31, 36, 171, 27, 166, 38, 44, 229], [67, 87, 58, 169, 82, 115, 26, 59, 179], [63, 59, 90, 180, 59, 166, 93, 73, 154], [40, 40, 21, 116, 143, 209, 34, 39, 175], [47, 15, 16, 183, 34, 223, 49, 45, 183], [46, 17, 33, 183, 6, 98, 15, 32, 183], [57, 46, 22, 24, 128, 1, 54, 17, 37], [65, 32, 73, 115, 28, 128, 23, 128, 205], [40, 3, 9, 115, 51, 192, 18, 6, 223], [87, 37, 9, 115, 59, 77, 64, 21, 47]], [[104, 55, 44, 218, 9, 54, 53, 130, 226], [64, 90, 70, 205, 40, 41, 23, 26, 57], [54, 57, 112, 184, 5, 41, 38, 166, 213], [30, 34, 26, 133, 152, 116, 10, 32, 134], [39, 19, 53, 221, 26, 114, 32, 73, 255], [31, 9, 65, 234, 2, 15, 1, 118, 73], [75, 32, 12, 51, 192, 255, 160, 43, 51], [88, 31, 35, 67, 102, 85, 55, 186, 85], [56, 21, 23, 111, 59, 205, 45, 37, 192], [55, 38, 70, 124, 73, 102, 1, 34, 98]], [[125, 98, 42, 88, 104, 85, 117, 175, 82], [95, 84, 53, 89, 128, 100, 113, 101, 45], [75, 79, 123, 47, 51, 128, 81, 171, 1], [57, 17, 5, 71, 102, 57, 53, 41, 49], [38, 33, 13, 121, 57, 73, 26, 1, 85], [41, 10, 67, 138, 77, 110, 90, 47, 114], [115, 21, 2, 10, 102, 255, 166, 23, 6], [101, 29, 16, 10, 85, 128, 101, 196, 26], [57, 18, 10, 102, 102, 213, 34, 20, 43], [117, 20, 15, 36, 163, 128, 68, 1, 26]], [[102, 61, 71, 37, 34, 53, 31, 243, 192], [69, 60, 71, 38, 73, 119, 28, 222, 37], [68, 45, 128, 34, 1, 47, 11, 245, 171], [62, 17, 19, 70, 146, 85, 55, 62, 70], [37, 43, 37, 154, 100, 163, 85, 160, 1], [63, 9, 92, 136, 28, 64, 32, 201, 85], [75, 15, 9, 9, 64, 255, 184, 119, 16], [86, 6, 28, 5, 64, 255, 25, 248, 1], [56, 8, 17, 132, 137, 255, 55, 116, 128], [58, 15, 20, 82, 135, 57, 26, 121, 40]], [[164, 50, 31, 137, 154, 133, 25, 35, 218], [51, 103, 44, 131, 131, 123, 31, 6, 158], [86, 40, 64, 135, 148, 224, 45, 183, 128], [22, 26, 17, 131, 240, 154, 14, 1, 209], [45, 16, 21, 91, 64, 222, 7, 1, 197], [56, 21, 39, 155, 60, 138, 23, 102, 213], [83, 12, 13, 54, 192, 255, 68, 47, 28], [85, 26, 85, 85, 128, 128, 32, 146, 171], [18, 11, 7, 63, 144, 171, 4, 4, 246], [35, 27, 10, 146, 174, 171, 12, 26, 128]], [[190, 80, 35, 99, 180, 80, 126, 54, 45], [85, 126, 47, 87, 176, 51, 41, 20, 32], [101, 75, 128, 139, 118, 146, 116, 128, 85], [56, 41, 15, 176, 236, 85, 37, 9, 62], [71, 30, 17, 119, 118, 255, 17, 18, 138], [101, 38, 60, 138, 55, 70, 43, 26, 142], [146, 36, 19, 30, 171, 255, 97, 27, 20], [138, 45, 61, 62, 219, 1, 81, 188, 64], [32, 41, 20, 117, 151, 142, 20, 21, 163], [112, 19, 12, 61, 195, 128, 48, 4, 24]]], nc = [[[[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[176, 246, 255, 255, 255, 255, 255, 255, 255, 255, 255], [223, 241, 252, 255, 255, 255, 255, 255, 255, 255, 255], [249, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 244, 252, 255, 255, 255, 255, 255, 255, 255, 255], [234, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 246, 254, 255, 255, 255, 255, 255, 255, 255, 255], [239, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 253, 255, 254, 255, 255, 255, 255, 255, 255], [250, 255, 254, 255, 254, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[217, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [225, 252, 241, 253, 255, 255, 254, 255, 255, 255, 255], [234, 250, 241, 250, 253, 255, 253, 254, 255, 255, 255]], [[255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [223, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [238, 253, 254, 254, 255, 255, 255, 255, 255, 255, 255]], [[255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255], [249, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 255, 255, 255, 255, 255, 255, 255, 255, 255], [247, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [252, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255], [250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[186, 251, 250, 255, 255, 255, 255, 255, 255, 255, 255], [234, 251, 244, 254, 255, 255, 255, 255, 255, 255, 255], [251, 251, 243, 253, 254, 255, 254, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [236, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 253, 253, 254, 254, 255, 255, 255, 255, 255, 255]], [[255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[248, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [250, 254, 252, 254, 255, 255, 255, 255, 255, 255, 255], [248, 254, 249, 253, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255], [246, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255], [252, 254, 251, 254, 254, 255, 255, 255, 255, 255, 255]], [[255, 254, 252, 255, 255, 255, 255, 255, 255, 255, 255], [248, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 254, 254, 255, 255, 255, 255, 255, 255, 255]], [[255, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255], [245, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 251, 253, 255, 255, 255, 255, 255, 255, 255, 255], [252, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 252, 255, 255, 255, 255, 255, 255, 255, 255, 255], [249, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 253, 255, 255, 255, 255, 255, 255, 255, 255], [250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]]], ic = [0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 0], zn = [], Yr = [], Pn = [], ac = 1, Nu = 2, Hn = [], Ur = [];
|
|
7043
|
+
var pi, xa, Aa, Wi, gi, mi, qn, Sn, Un, Gi, hr, cn, ke, Pe, He, Ze, kn, Na, Vi, ts, ou, uu, lu, fu, La, cu, hu, du, pu = a(511), gu = a(2041), mu = a(225), vu = a(767), bu = 0, ao = gu, es = mu, Pr = vu, qr = pu, rs = 0, ns = 1, wu = 2, is = 3, as = 4, so = 5, yu = 6, oo = 7, uo = 8, ss = 9, lo = 10, Vf = [2, 3, 7], Yf = [3, 3, 11], xu = [280, 256, 256, 256, 40], Jf = [0, 1, 1, 1, 0], Xf = [17, 18, 0, 1, 2, 3, 4, 5, 16, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], Kf = [24, 7, 23, 25, 40, 6, 39, 41, 22, 26, 38, 42, 56, 5, 55, 57, 21, 27, 54, 58, 37, 43, 72, 4, 71, 73, 20, 28, 53, 59, 70, 74, 36, 44, 88, 69, 75, 52, 60, 3, 87, 89, 19, 29, 86, 90, 35, 45, 68, 76, 85, 91, 51, 61, 104, 2, 103, 105, 18, 30, 102, 106, 34, 46, 84, 92, 67, 77, 101, 107, 50, 62, 120, 1, 119, 121, 83, 93, 17, 31, 100, 108, 66, 78, 118, 122, 33, 47, 117, 123, 49, 63, 99, 109, 82, 94, 0, 116, 124, 65, 79, 16, 32, 98, 110, 48, 115, 125, 81, 95, 64, 114, 126, 97, 111, 80, 113, 127, 96, 112], $f = [2954, 2956, 2958, 2962, 2970, 2986, 3018, 3082, 3212, 3468, 3980, 5004], Zf = 8, fo = [4, 5, 6, 7, 8, 9, 10, 10, 11, 12, 13, 14, 15, 16, 17, 17, 18, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 25, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 91, 93, 95, 96, 98, 100, 101, 102, 104, 106, 108, 110, 112, 114, 116, 118, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 143, 145, 148, 151, 154, 157], co = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 119, 122, 125, 128, 131, 134, 137, 140, 143, 146, 149, 152, 155, 158, 161, 164, 167, 170, 173, 177, 181, 185, 189, 193, 197, 201, 205, 209, 213, 217, 221, 225, 229, 234, 239, 245, 249, 254, 259, 264, 269, 274, 279, 284], _a = null, Qf = [[173, 148, 140, 0], [176, 155, 140, 135, 0], [180, 157, 141, 134, 130, 0], [254, 254, 243, 230, 196, 177, 153, 140, 133, 130, 129, 0]], tc = [0, 1, 4, 8, 5, 2, 3, 6, 9, 12, 13, 10, 7, 11, 14, 15], Au = [-0, 1, -1, 2, -2, 3, 4, 6, -3, 5, -4, -5, -6, 7, -7, 8, -8, -9], ec = [[[[128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]], [[253, 136, 254, 255, 228, 219, 128, 128, 128, 128, 128], [189, 129, 242, 255, 227, 213, 255, 219, 128, 128, 128], [106, 126, 227, 252, 214, 209, 255, 255, 128, 128, 128]], [[1, 98, 248, 255, 236, 226, 255, 255, 128, 128, 128], [181, 133, 238, 254, 221, 234, 255, 154, 128, 128, 128], [78, 134, 202, 247, 198, 180, 255, 219, 128, 128, 128]], [[1, 185, 249, 255, 243, 255, 128, 128, 128, 128, 128], [184, 150, 247, 255, 236, 224, 128, 128, 128, 128, 128], [77, 110, 216, 255, 236, 230, 128, 128, 128, 128, 128]], [[1, 101, 251, 255, 241, 255, 128, 128, 128, 128, 128], [170, 139, 241, 252, 236, 209, 255, 255, 128, 128, 128], [37, 116, 196, 243, 228, 255, 255, 255, 128, 128, 128]], [[1, 204, 254, 255, 245, 255, 128, 128, 128, 128, 128], [207, 160, 250, 255, 238, 128, 128, 128, 128, 128, 128], [102, 103, 231, 255, 211, 171, 128, 128, 128, 128, 128]], [[1, 152, 252, 255, 240, 255, 128, 128, 128, 128, 128], [177, 135, 243, 255, 234, 225, 128, 128, 128, 128, 128], [80, 129, 211, 255, 194, 224, 128, 128, 128, 128, 128]], [[1, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [246, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [255, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]]], [[[198, 35, 237, 223, 193, 187, 162, 160, 145, 155, 62], [131, 45, 198, 221, 172, 176, 220, 157, 252, 221, 1], [68, 47, 146, 208, 149, 167, 221, 162, 255, 223, 128]], [[1, 149, 241, 255, 221, 224, 255, 255, 128, 128, 128], [184, 141, 234, 253, 222, 220, 255, 199, 128, 128, 128], [81, 99, 181, 242, 176, 190, 249, 202, 255, 255, 128]], [[1, 129, 232, 253, 214, 197, 242, 196, 255, 255, 128], [99, 121, 210, 250, 201, 198, 255, 202, 128, 128, 128], [23, 91, 163, 242, 170, 187, 247, 210, 255, 255, 128]], [[1, 200, 246, 255, 234, 255, 128, 128, 128, 128, 128], [109, 178, 241, 255, 231, 245, 255, 255, 128, 128, 128], [44, 130, 201, 253, 205, 192, 255, 255, 128, 128, 128]], [[1, 132, 239, 251, 219, 209, 255, 165, 128, 128, 128], [94, 136, 225, 251, 218, 190, 255, 255, 128, 128, 128], [22, 100, 174, 245, 186, 161, 255, 199, 128, 128, 128]], [[1, 182, 249, 255, 232, 235, 128, 128, 128, 128, 128], [124, 143, 241, 255, 227, 234, 128, 128, 128, 128, 128], [35, 77, 181, 251, 193, 211, 255, 205, 128, 128, 128]], [[1, 157, 247, 255, 236, 231, 255, 255, 128, 128, 128], [121, 141, 235, 255, 225, 227, 255, 255, 128, 128, 128], [45, 99, 188, 251, 195, 217, 255, 224, 128, 128, 128]], [[1, 1, 251, 255, 213, 255, 128, 128, 128, 128, 128], [203, 1, 248, 255, 255, 128, 128, 128, 128, 128, 128], [137, 1, 177, 255, 224, 255, 128, 128, 128, 128, 128]]], [[[253, 9, 248, 251, 207, 208, 255, 192, 128, 128, 128], [175, 13, 224, 243, 193, 185, 249, 198, 255, 255, 128], [73, 17, 171, 221, 161, 179, 236, 167, 255, 234, 128]], [[1, 95, 247, 253, 212, 183, 255, 255, 128, 128, 128], [239, 90, 244, 250, 211, 209, 255, 255, 128, 128, 128], [155, 77, 195, 248, 188, 195, 255, 255, 128, 128, 128]], [[1, 24, 239, 251, 218, 219, 255, 205, 128, 128, 128], [201, 51, 219, 255, 196, 186, 128, 128, 128, 128, 128], [69, 46, 190, 239, 201, 218, 255, 228, 128, 128, 128]], [[1, 191, 251, 255, 255, 128, 128, 128, 128, 128, 128], [223, 165, 249, 255, 213, 255, 128, 128, 128, 128, 128], [141, 124, 248, 255, 255, 128, 128, 128, 128, 128, 128]], [[1, 16, 248, 255, 255, 128, 128, 128, 128, 128, 128], [190, 36, 230, 255, 236, 255, 128, 128, 128, 128, 128], [149, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[1, 226, 255, 128, 128, 128, 128, 128, 128, 128, 128], [247, 192, 255, 128, 128, 128, 128, 128, 128, 128, 128], [240, 128, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[1, 134, 252, 255, 255, 128, 128, 128, 128, 128, 128], [213, 62, 250, 255, 255, 128, 128, 128, 128, 128, 128], [55, 93, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]]], [[[202, 24, 213, 235, 186, 191, 220, 160, 240, 175, 255], [126, 38, 182, 232, 169, 184, 228, 174, 255, 187, 128], [61, 46, 138, 219, 151, 178, 240, 170, 255, 216, 128]], [[1, 112, 230, 250, 199, 191, 247, 159, 255, 255, 128], [166, 109, 228, 252, 211, 215, 255, 174, 128, 128, 128], [39, 77, 162, 232, 172, 180, 245, 178, 255, 255, 128]], [[1, 52, 220, 246, 198, 199, 249, 220, 255, 255, 128], [124, 74, 191, 243, 183, 193, 250, 221, 255, 255, 128], [24, 71, 130, 219, 154, 170, 243, 182, 255, 255, 128]], [[1, 182, 225, 249, 219, 240, 255, 224, 128, 128, 128], [149, 150, 226, 252, 216, 205, 255, 171, 128, 128, 128], [28, 108, 170, 242, 183, 194, 254, 223, 255, 255, 128]], [[1, 81, 230, 252, 204, 203, 255, 192, 128, 128, 128], [123, 102, 209, 247, 188, 196, 255, 233, 128, 128, 128], [20, 95, 153, 243, 164, 173, 255, 203, 128, 128, 128]], [[1, 222, 248, 255, 216, 213, 128, 128, 128, 128, 128], [168, 175, 246, 252, 235, 205, 255, 255, 128, 128, 128], [47, 116, 215, 255, 211, 212, 255, 255, 128, 128, 128]], [[1, 121, 236, 253, 212, 214, 255, 255, 128, 128, 128], [141, 84, 213, 252, 201, 202, 255, 219, 128, 128, 128], [42, 80, 160, 240, 162, 185, 255, 205, 128, 128, 128]], [[1, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [244, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [238, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128]]]], rc = [[[231, 120, 48, 89, 115, 113, 120, 152, 112], [152, 179, 64, 126, 170, 118, 46, 70, 95], [175, 69, 143, 80, 85, 82, 72, 155, 103], [56, 58, 10, 171, 218, 189, 17, 13, 152], [114, 26, 17, 163, 44, 195, 21, 10, 173], [121, 24, 80, 195, 26, 62, 44, 64, 85], [144, 71, 10, 38, 171, 213, 144, 34, 26], [170, 46, 55, 19, 136, 160, 33, 206, 71], [63, 20, 8, 114, 114, 208, 12, 9, 226], [81, 40, 11, 96, 182, 84, 29, 16, 36]], [[134, 183, 89, 137, 98, 101, 106, 165, 148], [72, 187, 100, 130, 157, 111, 32, 75, 80], [66, 102, 167, 99, 74, 62, 40, 234, 128], [41, 53, 9, 178, 241, 141, 26, 8, 107], [74, 43, 26, 146, 73, 166, 49, 23, 157], [65, 38, 105, 160, 51, 52, 31, 115, 128], [104, 79, 12, 27, 217, 255, 87, 17, 7], [87, 68, 71, 44, 114, 51, 15, 186, 23], [47, 41, 14, 110, 182, 183, 21, 17, 194], [66, 45, 25, 102, 197, 189, 23, 18, 22]], [[88, 88, 147, 150, 42, 46, 45, 196, 205], [43, 97, 183, 117, 85, 38, 35, 179, 61], [39, 53, 200, 87, 26, 21, 43, 232, 171], [56, 34, 51, 104, 114, 102, 29, 93, 77], [39, 28, 85, 171, 58, 165, 90, 98, 64], [34, 22, 116, 206, 23, 34, 43, 166, 73], [107, 54, 32, 26, 51, 1, 81, 43, 31], [68, 25, 106, 22, 64, 171, 36, 225, 114], [34, 19, 21, 102, 132, 188, 16, 76, 124], [62, 18, 78, 95, 85, 57, 50, 48, 51]], [[193, 101, 35, 159, 215, 111, 89, 46, 111], [60, 148, 31, 172, 219, 228, 21, 18, 111], [112, 113, 77, 85, 179, 255, 38, 120, 114], [40, 42, 1, 196, 245, 209, 10, 25, 109], [88, 43, 29, 140, 166, 213, 37, 43, 154], [61, 63, 30, 155, 67, 45, 68, 1, 209], [100, 80, 8, 43, 154, 1, 51, 26, 71], [142, 78, 78, 16, 255, 128, 34, 197, 171], [41, 40, 5, 102, 211, 183, 4, 1, 221], [51, 50, 17, 168, 209, 192, 23, 25, 82]], [[138, 31, 36, 171, 27, 166, 38, 44, 229], [67, 87, 58, 169, 82, 115, 26, 59, 179], [63, 59, 90, 180, 59, 166, 93, 73, 154], [40, 40, 21, 116, 143, 209, 34, 39, 175], [47, 15, 16, 183, 34, 223, 49, 45, 183], [46, 17, 33, 183, 6, 98, 15, 32, 183], [57, 46, 22, 24, 128, 1, 54, 17, 37], [65, 32, 73, 115, 28, 128, 23, 128, 205], [40, 3, 9, 115, 51, 192, 18, 6, 223], [87, 37, 9, 115, 59, 77, 64, 21, 47]], [[104, 55, 44, 218, 9, 54, 53, 130, 226], [64, 90, 70, 205, 40, 41, 23, 26, 57], [54, 57, 112, 184, 5, 41, 38, 166, 213], [30, 34, 26, 133, 152, 116, 10, 32, 134], [39, 19, 53, 221, 26, 114, 32, 73, 255], [31, 9, 65, 234, 2, 15, 1, 118, 73], [75, 32, 12, 51, 192, 255, 160, 43, 51], [88, 31, 35, 67, 102, 85, 55, 186, 85], [56, 21, 23, 111, 59, 205, 45, 37, 192], [55, 38, 70, 124, 73, 102, 1, 34, 98]], [[125, 98, 42, 88, 104, 85, 117, 175, 82], [95, 84, 53, 89, 128, 100, 113, 101, 45], [75, 79, 123, 47, 51, 128, 81, 171, 1], [57, 17, 5, 71, 102, 57, 53, 41, 49], [38, 33, 13, 121, 57, 73, 26, 1, 85], [41, 10, 67, 138, 77, 110, 90, 47, 114], [115, 21, 2, 10, 102, 255, 166, 23, 6], [101, 29, 16, 10, 85, 128, 101, 196, 26], [57, 18, 10, 102, 102, 213, 34, 20, 43], [117, 20, 15, 36, 163, 128, 68, 1, 26]], [[102, 61, 71, 37, 34, 53, 31, 243, 192], [69, 60, 71, 38, 73, 119, 28, 222, 37], [68, 45, 128, 34, 1, 47, 11, 245, 171], [62, 17, 19, 70, 146, 85, 55, 62, 70], [37, 43, 37, 154, 100, 163, 85, 160, 1], [63, 9, 92, 136, 28, 64, 32, 201, 85], [75, 15, 9, 9, 64, 255, 184, 119, 16], [86, 6, 28, 5, 64, 255, 25, 248, 1], [56, 8, 17, 132, 137, 255, 55, 116, 128], [58, 15, 20, 82, 135, 57, 26, 121, 40]], [[164, 50, 31, 137, 154, 133, 25, 35, 218], [51, 103, 44, 131, 131, 123, 31, 6, 158], [86, 40, 64, 135, 148, 224, 45, 183, 128], [22, 26, 17, 131, 240, 154, 14, 1, 209], [45, 16, 21, 91, 64, 222, 7, 1, 197], [56, 21, 39, 155, 60, 138, 23, 102, 213], [83, 12, 13, 54, 192, 255, 68, 47, 28], [85, 26, 85, 85, 128, 128, 32, 146, 171], [18, 11, 7, 63, 144, 171, 4, 4, 246], [35, 27, 10, 146, 174, 171, 12, 26, 128]], [[190, 80, 35, 99, 180, 80, 126, 54, 45], [85, 126, 47, 87, 176, 51, 41, 20, 32], [101, 75, 128, 139, 118, 146, 116, 128, 85], [56, 41, 15, 176, 236, 85, 37, 9, 62], [71, 30, 17, 119, 118, 255, 17, 18, 138], [101, 38, 60, 138, 55, 70, 43, 26, 142], [146, 36, 19, 30, 171, 255, 97, 27, 20], [138, 45, 61, 62, 219, 1, 81, 188, 64], [32, 41, 20, 117, 151, 142, 20, 21, 163], [112, 19, 12, 61, 195, 128, 48, 4, 24]]], nc = [[[[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[176, 246, 255, 255, 255, 255, 255, 255, 255, 255, 255], [223, 241, 252, 255, 255, 255, 255, 255, 255, 255, 255], [249, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 244, 252, 255, 255, 255, 255, 255, 255, 255, 255], [234, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 246, 254, 255, 255, 255, 255, 255, 255, 255, 255], [239, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 253, 255, 254, 255, 255, 255, 255, 255, 255], [250, 255, 254, 255, 254, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[217, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [225, 252, 241, 253, 255, 255, 254, 255, 255, 255, 255], [234, 250, 241, 250, 253, 255, 253, 254, 255, 255, 255]], [[255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [223, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [238, 253, 254, 254, 255, 255, 255, 255, 255, 255, 255]], [[255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255], [249, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 255, 255, 255, 255, 255, 255, 255, 255, 255], [247, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [252, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255], [250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[186, 251, 250, 255, 255, 255, 255, 255, 255, 255, 255], [234, 251, 244, 254, 255, 255, 255, 255, 255, 255, 255], [251, 251, 243, 253, 254, 255, 254, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [236, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 253, 253, 254, 254, 255, 255, 255, 255, 255, 255]], [[255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[248, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [250, 254, 252, 254, 255, 255, 255, 255, 255, 255, 255], [248, 254, 249, 253, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255], [246, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255], [252, 254, 251, 254, 254, 255, 255, 255, 255, 255, 255]], [[255, 254, 252, 255, 255, 255, 255, 255, 255, 255, 255], [248, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 254, 254, 255, 255, 255, 255, 255, 255, 255]], [[255, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255], [245, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 251, 253, 255, 255, 255, 255, 255, 255, 255, 255], [252, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 252, 255, 255, 255, 255, 255, 255, 255, 255, 255], [249, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 253, 255, 255, 255, 255, 255, 255, 255, 255], [250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]]], ic = [0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 0], zn = [], Yr = [], Pn = [], ac = 1, Nu = 2, Hn = [], Ur = [];
|
|
7044
7044
|
fr("UpsampleRgbLinePair", ui, 3), fr("UpsampleBgrLinePair", Ti, 3), fr("UpsampleRgbaLinePair", ba, 4), fr("UpsampleBgraLinePair", fi, 4), fr("UpsampleArgbLinePair", li, 4), fr("UpsampleRgba4444LinePair", cr, 2), fr("UpsampleRgb565LinePair", Di, 2);
|
|
7045
7045
|
var sc = R.UpsampleRgbLinePair, oc = R.UpsampleBgrLinePair, Lu = R.UpsampleRgbaLinePair, _u = R.UpsampleBgraLinePair, Su = R.UpsampleArgbLinePair, ku = R.UpsampleRgba4444LinePair, uc = R.UpsampleRgb565LinePair, os = 16, us = 1 << os - 1, Sa = -227, ho = 482, lc = 6, Pu = 0, fc = a(256), cc = a(256), hc = a(256), dc = a(256), pc = a(ho - Sa), gc = a(ho - Sa);
|
|
7046
7046
|
ln("YuvToRgbRow", ui, 3), ln("YuvToBgrRow", Ti, 3), ln("YuvToRgbaRow", ba, 4), ln("YuvToBgraRow", fi, 4), ln("YuvToArgbRow", li, 4), ln("YuvToRgba4444Row", cr, 2), ln("YuvToRgb565Row", Di, 2);
|
|
@@ -7054,7 +7054,7 @@ function $l(r) {
|
|
|
7054
7054
|
if (et != 0 ? S = 0 : (S != null && (S[0] = W.width[0]), E != null && (E[0] = W.height[0]), S = 1), S) {
|
|
7055
7055
|
L.width = L.width[0], L.height = L.height[0], m != null && (m[0] = L.width), b != null && (b[0] = L.height);
|
|
7056
7056
|
t: {
|
|
7057
|
-
if (m = new Mi(), (b = new
|
|
7057
|
+
if (m = new Mi(), (b = new X()).data = i, b.w = o, b.ha = h, b.kd = 1, o = [0], t(b != null), ((i = Qa(b.data, b.w, b.ha, null, null, null, o, null, b)) == 0 || i == 7) && o[0] && (i = 4), (o = i) == 0) {
|
|
7058
7058
|
if (t(y != null), m.data = b.data, m.w = b.w + b.offset, m.ha = b.ha - b.offset, m.put = Vt, m.ac = en, m.bc = bn, m.ma = y, b.xa) {
|
|
7059
7059
|
if ((i = ei()) == null) {
|
|
7060
7060
|
y = 1;
|
|
@@ -7120,7 +7120,7 @@ function $l(r) {
|
|
|
7120
7120
|
}
|
|
7121
7121
|
(function(C, V) {
|
|
7122
7122
|
if (C == null) return 0;
|
|
7123
|
-
if (V == null) return
|
|
7123
|
+
if (V == null) return Xe(C, 2, "NULL VP8Io parameter in VP8Decode().");
|
|
7124
7124
|
if (!C.cb && !sn(C, V)) return 0;
|
|
7125
7125
|
if (t(C.cb), V.ac == null || V.ac(V)) {
|
|
7126
7126
|
V.ob && (C.L = 0);
|
|
@@ -7144,7 +7144,7 @@ function $l(r) {
|
|
|
7144
7144
|
}
|
|
7145
7145
|
}
|
|
7146
7146
|
$ = 0;
|
|
7147
|
-
} else
|
|
7147
|
+
} else Xe(C, 6, "Frame setup failed"), $ = C.a;
|
|
7148
7148
|
if ($ = $ == 0) {
|
|
7149
7149
|
if ($) {
|
|
7150
7150
|
C.$c = 0, 0 < C.Aa || (C.Ic = vc);
|
|
@@ -7155,7 +7155,7 @@ function $l(r) {
|
|
|
7155
7155
|
else {
|
|
7156
7156
|
if (pt > C.Vb) {
|
|
7157
7157
|
if (C.Vb = 0, C.Ec = a(pt), C.Fc = 0, C.Ec == null) {
|
|
7158
|
-
$ =
|
|
7158
|
+
$ = Xe(C, 1, "no memory during frame initialization.");
|
|
7159
7159
|
break e;
|
|
7160
7160
|
}
|
|
7161
7161
|
C.Vb = pt;
|
|
@@ -7171,12 +7171,12 @@ function $l(r) {
|
|
|
7171
7171
|
for ($ = -255; 510 >= $; ++$) vu[255 + $] = 0 > $ ? 0 : 255 < $ ? 255 : $;
|
|
7172
7172
|
bu = 1;
|
|
7173
7173
|
}
|
|
7174
|
-
qn = Ga, Sn = zs, Gi = Hs, hr = Ws, cn = on, Un = Wa, ke =
|
|
7174
|
+
qn = Ga, Sn = zs, Gi = Hs, hr = Ws, cn = on, Un = Wa, ke = Ja, Pe = Xa, He = $a, Ze = l, kn = Ka, Na = ai, Vi = v, ts = I, ou = Bi, uu = ma, lu = Ri, fu = Ya, Yr[0] = $s, Yr[1] = Fi, Yr[2] = Xs, Yr[3] = Ks, Yr[4] = Zs, Yr[5] = xn, Yr[6] = Qs, Yr[7] = An, Yr[8] = eo, Yr[9] = to, zn[0] = Va, zn[1] = Gs, zn[2] = Vs, zn[3] = Ys, zn[4] = On, zn[5] = Js, zn[6] = ni, Pn[0] = ro, Pn[1] = ca, Pn[2] = ji, Pn[3] = ha, Pn[4] = no, Pn[5] = Oi, Pn[6] = da, $ = 1;
|
|
7175
7175
|
} else $ = 0;
|
|
7176
7176
|
}
|
|
7177
7177
|
$ && ($ = (function(he, Qe) {
|
|
7178
7178
|
for (he.M = 0; he.M < he.Va; ++he.M) {
|
|
7179
|
-
var ie,
|
|
7179
|
+
var ie, jt = he.Jc[he.M & he.Xb], Lt = he.m, We = he;
|
|
7180
7180
|
for (ie = 0; ie < We.za; ++ie) {
|
|
7181
7181
|
var ee = Lt, pe = We, Ee = pe.Ac, sr = pe.Bc + 4 * ie, yr = pe.zc, De = pe.ya[pe.aa + ie];
|
|
7182
7182
|
if (pe.Qa.Bb ? De.$b = gt(ee, pe.Pa.jb[0]) ? 2 + gt(ee, pe.Pa.jb[2]) : gt(ee, pe.Pa.jb[1]) : De.$b = 0, pe.kc && (De.Ad = gt(ee, pe.Bd)), De.Za = !gt(ee, 145) + 0, De.Za) {
|
|
@@ -7193,12 +7193,12 @@ function $l(r) {
|
|
|
7193
7193
|
} else me = gt(ee, 156) ? gt(ee, 128) ? 1 : 3 : gt(ee, 163) ? 2 : 0, De.Ob[0] = me, s(Ee, sr, me, 4), s(yr, 0, me, 4);
|
|
7194
7194
|
De.Dd = gt(ee, 142) ? gt(ee, 114) ? gt(ee, 183) ? 1 : 3 : 2 : 0;
|
|
7195
7195
|
}
|
|
7196
|
-
if (We.m.Ka) return
|
|
7196
|
+
if (We.m.Ka) return Xe(he, 7, "Premature end-of-partition0 encountered.");
|
|
7197
7197
|
for (; he.ja < he.za; ++he.ja) {
|
|
7198
|
-
if (We =
|
|
7198
|
+
if (We = jt, ee = (Lt = he).rb[Lt.sb - 1], Ee = Lt.rb[Lt.sb + Lt.ja], ie = Lt.ya[Lt.aa + Lt.ja], sr = Lt.kc ? ie.Ad : 0) ee.la = Ee.la = 0, ie.Za || (ee.Na = Ee.Na = 0), ie.Hc = 0, ie.Gc = 0, ie.ia = 0;
|
|
7199
7199
|
else {
|
|
7200
7200
|
var qe, ye;
|
|
7201
|
-
if (ee = Ee, Ee = We, sr = Lt.Pa.Xc, yr = Lt.ya[Lt.aa + Lt.ja], De = Lt.pb[yr.$b], pe = yr.ad, dr = 0, xr = Lt.rb[Lt.sb - 1], me = tr = 0, s(pe, dr, 0, 384), yr.Za) var or = 0,
|
|
7201
|
+
if (ee = Ee, Ee = We, sr = Lt.Pa.Xc, yr = Lt.ya[Lt.aa + Lt.ja], De = Lt.pb[yr.$b], pe = yr.ad, dr = 0, xr = Lt.rb[Lt.sb - 1], me = tr = 0, s(pe, dr, 0, 384), yr.Za) var or = 0, Jr = sr[3];
|
|
7202
7202
|
else {
|
|
7203
7203
|
we = a(16);
|
|
7204
7204
|
var Ge = ee.Na + xr.Na;
|
|
@@ -7207,47 +7207,47 @@ function $l(r) {
|
|
|
7207
7207
|
var Lr = we[0] + 3 >> 3;
|
|
7208
7208
|
for (we = 0; 256 > we; we += 16) pe[dr + we] = Lr;
|
|
7209
7209
|
}
|
|
7210
|
-
or = 1,
|
|
7210
|
+
or = 1, Jr = sr[0];
|
|
7211
7211
|
}
|
|
7212
7212
|
var Le = 15 & ee.la, er = 15 & xr.la;
|
|
7213
7213
|
for (we = 0; 4 > we; ++we) {
|
|
7214
7214
|
var Mr = 1 & er;
|
|
7215
|
-
for (Lr = ye = 0; 4 > Lr; ++Lr) Le = Le >> 1 | (Mr = (Ge = _a(Ee,
|
|
7215
|
+
for (Lr = ye = 0; 4 > Lr; ++Lr) Le = Le >> 1 | (Mr = (Ge = _a(Ee, Jr, Ge = Mr + (1 & Le), De.Sc, or, pe, dr)) > or) << 7, ye = ye << 2 | (3 < Ge ? 3 : 1 < Ge ? 2 : pe[dr + 0] != 0), dr += 16;
|
|
7216
7216
|
Le >>= 4, er = er >> 1 | Mr << 7, tr = (tr << 8 | ye) >>> 0;
|
|
7217
7217
|
}
|
|
7218
|
-
for (
|
|
7218
|
+
for (Jr = Le, or = er >> 4, qe = 0; 4 > qe; qe += 2) {
|
|
7219
7219
|
for (ye = 0, Le = ee.la >> 4 + qe, er = xr.la >> 4 + qe, we = 0; 2 > we; ++we) {
|
|
7220
7220
|
for (Mr = 1 & er, Lr = 0; 2 > Lr; ++Lr) Ge = Mr + (1 & Le), Le = Le >> 1 | (Mr = 0 < (Ge = _a(Ee, sr[2], Ge, De.Qc, 0, pe, dr))) << 3, ye = ye << 2 | (3 < Ge ? 3 : 1 < Ge ? 2 : pe[dr + 0] != 0), dr += 16;
|
|
7221
7221
|
Le >>= 2, er = er >> 1 | Mr << 5;
|
|
7222
7222
|
}
|
|
7223
|
-
me |= ye << 4 * qe,
|
|
7223
|
+
me |= ye << 4 * qe, Jr |= Le << 4 << qe, or |= (240 & er) << qe;
|
|
7224
7224
|
}
|
|
7225
|
-
ee.la =
|
|
7225
|
+
ee.la = Jr, xr.la = or, yr.Hc = tr, yr.Gc = me, yr.ia = 43690 & me ? 0 : De.ia, sr = !(tr | me);
|
|
7226
7226
|
}
|
|
7227
|
-
if (0 < Lt.L && (Lt.wa[Lt.Y + Lt.ja] = Lt.gd[ie.$b][ie.Za], Lt.wa[Lt.Y + Lt.ja].La |= !sr), We.Ka) return
|
|
7227
|
+
if (0 < Lt.L && (Lt.wa[Lt.Y + Lt.ja] = Lt.gd[ie.$b][ie.Za], Lt.wa[Lt.Y + Lt.ja].La |= !sr), We.Ka) return Xe(he, 7, "Premature end-of-file encountered.");
|
|
7228
7228
|
}
|
|
7229
|
-
if (fa(he), Lt = Qe, We = 1, ie = (
|
|
7230
|
-
if (ie.M =
|
|
7231
|
-
or = ye,
|
|
7229
|
+
if (fa(he), Lt = Qe, We = 1, ie = (jt = he).D, ee = 0 < jt.L && jt.M >= jt.zb && jt.M <= jt.Va, jt.Aa == 0) e: {
|
|
7230
|
+
if (ie.M = jt.M, ie.uc = ee, qi(jt, ie), We = 1, ie = (ye = jt.D).Nb, ee = (me = ls[jt.L]) * jt.R, Ee = me / 2 * jt.B, we = 16 * ie * jt.R, Lr = 8 * ie * jt.B, sr = jt.sa, yr = jt.ta - ee + we, De = jt.qa, pe = jt.ra - Ee + Lr, dr = jt.Ha, xr = jt.Ia - Ee + Lr, er = (Le = ye.M) == 0, tr = Le >= jt.Va - 1, jt.Aa == 2 && qi(jt, ye), ye.uc) for (Mr = (Ge = jt).D.M, t(Ge.D.uc), ye = Ge.yb; ye < Ge.Hb; ++ye) {
|
|
7231
|
+
or = ye, Jr = Mr;
|
|
7232
7232
|
var Ar = (Ir = (ur = Ge).D).Nb;
|
|
7233
7233
|
qe = ur.R;
|
|
7234
7234
|
var Ir = Ir.wa[Ir.Y + or], Er = ur.sa, _r = ur.ta + 16 * Ar * qe + 16 * or, Cr = Ir.dd, Me = Ir.tc;
|
|
7235
|
-
if (Me != 0) if (t(3 <= Me), ur.L == 1) 0 < or && uu(Er, _r, qe, Me + 4), Ir.La && fu(Er, _r, qe, Me), 0 <
|
|
7235
|
+
if (Me != 0) if (t(3 <= Me), ur.L == 1) 0 < or && uu(Er, _r, qe, Me + 4), Ir.La && fu(Er, _r, qe, Me), 0 < Jr && ou(Er, _r, qe, Me + 4), Ir.La && lu(Er, _r, qe, Me);
|
|
7236
7236
|
else {
|
|
7237
|
-
var Fr = ur.B,
|
|
7238
|
-
Ar = Ir.ld, 0 < or && (Pe(Er, _r, qe, Me + 4, Cr, Ar), Ze(
|
|
7237
|
+
var Fr = ur.B, Xr = ur.qa, vi = ur.ra + 8 * Ar * Fr + 8 * or, Mn = ur.Ha, ur = ur.Ia + 8 * Ar * Fr + 8 * or;
|
|
7238
|
+
Ar = Ir.ld, 0 < or && (Pe(Er, _r, qe, Me + 4, Cr, Ar), Ze(Xr, vi, Mn, ur, Fr, Me + 4, Cr, Ar)), Ir.La && (Na(Er, _r, qe, Me, Cr, Ar), ts(Xr, vi, Mn, ur, Fr, Me, Cr, Ar)), 0 < Jr && (ke(Er, _r, qe, Me + 4, Cr, Ar), He(Xr, vi, Mn, ur, Fr, Me + 4, Cr, Ar)), Ir.La && (kn(Er, _r, qe, Me, Cr, Ar), Vi(Xr, vi, Mn, ur, Fr, Me, Cr, Ar));
|
|
7239
7239
|
}
|
|
7240
7240
|
}
|
|
7241
|
-
if (
|
|
7242
|
-
if (ye = 16 * Le, Le = 16 * (Le + 1), er ? (Lt.y =
|
|
7243
|
-
We =
|
|
7241
|
+
if (jt.ia && alert("todo:DitherRow"), Lt.put != null) {
|
|
7242
|
+
if (ye = 16 * Le, Le = 16 * (Le + 1), er ? (Lt.y = jt.sa, Lt.O = jt.ta + we, Lt.f = jt.qa, Lt.N = jt.ra + Lr, Lt.ea = jt.Ha, Lt.W = jt.Ia + Lr) : (ye -= me, Lt.y = sr, Lt.O = yr, Lt.f = De, Lt.N = pe, Lt.ea = dr, Lt.W = xr), tr || (Le -= me), Le > Lt.o && (Le = Lt.o), Lt.F = null, Lt.J = null, jt.Fa != null && 0 < jt.Fa.length && ye < Le && (Lt.J = Ke(jt, Lt, ye, Le - ye), Lt.F = jt.mb, Lt.F == null && Lt.F.length == 0)) {
|
|
7243
|
+
We = Xe(jt, 3, "Could not decode alpha data.");
|
|
7244
7244
|
break e;
|
|
7245
7245
|
}
|
|
7246
|
-
ye < Lt.j && (me = Lt.j - ye, ye = Lt.j, t(!(1 & me)), Lt.O +=
|
|
7246
|
+
ye < Lt.j && (me = Lt.j - ye, ye = Lt.j, t(!(1 & me)), Lt.O += jt.R * me, Lt.N += jt.B * (me >> 1), Lt.W += jt.B * (me >> 1), Lt.F != null && (Lt.J += Lt.width * me)), ye < Le && (Lt.O += Lt.v, Lt.N += Lt.v >> 1, Lt.W += Lt.v >> 1, Lt.F != null && (Lt.J += Lt.v), Lt.ka = ye - Lt.j, Lt.U = Lt.va - Lt.v, Lt.T = Le - ye, We = Lt.put(Lt));
|
|
7247
7247
|
}
|
|
7248
|
-
ie + 1 !=
|
|
7248
|
+
ie + 1 != jt.Ic || tr || (n(jt.sa, jt.ta - ee, sr, yr + 16 * jt.R, ee), n(jt.qa, jt.ra - Ee, De, pe + 8 * jt.B, Ee), n(jt.Ha, jt.Ia - Ee, dr, xr + 8 * jt.B, Ee));
|
|
7249
7249
|
}
|
|
7250
|
-
if (!We) return
|
|
7250
|
+
if (!We) return Xe(he, 6, "Output aborted.");
|
|
7251
7251
|
}
|
|
7252
7252
|
return 1;
|
|
7253
7253
|
})(C, V)), V.bc != null && V.bc(V), $ &= 1;
|
|
@@ -7281,7 +7281,7 @@ function $l(r) {
|
|
|
7281
7281
|
return (R[tt + 0] | R[tt + 1] << 8 | R[tt + 2] << 16 | R[tt + 3] << 24) >>> 0;
|
|
7282
7282
|
}
|
|
7283
7283
|
new f();
|
|
7284
|
-
var p = [0],
|
|
7284
|
+
var p = [0], j = [0], P = [], B = new f(), k = r, G = (function(R, tt) {
|
|
7285
7285
|
var _ = {}, F = 0, z = !1, U = 0, nt = 0;
|
|
7286
7286
|
if (_.frames = [], !/** @license
|
|
7287
7287
|
* Copyright (c) 2017 Dominik Homberger
|
|
@@ -7291,8 +7291,8 @@ function $l(r) {
|
|
|
7291
7291
|
https://webpjs.appspot.com
|
|
7292
7292
|
WebPRiffParser dominikhlbg@gmail.com
|
|
7293
7293
|
*/
|
|
7294
|
-
(function(A,
|
|
7295
|
-
for (var T = 0; T < 4; T++) if (A[
|
|
7294
|
+
(function(A, O) {
|
|
7295
|
+
for (var T = 0; T < 4; T++) if (A[O + T] != "RIFF".charCodeAt(T)) return !0;
|
|
7296
7296
|
return !1;
|
|
7297
7297
|
})(R, tt)) {
|
|
7298
7298
|
for (N(R, tt += 4), tt += 8; tt < R.length; ) {
|
|
@@ -7327,13 +7327,13 @@ function $l(r) {
|
|
|
7327
7327
|
G.response = k, G.rgbaoutput = !0, G.dataurl = !1;
|
|
7328
7328
|
var Y = G.header ? G.header : null, q = G.frames ? G.frames : null;
|
|
7329
7329
|
if (Y) {
|
|
7330
|
-
Y.loop_counter = Y.loop_count, p = [Y.canvas_height],
|
|
7330
|
+
Y.loop_counter = Y.loop_count, p = [Y.canvas_height], j = [Y.canvas_width];
|
|
7331
7331
|
for (var it = 0; it < q.length && q[it].blend != 0; it++) ;
|
|
7332
7332
|
}
|
|
7333
|
-
var mt = q[0], dt = B.WebPDecodeRGBA(k, mt.src_off, mt.src_size,
|
|
7334
|
-
mt.rgba = dt, mt.imgwidth =
|
|
7335
|
-
for (var K = 0; K <
|
|
7336
|
-
return this.width =
|
|
7333
|
+
var mt = q[0], dt = B.WebPDecodeRGBA(k, mt.src_off, mt.src_size, j, p);
|
|
7334
|
+
mt.rgba = dt, mt.imgwidth = j[0], mt.imgheight = p[0];
|
|
7335
|
+
for (var K = 0; K < j[0] * p[0] * 4; K++) P[K] = dt[K];
|
|
7336
|
+
return this.width = j, this.height = p, this.data = P, this;
|
|
7337
7337
|
}
|
|
7338
7338
|
function a2() {
|
|
7339
7339
|
var r, t = this.internal.__metadata__.metadata, e = unescape(encodeURIComponent(t));
|
|
@@ -7353,9 +7353,9 @@ function s2() {
|
|
|
7353
7353
|
Object.defineProperty(this, "canvas", { get: function() {
|
|
7354
7354
|
return { parentNode: !1, style: !1 };
|
|
7355
7355
|
} });
|
|
7356
|
-
var
|
|
7356
|
+
var O = A;
|
|
7357
7357
|
Object.defineProperty(this, "pdf", { get: function() {
|
|
7358
|
-
return
|
|
7358
|
+
return O;
|
|
7359
7359
|
} });
|
|
7360
7360
|
var T = !1;
|
|
7361
7361
|
Object.defineProperty(this, "pageWrapXEnabled", { get: function() {
|
|
@@ -7369,11 +7369,11 @@ function s2() {
|
|
|
7369
7369
|
}, set: function(M) {
|
|
7370
7370
|
H = !!M;
|
|
7371
7371
|
} });
|
|
7372
|
-
var
|
|
7372
|
+
var J = 0;
|
|
7373
7373
|
Object.defineProperty(this, "posX", { get: function() {
|
|
7374
|
-
return
|
|
7374
|
+
return J;
|
|
7375
7375
|
}, set: function(M) {
|
|
7376
|
-
isNaN(M) || (
|
|
7376
|
+
isNaN(M) || (J = M);
|
|
7377
7377
|
} });
|
|
7378
7378
|
var Z = 0;
|
|
7379
7379
|
Object.defineProperty(this, "posY", { get: function() {
|
|
@@ -7515,8 +7515,8 @@ function s2() {
|
|
|
7515
7515
|
})(ge);
|
|
7516
7516
|
kt = (function(Fe) {
|
|
7517
7517
|
for (var Ut = {}, Se = 0; Se < Fe.length; ++Se) {
|
|
7518
|
-
var Yt = Ro(Fe[Se]), Qt = Yt.family,
|
|
7519
|
-
Ut[Qt] = Ut[Qt] || {}, Ut[Qt][
|
|
7518
|
+
var Yt = Ro(Fe[Se]), Qt = Yt.family, je = Yt.stretch, ue = Yt.style, Gt = Yt.weight;
|
|
7519
|
+
Ut[Qt] = Ut[Qt] || {}, Ut[Qt][je] = Ut[Qt][je] || {}, Ut[Qt][je][ue] = Ut[Qt][je][ue] || {}, Ut[Qt][je][ue][Gt] = Yt;
|
|
7520
7520
|
}
|
|
7521
7521
|
return Ut;
|
|
7522
7522
|
})(oe.concat(ze)), St = se;
|
|
@@ -7532,18 +7532,18 @@ function s2() {
|
|
|
7532
7532
|
if (!(Ut = Ut || Tt[se])) throw new Error("Could not find a font-family for the rule '" + Dl(Fe) + "' and default family '" + se + "'.");
|
|
7533
7533
|
if (Ut = (function(Yt, Qt) {
|
|
7534
7534
|
if (Qt[Yt]) return Qt[Yt];
|
|
7535
|
-
var
|
|
7535
|
+
var je = Zo[Yt], ue = je <= Zo.normal ? -1 : 1, Gt = Rl(Qt, Tf, je, ue);
|
|
7536
7536
|
if (!Gt) throw new Error("Could not find a matching font-stretch value for " + Yt);
|
|
7537
7537
|
return Gt;
|
|
7538
7538
|
})(Fe.stretch, Ut), Ut = (function(Yt, Qt) {
|
|
7539
7539
|
if (Qt[Yt]) return Qt[Yt];
|
|
7540
|
-
for (var
|
|
7540
|
+
for (var je = Rf[Yt], ue = 0; ue < je.length; ++ue) if (Qt[je[ue]]) return Qt[je[ue]];
|
|
7541
7541
|
throw new Error("Could not find a matching font-style for " + Yt);
|
|
7542
7542
|
})(Fe.style, Ut), !(Ut = (function(Yt, Qt) {
|
|
7543
7543
|
if (Qt[Yt]) return Qt[Yt];
|
|
7544
7544
|
if (Yt === 400 && Qt[500]) return Qt[500];
|
|
7545
7545
|
if (Yt === 500 && Qt[400]) return Qt[400];
|
|
7546
|
-
var
|
|
7546
|
+
var je = $1[Yt], ue = Rl(Qt, Df, je, Yt < 400 ? -1 : 1);
|
|
7547
7547
|
if (!ue) throw new Error("Could not find a matching font-weight for value " + Yt);
|
|
7548
7548
|
return ue;
|
|
7549
7549
|
})(Fe.weight, Ut))) throw new Error("Failed to resolve a font for the rule '" + Dl(Fe) + "'.");
|
|
@@ -7553,14 +7553,14 @@ function s2() {
|
|
|
7553
7553
|
} else {
|
|
7554
7554
|
var Zt = "";
|
|
7555
7555
|
(Ht === "bold" || parseInt(Ht, 10) >= 700 || ae === "bold") && (Zt = "bold"), ae === "italic" && (Zt += "italic"), Zt.length === 0 && (Zt = "normal");
|
|
7556
|
-
for (var ce = "", fe = { arial: "Helvetica", Arial: "Helvetica", verdana: "Helvetica", Verdana: "Helvetica", helvetica: "Helvetica", Helvetica: "Helvetica", "sans-serif": "Helvetica", fixed: "Courier", monospace: "Courier", terminal: "Courier", cursive: "Times", fantasy: "Times", serif: "Times" },
|
|
7557
|
-
if (this.pdf.internal.getFont(zt[
|
|
7558
|
-
ce = zt[
|
|
7556
|
+
for (var ce = "", fe = { arial: "Helvetica", Arial: "Helvetica", verdana: "Helvetica", Verdana: "Helvetica", helvetica: "Helvetica", Helvetica: "Helvetica", "sans-serif": "Helvetica", fixed: "Courier", monospace: "Courier", terminal: "Courier", cursive: "Times", fantasy: "Times", serif: "Times" }, Ot = 0; Ot < zt.length; Ot++) {
|
|
7557
|
+
if (this.pdf.internal.getFont(zt[Ot], Zt, { noFallback: !0, disableWarning: !0 }) !== void 0) {
|
|
7558
|
+
ce = zt[Ot];
|
|
7559
7559
|
break;
|
|
7560
7560
|
}
|
|
7561
|
-
if (Zt === "bolditalic" && this.pdf.internal.getFont(zt[
|
|
7562
|
-
else if (this.pdf.internal.getFont(zt[
|
|
7563
|
-
ce = zt[
|
|
7561
|
+
if (Zt === "bolditalic" && this.pdf.internal.getFont(zt[Ot], "bold", { noFallback: !0, disableWarning: !0 }) !== void 0) ce = zt[Ot], Zt = "bold";
|
|
7562
|
+
else if (this.pdf.internal.getFont(zt[Ot], "normal", { noFallback: !0, disableWarning: !0 }) !== void 0) {
|
|
7563
|
+
ce = zt[Ot], Zt = "normal";
|
|
7564
7564
|
break;
|
|
7565
7565
|
}
|
|
7566
7566
|
}
|
|
@@ -7605,148 +7605,148 @@ function s2() {
|
|
|
7605
7605
|
q.call(this, "stroke", !1);
|
|
7606
7606
|
}, x.prototype.beginPath = function() {
|
|
7607
7607
|
this.path = [{ type: "begin" }];
|
|
7608
|
-
}, x.prototype.moveTo = function(A,
|
|
7609
|
-
if (isNaN(A) || isNaN(
|
|
7610
|
-
var T = this.ctx.transform.applyToPoint(new c(A,
|
|
7611
|
-
this.path.push({ type: "mt", x: T.x, y: T.y }), this.ctx.lastPoint = new c(A,
|
|
7608
|
+
}, x.prototype.moveTo = function(A, O) {
|
|
7609
|
+
if (isNaN(A) || isNaN(O)) throw _e.error("jsPDF.context2d.moveTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.moveTo");
|
|
7610
|
+
var T = this.ctx.transform.applyToPoint(new c(A, O));
|
|
7611
|
+
this.path.push({ type: "mt", x: T.x, y: T.y }), this.ctx.lastPoint = new c(A, O);
|
|
7612
7612
|
}, x.prototype.closePath = function() {
|
|
7613
|
-
var A = new c(0, 0),
|
|
7614
|
-
for (
|
|
7615
|
-
A = new c(this.path[
|
|
7613
|
+
var A = new c(0, 0), O = 0;
|
|
7614
|
+
for (O = this.path.length - 1; O !== -1; O--) if (this.path[O].type === "begin" && xe(this.path[O + 1]) === "object" && typeof this.path[O + 1].x == "number") {
|
|
7615
|
+
A = new c(this.path[O + 1].x, this.path[O + 1].y);
|
|
7616
7616
|
break;
|
|
7617
7617
|
}
|
|
7618
7618
|
this.path.push({ type: "close" }), this.ctx.lastPoint = new c(A.x, A.y);
|
|
7619
|
-
}, x.prototype.lineTo = function(A,
|
|
7620
|
-
if (isNaN(A) || isNaN(
|
|
7621
|
-
var T = this.ctx.transform.applyToPoint(new c(A,
|
|
7619
|
+
}, x.prototype.lineTo = function(A, O) {
|
|
7620
|
+
if (isNaN(A) || isNaN(O)) throw _e.error("jsPDF.context2d.lineTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.lineTo");
|
|
7621
|
+
var T = this.ctx.transform.applyToPoint(new c(A, O));
|
|
7622
7622
|
this.path.push({ type: "lt", x: T.x, y: T.y }), this.ctx.lastPoint = new c(T.x, T.y);
|
|
7623
7623
|
}, x.prototype.clip = function() {
|
|
7624
7624
|
this.ctx.clip_path = JSON.parse(JSON.stringify(this.path)), q.call(this, null, !0);
|
|
7625
|
-
}, x.prototype.quadraticCurveTo = function(A,
|
|
7626
|
-
if (isNaN(T) || isNaN(H) || isNaN(A) || isNaN(
|
|
7627
|
-
var
|
|
7628
|
-
this.path.push({ type: "qct", x1: Z.x, y1: Z.y, x:
|
|
7629
|
-
}, x.prototype.bezierCurveTo = function(A,
|
|
7630
|
-
if (isNaN(
|
|
7631
|
-
var at = this.ctx.transform.applyToPoint(new c(
|
|
7625
|
+
}, x.prototype.quadraticCurveTo = function(A, O, T, H) {
|
|
7626
|
+
if (isNaN(T) || isNaN(H) || isNaN(A) || isNaN(O)) throw _e.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");
|
|
7627
|
+
var J = this.ctx.transform.applyToPoint(new c(T, H)), Z = this.ctx.transform.applyToPoint(new c(A, O));
|
|
7628
|
+
this.path.push({ type: "qct", x1: Z.x, y1: Z.y, x: J.x, y: J.y }), this.ctx.lastPoint = new c(J.x, J.y);
|
|
7629
|
+
}, x.prototype.bezierCurveTo = function(A, O, T, H, J, Z) {
|
|
7630
|
+
if (isNaN(J) || isNaN(Z) || isNaN(A) || isNaN(O) || isNaN(T) || isNaN(H)) throw _e.error("jsPDF.context2d.bezierCurveTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");
|
|
7631
|
+
var at = this.ctx.transform.applyToPoint(new c(J, Z)), st = this.ctx.transform.applyToPoint(new c(A, O)), gt = this.ctx.transform.applyToPoint(new c(T, H));
|
|
7632
7632
|
this.path.push({ type: "bct", x1: st.x, y1: st.y, x2: gt.x, y2: gt.y, x: at.x, y: at.y }), this.ctx.lastPoint = new c(at.x, at.y);
|
|
7633
|
-
}, x.prototype.arc = function(A,
|
|
7634
|
-
if (isNaN(A) || isNaN(
|
|
7633
|
+
}, x.prototype.arc = function(A, O, T, H, J, Z) {
|
|
7634
|
+
if (isNaN(A) || isNaN(O) || isNaN(T) || isNaN(H) || isNaN(J)) throw _e.error("jsPDF.context2d.arc: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.arc");
|
|
7635
7635
|
if (Z = !!Z, !this.ctx.transform.isIdentity) {
|
|
7636
|
-
var at = this.ctx.transform.applyToPoint(new c(A,
|
|
7637
|
-
A = at.x,
|
|
7636
|
+
var at = this.ctx.transform.applyToPoint(new c(A, O));
|
|
7637
|
+
A = at.x, O = at.y;
|
|
7638
7638
|
var st = this.ctx.transform.applyToPoint(new c(0, T)), gt = this.ctx.transform.applyToPoint(new c(0, 0));
|
|
7639
7639
|
T = Math.sqrt(Math.pow(st.x - gt.x, 2) + Math.pow(st.y - gt.y, 2));
|
|
7640
7640
|
}
|
|
7641
|
-
Math.abs(
|
|
7642
|
-
}, x.prototype.arcTo = function(A,
|
|
7641
|
+
Math.abs(J - H) >= 2 * Math.PI && (H = 0, J = 2 * Math.PI), this.path.push({ type: "arc", x: A, y: O, radius: T, startAngle: H, endAngle: J, counterclockwise: Z });
|
|
7642
|
+
}, x.prototype.arcTo = function(A, O, T, H, J) {
|
|
7643
7643
|
throw new Error("arcTo not implemented.");
|
|
7644
|
-
}, x.prototype.rect = function(A,
|
|
7645
|
-
if (isNaN(A) || isNaN(
|
|
7646
|
-
this.moveTo(A,
|
|
7647
|
-
}, x.prototype.fillRect = function(A,
|
|
7648
|
-
if (isNaN(A) || isNaN(
|
|
7644
|
+
}, x.prototype.rect = function(A, O, T, H) {
|
|
7645
|
+
if (isNaN(A) || isNaN(O) || isNaN(T) || isNaN(H)) throw _e.error("jsPDF.context2d.rect: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.rect");
|
|
7646
|
+
this.moveTo(A, O), this.lineTo(A + T, O), this.lineTo(A + T, O + H), this.lineTo(A, O + H), this.lineTo(A, O), this.lineTo(A + T, O), this.lineTo(A, O);
|
|
7647
|
+
}, x.prototype.fillRect = function(A, O, T, H) {
|
|
7648
|
+
if (isNaN(A) || isNaN(O) || isNaN(T) || isNaN(H)) throw _e.error("jsPDF.context2d.fillRect: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.fillRect");
|
|
7649
7649
|
if (!p.call(this)) {
|
|
7650
|
-
var
|
|
7651
|
-
this.lineCap !== "butt" && (
|
|
7652
|
-
}
|
|
7653
|
-
}, x.prototype.strokeRect = function(A,
|
|
7654
|
-
if (isNaN(A) || isNaN(
|
|
7655
|
-
|
|
7656
|
-
}, x.prototype.clearRect = function(A,
|
|
7657
|
-
if (isNaN(A) || isNaN(
|
|
7658
|
-
this.ignoreClearRect || (this.fillStyle = "#ffffff", this.fillRect(A,
|
|
7650
|
+
var J = {};
|
|
7651
|
+
this.lineCap !== "butt" && (J.lineCap = this.lineCap, this.lineCap = "butt"), this.lineJoin !== "miter" && (J.lineJoin = this.lineJoin, this.lineJoin = "miter"), this.beginPath(), this.rect(A, O, T, H), this.fill(), J.hasOwnProperty("lineCap") && (this.lineCap = J.lineCap), J.hasOwnProperty("lineJoin") && (this.lineJoin = J.lineJoin);
|
|
7652
|
+
}
|
|
7653
|
+
}, x.prototype.strokeRect = function(A, O, T, H) {
|
|
7654
|
+
if (isNaN(A) || isNaN(O) || isNaN(T) || isNaN(H)) throw _e.error("jsPDF.context2d.strokeRect: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");
|
|
7655
|
+
j.call(this) || (this.beginPath(), this.rect(A, O, T, H), this.stroke());
|
|
7656
|
+
}, x.prototype.clearRect = function(A, O, T, H) {
|
|
7657
|
+
if (isNaN(A) || isNaN(O) || isNaN(T) || isNaN(H)) throw _e.error("jsPDF.context2d.clearRect: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.clearRect");
|
|
7658
|
+
this.ignoreClearRect || (this.fillStyle = "#ffffff", this.fillRect(A, O, T, H));
|
|
7659
7659
|
}, x.prototype.save = function(A) {
|
|
7660
7660
|
A = typeof A != "boolean" || A;
|
|
7661
|
-
for (var
|
|
7662
|
-
if (this.pdf.setPage(
|
|
7661
|
+
for (var O = this.pdf.internal.getCurrentPageInfo().pageNumber, T = 0; T < this.pdf.internal.getNumberOfPages(); T++) this.pdf.setPage(T + 1), this.pdf.internal.out("q");
|
|
7662
|
+
if (this.pdf.setPage(O), A) {
|
|
7663
7663
|
this.ctx.fontSize = this.pdf.internal.getFontSize();
|
|
7664
7664
|
var H = new g(this.ctx);
|
|
7665
7665
|
this.ctxStack.push(this.ctx), this.ctx = H;
|
|
7666
7666
|
}
|
|
7667
7667
|
}, x.prototype.restore = function(A) {
|
|
7668
7668
|
A = typeof A != "boolean" || A;
|
|
7669
|
-
for (var
|
|
7670
|
-
this.pdf.setPage(
|
|
7669
|
+
for (var O = this.pdf.internal.getCurrentPageInfo().pageNumber, T = 0; T < this.pdf.internal.getNumberOfPages(); T++) this.pdf.setPage(T + 1), this.pdf.internal.out("Q");
|
|
7670
|
+
this.pdf.setPage(O), A && this.ctxStack.length !== 0 && (this.ctx = this.ctxStack.pop(), this.fillStyle = this.ctx.fillStyle, this.strokeStyle = this.ctx.strokeStyle, this.font = this.ctx.font, this.lineCap = this.ctx.lineCap, this.lineWidth = this.ctx.lineWidth, this.lineJoin = this.ctx.lineJoin, this.lineDash = this.ctx.lineDash, this.lineDashOffset = this.ctx.lineDashOffset);
|
|
7671
7671
|
}, x.prototype.toDataURL = function() {
|
|
7672
7672
|
throw new Error("toDataUrl not implemented.");
|
|
7673
7673
|
};
|
|
7674
7674
|
var N = function(A) {
|
|
7675
|
-
var
|
|
7675
|
+
var O, T, H, J;
|
|
7676
7676
|
if (A.isCanvasGradient === !0 && (A = A.getColor()), !A) return { r: 0, g: 0, b: 0, a: 0, style: A };
|
|
7677
|
-
if (/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(A))
|
|
7677
|
+
if (/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(A)) O = 0, T = 0, H = 0, J = 0;
|
|
7678
7678
|
else {
|
|
7679
7679
|
var Z = /rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(A);
|
|
7680
|
-
if (Z !== null)
|
|
7681
|
-
else if ((Z = /rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(A)) !== null)
|
|
7680
|
+
if (Z !== null) O = parseInt(Z[1]), T = parseInt(Z[2]), H = parseInt(Z[3]), J = 1;
|
|
7681
|
+
else if ((Z = /rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(A)) !== null) O = parseInt(Z[1]), T = parseInt(Z[2]), H = parseInt(Z[3]), J = parseFloat(Z[4]);
|
|
7682
7682
|
else {
|
|
7683
|
-
if (
|
|
7683
|
+
if (J = 1, typeof A == "string" && A.charAt(0) !== "#") {
|
|
7684
7684
|
var at = new If(A);
|
|
7685
7685
|
A = at.ok ? at.toHex() : "#000000";
|
|
7686
7686
|
}
|
|
7687
|
-
A.length === 4 ? (
|
|
7687
|
+
A.length === 4 ? (O = A.substring(1, 2), O += O, T = A.substring(2, 3), T += T, H = A.substring(3, 4), H += H) : (O = A.substring(1, 3), T = A.substring(3, 5), H = A.substring(5, 7)), O = parseInt(O, 16), T = parseInt(T, 16), H = parseInt(H, 16);
|
|
7688
7688
|
}
|
|
7689
7689
|
}
|
|
7690
|
-
return { r:
|
|
7690
|
+
return { r: O, g: T, b: H, a: J, style: A };
|
|
7691
7691
|
}, p = function() {
|
|
7692
7692
|
return this.ctx.isFillTransparent || this.globalAlpha == 0;
|
|
7693
|
-
},
|
|
7693
|
+
}, j = function() {
|
|
7694
7694
|
return !!(this.ctx.isStrokeTransparent || this.globalAlpha == 0);
|
|
7695
7695
|
};
|
|
7696
|
-
x.prototype.fillText = function(A,
|
|
7697
|
-
if (isNaN(
|
|
7696
|
+
x.prototype.fillText = function(A, O, T, H) {
|
|
7697
|
+
if (isNaN(O) || isNaN(T) || typeof A != "string") throw _e.error("jsPDF.context2d.fillText: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.fillText");
|
|
7698
7698
|
if (H = isNaN(H) ? void 0 : H, !p.call(this)) {
|
|
7699
|
-
var
|
|
7700
|
-
F.call(this, { text: A, x:
|
|
7699
|
+
var J = rt(this.ctx.transform.rotation), Z = this.ctx.transform.scaleX;
|
|
7700
|
+
F.call(this, { text: A, x: O, y: T, scale: Z, angle: J, align: this.textAlign, maxWidth: H });
|
|
7701
7701
|
}
|
|
7702
|
-
}, x.prototype.strokeText = function(A,
|
|
7703
|
-
if (isNaN(
|
|
7704
|
-
if (!
|
|
7702
|
+
}, x.prototype.strokeText = function(A, O, T, H) {
|
|
7703
|
+
if (isNaN(O) || isNaN(T) || typeof A != "string") throw _e.error("jsPDF.context2d.strokeText: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.strokeText");
|
|
7704
|
+
if (!j.call(this)) {
|
|
7705
7705
|
H = isNaN(H) ? void 0 : H;
|
|
7706
|
-
var
|
|
7707
|
-
F.call(this, { text: A, x:
|
|
7706
|
+
var J = rt(this.ctx.transform.rotation), Z = this.ctx.transform.scaleX;
|
|
7707
|
+
F.call(this, { text: A, x: O, y: T, scale: Z, renderingMode: "stroke", angle: J, align: this.textAlign, maxWidth: H });
|
|
7708
7708
|
}
|
|
7709
7709
|
}, x.prototype.measureText = function(A) {
|
|
7710
7710
|
if (typeof A != "string") throw _e.error("jsPDF.context2d.measureText: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.measureText");
|
|
7711
|
-
var
|
|
7711
|
+
var O = this.pdf, T = this.pdf.internal.scaleFactor, H = O.internal.getFontSize(), J = O.getStringUnitWidth(A) * H / O.internal.scaleFactor;
|
|
7712
7712
|
return new function(Z) {
|
|
7713
7713
|
var at = (Z = Z || {}).width || 0;
|
|
7714
7714
|
return Object.defineProperty(this, "width", { get: function() {
|
|
7715
7715
|
return at;
|
|
7716
7716
|
} }), this;
|
|
7717
|
-
}({ width:
|
|
7718
|
-
}, x.prototype.scale = function(A,
|
|
7719
|
-
if (isNaN(A) || isNaN(
|
|
7720
|
-
var T = new f(A, 0, 0,
|
|
7717
|
+
}({ width: J *= Math.round(96 * T / 72 * 1e4) / 1e4 });
|
|
7718
|
+
}, x.prototype.scale = function(A, O) {
|
|
7719
|
+
if (isNaN(A) || isNaN(O)) throw _e.error("jsPDF.context2d.scale: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.scale");
|
|
7720
|
+
var T = new f(A, 0, 0, O, 0, 0);
|
|
7721
7721
|
this.ctx.transform = this.ctx.transform.multiply(T);
|
|
7722
7722
|
}, x.prototype.rotate = function(A) {
|
|
7723
7723
|
if (isNaN(A)) throw _e.error("jsPDF.context2d.rotate: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.rotate");
|
|
7724
|
-
var
|
|
7725
|
-
this.ctx.transform = this.ctx.transform.multiply(
|
|
7726
|
-
}, x.prototype.translate = function(A,
|
|
7727
|
-
if (isNaN(A) || isNaN(
|
|
7728
|
-
var T = new f(1, 0, 0, 1, A,
|
|
7724
|
+
var O = new f(Math.cos(A), Math.sin(A), -Math.sin(A), Math.cos(A), 0, 0);
|
|
7725
|
+
this.ctx.transform = this.ctx.transform.multiply(O);
|
|
7726
|
+
}, x.prototype.translate = function(A, O) {
|
|
7727
|
+
if (isNaN(A) || isNaN(O)) throw _e.error("jsPDF.context2d.translate: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.translate");
|
|
7728
|
+
var T = new f(1, 0, 0, 1, A, O);
|
|
7729
7729
|
this.ctx.transform = this.ctx.transform.multiply(T);
|
|
7730
|
-
}, x.prototype.transform = function(A,
|
|
7731
|
-
if (isNaN(A) || isNaN(
|
|
7732
|
-
var at = new f(A,
|
|
7730
|
+
}, x.prototype.transform = function(A, O, T, H, J, Z) {
|
|
7731
|
+
if (isNaN(A) || isNaN(O) || isNaN(T) || isNaN(H) || isNaN(J) || isNaN(Z)) throw _e.error("jsPDF.context2d.transform: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.transform");
|
|
7732
|
+
var at = new f(A, O, T, H, J, Z);
|
|
7733
7733
|
this.ctx.transform = this.ctx.transform.multiply(at);
|
|
7734
|
-
}, x.prototype.setTransform = function(A,
|
|
7735
|
-
A = isNaN(A) ? 1 : A,
|
|
7734
|
+
}, x.prototype.setTransform = function(A, O, T, H, J, Z) {
|
|
7735
|
+
A = isNaN(A) ? 1 : A, O = isNaN(O) ? 0 : O, T = isNaN(T) ? 0 : T, H = isNaN(H) ? 1 : H, J = isNaN(J) ? 0 : J, Z = isNaN(Z) ? 0 : Z, this.ctx.transform = new f(A, O, T, H, J, Z);
|
|
7736
7736
|
};
|
|
7737
7737
|
var P = function() {
|
|
7738
7738
|
return this.margin[0] > 0 || this.margin[1] > 0 || this.margin[2] > 0 || this.margin[3] > 0;
|
|
7739
7739
|
};
|
|
7740
|
-
x.prototype.drawImage = function(A,
|
|
7740
|
+
x.prototype.drawImage = function(A, O, T, H, J, Z, at, st, gt) {
|
|
7741
7741
|
var At = this.pdf.getImageProperties(A), kt = 1, St = 1, Dt = 1, M = 1;
|
|
7742
|
-
H !== void 0 && st !== void 0 && (Dt = st / H, M = gt /
|
|
7743
|
-
var _t = this.ctx.transform.decompose(), ae = rt(_t.rotate.shx), Ht = new f(), yt = (Ht = (Ht = (Ht = Ht.multiply(_t.translate)).multiply(_t.skew)).multiply(_t.scale)).applyToRectangle(new u(Z -
|
|
7742
|
+
H !== void 0 && st !== void 0 && (Dt = st / H, M = gt / J, kt = At.width / H * st / H, St = At.height / J * gt / J), Z === void 0 && (Z = O, at = T, O = 0, T = 0), H !== void 0 && st === void 0 && (st = H, gt = J), H === void 0 && st === void 0 && (st = At.width, gt = At.height);
|
|
7743
|
+
var _t = this.ctx.transform.decompose(), ae = rt(_t.rotate.shx), Ht = new f(), yt = (Ht = (Ht = (Ht = Ht.multiply(_t.translate)).multiply(_t.skew)).multiply(_t.scale)).applyToRectangle(new u(Z - O * Dt, at - T * M, H * kt, J * St));
|
|
7744
7744
|
if (this.autoPaging) {
|
|
7745
7745
|
for (var Wt, Mt = B.call(this, yt), zt = [], qt = 0; qt < Mt.length; qt += 1) zt.indexOf(Mt[qt]) === -1 && zt.push(Mt[qt]);
|
|
7746
7746
|
Y(zt);
|
|
7747
7747
|
for (var ve = zt[0], le = zt[zt.length - 1], Zt = ve; Zt < le + 1; Zt++) {
|
|
7748
7748
|
this.pdf.setPage(Zt);
|
|
7749
|
-
var ce = this.pdf.internal.pageSize.width - this.margin[3] - this.margin[1], fe = Zt === 1 ? this.posY + this.margin[0] : this.margin[0],
|
|
7749
|
+
var ce = this.pdf.internal.pageSize.width - this.margin[3] - this.margin[1], fe = Zt === 1 ? this.posY + this.margin[0] : this.margin[0], Ot = this.pdf.internal.pageSize.height - this.posY - this.margin[0] - this.margin[2], re = this.pdf.internal.pageSize.height - this.margin[0] - this.margin[2], Tt = Zt === 1 ? 0 : Ot + (Zt - 2) * re;
|
|
7750
7750
|
if (this.ctx.clip_path.length !== 0) {
|
|
7751
7751
|
var ze = this.path;
|
|
7752
7752
|
Wt = JSON.parse(JSON.stringify(this.ctx.clip_path)), this.path = G(Wt, this.posX + this.margin[3], -Tt + fe + this.ctx.prevPageLastElemOffset), it.call(this, "fill", !0), this.path = ze;
|
|
@@ -7758,127 +7758,127 @@ function s2() {
|
|
|
7758
7758
|
}
|
|
7759
7759
|
} else this.pdf.addImage(A, "JPEG", yt.x, yt.y, yt.w, yt.h, null, null, ae);
|
|
7760
7760
|
};
|
|
7761
|
-
var B = function(A,
|
|
7761
|
+
var B = function(A, O, T) {
|
|
7762
7762
|
var H = [];
|
|
7763
|
-
|
|
7764
|
-
var
|
|
7763
|
+
O = O || this.pdf.internal.pageSize.width, T = T || this.pdf.internal.pageSize.height - this.margin[0] - this.margin[2];
|
|
7764
|
+
var J = this.posY + this.ctx.prevPageLastElemOffset;
|
|
7765
7765
|
switch (A.type) {
|
|
7766
7766
|
default:
|
|
7767
7767
|
case "mt":
|
|
7768
7768
|
case "lt":
|
|
7769
|
-
H.push(Math.floor((A.y +
|
|
7769
|
+
H.push(Math.floor((A.y + J) / T) + 1);
|
|
7770
7770
|
break;
|
|
7771
7771
|
case "arc":
|
|
7772
|
-
H.push(Math.floor((A.y +
|
|
7772
|
+
H.push(Math.floor((A.y + J - A.radius) / T) + 1), H.push(Math.floor((A.y + J + A.radius) / T) + 1);
|
|
7773
7773
|
break;
|
|
7774
7774
|
case "qct":
|
|
7775
7775
|
var Z = ht(this.ctx.lastPoint.x, this.ctx.lastPoint.y, A.x1, A.y1, A.x, A.y);
|
|
7776
|
-
H.push(Math.floor((Z.y +
|
|
7776
|
+
H.push(Math.floor((Z.y + J) / T) + 1), H.push(Math.floor((Z.y + Z.h + J) / T) + 1);
|
|
7777
7777
|
break;
|
|
7778
7778
|
case "bct":
|
|
7779
7779
|
var at = Nt(this.ctx.lastPoint.x, this.ctx.lastPoint.y, A.x1, A.y1, A.x2, A.y2, A.x, A.y);
|
|
7780
|
-
H.push(Math.floor((at.y +
|
|
7780
|
+
H.push(Math.floor((at.y + J) / T) + 1), H.push(Math.floor((at.y + at.h + J) / T) + 1);
|
|
7781
7781
|
break;
|
|
7782
7782
|
case "rect":
|
|
7783
|
-
H.push(Math.floor((A.y +
|
|
7783
|
+
H.push(Math.floor((A.y + J) / T) + 1), H.push(Math.floor((A.y + A.h + J) / T) + 1);
|
|
7784
7784
|
}
|
|
7785
7785
|
for (var st = 0; st < H.length; st += 1) for (; this.pdf.internal.getNumberOfPages() < H[st]; ) k.call(this);
|
|
7786
7786
|
return H;
|
|
7787
7787
|
}, k = function() {
|
|
7788
|
-
var A = this.fillStyle,
|
|
7789
|
-
this.pdf.addPage(), this.fillStyle = A, this.strokeStyle =
|
|
7790
|
-
}, G = function(A,
|
|
7788
|
+
var A = this.fillStyle, O = this.strokeStyle, T = this.font, H = this.lineCap, J = this.lineWidth, Z = this.lineJoin;
|
|
7789
|
+
this.pdf.addPage(), this.fillStyle = A, this.strokeStyle = O, this.font = T, this.lineCap = H, this.lineWidth = J, this.lineJoin = Z;
|
|
7790
|
+
}, G = function(A, O, T) {
|
|
7791
7791
|
for (var H = 0; H < A.length; H++) switch (A[H].type) {
|
|
7792
7792
|
case "bct":
|
|
7793
|
-
A[H].x2 +=
|
|
7793
|
+
A[H].x2 += O, A[H].y2 += T;
|
|
7794
7794
|
case "qct":
|
|
7795
|
-
A[H].x1 +=
|
|
7795
|
+
A[H].x1 += O, A[H].y1 += T;
|
|
7796
7796
|
default:
|
|
7797
|
-
A[H].x +=
|
|
7797
|
+
A[H].x += O, A[H].y += T;
|
|
7798
7798
|
}
|
|
7799
7799
|
return A;
|
|
7800
7800
|
}, Y = function(A) {
|
|
7801
|
-
return A.sort(function(
|
|
7802
|
-
return
|
|
7801
|
+
return A.sort(function(O, T) {
|
|
7802
|
+
return O - T;
|
|
7803
7803
|
});
|
|
7804
|
-
}, q = function(A,
|
|
7805
|
-
var T = this.fillStyle, H = this.strokeStyle,
|
|
7804
|
+
}, q = function(A, O) {
|
|
7805
|
+
var T = this.fillStyle, H = this.strokeStyle, J = this.lineCap, Z = this.lineWidth, at = Math.abs(Z * this.ctx.transform.scaleX), st = this.lineJoin;
|
|
7806
7806
|
if (this.autoPaging) {
|
|
7807
7807
|
for (var gt, At, kt = JSON.parse(JSON.stringify(this.path)), St = JSON.parse(JSON.stringify(this.path)), Dt = [], M = 0; M < St.length; M++) if (St[M].x !== void 0) for (var _t = B.call(this, St[M]), ae = 0; ae < _t.length; ae += 1) Dt.indexOf(_t[ae]) === -1 && Dt.push(_t[ae]);
|
|
7808
7808
|
for (var Ht = 0; Ht < Dt.length; Ht++) for (; this.pdf.internal.getNumberOfPages() < Dt[Ht]; ) k.call(this);
|
|
7809
7809
|
Y(Dt);
|
|
7810
7810
|
for (var yt = Dt[0], Wt = Dt[Dt.length - 1], Mt = yt; Mt < Wt + 1; Mt++) {
|
|
7811
|
-
this.pdf.setPage(Mt), this.fillStyle = T, this.strokeStyle = H, this.lineCap =
|
|
7811
|
+
this.pdf.setPage(Mt), this.fillStyle = T, this.strokeStyle = H, this.lineCap = J, this.lineWidth = at, this.lineJoin = st;
|
|
7812
7812
|
var zt = this.pdf.internal.pageSize.width - this.margin[3] - this.margin[1], qt = Mt === 1 ? this.posY + this.margin[0] : this.margin[0], ve = this.pdf.internal.pageSize.height - this.posY - this.margin[0] - this.margin[2], le = this.pdf.internal.pageSize.height - this.margin[0] - this.margin[2], Zt = Mt === 1 ? 0 : ve + (Mt - 2) * le;
|
|
7813
7813
|
if (this.ctx.clip_path.length !== 0) {
|
|
7814
7814
|
var ce = this.path;
|
|
7815
7815
|
gt = JSON.parse(JSON.stringify(this.ctx.clip_path)), this.path = G(gt, this.posX + this.margin[3], -Zt + qt + this.ctx.prevPageLastElemOffset), it.call(this, A, !0), this.path = ce;
|
|
7816
7816
|
}
|
|
7817
|
-
if (At = JSON.parse(JSON.stringify(kt)), this.path = G(At, this.posX + this.margin[3], -Zt + qt + this.ctx.prevPageLastElemOffset),
|
|
7817
|
+
if (At = JSON.parse(JSON.stringify(kt)), this.path = G(At, this.posX + this.margin[3], -Zt + qt + this.ctx.prevPageLastElemOffset), O === !1 || Mt === 0) {
|
|
7818
7818
|
var fe = (Mt > yt || Mt < Wt) && P.call(this);
|
|
7819
|
-
fe && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], zt, le, null).clip().discardPath()), it.call(this, A,
|
|
7819
|
+
fe && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], zt, le, null).clip().discardPath()), it.call(this, A, O), fe && this.pdf.restoreGraphicsState();
|
|
7820
7820
|
}
|
|
7821
7821
|
this.lineWidth = Z;
|
|
7822
7822
|
}
|
|
7823
7823
|
this.path = kt;
|
|
7824
|
-
} else this.lineWidth = at, it.call(this, A,
|
|
7825
|
-
}, it = function(A,
|
|
7826
|
-
if ((A !== "stroke" ||
|
|
7827
|
-
for (var T, H,
|
|
7824
|
+
} else this.lineWidth = at, it.call(this, A, O), this.lineWidth = Z;
|
|
7825
|
+
}, it = function(A, O) {
|
|
7826
|
+
if ((A !== "stroke" || O || !j.call(this)) && (A === "stroke" || O || !p.call(this))) {
|
|
7827
|
+
for (var T, H, J = [], Z = this.path, at = 0; at < Z.length; at++) {
|
|
7828
7828
|
var st = Z[at];
|
|
7829
7829
|
switch (st.type) {
|
|
7830
7830
|
case "begin":
|
|
7831
|
-
|
|
7831
|
+
J.push({ begin: !0 });
|
|
7832
7832
|
break;
|
|
7833
7833
|
case "close":
|
|
7834
|
-
|
|
7834
|
+
J.push({ close: !0 });
|
|
7835
7835
|
break;
|
|
7836
7836
|
case "mt":
|
|
7837
|
-
|
|
7837
|
+
J.push({ start: st, deltas: [], abs: [] });
|
|
7838
7838
|
break;
|
|
7839
7839
|
case "lt":
|
|
7840
|
-
var gt =
|
|
7840
|
+
var gt = J.length;
|
|
7841
7841
|
if (Z[at - 1] && !isNaN(Z[at - 1].x) && (T = [st.x - Z[at - 1].x, st.y - Z[at - 1].y], gt > 0)) {
|
|
7842
|
-
for (; gt >= 0; gt--) if (
|
|
7843
|
-
|
|
7842
|
+
for (; gt >= 0; gt--) if (J[gt - 1].close !== !0 && J[gt - 1].begin !== !0) {
|
|
7843
|
+
J[gt - 1].deltas.push(T), J[gt - 1].abs.push(st);
|
|
7844
7844
|
break;
|
|
7845
7845
|
}
|
|
7846
7846
|
}
|
|
7847
7847
|
break;
|
|
7848
7848
|
case "bct":
|
|
7849
|
-
T = [st.x1 - Z[at - 1].x, st.y1 - Z[at - 1].y, st.x2 - Z[at - 1].x, st.y2 - Z[at - 1].y, st.x - Z[at - 1].x, st.y - Z[at - 1].y],
|
|
7849
|
+
T = [st.x1 - Z[at - 1].x, st.y1 - Z[at - 1].y, st.x2 - Z[at - 1].x, st.y2 - Z[at - 1].y, st.x - Z[at - 1].x, st.y - Z[at - 1].y], J[J.length - 1].deltas.push(T);
|
|
7850
7850
|
break;
|
|
7851
7851
|
case "qct":
|
|
7852
7852
|
var At = Z[at - 1].x + 2 / 3 * (st.x1 - Z[at - 1].x), kt = Z[at - 1].y + 2 / 3 * (st.y1 - Z[at - 1].y), St = st.x + 2 / 3 * (st.x1 - st.x), Dt = st.y + 2 / 3 * (st.y1 - st.y), M = st.x, _t = st.y;
|
|
7853
|
-
T = [At - Z[at - 1].x, kt - Z[at - 1].y, St - Z[at - 1].x, Dt - Z[at - 1].y, M - Z[at - 1].x, _t - Z[at - 1].y],
|
|
7853
|
+
T = [At - Z[at - 1].x, kt - Z[at - 1].y, St - Z[at - 1].x, Dt - Z[at - 1].y, M - Z[at - 1].x, _t - Z[at - 1].y], J[J.length - 1].deltas.push(T);
|
|
7854
7854
|
break;
|
|
7855
7855
|
case "arc":
|
|
7856
|
-
|
|
7856
|
+
J.push({ deltas: [], abs: [], arc: !0 }), Array.isArray(J[J.length - 1].abs) && J[J.length - 1].abs.push(st);
|
|
7857
7857
|
}
|
|
7858
7858
|
}
|
|
7859
|
-
H =
|
|
7860
|
-
for (var ae = !1, Ht = 0; Ht <
|
|
7859
|
+
H = O ? null : A === "stroke" ? "stroke" : "fill";
|
|
7860
|
+
for (var ae = !1, Ht = 0; Ht < J.length; Ht++) if (J[Ht].arc) for (var yt = J[Ht].abs, Wt = 0; Wt < yt.length; Wt++) {
|
|
7861
7861
|
var Mt = yt[Wt];
|
|
7862
|
-
Mt.type === "arc" ? K.call(this, Mt.x, Mt.y, Mt.radius, Mt.startAngle, Mt.endAngle, Mt.counterclockwise, void 0,
|
|
7862
|
+
Mt.type === "arc" ? K.call(this, Mt.x, Mt.y, Mt.radius, Mt.startAngle, Mt.endAngle, Mt.counterclockwise, void 0, O, !ae) : z.call(this, Mt.x, Mt.y), ae = !0;
|
|
7863
7863
|
}
|
|
7864
|
-
else if (
|
|
7865
|
-
else if (
|
|
7866
|
-
var zt =
|
|
7867
|
-
U.call(this,
|
|
7864
|
+
else if (J[Ht].close === !0) this.pdf.internal.out("h"), ae = !1;
|
|
7865
|
+
else if (J[Ht].begin !== !0) {
|
|
7866
|
+
var zt = J[Ht].start.x, qt = J[Ht].start.y;
|
|
7867
|
+
U.call(this, J[Ht].deltas, zt, qt), ae = !0;
|
|
7868
7868
|
}
|
|
7869
|
-
H && R.call(this, H),
|
|
7869
|
+
H && R.call(this, H), O && tt.call(this);
|
|
7870
7870
|
}
|
|
7871
7871
|
}, mt = function(A) {
|
|
7872
|
-
var
|
|
7872
|
+
var O = this.pdf.internal.getFontSize() / this.pdf.internal.scaleFactor, T = O * (this.pdf.internal.getLineHeightFactor() - 1);
|
|
7873
7873
|
switch (this.ctx.textBaseline) {
|
|
7874
7874
|
case "bottom":
|
|
7875
7875
|
return A - T;
|
|
7876
7876
|
case "top":
|
|
7877
|
-
return A +
|
|
7877
|
+
return A + O - T;
|
|
7878
7878
|
case "hanging":
|
|
7879
|
-
return A +
|
|
7879
|
+
return A + O - 2 * T;
|
|
7880
7880
|
case "middle":
|
|
7881
|
-
return A +
|
|
7881
|
+
return A + O / 2 - T;
|
|
7882
7882
|
default:
|
|
7883
7883
|
return A;
|
|
7884
7884
|
}
|
|
@@ -7888,8 +7888,8 @@ function s2() {
|
|
|
7888
7888
|
x.prototype.createLinearGradient = function() {
|
|
7889
7889
|
var A = function() {
|
|
7890
7890
|
};
|
|
7891
|
-
return A.colorStops = [], A.addColorStop = function(
|
|
7892
|
-
this.colorStops.push([
|
|
7891
|
+
return A.colorStops = [], A.addColorStop = function(O, T) {
|
|
7892
|
+
this.colorStops.push([O, T]);
|
|
7893
7893
|
}, A.getColor = function() {
|
|
7894
7894
|
return this.colorStops.length === 0 ? "#000000" : this.colorStops[0][1];
|
|
7895
7895
|
}, A.isCanvasGradient = !0, A;
|
|
@@ -7898,10 +7898,10 @@ function s2() {
|
|
|
7898
7898
|
}, x.prototype.createRadialGradient = function() {
|
|
7899
7899
|
return this.createLinearGradient();
|
|
7900
7900
|
};
|
|
7901
|
-
var K = function(A,
|
|
7902
|
-
for (var At = ot.call(this, T, H,
|
|
7901
|
+
var K = function(A, O, T, H, J, Z, at, st, gt) {
|
|
7902
|
+
for (var At = ot.call(this, T, H, J, Z), kt = 0; kt < At.length; kt++) {
|
|
7903
7903
|
var St = At[kt];
|
|
7904
|
-
kt === 0 && (gt ? _.call(this, St.x1 + A, St.y1 +
|
|
7904
|
+
kt === 0 && (gt ? _.call(this, St.x1 + A, St.y1 + O) : z.call(this, St.x1 + A, St.y1 + O)), nt.call(this, A, O, St.x2, St.y2, St.x3, St.y3, St.x4, St.y4);
|
|
7905
7905
|
}
|
|
7906
7906
|
st ? tt.call(this) : R.call(this, at);
|
|
7907
7907
|
}, R = function(A) {
|
|
@@ -7914,22 +7914,22 @@ function s2() {
|
|
|
7914
7914
|
}
|
|
7915
7915
|
}, tt = function() {
|
|
7916
7916
|
this.pdf.clip(), this.pdf.discardPath();
|
|
7917
|
-
}, _ = function(A,
|
|
7918
|
-
this.pdf.internal.out(e(A) + " " + n(
|
|
7917
|
+
}, _ = function(A, O) {
|
|
7918
|
+
this.pdf.internal.out(e(A) + " " + n(O) + " m");
|
|
7919
7919
|
}, F = function(A) {
|
|
7920
|
-
var
|
|
7920
|
+
var O;
|
|
7921
7921
|
switch (A.align) {
|
|
7922
7922
|
case "right":
|
|
7923
7923
|
case "end":
|
|
7924
|
-
|
|
7924
|
+
O = "right";
|
|
7925
7925
|
break;
|
|
7926
7926
|
case "center":
|
|
7927
|
-
|
|
7927
|
+
O = "center";
|
|
7928
7928
|
break;
|
|
7929
7929
|
default:
|
|
7930
|
-
|
|
7930
|
+
O = "left";
|
|
7931
7931
|
}
|
|
7932
|
-
var T, H,
|
|
7932
|
+
var T, H, J, Z = this.pdf.getTextDimensions(A.text), at = mt.call(this, A.y), st = dt.call(this, at) - Z.h, gt = this.ctx.transform.applyToPoint(new c(A.x, at));
|
|
7933
7933
|
if (this.autoPaging) {
|
|
7934
7934
|
var At = this.ctx.transform.decompose(), kt = new f();
|
|
7935
7935
|
kt = (kt = (kt = kt.multiply(At.translate)).multiply(At.skew)).multiply(At.scale);
|
|
@@ -7942,48 +7942,48 @@ function s2() {
|
|
|
7942
7942
|
var fe = this.path;
|
|
7943
7943
|
T = JSON.parse(JSON.stringify(this.ctx.clip_path)), this.path = G(T, this.posX + this.margin[3], -1 * ce + Mt), it.call(this, "fill", !0), this.path = fe;
|
|
7944
7944
|
}
|
|
7945
|
-
var
|
|
7946
|
-
A.scale >= 0.01 && (H = this.pdf.internal.getFontSize(), this.pdf.setFontSize(H * A.scale),
|
|
7945
|
+
var Ot = G([JSON.parse(JSON.stringify(Dt))], this.posX + this.margin[3], -ce + Mt + this.ctx.prevPageLastElemOffset)[0];
|
|
7946
|
+
A.scale >= 0.01 && (H = this.pdf.internal.getFontSize(), this.pdf.setFontSize(H * A.scale), J = this.lineWidth, this.lineWidth = J * A.scale);
|
|
7947
7947
|
var re = this.autoPaging !== "text";
|
|
7948
|
-
if (re ||
|
|
7949
|
-
if (re ||
|
|
7950
|
-
var Tt = re ? A.text : this.pdf.splitTextToSize(A.text, A.maxWidth || le -
|
|
7951
|
-
ge && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], Zt, ve, null).clip().discardPath()), this.pdf.text(Tt, ze.x, ze.y, { angle: A.angle, align:
|
|
7948
|
+
if (re || Ot.y + Ot.h <= qt) {
|
|
7949
|
+
if (re || Ot.y >= Mt && Ot.x <= le) {
|
|
7950
|
+
var Tt = re ? A.text : this.pdf.splitTextToSize(A.text, A.maxWidth || le - Ot.x)[0], ze = G([JSON.parse(JSON.stringify(St))], this.posX + this.margin[3], -ce + Mt + this.ctx.prevPageLastElemOffset)[0], ge = re && (Wt > Ht || Wt < yt) && P.call(this);
|
|
7951
|
+
ge && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], Zt, ve, null).clip().discardPath()), this.pdf.text(Tt, ze.x, ze.y, { angle: A.angle, align: O, renderingMode: A.renderingMode }), ge && this.pdf.restoreGraphicsState();
|
|
7952
7952
|
}
|
|
7953
|
-
} else
|
|
7954
|
-
A.scale >= 0.01 && (this.pdf.setFontSize(H), this.lineWidth =
|
|
7953
|
+
} else Ot.y < qt && (this.ctx.prevPageLastElemOffset += qt - Ot.y);
|
|
7954
|
+
A.scale >= 0.01 && (this.pdf.setFontSize(H), this.lineWidth = J);
|
|
7955
7955
|
}
|
|
7956
|
-
} else A.scale >= 0.01 && (H = this.pdf.internal.getFontSize(), this.pdf.setFontSize(H * A.scale),
|
|
7957
|
-
}, z = function(A,
|
|
7958
|
-
T = T || 0, H = H || 0, this.pdf.internal.out(e(A + T) + " " + n(
|
|
7959
|
-
}, U = function(A,
|
|
7960
|
-
return this.pdf.lines(A,
|
|
7961
|
-
}, nt = function(A,
|
|
7962
|
-
this.pdf.internal.out([t(s(T + A)), t(a(H +
|
|
7963
|
-
}, ot = function(A,
|
|
7964
|
-
for (var
|
|
7965
|
-
var at = Math.abs(T -
|
|
7966
|
-
at <
|
|
7967
|
-
for (var st = [], gt = H ? -1 : 1, At =
|
|
7956
|
+
} else A.scale >= 0.01 && (H = this.pdf.internal.getFontSize(), this.pdf.setFontSize(H * A.scale), J = this.lineWidth, this.lineWidth = J * A.scale), this.pdf.text(A.text, gt.x + this.posX, gt.y + this.posY, { angle: A.angle, align: O, renderingMode: A.renderingMode, maxWidth: A.maxWidth }), A.scale >= 0.01 && (this.pdf.setFontSize(H), this.lineWidth = J);
|
|
7957
|
+
}, z = function(A, O, T, H) {
|
|
7958
|
+
T = T || 0, H = H || 0, this.pdf.internal.out(e(A + T) + " " + n(O + H) + " l");
|
|
7959
|
+
}, U = function(A, O, T) {
|
|
7960
|
+
return this.pdf.lines(A, O, T, null, null);
|
|
7961
|
+
}, nt = function(A, O, T, H, J, Z, at, st) {
|
|
7962
|
+
this.pdf.internal.out([t(s(T + A)), t(a(H + O)), t(s(J + A)), t(a(Z + O)), t(s(at + A)), t(a(st + O)), "c"].join(" "));
|
|
7963
|
+
}, ot = function(A, O, T, H) {
|
|
7964
|
+
for (var J = 2 * Math.PI, Z = Math.PI / 2; O > T; ) O -= J;
|
|
7965
|
+
var at = Math.abs(T - O);
|
|
7966
|
+
at < J && H && (at = J - at);
|
|
7967
|
+
for (var st = [], gt = H ? -1 : 1, At = O; at > 1e-5; ) {
|
|
7968
7968
|
var kt = At + gt * Math.min(at, Z);
|
|
7969
7969
|
st.push(ft.call(this, A, At, kt)), at -= Math.abs(kt - At), At = kt;
|
|
7970
7970
|
}
|
|
7971
7971
|
return st;
|
|
7972
|
-
}, ft = function(A,
|
|
7973
|
-
var H = (T -
|
|
7974
|
-
return { x1: A * Math.cos(
|
|
7972
|
+
}, ft = function(A, O, T) {
|
|
7973
|
+
var H = (T - O) / 2, J = A * Math.cos(H), Z = A * Math.sin(H), at = J, st = -Z, gt = at * at + st * st, At = gt + at * J + st * Z, kt = 4 / 3 * (Math.sqrt(2 * gt * At) - At) / (at * Z - st * J), St = at - kt * st, Dt = st + kt * at, M = St, _t = -Dt, ae = H + O, Ht = Math.cos(ae), yt = Math.sin(ae);
|
|
7974
|
+
return { x1: A * Math.cos(O), y1: A * Math.sin(O), x2: St * Ht - Dt * yt, y2: St * yt + Dt * Ht, x3: M * Ht - _t * yt, y3: M * yt + _t * Ht, x4: A * Math.cos(T), y4: A * Math.sin(T) };
|
|
7975
7975
|
}, rt = function(A) {
|
|
7976
7976
|
return 180 * A / Math.PI;
|
|
7977
|
-
}, ht = function(A,
|
|
7978
|
-
var at = A + 0.5 * (T - A), st =
|
|
7977
|
+
}, ht = function(A, O, T, H, J, Z) {
|
|
7978
|
+
var at = A + 0.5 * (T - A), st = O + 0.5 * (H - O), gt = J + 0.5 * (T - J), At = Z + 0.5 * (H - Z), kt = Math.min(A, J, at, gt), St = Math.max(A, J, at, gt), Dt = Math.min(O, Z, st, At), M = Math.max(O, Z, st, At);
|
|
7979
7979
|
return new u(kt, Dt, St - kt, M - Dt);
|
|
7980
|
-
}, Nt = function(A,
|
|
7981
|
-
var gt, At, kt, St, Dt, M, _t, ae, Ht, yt, Wt, Mt, zt, qt, ve = T - A, le = H -
|
|
7982
|
-
for (At = 0; At < 41; At++) Ht = (_t = (kt = A + (gt = At / 40) * ve) + gt * ((Dt = T + gt * Zt) - kt)) + gt * (Dt + gt * (
|
|
7980
|
+
}, Nt = function(A, O, T, H, J, Z, at, st) {
|
|
7981
|
+
var gt, At, kt, St, Dt, M, _t, ae, Ht, yt, Wt, Mt, zt, qt, ve = T - A, le = H - O, Zt = J - T, ce = Z - H, fe = at - J, Ot = st - Z;
|
|
7982
|
+
for (At = 0; At < 41; At++) Ht = (_t = (kt = A + (gt = At / 40) * ve) + gt * ((Dt = T + gt * Zt) - kt)) + gt * (Dt + gt * (J + gt * fe - Dt) - _t), yt = (ae = (St = O + gt * le) + gt * ((M = H + gt * ce) - St)) + gt * (M + gt * (Z + gt * Ot - M) - ae), At == 0 ? (Wt = Ht, Mt = yt, zt = Ht, qt = yt) : (Wt = Math.min(Wt, Ht), Mt = Math.min(Mt, yt), zt = Math.max(zt, Ht), qt = Math.max(qt, yt));
|
|
7983
7983
|
return new u(Math.round(Wt), Math.round(Mt), Math.round(zt - Wt), Math.round(qt - Mt));
|
|
7984
7984
|
}, wt = function() {
|
|
7985
7985
|
if (this.prevLineDash || this.ctx.lineDash.length || this.ctx.lineDashOffset) {
|
|
7986
|
-
var A,
|
|
7986
|
+
var A, O, T = (A = this.ctx.lineDash, O = this.ctx.lineDashOffset, JSON.stringify({ lineDash: A, lineDashOffset: O }));
|
|
7987
7987
|
this.prevLineDash !== T && (this.pdf.setLineDash(this.ctx.lineDash, this.ctx.lineDashOffset), this.prevLineDash = T);
|
|
7988
7988
|
}
|
|
7989
7989
|
};
|
|
@@ -7997,14 +7997,14 @@ function s2() {
|
|
|
7997
7997
|
*/
|
|
7998
7998
|
(function(r) {
|
|
7999
7999
|
var t = function(c) {
|
|
8000
|
-
var u, f, d, g, x, N, p,
|
|
8001
|
-
for (f = [], d = 0, g = (c += u = "\0\0\0\0".slice(c.length % 4 || 4)).length; g > d; d += 4) (x = (c.charCodeAt(d) << 24) + (c.charCodeAt(d + 1) << 16) + (c.charCodeAt(d + 2) << 8) + c.charCodeAt(d + 3)) !== 0 ? (N = (x = ((x = ((x = ((x = (x - (B = x % 85)) / 85) - (P = x % 85)) / 85) - (
|
|
8000
|
+
var u, f, d, g, x, N, p, j, P, B;
|
|
8001
|
+
for (f = [], d = 0, g = (c += u = "\0\0\0\0".slice(c.length % 4 || 4)).length; g > d; d += 4) (x = (c.charCodeAt(d) << 24) + (c.charCodeAt(d + 1) << 16) + (c.charCodeAt(d + 2) << 8) + c.charCodeAt(d + 3)) !== 0 ? (N = (x = ((x = ((x = ((x = (x - (B = x % 85)) / 85) - (P = x % 85)) / 85) - (j = x % 85)) / 85) - (p = x % 85)) / 85) % 85, f.push(N + 33, p + 33, j + 33, P + 33, B + 33)) : f.push(122);
|
|
8002
8002
|
return (function(k, G) {
|
|
8003
8003
|
for (var Y = G; Y > 0; Y--) k.pop();
|
|
8004
8004
|
})(f, u.length), String.fromCharCode.apply(String, f) + "~>";
|
|
8005
8005
|
}, e = function(c) {
|
|
8006
|
-
var u, f, d, g, x, N = String, p = "length",
|
|
8007
|
-
for (c[B](-2), c = c[B](0, -2)[k](/\s/g, "")[k]("z", "!!!!!"), d = [], g = 0, x = (c += u = "uuuuu"[B](c[p] % 5 || 5))[p]; x > g; g += 5) f = 52200625 * (c[P](g) - 33) + 614125 * (c[P](g + 1) - 33) + 7225 * (c[P](g + 2) - 33) + 85 * (c[P](g + 3) - 33) + (c[P](g + 4) - 33), d.push(
|
|
8006
|
+
var u, f, d, g, x, N = String, p = "length", j = 255, P = "charCodeAt", B = "slice", k = "replace";
|
|
8007
|
+
for (c[B](-2), c = c[B](0, -2)[k](/\s/g, "")[k]("z", "!!!!!"), d = [], g = 0, x = (c += u = "uuuuu"[B](c[p] % 5 || 5))[p]; x > g; g += 5) f = 52200625 * (c[P](g) - 33) + 614125 * (c[P](g + 1) - 33) + 7225 * (c[P](g + 2) - 33) + 85 * (c[P](g + 3) - 33) + (c[P](g + 4) - 33), d.push(j & f >> 24, j & f >> 16, j & f >> 8, j & f);
|
|
8008
8008
|
return (function(G, Y) {
|
|
8009
8009
|
for (var q = Y; q > 0; q--) G.pop();
|
|
8010
8010
|
})(d, u[p]), N.fromCharCode.apply(N, d);
|
|
@@ -8067,9 +8067,9 @@ function s2() {
|
|
|
8067
8067
|
var u = void 0;
|
|
8068
8068
|
try {
|
|
8069
8069
|
u = (function(f, d, g) {
|
|
8070
|
-
var x = new XMLHttpRequest(), N = 0, p = function(
|
|
8071
|
-
var P =
|
|
8072
|
-
for (N = 0; N < P; N += 1) B.push(k(255 &
|
|
8070
|
+
var x = new XMLHttpRequest(), N = 0, p = function(j) {
|
|
8071
|
+
var P = j.length, B = [], k = String.fromCharCode;
|
|
8072
|
+
for (N = 0; N < P; N += 1) B.push(k(255 & j.charCodeAt(N)));
|
|
8073
8073
|
return B.join("");
|
|
8074
8074
|
};
|
|
8075
8075
|
if (x.open("GET", f, !d), x.overrideMimeType("text/plain; charset=x-user-defined"), d === !1 && (x.onload = function() {
|
|
@@ -8083,14 +8083,14 @@ function s2() {
|
|
|
8083
8083
|
}, r.allowFsRead = void 0, r.loadImageFile = r.loadFile;
|
|
8084
8084
|
})(Rt.API), (function(r) {
|
|
8085
8085
|
function t() {
|
|
8086
|
-
return (
|
|
8086
|
+
return (Xt.html2canvas ? Promise.resolve(Xt.html2canvas) : import("./html2canvas.esm-BWVIUcAF.js")).catch(function(u) {
|
|
8087
8087
|
return Promise.reject(new Error("Could not load html2canvas: " + u));
|
|
8088
8088
|
}).then(function(u) {
|
|
8089
8089
|
return u.default ? u.default : u;
|
|
8090
8090
|
});
|
|
8091
8091
|
}
|
|
8092
8092
|
function e() {
|
|
8093
|
-
return (
|
|
8093
|
+
return (Xt.DOMPurify ? Promise.resolve(Xt.DOMPurify) : import("./purify.es-C841O74m.js")).catch(function(u) {
|
|
8094
8094
|
return Promise.reject(new Error("Could not load dompurify: " + u));
|
|
8095
8095
|
}).then(function(u) {
|
|
8096
8096
|
return u.default ? u.default : u;
|
|
@@ -8181,10 +8181,10 @@ function s2() {
|
|
|
8181
8181
|
return this.thenList(u).then(t).then(function(f) {
|
|
8182
8182
|
var d = this.opt.jsPDF, g = this.opt.fontFaces, x = typeof this.opt.width != "number" || isNaN(this.opt.width) || typeof this.opt.windowWidth != "number" || isNaN(this.opt.windowWidth) ? 1 : this.opt.width / this.opt.windowWidth, N = Object.assign({ async: !0, allowTaint: !0, scale: x, scrollX: this.opt.scrollX || 0, scrollY: this.opt.scrollY || 0, backgroundColor: "#ffffff", imageTimeout: 15e3, logging: !0, proxy: null, removeContainer: !0, foreignObjectRendering: !1, useCORS: !1 }, this.opt.html2canvas);
|
|
8183
8183
|
if (delete N.onrendered, d.context2d.autoPaging = this.opt.autoPaging === void 0 || this.opt.autoPaging, d.context2d.posX = this.opt.x, d.context2d.posY = this.opt.y, d.context2d.margin = this.opt.margin, d.context2d.fontFaces = g, g) for (var p = 0; p < g.length; ++p) {
|
|
8184
|
-
var
|
|
8184
|
+
var j = g[p], P = j.src.find(function(B) {
|
|
8185
8185
|
return B.format === "truetype";
|
|
8186
8186
|
});
|
|
8187
|
-
P && d.addFont(P.url,
|
|
8187
|
+
P && d.addFont(P.url, j.ref.name, j.ref.style);
|
|
8188
8188
|
}
|
|
8189
8189
|
return N.windowHeight = N.windowHeight || 0, N.windowHeight = N.windowHeight == 0 ? Math.max(this.prop.container.clientHeight, this.prop.container.scrollHeight, this.prop.container.offsetHeight) : N.windowHeight, d.context2d.save(!0), f(this.prop.container, N);
|
|
8190
8190
|
}).then(function(f) {
|
|
@@ -8359,17 +8359,17 @@ function s2() {
|
|
|
8359
8359
|
default:
|
|
8360
8360
|
throw "Invalid unit: " + f;
|
|
8361
8361
|
}
|
|
8362
|
-
var
|
|
8362
|
+
var j, P = 0, B = 0;
|
|
8363
8363
|
if (p.hasOwnProperty(N)) P = p[N][1] / x, B = p[N][0] / x;
|
|
8364
8364
|
else try {
|
|
8365
8365
|
P = d[1], B = d[0];
|
|
8366
8366
|
} catch {
|
|
8367
8367
|
throw new Error("Invalid format: " + d);
|
|
8368
8368
|
}
|
|
8369
|
-
if (u === "p" || u === "portrait") u = "p", B > P && (
|
|
8369
|
+
if (u === "p" || u === "portrait") u = "p", B > P && (j = B, B = P, P = j);
|
|
8370
8370
|
else {
|
|
8371
8371
|
if (u !== "l" && u !== "landscape") throw "Invalid orientation: " + u;
|
|
8372
|
-
u = "l", P > B && (
|
|
8372
|
+
u = "l", P > B && (j = B, B = P, P = j);
|
|
8373
8373
|
}
|
|
8374
8374
|
return { width: B, height: P, unit: f, k: x, orientation: u };
|
|
8375
8375
|
}, r.html = function(u, f) {
|
|
@@ -8485,7 +8485,7 @@ endobj\r
|
|
|
8485
8485
|
var f, d = this.decode.DCT_DECODE, g = null;
|
|
8486
8486
|
if (typeof e == "string" || this.__addimage__.isArrayBuffer(e) || this.__addimage__.isArrayBufferView(e)) {
|
|
8487
8487
|
switch (e = c || e, e = this.__addimage__.isArrayBuffer(e) ? new Uint8Array(e) : e, f = (function(x) {
|
|
8488
|
-
for (var N, p = 256 * x.charCodeAt(4) + x.charCodeAt(5),
|
|
8488
|
+
for (var N, p = 256 * x.charCodeAt(4) + x.charCodeAt(5), j = x.length, P = { width: 0, height: 0, numcomponents: 1 }, B = 4; B < j; B += 2) {
|
|
8489
8489
|
if (B += p, t.indexOf(x.charCodeAt(B + 1)) !== -1) {
|
|
8490
8490
|
N = 256 * x.charCodeAt(B + 5) + x.charCodeAt(B + 6), P = { width: 256 * x.charCodeAt(B + 7) + x.charCodeAt(B + 8), height: N, numcomponents: x.charCodeAt(B + 9) };
|
|
8491
8491
|
break;
|
|
@@ -8512,26 +8512,26 @@ endobj\r
|
|
|
8512
8512
|
var s, a = R1(r, { checkCrc: !0 }), c = a.width, u = a.height, f = a.channels, d = a.palette, g = a.depth;
|
|
8513
8513
|
s = d && f === 1 ? (function(K) {
|
|
8514
8514
|
for (var R = K.width, tt = K.height, _ = K.data, F = K.palette, z = K.depth, U = !1, nt = [], ot = [], ft = void 0, rt = !1, ht = 0, Nt = 0; Nt < F.length; Nt++) {
|
|
8515
|
-
var wt =
|
|
8516
|
-
nt.push(A,
|
|
8515
|
+
var wt = Ju(F[Nt], 4), A = wt[0], O = wt[1], T = wt[2], H = wt[3];
|
|
8516
|
+
nt.push(A, O, T), H != null && (H === 0 ? (ht++, ot.length < 1 && ot.push(Nt)) : H < 255 && (rt = !0));
|
|
8517
8517
|
}
|
|
8518
8518
|
if (rt || ht > 1) {
|
|
8519
8519
|
U = !0, ot = void 0;
|
|
8520
|
-
var
|
|
8521
|
-
ft = new Uint8Array(
|
|
8522
|
-
for (var Z = new DataView(_.buffer), at = 0; at <
|
|
8523
|
-
var st = Do(Z, at, z), gt =
|
|
8520
|
+
var J = R * tt;
|
|
8521
|
+
ft = new Uint8Array(J);
|
|
8522
|
+
for (var Z = new DataView(_.buffer), at = 0; at < J; at++) {
|
|
8523
|
+
var st = Do(Z, at, z), gt = Ju(F[st], 4)[3];
|
|
8524
8524
|
ft[at] = gt;
|
|
8525
8525
|
}
|
|
8526
8526
|
} else ht === 0 && (ot = void 0);
|
|
8527
8527
|
return { colorSpace: "Indexed", colorsPerPixel: 1, sMaskBitsPerComponent: U ? 8 : void 0, colorBytes: _, alphaBytes: ft, needSMask: U, palette: nt, mask: ot };
|
|
8528
8528
|
})(a) : f === 2 || f === 4 ? (function(K) {
|
|
8529
|
-
for (var R = K.data, tt = K.width, _ = K.height, F = K.channels, z = K.depth, U = F === 2 ? "DeviceGray" : "DeviceRGB", nt = F - 1, ot = tt * _, ft = nt, rt = ot * ft, ht = 1 * ot, Nt = Math.ceil(rt * z / 8), wt = Math.ceil(ht * z / 8), A = new Uint8Array(Nt),
|
|
8530
|
-
for (var st = at * F, gt = 0; gt < ft; gt++)
|
|
8529
|
+
for (var R = K.data, tt = K.width, _ = K.height, F = K.channels, z = K.depth, U = F === 2 ? "DeviceGray" : "DeviceRGB", nt = F - 1, ot = tt * _, ft = nt, rt = ot * ft, ht = 1 * ot, Nt = Math.ceil(rt * z / 8), wt = Math.ceil(ht * z / 8), A = new Uint8Array(Nt), O = new Uint8Array(wt), T = new DataView(R.buffer), H = new DataView(A.buffer), J = new DataView(O.buffer), Z = !1, at = 0; at < ot; at++) {
|
|
8530
|
+
for (var st = at * F, gt = 0; gt < ft; gt++) Xl(H, Do(T, st + gt, z), at * ft + gt, z);
|
|
8531
8531
|
var At = Do(T, st + ft, z);
|
|
8532
|
-
At < (1 << z) - 1 && (Z = !0),
|
|
8532
|
+
At < (1 << z) - 1 && (Z = !0), Xl(J, At, 1 * at, z);
|
|
8533
8533
|
}
|
|
8534
|
-
return { colorSpace: U, colorsPerPixel: nt, sMaskBitsPerComponent: Z ? z : void 0, colorBytes: A, alphaBytes:
|
|
8534
|
+
return { colorSpace: U, colorsPerPixel: nt, sMaskBitsPerComponent: Z ? z : void 0, colorBytes: A, alphaBytes: O, needSMask: Z };
|
|
8535
8535
|
})(a) : (function(K) {
|
|
8536
8536
|
var R = K.data, tt = K.channels === 1 ? "DeviceGray" : "DeviceRGB";
|
|
8537
8537
|
return { colorSpace: tt, colorsPerPixel: tt === "DeviceGray" ? 1 : 3, colorBytes: R instanceof Uint16Array ? (function(_) {
|
|
@@ -8539,7 +8539,7 @@ endobj\r
|
|
|
8539
8539
|
return z;
|
|
8540
8540
|
})(R) : R, needSMask: !1 };
|
|
8541
8541
|
})(a);
|
|
8542
|
-
var x, N, p,
|
|
8542
|
+
var x, N, p, j = s, P = j.colorSpace, B = j.colorsPerPixel, k = j.sMaskBitsPerComponent, G = j.colorBytes, Y = j.alphaBytes, q = j.needSMask, it = j.palette, mt = j.mask, dt = null;
|
|
8543
8543
|
return n !== Rt.API.image_compression.NONE && typeof Go == "function" ? (dt = (function(K) {
|
|
8544
8544
|
var R;
|
|
8545
8545
|
switch (K) {
|
|
@@ -8680,15 +8680,15 @@ endobj\r
|
|
|
8680
8680
|
var g = n[d], x = n[d + 1], N = n[d + 2], p = n[d + 3];
|
|
8681
8681
|
a[u++] = g, a[u++] = x, a[u++] = N, c[f++] = p;
|
|
8682
8682
|
}
|
|
8683
|
-
var
|
|
8684
|
-
return { alpha: this.__addimage__.arrayBufferToBinaryString(c), data:
|
|
8683
|
+
var j = this.__addimage__.arrayBufferToBinaryString(a);
|
|
8684
|
+
return { alpha: this.__addimage__.arrayBufferToBinaryString(c), data: j, index: t, alias: e, colorSpace: "DeviceRGB", bitsPerComponent: 8, width: r.width, height: r.height };
|
|
8685
8685
|
}, Rt.API.setLanguage = function(r) {
|
|
8686
8686
|
return this.internal.languageSettings === void 0 && (this.internal.languageSettings = {}, this.internal.languageSettings.isSubscribed = !1), { af: "Afrikaans", sq: "Albanian", ar: "Arabic (Standard)", "ar-DZ": "Arabic (Algeria)", "ar-BH": "Arabic (Bahrain)", "ar-EG": "Arabic (Egypt)", "ar-IQ": "Arabic (Iraq)", "ar-JO": "Arabic (Jordan)", "ar-KW": "Arabic (Kuwait)", "ar-LB": "Arabic (Lebanon)", "ar-LY": "Arabic (Libya)", "ar-MA": "Arabic (Morocco)", "ar-OM": "Arabic (Oman)", "ar-QA": "Arabic (Qatar)", "ar-SA": "Arabic (Saudi Arabia)", "ar-SY": "Arabic (Syria)", "ar-TN": "Arabic (Tunisia)", "ar-AE": "Arabic (U.A.E.)", "ar-YE": "Arabic (Yemen)", an: "Aragonese", hy: "Armenian", as: "Assamese", ast: "Asturian", az: "Azerbaijani", eu: "Basque", be: "Belarusian", bn: "Bengali", bs: "Bosnian", br: "Breton", bg: "Bulgarian", my: "Burmese", ca: "Catalan", ch: "Chamorro", ce: "Chechen", zh: "Chinese", "zh-HK": "Chinese (Hong Kong)", "zh-CN": "Chinese (PRC)", "zh-SG": "Chinese (Singapore)", "zh-TW": "Chinese (Taiwan)", cv: "Chuvash", co: "Corsican", cr: "Cree", hr: "Croatian", cs: "Czech", da: "Danish", nl: "Dutch (Standard)", "nl-BE": "Dutch (Belgian)", en: "English", "en-AU": "English (Australia)", "en-BZ": "English (Belize)", "en-CA": "English (Canada)", "en-IE": "English (Ireland)", "en-JM": "English (Jamaica)", "en-NZ": "English (New Zealand)", "en-PH": "English (Philippines)", "en-ZA": "English (South Africa)", "en-TT": "English (Trinidad & Tobago)", "en-GB": "English (United Kingdom)", "en-US": "English (United States)", "en-ZW": "English (Zimbabwe)", eo: "Esperanto", et: "Estonian", fo: "Faeroese", fj: "Fijian", fi: "Finnish", fr: "French (Standard)", "fr-BE": "French (Belgium)", "fr-CA": "French (Canada)", "fr-FR": "French (France)", "fr-LU": "French (Luxembourg)", "fr-MC": "French (Monaco)", "fr-CH": "French (Switzerland)", fy: "Frisian", fur: "Friulian", gd: "Gaelic (Scots)", "gd-IE": "Gaelic (Irish)", gl: "Galacian", ka: "Georgian", de: "German (Standard)", "de-AT": "German (Austria)", "de-DE": "German (Germany)", "de-LI": "German (Liechtenstein)", "de-LU": "German (Luxembourg)", "de-CH": "German (Switzerland)", el: "Greek", gu: "Gujurati", ht: "Haitian", he: "Hebrew", hi: "Hindi", hu: "Hungarian", is: "Icelandic", id: "Indonesian", iu: "Inuktitut", ga: "Irish", it: "Italian (Standard)", "it-CH": "Italian (Switzerland)", ja: "Japanese", kn: "Kannada", ks: "Kashmiri", kk: "Kazakh", km: "Khmer", ky: "Kirghiz", tlh: "Klingon", ko: "Korean", "ko-KP": "Korean (North Korea)", "ko-KR": "Korean (South Korea)", la: "Latin", lv: "Latvian", lt: "Lithuanian", lb: "Luxembourgish", mk: "North Macedonia", ms: "Malay", ml: "Malayalam", mt: "Maltese", mi: "Maori", mr: "Marathi", mo: "Moldavian", nv: "Navajo", ng: "Ndonga", ne: "Nepali", no: "Norwegian", nb: "Norwegian (Bokmal)", nn: "Norwegian (Nynorsk)", oc: "Occitan", or: "Oriya", om: "Oromo", fa: "Persian", "fa-IR": "Persian/Iran", pl: "Polish", pt: "Portuguese", "pt-BR": "Portuguese (Brazil)", pa: "Punjabi", "pa-IN": "Punjabi (India)", "pa-PK": "Punjabi (Pakistan)", qu: "Quechua", rm: "Rhaeto-Romanic", ro: "Romanian", "ro-MO": "Romanian (Moldavia)", ru: "Russian", "ru-MO": "Russian (Moldavia)", sz: "Sami (Lappish)", sg: "Sango", sa: "Sanskrit", sc: "Sardinian", sd: "Sindhi", si: "Singhalese", sr: "Serbian", sk: "Slovak", sl: "Slovenian", so: "Somani", sb: "Sorbian", es: "Spanish", "es-AR": "Spanish (Argentina)", "es-BO": "Spanish (Bolivia)", "es-CL": "Spanish (Chile)", "es-CO": "Spanish (Colombia)", "es-CR": "Spanish (Costa Rica)", "es-DO": "Spanish (Dominican Republic)", "es-EC": "Spanish (Ecuador)", "es-SV": "Spanish (El Salvador)", "es-GT": "Spanish (Guatemala)", "es-HN": "Spanish (Honduras)", "es-MX": "Spanish (Mexico)", "es-NI": "Spanish (Nicaragua)", "es-PA": "Spanish (Panama)", "es-PY": "Spanish (Paraguay)", "es-PE": "Spanish (Peru)", "es-PR": "Spanish (Puerto Rico)", "es-ES": "Spanish (Spain)", "es-UY": "Spanish (Uruguay)", "es-VE": "Spanish (Venezuela)", sx: "Sutu", sw: "Swahili", sv: "Swedish", "sv-FI": "Swedish (Finland)", "sv-SV": "Swedish (Sweden)", ta: "Tamil", tt: "Tatar", te: "Teluga", th: "Thai", tig: "Tigre", ts: "Tsonga", tn: "Tswana", tr: "Turkish", tk: "Turkmen", uk: "Ukrainian", hsb: "Upper Sorbian", ur: "Urdu", ve: "Venda", vi: "Vietnamese", vo: "Volapuk", wa: "Walloon", cy: "Welsh", xh: "Xhosa", ji: "Yiddish", zu: "Zulu" }[r] !== void 0 && (this.internal.languageSettings.languageCode = r, this.internal.languageSettings.isSubscribed === !1 && (this.internal.events.subscribe("putCatalog", function() {
|
|
8687
8687
|
this.internal.write("/Lang (" + this.internal.languageSettings.languageCode + ")");
|
|
8688
8688
|
}), this.internal.languageSettings.isSubscribed = !0)), this;
|
|
8689
8689
|
}, Ki = Rt.API, Ns = Ki.getCharWidthsArray = function(r, t) {
|
|
8690
|
-
var e, n, s = (t = t || {}).font || this.internal.getFont(), a = t.fontSize || this.internal.getFontSize(), c = t.charSpace || this.internal.getCharSpace(), u = t.widths ? t.widths : s.metadata.Unicode.widths, f = u.fof ? u.fof : 1, d = t.kerning ? t.kerning : s.metadata.Unicode.kerning, g = d.fof ? d.fof : 1, x = t.doKerning !== !1, N = 0, p = r.length,
|
|
8691
|
-
for (e = 0; e < p; e++) n = r.charCodeAt(e), typeof s.metadata.widthOfString == "function" ? B.push((s.metadata.widthOfGlyph(s.metadata.characterToGlyph(n)) + c * (1e3 / a) || 0) / 1e3) : (N = x && xe(d[n]) === "object" && !isNaN(parseInt(d[n][
|
|
8690
|
+
var e, n, s = (t = t || {}).font || this.internal.getFont(), a = t.fontSize || this.internal.getFontSize(), c = t.charSpace || this.internal.getCharSpace(), u = t.widths ? t.widths : s.metadata.Unicode.widths, f = u.fof ? u.fof : 1, d = t.kerning ? t.kerning : s.metadata.Unicode.kerning, g = d.fof ? d.fof : 1, x = t.doKerning !== !1, N = 0, p = r.length, j = 0, P = u[0] || f, B = [];
|
|
8691
|
+
for (e = 0; e < p; e++) n = r.charCodeAt(e), typeof s.metadata.widthOfString == "function" ? B.push((s.metadata.widthOfGlyph(s.metadata.characterToGlyph(n)) + c * (1e3 / a) || 0) / 1e3) : (N = x && xe(d[n]) === "object" && !isNaN(parseInt(d[n][j], 10)) ? d[n][j] / g : 0, B.push((u[n] || P) / f + N)), j = n;
|
|
8692
8692
|
return B;
|
|
8693
8693
|
}, Ul = Ki.getStringUnitWidth = function(r, t) {
|
|
8694
8694
|
var e = (t = t || {}).fontSize || this.internal.getFontSize(), n = t.font || this.internal.getFont(), s = t.charSpace || this.internal.getCharSpace();
|
|
@@ -8703,7 +8703,7 @@ endobj\r
|
|
|
8703
8703
|
return f !== a && s.push(r.slice(f, a)), s;
|
|
8704
8704
|
}, Hl = function(r, t, e) {
|
|
8705
8705
|
e || (e = {});
|
|
8706
|
-
var n, s, a, c, u, f, d, g = [], x = [g], N = e.textIndent || 0, p = 0,
|
|
8706
|
+
var n, s, a, c, u, f, d, g = [], x = [g], N = e.textIndent || 0, p = 0, j = 0, P = r.split(" "), B = Ns.apply(this, [" ", e])[0];
|
|
8707
8707
|
if (f = e.lineIndent === -1 ? P[0].length + 2 : e.lineIndent || 0) {
|
|
8708
8708
|
var k = Array(f).join(" "), G = [];
|
|
8709
8709
|
P.map(function(q) {
|
|
@@ -8716,17 +8716,17 @@ endobj\r
|
|
|
8716
8716
|
for (a = 0, c = P.length; a < c; a++) {
|
|
8717
8717
|
var Y = 0;
|
|
8718
8718
|
if (n = P[a], f && n[0] == `
|
|
8719
|
-
` && (n = n.substr(1), Y = 1), N + p + (
|
|
8719
|
+
` && (n = n.substr(1), Y = 1), N + p + (j = (s = Ns.apply(this, [n, e])).reduce(function(q, it) {
|
|
8720
8720
|
return q + it;
|
|
8721
8721
|
}, 0)) > t || Y) {
|
|
8722
|
-
if (
|
|
8722
|
+
if (j > t) {
|
|
8723
8723
|
for (u = zl.apply(this, [n, s, t - (N + p), t]), g.push(u.shift()), g = [u.pop()]; u.length; ) x.push([u.shift()]);
|
|
8724
|
-
|
|
8724
|
+
j = s.slice(n.length - (g[0] ? g[0].length : 0)).reduce(function(q, it) {
|
|
8725
8725
|
return q + it;
|
|
8726
8726
|
}, 0);
|
|
8727
8727
|
} else g = [n];
|
|
8728
|
-
x.push(g), N =
|
|
8729
|
-
} else g.push(n), N += p +
|
|
8728
|
+
x.push(g), N = j + f, p = B;
|
|
8729
|
+
} else g.push(n), N += p + j, p = B;
|
|
8730
8730
|
}
|
|
8731
8731
|
return d = f ? function(q, it) {
|
|
8732
8732
|
return (it ? k : "") + q.join(" ");
|
|
@@ -8751,24 +8751,24 @@ endobj\r
|
|
|
8751
8751
|
var c = function(N) {
|
|
8752
8752
|
return "0x" + parseInt(N, 10).toString(16);
|
|
8753
8753
|
}, u = r.__fontmetrics__.compress = function(N) {
|
|
8754
|
-
var p,
|
|
8754
|
+
var p, j, P, B, k = ["{"];
|
|
8755
8755
|
for (var G in N) {
|
|
8756
|
-
if (p = N[G], isNaN(parseInt(G, 10)) ?
|
|
8756
|
+
if (p = N[G], isNaN(parseInt(G, 10)) ? j = "'" + G + "'" : (G = parseInt(G, 10), j = (j = c(G).slice(2)).slice(0, -1) + s[j.slice(-1)]), typeof p == "number") p < 0 ? (P = c(p).slice(3), B = "-") : (P = c(p).slice(2), B = ""), P = B + P.slice(0, -1) + s[P.slice(-1)];
|
|
8757
8757
|
else {
|
|
8758
8758
|
if (xe(p) !== "object") throw new Error("Don't know what to do with value type " + xe(p) + ".");
|
|
8759
8759
|
P = u(p);
|
|
8760
8760
|
}
|
|
8761
|
-
k.push(
|
|
8761
|
+
k.push(j + P);
|
|
8762
8762
|
}
|
|
8763
8763
|
return k.push("}"), k.join("");
|
|
8764
8764
|
}, f = r.__fontmetrics__.uncompress = function(N) {
|
|
8765
8765
|
if (typeof N != "string") throw new Error("Invalid argument passed to uncompress.");
|
|
8766
|
-
for (var p,
|
|
8766
|
+
for (var p, j, P, B, k = {}, G = 1, Y = k, q = [], it = "", mt = "", dt = N.length - 1, K = 1; K < dt; K += 1) (B = N[K]) == "'" ? p ? (P = p.join(""), p = void 0) : p = [] : p ? p.push(B) : B == "{" ? (q.push([Y, P]), Y = {}, P = void 0) : B == "}" ? ((j = q.pop())[0][j[1]] = Y, P = void 0, Y = j[0]) : B == "-" ? G = -1 : P === void 0 ? n.hasOwnProperty(B) ? (it += n[B], P = parseInt(it, 16) * G, G = 1, it = "") : it += B : n.hasOwnProperty(B) ? (mt += n[B], Y[P] = parseInt(mt, 16) * G, G = 1, P = void 0, mt = "") : mt += B;
|
|
8767
8767
|
return k;
|
|
8768
8768
|
}, d = { codePages: ["WinAnsiEncoding"], WinAnsiEncoding: f("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}") }, g = { Unicode: { Courier: d, "Courier-Bold": d, "Courier-BoldOblique": d, "Courier-Oblique": d, Helvetica: d, "Helvetica-Bold": d, "Helvetica-BoldOblique": d, "Helvetica-Oblique": d, "Times-Roman": d, "Times-Bold": d, "Times-BoldItalic": d, "Times-Italic": d } }, x = { Unicode: { "Courier-Oblique": f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Times-BoldItalic": f("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"), "Helvetica-Bold": f("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"), Courier: f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Courier-BoldOblique": f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Times-Bold": f("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"), Symbol: f("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"), Helvetica: f("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"), "Helvetica-BoldOblique": f("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"), ZapfDingbats: f("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"), "Courier-Bold": f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Times-Italic": f("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"), "Times-Roman": f("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"), "Helvetica-Oblique": f("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}") } };
|
|
8769
8769
|
r.events.push(["addFont", function(N) {
|
|
8770
|
-
var p = N.font,
|
|
8771
|
-
|
|
8770
|
+
var p = N.font, j = x.Unicode[p.postScriptName];
|
|
8771
|
+
j && (p.metadata.Unicode = {}, p.metadata.Unicode.widths = j.widths, p.metadata.Unicode.kerning = j.kerning);
|
|
8772
8772
|
var P = g.Unicode[p.postScriptName];
|
|
8773
8773
|
P && (p.metadata.Unicode.encoding = P, p.encoding = P.codePages[0]);
|
|
8774
8774
|
}]);
|
|
@@ -8800,7 +8800,7 @@ endobj\r
|
|
|
8800
8800
|
var d = f.getContext("2d");
|
|
8801
8801
|
d.fillStyle = "#fff", d.fillRect(0, 0, f.width, f.height);
|
|
8802
8802
|
var g = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, x = this;
|
|
8803
|
-
return (
|
|
8803
|
+
return (Xt.canvg ? Promise.resolve(Xt.canvg) : import("./index.es-Dnr3WAbj.js")).catch(function(N) {
|
|
8804
8804
|
return Promise.reject(new Error("Could not load canvg: " + N));
|
|
8805
8805
|
}).then(function(N) {
|
|
8806
8806
|
return N.default ? N.default : N;
|
|
@@ -8822,9 +8822,9 @@ endobj\r
|
|
|
8822
8822
|
var e;
|
|
8823
8823
|
r = r || {}, t = t || !1;
|
|
8824
8824
|
var n, s, a, c = { HideToolbar: { defaultValue: !1, value: !1, type: "boolean", explicitSet: !1, valueSet: [!0, !1], pdfVersion: 1.3 }, HideMenubar: { defaultValue: !1, value: !1, type: "boolean", explicitSet: !1, valueSet: [!0, !1], pdfVersion: 1.3 }, HideWindowUI: { defaultValue: !1, value: !1, type: "boolean", explicitSet: !1, valueSet: [!0, !1], pdfVersion: 1.3 }, FitWindow: { defaultValue: !1, value: !1, type: "boolean", explicitSet: !1, valueSet: [!0, !1], pdfVersion: 1.3 }, CenterWindow: { defaultValue: !1, value: !1, type: "boolean", explicitSet: !1, valueSet: [!0, !1], pdfVersion: 1.3 }, DisplayDocTitle: { defaultValue: !1, value: !1, type: "boolean", explicitSet: !1, valueSet: [!0, !1], pdfVersion: 1.4 }, NonFullScreenPageMode: { defaultValue: "UseNone", value: "UseNone", type: "name", explicitSet: !1, valueSet: ["UseNone", "UseOutlines", "UseThumbs", "UseOC"], pdfVersion: 1.3 }, Direction: { defaultValue: "L2R", value: "L2R", type: "name", explicitSet: !1, valueSet: ["L2R", "R2L"], pdfVersion: 1.3 }, ViewArea: { defaultValue: "CropBox", value: "CropBox", type: "name", explicitSet: !1, valueSet: ["MediaBox", "CropBox", "TrimBox", "BleedBox", "ArtBox"], pdfVersion: 1.4 }, ViewClip: { defaultValue: "CropBox", value: "CropBox", type: "name", explicitSet: !1, valueSet: ["MediaBox", "CropBox", "TrimBox", "BleedBox", "ArtBox"], pdfVersion: 1.4 }, PrintArea: { defaultValue: "CropBox", value: "CropBox", type: "name", explicitSet: !1, valueSet: ["MediaBox", "CropBox", "TrimBox", "BleedBox", "ArtBox"], pdfVersion: 1.4 }, PrintClip: { defaultValue: "CropBox", value: "CropBox", type: "name", explicitSet: !1, valueSet: ["MediaBox", "CropBox", "TrimBox", "BleedBox", "ArtBox"], pdfVersion: 1.4 }, PrintScaling: { defaultValue: "AppDefault", value: "AppDefault", type: "name", explicitSet: !1, valueSet: ["AppDefault", "None"], pdfVersion: 1.6 }, Duplex: { defaultValue: "", value: "none", type: "name", explicitSet: !1, valueSet: ["Simplex", "DuplexFlipShortEdge", "DuplexFlipLongEdge", "none"], pdfVersion: 1.7 }, PickTrayByPDFSize: { defaultValue: !1, value: !1, type: "boolean", explicitSet: !1, valueSet: [!0, !1], pdfVersion: 1.7 }, PrintPageRange: { defaultValue: "", value: "", type: "array", explicitSet: !1, valueSet: null, pdfVersion: 1.7 }, NumCopies: { defaultValue: 1, value: 1, type: "integer", explicitSet: !1, valueSet: null, pdfVersion: 1.7 } }, u = Object.keys(c), f = [], d = 0, g = 0, x = 0;
|
|
8825
|
-
function N(
|
|
8825
|
+
function N(j, P) {
|
|
8826
8826
|
var B, k = !1;
|
|
8827
|
-
for (B = 0; B <
|
|
8827
|
+
for (B = 0; B < j.length; B += 1) j[B] === P && (k = !0);
|
|
8828
8828
|
return k;
|
|
8829
8829
|
}
|
|
8830
8830
|
if (this.internal.viewerpreferences === void 0 && (this.internal.viewerpreferences = {}, this.internal.viewerpreferences.configuration = JSON.parse(JSON.stringify(c)), this.internal.viewerpreferences.isSubscribed = !1), e = this.internal.viewerpreferences.configuration, r === "reset" || t === !0) {
|
|
@@ -8848,8 +8848,8 @@ endobj\r
|
|
|
8848
8848
|
}
|
|
8849
8849
|
}
|
|
8850
8850
|
return this.internal.viewerpreferences.isSubscribed === !1 && (this.internal.events.subscribe("putCatalog", function() {
|
|
8851
|
-
var
|
|
8852
|
-
for (
|
|
8851
|
+
var j, P = [];
|
|
8852
|
+
for (j in e) e[j].explicitSet === !0 && (e[j].type === "name" ? P.push("/" + j + " /" + e[j].value) : P.push("/" + j + " " + e[j].value));
|
|
8853
8853
|
P.length !== 0 && this.internal.write(`/ViewerPreferences
|
|
8854
8854
|
<<
|
|
8855
8855
|
` + P.join(`
|
|
@@ -8879,8 +8879,8 @@ begincmap
|
|
|
8879
8879
|
/CMapType 2 def
|
|
8880
8880
|
1 begincodespacerange
|
|
8881
8881
|
<0000><ffff>
|
|
8882
|
-
endcodespacerange`, f = [], x = 0, N = (u = Object.keys(a).sort(function(p,
|
|
8883
|
-
return p -
|
|
8882
|
+
endcodespacerange`, f = [], x = 0, N = (u = Object.keys(a).sort(function(p, j) {
|
|
8883
|
+
return p - j;
|
|
8884
8884
|
})).length; x < N; x++) c = u[x], f.length >= 100 && (g += `
|
|
8885
8885
|
` + f.length + ` beginbfchar
|
|
8886
8886
|
` + f.join(`
|
|
@@ -8900,7 +8900,7 @@ end`;
|
|
|
8900
8900
|
(function(c) {
|
|
8901
8901
|
var u = c.font, f = c.out, d = c.newObject, g = c.putStream;
|
|
8902
8902
|
if (u.metadata instanceof r.API.TTFFont && u.encoding === "Identity-H") {
|
|
8903
|
-
for (var x = u.metadata.Unicode.widths, N = u.metadata.subset.encode(u.metadata.glyIdsUsed, 1), p = "",
|
|
8903
|
+
for (var x = u.metadata.Unicode.widths, N = u.metadata.subset.encode(u.metadata.glyIdsUsed, 1), p = "", j = 0; j < N.length; j++) p += String.fromCharCode(N[j]);
|
|
8904
8904
|
var P = d();
|
|
8905
8905
|
g({ data: p, addLength1: !0, objectId: P }), f("endobj");
|
|
8906
8906
|
var B = d();
|
|
@@ -8916,25 +8916,25 @@ end`;
|
|
|
8916
8916
|
var u = c.font, f = c.out, d = c.newObject, g = c.putStream;
|
|
8917
8917
|
if (u.metadata instanceof r.API.TTFFont && u.encoding === "WinAnsiEncoding") {
|
|
8918
8918
|
for (var x = u.metadata.rawData, N = "", p = 0; p < x.length; p++) N += String.fromCharCode(x[p]);
|
|
8919
|
-
var
|
|
8920
|
-
g({ data: N, addLength1: !0, objectId:
|
|
8919
|
+
var j = d();
|
|
8920
|
+
g({ data: N, addLength1: !0, objectId: j }), f("endobj");
|
|
8921
8921
|
var P = d();
|
|
8922
8922
|
g({ data: n(u.metadata.toUnicode), addLength1: !0, objectId: P }), f("endobj");
|
|
8923
8923
|
var B = d();
|
|
8924
|
-
f("<<"), f("/Descent " + u.metadata.decender), f("/CapHeight " + u.metadata.capHeight), f("/StemV " + u.metadata.stemV), f("/Type /FontDescriptor"), f("/FontFile2 " +
|
|
8924
|
+
f("<<"), f("/Descent " + u.metadata.decender), f("/CapHeight " + u.metadata.capHeight), f("/StemV " + u.metadata.stemV), f("/Type /FontDescriptor"), f("/FontFile2 " + j + " 0 R"), f("/Flags 96"), f("/FontBBox " + r.API.PDFObject.convert(u.metadata.bbox)), f("/FontName /" + Qi(u.fontName)), f("/ItalicAngle " + u.metadata.italicAngle), f("/Ascent " + u.metadata.ascender), f(">>"), f("endobj"), u.objectNumber = d();
|
|
8925
8925
|
for (var k = 0; k < u.metadata.hmtx.widths.length; k++) u.metadata.hmtx.widths[k] = parseInt(u.metadata.hmtx.widths[k] * (1e3 / u.metadata.head.unitsPerEm));
|
|
8926
8926
|
f("<</Subtype/TrueType/Type/Font/ToUnicode " + P + " 0 R/BaseFont/" + Qi(u.fontName) + "/FontDescriptor " + B + " 0 R/Encoding/" + u.encoding + " /FirstChar 29 /LastChar 255 /Widths " + r.API.PDFObject.convert(u.metadata.hmtx.widths) + ">>"), f("endobj"), u.isAlreadyPutted = !0;
|
|
8927
8927
|
}
|
|
8928
8928
|
})(a);
|
|
8929
8929
|
}]);
|
|
8930
8930
|
var s = function(a) {
|
|
8931
|
-
var c, u = a.text || "", f = a.x, d = a.y, g = a.options || {}, x = a.mutex || {}, N = x.pdfEscape, p = x.activeFontKey,
|
|
8932
|
-
if (
|
|
8933
|
-
for (G = u, P = p, Array.isArray(u) && (G = u[0]), k = 0; k < G.length; k += 1)
|
|
8931
|
+
var c, u = a.text || "", f = a.x, d = a.y, g = a.options || {}, x = a.mutex || {}, N = x.pdfEscape, p = x.activeFontKey, j = x.fonts, P = p, B = "", k = 0, G = "", Y = j[P].encoding;
|
|
8932
|
+
if (j[P].encoding !== "Identity-H") return { text: u, x: f, y: d, options: g, mutex: x };
|
|
8933
|
+
for (G = u, P = p, Array.isArray(u) && (G = u[0]), k = 0; k < G.length; k += 1) j[P].metadata.hasOwnProperty("cmap") && (c = j[P].metadata.cmap.unicode.codeMap[G[k].charCodeAt(0)]), c || G[k].charCodeAt(0) < 256 && j[P].metadata.hasOwnProperty("Unicode") ? B += G[k] : B += "";
|
|
8934
8934
|
var q = "";
|
|
8935
8935
|
return parseInt(P.slice(1)) < 14 || Y === "WinAnsiEncoding" ? q = N(B, P).split("").map(function(it) {
|
|
8936
8936
|
return it.charCodeAt(0).toString(16);
|
|
8937
|
-
}).join("") : Y === "Identity-H" && (q = e(B,
|
|
8937
|
+
}).join("") : Y === "Identity-H" && (q = e(B, j[P])), x.isHex = !0, { text: q, x: f, y: d, options: g, mutex: x };
|
|
8938
8938
|
};
|
|
8939
8939
|
t.events.push(["postProcessText", function(a) {
|
|
8940
8940
|
var c = a.text || "", u = [], f = { text: c, x: a.x, y: a.y, options: a.options, mutex: a.mutex };
|
|
@@ -8969,7 +8969,7 @@ end`;
|
|
|
8969
8969
|
*/
|
|
8970
8970
|
(function(r) {
|
|
8971
8971
|
r.__bidiEngine__ = r.prototype.__bidiEngine__ = function(n) {
|
|
8972
|
-
var s, a, c, u, f, d, g, x = t, N = [[0, 3, 0, 1, 0, 0, 0], [0, 3, 0, 1, 2, 2, 0], [0, 3, 0, 17, 2, 0, 1], [0, 3, 5, 5, 4, 1, 0], [0, 3, 21, 21, 4, 0, 1], [0, 3, 5, 5, 4, 2, 0]], p = [[2, 0, 1, 1, 0, 1, 0], [2, 0, 1, 1, 0, 2, 0], [2, 0, 2, 1, 3, 2, 0], [2, 0, 2, 33, 3, 1, 1]],
|
|
8972
|
+
var s, a, c, u, f, d, g, x = t, N = [[0, 3, 0, 1, 0, 0, 0], [0, 3, 0, 1, 2, 2, 0], [0, 3, 0, 17, 2, 0, 1], [0, 3, 5, 5, 4, 1, 0], [0, 3, 21, 21, 4, 0, 1], [0, 3, 5, 5, 4, 2, 0]], p = [[2, 0, 1, 1, 0, 1, 0], [2, 0, 1, 1, 0, 2, 0], [2, 0, 2, 1, 3, 2, 0], [2, 0, 2, 33, 3, 1, 1]], j = { L: 0, R: 1, EN: 2, AN: 3, N: 4, B: 5, S: 6 }, P = { 0: 0, 5: 1, 6: 2, 7: 3, 32: 4, 251: 5, 254: 6, 255: 7 }, B = ["(", ")", "(", "<", ">", "<", "[", "]", "[", "{", "}", "{", "«", "»", "«", "‹", "›", "‹", "⁅", "⁆", "⁅", "⁽", "⁾", "⁽", "₍", "₎", "₍", "≤", "≥", "≤", "〈", "〉", "〈", "﹙", "﹚", "﹙", "﹛", "﹜", "﹛", "﹝", "﹞", "﹝", "﹤", "﹥", "﹤"], k = new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/), G = !1, Y = 0;
|
|
8973
8973
|
this.__bidiEngine__ = {};
|
|
8974
8974
|
var q = function(_) {
|
|
8975
8975
|
var F = _.charCodeAt(), z = F >> 8, U = P[z];
|
|
@@ -9047,24 +9047,24 @@ end`;
|
|
|
9047
9047
|
var U = _.split("");
|
|
9048
9048
|
return z && K(U, z, { hiLevel: Y }), U.reverse(), F && F.reverse(), U.join("");
|
|
9049
9049
|
}, K = function(_, F, z) {
|
|
9050
|
-
var U, nt, ot, ft, rt, ht = -1, Nt = _.length, wt = 0, A = [],
|
|
9050
|
+
var U, nt, ot, ft, rt, ht = -1, Nt = _.length, wt = 0, A = [], O = Y ? p : N, T = [];
|
|
9051
9051
|
for (G = !1, s = !1, a = !1, nt = 0; nt < Nt; nt++) T[nt] = q(_[nt]);
|
|
9052
9052
|
for (ot = 0; ot < Nt; ot++) {
|
|
9053
|
-
if (rt = wt, A[ot] = mt(_, T, A, ot), U = 240 & (wt =
|
|
9053
|
+
if (rt = wt, A[ot] = mt(_, T, A, ot), U = 240 & (wt = O[rt][j[A[ot]]]), wt &= 15, F[ot] = ft = O[wt][5], U > 0) if (U === 16) {
|
|
9054
9054
|
for (nt = ht; nt < ot; nt++) F[nt] = 1;
|
|
9055
9055
|
ht = -1;
|
|
9056
9056
|
} else ht = -1;
|
|
9057
|
-
if (
|
|
9057
|
+
if (O[wt][6]) ht === -1 && (ht = ot);
|
|
9058
9058
|
else if (ht > -1) {
|
|
9059
9059
|
for (nt = ht; nt < ot; nt++) F[nt] = ft;
|
|
9060
9060
|
ht = -1;
|
|
9061
9061
|
}
|
|
9062
9062
|
T[ot] === "B" && (F[ot] = 0), z.hiLevel |= ft;
|
|
9063
9063
|
}
|
|
9064
|
-
a && (function(H,
|
|
9064
|
+
a && (function(H, J, Z) {
|
|
9065
9065
|
for (var at = 0; at < Z; at++) if (H[at] === "S") {
|
|
9066
|
-
|
|
9067
|
-
for (var st = at - 1; st >= 0 && H[st] === "WS"; st--)
|
|
9066
|
+
J[at] = Y;
|
|
9067
|
+
for (var st = at - 1; st >= 0 && H[st] === "WS"; st--) J[st] = Y;
|
|
9068
9068
|
}
|
|
9069
9069
|
})(T, F, Nt);
|
|
9070
9070
|
}, R = function(_, F, z, U, nt) {
|
|
@@ -9215,9 +9215,9 @@ var tn, $n = (function() {
|
|
|
9215
9215
|
for (this.scalarType = e.readInt(), this.tableCount = e.readShort(), this.searchRange = e.readShort(), this.entrySelector = e.readShort(), this.rangeShift = e.readShort(), this.tables = {}, s = 0, a = this.tableCount; 0 <= a ? s < a : s > a; s = 0 <= a ? ++s : --s) n = { tag: e.readString(4), checksum: e.readInt(), offset: e.readInt(), length: e.readInt() }, this.tables[n.tag] = n;
|
|
9216
9216
|
}
|
|
9217
9217
|
return t.prototype.encode = function(e) {
|
|
9218
|
-
var n, s, a, c, u, f, d, g, x, N, p,
|
|
9219
|
-
for (P in p = Object.keys(e).length, f = Math.log(2), x = 16 * Math.floor(Math.log(p) / f), c = Math.floor(x / f), g = 16 * p - x, (s = new $n()).writeInt(this.scalarType), s.writeShort(p), s.writeShort(x), s.writeShort(c), s.writeShort(g), a = 16 * p, d = s.pos + a, u = null,
|
|
9220
|
-
return s.write(
|
|
9218
|
+
var n, s, a, c, u, f, d, g, x, N, p, j, P;
|
|
9219
|
+
for (P in p = Object.keys(e).length, f = Math.log(2), x = 16 * Math.floor(Math.log(p) / f), c = Math.floor(x / f), g = 16 * p - x, (s = new $n()).writeInt(this.scalarType), s.writeShort(p), s.writeShort(x), s.writeShort(c), s.writeShort(g), a = 16 * p, d = s.pos + a, u = null, j = [], e) for (N = e[P], s.writeString(P), s.writeInt(r(N)), s.writeInt(d), s.writeInt(N.length), j = j.concat(N), P === "head" && (u = d), d += N.length; d % 4; ) j.push(0), d++;
|
|
9220
|
+
return s.write(j), n = 2981146554 - r(s.data), s.pos = u + 8, s.writeUInt32(n), s.data;
|
|
9221
9221
|
}, r = function(e) {
|
|
9222
9222
|
var n, s, a, c;
|
|
9223
9223
|
for (e = zf.call(e); e.length % 4; ) e.push(0);
|
|
@@ -9254,7 +9254,7 @@ var l2 = (function() {
|
|
|
9254
9254
|
}, r;
|
|
9255
9255
|
})(), Zl = (function() {
|
|
9256
9256
|
function r(t, e) {
|
|
9257
|
-
var n, s, a, c, u, f, d, g, x, N, p,
|
|
9257
|
+
var n, s, a, c, u, f, d, g, x, N, p, j, P, B, k, G, Y;
|
|
9258
9258
|
switch (this.platformID = t.readUInt16(), this.encodingID = t.readShort(), this.offset = e + t.readInt(), x = t.pos, t.pos = this.offset, this.format = t.readUInt16(), this.length = t.readUInt16(), this.language = t.readUInt16(), this.isUnicode = this.platformID === 3 && this.encodingID === 1 && this.format === 4 || this.platformID === 0 && this.format === 4, this.codeMap = {}, this.format) {
|
|
9259
9259
|
case 0:
|
|
9260
9260
|
for (f = 0; f < 256; ++f) this.codeMap[f] = t.readByte();
|
|
@@ -9280,37 +9280,37 @@ var l2 = (function() {
|
|
|
9280
9280
|
var q, it;
|
|
9281
9281
|
for (it = [], f = q = 0; 0 <= s ? q < s : q > s; f = 0 <= s ? ++q : --q) it.push(t.readUInt16());
|
|
9282
9282
|
return it;
|
|
9283
|
-
})(), f = k = 0, Y = a.length; k < Y; f = ++k) for (B = a[f], n = G =
|
|
9283
|
+
})(), f = k = 0, Y = a.length; k < Y; f = ++k) for (B = a[f], n = G = j = P[f]; j <= B ? G <= B : G >= B; n = j <= B ? ++G : --G) g[f] === 0 ? c = n + d[f] : (c = u[g[f] / 2 + (n - j) - (N - f)] || 0) !== 0 && (c += d[f]), this.codeMap[n] = 65535 & c;
|
|
9284
9284
|
}
|
|
9285
9285
|
t.pos = x;
|
|
9286
9286
|
}
|
|
9287
9287
|
return r.encode = function(t, e) {
|
|
9288
|
-
var n, s, a, c, u, f, d, g, x, N, p,
|
|
9288
|
+
var n, s, a, c, u, f, d, g, x, N, p, j, P, B, k, G, Y, q, it, mt, dt, K, R, tt, _, F, z, U, nt, ot, ft, rt, ht, Nt, wt, A, O, T, H, J, Z, at, st, gt, At, kt;
|
|
9289
9289
|
switch (U = new $n(), c = Object.keys(t).sort(function(St, Dt) {
|
|
9290
9290
|
return St - Dt;
|
|
9291
9291
|
}), e) {
|
|
9292
9292
|
case "macroman":
|
|
9293
9293
|
for (P = 0, B = (function() {
|
|
9294
9294
|
var St = [];
|
|
9295
|
-
for (
|
|
9295
|
+
for (j = 0; j < 256; ++j) St.push(0);
|
|
9296
9296
|
return St;
|
|
9297
9297
|
})(), G = { 0: 0 }, a = {}, nt = 0, ht = c.length; nt < ht; nt++) G[st = t[s = c[nt]]] == null && (G[st] = ++P), a[s] = { old: t[s], new: G[t[s]] }, B[s] = G[t[s]];
|
|
9298
9298
|
return U.writeUInt16(1), U.writeUInt16(0), U.writeUInt32(12), U.writeUInt16(0), U.writeUInt16(262), U.writeUInt16(0), U.write(B), { charMap: a, subtable: U.data, maxGlyphID: P + 1 };
|
|
9299
9299
|
case "unicode":
|
|
9300
9300
|
for (F = [], x = [], Y = 0, G = {}, n = {}, k = d = null, ot = 0, Nt = c.length; ot < Nt; ot++) G[it = t[s = c[ot]]] == null && (G[it] = ++Y), n[s] = { old: it, new: G[it] }, u = G[it] - s, k != null && u === d || (k && x.push(k), F.push(s), d = u), k = s;
|
|
9301
|
-
for (k && x.push(k), x.push(65535), F.push(65535), tt = 2 * (R = F.length), K = 2 * Math.pow(Math.log(R) / Math.LN2, 2), N = Math.log(K / 2) / Math.LN2, dt = 2 * R - K, f = [], mt = [], p = [],
|
|
9302
|
-
if (_ = F[
|
|
9301
|
+
for (k && x.push(k), x.push(65535), F.push(65535), tt = 2 * (R = F.length), K = 2 * Math.pow(Math.log(R) / Math.LN2, 2), N = Math.log(K / 2) / Math.LN2, dt = 2 * R - K, f = [], mt = [], p = [], j = ft = 0, wt = F.length; ft < wt; j = ++ft) {
|
|
9302
|
+
if (_ = F[j], g = x[j], _ === 65535) {
|
|
9303
9303
|
f.push(0), mt.push(0);
|
|
9304
9304
|
break;
|
|
9305
9305
|
}
|
|
9306
|
-
if (_ - (z = n[_].new) >= 32768) for (f.push(0), mt.push(2 * (p.length + R -
|
|
9306
|
+
if (_ - (z = n[_].new) >= 32768) for (f.push(0), mt.push(2 * (p.length + R - j)), s = rt = _; _ <= g ? rt <= g : rt >= g; s = _ <= g ? ++rt : --rt) p.push(n[s].new);
|
|
9307
9307
|
else f.push(z - _), mt.push(0);
|
|
9308
9308
|
}
|
|
9309
9309
|
for (U.writeUInt16(3), U.writeUInt16(1), U.writeUInt32(12), U.writeUInt16(4), U.writeUInt16(16 + 8 * R + 2 * p.length), U.writeUInt16(0), U.writeUInt16(tt), U.writeUInt16(K), U.writeUInt16(N), U.writeUInt16(dt), Z = 0, A = x.length; Z < A; Z++) s = x[Z], U.writeUInt16(s);
|
|
9310
|
-
for (U.writeUInt16(0), at = 0,
|
|
9310
|
+
for (U.writeUInt16(0), at = 0, O = F.length; at < O; at++) s = F[at], U.writeUInt16(s);
|
|
9311
9311
|
for (gt = 0, T = f.length; gt < T; gt++) u = f[gt], U.writeUInt16(u);
|
|
9312
9312
|
for (At = 0, H = mt.length; At < H; At++) q = mt[At], U.writeUInt16(q);
|
|
9313
|
-
for (kt = 0,
|
|
9313
|
+
for (kt = 0, J = p.length; kt < J; kt++) P = p[kt], U.writeUInt16(P);
|
|
9314
9314
|
return { charMap: n, subtable: U.data, maxGlyphID: Y + 1 };
|
|
9315
9315
|
}
|
|
9316
9316
|
}, r;
|
|
@@ -9496,9 +9496,9 @@ var l2 = (function() {
|
|
|
9496
9496
|
if (e.length > 0) for (a in f = this.glyphsFor(e)) n = f[a], s[a] = n;
|
|
9497
9497
|
return s;
|
|
9498
9498
|
}, r.prototype.encode = function(t, e) {
|
|
9499
|
-
var n, s, a, c, u, f, d, g, x, N, p,
|
|
9499
|
+
var n, s, a, c, u, f, d, g, x, N, p, j, P, B, k;
|
|
9500
9500
|
for (s in n = Uf.encode(this.generateCmap(), "unicode"), c = this.glyphsFor(t), p = { 0: 0 }, k = n.charMap) p[(f = k[s]).old] = f.new;
|
|
9501
|
-
for (
|
|
9501
|
+
for (j in N = n.maxGlyphID, c) j in p || (p[j] = N++);
|
|
9502
9502
|
return g = (function(G) {
|
|
9503
9503
|
var Y, q;
|
|
9504
9504
|
for (Y in q = {}, G) q[G[Y]] = Y;
|
|
@@ -9582,17 +9582,17 @@ function k2(r, t, e, n, s) {
|
|
|
9582
9582
|
}
|
|
9583
9583
|
function P2(r, t, e, n, s) {
|
|
9584
9584
|
const a = e.split(/\r?\n/);
|
|
9585
|
-
if (a.every((
|
|
9585
|
+
if (a.every((j) => !j.trim())) return;
|
|
9586
9586
|
const c = t.fontSizePt * A2, u = c * 1.2, f = c + Math.max(0, a.length - 1) * u;
|
|
9587
9587
|
iu(r, c, t.fontWeight);
|
|
9588
|
-
const d = a.map((
|
|
9588
|
+
const d = a.map((j) => r.measureText(j || " ").width), g = Math.max(...d), x = t.canvasVerticalAlign === "top" ? 0 : t.canvasVerticalAlign === "center" ? (s - f) / 2 : t.canvasVerticalAlign === "bottom" ? s - f : t.yMm, N = t.canvasHorizontalAlign === "left" ? g / 2 : t.canvasHorizontalAlign === "center" ? n / 2 : t.canvasHorizontalAlign === "right" ? n - g / 2 : t.xMm + t.widthMm / 2, p = t.canvasVerticalAlign ? x + f / 2 : t.yMm + t.heightMm / 2;
|
|
9589
9589
|
Zn(
|
|
9590
9590
|
r,
|
|
9591
9591
|
t.rotation,
|
|
9592
9592
|
N,
|
|
9593
9593
|
p,
|
|
9594
9594
|
() => {
|
|
9595
|
-
r.fillStyle = "#000000", r.textBaseline = "top", r.textAlign = t.canvasHorizontalAlign === "center" ? "center" : t.canvasHorizontalAlign === "right" ? "right" : "left", a.forEach((
|
|
9595
|
+
r.fillStyle = "#000000", r.textBaseline = "top", r.textAlign = t.canvasHorizontalAlign === "center" ? "center" : t.canvasHorizontalAlign === "right" ? "right" : "left", a.forEach((j, P) => {
|
|
9596
9596
|
const B = d[P] ?? 0, k = t.canvasHorizontalAlign === "left" ? 0 : t.canvasHorizontalAlign === "center" ? n / 2 : t.canvasHorizontalAlign === "right" ? n : t.type === "text" ? t.xMm : Math.max(
|
|
9597
9597
|
0,
|
|
9598
9598
|
Math.min(
|
|
@@ -9600,14 +9600,14 @@ function P2(r, t, e, n, s) {
|
|
|
9600
9600
|
n - B
|
|
9601
9601
|
)
|
|
9602
9602
|
);
|
|
9603
|
-
r.fillText(
|
|
9603
|
+
r.fillText(j || " ", k, x + P * u);
|
|
9604
9604
|
});
|
|
9605
9605
|
}
|
|
9606
9606
|
);
|
|
9607
9607
|
}
|
|
9608
9608
|
function M2(r, t, e) {
|
|
9609
9609
|
if (!e.trim()) return;
|
|
9610
|
-
const n =
|
|
9610
|
+
const n = Oc(t, e), s = t.xMm + t.widthMm / 2, a = t.yMm + t.heightMm / 2;
|
|
9611
9611
|
Zn(r, t.rotation, s, a, () => {
|
|
9612
9612
|
r.save(), r.beginPath(), r.rect(t.xMm, t.yMm, t.widthMm, t.heightMm), r.clip(), iu(r, n.fontSizeMm, t.fontWeight), r.fillStyle = "#000000", r.textBaseline = "top", r.textAlign = n.textAnchor === "middle" ? "center" : n.textAnchor === "end" ? "right" : "left", n.lines.forEach((c, u) => {
|
|
9613
9613
|
r.fillText(
|
|
@@ -9641,12 +9641,12 @@ function I2(r, t) {
|
|
|
9641
9641
|
}
|
|
9642
9642
|
function E2(r, t, e) {
|
|
9643
9643
|
if (!e) return;
|
|
9644
|
-
const n =
|
|
9644
|
+
const n = jc.create(e, { errorCorrectionLevel: "M" }), s = n.modules.size + Uo * 2, a = Math.min(t.widthMm, t.heightMm), c = r.getTransform().a, u = Math.max(1, Math.floor(a * c)), d = (u >= s ? Math.floor(u / s) : u / s) / c, g = d * s, x = Math.round(
|
|
9645
9645
|
(t.xMm + (t.widthMm - g) / 2) * c
|
|
9646
9646
|
) / c, N = Math.round(
|
|
9647
9647
|
(t.yMm + (t.heightMm - g) / 2) * c
|
|
9648
|
-
) / c, p = t.xMm + t.widthMm / 2,
|
|
9649
|
-
Zn(r, t.rotation, p,
|
|
9648
|
+
) / c, p = t.xMm + t.widthMm / 2, j = t.yMm + t.heightMm / 2;
|
|
9649
|
+
Zn(r, t.rotation, p, j, () => {
|
|
9650
9650
|
r.fillStyle = "#ffffff", r.fillRect(x, N, g, g), r.fillStyle = "#000000";
|
|
9651
9651
|
for (let P = 0; P < n.modules.size; P += 1)
|
|
9652
9652
|
for (let B = 0; B < n.modules.size; B += 1)
|
|
@@ -9702,7 +9702,7 @@ async function F2(r, t, e) {
|
|
|
9702
9702
|
);
|
|
9703
9703
|
});
|
|
9704
9704
|
}
|
|
9705
|
-
function
|
|
9705
|
+
function j2(r) {
|
|
9706
9706
|
const t = Math.min(10, Math.max(0.01, r.cropRatio / 100));
|
|
9707
9707
|
return r.cropMode === "scale" ? {
|
|
9708
9708
|
x: (r.widthMm - r.widthMm * t) / 2,
|
|
@@ -9721,9 +9721,9 @@ function O2(r) {
|
|
|
9721
9721
|
height: r.heightMm * t
|
|
9722
9722
|
} : { x: 0, y: 0, width: r.widthMm, height: r.heightMm };
|
|
9723
9723
|
}
|
|
9724
|
-
async function
|
|
9724
|
+
async function O2(r, t, e) {
|
|
9725
9725
|
if (!e) return;
|
|
9726
|
-
const n =
|
|
9726
|
+
const n = j2(t), s = await Cc(
|
|
9727
9727
|
e,
|
|
9728
9728
|
1,
|
|
9729
9729
|
n.width,
|
|
@@ -9808,11 +9808,11 @@ function T2(r) {
|
|
|
9808
9808
|
}
|
|
9809
9809
|
function su(r, t, e, n, s, a, c, u, f) {
|
|
9810
9810
|
const d = Bc(t), g = e.slice(0, Math.max(1, Math.floor(c / d))), x = Math.max(1, g.length) * d, N = nf(t);
|
|
9811
|
-
r.save(), r.beginPath(), r.rect(n, s, a, c), r.clip(), iu(r, Tc(t), f, Rc), r.fillStyle = "#000000", r.textAlign = T2(u), r.textBaseline = "middle", g.forEach((p,
|
|
9811
|
+
r.save(), r.beginPath(), r.rect(n, s, a, c), r.clip(), iu(r, Tc(t), f, Rc), r.fillStyle = "#000000", r.textAlign = T2(u), r.textBaseline = "middle", g.forEach((p, j) => {
|
|
9812
9812
|
r.fillText(
|
|
9813
9813
|
p || " ",
|
|
9814
9814
|
R2(n, a, u, N),
|
|
9815
|
-
s + (c - x) / 2 + d * (
|
|
9815
|
+
s + (c - x) / 2 + d * (j + 0.5)
|
|
9816
9816
|
);
|
|
9817
9817
|
}), r.restore();
|
|
9818
9818
|
}
|
|
@@ -9834,8 +9834,8 @@ function D2(r) {
|
|
|
9834
9834
|
), c = s > 0 ? Math.min(1, Math.max(0, (r.widthMm - a) / s)) : 1, u = s * c, f = Math.max(0, r.widthMm - u), d = Math.max(0, f - a), g = a > 0 ? Math.min(1, f / a) : 1;
|
|
9835
9835
|
let x = 0;
|
|
9836
9836
|
return t.map((N) => {
|
|
9837
|
-
const p = N.widthMode === "fixed" ? Math.max(1, Number(N.widthMm) || 16) * c : Math.max(1, Number(N.minWidthMm) || 6) * g + (n.length > 0 ? d / n.length : 0),
|
|
9838
|
-
return x += p,
|
|
9837
|
+
const p = N.widthMode === "fixed" ? Math.max(1, Number(N.widthMm) || 16) * c : Math.max(1, Number(N.minWidthMm) || 6) * g + (n.length > 0 ? d / n.length : 0), j = { cell: N, xMm: x, widthMm: p };
|
|
9838
|
+
return x += p, j;
|
|
9839
9839
|
});
|
|
9840
9840
|
}
|
|
9841
9841
|
function q2(r, t, e) {
|
|
@@ -9850,9 +9850,9 @@ async function tf(r, t, e, n, s, a, c) {
|
|
|
9850
9850
|
const x = s[d] ?? Math.max(1, Number(t.bodyRowHeightMm) || 5);
|
|
9851
9851
|
for (const N of e) {
|
|
9852
9852
|
if (N.column.type === "image") {
|
|
9853
|
-
const
|
|
9854
|
-
if (
|
|
9855
|
-
const P = await Gf(
|
|
9853
|
+
const j = String(N.column.field ?? "").trim() ? Bs(Rs(g, N.column.field)) : N.column.content;
|
|
9854
|
+
if (j) {
|
|
9855
|
+
const P = await Gf(j);
|
|
9856
9856
|
au(
|
|
9857
9857
|
r,
|
|
9858
9858
|
P,
|
|
@@ -9924,7 +9924,7 @@ async function U2(r, t, e) {
|
|
|
9924
9924
|
1,
|
|
9925
9925
|
Number(t.groupHeaderRowHeightMm) || 5
|
|
9926
9926
|
), p = D2(t);
|
|
9927
|
-
let
|
|
9927
|
+
let j = 0;
|
|
9928
9928
|
for (const P of e?.groups ?? []) {
|
|
9929
9929
|
const B = P.rows.length > 0 ? P.rows : [{}], k = P.rowHeightsMm?.length === B.length ? P.rowHeightsMm : B.map((mt, dt) => zu(
|
|
9930
9930
|
t,
|
|
@@ -9936,7 +9936,7 @@ async function U2(r, t, e) {
|
|
|
9936
9936
|
p.forEach((mt) => {
|
|
9937
9937
|
(t.showBorder ?? !0) && (u.strokeStyle = "#000000", u.lineWidth = t.strokeWidthMm, u.strokeRect(
|
|
9938
9938
|
mt.xMm,
|
|
9939
|
-
|
|
9939
|
+
j,
|
|
9940
9940
|
mt.widthMm,
|
|
9941
9941
|
N
|
|
9942
9942
|
)), su(
|
|
@@ -9944,14 +9944,14 @@ async function U2(r, t, e) {
|
|
|
9944
9944
|
t,
|
|
9945
9945
|
[q2(mt.cell, P.record, P.index)],
|
|
9946
9946
|
mt.xMm,
|
|
9947
|
-
|
|
9947
|
+
j,
|
|
9948
9948
|
mt.widthMm,
|
|
9949
9949
|
N,
|
|
9950
9950
|
mt.cell.align,
|
|
9951
9951
|
700
|
|
9952
9952
|
);
|
|
9953
9953
|
});
|
|
9954
|
-
const G =
|
|
9954
|
+
const G = j + N, Y = t.showHeader && (t.repeatHeader ?? !0) ? x : 0;
|
|
9955
9955
|
Y > 0 && rf(u, t, g, G);
|
|
9956
9956
|
const q = G + Y;
|
|
9957
9957
|
await tf(
|
|
@@ -9964,13 +9964,13 @@ async function U2(r, t, e) {
|
|
|
9964
9964
|
!0
|
|
9965
9965
|
);
|
|
9966
9966
|
const it = q + k.reduce((mt, dt) => mt + dt, 0);
|
|
9967
|
-
ef(u, t, f, k, q, it),
|
|
9967
|
+
ef(u, t, f, k, q, it), j = it;
|
|
9968
9968
|
}
|
|
9969
9969
|
} else {
|
|
9970
|
-
const N = e?.rows ?? [], p = e?.rowHeightsMm?.length === N.length ? e.rowHeightsMm : N.map((
|
|
9970
|
+
const N = e?.rows ?? [], p = e?.rowHeightsMm?.length === N.length ? e.rowHeightsMm : N.map((j, P) => zu(
|
|
9971
9971
|
t,
|
|
9972
9972
|
f,
|
|
9973
|
-
|
|
9973
|
+
j,
|
|
9974
9974
|
P,
|
|
9975
9975
|
!0
|
|
9976
9976
|
));
|
|
@@ -10032,7 +10032,7 @@ async function z2(r, t, e, n, s, a, c, u) {
|
|
|
10032
10032
|
await F2(r, t, f);
|
|
10033
10033
|
return;
|
|
10034
10034
|
case "pdf":
|
|
10035
|
-
await
|
|
10035
|
+
await O2(r, t, f);
|
|
10036
10036
|
return;
|
|
10037
10037
|
case "table":
|
|
10038
10038
|
await U2(r, t, e.tableData[t.id]);
|
|
@@ -10061,12 +10061,12 @@ async function H2(r, t, e, n, s, a = {}) {
|
|
|
10061
10061
|
);
|
|
10062
10062
|
return f;
|
|
10063
10063
|
}
|
|
10064
|
-
const W2 = 203, G2 =
|
|
10065
|
-
function
|
|
10064
|
+
const W2 = 203, G2 = 1, V2 = 2, Y2 = 8;
|
|
10065
|
+
function J2(r) {
|
|
10066
10066
|
return Number.isFinite(r) ? Math.min(
|
|
10067
|
-
|
|
10067
|
+
Y2,
|
|
10068
10068
|
Math.max(1, Math.trunc(r))
|
|
10069
|
-
) :
|
|
10069
|
+
) : V2;
|
|
10070
10070
|
}
|
|
10071
10071
|
function X2(r) {
|
|
10072
10072
|
return new Promise((t, e) => {
|
|
@@ -10079,17 +10079,17 @@ function X2(r) {
|
|
|
10079
10079
|
(s) => t(new Uint8Array(s)),
|
|
10080
10080
|
e
|
|
10081
10081
|
);
|
|
10082
|
-
}, "image/
|
|
10082
|
+
}, "image/jpeg", G2);
|
|
10083
10083
|
});
|
|
10084
10084
|
}
|
|
10085
|
-
async function
|
|
10085
|
+
async function K2(r, t, e, n = {}) {
|
|
10086
10086
|
if (r.length === 0)
|
|
10087
10087
|
throw new Error("No template pages were provided.");
|
|
10088
|
-
const s = t > e ? "landscape" : "portrait", a =
|
|
10088
|
+
const s = t > e ? "landscape" : "portrait", a = J2(n.pageConcurrency), c = n.printTime ?? /* @__PURE__ */ new Date(), u = new Rt({
|
|
10089
10089
|
orientation: s,
|
|
10090
10090
|
unit: "mm",
|
|
10091
10091
|
format: [t, e],
|
|
10092
|
-
compress: !
|
|
10092
|
+
compress: !1
|
|
10093
10093
|
});
|
|
10094
10094
|
for (let f = 0; f < r.length; f += a) {
|
|
10095
10095
|
const d = await Promise.all(
|
|
@@ -10104,14 +10104,14 @@ async function J2(r, t, e, n = {}) {
|
|
|
10104
10104
|
dpi: W2,
|
|
10105
10105
|
printTime: c
|
|
10106
10106
|
}
|
|
10107
|
-
),
|
|
10108
|
-
return p.width = 1, p.height = 1,
|
|
10107
|
+
), j = await X2(p);
|
|
10108
|
+
return p.width = 1, p.height = 1, j;
|
|
10109
10109
|
})
|
|
10110
10110
|
);
|
|
10111
10111
|
for (const [g, x] of d.entries())
|
|
10112
10112
|
f + g > 0 && u.addPage([t, e], s), u.addImage(
|
|
10113
10113
|
x,
|
|
10114
|
-
"
|
|
10114
|
+
"JPEG",
|
|
10115
10115
|
0,
|
|
10116
10116
|
0,
|
|
10117
10117
|
t,
|
|
@@ -10122,11 +10122,11 @@ async function J2(r, t, e, n = {}) {
|
|
|
10122
10122
|
}
|
|
10123
10123
|
return u.output("blob");
|
|
10124
10124
|
}
|
|
10125
|
-
const
|
|
10125
|
+
const Z2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10126
10126
|
__proto__: null,
|
|
10127
|
-
generateTemplatePdf:
|
|
10127
|
+
generateTemplatePdf: K2
|
|
10128
10128
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10129
10129
|
export {
|
|
10130
10130
|
xe as _,
|
|
10131
|
-
|
|
10131
|
+
Z2 as c
|
|
10132
10132
|
};
|