oasis-editor 0.0.393 → 0.0.394

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.
@@ -2199,7 +2199,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
2199
2199
  r.inflateReset = p, r.inflateReset2 = f, r.inflateResetKeep = d, r.inflateInit = function(e) {
2200
2200
  return h(e, 15);
2201
2201
  }, r.inflateInit2 = h, r.inflate = function(e, t) {
2202
- var r, u, d, p, f, h, m, g, w, y, x, E, S, N, k, T, I, _, C, A, R, D, $, P, M = 0, F = new n.Buf8(4), O = [
2202
+ var r, u, d, p, f, h, m, g, w, y, x, E, S, N, k, T, I, _, C, A, R, D, $, P, M = 0, O = new n.Buf8(4), F = [
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
- 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;
2236
+ O[r.check = 0] = 255 & g, O[1] = g >>> 8 & 255, r.check = i(r.check, O, 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 && (F[0] = 255 & g, F[1] = g >>> 8 & 255, r.check = i(r.check, F, 2, 0)), w = g = 0, r.mode = 3;
2267
+ r.head && (r.head.text = g >> 8 & 1), 512 & r.flags && (O[0] = 255 & g, O[1] = g >>> 8 & 255, r.check = i(r.check, O, 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 && (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;
2273
+ r.head && (r.head.time = g), 512 & r.flags && (O[0] = 255 & g, O[1] = g >>> 8 & 255, O[2] = g >>> 16 & 255, O[3] = g >>> 24 & 255, r.check = i(r.check, O, 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 && (F[0] = 255 & g, F[1] = g >>> 8 & 255, r.check = i(r.check, F, 2, 0)), w = g = 0, r.mode = 5;
2279
+ r.head && (r.head.xflags = 255 & g, r.head.os = g >> 8), 512 & r.flags && (O[0] = 255 & g, O[1] = g >>> 8 & 255, r.check = i(r.check, O, 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 && (F[0] = 255 & g, F[1] = g >>> 8 & 255, r.check = i(r.check, F, 2, 0)), w = g = 0;
2286
+ r.length = g, r.head && (r.head.extra_len = g), 512 & r.flags && (O[0] = 255 & g, O[1] = g >>> 8 & 255, r.check = i(r.check, O, 2, 0)), w = g = 0;
2287
2287
  } else r.head && (r.head.extra = null);
2288
2288
  r.mode = 6;
2289
2289
  case 6:
@@ -2386,9 +2386,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
2386
2386
  if (0 === h) break e;
2387
2387
  h--, g += u[p++] << w, w += 8;
2388
2388
  }
2389
- r.lens[O[r.have++]] = 7 & g, g >>>= 3, w -= 3;
2389
+ r.lens[F[r.have++]] = 7 & g, g >>>= 3, w -= 3;
2390
2390
  }
2391
- for (; r.have < 19;) r.lens[O[r.have++]] = 0;
2391
+ for (; r.have < 19;) r.lens[F[r.have++]] = 0;
2392
2392
  if (r.lencode = r.lendyn, r.lenbits = 7, $ = { bits: r.lenbits }, D = s(0, r.lens, 0, 19, r.lencode, 0, r.work, $), r.lenbits = $.bits, D) {
2393
2393
  e.msg = "invalid code lengths set", r.mode = 30;
2394
2394
  break;
@@ -2719,7 +2719,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
2719
2719
  64
2720
2720
  ];
2721
2721
  t.exports = function(e, t, r, l, c, u, d, p) {
2722
- var f, h, m, g, w, b, v, y, x, E = p.bits, S = 0, N = 0, k = 0, T = 0, I = 0, _ = 0, C = 0, A = 0, R = 0, D = 0, $ = null, P = 0, M = new n.Buf16(16), F = new n.Buf16(16), O = null, L = 0;
2722
+ var f, h, m, g, w, b, v, y, x, E = p.bits, S = 0, N = 0, k = 0, T = 0, I = 0, _ = 0, C = 0, A = 0, R = 0, D = 0, $ = null, P = 0, M = new n.Buf16(16), O = new n.Buf16(16), F = null, L = 0;
2723
2723
  for (S = 0; S <= 15; S++) M[S] = 0;
2724
2724
  for (N = 0; N < l; N++) M[t[r + N]]++;
2725
2725
  for (I = E, T = 15; 1 <= T && 0 === M[T]; T--);
@@ -2727,11 +2727,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
2727
2727
  for (k = 1; k < T && 0 === M[k]; k++);
2728
2728
  for (I < k && (I = k), S = A = 1; S <= 15; S++) if (A <<= 1, (A -= M[S]) < 0) return -1;
2729
2729
  if (0 < A && (0 === e || 1 !== T)) return -1;
2730
- for (F[1] = 0, S = 1; S < 15; S++) F[S + 1] = F[S] + M[S];
2731
- for (N = 0; N < l; N++) 0 !== t[r + N] && (d[F[t[r + N]]++] = N);
2732
- if (b = 0 === e ? ($ = O = d, 19) : 1 === e ? ($ = o, P -= 257, O = i, L -= 257, 256) : ($ = a, O = s, -1), S = k, w = u, C = N = D = 0, m = -1, g = (R = 1 << (_ = I)) - 1, 1 === e && 852 < R || 2 === e && 592 < R) return 1;
2730
+ for (O[1] = 0, S = 1; S < 15; S++) O[S + 1] = O[S] + M[S];
2731
+ for (N = 0; N < l; N++) 0 !== t[r + N] && (d[O[t[r + N]]++] = N);
2732
+ if (b = 0 === e ? ($ = F = d, 19) : 1 === e ? ($ = o, P -= 257, F = i, L -= 257, 256) : ($ = a, F = s, -1), S = 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
- for (v = S - C, x = d[N] < b ? (y = 0, d[N]) : d[N] > b ? (y = O[L + d[N]], $[P + d[N]]) : (y = 96, 0), f = 1 << S - C, k = h = 1 << _; c[w + (D >> C) + (h -= f)] = v << 24 | y << 16 | x, 0 !== h;);
2734
+ for (v = S - C, x = d[N] < b ? (y = 0, d[N]) : d[N] > b ? (y = F[L + d[N]], $[P + d[N]]) : (y = 96, 0), f = 1 << S - C, k = h = 1 << _; c[w + (D >> C) + (h -= f)] = v << 24 | y << 16 | x, 0 !== h;);
2735
2735
  for (f = 1 << S - 1; D & f;) f >>= 1;
2736
2736
  if (0 !== f ? (D &= f - 1, D += f) : D = 0, N++, 0 == --M[S]) {
2737
2737
  if (S === T) break;
@@ -2949,11 +2949,11 @@ 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 F(e, t, r) {
2952
+ function O(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
  }
2956
- function O(e, t, r) {
2956
+ function F(e, t, r) {
2957
2957
  var n, o, i = -1, a = t[1], s = 0, l = 7, c = 4;
2958
2958
  for (0 === a && (l = 138, c = 3), n = 0; n <= r; n++) if (o = a, a = t[2 * (n + 1) + 1], !(++s < l && o === a)) {
2959
2959
  if (s < c) for (; I(e, o, e.bl_tree), 0 != --s;);
@@ -2992,12 +2992,12 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
2992
2992
  return 0;
2993
2993
  }(e)), M(e, e.l_desc), M(e, e.d_desc), s = function(e) {
2994
2994
  var t;
2995
- for (F(e, e.dyn_ltree, e.l_desc.max_code), F(e, e.dyn_dtree, e.d_desc.max_code), M(e, e.bl_desc), t = 18; 3 <= t && 0 === e.bl_tree[2 * p[t] + 1]; t--);
2995
+ for (O(e, e.dyn_ltree, e.l_desc.max_code), O(e, e.dyn_dtree, e.d_desc.max_code), M(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;
2999
2999
  for (T(e, t - 257, 5), T(e, r - 1, 5), T(e, n - 4, 4), o = 0; o < n; o++) T(e, e.bl_tree[2 * p[o] + 1], 3);
3000
- O(e, e.dyn_ltree, t - 1), O(e, e.dyn_dtree, r - 1);
3000
+ F(e, e.dyn_ltree, t - 1), F(e, e.dyn_dtree, r - 1);
3001
3001
  }(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, s + 1), P(e, e.dyn_ltree, e.dyn_dtree)), A(e), n && R(e);
3002
3002
  }, r._tr_tally = function(e, t, r) {
3003
3003
  return e.pending_buf[e.d_buf + 2 * e.last_lit] = t >>> 8 & 255, e.pending_buf[e.d_buf + 2 * e.last_lit + 1] = 255 & t, e.pending_buf[e.l_buf + e.last_lit] = 255 & r, e.last_lit++, 0 === t ? e.dyn_ltree[2 * r]++ : (e.matches++, t--, e.dyn_ltree[2 * (g[r] + i + 1)]++, e.dyn_dtree[2 * N(t)]++), e.last_lit === e.lit_bufsize - 1;
@@ -3325,8 +3325,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
3325
3325
  r && (s = i("[", n(s), "\\u{10000}-\\u{10FFFF}", "]"));
3326
3326
  var l = new RegExp("[^" + n(s) + "]", r ? "u" : ""), c = /[\x20\x09\x0D\x0A]/, u = n(c), d = i(c, "+"), p = i(c, "*"), f = /[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;
3327
3327
  r && (f = i("[", n(f), "\\u{10000}-\\u{10FFFF}", "]"));
3328
- var h = i("[", n(f), n(/[-.0-9\xB7]/), n(/[\u0300-\u036F\u203F-\u2040]/), "]"), m = i(f, h, "*"), g = i("^", m, "$"), w = i(h, "+"), b = a(i("&", m, ";"), "|", a(/&#[0-9]+;|&#x[0-9a-fA-F]+;/)), v = i("%", m, ";"), y = a(i("\"", a(/[^%&"]/, "|", v, "|", b), "*", "\""), "|", i("'", a(/[^%&']/, "|", v, "|", b), "*", "'")), x = a("\"", a(/[^<&"]/, "|", b), "*", "\"", "|", "'", a(/[^<&']/, "|", b), "*", "'"), E = i(o(f, ":"), o(h, ":"), "*"), S = i("^", E, "$"), N = i(E, a(":", E), "?"), k = i("^", N, "$"), T = i("(", N, ")"), I = a(/"[^"]*"|'[^']*'/), _ = 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(/\([^>]+\)/, /[?*+]?/)), M = 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, ">"), O = "about:legacy-compat", L = a("\"" + O + "\"", "|", "'" + O + "'"), B = "SYSTEM", U = "PUBLIC", z = a(a(B, d, I), "|", a(U, d, A, d, I)), H = i("^", a(a(B, d, "(?<SystemLiteralOnly>", I, ")"), "|", a(U, d, "(?<PubidLiteral>", A, ")", d, "(?<SystemLiteral>", I, ")"))), j = i("^", A, "$"), q = i("^", I, "$"), W = a(y, "|", a(z, a(d, "NDATA", d, m), "?")), G = "<!ENTITY", X = a(i(G, d, m, d, W, p, ">"), "|", i(G, 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 = O, 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 = M, e.EntityDecl = X, e.EntityValue = y, e.ExternalID = z, e.ExternalID_match = H, e.Name = m, e.Name_exact = g, e.NCName_exact = S, e.NotationDecl = V, e.Reference = b, e.PEReference = v, e.PI = _, 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 = I, e.SystemLiteral_match = q, e.InvalidChar = l, e.UNICODE_REPLACEMENT_CHARACTER = "�", e.UNICODE_SUPPORT = r, e.XMLDecl = J;
3328
+ var h = i("[", n(f), n(/[-.0-9\xB7]/), n(/[\u0300-\u036F\u203F-\u2040]/), "]"), m = i(f, h, "*"), g = i("^", m, "$"), w = i(h, "+"), b = a(i("&", m, ";"), "|", a(/&#[0-9]+;|&#x[0-9a-fA-F]+;/)), v = i("%", m, ";"), y = a(i("\"", a(/[^%&"]/, "|", v, "|", b), "*", "\""), "|", i("'", a(/[^%&']/, "|", v, "|", b), "*", "'")), x = a("\"", a(/[^<&"]/, "|", b), "*", "\"", "|", "'", a(/[^<&']/, "|", b), "*", "'"), E = i(o(f, ":"), o(h, ":"), "*"), S = i("^", E, "$"), N = i(E, a(":", E), "?"), k = i("^", N, "$"), T = i("(", N, ")"), I = a(/"[^"]*"|'[^']*'/), _ = 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(/\([^>]+\)/, /[?*+]?/)), M = i("<!ELEMENT", d, a(N, "|", v), d, a(P, "|", v), p, ">"), O = i("<!ATTLIST", d, m, a(d, m, d, a(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/, "|", a(i("NOTATION", d, /\(/, p, m, a(p, /\|/, p, m), "*", p, /\)/), "|", i(/\(/, p, w, a(p, /\|/, p, w), "*", p, /\)/))), d, a(/#REQUIRED|#IMPLIED/, "|", a(a("#FIXED", d), "?", x))), "*", p, ">"), F = "about:legacy-compat", L = a("\"" + F + "\"", "|", "'" + F + "'"), B = "SYSTEM", U = "PUBLIC", z = a(a(B, d, I), "|", a(U, d, A, d, I)), H = i("^", a(a(B, d, "(?<SystemLiteralOnly>", I, ")"), "|", a(U, d, "(?<PubidLiteral>", A, ")", d, "(?<SystemLiteral>", I, ")"))), j = i("^", A, "$"), q = i("^", I, "$"), W = a(y, "|", a(z, a(d, "NDATA", d, m), "?")), G = "<!ENTITY", X = a(i(G, d, m, d, W, p, ">"), "|", i(G, 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 = F, e.ABOUT_LEGACY_COMPAT_SystemLiteral = L, e.AttlistDecl = O, 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 = M, e.EntityDecl = X, e.EntityValue = y, e.ExternalID = z, e.ExternalID_match = H, e.Name = m, e.Name_exact = g, e.NCName_exact = S, e.NotationDecl = V, e.Reference = b, e.PEReference = v, e.PI = _, 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 = I, 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 = {}, I = T.ELEMENT_NODE = 1, _ = 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, M = T.DOCUMENT_NODE = 9, F = T.DOCUMENT_TYPE_NODE = 10, O = T.DOCUMENT_FRAGMENT_NODE = 11, L = T.NOTATION_NODE = 12, B = t.freeze({
3379
+ var T = {}, I = T.ELEMENT_NODE = 1, _ = 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, M = T.DOCUMENT_NODE = 9, O = T.DOCUMENT_TYPE_NODE = 10, F = 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,
@@ -3571,7 +3571,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
3571
3571
  function fe(e, t, r, n) {
3572
3572
  ue(e, t, r), e.nodeType === Q.DOCUMENT_NODE && (n || de)(e, t, r);
3573
3573
  var o = t.parentNode;
3574
- if (o && o.removeChild(t), t.nodeType === O) {
3574
+ if (o && o.removeChild(t), t.nodeType === F) {
3575
3575
  var i = t.firstChild;
3576
3576
  if (null == i) return t;
3577
3577
  var a = t.lastChild;
@@ -3581,7 +3581,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
3581
3581
  do
3582
3582
  i.parentNode = e;
3583
3583
  while (i !== a && (i = i.nextSibling));
3584
- return ne(e.ownerDocument || e, e, t), t.nodeType == O && (t.firstChild = t.lastChild = null), t;
3584
+ return ne(e.ownerDocument || e, e, t), t.nodeType == F && (t.firstChild = t.lastChild = null), t;
3585
3585
  }
3586
3586
  function he(e) {
3587
3587
  b(e), this._nsMap = Object.create(null);
@@ -3727,7 +3727,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
3727
3727
  tag: b
3728
3728
  };
3729
3729
  case M:
3730
- case O:
3730
+ case F:
3731
3731
  if (i && e.nodeType === M && null == e.documentElement) throw new m("The Document has no documentElement", g.InvalidStateError);
3732
3732
  return { ns: u };
3733
3733
  case _: return Ce(t, e.name, e.value, i), null;
@@ -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 F:
3746
+ case O:
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);
@@ -4111,7 +4111,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
4111
4111
  documentElement: null,
4112
4112
  _inc: 1,
4113
4113
  insertBefore: function(e, t) {
4114
- if (e.nodeType === O) {
4114
+ if (e.nodeType === F) {
4115
4115
  for (var r = e.firstChild; r;) {
4116
4116
  var n = r.nextSibling;
4117
4117
  this.insertBefore(r, t), r = n;
@@ -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 = F, k(ye, Q), xe.prototype.nodeType = L, k(xe, Q), Ee.prototype.nodeType = D, k(Ee, Q), Se.prototype.nodeType = R, k(Se, Q), Ne.prototype.nodeName = "#document-fragment", Ne.prototype.nodeType = O, k(Ne, Q), ke.prototype.nodeType = $, k(ke, ge), Te.prototype.serializeToString = function(e, t) {
4321
+ }, k(ve, we), ye.prototype.nodeType = O, k(ye, Q), xe.prototype.nodeType = L, k(xe, Q), Ee.prototype.nodeType = D, k(Ee, Q), Se.prototype.nodeType = R, k(Se, Q), Ne.prototype.nodeName = "#document-fragment", Ne.prototype.nodeType = F, k(Ne, Q), ke.prototype.nodeType = $, k(ke, ge), Te.prototype.serializeToString = function(e, t) {
4322
4322
  return Ie.call(e, t);
4323
4323
  }, Q.prototype.toString = Ie;
4324
4324
  try {
@@ -4326,10 +4326,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
4326
4326
  return q(this), this.$$length;
4327
4327
  } }), Object.defineProperty(Q.prototype, "textContent", {
4328
4328
  get: function() {
4329
- if (this.nodeType === I || this.nodeType === O) {
4329
+ if (this.nodeType === I || this.nodeType === F) {
4330
4330
  var e = [];
4331
4331
  return ee(this, null, { enter: function(t) {
4332
- return t.nodeType === I || t.nodeType === O || (t.nodeType === $ || t.nodeType === P ? null : void e.push(t.nodeValue));
4332
+ return t.nodeType === I || t.nodeType === F || (t.nodeType === $ || t.nodeType === P ? null : void e.push(t.nodeValue));
4333
4333
  } }), e.join("");
4334
4334
  }
4335
4335
  return this.nodeValue;
@@ -4337,7 +4337,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
4337
4337
  set: function(e) {
4338
4338
  switch (this.nodeType) {
4339
4339
  case I:
4340
- case O:
4340
+ case F:
4341
4341
  for (; this.firstChild;) this.removeChild(this.firstChild);
4342
4342
  (e || String(e)) && this.appendChild(this.ownerDocument.createTextNode(e));
4343
4343
  break;
@@ -6561,22 +6561,22 @@ 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 M = e.indexOf(">", R + 2), F = e.substring(R + 2, M > 0 ? M : void 0);
6565
- if (!F) return l.fatalError("end tag name missing");
6566
- var O = r.reg("^", r.QName_group, r.S_OPT, "$"), L = M > 0 && O.exec(F);
6564
+ var M = e.indexOf(">", R + 2), O = e.substring(R + 2, M > 0 ? M : void 0);
6565
+ if (!O) return l.fatalError("end tag name missing");
6566
+ var F = r.reg("^", r.QName_group, r.S_OPT, "$"), L = M > 0 && F.exec(O);
6567
6567
  if (!L) {
6568
- var B = M > 0 && r.reg("^", r.QName_group).exec(F);
6569
- if (c && B) l.warning("end tag name contains invalid trailing characters: \"" + F + "\""), L = B;
6568
+ var B = M > 0 && r.reg("^", r.QName_group).exec(O);
6569
+ if (c && B) l.warning("end tag name contains invalid trailing characters: \"" + O + "\""), L = B;
6570
6570
  else {
6571
- if (!B || !new RegExp(O.source, O.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;
6571
+ if (!B || !new RegExp(F.source, F.flags + "m").test(O)) return l.fatalError("end tag name contains invalid characters: \"" + O + "\"");
6572
+ l.error("end tag name is followed by a line break and trailing content: \"" + O + "\""), 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 + "\" != \"" + F + "\"");
6579
+ if (!c || U.toLowerCase() !== z) return l.fatalError("Opening and ending tag mismatch: \"" + U + "\" != \"" + O + "\"");
6580
6580
  }
6581
6581
  var H = _.pop();
6582
6582
  C.pop();
@@ -7168,14 +7168,14 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
7168
7168
  kind: "text"
7169
7169
  };
7170
7170
  }
7171
- function F(e = "") {
7171
+ function O(e = "") {
7172
7172
  return {
7173
7173
  id: D("paragraph"),
7174
7174
  type: "paragraph",
7175
7175
  runs: [M(e)]
7176
7176
  };
7177
7177
  }
7178
- function O(e) {
7178
+ function F(e) {
7179
7179
  return {
7180
7180
  id: D("paragraph"),
7181
7181
  type: "paragraph",
@@ -7202,7 +7202,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
7202
7202
  function L(e, t = 1, r) {
7203
7203
  const n = {
7204
7204
  id: D("table-cell"),
7205
- blocks: e.length > 0 ? e : [F("")]
7205
+ blocks: e.length > 0 ? e : [O("")]
7206
7206
  };
7207
7207
  return t > 1 && (n.colSpan = t), r?.rowSpan && r.rowSpan > 1 && (n.rowSpan = r.rowSpan), r?.vMerge && (n.vMerge = r.vMerge), n;
7208
7208
  }
@@ -7846,7 +7846,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
7846
7846
  }
7847
7847
  return r;
7848
7848
  }
7849
- const Fe = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Oe = "http://schemas.openxmlformats.org/drawingml/2006/main", Le = "http://schemas.microsoft.com/office/word/2010/wordml", Be = Te(ke, Le), Ue = Te(ke, "http://schemas.microsoft.com/office/word/2012/wordml");
7849
+ const Oe = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Fe = "http://schemas.openxmlformats.org/drawingml/2006/main", Le = "http://schemas.microsoft.com/office/word/2010/wordml", Be = Te(ke, Le), Ue = Te(ke, "http://schemas.microsoft.com/office/word/2012/wordml");
7850
7850
  function ze(e, t, r) {
7851
7851
  return e ? Me(e).filter((e) => e.namespaceURI === t && e.localName === r) : [];
7852
7852
  }
@@ -7902,7 +7902,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
7902
7902
  return "1" === e || "true" === e || "on" === e;
7903
7903
  }
7904
7904
  function Qe(e, t) {
7905
- const r = qe(e, Fe, t);
7905
+ const r = qe(e, Oe, t);
7906
7906
  if (!r) return;
7907
7907
  const n = Xe(r, "val");
7908
7908
  return null == n || "0" !== n && "false" !== n && "off" !== n && Ye(n);
@@ -8007,9 +8007,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8007
8007
  "folHlink"
8008
8008
  ];
8009
8009
  function ht(e) {
8010
- const t = qe(e, Oe, "srgbClr");
8010
+ const t = qe(e, Fe, "srgbClr");
8011
8011
  if (t) return pt(Xe(t, "val"));
8012
- const r = qe(e, Oe, "sysClr");
8012
+ const r = qe(e, Fe, "sysClr");
8013
8013
  return r ? pt(Xe(r, "lastClr")) : void 0;
8014
8014
  }
8015
8015
  function mt(e) {
@@ -8064,7 +8064,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8064
8064
  colors: {}
8065
8065
  };
8066
8066
  const t = new b.DOMParser().parseFromString(e, "application/xml").documentElement, r = t ? ze(t, "http://schemas.openxmlformats.org/drawingml/2006/main", "themeElements")[0] ?? null : null, n = function(e) {
8067
- const t = qe(e, Oe, "fontScheme"), r = qe(t, Oe, "majorFont"), n = qe(t, Oe, "minorFont");
8067
+ const t = qe(e, Fe, "fontScheme"), r = qe(t, Fe, "majorFont"), n = qe(t, Fe, "minorFont");
8068
8068
  return {
8069
8069
  majorHAnsi: at(r),
8070
8070
  minorHAnsi: at(n),
@@ -8074,15 +8074,15 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8074
8074
  minorBidi: st(n)
8075
8075
  };
8076
8076
  }(r), o = function(e) {
8077
- const t = qe(e, Oe, "clrScheme");
8077
+ const t = qe(e, Fe, "clrScheme");
8078
8078
  if (!t) return {};
8079
8079
  const r = {};
8080
8080
  for (const n of ft) {
8081
- const e = ht(qe(t, Oe, n));
8081
+ const e = ht(qe(t, Fe, n));
8082
8082
  e && (r[n] = e);
8083
8083
  }
8084
8084
  return r;
8085
- }(r), i = r ? ze(r, Oe, "fmtScheme")[0] : void 0;
8085
+ }(r), i = r ? ze(r, Fe, "fmtScheme")[0] : void 0;
8086
8086
  return {
8087
8087
  fonts: n,
8088
8088
  colors: o,
@@ -8111,11 +8111,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8111
8111
  };
8112
8112
  function xt(e) {
8113
8113
  if (!e) return;
8114
- const t = {}, r = Xe(qe(e, Fe, "numFmt"), "val");
8114
+ const t = {}, r = Xe(qe(e, Oe, "numFmt"), "val");
8115
8115
  r && vt[r] && (t.numberFormat = vt[r]);
8116
8116
  const n = Number.parseInt(Xe(qe(e, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "numStart"), "val") ?? "", 10);
8117
8117
  Number.isFinite(n) && n > 0 && (t.startAt = n);
8118
- const o = Xe(qe(e, Fe, "numRestart"), "val");
8118
+ const o = Xe(qe(e, Oe, "numRestart"), "val");
8119
8119
  return o && yt[o] && (t.restart = yt[o]), Object.keys(t).length > 0 ? t : void 0;
8120
8120
  }
8121
8121
  function Et(e) {
@@ -8156,23 +8156,23 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8156
8156
  return Number.isSafeInteger(r) && r >= t ? r : void 0;
8157
8157
  }
8158
8158
  function _t(e) {
8159
- const t = {}, r = Xe(qe(e, Fe, "numFmt"), "val");
8159
+ const t = {}, r = Xe(qe(e, Oe, "numFmt"), "val");
8160
8160
  r && (t.kind = "bullet" === r ? "bullet" : "ordered", t.format = kt[r], t.rawFormat = r);
8161
- const n = Xe(qe(e, Fe, "suff"), "val");
8161
+ const n = Xe(qe(e, Oe, "suff"), "val");
8162
8162
  "tab" !== n && "space" !== n && "nothing" !== n || (t.suffix = n);
8163
- const o = Tt(qe(e, Fe, "start"));
8163
+ const o = Tt(qe(e, Oe, "start"));
8164
8164
  void 0 !== o && (t.startAt = o), t.levelText = Xe(qe(e, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "lvlText"), "val") ?? void 0;
8165
- const i = Xe(qe(e, Fe, "lvlJc"), "val");
8165
+ const i = Xe(qe(e, Oe, "lvlJc"), "val");
8166
8166
  "left" !== i && "center" !== i && "right" !== i || (t.alignment = i);
8167
- const a = qe(e, Fe, "isLgl");
8167
+ const a = qe(e, Oe, "isLgl");
8168
8168
  a && (t.legal = function(e) {
8169
8169
  return null == e || "1" === e || "true" === e || "on" === e;
8170
8170
  }(Xe(a, "val")));
8171
- const s = Tt(qe(e, Fe, "lvlRestart"));
8171
+ const s = Tt(qe(e, Oe, "lvlRestart"));
8172
8172
  void 0 !== s && (t.restartAfterLevel = s), t.paragraphStyleId = Xe(qe(e, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "pStyle"), "val") ?? void 0, "bullet" === t.kind && t.levelText && (t.bulletGlyph = t.levelText);
8173
- const c = qe(qe(e, Fe, "rPr"), Fe, "rFonts");
8173
+ const c = qe(qe(e, Oe, "rPr"), Oe, "rFonts");
8174
8174
  t.bulletFont = Xe(c, "ascii") ?? Xe(c, "hAnsi") ?? void 0;
8175
- const d = qe(qe(e, Fe, "pPr"), Fe, "ind");
8175
+ const d = qe(qe(e, Oe, "pPr"), Oe, "ind");
8176
8176
  if (d) {
8177
8177
  const e = Xe(d, "left") ?? Xe(d, "start"), r = Xe(d, "hanging"), n = null != e ? ut(e, 0) : void 0, o = null != r ? ut(r, 0) : void 0;
8178
8178
  void 0 === n && void 0 === o || (t.indent = {
@@ -8295,27 +8295,27 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8295
8295
  }
8296
8296
  function Pt(e) {
8297
8297
  return e ? {
8298
- borderTop: $t(qe(e, Fe, "top")),
8299
- borderRight: $t(qe(e, Fe, "right")),
8300
- borderBottom: $t(qe(e, Fe, "bottom")),
8301
- borderLeft: $t(qe(e, Fe, "left")),
8302
- borderStart: $t(qe(e, Fe, "start")),
8303
- borderEnd: $t(qe(e, Fe, "end")),
8304
- borderTopLeftToBottomRight: $t(qe(e, Fe, "tl2br")),
8305
- borderTopRightToBottomLeft: $t(qe(e, Fe, "tr2bl")),
8306
- borderBetween: $t(qe(e, Fe, "between")),
8307
- borderBar: $t(qe(e, Fe, "bar"))
8298
+ borderTop: $t(qe(e, Oe, "top")),
8299
+ borderRight: $t(qe(e, Oe, "right")),
8300
+ borderBottom: $t(qe(e, Oe, "bottom")),
8301
+ borderLeft: $t(qe(e, Oe, "left")),
8302
+ borderStart: $t(qe(e, Oe, "start")),
8303
+ borderEnd: $t(qe(e, Oe, "end")),
8304
+ borderTopLeftToBottomRight: $t(qe(e, Oe, "tl2br")),
8305
+ borderTopRightToBottomLeft: $t(qe(e, Oe, "tr2bl")),
8306
+ borderBetween: $t(qe(e, Oe, "between")),
8307
+ borderBar: $t(qe(e, Oe, "bar"))
8308
8308
  } : {};
8309
8309
  }
8310
8310
  function Mt(e) {
8311
8311
  const t = Object.entries(e).filter(([, e]) => void 0 !== e);
8312
8312
  return t.length > 0 ? Object.fromEntries(t) : void 0;
8313
8313
  }
8314
- function Ft(e) {
8314
+ function Ot(e) {
8315
8315
  return Object.keys(e).length > 0 ? e : void 0;
8316
8316
  }
8317
- function Ot(e, t) {
8318
- return Ft({
8317
+ function Ft(e, t) {
8318
+ return Ot({
8319
8319
  ...e ?? {},
8320
8320
  ...t ?? {}
8321
8321
  });
@@ -8481,33 +8481,33 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8481
8481
  void 0 !== E && (r.emboss = E);
8482
8482
  const S = Qe(e, "imprint");
8483
8483
  void 0 !== S && (r.imprint = S);
8484
- const N = Xe(qe(e, Fe, "em"), "val");
8484
+ const N = Xe(qe(e, Oe, "em"), "val");
8485
8485
  "dot" !== N && "comma" !== N && "circle" !== N && "underDot" !== N && "none" !== N || (r.emphasisMark = N);
8486
- const k = Xe(qe(e, Fe, "fitText"), "val");
8486
+ const k = Xe(qe(e, Oe, "fitText"), "val");
8487
8487
  if (k) {
8488
8488
  const e = dt(k);
8489
8489
  void 0 !== e && e > 0 && (r.fitText = e);
8490
8490
  }
8491
- const T = $t(qe(e, Fe, "bdr"));
8491
+ const T = $t(qe(e, Oe, "bdr"));
8492
8492
  T && (r.textBorder = T);
8493
- const I = Xe(qe(e, Fe, "effect"), "val");
8493
+ const I = Xe(qe(e, Oe, "effect"), "val");
8494
8494
  I && (r.textEffect = I);
8495
- const _ = Xe(qe(e, Fe, "w"), "val");
8495
+ const _ = Xe(qe(e, Oe, "w"), "val");
8496
8496
  if (_) {
8497
8497
  const e = Number(_);
8498
8498
  Number.isFinite(e) && e > 0 && (r.characterScale = e);
8499
8499
  }
8500
- const C = Xe(qe(e, Fe, "spacing"), "val");
8500
+ const C = Xe(qe(e, Oe, "spacing"), "val");
8501
8501
  if (C) {
8502
8502
  const e = dt(C);
8503
8503
  void 0 !== e && (r.characterSpacing = e);
8504
8504
  }
8505
- const A = Xe(qe(e, Fe, "position"), "val");
8505
+ const A = Xe(qe(e, Oe, "position"), "val");
8506
8506
  if (A) {
8507
8507
  const e = Number(A);
8508
8508
  Number.isFinite(e) && (r.baselineShift = e / 2);
8509
8509
  }
8510
- const R = Xe(qe(e, Fe, "kern"), "val");
8510
+ const R = Xe(qe(e, Oe, "kern"), "val");
8511
8511
  if (R) {
8512
8512
  const e = Number(R);
8513
8513
  Number.isFinite(e) && e >= 0 && (r.kerningThreshold = e / 2);
@@ -8528,17 +8528,17 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8528
8528
  }
8529
8529
  }
8530
8530
  }
8531
- const F = Xe(qe(e, Le, "cntxtAlts"), "val");
8532
- null === F ? qe(e, "http://schemas.microsoft.com/office/word/2010/wordml", "cntxtAlts") && (r.contextualAlternates = !0) : r.contextualAlternates = Ye(F);
8533
- const O = qe(e, Fe, "u"), L = Xe(O, "val");
8534
- if (O) {
8531
+ const O = Xe(qe(e, Le, "cntxtAlts"), "val");
8532
+ null === O ? qe(e, "http://schemas.microsoft.com/office/word/2010/wordml", "cntxtAlts") && (r.contextualAlternates = !0) : r.contextualAlternates = Ye(O);
8533
+ const F = qe(e, Oe, "u"), L = Xe(F, "val");
8534
+ if (F) {
8535
8535
  r.underline = "none" !== L, r.underlineStyle = "none" === L ? null : L || "single";
8536
- const e = Xe(O, "color");
8536
+ const e = Xe(F, "color");
8537
8537
  e && "auto" !== e && (r.underlineColor = pt(e));
8538
8538
  }
8539
- const B = Xe(qe(e, Fe, "vertAlign"), "val");
8539
+ const B = Xe(qe(e, Oe, "vertAlign"), "val");
8540
8540
  "superscript" !== B && "subscript" !== B && "baseline" !== B || (r.superscript = "superscript" === B, r.subscript = "subscript" === B);
8541
- const U = qe(e, Fe, "rFonts"), z = Xe(U, "ascii") ?? Xe(U, "hAnsi") ?? Xe(U, "cs") ?? Xe(U, "eastAsia") ?? function(e, t) {
8541
+ const U = qe(e, Oe, "rFonts"), z = Xe(U, "ascii") ?? Xe(U, "hAnsi") ?? Xe(U, "cs") ?? Xe(U, "eastAsia") ?? function(e, t) {
8542
8542
  const r = Xe(e, "asciiTheme") ?? Xe(e, "hAnsiTheme") ?? Xe(e, "eastAsiaTheme") ?? Xe(e, "cstheme");
8543
8543
  if (!r) return;
8544
8544
  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;
@@ -8556,7 +8556,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8556
8556
  }(j);
8557
8557
  null !== e && (r.fontSize = e);
8558
8558
  }
8559
- const G = qe(e, Fe, "color"), X = Xe(G, "val");
8559
+ const G = qe(e, Oe, "color"), X = Xe(G, "val");
8560
8560
  if (X && "auto" !== X) r.color = pt(X);
8561
8561
  else if ("auto" !== X) {
8562
8562
  const e = wt(G, t.colors);
@@ -8618,21 +8618,21 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8618
8618
  J && (r.scene3dXml = new b.XMLSerializer().serializeToString(J));
8619
8619
  const ee = We(e, "props3d");
8620
8620
  ee && (r.props3dXml = new b.XMLSerializer().serializeToString(ee));
8621
- const te = Xe(qe(e, Fe, "highlight"), "val");
8621
+ const te = Xe(qe(e, Oe, "highlight"), "val");
8622
8622
  te && "none" !== te && (r.highlight = te);
8623
- const re = Lt(qe(e, Fe, "shd"), t.colors);
8623
+ const re = Lt(qe(e, Oe, "shd"), t.colors);
8624
8624
  re && (r.shading = re);
8625
- const ne = qe(e, Fe, "lang");
8625
+ const ne = qe(e, Oe, "lang");
8626
8626
  if (ne) {
8627
8627
  const e = Xe(ne, "val"), t = Xe(ne, "eastAsia"), n = Xe(ne, "bidi"), o = {};
8628
8628
  e && (o.value = e), t && (o.eastAsia = t), n && (o.bidi = n), Object.keys(o).length > 0 && (r.language = o);
8629
8629
  }
8630
- const oe = qe(e, Fe, "rPrChange"), ie = Nt(oe), ae = qe(oe, Fe, "rPr");
8630
+ const oe = qe(e, Oe, "rPrChange"), ie = Nt(oe), ae = qe(oe, Oe, "rPr");
8631
8631
  return ie && ae && (r.propertyRevision = {
8632
8632
  ...ie,
8633
8633
  type: "property",
8634
8634
  previous: Ht(ae, t) ?? {}
8635
- }), Ft(r);
8635
+ }), Ot(r);
8636
8636
  }
8637
8637
  const jt = [
8638
8638
  ["firstRow", "firstRow"],
@@ -8667,11 +8667,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8667
8667
  return dt(r);
8668
8668
  }
8669
8669
  function Gt(e, t) {
8670
- const r = Xe(qe(e, Fe, t), "val"), n = r ? Number(r) : NaN;
8670
+ const r = Xe(qe(e, Oe, t), "val"), n = r ? Number(r) : NaN;
8671
8671
  return Number.isFinite(n) && n > 0 ? Math.floor(n) : void 0;
8672
8672
  }
8673
8673
  function Xt(e) {
8674
- const t = qe(e, Fe, "cnfStyle");
8674
+ const t = qe(e, Oe, "cnfStyle");
8675
8675
  if (!t) return;
8676
8676
  const r = Xe(t, "val") ?? "", n = {};
8677
8677
  return jt.forEach(([e, o], i) => {
@@ -8689,7 +8689,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8689
8689
  }
8690
8690
  function Zt(e) {
8691
8691
  if (!e) return;
8692
- const t = qe(e, Fe, "tblPrEx");
8692
+ const t = qe(e, Oe, "tblPrEx");
8693
8693
  return t ? {
8694
8694
  ...Vt(e),
8695
8695
  type: "property",
@@ -8698,44 +8698,44 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8698
8698
  }
8699
8699
  function Yt(e) {
8700
8700
  if (!e) return;
8701
- const t = (t) => dt(Xe(qe(e, Fe, t), "w")), r = {}, n = t("top"), o = t("right"), i = t("bottom"), a = t("left"), s = t("start"), l = t("end");
8701
+ const t = (t) => dt(Xe(qe(e, Oe, t), "w")), r = {}, n = t("top"), o = t("right"), i = t("bottom"), a = t("left"), s = t("start"), l = t("end");
8702
8702
  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;
8703
8703
  }
8704
8704
  function Qt(e, t) {
8705
8705
  const r = {};
8706
8706
  t && (r.styleId = t);
8707
- const n = Xe(qe(e, Fe, "tblCaption"), "val");
8707
+ const n = Xe(qe(e, Oe, "tblCaption"), "val");
8708
8708
  n && (r.altTitle = n);
8709
- const o = Xe(qe(e, Fe, "tblDescription"), "val");
8709
+ const o = Xe(qe(e, Oe, "tblDescription"), "val");
8710
8710
  o && (r.altDescription = o);
8711
- const i = Wt(qe(e, Fe, "tblW"));
8711
+ const i = Wt(qe(e, Oe, "tblW"));
8712
8712
  void 0 !== i && (r.width = i);
8713
- const a = Wt(qe(e, Fe, "tblInd"));
8713
+ const a = Wt(qe(e, Oe, "tblInd"));
8714
8714
  void 0 !== a && (r.indentLeft = a);
8715
- const s = Xe(qe(e, Fe, "jc"), "val");
8715
+ const s = Xe(qe(e, Oe, "jc"), "val");
8716
8716
  "left" === s || "start" === s ? r.align = "left" : "center" === s ? r.align = "center" : "right" !== s && "end" !== s || (r.align = "right");
8717
8717
  const l = function(e) {
8718
- const t = Xe(qe(e, Fe, "tblLayout"), "type");
8718
+ const t = Xe(qe(e, Oe, "tblLayout"), "type");
8719
8719
  return "fixed" === t || "autofit" === t ? t : void 0;
8720
8720
  }(e);
8721
8721
  l && (r.layout = l);
8722
- const c = Wt(qe(e, Fe, "tblCellSpacing"));
8722
+ const c = Wt(qe(e, Oe, "tblCellSpacing"));
8723
8723
  void 0 !== c && (r.cellSpacing = c);
8724
- const u = (d = qe(e, Fe, "tblBorders")) ? {
8724
+ const u = (d = qe(e, Oe, "tblBorders")) ? {
8725
8725
  ...Pt(d),
8726
- borderInsideH: $t(qe(d, Fe, "insideH")),
8727
- borderInsideV: $t(qe(d, Fe, "insideV"))
8726
+ borderInsideH: $t(qe(d, Oe, "insideH")),
8727
+ borderInsideV: $t(qe(d, Oe, "insideV"))
8728
8728
  } : {};
8729
8729
  var d;
8730
8730
  Object.keys(u).length > 0 && (r.borders = u);
8731
- const p = Yt(qe(e, Fe, "tblCellMar"));
8731
+ const p = Yt(qe(e, Oe, "tblCellMar"));
8732
8732
  p && (r.defaultCellMargins = p);
8733
8733
  const f = e ? Qe(e, "bidiVisual") : void 0;
8734
8734
  void 0 !== f && (r.bidiVisual = f);
8735
- const h = Xe(qe(e, Fe, "tblOverlap"), "val");
8735
+ const h = Xe(qe(e, Oe, "tblOverlap"), "val");
8736
8736
  "overlap" !== h && "never" !== h || (r.tblOverlap = h);
8737
8737
  const m = function(e) {
8738
- const t = qe(e, Fe, "tblpPr");
8738
+ const t = qe(e, Oe, "tblpPr");
8739
8739
  if (!t || !t.attributes || 0 === t.attributes.length) return;
8740
8740
  const r = {};
8741
8741
  for (let l = 0; l < t.attributes.length; l += 1) {
@@ -8761,7 +8761,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8761
8761
  void 0 !== g && (r.rowBandSize = g);
8762
8762
  const w = Gt(e, "tblStyleColBandSize");
8763
8763
  void 0 !== w && (r.colBandSize = w);
8764
- const b = qe(e, Fe, "tblLook");
8764
+ const b = qe(e, Oe, "tblLook");
8765
8765
  if (b) {
8766
8766
  const e = Xe(b, "val"), t = e ? Number.parseInt(e, 16) : NaN, n = (e, r, n) => {
8767
8767
  const o = Xe(b, e);
@@ -8776,12 +8776,12 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8776
8776
  noVBand: n("noVBand", 1024, !1)
8777
8777
  };
8778
8778
  }
8779
- const v = qe(e, Fe, "tblPrChange"), y = qe(v, Fe, "tblPr");
8779
+ const v = qe(e, Oe, "tblPrChange"), y = qe(v, Oe, "tblPr");
8780
8780
  return v && y && (r.revision = {
8781
8781
  ...Vt(v),
8782
8782
  type: "property",
8783
8783
  previous: Qt(y) ?? {}
8784
- }), Ft(r);
8784
+ }), Ot(r);
8785
8785
  }
8786
8786
  function Kt(e) {
8787
8787
  if (!e) return;
@@ -8791,53 +8791,53 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8791
8791
  void 0 !== n && (t.gridBefore = n);
8792
8792
  const o = Gt(e, "gridAfter");
8793
8793
  void 0 !== o && (t.gridAfter = o);
8794
- const i = Wt(qe(e, Fe, "wBefore"));
8794
+ const i = Wt(qe(e, Oe, "wBefore"));
8795
8795
  void 0 !== i && (t.widthBefore = i);
8796
- const a = Wt(qe(e, Fe, "wAfter"));
8796
+ const a = Wt(qe(e, Oe, "wAfter"));
8797
8797
  void 0 !== a && (t.widthAfter = a);
8798
- const s = qe(e, Fe, "trHeight"), l = dt(Xe(s, "val"));
8798
+ const s = qe(e, Oe, "trHeight"), l = dt(Xe(s, "val"));
8799
8799
  void 0 !== l && (t.height = l);
8800
8800
  const c = Xe(s, "hRule");
8801
8801
  "auto" !== c && "exact" !== c && "atLeast" !== c || (t.heightRule = c);
8802
- const u = Wt(qe(e, Fe, "tblCellSpacing"));
8802
+ const u = Wt(qe(e, Oe, "tblCellSpacing"));
8803
8803
  void 0 !== u && (t.cellSpacing = u);
8804
- const d = Xe(qe(e, Fe, "jc"), "val");
8804
+ const d = Xe(qe(e, Oe, "jc"), "val");
8805
8805
  "left" === d || "start" === d ? t.align = "left" : "center" === d ? t.align = "center" : "right" !== d && "end" !== d || (t.align = "right");
8806
8806
  const p = Qe(e, "cantSplit");
8807
8807
  void 0 !== p && (t.cantSplit = p);
8808
8808
  const f = Qe(e, "hidden");
8809
8809
  void 0 !== f && (t.hidden = f);
8810
- const h = qe(e, Fe, "trPrChange"), m = qe(h, Fe, "trPr");
8810
+ const h = qe(e, Oe, "trPrChange"), m = qe(h, Oe, "trPr");
8811
8811
  h && m && (t.propertyRevision = {
8812
8812
  ...Vt(h),
8813
8813
  type: "property",
8814
8814
  previous: Kt(m) ?? {}
8815
8815
  });
8816
- const g = qe(e, Fe, "ins"), w = qe(e, Fe, "del"), b = g ?? w;
8816
+ const g = qe(e, Oe, "ins"), w = qe(e, Oe, "del"), b = g ?? w;
8817
8817
  return b && (t.revision = {
8818
8818
  ...Vt(b),
8819
8819
  type: g ? "insert" : "delete"
8820
- }), Ft(t);
8820
+ }), Ot(t);
8821
8821
  }
8822
8822
  function Jt(e) {
8823
8823
  if (!e) return 1;
8824
- const t = Xe(qe(e, Fe, "gridSpan"), "val"), r = t ? Number(t) : 1;
8824
+ const t = Xe(qe(e, Oe, "gridSpan"), "val"), r = t ? Number(t) : 1;
8825
8825
  return Number.isFinite(r) && r > 1 ? Math.floor(r) : 1;
8826
8826
  }
8827
8827
  function er(e) {
8828
8828
  if (!e) return;
8829
- const t = qe(e, Fe, "vMerge");
8829
+ const t = qe(e, Oe, "vMerge");
8830
8830
  return t ? "restart" === Xe(t, "val") ? "restart" : "continue" : void 0;
8831
8831
  }
8832
8832
  function tr(e) {
8833
8833
  if (!e) return;
8834
- const t = qe(e, Fe, "hMerge");
8834
+ const t = qe(e, Oe, "hMerge");
8835
8835
  return t ? "restart" === Xe(t, "val") ? "restart" : "continue" : void 0;
8836
8836
  }
8837
8837
  function rr(e, t, r) {
8838
8838
  if (!e) {
8839
8839
  if (!t) return;
8840
- return Ft({
8840
+ return Ot({
8841
8841
  paddingTop: t.top,
8842
8842
  paddingRight: t.right,
8843
8843
  paddingBottom: t.bottom,
@@ -8853,9 +8853,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8853
8853
  ...void 0 !== t?.left ? { paddingLeft: t.left } : {},
8854
8854
  ...void 0 !== t?.start ? { paddingStart: t.start } : {},
8855
8855
  ...void 0 !== t?.end ? { paddingEnd: t.end } : {}
8856
- }, o = Lt(qe(e, Fe, "shd"), r);
8856
+ }, o = Lt(qe(e, Oe, "shd"), r);
8857
8857
  o && (n.shading = o);
8858
- const i = qe(e, Fe, "tcW"), a = Xe(i, "type"), s = Xe(i, "w");
8858
+ const i = qe(e, Oe, "tcW"), a = Xe(i, "type"), s = Xe(i, "w");
8859
8859
  if ("dxa" === a) {
8860
8860
  const e = dt(s);
8861
8861
  void 0 !== e && (n.width = e);
@@ -8863,15 +8863,15 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8863
8863
  const e = Number(s);
8864
8864
  Number.isFinite(e) && (n.width = `${ct(e / 50, 4)}%`);
8865
8865
  }
8866
- const l = Yt(qe(e, Fe, "tcMar"));
8866
+ const l = Yt(qe(e, Oe, "tcMar"));
8867
8867
  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));
8868
8868
  const c = function(e) {
8869
8869
  if (!e) return;
8870
- const t = Xe(qe(e, Fe, "vAlign"), "val");
8870
+ const t = Xe(qe(e, Oe, "vAlign"), "val");
8871
8871
  return "top" === t || "bottom" === t ? t : "center" === t ? "middle" : void 0;
8872
8872
  }(e);
8873
8873
  c && (n.verticalAlign = c);
8874
- const u = je(Xe(qe(e, Fe, "textDirection"), "val"));
8874
+ const u = je(Xe(qe(e, Oe, "textDirection"), "val"));
8875
8875
  u && (n.textDirection = u);
8876
8876
  const d = Qe(e, "noWrap");
8877
8877
  void 0 !== d && (n.noWrap = d);
@@ -8879,15 +8879,15 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8879
8879
  void 0 !== p && (n.fitText = p);
8880
8880
  const f = Qe(e, "hideMark");
8881
8881
  void 0 !== f && (n.hideMark = f);
8882
- const h = Xe(qe(e, Fe, "headers"), "val");
8882
+ const h = Xe(qe(e, Oe, "headers"), "val");
8883
8883
  h && (n.headers = h);
8884
- const m = qe(e, Fe, "tcPrChange"), g = qe(m, Fe, "tcPr");
8884
+ const m = qe(e, Oe, "tcPrChange"), g = qe(m, Oe, "tcPr");
8885
8885
  m && g && (n.propertyRevision = {
8886
8886
  ...Vt(m),
8887
8887
  type: "property",
8888
8888
  previous: rr(g, void 0, r) ?? {}
8889
8889
  });
8890
- const w = qe(e, Fe, "cellIns"), b = qe(e, Fe, "cellDel"), v = qe(e, Fe, "cellMerge"), y = w ?? b ?? v;
8890
+ const w = qe(e, Oe, "cellIns"), b = qe(e, Oe, "cellDel"), v = qe(e, Oe, "cellMerge"), y = w ?? b ?? v;
8891
8891
  if (y) {
8892
8892
  const e = function(e) {
8893
8893
  return "rest" === e || "restart" === e ? "restart" : "cont" === e || "continue" === e ? "continue" : void 0;
@@ -8899,12 +8899,12 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8899
8899
  };
8900
8900
  }
8901
8901
  for (const [x, E] of Object.entries(function(e) {
8902
- return e ? Pt(qe(e, Fe, "tcBorders")) : {};
8902
+ return e ? Pt(qe(e, Oe, "tcBorders")) : {};
8903
8903
  }(e))) E && (n[x] = E);
8904
- return Ft(n);
8904
+ return Ot(n);
8905
8905
  }
8906
8906
  function nr(e) {
8907
- const t = qe(e, Fe, "trPr");
8907
+ const t = qe(e, Oe, "trPr");
8908
8908
  return !!t && !0 === Qe(t, "tblHeader");
8909
8909
  }
8910
8910
  function or(e) {
@@ -8970,21 +8970,21 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
8970
8970
  if (!e) return;
8971
8971
  const r = {}, n = Ke(e, "pStyle");
8972
8972
  n && (r.styleId = n);
8973
- const o = Xe(qe(e, Fe, "jc"), "val");
8973
+ const o = Xe(qe(e, Oe, "jc"), "val");
8974
8974
  "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");
8975
- const i = qe(e, Fe, "spacing"), a = Xe(i, "before"), s = Xe(i, "after"), l = Xe(i, "line"), c = Xe(i, "lineRule");
8975
+ const i = qe(e, Oe, "spacing"), a = Xe(i, "before"), s = Xe(i, "after"), l = Xe(i, "line"), c = Xe(i, "lineRule");
8976
8976
  a && (r.spacingBefore = ut(a, 0)), s && (r.spacingAfter = ut(s, 0)), l && ("exact" === c || "atLeast" === c ? (r.lineHeight = ct(Number(l) / 1440 * 96, 4), r.lineRule = c) : r.lineHeight = Number(l) / 240);
8977
8977
  const u = Qe(e, "contextualSpacing");
8978
8978
  void 0 !== u && (r.contextualSpacing = u);
8979
8979
  const d = Qe(e, "snapToGrid");
8980
8980
  void 0 !== d && (r.snapToGrid = d);
8981
- const p = qe(e, Fe, "ind"), f = Xe(p, "start") ?? Xe(p, "left"), h = Xe(p, "end") ?? Xe(p, "right"), m = Xe(p, "firstLine"), g = Xe(p, "hanging");
8981
+ const p = qe(e, Oe, "ind"), f = Xe(p, "start") ?? Xe(p, "left"), h = Xe(p, "end") ?? Xe(p, "right"), m = Xe(p, "firstLine"), g = Xe(p, "hanging");
8982
8982
  f && (r.indentLeft = ut(f, 0)), h && (r.indentRight = ut(h, 0)), g ? (r.indentHanging = ut(g, 0), r.indentFirstLine = void 0) : m && (r.indentFirstLine = ut(m, 0));
8983
8983
  const w = function(e) {
8984
- const t = qe(e, Fe, "tabs");
8984
+ const t = qe(e, Oe, "tabs");
8985
8985
  if (!t) return [];
8986
8986
  const r = [];
8987
- for (const n of ze(t, Fe, "tab")) {
8987
+ for (const n of ze(t, Oe, "tab")) {
8988
8988
  const e = dt(Xe(n, "pos"));
8989
8989
  if (void 0 === e) continue;
8990
8990
  const t = Xe(n, "val"), o = "center" === t || "right" === t || "decimal" === t || "bar" === t || "clear" === t ? t : "left", i = Xe(n, "leader"), a = "dot" === i || "hyphen" === i || "underscore" === i || "heavy" === i || "middleDot" === i ? i : "none" === i ? "none" : void 0;
@@ -9007,16 +9007,16 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9007
9007
  void 0 !== E && (r.widowControl = E);
9008
9008
  const S = Qe(e, "mirrorIndents");
9009
9009
  void 0 !== S && (r.mirrorIndents = S);
9010
- const N = qe(e, Fe, "pBdr");
9010
+ const N = qe(e, Oe, "pBdr");
9011
9011
  if (N) {
9012
9012
  const { borderTop: e, borderRight: t, borderBottom: n, borderLeft: o, borderBetween: i, borderBar: a } = Pt(N);
9013
9013
  e && (r.borderTop = e), t && (r.borderRight = t), n && (r.borderBottom = n), o && (r.borderLeft = o), i && (r.borderBetween = i), a && (r.borderBar = a);
9014
9014
  }
9015
- const k = Lt(qe(e, Fe, "shd"), t);
9015
+ const k = Lt(qe(e, Oe, "shd"), t);
9016
9016
  k && (r.shading = k);
9017
- const T = je(Xe(qe(e, Fe, "textDirection"), "val"));
9017
+ const T = je(Xe(qe(e, Oe, "textDirection"), "val"));
9018
9018
  T && (r.textDirection = T);
9019
- const I = Xe(qe(e, Fe, "outlineLvl"), "val");
9019
+ const I = Xe(qe(e, Oe, "outlineLvl"), "val");
9020
9020
  if (void 0 !== I) {
9021
9021
  const e = Number(I);
9022
9022
  Number.isFinite(e) && e >= 0 && e <= 8 && (r.outlineLevel = e);
@@ -9037,32 +9037,32 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9037
9037
  void 0 !== P && (r.topLinePunct = P);
9038
9038
  const M = Qe(e, "autoSpaceDE");
9039
9039
  void 0 !== M && (r.autoSpaceDE = M);
9040
- const F = Qe(e, "autoSpaceDN");
9041
- void 0 !== F && (r.autoSpaceDN = F);
9042
- const O = Qe(e, "adjustRightInd");
9043
- void 0 !== O && (r.adjustRightInd = O);
9044
- const L = Xe(qe(e, Fe, "textAlignment"), "val");
9040
+ const O = Qe(e, "autoSpaceDN");
9041
+ void 0 !== O && (r.autoSpaceDN = O);
9042
+ const F = Qe(e, "adjustRightInd");
9043
+ void 0 !== F && (r.adjustRightInd = F);
9044
+ const L = Xe(qe(e, Oe, "textAlignment"), "val");
9045
9045
  "auto" !== L && "top" !== L && "center" !== L && "baseline" !== L && "bottom" !== L || (r.textAlignment = L);
9046
- const B = Xe(qe(e, Fe, "textboxTightWrap"), "val");
9046
+ const B = Xe(qe(e, Oe, "textboxTightWrap"), "val");
9047
9047
  "none" !== B && "allLines" !== B && "firstLineOnly" !== B && "firstLastLine" !== B || (r.textboxTightWrap = B);
9048
- const U = Xe(qe(e, Fe, "divId"), "val");
9048
+ const U = Xe(qe(e, Oe, "divId"), "val");
9049
9049
  if (null !== U) {
9050
9050
  const e = Number(U);
9051
9051
  Number.isFinite(e) && e >= 0 && (r.divId = Math.floor(e));
9052
9052
  }
9053
9053
  const z = Xt(e);
9054
9054
  z && (r.conditionalStyle = z);
9055
- const H = qe(e, Fe, "framePr");
9055
+ const H = qe(e, Oe, "framePr");
9056
9056
  if (H) {
9057
9057
  const e = Xe(H, "dropCap");
9058
9058
  e && "none" !== e || (r.framePrXml = new b.XMLSerializer().serializeToString(H));
9059
9059
  }
9060
- const j = qe(e, Fe, "pPrChange"), q = Nt(j), W = qe(j, Fe, "pPr");
9060
+ const j = qe(e, Oe, "pPrChange"), q = Nt(j), W = qe(j, Oe, "pPr");
9061
9061
  return q && W && (r.propertyRevision = {
9062
9062
  ...q,
9063
9063
  type: "property",
9064
9064
  previous: ar(W, t) ?? {}
9065
- }), Ft(r);
9065
+ }), Ot(r);
9066
9066
  }
9067
9067
  const sr = {
9068
9068
  width: 816,
@@ -9082,11 +9082,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9082
9082
  return "1" === e || "true" === e || "on" === e;
9083
9083
  }
9084
9084
  function cr(e) {
9085
- const t = qe(e, Fe, "cols");
9085
+ const t = qe(e, Oe, "cols");
9086
9086
  if (!t) return;
9087
9087
  const r = Number.parseInt(Xe(t, "num") ?? "1", 10);
9088
9088
  if (!Number.isFinite(r) || r <= 1) return;
9089
- const n = ut(Xe(t, "space"), 0), o = Xe(t, "sep"), i = Xe(t, "equalWidth"), a = ze(t, Fe, "col").map((e) => ({
9089
+ const n = ut(Xe(t, "space"), 0), o = Xe(t, "sep"), i = Xe(t, "equalWidth"), a = ze(t, Oe, "col").map((e) => ({
9090
9090
  width: ut(Xe(e, "w"), 0),
9091
9091
  space: ut(Xe(e, "space"), n)
9092
9092
  })), s = null == i || lr(i);
@@ -9099,7 +9099,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9099
9099
  };
9100
9100
  }
9101
9101
  function ur(e) {
9102
- const t = qe(e, Fe, "pgSz"), r = qe(e, Fe, "pgMar"), n = cr(e), i = qe(qe(e, Fe, "pgBorders"), Fe, "top"), a = Xe(i, "val"), s = Xe(i, "color"), l = Number.parseInt(Xe(i, "sz") ?? "0", 10), c = a && s && "nil" !== a ? {
9102
+ const t = qe(e, Oe, "pgSz"), r = qe(e, Oe, "pgMar"), n = cr(e), i = qe(qe(e, Oe, "pgBorders"), Oe, "top"), a = Xe(i, "val"), s = Xe(i, "color"), l = Number.parseInt(Xe(i, "sz") ?? "0", 10), c = a && s && "nil" !== a ? {
9103
9103
  style: "double" === a || "dashed" === a || "dotted" === a ? a : "single",
9104
9104
  color: `#${s.replace(/^#/, "")}`,
9105
9105
  width: Number.isFinite(l) && l > 0 ? l / 8 : 1,
@@ -9126,14 +9126,14 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9126
9126
  }
9127
9127
  const d = (t) => {
9128
9128
  const r = {};
9129
- for (const n of ze(e, Fe, t)) {
9129
+ for (const n of ze(e, Oe, t)) {
9130
9130
  const e = n.getAttributeNS("http://schemas.openxmlformats.org/wordprocessingml/2006/main", "type") || "default";
9131
9131
  if ("default" !== e && "first" !== e && "even" !== e) continue;
9132
9132
  const t = n.getAttributeNS("http://schemas.openxmlformats.org/officeDocument/2006/relationships", "id");
9133
9133
  t && (r[e] = t);
9134
9134
  }
9135
9135
  return r;
9136
- }, p = d("headerReference"), f = d("footerReference"), h = qe(e, Fe, "docGrid"), m = Xe(h, "type"), g = ut(Xe(h, "linePitch"), NaN), w = Xe(qe(e, Fe, "type"), "val"), b = "continuous" === w || "nextPage" === w || "evenPage" === w || "oddPage" === w || "nextColumn" === w ? w : void 0, v = qe(e, Fe, "pgNumType");
9136
+ }, p = d("headerReference"), f = d("footerReference"), h = qe(e, Oe, "docGrid"), m = Xe(h, "type"), g = ut(Xe(h, "linePitch"), NaN), w = Xe(qe(e, Oe, "type"), "val"), b = "continuous" === w || "nextPage" === w || "evenPage" === w || "oddPage" === w || "nextColumn" === w ? w : void 0, v = qe(e, Oe, "pgNumType");
9137
9137
  let y;
9138
9138
  if (v) {
9139
9139
  const e = Xe(v, "start"), t = null !== e ? Number.parseInt(e, 10) : void 0, r = Xe(v, "fmt") ?? void 0, n = Xe(v, "chapStyle") ?? void 0, o = Xe(v, "chapSep") ?? void 0;
@@ -9144,7 +9144,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9144
9144
  ...o ? { chapterSeparator: o } : {}
9145
9145
  });
9146
9146
  }
9147
- const x = Xe(qe(e, Fe, "vAlign"), "val"), E = "center" === x || "both" === x || "bottom" === x ? x : void 0, S = Qe(e, "bidi"), N = qe(e, Fe, "sectPrChange"), k = Nt(N), T = qe(N, Fe, "sectPr"), I = k && T ? {
9147
+ const x = Xe(qe(e, Oe, "vAlign"), "val"), E = "center" === x || "both" === x || "bottom" === x ? x : void 0, S = Qe(e, "bidi"), N = qe(e, Oe, "sectPrChange"), k = Nt(N), T = qe(N, Oe, "sectPr"), I = k && T ? {
9148
9148
  ...k,
9149
9149
  type: "property",
9150
9150
  previous: (_ = ur(T), C = u, {
@@ -9174,9 +9174,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9174
9174
  }
9175
9175
  function dr(e) {
9176
9176
  if (!e) return;
9177
- const t = qe(e, Fe, "sectPr");
9177
+ const t = qe(e, Oe, "sectPr");
9178
9178
  if (!t) return;
9179
- const r = qe(t, Fe, "pgSz"), n = qe(t, Fe, "pgMar"), o = cr(t);
9179
+ const r = qe(t, Oe, "pgSz"), n = qe(t, Oe, "pgMar"), o = cr(t);
9180
9180
  if (!r && !n && !o) return;
9181
9181
  const i = ut(Xe(r, "w"), 816), a = ut(Xe(r, "h"), 1056), s = Xe(r, "orient");
9182
9182
  return {
@@ -9331,12 +9331,12 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9331
9331
  issues: o
9332
9332
  };
9333
9333
  }
9334
- function Fr(e, t) {
9334
+ function Or(e, t) {
9335
9335
  if (t === e.mainDocumentPart) return !0;
9336
9336
  const r = e.parts[t]?.contentType ?? "";
9337
9337
  return /wordprocessingml\.(?:header|footer|footnotes|endnotes|comments|document\.glossary)\+xml$/.test(r);
9338
9338
  }
9339
- function Or(e) {
9339
+ function Fr(e) {
9340
9340
  const t = Nr(e);
9341
9341
  return Tr(e, wr, "AlternateContent") && t.filter((e) => Tr(e, wr, "Choice")).some((e) => kr(e, gr, "graphicData").some((e) => e.getAttribute("uri") === xr && kr(e, xr, "wsp").length > 0 && kr(e, hr, "txbxContent").length > 0)) ? t.filter((e) => {
9342
9342
  if (!Tr(e, wr, "Fallback")) return !0;
@@ -9347,7 +9347,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9347
9347
  }) : t;
9348
9348
  }
9349
9349
  function Lr(e) {
9350
- return Tr(e, wr, "AlternateContent") ? Or(e).flatMap((e) => [
9350
+ return Tr(e, wr, "AlternateContent") ? Fr(e).flatMap((e) => [
9351
9351
  "drawing",
9352
9352
  "pict",
9353
9353
  "object"
@@ -9371,7 +9371,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9371
9371
  const t = [], r = [];
9372
9372
  for (const o of Object.keys(e.parts).sort(Ir)) {
9373
9373
  const i = e.parts[o];
9374
- if (Fr(e, o) && "xml" === i.kind && /<(?:[\w.-]+:)?(?:drawing|pict|object)(?=[\s/>])/.test(i.data)) try {
9374
+ if (Or(e, o) && "xml" === i.kind && /<(?:[\w.-]+:)?(?:drawing|pict|object)(?=[\s/>])/.test(i.data)) try {
9375
9375
  if (/<!\s*(?:DOCTYPE|ENTITY)\b/i.test(i.data)) throw Error("DTD/entity declaration unsupported");
9376
9376
  const n = new b.DOMParser().parseFromString(i.data, "application/xml").documentElement;
9377
9377
  if (!n) throw Error("Missing story root");
@@ -9380,7 +9380,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9380
9380
  for (; a.length;) {
9381
9381
  const n = a.pop(), i = Lr(n);
9382
9382
  if (!i) {
9383
- a.push(...Or(n).reverse());
9383
+ a.push(...Fr(n).reverse());
9384
9384
  continue;
9385
9385
  }
9386
9386
  const l = Ar(n), c = Mr(e, o, l), u = {
@@ -9740,49 +9740,49 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9740
9740
  ]), an = /* @__PURE__ */ new Set(["repeatingSection", "repeatingSectionItem"]);
9741
9741
  function sn(e) {
9742
9742
  if (!e) return {};
9743
- const t = {}, r = qe(e, Fe, "alias");
9743
+ const t = {}, r = qe(e, Oe, "alias");
9744
9744
  if (r) {
9745
9745
  const e = Xe(r, "val");
9746
9746
  null !== e && (t.alias = e);
9747
9747
  }
9748
- const n = qe(e, Fe, "tag");
9748
+ const n = qe(e, Oe, "tag");
9749
9749
  if (n) {
9750
9750
  const e = Xe(n, "val");
9751
9751
  null !== e && (t.tag = e);
9752
9752
  }
9753
- const o = qe(e, Fe, "id");
9753
+ const o = qe(e, Oe, "id");
9754
9754
  if (o) {
9755
9755
  const e = Xe(o, "val");
9756
9756
  null !== e && (t.id = e);
9757
9757
  }
9758
- const i = qe(e, Fe, "lock");
9758
+ const i = qe(e, Oe, "lock");
9759
9759
  if (i) {
9760
9760
  const e = Xe(i, "val");
9761
9761
  null !== e && (t.lock = e);
9762
9762
  }
9763
- const a = qe(e, Fe, "appearance");
9763
+ const a = qe(e, Oe, "appearance");
9764
9764
  if (a) {
9765
9765
  const e = Xe(a, "val");
9766
9766
  null !== e && (t.appearance = e);
9767
9767
  }
9768
- const s = qe(e, Fe, "showingPlcHdr");
9768
+ const s = qe(e, Oe, "showingPlcHdr");
9769
9769
  s && (t.showingPlcHdr = Ye(Xe(s, "val")));
9770
- const l = qe(e, Fe, "temporary");
9770
+ const l = qe(e, Oe, "temporary");
9771
9771
  l && (t.temporary = Ye(Xe(l, "val")));
9772
- const c = qe(e, Fe, "color");
9772
+ const c = qe(e, Oe, "color");
9773
9773
  if (c) {
9774
9774
  const e = Xe(c, "val");
9775
9775
  null !== e && (t.color = e);
9776
9776
  }
9777
- const u = qe(e, Fe, "placeholder");
9777
+ const u = qe(e, Oe, "placeholder");
9778
9778
  if (u) {
9779
- const e = qe(u, Fe, "docPart");
9779
+ const e = qe(u, Oe, "docPart");
9780
9780
  if (e) {
9781
9781
  const r = Xe(e, "val");
9782
9782
  null !== r && (t.placeholderDocPart = r);
9783
9783
  }
9784
9784
  }
9785
- const d = qe(e, Fe, "dataBinding");
9785
+ const d = qe(e, Oe, "dataBinding");
9786
9786
  if (d) {
9787
9787
  const e = function(e) {
9788
9788
  const t = {}, r = Xe(e, "prefixMappings"), n = Xe(e, "xpath"), o = Xe(e, "storeItemID");
@@ -9790,15 +9790,15 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9790
9790
  null !== n && (t.xpath = n);
9791
9791
  null !== o && (t.storeItemID = o);
9792
9792
  if (void 0 === t.prefixMappings) {
9793
- const r = Xe(qe(e, Fe, "prefixMappings"), "val");
9793
+ const r = Xe(qe(e, Oe, "prefixMappings"), "val");
9794
9794
  null !== r && (t.prefixMappings = r);
9795
9795
  }
9796
9796
  if (void 0 === t.xpath) {
9797
- const r = Xe(qe(e, Fe, "xpath"), "val");
9797
+ const r = Xe(qe(e, Oe, "xpath"), "val");
9798
9798
  null !== r && (t.xpath = r);
9799
9799
  }
9800
9800
  if (void 0 === t.storeItemID) {
9801
- const r = Xe(qe(e, Fe, "storeItemID"), "val");
9801
+ const r = Xe(qe(e, Oe, "storeItemID"), "val");
9802
9802
  null !== r && (t.storeItemID = r);
9803
9803
  }
9804
9804
  return void 0 === t.prefixMappings && void 0 === t.xpath && void 0 === t.storeItemID ? null : t;
@@ -9806,27 +9806,27 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9806
9806
  e && (t.dataBinding = e);
9807
9807
  }
9808
9808
  const p = function(e) {
9809
- const t = qe(e, Fe, "comboBox");
9809
+ const t = qe(e, Oe, "comboBox");
9810
9810
  if (t) {
9811
- const e = qe(t, Fe, "lastSelectedValue");
9811
+ const e = qe(t, Oe, "lastSelectedValue");
9812
9812
  return {
9813
9813
  kind: "comboBox",
9814
9814
  listItems: ln(t),
9815
9815
  ...e ? { lastSelectedValue: Xe(e, "val") ?? void 0 } : {}
9816
9816
  };
9817
9817
  }
9818
- const r = qe(e, Fe, "dropDownList");
9818
+ const r = qe(e, Oe, "dropDownList");
9819
9819
  if (r) {
9820
- const e = qe(r, Fe, "lastSelectedValue");
9820
+ const e = qe(r, Oe, "lastSelectedValue");
9821
9821
  return {
9822
9822
  kind: "dropDownList",
9823
9823
  listItems: ln(r),
9824
9824
  ...e ? { lastSelectedValue: Xe(e, "val") ?? void 0 } : {}
9825
9825
  };
9826
9826
  }
9827
- const n = qe(e, Fe, "date");
9827
+ const n = qe(e, Oe, "date");
9828
9828
  if (n) {
9829
- const e = Xe(n, "fullDate") ?? void 0, t = qe(n, Fe, "dateFormat"), r = qe(n, Fe, "lid"), o = qe(n, Fe, "calendar"), i = qe(n, Fe, "storeMappedDataAs");
9829
+ const e = Xe(n, "fullDate") ?? void 0, t = qe(n, Oe, "dateFormat"), r = qe(n, Oe, "lid"), o = qe(n, Oe, "calendar"), i = qe(n, Oe, "storeMappedDataAs");
9830
9830
  return {
9831
9831
  kind: "date",
9832
9832
  fullDate: e,
@@ -9888,7 +9888,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
9888
9888
  return f.length > 0 && (t.unknownXml = f), t;
9889
9889
  }
9890
9890
  function ln(e) {
9891
- const t = ze(e, Fe, "listItem");
9891
+ const t = ze(e, Oe, "listItem");
9892
9892
  if (0 !== t.length) return t.map((e) => ({
9893
9893
  displayText: Xe(e, "displayText") ?? void 0,
9894
9894
  value: Xe(e, "value") ?? void 0
@@ -10753,9 +10753,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
10753
10753
  continue;
10754
10754
  }
10755
10755
  if ("sdt" === h.localName) {
10756
- const e = qe(h, Fe, "sdtContent");
10756
+ const e = qe(h, Oe, "sdtContent");
10757
10757
  if (!e) continue;
10758
- const c = qe(h, Fe, "sdtPr"), u = qe(h, Fe, "sdtEndPr"), d = {
10758
+ const c = qe(h, Oe, "sdtPr"), u = qe(h, Oe, "sdtEndPr"), d = {
10759
10759
  groupId: D("sdt"),
10760
10760
  sdtPr: sn(c),
10761
10761
  ...u ? { sdtEndPrXml: new b.XMLSerializer().serializeToString(u) } : {}
@@ -10767,7 +10767,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
10767
10767
  continue;
10768
10768
  }
10769
10769
  if ("r" === h.localName) {
10770
- const e = Ht(qe(h, Fe, "rPr"), i), t = Array.from(h.childNodes).filter((e) => 1 === e.nodeType && !("http://schemas.openxmlformats.org/wordprocessingml/2006/main" === e.namespaceURI && "rPr" === e.localName)), u = t.map((e) => ({
10770
+ const e = Ht(qe(h, Oe, "rPr"), i), t = Array.from(h.childNodes).filter((e) => 1 === e.nodeType && !("http://schemas.openxmlformats.org/wordprocessingml/2006/main" === e.namespaceURI && "rPr" === e.localName)), u = t.map((e) => ({
10771
10771
  child: e,
10772
10772
  opaque: Br(e)
10773
10773
  })), f = (e) => "http://schemas.openxmlformats.org/wordprocessingml/2006/main" === e.namespaceURI && [
@@ -10877,7 +10877,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
10877
10877
  }
10878
10878
  continue;
10879
10879
  }
10880
- const g = qe(h, Fe, "footnoteReference");
10880
+ const g = qe(h, Oe, "footnoteReference");
10881
10881
  if (g) {
10882
10882
  const t = Xe(g, "id");
10883
10883
  if (!t) continue;
@@ -10893,7 +10893,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
10893
10893
  });
10894
10894
  continue;
10895
10895
  }
10896
- const w = qe(h, Fe, "endnoteReference");
10896
+ const w = qe(h, Oe, "endnoteReference");
10897
10897
  if (w) {
10898
10898
  const t = Xe(w, "id");
10899
10899
  if (!t) continue;
@@ -10997,7 +10997,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
10997
10997
  }
10998
10998
  return l;
10999
10999
  }
11000
- const Fn = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", On = /<w:rPr(?:\s|\/|>)/, Ln = /<w:pPr(?:\s|\/|>)/;
11000
+ const On = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Fn = /<w:rPr(?:\s|\/|>)/, Ln = /<w:pPr(?:\s|\/|>)/;
11001
11001
  function Bn(e) {
11002
11002
  if (Array.isArray(e)) return e.map(Bn);
11003
11003
  if (!e || "object" != typeof e) return e;
@@ -11017,7 +11017,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11017
11017
  const r = [];
11018
11018
  for (let n = 0; n < e.childNodes.length; n += 1) {
11019
11019
  const o = e.childNodes[n];
11020
- o?.nodeType === o.ELEMENT_NODE && o.namespaceURI === Fn && o.localName === t && r.push(o);
11020
+ o?.nodeType === o.ELEMENT_NODE && o.namespaceURI === On && o.localName === t && r.push(o);
11021
11021
  }
11022
11022
  return r;
11023
11023
  }
@@ -11138,7 +11138,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11138
11138
  if (n < 0) return;
11139
11139
  const o = r.slice(0, n + 1), i = e.tagName;
11140
11140
  return o.slice(`<${i}`.length, o.endsWith("/>") ? -2 : -1).trim() || void 0;
11141
- }(e, n), i = t ? qe(t, Fe, "sectPr") : null, a = i ? void 0 : n.serializeToString(e), s = t && !i ? n.serializeToString(t) : void 0, l = function(e, t) {
11141
+ }(e, n), i = t ? qe(t, Oe, "sectPr") : null, a = i ? void 0 : n.serializeToString(e), s = t && !i ? n.serializeToString(t) : void 0, l = function(e, t) {
11142
11142
  const r = [], n = (e) => {
11143
11143
  for (let o = 0; o < e.childNodes.length; o += 1) {
11144
11144
  const i = e.childNodes[o];
@@ -11229,11 +11229,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11229
11229
  return e.some((e) => e.image || e.textBox || e.field || e.fieldChar || void 0 !== e.fieldInstruction || e.bookmark || e.comment || e.revisionRangeMarker || e.text.replace(/\s/g, "").length > 0);
11230
11230
  }
11231
11231
  async function po(e, t, r, n, o, i, a, s) {
11232
- const l = qe(e, Fe, "pPr"), c = await Mn(e, t, r, n, o, i, void 0, a), u = ir(ar(l, i.colors)), d = Ht(qe(l, Fe, "rPr"), i), p = function(e, t) {
11232
+ const l = qe(e, Oe, "pPr"), c = await Mn(e, t, r, n, o, i, void 0, a), u = ir(ar(l, i.colors)), d = Ht(qe(l, Oe, "rPr"), i), p = function(e, t) {
11233
11233
  if (!e) return;
11234
- const r = qe(e, Fe, "numPr");
11234
+ const r = qe(e, Oe, "numPr");
11235
11235
  if (!r) return;
11236
- const n = Xe(qe(r, Fe, "numId"), "val");
11236
+ const n = Xe(qe(r, Oe, "numId"), "val");
11237
11237
  if (!n) return;
11238
11238
  const o = Xe(qe(r, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "ilvl"), "val") ?? "0", i = Number.parseInt(o, 10), a = Number.isFinite(i) ? i : 0, s = Ct(t, n, a), l = [];
11239
11239
  for (let m = 0; m <= a; m += 1) l[m] = Ct(t, n, m).format ?? "decimal";
@@ -11271,7 +11271,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11271
11271
  };
11272
11272
  }(l, t), f = p?.list, h = function(e) {
11273
11273
  if (!e) return;
11274
- const r = qe(qe(e, Fe, "numPr"), Fe, "numberingChange"), n = Nt(r);
11274
+ const r = qe(qe(e, Oe, "numPr"), Oe, "numberingChange"), n = Nt(r);
11275
11275
  if (!n) return;
11276
11276
  const o = Xe(r, "original") ?? void 0;
11277
11277
  return {
@@ -11292,7 +11292,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11292
11292
  ...s,
11293
11293
  ...m ?? {}
11294
11294
  } : m), w = function(e, t) {
11295
- const r = qe(e, Fe, "framePr");
11295
+ const r = qe(e, Oe, "framePr");
11296
11296
  if (!r) return null;
11297
11297
  const n = Xe(r, "dropCap");
11298
11298
  if (!n || "none" === n) return null;
@@ -11356,7 +11356,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11356
11356
  };
11357
11357
  }
11358
11358
  async function fo(e, t, r, n, o, i, a, s) {
11359
- return (await po(e, t, r, n, o, i, a, s)).paragraphs[0] ?? O([{ text: "" }]);
11359
+ return (await po(e, t, r, n, o, i, a, s)).paragraphs[0] ?? F([{ text: "" }]);
11360
11360
  }
11361
11361
  function ho(e, t, r, n) {
11362
11362
  for (const o of Me(e)) {
@@ -11369,9 +11369,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11369
11369
  continue;
11370
11370
  }
11371
11371
  if ("sdt" !== o.localName) continue;
11372
- const e = qe(o, Fe, "sdtContent");
11372
+ const e = qe(o, Oe, "sdtContent");
11373
11373
  if (!e) continue;
11374
- const i = qe(o, Fe, "sdtPr"), a = qe(o, Fe, "sdtEndPr"), s = {
11374
+ const i = qe(o, Oe, "sdtPr"), a = qe(o, Oe, "sdtEndPr"), s = {
11375
11375
  groupId: D("sdt"),
11376
11376
  sdtPr: sn(i),
11377
11377
  ...a ? { sdtEndPrXml: new b.XMLSerializer().serializeToString(a) } : {}
@@ -11385,7 +11385,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11385
11385
  }
11386
11386
  function go(e, t) {
11387
11387
  if (!t.every((e) => "paragraph" === e.type)) return;
11388
- const r = ze(e, Fe, "p");
11388
+ const r = ze(e, Oe, "p");
11389
11389
  r.length === t.length && function(e, t) {
11390
11390
  const r = (e) => e.style ??= {}, n = e.length - 1;
11391
11391
  for (let o = 0; o < e.length; o += 1) {
@@ -11398,12 +11398,12 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11398
11398
  (n.spacingAfter ?? 0) >= (i.spacingBefore ?? 0) ? i.spacingBefore = 0 : n.spacingAfter = 0;
11399
11399
  }
11400
11400
  }(t, r.map((e) => function(e) {
11401
- const t = qe(e, Fe, "spacing");
11401
+ const t = qe(e, Oe, "spacing");
11402
11402
  return {
11403
11403
  before: Ye(Xe(t, "beforeAutospacing")),
11404
11404
  after: Ye(Xe(t, "afterAutospacing"))
11405
11405
  };
11406
- }(qe(e, Fe, "pPr"))));
11406
+ }(qe(e, Oe, "pPr"))));
11407
11407
  }
11408
11408
  function wo(e) {
11409
11409
  const t = e.style?.revision, r = "merge" === t?.type ? t.previous?.vMerge : void 0;
@@ -11427,13 +11427,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11427
11427
  };
11428
11428
  }
11429
11429
  async function bo(e, t, r, n, o, i, a, s) {
11430
- const l = [], c = qe(e, Fe, "tblGrid");
11431
- if (c) for (const b of ze(c, Fe, "gridCol")) {
11430
+ const l = [], c = qe(e, Oe, "tblGrid");
11431
+ if (c) for (const b of ze(c, Oe, "gridCol")) {
11432
11432
  const e = dt(Xe(b, "w"));
11433
11433
  void 0 !== e && l.push(e);
11434
11434
  }
11435
- const u = qe(c, Fe, "tblGridChange"), d = qe(e, Fe, "tblPr"), p = Xe(qe(d, Fe, "tblStyle"), "val"), f = Qt(d, p ?? void 0), h = function(e) {
11436
- const t = qe(e, Fe, "tblLook"), r = (e) => {
11435
+ const u = qe(c, Oe, "tblGridChange"), d = qe(e, Oe, "tblPr"), p = Xe(qe(d, Oe, "tblStyle"), "val"), f = Qt(d, p ?? void 0), h = function(e) {
11436
+ const t = qe(e, Oe, "tblLook"), r = (e) => {
11437
11437
  const r = Xe(t, e);
11438
11438
  return null === r || "" === r ? void 0 : Ye(r);
11439
11439
  }, n = Xe(t, "val"), o = n ? Number.parseInt(n, 16) : NaN, i = (e) => Number.isFinite(o) ? 0 !== (o & e) : void 0;
@@ -11447,9 +11447,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11447
11447
  };
11448
11448
  }(d), m = mo(e, "tr"), g = [];
11449
11449
  for (let v = 0; v < m.length; v += 1) {
11450
- const e = m[v], t = e.element, r = qe(t, Fe, "trPr"), n = Xt(r), o = mo(t, "tc"), s = [];
11450
+ const e = m[v], t = e.element, r = qe(t, Oe, "trPr"), n = Xt(r), o = mo(t, "tc"), s = [];
11451
11451
  for (let p = 0; p < o.length; p += 1) {
11452
- const e = o[p], t = e.element, r = qe(t, Fe, "tcPr"), n = await a(t);
11452
+ const e = o[p], t = e.element, r = qe(t, Oe, "tcPr"), n = await a(t);
11453
11453
  go(t, n);
11454
11454
  const l = Jt(r);
11455
11455
  if ("continue" === tr(r) && s.length > 0) {
@@ -11457,7 +11457,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11457
11457
  e.colSpan = (e.colSpan ?? 1) + l;
11458
11458
  continue;
11459
11459
  }
11460
- const c = er(r), u = rr(r, void 0, i.colors), d = L(n.length > 0 ? n : [O([{ text: "" }])], l, "restart" === c ? {
11460
+ const c = er(r), u = rr(r, void 0, i.colors), d = L(n.length > 0 ? n : [F([{ text: "" }])], l, "restart" === c ? {
11461
11461
  rowSpan: 1,
11462
11462
  vMerge: c
11463
11463
  } : c ? { vMerge: c } : void 0);
@@ -11469,11 +11469,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11469
11469
  c && (l.style = c), l.conditionalStyle = n, e.sdtWrappers?.length && (l.sdtWrappers = [...e.sdtWrappers]);
11470
11470
  const u = Ze(t);
11471
11471
  u && (l.extAttributes = u);
11472
- const d = qe(t, Fe, "tblPrEx");
11472
+ const d = qe(t, Oe, "tblPrEx");
11473
11473
  if (d) {
11474
11474
  const e = Qt(d);
11475
11475
  e && (l.propertyExceptions = e);
11476
- const t = qe(d, Fe, "tblPrExChange");
11476
+ const t = qe(d, Oe, "tblPrExChange");
11477
11477
  if (t) {
11478
11478
  const e = Zt(t);
11479
11479
  e && (l.propertyExceptionsRevision = e), l.tblPrExChangeXml = new b.XMLSerializer().serializeToString(t);
@@ -11504,7 +11504,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11504
11504
  };
11505
11505
  }(g, l.length > 0 ? l : void 0);
11506
11506
  if (f && (w.style = f), w.style ? w.style.tblLook = h : p && (w.style = { tblLook: h }), u) {
11507
- const e = qe(u, Fe, "tblGrid"), t = e ? ze(e, Fe, "gridCol").map((e) => dt(Xe(e, "w"))).filter((e) => void 0 !== e) : [], r = Xe(u, "date"), n = r ? Date.parse(r) : NaN;
11507
+ const e = qe(u, Oe, "tblGrid"), t = e ? ze(e, Oe, "gridCol").map((e) => dt(Xe(e, "w"))).filter((e) => void 0 !== e) : [], r = Xe(u, "date"), n = r ? Date.parse(r) : NaN;
11508
11508
  w.gridRevision = {
11509
11509
  id: Xe(u, "id") ?? "revision:grid",
11510
11510
  author: Xe(u, "author") ?? "Unknown",
@@ -11517,7 +11517,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11517
11517
  let r = "string" == typeof t ? { xml: t } : t;
11518
11518
  if ("string" == typeof t) {
11519
11519
  const n = new b.DOMParser().parseFromString(t, "application/xml").documentElement;
11520
- n?.namespaceURI === Fn && "tbl" === n.localName && (r = {
11520
+ n?.namespaceURI === On && "tbl" === n.localName && (r = {
11521
11521
  ...r,
11522
11522
  ...io(e, n)
11523
11523
  });
@@ -11539,11 +11539,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11539
11539
  return "http://schemas.openxmlformats.org/wordprocessingml/2006/main" !== e.namespaceURI ? [] : "p" === e.localName ? (await po(e, t, r, n, o, i, a)).paragraphs : "tbl" === e.localName ? [await bo(e, 0, 0, 0, 0, i, a)] : "sdt" === e.localName ? yo(e, t, r, n, o, i, a) : [];
11540
11540
  }
11541
11541
  async function yo(e, t, r, n, o, i, a) {
11542
- const s = qe(e, Fe, "sdtPr"), l = qe(e, Fe, "sdtEndPr"), c = {
11542
+ const s = qe(e, Oe, "sdtPr"), l = qe(e, Oe, "sdtEndPr"), c = {
11543
11543
  groupId: D("sdt"),
11544
11544
  sdtPr: sn(s),
11545
11545
  ...l ? { sdtEndPrXml: new b.XMLSerializer().serializeToString(l) } : {}
11546
- }, u = qe(e, Fe, "sdtContent"), d = [];
11546
+ }, u = qe(e, Oe, "sdtContent"), d = [];
11547
11547
  if (u) for (let p = 0; p < u.childNodes.length; p += 1) {
11548
11548
  const e = u.childNodes[p];
11549
11549
  e?.nodeType === e.ELEMENT_NODE && d.push(...await vo(e, t, r, n, o, i, a));
@@ -11589,7 +11589,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11589
11589
  if (!c) return l;
11590
11590
  const u = {}, d = /* @__PURE__ */ new Map();
11591
11591
  let p, f;
11592
- const h = ze(c, Fe, e);
11592
+ const h = ze(c, Oe, e);
11593
11593
  let m = 0;
11594
11594
  const g = xo(r, n, o, i, a);
11595
11595
  for (const w of h) {
@@ -11799,7 +11799,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11799
11799
  formatMarker: Do
11800
11800
  };
11801
11801
  const Mo = /* @__PURE__ */ new Set(["_GoBack"]);
11802
- function Fo(e, t, r) {
11802
+ function Oo(e, t, r) {
11803
11803
  if ("paragraph" === e.type) {
11804
11804
  let n = 0;
11805
11805
  const o = [];
@@ -11817,11 +11817,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11817
11817
  o.length !== e.runs.length && (e.runs = o.length > 0 ? o : [M("")]);
11818
11818
  return;
11819
11819
  }
11820
- for (const n of e.rows) for (const e of n.cells) for (const n of e.blocks) Fo(n, t, r);
11820
+ for (const n of e.rows) for (const e of n.cells) for (const n of e.blocks) Oo(n, t, r);
11821
11821
  }
11822
- function Oo(e) {
11822
+ function Fo(e) {
11823
11823
  const t = [], r = { value: 0 }, n = (e) => {
11824
- e?.forEach((e) => Fo(e, t, r));
11824
+ e?.forEach((e) => Oo(e, t, r));
11825
11825
  };
11826
11826
  for (const c of e) n(c.blocks), n(c.header), n(c.firstPageHeader), n(c.evenPageHeader), n(c.footer), n(c.firstPageFooter), n(c.evenPageFooter);
11827
11827
  if (0 === t.length) return;
@@ -11929,10 +11929,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11929
11929
  }
11930
11930
  return t;
11931
11931
  }(t);
11932
- for (const i of ze(n, Fe, "comment")) {
11932
+ for (const i of ze(n, Oe, "comment")) {
11933
11933
  const e = Xe(i, "id");
11934
11934
  if (null === e) continue;
11935
- const t = Xe(i, "author") ?? "", n = Xe(i, "initials") ?? void 0, a = Ho(Xe(i, "date")), s = Ho(i.getAttributeNS("http://schemas.microsoft.com/office/word/2023/wordml/word16du", "dateUtc")), l = ze(i, Fe, "p"), c = l.map((e) => zo(e)).join("\n").trim(), u = l.length > 0 ? Xe(l[0], "paraId") ?? void 0 : void 0, d = void 0 !== u ? o.get(u) : void 0;
11935
+ const t = Xe(i, "author") ?? "", n = Xe(i, "initials") ?? void 0, a = Ho(Xe(i, "date")), s = Ho(i.getAttributeNS("http://schemas.microsoft.com/office/word/2023/wordml/word16du", "dateUtc")), l = ze(i, Oe, "p"), c = l.map((e) => zo(e)).join("\n").trim(), u = l.length > 0 ? Xe(l[0], "paraId") ?? void 0 : void 0, d = void 0 !== u ? o.get(u) : void 0;
11936
11936
  r.set(e, {
11937
11937
  author: t,
11938
11938
  ...n ? { initials: n } : {},
@@ -11961,21 +11961,21 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11961
11961
  if (!e) return t;
11962
11962
  const r = new b.DOMParser().parseFromString(e, "application/xml").documentElement;
11963
11963
  if (!r) return t;
11964
- for (const n of Array.from(r.getElementsByTagNameNS(Fe, "abstractNum"))) {
11964
+ for (const n of Array.from(r.getElementsByTagNameNS(Oe, "abstractNum"))) {
11965
11965
  const e = Xe(n, "abstractNumId");
11966
- if (e) for (const r of ze(n, Fe, "lvl")) {
11966
+ if (e) for (const r of ze(n, Oe, "lvl")) {
11967
11967
  const n = Xe(r, "ilvl") ?? "0";
11968
11968
  t.abstractLevels.set(`${e}:${n}`, _t(r));
11969
11969
  }
11970
11970
  }
11971
- for (const n of Array.from(r.getElementsByTagNameNS(Fe, "num"))) {
11972
- const e = Xe(n, "numId"), r = Xe(qe(n, Fe, "abstractNumId"), "val");
11971
+ for (const n of Array.from(r.getElementsByTagNameNS(Oe, "num"))) {
11972
+ const e = Xe(n, "numId"), r = Xe(qe(n, Oe, "abstractNumId"), "val");
11973
11973
  if (e && r) {
11974
11974
  t.numToAbstractId.set(e, r);
11975
- for (const r of ze(n, Fe, "lvlOverride")) {
11976
- const n = Xe(r, "ilvl") ?? "0", o = qe(r, Fe, "lvl");
11975
+ for (const r of ze(n, Oe, "lvlOverride")) {
11976
+ const n = Xe(r, "ilvl") ?? "0", o = qe(r, Oe, "lvl");
11977
11977
  o && t.numOverrideLevels.set(`${e}:${n}`, _t(o));
11978
- const i = Tt(qe(r, Fe, "startOverride"));
11978
+ const i = Tt(qe(r, Oe, "startOverride"));
11979
11979
  void 0 !== i && t.numStartOverrides.set(`${e}:${n}`, i);
11980
11980
  }
11981
11981
  }
@@ -11984,30 +11984,30 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
11984
11984
  }(await r.file("word/numbering.xml")?.async("string") ?? null), s = function(e) {
11985
11985
  const t = { adjustLineHeightInTable: !0 };
11986
11986
  if (!e) return t;
11987
- const r = new b.DOMParser().parseFromString(e, "application/xml"), n = dt(Xe(qe(r.documentElement, Fe, "defaultTabStop"), "val"));
11987
+ const r = new b.DOMParser().parseFromString(e, "application/xml"), n = dt(Xe(qe(r.documentElement, Oe, "defaultTabStop"), "val"));
11988
11988
  void 0 !== n && Number.isFinite(n) && n > 0 && (t.defaultTabStop = n);
11989
- const o = qe(r.documentElement, Fe, "autoHyphenation");
11989
+ const o = qe(r.documentElement, Oe, "autoHyphenation");
11990
11990
  if (o) {
11991
11991
  const e = Xe(o, "val");
11992
11992
  t.autoHyphenation = "0" !== e && "false" !== e;
11993
11993
  }
11994
- const i = qe(r.documentElement, Fe, "doNotHyphenateCaps");
11994
+ const i = qe(r.documentElement, Oe, "doNotHyphenateCaps");
11995
11995
  if (i) {
11996
11996
  const e = Xe(i, "val");
11997
11997
  t.doNotHyphenateCaps = "0" !== e && "false" !== e;
11998
11998
  }
11999
11999
  const a = Number.parseInt(Xe(qe(r.documentElement, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "consecutiveHyphenLimit"), "val") ?? "", 10);
12000
12000
  Number.isFinite(a) && a >= 0 && (t.consecutiveHyphenLimit = a);
12001
- const s = dt(Xe(qe(r.documentElement, Fe, "hyphenationZone"), "val"));
12002
- void 0 !== s && (t.hyphenationZone = s), t.footnoteSettings = xt(qe(r.documentElement, Fe, "footnotePr")), t.endnoteSettings = xt(qe(r.documentElement, Fe, "endnotePr"));
12003
- const l = qe(r.documentElement, Fe, "compat");
12001
+ const s = dt(Xe(qe(r.documentElement, Oe, "hyphenationZone"), "val"));
12002
+ void 0 !== s && (t.hyphenationZone = s), t.footnoteSettings = xt(qe(r.documentElement, Oe, "footnotePr")), t.endnoteSettings = xt(qe(r.documentElement, Oe, "endnotePr"));
12003
+ const l = qe(r.documentElement, Oe, "compat");
12004
12004
  if (l) {
12005
- const e = qe(l, Fe, "adjustLineHeightInTable");
12005
+ const e = qe(l, Oe, "adjustLineHeightInTable");
12006
12006
  if (e) {
12007
12007
  const r = Xe(e, "val");
12008
12008
  t.adjustLineHeightInTable = "0" !== r && "false" !== r;
12009
12009
  }
12010
- const r = qe(l, Fe, "allowSpaceOfSameStyleInTable");
12010
+ const r = qe(l, Oe, "allowSpaceOfSameStyleInTable");
12011
12011
  if (r) {
12012
12012
  const e = Xe(r, "val");
12013
12013
  t.allowSpaceOfSameStyleInTable = "0" !== e && "false" !== e;
@@ -12016,23 +12016,23 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
12016
12016
  return t;
12017
12017
  }(await r.file("word/settings.xml")?.async("string") ?? null), l = await r.file("word/styles.xml")?.async("string") ?? null, c = function(e) {
12018
12018
  if (!e) return;
12019
- const t = new b.DOMParser().parseFromString(e, "application/xml").getElementsByTagNameNS(Fe, "fonts")[0];
12019
+ const t = new b.DOMParser().parseFromString(e, "application/xml").getElementsByTagNameNS(Oe, "fonts")[0];
12020
12020
  if (!t) return;
12021
12021
  const r = [];
12022
- for (const n of ze(t, Fe, "font")) {
12022
+ for (const n of ze(t, Oe, "font")) {
12023
12023
  const e = Xe(n, "name");
12024
12024
  if (!e) continue;
12025
- const t = { name: e }, o = Xe(qe(n, Fe, "altName"), "val");
12025
+ const t = { name: e }, o = Xe(qe(n, Oe, "altName"), "val");
12026
12026
  o && (t.altName = o);
12027
- const i = Xe(qe(n, Fe, "family"), "val");
12027
+ const i = Xe(qe(n, Oe, "family"), "val");
12028
12028
  i && (t.family = i);
12029
- const a = Xe(qe(n, Fe, "pitch"), "val");
12029
+ const a = Xe(qe(n, Oe, "pitch"), "val");
12030
12030
  a && (t.pitch = a);
12031
- const s = Xe(qe(n, Fe, "charset"), "val");
12031
+ const s = Xe(qe(n, Oe, "charset"), "val");
12032
12032
  s && (t.charset = s);
12033
- const l = Xe(qe(n, Fe, "panose1"), "val");
12033
+ const l = Xe(qe(n, Oe, "panose1"), "val");
12034
12034
  l && (t.panose1 = l);
12035
- const c = qe(n, Fe, "sig");
12035
+ const c = qe(n, Oe, "sig");
12036
12036
  if (c) {
12037
12037
  const e = {};
12038
12038
  for (let t = 0; t < c.attributes.length; t += 1) {
@@ -12048,13 +12048,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
12048
12048
  if (!e) return;
12049
12049
  const r = new b.DOMParser().parseFromString(e, "application/xml").documentElement;
12050
12050
  if (!r) return;
12051
- const n = qe(r, Fe, "docDefaults"), o = qe(qe(n, Fe, "pPrDefault"), Fe, "pPr"), i = qe(qe(n, Fe, "rPrDefault"), Fe, "rPr"), a = o ? {
12051
+ const n = qe(r, Oe, "docDefaults"), o = qe(qe(n, Oe, "pPrDefault"), Oe, "pPr"), i = qe(qe(n, Oe, "rPrDefault"), Oe, "rPr"), a = o ? {
12052
12052
  spacingBefore: 0,
12053
12053
  spacingAfter: 0,
12054
12054
  ...ir(ar(o, t.colors))
12055
12055
  } : ir(ar(o, t.colors)), s = Ht(i, t), l = {};
12056
12056
  let c;
12057
- for (const u of ze(r, Fe, "style")) {
12057
+ for (const u of ze(r, Oe, "style")) {
12058
12058
  const e = Xe(u, "styleId"), r = Xe(u, "type");
12059
12059
  if (!e || "paragraph" !== r && "character" !== r && "table" !== r) continue;
12060
12060
  const n = Xe(qe(u, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "name"), "val") ?? e, o = Xe(u, "customStyle"), i = null == o ? void 0 : Ye(o), d = Dt({
@@ -12062,17 +12062,17 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
12062
12062
  name: n,
12063
12063
  type: r,
12064
12064
  customStyle: i
12065
- }), p = Xe(qe(u, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "basedOn"), "val") ?? void 0, f = Xe(qe(u, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "next"), "val") ?? void 0, h = Qe(u, "qFormat"), m = Qe(u, "semiHidden"), g = Qe(u, "unhideWhenUsed"), w = Xe(qe(u, Fe, "uiPriority"), "val"), b = null === w ? NaN : Number(w), v = Number.isInteger(b) && b >= 0 ? b : void 0, y = ir(ar(qe(u, Fe, "pPr"), t.colors)), x = Ht(qe(u, Fe, "rPr"), t);
12065
+ }), p = Xe(qe(u, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "basedOn"), "val") ?? void 0, f = Xe(qe(u, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "next"), "val") ?? void 0, h = Qe(u, "qFormat"), m = Qe(u, "semiHidden"), g = Qe(u, "unhideWhenUsed"), w = Xe(qe(u, Oe, "uiPriority"), "val"), b = null === w ? NaN : Number(w), v = Number.isInteger(b) && b >= 0 ? b : void 0, y = ir(ar(qe(u, Oe, "pPr"), t.colors)), x = Ht(qe(u, Oe, "rPr"), t);
12066
12066
  let E;
12067
12067
  if ("table" === r) {
12068
- const r = qe(u, Fe, "tblPr"), n = (e) => {
12069
- const t = Xe(qe(r, Fe, e), "val"), n = t ? Number(t) : NaN;
12068
+ const r = qe(u, Oe, "tblPr"), n = (e) => {
12069
+ const t = Xe(qe(r, Oe, e), "val"), n = t ? Number(t) : NaN;
12070
12070
  return Number.isFinite(n) && n > 0 ? Math.floor(n) : void 0;
12071
12071
  }, o = n("tblStyleRowBandSize"), i = n("tblStyleColBandSize"), a = {};
12072
- for (const e of ze(u, Fe, "tblStylePr")) {
12072
+ for (const e of ze(u, Oe, "tblStylePr")) {
12073
12073
  const r = Xe(e, "type");
12074
12074
  if (!r) continue;
12075
- const n = qe(e, Fe, "tcPr"), o = rr(n, void 0, t.colors), i = Qt(qe(e, Fe, "tblPr")), s = Lt(qe(n, Fe, "shd"), t.colors), l = Ht(qe(e, Fe, "rPr"), t), c = Ft(Pt(qe(n, Fe, "tcBorders"))), u = ar(qe(e, Fe, "pPr"), t.colors), d = Kt(qe(e, Fe, "trPr"));
12075
+ const n = qe(e, Oe, "tcPr"), o = rr(n, void 0, t.colors), i = Qt(qe(e, Oe, "tblPr")), s = Lt(qe(n, Oe, "shd"), t.colors), l = Ht(qe(e, Oe, "rPr"), t), c = Ot(Pt(qe(n, Oe, "tcBorders"))), u = ar(qe(e, Oe, "pPr"), t.colors), d = Kt(qe(e, Oe, "trPr"));
12076
12076
  (s || l || c || u || d || o || i) && (a[r] = {
12077
12077
  ...s ? { shading: s } : {},
12078
12078
  ...l ? { textStyle: l } : {},
@@ -12104,8 +12104,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
12104
12104
  uiPriority: v,
12105
12105
  semiHidden: m,
12106
12106
  unhideWhenUsed: g,
12107
- paragraphStyle: "paragraph" === r && S ? Ot(a, y) : y,
12108
- textStyle: "paragraph" === r && S ? Ot(s, x) : x,
12107
+ paragraphStyle: "paragraph" === r && S ? Ft(a, y) : y,
12108
+ textStyle: "paragraph" === r && S ? Ft(s, x) : x,
12109
12109
  tableStyle: E
12110
12110
  };
12111
12111
  }
@@ -12116,12 +12116,12 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
12116
12116
  builtinStyle: "normal",
12117
12117
  paragraphStyle: a,
12118
12118
  textStyle: s
12119
- }), Ft(l));
12119
+ }), Ot(l));
12120
12120
  }(l, p);
12121
12121
  t.onProgress?.("parsing-document");
12122
- const h = new b.DOMParser().parseFromString(o, "application/xml"), m = h.documentElement ? qe(h.documentElement, Fe, "background") : null, g = m?.getAttribute("w:color") ?? m?.getAttributeNS("http://schemas.openxmlformats.org/wordprocessingml/2006/main", "color") ?? null, v = h.getElementsByTagNameNS(Fe, "body")[0];
12122
+ const h = new b.DOMParser().parseFromString(o, "application/xml"), m = h.documentElement ? qe(h.documentElement, Oe, "background") : null, g = m?.getAttribute("w:color") ?? m?.getAttributeNS("http://schemas.openxmlformats.org/wordprocessingml/2006/main", "color") ?? null, v = h.getElementsByTagNameNS(Oe, "body")[0];
12123
12123
  if (!v) return {
12124
- ...Ne([O([{ text: "" }])]),
12124
+ ...Ne([F([{ text: "" }])]),
12125
12125
  ...n ? { coreTimestamps: n } : {}
12126
12126
  };
12127
12127
  const y = {
@@ -12160,7 +12160,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
12160
12160
  const e = await po(t, a, r, i, y, p, A);
12161
12161
  for (const t of e.paragraphs) T(t);
12162
12162
  e.dropCapFrame && (k = e.dropCapFrame), e.pageBreakAfter && (N = !0);
12163
- const n = qe(t, Fe, "pPr"), o = n ? qe(n, Fe, "sectPr") : null;
12163
+ const n = qe(t, Oe, "pPr"), o = n ? qe(n, Oe, "sectPr") : null;
12164
12164
  o && (E.push(ur(o)), S.push([]), N = !1), C();
12165
12165
  } else if ("tbl" === t.localName) T(await bo(t, 0, 0, 0, 0, p, A)), C();
12166
12166
  else if ("sdt" === t.localName) {
@@ -12171,7 +12171,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
12171
12171
  }
12172
12172
  }
12173
12173
  if (0 === E.length) {
12174
- const e = qe(v, Fe, "sectPr");
12174
+ const e = qe(v, Oe, "sectPr");
12175
12175
  E.push(e ? ur(e) : {
12176
12176
  pageSettings: dr(v),
12177
12177
  headerRIds: {},
@@ -12180,9 +12180,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
12180
12180
  }
12181
12181
  t.onProgress?.("parsing-headers-footers");
12182
12182
  const D = [], $ = (e) => Object.keys(e.headerRIds).length > 0 || Object.keys(e.footerRIds).length > 0, M = E.filter($).length;
12183
- let F = 0;
12183
+ let O = 0;
12184
12184
  const L = () => {
12185
- F += 1, M > 0 && t.onProgress?.("parsing-headers-footers", F / M);
12185
+ O += 1, M > 0 && t.onProgress?.("parsing-headers-footers", O / M);
12186
12186
  };
12187
12187
  for (let w = 0; w < E.length; w += 1) {
12188
12188
  const e = E[w], t = S[w] ?? [];
@@ -12220,7 +12220,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
12220
12220
  const u = await Eo(l ?? null, a, r, c, y, p);
12221
12221
  return pr(u, e.docGridLinePitchPx, e.docGridMode, e.docGridType, s), u;
12222
12222
  }, o = await n(e.headerRIds.default), l = await n(e.headerRIds.first), c = await n(e.headerRIds.even), u = await n(e.footerRIds.default), d = await n(e.footerRIds.first), f = await n(e.footerRIds.even);
12223
- $(e) && L(), await Je(2, F);
12223
+ $(e) && L(), await Je(2, O);
12224
12224
  const h = se(e.pageSettings ?? {
12225
12225
  width: 816,
12226
12226
  height: 1056,
@@ -12243,7 +12243,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
12243
12243
  } : void 0;
12244
12244
  D.push({
12245
12245
  id: `section:${w + 1}`,
12246
- blocks: t.length > 0 ? t : [O([{ text: "" }])],
12246
+ blocks: t.length > 0 ? t : [F([{ text: "" }])],
12247
12247
  pageSettings: h,
12248
12248
  ...e.pageBorder ? { pageBorder: e.pageBorder } : {},
12249
12249
  header: o.length > 0 ? o : void 0,
@@ -12327,7 +12327,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
12327
12327
  };
12328
12328
  Wo(e, r);
12329
12329
  })(D, W.byDocxId);
12330
- const X = Oo(D), V = function(e, t) {
12330
+ const X = Fo(D), V = function(e, t) {
12331
12331
  const r = /* @__PURE__ */ new Set([...e.keys(), ...t.keys()]);
12332
12332
  if (0 === r.size) return;
12333
12333
  const n = [...r].sort((e, t) => {
@@ -12422,7 +12422,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
12422
12422
  const e = Ne([]);
12423
12423
  return e.sections = D, 1 === D.length && (e.pageSettings = D[0].pageSettings), f && (e.styles = f), Y && (e.assets = y.assets), Q(e);
12424
12424
  }
12425
- const K = D[0], J = Ne(K?.blocks.length > 0 ? K.blocks : [O([{ text: "" }])], K?.pageSettings);
12425
+ const K = D[0], J = Ne(K?.blocks.length > 0 ? K.blocks : [F([{ text: "" }])], K?.pageSettings);
12426
12426
  return Y && (J.assets = y.assets), f && (J.styles = f), Q(J);
12427
12427
  }
12428
12428
  function Wo(e, t) {
@@ -12920,7 +12920,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
12920
12920
  return `<w:tbl>${Di(e)}${i}${o}</w:tbl>`;
12921
12921
  }
12922
12922
  const Mi = "xmlns:w15=\"http://schemas.microsoft.com/office/word/2012/wordml\"";
12923
- function Fi(e) {
12923
+ function Oi(e) {
12924
12924
  if (!(void 0 !== e.alias || void 0 !== e.tag || void 0 !== e.id || void 0 !== e.lock || void 0 !== e.appearance || void 0 !== e.showingPlcHdr || void 0 !== e.temporary || void 0 !== e.color || void 0 !== e.placeholderDocPart || void 0 !== e.dataBinding || void 0 !== e.subtype || void 0 !== e.repeatingSectionProperties || (e.unknownXml ?? "").length > 0)) return "<w:sdtPr/>";
12925
12925
  let t = "";
12926
12926
  return void 0 !== e.alias && (t += `<w:alias w:val="${Yo(e.alias)}"/>`), void 0 !== e.tag && (t += `<w:tag w:val="${Yo(e.tag)}"/>`), void 0 !== e.id && (t += `<w:id w:val="${Yo(e.id)}"/>`), void 0 !== e.lock && (t += `<w:lock w:val="${Yo(e.lock)}"/>`), void 0 !== e.placeholderDocPart && (t += `<w:placeholder><w:docPart w:val="${Yo(e.placeholderDocPart)}"/></w:placeholder>`), void 0 !== e.dataBinding && (t += function(e) {
@@ -12947,7 +12947,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
12947
12947
  case "repeatingSectionItem": return `<w15:repeatingSectionItem ${Mi}/>`;
12948
12948
  case "comboBox":
12949
12949
  case "dropDownList": {
12950
- const t = (e.listItems ?? []).map(Oi).join(""), r = void 0 !== e.lastSelectedValue ? `<w:lastSelectedValue w:val="${Yo(e.lastSelectedValue)}"/>` : "";
12950
+ const t = (e.listItems ?? []).map(Fi).join(""), r = void 0 !== e.lastSelectedValue ? `<w:lastSelectedValue w:val="${Yo(e.lastSelectedValue)}"/>` : "";
12951
12951
  return `<w:${e.kind}>${t}${r}</w:${e.kind}>`;
12952
12952
  }
12953
12953
  case "date": {
@@ -12965,7 +12965,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
12965
12965
  }
12966
12966
  }(e.subtype, e.repeatingSectionProperties)), void 0 !== e.appearance && (t += `<w:appearance w:val="${Yo(e.appearance)}"/>`), void 0 !== e.showingPlcHdr && (t += `<w:showingPlcHdr w:val="${e.showingPlcHdr ? "true" : "false"}"/>`), void 0 !== e.color && (t += `<w:color w:val="${Yo(e.color)}"/>`), e.unknownXml && (t += e.unknownXml), `<w:sdtPr>${t}</w:sdtPr>`;
12967
12967
  }
12968
- function Oi(e) {
12968
+ function Fi(e) {
12969
12969
  return `<w:listItem${void 0 !== e.displayText ? ` w:displayText="${Yo(e.displayText)}"` : ""}${void 0 !== e.value ? ` w:value="${Yo(e.value)}"` : ""}/>`;
12970
12970
  }
12971
12971
  function Li(e, t) {
@@ -12986,7 +12986,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
12986
12986
  function Ui(e, t) {
12987
12987
  const r = e.ownerDocument;
12988
12988
  if (!r) return null;
12989
- const n = r.createElementNS(Go, "w:sdt"), o = Bi(Fi(t.sdtPr), "sdtPr");
12989
+ const n = r.createElementNS(Go, "w:sdt"), o = Bi(Oi(t.sdtPr), "sdtPr");
12990
12990
  if (o && n.appendChild(o.cloneNode(!0)), t.sdtEndPrXml) {
12991
12991
  const e = Bi(t.sdtEndPrXml, "sdtEndPr");
12992
12992
  e && n.appendChild(e.cloneNode(!0));
@@ -13596,7 +13596,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
13596
13596
  Number.parseInt(t.slice(4, 6), 16)
13597
13597
  ] : null;
13598
13598
  };
13599
- function Fa(e) {
13599
+ function Oa(e) {
13600
13600
  if (!e) return "";
13601
13601
  const t = [];
13602
13602
  e.styleId && t.push(`<w:rStyle w:val="${Yo(e.styleId)}"/>`);
@@ -13688,19 +13688,19 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
13688
13688
  e.language.value && r.push(`w:val="${Yo(e.language.value)}"`), e.language.eastAsia && r.push(`w:eastAsia="${Yo(e.language.eastAsia)}"`), e.language.bidi && r.push(`w:bidi="${Yo(e.language.bidi)}"`), r.length > 0 && t.push(`<w:lang ${r.join(" ")}/>`);
13689
13689
  }
13690
13690
  return e.propertyRevision && t.push(function(e) {
13691
- const { propertyRevision: t, styleId: r, ...n } = e.previous, o = Fa(n), i = o ? o.slice(7, -8) : "", a = r ? `<w:rStyle w:val="${Yo(r)}"/>` : "";
13691
+ const { propertyRevision: t, styleId: r, ...n } = e.previous, o = Oa(n), i = o ? o.slice(7, -8) : "", a = r ? `<w:rStyle w:val="${Yo(r)}"/>` : "";
13692
13692
  return `<w:rPrChange ${va(e)}><w:rPr>${a}${i}</w:rPr></w:rPrChange>`;
13693
13693
  }(e.propertyRevision)), t.length > 0 ? `<w:rPr>${hi(t, ci)}</w:rPr>` : "";
13694
13694
  }
13695
- function Oa(e) {
13695
+ function Fa(e) {
13696
13696
  return 0 === e.length ? "" : `<w:t${t = e, /^\s|\s$/.test(t) || t.includes(" ") ? " xml:space=\"preserve\"" : ""}>${Yo(e)}</w:t>`;
13697
13697
  var t;
13698
13698
  }
13699
13699
  function La(e) {
13700
13700
  if (0 === e.length) return "<w:t></w:t>";
13701
13701
  let t = "", r = "";
13702
- for (const n of e) "\n" !== n ? "\v" !== n ? " " !== n ? "‑" !== n ? "­" !== n ? r += n : (t += Oa(r), r = "", t += "<w:softHyphen/>") : (t += Oa(r), r = "", t += "<w:noBreakHyphen/>") : (t += Oa(r), r = "", t += "<w:tab/>") : (t += Oa(r), r = "", t += "<w:br w:type=\"column\"/>") : (t += Oa(r), r = "", t += "<w:br/>");
13703
- return t += Oa(r), t || "<w:t></w:t>";
13702
+ for (const n of e) "\n" !== n ? "\v" !== n ? " " !== n ? "‑" !== n ? "­" !== n ? r += n : (t += Fa(r), r = "", t += "<w:softHyphen/>") : (t += Fa(r), r = "", t += "<w:noBreakHyphen/>") : (t += Fa(r), r = "", t += "<w:tab/>") : (t += Fa(r), r = "", t += "<w:br w:type=\"column\"/>") : (t += Fa(r), r = "", t += "<w:br/>");
13703
+ return t += Fa(r), t || "<w:t></w:t>";
13704
13704
  }
13705
13705
  function Ba(e, t) {
13706
13706
  return e ?? t ? "1" : "0";
@@ -13810,7 +13810,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
13810
13810
  styleId: Wa[e],
13811
13811
  superscript: !0
13812
13812
  }, a = t.customMark ? " w:customMarkFollows=\"1\"" : "", s = t.customMark ? `<w:t xml:space="preserve">${Yo(t.customMark)}</w:t>` : "";
13813
- return `<w:r>${Fa(i)}<w:${e}Reference${a} w:id="${o}"/>${s}</w:r>`;
13813
+ return `<w:r>${Oa(i)}<w:${e}Reference${a} w:id="${o}"/>${s}</w:r>`;
13814
13814
  }
13815
13815
  function Va(e, t) {
13816
13816
  return void 0 === t ? "" : ` m:${e}="${Yo(String(t))}"`;
@@ -13984,7 +13984,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
13984
13984
  }
13985
13985
  function hs(e) {
13986
13986
  const t = Vn(e);
13987
- if (t && !rs(t.xml) && (r = t.xml, !On.test(r))) {
13987
+ if (t && !rs(t.xml) && (r = t.xml, !Fn.test(r))) {
13988
13988
  var r;
13989
13989
  if (t.semanticSignature === Wn(e)) return t.xml;
13990
13990
  if (t.structureSignature === Gn(e)) return function(e, t) {
@@ -14035,7 +14035,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
14035
14035
  if ("opaque" === e.kind) {
14036
14036
  const r = t.authorizedOpaqueFragments?.get(e.opaque.fragmentXml);
14037
14037
  if (!r || "" !== e.text || r.signature !== e.opaque.signature || r.kind !== e.opaque.objectKind || JSON.stringify(r.relationshipIds) !== JSON.stringify(e.opaque.relationshipIds)) throw new Error("Opaque DOCX objects require source-backed export with an unchanged, authorized source fragment.");
14038
- return `<w:r>${Fa(e.styles)}${e.opaque.fragmentXml}</w:r>`;
14038
+ return `<w:r>${Oa(e.styles)}${e.opaque.fragmentXml}</w:r>`;
14039
14039
  }
14040
14040
  const i = hs(e);
14041
14041
  if (i) return i;
@@ -14094,7 +14094,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
14094
14094
  }, i = we(e.styles?.styleId ? { styleId: e.styles.styleId } : void 0, t, r);
14095
14095
  for (const a of Object.keys(o)) ("styleId" !== a && e.styles?.styleId && "character" === r?.[e.styles.styleId]?.type && void 0 === e.styles[a] && o[a] === i[a] || !1 === o[a] && !1 !== e.styles?.[a] && !0 !== i[a]) && delete o[a];
14096
14096
  return e.styles?.link && (o.link = e.styles.link), o;
14097
- }(e, r, n), s = () => Fa(a), l = () => `<w:r>${s()}${La(e.text)}</w:r>`;
14097
+ }(e, r, n), s = () => Oa(a), l = () => `<w:r>${s()}${La(e.text)}</w:r>`;
14098
14098
  return ms(e, function(e, t) {
14099
14099
  switch (e.kind) {
14100
14100
  case "opaque": return t.opaque(e);
@@ -14201,7 +14201,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
14201
14201
  }), s += 1;
14202
14202
  }
14203
14203
  const l = bs(a, t);
14204
- r += `<w:sdt>${Fi(i.sdtPr)}${i.sdtEndPrXml ?? ""}<w:sdtContent>${l}</w:sdtContent></w:sdt>`, n = s;
14204
+ r += `<w:sdt>${Oi(i.sdtPr)}${i.sdtEndPrXml ?? ""}<w:sdtContent>${l}</w:sdtContent></w:sdt>`, n = s;
14205
14205
  }
14206
14206
  return r;
14207
14207
  }
@@ -14417,7 +14417,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
14417
14417
  }), l += 1;
14418
14418
  }
14419
14419
  const c = Ps(s, t, r);
14420
- n += `<w:sdt>${Fi(a.sdtPr)}${a.sdtEndPrXml ?? ""}<w:sdtContent>${c}</w:sdtContent></w:sdt>`, o = l;
14420
+ n += `<w:sdt>${Oi(a.sdtPr)}${a.sdtEndPrXml ?? ""}<w:sdtContent>${c}</w:sdtContent></w:sdt>`, o = l;
14421
14421
  }
14422
14422
  return n;
14423
14423
  }
@@ -14427,7 +14427,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
14427
14427
  text: "",
14428
14428
  kind: "text"
14429
14429
  }], i = e.dropCap ? function(e) {
14430
- const t = Fa(e.style);
14430
+ const t = Oa(e.style);
14431
14431
  return `<w:p><w:pPr><w:keepNext/><w:framePr w:dropCap="${e.type}" w:lines="${e.lines}" w:wrap="around" w:vAnchor="text" w:hAnchor="text"/><w:spacing w:after="0"/>${t ? `<w:rPr>${r = t, r.replace(/^<w:rPr>/, "").replace(/<\/w:rPr>$/, "")}</w:rPr>` : ""}</w:pPr><w:r>${t}${La(e.text)}</w:r></w:p>`;
14432
14432
  var r;
14433
14433
  }(e.dropCap) : "", a = t.bookmarkEventsByParagraph?.get(e.id), s = t.commentEventsByParagraph?.get(e.id), l = [...(a ?? []).map((e) => ({
@@ -14440,7 +14440,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
14440
14440
  xml: ni(e)
14441
14441
  }))], c = function(e, t) {
14442
14442
  const r = Qn(e);
14443
- if (!(!r?.xml || !r.semanticSignature || t.hasOverrides || t.hasBoundaryTokens || zn(r.xml) || On.test(r.xml) || Ln.test(r.xml))) return r.semanticSignature === Zn(e) ? r.xml : void 0;
14443
+ if (!(!r?.xml || !r.semanticSignature || t.hasOverrides || t.hasBoundaryTokens || zn(r.xml) || Fn.test(r.xml) || Ln.test(r.xml))) return r.semanticSignature === Zn(e) ? r.xml : void 0;
14444
14444
  }(e, {
14445
14445
  hasOverrides: Boolean(n),
14446
14446
  hasBoundaryTokens: l.length > 0
@@ -14487,7 +14487,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
14487
14487
  }
14488
14488
  return `${i}<w:p${h}>${g}${p}</w:p>`;
14489
14489
  }
14490
- function Fs(e) {
14490
+ function Os(e) {
14491
14491
  const t = e.footnotes?.items;
14492
14492
  if (!t) return [];
14493
14493
  const r = /* @__PURE__ */ new Map(), n = si(t);
@@ -14505,7 +14505,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
14505
14505
  }
14506
14506
  return Array.from(r.values());
14507
14507
  }
14508
- function Os(e) {
14508
+ function Fs(e) {
14509
14509
  if (0 === e.length) return [Ls()];
14510
14510
  const [t, ...r] = e;
14511
14511
  return "paragraph" !== t.type ? [
@@ -14679,7 +14679,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
14679
14679
  function Gs(e, t) {
14680
14680
  const r = [], n = t.paragraphStyle ? Na(t.paragraphStyle) : "";
14681
14681
  n && r.push(n);
14682
- const o = t.textStyle ? Fa(t.textStyle) : "";
14682
+ const o = t.textStyle ? Oa(t.textStyle) : "";
14683
14683
  o && r.push(o);
14684
14684
  const i = Ws(t.tableStyle);
14685
14685
  i && r.push(i);
@@ -14704,7 +14704,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
14704
14704
  r && t.push(r);
14705
14705
  }
14706
14706
  if (e.textStyle) {
14707
- const r = Fa(e.textStyle);
14707
+ const r = Oa(e.textStyle);
14708
14708
  r && t.push(r);
14709
14709
  }
14710
14710
  if ("table" === e.type && e.tableStyle) {
@@ -15065,6 +15065,21 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
15065
15065
  const t = Zr(e);
15066
15066
  if (t.error || !t.command) return;
15067
15067
  const r = t.tokens.slice(1);
15068
+ if ("STYLEREF" === t.command) {
15069
+ const e = r[0];
15070
+ if (!e || "quoted" !== e.kind && "word" !== e.kind || !e.value.trim() || e.value.length > 128 || /[\r\n\t\\]/.test(e.value)) return;
15071
+ if (1 === r.length) return {
15072
+ type: "STYLEREF",
15073
+ style: e.value,
15074
+ lastOnPage: !1
15075
+ };
15076
+ if (2 !== r.length || "switch" !== r[1]?.kind || "l" !== r[1].value.toLowerCase()) return;
15077
+ return {
15078
+ type: "STYLEREF",
15079
+ style: e.value,
15080
+ lastOnPage: !0
15081
+ };
15082
+ }
15068
15083
  if ("SEQ" === t.command) {
15069
15084
  const e = r[0];
15070
15085
  if (!e || "word" !== e.kind || !/^\p{L}[\p{L}\p{N}_]{0,39}$/u.test(e.value)) return;
@@ -15159,6 +15174,18 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
15159
15174
  }
15160
15175
  function xl(e, t, r, n = !1) {
15161
15176
  if (n) return vl(r, "locked");
15177
+ if ("STYLEREF" === e.type) {
15178
+ const n = [{
15179
+ kind: "style-text",
15180
+ name: e.style,
15181
+ lastOnPage: e.lastOnPage
15182
+ }], o = t.styleRefText?.(e.style, e.lastOnPage);
15183
+ return "string" == typeof o && o.length > 0 ? {
15184
+ status: "resolved",
15185
+ text: o,
15186
+ dependencies: n
15187
+ } : vl(r, "unresolved", n);
15188
+ }
15162
15189
  if ("SEQ" === e.type) {
15163
15190
  const n = [{
15164
15191
  kind: "sequence",
@@ -15537,7 +15564,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
15537
15564
  function Ml(e, t, r) {
15538
15565
  r && (e.file(`word/${t}.xml`, r.xml), (r.partContext.images.length > 0 || r.partContext.hyperlinks.length > 0) && e.file(`word/_rels/${t}.xml.rels`, Ks(r.partContext.images, r.partContext.hyperlinks)));
15539
15566
  }
15540
- async function Fl(e, t) {
15567
+ async function Ol(e, t) {
15541
15568
  const r = Ur(t), n = r.diagnostics.filter((e) => "error" === e.level);
15542
15569
  if (n.length) throw new zr(n);
15543
15570
  const o = new Map(r.objects.map((e) => [e.fragmentXml, {
@@ -15545,7 +15572,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
15545
15572
  kind: e.kind,
15546
15573
  relationshipIds: e.relationshipIds
15547
15574
  }])), i = e.opaqueRelocationIntent;
15548
- if (!i) return Ol(e, o);
15575
+ if (!i) return Fl(e, o);
15549
15576
  const a = function(e, t, r) {
15550
15577
  if (t.ownerPath === r) throw Error("Same-story move does not need relationship relocation");
15551
15578
  if (!Cl(t.ownerPath) || !Cl(r) || !_l(e, r)) throw Error("Unknown or unsafe destination story");
@@ -15625,13 +15652,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
15625
15652
  sharedPartPaths: [...i.partPaths]
15626
15653
  };
15627
15654
  }(t, i, i.destinationOwner).destinationRun;
15628
- return Ol(e, new Map([...o, [a.fragmentXml, {
15655
+ return Fl(e, new Map([...o, [a.fragmentXml, {
15629
15656
  signature: a.signature,
15630
15657
  kind: a.objectKind,
15631
15658
  relationshipIds: a.relationshipIds
15632
15659
  }]]));
15633
15660
  }
15634
- async function Ol(e, t) {
15661
+ async function Fl(e, t) {
15635
15662
  e = kl(e);
15636
15663
  const r = new w.default(), n = ol(e), o = {
15637
15664
  authorizedOpaqueFragments: t,
@@ -15652,7 +15679,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
15652
15679
  cx: 1,
15653
15680
  cy: 1
15654
15681
  } : void 0;
15655
- }(e), s = Fs(e), l = function(e) {
15682
+ }(e), s = Os(e), l = function(e) {
15656
15683
  const t = /* @__PURE__ */ new Map();
15657
15684
  for (const r of e) t.set(r.footnoteId, r.docxId);
15658
15685
  return t;
@@ -15766,10 +15793,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
15766
15793
  i("header", "first", t.firstPageHeader), i("header", "even", t.evenPageHeader), i("header", "default", t.header), i("footer", "first", t.firstPageFooter), i("footer", "even", t.evenPageFooter), i("footer", "default", t.footer);
15767
15794
  });
15768
15795
  const S = n.definitions.length > 0, N = i.some((e) => (e.evenPageHeader?.length ?? 0) > 0 || (e.evenPageFooter?.length ?? 0) > 0), k = N || void 0 !== e.settings?.defaultTabStop || void 0 !== e.settings?.allowSpaceOfSameStyleInTable || void 0 !== e.settings?.autoHyphenation || void 0 !== e.settings?.consecutiveHyphenLimit || void 0 !== e.settings?.hyphenationZone || void 0 !== e.settings?.doNotHyphenateCaps || void 0 !== e.footnotes?.settings || void 0 !== e.endnotes?.settings, T = [...g.images, ...v.flatMap((e) => e.context.images)], I = c ? function(e, t, r, n, o, i, a) {
15769
- const s = o(t.flatMap((e) => Os(e.footnote.blocks)));
15796
+ const s = o(t.flatMap((e) => Fs(e.footnote.blocks)));
15770
15797
  s.footnoteIdMap = a;
15771
15798
  const l = t.map((e) => {
15772
- const t = Ps(Os(e.footnote.blocks), s, i);
15799
+ const t = Ps(Fs(e.footnote.blocks), s, i);
15773
15800
  return `<w:footnote w:id="${e.docxId}">${t}</w:footnote>`;
15774
15801
  }).join("");
15775
15802
  return {
@@ -15878,7 +15905,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
15878
15905
  const t = await w.default.loadAsync(e), r = {};
15879
15906
  for (const [n, o] of Object.entries(t.files)) o.dir || (r[y(n)] = Ll(await o.async("uint8array")));
15880
15907
  return r;
15881
- }(await Fl(e, t));
15908
+ }(await Ol(e, t));
15882
15909
  }
15883
15910
  const Ul = "word/document.xml";
15884
15911
  function zl(e) {