oasis-editor 0.0.387 → 0.0.389
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/OasisEditorApp-Bc3zkEoL.js +1 -0
- package/dist/assets/{importDocxWorker-pLxNACCd.js → importDocxWorker-B2yYqBCl.js} +361 -361
- package/dist/core/commands/builtinCommands.d.ts +1 -1
- package/dist/core/commands/publicCommandTypes.d.ts +2 -0
- package/dist/defaultToolbar-BuCckV9m.js +1 -0
- package/dist/i18n/locales/en.d.ts +4 -0
- package/dist/i18n/locales/pt-BR.d.ts +4 -0
- package/dist/layoutProjection/bodyFieldCacheRefresh.d.ts +18 -0
- package/dist/layoutProjection/documentLayout.d.ts +2 -0
- package/dist/layoutProjection/fieldResultProjection.d.ts +10 -1
- package/dist/layoutProjection/paragraphPagination.d.ts +2 -0
- package/dist/layoutProjection/sectionPagination.d.ts +1 -0
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/plugins/internal/essentialsCapabilities.d.ts +4 -0
- package/dist/{sourcePackage-Dyc-Bhoh.js → sourcePackage-BU2XiRyT.js} +1 -1
- package/package.json +1 -1
- package/dist/OasisEditorApp-5pTPGmIi.js +0 -1
- package/dist/defaultToolbar--gLizR9z.js +0 -1
|
@@ -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, S, E, N, k, T, _, I, C, A, R, D, $, P,
|
|
2202
|
+
var r, u, d, p, f, h, m, g, w, y, x, S, E, N, k, T, _, I, C, A, R, D, $, P, O = 0, F = new n.Buf8(4), M = [
|
|
2203
2203
|
16,
|
|
2204
2204
|
17,
|
|
2205
2205
|
18,
|
|
@@ -2233,7 +2233,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2233
2233
|
h--, g += u[p++] << w, w += 8;
|
|
2234
2234
|
}
|
|
2235
2235
|
if (2 & r.wrap && 35615 === g) {
|
|
2236
|
-
|
|
2236
|
+
F[r.check = 0] = 255 & g, F[1] = g >>> 8 & 255, r.check = i(r.check, F, 2, 0), w = g = 0, r.mode = 2;
|
|
2237
2237
|
break;
|
|
2238
2238
|
}
|
|
2239
2239
|
if (r.flags = 0, r.head && (r.head.done = !1), !(1 & r.wrap) || (((255 & g) << 8) + (g >> 8)) % 31) {
|
|
@@ -2264,26 +2264,26 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2264
2264
|
e.msg = "unknown header flags set", r.mode = 30;
|
|
2265
2265
|
break;
|
|
2266
2266
|
}
|
|
2267
|
-
r.head && (r.head.text = g >> 8 & 1), 512 & r.flags && (
|
|
2267
|
+
r.head && (r.head.text = g >> 8 & 1), 512 & r.flags && (F[0] = 255 & g, F[1] = g >>> 8 & 255, r.check = i(r.check, F, 2, 0)), w = g = 0, r.mode = 3;
|
|
2268
2268
|
case 3:
|
|
2269
2269
|
for (; w < 32;) {
|
|
2270
2270
|
if (0 === h) break e;
|
|
2271
2271
|
h--, g += u[p++] << w, w += 8;
|
|
2272
2272
|
}
|
|
2273
|
-
r.head && (r.head.time = g), 512 & r.flags && (
|
|
2273
|
+
r.head && (r.head.time = g), 512 & r.flags && (F[0] = 255 & g, F[1] = g >>> 8 & 255, F[2] = g >>> 16 & 255, F[3] = g >>> 24 & 255, r.check = i(r.check, F, 4, 0)), w = g = 0, r.mode = 4;
|
|
2274
2274
|
case 4:
|
|
2275
2275
|
for (; w < 16;) {
|
|
2276
2276
|
if (0 === h) break e;
|
|
2277
2277
|
h--, g += u[p++] << w, w += 8;
|
|
2278
2278
|
}
|
|
2279
|
-
r.head && (r.head.xflags = 255 & g, r.head.os = g >> 8), 512 & r.flags && (
|
|
2279
|
+
r.head && (r.head.xflags = 255 & g, r.head.os = g >> 8), 512 & r.flags && (F[0] = 255 & g, F[1] = g >>> 8 & 255, r.check = i(r.check, F, 2, 0)), w = g = 0, r.mode = 5;
|
|
2280
2280
|
case 5:
|
|
2281
2281
|
if (1024 & r.flags) {
|
|
2282
2282
|
for (; w < 16;) {
|
|
2283
2283
|
if (0 === h) break e;
|
|
2284
2284
|
h--, g += u[p++] << w, w += 8;
|
|
2285
2285
|
}
|
|
2286
|
-
r.length = g, r.head && (r.head.extra_len = g), 512 & r.flags && (
|
|
2286
|
+
r.length = g, r.head && (r.head.extra_len = g), 512 & r.flags && (F[0] = 255 & g, F[1] = g >>> 8 & 255, r.check = i(r.check, F, 2, 0)), w = g = 0;
|
|
2287
2287
|
} else r.head && (r.head.extra = null);
|
|
2288
2288
|
r.mode = 6;
|
|
2289
2289
|
case 6:
|
|
@@ -2396,7 +2396,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2396
2396
|
r.have = 0, r.mode = 19;
|
|
2397
2397
|
case 19:
|
|
2398
2398
|
for (; r.have < r.nlen + r.ndist;) {
|
|
2399
|
-
for (; T = (
|
|
2399
|
+
for (; T = (O = r.lencode[g & (1 << r.lenbits) - 1]) >>> 16 & 255, _ = 65535 & O, !((k = O >>> 24) <= w);) {
|
|
2400
2400
|
if (0 === h) break e;
|
|
2401
2401
|
h--, g += u[p++] << w, w += 8;
|
|
2402
2402
|
}
|
|
@@ -2452,12 +2452,12 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2452
2452
|
e.next_out = f, e.avail_out = m, e.next_in = p, e.avail_in = h, r.hold = g, r.bits = w, a(e, x), f = e.next_out, d = e.output, m = e.avail_out, p = e.next_in, u = e.input, h = e.avail_in, g = r.hold, w = r.bits, 12 === r.mode && (r.back = -1);
|
|
2453
2453
|
break;
|
|
2454
2454
|
}
|
|
2455
|
-
for (r.back = 0; T = (
|
|
2455
|
+
for (r.back = 0; T = (O = r.lencode[g & (1 << r.lenbits) - 1]) >>> 16 & 255, _ = 65535 & O, !((k = O >>> 24) <= w);) {
|
|
2456
2456
|
if (0 === h) break e;
|
|
2457
2457
|
h--, g += u[p++] << w, w += 8;
|
|
2458
2458
|
}
|
|
2459
2459
|
if (T && !(240 & T)) {
|
|
2460
|
-
for (I = k, C = T, A = _; T = (
|
|
2460
|
+
for (I = k, C = T, A = _; T = (O = r.lencode[A + ((g & (1 << I + C) - 1) >> I)]) >>> 16 & 255, _ = 65535 & O, !(I + (k = O >>> 24) <= w);) {
|
|
2461
2461
|
if (0 === h) break e;
|
|
2462
2462
|
h--, g += u[p++] << w, w += 8;
|
|
2463
2463
|
}
|
|
@@ -2486,12 +2486,12 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2486
2486
|
}
|
|
2487
2487
|
r.was = r.length, r.mode = 23;
|
|
2488
2488
|
case 23:
|
|
2489
|
-
for (; T = (
|
|
2489
|
+
for (; T = (O = r.distcode[g & (1 << r.distbits) - 1]) >>> 16 & 255, _ = 65535 & O, !((k = O >>> 24) <= w);) {
|
|
2490
2490
|
if (0 === h) break e;
|
|
2491
2491
|
h--, g += u[p++] << w, w += 8;
|
|
2492
2492
|
}
|
|
2493
2493
|
if (!(240 & T)) {
|
|
2494
|
-
for (I = k, C = T, A = _; T = (
|
|
2494
|
+
for (I = k, C = T, A = _; T = (O = r.distcode[A + ((g & (1 << I + C) - 1) >> I)]) >>> 16 & 255, _ = 65535 & O, !(I + (k = O >>> 24) <= w);) {
|
|
2495
2495
|
if (0 === h) break e;
|
|
2496
2496
|
h--, g += u[p++] << w, w += 8;
|
|
2497
2497
|
}
|
|
@@ -2719,26 +2719,26 @@ 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, S = p.bits, E = 0, N = 0, k = 0, T = 0, _ = 0, I = 0, C = 0, A = 0, R = 0, D = 0, $ = null, P = 0,
|
|
2723
|
-
for (E = 0; E <= 15; E++)
|
|
2724
|
-
for (N = 0; N < l; N++)
|
|
2725
|
-
for (_ = S, T = 15; 1 <= T && 0 ===
|
|
2722
|
+
var f, h, m, g, w, b, v, y, x, S = p.bits, E = 0, N = 0, k = 0, T = 0, _ = 0, I = 0, C = 0, A = 0, R = 0, D = 0, $ = null, P = 0, O = new n.Buf16(16), F = new n.Buf16(16), M = null, L = 0;
|
|
2723
|
+
for (E = 0; E <= 15; E++) O[E] = 0;
|
|
2724
|
+
for (N = 0; N < l; N++) O[t[r + N]]++;
|
|
2725
|
+
for (_ = S, T = 15; 1 <= T && 0 === O[T]; T--);
|
|
2726
2726
|
if (T < _ && (_ = T), 0 === T) return c[u++] = 20971520, c[u++] = 20971520, p.bits = 1, 0;
|
|
2727
|
-
for (k = 1; k < T && 0 ===
|
|
2728
|
-
for (_ < k && (_ = k), E = A = 1; E <= 15; E++) if (A <<= 1, (A -=
|
|
2727
|
+
for (k = 1; k < T && 0 === O[k]; k++);
|
|
2728
|
+
for (_ < k && (_ = k), E = A = 1; E <= 15; E++) if (A <<= 1, (A -= O[E]) < 0) return -1;
|
|
2729
2729
|
if (0 < A && (0 === e || 1 !== T)) return -1;
|
|
2730
|
-
for (
|
|
2731
|
-
for (N = 0; N < l; N++) 0 !== t[r + N] && (d[
|
|
2730
|
+
for (F[1] = 0, E = 1; E < 15; E++) F[E + 1] = F[E] + O[E];
|
|
2731
|
+
for (N = 0; N < l; N++) 0 !== t[r + N] && (d[F[t[r + N]]++] = N);
|
|
2732
2732
|
if (b = 0 === e ? ($ = M = d, 19) : 1 === e ? ($ = o, P -= 257, M = i, L -= 257, 256) : ($ = a, M = s, -1), E = k, w = u, C = N = D = 0, m = -1, g = (R = 1 << (I = _)) - 1, 1 === e && 852 < R || 2 === e && 592 < R) return 1;
|
|
2733
2733
|
for (;;) {
|
|
2734
2734
|
for (v = E - C, x = d[N] < b ? (y = 0, d[N]) : d[N] > b ? (y = M[L + d[N]], $[P + d[N]]) : (y = 96, 0), f = 1 << E - C, k = h = 1 << I; c[w + (D >> C) + (h -= f)] = v << 24 | y << 16 | x, 0 !== h;);
|
|
2735
2735
|
for (f = 1 << E - 1; D & f;) f >>= 1;
|
|
2736
|
-
if (0 !== f ? (D &= f - 1, D += f) : D = 0, N++, 0 == --
|
|
2736
|
+
if (0 !== f ? (D &= f - 1, D += f) : D = 0, N++, 0 == --O[E]) {
|
|
2737
2737
|
if (E === T) break;
|
|
2738
2738
|
E = t[r + d[N]];
|
|
2739
2739
|
}
|
|
2740
2740
|
if (_ < E && (D & g) !== m) {
|
|
2741
|
-
for (0 === C && (C = _), w += k, A = 1 << (I = E - C); I + C < T && !((A -=
|
|
2741
|
+
for (0 === C && (C = _), w += k, A = 1 << (I = E - C); I + C < T && !((A -= O[I + C]) <= 0);) I++, A <<= 1;
|
|
2742
2742
|
if (R += 1 << I, 1 === e && 852 < R || 2 === e && 592 < R) return 1;
|
|
2743
2743
|
c[m = D & g] = _ << 24 | I << 16 | w - u;
|
|
2744
2744
|
}
|
|
@@ -2930,7 +2930,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2930
2930
|
if (0 !== e.last_lit) for (; n = e.pending_buf[e.d_buf + 2 * l] << 8 | e.pending_buf[e.d_buf + 2 * l + 1], o = e.pending_buf[e.l_buf + l], l++, 0 === n ? _(e, o, t) : (_(e, (a = g[o]) + i + 1, t), 0 !== (s = c[a]) && T(e, o -= w[a], s), _(e, a = N(--n), r), 0 !== (s = u[a]) && T(e, n -= x[a], s)), l < e.last_lit;);
|
|
2931
2931
|
_(e, 256, t);
|
|
2932
2932
|
}
|
|
2933
|
-
function
|
|
2933
|
+
function O(e, t) {
|
|
2934
2934
|
var r, n, o, i = t.dyn_tree, a = t.stat_desc.static_tree, s = t.stat_desc.has_stree, c = t.stat_desc.elems, u = -1;
|
|
2935
2935
|
for (e.heap_len = 0, e.heap_max = 573, r = 0; r < c; r++) 0 !== i[2 * r] ? (e.heap[++e.heap_len] = u = r, e.depth[r] = 0) : i[2 * r + 1] = 0;
|
|
2936
2936
|
for (; e.heap_len < 2;) i[2 * (o = e.heap[++e.heap_len] = u < 2 ? ++u : 0)] = 1, e.depth[o] = 0, e.opt_len--, s && (e.static_len -= a[2 * o + 1]);
|
|
@@ -2949,7 +2949,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2949
2949
|
}
|
|
2950
2950
|
}(e, t), C(i, u, e.bl_count);
|
|
2951
2951
|
}
|
|
2952
|
-
function
|
|
2952
|
+
function F(e, t, r) {
|
|
2953
2953
|
var n, o, i = -1, a = t[1], s = 0, l = 7, c = 4;
|
|
2954
2954
|
for (0 === a && (l = 138, c = 3), t[2 * (r + 1) + 1] = 65535, n = 0; n <= r; n++) o = a, a = t[2 * (n + 1) + 1], ++s < l && o === a || (s < c ? e.bl_tree[2 * o] += s : 0 !== o ? (o !== i && e.bl_tree[2 * o]++, e.bl_tree[32]++) : s <= 10 ? e.bl_tree[34]++ : e.bl_tree[36]++, i = o, c = (s = 0) === a ? (l = 138, 3) : o === a ? (l = 6, 3) : (l = 7, 4));
|
|
2955
2955
|
}
|
|
@@ -2990,9 +2990,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2990
2990
|
if (0 !== e.dyn_ltree[18] || 0 !== e.dyn_ltree[20] || 0 !== e.dyn_ltree[26]) return 1;
|
|
2991
2991
|
for (t = 32; t < i; t++) if (0 !== e.dyn_ltree[2 * t]) return 1;
|
|
2992
2992
|
return 0;
|
|
2993
|
-
}(e)),
|
|
2993
|
+
}(e)), O(e, e.l_desc), O(e, e.d_desc), s = function(e) {
|
|
2994
2994
|
var t;
|
|
2995
|
-
for (
|
|
2995
|
+
for (F(e, e.dyn_ltree, e.l_desc.max_code), F(e, e.dyn_dtree, e.d_desc.max_code), O(e, e.bl_desc), t = 18; 3 <= t && 0 === e.bl_tree[2 * p[t] + 1]; t--);
|
|
2996
2996
|
return e.opt_len += 3 * (t + 1) + 5 + 5 + 4, t;
|
|
2997
2997
|
}(e), o = e.opt_len + 3 + 7 >>> 3, (a = e.static_len + 3 + 7 >>> 3) <= o && (o = a)) : o = a = r + 5, r + 4 <= o && -1 !== t ? B(e, t, r, n) : 4 === e.strategy || a === o ? (T(e, 2 + (n ? 1 : 0), 3), P(e, f, h)) : (T(e, 4 + (n ? 1 : 0), 3), function(e, t, r, n) {
|
|
2998
2998
|
var o;
|
|
@@ -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), "*", "'"), S = i(o(f, ":"), o(h, ":"), "*"), E = i("^", S, "$"), N = i(S, a(":", S), "?"), k = i("^", N, "$"), T = i("(", N, ")"), _ = a(/"[^"]*"|'[^']*'/), I = i(/^<\?/, "(", m, ")", a(d, "(?!", c, ")(", s, "*?)"), "?", /\?>/), C = /[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/, A = a("\"", C, "*\"", "|", "'", o(C, "'"), "*'"), R = "<!--", D = i(R, a(o(s, "-"), "|", i("-", o(s, "-"))), "*", "-->"), $ = "#PCDATA", P = a("EMPTY", "|", "ANY", "|", a(i(/\(/, p, $, a(p, /\|/, p, N), "*", p, /\)\*/), "|", i(/\(/, p, $, p, /\)/)), "|", i(/\([^>]+\)/, /[?*+]?/)),
|
|
3329
|
-
e.chars = n, e.chars_without = o, e.detectUnicodeSupport = t, e.reg = i, e.regg = a, e.ABOUT_LEGACY_COMPAT = M, e.ABOUT_LEGACY_COMPAT_SystemLiteral = L, e.AttlistDecl =
|
|
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), "*", "'"), S = i(o(f, ":"), o(h, ":"), "*"), E = i("^", S, "$"), N = i(S, a(":", S), "?"), k = i("^", N, "$"), T = i("(", N, ")"), _ = a(/"[^"]*"|'[^']*'/), I = i(/^<\?/, "(", m, ")", a(d, "(?!", c, ")(", s, "*?)"), "?", /\?>/), C = /[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/, A = a("\"", C, "*\"", "|", "'", o(C, "'"), "*'"), R = "<!--", D = i(R, a(o(s, "-"), "|", i("-", o(s, "-"))), "*", "-->"), $ = "#PCDATA", P = a("EMPTY", "|", "ANY", "|", a(i(/\(/, p, $, a(p, /\|/, p, N), "*", p, /\)\*/), "|", i(/\(/, p, $, p, /\)/)), "|", i(/\([^>]+\)/, /[?*+]?/)), O = i("<!ELEMENT", d, a(N, "|", v), d, a(P, "|", v), p, ">"), F = 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, ">"), M = "about:legacy-compat", L = a("\"" + M + "\"", "|", "'" + M + "'"), B = "SYSTEM", U = "PUBLIC", z = a(a(B, d, _), "|", a(U, d, A, d, _)), H = i("^", a(a(B, d, "(?<SystemLiteralOnly>", _, ")"), "|", a(U, d, "(?<PubidLiteral>", A, ")", d, "(?<SystemLiteral>", _, ")"))), j = i("^", A, "$"), q = i("^", _, "$"), W = a(y, "|", a(z, a(d, "NDATA", d, m), "?")), X = "<!ENTITY", G = a(i(X, d, m, d, W, p, ">"), "|", i(X, d, "%", d, m, d, a(y, "|", z), p, ">")), V = 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 = M, e.ABOUT_LEGACY_COMPAT_SystemLiteral = L, e.AttlistDecl = F, e.CDATA_START = "<![CDATA[", e.CDATA_END = "]]>", e.CDSect = ee, e.Char = s, e.Comment = D, e.COMMENT_START = R, e.COMMENT_END = "-->", e.DOCTYPE_DECL_START = "<!DOCTYPE", e.elementdecl = O, e.EntityDecl = G, e.EntityValue = y, e.ExternalID = z, e.ExternalID_match = H, e.Name = m, e.Name_exact = g, e.NCName_exact = E, e.NotationDecl = V, 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 = T, e.S = d, e.SChar_s = u, e.S_OPT = p, e.SYSTEM = B, e.SystemLiteral = _, 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 = {}, _ = T.ELEMENT_NODE = 1, I = T.ATTRIBUTE_NODE = 2, C = T.TEXT_NODE = 3, A = T.CDATA_SECTION_NODE = 4, R = T.ENTITY_REFERENCE_NODE = 5, D = T.ENTITY_NODE = 6, $ = T.PROCESSING_INSTRUCTION_NODE = 7, P = T.COMMENT_NODE = 8,
|
|
3379
|
+
var T = {}, _ = T.ELEMENT_NODE = 1, I = T.ATTRIBUTE_NODE = 2, C = T.TEXT_NODE = 3, A = T.CDATA_SECTION_NODE = 4, R = T.ENTITY_REFERENCE_NODE = 5, D = T.ENTITY_NODE = 6, $ = T.PROCESSING_INSTRUCTION_NODE = 7, P = T.COMMENT_NODE = 8, O = T.DOCUMENT_NODE = 9, F = T.DOCUMENT_TYPE_NODE = 10, M = T.DOCUMENT_FRAGMENT_NODE = 11, L = T.NOTATION_NODE = 12, B = t.freeze({
|
|
3380
3380
|
DOCUMENT_POSITION_DISCONNECTED: 1,
|
|
3381
3381
|
DOCUMENT_POSITION_PRECEDING: 2,
|
|
3382
3382
|
DOCUMENT_POSITION_FOLLOWING: 4,
|
|
@@ -3634,7 +3634,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
3634
3634
|
splitCDATASections: !0,
|
|
3635
3635
|
nodeFilter: null
|
|
3636
3636
|
};
|
|
3637
|
-
var r = [], n = this.nodeType ===
|
|
3637
|
+
var r = [], n = this.nodeType === O && this.documentElement || this, o = n.prefix, i = n.namespaceURI;
|
|
3638
3638
|
if (i && null == o && null == (o = n.lookupPrefix(i))) var a = [{
|
|
3639
3639
|
namespace: i,
|
|
3640
3640
|
prefix: null
|
|
@@ -3657,7 +3657,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
3657
3657
|
}
|
|
3658
3658
|
function Ae(e, t, r, n) {
|
|
3659
3659
|
r || (r = []);
|
|
3660
|
-
var o = n.nodeFilter, i = n.requireWellFormed, l = n.splitCDATASections, c = "html" === (e.nodeType ===
|
|
3660
|
+
var o = n.nodeFilter, i = n.requireWellFormed, l = n.splitCDATASections, c = "html" === (e.nodeType === O ? e : e.ownerDocument).type;
|
|
3661
3661
|
ee(e, { ns: r }, {
|
|
3662
3662
|
enter: function(e, r) {
|
|
3663
3663
|
var u = r.ns;
|
|
@@ -3726,9 +3726,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
3726
3726
|
ns: E,
|
|
3727
3727
|
tag: b
|
|
3728
3728
|
};
|
|
3729
|
-
case
|
|
3729
|
+
case O:
|
|
3730
3730
|
case M:
|
|
3731
|
-
if (i && e.nodeType ===
|
|
3731
|
+
if (i && e.nodeType === O && null == e.documentElement) throw new m("The Document has no documentElement", g.InvalidStateError);
|
|
3732
3732
|
return { ns: u };
|
|
3733
3733
|
case I: return Ce(t, e.name, e.value, i), null;
|
|
3734
3734
|
case C:
|
|
@@ -3743,7 +3743,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
3743
3743
|
if (-1 !== e.data.indexOf("--") || "-" === e.data[e.data.length - 1]) throw new m("The comment node data contains \"--\" or ends with \"-\"", g.InvalidStateError);
|
|
3744
3744
|
}
|
|
3745
3745
|
return t.push(w.COMMENT_START, e.data, w.COMMENT_END), null;
|
|
3746
|
-
case
|
|
3746
|
+
case F:
|
|
3747
3747
|
var H = e.publicId, j = e.systemId;
|
|
3748
3748
|
if (i) {
|
|
3749
3749
|
if (!w.Name_exact.test(e.name)) throw new m("The doctype name \"" + e.name + "\" is not a valid XML Name", g.InvalidStateError);
|
|
@@ -4106,7 +4106,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
4106
4106
|
}, N(T, Q), N(T, Q.prototype), N(B, Q), N(B, Q.prototype), ee.STOP = Symbol("walkDOM.STOP"), ee.ENTER = 0, ee.EXIT = 1, te.prototype = {
|
|
4107
4107
|
implementation: null,
|
|
4108
4108
|
nodeName: "#document",
|
|
4109
|
-
nodeType:
|
|
4109
|
+
nodeType: O,
|
|
4110
4110
|
doctype: null,
|
|
4111
4111
|
documentElement: null,
|
|
4112
4112
|
_inc: 1,
|
|
@@ -4270,7 +4270,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
4270
4270
|
});
|
|
4271
4271
|
},
|
|
4272
4272
|
getElementsByTagName: function(e) {
|
|
4273
|
-
var t = "html" === (this.nodeType ===
|
|
4273
|
+
var t = "html" === (this.nodeType === O ? this : this.ownerDocument).type, r = e.toLowerCase();
|
|
4274
4274
|
return new j(this, function(n) {
|
|
4275
4275
|
var o = [];
|
|
4276
4276
|
return J(n, function(i) {
|
|
@@ -4318,7 +4318,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
4318
4318
|
}, k(be, ge), ve.prototype = {
|
|
4319
4319
|
nodeName: "#cdata-section",
|
|
4320
4320
|
nodeType: A
|
|
4321
|
-
}, k(ve, we), ye.prototype.nodeType =
|
|
4321
|
+
}, k(ve, we), ye.prototype.nodeType = F, k(ye, Q), xe.prototype.nodeType = L, k(xe, Q), Se.prototype.nodeType = D, k(Se, Q), Ee.prototype.nodeType = R, k(Ee, Q), Ne.prototype.nodeName = "#document-fragment", Ne.prototype.nodeType = M, k(Ne, Q), ke.prototype.nodeType = $, k(ke, ge), Te.prototype.serializeToString = function(e, t) {
|
|
4322
4322
|
return _e.call(e, t);
|
|
4323
4323
|
}, Q.prototype.toString = _e;
|
|
4324
4324
|
try {
|
|
@@ -6561,38 +6561,38 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
6561
6561
|
}
|
|
6562
6562
|
switch (e.charAt(R + 1)) {
|
|
6563
6563
|
case "/":
|
|
6564
|
-
var
|
|
6565
|
-
if (!
|
|
6566
|
-
var M = r.reg("^", r.QName_group, r.S_OPT, "$"), L =
|
|
6564
|
+
var O = e.indexOf(">", R + 2), F = e.substring(R + 2, O > 0 ? O : void 0);
|
|
6565
|
+
if (!F) return l.fatalError("end tag name missing");
|
|
6566
|
+
var M = r.reg("^", r.QName_group, r.S_OPT, "$"), L = O > 0 && M.exec(F);
|
|
6567
6567
|
if (!L) {
|
|
6568
|
-
var B =
|
|
6569
|
-
if (c && B) l.warning("end tag name contains invalid trailing characters: \"" +
|
|
6568
|
+
var B = O > 0 && r.reg("^", r.QName_group).exec(F);
|
|
6569
|
+
if (c && B) l.warning("end tag name contains invalid trailing characters: \"" + F + "\""), L = B;
|
|
6570
6570
|
else {
|
|
6571
|
-
if (!B || !new RegExp(M.source, M.flags + "m").test(
|
|
6572
|
-
l.error("end tag name is followed by a line break and trailing content: \"" +
|
|
6571
|
+
if (!B || !new RegExp(M.source, M.flags + "m").test(F)) return l.fatalError("end tag name contains invalid characters: \"" + F + "\"");
|
|
6572
|
+
l.error("end tag name is followed by a line break and trailing content: \"" + F + "\""), L = B;
|
|
6573
6573
|
}
|
|
6574
6574
|
}
|
|
6575
6575
|
if (!a.currentElement && !a.doc.documentElement) return;
|
|
6576
6576
|
var U = C[C.length - 1] || a.currentElement.tagName || a.doc.documentElement.tagName || "";
|
|
6577
6577
|
if (U !== L[1]) {
|
|
6578
6578
|
var z = L[1].toLowerCase();
|
|
6579
|
-
if (!c || U.toLowerCase() !== z) return l.fatalError("Opening and ending tag mismatch: \"" + U + "\" != \"" +
|
|
6579
|
+
if (!c || U.toLowerCase() !== z) return l.fatalError("Opening and ending tag mismatch: \"" + U + "\" != \"" + F + "\"");
|
|
6580
6580
|
}
|
|
6581
6581
|
var H = I.pop();
|
|
6582
6582
|
C.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
|
+
O++;
|
|
6586
6586
|
break;
|
|
6587
6587
|
case "?":
|
|
6588
|
-
T && _(R),
|
|
6588
|
+
T && _(R), O = S(e, R, a, l);
|
|
6589
6589
|
break;
|
|
6590
6590
|
case "!":
|
|
6591
|
-
T && _(R),
|
|
6591
|
+
T && _(R), O = x(e, R, a, l, c);
|
|
6592
6592
|
break;
|
|
6593
6593
|
default:
|
|
6594
6594
|
T && _(R);
|
|
6595
|
-
var W = new E(), X = I[I.length - 1].currentNSMap, G = (
|
|
6595
|
+
var W = new E(), X = I[I.length - 1].currentNSMap, G = (O = w(e, R, W, X, d, l, c), W.length);
|
|
6596
6596
|
if (W.closed || (c && t.isHTMLVoidElement(W.tagName) ? W.closed = !0 : C.push(W.tagName)), T && G) {
|
|
6597
6597
|
for (var V = g(T, {}), Z = 0; Z < G; Z++) {
|
|
6598
6598
|
var Y = W[Z];
|
|
@@ -6600,14 +6600,14 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
6600
6600
|
}
|
|
6601
6601
|
a.locator = V, b(W, a, X) && I.push(W), a.locator = T;
|
|
6602
6602
|
} else b(W, a, X) && I.push(W);
|
|
6603
|
-
c && !W.closed ?
|
|
6603
|
+
c && !W.closed ? O = v(e, O, W.tagName, d, a) : O++;
|
|
6604
6604
|
}
|
|
6605
6605
|
} catch (Q) {
|
|
6606
6606
|
if (Q instanceof p) throw Q;
|
|
6607
6607
|
if (Q instanceof f) return l.fatalError("Error constructing the DOM: " + Q.name + ": " + Q.message, Q);
|
|
6608
|
-
l.error("element parse error: " + Q),
|
|
6608
|
+
l.error("element parse error: " + Q), O = -1;
|
|
6609
6609
|
}
|
|
6610
|
-
|
|
6610
|
+
O > A ? A = O : h(Math.max(R, A) + 1);
|
|
6611
6611
|
}
|
|
6612
6612
|
}(e, n, o, a, this.errorHandler), a.endDocument();
|
|
6613
6613
|
} };
|
|
@@ -7069,7 +7069,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7069
7069
|
type: "solid",
|
|
7070
7070
|
color: e
|
|
7071
7071
|
});
|
|
7072
|
-
function
|
|
7072
|
+
function O(e, t, r) {
|
|
7073
7073
|
const n = `${r ? "MediumShading1" : "LightShading"}-Accent${e}`, o = P(r ? "#ffffff" : t.accent);
|
|
7074
7074
|
return {
|
|
7075
7075
|
id: n,
|
|
@@ -7109,7 +7109,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7109
7109
|
}
|
|
7110
7110
|
};
|
|
7111
7111
|
}
|
|
7112
|
-
const
|
|
7112
|
+
const F = {
|
|
7113
7113
|
TableNormal: {
|
|
7114
7114
|
id: "TableNormal",
|
|
7115
7115
|
name: "Table Normal",
|
|
@@ -7176,7 +7176,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7176
7176
|
tint: "#e2f0d9"
|
|
7177
7177
|
}
|
|
7178
7178
|
].flatMap((e, t) => {
|
|
7179
|
-
const r = t + 1, n =
|
|
7179
|
+
const r = t + 1, n = O(r, e, !1), o = O(r, e, !0);
|
|
7180
7180
|
return [[n.id, n], [o.id, o]];
|
|
7181
7181
|
}))
|
|
7182
7182
|
}, M = {
|
|
@@ -7316,7 +7316,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7316
7316
|
italic: !0
|
|
7317
7317
|
}
|
|
7318
7318
|
},
|
|
7319
|
-
...
|
|
7319
|
+
...F
|
|
7320
7320
|
};
|
|
7321
7321
|
function L(e, t = "value") {
|
|
7322
7322
|
const r = e && "object" == typeof e && "type" in e ? e.type : e;
|
|
@@ -7585,7 +7585,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7585
7585
|
}
|
|
7586
7586
|
}();
|
|
7587
7587
|
function de(e) {
|
|
7588
|
-
const t = Object.fromEntries(Object.entries(
|
|
7588
|
+
const t = Object.fromEntries(Object.entries(F).filter(([t]) => !(t in e)));
|
|
7589
7589
|
return {
|
|
7590
7590
|
...e,
|
|
7591
7591
|
...t
|
|
@@ -7736,16 +7736,16 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7736
7736
|
function Pe(e, t) {
|
|
7737
7737
|
return e ? Ee(e, Ie).find((e) => "http://schemas.microsoft.com/office/word/2012/wordml" === e.namespaceURI && e.localName === t) ?? null : null;
|
|
7738
7738
|
}
|
|
7739
|
-
function
|
|
7739
|
+
function Oe(e, t) {
|
|
7740
7740
|
return e ? e.getAttributeNS("http://schemas.openxmlformats.org/wordprocessingml/2006/main", t) ?? e.getAttributeNS("http://schemas.microsoft.com/office/word/2010/wordml", t) ?? e.getAttributeNS("http://schemas.microsoft.com/office/word/2012/wordml", t) ?? e.getAttribute(`w:${t}`) ?? e.getAttribute(`w14:${t}`) ?? e.getAttribute(`w15:${t}`) ?? e.getAttribute(t) : null;
|
|
7741
7741
|
}
|
|
7742
|
-
function
|
|
7742
|
+
function Fe(e, t) {
|
|
7743
7743
|
for (let r = 0; r < e.childNodes.length; r += 1) {
|
|
7744
7744
|
const n = e.childNodes[r];
|
|
7745
7745
|
if (1 === n?.nodeType) {
|
|
7746
7746
|
const e = n;
|
|
7747
7747
|
if (e.localName === t) return e;
|
|
7748
|
-
const r =
|
|
7748
|
+
const r = Fe(e, t);
|
|
7749
7749
|
if (r) return r;
|
|
7750
7750
|
}
|
|
7751
7751
|
}
|
|
@@ -7771,11 +7771,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7771
7771
|
function Be(e, t) {
|
|
7772
7772
|
const r = De(e, Ne, t);
|
|
7773
7773
|
if (!r) return;
|
|
7774
|
-
const n =
|
|
7774
|
+
const n = Oe(r, "val");
|
|
7775
7775
|
return null == n || "0" !== n && "false" !== n && "off" !== n && Le(n);
|
|
7776
7776
|
}
|
|
7777
7777
|
function Ue(e, t) {
|
|
7778
|
-
return
|
|
7778
|
+
return Oe(De(e, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", t), "val") ?? void 0;
|
|
7779
7779
|
}
|
|
7780
7780
|
async function ze(e, t) {
|
|
7781
7781
|
t > 0 && t % e === 0 && await new Promise((e) => setTimeout(e, 0));
|
|
@@ -7875,9 +7875,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7875
7875
|
];
|
|
7876
7876
|
function rt(e) {
|
|
7877
7877
|
const t = De(e, ke, "srgbClr");
|
|
7878
|
-
if (t) return et(
|
|
7878
|
+
if (t) return et(Oe(t, "val"));
|
|
7879
7879
|
const r = De(e, ke, "sysClr");
|
|
7880
|
-
return r ? et(
|
|
7880
|
+
return r ? et(Oe(r, "lastClr")) : void 0;
|
|
7881
7881
|
}
|
|
7882
7882
|
function nt(e) {
|
|
7883
7883
|
if (!e) return;
|
|
@@ -7891,7 +7891,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7891
7891
|
return `#${n(e)}${n(t)}${n(r)}`;
|
|
7892
7892
|
}
|
|
7893
7893
|
function it(e, t) {
|
|
7894
|
-
const r =
|
|
7894
|
+
const r = Oe(e, "themeColor");
|
|
7895
7895
|
if (!r) return;
|
|
7896
7896
|
const n = function(e) {
|
|
7897
7897
|
switch (e) {
|
|
@@ -7916,9 +7916,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7916
7916
|
}(r), o = n ? t[n] : void 0;
|
|
7917
7917
|
if (!o) return;
|
|
7918
7918
|
let i = Number.parseInt(o.slice(1, 3), 16), a = Number.parseInt(o.slice(3, 5), 16), s = Number.parseInt(o.slice(5, 7), 16);
|
|
7919
|
-
const l = nt(
|
|
7919
|
+
const l = nt(Oe(e, "themeShade"));
|
|
7920
7920
|
void 0 !== l && (i *= l, a *= l, s *= l);
|
|
7921
|
-
const c = nt(
|
|
7921
|
+
const c = nt(Oe(e, "themeTint"));
|
|
7922
7922
|
if (void 0 !== c) {
|
|
7923
7923
|
const e = 255 * (1 - c);
|
|
7924
7924
|
i = i * c + e, a = a * c + e, s = s * c + e;
|
|
@@ -7978,11 +7978,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7978
7978
|
};
|
|
7979
7979
|
function ct(e) {
|
|
7980
7980
|
if (!e) return;
|
|
7981
|
-
const t = {}, r =
|
|
7981
|
+
const t = {}, r = Oe(De(e, Ne, "numFmt"), "val");
|
|
7982
7982
|
r && st[r] && (t.numberFormat = st[r]);
|
|
7983
|
-
const n = Number.parseInt(
|
|
7983
|
+
const n = Number.parseInt(Oe(De(e, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "numStart"), "val") ?? "", 10);
|
|
7984
7984
|
Number.isFinite(n) && n > 0 && (t.startAt = n);
|
|
7985
|
-
const o =
|
|
7985
|
+
const o = Oe(De(e, Ne, "numRestart"), "val");
|
|
7986
7986
|
return o && lt[o] && (t.restart = lt[o]), Object.keys(t).length > 0 ? t : void 0;
|
|
7987
7987
|
}
|
|
7988
7988
|
function ut(e) {
|
|
@@ -7994,7 +7994,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7994
7994
|
}
|
|
7995
7995
|
function pt(e) {
|
|
7996
7996
|
if (!e) return;
|
|
7997
|
-
const t =
|
|
7997
|
+
const t = Oe(e, "id"), r = Oe(e, "author"), n = Oe(e, "date");
|
|
7998
7998
|
if (!t || !r || !n) return;
|
|
7999
7999
|
const o = Date.parse(n);
|
|
8000
8000
|
return Number.isFinite(o) ? {
|
|
@@ -8012,7 +8012,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8012
8012
|
bullet: "bullet"
|
|
8013
8013
|
};
|
|
8014
8014
|
function ht(e) {
|
|
8015
|
-
const t =
|
|
8015
|
+
const t = Oe(e, "val");
|
|
8016
8016
|
if (null == t) return;
|
|
8017
8017
|
const r = Number.parseInt(t, 10);
|
|
8018
8018
|
return Number.isFinite(r) ? r : void 0;
|
|
@@ -8023,25 +8023,25 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8023
8023
|
return Number.isSafeInteger(r) && r >= t ? r : void 0;
|
|
8024
8024
|
}
|
|
8025
8025
|
function gt(e) {
|
|
8026
|
-
const t = {}, r =
|
|
8026
|
+
const t = {}, r = Oe(De(e, Ne, "numFmt"), "val");
|
|
8027
8027
|
r && (t.kind = "bullet" === r ? "bullet" : "ordered", t.format = ft[r], t.rawFormat = r);
|
|
8028
|
-
const n =
|
|
8028
|
+
const n = Oe(De(e, Ne, "suff"), "val");
|
|
8029
8029
|
"tab" !== n && "space" !== n && "nothing" !== n || (t.suffix = n);
|
|
8030
8030
|
const o = ht(De(e, Ne, "start"));
|
|
8031
|
-
void 0 !== o && (t.startAt = o), t.levelText =
|
|
8032
|
-
const i =
|
|
8031
|
+
void 0 !== o && (t.startAt = o), t.levelText = Oe(De(e, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "lvlText"), "val") ?? void 0;
|
|
8032
|
+
const i = Oe(De(e, Ne, "lvlJc"), "val");
|
|
8033
8033
|
"left" !== i && "center" !== i && "right" !== i || (t.alignment = i);
|
|
8034
8034
|
const a = De(e, Ne, "isLgl");
|
|
8035
8035
|
a && (t.legal = function(e) {
|
|
8036
8036
|
return null == e || "1" === e || "true" === e || "on" === e;
|
|
8037
|
-
}(
|
|
8037
|
+
}(Oe(a, "val")));
|
|
8038
8038
|
const s = ht(De(e, Ne, "lvlRestart"));
|
|
8039
|
-
void 0 !== s && (t.restartAfterLevel = s), t.paragraphStyleId =
|
|
8039
|
+
void 0 !== s && (t.restartAfterLevel = s), t.paragraphStyleId = Oe(De(e, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "pStyle"), "val") ?? void 0, "bullet" === t.kind && t.levelText && (t.bulletGlyph = t.levelText);
|
|
8040
8040
|
const c = De(De(e, Ne, "rPr"), Ne, "rFonts");
|
|
8041
|
-
t.bulletFont =
|
|
8041
|
+
t.bulletFont = Oe(c, "ascii") ?? Oe(c, "hAnsi") ?? void 0;
|
|
8042
8042
|
const d = De(De(e, Ne, "pPr"), Ne, "ind");
|
|
8043
8043
|
if (d) {
|
|
8044
|
-
const e =
|
|
8044
|
+
const e = Oe(d, "left") ?? Oe(d, "start"), r = Oe(d, "hanging"), n = null != e ? Ke(e, 0) : void 0, o = null != r ? Ke(r, 0) : void 0;
|
|
8045
8045
|
void 0 === n && void 0 === o || (t.indent = {
|
|
8046
8046
|
left: n,
|
|
8047
8047
|
hanging: o
|
|
@@ -8147,13 +8147,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8147
8147
|
}
|
|
8148
8148
|
function xt(e) {
|
|
8149
8149
|
if (!e) return;
|
|
8150
|
-
const t =
|
|
8150
|
+
const t = Oe(e, "val");
|
|
8151
8151
|
if ("nil" === t || "none" === t) return {
|
|
8152
8152
|
width: 0,
|
|
8153
8153
|
type: "none",
|
|
8154
8154
|
color: "transparent"
|
|
8155
8155
|
};
|
|
8156
|
-
const r = Number(
|
|
8156
|
+
const r = Number(Oe(e, "sz")), n = Number.isFinite(r) && r > 0 ? Qe(r / 8, 4) : .75, o = et(Oe(e, "color")) ?? "#000000", i = t?.toLowerCase() ?? "single";
|
|
8157
8157
|
return {
|
|
8158
8158
|
width: n,
|
|
8159
8159
|
type: i.includes("dotted") || i.includes("dot") ? "dotted" : i.includes("dash") ? "dashed" : "solid",
|
|
@@ -8188,7 +8188,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8188
8188
|
});
|
|
8189
8189
|
}
|
|
8190
8190
|
function Tt(e, t) {
|
|
8191
|
-
return et(
|
|
8191
|
+
return et(Oe(e, "fill")) || (t ? it(e, t) : void 0);
|
|
8192
8192
|
}
|
|
8193
8193
|
function _t(e) {
|
|
8194
8194
|
const t = De(e, Te, "solidFill");
|
|
@@ -8196,7 +8196,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8196
8196
|
const e = function(e) {
|
|
8197
8197
|
const t = De(e, Te, "srgbClr");
|
|
8198
8198
|
if (!t) return null;
|
|
8199
|
-
const r =
|
|
8199
|
+
const r = Oe(t, "val");
|
|
8200
8200
|
return r ? et(r) ?? null : null;
|
|
8201
8201
|
}(t);
|
|
8202
8202
|
if (e) return {
|
|
@@ -8214,22 +8214,22 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8214
8214
|
if (n?.nodeType !== n.ELEMENT_NODE) continue;
|
|
8215
8215
|
const o = n;
|
|
8216
8216
|
if ("http://schemas.microsoft.com/office/word/2010/wordml" !== o.namespaceURI || "gs" !== o.localName) continue;
|
|
8217
|
-
const i =
|
|
8217
|
+
const i = Oe(o, "pos"), a = null !== i ? Number(i) / R : NaN;
|
|
8218
8218
|
if (!Number.isFinite(a)) continue;
|
|
8219
8219
|
const s = De(o, Te, "srgbClr");
|
|
8220
8220
|
if (!s) continue;
|
|
8221
|
-
const l =
|
|
8221
|
+
const l = Oe(s, "val");
|
|
8222
8222
|
if (!l) continue;
|
|
8223
8223
|
const c = et(l);
|
|
8224
8224
|
if (!c) continue;
|
|
8225
|
-
const u = De(s, Te, "alpha"), d = u ?
|
|
8225
|
+
const u = De(s, Te, "alpha"), d = u ? Oe(u, "val") : null, p = null !== d ? Number(d) / R : void 0, f = {
|
|
8226
8226
|
position: a,
|
|
8227
8227
|
color: c
|
|
8228
8228
|
};
|
|
8229
8229
|
void 0 !== p && Number.isFinite(p) && (f.alpha = p), t.push(f);
|
|
8230
8230
|
}
|
|
8231
8231
|
if (t.length > 0) {
|
|
8232
|
-
const e = De(r, Te, "lin"), n = e ?
|
|
8232
|
+
const e = De(r, Te, "lin"), n = e ? Oe(e, "ang") : null, o = null !== n ? Number(n) / D : void 0, i = {
|
|
8233
8233
|
type: "gradient",
|
|
8234
8234
|
stops: t
|
|
8235
8235
|
};
|
|
@@ -8242,9 +8242,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8242
8242
|
function It(e) {
|
|
8243
8243
|
const t = De(e, Te, "srgbClr");
|
|
8244
8244
|
if (!t) return null;
|
|
8245
|
-
const r =
|
|
8245
|
+
const r = Oe(t, "val"), n = r ? et(r) ?? null : null;
|
|
8246
8246
|
if (!n) return null;
|
|
8247
|
-
const o = De(t, Te, "alpha"), i = o ?
|
|
8247
|
+
const o = De(t, Te, "alpha"), i = o ? Oe(o, "val") : null, a = null !== i && Number.isFinite(Number(i)) ? Number(i) / R : void 0;
|
|
8248
8248
|
return {
|
|
8249
8249
|
color: n,
|
|
8250
8250
|
...void 0 !== a ? { alpha: a } : {}
|
|
@@ -8348,44 +8348,44 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8348
8348
|
void 0 !== S && (r.emboss = S);
|
|
8349
8349
|
const E = Be(e, "imprint");
|
|
8350
8350
|
void 0 !== E && (r.imprint = E);
|
|
8351
|
-
const N =
|
|
8351
|
+
const N = Oe(De(e, Ne, "em"), "val");
|
|
8352
8352
|
"dot" !== N && "comma" !== N && "circle" !== N && "underDot" !== N && "none" !== N || (r.emphasisMark = N);
|
|
8353
|
-
const k =
|
|
8353
|
+
const k = Oe(De(e, Ne, "fitText"), "val");
|
|
8354
8354
|
if (k) {
|
|
8355
8355
|
const e = Je(k);
|
|
8356
8356
|
void 0 !== e && e > 0 && (r.fitText = e);
|
|
8357
8357
|
}
|
|
8358
8358
|
const T = xt(De(e, Ne, "bdr"));
|
|
8359
8359
|
T && (r.textBorder = T);
|
|
8360
|
-
const _ =
|
|
8360
|
+
const _ = Oe(De(e, Ne, "effect"), "val");
|
|
8361
8361
|
_ && (r.textEffect = _);
|
|
8362
|
-
const I =
|
|
8362
|
+
const I = Oe(De(e, Ne, "w"), "val");
|
|
8363
8363
|
if (I) {
|
|
8364
8364
|
const e = Number(I);
|
|
8365
8365
|
Number.isFinite(e) && e > 0 && (r.characterScale = e);
|
|
8366
8366
|
}
|
|
8367
|
-
const A =
|
|
8367
|
+
const A = Oe(De(e, Ne, "spacing"), "val");
|
|
8368
8368
|
if (A) {
|
|
8369
8369
|
const e = Je(A);
|
|
8370
8370
|
void 0 !== e && (r.characterSpacing = e);
|
|
8371
8371
|
}
|
|
8372
|
-
const $ =
|
|
8372
|
+
const $ = Oe(De(e, Ne, "position"), "val");
|
|
8373
8373
|
if ($) {
|
|
8374
8374
|
const e = Number($);
|
|
8375
8375
|
Number.isFinite(e) && (r.baselineShift = e / 2);
|
|
8376
8376
|
}
|
|
8377
|
-
const P =
|
|
8377
|
+
const P = Oe(De(e, Ne, "kern"), "val");
|
|
8378
8378
|
if (P) {
|
|
8379
8379
|
const e = Number(P);
|
|
8380
8380
|
Number.isFinite(e) && e >= 0 && (r.kerningThreshold = e / 2);
|
|
8381
8381
|
}
|
|
8382
|
-
const
|
|
8383
|
-
"none" !==
|
|
8384
|
-
const
|
|
8385
|
-
"proportional" !==
|
|
8386
|
-
const M =
|
|
8382
|
+
const O = Oe(De(e, Te, "ligatures"), "val");
|
|
8383
|
+
"none" !== O && "standard" !== O && "contextual" !== O && "historical" !== O && "standardContextual" !== O || (r.ligatures = O);
|
|
8384
|
+
const F = Oe(De(e, Te, "numSpacing"), "val");
|
|
8385
|
+
"proportional" !== F && "tabular" !== F || (r.numberSpacing = F);
|
|
8386
|
+
const M = Oe(De(e, Te, "numForm"), "val");
|
|
8387
8387
|
"lining" !== M && "oldStyle" !== M || (r.numberForm = M);
|
|
8388
|
-
const L =
|
|
8388
|
+
const L = Oe(De(e, Te, "stylisticSets"), "val");
|
|
8389
8389
|
if (L) {
|
|
8390
8390
|
const e = /^[0-9a-fA-F]+$/.test(L) && L.length > 2 ? Number.parseInt(L, 16) : Number(L);
|
|
8391
8391
|
if (Number.isFinite(e) && e > 0) {
|
|
@@ -8395,18 +8395,18 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8395
8395
|
}
|
|
8396
8396
|
}
|
|
8397
8397
|
}
|
|
8398
|
-
const B =
|
|
8398
|
+
const B = Oe(De(e, Te, "cntxtAlts"), "val");
|
|
8399
8399
|
null === B ? De(e, "http://schemas.microsoft.com/office/word/2010/wordml", "cntxtAlts") && (r.contextualAlternates = !0) : r.contextualAlternates = Le(B);
|
|
8400
|
-
const U = De(e, Ne, "u"), z =
|
|
8400
|
+
const U = De(e, Ne, "u"), z = Oe(U, "val");
|
|
8401
8401
|
if (U) {
|
|
8402
8402
|
r.underline = "none" !== z, r.underlineStyle = "none" === z ? null : z || "single";
|
|
8403
|
-
const e =
|
|
8403
|
+
const e = Oe(U, "color");
|
|
8404
8404
|
e && "auto" !== e && (r.underlineColor = et(e));
|
|
8405
8405
|
}
|
|
8406
|
-
const H =
|
|
8406
|
+
const H = Oe(De(e, Ne, "vertAlign"), "val");
|
|
8407
8407
|
"superscript" !== H && "subscript" !== H && "baseline" !== H || (r.superscript = "superscript" === H, r.subscript = "subscript" === H);
|
|
8408
|
-
const j = De(e, Ne, "rFonts"), q =
|
|
8409
|
-
const r =
|
|
8408
|
+
const j = De(e, Ne, "rFonts"), q = Oe(j, "ascii") ?? Oe(j, "hAnsi") ?? Oe(j, "cs") ?? Oe(j, "eastAsia") ?? function(e, t) {
|
|
8409
|
+
const r = Oe(e, "asciiTheme") ?? Oe(e, "hAnsiTheme") ?? Oe(e, "eastAsiaTheme") ?? Oe(e, "cstheme");
|
|
8410
8410
|
if (!r) return;
|
|
8411
8411
|
const n = "majorAscii" === r || "majorHAnsi" === r ? "majorHAnsi" : "minorAscii" === r || "minorHAnsi" === r ? "minorHAnsi" : "majorEastAsia" === r ? "majorEastAsia" : "minorEastAsia" === r ? "minorEastAsia" : "majorBidi" === r ? "majorBidi" : "minorBidi" === r ? "minorBidi" : void 0;
|
|
8412
8412
|
return n ? t[n] : void 0;
|
|
@@ -8415,7 +8415,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8415
8415
|
const t = e?.trim();
|
|
8416
8416
|
if (t) return `${/[\s,]/.test(t) ? `"${t.replace(/"/g, "\\\"")}"` : t}, ${/times/i.test(t) ? "serif" : "sans-serif"}`;
|
|
8417
8417
|
}(q));
|
|
8418
|
-
const W =
|
|
8418
|
+
const W = Oe(De(e, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "sz") ?? De(e, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "szCs"), "val");
|
|
8419
8419
|
if (W) {
|
|
8420
8420
|
const e = function(e) {
|
|
8421
8421
|
const t = e ? Number(e) : NaN;
|
|
@@ -8423,7 +8423,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8423
8423
|
}(W);
|
|
8424
8424
|
null !== e && (r.fontSize = e);
|
|
8425
8425
|
}
|
|
8426
|
-
const X = De(e, Ne, "color"), G =
|
|
8426
|
+
const X = De(e, Ne, "color"), G = Oe(X, "val");
|
|
8427
8427
|
if (G && "auto" !== G) r.color = et(G);
|
|
8428
8428
|
else if ("auto" !== G) {
|
|
8429
8429
|
const e = it(X, t.colors);
|
|
@@ -8485,13 +8485,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8485
8485
|
J && (r.scene3dXml = new b.XMLSerializer().serializeToString(J));
|
|
8486
8486
|
const ee = $e(e, "props3d");
|
|
8487
8487
|
ee && (r.props3dXml = new b.XMLSerializer().serializeToString(ee));
|
|
8488
|
-
const te =
|
|
8488
|
+
const te = Oe(De(e, Ne, "highlight"), "val");
|
|
8489
8489
|
te && "none" !== te && (r.highlight = te);
|
|
8490
8490
|
const re = Tt(De(e, Ne, "shd"), t.colors);
|
|
8491
8491
|
re && (r.shading = re);
|
|
8492
8492
|
const ne = De(e, Ne, "lang");
|
|
8493
8493
|
if (ne) {
|
|
8494
|
-
const e =
|
|
8494
|
+
const e = Oe(ne, "val"), t = Oe(ne, "eastAsia"), n = Oe(ne, "bidi"), o = {};
|
|
8495
8495
|
e && (o.value = e), t && (o.eastAsia = t), n && (o.bidi = n), Object.keys(o).length > 0 && (r.language = o);
|
|
8496
8496
|
}
|
|
8497
8497
|
const oe = De(e, Ne, "rPrChange"), ie = pt(oe), ae = De(oe, Ne, "rPr");
|
|
@@ -8524,7 +8524,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8524
8524
|
];
|
|
8525
8525
|
function $t(e) {
|
|
8526
8526
|
if (!e) return;
|
|
8527
|
-
const t =
|
|
8527
|
+
const t = Oe(e, "type"), r = Oe(e, "w");
|
|
8528
8528
|
if ("auto" === t) return "auto";
|
|
8529
8529
|
if ("pct" === t) {
|
|
8530
8530
|
if (!r) return;
|
|
@@ -8534,23 +8534,23 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8534
8534
|
return Je(r);
|
|
8535
8535
|
}
|
|
8536
8536
|
function Pt(e, t) {
|
|
8537
|
-
const r =
|
|
8537
|
+
const r = Oe(De(e, Ne, t), "val"), n = r ? Number(r) : NaN;
|
|
8538
8538
|
return Number.isFinite(n) && n > 0 ? Math.floor(n) : void 0;
|
|
8539
8539
|
}
|
|
8540
|
-
function
|
|
8540
|
+
function Ot(e) {
|
|
8541
8541
|
const t = De(e, Ne, "cnfStyle");
|
|
8542
8542
|
if (!t) return;
|
|
8543
|
-
const r =
|
|
8543
|
+
const r = Oe(t, "val") ?? "", n = {};
|
|
8544
8544
|
return Rt.forEach(([e, o], i) => {
|
|
8545
|
-
const a =
|
|
8545
|
+
const a = Oe(t, e);
|
|
8546
8546
|
"1" === a || "true" === a || "on" === a ? n[o] = !0 : "0" === a || "false" === a || "off" === a ? n[o] = !1 : 12 === r.length && "1" === r[i] && (n[o] = !0);
|
|
8547
8547
|
}), Object.keys(n).length > 0 ? n : void 0;
|
|
8548
8548
|
}
|
|
8549
|
-
function
|
|
8550
|
-
const t =
|
|
8549
|
+
function Ft(e) {
|
|
8550
|
+
const t = Oe(e, "date"), r = t ? Date.parse(t) : NaN;
|
|
8551
8551
|
return {
|
|
8552
|
-
id:
|
|
8553
|
-
author:
|
|
8552
|
+
id: Oe(e, "id") ?? `revision:${e.localName}`,
|
|
8553
|
+
author: Oe(e, "author") ?? "Unknown",
|
|
8554
8554
|
date: Number.isFinite(r) ? r : 0
|
|
8555
8555
|
};
|
|
8556
8556
|
}
|
|
@@ -8558,31 +8558,31 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8558
8558
|
if (!e) return;
|
|
8559
8559
|
const t = De(e, Ne, "tblPrEx");
|
|
8560
8560
|
return t ? {
|
|
8561
|
-
...
|
|
8561
|
+
...Ft(e),
|
|
8562
8562
|
type: "property",
|
|
8563
8563
|
previous: Bt(t) ?? {}
|
|
8564
8564
|
} : void 0;
|
|
8565
8565
|
}
|
|
8566
8566
|
function Lt(e) {
|
|
8567
8567
|
if (!e) return;
|
|
8568
|
-
const t = (t) => Je(
|
|
8568
|
+
const t = (t) => Je(Oe(De(e, Ne, t), "w")), r = {}, n = t("top"), o = t("right"), i = t("bottom"), a = t("left"), s = t("start"), l = t("end");
|
|
8569
8569
|
return void 0 !== n && (r.top = n), void 0 !== o && (r.right = o), void 0 !== i && (r.bottom = i), void 0 !== a && (r.left = a), void 0 !== s && (r.start = s), void 0 !== l && (r.end = l), Object.keys(r).length > 0 ? r : void 0;
|
|
8570
8570
|
}
|
|
8571
8571
|
function Bt(e, t) {
|
|
8572
8572
|
const r = {};
|
|
8573
8573
|
t && (r.styleId = t);
|
|
8574
|
-
const n =
|
|
8574
|
+
const n = Oe(De(e, Ne, "tblCaption"), "val");
|
|
8575
8575
|
n && (r.altTitle = n);
|
|
8576
|
-
const o =
|
|
8576
|
+
const o = Oe(De(e, Ne, "tblDescription"), "val");
|
|
8577
8577
|
o && (r.altDescription = o);
|
|
8578
8578
|
const i = $t(De(e, Ne, "tblW"));
|
|
8579
8579
|
void 0 !== i && (r.width = i);
|
|
8580
8580
|
const a = $t(De(e, Ne, "tblInd"));
|
|
8581
8581
|
void 0 !== a && (r.indentLeft = a);
|
|
8582
|
-
const s =
|
|
8582
|
+
const s = Oe(De(e, Ne, "jc"), "val");
|
|
8583
8583
|
"left" === s || "start" === s ? r.align = "left" : "center" === s ? r.align = "center" : "right" !== s && "end" !== s || (r.align = "right");
|
|
8584
8584
|
const l = function(e) {
|
|
8585
|
-
const t =
|
|
8585
|
+
const t = Oe(De(e, Ne, "tblLayout"), "type");
|
|
8586
8586
|
return "fixed" === t || "autofit" === t ? t : void 0;
|
|
8587
8587
|
}(e);
|
|
8588
8588
|
l && (r.layout = l);
|
|
@@ -8599,7 +8599,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8599
8599
|
p && (r.defaultCellMargins = p);
|
|
8600
8600
|
const f = e ? Be(e, "bidiVisual") : void 0;
|
|
8601
8601
|
void 0 !== f && (r.bidiVisual = f);
|
|
8602
|
-
const h =
|
|
8602
|
+
const h = Oe(De(e, Ne, "tblOverlap"), "val");
|
|
8603
8603
|
"overlap" !== h && "never" !== h || (r.tblOverlap = h);
|
|
8604
8604
|
const m = function(e) {
|
|
8605
8605
|
const t = De(e, Ne, "tblpPr");
|
|
@@ -8630,8 +8630,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8630
8630
|
void 0 !== w && (r.colBandSize = w);
|
|
8631
8631
|
const b = De(e, Ne, "tblLook");
|
|
8632
8632
|
if (b) {
|
|
8633
|
-
const e =
|
|
8634
|
-
const o =
|
|
8633
|
+
const e = Oe(b, "val"), t = e ? Number.parseInt(e, 16) : NaN, n = (e, r, n) => {
|
|
8634
|
+
const o = Oe(b, e);
|
|
8635
8635
|
return null !== o && "" !== o ? "1" === o || "true" === o || "on" === o : Number.isFinite(t) ? 0 !== (t & r) : n;
|
|
8636
8636
|
};
|
|
8637
8637
|
r.tblLook = {
|
|
@@ -8645,7 +8645,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8645
8645
|
}
|
|
8646
8646
|
const v = De(e, Ne, "tblPrChange"), y = De(v, Ne, "tblPr");
|
|
8647
8647
|
return v && y && (r.revision = {
|
|
8648
|
-
...
|
|
8648
|
+
...Ft(v),
|
|
8649
8649
|
type: "property",
|
|
8650
8650
|
previous: Bt(y) ?? {}
|
|
8651
8651
|
}), Nt(r);
|
|
@@ -8662,13 +8662,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8662
8662
|
void 0 !== i && (t.widthBefore = i);
|
|
8663
8663
|
const a = $t(De(e, Ne, "wAfter"));
|
|
8664
8664
|
void 0 !== a && (t.widthAfter = a);
|
|
8665
|
-
const s = De(e, Ne, "trHeight"), l = Je(
|
|
8665
|
+
const s = De(e, Ne, "trHeight"), l = Je(Oe(s, "val"));
|
|
8666
8666
|
void 0 !== l && (t.height = l);
|
|
8667
|
-
const c =
|
|
8667
|
+
const c = Oe(s, "hRule");
|
|
8668
8668
|
"auto" !== c && "exact" !== c && "atLeast" !== c || (t.heightRule = c);
|
|
8669
8669
|
const u = $t(De(e, Ne, "tblCellSpacing"));
|
|
8670
8670
|
void 0 !== u && (t.cellSpacing = u);
|
|
8671
|
-
const d =
|
|
8671
|
+
const d = Oe(De(e, Ne, "jc"), "val");
|
|
8672
8672
|
"left" === d || "start" === d ? t.align = "left" : "center" === d ? t.align = "center" : "right" !== d && "end" !== d || (t.align = "right");
|
|
8673
8673
|
const p = Be(e, "cantSplit");
|
|
8674
8674
|
void 0 !== p && (t.cantSplit = p);
|
|
@@ -8676,30 +8676,30 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8676
8676
|
void 0 !== f && (t.hidden = f);
|
|
8677
8677
|
const h = De(e, Ne, "trPrChange"), m = De(h, Ne, "trPr");
|
|
8678
8678
|
h && m && (t.propertyRevision = {
|
|
8679
|
-
...
|
|
8679
|
+
...Ft(h),
|
|
8680
8680
|
type: "property",
|
|
8681
8681
|
previous: Ut(m) ?? {}
|
|
8682
8682
|
});
|
|
8683
8683
|
const g = De(e, Ne, "ins"), w = De(e, Ne, "del"), b = g ?? w;
|
|
8684
8684
|
return b && (t.revision = {
|
|
8685
|
-
...
|
|
8685
|
+
...Ft(b),
|
|
8686
8686
|
type: g ? "insert" : "delete"
|
|
8687
8687
|
}), Nt(t);
|
|
8688
8688
|
}
|
|
8689
8689
|
function zt(e) {
|
|
8690
8690
|
if (!e) return 1;
|
|
8691
|
-
const t =
|
|
8691
|
+
const t = Oe(De(e, Ne, "gridSpan"), "val"), r = t ? Number(t) : 1;
|
|
8692
8692
|
return Number.isFinite(r) && r > 1 ? Math.floor(r) : 1;
|
|
8693
8693
|
}
|
|
8694
8694
|
function Ht(e) {
|
|
8695
8695
|
if (!e) return;
|
|
8696
8696
|
const t = De(e, Ne, "vMerge");
|
|
8697
|
-
return t ? "restart" ===
|
|
8697
|
+
return t ? "restart" === Oe(t, "val") ? "restart" : "continue" : void 0;
|
|
8698
8698
|
}
|
|
8699
8699
|
function jt(e) {
|
|
8700
8700
|
if (!e) return;
|
|
8701
8701
|
const t = De(e, Ne, "hMerge");
|
|
8702
|
-
return t ? "restart" ===
|
|
8702
|
+
return t ? "restart" === Oe(t, "val") ? "restart" : "continue" : void 0;
|
|
8703
8703
|
}
|
|
8704
8704
|
function qt(e, t, r) {
|
|
8705
8705
|
if (!e) {
|
|
@@ -8722,7 +8722,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8722
8722
|
...void 0 !== t?.end ? { paddingEnd: t.end } : {}
|
|
8723
8723
|
}, o = Tt(De(e, Ne, "shd"), r);
|
|
8724
8724
|
o && (n.shading = o);
|
|
8725
|
-
const i = De(e, Ne, "tcW"), a =
|
|
8725
|
+
const i = De(e, Ne, "tcW"), a = Oe(i, "type"), s = Oe(i, "w");
|
|
8726
8726
|
if ("dxa" === a) {
|
|
8727
8727
|
const e = Je(s);
|
|
8728
8728
|
void 0 !== e && (n.width = e);
|
|
@@ -8734,11 +8734,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8734
8734
|
l && (void 0 !== l.top && (n.paddingTop = l.top), void 0 !== l.bottom && (n.paddingBottom = l.bottom), void 0 !== l.left && (n.paddingLeft = l.left), void 0 !== l.right && (n.paddingRight = l.right), void 0 !== l.start && (n.paddingStart = l.start), void 0 !== l.end && (n.paddingEnd = l.end));
|
|
8735
8735
|
const c = function(e) {
|
|
8736
8736
|
if (!e) return;
|
|
8737
|
-
const t =
|
|
8737
|
+
const t = Oe(De(e, Ne, "vAlign"), "val");
|
|
8738
8738
|
return "top" === t || "bottom" === t ? t : "center" === t ? "middle" : void 0;
|
|
8739
8739
|
}(e);
|
|
8740
8740
|
c && (n.verticalAlign = c);
|
|
8741
|
-
const u = Re(
|
|
8741
|
+
const u = Re(Oe(De(e, Ne, "textDirection"), "val"));
|
|
8742
8742
|
u && (n.textDirection = u);
|
|
8743
8743
|
const d = Be(e, "noWrap");
|
|
8744
8744
|
void 0 !== d && (n.noWrap = d);
|
|
@@ -8746,11 +8746,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8746
8746
|
void 0 !== p && (n.fitText = p);
|
|
8747
8747
|
const f = Be(e, "hideMark");
|
|
8748
8748
|
void 0 !== f && (n.hideMark = f);
|
|
8749
|
-
const h =
|
|
8749
|
+
const h = Oe(De(e, Ne, "headers"), "val");
|
|
8750
8750
|
h && (n.headers = h);
|
|
8751
8751
|
const m = De(e, Ne, "tcPrChange"), g = De(m, Ne, "tcPr");
|
|
8752
8752
|
m && g && (n.propertyRevision = {
|
|
8753
|
-
...
|
|
8753
|
+
...Ft(m),
|
|
8754
8754
|
type: "property",
|
|
8755
8755
|
previous: qt(g, void 0, r) ?? {}
|
|
8756
8756
|
});
|
|
@@ -8758,9 +8758,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8758
8758
|
if (y) {
|
|
8759
8759
|
const e = function(e) {
|
|
8760
8760
|
return "rest" === e || "restart" === e ? "restart" : "cont" === e || "continue" === e ? "continue" : void 0;
|
|
8761
|
-
}(
|
|
8761
|
+
}(Oe(y, "vMergeOrig"));
|
|
8762
8762
|
n.revision = {
|
|
8763
|
-
...
|
|
8763
|
+
...Ft(y),
|
|
8764
8764
|
type: w ? "insert" : b ? "delete" : "merge",
|
|
8765
8765
|
...v && e ? { previous: { vMerge: e } } : {}
|
|
8766
8766
|
};
|
|
@@ -8837,24 +8837,24 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8837
8837
|
if (!e) return;
|
|
8838
8838
|
const r = {}, n = Ue(e, "pStyle");
|
|
8839
8839
|
n && (r.styleId = n);
|
|
8840
|
-
const o =
|
|
8840
|
+
const o = Oe(De(e, Ne, "jc"), "val");
|
|
8841
8841
|
"left" === o || "start" === o || "center" === o || "right" === o || "end" === o || "justify" === o ? r.align = "start" === o ? "left" : "end" === o ? "right" : o : "both" !== o && "distribute" !== o || (r.align = "justify");
|
|
8842
|
-
const i = De(e, Ne, "spacing"), a =
|
|
8842
|
+
const i = De(e, Ne, "spacing"), a = Oe(i, "before"), s = Oe(i, "after"), l = Oe(i, "line"), c = Oe(i, "lineRule");
|
|
8843
8843
|
a && (r.spacingBefore = Ke(a, 0)), s && (r.spacingAfter = Ke(s, 0)), l && ("exact" === c || "atLeast" === c ? (r.lineHeight = Qe(Number(l) / 1440 * 96, 4), r.lineRule = c) : r.lineHeight = Number(l) / 240);
|
|
8844
8844
|
const u = Be(e, "contextualSpacing");
|
|
8845
8845
|
void 0 !== u && (r.contextualSpacing = u);
|
|
8846
8846
|
const d = Be(e, "snapToGrid");
|
|
8847
8847
|
void 0 !== d && (r.snapToGrid = d);
|
|
8848
|
-
const p = De(e, Ne, "ind"), f =
|
|
8848
|
+
const p = De(e, Ne, "ind"), f = Oe(p, "start") ?? Oe(p, "left"), h = Oe(p, "end") ?? Oe(p, "right"), m = Oe(p, "firstLine"), g = Oe(p, "hanging");
|
|
8849
8849
|
f && (r.indentLeft = Ke(f, 0)), h && (r.indentRight = Ke(h, 0)), g ? (r.indentHanging = Ke(g, 0), r.indentFirstLine = void 0) : m && (r.indentFirstLine = Ke(m, 0));
|
|
8850
8850
|
const w = function(e) {
|
|
8851
8851
|
const t = De(e, Ne, "tabs");
|
|
8852
8852
|
if (!t) return [];
|
|
8853
8853
|
const r = [];
|
|
8854
8854
|
for (const n of Ce(t, Ne, "tab")) {
|
|
8855
|
-
const e = Je(
|
|
8855
|
+
const e = Je(Oe(n, "pos"));
|
|
8856
8856
|
if (void 0 === e) continue;
|
|
8857
|
-
const t =
|
|
8857
|
+
const t = Oe(n, "val"), o = "center" === t || "right" === t || "decimal" === t || "bar" === t || "clear" === t ? t : "left", i = Oe(n, "leader"), a = "dot" === i || "hyphen" === i || "underscore" === i || "heavy" === i || "middleDot" === i ? i : "none" === i ? "none" : void 0;
|
|
8858
8858
|
r.push({
|
|
8859
8859
|
position: e,
|
|
8860
8860
|
type: o,
|
|
@@ -8881,9 +8881,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8881
8881
|
}
|
|
8882
8882
|
const k = Tt(De(e, Ne, "shd"), t);
|
|
8883
8883
|
k && (r.shading = k);
|
|
8884
|
-
const T = Re(
|
|
8884
|
+
const T = Re(Oe(De(e, Ne, "textDirection"), "val"));
|
|
8885
8885
|
T && (r.textDirection = T);
|
|
8886
|
-
const _ =
|
|
8886
|
+
const _ = Oe(De(e, Ne, "outlineLvl"), "val");
|
|
8887
8887
|
if (void 0 !== _) {
|
|
8888
8888
|
const e = Number(_);
|
|
8889
8889
|
Number.isFinite(e) && e >= 0 && e <= 8 && (r.outlineLevel = e);
|
|
@@ -8902,26 +8902,26 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8902
8902
|
void 0 !== $ && (r.overflowPunct = $);
|
|
8903
8903
|
const P = Be(e, "topLinePunct");
|
|
8904
8904
|
void 0 !== P && (r.topLinePunct = P);
|
|
8905
|
-
const
|
|
8906
|
-
void 0 !==
|
|
8907
|
-
const
|
|
8908
|
-
void 0 !==
|
|
8905
|
+
const O = Be(e, "autoSpaceDE");
|
|
8906
|
+
void 0 !== O && (r.autoSpaceDE = O);
|
|
8907
|
+
const F = Be(e, "autoSpaceDN");
|
|
8908
|
+
void 0 !== F && (r.autoSpaceDN = F);
|
|
8909
8909
|
const M = Be(e, "adjustRightInd");
|
|
8910
8910
|
void 0 !== M && (r.adjustRightInd = M);
|
|
8911
|
-
const L =
|
|
8911
|
+
const L = Oe(De(e, Ne, "textAlignment"), "val");
|
|
8912
8912
|
"auto" !== L && "top" !== L && "center" !== L && "baseline" !== L && "bottom" !== L || (r.textAlignment = L);
|
|
8913
|
-
const B =
|
|
8913
|
+
const B = Oe(De(e, Ne, "textboxTightWrap"), "val");
|
|
8914
8914
|
"none" !== B && "allLines" !== B && "firstLineOnly" !== B && "firstLastLine" !== B || (r.textboxTightWrap = B);
|
|
8915
|
-
const U =
|
|
8915
|
+
const U = Oe(De(e, Ne, "divId"), "val");
|
|
8916
8916
|
if (null !== U) {
|
|
8917
8917
|
const e = Number(U);
|
|
8918
8918
|
Number.isFinite(e) && e >= 0 && (r.divId = Math.floor(e));
|
|
8919
8919
|
}
|
|
8920
|
-
const z =
|
|
8920
|
+
const z = Ot(e);
|
|
8921
8921
|
z && (r.conditionalStyle = z);
|
|
8922
8922
|
const H = De(e, Ne, "framePr");
|
|
8923
8923
|
if (H) {
|
|
8924
|
-
const e =
|
|
8924
|
+
const e = Oe(H, "dropCap");
|
|
8925
8925
|
e && "none" !== e || (r.framePrXml = new b.XMLSerializer().serializeToString(H));
|
|
8926
8926
|
}
|
|
8927
8927
|
const j = De(e, Ne, "pPrChange"), q = pt(j), W = De(j, Ne, "pPr");
|
|
@@ -8951,11 +8951,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8951
8951
|
function Qt(e) {
|
|
8952
8952
|
const t = De(e, Ne, "cols");
|
|
8953
8953
|
if (!t) return;
|
|
8954
|
-
const r = Number.parseInt(
|
|
8954
|
+
const r = Number.parseInt(Oe(t, "num") ?? "1", 10);
|
|
8955
8955
|
if (!Number.isFinite(r) || r <= 1) return;
|
|
8956
|
-
const n = Ke(
|
|
8957
|
-
width: Ke(
|
|
8958
|
-
space: Ke(
|
|
8956
|
+
const n = Ke(Oe(t, "space"), 0), o = Oe(t, "sep"), i = Oe(t, "equalWidth"), a = Ce(t, Ne, "col").map((e) => ({
|
|
8957
|
+
width: Ke(Oe(e, "w"), 0),
|
|
8958
|
+
space: Ke(Oe(e, "space"), n)
|
|
8959
8959
|
})), s = null == i || Yt(i);
|
|
8960
8960
|
return {
|
|
8961
8961
|
count: r,
|
|
@@ -8966,27 +8966,27 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8966
8966
|
};
|
|
8967
8967
|
}
|
|
8968
8968
|
function Kt(e) {
|
|
8969
|
-
const t = De(e, Ne, "pgSz"), r = De(e, Ne, "pgMar"), n = Qt(e), i = De(De(e, Ne, "pgBorders"), Ne, "top"), a =
|
|
8969
|
+
const t = De(e, Ne, "pgSz"), r = De(e, Ne, "pgMar"), n = Qt(e), i = De(De(e, Ne, "pgBorders"), Ne, "top"), a = Oe(i, "val"), s = Oe(i, "color"), l = Number.parseInt(Oe(i, "sz") ?? "0", 10), c = a && s && "nil" !== a ? {
|
|
8970
8970
|
style: "double" === a || "dashed" === a || "dotted" === a ? a : "single",
|
|
8971
8971
|
color: `#${s.replace(/^#/, "")}`,
|
|
8972
8972
|
width: Number.isFinite(l) && l > 0 ? l / 8 : 1,
|
|
8973
|
-
distance: Number(
|
|
8973
|
+
distance: Number(Oe(i, "space") ?? 0)
|
|
8974
8974
|
} : void 0;
|
|
8975
8975
|
let u;
|
|
8976
8976
|
if (t || r || n) {
|
|
8977
|
-
const e = Ke(
|
|
8977
|
+
const e = Ke(Oe(t, "w"), 816), o = Ke(Oe(t, "h"), 1056), i = Oe(t, "orient");
|
|
8978
8978
|
u = {
|
|
8979
8979
|
width: e,
|
|
8980
8980
|
height: o,
|
|
8981
8981
|
orientation: "landscape" === i ? "landscape" : "portrait" === i ? "portrait" : e > o ? "landscape" : "portrait",
|
|
8982
8982
|
margins: {
|
|
8983
|
-
top: Ke(
|
|
8984
|
-
right: Ke(
|
|
8985
|
-
bottom: Ke(
|
|
8986
|
-
left: Ke(
|
|
8987
|
-
header: Ke(
|
|
8988
|
-
footer: Ke(
|
|
8989
|
-
gutter: Ke(
|
|
8983
|
+
top: Ke(Oe(r, "top"), 96),
|
|
8984
|
+
right: Ke(Oe(r, "right"), 96),
|
|
8985
|
+
bottom: Ke(Oe(r, "bottom"), 96),
|
|
8986
|
+
left: Ke(Oe(r, "left"), 96),
|
|
8987
|
+
header: Ke(Oe(r, "header"), 48),
|
|
8988
|
+
footer: Ke(Oe(r, "footer"), 48),
|
|
8989
|
+
gutter: Ke(Oe(r, "gutter"), 0)
|
|
8990
8990
|
},
|
|
8991
8991
|
...n ? { columns: n } : {}
|
|
8992
8992
|
};
|
|
@@ -9000,10 +9000,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9000
9000
|
t && (r[e] = t);
|
|
9001
9001
|
}
|
|
9002
9002
|
return r;
|
|
9003
|
-
}, p = d("headerReference"), f = d("footerReference"), h = De(e, Ne, "docGrid"), m =
|
|
9003
|
+
}, p = d("headerReference"), f = d("footerReference"), h = De(e, Ne, "docGrid"), m = Oe(h, "type"), g = Ke(Oe(h, "linePitch"), NaN), w = Oe(De(e, Ne, "type"), "val"), b = "continuous" === w || "nextPage" === w || "evenPage" === w || "oddPage" === w || "nextColumn" === w ? w : void 0, v = De(e, Ne, "pgNumType");
|
|
9004
9004
|
let y;
|
|
9005
9005
|
if (v) {
|
|
9006
|
-
const e =
|
|
9006
|
+
const e = Oe(v, "start"), t = null !== e ? Number.parseInt(e, 10) : void 0, r = Oe(v, "fmt") ?? void 0, n = Oe(v, "chapStyle") ?? void 0, o = Oe(v, "chapSep") ?? void 0;
|
|
9007
9007
|
(void 0 !== t && Number.isFinite(t) || r || n || o) && (y = {
|
|
9008
9008
|
...void 0 !== t && Number.isFinite(t) ? { start: t } : {},
|
|
9009
9009
|
...r ? { format: r } : {},
|
|
@@ -9011,7 +9011,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9011
9011
|
...o ? { chapterSeparator: o } : {}
|
|
9012
9012
|
});
|
|
9013
9013
|
}
|
|
9014
|
-
const x =
|
|
9014
|
+
const x = Oe(De(e, Ne, "vAlign"), "val"), S = "center" === x || "both" === x || "bottom" === x ? x : void 0, E = Be(e, "bidi"), N = De(e, Ne, "sectPrChange"), k = pt(N), T = De(N, Ne, "sectPr"), _ = k && T ? {
|
|
9015
9015
|
...k,
|
|
9016
9016
|
type: "property",
|
|
9017
9017
|
previous: (I = Kt(T), C = u, {
|
|
@@ -9045,19 +9045,19 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9045
9045
|
if (!t) return;
|
|
9046
9046
|
const r = De(t, Ne, "pgSz"), n = De(t, Ne, "pgMar"), o = Qt(t);
|
|
9047
9047
|
if (!r && !n && !o) return;
|
|
9048
|
-
const i = Ke(
|
|
9048
|
+
const i = Ke(Oe(r, "w"), 816), a = Ke(Oe(r, "h"), 1056), s = Oe(r, "orient");
|
|
9049
9049
|
return {
|
|
9050
9050
|
width: i,
|
|
9051
9051
|
height: a,
|
|
9052
9052
|
orientation: "landscape" === s ? "landscape" : "portrait" === s ? "portrait" : i > a ? "landscape" : "portrait",
|
|
9053
9053
|
margins: {
|
|
9054
|
-
top: Ke(
|
|
9055
|
-
right: Ke(
|
|
9056
|
-
bottom: Ke(
|
|
9057
|
-
left: Ke(
|
|
9058
|
-
header: Ke(
|
|
9059
|
-
footer: Ke(
|
|
9060
|
-
gutter: Ke(
|
|
9054
|
+
top: Ke(Oe(n, "top"), 96),
|
|
9055
|
+
right: Ke(Oe(n, "right"), 96),
|
|
9056
|
+
bottom: Ke(Oe(n, "bottom"), 96),
|
|
9057
|
+
left: Ke(Oe(n, "left"), 96),
|
|
9058
|
+
header: Ke(Oe(n, "header"), 48),
|
|
9059
|
+
footer: Ke(Oe(n, "footer"), 48),
|
|
9060
|
+
gutter: Ke(Oe(n, "gutter"), 0)
|
|
9061
9061
|
},
|
|
9062
9062
|
...o ? { columns: o } : {}
|
|
9063
9063
|
};
|
|
@@ -9422,8 +9422,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9422
9422
|
};
|
|
9423
9423
|
}
|
|
9424
9424
|
}
|
|
9425
|
-
const
|
|
9426
|
-
function
|
|
9425
|
+
const Or = new b.XMLSerializer();
|
|
9426
|
+
function Fr(e, t) {
|
|
9427
9427
|
const r = [];
|
|
9428
9428
|
for (let n = 0; n < e.childNodes.length; n += 1) {
|
|
9429
9429
|
const o = e.childNodes[n];
|
|
@@ -9432,13 +9432,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9432
9432
|
return r;
|
|
9433
9433
|
}
|
|
9434
9434
|
function Mr(e, t) {
|
|
9435
|
-
return
|
|
9435
|
+
return Fr(e, t)[0];
|
|
9436
9436
|
}
|
|
9437
9437
|
function Lr(e, t) {
|
|
9438
9438
|
return e?.getAttributeNS("http://schemas.openxmlformats.org/officeDocument/2006/math", t) ?? e?.getAttribute(`m:${t}`) ?? e?.getAttribute(t) ?? void 0;
|
|
9439
9439
|
}
|
|
9440
9440
|
function Br(e) {
|
|
9441
|
-
return e ?
|
|
9441
|
+
return e ? Fr(e).map(Ur) : [];
|
|
9442
9442
|
}
|
|
9443
9443
|
function Ur(e) {
|
|
9444
9444
|
switch (e.localName) {
|
|
@@ -9480,7 +9480,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9480
9480
|
const t = Mr(e, "dPr");
|
|
9481
9481
|
return {
|
|
9482
9482
|
kind: "delimiter",
|
|
9483
|
-
children:
|
|
9483
|
+
children: Fr(e, "e").map(Br),
|
|
9484
9484
|
...Lr(Mr(t, "begChr"), "val") ? { begin: Lr(Mr(t, "begChr"), "val") } : {},
|
|
9485
9485
|
...Lr(Mr(t, "endChr"), "val") ? { end: Lr(Mr(t, "endChr"), "val") } : {},
|
|
9486
9486
|
...Lr(Mr(t, "sepChr"), "val") ? { separator: Lr(Mr(t, "sepChr"), "val") } : {},
|
|
@@ -9498,8 +9498,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9498
9498
|
kind: "nary",
|
|
9499
9499
|
operator: Lr(Mr(t, "chr"), "val") ?? "∑",
|
|
9500
9500
|
children: Br(Mr(e, "e")),
|
|
9501
|
-
...
|
|
9502
|
-
...
|
|
9501
|
+
...Fr(e, "sub").length > 0 ? { subscript: Br(Mr(e, "sub")) } : {},
|
|
9502
|
+
...Fr(e, "sup").length > 0 ? { superscript: Br(Mr(e, "sup")) } : {},
|
|
9503
9503
|
grow: "0" !== Lr(Mr(t, "grow"), "val")
|
|
9504
9504
|
};
|
|
9505
9505
|
}
|
|
@@ -9517,7 +9517,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9517
9517
|
};
|
|
9518
9518
|
case "m": return {
|
|
9519
9519
|
kind: "matrix",
|
|
9520
|
-
rows:
|
|
9520
|
+
rows: Fr(e, "mr").map((e) => Fr(e, "e").map(Br))
|
|
9521
9521
|
};
|
|
9522
9522
|
case "box":
|
|
9523
9523
|
case "borderBox": return {
|
|
@@ -9541,7 +9541,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9541
9541
|
};
|
|
9542
9542
|
default: return {
|
|
9543
9543
|
kind: "raw",
|
|
9544
|
-
xml:
|
|
9544
|
+
xml: Or.serializeToString(e),
|
|
9545
9545
|
fallbackText: e.textContent ?? ""
|
|
9546
9546
|
};
|
|
9547
9547
|
}
|
|
@@ -9550,9 +9550,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9550
9550
|
const t = "oMathPara" === e.localName ? Mr(e, "oMath") : e;
|
|
9551
9551
|
return {
|
|
9552
9552
|
version: 1,
|
|
9553
|
-
children: t ?
|
|
9553
|
+
children: t ? Fr(t).map(Ur) : [],
|
|
9554
9554
|
display: "oMathPara" === e.localName,
|
|
9555
|
-
sourceXml:
|
|
9555
|
+
sourceXml: Or.serializeToString(e)
|
|
9556
9556
|
};
|
|
9557
9557
|
}
|
|
9558
9558
|
const Hr = /* @__PURE__ */ new Set([
|
|
@@ -9583,63 +9583,63 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9583
9583
|
if (!e) return {};
|
|
9584
9584
|
const t = {}, r = De(e, Ne, "alias");
|
|
9585
9585
|
if (r) {
|
|
9586
|
-
const e =
|
|
9586
|
+
const e = Oe(r, "val");
|
|
9587
9587
|
null !== e && (t.alias = e);
|
|
9588
9588
|
}
|
|
9589
9589
|
const n = De(e, Ne, "tag");
|
|
9590
9590
|
if (n) {
|
|
9591
|
-
const e =
|
|
9591
|
+
const e = Oe(n, "val");
|
|
9592
9592
|
null !== e && (t.tag = e);
|
|
9593
9593
|
}
|
|
9594
9594
|
const o = De(e, Ne, "id");
|
|
9595
9595
|
if (o) {
|
|
9596
|
-
const e =
|
|
9596
|
+
const e = Oe(o, "val");
|
|
9597
9597
|
null !== e && (t.id = e);
|
|
9598
9598
|
}
|
|
9599
9599
|
const i = De(e, Ne, "lock");
|
|
9600
9600
|
if (i) {
|
|
9601
|
-
const e =
|
|
9601
|
+
const e = Oe(i, "val");
|
|
9602
9602
|
null !== e && (t.lock = e);
|
|
9603
9603
|
}
|
|
9604
9604
|
const a = De(e, Ne, "appearance");
|
|
9605
9605
|
if (a) {
|
|
9606
|
-
const e =
|
|
9606
|
+
const e = Oe(a, "val");
|
|
9607
9607
|
null !== e && (t.appearance = e);
|
|
9608
9608
|
}
|
|
9609
9609
|
const s = De(e, Ne, "showingPlcHdr");
|
|
9610
|
-
s && (t.showingPlcHdr = Le(
|
|
9610
|
+
s && (t.showingPlcHdr = Le(Oe(s, "val")));
|
|
9611
9611
|
const l = De(e, Ne, "temporary");
|
|
9612
|
-
l && (t.temporary = Le(
|
|
9612
|
+
l && (t.temporary = Le(Oe(l, "val")));
|
|
9613
9613
|
const c = De(e, Ne, "color");
|
|
9614
9614
|
if (c) {
|
|
9615
|
-
const e =
|
|
9615
|
+
const e = Oe(c, "val");
|
|
9616
9616
|
null !== e && (t.color = e);
|
|
9617
9617
|
}
|
|
9618
9618
|
const u = De(e, Ne, "placeholder");
|
|
9619
9619
|
if (u) {
|
|
9620
9620
|
const e = De(u, Ne, "docPart");
|
|
9621
9621
|
if (e) {
|
|
9622
|
-
const r =
|
|
9622
|
+
const r = Oe(e, "val");
|
|
9623
9623
|
null !== r && (t.placeholderDocPart = r);
|
|
9624
9624
|
}
|
|
9625
9625
|
}
|
|
9626
9626
|
const d = De(e, Ne, "dataBinding");
|
|
9627
9627
|
if (d) {
|
|
9628
9628
|
const e = function(e) {
|
|
9629
|
-
const t = {}, r =
|
|
9629
|
+
const t = {}, r = Oe(e, "prefixMappings"), n = Oe(e, "xpath"), o = Oe(e, "storeItemID");
|
|
9630
9630
|
null !== r && (t.prefixMappings = r);
|
|
9631
9631
|
null !== n && (t.xpath = n);
|
|
9632
9632
|
null !== o && (t.storeItemID = o);
|
|
9633
9633
|
if (void 0 === t.prefixMappings) {
|
|
9634
|
-
const r =
|
|
9634
|
+
const r = Oe(De(e, Ne, "prefixMappings"), "val");
|
|
9635
9635
|
null !== r && (t.prefixMappings = r);
|
|
9636
9636
|
}
|
|
9637
9637
|
if (void 0 === t.xpath) {
|
|
9638
|
-
const r =
|
|
9638
|
+
const r = Oe(De(e, Ne, "xpath"), "val");
|
|
9639
9639
|
null !== r && (t.xpath = r);
|
|
9640
9640
|
}
|
|
9641
9641
|
if (void 0 === t.storeItemID) {
|
|
9642
|
-
const r =
|
|
9642
|
+
const r = Oe(De(e, Ne, "storeItemID"), "val");
|
|
9643
9643
|
null !== r && (t.storeItemID = r);
|
|
9644
9644
|
}
|
|
9645
9645
|
return void 0 === t.prefixMappings && void 0 === t.xpath && void 0 === t.storeItemID ? null : t;
|
|
@@ -9653,7 +9653,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9653
9653
|
return {
|
|
9654
9654
|
kind: "comboBox",
|
|
9655
9655
|
listItems: Wr(t),
|
|
9656
|
-
...e ? { lastSelectedValue:
|
|
9656
|
+
...e ? { lastSelectedValue: Oe(e, "val") ?? void 0 } : {}
|
|
9657
9657
|
};
|
|
9658
9658
|
}
|
|
9659
9659
|
const r = De(e, Ne, "dropDownList");
|
|
@@ -9662,19 +9662,19 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9662
9662
|
return {
|
|
9663
9663
|
kind: "dropDownList",
|
|
9664
9664
|
listItems: Wr(r),
|
|
9665
|
-
...e ? { lastSelectedValue:
|
|
9665
|
+
...e ? { lastSelectedValue: Oe(e, "val") ?? void 0 } : {}
|
|
9666
9666
|
};
|
|
9667
9667
|
}
|
|
9668
9668
|
const n = De(e, Ne, "date");
|
|
9669
9669
|
if (n) {
|
|
9670
|
-
const e =
|
|
9670
|
+
const e = Oe(n, "fullDate") ?? void 0, t = De(n, Ne, "dateFormat"), r = De(n, Ne, "lid"), o = De(n, Ne, "calendar"), i = De(n, Ne, "storeMappedDataAs");
|
|
9671
9671
|
return {
|
|
9672
9672
|
kind: "date",
|
|
9673
9673
|
fullDate: e,
|
|
9674
|
-
dateFormat: t ?
|
|
9675
|
-
lid: r ?
|
|
9676
|
-
calendar: o ?
|
|
9677
|
-
storeMappedDataAs: i ?
|
|
9674
|
+
dateFormat: t ? Oe(t, "val") ?? void 0 : void 0,
|
|
9675
|
+
lid: r ? Oe(r, "val") ?? void 0 : void 0,
|
|
9676
|
+
calendar: o ? Oe(o, "val") ?? void 0 : void 0,
|
|
9677
|
+
storeMappedDataAs: i ? Oe(i, "val") ?? void 0 : void 0
|
|
9678
9678
|
};
|
|
9679
9679
|
}
|
|
9680
9680
|
if (De(e, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "text")) return { kind: "text" };
|
|
@@ -9690,17 +9690,17 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9690
9690
|
if (Pe(e, "repeatingSectionItem") || De(e, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "repeatingSectionItem")) return { kind: "repeatingSectionItem" };
|
|
9691
9691
|
const o = $e(e, "checkbox");
|
|
9692
9692
|
if (o) {
|
|
9693
|
-
const e = De(o, Te, "checked"), t = De(o, Te, "checkedState"), r = De(o, Te, "uncheckedState"), n = e ? Le(
|
|
9693
|
+
const e = De(o, Te, "checked"), t = De(o, Te, "checkedState"), r = De(o, Te, "uncheckedState"), n = e ? Le(Oe(e, "val")) : void 0;
|
|
9694
9694
|
return {
|
|
9695
9695
|
kind: "checkbox",
|
|
9696
9696
|
...void 0 !== n ? { checked: n } : {},
|
|
9697
9697
|
...t ? {
|
|
9698
|
-
checkedStateFont:
|
|
9699
|
-
checkedStateChar:
|
|
9698
|
+
checkedStateFont: Oe(t, "font") ?? void 0,
|
|
9699
|
+
checkedStateChar: Oe(t, "char") ?? void 0
|
|
9700
9700
|
} : {},
|
|
9701
9701
|
...r ? {
|
|
9702
|
-
uncheckedStateFont:
|
|
9703
|
-
uncheckedStateChar:
|
|
9702
|
+
uncheckedStateFont: Oe(r, "font") ?? void 0,
|
|
9703
|
+
uncheckedStateChar: Oe(r, "char") ?? void 0
|
|
9704
9704
|
} : {}
|
|
9705
9705
|
};
|
|
9706
9706
|
}
|
|
@@ -9708,9 +9708,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9708
9708
|
if (p && (t.subtype = p, "repeatingSection" === p.kind)) {
|
|
9709
9709
|
const r = Pe(e, "repeatingSection") ?? De(e, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "repeatingSection");
|
|
9710
9710
|
if (r) {
|
|
9711
|
-
const e = Pe(r, "sectionTitle"), n = Pe(r, "doNotAllowInsertDeleteSection"), o = {}, i =
|
|
9711
|
+
const e = Pe(r, "sectionTitle"), n = Pe(r, "doNotAllowInsertDeleteSection"), o = {}, i = Oe(e, "val");
|
|
9712
9712
|
if (null !== i && (o.sectionTitle = i), n) {
|
|
9713
|
-
const e =
|
|
9713
|
+
const e = Oe(n, "val");
|
|
9714
9714
|
o.doNotAllowInsertDeleteSection = null === e || Le(e);
|
|
9715
9715
|
}
|
|
9716
9716
|
Object.keys(o).length > 0 && (t.repeatingSectionProperties = o);
|
|
@@ -9731,8 +9731,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9731
9731
|
function Wr(e) {
|
|
9732
9732
|
const t = Ce(e, Ne, "listItem");
|
|
9733
9733
|
if (0 !== t.length) return t.map((e) => ({
|
|
9734
|
-
displayText:
|
|
9735
|
-
value:
|
|
9734
|
+
displayText: Oe(e, "displayText") ?? void 0,
|
|
9735
|
+
value: Oe(e, "value") ?? void 0
|
|
9736
9736
|
}));
|
|
9737
9737
|
}
|
|
9738
9738
|
const Xr = new Set(Object.keys({
|
|
@@ -10013,9 +10013,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10013
10013
|
return "1" === e || "true" === e || "0" !== e && "false" !== e && void 0;
|
|
10014
10014
|
}
|
|
10015
10015
|
function an(e, t) {
|
|
10016
|
-
const r =
|
|
10016
|
+
const r = Fe(e, t);
|
|
10017
10017
|
if (!r) return;
|
|
10018
|
-
const n =
|
|
10018
|
+
const n = Fe(r, "align")?.textContent?.trim(), o = Fe(r, "posOffset")?.textContent?.trim(), i = en(o), a = {
|
|
10019
10019
|
relativeFrom: r.getAttribute("relativeFrom") ?? void 0,
|
|
10020
10020
|
...n ? { align: n } : {},
|
|
10021
10021
|
...void 0 !== i ? { offset: i } : {}
|
|
@@ -10024,9 +10024,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10024
10024
|
}
|
|
10025
10025
|
function sn(e) {
|
|
10026
10026
|
const t = an(e, "positionH"), r = an(e, "positionV"), n = function(e) {
|
|
10027
|
-
return
|
|
10027
|
+
return Fe(e, "wrapSquare") ? "square" : Fe(e, "wrapTight") ? "tight" : Fe(e, "wrapThrough") ? "through" : Fe(e, "wrapTopAndBottom") ? "topAndBottom" : Fe(e, "wrapNone") ? "none" : void 0;
|
|
10028
10028
|
}(e), o = function(e) {
|
|
10029
|
-
const t =
|
|
10029
|
+
const t = Fe(e, "wrapSquare") ?? Fe(e, "wrapTight") ?? Fe(e, "wrapThrough");
|
|
10030
10030
|
if (!t) return;
|
|
10031
10031
|
const r = t.getAttribute("wrapText");
|
|
10032
10032
|
return !r || "bothSides" === r || "left" !== r && "right" !== r && "largest" !== r && "bothSides" !== r ? void 0 : r;
|
|
@@ -10050,7 +10050,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10050
10050
|
};
|
|
10051
10051
|
}
|
|
10052
10052
|
async function ln(e, t, r, n) {
|
|
10053
|
-
const o =
|
|
10053
|
+
const o = Fe(e, "blip");
|
|
10054
10054
|
if (!o) return {
|
|
10055
10055
|
text: "",
|
|
10056
10056
|
image: void 0
|
|
@@ -10062,14 +10062,14 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10062
10062
|
n && ("embed" === n.localName || "r:embed" === n.name ? t.embed = n.value : "link" !== n.localName && "r:link" !== n.name || (t.link = n.value));
|
|
10063
10063
|
}
|
|
10064
10064
|
return t;
|
|
10065
|
-
}(o), s = nn(e), l = s?.element ?? e, c =
|
|
10065
|
+
}(o), s = nn(e), l = s?.element ?? e, c = Fe(l, "extent"), u = Fe(l, "docPr");
|
|
10066
10066
|
let d = 300, p = 300;
|
|
10067
10067
|
if (c) {
|
|
10068
10068
|
const e = c.getAttribute("cx"), t = c.getAttribute("cy");
|
|
10069
10069
|
e && (d = Math.round(parseInt(e, 10) / I)), t && (p = Math.round(parseInt(t, 10) / I));
|
|
10070
10070
|
}
|
|
10071
|
-
const f = u ?
|
|
10072
|
-
const t =
|
|
10071
|
+
const f = u ? Oe(u, "descr") ?? Oe(u, "title") : null, h = function(e) {
|
|
10072
|
+
const t = Fe(e, "srcRect");
|
|
10073
10073
|
if (!t) return;
|
|
10074
10074
|
const r = (e) => {
|
|
10075
10075
|
const r = t.getAttribute(e);
|
|
@@ -10084,7 +10084,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10084
10084
|
};
|
|
10085
10085
|
return void 0 !== n.left || void 0 !== n.top || void 0 !== n.right || void 0 !== n.bottom ? n : void 0;
|
|
10086
10086
|
}(e), m = function(e) {
|
|
10087
|
-
const t =
|
|
10087
|
+
const t = Fe(e, "pic"), r = t && Fe(t, "spPr");
|
|
10088
10088
|
if (!r) return;
|
|
10089
10089
|
let n = null;
|
|
10090
10090
|
for (let l = 0; l < r.childNodes.length; l += 1) {
|
|
@@ -10111,30 +10111,30 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10111
10111
|
};
|
|
10112
10112
|
return Object.keys(i).length > 0 && (s.adjustments = i), s;
|
|
10113
10113
|
}(e), g = function(e) {
|
|
10114
|
-
if (
|
|
10114
|
+
if (Fe(e, "tile")) return "tile";
|
|
10115
10115
|
}(e), w = function(e) {
|
|
10116
|
-
const t =
|
|
10116
|
+
const t = Fe(e, "pic"), r = t && Fe(t, "spPr");
|
|
10117
10117
|
if (r) for (let n = 0; n < r.childNodes.length; n += 1) {
|
|
10118
10118
|
const e = r.childNodes[n];
|
|
10119
10119
|
if (1 !== e?.nodeType) continue;
|
|
10120
10120
|
const t = e;
|
|
10121
10121
|
if ("ln" !== t.localName) continue;
|
|
10122
|
-
const o = rn(
|
|
10122
|
+
const o = rn(Fe(t, "srgbClr")?.getAttribute("val"));
|
|
10123
10123
|
if (!o) return;
|
|
10124
10124
|
const i = { color: o }, a = en(t.getAttribute("w"));
|
|
10125
10125
|
void 0 !== a && (i.widthPt = Qe(a / C, 2));
|
|
10126
|
-
const s = Gr(
|
|
10126
|
+
const s = Gr(Fe(t, "prstDash")?.getAttribute("val"));
|
|
10127
10127
|
return s && (i.dash = s), i;
|
|
10128
10128
|
}
|
|
10129
10129
|
}(e), v = function(e) {
|
|
10130
|
-
const t =
|
|
10130
|
+
const t = Fe(e, "alphaModFix");
|
|
10131
10131
|
if (!t) return;
|
|
10132
10132
|
const r = t.getAttribute("amt");
|
|
10133
10133
|
if (null === r || "" === r) return;
|
|
10134
10134
|
const n = parseInt(r, 10);
|
|
10135
10135
|
return Number.isFinite(n) ? Math.round(1e3 * (1 - Math.max(0, Math.min(R, n)) / R)) / 1e3 : void 0;
|
|
10136
10136
|
}(e), y = function(e) {
|
|
10137
|
-
const t =
|
|
10137
|
+
const t = Fe(e, "xfrm");
|
|
10138
10138
|
if (!t) return {};
|
|
10139
10139
|
const r = {}, n = t.getAttribute("rot");
|
|
10140
10140
|
if (n) {
|
|
@@ -10146,7 +10146,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10146
10146
|
const i = t.getAttribute("flipV");
|
|
10147
10147
|
return "1" !== i && "true" !== i || (r.flipV = !0), r;
|
|
10148
10148
|
}(e), x = "anchor" === s?.kind ? sn(s.element) : void 0, S = "anchor" === s?.kind ? function(e) {
|
|
10149
|
-
const t =
|
|
10149
|
+
const t = Fe(e, "wrapPolygon");
|
|
10150
10150
|
if (!t) return;
|
|
10151
10151
|
const r = [];
|
|
10152
10152
|
for (let n = 0; n < t.childNodes.length; n += 1) {
|
|
@@ -10224,7 +10224,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10224
10224
|
return Number.isFinite(r) && 0 !== r ? r / 65536 : void 0;
|
|
10225
10225
|
}
|
|
10226
10226
|
async function un(e, t, r, n) {
|
|
10227
|
-
const o =
|
|
10227
|
+
const o = Fe(e, "imagedata");
|
|
10228
10228
|
if (!o) return;
|
|
10229
10229
|
const i = function(e) {
|
|
10230
10230
|
for (let t = 0; t < e.attributes.length; t += 1) {
|
|
@@ -10249,15 +10249,15 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10249
10249
|
}
|
|
10250
10250
|
}
|
|
10251
10251
|
return t;
|
|
10252
|
-
}(
|
|
10252
|
+
}(Fe(e, "shape")?.getAttribute("style")), l = function(e) {
|
|
10253
10253
|
const t = {
|
|
10254
|
-
left: cn(
|
|
10255
|
-
top: cn(
|
|
10256
|
-
right: cn(
|
|
10257
|
-
bottom: cn(
|
|
10254
|
+
left: cn(Oe(e, "cropleft")),
|
|
10255
|
+
top: cn(Oe(e, "croptop")),
|
|
10256
|
+
right: cn(Oe(e, "cropright")),
|
|
10257
|
+
bottom: cn(Oe(e, "cropbottom"))
|
|
10258
10258
|
};
|
|
10259
10259
|
if (void 0 !== t.left || void 0 !== t.top || void 0 !== t.right || void 0 !== t.bottom) return t;
|
|
10260
|
-
}(o), c =
|
|
10260
|
+
}(o), c = Oe(o, "title") ?? o.getAttribute("o:title"), u = await We(t, n, a);
|
|
10261
10261
|
return u ? {
|
|
10262
10262
|
src: u,
|
|
10263
10263
|
width: s.width ?? 300,
|
|
@@ -10267,30 +10267,30 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10267
10267
|
} : void 0;
|
|
10268
10268
|
}
|
|
10269
10269
|
async function dn(e, t) {
|
|
10270
|
-
const r =
|
|
10270
|
+
const r = Fe(e, "wsp");
|
|
10271
10271
|
if (!r) return;
|
|
10272
|
-
const n = nn(e), o = n?.element ?? e, i =
|
|
10273
|
-
const t =
|
|
10272
|
+
const n = nn(e), o = n?.element ?? e, i = Fe(o, "extent"), a = Jr(i?.getAttribute("cx")) ?? 300, s = Jr(i?.getAttribute("cy")) ?? 300, l = Fe(o, "docPr"), c = l ? Oe(l, "name") : null, u = l ? Oe(l, "descr") ?? Oe(l, "title") : null, d = "anchor" === n?.kind ? sn(n.element) : void 0, p = Fe(r, "txbxContent"), f = p && t ? await t(p) : [], h = function(e) {
|
|
10273
|
+
const t = Fe(e, "spPr");
|
|
10274
10274
|
if (!t) return;
|
|
10275
|
-
const r = {}, n =
|
|
10275
|
+
const r = {}, n = Fe(t, "prstGeom")?.getAttribute("prst");
|
|
10276
10276
|
n && (r.preset = n);
|
|
10277
10277
|
for (let o = 0; o < t.childNodes.length; o += 1) {
|
|
10278
10278
|
const e = t.childNodes[o];
|
|
10279
10279
|
if (e?.nodeType !== e.ELEMENT_NODE) continue;
|
|
10280
10280
|
const n = e;
|
|
10281
10281
|
if ("solidFill" === n.localName) {
|
|
10282
|
-
const e = rn(
|
|
10282
|
+
const e = rn(Fe(n, "srgbClr")?.getAttribute("val"));
|
|
10283
10283
|
e && (r.fill = e);
|
|
10284
10284
|
} else if ("ln" === n.localName) {
|
|
10285
10285
|
const e = en(n.getAttribute("w"));
|
|
10286
10286
|
void 0 !== e && (r.borderWidthPt = Qe(e / C, 2));
|
|
10287
|
-
const t = rn(
|
|
10287
|
+
const t = rn(Fe(n, "srgbClr")?.getAttribute("val"));
|
|
10288
10288
|
t && (r.borderColor = t);
|
|
10289
10289
|
}
|
|
10290
10290
|
}
|
|
10291
10291
|
return Object.keys(r).length > 0 ? r : void 0;
|
|
10292
10292
|
}(r), m = function(e) {
|
|
10293
|
-
const t =
|
|
10293
|
+
const t = Fe(e, "bodyPr");
|
|
10294
10294
|
if (!t) return;
|
|
10295
10295
|
const r = {}, n = Jr(t.getAttribute("lIns")), o = Jr(t.getAttribute("tIns")), i = Jr(t.getAttribute("rIns")), a = Jr(t.getAttribute("bIns"));
|
|
10296
10296
|
void 0 !== n && (r.paddingLeft = n), void 0 !== o && (r.paddingTop = o), void 0 !== i && (r.paddingRight = i), void 0 !== a && (r.paddingBottom = a);
|
|
@@ -10299,11 +10299,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10299
10299
|
const l = t.getAttribute("wrap");
|
|
10300
10300
|
l && (r.wrap = l);
|
|
10301
10301
|
const c = t.getAttribute("vert");
|
|
10302
|
-
return "vert" !== c && "vert270" !== c && "wordArtVert" !== c || (r.vert = c),
|
|
10302
|
+
return "vert" !== c && "vert270" !== c && "wordArtVert" !== c || (r.vert = c), Fe(t, "spAutoFit") && (r.autoFit = !0), Object.keys(r).length > 0 ? r : void 0;
|
|
10303
10303
|
}(r), g = function(e) {
|
|
10304
|
-
const t =
|
|
10304
|
+
const t = Fe(e, "spPr");
|
|
10305
10305
|
if (!t) return;
|
|
10306
|
-
const n = en(
|
|
10306
|
+
const n = en(Fe(t, "xfrm")?.getAttribute("rot"));
|
|
10307
10307
|
return void 0 !== n && 0 !== n && (Math.round(n / 6e4) % 360 + 360) % 360 || void 0;
|
|
10308
10308
|
}(r);
|
|
10309
10309
|
return {
|
|
@@ -10325,7 +10325,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10325
10325
|
if (n?.nodeType !== n.ELEMENT_NODE) continue;
|
|
10326
10326
|
const o = n;
|
|
10327
10327
|
if ("Choice" !== o.localName) continue;
|
|
10328
|
-
const i =
|
|
10328
|
+
const i = Fe(o, "drawing");
|
|
10329
10329
|
if (!i) continue;
|
|
10330
10330
|
void 0 === t && (t = i);
|
|
10331
10331
|
const a = o.getAttribute("Requires") ?? "";
|
|
@@ -10334,13 +10334,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10334
10334
|
return t;
|
|
10335
10335
|
}
|
|
10336
10336
|
function fn(e) {
|
|
10337
|
-
const t =
|
|
10337
|
+
const t = Oe(e, "id");
|
|
10338
10338
|
if (!t) return;
|
|
10339
10339
|
if ("bookmarkEnd" === e.localName) return {
|
|
10340
10340
|
kind: "end",
|
|
10341
10341
|
docxId: t
|
|
10342
10342
|
};
|
|
10343
|
-
const r =
|
|
10343
|
+
const r = Oe(e, "name") ?? void 0, n = Oe(e, "colFirst"), o = Oe(e, "colLast"), i = null !== n ? Number.parseInt(n, 10) : void 0, a = null !== o ? Number.parseInt(o, 10) : void 0;
|
|
10344
10344
|
return {
|
|
10345
10345
|
kind: "start",
|
|
10346
10346
|
docxId: t,
|
|
@@ -10350,7 +10350,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10350
10350
|
};
|
|
10351
10351
|
}
|
|
10352
10352
|
function hn(e) {
|
|
10353
|
-
const t =
|
|
10353
|
+
const t = Oe(e, "id");
|
|
10354
10354
|
if (t) return {
|
|
10355
10355
|
kind: "commentRangeEnd" === e.localName ? "end" : "start",
|
|
10356
10356
|
docxId: t
|
|
@@ -10365,11 +10365,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10365
10365
|
function gn(e) {
|
|
10366
10366
|
const t = e.localName;
|
|
10367
10367
|
if ("ins" !== t && "del" !== t && "moveFrom" !== t && "moveTo" !== t) return;
|
|
10368
|
-
const r =
|
|
10368
|
+
const r = Oe(e, "date"), n = r ? Date.parse(r) : NaN, o = "del" === t || "moveFrom" === t;
|
|
10369
10369
|
return {
|
|
10370
|
-
id:
|
|
10370
|
+
id: Oe(e, "id") ?? mn(e),
|
|
10371
10371
|
type: o ? "delete" : "insert",
|
|
10372
|
-
author:
|
|
10372
|
+
author: Oe(e, "author") ?? "Unknown",
|
|
10373
10373
|
date: Number.isFinite(n) ? n : 0,
|
|
10374
10374
|
..."moveFrom" === t ? { move: "from" } : "moveTo" === t ? { move: "to" } : {}
|
|
10375
10375
|
};
|
|
@@ -10377,11 +10377,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10377
10377
|
function wn(e) {
|
|
10378
10378
|
const t = /^move(From|To)Range(Start|End)$/.exec(e.localName ?? "");
|
|
10379
10379
|
if (!t) return;
|
|
10380
|
-
const r = "From" === t[1] ? "from" : "to", n = "Start" === t[2] ? "start" : "end", o =
|
|
10380
|
+
const r = "From" === t[1] ? "from" : "to", n = "Start" === t[2] ? "start" : "end", o = Oe(e, "date"), i = o ? Date.parse(o) : NaN, a = Oe(e, "colFirst"), s = Oe(e, "colLast"), l = null !== a ? Number.parseInt(a, 10) : NaN, c = null !== s ? Number.parseInt(s, 10) : NaN, u = Oe(e, "name") ?? void 0, d = Oe(e, "author") ?? void 0, p = Oe(e, "displacedByCustomXml") ?? void 0;
|
|
10381
10381
|
return {
|
|
10382
10382
|
move: r,
|
|
10383
10383
|
edge: n,
|
|
10384
|
-
id:
|
|
10384
|
+
id: Oe(e, "id") ?? mn(e),
|
|
10385
10385
|
...void 0 !== u ? { name: u } : {},
|
|
10386
10386
|
...void 0 !== d ? { author: d } : {},
|
|
10387
10387
|
...Number.isFinite(i) ? { date: i } : {},
|
|
@@ -10405,7 +10405,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10405
10405
|
else if ("noBreakHyphen" === i.localName) f("‑");
|
|
10406
10406
|
else if ("softHyphen" === i.localName) f("");
|
|
10407
10407
|
else if ("br" === i.localName) {
|
|
10408
|
-
const e =
|
|
10408
|
+
const e = Oe(i, "type");
|
|
10409
10409
|
f("page" === e ? "\f" : "column" === e ? "\v" : "\n");
|
|
10410
10410
|
} else {
|
|
10411
10411
|
if ("lastRenderedPageBreak" === i.localName) continue;
|
|
@@ -10438,7 +10438,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10438
10438
|
const e = await un(i, t, r, n);
|
|
10439
10439
|
e && (f(""), s = e);
|
|
10440
10440
|
} else if ("sym" === i.localName) {
|
|
10441
|
-
const e =
|
|
10441
|
+
const e = Oe(i, "font") ?? "", t = Oe(i, "char") ?? "", r = parseInt(t, 16);
|
|
10442
10442
|
f(Number.isFinite(r) && r > 0 ? String.fromCodePoint(r) : "?"), c = {
|
|
10443
10443
|
font: e,
|
|
10444
10444
|
char: t
|
|
@@ -10496,7 +10496,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10496
10496
|
field: t
|
|
10497
10497
|
});
|
|
10498
10498
|
}, d = (e, t) => {
|
|
10499
|
-
const r =
|
|
10499
|
+
const r = Oe(e, "fldCharType"), n = Oe(e, "fldLock"), o = Oe(e, "dirty"), i = "true" === n || "1" === n || "on" === n, a = "true" === o || "1" === o || "on" === o;
|
|
10500
10500
|
if ("begin" === r) {
|
|
10501
10501
|
const e = c.length > 0;
|
|
10502
10502
|
for (const t of c) t.nested = !0;
|
|
@@ -10690,7 +10690,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10690
10690
|
t += "\n";
|
|
10691
10691
|
break;
|
|
10692
10692
|
case "br": {
|
|
10693
|
-
const r =
|
|
10693
|
+
const r = Oe(e, "type");
|
|
10694
10694
|
t += "page" === r ? "\f" : "column" === r ? "\v" : "\n";
|
|
10695
10695
|
break;
|
|
10696
10696
|
}
|
|
@@ -10720,9 +10720,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10720
10720
|
}
|
|
10721
10721
|
const g = De(h, Ne, "footnoteReference");
|
|
10722
10722
|
if (g) {
|
|
10723
|
-
const t =
|
|
10723
|
+
const t = Oe(g, "id");
|
|
10724
10724
|
if (!t) continue;
|
|
10725
|
-
const r =
|
|
10725
|
+
const r = Oe(g, "customMarkFollows");
|
|
10726
10726
|
let n = e;
|
|
10727
10727
|
(n ??= {}).styleId ??= "footnoteReference", void 0 === n.superscript && (n.superscript = !0), l.push({
|
|
10728
10728
|
text: "?",
|
|
@@ -10736,9 +10736,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10736
10736
|
}
|
|
10737
10737
|
const w = De(h, Ne, "endnoteReference");
|
|
10738
10738
|
if (w) {
|
|
10739
|
-
const t =
|
|
10739
|
+
const t = Oe(w, "id");
|
|
10740
10740
|
if (!t) continue;
|
|
10741
|
-
const r =
|
|
10741
|
+
const r = Oe(w, "customMarkFollows");
|
|
10742
10742
|
let n = e;
|
|
10743
10743
|
(n ??= {}).styleId ??= "endnoteReference", void 0 === n.superscript && (n.superscript = !0), l.push({
|
|
10744
10744
|
text: "?",
|
|
@@ -10797,7 +10797,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10797
10797
|
continue;
|
|
10798
10798
|
}
|
|
10799
10799
|
if ("fldSimple" === h.localName) {
|
|
10800
|
-
const e = h.getAttribute("w:instr") ?? h.getAttributeNS("http://schemas.openxmlformats.org/wordprocessingml/2006/main", "instr") ?? h.getAttribute("instr") ?? "", u = Pr(e), d = await vn(h, t, r, n, o, i, a, s), p =
|
|
10800
|
+
const e = h.getAttribute("w:instr") ?? h.getAttributeNS("http://schemas.openxmlformats.org/wordprocessingml/2006/main", "instr") ?? h.getAttribute("instr") ?? "", u = Pr(e), d = await vn(h, t, r, n, o, i, a, s), p = Oe(h, "fldLock"), f = Oe(h, "dirty"), m = "true" === p || "1" === p || "on" === p, g = "true" === f || "1" === f || "on" === f;
|
|
10801
10801
|
if (!u || m || g || c.length || !nr(d)) {
|
|
10802
10802
|
for (const e of c) e.nested = !0;
|
|
10803
10803
|
l.push({
|
|
@@ -10830,7 +10830,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10830
10830
|
if ("hyperlink" === h.localName) {
|
|
10831
10831
|
let e = n.get(h.getAttribute("r:id") ?? h.getAttributeNS("http://schemas.openxmlformats.org/officeDocument/2006/relationships", "id") ?? "") ?? null;
|
|
10832
10832
|
if (!e) {
|
|
10833
|
-
const t =
|
|
10833
|
+
const t = Oe(h, "anchor");
|
|
10834
10834
|
t && (e = `#${t}`);
|
|
10835
10835
|
}
|
|
10836
10836
|
l.push(...await vn(h, t, r, n, o, i, e, s));
|
|
@@ -10897,10 +10897,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10897
10897
|
numberingRevision: e.numberingRevision
|
|
10898
10898
|
});
|
|
10899
10899
|
}
|
|
10900
|
-
function
|
|
10900
|
+
function On(e) {
|
|
10901
10901
|
return e.ooxmlSource;
|
|
10902
10902
|
}
|
|
10903
|
-
function
|
|
10903
|
+
function Fn(e) {
|
|
10904
10904
|
return Nn(e);
|
|
10905
10905
|
}
|
|
10906
10906
|
function Mn(e) {
|
|
@@ -11074,9 +11074,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11074
11074
|
if (!e) return;
|
|
11075
11075
|
const r = De(e, Ne, "numPr");
|
|
11076
11076
|
if (!r) return;
|
|
11077
|
-
const n =
|
|
11077
|
+
const n = Oe(De(r, Ne, "numId"), "val");
|
|
11078
11078
|
if (!n) return;
|
|
11079
|
-
const o =
|
|
11079
|
+
const o = Oe(De(r, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "ilvl"), "val") ?? "0", i = Number.parseInt(o, 10), a = Number.isFinite(i) ? i : 0, s = wt(t, n, a), l = [];
|
|
11080
11080
|
for (let m = 0; m <= a; m += 1) l[m] = wt(t, n, m).format ?? "decimal";
|
|
11081
11081
|
const c = `${n}:${a}`, u = !t.seenInstances.has(c);
|
|
11082
11082
|
t.seenInstances.add(c);
|
|
@@ -11114,7 +11114,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11114
11114
|
if (!e) return;
|
|
11115
11115
|
const r = De(De(e, Ne, "numPr"), Ne, "numberingChange"), n = pt(r);
|
|
11116
11116
|
if (!n) return;
|
|
11117
|
-
const o =
|
|
11117
|
+
const o = Oe(r, "original") ?? void 0;
|
|
11118
11118
|
return {
|
|
11119
11119
|
...n,
|
|
11120
11120
|
...void 0 !== o ? { original: o } : {}
|
|
@@ -11135,11 +11135,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11135
11135
|
} : m), w = function(e, t) {
|
|
11136
11136
|
const r = De(e, Ne, "framePr");
|
|
11137
11137
|
if (!r) return null;
|
|
11138
|
-
const n =
|
|
11138
|
+
const n = Oe(r, "dropCap");
|
|
11139
11139
|
if (!n || "none" === n) return null;
|
|
11140
11140
|
const o = t.map((e) => e.text).join("");
|
|
11141
11141
|
if (0 === o.length) return null;
|
|
11142
|
-
const i = Number(
|
|
11142
|
+
const i = Number(Oe(r, "lines"));
|
|
11143
11143
|
return {
|
|
11144
11144
|
text: o,
|
|
11145
11145
|
lines: Number.isFinite(i) && i > 0 ? i : 3,
|
|
@@ -11241,8 +11241,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11241
11241
|
}(t, r.map((e) => function(e) {
|
|
11242
11242
|
const t = De(e, Ne, "spacing");
|
|
11243
11243
|
return {
|
|
11244
|
-
before: Le(
|
|
11245
|
-
after: Le(
|
|
11244
|
+
before: Le(Oe(t, "beforeAutospacing")),
|
|
11245
|
+
after: Le(Oe(t, "afterAutospacing"))
|
|
11246
11246
|
};
|
|
11247
11247
|
}(De(e, Ne, "pPr"))));
|
|
11248
11248
|
}
|
|
@@ -11270,14 +11270,14 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11270
11270
|
async function to(e, t, r, n, o, i, a, s) {
|
|
11271
11271
|
const l = [], c = De(e, Ne, "tblGrid");
|
|
11272
11272
|
if (c) for (const b of Ce(c, Ne, "gridCol")) {
|
|
11273
|
-
const e = Je(
|
|
11273
|
+
const e = Je(Oe(b, "w"));
|
|
11274
11274
|
void 0 !== e && l.push(e);
|
|
11275
11275
|
}
|
|
11276
|
-
const u = De(c, Ne, "tblGridChange"), d = De(e, Ne, "tblPr"), p =
|
|
11276
|
+
const u = De(c, Ne, "tblGridChange"), d = De(e, Ne, "tblPr"), p = Oe(De(d, Ne, "tblStyle"), "val"), f = Bt(d, p ?? void 0), h = function(e) {
|
|
11277
11277
|
const t = De(e, Ne, "tblLook"), r = (e) => {
|
|
11278
|
-
const r =
|
|
11278
|
+
const r = Oe(t, e);
|
|
11279
11279
|
return null === r || "" === r ? void 0 : Le(r);
|
|
11280
|
-
}, n =
|
|
11280
|
+
}, n = Oe(t, "val"), o = n ? Number.parseInt(n, 16) : NaN, i = (e) => Number.isFinite(o) ? 0 !== (o & e) : void 0;
|
|
11281
11281
|
return {
|
|
11282
11282
|
firstRow: r("firstRow") ?? i(32) ?? !0,
|
|
11283
11283
|
lastRow: r("lastRow") ?? i(64) ?? !1,
|
|
@@ -11288,7 +11288,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11288
11288
|
};
|
|
11289
11289
|
}(d), m = Kn(e, "tr"), g = [];
|
|
11290
11290
|
for (let v = 0; v < m.length; v += 1) {
|
|
11291
|
-
const e = m[v], t = e.element, r = De(t, Ne, "trPr"), n =
|
|
11291
|
+
const e = m[v], t = e.element, r = De(t, Ne, "trPr"), n = Ot(r), o = Kn(t, "tc"), s = [];
|
|
11292
11292
|
for (let p = 0; p < o.length; p += 1) {
|
|
11293
11293
|
const e = o[p], t = e.element, r = De(t, Ne, "tcPr"), n = await a(t);
|
|
11294
11294
|
Jn(t, n);
|
|
@@ -11302,7 +11302,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11302
11302
|
rowSpan: 1,
|
|
11303
11303
|
vMerge: c
|
|
11304
11304
|
} : c ? { vMerge: c } : void 0);
|
|
11305
|
-
u && (d.style = u), d.conditionalStyle =
|
|
11305
|
+
u && (d.style = u), d.conditionalStyle = Ot(r), e.sdtWrappers?.length && (d.sdtWrappers = [...e.sdtWrappers]);
|
|
11306
11306
|
const f = Me(t);
|
|
11307
11307
|
f && (d.extAttributes = f), eo(d), "continue" === c && (d.blocks = []), s.push(d);
|
|
11308
11308
|
}
|
|
@@ -11345,10 +11345,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11345
11345
|
};
|
|
11346
11346
|
}(g, l.length > 0 ? l : void 0);
|
|
11347
11347
|
if (f && (w.style = f), w.style ? w.style.tblLook = h : p && (w.style = { tblLook: h }), u) {
|
|
11348
|
-
const e = De(u, Ne, "tblGrid"), t = e ? Ce(e, Ne, "gridCol").map((e) => Je(
|
|
11348
|
+
const e = De(u, Ne, "tblGrid"), t = e ? Ce(e, Ne, "gridCol").map((e) => Je(Oe(e, "w"))).filter((e) => void 0 !== e) : [], r = Oe(u, "date"), n = r ? Date.parse(r) : NaN;
|
|
11349
11349
|
w.gridRevision = {
|
|
11350
|
-
id:
|
|
11351
|
-
author:
|
|
11350
|
+
id: Oe(u, "id") ?? "revision:grid",
|
|
11351
|
+
author: Oe(u, "author") ?? "Unknown",
|
|
11352
11352
|
date: Number.isFinite(n) ? n : 0,
|
|
11353
11353
|
type: "grid",
|
|
11354
11354
|
previous: t
|
|
@@ -11365,7 +11365,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11365
11365
|
}
|
|
11366
11366
|
const n = {
|
|
11367
11367
|
xml: r.xml,
|
|
11368
|
-
semanticSignature:
|
|
11368
|
+
semanticSignature: Fn(e)
|
|
11369
11369
|
};
|
|
11370
11370
|
r.tablePropertiesXml && (n.tableProperties = {
|
|
11371
11371
|
xml: r.tablePropertiesXml,
|
|
@@ -11434,7 +11434,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11434
11434
|
let m = 0;
|
|
11435
11435
|
const g = oo(r, n, o, i, a);
|
|
11436
11436
|
for (const w of h) {
|
|
11437
|
-
const t =
|
|
11437
|
+
const t = Oe(w, "id") ?? "", s = Oe(w, "type") ?? "", l = [];
|
|
11438
11438
|
for (let e = 0; e < w.childNodes.length; e += 1) {
|
|
11439
11439
|
const t = w.childNodes[e];
|
|
11440
11440
|
if (t?.nodeType !== t.ELEMENT_NODE) continue;
|
|
@@ -11771,9 +11771,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11771
11771
|
return t;
|
|
11772
11772
|
}(t);
|
|
11773
11773
|
for (const i of Ce(n, Ne, "comment")) {
|
|
11774
|
-
const e =
|
|
11774
|
+
const e = Oe(i, "id");
|
|
11775
11775
|
if (null === e) continue;
|
|
11776
|
-
const t =
|
|
11776
|
+
const t = Oe(i, "author") ?? "", n = Oe(i, "initials") ?? void 0, a = To(Oe(i, "date")), s = To(i.getAttributeNS("http://schemas.microsoft.com/office/word/2023/wordml/word16du", "dateUtc")), l = Ce(i, Ne, "p"), c = l.map((e) => ko(e)).join("\n").trim(), u = l.length > 0 ? Oe(l[0], "paraId") ?? void 0 : void 0, d = void 0 !== u ? o.get(u) : void 0;
|
|
11777
11777
|
r.set(e, {
|
|
11778
11778
|
author: t,
|
|
11779
11779
|
...n ? { initials: n } : {},
|
|
@@ -11803,18 +11803,18 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11803
11803
|
const r = new b.DOMParser().parseFromString(e, "application/xml").documentElement;
|
|
11804
11804
|
if (!r) return t;
|
|
11805
11805
|
for (const n of Array.from(r.getElementsByTagNameNS(Ne, "abstractNum"))) {
|
|
11806
|
-
const e =
|
|
11806
|
+
const e = Oe(n, "abstractNumId");
|
|
11807
11807
|
if (e) for (const r of Ce(n, Ne, "lvl")) {
|
|
11808
|
-
const n =
|
|
11808
|
+
const n = Oe(r, "ilvl") ?? "0";
|
|
11809
11809
|
t.abstractLevels.set(`${e}:${n}`, gt(r));
|
|
11810
11810
|
}
|
|
11811
11811
|
}
|
|
11812
11812
|
for (const n of Array.from(r.getElementsByTagNameNS(Ne, "num"))) {
|
|
11813
|
-
const e =
|
|
11813
|
+
const e = Oe(n, "numId"), r = Oe(De(n, Ne, "abstractNumId"), "val");
|
|
11814
11814
|
if (e && r) {
|
|
11815
11815
|
t.numToAbstractId.set(e, r);
|
|
11816
11816
|
for (const r of Ce(n, Ne, "lvlOverride")) {
|
|
11817
|
-
const n =
|
|
11817
|
+
const n = Oe(r, "ilvl") ?? "0", o = De(r, Ne, "lvl");
|
|
11818
11818
|
o && t.numOverrideLevels.set(`${e}:${n}`, gt(o));
|
|
11819
11819
|
const i = ht(De(r, Ne, "startOverride"));
|
|
11820
11820
|
void 0 !== i && t.numStartOverrides.set(`${e}:${n}`, i);
|
|
@@ -11825,32 +11825,32 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11825
11825
|
}(await r.file("word/numbering.xml")?.async("string") ?? null), a = function(e) {
|
|
11826
11826
|
const t = { adjustLineHeightInTable: !0 };
|
|
11827
11827
|
if (!e) return t;
|
|
11828
|
-
const r = new b.DOMParser().parseFromString(e, "application/xml"), n = Je(
|
|
11828
|
+
const r = new b.DOMParser().parseFromString(e, "application/xml"), n = Je(Oe(De(r.documentElement, Ne, "defaultTabStop"), "val"));
|
|
11829
11829
|
void 0 !== n && Number.isFinite(n) && n > 0 && (t.defaultTabStop = n);
|
|
11830
11830
|
const o = De(r.documentElement, Ne, "autoHyphenation");
|
|
11831
11831
|
if (o) {
|
|
11832
|
-
const e =
|
|
11832
|
+
const e = Oe(o, "val");
|
|
11833
11833
|
t.autoHyphenation = "0" !== e && "false" !== e;
|
|
11834
11834
|
}
|
|
11835
11835
|
const i = De(r.documentElement, Ne, "doNotHyphenateCaps");
|
|
11836
11836
|
if (i) {
|
|
11837
|
-
const e =
|
|
11837
|
+
const e = Oe(i, "val");
|
|
11838
11838
|
t.doNotHyphenateCaps = "0" !== e && "false" !== e;
|
|
11839
11839
|
}
|
|
11840
|
-
const a = Number.parseInt(
|
|
11840
|
+
const a = Number.parseInt(Oe(De(r.documentElement, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "consecutiveHyphenLimit"), "val") ?? "", 10);
|
|
11841
11841
|
Number.isFinite(a) && a >= 0 && (t.consecutiveHyphenLimit = a);
|
|
11842
|
-
const s = Je(
|
|
11842
|
+
const s = Je(Oe(De(r.documentElement, Ne, "hyphenationZone"), "val"));
|
|
11843
11843
|
void 0 !== s && (t.hyphenationZone = s), t.footnoteSettings = ct(De(r.documentElement, Ne, "footnotePr")), t.endnoteSettings = ct(De(r.documentElement, Ne, "endnotePr"));
|
|
11844
11844
|
const l = De(r.documentElement, Ne, "compat");
|
|
11845
11845
|
if (l) {
|
|
11846
11846
|
const e = De(l, Ne, "adjustLineHeightInTable");
|
|
11847
11847
|
if (e) {
|
|
11848
|
-
const r =
|
|
11848
|
+
const r = Oe(e, "val");
|
|
11849
11849
|
t.adjustLineHeightInTable = "0" !== r && "false" !== r;
|
|
11850
11850
|
}
|
|
11851
11851
|
const r = De(l, Ne, "allowSpaceOfSameStyleInTable");
|
|
11852
11852
|
if (r) {
|
|
11853
|
-
const e =
|
|
11853
|
+
const e = Oe(r, "val");
|
|
11854
11854
|
t.allowSpaceOfSameStyleInTable = "0" !== e && "false" !== e;
|
|
11855
11855
|
}
|
|
11856
11856
|
}
|
|
@@ -11861,17 +11861,17 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11861
11861
|
if (!t) return;
|
|
11862
11862
|
const r = [];
|
|
11863
11863
|
for (const n of Ce(t, Ne, "font")) {
|
|
11864
|
-
const e =
|
|
11864
|
+
const e = Oe(n, "name");
|
|
11865
11865
|
if (!e) continue;
|
|
11866
|
-
const t = { name: e }, o =
|
|
11866
|
+
const t = { name: e }, o = Oe(De(n, Ne, "altName"), "val");
|
|
11867
11867
|
o && (t.altName = o);
|
|
11868
|
-
const i =
|
|
11868
|
+
const i = Oe(De(n, Ne, "family"), "val");
|
|
11869
11869
|
i && (t.family = i);
|
|
11870
|
-
const a =
|
|
11870
|
+
const a = Oe(De(n, Ne, "pitch"), "val");
|
|
11871
11871
|
a && (t.pitch = a);
|
|
11872
|
-
const s =
|
|
11872
|
+
const s = Oe(De(n, Ne, "charset"), "val");
|
|
11873
11873
|
s && (t.charset = s);
|
|
11874
|
-
const l =
|
|
11874
|
+
const l = Oe(De(n, Ne, "panose1"), "val");
|
|
11875
11875
|
l && (t.panose1 = l);
|
|
11876
11876
|
const c = De(n, Ne, "sig");
|
|
11877
11877
|
if (c) {
|
|
@@ -11896,22 +11896,22 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11896
11896
|
} : Gt(Vt(o, t.colors)), s = At(i, t), l = {};
|
|
11897
11897
|
let c;
|
|
11898
11898
|
for (const u of Ce(r, Ne, "style")) {
|
|
11899
|
-
const e =
|
|
11899
|
+
const e = Oe(u, "styleId"), r = Oe(u, "type");
|
|
11900
11900
|
if (!e || "paragraph" !== r && "character" !== r && "table" !== r) continue;
|
|
11901
|
-
const n =
|
|
11901
|
+
const n = Oe(De(u, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "name"), "val") ?? e, o = Oe(u, "customStyle"), i = null == o ? void 0 : Le(o), d = yt({
|
|
11902
11902
|
id: e,
|
|
11903
11903
|
name: n,
|
|
11904
11904
|
type: r,
|
|
11905
11905
|
customStyle: i
|
|
11906
|
-
}), p =
|
|
11906
|
+
}), p = Oe(De(u, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "basedOn"), "val") ?? void 0, f = Oe(De(u, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "next"), "val") ?? void 0, h = Be(u, "qFormat"), m = Be(u, "semiHidden"), g = Be(u, "unhideWhenUsed"), w = Oe(De(u, Ne, "uiPriority"), "val"), b = null === w ? NaN : Number(w), v = Number.isInteger(b) && b >= 0 ? b : void 0, y = Gt(Vt(De(u, Ne, "pPr"), t.colors)), x = At(De(u, Ne, "rPr"), t);
|
|
11907
11907
|
let S;
|
|
11908
11908
|
if ("table" === r) {
|
|
11909
11909
|
const r = De(u, Ne, "tblPr"), n = (e) => {
|
|
11910
|
-
const t =
|
|
11910
|
+
const t = Oe(De(r, Ne, e), "val"), n = t ? Number(t) : NaN;
|
|
11911
11911
|
return Number.isFinite(n) && n > 0 ? Math.floor(n) : void 0;
|
|
11912
11912
|
}, o = n("tblStyleRowBandSize"), i = n("tblStyleColBandSize"), a = {};
|
|
11913
11913
|
for (const e of Ce(u, Ne, "tblStylePr")) {
|
|
11914
|
-
const r =
|
|
11914
|
+
const r = Oe(e, "type");
|
|
11915
11915
|
if (!r) continue;
|
|
11916
11916
|
const n = De(e, Ne, "tcPr"), o = qt(n, void 0, t.colors), i = Bt(De(e, Ne, "tblPr")), s = Tt(De(n, Ne, "shd"), t.colors), l = At(De(e, Ne, "rPr"), t), c = Nt(St(De(n, Ne, "tcBorders"))), u = Vt(De(e, Ne, "pPr"), t.colors), d = Ut(De(e, Ne, "trPr"));
|
|
11917
11917
|
(s || l || c || u || d || o || i) && (a[r] = {
|
|
@@ -11931,14 +11931,14 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11931
11931
|
...Object.keys(a).length > 0 ? { conditionalFormats: a } : {}
|
|
11932
11932
|
};
|
|
11933
11933
|
}
|
|
11934
|
-
const E = "paragraph" === r && Le(
|
|
11934
|
+
const E = "paragraph" === r && Le(Oe(u, "default"));
|
|
11935
11935
|
E && (c = e), l[e] = {
|
|
11936
11936
|
id: e,
|
|
11937
11937
|
name: n,
|
|
11938
11938
|
type: r,
|
|
11939
11939
|
...d ? { builtinStyle: d } : {},
|
|
11940
11940
|
...void 0 !== i ? { customStyle: i } : {},
|
|
11941
|
-
isDefault: Le(
|
|
11941
|
+
isDefault: Le(Oe(u, "default")),
|
|
11942
11942
|
basedOn: p,
|
|
11943
11943
|
nextStyle: f,
|
|
11944
11944
|
qFormat: h,
|
|
@@ -12018,9 +12018,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12018
12018
|
}
|
|
12019
12019
|
t.onProgress?.("parsing-headers-footers");
|
|
12020
12020
|
const D = [], $ = (e) => Object.keys(e.headerRIds).length > 0 || Object.keys(e.footerRIds).length > 0, P = S.filter($).length;
|
|
12021
|
-
let
|
|
12022
|
-
const
|
|
12023
|
-
|
|
12021
|
+
let O = 0;
|
|
12022
|
+
const F = () => {
|
|
12023
|
+
O += 1, P > 0 && t.onProgress?.("parsing-headers-footers", O / P);
|
|
12024
12024
|
};
|
|
12025
12025
|
for (let w = 0; w < S.length; w += 1) {
|
|
12026
12026
|
const e = S[w], t = E[w] ?? [];
|
|
@@ -12058,7 +12058,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12058
12058
|
const u = await io(l ?? null, i, r, c, v, d);
|
|
12059
12059
|
return er(u, e.docGridLinePitchPx, e.docGridMode, e.docGridType, a), u;
|
|
12060
12060
|
}, s = await n(e.headerRIds.default), l = await n(e.headerRIds.first), c = await n(e.headerRIds.even), u = await n(e.footerRIds.default), p = await n(e.footerRIds.first), f = await n(e.footerRIds.even);
|
|
12061
|
-
$(e) &&
|
|
12061
|
+
$(e) && F(), await ze(2, O);
|
|
12062
12062
|
const h = Z(e.pageSettings ?? {
|
|
12063
12063
|
width: 816,
|
|
12064
12064
|
height: 1056,
|
|
@@ -12308,13 +12308,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12308
12308
|
}
|
|
12309
12309
|
return r;
|
|
12310
12310
|
}
|
|
12311
|
-
function
|
|
12311
|
+
function Oo(e) {
|
|
12312
12312
|
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">${e.map((e) => {
|
|
12313
12313
|
const t = "External" === e.targetMode ? " TargetMode=\"External\"" : "";
|
|
12314
12314
|
return `<Relationship Id="${Ao(e.id)}" Type="${Ao(e.type)}" Target="${Ao(e.target)}"${t}/>`;
|
|
12315
12315
|
}).join("")}</Relationships>`;
|
|
12316
12316
|
}
|
|
12317
|
-
function
|
|
12317
|
+
function Fo(e, t, r) {
|
|
12318
12318
|
return t.map((t) => {
|
|
12319
12319
|
if ("External" === t.targetMode) return {
|
|
12320
12320
|
...t,
|
|
@@ -12936,13 +12936,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12936
12936
|
return e.localName ?? e.tagName;
|
|
12937
12937
|
}(e)}`;
|
|
12938
12938
|
}
|
|
12939
|
-
function
|
|
12939
|
+
function Oi(e, t, r) {
|
|
12940
12940
|
const n = Pi(e[t]);
|
|
12941
12941
|
let o = 0;
|
|
12942
12942
|
for (let i = 0; i < t; i += 1) Pi(e[i]) === n && (o += 1);
|
|
12943
12943
|
return r.filter((e) => Pi(e) === n)[o];
|
|
12944
12944
|
}
|
|
12945
|
-
function
|
|
12945
|
+
function Fi(e, t) {
|
|
12946
12946
|
(function(e, t) {
|
|
12947
12947
|
for (let r = 0; r < e.attributes.length; r += 1) {
|
|
12948
12948
|
const n = e.attributes[r];
|
|
@@ -12953,10 +12953,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12953
12953
|
})(e, t);
|
|
12954
12954
|
const r = $i(e), n = $i(t);
|
|
12955
12955
|
r.forEach((e, o) => {
|
|
12956
|
-
const i =
|
|
12957
|
-
if ("http://schemas.openxmlformats.org/wordprocessingml/2006/main" === e.namespaceURI) return void (i &&
|
|
12958
|
-
if (i) return void
|
|
12959
|
-
const a = r.slice(o + 1).map((e, t) =>
|
|
12956
|
+
const i = Oi(r, o, n);
|
|
12957
|
+
if ("http://schemas.openxmlformats.org/wordprocessingml/2006/main" === e.namespaceURI) return void (i && Fi(e, i));
|
|
12958
|
+
if (i) return void Fi(e, i);
|
|
12959
|
+
const a = r.slice(o + 1).map((e, t) => Oi(r, o + t + 1, n)).find((e) => Boolean(e));
|
|
12960
12960
|
t.insertBefore(e.cloneNode(!0), a ?? null);
|
|
12961
12961
|
});
|
|
12962
12962
|
}
|
|
@@ -13071,7 +13071,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13071
13071
|
const e = qi(f), t = u.get(e) ?? 0;
|
|
13072
13072
|
u.set(e, t + 1);
|
|
13073
13073
|
const r = c.get(e)?.[t];
|
|
13074
|
-
r &&
|
|
13074
|
+
r && Fi(f, r);
|
|
13075
13075
|
}
|
|
13076
13076
|
const d = new Set(l.map(qi)), p = s.filter((e) => !("http://schemas.openxmlformats.org/wordprocessingml/2006/main" === e.namespaceURI && n.has(ji(e)) || d.has(qi(e))));
|
|
13077
13077
|
for (const f of p) {
|
|
@@ -13673,7 +13673,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13673
13673
|
});
|
|
13674
13674
|
}(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="${Bo}">${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>`;
|
|
13675
13675
|
}
|
|
13676
|
-
function
|
|
13676
|
+
function Oa(e, t, r, n, o, i) {
|
|
13677
13677
|
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="${zo(t.alt)}" title="${zo(t.alt)}"` : "", d = function(e, t, r, n, o, i) {
|
|
13678
13678
|
const a = e.shape, s = zo(a?.preset ?? "rect"), l = e.rotation ? Math.round(e.rotation * D) : 0, c = 0 !== l ? ` rot="${l}"` : "", u = a?.fill ? `<a:solidFill><a:srgbClr val="${zo(a.fill.replace(/^#/, ""))}"/></a:solidFill>` : "";
|
|
13679
13679
|
let d = "";
|
|
@@ -13693,12 +13693,12 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13693
13693
|
graphicXml: d
|
|
13694
13694
|
})}</w:r>`;
|
|
13695
13695
|
}
|
|
13696
|
-
const
|
|
13696
|
+
const Fa = {
|
|
13697
13697
|
footnote: "FootnoteReference",
|
|
13698
13698
|
endnote: "EndnoteReference"
|
|
13699
13699
|
};
|
|
13700
13700
|
function Ma(e) {
|
|
13701
|
-
return `<w:r><w:rPr><w:rStyle w:val="${
|
|
13701
|
+
return `<w:r><w:rPr><w:rStyle w:val="${Fa[e]}"/><w:vertAlign w:val="superscript"/></w:rPr><w:${e}Ref/></w:r>`;
|
|
13702
13702
|
}
|
|
13703
13703
|
function La(e, t, r, n) {
|
|
13704
13704
|
if (!t) return null;
|
|
@@ -13706,7 +13706,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13706
13706
|
if (void 0 === o) return null;
|
|
13707
13707
|
const i = {
|
|
13708
13708
|
...r ?? {},
|
|
13709
|
-
styleId:
|
|
13709
|
+
styleId: Fa[e],
|
|
13710
13710
|
superscript: !0
|
|
13711
13711
|
}, a = t.customMark ? " w:customMarkFollows=\"1\"" : "", s = t.customMark ? `<w:t xml:space="preserve">${zo(t.customMark)}</w:t>` : "";
|
|
13712
13712
|
return `<w:r>${_a(i)}<w:${e}Reference${a} w:id="${o}"/>${s}</w:r>`;
|
|
@@ -14030,8 +14030,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14030
14030
|
n = r ? ` ${t.trim()} \\* ${r} ` : t;
|
|
14031
14031
|
}
|
|
14032
14032
|
return `<w:fldSimple w:instr="${zo(n)}"><w:r>${t}<w:t xml:space="preserve">${zo(r)}</w:t></w:r></w:fldSimple>`;
|
|
14033
|
-
}(e.field, s(),
|
|
14034
|
-
textBox: (e) =>
|
|
14033
|
+
}(e.field, s(), e.text),
|
|
14034
|
+
textBox: (e) => Oa(e, e.textBox, t, n, s(), o),
|
|
14035
14035
|
image: (e) => {
|
|
14036
14036
|
const r = t.imageMap.get(e.id);
|
|
14037
14037
|
if (r) {
|
|
@@ -14175,7 +14175,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14175
14175
|
const e = hs(u), t = s.get(e) ?? 0;
|
|
14176
14176
|
s.set(e, t + 1);
|
|
14177
14177
|
const r = a.get(e)?.[t];
|
|
14178
|
-
r &&
|
|
14178
|
+
r && Fi(u, r);
|
|
14179
14179
|
}
|
|
14180
14180
|
const l = new Set(i.map(hs)), c = o.filter((e) => {
|
|
14181
14181
|
return !(t = e, "http://schemas.openxmlformats.org/wordprocessingml/2006/main" === t.namespaceURI && us.has(fs(t)) || l.has(hs(e)));
|
|
@@ -14227,7 +14227,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14227
14227
|
return r ? e.replaceChild(i, r) : e.insertBefore(i, e.firstChild), !0;
|
|
14228
14228
|
}
|
|
14229
14229
|
function Ss(e, t, r, n) {
|
|
14230
|
-
const o =
|
|
14230
|
+
const o = On(e)?.xml;
|
|
14231
14231
|
if (!o || n.hasOverrides || n.hasBoundaryTokens || e.dropCap || /\br:(?:id|embed|link)\s*=/.test(o)) return;
|
|
14232
14232
|
const i = function(e) {
|
|
14233
14233
|
const t = new b.DOMParser().parseFromString(e, "application/xml").documentElement;
|
|
@@ -14276,7 +14276,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14276
14276
|
return Boolean(t && /<w:trPr(?:\s|>)[\s\S]*?<w:jc\b[^>]*\bw:val="(?:start|end)"/.test(t));
|
|
14277
14277
|
}(e) ? void 0 : function(e, t) {
|
|
14278
14278
|
const r = qn(e);
|
|
14279
|
-
if (r && !t.hasBoundaryTokens && !kn(r.xml)) return r.semanticSignature ===
|
|
14279
|
+
if (r && !t.hasBoundaryTokens && !kn(r.xml)) return r.semanticSignature === Fn(e) ? r.xml : void 0;
|
|
14280
14280
|
}(e, { hasBoundaryTokens: Es(e, t) })) ?? oa(e, (e, n) => function(e, t, r, n) {
|
|
14281
14281
|
return "paragraph" === e.type ? Ts(e, r, n, { align: t.style?.horizontalAlign }) : Ns(e, r, n);
|
|
14282
14282
|
}(e, n, t, r)));
|
|
@@ -14323,7 +14323,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14323
14323
|
seq: e.seq,
|
|
14324
14324
|
xml: Vo(e)
|
|
14325
14325
|
}))], c = function(e, t) {
|
|
14326
|
-
const r =
|
|
14326
|
+
const r = On(e);
|
|
14327
14327
|
if (!(!r?.xml || !r.semanticSignature || t.hasOverrides || t.hasBoundaryTokens || kn(r.xml) || xn.test(r.xml) || Sn.test(r.xml))) return r.semanticSignature === $n(e) ? r.xml : void 0;
|
|
14328
14328
|
}(e, {
|
|
14329
14329
|
hasOverrides: Boolean(n),
|
|
@@ -14357,9 +14357,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14357
14357
|
for (; a < i.length;) l += i[a].xml, a += 1;
|
|
14358
14358
|
return l;
|
|
14359
14359
|
}(o, l, t, e.style?.styleId, r), f = function(e) {
|
|
14360
|
-
return
|
|
14360
|
+
return On(e)?.attributes;
|
|
14361
14361
|
}(e), h = f ? ` ${f}` : "", g = function(e, t, r) {
|
|
14362
|
-
const n =
|
|
14362
|
+
const n = On(e)?.paragraphProperties;
|
|
14363
14363
|
return !n || ds(n.xml) ? t : r || e.list || n.semanticSignature !== Pn(e) ? ms(n.xml, t) : n.xml;
|
|
14364
14364
|
}(e, ga(e, t.numberingInfo, r, n), Boolean(n));
|
|
14365
14365
|
if (d) {
|
|
@@ -14533,7 +14533,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14533
14533
|
style: t
|
|
14534
14534
|
}) : "";
|
|
14535
14535
|
}
|
|
14536
|
-
function
|
|
14536
|
+
function Os(e, t) {
|
|
14537
14537
|
if ("number" == typeof t) return `<w:${e} w:w="${qo(t) ?? 0}" w:type="dxa"/>`;
|
|
14538
14538
|
if ("string" == typeof t && t.endsWith("%")) {
|
|
14539
14539
|
const r = Number.parseFloat(t);
|
|
@@ -14541,15 +14541,15 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14541
14541
|
}
|
|
14542
14542
|
return "auto" === t ? `<w:${e} w:w="0" w:type="auto"/>` : "";
|
|
14543
14543
|
}
|
|
14544
|
-
function
|
|
14544
|
+
function Fs(e) {
|
|
14545
14545
|
if (!e) return "";
|
|
14546
14546
|
const t = [];
|
|
14547
14547
|
void 0 !== e.rowBandSize && t.push(`<w:tblStyleRowBandSize w:val="${e.rowBandSize}"/>`), void 0 !== e.colBandSize && t.push(`<w:tblStyleColBandSize w:val="${e.colBandSize}"/>`);
|
|
14548
|
-
const r =
|
|
14548
|
+
const r = Os("tblW", e.width);
|
|
14549
14549
|
r && t.push(r);
|
|
14550
|
-
const n =
|
|
14550
|
+
const n = Os("tblInd", e.indentLeft);
|
|
14551
14551
|
n && t.push(n);
|
|
14552
|
-
const o =
|
|
14552
|
+
const o = Os("tblCellSpacing", e.cellSpacing);
|
|
14553
14553
|
if (o && t.push(o), e.align && t.push(`<w:jc w:val="${e.align}"/>`), e.layout && t.push(`<w:tblLayout w:type="${e.layout}"/>`), void 0 !== e.bidiVisual && t.push(`<w:bidiVisual w:val="${e.bidiVisual ? "1" : "0"}"/>`), e.defaultCellMargins) {
|
|
14554
14554
|
const r = Object.entries(e.defaultCellMargins).map(([e, t]) => `<w:${e} w:w="${qo(t) ?? 0}" w:type="dxa"/>`).join("");
|
|
14555
14555
|
r && t.push(`<w:tblCellMar>${r}</w:tblCellMar>`);
|
|
@@ -14565,7 +14565,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14565
14565
|
n && r.push(n);
|
|
14566
14566
|
const o = t.textStyle ? _a(t.textStyle) : "";
|
|
14567
14567
|
o && r.push(o);
|
|
14568
|
-
const i =
|
|
14568
|
+
const i = Fs(t.tableStyle);
|
|
14569
14569
|
i && r.push(i);
|
|
14570
14570
|
const a = t.rowStyle ? yi(t.rowStyle) : "";
|
|
14571
14571
|
a && r.push(a);
|
|
@@ -14592,7 +14592,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14592
14592
|
r && t.push(r);
|
|
14593
14593
|
}
|
|
14594
14594
|
if ("table" === e.type && e.tableStyle) {
|
|
14595
|
-
const r = e.tableStyle, n =
|
|
14595
|
+
const r = e.tableStyle, n = Fs(r);
|
|
14596
14596
|
if (n && t.push(n), r.conditionalFormats) {
|
|
14597
14597
|
const e = [...$s.filter((e) => e in r.conditionalFormats), ...Object.keys(r.conditionalFormats).filter((e) => !$s.includes(e))];
|
|
14598
14598
|
for (const n of e) {
|
|
@@ -15527,7 +15527,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
15527
15527
|
for (const [u, d] of Object.entries(i)) {
|
|
15528
15528
|
const e = $o(u);
|
|
15529
15529
|
if (void 0 === e || "xml" !== d.kind) continue;
|
|
15530
|
-
const t =
|
|
15530
|
+
const t = Fo(e, Po(d.data), (t) => {
|
|
15531
15531
|
r.push({
|
|
15532
15532
|
level: "warning",
|
|
15533
15533
|
code: "unsafe-relationship-target",
|
|
@@ -15614,20 +15614,20 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
15614
15614
|
const e = Cl(i.path);
|
|
15615
15615
|
Il(r, e, i);
|
|
15616
15616
|
const t = Al(i.relationships);
|
|
15617
|
-
t.length > 0 && r.file(_l(e),
|
|
15617
|
+
t.length > 0 && r.file(_l(e), Oo(t));
|
|
15618
15618
|
}
|
|
15619
15619
|
const n = t.parts[t.mainDocumentPart];
|
|
15620
15620
|
if (!n) throw new Error(`DOCX source package is missing its main part: ${t.mainDocumentPart}`);
|
|
15621
15621
|
Il(r, kl, n);
|
|
15622
15622
|
const o = Al(n.relationships);
|
|
15623
|
-
o.length > 0 && r.file(_l(kl),
|
|
15623
|
+
o.length > 0 && r.file(_l(kl), Oo(o));
|
|
15624
15624
|
for (const i of n.relationships ?? []) {
|
|
15625
15625
|
if ("External" === i.targetMode || !i.resolvedTarget) continue;
|
|
15626
15626
|
const e = Rl(i), n = t.parts[i.resolvedTarget];
|
|
15627
15627
|
if (!e || !n) continue;
|
|
15628
15628
|
Il(r, e, n);
|
|
15629
15629
|
const o = Al(n.relationships);
|
|
15630
|
-
o.length > 0 && r.file(_l(e),
|
|
15630
|
+
o.length > 0 && r.file(_l(e), Oo(o));
|
|
15631
15631
|
}
|
|
15632
15632
|
return r.generateAsync({ type: "arraybuffer" });
|
|
15633
15633
|
}
|