@harbour-enterprises/superdoc 0.28.0-next.1 → 0.28.0-next.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/chunks/{PdfViewer-Jb55JUCS.cjs → PdfViewer-BnsPYL5w.cjs} +1 -1
  2. package/dist/chunks/{PdfViewer-9z5hlRyt.es.js → PdfViewer-DBL2mtV7.es.js} +1 -1
  3. package/dist/chunks/{index-DqP-8_tO.es.js → index-B5RApJzM.es.js} +2 -2
  4. package/dist/chunks/{index-D0UvyM8m.cjs → index-Bn2uXv1T.cjs} +2 -2
  5. package/dist/chunks/{super-editor.es-BBJIKdhr.es.js → super-editor.es-BZcjzGbD.es.js} +25770 -7923
  6. package/dist/chunks/{super-editor.es-Ca5D3ZTW.cjs → super-editor.es-C2gjIEyc.cjs} +25680 -7833
  7. package/dist/core/types/index.d.ts +7 -6
  8. package/dist/core/types/index.d.ts.map +1 -1
  9. package/dist/images/altText_add.svg +3 -0
  10. package/dist/images/altText_disclaimer.svg +3 -0
  11. package/dist/images/altText_done.svg +3 -0
  12. package/dist/images/altText_spinner.svg +30 -0
  13. package/dist/images/altText_warning.svg +3 -0
  14. package/dist/images/annotation-check.svg +11 -0
  15. package/dist/images/annotation-comment.svg +16 -0
  16. package/dist/images/annotation-help.svg +26 -0
  17. package/dist/images/annotation-insert.svg +10 -0
  18. package/dist/images/annotation-key.svg +11 -0
  19. package/dist/images/annotation-newparagraph.svg +11 -0
  20. package/dist/images/annotation-noicon.svg +7 -0
  21. package/dist/images/annotation-note.svg +42 -0
  22. package/dist/images/annotation-paperclip.svg +6 -0
  23. package/dist/images/annotation-paragraph.svg +16 -0
  24. package/dist/images/annotation-pushpin.svg +7 -0
  25. package/dist/images/cursor-editorFreeHighlight.svg +6 -0
  26. package/dist/images/cursor-editorFreeText.svg +3 -0
  27. package/dist/images/cursor-editorInk.svg +4 -0
  28. package/dist/images/cursor-editorTextHighlight.svg +8 -0
  29. package/dist/images/editor-toolbar-delete.svg +5 -0
  30. package/dist/images/loading-icon.gif +0 -0
  31. package/dist/images/messageBar_closingButton.svg +3 -0
  32. package/dist/images/messageBar_warning.svg +3 -0
  33. package/dist/images/toolbarButton-editorHighlight.svg +6 -0
  34. package/dist/images/toolbarButton-menuArrow.svg +3 -0
  35. package/dist/stores/comments-store.d.ts +1 -1
  36. package/dist/super-editor/ai-writer.es.js +2 -2
  37. package/dist/super-editor/chunks/{converter-AR-76siZ.js → converter-DJPby8Vf.js} +1347 -1259
  38. package/dist/super-editor/chunks/{docx-zipper-DVb-VGgt.js → docx-zipper-BES4h7U3.js} +1 -1
  39. package/dist/super-editor/chunks/{editor-mK_uimq6.js → editor-DS_Pp30R.js} +21568 -3813
  40. package/dist/super-editor/chunks/{toolbar-ByoNwr7x.js → toolbar-BrhEM0st.js} +2 -2
  41. package/dist/super-editor/converter.es.js +2 -2
  42. package/dist/super-editor/docx-zipper.es.js +2 -2
  43. package/dist/super-editor/editor.es.js +3 -3
  44. package/dist/super-editor/file-zipper.es.js +1 -1
  45. package/dist/super-editor/super-editor/src/core/Editor.d.ts +7 -1
  46. package/dist/super-editor/super-editor/src/core/commands/decreaseListIndent.d.ts +1 -1
  47. package/dist/super-editor/super-editor/src/core/commands/increaseListIndent.d.ts +1 -1
  48. package/dist/super-editor/super-editor/src/core/commands/list-helpers/list-indent-helpers.d.ts +3 -0
  49. package/dist/super-editor/super-editor/src/core/super-converter/exporter.d.ts +6 -0
  50. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/docxImporter.d.ts +1 -0
  51. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/types/index.d.ts +1 -0
  52. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/translate-structured-content.d.ts +2 -2
  53. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/t/index.d.ts +1 -0
  54. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/t/t-translator.d.ts +7 -0
  55. package/dist/super-editor/super-editor/src/core/super-converter/v3/node-translator/node-translator.d.ts +2 -1
  56. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-block.d.ts +8 -6
  57. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content.d.ts +8 -1
  58. package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentBlockTags.d.ts +11 -4
  59. package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentInlineTags.d.ts +11 -4
  60. package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTablesById.d.ts +8 -4
  61. package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTags.d.ts +11 -4
  62. package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTagsById.d.ts +12 -5
  63. package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts +7 -6
  64. package/dist/super-editor/super-editor.es.js +31 -31
  65. package/dist/super-editor/toolbar.es.js +2 -2
  66. package/dist/super-editor.cjs +1 -1
  67. package/dist/super-editor.es.js +1 -1
  68. package/dist/superdoc.cjs +2 -2
  69. package/dist/superdoc.es.js +2 -2
  70. package/dist/superdoc.umd.js +26292 -8445
  71. package/dist/superdoc.umd.js.map +1 -1
  72. package/package.json +1 -1
@@ -112,18 +112,18 @@ ieee754.read = function(buffer2, offset, isLE, mLen, nBytes) {
112
112
  var eBias = eMax >> 1;
113
113
  var nBits = -7;
114
114
  var i = isLE ? nBytes - 1 : 0;
115
- var d2 = isLE ? -1 : 1;
115
+ var d = isLE ? -1 : 1;
116
116
  var s = buffer2[offset + i];
117
- i += d2;
117
+ i += d;
118
118
  e = s & (1 << -nBits) - 1;
119
119
  s >>= -nBits;
120
120
  nBits += eLen;
121
- for (; nBits > 0; e = e * 256 + buffer2[offset + i], i += d2, nBits -= 8) {
121
+ for (; nBits > 0; e = e * 256 + buffer2[offset + i], i += d, nBits -= 8) {
122
122
  }
123
123
  m2 = e & (1 << -nBits) - 1;
124
124
  e >>= -nBits;
125
125
  nBits += mLen;
126
- for (; nBits > 0; m2 = m2 * 256 + buffer2[offset + i], i += d2, nBits -= 8) {
126
+ for (; nBits > 0; m2 = m2 * 256 + buffer2[offset + i], i += d, nBits -= 8) {
127
127
  }
128
128
  if (e === 0) {
129
129
  e = 1 - eBias;
@@ -142,7 +142,7 @@ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
142
142
  var eBias = eMax >> 1;
143
143
  var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;
144
144
  var i = isLE ? 0 : nBytes - 1;
145
- var d2 = isLE ? 1 : -1;
145
+ var d = isLE ? 1 : -1;
146
146
  var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;
147
147
  value = Math.abs(value);
148
148
  if (isNaN(value) || value === Infinity) {
@@ -174,13 +174,13 @@ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
174
174
  e = 0;
175
175
  }
176
176
  }
177
- for (; mLen >= 8; buffer2[offset + i] = m2 & 255, i += d2, m2 /= 256, mLen -= 8) {
177
+ for (; mLen >= 8; buffer2[offset + i] = m2 & 255, i += d, m2 /= 256, mLen -= 8) {
178
178
  }
179
179
  e = e << mLen | m2;
180
180
  eLen += mLen;
181
- for (; eLen > 0; buffer2[offset + i] = e & 255, i += d2, e /= 256, eLen -= 8) {
181
+ for (; eLen > 0; buffer2[offset + i] = e & 255, i += d, e /= 256, eLen -= 8) {
182
182
  }
183
- buffer2[offset + i - d2] |= s * 128;
183
+ buffer2[offset + i - d] |= s * 128;
184
184
  };
185
185
  /*!
186
186
  * The buffer module from node.js, for the browser.
@@ -414,17 +414,17 @@ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
414
414
  );
415
415
  }
416
416
  if (a === b2) return 0;
417
- let x = a.length;
417
+ let x2 = a.length;
418
418
  let y2 = b2.length;
419
- for (let i = 0, len = Math.min(x, y2); i < len; ++i) {
419
+ for (let i = 0, len = Math.min(x2, y2); i < len; ++i) {
420
420
  if (a[i] !== b2[i]) {
421
- x = a[i];
421
+ x2 = a[i];
422
422
  y2 = b2[i];
423
423
  break;
424
424
  }
425
425
  }
426
- if (x < y2) return -1;
427
- if (y2 < x) return 1;
426
+ if (x2 < y2) return -1;
427
+ if (y2 < x2) return 1;
428
428
  return 0;
429
429
  };
430
430
  Buffer3.isEncoding = function isEncoding(encoding) {
@@ -673,20 +673,20 @@ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
673
673
  thisStart >>>= 0;
674
674
  thisEnd >>>= 0;
675
675
  if (this === target) return 0;
676
- let x = thisEnd - thisStart;
676
+ let x2 = thisEnd - thisStart;
677
677
  let y2 = end - start;
678
- const len = Math.min(x, y2);
678
+ const len = Math.min(x2, y2);
679
679
  const thisCopy = this.slice(thisStart, thisEnd);
680
680
  const targetCopy = target.slice(start, end);
681
681
  for (let i = 0; i < len; ++i) {
682
682
  if (thisCopy[i] !== targetCopy[i]) {
683
- x = thisCopy[i];
683
+ x2 = thisCopy[i];
684
684
  y2 = targetCopy[i];
685
685
  break;
686
686
  }
687
687
  }
688
- if (x < y2) return -1;
689
- if (y2 < x) return 1;
688
+ if (x2 < y2) return -1;
689
+ if (y2 < x2) return 1;
690
690
  return 0;
691
691
  };
692
692
  function bidirectionalIndexOf(buffer2, val, byteOffset, encoding, dir) {
@@ -1776,8 +1776,8 @@ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
1776
1776
  })(buffer);
1777
1777
  const Buffer2 = buffer.Buffer;
1778
1778
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
1779
- function getDefaultExportFromCjs$2(x) {
1780
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
1779
+ function getDefaultExportFromCjs$2(x2) {
1780
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
1781
1781
  }
1782
1782
  var sax = {};
1783
1783
  var events = { exports: {} };
@@ -1785,13 +1785,13 @@ var hasRequiredEvents;
1785
1785
  function requireEvents() {
1786
1786
  if (hasRequiredEvents) return events.exports;
1787
1787
  hasRequiredEvents = 1;
1788
- var R2 = typeof Reflect === "object" ? Reflect : null;
1789
- var ReflectApply = R2 && typeof R2.apply === "function" ? R2.apply : function ReflectApply2(target, receiver, args) {
1788
+ var R = typeof Reflect === "object" ? Reflect : null;
1789
+ var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
1790
1790
  return Function.prototype.apply.call(target, receiver, args);
1791
1791
  };
1792
1792
  var ReflectOwnKeys;
1793
- if (R2 && typeof R2.ownKeys === "function") {
1794
- ReflectOwnKeys = R2.ownKeys;
1793
+ if (R && typeof R.ownKeys === "function") {
1794
+ ReflectOwnKeys = R.ownKeys;
1795
1795
  } else if (Object.getOwnPropertySymbols) {
1796
1796
  ReflectOwnKeys = function ReflectOwnKeys2(target) {
1797
1797
  return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
@@ -2181,8 +2181,8 @@ function requireInherits_browser() {
2181
2181
  }
2182
2182
  return inherits_browser.exports;
2183
2183
  }
2184
- function getDefaultExportFromCjs$1(x) {
2185
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
2184
+ function getDefaultExportFromCjs$1(x2) {
2185
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
2186
2186
  }
2187
2187
  var browser$1 = { exports: {} };
2188
2188
  var process = browser$1.exports = {};
@@ -2461,18 +2461,18 @@ function requireDist() {
2461
2461
  var eBias = eMax >> 1;
2462
2462
  var nBits = -7;
2463
2463
  var i2 = isLE ? nBytes - 1 : 0;
2464
- var d2 = isLE ? -1 : 1;
2464
+ var d = isLE ? -1 : 1;
2465
2465
  var s = buffer3[offset + i2];
2466
- i2 += d2;
2466
+ i2 += d;
2467
2467
  e = s & (1 << -nBits) - 1;
2468
2468
  s >>= -nBits;
2469
2469
  nBits += eLen;
2470
- for (; nBits > 0; e = e * 256 + buffer3[offset + i2], i2 += d2, nBits -= 8) {
2470
+ for (; nBits > 0; e = e * 256 + buffer3[offset + i2], i2 += d, nBits -= 8) {
2471
2471
  }
2472
2472
  m2 = e & (1 << -nBits) - 1;
2473
2473
  e >>= -nBits;
2474
2474
  nBits += mLen;
2475
- for (; nBits > 0; m2 = m2 * 256 + buffer3[offset + i2], i2 += d2, nBits -= 8) {
2475
+ for (; nBits > 0; m2 = m2 * 256 + buffer3[offset + i2], i2 += d, nBits -= 8) {
2476
2476
  }
2477
2477
  if (e === 0) {
2478
2478
  e = 1 - eBias;
@@ -2491,7 +2491,7 @@ function requireDist() {
2491
2491
  var eBias = eMax >> 1;
2492
2492
  var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;
2493
2493
  var i2 = isLE ? 0 : nBytes - 1;
2494
- var d2 = isLE ? 1 : -1;
2494
+ var d = isLE ? 1 : -1;
2495
2495
  var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;
2496
2496
  value = Math.abs(value);
2497
2497
  if (isNaN(value) || value === Infinity) {
@@ -2523,13 +2523,13 @@ function requireDist() {
2523
2523
  e = 0;
2524
2524
  }
2525
2525
  }
2526
- for (; mLen >= 8; buffer3[offset + i2] = m2 & 255, i2 += d2, m2 /= 256, mLen -= 8) {
2526
+ for (; mLen >= 8; buffer3[offset + i2] = m2 & 255, i2 += d, m2 /= 256, mLen -= 8) {
2527
2527
  }
2528
2528
  e = e << mLen | m2;
2529
2529
  eLen += mLen;
2530
- for (; eLen > 0; buffer3[offset + i2] = e & 255, i2 += d2, e /= 256, eLen -= 8) {
2530
+ for (; eLen > 0; buffer3[offset + i2] = e & 255, i2 += d, e /= 256, eLen -= 8) {
2531
2531
  }
2532
- buffer3[offset + i2 - d2] |= s * 128;
2532
+ buffer3[offset + i2 - d] |= s * 128;
2533
2533
  };
2534
2534
  /*!
2535
2535
  * The buffer module from node.js, for the browser.
@@ -2763,17 +2763,17 @@ function requireDist() {
2763
2763
  );
2764
2764
  }
2765
2765
  if (a === b2) return 0;
2766
- let x = a.length;
2766
+ let x2 = a.length;
2767
2767
  let y2 = b2.length;
2768
- for (let i2 = 0, len2 = Math.min(x, y2); i2 < len2; ++i2) {
2768
+ for (let i2 = 0, len2 = Math.min(x2, y2); i2 < len2; ++i2) {
2769
2769
  if (a[i2] !== b2[i2]) {
2770
- x = a[i2];
2770
+ x2 = a[i2];
2771
2771
  y2 = b2[i2];
2772
2772
  break;
2773
2773
  }
2774
2774
  }
2775
- if (x < y2) return -1;
2776
- if (y2 < x) return 1;
2775
+ if (x2 < y2) return -1;
2776
+ if (y2 < x2) return 1;
2777
2777
  return 0;
2778
2778
  };
2779
2779
  Buffer4.isEncoding = function isEncoding(encoding) {
@@ -3022,20 +3022,20 @@ function requireDist() {
3022
3022
  thisStart >>>= 0;
3023
3023
  thisEnd >>>= 0;
3024
3024
  if (this === target) return 0;
3025
- let x = thisEnd - thisStart;
3025
+ let x2 = thisEnd - thisStart;
3026
3026
  let y2 = end - start;
3027
- const len2 = Math.min(x, y2);
3027
+ const len2 = Math.min(x2, y2);
3028
3028
  const thisCopy = this.slice(thisStart, thisEnd);
3029
3029
  const targetCopy = target.slice(start, end);
3030
3030
  for (let i2 = 0; i2 < len2; ++i2) {
3031
3031
  if (thisCopy[i2] !== targetCopy[i2]) {
3032
- x = thisCopy[i2];
3032
+ x2 = thisCopy[i2];
3033
3033
  y2 = targetCopy[i2];
3034
3034
  break;
3035
3035
  }
3036
3036
  }
3037
- if (x < y2) return -1;
3038
- if (y2 < x) return 1;
3037
+ if (x2 < y2) return -1;
3038
+ if (y2 < x2) return 1;
3039
3039
  return 0;
3040
3040
  };
3041
3041
  function bidirectionalIndexOf(buffer3, val, byteOffset, encoding, dir) {
@@ -4607,15 +4607,15 @@ function requireGetProto() {
4607
4607
  var reflectGetProto = requireReflect_getPrototypeOf();
4608
4608
  var originalGetProto = requireObject_getPrototypeOf();
4609
4609
  var getDunderProto = /* @__PURE__ */ requireGet();
4610
- getProto = reflectGetProto ? function getProto2(O2) {
4611
- return reflectGetProto(O2);
4612
- } : originalGetProto ? function getProto2(O2) {
4613
- if (!O2 || typeof O2 !== "object" && typeof O2 !== "function") {
4610
+ getProto = reflectGetProto ? function getProto2(O) {
4611
+ return reflectGetProto(O);
4612
+ } : originalGetProto ? function getProto2(O) {
4613
+ if (!O || typeof O !== "object" && typeof O !== "function") {
4614
4614
  throw new TypeError("getProto: not an object");
4615
4615
  }
4616
- return originalGetProto(O2);
4617
- } : getDunderProto ? function getProto2(O2) {
4618
- return getDunderProto(O2);
4616
+ return originalGetProto(O);
4617
+ } : getDunderProto ? function getProto2(O) {
4618
+ return getDunderProto(O);
4619
4619
  } : null;
4620
4620
  return getProto;
4621
4621
  }
@@ -5283,18 +5283,18 @@ function requireForEach() {
5283
5283
  }
5284
5284
  };
5285
5285
  var forEachObject = function forEachObject2(object, iterator, receiver) {
5286
- for (var k in object) {
5287
- if (hasOwnProperty.call(object, k)) {
5286
+ for (var k2 in object) {
5287
+ if (hasOwnProperty.call(object, k2)) {
5288
5288
  if (receiver == null) {
5289
- iterator(object[k], k, object);
5289
+ iterator(object[k2], k2, object);
5290
5290
  } else {
5291
- iterator.call(receiver, object[k], k, object);
5291
+ iterator.call(receiver, object[k2], k2, object);
5292
5292
  }
5293
5293
  }
5294
5294
  }
5295
5295
  };
5296
- function isArray(x) {
5297
- return toStr.call(x) === "[object Array]";
5296
+ function isArray(x2) {
5297
+ return toStr.call(x2) === "[object Array]";
5298
5298
  }
5299
5299
  forEach = function forEach2(list, iterator, thisArg) {
5300
5300
  if (!isCallable2(iterator)) {
@@ -5903,10 +5903,10 @@ function requireUtil() {
5903
5903
  var i = 1;
5904
5904
  var args = arguments;
5905
5905
  var len = args.length;
5906
- var str = String(f).replace(formatRegExp, function(x2) {
5907
- if (x2 === "%%") return "%";
5908
- if (i >= len) return x2;
5909
- switch (x2) {
5906
+ var str = String(f).replace(formatRegExp, function(x3) {
5907
+ if (x3 === "%%") return "%";
5908
+ if (i >= len) return x3;
5909
+ switch (x3) {
5910
5910
  case "%s":
5911
5911
  return String(args[i++]);
5912
5912
  case "%d":
@@ -5918,14 +5918,14 @@ function requireUtil() {
5918
5918
  return "[Circular]";
5919
5919
  }
5920
5920
  default:
5921
- return x2;
5921
+ return x3;
5922
5922
  }
5923
5923
  });
5924
- for (var x = args[i]; i < len; x = args[++i]) {
5925
- if (isNull(x) || !isObject(x)) {
5926
- str += " " + x;
5924
+ for (var x2 = args[i]; i < len; x2 = args[++i]) {
5925
+ if (isNull(x2) || !isObject(x2)) {
5926
+ str += " " + x2;
5927
5927
  } else {
5928
- str += " " + inspect(x);
5928
+ str += " " + inspect(x2);
5929
5929
  }
5930
5930
  }
5931
5931
  return str;
@@ -6138,7 +6138,7 @@ function requireUtil() {
6138
6138
  }
6139
6139
  function formatArray(ctx, value, recurseTimes, visibleKeys, keys2) {
6140
6140
  var output = [];
6141
- for (var i = 0, l3 = value.length; i < l3; ++i) {
6141
+ for (var i = 0, l = value.length; i < l; ++i) {
6142
6142
  if (hasOwnProperty(value, String(i))) {
6143
6143
  output.push(formatProperty(
6144
6144
  ctx,
@@ -6272,8 +6272,8 @@ function requireUtil() {
6272
6272
  return typeof arg === "object" && arg !== null;
6273
6273
  }
6274
6274
  exports.isObject = isObject;
6275
- function isDate(d2) {
6276
- return isObject(d2) && objectToString(d2) === "[object Date]";
6275
+ function isDate(d) {
6276
+ return isObject(d) && objectToString(d) === "[object Date]";
6277
6277
  }
6278
6278
  exports.isDate = isDate;
6279
6279
  exports.types.isDate = isDate;
@@ -6313,13 +6313,13 @@ function requireUtil() {
6313
6313
  "Dec"
6314
6314
  ];
6315
6315
  function timestamp() {
6316
- var d2 = /* @__PURE__ */ new Date();
6316
+ var d = /* @__PURE__ */ new Date();
6317
6317
  var time = [
6318
- pad(d2.getHours()),
6319
- pad(d2.getMinutes()),
6320
- pad(d2.getSeconds())
6318
+ pad(d.getHours()),
6319
+ pad(d.getMinutes()),
6320
+ pad(d.getSeconds())
6321
6321
  ].join(":");
6322
- return [d2.getDate(), months[d2.getMonth()], time].join(" ");
6322
+ return [d.getDate(), months[d.getMonth()], time].join(" ");
6323
6323
  }
6324
6324
  exports.log = function() {
6325
6325
  console.log("%s - %s", timestamp(), exports.format.apply(exports, arguments));
@@ -7237,8 +7237,8 @@ function require_stream_writable() {
7237
7237
  state2.bufferProcessing = true;
7238
7238
  var entry = state2.bufferedRequest;
7239
7239
  if (stream._writev && entry && entry.next) {
7240
- var l3 = state2.bufferedRequestCount;
7241
- var buffer2 = new Array(l3);
7240
+ var l = state2.bufferedRequestCount;
7241
+ var buffer2 = new Array(l);
7242
7242
  var holder = state2.corkedRequestsFree;
7243
7243
  holder.entry = entry;
7244
7244
  var count = 0;
@@ -7490,6 +7490,7 @@ function require_stream_duplex() {
7490
7490
  }
7491
7491
  var string_decoder = {};
7492
7492
  var safeBuffer = { exports: {} };
7493
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
7493
7494
  var hasRequiredSafeBuffer;
7494
7495
  function requireSafeBuffer() {
7495
7496
  if (hasRequiredSafeBuffer) return safeBuffer.exports;
@@ -7511,6 +7512,7 @@ function requireSafeBuffer() {
7511
7512
  function SafeBuffer(arg, encodingOrOffset, length) {
7512
7513
  return Buffer3(arg, encodingOrOffset, length);
7513
7514
  }
7515
+ SafeBuffer.prototype = Object.create(Buffer3.prototype);
7514
7516
  copyProps(Buffer3, SafeBuffer);
7515
7517
  SafeBuffer.from = function(arg, encodingOrOffset, length) {
7516
7518
  if (typeof arg === "number") {
@@ -8788,9 +8790,9 @@ function require_stream_readable() {
8788
8790
  return from(Readable, iterable, opts);
8789
8791
  };
8790
8792
  }
8791
- function indexOf(xs, x) {
8792
- for (var i = 0, l3 = xs.length; i < l3; i++) {
8793
- if (xs[i] === x) return i;
8793
+ function indexOf(xs, x2) {
8794
+ for (var i = 0, l = xs.length; i < l; i++) {
8795
+ if (xs[i] === x2) return i;
8794
8796
  }
8795
8797
  return -1;
8796
8798
  }
@@ -9169,7 +9171,7 @@ function requireSax() {
9169
9171
  function checkBufferLength(parser) {
9170
9172
  var maxAllowed = Math.max(sax2.MAX_BUFFER_LENGTH, 10);
9171
9173
  var maxActual = 0;
9172
- for (var i = 0, l3 = buffers.length; i < l3; i++) {
9174
+ for (var i = 0, l = buffers.length; i < l; i++) {
9173
9175
  var len = parser[buffers[i]].length;
9174
9176
  if (len > maxAllowed) {
9175
9177
  switch (buffers[i]) {
@@ -9194,7 +9196,7 @@ function requireSax() {
9194
9196
  parser.bufferCheckPosition = m2 + parser.position;
9195
9197
  }
9196
9198
  function clearBuffers(parser) {
9197
- for (var i = 0, l3 = buffers.length; i < l3; i++) {
9199
+ for (var i = 0, l = buffers.length; i < l; i++) {
9198
9200
  parser[buffers[i]] = "";
9199
9201
  }
9200
9202
  }
@@ -9248,27 +9250,27 @@ function requireSax() {
9248
9250
  this._parser = new SAXParser(strict, opt);
9249
9251
  this.writable = true;
9250
9252
  this.readable = true;
9251
- var me = this;
9253
+ var me2 = this;
9252
9254
  this._parser.onend = function() {
9253
- me.emit("end");
9255
+ me2.emit("end");
9254
9256
  };
9255
9257
  this._parser.onerror = function(er) {
9256
- me.emit("error", er);
9257
- me._parser.error = null;
9258
+ me2.emit("error", er);
9259
+ me2._parser.error = null;
9258
9260
  };
9259
9261
  this._decoder = null;
9260
9262
  streamWraps.forEach(function(ev) {
9261
- Object.defineProperty(me, "on" + ev, {
9263
+ Object.defineProperty(me2, "on" + ev, {
9262
9264
  get: function() {
9263
- return me._parser["on" + ev];
9265
+ return me2._parser["on" + ev];
9264
9266
  },
9265
9267
  set: function(h2) {
9266
9268
  if (!h2) {
9267
- me.removeAllListeners(ev);
9268
- me._parser["on" + ev] = h2;
9269
+ me2.removeAllListeners(ev);
9270
+ me2._parser["on" + ev] = h2;
9269
9271
  return h2;
9270
9272
  }
9271
- me.on(ev, h2);
9273
+ me2.on(ev, h2);
9272
9274
  },
9273
9275
  enumerable: true,
9274
9276
  configurable: false
@@ -9300,15 +9302,15 @@ function requireSax() {
9300
9302
  return true;
9301
9303
  };
9302
9304
  SAXStream.prototype.on = function(ev, handler2) {
9303
- var me = this;
9304
- if (!me._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
9305
- me._parser["on" + ev] = function() {
9305
+ var me2 = this;
9306
+ if (!me2._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
9307
+ me2._parser["on" + ev] = function() {
9306
9308
  var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
9307
9309
  args.splice(0, 0, ev);
9308
- me.emit.apply(me, args);
9310
+ me2.emit.apply(me2, args);
9309
9311
  };
9310
9312
  }
9311
- return Stream.prototype.on.call(me, ev, handler2);
9313
+ return Stream.prototype.on.call(me2, ev, handler2);
9312
9314
  };
9313
9315
  var CDATA = "[CDATA[";
9314
9316
  var DOCTYPE = "DOCTYPE";
@@ -9810,7 +9812,7 @@ function requireSax() {
9810
9812
  });
9811
9813
  });
9812
9814
  }
9813
- for (var i = 0, l3 = parser.attribList.length; i < l3; i++) {
9815
+ for (var i = 0, l = parser.attribList.length; i < l; i++) {
9814
9816
  var nv = parser.attribList[i];
9815
9817
  var name = nv[0];
9816
9818
  var value = nv[1];
@@ -9893,9 +9895,9 @@ function requireSax() {
9893
9895
  var tag = parser.tag = parser.tags.pop();
9894
9896
  parser.tagName = parser.tag.name;
9895
9897
  emitNode(parser, "onclosetag", parser.tagName);
9896
- var x = {};
9898
+ var x2 = {};
9897
9899
  for (var i in tag.ns) {
9898
- x[i] = tag.ns[i];
9900
+ x2[i] = tag.ns[i];
9899
9901
  }
9900
9902
  var parent = parser.tags[parser.tags.length - 1] || parser;
9901
9903
  if (parser.opt.xmlns && tag.ns !== parent.ns) {
@@ -10937,8 +10939,8 @@ function requireXml2json() {
10937
10939
  js = xml2js2(xml, options);
10938
10940
  parentKey = "compact" in options && options.compact ? "_parent" : "parent";
10939
10941
  if ("addParent" in options && options.addParent) {
10940
- json = JSON.stringify(js, function(k, v2) {
10941
- return k === parentKey ? "_" : v2;
10942
+ json = JSON.stringify(js, function(k2, v2) {
10943
+ return k2 === parentKey ? "_" : v2;
10942
10944
  }, options.spaces);
10943
10945
  } else {
10944
10946
  json = JSON.stringify(js, null, options.spaces);
@@ -11360,8 +11362,8 @@ function v4(options, buf, offset) {
11360
11362
  rnds[8] = rnds[8] & 63 | 128;
11361
11363
  return unsafeStringify(rnds);
11362
11364
  }
11363
- function getDefaultExportFromCjs(x) {
11364
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
11365
+ function getDefaultExportFromCjs(x2) {
11366
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
11365
11367
  }
11366
11368
  const CRC_TABLE = new Int32Array([
11367
11369
  0,
@@ -12734,9 +12736,9 @@ class ResolvedPos {
12734
12736
  blockRange(other = this, pred) {
12735
12737
  if (other.pos < this.pos)
12736
12738
  return other.blockRange(this);
12737
- for (let d2 = this.depth - (this.parent.inlineContent || this.pos == other.pos ? 1 : 0); d2 >= 0; d2--)
12738
- if (other.pos <= this.end(d2) && (!pred || pred(this.node(d2))))
12739
- return new NodeRange(this, other, d2);
12739
+ for (let d = this.depth - (this.parent.inlineContent || this.pos == other.pos ? 1 : 0); d >= 0; d--)
12740
+ if (other.pos <= this.end(d) && (!pred || pred(this.node(d))))
12741
+ return new NodeRange(this, other, d);
12740
12742
  return null;
12741
12743
  }
12742
12744
  /**
@@ -14755,8 +14757,8 @@ class ParseContext {
14755
14757
  textblockFromContext() {
14756
14758
  let $context = this.options.context;
14757
14759
  if ($context)
14758
- for (let d2 = $context.depth; d2 >= 0; d2--) {
14759
- let deflt = $context.node(d2).contentMatchAt($context.indexAfter(d2)).defaultType;
14760
+ for (let d = $context.depth; d >= 0; d--) {
14761
+ let deflt = $context.node(d).contentMatchAt($context.indexAfter(d)).defaultType;
14760
14762
  if (deflt && deflt.isTextblock && deflt.defaultAttrs)
14761
14763
  return deflt;
14762
14764
  }
@@ -15177,8 +15179,8 @@ function polygonToObj(polygonNode) {
15177
15179
  const points = [];
15178
15180
  polygonNode.elements.forEach((element) => {
15179
15181
  if (["wp:start", "wp:lineTo"].includes(element.name)) {
15180
- const { x, y: y2 } = element.attributes;
15181
- points.push([polygonUnitsToPixels(x), polygonUnitsToPixels(y2)]);
15182
+ const { x: x2, y: y2 } = element.attributes;
15183
+ points.push([polygonUnitsToPixels(x2), polygonUnitsToPixels(y2)]);
15182
15184
  }
15183
15185
  });
15184
15186
  if (points.length > 1) {
@@ -15201,13 +15203,13 @@ function objToPolygon(points) {
15201
15203
  elements: []
15202
15204
  };
15203
15205
  points.forEach((point, index2) => {
15204
- const [x, y2] = point;
15206
+ const [x2, y2] = point;
15205
15207
  const tagName = index2 === 0 ? "wp:start" : "wp:lineTo";
15206
15208
  const pointNode = {
15207
15209
  name: tagName,
15208
15210
  type: tagName,
15209
15211
  attributes: {
15210
- x: pixelsToPolygonUnits(x),
15212
+ x: pixelsToPolygonUnits(x2),
15211
15213
  y: pixelsToPolygonUnits(y2)
15212
15214
  }
15213
15215
  };
@@ -16599,9 +16601,6 @@ const COMMENTS_XML_DEFINITIONS = {
16599
16601
  DOCUMENT_RELS_XML_DEF,
16600
16602
  CONTENT_TYPES
16601
16603
  };
16602
- const TrackInsertMarkName = "trackInsert";
16603
- const TrackDeleteMarkName = "trackDelete";
16604
- const TrackFormatMarkName = "trackFormat";
16605
16604
  const carbonCopy = (obj) => {
16606
16605
  if (!obj) return void 0;
16607
16606
  try {
@@ -17442,19 +17441,19 @@ function lift(tr, range2, target) {
17442
17441
  let gapStart = $from.before(depth + 1), gapEnd = $to.after(depth + 1);
17443
17442
  let start = gapStart, end = gapEnd;
17444
17443
  let before = Fragment.empty, openStart = 0;
17445
- for (let d2 = depth, splitting = false; d2 > target; d2--)
17446
- if (splitting || $from.index(d2) > 0) {
17444
+ for (let d = depth, splitting = false; d > target; d--)
17445
+ if (splitting || $from.index(d) > 0) {
17447
17446
  splitting = true;
17448
- before = Fragment.from($from.node(d2).copy(before));
17447
+ before = Fragment.from($from.node(d).copy(before));
17449
17448
  openStart++;
17450
17449
  } else {
17451
17450
  start--;
17452
17451
  }
17453
17452
  let after = Fragment.empty, openEnd = 0;
17454
- for (let d2 = depth, splitting = false; d2 > target; d2--)
17455
- if (splitting || $to.after(d2 + 1) < $to.end(d2)) {
17453
+ for (let d = depth, splitting = false; d > target; d--)
17454
+ if (splitting || $to.after(d + 1) < $to.end(d)) {
17456
17455
  splitting = true;
17457
- after = Fragment.from($to.node(d2).copy(after));
17456
+ after = Fragment.from($to.node(d).copy(after));
17458
17457
  openEnd++;
17459
17458
  } else {
17460
17459
  end++;
@@ -17574,8 +17573,8 @@ function canSplit(doc2, pos, depth = 1, typesAfter) {
17574
17573
  let innerType = typesAfter && typesAfter[typesAfter.length - 1] || $pos.parent;
17575
17574
  if (base < 0 || $pos.parent.type.spec.isolating || !$pos.parent.canReplace($pos.index(), $pos.parent.childCount) || !innerType.type.validContent($pos.parent.content.cutByIndex($pos.index(), $pos.parent.childCount)))
17576
17575
  return false;
17577
- for (let d2 = $pos.depth - 1, i = depth - 2; d2 > base; d2--, i--) {
17578
- let node = $pos.node(d2), index3 = $pos.index(d2);
17576
+ for (let d = $pos.depth - 1, i = depth - 2; d > base; d--, i--) {
17577
+ let node = $pos.node(d), index3 = $pos.index(d);
17579
17578
  if (node.type.spec.isolating)
17580
17579
  return false;
17581
17580
  let rest = node.content.cutByIndex(index3, node.childCount);
@@ -17592,10 +17591,10 @@ function canSplit(doc2, pos, depth = 1, typesAfter) {
17592
17591
  }
17593
17592
  function split(tr, pos, depth = 1, typesAfter) {
17594
17593
  let $pos = tr.doc.resolve(pos), before = Fragment.empty, after = Fragment.empty;
17595
- for (let d2 = $pos.depth, e = $pos.depth - depth, i = depth - 1; d2 > e; d2--, i--) {
17596
- before = Fragment.from($pos.node(d2).copy(before));
17594
+ for (let d = $pos.depth, e = $pos.depth - depth, i = depth - 1; d > e; d--, i--) {
17595
+ before = Fragment.from($pos.node(d).copy(before));
17597
17596
  let typeAfter = typesAfter && typesAfter[i];
17598
- after = Fragment.from(typeAfter ? typeAfter.type.create(typeAfter.attrs, after) : $pos.node(d2).copy(after));
17597
+ after = Fragment.from(typeAfter ? typeAfter.type.create(typeAfter.attrs, after) : $pos.node(d).copy(after));
17599
17598
  }
17600
17599
  tr.step(new ReplaceStep(pos, pos, new Slice(before.append(after), depth, depth), true));
17601
17600
  }
@@ -17624,24 +17623,24 @@ function joinable(a, b2) {
17624
17623
  }
17625
17624
  function joinPoint(doc2, pos, dir = -1) {
17626
17625
  let $pos = doc2.resolve(pos);
17627
- for (let d2 = $pos.depth; ; d2--) {
17628
- let before, after, index2 = $pos.index(d2);
17629
- if (d2 == $pos.depth) {
17626
+ for (let d = $pos.depth; ; d--) {
17627
+ let before, after, index2 = $pos.index(d);
17628
+ if (d == $pos.depth) {
17630
17629
  before = $pos.nodeBefore;
17631
17630
  after = $pos.nodeAfter;
17632
17631
  } else if (dir > 0) {
17633
- before = $pos.node(d2 + 1);
17632
+ before = $pos.node(d + 1);
17634
17633
  index2++;
17635
- after = $pos.node(d2).maybeChild(index2);
17634
+ after = $pos.node(d).maybeChild(index2);
17636
17635
  } else {
17637
- before = $pos.node(d2).maybeChild(index2 - 1);
17638
- after = $pos.node(d2 + 1);
17636
+ before = $pos.node(d).maybeChild(index2 - 1);
17637
+ after = $pos.node(d + 1);
17639
17638
  }
17640
- if (before && !before.isTextblock && joinable(before, after) && $pos.node(d2).canReplace(index2, index2 + 1))
17639
+ if (before && !before.isTextblock && joinable(before, after) && $pos.node(d).canReplace(index2, index2 + 1))
17641
17640
  return pos;
17642
- if (d2 == 0)
17641
+ if (d == 0)
17643
17642
  break;
17644
- pos = dir < 0 ? $pos.before(d2) : $pos.after(d2);
17643
+ pos = dir < 0 ? $pos.before(d) : $pos.after(d);
17645
17644
  }
17646
17645
  }
17647
17646
  function join(tr, pos, depth) {
@@ -17676,19 +17675,19 @@ function insertPoint(doc2, pos, nodeType) {
17676
17675
  if ($pos.parent.canReplaceWith($pos.index(), $pos.index(), nodeType))
17677
17676
  return pos;
17678
17677
  if ($pos.parentOffset == 0)
17679
- for (let d2 = $pos.depth - 1; d2 >= 0; d2--) {
17680
- let index2 = $pos.index(d2);
17681
- if ($pos.node(d2).canReplaceWith(index2, index2, nodeType))
17682
- return $pos.before(d2 + 1);
17678
+ for (let d = $pos.depth - 1; d >= 0; d--) {
17679
+ let index2 = $pos.index(d);
17680
+ if ($pos.node(d).canReplaceWith(index2, index2, nodeType))
17681
+ return $pos.before(d + 1);
17683
17682
  if (index2 > 0)
17684
17683
  return null;
17685
17684
  }
17686
17685
  if ($pos.parentOffset == $pos.parent.content.size)
17687
- for (let d2 = $pos.depth - 1; d2 >= 0; d2--) {
17688
- let index2 = $pos.indexAfter(d2);
17689
- if ($pos.node(d2).canReplaceWith(index2, index2, nodeType))
17690
- return $pos.after(d2 + 1);
17691
- if (index2 < $pos.node(d2).childCount)
17686
+ for (let d = $pos.depth - 1; d >= 0; d--) {
17687
+ let index2 = $pos.indexAfter(d);
17688
+ if ($pos.node(d).canReplaceWith(index2, index2, nodeType))
17689
+ return $pos.after(d + 1);
17690
+ if (index2 < $pos.node(d).childCount)
17692
17691
  return null;
17693
17692
  }
17694
17693
  return null;
@@ -17701,10 +17700,10 @@ function dropPoint(doc2, pos, slice) {
17701
17700
  for (let i = 0; i < slice.openStart; i++)
17702
17701
  content = content.firstChild.content;
17703
17702
  for (let pass = 1; pass <= (slice.openStart == 0 && slice.size ? 2 : 1); pass++) {
17704
- for (let d2 = $pos.depth; d2 >= 0; d2--) {
17705
- let bias = d2 == $pos.depth ? 0 : $pos.pos <= ($pos.start(d2 + 1) + $pos.end(d2 + 1)) / 2 ? -1 : 1;
17706
- let insertPos = $pos.index(d2) + (bias > 0 ? 1 : 0);
17707
- let parent = $pos.node(d2), fits = false;
17703
+ for (let d = $pos.depth; d >= 0; d--) {
17704
+ let bias = d == $pos.depth ? 0 : $pos.pos <= ($pos.start(d + 1) + $pos.end(d + 1)) / 2 ? -1 : 1;
17705
+ let insertPos = $pos.index(d) + (bias > 0 ? 1 : 0);
17706
+ let parent = $pos.node(d), fits = false;
17708
17707
  if (pass == 1) {
17709
17708
  fits = parent.canReplace(insertPos, insertPos, content);
17710
17709
  } else {
@@ -17712,7 +17711,7 @@ function dropPoint(doc2, pos, slice) {
17712
17711
  fits = wrapping && parent.canReplaceWith(insertPos, insertPos, wrapping[0]);
17713
17712
  }
17714
17713
  if (fits)
17715
- return bias == 0 ? $pos.pos : bias < 0 ? $pos.before(d2 + 1) : $pos.after(d2 + 1);
17714
+ return bias == 0 ? $pos.pos : bias < 0 ? $pos.before(d + 1) : $pos.after(d + 1);
17716
17715
  }
17717
17716
  }
17718
17717
  return null;
@@ -17778,12 +17777,12 @@ class Fitter {
17778
17777
  // depths, one for the slice and one for the frontier.
17779
17778
  findFittable() {
17780
17779
  let startDepth = this.unplaced.openStart;
17781
- for (let cur = this.unplaced.content, d2 = 0, openEnd = this.unplaced.openEnd; d2 < startDepth; d2++) {
17780
+ for (let cur = this.unplaced.content, d = 0, openEnd = this.unplaced.openEnd; d < startDepth; d++) {
17782
17781
  let node = cur.firstChild;
17783
17782
  if (cur.childCount > 1)
17784
17783
  openEnd = 0;
17785
- if (node.type.spec.isolating && openEnd <= d2) {
17786
- startDepth = d2;
17784
+ if (node.type.spec.isolating && openEnd <= d) {
17785
+ startDepth = d;
17787
17786
  break;
17788
17787
  }
17789
17788
  cur = node.content;
@@ -17889,9 +17888,9 @@ class Fitter {
17889
17888
  let fit = contentAfterFits($to, i, type2, match, dropInner);
17890
17889
  if (!fit)
17891
17890
  continue;
17892
- for (let d2 = i - 1; d2 >= 0; d2--) {
17893
- let { match: match2, type: type3 } = this.frontier[d2];
17894
- let matches2 = contentAfterFits($to, d2, type3, match2, true);
17891
+ for (let d = i - 1; d >= 0; d--) {
17892
+ let { match: match2, type: type3 } = this.frontier[d];
17893
+ let matches2 = contentAfterFits($to, d, type3, match2, true);
17895
17894
  if (!matches2 || matches2.childCount)
17896
17895
  continue scan;
17897
17896
  }
@@ -17907,8 +17906,8 @@ class Fitter {
17907
17906
  if (close2.fit.childCount)
17908
17907
  this.placed = addToFragment(this.placed, close2.depth, close2.fit);
17909
17908
  $to = close2.move;
17910
- for (let d2 = close2.depth + 1; d2 <= $to.depth; d2++) {
17911
- let node = $to.node(d2), add = node.type.contentMatch.fillBefore(node.content, true, $to.index(d2));
17909
+ for (let d = close2.depth + 1; d <= $to.depth; d++) {
17910
+ let node = $to.node(d), add = node.type.contentMatch.fillBefore(node.content, true, $to.index(d));
17912
17911
  this.openFrontierNode(node.type, node.attrs, add);
17913
17912
  }
17914
17913
  return $to;
@@ -17981,14 +17980,14 @@ function replaceRange(tr, from, to, slice) {
17981
17980
  targetDepths.pop();
17982
17981
  let preferredTarget = -($from.depth + 1);
17983
17982
  targetDepths.unshift(preferredTarget);
17984
- for (let d2 = $from.depth, pos = $from.pos - 1; d2 > 0; d2--, pos--) {
17985
- let spec = $from.node(d2).type.spec;
17983
+ for (let d = $from.depth, pos = $from.pos - 1; d > 0; d--, pos--) {
17984
+ let spec = $from.node(d).type.spec;
17986
17985
  if (spec.defining || spec.definingAsContext || spec.isolating)
17987
17986
  break;
17988
- if (targetDepths.indexOf(d2) > -1)
17989
- preferredTarget = d2;
17990
- else if ($from.before(d2) == pos)
17991
- targetDepths.splice(1, 0, -d2);
17987
+ if (targetDepths.indexOf(d) > -1)
17988
+ preferredTarget = d;
17989
+ else if ($from.before(d) == pos)
17990
+ targetDepths.splice(1, 0, -d);
17992
17991
  }
17993
17992
  let preferredTargetIndex = targetDepths.indexOf(preferredTarget);
17994
17993
  let leftNodes = [], preferredDepth = slice.openStart;
@@ -17999,10 +17998,10 @@ function replaceRange(tr, from, to, slice) {
17999
17998
  break;
18000
17999
  content = node.content;
18001
18000
  }
18002
- for (let d2 = preferredDepth - 1; d2 >= 0; d2--) {
18003
- let leftNode = leftNodes[d2], def = definesContent(leftNode.type);
18001
+ for (let d = preferredDepth - 1; d >= 0; d--) {
18002
+ let leftNode = leftNodes[d], def = definesContent(leftNode.type);
18004
18003
  if (def && !leftNode.sameMarkup($from.node(Math.abs(preferredTarget) - 1)))
18005
- preferredDepth = d2;
18004
+ preferredDepth = d;
18006
18005
  else if (def || !leftNode.type.isTextblock)
18007
18006
  break;
18008
18007
  }
@@ -18064,20 +18063,20 @@ function deleteRange(tr, from, to) {
18064
18063
  if (depth > 0 && (last || $from.node(depth - 1).canReplace($from.index(depth - 1), $to.indexAfter(depth - 1))))
18065
18064
  return tr.delete($from.before(depth), $to.after(depth));
18066
18065
  }
18067
- for (let d2 = 1; d2 <= $from.depth && d2 <= $to.depth; d2++) {
18068
- if (from - $from.start(d2) == $from.depth - d2 && to > $from.end(d2) && $to.end(d2) - to != $to.depth - d2 && $from.start(d2 - 1) == $to.start(d2 - 1) && $from.node(d2 - 1).canReplace($from.index(d2 - 1), $to.index(d2 - 1)))
18069
- return tr.delete($from.before(d2), to);
18066
+ for (let d = 1; d <= $from.depth && d <= $to.depth; d++) {
18067
+ if (from - $from.start(d) == $from.depth - d && to > $from.end(d) && $to.end(d) - to != $to.depth - d && $from.start(d - 1) == $to.start(d - 1) && $from.node(d - 1).canReplace($from.index(d - 1), $to.index(d - 1)))
18068
+ return tr.delete($from.before(d), to);
18070
18069
  }
18071
18070
  tr.delete(from, to);
18072
18071
  }
18073
18072
  function coveredDepths($from, $to) {
18074
18073
  let result = [], minDepth = Math.min($from.depth, $to.depth);
18075
- for (let d2 = minDepth; d2 >= 0; d2--) {
18076
- let start = $from.start(d2);
18077
- if (start < $from.pos - ($from.depth - d2) || $to.end(d2) > $to.pos + ($to.depth - d2) || $from.node(d2).type.spec.isolating || $to.node(d2).type.spec.isolating)
18074
+ for (let d = minDepth; d >= 0; d--) {
18075
+ let start = $from.start(d);
18076
+ if (start < $from.pos - ($from.depth - d) || $to.end(d) > $to.pos + ($to.depth - d) || $from.node(d).type.spec.isolating || $to.node(d).type.spec.isolating)
18078
18077
  break;
18079
- if (start == $to.start(d2) || d2 == $from.depth && d2 == $to.depth && $from.parent.inlineContent && $to.parent.inlineContent && d2 && $to.start(d2 - 1) == start - 1)
18080
- result.push(d2);
18078
+ if (start == $to.start(d) || d == $from.depth && d == $to.depth && $from.parent.inlineContent && $to.parent.inlineContent && d && $to.start(d - 1) == start - 1)
18079
+ result.push(d);
18081
18080
  }
18082
18081
  return result;
18083
18082
  }
@@ -22837,7 +22836,7 @@ function posToDOMRect(view, from, to) {
22837
22836
  const right = Math.max(start.right, end.right);
22838
22837
  const width = right - left;
22839
22838
  const height = bottom - top;
22840
- const x = left;
22839
+ const x2 = left;
22841
22840
  const y2 = top;
22842
22841
  const data = {
22843
22842
  top,
@@ -22846,7 +22845,7 @@ function posToDOMRect(view, from, to) {
22846
22845
  right,
22847
22846
  width,
22848
22847
  height,
22849
- x,
22848
+ x: x2,
22850
22849
  y: y2
22851
22850
  };
22852
22851
  return {
@@ -22856,8 +22855,8 @@ function posToDOMRect(view, from, to) {
22856
22855
  }
22857
22856
  const isInTable = (state2) => {
22858
22857
  const { $head } = state2.selection;
22859
- for (let d2 = $head.depth; d2 > 0; d2 -= 1) {
22860
- if ($head.node(d2).type?.spec?.tableRole === "row") {
22858
+ for (let d = $head.depth; d > 0; d -= 1) {
22859
+ if ($head.node(d).type?.spec?.tableRole === "row") {
22861
22860
  return true;
22862
22861
  }
22863
22862
  }
@@ -22910,7 +22909,7 @@ function stripHtmlStyles(html) {
22910
22909
  function cleanStyle(style) {
22911
22910
  if (!style) return "";
22912
22911
  const declarations = style.split(";").map((s) => s.trim()).filter(Boolean);
22913
- const textAlign = declarations.find((d2) => d2.startsWith("text-align"));
22912
+ const textAlign = declarations.find((d) => d.startsWith("text-align"));
22914
22913
  return textAlign ? `${textAlign};` : "";
22915
22914
  }
22916
22915
  function preserveSpaces(innerHtml) {
@@ -22935,39 +22934,39 @@ function createDocFromHTML(content, schema, options = {}) {
22935
22934
  function L() {
22936
22935
  return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
22937
22936
  }
22938
- var O = L();
22939
- function G(l3) {
22940
- O = l3;
22937
+ var T = L();
22938
+ function G(u3) {
22939
+ T = u3;
22941
22940
  }
22942
- var E = { exec: () => null };
22943
- function h(l3, e = "") {
22944
- let t = typeof l3 == "string" ? l3 : l3.source, n = { replace: (r, i) => {
22941
+ var I = { exec: () => null };
22942
+ function h(u3, e = "") {
22943
+ let t = typeof u3 == "string" ? u3 : u3.source, n = { replace: (r, i) => {
22945
22944
  let s = typeof i == "string" ? i : i.source;
22946
22945
  return s = s.replace(m.caret, "$1"), t = t.replace(r, s), n;
22947
22946
  }, getRegex: () => new RegExp(t, e) };
22948
22947
  return n;
22949
22948
  }
22950
- var m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (l3) => new RegExp(`^( {0,3}${l3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}#`), htmlBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}<(?:[a-z].*>|!--)`, "i") }, xe = /^(?:[ \t]*(?:\n|$))+/, be = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Re = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, C = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Oe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, j = /(?:[*+-]|\d{1,9}[.)])/, se = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ie = h(se).replace(/bull/g, j).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Te = h(se).replace(/bull/g, j).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), F = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, we = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ye = h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Pe = h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, j).getRegex(), v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Se = h("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), oe = h(F).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), $e = h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", oe).getRegex(), K = { blockquote: $e, code: be, def: ye, fences: Re, heading: Oe, hr: C, html: Se, lheading: ie, list: Pe, newline: xe, paragraph: oe, table: E, text: we }, re = h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), _e = { ...K, lheading: Te, table: re, paragraph: h(F).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() }, Le = { ...K, html: h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: E, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: h(F).replace("hr", C).replace("heading", ` *#{1,6} *[^
22951
- ]`).replace("lheading", ie).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Me = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ze = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ae = /^( {2,}|\\)\n(?!\s*$)/, Ae = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, le = /[^\s\p{P}\p{S}]/u, Ee = h(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), ue = /(?!~)[\p{P}\p{S}]/u, Ce = /(?!~)[\s\p{P}\p{S}]/u, Ie = /(?:[^\s\p{P}\p{S}]|~)/u, Be = /\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, pe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, qe = h(pe, "u").replace(/punct/g, D).getRegex(), ve = h(pe, "u").replace(/punct/g, ue).getRegex(), ce = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", De = h(ce, "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), He = h(ce, "gu").replace(/notPunctSpace/g, Ie).replace(/punctSpace/g, Ce).replace(/punct/g, ue).getRegex(), Ze = h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ge = h(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), Ne = h(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), je = h(U).replace("(?:-->|$)", "-->").getRegex(), Fe = h("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", je).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/, Qe = h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), he$3 = h(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex(), de = h(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), Ue = h("reflink|nolink(?!\\()", "g").replace("reflink", he$3).replace("nolink", de).getRegex(), X = { _backpedal: E, anyPunctuation: Ge, autolink: Ne, blockSkip: Be, br: ae, code: ze, del: E, emStrongLDelim: qe, emStrongRDelimAst: De, emStrongRDelimUnd: Ze, escape: Me, link: Qe, nolink: de, punctuation: Ee, reflink: he$3, reflinkSearch: Ue, tag: Fe, text: Ae, url: E }, Ke = { ...X, link: h(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, N = { ...X, emStrongRDelimAst: He, emStrongLDelim: ve, url: h(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ }, We = { ...N, br: h(ae).replace("{2,}", "*").getRegex(), text: h(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, I = { normal: K, gfm: _e, pedantic: Le }, M = { normal: X, gfm: N, breaks: We, pedantic: Ke };
22952
- var Xe = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, ke = (l3) => Xe[l3];
22953
- function w(l3, e) {
22949
+ var m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (u3) => new RegExp(`^( {0,3}${u3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}#`), htmlBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}<(?:[a-z].*>|!--)`, "i") }, be = /^(?:[ \t]*(?:\n|$))+/, Re = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Te = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, E = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Oe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, F = /(?:[*+-]|\d{1,9}[.)])/, ie = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, oe = h(ie).replace(/bull/g, F).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), we = h(ie).replace(/bull/g, F).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), j = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ye = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Pe = h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Se = h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, F).getRegex(), v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, $e = h("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ae = h(j).replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), _e = h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ae).getRegex(), K = { blockquote: _e, code: Re, def: Pe, fences: Te, heading: Oe, hr: E, html: $e, lheading: oe, list: Se, newline: be, paragraph: ae, table: I, text: ye }, re = h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), Le = { ...K, lheading: we, table: re, paragraph: h(j).replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() }, Me = { ...K, html: h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: I, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: h(j).replace("hr", E).replace("heading", ` *#{1,6} *[^
22950
+ ]`).replace("lheading", oe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, ze = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ae = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, le = /^( {2,}|\\)\n(?!\s*$)/, Ie = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, ue = /[^\s\p{P}\p{S}]/u, Ee = h(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), pe = /(?!~)[\p{P}\p{S}]/u, Ce = /(?!~)[\s\p{P}\p{S}]/u, Be = /(?:[^\s\p{P}\p{S}]|~)/u, qe = h(/link|code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<!`)(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("code", /(?<!`)(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ce = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, ve = h(ce, "u").replace(/punct/g, D).getRegex(), De = h(ce, "u").replace(/punct/g, pe).getRegex(), he$3 = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", He = h(he$3, "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ze = h(he$3, "gu").replace(/notPunctSpace/g, Be).replace(/punctSpace/g, Ce).replace(/punct/g, pe).getRegex(), Ge = h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ne = h(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), Fe = h(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), je = h(U).replace("(?:-->|$)", "-->").getRegex(), Qe = h("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", je).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Ue = h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), de = h(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex(), ke = h(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), Ke = h("reflink|nolink(?!\\()", "g").replace("reflink", de).replace("nolink", ke).getRegex(), se = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, X = { _backpedal: I, anyPunctuation: Ne, autolink: Fe, blockSkip: qe, br: le, code: Ae, del: I, emStrongLDelim: ve, emStrongRDelimAst: He, emStrongRDelimUnd: Ge, escape: ze, link: Ue, nolink: ke, punctuation: Ee, reflink: de, reflinkSearch: Ke, tag: Qe, text: Ie, url: I }, We = { ...X, link: h(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, N = { ...X, emStrongRDelimAst: Ze, emStrongLDelim: De, url: h(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", se).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: h(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", se).getRegex() }, Xe = { ...N, br: h(le).replace("{2,}", "*").getRegex(), text: h(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, C = { normal: K, gfm: Le, pedantic: Me }, M = { normal: X, gfm: N, breaks: Xe, pedantic: We };
22951
+ var Je = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, ge = (u3) => Je[u3];
22952
+ function w(u3, e) {
22954
22953
  if (e) {
22955
- if (m.escapeTest.test(l3)) return l3.replace(m.escapeReplace, ke);
22956
- } else if (m.escapeTestNoEncode.test(l3)) return l3.replace(m.escapeReplaceNoEncode, ke);
22957
- return l3;
22954
+ if (m.escapeTest.test(u3)) return u3.replace(m.escapeReplace, ge);
22955
+ } else if (m.escapeTestNoEncode.test(u3)) return u3.replace(m.escapeReplaceNoEncode, ge);
22956
+ return u3;
22958
22957
  }
22959
- function J(l3) {
22958
+ function J(u3) {
22960
22959
  try {
22961
- l3 = encodeURI(l3).replace(m.percentDecode, "%");
22960
+ u3 = encodeURI(u3).replace(m.percentDecode, "%");
22962
22961
  } catch {
22963
22962
  return null;
22964
22963
  }
22965
- return l3;
22964
+ return u3;
22966
22965
  }
22967
- function V(l3, e) {
22968
- let t = l3.replace(m.findPipe, (i, s, o) => {
22969
- let a = false, u = s;
22970
- for (; --u >= 0 && o[u] === "\\"; ) a = !a;
22966
+ function V(u3, e) {
22967
+ let t = u3.replace(m.findPipe, (i, s, o) => {
22968
+ let a = false, l = s;
22969
+ for (; --l >= 0 && o[l] === "\\"; ) a = !a;
22971
22970
  return a ? "|" : " |";
22972
22971
  }), n = t.split(m.splitPipe), r = 0;
22973
22972
  if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), e) if (n.length > e) n.splice(e);
@@ -22975,33 +22974,33 @@ function V(l3, e) {
22975
22974
  for (; r < n.length; r++) n[r] = n[r].trim().replace(m.slashPipe, "|");
22976
22975
  return n;
22977
22976
  }
22978
- function z(l3, e, t) {
22979
- let n = l3.length;
22977
+ function z(u3, e, t) {
22978
+ let n = u3.length;
22980
22979
  if (n === 0) return "";
22981
22980
  let r = 0;
22982
22981
  for (; r < n; ) {
22983
- let i = l3.charAt(n - r - 1);
22982
+ let i = u3.charAt(n - r - 1);
22984
22983
  if (i === e && true) r++;
22985
22984
  else break;
22986
22985
  }
22987
- return l3.slice(0, n - r);
22986
+ return u3.slice(0, n - r);
22988
22987
  }
22989
- function ge(l3, e) {
22990
- if (l3.indexOf(e[1]) === -1) return -1;
22988
+ function fe(u3, e) {
22989
+ if (u3.indexOf(e[1]) === -1) return -1;
22991
22990
  let t = 0;
22992
- for (let n = 0; n < l3.length; n++) if (l3[n] === "\\") n++;
22993
- else if (l3[n] === e[0]) t++;
22994
- else if (l3[n] === e[1] && (t--, t < 0)) return n;
22991
+ for (let n = 0; n < u3.length; n++) if (u3[n] === "\\") n++;
22992
+ else if (u3[n] === e[0]) t++;
22993
+ else if (u3[n] === e[1] && (t--, t < 0)) return n;
22995
22994
  return t > 0 ? -2 : -1;
22996
22995
  }
22997
- function fe(l3, e, t, n, r) {
22998
- let i = e.href, s = e.title || null, o = l3[1].replace(r.other.outputLinkReplace, "$1");
22996
+ function me(u3, e, t, n, r) {
22997
+ let i = e.href, s = e.title || null, o = u3[1].replace(r.other.outputLinkReplace, "$1");
22999
22998
  n.state.inLink = true;
23000
- let a = { type: l3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s, text: o, tokens: n.inlineTokens(o) };
22999
+ let a = { type: u3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s, text: o, tokens: n.inlineTokens(o) };
23001
23000
  return n.state.inLink = false, a;
23002
23001
  }
23003
- function Je(l3, e, t) {
23004
- let n = l3.match(t.other.indentCodeCompensation);
23002
+ function Ve(u3, e, t) {
23003
+ let n = u3.match(t.other.indentCodeCompensation);
23005
23004
  if (n === null) return e;
23006
23005
  let r = n[1];
23007
23006
  return e.split(`
@@ -23018,7 +23017,7 @@ var y = class {
23018
23017
  __publicField(this, "options");
23019
23018
  __publicField(this, "rules");
23020
23019
  __publicField(this, "lexer");
23021
- this.options = e || O;
23020
+ this.options = e || T;
23022
23021
  }
23023
23022
  space(e) {
23024
23023
  let t = this.rules.block.newline.exec(e);
@@ -23035,7 +23034,7 @@ var y = class {
23035
23034
  fences(e) {
23036
23035
  let t = this.rules.block.fences.exec(e);
23037
23036
  if (t) {
23038
- let n = t[0], r = Je(n, t[3] || "", this.rules);
23037
+ let n = t[0], r = Ve(n, t[3] || "", this.rules);
23039
23038
  return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r };
23040
23039
  }
23041
23040
  }
@@ -23062,32 +23061,32 @@ var y = class {
23062
23061
  `).split(`
23063
23062
  `), r = "", i = "", s = [];
23064
23063
  for (; n.length > 0; ) {
23065
- let o = false, a = [], u;
23066
- for (u = 0; u < n.length; u++) if (this.rules.other.blockquoteStart.test(n[u])) a.push(n[u]), o = true;
23067
- else if (!o) a.push(n[u]);
23064
+ let o = false, a = [], l;
23065
+ for (l = 0; l < n.length; l++) if (this.rules.other.blockquoteStart.test(n[l])) a.push(n[l]), o = true;
23066
+ else if (!o) a.push(n[l]);
23068
23067
  else break;
23069
- n = n.slice(u);
23070
- let p = a.join(`
23071
- `), c = p.replace(this.rules.other.blockquoteSetextReplace, `
23068
+ n = n.slice(l);
23069
+ let c = a.join(`
23070
+ `), p = c.replace(this.rules.other.blockquoteSetextReplace, `
23072
23071
  $1`).replace(this.rules.other.blockquoteSetextReplace2, "");
23073
23072
  r = r ? `${r}
23074
- ${p}` : p, i = i ? `${i}
23075
- ${c}` : c;
23076
- let f = this.lexer.state.top;
23077
- if (this.lexer.state.top = true, this.lexer.blockTokens(c, s, true), this.lexer.state.top = f, n.length === 0) break;
23078
- let k = s.at(-1);
23079
- if (k?.type === "code") break;
23080
- if (k?.type === "blockquote") {
23081
- let x = k, g = x.raw + `
23073
+ ${c}` : c, i = i ? `${i}
23074
+ ${p}` : p;
23075
+ let g = this.lexer.state.top;
23076
+ if (this.lexer.state.top = true, this.lexer.blockTokens(p, s, true), this.lexer.state.top = g, n.length === 0) break;
23077
+ let d = s.at(-1);
23078
+ if (d?.type === "code") break;
23079
+ if (d?.type === "blockquote") {
23080
+ let R = d, f = R.raw + `
23082
23081
  ` + n.join(`
23083
- `), T = this.blockquote(g);
23084
- s[s.length - 1] = T, r = r.substring(0, r.length - x.raw.length) + T.raw, i = i.substring(0, i.length - x.text.length) + T.text;
23082
+ `), O = this.blockquote(f);
23083
+ s[s.length - 1] = O, r = r.substring(0, r.length - R.raw.length) + O.raw, i = i.substring(0, i.length - R.text.length) + O.text;
23085
23084
  break;
23086
- } else if (k?.type === "list") {
23087
- let x = k, g = x.raw + `
23085
+ } else if (d?.type === "list") {
23086
+ let R = d, f = R.raw + `
23088
23087
  ` + n.join(`
23089
- `), T = this.list(g);
23090
- s[s.length - 1] = T, r = r.substring(0, r.length - k.raw.length) + T.raw, i = i.substring(0, i.length - x.raw.length) + T.raw, n = g.substring(s.at(-1).raw.length).split(`
23088
+ `), O = this.list(f);
23089
+ s[s.length - 1] = O, r = r.substring(0, r.length - d.raw.length) + O.raw, i = i.substring(0, i.length - R.raw.length) + O.raw, n = f.substring(s.at(-1).raw.length).split(`
23091
23090
  `);
23092
23091
  continue;
23093
23092
  }
@@ -23102,43 +23101,43 @@ ${c}` : c;
23102
23101
  n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
23103
23102
  let s = this.rules.other.listItemRegex(n), o = false;
23104
23103
  for (; e; ) {
23105
- let u = false, p = "", c = "";
23104
+ let l = false, c = "", p = "";
23106
23105
  if (!(t = s.exec(e)) || this.rules.block.hr.test(e)) break;
23107
- p = t[0], e = e.substring(p.length);
23108
- let f = t[2].split(`
23109
- `, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), k = e.split(`
23110
- `, 1)[0], x = !f.trim(), g = 0;
23111
- if (this.options.pedantic ? (g = 2, c = f.trimStart()) : x ? g = t[1].length + 1 : (g = t[2].search(this.rules.other.nonSpaceChar), g = g > 4 ? 1 : g, c = f.slice(g), g += t[1].length), x && this.rules.other.blankLine.test(k) && (p += k + `
23112
- `, e = e.substring(k.length + 1), u = true), !u) {
23113
- let H = this.rules.other.nextBulletRegex(g), ee = this.rules.other.hrRegex(g), te = this.rules.other.fencesBeginRegex(g), ne = this.rules.other.headingBeginRegex(g), me = this.rules.other.htmlBeginRegex(g);
23106
+ c = t[0], e = e.substring(c.length);
23107
+ let g = t[2].split(`
23108
+ `, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), d = e.split(`
23109
+ `, 1)[0], R = !g.trim(), f = 0;
23110
+ if (this.options.pedantic ? (f = 2, p = g.trimStart()) : R ? f = t[1].length + 1 : (f = t[2].search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, p = g.slice(f), f += t[1].length), R && this.rules.other.blankLine.test(d) && (c += d + `
23111
+ `, e = e.substring(d.length + 1), l = true), !l) {
23112
+ let H = this.rules.other.nextBulletRegex(f), ee = this.rules.other.hrRegex(f), te = this.rules.other.fencesBeginRegex(f), ne = this.rules.other.headingBeginRegex(f), xe = this.rules.other.htmlBeginRegex(f);
23114
23113
  for (; e; ) {
23115
23114
  let Z = e.split(`
23116
23115
  `, 1)[0], A;
23117
- if (k = Z, this.options.pedantic ? (k = k.replace(this.rules.other.listReplaceNesting, " "), A = k) : A = k.replace(this.rules.other.tabCharGlobal, " "), te.test(k) || ne.test(k) || me.test(k) || H.test(k) || ee.test(k)) break;
23118
- if (A.search(this.rules.other.nonSpaceChar) >= g || !k.trim()) c += `
23119
- ` + A.slice(g);
23116
+ if (d = Z, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), A = d) : A = d.replace(this.rules.other.tabCharGlobal, " "), te.test(d) || ne.test(d) || xe.test(d) || H.test(d) || ee.test(d)) break;
23117
+ if (A.search(this.rules.other.nonSpaceChar) >= f || !d.trim()) p += `
23118
+ ` + A.slice(f);
23120
23119
  else {
23121
- if (x || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(f) || ne.test(f) || ee.test(f)) break;
23122
- c += `
23123
- ` + k;
23120
+ if (R || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(g) || ne.test(g) || ee.test(g)) break;
23121
+ p += `
23122
+ ` + d;
23124
23123
  }
23125
- !x && !k.trim() && (x = true), p += Z + `
23126
- `, e = e.substring(Z.length + 1), f = A.slice(g);
23124
+ !R && !d.trim() && (R = true), c += Z + `
23125
+ `, e = e.substring(Z.length + 1), g = A.slice(f);
23127
23126
  }
23128
23127
  }
23129
- i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(p) && (o = true));
23130
- let T = null, Y;
23131
- this.options.gfm && (T = this.rules.other.listIsTask.exec(c), T && (Y = T[0] !== "[ ] ", c = c.replace(this.rules.other.listReplaceTask, ""))), i.items.push({ type: "list_item", raw: p, task: !!T, checked: Y, loose: false, text: c, tokens: [] }), i.raw += p;
23128
+ i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(c) && (o = true));
23129
+ let O = null, Y;
23130
+ this.options.gfm && (O = this.rules.other.listIsTask.exec(p), O && (Y = O[0] !== "[ ] ", p = p.replace(this.rules.other.listReplaceTask, ""))), i.items.push({ type: "list_item", raw: c, task: !!O, checked: Y, loose: false, text: p, tokens: [] }), i.raw += c;
23132
23131
  }
23133
23132
  let a = i.items.at(-1);
23134
23133
  if (a) a.raw = a.raw.trimEnd(), a.text = a.text.trimEnd();
23135
23134
  else return;
23136
23135
  i.raw = i.raw.trimEnd();
23137
- for (let u = 0; u < i.items.length; u++) if (this.lexer.state.top = false, i.items[u].tokens = this.lexer.blockTokens(i.items[u].text, []), !i.loose) {
23138
- let p = i.items[u].tokens.filter((f) => f.type === "space"), c = p.length > 0 && p.some((f) => this.rules.other.anyLine.test(f.raw));
23139
- i.loose = c;
23136
+ for (let l = 0; l < i.items.length; l++) if (this.lexer.state.top = false, i.items[l].tokens = this.lexer.blockTokens(i.items[l].text, []), !i.loose) {
23137
+ let c = i.items[l].tokens.filter((g) => g.type === "space"), p = c.length > 0 && c.some((g) => this.rules.other.anyLine.test(g.raw));
23138
+ i.loose = p;
23140
23139
  }
23141
- if (i.loose) for (let u = 0; u < i.items.length; u++) i.items[u].loose = true;
23140
+ if (i.loose) for (let l = 0; l < i.items.length; l++) i.items[l].loose = true;
23142
23141
  return i;
23143
23142
  }
23144
23143
  }
@@ -23161,7 +23160,7 @@ ${c}` : c;
23161
23160
  if (n.length === r.length) {
23162
23161
  for (let o of r) this.rules.other.tableAlignRight.test(o) ? s.align.push("right") : this.rules.other.tableAlignCenter.test(o) ? s.align.push("center") : this.rules.other.tableAlignLeft.test(o) ? s.align.push("left") : s.align.push(null);
23163
23162
  for (let o = 0; o < n.length; o++) s.header.push({ text: n[o], tokens: this.lexer.inline(n[o]), header: true, align: s.align[o] });
23164
- for (let o of i) s.rows.push(V(o, s.header.length).map((a, u) => ({ text: a, tokens: this.lexer.inline(a), header: false, align: s.align[u] })));
23163
+ for (let o of i) s.rows.push(V(o, s.header.length).map((a, l) => ({ text: a, tokens: this.lexer.inline(a), header: false, align: s.align[l] })));
23165
23164
  return s;
23166
23165
  }
23167
23166
  }
@@ -23198,7 +23197,7 @@ ${c}` : c;
23198
23197
  let s = z(n.slice(0, -1), "\\");
23199
23198
  if ((n.length - s.length) % 2 === 0) return;
23200
23199
  } else {
23201
- let s = ge(t[2], "()");
23200
+ let s = fe(t[2], "()");
23202
23201
  if (s === -2) return;
23203
23202
  if (s > -1) {
23204
23203
  let a = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s;
@@ -23210,7 +23209,7 @@ ${c}` : c;
23210
23209
  let s = this.rules.other.pedanticHrefTitle.exec(r);
23211
23210
  s && (r = s[1], i = s[3]);
23212
23211
  } else i = t[3] ? t[3].slice(1, -1) : "";
23213
- return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r = r.slice(1) : r = r.slice(1, -1)), fe(t, { href: r && r.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
23212
+ return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r = r.slice(1) : r = r.slice(1, -1)), me(t, { href: r && r.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
23214
23213
  }
23215
23214
  }
23216
23215
  reflink(e, t) {
@@ -23221,32 +23220,32 @@ ${c}` : c;
23221
23220
  let s = n[0].charAt(0);
23222
23221
  return { type: "text", raw: s, text: s };
23223
23222
  }
23224
- return fe(n, i, n[0], this.lexer, this.rules);
23223
+ return me(n, i, n[0], this.lexer, this.rules);
23225
23224
  }
23226
23225
  }
23227
23226
  emStrong(e, t, n = "") {
23228
23227
  let r = this.rules.inline.emStrongLDelim.exec(e);
23229
23228
  if (!r || r[3] && n.match(this.rules.other.unicodeAlphaNumeric)) return;
23230
23229
  if (!(r[1] || r[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
23231
- let s = [...r[0]].length - 1, o, a, u = s, p = 0, c = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
23232
- for (c.lastIndex = 0, t = t.slice(-1 * e.length + s); (r = c.exec(t)) != null; ) {
23230
+ let s = [...r[0]].length - 1, o, a, l = s, c = 0, p = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
23231
+ for (p.lastIndex = 0, t = t.slice(-1 * e.length + s); (r = p.exec(t)) != null; ) {
23233
23232
  if (o = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !o) continue;
23234
23233
  if (a = [...o].length, r[3] || r[4]) {
23235
- u += a;
23234
+ l += a;
23236
23235
  continue;
23237
23236
  } else if ((r[5] || r[6]) && s % 3 && !((s + a) % 3)) {
23238
- p += a;
23237
+ c += a;
23239
23238
  continue;
23240
23239
  }
23241
- if (u -= a, u > 0) continue;
23242
- a = Math.min(a, a + u + p);
23243
- let f = [...r[0]][0].length, k = e.slice(0, s + r.index + f + a);
23240
+ if (l -= a, l > 0) continue;
23241
+ a = Math.min(a, a + l + c);
23242
+ let g = [...r[0]][0].length, d = e.slice(0, s + r.index + g + a);
23244
23243
  if (Math.min(s, a) % 2) {
23245
- let g = k.slice(1, -1);
23246
- return { type: "em", raw: k, text: g, tokens: this.lexer.inlineTokens(g) };
23244
+ let f = d.slice(1, -1);
23245
+ return { type: "em", raw: d, text: f, tokens: this.lexer.inlineTokens(f) };
23247
23246
  }
23248
- let x = k.slice(2, -2);
23249
- return { type: "strong", raw: k, text: x, tokens: this.lexer.inlineTokens(x) };
23247
+ let R = d.slice(2, -2);
23248
+ return { type: "strong", raw: d, text: R, tokens: this.lexer.inlineTokens(R) };
23250
23249
  }
23251
23250
  }
23252
23251
  }
@@ -23295,25 +23294,25 @@ ${c}` : c;
23295
23294
  }
23296
23295
  }
23297
23296
  };
23298
- var b = class l {
23297
+ var x = class u {
23299
23298
  constructor(e) {
23300
23299
  __publicField(this, "tokens");
23301
23300
  __publicField(this, "options");
23302
23301
  __publicField(this, "state");
23303
23302
  __publicField(this, "tokenizer");
23304
23303
  __publicField(this, "inlineQueue");
23305
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || O, this.options.tokenizer = this.options.tokenizer || new y(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
23306
- let t = { other: m, block: I.normal, inline: M.normal };
23307
- this.options.pedantic ? (t.block = I.pedantic, t.inline = M.pedantic) : this.options.gfm && (t.block = I.gfm, this.options.breaks ? t.inline = M.breaks : t.inline = M.gfm), this.tokenizer.rules = t;
23304
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new y(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
23305
+ let t = { other: m, block: C.normal, inline: M.normal };
23306
+ this.options.pedantic ? (t.block = C.pedantic, t.inline = M.pedantic) : this.options.gfm && (t.block = C.gfm, this.options.breaks ? t.inline = M.breaks : t.inline = M.gfm), this.tokenizer.rules = t;
23308
23307
  }
23309
23308
  static get rules() {
23310
- return { block: I, inline: M };
23309
+ return { block: C, inline: M };
23311
23310
  }
23312
23311
  static lex(e, t) {
23313
- return new l(t).lex(e);
23312
+ return new u(t).lex(e);
23314
23313
  }
23315
23314
  static lexInline(e, t) {
23316
- return new l(t).inlineTokens(e);
23315
+ return new u(t).inlineTokens(e);
23317
23316
  }
23318
23317
  lex(e) {
23319
23318
  e = e.replace(m.carriageReturn, `
@@ -23388,8 +23387,8 @@ var b = class l {
23388
23387
  let i = e;
23389
23388
  if (this.options.extensions?.startBlock) {
23390
23389
  let s = 1 / 0, o = e.slice(1), a;
23391
- this.options.extensions.startBlock.forEach((u) => {
23392
- a = u.call({ lexer: this }, o), typeof a == "number" && a >= 0 && (s = Math.min(s, a));
23390
+ this.options.extensions.startBlock.forEach((l) => {
23391
+ a = l.call({ lexer: this }, o), typeof a == "number" && a >= 0 && (s = Math.min(s, a));
23393
23392
  }), s < 1 / 0 && s >= 0 && (i = e.substring(0, s + 1));
23394
23393
  }
23395
23394
  if (this.state.top && (r = this.tokenizer.paragraph(i))) {
@@ -23435,7 +23434,7 @@ var b = class l {
23435
23434
  for (; e; ) {
23436
23435
  i || (s = ""), i = false;
23437
23436
  let o;
23438
- if (this.options.extensions?.inline?.some((u) => (o = u.call({ lexer: this }, e, t)) ? (e = e.substring(o.raw.length), t.push(o), true) : false)) continue;
23437
+ if (this.options.extensions?.inline?.some((l) => (o = l.call({ lexer: this }, e, t)) ? (e = e.substring(o.raw.length), t.push(o), true) : false)) continue;
23439
23438
  if (o = this.tokenizer.escape(e)) {
23440
23439
  e = e.substring(o.raw.length), t.push(o);
23441
23440
  continue;
@@ -23450,8 +23449,8 @@ var b = class l {
23450
23449
  }
23451
23450
  if (o = this.tokenizer.reflink(e, this.tokens.links)) {
23452
23451
  e = e.substring(o.raw.length);
23453
- let u = t.at(-1);
23454
- o.type === "text" && u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
23452
+ let l = t.at(-1);
23453
+ o.type === "text" && l?.type === "text" ? (l.raw += o.raw, l.text += o.text) : t.push(o);
23455
23454
  continue;
23456
23455
  }
23457
23456
  if (o = this.tokenizer.emStrong(e, n, s)) {
@@ -23480,23 +23479,23 @@ var b = class l {
23480
23479
  }
23481
23480
  let a = e;
23482
23481
  if (this.options.extensions?.startInline) {
23483
- let u = 1 / 0, p = e.slice(1), c;
23484
- this.options.extensions.startInline.forEach((f) => {
23485
- c = f.call({ lexer: this }, p), typeof c == "number" && c >= 0 && (u = Math.min(u, c));
23486
- }), u < 1 / 0 && u >= 0 && (a = e.substring(0, u + 1));
23482
+ let l = 1 / 0, c = e.slice(1), p;
23483
+ this.options.extensions.startInline.forEach((g) => {
23484
+ p = g.call({ lexer: this }, c), typeof p == "number" && p >= 0 && (l = Math.min(l, p));
23485
+ }), l < 1 / 0 && l >= 0 && (a = e.substring(0, l + 1));
23487
23486
  }
23488
23487
  if (o = this.tokenizer.inlineText(a)) {
23489
23488
  e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (s = o.raw.slice(-1)), i = true;
23490
- let u = t.at(-1);
23491
- u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
23489
+ let l = t.at(-1);
23490
+ l?.type === "text" ? (l.raw += o.raw, l.text += o.text) : t.push(o);
23492
23491
  continue;
23493
23492
  }
23494
23493
  if (e) {
23495
- let u = "Infinite loop on byte: " + e.charCodeAt(0);
23494
+ let l = "Infinite loop on byte: " + e.charCodeAt(0);
23496
23495
  if (this.options.silent) {
23497
- console.error(u);
23496
+ console.error(l);
23498
23497
  break;
23499
- } else throw new Error(u);
23498
+ } else throw new Error(l);
23500
23499
  }
23501
23500
  }
23502
23501
  return t;
@@ -23506,7 +23505,7 @@ var P = class {
23506
23505
  constructor(e) {
23507
23506
  __publicField(this, "options");
23508
23507
  __publicField(this, "parser");
23509
- this.options = e || O;
23508
+ this.options = e || T;
23510
23509
  }
23511
23510
  space(e) {
23512
23511
  return "";
@@ -23654,18 +23653,18 @@ var $ = class {
23654
23653
  return "";
23655
23654
  }
23656
23655
  };
23657
- var R = class l2 {
23656
+ var b = class u2 {
23658
23657
  constructor(e) {
23659
23658
  __publicField(this, "options");
23660
23659
  __publicField(this, "renderer");
23661
23660
  __publicField(this, "textRenderer");
23662
- this.options = e || O, this.options.renderer = this.options.renderer || new P(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $();
23661
+ this.options = e || T, this.options.renderer = this.options.renderer || new P(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $();
23663
23662
  }
23664
23663
  static parse(e, t) {
23665
- return new l2(t).parse(e);
23664
+ return new u2(t).parse(e);
23666
23665
  }
23667
23666
  static parseInline(e, t) {
23668
- return new l2(t).parseInline(e);
23667
+ return new u2(t).parseInline(e);
23669
23668
  }
23670
23669
  parse(e, t = true) {
23671
23670
  let n = "";
@@ -23803,7 +23802,7 @@ var S = (_a = class {
23803
23802
  constructor(e) {
23804
23803
  __publicField(this, "options");
23805
23804
  __publicField(this, "block");
23806
- this.options = e || O;
23805
+ this.options = e || T;
23807
23806
  }
23808
23807
  preprocess(e) {
23809
23808
  return e;
@@ -23818,10 +23817,10 @@ var S = (_a = class {
23818
23817
  return e;
23819
23818
  }
23820
23819
  provideLexer() {
23821
- return this.block ? b.lex : b.lexInline;
23820
+ return this.block ? x.lex : x.lexInline;
23822
23821
  }
23823
23822
  provideParser() {
23824
- return this.block ? R.parse : R.parseInline;
23823
+ return this.block ? b.parse : b.parseInline;
23825
23824
  }
23826
23825
  }, __publicField(_a, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField(_a, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _a);
23827
23826
  var B = class {
@@ -23830,10 +23829,10 @@ var B = class {
23830
23829
  __publicField(this, "options", this.setOptions);
23831
23830
  __publicField(this, "parse", this.parseMarkdown(true));
23832
23831
  __publicField(this, "parseInline", this.parseMarkdown(false));
23833
- __publicField(this, "Parser", R);
23832
+ __publicField(this, "Parser", b);
23834
23833
  __publicField(this, "Renderer", P);
23835
23834
  __publicField(this, "TextRenderer", $);
23836
- __publicField(this, "Lexer", b);
23835
+ __publicField(this, "Lexer", x);
23837
23836
  __publicField(this, "Tokenizer", y);
23838
23837
  __publicField(this, "Hooks", S);
23839
23838
  this.use(...e);
@@ -23886,10 +23885,10 @@ var B = class {
23886
23885
  for (let s in n.renderer) {
23887
23886
  if (!(s in i)) throw new Error(`renderer '${s}' does not exist`);
23888
23887
  if (["options", "parser"].includes(s)) continue;
23889
- let o = s, a = n.renderer[o], u = i[o];
23890
- i[o] = (...p) => {
23891
- let c = a.apply(i, p);
23892
- return c === false && (c = u.apply(i, p)), c || "";
23888
+ let o = s, a = n.renderer[o], l = i[o];
23889
+ i[o] = (...c) => {
23890
+ let p = a.apply(i, c);
23891
+ return p === false && (p = l.apply(i, c)), p || "";
23893
23892
  };
23894
23893
  }
23895
23894
  r.renderer = i;
@@ -23899,10 +23898,10 @@ var B = class {
23899
23898
  for (let s in n.tokenizer) {
23900
23899
  if (!(s in i)) throw new Error(`tokenizer '${s}' does not exist`);
23901
23900
  if (["options", "rules", "lexer"].includes(s)) continue;
23902
- let o = s, a = n.tokenizer[o], u = i[o];
23903
- i[o] = (...p) => {
23904
- let c = a.apply(i, p);
23905
- return c === false && (c = u.apply(i, p)), c;
23901
+ let o = s, a = n.tokenizer[o], l = i[o];
23902
+ i[o] = (...c) => {
23903
+ let p = a.apply(i, c);
23904
+ return p === false && (p = l.apply(i, c)), p;
23906
23905
  };
23907
23906
  }
23908
23907
  r.tokenizer = i;
@@ -23912,14 +23911,21 @@ var B = class {
23912
23911
  for (let s in n.hooks) {
23913
23912
  if (!(s in i)) throw new Error(`hook '${s}' does not exist`);
23914
23913
  if (["options", "block"].includes(s)) continue;
23915
- let o = s, a = n.hooks[o], u = i[o];
23916
- S.passThroughHooks.has(s) ? i[o] = (p) => {
23917
- if (this.defaults.async && S.passThroughHooksRespectAsync.has(s)) return Promise.resolve(a.call(i, p)).then((f) => u.call(i, f));
23918
- let c = a.call(i, p);
23919
- return u.call(i, c);
23920
- } : i[o] = (...p) => {
23921
- let c = a.apply(i, p);
23922
- return c === false && (c = u.apply(i, p)), c;
23914
+ let o = s, a = n.hooks[o], l = i[o];
23915
+ S.passThroughHooks.has(s) ? i[o] = (c) => {
23916
+ if (this.defaults.async && S.passThroughHooksRespectAsync.has(s)) return (async () => {
23917
+ let g = await a.call(i, c);
23918
+ return l.call(i, g);
23919
+ })();
23920
+ let p = a.call(i, c);
23921
+ return l.call(i, p);
23922
+ } : i[o] = (...c) => {
23923
+ if (this.defaults.async) return (async () => {
23924
+ let g = await a.apply(i, c);
23925
+ return g === false && (g = await l.apply(i, c)), g;
23926
+ })();
23927
+ let p = a.apply(i, c);
23928
+ return p === false && (p = l.apply(i, c)), p;
23923
23929
  };
23924
23930
  }
23925
23931
  r.hooks = i;
@@ -23938,10 +23944,10 @@ var B = class {
23938
23944
  return this.defaults = { ...this.defaults, ...e }, this;
23939
23945
  }
23940
23946
  lexer(e, t) {
23941
- return b.lex(e, t ?? this.defaults);
23947
+ return x.lex(e, t ?? this.defaults);
23942
23948
  }
23943
23949
  parser(e, t) {
23944
- return R.parse(e, t ?? this.defaults);
23950
+ return b.parse(e, t ?? this.defaults);
23945
23951
  }
23946
23952
  parseMarkdown(e) {
23947
23953
  return (n, r) => {
@@ -23949,17 +23955,20 @@ var B = class {
23949
23955
  if (this.defaults.async === true && i.async === false) return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
23950
23956
  if (typeof n > "u" || n === null) return o(new Error("marked(): input parameter is undefined or null"));
23951
23957
  if (typeof n != "string") return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
23952
- s.hooks && (s.hooks.options = s, s.hooks.block = e);
23953
- let a = s.hooks ? s.hooks.provideLexer() : e ? b.lex : b.lexInline, u = s.hooks ? s.hooks.provideParser() : e ? R.parse : R.parseInline;
23954
- if (s.async) return Promise.resolve(s.hooks ? s.hooks.preprocess(n) : n).then((p) => a(p, s)).then((p) => s.hooks ? s.hooks.processAllTokens(p) : p).then((p) => s.walkTokens ? Promise.all(this.walkTokens(p, s.walkTokens)).then(() => p) : p).then((p) => u(p, s)).then((p) => s.hooks ? s.hooks.postprocess(p) : p).catch(o);
23958
+ if (s.hooks && (s.hooks.options = s, s.hooks.block = e), s.async) return (async () => {
23959
+ let a = s.hooks ? await s.hooks.preprocess(n) : n, c = await (s.hooks ? await s.hooks.provideLexer() : e ? x.lex : x.lexInline)(a, s), p = s.hooks ? await s.hooks.processAllTokens(c) : c;
23960
+ s.walkTokens && await Promise.all(this.walkTokens(p, s.walkTokens));
23961
+ let d = await (s.hooks ? await s.hooks.provideParser() : e ? b.parse : b.parseInline)(p, s);
23962
+ return s.hooks ? await s.hooks.postprocess(d) : d;
23963
+ })().catch(o);
23955
23964
  try {
23956
23965
  s.hooks && (n = s.hooks.preprocess(n));
23957
- let p = a(n, s);
23958
- s.hooks && (p = s.hooks.processAllTokens(p)), s.walkTokens && this.walkTokens(p, s.walkTokens);
23959
- let c = u(p, s);
23960
- return s.hooks && (c = s.hooks.postprocess(c)), c;
23961
- } catch (p) {
23962
- return o(p);
23966
+ let l = (s.hooks ? s.hooks.provideLexer() : e ? x.lex : x.lexInline)(n, s);
23967
+ s.hooks && (l = s.hooks.processAllTokens(l)), s.walkTokens && this.walkTokens(l, s.walkTokens);
23968
+ let p = (s.hooks ? s.hooks.provideParser() : e ? b.parse : b.parseInline)(l, s);
23969
+ return s.hooks && (p = s.hooks.postprocess(p)), p;
23970
+ } catch (a) {
23971
+ return o(a);
23963
23972
  }
23964
23973
  };
23965
23974
  }
@@ -23976,38 +23985,38 @@ Please report this to https://github.com/markedjs/marked.`, e) {
23976
23985
  }
23977
23986
  };
23978
23987
  var _ = new B();
23979
- function d(l3, e) {
23980
- return _.parse(l3, e);
23981
- }
23982
- d.options = d.setOptions = function(l3) {
23983
- return _.setOptions(l3), d.defaults = _.defaults, G(d.defaults), d;
23984
- };
23985
- d.getDefaults = L;
23986
- d.defaults = O;
23987
- d.use = function(...l3) {
23988
- return _.use(...l3), d.defaults = _.defaults, G(d.defaults), d;
23989
- };
23990
- d.walkTokens = function(l3, e) {
23991
- return _.walkTokens(l3, e);
23992
- };
23993
- d.parseInline = _.parseInline;
23994
- d.Parser = R;
23995
- d.parser = R.parse;
23996
- d.Renderer = P;
23997
- d.TextRenderer = $;
23998
- d.Lexer = b;
23999
- d.lexer = b.lex;
24000
- d.Tokenizer = y;
24001
- d.Hooks = S;
24002
- d.parse = d;
24003
- d.options;
24004
- d.setOptions;
24005
- d.use;
24006
- d.walkTokens;
24007
- d.parseInline;
24008
- R.parse;
24009
- b.lex;
24010
- d.use({
23988
+ function k(u3, e) {
23989
+ return _.parse(u3, e);
23990
+ }
23991
+ k.options = k.setOptions = function(u3) {
23992
+ return _.setOptions(u3), k.defaults = _.defaults, G(k.defaults), k;
23993
+ };
23994
+ k.getDefaults = L;
23995
+ k.defaults = T;
23996
+ k.use = function(...u3) {
23997
+ return _.use(...u3), k.defaults = _.defaults, G(k.defaults), k;
23998
+ };
23999
+ k.walkTokens = function(u3, e) {
24000
+ return _.walkTokens(u3, e);
24001
+ };
24002
+ k.parseInline = _.parseInline;
24003
+ k.Parser = b;
24004
+ k.parser = b.parse;
24005
+ k.Renderer = P;
24006
+ k.TextRenderer = $;
24007
+ k.Lexer = x;
24008
+ k.lexer = x.lex;
24009
+ k.Tokenizer = y;
24010
+ k.Hooks = S;
24011
+ k.parse = k;
24012
+ k.options;
24013
+ k.setOptions;
24014
+ k.use;
24015
+ k.walkTokens;
24016
+ k.parseInline;
24017
+ b.parse;
24018
+ x.lex;
24019
+ k.use({
24011
24020
  breaks: false,
24012
24021
  // Use proper paragraphs, not <br> tags
24013
24022
  gfm: true
@@ -24018,7 +24027,7 @@ function createDocFromMarkdown(markdown, schema, options = {}) {
24018
24027
  return createDocFromHTML(html, schema, options);
24019
24028
  }
24020
24029
  function convertMarkdownToHTML(markdown) {
24021
- let html = d.parse(markdown, { async: false });
24030
+ let html = k.parse(markdown, { async: false });
24022
24031
  return html.replace(/<\/p>\n<ul>/g, "</p>\n<p>&nbsp;</p>\n<ul>").replace(/<\/p>\n<ol>/g, "</p>\n<p>&nbsp;</p>\n<ol>").replace(/<\/ul>\n<h/g, "</ul>\n<p>&nbsp;</p>\n<h").replace(/<\/ol>\n<h/g, "</ol>\n<p>&nbsp;</p>\n<h");
24023
24032
  }
24024
24033
  function processContent({ content, type: type2, schema }) {
@@ -24197,7 +24206,7 @@ const getBasicNumIdTag = (numId, abstractId) => {
24197
24206
  };
24198
24207
  const getNewListId = (editor, grouping = "definitions") => {
24199
24208
  const defs = editor.converter.numbering[grouping] || {};
24200
- const intKeys = Object.keys(defs).map((k) => Number(k)).filter((n) => Number.isInteger(n));
24209
+ const intKeys = Object.keys(defs).map((k2) => Number(k2)).filter((n) => Number.isInteger(n));
24201
24210
  const max2 = intKeys.length ? Math.max(...intKeys) : 0;
24202
24211
  return max2 + 1;
24203
24212
  };
@@ -24656,37 +24665,37 @@ const _NodeTranslator = class _NodeTranslator {
24656
24665
  /** @type {typeof TranslatorTypes} */
24657
24666
  __publicField(_NodeTranslator, "translatorTypes", TranslatorTypes);
24658
24667
  let NodeTranslator = _NodeTranslator;
24659
- const encode$1b = (attributes) => {
24668
+ const encode$1c = (attributes) => {
24660
24669
  return attributes["w:type"];
24661
24670
  };
24662
- const decode$13 = (attrs) => {
24671
+ const decode$14 = (attrs) => {
24663
24672
  const { lineBreakType } = attrs;
24664
24673
  return lineBreakType;
24665
24674
  };
24666
24675
  const attrConfig$G = Object.freeze({
24667
24676
  xmlName: "w:type",
24668
24677
  sdName: "lineBreakType",
24669
- encode: encode$1b,
24670
- decode: decode$13
24678
+ encode: encode$1c,
24679
+ decode: decode$14
24671
24680
  });
24672
- const encode$1a = (attributes) => {
24681
+ const encode$1b = (attributes) => {
24673
24682
  const xmlAttrValue = attributes["w:clear"];
24674
24683
  return xmlAttrValue;
24675
24684
  };
24676
- const decode$12 = (attrs) => {
24685
+ const decode$13 = (attrs) => {
24677
24686
  const { clear } = attrs;
24678
24687
  return clear;
24679
24688
  };
24680
24689
  const attrConfig$F = Object.freeze({
24681
24690
  xmlName: "w:clear",
24682
24691
  sdName: "clear",
24683
- encode: encode$1a,
24684
- decode: decode$12
24692
+ encode: encode$1b,
24693
+ decode: decode$13
24685
24694
  });
24686
- const validXmlAttributes$p = [attrConfig$G, attrConfig$F];
24687
- const XML_NODE_NAME$y = "w:br";
24688
- const SD_NODE_NAME$h = "lineBreak";
24689
- const encode$19 = (_2, encodedAttrs) => {
24695
+ const validXmlAttributes$q = [attrConfig$G, attrConfig$F];
24696
+ const XML_NODE_NAME$z = "w:br";
24697
+ const SD_NODE_NAME$i = "lineBreak";
24698
+ const encode$1a = (_2, encodedAttrs) => {
24690
24699
  const isPageBreak = encodedAttrs?.lineBreakType === "page";
24691
24700
  const translated = {
24692
24701
  type: isPageBreak ? "hardBreak" : "lineBreak"
@@ -24696,7 +24705,7 @@ const encode$19 = (_2, encodedAttrs) => {
24696
24705
  }
24697
24706
  return translated;
24698
24707
  };
24699
- const decode$11 = (params, decodedAttrs) => {
24708
+ const decode$12 = (params, decodedAttrs) => {
24700
24709
  const { node } = params;
24701
24710
  if (!node) return;
24702
24711
  const wBreak = { name: "w:br" };
@@ -24713,39 +24722,39 @@ const decode$11 = (params, decodedAttrs) => {
24713
24722
  };
24714
24723
  return translated;
24715
24724
  };
24716
- const config$x = {
24717
- xmlName: XML_NODE_NAME$y,
24718
- sdNodeOrKeyName: SD_NODE_NAME$h,
24725
+ const config$y = {
24726
+ xmlName: XML_NODE_NAME$z,
24727
+ sdNodeOrKeyName: SD_NODE_NAME$i,
24719
24728
  type: NodeTranslator.translatorTypes.NODE,
24720
- encode: encode$19,
24721
- decode: decode$11,
24722
- attributes: validXmlAttributes$p
24729
+ encode: encode$1a,
24730
+ decode: decode$12,
24731
+ attributes: validXmlAttributes$q
24723
24732
  };
24724
- const translator$1r = NodeTranslator.from(config$x);
24725
- const encode$18 = (attributes) => attributes?.["w:val"];
24726
- const decode$10 = (attrs) => attrs?.highlight;
24733
+ const translator$1s = NodeTranslator.from(config$y);
24734
+ const encode$19 = (attributes) => attributes?.["w:val"];
24735
+ const decode$11 = (attrs) => attrs?.highlight;
24727
24736
  const attrConfig$E = Object.freeze({
24728
24737
  xmlName: "w:val",
24729
24738
  sdName: "highlight",
24730
- encode: encode$18,
24731
- decode: decode$10
24739
+ encode: encode$19,
24740
+ decode: decode$11
24732
24741
  });
24733
- const validXmlAttributes$o = [attrConfig$E];
24734
- const XML_NODE_NAME$x = "w:highlight";
24742
+ const validXmlAttributes$p = [attrConfig$E];
24743
+ const XML_NODE_NAME$y = "w:highlight";
24735
24744
  const SD_ATTR_KEY$f = "highlight";
24736
24745
  const DISABLED_TOKENS = /* @__PURE__ */ new Set(["transparent", "none", "inherit"]);
24737
- const encode$17 = (params, encodedAttrs = {}) => {
24746
+ const encode$18 = (params, encodedAttrs = {}) => {
24738
24747
  const { nodes } = params;
24739
24748
  const node = nodes?.[0];
24740
24749
  const value = encodedAttrs.highlight ?? node?.attributes?.["w:val"];
24741
24750
  return {
24742
24751
  type: "attr",
24743
- xmlName: XML_NODE_NAME$x,
24752
+ xmlName: XML_NODE_NAME$y,
24744
24753
  sdNodeOrKeyName: SD_ATTR_KEY$f,
24745
24754
  attributes: { "w:val": value ?? null }
24746
24755
  };
24747
24756
  };
24748
- const decode$$ = (params) => {
24757
+ const decode$10 = (params) => {
24749
24758
  const attrs = params?.node?.attrs || {};
24750
24759
  const highlightValue = attrs.highlight ?? attrs.color ?? null;
24751
24760
  if (!highlightValue) return void 0;
@@ -24753,14 +24762,14 @@ const decode$$ = (params) => {
24753
24762
  if (!normalizedValue) return void 0;
24754
24763
  if (DISABLED_TOKENS.has(normalizedValue)) {
24755
24764
  return {
24756
- name: XML_NODE_NAME$x,
24765
+ name: XML_NODE_NAME$y,
24757
24766
  attributes: { "w:val": "none" }
24758
24767
  };
24759
24768
  }
24760
24769
  const keyword = getDocxHighlightKeywordFromHex(highlightValue);
24761
24770
  if (keyword) {
24762
24771
  return {
24763
- name: XML_NODE_NAME$x,
24772
+ name: XML_NODE_NAME$y,
24764
24773
  attributes: { "w:val": keyword }
24765
24774
  };
24766
24775
  }
@@ -24775,63 +24784,63 @@ const decode$$ = (params) => {
24775
24784
  }
24776
24785
  };
24777
24786
  };
24778
- const config$w = {
24779
- xmlName: XML_NODE_NAME$x,
24787
+ const config$x = {
24788
+ xmlName: XML_NODE_NAME$y,
24780
24789
  sdNodeOrKeyName: SD_ATTR_KEY$f,
24781
24790
  type: NodeTranslator.translatorTypes.ATTRIBUTE,
24782
- encode: encode$17,
24783
- decode: decode$$,
24784
- attributes: validXmlAttributes$o
24791
+ encode: encode$18,
24792
+ decode: decode$10,
24793
+ attributes: validXmlAttributes$p
24785
24794
  };
24786
- const translator$1q = NodeTranslator.from(config$w);
24787
- const encode$16 = (attributes) => {
24795
+ const translator$1r = NodeTranslator.from(config$x);
24796
+ const encode$17 = (attributes) => {
24788
24797
  return attributes["w:val"];
24789
24798
  };
24790
- const decode$_ = (attrs) => {
24799
+ const decode$$ = (attrs) => {
24791
24800
  const { tabSize } = attrs || {};
24792
24801
  return tabSize;
24793
24802
  };
24794
24803
  const attrConfig$D = Object.freeze({
24795
24804
  xmlName: "w:val",
24796
24805
  sdName: "tabSize",
24797
- encode: encode$16,
24798
- decode: decode$_
24806
+ encode: encode$17,
24807
+ decode: decode$$
24799
24808
  });
24800
- const encode$15 = (attributes) => {
24809
+ const encode$16 = (attributes) => {
24801
24810
  return attributes["w:leader"];
24802
24811
  };
24803
- const decode$Z = (attrs) => {
24812
+ const decode$_ = (attrs) => {
24804
24813
  const { leader } = attrs || {};
24805
24814
  return leader;
24806
24815
  };
24807
24816
  const attrConfig$C = Object.freeze({
24808
24817
  xmlName: "w:leader",
24809
24818
  sdName: "leader",
24810
- encode: encode$15,
24811
- decode: decode$Z
24819
+ encode: encode$16,
24820
+ decode: decode$_
24812
24821
  });
24813
- const encode$14 = (attributes) => {
24822
+ const encode$15 = (attributes) => {
24814
24823
  return attributes["w:pos"];
24815
24824
  };
24816
- const decode$Y = (attrs) => {
24825
+ const decode$Z = (attrs) => {
24817
24826
  const { pos } = attrs || {};
24818
24827
  return pos;
24819
24828
  };
24820
24829
  const attrConfig$B = Object.freeze({
24821
24830
  xmlName: "w:pos",
24822
24831
  sdName: "pos",
24823
- encode: encode$14,
24824
- decode: decode$Y
24832
+ encode: encode$15,
24833
+ decode: decode$Z
24825
24834
  });
24826
- const validXmlAttributes$n = [attrConfig$D, attrConfig$B, attrConfig$C];
24827
- const XML_NODE_NAME$w = "w:tab";
24828
- const SD_NODE_NAME$g = "tab";
24829
- const encode$13 = (_2, encodedAttrs = {}) => {
24835
+ const validXmlAttributes$o = [attrConfig$D, attrConfig$B, attrConfig$C];
24836
+ const XML_NODE_NAME$x = "w:tab";
24837
+ const SD_NODE_NAME$h = "tab";
24838
+ const encode$14 = (_2, encodedAttrs = {}) => {
24830
24839
  const translated = { type: "tab" };
24831
24840
  if (encodedAttrs) translated.attrs = { ...encodedAttrs };
24832
24841
  return translated;
24833
24842
  };
24834
- const decode$X = (params, decodedAttrs = {}) => {
24843
+ const decode$Y = (params, decodedAttrs = {}) => {
24835
24844
  const { node } = params || {};
24836
24845
  if (!node) return;
24837
24846
  const wTab = { name: "w:tab" };
@@ -24847,15 +24856,15 @@ const decode$X = (params, decodedAttrs = {}) => {
24847
24856
  }
24848
24857
  return translated;
24849
24858
  };
24850
- const config$v = {
24851
- xmlName: XML_NODE_NAME$w,
24852
- sdNodeOrKeyName: SD_NODE_NAME$g,
24859
+ const config$w = {
24860
+ xmlName: XML_NODE_NAME$x,
24861
+ sdNodeOrKeyName: SD_NODE_NAME$h,
24853
24862
  type: NodeTranslator.translatorTypes.NODE,
24854
- encode: encode$13,
24855
- decode: decode$X,
24856
- attributes: validXmlAttributes$n
24863
+ encode: encode$14,
24864
+ decode: decode$Y,
24865
+ attributes: validXmlAttributes$o
24857
24866
  };
24858
- const translator$1p = NodeTranslator.from(config$v);
24867
+ const translator$1q = NodeTranslator.from(config$w);
24859
24868
  const mergeTextNodes = (nodes) => {
24860
24869
  if (!nodes || !Array.isArray(nodes)) {
24861
24870
  return nodes;
@@ -24905,6 +24914,9 @@ const canMergeTextNodes = (nodeA, nodeB) => {
24905
24914
  const areAttrsEqual = (attrsA = {}, attrsB = {}) => {
24906
24915
  return objectIncludes(attrsA, attrsB);
24907
24916
  };
24917
+ const TrackInsertMarkName = "trackInsert";
24918
+ const TrackDeleteMarkName = "trackDelete";
24919
+ const TrackFormatMarkName = "trackFormat";
24908
24920
  function parseMarks(property, unknownMarks = [], docx = null) {
24909
24921
  const marks = [];
24910
24922
  const seen = /* @__PURE__ */ new Set();
@@ -25373,91 +25385,91 @@ const handleParagraphNode$1 = (params) => {
25373
25385
  }
25374
25386
  return schemaNode;
25375
25387
  };
25376
- const encode$12 = (attributes) => {
25388
+ const encode$13 = (attributes) => {
25377
25389
  return attributes["w:rsidDel"];
25378
25390
  };
25379
- const decode$W = (attrs) => {
25391
+ const decode$X = (attrs) => {
25380
25392
  return attrs.rsidDel;
25381
25393
  };
25382
25394
  const attrConfig$A = Object.freeze({
25383
25395
  xmlName: "w:rsidDel",
25384
25396
  sdName: "rsidDel",
25385
- encode: encode$12,
25386
- decode: decode$W
25397
+ encode: encode$13,
25398
+ decode: decode$X
25387
25399
  });
25388
- const encode$11 = (attributes) => {
25400
+ const encode$12 = (attributes) => {
25389
25401
  return attributes["w:rsidP"];
25390
25402
  };
25391
- const decode$V = (attrs) => {
25403
+ const decode$W = (attrs) => {
25392
25404
  return attrs.rsidP;
25393
25405
  };
25394
25406
  const attrConfig$z = Object.freeze({
25395
25407
  xmlName: "w:rsidP",
25396
25408
  sdName: "rsidP",
25397
- encode: encode$11,
25398
- decode: decode$V
25409
+ encode: encode$12,
25410
+ decode: decode$W
25399
25411
  });
25400
- const encode$10 = (attributes) => {
25412
+ const encode$11 = (attributes) => {
25401
25413
  return attributes["w:rsidR"];
25402
25414
  };
25403
- const decode$U = (attrs) => {
25415
+ const decode$V = (attrs) => {
25404
25416
  return attrs.rsidR;
25405
25417
  };
25406
25418
  const attrConfig$y = Object.freeze({
25407
25419
  xmlName: "w:rsidR",
25408
25420
  sdName: "rsidR",
25409
- encode: encode$10,
25410
- decode: decode$U
25421
+ encode: encode$11,
25422
+ decode: decode$V
25411
25423
  });
25412
- const encode$$ = (attributes) => {
25424
+ const encode$10 = (attributes) => {
25413
25425
  return attributes["w:rsidRPr"];
25414
25426
  };
25415
- const decode$T = (attrs) => {
25427
+ const decode$U = (attrs) => {
25416
25428
  return attrs.rsidRPr;
25417
25429
  };
25418
25430
  const attrConfig$x = Object.freeze({
25419
25431
  xmlName: "w:rsidRPr",
25420
25432
  sdName: "rsidRPr",
25421
- encode: encode$$,
25422
- decode: decode$T
25433
+ encode: encode$10,
25434
+ decode: decode$U
25423
25435
  });
25424
- const encode$_ = (attributes) => {
25436
+ const encode$$ = (attributes) => {
25425
25437
  return attributes["w:rsidRDefault"];
25426
25438
  };
25427
- const decode$S = (attrs) => {
25439
+ const decode$T = (attrs) => {
25428
25440
  return attrs.rsidRDefault;
25429
25441
  };
25430
25442
  const attrConfig$w = Object.freeze({
25431
25443
  xmlName: "w:rsidRDefault",
25432
25444
  sdName: "rsidRDefault",
25433
- encode: encode$_,
25434
- decode: decode$S
25445
+ encode: encode$$,
25446
+ decode: decode$T
25435
25447
  });
25436
- const encode$Z = (attributes) => {
25448
+ const encode$_ = (attributes) => {
25437
25449
  return attributes["w14:paraId"];
25438
25450
  };
25439
- const decode$R = (attrs) => {
25451
+ const decode$S = (attrs) => {
25440
25452
  return attrs.paraId;
25441
25453
  };
25442
25454
  const attrConfig$v = Object.freeze({
25443
25455
  xmlName: "w14:paraId",
25444
25456
  sdName: "paraId",
25445
- encode: encode$Z,
25446
- decode: decode$R
25457
+ encode: encode$_,
25458
+ decode: decode$S
25447
25459
  });
25448
- const encode$Y = (attributes) => {
25460
+ const encode$Z = (attributes) => {
25449
25461
  return attributes["w14:textId"];
25450
25462
  };
25451
- const decode$Q = (attrs) => {
25463
+ const decode$R = (attrs) => {
25452
25464
  return attrs.textId;
25453
25465
  };
25454
25466
  const attrConfig$u = Object.freeze({
25455
25467
  xmlName: "w14:textId",
25456
25468
  sdName: "textId",
25457
- encode: encode$Y,
25458
- decode: decode$Q
25469
+ encode: encode$Z,
25470
+ decode: decode$R
25459
25471
  });
25460
- const validXmlAttributes$m = [
25472
+ const validXmlAttributes$n = [
25461
25473
  attrConfig$v,
25462
25474
  attrConfig$u,
25463
25475
  attrConfig$y,
@@ -25466,9 +25478,9 @@ const validXmlAttributes$m = [
25466
25478
  attrConfig$x,
25467
25479
  attrConfig$A
25468
25480
  ];
25469
- const XML_NODE_NAME$v = "w:p";
25470
- const SD_NODE_NAME$f = "paragraph";
25471
- const encode$X = (params, encodedAttrs = {}) => {
25481
+ const XML_NODE_NAME$w = "w:p";
25482
+ const SD_NODE_NAME$g = "paragraph";
25483
+ const encode$Y = (params, encodedAttrs = {}) => {
25472
25484
  const node = handleParagraphNode$1(params);
25473
25485
  if (!node) return void 0;
25474
25486
  if (encodedAttrs && Object.keys(encodedAttrs).length) {
@@ -25476,7 +25488,7 @@ const encode$X = (params, encodedAttrs = {}) => {
25476
25488
  }
25477
25489
  return node;
25478
25490
  };
25479
- const decode$P = (params, decodedAttrs = {}) => {
25491
+ const decode$Q = (params, decodedAttrs = {}) => {
25480
25492
  const translated = translateParagraphNode(params);
25481
25493
  if (!translated) return void 0;
25482
25494
  if (decodedAttrs && Object.keys(decodedAttrs).length) {
@@ -25484,16 +25496,16 @@ const decode$P = (params, decodedAttrs = {}) => {
25484
25496
  }
25485
25497
  return translated;
25486
25498
  };
25487
- const config$u = {
25488
- xmlName: XML_NODE_NAME$v,
25489
- sdNodeOrKeyName: SD_NODE_NAME$f,
25499
+ const config$v = {
25500
+ xmlName: XML_NODE_NAME$w,
25501
+ sdNodeOrKeyName: SD_NODE_NAME$g,
25490
25502
  type: NodeTranslator.translatorTypes.NODE,
25491
- encode: encode$X,
25492
- decode: decode$P,
25493
- attributes: validXmlAttributes$m
25503
+ encode: encode$Y,
25504
+ decode: decode$Q,
25505
+ attributes: validXmlAttributes$n
25494
25506
  };
25495
- const translator$1o = NodeTranslator.from(config$u);
25496
- const encode$W = (attributes) => {
25507
+ const translator$1p = NodeTranslator.from(config$v);
25508
+ const encode$X = (attributes) => {
25497
25509
  const raw = attributes?.["w:val"];
25498
25510
  if (raw === void 0 || raw === null) return void 0;
25499
25511
  if (typeof raw === "boolean") return raw;
@@ -25503,20 +25515,20 @@ const encode$W = (attributes) => {
25503
25515
  if (val === "1" || val === "true" || val === "on") return true;
25504
25516
  return void 0;
25505
25517
  };
25506
- const decode$O = (runProps) => {
25518
+ const decode$P = (runProps) => {
25507
25519
  if (runProps?.bold === false) return "0";
25508
25520
  return void 0;
25509
25521
  };
25510
25522
  const attrConfig$t = Object.freeze({
25511
25523
  xmlName: "w:val",
25512
25524
  sdName: "bold",
25513
- encode: encode$W,
25514
- decode: decode$O
25525
+ encode: encode$X,
25526
+ decode: decode$P
25515
25527
  });
25516
- const validXmlAttributes$l = [attrConfig$t];
25517
- const XML_NODE_NAME$u = "w:b";
25528
+ const validXmlAttributes$m = [attrConfig$t];
25529
+ const XML_NODE_NAME$v = "w:b";
25518
25530
  const SD_ATTR_KEY$e = "bold";
25519
- const encode$V = (params, encodedAttrs = {}) => {
25531
+ const encode$W = (params, encodedAttrs = {}) => {
25520
25532
  const { nodes } = params;
25521
25533
  const node = nodes[0];
25522
25534
  if (!node) return void 0;
@@ -25528,85 +25540,85 @@ const encode$V = (params, encodedAttrs = {}) => {
25528
25540
  else attributes = node.attributes || {};
25529
25541
  return {
25530
25542
  type: "attr",
25531
- xmlName: XML_NODE_NAME$u,
25543
+ xmlName: XML_NODE_NAME$v,
25532
25544
  sdNodeOrKeyName: SD_ATTR_KEY$e,
25533
25545
  attributes
25534
25546
  };
25535
25547
  };
25536
- const config$t = {
25537
- xmlName: XML_NODE_NAME$u,
25548
+ const config$u = {
25549
+ xmlName: XML_NODE_NAME$v,
25538
25550
  sdNodeOrKeyName: SD_ATTR_KEY$e,
25539
25551
  type: NodeTranslator.translatorTypes.ATTRIBUTE,
25540
- encode: encode$V,
25541
- attributes: validXmlAttributes$l
25552
+ encode: encode$W,
25553
+ attributes: validXmlAttributes$m
25542
25554
  };
25543
- const translator$1n = NodeTranslator.from(config$t);
25544
- const XML_NODE_NAME$t = "w:i";
25555
+ const translator$1o = NodeTranslator.from(config$u);
25556
+ const XML_NODE_NAME$u = "w:i";
25545
25557
  const SD_ATTR_KEY$d = "italic";
25546
- const encode$U = (params) => {
25558
+ const encode$V = (params) => {
25547
25559
  const { nodes } = params;
25548
25560
  const node = nodes?.[0];
25549
25561
  if (!node) return void 0;
25550
25562
  return {
25551
25563
  type: "attr",
25552
- xmlName: XML_NODE_NAME$t,
25564
+ xmlName: XML_NODE_NAME$u,
25553
25565
  sdNodeOrKeyName: SD_ATTR_KEY$d,
25554
25566
  attributes: {
25555
25567
  "w:val": node.attributes?.["w:val"] ?? null
25556
25568
  }
25557
25569
  };
25558
25570
  };
25559
- const config$s = {
25560
- xmlName: XML_NODE_NAME$t,
25571
+ const config$t = {
25572
+ xmlName: XML_NODE_NAME$u,
25561
25573
  sdNodeOrKeyName: SD_ATTR_KEY$d,
25562
25574
  type: NodeTranslator.translatorTypes.ATTRIBUTE,
25563
- encode: encode$U
25575
+ encode: encode$V
25564
25576
  };
25565
- const translator$1m = NodeTranslator.from(config$s);
25566
- const encode$T = (attributes) => attributes?.["w:val"];
25567
- const decode$N = (attrs) => attrs?.underline;
25577
+ const translator$1n = NodeTranslator.from(config$t);
25578
+ const encode$U = (attributes) => attributes?.["w:val"];
25579
+ const decode$O = (attrs) => attrs?.underline;
25568
25580
  const attrConfig$s = Object.freeze({
25569
25581
  xmlName: "w:val",
25570
25582
  sdName: "underline",
25571
- encode: encode$T,
25572
- decode: decode$N
25583
+ encode: encode$U,
25584
+ decode: decode$O
25573
25585
  });
25574
- const encode$S = (attributes) => attributes?.["w:color"];
25575
- const decode$M = (attrs) => attrs?.color;
25586
+ const encode$T = (attributes) => attributes?.["w:color"];
25587
+ const decode$N = (attrs) => attrs?.color;
25576
25588
  const attrConfig$r = Object.freeze({
25577
25589
  xmlName: "w:color",
25578
25590
  sdName: "color",
25579
- encode: encode$S,
25580
- decode: decode$M
25591
+ encode: encode$T,
25592
+ decode: decode$N
25581
25593
  });
25582
- const encode$R = (attributes) => attributes?.["w:themeColor"];
25583
- const decode$L = (attrs) => attrs?.themeColor;
25594
+ const encode$S = (attributes) => attributes?.["w:themeColor"];
25595
+ const decode$M = (attrs) => attrs?.themeColor;
25584
25596
  const attrConfig$q = Object.freeze({
25585
25597
  xmlName: "w:themeColor",
25586
25598
  sdName: "themeColor",
25587
- encode: encode$R,
25588
- decode: decode$L
25599
+ encode: encode$S,
25600
+ decode: decode$M
25589
25601
  });
25590
- const encode$Q = (attributes) => attributes?.["w:themeTint"];
25591
- const decode$K = (attrs) => attrs?.themeTint;
25602
+ const encode$R = (attributes) => attributes?.["w:themeTint"];
25603
+ const decode$L = (attrs) => attrs?.themeTint;
25592
25604
  const attrConfig$p = Object.freeze({
25593
25605
  xmlName: "w:themeTint",
25594
25606
  sdName: "themeTint",
25595
- encode: encode$Q,
25596
- decode: decode$K
25607
+ encode: encode$R,
25608
+ decode: decode$L
25597
25609
  });
25598
- const encode$P = (attributes) => attributes?.["w:themeShade"];
25599
- const decode$J = (attrs) => attrs?.themeShade;
25610
+ const encode$Q = (attributes) => attributes?.["w:themeShade"];
25611
+ const decode$K = (attrs) => attrs?.themeShade;
25600
25612
  const attrConfig$o = Object.freeze({
25601
25613
  xmlName: "w:themeShade",
25602
25614
  sdName: "themeShade",
25603
- encode: encode$P,
25604
- decode: decode$J
25615
+ encode: encode$Q,
25616
+ decode: decode$K
25605
25617
  });
25606
- const validXmlAttributes$k = [attrConfig$s, attrConfig$r, attrConfig$q, attrConfig$p, attrConfig$o];
25607
- const XML_NODE_NAME$s = "w:u";
25618
+ const validXmlAttributes$l = [attrConfig$s, attrConfig$r, attrConfig$q, attrConfig$p, attrConfig$o];
25619
+ const XML_NODE_NAME$t = "w:u";
25608
25620
  const SD_ATTR_KEY$c = "underline";
25609
- const encode$O = (params, encodedAttrs = {}) => {
25621
+ const encode$P = (params, encodedAttrs = {}) => {
25610
25622
  const { nodes } = params;
25611
25623
  const node = nodes?.[0];
25612
25624
  const sourceAttrs = node?.attributes || {};
@@ -25622,12 +25634,12 @@ const encode$O = (params, encodedAttrs = {}) => {
25622
25634
  if (themeShade !== void 0 && themeShade !== null) attributes["w:themeShade"] = themeShade;
25623
25635
  return {
25624
25636
  type: "attr",
25625
- xmlName: XML_NODE_NAME$s,
25637
+ xmlName: XML_NODE_NAME$t,
25626
25638
  sdNodeOrKeyName: SD_ATTR_KEY$c,
25627
25639
  attributes
25628
25640
  };
25629
25641
  };
25630
- const decode$I = (params) => {
25642
+ const decode$J = (params) => {
25631
25643
  const attrs = params?.node?.attrs || {};
25632
25644
  const underlineType = attrs.underlineType ?? attrs.underline ?? null;
25633
25645
  const color = attrs.underlineColor ?? attrs.color ?? null;
@@ -25645,20 +25657,20 @@ const decode$I = (params) => {
25645
25657
  if (themeTint) attributes["w:themeTint"] = themeTint;
25646
25658
  if (themeShade) attributes["w:themeShade"] = themeShade;
25647
25659
  return {
25648
- name: XML_NODE_NAME$s,
25660
+ name: XML_NODE_NAME$t,
25649
25661
  attributes
25650
25662
  };
25651
25663
  };
25652
- const config$r = {
25653
- xmlName: XML_NODE_NAME$s,
25664
+ const config$s = {
25665
+ xmlName: XML_NODE_NAME$t,
25654
25666
  sdNodeOrKeyName: SD_ATTR_KEY$c,
25655
25667
  type: NodeTranslator.translatorTypes.ATTRIBUTE,
25656
- encode: encode$O,
25657
- decode: decode$I,
25658
- attributes: validXmlAttributes$k
25668
+ encode: encode$P,
25669
+ decode: decode$J,
25670
+ attributes: validXmlAttributes$l
25659
25671
  };
25660
- const translator$1l = NodeTranslator.from(config$r);
25661
- const encode$N = (attributes) => {
25672
+ const translator$1m = NodeTranslator.from(config$s);
25673
+ const encode$O = (attributes) => {
25662
25674
  const raw = attributes?.["w:val"];
25663
25675
  if (raw === void 0 || raw === null) return void 0;
25664
25676
  if (typeof raw === "boolean") return raw;
@@ -25668,20 +25680,20 @@ const encode$N = (attributes) => {
25668
25680
  if (val === "1" || val === "true" || val === "on") return true;
25669
25681
  return void 0;
25670
25682
  };
25671
- const decode$H = (attrs) => {
25683
+ const decode$I = (attrs) => {
25672
25684
  if (attrs?.strike === false) return "0";
25673
25685
  return void 0;
25674
25686
  };
25675
25687
  const attrConfig$n = Object.freeze({
25676
25688
  xmlName: "w:val",
25677
25689
  sdName: "strike",
25678
- encode: encode$N,
25679
- decode: decode$H
25690
+ encode: encode$O,
25691
+ decode: decode$I
25680
25692
  });
25681
- const validXmlAttributes$j = [attrConfig$n];
25682
- const XML_NODE_NAME$r = "w:strike";
25693
+ const validXmlAttributes$k = [attrConfig$n];
25694
+ const XML_NODE_NAME$s = "w:strike";
25683
25695
  const SD_ATTR_KEY$b = "strike";
25684
- const encode$M = (params, encodedAttrs = {}) => {
25696
+ const encode$N = (params, encodedAttrs = {}) => {
25685
25697
  const { nodes } = params;
25686
25698
  const node = nodes?.[0];
25687
25699
  if (!node) return void 0;
@@ -25694,55 +25706,55 @@ const encode$M = (params, encodedAttrs = {}) => {
25694
25706
  else if (val === true && attributes["w:val"] === void 0) delete attributes["w:val"];
25695
25707
  return {
25696
25708
  type: "attr",
25697
- xmlName: XML_NODE_NAME$r,
25709
+ xmlName: XML_NODE_NAME$s,
25698
25710
  sdNodeOrKeyName: SD_ATTR_KEY$b,
25699
25711
  attributes
25700
25712
  };
25701
25713
  };
25702
- const config$q = {
25703
- xmlName: XML_NODE_NAME$r,
25714
+ const config$r = {
25715
+ xmlName: XML_NODE_NAME$s,
25704
25716
  sdNodeOrKeyName: SD_ATTR_KEY$b,
25705
25717
  type: NodeTranslator.translatorTypes.ATTRIBUTE,
25706
- encode: encode$M,
25707
- attributes: validXmlAttributes$j
25718
+ encode: encode$N,
25719
+ attributes: validXmlAttributes$k
25708
25720
  };
25709
- const translator$1k = NodeTranslator.from(config$q);
25710
- const encode$L = (attributes) => attributes?.["w:val"];
25711
- const decode$G = (attrs) => attrs?.color;
25721
+ const translator$1l = NodeTranslator.from(config$r);
25722
+ const encode$M = (attributes) => attributes?.["w:val"];
25723
+ const decode$H = (attrs) => attrs?.color;
25712
25724
  const attrConfig$m = Object.freeze({
25713
25725
  xmlName: "w:val",
25714
25726
  sdName: "color",
25715
- encode: encode$L,
25716
- decode: decode$G
25727
+ encode: encode$M,
25728
+ decode: decode$H
25717
25729
  });
25718
- const encode$K = (attributes) => attributes?.["w:themeColor"];
25719
- const decode$F = (attrs) => attrs?.themeColor;
25730
+ const encode$L = (attributes) => attributes?.["w:themeColor"];
25731
+ const decode$G = (attrs) => attrs?.themeColor;
25720
25732
  const attrConfig$l = Object.freeze({
25721
25733
  xmlName: "w:themeColor",
25722
25734
  sdName: "themeColor",
25723
- encode: encode$K,
25724
- decode: decode$F
25735
+ encode: encode$L,
25736
+ decode: decode$G
25725
25737
  });
25726
- const encode$J = (attributes) => attributes?.["w:themeTint"];
25727
- const decode$E = (attrs) => attrs?.themeTint;
25738
+ const encode$K = (attributes) => attributes?.["w:themeTint"];
25739
+ const decode$F = (attrs) => attrs?.themeTint;
25728
25740
  const attrConfig$k = Object.freeze({
25729
25741
  xmlName: "w:themeTint",
25730
25742
  sdName: "themeTint",
25731
- encode: encode$J,
25732
- decode: decode$E
25743
+ encode: encode$K,
25744
+ decode: decode$F
25733
25745
  });
25734
- const encode$I = (attributes) => attributes?.["w:themeShade"];
25735
- const decode$D = (attrs) => attrs?.themeShade;
25746
+ const encode$J = (attributes) => attributes?.["w:themeShade"];
25747
+ const decode$E = (attrs) => attrs?.themeShade;
25736
25748
  const attrConfig$j = Object.freeze({
25737
25749
  xmlName: "w:themeShade",
25738
25750
  sdName: "themeShade",
25739
- encode: encode$I,
25740
- decode: decode$D
25751
+ encode: encode$J,
25752
+ decode: decode$E
25741
25753
  });
25742
- const validXmlAttributes$i = [attrConfig$m, attrConfig$l, attrConfig$k, attrConfig$j];
25743
- const XML_NODE_NAME$q = "w:color";
25754
+ const validXmlAttributes$j = [attrConfig$m, attrConfig$l, attrConfig$k, attrConfig$j];
25755
+ const XML_NODE_NAME$r = "w:color";
25744
25756
  const SD_ATTR_KEY$a = "color";
25745
- const encode$H = (params, encodedAttrs = {}) => {
25757
+ const encode$I = (params, encodedAttrs = {}) => {
25746
25758
  const { nodes } = params;
25747
25759
  const node = nodes?.[0];
25748
25760
  const sourceAttrs = node?.attributes || {};
@@ -25757,63 +25769,63 @@ const encode$H = (params, encodedAttrs = {}) => {
25757
25769
  if (themeShade !== void 0 && themeShade !== null) attributes["w:themeShade"] = themeShade;
25758
25770
  return {
25759
25771
  type: "attr",
25760
- xmlName: XML_NODE_NAME$q,
25772
+ xmlName: XML_NODE_NAME$r,
25761
25773
  sdNodeOrKeyName: SD_ATTR_KEY$a,
25762
25774
  attributes
25763
25775
  };
25764
25776
  };
25765
- const config$p = {
25766
- xmlName: XML_NODE_NAME$q,
25777
+ const config$q = {
25778
+ xmlName: XML_NODE_NAME$r,
25767
25779
  sdNodeOrKeyName: SD_ATTR_KEY$a,
25768
25780
  type: NodeTranslator.translatorTypes.ATTRIBUTE,
25769
- encode: encode$H,
25770
- attributes: validXmlAttributes$i
25781
+ encode: encode$I,
25782
+ attributes: validXmlAttributes$j
25771
25783
  };
25772
- const translator$1j = NodeTranslator.from(config$p);
25773
- const encode$G = (attributes) => attributes?.["w:eastAsia"];
25774
- const decode$C = (attrs) => attrs?.eastAsia;
25784
+ const translator$1k = NodeTranslator.from(config$q);
25785
+ const encode$H = (attributes) => attributes?.["w:eastAsia"];
25786
+ const decode$D = (attrs) => attrs?.eastAsia;
25775
25787
  const attrConfig$i = Object.freeze({
25776
25788
  xmlName: "w:eastAsia",
25777
25789
  sdName: "eastAsia",
25778
- encode: encode$G,
25779
- decode: decode$C
25790
+ encode: encode$H,
25791
+ decode: decode$D
25780
25792
  });
25781
- const encode$F = (attributes) => attributes?.["w:ascii"];
25782
- const decode$B = (attrs) => attrs?.ascii;
25793
+ const encode$G = (attributes) => attributes?.["w:ascii"];
25794
+ const decode$C = (attrs) => attrs?.ascii;
25783
25795
  const attrConfig$h = Object.freeze({
25784
25796
  xmlName: "w:ascii",
25785
25797
  sdName: "ascii",
25786
- encode: encode$F,
25787
- decode: decode$B
25798
+ encode: encode$G,
25799
+ decode: decode$C
25788
25800
  });
25789
- const encode$E = (attributes) => attributes?.["w:hAnsi"];
25790
- const decode$A = (attrs) => attrs?.hAnsi;
25801
+ const encode$F = (attributes) => attributes?.["w:hAnsi"];
25802
+ const decode$B = (attrs) => attrs?.hAnsi;
25791
25803
  const attrConfig$g = Object.freeze({
25792
25804
  xmlName: "w:hAnsi",
25793
25805
  sdName: "hAnsi",
25794
- encode: encode$E,
25795
- decode: decode$A
25806
+ encode: encode$F,
25807
+ decode: decode$B
25796
25808
  });
25797
- const encode$D = (attributes) => attributes?.["w:cs"];
25798
- const decode$z = (attrs) => attrs?.cs;
25809
+ const encode$E = (attributes) => attributes?.["w:cs"];
25810
+ const decode$A = (attrs) => attrs?.cs;
25799
25811
  const attrConfig$f = Object.freeze({
25800
25812
  xmlName: "w:cs",
25801
25813
  sdName: "cs",
25802
- encode: encode$D,
25803
- decode: decode$z
25814
+ encode: encode$E,
25815
+ decode: decode$A
25804
25816
  });
25805
- const encode$C = (attributes) => attributes?.["w:val"];
25806
- const decode$y = (attrs) => attrs?.value;
25817
+ const encode$D = (attributes) => attributes?.["w:val"];
25818
+ const decode$z = (attrs) => attrs?.value;
25807
25819
  const attrConfig$e = Object.freeze({
25808
25820
  xmlName: "w:val",
25809
25821
  sdName: "value",
25810
- encode: encode$C,
25811
- decode: decode$y
25822
+ encode: encode$D,
25823
+ decode: decode$z
25812
25824
  });
25813
- const validXmlAttributes$h = [attrConfig$i, attrConfig$h, attrConfig$g, attrConfig$f, attrConfig$e];
25814
- const XML_NODE_NAME$p = "w:rFonts";
25825
+ const validXmlAttributes$i = [attrConfig$i, attrConfig$h, attrConfig$g, attrConfig$f, attrConfig$e];
25826
+ const XML_NODE_NAME$q = "w:rFonts";
25815
25827
  const SD_ATTR_KEY$9 = "fontFamily";
25816
- const encode$B = (params, encodedAttrs = {}) => {
25828
+ const encode$C = (params, encodedAttrs = {}) => {
25817
25829
  const { nodes } = params;
25818
25830
  const node = nodes?.[0];
25819
25831
  const sourceAttrs = node?.attributes || {};
@@ -25847,109 +25859,109 @@ const encode$B = (params, encodedAttrs = {}) => {
25847
25859
  }
25848
25860
  return {
25849
25861
  type: "attr",
25850
- xmlName: XML_NODE_NAME$p,
25862
+ xmlName: XML_NODE_NAME$q,
25851
25863
  sdNodeOrKeyName: SD_ATTR_KEY$9,
25852
25864
  attributes
25853
25865
  };
25854
25866
  };
25855
- const config$o = {
25856
- xmlName: XML_NODE_NAME$p,
25867
+ const config$p = {
25868
+ xmlName: XML_NODE_NAME$q,
25857
25869
  sdNodeOrKeyName: SD_ATTR_KEY$9,
25858
25870
  type: NodeTranslator.translatorTypes.ATTRIBUTE,
25859
- encode: encode$B,
25860
- attributes: validXmlAttributes$h
25871
+ encode: encode$C,
25872
+ attributes: validXmlAttributes$i
25861
25873
  };
25862
- const translator$1i = NodeTranslator.from(config$o);
25863
- const encode$A = (attributes) => attributes?.["w:val"];
25864
- const decode$x = (attrs) => attrs?.styleId;
25874
+ const translator$1j = NodeTranslator.from(config$p);
25875
+ const encode$B = (attributes) => attributes?.["w:val"];
25876
+ const decode$y = (attrs) => attrs?.styleId;
25865
25877
  const attrConfig$d = Object.freeze({
25866
25878
  xmlName: "w:val",
25867
25879
  sdName: "styleId",
25868
- encode: encode$A,
25869
- decode: decode$x
25880
+ encode: encode$B,
25881
+ decode: decode$y
25870
25882
  });
25871
- const validXmlAttributes$g = [attrConfig$d];
25872
- const XML_NODE_NAME$o = "w:rStyle";
25883
+ const validXmlAttributes$h = [attrConfig$d];
25884
+ const XML_NODE_NAME$p = "w:rStyle";
25873
25885
  const SD_ATTR_KEY$8 = "styleId";
25874
- const encode$z = (params, encodedAttrs = {}) => {
25886
+ const encode$A = (params, encodedAttrs = {}) => {
25875
25887
  const { nodes } = params;
25876
25888
  const node = nodes?.[0];
25877
25889
  const value = encodedAttrs.styleId ?? node?.attributes?.["w:val"];
25878
25890
  return {
25879
25891
  type: "attr",
25880
- xmlName: XML_NODE_NAME$o,
25892
+ xmlName: XML_NODE_NAME$p,
25881
25893
  sdNodeOrKeyName: SD_ATTR_KEY$8,
25882
25894
  attributes: { "w:val": value ?? null }
25883
25895
  };
25884
25896
  };
25885
- const config$n = {
25886
- xmlName: XML_NODE_NAME$o,
25897
+ const config$o = {
25898
+ xmlName: XML_NODE_NAME$p,
25887
25899
  sdNodeOrKeyName: SD_ATTR_KEY$8,
25888
25900
  type: NodeTranslator.translatorTypes.ATTRIBUTE,
25889
- encode: encode$z,
25890
- attributes: validXmlAttributes$g
25901
+ encode: encode$A,
25902
+ attributes: validXmlAttributes$h
25891
25903
  };
25892
- const translator$1h = NodeTranslator.from(config$n);
25893
- const encode$y = (attributes) => attributes?.["w:val"];
25894
- const decode$w = (attrs) => attrs?.fontSize;
25904
+ const translator$1i = NodeTranslator.from(config$o);
25905
+ const encode$z = (attributes) => attributes?.["w:val"];
25906
+ const decode$x = (attrs) => attrs?.fontSize;
25895
25907
  const attrConfig$c = Object.freeze({
25896
25908
  xmlName: "w:val",
25897
25909
  sdName: "fontSize",
25898
- encode: encode$y,
25899
- decode: decode$w
25910
+ encode: encode$z,
25911
+ decode: decode$x
25900
25912
  });
25901
- const validXmlAttributes$f = [attrConfig$c];
25902
- const XML_NODE_NAME$n = "w:sz";
25913
+ const validXmlAttributes$g = [attrConfig$c];
25914
+ const XML_NODE_NAME$o = "w:sz";
25903
25915
  const SD_ATTR_KEY$7 = "fontSize";
25904
- const encode$x = (params, encodedAttrs = {}) => {
25916
+ const encode$y = (params, encodedAttrs = {}) => {
25905
25917
  const { nodes } = params;
25906
25918
  const node = nodes?.[0];
25907
25919
  const value = encodedAttrs.fontSize ?? node?.attributes?.["w:val"];
25908
25920
  return {
25909
25921
  type: "attr",
25910
- xmlName: XML_NODE_NAME$n,
25922
+ xmlName: XML_NODE_NAME$o,
25911
25923
  sdNodeOrKeyName: SD_ATTR_KEY$7,
25912
25924
  attributes: { "w:val": value ?? null }
25913
25925
  };
25914
25926
  };
25915
- const config$m = {
25916
- xmlName: XML_NODE_NAME$n,
25927
+ const config$n = {
25928
+ xmlName: XML_NODE_NAME$o,
25917
25929
  sdNodeOrKeyName: SD_ATTR_KEY$7,
25918
25930
  type: NodeTranslator.translatorTypes.ATTRIBUTE,
25919
- encode: encode$x,
25920
- attributes: validXmlAttributes$f
25931
+ encode: encode$y,
25932
+ attributes: validXmlAttributes$g
25921
25933
  };
25922
- const translator$1g = NodeTranslator.from(config$m);
25923
- const encode$w = (attributes) => attributes?.["w:val"];
25924
- const decode$v = (attrs) => attrs?.fontSizeCs;
25934
+ const translator$1h = NodeTranslator.from(config$n);
25935
+ const encode$x = (attributes) => attributes?.["w:val"];
25936
+ const decode$w = (attrs) => attrs?.fontSizeCs;
25925
25937
  const attrConfig$b = Object.freeze({
25926
25938
  xmlName: "w:val",
25927
25939
  sdName: "fontSizeCs",
25928
- encode: encode$w,
25929
- decode: decode$v
25940
+ encode: encode$x,
25941
+ decode: decode$w
25930
25942
  });
25931
- const validXmlAttributes$e = [attrConfig$b];
25932
- const XML_NODE_NAME$m = "w:szCs";
25943
+ const validXmlAttributes$f = [attrConfig$b];
25944
+ const XML_NODE_NAME$n = "w:szCs";
25933
25945
  const SD_ATTR_KEY$6 = "fontSizeCs";
25934
- const encode$v = (params, encodedAttrs = {}) => {
25946
+ const encode$w = (params, encodedAttrs = {}) => {
25935
25947
  const { nodes } = params;
25936
25948
  const node = nodes?.[0];
25937
25949
  const value = encodedAttrs.fontSizeCs ?? node?.attributes?.["w:val"];
25938
25950
  return {
25939
25951
  type: "attr",
25940
- xmlName: XML_NODE_NAME$m,
25952
+ xmlName: XML_NODE_NAME$n,
25941
25953
  sdNodeOrKeyName: SD_ATTR_KEY$6,
25942
25954
  attributes: { "w:val": value ?? null }
25943
25955
  };
25944
25956
  };
25945
- const config$l = {
25946
- xmlName: XML_NODE_NAME$m,
25957
+ const config$m = {
25958
+ xmlName: XML_NODE_NAME$n,
25947
25959
  sdNodeOrKeyName: SD_ATTR_KEY$6,
25948
25960
  type: NodeTranslator.translatorTypes.ATTRIBUTE,
25949
- encode: encode$v,
25950
- attributes: validXmlAttributes$e
25961
+ encode: encode$w,
25962
+ attributes: validXmlAttributes$f
25951
25963
  };
25952
- const translator$1f = NodeTranslator.from(config$l);
25964
+ const translator$1g = NodeTranslator.from(config$m);
25953
25965
  const generateV2HandlerEntity = (handlerName, translator2) => ({
25954
25966
  handlerName,
25955
25967
  handler: (params) => {
@@ -26138,9 +26150,9 @@ const integerToString = (value) => {
26138
26150
  const intValue = parseInteger(value);
26139
26151
  return intValue != void 0 ? String(intValue) : void 0;
26140
26152
  };
26141
- const XML_NODE_NAME$l = "w:caps";
26153
+ const XML_NODE_NAME$m = "w:caps";
26142
26154
  const SD_ATTR_KEY$5 = "textTransform";
26143
- const encode$u = (params, encodedAttrs = {}) => {
26155
+ const encode$v = (params, encodedAttrs = {}) => {
26144
26156
  const { nodes } = params;
26145
26157
  const node = nodes[0];
26146
26158
  if (!node) return void 0;
@@ -26152,31 +26164,31 @@ const encode$u = (params, encodedAttrs = {}) => {
26152
26164
  }
26153
26165
  return {
26154
26166
  type: "attr",
26155
- xmlName: XML_NODE_NAME$l,
26167
+ xmlName: XML_NODE_NAME$m,
26156
26168
  sdNodeOrKeyName: SD_ATTR_KEY$5,
26157
26169
  attributes: { [SD_ATTR_KEY$5]: result }
26158
26170
  };
26159
26171
  };
26160
- const config$k = {
26161
- xmlName: XML_NODE_NAME$l,
26172
+ const config$l = {
26173
+ xmlName: XML_NODE_NAME$m,
26162
26174
  sdNodeOrKeyName: SD_ATTR_KEY$5,
26163
26175
  type: NodeTranslator.translatorTypes.ATTRIBUTE,
26164
- encode: encode$u,
26176
+ encode: encode$v,
26165
26177
  attributes: [createAttributeHandler("w:val")]
26166
26178
  };
26167
- const translator$1e = NodeTranslator.from(config$k);
26179
+ const translator$1f = NodeTranslator.from(config$l);
26168
26180
  const runPropertyTranslators = Object.freeze({
26169
- "w:b": translator$1n,
26170
- "w:i": translator$1m,
26171
- "w:u": translator$1l,
26172
- "w:strike": translator$1k,
26173
- "w:color": translator$1j,
26174
- "w:highlight": translator$1q,
26175
- "w:rFonts": translator$1i,
26176
- "w:rStyle": translator$1h,
26177
- "w:sz": translator$1g,
26178
- "w:szCs": translator$1f,
26179
- "w:caps": translator$1e
26181
+ "w:b": translator$1o,
26182
+ "w:i": translator$1n,
26183
+ "w:u": translator$1m,
26184
+ "w:strike": translator$1l,
26185
+ "w:color": translator$1k,
26186
+ "w:highlight": translator$1r,
26187
+ "w:rFonts": translator$1j,
26188
+ "w:rStyle": translator$1i,
26189
+ "w:sz": translator$1h,
26190
+ "w:szCs": translator$1g,
26191
+ "w:caps": translator$1f
26180
26192
  });
26181
26193
  const rawRunPropertyXmlNames = Object.freeze(["w:lang", "w:shd"]);
26182
26194
  const RAW_CHILD_NAME_SET = new Set(rawRunPropertyXmlNames);
@@ -26190,9 +26202,9 @@ const toRunPropertyEntry = (candidate) => {
26190
26202
  attributes: { ...candidate.attributes || {} }
26191
26203
  };
26192
26204
  };
26193
- const XML_NODE_NAME$k = "w:rPr";
26205
+ const XML_NODE_NAME$l = "w:rPr";
26194
26206
  const SD_ATTR_KEY$4 = "runProperties";
26195
- const encode$t = (params) => {
26207
+ const encode$u = (params) => {
26196
26208
  const { nodes } = params;
26197
26209
  const node = nodes?.[0] || {};
26198
26210
  const contents = Array.isArray(node.elements) ? node.elements : [];
@@ -26226,16 +26238,16 @@ const encode$t = (params) => {
26226
26238
  attributes: runPropsArray
26227
26239
  };
26228
26240
  };
26229
- const config$j = {
26230
- xmlName: XML_NODE_NAME$k,
26241
+ const config$k = {
26242
+ xmlName: XML_NODE_NAME$l,
26231
26243
  sdNodeOrKeyName: SD_ATTR_KEY$4,
26232
26244
  type: NodeTranslator.translatorTypes.ATTRIBUTE,
26233
- encode: encode$t
26245
+ encode: encode$u
26234
26246
  };
26235
- const translator$1d = NodeTranslator.from(config$j);
26247
+ const translator$1e = NodeTranslator.from(config$k);
26236
26248
  const EAST_ASIAN_CHARACTER_REGEX = /[\u1100-\u11FF\u2E80-\u2EFF\u2F00-\u2FDF\u3040-\u30FF\u3100-\u312F\u3130-\u318F\u31A0-\u31BF\u3400-\u4DBF\u4E00-\u9FFF\uA960-\uA97F\uAC00-\uD7AF\uF900-\uFAFF\uFF00-\uFFEF]/u;
26237
26249
  const containsEastAsianCharacters = (text) => EAST_ASIAN_CHARACTER_REGEX.test(text);
26238
- const collectRunProperties = (params, rPrNode, translator2 = translator$1d) => {
26250
+ const collectRunProperties = (params, rPrNode, translator2 = translator$1e) => {
26239
26251
  if (!rPrNode) return { entries: [], hadRPr: false, styleChangeMarks: [] };
26240
26252
  const result = translator2.encode({ ...params, nodes: [rPrNode] }) || {};
26241
26253
  let entries = [];
@@ -26708,15 +26720,15 @@ const ensureTrackedWrapper = (runs, trackingMarksByType = /* @__PURE__ */ new Ma
26708
26720
  }
26709
26721
  return runs;
26710
26722
  };
26711
- const XML_NODE_NAME$j = "w:hyperlink";
26712
- const SD_NODE_NAME$e = "link";
26723
+ const XML_NODE_NAME$k = "w:hyperlink";
26724
+ const SD_NODE_NAME$f = "link";
26713
26725
  const _createAttributeHandler = (xmlName, sdName) => ({
26714
26726
  xmlName,
26715
26727
  sdName,
26716
26728
  encode: (attributes) => attributes[xmlName],
26717
26729
  decode: (attributes) => attributes[sdName]
26718
26730
  });
26719
- const validXmlAttributes$d = [
26731
+ const validXmlAttributes$e = [
26720
26732
  _createAttributeHandler("w:anchor", "anchor"),
26721
26733
  _createAttributeHandler("w:docLocation", "docLocation"),
26722
26734
  {
@@ -26729,7 +26741,7 @@ const validXmlAttributes$d = [
26729
26741
  _createAttributeHandler("r:id", "rId"),
26730
26742
  _createAttributeHandler("w:tgtFrame", "target")
26731
26743
  ];
26732
- const encode$s = (params, encodedAttrs) => {
26744
+ const encode$t = (params, encodedAttrs) => {
26733
26745
  const { nodes, docx, nodeListHandler } = params;
26734
26746
  const node = nodes[0];
26735
26747
  let href = _resolveHref(docx, encodedAttrs);
@@ -26763,7 +26775,7 @@ const _resolveHref = (docx, encodedAttrs) => {
26763
26775
  }
26764
26776
  return href;
26765
26777
  };
26766
- function decode$u(params) {
26778
+ function decode$v(params) {
26767
26779
  const { hyperlinkGroup = [params.node] } = params.extraParams || {};
26768
26780
  const node = hyperlinkGroup[0];
26769
26781
  const linkMark = node.marks.find((m2) => m2.type === "link");
@@ -26812,55 +26824,55 @@ function _addNewLinkRelationship(params, link) {
26812
26824
  });
26813
26825
  return id;
26814
26826
  }
26815
- const config$i = {
26816
- xmlName: XML_NODE_NAME$j,
26817
- sdNodeOrKeyName: SD_NODE_NAME$e,
26827
+ const config$j = {
26828
+ xmlName: XML_NODE_NAME$k,
26829
+ sdNodeOrKeyName: SD_NODE_NAME$f,
26818
26830
  type: NodeTranslator.translatorTypes.NODE,
26819
- encode: encode$s,
26820
- decode: decode$u,
26821
- attributes: validXmlAttributes$d
26831
+ encode: encode$t,
26832
+ decode: decode$v,
26833
+ attributes: validXmlAttributes$e
26822
26834
  };
26823
- const translator$1c = NodeTranslator.from(config$i);
26824
- const encode$r = (attributes) => {
26835
+ const translator$1d = NodeTranslator.from(config$j);
26836
+ const encode$s = (attributes) => {
26825
26837
  return attributes["w:rsidR"];
26826
26838
  };
26827
- const decode$t = (attrs) => {
26839
+ const decode$u = (attrs) => {
26828
26840
  return attrs.rsidR;
26829
26841
  };
26830
26842
  const attrConfig$a = Object.freeze({
26831
26843
  xmlName: "w:rsidR",
26832
26844
  sdName: "rsidR",
26833
- encode: encode$r,
26834
- decode: decode$t
26845
+ encode: encode$s,
26846
+ decode: decode$u
26835
26847
  });
26836
- const encode$q = (attributes) => {
26848
+ const encode$r = (attributes) => {
26837
26849
  return attributes["w:rsidRPr"];
26838
26850
  };
26839
- const decode$s = (attrs) => {
26851
+ const decode$t = (attrs) => {
26840
26852
  return attrs.rsidRPr;
26841
26853
  };
26842
26854
  const attrConfig$9 = Object.freeze({
26843
26855
  xmlName: "w:rsidRPr",
26844
26856
  sdName: "rsidRPr",
26845
- encode: encode$q,
26846
- decode: decode$s
26857
+ encode: encode$r,
26858
+ decode: decode$t
26847
26859
  });
26848
- const encode$p = (attributes) => {
26860
+ const encode$q = (attributes) => {
26849
26861
  return attributes["w:rsidDel"];
26850
26862
  };
26851
- const decode$r = (attrs) => {
26863
+ const decode$s = (attrs) => {
26852
26864
  return attrs.rsidDel;
26853
26865
  };
26854
26866
  const attrConfig$8 = Object.freeze({
26855
26867
  xmlName: "w:rsidDel",
26856
26868
  sdName: "rsidDel",
26857
- encode: encode$p,
26858
- decode: decode$r
26869
+ encode: encode$q,
26870
+ decode: decode$s
26859
26871
  });
26860
- const validXmlAttributes$c = [attrConfig$a, attrConfig$9, attrConfig$8];
26861
- const XML_NODE_NAME$i = "w:r";
26872
+ const validXmlAttributes$d = [attrConfig$a, attrConfig$9, attrConfig$8];
26873
+ const XML_NODE_NAME$j = "w:r";
26862
26874
  const SD_KEY_NAME = "run";
26863
- const encode$o = (params, encodedAttrs = {}) => {
26875
+ const encode$p = (params, encodedAttrs = {}) => {
26864
26876
  const { nodes = [], nodeListHandler } = params || {};
26865
26877
  const runNode = nodes[0];
26866
26878
  if (!runNode) return void 0;
@@ -26908,7 +26920,7 @@ const encode$o = (params, encodedAttrs = {}) => {
26908
26920
  }
26909
26921
  return runNodeResult;
26910
26922
  };
26911
- const decode$q = (params, decodedAttrs = {}) => {
26923
+ const decode$r = (params, decodedAttrs = {}) => {
26912
26924
  const { node } = params || {};
26913
26925
  if (!node) return void 0;
26914
26926
  const isLinkNode = node.marks?.some((m2) => m2.type === "link");
@@ -26917,7 +26929,7 @@ const decode$q = (params, decodedAttrs = {}) => {
26917
26929
  ...params.extraParams,
26918
26930
  linkProcessed: true
26919
26931
  };
26920
- return translator$1c.decode({ ...params, extraParams });
26932
+ return translator$1d.decode({ ...params, extraParams });
26921
26933
  }
26922
26934
  const { runNode: runNodeForExport, trackingMarksByType } = prepareRunTrackingContext(node);
26923
26935
  const runAttrs = runNodeForExport.attrs || {};
@@ -26973,7 +26985,7 @@ const decode$q = (params, decodedAttrs = {}) => {
26973
26985
  runs.push(trackedClone);
26974
26986
  return;
26975
26987
  }
26976
- const runWrapper = { name: XML_NODE_NAME$i, elements: [] };
26988
+ const runWrapper = { name: XML_NODE_NAME$j, elements: [] };
26977
26989
  applyBaseRunProps(runWrapper);
26978
26990
  if (!Array.isArray(runWrapper.elements)) runWrapper.elements = [];
26979
26991
  runWrapper.elements.push(cloneXmlNode(child));
@@ -26981,7 +26993,7 @@ const decode$q = (params, decodedAttrs = {}) => {
26981
26993
  });
26982
26994
  const trackedRuns = ensureTrackedWrapper(runs, trackingMarksByType);
26983
26995
  if (!trackedRuns.length) {
26984
- const emptyRun = { name: XML_NODE_NAME$i, elements: [] };
26996
+ const emptyRun = { name: XML_NODE_NAME$j, elements: [] };
26985
26997
  applyBaseRunProps(emptyRun);
26986
26998
  trackedRuns.push(emptyRun);
26987
26999
  }
@@ -26995,16 +27007,16 @@ const decode$q = (params, decodedAttrs = {}) => {
26995
27007
  }
26996
27008
  return trackedRuns;
26997
27009
  };
26998
- const config$h = {
26999
- xmlName: XML_NODE_NAME$i,
27010
+ const config$i = {
27011
+ xmlName: XML_NODE_NAME$j,
27000
27012
  sdNodeOrKeyName: SD_KEY_NAME,
27001
27013
  type: NodeTranslator.translatorTypes.NODE,
27002
- encode: encode$o,
27003
- decode: decode$q,
27004
- attributes: validXmlAttributes$c
27014
+ encode: encode$p,
27015
+ decode: decode$r,
27016
+ attributes: validXmlAttributes$d
27005
27017
  };
27006
- const translator$1b = NodeTranslator.from(config$h);
27007
- const translator$1a = NodeTranslator.from({
27018
+ const translator$1c = NodeTranslator.from(config$i);
27019
+ const translator$1b = NodeTranslator.from({
27008
27020
  xmlName: "w:cnfStyle",
27009
27021
  sdNodeOrKeyName: "cnfStyle",
27010
27022
  attributes: [
@@ -27030,7 +27042,7 @@ const translator$1a = NodeTranslator.from({
27030
27042
  return Object.keys(decodedAttrs).length > 0 ? { attributes: decodedAttrs } : void 0;
27031
27043
  }
27032
27044
  });
27033
- const translator$19 = NodeTranslator.from({
27045
+ const translator$1a = NodeTranslator.from({
27034
27046
  xmlName: "w:shd",
27035
27047
  sdNodeOrKeyName: "shading",
27036
27048
  attributes: [
@@ -27052,8 +27064,8 @@ const translator$19 = NodeTranslator.from({
27052
27064
  return Object.keys(decodedAttrs).length > 0 ? { attributes: decodedAttrs } : void 0;
27053
27065
  }
27054
27066
  });
27055
- const translator$18 = NodeTranslator.from(createMeasurementPropertyHandler("w:tcW", "cellWidth"));
27056
- const translator$17 = NodeTranslator.from(
27067
+ const translator$19 = NodeTranslator.from(createMeasurementPropertyHandler("w:tcW", "cellWidth"));
27068
+ const translator$18 = NodeTranslator.from(
27057
27069
  createSingleAttrPropertyHandler(
27058
27070
  "w:gridSpan",
27059
27071
  null,
@@ -27062,39 +27074,39 @@ const translator$17 = NodeTranslator.from(
27062
27074
  (v2) => integerToString(v2)
27063
27075
  )
27064
27076
  );
27065
- const translator$16 = NodeTranslator.from(createSingleAttrPropertyHandler("w:vMerge"));
27066
- const translator$15 = NodeTranslator.from(createBorderPropertyHandler("w:bottom"));
27067
- const translator$14 = NodeTranslator.from(createMeasurementPropertyHandler("w:bottom", "marginBottom"));
27068
- const translator$13 = NodeTranslator.from(createBorderPropertyHandler("w:end"));
27069
- const translator$12 = NodeTranslator.from(createMeasurementPropertyHandler("w:end", "marginEnd"));
27070
- const translator$11 = NodeTranslator.from(createBorderPropertyHandler("w:insideH"));
27071
- const translator$10 = NodeTranslator.from(createBorderPropertyHandler("w:insideV"));
27072
- const translator$$ = NodeTranslator.from(createBorderPropertyHandler("w:left"));
27073
- const translator$_ = NodeTranslator.from(createMeasurementPropertyHandler("w:left", "marginLeft"));
27074
- const translator$Z = NodeTranslator.from(createBorderPropertyHandler("w:right"));
27075
- const translator$Y = NodeTranslator.from(createMeasurementPropertyHandler("w:right", "marginRight"));
27076
- const translator$X = NodeTranslator.from(createBorderPropertyHandler("w:start"));
27077
- const translator$W = NodeTranslator.from(createMeasurementPropertyHandler("w:start", "marginStart"));
27078
- const translator$V = NodeTranslator.from(createBorderPropertyHandler("w:top"));
27079
- const translator$U = NodeTranslator.from(createMeasurementPropertyHandler("w:top", "marginTop"));
27080
- const translator$T = NodeTranslator.from(createBorderPropertyHandler("w:tl2br"));
27081
- const translator$S = NodeTranslator.from(createBorderPropertyHandler("w:tr2bl"));
27077
+ const translator$17 = NodeTranslator.from(createSingleAttrPropertyHandler("w:vMerge"));
27078
+ const translator$16 = NodeTranslator.from(createBorderPropertyHandler("w:bottom"));
27079
+ const translator$15 = NodeTranslator.from(createMeasurementPropertyHandler("w:bottom", "marginBottom"));
27080
+ const translator$14 = NodeTranslator.from(createBorderPropertyHandler("w:end"));
27081
+ const translator$13 = NodeTranslator.from(createMeasurementPropertyHandler("w:end", "marginEnd"));
27082
+ const translator$12 = NodeTranslator.from(createBorderPropertyHandler("w:insideH"));
27083
+ const translator$11 = NodeTranslator.from(createBorderPropertyHandler("w:insideV"));
27084
+ const translator$10 = NodeTranslator.from(createBorderPropertyHandler("w:left"));
27085
+ const translator$$ = NodeTranslator.from(createMeasurementPropertyHandler("w:left", "marginLeft"));
27086
+ const translator$_ = NodeTranslator.from(createBorderPropertyHandler("w:right"));
27087
+ const translator$Z = NodeTranslator.from(createMeasurementPropertyHandler("w:right", "marginRight"));
27088
+ const translator$Y = NodeTranslator.from(createBorderPropertyHandler("w:start"));
27089
+ const translator$X = NodeTranslator.from(createMeasurementPropertyHandler("w:start", "marginStart"));
27090
+ const translator$W = NodeTranslator.from(createBorderPropertyHandler("w:top"));
27091
+ const translator$V = NodeTranslator.from(createMeasurementPropertyHandler("w:top", "marginTop"));
27092
+ const translator$U = NodeTranslator.from(createBorderPropertyHandler("w:tl2br"));
27093
+ const translator$T = NodeTranslator.from(createBorderPropertyHandler("w:tr2bl"));
27082
27094
  const propertyTranslators$6 = [
27083
- translator$V,
27084
- translator$X,
27085
- translator$$,
27086
- translator$15,
27087
- translator$13,
27088
- translator$Z,
27089
- translator$11,
27095
+ translator$W,
27096
+ translator$Y,
27090
27097
  translator$10,
27091
- translator$T,
27092
- translator$S
27098
+ translator$16,
27099
+ translator$14,
27100
+ translator$_,
27101
+ translator$12,
27102
+ translator$11,
27103
+ translator$U,
27104
+ translator$T
27093
27105
  ];
27094
- const translator$R = NodeTranslator.from(
27106
+ const translator$S = NodeTranslator.from(
27095
27107
  createNestedPropertiesTranslator("w:tcBorders", "borders", propertyTranslators$6)
27096
27108
  );
27097
- const translator$Q = NodeTranslator.from(
27109
+ const translator$R = NodeTranslator.from(
27098
27110
  createSingleAttrPropertyHandler(
27099
27111
  "w:noWrap",
27100
27112
  null,
@@ -27104,18 +27116,18 @@ const translator$Q = NodeTranslator.from(
27104
27116
  )
27105
27117
  );
27106
27118
  const propertyTranslators$5 = [
27107
- translator$14,
27108
- translator$12,
27109
- translator$_,
27110
- translator$Y,
27111
- translator$W,
27112
- translator$U
27119
+ translator$15,
27120
+ translator$13,
27121
+ translator$$,
27122
+ translator$Z,
27123
+ translator$X,
27124
+ translator$V
27113
27125
  ];
27114
- const translator$P = NodeTranslator.from(
27126
+ const translator$Q = NodeTranslator.from(
27115
27127
  createNestedPropertiesTranslator("w:tcMar", "cellMargins", propertyTranslators$5)
27116
27128
  );
27117
- const translator$O = NodeTranslator.from(createSingleAttrPropertyHandler("w:textDirection"));
27118
- const translator$N = NodeTranslator.from(
27129
+ const translator$P = NodeTranslator.from(createSingleAttrPropertyHandler("w:textDirection"));
27130
+ const translator$O = NodeTranslator.from(
27119
27131
  createSingleAttrPropertyHandler(
27120
27132
  "w:tcFitText",
27121
27133
  null,
@@ -27124,8 +27136,8 @@ const translator$N = NodeTranslator.from(
27124
27136
  (v2) => booleanToString(v2)
27125
27137
  )
27126
27138
  );
27127
- const translator$M = NodeTranslator.from(createSingleAttrPropertyHandler("w:vAlign"));
27128
- const translator$L = NodeTranslator.from(
27139
+ const translator$N = NodeTranslator.from(createSingleAttrPropertyHandler("w:vAlign"));
27140
+ const translator$M = NodeTranslator.from(
27129
27141
  createSingleAttrPropertyHandler(
27130
27142
  "w:hideMark",
27131
27143
  null,
@@ -27134,55 +27146,55 @@ const translator$L = NodeTranslator.from(
27134
27146
  (v2) => booleanToString(v2)
27135
27147
  )
27136
27148
  );
27137
- const translator$K = NodeTranslator.from(createSingleAttrPropertyHandler("w:header"));
27138
- const XML_NODE_NAME$h = "w:headers";
27149
+ const translator$L = NodeTranslator.from(createSingleAttrPropertyHandler("w:header"));
27150
+ const XML_NODE_NAME$i = "w:headers";
27139
27151
  const SD_ATTR_KEY$3 = "headers";
27140
- const encode$n = (params) => {
27152
+ const encode$o = (params) => {
27141
27153
  const { nodes } = params;
27142
27154
  const node = nodes[0];
27143
- const attributes = encodeProperties(node, { [translator$K.xmlName]: translator$K }, true);
27155
+ const attributes = encodeProperties(node, { [translator$L.xmlName]: translator$L }, true);
27144
27156
  return {
27145
- xmlName: XML_NODE_NAME$h,
27157
+ xmlName: XML_NODE_NAME$i,
27146
27158
  sdNodeOrKeyName: SD_ATTR_KEY$3,
27147
27159
  attributes
27148
27160
  };
27149
27161
  };
27150
- const decode$p = (params) => {
27162
+ const decode$q = (params) => {
27151
27163
  const { headers = [] } = params.node.attrs || {};
27152
27164
  const newNode = {
27153
- name: XML_NODE_NAME$h,
27165
+ name: XML_NODE_NAME$i,
27154
27166
  attributes: {},
27155
27167
  elements: headers.map(
27156
- (header) => translator$K.decode({
27168
+ (header) => translator$L.decode({
27157
27169
  node: { type: "header", attrs: header }
27158
27170
  })
27159
27171
  )
27160
27172
  };
27161
27173
  return newNode;
27162
27174
  };
27163
- const config$g = {
27164
- xmlName: XML_NODE_NAME$h,
27175
+ const config$h = {
27176
+ xmlName: XML_NODE_NAME$i,
27165
27177
  sdNodeOrKeyName: SD_ATTR_KEY$3,
27166
- encode: encode$n,
27167
- decode: decode$p
27178
+ encode: encode$o,
27179
+ decode: decode$q
27168
27180
  };
27169
- const translator$J = NodeTranslator.from(config$g);
27181
+ const translator$K = NodeTranslator.from(config$h);
27170
27182
  const propertyTranslators$4 = [
27171
- translator$1a,
27183
+ translator$1b,
27184
+ translator$19,
27172
27185
  translator$18,
27173
27186
  translator$17,
27174
- translator$16,
27187
+ translator$S,
27188
+ translator$1a,
27175
27189
  translator$R,
27176
- translator$19,
27177
27190
  translator$Q,
27178
27191
  translator$P,
27179
27192
  translator$O,
27180
27193
  translator$N,
27181
27194
  translator$M,
27182
- translator$L,
27183
- translator$J
27195
+ translator$K
27184
27196
  ];
27185
- const translator$I = NodeTranslator.from(
27197
+ const translator$J = NodeTranslator.from(
27186
27198
  createNestedPropertiesTranslator("w:tcPr", "tableCellProperties", propertyTranslators$4)
27187
27199
  );
27188
27200
  function handleTableCellNode({
@@ -27200,7 +27212,7 @@ function handleTableCellNode({
27200
27212
  const attributes = {};
27201
27213
  const referencedStyles = _referencedStyles ?? { fontSize: null, fonts: {}, cellMargins: {} };
27202
27214
  const tcPr = node.elements.find((el) => el.name === "w:tcPr");
27203
- const tableCellProperties = tcPr ? translator$I.encode({ ...params, nodes: [tcPr] }) ?? {} : {};
27215
+ const tableCellProperties = tcPr ? translator$J.encode({ ...params, nodes: [tcPr] }) ?? {} : {};
27204
27216
  attributes["tableCellProperties"] = tableCellProperties;
27205
27217
  if (rowBorders?.insideH) {
27206
27218
  rowBorders["bottom"] = rowBorders.insideH;
@@ -27512,13 +27524,13 @@ function generateTableCellProperties(node) {
27512
27524
  } else if (tableCellProperties?.borders) {
27513
27525
  delete tableCellProperties.borders;
27514
27526
  }
27515
- const result = translator$I.decode({ node: { ...node, attrs: { ...node.attrs, tableCellProperties } } });
27527
+ const result = translator$J.decode({ node: { ...node, attrs: { ...node.attrs, tableCellProperties } } });
27516
27528
  return result;
27517
27529
  }
27518
- const XML_NODE_NAME$g = "w:tc";
27519
- const SD_NODE_NAME$d = "tableCell";
27520
- const validXmlAttributes$b = [];
27521
- function encode$m(params, encodedAttrs) {
27530
+ const XML_NODE_NAME$h = "w:tc";
27531
+ const SD_NODE_NAME$e = "tableCell";
27532
+ const validXmlAttributes$c = [];
27533
+ function encode$n(params, encodedAttrs) {
27522
27534
  const {
27523
27535
  node,
27524
27536
  table,
@@ -27545,30 +27557,30 @@ function encode$m(params, encodedAttrs) {
27545
27557
  }
27546
27558
  return schemaNode;
27547
27559
  }
27548
- function decode$o(params, decodedAttrs) {
27560
+ function decode$p(params, decodedAttrs) {
27549
27561
  const translated = translateTableCell(params);
27550
27562
  if (decodedAttrs && Object.keys(decodedAttrs).length) {
27551
27563
  translated.attributes = { ...translated.attributes || {}, ...decodedAttrs };
27552
27564
  }
27553
27565
  return translated;
27554
27566
  }
27555
- const config$f = {
27556
- xmlName: XML_NODE_NAME$g,
27557
- sdNodeOrKeyName: SD_NODE_NAME$d,
27567
+ const config$g = {
27568
+ xmlName: XML_NODE_NAME$h,
27569
+ sdNodeOrKeyName: SD_NODE_NAME$e,
27558
27570
  type: NodeTranslator.translatorTypes.NODE,
27559
- encode: encode$m,
27560
- decode: decode$o,
27561
- attributes: validXmlAttributes$b
27571
+ encode: encode$n,
27572
+ decode: decode$p,
27573
+ attributes: validXmlAttributes$c
27562
27574
  };
27563
- const translator$H = NodeTranslator.from(config$f);
27564
- const translator$G = NodeTranslator.from({
27575
+ const translator$I = NodeTranslator.from(config$g);
27576
+ const translator$H = NodeTranslator.from({
27565
27577
  xmlName: "w:cantSplit",
27566
27578
  sdNodeOrKeyName: "cantSplit",
27567
27579
  encode: ({ nodes }) => ["1", "true"].includes(nodes[0].attributes?.["w:val"] ?? "1"),
27568
27580
  decode: ({ node }) => node.attrs?.cantSplit ? { attributes: {} } : void 0
27569
27581
  });
27570
- const translator$F = NodeTranslator.from(createSingleAttrPropertyHandler("w:divId"));
27571
- const translator$E = NodeTranslator.from(
27582
+ const translator$G = NodeTranslator.from(createSingleAttrPropertyHandler("w:divId"));
27583
+ const translator$F = NodeTranslator.from(
27572
27584
  createSingleAttrPropertyHandler(
27573
27585
  "w:gridAfter",
27574
27586
  null,
@@ -27577,7 +27589,7 @@ const translator$E = NodeTranslator.from(
27577
27589
  (v2) => integerToString(v2)
27578
27590
  )
27579
27591
  );
27580
- const translator$D = NodeTranslator.from(
27592
+ const translator$E = NodeTranslator.from(
27581
27593
  createSingleAttrPropertyHandler(
27582
27594
  "w:gridBefore",
27583
27595
  null,
@@ -27586,21 +27598,21 @@ const translator$D = NodeTranslator.from(
27586
27598
  (v2) => integerToString(v2)
27587
27599
  )
27588
27600
  );
27589
- const translator$C = NodeTranslator.from({
27601
+ const translator$D = NodeTranslator.from({
27590
27602
  xmlName: "w:hidden",
27591
27603
  sdNodeOrKeyName: "hidden",
27592
27604
  encode: ({ nodes }) => parseBoolean(nodes[0].attributes?.["w:val"] ?? "1"),
27593
27605
  decode: ({ node }) => node.attrs.hidden ? { attributes: {} } : void 0
27594
27606
  });
27595
- const translator$B = NodeTranslator.from(createSingleAttrPropertyHandler("w:jc", "justification"));
27596
- const translator$A = NodeTranslator.from(createMeasurementPropertyHandler("w:tblCellSpacing", "tableCellSpacing"));
27597
- const translator$z = NodeTranslator.from({
27607
+ const translator$C = NodeTranslator.from(createSingleAttrPropertyHandler("w:jc", "justification"));
27608
+ const translator$B = NodeTranslator.from(createMeasurementPropertyHandler("w:tblCellSpacing", "tableCellSpacing"));
27609
+ const translator$A = NodeTranslator.from({
27598
27610
  xmlName: "w:tblHeader",
27599
27611
  sdNodeOrKeyName: "repeatHeader",
27600
27612
  encode: ({ nodes }) => parseBoolean(nodes[0].attributes?.["w:val"] ?? "1"),
27601
27613
  decode: ({ node }) => node.attrs.repeatHeader ? { attributes: {} } : void 0
27602
27614
  });
27603
- const translator$y = NodeTranslator.from({
27615
+ const translator$z = NodeTranslator.from({
27604
27616
  xmlName: "w:trHeight",
27605
27617
  sdNodeOrKeyName: "rowHeight",
27606
27618
  encode: ({ nodes }) => {
@@ -27627,11 +27639,12 @@ const translator$y = NodeTranslator.from({
27627
27639
  return Object.keys(heightAttrs).length > 0 ? { attributes: heightAttrs } : void 0;
27628
27640
  }
27629
27641
  });
27630
- const translator$x = NodeTranslator.from(createMeasurementPropertyHandler("w:wAfter"));
27631
- const translator$w = NodeTranslator.from(createMeasurementPropertyHandler("w:wBefore"));
27642
+ const translator$y = NodeTranslator.from(createMeasurementPropertyHandler("w:wAfter"));
27643
+ const translator$x = NodeTranslator.from(createMeasurementPropertyHandler("w:wBefore"));
27632
27644
  const propertyTranslators$3 = [
27645
+ translator$H,
27646
+ translator$1b,
27633
27647
  translator$G,
27634
- translator$1a,
27635
27648
  translator$F,
27636
27649
  translator$E,
27637
27650
  translator$D,
@@ -27640,10 +27653,9 @@ const propertyTranslators$3 = [
27640
27653
  translator$A,
27641
27654
  translator$z,
27642
27655
  translator$y,
27643
- translator$x,
27644
- translator$w
27656
+ translator$x
27645
27657
  ];
27646
- const translator$v = NodeTranslator.from(
27658
+ const translator$w = NodeTranslator.from(
27647
27659
  createNestedPropertiesTranslator("w:trPr", "tableRowProperties", propertyTranslators$3, {
27648
27660
  cantSplit: false,
27649
27661
  hidden: false,
@@ -27712,17 +27724,17 @@ const isPlaceholderCell = (cell) => {
27712
27724
  }
27713
27725
  return false;
27714
27726
  };
27715
- const XML_NODE_NAME$f = "w:tr";
27716
- const SD_NODE_NAME$c = "tableRow";
27717
- const validXmlAttributes$a = ["w:rsidDel", "w:rsidR", "w:rsidRPr", "w:rsidTr", "w14:paraId", "w14:textId"].map(
27727
+ const XML_NODE_NAME$g = "w:tr";
27728
+ const SD_NODE_NAME$d = "tableRow";
27729
+ const validXmlAttributes$b = ["w:rsidDel", "w:rsidR", "w:rsidRPr", "w:rsidTr", "w14:paraId", "w14:textId"].map(
27718
27730
  (xmlName) => createAttributeHandler(xmlName)
27719
27731
  );
27720
- const encode$l = (params, encodedAttrs) => {
27732
+ const encode$m = (params, encodedAttrs) => {
27721
27733
  const { row } = params.extraParams;
27722
27734
  let tableRowProperties = {};
27723
27735
  const tPr = row.elements.find((el) => el.name === "w:trPr");
27724
27736
  if (tPr) {
27725
- tableRowProperties = translator$v.encode({
27737
+ tableRowProperties = translator$w.encode({
27726
27738
  ...params,
27727
27739
  nodes: [tPr]
27728
27740
  });
@@ -27759,7 +27771,7 @@ const encode$l = (params, encodedAttrs) => {
27759
27771
  skipOccupiedColumns();
27760
27772
  const startColumn = currentColumnIndex;
27761
27773
  const columnWidth = gridColumnWidths?.[startColumn] || null;
27762
- const result = translator$H.encode({
27774
+ const result = translator$I.encode({
27763
27775
  ...params,
27764
27776
  extraParams: {
27765
27777
  ...params.extraParams,
@@ -27792,7 +27804,7 @@ const encode$l = (params, encodedAttrs) => {
27792
27804
  };
27793
27805
  return newNode;
27794
27806
  };
27795
- const decode$n = (params, decodedAttrs) => {
27807
+ const decode$o = (params, decodedAttrs) => {
27796
27808
  const { node } = params;
27797
27809
  const cells = node.content || [];
27798
27810
  let leadingPlaceholders = 0;
@@ -27832,7 +27844,7 @@ const decode$n = (params, decodedAttrs) => {
27832
27844
  }
27833
27845
  }
27834
27846
  tableRowProperties["cantSplit"] = node.attrs["cantSplit"];
27835
- const trPr = translator$v.decode({
27847
+ const trPr = translator$w.decode({
27836
27848
  ...params,
27837
27849
  node: { ...node, attrs: { ...node.attrs, tableRowProperties } }
27838
27850
  });
@@ -27844,15 +27856,15 @@ const decode$n = (params, decodedAttrs) => {
27844
27856
  elements
27845
27857
  };
27846
27858
  };
27847
- const config$e = {
27848
- xmlName: XML_NODE_NAME$f,
27849
- sdNodeOrKeyName: SD_NODE_NAME$c,
27859
+ const config$f = {
27860
+ xmlName: XML_NODE_NAME$g,
27861
+ sdNodeOrKeyName: SD_NODE_NAME$d,
27850
27862
  type: NodeTranslator.translatorTypes.NODE,
27851
- encode: encode$l,
27852
- decode: decode$n,
27853
- attributes: validXmlAttributes$a
27863
+ encode: encode$m,
27864
+ decode: decode$o,
27865
+ attributes: validXmlAttributes$b
27854
27866
  };
27855
- const translator$u = NodeTranslator.from(config$e);
27867
+ const translator$v = NodeTranslator.from(config$f);
27856
27868
  function parseTagValueJSON(json) {
27857
27869
  if (typeof json !== "string") {
27858
27870
  return {};
@@ -29175,32 +29187,32 @@ function translateAnchorNode(params) {
29175
29187
  elements: [...anchorElements, ...elementsWithWrap]
29176
29188
  };
29177
29189
  }
29178
- const XML_NODE_NAME$e = "wp:anchor";
29179
- const SD_NODE_NAME$b = ["image"];
29180
- const validXmlAttributes$9 = ["distT", "distB", "distL", "distR"].map((xmlName) => createAttributeHandler(xmlName));
29181
- function encode$k(params) {
29190
+ const XML_NODE_NAME$f = "wp:anchor";
29191
+ const SD_NODE_NAME$c = ["image"];
29192
+ const validXmlAttributes$a = ["distT", "distB", "distL", "distR"].map((xmlName) => createAttributeHandler(xmlName));
29193
+ function encode$l(params) {
29182
29194
  const { node } = params.extraParams;
29183
29195
  if (!node || !node.type) {
29184
29196
  return null;
29185
29197
  }
29186
29198
  return handleAnchorNode(params);
29187
29199
  }
29188
- function decode$m(params) {
29200
+ function decode$n(params) {
29189
29201
  const { node } = params;
29190
29202
  if (!node || !node.type) {
29191
29203
  return null;
29192
29204
  }
29193
29205
  return translateAnchorNode(params);
29194
29206
  }
29195
- const config$d = {
29196
- xmlName: XML_NODE_NAME$e,
29197
- sdNodeOrKeyName: SD_NODE_NAME$b,
29207
+ const config$e = {
29208
+ xmlName: XML_NODE_NAME$f,
29209
+ sdNodeOrKeyName: SD_NODE_NAME$c,
29198
29210
  type: NodeTranslator.translatorTypes.NODE,
29199
- encode: encode$k,
29200
- decode: decode$m,
29201
- attributes: validXmlAttributes$9
29211
+ encode: encode$l,
29212
+ decode: decode$n,
29213
+ attributes: validXmlAttributes$a
29202
29214
  };
29203
- const translator$t = NodeTranslator.from(config$d);
29215
+ const translator$u = NodeTranslator.from(config$e);
29204
29216
  function handleInlineNode(params) {
29205
29217
  const { node } = params.extraParams;
29206
29218
  if (node.name !== "wp:inline") {
@@ -29216,41 +29228,41 @@ function translateInlineNode(params) {
29216
29228
  elements: nodeElements.elements
29217
29229
  };
29218
29230
  }
29219
- const XML_NODE_NAME$d = "wp:inline";
29220
- const SD_NODE_NAME$a = ["image"];
29221
- const validXmlAttributes$8 = ["distT", "distB", "distL", "distR"].map((xmlName) => createAttributeHandler(xmlName));
29222
- function encode$j(params) {
29231
+ const XML_NODE_NAME$e = "wp:inline";
29232
+ const SD_NODE_NAME$b = ["image"];
29233
+ const validXmlAttributes$9 = ["distT", "distB", "distL", "distR"].map((xmlName) => createAttributeHandler(xmlName));
29234
+ function encode$k(params) {
29223
29235
  const { node } = params.extraParams;
29224
29236
  if (!node || !node.type) {
29225
29237
  return null;
29226
29238
  }
29227
29239
  return handleInlineNode(params);
29228
29240
  }
29229
- function decode$l(params) {
29241
+ function decode$m(params) {
29230
29242
  const { node } = params;
29231
29243
  if (!node || !node.type) {
29232
29244
  return null;
29233
29245
  }
29234
29246
  return translateInlineNode(params);
29235
29247
  }
29236
- const config$c = {
29237
- xmlName: XML_NODE_NAME$d,
29238
- sdNodeOrKeyName: SD_NODE_NAME$a,
29248
+ const config$d = {
29249
+ xmlName: XML_NODE_NAME$e,
29250
+ sdNodeOrKeyName: SD_NODE_NAME$b,
29239
29251
  type: NodeTranslator.translatorTypes.NODE,
29240
- encode: encode$j,
29241
- decode: decode$l,
29242
- attributes: validXmlAttributes$8
29252
+ encode: encode$k,
29253
+ decode: decode$m,
29254
+ attributes: validXmlAttributes$9
29243
29255
  };
29244
- const translator$s = NodeTranslator.from(config$c);
29245
- const XML_NODE_NAME$c = "w:drawing";
29246
- const SD_NODE_NAME$9 = [];
29247
- const validXmlAttributes$7 = [];
29248
- function encode$i(params) {
29256
+ const translator$t = NodeTranslator.from(config$d);
29257
+ const XML_NODE_NAME$d = "w:drawing";
29258
+ const SD_NODE_NAME$a = [];
29259
+ const validXmlAttributes$8 = [];
29260
+ function encode$j(params) {
29249
29261
  const nodes = params.nodes;
29250
29262
  const node = nodes[0];
29251
29263
  const translatorByChildName = {
29252
- "wp:anchor": translator$t,
29253
- "wp:inline": translator$s
29264
+ "wp:anchor": translator$u,
29265
+ "wp:inline": translator$t
29254
29266
  };
29255
29267
  return node.elements.reduce((acc, child) => {
29256
29268
  if (acc) return acc;
@@ -29259,12 +29271,12 @@ function encode$i(params) {
29259
29271
  return translator2.encode({ ...params, extraParams: { node: child } }) || acc;
29260
29272
  }, null);
29261
29273
  }
29262
- function decode$k(params) {
29274
+ function decode$l(params) {
29263
29275
  const { node } = params;
29264
29276
  if (!node || !node.type) {
29265
29277
  return null;
29266
29278
  }
29267
- const childTranslator = node.attrs.isAnchor ? translator$t : translator$s;
29279
+ const childTranslator = node.attrs.isAnchor ? translator$u : translator$t;
29268
29280
  const resultNode = childTranslator.decode(params);
29269
29281
  return wrapTextInRun(
29270
29282
  {
@@ -29274,15 +29286,15 @@ function decode$k(params) {
29274
29286
  []
29275
29287
  );
29276
29288
  }
29277
- const config$b = {
29278
- xmlName: XML_NODE_NAME$c,
29279
- sdNodeOrKeyName: SD_NODE_NAME$9,
29289
+ const config$c = {
29290
+ xmlName: XML_NODE_NAME$d,
29291
+ sdNodeOrKeyName: SD_NODE_NAME$a,
29280
29292
  type: NodeTranslator.translatorTypes.NODE,
29281
- encode: encode$i,
29282
- decode: decode$k,
29283
- attributes: validXmlAttributes$7
29293
+ encode: encode$j,
29294
+ decode: decode$l,
29295
+ attributes: validXmlAttributes$8
29284
29296
  };
29285
- const translator$r = NodeTranslator.from(config$b);
29297
+ const translator$s = NodeTranslator.from(config$c);
29286
29298
  class CommandService {
29287
29299
  /**
29288
29300
  * @param {import('./commands/types/index.js').CommandServiceOptions} props
@@ -30630,7 +30642,7 @@ function prepareTextAnnotation(params) {
30630
30642
  return getTextNodeForExport(attrs.displayLabel, [...marks, ...marksFromAttrs], params);
30631
30643
  }
30632
30644
  function prepareImageAnnotation(params, imageSize) {
30633
- return translator$r.decode({
30645
+ return translator$s.decode({
30634
30646
  ...params,
30635
30647
  imageSize
30636
30648
  });
@@ -30895,9 +30907,18 @@ function translateDocumentPartObj(params) {
30895
30907
  return result;
30896
30908
  }
30897
30909
  function translateStructuredContent(params) {
30898
- const { node } = params;
30899
- const childContent = translateChildNodes({ ...params, nodes: node.content });
30900
- const sdtContent = { name: "w:sdtContent", elements: childContent };
30910
+ const { node, isFinalDoc } = params;
30911
+ const childContent = translateChildNodes({ ...params, node });
30912
+ const childElements = Array.isArray(childContent) ? childContent : [childContent];
30913
+ if (isFinalDoc) {
30914
+ if (node?.type === "structuredContent") {
30915
+ return convertSdtContentToRuns(childElements);
30916
+ }
30917
+ if (node?.type === "structuredContentBlock") {
30918
+ return childElements.length === 1 ? childElements[0] : childElements;
30919
+ }
30920
+ }
30921
+ const sdtContent = { name: "w:sdtContent", elements: childElements };
30901
30922
  const sdtPr = generateSdtPrTagForStructuredContent({ node });
30902
30923
  const nodeElements = [sdtPr, sdtContent];
30903
30924
  const result = {
@@ -30945,10 +30966,10 @@ function generateSdtPrTagForStructuredContent({ node }) {
30945
30966
  };
30946
30967
  return result;
30947
30968
  }
30948
- const XML_NODE_NAME$b = "w:sdt";
30949
- const SD_NODE_NAME$8 = ["fieldAnnotation", "structuredContent", "structuredContentBlock", "documentSection"];
30950
- const validXmlAttributes$6 = [];
30951
- function encode$h(params) {
30969
+ const XML_NODE_NAME$c = "w:sdt";
30970
+ const SD_NODE_NAME$9 = ["fieldAnnotation", "structuredContent", "structuredContentBlock", "documentSection"];
30971
+ const validXmlAttributes$7 = [];
30972
+ function encode$i(params) {
30952
30973
  const nodes = params.nodes;
30953
30974
  const node = nodes[0];
30954
30975
  const { type: sdtType, handler: handler2 } = sdtNodeTypeStrategy(node);
@@ -30958,7 +30979,7 @@ function encode$h(params) {
30958
30979
  const result = handler2(params);
30959
30980
  return result;
30960
30981
  }
30961
- function decode$j(params) {
30982
+ function decode$k(params) {
30962
30983
  const { node } = params;
30963
30984
  if (!node || !node.type) {
30964
30985
  return null;
@@ -30976,15 +30997,15 @@ function decode$j(params) {
30976
30997
  const result = decoder();
30977
30998
  return result;
30978
30999
  }
30979
- const config$a = {
30980
- xmlName: XML_NODE_NAME$b,
30981
- sdNodeOrKeyName: SD_NODE_NAME$8,
31000
+ const config$b = {
31001
+ xmlName: XML_NODE_NAME$c,
31002
+ sdNodeOrKeyName: SD_NODE_NAME$9,
30982
31003
  type: NodeTranslator.translatorTypes.NODE,
30983
- encode: encode$h,
30984
- decode: decode$j,
30985
- attributes: validXmlAttributes$6
31004
+ encode: encode$i,
31005
+ decode: decode$k,
31006
+ attributes: validXmlAttributes$7
30986
31007
  };
30987
- const translator$q = NodeTranslator.from(config$a);
31008
+ const translator$r = NodeTranslator.from(config$b);
30988
31009
  function preProcessVerticalMergeCells(table, { editorSchema }) {
30989
31010
  if (!table || !Array.isArray(table.content)) {
30990
31011
  return table;
@@ -31025,17 +31046,17 @@ function preProcessVerticalMergeCells(table, { editorSchema }) {
31025
31046
  }
31026
31047
  return table;
31027
31048
  }
31028
- const translator$p = NodeTranslator.from({
31049
+ const translator$q = NodeTranslator.from({
31029
31050
  xmlName: "w:bidiVisual",
31030
31051
  sdNodeOrKeyName: "rightToLeft",
31031
31052
  encode: ({ nodes }) => parseBoolean(nodes[0].attributes?.["w:val"] ?? "1"),
31032
31053
  decode: ({ node }) => node.attrs.rightToLeft ? { attributes: {} } : void 0
31033
31054
  });
31034
- const translator$o = NodeTranslator.from(createSingleAttrPropertyHandler("w:tblCaption", "caption"));
31035
- const translator$n = NodeTranslator.from(createSingleAttrPropertyHandler("w:tblDescription", "description"));
31036
- const translator$m = NodeTranslator.from(createMeasurementPropertyHandler("w:tblInd", "tableIndent"));
31037
- const translator$l = NodeTranslator.from(createSingleAttrPropertyHandler("w:tblLayout", "tableLayout", "w:type"));
31038
- const translator$k = NodeTranslator.from({
31055
+ const translator$p = NodeTranslator.from(createSingleAttrPropertyHandler("w:tblCaption", "caption"));
31056
+ const translator$o = NodeTranslator.from(createSingleAttrPropertyHandler("w:tblDescription", "description"));
31057
+ const translator$n = NodeTranslator.from(createMeasurementPropertyHandler("w:tblInd", "tableIndent"));
31058
+ const translator$m = NodeTranslator.from(createSingleAttrPropertyHandler("w:tblLayout", "tableLayout", "w:type"));
31059
+ const translator$l = NodeTranslator.from({
31039
31060
  xmlName: "w:tblLook",
31040
31061
  sdNodeOrKeyName: "tblLook",
31041
31062
  attributes: ["w:firstColumn", "w:firstRow", "w:lastColumn", "w:lastRow", "w:noHBand", "w:noVBand"].map((attr) => createAttributeHandler(attr, null, parseBoolean, booleanToString)).concat([createAttributeHandler("w:val")]),
@@ -31047,16 +31068,16 @@ const translator$k = NodeTranslator.from({
31047
31068
  return Object.keys(decodedAttrs).length > 0 ? { attributes: decodedAttrs } : void 0;
31048
31069
  }
31049
31070
  });
31050
- const translator$j = NodeTranslator.from(createSingleAttrPropertyHandler("w:tblOverlap", "overlap"));
31051
- const translator$i = NodeTranslator.from(createSingleAttrPropertyHandler("w:tblStyle", "tableStyleId"));
31052
- const translator$h = NodeTranslator.from(
31071
+ const translator$k = NodeTranslator.from(createSingleAttrPropertyHandler("w:tblOverlap", "overlap"));
31072
+ const translator$j = NodeTranslator.from(createSingleAttrPropertyHandler("w:tblStyle", "tableStyleId"));
31073
+ const translator$i = NodeTranslator.from(
31053
31074
  createSingleAttrPropertyHandler("w:tblStyleColBandSize", "tableStyleColBandSize")
31054
31075
  );
31055
- const translator$g = NodeTranslator.from(
31076
+ const translator$h = NodeTranslator.from(
31056
31077
  createSingleAttrPropertyHandler("w:tblStyleRowBandSize", "tableStyleRowBandSize")
31057
31078
  );
31058
- const translator$f = NodeTranslator.from(createMeasurementPropertyHandler("w:tblW", "tableWidth"));
31059
- const translator$e = NodeTranslator.from({
31079
+ const translator$g = NodeTranslator.from(createMeasurementPropertyHandler("w:tblW", "tableWidth"));
31080
+ const translator$f = NodeTranslator.from({
31060
31081
  xmlName: "w:tblpPr",
31061
31082
  sdNodeOrKeyName: "floatingTableProperties",
31062
31083
  attributes: ["w:leftFromText", "w:rightFromText", "w:topFromText", "w:bottomFromText", "w:tblpX", "w:tblpY"].map((attr) => createAttributeHandler(attr, null, parseInteger, integerToString)).concat(["w:horzAnchor", "w:vertAnchor", "w:tblpXSpec", "w:tblpYSpec"].map((attr) => createAttributeHandler(attr))),
@@ -31069,35 +31090,36 @@ const translator$e = NodeTranslator.from({
31069
31090
  }
31070
31091
  });
31071
31092
  const propertyTranslators$2 = [
31072
- translator$15,
31073
- translator$13,
31093
+ translator$16,
31094
+ translator$14,
31095
+ translator$12,
31074
31096
  translator$11,
31075
31097
  translator$10,
31098
+ translator$_,
31099
+ translator$Y,
31100
+ translator$W
31101
+ ];
31102
+ const translator$e = NodeTranslator.from(
31103
+ createNestedPropertiesTranslator("w:tblBorders", "borders", propertyTranslators$2)
31104
+ );
31105
+ const propertyTranslators$1 = [
31106
+ translator$15,
31107
+ translator$13,
31076
31108
  translator$$,
31077
31109
  translator$Z,
31078
31110
  translator$X,
31079
31111
  translator$V
31080
31112
  ];
31081
31113
  const translator$d = NodeTranslator.from(
31082
- createNestedPropertiesTranslator("w:tblBorders", "borders", propertyTranslators$2)
31083
- );
31084
- const propertyTranslators$1 = [
31085
- translator$14,
31086
- translator$12,
31087
- translator$_,
31088
- translator$Y,
31089
- translator$W,
31090
- translator$U
31091
- ];
31092
- const translator$c = NodeTranslator.from(
31093
31114
  createNestedPropertiesTranslator("w:tblCellMar", "cellMargins", propertyTranslators$1)
31094
31115
  );
31095
31116
  const propertyTranslators = [
31117
+ translator$q,
31118
+ translator$C,
31119
+ translator$1a,
31096
31120
  translator$p,
31097
31121
  translator$B,
31098
- translator$19,
31099
31122
  translator$o,
31100
- translator$A,
31101
31123
  translator$n,
31102
31124
  translator$m,
31103
31125
  translator$l,
@@ -31108,13 +31130,12 @@ const propertyTranslators = [
31108
31130
  translator$g,
31109
31131
  translator$f,
31110
31132
  translator$e,
31111
- translator$d,
31112
- translator$c
31133
+ translator$d
31113
31134
  ];
31114
- const translator$b = NodeTranslator.from(
31135
+ const translator$c = NodeTranslator.from(
31115
31136
  createNestedPropertiesTranslator("w:tblPr", "tableProperties", propertyTranslators)
31116
31137
  );
31117
- const translator$a = NodeTranslator.from(
31138
+ const translator$b = NodeTranslator.from(
31118
31139
  createSingleAttrPropertyHandler("w:gridCol", "col", "w:w", parseInteger, integerToString)
31119
31140
  );
31120
31141
  const DEFAULT_COLUMN_WIDTH_PX = 100;
@@ -31164,20 +31185,20 @@ const resolveFallbackColumnWidthTwips = (params, totalColumns, cellMinWidthTwips
31164
31185
  }
31165
31186
  return Math.max(fallbackWidthTwips, cellMinWidthTwips);
31166
31187
  };
31167
- const XML_NODE_NAME$a = "w:tblGrid";
31188
+ const XML_NODE_NAME$b = "w:tblGrid";
31168
31189
  const SD_ATTR_KEY$2 = "grid";
31169
31190
  const cellMinWidth = pixelsToTwips(10);
31170
- const encode$g = (params) => {
31191
+ const encode$h = (params) => {
31171
31192
  const { nodes } = params;
31172
31193
  const node = nodes[0];
31173
- const attributes = encodeProperties(node, { [translator$a.xmlName]: translator$a }, true);
31194
+ const attributes = encodeProperties(node, { [translator$b.xmlName]: translator$b }, true);
31174
31195
  return {
31175
- xmlName: XML_NODE_NAME$a,
31196
+ xmlName: XML_NODE_NAME$b,
31176
31197
  sdNodeOrKeyName: SD_ATTR_KEY$2,
31177
31198
  attributes
31178
31199
  };
31179
31200
  };
31180
- const decode$i = (params) => {
31201
+ const decode$j = (params) => {
31181
31202
  const { grid: rawGrid } = params.node.attrs || {};
31182
31203
  const grid = Array.isArray(rawGrid) ? rawGrid : [];
31183
31204
  const { firstRow = {} } = params.extraParams || {};
@@ -31200,10 +31221,10 @@ const decode$i = (params) => {
31200
31221
  const roundedWidth = Math.round(numericWidth);
31201
31222
  const minimumWidth = shouldEnforceMinimum ? cellMinWidth : 1;
31202
31223
  const safeWidth = Math.max(roundedWidth, minimumWidth);
31203
- const decoded = translator$a.decode({
31224
+ const decoded = translator$b.decode({
31204
31225
  node: { type: (
31205
31226
  /** @type {string} */
31206
- translator$a.sdNodeOrKeyName
31227
+ translator$b.sdNodeOrKeyName
31207
31228
  ), attrs: { col: safeWidth } }
31208
31229
  });
31209
31230
  if (decoded) elements.push(decoded);
@@ -31243,19 +31264,19 @@ const decode$i = (params) => {
31243
31264
  columnIndex++;
31244
31265
  }
31245
31266
  const newNode = {
31246
- name: XML_NODE_NAME$a,
31267
+ name: XML_NODE_NAME$b,
31247
31268
  attributes: {},
31248
31269
  elements
31249
31270
  };
31250
31271
  return newNode;
31251
31272
  };
31252
- const config$9 = {
31253
- xmlName: XML_NODE_NAME$a,
31273
+ const config$a = {
31274
+ xmlName: XML_NODE_NAME$b,
31254
31275
  sdNodeOrKeyName: SD_ATTR_KEY$2,
31255
- encode: encode$g,
31256
- decode: decode$i
31276
+ encode: encode$h,
31277
+ decode: decode$j
31257
31278
  };
31258
- const translator$9 = NodeTranslator.from(config$9);
31279
+ const translator$a = NodeTranslator.from(config$a);
31259
31280
  const DEFAULT_PAGE_WIDTH_TWIPS = 12240;
31260
31281
  const DEFAULT_PAGE_MARGIN_TWIPS = 1440;
31261
31282
  const DEFAULT_CONTENT_WIDTH_TWIPS = DEFAULT_PAGE_WIDTH_TWIPS - 2 * DEFAULT_PAGE_MARGIN_TWIPS;
@@ -31318,19 +31339,19 @@ const buildFallbackGridForTable = ({ params, rows, tableWidth, tableWidthMeasure
31318
31339
  columnWidths: Array(columnCount).fill(fallbackColumnWidthPx)
31319
31340
  };
31320
31341
  };
31321
- const XML_NODE_NAME$9 = "w:tbl";
31322
- const SD_NODE_NAME$7 = "table";
31323
- const encode$f = (params, encodedAttrs) => {
31342
+ const XML_NODE_NAME$a = "w:tbl";
31343
+ const SD_NODE_NAME$8 = "table";
31344
+ const encode$g = (params, encodedAttrs) => {
31324
31345
  const { nodes } = params;
31325
31346
  const node = nodes[0];
31326
31347
  const tblPr = node.elements.find((el) => el.name === "w:tblPr");
31327
31348
  if (tblPr) {
31328
- const encodedProperties = translator$b.encode({ ...params, nodes: [tblPr] });
31349
+ const encodedProperties = translator$c.encode({ ...params, nodes: [tblPr] });
31329
31350
  encodedAttrs["tableProperties"] = encodedProperties || {};
31330
31351
  }
31331
31352
  const tblGrid = node.elements.find((el) => el.name === "w:tblGrid");
31332
31353
  if (tblGrid) {
31333
- encodedAttrs["grid"] = translator$9.encode({ ...params, nodes: [tblGrid] }).attributes;
31354
+ encodedAttrs["grid"] = translator$a.encode({ ...params, nodes: [tblGrid] }).attributes;
31334
31355
  }
31335
31356
  [
31336
31357
  "tableStyleId",
@@ -31398,7 +31419,7 @@ const encode$f = (params, encodedAttrs) => {
31398
31419
  const totalColumns = columnWidths.length;
31399
31420
  const activeRowSpans = totalColumns > 0 ? new Array(totalColumns).fill(0) : [];
31400
31421
  rows.forEach((row, rowIndex) => {
31401
- const result = translator$u.encode({
31422
+ const result = translator$v.encode({
31402
31423
  ...params,
31403
31424
  nodes: [row],
31404
31425
  extraParams: {
@@ -31452,13 +31473,13 @@ const encode$f = (params, encodedAttrs) => {
31452
31473
  attrs: encodedAttrs
31453
31474
  };
31454
31475
  };
31455
- const decode$h = (params, decodedAttrs) => {
31476
+ const decode$i = (params, decodedAttrs) => {
31456
31477
  params.node = preProcessVerticalMergeCells(params.node, params);
31457
31478
  const { node } = params;
31458
31479
  const elements = translateChildNodes(params);
31459
31480
  const firstRow = node.content?.find((n) => n.type === "tableRow");
31460
31481
  const properties = node.attrs.grid;
31461
- const element = translator$9.decode({
31482
+ const element = translator$a.decode({
31462
31483
  ...params,
31463
31484
  node: { ...node, attrs: { ...node.attrs, grid: properties } },
31464
31485
  extraParams: {
@@ -31468,7 +31489,7 @@ const decode$h = (params, decodedAttrs) => {
31468
31489
  if (element) elements.unshift(element);
31469
31490
  if (node.attrs?.tableProperties) {
31470
31491
  const properties2 = { ...node.attrs.tableProperties };
31471
- const element2 = translator$b.decode({
31492
+ const element2 = translator$c.decode({
31472
31493
  ...params,
31473
31494
  node: { ...node, attrs: { ...node.attrs, tableProperties: properties2 } }
31474
31495
  });
@@ -31534,7 +31555,7 @@ function _getReferencedTableStyles(tableStyleReference, params) {
31534
31555
  if (baseTblPr && baseTblPr.elements) {
31535
31556
  tblPr.elements.push(...baseTblPr.elements);
31536
31557
  }
31537
- const tableProperties = translator$b.encode({ ...params, nodes: [tblPr] });
31558
+ const tableProperties = translator$c.encode({ ...params, nodes: [tblPr] });
31538
31559
  if (tableProperties) {
31539
31560
  const { borders, rowBorders } = _processTableBorders(tableProperties.borders || {});
31540
31561
  if (borders) stylesToReturn.borders = borders;
@@ -31553,85 +31574,85 @@ function _getReferencedTableStyles(tableStyleReference, params) {
31553
31574
  }
31554
31575
  return stylesToReturn;
31555
31576
  }
31556
- const config$8 = {
31557
- xmlName: XML_NODE_NAME$9,
31558
- sdNodeOrKeyName: SD_NODE_NAME$7,
31577
+ const config$9 = {
31578
+ xmlName: XML_NODE_NAME$a,
31579
+ sdNodeOrKeyName: SD_NODE_NAME$8,
31559
31580
  type: NodeTranslator.translatorTypes.NODE,
31560
- encode: encode$f,
31561
- decode: decode$h,
31581
+ encode: encode$g,
31582
+ decode: decode$i,
31562
31583
  attributes: []
31563
31584
  };
31564
- const translator$8 = NodeTranslator.from(config$8);
31565
- const encode$e = (attributes) => {
31585
+ const translator$9 = NodeTranslator.from(config$9);
31586
+ const encode$f = (attributes) => {
31566
31587
  return attributes["w:id"];
31567
31588
  };
31568
- const decode$g = (attrs) => {
31589
+ const decode$h = (attrs) => {
31569
31590
  return attrs.id;
31570
31591
  };
31571
31592
  const attrConfig$7 = Object.freeze({
31572
31593
  xmlName: "w:id",
31573
31594
  sdName: "id",
31574
- encode: encode$e,
31575
- decode: decode$g
31595
+ encode: encode$f,
31596
+ decode: decode$h
31576
31597
  });
31577
- const encode$d = (attributes) => {
31598
+ const encode$e = (attributes) => {
31578
31599
  return attributes["w:name"];
31579
31600
  };
31580
- const decode$f = (attrs) => {
31601
+ const decode$g = (attrs) => {
31581
31602
  return attrs.name;
31582
31603
  };
31583
31604
  const attrConfig$6 = Object.freeze({
31584
31605
  xmlName: "w:name",
31585
31606
  sdName: "name",
31586
- encode: encode$d,
31587
- decode: decode$f
31607
+ encode: encode$e,
31608
+ decode: decode$g
31588
31609
  });
31589
- const encode$c = (attributes) => {
31610
+ const encode$d = (attributes) => {
31590
31611
  return attributes["w:colFirst"];
31591
31612
  };
31592
- const decode$e = (attrs) => {
31613
+ const decode$f = (attrs) => {
31593
31614
  return attrs.colFirst;
31594
31615
  };
31595
31616
  const attrConfig$5 = Object.freeze({
31596
31617
  xmlName: "w:colFirst",
31597
31618
  sdName: "colFirst",
31598
- encode: encode$c,
31599
- decode: decode$e
31619
+ encode: encode$d,
31620
+ decode: decode$f
31600
31621
  });
31601
- const encode$b = (attributes) => {
31622
+ const encode$c = (attributes) => {
31602
31623
  return attributes["w:colLast"];
31603
31624
  };
31604
- const decode$d = (attrs) => {
31625
+ const decode$e = (attrs) => {
31605
31626
  return attrs.colLast;
31606
31627
  };
31607
31628
  const attrConfig$4 = Object.freeze({
31608
31629
  xmlName: "w:colLast",
31609
31630
  sdName: "colLast",
31610
- encode: encode$b,
31611
- decode: decode$d
31631
+ encode: encode$c,
31632
+ decode: decode$e
31612
31633
  });
31613
- const encode$a = (attributes) => {
31634
+ const encode$b = (attributes) => {
31614
31635
  return attributes["w:displacedByCustomXml"];
31615
31636
  };
31616
- const decode$c = (attrs) => {
31637
+ const decode$d = (attrs) => {
31617
31638
  return attrs.displacedByCustomXml;
31618
31639
  };
31619
31640
  const attrConfig$3 = Object.freeze({
31620
31641
  xmlName: "w:displacedByCustomXml",
31621
31642
  sdName: "displacedByCustomXml",
31622
- encode: encode$a,
31623
- decode: decode$c
31643
+ encode: encode$b,
31644
+ decode: decode$d
31624
31645
  });
31625
- const validXmlAttributes$5 = [attrConfig$7, attrConfig$6, attrConfig$5, attrConfig$4, attrConfig$3];
31626
- const XML_NODE_NAME$8 = "w:bookmarkStart";
31627
- const SD_NODE_NAME$6 = "bookmarkStart";
31628
- const encode$9 = (params, encodedAttrs = {}) => {
31646
+ const validXmlAttributes$6 = [attrConfig$7, attrConfig$6, attrConfig$5, attrConfig$4, attrConfig$3];
31647
+ const XML_NODE_NAME$9 = "w:bookmarkStart";
31648
+ const SD_NODE_NAME$7 = "bookmarkStart";
31649
+ const encode$a = (params, encodedAttrs = {}) => {
31629
31650
  return {
31630
31651
  type: "bookmarkStart",
31631
31652
  attrs: encodedAttrs
31632
31653
  };
31633
31654
  };
31634
- const decode$b = (params, decodedAttrs = {}) => {
31655
+ const decode$c = (params, decodedAttrs = {}) => {
31635
31656
  const result = {
31636
31657
  name: "w:bookmarkStart",
31637
31658
  elements: []
@@ -31641,49 +31662,49 @@ const decode$b = (params, decodedAttrs = {}) => {
31641
31662
  }
31642
31663
  return result;
31643
31664
  };
31644
- const config$7 = {
31645
- xmlName: XML_NODE_NAME$8,
31646
- sdNodeOrKeyName: SD_NODE_NAME$6,
31665
+ const config$8 = {
31666
+ xmlName: XML_NODE_NAME$9,
31667
+ sdNodeOrKeyName: SD_NODE_NAME$7,
31647
31668
  type: NodeTranslator.translatorTypes.NODE,
31648
- encode: encode$9,
31649
- decode: decode$b,
31650
- attributes: validXmlAttributes$5
31669
+ encode: encode$a,
31670
+ decode: decode$c,
31671
+ attributes: validXmlAttributes$6
31651
31672
  };
31652
- const translator$7 = NodeTranslator.from(config$7);
31653
- const encode$8 = (attributes) => {
31673
+ const translator$8 = NodeTranslator.from(config$8);
31674
+ const encode$9 = (attributes) => {
31654
31675
  return attributes["w:id"];
31655
31676
  };
31656
- const decode$a = (attrs) => {
31677
+ const decode$b = (attrs) => {
31657
31678
  return attrs.id;
31658
31679
  };
31659
31680
  const attrConfig$2 = Object.freeze({
31660
31681
  xmlName: "w:id",
31661
31682
  sdName: "id",
31662
- encode: encode$8,
31663
- decode: decode$a
31683
+ encode: encode$9,
31684
+ decode: decode$b
31664
31685
  });
31665
- const encode$7 = (attributes) => {
31686
+ const encode$8 = (attributes) => {
31666
31687
  return attributes["w:displacedByCustomXml"];
31667
31688
  };
31668
- const decode$9 = (attrs) => {
31689
+ const decode$a = (attrs) => {
31669
31690
  return attrs.displacedByCustomXml;
31670
31691
  };
31671
31692
  const attrConfig$1 = Object.freeze({
31672
31693
  xmlName: "w:displacedByCustomXml",
31673
31694
  sdName: "displacedByCustomXml",
31674
- encode: encode$7,
31675
- decode: decode$9
31695
+ encode: encode$8,
31696
+ decode: decode$a
31676
31697
  });
31677
- const validXmlAttributes$4 = [attrConfig$2, attrConfig$1];
31678
- const XML_NODE_NAME$7 = "w:bookmarkEnd";
31679
- const SD_NODE_NAME$5 = "bookmarkEnd";
31680
- const encode$6 = (params, encodedAttrs = {}) => {
31698
+ const validXmlAttributes$5 = [attrConfig$2, attrConfig$1];
31699
+ const XML_NODE_NAME$8 = "w:bookmarkEnd";
31700
+ const SD_NODE_NAME$6 = "bookmarkEnd";
31701
+ const encode$7 = (params, encodedAttrs = {}) => {
31681
31702
  return {
31682
31703
  type: "bookmarkEnd",
31683
31704
  attrs: encodedAttrs
31684
31705
  };
31685
31706
  };
31686
- const decode$8 = (params, decodedAttrs = {}) => {
31707
+ const decode$9 = (params, decodedAttrs = {}) => {
31687
31708
  const result = {
31688
31709
  name: "w:bookmarkEnd",
31689
31710
  elements: []
@@ -31693,27 +31714,27 @@ const decode$8 = (params, decodedAttrs = {}) => {
31693
31714
  }
31694
31715
  return result;
31695
31716
  };
31696
- const config$6 = {
31697
- xmlName: XML_NODE_NAME$7,
31698
- sdNodeOrKeyName: SD_NODE_NAME$5,
31717
+ const config$7 = {
31718
+ xmlName: XML_NODE_NAME$8,
31719
+ sdNodeOrKeyName: SD_NODE_NAME$6,
31699
31720
  type: NodeTranslator.translatorTypes.NODE,
31700
- encode: encode$6,
31701
- decode: decode$8,
31702
- attributes: validXmlAttributes$4
31721
+ encode: encode$7,
31722
+ decode: decode$9,
31723
+ attributes: validXmlAttributes$5
31703
31724
  };
31704
- const translator$6 = NodeTranslator.from(config$6);
31705
- const decode$7 = (attrs) => attrs?.["w:id"];
31725
+ const translator$7 = NodeTranslator.from(config$7);
31726
+ const decode$8 = (attrs) => attrs?.["w:id"];
31706
31727
  const attrConfig = Object.freeze({
31707
31728
  xmlName: "w:id",
31708
31729
  sdName: "w:id",
31709
31730
  // We do not translate it from 'w:id' to 'id' when encoding, so the name is the same
31710
31731
  encode: () => {
31711
31732
  },
31712
- decode: decode$7
31733
+ decode: decode$8
31713
31734
  });
31714
- const XML_NODE_NAME$6 = "w:commentRange";
31715
- const SD_NODE_NAME$4 = "commentRange";
31716
- const decode$6 = (params) => {
31735
+ const XML_NODE_NAME$7 = "w:commentRange";
31736
+ const SD_NODE_NAME$5 = "commentRange";
31737
+ const decode$7 = (params) => {
31717
31738
  const { node, comments, commentsExportType, exportedCommentDefs } = params;
31718
31739
  if (!node) return;
31719
31740
  if (!comments) return;
@@ -31756,19 +31777,19 @@ const getCommentSchema = (type2, commentIndex) => {
31756
31777
  };
31757
31778
  };
31758
31779
  const getConfig = (type2) => ({
31759
- xmlName: `${XML_NODE_NAME$6}${type2}`,
31760
- sdNodeOrKeyName: `${SD_NODE_NAME$4}${type2}`,
31780
+ xmlName: `${XML_NODE_NAME$7}${type2}`,
31781
+ sdNodeOrKeyName: `${SD_NODE_NAME$5}${type2}`,
31761
31782
  type: NodeTranslator.translatorTypes.NODE,
31762
31783
  encode: () => {
31763
31784
  },
31764
- decode: decode$6,
31785
+ decode: decode$7,
31765
31786
  attributes: [attrConfig]
31766
31787
  });
31767
31788
  const commentRangeStartTranslator = NodeTranslator.from(getConfig("Start"));
31768
31789
  const commentRangeEndTranslator = NodeTranslator.from(getConfig("End"));
31769
- const XML_NODE_NAME$5 = "sd:pageReference";
31770
- const SD_NODE_NAME$3 = "pageReference";
31771
- const encode$5 = (params) => {
31790
+ const XML_NODE_NAME$6 = "sd:pageReference";
31791
+ const SD_NODE_NAME$4 = "pageReference";
31792
+ const encode$6 = (params) => {
31772
31793
  const { nodes = [], nodeListHandler } = params || {};
31773
31794
  const node = nodes[0];
31774
31795
  const processedText = nodeListHandler.handler({
@@ -31785,7 +31806,7 @@ const encode$5 = (params) => {
31785
31806
  };
31786
31807
  return processedNode;
31787
31808
  };
31788
- const decode$5 = (params) => {
31809
+ const decode$6 = (params) => {
31789
31810
  const { node } = params;
31790
31811
  const outputMarks = processOutputMarks(node.attrs?.marksAsAttrs || []);
31791
31812
  const contentNodes = (node.content ?? []).flatMap((n) => exportSchemaToJson({ ...params, node: n }));
@@ -31858,17 +31879,17 @@ const decode$5 = (params) => {
31858
31879
  ];
31859
31880
  return translated;
31860
31881
  };
31861
- const config$5 = {
31862
- xmlName: XML_NODE_NAME$5,
31863
- sdNodeOrKeyName: SD_NODE_NAME$3,
31882
+ const config$6 = {
31883
+ xmlName: XML_NODE_NAME$6,
31884
+ sdNodeOrKeyName: SD_NODE_NAME$4,
31864
31885
  type: NodeTranslator.translatorTypes.NODE,
31865
- encode: encode$5,
31866
- decode: decode$5
31886
+ encode: encode$6,
31887
+ decode: decode$6
31867
31888
  };
31868
- const translator$5 = NodeTranslator.from(config$5);
31869
- const XML_NODE_NAME$4 = "sd:tableOfContents";
31870
- const SD_NODE_NAME$2 = "tableOfContents";
31871
- const encode$4 = (params) => {
31889
+ const translator$6 = NodeTranslator.from(config$6);
31890
+ const XML_NODE_NAME$5 = "sd:tableOfContents";
31891
+ const SD_NODE_NAME$3 = "tableOfContents";
31892
+ const encode$5 = (params) => {
31872
31893
  const { nodes = [], nodeListHandler } = params || {};
31873
31894
  const node = nodes[0];
31874
31895
  const processedContent = nodeListHandler.handler({
@@ -31884,7 +31905,7 @@ const encode$4 = (params) => {
31884
31905
  };
31885
31906
  return processedNode;
31886
31907
  };
31887
- const decode$4 = (params) => {
31908
+ const decode$5 = (params) => {
31888
31909
  const { node } = params;
31889
31910
  const contentNodes = node.content.map((n) => exportSchemaToJson({ ...params, node: n }));
31890
31911
  const tocBeginElements = [
@@ -31931,14 +31952,14 @@ const decode$4 = (params) => {
31931
31952
  }
31932
31953
  return contentNodes;
31933
31954
  };
31934
- const config$4 = {
31935
- xmlName: XML_NODE_NAME$4,
31936
- sdNodeOrKeyName: SD_NODE_NAME$2,
31955
+ const config$5 = {
31956
+ xmlName: XML_NODE_NAME$5,
31957
+ sdNodeOrKeyName: SD_NODE_NAME$3,
31937
31958
  type: NodeTranslator.translatorTypes.NODE,
31938
- encode: encode$4,
31939
- decode: decode$4
31959
+ encode: encode$5,
31960
+ decode: decode$5
31940
31961
  };
31941
- const translator$4 = NodeTranslator.from(config$4);
31962
+ const translator$5 = NodeTranslator.from(config$5);
31942
31963
  function parseInlineStyles(styleString) {
31943
31964
  if (!styleString) return {};
31944
31965
  return styleString.split(";").filter((style) => !!style.trim()).reduce((acc, style) => {
@@ -32074,7 +32095,7 @@ const handleDrawingNode = (params) => {
32074
32095
  if (mainNode.name === "w:drawing") node = mainNode;
32075
32096
  else node = mainNode.elements.find((el) => el.name === "w:drawing");
32076
32097
  if (!node) return { nodes: [], consumed: 0 };
32077
- const schemaNode = translator$r.encode(params);
32098
+ const schemaNode = translator$s.encode(params);
32078
32099
  const newNodes = schemaNode ? [schemaNode] : [];
32079
32100
  return { nodes: newNodes, consumed: 1 };
32080
32101
  };
@@ -32099,15 +32120,15 @@ const createTrackStyleMark = (marks) => {
32099
32120
  }
32100
32121
  return void 0;
32101
32122
  };
32102
- const XML_NODE_NAME$3 = "w:del";
32123
+ const XML_NODE_NAME$4 = "w:del";
32103
32124
  const SD_ATTR_KEY$1 = "trackDelete";
32104
- const validXmlAttributes$3 = [
32125
+ const validXmlAttributes$4 = [
32105
32126
  createAttributeHandler("w:id", "id"),
32106
32127
  createAttributeHandler("w:date", "date"),
32107
32128
  createAttributeHandler("w:author", "author"),
32108
32129
  createAttributeHandler("w:authorEmail", "authorEmail")
32109
32130
  ];
32110
- const encode$3 = (params, encodedAttrs = {}) => {
32131
+ const encode$4 = (params, encodedAttrs = {}) => {
32111
32132
  const { nodeListHandler, extraParams = {} } = params;
32112
32133
  const { node } = extraParams;
32113
32134
  const subs = nodeListHandler.handler({
@@ -32123,7 +32144,7 @@ const encode$3 = (params, encodedAttrs = {}) => {
32123
32144
  });
32124
32145
  return subs;
32125
32146
  };
32126
- function decode$3(params) {
32147
+ function decode$4(params) {
32127
32148
  const { node } = params;
32128
32149
  if (!node || !node.type) {
32129
32150
  return null;
@@ -32150,24 +32171,24 @@ function decode$3(params) {
32150
32171
  elements: [translatedTextNode]
32151
32172
  };
32152
32173
  }
32153
- const config$3 = {
32154
- xmlName: XML_NODE_NAME$3,
32174
+ const config$4 = {
32175
+ xmlName: XML_NODE_NAME$4,
32155
32176
  sdNodeOrKeyName: SD_ATTR_KEY$1,
32156
32177
  type: NodeTranslator.translatorTypes.ATTRIBUTE,
32157
- encode: encode$3,
32158
- decode: decode$3,
32159
- attributes: validXmlAttributes$3
32178
+ encode: encode$4,
32179
+ decode: decode$4,
32180
+ attributes: validXmlAttributes$4
32160
32181
  };
32161
- const translator$3 = NodeTranslator.from(config$3);
32162
- const XML_NODE_NAME$2 = "w:ins";
32182
+ const translator$4 = NodeTranslator.from(config$4);
32183
+ const XML_NODE_NAME$3 = "w:ins";
32163
32184
  const SD_ATTR_KEY = "trackInsert";
32164
- const validXmlAttributes$2 = [
32185
+ const validXmlAttributes$3 = [
32165
32186
  createAttributeHandler("w:id", "id"),
32166
32187
  createAttributeHandler("w:date", "date"),
32167
32188
  createAttributeHandler("w:author", "author"),
32168
32189
  createAttributeHandler("w:authorEmail", "authorEmail")
32169
32190
  ];
32170
- const encode$2 = (params, encodedAttrs = {}) => {
32191
+ const encode$3 = (params, encodedAttrs = {}) => {
32171
32192
  const { nodeListHandler, extraParams = {} } = params;
32172
32193
  const { node } = extraParams;
32173
32194
  const subs = nodeListHandler.handler({
@@ -32183,7 +32204,7 @@ const encode$2 = (params, encodedAttrs = {}) => {
32183
32204
  });
32184
32205
  return subs;
32185
32206
  };
32186
- function decode$2(params) {
32207
+ function decode$3(params) {
32187
32208
  const { node } = params;
32188
32209
  if (!node || !node.type) {
32189
32210
  return null;
@@ -32208,15 +32229,15 @@ function decode$2(params) {
32208
32229
  elements: [translatedTextNode]
32209
32230
  };
32210
32231
  }
32211
- const config$2 = {
32212
- xmlName: XML_NODE_NAME$2,
32232
+ const config$3 = {
32233
+ xmlName: XML_NODE_NAME$3,
32213
32234
  sdNodeOrKeyName: SD_ATTR_KEY,
32214
32235
  type: NodeTranslator.translatorTypes.ATTRIBUTE,
32215
- encode: encode$2,
32216
- decode: decode$2,
32217
- attributes: validXmlAttributes$2
32236
+ encode: encode$3,
32237
+ decode: decode$3,
32238
+ attributes: validXmlAttributes$3
32218
32239
  };
32219
- const translator$2 = NodeTranslator.from(config$2);
32240
+ const translator$3 = NodeTranslator.from(config$3);
32220
32241
  const isTrackChangeElement = (node) => node?.name === "w:del" || node?.name === "w:ins";
32221
32242
  const unwrapTrackChangeNode = (node) => {
32222
32243
  if (!node) {
@@ -32255,7 +32276,7 @@ const handleTrackChangeNode = (params) => {
32255
32276
  };
32256
32277
  switch (mainNode.name) {
32257
32278
  case "w:del":
32258
- result = translator$3.encode({
32279
+ result = translator$4.encode({
32259
32280
  extraParams: {
32260
32281
  node: mainNode
32261
32282
  },
@@ -32263,7 +32284,7 @@ const handleTrackChangeNode = (params) => {
32263
32284
  });
32264
32285
  break;
32265
32286
  case "w:ins":
32266
- result = translator$2.encode({
32287
+ result = translator$3.encode({
32267
32288
  extraParams: {
32268
32289
  node: mainNode
32269
32290
  },
@@ -32277,8 +32298,121 @@ const trackChangeNodeHandlerEntity = {
32277
32298
  handlerName: "trackChangeNodeHandler",
32278
32299
  handler: handleTrackChangeNode
32279
32300
  };
32280
- const hyperlinkNodeHandlerEntity = generateV2HandlerEntity("hyperlinkNodeHandler", translator$1c);
32281
- const runNodeHandlerEntity = generateV2HandlerEntity("runNodeHandler", translator$1b);
32301
+ const hyperlinkNodeHandlerEntity = generateV2HandlerEntity("hyperlinkNodeHandler", translator$1d);
32302
+ const runNodeHandlerEntity = generateV2HandlerEntity("runNodeHandler", translator$1c);
32303
+ const XML_NODE_NAME$2 = "w:t";
32304
+ const SD_NODE_NAME$2 = "text";
32305
+ const validXmlAttributes$2 = [createAttributeHandler("xml:space", "xmlSpace")];
32306
+ const encode$2 = (params, encodedAttrs = {}) => {
32307
+ const { node } = params.extraParams;
32308
+ const { elements, type: type2, attributes } = node;
32309
+ let text;
32310
+ if (!elements) {
32311
+ return null;
32312
+ }
32313
+ if (elements.length === 1) {
32314
+ text = elements[0].text;
32315
+ const xmlSpace = encodedAttrs.xmlSpace ?? elements[0]?.attributes?.["xml:space"];
32316
+ if (xmlSpace !== "preserve" && typeof text === "string") {
32317
+ text = text.replace(/^\s+/, "").replace(/\s+$/, "");
32318
+ }
32319
+ text = text.replace(/\[\[sdspace\]\]/g, "");
32320
+ } else if (!elements.length && encodedAttrs.xmlSpace === "preserve") {
32321
+ text = " ";
32322
+ } else return null;
32323
+ return {
32324
+ type: "text",
32325
+ text,
32326
+ attrs: { type: type2, attributes: attributes || {} },
32327
+ marks: []
32328
+ };
32329
+ };
32330
+ const decode$2 = (params) => {
32331
+ const { node, extraParams } = params;
32332
+ if (!node || !node.type) {
32333
+ return null;
32334
+ }
32335
+ const trackedMarks = ["trackDelete", "trackInsert"];
32336
+ const trackedMark = node.marks?.find((m2) => trackedMarks.includes(m2.type));
32337
+ if (trackedMark) {
32338
+ switch (trackedMark.type) {
32339
+ case "trackDelete":
32340
+ return translator$4.decode(params);
32341
+ case "trackInsert":
32342
+ return translator$3.decode(params);
32343
+ }
32344
+ }
32345
+ const isLinkNode = node.marks?.some((m2) => m2.type === "link");
32346
+ if (isLinkNode && !extraParams?.linkProcessed) {
32347
+ return translator$1d.decode(params);
32348
+ }
32349
+ const { text, marks = [] } = node;
32350
+ return getTextNodeForExport(text, marks, params);
32351
+ };
32352
+ const config$2 = {
32353
+ xmlName: XML_NODE_NAME$2,
32354
+ sdNodeOrKeyName: SD_NODE_NAME$2,
32355
+ type: NodeTranslator.translatorTypes.NODE,
32356
+ encode: encode$2,
32357
+ decode: decode$2,
32358
+ attributes: validXmlAttributes$2
32359
+ };
32360
+ const translator$2 = NodeTranslator.from(config$2);
32361
+ const handleTextNode = (params) => {
32362
+ const { nodes, insideTrackChange } = params;
32363
+ if (nodes.length === 0 || !(nodes[0].name === "w:t" || insideTrackChange && nodes[0].name === "w:delText")) {
32364
+ return { nodes: [], consumed: 0 };
32365
+ }
32366
+ const node = nodes[0];
32367
+ const resultNode = translator$2.encode({
32368
+ ...params,
32369
+ extraParams: {
32370
+ ...params.extraParams || {},
32371
+ node
32372
+ }
32373
+ });
32374
+ if (!resultNode) return { nodes: [], consumed: 0 };
32375
+ return {
32376
+ nodes: [resultNode],
32377
+ consumed: 1
32378
+ };
32379
+ };
32380
+ const textNodeHandlerEntity = {
32381
+ handlerName: "textNodeHandler",
32382
+ handler: handleTextNode
32383
+ };
32384
+ const handleParagraphNode = (params) => {
32385
+ const { nodes } = params;
32386
+ if (nodes.length === 0 || nodes[0].name !== "w:p") {
32387
+ return { nodes: [], consumed: 0 };
32388
+ }
32389
+ const schemaNode = translator$1p.encode(params);
32390
+ const newNodes = schemaNode ? [schemaNode] : [];
32391
+ return { nodes: newNodes, consumed: 1 };
32392
+ };
32393
+ const paragraphNodeHandlerEntity = {
32394
+ handlerName: "paragraphNodeHandler",
32395
+ handler: handleParagraphNode
32396
+ };
32397
+ const handleSdtNode = (params) => {
32398
+ const { nodes } = params;
32399
+ if (nodes.length === 0 || nodes[0].name !== "w:sdt") {
32400
+ return { nodes: [], consumed: 0 };
32401
+ }
32402
+ const result = translator$r.encode(params);
32403
+ if (!result) {
32404
+ return { nodes: [], consumed: 0 };
32405
+ }
32406
+ const resultNodes = Array.isArray(result) ? result : [result];
32407
+ return {
32408
+ nodes: resultNodes,
32409
+ consumed: 1
32410
+ };
32411
+ };
32412
+ const sdtNodeHandlerEntity = {
32413
+ handlerName: "sdtNodeHandler",
32414
+ handler: handleSdtNode
32415
+ };
32282
32416
  function parseProperties(node) {
32283
32417
  const marks = [];
32284
32418
  const unknownMarks = [];
@@ -32330,73 +32464,6 @@ function getElementName(element) {
32330
32464
  const isPropertiesElement = (element) => {
32331
32465
  return !!SuperConverter.propertyTypes[element.name || element.type];
32332
32466
  };
32333
- const handleTextNode = (params) => {
32334
- const { nodes, insideTrackChange } = params;
32335
- if (nodes.length === 0 || !(nodes[0].name === "w:t" || insideTrackChange && nodes[0].name === "w:delText")) {
32336
- return { nodes: [], consumed: 0 };
32337
- }
32338
- const node = nodes[0];
32339
- const { type: type2 } = node;
32340
- const { attributes, elements, marks = [] } = parseProperties(node);
32341
- let text;
32342
- if (elements.length === 1) {
32343
- text = elements[0].text;
32344
- const xmlSpace = node.attributes?.["xml:space"] ?? elements[0]?.attributes?.["xml:space"];
32345
- if (xmlSpace !== "preserve" && typeof text === "string") {
32346
- text = text.replace(/^\s+/, "").replace(/\s+$/, "");
32347
- }
32348
- text = text.replace(/\[\[sdspace\]\]/g, "");
32349
- } else if (!elements.length && "attributes" in node && node.attributes["xml:space"] === "preserve") {
32350
- text = " ";
32351
- } else return { nodes: [], consumed: 0 };
32352
- return {
32353
- nodes: [
32354
- {
32355
- type: getElementName(node),
32356
- text,
32357
- attrs: { type: type2, attributes: attributes || {} },
32358
- marks
32359
- }
32360
- ],
32361
- consumed: 1
32362
- };
32363
- };
32364
- const textNodeHandlerEntity = {
32365
- handlerName: "textNodeHandler",
32366
- handler: handleTextNode
32367
- };
32368
- const handleParagraphNode = (params) => {
32369
- const { nodes } = params;
32370
- if (nodes.length === 0 || nodes[0].name !== "w:p") {
32371
- return { nodes: [], consumed: 0 };
32372
- }
32373
- const schemaNode = translator$1o.encode(params);
32374
- const newNodes = schemaNode ? [schemaNode] : [];
32375
- return { nodes: newNodes, consumed: 1 };
32376
- };
32377
- const paragraphNodeHandlerEntity = {
32378
- handlerName: "paragraphNodeHandler",
32379
- handler: handleParagraphNode
32380
- };
32381
- const handleSdtNode = (params) => {
32382
- const { nodes } = params;
32383
- if (nodes.length === 0 || nodes[0].name !== "w:sdt") {
32384
- return { nodes: [], consumed: 0 };
32385
- }
32386
- const result = translator$q.encode(params);
32387
- if (!result) {
32388
- return { nodes: [], consumed: 0 };
32389
- }
32390
- const resultNodes = Array.isArray(result) ? result : [result];
32391
- return {
32392
- nodes: resultNodes,
32393
- consumed: 1
32394
- };
32395
- };
32396
- const sdtNodeHandlerEntity = {
32397
- handlerName: "sdtNodeHandler",
32398
- handler: handleSdtNode
32399
- };
32400
32467
  const handleStandardNode = (params) => {
32401
32468
  const { nodes, docx, nodeListHandler } = params;
32402
32469
  if (!nodes || nodes.length === 0) {
@@ -32473,7 +32540,7 @@ const handler = (params) => {
32473
32540
  if (nodes.length === 0 || nodes[0].name !== "w:br") {
32474
32541
  return { nodes: [], consumed: 0 };
32475
32542
  }
32476
- const result = translator$1r.encode(params);
32543
+ const result = translator$1s.encode(params);
32477
32544
  if (!result) return { nodes: [], consumed: 0 };
32478
32545
  return {
32479
32546
  nodes: [result],
@@ -32545,7 +32612,7 @@ const handleBookmarkStartNode = (params) => {
32545
32612
  if (isCustomMarkBookmark(nodes[0], params.editor)) {
32546
32613
  return handleBookmarkNode(params);
32547
32614
  }
32548
- const node = translator$7.encode(params);
32615
+ const node = translator$8.encode(params);
32549
32616
  if (!node) return { nodes: [], consumed: 0 };
32550
32617
  return { nodes: [node], consumed: 1 };
32551
32618
  };
@@ -32577,7 +32644,7 @@ const handleBookmarkEndNode = (params) => {
32577
32644
  if (!nodes.length || nodes[0].name !== "w:bookmarkEnd") {
32578
32645
  return { nodes: [], consumed: 0 };
32579
32646
  }
32580
- const node = translator$6.encode(params);
32647
+ const node = translator$7.encode(params);
32581
32648
  if (!node) return { nodes: [], consumed: 0 };
32582
32649
  return { nodes: [node], consumed: 1 };
32583
32650
  };
@@ -32776,7 +32843,7 @@ const autoTotalPageCountEntity = {
32776
32843
  handlerName: "autoTotalPageCountEntity",
32777
32844
  handler: handleAutoTotalPageNumber
32778
32845
  };
32779
- const pageReferenceEntity = generateV2HandlerEntity("pageReferenceNodeHandler", translator$5);
32846
+ const pageReferenceEntity = generateV2HandlerEntity("pageReferenceNodeHandler", translator$6);
32780
32847
  const handlePictNode = (params) => {
32781
32848
  const { nodes } = params;
32782
32849
  if (!nodes.length || nodes[0].name !== "w:p") {
@@ -33170,15 +33237,15 @@ const handleTabNode = (params) => {
33170
33237
  if (!nodes.length || nodes[0].name !== "w:tab") {
33171
33238
  return { nodes: [], consumed: 0 };
33172
33239
  }
33173
- const node = translator$1p.encode(params);
33240
+ const node = translator$1q.encode(params);
33174
33241
  return { nodes: [node], consumed: 1 };
33175
33242
  };
33176
33243
  const tabNodeEntityHandler = {
33177
33244
  handlerName: "w:tabTranslator",
33178
33245
  handler: handleTabNode
33179
33246
  };
33180
- const tableNodeHandlerEntity = generateV2HandlerEntity("tableNodeHandler", translator$8);
33181
- const tableOfContentsHandlerEntity = generateV2HandlerEntity("tableOfContentsHandler", translator$4);
33247
+ const tableNodeHandlerEntity = generateV2HandlerEntity("tableNodeHandler", translator$9);
33248
+ const tableOfContentsHandlerEntity = generateV2HandlerEntity("tableOfContentsHandler", translator$5);
33182
33249
  function preProcessPageInstruction(nodesToCombine) {
33183
33250
  const pageNumNode = {
33184
33251
  name: "sd:autoPageNumber",
@@ -34110,6 +34177,7 @@ const config = {
34110
34177
  attributes: validXmlAttributes
34111
34178
  };
34112
34179
  const translator = NodeTranslator.from(config);
34180
+ const RUN_LEVEL_WRAPPERS = /* @__PURE__ */ new Set(["w:hyperlink", "w:ins", "w:del"]);
34113
34181
  const DEFAULT_SECTION_PROPS_TWIPS = Object.freeze({
34114
34182
  pageSize: Object.freeze({ width: "12240", height: "15840" }),
34115
34183
  pageMargins: Object.freeze({
@@ -34175,27 +34243,66 @@ const isLineBreakOnlyRun = (node) => {
34175
34243
  if (!runContent.length) return false;
34176
34244
  return runContent.every((child) => child?.type === "lineBreak" || child?.type === "hardBreak");
34177
34245
  };
34246
+ function convertSdtContentToRuns(elements) {
34247
+ const normalized = Array.isArray(elements) ? elements : [elements];
34248
+ const runs = [];
34249
+ normalized.forEach((element) => {
34250
+ if (!element) return;
34251
+ if (element.name === "w:sdtPr") {
34252
+ return;
34253
+ }
34254
+ if (element.name === "w:r") {
34255
+ runs.push(element);
34256
+ return;
34257
+ }
34258
+ if (element.name === "w:sdt") {
34259
+ const sdtContent = (element.elements || []).find((child) => child?.name === "w:sdtContent");
34260
+ if (sdtContent?.elements) {
34261
+ runs.push(...convertSdtContentToRuns(sdtContent.elements));
34262
+ }
34263
+ return;
34264
+ }
34265
+ if (RUN_LEVEL_WRAPPERS.has(element.name)) {
34266
+ const wrapperElements = convertSdtContentToRuns(element.elements || []);
34267
+ if (wrapperElements.length) {
34268
+ runs.push({
34269
+ ...element,
34270
+ elements: wrapperElements
34271
+ });
34272
+ }
34273
+ return;
34274
+ }
34275
+ if (element.name) {
34276
+ runs.push({
34277
+ name: "w:r",
34278
+ type: "element",
34279
+ elements: element.elements || [element]
34280
+ });
34281
+ }
34282
+ });
34283
+ return runs.filter((run2) => Array.isArray(run2.elements) && run2.elements.length > 0);
34284
+ }
34178
34285
  function exportSchemaToJson(params) {
34179
34286
  const { type: type2 } = params.node || {};
34180
34287
  const router = {
34181
34288
  doc: translateDocumentNode,
34182
34289
  body: translateBodyNode,
34183
34290
  heading: translateHeadingNode,
34184
- paragraph: translator$1o,
34185
- run: translator$1b,
34186
- text: translateTextNode,
34291
+ paragraph: translator$1p,
34292
+ run: translator$1c,
34293
+ text: translator$2,
34187
34294
  bulletList: translateList,
34188
34295
  orderedList: translateList,
34189
- lineBreak: translator$1r,
34190
- table: translator$8,
34191
- tableRow: translator$u,
34192
- tableCell: translator$H,
34193
- bookmarkStart: translator$7,
34194
- bookmarkEnd: translator$6,
34195
- fieldAnnotation: translator$q,
34196
- tab: translator$1p,
34197
- image: translator$r,
34198
- hardBreak: translator$1r,
34296
+ lineBreak: translator$1s,
34297
+ table: translator$9,
34298
+ tableRow: translator$v,
34299
+ tableCell: translator$I,
34300
+ bookmarkStart: translator$8,
34301
+ bookmarkEnd: translator$7,
34302
+ fieldAnnotation: translator$r,
34303
+ tab: translator$1q,
34304
+ image: translator$s,
34305
+ hardBreak: translator$1s,
34199
34306
  commentRangeStart: commentRangeStartTranslator,
34200
34307
  commentRangeEnd: commentRangeEndTranslator,
34201
34308
  commentReference: () => null,
@@ -34203,14 +34310,14 @@ function exportSchemaToJson(params) {
34203
34310
  shapeTextbox: translator,
34204
34311
  contentBlock: translator,
34205
34312
  vectorShape: translateVectorShape,
34206
- structuredContent: translator$q,
34207
- structuredContentBlock: translator$q,
34208
- documentPartObject: translator$q,
34209
- documentSection: translator$q,
34313
+ structuredContent: translator$r,
34314
+ structuredContentBlock: translator$r,
34315
+ documentPartObject: translator$r,
34316
+ documentSection: translator$r,
34210
34317
  "page-number": translatePageNumberNode,
34211
34318
  "total-page-number": translateTotalPageNumberNode,
34212
- pageReference: translator$5,
34213
- tableOfContents: translator$4
34319
+ pageReference: translator$6,
34320
+ tableOfContents: translator$5
34214
34321
  };
34215
34322
  let handler2 = router[type2];
34216
34323
  if (handler2 && "decode" in handler2 && typeof handler2.decode === "function") {
@@ -34543,25 +34650,6 @@ function getTextNodeForExport(text, marks, params) {
34543
34650
  }
34544
34651
  return wrapTextInRun(textNodes, outputMarks);
34545
34652
  }
34546
- function translateTextNode(params) {
34547
- const { node, extraParams } = params;
34548
- const trackedMarks = [TrackInsertMarkName, TrackDeleteMarkName];
34549
- const trackedMark = node.marks?.find((m2) => trackedMarks.includes(m2.type));
34550
- if (trackedMark) {
34551
- switch (trackedMark.type) {
34552
- case "trackDelete":
34553
- return translator$3.decode(params);
34554
- case "trackInsert":
34555
- return translator$2.decode(params);
34556
- }
34557
- }
34558
- const isLinkNode = node.marks?.some((m2) => m2.type === "link");
34559
- if (isLinkNode && !extraParams?.linkProcessed) {
34560
- return translator$1c.decode(params);
34561
- }
34562
- const { text, marks = [] } = node;
34563
- return getTextNodeForExport(text, marks, params);
34564
- }
34565
34653
  function wrapTextInRun(nodeOrNodes, marks) {
34566
34654
  let elements = [];
34567
34655
  if (Array.isArray(nodeOrNodes)) elements = nodeOrNodes;
@@ -34817,7 +34905,7 @@ function translateMark(mark) {
34817
34905
  markElement.type = "element";
34818
34906
  break;
34819
34907
  case "underline": {
34820
- const translated = translator$1l.decode({
34908
+ const translated = translator$1m.decode({
34821
34909
  node: {
34822
34910
  attrs: {
34823
34911
  underlineType: attrs.underlineType ?? attrs.underline ?? null,
@@ -34881,7 +34969,7 @@ function translateMark(mark) {
34881
34969
  break;
34882
34970
  case "highlight": {
34883
34971
  const highlightValue = attrs.color ?? attrs.highlight ?? null;
34884
- const translated = translator$1q.decode({ node: { attrs: { highlight: highlightValue } } });
34972
+ const translated = translator$1r.decode({ node: { attrs: { highlight: highlightValue } } });
34885
34973
  return translated || {};
34886
34974
  }
34887
34975
  case "link":
@@ -35810,7 +35898,7 @@ prepareCommentsXmlFilesForExport_fn = function({ defs, exportType, commentsWithP
35810
35898
  };
35811
35899
  exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
35812
35900
  const relsData = this.convertedXml["word/_rels/document.xml.rels"];
35813
- const relationships = relsData.elements.find((x) => x.name === "Relationships");
35901
+ const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
35814
35902
  const newDocRels = [];
35815
35903
  Object.entries(this.headers).forEach(([id, header], index2) => {
35816
35904
  const fileName = relationships.elements.find((el) => el.attributes.Id === id)?.attributes.Target || `header${index2 + 1}.xml`;
@@ -35851,7 +35939,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
35851
35939
  }
35852
35940
  this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
35853
35941
  if (params.relationships.length) {
35854
- const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x) => x.name === "Relationships")?.elements || [];
35942
+ const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
35855
35943
  this.convertedXml[`word/_rels/${fileName}.rels`] = {
35856
35944
  declaration: this.initialJSON?.declaration,
35857
35945
  elements: [
@@ -35905,7 +35993,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
35905
35993
  }
35906
35994
  this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
35907
35995
  if (params.relationships.length) {
35908
- const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x) => x.name === "Relationships")?.elements || [];
35996
+ const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
35909
35997
  this.convertedXml[`word/_rels/${fileName}.rels`] = {
35910
35998
  declaration: this.initialJSON?.declaration,
35911
35999
  elements: [
@@ -35924,7 +36012,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
35924
36012
  };
35925
36013
  exportProcessNewRelationships_fn = function(rels = []) {
35926
36014
  const relsData = this.convertedXml["word/_rels/document.xml.rels"];
35927
- const relationships = relsData.elements.find((x) => x.name === "Relationships");
36015
+ const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
35928
36016
  const newRels = [];
35929
36017
  const regex = /rId|mi/g;
35930
36018
  let largestId = Math.max(...relationships.elements.map((el) => Number(el.attributes.Id.replace(regex, ""))));
@@ -36013,7 +36101,7 @@ function generateCustomXml() {
36013
36101
  return DEFAULT_CUSTOM_XML;
36014
36102
  }
36015
36103
  export {
36016
- RemoveMarkStep as $,
36104
+ AddMarkStep as $,
36017
36105
  AllSelection as A,
36018
36106
  Buffer2 as B,
36019
36107
  ReplaceStep as C,
@@ -36024,36 +36112,36 @@ export {
36024
36112
  findParentNode as H,
36025
36113
  isMacOS as I,
36026
36114
  isIOS as J,
36027
- getSchemaTypeByName as K,
36115
+ getDefaultExportFromCjs$2 as K,
36028
36116
  ListHelpers as L,
36029
36117
  Mapping as M,
36030
36118
  NodeSelection as N,
36031
- inputRulesPlugin as O,
36119
+ getSchemaTypeByName as O,
36032
36120
  PluginKey as P,
36033
- TrackDeleteMarkName as Q,
36121
+ inputRulesPlugin as Q,
36034
36122
  ReplaceAroundStep as R,
36035
36123
  Selection as S,
36036
36124
  TextSelection as T,
36037
- TrackInsertMarkName as U,
36038
- v4 as V,
36039
- TrackFormatMarkName as W,
36040
- comments_module_events as X,
36041
- findMark as Y,
36042
- objectIncludes as Z,
36043
- AddMarkStep as _,
36125
+ TrackDeleteMarkName as U,
36126
+ TrackInsertMarkName as V,
36127
+ v4 as W,
36128
+ TrackFormatMarkName as X,
36129
+ comments_module_events as Y,
36130
+ findMark as Z,
36131
+ objectIncludes as _,
36044
36132
  Plugin as a,
36045
- translator$t as a$,
36046
- twipsToLines as a0,
36047
- pixelsToTwips as a1,
36048
- helpers as a2,
36049
- posToDOMRect as a3,
36050
- CommandService as a4,
36051
- SuperConverter as a5,
36052
- createDocument as a6,
36053
- createDocFromMarkdown as a7,
36054
- createDocFromHTML as a8,
36055
- EditorState as a9,
36056
- getDefaultExportFromCjs$2 as aA,
36133
+ translator$u as a$,
36134
+ RemoveMarkStep as a0,
36135
+ twipsToLines as a1,
36136
+ pixelsToTwips as a2,
36137
+ helpers as a3,
36138
+ posToDOMRect as a4,
36139
+ CommandService as a5,
36140
+ SuperConverter as a6,
36141
+ createDocument as a7,
36142
+ createDocFromMarkdown as a8,
36143
+ createDocFromHTML as a9,
36144
+ commonjsGlobal as aA,
36057
36145
  getContentTypesFromXml as aB,
36058
36146
  xmljs as aC,
36059
36147
  vClickOutside as aD,
@@ -36062,115 +36150,115 @@ export {
36062
36150
  handleClipboardPaste as aG,
36063
36151
  getFileObject as aH,
36064
36152
  runPropertyTranslators as aI,
36065
- translator$I as aJ,
36066
- translator$P as aK,
36067
- translator$R as aL,
36068
- translator$J as aM,
36069
- translator$K as aN,
36070
- translator$S as aO,
36071
- translator$T as aP,
36072
- translator$O as aQ,
36073
- translator$L as aR,
36074
- translator$18 as aS,
36075
- translator$N as aT,
36076
- translator$Q as aU,
36077
- translator$M as aV,
36078
- translator$17 as aW,
36079
- translator$16 as aX,
36153
+ translator$J as aJ,
36154
+ translator$Q as aK,
36155
+ translator$S as aL,
36156
+ translator$K as aM,
36157
+ translator$L as aN,
36158
+ translator$T as aO,
36159
+ translator$U as aP,
36160
+ translator$P as aQ,
36161
+ translator$M as aR,
36162
+ translator$19 as aS,
36163
+ translator$O as aT,
36164
+ translator$R as aU,
36165
+ translator$N as aV,
36166
+ translator$18 as aW,
36167
+ translator$17 as aX,
36080
36168
  commentRangeEndTranslator as aY,
36081
36169
  commentRangeStartTranslator as aZ,
36082
- translator$s as a_,
36083
- hasSomeParentWithClass as aa,
36084
- isActive as ab,
36085
- unflattenListsInHtml as ac,
36086
- parseSizeUnit as ad,
36087
- minMax as ae,
36088
- getLineHeightValueString as af,
36089
- updateDOMAttributes as ag,
36090
- findChildren as ah,
36091
- htmlHandler as ai,
36092
- generateRandomSigned32BitIntStrId as aj,
36093
- InputRule as ak,
36094
- kebabCase as al,
36095
- findParentNodeClosestToPos as am,
36096
- getListItemStyleDefinitions as an,
36097
- docxNumberingHelpers as ao,
36098
- parseIndentElement as ap,
36099
- combineIndents as aq,
36100
- twipsToPixels as ar,
36101
- PIXELS_PER_INCH as as,
36102
- SelectionRange as at,
36103
- Transform as au,
36104
- isInTable as av,
36105
- generateDocxRandomId as aw,
36106
- insertNewRelationship as ax,
36107
- inchesToPixels as ay,
36108
- commonjsGlobal as az,
36170
+ translator$t as a_,
36171
+ EditorState as aa,
36172
+ hasSomeParentWithClass as ab,
36173
+ isActive as ac,
36174
+ unflattenListsInHtml as ad,
36175
+ parseSizeUnit as ae,
36176
+ minMax as af,
36177
+ getLineHeightValueString as ag,
36178
+ updateDOMAttributes as ah,
36179
+ findChildren as ai,
36180
+ htmlHandler as aj,
36181
+ generateRandomSigned32BitIntStrId as ak,
36182
+ InputRule as al,
36183
+ kebabCase as am,
36184
+ findParentNodeClosestToPos as an,
36185
+ getListItemStyleDefinitions as ao,
36186
+ docxNumberingHelpers as ap,
36187
+ parseIndentElement as aq,
36188
+ combineIndents as ar,
36189
+ twipsToPixels as as,
36190
+ PIXELS_PER_INCH as at,
36191
+ SelectionRange as au,
36192
+ Transform as av,
36193
+ isInTable as aw,
36194
+ generateDocxRandomId as ax,
36195
+ insertNewRelationship as ay,
36196
+ inchesToPixels as az,
36109
36197
  Slice as b,
36110
- translator$5 as b$,
36111
- translator$w as b0,
36112
- translator$x as b1,
36113
- translator$1l as b2,
36114
- translator$v as b3,
36115
- translator$y as b4,
36116
- translator$u as b5,
36117
- translator$V as b6,
36118
- translator$H as b7,
36119
- translator$e as b8,
36120
- translator$f as b9,
36121
- translator$1i as bA,
36122
- translator$1b as bB,
36123
- translator$1o as bC,
36124
- translator$$ as bD,
36125
- translator$B as bE,
36126
- translator$10 as bF,
36127
- translator$11 as bG,
36128
- translator$1m as bH,
36129
- translator$1c as bI,
36130
- translator$1q as bJ,
36131
- translator$C as bK,
36132
- translator$a as bL,
36133
- translator$D as bM,
36134
- translator$E as bN,
36135
- translator$13 as bO,
36136
- translator$r as bP,
36137
- translator$F as bQ,
36138
- translator$1j as bR,
36139
- translator$1a as bS,
36140
- translator$G as bT,
36141
- translator$1r as bU,
36142
- translator$15 as bV,
36143
- translator$7 as bW,
36144
- translator$6 as bX,
36145
- translator$p as bY,
36146
- translator$1n as bZ,
36147
- translator$4 as b_,
36148
- translator$g as ba,
36149
- translator$h as bb,
36150
- translator$i as bc,
36151
- translator$b as bd,
36152
- translator$j as be,
36153
- translator$k as bf,
36154
- translator$l as bg,
36155
- translator$m as bh,
36156
- translator$z as bi,
36157
- translator$9 as bj,
36158
- translator$n as bk,
36159
- translator$A as bl,
36160
- translator$c as bm,
36161
- translator$o as bn,
36162
- translator$d as bo,
36163
- translator$8 as bp,
36164
- translator$1p as bq,
36165
- translator$1f as br,
36166
- translator$1g as bs,
36167
- translator$1k as bt,
36168
- translator$X as bu,
36169
- translator$19 as bv,
36170
- translator$q as bw,
36171
- translator$Z as bx,
36172
- translator$1h as by,
36173
- translator$1d as bz,
36198
+ translator$6 as b$,
36199
+ translator$x as b0,
36200
+ translator$y as b1,
36201
+ translator$1m as b2,
36202
+ translator$w as b3,
36203
+ translator$z as b4,
36204
+ translator$v as b5,
36205
+ translator$W as b6,
36206
+ translator$I as b7,
36207
+ translator$f as b8,
36208
+ translator$g as b9,
36209
+ translator$1j as bA,
36210
+ translator$1c as bB,
36211
+ translator$1p as bC,
36212
+ translator$10 as bD,
36213
+ translator$C as bE,
36214
+ translator$11 as bF,
36215
+ translator$12 as bG,
36216
+ translator$1n as bH,
36217
+ translator$1d as bI,
36218
+ translator$1r as bJ,
36219
+ translator$D as bK,
36220
+ translator$b as bL,
36221
+ translator$E as bM,
36222
+ translator$F as bN,
36223
+ translator$14 as bO,
36224
+ translator$s as bP,
36225
+ translator$G as bQ,
36226
+ translator$1k as bR,
36227
+ translator$1b as bS,
36228
+ translator$H as bT,
36229
+ translator$1s as bU,
36230
+ translator$16 as bV,
36231
+ translator$8 as bW,
36232
+ translator$7 as bX,
36233
+ translator$q as bY,
36234
+ translator$1o as bZ,
36235
+ translator$5 as b_,
36236
+ translator$h as ba,
36237
+ translator$i as bb,
36238
+ translator$j as bc,
36239
+ translator$c as bd,
36240
+ translator$k as be,
36241
+ translator$l as bf,
36242
+ translator$m as bg,
36243
+ translator$n as bh,
36244
+ translator$A as bi,
36245
+ translator$a as bj,
36246
+ translator$o as bk,
36247
+ translator$B as bl,
36248
+ translator$d as bm,
36249
+ translator$p as bn,
36250
+ translator$e as bo,
36251
+ translator$9 as bp,
36252
+ translator$1q as bq,
36253
+ translator$1g as br,
36254
+ translator$1h as bs,
36255
+ translator$1l as bt,
36256
+ translator$Y as bu,
36257
+ translator$1a as bv,
36258
+ translator$r as bw,
36259
+ translator$_ as bx,
36260
+ translator$1i as by,
36261
+ translator$1e as bz,
36174
36262
  DOMParser$1 as c,
36175
36263
  translator$1 as c0,
36176
36264
  _sfc_main as c1,