@deot/docs-client 1.1.5 → 1.1.6

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.
Files changed (74) hide show
  1. package/dist/chunks/{compile-BHD98Ttf-BJaenUUQ.js → compile-CM_OyqYN-Bd7bk_OB.js} +634 -1734
  2. package/dist/chunks/{compiler-sfc.esm-browser-B4_kBkG5.js → compiler-sfc.esm-browser-5dA1IWMJ.js} +185 -305
  3. package/dist/chunks/{script-DjUf9uWK-Cu5Kla_E.js → css-DleINdoA-FdeEznDX.js} +2716 -2641
  4. package/dist/chunks/{dist-COjpr4FU.js → dist-DHJhaOSs.js} +2 -2
  5. package/dist/chunks/{dist-C8z9l0mA.js → dist-DSypl37f.js} +1 -1
  6. package/dist/chunks/{dist-BQyOK8Qy.js → dist-Wm6vE6kM.js} +2 -2
  7. package/dist/chunks/{echarts-Dk-pu7GM.js → echarts-BBzcOaek.js} +1075 -1290
  8. package/dist/chunks/{html2canvas-Deo0mM5K.js → html2canvas-DoKTvaOT.js} +3 -13
  9. package/dist/chunks/{index.es-UlJ0gfdF.js → index.es-wVPQxEPP.js} +32 -37
  10. package/dist/chunks/{jspdf.es.min-CJc40v7q.js → jspdf.es.min-Zm27YeAg.js} +1080 -1053
  11. package/dist/chunks/{jsx-CwMPlI4_-CAiik-V7.js → jsx-CwMPlI4_-CBhlIHLh.js} +8002 -8541
  12. package/dist/chunks/{jszip.min-BbVwZKYP.js → jszip.min-Da8UgalE.js} +5 -5
  13. package/dist/chunks/{lodash-Cxf6dD_I.js → lodash-CYyW02I7.js} +10 -14
  14. package/dist/chunks/{photoswipe.esm-B0V-xGTB.js → photoswipe.esm-D52MAtDT.js} +11 -38
  15. package/dist/chunks/{purify.es-BiqY1C6m.js → purify.es-DhHsvqCe.js} +1 -23
  16. package/dist/chunks/{vue-router-C0mj8Ot5.js → vue-router-DZ-KfC9f.js} +373 -361
  17. package/dist/chunks/{vue.runtime.esm-bundler-XxHGOLq2.js → vue.runtime.esm-bundler-zZTAiuf6.js} +10 -38
  18. package/dist/eval/chunks/browser-Cmwcvs-d.js +4 -0
  19. package/dist/eval/chunks/chunk-rhk8Qtmk-CUgXtmq_.js +4 -0
  20. package/dist/eval/chunks/compile-CM_OyqYN-Bd7bk_OB.js +7 -0
  21. package/dist/eval/chunks/compiler-sfc.esm-browser-5dA1IWMJ.js +4 -0
  22. package/dist/eval/chunks/css-DleINdoA-FdeEznDX.js +8 -0
  23. package/dist/eval/chunks/dayjs.min-B3g34Qcz.js +4 -0
  24. package/dist/eval/chunks/dist-0ySyXNpo.js +4 -0
  25. package/dist/eval/chunks/dist-B44jICwZ.js +5 -0
  26. package/dist/eval/chunks/dist-BUw25nXJ.js +6 -0
  27. package/dist/eval/chunks/dist-BeOE8qTX.js +4 -0
  28. package/dist/eval/chunks/dist-C3V7reR4.js +4 -0
  29. package/dist/eval/chunks/dist-CI9Lp9Cj.js +4 -0
  30. package/dist/eval/chunks/dist-CQir6D4y.js +5 -0
  31. package/dist/eval/chunks/dist-Cxf7_ocf.js +4 -0
  32. package/dist/eval/chunks/dist-DF4kisl2.js +5 -0
  33. package/dist/eval/chunks/dist-DHJhaOSs.js +5 -0
  34. package/dist/eval/chunks/dist-DLj8yJdm.js +4 -0
  35. package/dist/eval/chunks/dist-DSypl37f.js +5 -0
  36. package/dist/eval/chunks/dist-DWn6r6un.js +4 -0
  37. package/dist/eval/chunks/dist-DWqBe2Ah.js +6 -0
  38. package/dist/eval/chunks/dist-D_Uqh6m9.js +4 -0
  39. package/dist/eval/chunks/dist-DcIU51zW.js +4 -0
  40. package/dist/eval/chunks/dist-Wm6vE6kM.js +1 -0
  41. package/dist/eval/chunks/dist-kiZUqqzR.js +4 -0
  42. package/dist/eval/chunks/dist-oZ12SGqg.js +4 -0
  43. package/dist/eval/chunks/dist-va7FmnW4.js +4 -0
  44. package/dist/eval/chunks/echarts-BBzcOaek.js +4 -0
  45. package/dist/eval/chunks/eval-runtime-e7f6eb9af5d4.js +1 -0
  46. package/dist/eval/chunks/html2canvas-DoKTvaOT.js +4 -0
  47. package/dist/eval/chunks/index.es-wVPQxEPP.js +5 -0
  48. package/dist/eval/chunks/jspdf.es.min-Zm27YeAg.js +78 -0
  49. package/dist/eval/chunks/jsx-CwMPlI4_-CBhlIHLh.js +4 -0
  50. package/dist/eval/chunks/jszip.min-Da8UgalE.js +4 -0
  51. package/dist/eval/chunks/lodash-CYyW02I7.js +4 -0
  52. package/dist/eval/chunks/photoswipe.esm-D52MAtDT.js +4 -0
  53. package/dist/eval/chunks/purify.es-DhHsvqCe.js +4 -0
  54. package/dist/eval/chunks/rolldown-runtime-Ce3zPWPd.js +4 -0
  55. package/dist/eval/chunks/vue-router-DZ-KfC9f.js +5 -0
  56. package/dist/eval/chunks/vue.runtime.esm-bundler-zZTAiuf6.js +4 -0
  57. package/dist/eval/index.js +24 -0
  58. package/dist/eval/index.style.css +21 -0
  59. package/dist/index.cjs +7 -3
  60. package/dist/index.js +79026 -36843
  61. package/dist/index.style.css +3 -3
  62. package/package.json +11 -11
  63. package/dist/chunks/cdn-DQoETju_-DS-873Vi.js +0 -38
  64. package/dist/chunks/dist-9UPCn_ag.js +0 -24601
  65. package/dist/chunks/dist-uXnwGrO3.js +0 -76
  66. package/dist/chunks/files-BqucFldk-B-hTQ-ip.js +0 -148
  67. package/dist/chunks/linker-xqjVl0X0-CWWI367H.js +0 -118
  68. package/dist/chunks/local-sandbox-DvcgaBOa-CzJxrdVx.js +0 -298
  69. package/dist/chunks/modules-BGzPcoRR-C9BWX8hC.js +0 -154
  70. package/dist/chunks/pinia-pDJilYOg.js +0 -326
  71. package/dist/chunks/remote-mq4zvrI1-Bib9tTkb.js +0 -104
  72. package/dist/chunks/store-BOyC8F2y-CbodPye0.js +0 -17037
  73. package/dist/chunks/vc-components-C7ruefOT.js +0 -6
  74. package/dist/chunks/vc-components-m3l_xrd8.js +0 -6
@@ -1,7 +1,7 @@
1
1
  globalThis.process;
2
2
  import { i as e, n as t } from "./rolldown-runtime-Ce3zPWPd.js";
3
3
  import { i as n } from "./browser-Cmwcvs-d.js";
4
- //#region node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/typeof.js
4
+ //#region node_modules/.pnpm/@babel+runtime@7.29.10/node_modules/@babel/runtime/helpers/esm/typeof.js
5
5
  function r(e) {
6
6
  "@babel/helpers - typeof";
7
7
  return r = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -11,12 +11,12 @@ function r(e) {
11
11
  }, r(e);
12
12
  }
13
13
  //#endregion
14
- //#region node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
14
+ //#region node_modules/.pnpm/@babel+runtime@7.29.10/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
15
15
  function i(e) {
16
16
  if (Array.isArray(e)) return e;
17
17
  }
18
18
  //#endregion
19
- //#region node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
19
+ //#region node_modules/.pnpm/@babel+runtime@7.29.10/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
20
20
  function a(e, t) {
21
21
  var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
22
22
  if (n != null) {
@@ -39,14 +39,14 @@ function a(e, t) {
39
39
  }
40
40
  }
41
41
  //#endregion
42
- //#region node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
42
+ //#region node_modules/.pnpm/@babel+runtime@7.29.10/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
43
43
  function o(e, t) {
44
44
  (t == null || t > e.length) && (t = e.length);
45
45
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
46
46
  return r;
47
47
  }
48
48
  //#endregion
49
- //#region node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
49
+ //#region node_modules/.pnpm/@babel+runtime@7.29.10/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
50
50
  function s(e, t) {
51
51
  if (e) {
52
52
  if (typeof e == "string") return o(e, t);
@@ -55,12 +55,12 @@ function s(e, t) {
55
55
  }
56
56
  }
57
57
  //#endregion
58
- //#region node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
58
+ //#region node_modules/.pnpm/@babel+runtime@7.29.10/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
59
59
  function c() {
60
60
  throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
61
61
  }
62
62
  //#endregion
63
- //#region node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
63
+ //#region node_modules/.pnpm/@babel+runtime@7.29.10/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
64
64
  function l(e, t) {
65
65
  return i(e) || a(e, t) || s(e, t) || c();
66
66
  }
@@ -516,7 +516,7 @@ var se = (e) => e < 256 ? te[e] : te[256 + (e >>> 7)], W = (e, t) => {
516
516
  Ee ||= (me(), !0), e.l_desc = new oe(e.dyn_ltree, re), e.d_desc = new oe(e.dyn_dtree, ie), e.bl_desc = new oe(e.bl_tree, ae), e.bi_buf = 0, e.bi_valid = 0, he(e);
517
517
  }, De = (e, t, n, r) => {
518
518
  ce(e, 0 + +!!r, 3), ge(e), W(e, n), W(e, ~n), n && e.pending_buf.set(e.window.subarray(t, t + n), e.pending), e.pending += n;
519
- }, Oe = {
519
+ }, K = {
520
520
  _tr_init: G,
521
521
  _tr_stored_block: De,
522
522
  _tr_flush_block: (e, t, n, r) => {
@@ -527,8 +527,8 @@ var se = (e) => e < 256 ? te[e] : te[256 + (e >>> 7)], W = (e, t) => {
527
527
  _tr_align: (e) => {
528
528
  ce(e, 2, 3), le(e, j, z), de(e);
529
529
  }
530
- }, ke = (e, t, n, r) => {
531
- let i = e & 65535 | 0, a = e >>> 16 & 65535 | 0, o = 0;
530
+ }, Oe = (e, t, n, r) => {
531
+ let i = e & 65535, a = e >>> 16 & 65535, o = 0;
532
532
  for (; n !== 0;) {
533
533
  o = n > 2e3 ? 2e3 : n, n -= o;
534
534
  do
@@ -536,8 +536,8 @@ var se = (e) => e < 256 ? te[e] : te[256 + (e >>> 7)], W = (e, t) => {
536
536
  while (--o);
537
537
  i %= 65521, a %= 65521;
538
538
  }
539
- return i | a << 16 | 0;
540
- }, Ae = new Uint32Array((() => {
539
+ return i | a << 16;
540
+ }, ke = new Uint32Array((() => {
541
541
  let e, t = [];
542
542
  for (var n = 0; n < 256; n++) {
543
543
  e = n;
@@ -545,12 +545,12 @@ var se = (e) => e < 256 ? te[e] : te[256 + (e >>> 7)], W = (e, t) => {
545
545
  t[n] = e;
546
546
  }
547
547
  return t;
548
- })()), je = (e, t, n, r) => {
549
- let i = Ae, a = r + n;
548
+ })()), Ae = (e, t, n, r) => {
549
+ let i = ke, a = r + n;
550
550
  e ^= -1;
551
551
  for (let n = r; n < a; n++) e = e >>> 8 ^ i[(e ^ t[n]) & 255];
552
552
  return e ^ -1;
553
- }, Me = {
553
+ }, je = {
554
554
  2: "need dictionary",
555
555
  1: "stream end",
556
556
  0: "",
@@ -560,7 +560,7 @@ var se = (e) => e < 256 ? te[e] : te[256 + (e >>> 7)], W = (e, t) => {
560
560
  "-4": "insufficient memory",
561
561
  "-5": "buffer error",
562
562
  "-6": "incompatible version"
563
- }, Ne = {
563
+ }, Me = {
564
564
  Z_NO_FLUSH: 0,
565
565
  Z_PARTIAL_FLUSH: 1,
566
566
  Z_SYNC_FLUSH: 2,
@@ -589,10 +589,10 @@ var se = (e) => e < 256 ? te[e] : te[256 + (e >>> 7)], W = (e, t) => {
589
589
  Z_TEXT: 1,
590
590
  Z_UNKNOWN: 2,
591
591
  Z_DEFLATED: 8
592
- }, { _tr_init: K, _tr_stored_block: Pe, _tr_flush_block: Fe, _tr_tally: Ie, _tr_align: Le } = Oe, { Z_NO_FLUSH: Re, Z_PARTIAL_FLUSH: q, Z_FULL_FLUSH: ze, Z_FINISH: Be, Z_BLOCK: Ve, Z_OK: He, Z_STREAM_END: Ue, Z_STREAM_ERROR: We, Z_DATA_ERROR: Ge, Z_BUF_ERROR: Ke, Z_DEFAULT_COMPRESSION: qe, Z_FILTERED: Je, Z_HUFFMAN_ONLY: Ye, Z_RLE: Xe, Z_FIXED: Ze, Z_DEFAULT_STRATEGY: Qe, Z_UNKNOWN: $e, Z_DEFLATED: et } = Ne, tt = 9, nt = 15, rt = 8, it = 573, at = 3, ot = 258, st = 262, ct = 32, lt = 42, ut = 57, dt = 69, ft = 73, pt = 91, mt = 103, ht = 113, gt = 666, _t = 1, vt = 2, yt = 3, bt = 4, xt = 3, St = (e, t) => (e.msg = Me[t], t), Ct = (e) => e * 2 - (e > 4 ? 9 : 0), wt = (e) => {
592
+ }, { _tr_init: q, _tr_stored_block: Ne, _tr_flush_block: Pe, _tr_tally: Fe, _tr_align: Ie } = K, { Z_NO_FLUSH: Le, Z_PARTIAL_FLUSH: J, Z_FULL_FLUSH: Re, Z_FINISH: ze, Z_BLOCK: Be, Z_OK: Ve, Z_STREAM_END: He, Z_STREAM_ERROR: Ue, Z_DATA_ERROR: We, Z_BUF_ERROR: Ge, Z_DEFAULT_COMPRESSION: Ke, Z_FILTERED: qe, Z_HUFFMAN_ONLY: Je, Z_RLE: Ye, Z_FIXED: Xe, Z_DEFAULT_STRATEGY: Ze, Z_UNKNOWN: Qe, Z_DEFLATED: $e } = Me, et = 9, tt = 15, nt = 8, rt = 573, it = 3, at = 258, ot = 262, st = 32, ct = 42, lt = 57, ut = 69, dt = 73, ft = 91, pt = 103, mt = 113, ht = 666, gt = 1, _t = 2, vt = 3, yt = 4, bt = 3, xt = (e, t) => (e.msg = je[t], t), St = (e) => e * 2 - (e > 4 ? 9 : 0), Ct = (e) => {
593
593
  let t = e.length;
594
594
  for (; --t >= 0;) e[t] = 0;
595
- }, Tt = (e) => {
595
+ }, wt = (e) => {
596
596
  let t, n, r, i = e.w_size;
597
597
  t = e.hash_size, r = t;
598
598
  do
@@ -602,36 +602,36 @@ var se = (e) => e < 256 ? te[e] : te[256 + (e >>> 7)], W = (e, t) => {
602
602
  do
603
603
  n = e.prev[--r], e.prev[r] = n >= i ? n - i : 0;
604
604
  while (--t);
605
- }, J = (e, t, n) => (t << e.hash_shift ^ n) & e.hash_mask, Et = (e, t) => {
605
+ }, Y = (e, t, n) => (t << e.hash_shift ^ n) & e.hash_mask, Tt = (e, t) => {
606
606
  let n;
607
- if (e.legacy_hash) n = e.ins_h = J(e, e.ins_h, e.window[t + at - 1]);
607
+ if (e.legacy_hash) n = e.ins_h = Y(e, e.ins_h, e.window[t + it - 1]);
608
608
  else {
609
609
  let r = e.window, i = r[t] | r[t + 1] << 8 | r[t + 2] << 16 | r[t + 3] << 24;
610
610
  n = e.ins_h = Math.imul(i, 66521) + 66521 >>> 16 & e.hash_mask;
611
611
  }
612
612
  let r = e.prev[t & e.w_mask] = e.head[n];
613
613
  return e.head[n] = t, r;
614
- }, Dt = (e) => {
614
+ }, Et = (e) => {
615
615
  let t = e.state, n = t.pending;
616
616
  n > e.avail_out && (n = e.avail_out), n !== 0 && (e.output.set(t.pending_buf.subarray(t.pending_out, t.pending_out + n), e.next_out), e.next_out += n, t.pending_out += n, e.total_out += n, e.avail_out -= n, t.pending -= n, t.pending === 0 && (t.pending_out = 0));
617
+ }, Dt = (e, t) => {
618
+ Pe(e, e.block_start >= 0 ? e.block_start : -1, e.strstart - e.block_start, t), e.block_start = e.strstart, Et(e.strm);
617
619
  }, Ot = (e, t) => {
618
- Fe(e, e.block_start >= 0 ? e.block_start : -1, e.strstart - e.block_start, t), e.block_start = e.strstart, Dt(e.strm);
619
- }, Y = (e, t) => {
620
620
  e.pending_buf[e.pending++] = t;
621
621
  }, kt = (e, t) => {
622
622
  e.pending_buf[e.pending++] = t >>> 8 & 255, e.pending_buf[e.pending++] = t & 255;
623
623
  }, At = (e, t, n, r) => {
624
624
  let i = e.avail_in;
625
- return i > r && (i = r), 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 = ke(e.adler, t, i, n) : e.state.wrap === 2 && (e.adler = je(e.adler, t, i, n)), e.next_in += i, e.total_in += i, i);
625
+ return i > r && (i = r), 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 = Oe(e.adler, t, i, n) : e.state.wrap === 2 && (e.adler = Ae(e.adler, t, i, n)), e.next_in += i, e.total_in += i, i);
626
626
  }, jt = (e, t) => {
627
- let n = e.max_chain_length, r = e.strstart, i, a, o = e.prev_length, s = e.nice_match, c = e.strstart > e.w_size - st ? e.strstart - (e.w_size - st) : 0, l = e.window, u = e.w_mask, d = e.prev, f = e.strstart + ot, p = l[r + o - 1], m = l[r + o];
627
+ let n = e.max_chain_length, r = e.strstart, i, a, o = e.prev_length, s = e.nice_match, c = e.strstart > e.w_size - ot ? e.strstart - (e.w_size - ot) : 0, l = e.window, u = e.w_mask, d = e.prev, f = e.strstart + at, p = l[r + o - 1], m = l[r + o];
628
628
  e.prev_length >= e.good_match && (n >>= 2), s > e.lookahead && (s = e.lookahead);
629
629
  do
630
630
  if (i = t, l[i + o] === m && l[i + o - 1] === p && l[i] === l[r] && l[++i] === l[r + 1]) {
631
631
  r += 2, i++;
632
632
  do ;
633
633
  while (l[++r] === l[++i] && l[++r] === l[++i] && l[++r] === l[++i] && l[++r] === l[++i] && l[++r] === l[++i] && l[++r] === l[++i] && l[++r] === l[++i] && l[++r] === l[++i] && r < f);
634
- if (a = ot - (f - r), r = f - ot, a > o) {
634
+ if (a = at - (f - r), r = f - at, a > o) {
635
635
  if (e.match_start = t, o = a, a >= s) break;
636
636
  p = l[r + o - 1], m = l[r + o];
637
637
  }
@@ -641,81 +641,81 @@ while (l[++r] === l[++i] && l[++r] === l[++i] && l[++r] === l[++i] && l[++r] ===
641
641
  }, Mt = (e) => {
642
642
  let t = e.w_size, n, r, i;
643
643
  do {
644
- if (r = e.window_size - e.lookahead - e.strstart, e.strstart >= t + (t - st) && (e.window.set(e.window.subarray(t, t + t - r), 0), e.match_start -= t, e.strstart -= t, e.block_start -= t, e.insert > e.strstart && (e.insert = e.strstart), Tt(e), r += t), e.strm.avail_in === 0) break;
644
+ if (r = e.window_size - e.lookahead - e.strstart, e.strstart >= t + (t - ot) && (e.window.set(e.window.subarray(t, t + t - r), 0), e.match_start -= t, e.strstart -= t, e.block_start -= t, e.insert > e.strstart && (e.insert = e.strstart), wt(e), r += t), e.strm.avail_in === 0) break;
645
645
  if (n = At(e.strm, e.window, e.strstart + e.lookahead, r), e.lookahead += n, !e.legacy_hash) {
646
- if (e.lookahead + e.insert > at) for (i = e.strstart - e.insert; e.insert && (Et(e, i), i++, e.insert--, !(e.lookahead + e.insert <= at)););
647
- } else if (e.lookahead + e.insert >= at) for (i = e.strstart - e.insert, e.ins_h = e.window[i], e.ins_h = J(e, e.ins_h, e.window[i + 1]); e.insert && (Et(e, i), i++, e.insert--, !(e.lookahead + e.insert < at)););
648
- } while (e.lookahead < st && e.strm.avail_in !== 0);
646
+ if (e.lookahead + e.insert > it) for (i = e.strstart - e.insert; e.insert && (Tt(e, i), i++, e.insert--, !(e.lookahead + e.insert <= it)););
647
+ } else if (e.lookahead + e.insert >= it) for (i = e.strstart - e.insert, e.ins_h = e.window[i], e.ins_h = Y(e, e.ins_h, e.window[i + 1]); e.insert && (Tt(e, i), i++, e.insert--, !(e.lookahead + e.insert < it)););
648
+ } while (e.lookahead < ot && e.strm.avail_in !== 0);
649
649
  }, Nt = (e, t) => {
650
650
  let n = e.pending_buf_size - 5 > e.w_size ? e.w_size : e.pending_buf_size - 5, r, i, a, o = 0, s = e.strm.avail_in;
651
651
  do {
652
- if (r = 65535, a = e.bi_valid + 42 >> 3, e.strm.avail_out < a || (a = e.strm.avail_out - a, i = e.strstart - e.block_start, r > i + e.strm.avail_in && (r = i + e.strm.avail_in), r > a && (r = a), r < n && (r === 0 && t !== Be || t === Re || r !== i + e.strm.avail_in))) break;
653
- o = +(t === Be && r === i + e.strm.avail_in), Pe(e, 0, 0, o), e.pending_buf[e.pending - 4] = r, e.pending_buf[e.pending - 3] = r >> 8, e.pending_buf[e.pending - 2] = ~r, e.pending_buf[e.pending - 1] = ~r >> 8, Dt(e.strm), i && (i > r && (i = r), 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, r -= i), r && (At(e.strm, e.strm.output, e.strm.next_out, r), e.strm.next_out += r, e.strm.avail_out -= r, e.strm.total_out += r);
652
+ if (r = 65535, a = e.bi_valid + 42 >> 3, e.strm.avail_out < a || (a = e.strm.avail_out - a, i = e.strstart - e.block_start, r > i + e.strm.avail_in && (r = i + e.strm.avail_in), r > a && (r = a), r < n && (r === 0 && t !== ze || t === Le || r !== i + e.strm.avail_in))) break;
653
+ o = +(t === ze && r === i + e.strm.avail_in), Ne(e, 0, 0, o), e.pending_buf[e.pending - 4] = r, e.pending_buf[e.pending - 3] = r >> 8, e.pending_buf[e.pending - 2] = ~r, e.pending_buf[e.pending - 1] = ~r >> 8, Et(e.strm), i && (i > r && (i = r), 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, r -= i), r && (At(e.strm, e.strm.output, e.strm.next_out, r), e.strm.next_out += r, e.strm.avail_out -= r, e.strm.total_out += r);
654
654
  } while (o === 0);
655
- 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 ? bt : t !== Re && t !== Be && e.strm.avail_in === 0 && e.strstart === e.block_start ? vt : (a = e.window_size - e.strstart, e.strm.avail_in > a && 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++, a += e.w_size, e.insert > e.strstart && (e.insert = e.strstart)), a > e.strm.avail_in && (a = e.strm.avail_in), a && (At(e.strm, e.window, e.strstart, a), e.strstart += a, e.insert += a > e.w_size - e.insert ? e.w_size - e.insert : a), e.high_water < e.strstart && (e.high_water = e.strstart), a = e.bi_valid + 42 >> 3, a = e.pending_buf_size - a > 65535 ? 65535 : e.pending_buf_size - a, n = a > e.w_size ? e.w_size : a, i = e.strstart - e.block_start, (i >= n || (i || t === Be) && t !== Re && e.strm.avail_in === 0 && i <= a) && (r = i > a ? a : i, o = +(t === Be && e.strm.avail_in === 0 && r === i), Pe(e, e.block_start, r, o), e.block_start += r, Dt(e.strm)), o ? yt : _t);
655
+ 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 ? yt : t !== Le && t !== ze && e.strm.avail_in === 0 && e.strstart === e.block_start ? _t : (a = e.window_size - e.strstart, e.strm.avail_in > a && 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++, a += e.w_size, e.insert > e.strstart && (e.insert = e.strstart)), a > e.strm.avail_in && (a = e.strm.avail_in), a && (At(e.strm, e.window, e.strstart, a), e.strstart += a, e.insert += a > e.w_size - e.insert ? e.w_size - e.insert : a), e.high_water < e.strstart && (e.high_water = e.strstart), a = e.bi_valid + 42 >> 3, a = e.pending_buf_size - a > 65535 ? 65535 : e.pending_buf_size - a, n = a > e.w_size ? e.w_size : a, i = e.strstart - e.block_start, (i >= n || (i || t === ze) && t !== Le && e.strm.avail_in === 0 && i <= a) && (r = i > a ? a : i, o = +(t === ze && e.strm.avail_in === 0 && r === i), Ne(e, e.block_start, r, o), e.block_start += r, Et(e.strm)), o ? vt : gt);
656
656
  }, Pt = (e, t) => {
657
657
  let n, r;
658
658
  for (;;) {
659
- if (e.lookahead < st) {
660
- if (Mt(e), e.lookahead < st && t === Re) return _t;
659
+ if (e.lookahead < ot) {
660
+ if (Mt(e), e.lookahead < ot && t === Le) return gt;
661
661
  if (e.lookahead === 0) break;
662
662
  }
663
- if (n = 0, e.lookahead >= at && (n = Et(e, e.strstart)), n !== 0 && e.strstart - n <= e.w_size - st && (e.match_length = jt(e, n)), e.match_length >= at) {
664
- if (r = Ie(e, e.strstart - e.match_start, e.match_length - at), e.lookahead -= e.match_length, e.match_length <= e.max_lazy_match && e.lookahead >= at) {
663
+ if (n = 0, e.lookahead >= it && (n = Tt(e, e.strstart)), n !== 0 && e.strstart - n <= e.w_size - ot && (e.match_length = jt(e, n)), e.match_length >= it) {
664
+ if (r = Fe(e, e.strstart - e.match_start, e.match_length - it), e.lookahead -= e.match_length, e.match_length <= e.max_lazy_match && e.lookahead >= it) {
665
665
  e.match_length--;
666
666
  do
667
- e.strstart++, n = Et(e, e.strstart);
667
+ e.strstart++, n = Tt(e, e.strstart);
668
668
  while (--e.match_length !== 0);
669
669
  e.strstart++;
670
- } else e.strstart += e.match_length, e.match_length = 0, e.legacy_hash && (e.ins_h = e.window[e.strstart], e.ins_h = J(e, e.ins_h, e.window[e.strstart + 1]));
671
- } else r = Ie(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++;
672
- if (r && (Ot(e, !1), e.strm.avail_out === 0)) return _t;
670
+ } else e.strstart += e.match_length, e.match_length = 0, e.legacy_hash && (e.ins_h = e.window[e.strstart], e.ins_h = Y(e, e.ins_h, e.window[e.strstart + 1]));
671
+ } else r = Fe(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++;
672
+ if (r && (Dt(e, !1), e.strm.avail_out === 0)) return gt;
673
673
  }
674
- return e.insert = e.strstart < 2 ? e.strstart : 2, t === Be ? (Ot(e, !0), e.strm.avail_out === 0 ? yt : bt) : e.sym_next && (Ot(e, !1), e.strm.avail_out === 0) ? _t : vt;
674
+ return e.insert = e.strstart < 2 ? e.strstart : 2, t === ze ? (Dt(e, !0), e.strm.avail_out === 0 ? vt : yt) : e.sym_next && (Dt(e, !1), e.strm.avail_out === 0) ? gt : _t;
675
675
  }, Ft = (e, t) => {
676
676
  let n, r, i;
677
677
  for (;;) {
678
- if (e.lookahead < st) {
679
- if (Mt(e), e.lookahead < st && t === Re) return _t;
678
+ if (e.lookahead < ot) {
679
+ if (Mt(e), e.lookahead < ot && t === Le) return gt;
680
680
  if (e.lookahead === 0) break;
681
681
  }
682
- if (n = 0, e.lookahead >= at && (n = Et(e, e.strstart)), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = 2, n !== 0 && e.prev_length < e.max_lazy_match && e.strstart - n <= e.w_size - st && (e.match_length = jt(e, n), e.match_length <= 5 && (e.strategy === Je || e.match_length === at && e.strstart - e.match_start > 4096) && (e.match_length = 2)), e.prev_length >= at && e.match_length <= e.prev_length) {
683
- i = e.strstart + e.lookahead - at, r = Ie(e, e.strstart - 1 - e.prev_match, e.prev_length - at), e.lookahead -= e.prev_length - 1, e.prev_length -= 2;
682
+ if (n = 0, e.lookahead >= it && (n = Tt(e, e.strstart)), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = 2, n !== 0 && e.prev_length < e.max_lazy_match && e.strstart - n <= e.w_size - ot && (e.match_length = jt(e, n), e.match_length <= 5 && (e.strategy === qe || e.match_length === it && e.strstart - e.match_start > 4096) && (e.match_length = 2)), e.prev_length >= it && e.match_length <= e.prev_length) {
683
+ i = e.strstart + e.lookahead - it, r = Fe(e, e.strstart - 1 - e.prev_match, e.prev_length - it), e.lookahead -= e.prev_length - 1, e.prev_length -= 2;
684
684
  do
685
- ++e.strstart <= i && (n = Et(e, e.strstart));
685
+ ++e.strstart <= i && (n = Tt(e, e.strstart));
686
686
  while (--e.prev_length !== 0);
687
- if (e.match_available = 0, e.match_length = 2, e.strstart++, r && (Ot(e, !1), e.strm.avail_out === 0)) return _t;
687
+ if (e.match_available = 0, e.match_length = 2, e.strstart++, r && (Dt(e, !1), e.strm.avail_out === 0)) return gt;
688
688
  } else if (e.match_available) {
689
- if (r = Ie(e, 0, e.window[e.strstart - 1]), r && Ot(e, !1), e.strstart++, e.lookahead--, e.strm.avail_out === 0) return _t;
689
+ if (r = Fe(e, 0, e.window[e.strstart - 1]), r && Dt(e, !1), e.strstart++, e.lookahead--, e.strm.avail_out === 0) return gt;
690
690
  } else e.match_available = 1, e.strstart++, e.lookahead--;
691
691
  }
692
- return e.match_available &&= (r = Ie(e, 0, e.window[e.strstart - 1]), 0), e.insert = e.strstart < 2 ? e.strstart : 2, t === Be ? (Ot(e, !0), e.strm.avail_out === 0 ? yt : bt) : e.sym_next && (Ot(e, !1), e.strm.avail_out === 0) ? _t : vt;
692
+ return e.match_available &&= (r = Fe(e, 0, e.window[e.strstart - 1]), 0), e.insert = e.strstart < 2 ? e.strstart : 2, t === ze ? (Dt(e, !0), e.strm.avail_out === 0 ? vt : yt) : e.sym_next && (Dt(e, !1), e.strm.avail_out === 0) ? gt : _t;
693
693
  }, It = (e, t) => {
694
694
  let n, r, i, a, o = e.window;
695
695
  for (;;) {
696
- if (e.lookahead <= ot) {
697
- if (Mt(e), e.lookahead <= ot && t === Re) return _t;
696
+ if (e.lookahead <= at) {
697
+ if (Mt(e), e.lookahead <= at && t === Le) return gt;
698
698
  if (e.lookahead === 0) break;
699
699
  }
700
- if (e.match_length = 0, e.lookahead >= at && e.strstart > 0 && (i = e.strstart - 1, r = o[i], r === o[++i] && r === o[++i] && r === o[++i])) {
701
- a = e.strstart + ot;
700
+ if (e.match_length = 0, e.lookahead >= it && e.strstart > 0 && (i = e.strstart - 1, r = o[i], r === o[++i] && r === o[++i] && r === o[++i])) {
701
+ a = e.strstart + at;
702
702
  do ;
703
703
  while (r === o[++i] && r === o[++i] && r === o[++i] && r === o[++i] && r === o[++i] && r === o[++i] && r === o[++i] && r === o[++i] && i < a);
704
- e.match_length = ot - (a - i), e.match_length > e.lookahead && (e.match_length = e.lookahead);
704
+ e.match_length = at - (a - i), e.match_length > e.lookahead && (e.match_length = e.lookahead);
705
705
  }
706
- if (e.match_length >= at ? (n = Ie(e, 1, e.match_length - at), e.lookahead -= e.match_length, e.strstart += e.match_length, e.match_length = 0) : (n = Ie(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++), n && (Ot(e, !1), e.strm.avail_out === 0)) return _t;
706
+ if (e.match_length >= it ? (n = Fe(e, 1, e.match_length - it), e.lookahead -= e.match_length, e.strstart += e.match_length, e.match_length = 0) : (n = Fe(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++), n && (Dt(e, !1), e.strm.avail_out === 0)) return gt;
707
707
  }
708
- return e.insert = 0, t === Be ? (Ot(e, !0), e.strm.avail_out === 0 ? yt : bt) : e.sym_next && (Ot(e, !1), e.strm.avail_out === 0) ? _t : vt;
708
+ return e.insert = 0, t === ze ? (Dt(e, !0), e.strm.avail_out === 0 ? vt : yt) : e.sym_next && (Dt(e, !1), e.strm.avail_out === 0) ? gt : _t;
709
709
  }, Lt = (e, t) => {
710
710
  let n;
711
711
  for (;;) {
712
712
  if (e.lookahead === 0 && (Mt(e), e.lookahead === 0)) {
713
- if (t === Re) return _t;
713
+ if (t === Le) return gt;
714
714
  break;
715
715
  }
716
- if (e.match_length = 0, n = Ie(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++, n && (Ot(e, !1), e.strm.avail_out === 0)) return _t;
716
+ if (e.match_length = 0, n = Fe(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++, n && (Dt(e, !1), e.strm.avail_out === 0)) return gt;
717
717
  }
718
- return e.insert = 0, t === Be ? (Ot(e, !0), e.strm.avail_out === 0 ? yt : bt) : e.sym_next && (Ot(e, !1), e.strm.avail_out === 0) ? _t : vt;
718
+ return e.insert = 0, t === ze ? (Dt(e, !0), e.strm.avail_out === 0 ? vt : yt) : e.sym_next && (Dt(e, !1), e.strm.avail_out === 0) ? gt : _t;
719
719
  };
720
720
  function Rt(e, t, n, r, i) {
721
721
  this.good_length = e, this.max_lazy = t, this.nice_length = n, this.max_chain = r, this.func = i;
@@ -732,132 +732,132 @@ var zt = [
732
732
  new Rt(32, 128, 258, 1024, Ft),
733
733
  new Rt(32, 258, 258, 4096, Ft)
734
734
  ], Bt = (e) => {
735
- e.window_size = 2 * e.w_size, wt(e.head), e.max_lazy_match = zt[e.level].max_lazy, e.good_match = zt[e.level].good_length, e.nice_match = zt[e.level].nice_length, e.max_chain_length = zt[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = 2, e.match_available = 0, e.ins_h = 0;
735
+ e.window_size = 2 * e.w_size, Ct(e.head), e.max_lazy_match = zt[e.level].max_lazy, e.good_match = zt[e.level].good_length, e.nice_match = zt[e.level].nice_length, e.max_chain_length = zt[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = 2, e.match_available = 0, e.ins_h = 0;
736
736
  };
737
737
  function Vt() {
738
- this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = et, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.legacy_hash = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new Uint16Array(it * 2), this.dyn_dtree = /* @__PURE__ */ new Uint16Array(122), this.bl_tree = /* @__PURE__ */ new Uint16Array(78), wt(this.dyn_ltree), wt(this.dyn_dtree), wt(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = /* @__PURE__ */ new Uint16Array(16), this.heap = /* @__PURE__ */ new Uint16Array(573), wt(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = /* @__PURE__ */ new Uint16Array(573), wt(this.depth), this.sym_buf = 0, this.lit_bufsize = 0, this.sym_next = 0, this.sym_end = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
738
+ this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = $e, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.legacy_hash = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new Uint16Array(rt * 2), this.dyn_dtree = /* @__PURE__ */ new Uint16Array(122), this.bl_tree = /* @__PURE__ */ new Uint16Array(78), Ct(this.dyn_ltree), Ct(this.dyn_dtree), Ct(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = /* @__PURE__ */ new Uint16Array(16), this.heap = /* @__PURE__ */ new Uint16Array(573), Ct(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = /* @__PURE__ */ new Uint16Array(573), Ct(this.depth), this.sym_buf = 0, this.lit_bufsize = 0, this.sym_next = 0, this.sym_end = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
739
739
  }
740
740
  var Ht = (e) => {
741
741
  if (!e) return 1;
742
742
  let t = e.state;
743
- return +(!t || t.strm !== e || t.status !== lt && t.status !== ut && t.status !== dt && t.status !== ft && t.status !== pt && t.status !== mt && t.status !== ht && t.status !== gt);
743
+ return +(!t || t.strm !== e || t.status !== ct && t.status !== lt && t.status !== ut && t.status !== dt && t.status !== ft && t.status !== pt && t.status !== mt && t.status !== ht);
744
744
  }, Ut = (e) => {
745
- if (Ht(e)) return St(e, We);
746
- e.total_in = e.total_out = 0, e.data_type = $e;
745
+ if (Ht(e)) return xt(e, Ue);
746
+ e.total_in = e.total_out = 0, e.data_type = Qe;
747
747
  let t = e.state;
748
- return t.pending = 0, t.pending_out = 0, t.wrap < 0 && (t.wrap = -t.wrap), t.status = t.wrap === 2 ? ut : t.wrap ? lt : ht, e.adler = t.wrap === 2 ? 0 : 1, t.last_flush = -2, K(t), He;
748
+ return t.pending = 0, t.pending_out = 0, t.wrap < 0 && (t.wrap = -t.wrap), t.status = t.wrap === 2 ? lt : t.wrap ? ct : mt, e.adler = t.wrap === 2 ? 0 : 1, t.last_flush = -2, q(t), Ve;
749
749
  }, Wt = (e) => {
750
750
  let t = Ut(e);
751
- return t === He && Bt(e.state), t;
752
- }, Gt = (e, t) => Ht(e) || e.state.wrap !== 2 ? We : (e.state.gzhead = t, He), Kt = (e, t, n, r, i, a, o) => {
753
- if (!e) return We;
751
+ return t === Ve && Bt(e.state), t;
752
+ }, Gt = (e, t) => Ht(e) || e.state.wrap !== 2 ? Ue : (e.state.gzhead = t, Ve), Kt = (e, t, n, r, i, a, o) => {
753
+ if (!e) return Ue;
754
754
  let s = 1;
755
- if (t === qe && (t = 6), r < 0 ? (s = 0, r = -r) : r > 15 && (s = 2, r -= 16), i < 1 || i > tt || n !== et || r < 8 || r > 15 || t < 0 || t > 9 || a < 0 || a > Ze || r === 8 && s !== 1) return St(e, We);
755
+ if (t === Ke && (t = 6), r < 0 ? (s = 0, r = -r) : r > 15 && (s = 2, r -= 16), i < 1 || i > et || n !== $e || r < 8 || r > 15 || t < 0 || t > 9 || a < 0 || a > Xe || r === 8 && s !== 1) return xt(e, Ue);
756
756
  r === 8 && (r = 9);
757
757
  let c = new Vt();
758
- return e.state = c, c.strm = e, c.status = lt, c.wrap = s, c.gzhead = null, c.w_bits = r, c.w_size = 1 << c.w_bits, c.w_mask = c.w_size - 1, c.legacy_hash = +!!o, c.hash_bits = i + 7, !c.legacy_hash && c.hash_bits < 15 && (c.hash_bits = 15), c.hash_size = 1 << c.hash_bits, c.hash_mask = c.hash_size - 1, c.hash_shift = ~~((c.hash_bits + at - 1) / at), c.window = new Uint8Array(c.w_size * 2), c.head = new Uint16Array(c.hash_size), c.prev = new Uint16Array(c.w_size), c.lit_bufsize = 1 << i + 6, c.pending_buf_size = c.lit_bufsize * 4, c.pending_buf = new Uint8Array(c.pending_buf_size), c.sym_buf = c.lit_bufsize, c.sym_end = (c.lit_bufsize - 1) * 3, c.level = t, c.strategy = a, c.method = n, Wt(e);
758
+ return e.state = c, c.strm = e, c.status = ct, c.wrap = s, c.gzhead = null, c.w_bits = r, c.w_size = 1 << c.w_bits, c.w_mask = c.w_size - 1, c.legacy_hash = +!!o, c.hash_bits = i + 7, !c.legacy_hash && c.hash_bits < 15 && (c.hash_bits = 15), c.hash_size = 1 << c.hash_bits, c.hash_mask = c.hash_size - 1, c.hash_shift = ~~((c.hash_bits + it - 1) / it), c.window = new Uint8Array(c.w_size * 2), c.head = new Uint16Array(c.hash_size), c.prev = new Uint16Array(c.w_size), c.lit_bufsize = 1 << i + 6, c.pending_buf_size = c.lit_bufsize * 4, c.pending_buf = new Uint8Array(c.pending_buf_size), c.sym_buf = c.lit_bufsize, c.sym_end = (c.lit_bufsize - 1) * 3, c.level = t, c.strategy = a, c.method = n, Wt(e);
759
759
  }, qt = {
760
- deflateInit: (e, t) => Kt(e, t, et, nt, rt, Qe),
760
+ deflateInit: (e, t) => Kt(e, t, $e, tt, nt, Ze),
761
761
  deflateInit2: Kt,
762
762
  deflateReset: Wt,
763
763
  deflateResetKeep: Ut,
764
764
  deflateSetHeader: Gt,
765
765
  deflate: (e, t) => {
766
- if (Ht(e) || t > Ve || t < 0) return e ? St(e, We) : We;
766
+ if (Ht(e) || t > Be || t < 0) return e ? xt(e, Ue) : Ue;
767
767
  let n = e.state;
768
- if (!e.output || e.avail_in !== 0 && !e.input || n.status === gt && t !== Be) return St(e, e.avail_out === 0 ? Ke : We);
768
+ if (!e.output || e.avail_in !== 0 && !e.input || n.status === ht && t !== ze) return xt(e, e.avail_out === 0 ? Ge : Ue);
769
769
  let r = n.last_flush;
770
770
  if (n.last_flush = t, n.pending !== 0) {
771
- if (Dt(e), e.avail_out === 0) return n.last_flush = -1, He;
772
- } else if (e.avail_in === 0 && Ct(t) <= Ct(r) && t !== Be) return St(e, Ke);
773
- if (n.status === gt && e.avail_in !== 0) return St(e, Ke);
774
- if (n.status === lt && n.wrap === 0 && (n.status = ht), n.status === lt) {
775
- let t = et + (n.w_bits - 8 << 4) << 8, r = -1;
776
- if (r = n.strategy >= Ye || n.level < 2 ? 0 : n.level < 6 ? 1 : n.level === 6 ? 2 : 3, t |= r << 6, n.strstart !== 0 && (t |= ct), t += 31 - t % 31, kt(n, t), n.strstart !== 0 && (kt(n, e.adler >>> 16), kt(n, e.adler & 65535)), e.adler = 1, n.status = ht, Dt(e), n.pending !== 0) return n.last_flush = -1, He;
771
+ if (Et(e), e.avail_out === 0) return n.last_flush = -1, Ve;
772
+ } else if (e.avail_in === 0 && St(t) <= St(r) && t !== ze) return xt(e, Ge);
773
+ if (n.status === ht && e.avail_in !== 0) return xt(e, Ge);
774
+ if (n.status === ct && n.wrap === 0 && (n.status = mt), n.status === ct) {
775
+ let t = $e + (n.w_bits - 8 << 4) << 8, r = -1;
776
+ if (r = n.strategy >= Je || n.level < 2 ? 0 : n.level < 6 ? 1 : n.level === 6 ? 2 : 3, t |= r << 6, n.strstart !== 0 && (t |= st), t += 31 - t % 31, kt(n, t), n.strstart !== 0 && (kt(n, e.adler >>> 16), kt(n, e.adler & 65535)), e.adler = 1, n.status = mt, Et(e), n.pending !== 0) return n.last_flush = -1, Ve;
777
777
  }
778
- if (n.status === ut) {
779
- if (e.adler = 0, Y(n, 31), Y(n, 139), Y(n, 8), n.gzhead) Y(n, +!!n.gzhead.text + (n.gzhead.hcrc ? 2 : 0) + (n.gzhead.extra ? 4 : 0) + (n.gzhead.name ? 8 : 0) + (n.gzhead.comment ? 16 : 0)), Y(n, n.gzhead.time & 255), Y(n, n.gzhead.time >> 8 & 255), Y(n, n.gzhead.time >> 16 & 255), Y(n, n.gzhead.time >> 24 & 255), Y(n, n.level === 9 ? 2 : n.strategy >= Ye || n.level < 2 ? 4 : 0), Y(n, n.gzhead.os & 255), n.gzhead.extra && n.gzhead.extra.length && (Y(n, n.gzhead.extra.length & 255), Y(n, n.gzhead.extra.length >> 8 & 255)), n.gzhead.hcrc && (e.adler = je(e.adler, n.pending_buf, n.pending, 0)), n.gzindex = 0, n.status = dt;
780
- else if (Y(n, 0), Y(n, 0), Y(n, 0), Y(n, 0), Y(n, 0), Y(n, n.level === 9 ? 2 : n.strategy >= Ye || n.level < 2 ? 4 : 0), Y(n, xt), n.status = ht, Dt(e), n.pending !== 0) return n.last_flush = -1, He;
778
+ if (n.status === lt) {
779
+ if (e.adler = 0, Ot(n, 31), Ot(n, 139), Ot(n, 8), n.gzhead) Ot(n, +!!n.gzhead.text + (n.gzhead.hcrc ? 2 : 0) + (n.gzhead.extra ? 4 : 0) + (n.gzhead.name ? 8 : 0) + (n.gzhead.comment ? 16 : 0)), Ot(n, n.gzhead.time & 255), Ot(n, n.gzhead.time >> 8 & 255), Ot(n, n.gzhead.time >> 16 & 255), Ot(n, n.gzhead.time >> 24 & 255), Ot(n, n.level === 9 ? 2 : n.strategy >= Je || n.level < 2 ? 4 : 0), Ot(n, n.gzhead.os & 255), n.gzhead.extra && n.gzhead.extra.length && (Ot(n, n.gzhead.extra.length & 255), Ot(n, n.gzhead.extra.length >> 8 & 255)), n.gzhead.hcrc && (e.adler = Ae(e.adler, n.pending_buf, n.pending, 0)), n.gzindex = 0, n.status = ut;
780
+ else if (Ot(n, 0), Ot(n, 0), Ot(n, 0), Ot(n, 0), Ot(n, 0), Ot(n, n.level === 9 ? 2 : n.strategy >= Je || n.level < 2 ? 4 : 0), Ot(n, bt), n.status = mt, Et(e), n.pending !== 0) return n.last_flush = -1, Ve;
781
781
  }
782
- if (n.status === dt) {
782
+ if (n.status === ut) {
783
783
  if (n.gzhead.extra) {
784
784
  let t = n.pending, r = (n.gzhead.extra.length & 65535) - n.gzindex;
785
785
  for (; n.pending + r > n.pending_buf_size;) {
786
786
  let i = n.pending_buf_size - n.pending;
787
- if (n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex, n.gzindex + i), n.pending), n.pending = n.pending_buf_size, n.gzhead.hcrc && n.pending > t && (e.adler = je(e.adler, n.pending_buf, n.pending - t, t)), n.gzindex += i, Dt(e), n.pending !== 0) return n.last_flush = -1, He;
787
+ if (n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex, n.gzindex + i), n.pending), n.pending = n.pending_buf_size, n.gzhead.hcrc && n.pending > t && (e.adler = Ae(e.adler, n.pending_buf, n.pending - t, t)), n.gzindex += i, Et(e), n.pending !== 0) return n.last_flush = -1, Ve;
788
788
  t = 0, r -= i;
789
789
  }
790
790
  let i = new Uint8Array(n.gzhead.extra);
791
- n.pending_buf.set(i.subarray(n.gzindex, n.gzindex + r), n.pending), n.pending += r, n.gzhead.hcrc && n.pending > t && (e.adler = je(e.adler, n.pending_buf, n.pending - t, t)), n.gzindex = 0;
791
+ n.pending_buf.set(i.subarray(n.gzindex, n.gzindex + r), n.pending), n.pending += r, n.gzhead.hcrc && n.pending > t && (e.adler = Ae(e.adler, n.pending_buf, n.pending - t, t)), n.gzindex = 0;
792
792
  }
793
- n.status = ft;
793
+ n.status = dt;
794
794
  }
795
- if (n.status === ft) {
795
+ if (n.status === dt) {
796
796
  if (n.gzhead.name) {
797
797
  let t = n.pending, r;
798
798
  do {
799
799
  if (n.pending === n.pending_buf_size) {
800
- if (n.gzhead.hcrc && n.pending > t && (e.adler = je(e.adler, n.pending_buf, n.pending - t, t)), Dt(e), n.pending !== 0) return n.last_flush = -1, He;
800
+ if (n.gzhead.hcrc && n.pending > t && (e.adler = Ae(e.adler, n.pending_buf, n.pending - t, t)), Et(e), n.pending !== 0) return n.last_flush = -1, Ve;
801
801
  t = 0;
802
802
  }
803
- r = n.gzindex < n.gzhead.name.length ? n.gzhead.name.charCodeAt(n.gzindex++) & 255 : 0, Y(n, r);
803
+ r = n.gzindex < n.gzhead.name.length ? n.gzhead.name.charCodeAt(n.gzindex++) & 255 : 0, Ot(n, r);
804
804
  } while (r !== 0);
805
- n.gzhead.hcrc && n.pending > t && (e.adler = je(e.adler, n.pending_buf, n.pending - t, t)), n.gzindex = 0;
805
+ n.gzhead.hcrc && n.pending > t && (e.adler = Ae(e.adler, n.pending_buf, n.pending - t, t)), n.gzindex = 0;
806
806
  }
807
- n.status = pt;
807
+ n.status = ft;
808
808
  }
809
- if (n.status === pt) {
809
+ if (n.status === ft) {
810
810
  if (n.gzhead.comment) {
811
811
  let t = n.pending, r;
812
812
  do {
813
813
  if (n.pending === n.pending_buf_size) {
814
- if (n.gzhead.hcrc && n.pending > t && (e.adler = je(e.adler, n.pending_buf, n.pending - t, t)), Dt(e), n.pending !== 0) return n.last_flush = -1, He;
814
+ if (n.gzhead.hcrc && n.pending > t && (e.adler = Ae(e.adler, n.pending_buf, n.pending - t, t)), Et(e), n.pending !== 0) return n.last_flush = -1, Ve;
815
815
  t = 0;
816
816
  }
817
- r = n.gzindex < n.gzhead.comment.length ? n.gzhead.comment.charCodeAt(n.gzindex++) & 255 : 0, Y(n, r);
817
+ r = n.gzindex < n.gzhead.comment.length ? n.gzhead.comment.charCodeAt(n.gzindex++) & 255 : 0, Ot(n, r);
818
818
  } while (r !== 0);
819
- n.gzhead.hcrc && n.pending > t && (e.adler = je(e.adler, n.pending_buf, n.pending - t, t));
819
+ n.gzhead.hcrc && n.pending > t && (e.adler = Ae(e.adler, n.pending_buf, n.pending - t, t));
820
820
  }
821
- n.status = mt;
821
+ n.status = pt;
822
822
  }
823
- if (n.status === mt) {
823
+ if (n.status === pt) {
824
824
  if (n.gzhead.hcrc) {
825
- if (n.pending + 2 > n.pending_buf_size && (Dt(e), n.pending !== 0)) return n.last_flush = -1, He;
826
- Y(n, e.adler & 255), Y(n, e.adler >> 8 & 255), e.adler = 0;
825
+ if (n.pending + 2 > n.pending_buf_size && (Et(e), n.pending !== 0)) return n.last_flush = -1, Ve;
826
+ Ot(n, e.adler & 255), Ot(n, e.adler >> 8 & 255), e.adler = 0;
827
827
  }
828
- if (n.status = ht, Dt(e), n.pending !== 0) return n.last_flush = -1, He;
828
+ if (n.status = mt, Et(e), n.pending !== 0) return n.last_flush = -1, Ve;
829
829
  }
830
- if (e.avail_in !== 0 || n.lookahead !== 0 || t !== Re && n.status !== gt) {
831
- let r = n.level === 0 ? Nt(n, t) : n.strategy === Ye ? Lt(n, t) : n.strategy === Xe ? It(n, t) : zt[n.level].func(n, t);
832
- if ((r === yt || r === bt) && (n.status = gt), r === _t || r === yt) return e.avail_out === 0 && (n.last_flush = -1), He;
833
- if (r === vt && (t === q ? Le(n) : t !== Ve && (Pe(n, 0, 0, !1), t === ze && (wt(n.head), n.lookahead === 0 && (n.strstart = 0, n.block_start = 0, n.insert = 0))), Dt(e), e.avail_out === 0)) return n.last_flush = -1, He;
830
+ if (e.avail_in !== 0 || n.lookahead !== 0 || t !== Le && n.status !== ht) {
831
+ let r = n.level === 0 ? Nt(n, t) : n.strategy === Je ? Lt(n, t) : n.strategy === Ye ? It(n, t) : zt[n.level].func(n, t);
832
+ if ((r === vt || r === yt) && (n.status = ht), r === gt || r === vt) return e.avail_out === 0 && (n.last_flush = -1), Ve;
833
+ if (r === _t && (t === J ? Ie(n) : t !== Be && (Ne(n, 0, 0, !1), t === Re && (Ct(n.head), n.lookahead === 0 && (n.strstart = 0, n.block_start = 0, n.insert = 0))), Et(e), e.avail_out === 0)) return n.last_flush = -1, Ve;
834
834
  }
835
- return t === Be ? n.wrap <= 0 ? Ue : (n.wrap === 2 ? (Y(n, e.adler & 255), Y(n, e.adler >> 8 & 255), Y(n, e.adler >> 16 & 255), Y(n, e.adler >> 24 & 255), Y(n, e.total_in & 255), Y(n, e.total_in >> 8 & 255), Y(n, e.total_in >> 16 & 255), Y(n, e.total_in >> 24 & 255)) : (kt(n, e.adler >>> 16), kt(n, e.adler & 65535)), Dt(e), n.wrap > 0 && (n.wrap = -n.wrap), n.pending === 0 ? Ue : He) : He;
835
+ return t === ze ? n.wrap <= 0 ? He : (n.wrap === 2 ? (Ot(n, e.adler & 255), Ot(n, e.adler >> 8 & 255), Ot(n, e.adler >> 16 & 255), Ot(n, e.adler >> 24 & 255), Ot(n, e.total_in & 255), Ot(n, e.total_in >> 8 & 255), Ot(n, e.total_in >> 16 & 255), Ot(n, e.total_in >> 24 & 255)) : (kt(n, e.adler >>> 16), kt(n, e.adler & 65535)), Et(e), n.wrap > 0 && (n.wrap = -n.wrap), n.pending === 0 ? He : Ve) : Ve;
836
836
  },
837
837
  deflateEnd: (e) => {
838
- if (Ht(e)) return We;
838
+ if (Ht(e)) return Ue;
839
839
  let t = e.state.status;
840
- return e.state = null, t === ht ? St(e, Ge) : He;
840
+ return e.state = null, t === mt ? xt(e, We) : Ve;
841
841
  },
842
842
  deflateSetDictionary: (e, t) => {
843
843
  let n = t.length;
844
- if (Ht(e)) return We;
844
+ if (Ht(e)) return Ue;
845
845
  let r = e.state, i = r.wrap;
846
- if (i === 2 || i === 1 && r.status !== lt || r.lookahead) return We;
847
- if (i === 1 && (e.adler = ke(e.adler, t, n, 0)), r.wrap = 0, n >= r.w_size) {
848
- i === 0 && (wt(r.head), r.strstart = 0, r.block_start = 0, r.insert = 0);
846
+ if (i === 2 || i === 1 && r.status !== ct || r.lookahead) return Ue;
847
+ if (i === 1 && (e.adler = Oe(e.adler, t, n, 0)), r.wrap = 0, n >= r.w_size) {
848
+ i === 0 && (Ct(r.head), r.strstart = 0, r.block_start = 0, r.insert = 0);
849
849
  let e = new Uint8Array(r.w_size);
850
850
  e.set(t.subarray(n - r.w_size, n), 0), t = e, n = r.w_size;
851
851
  }
852
852
  let a = e.avail_in, o = e.next_in, s = e.input;
853
- for (e.avail_in = n, e.next_in = 0, e.input = t, Mt(r); r.lookahead >= at;) {
853
+ for (e.avail_in = n, e.next_in = 0, e.input = t, Mt(r); r.lookahead >= it;) {
854
854
  let e = r.strstart, t = r.lookahead - 2;
855
855
  do
856
- Et(r, e), e++;
856
+ Tt(r, e), e++;
857
857
  while (--t);
858
858
  r.strstart = e, r.lookahead = 2, Mt(r);
859
859
  }
860
- return r.strstart += r.lookahead, r.block_start = r.strstart, r.insert = r.lookahead, r.lookahead = 0, r.match_length = r.prev_length = 2, r.match_available = 0, e.next_in = o, e.input = s, e.avail_in = a, r.wrap = i, He;
860
+ return r.strstart += r.lookahead, r.block_start = r.strstart, r.insert = r.lookahead, r.lookahead = 0, r.match_length = r.prev_length = 2, r.match_available = 0, e.next_in = o, e.input = s, e.avail_in = a, r.wrap = i, Ve;
861
861
  },
862
862
  deflateInfo: "pako deflate (from Nodeca project)"
863
863
  }, Jt = (e, t) => Object.prototype.hasOwnProperty.call(e, t), Yt = {
@@ -915,16 +915,11 @@ var Qt = (e) => {
915
915
  continue;
916
916
  }
917
917
  let o = Zt[t];
918
- if (o > 4) {
919
- a[i++] = 65533, r += o - 1;
920
- continue;
921
- }
922
- for (t &= o === 2 ? 31 : o === 3 ? 15 : 7; o > 1 && r < n;) t = t << 6 | e[r++] & 63, o--;
923
- if (o > 1) {
924
- a[i++] = 65533;
925
- continue;
918
+ if (o > 4) a[i++] = 65533, r += o - 1;
919
+ else {
920
+ for (t &= o === 2 ? 31 : o === 3 ? 15 : 7; o > 1 && r < n;) t = t << 6 | e[r++] & 63, o--;
921
+ o > 1 ? a[i++] = 65533 : t < 65536 ? a[i++] = t : (t -= 65536, a[i++] = 55296 | t >> 10 & 1023, a[i++] = 56320 | t & 1023);
926
922
  }
927
- t < 65536 ? a[i++] = t : (t -= 65536, a[i++] = 55296 | t >> 10 & 1023, a[i++] = 56320 | t & 1023);
928
923
  }
929
924
  return $t(a, i);
930
925
  },
@@ -938,7 +933,7 @@ var Qt = (e) => {
938
933
  function tn() {
939
934
  this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
940
935
  }
941
- var nn = tn, rn = Object.prototype.toString, { Z_NO_FLUSH: an, Z_SYNC_FLUSH: on, Z_FULL_FLUSH: sn, Z_FINISH: cn, Z_OK: ln, Z_STREAM_END: un, Z_DEFAULT_COMPRESSION: dn, Z_DEFAULT_STRATEGY: fn, Z_DEFLATED: pn } = Ne, mn = {
936
+ var nn = tn, rn = Object.prototype.toString, { Z_NO_FLUSH: an, Z_SYNC_FLUSH: on, Z_FULL_FLUSH: sn, Z_FINISH: cn, Z_OK: ln, Z_STREAM_END: un, Z_DEFAULT_COMPRESSION: dn, Z_DEFAULT_STRATEGY: fn, Z_DEFLATED: pn } = Me, mn = {
942
937
  level: dn,
943
938
  method: pn,
944
939
  chunkSize: 16384,
@@ -952,31 +947,22 @@ function hn(e) {
952
947
  let t = this.options;
953
948
  t.raw && t.windowBits > 0 ? t.windowBits = -t.windowBits : t.gzip && t.windowBits > 0 && t.windowBits < 16 && (t.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new nn(), this.strm.avail_out = 0;
954
949
  let n = qt.deflateInit2(this.strm, t.level, t.method, t.windowBits, t.memLevel, t.strategy, t.legacyHash);
955
- if (n !== ln) throw Error(Me[n]);
950
+ if (n !== ln) throw Error(je[n]);
956
951
  if (t.header && qt.deflateSetHeader(this.strm, t.header), t.dictionary) {
957
952
  let e;
958
- if (e = typeof t.dictionary == "string" ? en.string2buf(t.dictionary) : rn.call(t.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(t.dictionary) : t.dictionary, n = qt.deflateSetDictionary(this.strm, e), n !== ln) throw Error(Me[n]);
953
+ if (e = typeof t.dictionary == "string" ? en.string2buf(t.dictionary) : rn.call(t.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(t.dictionary) : t.dictionary, n = qt.deflateSetDictionary(this.strm, e), n !== ln) throw Error(je[n]);
959
954
  this._dict_set = !0;
960
955
  }
961
956
  }
962
957
  hn.prototype.push = function(e, t) {
963
958
  let n = this.strm, r = this.options.chunkSize, i, a;
964
959
  if (this.ended) return !1;
965
- for (a = t === ~~t ? t : t === !0 ? cn : an, n.input = typeof e == "string" ? en.string2buf(e) : rn.call(e) === "[object ArrayBuffer]" ? new Uint8Array(e) : e, n.next_in = 0, n.avail_in = n.input.length;;) {
966
- if (n.avail_out === 0 && (n.output = new Uint8Array(r), n.next_out = 0, n.avail_out = r), (a === on || a === sn) && n.avail_out <= 6) {
967
- this.onData(n.output.subarray(0, n.next_out)), n.avail_out = 0;
968
- continue;
969
- }
960
+ for (a = t === ~~t ? t : t === !0 ? cn : an, n.input = typeof e == "string" ? en.string2buf(e) : rn.call(e) === "[object ArrayBuffer]" ? new Uint8Array(e) : e, n.next_in = 0, n.avail_in = n.input.length;;) if (n.avail_out === 0 && (n.output = new Uint8Array(r), n.next_out = 0, n.avail_out = r), (a === on || a === sn) && n.avail_out <= 6) this.onData(n.output.subarray(0, n.next_out)), n.avail_out = 0;
961
+ else {
970
962
  if (i = qt.deflate(n, a), i === un) return n.next_out > 0 && this.onData(n.output.subarray(0, n.next_out)), i = qt.deflateEnd(this.strm), this.onEnd(i), this.ended = !0, i === ln;
971
- if (n.avail_out === 0) {
972
- this.onData(n.output);
973
- continue;
974
- }
975
- if (a > 0 && n.next_out > 0) {
976
- this.onData(n.output.subarray(0, n.next_out)), n.avail_out = 0;
977
- continue;
978
- }
979
- if (n.avail_in === 0) break;
963
+ if (n.avail_out === 0) this.onData(n.output);
964
+ else if (a > 0 && n.next_out > 0) this.onData(n.output.subarray(0, n.next_out)), n.avail_out = 0;
965
+ else if (n.avail_in === 0) break;
980
966
  }
981
967
  return !0;
982
968
  }, hn.prototype.onData = function(e) {
@@ -986,7 +972,7 @@ hn.prototype.push = function(e, t) {
986
972
  };
987
973
  function gn(e, t) {
988
974
  let n = new hn(t);
989
- if (n.push(e, !0), n.err) throw n.msg || Me[n.err];
975
+ if (n.push(e, !0), n.err) throw n.msg || je[n.err];
990
976
  return n.result;
991
977
  }
992
978
  function _n(e, t) {
@@ -1000,7 +986,7 @@ var yn = {
1000
986
  deflate: gn,
1001
987
  deflateRaw: _n,
1002
988
  gzip: vn,
1003
- constants: Ne
989
+ constants: Me
1004
990
  }, bn = 16209, xn = 16191, Sn = function(e, t) {
1005
991
  let n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E = e.state;
1006
992
  n = e.next_in, w = e.input, r = n + (e.avail_in - 5), i = e.next_out, T = e.output, a = i - (t - e.avail_out), o = i + (e.avail_out - 257), s = E.dmax, c = E.wsize, l = E.whave, u = E.wnext, d = E.window, f = E.hold, p = E.bits, m = E.lencode, h = E.distcode, g = (1 << E.lenbits) - 1, _ = (1 << E.distbits) - 1;
@@ -1227,7 +1213,7 @@ var yn = {
1227
1213
  for (;;) {
1228
1214
  k = l - h, o[u] + 1 < T ? (A = 0, j = o[u]) : o[u] >= T ? (A = O[o[u] - T], j = w[o[u] - T]) : (A = 96, j = 0), y = 1 << l - h, b = 1 << m, d = b;
1229
1215
  do
1230
- b -= y, i[C + (v >> h) + b] = k << 24 | A << 16 | j | 0;
1216
+ b -= y, i[C + (v >> h) + b] = k << 24 | A << 16 | j;
1231
1217
  while (b !== 0);
1232
1218
  for (y = 1 << l - 1; v & y;) y >>= 1;
1233
1219
  if (y === 0 ? v = 0 : (v &= y - 1, v += y), u++, --E[l] === 0) {
@@ -1237,11 +1223,11 @@ var yn = {
1237
1223
  if (l > p && (v & S) !== x) {
1238
1224
  for (h === 0 && (h = p), C += d, m = l - h, g = 1 << m; m + h < f && (g -= E[m + h], !(g <= 0));) m++, g <<= 1;
1239
1225
  if (_ += 1 << m, e === Dn && _ > wn || e === On && _ > Tn) return 1;
1240
- x = v & S, i[x] = p << 24 | m << 16 | C - a | 0;
1226
+ x = v & S, i[x] = p << 24 | m << 16 | C - a;
1241
1227
  }
1242
1228
  }
1243
1229
  return v !== 0 && (i[C + v] = l - h << 24 | 4194304), s.bits = p, 0;
1244
- }, Pn = 0, Fn = 1, In = 2, { Z_FINISH: Ln, Z_BLOCK: Rn, Z_TREES: zn, Z_OK: Bn, Z_STREAM_END: Vn, Z_NEED_DICT: Hn, Z_STREAM_ERROR: Un, Z_DATA_ERROR: Wn, Z_MEM_ERROR: Gn, Z_BUF_ERROR: Kn, Z_DEFLATED: qn } = Ne, Jn = 16180, Yn = 16181, Xn = 16182, Zn = 16183, Qn = 16184, $n = 16185, er = 16186, tr = 16187, nr = 16188, rr = 16189, ir = 16190, ar = 16191, or = 16192, sr = 16193, cr = 16194, lr = 16195, ur = 16196, dr = 16197, fr = 16198, pr = 16199, mr = 16200, hr = 16201, gr = 16202, _r = 16203, vr = 16204, yr = 16205, br = 16206, xr = 16207, Sr = 16208, Cr = 16209, wr = 16210, Tr = 16211, Er = 852, Dr = 592, Or = 15, kr = (e) => (e >>> 24 & 255) + (e >>> 8 & 65280) + ((e & 65280) << 8) + ((e & 255) << 24);
1230
+ }, Pn = 0, Fn = 1, In = 2, { Z_FINISH: Ln, Z_BLOCK: Rn, Z_TREES: zn, Z_OK: Bn, Z_STREAM_END: Vn, Z_NEED_DICT: Hn, Z_STREAM_ERROR: Un, Z_DATA_ERROR: Wn, Z_MEM_ERROR: Gn, Z_BUF_ERROR: Kn, Z_DEFLATED: qn } = Me, Jn = 16180, Yn = 16181, Xn = 16182, Zn = 16183, Qn = 16184, $n = 16185, er = 16186, tr = 16187, nr = 16188, rr = 16189, ir = 16190, ar = 16191, or = 16192, sr = 16193, cr = 16194, lr = 16195, ur = 16196, dr = 16197, fr = 16198, pr = 16199, mr = 16200, hr = 16201, gr = 16202, _r = 16203, vr = 16204, yr = 16205, br = 16206, xr = 16207, Sr = 16208, Cr = 16209, wr = 16210, Tr = 16211, Er = 852, Dr = 592, Or = 15, kr = (e) => (e >>> 24 & 255) + (e >>> 8 & 65280) + ((e & 65280) << 8) + ((e & 255) << 24);
1245
1231
  function Ar() {
1246
1232
  this.strm = null, this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = /* @__PURE__ */ new Uint16Array(320), this.work = /* @__PURE__ */ new Uint16Array(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
1247
1233
  }
@@ -1324,7 +1310,7 @@ var jr = (e) => {
1324
1310
  s--, l += r[a++] << u, u += 8;
1325
1311
  }
1326
1312
  if (n.wrap & 2 && l === 35615) {
1327
- n.wbits === 0 && (n.wbits = 15), n.check = 0, T[0] = l & 255, T[1] = l >>> 8 & 255, n.check = je(n.check, T, 2, 0), l = 0, u = 0, n.mode = Yn;
1313
+ n.wbits === 0 && (n.wbits = 15), n.check = 0, T[0] = l & 255, T[1] = l >>> 8 & 255, n.check = Ae(n.check, T, 2, 0), l = 0, u = 0, n.mode = Yn;
1328
1314
  break;
1329
1315
  }
1330
1316
  if (n.head && (n.head.done = !1), !(n.wrap & 1) || (((l & 255) << 8) + (l >> 8)) % 31) {
@@ -1354,30 +1340,30 @@ var jr = (e) => {
1354
1340
  e.msg = "unknown header flags set", n.mode = Cr;
1355
1341
  break;
1356
1342
  }
1357
- n.head && (n.head.text = l >> 8 & 1), n.flags & 512 && n.wrap & 4 && (T[0] = l & 255, T[1] = l >>> 8 & 255, n.check = je(n.check, T, 2, 0)), l = 0, u = 0, n.mode = Xn;
1343
+ n.head && (n.head.text = l >> 8 & 1), n.flags & 512 && n.wrap & 4 && (T[0] = l & 255, T[1] = l >>> 8 & 255, n.check = Ae(n.check, T, 2, 0)), l = 0, u = 0, n.mode = Xn;
1358
1344
  case Xn:
1359
1345
  for (; u < 32;) {
1360
1346
  if (s === 0) break inf_leave;
1361
1347
  s--, l += r[a++] << u, u += 8;
1362
1348
  }
1363
- n.head && (n.head.time = l), n.flags & 512 && n.wrap & 4 && (T[0] = l & 255, T[1] = l >>> 8 & 255, T[2] = l >>> 16 & 255, T[3] = l >>> 24 & 255, n.check = je(n.check, T, 4, 0)), l = 0, u = 0, n.mode = Zn;
1349
+ n.head && (n.head.time = l), n.flags & 512 && n.wrap & 4 && (T[0] = l & 255, T[1] = l >>> 8 & 255, T[2] = l >>> 16 & 255, T[3] = l >>> 24 & 255, n.check = Ae(n.check, T, 4, 0)), l = 0, u = 0, n.mode = Zn;
1364
1350
  case Zn:
1365
1351
  for (; u < 16;) {
1366
1352
  if (s === 0) break inf_leave;
1367
1353
  s--, l += r[a++] << u, u += 8;
1368
1354
  }
1369
- n.head && (n.head.xflags = l & 255, n.head.os = l >> 8), n.flags & 512 && n.wrap & 4 && (T[0] = l & 255, T[1] = l >>> 8 & 255, n.check = je(n.check, T, 2, 0)), l = 0, u = 0, n.mode = Qn;
1355
+ n.head && (n.head.xflags = l & 255, n.head.os = l >> 8), n.flags & 512 && n.wrap & 4 && (T[0] = l & 255, T[1] = l >>> 8 & 255, n.check = Ae(n.check, T, 2, 0)), l = 0, u = 0, n.mode = Qn;
1370
1356
  case Qn:
1371
1357
  if (n.flags & 1024) {
1372
1358
  for (; u < 16;) {
1373
1359
  if (s === 0) break inf_leave;
1374
1360
  s--, l += r[a++] << u, u += 8;
1375
1361
  }
1376
- n.length = l, n.head && (n.head.extra_len = l), n.flags & 512 && n.wrap & 4 && (T[0] = l & 255, T[1] = l >>> 8 & 255, n.check = je(n.check, T, 2, 0)), l = 0, u = 0;
1362
+ n.length = l, n.head && (n.head.extra_len = l), n.flags & 512 && n.wrap & 4 && (T[0] = l & 255, T[1] = l >>> 8 & 255, n.check = Ae(n.check, T, 2, 0)), l = 0, u = 0;
1377
1363
  } else n.head && (n.head.extra = null);
1378
1364
  n.mode = $n;
1379
1365
  case $n:
1380
- if (n.flags & 1024 && (p = n.length, p > s && (p = s), p && (n.head && (C = n.head.extra_len - n.length, n.head.extra || (n.head.extra = new Uint8Array(n.head.extra_len)), n.head.extra.set(r.subarray(a, a + p), C)), n.flags & 512 && n.wrap & 4 && (n.check = je(n.check, r, p, a)), s -= p, a += p, n.length -= p), n.length)) break inf_leave;
1366
+ if (n.flags & 1024 && (p = n.length, p > s && (p = s), p && (n.head && (C = n.head.extra_len - n.length, n.head.extra || (n.head.extra = new Uint8Array(n.head.extra_len)), n.head.extra.set(r.subarray(a, a + p), C)), n.flags & 512 && n.wrap & 4 && (n.check = Ae(n.check, r, p, a)), s -= p, a += p, n.length -= p), n.length)) break inf_leave;
1381
1367
  n.length = 0, n.mode = er;
1382
1368
  case er:
1383
1369
  if (n.flags & 2048) {
@@ -1386,7 +1372,7 @@ var jr = (e) => {
1386
1372
  do
1387
1373
  C = r[a + p++], n.head && C && n.length < 65536 && (n.head.name += String.fromCharCode(C));
1388
1374
  while (C && p < s);
1389
- if (n.flags & 512 && n.wrap & 4 && (n.check = je(n.check, r, p, a)), s -= p, a += p, C) break inf_leave;
1375
+ if (n.flags & 512 && n.wrap & 4 && (n.check = Ae(n.check, r, p, a)), s -= p, a += p, C) break inf_leave;
1390
1376
  } else n.head && (n.head.name = null);
1391
1377
  n.length = 0, n.mode = tr;
1392
1378
  case tr:
@@ -1396,7 +1382,7 @@ var jr = (e) => {
1396
1382
  do
1397
1383
  C = r[a + p++], n.head && C && n.length < 65536 && (n.head.comment += String.fromCharCode(C));
1398
1384
  while (C && p < s);
1399
- if (n.flags & 512 && n.wrap & 4 && (n.check = je(n.check, r, p, a)), s -= p, a += p, C) break inf_leave;
1385
+ if (n.flags & 512 && n.wrap & 4 && (n.check = Ae(n.check, r, p, a)), s -= p, a += p, C) break inf_leave;
1400
1386
  } else n.head && (n.head.comment = null);
1401
1387
  n.mode = nr;
1402
1388
  case nr:
@@ -1638,7 +1624,7 @@ var jr = (e) => {
1638
1624
  if (s === 0) break inf_leave;
1639
1625
  s--, l |= r[a++] << u, u += 8;
1640
1626
  }
1641
- if (f -= c, e.total_out += f, n.total += f, n.wrap & 4 && f && (e.adler = n.check = n.flags ? je(n.check, i, f, o - f) : ke(n.check, i, f, o - f)), f = c, n.wrap & 4 && (n.flags ? l : kr(l)) !== n.check) {
1627
+ if (f -= c, e.total_out += f, n.total += f, n.wrap & 4 && f && (e.adler = n.check = n.flags ? Ae(n.check, i, f, o - f) : Oe(n.check, i, f, o - f)), f = c, n.wrap & 4 && (n.flags ? l : kr(l)) !== n.check) {
1642
1628
  e.msg = "incorrect data check", n.mode = Cr;
1643
1629
  break;
1644
1630
  }
@@ -1651,7 +1637,7 @@ var jr = (e) => {
1651
1637
  if (s === 0) break inf_leave;
1652
1638
  s--, l += r[a++] << u, u += 8;
1653
1639
  }
1654
- if (n.wrap & 4 && l !== (n.total & 4294967295)) {
1640
+ if (n.wrap & 4 && l !== (n.total | 0)) {
1655
1641
  e.msg = "incorrect length check", n.mode = Cr;
1656
1642
  break;
1657
1643
  }
@@ -1668,7 +1654,7 @@ var jr = (e) => {
1668
1654
  case Tr:
1669
1655
  default: return Un;
1670
1656
  }
1671
- return e.next_out = o, e.avail_out = c, e.next_in = a, e.avail_in = s, n.hold = l, n.bits = u, (n.wsize || f !== e.avail_out && n.mode < Cr && (n.mode < br || t !== Ln)) && Vr(e, e.output, e.next_out, f - e.avail_out), d -= e.avail_in, f -= e.avail_out, e.total_in += d, e.total_out += f, n.total += f, n.wrap & 4 && f && (e.adler = n.check = n.flags ? je(n.check, i, f, e.next_out - f) : ke(n.check, i, f, e.next_out - f)), e.data_type = n.bits + (n.last ? 64 : 0) + (n.mode === ar ? 128 : 0) + (n.mode === pr || n.mode === cr ? 256 : 0), (d === 0 && f === 0 || t === Ln) && w === Bn && (w = Kn), w;
1657
+ return e.next_out = o, e.avail_out = c, e.next_in = a, e.avail_in = s, n.hold = l, n.bits = u, (n.wsize || f !== e.avail_out && n.mode < Cr && (n.mode < br || t !== Ln)) && Vr(e, e.output, e.next_out, f - e.avail_out), d -= e.avail_in, f -= e.avail_out, e.total_in += d, e.total_out += f, n.total += f, n.wrap & 4 && f && (e.adler = n.check = n.flags ? Ae(n.check, i, f, e.next_out - f) : Oe(n.check, i, f, e.next_out - f)), e.data_type = n.bits + (n.last ? 64 : 0) + (n.mode === ar ? 128 : 0) + (n.mode === pr || n.mode === cr ? 256 : 0), (d === 0 && f === 0 || t === Ln) && w === Bn && (w = Kn), w;
1672
1658
  },
1673
1659
  inflateEnd: (e) => {
1674
1660
  if (jr(e)) return Un;
@@ -1682,14 +1668,14 @@ var jr = (e) => {
1682
1668
  },
1683
1669
  inflateSetDictionary: (e, t) => {
1684
1670
  let n = t.length, r, i, a;
1685
- return jr(e) || (r = e.state, r.wrap !== 0 && r.mode !== ir) ? Un : r.mode === ir && (i = 1, i = ke(i, t, n, 0), i !== r.check) ? Wn : (a = Vr(e, t, n, n), a ? (r.mode = wr, Gn) : (r.havedict = 1, Bn));
1671
+ return jr(e) || (r = e.state, r.wrap !== 0 && r.mode !== ir) ? Un : r.mode === ir && (i = 1, i = Oe(i, t, n, 0), i !== r.check) ? Wn : (a = Vr(e, t, n, n), a ? (r.mode = wr, Gn) : (r.havedict = 1, Bn));
1686
1672
  },
1687
1673
  inflateInfo: "pako inflate (from Nodeca project)"
1688
1674
  };
1689
1675
  function Ur() {
1690
1676
  this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1;
1691
1677
  }
1692
- var Wr = Ur, Gr = Object.prototype.toString, { Z_NO_FLUSH: Kr, Z_FINISH: qr, Z_OK: Jr, Z_STREAM_END: Yr, Z_NEED_DICT: Xr, Z_STREAM_ERROR: Zr, Z_DATA_ERROR: Qr, Z_MEM_ERROR: $r, Z_BUF_ERROR: ei } = Ne, ti = {
1678
+ var Wr = Ur, Gr = Object.prototype.toString, { Z_NO_FLUSH: Kr, Z_FINISH: qr, Z_OK: Jr, Z_STREAM_END: Yr, Z_NEED_DICT: Xr, Z_STREAM_ERROR: Zr, Z_DATA_ERROR: Qr, Z_MEM_ERROR: $r, Z_BUF_ERROR: ei } = Me, ti = {
1693
1679
  chunkSize: 65536,
1694
1680
  windowBits: 15,
1695
1681
  to: ""
@@ -1699,7 +1685,7 @@ function ni(e) {
1699
1685
  let t = this.options;
1700
1686
  t.raw && t.windowBits >= 0 && t.windowBits < 16 && (t.windowBits = -t.windowBits, t.windowBits === 0 && (t.windowBits = -15)), t.windowBits >= 0 && t.windowBits < 16 && !(e && e.windowBits) && (t.windowBits += 32), t.windowBits > 15 && t.windowBits < 48 && (t.windowBits & 15 || (t.windowBits |= 15)), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new nn(), this.strm.avail_out = 0;
1701
1687
  let n = Hr.inflateInit2(this.strm, t.windowBits);
1702
- if (n !== Jr || (this.header = new Wr(), Hr.inflateGetHeader(this.strm, this.header), t.dictionary && (typeof t.dictionary == "string" ? t.dictionary = en.string2buf(t.dictionary) : Gr.call(t.dictionary) === "[object ArrayBuffer]" && (t.dictionary = new Uint8Array(t.dictionary)), t.raw && (n = Hr.inflateSetDictionary(this.strm, t.dictionary), n !== Jr)))) throw Error(Me[n]);
1688
+ if (n !== Jr || (this.header = new Wr(), Hr.inflateGetHeader(this.strm, this.header), t.dictionary && (typeof t.dictionary == "string" ? t.dictionary = en.string2buf(t.dictionary) : Gr.call(t.dictionary) === "[object ArrayBuffer]" && (t.dictionary = new Uint8Array(t.dictionary)), t.raw && (n = Hr.inflateSetDictionary(this.strm, t.dictionary), n !== Jr)))) throw Error(je[n]);
1703
1689
  }
1704
1690
  ni.prototype.push = function(e, t) {
1705
1691
  let n = this.strm, r = this.options.chunkSize, i = this.options.dictionary, a, o, s;
@@ -1734,7 +1720,7 @@ ni.prototype.push = function(e, t) {
1734
1720
  };
1735
1721
  function ri(e, t) {
1736
1722
  let n = new ni(t);
1737
- if (n.push(e, !0), n.err) throw n.msg || Me[n.err];
1723
+ if (n.push(e, !0), n.err) throw n.msg || je[n.err];
1738
1724
  return n.result;
1739
1725
  }
1740
1726
  function ii(e, t) {
@@ -1745,7 +1731,7 @@ var ai = {
1745
1731
  inflate: ri,
1746
1732
  inflateRaw: ii,
1747
1733
  ungzip: ri,
1748
- constants: Ne
1734
+ constants: Me
1749
1735
  }, { Deflate: oi, deflate: si, deflateRaw: ci, gzip: li } = yn, { Inflate: ui, inflate: di, inflateRaw: fi, ungzip: pi } = ai, mi = ui, hi = di, gi = [];
1750
1736
  for (let e = 0; e < 256; e++) {
1751
1737
  let t = e;
@@ -2329,20 +2315,20 @@ function ia(e, t) {
2329
2315
  return new ta(e, t).decode();
2330
2316
  }
2331
2317
  //#endregion
2332
- //#region node_modules/.pnpm/jspdf@3.0.4/node_modules/jspdf/dist/jspdf.es.min.js
2318
+ //#region node_modules/.pnpm/jspdf@4.2.1/node_modules/jspdf/dist/jspdf.es.min.js
2333
2319
  var aa = /* @__PURE__ */ t({
2334
- AcroForm: () => wo,
2320
+ AcroForm: () => To,
2335
2321
  AcroFormAppearance: () => $,
2336
- AcroFormButton: () => go,
2337
- AcroFormCheckBox: () => bo,
2338
- AcroFormChoiceField: () => fo,
2339
- AcroFormComboBox: () => mo,
2340
- AcroFormEditBox: () => ho,
2341
- AcroFormListBox: () => po,
2342
- AcroFormPasswordField: () => So,
2343
- AcroFormPushButton: () => _o,
2344
- AcroFormRadioButton: () => vo,
2345
- AcroFormTextField: () => xo,
2322
+ AcroFormButton: () => _o,
2323
+ AcroFormCheckBox: () => xo,
2324
+ AcroFormChoiceField: () => po,
2325
+ AcroFormComboBox: () => ho,
2326
+ AcroFormEditBox: () => go,
2327
+ AcroFormListBox: () => mo,
2328
+ AcroFormPasswordField: () => Co,
2329
+ AcroFormPushButton: () => vo,
2330
+ AcroFormRadioButton: () => yo,
2331
+ AcroFormTextField: () => So,
2346
2332
  GState: () => Pa,
2347
2333
  ShadingPattern: () => Ia,
2348
2334
  TilingPattern: () => La,
@@ -2690,7 +2676,7 @@ function Oa(e, t) {
2690
2676
  var n = (65535 & e) + (65535 & t);
2691
2677
  return (e >> 16) + (t >> 16) + (n >> 16) << 16 | 65535 & n;
2692
2678
  }
2693
- return e + t & 4294967295;
2679
+ return e + t | 0;
2694
2680
  }
2695
2681
  function ka(e, t) {
2696
2682
  var n, r, i, a;
@@ -2843,7 +2829,7 @@ function Z(e) {
2843
2829
  a ||= "a4";
2844
2830
  var y = "compat", b = "advanced", x = y;
2845
2831
  function S() {
2846
- this.saveGraphicsState(), W(new q(Se, 0, 0, -Se, 0, vn() * Se).toString() + " cm"), this.setFontSize(this.getFontSize() / Se), u = "n", x = b;
2832
+ this.saveGraphicsState(), W(new J(Se, 0, 0, -Se, 0, bn() * Se).toString() + " cm"), this.setFontSize(this.getFontSize() / Se), u = "n", x = b;
2847
2833
  }
2848
2834
  function C() {
2849
2835
  this.restoreGraphicsState(), u = "S", x = y;
@@ -2889,7 +2875,7 @@ function Z(e) {
2889
2875
  return x === y ? e * Se : x === b ? e : void 0;
2890
2876
  }, j = function(e) {
2891
2877
  return A(function(e) {
2892
- return x === y ? vn() - e : x === b ? e : void 0;
2878
+ return x === y ? bn() - e : x === b ? e : void 0;
2893
2879
  }(e));
2894
2880
  };
2895
2881
  m.__private__.setPrecision = m.setPrecision = function(e) {
@@ -3134,7 +3120,7 @@ function Z(e) {
3134
3120
  if (Object.keys(be).indexOf(e) === -1) throw Error("Invalid arguments passed to jsPDF.setDocumentProperty");
3135
3121
  return be[e] = t;
3136
3122
  };
3137
- var xe, Se, Ce, we, Te, Ee = {}, G = {}, De = [], Oe = {}, ke = {}, Ae = {}, je = {}, Me = null, Ne = 0, K = [], Pe = new Na(m), Fe = e.hotfixes || [], Ie = {}, Le = {}, Re = [], q = function e(t, n, r, i, a, o) {
3123
+ var xe, Se, Ce, we, Te, Ee = {}, G = {}, De = [], K = {}, Oe = {}, ke = {}, Ae = {}, je = null, Me = 0, q = [], Ne = new Na(m), Pe = e.hotfixes || [], Fe = {}, Ie = {}, Le = [], J = function e(t, n, r, i, a, o) {
3138
3124
  if (!(this instanceof e)) return new e(t, n, r, i, a, o);
3139
3125
  isNaN(t) && (t = 1), isNaN(n) && (n = 0), isNaN(r) && (r = 0), isNaN(i) && (i = 1), isNaN(a) && (a = 0), isNaN(o) && (o = 0), this._matrix = [
3140
3126
  t,
@@ -3145,99 +3131,99 @@ function Z(e) {
3145
3131
  o
3146
3132
  ];
3147
3133
  };
3148
- Object.defineProperty(q.prototype, "sx", {
3134
+ Object.defineProperty(J.prototype, "sx", {
3149
3135
  get: function() {
3150
3136
  return this._matrix[0];
3151
3137
  },
3152
3138
  set: function(e) {
3153
3139
  this._matrix[0] = e;
3154
3140
  }
3155
- }), Object.defineProperty(q.prototype, "shy", {
3141
+ }), Object.defineProperty(J.prototype, "shy", {
3156
3142
  get: function() {
3157
3143
  return this._matrix[1];
3158
3144
  },
3159
3145
  set: function(e) {
3160
3146
  this._matrix[1] = e;
3161
3147
  }
3162
- }), Object.defineProperty(q.prototype, "shx", {
3148
+ }), Object.defineProperty(J.prototype, "shx", {
3163
3149
  get: function() {
3164
3150
  return this._matrix[2];
3165
3151
  },
3166
3152
  set: function(e) {
3167
3153
  this._matrix[2] = e;
3168
3154
  }
3169
- }), Object.defineProperty(q.prototype, "sy", {
3155
+ }), Object.defineProperty(J.prototype, "sy", {
3170
3156
  get: function() {
3171
3157
  return this._matrix[3];
3172
3158
  },
3173
3159
  set: function(e) {
3174
3160
  this._matrix[3] = e;
3175
3161
  }
3176
- }), Object.defineProperty(q.prototype, "tx", {
3162
+ }), Object.defineProperty(J.prototype, "tx", {
3177
3163
  get: function() {
3178
3164
  return this._matrix[4];
3179
3165
  },
3180
3166
  set: function(e) {
3181
3167
  this._matrix[4] = e;
3182
3168
  }
3183
- }), Object.defineProperty(q.prototype, "ty", {
3169
+ }), Object.defineProperty(J.prototype, "ty", {
3184
3170
  get: function() {
3185
3171
  return this._matrix[5];
3186
3172
  },
3187
3173
  set: function(e) {
3188
3174
  this._matrix[5] = e;
3189
3175
  }
3190
- }), Object.defineProperty(q.prototype, "a", {
3176
+ }), Object.defineProperty(J.prototype, "a", {
3191
3177
  get: function() {
3192
3178
  return this._matrix[0];
3193
3179
  },
3194
3180
  set: function(e) {
3195
3181
  this._matrix[0] = e;
3196
3182
  }
3197
- }), Object.defineProperty(q.prototype, "b", {
3183
+ }), Object.defineProperty(J.prototype, "b", {
3198
3184
  get: function() {
3199
3185
  return this._matrix[1];
3200
3186
  },
3201
3187
  set: function(e) {
3202
3188
  this._matrix[1] = e;
3203
3189
  }
3204
- }), Object.defineProperty(q.prototype, "c", {
3190
+ }), Object.defineProperty(J.prototype, "c", {
3205
3191
  get: function() {
3206
3192
  return this._matrix[2];
3207
3193
  },
3208
3194
  set: function(e) {
3209
3195
  this._matrix[2] = e;
3210
3196
  }
3211
- }), Object.defineProperty(q.prototype, "d", {
3197
+ }), Object.defineProperty(J.prototype, "d", {
3212
3198
  get: function() {
3213
3199
  return this._matrix[3];
3214
3200
  },
3215
3201
  set: function(e) {
3216
3202
  this._matrix[3] = e;
3217
3203
  }
3218
- }), Object.defineProperty(q.prototype, "e", {
3204
+ }), Object.defineProperty(J.prototype, "e", {
3219
3205
  get: function() {
3220
3206
  return this._matrix[4];
3221
3207
  },
3222
3208
  set: function(e) {
3223
3209
  this._matrix[4] = e;
3224
3210
  }
3225
- }), Object.defineProperty(q.prototype, "f", {
3211
+ }), Object.defineProperty(J.prototype, "f", {
3226
3212
  get: function() {
3227
3213
  return this._matrix[5];
3228
3214
  },
3229
3215
  set: function(e) {
3230
3216
  this._matrix[5] = e;
3231
3217
  }
3232
- }), Object.defineProperty(q.prototype, "rotation", { get: function() {
3218
+ }), Object.defineProperty(J.prototype, "rotation", { get: function() {
3233
3219
  return Math.atan2(this.shx, this.sx);
3234
- } }), Object.defineProperty(q.prototype, "scaleX", { get: function() {
3220
+ } }), Object.defineProperty(J.prototype, "scaleX", { get: function() {
3235
3221
  return this.decompose().scale.sx;
3236
- } }), Object.defineProperty(q.prototype, "scaleY", { get: function() {
3222
+ } }), Object.defineProperty(J.prototype, "scaleY", { get: function() {
3237
3223
  return this.decompose().scale.sy;
3238
- } }), Object.defineProperty(q.prototype, "isIdentity", { get: function() {
3224
+ } }), Object.defineProperty(J.prototype, "isIdentity", { get: function() {
3239
3225
  return this.sx === 1 && this.shy === 0 && this.shx === 0 && this.sy === 1 && this.tx === 0 && this.ty === 0;
3240
- } }), q.prototype.join = function(e) {
3226
+ } }), J.prototype.join = function(e) {
3241
3227
  return [
3242
3228
  this.sx,
3243
3229
  this.shy,
@@ -3246,65 +3232,65 @@ function Z(e) {
3246
3232
  this.tx,
3247
3233
  this.ty
3248
3234
  ].map(T).join(e);
3249
- }, q.prototype.multiply = function(e) {
3250
- return new q(e.sx * this.sx + e.shy * this.shx, e.sx * this.shy + e.shy * this.sy, e.shx * this.sx + e.sy * this.shx, e.shx * this.shy + e.sy * this.sy, e.tx * this.sx + e.ty * this.shx + this.tx, e.tx * this.shy + e.ty * this.sy + this.ty);
3251
- }, q.prototype.decompose = function() {
3235
+ }, J.prototype.multiply = function(e) {
3236
+ return new J(e.sx * this.sx + e.shy * this.shx, e.sx * this.shy + e.shy * this.sy, e.shx * this.sx + e.sy * this.shx, e.shx * this.shy + e.sy * this.sy, e.tx * this.sx + e.ty * this.shx + this.tx, e.tx * this.shy + e.ty * this.sy + this.ty);
3237
+ }, J.prototype.decompose = function() {
3252
3238
  var e = this.sx, t = this.shy, n = this.shx, r = this.sy, i = this.tx, a = this.ty, o = Math.sqrt(e * e + t * t), s = (e /= o) * n + (t /= o) * r;
3253
3239
  n -= e * s, r -= t * s;
3254
3240
  var c = Math.sqrt(n * n + r * r);
3255
3241
  return s /= c, e * (r /= c) < t * (n /= c) && (e = -e, t = -t, s = -s, o = -o), {
3256
- scale: new q(o, 0, 0, c, 0, 0),
3257
- translate: new q(1, 0, 0, 1, i, a),
3258
- rotate: new q(e, t, -t, e, 0, 0),
3259
- skew: new q(1, 0, s, 1, 0, 0)
3242
+ scale: new J(o, 0, 0, c, 0, 0),
3243
+ translate: new J(1, 0, 0, 1, i, a),
3244
+ rotate: new J(e, t, -t, e, 0, 0),
3245
+ skew: new J(1, 0, s, 1, 0, 0)
3260
3246
  };
3261
- }, q.prototype.toString = function(e) {
3247
+ }, J.prototype.toString = function(e) {
3262
3248
  return this.join(" ");
3263
- }, q.prototype.inversed = function() {
3249
+ }, J.prototype.inversed = function() {
3264
3250
  var e = this.sx, t = this.shy, n = this.shx, r = this.sy, i = this.tx, a = this.ty, o = 1 / (e * r - t * n), s = r * o, c = -t * o, l = -n * o, u = e * o;
3265
- return new q(s, c, l, u, -s * i - l * a, -c * i - u * a);
3266
- }, q.prototype.applyToPoint = function(e) {
3267
- return new sn(e.x * this.sx + e.y * this.shx + this.tx, e.x * this.shy + e.y * this.sy + this.ty);
3268
- }, q.prototype.applyToRectangle = function(e) {
3269
- var t = this.applyToPoint(e), n = this.applyToPoint(new sn(e.x + e.w, e.y + e.h));
3270
- return new cn(t.x, t.y, n.x - t.x, n.y - t.y);
3271
- }, q.prototype.clone = function() {
3251
+ return new J(s, c, l, u, -s * i - l * a, -c * i - u * a);
3252
+ }, J.prototype.applyToPoint = function(e) {
3253
+ return new ln(e.x * this.sx + e.y * this.shx + this.tx, e.x * this.shy + e.y * this.sy + this.ty);
3254
+ }, J.prototype.applyToRectangle = function(e) {
3255
+ var t = this.applyToPoint(e), n = this.applyToPoint(new ln(e.x + e.w, e.y + e.h));
3256
+ return new un(t.x, t.y, n.x - t.x, n.y - t.y);
3257
+ }, J.prototype.clone = function() {
3272
3258
  var e = this.sx, t = this.shy, n = this.shx, r = this.sy, i = this.tx, a = this.ty;
3273
- return new q(e, t, n, r, i, a);
3274
- }, m.Matrix = q;
3275
- var ze = m.matrixMult = function(e, t) {
3259
+ return new J(e, t, n, r, i, a);
3260
+ }, m.Matrix = J;
3261
+ var Re = m.matrixMult = function(e, t) {
3276
3262
  return t.multiply(e);
3277
- }, Be = new q(1, 0, 0, 1, 0, 0);
3278
- m.unitMatrix = m.identityMatrix = Be;
3279
- var Ve = function(e, t) {
3280
- if (!ke[e]) {
3281
- var n = (t instanceof Ia ? "Sh" : "P") + (Object.keys(Oe).length + 1).toString(10);
3282
- t.id = n, ke[e] = n, Oe[n] = t, Pe.publish("addPattern", t);
3263
+ }, ze = new J(1, 0, 0, 1, 0, 0);
3264
+ m.unitMatrix = m.identityMatrix = ze;
3265
+ var Be = function(e, t) {
3266
+ if (!Oe[e]) {
3267
+ var n = (t instanceof Ia ? "Sh" : "P") + (Object.keys(K).length + 1).toString(10);
3268
+ t.id = n, Oe[e] = n, K[n] = t, Ne.publish("addPattern", t);
3283
3269
  }
3284
3270
  };
3285
3271
  m.ShadingPattern = Ia, m.TilingPattern = La, m.addShadingPattern = function(e, t) {
3286
- return E("addShadingPattern()"), Ve(e, t), this;
3272
+ return E("addShadingPattern()"), Be(e, t), this;
3287
3273
  }, m.beginTilingPattern = function(e) {
3288
- E("beginTilingPattern()"), un(e.boundingBox[0], e.boundingBox[1], e.boundingBox[2] - e.boundingBox[0], e.boundingBox[3] - e.boundingBox[1], e.matrix);
3274
+ E("beginTilingPattern()"), fn(e.boundingBox[0], e.boundingBox[1], e.boundingBox[2] - e.boundingBox[0], e.boundingBox[3] - e.boundingBox[1], e.matrix);
3289
3275
  }, m.endTilingPattern = function(e, t) {
3290
- E("endTilingPattern()"), t.stream = ie[z].join("\n"), Ve(e, t), Pe.publish("endTilingPattern", t), Re.pop().restore();
3276
+ E("endTilingPattern()"), t.stream = ie[z].join("\n"), Be(e, t), Ne.publish("endTilingPattern", t), Le.pop().restore();
3291
3277
  };
3292
- var He, Ue = m.__private__.newObject = function() {
3293
- var e = We();
3294
- return Ge(e, !0), e;
3295
- }, We = m.__private__.newObjectDeferred = function() {
3278
+ var Ve, He = m.__private__.newObject = function() {
3279
+ var e = Ue();
3280
+ return We(e, !0), e;
3281
+ }, Ue = m.__private__.newObjectDeferred = function() {
3296
3282
  return V++, H[V] = function() {
3297
3283
  return ne;
3298
3284
  }, V;
3299
- }, Ge = function(e, t) {
3285
+ }, We = function(e, t) {
3300
3286
  return t = typeof t == "boolean" && t, H[e] = ne, t && W(e + " 0 obj"), e;
3301
- }, Ke = m.__private__.newAdditionalObject = function() {
3287
+ }, Ge = m.__private__.newAdditionalObject = function() {
3302
3288
  var e = {
3303
- objId: We(),
3289
+ objId: Ue(),
3304
3290
  content: ""
3305
3291
  };
3306
3292
  return re.push(e), e;
3307
- }, qe = We(), Je = We(), Ye = m.__private__.decodeColorString = function(e) {
3293
+ }, Ke = Ue(), qe = Ue(), Je = m.__private__.decodeColorString = function(e) {
3308
3294
  var t = e.split(" ");
3309
3295
  if (t.length !== 2 || t[1] !== "g" && t[1] !== "G") t.length !== 5 || t[4] !== "k" && t[4] !== "K" || (t = [
3310
3296
  (1 - t[0]) * (1 - t[3]),
@@ -3323,7 +3309,7 @@ function Z(e) {
3323
3309
  }
3324
3310
  for (var r = "#", i = 0; i < 3; i++) r += ("0" + Math.floor(255 * parseFloat(t[i])).toString(16)).slice(-2);
3325
3311
  return r;
3326
- }, Xe = m.__private__.encodeColorString = function(e) {
3312
+ }, Ye = m.__private__.encodeColorString = function(e) {
3327
3313
  var t;
3328
3314
  typeof e == "string" && (e = { ch1: e });
3329
3315
  var n = e.ch1, i = e.ch2, a = e.ch3, o = e.ch4, s = e.pdfColorType === "draw" ? [
@@ -3388,10 +3374,10 @@ function Z(e) {
3388
3374
  s[2]
3389
3375
  ].join(" ");
3390
3376
  return t;
3391
- }, Ze = m.__private__.getFilters = function() {
3377
+ }, Xe = m.__private__.getFilters = function() {
3392
3378
  return s;
3393
- }, Qe = m.__private__.putStream = function(e) {
3394
- var t = (e ||= {}).data || "", n = e.filters || Ze(), r = e.alreadyAppliedFilters || [], i = e.addLength1 || !1, a = t.length, o = e.objectId, s = function(e) {
3379
+ }, Ze = m.__private__.putStream = function(e) {
3380
+ var t = (e ||= {}).data || "", n = e.filters || Xe(), r = e.alreadyAppliedFilters || [], i = e.addLength1 || !1, a = t.length, o = e.objectId, s = function(e) {
3395
3381
  return e;
3396
3382
  };
3397
3383
  if (d !== null && o === void 0) throw Error("ObjectId must be passed to putStream for file encryption");
@@ -3427,50 +3413,50 @@ function Z(e) {
3427
3413
  W("<<");
3428
3414
  for (var h = 0; h < l.length; h++) W("/" + l[h].key + " " + l[h].value);
3429
3415
  W(">>"), c.data.length !== 0 && (W("stream"), W(s(c.data)), W("endstream"));
3430
- }, $e = m.__private__.putPage = function(e) {
3416
+ }, Qe = m.__private__.putPage = function(e) {
3431
3417
  var t = e.number, n = e.data, r = e.objId, i = e.contentsObjId;
3432
- Ge(r, !0), W("<</Type /Page"), W("/Parent " + e.rootDictionaryObjId + " 0 R"), W("/Resources " + e.resourceDictionaryObjId + " 0 R"), W("/MediaBox [" + parseFloat(T(e.mediaBox.bottomLeftX)) + " " + parseFloat(T(e.mediaBox.bottomLeftY)) + " " + T(e.mediaBox.topRightX) + " " + T(e.mediaBox.topRightY) + "]"), e.cropBox !== null && W("/CropBox [" + T(e.cropBox.bottomLeftX) + " " + T(e.cropBox.bottomLeftY) + " " + T(e.cropBox.topRightX) + " " + T(e.cropBox.topRightY) + "]"), e.bleedBox !== null && W("/BleedBox [" + T(e.bleedBox.bottomLeftX) + " " + T(e.bleedBox.bottomLeftY) + " " + T(e.bleedBox.topRightX) + " " + T(e.bleedBox.topRightY) + "]"), e.trimBox !== null && W("/TrimBox [" + T(e.trimBox.bottomLeftX) + " " + T(e.trimBox.bottomLeftY) + " " + T(e.trimBox.topRightX) + " " + T(e.trimBox.topRightY) + "]"), e.artBox !== null && W("/ArtBox [" + T(e.artBox.bottomLeftX) + " " + T(e.artBox.bottomLeftY) + " " + T(e.artBox.topRightX) + " " + T(e.artBox.topRightY) + "]"), typeof e.userUnit == "number" && e.userUnit !== 1 && W("/UserUnit " + e.userUnit), Pe.publish("putPage", {
3418
+ We(r, !0), W("<</Type /Page"), W("/Parent " + e.rootDictionaryObjId + " 0 R"), W("/Resources " + e.resourceDictionaryObjId + " 0 R"), W("/MediaBox [" + parseFloat(T(e.mediaBox.bottomLeftX)) + " " + parseFloat(T(e.mediaBox.bottomLeftY)) + " " + T(e.mediaBox.topRightX) + " " + T(e.mediaBox.topRightY) + "]"), e.cropBox !== null && W("/CropBox [" + T(e.cropBox.bottomLeftX) + " " + T(e.cropBox.bottomLeftY) + " " + T(e.cropBox.topRightX) + " " + T(e.cropBox.topRightY) + "]"), e.bleedBox !== null && W("/BleedBox [" + T(e.bleedBox.bottomLeftX) + " " + T(e.bleedBox.bottomLeftY) + " " + T(e.bleedBox.topRightX) + " " + T(e.bleedBox.topRightY) + "]"), e.trimBox !== null && W("/TrimBox [" + T(e.trimBox.bottomLeftX) + " " + T(e.trimBox.bottomLeftY) + " " + T(e.trimBox.topRightX) + " " + T(e.trimBox.topRightY) + "]"), e.artBox !== null && W("/ArtBox [" + T(e.artBox.bottomLeftX) + " " + T(e.artBox.bottomLeftY) + " " + T(e.artBox.topRightX) + " " + T(e.artBox.topRightY) + "]"), typeof e.userUnit == "number" && e.userUnit !== 1 && W("/UserUnit " + e.userUnit), Ne.publish("putPage", {
3433
3419
  objId: r,
3434
- pageContext: K[t],
3420
+ pageContext: q[t],
3435
3421
  pageNumber: t,
3436
3422
  page: n
3437
3423
  }), W("/Contents " + i + " 0 R"), W(">>"), W("endobj");
3438
3424
  var a = n.join("\n");
3439
- return x === b && (a += "\nQ"), Ge(i, !0), Qe({
3425
+ return x === b && (a += "\nQ"), We(i, !0), Ze({
3440
3426
  data: a,
3441
- filters: Ze(),
3427
+ filters: Xe(),
3442
3428
  objectId: i
3443
3429
  }), W("endobj"), r;
3444
- }, et = m.__private__.putPages = function() {
3430
+ }, $e = m.__private__.putPages = function() {
3445
3431
  var e, t, n = [];
3446
- for (e = 1; e <= Ne; e++) K[e].objId = We(), K[e].contentsObjId = We();
3447
- for (e = 1; e <= Ne; e++) n.push($e({
3432
+ for (e = 1; e <= Me; e++) q[e].objId = Ue(), q[e].contentsObjId = Ue();
3433
+ for (e = 1; e <= Me; e++) n.push(Qe({
3448
3434
  number: e,
3449
3435
  data: ie[e],
3450
- objId: K[e].objId,
3451
- contentsObjId: K[e].contentsObjId,
3452
- mediaBox: K[e].mediaBox,
3453
- cropBox: K[e].cropBox,
3454
- bleedBox: K[e].bleedBox,
3455
- trimBox: K[e].trimBox,
3456
- artBox: K[e].artBox,
3457
- userUnit: K[e].userUnit,
3458
- rootDictionaryObjId: qe,
3459
- resourceDictionaryObjId: Je
3436
+ objId: q[e].objId,
3437
+ contentsObjId: q[e].contentsObjId,
3438
+ mediaBox: q[e].mediaBox,
3439
+ cropBox: q[e].cropBox,
3440
+ bleedBox: q[e].bleedBox,
3441
+ trimBox: q[e].trimBox,
3442
+ artBox: q[e].artBox,
3443
+ userUnit: q[e].userUnit,
3444
+ rootDictionaryObjId: Ke,
3445
+ resourceDictionaryObjId: qe
3460
3446
  }));
3461
- Ge(qe, !0), W("<</Type /Pages");
3447
+ We(Ke, !0), W("<</Type /Pages");
3462
3448
  var r = "/Kids [";
3463
- for (t = 0; t < Ne; t++) r += n[t] + " 0 R ";
3464
- W(r + "]"), W("/Count " + Ne), W(">>"), W("endobj"), Pe.publish("postPutPages");
3465
- }, tt = function(e) {
3466
- Pe.publish("putFont", {
3449
+ for (t = 0; t < Me; t++) r += n[t] + " 0 R ";
3450
+ W(r + "]"), W("/Count " + Me), W(">>"), W("endobj"), Ne.publish("postPutPages");
3451
+ }, et = function(e) {
3452
+ Ne.publish("putFont", {
3467
3453
  font: e,
3468
3454
  out: W,
3469
- newObject: Ue,
3470
- putStream: Qe
3471
- }), !0 !== e.isAlreadyPutted && (e.objectNumber = Ue(), W("<<"), W("/Type /Font"), W("/BaseFont /" + Ma(e.postScriptName)), W("/Subtype /Type1"), typeof e.encoding == "string" && W("/Encoding /" + e.encoding), W("/FirstChar 32"), W("/LastChar 255"), W(">>"), W("endobj"));
3472
- }, nt = function(e) {
3473
- e.objectNumber = Ue();
3455
+ newObject: He,
3456
+ putStream: Ze
3457
+ }), !0 !== e.isAlreadyPutted && (e.objectNumber = He(), W("<<"), W("/Type /Font"), W("/BaseFont /" + Ma(e.postScriptName)), W("/Subtype /Type1"), typeof e.encoding == "string" && W("/Encoding /" + e.encoding), W("/FirstChar 32"), W("/LastChar 255"), W(">>"), W("endobj"));
3458
+ }, tt = function(e) {
3459
+ e.objectNumber = He();
3474
3460
  var t = [];
3475
3461
  t.push({
3476
3462
  key: "Type",
@@ -3489,14 +3475,14 @@ function Z(e) {
3489
3475
  }), t.push({
3490
3476
  key: "Matrix",
3491
3477
  value: "[" + e.matrix.toString() + "]"
3492
- }), Qe({
3478
+ }), Ze({
3493
3479
  data: e.pages[1].join("\n"),
3494
3480
  additionalKeyValues: t,
3495
3481
  objectId: e.objectNumber
3496
3482
  }), W("endobj");
3497
- }, rt = function(e, t) {
3483
+ }, nt = function(e, t) {
3498
3484
  t ||= 21;
3499
- var n = Ue(), r = function(e, t) {
3485
+ var n = He(), r = function(e, t) {
3500
3486
  var n, r = [], i = 1 / (t - 1);
3501
3487
  for (n = 0; n < 1; n += i) r.push(n);
3502
3488
  if (r.push(1), e[0].offset != 0) {
@@ -3538,16 +3524,16 @@ function Z(e) {
3538
3524
  }), i.push({
3539
3525
  key: "Decode",
3540
3526
  value: "[0.0 1.0 0.0 1.0 0.0 1.0]"
3541
- }), Qe({
3527
+ }), Ze({
3542
3528
  data: r,
3543
3529
  additionalKeyValues: i,
3544
3530
  alreadyAppliedFilters: ["/ASCIIHexDecode"],
3545
3531
  objectId: n
3546
- }), W("endobj"), e.objectNumber = Ue(), W("<< /ShadingType " + e.type), W("/ColorSpace /DeviceRGB");
3532
+ }), W("endobj"), e.objectNumber = He(), W("<< /ShadingType " + e.type), W("/ColorSpace /DeviceRGB");
3547
3533
  var a = "/Coords [" + T(parseFloat(e.coords[0])) + " " + T(parseFloat(e.coords[1])) + " ";
3548
3534
  e.type === 2 ? a += T(parseFloat(e.coords[2])) + " " + T(parseFloat(e.coords[3])) : a += T(parseFloat(e.coords[2])) + " " + T(parseFloat(e.coords[3])) + " " + T(parseFloat(e.coords[4])) + " " + T(parseFloat(e.coords[5])), W(a += "]"), e.matrix && W("/Matrix [" + e.matrix.toString() + "]"), W("/Function " + n + " 0 R"), W("/Extend [true true]"), W(">>"), W("endobj");
3549
- }, it = function(e, t) {
3550
- var n = We(), r = Ue();
3535
+ }, rt = function(e, t) {
3536
+ var n = Ue(), r = He();
3551
3537
  t.push({
3552
3538
  resourcesOid: n,
3553
3539
  objectOid: r
@@ -3580,45 +3566,45 @@ function Z(e) {
3580
3566
  }), e.matrix && i.push({
3581
3567
  key: "Matrix",
3582
3568
  value: "[" + e.matrix.toString() + "]"
3583
- }), Qe({
3569
+ }), Ze({
3584
3570
  data: e.stream,
3585
3571
  additionalKeyValues: i,
3586
3572
  objectId: e.objectNumber
3587
3573
  }), W("endobj");
3588
- }, at = function(e) {
3589
- for (var t in e.objectNumber = Ue(), W("<<"), e) switch (t) {
3574
+ }, it = function(e) {
3575
+ for (var t in e.objectNumber = He(), W("<<"), e) switch (t) {
3590
3576
  case "opacity":
3591
3577
  W("/ca " + O(e[t]));
3592
3578
  break;
3593
3579
  case "stroke-opacity": W("/CA " + O(e[t]));
3594
3580
  }
3595
3581
  W(">>"), W("endobj");
3596
- }, ot = function(e) {
3597
- Ge(e.resourcesOid, !0), W("<<"), W("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"), function() {
3582
+ }, at = function(e) {
3583
+ We(e.resourcesOid, !0), W("<<"), W("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"), function() {
3598
3584
  for (var e in W("/Font <<"), Ee) Ee.hasOwnProperty(e) && (!1 === f || !0 === f && p.hasOwnProperty(e)) && W("/" + e + " " + Ee[e].objectNumber + " 0 R");
3599
3585
  W(">>");
3600
3586
  }(), function() {
3601
- if (Object.keys(Oe).length > 0) {
3602
- for (var e in W("/Shading <<"), Oe) Oe.hasOwnProperty(e) && Oe[e] instanceof Ia && Oe[e].objectNumber >= 0 && W("/" + e + " " + Oe[e].objectNumber + " 0 R");
3603
- Pe.publish("putShadingPatternDict"), W(">>");
3587
+ if (Object.keys(K).length > 0) {
3588
+ for (var e in W("/Shading <<"), K) K.hasOwnProperty(e) && K[e] instanceof Ia && K[e].objectNumber >= 0 && W("/" + e + " " + K[e].objectNumber + " 0 R");
3589
+ Ne.publish("putShadingPatternDict"), W(">>");
3604
3590
  }
3605
3591
  }(), function(e) {
3606
- if (Object.keys(Oe).length > 0) {
3607
- for (var t in W("/Pattern <<"), Oe) Oe.hasOwnProperty(t) && Oe[t] instanceof m.TilingPattern && Oe[t].objectNumber >= 0 && Oe[t].objectNumber < e && W("/" + t + " " + Oe[t].objectNumber + " 0 R");
3608
- Pe.publish("putTilingPatternDict"), W(">>");
3592
+ if (Object.keys(K).length > 0) {
3593
+ for (var t in W("/Pattern <<"), K) K.hasOwnProperty(t) && K[t] instanceof m.TilingPattern && K[t].objectNumber >= 0 && K[t].objectNumber < e && W("/" + t + " " + K[t].objectNumber + " 0 R");
3594
+ Ne.publish("putTilingPatternDict"), W(">>");
3609
3595
  }
3610
3596
  }(e.objectOid), function() {
3611
- if (Object.keys(Ae).length > 0) {
3612
- for (var e in W("/ExtGState <<"), Ae) Ae.hasOwnProperty(e) && Ae[e].objectNumber >= 0 && W("/" + e + " " + Ae[e].objectNumber + " 0 R");
3613
- Pe.publish("putGStateDict"), W(">>");
3597
+ if (Object.keys(ke).length > 0) {
3598
+ for (var e in W("/ExtGState <<"), ke) ke.hasOwnProperty(e) && ke[e].objectNumber >= 0 && W("/" + e + " " + ke[e].objectNumber + " 0 R");
3599
+ Ne.publish("putGStateDict"), W(">>");
3614
3600
  }
3615
3601
  }(), function() {
3616
- for (var e in W("/XObject <<"), Ie) Ie.hasOwnProperty(e) && Ie[e].objectNumber >= 0 && W("/" + e + " " + Ie[e].objectNumber + " 0 R");
3617
- Pe.publish("putXobjectDict"), W(">>");
3602
+ for (var e in W("/XObject <<"), Fe) Fe.hasOwnProperty(e) && Fe[e].objectNumber >= 0 && W("/" + e + " " + Fe[e].objectNumber + " 0 R");
3603
+ Ne.publish("putXobjectDict"), W(">>");
3618
3604
  }(), W(">>"), W("endobj");
3619
- }, st = function(e) {
3605
+ }, ot = function(e) {
3620
3606
  G[e.fontName] = G[e.fontName] || {}, G[e.fontName][e.fontStyle] = e.id;
3621
- }, ct = function(e, t, n, r, i) {
3607
+ }, st = function(e, t, n, r, i) {
3622
3608
  var a = {
3623
3609
  id: "F" + (Object.keys(Ee).length + 1).toString(10),
3624
3610
  postScriptName: e,
@@ -3628,11 +3614,11 @@ function Z(e) {
3628
3614
  isStandardFont: i || !1,
3629
3615
  metadata: {}
3630
3616
  };
3631
- return Pe.publish("addFont", {
3617
+ return Ne.publish("addFont", {
3632
3618
  font: a,
3633
3619
  instance: this
3634
- }), Ee[a.id] = a, st(a), a.id;
3635
- }, lt = m.__private__.pdfEscape = m.pdfEscape = function(e, t) {
3620
+ }), Ee[a.id] = a, ot(a), a.id;
3621
+ }, ct = m.__private__.pdfEscape = m.pdfEscape = function(e, t) {
3636
3622
  return function(e, t) {
3637
3623
  var n, r, i = (t ||= {}).sourceEncoding || "Unicode", a, o = t.outputEncoding, s, c, l, u;
3638
3624
  if ((t.autoencode || o) && Ee[xe].metadata && Ee[xe].metadata[i] && Ee[xe].metadata[i].encoding && (a = Ee[xe].metadata[i].encoding, !o && Ee[xe].encoding && (o = Ee[xe].encoding), !o && a.codePages && (o = a.codePages[0]), typeof o == "string" && (o = a[o]), o)) {
@@ -3647,8 +3633,8 @@ function Z(e) {
3647
3633
  }
3648
3634
  return String.fromCharCode.apply(void 0, s);
3649
3635
  }(e, t).replace(/\\/g, "\\\\").replace(/\(/g, "\\(").replace(/\)/g, "\\)");
3650
- }, ut = m.__private__.beginPage = function(e) {
3651
- ie[++Ne] = [], K[Ne] = {
3636
+ }, lt = m.__private__.beginPage = function(e) {
3637
+ ie[++Me] = [], q[Me] = {
3652
3638
  objId: 0,
3653
3639
  contentsObjId: 0,
3654
3640
  userUnit: Number(c),
@@ -3662,8 +3648,8 @@ function Z(e) {
3662
3648
  topRightX: Number(e[0]),
3663
3649
  topRightY: Number(e[1])
3664
3650
  }
3665
- }, pt(Ne), se(ie[z]);
3666
- }, dt = function(e, t) {
3651
+ }, ft(Me), se(ie[z]);
3652
+ }, ut = function(e, t) {
3667
3653
  var r, i, o;
3668
3654
  switch (n = t || n, typeof e == "string" && (r = v(e.toLowerCase()), Array.isArray(r) && (i = r[0], o = r[1])), Array.isArray(e) && (i = e[0] * Se, o = e[1] * Se), isNaN(i) && (i = a[0], o = a[1]), (i > 14400 || o > 14400) && (sa.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"), i = Math.min(14400, i), o = Math.min(14400, o)), a = [i, o], n.substr(0, 1)) {
3669
3655
  case "l":
@@ -3671,25 +3657,25 @@ function Z(e) {
3671
3657
  break;
3672
3658
  case "p": i > o && (a = [o, i]);
3673
3659
  }
3674
- ut(a), Ut(Vt), W(Zt), rn !== 0 && W(rn + " J"), an !== 0 && W(an + " j"), Pe.publish("addPage", { pageNumber: Ne });
3660
+ lt(a), Gt(Ut), W($t), on !== 0 && W(on + " J"), sn !== 0 && W(sn + " j"), Ne.publish("addPage", { pageNumber: Me });
3661
+ }, dt = function(e) {
3662
+ e > 0 && e <= Me && (ie.splice(e, 1), q.splice(e, 1), Me--, z > Me && (z = Me), this.setPage(z));
3675
3663
  }, ft = function(e) {
3676
- e > 0 && e <= Ne && (ie.splice(e, 1), K.splice(e, 1), Ne--, z > Ne && (z = Ne), this.setPage(z));
3677
- }, pt = function(e) {
3678
- e > 0 && e <= Ne && (z = e);
3679
- }, mt = m.__private__.getNumberOfPages = m.getNumberOfPages = function() {
3664
+ e > 0 && e <= Me && (z = e);
3665
+ }, pt = m.__private__.getNumberOfPages = m.getNumberOfPages = function() {
3680
3666
  return ie.length - 1;
3681
- }, ht = function(e, t, n) {
3667
+ }, mt = function(e, t, n) {
3682
3668
  var r, i = void 0;
3683
3669
  return n ||= {}, e = e === void 0 ? Ee[xe].fontName : e, t = t === void 0 ? Ee[xe].fontStyle : t, r = e.toLowerCase(), G[r] !== void 0 && G[r][t] !== void 0 ? i = G[r][t] : G[e] !== void 0 && G[e][t] !== void 0 ? i = G[e][t] : !1 === n.disableWarning && sa.warn("Unable to look up font label for font '" + e + "', '" + t + "'. Refer to getFontList() for available fonts."), i || n.noFallback || ((i = G.times[t]) ?? (i = G.times.normal)), i;
3684
- }, gt = m.__private__.putInfo = function() {
3685
- var e = Ue(), t = function(e) {
3670
+ }, ht = m.__private__.putInfo = function() {
3671
+ var e = He(), t = function(e) {
3686
3672
  return e;
3687
3673
  };
3688
- for (var n in d !== null && (t = Tt.encryptor(e, 0)), W("<<"), W("/Producer (" + lt(t("jsPDF " + Z.version)) + ")"), be) be.hasOwnProperty(n) && be[n] && W("/" + n.substr(0, 1).toUpperCase() + n.substr(1) + " (" + lt(t(be[n])) + ")");
3689
- W("/CreationDate (" + lt(t(M)) + ")"), W(">>"), W("endobj");
3690
- }, _t = m.__private__.putCatalog = function(e) {
3691
- var t = (e ||= {}).rootDictionaryObjId || qe;
3692
- switch (Ue(), W("<<"), W("/Type /Catalog"), W("/Pages " + t + " 0 R"), fe ||= "fullwidth", fe) {
3674
+ for (var n in d !== null && (t = Tt.encryptor(e, 0)), W("<<"), W("/Producer (" + ct(t("jsPDF " + Z.version)) + ")"), be) be.hasOwnProperty(n) && be[n] && W("/" + n.substr(0, 1).toUpperCase() + n.substr(1) + " (" + ct(t(be[n])) + ")");
3675
+ W("/CreationDate (" + ct(t(M)) + ")"), W(">>"), W("endobj");
3676
+ }, gt = m.__private__.putCatalog = function(e) {
3677
+ var t = (e ||= {}).rootDictionaryObjId || Ke;
3678
+ switch (He(), W("<<"), W("/Type /Catalog"), W("/Pages " + t + " 0 R"), fe ||= "fullwidth", fe) {
3693
3679
  case "fullwidth":
3694
3680
  W("/OpenAction [3 0 R /FitH null]");
3695
3681
  break;
@@ -3719,95 +3705,112 @@ function Z(e) {
3719
3705
  break;
3720
3706
  case "tworight": W("/PageLayout /TwoColumnRight");
3721
3707
  }
3722
- he && W("/PageMode /" + he), Pe.publish("putCatalog"), W(">>"), W("endobj");
3723
- }, vt = m.__private__.putTrailer = function() {
3708
+ he && W("/PageMode /" + he), Ne.publish("putCatalog"), W(">>"), W("endobj");
3709
+ }, _t = m.__private__.putTrailer = function() {
3724
3710
  W("trailer"), W("<<"), W("/Size " + (V + 1)), W("/Root " + V + " 0 R"), W("/Info " + (V - 1) + " 0 R"), d !== null && W("/Encrypt " + Tt.oid + " 0 R"), W("/ID [ <" + N + "> <" + N + "> ]"), W(">>");
3725
- }, yt = m.__private__.putHeader = function() {
3711
+ }, vt = m.__private__.putHeader = function() {
3726
3712
  W("%PDF-" + h), W("%ºß¬à");
3727
- }, bt = m.__private__.putXRef = function() {
3713
+ }, yt = m.__private__.putXRef = function() {
3728
3714
  var e = "0000000000";
3729
3715
  W("xref"), W("0 " + (V + 1)), W("0000000000 65535 f ");
3730
3716
  for (var t = 1; t <= V; t++) typeof H[t] == "function" ? W((e + H[t]()).slice(-10) + " 00000 n ") : H[t] === void 0 ? W("0000000000 00000 n ") : W((e + H[t]).slice(-10) + " 00000 n ");
3731
- }, xt = m.__private__.buildDocument = function() {
3717
+ }, bt = m.__private__.buildDocument = function() {
3732
3718
  var e;
3733
- V = 0, ne = 0, U = [], H = [], re = [], qe = We(), Je = We(), se(U), Pe.publish("buildDocument"), yt(), et(), function() {
3734
- Pe.publish("putAdditionalObjects");
3719
+ V = 0, ne = 0, U = [], H = [], re = [], Ke = Ue(), qe = Ue(), se(U), Ne.publish("buildDocument"), vt(), $e(), function() {
3720
+ Ne.publish("putAdditionalObjects");
3735
3721
  for (var e = 0; e < re.length; e++) {
3736
3722
  var t = re[e];
3737
- Ge(t.objId, !0), W(t.content), W("endobj");
3723
+ We(t.objId, !0), W(t.content), W("endobj");
3738
3724
  }
3739
- Pe.publish("postPutAdditionalObjects");
3725
+ Ne.publish("postPutAdditionalObjects");
3740
3726
  }(), e = [], function() {
3741
- for (var e in Ee) Ee.hasOwnProperty(e) && (!1 === f || !0 === f && p.hasOwnProperty(e)) && tt(Ee[e]);
3727
+ for (var e in Ee) Ee.hasOwnProperty(e) && (!1 === f || !0 === f && p.hasOwnProperty(e)) && et(Ee[e]);
3742
3728
  }(), function() {
3743
- for (var e in Ae) Ae.hasOwnProperty(e) && at(Ae[e]);
3729
+ for (var e in ke) ke.hasOwnProperty(e) && it(ke[e]);
3744
3730
  }(), function() {
3745
- for (var e in Ie) Ie.hasOwnProperty(e) && nt(Ie[e]);
3731
+ for (var e in Fe) Fe.hasOwnProperty(e) && tt(Fe[e]);
3746
3732
  }(), function(e) {
3747
- for (var t in Oe) Oe.hasOwnProperty(t) && (Oe[t] instanceof Ia ? rt(Oe[t]) : Oe[t] instanceof La && it(Oe[t], e));
3748
- }(e), Pe.publish("putResources"), e.forEach(ot), ot({
3749
- resourcesOid: Je,
3733
+ for (var t in K) K.hasOwnProperty(t) && (K[t] instanceof Ia ? nt(K[t]) : K[t] instanceof La && rt(K[t], e));
3734
+ }(e), Ne.publish("putResources"), e.forEach(at), at({
3735
+ resourcesOid: qe,
3750
3736
  objectOid: 2 ** 53 - 1
3751
- }), Pe.publish("postPutResources"), d !== null && (Tt.oid = Ue(), W("<<"), W("/Filter /Standard"), W("/V " + Tt.v), W("/R " + Tt.r), W("/U <" + Tt.toHexString(Tt.U) + ">"), W("/O <" + Tt.toHexString(Tt.O) + ">"), W("/P " + Tt.P), W(">>"), W("endobj")), gt(), _t();
3737
+ }), Ne.publish("postPutResources"), d !== null && (Tt.oid = He(), W("<<"), W("/Filter /Standard"), W("/V " + Tt.v), W("/R " + Tt.r), W("/U <" + Tt.toHexString(Tt.U) + ">"), W("/O <" + Tt.toHexString(Tt.O) + ">"), W("/P " + Tt.P), W(">>"), W("endobj")), ht(), gt();
3752
3738
  var t = ne;
3753
- return bt(), vt(), W("startxref"), W("" + t), W("%%EOF"), se(ie[z]), U.join("\n");
3754
- }, St = m.__private__.getBlob = function(e) {
3739
+ return yt(), _t(), W("startxref"), W("" + t), W("%%EOF"), se(ie[z]), U.join("\n");
3740
+ }, xt = m.__private__.getBlob = function(e) {
3755
3741
  return new Blob([le(e)], { type: "application/pdf" });
3756
- }, Ct = m.output = m.__private__.output = (He = function(e, t) {
3742
+ }, St = function(e) {
3743
+ for (; e.firstChild;) e.removeChild(e.firstChild);
3744
+ }, Ct = function(e) {
3745
+ var t, n = e.document, r = n.documentElement, i = n.head, a = n.body;
3746
+ return i || (i = n.createElement("head"), r.appendChild(i)), a || (a = n.createElement("body"), r.appendChild(a)), St(i), St(a), (t = n.createElement("style")).appendChild(n.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")), i.appendChild(t), {
3747
+ document: n,
3748
+ body: a
3749
+ };
3750
+ }, wt = m.output = m.__private__.output = (Ve = function(e, t) {
3757
3751
  switch (typeof (t ||= {}) == "string" ? t = { filename: t } : t.filename = t.filename || "generated.pdf", e) {
3758
- case void 0: return xt();
3752
+ case void 0: return bt();
3759
3753
  case "save":
3760
3754
  m.save(t.filename);
3761
3755
  break;
3762
- case "arraybuffer": return le(xt());
3763
- case "blob": return St(xt());
3756
+ case "arraybuffer": return le(bt());
3757
+ case "blob": return xt(bt());
3764
3758
  case "bloburi":
3765
3759
  case "bloburl":
3766
- if (X.URL !== void 0 && typeof X.URL.createObjectURL == "function") return X.URL && X.URL.createObjectURL(St(xt())) || void 0;
3760
+ if (X.URL !== void 0 && typeof X.URL.createObjectURL == "function") return X.URL && X.URL.createObjectURL(xt(bt())) || void 0;
3767
3761
  sa.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");
3768
3762
  break;
3769
3763
  case "datauristring":
3770
3764
  case "dataurlstring":
3771
- var n = "", r = xt();
3765
+ var n = "", r = bt();
3772
3766
  try {
3773
3767
  n = ma(r);
3774
3768
  } catch {
3775
3769
  n = ma(unescape(encodeURIComponent(r)));
3776
3770
  }
3777
- return "data:application/pdf;filename=" + t.filename + ";base64," + n;
3771
+ return "data:application/pdf;filename=" + encodeURIComponent(t.filename) + ";base64," + n;
3778
3772
  case "pdfobjectnewwindow":
3779
3773
  if (Object.prototype.toString.call(X) === "[object Window]") {
3780
- var i = "https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js", a = " integrity=\"sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==\" crossorigin=\"anonymous\"";
3781
- t.pdfObjectUrl && (i = t.pdfObjectUrl, a = "");
3782
- var o = "<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src=\"" + i + "\"" + a + "><\/script><script >PDFObject.embed(\"" + this.output("dataurlstring") + "\", " + JSON.stringify(t) + ");<\/script></body></html>", s = X.open();
3783
- return s !== null && s.document.write(o), s;
3774
+ var i = "https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js", a = !t.pdfObjectUrl;
3775
+ a || (i = t.pdfObjectUrl);
3776
+ var o = X.open();
3777
+ if (o !== null) {
3778
+ var s = Ct(o), c = s.document.createElement("script"), l = this;
3779
+ c.src = i, a && (c.integrity = "sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==", c.crossOrigin = "anonymous"), c.onload = function() {
3780
+ o.PDFObject.embed(l.output("dataurlstring"), t);
3781
+ }, s.body.appendChild(c);
3782
+ }
3783
+ return o;
3784
3784
  }
3785
3785
  throw Error("The option pdfobjectnewwindow just works in a browser-environment.");
3786
3786
  case "pdfjsnewwindow":
3787
3787
  if (Object.prototype.toString.call(X) === "[object Window]") {
3788
- var c = "<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id=\"pdfViewer\" src=\"" + (t.pdfJsUrl || "examples/PDF.js/web/viewer.html") + "?file=&downloadName=" + t.filename + "\" width=\"500px\" height=\"400px\" /></body></html>", l = X.open();
3789
- if (l !== null) {
3790
- l.document.write(c);
3791
- var u = this;
3792
- l.document.documentElement.querySelector("#pdfViewer").onload = function() {
3793
- l.document.title = t.filename, l.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(u.output("bloburl"));
3794
- };
3788
+ var u = t.pdfJsUrl || "examples/PDF.js/web/viewer.html", d = X.open();
3789
+ if (d !== null) {
3790
+ var f = Ct(d), p = f.document.createElement("iframe"), h = u.indexOf("?") === -1 ? "?" : "&";
3791
+ l = this, p.id = "pdfViewer", p.width = "500px", p.height = "400px", p.src = u + h + "file=&downloadName=" + encodeURIComponent(t.filename), p.onload = function() {
3792
+ d.document.title = t.filename, p.contentWindow.PDFViewerApplication.open(l.output("bloburl"));
3793
+ }, f.body.appendChild(p);
3795
3794
  }
3796
- return l;
3795
+ return d;
3797
3796
  }
3798
3797
  throw Error("The option pdfjsnewwindow just works in a browser-environment.");
3799
3798
  case "dataurlnewwindow":
3800
3799
  if (Object.prototype.toString.call(X) !== "[object Window]") throw Error("The option dataurlnewwindow just works in a browser-environment.");
3801
- var d = "<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src=\"" + this.output("datauristring", t) + "\"></iframe></body></html>", f = X.open();
3802
- if (f !== null && (f.document.write(d), f.document.title = t.filename), f || typeof safari > "u") return f;
3800
+ var g = X.open();
3801
+ if (g !== null) {
3802
+ var _ = Ct(g), v = _.document.createElement("iframe");
3803
+ v.src = this.output("datauristring", t), _.body.appendChild(v), g.document.title = t.filename;
3804
+ }
3805
+ if (g || typeof safari > "u") return g;
3803
3806
  break;
3804
3807
  case "datauri":
3805
3808
  case "dataurl": return X.document.location.href = this.output("datauristring", t);
3806
3809
  default: return null;
3807
3810
  }
3808
- }, He.foo = function() {
3811
+ }, Ve.foo = function() {
3809
3812
  try {
3810
- return He.apply(this, arguments);
3813
+ return Ve.apply(this, arguments);
3811
3814
  } catch (n) {
3812
3815
  var e = n.stack || "";
3813
3816
  ~e.indexOf(" at ") && (e = e.split(" at ")[1]);
@@ -3815,8 +3818,8 @@ function Z(e) {
3815
3818
  if (!X.console) throw Error(t);
3816
3819
  X.console.error(t, n), X.alert && alert(t);
3817
3820
  }
3818
- }, He.foo.bar = He, He.foo), wt = function(e) {
3819
- return !0 === Array.isArray(Fe) && Fe.indexOf(e) > -1;
3821
+ }, Ve.foo.bar = Ve, Ve.foo), Y = function(e) {
3822
+ return !0 === Array.isArray(Pe) && Pe.indexOf(e) > -1;
3820
3823
  };
3821
3824
  switch (i) {
3822
3825
  case "pt":
@@ -3832,7 +3835,7 @@ function Z(e) {
3832
3835
  Se = 72;
3833
3836
  break;
3834
3837
  case "px":
3835
- Se = wt("px_scaling") == 1 ? .75 : 96 / 72;
3838
+ Se = Y("px_scaling") == 1 ? .75 : 96 / 72;
3836
3839
  break;
3837
3840
  case "pc":
3838
3841
  case "em":
@@ -3847,59 +3850,59 @@ function Z(e) {
3847
3850
  }
3848
3851
  var Tt = null;
3849
3852
  ee(), F();
3850
- var J = m.__private__.getPageInfo = m.getPageInfo = function(e) {
3853
+ var Et = m.__private__.getPageInfo = m.getPageInfo = function(e) {
3851
3854
  if (isNaN(e) || e % 1 != 0) throw Error("Invalid argument passed to jsPDF.getPageInfo");
3852
3855
  return {
3853
- objId: K[e].objId,
3856
+ objId: q[e].objId,
3854
3857
  pageNumber: e,
3855
- pageContext: K[e]
3858
+ pageContext: q[e]
3856
3859
  };
3857
- }, Et = m.__private__.getPageInfoByObjId = function(e) {
3860
+ }, Dt = m.__private__.getPageInfoByObjId = function(e) {
3858
3861
  if (isNaN(e) || e % 1 != 0) throw Error("Invalid argument passed to jsPDF.getPageInfoByObjId");
3859
- for (var t in K) if (K[t].objId === e) break;
3860
- return J(t);
3861
- }, Dt = m.__private__.getCurrentPageInfo = m.getCurrentPageInfo = function() {
3862
+ for (var t in q) if (q[t].objId === e) break;
3863
+ return Et(t);
3864
+ }, Ot = m.__private__.getCurrentPageInfo = m.getCurrentPageInfo = function() {
3862
3865
  return {
3863
- objId: K[z].objId,
3866
+ objId: q[z].objId,
3864
3867
  pageNumber: z,
3865
- pageContext: K[z]
3868
+ pageContext: q[z]
3866
3869
  };
3867
3870
  };
3868
3871
  m.addPage = function() {
3869
- return dt.apply(this, arguments), this;
3872
+ return ut.apply(this, arguments), this;
3870
3873
  }, m.setPage = function() {
3871
- return pt.apply(this, arguments), se.call(this, ie[z]), this;
3874
+ return ft.apply(this, arguments), se.call(this, ie[z]), this;
3872
3875
  }, m.insertPage = function(e) {
3873
3876
  return this.addPage(), this.movePage(z, e), this;
3874
3877
  }, m.movePage = function(e, t) {
3875
3878
  var n, r;
3876
3879
  if (e > t) {
3877
- n = ie[e], r = K[e];
3878
- for (var i = e; i > t; i--) ie[i] = ie[i - 1], K[i] = K[i - 1];
3879
- ie[t] = n, K[t] = r, this.setPage(t);
3880
+ n = ie[e], r = q[e];
3881
+ for (var i = e; i > t; i--) ie[i] = ie[i - 1], q[i] = q[i - 1];
3882
+ ie[t] = n, q[t] = r, this.setPage(t);
3880
3883
  } else if (e < t) {
3881
- n = ie[e], r = K[e];
3882
- for (var a = e; a < t; a++) ie[a] = ie[a + 1], K[a] = K[a + 1];
3883
- ie[t] = n, K[t] = r, this.setPage(t);
3884
+ n = ie[e], r = q[e];
3885
+ for (var a = e; a < t; a++) ie[a] = ie[a + 1], q[a] = q[a + 1];
3886
+ ie[t] = n, q[t] = r, this.setPage(t);
3884
3887
  }
3885
3888
  return this;
3886
3889
  }, m.deletePage = function() {
3887
- return ft.apply(this, arguments), this;
3890
+ return dt.apply(this, arguments), this;
3888
3891
  }, m.__private__.text = m.text = function(e, t, n, i, a) {
3889
3892
  var o, s, c, l, u, d, f, m, h, g = (i ||= {}).scope || this;
3890
3893
  if (typeof e == "number" && typeof t == "number" && (typeof n == "string" || Array.isArray(n))) {
3891
3894
  var _ = n;
3892
3895
  n = t, t = e, e = _;
3893
3896
  }
3894
- if (arguments[3] instanceof q == 0 ? (c = arguments[4], l = arguments[5], r(f = arguments[3]) === "object" && f !== null || (typeof c == "string" && (l = c, c = null), typeof f == "string" && (l = f, f = null), typeof f == "number" && (c = f, f = null), i = {
3897
+ if (arguments[3] instanceof J == 0 ? (c = arguments[4], l = arguments[5], r(f = arguments[3]) === "object" && f !== null || (typeof c == "string" && (l = c, c = null), typeof f == "string" && (l = f, f = null), typeof f == "number" && (c = f, f = null), i = {
3895
3898
  flags: f,
3896
3899
  angle: c,
3897
3900
  align: l
3898
3901
  })) : (E("The transform parameter of text() with a Matrix value"), h = a), isNaN(t) || isNaN(n) || e == null) throw Error("Invalid arguments passed to jsPDF.text");
3899
3902
  if (e.length === 0) return g;
3900
- var v, y = "", S = typeof i.lineHeightFactor == "number" ? i.lineHeightFactor : Bt, C = g.internal.scaleFactor;
3903
+ var v, y = "", S = typeof i.lineHeightFactor == "number" ? i.lineHeightFactor : Ht, C = g.internal.scaleFactor;
3901
3904
  function w(e) {
3902
- return e = e.split(" ").join(Array(i.TabLen || 9).join(" ")), lt(e, f);
3905
+ return e = e.split(" ").join(Array(i.TabLen || 9).join(" ")), ct(e, f);
3903
3906
  }
3904
3907
  function D(e) {
3905
3908
  for (var t, n = e.concat(), r = [], i = n.length; i--;) typeof (t = n.shift()) == "string" ? r.push(t) : Array.isArray(e) && (t.length === 1 || t[1] === void 0 && t[2] === void 0) ? r.push(t[0]) : r.push([
@@ -3953,17 +3956,17 @@ function Z(e) {
3953
3956
  y: n,
3954
3957
  options: i,
3955
3958
  mutex: {
3956
- pdfEscape: lt,
3959
+ pdfEscape: ct,
3957
3960
  activeFontKey: xe,
3958
3961
  fonts: Ee,
3959
3962
  activeFontSize: de
3960
3963
  }
3961
- }, Pe.publish("preProcessText", o), e = o.text, c = (i = o.options).angle, h instanceof q == 0 && c && typeof c == "number") {
3964
+ }, Ne.publish("preProcessText", o), e = o.text, c = (i = o.options).angle, h instanceof J == 0 && c && typeof c == "number") {
3962
3965
  c *= Math.PI / 180, i.rotationDirection === 0 && (c = -c), x === b && (c = -c);
3963
3966
  var L = Math.cos(c), ee = Math.sin(c);
3964
- h = new q(L, ee, -ee, L, 0, 0);
3965
- } else c && c instanceof q && (h = c);
3966
- x !== b || h || (h = Be), (u = i.charSpace || tn) !== void 0 && (y += T(A(u)) + " Tc\n", this.setCharSpace(this.getCharSpace() || 0)), (m = i.horizontalScale) !== void 0 && (y += T(100 * m) + " Tz\n"), i.lang;
3967
+ h = new J(L, ee, -ee, L, 0, 0);
3968
+ } else c && c instanceof J && (h = c);
3969
+ x !== b || h || (h = ze), (u = i.charSpace || rn) !== void 0 && (y += T(A(u)) + " Tc\n", this.setCharSpace(this.getCharSpace() || 0)), (m = i.horizontalScale) !== void 0 && (y += T(100 * m) + " Tz\n"), i.lang;
3967
3970
  var R = -1, z = i.renderingMode === void 0 ? i.stroke : i.renderingMode, B = g.internal.getCurrentPageInfo().pageContext;
3968
3971
  switch (z) {
3969
3972
  case 0:
@@ -4002,7 +4005,7 @@ function Z(e) {
4002
4005
  var te = B.usedRenderingMode === void 0 ? -1 : B.usedRenderingMode;
4003
4006
  R === -1 ? te !== -1 && (y += "0 Tr\n") : y += R + " Tr\n", R !== -1 && (B.usedRenderingMode = R), l = i.align || "left";
4004
4007
  var V, H = de * S, U = g.internal.pageSize.getWidth(), ne = Ee[xe];
4005
- u = i.charSpace || tn, d = i.maxWidth || 0, f = Object.assign({
4008
+ u = i.charSpace || rn, d = i.maxWidth || 0, f = Object.assign({
4006
4009
  autoencode: !0,
4007
4010
  noBOM: !0
4008
4011
  }, i.flags);
@@ -4020,14 +4023,14 @@ function Z(e) {
4020
4023
  var oe, se = 0;
4021
4024
  if (l === "right") {
4022
4025
  t -= V[0], e = [], P = s.length;
4023
- for (var ce = 0; ce < P; ce++) ce === 0 ? (oe = qt(t), ae = Jt(n)) : (oe = A(se - V[ce]), ae = -H), e.push([
4026
+ for (var ce = 0; ce < P; ce++) ce === 0 ? (oe = Yt(t), ae = Xt(n)) : (oe = A(se - V[ce]), ae = -H), e.push([
4024
4027
  s[ce],
4025
4028
  oe,
4026
4029
  ae
4027
4030
  ]), se = V[ce];
4028
4031
  } else if (l === "center") {
4029
4032
  t -= V[0] / 2, e = [], P = s.length;
4030
- for (var le = 0; le < P; le++) le === 0 ? (oe = qt(t), ae = Jt(n)) : (oe = A((se - V[le]) / 2), ae = -H), e.push([
4033
+ for (var le = 0; le < P; le++) le === 0 ? (oe = Yt(t), ae = Xt(n)) : (oe = A((se - V[le]) / 2), ae = -H), e.push([
4031
4034
  s[le],
4032
4035
  oe,
4033
4036
  ae
@@ -4037,7 +4040,7 @@ function Z(e) {
4037
4040
  for (var ue = 0; ue < P; ue++) e.push(s[ue]);
4038
4041
  } else if (l === "justify" && ne.encoding === "Identity-H") {
4039
4042
  e = [], P = s.length, d = d === 0 ? U : d;
4040
- for (var fe = 0, pe = 0; pe < P; pe++) if (ae = pe === 0 ? Jt(n) : -H, oe = pe === 0 ? qt(t) : fe, pe < P - 1) {
4043
+ for (var fe = 0, pe = 0; pe < P; pe++) if (ae = pe === 0 ? Xt(n) : -H, oe = pe === 0 ? Yt(t) : fe, pe < P - 1) {
4041
4044
  var he = A((d - V[pe]) / (s[pe].split(" ").length - 1)), ge = s[pe].split(" ");
4042
4045
  e.push([
4043
4046
  ge[0] + " ",
@@ -4069,7 +4072,7 @@ function Z(e) {
4069
4072
  } else {
4070
4073
  if (l !== "justify") throw Error("Unrecognized alignment option, use \"left\", \"center\", \"right\" or \"justify\".");
4071
4074
  for (e = [], P = s.length, d = d === 0 ? U : d, pe = 0; pe < P; pe++) {
4072
- ae = pe === 0 ? Jt(n) : -H, oe = pe === 0 ? qt(t) : 0;
4075
+ ae = pe === 0 ? Xt(n) : -H, oe = pe === 0 ? Yt(t) : 0;
4073
4076
  var ye = s[pe].split(" ").length - 1, be = ye > 0 ? (d - V[pe]) / ye : 0;
4074
4077
  pe < P - 1 ? re.push(T(A(be))) : re.push(0), e.push([
4075
4078
  s[pe],
@@ -4091,12 +4094,12 @@ function Z(e) {
4091
4094
  y: n,
4092
4095
  options: i,
4093
4096
  mutex: {
4094
- pdfEscape: lt,
4097
+ pdfEscape: ct,
4095
4098
  activeFontKey: xe,
4096
4099
  fonts: Ee,
4097
4100
  activeFontSize: de
4098
4101
  }
4099
- }, Pe.publish("postProcessText", o), e = o.text, v = o.mutex.isHex || !1;
4102
+ }, Ne.publish("postProcessText", o), e = o.text, v = o.mutex.isHex || !1;
4100
4103
  var Se = Ee[xe].encoding;
4101
4104
  Se !== "WinAnsiEncoding" && Se !== "StandardEncoding" || (e = O(e, function(e, t, n) {
4102
4105
  return [
@@ -4105,31 +4108,31 @@ function Z(e) {
4105
4108
  n
4106
4109
  ];
4107
4110
  })), s = D(e), e = [];
4108
- for (var Ce, we, Te, G = +!!Array.isArray(s[0]), De = "", Oe = function(e, t, n) {
4111
+ for (var Ce, we, Te, G = +!!Array.isArray(s[0]), De = "", K = function(e, t, n) {
4109
4112
  var r = "";
4110
- return n instanceof q ? (n = typeof i.angle == "number" ? ze(n, new q(1, 0, 0, 1, e, t)) : ze(new q(1, 0, 0, 1, e, t), n), x === b && (n = ze(new q(1, 0, 0, -1, 0, 0), n)), r = n.join(" ") + " Tm\n") : r = T(e) + " " + T(t) + " Td\n", r;
4111
- }, ke = 0; ke < s.length; ke++) {
4113
+ return n instanceof J ? (n = typeof i.angle == "number" ? Re(n, new J(1, 0, 0, 1, e, t)) : Re(new J(1, 0, 0, 1, e, t), n), x === b && (n = Re(new J(1, 0, 0, -1, 0, 0), n)), r = n.join(" ") + " Tm\n") : r = T(e) + " " + T(t) + " Td\n", r;
4114
+ }, Oe = 0; Oe < s.length; Oe++) {
4112
4115
  switch (De = "", G) {
4113
4116
  case 1:
4114
- Te = (v ? "<" : "(") + s[ke][0] + (v ? ">" : ")"), Ce = parseFloat(s[ke][1]), we = parseFloat(s[ke][2]);
4117
+ Te = (v ? "<" : "(") + s[Oe][0] + (v ? ">" : ")"), Ce = parseFloat(s[Oe][1]), we = parseFloat(s[Oe][2]);
4115
4118
  break;
4116
- case 0: Te = (v ? "<" : "(") + s[ke] + (v ? ">" : ")"), Ce = qt(t), we = Jt(n);
4119
+ case 0: Te = (v ? "<" : "(") + s[Oe] + (v ? ">" : ")"), Ce = Yt(t), we = Xt(n);
4117
4120
  }
4118
- re !== void 0 && re[ke] !== void 0 && (De = re[ke] + " Tw\n"), ke === 0 ? e.push(De + Oe(Ce, we, h) + Te) : G === 0 ? e.push(De + Te) : G === 1 && e.push(De + Oe(Ce, we, h) + Te);
4121
+ re !== void 0 && re[Oe] !== void 0 && (De = re[Oe] + " Tw\n"), Oe === 0 ? e.push(De + K(Ce, we, h) + Te) : G === 0 ? e.push(De + Te) : G === 1 && e.push(De + K(Ce, we, h) + Te);
4119
4122
  }
4120
4123
  e = G === 0 ? e.join(" Tj\nT* ") : e.join(" Tj\n"), e += " Tj\n";
4121
- var Ae = "BT\n/";
4122
- return Ae += xe + " " + de + " Tf\n", Ae += T(de * S) + " TL\n", Ae += $t + "\n", Ae += y, Ae += e, W(Ae += "ET"), p[xe] = !0, g;
4124
+ var ke = "BT\n/";
4125
+ return ke += xe + " " + de + " Tf\n", ke += T(de * S) + " TL\n", ke += tn + "\n", ke += y, ke += e, W(ke += "ET"), p[xe] = !0, g;
4123
4126
  };
4124
- var Ot = m.__private__.clip = m.clip = function(e) {
4127
+ var kt = m.__private__.clip = m.clip = function(e) {
4125
4128
  return W(e === "evenodd" ? "W*" : "W"), this;
4126
4129
  };
4127
4130
  m.clipEvenOdd = function() {
4128
- return Ot("evenodd");
4131
+ return kt("evenodd");
4129
4132
  }, m.__private__.discardPath = m.discardPath = function() {
4130
4133
  return W("n"), this;
4131
4134
  };
4132
- var Y = m.__private__.isValidStyle = function(e) {
4135
+ var At = m.__private__.isValidStyle = function(e) {
4133
4136
  var t = !1;
4134
4137
  return [
4135
4138
  void 0,
@@ -4147,9 +4150,9 @@ function Z(e) {
4147
4150
  ].indexOf(e) !== -1 && (t = !0), t;
4148
4151
  };
4149
4152
  m.__private__.setDefaultPathOperation = m.setDefaultPathOperation = function(e) {
4150
- return Y(e) && (u = e), this;
4153
+ return At(e) && (u = e), this;
4151
4154
  };
4152
- var kt = m.__private__.getStyle = m.getStyle = function(e) {
4155
+ var jt = m.__private__.getStyle = m.getStyle = function(e) {
4153
4156
  var t = u;
4154
4157
  switch (e) {
4155
4158
  case "D":
@@ -4169,37 +4172,37 @@ function Z(e) {
4169
4172
  case "B*": t = e;
4170
4173
  }
4171
4174
  return t;
4172
- }, At = m.close = function() {
4175
+ }, Mt = m.close = function() {
4173
4176
  return W("h"), this;
4174
4177
  };
4175
4178
  m.stroke = function() {
4176
4179
  return W("S"), this;
4177
4180
  }, m.fill = function(e) {
4178
- return jt("f", e), this;
4181
+ return Nt("f", e), this;
4179
4182
  }, m.fillEvenOdd = function(e) {
4180
- return jt("f*", e), this;
4183
+ return Nt("f*", e), this;
4181
4184
  }, m.fillStroke = function(e) {
4182
- return jt("B", e), this;
4185
+ return Nt("B", e), this;
4183
4186
  }, m.fillStrokeEvenOdd = function(e) {
4184
- return jt("B*", e), this;
4187
+ return Nt("B*", e), this;
4185
4188
  };
4186
- var jt = function(e, t) {
4187
- r(t) === "object" ? Pt(t, e) : W(e);
4188
- }, Mt = function(e) {
4189
- e === null || x === b && e === void 0 || (e = kt(e), W(e));
4189
+ var Nt = function(e, t) {
4190
+ r(t) === "object" ? It(t, e) : W(e);
4191
+ }, Pt = function(e) {
4192
+ e === null || x === b && e === void 0 || (e = jt(e), W(e));
4190
4193
  };
4191
- function Nt(e, t, n, r, i) {
4194
+ function Ft(e, t, n, r, i) {
4192
4195
  var a = new La(t || this.boundingBox, n || this.xStep, r || this.yStep, this.gState, i || this.matrix);
4193
- return a.stream = this.stream, Ve(e + "$$" + this.cloneIndex++ + "$$", a), a;
4196
+ return a.stream = this.stream, Be(e + "$$" + this.cloneIndex++ + "$$", a), a;
4194
4197
  }
4195
- var Pt = function(e, t) {
4196
- var n = ke[e.key], r = Oe[n];
4197
- if (r instanceof Ia) W("q"), W(Ft(t)), r.gState && m.setGState(r.gState), W(e.matrix.toString() + " cm"), W("/" + n + " sh"), W("Q");
4198
+ var It = function(e, t) {
4199
+ var n = Oe[e.key], r = K[n];
4200
+ if (r instanceof Ia) W("q"), W(Lt(t)), r.gState && m.setGState(r.gState), W(e.matrix.toString() + " cm"), W("/" + n + " sh"), W("Q");
4198
4201
  else if (r instanceof La) {
4199
- var i = new q(1, 0, 0, -1, 0, vn());
4200
- e.matrix && (i = i.multiply(e.matrix || Be), n = Nt.call(r, e.key, e.boundingBox, e.xStep, e.yStep, i).id), W("q"), W("/Pattern cs"), W("/" + n + " scn"), r.gState && m.setGState(r.gState), W(t), W("Q");
4202
+ var i = new J(1, 0, 0, -1, 0, bn());
4203
+ e.matrix && (i = i.multiply(e.matrix || ze), n = Ft.call(r, e.key, e.boundingBox, e.xStep, e.yStep, i).id), W("q"), W("/Pattern cs"), W("/" + n + " scn"), r.gState && m.setGState(r.gState), W(t), W("Q");
4201
4204
  }
4202
- }, Ft = function(e) {
4205
+ }, Lt = function(e) {
4203
4206
  switch (e) {
4204
4207
  case "f":
4205
4208
  case "F":
@@ -4209,11 +4212,11 @@ function Z(e) {
4209
4212
  case "S": return "W S";
4210
4213
  case "B*": return "W* S";
4211
4214
  }
4212
- }, It = m.moveTo = function(e, t) {
4215
+ }, Rt = m.moveTo = function(e, t) {
4213
4216
  return W(T(A(e)) + " " + T(j(t)) + " m"), this;
4214
- }, Lt = m.lineTo = function(e, t) {
4217
+ }, zt = m.lineTo = function(e, t) {
4215
4218
  return W(T(A(e)) + " " + T(j(t)) + " l"), this;
4216
- }, Rt = m.curveTo = function(e, t, n, r, i, a) {
4219
+ }, Bt = m.curveTo = function(e, t, n, r, i, a) {
4217
4220
  return W([
4218
4221
  T(A(e)),
4219
4222
  T(j(t)),
@@ -4225,48 +4228,48 @@ function Z(e) {
4225
4228
  ].join(" ")), this;
4226
4229
  };
4227
4230
  m.__private__.line = m.line = function(e, t, n, r, i) {
4228
- if (isNaN(e) || isNaN(t) || isNaN(n) || isNaN(r) || !Y(i)) throw Error("Invalid arguments passed to jsPDF.line");
4231
+ if (isNaN(e) || isNaN(t) || isNaN(n) || isNaN(r) || !At(i)) throw Error("Invalid arguments passed to jsPDF.line");
4229
4232
  return x === y ? this.lines([[n - e, r - t]], e, t, [1, 1], i || "S") : this.lines([[n - e, r - t]], e, t, [1, 1]).stroke();
4230
4233
  }, m.__private__.lines = m.lines = function(e, t, n, r, i, a) {
4231
4234
  var o, s, c, l, u, d, f, p, m, h, g, _;
4232
- if (typeof e == "number" && (_ = n, n = t, t = e, e = _), r ||= [1, 1], a ||= !1, isNaN(t) || isNaN(n) || !Array.isArray(e) || !Array.isArray(r) || !Y(i) || typeof a != "boolean") throw Error("Invalid arguments passed to jsPDF.lines");
4233
- for (It(t, n), o = r[0], s = r[1], l = e.length, h = t, g = n, c = 0; c < l; c++) (u = e[c]).length === 2 ? (h = u[0] * o + h, g = u[1] * s + g, Lt(h, g)) : (d = u[0] * o + h, f = u[1] * s + g, p = u[2] * o + h, m = u[3] * s + g, h = u[4] * o + h, g = u[5] * s + g, Rt(d, f, p, m, h, g));
4234
- return a && At(), Mt(i), this;
4235
+ if (typeof e == "number" && (_ = n, n = t, t = e, e = _), r ||= [1, 1], a ||= !1, isNaN(t) || isNaN(n) || !Array.isArray(e) || !Array.isArray(r) || !At(i) || typeof a != "boolean") throw Error("Invalid arguments passed to jsPDF.lines");
4236
+ for (Rt(t, n), o = r[0], s = r[1], l = e.length, h = t, g = n, c = 0; c < l; c++) (u = e[c]).length === 2 ? (h = u[0] * o + h, g = u[1] * s + g, zt(h, g)) : (d = u[0] * o + h, f = u[1] * s + g, p = u[2] * o + h, m = u[3] * s + g, h = u[4] * o + h, g = u[5] * s + g, Bt(d, f, p, m, h, g));
4237
+ return a && Mt(), Pt(i), this;
4235
4238
  }, m.path = function(e) {
4236
4239
  for (var t = 0; t < e.length; t++) {
4237
4240
  var n = e[t], r = n.c;
4238
4241
  switch (n.op) {
4239
4242
  case "m":
4240
- It(r[0], r[1]);
4243
+ Rt(r[0], r[1]);
4241
4244
  break;
4242
4245
  case "l":
4243
- Lt(r[0], r[1]);
4246
+ zt(r[0], r[1]);
4244
4247
  break;
4245
4248
  case "c":
4246
- Rt.apply(this, r);
4249
+ Bt.apply(this, r);
4247
4250
  break;
4248
- case "h": At();
4251
+ case "h": Mt();
4249
4252
  }
4250
4253
  }
4251
4254
  return this;
4252
4255
  }, m.__private__.rect = m.rect = function(e, t, n, r, i) {
4253
- if (isNaN(e) || isNaN(t) || isNaN(n) || isNaN(r) || !Y(i)) throw Error("Invalid arguments passed to jsPDF.rect");
4256
+ if (isNaN(e) || isNaN(t) || isNaN(n) || isNaN(r) || !At(i)) throw Error("Invalid arguments passed to jsPDF.rect");
4254
4257
  return x === y && (r = -r), W([
4255
4258
  T(A(e)),
4256
4259
  T(j(t)),
4257
4260
  T(A(n)),
4258
4261
  T(A(r)),
4259
4262
  "re"
4260
- ].join(" ")), Mt(i), this;
4263
+ ].join(" ")), Pt(i), this;
4261
4264
  }, m.__private__.triangle = m.triangle = function(e, t, n, r, i, a, o) {
4262
- if (isNaN(e) || isNaN(t) || isNaN(n) || isNaN(r) || isNaN(i) || isNaN(a) || !Y(o)) throw Error("Invalid arguments passed to jsPDF.triangle");
4265
+ if (isNaN(e) || isNaN(t) || isNaN(n) || isNaN(r) || isNaN(i) || isNaN(a) || !At(o)) throw Error("Invalid arguments passed to jsPDF.triangle");
4263
4266
  return this.lines([
4264
4267
  [n - e, r - t],
4265
4268
  [i - n, a - r],
4266
4269
  [e - i, t - a]
4267
4270
  ], e, t, [1, 1], o, !0), this;
4268
4271
  }, m.__private__.roundedRect = m.roundedRect = function(e, t, n, r, i, a, o) {
4269
- if (isNaN(e) || isNaN(t) || isNaN(n) || isNaN(r) || isNaN(i) || isNaN(a) || !Y(o)) throw Error("Invalid arguments passed to jsPDF.roundedRect");
4272
+ if (isNaN(e) || isNaN(t) || isNaN(n) || isNaN(r) || isNaN(i) || isNaN(a) || !At(o)) throw Error("Invalid arguments passed to jsPDF.roundedRect");
4270
4273
  var s = 4 / 3 * (Math.SQRT2 - 1);
4271
4274
  return i = Math.min(i, .5 * n), a = Math.min(a, .5 * r), this.lines([
4272
4275
  [n - 2 * i, 0],
@@ -4307,17 +4310,17 @@ function Z(e) {
4307
4310
  ]
4308
4311
  ], e + i, t, [1, 1], o, !0), this;
4309
4312
  }, m.__private__.ellipse = m.ellipse = function(e, t, n, r, i) {
4310
- if (isNaN(e) || isNaN(t) || isNaN(n) || isNaN(r) || !Y(i)) throw Error("Invalid arguments passed to jsPDF.ellipse");
4313
+ if (isNaN(e) || isNaN(t) || isNaN(n) || isNaN(r) || !At(i)) throw Error("Invalid arguments passed to jsPDF.ellipse");
4311
4314
  var a = 4 / 3 * (Math.SQRT2 - 1) * n, o = 4 / 3 * (Math.SQRT2 - 1) * r;
4312
- return It(e + n, t), Rt(e + n, t - o, e + a, t - r, e, t - r), Rt(e - a, t - r, e - n, t - o, e - n, t), Rt(e - n, t + o, e - a, t + r, e, t + r), Rt(e + a, t + r, e + n, t + o, e + n, t), Mt(i), this;
4315
+ return Rt(e + n, t), Bt(e + n, t - o, e + a, t - r, e, t - r), Bt(e - a, t - r, e - n, t - o, e - n, t), Bt(e - n, t + o, e - a, t + r, e, t + r), Bt(e + a, t + r, e + n, t + o, e + n, t), Pt(i), this;
4313
4316
  }, m.__private__.circle = m.circle = function(e, t, n, r) {
4314
- if (isNaN(e) || isNaN(t) || isNaN(n) || !Y(r)) throw Error("Invalid arguments passed to jsPDF.circle");
4317
+ if (isNaN(e) || isNaN(t) || isNaN(n) || !At(r)) throw Error("Invalid arguments passed to jsPDF.circle");
4315
4318
  return this.ellipse(e, t, n, n, r);
4316
4319
  }, m.setFont = function(e, t, n) {
4317
- return n && (t = w(t, n)), xe = ht(e, t, { disableWarning: !1 }), this;
4320
+ return n && (t = w(t, n)), xe = mt(e, t, { disableWarning: !1 }), this;
4318
4321
  };
4319
- var zt = m.__private__.getFont = m.getFont = function() {
4320
- return Ee[ht.apply(m, arguments)];
4322
+ var Vt = m.__private__.getFont = m.getFont = function() {
4323
+ return Ee[mt.apply(m, arguments)];
4321
4324
  };
4322
4325
  m.__private__.getFontList = m.getFontList = function() {
4323
4326
  var e, t, n = {};
@@ -4330,12 +4333,12 @@ function Z(e) {
4330
4333
  "Identity-H",
4331
4334
  "WinAnsiEncoding"
4332
4335
  ];
4333
- return arguments[3] && a.indexOf(arguments[3]) !== -1 ? i = arguments[3] : arguments[3] && a.indexOf(arguments[3]) == -1 && (n = w(n, r)), ct.call(this, e, t, n, i ||= "Identity-H");
4336
+ return arguments[3] && a.indexOf(arguments[3]) !== -1 ? i = arguments[3] : arguments[3] && a.indexOf(arguments[3]) == -1 && (n = w(n, r)), st.call(this, e, t, n, i ||= "Identity-H");
4334
4337
  };
4335
- var Bt, Vt = e.lineWidth || .200025, Ht = m.__private__.getLineWidth = m.getLineWidth = function() {
4336
- return Vt;
4337
- }, Ut = m.__private__.setLineWidth = m.setLineWidth = function(e) {
4338
- return Vt = e, W(T(A(e)) + " w"), this;
4338
+ var Ht, Ut = e.lineWidth || .200025, Wt = m.__private__.getLineWidth = m.getLineWidth = function() {
4339
+ return Ut;
4340
+ }, Gt = m.__private__.setLineWidth = m.setLineWidth = function(e) {
4341
+ return Ut = e, W(T(A(e)) + " w"), this;
4339
4342
  };
4340
4343
  m.__private__.setLineDash = Z.API.setLineDash = Z.API.setLineDashPattern = function(e, t) {
4341
4344
  if (e ||= [], t ||= 0, isNaN(t) || !Array.isArray(e)) throw Error("Invalid arguments passed to jsPDF.setLineDash");
@@ -4343,57 +4346,57 @@ function Z(e) {
4343
4346
  return T(A(e));
4344
4347
  }).join(" "), t = T(A(t)), W("[" + e + "] " + t + " d"), this;
4345
4348
  };
4346
- var Wt = m.__private__.getLineHeight = m.getLineHeight = function() {
4347
- return de * Bt;
4349
+ var Kt = m.__private__.getLineHeight = m.getLineHeight = function() {
4350
+ return de * Ht;
4348
4351
  };
4349
4352
  m.__private__.getLineHeight = m.getLineHeight = function() {
4350
- return de * Bt;
4353
+ return de * Ht;
4351
4354
  };
4352
- var Gt = m.__private__.setLineHeightFactor = m.setLineHeightFactor = function(e) {
4353
- return typeof (e ||= 1.15) == "number" && (Bt = e), this;
4354
- }, Kt = m.__private__.getLineHeightFactor = m.getLineHeightFactor = function() {
4355
- return Bt;
4355
+ var qt = m.__private__.setLineHeightFactor = m.setLineHeightFactor = function(e) {
4356
+ return typeof (e ||= 1.15) == "number" && (Ht = e), this;
4357
+ }, Jt = m.__private__.getLineHeightFactor = m.getLineHeightFactor = function() {
4358
+ return Ht;
4356
4359
  };
4357
- Gt(e.lineHeight);
4358
- var qt = m.__private__.getHorizontalCoordinate = function(e) {
4360
+ qt(e.lineHeight);
4361
+ var Yt = m.__private__.getHorizontalCoordinate = function(e) {
4359
4362
  return A(e);
4360
- }, Jt = m.__private__.getVerticalCoordinate = function(e) {
4361
- return x === b ? e : K[z].mediaBox.topRightY - K[z].mediaBox.bottomLeftY - A(e);
4362
- }, Yt = m.__private__.getHorizontalCoordinateString = m.getHorizontalCoordinateString = function(e) {
4363
- return T(qt(e));
4364
- }, Xt = m.__private__.getVerticalCoordinateString = m.getVerticalCoordinateString = function(e) {
4365
- return T(Jt(e));
4366
- }, Zt = e.strokeColor || "0 G";
4363
+ }, Xt = m.__private__.getVerticalCoordinate = function(e) {
4364
+ return x === b ? e : q[z].mediaBox.topRightY - q[z].mediaBox.bottomLeftY - A(e);
4365
+ }, Zt = m.__private__.getHorizontalCoordinateString = m.getHorizontalCoordinateString = function(e) {
4366
+ return T(Yt(e));
4367
+ }, Qt = m.__private__.getVerticalCoordinateString = m.getVerticalCoordinateString = function(e) {
4368
+ return T(Xt(e));
4369
+ }, $t = e.strokeColor || "0 G";
4367
4370
  m.__private__.getStrokeColor = m.getDrawColor = function() {
4368
- return Ye(Zt);
4371
+ return Je($t);
4369
4372
  }, m.__private__.setStrokeColor = m.setDrawColor = function(e, t, n, r) {
4370
- return Zt = Xe({
4373
+ return $t = Ye({
4371
4374
  ch1: e,
4372
4375
  ch2: t,
4373
4376
  ch3: n,
4374
4377
  ch4: r,
4375
4378
  pdfColorType: "draw",
4376
4379
  precision: 2
4377
- }), W(Zt), this;
4380
+ }), W($t), this;
4378
4381
  };
4379
- var Qt = e.fillColor || "0 g";
4382
+ var en = e.fillColor || "0 g";
4380
4383
  m.__private__.getFillColor = m.getFillColor = function() {
4381
- return Ye(Qt);
4384
+ return Je(en);
4382
4385
  }, m.__private__.setFillColor = m.setFillColor = function(e, t, n, r) {
4383
- return Qt = Xe({
4386
+ return en = Ye({
4384
4387
  ch1: e,
4385
4388
  ch2: t,
4386
4389
  ch3: n,
4387
4390
  ch4: r,
4388
4391
  pdfColorType: "fill",
4389
4392
  precision: 2
4390
- }), W(Qt), this;
4393
+ }), W(en), this;
4391
4394
  };
4392
- var $t = e.textColor || "0 g", en = m.__private__.getTextColor = m.getTextColor = function() {
4393
- return Ye($t);
4395
+ var tn = e.textColor || "0 g", nn = m.__private__.getTextColor = m.getTextColor = function() {
4396
+ return Je(tn);
4394
4397
  };
4395
4398
  m.__private__.setTextColor = m.setTextColor = function(e, t, n, r) {
4396
- return $t = Xe({
4399
+ return tn = Ye({
4397
4400
  ch1: e,
4398
4401
  ch2: t,
4399
4402
  ch3: n,
@@ -4402,14 +4405,14 @@ function Z(e) {
4402
4405
  precision: 3
4403
4406
  }), this;
4404
4407
  };
4405
- var tn = e.charSpace, nn = m.__private__.getCharSpace = m.getCharSpace = function() {
4406
- return parseFloat(tn || 0);
4408
+ var rn = e.charSpace, an = m.__private__.getCharSpace = m.getCharSpace = function() {
4409
+ return parseFloat(rn || 0);
4407
4410
  };
4408
4411
  m.__private__.setCharSpace = m.setCharSpace = function(e) {
4409
4412
  if (isNaN(e)) throw Error("Invalid argument passed to jsPDF.setCharSpace");
4410
- return tn = e, this;
4413
+ return rn = e, this;
4411
4414
  };
4412
- var rn = 0;
4415
+ var on = 0;
4413
4416
  m.CapJoinStyles = {
4414
4417
  0: 0,
4415
4418
  butt: 0,
@@ -4427,52 +4430,52 @@ function Z(e) {
4427
4430
  }, m.__private__.setLineCap = m.setLineCap = function(e) {
4428
4431
  var t = m.CapJoinStyles[e];
4429
4432
  if (t === void 0) throw Error("Line cap style of '" + e + "' is not recognized. See or extend .CapJoinStyles property for valid styles");
4430
- return rn = t, W(t + " J"), this;
4433
+ return on = t, W(t + " J"), this;
4431
4434
  };
4432
- var an = 0;
4435
+ var sn = 0;
4433
4436
  m.__private__.setLineJoin = m.setLineJoin = function(e) {
4434
4437
  var t = m.CapJoinStyles[e];
4435
4438
  if (t === void 0) throw Error("Line join style of '" + e + "' is not recognized. See or extend .CapJoinStyles property for valid styles");
4436
- return an = t, W(t + " j"), this;
4439
+ return sn = t, W(t + " j"), this;
4437
4440
  }, m.__private__.setLineMiterLimit = m.__private__.setMiterLimit = m.setLineMiterLimit = m.setMiterLimit = function(e) {
4438
4441
  if (e ||= 0, isNaN(e)) throw Error("Invalid argument passed to jsPDF.setLineMiterLimit");
4439
4442
  return W(T(A(e)) + " M"), this;
4440
4443
  }, m.GState = Pa, m.setGState = function(e) {
4441
- (e = typeof e == "string" ? Ae[je[e]] : on(null, e)).equals(Me) || (W("/" + e.id + " gs"), Me = e);
4444
+ (e = typeof e == "string" ? ke[Ae[e]] : cn(null, e)).equals(je) || (W("/" + e.id + " gs"), je = e);
4442
4445
  };
4443
- var on = function(e, t) {
4444
- if (!e || !je[e]) {
4446
+ var cn = function(e, t) {
4447
+ if (!e || !Ae[e]) {
4445
4448
  var n = !1;
4446
- for (var r in Ae) if (Ae.hasOwnProperty(r) && Ae[r].equals(t)) {
4449
+ for (var r in ke) if (ke.hasOwnProperty(r) && ke[r].equals(t)) {
4447
4450
  n = !0;
4448
4451
  break;
4449
4452
  }
4450
- if (n) t = Ae[r];
4453
+ if (n) t = ke[r];
4451
4454
  else {
4452
- var i = "GS" + (Object.keys(Ae).length + 1).toString(10);
4453
- Ae[i] = t, t.id = i;
4455
+ var i = "GS" + (Object.keys(ke).length + 1).toString(10);
4456
+ ke[i] = t, t.id = i;
4454
4457
  }
4455
- return e && (je[e] = t.id), Pe.publish("addGState", t), t;
4458
+ return e && (Ae[e] = t.id), Ne.publish("addGState", t), t;
4456
4459
  }
4457
4460
  };
4458
4461
  m.addGState = function(e, t) {
4459
- return on(e, t), this;
4462
+ return cn(e, t), this;
4460
4463
  }, m.saveGraphicsState = function() {
4461
4464
  return W("q"), De.push({
4462
4465
  key: xe,
4463
4466
  size: de,
4464
- color: $t
4467
+ color: tn
4465
4468
  }), this;
4466
4469
  }, m.restoreGraphicsState = function() {
4467
4470
  W("Q");
4468
4471
  var e = De.pop();
4469
- return xe = e.key, de = e.size, $t = e.color, Me = null, this;
4472
+ return xe = e.key, de = e.size, tn = e.color, je = null, this;
4470
4473
  }, m.setCurrentTransformationMatrix = function(e) {
4471
4474
  return W(e.toString() + " cm"), this;
4472
4475
  }, m.comment = function(e) {
4473
4476
  return W("#" + e), this;
4474
4477
  };
4475
- var sn = function(e, t) {
4478
+ var ln = function(e, t) {
4476
4479
  var n = e || 0;
4477
4480
  Object.defineProperty(this, "x", {
4478
4481
  enumerable: !0,
@@ -4503,8 +4506,8 @@ function Z(e) {
4503
4506
  i = e.toString();
4504
4507
  }
4505
4508
  }), this;
4506
- }, cn = function(e, t, n, r) {
4507
- sn.call(this, e, t), this.type = "rect";
4509
+ }, un = function(e, t, n, r) {
4510
+ ln.call(this, e, t), this.type = "rect";
4508
4511
  var i = n || 0;
4509
4512
  Object.defineProperty(this, "w", {
4510
4513
  enumerable: !0,
@@ -4525,30 +4528,30 @@ function Z(e) {
4525
4528
  isNaN(e) || (a = parseFloat(e));
4526
4529
  }
4527
4530
  }), this;
4528
- }, ln = function() {
4529
- this.page = Ne, this.currentPage = z, this.pages = ie.slice(0), this.pagesContext = K.slice(0), this.x = Ce, this.y = we, this.matrix = Te, this.width = fn(z), this.height = mn(z), this.outputDestination = oe, this.id = "", this.objectNumber = -1;
4531
+ }, dn = function() {
4532
+ this.page = Me, this.currentPage = z, this.pages = ie.slice(0), this.pagesContext = q.slice(0), this.x = Ce, this.y = we, this.matrix = Te, this.width = mn(z), this.height = gn(z), this.outputDestination = oe, this.id = "", this.objectNumber = -1;
4530
4533
  };
4531
- ln.prototype.restore = function() {
4532
- Ne = this.page, z = this.currentPage, K = this.pagesContext, ie = this.pages, Ce = this.x, we = this.y, Te = this.matrix, pn(z, this.width), hn(z, this.height), oe = this.outputDestination;
4534
+ dn.prototype.restore = function() {
4535
+ Me = this.page, z = this.currentPage, q = this.pagesContext, ie = this.pages, Ce = this.x, we = this.y, Te = this.matrix, hn(z, this.width), _n(z, this.height), oe = this.outputDestination;
4533
4536
  };
4534
- var un = function(e, t, n, r, i) {
4535
- Re.push(new ln()), Ne = z = 0, ie = [], Ce = e, we = t, Te = i, ut([n, r]);
4537
+ var fn = function(e, t, n, r, i) {
4538
+ Le.push(new dn()), Me = z = 0, ie = [], Ce = e, we = t, Te = i, lt([n, r]);
4536
4539
  };
4537
- for (var dn in m.beginFormObject = function(e, t, n, r, i) {
4538
- return un(e, t, n, r, i), this;
4540
+ for (var pn in m.beginFormObject = function(e, t, n, r, i) {
4541
+ return fn(e, t, n, r, i), this;
4539
4542
  }, m.endFormObject = function(e) {
4540
4543
  return function(e) {
4541
- if (Le[e]) Re.pop().restore();
4544
+ if (Ie[e]) Le.pop().restore();
4542
4545
  else {
4543
- var t = new ln(), n = "Xo" + (Object.keys(Ie).length + 1).toString(10);
4544
- t.id = n, Le[e] = n, Ie[n] = t, Pe.publish("addFormObject", t), Re.pop().restore();
4546
+ var t = new dn(), n = "Xo" + (Object.keys(Fe).length + 1).toString(10);
4547
+ t.id = n, Ie[e] = n, Fe[n] = t, Ne.publish("addFormObject", t), Le.pop().restore();
4545
4548
  }
4546
4549
  }(e), this;
4547
4550
  }, m.doFormObject = function(e, t) {
4548
- var n = Ie[Le[e]];
4551
+ var n = Fe[Ie[e]];
4549
4552
  return W("q"), W(t.toString() + " cm"), W("/" + n.id + " Do"), W("Q"), this;
4550
4553
  }, m.getFormObject = function(e) {
4551
- var t = Ie[Le[e]];
4554
+ var t = Fe[Ie[e]];
4552
4555
  return {
4553
4556
  x: t.x,
4554
4557
  y: t.y,
@@ -4557,74 +4560,74 @@ function Z(e) {
4557
4560
  matrix: t.matrix
4558
4561
  };
4559
4562
  }, m.save = function(e, t) {
4560
- return e ||= "generated.pdf", (t ||= {}).returnPromise = t.returnPromise || !1, !1 === t.returnPromise ? (da(St(xt()), e), typeof da.unload == "function" && X.setTimeout && setTimeout(da.unload, 911), this) : new Promise(function(t, n) {
4563
+ return e ||= "generated.pdf", (t ||= {}).returnPromise = t.returnPromise || !1, !1 === t.returnPromise ? (da(xt(bt()), e), typeof da.unload == "function" && X.setTimeout && setTimeout(da.unload, 911), this) : new Promise(function(t, n) {
4561
4564
  try {
4562
- var r = da(St(xt()), e);
4565
+ var r = da(xt(bt()), e);
4563
4566
  typeof da.unload == "function" && X.setTimeout && setTimeout(da.unload, 911), t(r);
4564
4567
  } catch (e) {
4565
4568
  n(e.message);
4566
4569
  }
4567
4570
  });
4568
- }, Z.API) Z.API.hasOwnProperty(dn) && (dn === "events" && Z.API.events.length ? function(e, t) {
4571
+ }, Z.API) Z.API.hasOwnProperty(pn) && (pn === "events" && Z.API.events.length ? function(e, t) {
4569
4572
  for (var n, r, i = t.length - 1; i !== -1; i--) n = t[i][0], r = t[i][1], e.subscribe.apply(e, [n].concat(typeof r == "function" ? [r] : r));
4570
- }(Pe, Z.API.events) : m[dn] = Z.API[dn]);
4571
- function fn(e) {
4572
- return K[e].mediaBox.topRightX - K[e].mediaBox.bottomLeftX;
4573
- }
4574
- function pn(e, t) {
4575
- K[e].mediaBox.topRightX = t + K[e].mediaBox.bottomLeftX;
4576
- }
4573
+ }(Ne, Z.API.events) : m[pn] = Z.API[pn]);
4577
4574
  function mn(e) {
4578
- return K[e].mediaBox.topRightY - K[e].mediaBox.bottomLeftY;
4575
+ return q[e].mediaBox.topRightX - q[e].mediaBox.bottomLeftX;
4579
4576
  }
4580
4577
  function hn(e, t) {
4581
- K[e].mediaBox.topRightY = t + K[e].mediaBox.bottomLeftY;
4578
+ q[e].mediaBox.topRightX = t + q[e].mediaBox.bottomLeftX;
4582
4579
  }
4583
- var gn = m.getPageWidth = function(e) {
4584
- return fn(e ||= z) / Se;
4585
- }, _n = m.setPageWidth = function(e, t) {
4586
- pn(e, t * Se);
4587
- }, vn = m.getPageHeight = function(e) {
4580
+ function gn(e) {
4581
+ return q[e].mediaBox.topRightY - q[e].mediaBox.bottomLeftY;
4582
+ }
4583
+ function _n(e, t) {
4584
+ q[e].mediaBox.topRightY = t + q[e].mediaBox.bottomLeftY;
4585
+ }
4586
+ var vn = m.getPageWidth = function(e) {
4588
4587
  return mn(e ||= z) / Se;
4589
- }, yn = m.setPageHeight = function(e, t) {
4588
+ }, yn = m.setPageWidth = function(e, t) {
4590
4589
  hn(e, t * Se);
4590
+ }, bn = m.getPageHeight = function(e) {
4591
+ return gn(e ||= z) / Se;
4592
+ }, xn = m.setPageHeight = function(e, t) {
4593
+ _n(e, t * Se);
4591
4594
  };
4592
4595
  return m.internal = {
4593
- pdfEscape: lt,
4594
- getStyle: kt,
4595
- getFont: zt,
4596
+ pdfEscape: ct,
4597
+ getStyle: jt,
4598
+ getFont: Vt,
4596
4599
  getFontSize: pe,
4597
- getCharSpace: nn,
4598
- getTextColor: en,
4599
- getLineHeight: Wt,
4600
- getLineHeightFactor: Kt,
4601
- getLineWidth: Ht,
4600
+ getCharSpace: an,
4601
+ getTextColor: nn,
4602
+ getLineHeight: Kt,
4603
+ getLineHeightFactor: Jt,
4604
+ getLineWidth: Wt,
4602
4605
  write: ce,
4603
- getHorizontalCoordinate: qt,
4604
- getVerticalCoordinate: Jt,
4605
- getCoordinateString: Yt,
4606
- getVerticalCoordinateString: Xt,
4606
+ getHorizontalCoordinate: Yt,
4607
+ getVerticalCoordinate: Xt,
4608
+ getCoordinateString: Zt,
4609
+ getVerticalCoordinateString: Qt,
4607
4610
  collections: {},
4608
- newObject: Ue,
4609
- newAdditionalObject: Ke,
4610
- newObjectDeferred: We,
4611
- newObjectDeferredBegin: Ge,
4612
- getFilters: Ze,
4613
- putStream: Qe,
4614
- events: Pe,
4611
+ newObject: He,
4612
+ newAdditionalObject: Ge,
4613
+ newObjectDeferred: Ue,
4614
+ newObjectDeferredBegin: We,
4615
+ getFilters: Xe,
4616
+ putStream: Ze,
4617
+ events: Ne,
4615
4618
  scaleFactor: Se,
4616
4619
  pageSize: {
4617
4620
  getWidth: function() {
4618
- return gn(z);
4621
+ return vn(z);
4619
4622
  },
4620
4623
  setWidth: function(e) {
4621
- _n(z, e);
4624
+ yn(z, e);
4622
4625
  },
4623
4626
  getHeight: function() {
4624
- return vn(z);
4627
+ return bn(z);
4625
4628
  },
4626
4629
  setHeight: function(e) {
4627
- yn(z, e);
4630
+ xn(z, e);
4628
4631
  }
4629
4632
  },
4630
4633
  encryptionOptions: d,
@@ -4634,56 +4637,56 @@ function Z(e) {
4634
4637
  return e;
4635
4638
  } : Tt.encryptor(e, 0);
4636
4639
  },
4637
- output: Ct,
4638
- getNumberOfPages: mt,
4640
+ output: wt,
4641
+ getNumberOfPages: pt,
4639
4642
  get pages() {
4640
4643
  return ie;
4641
4644
  },
4642
4645
  out: W,
4643
4646
  f2: O,
4644
4647
  f3: k,
4645
- getPageInfo: J,
4646
- getPageInfoByObjId: Et,
4647
- getCurrentPageInfo: Dt,
4648
+ getPageInfo: Et,
4649
+ getPageInfoByObjId: Dt,
4650
+ getCurrentPageInfo: Ot,
4648
4651
  getPDFVersion: g,
4649
- Point: sn,
4650
- Rectangle: cn,
4651
- Matrix: q,
4652
- hasHotfix: wt
4652
+ Point: ln,
4653
+ Rectangle: un,
4654
+ Matrix: J,
4655
+ hasHotfix: Y
4653
4656
  }, Object.defineProperty(m.internal.pageSize, "width", {
4654
4657
  get: function() {
4655
- return gn(z);
4658
+ return vn(z);
4656
4659
  },
4657
4660
  set: function(e) {
4658
- _n(z, e);
4661
+ yn(z, e);
4659
4662
  },
4660
4663
  enumerable: !0,
4661
4664
  configurable: !0
4662
4665
  }), Object.defineProperty(m.internal.pageSize, "height", {
4663
4666
  get: function() {
4664
- return vn(z);
4667
+ return bn(z);
4665
4668
  },
4666
4669
  set: function(e) {
4667
- yn(z, e);
4670
+ xn(z, e);
4668
4671
  },
4669
4672
  enumerable: !0,
4670
4673
  configurable: !0
4671
4674
  }), function(e) {
4672
4675
  for (var t = 0, n = ue.length; t < n; t++) {
4673
- var r = ct.call(this, e[t][0], e[t][1], e[t][2], ue[t][3], !0);
4676
+ var r = st.call(this, e[t][0], e[t][1], e[t][2], ue[t][3], !0);
4674
4677
  !1 === f && (p[r] = !0);
4675
4678
  var i = e[t][0].split("-");
4676
- st({
4679
+ ot({
4677
4680
  id: r,
4678
4681
  fontName: i[0],
4679
4682
  fontStyle: i[1] || ""
4680
4683
  });
4681
4684
  }
4682
- Pe.publish("addFonts", {
4685
+ Ne.publish("addFonts", {
4683
4686
  fonts: Ee,
4684
4687
  dictionary: G
4685
4688
  });
4686
- }.call(m, ue), xe = "F1", dt(a, n), Pe.publish("initialized"), m;
4689
+ }.call(m, ue), xe = "F1", ut(a, n), Ne.publish("initialized"), m;
4687
4690
  }
4688
4691
  ja.prototype.lsbFirstWord = function(e) {
4689
4692
  return String.fromCharCode(255 & e, e >> 8 & 255, e >> 16 & 255, e >> 24 & 255);
@@ -4711,48 +4714,53 @@ ja.prototype.lsbFirstWord = function(e) {
4711
4714
  }
4712
4715
  for (t in e) e.hasOwnProperty(t) && n.indexOf(t) < 0 && i--;
4713
4716
  return i === 0;
4714
- }, Z.API = { events: [] }, Z.version = "3.0.4";
4717
+ }, Z.API = { events: [] }, Z.version = "4.2.1";
4715
4718
  var Ra = Z.API, za = 1, Ba = function(e) {
4716
4719
  return e.replace(/\\/g, "\\\\").replace(/\(/g, "\\(").replace(/\)/g, "\\)");
4717
4720
  }, Va = function(e) {
4718
4721
  return e.replace(/\\\\/g, "\\").replace(/\\\(/g, "(").replace(/\\\)/g, ")");
4722
+ }, Ha = function(e) {
4723
+ return e.toString().replace(/#/g, "#23").replace(/[\s\n\r()<>[\]{}\/%]/g, function(e) {
4724
+ var t = e.charCodeAt(0).toString(16).toUpperCase();
4725
+ return "#" + (t.length === 1 ? "0" + t : t);
4726
+ });
4719
4727
  }, Q = function(e) {
4720
4728
  return e.toFixed(2);
4721
- }, Ha = function(e) {
4729
+ }, Ua = function(e) {
4722
4730
  return e.toFixed(5);
4723
4731
  };
4724
4732
  Ra.__acroform__ = {};
4725
- var Ua = function(e, t) {
4733
+ var Wa = function(e, t) {
4726
4734
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e;
4727
- }, Wa = function(e) {
4728
- return e * za;
4729
4735
  }, Ga = function(e) {
4730
- var t = new co(), n = $.internal.getHeight(e) || 0, r = $.internal.getWidth(e) || 0;
4736
+ return e * za;
4737
+ }, Ka = function(e) {
4738
+ var t = new lo(), n = $.internal.getHeight(e) || 0, r = $.internal.getWidth(e) || 0;
4731
4739
  return t.BBox = [
4732
4740
  0,
4733
4741
  0,
4734
4742
  Number(Q(r)),
4735
4743
  Number(Q(n))
4736
4744
  ], t;
4737
- }, Ka = Ra.__acroform__.setBit = function(e, t) {
4745
+ }, qa = Ra.__acroform__.setBit = function(e, t) {
4738
4746
  if (e ||= 0, t ||= 0, isNaN(e) || isNaN(t)) throw Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");
4739
4747
  return e | 1 << t;
4740
- }, qa = Ra.__acroform__.clearBit = function(e, t) {
4748
+ }, Ja = Ra.__acroform__.clearBit = function(e, t) {
4741
4749
  if (e ||= 0, t ||= 0, isNaN(e) || isNaN(t)) throw Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");
4742
4750
  return e & ~(1 << t);
4743
- }, Ja = Ra.__acroform__.getBit = function(e, t) {
4751
+ }, Ya = Ra.__acroform__.getBit = function(e, t) {
4744
4752
  if (isNaN(e) || isNaN(t)) throw Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");
4745
4753
  return e & 1 << t ? 1 : 0;
4746
- }, Ya = Ra.__acroform__.getBitForPdf = function(e, t) {
4754
+ }, Xa = Ra.__acroform__.getBitForPdf = function(e, t) {
4747
4755
  if (isNaN(e) || isNaN(t)) throw Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");
4748
- return Ja(e, t - 1);
4749
- }, Xa = Ra.__acroform__.setBitForPdf = function(e, t) {
4756
+ return Ya(e, t - 1);
4757
+ }, Za = Ra.__acroform__.setBitForPdf = function(e, t) {
4750
4758
  if (isNaN(e) || isNaN(t)) throw Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");
4751
- return Ka(e, t - 1);
4752
- }, Za = Ra.__acroform__.clearBitForPdf = function(e, t) {
4753
- if (isNaN(e) || isNaN(t)) throw Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");
4754
4759
  return qa(e, t - 1);
4755
- }, Qa = Ra.__acroform__.calculateCoordinates = function(e, t) {
4760
+ }, Qa = Ra.__acroform__.clearBitForPdf = function(e, t) {
4761
+ if (isNaN(e) || isNaN(t)) throw Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");
4762
+ return Ja(e, t - 1);
4763
+ }, $a = Ra.__acroform__.calculateCoordinates = function(e, t) {
4756
4764
  var n = t.internal.getHorizontalCoordinate, r = t.internal.getVerticalCoordinate, i = e[0], a = e[1], o = e[2], s = e[3], c = {};
4757
4765
  return c.lowerLeft_X = n(i) || 0, c.lowerLeft_Y = r(a + s) || 0, c.upperRight_X = n(i + o) || 0, c.upperRight_Y = r(a) || 0, [
4758
4766
  Number(Q(c.lowerLeft_X)),
@@ -4760,15 +4768,15 @@ var Ua = function(e, t) {
4760
4768
  Number(Q(c.upperRight_X)),
4761
4769
  Number(Q(c.upperRight_Y))
4762
4770
  ];
4763
- }, $a = function(e) {
4771
+ }, eo = function(e) {
4764
4772
  if (e.appearanceStreamContent) return e.appearanceStreamContent;
4765
4773
  if (e.V || e.DV) {
4766
- var t = [], n = eo(e, e._V || e.DV), r = e.scope.internal.getFont(e.fontName, e.fontStyle).id;
4774
+ var t = [], n = to(e, e._V || e.DV), r = e.scope.internal.getFont(e.fontName, e.fontStyle).id;
4767
4775
  t.push("/Tx BMC"), t.push("q"), t.push("BT"), t.push(e.scope.__private__.encodeColorString(e.color)), t.push("/" + r + " " + Q(n.fontSize) + " Tf"), t.push("1 0 0 1 0 0 Tm"), t.push(n.text), t.push("ET"), t.push("Q"), t.push("EMC");
4768
- var i = Ga(e);
4776
+ var i = Ka(e);
4769
4777
  return i.scope = e.scope, i.stream = t.join("\n"), i;
4770
4778
  }
4771
- }, eo = function(e, t) {
4779
+ }, to = function(e, t) {
4772
4780
  var n = e.fontSize === 0 ? e.maxFontSize : e.fontSize, r = {
4773
4781
  text: "",
4774
4782
  fontSize: ""
@@ -4783,14 +4791,14 @@ var Ua = function(e, t) {
4783
4791
  var s = $.internal.getWidth(e) || 0;
4784
4792
  s = s < 0 ? -s : s;
4785
4793
  var c = function(t, n, r) {
4786
- return t + 1 < i.length && to(n + " " + i[t + 1][0], e, r).width <= s - 4;
4794
+ return t + 1 < i.length && no(n + " " + i[t + 1][0], e, r).width <= s - 4;
4787
4795
  };
4788
4796
  a++;
4789
4797
  t: for (; a > 0;) {
4790
4798
  t = "", a--;
4791
- var l, u, d = to("3", e, a).height, f = e.multiline ? o - a : (o - d) / 2, p = f += 2, m = 0, h = 0, g = 0;
4799
+ var l, u, d = no("3", e, a).height, f = e.multiline ? o - a : (o - d) / 2, p = f += 2, m = 0, h = 0, g = 0;
4792
4800
  if (a <= 0) {
4793
- t = "(...) Tj\n", t += "% Width of Text: " + to(t, e, a = 12).width + ", FieldWidth:" + s + "\n";
4801
+ t = "(...) Tj\n", t += "% Width of Text: " + no(t, e, a = 12).width + ", FieldWidth:" + s + "\n";
4794
4802
  break;
4795
4803
  }
4796
4804
  for (var _ = "", v = 0, y = 0; y < i.length; y++) if (i.hasOwnProperty(y)) {
@@ -4827,7 +4835,7 @@ var Ua = function(e, t) {
4827
4835
  }
4828
4836
  w += E[0] + " ";
4829
4837
  }
4830
- switch (w = w.substr(w.length - 1) == " " ? w.substr(0, w.length - 1) : w, u = to(w, e, a).width, e.textAlign) {
4838
+ switch (w = w.substr(w.length - 1) == " " ? w.substr(0, w.length - 1) : w, u = no(w, e, a).width, e.textAlign) {
4831
4839
  case "right":
4832
4840
  l = s - u - 2;
4833
4841
  break;
@@ -4841,7 +4849,7 @@ var Ua = function(e, t) {
4841
4849
  break;
4842
4850
  }
4843
4851
  return r.text = t, r.fontSize = a, r;
4844
- }, to = function(e, t, n) {
4852
+ }, no = function(e, t, n) {
4845
4853
  var r = t.scope.internal.getFont(t.fontName, t.fontStyle), i = t.scope.getStringUnitWidth(e, {
4846
4854
  font: r,
4847
4855
  fontSize: parseFloat(n),
@@ -4855,14 +4863,14 @@ var Ua = function(e, t) {
4855
4863
  }) * parseFloat(n) * 1.5,
4856
4864
  width: i
4857
4865
  };
4858
- }, no = {
4866
+ }, ro = {
4859
4867
  fields: [],
4860
4868
  xForms: [],
4861
4869
  acroFormDictionaryRoot: null,
4862
4870
  printedOut: !1,
4863
4871
  internal: null,
4864
4872
  isInitialized: !1
4865
- }, ro = function(e, t) {
4873
+ }, io = function(e, t) {
4866
4874
  var n = {
4867
4875
  type: "reference",
4868
4876
  object: e
@@ -4870,10 +4878,10 @@ var Ua = function(e, t) {
4870
4878
  t.internal.getPageInfo(e.page).pageContext.annotations.find(function(e) {
4871
4879
  return e.type === n.type && e.object === n.object;
4872
4880
  }) === void 0 && t.internal.getPageInfo(e.page).pageContext.annotations.push(n);
4873
- }, io = function(e, t) {
4881
+ }, ao = function(e, t) {
4874
4882
  if (t.scope = e, e.internal !== void 0 && (e.internal.acroformPlugin === void 0 || !1 === e.internal.acroformPlugin.isInitialized)) {
4875
- if (uo.FieldNum = 0, e.internal.acroformPlugin = JSON.parse(JSON.stringify(no)), e.internal.acroformPlugin.acroFormDictionaryRoot) throw Error("Exception while creating AcroformDictionary");
4876
- za = e.internal.scaleFactor, e.internal.acroformPlugin.acroFormDictionaryRoot = new lo(), e.internal.acroformPlugin.acroFormDictionaryRoot.scope = e, e.internal.acroformPlugin.acroFormDictionaryRoot._eventID = e.internal.events.subscribe("postPutResources", function() {
4883
+ if (fo.FieldNum = 0, e.internal.acroformPlugin = JSON.parse(JSON.stringify(ro)), e.internal.acroformPlugin.acroFormDictionaryRoot) throw Error("Exception while creating AcroformDictionary");
4884
+ za = e.internal.scaleFactor, e.internal.acroformPlugin.acroFormDictionaryRoot = new uo(), e.internal.acroformPlugin.acroFormDictionaryRoot.scope = e, e.internal.acroformPlugin.acroFormDictionaryRoot._eventID = e.internal.events.subscribe("postPutResources", function() {
4877
4885
  (function(e) {
4878
4886
  e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID), delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID, e.internal.acroformPlugin.printedOut = !0;
4879
4887
  })(e);
@@ -4883,7 +4891,7 @@ var Ua = function(e, t) {
4883
4891
  var t = e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;
4884
4892
  for (var n in t) if (t.hasOwnProperty(n)) {
4885
4893
  var r = t[n];
4886
- r.objId = void 0, r.hasAnnotation && ro(r, e);
4894
+ r.objId = void 0, r.hasAnnotation && io(r, e);
4887
4895
  }
4888
4896
  })(e);
4889
4897
  }), e.internal.events.subscribe("putCatalog", function() {
@@ -4896,8 +4904,8 @@ var Ua = function(e, t) {
4896
4904
  var n = !e;
4897
4905
  for (var i in e || (t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId, !0), t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()), e ||= t.internal.acroformPlugin.acroFormDictionaryRoot.Kids) if (e.hasOwnProperty(i)) {
4898
4906
  var a = e[i], o = [], s = a.Rect;
4899
- if (a.Rect &&= Qa(a.Rect, t), t.internal.newObjectDeferredBegin(a.objId, !0), a.DA = $.createDefaultAppearanceStream(a), r(a) === "object" && typeof a.getKeyValueListForStream == "function" && (o = a.getKeyValueListForStream()), a.Rect = s, a.hasAppearanceStream && !a.appearanceStreamContent) {
4900
- var c = $a(a);
4907
+ if (a.Rect &&= $a(a.Rect, t), t.internal.newObjectDeferredBegin(a.objId, !0), a.DA = $.createDefaultAppearanceStream(a), r(a) === "object" && typeof a.getKeyValueListForStream == "function" && (o = a.getKeyValueListForStream()), a.Rect = s, a.hasAppearanceStream && !a.appearanceStreamContent) {
4908
+ var c = eo(a);
4901
4909
  o.push({
4902
4910
  key: "AP",
4903
4911
  value: "<</N " + c + ">>"
@@ -4934,7 +4942,7 @@ var Ua = function(e, t) {
4934
4942
  })(t, e);
4935
4943
  }), e.internal.acroformPlugin.isInitialized = !0;
4936
4944
  }
4937
- }, ao = Ra.__acroform__.arrayToPdfArray = function(e, t, n) {
4945
+ }, oo = Ra.__acroform__.arrayToPdfArray = function(e, t, n) {
4938
4946
  var i = function(e) {
4939
4947
  return e;
4940
4948
  };
@@ -4945,17 +4953,17 @@ var Ua = function(e, t) {
4945
4953
  case "object":
4946
4954
  a += e[o].toString();
4947
4955
  break;
4948
- case "string": e[o].substr(0, 1) === "/" ? a += e[o].toString() : (t !== void 0 && n && (i = n.internal.getEncryptor(t)), a += "(" + Ba(i(e[o].toString())) + ")");
4956
+ case "string": e[o].substr(0, 1) === "/" ? a += "/" + Ha(e[o].substr(1)) : (t !== void 0 && n && (i = n.internal.getEncryptor(t)), a += "(" + Ba(i(e[o].toString())) + ")");
4949
4957
  }
4950
4958
  return a + "]";
4951
4959
  }
4952
4960
  throw Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray");
4953
- }, oo = function(e, t, n) {
4961
+ }, so = function(e, t, n) {
4954
4962
  var r = function(e) {
4955
4963
  return e;
4956
4964
  };
4957
4965
  return t !== void 0 && n && (r = n.internal.getEncryptor(t)), (e ||= "").toString(), "(" + Ba(r(e)) + ")";
4958
- }, so = function() {
4966
+ }, co = function() {
4959
4967
  this._objId = void 0, this._scope = void 0, Object.defineProperty(this, "objId", {
4960
4968
  get: function() {
4961
4969
  if (this._objId === void 0) {
@@ -4972,16 +4980,16 @@ var Ua = function(e, t) {
4972
4980
  writable: !0
4973
4981
  });
4974
4982
  };
4975
- so.prototype.toString = function() {
4983
+ co.prototype.toString = function() {
4976
4984
  return this.objId + " 0 R";
4977
- }, so.prototype.putStream = function() {
4985
+ }, co.prototype.putStream = function() {
4978
4986
  var e = this.getKeyValueListForStream();
4979
4987
  this.scope.internal.putStream({
4980
4988
  data: this.stream,
4981
4989
  additionalKeyValues: e,
4982
4990
  objectId: this.objId
4983
4991
  }), this.scope.internal.out("endobj");
4984
- }, so.prototype.getKeyValueListForStream = function() {
4992
+ }, co.prototype.getKeyValueListForStream = function() {
4985
4993
  var e = [], t = Object.getOwnPropertyNames(this).filter(function(e) {
4986
4994
  return e != "content" && e != "appearanceStreamContent" && e != "scope" && e != "objId" && e.substring(0, 1) != "_";
4987
4995
  });
@@ -4989,8 +4997,8 @@ so.prototype.toString = function() {
4989
4997
  var r = t[n], i = this[r];
4990
4998
  i && (Array.isArray(i) ? e.push({
4991
4999
  key: r,
4992
- value: ao(i, this.objId, this.scope)
4993
- }) : i instanceof so ? (i.scope = this.scope, e.push({
5000
+ value: oo(i, this.objId, this.scope)
5001
+ }) : i instanceof co ? (i.scope = this.scope, e.push({
4994
5002
  key: r,
4995
5003
  value: i.objId + " 0 R"
4996
5004
  })) : typeof i != "function" && e.push({
@@ -5000,8 +5008,8 @@ so.prototype.toString = function() {
5000
5008
  }
5001
5009
  return e;
5002
5010
  };
5003
- var co = function() {
5004
- so.call(this), Object.defineProperty(this, "Type", {
5011
+ var lo = function() {
5012
+ co.call(this), Object.defineProperty(this, "Type", {
5005
5013
  value: "/XObject",
5006
5014
  configurable: !1,
5007
5015
  writable: !0
@@ -5038,9 +5046,9 @@ var co = function() {
5038
5046
  }
5039
5047
  });
5040
5048
  };
5041
- Ua(co, so);
5042
- var lo = function() {
5043
- so.call(this);
5049
+ Wa(lo, co);
5050
+ var uo = function() {
5051
+ co.call(this);
5044
5052
  var e, t = [];
5045
5053
  Object.defineProperty(this, "Kids", {
5046
5054
  enumerable: !1,
@@ -5070,9 +5078,9 @@ var lo = function() {
5070
5078
  }
5071
5079
  });
5072
5080
  };
5073
- Ua(lo, so);
5074
- var uo = function e() {
5075
- so.call(this);
5081
+ Wa(uo, co);
5082
+ var fo = function e() {
5083
+ co.call(this);
5076
5084
  var t = 4;
5077
5085
  Object.defineProperty(this, "F", {
5078
5086
  enumerable: !1,
@@ -5088,10 +5096,10 @@ var uo = function e() {
5088
5096
  enumerable: !0,
5089
5097
  configurable: !0,
5090
5098
  get: function() {
5091
- return !!Ya(t, 3);
5099
+ return !!Xa(t, 3);
5092
5100
  },
5093
5101
  set: function(e) {
5094
- this.F = !!e == 1 ? Xa(t, 3) : Za(t, 3);
5102
+ this.F = !!e == 1 ? Za(t, 3) : Qa(t, 3);
5095
5103
  }
5096
5104
  });
5097
5105
  var n = 0;
@@ -5178,7 +5186,7 @@ var uo = function e() {
5178
5186
  configurable: !1,
5179
5187
  get: function() {
5180
5188
  if (!a || a.length < 1) {
5181
- if (this instanceof yo) return;
5189
+ if (this instanceof bo) return;
5182
5190
  a = "FieldObject" + e.FieldNum++;
5183
5191
  }
5184
5192
  var t = function(e) {
@@ -5259,7 +5267,7 @@ var uo = function e() {
5259
5267
  enumerable: !0,
5260
5268
  configurable: !1,
5261
5269
  get: function() {
5262
- if (!(!d || this instanceof yo || this instanceof xo)) return oo(d, this.objId, this.scope);
5270
+ if (!(!d || this instanceof bo || this instanceof So)) return so(d, this.objId, this.scope);
5263
5271
  },
5264
5272
  set: function(e) {
5265
5273
  e = e.toString(), d = e;
@@ -5270,19 +5278,19 @@ var uo = function e() {
5270
5278
  enumerable: !1,
5271
5279
  configurable: !1,
5272
5280
  get: function() {
5273
- if (f) return this instanceof go == 0 ? oo(f, this.objId, this.scope) : f;
5281
+ if (f) return this instanceof _o == 0 ? so(f, this.objId, this.scope) : f;
5274
5282
  },
5275
5283
  set: function(e) {
5276
- e = e.toString(), f = this instanceof go == 0 ? e.substr(0, 1) === "(" ? Va(e.substr(1, e.length - 2)) : Va(e) : e;
5284
+ e = e.toString(), f = this instanceof _o == 0 ? e.substr(0, 1) === "(" ? Va(e.substr(1, e.length - 2)) : Va(e) : e;
5277
5285
  }
5278
5286
  }), Object.defineProperty(this, "defaultValue", {
5279
5287
  enumerable: !0,
5280
5288
  configurable: !0,
5281
5289
  get: function() {
5282
- return this instanceof go == 1 ? Va(f.substr(1, f.length - 1)) : f;
5290
+ return this instanceof _o == 1 ? Va(f.substr(1, f.length - 1)) : f;
5283
5291
  },
5284
5292
  set: function(e) {
5285
- e = e.toString(), f = this instanceof go == 1 ? "/" + e : e;
5293
+ e = e.toString(), f = this instanceof _o == 1 ? "/" + Ha(e) : e;
5286
5294
  }
5287
5295
  });
5288
5296
  var p = null;
@@ -5299,19 +5307,19 @@ var uo = function e() {
5299
5307
  enumerable: !1,
5300
5308
  configurable: !1,
5301
5309
  get: function() {
5302
- if (p) return this instanceof go == 0 ? oo(p, this.objId, this.scope) : p;
5310
+ if (p) return this instanceof _o == 0 ? so(p, this.objId, this.scope) : p;
5303
5311
  },
5304
5312
  set: function(e) {
5305
- e = e.toString(), p = this instanceof go == 0 ? e.substr(0, 1) === "(" ? Va(e.substr(1, e.length - 2)) : Va(e) : e;
5313
+ e = e.toString(), p = this instanceof _o == 0 ? e.substr(0, 1) === "(" ? Va(e.substr(1, e.length - 2)) : Va(e) : e;
5306
5314
  }
5307
5315
  }), Object.defineProperty(this, "value", {
5308
5316
  enumerable: !0,
5309
5317
  configurable: !0,
5310
5318
  get: function() {
5311
- return this instanceof go == 1 ? Va(p.substr(1, p.length - 1)) : p;
5319
+ return this instanceof _o == 1 ? Va(p.substr(1, p.length - 1)) : p;
5312
5320
  },
5313
5321
  set: function(e) {
5314
- e = e.toString(), p = this instanceof go == 1 ? "/" + e : e;
5322
+ e = e.toString(), p = this instanceof _o == 1 ? "/" + Ha(e) : e;
5315
5323
  }
5316
5324
  }), Object.defineProperty(this, "hasAnnotation", {
5317
5325
  enumerable: !0,
@@ -5355,28 +5363,28 @@ var uo = function e() {
5355
5363
  enumerable: !0,
5356
5364
  configurable: !0,
5357
5365
  get: function() {
5358
- return !!Ya(this.Ff, 1);
5366
+ return !!Xa(this.Ff, 1);
5359
5367
  },
5360
5368
  set: function(e) {
5361
- this.Ff = !!e == 1 ? Xa(this.Ff, 1) : Za(this.Ff, 1);
5369
+ this.Ff = !!e == 1 ? Za(this.Ff, 1) : Qa(this.Ff, 1);
5362
5370
  }
5363
5371
  }), Object.defineProperty(this, "required", {
5364
5372
  enumerable: !0,
5365
5373
  configurable: !0,
5366
5374
  get: function() {
5367
- return !!Ya(this.Ff, 2);
5375
+ return !!Xa(this.Ff, 2);
5368
5376
  },
5369
5377
  set: function(e) {
5370
- this.Ff = !!e == 1 ? Xa(this.Ff, 2) : Za(this.Ff, 2);
5378
+ this.Ff = !!e == 1 ? Za(this.Ff, 2) : Qa(this.Ff, 2);
5371
5379
  }
5372
5380
  }), Object.defineProperty(this, "noExport", {
5373
5381
  enumerable: !0,
5374
5382
  configurable: !0,
5375
5383
  get: function() {
5376
- return !!Ya(this.Ff, 3);
5384
+ return !!Xa(this.Ff, 3);
5377
5385
  },
5378
5386
  set: function(e) {
5379
- this.Ff = !!e == 1 ? Xa(this.Ff, 3) : Za(this.Ff, 3);
5387
+ this.Ff = !!e == 1 ? Za(this.Ff, 3) : Qa(this.Ff, 3);
5380
5388
  }
5381
5389
  });
5382
5390
  var g = null;
@@ -5426,9 +5434,9 @@ var uo = function e() {
5426
5434
  }
5427
5435
  });
5428
5436
  };
5429
- Ua(uo, so);
5430
- var fo = function() {
5431
- uo.call(this), this.FT = "/Ch", this.V = "()", this.fontName = "zapfdingbats";
5437
+ Wa(fo, co);
5438
+ var po = function() {
5439
+ fo.call(this), this.FT = "/Ch", this.V = "()", this.fontName = "zapfdingbats";
5432
5440
  var e = 0;
5433
5441
  Object.defineProperty(this, "TI", {
5434
5442
  enumerable: !0,
@@ -5454,7 +5462,7 @@ var fo = function() {
5454
5462
  enumerable: !0,
5455
5463
  configurable: !1,
5456
5464
  get: function() {
5457
- return ao(t, this.objId, this.scope);
5465
+ return oo(t, this.objId, this.scope);
5458
5466
  },
5459
5467
  set: function(e) {
5460
5468
  var n, r = [];
@@ -5476,107 +5484,107 @@ var fo = function() {
5476
5484
  enumerable: !0,
5477
5485
  configurable: !0,
5478
5486
  get: function() {
5479
- return !!Ya(this.Ff, 18);
5487
+ return !!Xa(this.Ff, 18);
5480
5488
  },
5481
5489
  set: function(e) {
5482
- this.Ff = !!e == 1 ? Xa(this.Ff, 18) : Za(this.Ff, 18);
5490
+ this.Ff = !!e == 1 ? Za(this.Ff, 18) : Qa(this.Ff, 18);
5483
5491
  }
5484
5492
  }), Object.defineProperty(this, "edit", {
5485
5493
  enumerable: !0,
5486
5494
  configurable: !0,
5487
5495
  get: function() {
5488
- return !!Ya(this.Ff, 19);
5496
+ return !!Xa(this.Ff, 19);
5489
5497
  },
5490
5498
  set: function(e) {
5491
- !0 === this.combo && (this.Ff = !!e == 1 ? Xa(this.Ff, 19) : Za(this.Ff, 19));
5499
+ !0 === this.combo && (this.Ff = !!e == 1 ? Za(this.Ff, 19) : Qa(this.Ff, 19));
5492
5500
  }
5493
5501
  }), Object.defineProperty(this, "sort", {
5494
5502
  enumerable: !0,
5495
5503
  configurable: !0,
5496
5504
  get: function() {
5497
- return !!Ya(this.Ff, 20);
5505
+ return !!Xa(this.Ff, 20);
5498
5506
  },
5499
5507
  set: function(e) {
5500
- !!e == 1 ? (this.Ff = Xa(this.Ff, 20), t.sort()) : this.Ff = Za(this.Ff, 20);
5508
+ !!e == 1 ? (this.Ff = Za(this.Ff, 20), t.sort()) : this.Ff = Qa(this.Ff, 20);
5501
5509
  }
5502
5510
  }), Object.defineProperty(this, "multiSelect", {
5503
5511
  enumerable: !0,
5504
5512
  configurable: !0,
5505
5513
  get: function() {
5506
- return !!Ya(this.Ff, 22);
5514
+ return !!Xa(this.Ff, 22);
5507
5515
  },
5508
5516
  set: function(e) {
5509
- this.Ff = !!e == 1 ? Xa(this.Ff, 22) : Za(this.Ff, 22);
5517
+ this.Ff = !!e == 1 ? Za(this.Ff, 22) : Qa(this.Ff, 22);
5510
5518
  }
5511
5519
  }), Object.defineProperty(this, "doNotSpellCheck", {
5512
5520
  enumerable: !0,
5513
5521
  configurable: !0,
5514
5522
  get: function() {
5515
- return !!Ya(this.Ff, 23);
5523
+ return !!Xa(this.Ff, 23);
5516
5524
  },
5517
5525
  set: function(e) {
5518
- this.Ff = !!e == 1 ? Xa(this.Ff, 23) : Za(this.Ff, 23);
5526
+ this.Ff = !!e == 1 ? Za(this.Ff, 23) : Qa(this.Ff, 23);
5519
5527
  }
5520
5528
  }), Object.defineProperty(this, "commitOnSelChange", {
5521
5529
  enumerable: !0,
5522
5530
  configurable: !0,
5523
5531
  get: function() {
5524
- return !!Ya(this.Ff, 27);
5532
+ return !!Xa(this.Ff, 27);
5525
5533
  },
5526
5534
  set: function(e) {
5527
- this.Ff = !!e == 1 ? Xa(this.Ff, 27) : Za(this.Ff, 27);
5535
+ this.Ff = !!e == 1 ? Za(this.Ff, 27) : Qa(this.Ff, 27);
5528
5536
  }
5529
5537
  }), this.hasAppearanceStream = !1;
5530
5538
  };
5531
- Ua(fo, uo);
5532
- var po = function() {
5533
- fo.call(this), this.fontName = "helvetica", this.combo = !1;
5534
- };
5535
- Ua(po, fo);
5539
+ Wa(po, fo);
5536
5540
  var mo = function() {
5537
- po.call(this), this.combo = !0;
5541
+ po.call(this), this.fontName = "helvetica", this.combo = !1;
5538
5542
  };
5539
- Ua(mo, po);
5543
+ Wa(mo, po);
5540
5544
  var ho = function() {
5541
- mo.call(this), this.edit = !0;
5545
+ mo.call(this), this.combo = !0;
5542
5546
  };
5543
- Ua(ho, mo);
5547
+ Wa(ho, mo);
5544
5548
  var go = function() {
5545
- uo.call(this), this.FT = "/Btn", Object.defineProperty(this, "noToggleToOff", {
5549
+ ho.call(this), this.edit = !0;
5550
+ };
5551
+ Wa(go, ho);
5552
+ var _o = function() {
5553
+ fo.call(this), this.FT = "/Btn", Object.defineProperty(this, "noToggleToOff", {
5546
5554
  enumerable: !0,
5547
5555
  configurable: !0,
5548
5556
  get: function() {
5549
- return !!Ya(this.Ff, 15);
5557
+ return !!Xa(this.Ff, 15);
5550
5558
  },
5551
5559
  set: function(e) {
5552
- this.Ff = !!e == 1 ? Xa(this.Ff, 15) : Za(this.Ff, 15);
5560
+ this.Ff = !!e == 1 ? Za(this.Ff, 15) : Qa(this.Ff, 15);
5553
5561
  }
5554
5562
  }), Object.defineProperty(this, "radio", {
5555
5563
  enumerable: !0,
5556
5564
  configurable: !0,
5557
5565
  get: function() {
5558
- return !!Ya(this.Ff, 16);
5566
+ return !!Xa(this.Ff, 16);
5559
5567
  },
5560
5568
  set: function(e) {
5561
- this.Ff = !!e == 1 ? Xa(this.Ff, 16) : Za(this.Ff, 16);
5569
+ this.Ff = !!e == 1 ? Za(this.Ff, 16) : Qa(this.Ff, 16);
5562
5570
  }
5563
5571
  }), Object.defineProperty(this, "pushButton", {
5564
5572
  enumerable: !0,
5565
5573
  configurable: !0,
5566
5574
  get: function() {
5567
- return !!Ya(this.Ff, 17);
5575
+ return !!Xa(this.Ff, 17);
5568
5576
  },
5569
5577
  set: function(e) {
5570
- this.Ff = !!e == 1 ? Xa(this.Ff, 17) : Za(this.Ff, 17);
5578
+ this.Ff = !!e == 1 ? Za(this.Ff, 17) : Qa(this.Ff, 17);
5571
5579
  }
5572
5580
  }), Object.defineProperty(this, "radioIsUnison", {
5573
5581
  enumerable: !0,
5574
5582
  configurable: !0,
5575
5583
  get: function() {
5576
- return !!Ya(this.Ff, 26);
5584
+ return !!Xa(this.Ff, 26);
5577
5585
  },
5578
5586
  set: function(e) {
5579
- this.Ff = !!e == 1 ? Xa(this.Ff, 26) : Za(this.Ff, 26);
5587
+ this.Ff = !!e == 1 ? Za(this.Ff, 26) : Qa(this.Ff, 26);
5580
5588
  }
5581
5589
  });
5582
5590
  var e, t = {};
@@ -5612,7 +5620,8 @@ var go = function() {
5612
5620
  return e;
5613
5621
  },
5614
5622
  set: function(t) {
5615
- e = t;
5623
+ var n = t == null ? "" : t.toString();
5624
+ n.substr(0, 1) === "/" && (n = n.substr(1)), e = "/" + Ha(n);
5616
5625
  }
5617
5626
  }), Object.defineProperty(this, "appearanceState", {
5618
5627
  enumerable: !0,
@@ -5621,17 +5630,17 @@ var go = function() {
5621
5630
  return e.substr(1, e.length - 1);
5622
5631
  },
5623
5632
  set: function(t) {
5624
- e = "/" + t;
5633
+ e = "/" + Ha(t);
5625
5634
  }
5626
5635
  });
5627
5636
  };
5628
- Ua(go, uo);
5629
- var _o = function() {
5630
- go.call(this), this.pushButton = !0;
5631
- };
5632
- Ua(_o, go);
5637
+ Wa(_o, fo);
5633
5638
  var vo = function() {
5634
- go.call(this), this.radio = !0, this.pushButton = !1;
5639
+ _o.call(this), this.pushButton = !0;
5640
+ };
5641
+ Wa(vo, _o);
5642
+ var yo = function() {
5643
+ _o.call(this), this.radio = !0, this.pushButton = !1;
5635
5644
  var e = [];
5636
5645
  Object.defineProperty(this, "Kids", {
5637
5646
  enumerable: !0,
@@ -5644,10 +5653,10 @@ var vo = function() {
5644
5653
  }
5645
5654
  });
5646
5655
  };
5647
- Ua(vo, go);
5648
- var yo = function() {
5656
+ Wa(yo, _o);
5657
+ var bo = function() {
5649
5658
  var e, t;
5650
- uo.call(this), Object.defineProperty(this, "Parent", {
5659
+ fo.call(this), Object.defineProperty(this, "Parent", {
5651
5660
  enumerable: !1,
5652
5661
  configurable: !1,
5653
5662
  get: function() {
@@ -5698,7 +5707,8 @@ var yo = function() {
5698
5707
  return n;
5699
5708
  },
5700
5709
  set: function(e) {
5701
- n = e;
5710
+ var t = e == null ? "" : e.toString();
5711
+ t.substr(0, 1) === "/" && (t = t.substr(1)), n = "/" + Ha(t);
5702
5712
  }
5703
5713
  }), Object.defineProperty(this, "appearanceState", {
5704
5714
  enumerable: !0,
@@ -5707,78 +5717,79 @@ var yo = function() {
5707
5717
  return n.substr(1, n.length - 1);
5708
5718
  },
5709
5719
  set: function(e) {
5710
- n = "/" + e;
5720
+ var t = e == null ? "" : e.toString();
5721
+ t.substr(0, 1) === "/" && (t = t.substr(1)), n = "/" + Ha(t);
5711
5722
  }
5712
5723
  }), this.caption = "l", this.appearanceState = "Off", this._AppearanceType = $.RadioButton.Circle, this.appearanceStreamContent = this._AppearanceType.createAppearanceStream(this.optionName);
5713
5724
  };
5714
- Ua(yo, uo), vo.prototype.setAppearance = function(e) {
5725
+ Wa(bo, fo), yo.prototype.setAppearance = function(e) {
5715
5726
  if (!("createAppearanceStream" in e) || !("getCA" in e)) throw Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");
5716
5727
  for (var t in this.Kids) if (this.Kids.hasOwnProperty(t)) {
5717
5728
  var n = this.Kids[t];
5718
5729
  n.appearanceStreamContent = e.createAppearanceStream(n.optionName), n.caption = e.getCA();
5719
5730
  }
5720
- }, vo.prototype.createOption = function(e) {
5721
- var t = new yo();
5722
- return t.Parent = this, t.optionName = e, this.Kids.push(t), Co.call(this.scope, t), t;
5723
- };
5724
- var bo = function() {
5725
- go.call(this), this.fontName = "zapfdingbats", this.caption = "3", this.appearanceState = "On", this.value = "On", this.textAlign = "center", this.appearanceStreamContent = $.CheckBox.createAppearanceStream();
5731
+ }, yo.prototype.createOption = function(e) {
5732
+ var t = new bo();
5733
+ return t.Parent = this, t.optionName = e, this.Kids.push(t), wo.call(this.scope, t), t;
5726
5734
  };
5727
- Ua(bo, go);
5728
5735
  var xo = function() {
5729
- uo.call(this), this.FT = "/Tx", Object.defineProperty(this, "multiline", {
5736
+ _o.call(this), this.fontName = "zapfdingbats", this.caption = "3", this.appearanceState = "On", this.value = "On", this.textAlign = "center", this.appearanceStreamContent = $.CheckBox.createAppearanceStream();
5737
+ };
5738
+ Wa(xo, _o);
5739
+ var So = function() {
5740
+ fo.call(this), this.FT = "/Tx", Object.defineProperty(this, "multiline", {
5730
5741
  enumerable: !0,
5731
5742
  configurable: !0,
5732
5743
  get: function() {
5733
- return !!Ya(this.Ff, 13);
5744
+ return !!Xa(this.Ff, 13);
5734
5745
  },
5735
5746
  set: function(e) {
5736
- this.Ff = !!e == 1 ? Xa(this.Ff, 13) : Za(this.Ff, 13);
5747
+ this.Ff = !!e == 1 ? Za(this.Ff, 13) : Qa(this.Ff, 13);
5737
5748
  }
5738
5749
  }), Object.defineProperty(this, "fileSelect", {
5739
5750
  enumerable: !0,
5740
5751
  configurable: !0,
5741
5752
  get: function() {
5742
- return !!Ya(this.Ff, 21);
5753
+ return !!Xa(this.Ff, 21);
5743
5754
  },
5744
5755
  set: function(e) {
5745
- this.Ff = !!e == 1 ? Xa(this.Ff, 21) : Za(this.Ff, 21);
5756
+ this.Ff = !!e == 1 ? Za(this.Ff, 21) : Qa(this.Ff, 21);
5746
5757
  }
5747
5758
  }), Object.defineProperty(this, "doNotSpellCheck", {
5748
5759
  enumerable: !0,
5749
5760
  configurable: !0,
5750
5761
  get: function() {
5751
- return !!Ya(this.Ff, 23);
5762
+ return !!Xa(this.Ff, 23);
5752
5763
  },
5753
5764
  set: function(e) {
5754
- this.Ff = !!e == 1 ? Xa(this.Ff, 23) : Za(this.Ff, 23);
5765
+ this.Ff = !!e == 1 ? Za(this.Ff, 23) : Qa(this.Ff, 23);
5755
5766
  }
5756
5767
  }), Object.defineProperty(this, "doNotScroll", {
5757
5768
  enumerable: !0,
5758
5769
  configurable: !0,
5759
5770
  get: function() {
5760
- return !!Ya(this.Ff, 24);
5771
+ return !!Xa(this.Ff, 24);
5761
5772
  },
5762
5773
  set: function(e) {
5763
- this.Ff = !!e == 1 ? Xa(this.Ff, 24) : Za(this.Ff, 24);
5774
+ this.Ff = !!e == 1 ? Za(this.Ff, 24) : Qa(this.Ff, 24);
5764
5775
  }
5765
5776
  }), Object.defineProperty(this, "comb", {
5766
5777
  enumerable: !0,
5767
5778
  configurable: !0,
5768
5779
  get: function() {
5769
- return !!Ya(this.Ff, 25);
5780
+ return !!Xa(this.Ff, 25);
5770
5781
  },
5771
5782
  set: function(e) {
5772
- this.Ff = !!e == 1 ? Xa(this.Ff, 25) : Za(this.Ff, 25);
5783
+ this.Ff = !!e == 1 ? Za(this.Ff, 25) : Qa(this.Ff, 25);
5773
5784
  }
5774
5785
  }), Object.defineProperty(this, "richText", {
5775
5786
  enumerable: !0,
5776
5787
  configurable: !0,
5777
5788
  get: function() {
5778
- return !!Ya(this.Ff, 26);
5789
+ return !!Xa(this.Ff, 26);
5779
5790
  },
5780
5791
  set: function(e) {
5781
- this.Ff = !!e == 1 ? Xa(this.Ff, 26) : Za(this.Ff, 26);
5792
+ this.Ff = !!e == 1 ? Za(this.Ff, 26) : Qa(this.Ff, 26);
5782
5793
  }
5783
5794
  });
5784
5795
  var e = null;
@@ -5808,20 +5819,20 @@ var xo = function() {
5808
5819
  }
5809
5820
  });
5810
5821
  };
5811
- Ua(xo, uo);
5812
- var So = function() {
5813
- xo.call(this), Object.defineProperty(this, "password", {
5822
+ Wa(So, fo);
5823
+ var Co = function() {
5824
+ So.call(this), Object.defineProperty(this, "password", {
5814
5825
  enumerable: !0,
5815
5826
  configurable: !0,
5816
5827
  get: function() {
5817
- return !!Ya(this.Ff, 14);
5828
+ return !!Xa(this.Ff, 14);
5818
5829
  },
5819
5830
  set: function(e) {
5820
- this.Ff = !!e == 1 ? Xa(this.Ff, 14) : Za(this.Ff, 14);
5831
+ this.Ff = !!e == 1 ? Za(this.Ff, 14) : Qa(this.Ff, 14);
5821
5832
  }
5822
5833
  }), this.password = !0;
5823
5834
  };
5824
- Ua(So, xo);
5835
+ Wa(Co, So);
5825
5836
  var $ = {
5826
5837
  CheckBox: {
5827
5838
  createAppearanceStream: function() {
@@ -5834,19 +5845,19 @@ var $ = {
5834
5845
  };
5835
5846
  },
5836
5847
  YesPushDown: function(e) {
5837
- var t = Ga(e);
5848
+ var t = Ka(e);
5838
5849
  t.scope = e.scope;
5839
- var n = [], r = e.scope.internal.getFont(e.fontName, e.fontStyle).id, i = e.scope.__private__.encodeColorString(e.color), a = eo(e, e.caption);
5850
+ var n = [], r = e.scope.internal.getFont(e.fontName, e.fontStyle).id, i = e.scope.__private__.encodeColorString(e.color), a = to(e, e.caption);
5840
5851
  return n.push("0.749023 g"), n.push("0 0 " + Q($.internal.getWidth(e)) + " " + Q($.internal.getHeight(e)) + " re"), n.push("f"), n.push("BMC"), n.push("q"), n.push("0 0 1 rg"), n.push("/" + r + " " + Q(a.fontSize) + " Tf " + i), n.push("BT"), n.push(a.text), n.push("ET"), n.push("Q"), n.push("EMC"), t.stream = n.join("\n"), t;
5841
5852
  },
5842
5853
  YesNormal: function(e) {
5843
- var t = Ga(e);
5854
+ var t = Ka(e);
5844
5855
  t.scope = e.scope;
5845
- var n = e.scope.internal.getFont(e.fontName, e.fontStyle).id, r = e.scope.__private__.encodeColorString(e.color), i = [], a = $.internal.getHeight(e), o = $.internal.getWidth(e), s = eo(e, e.caption);
5856
+ var n = e.scope.internal.getFont(e.fontName, e.fontStyle).id, r = e.scope.__private__.encodeColorString(e.color), i = [], a = $.internal.getHeight(e), o = $.internal.getWidth(e), s = to(e, e.caption);
5846
5857
  return i.push("1 g"), i.push("0 0 " + Q(o) + " " + Q(a) + " re"), i.push("f"), i.push("q"), i.push("0 0 1 rg"), i.push("0 0 " + Q(o - 1) + " " + Q(a - 1) + " re"), i.push("W"), i.push("n"), i.push("0 g"), i.push("BT"), i.push("/" + n + " " + Q(s.fontSize) + " Tf " + r), i.push(s.text), i.push("ET"), i.push("Q"), t.stream = i.join("\n"), t;
5847
5858
  },
5848
5859
  OffPushDown: function(e) {
5849
- var t = Ga(e);
5860
+ var t = Ka(e);
5850
5861
  t.scope = e.scope;
5851
5862
  var n = [];
5852
5863
  return n.push("0.749023 g"), n.push("0 0 " + Q($.internal.getWidth(e)) + " " + Q($.internal.getHeight(e)) + " re"), n.push("f"), t.stream = n.join("\n"), t;
@@ -5865,28 +5876,28 @@ var $ = {
5865
5876
  return "l";
5866
5877
  },
5867
5878
  YesNormal: function(e) {
5868
- var t = Ga(e);
5879
+ var t = Ka(e);
5869
5880
  t.scope = e.scope;
5870
5881
  var n = [], r = $.internal.getWidth(e) <= $.internal.getHeight(e) ? $.internal.getWidth(e) / 4 : $.internal.getHeight(e) / 4;
5871
5882
  r = Number((.9 * r).toFixed(5));
5872
5883
  var i = $.internal.Bezier_C, a = Number((r * i).toFixed(5));
5873
- return n.push("q"), n.push("1 0 0 1 " + Ha($.internal.getWidth(e) / 2) + " " + Ha($.internal.getHeight(e) / 2) + " cm"), n.push(r + " 0 m"), n.push(r + " " + a + " " + a + " " + r + " 0 " + r + " c"), n.push("-" + a + " " + r + " -" + r + " " + a + " -" + r + " 0 c"), n.push("-" + r + " -" + a + " -" + a + " -" + r + " 0 -" + r + " c"), n.push(a + " -" + r + " " + r + " -" + a + " " + r + " 0 c"), n.push("f"), n.push("Q"), t.stream = n.join("\n"), t;
5884
+ return n.push("q"), n.push("1 0 0 1 " + Ua($.internal.getWidth(e) / 2) + " " + Ua($.internal.getHeight(e) / 2) + " cm"), n.push(r + " 0 m"), n.push(r + " " + a + " " + a + " " + r + " 0 " + r + " c"), n.push("-" + a + " " + r + " -" + r + " " + a + " -" + r + " 0 c"), n.push("-" + r + " -" + a + " -" + a + " -" + r + " 0 -" + r + " c"), n.push(a + " -" + r + " " + r + " -" + a + " " + r + " 0 c"), n.push("f"), n.push("Q"), t.stream = n.join("\n"), t;
5874
5885
  },
5875
5886
  YesPushDown: function(e) {
5876
- var t = Ga(e);
5887
+ var t = Ka(e);
5877
5888
  t.scope = e.scope;
5878
5889
  var n = [], r = $.internal.getWidth(e) <= $.internal.getHeight(e) ? $.internal.getWidth(e) / 4 : $.internal.getHeight(e) / 4;
5879
5890
  r = Number((.9 * r).toFixed(5));
5880
5891
  var i = Number((2 * r).toFixed(5)), a = Number((i * $.internal.Bezier_C).toFixed(5)), o = Number((r * $.internal.Bezier_C).toFixed(5));
5881
- return n.push("0.749023 g"), n.push("q"), n.push("1 0 0 1 " + Ha($.internal.getWidth(e) / 2) + " " + Ha($.internal.getHeight(e) / 2) + " cm"), n.push(i + " 0 m"), n.push(i + " " + a + " " + a + " " + i + " 0 " + i + " c"), n.push("-" + a + " " + i + " -" + i + " " + a + " -" + i + " 0 c"), n.push("-" + i + " -" + a + " -" + a + " -" + i + " 0 -" + i + " c"), n.push(a + " -" + i + " " + i + " -" + a + " " + i + " 0 c"), n.push("f"), n.push("Q"), n.push("0 g"), n.push("q"), n.push("1 0 0 1 " + Ha($.internal.getWidth(e) / 2) + " " + Ha($.internal.getHeight(e) / 2) + " cm"), n.push(r + " 0 m"), n.push(r + " " + o + " " + o + " " + r + " 0 " + r + " c"), n.push("-" + o + " " + r + " -" + r + " " + o + " -" + r + " 0 c"), n.push("-" + r + " -" + o + " -" + o + " -" + r + " 0 -" + r + " c"), n.push(o + " -" + r + " " + r + " -" + o + " " + r + " 0 c"), n.push("f"), n.push("Q"), t.stream = n.join("\n"), t;
5892
+ return n.push("0.749023 g"), n.push("q"), n.push("1 0 0 1 " + Ua($.internal.getWidth(e) / 2) + " " + Ua($.internal.getHeight(e) / 2) + " cm"), n.push(i + " 0 m"), n.push(i + " " + a + " " + a + " " + i + " 0 " + i + " c"), n.push("-" + a + " " + i + " -" + i + " " + a + " -" + i + " 0 c"), n.push("-" + i + " -" + a + " -" + a + " -" + i + " 0 -" + i + " c"), n.push(a + " -" + i + " " + i + " -" + a + " " + i + " 0 c"), n.push("f"), n.push("Q"), n.push("0 g"), n.push("q"), n.push("1 0 0 1 " + Ua($.internal.getWidth(e) / 2) + " " + Ua($.internal.getHeight(e) / 2) + " cm"), n.push(r + " 0 m"), n.push(r + " " + o + " " + o + " " + r + " 0 " + r + " c"), n.push("-" + o + " " + r + " -" + r + " " + o + " -" + r + " 0 c"), n.push("-" + r + " -" + o + " -" + o + " -" + r + " 0 -" + r + " c"), n.push(o + " -" + r + " " + r + " -" + o + " " + r + " 0 c"), n.push("f"), n.push("Q"), t.stream = n.join("\n"), t;
5882
5893
  },
5883
5894
  OffPushDown: function(e) {
5884
- var t = Ga(e);
5895
+ var t = Ka(e);
5885
5896
  t.scope = e.scope;
5886
5897
  var n = [], r = $.internal.getWidth(e) <= $.internal.getHeight(e) ? $.internal.getWidth(e) / 4 : $.internal.getHeight(e) / 4;
5887
5898
  r = Number((.9 * r).toFixed(5));
5888
5899
  var i = Number((2 * r).toFixed(5)), a = Number((i * $.internal.Bezier_C).toFixed(5));
5889
- return n.push("0.749023 g"), n.push("q"), n.push("1 0 0 1 " + Ha($.internal.getWidth(e) / 2) + " " + Ha($.internal.getHeight(e) / 2) + " cm"), n.push(i + " 0 m"), n.push(i + " " + a + " " + a + " " + i + " 0 " + i + " c"), n.push("-" + a + " " + i + " -" + i + " " + a + " -" + i + " 0 c"), n.push("-" + i + " -" + a + " -" + a + " -" + i + " 0 -" + i + " c"), n.push(a + " -" + i + " " + i + " -" + a + " " + i + " 0 c"), n.push("f"), n.push("Q"), t.stream = n.join("\n"), t;
5900
+ return n.push("0.749023 g"), n.push("q"), n.push("1 0 0 1 " + Ua($.internal.getWidth(e) / 2) + " " + Ua($.internal.getHeight(e) / 2) + " cm"), n.push(i + " 0 m"), n.push(i + " " + a + " " + a + " " + i + " 0 " + i + " c"), n.push("-" + a + " " + i + " -" + i + " " + a + " -" + i + " 0 c"), n.push("-" + i + " -" + a + " -" + a + " -" + i + " 0 -" + i + " c"), n.push(a + " -" + i + " " + i + " -" + a + " " + i + " 0 c"), n.push("f"), n.push("Q"), t.stream = n.join("\n"), t;
5890
5901
  }
5891
5902
  },
5892
5903
  Cross: {
@@ -5901,19 +5912,19 @@ var $ = {
5901
5912
  return "8";
5902
5913
  },
5903
5914
  YesNormal: function(e) {
5904
- var t = Ga(e);
5915
+ var t = Ka(e);
5905
5916
  t.scope = e.scope;
5906
5917
  var n = [], r = $.internal.calculateCross(e);
5907
5918
  return n.push("q"), n.push("1 1 " + Q($.internal.getWidth(e) - 2) + " " + Q($.internal.getHeight(e) - 2) + " re"), n.push("W"), n.push("n"), n.push(Q(r.x1.x) + " " + Q(r.x1.y) + " m"), n.push(Q(r.x2.x) + " " + Q(r.x2.y) + " l"), n.push(Q(r.x4.x) + " " + Q(r.x4.y) + " m"), n.push(Q(r.x3.x) + " " + Q(r.x3.y) + " l"), n.push("s"), n.push("Q"), t.stream = n.join("\n"), t;
5908
5919
  },
5909
5920
  YesPushDown: function(e) {
5910
- var t = Ga(e);
5921
+ var t = Ka(e);
5911
5922
  t.scope = e.scope;
5912
5923
  var n = $.internal.calculateCross(e), r = [];
5913
5924
  return r.push("0.749023 g"), r.push("0 0 " + Q($.internal.getWidth(e)) + " " + Q($.internal.getHeight(e)) + " re"), r.push("f"), r.push("q"), r.push("1 1 " + Q($.internal.getWidth(e) - 2) + " " + Q($.internal.getHeight(e) - 2) + " re"), r.push("W"), r.push("n"), r.push(Q(n.x1.x) + " " + Q(n.x1.y) + " m"), r.push(Q(n.x2.x) + " " + Q(n.x2.y) + " l"), r.push(Q(n.x4.x) + " " + Q(n.x4.y) + " m"), r.push(Q(n.x3.x) + " " + Q(n.x3.y) + " l"), r.push("s"), r.push("Q"), t.stream = r.join("\n"), t;
5914
5925
  },
5915
5926
  OffPushDown: function(e) {
5916
- var t = Ga(e);
5927
+ var t = Ka(e);
5917
5928
  t.scope = e.scope;
5918
5929
  var n = [];
5919
5930
  return n.push("0.749023 g"), n.push("0 0 " + Q($.internal.getWidth(e)) + " " + Q($.internal.getHeight(e)) + " re"), n.push("f"), t.stream = n.join("\n"), t;
@@ -5950,43 +5961,43 @@ $.internal = {
5950
5961
  }
5951
5962
  }, $.internal.getWidth = function(e) {
5952
5963
  var t = 0;
5953
- return r(e) === "object" && (t = Wa(e.Rect[2])), t;
5964
+ return r(e) === "object" && (t = Ga(e.Rect[2])), t;
5954
5965
  }, $.internal.getHeight = function(e) {
5955
5966
  var t = 0;
5956
- return r(e) === "object" && (t = Wa(e.Rect[3])), t;
5967
+ return r(e) === "object" && (t = Ga(e.Rect[3])), t;
5957
5968
  };
5958
- var Co = Ra.addField = function(e) {
5959
- if (io(this, e), !(e instanceof uo)) throw Error("Invalid argument passed to jsPDF.addField.");
5969
+ var wo = Ra.addField = function(e) {
5970
+ if (ao(this, e), !(e instanceof fo)) throw Error("Invalid argument passed to jsPDF.addField.");
5960
5971
  var t;
5961
5972
  return (t = e).scope.internal.acroformPlugin.printedOut && (t.scope.internal.acroformPlugin.printedOut = !1, t.scope.internal.acroformPlugin.acroFormDictionaryRoot = null), t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t), e.page = e.scope.internal.getCurrentPageInfo().pageNumber, this;
5962
5973
  };
5963
- Ra.AcroFormChoiceField = fo, Ra.AcroFormListBox = po, Ra.AcroFormComboBox = mo, Ra.AcroFormEditBox = ho, Ra.AcroFormButton = go, Ra.AcroFormPushButton = _o, Ra.AcroFormRadioButton = vo, Ra.AcroFormCheckBox = bo, Ra.AcroFormTextField = xo, Ra.AcroFormPasswordField = So, Ra.AcroFormAppearance = $, Ra.AcroForm = {
5964
- ChoiceField: fo,
5965
- ListBox: po,
5966
- ComboBox: mo,
5967
- EditBox: ho,
5968
- Button: go,
5969
- PushButton: _o,
5970
- RadioButton: vo,
5971
- CheckBox: bo,
5972
- TextField: xo,
5973
- PasswordField: So,
5974
+ Ra.AcroFormChoiceField = po, Ra.AcroFormListBox = mo, Ra.AcroFormComboBox = ho, Ra.AcroFormEditBox = go, Ra.AcroFormButton = _o, Ra.AcroFormPushButton = vo, Ra.AcroFormRadioButton = yo, Ra.AcroFormCheckBox = xo, Ra.AcroFormTextField = So, Ra.AcroFormPasswordField = Co, Ra.AcroFormAppearance = $, Ra.AcroForm = {
5975
+ ChoiceField: po,
5976
+ ListBox: mo,
5977
+ ComboBox: ho,
5978
+ EditBox: go,
5979
+ Button: _o,
5980
+ PushButton: vo,
5981
+ RadioButton: yo,
5982
+ CheckBox: xo,
5983
+ TextField: So,
5984
+ PasswordField: Co,
5974
5985
  Appearance: $
5975
5986
  }, Z.AcroForm = {
5976
- ChoiceField: fo,
5977
- ListBox: po,
5978
- ComboBox: mo,
5979
- EditBox: ho,
5980
- Button: go,
5981
- PushButton: _o,
5982
- RadioButton: vo,
5983
- CheckBox: bo,
5984
- TextField: xo,
5985
- PasswordField: So,
5987
+ ChoiceField: po,
5988
+ ListBox: mo,
5989
+ ComboBox: ho,
5990
+ EditBox: go,
5991
+ Button: _o,
5992
+ PushButton: vo,
5993
+ RadioButton: yo,
5994
+ CheckBox: xo,
5995
+ TextField: So,
5996
+ PasswordField: Co,
5986
5997
  Appearance: $
5987
5998
  };
5988
- var wo = Z.AcroForm;
5989
- function To(e) {
5999
+ var To = Z.AcroForm;
6000
+ function Eo(e) {
5990
6001
  return e.reduce(function(e, t, n) {
5991
6002
  return e[t] = n, e;
5992
6003
  }, {});
@@ -6416,8 +6427,8 @@ function To(e) {
6416
6427
  break;
6417
6428
  case "freetext":
6418
6429
  r = "/Rect [" + a(n.bounds.x) + " " + o(n.bounds.y) + " " + a(n.bounds.x + n.bounds.w) + " " + o(n.bounds.y + n.bounds.h) + "] ";
6419
- var y = n.color || "#000000";
6420
- i = "<</Type /Annot /Subtype /FreeText " + r + "/Contents (" + f(p(n.contents)) + ")", i += " /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#" + y + ")", i += " /Border [0 0 0]", i += " >>", this.internal.write(i);
6430
+ var y = "font: Helvetica,sans-serif 12.0pt; text-align:left; color:#" + (n.color || "#000000");
6431
+ i = "<</Type /Annot /Subtype /FreeText " + r + "/Contents (" + f(p(n.contents)) + ")", i += " /DS(" + f(p(y)) + ")", i += " /Border [0 0 0]", i += " >>", this.internal.write(i);
6421
6432
  break;
6422
6433
  case "link":
6423
6434
  if (n.options.name) {
@@ -7154,7 +7165,7 @@ function To(e) {
7154
7165
  c.length > 0 && this.setTableHeaderRow(c), this.setFont(void 0, "normal"), n = !1;
7155
7166
  };
7156
7167
  }(Z.API);
7157
- var Eo = {
7168
+ var Do = {
7158
7169
  italic: [
7159
7170
  "italic",
7160
7171
  "oblique",
@@ -7170,7 +7181,7 @@ var Eo = {
7170
7181
  "oblique",
7171
7182
  "italic"
7172
7183
  ]
7173
- }, Do = [
7184
+ }, Oo = [
7174
7185
  "ultra-condensed",
7175
7186
  "extra-condensed",
7176
7187
  "condensed",
@@ -7180,7 +7191,7 @@ var Eo = {
7180
7191
  "expanded",
7181
7192
  "extra-expanded",
7182
7193
  "ultra-expanded"
7183
- ], Oo = To(Do), ko = [
7194
+ ], ko = Eo(Oo), Ao = [
7184
7195
  100,
7185
7196
  200,
7186
7197
  300,
@@ -7190,14 +7201,14 @@ var Eo = {
7190
7201
  700,
7191
7202
  800,
7192
7203
  900
7193
- ], Ao = To(ko);
7194
- function jo(e) {
7204
+ ], jo = Eo(Ao);
7205
+ function Mo(e) {
7195
7206
  var t = e.family.replace(/"|'/g, "").toLowerCase(), n = function(e) {
7196
- return Eo[e ||= "normal"] ? e : "normal";
7207
+ return Do[e ||= "normal"] ? e : "normal";
7197
7208
  }(e.style), r = function(e) {
7198
7209
  return e ? typeof e == "number" ? e >= 100 && e <= 900 && e % 100 == 0 ? e : 400 : /^\d00$/.test(e) ? parseInt(e) : e === "bold" ? 700 : 400 : 400;
7199
7210
  }(e.weight), i = function(e) {
7200
- return typeof Oo[e ||= "normal"] == "number" ? e : "normal";
7211
+ return typeof ko[e ||= "normal"] == "number" ? e : "normal";
7201
7212
  }(e.stretch);
7202
7213
  return {
7203
7214
  family: t,
@@ -7215,11 +7226,11 @@ function jo(e) {
7215
7226
  }
7216
7227
  };
7217
7228
  }
7218
- function Mo(e, t, n, r) {
7229
+ function No(e, t, n, r) {
7219
7230
  for (var i = n; i >= 0 && i < t.length; i += r) if (e[t[i]]) return e[t[i]];
7220
7231
  for (i = n; i >= 0 && i < t.length; i -= r) if (e[t[i]]) return e[t[i]];
7221
7232
  }
7222
- var No = {
7233
+ var Po = {
7223
7234
  "sans-serif": "helvetica",
7224
7235
  fixed: "courier",
7225
7236
  monospace: "courier",
@@ -7227,7 +7238,7 @@ var No = {
7227
7238
  cursive: "times",
7228
7239
  fantasy: "times",
7229
7240
  serif: "times"
7230
- }, Po = {
7241
+ }, Fo = {
7231
7242
  caption: "times",
7232
7243
  icon: "times",
7233
7244
  menu: "times",
@@ -7235,7 +7246,7 @@ var No = {
7235
7246
  "small-caption": "times",
7236
7247
  "status-bar": "times"
7237
7248
  };
7238
- function Fo(e) {
7249
+ function Io(e) {
7239
7250
  return [
7240
7251
  e.stretch,
7241
7252
  e.style,
@@ -7243,45 +7254,45 @@ function Fo(e) {
7243
7254
  e.family
7244
7255
  ].join(" ");
7245
7256
  }
7246
- function Io(e) {
7257
+ function Lo(e) {
7247
7258
  return e.trimLeft();
7248
7259
  }
7249
- function Lo(e, t) {
7260
+ function Ro(e, t) {
7250
7261
  for (var n = 0; n < e.length;) {
7251
7262
  if (e.charAt(n) === t) return [e.substring(0, n), e.substring(n + 1)];
7252
7263
  n += 1;
7253
7264
  }
7254
7265
  return null;
7255
7266
  }
7256
- function Ro(e) {
7267
+ function zo(e) {
7257
7268
  var t = e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);
7258
7269
  return t === null ? null : [t[0], e.substring(t[0].length)];
7259
7270
  }
7260
- var zo, Bo, Vo, Ho, Uo, Wo, Go, Ko, qo = ["times"];
7261
- function Jo(e, t, r, i, a) {
7262
- var o = 4, s = Zo;
7271
+ var Bo, Vo, Ho, Uo, Wo, Go = ["times"];
7272
+ function Ko(e, t, r, i, a) {
7273
+ var o = 4, s = Yo;
7263
7274
  switch (a) {
7264
7275
  case Z.API.image_compression.FAST:
7265
- o = 1, s = Xo;
7276
+ o = 1, s = Jo;
7266
7277
  break;
7267
7278
  case Z.API.image_compression.MEDIUM:
7268
- o = 6, s = Qo;
7279
+ o = 6, s = Xo;
7269
7280
  break;
7270
- case Z.API.image_compression.SLOW: o = 9, s = $o;
7281
+ case Z.API.image_compression.SLOW: o = 9, s = Zo;
7271
7282
  }
7272
7283
  e = function(e, t, n, r) {
7273
7284
  for (var i, a = e.length / t, o = new Uint8Array(e.length + a), s = [
7285
+ qo,
7286
+ Jo,
7274
7287
  Yo,
7275
7288
  Xo,
7276
- Zo,
7277
- Qo,
7278
- $o
7289
+ Zo
7279
7290
  ], c = 0; c < a; c += 1) {
7280
7291
  var l = c * t, u = e.subarray(l, l + t);
7281
7292
  if (r) o.set(r(u, n, i), l + c);
7282
7293
  else {
7283
7294
  for (var d = s.length, f = [], p = 0; p < d; p += 1) f[p] = s[p](u, n, i);
7284
- var m = ts(f.concat());
7295
+ var m = $o(f.concat());
7285
7296
  o.set(f[m], l + c);
7286
7297
  }
7287
7298
  i = u;
@@ -7291,11 +7302,11 @@ function Jo(e, t, r, i, a) {
7291
7302
  var c = n(e, { level: o });
7292
7303
  return Z.API.__addimage__.arrayBufferToBinaryString(c);
7293
7304
  }
7294
- function Yo(e) {
7305
+ function qo(e) {
7295
7306
  var t = Array.apply([], e);
7296
7307
  return t.unshift(0), t;
7297
7308
  }
7298
- function Xo(e, t) {
7309
+ function Jo(e, t) {
7299
7310
  var n = e.length, r = [];
7300
7311
  r[0] = 1;
7301
7312
  for (var i = 0; i < n; i += 1) {
@@ -7304,7 +7315,7 @@ function Xo(e, t) {
7304
7315
  }
7305
7316
  return r;
7306
7317
  }
7307
- function Zo(e, t, n) {
7318
+ function Yo(e, t, n) {
7308
7319
  var r = e.length, i = [];
7309
7320
  i[0] = 2;
7310
7321
  for (var a = 0; a < r; a += 1) {
@@ -7313,7 +7324,7 @@ function Zo(e, t, n) {
7313
7324
  }
7314
7325
  return i;
7315
7326
  }
7316
- function Qo(e, t, n) {
7327
+ function Xo(e, t, n) {
7317
7328
  var r = e.length, i = [];
7318
7329
  i[0] = 3;
7319
7330
  for (var a = 0; a < r; a += 1) {
@@ -7322,21 +7333,21 @@ function Qo(e, t, n) {
7322
7333
  }
7323
7334
  return i;
7324
7335
  }
7325
- function $o(e, t, n) {
7336
+ function Zo(e, t, n) {
7326
7337
  var r = e.length, i = [];
7327
7338
  i[0] = 4;
7328
7339
  for (var a = 0; a < r; a += 1) {
7329
- var o = es(e[a - t] || 0, n && n[a] || 0, n && n[a - t] || 0);
7340
+ var o = Qo(e[a - t] || 0, n && n[a] || 0, n && n[a - t] || 0);
7330
7341
  i[a + 1] = e[a] - o + 256 & 255;
7331
7342
  }
7332
7343
  return i;
7333
7344
  }
7334
- function es(e, t, n) {
7345
+ function Qo(e, t, n) {
7335
7346
  if (e === t && t === n) return e;
7336
7347
  var r = Math.abs(t - n), i = Math.abs(e - n), a = Math.abs(e + t - n - n);
7337
7348
  return r <= i && r <= a ? e : i <= a ? t : n;
7338
7349
  }
7339
- function ts(e) {
7350
+ function $o(e) {
7340
7351
  var t = e.map(function(e) {
7341
7352
  return e.reduce(function(e, t) {
7342
7353
  return e + Math.abs(t);
@@ -7344,11 +7355,11 @@ function ts(e) {
7344
7355
  });
7345
7356
  return t.indexOf(Math.min.apply(null, t));
7346
7357
  }
7347
- function ns(e, t, n) {
7358
+ function es(e, t, n) {
7348
7359
  var r = t * n, i = Math.floor(r / 8), a = 16 - (r - 8 * i + n), o = (1 << n) - 1;
7349
- return is(e, i) >> a & o;
7360
+ return ns(e, i) >> a & o;
7350
7361
  }
7351
- function rs(e, t, n, r) {
7362
+ function ts(e, t, n, r) {
7352
7363
  var i = n * r, a = Math.floor(i / 8), o = 16 - (i - 8 * a + r), s = (1 << r) - 1, c = (t & s) << o;
7353
7364
  (function(e, t, n) {
7354
7365
  if (t + 1 < e.byteLength) e.setUint16(t, n, !1);
@@ -7356,12 +7367,12 @@ function rs(e, t, n, r) {
7356
7367
  var r = n >> 8 & 255;
7357
7368
  e.setUint8(t, r);
7358
7369
  }
7359
- })(e, a, is(e, a) & ~(s << o) & 65535 | c);
7370
+ })(e, a, ns(e, a) & ~(s << o) & 65535 | c);
7360
7371
  }
7361
- function is(e, t) {
7372
+ function ns(e, t) {
7362
7373
  return t + 1 < e.byteLength ? e.getUint16(t, !1) : e.getUint8(t) << 8;
7363
7374
  }
7364
- function as(e) {
7375
+ function rs(e) {
7365
7376
  var t = 0;
7366
7377
  if (e[t++] !== 71 || e[t++] !== 73 || e[t++] !== 70 || e[t++] !== 56 || (e[t++] + 1 & 253) != 56 || e[t++] !== 97) throw Error("Invalid GIF 87a/89a header.");
7367
7378
  var n = e[t++] | e[t++] << 8, r = e[t++] | e[t++] << 8, i = e[t++], a = i >> 7, o = 1 << 1 + (7 & i);
@@ -7434,8 +7445,10 @@ function as(e) {
7434
7445
  if (e < 0 || e >= u.length) throw Error("Frame index out of range.");
7435
7446
  return u[e];
7436
7447
  }, this.decodeAndBlitFrameBGRA = function(t, r) {
7437
- var i = this.frameInfo(t), a = i.width * i.height, o = new Uint8Array(a);
7438
- os(e, i.data_offset, o, a);
7448
+ var i = this.frameInfo(t), a = i.width * i.height;
7449
+ if (a > 536870912) throw Error("Image dimensions exceed 512MB, which is too large.");
7450
+ var o = new Uint8Array(a);
7451
+ is(e, i.data_offset, o, a);
7439
7452
  var s = i.palette_offset, c = i.transparent_index;
7440
7453
  c === null && (c = 256);
7441
7454
  var l = i.width, u = n - l, d = l, f = 4 * (i.y * n + i.x), p = 4 * ((i.y + i.height) * n + i.x), m = f, h = 4 * u;
@@ -7450,8 +7463,10 @@ function as(e) {
7450
7463
  --d;
7451
7464
  }
7452
7465
  }, this.decodeAndBlitFrameRGBA = function(t, r) {
7453
- var i = this.frameInfo(t), a = i.width * i.height, o = new Uint8Array(a);
7454
- os(e, i.data_offset, o, a);
7466
+ var i = this.frameInfo(t), a = i.width * i.height;
7467
+ if (a > 536870912) throw Error("Image dimensions exceed 512MB, which is too large.");
7468
+ var o = new Uint8Array(a);
7469
+ is(e, i.data_offset, o, a);
7455
7470
  var s = i.palette_offset, c = i.transparent_index;
7456
7471
  c === null && (c = 256);
7457
7472
  var l = i.width, u = n - l, d = l, f = 4 * (i.y * n + i.x), p = 4 * ((i.y + i.height) * n + i.x), m = f, h = 4 * u;
@@ -7467,7 +7482,7 @@ function as(e) {
7467
7482
  }
7468
7483
  };
7469
7484
  }
7470
- function os(e, t, n, r) {
7485
+ function is(e, t, n, r) {
7471
7486
  for (var i = e[t++], a = 1 << i, o = a + 1, s = o + 1, c = i + 1, l = (1 << c) - 1, u = 0, d = 0, f = 0, p = e[t++], m = /* @__PURE__ */ new Int32Array(4096), h = null;;) {
7472
7487
  for (; u < 16 && p !== 0;) d |= e[t++] << u, u += 8, p === 1 ? p = e[t++] : --p;
7473
7488
  if (u < c) break;
@@ -7485,7 +7500,7 @@ function os(e, t, n, r) {
7485
7500
  }
7486
7501
  return f !== r && sa.log("Warning, gif stream shorter than expected."), n;
7487
7502
  }
7488
- function ss(e) {
7503
+ function as(e) {
7489
7504
  var t, n, r, i, a, o = Math.floor, s = Array(64), c = Array(64), l = Array(64), u = Array(64), d = Array(65535), f = Array(65535), p = Array(64), m = Array(64), h = [], g = 0, _ = 7, v = Array(64), y = Array(64), b = Array(64), x = Array(256), S = Array(2048), C = [
7490
7505
  0,
7491
7506
  1,
@@ -8232,7 +8247,7 @@ function ss(e) {
8232
8247
  for (var e = 0; e < 256; e++) S[e] = 19595 * e, S[e + 256 | 0] = 38470 * e, S[e + 512 | 0] = 7471 * e + 32768, S[e + 768 | 0] = -11059 * e, S[e + 1024 | 0] = -21709 * e, S[e + 1280 | 0] = 32768 * e + 8421375, S[e + 1536 | 0] = -27439 * e, S[e + 1792 | 0] = -5329 * e;
8233
8248
  }(), L(e);
8234
8249
  }
8235
- function cs(e, t) {
8250
+ function os(e, t) {
8236
8251
  if (this.pos = 0, this.buffer = e, this.datav = new DataView(e.buffer), this.is_with_alpha = !!t, this.bottom_up = !0, this.flag = String.fromCharCode(this.buffer[0]) + String.fromCharCode(this.buffer[1]), this.pos += 2, [
8237
8252
  "BM",
8238
8253
  "BA",
@@ -8243,7 +8258,7 @@ function cs(e, t) {
8243
8258
  ].indexOf(this.flag) === -1) throw Error("Invalid BMP File");
8244
8259
  this.parseHeader(), this.parseBGR();
8245
8260
  }
8246
- function ls(e) {
8261
+ function ss(e) {
8247
8262
  function t(e) {
8248
8263
  if (!e) throw Error("assert :P");
8249
8264
  }
@@ -8559,7 +8574,7 @@ function ls(e) {
8559
8574
  }
8560
8575
  if (r && !Pi) {
8561
8576
  for (e = 0; 256 > e; ++e) Fi[e] = 89858 * (e - 128) + ki >> Oi, Ri[e] = -22014 * (e - 128) + ki, Li[e] = -45773 * (e - 128), Ii[e] = 113618 * (e - 128) + ki >> Oi;
8562
- for (e = Ai; e < ji; ++e) t = 76283 * (e - 16) + ki >> Oi, zi[e - Ai] = Ze(t, 255), Bi[e - Ai] = Ze(t + 8 >> 4, 15);
8577
+ for (e = Ai; e < ji; ++e) t = 76283 * (e - 16) + ki >> Oi, zi[e - Ai] = Xe(t, 255), Bi[e - Ai] = Xe(t + 8 >> 4, 15);
8563
8578
  Pi = 1;
8564
8579
  }
8565
8580
  return 1;
@@ -8590,11 +8605,11 @@ function ls(e) {
8590
8605
  function De(e, n, r) {
8591
8606
  return r.g += e.g, r.value += e.value << n >>> 0, t(8 >= r.g), e.g;
8592
8607
  }
8593
- function Oe(e, n, r) {
8608
+ function K(e, n, r) {
8594
8609
  var i = e.xc;
8595
8610
  return t((n = i == 0 ? 0 : e.vc[e.md * (r >> i) + (n >> i)]) < e.Wb), e.Ya[n];
8596
8611
  }
8597
- function ke(e, n, i, a) {
8612
+ function Oe(e, n, i, a) {
8598
8613
  var o = e.ab, s = e.c * n, c = e.C;
8599
8614
  n = c + n;
8600
8615
  var l = i, u = a;
@@ -8633,11 +8648,11 @@ function ls(e) {
8633
8648
  }
8634
8649
  u != i && r(a, i, l, u, s);
8635
8650
  }
8636
- function Ae(e, n) {
8651
+ function ke(e, n) {
8637
8652
  var r = e.V, i = e.Ba + e.c * e.C, a = n - e.C;
8638
8653
  if (t(n <= e.l.o), t(16 >= a), 0 < a) {
8639
8654
  var o = e.l, s = e.Ta, c = e.Ua, l = o.width;
8640
- if (ke(e, a, r, i), a = c = [c], t((r = e.C) < (i = n)), t(o.v < o.va), i > o.o && (i = o.o), r < o.j) {
8655
+ if (Oe(e, a, r, i), a = c = [c], t((r = e.C) < (i = n)), t(o.v < o.va), i > o.o && (i = o.o), r < o.j) {
8641
8656
  var u = o.j - r;
8642
8657
  r = o.j, a[0] += u * l;
8643
8658
  }
@@ -8691,7 +8706,7 @@ function ls(e) {
8691
8706
  }
8692
8707
  e.C = n, t(e.C <= e.i);
8693
8708
  }
8694
- function je(e) {
8709
+ function Ae(e) {
8695
8710
  var t;
8696
8711
  if (0 < e.ua) return 0;
8697
8712
  for (t = 0; t < e.Wb; ++t) {
@@ -8700,25 +8715,25 @@ function ls(e) {
8700
8715
  }
8701
8716
  return 1;
8702
8717
  }
8703
- function Me(e, n, r, i, a, o) {
8718
+ function je(e, n, r, i, a, o) {
8704
8719
  if (e.Z != 0) {
8705
8720
  var s = e.qd, c = e.rd;
8706
8721
  for (t(yi[e.Z] != null); n < r; ++n) yi[e.Z](s, c, i, a, i, a, o), s = i, c = a, a += o;
8707
8722
  e.qd = s, e.rd = c;
8708
8723
  }
8709
8724
  }
8710
- function Ne(e, n) {
8725
+ function Me(e, n) {
8711
8726
  var r = e.l.ma, i = r.Z == 0 || r.Z == 1 ? e.l.j : e.C;
8712
8727
  if (i = e.C < i ? i : e.C, t(n <= e.l.o), n > i) {
8713
8728
  var a = e.l.width, o = r.ca, s = r.tb + a * i, c = e.V, l = e.Ba + e.c * i, u = e.gc;
8714
- t(e.ab == 1), t(u[0].hc == 3), $n(u[0], i, n, c, l, o, s), Me(r, i, n, o, s, a);
8729
+ t(e.ab == 1), t(u[0].hc == 3), $n(u[0], i, n, c, l, o, s), je(r, i, n, o, s, a);
8715
8730
  }
8716
8731
  e.C = e.Ma = n;
8717
8732
  }
8718
- function K(e, n, r, i, a, o, s) {
8733
+ function q(e, n, r, i, a, o, s) {
8719
8734
  var c = e.$ / i, l = e.$ % i, u = e.m, d = e.s, f = r + e.$, p = f;
8720
8735
  a = r + i * a;
8721
- var m = r + i * o, h = 280 + d.ua, g = e.Pb ? c : 16777216, _ = 0 < d.ua ? d.Wa : null, v = d.wc, y = f < m ? Oe(d, l, c) : null;
8736
+ var m = r + i * o, h = 280 + d.ua, g = e.Pb ? c : 16777216, _ = 0 < d.ua ? d.Wa : null, v = d.wc, y = f < m ? K(d, l, c) : null;
8722
8737
  t(e.C < o), t(m <= a);
8723
8738
  var b = !1;
8724
8739
  t: for (;;) {
@@ -8728,7 +8743,7 @@ function ls(e) {
8728
8743
  var E = f - r;
8729
8744
  t((g = e).Pb), g.wd = g.m, g.xd = E, 0 < g.s.ua && P(g.s.Wa, g.s.vb), g = c + ri;
8730
8745
  }
8731
- if (l & v || (y = Oe(d, l, c)), t(y != null), y.Qb && (n[f] = y.qb, b = !0), !b) {
8746
+ if (l & v || (y = K(d, l, c)), t(y != null), y.Qb && (n[f] = y.qb, b = !0), !b) {
8732
8747
  if (T(u), y.jc) {
8733
8748
  x = u, E = n;
8734
8749
  var D = f, O = y.pd[S(x) & Hn - 1];
@@ -8744,16 +8759,16 @@ function ls(e) {
8744
8759
  n[f] = (D << 24 | b << 16 | x << 8 | E) >>> 0;
8745
8760
  }
8746
8761
  }
8747
- if (b = !1, ++f, ++l >= i && (l = 0, ++c, s != null && c <= o && !(c % 16) && s(e, c), _ != null)) for (; p < f;) x = n[p++], _.X[(506832829 * x & 4294967295) >>> _.Mb] = x;
8762
+ if (b = !1, ++f, ++l >= i && (l = 0, ++c, s != null && c <= o && !(c % 16) && s(e, c), _ != null)) for (; p < f;) x = n[p++], _.X[(506832829 * x | 0) >>> _.Mb] = x;
8748
8763
  } else if (280 > x) {
8749
8764
  if (x = Te(x - 256, u), E = G(y.G[4], y.H[4], u), T(u), E = Ee(i, E = Te(E, u)), u.h) break;
8750
8765
  if (f - r < E || a - f < x) break t;
8751
8766
  for (D = 0; D < x; ++D) n[f + D] = n[f + D - E];
8752
8767
  for (f += x, l += x; l >= i;) l -= i, ++c, s != null && c <= o && !(c % 16) && s(e, c);
8753
- if (t(f <= a), l & v && (y = Oe(d, l, c)), _ != null) for (; p < f;) x = n[p++], _.X[(506832829 * x & 4294967295) >>> _.Mb] = x;
8768
+ if (t(f <= a), l & v && (y = K(d, l, c)), _ != null) for (; p < f;) x = n[p++], _.X[(506832829 * x | 0) >>> _.Mb] = x;
8754
8769
  } else {
8755
8770
  if (!(x < h)) break t;
8756
- for (b = x - 280, t(_ != null); p < f;) x = n[p++], _.X[(506832829 * x & 4294967295) >>> _.Mb] = x;
8771
+ for (b = x - 280, t(_ != null); p < f;) x = n[p++], _.X[(506832829 * x | 0) >>> _.Mb] = x;
8757
8772
  x = f, t(!(b >>> (E = _).Xa)), n[x] = E.X[b], b = !0;
8758
8773
  }
8759
8774
  b || t(u.h == C(u));
@@ -8767,16 +8782,16 @@ function ls(e) {
8767
8782
  }
8768
8783
  return e.a = 3, 0;
8769
8784
  }
8770
- function Pe(e) {
8785
+ function Ne(e) {
8771
8786
  t(e != null), e.vc = null, e.yc = null, e.Ya = null;
8772
8787
  var n = e.Wa;
8773
8788
  n != null && (n.X = null), e.vb = null, t(e != null);
8774
8789
  }
8775
- function Fe() {
8790
+ function Pe() {
8776
8791
  var t = new un();
8777
8792
  return t == null ? null : (t.a = 0, t.xb = vi, de("Predictor", "VP8LPredictors"), de("Predictor", "VP8LPredictors_C"), de("PredictorAdd", "VP8LPredictorsAdd"), de("PredictorAdd", "VP8LPredictorsAdd_C"), Xn = ne, nr = ie, rr = oe, ir = se, ar = W, or = ce, sr = le, e.VP8LMapColor32b = Qn, e.VP8LMapColor8b = er, t);
8778
8793
  }
8779
- function Ie(e, n, r, s, c) {
8794
+ function Fe(e, n, r, s, c) {
8780
8795
  var l = 1, f = [e], m = [n], h = s.m, g = s.s, _ = null, v = 0;
8781
8796
  t: for (;;) {
8782
8797
  if (r) for (; l && y(h, 1);) {
@@ -8786,11 +8801,11 @@ function ls(e) {
8786
8801
  switch (C.Oc |= 1 << k, O.hc = k, O.Ea = b[0], O.nc = x[0], O.K = [null], ++C.ab, t(4 >= C.ab), k) {
8787
8802
  case 0:
8788
8803
  case 1:
8789
- O.b = y(D, 3) + 2, E = Ie(L(O.Ea, O.b), L(O.nc, O.b), 0, C, O.K), O.K = O.K[0];
8804
+ O.b = y(D, 3) + 2, E = Fe(L(O.Ea, O.b), L(O.nc, O.b), 0, C, O.K), O.K = O.K[0];
8790
8805
  break;
8791
8806
  case 3:
8792
8807
  var A, j = y(D, 8) + 1, M = 16 < j ? 0 : 4 < j ? 1 : 2 < j ? 2 : 3;
8793
- if (b[0] = L(O.Ea, M), O.b = M, A = E = Ie(j, 1, 0, C, O.K)) {
8808
+ if (b[0] = L(O.Ea, M), O.b = M, A = E = Fe(j, 1, 0, C, O.K)) {
8794
8809
  var P, F = j, I = O, R = 1 << (8 >> I.b), z = a(R);
8795
8810
  if (z == null) A = 0;
8796
8811
  else {
@@ -8815,16 +8830,16 @@ function ls(e) {
8815
8830
  var V;
8816
8831
  if (V = l) e: {
8817
8832
  var H, U, ne, re = s, ie = f, ae = m, oe = v, se = r, W = re.m, ce = re.s, le = [null], ue = 1, de = 0, fe = ni[oe];
8818
- n: for (;;) {
8833
+ r: for (;;) {
8819
8834
  if (se && y(W, 1)) {
8820
8835
  var pe = y(W, 3) + 2, me = L(ie, pe), he = L(ae, pe), ge = me * he;
8821
- if (!Ie(me, he, 0, re, le)) break n;
8836
+ if (!Fe(me, he, 0, re, le)) break r;
8822
8837
  for (le = le[0], ce.xc = pe, H = 0; H < ge; ++H) {
8823
8838
  var _e = le[H] >> 8 & 65535;
8824
8839
  le[H] = _e, _e >= ue && (ue = _e + 1);
8825
8840
  }
8826
8841
  }
8827
- if (W.h) break n;
8842
+ if (W.h) break r;
8828
8843
  for (U = 0; 5 > U; ++U) {
8829
8844
  var ve = Qr[U];
8830
8845
  !U && 0 < oe && (ve += 1 << oe), de < ve && (de = ve);
@@ -8835,63 +8850,63 @@ function ls(e) {
8835
8850
  var Ce = a(de);
8836
8851
  if (Se == null || Ce == null || ye == null) {
8837
8852
  re.a = 1;
8838
- break n;
8853
+ break r;
8839
8854
  }
8840
8855
  var we = ye;
8841
8856
  for (H = ne = 0; H < ue; ++H) {
8842
- var Te = Se[H], Ee = Te.G, G = Te.H, Oe = 0, ke = 1, Ae = 0;
8857
+ var Te = Se[H], Ee = Te.G, G = Te.H, K = 0, Oe = 1, ke = 0;
8843
8858
  for (U = 0; 5 > U; ++U) {
8844
8859
  ve = Qr[U], Ee[U] = we, G[U] = ne, !U && 0 < oe && (ve += 1 << oe);
8845
- r: {
8846
- var je, Me = ve, Ne = re, Fe = Ce, Le = we, Re = ne, q = 0, ze = Ne.m, Be = y(ze, 1);
8847
- if (i(Fe, 0, 0, Me), Be) {
8848
- var Ve = y(ze, 1) + 1, He = y(ze, y(ze, 1) == 0 ? 1 : 8);
8849
- Fe[He] = 1, Ve == 2 && (Fe[He = y(ze, 8)] = 1);
8850
- var Ue = 1;
8860
+ n: {
8861
+ var Ae, je = ve, Me = re, Pe = Ce, Ie = we, Le = ne, J = 0, Re = Me.m, ze = y(Re, 1);
8862
+ if (i(Pe, 0, 0, je), ze) {
8863
+ var Be = y(Re, 1) + 1, Ve = y(Re, y(Re, 1) == 0 ? 1 : 8);
8864
+ Pe[Ve] = 1, Be == 2 && (Pe[Ve = y(Re, 8)] = 1);
8865
+ var He = 1;
8851
8866
  } else {
8852
- var We = a(19), Ge = y(ze, 4) + 4;
8853
- if (19 < Ge) {
8854
- Ne.a = 3;
8855
- var Ke = 0;
8856
- break r;
8867
+ var Ue = a(19), We = y(Re, 4) + 4;
8868
+ if (19 < We) {
8869
+ Me.a = 3;
8870
+ var Ge = 0;
8871
+ break n;
8857
8872
  }
8858
- for (je = 0; je < Ge; ++je) We[ei[je]] = y(ze, 3);
8859
- var qe = void 0, Je = void 0, Ye = Ne, Xe = We, Ze = Me, Qe = Fe, $e = 0, et = Ye.m, tt = 8, nt = o(128, d);
8860
- i: for (; u(nt, 0, 7, Xe, 19);) {
8861
- if (y(et, 1)) {
8862
- if ((qe = 2 + y(et, 2 + 2 * y(et, 3))) > Ze) break i;
8863
- } else qe = Ze;
8864
- for (Je = 0; Je < Ze && qe--;) {
8865
- T(et);
8866
- var rt = nt[0 + (127 & S(et))];
8867
- w(et, et.u + rt.g);
8868
- var it = rt.value;
8869
- if (16 > it) Qe[Je++] = it, it != 0 && (tt = it);
8873
+ for (Ae = 0; Ae < We; ++Ae) Ue[ei[Ae]] = y(Re, 3);
8874
+ var Ke = void 0, qe = void 0, Je = Me, Ye = Ue, Xe = je, Ze = Pe, Qe = 0, $e = Je.m, et = 8, tt = o(128, d);
8875
+ i: for (; u(tt, 0, 7, Ye, 19);) {
8876
+ if (y($e, 1)) {
8877
+ if ((Ke = 2 + y($e, 2 + 2 * y($e, 3))) > Xe) break i;
8878
+ } else Ke = Xe;
8879
+ for (qe = 0; qe < Xe && Ke--;) {
8880
+ T($e);
8881
+ var nt = tt[0 + (127 & S($e))];
8882
+ w($e, $e.u + nt.g);
8883
+ var rt = nt.value;
8884
+ if (16 > rt) Ze[qe++] = rt, rt != 0 && (et = rt);
8870
8885
  else {
8871
- var at = it == 16, ot = it - 16, st = Zr[ot], ct = y(et, Xr[ot]) + st;
8872
- if (Je + ct > Ze) break i;
8873
- for (var lt = at ? tt : 0; 0 < ct--;) Qe[Je++] = lt;
8886
+ var it = rt == 16, at = rt - 16, ot = Zr[at], st = y($e, Xr[at]) + ot;
8887
+ if (qe + st > Xe) break i;
8888
+ for (var ct = it ? et : 0; 0 < st--;) Ze[qe++] = ct;
8874
8889
  }
8875
8890
  }
8876
- $e = 1;
8891
+ Qe = 1;
8877
8892
  break i;
8878
8893
  }
8879
- $e || (Ye.a = 3), Ue = $e;
8894
+ Qe || (Je.a = 3), He = Qe;
8880
8895
  }
8881
- (Ue &&= !ze.h) && (q = u(Le, Re, 8, Fe, Me)), Ue && q != 0 ? Ke = q : (Ne.a = 3, Ke = 0);
8896
+ (He &&= !Re.h) && (J = u(Ie, Le, 8, Pe, je)), He && J != 0 ? Ge = J : (Me.a = 3, Ge = 0);
8882
8897
  }
8883
- if (Ke == 0) break n;
8884
- if (ke && $r[U] == 1 && (ke = we[ne].g == 0), Oe += we[ne].g, ne += Ke, 3 >= U) {
8885
- var ut, dt = Ce[0];
8886
- for (ut = 1; ut < ve; ++ut) Ce[ut] > dt && (dt = Ce[ut]);
8887
- Ae += dt;
8898
+ if (Ge == 0) break r;
8899
+ if (Oe && $r[U] == 1 && (Oe = we[ne].g == 0), K += we[ne].g, ne += Ge, 3 >= U) {
8900
+ var lt, ut = Ce[0];
8901
+ for (lt = 1; lt < ve; ++lt) Ce[lt] > ut && (ut = Ce[lt]);
8902
+ ke += ut;
8888
8903
  }
8889
8904
  }
8890
- if (Te.nd = ke, Te.Qb = 0, ke && (Te.qb = (Ee[3][G[3] + 0].value << 24 | Ee[1][G[1] + 0].value << 16 | Ee[2][G[2] + 0].value) >>> 0, Oe == 0 && 256 > Ee[0][G[0] + 0].value && (Te.Qb = 1, Te.qb += Ee[0][G[0] + 0].value << 8)), Te.jc = !Te.Qb && 6 > Ae, Te.jc) {
8891
- var ft, pt = Te;
8892
- for (ft = 0; ft < Hn; ++ft) {
8893
- var mt = ft, ht = pt.pd[mt], gt = pt.G[0][pt.H[0] + mt];
8894
- 256 <= gt.value ? (ht.g = gt.g + 256, ht.value = gt.value) : (ht.g = 0, ht.value = 0, mt >>= De(gt, 8, ht), mt >>= De(pt.G[1][pt.H[1] + mt], 16, ht), mt >>= De(pt.G[2][pt.H[2] + mt], 0, ht), De(pt.G[3][pt.H[3] + mt], 24, ht));
8905
+ if (Te.nd = Oe, Te.Qb = 0, Oe && (Te.qb = (Ee[3][G[3] + 0].value << 24 | Ee[1][G[1] + 0].value << 16 | Ee[2][G[2] + 0].value) >>> 0, K == 0 && 256 > Ee[0][G[0] + 0].value && (Te.Qb = 1, Te.qb += Ee[0][G[0] + 0].value << 8)), Te.jc = !Te.Qb && 6 > ke, Te.jc) {
8906
+ var dt, ft = Te;
8907
+ for (dt = 0; dt < Hn; ++dt) {
8908
+ var pt = dt, mt = ft.pd[pt], ht = ft.G[0][ft.H[0] + pt];
8909
+ 256 <= ht.value ? (mt.g = ht.g + 256, mt.value = ht.value) : (mt.g = 0, mt.value = 0, pt >>= De(ht, 8, mt), pt >>= De(ft.G[1][ft.H[1] + pt], 16, mt), pt >>= De(ft.G[2][ft.H[2] + pt], 0, mt), De(ft.G[3][ft.H[3] + pt], 24, mt));
8895
8910
  }
8896
8911
  }
8897
8912
  }
@@ -8910,8 +8925,8 @@ function ls(e) {
8910
8925
  break t;
8911
8926
  }
8912
8927
  } else g.ua = 0;
8913
- var _t = s, vt = f, yt = m, bt = _t.s, xt = bt.xc;
8914
- if (_t.c = vt, _t.i = yt, bt.md = L(vt, xt), bt.wc = xt == 0 ? -1 : (1 << xt) - 1, r) {
8928
+ var gt = s, _t = f, vt = m, yt = gt.s, bt = yt.xc;
8929
+ if (gt.c = _t, gt.i = vt, yt.md = L(_t, bt), yt.wc = bt == 0 ? -1 : (1 << bt) - 1, r) {
8915
8930
  s.xb = _i;
8916
8931
  break t;
8917
8932
  }
@@ -8919,33 +8934,33 @@ function ls(e) {
8919
8934
  s.a = 1, l = 0;
8920
8935
  break t;
8921
8936
  }
8922
- l = (l = K(s, _, 0, f, m, m, null)) && !h.h;
8937
+ l = (l = q(s, _, 0, f, m, m, null)) && !h.h;
8923
8938
  break t;
8924
8939
  }
8925
- return l ? (c == null ? (t(_ == null), t(r)) : c[0] = _, s.$ = 0, r || Pe(g)) : Pe(g), l;
8940
+ return l ? (c == null ? (t(_ == null), t(r)) : c[0] = _, s.$ = 0, r || Ne(g)) : Ne(g), l;
8926
8941
  }
8927
- function Le(e, n) {
8942
+ function Ie(e, n) {
8928
8943
  var r = e.c * e.i, i = r + n + 16 * n;
8929
8944
  return t(e.c <= n), e.V = a(i), e.V == null ? (e.Ta = null, e.Ua = 0, e.a = 1, 0) : (e.Ta = e.V, e.Ua = e.Ba + r + n, 1);
8930
8945
  }
8931
- function Re(e, n) {
8946
+ function Le(e, n) {
8932
8947
  var r = e.C, i = n - r, a = e.V, o = e.Ba + e.c * r;
8933
8948
  for (t(n <= e.l.o); 0 < i;) {
8934
8949
  var s = 16 < i ? 16 : i, c = e.l.ma, l = e.l.width, u = l * s, d = c.ca, f = c.tb + l * r, p = e.Ta, m = e.Ua;
8935
- ke(e, s, a, o), kr(p, m, d, f, u), Me(c, r, r + s, d, f, l), i -= s, a += s * e.c, r += s;
8950
+ Oe(e, s, a, o), kr(p, m, d, f, u), je(c, r, r + s, d, f, l), i -= s, a += s * e.c, r += s;
8936
8951
  }
8937
8952
  t(r == n), e.C = e.Ma = n;
8938
8953
  }
8939
- function q() {
8954
+ function J() {
8940
8955
  this.ub = this.yd = this.td = this.Rb = 0;
8941
8956
  }
8942
- function ze() {
8957
+ function Re() {
8943
8958
  this.Kd = this.Ld = this.Ud = this.Td = this.i = this.c = 0;
8944
8959
  }
8945
- function Be() {
8960
+ function ze() {
8946
8961
  this.Fb = this.Bb = this.Cb = 0, this.Zb = a(4), this.Lb = a(4);
8947
8962
  }
8948
- function Ve() {
8963
+ function Be() {
8949
8964
  this.Yb = function() {
8950
8965
  var e = [];
8951
8966
  return function e(t, n, r) {
@@ -8953,70 +8968,70 @@ function ls(e) {
8953
8968
  }(e, 0, [3, 11]), e;
8954
8969
  }();
8955
8970
  }
8971
+ function Ve() {
8972
+ this.jb = a(3), this.Wc = s([4, 8], Be), this.Xc = s([4, 17], Be);
8973
+ }
8956
8974
  function He() {
8957
- this.jb = a(3), this.Wc = s([4, 8], Ve), this.Xc = s([4, 17], Ve);
8975
+ this.Pc = this.wb = this.Tb = this.zd = 0, this.vd = new a(4), this.od = new a(4);
8958
8976
  }
8959
8977
  function Ue() {
8960
- this.Pc = this.wb = this.Tb = this.zd = 0, this.vd = new a(4), this.od = new a(4);
8978
+ this.ld = this.La = this.dd = this.tc = 0;
8961
8979
  }
8962
8980
  function We() {
8963
- this.ld = this.La = this.dd = this.tc = 0;
8981
+ this.Na = this.la = 0;
8964
8982
  }
8965
8983
  function Ge() {
8966
- this.Na = this.la = 0;
8984
+ this.Sc = [0, 0], this.Eb = [0, 0], this.Qc = [0, 0], this.ia = this.lc = 0;
8967
8985
  }
8968
8986
  function Ke() {
8969
- this.Sc = [0, 0], this.Eb = [0, 0], this.Qc = [0, 0], this.ia = this.lc = 0;
8987
+ this.ad = a(384), this.Za = 0, this.Ob = a(16), this.$b = this.Ad = this.ia = this.Gc = this.Hc = this.Dd = 0;
8970
8988
  }
8971
8989
  function qe() {
8972
- this.ad = a(384), this.Za = 0, this.Ob = a(16), this.$b = this.Ad = this.ia = this.Gc = this.Hc = this.Dd = 0;
8990
+ this.uc = this.M = this.Nb = 0, this.wa = Array(new Ue()), this.Y = 0, this.ya = Array(new Ke()), this.aa = 0, this.l = new Ze();
8973
8991
  }
8974
8992
  function Je() {
8975
- this.uc = this.M = this.Nb = 0, this.wa = Array(new We()), this.Y = 0, this.ya = Array(new qe()), this.aa = 0, this.l = new Qe();
8976
- }
8977
- function Ye() {
8978
8993
  this.y = a(16), this.f = a(8), this.ea = a(8);
8979
8994
  }
8980
- function Xe() {
8981
- this.cb = this.a = 0, this.sc = "", this.m = new b(), this.Od = new q(), this.Kc = new ze(), this.ed = new Ue(), this.Qa = new Be(), this.Ic = this.$c = this.Aa = 0, this.D = new Je(), this.Xb = this.Va = this.Hb = this.zb = this.yb = this.Ub = this.za = 0, this.Jc = o(8, b), this.ia = 0, this.pb = o(4, Ke), this.Pa = new He(), this.Bd = this.kc = 0, this.Ac = [], this.Bc = 0, this.zc = [
8995
+ function Ye() {
8996
+ this.cb = this.a = 0, this.sc = "", this.m = new b(), this.Od = new J(), this.Kc = new Re(), this.ed = new He(), this.Qa = new ze(), this.Ic = this.$c = this.Aa = 0, this.D = new qe(), this.Xb = this.Va = this.Hb = this.zb = this.yb = this.Ub = this.za = 0, this.Jc = o(8, b), this.ia = 0, this.pb = o(4, Ge), this.Pa = new Ve(), this.Bd = this.kc = 0, this.Ac = [], this.Bc = 0, this.zc = [
8982
8997
  0,
8983
8998
  0,
8984
8999
  0,
8985
9000
  0
8986
- ], this.Gd = Array(new Ye()), this.Hd = 0, this.rb = Array(new Ge()), this.sb = 0, this.wa = Array(new We()), this.Y = 0, this.oc = [], this.pc = 0, this.sa = [], this.ta = 0, this.qa = [], this.ra = 0, this.Ha = [], this.B = this.R = this.Ia = 0, this.Ec = [], this.M = this.ja = this.Vb = this.Fc = 0, this.ya = Array(new qe()), this.L = this.aa = 0, this.gd = s([4, 2], We), this.ga = null, this.Fa = [], this.Cc = this.qc = this.P = 0, this.Gb = [], this.Uc = 0, this.mb = [], this.nb = 0, this.rc = [], this.Ga = this.Vc = 0;
9001
+ ], this.Gd = Array(new Je()), this.Hd = 0, this.rb = Array(new We()), this.sb = 0, this.wa = Array(new Ue()), this.Y = 0, this.oc = [], this.pc = 0, this.sa = [], this.ta = 0, this.qa = [], this.ra = 0, this.Ha = [], this.B = this.R = this.Ia = 0, this.Ec = [], this.M = this.ja = this.Vb = this.Fc = 0, this.ya = Array(new Ke()), this.L = this.aa = 0, this.gd = s([4, 2], Ue), this.ga = null, this.Fa = [], this.Cc = this.qc = this.P = 0, this.Gb = [], this.Uc = 0, this.mb = [], this.nb = 0, this.rc = [], this.Ga = this.Vc = 0;
8987
9002
  }
8988
- function Ze(e, t) {
9003
+ function Xe(e, t) {
8989
9004
  return 0 > e ? 0 : e > t ? t : e;
8990
9005
  }
8991
- function Qe() {
9006
+ function Ze() {
8992
9007
  this.T = this.U = this.ka = this.height = this.width = 0, this.y = [], this.f = [], this.ea = [], this.Rc = this.fa = this.W = this.N = this.O = 0, this.ma = "void", this.put = "VP8IoPutHook", this.ac = "VP8IoSetupHook", this.bc = "VP8IoTeardownHook", this.ha = this.Kb = 0, this.data = [], this.hb = this.ib = this.da = this.o = this.j = this.va = this.v = this.Da = this.ob = this.w = 0, this.F = [], this.J = 0;
8993
9008
  }
8994
- function $e() {
8995
- var e = new Xe();
8996
- return e != null && (e.a = 0, e.sc = "OK", e.cb = 0, e.Xb = 0, oi ||= rt), e;
9009
+ function Qe() {
9010
+ var e = new Ye();
9011
+ return e != null && (e.a = 0, e.sc = "OK", e.cb = 0, e.Xb = 0, oi ||= nt), e;
8997
9012
  }
8998
- function et(e, t, n) {
9013
+ function $e(e, t, n) {
8999
9014
  return e.a == 0 && (e.a = t, e.sc = n, e.cb = 0), 0;
9000
9015
  }
9001
- function tt(e, t, n) {
9016
+ function et(e, t, n) {
9002
9017
  return 3 <= n && e[t + 0] == 157 && e[t + 1] == 1 && e[t + 2] == 42;
9003
9018
  }
9004
- function nt(e, n) {
9019
+ function tt(e, n) {
9005
9020
  if (e == null) return 0;
9006
- if (e.a = 0, e.sc = "OK", n == null) return et(e, 2, "null VP8Io passed to VP8GetHeaders()");
9021
+ if (e.a = 0, e.sc = "OK", n == null) return $e(e, 2, "null VP8Io passed to VP8GetHeaders()");
9007
9022
  var r = n.data, a = n.w, o = n.ha;
9008
- if (4 > o) return et(e, 7, "Truncated header.");
9023
+ if (4 > o) return $e(e, 7, "Truncated header.");
9009
9024
  var s = r[a + 0] | r[a + 1] << 8 | r[a + 2] << 16, c = e.Od;
9010
- if (c.Rb = !(1 & s), c.td = s >> 1 & 7, c.yd = s >> 4 & 1, c.ub = s >> 5, 3 < c.td) return et(e, 3, "Incorrect keyframe parameters.");
9011
- if (!c.yd) return et(e, 4, "Frame not displayable.");
9025
+ if (c.Rb = !(1 & s), c.td = s >> 1 & 7, c.yd = s >> 4 & 1, c.ub = s >> 5, 3 < c.td) return $e(e, 3, "Incorrect keyframe parameters.");
9026
+ if (!c.yd) return $e(e, 4, "Frame not displayable.");
9012
9027
  a += 3, o -= 3;
9013
9028
  var l = e.Kc;
9014
9029
  if (c.Rb) {
9015
- if (7 > o) return et(e, 7, "cannot parse picture header");
9016
- if (!tt(r, a, o)) return et(e, 3, "Bad code word");
9030
+ if (7 > o) return $e(e, 7, "cannot parse picture header");
9031
+ if (!et(r, a, o)) return $e(e, 3, "Bad code word");
9017
9032
  l.c = 16383 & (r[a + 4] << 8 | r[a + 3]), l.Td = r[a + 4] >> 6, l.i = 16383 & (r[a + 6] << 8 | r[a + 5]), l.Ud = r[a + 6] >> 6, a += 7, o -= 7, e.za = l.c + 15 >> 4, e.Ub = l.i + 15 >> 4, n.width = l.c, n.height = l.i, n.Da = 0, n.j = 0, n.v = 0, n.va = n.width, n.o = n.height, n.da = 0, n.ib = n.width, n.hb = n.height, n.U = n.width, n.T = n.height, i((s = e.Pa).jb, 0, 255, s.jb.length), t((s = e.Qa) != null), s.Cb = 0, s.Bb = 0, s.Fb = 1, i(s.Zb, 0, 0, s.Zb.length), i(s.Lb, 0, 0, s.Lb);
9018
9033
  }
9019
- if (c.ub > o) return et(e, 7, "bad partition length");
9034
+ if (c.ub > o) return $e(e, 7, "bad partition length");
9020
9035
  m(s = e.m, r, a, c.ub), a += c.ub, o -= c.ub, c.Rb && (l.Ld = D(s), l.Kd = D(s)), l = e.Qa;
9021
9036
  var u, d = e.Pa;
9022
9037
  if (t(s != null), t(l != null), l.Cb = D(s), l.Cb) {
@@ -9026,12 +9041,12 @@ function ls(e) {
9026
9041
  }
9027
9042
  if (l.Bb) for (u = 0; 3 > u; ++u) d.jb[u] = D(s) ? h(s, 8) : 255;
9028
9043
  } else l.Bb = 0;
9029
- if (s.Ka) return et(e, 3, "cannot parse segment header");
9044
+ if (s.Ka) return $e(e, 3, "cannot parse segment header");
9030
9045
  if ((l = e.ed).zd = D(s), l.Tb = h(s, 6), l.wb = h(s, 3), l.Pc = D(s), l.Pc && D(s)) {
9031
9046
  for (d = 0; 4 > d; ++d) D(s) && (l.vd[d] = g(s, 6));
9032
9047
  for (d = 0; 4 > d; ++d) D(s) && (l.od[d] = g(s, 6));
9033
9048
  }
9034
- if (e.L = l.Tb == 0 ? 0 : l.zd ? 1 : 2, s.Ka) return et(e, 3, "cannot parse filter header");
9049
+ if (e.L = l.Tb == 0 ? 0 : l.zd ? 1 : 2, s.Ka) return $e(e, 3, "cannot parse filter header");
9035
9050
  var f = o;
9036
9051
  if (o = u = a, a = u + f, l = f, e.Xb = (1 << h(e.m, 2)) - 1, f < 3 * (d = e.Xb)) r = 7;
9037
9052
  else {
@@ -9041,7 +9056,7 @@ function ls(e) {
9041
9056
  }
9042
9057
  m(e.Jc[+d], r, u, l), r = u < a ? 0 : 5;
9043
9058
  }
9044
- if (r != 0) return et(e, r, "cannot parse partitions");
9059
+ if (r != 0) return $e(e, r, "cannot parse partitions");
9045
9060
  for (r = h(u = e.m, 7), o = D(u) ? g(u, 4) : 0, a = D(u) ? g(u, 4) : 0, l = D(u) ? g(u, 4) : 0, d = D(u) ? g(u, 4) : 0, u = D(u) ? g(u, 4) : 0, f = e.Qa, p = 0; 4 > p; ++p) {
9046
9061
  if (f.Cb) {
9047
9062
  var _ = f.Zb[p];
@@ -9054,16 +9069,16 @@ function ls(e) {
9054
9069
  _ = r;
9055
9070
  }
9056
9071
  var v = e.pb[p];
9057
- v.Sc[0] = ii[Ze(_ + o, 127)], v.Sc[1] = ai[Ze(_ + 0, 127)], v.Eb[0] = 2 * ii[Ze(_ + a, 127)], v.Eb[1] = 101581 * ai[Ze(_ + l, 127)] >> 16, 8 > v.Eb[1] && (v.Eb[1] = 8), v.Qc[0] = ii[Ze(_ + d, 117)], v.Qc[1] = ai[Ze(_ + u, 127)], v.lc = _ + u;
9072
+ v.Sc[0] = ii[Xe(_ + o, 127)], v.Sc[1] = ai[Xe(_ + 0, 127)], v.Eb[0] = 2 * ii[Xe(_ + a, 127)], v.Eb[1] = 101581 * ai[Xe(_ + l, 127)] >> 16, 8 > v.Eb[1] && (v.Eb[1] = 8), v.Qc[0] = ii[Xe(_ + d, 117)], v.Qc[1] = ai[Xe(_ + u, 127)], v.lc = _ + u;
9058
9073
  }
9059
- if (!c.Rb) return et(e, 4, "Not a key frame.");
9074
+ if (!c.Rb) return $e(e, 4, "Not a key frame.");
9060
9075
  for (D(s), c = e.Pa, r = 0; 4 > r; ++r) {
9061
9076
  for (o = 0; 8 > o; ++o) for (a = 0; 3 > a; ++a) for (l = 0; 11 > l; ++l) d = O(s, fi[r][o][a][l]) ? h(s, 8) : ui[r][o][a][l], c.Wc[r][o].Yb[a][l] = d;
9062
9077
  for (o = 0; 17 > o; ++o) c.Xc[r][o] = c.Wc[r][pi[o]];
9063
9078
  }
9064
9079
  return e.kc = D(s), e.kc && (e.Bd = h(s, 8)), e.cb = 1;
9065
9080
  }
9066
- function rt(e, t, n, r, i, a, o) {
9081
+ function nt(e, t, n, r, i, a, o) {
9067
9082
  var s = t[i].Yb[n];
9068
9083
  for (n = 0; 16 > i; ++i) {
9069
9084
  if (!O(e, s[n + 0])) return i;
@@ -9085,45 +9100,45 @@ function ls(e) {
9085
9100
  }
9086
9101
  return 16;
9087
9102
  }
9088
- function it(e) {
9103
+ function rt(e) {
9089
9104
  var t = e.rb[e.sb - 1];
9090
9105
  t.la = 0, t.Na = 0, i(e.zc, 0, 0, e.zc.length), e.ja = 0;
9091
9106
  }
9092
- function at(e, t, n, r, i) {
9107
+ function it(e, t, n, r, i) {
9093
9108
  i = e[t + n + 32 * r] + (i >> 3), e[t + n + 32 * r] = -256 & i ? 0 > i ? 0 : 255 : i;
9094
9109
  }
9095
- function ot(e, t, n, r, i, a) {
9096
- at(e, t, 0, n, r + i), at(e, t, 1, n, r + a), at(e, t, 2, n, r - a), at(e, t, 3, n, r - i);
9110
+ function at(e, t, n, r, i, a) {
9111
+ it(e, t, 0, n, r + i), it(e, t, 1, n, r + a), it(e, t, 2, n, r - a), it(e, t, 3, n, r - i);
9097
9112
  }
9098
- function st(e) {
9113
+ function ot(e) {
9099
9114
  return (20091 * e >> 16) + e;
9100
9115
  }
9101
- function ct(e, t, n, r) {
9116
+ function st(e, t, n, r) {
9102
9117
  var i, o = 0, s = a(16);
9103
9118
  for (i = 0; 4 > i; ++i) {
9104
- var c = e[t + 0] + e[t + 8], l = e[t + 0] - e[t + 8], u = (35468 * e[t + 4] >> 16) - st(e[t + 12]), d = st(e[t + 4]) + (35468 * e[t + 12] >> 16);
9119
+ var c = e[t + 0] + e[t + 8], l = e[t + 0] - e[t + 8], u = (35468 * e[t + 4] >> 16) - ot(e[t + 12]), d = ot(e[t + 4]) + (35468 * e[t + 12] >> 16);
9105
9120
  s[o + 0] = c + d, s[o + 1] = l + u, s[o + 2] = l - u, s[o + 3] = c - d, o += 4, t++;
9106
9121
  }
9107
- for (i = o = 0; 4 > i; ++i) c = (e = s[o + 0] + 4) + s[o + 8], l = e - s[o + 8], u = (35468 * s[o + 4] >> 16) - st(s[o + 12]), at(n, r, 0, 0, c + (d = st(s[o + 4]) + (35468 * s[o + 12] >> 16))), at(n, r, 1, 0, l + u), at(n, r, 2, 0, l - u), at(n, r, 3, 0, c - d), o++, r += 32;
9122
+ for (i = o = 0; 4 > i; ++i) c = (e = s[o + 0] + 4) + s[o + 8], l = e - s[o + 8], u = (35468 * s[o + 4] >> 16) - ot(s[o + 12]), it(n, r, 0, 0, c + (d = ot(s[o + 4]) + (35468 * s[o + 12] >> 16))), it(n, r, 1, 0, l + u), it(n, r, 2, 0, l - u), it(n, r, 3, 0, c - d), o++, r += 32;
9108
9123
  }
9109
- function lt(e, t, n, r) {
9110
- var i = e[t + 0] + 4, a = 35468 * e[t + 4] >> 16, o = st(e[t + 4]), s = 35468 * e[t + 1] >> 16;
9111
- ot(n, r, 0, i + o, e = st(e[t + 1]), s), ot(n, r, 1, i + a, e, s), ot(n, r, 2, i - a, e, s), ot(n, r, 3, i - o, e, s);
9124
+ function ct(e, t, n, r) {
9125
+ var i = e[t + 0] + 4, a = 35468 * e[t + 4] >> 16, o = ot(e[t + 4]), s = 35468 * e[t + 1] >> 16;
9126
+ at(n, r, 0, i + o, e = ot(e[t + 1]), s), at(n, r, 1, i + a, e, s), at(n, r, 2, i - a, e, s), at(n, r, 3, i - o, e, s);
9112
9127
  }
9113
- function ut(e, t, n, r, i) {
9114
- ct(e, t, n, r), i && ct(e, t + 16, n, r + 4);
9128
+ function lt(e, t, n, r, i) {
9129
+ st(e, t, n, r), i && st(e, t + 16, n, r + 4);
9115
9130
  }
9116
- function dt(e, t, n, r) {
9131
+ function ut(e, t, n, r) {
9117
9132
  lr(e, t + 0, n, r, 1), lr(e, t + 32, n, r + 128, 1);
9118
9133
  }
9119
- function ft(e, t, n, r) {
9134
+ function dt(e, t, n, r) {
9120
9135
  var i;
9121
- for (e = e[t + 0] + 4, i = 0; 4 > i; ++i) for (t = 0; 4 > t; ++t) at(n, r, t, i, e);
9136
+ for (e = e[t + 0] + 4, i = 0; 4 > i; ++i) for (t = 0; 4 > t; ++t) it(n, r, t, i, e);
9122
9137
  }
9123
- function pt(e, t, n, r) {
9138
+ function ft(e, t, n, r) {
9124
9139
  e[t + 0] && fr(e, t + 0, n, r), e[t + 16] && fr(e, t + 16, n, r + 4), e[t + 32] && fr(e, t + 32, n, r + 128), e[t + 48] && fr(e, t + 48, n, r + 128 + 4);
9125
9140
  }
9126
- function mt(e, t, n, r) {
9141
+ function pt(e, t, n, r) {
9127
9142
  var i, o = a(16);
9128
9143
  for (i = 0; 4 > i; ++i) {
9129
9144
  var s = e[t + 0 + i] + e[t + 12 + i], c = e[t + 4 + i] + e[t + 8 + i], l = e[t + 4 + i] - e[t + 8 + i], u = e[t + 0 + i] - e[t + 12 + i];
@@ -9131,7 +9146,7 @@ function ls(e) {
9131
9146
  }
9132
9147
  for (i = 0; 4 > i; ++i) s = (e = o[0 + 4 * i] + 3) + o[3 + 4 * i], c = o[1 + 4 * i] + o[2 + 4 * i], l = o[1 + 4 * i] - o[2 + 4 * i], u = e - o[3 + 4 * i], n[r + 0] = s + c >> 3, n[r + 16] = u + l >> 3, n[r + 32] = s - c >> 3, n[r + 48] = u - l >> 3, r += 64;
9133
9148
  }
9134
- function ht(e, t, n) {
9149
+ function mt(e, t, n) {
9135
9150
  var r, i = t - 32, a = Lr, o = 255 - e[i - 1];
9136
9151
  for (r = 0; r < n; ++r) {
9137
9152
  var s, c = a, l = o + e[t - 1];
@@ -9139,86 +9154,86 @@ function ls(e) {
9139
9154
  t += 32;
9140
9155
  }
9141
9156
  }
9157
+ function ht(e, t) {
9158
+ mt(e, t, 4);
9159
+ }
9142
9160
  function gt(e, t) {
9143
- ht(e, t, 4);
9161
+ mt(e, t, 8);
9144
9162
  }
9145
9163
  function _t(e, t) {
9146
- ht(e, t, 8);
9164
+ mt(e, t, 16);
9147
9165
  }
9148
9166
  function vt(e, t) {
9149
- ht(e, t, 16);
9150
- }
9151
- function yt(e, t) {
9152
9167
  for (var n = 0; 16 > n; ++n) r(e, t + 32 * n, e, t - 32, 16);
9153
9168
  }
9154
- function bt(e, t) {
9169
+ function yt(e, t) {
9155
9170
  for (var n = 16; 0 < n; --n) i(e, t, e[t - 1], 16), t += 32;
9156
9171
  }
9157
- function xt(e, t, n) {
9172
+ function bt(e, t, n) {
9158
9173
  for (var r = 0; 16 > r; ++r) i(t, n + 32 * r, e, 16);
9159
9174
  }
9160
- function St(e, t) {
9175
+ function xt(e, t) {
9161
9176
  var n, r = 16;
9162
9177
  for (n = 0; 16 > n; ++n) r += e[t - 1 + 32 * n] + e[t + n - 32];
9163
- xt(r >> 5, e, t);
9178
+ bt(r >> 5, e, t);
9164
9179
  }
9165
- function Ct(e, t) {
9180
+ function St(e, t) {
9166
9181
  var n, r = 8;
9167
9182
  for (n = 0; 16 > n; ++n) r += e[t - 1 + 32 * n];
9168
- xt(r >> 4, e, t);
9183
+ bt(r >> 4, e, t);
9169
9184
  }
9170
- function wt(e, t) {
9185
+ function Ct(e, t) {
9171
9186
  var n, r = 8;
9172
9187
  for (n = 0; 16 > n; ++n) r += e[t + n - 32];
9173
- xt(r >> 4, e, t);
9188
+ bt(r >> 4, e, t);
9174
9189
  }
9175
- function Tt(e, t) {
9176
- xt(128, e, t);
9190
+ function wt(e, t) {
9191
+ bt(128, e, t);
9177
9192
  }
9178
- function J(e, t, n) {
9193
+ function Y(e, t, n) {
9179
9194
  return e + 2 * t + n + 2 >> 2;
9180
9195
  }
9181
- function Et(e, t) {
9196
+ function Tt(e, t) {
9182
9197
  var n, i = t - 32;
9183
9198
  for (i = new Uint8Array([
9184
- J(e[i - 1], e[i + 0], e[i + 1]),
9185
- J(e[i + 0], e[i + 1], e[i + 2]),
9186
- J(e[i + 1], e[i + 2], e[i + 3]),
9187
- J(e[i + 2], e[i + 3], e[i + 4])
9199
+ Y(e[i - 1], e[i + 0], e[i + 1]),
9200
+ Y(e[i + 0], e[i + 1], e[i + 2]),
9201
+ Y(e[i + 1], e[i + 2], e[i + 3]),
9202
+ Y(e[i + 2], e[i + 3], e[i + 4])
9188
9203
  ]), n = 0; 4 > n; ++n) r(e, t + 32 * n, i, 0, i.length);
9189
9204
  }
9190
- function Dt(e, t) {
9205
+ function Et(e, t) {
9191
9206
  var n = e[t - 1], r = e[t - 1 + 32], i = e[t - 1 + 64], a = e[t - 1 + 96];
9192
- k(e, t + 0, 16843009 * J(e[t - 1 - 32], n, r)), k(e, t + 32, 16843009 * J(n, r, i)), k(e, t + 64, 16843009 * J(r, i, a)), k(e, t + 96, 16843009 * J(i, a, a));
9207
+ k(e, t + 0, 16843009 * Y(e[t - 1 - 32], n, r)), k(e, t + 32, 16843009 * Y(n, r, i)), k(e, t + 64, 16843009 * Y(r, i, a)), k(e, t + 96, 16843009 * Y(i, a, a));
9193
9208
  }
9194
- function Ot(e, t) {
9209
+ function Dt(e, t) {
9195
9210
  var n, r = 4;
9196
9211
  for (n = 0; 4 > n; ++n) r += e[t + n - 32] + e[t - 1 + 32 * n];
9197
9212
  for (r >>= 3, n = 0; 4 > n; ++n) i(e, t + 32 * n, r, 4);
9198
9213
  }
9199
- function Y(e, t) {
9214
+ function Ot(e, t) {
9200
9215
  var n = e[t - 1 + 0], r = e[t - 1 + 32], i = e[t - 1 + 64], a = e[t - 1 - 32], o = e[t + 0 - 32], s = e[t + 1 - 32], c = e[t + 2 - 32], l = e[t + 3 - 32];
9201
- e[t + 0 + 96] = J(r, i, e[t - 1 + 96]), e[t + 1 + 96] = e[t + 0 + 64] = J(n, r, i), e[t + 2 + 96] = e[t + 1 + 64] = e[t + 0 + 32] = J(a, n, r), e[t + 3 + 96] = e[t + 2 + 64] = e[t + 1 + 32] = e[t + 0 + 0] = J(o, a, n), e[t + 3 + 64] = e[t + 2 + 32] = e[t + 1 + 0] = J(s, o, a), e[t + 3 + 32] = e[t + 2 + 0] = J(c, s, o), e[t + 3 + 0] = J(l, c, s);
9216
+ e[t + 0 + 96] = Y(r, i, e[t - 1 + 96]), e[t + 1 + 96] = e[t + 0 + 64] = Y(n, r, i), e[t + 2 + 96] = e[t + 1 + 64] = e[t + 0 + 32] = Y(a, n, r), e[t + 3 + 96] = e[t + 2 + 64] = e[t + 1 + 32] = e[t + 0 + 0] = Y(o, a, n), e[t + 3 + 64] = e[t + 2 + 32] = e[t + 1 + 0] = Y(s, o, a), e[t + 3 + 32] = e[t + 2 + 0] = Y(c, s, o), e[t + 3 + 0] = Y(l, c, s);
9202
9217
  }
9203
9218
  function kt(e, t) {
9204
9219
  var n = e[t + 1 - 32], r = e[t + 2 - 32], i = e[t + 3 - 32], a = e[t + 4 - 32], o = e[t + 5 - 32], s = e[t + 6 - 32], c = e[t + 7 - 32];
9205
- e[t + 0 + 0] = J(e[t + 0 - 32], n, r), e[t + 1 + 0] = e[t + 0 + 32] = J(n, r, i), e[t + 2 + 0] = e[t + 1 + 32] = e[t + 0 + 64] = J(r, i, a), e[t + 3 + 0] = e[t + 2 + 32] = e[t + 1 + 64] = e[t + 0 + 96] = J(i, a, o), e[t + 3 + 32] = e[t + 2 + 64] = e[t + 1 + 96] = J(a, o, s), e[t + 3 + 64] = e[t + 2 + 96] = J(o, s, c), e[t + 3 + 96] = J(s, c, c);
9220
+ e[t + 0 + 0] = Y(e[t + 0 - 32], n, r), e[t + 1 + 0] = e[t + 0 + 32] = Y(n, r, i), e[t + 2 + 0] = e[t + 1 + 32] = e[t + 0 + 64] = Y(r, i, a), e[t + 3 + 0] = e[t + 2 + 32] = e[t + 1 + 64] = e[t + 0 + 96] = Y(i, a, o), e[t + 3 + 32] = e[t + 2 + 64] = e[t + 1 + 96] = Y(a, o, s), e[t + 3 + 64] = e[t + 2 + 96] = Y(o, s, c), e[t + 3 + 96] = Y(s, c, c);
9206
9221
  }
9207
9222
  function At(e, t) {
9208
9223
  var n = e[t - 1 + 0], r = e[t - 1 + 32], i = e[t - 1 + 64], a = e[t - 1 - 32], o = e[t + 0 - 32], s = e[t + 1 - 32], c = e[t + 2 - 32], l = e[t + 3 - 32];
9209
- e[t + 0 + 0] = e[t + 1 + 64] = a + o + 1 >> 1, e[t + 1 + 0] = e[t + 2 + 64] = o + s + 1 >> 1, e[t + 2 + 0] = e[t + 3 + 64] = s + c + 1 >> 1, e[t + 3 + 0] = c + l + 1 >> 1, e[t + 0 + 96] = J(i, r, n), e[t + 0 + 64] = J(r, n, a), e[t + 0 + 32] = e[t + 1 + 96] = J(n, a, o), e[t + 1 + 32] = e[t + 2 + 96] = J(a, o, s), e[t + 2 + 32] = e[t + 3 + 96] = J(o, s, c), e[t + 3 + 32] = J(s, c, l);
9224
+ e[t + 0 + 0] = e[t + 1 + 64] = a + o + 1 >> 1, e[t + 1 + 0] = e[t + 2 + 64] = o + s + 1 >> 1, e[t + 2 + 0] = e[t + 3 + 64] = s + c + 1 >> 1, e[t + 3 + 0] = c + l + 1 >> 1, e[t + 0 + 96] = Y(i, r, n), e[t + 0 + 64] = Y(r, n, a), e[t + 0 + 32] = e[t + 1 + 96] = Y(n, a, o), e[t + 1 + 32] = e[t + 2 + 96] = Y(a, o, s), e[t + 2 + 32] = e[t + 3 + 96] = Y(o, s, c), e[t + 3 + 32] = Y(s, c, l);
9210
9225
  }
9211
9226
  function jt(e, t) {
9212
9227
  var n = e[t + 0 - 32], r = e[t + 1 - 32], i = e[t + 2 - 32], a = e[t + 3 - 32], o = e[t + 4 - 32], s = e[t + 5 - 32], c = e[t + 6 - 32], l = e[t + 7 - 32];
9213
- e[t + 0 + 0] = n + r + 1 >> 1, e[t + 1 + 0] = e[t + 0 + 64] = r + i + 1 >> 1, e[t + 2 + 0] = e[t + 1 + 64] = i + a + 1 >> 1, e[t + 3 + 0] = e[t + 2 + 64] = a + o + 1 >> 1, e[t + 0 + 32] = J(n, r, i), e[t + 1 + 32] = e[t + 0 + 96] = J(r, i, a), e[t + 2 + 32] = e[t + 1 + 96] = J(i, a, o), e[t + 3 + 32] = e[t + 2 + 96] = J(a, o, s), e[t + 3 + 64] = J(o, s, c), e[t + 3 + 96] = J(s, c, l);
9228
+ e[t + 0 + 0] = n + r + 1 >> 1, e[t + 1 + 0] = e[t + 0 + 64] = r + i + 1 >> 1, e[t + 2 + 0] = e[t + 1 + 64] = i + a + 1 >> 1, e[t + 3 + 0] = e[t + 2 + 64] = a + o + 1 >> 1, e[t + 0 + 32] = Y(n, r, i), e[t + 1 + 32] = e[t + 0 + 96] = Y(r, i, a), e[t + 2 + 32] = e[t + 1 + 96] = Y(i, a, o), e[t + 3 + 32] = e[t + 2 + 96] = Y(a, o, s), e[t + 3 + 64] = Y(o, s, c), e[t + 3 + 96] = Y(s, c, l);
9214
9229
  }
9215
9230
  function Mt(e, t) {
9216
9231
  var n = e[t - 1 + 0], r = e[t - 1 + 32], i = e[t - 1 + 64], a = e[t - 1 + 96];
9217
- e[t + 0 + 0] = n + r + 1 >> 1, e[t + 2 + 0] = e[t + 0 + 32] = r + i + 1 >> 1, e[t + 2 + 32] = e[t + 0 + 64] = i + a + 1 >> 1, e[t + 1 + 0] = J(n, r, i), e[t + 3 + 0] = e[t + 1 + 32] = J(r, i, a), e[t + 3 + 32] = e[t + 1 + 64] = J(i, a, a), e[t + 3 + 64] = e[t + 2 + 64] = e[t + 0 + 96] = e[t + 1 + 96] = e[t + 2 + 96] = e[t + 3 + 96] = a;
9232
+ e[t + 0 + 0] = n + r + 1 >> 1, e[t + 2 + 0] = e[t + 0 + 32] = r + i + 1 >> 1, e[t + 2 + 32] = e[t + 0 + 64] = i + a + 1 >> 1, e[t + 1 + 0] = Y(n, r, i), e[t + 3 + 0] = e[t + 1 + 32] = Y(r, i, a), e[t + 3 + 32] = e[t + 1 + 64] = Y(i, a, a), e[t + 3 + 64] = e[t + 2 + 64] = e[t + 0 + 96] = e[t + 1 + 96] = e[t + 2 + 96] = e[t + 3 + 96] = a;
9218
9233
  }
9219
9234
  function Nt(e, t) {
9220
9235
  var n = e[t - 1 + 0], r = e[t - 1 + 32], i = e[t - 1 + 64], a = e[t - 1 + 96], o = e[t - 1 - 32], s = e[t + 0 - 32], c = e[t + 1 - 32], l = e[t + 2 - 32];
9221
- e[t + 0 + 0] = e[t + 2 + 32] = n + o + 1 >> 1, e[t + 0 + 32] = e[t + 2 + 64] = r + n + 1 >> 1, e[t + 0 + 64] = e[t + 2 + 96] = i + r + 1 >> 1, e[t + 0 + 96] = a + i + 1 >> 1, e[t + 3 + 0] = J(s, c, l), e[t + 2 + 0] = J(o, s, c), e[t + 1 + 0] = e[t + 3 + 32] = J(n, o, s), e[t + 1 + 32] = e[t + 3 + 64] = J(r, n, o), e[t + 1 + 64] = e[t + 3 + 96] = J(i, r, n), e[t + 1 + 96] = J(a, i, r);
9236
+ e[t + 0 + 0] = e[t + 2 + 32] = n + o + 1 >> 1, e[t + 0 + 32] = e[t + 2 + 64] = r + n + 1 >> 1, e[t + 0 + 64] = e[t + 2 + 96] = i + r + 1 >> 1, e[t + 0 + 96] = a + i + 1 >> 1, e[t + 3 + 0] = Y(s, c, l), e[t + 2 + 0] = Y(o, s, c), e[t + 1 + 0] = e[t + 3 + 32] = Y(n, o, s), e[t + 1 + 32] = e[t + 3 + 64] = Y(r, n, o), e[t + 1 + 64] = e[t + 3 + 96] = Y(i, r, n), e[t + 1 + 96] = Y(a, i, r);
9222
9237
  }
9223
9238
  function Pt(e, t) {
9224
9239
  for (var n = 0; 8 > n; ++n) r(e, t + 32 * n, e, t - 32, 8);
@@ -9337,10 +9352,10 @@ function ls(e) {
9337
9352
  this.ua = 0, this.Wa = new F(), this.vb = new F(), this.md = this.xc = this.wc = 0, this.vc = [], this.Wb = 0, this.Ya = new p(), this.yc = new d();
9338
9353
  }
9339
9354
  function un() {
9340
- this.xb = this.a = 0, this.l = new Qe(), this.ca = new he(), this.V = [], this.Ba = 0, this.Ta = [], this.Ua = 0, this.m = new x(), this.Pb = 0, this.wd = new x(), this.Ma = this.$ = this.C = this.i = this.c = this.xd = 0, this.s = new ln(), this.ab = 0, this.gc = o(4, cn), this.Oc = 0;
9355
+ this.xb = this.a = 0, this.l = new Ze(), this.ca = new he(), this.V = [], this.Ba = 0, this.Ta = [], this.Ua = 0, this.m = new x(), this.Pb = 0, this.wd = new x(), this.Ma = this.$ = this.C = this.i = this.c = this.xd = 0, this.s = new ln(), this.ab = 0, this.gc = o(4, cn), this.Oc = 0;
9341
9356
  }
9342
9357
  function dn() {
9343
- this.Lc = this.Z = this.$a = this.i = this.c = 0, this.l = new Qe(), this.ic = 0, this.ca = [], this.tb = 0, this.qd = null, this.rd = 0;
9358
+ this.Lc = this.Z = this.$a = this.i = this.c = 0, this.l = new Ze(), this.ic = 0, this.ca = [], this.tb = 0, this.qd = null, this.rd = 0;
9344
9359
  }
9345
9360
  function fn(e, t, n, r, i, a, o) {
9346
9361
  for (e = e == null ? 0 : e[t + 0], t = 0; t < o; ++t) i[a + t] = e + n[r + t] & 255, e = i[a + t];
@@ -9369,13 +9384,13 @@ function ls(e) {
9369
9384
  if (t(u != null && p != null && n != null), yi[0] = null, yi[1] = fn, yi[2] = pn, yi[3] = mn, l.ca = p, l.tb = m, l.c = n.width, l.i = n.height, t(0 < l.c && 0 < l.i), 1 >= f) n = 0;
9370
9385
  else if (l.$a = 3 & u[d + 0], l.Z = u[d + 0] >> 2 & 3, l.Lc = u[d + 0] >> 4 & 3, d = u[d + 0] >> 6 & 3, 0 > l.$a || 1 < l.$a || 4 <= l.Z || 1 < l.Lc || d) n = 0;
9371
9386
  else if (v.put = Se, v.ac = xe, v.bc = Ce, v.ma = l, v.width = n.width, v.height = n.height, v.Da = n.Da, v.v = n.v, v.va = n.va, v.j = n.j, v.o = n.o, l.$a) t: {
9372
- t(l.$a == 1), n = Fe();
9387
+ t(l.$a == 1), n = Pe();
9373
9388
  e: for (;;) {
9374
9389
  if (n == null) {
9375
9390
  n = 0;
9376
9391
  break t;
9377
9392
  }
9378
- if (t(l != null), l.mc = n, n.c = l.c, n.i = l.i, n.l = l.l, n.l.ma = l, n.l.width = l.c, n.l.height = l.i, n.a = 0, _(n.m, u, h, g), !Ie(l.c, l.i, 1, n, null) || (n.ab == 1 && n.gc[0].hc == 3 && je(n.s) ? (l.ic = 1, u = n.c * n.i, n.Ta = null, n.Ua = 0, n.V = a(u), n.Ba = 0, n.V == null ? (n.a = 1, n = 0) : n = 1) : (l.ic = 0, n = Le(n, l.c)), !n)) break e;
9393
+ if (t(l != null), l.mc = n, n.c = l.c, n.i = l.i, n.l = l.l, n.l.ma = l, n.l.width = l.c, n.l.height = l.i, n.a = 0, _(n.m, u, h, g), !Fe(l.c, l.i, 1, n, null) || (n.ab == 1 && n.gc[0].hc == 3 && Ae(n.s) ? (l.ic = 1, u = n.c * n.i, n.Ta = null, n.Ua = 0, n.V = a(u), n.Ba = 0, n.V == null ? (n.a = 1, n = 0) : n = 1) : (l.ic = 0, n = Ie(n, l.c)), !n)) break e;
9379
9394
  n = 1;
9380
9395
  break t;
9381
9396
  }
@@ -9397,11 +9412,11 @@ function ls(e) {
9397
9412
  if (t(u.mc != null), n = i + o, t((l = u.mc) != null), t(n <= l.i), l.C >= n) n = 1;
9398
9413
  else if (u.ic || bn(), u.ic) {
9399
9414
  u = l.V, h = l.Ba, g = l.c;
9400
- var y = l.i, b = (v = 1, d = l.$ / g, f = l.$ % g, p = l.m, m = l.s, l.$), x = g * y, S = g * n, w = m.wc, E = b < S ? Oe(m, f, d) : null;
9401
- t(b <= x), t(n <= y), t(je(m));
9415
+ var y = l.i, b = (v = 1, d = l.$ / g, f = l.$ % g, p = l.m, m = l.s, l.$), x = g * y, S = g * n, w = m.wc, E = b < S ? K(m, f, d) : null;
9416
+ t(b <= x), t(n <= y), t(Ae(m));
9402
9417
  e: for (;;) {
9403
9418
  for (; !p.h && b < S;) {
9404
- if (f & w || (E = Oe(m, f, d)), t(E != null), T(p), 256 > (y = G(E.G[0], E.H[0], p))) u[h + b] = y, ++b, ++f >= g && (f = 0, ++d <= n && !(d % 16) && Ne(l, d));
9419
+ if (f & w || (E = K(m, f, d)), t(E != null), T(p), 256 > (y = G(E.G[0], E.H[0], p))) u[h + b] = y, ++b, ++f >= g && (f = 0, ++d <= n && !(d % 16) && Me(l, d));
9405
9420
  else {
9406
9421
  if (!(280 > y)) {
9407
9422
  v = 0;
@@ -9414,16 +9429,16 @@ function ls(e) {
9414
9429
  break e;
9415
9430
  }
9416
9431
  for (D = 0; D < y; ++D) u[h + b + D] = u[h + b + D - O];
9417
- for (b += y, f += y; f >= g;) f -= g, ++d <= n && !(d % 16) && Ne(l, d);
9418
- b < S && f & w && (E = Oe(m, f, d));
9432
+ for (b += y, f += y; f >= g;) f -= g, ++d <= n && !(d % 16) && Me(l, d);
9433
+ b < S && f & w && (E = K(m, f, d));
9419
9434
  }
9420
9435
  t(p.h == C(p));
9421
9436
  }
9422
- Ne(l, d > n ? n : d);
9437
+ Me(l, d > n ? n : d);
9423
9438
  break e;
9424
9439
  }
9425
9440
  !v || p.h && b < x ? (v = 0, l.a = p.h ? 5 : 3) : l.$ = b, n = v;
9426
- } else n = K(l, l.V, l.Ba, l.c, l.i, n, Re);
9441
+ } else n = q(l, l.V, l.Ba, l.c, l.i, n, Le);
9427
9442
  if (!n) {
9428
9443
  o = 0;
9429
9444
  break t;
@@ -9687,7 +9702,7 @@ function ls(e) {
9687
9702
  y = 7;
9688
9703
  break;
9689
9704
  }
9690
- l = g, e == null || 10 > i || !tt(e, r + 3, i - 3) ? e = 0 : (m = e[r + 0] | e[r + 1] << 8 | e[r + 2] << 16, v = 16383 & (e[r + 7] << 8 | e[r + 6]), e = 16383 & (e[r + 9] << 8 | e[r + 8]), 1 & m || 3 < (m >> 1 & 7) || !(m >> 4 & 1) || m >> 5 >= h.Ja || !v || !e ? e = 0 : (c && (c[0] = v), l && (l[0] = e), e = 1));
9705
+ l = g, e == null || 10 > i || !et(e, r + 3, i - 3) ? e = 0 : (m = e[r + 0] | e[r + 1] << 8 | e[r + 2] << 16, v = 16383 & (e[r + 7] << 8 | e[r + 6]), e = 16383 & (e[r + 9] << 8 | e[r + 8]), 1 & m || 3 < (m >> 1 & 7) || !(m >> 4 & 1) || m >> 5 >= h.Ja || !v || !e ? e = 0 : (c && (c[0] = v), l && (l[0] = e), e = 1));
9691
9706
  }
9692
9707
  if (!e || (c = c[0], g = g[0], p && (d[0] != c || f[0] != g))) return 3;
9693
9708
  u != null && (u[0] = h, u.offset = r - u.w, t(4294967286 > r - u.w), t(u.offset == u.ha - i));
@@ -14415,9 +14430,9 @@ function ls(e) {
14415
14430
  if (g == 0 ? (p != null && (p[0] = h.width[0]), m != null && (m[0] = h.height[0]), p = 1) : p = 0, p) {
14416
14431
  f.width = f.width[0], f.height = f.height[0], c != null && (c[0] = f.width), l != null && (l[0] = f.height);
14417
14432
  t: {
14418
- if (c = new Qe(), (l = new sn()).data = e, l.w = n, l.ha = s, l.kd = 1, n = [0], t(l != null), ((e = Rn(l.data, l.w, l.ha, null, null, null, n, null, l)) == 0 || e == 7) && n[0] && (e = 4), (n = e) == 0) {
14433
+ if (c = new Ze(), (l = new sn()).data = e, l.w = n, l.ha = s, l.kd = 1, n = [0], t(l != null), ((e = Rn(l.data, l.w, l.ha, null, null, null, n, null, l)) == 0 || e == 7) && n[0] && (e = 4), (n = e) == 0) {
14419
14434
  if (t(d != null), c.data = l.data, c.w = l.w + l.offset, c.ha = l.ha - l.offset, c.put = Se, c.ac = xe, c.bc = Ce, c.ma = d, l.xa) {
14420
- if ((e = Fe()) == null) {
14435
+ if ((e = Pe()) == null) {
14421
14436
  d = 1;
14422
14437
  break t;
14423
14438
  }
@@ -14430,7 +14445,7 @@ function ls(e) {
14430
14445
  e.a = 3;
14431
14446
  break e;
14432
14447
  }
14433
- if (e.xb = vi, n.width = r[0], n.height = i[0], !Ie(r[0], i[0], 1, e, null)) break e;
14448
+ if (e.xb = vi, n.width = r[0], n.height = i[0], !Fe(r[0], i[0], 1, e, null)) break e;
14434
14449
  return 1;
14435
14450
  }
14436
14451
  return t(e.a != 0), 0;
@@ -14438,7 +14453,7 @@ function ls(e) {
14438
14453
  if (c = (n = Vn(c.width, c.height, d.Oa, d.ba)) == 0) {
14439
14454
  e: {
14440
14455
  c = e;
14441
- n: for (;;) {
14456
+ r: for (;;) {
14442
14457
  if (c == null) {
14443
14458
  c = 0;
14444
14459
  break e;
@@ -14446,16 +14461,16 @@ function ls(e) {
14446
14461
  if (t(c.s.yc != null), t(c.s.Ya != null), t(0 < c.s.Wb), t((s = c.l) != null), t((l = s.ma) != null), c.xb != 0) {
14447
14462
  if (c.ca = l.ba, c.tb = l.tb, t(c.ca != null), !zn(l.Oa, s, Hr)) {
14448
14463
  c.a = 2;
14449
- break n;
14464
+ break r;
14450
14465
  }
14451
- if (!Le(c, s.width) || s.da) break n;
14466
+ if (!Ie(c, s.width) || s.da) break r;
14452
14467
  if ((s.da || fe(c.ca.S)) && bn(), 11 > c.ca.S || (alert("todo:WebPInitConvertARGBToYUV"), c.ca.f.kb.F != null && bn()), c.Pb && 0 < c.s.ua && c.s.vb.X == null && !N(c.s.vb, c.s.Wa.Xa)) {
14453
14468
  c.a = 1;
14454
- break n;
14469
+ break r;
14455
14470
  }
14456
14471
  c.xb = 0;
14457
14472
  }
14458
- if (!K(c, c.V, c.Ba, c.c, c.i, s.o, Ae)) break n;
14473
+ if (!q(c, c.V, c.Ba, c.c, c.i, s.o, ke)) break r;
14459
14474
  l.Dc = c.Ma, c = 1;
14460
14475
  break e;
14461
14476
  }
@@ -14466,11 +14481,11 @@ function ls(e) {
14466
14481
  c && (n = e.a);
14467
14482
  } else n = e.a;
14468
14483
  } else {
14469
- if ((e = new $e()) == null) {
14484
+ if ((e = new Qe()) == null) {
14470
14485
  d = 1;
14471
14486
  break t;
14472
14487
  }
14473
- if (e.Fa = l.na, e.P = l.P, e.qc = l.Sa, nt(e, c)) {
14488
+ if (e.Fa = l.na, e.P = l.P, e.qc = l.Sa, tt(e, c)) {
14474
14489
  if ((n = Vn(c.width, c.height, d.Oa, d.ba)) == 0) {
14475
14490
  if (e.Aa = 0, s = d.Oa, t((l = e) != null), s != null) {
14476
14491
  if (0 < (p = 0 > (p = s.Md) ? 0 : 100 < p ? 255 : 255 * p / 100)) {
@@ -14481,8 +14496,8 @@ function ls(e) {
14481
14496
  }
14482
14497
  (function(e, n) {
14483
14498
  if (e == null) return 0;
14484
- if (n == null) return et(e, 2, "NULL VP8Io parameter in VP8Decode().");
14485
- if (!e.cb && !nt(e, n)) return 0;
14499
+ if (n == null) return $e(e, 2, "NULL VP8Io parameter in VP8Decode().");
14500
+ if (!e.cb && !tt(e, n)) return 0;
14486
14501
  if (t(e.cb), n.ac == null || n.ac(n)) {
14487
14502
  n.ob && (e.L = 0);
14488
14503
  var s = Hi[e.L];
@@ -14505,7 +14520,7 @@ function ls(e) {
14505
14520
  }
14506
14521
  }
14507
14522
  s = 0;
14508
- } else et(e, 6, "Frame setup failed"), s = e.a;
14523
+ } else $e(e, 6, "Frame setup failed"), s = e.a;
14509
14524
  if (s = s == 0) {
14510
14525
  if (s) {
14511
14526
  e.$c = 0, 0 < e.Aa || (e.Ic = Wi);
@@ -14516,12 +14531,12 @@ function ls(e) {
14516
14531
  else {
14517
14532
  if (d > e.Vb) {
14518
14533
  if (e.Vb = 0, e.Ec = a(d), e.Fc = 0, e.Ec == null) {
14519
- s = et(e, 1, "no memory during frame initialization.");
14534
+ s = $e(e, 1, "no memory during frame initialization.");
14520
14535
  break e;
14521
14536
  }
14522
14537
  e.Vb = d;
14523
14538
  }
14524
- d = e.Ec, f = e.Fc, e.Ac = d, e.Bc = f, f += c, e.Gd = o(m, Ye), e.Hd = 0, e.rb = o(h + 1, Ge), e.sb = 1, e.wa = g ? o(g, We) : null, e.Y = 0, e.D.Nb = 0, e.D.wa = e.wa, e.D.Y = e.Y, 0 < e.Aa && (e.D.Y += p), t(!0), e.oc = d, e.pc = f, f += 832, e.ya = o(_, qe), e.aa = 0, e.D.ya = e.ya, e.D.aa = e.aa, e.Aa == 2 && (e.D.aa += p), e.R = 16 * p, e.B = 8 * p, p = (m = Hi[e.L]) * e.R, m = m / 2 * e.B, e.sa = d, e.ta = f + p, e.qa = e.sa, e.ra = e.ta + 16 * s * e.R + m, e.Ha = e.qa, e.Ia = e.ra + 8 * s * e.B + m, e.$c = 0, f += l, e.mb = u ? d : null, e.nb = u ? f : null, t(f + u <= e.Fc + e.Vb), it(e), i(e.Ac, e.Bc, 0, c), s = 1;
14539
+ d = e.Ec, f = e.Fc, e.Ac = d, e.Bc = f, f += c, e.Gd = o(m, Je), e.Hd = 0, e.rb = o(h + 1, We), e.sb = 1, e.wa = g ? o(g, Ue) : null, e.Y = 0, e.D.Nb = 0, e.D.wa = e.wa, e.D.Y = e.Y, 0 < e.Aa && (e.D.Y += p), t(!0), e.oc = d, e.pc = f, f += 832, e.ya = o(_, Ke), e.aa = 0, e.D.ya = e.ya, e.D.aa = e.aa, e.Aa == 2 && (e.D.aa += p), e.R = 16 * p, e.B = 8 * p, p = (m = Hi[e.L]) * e.R, m = m / 2 * e.B, e.sa = d, e.ta = f + p, e.qa = e.sa, e.ra = e.ta + 16 * s * e.R + m, e.Ha = e.qa, e.Ia = e.ra + 8 * s * e.B + m, e.$c = 0, f += l, e.mb = u ? d : null, e.nb = u ? f : null, t(f + u <= e.Fc + e.Vb), rt(e), i(e.Ac, e.Bc, 0, c), s = 1;
14525
14540
  }
14526
14541
  }
14527
14542
  if (s) {
@@ -14532,7 +14547,7 @@ function ls(e) {
14532
14547
  for (s = -255; 510 >= s; ++s) Nr[255 + s] = 0 > s ? 0 : 255 < s ? 255 : s;
14533
14548
  Pr = 1;
14534
14549
  }
14535
- cr = mt, lr = ut, dr = dt, fr = ft, pr = pt, ur = lt, mr = Zt, hr = Qt, gr = tn, _r = nn, vr = $t, yr = en, br = rn, xr = an, Sr = Gt, Cr = Kt, wr = qt, Tr = Jt, hi[0] = Ot, hi[1] = gt, hi[2] = Et, hi[3] = Dt, hi[4] = Y, hi[5] = At, hi[6] = kt, hi[7] = jt, hi[8] = Nt, hi[9] = Mt, mi[0] = St, mi[1] = vt, mi[2] = yt, mi[3] = bt, mi[4] = Ct, mi[5] = wt, mi[6] = Tt, gi[0] = Lt, gi[1] = _t, gi[2] = Pt, gi[3] = Ft, gi[4] = zt, gi[5] = Rt, gi[6] = Bt, s = 1;
14550
+ cr = pt, lr = lt, dr = ut, fr = dt, pr = ft, ur = ct, mr = Zt, hr = Qt, gr = tn, _r = nn, vr = $t, yr = en, br = rn, xr = an, Sr = Gt, Cr = Kt, wr = qt, Tr = Jt, hi[0] = Dt, hi[1] = ht, hi[2] = Tt, hi[3] = Et, hi[4] = Ot, hi[5] = At, hi[6] = kt, hi[7] = jt, hi[8] = Nt, hi[9] = Mt, mi[0] = xt, mi[1] = _t, mi[2] = vt, mi[3] = yt, mi[4] = St, mi[5] = Ct, mi[6] = wt, gi[0] = Lt, gi[1] = gt, gi[2] = Pt, gi[3] = Ft, gi[4] = zt, gi[5] = Rt, gi[6] = Bt, s = 1;
14536
14551
  } else s = 0;
14537
14552
  }
14538
14553
  s &&= function(e, n) {
@@ -14554,7 +14569,7 @@ function ls(e) {
14554
14569
  } else y = O(u, 156) ? O(u, 128) ? 1 : 3 : O(u, 163) ? 2 : 0, h.Ob[0] = y, i(f, p, y, 4), i(m, 0, y, 4);
14555
14570
  h.Dd = O(u, 142) ? O(u, 114) ? O(u, 183) ? 1 : 3 : 2 : 0;
14556
14571
  }
14557
- if (l.m.Ka) return et(e, 7, "Premature end-of-partition0 encountered.");
14572
+ if (l.m.Ka) return $e(e, 7, "Premature end-of-partition0 encountered.");
14558
14573
  for (; e.ja < e.za; ++e.ja) {
14559
14574
  if (l = s, u = (c = e).rb[c.sb - 1], f = c.rb[c.sb + c.ja], o = c.ya[c.aa + c.ja], p = c.kc ? o.Ad : 0) u.la = f.la = 0, o.Za || (u.Na = f.Na = 0), o.Hc = 0, o.Gc = 0, o.ia = 0;
14560
14575
  else {
@@ -14585,9 +14600,9 @@ function ls(e) {
14585
14600
  }
14586
14601
  u.la = w, _.la = C, m.Hc = v, m.Gc = y, m.ia = 43690 & y ? 0 : h.ia, p = !(v | y);
14587
14602
  }
14588
- if (0 < c.L && (c.wa[c.Y + c.ja] = c.gd[o.$b][o.Za], c.wa[c.Y + c.ja].La |= !p), l.Ka) return et(e, 7, "Premature end-of-file encountered.");
14603
+ if (0 < c.L && (c.wa[c.Y + c.ja] = c.gd[o.$b][o.Za], c.wa[c.Y + c.ja].La |= !p), l.Ka) return $e(e, 7, "Premature end-of-file encountered.");
14589
14604
  }
14590
- if (it(e), c = n, l = 1, o = (s = e).D, u = 0 < s.L && s.M >= s.zb && s.M <= s.Va, s.Aa == 0) e: {
14605
+ if (rt(e), c = n, l = 1, o = (s = e).D, u = 0 < s.L && s.M >= s.zb && s.M <= s.Va, s.Aa == 0) e: {
14591
14606
  if (o.M = s.M, o.uc = u, Ln(s, o), l = 1, o = (S = s.D).Nb, u = (y = Hi[s.L]) * s.R, f = y / 2 * s.B, b = 16 * o * s.R, E = 8 * o * s.B, p = s.sa, m = s.ta - u + b, h = s.qa, d = s.ra - f + E, g = s.Ha, _ = s.Ia - f + E, k = (D = S.M) == 0, v = D >= s.Va - 1, s.Aa == 2 && Ln(s, S), S.uc) for (A = (T = s).D.M, t(T.D.uc), S = T.yb; S < T.Hb; ++S) {
14592
14607
  C = S, w = A;
14593
14608
  var j = (M = (B = T).D).Nb;
@@ -14603,14 +14618,14 @@ function ls(e) {
14603
14618
  }
14604
14619
  if (s.ia && alert("todo:DitherRow"), c.put != null) {
14605
14620
  if (S = 16 * D, D = 16 * (D + 1), k ? (c.y = s.sa, c.O = s.ta + b, c.f = s.qa, c.N = s.ra + E, c.ea = s.Ha, c.W = s.Ia + E) : (S -= y, c.y = p, c.O = m, c.f = h, c.N = d, c.ea = g, c.W = _), v || (D -= y), D > c.o && (D = c.o), c.F = null, c.J = null, s.Fa != null && 0 < s.Fa.length && S < D && (c.J = hn(s, c, S, D - S), c.F = s.mb, c.F == null && c.F.length == 0)) {
14606
- l = et(s, 3, "Could not decode alpha data.");
14621
+ l = $e(s, 3, "Could not decode alpha data.");
14607
14622
  break e;
14608
14623
  }
14609
14624
  S < c.j && (y = c.j - S, S = c.j, t(!(1 & y)), c.O += s.R * y, c.N += s.B * (y >> 1), c.W += s.B * (y >> 1), c.F != null && (c.J += c.width * y)), S < D && (c.O += c.v, c.N += c.v >> 1, c.W += c.v >> 1, c.F != null && (c.J += c.v), c.ka = S - c.j, c.U = c.va - c.v, c.T = D - S, l = c.put(c));
14610
14625
  }
14611
14626
  o + 1 != s.Ic || v || (r(s.sa, s.ta - u, p, m + 16 * s.R, u), r(s.qa, s.ra - f, h, d + 8 * s.B, f), r(s.Ha, s.Ia - f, g, _ + 8 * s.B, f));
14612
14627
  }
14613
- if (!l) return et(e, 6, "Output aborted.");
14628
+ if (!l) return $e(e, 6, "Output aborted.");
14614
14629
  }
14615
14630
  return 1;
14616
14631
  }(e, n), n.bc != null && n.bc(n), s &= 1;
@@ -14704,6 +14719,13 @@ function ls(e) {
14704
14719
  for (var w = 0; w < m[0] * p[0] * 4; w++) h[w] = C[w];
14705
14720
  return this.width = m, this.height = p, this.data = h, this;
14706
14721
  }
14722
+ function cs() {
14723
+ var e, t = this.internal.__metadata__.metadata, n = unescape(encodeURIComponent(t));
14724
+ e = this.internal.__metadata__.rawXml ? n : "<x:xmpmeta xmlns:x=\"adobe:ns:meta/\"><rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"><rdf:Description rdf:about=\"\" xmlns:jspdf=\"" + this.internal.__metadata__.namespaceUri + "\"><jspdf:metadata>" + n.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;") + "</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>", this.internal.__metadata__.metadataObjectNumber = this.internal.newObject(), this.internal.write("<< /Type /Metadata /Subtype /XML /Length " + e.length + " >>"), this.internal.write("stream"), this.internal.write(e), this.internal.write("endstream"), this.internal.write("endobj");
14725
+ }
14726
+ function ls() {
14727
+ this.internal.__metadata__.metadataObjectNumber && this.internal.write("/Metadata " + this.internal.__metadata__.metadataObjectNumber + " 0 R");
14728
+ }
14707
14729
  (function(e) {
14708
14730
  var t, n, i, a, o, s, c, l, u, d = function(e) {
14709
14731
  return e ||= {}, this.isStrokeTransparent = e.isStrokeTransparent || !1, this.strokeOpacity = e.strokeOpacity || 1, this.strokeStyle = e.strokeStyle || "#000000", this.fillStyle = e.fillStyle || "#000000", this.isFillTransparent = e.isFillTransparent || !1, this.fillOpacity = e.fillOpacity || 1, this.font = e.font || "10px sans-serif", this.textBaseline = e.textBaseline || "alphabetic", this.textAlign = e.textAlign || "left", this.lineWidth = e.lineWidth || 1, this.lineJoin = e.lineJoin || "miter", this.lineCap = e.lineCap || "butt", this.path = e.path || [], this.transform = e.transform === void 0 ? new l() : e.transform.clone(), this.globalCompositeOperation = e.globalCompositeOperation || "normal", this.globalAlpha = e.globalAlpha || 1, this.clip_path = e.clip_path || [], this.currentPoint = e.currentPoint || new s(), this.miterLimit = e.miterLimit || 10, this.lastPoint = e.lastPoint || new s(), this.lineDashOffset = e.lineDashOffset || 0, this.lineDash = e.lineDash || [], this.margin = e.margin || [
@@ -14926,51 +14948,51 @@ function ls(e) {
14926
14948
  i = Math.floor(o === "px" ? parseFloat(i) * this.pdf.internal.scaleFactor : o === "em" ? parseFloat(i) * this.pdf.getFontSize() : parseFloat(i) * this.pdf.internal.scaleFactor), this.pdf.setFontSize(i);
14927
14949
  var s = function(e) {
14928
14950
  var t, n, r = [], i = e.trim();
14929
- if (i === "") return qo;
14930
- if (i in Po) return [Po[i]];
14951
+ if (i === "") return Go;
14952
+ if (i in Fo) return [Fo[i]];
14931
14953
  for (; i !== "";) {
14932
- switch (n = null, t = (i = Io(i)).charAt(0)) {
14954
+ switch (n = null, t = (i = Lo(i)).charAt(0)) {
14933
14955
  case "\"":
14934
14956
  case "'":
14935
- n = Lo(i.substring(1), t);
14957
+ n = Ro(i.substring(1), t);
14936
14958
  break;
14937
- default: n = Ro(i);
14959
+ default: n = zo(i);
14938
14960
  }
14939
- if (n === null || (r.push(n[0]), (i = Io(n[1])) !== "" && i.charAt(0) !== ",")) return qo;
14961
+ if (n === null || (r.push(n[0]), (i = Lo(n[1])) !== "" && i.charAt(0) !== ",")) return Go;
14940
14962
  i = i.replace(/^,/, "");
14941
14963
  }
14942
14964
  return r;
14943
14965
  }(a);
14944
14966
  if (this.fontFaces) {
14945
14967
  var c = function(e, t, n) {
14946
- for (var r = (n ||= {}).defaultFontFamily || "times", i = Object.assign({}, No, n.genericFontFamilies || {}), a = null, o = null, s = 0; s < t.length; ++s) if (i[(a = jo(t[s])).family] && (a.family = i[a.family]), e.hasOwnProperty(a.family)) {
14968
+ for (var r = (n ||= {}).defaultFontFamily || "times", i = Object.assign({}, Po, n.genericFontFamilies || {}), a = null, o = null, s = 0; s < t.length; ++s) if (i[(a = Mo(t[s])).family] && (a.family = i[a.family]), e.hasOwnProperty(a.family)) {
14947
14969
  o = e[a.family];
14948
14970
  break;
14949
14971
  }
14950
- if (!(o ||= e[r])) throw Error("Could not find a font-family for the rule '" + Fo(a) + "' and default family '" + r + "'.");
14972
+ if (!(o ||= e[r])) throw Error("Could not find a font-family for the rule '" + Io(a) + "' and default family '" + r + "'.");
14951
14973
  if (o = function(e, t) {
14952
14974
  if (t[e]) return t[e];
14953
- var n = Oo[e], r = Mo(t, Do, n, n <= Oo.normal ? -1 : 1);
14975
+ var n = ko[e], r = No(t, Oo, n, n <= ko.normal ? -1 : 1);
14954
14976
  if (!r) throw Error("Could not find a matching font-stretch value for " + e);
14955
14977
  return r;
14956
14978
  }(a.stretch, o), o = function(e, t) {
14957
14979
  if (t[e]) return t[e];
14958
- for (var n = Eo[e], r = 0; r < n.length; ++r) if (t[n[r]]) return t[n[r]];
14980
+ for (var n = Do[e], r = 0; r < n.length; ++r) if (t[n[r]]) return t[n[r]];
14959
14981
  throw Error("Could not find a matching font-style for " + e);
14960
14982
  }(a.style, o), !(o = function(e, t) {
14961
14983
  if (t[e]) return t[e];
14962
14984
  if (e === 400 && t[500]) return t[500];
14963
14985
  if (e === 500 && t[400]) return t[400];
14964
- var n = Ao[e], r = Mo(t, ko, n, e < 400 ? -1 : 1);
14986
+ var n = jo[e], r = No(t, Ao, n, e < 400 ? -1 : 1);
14965
14987
  if (!r) throw Error("Could not find a matching font-weight for value " + e);
14966
14988
  return r;
14967
- }(a.weight, o))) throw Error("Failed to resolve a font for the rule '" + Fo(a) + "'.");
14989
+ }(a.weight, o))) throw Error("Failed to resolve a font for the rule '" + Io(a) + "'.");
14968
14990
  return o;
14969
14991
  }(function(e, t) {
14970
14992
  var n = e.getFontList(), r = JSON.stringify(n);
14971
14993
  return (f === null || m !== r) && (f = function(e) {
14972
14994
  for (var t = {}, n = 0; n < e.length; ++n) {
14973
- var r = jo(e[n]), i = r.family, a = r.stretch, o = r.style, s = r.weight;
14995
+ var r = Mo(e[n]), i = r.family, a = r.stretch, o = r.style, s = r.weight;
14974
14996
  t[i] = t[i] || {}, t[i][a] = t[i][a] || {}, t[i][a][o] = t[i][a][o] || {}, t[i][a][o][s] = r;
14975
14997
  }
14976
14998
  return t;
@@ -15668,17 +15690,17 @@ function ls(e) {
15668
15690
  } catch {}
15669
15691
  return r;
15670
15692
  }(e, t, n);
15671
- }, e.loadImageFile = e.loadFile;
15693
+ }, e.allowFsRead = void 0, e.loadImageFile = e.loadFile;
15672
15694
  }(Z.API), function(t) {
15673
15695
  function n() {
15674
- return (X.html2canvas ? Promise.resolve(X.html2canvas) : import("./html2canvas-Deo0mM5K.js").then((t) => /* @__PURE__ */ e(t.default))).catch(function(e) {
15696
+ return (X.html2canvas ? Promise.resolve(X.html2canvas) : import("./html2canvas-DoKTvaOT.js").then((t) => /* @__PURE__ */ e(t.default))).catch(function(e) {
15675
15697
  return Promise.reject(/* @__PURE__ */ Error("Could not load html2canvas: " + e));
15676
15698
  }).then(function(e) {
15677
15699
  return e.default ? e.default : e;
15678
15700
  });
15679
15701
  }
15680
15702
  function i() {
15681
- return (X.DOMPurify ? Promise.resolve(X.DOMPurify) : import("./purify.es-BiqY1C6m.js")).catch(function(e) {
15703
+ return (X.DOMPurify ? Promise.resolve(X.DOMPurify) : import("./purify.es-DhHsvqCe.js")).catch(function(e) {
15682
15704
  return Promise.reject(/* @__PURE__ */ Error("Could not load dompurify: " + e));
15683
15705
  }).then(function(e) {
15684
15706
  return e.default ? e.default : e;
@@ -16072,15 +16094,25 @@ function ls(e) {
16072
16094
  orientation: e
16073
16095
  };
16074
16096
  }, t.html = function(e, t) {
16075
- (t ||= {}).callback = t.callback || function() {}, t.html2canvas = t.html2canvas || {}, t.html2canvas.canvas = t.html2canvas.canvas || this.canvas, t.jsPDF = t.jsPDF || this, t.fontFaces = t.fontFaces ? t.fontFaces.map(jo) : null;
16097
+ (t ||= {}).callback = t.callback || function() {}, t.html2canvas = t.html2canvas || {}, t.html2canvas.canvas = t.html2canvas.canvas || this.canvas, t.jsPDF = t.jsPDF || this, t.fontFaces = t.fontFaces ? t.fontFaces.map(Mo) : null;
16076
16098
  var n = new c(t);
16077
16099
  return t.worker ? n : n.from(e).doCallback();
16078
16100
  };
16079
16101
  }(Z.API), Z.API.addJS = function(e) {
16080
- return Vo = e, this.internal.events.subscribe("postPutResources", function() {
16081
- zo = this.internal.newObject(), this.internal.out("<<"), this.internal.out("/Names [(EmbeddedJS) " + (zo + 1) + " 0 R]"), this.internal.out(">>"), this.internal.out("endobj"), Bo = this.internal.newObject(), this.internal.out("<<"), this.internal.out("/S /JavaScript"), this.internal.out("/JS (" + Vo + ")"), this.internal.out(">>"), this.internal.out("endobj");
16102
+ var t, n, r = function(e) {
16103
+ for (var t = "", n = 0; n < e.length; n++) {
16104
+ var r = e[n];
16105
+ if (r === "(" || r === ")") {
16106
+ for (var i = 0, a = n - 1; a >= 0 && e[a] === "\\"; a--) i++;
16107
+ t += i % 2 == 0 ? "\\" + r : r;
16108
+ } else t += r;
16109
+ }
16110
+ return t;
16111
+ }(e);
16112
+ return this.internal.events.subscribe("postPutResources", function() {
16113
+ t = this.internal.newObject(), this.internal.out("<<"), this.internal.out("/Names [(EmbeddedJS) " + (t + 1) + " 0 R]"), this.internal.out(">>"), this.internal.out("endobj"), n = this.internal.newObject(), this.internal.out("<<"), this.internal.out("/S /JavaScript"), this.internal.out("/JS (" + r + ")"), this.internal.out(">>"), this.internal.out("endobj");
16082
16114
  }), this.internal.events.subscribe("putCatalog", function() {
16083
- zo !== void 0 && Bo !== void 0 && this.internal.out("/Names <</JavaScript " + zo + " 0 R>>");
16115
+ t !== void 0 && n !== void 0 && this.internal.out("/Names <</JavaScript " + t + " 0 R>>");
16084
16116
  }), this;
16085
16117
  }, function(e) {
16086
16118
  var t;
@@ -16221,7 +16253,7 @@ function ls(e) {
16221
16253
  var y = t * n;
16222
16254
  u = new Uint8Array(y);
16223
16255
  for (var b = new DataView(r.buffer), x = 0; x < y; x++) {
16224
- var S = l(i[ns(b, x, a)], 4)[3];
16256
+ var S = l(i[es(b, x, a)], 4)[3];
16225
16257
  u[x] = S;
16226
16258
  }
16227
16259
  } else f === 0 && (c = void 0);
@@ -16237,9 +16269,9 @@ function ls(e) {
16237
16269
  };
16238
16270
  }(o) : u === 2 || u === 4 ? function(e) {
16239
16271
  for (var t = e.data, n = e.width, r = e.height, i = e.channels, a = e.depth, o = i === 2 ? "DeviceGray" : "DeviceRGB", s = i - 1, c = n * r, l = s, u = c * l, d = 1 * c, f = Math.ceil(u * a / 8), p = Math.ceil(d * a / 8), m = new Uint8Array(f), h = new Uint8Array(p), g = new DataView(t.buffer), _ = new DataView(m.buffer), v = new DataView(h.buffer), y = !1, b = 0; b < c; b++) {
16240
- for (var x = b * i, S = 0; S < l; S++) rs(_, ns(g, x + S, a), b * l + S, a);
16241
- var C = ns(g, x + l, a);
16242
- C < (1 << a) - 1 && (y = !0), rs(v, C, 1 * b, a);
16272
+ for (var x = b * i, S = 0; S < l; S++) ts(_, es(g, x + S, a), b * l + S, a);
16273
+ var C = es(g, x + l, a);
16274
+ C < (1 << a) - 1 && (y = !0), ts(v, C, 1 * b, a);
16243
16275
  }
16244
16276
  return {
16245
16277
  colorSpace: o,
@@ -16277,7 +16309,7 @@ function ls(e) {
16277
16309
  default: t = 12;
16278
16310
  }
16279
16311
  return t;
16280
- }(i), p = this.decode.FLATE_DECODE, m = `/Predictor ${T} /Colors ${v} /BitsPerComponent ${f} /Columns ${s}`, e = Jo(b, Math.ceil(s * v * f / 8), v, f, i), S && (h = Jo(x, Math.ceil(s * y / 8), 1, y, i))) : (p = void 0, m = void 0, e = b, S && (h = x)), (this.__addimage__.isArrayBuffer(e) || this.__addimage__.isArrayBufferView(e)) && (e = this.__addimage__.arrayBufferToBinaryString(e)), (h && this.__addimage__.isArrayBuffer(h) || this.__addimage__.isArrayBufferView(h)) && (h = this.__addimage__.arrayBufferToBinaryString(h)), {
16312
+ }(i), p = this.decode.FLATE_DECODE, m = `/Predictor ${T} /Colors ${v} /BitsPerComponent ${f} /Columns ${s}`, e = Ko(b, Math.ceil(s * v * f / 8), v, f, i), S && (h = Ko(x, Math.ceil(s * y / 8), 1, y, i))) : (p = void 0, m = void 0, e = b, S && (h = x)), (this.__addimage__.isArrayBuffer(e) || this.__addimage__.isArrayBufferView(e)) && (e = this.__addimage__.arrayBufferToBinaryString(e)), (h && this.__addimage__.isArrayBuffer(h) || this.__addimage__.isArrayBufferView(h)) && (h = this.__addimage__.arrayBufferToBinaryString(h)), {
16281
16313
  alias: r,
16282
16314
  data: e,
16283
16315
  index: t,
@@ -16296,16 +16328,16 @@ function ls(e) {
16296
16328
  }
16297
16329
  }, function(e) {
16298
16330
  e.processGIF89A = function(t, n, r, i) {
16299
- var a = new as(t), o = a.width, s = a.height, c = [];
16331
+ var a = new rs(t), o = a.width, s = a.height, c = [];
16300
16332
  a.decodeAndBlitFrameRGBA(0, c);
16301
16333
  var l = {
16302
16334
  data: c,
16303
16335
  width: o,
16304
16336
  height: s
16305
- }, u = new ss(100).encode(l, 100);
16337
+ }, u = new as(100).encode(l, 100);
16306
16338
  return e.processJPEG.call(this, u, n, r, i);
16307
16339
  }, e.processGIF87A = e.processGIF89A;
16308
- }(Z.API), cs.prototype.parseHeader = function() {
16340
+ }(Z.API), os.prototype.parseHeader = function() {
16309
16341
  if (this.fileSize = this.datav.getUint32(this.pos, !0), this.pos += 4, this.reserved = this.datav.getUint32(this.pos, !0), this.pos += 4, this.offset = this.datav.getUint32(this.pos, !0), this.pos += 4, this.headerSize = this.datav.getUint32(this.pos, !0), this.pos += 4, this.width = this.datav.getUint32(this.pos, !0), this.pos += 4, this.height = this.datav.getInt32(this.pos, !0), this.pos += 4, this.planes = this.datav.getUint16(this.pos, !0), this.pos += 2, this.bitPP = this.datav.getUint16(this.pos, !0), this.pos += 2, this.compress = this.datav.getUint32(this.pos, !0), this.pos += 4, this.rawSize = this.datav.getUint32(this.pos, !0), this.pos += 4, this.hr = this.datav.getUint32(this.pos, !0), this.pos += 4, this.vr = this.datav.getUint32(this.pos, !0), this.pos += 4, this.colors = this.datav.getUint32(this.pos, !0), this.pos += 4, this.importantColors = this.datav.getUint32(this.pos, !0), this.pos += 4, this.bitPP === 16 && this.is_with_alpha && (this.bitPP = 15), this.bitPP < 15) {
16310
16342
  var e = this.colors === 0 ? 1 << this.bitPP : this.colors;
16311
16343
  this.palette = Array(e);
@@ -16320,15 +16352,17 @@ function ls(e) {
16320
16352
  }
16321
16353
  }
16322
16354
  this.height < 0 && (this.height *= -1, this.bottom_up = !1);
16323
- }, cs.prototype.parseBGR = function() {
16355
+ }, os.prototype.parseBGR = function() {
16324
16356
  this.pos = this.offset;
16357
+ var e = "bit" + this.bitPP, t = this.width * this.height * 4;
16358
+ if (t > 536870912) throw Error("Image dimensions exceed 512MB, which is too large.");
16359
+ this.data = new Uint8Array(t);
16325
16360
  try {
16326
- var e = "bit" + this.bitPP, t = this.width * this.height * 4;
16327
- this.data = new Uint8Array(t), this[e]();
16361
+ this[e]();
16328
16362
  } catch (e) {
16329
16363
  sa.log("bit decode error:" + e);
16330
16364
  }
16331
- }, cs.prototype.bit1 = function() {
16365
+ }, os.prototype.bit1 = function() {
16332
16366
  var e, t = Math.ceil(this.width / 8), n = t % 4;
16333
16367
  for (e = this.height - 1; e >= 0; e--) {
16334
16368
  for (var r = this.bottom_up ? e : this.height - 1 - e, i = 0; i < t; i++) for (var a = this.datav.getUint8(this.pos++, !0), o = r * this.width * 4 + 8 * i * 4, s = 0; s < 8 && 8 * i + s < this.width; s++) {
@@ -16337,7 +16371,7 @@ function ls(e) {
16337
16371
  }
16338
16372
  n !== 0 && (this.pos += 4 - n);
16339
16373
  }
16340
- }, cs.prototype.bit4 = function() {
16374
+ }, os.prototype.bit4 = function() {
16341
16375
  for (var e = Math.ceil(this.width / 2), t = e % 4, n = this.height - 1; n >= 0; n--) {
16342
16376
  for (var r = this.bottom_up ? n : this.height - 1 - n, i = 0; i < e; i++) {
16343
16377
  var a = this.datav.getUint8(this.pos++, !0), o = r * this.width * 4 + 2 * i * 4, s = a >> 4, c = 15 & a, l = this.palette[s];
@@ -16346,7 +16380,7 @@ function ls(e) {
16346
16380
  }
16347
16381
  t !== 0 && (this.pos += 4 - t);
16348
16382
  }
16349
- }, cs.prototype.bit8 = function() {
16383
+ }, os.prototype.bit8 = function() {
16350
16384
  for (var e = this.width % 4, t = this.height - 1; t >= 0; t--) {
16351
16385
  for (var n = this.bottom_up ? t : this.height - 1 - t, r = 0; r < this.width; r++) {
16352
16386
  var i = this.datav.getUint8(this.pos++, !0), a = n * this.width * 4 + 4 * r;
@@ -16357,7 +16391,7 @@ function ls(e) {
16357
16391
  }
16358
16392
  e !== 0 && (this.pos += 4 - e);
16359
16393
  }
16360
- }, cs.prototype.bit15 = function() {
16394
+ }, os.prototype.bit15 = function() {
16361
16395
  for (var e = this.width % 3, t = 31, n = this.height - 1; n >= 0; n--) {
16362
16396
  for (var r = this.bottom_up ? n : this.height - 1 - n, i = 0; i < this.width; i++) {
16363
16397
  var a = this.datav.getUint16(this.pos, !0);
@@ -16367,7 +16401,7 @@ function ls(e) {
16367
16401
  }
16368
16402
  this.pos += e;
16369
16403
  }
16370
- }, cs.prototype.bit16 = function() {
16404
+ }, os.prototype.bit16 = function() {
16371
16405
  for (var e = this.width % 3, t = 31, n = 63, r = this.height - 1; r >= 0; r--) {
16372
16406
  for (var i = this.bottom_up ? r : this.height - 1 - r, a = 0; a < this.width; a++) {
16373
16407
  var o = this.datav.getUint16(this.pos, !0);
@@ -16377,7 +16411,7 @@ function ls(e) {
16377
16411
  }
16378
16412
  this.pos += e;
16379
16413
  }
16380
- }, cs.prototype.bit24 = function() {
16414
+ }, os.prototype.bit24 = function() {
16381
16415
  for (var e = this.height - 1; e >= 0; e--) {
16382
16416
  for (var t = this.bottom_up ? e : this.height - 1 - e, n = 0; n < this.width; n++) {
16383
16417
  var r = this.datav.getUint8(this.pos++, !0), i = this.datav.getUint8(this.pos++, !0), a = this.datav.getUint8(this.pos++, !0), o = t * this.width * 4 + 4 * n;
@@ -16385,31 +16419,31 @@ function ls(e) {
16385
16419
  }
16386
16420
  this.pos += this.width % 4;
16387
16421
  }
16388
- }, cs.prototype.bit32 = function() {
16422
+ }, os.prototype.bit32 = function() {
16389
16423
  for (var e = this.height - 1; e >= 0; e--) for (var t = this.bottom_up ? e : this.height - 1 - e, n = 0; n < this.width; n++) {
16390
16424
  var r = this.datav.getUint8(this.pos++, !0), i = this.datav.getUint8(this.pos++, !0), a = this.datav.getUint8(this.pos++, !0), o = this.datav.getUint8(this.pos++, !0), s = t * this.width * 4 + 4 * n;
16391
16425
  this.data[s] = a, this.data[s + 1] = i, this.data[s + 2] = r, this.data[s + 3] = o;
16392
16426
  }
16393
- }, cs.prototype.getData = function() {
16427
+ }, os.prototype.getData = function() {
16394
16428
  return this.data;
16395
16429
  }, function(e) {
16396
16430
  e.processBMP = function(t, n, r, i) {
16397
- var a = new cs(t, !1), o = a.width, s = a.height, c = {
16431
+ var a = new os(t, !1), o = a.width, s = a.height, c = {
16398
16432
  data: a.getData(),
16399
16433
  width: o,
16400
16434
  height: s
16401
- }, l = new ss(100).encode(c, 100);
16435
+ }, l = new as(100).encode(c, 100);
16402
16436
  return e.processJPEG.call(this, l, n, r, i);
16403
16437
  };
16404
- }(Z.API), ls.prototype.getData = function() {
16438
+ }(Z.API), ss.prototype.getData = function() {
16405
16439
  return this.data;
16406
16440
  }, function(e) {
16407
16441
  e.processWEBP = function(t, n, r, i) {
16408
- var a = new ls(t), o = a.width, s = a.height, c = {
16442
+ var a = new ss(t), o = a.width, s = a.height, c = {
16409
16443
  data: a.getData(),
16410
16444
  width: o,
16411
16445
  height: s
16412
- }, l = new ss(100).encode(c, 100);
16446
+ }, l = new as(100).encode(c, 100);
16413
16447
  return e.processJPEG.call(this, l, n, r, i);
16414
16448
  };
16415
16449
  }(Z.API), Z.API.processRGBA = function(e, t, n) {
@@ -16629,39 +16663,39 @@ function ls(e) {
16629
16663
  }[e] !== void 0 && (this.internal.languageSettings.languageCode = e, !1 === this.internal.languageSettings.isSubscribed && (this.internal.events.subscribe("putCatalog", function() {
16630
16664
  this.internal.write("/Lang (" + this.internal.languageSettings.languageCode + ")");
16631
16665
  }), this.internal.languageSettings.isSubscribed = !0)), this;
16632
- }, Ho = Z.API, Uo = Ho.getCharWidthsArray = function(e, t) {
16666
+ }, Bo = Z.API, Vo = Bo.getCharWidthsArray = function(e, t) {
16633
16667
  var n, i, a = (t ||= {}).font || this.internal.getFont(), o = t.fontSize || this.internal.getFontSize(), s = t.charSpace || this.internal.getCharSpace(), c = t.widths ? t.widths : a.metadata.Unicode.widths, l = c.fof ? c.fof : 1, u = t.kerning ? t.kerning : a.metadata.Unicode.kerning, d = u.fof ? u.fof : 1, f = !1 !== t.doKerning, p = 0, m = e.length, h = 0, g = c[0] || l, _ = [];
16634
16668
  for (n = 0; n < m; n++) i = e.charCodeAt(n), typeof a.metadata.widthOfString == "function" ? _.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(i)) + 1e3 / o * s || 0) / 1e3) : (p = f && r(u[i]) === "object" && !isNaN(parseInt(u[i][h], 10)) ? u[i][h] / d : 0, _.push((c[i] || g) / l + p)), h = i;
16635
16669
  return _;
16636
- }, Wo = Ho.getStringUnitWidth = function(e, t) {
16670
+ }, Ho = Bo.getStringUnitWidth = function(e, t) {
16637
16671
  var n = (t ||= {}).fontSize || this.internal.getFontSize(), r = t.font || this.internal.getFont(), i = t.charSpace || this.internal.getCharSpace();
16638
- return Ho.processArabic && (e = Ho.processArabic(e)), typeof r.metadata.widthOfString == "function" ? r.metadata.widthOfString(e, n, i) / n : Uo.apply(this, arguments).reduce(function(e, t) {
16672
+ return Bo.processArabic && (e = Bo.processArabic(e)), typeof r.metadata.widthOfString == "function" ? r.metadata.widthOfString(e, n, i) / n : Vo.apply(this, arguments).reduce(function(e, t) {
16639
16673
  return e + t;
16640
16674
  }, 0);
16641
- }, Go = function(e, t, n, r) {
16675
+ }, Uo = function(e, t, n, r) {
16642
16676
  for (var i = [], a = 0, o = e.length, s = 0; a !== o && s + t[a] < n;) s += t[a], a++;
16643
16677
  i.push(e.slice(0, a));
16644
16678
  var c = a;
16645
16679
  for (s = 0; a !== o;) s + t[a] > r && (i.push(e.slice(c, a)), s = 0, c = a), s += t[a], a++;
16646
16680
  return c !== a && i.push(e.slice(c, a)), i;
16647
- }, Ko = function(e, t, n) {
16681
+ }, Wo = function(e, t, n) {
16648
16682
  n ||= {};
16649
- var r, i, a, o, s, c, l, u = [], d = [u], f = n.textIndent || 0, p = 0, m = 0, h = e.split(" "), g = Uo.apply(this, [" ", n])[0];
16683
+ var r, i, a, o, s, c, l, u = [], d = [u], f = n.textIndent || 0, p = 0, m = 0, h = e.split(" "), g = Vo.apply(this, [" ", n])[0];
16650
16684
  if (c = n.lineIndent === -1 ? h[0].length + 2 : n.lineIndent || 0) {
16651
16685
  var _ = Array(c).join(" "), v = [];
16652
16686
  h.map(function(e) {
16653
16687
  (e = e.split(/\s*\n/)).length > 1 ? v = v.concat(e.map(function(e, t) {
16654
16688
  return (t && e.length ? "\n" : "") + e;
16655
16689
  })) : v.push(e[0]);
16656
- }), h = v, c = Wo.apply(this, [_, n]);
16690
+ }), h = v, c = Ho.apply(this, [_, n]);
16657
16691
  }
16658
16692
  for (a = 0, o = h.length; a < o; a++) {
16659
16693
  var y = 0;
16660
- if (r = h[a], c && r[0] == "\n" && (r = r.substr(1), y = 1), f + p + (m = (i = Uo.apply(this, [r, n])).reduce(function(e, t) {
16694
+ if (r = h[a], c && r[0] == "\n" && (r = r.substr(1), y = 1), f + p + (m = (i = Vo.apply(this, [r, n])).reduce(function(e, t) {
16661
16695
  return e + t;
16662
16696
  }, 0)) > t || y) {
16663
16697
  if (m > t) {
16664
- for (s = Go.apply(this, [
16698
+ for (s = Uo.apply(this, [
16665
16699
  r,
16666
16700
  i,
16667
16701
  t - (f + p),
@@ -16679,7 +16713,7 @@ function ls(e) {
16679
16713
  } : function(e) {
16680
16714
  return e.join(" ");
16681
16715
  }, d.map(l);
16682
- }, Ho.splitTextToSize = function(e, t, n) {
16716
+ }, Bo.splitTextToSize = function(e, t, n) {
16683
16717
  var r, i = (n ||= {}).fontSize || this.internal.getFontSize(), a = function(e) {
16684
16718
  if (e.widths && e.kerning) return {
16685
16719
  widths: e.widths,
@@ -16699,7 +16733,7 @@ function ls(e) {
16699
16733
  var o = 1 * this.internal.scaleFactor * t / i;
16700
16734
  a.textIndent = n.textIndent ? 1 * n.textIndent * this.internal.scaleFactor / i : 0, a.lineIndent = n.lineIndent;
16701
16735
  var s, c, l = [];
16702
- for (s = 0, c = r.length; s < c; s++) l = l.concat(Ko.apply(this, [
16736
+ for (s = 0, c = r.length; s < c; s++) l = l.concat(Wo.apply(this, [
16703
16737
  r[s],
16704
16738
  o,
16705
16739
  a
@@ -16794,7 +16828,7 @@ function ls(e) {
16794
16828
  ignoreAnimation: !0,
16795
16829
  ignoreDimensions: !0
16796
16830
  }, d = this;
16797
- return (X.canvg ? Promise.resolve(X.canvg) : import("./index.es-UlJ0gfdF.js")).catch(function(e) {
16831
+ return (X.canvg ? Promise.resolve(X.canvg) : import("./index.es-wVPQxEPP.js")).catch(function(e) {
16798
16832
  return Promise.reject(/* @__PURE__ */ Error("Could not load canvg: " + e));
16799
16833
  }).then(function(e) {
16800
16834
  return e.default ? e.default : e;
@@ -17017,20 +17051,13 @@ function ls(e) {
17017
17051
  for (e in n) !0 === n[e].explicitSet && (n[e].type === "name" ? t.push("/" + e + " /" + n[e].value) : t.push("/" + e + " " + n[e].value));
17018
17052
  t.length !== 0 && this.internal.write("/ViewerPreferences\n<<\n" + t.join("\n") + "\n>>");
17019
17053
  }), this.internal.viewerpreferences.isSubscribed = !0), this.internal.viewerpreferences.configuration = n, this;
17054
+ }, Z.API.addMetadata = function(e, t) {
17055
+ return this.internal.__metadata__ === void 0 && (this.internal.__metadata__ = {
17056
+ metadata: e,
17057
+ namespaceUri: t ?? "http://jspdf.default.namespaceuri/",
17058
+ rawXml: typeof t == "boolean" && t
17059
+ }, this.internal.events.subscribe("putCatalog", ls), this.internal.events.subscribe("postPutResources", cs)), this;
17020
17060
  }, function(e) {
17021
- var t = function() {
17022
- var e = "<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"><rdf:Description rdf:about=\"\" xmlns:jspdf=\"" + this.internal.__metadata__.namespaceuri + "\"><jspdf:metadata>", t = unescape("%3Cx%3Axmpmeta%20xmlns%3Ax%3D%22adobe%3Ans%3Ameta%2F%22%3E"), n = unescape(encodeURIComponent(e)), r = unescape(encodeURIComponent(this.internal.__metadata__.metadata)), i = unescape("%3C%2Fjspdf%3Ametadata%3E%3C%2Frdf%3ADescription%3E%3C%2Frdf%3ARDF%3E"), a = unescape("%3C%2Fx%3Axmpmeta%3E"), o = n.length + r.length + i.length + t.length + a.length;
17023
- this.internal.__metadata__.metadata_object_number = this.internal.newObject(), this.internal.write("<< /Type /Metadata /Subtype /XML /Length " + o + " >>"), this.internal.write("stream"), this.internal.write(t + n + r + i + a), this.internal.write("endstream"), this.internal.write("endobj");
17024
- }, n = function() {
17025
- this.internal.__metadata__.metadata_object_number && this.internal.write("/Metadata " + this.internal.__metadata__.metadata_object_number + " 0 R");
17026
- };
17027
- e.addMetadata = function(e, r) {
17028
- return this.internal.__metadata__ === void 0 && (this.internal.__metadata__ = {
17029
- metadata: e,
17030
- namespaceuri: r || "http://jspdf.default.namespaceuri/"
17031
- }, this.internal.events.subscribe("putCatalog", n), this.internal.events.subscribe("postPutResources", t)), this;
17032
- };
17033
- }(Z.API), function(e) {
17034
17061
  var t = e.API, n = t.pdfEscape16 = function(e, t) {
17035
17062
  for (var n, r = t.metadata.Unicode.widths, i = [
17036
17063
  "",
@@ -17491,7 +17518,7 @@ var us, ds = function() {
17491
17518
  var e = this.readByte(), t = this.readByte(), n = this.readByte(), r = this.readByte(), i = this.readByte(), a = this.readByte(), o = this.readByte(), s = this.readByte();
17492
17519
  return 128 & e ? -1 * (72057594037927940 * (255 ^ e) + 281474976710656 * (255 ^ t) + 1099511627776 * (255 ^ n) + 4294967296 * (255 ^ r) + 16777216 * (255 ^ i) + 65536 * (255 ^ a) + 256 * (255 ^ o) + (255 ^ s) + 1) : 72057594037927940 * e + 281474976710656 * t + 1099511627776 * n + 4294967296 * r + 16777216 * i + 65536 * a + 256 * o + s;
17493
17520
  }, e.prototype.writeLongLong = function(e) {
17494
- var t = Math.floor(e / 4294967296), n = 4294967295 & e;
17521
+ var t = Math.floor(e / 4294967296), n = 0 | e;
17495
17522
  return this.writeByte(t >> 24 & 255), this.writeByte(t >> 16 & 255), this.writeByte(t >> 8 & 255), this.writeByte(255 & t), this.writeByte(n >> 24 & 255), this.writeByte(n >> 16 & 255), this.writeByte(n >> 8 & 255), this.writeByte(255 & n);
17496
17523
  }, e.prototype.readInt = function() {
17497
17524
  return this.readInt32();
@@ -17524,7 +17551,7 @@ var us, ds = function() {
17524
17551
  var t, n, r, i;
17525
17552
  for (e = Ts.call(e); e.length % 4;) e.push(0);
17526
17553
  for (r = new ds(e), n = 0, t = 0, i = e.length; t < i; t = t += 4) n += r.readUInt32();
17527
- return 4294967295 & n;
17554
+ return 0 | n;
17528
17555
  }, t;
17529
17556
  }(), ps = {}.hasOwnProperty, ms = function(e, t) {
17530
17557
  for (var n in t) ps.call(t, n) && (e[n] = t[n]);
@@ -17870,4 +17897,4 @@ Z.API.PDFObject = function() {
17870
17897
  }, t;
17871
17898
  }();
17872
17899
  //#endregion
17873
- export { wo as AcroForm, $ as AcroFormAppearance, go as AcroFormButton, bo as AcroFormCheckBox, fo as AcroFormChoiceField, mo as AcroFormComboBox, ho as AcroFormEditBox, po as AcroFormListBox, So as AcroFormPasswordField, _o as AcroFormPushButton, vo as AcroFormRadioButton, xo as AcroFormTextField, Pa as GState, Ia as ShadingPattern, La as TilingPattern, Z as default, Z as jsPDF, r as n, aa as t };
17900
+ export { To as AcroForm, $ as AcroFormAppearance, _o as AcroFormButton, xo as AcroFormCheckBox, po as AcroFormChoiceField, ho as AcroFormComboBox, go as AcroFormEditBox, mo as AcroFormListBox, Co as AcroFormPasswordField, vo as AcroFormPushButton, yo as AcroFormRadioButton, So as AcroFormTextField, Pa as GState, Ia as ShadingPattern, La as TilingPattern, Z as default, Z as jsPDF, r as n, aa as t };