oasis-editor 0.0.226 → 0.0.228

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 (93) hide show
  1. package/dist/OasisEditorApp-CpKYMW3z.js +1 -0
  2. package/dist/app/controllers/EditorCommandsController.d.ts +6 -1
  3. package/dist/app/services/FindReplaceService.d.ts +6 -18
  4. package/dist/assets/{importDocxWorker-D9et8X0W.js → importDocxWorker-dPLECw5a.js} +197 -181
  5. package/dist/core/commands/builtinCommands.d.ts +1 -1
  6. package/dist/core/commands/dropCap.d.ts +23 -0
  7. package/dist/core/commands/fieldDate.d.ts +6 -0
  8. package/dist/core/commands/findReplace.d.ts +25 -0
  9. package/dist/core/commands/floatingAlignCommands.d.ts +98 -0
  10. package/dist/core/commands/floatingReorderCommands.d.ts +17 -0
  11. package/dist/core/commands/headerFooter.d.ts +17 -0
  12. package/dist/core/commands/horizontalLine.d.ts +3 -0
  13. package/dist/core/commands/hyphenation.d.ts +27 -0
  14. package/dist/core/commands/image.d.ts +45 -0
  15. package/dist/core/commands/noteOptions.d.ts +22 -0
  16. package/dist/core/commands/outlineStep.d.ts +13 -0
  17. package/dist/core/commands/pageSetup.d.ts +41 -1
  18. package/dist/core/commands/paragraphAdjustRightInd.d.ts +8 -0
  19. package/dist/core/commands/paragraphAlign.d.ts +10 -0
  20. package/dist/core/commands/paragraphAutoSpaceDE.d.ts +8 -0
  21. package/dist/core/commands/paragraphAutoSpaceDN.d.ts +8 -0
  22. package/dist/core/commands/paragraphBidi.d.ts +7 -0
  23. package/dist/core/commands/paragraphContextualSpacing.d.ts +7 -0
  24. package/dist/core/commands/paragraphKeepLinesTogether.d.ts +7 -0
  25. package/dist/core/commands/paragraphKeepWithNext.d.ts +7 -0
  26. package/dist/core/commands/paragraphKinsoku.d.ts +8 -0
  27. package/dist/core/commands/paragraphLineRule.d.ts +10 -0
  28. package/dist/core/commands/paragraphListLevel.d.ts +8 -0
  29. package/dist/core/commands/paragraphMirrorIndents.d.ts +7 -0
  30. package/dist/core/commands/paragraphMove.d.ts +8 -0
  31. package/dist/core/commands/paragraphOutlineLevel.d.ts +11 -0
  32. package/dist/core/commands/paragraphOverflowPunct.d.ts +8 -0
  33. package/dist/core/commands/paragraphPageBreakBefore.d.ts +7 -0
  34. package/dist/core/commands/paragraphReset.d.ts +9 -0
  35. package/dist/core/commands/paragraphSort.d.ts +7 -0
  36. package/dist/core/commands/paragraphSuppressAutoHyphens.d.ts +7 -0
  37. package/dist/core/commands/paragraphSuppressLineNumbers.d.ts +7 -0
  38. package/dist/core/commands/paragraphTabs.d.ts +28 -0
  39. package/dist/core/commands/paragraphTextDirection.d.ts +9 -0
  40. package/dist/core/commands/paragraphTopLinePunct.d.ts +7 -0
  41. package/dist/core/commands/paragraphWidowControl.d.ts +8 -0
  42. package/dist/core/commands/paragraphWordWrap.d.ts +8 -0
  43. package/dist/core/commands/publicCommandTypes.d.ts +190 -3
  44. package/dist/core/commands/selectUnit.d.ts +43 -0
  45. package/dist/core/commands/shape.d.ts +4 -0
  46. package/dist/core/commands/shapeFillCommands.d.ts +31 -0
  47. package/dist/core/commands/specialChar.d.ts +18 -0
  48. package/dist/core/commands/table/tableAlignmentCommands.d.ts +10 -0
  49. package/dist/core/commands/table/tableAutoFitCommands.d.ts +16 -0
  50. package/dist/core/commands/table/tableCellFitTextCommands.d.ts +7 -0
  51. package/dist/core/commands/table/tableCellMarginsCommands.d.ts +20 -0
  52. package/dist/core/commands/table/tableCellNoWrapCommands.d.ts +7 -0
  53. package/dist/core/commands/table/tableCellSpacingCommands.d.ts +9 -0
  54. package/dist/core/commands/table/tableColumnCommands.d.ts +10 -0
  55. package/dist/core/commands/table/tableDeleteCellsCommands.d.ts +16 -0
  56. package/dist/core/commands/table/tableDeleteCommands.d.ts +11 -0
  57. package/dist/core/commands/table/tableFormulaCommands.d.ts +34 -0
  58. package/dist/core/commands/table/tableIndentCommands.d.ts +9 -0
  59. package/dist/core/commands/table/tableRepeatHeaderCommands.d.ts +15 -0
  60. package/dist/core/commands/table/tableRowBreakAcrossPagesCommands.d.ts +9 -0
  61. package/dist/core/commands/table/tableRowCommands.d.ts +2 -0
  62. package/dist/core/commands/table/tableRowHeightCommands.d.ts +21 -0
  63. package/dist/core/commands/table/tableSelectionCommands.d.ts +18 -0
  64. package/dist/core/commands/table/tableSortCommands.d.ts +16 -0
  65. package/dist/core/commands/table/tableSplitCommands.d.ts +16 -0
  66. package/dist/core/commands/table/tableStyleCommands.d.ts +9 -0
  67. package/dist/core/commands/table.d.ts +16 -0
  68. package/dist/core/commands/text.d.ts +1 -1
  69. package/dist/core/commands/textBoxBodyCommands.d.ts +43 -0
  70. package/dist/core/commands/textFormatting.d.ts +15 -0
  71. package/dist/core/commands/zoneBlocks.d.ts +10 -0
  72. package/dist/core/engine.d.ts +3 -0
  73. package/dist/core/model/types/primitives.d.ts +10 -0
  74. package/dist/core/textStyle/textStyleKeys.d.ts +3 -3
  75. package/dist/core/transactionMergeKeys.d.ts +35 -0
  76. package/dist/defaultToolbar-Em7_omZA.js +1 -0
  77. package/dist/export/docx/docxTypes.d.ts +1 -0
  78. package/dist/i18n/locales/en.d.ts +18 -0
  79. package/dist/i18n/locales/pt-BR.d.ts +18 -0
  80. package/dist/layoutProjection/floatingObjects.d.ts +3 -0
  81. package/dist/oasis-editor.js +1 -1
  82. package/dist/oasis-editor.umd.cjs +1 -1
  83. package/dist/plugins/internal/essentialsCapabilities.d.ts +314 -2
  84. package/dist/plugins/internal/essentialsCommandBuilders.d.ts +2 -0
  85. package/dist/plugins/internal/essentialsCommandGroups/table.d.ts +3 -2
  86. package/dist/ui/app/createAppCommandsController.d.ts +12 -2
  87. package/dist/ui/app/createEditorCommandRuntime.d.ts +11 -1
  88. package/dist/ui/app/essentials/types.d.ts +2 -0
  89. package/dist/ui/components/Toolbar/marginPresets.d.ts +5 -9
  90. package/dist/ui/toolbarStyleState.d.ts +22 -3
  91. package/package.json +1 -1
  92. package/dist/OasisEditorApp-CjSBBmts.js +0 -1
  93. package/dist/defaultToolbar-NDF0Ecan.js +0 -1
@@ -182,19 +182,19 @@
182
182
  uncompressedSize: 0
183
183
  };
184
184
  t && !r || (I.crc32 = e.crc32, I.compressedSize = e.compressedSize, I.uncompressedSize = e.uncompressedSize);
185
- var C = 0;
186
- t && (C |= 8), m || !x && !E || (C |= 2048);
187
- var A = 0, R = 0;
188
- _ && (A |= 16), "UNIX" === a ? (R = 798, A |= function(e, t) {
185
+ var A = 0;
186
+ t && (A |= 8), m || !x && !E || (A |= 2048);
187
+ var C = 0, R = 0;
188
+ _ && (C |= 16), "UNIX" === a ? (R = 798, C |= function(e, t) {
189
189
  var r = e;
190
190
  return e || (r = t ? 16893 : 33204), (65535 & r) << 16;
191
- }(f.unixPermissions, _)) : (R = 20, A |= function(e) {
191
+ }(f.unixPermissions, _)) : (R = 20, C |= function(e) {
192
192
  return 63 & (e || 0);
193
193
  }(f.dosPermissions)), d = T.getUTCHours(), d <<= 6, d |= T.getUTCMinutes(), d <<= 5, d |= T.getUTCSeconds() / 2, p = T.getUTCFullYear() - 1980, p <<= 4, p |= T.getUTCMonth() + 1, p <<= 5, p |= T.getUTCDate(), x && (N = n(1, 1) + n(l(g), 4) + w, S += "up" + n(N.length, 2) + N), E && (k = n(1, 1) + n(l(v), 4) + y, S += "uc" + n(k.length, 2) + k);
194
194
  var $ = "";
195
- return $ += "\n\0", $ += n(C, 2), $ += h.magic, $ += n(d, 2), $ += n(p, 2), $ += n(I.crc32, 4), $ += n(I.compressedSize, 4), $ += n(I.uncompressedSize, 4), $ += n(g.length, 2), $ += n(S.length, 2), {
195
+ return $ += "\n\0", $ += n(A, 2), $ += h.magic, $ += n(d, 2), $ += n(p, 2), $ += n(I.crc32, 4), $ += n(I.compressedSize, 4), $ += n(I.uncompressedSize, 4), $ += n(g.length, 2), $ += n(S.length, 2), {
196
196
  fileRecord: c.LOCAL_FILE_HEADER + $ + g + S,
197
- dirRecord: c.CENTRAL_FILE_HEADER + n(R, 2) + $ + n(v.length, 2) + "\0\0\0\0" + n(A, 4) + n(o, 4) + g + S + v
197
+ dirRecord: c.CENTRAL_FILE_HEADER + n(R, 2) + $ + n(v.length, 2) + "\0\0\0\0" + n(C, 4) + n(o, 4) + g + S + v
198
198
  };
199
199
  }
200
200
  var i = e("../utils"), a = e("../stream/GenericWorker"), s = e("../utf8"), l = e("../crc32"), c = e("../signature");
@@ -2199,7 +2199,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
2199
2199
  r.inflateReset = p, r.inflateReset2 = f, r.inflateResetKeep = d, r.inflateInit = function(e) {
2200
2200
  return h(e, 15);
2201
2201
  }, r.inflateInit2 = h, r.inflate = function(e, t) {
2202
- var r, u, d, p, f, h, m, g, w, y, x, E, S, N, k, _, T, I, C, A, R, $, D, P, M = 0, O = new n.Buf8(4), L = [
2202
+ var r, u, d, p, f, h, m, g, w, y, x, E, S, N, k, _, T, I, A, C, R, $, D, P, M = 0, O = new n.Buf8(4), L = [
2203
2203
  16,
2204
2204
  17,
2205
2205
  18,
@@ -2457,7 +2457,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
2457
2457
  h--, g += u[p++] << w, w += 8;
2458
2458
  }
2459
2459
  if (_ && !(240 & _)) {
2460
- for (I = k, C = _, A = T; _ = (M = r.lencode[A + ((g & (1 << I + C) - 1) >> I)]) >>> 16 & 255, T = 65535 & M, !(I + (k = M >>> 24) <= w);) {
2460
+ for (I = k, A = _, C = T; _ = (M = r.lencode[C + ((g & (1 << I + A) - 1) >> I)]) >>> 16 & 255, T = 65535 & M, !(I + (k = M >>> 24) <= w);) {
2461
2461
  if (0 === h) break e;
2462
2462
  h--, g += u[p++] << w, w += 8;
2463
2463
  }
@@ -2491,7 +2491,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
2491
2491
  h--, g += u[p++] << w, w += 8;
2492
2492
  }
2493
2493
  if (!(240 & _)) {
2494
- for (I = k, C = _, A = T; _ = (M = r.distcode[A + ((g & (1 << I + C) - 1) >> I)]) >>> 16 & 255, T = 65535 & M, !(I + (k = M >>> 24) <= w);) {
2494
+ for (I = k, A = _, C = T; _ = (M = r.distcode[C + ((g & (1 << I + A) - 1) >> I)]) >>> 16 & 255, T = 65535 & M, !(I + (k = M >>> 24) <= w);) {
2495
2495
  if (0 === h) break e;
2496
2496
  h--, g += u[p++] << w, w += 8;
2497
2497
  }
@@ -2719,31 +2719,31 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
2719
2719
  64
2720
2720
  ];
2721
2721
  t.exports = function(e, t, r, l, c, u, d, p) {
2722
- var f, h, m, g, w, b, v, y, x, E = p.bits, S = 0, N = 0, k = 0, _ = 0, T = 0, I = 0, C = 0, A = 0, R = 0, $ = 0, D = null, P = 0, M = new n.Buf16(16), O = new n.Buf16(16), L = null, F = 0;
2722
+ var f, h, m, g, w, b, v, y, x, E = p.bits, S = 0, N = 0, k = 0, _ = 0, T = 0, I = 0, A = 0, C = 0, R = 0, $ = 0, D = null, P = 0, M = new n.Buf16(16), O = new n.Buf16(16), L = null, F = 0;
2723
2723
  for (S = 0; S <= 15; S++) M[S] = 0;
2724
2724
  for (N = 0; N < l; N++) M[t[r + N]]++;
2725
2725
  for (T = E, _ = 15; 1 <= _ && 0 === M[_]; _--);
2726
2726
  if (_ < T && (T = _), 0 === _) return c[u++] = 20971520, c[u++] = 20971520, p.bits = 1, 0;
2727
2727
  for (k = 1; k < _ && 0 === M[k]; k++);
2728
- for (T < k && (T = k), S = A = 1; S <= 15; S++) if (A <<= 1, (A -= M[S]) < 0) return -1;
2729
- if (0 < A && (0 === e || 1 !== _)) return -1;
2728
+ for (T < k && (T = k), S = C = 1; S <= 15; S++) if (C <<= 1, (C -= M[S]) < 0) return -1;
2729
+ if (0 < C && (0 === e || 1 !== _)) return -1;
2730
2730
  for (O[1] = 0, S = 1; S < 15; S++) O[S + 1] = O[S] + M[S];
2731
2731
  for (N = 0; N < l; N++) 0 !== t[r + N] && (d[O[t[r + N]]++] = N);
2732
- if (b = 0 === e ? (D = L = d, 19) : 1 === e ? (D = o, P -= 257, L = i, F -= 257, 256) : (D = a, L = s, -1), S = k, w = u, C = N = $ = 0, m = -1, g = (R = 1 << (I = T)) - 1, 1 === e && 852 < R || 2 === e && 592 < R) return 1;
2732
+ if (b = 0 === e ? (D = L = d, 19) : 1 === e ? (D = o, P -= 257, L = i, F -= 257, 256) : (D = a, L = s, -1), S = k, w = u, A = N = $ = 0, m = -1, g = (R = 1 << (I = T)) - 1, 1 === e && 852 < R || 2 === e && 592 < R) return 1;
2733
2733
  for (;;) {
2734
- for (v = S - C, x = d[N] < b ? (y = 0, d[N]) : d[N] > b ? (y = L[F + d[N]], D[P + d[N]]) : (y = 96, 0), f = 1 << S - C, k = h = 1 << I; c[w + ($ >> C) + (h -= f)] = v << 24 | y << 16 | x, 0 !== h;);
2734
+ for (v = S - A, x = d[N] < b ? (y = 0, d[N]) : d[N] > b ? (y = L[F + d[N]], D[P + d[N]]) : (y = 96, 0), f = 1 << S - A, k = h = 1 << I; c[w + ($ >> A) + (h -= f)] = v << 24 | y << 16 | x, 0 !== h;);
2735
2735
  for (f = 1 << S - 1; $ & f;) f >>= 1;
2736
2736
  if (0 !== f ? ($ &= f - 1, $ += f) : $ = 0, N++, 0 == --M[S]) {
2737
2737
  if (S === _) break;
2738
2738
  S = t[r + d[N]];
2739
2739
  }
2740
2740
  if (T < S && ($ & g) !== m) {
2741
- for (0 === C && (C = T), w += k, A = 1 << (I = S - C); I + C < _ && !((A -= M[I + C]) <= 0);) I++, A <<= 1;
2741
+ for (0 === A && (A = T), w += k, C = 1 << (I = S - A); I + A < _ && !((C -= M[I + A]) <= 0);) I++, C <<= 1;
2742
2742
  if (R += 1 << I, 1 === e && 852 < R || 2 === e && 592 < R) return 1;
2743
2743
  c[m = $ & g] = T << 24 | I << 16 | w - u;
2744
2744
  }
2745
2745
  }
2746
- return 0 !== $ && (c[w + $] = S - C << 24 | 4194304), p.bits = T, 0;
2746
+ return 0 !== $ && (c[w + $] = S - A << 24 | 4194304), p.bits = T, 0;
2747
2747
  };
2748
2748
  }, { "../utils/common": 41 }],
2749
2749
  51: [function(e, t, r) {
@@ -2900,7 +2900,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
2900
2900
  for (var r = 0; r |= 1 & e, e >>>= 1, r <<= 1, 0 < --t;);
2901
2901
  return r >>> 1;
2902
2902
  }
2903
- function C(e, t, r) {
2903
+ function A(e, t, r) {
2904
2904
  var n, o, i = new Array(16), a = 0;
2905
2905
  for (n = 1; n <= l; n++) i[n] = a = a + r[n - 1] << 1;
2906
2906
  for (o = 0; o <= t; o++) {
@@ -2908,7 +2908,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
2908
2908
  0 !== s && (e[2 * o] = I(i[s]++, s));
2909
2909
  }
2910
2910
  }
2911
- function A(e) {
2911
+ function C(e) {
2912
2912
  for (var t = 0; t < a; t++) e.dyn_ltree[2 * t] = 0;
2913
2913
  for (t = 0; t < s; t++) e.dyn_dtree[2 * t] = 0;
2914
2914
  for (t = 0; t < 19; t++) e.bl_tree[2 * t] = 0;
@@ -2947,7 +2947,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
2947
2947
  } while (0 < g);
2948
2948
  for (i = m; 0 !== i; i--) for (n = e.bl_count[i]; 0 !== n;) u < (o = e.heap[--r]) || (c[2 * o + 1] !== i && (e.opt_len += (i - c[2 * o + 1]) * c[2 * o], c[2 * o + 1] = i), n--);
2949
2949
  }
2950
- }(e, t), C(i, u, e.bl_count);
2950
+ }(e, t), A(i, u, e.bl_count);
2951
2951
  }
2952
2952
  function O(e, t, r) {
2953
2953
  var n, o, i = -1, a = t[1], s = 0, l = 7, c = 4;
@@ -2979,9 +2979,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
2979
2979
  for (; e <= 255;) f[2 * e + 1] = 9, e++, i[9]++;
2980
2980
  for (; e <= 279;) f[2 * e + 1] = 7, e++, i[7]++;
2981
2981
  for (; e <= 287;) f[2 * e + 1] = 8, e++, i[8]++;
2982
- for (C(f, 287, i), e = 0; e < s; e++) h[2 * e + 1] = 5, h[2 * e] = I(e, 5);
2982
+ for (A(f, 287, i), e = 0; e < s; e++) h[2 * e + 1] = 5, h[2 * e] = I(e, 5);
2983
2983
  b = new E(f, c, 257, a, l), v = new E(h, u, 0, s, l), y = new E(new Array(0), d, 0, 19, 7);
2984
- }(), F = !0), e.l_desc = new S(e.dyn_ltree, b), e.d_desc = new S(e.dyn_dtree, v), e.bl_desc = new S(e.bl_tree, y), e.bi_buf = 0, e.bi_valid = 0, A(e);
2984
+ }(), F = !0), e.l_desc = new S(e.dyn_ltree, b), e.d_desc = new S(e.dyn_dtree, v), e.bl_desc = new S(e.bl_tree, y), e.bi_buf = 0, e.bi_valid = 0, C(e);
2985
2985
  }, r._tr_stored_block = B, r._tr_flush_block = function(e, t, r, n) {
2986
2986
  var o, a, s = 0;
2987
2987
  0 < e.level ? (2 === e.strm.data_type && (e.strm.data_type = function(e) {
@@ -2998,7 +2998,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
2998
2998
  var o;
2999
2999
  for (_(e, t - 257, 5), _(e, r - 1, 5), _(e, n - 4, 4), o = 0; o < n; o++) _(e, e.bl_tree[2 * p[o] + 1], 3);
3000
3000
  L(e, e.dyn_ltree, t - 1), L(e, e.dyn_dtree, r - 1);
3001
- }(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, s + 1), P(e, e.dyn_ltree, e.dyn_dtree)), A(e), n && R(e);
3001
+ }(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, s + 1), P(e, e.dyn_ltree, e.dyn_dtree)), C(e), n && R(e);
3002
3002
  }, r._tr_tally = function(e, t, r) {
3003
3003
  return e.pending_buf[e.d_buf + 2 * e.last_lit] = t >>> 8 & 255, e.pending_buf[e.d_buf + 2 * e.last_lit + 1] = 255 & t, e.pending_buf[e.l_buf + e.last_lit] = 255 & r, e.last_lit++, 0 === t ? e.dyn_ltree[2 * r]++ : (e.matches++, t--, e.dyn_ltree[2 * (g[r] + i + 1)]++, e.dyn_dtree[2 * N(t)]++), e.last_lit === e.lit_bufsize - 1;
3004
3004
  }, r._tr_align = function(e) {
@@ -3325,8 +3325,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
3325
3325
  r && (s = i("[", n(s), "\\u{10000}-\\u{10FFFF}", "]"));
3326
3326
  var l = new RegExp("[^" + n(s) + "]", r ? "u" : ""), c = /[\x20\x09\x0D\x0A]/, u = n(c), d = i(c, "+"), p = i(c, "*"), f = /[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;
3327
3327
  r && (f = i("[", n(f), "\\u{10000}-\\u{10FFFF}", "]"));
3328
- var h = i("[", n(f), n(/[-.0-9\xB7]/), n(/[\u0300-\u036F\u203F-\u2040]/), "]"), m = i(f, h, "*"), g = i("^", m, "$"), w = i(h, "+"), b = a(i("&", m, ";"), "|", a(/&#[0-9]+;|&#x[0-9a-fA-F]+;/)), v = i("%", m, ";"), y = a(i("\"", a(/[^%&"]/, "|", v, "|", b), "*", "\""), "|", i("'", a(/[^%&']/, "|", v, "|", b), "*", "'")), x = a("\"", a(/[^<&"]/, "|", b), "*", "\"", "|", "'", a(/[^<&']/, "|", b), "*", "'"), E = i(o(f, ":"), o(h, ":"), "*"), S = i("^", E, "$"), N = i(E, a(":", E), "?"), k = i("^", N, "$"), _ = i("(", N, ")"), T = a(/"[^"]*"|'[^']*'/), I = i(/^<\?/, "(", m, ")", a(d, "(?!", c, ")(", s, "*?)"), "?", /\?>/), C = /[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/, A = a("\"", C, "*\"", "|", "'", o(C, "'"), "*'"), R = "<!--", $ = i(R, a(o(s, "-"), "|", i("-", o(s, "-"))), "*", "-->"), D = "#PCDATA", P = a("EMPTY", "|", "ANY", "|", a(i(/\(/, p, D, a(p, /\|/, p, N), "*", p, /\)\*/), "|", i(/\(/, p, D, p, /\)/)), "|", i(/\([^>]+\)/, /[?*+]?/)), M = i("<!ELEMENT", d, a(N, "|", v), d, a(P, "|", v), p, ">"), O = i("<!ATTLIST", d, m, a(d, m, d, a(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/, "|", a(i("NOTATION", d, /\(/, p, m, a(p, /\|/, p, m), "*", p, /\)/), "|", i(/\(/, p, w, a(p, /\|/, p, w), "*", p, /\)/))), d, a(/#REQUIRED|#IMPLIED/, "|", a(a("#FIXED", d), "?", x))), "*", p, ">"), L = "about:legacy-compat", F = a("\"" + L + "\"", "|", "'" + L + "'"), B = "SYSTEM", U = "PUBLIC", z = a(a(B, d, T), "|", a(U, d, A, d, T)), H = i("^", a(a(B, d, "(?<SystemLiteralOnly>", T, ")"), "|", a(U, d, "(?<PubidLiteral>", A, ")", d, "(?<SystemLiteral>", T, ")"))), j = i("^", A, "$"), q = i("^", T, "$"), W = a(y, "|", a(z, a(d, "NDATA", d, m), "?")), G = "<!ENTITY", V = a(i(G, d, m, d, W, p, ">"), "|", i(G, d, "%", d, m, d, a(y, "|", z), p, ">")), X = i("<!NOTATION", d, m, d, a(z, "|", i(U, d, A)), p, ">"), Z = i(p, "=", p), Y = /1[.]\d+/, Q = i(d, "version", Z, a("'", Y, "'", "|", "\"", Y, "\"")), K = /[A-Za-z][-A-Za-z0-9._]*/, J = i(/^<\?xml/, Q, a(d, "encoding", Z, a("\"", K, "\"", "|", "'", K, "'")), "?", a(d, "standalone", Z, a("'", a("yes", "|", "no"), "'", "|", "\"", a("yes", "|", "no"), "\"")), "?", p, /\?>/), ee = i(/<!\[CDATA\[/, i(s, "*?", /\]\]>/));
3329
- e.chars = n, e.chars_without = o, e.detectUnicodeSupport = t, e.reg = i, e.regg = a, e.ABOUT_LEGACY_COMPAT = L, e.ABOUT_LEGACY_COMPAT_SystemLiteral = F, e.AttlistDecl = O, e.CDATA_START = "<![CDATA[", e.CDATA_END = "]]>", e.CDSect = ee, e.Char = s, e.Comment = $, e.COMMENT_START = R, e.COMMENT_END = "-->", e.DOCTYPE_DECL_START = "<!DOCTYPE", e.elementdecl = M, e.EntityDecl = V, e.EntityValue = y, e.ExternalID = z, e.ExternalID_match = H, e.Name = m, e.Name_exact = g, e.NCName_exact = S, e.NotationDecl = X, e.Reference = b, e.PEReference = v, e.PI = I, e.PUBLIC = U, e.PubidLiteral = A, e.PubidLiteral_match = j, e.QName = N, e.QName_exact = k, e.QName_group = _, e.S = d, e.SChar_s = u, e.S_OPT = p, e.SYSTEM = B, e.SystemLiteral = T, e.SystemLiteral_match = q, e.InvalidChar = l, e.UNICODE_REPLACEMENT_CHARACTER = "�", e.UNICODE_SUPPORT = r, e.XMLDecl = J;
3328
+ var h = i("[", n(f), n(/[-.0-9\xB7]/), n(/[\u0300-\u036F\u203F-\u2040]/), "]"), m = i(f, h, "*"), g = i("^", m, "$"), w = i(h, "+"), b = a(i("&", m, ";"), "|", a(/&#[0-9]+;|&#x[0-9a-fA-F]+;/)), v = i("%", m, ";"), y = a(i("\"", a(/[^%&"]/, "|", v, "|", b), "*", "\""), "|", i("'", a(/[^%&']/, "|", v, "|", b), "*", "'")), x = a("\"", a(/[^<&"]/, "|", b), "*", "\"", "|", "'", a(/[^<&']/, "|", b), "*", "'"), E = i(o(f, ":"), o(h, ":"), "*"), S = i("^", E, "$"), N = i(E, a(":", E), "?"), k = i("^", N, "$"), _ = i("(", N, ")"), T = a(/"[^"]*"|'[^']*'/), I = i(/^<\?/, "(", m, ")", a(d, "(?!", c, ")(", s, "*?)"), "?", /\?>/), A = /[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/, C = a("\"", A, "*\"", "|", "'", o(A, "'"), "*'"), R = "<!--", $ = i(R, a(o(s, "-"), "|", i("-", o(s, "-"))), "*", "-->"), D = "#PCDATA", P = a("EMPTY", "|", "ANY", "|", a(i(/\(/, p, D, a(p, /\|/, p, N), "*", p, /\)\*/), "|", i(/\(/, p, D, p, /\)/)), "|", i(/\([^>]+\)/, /[?*+]?/)), M = i("<!ELEMENT", d, a(N, "|", v), d, a(P, "|", v), p, ">"), O = i("<!ATTLIST", d, m, a(d, m, d, a(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/, "|", a(i("NOTATION", d, /\(/, p, m, a(p, /\|/, p, m), "*", p, /\)/), "|", i(/\(/, p, w, a(p, /\|/, p, w), "*", p, /\)/))), d, a(/#REQUIRED|#IMPLIED/, "|", a(a("#FIXED", d), "?", x))), "*", p, ">"), L = "about:legacy-compat", F = a("\"" + L + "\"", "|", "'" + L + "'"), B = "SYSTEM", U = "PUBLIC", z = a(a(B, d, T), "|", a(U, d, C, d, T)), H = i("^", a(a(B, d, "(?<SystemLiteralOnly>", T, ")"), "|", a(U, d, "(?<PubidLiteral>", C, ")", d, "(?<SystemLiteral>", T, ")"))), j = i("^", C, "$"), q = i("^", T, "$"), W = a(y, "|", a(z, a(d, "NDATA", d, m), "?")), G = "<!ENTITY", V = a(i(G, d, m, d, W, p, ">"), "|", i(G, d, "%", d, m, d, a(y, "|", z), p, ">")), X = i("<!NOTATION", d, m, d, a(z, "|", i(U, d, C)), p, ">"), Z = i(p, "=", p), Y = /1[.]\d+/, Q = i(d, "version", Z, a("'", Y, "'", "|", "\"", Y, "\"")), K = /[A-Za-z][-A-Za-z0-9._]*/, J = i(/^<\?xml/, Q, a(d, "encoding", Z, a("\"", K, "\"", "|", "'", K, "'")), "?", a(d, "standalone", Z, a("'", a("yes", "|", "no"), "'", "|", "\"", a("yes", "|", "no"), "\"")), "?", p, /\?>/), ee = i(/<!\[CDATA\[/, i(s, "*?", /\]\]>/));
3329
+ e.chars = n, e.chars_without = o, e.detectUnicodeSupport = t, e.reg = i, e.regg = a, e.ABOUT_LEGACY_COMPAT = L, e.ABOUT_LEGACY_COMPAT_SystemLiteral = F, e.AttlistDecl = O, e.CDATA_START = "<![CDATA[", e.CDATA_END = "]]>", e.CDSect = ee, e.Char = s, e.Comment = $, e.COMMENT_START = R, e.COMMENT_END = "-->", e.DOCTYPE_DECL_START = "<!DOCTYPE", e.elementdecl = M, e.EntityDecl = V, e.EntityValue = y, e.ExternalID = z, e.ExternalID_match = H, e.Name = m, e.Name_exact = g, e.NCName_exact = S, e.NotationDecl = X, e.Reference = b, e.PEReference = v, e.PI = I, e.PUBLIC = U, e.PubidLiteral = C, e.PubidLiteral_match = j, e.QName = N, e.QName_exact = k, e.QName_group = _, e.S = d, e.SChar_s = u, e.S_OPT = p, e.SYSTEM = B, e.SystemLiteral = T, e.SystemLiteral_match = q, e.InvalidChar = l, e.UNICODE_REPLACEMENT_CHARACTER = "�", e.UNICODE_SUPPORT = r, e.XMLDecl = J;
3330
3330
  }), p = a((e) => {
3331
3331
  var t = c(), r = t.find, n = t.hasDefaultHTMLNamespace, o = t.hasOwn, i = t.isHTMLMimeType, a = t.isHTMLRawTextElement, s = t.isHTMLVoidElement, l = t.MIME_TYPE, p = t.NAMESPACE, f = Symbol(), h = u(), m = h.DOMException, g = h.DOMExceptionName, w = d();
3332
3332
  function b(e) {
@@ -3376,7 +3376,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
3376
3376
  }
3377
3377
  r.constructor != e && ("function" != typeof e && console.error("unknown Class:" + e), r.constructor = e);
3378
3378
  }
3379
- var _ = {}, T = _.ELEMENT_NODE = 1, I = _.ATTRIBUTE_NODE = 2, C = _.TEXT_NODE = 3, A = _.CDATA_SECTION_NODE = 4, R = _.ENTITY_REFERENCE_NODE = 5, $ = _.ENTITY_NODE = 6, D = _.PROCESSING_INSTRUCTION_NODE = 7, P = _.COMMENT_NODE = 8, M = _.DOCUMENT_NODE = 9, O = _.DOCUMENT_TYPE_NODE = 10, L = _.DOCUMENT_FRAGMENT_NODE = 11, F = _.NOTATION_NODE = 12, B = t.freeze({
3379
+ var _ = {}, T = _.ELEMENT_NODE = 1, I = _.ATTRIBUTE_NODE = 2, A = _.TEXT_NODE = 3, C = _.CDATA_SECTION_NODE = 4, R = _.ENTITY_REFERENCE_NODE = 5, $ = _.ENTITY_NODE = 6, D = _.PROCESSING_INSTRUCTION_NODE = 7, P = _.COMMENT_NODE = 8, M = _.DOCUMENT_NODE = 9, O = _.DOCUMENT_TYPE_NODE = 10, L = _.DOCUMENT_FRAGMENT_NODE = 11, F = _.NOTATION_NODE = 12, B = t.freeze({
3380
3380
  DOCUMENT_POSITION_DISCONNECTED: 1,
3381
3381
  DOCUMENT_POSITION_PRECEDING: 2,
3382
3382
  DOCUMENT_POSITION_FOLLOWING: 4,
@@ -3639,7 +3639,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
3639
3639
  namespace: i,
3640
3640
  prefix: null
3641
3641
  }];
3642
- return Ae(this, r, a, t), r.join("");
3642
+ return Ce(this, r, a, t), r.join("");
3643
3643
  }
3644
3644
  function Ie(e, t, r) {
3645
3645
  var n = e.prefix || "", o = e.namespaceURI;
@@ -3651,11 +3651,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
3651
3651
  }
3652
3652
  return !0;
3653
3653
  }
3654
- function Ce(e, t, r, n) {
3654
+ function Ae(e, t, r, n) {
3655
3655
  if (n && !w.QName_exact.test(t)) throw new m("The attribute name \"" + t + "\" is not a valid XML QName", g.InvalidStateError);
3656
3656
  e.push(" ", t, "=\"", r.replace(/[<>&"\t\n\r]/g, K), "\"");
3657
3657
  }
3658
- function Ae(e, t, r, n) {
3658
+ function Ce(e, t, r, n) {
3659
3659
  r || (r = []);
3660
3660
  var o = n.nodeFilter, i = n.requireWellFormed, l = n.splitCDATASections, c = "html" === (e.nodeType === M ? e : e.ownerDocument).type;
3661
3661
  ee(e, { ns: r }, {
@@ -3700,18 +3700,18 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
3700
3700
  var k;
3701
3701
  if (Ie(k = d.item(N), 0, S)) {
3702
3702
  var _ = k.prefix || "", $ = k.namespaceURI;
3703
- Ce(t, _ ? "xmlns:" + _ : "xmlns", $, i), S.push({
3703
+ Ae(t, _ ? "xmlns:" + _ : "xmlns", $, i), S.push({
3704
3704
  prefix: _,
3705
3705
  namespace: $
3706
3706
  });
3707
3707
  }
3708
3708
  var F = o ? o(k) : k;
3709
- F && ("string" == typeof F ? t.push(F) : Ce(t, F.name, F.value, i));
3709
+ F && ("string" == typeof F ? t.push(F) : Ae(t, F.name, F.value, i));
3710
3710
  }
3711
3711
  if (h === b && Ie(e, 0, S)) {
3712
3712
  var B = e.prefix || "";
3713
3713
  $ = e.namespaceURI;
3714
- Ce(t, B ? "xmlns:" + B : "xmlns", $, i), S.push({
3714
+ Ae(t, B ? "xmlns:" + B : "xmlns", $, i), S.push({
3715
3715
  prefix: B,
3716
3716
  namespace: $
3717
3717
  });
@@ -3719,7 +3719,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
3719
3719
  var U = !e.firstChild;
3720
3720
  if (U && (c || e.namespaceURI === p.HTML) && (U = s(h)), U) return t.push("/>"), null;
3721
3721
  if (t.push(">"), c && a(h)) {
3722
- for (var z = e.firstChild; z;) z.data ? t.push(z.data) : Ae(z, t, S.slice(), n), z = z.nextSibling;
3722
+ for (var z = e.firstChild; z;) z.data ? t.push(z.data) : Ce(z, t, S.slice(), n), z = z.nextSibling;
3723
3723
  return t.push("</", b, ">"), null;
3724
3724
  }
3725
3725
  return {
@@ -3730,11 +3730,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
3730
3730
  case L:
3731
3731
  if (i && e.nodeType === M && null == e.documentElement) throw new m("The Document has no documentElement", g.InvalidStateError);
3732
3732
  return { ns: u };
3733
- case I: return Ce(t, e.name, e.value, i), null;
3734
- case C:
3733
+ case I: return Ae(t, e.name, e.value, i), null;
3734
+ case A:
3735
3735
  if (i && w.InvalidChar.test(e.data)) throw new m("The Text node data contains characters outside the XML Char production", g.InvalidStateError);
3736
3736
  return t.push(e.data.replace(/[<&>]/g, K)), null;
3737
- case A:
3737
+ case C:
3738
3738
  if (i && -1 !== e.data.indexOf("]]>")) throw new m("The CDATASection data contains \"]]>\"", g.InvalidStateError);
3739
3739
  return l ? t.push(w.CDATA_START, e.data.replace(/]]>/g, "]]]]><![CDATA[>"), w.CDATA_END) : t.push(w.CDATA_START, e.data, w.CDATA_END), null;
3740
3740
  case P:
@@ -3817,7 +3817,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
3817
3817
  splitCDATASections: !0,
3818
3818
  nodeFilter: null
3819
3819
  };
3820
- for (var r = [], n = 0; n < this.length; n++) Ae(this[n], r, null, t);
3820
+ for (var r = [], n = 0; n < this.length; n++) Ce(this[n], r, null, t);
3821
3821
  return r.join("");
3822
3822
  },
3823
3823
  filter: function(e) {
@@ -4037,8 +4037,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
4037
4037
  ee(this, null, { enter: function(e) {
4038
4038
  for (var t = e.firstChild; t;) {
4039
4039
  var r = t.nextSibling;
4040
- if (null !== r && r.nodeType === C && t.nodeType === C) {
4041
- for (var n = [], o = r; null !== o && o.nodeType === C;) n.push(o.data), o = o.nextSibling;
4040
+ if (null !== r && r.nodeType === A && t.nodeType === A) {
4041
+ for (var n = [], o = r; null !== o && o.nodeType === A;) n.push(o.data), o = o.nextSibling;
4042
4042
  for (var i = t.nextSibling; i !== o;) {
4043
4043
  var a = i.nextSibling;
4044
4044
  i.parentNode = null, i.previousSibling = null, i.nextSibling = null, i = a;
@@ -4305,7 +4305,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
4305
4305
  }
4306
4306
  }, k(ge, Q), we.prototype = {
4307
4307
  nodeName: "#text",
4308
- nodeType: C,
4308
+ nodeType: A,
4309
4309
  splitText: function(e) {
4310
4310
  var t = this.data, r = t.substring(e);
4311
4311
  t = t.substring(0, e), this.data = this.nodeValue = t, this.length = t.length;
@@ -4317,7 +4317,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
4317
4317
  nodeType: P
4318
4318
  }, k(be, ge), ve.prototype = {
4319
4319
  nodeName: "#cdata-section",
4320
- nodeType: A
4320
+ nodeType: C
4321
4321
  }, k(ve, we), ye.prototype.nodeType = O, k(ye, Q), xe.prototype.nodeType = F, k(xe, Q), Ee.prototype.nodeType = $, k(Ee, Q), Se.prototype.nodeType = R, k(Se, Q), Ne.prototype.nodeName = "#document-fragment", Ne.prototype.nodeType = L, k(Ne, Q), ke.prototype.nodeType = D, k(ke, ge), _e.prototype.serializeToString = function(e, t) {
4322
4322
  return Te.call(e, t);
4323
4323
  }, Q.prototype.toString = Te;
@@ -6532,9 +6532,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
6532
6532
  return s(o, i) ? o[i] : "#" === i.charAt(0) ? u(parseInt(i.substring(1).replace("x", "0x"))) : (l.error("entity not found:" + e), e);
6533
6533
  }
6534
6534
  function h(t) {
6535
- if (t > A) {
6536
- var r = e.substring(A, t).replace(m, d);
6537
- _ && T(A), a.characters(r, 0, t - A), A = t;
6535
+ if (t > C) {
6536
+ var r = e.substring(C, t).replace(m, d);
6537
+ _ && T(C), a.characters(r, 0, t - C), C = t;
6538
6538
  }
6539
6539
  }
6540
6540
  var y = 0, N = 0, k = /\r\n?|\n|$/g, _ = a.locator;
@@ -6542,22 +6542,22 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
6542
6542
  for (; t >= N && (r = k.exec(e));) y = N, N = r.index + r[0].length, _.lineNumber++;
6543
6543
  _.columnNumber = t - y + 1;
6544
6544
  }
6545
- var I = [{ currentNSMap: n }], C = [], A = 0;
6545
+ var I = [{ currentNSMap: n }], A = [], C = 0;
6546
6546
  for (;;) {
6547
6547
  try {
6548
- var R = e.indexOf("<", A);
6548
+ var R = e.indexOf("<", C);
6549
6549
  if (R < 0) {
6550
- if (!c && C.length > 0) return l.fatalError("unclosed xml tag(s): " + C.join(", "));
6551
- if (!e.substring(A).match(/^\s*$/)) {
6552
- var $ = a.doc, D = $.createTextNode(e.substring(A));
6550
+ if (!c && A.length > 0) return l.fatalError("unclosed xml tag(s): " + A.join(", "));
6551
+ if (!e.substring(C).match(/^\s*$/)) {
6552
+ var $ = a.doc, D = $.createTextNode(e.substring(C));
6553
6553
  if ($.documentElement) return l.error("Extra content at the end of the document");
6554
6554
  $.appendChild(D), a.currentElement = D;
6555
6555
  }
6556
6556
  return;
6557
6557
  }
6558
- if (R > A) {
6559
- var P = e.substring(A, R);
6560
- c || 0 !== C.length || (P = P.replace(new RegExp(r.S_OPT.source, "g"), "")) && l.error("Unexpected content outside root element: '" + P + "'"), h(R);
6558
+ if (R > C) {
6559
+ var P = e.substring(C, R);
6560
+ c || 0 !== A.length || (P = P.replace(new RegExp(r.S_OPT.source, "g"), "")) && l.error("Unexpected content outside root element: '" + P + "'"), h(R);
6561
6561
  }
6562
6562
  switch (e.charAt(R + 1)) {
6563
6563
  case "/":
@@ -6573,13 +6573,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
6573
6573
  }
6574
6574
  }
6575
6575
  if (!a.currentElement && !a.doc.documentElement) return;
6576
- var U = C[C.length - 1] || a.currentElement.tagName || a.doc.documentElement.tagName || "";
6576
+ var U = A[A.length - 1] || a.currentElement.tagName || a.doc.documentElement.tagName || "";
6577
6577
  if (U !== F[1]) {
6578
6578
  var z = F[1].toLowerCase();
6579
6579
  if (!c || U.toLowerCase() !== z) return l.fatalError("Opening and ending tag mismatch: \"" + U + "\" != \"" + O + "\"");
6580
6580
  }
6581
6581
  var H = I.pop();
6582
- C.pop();
6582
+ A.pop();
6583
6583
  var j = H.localNSMap;
6584
6584
  if (a.endElement(H.uri, H.localName, U), j) for (var q in j) s(j, q) && a.endPrefixMapping(q);
6585
6585
  M++;
@@ -6593,7 +6593,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
6593
6593
  default:
6594
6594
  _ && T(R);
6595
6595
  var W = new S(), G = I[I.length - 1].currentNSMap, V = (M = w(e, R, W, G, d, l, c), W.length);
6596
- if (W.closed || (c && t.isHTMLVoidElement(W.tagName) ? W.closed = !0 : C.push(W.tagName)), _ && V) {
6596
+ if (W.closed || (c && t.isHTMLVoidElement(W.tagName) ? W.closed = !0 : A.push(W.tagName)), _ && V) {
6597
6597
  for (var X = g(_, {}), Z = 0; Z < V; Z++) {
6598
6598
  var Y = W[Z];
6599
6599
  T(Y.offset), Y.locator = g(_, {});
@@ -6607,7 +6607,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
6607
6607
  if (Q instanceof f) return l.fatalError("Error constructing the DOM: " + Q.name + ": " + Q.message, Q);
6608
6608
  l.error("element parse error: " + Q), M = -1;
6609
6609
  }
6610
- M > A ? A = M : h(Math.max(R, A) + 1);
6610
+ M > C ? C = M : h(Math.max(R, C) + 1);
6611
6611
  }
6612
6612
  }(e, n, o, a, this.errorHandler), a.endDocument();
6613
6613
  } };
@@ -7064,7 +7064,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
7064
7064
  };
7065
7065
  return t?.isHeader && (r.isHeader = !0), r;
7066
7066
  }
7067
- const T = 96 / 72, I = 9525, C = 12700, A = 1440, R = 1e5, $ = 6e4, D = 14.6667, P = (e) => ({
7067
+ const T = 96 / 72, I = 9525, A = 12700, C = 1440, R = 1e5, $ = 6e4, D = 14.6667, P = (e) => ({
7068
7068
  width: .5,
7069
7069
  type: "solid",
7070
7070
  color: e
@@ -7699,15 +7699,15 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
7699
7699
  function Ie(e, t, r) {
7700
7700
  return e ? Ee(e).filter((e) => e.namespaceURI === t && e.localName === r) : [];
7701
7701
  }
7702
- const Ce = [
7702
+ const Ae = [
7703
7703
  "lrTb",
7704
7704
  "tbRl",
7705
7705
  "btLr",
7706
7706
  "lrTbV",
7707
7707
  "tbRlV"
7708
7708
  ];
7709
- function Ae(e) {
7710
- return Ce.includes(e) ? e : void 0;
7709
+ function Ce(e) {
7710
+ return Ae.includes(e) ? e : void 0;
7711
7711
  }
7712
7712
  function Re(e, t, r) {
7713
7713
  return Ie(e, t, r)[0] ?? null;
@@ -7831,7 +7831,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
7831
7831
  }
7832
7832
  function Qe(e, t) {
7833
7833
  const r = e ? Number(e) : NaN;
7834
- return Number.isFinite(r) ? Math.round(r / A * 96) : t;
7834
+ return Number.isFinite(r) ? Math.round(r / C * 96) : t;
7835
7835
  }
7836
7836
  function Ke(e) {
7837
7837
  const t = e ? Number(e) : NaN;
@@ -8254,9 +8254,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8254
8254
  const e = Number(I);
8255
8255
  Number.isFinite(e) && e > 0 && (r.characterScale = e);
8256
8256
  }
8257
- const A = Pe(Re(e, Se, "spacing"), "val");
8258
- if (A) {
8259
- const e = Ke(A);
8257
+ const C = Pe(Re(e, Se, "spacing"), "val");
8258
+ if (C) {
8259
+ const e = Ke(C);
8260
8260
  void 0 !== e && (r.characterSpacing = e);
8261
8261
  }
8262
8262
  const D = Pe(Re(e, Se, "position"), "val");
@@ -8326,7 +8326,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8326
8326
  }
8327
8327
  const Z = $e(e, "textOutline");
8328
8328
  if (Z) {
8329
- const e = Z.getAttributeNS(ke, "w"), t = null !== e ? Number(e) : NaN, n = { widthPt: Number.isFinite(t) && t > 0 ? t / C : .5 }, o = St(Z);
8329
+ const e = Z.getAttributeNS(ke, "w"), t = null !== e ? Number(e) : NaN, n = { widthPt: Number.isFinite(t) && t > 0 ? t / A : .5 }, o = St(Z);
8330
8330
  o && (n.fill = o, "solid" === o.type ? n.color = o.color : "gradient" === o.type && o.stops[0] && (n.color = o.stops[0].color)), r.textOutline = n;
8331
8331
  }
8332
8332
  const Y = $e(e, "shadow");
@@ -8334,7 +8334,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8334
8334
  const e = function(e) {
8335
8335
  const t = Nt(e);
8336
8336
  if (!t) return null;
8337
- const r = e.getAttributeNS(ke, "blurRad"), n = e.getAttributeNS(ke, "dist"), o = e.getAttributeNS(ke, "dir"), i = r ? Number(r) / C : 0, a = n ? Number(n) / C : 0, s = o ? Number(o) / $ : 0;
8337
+ const r = e.getAttributeNS(ke, "blurRad"), n = e.getAttributeNS(ke, "dist"), o = e.getAttributeNS(ke, "dir"), i = r ? Number(r) / A : 0, a = n ? Number(n) / A : 0, s = o ? Number(o) / $ : 0;
8338
8338
  return {
8339
8339
  color: t.color,
8340
8340
  ...void 0 !== t.alpha ? { alpha: t.alpha } : {},
@@ -8350,7 +8350,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8350
8350
  const e = function(e) {
8351
8351
  const t = Nt(e);
8352
8352
  if (!t) return null;
8353
- const r = e.getAttributeNS(ke, "rad"), n = r ? Number(r) / C : 0;
8353
+ const r = e.getAttributeNS(ke, "rad"), n = r ? Number(r) / A : 0;
8354
8354
  return {
8355
8355
  color: t.color,
8356
8356
  ...void 0 !== t.alpha ? { alpha: t.alpha } : {},
@@ -8363,12 +8363,12 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8363
8363
  K && (r.reflection = function(e) {
8364
8364
  const t = e.getAttributeNS(ke, "blurRad"), r = e.getAttributeNS(ke, "stA"), n = e.getAttributeNS(ke, "stPos"), o = e.getAttributeNS(ke, "endA"), i = e.getAttributeNS(ke, "endPos"), a = e.getAttributeNS(ke, "dist");
8365
8365
  return {
8366
- blurPt: t ? Number(t) / C : 0,
8366
+ blurPt: t ? Number(t) / A : 0,
8367
8367
  startAlpha: null !== r ? Number(r) / R : .55,
8368
8368
  startPos: null !== n ? Number(n) / R : 0,
8369
8369
  endAlpha: null !== o ? Number(o) / R : 0,
8370
8370
  endPos: null !== i ? Number(i) / R : 1,
8371
- distPt: a ? Number(a) / C : 0
8371
+ distPt: a ? Number(a) / A : 0
8372
8372
  };
8373
8373
  }(K));
8374
8374
  const J = $e(e, "scene3d");
@@ -8412,7 +8412,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8412
8412
  ["insideH", "borderInsideH"],
8413
8413
  ["insideV", "borderInsideV"]
8414
8414
  ];
8415
- function Ct(e) {
8415
+ function At(e) {
8416
8416
  if (!e) return;
8417
8417
  const t = Pe(e, "type"), r = Pe(e, "w");
8418
8418
  if ("auto" === t) return "auto";
@@ -8423,7 +8423,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8423
8423
  }
8424
8424
  return Ke(r);
8425
8425
  }
8426
- function At(e, t) {
8426
+ function Ct(e, t) {
8427
8427
  const r = Pe(Re(e, Se, t), "val"), n = r ? Number(r) : NaN;
8428
8428
  return Number.isFinite(n) && n > 0 ? Math.floor(n) : void 0;
8429
8429
  }
@@ -8465,9 +8465,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8465
8465
  n && (r.altTitle = n);
8466
8466
  const o = Pe(Re(e, Se, "tblDescription"), "val");
8467
8467
  o && (r.altDescription = o);
8468
- const i = Ct(Re(e, Se, "tblW"));
8468
+ const i = At(Re(e, Se, "tblW"));
8469
8469
  void 0 !== i && (r.width = i);
8470
- const a = Ct(Re(e, Se, "tblInd"));
8470
+ const a = At(Re(e, Se, "tblInd"));
8471
8471
  void 0 !== a && (r.indentLeft = a);
8472
8472
  const s = Pe(Re(e, Se, "jc"), "val");
8473
8473
  "left" === s || "start" === s ? r.align = "left" : "center" === s ? r.align = "center" : "right" !== s && "end" !== s || (r.align = "right");
@@ -8476,7 +8476,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8476
8476
  return "fixed" === t || "autofit" === t ? t : void 0;
8477
8477
  }(e);
8478
8478
  l && (r.layout = l);
8479
- const c = Ct(Re(e, Se, "tblCellSpacing"));
8479
+ const c = At(Re(e, Se, "tblCellSpacing"));
8480
8480
  void 0 !== c && (r.cellSpacing = c);
8481
8481
  const u = (d = Re(e, Se, "tblBorders")) ? {
8482
8482
  ...bt(d),
@@ -8514,9 +8514,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8514
8514
  };
8515
8515
  }(e);
8516
8516
  m && (r.floating = m);
8517
- const g = At(e, "tblStyleRowBandSize");
8517
+ const g = Ct(e, "tblStyleRowBandSize");
8518
8518
  void 0 !== g && (r.rowBandSize = g);
8519
- const w = At(e, "tblStyleColBandSize");
8519
+ const w = Ct(e, "tblStyleColBandSize");
8520
8520
  void 0 !== w && (r.colBandSize = w);
8521
8521
  const b = Re(e, Se, "tblLook");
8522
8522
  if (b) {
@@ -8544,19 +8544,19 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8544
8544
  if (!e) return;
8545
8545
  const t = {}, r = Fe(e, "tblHeader");
8546
8546
  void 0 !== r && (t.isHeader = r);
8547
- const n = At(e, "gridBefore");
8547
+ const n = Ct(e, "gridBefore");
8548
8548
  void 0 !== n && (t.gridBefore = n);
8549
- const o = At(e, "gridAfter");
8549
+ const o = Ct(e, "gridAfter");
8550
8550
  void 0 !== o && (t.gridAfter = o);
8551
- const i = Ct(Re(e, Se, "wBefore"));
8551
+ const i = At(Re(e, Se, "wBefore"));
8552
8552
  void 0 !== i && (t.widthBefore = i);
8553
- const a = Ct(Re(e, Se, "wAfter"));
8553
+ const a = At(Re(e, Se, "wAfter"));
8554
8554
  void 0 !== a && (t.widthAfter = a);
8555
8555
  const s = Re(e, Se, "trHeight"), l = Ke(Pe(s, "val"));
8556
8556
  void 0 !== l && (t.height = l);
8557
8557
  const c = Pe(s, "hRule");
8558
8558
  "auto" !== c && "exact" !== c && "atLeast" !== c || (t.heightRule = c);
8559
- const u = Ct(Re(e, Se, "tblCellSpacing"));
8559
+ const u = At(Re(e, Se, "tblCellSpacing"));
8560
8560
  void 0 !== u && (t.cellSpacing = u);
8561
8561
  const d = Pe(Re(e, Se, "jc"), "val");
8562
8562
  "left" === d || "start" === d ? t.align = "left" : "center" === d ? t.align = "center" : "right" !== d && "end" !== d || (t.align = "right");
@@ -8628,7 +8628,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8628
8628
  return "top" === t || "bottom" === t ? t : "center" === t ? "middle" : void 0;
8629
8629
  }(e);
8630
8630
  c && (n.verticalAlign = c);
8631
- const u = Ae(Pe(Re(e, Se, "textDirection"), "val"));
8631
+ const u = Ce(Pe(Re(e, Se, "textDirection"), "val"));
8632
8632
  u && (n.textDirection = u);
8633
8633
  const d = Fe(e, "noWrap");
8634
8634
  void 0 !== d && (n.noWrap = d);
@@ -8771,7 +8771,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8771
8771
  }
8772
8772
  const k = Et(Re(e, Se, "shd"), t);
8773
8773
  k && (r.shading = k);
8774
- const _ = Ae(Pe(Re(e, Se, "textDirection"), "val"));
8774
+ const _ = Ce(Pe(Re(e, Se, "textDirection"), "val"));
8775
8775
  _ && (r.textDirection = _);
8776
8776
  const T = Pe(Re(e, Se, "outlineLvl"), "val");
8777
8777
  if (void 0 !== T) {
@@ -8780,10 +8780,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8780
8780
  }
8781
8781
  const I = Fe(e, "suppressLineNumbers");
8782
8782
  void 0 !== I && (r.suppressLineNumbers = I);
8783
- const C = Fe(e, "suppressAutoHyphens");
8784
- void 0 !== C && (r.suppressAutoHyphens = C);
8785
- const A = Fe(e, "bidi");
8786
- void 0 !== A && (r.bidi = A);
8783
+ const A = Fe(e, "suppressAutoHyphens");
8784
+ void 0 !== A && (r.suppressAutoHyphens = A);
8785
+ const C = Fe(e, "bidi");
8786
+ void 0 !== C && (r.bidi = C);
8787
8787
  const R = Fe(e, "kinsoku");
8788
8788
  void 0 !== R && (r.kinsoku = R);
8789
8789
  const $ = Fe(e, "wordWrap");
@@ -8904,8 +8904,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8904
8904
  const x = Pe(Re(e, Se, "vAlign"), "val"), E = "center" === x || "both" === x || "bottom" === x ? x : void 0, S = Fe(e, "bidi"), N = Re(e, Se, "sectPrChange"), k = dt(N), _ = Re(N, Se, "sectPr"), T = k && _ ? {
8905
8905
  ...k,
8906
8906
  type: "property",
8907
- previous: (I = Xt(_), C = u, {
8908
- pageSettings: I.pageSettings ?? C ?? Wt,
8907
+ previous: (I = Xt(_), A = u, {
8908
+ pageSettings: I.pageSettings ?? A ?? Wt,
8909
8909
  ...I.pageBorder ? { pageBorder: I.pageBorder } : {},
8910
8910
  ...I.pageNumbering ? { pageNumbering: I.pageNumbering } : {},
8911
8911
  ...I.verticalAlignment ? { verticalAlignment: I.verticalAlignment } : {},
@@ -8913,7 +8913,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8913
8913
  ...I.breakType ? { nextBreakType: I.breakType } : {}
8914
8914
  })
8915
8915
  } : void 0;
8916
- var I, C;
8916
+ var I, A;
8917
8917
  return {
8918
8918
  pageSettings: u,
8919
8919
  ...c ? { pageBorder: c } : {},
@@ -9404,22 +9404,28 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9404
9404
  function Er(e) {
9405
9405
  const t = xr(e, "positionH"), r = xr(e, "positionV"), n = function(e) {
9406
9406
  return Me(e, "wrapSquare") ? "square" : Me(e, "wrapTight") ? "tight" : Me(e, "wrapThrough") ? "through" : Me(e, "wrapTopAndBottom") ? "topAndBottom" : Me(e, "wrapNone") ? "none" : void 0;
9407
- }(e), o = gr(e.getAttribute("distT")), i = gr(e.getAttribute("distB")), a = gr(e.getAttribute("distL")), s = gr(e.getAttribute("distR")), l = yr(e.getAttribute("simplePos")), c = gr(e.getAttribute("relativeHeight")), u = yr(e.getAttribute("behindDoc")), d = yr(e.getAttribute("locked")), p = yr(e.getAttribute("layoutInCell")), f = yr(e.getAttribute("allowOverlap"));
9407
+ }(e), o = function(e) {
9408
+ const t = Me(e, "wrapSquare") ?? Me(e, "wrapTight") ?? Me(e, "wrapThrough");
9409
+ if (!t) return;
9410
+ const r = t.getAttribute("wrapText");
9411
+ return !r || "bothSides" === r || "left" !== r && "right" !== r && "largest" !== r && "bothSides" !== r ? void 0 : r;
9412
+ }(e), i = gr(e.getAttribute("distT")), a = gr(e.getAttribute("distB")), s = gr(e.getAttribute("distL")), l = gr(e.getAttribute("distR")), c = yr(e.getAttribute("simplePos")), u = gr(e.getAttribute("relativeHeight")), d = yr(e.getAttribute("behindDoc")), p = yr(e.getAttribute("locked")), f = yr(e.getAttribute("layoutInCell")), h = yr(e.getAttribute("allowOverlap"));
9408
9413
  return {
9409
9414
  type: "floating",
9410
- ...void 0 !== o ? { distT: o } : {},
9411
- ...void 0 !== i ? { distB: i } : {},
9412
- ...void 0 !== a ? { distL: a } : {},
9413
- ...void 0 !== s ? { distR: s } : {},
9414
- ...void 0 !== l ? { simplePos: l } : {},
9415
- ...void 0 !== c ? { relativeHeight: c } : {},
9416
- ...void 0 !== u ? { behindDoc: u } : {},
9417
- ...void 0 !== d ? { locked: d } : {},
9418
- ...void 0 !== p ? { layoutInCell: p } : {},
9419
- ...void 0 !== f ? { allowOverlap: f } : {},
9415
+ ...void 0 !== i ? { distT: i } : {},
9416
+ ...void 0 !== a ? { distB: a } : {},
9417
+ ...void 0 !== s ? { distL: s } : {},
9418
+ ...void 0 !== l ? { distR: l } : {},
9419
+ ...void 0 !== c ? { simplePos: c } : {},
9420
+ ...void 0 !== u ? { relativeHeight: u } : {},
9421
+ ...void 0 !== d ? { behindDoc: d } : {},
9422
+ ...void 0 !== p ? { locked: p } : {},
9423
+ ...void 0 !== f ? { layoutInCell: f } : {},
9424
+ ...void 0 !== h ? { allowOverlap: h } : {},
9420
9425
  ...t ? { positionH: t } : {},
9421
9426
  ...r ? { positionV: r } : {},
9422
- ...n ? { wrap: n } : {}
9427
+ ...n ? { wrap: n } : {},
9428
+ ...o ? { wrapText: o } : {}
9423
9429
  };
9424
9430
  }
9425
9431
  async function Sr(e, t, r, n) {
@@ -9495,11 +9501,18 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9495
9501
  const o = br(Me(t, "srgbClr")?.getAttribute("val"));
9496
9502
  if (!o) return;
9497
9503
  const i = { color: o }, a = gr(t.getAttribute("w"));
9498
- void 0 !== a && (i.widthPt = Ye(a / C, 2));
9504
+ void 0 !== a && (i.widthPt = Ye(a / A, 2));
9499
9505
  const s = dr(Me(t, "prstDash")?.getAttribute("val"));
9500
9506
  return s && (i.dash = s), i;
9501
9507
  }
9502
9508
  }(e), v = function(e) {
9509
+ const t = Me(e, "alphaModFix");
9510
+ if (!t) return;
9511
+ const r = t.getAttribute("amt");
9512
+ if (null === r || "" === r) return;
9513
+ const n = parseInt(r, 10);
9514
+ return Number.isFinite(n) ? Math.round(1e3 * (1 - Math.max(0, Math.min(R, n)) / R)) / 1e3 : void 0;
9515
+ }(e), y = function(e) {
9503
9516
  const t = Me(e, "xfrm");
9504
9517
  if (!t) return {};
9505
9518
  const r = {}, n = t.getAttribute("rot");
@@ -9511,7 +9524,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9511
9524
  "1" !== o && "true" !== o || (r.flipH = !0);
9512
9525
  const i = t.getAttribute("flipV");
9513
9526
  return "1" !== i && "true" !== i || (r.flipV = !0), r;
9514
- }(e), y = "anchor" === s?.kind ? Er(s.element) : void 0, x = "anchor" === s?.kind ? function(e) {
9527
+ }(e), x = "anchor" === s?.kind ? Er(s.element) : void 0, E = "anchor" === s?.kind ? function(e) {
9515
9528
  const t = Me(e, "wrapPolygon");
9516
9529
  if (!t) return;
9517
9530
  const r = [];
@@ -9531,7 +9544,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9531
9544
  Math.abs(e.x - t.x) < 1e-6 && Math.abs(e.y - t.y) < 1e-6 && r.pop();
9532
9545
  }
9533
9546
  return r.length >= 3 ? r : void 0;
9534
- }(s.element) : void 0, E = {
9547
+ }(s.element) : void 0, S = {
9535
9548
  width: d,
9536
9549
  height: p,
9537
9550
  ...null !== f ? { alt: f } : {},
@@ -9542,30 +9555,31 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9542
9555
  } : {},
9543
9556
  ...g ? { fillMode: g } : {},
9544
9557
  ...w ? { border: w } : {},
9545
- ...void 0 !== v.rotation ? { rotation: v.rotation } : {},
9546
- ...v.flipH ? { flipH: !0 } : {},
9547
- ...v.flipV ? { flipV: !0 } : {},
9548
- ...y ? { floating: y } : {},
9549
- ...x ? { wrapPolygon: x } : {}
9550
- }, S = i ? r.get(i) : void 0, N = a ? r.get(a) : void 0;
9551
- if (N && function(e) {
9558
+ ...void 0 !== v ? { transparency: v } : {},
9559
+ ...void 0 !== y.rotation ? { rotation: y.rotation } : {},
9560
+ ...y.flipH ? { flipH: !0 } : {},
9561
+ ...y.flipV ? { flipV: !0 } : {},
9562
+ ...x ? { floating: x } : {},
9563
+ ...E ? { wrapPolygon: E } : {}
9564
+ }, N = i ? r.get(i) : void 0, k = a ? r.get(a) : void 0;
9565
+ if (k && function(e) {
9552
9566
  return /^[a-z][a-z0-9+.-]*:\/\//i.test(e) || e.startsWith("//");
9553
- }(N)) return {
9567
+ }(k)) return {
9554
9568
  text: "",
9555
9569
  image: {
9556
9570
  src: "",
9557
- linkedSrc: N,
9558
- ...E
9571
+ linkedSrc: k,
9572
+ ...S
9559
9573
  }
9560
9574
  };
9561
- const k = S ?? N;
9562
- if (k) {
9563
- const e = await qe(t, n, k);
9575
+ const _ = N ?? k;
9576
+ if (_) {
9577
+ const e = await qe(t, n, _);
9564
9578
  if (e) return {
9565
9579
  text: "",
9566
9580
  image: {
9567
9581
  src: e,
9568
- ...E
9582
+ ...S
9569
9583
  }
9570
9584
  };
9571
9585
  }
@@ -9648,7 +9662,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9648
9662
  e && (r.fill = e);
9649
9663
  } else if ("ln" === n.localName) {
9650
9664
  const e = gr(n.getAttribute("w"));
9651
- void 0 !== e && (r.borderWidthPt = Ye(e / C, 2));
9665
+ void 0 !== e && (r.borderWidthPt = Ye(e / A, 2));
9652
9666
  const t = br(Me(n, "srgbClr")?.getAttribute("val"));
9653
9667
  t && (r.borderColor = t);
9654
9668
  }
@@ -9704,7 +9718,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9704
9718
  const r = t[1].replace(/^"|"$/g, "").trim();
9705
9719
  return r.length > 0 ? r : void 0;
9706
9720
  }
9707
- function Cr(e) {
9721
+ function Ar(e) {
9708
9722
  const t = Pe(e, "id");
9709
9723
  if (!t) return;
9710
9724
  if ("bookmarkEnd" === e.localName) return {
@@ -9720,7 +9734,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9720
9734
  ...void 0 === a || Number.isNaN(a) ? {} : { colLast: a }
9721
9735
  };
9722
9736
  }
9723
- function Ar(e) {
9737
+ function Cr(e) {
9724
9738
  const t = Pe(e, "id");
9725
9739
  if (t) return {
9726
9740
  kind: "commentRangeEnd" === e.localName ? "end" : "start",
@@ -9781,7 +9795,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9781
9795
  } else {
9782
9796
  if ("lastRenderedPageBreak" === i.localName) continue;
9783
9797
  if ("bookmarkStart" === i.localName || "bookmarkEnd" === i.localName) {
9784
- const e = Cr(i);
9798
+ const e = Ar(i);
9785
9799
  e && u.push({
9786
9800
  offset: c,
9787
9801
  marker: e
@@ -9789,7 +9803,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9789
9803
  continue;
9790
9804
  }
9791
9805
  if ("commentRangeStart" === i.localName || "commentRangeEnd" === i.localName) {
9792
- const e = Ar(i);
9806
+ const e = Cr(i);
9793
9807
  e && d.push({
9794
9808
  offset: c,
9795
9809
  marker: e
@@ -9908,7 +9922,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9908
9922
  }
9909
9923
  if ("http://schemas.openxmlformats.org/wordprocessingml/2006/main" !== f.namespaceURI) continue;
9910
9924
  if ("bookmarkStart" === f.localName || "bookmarkEnd" === f.localName) {
9911
- const e = Cr(f);
9925
+ const e = Ar(f);
9912
9926
  if (!e) continue;
9913
9927
  l.push({
9914
9928
  text: "",
@@ -9917,7 +9931,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9917
9931
  continue;
9918
9932
  }
9919
9933
  if ("commentRangeStart" === f.localName || "commentRangeEnd" === f.localName) {
9920
- const e = Ar(f);
9934
+ const e = Cr(f);
9921
9935
  if (!e) continue;
9922
9936
  l.push({
9923
9937
  text: "",
@@ -10830,13 +10844,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
10830
10844
  [4, "iv"],
10831
10845
  [1, "i"]
10832
10846
  ];
10833
- function Cn(e) {
10847
+ function An(e) {
10834
10848
  if (e <= 0) return String(e);
10835
10849
  let t = e, r = "";
10836
10850
  for (const [n, o] of In) for (; t >= n;) r += o, t -= n;
10837
10851
  return r;
10838
10852
  }
10839
- function An(e) {
10853
+ function Cn(e) {
10840
10854
  if (e <= 0) return String(e);
10841
10855
  let t = e, r = "";
10842
10856
  for (; t > 0;) r = "abcdefghijklmnopqrstuvwxyz"[(t - 1) % 26] + r, t = Math.floor((t - 1) / 26);
@@ -10852,10 +10866,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
10852
10866
  ];
10853
10867
  function $n(e, t = "decimal") {
10854
10868
  switch (t) {
10855
- case "lowerRoman": return Cn(e);
10856
- case "upperRoman": return Cn(e).toUpperCase();
10857
- case "lowerLetter": return An(e);
10858
- case "upperLetter": return An(e).toUpperCase();
10869
+ case "lowerRoman": return An(e);
10870
+ case "upperRoman": return An(e).toUpperCase();
10871
+ case "lowerLetter": return Cn(e);
10872
+ case "upperLetter": return Cn(e).toUpperCase();
10859
10873
  case "symbol": {
10860
10874
  const t = (e - 1) % Rn.length, r = Math.floor((e - 1) / Rn.length) + 1;
10861
10875
  return Rn[t].repeat(r);
@@ -11222,9 +11236,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11222
11236
  "http://schemas.openxmlformats.org/wordprocessingml/2006/main" === t.namespaceURI && "sectPr" !== t.localName && (I += 1);
11223
11237
  }
11224
11238
  }
11225
- let C = 0;
11226
- const A = () => {
11227
- C += 1, I > 0 && t.onProgress?.("parsing-document", C / I);
11239
+ let A = 0;
11240
+ const C = () => {
11241
+ A += 1, I > 0 && t.onProgress?.("parsing-document", A / I);
11228
11242
  }, R = xn(i, r, o, v, d);
11229
11243
  for (let w = 0; w < g.childNodes.length; w += 1) {
11230
11244
  const e = g.childNodes[w];
@@ -11237,13 +11251,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11237
11251
  for (const t of e.paragraphs) T(t);
11238
11252
  e.dropCapFrame && (_ = e.dropCapFrame), e.pageBreakAfter && (k = !0);
11239
11253
  const n = Re(t, Se, "pPr"), a = n ? Re(n, Se, "sectPr") : null;
11240
- a && (E.push(Xt(a)), S.push([]), k = !1), A();
11241
- } else if ("tbl" === t.localName) T(await bn(t, 0, 0, 0, 0, d, R)), A();
11254
+ a && (E.push(Xt(a)), S.push([]), k = !1), C();
11255
+ } else if ("tbl" === t.localName) T(await bn(t, 0, 0, 0, 0, d, R)), C();
11242
11256
  else if ("sdt" === t.localName) {
11243
11257
  for (const e of await yn(t, i, r, o, v, d, R)) T(e);
11244
- A();
11258
+ C();
11245
11259
  }
11246
- await Ue(50, C);
11260
+ await Ue(50, A);
11247
11261
  }
11248
11262
  }
11249
11263
  if (0 === E.length) {
@@ -11569,10 +11583,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11569
11583
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
11570
11584
  }
11571
11585
  function no(e, t) {
11572
- return Number.isFinite(e) ? Math.max(0, Math.round(e / 96 * A)) : t;
11586
+ return Number.isFinite(e) ? Math.max(0, Math.round(e / 96 * C)) : t;
11573
11587
  }
11574
11588
  function oo(e) {
11575
- return null != e && Number.isFinite(e) ? Math.round(e / 96 * A) : null;
11589
+ return null != e && Number.isFinite(e) ? Math.round(e / 96 * C) : null;
11576
11590
  }
11577
11591
  function io(e) {
11578
11592
  return null != e && Number.isFinite(e) ? Math.max(0, Math.round(20 * e)) : null;
@@ -11730,7 +11744,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11730
11744
  const o = [];
11731
11745
  return n && o.push(`w:val="${Math.round(r)}"`), o.push(`w:hRule="${t ?? "atLeast"}"`), `<w:trHeight ${o.join(" ")}/>`;
11732
11746
  }
11733
- function Co(e) {
11747
+ function Ao(e) {
11734
11748
  if (!e) return "";
11735
11749
  const t = [], r = To("gridBefore", e.gridBefore);
11736
11750
  r && t.push(r);
@@ -11751,7 +11765,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11751
11765
  const u = xo("tblHeader", e.isHeader);
11752
11766
  return u && t.push(u), e.align && t.push(`<w:jc w:val="${e.align}"/>`), t.length > 0 ? `<w:trPr>${t.join("")}</w:trPr>` : "";
11753
11767
  }
11754
- function Ao(e) {
11768
+ function Co(e) {
11755
11769
  const t = [], r = yo(e.conditionalStyle);
11756
11770
  r && t.push(r);
11757
11771
  const n = To("gridBefore", e.style?.gridBefore);
@@ -11773,7 +11787,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11773
11787
  const u = xo("hidden", e.style?.hidden);
11774
11788
  if (u && t.push(u), e.style?.align && t.push(`<w:jc w:val="${e.style.align}"/>`), e.style?.propertyRevision) {
11775
11789
  const r = e.style.propertyRevision;
11776
- t.push(`<w:trPrChange ${vo(r)}>${Co(r.previous)}</w:trPrChange>`);
11790
+ t.push(`<w:trPrChange ${vo(r)}>${Ao(r.previous)}</w:trPrChange>`);
11777
11791
  }
11778
11792
  if (e.style?.revision && "merge" !== e.style.revision.type) {
11779
11793
  const r = e.style.revision, n = "insert" === r.type ? "ins" : "del";
@@ -11896,7 +11910,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11896
11910
  }]).map((e) => t(e, r)).join(""), c = "continue" === r.vMerge ? "<w:p/>" : l;
11897
11911
  return `<w:tc${bo(r.extAttributes)}>${_o(r, s)}${c}</w:tc>`;
11898
11912
  }).join("");
11899
- return `<w:tr${bo(r.extAttributes)}>${Do(r.propertyExceptions, r.propertyExceptionsRevision, r.tblPrExChangeXml)}${Ao(r)}${i}</w:tr>`;
11913
+ return `<w:tr${bo(r.extAttributes)}>${Do(r.propertyExceptions, r.propertyExceptionsRevision, r.tblPrExChangeXml)}${Co(r)}${i}</w:tr>`;
11900
11914
  }).join(""), i = e.gridCols ? `<w:tblGrid>${e.gridCols.map((e) => `<w:gridCol w:w="${io(e) ?? 0}"/>`).join("")}${e.gridRevision ? `<w:tblGridChange ${vo(e.gridRevision)}><w:tblGrid>${e.gridRevision.previous.map((e) => `<w:gridCol w:w="${io(e) ?? 0}"/>`).join("")}</w:tblGrid></w:tblGridChange>` : ""}</w:tblGrid>` : "";
11901
11915
  return `<w:tbl>${$o(e)}${i}${o}</w:tbl>`;
11902
11916
  }
@@ -12534,13 +12548,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
12534
12548
  function Ii(e) {
12535
12549
  return `<w14:solidFill><w14:srgbClr w14:val="${ao(e)}"/></w14:solidFill>`;
12536
12550
  }
12537
- function Ci(e) {
12551
+ function Ai(e) {
12538
12552
  return "solid" === e.type ? Ii(e.color) : `<w14:gradFill><w14:gsLst>${e.stops.map((e) => {
12539
12553
  const t = ao(e.color);
12540
12554
  return `<w14:gs w14:pos="${Math.round(e.position * R)}"><w14:srgbClr w14:val="${t}">${void 0 !== e.alpha ? `<w14:alpha w14:val="${Math.round(e.alpha * R)}"/>` : ""}</w14:srgbClr></w14:gs>`;
12541
12555
  }).join("")}</w14:gsLst><w14:lin w14:ang="${Math.round((e.angle ?? 0) * $)}" w14:scaled="0"/></w14:gradFill>`;
12542
12556
  }
12543
- function Ai(e, t) {
12557
+ function Ci(e, t) {
12544
12558
  return `<w14:srgbClr w14:val="${ao(e)}">${void 0 !== t ? `<w14:alpha w14:val="${Math.round(t * R)}"/>` : ""}</w14:srgbClr>`;
12545
12559
  }
12546
12560
  function Ri(e) {
@@ -12609,21 +12623,21 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
12609
12623
  if (e.textFill) {
12610
12624
  const r = "solid" === e.textFill.type ? e.textFill.color : e.color;
12611
12625
  t.push(function(e, t) {
12612
- const r = Ci(e), n = ao(t ?? "000000");
12626
+ const r = Ai(e), n = ao(t ?? "000000");
12613
12627
  return `<mc:AlternateContent xmlns:mc="${Ti}"><mc:Choice Requires="w14"><w14:textFill>${r}</w14:textFill></mc:Choice><mc:Fallback><w:color w:val="${n}"/></mc:Fallback></mc:AlternateContent>`;
12614
12628
  }(e.textFill, r ?? null));
12615
12629
  } else e.color && t.push(`<w:color w:val="${ro(e.color.replace(/^#/, ""))}"/>`);
12616
12630
  if (e.textOutline && t.push(function(e) {
12617
- const t = Math.round(Math.max(0, e.widthPt) * C), r = e.fill ? Ci(e.fill) : e.color ? Ii(e.color) : "";
12631
+ const t = Math.round(Math.max(0, e.widthPt) * A), r = e.fill ? Ai(e.fill) : e.color ? Ii(e.color) : "";
12618
12632
  return `<mc:AlternateContent xmlns:mc="${Ti}"><mc:Choice Requires="w14"><w14:textOutline w14:w="${t}" w14:cap="flat" w14:cmpd="sng" w14:algn="ctr">` + r + "</w14:textOutline></mc:Choice><mc:Fallback><w:outline/></mc:Fallback></mc:AlternateContent>";
12619
12633
  }(e.textOutline)), e.textShadow && t.push(function(e) {
12620
- const t = Math.round(Math.max(0, e.blurPt) * C), r = Math.round(Math.max(0, e.distPt) * C), n = Math.round(e.dirDeg * $), o = Ai(e.color, e.alpha);
12634
+ const t = Math.round(Math.max(0, e.blurPt) * A), r = Math.round(Math.max(0, e.distPt) * A), n = Math.round(e.dirDeg * $), o = Ci(e.color, e.alpha);
12621
12635
  return `<mc:AlternateContent xmlns:mc="${Ti}"><mc:Choice Requires="w14"><w14:shadow w14:blurRad="${t}" w14:dist="${r}" w14:dir="${n}" w14:sx="100000" w14:sy="100000" w14:kx="0" w14:ky="0" w14:algn="ctr">` + o + "</w14:shadow></mc:Choice><mc:Fallback><w:shadow/></mc:Fallback></mc:AlternateContent>";
12622
12636
  }(e.textShadow)), e.glow && t.push(function(e) {
12623
- const t = Math.round(Math.max(0, e.radiusPt) * C), r = Ai(e.color, e.alpha);
12637
+ const t = Math.round(Math.max(0, e.radiusPt) * A), r = Ci(e.color, e.alpha);
12624
12638
  return `<mc:AlternateContent xmlns:mc="${Ti}"><mc:Choice Requires="w14"><w14:glow w14:rad="${t}">${r}</w14:glow></mc:Choice><mc:Fallback/></mc:AlternateContent>`;
12625
12639
  }(e.glow)), e.reflection && t.push(function(e) {
12626
- const t = Math.round(Math.max(0, e.blurPt) * C), r = Math.round(e.startAlpha * R), n = Math.round(e.startPos * R), o = Math.round(e.endAlpha * R), i = Math.round(e.endPos * R), a = Math.round(Math.max(0, e.distPt) * C);
12640
+ const t = Math.round(Math.max(0, e.blurPt) * A), r = Math.round(e.startAlpha * R), n = Math.round(e.startPos * R), o = Math.round(e.endAlpha * R), i = Math.round(e.endPos * R), a = Math.round(Math.max(0, e.distPt) * A);
12627
12641
  return `<mc:AlternateContent xmlns:mc="${Ti}"><mc:Choice Requires="w14"><w14:reflection w14:blurRad="${t}" w14:stA="${r}" w14:stPos="${n}" w14:endA="${o}" w14:endPos="${i}" w14:dist="${a}" w14:dir="5400000" w14:fadeDir="5400000" w14:sx="100000" w14:sy="-100000" w14:kx="0" w14:ky="0" w14:algn="bl"/></mc:Choice><mc:Fallback/></mc:AlternateContent>`;
12628
12642
  }(e.reflection)), e.scene3dXml && t.push(Ri(e.scene3dXml)), e.props3dXml && t.push(Ri(e.props3dXml)), e.highlight && t.push(`<w:highlight w:val="${ro(function(e) {
12629
12643
  if (e in ki) return e;
@@ -12679,21 +12693,22 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
12679
12693
  function Ui(e) {
12680
12694
  const { cx: t, cy: r, floating: n, docPrId: o, docPrName: i, altAttr: a, graphicXml: s } = e, l = ro(i);
12681
12695
  if (!n) return `<w:drawing><wp:inline distT="0" distB="0" distL="0" distR="0"><wp:extent cx="${t}" cy="${r}"/><wp:effectExtent l="0" t="0" r="0" b="0"/><wp:docPr id="${o}" name="${l}"${a}/>${s}</wp:inline></w:drawing>`;
12682
- const c = n.distT ?? 0, u = n.distB ?? 0, d = n.distL ?? 0, p = n.distR ?? 0, f = Fi("positionH", n.positionH, "column"), h = Fi("positionV", n.positionV, "paragraph"), m = function(e, t) {
12696
+ const c = n.distT ?? 0, u = n.distB ?? 0, d = n.distL ?? 0, p = n.distR ?? 0, f = Fi("positionH", n.positionH, "column"), h = Fi("positionV", n.positionV, "paragraph"), m = function(e, t, r) {
12697
+ const n = t && "bothSides" !== t ? ` wrapText="${t}"` : "";
12683
12698
  switch (e) {
12684
- case "square": return "<wp:wrapSquare wrapText=\"bothSides\"/>";
12699
+ case "square": return `<wp:wrapSquare${n}/>`;
12685
12700
  case "tight": {
12686
- const e = Bi(t);
12687
- return e ? `<wp:wrapTight wrapText="bothSides">${e}</wp:wrapTight>` : "<wp:wrapTight wrapText=\"bothSides\"/>";
12701
+ const e = Bi(r);
12702
+ return e ? `<wp:wrapTight${n}>${e}</wp:wrapTight>` : `<wp:wrapTight${n}/>`;
12688
12703
  }
12689
12704
  case "through": {
12690
- const e = Bi(t);
12691
- return e ? `<wp:wrapThrough wrapText="bothSides">${e}</wp:wrapThrough>` : "<wp:wrapThrough wrapText=\"bothSides\"/>";
12705
+ const e = Bi(r);
12706
+ return e ? `<wp:wrapThrough${n}>${e}</wp:wrapThrough>` : `<wp:wrapThrough${n}/>`;
12692
12707
  }
12693
12708
  case "topAndBottom": return "<wp:wrapTopAndBottom/>";
12694
12709
  default: return "<wp:wrapNone/>";
12695
12710
  }
12696
- }(n.wrap, e.wrapPolygon);
12711
+ }(n.wrap, n.wrapText, e.wrapPolygon);
12697
12712
  return `<w:drawing><wp:anchor distT="${c}" distB="${u}" distL="${d}" distR="${p}" simplePos="${Li(n.simplePos, !1)}" relativeHeight="${n.relativeHeight ?? 0}" behindDoc="${Li(n.behindDoc, !1)}" locked="${Li(n.locked, !1)}" layoutInCell="${Li(n.layoutInCell, !0)}" allowOverlap="${Li(n.allowOverlap, !0)}"><wp:simplePos x="0" y="0"/>${f}${h}<wp:extent cx="${t}" cy="${r}"/><wp:effectExtent l="0" t="0" r="0" b="0"/>${m}<wp:docPr id="${o}" name="${l}"${a}/>${s}</wp:anchor></w:drawing>`;
12698
12713
  }
12699
12714
  function zi(e, t, r, n) {
@@ -12710,9 +12725,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
12710
12725
  if (!e) return "";
12711
12726
  const t = (e) => e ? Math.round(e * R) : 0, r = t(e.left), n = t(e.top), o = t(e.right), i = t(e.bottom);
12712
12727
  return 0 === r && 0 === n && 0 === o && 0 === i ? "" : `<a:srcRect l="${r}" t="${n}" r="${o}" b="${i}"/>`;
12713
- }(o.crop), c = (u = o.border) ? `<a:ln${void 0 !== u.widthPt ? ` w="${Math.round(u.widthPt * C)}"` : ""}><a:solidFill><a:srgbClr val="${ro(u.color.replace(/^#/, ""))}"/></a:solidFill>${u.dash ? `<a:prstDash val="${u.dash}"/>` : ""}</a:ln>` : "";
12728
+ }(o.crop), c = (u = o.border) ? `<a:ln${void 0 !== u.widthPt ? ` w="${Math.round(u.widthPt * A)}"` : ""}><a:solidFill><a:srgbClr val="${ro(u.color.replace(/^#/, ""))}"/></a:solidFill>${u.dash ? `<a:prstDash val="${u.dash}"/>` : ""}</a:ln>` : "";
12714
12729
  var u;
12715
- const d = "tile" === o.fillMode ? "<a:tile/>" : "<a:stretch><a:fillRect/></a:stretch>", p = "linked" === o.kind ? `r:link="${t}"` : `r:embed="${t}"`, f = function(e) {
12730
+ const d = "tile" === o.fillMode ? "<a:tile/>" : "<a:stretch><a:fillRect/></a:stretch>", p = "linked" === o.kind ? `r:link="${t}"` : `r:embed="${t}"`, f = void 0 !== o.transparency && o.transparency > 0 ? `<a:alphaModFix amt="${Math.round((1 - Math.max(0, Math.min(1, o.transparency))) * R)}"/>` : "", h = function(e) {
12716
12731
  if (!e) return "<a:prstGeom prst=\"rect\"><a:avLst/></a:prstGeom>";
12717
12732
  if (e.rawXml && !e.adjustments) return e.rawXml;
12718
12733
  const t = Object.entries(e.adjustments ?? {}).map(([e, t]) => `<a:gd name="${ro(e)}" fmla="val ${Number.isFinite(t) ? t : 0}"/>`).join(""), r = t ? `<a:avLst>${t}</a:avLst>` : "<a:avLst/>";
@@ -12729,13 +12744,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
12729
12744
  graphicXml: n,
12730
12745
  wrapPolygon: e.wrapPolygon
12731
12746
  });
12732
- }(o, i, a, `<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture"><pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"><pic:nvPicPr><pic:cNvPr id="0" name="Picture"${a}/><pic:cNvPicPr/></pic:nvPicPr><pic:blipFill><a:blip ${p} xmlns:r="${eo}"/>${l}${d}</pic:blipFill><pic:spPr><a:xfrm${s}><a:off x="0" y="0"/><a:ext cx="${o.cx}" cy="${o.cy}"/></a:xfrm>${f}${c}</pic:spPr></pic:pic></a:graphicData></a:graphic>`)}</w:r>`;
12747
+ }(o, i, a, `<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture"><pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"><pic:nvPicPr><pic:cNvPr id="0" name="Picture"${a}/><pic:cNvPicPr/></pic:nvPicPr><pic:blipFill><a:blip ${p} xmlns:r="${eo}">${f}</a:blip>${l}${d}</pic:blipFill><pic:spPr><a:xfrm${s}><a:off x="0" y="0"/><a:ext cx="${o.cx}" cy="${o.cy}"/></a:xfrm>${h}${c}</pic:spPr></pic:pic></a:graphicData></a:graphic>`)}</w:r>`;
12733
12748
  }
12734
12749
  function Hi(e, t, r, n, o, i) {
12735
12750
  const a = Math.round(t.width * I), s = Math.round(t.height * I), l = r.textBoxDocPrIds.get(e.id) ?? 1, c = t.name ?? "Text Box", u = void 0 !== t.alt ? ` descr="${ro(t.alt)}" title="${ro(t.alt)}"` : "", d = function(e, t, r, n, o, i) {
12736
12751
  const a = e.shape, s = ro(a?.preset ?? "rect"), l = e.rotation ? Math.round(e.rotation * $) : 0, c = 0 !== l ? ` rot="${l}"` : "", u = a?.fill ? `<a:solidFill><a:srgbClr val="${ro(a.fill.replace(/^#/, ""))}"/></a:solidFill>` : "";
12737
12752
  let d = "";
12738
- (a?.borderColor || void 0 !== a?.borderWidthPt) && (d = `<a:ln${void 0 !== a?.borderWidthPt ? ` w="${Math.round(a.borderWidthPt * C)}"` : ""}>${a?.borderColor ? `<a:solidFill><a:srgbClr val="${ro(a.borderColor.replace(/^#/, ""))}"/></a:solidFill>` : ""}<a:miter lim="800000"/></a:ln>`);
12753
+ (a?.borderColor || void 0 !== a?.borderWidthPt) && (d = `<a:ln${void 0 !== a?.borderWidthPt ? ` w="${Math.round(a.borderWidthPt * A)}"` : ""}>${a?.borderColor ? `<a:solidFill><a:srgbClr val="${ro(a.borderColor.replace(/^#/, ""))}"/></a:solidFill>` : ""}<a:miter lim="800000"/></a:ln>`);
12739
12754
  const p = e.body, f = ["rot=\"0\"", `vert="${ro(p?.vert ?? "horz")}"`];
12740
12755
  f.push(`wrap="${ro(p?.wrap ?? "square")}"`), void 0 !== p?.paddingLeft && f.push(`lIns="${Math.round(p.paddingLeft * I)}"`), void 0 !== p?.paddingTop && f.push(`tIns="${Math.round(p.paddingTop * I)}"`), void 0 !== p?.paddingRight && f.push(`rIns="${Math.round(p.paddingRight * I)}"`), void 0 !== p?.paddingBottom && f.push(`bIns="${Math.round(p.paddingBottom * I)}"`), f.push(`anchor="${ro(p?.anchor ?? "t")}"`), f.push("anchorCtr=\"0\"");
12741
12756
  const h = p?.autoFit ? "<a:spAutoFit/>" : "", m = e.blocks.length > 0, g = m ? i(e.blocks, n, o) : "";
@@ -13272,7 +13287,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
13272
13287
  const i = o.cloneNode(!0);
13273
13288
  return r ? e.replaceChild(i, r) : e.insertBefore(i, e.firstChild), !0;
13274
13289
  }
13275
- function Ca(e, t, r, n) {
13290
+ function Aa(e, t, r, n) {
13276
13291
  const o = Qr(e)?.xml;
13277
13292
  if (!o || n.hasOverrides || n.hasBoundaryTokens || e.dropCap || /\br:(?:id|embed|link)\s*=/.test(o)) return;
13278
13293
  const i = function(e) {
@@ -13305,11 +13320,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
13305
13320
  return new b.XMLSerializer().serializeToString(i);
13306
13321
  }
13307
13322
  }
13308
- function Aa(e, t) {
13323
+ function Ca(e, t) {
13309
13324
  return e.rows.some((e) => e.cells.some((e) => e.blocks.some((e) => function(e, t) {
13310
13325
  switch (e.type) {
13311
13326
  case "paragraph": return Boolean(t.bookmarkEventsByParagraph?.has(e.id) || t.commentEventsByParagraph?.has(e.id));
13312
- case "table": return Aa(e, t);
13327
+ case "table": return Ca(e, t);
13313
13328
  default: return F(e, "block");
13314
13329
  }
13315
13330
  }(e, t))));
@@ -13323,7 +13338,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
13323
13338
  }(e) ? void 0 : function(e, t) {
13324
13339
  const r = sn(e);
13325
13340
  if (r && !t.hasBoundaryTokens && !zr(r.xml)) return r.semanticSignature === Kr(e) ? r.xml : void 0;
13326
- }(e, { hasBoundaryTokens: Aa(e, t) })) ?? fi(e, (e, n) => function(e, t, r, n) {
13341
+ }(e, { hasBoundaryTokens: Ca(e, t) })) ?? fi(e, (e, n) => function(e, t, r, n) {
13327
13342
  return "paragraph" === e.type ? Da(e, r, n, { align: t.style?.horizontalAlign }) : Ra(e, r, n);
13328
13343
  }(e, n, t, r)));
13329
13344
  default: return F(e, "block");
@@ -13409,7 +13424,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
13409
13424
  return !n || ba(n.xml) ? t : r || e.list || n.semanticSignature !== Yr(e) ? Ea(n.xml, t) : n.xml;
13410
13425
  }(e, Ni(e, t.numberingInfo, r, n), Boolean(n));
13411
13426
  if (d) {
13412
- const t = Ca(e, g, d, {
13427
+ const t = Aa(e, g, d, {
13413
13428
  hasOverrides: Boolean(n),
13414
13429
  hasBoundaryTokens: !1
13415
13430
  });
@@ -13613,7 +13628,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
13613
13628
  o && r.push(o);
13614
13629
  const i = ja(t.tableStyle);
13615
13630
  i && r.push(i);
13616
- const a = t.rowStyle ? Co(t.rowStyle) : "";
13631
+ const a = t.rowStyle ? Ao(t.rowStyle) : "";
13617
13632
  a && r.push(a);
13618
13633
  const s = za(t);
13619
13634
  return s && r.push(s), 0 === r.length ? "" : `<w:tblStylePr w:type="${ro(e)}">${r.join("")}</w:tblStylePr>`;
@@ -14098,6 +14113,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
14098
14113
  rotation: t.image.rotation,
14099
14114
  flipH: t.image.flipH,
14100
14115
  flipV: t.image.flipV,
14116
+ transparency: t.image.transparency,
14101
14117
  floating: t.image.floating,
14102
14118
  wrapPolygon: t.image.wrapPolygon
14103
14119
  };
@@ -14304,8 +14320,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
14304
14320
  };
14305
14321
  }(0, c, 0, 0, (t) => gs(t, r, n, e), e.styles, u) : null;
14306
14322
  T && k.push(...T.partContext.images);
14307
- const I = k.filter((e) => "embedded" === e.kind).map((e) => e.target.split(".").pop()?.toLowerCase()).filter((e) => Boolean(e)), C = null != e.styles && Object.keys(e.styles).length > 0, A = (e.fontTable?.length ?? 0) > 0, R = void 0 !== e.design;
14308
- t.file("[Content_Types].xml", Ga(E, I, N, b, l, d, C, g, A, R)), t.file("_rels/.rels", `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="${Jn}"><Relationship Id="rId1" Type="${eo}/officeDocument" Target="word/document.xml"/></Relationships>`), t.file("word/document.xml", is(e, m, v)), C && t.file("word/styles.xml", function(e) {
14323
+ const I = k.filter((e) => "embedded" === e.kind).map((e) => e.target.split(".").pop()?.toLowerCase()).filter((e) => Boolean(e)), A = null != e.styles && Object.keys(e.styles).length > 0, C = (e.fontTable?.length ?? 0) > 0, R = void 0 !== e.design;
14324
+ t.file("[Content_Types].xml", Ga(E, I, N, b, l, d, A, g, C, R)), t.file("_rels/.rels", `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="${Jn}"><Relationship Id="rId1" Type="${eo}/officeDocument" Target="word/document.xml"/></Relationships>`), t.file("word/document.xml", is(e, m, v)), A && t.file("word/styles.xml", function(e) {
14309
14325
  const t = Object.values(e).map(Wa).join("");
14310
14326
  return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:styles xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="${to}">${t}</w:styles>`;
14311
14327
  }(e.styles)), E && t.file("word/numbering.xml", function(e) {
@@ -14314,7 +14330,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
14314
14330
  return `<w:lvl w:ilvl="${t}"><w:start w:val="${f}"/><w:numFmt w:val="${ro(d)}"/>${b}${v}<w:lvlText w:val="${ro(p)}"/><w:lvlJc w:val="${a ?? "left"}"/>${g}${w}${m}</w:lvl>`;
14315
14331
  }).join("")}</w:abstractNum>`).join(""), r = e.map(({ abstractNumId: e, numId: t }) => `<w:num w:numId="${t}"><w:abstractNumId w:val="${e}"/></w:num>`).join("");
14316
14332
  return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:numbering xmlns:w="${Kn}">${t}${r}</w:numbering>`;
14317
- }(r.definitions)), (C || E || N || m.images.length > 0 || m.hyperlinks.length > 0 || b.length > 0 || l || d || g || A || R) && t.file("word/_rels/document.xml.rels", function(e, t, r, n, o, i, a, s, l, c, u = !1) {
14333
+ }(r.definitions)), (A || E || N || m.images.length > 0 || m.hyperlinks.length > 0 || b.length > 0 || l || d || g || C || R) && t.file("word/_rels/document.xml.rels", function(e, t, r, n, o, i, a, s, l, c, u = !1) {
14318
14334
  let d = "";
14319
14335
  s && (d += `<Relationship Id="rIdStyles" Type="${eo}/styles" Target="styles.xml"/>`), e && (d += `<Relationship Id="rIdNum" Type="${eo}/numbering" Target="numbering.xml"/>`), t && (d += `<Relationship Id="rIdSettings" Type="${eo}/settings" Target="settings.xml"/>`);
14320
14336
  for (const p of n) d += `<Relationship Id="${p.rId}" Type="${eo}/hyperlink" Target="${ro(p.href)}" TargetMode="External"/>`;
@@ -14327,7 +14343,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
14327
14343
  d += `<Relationship Id="${p.relId}" Type="${eo}/${e}" Target="${p.path}"/>`;
14328
14344
  }
14329
14345
  return i && (d += `<Relationship Id="rIdFootnotes" Type="${eo}/footnotes" Target="footnotes.xml"/>`), a && (d += `<Relationship Id="rIdEndnotes" Type="${eo}/endnotes" Target="endnotes.xml"/>`), l && (d += `<Relationship Id="rIdComments" Type="${eo}/comments" Target="comments.xml"/>`, d += "<Relationship Id=\"rIdCommentsExtended\" Type=\"http://schemas.microsoft.com/office/2011/relationships/commentsExtended\" Target=\"commentsExtended.xml\"/>"), c && (d += `<Relationship Id="rIdFontTable" Type="${eo}/fontTable" Target="fontTable.xml"/>`), u && (d += `<Relationship Id="rIdTheme" Type="${eo}/theme" Target="theme/theme1.xml"/>`), `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="${Jn}">${d}</Relationships>`;
14330
- }(E, N, m.images, m.hyperlinks, b, l, d, C, g, A, R)), A && t.file("word/fontTable.xml", function(e) {
14346
+ }(E, N, m.images, m.hyperlinks, b, l, d, A, g, C, R)), C && t.file("word/fontTable.xml", function(e) {
14331
14347
  const t = e.map((e) => {
14332
14348
  const t = [];
14333
14349
  if (e.altName && t.push(`<w:altName w:val="${ro(e.altName)}"/>`), e.panose1 && t.push(`<w:panose1 w:val="${ro(e.panose1)}"/>`), e.charset && t.push(`<w:charset w:val="${ro(e.charset)}"/>`), e.family && t.push(`<w:family w:val="${ro(e.family)}"/>`), e.pitch && t.push(`<w:pitch w:val="${ro(e.pitch)}"/>`), e.sig) {
@@ -14507,16 +14523,16 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
14507
14523
  const t = e.lastIndexOf("/"), r = t >= 0 ? e.slice(0, t) : "", n = t >= 0 ? e.slice(t + 1) : e;
14508
14524
  return r ? `${r}/_rels/${n}.rels` : `_rels/${n}.rels`;
14509
14525
  }
14510
- function Cs(e, t, r) {
14526
+ function As(e, t, r) {
14511
14527
  "base64" === r.encoding ? e.file(t, r.data, { base64: !0 }) : e.file(t, r.data);
14512
14528
  }
14513
- function As(e) {
14529
+ function Cs(e) {
14514
14530
  return `word/__oasis_source__/${e}`;
14515
14531
  }
14516
14532
  function Rs(e) {
14517
14533
  return e ? e.map((e) => "External" !== e.targetMode && e.resolvedTarget ? {
14518
14534
  ...e,
14519
- target: `/${As(e.resolvedTarget)}`,
14535
+ target: `/${Cs(e.resolvedTarget)}`,
14520
14536
  resolvedTarget: void 0
14521
14537
  } : e) : [];
14522
14538
  }
@@ -14533,24 +14549,24 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
14533
14549
  }));
14534
14550
  }(t)) return e;
14535
14551
  const r = new w.default();
14536
- for (const i of Object.values(t.parts)) Cs(r, i.path, i);
14552
+ for (const i of Object.values(t.parts)) As(r, i.path, i);
14537
14553
  for (const i of Object.values(t.parts)) {
14538
14554
  if (i.path.endsWith(".rels") || "[Content_Types].xml" === i.path) continue;
14539
- const e = As(i.path);
14540
- Cs(r, e, i);
14555
+ const e = Cs(i.path);
14556
+ As(r, e, i);
14541
14557
  const t = Rs(i.relationships);
14542
14558
  t.length > 0 && r.file(Is(e), Yn(t));
14543
14559
  }
14544
14560
  const n = t.parts[t.mainDocumentPart];
14545
14561
  if (!n) throw new Error(`DOCX source package is missing its main part: ${t.mainDocumentPart}`);
14546
- Cs(r, _s, n);
14562
+ As(r, _s, n);
14547
14563
  const o = Rs(n.relationships);
14548
14564
  o.length > 0 && r.file(Is(_s), Yn(o));
14549
14565
  for (const i of n.relationships ?? []) {
14550
14566
  if ("External" === i.targetMode || !i.resolvedTarget) continue;
14551
14567
  const e = $s(i), n = t.parts[i.resolvedTarget];
14552
14568
  if (!e || !n) continue;
14553
- Cs(r, e, n);
14569
+ As(r, e, n);
14554
14570
  const o = Rs(n.relationships);
14555
14571
  o.length > 0 && r.file(Is(e), Yn(o));
14556
14572
  }