@poe-platform/safe-bash 0.1.765 → 0.1.766
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/image-ast/index.browser.js +17 -8
- package/dist/image-ast/index.js +17 -8
- package/dist/pdf-ast/index.js +29 -11
- package/dist/safe-bash/command-chunks/{chunk-DT4MFWV4.js → chunk-DKWMTHU3.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-SVL6HYQL.js → chunk-IOH3F3ZO.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-KO4PXCNL.js → chunk-XFUFHHLU.js} +17 -8
- package/dist/safe-bash-command-ffmpeg/index.js +199 -192
- package/dist/safe-bash-command-imagemagick/index.js +2 -2
- package/dist/safe-bash-command-pandoc/command.js +3 -3
- package/dist/safe-bash-command-pandoc/index.js +3 -3
- package/dist/safe-bash-command-pdfimages/index.js +17 -8
- package/dist/safe-bash-command-pdfinfo/index.js +29 -11
- package/dist/safe-bash-command-pdftk/index.js +17 -8
- package/dist/safe-bash-command-pdftoppm/index.js +29 -11
- package/dist/safe-bash-command-pdftotext/index.js +17 -8
- package/dist/safe-bash-command-qpdf/index.js +17 -8
- package/dist/safe-bash-command-sips/index.js +2 -2
- package/dist/safe-bash-command-soffice/index.js +1 -1
- package/dist/safe-bash-command-ssconvert/index.js +17 -8
- package/dist/safe-bash-command-wkhtmltopdf/index.js +17 -8
- package/package.json +2 -2
- package/third-party/pdf-ast/THIRD_PARTY_NOTICES.md +3 -0
|
@@ -78,7 +78,7 @@ var Wc = 256;
|
|
|
78
78
|
var Fh = 16;
|
|
79
79
|
var Hh = 17;
|
|
80
80
|
var Ph = 18;
|
|
81
|
-
var
|
|
81
|
+
var No = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0]);
|
|
82
82
|
var Nr = new Uint8Array([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]);
|
|
83
83
|
var mu = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]);
|
|
84
84
|
var Mh = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]);
|
|
@@ -150,7 +150,7 @@ var Th = (e, t, n) => {
|
|
|
150
150
|
};
|
|
151
151
|
var bu = () => {
|
|
152
152
|
let e, t, n, a, i, r = new Array(16);
|
|
153
|
-
for (n = 0, a = 0; a < yh - 1; a++) for (Nc[a] = n, e = 0; e < 1 <<
|
|
153
|
+
for (n = 0, a = 0; a < yh - 1; a++) for (Nc[a] = n, e = 0; e < 1 << No[a]; e++) nr[n++] = a;
|
|
154
154
|
for (nr[n - 1] = a, i = 0, a = 0; a < 16; a++) for (ls[a] = i, e = 0; e < 1 << Nr[a]; e++) tr[i++] = a;
|
|
155
155
|
for (i >>= 7; a < Ya; a++) for (ls[a] = i << 7, e = 0; e < 1 << Nr[a] - 7; e++) tr[256 + i++] = a;
|
|
156
156
|
for (t = 0; t <= Ri; t++) r[t] = 0;
|
|
@@ -159,7 +159,7 @@ var bu = () => {
|
|
|
159
159
|
for (; e <= 279; ) On[e * 2 + 1] = 7, e++, r[7]++;
|
|
160
160
|
for (; e <= 287; ) On[e * 2 + 1] = 8, e++, r[8]++;
|
|
161
161
|
for (Th(On, 287, r), e = 0; e < Ya; e++) qi[e * 2 + 1] = 5, qi[e * 2] = Sh(e, 5);
|
|
162
|
-
Gh = new so(On,
|
|
162
|
+
Gh = new so(On, No, 257, kh, Ri), Eh = new so(qi, Nr, 0, Ya, Ri), Dh = new so(new Array(0), mu, 0, jc, gu);
|
|
163
163
|
};
|
|
164
164
|
var Xh = (e) => {
|
|
165
165
|
let t;
|
|
@@ -183,11 +183,11 @@ var co = (e, t, n) => {
|
|
|
183
183
|
var Nl = (e, t, n) => {
|
|
184
184
|
let a, i, r = 0, o, s;
|
|
185
185
|
if (e.sym_next !== 0) do
|
|
186
|
-
a = e.pending_buf[e.sym_buf + r++] & 255, a += (e.pending_buf[e.sym_buf + r++] & 255) << 8, i = e.pending_buf[e.sym_buf + r++], a === 0 ? An(e, i, t) : (o = nr[i], An(e, o + Yc + 1, t), s =
|
|
186
|
+
a = e.pending_buf[e.sym_buf + r++] & 255, a += (e.pending_buf[e.sym_buf + r++] & 255) << 8, i = e.pending_buf[e.sym_buf + r++], a === 0 ? An(e, i, t) : (o = nr[i], An(e, o + Yc + 1, t), s = No[o], s !== 0 && (i -= Nc[o], Ut(e, i, s)), a--, o = Ih(a), An(e, o, n), s = Nr[o], s !== 0 && (a -= ls[o], Ut(e, a, s)));
|
|
187
187
|
while (r < e.sym_next);
|
|
188
188
|
An(e, Wc, t);
|
|
189
189
|
};
|
|
190
|
-
var
|
|
190
|
+
var Zo = (e, t) => {
|
|
191
191
|
let n = t.dyn_tree, a = t.stat_desc.static_tree, i = t.stat_desc.has_stree, r = t.stat_desc.elems, o, s, l = -1, c;
|
|
192
192
|
for (e.heap_len = 0, e.heap_max = Ch, o = 0; o < r; o++) n[o * 2] !== 0 ? (e.heap[++e.heap_len] = l = o, e.depth[o] = 0) : n[o * 2 + 1] = 0;
|
|
193
193
|
for (; e.heap_len < 2; ) c = e.heap[++e.heap_len] = l < 2 ? ++l : 0, n[c * 2] = 1, e.depth[c] = 0, e.opt_len--, i && (e.static_len -= a[c * 2 + 1]);
|
|
@@ -214,7 +214,7 @@ var Jl = (e, t, n) => {
|
|
|
214
214
|
};
|
|
215
215
|
var Au = (e) => {
|
|
216
216
|
let t;
|
|
217
|
-
for (Zl(e, e.dyn_ltree, e.l_desc.max_code), Zl(e, e.dyn_dtree, e.d_desc.max_code),
|
|
217
|
+
for (Zl(e, e.dyn_ltree, e.l_desc.max_code), Zl(e, e.dyn_dtree, e.d_desc.max_code), Zo(e, e.bl_desc), t = jc - 1; t >= 3 && e.bl_tree[Mh[t] * 2 + 1] === 0; t--) ;
|
|
218
218
|
return e.opt_len += 3 * (t + 1) + 5 + 5 + 4, t;
|
|
219
219
|
};
|
|
220
220
|
var xu = (e, t, n, a) => {
|
|
@@ -241,7 +241,7 @@ var ku = (e) => {
|
|
|
241
241
|
};
|
|
242
242
|
var Cu = (e, t, n, a) => {
|
|
243
243
|
let i, r, o = 0;
|
|
244
|
-
e.level > 0 ? (e.strm.data_type === du && (e.strm.data_type = Bu(e)),
|
|
244
|
+
e.level > 0 ? (e.strm.data_type === du && (e.strm.data_type = Bu(e)), Zo(e, e.l_desc), Zo(e, e.d_desc), o = Au(e), i = e.opt_len + 3 + 7 >>> 3, r = e.static_len + 3 + 7 >>> 3, r <= i && (i = r)) : i = r = n + 5, n + 4 <= i && t !== -1 ? fs(e, t, n, a) : e.strategy === fu || r === i ? (Ut(e, (Bh << 1) + (a ? 1 : 0), 3), Nl(e, On, qi)) : (Ut(e, (uu << 1) + (a ? 1 : 0), 3), xu(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, o + 1), Nl(e, e.dyn_ltree, e.dyn_dtree)), Xh(e), a && Uh(e);
|
|
245
245
|
};
|
|
246
246
|
var aa = (e, t, n) => (e.pending_buf[e.sym_buf + e.sym_next++] = t, e.pending_buf[e.sym_buf + e.sym_next++] = t >> 8, e.pending_buf[e.sym_buf + e.sym_next++] = n, t === 0 ? e.dyn_ltree[n * 2]++ : (e.matches++, t--, e.dyn_ltree[(nr[n] + Yc + 1) * 2]++, e.dyn_dtree[Ih(t) * 2]++), e.sym_next === e.sym_end);
|
|
247
247
|
var ir = (e, t, n, a) => {
|
|
@@ -280,10 +280,10 @@ var Cn = 262;
|
|
|
280
280
|
var Gu = 32;
|
|
281
281
|
var Ja = 42;
|
|
282
282
|
var Zc = 57;
|
|
283
|
-
var
|
|
284
|
-
var
|
|
285
|
-
var
|
|
286
|
-
var
|
|
283
|
+
var Jo = 69;
|
|
284
|
+
var _o = 73;
|
|
285
|
+
var $o = 91;
|
|
286
|
+
var ec = 103;
|
|
287
287
|
var ma = 113;
|
|
288
288
|
var Pi = 666;
|
|
289
289
|
var Gt = 1;
|
|
@@ -332,7 +332,7 @@ var Qe = (e, t) => {
|
|
|
332
332
|
var yi = (e, t) => {
|
|
333
333
|
e.pending_buf[e.pending++] = t >>> 8 & 255, e.pending_buf[e.pending++] = t & 255;
|
|
334
334
|
};
|
|
335
|
-
var
|
|
335
|
+
var tc = (e, t, n, a) => {
|
|
336
336
|
let i = e.avail_in;
|
|
337
337
|
return i > a && (i = a), i === 0 ? 0 : (e.avail_in -= i, t.set(e.input.subarray(e.next_in, e.next_in + i), n), e.state.wrap === 1 ? e.adler = ir(e.adler, t, i, n) : e.state.wrap === 2 && (e.adler = wt(e.adler, t, i, n)), e.next_in += i, e.total_in += i, i);
|
|
338
338
|
};
|
|
@@ -357,7 +357,7 @@ var _a = (e) => {
|
|
|
357
357
|
let t = e.w_size, n, a, i;
|
|
358
358
|
do {
|
|
359
359
|
if (a = e.window_size - e.lookahead - e.strstart, e.strstart >= t + (t - Cn) && (e.window.set(e.window.subarray(t, t + t - a), 0), e.match_start -= t, e.strstart -= t, e.block_start -= t, e.insert > e.strstart && (e.insert = e.strstart), Du(e), a += t), e.strm.avail_in === 0) break;
|
|
360
|
-
if (n =
|
|
360
|
+
if (n = tc(e.strm, e.window, e.strstart + e.lookahead, a), e.lookahead += n, e.legacy_hash) {
|
|
361
361
|
if (e.lookahead + e.insert >= qe) for (i = e.strstart - e.insert, e.ins_h = e.window[i], e.ins_h = Jc(e, e.ins_h, e.window[i + 1]); e.insert && (Ha(e, i), i++, e.insert--, !(e.lookahead + e.insert < qe)); ) ;
|
|
362
362
|
} else if (e.lookahead + e.insert > qe) for (i = e.strstart - e.insert; e.insert && (Ha(e, i), i++, e.insert--, !(e.lookahead + e.insert <= qe)); ) ;
|
|
363
363
|
} while (e.lookahead < Cn && e.strm.avail_in !== 0);
|
|
@@ -366,9 +366,9 @@ var Kh = (e, t) => {
|
|
|
366
366
|
let n = e.pending_buf_size - 5 > e.w_size ? e.w_size : e.pending_buf_size - 5, a, i, r, o = 0, s = e.strm.avail_in;
|
|
367
367
|
do {
|
|
368
368
|
if (a = 65535, r = e.bi_valid + 42 >> 3, e.strm.avail_out < r || (r = e.strm.avail_out - r, i = e.strstart - e.block_start, a > i + e.strm.avail_in && (a = i + e.strm.avail_in), a > r && (a = r), a < n && (a === 0 && t !== 4 || t === 0 || a !== i + e.strm.avail_in))) break;
|
|
369
|
-
o = t === 4 && a === i + e.strm.avail_in ? 1 : 0, fs(e, 0, 0, o), e.pending_buf[e.pending - 4] = a, e.pending_buf[e.pending - 3] = a >> 8, e.pending_buf[e.pending - 2] = ~a, e.pending_buf[e.pending - 1] = ~a >> 8, Rt(e.strm), i && (i > a && (i = a), e.strm.output.set(e.window.subarray(e.block_start, e.block_start + i), e.strm.next_out), e.strm.next_out += i, e.strm.avail_out -= i, e.strm.total_out += i, e.block_start += i, a -= i), a && (
|
|
369
|
+
o = t === 4 && a === i + e.strm.avail_in ? 1 : 0, fs(e, 0, 0, o), e.pending_buf[e.pending - 4] = a, e.pending_buf[e.pending - 3] = a >> 8, e.pending_buf[e.pending - 2] = ~a, e.pending_buf[e.pending - 1] = ~a >> 8, Rt(e.strm), i && (i > a && (i = a), e.strm.output.set(e.window.subarray(e.block_start, e.block_start + i), e.strm.next_out), e.strm.next_out += i, e.strm.avail_out -= i, e.strm.total_out += i, e.block_start += i, a -= i), a && (tc(e.strm, e.strm.output, e.strm.next_out, a), e.strm.next_out += a, e.strm.avail_out -= a, e.strm.total_out += a);
|
|
370
370
|
} while (o === 0);
|
|
371
|
-
return s -= e.strm.avail_in, s && (s >= e.w_size ? (e.matches = 2, e.window.set(e.strm.input.subarray(e.strm.next_in - e.w_size, e.strm.next_in), 0), e.strstart = e.w_size, e.insert = e.strstart) : (e.window_size - e.strstart <= s && (e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, e.insert > e.strstart && (e.insert = e.strstart)), e.window.set(e.strm.input.subarray(e.strm.next_in - s, e.strm.next_in), e.strstart), e.strstart += s, e.insert += s > e.w_size - e.insert ? e.w_size - e.insert : s), e.block_start = e.strstart), e.high_water < e.strstart && (e.high_water = e.strstart), o ? ri : t !== 0 && t !== 4 && e.strm.avail_in === 0 && e.strstart === e.block_start ? ii : (r = e.window_size - e.strstart, e.strm.avail_in > r && e.block_start >= e.w_size && (e.block_start -= e.w_size, e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, r += e.w_size, e.insert > e.strstart && (e.insert = e.strstart)), r > e.strm.avail_in && (r = e.strm.avail_in), r && (
|
|
371
|
+
return s -= e.strm.avail_in, s && (s >= e.w_size ? (e.matches = 2, e.window.set(e.strm.input.subarray(e.strm.next_in - e.w_size, e.strm.next_in), 0), e.strstart = e.w_size, e.insert = e.strstart) : (e.window_size - e.strstart <= s && (e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, e.insert > e.strstart && (e.insert = e.strstart)), e.window.set(e.strm.input.subarray(e.strm.next_in - s, e.strm.next_in), e.strstart), e.strstart += s, e.insert += s > e.w_size - e.insert ? e.w_size - e.insert : s), e.block_start = e.strstart), e.high_water < e.strstart && (e.high_water = e.strstart), o ? ri : t !== 0 && t !== 4 && e.strm.avail_in === 0 && e.strstart === e.block_start ? ii : (r = e.window_size - e.strstart, e.strm.avail_in > r && e.block_start >= e.w_size && (e.block_start -= e.w_size, e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, r += e.w_size, e.insert > e.strstart && (e.insert = e.strstart)), r > e.strm.avail_in && (r = e.strm.avail_in), r && (tc(e.strm, e.window, e.strstart, r), e.strstart += r, e.insert += r > e.w_size - e.insert ? e.w_size - e.insert : r), e.high_water < e.strstart && (e.high_water = e.strstart), r = e.bi_valid + 42 >> 3, r = e.pending_buf_size - r > 65535 ? 65535 : e.pending_buf_size - r, n = r > e.w_size ? e.w_size : r, i = e.strstart - e.block_start, (i >= n || (i || t === 4) && t !== 0 && e.strm.avail_in === 0 && i <= r) && (a = i > r ? r : i, o = t === 4 && e.strm.avail_in === 0 && a === i ? 1 : 0, fs(e, e.block_start, a, o), e.block_start += a, Rt(e.strm)), o ? Fa : Gt);
|
|
372
372
|
};
|
|
373
373
|
var lo = (e, t) => {
|
|
374
374
|
let n, a;
|
|
@@ -454,7 +454,7 @@ var Xu = class {
|
|
|
454
454
|
var Cs = (e) => {
|
|
455
455
|
if (!e) return 1;
|
|
456
456
|
let t = e.state;
|
|
457
|
-
return !t || t.strm !== e || t.status !== Ja && t.status !== Zc && t.status !==
|
|
457
|
+
return !t || t.strm !== e || t.status !== Ja && t.status !== Zc && t.status !== Jo && t.status !== _o && t.status !== $o && t.status !== ec && t.status !== ma && t.status !== Pi ? 1 : 0;
|
|
458
458
|
};
|
|
459
459
|
var Uu = (e) => {
|
|
460
460
|
if (Cs(e)) return pa(e, -2);
|
|
@@ -488,10 +488,10 @@ var Ou = (e, t) => {
|
|
|
488
488
|
if (n.strategy >= 2 || n.level < 2 ? r = 0 : n.level < 6 ? r = 1 : n.level === 6 ? r = 2 : r = 3, i |= r << 6, n.strstart !== 0 && (i |= Gu), i += 31 - i % 31, yi(n, i), n.strstart !== 0 && (yi(n, e.adler >>> 16), yi(n, e.adler & 65535)), e.adler = 1, n.status = ma, Rt(e), n.pending !== 0) return n.last_flush = -1, 0;
|
|
489
489
|
}
|
|
490
490
|
if (n.status === Zc) {
|
|
491
|
-
if (e.adler = 0, Qe(n, 31), Qe(n, 139), Qe(n, 8), n.gzhead) Qe(n, (n.gzhead.text ? 1 : 0) + (n.gzhead.hcrc ? 2 : 0) + (n.gzhead.extra ? 4 : 0) + (n.gzhead.name ? 8 : 0) + (n.gzhead.comment ? 16 : 0)), Qe(n, n.gzhead.time & 255), Qe(n, n.gzhead.time >> 8 & 255), Qe(n, n.gzhead.time >> 16 & 255), Qe(n, n.gzhead.time >> 24 & 255), Qe(n, n.level === 9 ? 2 : n.strategy >= 2 || n.level < 2 ? 4 : 0), Qe(n, n.gzhead.os & 255), n.gzhead.extra && n.gzhead.extra.length && (Qe(n, n.gzhead.extra.length & 255), Qe(n, n.gzhead.extra.length >> 8 & 255)), n.gzhead.hcrc && (e.adler = wt(e.adler, n.pending_buf, n.pending, 0)), n.gzindex = 0, n.status =
|
|
491
|
+
if (e.adler = 0, Qe(n, 31), Qe(n, 139), Qe(n, 8), n.gzhead) Qe(n, (n.gzhead.text ? 1 : 0) + (n.gzhead.hcrc ? 2 : 0) + (n.gzhead.extra ? 4 : 0) + (n.gzhead.name ? 8 : 0) + (n.gzhead.comment ? 16 : 0)), Qe(n, n.gzhead.time & 255), Qe(n, n.gzhead.time >> 8 & 255), Qe(n, n.gzhead.time >> 16 & 255), Qe(n, n.gzhead.time >> 24 & 255), Qe(n, n.level === 9 ? 2 : n.strategy >= 2 || n.level < 2 ? 4 : 0), Qe(n, n.gzhead.os & 255), n.gzhead.extra && n.gzhead.extra.length && (Qe(n, n.gzhead.extra.length & 255), Qe(n, n.gzhead.extra.length >> 8 & 255)), n.gzhead.hcrc && (e.adler = wt(e.adler, n.pending_buf, n.pending, 0)), n.gzindex = 0, n.status = Jo;
|
|
492
492
|
else if (Qe(n, 0), Qe(n, 0), Qe(n, 0), Qe(n, 0), Qe(n, 0), Qe(n, n.level === 9 ? 2 : n.strategy >= 2 || n.level < 2 ? 4 : 0), Qe(n, Eu), n.status = ma, Rt(e), n.pending !== 0) return n.last_flush = -1, 0;
|
|
493
493
|
}
|
|
494
|
-
if (n.status ===
|
|
494
|
+
if (n.status === Jo) {
|
|
495
495
|
if (n.gzhead.extra) {
|
|
496
496
|
let i = n.pending, r = (n.gzhead.extra.length & 65535) - n.gzindex;
|
|
497
497
|
for (; n.pending + r > n.pending_buf_size; ) {
|
|
@@ -502,9 +502,9 @@ var Ou = (e, t) => {
|
|
|
502
502
|
let o = new Uint8Array(n.gzhead.extra);
|
|
503
503
|
n.pending_buf.set(o.subarray(n.gzindex, n.gzindex + r), n.pending), n.pending += r, n.gzhead.hcrc && n.pending > i && (e.adler = wt(e.adler, n.pending_buf, n.pending - i, i)), n.gzindex = 0;
|
|
504
504
|
}
|
|
505
|
-
n.status =
|
|
505
|
+
n.status = _o;
|
|
506
506
|
}
|
|
507
|
-
if (n.status ===
|
|
507
|
+
if (n.status === _o) {
|
|
508
508
|
if (n.gzhead.name) {
|
|
509
509
|
let i = n.pending, r;
|
|
510
510
|
do {
|
|
@@ -516,9 +516,9 @@ var Ou = (e, t) => {
|
|
|
516
516
|
} while (r !== 0);
|
|
517
517
|
n.gzhead.hcrc && n.pending > i && (e.adler = wt(e.adler, n.pending_buf, n.pending - i, i)), n.gzindex = 0;
|
|
518
518
|
}
|
|
519
|
-
n.status =
|
|
519
|
+
n.status = $o;
|
|
520
520
|
}
|
|
521
|
-
if (n.status ===
|
|
521
|
+
if (n.status === $o) {
|
|
522
522
|
if (n.gzhead.comment) {
|
|
523
523
|
let i = n.pending, r;
|
|
524
524
|
do {
|
|
@@ -530,9 +530,9 @@ var Ou = (e, t) => {
|
|
|
530
530
|
} while (r !== 0);
|
|
531
531
|
n.gzhead.hcrc && n.pending > i && (e.adler = wt(e.adler, n.pending_buf, n.pending - i, i));
|
|
532
532
|
}
|
|
533
|
-
n.status =
|
|
533
|
+
n.status = ec;
|
|
534
534
|
}
|
|
535
|
-
if (n.status ===
|
|
535
|
+
if (n.status === ec) {
|
|
536
536
|
if (n.gzhead.hcrc) {
|
|
537
537
|
if (n.pending + 2 > n.pending_buf_size && (Rt(e), n.pending !== 0)) return n.last_flush = -1, 0;
|
|
538
538
|
Qe(n, e.adler & 255), Qe(n, e.adler >> 8 & 255), e.adler = 0;
|
|
@@ -728,7 +728,7 @@ var go = 16206;
|
|
|
728
728
|
var kf = 16207;
|
|
729
729
|
var Cf = 16208;
|
|
730
730
|
var et = 16209;
|
|
731
|
-
var
|
|
731
|
+
var nc = 16210;
|
|
732
732
|
var Qh = 16211;
|
|
733
733
|
var Zu = 852;
|
|
734
734
|
var Ju = 592;
|
|
@@ -1145,13 +1145,13 @@ var wo = (e, t) => {
|
|
|
1145
1145
|
case et:
|
|
1146
1146
|
C = -3;
|
|
1147
1147
|
break e;
|
|
1148
|
-
case
|
|
1148
|
+
case nc:
|
|
1149
1149
|
return -4;
|
|
1150
1150
|
case Qh:
|
|
1151
1151
|
default:
|
|
1152
1152
|
return -2;
|
|
1153
1153
|
}
|
|
1154
|
-
return e.next_out = o, e.avail_out = l, e.next_in = r, e.avail_in = s, n.hold = c, n.bits = f, (n.wsize || d !== e.avail_out && n.mode < et && (n.mode < go || t !== 4)) && qh(e, e.output, e.next_out, d - e.avail_out) ? (n.mode =
|
|
1154
|
+
return e.next_out = o, e.avail_out = l, e.next_in = r, e.avail_in = s, n.hold = c, n.bits = f, (n.wsize || d !== e.avail_out && n.mode < et && (n.mode < go || t !== 4)) && qh(e, e.output, e.next_out, d - e.avail_out) ? (n.mode = nc, -4) : (h -= e.avail_in, d -= e.avail_out, e.total_in += h, e.total_out += d, n.total += d, n.wrap & 4 && d && (e.adler = n.check = n.flags ? wt(n.check, i, d, e.next_out - d) : ir(n.check, i, d, e.next_out - d)), e.data_type = n.bits + (n.last ? 64 : 0) + (n.mode === Sn ? 128 : 0) + (n.mode === Fr || n.mode === uo ? 256 : 0), (h === 0 && d === 0 || t === 4) && C === 0 && (C = -5), C);
|
|
1155
1155
|
};
|
|
1156
1156
|
var Pf = (e) => {
|
|
1157
1157
|
if (si(e)) return -2;
|
|
@@ -1160,7 +1160,7 @@ var Pf = (e) => {
|
|
|
1160
1160
|
};
|
|
1161
1161
|
var Mf = (e, t) => {
|
|
1162
1162
|
let n = t.length, a, i, r;
|
|
1163
|
-
return si(e) || (a = e.state, a.wrap !== 0 && a.mode !== ds) ? -2 : a.mode === ds && (i = 1, i = ir(i, t, n, 0), i !== a.check) ? -3 : (r = qh(e, t, n, n), r ? (a.mode =
|
|
1163
|
+
return si(e) || (a = e.state, a.wrap !== 0 && a.mode !== ds) ? -2 : a.mode === ds && (i = 1, i = ir(i, t, n, 0), i !== a.check) ? -3 : (r = qh(e, t, n, n), r ? (a.mode = nc, -4) : (a.havedict = 1, 0));
|
|
1164
1164
|
};
|
|
1165
1165
|
var zh = class {
|
|
1166
1166
|
constructor() {
|
|
@@ -3074,7 +3074,7 @@ var sl = 256;
|
|
|
3074
3074
|
var v0 = 16;
|
|
3075
3075
|
var b0 = 17;
|
|
3076
3076
|
var A0 = 18;
|
|
3077
|
-
var
|
|
3077
|
+
var ac = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0]);
|
|
3078
3078
|
var Zr = new Uint8Array([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]);
|
|
3079
3079
|
var Zg = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]);
|
|
3080
3080
|
var x0 = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]);
|
|
@@ -3146,7 +3146,7 @@ var H0 = (e, t, n) => {
|
|
|
3146
3146
|
};
|
|
3147
3147
|
var em = () => {
|
|
3148
3148
|
let e, t, n, a, i, r = new Array(16);
|
|
3149
|
-
for (n = 0, a = 0; a < m0 - 1; a++) for (ol[a] = n, e = 0; e < 1 <<
|
|
3149
|
+
for (n = 0, a = 0; a < m0 - 1; a++) for (ol[a] = n, e = 0; e < 1 << ac[a]; e++) sr[n++] = a;
|
|
3150
3150
|
for (sr[n - 1] = a, i = 0, a = 0; a < 16; a++) for (us[a] = i, e = 0; e < 1 << Zr[a]; e++) rr[i++] = a;
|
|
3151
3151
|
for (i >>= 7; a < ja; a++) for (us[a] = i << 7, e = 0; e < 1 << Zr[a] - 7; e++) rr[256 + i++] = a;
|
|
3152
3152
|
for (t = 0; t <= ji; t++) r[t] = 0;
|
|
@@ -3155,7 +3155,7 @@ var em = () => {
|
|
|
3155
3155
|
for (; e <= 279; ) Vn[e * 2 + 1] = 7, e++, r[7]++;
|
|
3156
3156
|
for (; e <= 287; ) Vn[e * 2 + 1] = 8, e++, r[8]++;
|
|
3157
3157
|
for (H0(Vn, 287, r), e = 0; e < ja; e++) Wi[e * 2 + 1] = 5, Wi[e * 2] = F0(e, 5);
|
|
3158
|
-
B0 = new xo(Vn,
|
|
3158
|
+
B0 = new xo(Vn, ac, 257, p0, ji), y0 = new xo(Wi, Zr, 0, ja, ji), k0 = new xo(new Array(0), Zg, 0, rl, Ng);
|
|
3159
3159
|
};
|
|
3160
3160
|
var P0 = (e) => {
|
|
3161
3161
|
let t;
|
|
@@ -3179,11 +3179,11 @@ var yo = (e, t, n) => {
|
|
|
3179
3179
|
var Vf = (e, t, n) => {
|
|
3180
3180
|
let a, i, r = 0, o, s;
|
|
3181
3181
|
if (e.sym_next !== 0) do
|
|
3182
|
-
a = e.pending_buf[e.sym_buf + r++] & 255, a += (e.pending_buf[e.sym_buf + r++] & 255) << 8, i = e.pending_buf[e.sym_buf + r++], a === 0 ? xn(e, i, t) : (o = sr[i], xn(e, o + il + 1, t), s =
|
|
3182
|
+
a = e.pending_buf[e.sym_buf + r++] & 255, a += (e.pending_buf[e.sym_buf + r++] & 255) << 8, i = e.pending_buf[e.sym_buf + r++], a === 0 ? xn(e, i, t) : (o = sr[i], xn(e, o + il + 1, t), s = ac[o], s !== 0 && (i -= ol[o], Lt(e, i, s)), a--, o = C0(a), xn(e, o, n), s = Zr[o], s !== 0 && (a -= us[o], Lt(e, a, s)));
|
|
3183
3183
|
while (r < e.sym_next);
|
|
3184
3184
|
xn(e, sl, t);
|
|
3185
3185
|
};
|
|
3186
|
-
var
|
|
3186
|
+
var ic = (e, t) => {
|
|
3187
3187
|
let n = t.dyn_tree, a = t.stat_desc.static_tree, i = t.stat_desc.has_stree, r = t.stat_desc.elems, o, s, l = -1, c;
|
|
3188
3188
|
for (e.heap_len = 0, e.heap_max = w0, o = 0; o < r; o++) n[o * 2] !== 0 ? (e.heap[++e.heap_len] = l = o, e.depth[o] = 0) : n[o * 2 + 1] = 0;
|
|
3189
3189
|
for (; e.heap_len < 2; ) c = e.heap[++e.heap_len] = l < 2 ? ++l : 0, n[c * 2] = 1, e.depth[c] = 0, e.opt_len--, i && (e.static_len -= a[c * 2 + 1]);
|
|
@@ -3210,7 +3210,7 @@ var Rf = (e, t, n) => {
|
|
|
3210
3210
|
};
|
|
3211
3211
|
var tm = (e) => {
|
|
3212
3212
|
let t;
|
|
3213
|
-
for (Qf(e, e.dyn_ltree, e.l_desc.max_code), Qf(e, e.dyn_dtree, e.d_desc.max_code),
|
|
3213
|
+
for (Qf(e, e.dyn_ltree, e.l_desc.max_code), Qf(e, e.dyn_dtree, e.d_desc.max_code), ic(e, e.bl_desc), t = rl - 1; t >= 3 && e.bl_tree[x0[t] * 2 + 1] === 0; t--) ;
|
|
3214
3214
|
return e.opt_len += 3 * (t + 1) + 5 + 5 + 4, t;
|
|
3215
3215
|
};
|
|
3216
3216
|
var nm = (e, t, n, a) => {
|
|
@@ -3237,7 +3237,7 @@ var rm = (e) => {
|
|
|
3237
3237
|
};
|
|
3238
3238
|
var sm = (e, t, n, a) => {
|
|
3239
3239
|
let i, r, o = 0;
|
|
3240
|
-
e.level > 0 ? (e.strm.data_type === Yg && (e.strm.data_type = am(e)),
|
|
3240
|
+
e.level > 0 ? (e.strm.data_type === Yg && (e.strm.data_type = am(e)), ic(e, e.l_desc), ic(e, e.d_desc), o = tm(e), i = e.opt_len + 3 + 7 >>> 3, r = e.static_len + 3 + 7 >>> 3, r <= i && (i = r)) : i = r = n + 5, n + 4 <= i && t !== -1 ? gs(e, t, n, a) : e.strategy === zg || r === i ? (Lt(e, (g0 << 1) + (a ? 1 : 0), 3), Vf(e, Vn, Wi)) : (Lt(e, (Wg << 1) + (a ? 1 : 0), 3), nm(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, o + 1), Vf(e, e.dyn_ltree, e.dyn_dtree)), P0(e), a && M0(e);
|
|
3241
3241
|
};
|
|
3242
3242
|
var ia = (e, t, n) => (e.pending_buf[e.sym_buf + e.sym_next++] = t, e.pending_buf[e.sym_buf + e.sym_next++] = t >> 8, e.pending_buf[e.sym_buf + e.sym_next++] = n, t === 0 ? e.dyn_ltree[n * 2]++ : (e.matches++, t--, e.dyn_ltree[(sr[n] + il + 1) * 2]++, e.dyn_dtree[C0(t) * 2]++), e.sym_next === e.sym_end);
|
|
3243
3243
|
var cr = (e, t, n, a) => {
|
|
@@ -3277,10 +3277,10 @@ var Fn = 262;
|
|
|
3277
3277
|
var hm = 32;
|
|
3278
3278
|
var $a = 42;
|
|
3279
3279
|
var cl = 57;
|
|
3280
|
-
var
|
|
3281
|
-
var
|
|
3282
|
-
var
|
|
3283
|
-
var
|
|
3280
|
+
var rc = 69;
|
|
3281
|
+
var sc = 73;
|
|
3282
|
+
var oc = 91;
|
|
3283
|
+
var cc = 103;
|
|
3284
3284
|
var va = 113;
|
|
3285
3285
|
var Gi = 666;
|
|
3286
3286
|
var Et = 1;
|
|
@@ -3329,7 +3329,7 @@ var Re = (e, t) => {
|
|
|
3329
3329
|
var Ci = (e, t) => {
|
|
3330
3330
|
e.pending_buf[e.pending++] = t >>> 8 & 255, e.pending_buf[e.pending++] = t & 255;
|
|
3331
3331
|
};
|
|
3332
|
-
var
|
|
3332
|
+
var lc = (e, t, n, a) => {
|
|
3333
3333
|
let i = e.avail_in;
|
|
3334
3334
|
return i > a && (i = a), i === 0 ? 0 : (e.avail_in -= i, t.set(e.input.subarray(e.next_in, e.next_in + i), n), e.state.wrap === 1 ? e.adler = cr(e.adler, t, i, n) : e.state.wrap === 2 && (e.adler = vt(e.adler, t, i, n)), e.next_in += i, e.total_in += i, i);
|
|
3335
3335
|
};
|
|
@@ -3354,7 +3354,7 @@ var ei = (e) => {
|
|
|
3354
3354
|
let t = e.w_size, n, a, i;
|
|
3355
3355
|
do {
|
|
3356
3356
|
if (a = e.window_size - e.lookahead - e.strstart, e.strstart >= t + (t - Fn) && (e.window.set(e.window.subarray(t, t + t - a), 0), e.match_start -= t, e.strstart -= t, e.block_start -= t, e.insert > e.strstart && (e.insert = e.strstart), gm(e), a += t), e.strm.avail_in === 0) break;
|
|
3357
|
-
if (n =
|
|
3357
|
+
if (n = lc(e.strm, e.window, e.strstart + e.lookahead, a), e.lookahead += n, e.legacy_hash) {
|
|
3358
3358
|
if (e.lookahead + e.insert >= ze) for (i = e.strstart - e.insert, e.ins_h = e.window[i], e.ins_h = ll(e, e.ins_h, e.window[i + 1]); e.insert && (Ma(e, i), i++, e.insert--, !(e.lookahead + e.insert < ze)); ) ;
|
|
3359
3359
|
} else if (e.lookahead + e.insert > ze) for (i = e.strstart - e.insert; e.insert && (Ma(e, i), i++, e.insert--, !(e.lookahead + e.insert <= ze)); ) ;
|
|
3360
3360
|
} while (e.lookahead < Fn && e.strm.avail_in !== 0);
|
|
@@ -3363,9 +3363,9 @@ var E0 = (e, t) => {
|
|
|
3363
3363
|
let n = e.pending_buf_size - 5 > e.w_size ? e.w_size : e.pending_buf_size - 5, a, i, r, o = 0, s = e.strm.avail_in;
|
|
3364
3364
|
do {
|
|
3365
3365
|
if (a = 65535, r = e.bi_valid + 42 >> 3, e.strm.avail_out < r || (r = e.strm.avail_out - r, i = e.strstart - e.block_start, a > i + e.strm.avail_in && (a = i + e.strm.avail_in), a > r && (a = r), a < n && (a === 0 && t !== 4 || t === 0 || a !== i + e.strm.avail_in))) break;
|
|
3366
|
-
o = t === 4 && a === i + e.strm.avail_in ? 1 : 0, gs(e, 0, 0, o), e.pending_buf[e.pending - 4] = a, e.pending_buf[e.pending - 3] = a >> 8, e.pending_buf[e.pending - 2] = ~a, e.pending_buf[e.pending - 1] = ~a >> 8, qt(e.strm), i && (i > a && (i = a), e.strm.output.set(e.window.subarray(e.block_start, e.block_start + i), e.strm.next_out), e.strm.next_out += i, e.strm.avail_out -= i, e.strm.total_out += i, e.block_start += i, a -= i), a && (
|
|
3366
|
+
o = t === 4 && a === i + e.strm.avail_in ? 1 : 0, gs(e, 0, 0, o), e.pending_buf[e.pending - 4] = a, e.pending_buf[e.pending - 3] = a >> 8, e.pending_buf[e.pending - 2] = ~a, e.pending_buf[e.pending - 1] = ~a >> 8, qt(e.strm), i && (i > a && (i = a), e.strm.output.set(e.window.subarray(e.block_start, e.block_start + i), e.strm.next_out), e.strm.next_out += i, e.strm.avail_out -= i, e.strm.total_out += i, e.block_start += i, a -= i), a && (lc(e.strm, e.strm.output, e.strm.next_out, a), e.strm.next_out += a, e.strm.avail_out -= a, e.strm.total_out += a);
|
|
3367
3367
|
} while (o === 0);
|
|
3368
|
-
return s -= e.strm.avail_in, s && (s >= e.w_size ? (e.matches = 2, e.window.set(e.strm.input.subarray(e.strm.next_in - e.w_size, e.strm.next_in), 0), e.strstart = e.w_size, e.insert = e.strstart) : (e.window_size - e.strstart <= s && (e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, e.insert > e.strstart && (e.insert = e.strstart)), e.window.set(e.strm.input.subarray(e.strm.next_in - s, e.strm.next_in), e.strstart), e.strstart += s, e.insert += s > e.w_size - e.insert ? e.w_size - e.insert : s), e.block_start = e.strstart), e.high_water < e.strstart && (e.high_water = e.strstart), o ? li : t !== 0 && t !== 4 && e.strm.avail_in === 0 && e.strstart === e.block_start ? ci : (r = e.window_size - e.strstart, e.strm.avail_in > r && e.block_start >= e.w_size && (e.block_start -= e.w_size, e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, r += e.w_size, e.insert > e.strstart && (e.insert = e.strstart)), r > e.strm.avail_in && (r = e.strm.avail_in), r && (
|
|
3368
|
+
return s -= e.strm.avail_in, s && (s >= e.w_size ? (e.matches = 2, e.window.set(e.strm.input.subarray(e.strm.next_in - e.w_size, e.strm.next_in), 0), e.strstart = e.w_size, e.insert = e.strstart) : (e.window_size - e.strstart <= s && (e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, e.insert > e.strstart && (e.insert = e.strstart)), e.window.set(e.strm.input.subarray(e.strm.next_in - s, e.strm.next_in), e.strstart), e.strstart += s, e.insert += s > e.w_size - e.insert ? e.w_size - e.insert : s), e.block_start = e.strstart), e.high_water < e.strstart && (e.high_water = e.strstart), o ? li : t !== 0 && t !== 4 && e.strm.avail_in === 0 && e.strstart === e.block_start ? ci : (r = e.window_size - e.strstart, e.strm.avail_in > r && e.block_start >= e.w_size && (e.block_start -= e.w_size, e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, r += e.w_size, e.insert > e.strstart && (e.insert = e.strstart)), r > e.strm.avail_in && (r = e.strm.avail_in), r && (lc(e.strm, e.window, e.strstart, r), e.strstart += r, e.insert += r > e.w_size - e.insert ? e.w_size - e.insert : r), e.high_water < e.strstart && (e.high_water = e.strstart), r = e.bi_valid + 42 >> 3, r = e.pending_buf_size - r > 65535 ? 65535 : e.pending_buf_size - r, n = r > e.w_size ? e.w_size : r, i = e.strstart - e.block_start, (i >= n || (i || t === 4) && t !== 0 && e.strm.avail_in === 0 && i <= r) && (a = i > r ? r : i, o = t === 4 && e.strm.avail_in === 0 && a === i ? 1 : 0, gs(e, e.block_start, a, o), e.block_start += a, qt(e.strm)), o ? Pa : Et);
|
|
3369
3369
|
};
|
|
3370
3370
|
var ko = (e, t) => {
|
|
3371
3371
|
let n, a;
|
|
@@ -3451,7 +3451,7 @@ var vm = class {
|
|
|
3451
3451
|
var Es = (e) => {
|
|
3452
3452
|
if (!e) return 1;
|
|
3453
3453
|
let t = e.state;
|
|
3454
|
-
return !t || t.strm !== e || t.status !== $a && t.status !== cl && t.status !==
|
|
3454
|
+
return !t || t.strm !== e || t.status !== $a && t.status !== cl && t.status !== rc && t.status !== sc && t.status !== oc && t.status !== cc && t.status !== va && t.status !== Gi ? 1 : 0;
|
|
3455
3455
|
};
|
|
3456
3456
|
var bm = (e) => {
|
|
3457
3457
|
if (Es(e)) return ba(e, -2);
|
|
@@ -3485,10 +3485,10 @@ var Bm = (e, t) => {
|
|
|
3485
3485
|
if (n.strategy >= 2 || n.level < 2 ? r = 0 : n.level < 6 ? r = 1 : n.level === 6 ? r = 2 : r = 3, i |= r << 6, n.strstart !== 0 && (i |= hm), i += 31 - i % 31, Ci(n, i), n.strstart !== 0 && (Ci(n, e.adler >>> 16), Ci(n, e.adler & 65535)), e.adler = 1, n.status = va, qt(e), n.pending !== 0) return n.last_flush = -1, 0;
|
|
3486
3486
|
}
|
|
3487
3487
|
if (n.status === cl) {
|
|
3488
|
-
if (e.adler = 0, Re(n, 31), Re(n, 139), Re(n, 8), n.gzhead) Re(n, (n.gzhead.text ? 1 : 0) + (n.gzhead.hcrc ? 2 : 0) + (n.gzhead.extra ? 4 : 0) + (n.gzhead.name ? 8 : 0) + (n.gzhead.comment ? 16 : 0)), Re(n, n.gzhead.time & 255), Re(n, n.gzhead.time >> 8 & 255), Re(n, n.gzhead.time >> 16 & 255), Re(n, n.gzhead.time >> 24 & 255), Re(n, n.level === 9 ? 2 : n.strategy >= 2 || n.level < 2 ? 4 : 0), Re(n, n.gzhead.os & 255), n.gzhead.extra && n.gzhead.extra.length && (Re(n, n.gzhead.extra.length & 255), Re(n, n.gzhead.extra.length >> 8 & 255)), n.gzhead.hcrc && (e.adler = vt(e.adler, n.pending_buf, n.pending, 0)), n.gzindex = 0, n.status =
|
|
3488
|
+
if (e.adler = 0, Re(n, 31), Re(n, 139), Re(n, 8), n.gzhead) Re(n, (n.gzhead.text ? 1 : 0) + (n.gzhead.hcrc ? 2 : 0) + (n.gzhead.extra ? 4 : 0) + (n.gzhead.name ? 8 : 0) + (n.gzhead.comment ? 16 : 0)), Re(n, n.gzhead.time & 255), Re(n, n.gzhead.time >> 8 & 255), Re(n, n.gzhead.time >> 16 & 255), Re(n, n.gzhead.time >> 24 & 255), Re(n, n.level === 9 ? 2 : n.strategy >= 2 || n.level < 2 ? 4 : 0), Re(n, n.gzhead.os & 255), n.gzhead.extra && n.gzhead.extra.length && (Re(n, n.gzhead.extra.length & 255), Re(n, n.gzhead.extra.length >> 8 & 255)), n.gzhead.hcrc && (e.adler = vt(e.adler, n.pending_buf, n.pending, 0)), n.gzindex = 0, n.status = rc;
|
|
3489
3489
|
else if (Re(n, 0), Re(n, 0), Re(n, 0), Re(n, 0), Re(n, 0), Re(n, n.level === 9 ? 2 : n.strategy >= 2 || n.level < 2 ? 4 : 0), Re(n, um), n.status = va, qt(e), n.pending !== 0) return n.last_flush = -1, 0;
|
|
3490
3490
|
}
|
|
3491
|
-
if (n.status ===
|
|
3491
|
+
if (n.status === rc) {
|
|
3492
3492
|
if (n.gzhead.extra) {
|
|
3493
3493
|
let i = n.pending, r = (n.gzhead.extra.length & 65535) - n.gzindex;
|
|
3494
3494
|
for (; n.pending + r > n.pending_buf_size; ) {
|
|
@@ -3499,9 +3499,9 @@ var Bm = (e, t) => {
|
|
|
3499
3499
|
let o = new Uint8Array(n.gzhead.extra);
|
|
3500
3500
|
n.pending_buf.set(o.subarray(n.gzindex, n.gzindex + r), n.pending), n.pending += r, n.gzhead.hcrc && n.pending > i && (e.adler = vt(e.adler, n.pending_buf, n.pending - i, i)), n.gzindex = 0;
|
|
3501
3501
|
}
|
|
3502
|
-
n.status =
|
|
3502
|
+
n.status = sc;
|
|
3503
3503
|
}
|
|
3504
|
-
if (n.status ===
|
|
3504
|
+
if (n.status === sc) {
|
|
3505
3505
|
if (n.gzhead.name) {
|
|
3506
3506
|
let i = n.pending, r;
|
|
3507
3507
|
do {
|
|
@@ -3513,9 +3513,9 @@ var Bm = (e, t) => {
|
|
|
3513
3513
|
} while (r !== 0);
|
|
3514
3514
|
n.gzhead.hcrc && n.pending > i && (e.adler = vt(e.adler, n.pending_buf, n.pending - i, i)), n.gzindex = 0;
|
|
3515
3515
|
}
|
|
3516
|
-
n.status =
|
|
3516
|
+
n.status = oc;
|
|
3517
3517
|
}
|
|
3518
|
-
if (n.status ===
|
|
3518
|
+
if (n.status === oc) {
|
|
3519
3519
|
if (n.gzhead.comment) {
|
|
3520
3520
|
let i = n.pending, r;
|
|
3521
3521
|
do {
|
|
@@ -3527,9 +3527,9 @@ var Bm = (e, t) => {
|
|
|
3527
3527
|
} while (r !== 0);
|
|
3528
3528
|
n.gzhead.hcrc && n.pending > i && (e.adler = vt(e.adler, n.pending_buf, n.pending - i, i));
|
|
3529
3529
|
}
|
|
3530
|
-
n.status =
|
|
3530
|
+
n.status = cc;
|
|
3531
3531
|
}
|
|
3532
|
-
if (n.status ===
|
|
3532
|
+
if (n.status === cc) {
|
|
3533
3533
|
if (n.gzhead.hcrc) {
|
|
3534
3534
|
if (n.pending + 2 > n.pending_buf_size && (qt(e), n.pending !== 0)) return n.last_flush = -1, 0;
|
|
3535
3535
|
Re(n, e.adler & 255), Re(n, e.adler >> 8 & 255), e.adler = 0;
|
|
@@ -3725,7 +3725,7 @@ var Po = 16206;
|
|
|
3725
3725
|
var md = 16207;
|
|
3726
3726
|
var pd = 16208;
|
|
3727
3727
|
var nt = 16209;
|
|
3728
|
-
var
|
|
3728
|
+
var fc = 16210;
|
|
3729
3729
|
var S0 = 16211;
|
|
3730
3730
|
var Dm = 852;
|
|
3731
3731
|
var Im = 592;
|
|
@@ -4142,13 +4142,13 @@ var Eo = (e, t) => {
|
|
|
4142
4142
|
case nt:
|
|
4143
4143
|
C = -3;
|
|
4144
4144
|
break e;
|
|
4145
|
-
case
|
|
4145
|
+
case fc:
|
|
4146
4146
|
return -4;
|
|
4147
4147
|
case S0:
|
|
4148
4148
|
default:
|
|
4149
4149
|
return -2;
|
|
4150
4150
|
}
|
|
4151
|
-
return e.next_out = o, e.avail_out = l, e.next_in = r, e.avail_in = s, n.hold = c, n.bits = f, (n.wsize || d !== e.avail_out && n.mode < nt && (n.mode < Po || t !== 4)) && X0(e, e.output, e.next_out, d - e.avail_out) ? (n.mode =
|
|
4151
|
+
return e.next_out = o, e.avail_out = l, e.next_in = r, e.avail_in = s, n.hold = c, n.bits = f, (n.wsize || d !== e.avail_out && n.mode < nt && (n.mode < Po || t !== 4)) && X0(e, e.output, e.next_out, d - e.avail_out) ? (n.mode = fc, -4) : (h -= e.avail_in, d -= e.avail_out, e.total_in += h, e.total_out += d, n.total += d, n.wrap & 4 && d && (e.adler = n.check = n.flags ? vt(n.check, i, d, e.next_out - d) : cr(n.check, i, d, e.next_out - d)), e.data_type = n.bits + (n.last ? 64 : 0) + (n.mode === Tn ? 128 : 0) + (n.mode === Er || n.mode === Ho ? 256 : 0), (h === 0 && d === 0 || t === 4) && C === 0 && (C = -5), C);
|
|
4152
4152
|
};
|
|
4153
4153
|
var bd = (e) => {
|
|
4154
4154
|
if (fi(e)) return -2;
|
|
@@ -4157,7 +4157,7 @@ var bd = (e) => {
|
|
|
4157
4157
|
};
|
|
4158
4158
|
var Ad = (e, t) => {
|
|
4159
4159
|
let n = t.length, a, i, r;
|
|
4160
|
-
return fi(e) || (a = e.state, a.wrap !== 0 && a.mode !== ms) ? -2 : a.mode === ms && (i = 1, i = cr(i, t, n, 0), i !== a.check) ? -3 : (r = X0(e, t, n, n), r ? (a.mode =
|
|
4160
|
+
return fi(e) || (a = e.state, a.wrap !== 0 && a.mode !== ms) ? -2 : a.mode === ms && (i = 1, i = cr(i, t, n, 0), i !== a.check) ? -3 : (r = X0(e, t, n, n), r ? (a.mode = fc, -4) : (a.havedict = 1, 0));
|
|
4161
4161
|
};
|
|
4162
4162
|
var U0 = class {
|
|
4163
4163
|
constructor() {
|
|
@@ -4557,7 +4557,7 @@ var ps = class {
|
|
|
4557
4557
|
function Zm(e) {
|
|
4558
4558
|
return unescape(encodeURIComponent(e));
|
|
4559
4559
|
}
|
|
4560
|
-
function
|
|
4560
|
+
function dc(e, t) {
|
|
4561
4561
|
if (e.length !== t.length) return false;
|
|
4562
4562
|
for (let n = 0, a = e.length; n < a; n++) if (e[n] !== t[n]) return false;
|
|
4563
4563
|
return true;
|
|
@@ -4658,7 +4658,7 @@ function So(e, t = false) {
|
|
|
4658
4658
|
}
|
|
4659
4659
|
var _r = [".notdef", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quoteright", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright", "asciicircum", "underscore", "quoteleft", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", "exclamdown", "cent", "sterling", "fraction", "yen", "florin", "section", "currency", "quotesingle", "quotedblleft", "guillemotleft", "guilsinglleft", "guilsinglright", "fi", "fl", "endash", "dagger", "daggerdbl", "periodcentered", "paragraph", "bullet", "quotesinglbase", "quotedblbase", "quotedblright", "guillemotright", "ellipsis", "perthousand", "questiondown", "grave", "acute", "circumflex", "tilde", "macron", "breve", "dotaccent", "dieresis", "ring", "cedilla", "hungarumlaut", "ogonek", "caron", "emdash", "AE", "ordfeminine", "Lslash", "Oslash", "OE", "ordmasculine", "ae", "dotlessi", "lslash", "oslash", "oe", "germandbls", "onesuperior", "logicalnot", "mu", "trademark", "Eth", "onehalf", "plusminus", "Thorn", "onequarter", "divide", "brokenbar", "degree", "thorn", "threequarters", "twosuperior", "registered", "minus", "eth", "multiply", "threesuperior", "copyright", "Aacute", "Acircumflex", "Adieresis", "Agrave", "Aring", "Atilde", "Ccedilla", "Eacute", "Ecircumflex", "Edieresis", "Egrave", "Iacute", "Icircumflex", "Idieresis", "Igrave", "Ntilde", "Oacute", "Ocircumflex", "Odieresis", "Ograve", "Otilde", "Scaron", "Uacute", "Ucircumflex", "Udieresis", "Ugrave", "Yacute", "Ydieresis", "Zcaron", "aacute", "acircumflex", "adieresis", "agrave", "aring", "atilde", "ccedilla", "eacute", "ecircumflex", "edieresis", "egrave", "iacute", "icircumflex", "idieresis", "igrave", "ntilde", "oacute", "ocircumflex", "odieresis", "ograve", "otilde", "scaron", "uacute", "ucircumflex", "udieresis", "ugrave", "yacute", "ydieresis", "zcaron", "exclamsmall", "Hungarumlautsmall", "dollaroldstyle", "dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "commasuperior", "threequartersemdash", "periodsuperior", "questionsmall", "asuperior", "bsuperior", "centsuperior", "dsuperior", "esuperior", "isuperior", "lsuperior", "msuperior", "nsuperior", "osuperior", "rsuperior", "ssuperior", "tsuperior", "ff", "ffi", "ffl", "parenleftinferior", "parenrightinferior", "Circumflexsmall", "hyphensuperior", "Gravesmall", "Asmall", "Bsmall", "Csmall", "Dsmall", "Esmall", "Fsmall", "Gsmall", "Hsmall", "Ismall", "Jsmall", "Ksmall", "Lsmall", "Msmall", "Nsmall", "Osmall", "Psmall", "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall", "Vsmall", "Wsmall", "Xsmall", "Ysmall", "Zsmall", "colonmonetary", "onefitted", "rupiah", "Tildesmall", "exclamdownsmall", "centoldstyle", "Lslashsmall", "Scaronsmall", "Zcaronsmall", "Dieresissmall", "Brevesmall", "Caronsmall", "Dotaccentsmall", "Macronsmall", "figuredash", "hypheninferior", "Ogoneksmall", "Ringsmall", "Cedillasmall", "questiondownsmall", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "zerosuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", "zeroinferior", "oneinferior", "twoinferior", "threeinferior", "fourinferior", "fiveinferior", "sixinferior", "seveninferior", "eightinferior", "nineinferior", "centinferior", "dollarinferior", "periodinferior", "commainferior", "Agravesmall", "Aacutesmall", "Acircumflexsmall", "Atildesmall", "Adieresissmall", "Aringsmall", "AEsmall", "Ccedillasmall", "Egravesmall", "Eacutesmall", "Ecircumflexsmall", "Edieresissmall", "Igravesmall", "Iacutesmall", "Icircumflexsmall", "Idieresissmall", "Ethsmall", "Ntildesmall", "Ogravesmall", "Oacutesmall", "Ocircumflexsmall", "Otildesmall", "Odieresissmall", "OEsmall", "Oslashsmall", "Ugravesmall", "Uacutesmall", "Ucircumflexsmall", "Udieresissmall", "Yacutesmall", "Thornsmall", "Ydieresissmall", "001.000", "001.001", "001.002", "001.003", "Black", "Bold", "Book", "Light", "Medium", "Regular", "Roman", "Semibold"];
|
|
4660
4660
|
var Ir = 391;
|
|
4661
|
-
var
|
|
4661
|
+
var hc = 0.039625;
|
|
4662
4662
|
var q0 = 7;
|
|
4663
4663
|
var z0 = 1;
|
|
4664
4664
|
var Y0 = 0.06;
|
|
@@ -4681,7 +4681,7 @@ var Is = class {
|
|
|
4681
4681
|
parse() {
|
|
4682
4682
|
let e = this.properties, t = new j0(this.bytes.length);
|
|
4683
4683
|
this.cff = t;
|
|
4684
|
-
let n = this.parseHeader(), a = this.parseIndex(n.endPos), i = this.parseIndex(a.endPos), r = this.parseIndex(i.endPos), o = this.parseIndex(r.endPos), s = this.parseDict(i.obj.get(0)), l = this.createDict(
|
|
4684
|
+
let n = this.parseHeader(), a = this.parseIndex(n.endPos), i = this.parseIndex(a.endPos), r = this.parseIndex(i.endPos), o = this.parseIndex(r.endPos), s = this.parseDict(i.obj.get(0)), l = this.createDict(uc, s, t.strings);
|
|
4685
4685
|
t.header = n.obj, t.names = this.parseNameIndex(a.obj), t.strings = this.parseStringIndex(r.obj), t.topDict = l, t.globalSubrIndex = o.obj, this.parsePrivateDict(t.topDict), t.isCIDFont = l.hasName("ROS");
|
|
4686
4686
|
let c = l.getByName("CharStrings"), f = this.parseIndex(c).obj;
|
|
4687
4687
|
t.charStringCount = f.count;
|
|
@@ -4690,7 +4690,7 @@ var Is = class {
|
|
|
4690
4690
|
let d = l.getByName("FontBBox"), u = e.bbox?.some((m) => m !== 0) ? So(e.bbox) : null, g = d?.slice(0, 2).some(Jr), p = d?.some(Jr);
|
|
4691
4691
|
if (d?.every((m) => m === 0) && u) d = u, l.setByName("FontBBox", d);
|
|
4692
4692
|
else if (p) {
|
|
4693
|
-
let m = So(d), w = u && e.bbox.some((x) => x < 0) && !e.bbox.some(Jr) &&
|
|
4693
|
+
let m = So(d), w = u && e.bbox.some((x) => x < 0) && !e.bbox.some(Jr) && dc(m, u);
|
|
4694
4694
|
(w || g) && (d = w ? m : So(d, true), l.setByName("FontBBox", d));
|
|
4695
4695
|
}
|
|
4696
4696
|
d?.some((m) => m !== 0) && (e.ascent = Math.max(d[3], d[1]), e.descent = Math.min(d[1], d[3]), e.ascentScaled = true);
|
|
@@ -4698,7 +4698,7 @@ var Is = class {
|
|
|
4698
4698
|
if (t.isCIDFont) {
|
|
4699
4699
|
let m = this.parseIndex(l.getByName("FDArray")).obj;
|
|
4700
4700
|
for (let w = 0, x = m.count; w < x; ++w) {
|
|
4701
|
-
let B = m.get(w), y = this.createDict(
|
|
4701
|
+
let B = m.get(w), y = this.createDict(uc, this.parseDict(B), t.strings);
|
|
4702
4702
|
this.parsePrivateDict(y), t.fdArray.push(y);
|
|
4703
4703
|
}
|
|
4704
4704
|
A = null, v = this.parseCharsets(l.getByName("charset"), f.count, t.strings, true), t.fdSelect = this.parseFDSelect(l.getByName("FDSelect"), f.count);
|
|
@@ -4843,7 +4843,7 @@ var Is = class {
|
|
|
4843
4843
|
return { charStrings: e, seacs: o, widths: s };
|
|
4844
4844
|
}
|
|
4845
4845
|
emptyPrivateDictionary(e) {
|
|
4846
|
-
let t = this.createDict(
|
|
4846
|
+
let t = this.createDict(gc, [], e.strings);
|
|
4847
4847
|
e.setByKey(18, [0, 0]), e.privateDict = t;
|
|
4848
4848
|
}
|
|
4849
4849
|
parsePrivateDict(e) {
|
|
@@ -4862,14 +4862,14 @@ var Is = class {
|
|
|
4862
4862
|
return;
|
|
4863
4863
|
}
|
|
4864
4864
|
if (a + n > this.bytes.length) throw new We("CFF Private DICT extends past end of font");
|
|
4865
|
-
let i = a + n, r = this.bytes.subarray(a, i), o = this.parseDict(r), s = this.createDict(
|
|
4865
|
+
let i = a + n, r = this.bytes.subarray(a, i), o = this.parseDict(r), s = this.createDict(gc, o, e.strings);
|
|
4866
4866
|
e.privateDict = s;
|
|
4867
4867
|
let l = s.getByName("BlueScale"), c = s.getByName("BlueShift"), f = s.getByName("BlueFuzz"), h = s.getByName("ExpansionFactor");
|
|
4868
|
-
if (l === 0 && c === 0 && f === 0 && h === 0 && (s.setByName("BlueScale",
|
|
4868
|
+
if (l === 0 && c === 0 && f === 0 && h === 0 && (s.setByName("BlueScale", hc), s.setByName("BlueShift", q0), s.setByName("BlueFuzz", z0)), h === 0 && s.setByName("ExpansionFactor", Y0), l > 0) {
|
|
4869
4869
|
let p = 0;
|
|
4870
4870
|
for (let v of [s.getByName("BlueValues"), s.getByName("OtherBlues")]) if (v) for (let A = 1; A < v.length; A += 2) v[A] > p && (p = v[A]);
|
|
4871
4871
|
if (p > 0) {
|
|
4872
|
-
let A = 0.5 / p, b = A <=
|
|
4872
|
+
let A = 0.5 / p, b = A <= hc ? Math.ceil(A * 1e5) / 1e5 : -1 / 0, m = Math.floor(1e5 / p) / 1e5, w = R0(l, b, m);
|
|
4873
4873
|
w !== l && s.setByName("BlueScale", w);
|
|
4874
4874
|
}
|
|
4875
4875
|
}
|
|
@@ -5071,7 +5071,7 @@ var N0 = class {
|
|
|
5071
5071
|
}
|
|
5072
5072
|
};
|
|
5073
5073
|
var s2 = [[[12, 30], "ROS", ["sid", "sid", "num"], null], [[12, 20], "SyntheticBase", "num", null], [0, "version", "sid", null], [1, "Notice", "sid", null], [[12, 0], "Copyright", "sid", null], [2, "FullName", "sid", null], [3, "FamilyName", "sid", null], [4, "Weight", "sid", null], [[12, 1], "isFixedPitch", "num", 0], [[12, 2], "ItalicAngle", "num", 0], [[12, 3], "UnderlinePosition", "num", -100], [[12, 4], "UnderlineThickness", "num", 50], [[12, 5], "PaintType", "num", 0], [[12, 6], "CharstringType", "num", 2], [[12, 7], "FontMatrix", ["num", "num", "num", "num", "num", "num"], [1e-3, 0, 0, 1e-3, 0, 0]], [13, "UniqueID", "num", null], [5, "FontBBox", ["num", "num", "num", "num"], [0, 0, 0, 0]], [[12, 8], "StrokeWidth", "num", 0], [14, "XUID", "array", null], [15, "charset", "offset", 0], [16, "Encoding", "offset", 0], [17, "CharStrings", "offset", 0], [18, "Private", ["offset", "offset"], null], [[12, 21], "PostScript", "sid", null], [[12, 22], "BaseFontName", "sid", null], [[12, 23], "BaseFontBlend", "delta", null], [[12, 31], "CIDFontVersion", "num", 0], [[12, 32], "CIDFontRevision", "num", 0], [[12, 33], "CIDFontType", "num", 0], [[12, 34], "CIDCount", "num", 8720], [[12, 35], "UIDBase", "num", null], [[12, 37], "FDSelect", "offset", null], [[12, 36], "FDArray", "offset", null], [[12, 38], "FontName", "sid", null]];
|
|
5074
|
-
var
|
|
5074
|
+
var uc = class Z0 extends N0 {
|
|
5075
5075
|
static get tables() {
|
|
5076
5076
|
return ot(this, "tables", this.createTables(s2));
|
|
5077
5077
|
}
|
|
@@ -5080,8 +5080,8 @@ var hc = class Z0 extends N0 {
|
|
|
5080
5080
|
super(Z0.tables, t);
|
|
5081
5081
|
}
|
|
5082
5082
|
};
|
|
5083
|
-
var o2 = [[6, "BlueValues", "delta", null], [7, "OtherBlues", "delta", null], [8, "FamilyBlues", "delta", null], [9, "FamilyOtherBlues", "delta", null], [[12, 9], "BlueScale", "num",
|
|
5084
|
-
var
|
|
5083
|
+
var o2 = [[6, "BlueValues", "delta", null], [7, "OtherBlues", "delta", null], [8, "FamilyBlues", "delta", null], [9, "FamilyOtherBlues", "delta", null], [[12, 9], "BlueScale", "num", hc], [[12, 10], "BlueShift", "num", q0], [[12, 11], "BlueFuzz", "num", z0], [10, "StdHW", "num", null], [11, "StdVW", "num", null], [[12, 12], "StemSnapH", "delta", null], [[12, 13], "StemSnapV", "delta", null], [[12, 14], "ForceBold", "num", 0], [[12, 17], "LanguageGroup", "num", 0], [[12, 18], "ExpansionFactor", "num", Y0], [[12, 19], "initialRandomSeed", "num", 0], [20, "defaultWidthX", "num", 0], [21, "nominalWidthX", "num", 0], [19, "Subrs", "offset", null]];
|
|
5084
|
+
var gc = class J0 extends N0 {
|
|
5085
5085
|
static get tables() {
|
|
5086
5086
|
return ot(this, "tables", this.createTables(o2));
|
|
5087
5087
|
}
|
|
@@ -5465,7 +5465,7 @@ var ti = class wn {
|
|
|
5465
5465
|
this.#e.delete(t);
|
|
5466
5466
|
}
|
|
5467
5467
|
};
|
|
5468
|
-
var Xo = class
|
|
5468
|
+
var Xo = class mc {
|
|
5469
5469
|
#e;
|
|
5470
5470
|
constructor(t, n, a) {
|
|
5471
5471
|
this.#e = t, this.num = n, this.gen = a;
|
|
@@ -5477,11 +5477,11 @@ var Xo = class gc {
|
|
|
5477
5477
|
let n = Sr.get(t);
|
|
5478
5478
|
if (n) return n;
|
|
5479
5479
|
let a = /^([1-9]\d*)R([1-9]\d*)?$/.exec(t);
|
|
5480
|
-
return a ? (n = new
|
|
5480
|
+
return a ? (n = new mc(t, parseInt(a[1], 10), a[2] ? parseInt(a[2], 10) : 0), Sr.set(t, n), n) : null;
|
|
5481
5481
|
}
|
|
5482
5482
|
static get(t, n) {
|
|
5483
5483
|
let a = n === 0 ? `${t}R` : `${t}R${n}`, i = Sr.get(a);
|
|
5484
|
-
return i || (i = new
|
|
5484
|
+
return i || (i = new mc(a, t, n), Sr.set(a, i)), i;
|
|
5485
5485
|
}
|
|
5486
5486
|
};
|
|
5487
5487
|
function Ii(e, t) {
|
|
@@ -5593,7 +5593,7 @@ var di = Ct(function(e) {
|
|
|
5593
5593
|
var u2 = Ct(function(e) {
|
|
5594
5594
|
e.space = 32, e.a1 = 9985, e.a2 = 9986, e.a202 = 9987, e.a3 = 9988, e.a4 = 9742, e.a5 = 9990, e.a119 = 9991, e.a118 = 9992, e.a117 = 9993, e.a11 = 9755, e.a12 = 9758, e.a13 = 9996, e.a14 = 9997, e.a15 = 9998, e.a16 = 9999, e.a105 = 1e4, e.a17 = 10001, e.a18 = 10002, e.a19 = 10003, e.a20 = 10004, e.a21 = 10005, e.a22 = 10006, e.a23 = 10007, e.a24 = 10008, e.a25 = 10009, e.a26 = 10010, e.a27 = 10011, e.a28 = 10012, e.a6 = 10013, e.a7 = 10014, e.a8 = 10015, e.a9 = 10016, e.a10 = 10017, e.a29 = 10018, e.a30 = 10019, e.a31 = 10020, e.a32 = 10021, e.a33 = 10022, e.a34 = 10023, e.a35 = 9733, e.a36 = 10025, e.a37 = 10026, e.a38 = 10027, e.a39 = 10028, e.a40 = 10029, e.a41 = 10030, e.a42 = 10031, e.a43 = 10032, e.a44 = 10033, e.a45 = 10034, e.a46 = 10035, e.a47 = 10036, e.a48 = 10037, e.a49 = 10038, e.a50 = 10039, e.a51 = 10040, e.a52 = 10041, e.a53 = 10042, e.a54 = 10043, e.a55 = 10044, e.a56 = 10045, e.a57 = 10046, e.a58 = 10047, e.a59 = 10048, e.a60 = 10049, e.a61 = 10050, e.a62 = 10051, e.a63 = 10052, e.a64 = 10053, e.a65 = 10054, e.a66 = 10055, e.a67 = 10056, e.a68 = 10057, e.a69 = 10058, e.a70 = 10059, e.a71 = 9679, e.a72 = 10061, e.a73 = 9632, e.a74 = 10063, e.a203 = 10064, e.a75 = 10065, e.a204 = 10066, e.a76 = 9650, e.a77 = 9660, e.a78 = 9670, e.a79 = 10070, e.a81 = 9687, e.a82 = 10072, e.a83 = 10073, e.a84 = 10074, e.a97 = 10075, e.a98 = 10076, e.a99 = 10077, e.a100 = 10078, e.a101 = 10081, e.a102 = 10082, e.a103 = 10083, e.a104 = 10084, e.a106 = 10085, e.a107 = 10086, e.a108 = 10087, e.a112 = 9827, e.a111 = 9830, e.a110 = 9829, e.a109 = 9824, e.a120 = 9312, e.a121 = 9313, e.a122 = 9314, e.a123 = 9315, e.a124 = 9316, e.a125 = 9317, e.a126 = 9318, e.a127 = 9319, e.a128 = 9320, e.a129 = 9321, e.a130 = 10102, e.a131 = 10103, e.a132 = 10104, e.a133 = 10105, e.a134 = 10106, e.a135 = 10107, e.a136 = 10108, e.a137 = 10109, e.a138 = 10110, e.a139 = 10111, e.a140 = 10112, e.a141 = 10113, e.a142 = 10114, e.a143 = 10115, e.a144 = 10116, e.a145 = 10117, e.a146 = 10118, e.a147 = 10119, e.a148 = 10120, e.a149 = 10121, e.a150 = 10122, e.a151 = 10123, e.a152 = 10124, e.a153 = 10125, e.a154 = 10126, e.a155 = 10127, e.a156 = 10128, e.a157 = 10129, e.a158 = 10130, e.a159 = 10131, e.a160 = 10132, e.a161 = 8594, e.a163 = 8596, e.a164 = 8597, e.a196 = 10136, e.a165 = 10137, e.a192 = 10138, e.a166 = 10139, e.a167 = 10140, e.a168 = 10141, e.a169 = 10142, e.a170 = 10143, e.a171 = 10144, e.a172 = 10145, e.a173 = 10146, e.a162 = 10147, e.a174 = 10148, e.a175 = 10149, e.a176 = 10150, e.a177 = 10151, e.a178 = 10152, e.a179 = 10153, e.a193 = 10154, e.a180 = 10155, e.a199 = 10156, e.a181 = 10157, e.a200 = 10158, e.a182 = 10159, e.a201 = 10161, e.a183 = 10162, e.a184 = 10163, e.a197 = 10164, e.a185 = 10165, e.a194 = 10166, e.a198 = 10167, e.a186 = 10168, e.a195 = 10169, e.a187 = 10170, e.a188 = 10171, e.a189 = 10172, e.a190 = 10173, e.a191 = 10174, e.a89 = 10088, e.a90 = 10089, e.a93 = 10090, e.a94 = 10091, e.a91 = 10092, e.a92 = 10093, e.a205 = 10094, e.a85 = 10095, e.a206 = 10096, e.a86 = 10097, e.a87 = 10098, e.a88 = 10099, e.a95 = 10100, e.a96 = 10101, e[".notdef"] = 0;
|
|
5595
5595
|
});
|
|
5596
|
-
var Dt = class
|
|
5596
|
+
var Dt = class pc extends n1 {
|
|
5597
5597
|
constructor(t, n, a, i) {
|
|
5598
5598
|
super(), this.bytes = t instanceof Uint8Array ? t : new Uint8Array(t), this.start = n || 0, this.pos = this.start, this.end = n + a || this.bytes.length, this.dict = i;
|
|
5599
5599
|
}
|
|
@@ -5620,17 +5620,17 @@ var Dt = class mc extends n1 {
|
|
|
5620
5620
|
this.start = this.pos;
|
|
5621
5621
|
}
|
|
5622
5622
|
makeSubStream(t, n, a = null) {
|
|
5623
|
-
return new
|
|
5623
|
+
return new pc(this.bytes.buffer, t, n, a);
|
|
5624
5624
|
}
|
|
5625
5625
|
clone() {
|
|
5626
|
-
return new
|
|
5626
|
+
return new pc(this.bytes.buffer, this.start, this.length, this.dict?.clone());
|
|
5627
5627
|
}
|
|
5628
5628
|
};
|
|
5629
|
-
function
|
|
5629
|
+
function wc(e) {
|
|
5630
5630
|
let t = e.length;
|
|
5631
5631
|
return t >= 33900 ? 32768 : t < 1240 ? 107 : 1131;
|
|
5632
5632
|
}
|
|
5633
|
-
function
|
|
5633
|
+
function vc(e, t) {
|
|
5634
5634
|
let n = t.codePointAt(0), a = 0, i = 0, r = e.length - 1;
|
|
5635
5635
|
for (; i < r; ) {
|
|
5636
5636
|
let o = i + r + 1 >> 1;
|
|
@@ -5638,7 +5638,7 @@ function wc(e, t) {
|
|
|
5638
5638
|
}
|
|
5639
5639
|
return e[i].start <= n && n <= e[i].end && (a = e[i].idDelta + (e[i].ids ? e[i].ids[n - e[i].start] : n) & 65535), { charCode: n, glyphId: a };
|
|
5640
5640
|
}
|
|
5641
|
-
function
|
|
5641
|
+
function bc(e, t, n, a) {
|
|
5642
5642
|
function i(u, g) {
|
|
5643
5643
|
h && t.add(Qn.lineTo, h), h = [u, g], t.add(Qn.moveTo, [u, g]);
|
|
5644
5644
|
}
|
|
@@ -5680,7 +5680,7 @@ function vc(e, t, n, a) {
|
|
|
5680
5680
|
let M = n.fdSelect.getFDIndex(a);
|
|
5681
5681
|
if (M >= 0 && M < n.fdArray.length) {
|
|
5682
5682
|
let P = n.fdArray[M], F;
|
|
5683
|
-
P.privateDict?.subrsIndex && (F = P.privateDict.subrsIndex.objects), F && (k +=
|
|
5683
|
+
P.privateDict?.subrsIndex && (F = P.privateDict.subrsIndex.objects), F && (k += wc(F), H = F[k]);
|
|
5684
5684
|
} else pt("Invalid fd index for glyph index.");
|
|
5685
5685
|
} else H = n.subrs[k + n.subrsBias];
|
|
5686
5686
|
H && d(H);
|
|
@@ -5710,8 +5710,8 @@ function vc(e, t, n, a) {
|
|
|
5710
5710
|
if (s.length >= 4) {
|
|
5711
5711
|
let M = s.pop(), P = s.pop();
|
|
5712
5712
|
c = s.pop(), l = s.pop(), t.save(), t.translate(l, c);
|
|
5713
|
-
let F =
|
|
5714
|
-
|
|
5713
|
+
let F = vc(n.cmap, String.fromCharCode(n.glyphNameMap[lr[M]]));
|
|
5714
|
+
bc(n.glyphs[F.glyphId], t, n, F.glyphId), t.restore(), F = vc(n.cmap, String.fromCharCode(n.glyphNameMap[lr[P]])), bc(n.glyphs[F.glyphId], t, n, F.glyphId);
|
|
5715
5715
|
}
|
|
5716
5716
|
return;
|
|
5717
5717
|
case 18:
|
|
@@ -5795,17 +5795,17 @@ var g2 = class {
|
|
|
5795
5795
|
return typeof PDFJSDev < "u" && PDFJSDev.test("MOZCENTRAL") || hl.isFloat16ArraySupported ? new Float16Array(this.cmds) : new Float32Array(this.cmds);
|
|
5796
5796
|
}
|
|
5797
5797
|
};
|
|
5798
|
-
var m2 = class
|
|
5798
|
+
var m2 = class Ac {
|
|
5799
5799
|
#e = /* @__PURE__ */ new Set();
|
|
5800
5800
|
#t = /* @__PURE__ */ new Map();
|
|
5801
5801
|
constructor(t) {
|
|
5802
|
-
(typeof PDFJSDev > "u" || PDFJSDev.test("TESTING")) && this.constructor ===
|
|
5802
|
+
(typeof PDFJSDev > "u" || PDFJSDev.test("TESTING")) && this.constructor === Ac && Ze("Cannot initialize CompiledFont."), this.fontMatrix = t;
|
|
5803
5803
|
}
|
|
5804
5804
|
static get NOOP() {
|
|
5805
5805
|
return ot(this, "NOOP", typeof PDFJSDev < "u" && PDFJSDev.test("MOZCENTRAL") || hl.isFloat16ArraySupported ? new Float16Array(0) : new Float32Array(0));
|
|
5806
5806
|
}
|
|
5807
5807
|
getPath(t) {
|
|
5808
|
-
let { charCode: n, glyphId: a } =
|
|
5808
|
+
let { charCode: n, glyphId: a } = vc(this.cmap, t);
|
|
5809
5809
|
if (this.#t.has(a) && this.#e.has(n)) return null;
|
|
5810
5810
|
let i = this.#t.getOrInsertComputed(a, () => {
|
|
5811
5811
|
try {
|
|
@@ -5818,7 +5818,7 @@ var m2 = class bc {
|
|
|
5818
5818
|
return f2(i);
|
|
5819
5819
|
}
|
|
5820
5820
|
compileGlyph(t, n) {
|
|
5821
|
-
if (!t?.length || t[0] === 14) return
|
|
5821
|
+
if (!t?.length || t[0] === 14) return Ac.NOOP;
|
|
5822
5822
|
let a = this.fontMatrix;
|
|
5823
5823
|
if (this.isCFFCIDFont) {
|
|
5824
5824
|
let r = this.fdSelect.getFDIndex(n);
|
|
@@ -5834,10 +5834,10 @@ var m2 = class bc {
|
|
|
5834
5834
|
};
|
|
5835
5835
|
var p2 = class extends m2 {
|
|
5836
5836
|
constructor(e, t, n) {
|
|
5837
|
-
super(n || [1e-3, 0, 0, 1e-3, 0, 0]), this.glyphs = e.glyphs, this.gsubrs = e.gsubrs || [], this.subrs = e.subrs || [], this.cmap = t, this.glyphNameMap = di(), this.gsubrsBias =
|
|
5837
|
+
super(n || [1e-3, 0, 0, 1e-3, 0, 0]), this.glyphs = e.glyphs, this.gsubrs = e.gsubrs || [], this.subrs = e.subrs || [], this.cmap = t, this.glyphNameMap = di(), this.gsubrsBias = wc(this.gsubrs), this.subrsBias = wc(this.subrs), this.isCFFCIDFont = e.isCFFCIDFont, this.fdSelect = e.fdSelect, this.fdArray = e.fdArray;
|
|
5838
5838
|
}
|
|
5839
5839
|
compileGlyphImpl(e, t, n) {
|
|
5840
|
-
|
|
5840
|
+
bc(e, t, this, n);
|
|
5841
5841
|
}
|
|
5842
5842
|
};
|
|
5843
5843
|
var Aw = Ct(function(e) {
|
|
@@ -6496,7 +6496,7 @@ var F2 = class {
|
|
|
6496
6496
|
wrap(e, t, n, a, i) {
|
|
6497
6497
|
let r = new j0(this.#e);
|
|
6498
6498
|
r.header = new W0(1, 0, 4, 4), r.names = [e];
|
|
6499
|
-
let o = new
|
|
6499
|
+
let o = new uc();
|
|
6500
6500
|
o.setByName("version", 391), o.setByName("Notice", 392), o.setByName("FullName", 393), o.setByName("FamilyName", 394), o.setByName("Weight", 395), o.setByName("Encoding", null), o.setByName("FontMatrix", i.fontMatrix), o.setByName("FontBBox", i.bbox), o.setByName("charset", null), o.setByName("CharStrings", null), o.setByName("Private", null), r.topDict = o;
|
|
6501
6501
|
let s = new ml();
|
|
6502
6502
|
s.add("Version 0.11"), s.add("See original notice"), s.add(e), s.add(e), s.add("Medium"), r.strings = s, r.globalSubrIndex = new $n();
|
|
@@ -6510,7 +6510,7 @@ var F2 = class {
|
|
|
6510
6510
|
f.add([139, 14]);
|
|
6511
6511
|
for (let p = 0; p < l; p++) f.add(t[p]);
|
|
6512
6512
|
r.charStrings = f;
|
|
6513
|
-
let h = new
|
|
6513
|
+
let h = new gc();
|
|
6514
6514
|
h.setByName("Subrs", null);
|
|
6515
6515
|
let d = ["BlueValues", "OtherBlues", "FamilyBlues", "FamilyOtherBlues", "StemSnapH", "StemSnapV", "BlueShift", "BlueFuzz", "BlueScale", "LanguageGroup", "ExpansionFactor", "ForceBold", "StdHW", "StdVW"];
|
|
6516
6516
|
for (let p of d) {
|
|
@@ -6648,7 +6648,7 @@ function V2(e) {
|
|
|
6648
6648
|
function Q2(e) {
|
|
6649
6649
|
return Hn(e, 17) ^ Hn(e, 19) ^ e >>> 10;
|
|
6650
6650
|
}
|
|
6651
|
-
function
|
|
6651
|
+
function xc(e, t, n) {
|
|
6652
6652
|
let a = 1779033703, i = 3144134277, r = 1013904242, o = 2773480762, s = 1359893119, l = 2600822924, c = 528734635, f = 1541459225, h = Math.ceil((n + 9) / 64) * 64, d = new Uint8Array(h), u, g;
|
|
6653
6653
|
for (u = 0; u < n; ++u) d[u] = e[t++];
|
|
6654
6654
|
d[u++] = 128;
|
|
@@ -6931,7 +6931,7 @@ var o1 = class extends pl {
|
|
|
6931
6931
|
return i;
|
|
6932
6932
|
}
|
|
6933
6933
|
};
|
|
6934
|
-
var
|
|
6934
|
+
var Bc = class extends pl {
|
|
6935
6935
|
constructor(e) {
|
|
6936
6936
|
super(), this._cyclesOfRepetition = 14, this._keySize = 224, this._key = this._expandKey(e);
|
|
6937
6937
|
}
|
|
@@ -6957,35 +6957,35 @@ var c1 = class l1 {
|
|
|
6957
6957
|
let r = new Uint8Array(t.length + 56);
|
|
6958
6958
|
r.set(t, 0), r.set(n, t.length), r.set(a, t.length + n.length);
|
|
6959
6959
|
let o = this._hash(t, r, a);
|
|
6960
|
-
return
|
|
6960
|
+
return dc(o, i);
|
|
6961
6961
|
}
|
|
6962
6962
|
checkUserPassword(t, n, a) {
|
|
6963
6963
|
let i = new Uint8Array(t.length + 8);
|
|
6964
6964
|
i.set(t, 0), i.set(n, t.length);
|
|
6965
6965
|
let r = this._hash(t, i, []);
|
|
6966
|
-
return
|
|
6966
|
+
return dc(r, a);
|
|
6967
6967
|
}
|
|
6968
6968
|
getOwnerKey(t, n, a, i) {
|
|
6969
6969
|
let r = new Uint8Array(t.length + 56);
|
|
6970
6970
|
r.set(t, 0), r.set(n, t.length), r.set(a, t.length + n.length);
|
|
6971
6971
|
let o = this._hash(t, r, a);
|
|
6972
|
-
return new
|
|
6972
|
+
return new Bc(o).decryptBlock(i, false, new Uint8Array(16));
|
|
6973
6973
|
}
|
|
6974
6974
|
getUserKey(t, n, a) {
|
|
6975
6975
|
let i = new Uint8Array(t.length + 8);
|
|
6976
6976
|
i.set(t, 0), i.set(n, t.length);
|
|
6977
6977
|
let r = this._hash(t, i, []);
|
|
6978
|
-
return new
|
|
6978
|
+
return new Bc(r).decryptBlock(a, false, new Uint8Array(16));
|
|
6979
6979
|
}
|
|
6980
6980
|
};
|
|
6981
6981
|
var f1 = class extends c1 {
|
|
6982
6982
|
_hash(e, t, n) {
|
|
6983
|
-
return
|
|
6983
|
+
return xc(t, 0, t.length);
|
|
6984
6984
|
}
|
|
6985
6985
|
};
|
|
6986
6986
|
var d1 = class extends c1 {
|
|
6987
6987
|
_hash(e, t, n) {
|
|
6988
|
-
let a =
|
|
6988
|
+
let a = xc(t, 0, t.length).subarray(0, 32), i = [0], r = 0;
|
|
6989
6989
|
for (; r < 64 || i.at(-1) > r - 32; ) {
|
|
6990
6990
|
let o = e.length + a.length + n.length, s = new Uint8Array(o), l = 0;
|
|
6991
6991
|
s.set(e, l), l += e.length, s.set(a, l), l += a.length, s.set(n, l);
|
|
@@ -6993,7 +6993,7 @@ var d1 = class extends c1 {
|
|
|
6993
6993
|
for (let d = 0, u = 0; d < 64; d++, u += o) c.set(s, u);
|
|
6994
6994
|
i = new o1(a.subarray(0, 16)).encrypt(c, a.subarray(16, 32));
|
|
6995
6995
|
let h = i.slice(0, 16).reduce((d, u) => d + u, 0) % 3;
|
|
6996
|
-
h === 0 ? a =
|
|
6996
|
+
h === 0 ? a = xc(i, 0, i.length) : h === 1 ? a = S2(i, 0, i.length) : h === 2 && (a = i1(i, 0, i.length)), r++;
|
|
6997
6997
|
}
|
|
6998
6998
|
return a.subarray(0, 32);
|
|
6999
6999
|
}
|
|
@@ -7154,7 +7154,7 @@ var Id = class za {
|
|
|
7154
7154
|
let l = this.cf.get(o.name)?.get("CFM");
|
|
7155
7155
|
if (!l || l.name === "None") return j2;
|
|
7156
7156
|
if (!this.encryptionKey) throw new Io("No password given", Do.NEED_PASSWORD);
|
|
7157
|
-
if (this.algorithm === 5 || l.name === "AESV3") return
|
|
7157
|
+
if (this.algorithm === 5 || l.name === "AESV3") return Bc.bind(null, this.encryptionKey);
|
|
7158
7158
|
if (l.name === "V2") return da.bind(null, this.#i(t, n, this.encryptionKey, false));
|
|
7159
7159
|
if (l.name === "AESV2") return o1.bind(null, this.#i(t, n, this.encryptionKey, true));
|
|
7160
7160
|
throw new We("Unknown crypto method");
|
|
@@ -7729,7 +7729,7 @@ function Ts(e, t = Ss, n = (a) => a) {
|
|
|
7729
7729
|
return e.rawBytes;
|
|
7730
7730
|
}
|
|
7731
7731
|
var l5 = new TextEncoder();
|
|
7732
|
-
function
|
|
7732
|
+
function yc(e, t) {
|
|
7733
7733
|
return { kind: "boolean", value: e, span: t };
|
|
7734
7734
|
}
|
|
7735
7735
|
function Xs(e) {
|
|
@@ -7856,7 +7856,7 @@ function ct(e) {
|
|
|
7856
7856
|
function yn(e) {
|
|
7857
7857
|
return e === 0 || e === 9 || e === 10 || e === 12 || e === 13 || e === 32;
|
|
7858
7858
|
}
|
|
7859
|
-
function
|
|
7859
|
+
function kc(e) {
|
|
7860
7860
|
return e === 40 || e === 41 || e === 60 || e === 62 || e === 91 || e === 93 || e === 123 || e === 125 || e === 47 || e === 37;
|
|
7861
7861
|
}
|
|
7862
7862
|
function Vo(e) {
|
|
@@ -7904,7 +7904,7 @@ var fn = class {
|
|
|
7904
7904
|
let n = "";
|
|
7905
7905
|
for (; this.pos < this.end; ) {
|
|
7906
7906
|
let i = this.bytes[this.pos];
|
|
7907
|
-
if (yn(i) ||
|
|
7907
|
+
if (yn(i) || kc(i)) break;
|
|
7908
7908
|
let r = n + String.fromCharCode(i);
|
|
7909
7909
|
if (this.knownCommands?.has(n) && !this.knownCommands.has(r)) break;
|
|
7910
7910
|
if (n = r, this.pos++, this.pos - e > this.maxTokenBytes) throw new de("E_LIMIT", "PDF token exceeds maximum byte length");
|
|
@@ -7947,7 +7947,7 @@ var fn = class {
|
|
|
7947
7947
|
let t = this.pos, n = [];
|
|
7948
7948
|
for (; this.pos < this.end; ) {
|
|
7949
7949
|
let r = this.bytes[this.pos];
|
|
7950
|
-
if (yn(r) ||
|
|
7950
|
+
if (yn(r) || kc(r)) break;
|
|
7951
7951
|
if (r === 35 && this.pos + 2 < this.end) {
|
|
7952
7952
|
let o = Vo(this.bytes[this.pos + 1]), s = Vo(this.bytes[this.pos + 2]);
|
|
7953
7953
|
if (o >= 0 && s >= 0) {
|
|
@@ -8229,7 +8229,7 @@ function ea(e) {
|
|
|
8229
8229
|
for (let i of e) n.set(i, a), a += i.length;
|
|
8230
8230
|
return n;
|
|
8231
8231
|
}
|
|
8232
|
-
function
|
|
8232
|
+
function Cc(e) {
|
|
8233
8233
|
let t = e.maxOutputBytes ?? 1 / 0, n = e.maxObjects ?? 1 / 0, a = [...e.objects].sort((w, x) => w.objectNumber - x.objectNumber);
|
|
8234
8234
|
if (a.length > n) throw new de("E_LIMIT", "PDF object limit exceeded");
|
|
8235
8235
|
let i = a.length > 0 ? a[a.length - 1].objectNumber : 0;
|
|
@@ -8385,7 +8385,7 @@ startxref
|
|
|
8385
8385
|
${s}
|
|
8386
8386
|
%%EOF`)), ea(a);
|
|
8387
8387
|
}
|
|
8388
|
-
var
|
|
8388
|
+
var Fc = Uint8Array.from([40, 191, 78, 94, 78, 117, 138, 65, 100, 0, 78, 86, 255, 250, 1, 8, 46, 46, 0, 182, 208, 104, 62, 128, 47, 12, 169, 254, 100, 83, 105, 122]);
|
|
8389
8389
|
function vs(e, t) {
|
|
8390
8390
|
let n = new Uint8Array(256);
|
|
8391
8391
|
for (let s = 0; s < 256; s++) n[s] = s;
|
|
@@ -8405,7 +8405,7 @@ function vs(e, t) {
|
|
|
8405
8405
|
}
|
|
8406
8406
|
function Qo(e) {
|
|
8407
8407
|
let t = Us(e), n = new Uint8Array(32), a = Math.min(32, t.length);
|
|
8408
|
-
return n.set(t.subarray(0, a), 0), a < 32 && n.set(
|
|
8408
|
+
return n.set(t.subarray(0, a), 0), a < 32 && n.set(Fc.subarray(0, 32 - a), a), n;
|
|
8409
8409
|
}
|
|
8410
8410
|
function v1(e) {
|
|
8411
8411
|
return { print: (e & 4) !== 0, modify: (e & 8) !== 0, copy: (e & 16) !== 0, addNotes: (e & 32) !== 0, fillForms: (e & 256) !== 0, extractAccessibility: (e & 512) !== 0, assemble: (e & 1024) !== 0, printHighRes: (e & 2048) !== 0 };
|
|
@@ -8534,10 +8534,10 @@ function B5(e, t, n, a) {
|
|
|
8534
8534
|
new DataView(o.buffer).setInt32(0, n, true);
|
|
8535
8535
|
let s = ha([Qo(e), r, o, a]);
|
|
8536
8536
|
for (let f = 0; f < 50; f++) s = ha([s]);
|
|
8537
|
-
let l = ha([
|
|
8537
|
+
let l = ha([Fc, a]);
|
|
8538
8538
|
for (let f = 0; f < 20; f++) l = vs(s.map((h) => h ^ f), l);
|
|
8539
8539
|
let c = new Uint8Array(32);
|
|
8540
|
-
return c.set(l), c.set(
|
|
8540
|
+
return c.set(l), c.set(Fc.subarray(0, 16), 16), { fileKey: s, dict: Fe({ Filter: Be("Standard"), V: ne(2), R: ne(3), Length: ne(128), P: ne(n), U: Bn(c), O: Bn(r) }) };
|
|
8541
8541
|
}
|
|
8542
8542
|
function y5(e, t, n) {
|
|
8543
8543
|
let a = globalThis.crypto.getRandomValues(new Uint8Array(32)), i = globalThis.crypto.getRandomValues(new Uint8Array(16)), r = globalThis.crypto.getRandomValues(new Uint8Array(16)), o = new TextEncoder().encode(ws(e)).subarray(0, 127), s = new TextEncoder().encode(ws(t)).subarray(0, 127), l = new Uint8Array(48);
|
|
@@ -8547,7 +8547,7 @@ function y5(e, t, n) {
|
|
|
8547
8547
|
let d = Tr(s, r.subarray(8), l, 6), u = es(d, new Uint8Array(16), a, false), g = new Uint8Array(16);
|
|
8548
8548
|
new DataView(g.buffer).setInt32(0, n, true), g.fill(255, 4, 8), g.set([84, 97, 100, 98], 8), g.set(globalThis.crypto.getRandomValues(new Uint8Array(4)), 12);
|
|
8549
8549
|
let p = es(a, new Uint8Array(16), g, false);
|
|
8550
|
-
return { fileKey: a, dict: Fe({ Filter: Be("Standard"), V: ne(5), R: ne(6), Length: ne(256), P: ne(n), EncryptMetadata:
|
|
8550
|
+
return { fileKey: a, dict: Fe({ Filter: Be("Standard"), V: ne(5), R: ne(6), Length: ne(256), P: ne(n), EncryptMetadata: yc(true), U: Bn(l), O: Bn(h), UE: Bn(f), OE: Bn(u), Perms: Bn(p), CF: Fe({ StdCF: Fe({ CFM: Be("AESV3"), AuthEvent: Be("DocOpen"), Length: ne(32) }) }), StmF: Be("StdCF"), StrF: Be("StdCF") }) };
|
|
8551
8551
|
}
|
|
8552
8552
|
function k5(e, t = {}) {
|
|
8553
8553
|
let n = t.userPassword ?? "", a = t.ownerPassword ?? n, i = t.revision ?? 6;
|
|
@@ -8559,7 +8559,7 @@ function k5(e, t = {}) {
|
|
|
8559
8559
|
let g = Ji(u.value, (p) => x5(c, u.objectNumber, u.generationNumber, p));
|
|
8560
8560
|
d.push({ objectNumber: u.objectNumber, generationNumber: u.generationNumber, value: g });
|
|
8561
8561
|
}
|
|
8562
|
-
return d.push({ objectNumber: h, generationNumber: 0, value: l }),
|
|
8562
|
+
return d.push({ objectNumber: h, generationNumber: 0, value: l }), Cc({ objects: d, rootRef: e.rootRef, infoRef: e.infoRef, encryptRef: Ti(h), idArray: Ue([Bn(o), Bn(o)]), version: i === 6 ? "2.0" : Number.parseFloat(e.version) < 1.4 ? "1.4" : e.version });
|
|
8563
8563
|
}
|
|
8564
8564
|
function C5(e, t, n) {
|
|
8565
8565
|
let a = e.resolve(O(t.dict, "Type")), i = (d, u) => {
|
|
@@ -8970,7 +8970,7 @@ function x1(e, t, n, a = false) {
|
|
|
8970
8970
|
}
|
|
8971
8971
|
return c;
|
|
8972
8972
|
}
|
|
8973
|
-
function
|
|
8973
|
+
function Hc(e, t = {}) {
|
|
8974
8974
|
let n = I5(e), a = t.recovery ?? "strict", i = t.maxObjects ?? 1 / 0, r = t.maxDecompressedBytes ?? 1 / 0, o = t.maxRecursionDepth ?? 1 / 0, s = D5(e, Ud), l = [], c = /* @__PURE__ */ new Map(), f, h, d, u, g, p = false;
|
|
8975
8975
|
if (s < 0) if (a === "repair") p = true;
|
|
8976
8976
|
else throw new de("E_PARSE", "Invalid PDF trailer: missing startxref");
|
|
@@ -9070,7 +9070,7 @@ var Od = { ff: "\uFB00", fi: "\uFB01", fl: "\uFB02", ffi: "\uFB03", ffl: "\uFB04
|
|
|
9070
9070
|
function X5(e) {
|
|
9071
9071
|
return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
|
|
9072
9072
|
}
|
|
9073
|
-
function
|
|
9073
|
+
function Pc(e) {
|
|
9074
9074
|
if (e.length === 0) return;
|
|
9075
9075
|
for (let n = 0; n < e.length; n++) if (!X5(e.charCodeAt(n))) return;
|
|
9076
9076
|
let t = Number.parseInt(e, 16);
|
|
@@ -9086,13 +9086,13 @@ function Vd(e, t) {
|
|
|
9086
9086
|
if (n === "0000") return "";
|
|
9087
9087
|
let a = [];
|
|
9088
9088
|
for (let i = 0; i + 4 <= n.length && a.length < 8; i += 4) {
|
|
9089
|
-
let r =
|
|
9089
|
+
let r = Pc(n.slice(i, i + 4));
|
|
9090
9090
|
r === void 0 || r === 0 || r >= 55296 && r <= 57343 || a.push(String.fromCodePoint(r));
|
|
9091
9091
|
}
|
|
9092
9092
|
return a.length > 0 ? a.join("") : void 0;
|
|
9093
9093
|
}
|
|
9094
9094
|
if (e.startsWith("u") && e.length >= 5 && e.length <= 7) {
|
|
9095
|
-
let n = e.slice(1), a =
|
|
9095
|
+
let n = e.slice(1), a = Pc(n);
|
|
9096
9096
|
return a === void 0 ? void 0 : a === 0 ? "" : a > 1114111 || a >= 55296 && a <= 57343 ? void 0 : String.fromCodePoint(a);
|
|
9097
9097
|
}
|
|
9098
9098
|
}
|
|
@@ -9121,7 +9121,7 @@ function y1(e) {
|
|
|
9121
9121
|
for (let [n, a] of Object.entries(B1)) if (a === t) return Number(n);
|
|
9122
9122
|
return t >= 32 && t <= 255 ? t : 63;
|
|
9123
9123
|
}
|
|
9124
|
-
function
|
|
9124
|
+
function Mc(e) {
|
|
9125
9125
|
let t = [];
|
|
9126
9126
|
for (let n of e) t.push(y1(n));
|
|
9127
9127
|
return Uint8Array.from(t);
|
|
@@ -9163,7 +9163,7 @@ function K5(e, t, n) {
|
|
|
9163
9163
|
}
|
|
9164
9164
|
return i * n / 1e3;
|
|
9165
9165
|
}
|
|
9166
|
-
function
|
|
9166
|
+
function Gc(e) {
|
|
9167
9167
|
return e >= 65 && e <= 90 || e >= 97 && e <= 122;
|
|
9168
9168
|
}
|
|
9169
9169
|
function Rd(e) {
|
|
@@ -9175,21 +9175,21 @@ function qd(e) {
|
|
|
9175
9175
|
if (e[0] === "-") t = 1;
|
|
9176
9176
|
else {
|
|
9177
9177
|
let i = 0;
|
|
9178
|
-
for (; t < e.length &&
|
|
9178
|
+
for (; t < e.length && Gc(e.charCodeAt(t)) && i < 2; ) t++, i++;
|
|
9179
9179
|
}
|
|
9180
9180
|
let n = t;
|
|
9181
9181
|
for (; t < e.length && Rd(e.charCodeAt(t)); ) t++;
|
|
9182
9182
|
if (t === n) return;
|
|
9183
9183
|
for (let i = t; i < e.length; i++) {
|
|
9184
9184
|
let r = e.charCodeAt(i);
|
|
9185
|
-
if (
|
|
9185
|
+
if (Gc(r) || Rd(r)) return;
|
|
9186
9186
|
}
|
|
9187
9187
|
let a = Number.parseInt(e.slice(e[0] === "-" ? 0 : n, t), 10);
|
|
9188
9188
|
return Number.isFinite(a) ? a : void 0;
|
|
9189
9189
|
}
|
|
9190
9190
|
function zd(e) {
|
|
9191
9191
|
let t = e;
|
|
9192
|
-
if (t.length === 3 &&
|
|
9192
|
+
if (t.length === 3 && Gc(t.charCodeAt(0)) && (t = t.slice(1)), t.length === 2) return Pc(t);
|
|
9193
9193
|
}
|
|
9194
9194
|
function O5(e) {
|
|
9195
9195
|
let t = /* @__PURE__ */ new Map();
|
|
@@ -9577,10 +9577,10 @@ function j5(e, t, n) {
|
|
|
9577
9577
|
let d = q5(h), u = e.allocateObject(Mt(d, { compress: true })), g = Fe({ Type: Be("Font"), Subtype: Be("Type0"), BaseFont: Be(t.postScriptName), Encoding: Be("Identity-H"), DescendantFonts: Ue([f]), ToUnicode: u });
|
|
9578
9578
|
return e.allocateObject(g);
|
|
9579
9579
|
}
|
|
9580
|
-
var
|
|
9580
|
+
var Ec = { w: 1, J: 1, j: 1, M: 1, d: 2, ri: 1, i: 1, gs: 1, q: 0, Q: 0, cm: 6, m: 2, l: 2, c: 6, v: 4, y: 4, h: 0, re: 4, S: 0, s: 0, f: 0, F: 0, "f*": 0, B: 0, "B*": 0, b: 0, "b*": 0, n: 0, W: 0, "W*": 0, BT: 0, ET: 0, Tc: 1, Tw: 1, Tz: 1, TL: 1, Tf: 2, Tr: 1, Ts: 1, Td: 2, TD: 2, Tm: 6, "T*": 0, Tj: 1, TJ: 1, "'": 1, '"': 3, d0: 2, d1: 6, CS: 1, cs: 1, G: 1, g: 1, RG: 3, rg: 3, K: 4, k: 4, sh: 1, BI: 0, ID: 0, EI: 1, Do: 1, MP: 1, DP: 2, BMC: 1, BDC: 2, EMC: 0, BX: 0, EX: 0 };
|
|
9581
9581
|
var H1 = /* @__PURE__ */ new Set(["SC", "SCN", "sc", "scn"]);
|
|
9582
9582
|
var W5 = /* @__PURE__ */ new Set(["m", "l", "c", "v", "y", "h", "re", "S", "s", "f", "F", "f*", "B", "B*", "b", "b*", "n"]);
|
|
9583
|
-
var N5 = /* @__PURE__ */ new Set([...Object.keys(
|
|
9583
|
+
var N5 = /* @__PURE__ */ new Set([...Object.keys(Ec), ...H1, "BM", "BD", "true", "fa", "fal", "fals", "false", "nu", "nul", "null"]);
|
|
9584
9584
|
var Z5 = /* @__PURE__ */ new Set(["S", "s", "f", "F", "f*", "B", "B*", "b", "b*", "n"]);
|
|
9585
9585
|
function xs(e, t) {
|
|
9586
9586
|
switch (e.kind) {
|
|
@@ -9655,7 +9655,7 @@ function Ca(e) {
|
|
|
9655
9655
|
if (C.kind !== "null" && i.push(C), i.length > 33) throw new de("E_PARSE", "Too many arguments");
|
|
9656
9656
|
continue;
|
|
9657
9657
|
}
|
|
9658
|
-
let w = m.value, x = H1.has(w), B = Object.hasOwn(
|
|
9658
|
+
let w = m.value, x = H1.has(w), B = Object.hasOwn(Ec, w) ? Ec[w] : void 0;
|
|
9659
9659
|
if (B === void 0 && !x) continue;
|
|
9660
9660
|
let y = i.splice(0, i.length);
|
|
9661
9661
|
if (o || (s = 0), o = W5.has(w), !x && B !== void 0) {
|
|
@@ -9680,7 +9680,7 @@ function Ca(e) {
|
|
|
9680
9680
|
}
|
|
9681
9681
|
t.pos < e.length && e[t.pos] === 13 && t.pos + 1 < e.length && e[t.pos + 1] === 10 ? t.pos += 2 : t.pos < e.length && yn(e[t.pos]) && t.pos++;
|
|
9682
9682
|
let k = t.pos, H = J5(C), M = e.length;
|
|
9683
|
-
for (let P = k + H; P + 2 < e.length; P++) if (yn(e[P]) && e[P + 1] === 69 && e[P + 2] === 73 && (P + 3 >= e.length || yn(e[P + 3]) ||
|
|
9683
|
+
for (let P = k + H; P + 2 < e.length; P++) if (yn(e[P]) && e[P + 1] === 69 && e[P + 2] === 73 && (P + 3 >= e.length || yn(e[P + 3]) || kc(e[P + 3])) && _5(e, P + 3)) {
|
|
9684
9684
|
M = P, t.pos = P + 3;
|
|
9685
9685
|
break;
|
|
9686
9686
|
}
|
|
@@ -9887,20 +9887,20 @@ function ep(e) {
|
|
|
9887
9887
|
return "h";
|
|
9888
9888
|
}
|
|
9889
9889
|
}
|
|
9890
|
-
function
|
|
9890
|
+
function Dc(e, t = { open: false }, n = true) {
|
|
9891
9891
|
let a = [], i = () => {
|
|
9892
9892
|
t.open && (a.push("ET"), t.open = false);
|
|
9893
9893
|
};
|
|
9894
9894
|
for (let r of e) switch (r.kind) {
|
|
9895
9895
|
case "graphics-group":
|
|
9896
|
-
i(), a.push("q"), a.push(...
|
|
9896
|
+
i(), a.push("q"), a.push(...Dc(r.ops, { open: false }, true)), a.push("Q");
|
|
9897
9897
|
break;
|
|
9898
9898
|
case "marked-content":
|
|
9899
9899
|
if (r.properties !== void 0) {
|
|
9900
9900
|
let o = typeof r.properties == "string" ? `/${r.properties}` : Na(r.properties);
|
|
9901
9901
|
a.push(`/${r.tag} ${o} BDC`);
|
|
9902
9902
|
} else a.push(`/${r.tag} BMC`);
|
|
9903
|
-
a.push(...
|
|
9903
|
+
a.push(...Dc(r.children, t, false)), a.push("EMC");
|
|
9904
9904
|
break;
|
|
9905
9905
|
case "text-object":
|
|
9906
9906
|
r.continuation ? t.open || (a.push("BT"), t.open = true) : (i(), a.push("BT"), t.open = true);
|
|
@@ -9930,7 +9930,7 @@ function Ec(e, t = { open: false }, n = true) {
|
|
|
9930
9930
|
return n && i(), a;
|
|
9931
9931
|
}
|
|
9932
9932
|
function Yd(e) {
|
|
9933
|
-
return Us(
|
|
9933
|
+
return Us(Dc(e).join(`
|
|
9934
9934
|
`));
|
|
9935
9935
|
}
|
|
9936
9936
|
function tp(e, t) {
|
|
@@ -10012,7 +10012,7 @@ function Ln(e) {
|
|
|
10012
10012
|
function $t(e) {
|
|
10013
10013
|
Qs >= Vs.WARNINGS && console.log(`Warning: ${e}`);
|
|
10014
10014
|
}
|
|
10015
|
-
function
|
|
10015
|
+
function Ic(e) {
|
|
10016
10016
|
throw new Error(e);
|
|
10017
10017
|
}
|
|
10018
10018
|
function Zn(e, t, n, a = false) {
|
|
@@ -10020,7 +10020,7 @@ function Zn(e, t, n, a = false) {
|
|
|
10020
10020
|
}
|
|
10021
10021
|
var hi = (function() {
|
|
10022
10022
|
function t(n, a) {
|
|
10023
|
-
this.constructor === t &&
|
|
10023
|
+
this.constructor === t && Ic("Cannot initialize BaseException."), this.message = n, this.name = a;
|
|
10024
10024
|
}
|
|
10025
10025
|
return t.prototype = new Error(), t.constructor = t, t;
|
|
10026
10026
|
})();
|
|
@@ -10092,21 +10092,21 @@ var P1 = class {
|
|
|
10092
10092
|
return this.a = s, e[t] = n << 1 | a, o;
|
|
10093
10093
|
}
|
|
10094
10094
|
};
|
|
10095
|
-
var
|
|
10095
|
+
var Sc = -2;
|
|
10096
10096
|
var Xn = -1;
|
|
10097
10097
|
var Kn = 0;
|
|
10098
10098
|
var xt = 1;
|
|
10099
10099
|
var ye = 2;
|
|
10100
10100
|
var Bt = 3;
|
|
10101
10101
|
var yt = 4;
|
|
10102
|
-
var
|
|
10103
|
-
var
|
|
10102
|
+
var Tc = 5;
|
|
10103
|
+
var Xc = 6;
|
|
10104
10104
|
var M1 = 7;
|
|
10105
10105
|
var G1 = 8;
|
|
10106
|
-
var Wd = [[-1, -1], [-1, -1], [7, G1], [7, M1], [6,
|
|
10107
|
-
var Nd = [[-1, -1], [12,
|
|
10106
|
+
var Wd = [[-1, -1], [-1, -1], [7, G1], [7, M1], [6, Xc], [6, Xc], [6, Tc], [6, Tc], [4, Kn], [4, Kn], [4, Kn], [4, Kn], [4, Kn], [4, Kn], [4, Kn], [4, Kn], [3, xt], [3, xt], [3, xt], [3, xt], [3, xt], [3, xt], [3, xt], [3, xt], [3, xt], [3, xt], [3, xt], [3, xt], [3, xt], [3, xt], [3, xt], [3, xt], [3, yt], [3, yt], [3, yt], [3, yt], [3, yt], [3, yt], [3, yt], [3, yt], [3, yt], [3, yt], [3, yt], [3, yt], [3, yt], [3, yt], [3, yt], [3, yt], [3, Bt], [3, Bt], [3, Bt], [3, Bt], [3, Bt], [3, Bt], [3, Bt], [3, Bt], [3, Bt], [3, Bt], [3, Bt], [3, Bt], [3, Bt], [3, Bt], [3, Bt], [3, Bt], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye], [1, ye]];
|
|
10107
|
+
var Nd = [[-1, -1], [12, Sc], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [11, 1792], [11, 1792], [12, 1984], [12, 2048], [12, 2112], [12, 2176], [12, 2240], [12, 2304], [11, 1856], [11, 1856], [11, 1920], [11, 1920], [12, 2368], [12, 2432], [12, 2496], [12, 2560]];
|
|
10108
10108
|
var Zd = [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [8, 29], [8, 29], [8, 30], [8, 30], [8, 45], [8, 45], [8, 46], [8, 46], [7, 22], [7, 22], [7, 22], [7, 22], [7, 23], [7, 23], [7, 23], [7, 23], [8, 47], [8, 47], [8, 48], [8, 48], [6, 13], [6, 13], [6, 13], [6, 13], [6, 13], [6, 13], [6, 13], [6, 13], [7, 20], [7, 20], [7, 20], [7, 20], [8, 33], [8, 33], [8, 34], [8, 34], [8, 35], [8, 35], [8, 36], [8, 36], [8, 37], [8, 37], [8, 38], [8, 38], [7, 19], [7, 19], [7, 19], [7, 19], [8, 31], [8, 31], [8, 32], [8, 32], [6, 1], [6, 1], [6, 1], [6, 1], [6, 1], [6, 1], [6, 1], [6, 1], [6, 12], [6, 12], [6, 12], [6, 12], [6, 12], [6, 12], [6, 12], [6, 12], [8, 53], [8, 53], [8, 54], [8, 54], [7, 26], [7, 26], [7, 26], [7, 26], [8, 39], [8, 39], [8, 40], [8, 40], [8, 41], [8, 41], [8, 42], [8, 42], [8, 43], [8, 43], [8, 44], [8, 44], [7, 21], [7, 21], [7, 21], [7, 21], [7, 28], [7, 28], [7, 28], [7, 28], [8, 61], [8, 61], [8, 62], [8, 62], [8, 63], [8, 63], [8, 0], [8, 0], [8, 320], [8, 320], [8, 384], [8, 384], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [7, 27], [7, 27], [7, 27], [7, 27], [8, 59], [8, 59], [8, 60], [8, 60], [9, 1472], [9, 1536], [9, 1600], [9, 1728], [7, 18], [7, 18], [7, 18], [7, 18], [7, 24], [7, 24], [7, 24], [7, 24], [8, 49], [8, 49], [8, 50], [8, 50], [8, 51], [8, 51], [8, 52], [8, 52], [7, 25], [7, 25], [7, 25], [7, 25], [8, 55], [8, 55], [8, 56], [8, 56], [8, 57], [8, 57], [8, 58], [8, 58], [6, 192], [6, 192], [6, 192], [6, 192], [6, 192], [6, 192], [6, 192], [6, 192], [6, 1664], [6, 1664], [6, 1664], [6, 1664], [6, 1664], [6, 1664], [6, 1664], [6, 1664], [8, 448], [8, 448], [8, 512], [8, 512], [9, 704], [9, 768], [8, 640], [8, 640], [8, 576], [8, 576], [9, 832], [9, 896], [9, 960], [9, 1024], [9, 1088], [9, 1152], [9, 1216], [9, 1280], [9, 1344], [9, 1408], [7, 256], [7, 256], [7, 256], [7, 256], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [6, 16], [6, 16], [6, 16], [6, 16], [6, 16], [6, 16], [6, 16], [6, 16], [6, 17], [6, 17], [6, 17], [6, 17], [6, 17], [6, 17], [6, 17], [6, 17], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [6, 14], [6, 14], [6, 14], [6, 14], [6, 14], [6, 14], [6, 14], [6, 14], [6, 15], [6, 15], [6, 15], [6, 15], [6, 15], [6, 15], [6, 15], [6, 15], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7]];
|
|
10109
|
-
var Jd = [[-1, -1], [-1, -1], [12,
|
|
10109
|
+
var Jd = [[-1, -1], [-1, -1], [12, Sc], [12, Sc], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [11, 1792], [11, 1792], [11, 1792], [11, 1792], [12, 1984], [12, 1984], [12, 2048], [12, 2048], [12, 2112], [12, 2112], [12, 2176], [12, 2176], [12, 2240], [12, 2240], [12, 2304], [12, 2304], [11, 1856], [11, 1856], [11, 1856], [11, 1856], [11, 1920], [11, 1920], [11, 1920], [11, 1920], [12, 2368], [12, 2368], [12, 2432], [12, 2432], [12, 2496], [12, 2496], [12, 2560], [12, 2560], [10, 18], [10, 18], [10, 18], [10, 18], [10, 18], [10, 18], [10, 18], [10, 18], [12, 52], [12, 52], [13, 640], [13, 704], [13, 768], [13, 832], [12, 55], [12, 55], [12, 56], [12, 56], [13, 1280], [13, 1344], [13, 1408], [13, 1472], [12, 59], [12, 59], [12, 60], [12, 60], [13, 1536], [13, 1600], [11, 24], [11, 24], [11, 24], [11, 24], [11, 25], [11, 25], [11, 25], [11, 25], [13, 1664], [13, 1728], [12, 320], [12, 320], [12, 384], [12, 384], [12, 448], [12, 448], [13, 512], [13, 576], [12, 53], [12, 53], [12, 54], [12, 54], [13, 896], [13, 960], [13, 1024], [13, 1088], [13, 1152], [13, 1216], [10, 64], [10, 64], [10, 64], [10, 64], [10, 64], [10, 64], [10, 64], [10, 64]];
|
|
10110
10110
|
var _d = [[8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [11, 23], [11, 23], [12, 50], [12, 51], [12, 44], [12, 45], [12, 46], [12, 47], [12, 57], [12, 58], [12, 61], [12, 256], [10, 16], [10, 16], [10, 16], [10, 16], [10, 17], [10, 17], [10, 17], [10, 17], [12, 48], [12, 49], [12, 62], [12, 63], [12, 30], [12, 31], [12, 32], [12, 33], [12, 40], [12, 41], [11, 22], [11, 22], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [9, 15], [9, 15], [9, 15], [9, 15], [9, 15], [9, 15], [9, 15], [9, 15], [12, 128], [12, 192], [12, 26], [12, 27], [12, 28], [12, 29], [11, 19], [11, 19], [11, 20], [11, 20], [12, 34], [12, 35], [12, 36], [12, 37], [12, 38], [12, 39], [11, 21], [11, 21], [12, 42], [12, 43], [10, 0], [10, 0], [10, 0], [10, 0], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12]];
|
|
10111
10111
|
var $d = [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [6, 9], [6, 8], [5, 7], [5, 7], [4, 6], [4, 6], [4, 6], [4, 6], [4, 5], [4, 5], [4, 5], [4, 5], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 4], [3, 4], [3, 4], [3, 4], [3, 4], [3, 4], [3, 4], [3, 4], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2]];
|
|
10112
10112
|
var hp = class {
|
|
@@ -10151,7 +10151,7 @@ var hp = class {
|
|
|
10151
10151
|
case M1:
|
|
10152
10152
|
if (this._addPixels(e[a] + 3, i), i ^= 1, t[this.codingPos] < n) for (++a; e[a] <= t[this.codingPos] && e[a] < n; ) a += 2;
|
|
10153
10153
|
break;
|
|
10154
|
-
case
|
|
10154
|
+
case Tc:
|
|
10155
10155
|
if (this._addPixels(e[a] + 2, i), i ^= 1, t[this.codingPos] < n) for (++a; e[a] <= t[this.codingPos] && e[a] < n; ) a += 2;
|
|
10156
10156
|
break;
|
|
10157
10157
|
case Bt:
|
|
@@ -10163,7 +10163,7 @@ var hp = class {
|
|
|
10163
10163
|
case G1:
|
|
10164
10164
|
if (this._addPixelsNeg(e[a] - 3, i), i ^= 1, t[this.codingPos] < n) for (a > 0 ? --a : ++a; e[a] <= t[this.codingPos] && e[a] < n; ) a += 2;
|
|
10165
10165
|
break;
|
|
10166
|
-
case
|
|
10166
|
+
case Xc:
|
|
10167
10167
|
if (this._addPixelsNeg(e[a] - 2, i), i ^= 1, t[this.codingPos] < n) for (a > 0 ? --a : ++a; e[a] <= t[this.codingPos] && e[a] < n; ) a += 2;
|
|
10168
10168
|
break;
|
|
10169
10169
|
case yt:
|
|
@@ -10788,16 +10788,16 @@ var ta = class {
|
|
|
10788
10788
|
e.length === 2 ? (this.isOOB = true, this.rangeLow = 0, this.prefixLength = e[0], this.rangeLength = 0, this.prefixCode = e[1], this.isLowerRange = false) : (this.isOOB = false, this.rangeLow = e[0], this.prefixLength = e[1], this.rangeLength = e[2], this.prefixCode = e[3], this.isLowerRange = e[4] === "lower");
|
|
10789
10789
|
}
|
|
10790
10790
|
};
|
|
10791
|
-
var Hp = class
|
|
10791
|
+
var Hp = class Uc {
|
|
10792
10792
|
constructor(t) {
|
|
10793
10793
|
this.children = [], t ? (this.isLeaf = true, this.rangeLength = t.rangeLength, this.rangeLow = t.rangeLow, this.isLowerRange = t.isLowerRange, this.isOOB = t.isOOB) : this.isLeaf = false;
|
|
10794
10794
|
}
|
|
10795
10795
|
buildTree(t, n) {
|
|
10796
10796
|
let a = t.prefixCode >> n & 1;
|
|
10797
|
-
if (n <= 0) this.children[a] = new
|
|
10797
|
+
if (n <= 0) this.children[a] = new Uc(t);
|
|
10798
10798
|
else {
|
|
10799
10799
|
let i = this.children[a];
|
|
10800
|
-
i || (this.children[a] = i = new
|
|
10800
|
+
i || (this.children[a] = i = new Uc(null)), i.buildTree(t, n - 1);
|
|
10801
10801
|
}
|
|
10802
10802
|
}
|
|
10803
10803
|
decodeNode(t) {
|
|
@@ -11071,7 +11071,7 @@ var bn = class extends hi {
|
|
|
11071
11071
|
super(`JPEG error: ${e}`, "JpegError");
|
|
11072
11072
|
}
|
|
11073
11073
|
};
|
|
11074
|
-
var
|
|
11074
|
+
var Lc = class extends hi {
|
|
11075
11075
|
constructor(e, t) {
|
|
11076
11076
|
super(e, "DNLMarkerError"), this.scanLines = t;
|
|
11077
11077
|
}
|
|
@@ -11104,7 +11104,7 @@ function Sp(e, t) {
|
|
|
11104
11104
|
}
|
|
11105
11105
|
return o[0].children;
|
|
11106
11106
|
}
|
|
11107
|
-
function
|
|
11107
|
+
function Kc(e, t, n) {
|
|
11108
11108
|
return 64 * ((e.blocksPerLine + 1) * t + n);
|
|
11109
11109
|
}
|
|
11110
11110
|
function Tp(e, t, n, a, i, r, o, s, l, c = false) {
|
|
@@ -11117,11 +11117,11 @@ function Tp(e, t, n, a, i, r, o, s, l, c = false) {
|
|
|
11117
11117
|
if (U === 220 && c) {
|
|
11118
11118
|
t += 2;
|
|
11119
11119
|
let X = Se(e, t);
|
|
11120
|
-
if (t += 2, X > 0 && X !== n.scanLines) throw new
|
|
11120
|
+
if (t += 2, X > 0 && X !== n.scanLines) throw new Lc("Found DNL marker (0xFFDC) while parsing scan data", X);
|
|
11121
11121
|
} else if (U === 217) {
|
|
11122
11122
|
if (c) {
|
|
11123
11123
|
let X = M * (n.precision === 8 ? 8 : 0);
|
|
11124
|
-
if (X > 0 && Math.round(n.scanLines / X) >= 5) throw new
|
|
11124
|
+
if (X > 0 && Math.round(n.scanLines / X) >= 5) throw new Lc("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter", X);
|
|
11125
11125
|
}
|
|
11126
11126
|
throw new U1("Found EOI marker (0xFFD9) while parsing scan data");
|
|
11127
11127
|
}
|
|
@@ -11229,12 +11229,12 @@ function Tp(e, t, n, a, i, r, o, s, l, c = false) {
|
|
|
11229
11229
|
function P(U, X, Y, J, R) {
|
|
11230
11230
|
let j = Y / f | 0, Q = Y % f;
|
|
11231
11231
|
M = j * U.v + J;
|
|
11232
|
-
let W = Q * U.h + R, _ =
|
|
11232
|
+
let W = Q * U.h + R, _ = Kc(U, M, W);
|
|
11233
11233
|
X(U, _);
|
|
11234
11234
|
}
|
|
11235
11235
|
function F(U, X, Y) {
|
|
11236
11236
|
M = Y / U.blocksPerLine | 0;
|
|
11237
|
-
let J = Y % U.blocksPerLine, R =
|
|
11237
|
+
let J = Y % U.blocksPerLine, R = Kc(U, M, J);
|
|
11238
11238
|
X(U, R);
|
|
11239
11239
|
}
|
|
11240
11240
|
let E = a.length, G, D, I, S, T, K;
|
|
@@ -11250,7 +11250,7 @@ function Tp(e, t, n, a, i, r, o, s, l, c = false) {
|
|
|
11250
11250
|
L++;
|
|
11251
11251
|
}
|
|
11252
11252
|
}
|
|
11253
|
-
if (g = 0, z =
|
|
11253
|
+
if (g = 0, z = Oc(e, t), !z) break;
|
|
11254
11254
|
if (z.invalid) {
|
|
11255
11255
|
let X = U > 0 ? "unexpected" : "excessive";
|
|
11256
11256
|
$t(`decodeScan - ${X} MCU data, current marker is: ${z.invalid}`), t = z.offset;
|
|
@@ -11281,12 +11281,12 @@ function Xp(e, t, n) {
|
|
|
11281
11281
|
function Up(e, t) {
|
|
11282
11282
|
let n = t.blocksPerLine, a = t.blocksPerColumn, i = new Int16Array(64);
|
|
11283
11283
|
for (let r = 0; r < a; r++) for (let o = 0; o < n; o++) {
|
|
11284
|
-
let s =
|
|
11284
|
+
let s = Kc(t, r, o);
|
|
11285
11285
|
Xp(t, s, i);
|
|
11286
11286
|
}
|
|
11287
11287
|
return t.blockData;
|
|
11288
11288
|
}
|
|
11289
|
-
function
|
|
11289
|
+
function Oc(e, t, n = t) {
|
|
11290
11290
|
let a = e.length - 1, i = n < t ? n : t;
|
|
11291
11291
|
if (t >= a) return null;
|
|
11292
11292
|
let r = Se(e, t);
|
|
@@ -11306,7 +11306,7 @@ var Lp = class {
|
|
|
11306
11306
|
function n() {
|
|
11307
11307
|
let g = Se(e, i);
|
|
11308
11308
|
i += 2;
|
|
11309
|
-
let p = i + g - 2, v =
|
|
11309
|
+
let p = i + g - 2, v = Oc(e, p, i);
|
|
11310
11310
|
v?.invalid && ($t("readDataBlock - incorrect length, current marker is: " + v.invalid), p = v.offset);
|
|
11311
11311
|
let A = e.subarray(i, p);
|
|
11312
11312
|
return i += A.length, A;
|
|
@@ -11401,7 +11401,7 @@ var Lp = class {
|
|
|
11401
11401
|
let I = Tp(e, i, s, P, l, F, E, G >> 4, G & 15, H);
|
|
11402
11402
|
i += I;
|
|
11403
11403
|
} catch (I) {
|
|
11404
|
-
if (I instanceof
|
|
11404
|
+
if (I instanceof Lc) return $t(`${I.message} -- attempting to re-parse the JPEG image.`), this.parse(e, { dnlScanLines: I.scanLines });
|
|
11405
11405
|
if (I instanceof U1) {
|
|
11406
11406
|
$t(`${I.message} -- ignoring the rest of the image data.`);
|
|
11407
11407
|
break e;
|
|
@@ -11416,7 +11416,7 @@ var Lp = class {
|
|
|
11416
11416
|
e[i] !== 255 && i--;
|
|
11417
11417
|
break;
|
|
11418
11418
|
default:
|
|
11419
|
-
let D =
|
|
11419
|
+
let D = Oc(e, i - 2, i - 3);
|
|
11420
11420
|
if (D?.invalid) {
|
|
11421
11421
|
$t("JpegImage.parse - unexpected data, current marker is: " + D.invalid), i = D.offset;
|
|
11422
11422
|
break;
|
|
@@ -12292,7 +12292,7 @@ var i9 = class Qt {
|
|
|
12292
12292
|
};
|
|
12293
12293
|
var O1 = class V1 {
|
|
12294
12294
|
constructor() {
|
|
12295
|
-
this.constructor === V1 &&
|
|
12295
|
+
this.constructor === V1 && Ic("Cannot initialize Transform.");
|
|
12296
12296
|
}
|
|
12297
12297
|
calculate(t, n, a) {
|
|
12298
12298
|
let i = t[0];
|
|
@@ -12304,7 +12304,7 @@ var O1 = class V1 {
|
|
|
12304
12304
|
t[i--] = t[r++], t[s++] = t[o--], t[i--] = t[r++], t[s++] = t[o--], t[i--] = t[r++], t[s++] = t[o--], t[i] = t[r], t[s] = t[o];
|
|
12305
12305
|
}
|
|
12306
12306
|
filter(t, n, a) {
|
|
12307
|
-
|
|
12307
|
+
Ic("Abstract method `filter` called");
|
|
12308
12308
|
}
|
|
12309
12309
|
iterate(t, n, a, i) {
|
|
12310
12310
|
let r = t.width, o = t.height, s = t.items, l = n.width, c = n.height, f = n.items, h, d, u, g, p, v;
|
|
@@ -12378,7 +12378,7 @@ function as(e, t, n) {
|
|
|
12378
12378
|
c?.kind === "stream" ? f = e.decodeStream(c) : c?.kind === "string" && (f = c.bytes);
|
|
12379
12379
|
let h = o.components;
|
|
12380
12380
|
if (f && (o.isLab || o.isSeparation || o.isDeviceN || o.calRgbGamma !== void 0 || o.calGrayGamma !== void 0)) {
|
|
12381
|
-
let d = Math.max(1, Math.min(l + 1, Math.floor(f.length / Math.max(1, o.components)))), u =
|
|
12381
|
+
let d = Math.max(1, Math.min(l + 1, Math.floor(f.length / Math.max(1, o.components)))), u = Vc(f, d, 1, 8, o), g = new Uint8Array(d * 3);
|
|
12382
12382
|
for (let p = 0; p < d; p++) g[p * 3] = u[p * 4], g[p * 3 + 1] = u[p * 4 + 1], g[p * 3 + 2] = u[p * 4 + 2];
|
|
12383
12383
|
f = g, h = 3;
|
|
12384
12384
|
}
|
|
@@ -12539,7 +12539,7 @@ function Un(e, t, n) {
|
|
|
12539
12539
|
let [i, r] = a;
|
|
12540
12540
|
return i === 0 && r === 1 ? e : Math.max(0, Math.min(1, i + e * (r - i)));
|
|
12541
12541
|
}
|
|
12542
|
-
function
|
|
12542
|
+
function Vc(e, t, n, a, i, r, o) {
|
|
12543
12543
|
let s = new Uint8Array(t * n * 4), l = t * n;
|
|
12544
12544
|
if (i.isSeparation || i.isDeviceN) {
|
|
12545
12545
|
let c = i.separationC0 ?? [1, 1, 1], f = i.separationC1 ?? [0, 0, 0], h = i.separationN ?? 1, d = i.separationAltSpace ?? "rgb", u = Math.max(1, i.components), g = a === 16 ? 2 : 1, p = i.tintFunctionDoc !== void 0 && i.tintFunctionNode !== void 0 && (i.tintFunctionType === 0 || i.tintFunctionType === 3 || i.tintFunctionType === 4);
|
|
@@ -12752,7 +12752,7 @@ function qs(e, t, n, a) {
|
|
|
12752
12752
|
g = { colorSpace: B.components === 1 ? "gray" : B.components === 4 ? "cmyk" : "rgb", components: B.components };
|
|
12753
12753
|
}
|
|
12754
12754
|
if (g.components !== B.components) throw new de("E_PARSE", "JPEG 2000 component count does not match ColorSpace");
|
|
12755
|
-
m =
|
|
12755
|
+
m = Vc(B.samples, f, h, 8, g);
|
|
12756
12756
|
} else {
|
|
12757
12757
|
let B = e.resolve(O(i, "DecodeParms") ?? O(i, "DP")), y = B?.kind === "array" ? e.resolveDict(B.items[p.findIndex((H) => H === "DCTDecode" || H === "DCT")]) : e.resolveDict(B), C = y ? e.resolve(O(y, "ColorTransform")) : void 0, k = sh(w, f, h, e.maxDecompressedBytes, { isSourcePdf: true, decode: oh(e, i), colorTransform: C?.kind === "number" ? C.value : void 0 });
|
|
12758
12758
|
f = k.width, h = k.height, d = 8, m = k.data;
|
|
@@ -12769,7 +12769,7 @@ function qs(e, t, n, a) {
|
|
|
12769
12769
|
w = t.rawBytes;
|
|
12770
12770
|
}
|
|
12771
12771
|
let x = oh(e, i);
|
|
12772
|
-
if (m =
|
|
12772
|
+
if (m = Vc(w, f, h, d, g, A, x), b?.kind === "stream" && ch(e, b, m, f, h, n), c && a) h9(m, f, h, a);
|
|
12773
12773
|
else {
|
|
12774
12774
|
let B = e.resolve(O(i, "Mask"));
|
|
12775
12775
|
B?.kind === "stream" && lh(e, B, m, f, h, n);
|
|
@@ -13405,7 +13405,7 @@ function dh(e, t, n, a, i, r, o, s, l) {
|
|
|
13405
13405
|
}
|
|
13406
13406
|
return { name: r, matrix: [D, 0, 0, I, P, F], width: S, height: T, colorSpace: "rgb", bitsPerComponent: 8, decodedRgba: K, ...l && l !== "Normal" ? { blendMode: l } : {}, ...o ? { clipRect: [...o] } : {} };
|
|
13407
13407
|
}
|
|
13408
|
-
function
|
|
13408
|
+
function Qc(e, t) {
|
|
13409
13409
|
if (!e || !t) return true;
|
|
13410
13410
|
let n = e.resolve(t), a = n?.kind === "dict" ? n : n?.kind === "stream" ? n.dict : void 0;
|
|
13411
13411
|
if (!a) return true;
|
|
@@ -13582,10 +13582,13 @@ function is(e) {
|
|
|
13582
13582
|
let V = e.cosDoc.resolveArray(O(E, "D"));
|
|
13583
13583
|
if (V && V.items.length >= 2) {
|
|
13584
13584
|
let N = e.cosDoc.resolveArray(V.items[0]), U = e.cosDoc.resolve(V.items[1]);
|
|
13585
|
-
|
|
13586
|
-
let
|
|
13587
|
-
|
|
13588
|
-
|
|
13585
|
+
if (N) {
|
|
13586
|
+
let X = N.items.map((Y) => {
|
|
13587
|
+
let J = e.cosDoc.resolve(Y);
|
|
13588
|
+
return J?.kind === "number" ? J.value : 0;
|
|
13589
|
+
}).filter((Y) => Y >= 0);
|
|
13590
|
+
B.dashArray = X.some((Y) => Y > 0) ? X : void 0, B.dashPhase = U?.kind === "number" ? U.value : 0;
|
|
13591
|
+
}
|
|
13589
13592
|
}
|
|
13590
13593
|
let q = e.cosDoc.resolveArray(O(E, "Font"));
|
|
13591
13594
|
if (q && q.items.length >= 2) {
|
|
@@ -13643,7 +13646,7 @@ function is(e) {
|
|
|
13643
13646
|
let G = e.cosDoc.resolveDict(O(k, "Properties")), D = G ? O(G, P.properties) : void 0;
|
|
13644
13647
|
if (D) {
|
|
13645
13648
|
let I = e.cosDoc.resolveDict(D), S = I ? e.cosDoc.resolve(O(I, "Type")) : void 0;
|
|
13646
|
-
if ((P.tag === "OC" || S?.kind === "name" && (S.decoded === "OCG" || S.decoded === "OCMD")) && !
|
|
13649
|
+
if ((P.tag === "OC" || S?.kind === "name" && (S.decoded === "OCG" || S.decoded === "OCMD")) && !Qc(e.cosDoc, D)) break;
|
|
13647
13650
|
if (I) {
|
|
13648
13651
|
if (E === void 0) {
|
|
13649
13652
|
let K = e.cosDoc.resolve(O(I, "ActualText"));
|
|
@@ -13754,7 +13757,7 @@ function is(e) {
|
|
|
13754
13757
|
if (e.cosDoc && k) {
|
|
13755
13758
|
let E = e.cosDoc.resolveDict(O(k, "XObject")), G = E ? e.cosDoc.resolve(O(E, P.name)) : void 0;
|
|
13756
13759
|
if (G?.kind === "stream") {
|
|
13757
|
-
if (!
|
|
13760
|
+
if (!Qc(e.cosDoc, O(G.dict, "OC"))) break;
|
|
13758
13761
|
let D = e.cosDoc.resolve(O(G.dict, "Subtype")), I = D?.kind === "name" ? D.decoded : "";
|
|
13759
13762
|
if (I === "Image") {
|
|
13760
13763
|
let S = e.cosDoc.resolve(O(G.dict, "ImageMask")), T = !!F.fillPatternName && S?.kind === "boolean" && S.value, K = qs(e.cosDoc, G, k, T ? { r: 1, g: 1, b: 1, alpha: 1 } : { r: F.fillColor.r, g: F.fillColor.g, b: F.fillColor.b, alpha: F.fillAlpha });
|
|
@@ -14281,7 +14284,7 @@ function k9(e) {
|
|
|
14281
14284
|
let p = [];
|
|
14282
14285
|
for (let v of g) {
|
|
14283
14286
|
let [A, b] = y9(c, v.bbox[0], v.baselineY);
|
|
14284
|
-
p.push({ kind: "font", fontName: v.fontName || "F1", size: v.fontSize }), p.push({ kind: "matrix", matrix: [1, 0, 0, 1, A, b] }), p.push({ kind: "show-text", token: ut(
|
|
14287
|
+
p.push({ kind: "font", fontName: v.fontName || "F1", size: v.fontSize }), p.push({ kind: "matrix", matrix: [1, 0, 0, 1, A, b] }), p.push({ kind: "show-text", token: ut(Mc(v.unicode)) });
|
|
14285
14288
|
}
|
|
14286
14289
|
l.push({ kind: "text-object", commands: p });
|
|
14287
14290
|
}
|
|
@@ -14309,7 +14312,7 @@ function k9(e) {
|
|
|
14309
14312
|
}, a = n(e.nodes, [1, 0, 0, 1, 0, 0]), i = e.options?.fillColor ?? { r: 0, g: 0, b: 0 }, r = [{ kind: "state-op", operator: "rg", operands: [ne(i.r), ne(i.g), ne(i.b)] }];
|
|
14310
14313
|
for (let o of t) {
|
|
14311
14314
|
let s = Math.min(o[0], o[2]), l = Math.min(o[1], o[3]), c = Math.abs(o[2] - o[0]), f = Math.abs(o[3] - o[1]);
|
|
14312
|
-
r.push({ kind: "path-op", segments: [{ kind: "rect", x: s, y: l, width: c, height: f }], paint: "f" }), e.options?.replacementText && (r.push({ kind: "state-op", operator: "rg", operands: [ne(1), ne(1), ne(1)] }), r.push({ kind: "text-object", commands: [{ kind: "font", fontName: e.options.fontName ?? "F1", size: Math.min(10, Math.max(6, f * 0.6)) }, { kind: "matrix", matrix: [1, 0, 0, 1, s + 2, l + f * 0.25] }, { kind: "show-text", token: ut(
|
|
14315
|
+
r.push({ kind: "path-op", segments: [{ kind: "rect", x: s, y: l, width: c, height: f }], paint: "f" }), e.options?.replacementText && (r.push({ kind: "state-op", operator: "rg", operands: [ne(1), ne(1), ne(1)] }), r.push({ kind: "text-object", commands: [{ kind: "font", fontName: e.options.fontName ?? "F1", size: Math.min(10, Math.max(6, f * 0.6)) }, { kind: "matrix", matrix: [1, 0, 0, 1, s + 2, l + f * 0.25] }, { kind: "show-text", token: ut(Mc(e.options.replacementText)) }] }), r.push({ kind: "state-op", operator: "rg", operands: [ne(i.r), ne(i.g), ne(i.b)] }));
|
|
14313
14316
|
}
|
|
14314
14317
|
return a.push({ kind: "graphics-group", ops: r }), a;
|
|
14315
14318
|
}
|
|
@@ -14467,11 +14470,11 @@ function G9(e, t, n) {
|
|
|
14467
14470
|
if (!a) return;
|
|
14468
14471
|
let i = e.resolveDict(O(a, "AcroForm"));
|
|
14469
14472
|
if (!i) {
|
|
14470
|
-
i = Fe({ Fields: Ue([]), NeedAppearances:
|
|
14473
|
+
i = Fe({ Fields: Ue([]), NeedAppearances: yc(true) });
|
|
14471
14474
|
let f = e.allocateObject(i);
|
|
14472
14475
|
ke(a, "AcroForm", f);
|
|
14473
14476
|
}
|
|
14474
|
-
ke(i, "NeedAppearances",
|
|
14477
|
+
ke(i, "NeedAppearances", yc(true));
|
|
14475
14478
|
let r = e.resolveArray(O(i, "Fields"));
|
|
14476
14479
|
r || (r = Ue([]), ke(i, "Fields", r));
|
|
14477
14480
|
let o = [];
|
|
@@ -14769,7 +14772,7 @@ var ss = class {
|
|
|
14769
14772
|
r = this.ensureTrueTypeFontResource(t.font.truetype, h), o = Bn(f);
|
|
14770
14773
|
} else {
|
|
14771
14774
|
let f = typeof t.font == "string" ? t.font : t.font?.standardName ?? t.fontName ?? "Helvetica";
|
|
14772
|
-
r = this.ensureStandardFontResource(f), o = ut(
|
|
14775
|
+
r = this.ensureStandardFontResource(f), o = ut(Mc(e));
|
|
14773
14776
|
}
|
|
14774
14777
|
let s = t.rotateRadians ?? 0, l = Math.cos(s), c = Math.sin(s);
|
|
14775
14778
|
i.push({ kind: "graphics-group", ops: [{ kind: "state-op", operator: "rg", operands: [ne(a.r), ne(a.g), ne(a.b)] }, { kind: "text-object", commands: [{ kind: "font", fontName: r, size: n }, { kind: "matrix", matrix: [l, c, -c, l, t.x, t.y] }, { kind: "show-text", token: o }] }] }), this.setContentAst(i);
|
|
@@ -14832,7 +14835,7 @@ var ss = class {
|
|
|
14832
14835
|
let l = this.cosDoc.resolveDict(s);
|
|
14833
14836
|
if (!l) continue;
|
|
14834
14837
|
let c = this.cosDoc.resolve(O(l, "F")), f = c?.kind === "number" ? c.value : 0;
|
|
14835
|
-
if ((f & 2) !== 0 || (f & 32) !== 0 || !
|
|
14838
|
+
if ((f & 2) !== 0 || (f & 32) !== 0 || !Qc(this.cosDoc, O(l, "OC"))) continue;
|
|
14836
14839
|
let h = this.cosDoc.resolveArray(O(l, "Rect")), d = 50, u = 700;
|
|
14837
14840
|
if (h && h.items.length >= 2) {
|
|
14838
14841
|
let y = this.cosDoc.resolve(h.items[0]), C = this.cosDoc.resolve(h.items[1]);
|
|
@@ -14956,14 +14959,14 @@ function T9(e, t, n) {
|
|
|
14956
14959
|
}, d = (u) => {
|
|
14957
14960
|
for (; o <= 0; ) {
|
|
14958
14961
|
if (++f > Za) throw new de("E_LIMIT", "Stroke dash expansion exceeds the vertex limit");
|
|
14959
|
-
r % 2 === 0 && (t[r] === 0 && l.push({ points: [u, u], closed: false }), h()), r = (r + 1) % t.length, o = t[r];
|
|
14962
|
+
r % 2 === 0 && (t[r] === 0 && l.push({ points: [u, u], closed: false, zeroLengthDash: true }), h()), r = (r + 1) % t.length, o = t[r];
|
|
14960
14963
|
}
|
|
14961
14964
|
};
|
|
14962
14965
|
for (let u = 1; u < s.length; u++) {
|
|
14963
14966
|
let g = s[u - 1], p = s[u], v = p[0] - g[0], A = p[1] - g[1], b = Math.hypot(v, A);
|
|
14964
14967
|
if (!Number.isFinite(b) || b / a * t.length > Za) throw new de("E_LIMIT", "Stroke dash expansion exceeds the vertex limit");
|
|
14965
14968
|
let m = 0;
|
|
14966
|
-
for (; m
|
|
14969
|
+
for (; b - m > 8 * Number.EPSILON * Math.max(1, b); ) {
|
|
14967
14970
|
let w = [g[0] + v * m / b, g[1] + A * m / b];
|
|
14968
14971
|
d(w);
|
|
14969
14972
|
let x = Math.min(o, b - m);
|
|
@@ -15030,7 +15033,11 @@ function X9(e, t, n, a, i, r = [], o = 0) {
|
|
|
15030
15033
|
(!x || Math.hypot(x[0] - w[0], x[1] - w[1]) > 1e-14) && b.push(w);
|
|
15031
15034
|
}
|
|
15032
15035
|
let m = A.closed;
|
|
15033
|
-
if (m && b.length > 1 && Math.hypot(b[0][0] - b[b.length - 1][0], b[0][1] - b[b.length - 1][1]) <= 1e-14 && b.pop(), b.length < 3 && (m = false), b.length === 1 &&
|
|
15036
|
+
if (m && b.length > 1 && Math.hypot(b[0][0] - b[b.length - 1][0], b[0][1] - b[b.length - 1][1]) <= 1e-14 && b.pop(), b.length < 3 && (m = false), b.length === 1 && n === 2 && A.zeroLengthDash) {
|
|
15037
|
+
h = [];
|
|
15038
|
+
let [w, x] = b[0];
|
|
15039
|
+
d(w - s, x - s), d(w + s, x - s), d(w + s, x + s), d(w - s, x + s), l.push(h);
|
|
15040
|
+
} else if (b.length === 1 && A.points.length > 1 && n === 1) {
|
|
15034
15041
|
h = [];
|
|
15035
15042
|
let [w, x] = b[0];
|
|
15036
15043
|
g([w, x], [w + 1, x]), g([w, x], [w - 1, x]), l.push(h);
|
|
@@ -15147,7 +15154,7 @@ function Y1(e, t) {
|
|
|
15147
15154
|
}
|
|
15148
15155
|
return { width: r, height: o, data: s };
|
|
15149
15156
|
}
|
|
15150
|
-
function
|
|
15157
|
+
function Rc(e, t) {
|
|
15151
15158
|
let n = Math.max(0, Math.min(e.width - 1, Math.round(t.x))), a = Math.max(0, Math.min(e.height - 1, Math.round(t.y))), i = Math.max(1, e.width - n), r = Math.max(1, e.height - a), o = t.width > 0 ? Math.max(1, Math.min(i, Math.round(t.width))) : i, s = t.height > 0 ? Math.max(1, Math.min(r, Math.round(t.height))) : r, l = new Uint8Array(o * s * 4);
|
|
15152
15159
|
for (let c = 0; c < s; c++) {
|
|
15153
15160
|
let f = ((a + c) * e.width + n) * 4, h = c * o * 4;
|
|
@@ -15257,7 +15264,7 @@ function W1(e, t, n, a, i, r, o, s, l) {
|
|
|
15257
15264
|
let v = e[f] / 255, A = e[f + 1] / 255, b = e[f + 2] / 255, [m, w, x] = z9(v, A, b, h, d, u, s), B = (1 - g) * h + g * m, y = (1 - g) * d + g * w, C = (1 - g) * u + g * x;
|
|
15258
15265
|
e[f] = Math.round((B * c + v * g * (1 - c)) / p * 255), e[f + 1] = Math.round((y * c + A * g * (1 - c)) / p * 255), e[f + 2] = Math.round((C * c + b * g * (1 - c)) / p * 255), e[f + 3] = Math.round(p * 255);
|
|
15259
15266
|
}
|
|
15260
|
-
function
|
|
15267
|
+
function qc(e, t, n, a = (i, r) => [i * n, (t - r) * n]) {
|
|
15261
15268
|
let i = [], r = [], o = [0, 0];
|
|
15262
15269
|
for (let s of e) if (s.kind === "move") r.length && i.push({ points: r, closed: false }), o = a(s.x, s.y), r = [o];
|
|
15263
15270
|
else if (s.kind === "line") r.length || (r = [o]), o = a(s.x, s.y), r.push(o);
|
|
@@ -15294,10 +15301,10 @@ function W9(e, t, n) {
|
|
|
15294
15301
|
if (!a) return [];
|
|
15295
15302
|
let i = Y9(a.matrix);
|
|
15296
15303
|
if (!i) return [];
|
|
15297
|
-
let [r, o, s, l, c, f] = a.matrix, h = n * Math.hypot(r, o, s, l), d = (p, v) => [(i[0] * p + i[2] * v + i[4]) * h, (i[1] * p + i[3] * v + i[5]) * h], u = ([p, v]) => [(r * p / h + s * v / h + c) * n, (t - o * p / h - l * v / h - f) * n]
|
|
15298
|
-
return qc(
|
|
15304
|
+
let [r, o, s, l, c, f] = a.matrix, h = n * Math.hypot(r, o, s, l), d = (p, v) => [(i[0] * p + i[2] * v + i[4]) * h, (i[1] * p + i[3] * v + i[5]) * h], u = ([p, v]) => [(r * p / h + s * v / h + c) * n, (t - o * p / h - l * v / h - f) * n];
|
|
15305
|
+
return X9(qc(e.segments, t, n, d), a.width * h, e.lineCap ?? 0, e.lineJoin ?? 0, e.miterLimit ?? 10, a.dashArray?.map((p) => Math.max(0, p * h)), a.dashPhase * h).map((p) => p.map(u));
|
|
15299
15306
|
}
|
|
15300
|
-
function
|
|
15307
|
+
function jo(e, t = false) {
|
|
15301
15308
|
let n = [];
|
|
15302
15309
|
for (let { points: a, closed: i } of e) {
|
|
15303
15310
|
for (let r = 1; r < a.length; r++) {
|
|
@@ -15311,7 +15318,7 @@ function qc(e, t = false) {
|
|
|
15311
15318
|
}
|
|
15312
15319
|
return n;
|
|
15313
15320
|
}
|
|
15314
|
-
function
|
|
15321
|
+
function Wo(e, t, n, a, i, r = 1, o = "nonzero", s, l = true, c, f) {
|
|
15315
15322
|
if (a.length === 0) return;
|
|
15316
15323
|
let h = 1 / 0, d = -1 / 0;
|
|
15317
15324
|
for (let w of a) h = Math.min(h, w.y0, w.y1), d = Math.max(d, w.y0, w.y1);
|
|
@@ -15399,7 +15406,7 @@ function ni(e, t = {}) {
|
|
|
15399
15406
|
k = new Uint8Array(o * s * 4).fill(255);
|
|
15400
15407
|
for (let P of C) {
|
|
15401
15408
|
let { segments: F, fillRule: E } = "segments" in P ? P : { segments: P, fillRule: "nonzero" }, G = new Uint8Array(o * s * 4);
|
|
15402
|
-
|
|
15409
|
+
Wo(G, o, s, jo(qc(F, e.height, r), true), { r: 1, g: 1, b: 1 }, 1, E);
|
|
15403
15410
|
for (let D = 3; D < G.length; D += 4) k[D] = Math.round(k[D] * G[D] / 255);
|
|
15404
15411
|
}
|
|
15405
15412
|
v = C, A = k;
|
|
@@ -15428,12 +15435,12 @@ function ni(e, t = {}) {
|
|
|
15428
15435
|
if (y.kind === "path") {
|
|
15429
15436
|
let P = y.value;
|
|
15430
15437
|
if (P.fillColor) {
|
|
15431
|
-
let F = qc(
|
|
15432
|
-
|
|
15438
|
+
let F = jo(qc(P.segments, e.height, r), true), E = P.clipRect ? [P.clipRect[0] * r, (e.height - P.clipRect[3]) * r, P.clipRect[2] * r, (e.height - P.clipRect[1]) * r] : void 0;
|
|
15439
|
+
Wo(l, o, s, F, P.fillColor, P.fillAlpha ?? 1, P.fillRule ?? "nonzero", E, B.kind === "glyph" ? p : g, P.blendMode, k);
|
|
15433
15440
|
}
|
|
15434
15441
|
if (P.strokeColor) {
|
|
15435
|
-
let F = P.strokeWidth * r * (P.strokeMatrix ? Math.hypot(P.strokeMatrix[0], P.strokeMatrix[1]) : 1), E = t.thinLineMode === "shape" && F < 1 ? (P.strokeAlpha ?? 1) * Math.max(0.25, F) : P.strokeAlpha ?? 1, G = W9(P, e.height, r), D = P.clipRect ? [P.clipRect[0] * r, (e.height - P.clipRect[3]) * r, P.clipRect[2] * r, (e.height - P.clipRect[1]) * r] : void 0;
|
|
15436
|
-
|
|
15442
|
+
let F = P.strokeWidth * r * (P.strokeMatrix ? Math.hypot(P.strokeMatrix[0], P.strokeMatrix[1]) : 1), E = t.thinLineMode === "shape" && F < 1 ? (P.strokeAlpha ?? 1) * Math.max(0.25, F) : P.strokeAlpha ?? 1, G = jo(W9(P, e.height, r).map((I) => ({ points: I, closed: true }))), D = P.clipRect ? [P.clipRect[0] * r, (e.height - P.clipRect[3]) * r, P.clipRect[2] * r, (e.height - P.clipRect[1]) * r] : void 0;
|
|
15443
|
+
Wo(l, o, s, G, P.strokeColor, E, "nonzero", D, B.kind === "glyph" ? p : g, P.blendMode, k);
|
|
15437
15444
|
}
|
|
15438
15445
|
} else if (y.kind === "image") {
|
|
15439
15446
|
let P = y.value;
|
|
@@ -15475,7 +15482,7 @@ function ni(e, t = {}) {
|
|
|
15475
15482
|
}
|
|
15476
15483
|
x = { width: B, height: y, data: C };
|
|
15477
15484
|
}
|
|
15478
|
-
return x = Y1(x, e.rotation ?? 0), t.cropRect && (x =
|
|
15485
|
+
return x = Y1(x, e.rotation ?? 0), t.cropRect && (x = Rc(x, t.cropRect)), x;
|
|
15479
15486
|
}
|
|
15480
15487
|
function N1(e, t = {}) {
|
|
15481
15488
|
let n = ni(e, t);
|
|
@@ -15511,18 +15518,18 @@ function vh(e, t, n) {
|
|
|
15511
15518
|
}
|
|
15512
15519
|
}
|
|
15513
15520
|
function _9(e, t = 0, n) {
|
|
15514
|
-
let a = e instanceof Uint8Array ?
|
|
15521
|
+
let a = e instanceof Uint8Array ? Hc(e) : e, i = a.resolveDict(a.rootRef), r = Z1(a, i ? O(i, "Pages") : void 0), o = r[t] ?? (t >= 1 ? r[t - 1] : void 0);
|
|
15515
15522
|
if (!o) throw new Error(`Page index ${t} out of bounds`);
|
|
15516
15523
|
let s = r.indexOf(o), l = new ss(a, o.ref, o.dict, s), { cropRect: c, ...f } = n ?? {}, h = ni({ ...l.evaluateDisplayList({ hideAnnotations: n?.hideAnnotations }), rotation: 0 }, f);
|
|
15517
15524
|
if (n?.useCropBox) {
|
|
15518
15525
|
let u = vh(a, o.dict, "CropBox");
|
|
15519
15526
|
if (u) {
|
|
15520
15527
|
let g = vh(a, o.dict, "MediaBox") ?? [0, 0, l.getSize().width, l.getSize().height], p = n.scale ?? (n.dpi ? n.dpi / 72 : 1.5), v = n.dpiX !== void 0 ? n.dpiX / 72 : p, A = n.dpiY !== void 0 ? n.dpiY / 72 : p, b = g[3] - g[1], m = Math.round((u[0] - g[0]) * v), w = Math.round((b - (u[3] - g[1])) * A), x = Math.max(1, Math.round(Math.abs(u[2] - u[0]) * v)), B = Math.max(1, Math.round(Math.abs(u[3] - u[1]) * A));
|
|
15521
|
-
h =
|
|
15528
|
+
h = Rc(h, { x: m, y: w, width: x, height: B });
|
|
15522
15529
|
}
|
|
15523
15530
|
}
|
|
15524
15531
|
let d = l.getRotation();
|
|
15525
|
-
return (d === 90 || d === 180 || d === 270) && (h = Y1(h, d)), c && (h =
|
|
15532
|
+
return (d === 90 || d === 180 || d === 270) && (h = Y1(h, d)), c && (h = Rc(h, c)), h;
|
|
15526
15533
|
}
|
|
15527
15534
|
function $9(e, t = 0, n) {
|
|
15528
15535
|
let a = _9(e, t, n);
|
|
@@ -15632,11 +15639,11 @@ var Bl = class zc {
|
|
|
15632
15639
|
this.cos = t, this.rebuildPagesList();
|
|
15633
15640
|
}
|
|
15634
15641
|
static create() {
|
|
15635
|
-
let t = Fe({ Type: Be("Catalog"), Pages: Ti(2) }), n = Fe({ Type: Be("Pages"), Count: ne(0), Kids: Ue([]) }), a = Fe({ Producer: ut("@poe-code/pdf-ast") }), i =
|
|
15636
|
-
return new zc(
|
|
15642
|
+
let t = Fe({ Type: Be("Catalog"), Pages: Ti(2) }), n = Fe({ Type: Be("Pages"), Count: ne(0), Kids: Ue([]) }), a = Fe({ Producer: ut("@poe-code/pdf-ast") }), i = Cc({ objects: [{ objectNumber: 1, generationNumber: 0, value: t }, { objectNumber: 2, generationNumber: 0, value: n }, { objectNumber: 3, generationNumber: 0, value: a }], rootRef: Ti(1), infoRef: Ti(3) });
|
|
15643
|
+
return new zc(Hc(i));
|
|
15637
15644
|
}
|
|
15638
15645
|
static load(t, n) {
|
|
15639
|
-
return new zc(
|
|
15646
|
+
return new zc(Hc(t, { ...n, recovery: n?.recovery ?? "repair" }));
|
|
15640
15647
|
}
|
|
15641
15648
|
rebuildPagesList() {
|
|
15642
15649
|
let t = this.cos.resolveDict(this.cos.rootRef), n = t ? O(t, "Pages") : void 0, a = J1(this.cos, n);
|
|
@@ -15907,7 +15914,7 @@ var Bl = class zc {
|
|
|
15907
15914
|
save(t = {}) {
|
|
15908
15915
|
if (this.syncPageTree(), this.cos.requiresFullRewrite && (t4(this.cos, this.pages), e4(this.cos)), t.encrypt) return k5(this.cos, t.encrypt);
|
|
15909
15916
|
let n = [...this.cos.objects.values()].sort((a, i) => a.objectNumber - i.objectNumber);
|
|
15910
|
-
return t.incremental && !this.cos.requiresFullRewrite && this.cos.bytes.length > 0 ? w5(this.cos.bytes, this.cos, n) :
|
|
15917
|
+
return t.incremental && !this.cos.requiresFullRewrite && this.cos.bytes.length > 0 ? w5(this.cos.bytes, this.cos, n) : Cc({ objects: n, rootRef: this.cos.rootRef, infoRef: this.cos.infoRef, idArray: this.cos.idArray, version: this.cos.version, normalizeContent: t.normalizeContent, objectStreams: t.objectStreams, linearize: t.linearize });
|
|
15911
15918
|
}
|
|
15912
15919
|
};
|
|
15913
15920
|
function n4(e) {
|