superdoc 0.34.4 → 0.34.6-RC1

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 (48) hide show
  1. package/dist/chunks/{PdfViewer-CcDvbfeP.cjs → PdfViewer-Cdq6hWaP.cjs} +2 -2
  2. package/dist/chunks/{PdfViewer-CL_-YyBC.es.js → PdfViewer-Yy390Dyv.es.js} +2 -2
  3. package/dist/chunks/{eventemitter3-hYlnBzSA.es.js → eventemitter3-BZXKb7j7.es.js} +1 -1
  4. package/dist/chunks/{eventemitter3-DmHNHvFX.cjs → eventemitter3-CFCpOk3d.cjs} +1 -1
  5. package/dist/chunks/{index-oLU8CBCH.es.js → index-M9d0bJ9k.es.js} +12 -7
  6. package/dist/chunks/{index-Cp_Yy4vP.cjs → index-QkGtTLUE.cjs} +12 -7
  7. package/dist/chunks/{index-DPjn4rpi-Bs9-iTbY.cjs → index-_8cQcYzu-CB4RkW2W.cjs} +1 -1
  8. package/dist/chunks/{index-DPjn4rpi-BwmVppCt.es.js → index-_8cQcYzu-Dj8Emsl2.es.js} +1 -1
  9. package/dist/chunks/{jszip-BP2FTbpi.cjs → jszip-B99MTu59.cjs} +1 -1
  10. package/dist/chunks/{jszip-jKrsZoMS.es.js → jszip-Duxs2YMV.es.js} +1 -1
  11. package/dist/chunks/{super-editor.es-C2FJLfJa.cjs → super-editor.es-C-hpEM8j.cjs} +794 -636
  12. package/dist/chunks/{super-editor.es-C350__qM.es.js → super-editor.es-kNY6AOSu.es.js} +747 -589
  13. package/dist/chunks/{vue-Cwv-wUpm.cjs → vue-ARQSyfaw.cjs} +2401 -2360
  14. package/dist/chunks/{vue-CKmzTNVs.es.js → vue-B5QAf5pA.es.js} +2401 -2360
  15. package/dist/chunks/xml-js-CVyfrKaV.es.js +2 -0
  16. package/dist/chunks/xml-js-DQa4Ye5C.cjs +3 -0
  17. package/dist/packages/superdoc/src/components/CommentsLayer/use-comment.d.ts.map +1 -1
  18. package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
  19. package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
  20. package/dist/packages/superdoc/src/stores/comments-store.d.ts.map +1 -1
  21. package/dist/super-editor/ai-writer.es.js +2 -2
  22. package/dist/super-editor/chunks/{converter-KW3z-Mzc.js → converter-Ddl2ZmKy.js} +416 -301
  23. package/dist/super-editor/chunks/{docx-zipper-CYtxqNuc.js → docx-zipper-D1BgiAWm.js} +1 -1
  24. package/dist/super-editor/chunks/{editor-CTHJwQNA.js → editor-B2T2u3JG.js} +65 -22
  25. package/dist/super-editor/chunks/{index-DPjn4rpi.js → index-_8cQcYzu.js} +1 -1
  26. package/dist/super-editor/chunks/{toolbar-BUz0UuKQ.js → toolbar-hyRTdNjv.js} +2 -2
  27. package/dist/super-editor/converter.es.js +1 -1
  28. package/dist/super-editor/docx-zipper.es.js +2 -2
  29. package/dist/super-editor/editor.es.js +3 -3
  30. package/dist/super-editor/file-zipper.es.js +1 -1
  31. package/dist/super-editor/super-editor/src/core/super-converter/helpers.d.ts.map +1 -1
  32. package/dist/super-editor/super-editor/src/core/super-converter/v2/exporter/commentsExporter.d.ts.map +1 -1
  33. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/del/del-translator.d.ts.map +1 -1
  34. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ins/ins-translator.d.ts.map +1 -1
  35. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-commands.d.ts +5 -0
  36. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-commands.d.ts.map +1 -1
  37. package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map +1 -1
  38. package/dist/super-editor/super-editor.es.js +6 -6
  39. package/dist/super-editor/toolbar.es.js +2 -2
  40. package/dist/super-editor.cjs +2 -2
  41. package/dist/super-editor.es.js +2 -2
  42. package/dist/superdoc.cjs +2 -2
  43. package/dist/superdoc.es.js +2 -2
  44. package/dist/superdoc.umd.js +1141 -938
  45. package/dist/superdoc.umd.js.map +1 -1
  46. package/package.json +1 -1
  47. package/dist/chunks/xml-js-BSDu25I7.cjs +0 -3
  48. package/dist/chunks/xml-js-CBrRls0f.es.js +0 -2
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const vue = require("./vue-Cwv-wUpm.cjs");
2
+ const vue = require("./vue-ARQSyfaw.cjs");
3
3
  const Y = require("yjs");
4
4
  function _interopNamespaceDefault(e) {
5
5
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
@@ -433,17 +433,17 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
433
433
  );
434
434
  }
435
435
  if (a === b2) return 0;
436
- let x = a.length;
436
+ let x2 = a.length;
437
437
  let y2 = b2.length;
438
- for (let i = 0, len = Math.min(x, y2); i < len; ++i) {
438
+ for (let i = 0, len = Math.min(x2, y2); i < len; ++i) {
439
439
  if (a[i] !== b2[i]) {
440
- x = a[i];
440
+ x2 = a[i];
441
441
  y2 = b2[i];
442
442
  break;
443
443
  }
444
444
  }
445
- if (x < y2) return -1;
446
- if (y2 < x) return 1;
445
+ if (x2 < y2) return -1;
446
+ if (y2 < x2) return 1;
447
447
  return 0;
448
448
  };
449
449
  Buffer3.isEncoding = function isEncoding(encoding) {
@@ -692,20 +692,20 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
692
692
  thisStart >>>= 0;
693
693
  thisEnd >>>= 0;
694
694
  if (this === target) return 0;
695
- let x = thisEnd - thisStart;
695
+ let x2 = thisEnd - thisStart;
696
696
  let y2 = end2 - start2;
697
- const len = Math.min(x, y2);
697
+ const len = Math.min(x2, y2);
698
698
  const thisCopy = this.slice(thisStart, thisEnd);
699
699
  const targetCopy = target.slice(start2, end2);
700
700
  for (let i = 0; i < len; ++i) {
701
701
  if (thisCopy[i] !== targetCopy[i]) {
702
- x = thisCopy[i];
702
+ x2 = thisCopy[i];
703
703
  y2 = targetCopy[i];
704
704
  break;
705
705
  }
706
706
  }
707
- if (x < y2) return -1;
708
- if (y2 < x) return 1;
707
+ if (x2 < y2) return -1;
708
+ if (y2 < x2) return 1;
709
709
  return 0;
710
710
  };
711
711
  function bidirectionalIndexOf(buffer2, val, byteOffset, encoding, dir) {
@@ -1795,8 +1795,8 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
1795
1795
  })(buffer);
1796
1796
  const Buffer2 = buffer.Buffer;
1797
1797
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof vue.global !== "undefined" ? vue.global : typeof self !== "undefined" ? self : {};
1798
- function getDefaultExportFromCjs$2(x) {
1799
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
1798
+ function getDefaultExportFromCjs$2(x2) {
1799
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
1800
1800
  }
1801
1801
  var sax = {};
1802
1802
  var events$1 = { exports: {} };
@@ -1804,13 +1804,13 @@ var hasRequiredEvents;
1804
1804
  function requireEvents() {
1805
1805
  if (hasRequiredEvents) return events$1.exports;
1806
1806
  hasRequiredEvents = 1;
1807
- var R2 = typeof Reflect === "object" ? Reflect : null;
1808
- var ReflectApply = R2 && typeof R2.apply === "function" ? R2.apply : function ReflectApply2(target, receiver, args) {
1807
+ var R = typeof Reflect === "object" ? Reflect : null;
1808
+ var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
1809
1809
  return Function.prototype.apply.call(target, receiver, args);
1810
1810
  };
1811
1811
  var ReflectOwnKeys;
1812
- if (R2 && typeof R2.ownKeys === "function") {
1813
- ReflectOwnKeys = R2.ownKeys;
1812
+ if (R && typeof R.ownKeys === "function") {
1813
+ ReflectOwnKeys = R.ownKeys;
1814
1814
  } else if (Object.getOwnPropertySymbols) {
1815
1815
  ReflectOwnKeys = function ReflectOwnKeys2(target) {
1816
1816
  return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
@@ -2200,8 +2200,8 @@ function requireInherits_browser() {
2200
2200
  }
2201
2201
  return inherits_browser.exports;
2202
2202
  }
2203
- function getDefaultExportFromCjs$1(x) {
2204
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
2203
+ function getDefaultExportFromCjs$1(x2) {
2204
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
2205
2205
  }
2206
2206
  var browser$1 = { exports: {} };
2207
2207
  var process$1 = browser$1.exports = {};
@@ -2782,17 +2782,17 @@ function requireDist() {
2782
2782
  );
2783
2783
  }
2784
2784
  if (a === b2) return 0;
2785
- let x = a.length;
2785
+ let x2 = a.length;
2786
2786
  let y2 = b2.length;
2787
- for (let i2 = 0, len2 = Math.min(x, y2); i2 < len2; ++i2) {
2787
+ for (let i2 = 0, len2 = Math.min(x2, y2); i2 < len2; ++i2) {
2788
2788
  if (a[i2] !== b2[i2]) {
2789
- x = a[i2];
2789
+ x2 = a[i2];
2790
2790
  y2 = b2[i2];
2791
2791
  break;
2792
2792
  }
2793
2793
  }
2794
- if (x < y2) return -1;
2795
- if (y2 < x) return 1;
2794
+ if (x2 < y2) return -1;
2795
+ if (y2 < x2) return 1;
2796
2796
  return 0;
2797
2797
  };
2798
2798
  Buffer4.isEncoding = function isEncoding(encoding) {
@@ -3041,20 +3041,20 @@ function requireDist() {
3041
3041
  thisStart >>>= 0;
3042
3042
  thisEnd >>>= 0;
3043
3043
  if (this === target) return 0;
3044
- let x = thisEnd - thisStart;
3044
+ let x2 = thisEnd - thisStart;
3045
3045
  let y2 = end2 - start2;
3046
- const len2 = Math.min(x, y2);
3046
+ const len2 = Math.min(x2, y2);
3047
3047
  const thisCopy = this.slice(thisStart, thisEnd);
3048
3048
  const targetCopy = target.slice(start2, end2);
3049
3049
  for (let i2 = 0; i2 < len2; ++i2) {
3050
3050
  if (thisCopy[i2] !== targetCopy[i2]) {
3051
- x = thisCopy[i2];
3051
+ x2 = thisCopy[i2];
3052
3052
  y2 = targetCopy[i2];
3053
3053
  break;
3054
3054
  }
3055
3055
  }
3056
- if (x < y2) return -1;
3057
- if (y2 < x) return 1;
3056
+ if (x2 < y2) return -1;
3057
+ if (y2 < x2) return 1;
3058
3058
  return 0;
3059
3059
  };
3060
3060
  function bidirectionalIndexOf(buffer3, val, byteOffset, encoding, dir) {
@@ -4626,15 +4626,15 @@ function requireGetProto() {
4626
4626
  var reflectGetProto = requireReflect_getPrototypeOf();
4627
4627
  var originalGetProto = requireObject_getPrototypeOf();
4628
4628
  var getDunderProto = /* @__PURE__ */ requireGet();
4629
- getProto = reflectGetProto ? function getProto2(O2) {
4630
- return reflectGetProto(O2);
4631
- } : originalGetProto ? function getProto2(O2) {
4632
- if (!O2 || typeof O2 !== "object" && typeof O2 !== "function") {
4629
+ getProto = reflectGetProto ? function getProto2(O) {
4630
+ return reflectGetProto(O);
4631
+ } : originalGetProto ? function getProto2(O) {
4632
+ if (!O || typeof O !== "object" && typeof O !== "function") {
4633
4633
  throw new TypeError("getProto: not an object");
4634
4634
  }
4635
- return originalGetProto(O2);
4636
- } : getDunderProto ? function getProto2(O2) {
4637
- return getDunderProto(O2);
4635
+ return originalGetProto(O);
4636
+ } : getDunderProto ? function getProto2(O) {
4637
+ return getDunderProto(O);
4638
4638
  } : null;
4639
4639
  return getProto;
4640
4640
  }
@@ -5312,8 +5312,8 @@ function requireForEach() {
5312
5312
  }
5313
5313
  }
5314
5314
  };
5315
- function isArray2(x) {
5316
- return toStr.call(x) === "[object Array]";
5315
+ function isArray2(x2) {
5316
+ return toStr.call(x2) === "[object Array]";
5317
5317
  }
5318
5318
  forEach = function forEach22(list, iterator, thisArg) {
5319
5319
  if (!isCallable2(iterator)) {
@@ -5922,10 +5922,10 @@ function requireUtil() {
5922
5922
  var i = 1;
5923
5923
  var args = arguments;
5924
5924
  var len = args.length;
5925
- var str = String(f2).replace(formatRegExp, function(x2) {
5926
- if (x2 === "%%") return "%";
5927
- if (i >= len) return x2;
5928
- switch (x2) {
5925
+ var str = String(f2).replace(formatRegExp, function(x3) {
5926
+ if (x3 === "%%") return "%";
5927
+ if (i >= len) return x3;
5928
+ switch (x3) {
5929
5929
  case "%s":
5930
5930
  return String(args[i++]);
5931
5931
  case "%d":
@@ -5937,14 +5937,14 @@ function requireUtil() {
5937
5937
  return "[Circular]";
5938
5938
  }
5939
5939
  default:
5940
- return x2;
5940
+ return x3;
5941
5941
  }
5942
5942
  });
5943
- for (var x = args[i]; i < len; x = args[++i]) {
5944
- if (isNull(x) || !isObject2(x)) {
5945
- str += " " + x;
5943
+ for (var x2 = args[i]; i < len; x2 = args[++i]) {
5944
+ if (isNull(x2) || !isObject2(x2)) {
5945
+ str += " " + x2;
5946
5946
  } else {
5947
- str += " " + inspect(x);
5947
+ str += " " + inspect(x2);
5948
5948
  }
5949
5949
  }
5950
5950
  return str;
@@ -7509,6 +7509,7 @@ function require_stream_duplex() {
7509
7509
  }
7510
7510
  var string_decoder = {};
7511
7511
  var safeBuffer = { exports: {} };
7512
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
7512
7513
  var hasRequiredSafeBuffer;
7513
7514
  function requireSafeBuffer() {
7514
7515
  if (hasRequiredSafeBuffer) return safeBuffer.exports;
@@ -7530,6 +7531,7 @@ function requireSafeBuffer() {
7530
7531
  function SafeBuffer(arg, encodingOrOffset, length2) {
7531
7532
  return Buffer3(arg, encodingOrOffset, length2);
7532
7533
  }
7534
+ SafeBuffer.prototype = Object.create(Buffer3.prototype);
7533
7535
  copyProps(Buffer3, SafeBuffer);
7534
7536
  SafeBuffer.from = function(arg, encodingOrOffset, length2) {
7535
7537
  if (typeof arg === "number") {
@@ -8807,9 +8809,9 @@ function require_stream_readable() {
8807
8809
  return from2(Readable, iterable, opts);
8808
8810
  };
8809
8811
  }
8810
- function indexOf(xs, x) {
8812
+ function indexOf(xs, x2) {
8811
8813
  for (var i = 0, l3 = xs.length; i < l3; i++) {
8812
- if (xs[i] === x) return i;
8814
+ if (xs[i] === x2) return i;
8813
8815
  }
8814
8816
  return -1;
8815
8817
  }
@@ -9267,27 +9269,27 @@ function requireSax() {
9267
9269
  this._parser = new SAXParser(strict, opt);
9268
9270
  this.writable = true;
9269
9271
  this.readable = true;
9270
- var me = this;
9272
+ var me2 = this;
9271
9273
  this._parser.onend = function() {
9272
- me.emit("end");
9274
+ me2.emit("end");
9273
9275
  };
9274
9276
  this._parser.onerror = function(er) {
9275
- me.emit("error", er);
9276
- me._parser.error = null;
9277
+ me2.emit("error", er);
9278
+ me2._parser.error = null;
9277
9279
  };
9278
9280
  this._decoder = null;
9279
9281
  streamWraps.forEach(function(ev) {
9280
- Object.defineProperty(me, "on" + ev, {
9282
+ Object.defineProperty(me2, "on" + ev, {
9281
9283
  get: function() {
9282
- return me._parser["on" + ev];
9284
+ return me2._parser["on" + ev];
9283
9285
  },
9284
- set: function(h2) {
9285
- if (!h2) {
9286
- me.removeAllListeners(ev);
9287
- me._parser["on" + ev] = h2;
9288
- return h2;
9286
+ set: function(h) {
9287
+ if (!h) {
9288
+ me2.removeAllListeners(ev);
9289
+ me2._parser["on" + ev] = h;
9290
+ return h;
9289
9291
  }
9290
- me.on(ev, h2);
9292
+ me2.on(ev, h);
9291
9293
  },
9292
9294
  enumerable: true,
9293
9295
  configurable: false
@@ -9319,15 +9321,15 @@ function requireSax() {
9319
9321
  return true;
9320
9322
  };
9321
9323
  SAXStream.prototype.on = function(ev, handler2) {
9322
- var me = this;
9323
- if (!me._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
9324
- me._parser["on" + ev] = function() {
9324
+ var me2 = this;
9325
+ if (!me2._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
9326
+ me2._parser["on" + ev] = function() {
9325
9327
  var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
9326
9328
  args.splice(0, 0, ev);
9327
- me.emit.apply(me, args);
9329
+ me2.emit.apply(me2, args);
9328
9330
  };
9329
9331
  }
9330
- return Stream.prototype.on.call(me, ev, handler2);
9332
+ return Stream.prototype.on.call(me2, ev, handler2);
9331
9333
  };
9332
9334
  var CDATA = "[CDATA[";
9333
9335
  var DOCTYPE = "DOCTYPE";
@@ -9919,9 +9921,9 @@ function requireSax() {
9919
9921
  var tag = parser.tag = parser.tags.pop();
9920
9922
  parser.tagName = parser.tag.name;
9921
9923
  emitNode(parser, "onclosetag", parser.tagName);
9922
- var x = {};
9924
+ var x2 = {};
9923
9925
  for (var i in tag.ns) {
9924
- x[i] = tag.ns[i];
9926
+ x2[i] = tag.ns[i];
9925
9927
  }
9926
9928
  var parent = parser.tags[parser.tags.length - 1] || parser;
9927
9929
  if (parser.opt.xmlns && tag.ns !== parent.ns) {
@@ -11401,8 +11403,8 @@ function v4(options, buf, offset2) {
11401
11403
  rnds[8] = rnds[8] & 63 | 128;
11402
11404
  return unsafeStringify(rnds);
11403
11405
  }
11404
- function getDefaultExportFromCjs(x) {
11405
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
11406
+ function getDefaultExportFromCjs(x2) {
11407
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
11406
11408
  }
11407
11409
  const CRC_TABLE = new Int32Array([
11408
11410
  0,
@@ -15218,8 +15220,8 @@ function polygonToObj(polygonNode) {
15218
15220
  const points = [];
15219
15221
  polygonNode.elements.forEach((element) => {
15220
15222
  if (["wp:start", "wp:lineTo"].includes(element.name)) {
15221
- const { x, y: y2 } = element.attributes;
15222
- points.push([polygonUnitsToPixels(x), polygonUnitsToPixels(y2)]);
15223
+ const { x: x2, y: y2 } = element.attributes;
15224
+ points.push([polygonUnitsToPixels(x2), polygonUnitsToPixels(y2)]);
15223
15225
  }
15224
15226
  });
15225
15227
  if (points.length > 1) {
@@ -15242,13 +15244,13 @@ function objToPolygon(points) {
15242
15244
  elements: []
15243
15245
  };
15244
15246
  points.forEach((point, index2) => {
15245
- const [x, y2] = point;
15247
+ const [x2, y2] = point;
15246
15248
  const tagName = index2 === 0 ? "wp:start" : "wp:lineTo";
15247
15249
  const pointNode = {
15248
15250
  name: tagName,
15249
15251
  type: tagName,
15250
15252
  attributes: {
15251
- x: pixelsToPolygonUnits(x),
15253
+ x: pixelsToPolygonUnits(x2),
15252
15254
  y: pixelsToPolygonUnits(y2)
15253
15255
  }
15254
15256
  };
@@ -15397,6 +15399,9 @@ const getLineHeightValueString = (lineHeight2, defaultUnit, lineRule = "", isObj
15397
15399
  let [value, unit] = parseSizeUnit(lineHeight2);
15398
15400
  if (Number.isNaN(value) || value === 0) return {};
15399
15401
  if (lineRule === "atLeast" && value < 1) return {};
15402
+ if (!unit && value < 1) {
15403
+ value = 1;
15404
+ }
15400
15405
  unit = unit ? unit : defaultUnit;
15401
15406
  return isObject2 ? { ["line-height"]: `${value}${unit}` } : `line-height: ${value}${unit}`;
15402
15407
  };
@@ -22910,7 +22915,7 @@ function posToDOMRect(view, from2, to) {
22910
22915
  const right2 = Math.max(start2.right, end2.right);
22911
22916
  const width = right2 - left2;
22912
22917
  const height = bottom2 - top2;
22913
- const x = left2;
22918
+ const x2 = left2;
22914
22919
  const y2 = top2;
22915
22920
  const data = {
22916
22921
  top: top2,
@@ -22919,7 +22924,7 @@ function posToDOMRect(view, from2, to) {
22919
22924
  right: right2,
22920
22925
  width,
22921
22926
  height,
22922
- x,
22927
+ x: x2,
22923
22928
  y: y2
22924
22929
  };
22925
22930
  return {
@@ -23008,25 +23013,31 @@ function createDocFromHTML(content, schema, options = {}) {
23008
23013
  function L() {
23009
23014
  return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
23010
23015
  }
23011
- var O = L();
23016
+ var T = L();
23012
23017
  function G(l3) {
23013
- O = l3;
23018
+ T = l3;
23014
23019
  }
23015
23020
  var E = { exec: () => null };
23016
- function h(l3, e = "") {
23021
+ function d$1(l3, e = "") {
23017
23022
  let t = typeof l3 == "string" ? l3 : l3.source, n = { replace: (r2, i) => {
23018
23023
  let s2 = typeof i == "string" ? i : i.source;
23019
23024
  return s2 = s2.replace(m.caret, "$1"), t = t.replace(r2, s2), n;
23020
23025
  }, getRegex: () => new RegExp(t, e) };
23021
23026
  return n;
23022
23027
  }
23023
- 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$2 = 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$1 = { blockquote: $e, code: be, def: ye, fences: Re, heading: Oe, hr: C, html: Se, lheading: ie$2, 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$1, 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$1, 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} *[^
23024
- ]`).replace("lheading", ie$2).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$1, gfm: _e, pedantic: Le }, M$1 = { normal: X, gfm: N, breaks: We, pedantic: Ke };
23025
- var Xe = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, ke = (l3) => Xe[l3];
23028
+ var be = (() => {
23029
+ try {
23030
+ return !!new RegExp("(?<=1)(?<!1)");
23031
+ } catch {
23032
+ return false;
23033
+ }
23034
+ })(), 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") }, Re = /^(?:[ \t]*(?:\n|$))+/, Te = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Oe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, I = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, we = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, F = /(?:[*+-]|\d{1,9}[.)])/, ie$2 = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, oe = d$1(ie$2).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(), ye = d$1(ie$2).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]+)*)/, Pe = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Se = d$1(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), $e = d$1(/^( {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 = d$1("^ {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 = d$1(j).replace("hr", I).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(), Le = d$1(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ae).getRegex(), K$1 = { blockquote: Le, code: Te, def: Se, fences: Oe, heading: we, hr: I, html: _e, lheading: oe, list: $e, newline: Re, paragraph: ae, table: E, text: Pe }, re = d$1("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", I).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(), Me = { ...K$1, lheading: ye, table: re, paragraph: d$1(j).replace("hr", I).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() }, ze = { ...K$1, html: d$1(`^ *(?: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: d$1(j).replace("hr", I).replace("heading", ` *#{1,6} *[^
23035
+ ]`).replace("lheading", oe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ae = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ee = /^(`+)([^`]|[^`][\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, Ce = d$1(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), pe = /(?!~)[\p{P}\p{S}]/u, Be = /(?!~)[\s\p{P}\p{S}]/u, qe = /(?:[^\s\p{P}\p{S}]|~)/u, ve = d$1(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", be ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ce = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, De = d$1(ce, "u").replace(/punct/g, D).getRegex(), He = d$1(ce, "u").replace(/punct/g, pe).getRegex(), he$3 = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ze = d$1(he$3, "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ge = d$1(he$3, "gu").replace(/notPunctSpace/g, qe).replace(/punctSpace/g, Be).replace(/punct/g, pe).getRegex(), Ne = d$1("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Fe = d$1(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), je = d$1(/^<(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(), Qe = d$1(U).replace("(?:-->|$)", "-->").getRegex(), Ue = d$1("^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", Qe).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Ke = d$1(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), de = d$1(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex(), ke = d$1(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), We = d$1("reflink|nolink(?!\\()", "g").replace("reflink", de).replace("nolink", ke).getRegex(), se = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, X = { _backpedal: E, anyPunctuation: Fe, autolink: je, blockSkip: ve, br: le, code: Ee, del: E, emStrongLDelim: De, emStrongRDelimAst: Ze, emStrongRDelimUnd: Ne, escape: Ae, link: Ke, nolink: ke, punctuation: Ce, reflink: de, reflinkSearch: We, tag: Ue, text: Ie, url: E }, Xe = { ...X, link: d$1(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: d$1(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, N = { ...X, emStrongRDelimAst: Ge, emStrongLDelim: He, url: d$1(/^((?: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: d$1(/^([`~]+|[^`~])(?:(?= {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() }, Je = { ...N, br: d$1(le).replace("{2,}", "*").getRegex(), text: d$1(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, C = { normal: K$1, gfm: Me, pedantic: ze }, M$1 = { normal: X, gfm: N, breaks: Je, pedantic: Xe };
23036
+ var Ve = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, ge = (l3) => Ve[l3];
23026
23037
  function w(l3, e) {
23027
23038
  if (e) {
23028
- if (m.escapeTest.test(l3)) return l3.replace(m.escapeReplace, ke);
23029
- } else if (m.escapeTestNoEncode.test(l3)) return l3.replace(m.escapeReplaceNoEncode, ke);
23039
+ if (m.escapeTest.test(l3)) return l3.replace(m.escapeReplace, ge);
23040
+ } else if (m.escapeTestNoEncode.test(l3)) return l3.replace(m.escapeReplaceNoEncode, ge);
23030
23041
  return l3;
23031
23042
  }
23032
23043
  function J(l3) {
@@ -23038,10 +23049,10 @@ function J(l3) {
23038
23049
  return l3;
23039
23050
  }
23040
23051
  function V(l3, e) {
23041
- let t = l3.replace(m.findPipe, (i, s2, o) => {
23042
- let a = false, u = s2;
23043
- for (; --u >= 0 && o[u] === "\\"; ) a = !a;
23044
- return a ? "|" : " |";
23052
+ let t = l3.replace(m.findPipe, (i, s2, a) => {
23053
+ let o = false, p = s2;
23054
+ for (; --p >= 0 && a[p] === "\\"; ) o = !o;
23055
+ return o ? "|" : " |";
23045
23056
  }), n = t.split(m.splitPipe), r2 = 0;
23046
23057
  if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), e) if (n.length > e) n.splice(e);
23047
23058
  else for (; n.length < e; ) n.push("");
@@ -23059,7 +23070,7 @@ function z(l3, e, t) {
23059
23070
  }
23060
23071
  return l3.slice(0, n - r2);
23061
23072
  }
23062
- function ge(l3, e) {
23073
+ function fe(l3, e) {
23063
23074
  if (l3.indexOf(e[1]) === -1) return -1;
23064
23075
  let t = 0;
23065
23076
  for (let n = 0; n < l3.length; n++) if (l3[n] === "\\") n++;
@@ -23067,13 +23078,13 @@ function ge(l3, e) {
23067
23078
  else if (l3[n] === e[1] && (t--, t < 0)) return n;
23068
23079
  return t > 0 ? -2 : -1;
23069
23080
  }
23070
- function fe(l3, e, t, n, r2) {
23071
- let i = e.href, s2 = e.title || null, o = l3[1].replace(r2.other.outputLinkReplace, "$1");
23081
+ function me(l3, e, t, n, r2) {
23082
+ let i = e.href, s2 = e.title || null, a = l3[1].replace(r2.other.outputLinkReplace, "$1");
23072
23083
  n.state.inLink = true;
23073
- let a = { type: l3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s2, text: o, tokens: n.inlineTokens(o) };
23074
- return n.state.inLink = false, a;
23084
+ let o = { type: l3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s2, text: a, tokens: n.inlineTokens(a) };
23085
+ return n.state.inLink = false, o;
23075
23086
  }
23076
- function Je(l3, e, t) {
23087
+ function Ye(l3, e, t) {
23077
23088
  let n = l3.match(t.other.indentCodeCompensation);
23078
23089
  if (n === null) return e;
23079
23090
  let r2 = n[1];
@@ -23081,8 +23092,8 @@ function Je(l3, e, t) {
23081
23092
  `).map((i) => {
23082
23093
  let s2 = i.match(t.other.beginningSpace);
23083
23094
  if (s2 === null) return i;
23084
- let [o] = s2;
23085
- return o.length >= r2.length ? i.slice(r2.length) : i;
23095
+ let [a] = s2;
23096
+ return a.length >= r2.length ? i.slice(r2.length) : i;
23086
23097
  }).join(`
23087
23098
  `);
23088
23099
  }
@@ -23091,7 +23102,7 @@ var y = class {
23091
23102
  __publicField$2(this, "options");
23092
23103
  __publicField$2(this, "rules");
23093
23104
  __publicField$2(this, "lexer");
23094
- this.options = e || O;
23105
+ this.options = e || T;
23095
23106
  }
23096
23107
  space(e) {
23097
23108
  let t = this.rules.block.newline.exec(e);
@@ -23108,7 +23119,7 @@ var y = class {
23108
23119
  fences(e) {
23109
23120
  let t = this.rules.block.fences.exec(e);
23110
23121
  if (t) {
23111
- let n = t[0], r2 = Je(n, t[3] || "", this.rules);
23122
+ let n = t[0], r2 = Ye(n, t[3] || "", this.rules);
23112
23123
  return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r2 };
23113
23124
  }
23114
23125
  }
@@ -23135,32 +23146,32 @@ var y = class {
23135
23146
  `).split(`
23136
23147
  `), r2 = "", i = "", s2 = [];
23137
23148
  for (; n.length > 0; ) {
23138
- let o = false, a = [], u;
23139
- for (u = 0; u < n.length; u++) if (this.rules.other.blockquoteStart.test(n[u])) a.push(n[u]), o = true;
23140
- else if (!o) a.push(n[u]);
23149
+ let a = false, o = [], p;
23150
+ for (p = 0; p < n.length; p++) if (this.rules.other.blockquoteStart.test(n[p])) o.push(n[p]), a = true;
23151
+ else if (!a) o.push(n[p]);
23141
23152
  else break;
23142
- n = n.slice(u);
23143
- let p = a.join(`
23144
- `), c2 = p.replace(this.rules.other.blockquoteSetextReplace, `
23153
+ n = n.slice(p);
23154
+ let u = o.join(`
23155
+ `), c2 = u.replace(this.rules.other.blockquoteSetextReplace, `
23145
23156
  $1`).replace(this.rules.other.blockquoteSetextReplace2, "");
23146
23157
  r2 = r2 ? `${r2}
23147
- ${p}` : p, i = i ? `${i}
23158
+ ${u}` : u, i = i ? `${i}
23148
23159
  ${c2}` : c2;
23149
- let f2 = this.lexer.state.top;
23150
- if (this.lexer.state.top = true, this.lexer.blockTokens(c2, s2, true), this.lexer.state.top = f2, n.length === 0) break;
23151
- let k2 = s2.at(-1);
23152
- if (k2?.type === "code") break;
23153
- if (k2?.type === "blockquote") {
23154
- let x = k2, g = x.raw + `
23160
+ let g = this.lexer.state.top;
23161
+ if (this.lexer.state.top = true, this.lexer.blockTokens(c2, s2, true), this.lexer.state.top = g, n.length === 0) break;
23162
+ let h = s2.at(-1);
23163
+ if (h?.type === "code") break;
23164
+ if (h?.type === "blockquote") {
23165
+ let R = h, f2 = R.raw + `
23155
23166
  ` + n.join(`
23156
- `), T = this.blockquote(g);
23157
- s2[s2.length - 1] = T, r2 = r2.substring(0, r2.length - x.raw.length) + T.raw, i = i.substring(0, i.length - x.text.length) + T.text;
23167
+ `), O = this.blockquote(f2);
23168
+ s2[s2.length - 1] = O, r2 = r2.substring(0, r2.length - R.raw.length) + O.raw, i = i.substring(0, i.length - R.text.length) + O.text;
23158
23169
  break;
23159
- } else if (k2?.type === "list") {
23160
- let x = k2, g = x.raw + `
23170
+ } else if (h?.type === "list") {
23171
+ let R = h, f2 = R.raw + `
23161
23172
  ` + n.join(`
23162
- `), T = this.list(g);
23163
- s2[s2.length - 1] = T, r2 = r2.substring(0, r2.length - k2.raw.length) + T.raw, i = i.substring(0, i.length - x.raw.length) + T.raw, n = g.substring(s2.at(-1).raw.length).split(`
23173
+ `), O = this.list(f2);
23174
+ s2[s2.length - 1] = O, r2 = r2.substring(0, r2.length - h.raw.length) + O.raw, i = i.substring(0, i.length - R.raw.length) + O.raw, n = f2.substring(s2.at(-1).raw.length).split(`
23164
23175
  `);
23165
23176
  continue;
23166
23177
  }
@@ -23173,45 +23184,45 @@ ${c2}` : c2;
23173
23184
  if (t) {
23174
23185
  let n = t[1].trim(), r2 = n.length > 1, i = { type: "list", raw: "", ordered: r2, start: r2 ? +n.slice(0, -1) : "", loose: false, items: [] };
23175
23186
  n = r2 ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r2 ? n : "[*+-]");
23176
- let s2 = this.rules.other.listItemRegex(n), o = false;
23187
+ let s2 = this.rules.other.listItemRegex(n), a = false;
23177
23188
  for (; e; ) {
23178
- let u = false, p = "", c2 = "";
23189
+ let p = false, u = "", c2 = "";
23179
23190
  if (!(t = s2.exec(e)) || this.rules.block.hr.test(e)) break;
23180
- p = t[0], e = e.substring(p.length);
23181
- let f2 = t[2].split(`
23182
- `, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), k2 = e.split(`
23183
- `, 1)[0], x = !f2.trim(), g = 0;
23184
- if (this.options.pedantic ? (g = 2, c2 = f2.trimStart()) : x ? g = t[1].length + 1 : (g = t[2].search(this.rules.other.nonSpaceChar), g = g > 4 ? 1 : g, c2 = f2.slice(g), g += t[1].length), x && this.rules.other.blankLine.test(k2) && (p += k2 + `
23185
- `, e = e.substring(k2.length + 1), u = true), !u) {
23186
- 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);
23191
+ u = t[0], e = e.substring(u.length);
23192
+ let g = t[2].split(`
23193
+ `, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), h = e.split(`
23194
+ `, 1)[0], R = !g.trim(), f2 = 0;
23195
+ if (this.options.pedantic ? (f2 = 2, c2 = g.trimStart()) : R ? f2 = t[1].length + 1 : (f2 = t[2].search(this.rules.other.nonSpaceChar), f2 = f2 > 4 ? 1 : f2, c2 = g.slice(f2), f2 += t[1].length), R && this.rules.other.blankLine.test(h) && (u += h + `
23196
+ `, e = e.substring(h.length + 1), p = true), !p) {
23197
+ let H = this.rules.other.nextBulletRegex(f2), ee = this.rules.other.hrRegex(f2), te = this.rules.other.fencesBeginRegex(f2), ne = this.rules.other.headingBeginRegex(f2), xe = this.rules.other.htmlBeginRegex(f2);
23187
23198
  for (; e; ) {
23188
23199
  let Z = e.split(`
23189
23200
  `, 1)[0], A2;
23190
- if (k2 = Z, this.options.pedantic ? (k2 = k2.replace(this.rules.other.listReplaceNesting, " "), A2 = k2) : A2 = k2.replace(this.rules.other.tabCharGlobal, " "), te.test(k2) || ne.test(k2) || me.test(k2) || H.test(k2) || ee.test(k2)) break;
23191
- if (A2.search(this.rules.other.nonSpaceChar) >= g || !k2.trim()) c2 += `
23192
- ` + A2.slice(g);
23201
+ if (h = Z, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), A2 = h) : A2 = h.replace(this.rules.other.tabCharGlobal, " "), te.test(h) || ne.test(h) || xe.test(h) || H.test(h) || ee.test(h)) break;
23202
+ if (A2.search(this.rules.other.nonSpaceChar) >= f2 || !h.trim()) c2 += `
23203
+ ` + A2.slice(f2);
23193
23204
  else {
23194
- if (x || f2.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(f2) || ne.test(f2) || ee.test(f2)) break;
23205
+ if (R || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(g) || ne.test(g) || ee.test(g)) break;
23195
23206
  c2 += `
23196
- ` + k2;
23207
+ ` + h;
23197
23208
  }
23198
- !x && !k2.trim() && (x = true), p += Z + `
23199
- `, e = e.substring(Z.length + 1), f2 = A2.slice(g);
23209
+ !R && !h.trim() && (R = true), u += Z + `
23210
+ `, e = e.substring(Z.length + 1), g = A2.slice(f2);
23200
23211
  }
23201
23212
  }
23202
- i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(p) && (o = true));
23203
- let T = null, Y2;
23204
- this.options.gfm && (T = this.rules.other.listIsTask.exec(c2), T && (Y2 = T[0] !== "[ ] ", c2 = c2.replace(this.rules.other.listReplaceTask, ""))), i.items.push({ type: "list_item", raw: p, task: !!T, checked: Y2, loose: false, text: c2, tokens: [] }), i.raw += p;
23213
+ i.loose || (a ? i.loose = true : this.rules.other.doubleBlankLine.test(u) && (a = true));
23214
+ let O = null, Y2;
23215
+ this.options.gfm && (O = this.rules.other.listIsTask.exec(c2), O && (Y2 = O[0] !== "[ ] ", c2 = c2.replace(this.rules.other.listReplaceTask, ""))), i.items.push({ type: "list_item", raw: u, task: !!O, checked: Y2, loose: false, text: c2, tokens: [] }), i.raw += u;
23205
23216
  }
23206
- let a = i.items.at(-1);
23207
- if (a) a.raw = a.raw.trimEnd(), a.text = a.text.trimEnd();
23217
+ let o = i.items.at(-1);
23218
+ if (o) o.raw = o.raw.trimEnd(), o.text = o.text.trimEnd();
23208
23219
  else return;
23209
23220
  i.raw = i.raw.trimEnd();
23210
- 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) {
23211
- let p = i.items[u].tokens.filter((f2) => f2.type === "space"), c2 = p.length > 0 && p.some((f2) => this.rules.other.anyLine.test(f2.raw));
23221
+ for (let p = 0; p < i.items.length; p++) if (this.lexer.state.top = false, i.items[p].tokens = this.lexer.blockTokens(i.items[p].text, []), !i.loose) {
23222
+ let u = i.items[p].tokens.filter((g) => g.type === "space"), c2 = u.length > 0 && u.some((g) => this.rules.other.anyLine.test(g.raw));
23212
23223
  i.loose = c2;
23213
23224
  }
23214
- if (i.loose) for (let u = 0; u < i.items.length; u++) i.items[u].loose = true;
23225
+ if (i.loose) for (let p = 0; p < i.items.length; p++) i.items[p].loose = true;
23215
23226
  return i;
23216
23227
  }
23217
23228
  }
@@ -23232,9 +23243,9 @@ ${c2}` : c2;
23232
23243
  let n = V(t[1]), r2 = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split(`
23233
23244
  `) : [], s2 = { type: "table", raw: t[0], header: [], align: [], rows: [] };
23234
23245
  if (n.length === r2.length) {
23235
- for (let o of r2) this.rules.other.tableAlignRight.test(o) ? s2.align.push("right") : this.rules.other.tableAlignCenter.test(o) ? s2.align.push("center") : this.rules.other.tableAlignLeft.test(o) ? s2.align.push("left") : s2.align.push(null);
23236
- for (let o = 0; o < n.length; o++) s2.header.push({ text: n[o], tokens: this.lexer.inline(n[o]), header: true, align: s2.align[o] });
23237
- for (let o of i) s2.rows.push(V(o, s2.header.length).map((a, u) => ({ text: a, tokens: this.lexer.inline(a), header: false, align: s2.align[u] })));
23246
+ for (let a of r2) this.rules.other.tableAlignRight.test(a) ? s2.align.push("right") : this.rules.other.tableAlignCenter.test(a) ? s2.align.push("center") : this.rules.other.tableAlignLeft.test(a) ? s2.align.push("left") : s2.align.push(null);
23247
+ for (let a = 0; a < n.length; a++) s2.header.push({ text: n[a], tokens: this.lexer.inline(n[a]), header: true, align: s2.align[a] });
23248
+ for (let a of i) s2.rows.push(V(a, s2.header.length).map((o, p) => ({ text: o, tokens: this.lexer.inline(o), header: false, align: s2.align[p] })));
23238
23249
  return s2;
23239
23250
  }
23240
23251
  }
@@ -23271,11 +23282,11 @@ ${c2}` : c2;
23271
23282
  let s2 = z(n.slice(0, -1), "\\");
23272
23283
  if ((n.length - s2.length) % 2 === 0) return;
23273
23284
  } else {
23274
- let s2 = ge(t[2], "()");
23285
+ let s2 = fe(t[2], "()");
23275
23286
  if (s2 === -2) return;
23276
23287
  if (s2 > -1) {
23277
- let a = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s2;
23278
- t[2] = t[2].substring(0, s2), t[0] = t[0].substring(0, a).trim(), t[3] = "";
23288
+ let o = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s2;
23289
+ t[2] = t[2].substring(0, s2), t[0] = t[0].substring(0, o).trim(), t[3] = "";
23279
23290
  }
23280
23291
  }
23281
23292
  let r2 = t[2], i = "";
@@ -23283,7 +23294,7 @@ ${c2}` : c2;
23283
23294
  let s2 = this.rules.other.pedanticHrefTitle.exec(r2);
23284
23295
  s2 && (r2 = s2[1], i = s2[3]);
23285
23296
  } else i = t[3] ? t[3].slice(1, -1) : "";
23286
- return r2 = r2.trim(), this.rules.other.startAngleBracket.test(r2) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r2 = r2.slice(1) : r2 = r2.slice(1, -1)), fe(t, { href: r2 && r2.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
23297
+ return r2 = r2.trim(), this.rules.other.startAngleBracket.test(r2) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r2 = r2.slice(1) : r2 = r2.slice(1, -1)), me(t, { href: r2 && r2.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
23287
23298
  }
23288
23299
  }
23289
23300
  reflink(e, t) {
@@ -23294,32 +23305,32 @@ ${c2}` : c2;
23294
23305
  let s2 = n[0].charAt(0);
23295
23306
  return { type: "text", raw: s2, text: s2 };
23296
23307
  }
23297
- return fe(n, i, n[0], this.lexer, this.rules);
23308
+ return me(n, i, n[0], this.lexer, this.rules);
23298
23309
  }
23299
23310
  }
23300
23311
  emStrong(e, t, n = "") {
23301
23312
  let r2 = this.rules.inline.emStrongLDelim.exec(e);
23302
23313
  if (!r2 || r2[3] && n.match(this.rules.other.unicodeAlphaNumeric)) return;
23303
23314
  if (!(r2[1] || r2[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
23304
- let s2 = [...r2[0]].length - 1, o, a, u = s2, p = 0, c2 = r2[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
23315
+ let s2 = [...r2[0]].length - 1, a, o, p = s2, u = 0, c2 = r2[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
23305
23316
  for (c2.lastIndex = 0, t = t.slice(-1 * e.length + s2); (r2 = c2.exec(t)) != null; ) {
23306
- if (o = r2[1] || r2[2] || r2[3] || r2[4] || r2[5] || r2[6], !o) continue;
23307
- if (a = [...o].length, r2[3] || r2[4]) {
23308
- u += a;
23317
+ if (a = r2[1] || r2[2] || r2[3] || r2[4] || r2[5] || r2[6], !a) continue;
23318
+ if (o = [...a].length, r2[3] || r2[4]) {
23319
+ p += o;
23309
23320
  continue;
23310
- } else if ((r2[5] || r2[6]) && s2 % 3 && !((s2 + a) % 3)) {
23311
- p += a;
23321
+ } else if ((r2[5] || r2[6]) && s2 % 3 && !((s2 + o) % 3)) {
23322
+ u += o;
23312
23323
  continue;
23313
23324
  }
23314
- if (u -= a, u > 0) continue;
23315
- a = Math.min(a, a + u + p);
23316
- let f2 = [...r2[0]][0].length, k2 = e.slice(0, s2 + r2.index + f2 + a);
23317
- if (Math.min(s2, a) % 2) {
23318
- let g = k2.slice(1, -1);
23319
- return { type: "em", raw: k2, text: g, tokens: this.lexer.inlineTokens(g) };
23325
+ if (p -= o, p > 0) continue;
23326
+ o = Math.min(o, o + p + u);
23327
+ let g = [...r2[0]][0].length, h = e.slice(0, s2 + r2.index + g + o);
23328
+ if (Math.min(s2, o) % 2) {
23329
+ let f2 = h.slice(1, -1);
23330
+ return { type: "em", raw: h, text: f2, tokens: this.lexer.inlineTokens(f2) };
23320
23331
  }
23321
- let x = k2.slice(2, -2);
23322
- return { type: "strong", raw: k2, text: x, tokens: this.lexer.inlineTokens(x) };
23332
+ let R = h.slice(2, -2);
23333
+ return { type: "strong", raw: h, text: R, tokens: this.lexer.inlineTokens(R) };
23323
23334
  }
23324
23335
  }
23325
23336
  }
@@ -23368,19 +23379,19 @@ ${c2}` : c2;
23368
23379
  }
23369
23380
  }
23370
23381
  };
23371
- var b = class l {
23382
+ var x = class l {
23372
23383
  constructor(e) {
23373
23384
  __publicField$2(this, "tokens");
23374
23385
  __publicField$2(this, "options");
23375
23386
  __publicField$2(this, "state");
23376
23387
  __publicField$2(this, "tokenizer");
23377
23388
  __publicField$2(this, "inlineQueue");
23378
- 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 };
23379
- let t = { other: m, block: I.normal, inline: M$1.normal };
23380
- this.options.pedantic ? (t.block = I.pedantic, t.inline = M$1.pedantic) : this.options.gfm && (t.block = I.gfm, this.options.breaks ? t.inline = M$1.breaks : t.inline = M$1.gfm), this.tokenizer.rules = t;
23389
+ 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 };
23390
+ let t = { other: m, block: C.normal, inline: M$1.normal };
23391
+ this.options.pedantic ? (t.block = C.pedantic, t.inline = M$1.pedantic) : this.options.gfm && (t.block = C.gfm, this.options.breaks ? t.inline = M$1.breaks : t.inline = M$1.gfm), this.tokenizer.rules = t;
23381
23392
  }
23382
23393
  static get rules() {
23383
- return { block: I, inline: M$1 };
23394
+ return { block: C, inline: M$1 };
23384
23395
  }
23385
23396
  static lex(e, t) {
23386
23397
  return new l(t).lex(e);
@@ -23460,9 +23471,9 @@ var b = class l {
23460
23471
  }
23461
23472
  let i = e;
23462
23473
  if (this.options.extensions?.startBlock) {
23463
- let s2 = 1 / 0, o = e.slice(1), a;
23464
- this.options.extensions.startBlock.forEach((u) => {
23465
- a = u.call({ lexer: this }, o), typeof a == "number" && a >= 0 && (s2 = Math.min(s2, a));
23474
+ let s2 = 1 / 0, a = e.slice(1), o;
23475
+ this.options.extensions.startBlock.forEach((p) => {
23476
+ o = p.call({ lexer: this }, a), typeof o == "number" && o >= 0 && (s2 = Math.min(s2, o));
23466
23477
  }), s2 < 1 / 0 && s2 >= 0 && (i = e.substring(0, s2 + 1));
23467
23478
  }
23468
23479
  if (this.state.top && (r2 = this.tokenizer.paragraph(i))) {
@@ -23502,11 +23513,12 @@ var b = class l {
23502
23513
  if (o.length > 0) for (; (r2 = this.tokenizer.rules.inline.reflinkSearch.exec(n)) != null; ) o.includes(r2[0].slice(r2[0].lastIndexOf("[") + 1, -1)) && (n = n.slice(0, r2.index) + "[" + "a".repeat(r2[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
23503
23514
  }
23504
23515
  for (; (r2 = this.tokenizer.rules.inline.anyPunctuation.exec(n)) != null; ) n = n.slice(0, r2.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
23505
- for (; (r2 = this.tokenizer.rules.inline.blockSkip.exec(n)) != null; ) n = n.slice(0, r2.index) + "[" + "a".repeat(r2[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
23516
+ let i;
23517
+ for (; (r2 = this.tokenizer.rules.inline.blockSkip.exec(n)) != null; ) i = r2[2] ? r2[2].length : 0, n = n.slice(0, r2.index + i) + "[" + "a".repeat(r2[0].length - i - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
23506
23518
  n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
23507
- let i = false, s2 = "";
23519
+ let s2 = false, a = "";
23508
23520
  for (; e; ) {
23509
- i || (s2 = ""), i = false;
23521
+ s2 || (a = ""), s2 = false;
23510
23522
  let o;
23511
23523
  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;
23512
23524
  if (o = this.tokenizer.escape(e)) {
@@ -23527,7 +23539,7 @@ var b = class l {
23527
23539
  o.type === "text" && u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
23528
23540
  continue;
23529
23541
  }
23530
- if (o = this.tokenizer.emStrong(e, n, s2)) {
23542
+ if (o = this.tokenizer.emStrong(e, n, a)) {
23531
23543
  e = e.substring(o.raw.length), t.push(o);
23532
23544
  continue;
23533
23545
  }
@@ -23551,15 +23563,15 @@ var b = class l {
23551
23563
  e = e.substring(o.raw.length), t.push(o);
23552
23564
  continue;
23553
23565
  }
23554
- let a = e;
23566
+ let p = e;
23555
23567
  if (this.options.extensions?.startInline) {
23556
- let u = 1 / 0, p = e.slice(1), c2;
23557
- this.options.extensions.startInline.forEach((f2) => {
23558
- c2 = f2.call({ lexer: this }, p), typeof c2 == "number" && c2 >= 0 && (u = Math.min(u, c2));
23559
- }), u < 1 / 0 && u >= 0 && (a = e.substring(0, u + 1));
23568
+ let u = 1 / 0, c2 = e.slice(1), g;
23569
+ this.options.extensions.startInline.forEach((h) => {
23570
+ g = h.call({ lexer: this }, c2), typeof g == "number" && g >= 0 && (u = Math.min(u, g));
23571
+ }), u < 1 / 0 && u >= 0 && (p = e.substring(0, u + 1));
23560
23572
  }
23561
- if (o = this.tokenizer.inlineText(a)) {
23562
- e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (s2 = o.raw.slice(-1)), i = true;
23573
+ if (o = this.tokenizer.inlineText(p)) {
23574
+ e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (a = o.raw.slice(-1)), s2 = true;
23563
23575
  let u = t.at(-1);
23564
23576
  u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
23565
23577
  continue;
@@ -23579,7 +23591,7 @@ var P = class {
23579
23591
  constructor(e) {
23580
23592
  __publicField$2(this, "options");
23581
23593
  __publicField$2(this, "parser");
23582
- this.options = e || O;
23594
+ this.options = e || T;
23583
23595
  }
23584
23596
  space(e) {
23585
23597
  return "";
@@ -23612,9 +23624,9 @@ ${this.parser.parse(e)}</blockquote>
23612
23624
  }
23613
23625
  list(e) {
23614
23626
  let t = e.ordered, n = e.start, r2 = "";
23615
- for (let o = 0; o < e.items.length; o++) {
23616
- let a = e.items[o];
23617
- r2 += this.listitem(a);
23627
+ for (let a = 0; a < e.items.length; a++) {
23628
+ let o = e.items[a];
23629
+ r2 += this.listitem(o);
23618
23630
  }
23619
23631
  let i = t ? "ol" : "ul", s2 = t && n !== 1 ? ' start="' + n + '"' : "";
23620
23632
  return "<" + i + s2 + `>
@@ -23645,7 +23657,7 @@ ${this.parser.parse(e)}</blockquote>
23645
23657
  for (let i = 0; i < e.rows.length; i++) {
23646
23658
  let s2 = e.rows[i];
23647
23659
  n = "";
23648
- for (let o = 0; o < s2.length; o++) n += this.tablecell(s2[o]);
23660
+ for (let a = 0; a < s2.length; a++) n += this.tablecell(s2[a]);
23649
23661
  r2 += this.tablerow({ text: n });
23650
23662
  }
23651
23663
  return r2 && (r2 = `<tbody>${r2}</tbody>`), `<table>
@@ -23727,12 +23739,12 @@ var $ = class {
23727
23739
  return "";
23728
23740
  }
23729
23741
  };
23730
- var R = class l2 {
23742
+ var b = class l2 {
23731
23743
  constructor(e) {
23732
23744
  __publicField$2(this, "options");
23733
23745
  __publicField$2(this, "renderer");
23734
23746
  __publicField$2(this, "textRenderer");
23735
- 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 $();
23747
+ 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 $();
23736
23748
  }
23737
23749
  static parse(e, t) {
23738
23750
  return new l2(t).parse(e);
@@ -23745,9 +23757,9 @@ var R = class l2 {
23745
23757
  for (let r2 = 0; r2 < e.length; r2++) {
23746
23758
  let i = e[r2];
23747
23759
  if (this.options.extensions?.renderers?.[i.type]) {
23748
- let o = i, a = this.options.extensions.renderers[o.type].call({ parser: this }, o);
23749
- if (a !== false || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(o.type)) {
23750
- n += a || "";
23760
+ let a = i, o = this.options.extensions.renderers[a.type].call({ parser: this }, a);
23761
+ if (o !== false || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(a.type)) {
23762
+ n += o || "";
23751
23763
  continue;
23752
23764
  }
23753
23765
  }
@@ -23794,16 +23806,16 @@ var R = class l2 {
23794
23806
  continue;
23795
23807
  }
23796
23808
  case "text": {
23797
- let o = s2, a = this.renderer.text(o);
23798
- for (; r2 + 1 < e.length && e[r2 + 1].type === "text"; ) o = e[++r2], a += `
23799
- ` + this.renderer.text(o);
23800
- t ? n += this.renderer.paragraph({ type: "paragraph", raw: a, text: a, tokens: [{ type: "text", raw: a, text: a, escaped: true }] }) : n += a;
23809
+ let a = s2, o = this.renderer.text(a);
23810
+ for (; r2 + 1 < e.length && e[r2 + 1].type === "text"; ) a = e[++r2], o += `
23811
+ ` + this.renderer.text(a);
23812
+ t ? n += this.renderer.paragraph({ type: "paragraph", raw: o, text: o, tokens: [{ type: "text", raw: o, text: o, escaped: true }] }) : n += o;
23801
23813
  continue;
23802
23814
  }
23803
23815
  default: {
23804
- let o = 'Token with "' + s2.type + '" type was not found.';
23805
- if (this.options.silent) return console.error(o), "";
23806
- throw new Error(o);
23816
+ let a = 'Token with "' + s2.type + '" type was not found.';
23817
+ if (this.options.silent) return console.error(a), "";
23818
+ throw new Error(a);
23807
23819
  }
23808
23820
  }
23809
23821
  }
@@ -23814,9 +23826,9 @@ var R = class l2 {
23814
23826
  for (let r2 = 0; r2 < e.length; r2++) {
23815
23827
  let i = e[r2];
23816
23828
  if (this.options.extensions?.renderers?.[i.type]) {
23817
- let o = this.options.extensions.renderers[i.type].call({ parser: this }, i);
23818
- if (o !== false || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(i.type)) {
23819
- n += o || "";
23829
+ let a = this.options.extensions.renderers[i.type].call({ parser: this }, i);
23830
+ if (a !== false || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(i.type)) {
23831
+ n += a || "";
23820
23832
  continue;
23821
23833
  }
23822
23834
  }
@@ -23863,9 +23875,9 @@ var R = class l2 {
23863
23875
  break;
23864
23876
  }
23865
23877
  default: {
23866
- let o = 'Token with "' + s2.type + '" type was not found.';
23867
- if (this.options.silent) return console.error(o), "";
23868
- throw new Error(o);
23878
+ let a = 'Token with "' + s2.type + '" type was not found.';
23879
+ if (this.options.silent) return console.error(a), "";
23880
+ throw new Error(a);
23869
23881
  }
23870
23882
  }
23871
23883
  }
@@ -23876,7 +23888,7 @@ var S = (_a = class {
23876
23888
  constructor(e) {
23877
23889
  __publicField$2(this, "options");
23878
23890
  __publicField$2(this, "block");
23879
- this.options = e || O;
23891
+ this.options = e || T;
23880
23892
  }
23881
23893
  preprocess(e) {
23882
23894
  return e;
@@ -23891,10 +23903,10 @@ var S = (_a = class {
23891
23903
  return e;
23892
23904
  }
23893
23905
  provideLexer() {
23894
- return this.block ? b.lex : b.lexInline;
23906
+ return this.block ? x.lex : x.lexInline;
23895
23907
  }
23896
23908
  provideParser() {
23897
- return this.block ? R.parse : R.parseInline;
23909
+ return this.block ? b.parse : b.parseInline;
23898
23910
  }
23899
23911
  }, __publicField$2(_a, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField$2(_a, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _a);
23900
23912
  var B = class {
@@ -23903,10 +23915,10 @@ var B = class {
23903
23915
  __publicField$2(this, "options", this.setOptions);
23904
23916
  __publicField$2(this, "parse", this.parseMarkdown(true));
23905
23917
  __publicField$2(this, "parseInline", this.parseMarkdown(false));
23906
- __publicField$2(this, "Parser", R);
23918
+ __publicField$2(this, "Parser", b);
23907
23919
  __publicField$2(this, "Renderer", P);
23908
23920
  __publicField$2(this, "TextRenderer", $);
23909
- __publicField$2(this, "Lexer", b);
23921
+ __publicField$2(this, "Lexer", x);
23910
23922
  __publicField$2(this, "Tokenizer", y);
23911
23923
  __publicField$2(this, "Hooks", S);
23912
23924
  this.use(...e);
@@ -23917,7 +23929,7 @@ var B = class {
23917
23929
  case "table": {
23918
23930
  let i = r2;
23919
23931
  for (let s2 of i.header) n = n.concat(this.walkTokens(s2.tokens, t));
23920
- for (let s2 of i.rows) for (let o of s2) n = n.concat(this.walkTokens(o.tokens, t));
23932
+ for (let s2 of i.rows) for (let a of s2) n = n.concat(this.walkTokens(a.tokens, t));
23921
23933
  break;
23922
23934
  }
23923
23935
  case "list": {
@@ -23928,8 +23940,8 @@ var B = class {
23928
23940
  default: {
23929
23941
  let i = r2;
23930
23942
  this.defaults.extensions?.childTokens?.[i.type] ? this.defaults.extensions.childTokens[i.type].forEach((s2) => {
23931
- let o = i[s2].flat(1 / 0);
23932
- n = n.concat(this.walkTokens(o, t));
23943
+ let a = i[s2].flat(1 / 0);
23944
+ n = n.concat(this.walkTokens(a, t));
23933
23945
  }) : i.tokens && (n = n.concat(this.walkTokens(i.tokens, t)));
23934
23946
  }
23935
23947
  }
@@ -23943,9 +23955,9 @@ var B = class {
23943
23955
  if (!i.name) throw new Error("extension name required");
23944
23956
  if ("renderer" in i) {
23945
23957
  let s2 = t.renderers[i.name];
23946
- s2 ? t.renderers[i.name] = function(...o) {
23947
- let a = i.renderer.apply(this, o);
23948
- return a === false && (a = s2.apply(this, o)), a;
23958
+ s2 ? t.renderers[i.name] = function(...a) {
23959
+ let o = i.renderer.apply(this, a);
23960
+ return o === false && (o = s2.apply(this, a)), o;
23949
23961
  } : t.renderers[i.name] = i.renderer;
23950
23962
  }
23951
23963
  if ("tokenizer" in i) {
@@ -23959,10 +23971,10 @@ var B = class {
23959
23971
  for (let s2 in n.renderer) {
23960
23972
  if (!(s2 in i)) throw new Error(`renderer '${s2}' does not exist`);
23961
23973
  if (["options", "parser"].includes(s2)) continue;
23962
- let o = s2, a = n.renderer[o], u = i[o];
23963
- i[o] = (...p) => {
23964
- let c2 = a.apply(i, p);
23965
- return c2 === false && (c2 = u.apply(i, p)), c2 || "";
23974
+ let a = s2, o = n.renderer[a], p = i[a];
23975
+ i[a] = (...u) => {
23976
+ let c2 = o.apply(i, u);
23977
+ return c2 === false && (c2 = p.apply(i, u)), c2 || "";
23966
23978
  };
23967
23979
  }
23968
23980
  r2.renderer = i;
@@ -23972,10 +23984,10 @@ var B = class {
23972
23984
  for (let s2 in n.tokenizer) {
23973
23985
  if (!(s2 in i)) throw new Error(`tokenizer '${s2}' does not exist`);
23974
23986
  if (["options", "rules", "lexer"].includes(s2)) continue;
23975
- let o = s2, a = n.tokenizer[o], u = i[o];
23976
- i[o] = (...p) => {
23977
- let c2 = a.apply(i, p);
23978
- return c2 === false && (c2 = u.apply(i, p)), c2;
23987
+ let a = s2, o = n.tokenizer[a], p = i[a];
23988
+ i[a] = (...u) => {
23989
+ let c2 = o.apply(i, u);
23990
+ return c2 === false && (c2 = p.apply(i, u)), c2;
23979
23991
  };
23980
23992
  }
23981
23993
  r2.tokenizer = i;
@@ -23985,23 +23997,30 @@ var B = class {
23985
23997
  for (let s2 in n.hooks) {
23986
23998
  if (!(s2 in i)) throw new Error(`hook '${s2}' does not exist`);
23987
23999
  if (["options", "block"].includes(s2)) continue;
23988
- let o = s2, a = n.hooks[o], u = i[o];
23989
- S.passThroughHooks.has(s2) ? i[o] = (p) => {
23990
- if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return Promise.resolve(a.call(i, p)).then((f2) => u.call(i, f2));
23991
- let c2 = a.call(i, p);
23992
- return u.call(i, c2);
23993
- } : i[o] = (...p) => {
23994
- let c2 = a.apply(i, p);
23995
- return c2 === false && (c2 = u.apply(i, p)), c2;
24000
+ let a = s2, o = n.hooks[a], p = i[a];
24001
+ S.passThroughHooks.has(s2) ? i[a] = (u) => {
24002
+ if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return (async () => {
24003
+ let g = await o.call(i, u);
24004
+ return p.call(i, g);
24005
+ })();
24006
+ let c2 = o.call(i, u);
24007
+ return p.call(i, c2);
24008
+ } : i[a] = (...u) => {
24009
+ if (this.defaults.async) return (async () => {
24010
+ let g = await o.apply(i, u);
24011
+ return g === false && (g = await p.apply(i, u)), g;
24012
+ })();
24013
+ let c2 = o.apply(i, u);
24014
+ return c2 === false && (c2 = p.apply(i, u)), c2;
23996
24015
  };
23997
24016
  }
23998
24017
  r2.hooks = i;
23999
24018
  }
24000
24019
  if (n.walkTokens) {
24001
24020
  let i = this.defaults.walkTokens, s2 = n.walkTokens;
24002
- r2.walkTokens = function(o) {
24003
- let a = [];
24004
- return a.push(s2.call(this, o)), i && (a = a.concat(i.call(this, o))), a;
24021
+ r2.walkTokens = function(a) {
24022
+ let o = [];
24023
+ return o.push(s2.call(this, a)), i && (o = o.concat(i.call(this, a))), o;
24005
24024
  };
24006
24025
  }
24007
24026
  this.defaults = { ...this.defaults, ...r2 };
@@ -24011,28 +24030,31 @@ var B = class {
24011
24030
  return this.defaults = { ...this.defaults, ...e }, this;
24012
24031
  }
24013
24032
  lexer(e, t) {
24014
- return b.lex(e, t ?? this.defaults);
24033
+ return x.lex(e, t ?? this.defaults);
24015
24034
  }
24016
24035
  parser(e, t) {
24017
- return R.parse(e, t ?? this.defaults);
24036
+ return b.parse(e, t ?? this.defaults);
24018
24037
  }
24019
24038
  parseMarkdown(e) {
24020
24039
  return (n, r2) => {
24021
- let i = { ...r2 }, s2 = { ...this.defaults, ...i }, o = this.onError(!!s2.silent, !!s2.async);
24022
- 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."));
24023
- if (typeof n > "u" || n === null) return o(new Error("marked(): input parameter is undefined or null"));
24024
- if (typeof n != "string") return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
24025
- s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e);
24026
- let a = s2.hooks ? s2.hooks.provideLexer() : e ? b.lex : b.lexInline, u = s2.hooks ? s2.hooks.provideParser() : e ? R.parse : R.parseInline;
24027
- if (s2.async) return Promise.resolve(s2.hooks ? s2.hooks.preprocess(n) : n).then((p) => a(p, s2)).then((p) => s2.hooks ? s2.hooks.processAllTokens(p) : p).then((p) => s2.walkTokens ? Promise.all(this.walkTokens(p, s2.walkTokens)).then(() => p) : p).then((p) => u(p, s2)).then((p) => s2.hooks ? s2.hooks.postprocess(p) : p).catch(o);
24040
+ let i = { ...r2 }, s2 = { ...this.defaults, ...i }, a = this.onError(!!s2.silent, !!s2.async);
24041
+ if (this.defaults.async === true && i.async === false) return a(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."));
24042
+ if (typeof n > "u" || n === null) return a(new Error("marked(): input parameter is undefined or null"));
24043
+ if (typeof n != "string") return a(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
24044
+ if (s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e), s2.async) return (async () => {
24045
+ let o = s2.hooks ? await s2.hooks.preprocess(n) : n, u = await (s2.hooks ? await s2.hooks.provideLexer() : e ? x.lex : x.lexInline)(o, s2), c2 = s2.hooks ? await s2.hooks.processAllTokens(u) : u;
24046
+ s2.walkTokens && await Promise.all(this.walkTokens(c2, s2.walkTokens));
24047
+ let h = await (s2.hooks ? await s2.hooks.provideParser() : e ? b.parse : b.parseInline)(c2, s2);
24048
+ return s2.hooks ? await s2.hooks.postprocess(h) : h;
24049
+ })().catch(a);
24028
24050
  try {
24029
24051
  s2.hooks && (n = s2.hooks.preprocess(n));
24030
- let p = a(n, s2);
24052
+ let p = (s2.hooks ? s2.hooks.provideLexer() : e ? x.lex : x.lexInline)(n, s2);
24031
24053
  s2.hooks && (p = s2.hooks.processAllTokens(p)), s2.walkTokens && this.walkTokens(p, s2.walkTokens);
24032
- let c2 = u(p, s2);
24054
+ let c2 = (s2.hooks ? s2.hooks.provideParser() : e ? b.parse : b.parseInline)(p, s2);
24033
24055
  return s2.hooks && (c2 = s2.hooks.postprocess(c2)), c2;
24034
- } catch (p) {
24035
- return o(p);
24056
+ } catch (o) {
24057
+ return a(o);
24036
24058
  }
24037
24059
  };
24038
24060
  }
@@ -24049,38 +24071,38 @@ Please report this to https://github.com/markedjs/marked.`, e) {
24049
24071
  }
24050
24072
  };
24051
24073
  var _ = new B();
24052
- function d$1(l3, e) {
24074
+ function k$1(l3, e) {
24053
24075
  return _.parse(l3, e);
24054
24076
  }
24055
- d$1.options = d$1.setOptions = function(l3) {
24056
- return _.setOptions(l3), d$1.defaults = _.defaults, G(d$1.defaults), d$1;
24077
+ k$1.options = k$1.setOptions = function(l3) {
24078
+ return _.setOptions(l3), k$1.defaults = _.defaults, G(k$1.defaults), k$1;
24057
24079
  };
24058
- d$1.getDefaults = L;
24059
- d$1.defaults = O;
24060
- d$1.use = function(...l3) {
24061
- return _.use(...l3), d$1.defaults = _.defaults, G(d$1.defaults), d$1;
24080
+ k$1.getDefaults = L;
24081
+ k$1.defaults = T;
24082
+ k$1.use = function(...l3) {
24083
+ return _.use(...l3), k$1.defaults = _.defaults, G(k$1.defaults), k$1;
24062
24084
  };
24063
- d$1.walkTokens = function(l3, e) {
24085
+ k$1.walkTokens = function(l3, e) {
24064
24086
  return _.walkTokens(l3, e);
24065
24087
  };
24066
- d$1.parseInline = _.parseInline;
24067
- d$1.Parser = R;
24068
- d$1.parser = R.parse;
24069
- d$1.Renderer = P;
24070
- d$1.TextRenderer = $;
24071
- d$1.Lexer = b;
24072
- d$1.lexer = b.lex;
24073
- d$1.Tokenizer = y;
24074
- d$1.Hooks = S;
24075
- d$1.parse = d$1;
24076
- d$1.options;
24077
- d$1.setOptions;
24078
- d$1.use;
24079
- d$1.walkTokens;
24080
- d$1.parseInline;
24081
- R.parse;
24082
- b.lex;
24083
- d$1.use({
24088
+ k$1.parseInline = _.parseInline;
24089
+ k$1.Parser = b;
24090
+ k$1.parser = b.parse;
24091
+ k$1.Renderer = P;
24092
+ k$1.TextRenderer = $;
24093
+ k$1.Lexer = x;
24094
+ k$1.lexer = x.lex;
24095
+ k$1.Tokenizer = y;
24096
+ k$1.Hooks = S;
24097
+ k$1.parse = k$1;
24098
+ k$1.options;
24099
+ k$1.setOptions;
24100
+ k$1.use;
24101
+ k$1.walkTokens;
24102
+ k$1.parseInline;
24103
+ b.parse;
24104
+ x.lex;
24105
+ k$1.use({
24084
24106
  breaks: false,
24085
24107
  // Use proper paragraphs, not <br> tags
24086
24108
  gfm: true
@@ -24091,7 +24113,7 @@ function createDocFromMarkdown(markdown, schema, options = {}) {
24091
24113
  return createDocFromHTML(html, schema, options);
24092
24114
  }
24093
24115
  function convertMarkdownToHTML(markdown) {
24094
- let html = d$1.parse(markdown, { async: false });
24116
+ let html = k$1.parse(markdown, { async: false });
24095
24117
  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");
24096
24118
  }
24097
24119
  function processContent({ content, type: type2, schema }) {
@@ -28715,18 +28737,18 @@ const handleShapeGroup = (params2, node, graphicData, size2, padding, marginOffs
28715
28737
  const rawY = shapeOff?.attributes?.["y"] ? parseFloat(shapeOff.attributes["y"]) : 0;
28716
28738
  const rawWidth = shapeExt?.attributes?.["cx"] ? parseFloat(shapeExt.attributes["cx"]) : 914400;
28717
28739
  const rawHeight = shapeExt?.attributes?.["cy"] ? parseFloat(shapeExt.attributes["cy"]) : 914400;
28718
- let x, y2, width, height;
28740
+ let x2, y2, width, height;
28719
28741
  if (groupTransform.childWidth && groupTransform.childHeight) {
28720
28742
  const scaleX = groupTransform.width / groupTransform.childWidth;
28721
28743
  const scaleY = groupTransform.height / groupTransform.childHeight;
28722
28744
  const childOriginX = groupTransform.childOriginXEmu || 0;
28723
28745
  const childOriginY = groupTransform.childOriginYEmu || 0;
28724
- x = groupTransform.x + emuToPixels((rawX - childOriginX) * scaleX);
28746
+ x2 = groupTransform.x + emuToPixels((rawX - childOriginX) * scaleX);
28725
28747
  y2 = groupTransform.y + emuToPixels((rawY - childOriginY) * scaleY);
28726
28748
  width = emuToPixels(rawWidth * scaleX);
28727
28749
  height = emuToPixels(rawHeight * scaleY);
28728
28750
  } else {
28729
- x = emuToPixels(rawX);
28751
+ x2 = emuToPixels(rawX);
28730
28752
  y2 = emuToPixels(rawY);
28731
28753
  width = emuToPixels(rawWidth);
28732
28754
  height = emuToPixels(rawHeight);
@@ -28745,7 +28767,7 @@ const handleShapeGroup = (params2, node, graphicData, size2, padding, marginOffs
28745
28767
  shapeType: "vectorShape",
28746
28768
  attrs: {
28747
28769
  kind: shapeKind,
28748
- x,
28770
+ x: x2,
28749
28771
  y: y2,
28750
28772
  width,
28751
28773
  height,
@@ -28954,8 +28976,8 @@ const translateImageNode = (params2) => {
28954
28976
  const leftMargin = tableCell.attrs.cellMargins?.left || 8;
28955
28977
  const rightMargin = tableCell.attrs.cellMargins?.right || 8;
28956
28978
  const maxWidthEmu = pixelsToEmu(colwidthSum - (leftMargin + rightMargin));
28957
- const { width: w2, height: h2 } = resizeKeepAspectRatio(size2.w, size2.h, maxWidthEmu);
28958
- if (w2 && h2) size2 = { w: w2, h: h2 };
28979
+ const { width: w2, height: h } = resizeKeepAspectRatio(size2.w, size2.h, maxWidthEmu);
28980
+ if (w2 && h) size2 = { w: w2, h };
28959
28981
  }
28960
28982
  if (imageId) {
28961
28983
  const docx = params2.converter?.convertedXml || {};
@@ -32358,8 +32380,15 @@ const encode$4 = (params2, encodedAttrs = {}) => {
32358
32380
  });
32359
32381
  encodedAttrs.importedAuthor = `${encodedAttrs.author} (imported)`;
32360
32382
  subs.forEach((subElement) => {
32361
- if (subElement.marks === void 0) subElement.marks = [];
32362
- subElement.marks.push({ type: "trackDelete", attrs: encodedAttrs });
32383
+ subElement.marks = [];
32384
+ if (subElement?.content?.[0]) {
32385
+ if (subElement.content[0].marks === void 0) {
32386
+ subElement.content[0].marks = [];
32387
+ }
32388
+ if (subElement.content[0].type === "text") {
32389
+ subElement.content[0].marks.push({ type: "trackDelete", attrs: encodedAttrs });
32390
+ }
32391
+ }
32363
32392
  });
32364
32393
  return subs;
32365
32394
  };
@@ -32418,8 +32447,15 @@ const encode$3 = (params2, encodedAttrs = {}) => {
32418
32447
  });
32419
32448
  encodedAttrs.importedAuthor = `${encodedAttrs.author} (imported)`;
32420
32449
  subs.forEach((subElement) => {
32421
- if (subElement.marks === void 0) subElement.marks = [];
32422
- subElement.marks.push({ type: "trackInsert", attrs: encodedAttrs });
32450
+ subElement.marks = [];
32451
+ if (subElement?.content?.[0]) {
32452
+ if (subElement.content[0].marks === void 0) {
32453
+ subElement.content[0].marks = [];
32454
+ }
32455
+ if (subElement.content[0].type === "text") {
32456
+ subElement.content[0].marks.push({ type: "trackInsert", attrs: encodedAttrs });
32457
+ }
32458
+ }
32423
32459
  });
32424
32460
  return subs;
32425
32461
  };
@@ -33149,7 +33185,11 @@ function importCommentData({ docx, editor, converter }) {
33149
33185
  const generateCommentsWithExtendedData = ({ docx, comments }) => {
33150
33186
  if (!comments?.length) return [];
33151
33187
  const commentsExtended = docx["word/commentsExtended.xml"];
33152
- if (!commentsExtended) return comments.map((comment) => ({ ...comment, isDone: comment.isDone ?? false }));
33188
+ if (!commentsExtended) {
33189
+ const commentRanges = extractCommentRangesFromDocument(docx);
33190
+ const commentsWithThreading = detectThreadingFromRanges(comments, commentRanges);
33191
+ return commentsWithThreading.map((comment) => ({ ...comment, isDone: comment.isDone ?? false }));
33192
+ }
33153
33193
  const { elements: initialElements = [] } = commentsExtended;
33154
33194
  if (!initialElements?.length) return comments.map((comment) => ({ ...comment, isDone: comment.isDone ?? false }));
33155
33195
  const { elements = [] } = initialElements[0] ?? {};
@@ -33175,6 +33215,79 @@ const getExtendedDetails = (commentEx) => {
33175
33215
  const paraIdParent = attributes["w15:paraIdParent"];
33176
33216
  return { paraId, isDone, paraIdParent };
33177
33217
  };
33218
+ const extractCommentRangesFromDocument = (docx) => {
33219
+ const documentXml = docx["word/document.xml"];
33220
+ if (!documentXml) {
33221
+ return [];
33222
+ }
33223
+ const pendingComments = [];
33224
+ const walkElements = (elements) => {
33225
+ if (!elements || !Array.isArray(elements)) return;
33226
+ elements.forEach((element) => {
33227
+ if (element.name === "w:commentRangeStart") {
33228
+ const commentId = element.attributes?.["w:id"];
33229
+ if (commentId !== void 0) {
33230
+ pendingComments.push({
33231
+ type: "start",
33232
+ commentId: String(commentId)
33233
+ });
33234
+ }
33235
+ } else if (element.name === "w:commentRangeEnd") {
33236
+ const commentId = element.attributes?.["w:id"];
33237
+ if (commentId !== void 0) {
33238
+ pendingComments.push({
33239
+ type: "end",
33240
+ commentId: String(commentId)
33241
+ });
33242
+ }
33243
+ }
33244
+ if (element.elements && Array.isArray(element.elements)) {
33245
+ walkElements(element.elements);
33246
+ }
33247
+ });
33248
+ };
33249
+ if (documentXml.elements && documentXml.elements.length > 0) {
33250
+ const body = documentXml.elements[0];
33251
+ if (body.elements) {
33252
+ walkElements(body.elements);
33253
+ }
33254
+ }
33255
+ return pendingComments;
33256
+ };
33257
+ const detectThreadingFromRanges = (comments, rangeEvents) => {
33258
+ if (!rangeEvents || rangeEvents.length === 0) {
33259
+ return comments;
33260
+ }
33261
+ const openRanges = [];
33262
+ const parentMap = /* @__PURE__ */ new Map();
33263
+ rangeEvents.forEach((event) => {
33264
+ if (event.type === "start") {
33265
+ if (openRanges.length > 0) {
33266
+ const parentCommentId = openRanges[openRanges.length - 1];
33267
+ parentMap.set(event.commentId, parentCommentId);
33268
+ }
33269
+ openRanges.push(event.commentId);
33270
+ } else if (event.type === "end") {
33271
+ const index2 = openRanges.lastIndexOf(event.commentId);
33272
+ if (index2 !== -1) {
33273
+ openRanges.splice(index2, 1);
33274
+ }
33275
+ }
33276
+ });
33277
+ return comments.map((comment) => {
33278
+ const parentCommentId = parentMap.get(comment.importedId);
33279
+ if (parentCommentId) {
33280
+ const parentComment = comments.find((c2) => c2.importedId === parentCommentId);
33281
+ if (parentComment) {
33282
+ return {
33283
+ ...comment,
33284
+ parentCommentId: parentComment.commentId
33285
+ };
33286
+ }
33287
+ }
33288
+ return comment;
33289
+ });
33290
+ };
33178
33291
  const RELATIONSHIP_TYPES = (
33179
33292
  /** @type {const} */
33180
33293
  {
@@ -35360,7 +35473,7 @@ const prepareCommentParaIds = (comment) => {
35360
35473
  return newComment;
35361
35474
  };
35362
35475
  const getCommentDefinition = (comment, commentId, allComments, editor) => {
35363
- const translatedText = translateParagraphNode({ editor, node: comment.commentJSON });
35476
+ const translatedText = translator$1p.decode({ editor, node: comment.commentJSON });
35364
35477
  const attributes = {
35365
35478
  "w:id": String(commentId),
35366
35479
  "w:author": comment.creatorName || comment.importedAuthor?.name,
@@ -35399,10 +35512,12 @@ const toIsoNoFractional = (unixMillis) => {
35399
35512
  const updateCommentsXml = (commentDefs = [], commentsXml) => {
35400
35513
  const newCommentsXml = carbonCopy(commentsXml);
35401
35514
  commentDefs.forEach((commentDef) => {
35402
- const elements = commentDef.elements[0].elements;
35515
+ const paraNode = commentDef.elements[0];
35516
+ if (!paraNode.attributes) paraNode.attributes = {};
35517
+ const elements = paraNode.elements;
35403
35518
  elements.unshift(COMMENT_REF);
35404
35519
  const paraId = commentDef.attributes["w15:paraId"];
35405
- commentDef.elements[0].attributes["w14:paraId"] = paraId;
35520
+ paraNode.attributes["w14:paraId"] = paraId;
35406
35521
  commentDef.attributes = {
35407
35522
  "w:id": commentDef.attributes["w:id"],
35408
35523
  "w:author": commentDef.attributes["w:author"],
@@ -35462,7 +35577,7 @@ const updateCommentsIdsAndExtensible = (comments = [], commentsIds, extensible)
35462
35577
  name: "w16cex:commentExtensible",
35463
35578
  attributes: {
35464
35579
  "w16cex:durableId": newDurableId,
35465
- "w16cex:dateUtc": toIsoNoFractional()
35580
+ "w16cex:dateUtc": toIsoNoFractional(comment.createdTime)
35466
35581
  }
35467
35582
  };
35468
35583
  extensibleUpdated.elements[0].elements.push(newExtensible);
@@ -35775,7 +35890,7 @@ const _SuperConverter = class _SuperConverter2 {
35775
35890
  static getStoredSuperdocVersion(docx) {
35776
35891
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
35777
35892
  }
35778
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.34.4") {
35893
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.34.6-RC1") {
35779
35894
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
35780
35895
  }
35781
35896
  /**
@@ -36166,7 +36281,7 @@ prepareCommentsXmlFilesForExport_fn = function({ defs, exportType, commentsWithP
36166
36281
  };
36167
36282
  exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
36168
36283
  const relsData = this.convertedXml["word/_rels/document.xml.rels"];
36169
- const relationships = relsData.elements.find((x) => x.name === "Relationships");
36284
+ const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
36170
36285
  const newDocRels = [];
36171
36286
  Object.entries(this.headers).forEach(([id, header], index2) => {
36172
36287
  const fileName = relationships.elements.find((el) => el.attributes.Id === id)?.attributes.Target || `header${index2 + 1}.xml`;
@@ -36207,7 +36322,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
36207
36322
  }
36208
36323
  this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
36209
36324
  if (params2.relationships.length) {
36210
- const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x) => x.name === "Relationships")?.elements || [];
36325
+ const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
36211
36326
  this.convertedXml[`word/_rels/${fileName}.rels`] = {
36212
36327
  declaration: this.initialJSON?.declaration,
36213
36328
  elements: [
@@ -36261,7 +36376,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
36261
36376
  }
36262
36377
  this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
36263
36378
  if (params2.relationships.length) {
36264
- const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x) => x.name === "Relationships")?.elements || [];
36379
+ const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
36265
36380
  this.convertedXml[`word/_rels/${fileName}.rels`] = {
36266
36381
  declaration: this.initialJSON?.declaration,
36267
36382
  elements: [
@@ -36280,7 +36395,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
36280
36395
  };
36281
36396
  exportProcessNewRelationships_fn = function(rels = []) {
36282
36397
  const relsData = this.convertedXml["word/_rels/document.xml.rels"];
36283
- const relationships = relsData.elements.find((x) => x.name === "Relationships");
36398
+ const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
36284
36399
  relationships.elements = mergeRelationshipElements(relationships.elements, rels);
36285
36400
  };
36286
36401
  exportProcessMediaFiles_fn = async function(media = {}) {
@@ -36364,7 +36479,7 @@ function requireJszip_min() {
36364
36479
  !(function(e) {
36365
36480
  module2.exports = e();
36366
36481
  })(function() {
36367
- return (function s2(a, o, h2) {
36482
+ return (function s2(a, o, h) {
36368
36483
  function u(r2, e2) {
36369
36484
  if (!o[r2]) {
36370
36485
  if (!a[r2]) {
@@ -36378,23 +36493,23 @@ function requireJszip_min() {
36378
36493
  a[r2][0].call(i.exports, function(e3) {
36379
36494
  var t2 = a[r2][1][e3];
36380
36495
  return u(t2 || e3);
36381
- }, i, i.exports, s2, a, o, h2);
36496
+ }, i, i.exports, s2, a, o, h);
36382
36497
  }
36383
36498
  return o[r2].exports;
36384
36499
  }
36385
- for (var l3 = "function" == typeof commonjsRequire && commonjsRequire, e = 0; e < h2.length; e++) u(h2[e]);
36500
+ for (var l3 = "function" == typeof commonjsRequire && commonjsRequire, e = 0; e < h.length; e++) u(h[e]);
36386
36501
  return u;
36387
36502
  })({ 1: [function(e, t, r2) {
36388
36503
  var d2 = e("./utils"), c2 = e("./support"), p = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
36389
36504
  r2.encode = function(e2) {
36390
- for (var t2, r22, n, i, s2, a, o, h2 = [], u = 0, l3 = e2.length, f2 = l3, c22 = "string" !== d2.getTypeOf(e2); u < e2.length; ) f2 = l3 - u, n = c22 ? (t2 = e2[u++], r22 = u < l3 ? e2[u++] : 0, u < l3 ? e2[u++] : 0) : (t2 = e2.charCodeAt(u++), r22 = u < l3 ? e2.charCodeAt(u++) : 0, u < l3 ? e2.charCodeAt(u++) : 0), i = t2 >> 2, s2 = (3 & t2) << 4 | r22 >> 4, a = 1 < f2 ? (15 & r22) << 2 | n >> 6 : 64, o = 2 < f2 ? 63 & n : 64, h2.push(p.charAt(i) + p.charAt(s2) + p.charAt(a) + p.charAt(o));
36391
- return h2.join("");
36505
+ for (var t2, r22, n, i, s2, a, o, h = [], u = 0, l3 = e2.length, f2 = l3, c22 = "string" !== d2.getTypeOf(e2); u < e2.length; ) f2 = l3 - u, n = c22 ? (t2 = e2[u++], r22 = u < l3 ? e2[u++] : 0, u < l3 ? e2[u++] : 0) : (t2 = e2.charCodeAt(u++), r22 = u < l3 ? e2.charCodeAt(u++) : 0, u < l3 ? e2.charCodeAt(u++) : 0), i = t2 >> 2, s2 = (3 & t2) << 4 | r22 >> 4, a = 1 < f2 ? (15 & r22) << 2 | n >> 6 : 64, o = 2 < f2 ? 63 & n : 64, h.push(p.charAt(i) + p.charAt(s2) + p.charAt(a) + p.charAt(o));
36506
+ return h.join("");
36392
36507
  }, r2.decode = function(e2) {
36393
- var t2, r22, n, i, s2, a, o = 0, h2 = 0, u = "data:";
36508
+ var t2, r22, n, i, s2, a, o = 0, h = 0, u = "data:";
36394
36509
  if (e2.substr(0, u.length) === u) throw new Error("Invalid base64 input, it looks like a data url.");
36395
36510
  var l3, f2 = 3 * (e2 = e2.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
36396
36511
  if (e2.charAt(e2.length - 1) === p.charAt(64) && f2--, e2.charAt(e2.length - 2) === p.charAt(64) && f2--, f2 % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
36397
- for (l3 = c2.uint8array ? new Uint8Array(0 | f2) : new Array(0 | f2); o < e2.length; ) t2 = p.indexOf(e2.charAt(o++)) << 2 | (i = p.indexOf(e2.charAt(o++))) >> 4, r22 = (15 & i) << 4 | (s2 = p.indexOf(e2.charAt(o++))) >> 2, n = (3 & s2) << 6 | (a = p.indexOf(e2.charAt(o++))), l3[h2++] = t2, 64 !== s2 && (l3[h2++] = r22), 64 !== a && (l3[h2++] = n);
36512
+ for (l3 = c2.uint8array ? new Uint8Array(0 | f2) : new Array(0 | f2); o < e2.length; ) t2 = p.indexOf(e2.charAt(o++)) << 2 | (i = p.indexOf(e2.charAt(o++))) >> 4, r22 = (15 & i) << 4 | (s2 = p.indexOf(e2.charAt(o++))) >> 2, n = (3 & s2) << 6 | (a = p.indexOf(e2.charAt(o++))), l3[h++] = t2, 64 !== s2 && (l3[h++] = r22), 64 !== a && (l3[h++] = n);
36398
36513
  return l3;
36399
36514
  };
36400
36515
  }, { "./support": 30, "./utils": 32 }], 2: [function(e, t, r2) {
@@ -36449,25 +36564,25 @@ function requireJszip_min() {
36449
36564
  n = "undefined" != typeof Promise ? Promise : e("lie"), t.exports = { Promise: n };
36450
36565
  }, { lie: 37 }], 7: [function(e, t, r2) {
36451
36566
  var n = "undefined" != typeof Uint8Array && "undefined" != typeof Uint16Array && "undefined" != typeof Uint32Array, i = e("pako"), s2 = e("./utils"), a = e("./stream/GenericWorker"), o = n ? "uint8array" : "array";
36452
- function h2(e2, t2) {
36567
+ function h(e2, t2) {
36453
36568
  a.call(this, "FlateWorker/" + e2), this._pako = null, this._pakoAction = e2, this._pakoOptions = t2, this.meta = {};
36454
36569
  }
36455
- r2.magic = "\b\0", s2.inherits(h2, a), h2.prototype.processChunk = function(e2) {
36570
+ r2.magic = "\b\0", s2.inherits(h, a), h.prototype.processChunk = function(e2) {
36456
36571
  this.meta = e2.meta, null === this._pako && this._createPako(), this._pako.push(s2.transformTo(o, e2.data), false);
36457
- }, h2.prototype.flush = function() {
36572
+ }, h.prototype.flush = function() {
36458
36573
  a.prototype.flush.call(this), null === this._pako && this._createPako(), this._pako.push([], true);
36459
- }, h2.prototype.cleanUp = function() {
36574
+ }, h.prototype.cleanUp = function() {
36460
36575
  a.prototype.cleanUp.call(this), this._pako = null;
36461
- }, h2.prototype._createPako = function() {
36576
+ }, h.prototype._createPako = function() {
36462
36577
  this._pako = new i[this._pakoAction]({ raw: true, level: this._pakoOptions.level || -1 });
36463
36578
  var t2 = this;
36464
36579
  this._pako.onData = function(e2) {
36465
36580
  t2.push({ data: e2, meta: t2.meta });
36466
36581
  };
36467
36582
  }, r2.compressWorker = function(e2) {
36468
- return new h2("Deflate", e2);
36583
+ return new h("Deflate", e2);
36469
36584
  }, r2.uncompressWorker = function() {
36470
- return new h2("Inflate", {});
36585
+ return new h("Inflate", {});
36471
36586
  };
36472
36587
  }, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(e, t, r2) {
36473
36588
  function A2(e2, t2) {
@@ -36476,21 +36591,21 @@ function requireJszip_min() {
36476
36591
  return n2;
36477
36592
  }
36478
36593
  function n(e2, t2, r22, n2, i2, s22) {
36479
- var a, o, h2 = e2.file, u = e2.compression, l3 = s22 !== O2.utf8encode, f2 = I2.transformTo("string", s22(h2.name)), c2 = I2.transformTo("string", O2.utf8encode(h2.name)), d2 = h2.comment, p = I2.transformTo("string", s22(d2)), m2 = I2.transformTo("string", O2.utf8encode(d2)), _2 = c2.length !== h2.name.length, g = m2.length !== d2.length, b2 = "", v2 = "", y2 = "", w2 = h2.dir, k2 = h2.date, x = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
36480
- t2 && !r22 || (x.crc32 = e2.crc32, x.compressedSize = e2.compressedSize, x.uncompressedSize = e2.uncompressedSize);
36594
+ var a, o, h = e2.file, u = e2.compression, l3 = s22 !== O.utf8encode, f2 = I2.transformTo("string", s22(h.name)), c2 = I2.transformTo("string", O.utf8encode(h.name)), d2 = h.comment, p = I2.transformTo("string", s22(d2)), m2 = I2.transformTo("string", O.utf8encode(d2)), _2 = c2.length !== h.name.length, g = m2.length !== d2.length, b2 = "", v2 = "", y2 = "", w2 = h.dir, k2 = h.date, x2 = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
36595
+ t2 && !r22 || (x2.crc32 = e2.crc32, x2.compressedSize = e2.compressedSize, x2.uncompressedSize = e2.uncompressedSize);
36481
36596
  var S2 = 0;
36482
36597
  t2 && (S2 |= 8), l3 || !_2 && !g || (S2 |= 2048);
36483
36598
  var z2 = 0, C2 = 0;
36484
36599
  w2 && (z2 |= 16), "UNIX" === i2 ? (C2 = 798, z2 |= (function(e3, t3) {
36485
36600
  var r3 = e3;
36486
36601
  return e3 || (r3 = t3 ? 16893 : 33204), (65535 & r3) << 16;
36487
- })(h2.unixPermissions, w2)) : (C2 = 20, z2 |= (function(e3) {
36602
+ })(h.unixPermissions, w2)) : (C2 = 20, z2 |= (function(e3) {
36488
36603
  return 63 & (e3 || 0);
36489
- })(h2.dosPermissions)), a = k2.getUTCHours(), a <<= 6, a |= k2.getUTCMinutes(), a <<= 5, a |= k2.getUTCSeconds() / 2, o = k2.getUTCFullYear() - 1980, o <<= 4, o |= k2.getUTCMonth() + 1, o <<= 5, o |= k2.getUTCDate(), _2 && (v2 = A2(1, 1) + A2(B2(f2), 4) + c2, b2 += "up" + A2(v2.length, 2) + v2), g && (y2 = A2(1, 1) + A2(B2(p), 4) + m2, b2 += "uc" + A2(y2.length, 2) + y2);
36604
+ })(h.dosPermissions)), a = k2.getUTCHours(), a <<= 6, a |= k2.getUTCMinutes(), a <<= 5, a |= k2.getUTCSeconds() / 2, o = k2.getUTCFullYear() - 1980, o <<= 4, o |= k2.getUTCMonth() + 1, o <<= 5, o |= k2.getUTCDate(), _2 && (v2 = A2(1, 1) + A2(B2(f2), 4) + c2, b2 += "up" + A2(v2.length, 2) + v2), g && (y2 = A2(1, 1) + A2(B2(p), 4) + m2, b2 += "uc" + A2(y2.length, 2) + y2);
36490
36605
  var E2 = "";
36491
- return E2 += "\n\0", E2 += A2(S2, 2), E2 += u.magic, E2 += A2(a, 2), E2 += A2(o, 2), E2 += A2(x.crc32, 4), E2 += A2(x.compressedSize, 4), E2 += A2(x.uncompressedSize, 4), E2 += A2(f2.length, 2), E2 += A2(b2.length, 2), { fileRecord: R2.LOCAL_FILE_HEADER + E2 + f2 + b2, dirRecord: R2.CENTRAL_FILE_HEADER + A2(C2, 2) + E2 + A2(p.length, 2) + "\0\0\0\0" + A2(z2, 4) + A2(n2, 4) + f2 + b2 + p };
36606
+ return E2 += "\n\0", E2 += A2(S2, 2), E2 += u.magic, E2 += A2(a, 2), E2 += A2(o, 2), E2 += A2(x2.crc32, 4), E2 += A2(x2.compressedSize, 4), E2 += A2(x2.uncompressedSize, 4), E2 += A2(f2.length, 2), E2 += A2(b2.length, 2), { fileRecord: R.LOCAL_FILE_HEADER + E2 + f2 + b2, dirRecord: R.CENTRAL_FILE_HEADER + A2(C2, 2) + E2 + A2(p.length, 2) + "\0\0\0\0" + A2(z2, 4) + A2(n2, 4) + f2 + b2 + p };
36492
36607
  }
36493
- var I2 = e("../utils"), i = e("../stream/GenericWorker"), O2 = e("../utf8"), B2 = e("../crc32"), R2 = e("../signature");
36608
+ var I2 = e("../utils"), i = e("../stream/GenericWorker"), O = e("../utf8"), B2 = e("../crc32"), R = e("../signature");
36494
36609
  function s2(e2, t2, r22, n2) {
36495
36610
  i.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = t2, this.zipPlatform = r22, this.encodeFileName = n2, this.streamFiles = e2, this.accumulate = false, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
36496
36611
  }
@@ -36508,7 +36623,7 @@ function requireJszip_min() {
36508
36623
  this.accumulate = false;
36509
36624
  var t2 = this.streamFiles && !e2.file.dir, r22 = n(e2, t2, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
36510
36625
  if (this.dirRecords.push(r22.dirRecord), t2) this.push({ data: (function(e3) {
36511
- return R2.DATA_DESCRIPTOR + A2(e3.crc32, 4) + A2(e3.compressedSize, 4) + A2(e3.uncompressedSize, 4);
36626
+ return R.DATA_DESCRIPTOR + A2(e3.crc32, 4) + A2(e3.compressedSize, 4) + A2(e3.uncompressedSize, 4);
36512
36627
  })(e2), meta: { percent: 100 } });
36513
36628
  else for (this.push({ data: r22.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
36514
36629
  this.currentFile = null;
@@ -36516,7 +36631,7 @@ function requireJszip_min() {
36516
36631
  for (var e2 = this.bytesWritten, t2 = 0; t2 < this.dirRecords.length; t2++) this.push({ data: this.dirRecords[t2], meta: { percent: 100 } });
36517
36632
  var r22 = this.bytesWritten - e2, n2 = (function(e3, t3, r3, n3, i2) {
36518
36633
  var s22 = I2.transformTo("string", i2(n3));
36519
- return R2.CENTRAL_DIRECTORY_END + "\0\0\0\0" + A2(e3, 2) + A2(e3, 2) + A2(t3, 4) + A2(r3, 4) + A2(s22.length, 2) + s22;
36634
+ return R.CENTRAL_DIRECTORY_END + "\0\0\0\0" + A2(e3, 2) + A2(e3, 2) + A2(t3, 4) + A2(r3, 4) + A2(s22.length, 2) + s22;
36520
36635
  })(this.dirRecords.length, r22, e2, this.zipComment, this.encodeFileName);
36521
36636
  this.push({ data: n2, meta: { percent: 100 } });
36522
36637
  }, s2.prototype.prepareNextSource = function() {
@@ -36548,17 +36663,17 @@ function requireJszip_min() {
36548
36663
  }, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(e, t, r2) {
36549
36664
  var u = e("../compressions"), n = e("./ZipFileWorker");
36550
36665
  r2.generateWorker = function(e2, a, t2) {
36551
- var o = new n(a.streamFiles, t2, a.platform, a.encodeFileName), h2 = 0;
36666
+ var o = new n(a.streamFiles, t2, a.platform, a.encodeFileName), h = 0;
36552
36667
  try {
36553
36668
  e2.forEach(function(e3, t3) {
36554
- h2++;
36669
+ h++;
36555
36670
  var r22 = (function(e4, t4) {
36556
36671
  var r3 = e4 || t4, n3 = u[r3];
36557
36672
  if (!n3) throw new Error(r3 + " is not a valid compression method !");
36558
36673
  return n3;
36559
36674
  })(t3.options.compression, a.compression), n2 = t3.options.compressionOptions || a.compressionOptions || {}, i = t3.dir, s2 = t3.date;
36560
36675
  t3._compressWorker(r22, n2).withStreamInfo("file", { name: e3, dir: i, date: s2, comment: t3.comment || "", unixPermissions: t3.unixPermissions, dosPermissions: t3.dosPermissions }).pipe(o);
36561
- }), o.entriesCount = h2;
36676
+ }), o.entriesCount = h;
36562
36677
  } catch (e3) {
36563
36678
  o.error(e3);
36564
36679
  }
@@ -36590,7 +36705,7 @@ function requireJszip_min() {
36590
36705
  });
36591
36706
  }
36592
36707
  t.exports = function(e2, o) {
36593
- var h2 = this;
36708
+ var h = this;
36594
36709
  return o = u.extend(o || {}, { base64: false, checkCRC32: false, optimizedBinaryString: false, createFolders: false, decodeFileName: n.utf8decode }), l3.isNode && l3.isStream(e2) ? i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : u.prepareContent("the loaded zip file", e2, true, o.optimizedBinaryString, o.base64).then(function(e3) {
36595
36710
  var t2 = new s2(o);
36596
36711
  return t2.load(e3), t2;
@@ -36601,9 +36716,9 @@ function requireJszip_min() {
36601
36716
  }).then(function(e3) {
36602
36717
  for (var t2 = e3.shift(), r22 = t2.files, n2 = 0; n2 < r22.length; n2++) {
36603
36718
  var i2 = r22[n2], s22 = i2.fileNameStr, a2 = u.resolve(i2.fileNameStr);
36604
- h2.file(a2, i2.decompressed, { binary: true, optimizedBinaryString: true, date: i2.date, dir: i2.dir, comment: i2.fileCommentStr.length ? i2.fileCommentStr : null, unixPermissions: i2.unixPermissions, dosPermissions: i2.dosPermissions, createFolders: o.createFolders }), i2.dir || (h2.file(a2).unsafeOriginalName = s22);
36719
+ h.file(a2, i2.decompressed, { binary: true, optimizedBinaryString: true, date: i2.date, dir: i2.dir, comment: i2.fileCommentStr.length ? i2.fileCommentStr : null, unixPermissions: i2.unixPermissions, dosPermissions: i2.dosPermissions, createFolders: o.createFolders }), i2.dir || (h.file(a2).unsafeOriginalName = s22);
36605
36720
  }
36606
- return t2.zipComment.length && (h2.comment = t2.zipComment), h2;
36721
+ return t2.zipComment.length && (h.comment = t2.zipComment), h;
36607
36722
  });
36608
36723
  };
36609
36724
  }, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(e, t, r2) {
@@ -36663,8 +36778,8 @@ function requireJszip_min() {
36663
36778
  r22 && void 0 !== r22.binary || (s22.binary = !a2), (t2 instanceof c2 && 0 === t2.uncompressedSize || s22.dir || !t2 || 0 === t2.length) && (s22.base64 = false, s22.binary = true, t2 = "", s22.compression = "STORE", i2 = "string");
36664
36779
  var o2 = null;
36665
36780
  o2 = t2 instanceof c2 || t2 instanceof l3 ? t2 : p.isNode && p.isStream(t2) ? new m2(e2, t2) : u.prepareContent(e2, t2, s22.binary, s22.optimizedBinaryString, s22.base64);
36666
- var h22 = new d2(e2, o2, s22);
36667
- this.files[e2] = h22;
36781
+ var h2 = new d2(e2, o2, s22);
36782
+ this.files[e2] = h2;
36668
36783
  }
36669
36784
  var i = e("./utf8"), u = e("./utils"), l3 = e("./stream/GenericWorker"), a = e("./stream/StreamHelper"), f2 = e("./defaults"), c2 = e("./compressedObject"), d2 = e("./zipObject"), o = e("./generate"), p = e("./nodejsUtils"), m2 = e("./nodejs/NodejsStreamInputAdapter"), _2 = function(e2) {
36670
36785
  "/" === e2.slice(-1) && (e2 = e2.substring(0, e2.length - 1));
@@ -36675,7 +36790,7 @@ function requireJszip_min() {
36675
36790
  }, b2 = function(e2, t2) {
36676
36791
  return t2 = void 0 !== t2 ? t2 : f2.createFolders, e2 = g(e2), this.files[e2] || s2.call(this, e2, null, { dir: true, createFolders: t2 }), this.files[e2];
36677
36792
  };
36678
- function h2(e2) {
36793
+ function h(e2) {
36679
36794
  return "[object RegExp]" === Object.prototype.toString.call(e2);
36680
36795
  }
36681
36796
  var n = { load: function() {
@@ -36690,7 +36805,7 @@ function requireJszip_min() {
36690
36805
  }), n2;
36691
36806
  }, file: function(e2, t2, r22) {
36692
36807
  if (1 !== arguments.length) return e2 = this.root + e2, s2.call(this, e2, t2, r22), this;
36693
- if (h2(e2)) {
36808
+ if (h(e2)) {
36694
36809
  var n2 = e2;
36695
36810
  return this.filter(function(e3, t3) {
36696
36811
  return !t3.dir && n2.test(e3);
@@ -36700,7 +36815,7 @@ function requireJszip_min() {
36700
36815
  return i2 && !i2.dir ? i2 : null;
36701
36816
  }, folder: function(r22) {
36702
36817
  if (!r22) return this;
36703
- if (h2(r22)) return this.filter(function(e3, t3) {
36818
+ if (h(r22)) return this.filter(function(e3, t3) {
36704
36819
  return t3.dir && r22.test(e3);
36705
36820
  });
36706
36821
  var e2 = this.root + r22, t2 = b2.call(this, e2), n2 = this.clone();
@@ -36817,10 +36932,10 @@ function requireJszip_min() {
36817
36932
  return this.index += e2, t2;
36818
36933
  }, t.exports = i;
36819
36934
  }, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(e, t, r2) {
36820
- var n = e("../utils"), i = e("../support"), s2 = e("./ArrayReader"), a = e("./StringReader"), o = e("./NodeBufferReader"), h2 = e("./Uint8ArrayReader");
36935
+ var n = e("../utils"), i = e("../support"), s2 = e("./ArrayReader"), a = e("./StringReader"), o = e("./NodeBufferReader"), h = e("./Uint8ArrayReader");
36821
36936
  t.exports = function(e2) {
36822
36937
  var t2 = n.getTypeOf(e2);
36823
- return n.checkSupport(t2), "string" !== t2 || i.uint8array ? "nodebuffer" === t2 ? new o(e2) : i.uint8array ? new h2(n.transformTo("uint8array", e2)) : new s2(n.transformTo("array", e2)) : new a(e2);
36938
+ return n.checkSupport(t2), "string" !== t2 || i.uint8array ? "nodebuffer" === t2 ? new o(e2) : i.uint8array ? new h(n.transformTo("uint8array", e2)) : new s2(n.transformTo("array", e2)) : new a(e2);
36824
36939
  };
36825
36940
  }, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(e, t, r2) {
36826
36941
  r2.LOCAL_FILE_HEADER = "PK", r2.CENTRAL_FILE_HEADER = "PK", r2.CENTRAL_DIRECTORY_END = "PK", r2.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", r2.ZIP64_CENTRAL_DIRECTORY_END = "PK", r2.DATA_DESCRIPTOR = "PK\x07\b";
@@ -36943,7 +37058,7 @@ function requireJszip_min() {
36943
37058
  return this.previous ? this.previous + " -> " + e2 : e2;
36944
37059
  } }, t.exports = n;
36945
37060
  }, {}], 29: [function(e, t, r2) {
36946
- var h2 = e("../utils"), i = e("./ConvertWorker"), s2 = e("./GenericWorker"), u = e("../base64"), n = e("../support"), a = e("../external"), o = null;
37061
+ var h = e("../utils"), i = e("./ConvertWorker"), s2 = e("./GenericWorker"), u = e("../base64"), n = e("../support"), a = e("../external"), o = null;
36947
37062
  if (n.nodestream) try {
36948
37063
  o = e("../nodejs/NodejsStreamOutputAdapter");
36949
37064
  } catch (e2) {
@@ -36960,11 +37075,11 @@ function requireJszip_min() {
36960
37075
  var e3 = (function(e4, t3, r3) {
36961
37076
  switch (e4) {
36962
37077
  case "blob":
36963
- return h2.newBlob(h2.transformTo("arraybuffer", t3), r3);
37078
+ return h.newBlob(h.transformTo("arraybuffer", t3), r3);
36964
37079
  case "base64":
36965
37080
  return u.encode(t3);
36966
37081
  default:
36967
- return h2.transformTo(e4, t3);
37082
+ return h.transformTo(e4, t3);
36968
37083
  }
36969
37084
  })(s22, (function(e4, t3) {
36970
37085
  var r3, n3 = 0, i3 = null, s3 = 0;
@@ -37002,7 +37117,7 @@ function requireJszip_min() {
37002
37117
  n2 = "string";
37003
37118
  }
37004
37119
  try {
37005
- this._internalType = n2, this._outputType = t2, this._mimeType = r22, h2.checkSupport(n2), this._worker = e2.pipe(new i(n2)), e2.lock();
37120
+ this._internalType = n2, this._outputType = t2, this._mimeType = r22, h.checkSupport(n2), this._worker = e2.pipe(new i(n2)), e2.lock();
37006
37121
  } catch (e3) {
37007
37122
  this._worker = new s2("error"), this._worker.error(e3);
37008
37123
  }
@@ -37014,14 +37129,14 @@ function requireJszip_min() {
37014
37129
  return "data" === e2 ? this._worker.on(e2, function(e3) {
37015
37130
  t2.call(r22, e3.data, e3.meta);
37016
37131
  }) : this._worker.on(e2, function() {
37017
- h2.delay(t2, arguments, r22);
37132
+ h.delay(t2, arguments, r22);
37018
37133
  }), this;
37019
37134
  }, resume: function() {
37020
- return h2.delay(this._worker.resume, [], this._worker), this;
37135
+ return h.delay(this._worker.resume, [], this._worker), this;
37021
37136
  }, pause: function() {
37022
37137
  return this._worker.pause(), this;
37023
37138
  }, toNodejsStream: function(e2) {
37024
- if (h2.checkSupport("nodestream"), "nodebuffer" !== this._outputType) throw new Error(this._outputType + " is not supported by this method");
37139
+ if (h.checkSupport("nodestream"), "nodebuffer" !== this._outputType) throw new Error(this._outputType + " is not supported by this method");
37025
37140
  return new o(this, { objectMode: "nodebuffer" !== this._outputType }, e2);
37026
37141
  } }, t.exports = f2;
37027
37142
  }, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(e, t, r2) {
@@ -37045,7 +37160,7 @@ function requireJszip_min() {
37045
37160
  r2.nodestream = false;
37046
37161
  }
37047
37162
  }, { "readable-stream": 16 }], 31: [function(e, t, s2) {
37048
- for (var o = e("./utils"), h2 = e("./support"), r2 = e("./nodejsUtils"), n = e("./stream/GenericWorker"), u = new Array(256), i = 0; i < 256; i++) u[i] = 252 <= i ? 6 : 248 <= i ? 5 : 240 <= i ? 4 : 224 <= i ? 3 : 192 <= i ? 2 : 1;
37163
+ for (var o = e("./utils"), h = e("./support"), r2 = e("./nodejsUtils"), n = e("./stream/GenericWorker"), u = new Array(256), i = 0; i < 256; i++) u[i] = 252 <= i ? 6 : 248 <= i ? 5 : 240 <= i ? 4 : 224 <= i ? 3 : 192 <= i ? 2 : 1;
37049
37164
  u[254] = u[254] = 1;
37050
37165
  function a() {
37051
37166
  n.call(this, "utf-8 decode"), this.leftOver = null;
@@ -37054,14 +37169,14 @@ function requireJszip_min() {
37054
37169
  n.call(this, "utf-8 encode");
37055
37170
  }
37056
37171
  s2.utf8encode = function(e2) {
37057
- return h2.nodebuffer ? r2.newBufferFrom(e2, "utf-8") : (function(e3) {
37172
+ return h.nodebuffer ? r2.newBufferFrom(e2, "utf-8") : (function(e3) {
37058
37173
  var t2, r22, n2, i2, s22, a2 = e3.length, o2 = 0;
37059
37174
  for (i2 = 0; i2 < a2; i2++) 55296 == (64512 & (r22 = e3.charCodeAt(i2))) && i2 + 1 < a2 && 56320 == (64512 & (n2 = e3.charCodeAt(i2 + 1))) && (r22 = 65536 + (r22 - 55296 << 10) + (n2 - 56320), i2++), o2 += r22 < 128 ? 1 : r22 < 2048 ? 2 : r22 < 65536 ? 3 : 4;
37060
- for (t2 = h2.uint8array ? new Uint8Array(o2) : new Array(o2), i2 = s22 = 0; s22 < o2; i2++) 55296 == (64512 & (r22 = e3.charCodeAt(i2))) && i2 + 1 < a2 && 56320 == (64512 & (n2 = e3.charCodeAt(i2 + 1))) && (r22 = 65536 + (r22 - 55296 << 10) + (n2 - 56320), i2++), r22 < 128 ? t2[s22++] = r22 : (r22 < 2048 ? t2[s22++] = 192 | r22 >>> 6 : (r22 < 65536 ? t2[s22++] = 224 | r22 >>> 12 : (t2[s22++] = 240 | r22 >>> 18, t2[s22++] = 128 | r22 >>> 12 & 63), t2[s22++] = 128 | r22 >>> 6 & 63), t2[s22++] = 128 | 63 & r22);
37175
+ for (t2 = h.uint8array ? new Uint8Array(o2) : new Array(o2), i2 = s22 = 0; s22 < o2; i2++) 55296 == (64512 & (r22 = e3.charCodeAt(i2))) && i2 + 1 < a2 && 56320 == (64512 & (n2 = e3.charCodeAt(i2 + 1))) && (r22 = 65536 + (r22 - 55296 << 10) + (n2 - 56320), i2++), r22 < 128 ? t2[s22++] = r22 : (r22 < 2048 ? t2[s22++] = 192 | r22 >>> 6 : (r22 < 65536 ? t2[s22++] = 224 | r22 >>> 12 : (t2[s22++] = 240 | r22 >>> 18, t2[s22++] = 128 | r22 >>> 12 & 63), t2[s22++] = 128 | r22 >>> 6 & 63), t2[s22++] = 128 | 63 & r22);
37061
37176
  return t2;
37062
37177
  })(e2);
37063
37178
  }, s2.utf8decode = function(e2) {
37064
- return h2.nodebuffer ? o.transformTo("nodebuffer", e2).toString("utf-8") : (function(e3) {
37179
+ return h.nodebuffer ? o.transformTo("nodebuffer", e2).toString("utf-8") : (function(e3) {
37065
37180
  var t2, r22, n2, i2, s22 = e3.length, a2 = new Array(2 * s22);
37066
37181
  for (t2 = r22 = 0; t2 < s22; ) if ((n2 = e3[t2++]) < 128) a2[r22++] = n2;
37067
37182
  else if (4 < (i2 = u[n2])) a2[r22++] = 65533, t2 += i2 - 1;
@@ -37070,11 +37185,11 @@ function requireJszip_min() {
37070
37185
  1 < i2 ? a2[r22++] = 65533 : n2 < 65536 ? a2[r22++] = n2 : (n2 -= 65536, a2[r22++] = 55296 | n2 >> 10 & 1023, a2[r22++] = 56320 | 1023 & n2);
37071
37186
  }
37072
37187
  return a2.length !== r22 && (a2.subarray ? a2 = a2.subarray(0, r22) : a2.length = r22), o.applyFromCharCode(a2);
37073
- })(e2 = o.transformTo(h2.uint8array ? "uint8array" : "array", e2));
37188
+ })(e2 = o.transformTo(h.uint8array ? "uint8array" : "array", e2));
37074
37189
  }, o.inherits(a, n), a.prototype.processChunk = function(e2) {
37075
- var t2 = o.transformTo(h2.uint8array ? "uint8array" : "array", e2.data);
37190
+ var t2 = o.transformTo(h.uint8array ? "uint8array" : "array", e2.data);
37076
37191
  if (this.leftOver && this.leftOver.length) {
37077
- if (h2.uint8array) {
37192
+ if (h.uint8array) {
37078
37193
  var r22 = t2;
37079
37194
  (t2 = new Uint8Array(r22.length + this.leftOver.length)).set(this.leftOver, 0), t2.set(r22, this.leftOver.length);
37080
37195
  } else t2 = this.leftOver.concat(t2);
@@ -37085,14 +37200,14 @@ function requireJszip_min() {
37085
37200
  for ((t3 = t3 || e3.length) > e3.length && (t3 = e3.length), r3 = t3 - 1; 0 <= r3 && 128 == (192 & e3[r3]); ) r3--;
37086
37201
  return r3 < 0 ? t3 : 0 === r3 ? t3 : r3 + u[e3[r3]] > t3 ? r3 : t3;
37087
37202
  })(t2), i2 = t2;
37088
- n2 !== t2.length && (h2.uint8array ? (i2 = t2.subarray(0, n2), this.leftOver = t2.subarray(n2, t2.length)) : (i2 = t2.slice(0, n2), this.leftOver = t2.slice(n2, t2.length))), this.push({ data: s2.utf8decode(i2), meta: e2.meta });
37203
+ n2 !== t2.length && (h.uint8array ? (i2 = t2.subarray(0, n2), this.leftOver = t2.subarray(n2, t2.length)) : (i2 = t2.slice(0, n2), this.leftOver = t2.slice(n2, t2.length))), this.push({ data: s2.utf8decode(i2), meta: e2.meta });
37089
37204
  }, a.prototype.flush = function() {
37090
37205
  this.leftOver && this.leftOver.length && (this.push({ data: s2.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
37091
37206
  }, s2.Utf8DecodeWorker = a, o.inherits(l3, n), l3.prototype.processChunk = function(e2) {
37092
37207
  this.push({ data: s2.utf8encode(e2.data), meta: e2.meta });
37093
37208
  }, s2.Utf8EncodeWorker = l3;
37094
37209
  }, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(e, t, a) {
37095
- var o = e("./support"), h2 = e("./base64"), r2 = e("./nodejsUtils"), u = e("./external");
37210
+ var o = e("./support"), h = e("./base64"), r2 = e("./nodejsUtils"), u = e("./external");
37096
37211
  function n(e2) {
37097
37212
  return e2;
37098
37213
  }
@@ -37226,17 +37341,17 @@ function requireJszip_min() {
37226
37341
  }) : n3;
37227
37342
  }).then(function(e3) {
37228
37343
  var t2 = a.getTypeOf(e3);
37229
- return t2 ? ("arraybuffer" === t2 ? e3 = a.transformTo("uint8array", e3) : "string" === t2 && (s22 ? e3 = h2.decode(e3) : n2 && true !== i2 && (e3 = (function(e4) {
37344
+ return t2 ? ("arraybuffer" === t2 ? e3 = a.transformTo("uint8array", e3) : "string" === t2 && (s22 ? e3 = h.decode(e3) : n2 && true !== i2 && (e3 = (function(e4) {
37230
37345
  return l3(e4, o.uint8array ? new Uint8Array(e4.length) : new Array(e4.length));
37231
37346
  })(e3))), e3) : u.Promise.reject(new Error("Can't read the data of '" + r22 + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
37232
37347
  });
37233
37348
  };
37234
37349
  }, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(e, t, r2) {
37235
37350
  var n = e("./reader/readerFor"), i = e("./utils"), s2 = e("./signature"), a = e("./zipEntry"), o = e("./support");
37236
- function h2(e2) {
37351
+ function h(e2) {
37237
37352
  this.files = [], this.loadOptions = e2;
37238
37353
  }
37239
- h2.prototype = { checkSignature: function(e2) {
37354
+ h.prototype = { checkSignature: function(e2) {
37240
37355
  if (!this.reader.readAndCheckSignature(e2)) {
37241
37356
  this.reader.index -= 4;
37242
37357
  var t2 = this.reader.readString(4);
@@ -37282,9 +37397,9 @@ function requireJszip_min() {
37282
37397
  this.reader = n(e2);
37283
37398
  }, load: function(e2) {
37284
37399
  this.prepareReader(e2), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
37285
- } }, t.exports = h2;
37400
+ } }, t.exports = h;
37286
37401
  }, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(e, t, r2) {
37287
- var n = e("./reader/readerFor"), s2 = e("./utils"), i = e("./compressedObject"), a = e("./crc32"), o = e("./utf8"), h2 = e("./compressions"), u = e("./support");
37402
+ var n = e("./reader/readerFor"), s2 = e("./utils"), i = e("./compressedObject"), a = e("./crc32"), o = e("./utf8"), h = e("./compressions"), u = e("./support");
37288
37403
  function l3(e2, t2) {
37289
37404
  this.options = e2, this.loadOptions = t2;
37290
37405
  }
@@ -37296,7 +37411,7 @@ function requireJszip_min() {
37296
37411
  var t2, r22;
37297
37412
  if (e2.skip(22), this.fileNameLength = e2.readInt(2), r22 = e2.readInt(2), this.fileName = e2.readData(this.fileNameLength), e2.skip(r22), -1 === this.compressedSize || -1 === this.uncompressedSize) throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
37298
37413
  if (null === (t2 = (function(e3) {
37299
- for (var t3 in h2) if (Object.prototype.hasOwnProperty.call(h2, t3) && h2[t3].magic === e3) return h2[t3];
37414
+ for (var t3 in h) if (Object.prototype.hasOwnProperty.call(h, t3) && h[t3].magic === e3) return h[t3];
37300
37415
  return null;
37301
37416
  })(this.compressionMethod))) throw new Error("Corrupted zip : compression " + s2.pretty(this.compressionMethod) + " unknown (inner file : " + s2.transformTo("string", this.fileName) + ")");
37302
37417
  this.decompressed = new i(this.compressedSize, this.uncompressedSize, this.crc32, t2, e2.readData(this.compressedSize));
@@ -37354,7 +37469,7 @@ function requireJszip_min() {
37354
37469
  function n(e2, t2, r22) {
37355
37470
  this.name = e2, this.dir = r22.dir, this.date = r22.date, this.comment = r22.comment, this.unixPermissions = r22.unixPermissions, this.dosPermissions = r22.dosPermissions, this._data = t2, this._dataBinary = r22.binary, this.options = { compression: r22.compression, compressionOptions: r22.compressionOptions };
37356
37471
  }
37357
- var s2 = e("./stream/StreamHelper"), i = e("./stream/DataWorker"), a = e("./utf8"), o = e("./compressedObject"), h2 = e("./stream/GenericWorker");
37472
+ var s2 = e("./stream/StreamHelper"), i = e("./stream/DataWorker"), a = e("./utf8"), o = e("./compressedObject"), h = e("./stream/GenericWorker");
37358
37473
  n.prototype = { internalStream: function(e2) {
37359
37474
  var t2 = null, r22 = "string";
37360
37475
  try {
@@ -37364,7 +37479,7 @@ function requireJszip_min() {
37364
37479
  var i2 = !this._dataBinary;
37365
37480
  i2 && !n2 && (t2 = t2.pipe(new a.Utf8EncodeWorker())), !i2 && n2 && (t2 = t2.pipe(new a.Utf8DecodeWorker()));
37366
37481
  } catch (e3) {
37367
- (t2 = new h2("error")).error(e3);
37482
+ (t2 = new h("error")).error(e3);
37368
37483
  }
37369
37484
  return new s2(t2, r22, "");
37370
37485
  }, async: function(e2, t2) {
@@ -37376,7 +37491,7 @@ function requireJszip_min() {
37376
37491
  var r22 = this._decompressWorker();
37377
37492
  return this._dataBinary || (r22 = r22.pipe(new a.Utf8EncodeWorker())), o.createWorkerFrom(r22, e2, t2);
37378
37493
  }, _decompressWorker: function() {
37379
- return this._data instanceof o ? this._data.getContentWorker() : this._data instanceof h2 ? this._data : new i(this._data);
37494
+ return this._data instanceof o ? this._data.getContentWorker() : this._data instanceof h ? this._data : new i(this._data);
37380
37495
  } };
37381
37496
  for (var u = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], l3 = function() {
37382
37497
  throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
@@ -37404,18 +37519,18 @@ function requireJszip_min() {
37404
37519
  o.port2.postMessage(0);
37405
37520
  };
37406
37521
  }
37407
- var h2 = [];
37522
+ var h = [];
37408
37523
  function u() {
37409
37524
  var e3, t3;
37410
37525
  n = true;
37411
- for (var r22 = h2.length; r22; ) {
37412
- for (t3 = h2, h2 = [], e3 = -1; ++e3 < r22; ) t3[e3]();
37413
- r22 = h2.length;
37526
+ for (var r22 = h.length; r22; ) {
37527
+ for (t3 = h, h = [], e3 = -1; ++e3 < r22; ) t3[e3]();
37528
+ r22 = h.length;
37414
37529
  }
37415
37530
  n = false;
37416
37531
  }
37417
37532
  l3.exports = function(e3) {
37418
- 1 !== h2.push(e3) || n || r2();
37533
+ 1 !== h.push(e3) || n || r2();
37419
37534
  };
37420
37535
  }).call(this, "undefined" != typeof commonjsGlobal ? commonjsGlobal : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {});
37421
37536
  }, {}], 37: [function(e, t, r2) {
@@ -37427,7 +37542,7 @@ function requireJszip_min() {
37427
37542
  if ("function" != typeof e2) throw new TypeError("resolver must be a function");
37428
37543
  this.state = n, this.queue = [], this.outcome = void 0, e2 !== u && d2(this, e2);
37429
37544
  }
37430
- function h2(e2, t2, r22) {
37545
+ function h(e2, t2, r22) {
37431
37546
  this.promise = e2, "function" == typeof t2 && (this.onFulfilled = t2, this.callFulfilled = this.otherCallFulfilled), "function" == typeof r22 && (this.onRejected = r22, this.callRejected = this.otherCallRejected);
37432
37547
  }
37433
37548
  function f2(t2, r22, n2) {
@@ -37486,15 +37601,15 @@ function requireJszip_min() {
37486
37601
  }, o.prototype.then = function(e2, t2) {
37487
37602
  if ("function" != typeof e2 && this.state === a || "function" != typeof t2 && this.state === s2) return this;
37488
37603
  var r22 = new this.constructor(u);
37489
- this.state !== n ? f2(r22, this.state === a ? e2 : t2, this.outcome) : this.queue.push(new h2(r22, e2, t2));
37604
+ this.state !== n ? f2(r22, this.state === a ? e2 : t2, this.outcome) : this.queue.push(new h(r22, e2, t2));
37490
37605
  return r22;
37491
- }, h2.prototype.callFulfilled = function(e2) {
37606
+ }, h.prototype.callFulfilled = function(e2) {
37492
37607
  l3.resolve(this.promise, e2);
37493
- }, h2.prototype.otherCallFulfilled = function(e2) {
37608
+ }, h.prototype.otherCallFulfilled = function(e2) {
37494
37609
  f2(this.promise, this.onFulfilled, e2);
37495
- }, h2.prototype.callRejected = function(e2) {
37610
+ }, h.prototype.callRejected = function(e2) {
37496
37611
  l3.reject(this.promise, e2);
37497
- }, h2.prototype.otherCallRejected = function(e2) {
37612
+ }, h.prototype.otherCallRejected = function(e2) {
37498
37613
  f2(this.promise, this.onRejected, e2);
37499
37614
  }, l3.resolve = function(e2, t2) {
37500
37615
  var r22 = p(c2, t2);
@@ -37522,9 +37637,9 @@ function requireJszip_min() {
37522
37637
  var n2 = e2.length, i2 = false;
37523
37638
  if (!n2) return this.resolve([]);
37524
37639
  var s22 = new Array(n2), a2 = 0, t2 = -1, o2 = new this(u);
37525
- for (; ++t2 < n2; ) h22(e2[t2], t2);
37640
+ for (; ++t2 < n2; ) h2(e2[t2], t2);
37526
37641
  return o2;
37527
- function h22(e3, t3) {
37642
+ function h2(e3, t3) {
37528
37643
  r22.resolve(e3).then(function(e4) {
37529
37644
  s22[t3] = e4, ++a2 !== n2 || i2 || (i2 = true, l3.resolve(o2, s22));
37530
37645
  }, function(e4) {
@@ -37549,7 +37664,7 @@ function requireJszip_min() {
37549
37664
  var n = {};
37550
37665
  (0, e("./lib/utils/common").assign)(n, e("./lib/deflate"), e("./lib/inflate"), e("./lib/zlib/constants")), t.exports = n;
37551
37666
  }, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(e, t, r2) {
37552
- var a = e("./zlib/deflate"), o = e("./utils/common"), h2 = e("./utils/strings"), i = e("./zlib/messages"), s2 = e("./zlib/zstream"), u = Object.prototype.toString, l3 = 0, f2 = -1, c2 = 0, d2 = 8;
37667
+ var a = e("./zlib/deflate"), o = e("./utils/common"), h = e("./utils/strings"), i = e("./zlib/messages"), s2 = e("./zlib/zstream"), u = Object.prototype.toString, l3 = 0, f2 = -1, c2 = 0, d2 = 8;
37553
37668
  function p(e2) {
37554
37669
  if (!(this instanceof p)) return new p(e2);
37555
37670
  this.options = o.assign({ level: f2, method: d2, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: c2, to: "" }, e2 || {});
@@ -37559,7 +37674,7 @@ function requireJszip_min() {
37559
37674
  if (r22 !== l3) throw new Error(i[r22]);
37560
37675
  if (t2.header && a.deflateSetHeader(this.strm, t2.header), t2.dictionary) {
37561
37676
  var n2;
37562
- if (n2 = "string" == typeof t2.dictionary ? h2.string2buf(t2.dictionary) : "[object ArrayBuffer]" === u.call(t2.dictionary) ? new Uint8Array(t2.dictionary) : t2.dictionary, (r22 = a.deflateSetDictionary(this.strm, n2)) !== l3) throw new Error(i[r22]);
37677
+ if (n2 = "string" == typeof t2.dictionary ? h.string2buf(t2.dictionary) : "[object ArrayBuffer]" === u.call(t2.dictionary) ? new Uint8Array(t2.dictionary) : t2.dictionary, (r22 = a.deflateSetDictionary(this.strm, n2)) !== l3) throw new Error(i[r22]);
37563
37678
  this._dict_set = true;
37564
37679
  }
37565
37680
  }
@@ -37571,10 +37686,10 @@ function requireJszip_min() {
37571
37686
  p.prototype.push = function(e2, t2) {
37572
37687
  var r22, n2, i2 = this.strm, s22 = this.options.chunkSize;
37573
37688
  if (this.ended) return false;
37574
- n2 = t2 === ~~t2 ? t2 : true === t2 ? 4 : 0, "string" == typeof e2 ? i2.input = h2.string2buf(e2) : "[object ArrayBuffer]" === u.call(e2) ? i2.input = new Uint8Array(e2) : i2.input = e2, i2.next_in = 0, i2.avail_in = i2.input.length;
37689
+ n2 = t2 === ~~t2 ? t2 : true === t2 ? 4 : 0, "string" == typeof e2 ? i2.input = h.string2buf(e2) : "[object ArrayBuffer]" === u.call(e2) ? i2.input = new Uint8Array(e2) : i2.input = e2, i2.next_in = 0, i2.avail_in = i2.input.length;
37575
37690
  do {
37576
37691
  if (0 === i2.avail_out && (i2.output = new o.Buf8(s22), i2.next_out = 0, i2.avail_out = s22), 1 !== (r22 = a.deflate(i2, n2)) && r22 !== l3) return this.onEnd(r22), !(this.ended = true);
37577
- 0 !== i2.avail_out && (0 !== i2.avail_in || 4 !== n2 && 2 !== n2) || ("string" === this.options.to ? this.onData(h2.buf2binstring(o.shrinkBuf(i2.output, i2.next_out))) : this.onData(o.shrinkBuf(i2.output, i2.next_out)));
37692
+ 0 !== i2.avail_out && (0 !== i2.avail_in || 4 !== n2 && 2 !== n2) || ("string" === this.options.to ? this.onData(h.buf2binstring(o.shrinkBuf(i2.output, i2.next_out))) : this.onData(o.shrinkBuf(i2.output, i2.next_out)));
37578
37693
  } while ((0 < i2.avail_in || 0 === i2.avail_out) && 1 !== r22);
37579
37694
  return 4 === n2 ? (r22 = a.deflateEnd(this.strm), this.onEnd(r22), this.ended = true, r22 === l3) : 2 !== n2 || (this.onEnd(l3), !(i2.avail_out = 0));
37580
37695
  }, p.prototype.onData = function(e2) {
@@ -37603,14 +37718,14 @@ function requireJszip_min() {
37603
37718
  return r22.result;
37604
37719
  }
37605
37720
  a.prototype.push = function(e2, t2) {
37606
- var r22, n2, i2, s22, a2, o2, h2 = this.strm, u = this.options.chunkSize, l3 = this.options.dictionary, f2 = false;
37721
+ var r22, n2, i2, s22, a2, o2, h = this.strm, u = this.options.chunkSize, l3 = this.options.dictionary, f2 = false;
37607
37722
  if (this.ended) return false;
37608
- n2 = t2 === ~~t2 ? t2 : true === t2 ? m2.Z_FINISH : m2.Z_NO_FLUSH, "string" == typeof e2 ? h2.input = p.binstring2buf(e2) : "[object ArrayBuffer]" === _2.call(e2) ? h2.input = new Uint8Array(e2) : h2.input = e2, h2.next_in = 0, h2.avail_in = h2.input.length;
37723
+ n2 = t2 === ~~t2 ? t2 : true === t2 ? m2.Z_FINISH : m2.Z_NO_FLUSH, "string" == typeof e2 ? h.input = p.binstring2buf(e2) : "[object ArrayBuffer]" === _2.call(e2) ? h.input = new Uint8Array(e2) : h.input = e2, h.next_in = 0, h.avail_in = h.input.length;
37609
37724
  do {
37610
- if (0 === h2.avail_out && (h2.output = new d2.Buf8(u), h2.next_out = 0, h2.avail_out = u), (r22 = c2.inflate(h2, m2.Z_NO_FLUSH)) === m2.Z_NEED_DICT && l3 && (o2 = "string" == typeof l3 ? p.string2buf(l3) : "[object ArrayBuffer]" === _2.call(l3) ? new Uint8Array(l3) : l3, r22 = c2.inflateSetDictionary(this.strm, o2)), r22 === m2.Z_BUF_ERROR && true === f2 && (r22 = m2.Z_OK, f2 = false), r22 !== m2.Z_STREAM_END && r22 !== m2.Z_OK) return this.onEnd(r22), !(this.ended = true);
37611
- h2.next_out && (0 !== h2.avail_out && r22 !== m2.Z_STREAM_END && (0 !== h2.avail_in || n2 !== m2.Z_FINISH && n2 !== m2.Z_SYNC_FLUSH) || ("string" === this.options.to ? (i2 = p.utf8border(h2.output, h2.next_out), s22 = h2.next_out - i2, a2 = p.buf2string(h2.output, i2), h2.next_out = s22, h2.avail_out = u - s22, s22 && d2.arraySet(h2.output, h2.output, i2, s22, 0), this.onData(a2)) : this.onData(d2.shrinkBuf(h2.output, h2.next_out)))), 0 === h2.avail_in && 0 === h2.avail_out && (f2 = true);
37612
- } while ((0 < h2.avail_in || 0 === h2.avail_out) && r22 !== m2.Z_STREAM_END);
37613
- return r22 === m2.Z_STREAM_END && (n2 = m2.Z_FINISH), n2 === m2.Z_FINISH ? (r22 = c2.inflateEnd(this.strm), this.onEnd(r22), this.ended = true, r22 === m2.Z_OK) : n2 !== m2.Z_SYNC_FLUSH || (this.onEnd(m2.Z_OK), !(h2.avail_out = 0));
37725
+ if (0 === h.avail_out && (h.output = new d2.Buf8(u), h.next_out = 0, h.avail_out = u), (r22 = c2.inflate(h, m2.Z_NO_FLUSH)) === m2.Z_NEED_DICT && l3 && (o2 = "string" == typeof l3 ? p.string2buf(l3) : "[object ArrayBuffer]" === _2.call(l3) ? new Uint8Array(l3) : l3, r22 = c2.inflateSetDictionary(this.strm, o2)), r22 === m2.Z_BUF_ERROR && true === f2 && (r22 = m2.Z_OK, f2 = false), r22 !== m2.Z_STREAM_END && r22 !== m2.Z_OK) return this.onEnd(r22), !(this.ended = true);
37726
+ h.next_out && (0 !== h.avail_out && r22 !== m2.Z_STREAM_END && (0 !== h.avail_in || n2 !== m2.Z_FINISH && n2 !== m2.Z_SYNC_FLUSH) || ("string" === this.options.to ? (i2 = p.utf8border(h.output, h.next_out), s22 = h.next_out - i2, a2 = p.buf2string(h.output, i2), h.next_out = s22, h.avail_out = u - s22, s22 && d2.arraySet(h.output, h.output, i2, s22, 0), this.onData(a2)) : this.onData(d2.shrinkBuf(h.output, h.next_out)))), 0 === h.avail_in && 0 === h.avail_out && (f2 = true);
37727
+ } while ((0 < h.avail_in || 0 === h.avail_out) && r22 !== m2.Z_STREAM_END);
37728
+ return r22 === m2.Z_STREAM_END && (n2 = m2.Z_FINISH), n2 === m2.Z_FINISH ? (r22 = c2.inflateEnd(this.strm), this.onEnd(r22), this.ended = true, r22 === m2.Z_OK) : n2 !== m2.Z_SYNC_FLUSH || (this.onEnd(m2.Z_OK), !(h.avail_out = 0));
37614
37729
  }, a.prototype.onData = function(e2) {
37615
37730
  this.chunks.push(e2);
37616
37731
  }, a.prototype.onEnd = function(e2) {
@@ -37649,7 +37764,7 @@ function requireJszip_min() {
37649
37764
  e2 ? (r2.Buf8 = Uint8Array, r2.Buf16 = Uint16Array, r2.Buf32 = Int32Array, r2.assign(r2, i)) : (r2.Buf8 = Array, r2.Buf16 = Array, r2.Buf32 = Array, r2.assign(r2, s2));
37650
37765
  }, r2.setTyped(n);
37651
37766
  }, {}], 42: [function(e, t, r2) {
37652
- var h2 = e("./common"), i = true, s2 = true;
37767
+ var h = e("./common"), i = true, s2 = true;
37653
37768
  try {
37654
37769
  String.fromCharCode.apply(null, [0]);
37655
37770
  } catch (e2) {
@@ -37660,21 +37775,21 @@ function requireJszip_min() {
37660
37775
  } catch (e2) {
37661
37776
  s2 = false;
37662
37777
  }
37663
- for (var u = new h2.Buf8(256), n = 0; n < 256; n++) u[n] = 252 <= n ? 6 : 248 <= n ? 5 : 240 <= n ? 4 : 224 <= n ? 3 : 192 <= n ? 2 : 1;
37778
+ for (var u = new h.Buf8(256), n = 0; n < 256; n++) u[n] = 252 <= n ? 6 : 248 <= n ? 5 : 240 <= n ? 4 : 224 <= n ? 3 : 192 <= n ? 2 : 1;
37664
37779
  function l3(e2, t2) {
37665
- if (t2 < 65537 && (e2.subarray && s2 || !e2.subarray && i)) return String.fromCharCode.apply(null, h2.shrinkBuf(e2, t2));
37780
+ if (t2 < 65537 && (e2.subarray && s2 || !e2.subarray && i)) return String.fromCharCode.apply(null, h.shrinkBuf(e2, t2));
37666
37781
  for (var r22 = "", n2 = 0; n2 < t2; n2++) r22 += String.fromCharCode(e2[n2]);
37667
37782
  return r22;
37668
37783
  }
37669
37784
  u[254] = u[254] = 1, r2.string2buf = function(e2) {
37670
37785
  var t2, r22, n2, i2, s22, a = e2.length, o = 0;
37671
37786
  for (i2 = 0; i2 < a; i2++) 55296 == (64512 & (r22 = e2.charCodeAt(i2))) && i2 + 1 < a && 56320 == (64512 & (n2 = e2.charCodeAt(i2 + 1))) && (r22 = 65536 + (r22 - 55296 << 10) + (n2 - 56320), i2++), o += r22 < 128 ? 1 : r22 < 2048 ? 2 : r22 < 65536 ? 3 : 4;
37672
- for (t2 = new h2.Buf8(o), i2 = s22 = 0; s22 < o; i2++) 55296 == (64512 & (r22 = e2.charCodeAt(i2))) && i2 + 1 < a && 56320 == (64512 & (n2 = e2.charCodeAt(i2 + 1))) && (r22 = 65536 + (r22 - 55296 << 10) + (n2 - 56320), i2++), r22 < 128 ? t2[s22++] = r22 : (r22 < 2048 ? t2[s22++] = 192 | r22 >>> 6 : (r22 < 65536 ? t2[s22++] = 224 | r22 >>> 12 : (t2[s22++] = 240 | r22 >>> 18, t2[s22++] = 128 | r22 >>> 12 & 63), t2[s22++] = 128 | r22 >>> 6 & 63), t2[s22++] = 128 | 63 & r22);
37787
+ for (t2 = new h.Buf8(o), i2 = s22 = 0; s22 < o; i2++) 55296 == (64512 & (r22 = e2.charCodeAt(i2))) && i2 + 1 < a && 56320 == (64512 & (n2 = e2.charCodeAt(i2 + 1))) && (r22 = 65536 + (r22 - 55296 << 10) + (n2 - 56320), i2++), r22 < 128 ? t2[s22++] = r22 : (r22 < 2048 ? t2[s22++] = 192 | r22 >>> 6 : (r22 < 65536 ? t2[s22++] = 224 | r22 >>> 12 : (t2[s22++] = 240 | r22 >>> 18, t2[s22++] = 128 | r22 >>> 12 & 63), t2[s22++] = 128 | r22 >>> 6 & 63), t2[s22++] = 128 | 63 & r22);
37673
37788
  return t2;
37674
37789
  }, r2.buf2binstring = function(e2) {
37675
37790
  return l3(e2, e2.length);
37676
37791
  }, r2.binstring2buf = function(e2) {
37677
- for (var t2 = new h2.Buf8(e2.length), r22 = 0, n2 = t2.length; r22 < n2; r22++) t2[r22] = e2.charCodeAt(r22);
37792
+ for (var t2 = new h.Buf8(e2.length), r22 = 0, n2 = t2.length; r22 < n2; r22++) t2[r22] = e2.charCodeAt(r22);
37678
37793
  return t2;
37679
37794
  }, r2.buf2string = function(e2, t2) {
37680
37795
  var r22, n2, i2, s22, a = t2 || e2.length, o = new Array(2 * a);
@@ -37716,11 +37831,11 @@ function requireJszip_min() {
37716
37831
  return -1 ^ e2;
37717
37832
  };
37718
37833
  }, {}], 46: [function(e, t, r2) {
37719
- var h2, c2 = e("../utils/common"), u = e("./trees"), d2 = e("./adler32"), p = e("./crc32"), n = e("./messages"), l3 = 0, f2 = 4, m2 = 0, _2 = -2, g = -1, b2 = 4, i = 2, v2 = 8, y2 = 9, s2 = 286, a = 30, o = 19, w2 = 2 * s2 + 1, k2 = 15, x = 3, S2 = 258, z2 = S2 + x + 1, C2 = 42, E2 = 113, A2 = 1, I2 = 2, O2 = 3, B2 = 4;
37720
- function R2(e2, t2) {
37834
+ var h, c2 = e("../utils/common"), u = e("./trees"), d2 = e("./adler32"), p = e("./crc32"), n = e("./messages"), l3 = 0, f2 = 4, m2 = 0, _2 = -2, g = -1, b2 = 4, i = 2, v2 = 8, y2 = 9, s2 = 286, a = 30, o = 19, w2 = 2 * s2 + 1, k2 = 15, x2 = 3, S2 = 258, z2 = S2 + x2 + 1, C2 = 42, E2 = 113, A2 = 1, I2 = 2, O = 3, B2 = 4;
37835
+ function R(e2, t2) {
37721
37836
  return e2.msg = n[t2], t2;
37722
37837
  }
37723
- function T(e2) {
37838
+ function T2(e2) {
37724
37839
  return (e2 << 1) - (4 < e2 ? 9 : 0);
37725
37840
  }
37726
37841
  function D2(e2) {
@@ -37740,7 +37855,7 @@ function requireJszip_min() {
37740
37855
  e2.pending_buf[e2.pending++] = t2 >>> 8 & 255, e2.pending_buf[e2.pending++] = 255 & t2;
37741
37856
  }
37742
37857
  function L2(e2, t2) {
37743
- var r22, n2, i2 = e2.max_chain_length, s22 = e2.strstart, a2 = e2.prev_length, o2 = e2.nice_match, h22 = e2.strstart > e2.w_size - z2 ? e2.strstart - (e2.w_size - z2) : 0, u2 = e2.window, l22 = e2.w_mask, f22 = e2.prev, c22 = e2.strstart + S2, d22 = u2[s22 + a2 - 1], p2 = u2[s22 + a2];
37858
+ var r22, n2, i2 = e2.max_chain_length, s22 = e2.strstart, a2 = e2.prev_length, o2 = e2.nice_match, h2 = e2.strstart > e2.w_size - z2 ? e2.strstart - (e2.w_size - z2) : 0, u2 = e2.window, l22 = e2.w_mask, f22 = e2.prev, c22 = e2.strstart + S2, d22 = u2[s22 + a2 - 1], p2 = u2[s22 + a2];
37744
37859
  e2.prev_length >= e2.good_match && (i2 >>= 2), o2 > e2.lookahead && (o2 = e2.lookahead);
37745
37860
  do {
37746
37861
  if (u2[(r22 = t2) + a2] === p2 && u2[r22 + a2 - 1] === d22 && u2[r22] === u2[s22] && u2[++r22] === u2[s22 + 1]) {
@@ -37752,11 +37867,11 @@ function requireJszip_min() {
37752
37867
  d22 = u2[s22 + a2 - 1], p2 = u2[s22 + a2];
37753
37868
  }
37754
37869
  }
37755
- } while ((t2 = f22[t2 & l22]) > h22 && 0 != --i2);
37870
+ } while ((t2 = f22[t2 & l22]) > h2 && 0 != --i2);
37756
37871
  return a2 <= e2.lookahead ? a2 : e2.lookahead;
37757
37872
  }
37758
37873
  function j2(e2) {
37759
- var t2, r22, n2, i2, s22, a2, o2, h22, u2, l22, f22 = e2.w_size;
37874
+ var t2, r22, n2, i2, s22, a2, o2, h2, u2, l22, f22 = e2.w_size;
37760
37875
  do {
37761
37876
  if (i2 = e2.window_size - e2.lookahead - e2.strstart, e2.strstart >= f22 + (f22 - z2)) {
37762
37877
  for (c2.arraySet(e2.window, e2.window, f22, f22, 0), e2.match_start -= f22, e2.strstart -= f22, e2.block_start -= f22, t2 = r22 = e2.hash_size; n2 = e2.head[--t2], e2.head[t2] = f22 <= n2 ? n2 - f22 : 0, --r22; ) ;
@@ -37764,7 +37879,7 @@ function requireJszip_min() {
37764
37879
  i2 += f22;
37765
37880
  }
37766
37881
  if (0 === e2.strm.avail_in) break;
37767
- if (a2 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead, u2 = i2, l22 = void 0, l22 = a2.avail_in, u2 < l22 && (l22 = u2), r22 = 0 === l22 ? 0 : (a2.avail_in -= l22, c2.arraySet(o2, a2.input, a2.next_in, l22, h22), 1 === a2.state.wrap ? a2.adler = d2(a2.adler, o2, l22, h22) : 2 === a2.state.wrap && (a2.adler = p(a2.adler, o2, l22, h22)), a2.next_in += l22, a2.total_in += l22, l22), e2.lookahead += r22, e2.lookahead + e2.insert >= x) for (s22 = e2.strstart - e2.insert, e2.ins_h = e2.window[s22], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + 1]) & e2.hash_mask; e2.insert && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + x - 1]) & e2.hash_mask, e2.prev[s22 & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = s22, s22++, e2.insert--, !(e2.lookahead + e2.insert < x)); ) ;
37882
+ if (a2 = e2.strm, o2 = e2.window, h2 = e2.strstart + e2.lookahead, u2 = i2, l22 = void 0, l22 = a2.avail_in, u2 < l22 && (l22 = u2), r22 = 0 === l22 ? 0 : (a2.avail_in -= l22, c2.arraySet(o2, a2.input, a2.next_in, l22, h2), 1 === a2.state.wrap ? a2.adler = d2(a2.adler, o2, l22, h2) : 2 === a2.state.wrap && (a2.adler = p(a2.adler, o2, l22, h2)), a2.next_in += l22, a2.total_in += l22, l22), e2.lookahead += r22, e2.lookahead + e2.insert >= x2) for (s22 = e2.strstart - e2.insert, e2.ins_h = e2.window[s22], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + 1]) & e2.hash_mask; e2.insert && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + x2 - 1]) & e2.hash_mask, e2.prev[s22 & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = s22, s22++, e2.insert--, !(e2.lookahead + e2.insert < x2)); ) ;
37768
37883
  } while (e2.lookahead < z2 && 0 !== e2.strm.avail_in);
37769
37884
  }
37770
37885
  function Z(e2, t2) {
@@ -37773,14 +37888,14 @@ function requireJszip_min() {
37773
37888
  if (j2(e2), e2.lookahead < z2 && t2 === l3) return A2;
37774
37889
  if (0 === e2.lookahead) break;
37775
37890
  }
37776
- if (r22 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 !== r22 && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22)), e2.match_length >= x) if (n2 = u._tr_tally(e2, e2.strstart - e2.match_start, e2.match_length - x), e2.lookahead -= e2.match_length, e2.match_length <= e2.max_lazy_match && e2.lookahead >= x) {
37777
- for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart, 0 != --e2.match_length; ) ;
37891
+ if (r22 = 0, e2.lookahead >= x2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 !== r22 && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22)), e2.match_length >= x2) if (n2 = u._tr_tally(e2, e2.strstart - e2.match_start, e2.match_length - x2), e2.lookahead -= e2.match_length, e2.match_length <= e2.max_lazy_match && e2.lookahead >= x2) {
37892
+ for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart, 0 != --e2.match_length; ) ;
37778
37893
  e2.strstart++;
37779
37894
  } else e2.strstart += e2.match_length, e2.match_length = 0, e2.ins_h = e2.window[e2.strstart], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + 1]) & e2.hash_mask;
37780
37895
  else n2 = u._tr_tally(e2, 0, e2.window[e2.strstart]), e2.lookahead--, e2.strstart++;
37781
37896
  if (n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37782
37897
  }
37783
- return e2.insert = e2.strstart < x - 1 ? e2.strstart : x - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O2 : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
37898
+ return e2.insert = e2.strstart < x2 - 1 ? e2.strstart : x2 - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
37784
37899
  }
37785
37900
  function W2(e2, t2) {
37786
37901
  for (var r22, n2, i2; ; ) {
@@ -37788,14 +37903,14 @@ function requireJszip_min() {
37788
37903
  if (j2(e2), e2.lookahead < z2 && t2 === l3) return A2;
37789
37904
  if (0 === e2.lookahead) break;
37790
37905
  }
37791
- if (r22 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), e2.prev_length = e2.match_length, e2.prev_match = e2.match_start, e2.match_length = x - 1, 0 !== r22 && e2.prev_length < e2.max_lazy_match && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22), e2.match_length <= 5 && (1 === e2.strategy || e2.match_length === x && 4096 < e2.strstart - e2.match_start) && (e2.match_length = x - 1)), e2.prev_length >= x && e2.match_length <= e2.prev_length) {
37792
- for (i2 = e2.strstart + e2.lookahead - x, n2 = u._tr_tally(e2, e2.strstart - 1 - e2.prev_match, e2.prev_length - x), e2.lookahead -= e2.prev_length - 1, e2.prev_length -= 2; ++e2.strstart <= i2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 != --e2.prev_length; ) ;
37793
- if (e2.match_available = 0, e2.match_length = x - 1, e2.strstart++, n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37906
+ if (r22 = 0, e2.lookahead >= x2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), e2.prev_length = e2.match_length, e2.prev_match = e2.match_start, e2.match_length = x2 - 1, 0 !== r22 && e2.prev_length < e2.max_lazy_match && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22), e2.match_length <= 5 && (1 === e2.strategy || e2.match_length === x2 && 4096 < e2.strstart - e2.match_start) && (e2.match_length = x2 - 1)), e2.prev_length >= x2 && e2.match_length <= e2.prev_length) {
37907
+ for (i2 = e2.strstart + e2.lookahead - x2, n2 = u._tr_tally(e2, e2.strstart - 1 - e2.prev_match, e2.prev_length - x2), e2.lookahead -= e2.prev_length - 1, e2.prev_length -= 2; ++e2.strstart <= i2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 != --e2.prev_length; ) ;
37908
+ if (e2.match_available = 0, e2.match_length = x2 - 1, e2.strstart++, n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37794
37909
  } else if (e2.match_available) {
37795
37910
  if ((n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1])) && N2(e2, false), e2.strstart++, e2.lookahead--, 0 === e2.strm.avail_out) return A2;
37796
37911
  } else e2.match_available = 1, e2.strstart++, e2.lookahead--;
37797
37912
  }
37798
- return e2.match_available && (n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart < x - 1 ? e2.strstart : x - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O2 : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
37913
+ return e2.match_available && (n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart < x2 - 1 ? e2.strstart : x2 - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
37799
37914
  }
37800
37915
  function M2(e2, t2, r22, n2, i2) {
37801
37916
  this.good_length = e2, this.max_lazy = t2, this.nice_length = r22, this.max_chain = n2, this.func = i2;
@@ -37805,23 +37920,23 @@ function requireJszip_min() {
37805
37920
  }
37806
37921
  function G2(e2) {
37807
37922
  var t2;
37808
- return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i, (t2 = e2.state).pending = 0, t2.pending_out = 0, t2.wrap < 0 && (t2.wrap = -t2.wrap), t2.status = t2.wrap ? C2 : E2, e2.adler = 2 === t2.wrap ? 0 : 1, t2.last_flush = l3, u._tr_init(t2), m2) : R2(e2, _2);
37923
+ return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i, (t2 = e2.state).pending = 0, t2.pending_out = 0, t2.wrap < 0 && (t2.wrap = -t2.wrap), t2.status = t2.wrap ? C2 : E2, e2.adler = 2 === t2.wrap ? 0 : 1, t2.last_flush = l3, u._tr_init(t2), m2) : R(e2, _2);
37809
37924
  }
37810
37925
  function K2(e2) {
37811
37926
  var t2 = G2(e2);
37812
37927
  return t2 === m2 && (function(e3) {
37813
- e3.window_size = 2 * e3.w_size, D2(e3.head), e3.max_lazy_match = h2[e3.level].max_lazy, e3.good_match = h2[e3.level].good_length, e3.nice_match = h2[e3.level].nice_length, e3.max_chain_length = h2[e3.level].max_chain, e3.strstart = 0, e3.block_start = 0, e3.lookahead = 0, e3.insert = 0, e3.match_length = e3.prev_length = x - 1, e3.match_available = 0, e3.ins_h = 0;
37928
+ e3.window_size = 2 * e3.w_size, D2(e3.head), e3.max_lazy_match = h[e3.level].max_lazy, e3.good_match = h[e3.level].good_length, e3.nice_match = h[e3.level].nice_length, e3.max_chain_length = h[e3.level].max_chain, e3.strstart = 0, e3.block_start = 0, e3.lookahead = 0, e3.insert = 0, e3.match_length = e3.prev_length = x2 - 1, e3.match_available = 0, e3.ins_h = 0;
37814
37929
  })(e2.state), t2;
37815
37930
  }
37816
37931
  function Y2(e2, t2, r22, n2, i2, s22) {
37817
37932
  if (!e2) return _2;
37818
37933
  var a2 = 1;
37819
- if (t2 === g && (t2 = 6), n2 < 0 ? (a2 = 0, n2 = -n2) : 15 < n2 && (a2 = 2, n2 -= 16), i2 < 1 || y2 < i2 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return R2(e2, _2);
37934
+ if (t2 === g && (t2 = 6), n2 < 0 ? (a2 = 0, n2 = -n2) : 15 < n2 && (a2 = 2, n2 -= 16), i2 < 1 || y2 < i2 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return R(e2, _2);
37820
37935
  8 === n2 && (n2 = 9);
37821
37936
  var o2 = new H();
37822
- return (e2.state = o2).strm = e2, o2.wrap = a2, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i2 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits + x - 1) / x), o2.window = new c2.Buf8(2 * o2.w_size), o2.head = new c2.Buf16(o2.hash_size), o2.prev = new c2.Buf16(o2.w_size), o2.lit_bufsize = 1 << i2 + 6, o2.pending_buf_size = 4 * o2.lit_bufsize, o2.pending_buf = new c2.Buf8(o2.pending_buf_size), o2.d_buf = 1 * o2.lit_bufsize, o2.l_buf = 3 * o2.lit_bufsize, o2.level = t2, o2.strategy = s22, o2.method = r22, K2(e2);
37937
+ return (e2.state = o2).strm = e2, o2.wrap = a2, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i2 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits + x2 - 1) / x2), o2.window = new c2.Buf8(2 * o2.w_size), o2.head = new c2.Buf16(o2.hash_size), o2.prev = new c2.Buf16(o2.w_size), o2.lit_bufsize = 1 << i2 + 6, o2.pending_buf_size = 4 * o2.lit_bufsize, o2.pending_buf = new c2.Buf8(o2.pending_buf_size), o2.d_buf = 1 * o2.lit_bufsize, o2.l_buf = 3 * o2.lit_bufsize, o2.level = t2, o2.strategy = s22, o2.method = r22, K2(e2);
37823
37938
  }
37824
- h2 = [new M2(0, 0, 0, 0, function(e2, t2) {
37939
+ h = [new M2(0, 0, 0, 0, function(e2, t2) {
37825
37940
  var r22 = 65535;
37826
37941
  for (r22 > e2.pending_buf_size - 5 && (r22 = e2.pending_buf_size - 5); ; ) {
37827
37942
  if (e2.lookahead <= 1) {
@@ -37833,15 +37948,15 @@ function requireJszip_min() {
37833
37948
  if ((0 === e2.strstart || e2.strstart >= n2) && (e2.lookahead = e2.strstart - n2, e2.strstart = n2, N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37834
37949
  if (e2.strstart - e2.block_start >= e2.w_size - z2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37835
37950
  }
37836
- return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O2 : B2) : (e2.strstart > e2.block_start && (N2(e2, false), e2.strm.avail_out), A2);
37951
+ return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O : B2) : (e2.strstart > e2.block_start && (N2(e2, false), e2.strm.avail_out), A2);
37837
37952
  }), new M2(4, 4, 8, 4, Z), new M2(4, 5, 16, 8, Z), new M2(4, 6, 32, 32, Z), new M2(4, 4, 16, 16, W2), new M2(8, 16, 32, 32, W2), new M2(8, 16, 128, 128, W2), new M2(8, 32, 128, 256, W2), new M2(32, 128, 258, 1024, W2), new M2(32, 258, 258, 4096, W2)], r2.deflateInit = function(e2, t2) {
37838
37953
  return Y2(e2, t2, v2, 15, 8, 0);
37839
37954
  }, r2.deflateInit2 = Y2, r2.deflateReset = K2, r2.deflateResetKeep = G2, r2.deflateSetHeader = function(e2, t2) {
37840
37955
  return e2 && e2.state ? 2 !== e2.state.wrap ? _2 : (e2.state.gzhead = t2, m2) : _2;
37841
37956
  }, r2.deflate = function(e2, t2) {
37842
37957
  var r22, n2, i2, s22;
37843
- if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ? R2(e2, _2) : _2;
37844
- if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return R2(e2, 0 === e2.avail_out ? -5 : _2);
37958
+ if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ? R(e2, _2) : _2;
37959
+ if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return R(e2, 0 === e2.avail_out ? -5 : _2);
37845
37960
  if (n2.strm = e2, r22 = n2.last_flush, n2.last_flush = t2, n2.status === C2) if (2 === n2.wrap) e2.adler = 0, U2(n2, 31), U2(n2, 139), U2(n2, 8), n2.gzhead ? (U2(n2, (n2.gzhead.text ? 1 : 0) + (n2.gzhead.hcrc ? 2 : 0) + (n2.gzhead.extra ? 4 : 0) + (n2.gzhead.name ? 8 : 0) + (n2.gzhead.comment ? 16 : 0)), U2(n2, 255 & n2.gzhead.time), U2(n2, n2.gzhead.time >> 8 & 255), U2(n2, n2.gzhead.time >> 16 & 255), U2(n2, n2.gzhead.time >> 24 & 255), U2(n2, 9 === n2.level ? 2 : 2 <= n2.strategy || n2.level < 2 ? 4 : 0), U2(n2, 255 & n2.gzhead.os), n2.gzhead.extra && n2.gzhead.extra.length && (U2(n2, 255 & n2.gzhead.extra.length), U2(n2, n2.gzhead.extra.length >> 8 & 255)), n2.gzhead.hcrc && (e2.adler = p(e2.adler, n2.pending_buf, n2.pending, 0)), n2.gzindex = 0, n2.status = 69) : (U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 9 === n2.level ? 2 : 2 <= n2.strategy || n2.level < 2 ? 4 : 0), U2(n2, 3), n2.status = E2);
37846
37961
  else {
37847
37962
  var a2 = v2 + (n2.w_bits - 8 << 4) << 8;
@@ -37875,8 +37990,8 @@ function requireJszip_min() {
37875
37990
  } else n2.status = 103;
37876
37991
  if (103 === n2.status && (n2.gzhead.hcrc ? (n2.pending + 2 > n2.pending_buf_size && F2(e2), n2.pending + 2 <= n2.pending_buf_size && (U2(n2, 255 & e2.adler), U2(n2, e2.adler >> 8 & 255), e2.adler = 0, n2.status = E2)) : n2.status = E2), 0 !== n2.pending) {
37877
37992
  if (F2(e2), 0 === e2.avail_out) return n2.last_flush = -1, m2;
37878
- } else if (0 === e2.avail_in && T(t2) <= T(r22) && t2 !== f2) return R2(e2, -5);
37879
- if (666 === n2.status && 0 !== e2.avail_in) return R2(e2, -5);
37993
+ } else if (0 === e2.avail_in && T2(t2) <= T2(r22) && t2 !== f2) return R(e2, -5);
37994
+ if (666 === n2.status && 0 !== e2.avail_in) return R(e2, -5);
37880
37995
  if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !== l3 && 666 !== n2.status) {
37881
37996
  var o2 = 2 === n2.strategy ? (function(e3, t3) {
37882
37997
  for (var r3; ; ) {
@@ -37886,39 +38001,39 @@ function requireJszip_min() {
37886
38001
  }
37887
38002
  if (e3.match_length = 0, r3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++, r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
37888
38003
  }
37889
- return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O2 : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
38004
+ return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
37890
38005
  })(n2, t2) : 3 === n2.strategy ? (function(e3, t3) {
37891
38006
  for (var r3, n3, i3, s3, a3 = e3.window; ; ) {
37892
38007
  if (e3.lookahead <= S2) {
37893
38008
  if (j2(e3), e3.lookahead <= S2 && t3 === l3) return A2;
37894
38009
  if (0 === e3.lookahead) break;
37895
38010
  }
37896
- if (e3.match_length = 0, e3.lookahead >= x && 0 < e3.strstart && (n3 = a3[i3 = e3.strstart - 1]) === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3]) {
38011
+ if (e3.match_length = 0, e3.lookahead >= x2 && 0 < e3.strstart && (n3 = a3[i3 = e3.strstart - 1]) === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3]) {
37897
38012
  s3 = e3.strstart + S2;
37898
38013
  do {
37899
38014
  } while (n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && i3 < s3);
37900
38015
  e3.match_length = S2 - (s3 - i3), e3.match_length > e3.lookahead && (e3.match_length = e3.lookahead);
37901
38016
  }
37902
- if (e3.match_length >= x ? (r3 = u._tr_tally(e3, 1, e3.match_length - x), e3.lookahead -= e3.match_length, e3.strstart += e3.match_length, e3.match_length = 0) : (r3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++), r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
38017
+ if (e3.match_length >= x2 ? (r3 = u._tr_tally(e3, 1, e3.match_length - x2), e3.lookahead -= e3.match_length, e3.strstart += e3.match_length, e3.match_length = 0) : (r3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++), r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
37903
38018
  }
37904
- return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O2 : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
37905
- })(n2, t2) : h2[n2.level].func(n2, t2);
37906
- if (o2 !== O2 && o2 !== B2 || (n2.status = 666), o2 === A2 || o2 === O2) return 0 === e2.avail_out && (n2.last_flush = -1), m2;
38019
+ return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
38020
+ })(n2, t2) : h[n2.level].func(n2, t2);
38021
+ if (o2 !== O && o2 !== B2 || (n2.status = 666), o2 === A2 || o2 === O) return 0 === e2.avail_out && (n2.last_flush = -1), m2;
37907
38022
  if (o2 === I2 && (1 === t2 ? u._tr_align(n2) : 5 !== t2 && (u._tr_stored_block(n2, 0, 0, false), 3 === t2 && (D2(n2.head), 0 === n2.lookahead && (n2.strstart = 0, n2.block_start = 0, n2.insert = 0))), F2(e2), 0 === e2.avail_out)) return n2.last_flush = -1, m2;
37908
38023
  }
37909
38024
  return t2 !== f2 ? m2 : n2.wrap <= 0 ? 1 : (2 === n2.wrap ? (U2(n2, 255 & e2.adler), U2(n2, e2.adler >> 8 & 255), U2(n2, e2.adler >> 16 & 255), U2(n2, e2.adler >> 24 & 255), U2(n2, 255 & e2.total_in), U2(n2, e2.total_in >> 8 & 255), U2(n2, e2.total_in >> 16 & 255), U2(n2, e2.total_in >> 24 & 255)) : (P2(n2, e2.adler >>> 16), P2(n2, 65535 & e2.adler)), F2(e2), 0 < n2.wrap && (n2.wrap = -n2.wrap), 0 !== n2.pending ? m2 : 1);
37910
38025
  }, r2.deflateEnd = function(e2) {
37911
38026
  var t2;
37912
- return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ? R2(e2, _2) : (e2.state = null, t2 === E2 ? R2(e2, -3) : m2) : _2;
38027
+ return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ? R(e2, _2) : (e2.state = null, t2 === E2 ? R(e2, -3) : m2) : _2;
37913
38028
  }, r2.deflateSetDictionary = function(e2, t2) {
37914
- var r22, n2, i2, s22, a2, o2, h22, u2, l22 = t2.length;
38029
+ var r22, n2, i2, s22, a2, o2, h2, u2, l22 = t2.length;
37915
38030
  if (!e2 || !e2.state) return _2;
37916
38031
  if (2 === (s22 = (r22 = e2.state).wrap) || 1 === s22 && r22.status !== C2 || r22.lookahead) return _2;
37917
- for (1 === s22 && (e2.adler = d2(e2.adler, t2, l22, 0)), r22.wrap = 0, l22 >= r22.w_size && (0 === s22 && (D2(r22.head), r22.strstart = 0, r22.block_start = 0, r22.insert = 0), u2 = new c2.Buf8(r22.w_size), c2.arraySet(u2, t2, l22 - r22.w_size, r22.w_size, 0), t2 = u2, l22 = r22.w_size), a2 = e2.avail_in, o2 = e2.next_in, h22 = e2.input, e2.avail_in = l22, e2.next_in = 0, e2.input = t2, j2(r22); r22.lookahead >= x; ) {
37918
- for (n2 = r22.strstart, i2 = r22.lookahead - (x - 1); r22.ins_h = (r22.ins_h << r22.hash_shift ^ r22.window[n2 + x - 1]) & r22.hash_mask, r22.prev[n2 & r22.w_mask] = r22.head[r22.ins_h], r22.head[r22.ins_h] = n2, n2++, --i2; ) ;
37919
- r22.strstart = n2, r22.lookahead = x - 1, j2(r22);
38032
+ for (1 === s22 && (e2.adler = d2(e2.adler, t2, l22, 0)), r22.wrap = 0, l22 >= r22.w_size && (0 === s22 && (D2(r22.head), r22.strstart = 0, r22.block_start = 0, r22.insert = 0), u2 = new c2.Buf8(r22.w_size), c2.arraySet(u2, t2, l22 - r22.w_size, r22.w_size, 0), t2 = u2, l22 = r22.w_size), a2 = e2.avail_in, o2 = e2.next_in, h2 = e2.input, e2.avail_in = l22, e2.next_in = 0, e2.input = t2, j2(r22); r22.lookahead >= x2; ) {
38033
+ for (n2 = r22.strstart, i2 = r22.lookahead - (x2 - 1); r22.ins_h = (r22.ins_h << r22.hash_shift ^ r22.window[n2 + x2 - 1]) & r22.hash_mask, r22.prev[n2 & r22.w_mask] = r22.head[r22.ins_h], r22.head[r22.ins_h] = n2, n2++, --i2; ) ;
38034
+ r22.strstart = n2, r22.lookahead = x2 - 1, j2(r22);
37920
38035
  }
37921
- return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length = x - 1, r22.match_available = 0, e2.next_in = o2, e2.input = h22, e2.avail_in = a2, r22.wrap = s22, m2;
38036
+ return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length = x2 - 1, r22.match_available = 0, e2.next_in = o2, e2.input = h2, e2.avail_in = a2, r22.wrap = s22, m2;
37922
38037
  }, r2.deflateInfo = "pako deflate (from Nodeca project)";
37923
38038
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, t, r2) {
37924
38039
  t.exports = function() {
@@ -37926,8 +38041,8 @@ function requireJszip_min() {
37926
38041
  };
37927
38042
  }, {}], 48: [function(e, t, r2) {
37928
38043
  t.exports = function(e2, t2) {
37929
- var r22, n, i, s2, a, o, h2, u, l3, f2, c2, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x, S2, z2, C2;
37930
- r22 = e2.state, n = e2.next_in, z2 = e2.input, i = n + (e2.avail_in - 5), s2 = e2.next_out, C2 = e2.output, a = s2 - (t2 - e2.avail_out), o = s2 + (e2.avail_out - 257), h2 = r22.dmax, u = r22.wsize, l3 = r22.whave, f2 = r22.wnext, c2 = r22.window, d2 = r22.hold, p = r22.bits, m2 = r22.lencode, _2 = r22.distcode, g = (1 << r22.lenbits) - 1, b2 = (1 << r22.distbits) - 1;
38044
+ var r22, n, i, s2, a, o, h, u, l3, f2, c2, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x2, S2, z2, C2;
38045
+ r22 = e2.state, n = e2.next_in, z2 = e2.input, i = n + (e2.avail_in - 5), s2 = e2.next_out, C2 = e2.output, a = s2 - (t2 - e2.avail_out), o = s2 + (e2.avail_out - 257), h = r22.dmax, u = r22.wsize, l3 = r22.whave, f2 = r22.wnext, c2 = r22.window, d2 = r22.hold, p = r22.bits, m2 = r22.lencode, _2 = r22.distcode, g = (1 << r22.lenbits) - 1, b2 = (1 << r22.distbits) - 1;
37931
38046
  e: do {
37932
38047
  p < 15 && (d2 += z2[n++] << p, p += 8, d2 += z2[n++] << p, p += 8), v2 = m2[d2 & g];
37933
38048
  t: for (; ; ) {
@@ -37955,7 +38070,7 @@ function requireJszip_min() {
37955
38070
  e2.msg = "invalid distance code", r22.mode = 30;
37956
38071
  break e;
37957
38072
  }
37958
- if (k2 = 65535 & v2, p < (y2 &= 15) && (d2 += z2[n++] << p, (p += 8) < y2 && (d2 += z2[n++] << p, p += 8)), h2 < (k2 += d2 & (1 << y2) - 1)) {
38073
+ if (k2 = 65535 & v2, p < (y2 &= 15) && (d2 += z2[n++] << p, (p += 8) < y2 && (d2 += z2[n++] << p, p += 8)), h < (k2 += d2 & (1 << y2) - 1)) {
37959
38074
  e2.msg = "invalid distance too far back", r22.mode = 30;
37960
38075
  break e;
37961
38076
  }
@@ -37964,28 +38079,28 @@ function requireJszip_min() {
37964
38079
  e2.msg = "invalid distance too far back", r22.mode = 30;
37965
38080
  break e;
37966
38081
  }
37967
- if (S2 = c2, (x = 0) === f2) {
37968
- if (x += u - y2, y2 < w2) {
37969
- for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
37970
- x = s2 - k2, S2 = C2;
38082
+ if (S2 = c2, (x2 = 0) === f2) {
38083
+ if (x2 += u - y2, y2 < w2) {
38084
+ for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
38085
+ x2 = s2 - k2, S2 = C2;
37971
38086
  }
37972
38087
  } else if (f2 < y2) {
37973
- if (x += u + f2 - y2, (y2 -= f2) < w2) {
37974
- for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
37975
- if (x = 0, f2 < w2) {
37976
- for (w2 -= y2 = f2; C2[s2++] = c2[x++], --y2; ) ;
37977
- x = s2 - k2, S2 = C2;
38088
+ if (x2 += u + f2 - y2, (y2 -= f2) < w2) {
38089
+ for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
38090
+ if (x2 = 0, f2 < w2) {
38091
+ for (w2 -= y2 = f2; C2[s2++] = c2[x2++], --y2; ) ;
38092
+ x2 = s2 - k2, S2 = C2;
37978
38093
  }
37979
38094
  }
37980
- } else if (x += f2 - y2, y2 < w2) {
37981
- for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
37982
- x = s2 - k2, S2 = C2;
38095
+ } else if (x2 += f2 - y2, y2 < w2) {
38096
+ for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
38097
+ x2 = s2 - k2, S2 = C2;
37983
38098
  }
37984
- for (; 2 < w2; ) C2[s2++] = S2[x++], C2[s2++] = S2[x++], C2[s2++] = S2[x++], w2 -= 3;
37985
- w2 && (C2[s2++] = S2[x++], 1 < w2 && (C2[s2++] = S2[x++]));
38099
+ for (; 2 < w2; ) C2[s2++] = S2[x2++], C2[s2++] = S2[x2++], C2[s2++] = S2[x2++], w2 -= 3;
38100
+ w2 && (C2[s2++] = S2[x2++], 1 < w2 && (C2[s2++] = S2[x2++]));
37986
38101
  } else {
37987
- for (x = s2 - k2; C2[s2++] = C2[x++], C2[s2++] = C2[x++], C2[s2++] = C2[x++], 2 < (w2 -= 3); ) ;
37988
- w2 && (C2[s2++] = C2[x++], 1 < w2 && (C2[s2++] = C2[x++]));
38102
+ for (x2 = s2 - k2; C2[s2++] = C2[x2++], C2[s2++] = C2[x2++], C2[s2++] = C2[x2++], 2 < (w2 -= 3); ) ;
38103
+ w2 && (C2[s2++] = C2[x2++], 1 < w2 && (C2[s2++] = C2[x2++]));
37989
38104
  }
37990
38105
  break;
37991
38106
  }
@@ -37996,7 +38111,7 @@ function requireJszip_min() {
37996
38111
  n -= w2 = p >> 3, d2 &= (1 << (p -= w2 << 3)) - 1, e2.next_in = n, e2.next_out = s2, e2.avail_in = n < i ? i - n + 5 : 5 - (n - i), e2.avail_out = s2 < o ? o - s2 + 257 : 257 - (s2 - o), r22.hold = d2, r22.bits = p;
37997
38112
  };
37998
38113
  }, {}], 49: [function(e, t, r2) {
37999
- var I2 = e("../utils/common"), O2 = e("./adler32"), B2 = e("./crc32"), R2 = e("./inffast"), T = e("./inftrees"), D2 = 1, F2 = 2, N2 = 0, U2 = -2, P2 = 1, n = 852, i = 592;
38114
+ var I2 = e("../utils/common"), O = e("./adler32"), B2 = e("./crc32"), R = e("./inffast"), T2 = e("./inftrees"), D2 = 1, F2 = 2, N2 = 0, U2 = -2, P2 = 1, n = 852, i = 592;
38000
38115
  function L2(e2) {
38001
38116
  return (e2 >>> 24 & 255) + (e2 >>> 8 & 65280) + ((65280 & e2) << 8) + ((255 & e2) << 24);
38002
38117
  }
@@ -38011,13 +38126,13 @@ function requireJszip_min() {
38011
38126
  var t2;
38012
38127
  return e2 && e2.state ? ((t2 = e2.state).wsize = 0, t2.whave = 0, t2.wnext = 0, a(e2)) : U2;
38013
38128
  }
38014
- function h2(e2, t2) {
38129
+ function h(e2, t2) {
38015
38130
  var r22, n2;
38016
38131
  return e2 && e2.state ? (n2 = e2.state, t2 < 0 ? (r22 = 0, t2 = -t2) : (r22 = 1 + (t2 >> 4), t2 < 48 && (t2 &= 15)), t2 && (t2 < 8 || 15 < t2) ? U2 : (null !== n2.window && n2.wbits !== t2 && (n2.window = null), n2.wrap = r22, n2.wbits = t2, o(e2))) : U2;
38017
38132
  }
38018
38133
  function u(e2, t2) {
38019
38134
  var r22, n2;
38020
- return e2 ? (n2 = new s2(), (e2.state = n2).window = null, (r22 = h2(e2, t2)) !== N2 && (e2.state = null), r22) : U2;
38135
+ return e2 ? (n2 = new s2(), (e2.state = n2).window = null, (r22 = h(e2, t2)) !== N2 && (e2.state = null), r22) : U2;
38021
38136
  }
38022
38137
  var l3, f2, c2 = true;
38023
38138
  function j2(e2) {
@@ -38027,8 +38142,8 @@ function requireJszip_min() {
38027
38142
  for (; t2 < 256; ) e2.lens[t2++] = 9;
38028
38143
  for (; t2 < 280; ) e2.lens[t2++] = 7;
38029
38144
  for (; t2 < 288; ) e2.lens[t2++] = 8;
38030
- for (T(D2, e2.lens, 0, 288, l3, 0, e2.work, { bits: 9 }), t2 = 0; t2 < 32; ) e2.lens[t2++] = 5;
38031
- T(F2, e2.lens, 0, 32, f2, 0, e2.work, { bits: 5 }), c2 = false;
38145
+ for (T2(D2, e2.lens, 0, 288, l3, 0, e2.work, { bits: 9 }), t2 = 0; t2 < 32; ) e2.lens[t2++] = 5;
38146
+ T2(F2, e2.lens, 0, 32, f2, 0, e2.work, { bits: 5 }), c2 = false;
38032
38147
  }
38033
38148
  e2.lencode = l3, e2.lenbits = 9, e2.distcode = f2, e2.distbits = 5;
38034
38149
  }
@@ -38036,12 +38151,12 @@ function requireJszip_min() {
38036
38151
  var i2, s22 = e2.state;
38037
38152
  return null === s22.window && (s22.wsize = 1 << s22.wbits, s22.wnext = 0, s22.whave = 0, s22.window = new I2.Buf8(s22.wsize)), n2 >= s22.wsize ? (I2.arraySet(s22.window, t2, r22 - s22.wsize, s22.wsize, 0), s22.wnext = 0, s22.whave = s22.wsize) : (n2 < (i2 = s22.wsize - s22.wnext) && (i2 = n2), I2.arraySet(s22.window, t2, r22 - n2, i2, s22.wnext), (n2 -= i2) ? (I2.arraySet(s22.window, t2, r22 - n2, n2, 0), s22.wnext = n2, s22.whave = s22.wsize) : (s22.wnext += i2, s22.wnext === s22.wsize && (s22.wnext = 0), s22.whave < s22.wsize && (s22.whave += i2))), 0;
38038
38153
  }
38039
- r2.inflateReset = o, r2.inflateReset2 = h2, r2.inflateResetKeep = a, r2.inflateInit = function(e2) {
38154
+ r2.inflateReset = o, r2.inflateReset2 = h, r2.inflateResetKeep = a, r2.inflateInit = function(e2) {
38040
38155
  return u(e2, 15);
38041
38156
  }, r2.inflateInit2 = u, r2.inflate = function(e2, t2) {
38042
- var r22, n2, i2, s22, a2, o2, h22, u2, l22, f22, c22, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x, S2, z2, C2 = 0, E2 = new I2.Buf8(4), A2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
38157
+ var r22, n2, i2, s22, a2, o2, h2, u2, l22, f22, c22, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x2, S2, z2, C2 = 0, E2 = new I2.Buf8(4), A2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
38043
38158
  if (!e2 || !e2.state || !e2.output || !e2.input && 0 !== e2.avail_in) return U2;
38044
- 12 === (r22 = e2.state).mode && (r22.mode = 13), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l22 = r22.bits, f22 = o2, c22 = h22, x = N2;
38159
+ 12 === (r22 = e2.state).mode && (r22.mode = 13), a2 = e2.next_out, i2 = e2.output, h2 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l22 = r22.bits, f22 = o2, c22 = h2, x2 = N2;
38045
38160
  e: for (; ; ) switch (r22.mode) {
38046
38161
  case P2:
38047
38162
  if (0 === r22.wrap) {
@@ -38144,7 +38259,7 @@ function requireJszip_min() {
38144
38259
  }
38145
38260
  e2.adler = r22.check = L2(u2), l22 = u2 = 0, r22.mode = 11;
38146
38261
  case 11:
38147
- if (0 === r22.havedict) return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, 2;
38262
+ if (0 === r22.havedict) return e2.next_out = a2, e2.avail_out = h2, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, 2;
38148
38263
  e2.adler = r22.check = 1, r22.mode = 12;
38149
38264
  case 12:
38150
38265
  if (5 === t2 || 6 === t2) break e;
@@ -38187,8 +38302,8 @@ function requireJszip_min() {
38187
38302
  r22.mode = 16;
38188
38303
  case 16:
38189
38304
  if (d2 = r22.length) {
38190
- if (o2 < d2 && (d2 = o2), h22 < d2 && (d2 = h22), 0 === d2) break e;
38191
- I2.arraySet(i2, n2, s22, d2, a2), o2 -= d2, s22 += d2, h22 -= d2, a2 += d2, r22.length -= d2;
38305
+ if (o2 < d2 && (d2 = o2), h2 < d2 && (d2 = h2), 0 === d2) break e;
38306
+ I2.arraySet(i2, n2, s22, d2, a2), o2 -= d2, s22 += d2, h2 -= d2, a2 += d2, r22.length -= d2;
38192
38307
  break;
38193
38308
  }
38194
38309
  r22.mode = 12;
@@ -38212,7 +38327,7 @@ function requireJszip_min() {
38212
38327
  r22.lens[A2[r22.have++]] = 7 & u2, u2 >>>= 3, l22 -= 3;
38213
38328
  }
38214
38329
  for (; r22.have < 19; ) r22.lens[A2[r22.have++]] = 0;
38215
- if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits }, x = T(0, r22.lens, 0, 19, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x) {
38330
+ if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits }, x2 = T2(0, r22.lens, 0, 19, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x2) {
38216
38331
  e2.msg = "invalid code lengths set", r22.mode = 30;
38217
38332
  break;
38218
38333
  }
@@ -38260,11 +38375,11 @@ function requireJszip_min() {
38260
38375
  e2.msg = "invalid code -- missing end-of-block", r22.mode = 30;
38261
38376
  break;
38262
38377
  }
38263
- if (r22.lenbits = 9, S2 = { bits: r22.lenbits }, x = T(D2, r22.lens, 0, r22.nlen, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x) {
38378
+ if (r22.lenbits = 9, S2 = { bits: r22.lenbits }, x2 = T2(D2, r22.lens, 0, r22.nlen, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x2) {
38264
38379
  e2.msg = "invalid literal/lengths set", r22.mode = 30;
38265
38380
  break;
38266
38381
  }
38267
- if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits }, x = T(F2, r22.lens, r22.nlen, r22.ndist, r22.distcode, 0, r22.work, S2), r22.distbits = S2.bits, x) {
38382
+ if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits }, x2 = T2(F2, r22.lens, r22.nlen, r22.ndist, r22.distcode, 0, r22.work, S2), r22.distbits = S2.bits, x2) {
38268
38383
  e2.msg = "invalid distances set", r22.mode = 30;
38269
38384
  break;
38270
38385
  }
@@ -38272,8 +38387,8 @@ function requireJszip_min() {
38272
38387
  case 20:
38273
38388
  r22.mode = 21;
38274
38389
  case 21:
38275
- if (6 <= o2 && 258 <= h22) {
38276
- e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, R2(e2, c22), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l22 = r22.bits, 12 === r22.mode && (r22.back = -1);
38390
+ if (6 <= o2 && 258 <= h2) {
38391
+ e2.next_out = a2, e2.avail_out = h2, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, R(e2, c22), a2 = e2.next_out, i2 = e2.output, h2 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l22 = r22.bits, 12 === r22.mode && (r22.back = -1);
38277
38392
  break;
38278
38393
  }
38279
38394
  for (r22.back = 0; g = (C2 = r22.lencode[u2 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l22); ) {
@@ -38340,20 +38455,20 @@ function requireJszip_min() {
38340
38455
  }
38341
38456
  r22.mode = 25;
38342
38457
  case 25:
38343
- if (0 === h22) break e;
38344
- if (d2 = c22 - h22, r22.offset > d2) {
38458
+ if (0 === h2) break e;
38459
+ if (d2 = c22 - h2, r22.offset > d2) {
38345
38460
  if ((d2 = r22.offset - d2) > r22.whave && r22.sane) {
38346
38461
  e2.msg = "invalid distance too far back", r22.mode = 30;
38347
38462
  break;
38348
38463
  }
38349
38464
  p = d2 > r22.wnext ? (d2 -= r22.wnext, r22.wsize - d2) : r22.wnext - d2, d2 > r22.length && (d2 = r22.length), m2 = r22.window;
38350
38465
  } else m2 = i2, p = a2 - r22.offset, d2 = r22.length;
38351
- for (h22 < d2 && (d2 = h22), h22 -= d2, r22.length -= d2; i2[a2++] = m2[p++], --d2; ) ;
38466
+ for (h2 < d2 && (d2 = h2), h2 -= d2, r22.length -= d2; i2[a2++] = m2[p++], --d2; ) ;
38352
38467
  0 === r22.length && (r22.mode = 21);
38353
38468
  break;
38354
38469
  case 26:
38355
- if (0 === h22) break e;
38356
- i2[a2++] = r22.length, h22--, r22.mode = 21;
38470
+ if (0 === h2) break e;
38471
+ i2[a2++] = r22.length, h2--, r22.mode = 21;
38357
38472
  break;
38358
38473
  case 27:
38359
38474
  if (r22.wrap) {
@@ -38361,7 +38476,7 @@ function requireJszip_min() {
38361
38476
  if (0 === o2) break e;
38362
38477
  o2--, u2 |= n2[s22++] << l22, l22 += 8;
38363
38478
  }
38364
- if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, a2 - c22) : O2(r22.check, i2, c22, a2 - c22)), c22 = h22, (r22.flags ? u2 : L2(u2)) !== r22.check) {
38479
+ if (c22 -= h2, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, a2 - c22) : O(r22.check, i2, c22, a2 - c22)), c22 = h2, (r22.flags ? u2 : L2(u2)) !== r22.check) {
38365
38480
  e2.msg = "incorrect data check", r22.mode = 30;
38366
38481
  break;
38367
38482
  }
@@ -38382,10 +38497,10 @@ function requireJszip_min() {
38382
38497
  }
38383
38498
  r22.mode = 29;
38384
38499
  case 29:
38385
- x = 1;
38500
+ x2 = 1;
38386
38501
  break e;
38387
38502
  case 30:
38388
- x = -3;
38503
+ x2 = -3;
38389
38504
  break e;
38390
38505
  case 31:
38391
38506
  return -4;
@@ -38393,7 +38508,7 @@ function requireJszip_min() {
38393
38508
  default:
38394
38509
  return U2;
38395
38510
  }
38396
- return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, (r22.wsize || c22 !== e2.avail_out && r22.mode < 30 && (r22.mode < 27 || 4 !== t2)) && Z(e2, e2.output, e2.next_out, c22 - e2.avail_out) ? (r22.mode = 31, -4) : (f22 -= e2.avail_in, c22 -= e2.avail_out, e2.total_in += f22, e2.total_out += c22, r22.total += c22, r22.wrap && c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, e2.next_out - c22) : O2(r22.check, i2, c22, e2.next_out - c22)), e2.data_type = r22.bits + (r22.last ? 64 : 0) + (12 === r22.mode ? 128 : 0) + (20 === r22.mode || 15 === r22.mode ? 256 : 0), (0 == f22 && 0 === c22 || 4 === t2) && x === N2 && (x = -5), x);
38511
+ return e2.next_out = a2, e2.avail_out = h2, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, (r22.wsize || c22 !== e2.avail_out && r22.mode < 30 && (r22.mode < 27 || 4 !== t2)) && Z(e2, e2.output, e2.next_out, c22 - e2.avail_out) ? (r22.mode = 31, -4) : (f22 -= e2.avail_in, c22 -= e2.avail_out, e2.total_in += f22, e2.total_out += c22, r22.total += c22, r22.wrap && c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, e2.next_out - c22) : O(r22.check, i2, c22, e2.next_out - c22)), e2.data_type = r22.bits + (r22.last ? 64 : 0) + (12 === r22.mode ? 128 : 0) + (20 === r22.mode || 15 === r22.mode ? 256 : 0), (0 == f22 && 0 === c22 || 4 === t2) && x2 === N2 && (x2 = -5), x2);
38397
38512
  }, r2.inflateEnd = function(e2) {
38398
38513
  if (!e2 || !e2.state) return U2;
38399
38514
  var t2 = e2.state;
@@ -38403,33 +38518,33 @@ function requireJszip_min() {
38403
38518
  return e2 && e2.state ? 0 == (2 & (r22 = e2.state).wrap) ? U2 : ((r22.head = t2).done = false, N2) : U2;
38404
38519
  }, r2.inflateSetDictionary = function(e2, t2) {
38405
38520
  var r22, n2 = t2.length;
38406
- return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode && O2(1, t2, n2, 0) !== r22.check ? -3 : Z(e2, t2, n2, n2) ? (r22.mode = 31, -4) : (r22.havedict = 1, N2) : U2;
38521
+ return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode && O(1, t2, n2, 0) !== r22.check ? -3 : Z(e2, t2, n2, n2) ? (r22.mode = 31, -4) : (r22.havedict = 1, N2) : U2;
38407
38522
  }, r2.inflateInfo = "pako inflate (from Nodeca project)";
38408
38523
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, t, r2) {
38409
38524
  var D2 = e("../utils/common"), F2 = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], N2 = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], U2 = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], P2 = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
38410
38525
  t.exports = function(e2, t2, r22, n, i, s2, a, o) {
38411
- var h2, u, l3, f2, c2, d2, p, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0, x = 0, S2 = 0, z2 = 0, C2 = 0, E2 = 0, A2 = null, I2 = 0, O2 = new D2.Buf16(16), B2 = new D2.Buf16(16), R2 = null, T = 0;
38412
- for (b2 = 0; b2 <= 15; b2++) O2[b2] = 0;
38413
- for (v2 = 0; v2 < n; v2++) O2[t2[r22 + v2]]++;
38414
- for (k2 = g, w2 = 15; 1 <= w2 && 0 === O2[w2]; w2--) ;
38526
+ var h, u, l3, f2, c2, d2, p, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0, x2 = 0, S2 = 0, z2 = 0, C2 = 0, E2 = 0, A2 = null, I2 = 0, O = new D2.Buf16(16), B2 = new D2.Buf16(16), R = null, T2 = 0;
38527
+ for (b2 = 0; b2 <= 15; b2++) O[b2] = 0;
38528
+ for (v2 = 0; v2 < n; v2++) O[t2[r22 + v2]]++;
38529
+ for (k2 = g, w2 = 15; 1 <= w2 && 0 === O[w2]; w2--) ;
38415
38530
  if (w2 < k2 && (k2 = w2), 0 === w2) return i[s2++] = 20971520, i[s2++] = 20971520, o.bits = 1, 0;
38416
- for (y2 = 1; y2 < w2 && 0 === O2[y2]; y2++) ;
38417
- for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -= O2[b2]) < 0) return -1;
38531
+ for (y2 = 1; y2 < w2 && 0 === O[y2]; y2++) ;
38532
+ for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -= O[b2]) < 0) return -1;
38418
38533
  if (0 < z2 && (0 === e2 || 1 !== w2)) return -1;
38419
- for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] + O2[b2];
38534
+ for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] + O[b2];
38420
38535
  for (v2 = 0; v2 < n; v2++) 0 !== t2[r22 + v2] && (a[B2[t2[r22 + v2]]++] = v2);
38421
- if (d2 = 0 === e2 ? (A2 = R2 = a, 19) : 1 === e2 ? (A2 = F2, I2 -= 257, R2 = N2, T -= 257, 256) : (A2 = U2, R2 = P2, -1), b2 = y2, c2 = s2, S2 = v2 = E2 = 0, l3 = -1, f2 = (C2 = 1 << (x = k2)) - 1, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
38536
+ if (d2 = 0 === e2 ? (A2 = R = a, 19) : 1 === e2 ? (A2 = F2, I2 -= 257, R = N2, T2 -= 257, 256) : (A2 = U2, R = P2, -1), b2 = y2, c2 = s2, S2 = v2 = E2 = 0, l3 = -1, f2 = (C2 = 1 << (x2 = k2)) - 1, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
38422
38537
  for (; ; ) {
38423
- for (p = b2 - S2, _2 = a[v2] < d2 ? (m2 = 0, a[v2]) : a[v2] > d2 ? (m2 = R2[T + a[v2]], A2[I2 + a[v2]]) : (m2 = 96, 0), h2 = 1 << b2 - S2, y2 = u = 1 << x; i[c2 + (E2 >> S2) + (u -= h2)] = p << 24 | m2 << 16 | _2 | 0, 0 !== u; ) ;
38424
- for (h2 = 1 << b2 - 1; E2 & h2; ) h2 >>= 1;
38425
- if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --O2[b2]) {
38538
+ for (p = b2 - S2, _2 = a[v2] < d2 ? (m2 = 0, a[v2]) : a[v2] > d2 ? (m2 = R[T2 + a[v2]], A2[I2 + a[v2]]) : (m2 = 96, 0), h = 1 << b2 - S2, y2 = u = 1 << x2; i[c2 + (E2 >> S2) + (u -= h)] = p << 24 | m2 << 16 | _2 | 0, 0 !== u; ) ;
38539
+ for (h = 1 << b2 - 1; E2 & h; ) h >>= 1;
38540
+ if (0 !== h ? (E2 &= h - 1, E2 += h) : E2 = 0, v2++, 0 == --O[b2]) {
38426
38541
  if (b2 === w2) break;
38427
38542
  b2 = t2[r22 + a[v2]];
38428
38543
  }
38429
38544
  if (k2 < b2 && (E2 & f2) !== l3) {
38430
- for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (x = b2 - S2); x + S2 < w2 && !((z2 -= O2[x + S2]) <= 0); ) x++, z2 <<= 1;
38431
- if (C2 += 1 << x, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
38432
- i[l3 = E2 & f2] = k2 << 24 | x << 16 | c2 - s2 | 0;
38545
+ for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (x2 = b2 - S2); x2 + S2 < w2 && !((z2 -= O[x2 + S2]) <= 0); ) x2++, z2 <<= 1;
38546
+ if (C2 += 1 << x2, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
38547
+ i[l3 = E2 & f2] = k2 << 24 | x2 << 16 | c2 - s2 | 0;
38433
38548
  }
38434
38549
  }
38435
38550
  return 0 !== E2 && (i[c2 + E2] = b2 - S2 << 24 | 64 << 16 | 0), o.bits = k2, 0;
@@ -38437,11 +38552,11 @@ function requireJszip_min() {
38437
38552
  }, { "../utils/common": 41 }], 51: [function(e, t, r2) {
38438
38553
  t.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
38439
38554
  }, {}], 52: [function(e, t, r2) {
38440
- var i = e("../utils/common"), o = 0, h2 = 1;
38555
+ var i = e("../utils/common"), o = 0, h = 1;
38441
38556
  function n(e2) {
38442
38557
  for (var t2 = e2.length; 0 <= --t2; ) e2[t2] = 0;
38443
38558
  }
38444
- var s2 = 0, a = 29, u = 256, l3 = u + 1 + a, f2 = 30, c2 = 19, _2 = 2 * l3 + 1, g = 15, d2 = 16, p = 7, m2 = 256, b2 = 16, v2 = 17, y2 = 18, w2 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k2 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], x = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z2 = new Array(2 * (l3 + 2));
38559
+ var s2 = 0, a = 29, u = 256, l3 = u + 1 + a, f2 = 30, c2 = 19, _2 = 2 * l3 + 1, g = 15, d2 = 16, p = 7, m2 = 256, b2 = 16, v2 = 17, y2 = 18, w2 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k2 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], x2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z2 = new Array(2 * (l3 + 2));
38445
38560
  n(z2);
38446
38561
  var C2 = new Array(2 * f2);
38447
38562
  n(C2);
@@ -38451,7 +38566,7 @@ function requireJszip_min() {
38451
38566
  n(A2);
38452
38567
  var I2 = new Array(a);
38453
38568
  n(I2);
38454
- var O2, B2, R2, T = new Array(f2);
38569
+ var O, B2, R, T2 = new Array(f2);
38455
38570
  function D2(e2, t2, r22, n2, i2) {
38456
38571
  this.static_tree = e2, this.extra_bits = t2, this.extra_base = r22, this.elems = n2, this.max_length = i2, this.has_stree = e2 && e2.length;
38457
38572
  }
@@ -38502,15 +38617,15 @@ function requireJszip_min() {
38502
38617
  }
38503
38618
  function K2(e2, t2, r22) {
38504
38619
  var n2, i2, s22, a2, o2 = 0;
38505
- if (0 !== e2.last_lit) for (; n2 = e2.pending_buf[e2.d_buf + 2 * o2] << 8 | e2.pending_buf[e2.d_buf + 2 * o2 + 1], i2 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i2, t2) : (L2(e2, (s22 = A2[i2]) + u + 1, t2), 0 !== (a2 = w2[s22]) && P2(e2, i2 -= I2[s22], a2), L2(e2, s22 = N2(--n2), r22), 0 !== (a2 = k2[s22]) && P2(e2, n2 -= T[s22], a2)), o2 < e2.last_lit; ) ;
38620
+ if (0 !== e2.last_lit) for (; n2 = e2.pending_buf[e2.d_buf + 2 * o2] << 8 | e2.pending_buf[e2.d_buf + 2 * o2 + 1], i2 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i2, t2) : (L2(e2, (s22 = A2[i2]) + u + 1, t2), 0 !== (a2 = w2[s22]) && P2(e2, i2 -= I2[s22], a2), L2(e2, s22 = N2(--n2), r22), 0 !== (a2 = k2[s22]) && P2(e2, n2 -= T2[s22], a2)), o2 < e2.last_lit; ) ;
38506
38621
  L2(e2, m2, t2);
38507
38622
  }
38508
38623
  function Y2(e2, t2) {
38509
- var r22, n2, i2, s22 = t2.dyn_tree, a2 = t2.stat_desc.static_tree, o2 = t2.stat_desc.has_stree, h22 = t2.stat_desc.elems, u2 = -1;
38510
- for (e2.heap_len = 0, e2.heap_max = _2, r22 = 0; r22 < h22; r22++) 0 !== s22[2 * r22] ? (e2.heap[++e2.heap_len] = u2 = r22, e2.depth[r22] = 0) : s22[2 * r22 + 1] = 0;
38624
+ var r22, n2, i2, s22 = t2.dyn_tree, a2 = t2.stat_desc.static_tree, o2 = t2.stat_desc.has_stree, h2 = t2.stat_desc.elems, u2 = -1;
38625
+ for (e2.heap_len = 0, e2.heap_max = _2, r22 = 0; r22 < h2; r22++) 0 !== s22[2 * r22] ? (e2.heap[++e2.heap_len] = u2 = r22, e2.depth[r22] = 0) : s22[2 * r22 + 1] = 0;
38511
38626
  for (; e2.heap_len < 2; ) s22[2 * (i2 = e2.heap[++e2.heap_len] = u2 < 2 ? ++u2 : 0)] = 1, e2.depth[i2] = 0, e2.opt_len--, o2 && (e2.static_len -= a2[2 * i2 + 1]);
38512
38627
  for (t2.max_code = u2, r22 = e2.heap_len >> 1; 1 <= r22; r22--) G2(e2, s22, r22);
38513
- for (i2 = h22; r22 = e2.heap[1], e2.heap[1] = e2.heap[e2.heap_len--], G2(e2, s22, 1), n2 = e2.heap[1], e2.heap[--e2.heap_max] = r22, e2.heap[--e2.heap_max] = n2, s22[2 * i2] = s22[2 * r22] + s22[2 * n2], e2.depth[i2] = (e2.depth[r22] >= e2.depth[n2] ? e2.depth[r22] : e2.depth[n2]) + 1, s22[2 * r22 + 1] = s22[2 * n2 + 1] = i2, e2.heap[1] = i2++, G2(e2, s22, 1), 2 <= e2.heap_len; ) ;
38628
+ for (i2 = h2; r22 = e2.heap[1], e2.heap[1] = e2.heap[e2.heap_len--], G2(e2, s22, 1), n2 = e2.heap[1], e2.heap[--e2.heap_max] = r22, e2.heap[--e2.heap_max] = n2, s22[2 * i2] = s22[2 * r22] + s22[2 * n2], e2.depth[i2] = (e2.depth[r22] >= e2.depth[n2] ? e2.depth[r22] : e2.depth[n2]) + 1, s22[2 * r22 + 1] = s22[2 * n2 + 1] = i2, e2.heap[1] = i2++, G2(e2, s22, 1), 2 <= e2.heap_len; ) ;
38514
38629
  e2.heap[--e2.heap_max] = e2.heap[1], (function(e3, t3) {
38515
38630
  var r3, n3, i3, s3, a3, o3, h3 = t3.dyn_tree, u3 = t3.max_code, l22 = t3.stat_desc.static_tree, f22 = t3.stat_desc.has_stree, c22 = t3.stat_desc.extra_bits, d22 = t3.stat_desc.extra_base, p2 = t3.stat_desc.max_length, m22 = 0;
38516
38631
  for (s3 = 0; s3 <= g; s3++) e3.bl_count[s3] = 0;
@@ -38525,18 +38640,18 @@ function requireJszip_min() {
38525
38640
  })(e2, t2), Z(s22, u2, e2.bl_count);
38526
38641
  }
38527
38642
  function X2(e2, t2, r22) {
38528
- var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7, u2 = 4;
38529
- for (0 === a2 && (h22 = 138, u2 = 3), t2[2 * (r22 + 1) + 1] = 65535, n2 = 0; n2 <= r22; n2++) i2 = a2, a2 = t2[2 * (n2 + 1) + 1], ++o2 < h22 && i2 === a2 || (o2 < u2 ? e2.bl_tree[2 * i2] += o2 : 0 !== i2 ? (i2 !== s22 && e2.bl_tree[2 * i2]++, e2.bl_tree[2 * b2]++) : o2 <= 10 ? e2.bl_tree[2 * v2]++ : e2.bl_tree[2 * y2]++, s22 = i2, u2 = (o2 = 0) === a2 ? (h22 = 138, 3) : i2 === a2 ? (h22 = 6, 3) : (h22 = 7, 4));
38643
+ var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h2 = 7, u2 = 4;
38644
+ for (0 === a2 && (h2 = 138, u2 = 3), t2[2 * (r22 + 1) + 1] = 65535, n2 = 0; n2 <= r22; n2++) i2 = a2, a2 = t2[2 * (n2 + 1) + 1], ++o2 < h2 && i2 === a2 || (o2 < u2 ? e2.bl_tree[2 * i2] += o2 : 0 !== i2 ? (i2 !== s22 && e2.bl_tree[2 * i2]++, e2.bl_tree[2 * b2]++) : o2 <= 10 ? e2.bl_tree[2 * v2]++ : e2.bl_tree[2 * y2]++, s22 = i2, u2 = (o2 = 0) === a2 ? (h2 = 138, 3) : i2 === a2 ? (h2 = 6, 3) : (h2 = 7, 4));
38530
38645
  }
38531
38646
  function V2(e2, t2, r22) {
38532
- var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7, u2 = 4;
38533
- for (0 === a2 && (h22 = 138, u2 = 3), n2 = 0; n2 <= r22; n2++) if (i2 = a2, a2 = t2[2 * (n2 + 1) + 1], !(++o2 < h22 && i2 === a2)) {
38647
+ var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h2 = 7, u2 = 4;
38648
+ for (0 === a2 && (h2 = 138, u2 = 3), n2 = 0; n2 <= r22; n2++) if (i2 = a2, a2 = t2[2 * (n2 + 1) + 1], !(++o2 < h2 && i2 === a2)) {
38534
38649
  if (o2 < u2) for (; L2(e2, i2, e2.bl_tree), 0 != --o2; ) ;
38535
38650
  else 0 !== i2 ? (i2 !== s22 && (L2(e2, i2, e2.bl_tree), o2--), L2(e2, b2, e2.bl_tree), P2(e2, o2 - 3, 2)) : o2 <= 10 ? (L2(e2, v2, e2.bl_tree), P2(e2, o2 - 3, 3)) : (L2(e2, y2, e2.bl_tree), P2(e2, o2 - 11, 7));
38536
- s22 = i2, u2 = (o2 = 0) === a2 ? (h22 = 138, 3) : i2 === a2 ? (h22 = 6, 3) : (h22 = 7, 4);
38651
+ s22 = i2, u2 = (o2 = 0) === a2 ? (h2 = 138, 3) : i2 === a2 ? (h2 = 6, 3) : (h2 = 7, 4);
38537
38652
  }
38538
38653
  }
38539
- n(T);
38654
+ n(T2);
38540
38655
  var q2 = false;
38541
38656
  function J2(e2, t2, r22, n2) {
38542
38657
  P2(e2, (s2 << 1) + (n2 ? 1 : 0), 3), (function(e3, t3, r3, n3) {
@@ -38547,23 +38662,23 @@ function requireJszip_min() {
38547
38662
  q2 || ((function() {
38548
38663
  var e3, t2, r22, n2, i2, s22 = new Array(g + 1);
38549
38664
  for (n2 = r22 = 0; n2 < a - 1; n2++) for (I2[n2] = r22, e3 = 0; e3 < 1 << w2[n2]; e3++) A2[r22++] = n2;
38550
- for (A2[r22 - 1] = n2, n2 = i2 = 0; n2 < 16; n2++) for (T[n2] = i2, e3 = 0; e3 < 1 << k2[n2]; e3++) E2[i2++] = n2;
38551
- for (i2 >>= 7; n2 < f2; n2++) for (T[n2] = i2 << 7, e3 = 0; e3 < 1 << k2[n2] - 7; e3++) E2[256 + i2++] = n2;
38665
+ for (A2[r22 - 1] = n2, n2 = i2 = 0; n2 < 16; n2++) for (T2[n2] = i2, e3 = 0; e3 < 1 << k2[n2]; e3++) E2[i2++] = n2;
38666
+ for (i2 >>= 7; n2 < f2; n2++) for (T2[n2] = i2 << 7, e3 = 0; e3 < 1 << k2[n2] - 7; e3++) E2[256 + i2++] = n2;
38552
38667
  for (t2 = 0; t2 <= g; t2++) s22[t2] = 0;
38553
38668
  for (e3 = 0; e3 <= 143; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
38554
38669
  for (; e3 <= 255; ) z2[2 * e3 + 1] = 9, e3++, s22[9]++;
38555
38670
  for (; e3 <= 279; ) z2[2 * e3 + 1] = 7, e3++, s22[7]++;
38556
38671
  for (; e3 <= 287; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
38557
38672
  for (Z(z2, l3 + 1, s22), e3 = 0; e3 < f2; e3++) C2[2 * e3 + 1] = 5, C2[2 * e3] = j2(e3, 5);
38558
- O2 = new D2(z2, w2, u + 1, l3, g), B2 = new D2(C2, k2, 0, f2, g), R2 = new D2(new Array(0), x, 0, c2, p);
38559
- })(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree, O2), e2.d_desc = new F2(e2.dyn_dtree, B2), e2.bl_desc = new F2(e2.bl_tree, R2), e2.bi_buf = 0, e2.bi_valid = 0, W2(e2);
38673
+ O = new D2(z2, w2, u + 1, l3, g), B2 = new D2(C2, k2, 0, f2, g), R = new D2(new Array(0), x2, 0, c2, p);
38674
+ })(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree, O), e2.d_desc = new F2(e2.dyn_dtree, B2), e2.bl_desc = new F2(e2.bl_tree, R), e2.bi_buf = 0, e2.bi_valid = 0, W2(e2);
38560
38675
  }, r2._tr_stored_block = J2, r2._tr_flush_block = function(e2, t2, r22, n2) {
38561
38676
  var i2, s22, a2 = 0;
38562
38677
  0 < e2.level ? (2 === e2.strm.data_type && (e2.strm.data_type = (function(e3) {
38563
38678
  var t3, r3 = 4093624447;
38564
38679
  for (t3 = 0; t3 <= 31; t3++, r3 >>>= 1) if (1 & r3 && 0 !== e3.dyn_ltree[2 * t3]) return o;
38565
- if (0 !== e3.dyn_ltree[18] || 0 !== e3.dyn_ltree[20] || 0 !== e3.dyn_ltree[26]) return h2;
38566
- for (t3 = 32; t3 < u; t3++) if (0 !== e3.dyn_ltree[2 * t3]) return h2;
38680
+ if (0 !== e3.dyn_ltree[18] || 0 !== e3.dyn_ltree[20] || 0 !== e3.dyn_ltree[26]) return h;
38681
+ for (t3 = 32; t3 < u; t3++) if (0 !== e3.dyn_ltree[2 * t3]) return h;
38567
38682
  return o;
38568
38683
  })(e2)), Y2(e2, e2.l_desc), Y2(e2, e2.d_desc), a2 = (function(e3) {
38569
38684
  var t3;
@@ -38589,7 +38704,7 @@ function requireJszip_min() {
38589
38704
  (function(e2) {
38590
38705
  !(function(r22, n) {
38591
38706
  if (!r22.setImmediate) {
38592
- var i, s2, t2, a, o = 1, h2 = {}, u = false, l3 = r22.document, e3 = Object.getPrototypeOf && Object.getPrototypeOf(r22);
38707
+ var i, s2, t2, a, o = 1, h = {}, u = false, l3 = r22.document, e3 = Object.getPrototypeOf && Object.getPrototypeOf(r22);
38593
38708
  e3 = e3 && e3.setTimeout ? e3 : r22, i = "[object process]" === {}.toString.call(r22.process) ? function(e4) {
38594
38709
  process$1$1.nextTick(function() {
38595
38710
  c2(e4);
@@ -38618,16 +38733,16 @@ function requireJszip_min() {
38618
38733
  "function" != typeof e4 && (e4 = new Function("" + e4));
38619
38734
  for (var t3 = new Array(arguments.length - 1), r3 = 0; r3 < t3.length; r3++) t3[r3] = arguments[r3 + 1];
38620
38735
  var n2 = { callback: e4, args: t3 };
38621
- return h2[o] = n2, i(o), o++;
38736
+ return h[o] = n2, i(o), o++;
38622
38737
  }, e3.clearImmediate = f2;
38623
38738
  }
38624
38739
  function f2(e4) {
38625
- delete h2[e4];
38740
+ delete h[e4];
38626
38741
  }
38627
38742
  function c2(e4) {
38628
38743
  if (u) setTimeout(c2, 0, e4);
38629
38744
  else {
38630
- var t3 = h2[e4];
38745
+ var t3 = h[e4];
38631
38746
  if (t3) {
38632
38747
  u = true;
38633
38748
  try {
@@ -39632,17 +39747,17 @@ function deepActiveElement(doc2) {
39632
39747
  elt = elt.shadowRoot.activeElement;
39633
39748
  return elt;
39634
39749
  }
39635
- function caretFromPoint(doc2, x, y2) {
39750
+ function caretFromPoint(doc2, x2, y2) {
39636
39751
  if (doc2.caretPositionFromPoint) {
39637
39752
  try {
39638
- let pos = doc2.caretPositionFromPoint(x, y2);
39753
+ let pos = doc2.caretPositionFromPoint(x2, y2);
39639
39754
  if (pos)
39640
39755
  return { node: pos.offsetNode, offset: Math.min(nodeSize(pos.offsetNode), pos.offset) };
39641
39756
  } catch (_2) {
39642
39757
  }
39643
39758
  }
39644
39759
  if (doc2.caretRangeFromPoint) {
39645
- let range2 = doc2.caretRangeFromPoint(x, y2);
39760
+ let range2 = doc2.caretRangeFromPoint(x2, y2);
39646
39761
  if (range2)
39647
39762
  return { node: range2.startContainer, offset: Math.min(nodeSize(range2.startContainer), range2.startOffset) };
39648
39763
  }
@@ -39741,8 +39856,8 @@ function scrollRectIntoView(view, rect, startDOM) {
39741
39856
  function storeScrollPos(view) {
39742
39857
  let rect = view.dom.getBoundingClientRect(), startY = Math.max(0, rect.top);
39743
39858
  let refDOM, refTop;
39744
- for (let x = (rect.left + rect.right) / 2, y2 = startY + 1; y2 < Math.min(innerHeight, rect.bottom); y2 += 5) {
39745
- let dom = view.root.elementFromPoint(x, y2);
39859
+ for (let x2 = (rect.left + rect.right) / 2, y2 = startY + 1; y2 < Math.min(innerHeight, rect.bottom); y2 += 5) {
39860
+ let dom = view.root.elementFromPoint(x2, y2);
39746
39861
  if (!dom || dom == view.dom || !view.dom.contains(dom))
39747
39862
  continue;
39748
39863
  let localRect = dom.getBoundingClientRect();
@@ -39844,17 +39959,20 @@ function findOffsetInNode(node, coords) {
39844
39959
  }
39845
39960
  function findOffsetInText(node, coords) {
39846
39961
  let len = node.nodeValue.length;
39847
- let range2 = document.createRange();
39962
+ let range2 = document.createRange(), result;
39848
39963
  for (let i = 0; i < len; i++) {
39849
39964
  range2.setEnd(node, i + 1);
39850
39965
  range2.setStart(node, i);
39851
39966
  let rect = singleRect(range2, 1);
39852
39967
  if (rect.top == rect.bottom)
39853
39968
  continue;
39854
- if (inRect(coords, rect))
39855
- return { node, offset: i + (coords.left >= (rect.left + rect.right) / 2 ? 1 : 0) };
39969
+ if (inRect(coords, rect)) {
39970
+ result = { node, offset: i + (coords.left >= (rect.left + rect.right) / 2 ? 1 : 0) };
39971
+ break;
39972
+ }
39856
39973
  }
39857
- return { node, offset: 0 };
39974
+ range2.detach();
39975
+ return result || { node, offset: 0 };
39858
39976
  }
39859
39977
  function inRect(coords, rect) {
39860
39978
  return coords.left >= rect.left - 1 && coords.left <= rect.right + 1 && coords.top >= rect.top - 1 && coords.top <= rect.bottom + 1;
@@ -40038,8 +40156,8 @@ function coordsAtPos(view, pos, side) {
40038
40156
  function flattenV(rect, left2) {
40039
40157
  if (rect.width == 0)
40040
40158
  return rect;
40041
- let x = left2 ? rect.left : rect.right;
40042
- return { top: rect.top, bottom: rect.bottom, left: x, right: x };
40159
+ let x2 = left2 ? rect.left : rect.right;
40160
+ return { top: rect.top, bottom: rect.bottom, left: x2, right: x2 };
40043
40161
  }
40044
40162
  function flattenH(rect, top2) {
40045
40163
  if (rect.height == 0)
@@ -42601,7 +42719,7 @@ editHandlers.compositionstart = editHandlers.compositionupdate = (view) => {
42601
42719
  if (!view.composing) {
42602
42720
  view.domObserver.flush();
42603
42721
  let { state: state2 } = view, $pos = state2.selection.$to;
42604
- if (state2.selection instanceof TextSelection$1 && (state2.storedMarks || !$pos.textOffset && $pos.parentOffset && $pos.nodeBefore.marks.some((m2) => m2.type.spec.inclusive === false))) {
42722
+ if (state2.selection instanceof TextSelection$1 && (state2.storedMarks || !$pos.textOffset && $pos.parentOffset && $pos.nodeBefore.marks.some((m2) => m2.type.spec.inclusive === false) || chrome && windows$1 && selectionBeforeUneditable(view))) {
42605
42723
  view.markCursor = view.state.storedMarks || $pos.marks();
42606
42724
  endComposition(view, true);
42607
42725
  view.markCursor = null;
@@ -42629,6 +42747,13 @@ editHandlers.compositionstart = editHandlers.compositionupdate = (view) => {
42629
42747
  }
42630
42748
  scheduleComposeEnd(view, timeoutComposition);
42631
42749
  };
42750
+ function selectionBeforeUneditable(view) {
42751
+ let { focusNode, focusOffset } = view.domSelectionRange();
42752
+ if (!focusNode || focusNode.nodeType != 1 || focusOffset >= focusNode.childNodes.length)
42753
+ return false;
42754
+ let next = focusNode.childNodes[focusOffset];
42755
+ return next.nodeType == 1 && next.contentEditable == "false";
42756
+ }
42632
42757
  editHandlers.compositionend = (view, event) => {
42633
42758
  if (view.composing) {
42634
42759
  view.input.composing = false;
@@ -42832,10 +42957,14 @@ handlers.dragend = (view) => {
42832
42957
  }, 50);
42833
42958
  };
42834
42959
  editHandlers.dragover = editHandlers.dragenter = (_2, e) => e.preventDefault();
42835
- editHandlers.drop = (view, _event) => {
42836
- let event = _event;
42837
- let dragging = view.dragging;
42838
- view.dragging = null;
42960
+ editHandlers.drop = (view, event) => {
42961
+ try {
42962
+ handleDrop(view, event, view.dragging);
42963
+ } finally {
42964
+ view.dragging = null;
42965
+ }
42966
+ };
42967
+ function handleDrop(view, event, dragging) {
42839
42968
  if (!event.dataTransfer)
42840
42969
  return;
42841
42970
  let eventPos = view.posAtCoords(eventCoords(event));
@@ -42888,7 +43017,7 @@ editHandlers.drop = (view, _event) => {
42888
43017
  }
42889
43018
  view.focus();
42890
43019
  view.dispatch(tr.setMeta("uiEvent", "drop"));
42891
- };
43020
+ }
42892
43021
  handlers.focus = (view) => {
42893
43022
  view.input.lastFocus = Date.now();
42894
43023
  if (!view.focused) {
@@ -43738,6 +43867,13 @@ class DOMObserver {
43738
43867
  br.remove();
43739
43868
  }
43740
43869
  }
43870
+ } else if ((chrome || safari) && added.some((n) => n.nodeName == "BR") && (view.input.lastKeyCode == 8 || view.input.lastKeyCode == 46)) {
43871
+ for (let node of added)
43872
+ if (node.nodeName == "BR" && node.parentNode) {
43873
+ let after = node.nextSibling;
43874
+ if (after && after.nodeType == 1 && after.contentEditable == "false")
43875
+ node.parentNode.removeChild(node);
43876
+ }
43741
43877
  }
43742
43878
  let readSel = null;
43743
43879
  if (from2 < 0 && newSel && view.input.lastFocus > Date.now() - 200 && Math.max(view.input.lastTouch, view.input.lastClick.time) < Date.now() - 300 && selectionCollapsed(sel) && (readSel = selectionFromDOM(view)) && readSel.eq(Selection.near(view.state.doc.resolve(0), 1))) {
@@ -45046,10 +45182,10 @@ const createTimeoutClass = (clearFunction) => class TT {
45046
45182
  const Timeout = createTimeoutClass(clearTimeout);
45047
45183
  const timeout = (timeout2, callback) => new Timeout(setTimeout(callback, timeout2));
45048
45184
  const rotr = (w2, shift2) => w2 >>> shift2 | w2 << 32 - shift2;
45049
- const sum0to256 = (x) => rotr(x, 2) ^ rotr(x, 13) ^ rotr(x, 22);
45050
- const sum1to256 = (x) => rotr(x, 6) ^ rotr(x, 11) ^ rotr(x, 25);
45051
- const sigma0to256 = (x) => rotr(x, 7) ^ rotr(x, 18) ^ x >>> 3;
45052
- const sigma1to256 = (x) => rotr(x, 17) ^ rotr(x, 19) ^ x >>> 10;
45185
+ const sum0to256 = (x2) => rotr(x2, 2) ^ rotr(x2, 13) ^ rotr(x2, 22);
45186
+ const sum1to256 = (x2) => rotr(x2, 6) ^ rotr(x2, 11) ^ rotr(x2, 25);
45187
+ const sigma0to256 = (x2) => rotr(x2, 7) ^ rotr(x2, 18) ^ x2 >>> 3;
45188
+ const sigma1to256 = (x2) => rotr(x2, 17) ^ rotr(x2, 19) ^ x2 >>> 10;
45053
45189
  const K = new Uint32Array([
45054
45190
  1116352408,
45055
45191
  1899447441,
@@ -45146,11 +45282,11 @@ class Hasher {
45146
45282
  let e = H[4];
45147
45283
  let f2 = H[5];
45148
45284
  let g = H[6];
45149
- let h2 = H[7];
45285
+ let h = H[7];
45150
45286
  for (let tt = 0, T1, T2; tt < 64; tt++) {
45151
- T1 = h2 + sum1to256(e) + (e & f2 ^ ~e & g) + K[tt] + W2[tt] >>> 0;
45287
+ T1 = h + sum1to256(e) + (e & f2 ^ ~e & g) + K[tt] + W2[tt] >>> 0;
45152
45288
  T2 = sum0to256(a) + (a & b2 ^ a & c2 ^ b2 & c2) >>> 0;
45153
- h2 = g;
45289
+ h = g;
45154
45290
  g = f2;
45155
45291
  f2 = e;
45156
45292
  e = d2 + T1 >>> 0;
@@ -45166,7 +45302,7 @@ class Hasher {
45166
45302
  H[4] += e;
45167
45303
  H[5] += f2;
45168
45304
  H[6] += g;
45169
- H[7] += h2;
45305
+ H[7] += h;
45170
45306
  }
45171
45307
  /**
45172
45308
  * Returns a 32-byte hash.
@@ -54071,7 +54207,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
54071
54207
  { default: remarkStringify },
54072
54208
  { default: remarkGfm }
54073
54209
  ] = await Promise.all([
54074
- Promise.resolve().then(() => require("./index-DPjn4rpi-Bs9-iTbY.cjs")),
54210
+ Promise.resolve().then(() => require("./index-_8cQcYzu-CB4RkW2W.cjs")),
54075
54211
  Promise.resolve().then(() => require("./index-DRCvimau-H4Ck3S9a.cjs")),
54076
54212
  Promise.resolve().then(() => require("./index-C_x_N6Uh-Db3CUJMX.cjs")),
54077
54213
  Promise.resolve().then(() => require("./index-D_sWOSiG-BtDZzJ6I.cjs")),
@@ -54289,7 +54425,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
54289
54425
  * @returns {Object | void} Migration results
54290
54426
  */
54291
54427
  processCollaborationMigrations() {
54292
- console.debug("[checkVersionMigrations] Current editor version", "0.34.4");
54428
+ console.debug("[checkVersionMigrations] Current editor version", "0.34.6-RC1");
54293
54429
  if (!this.options.ydoc) return;
54294
54430
  const metaMap = this.options.ydoc.getMap("meta");
54295
54431
  let docVersion = metaMap.get("version");
@@ -56168,16 +56304,16 @@ function getCursorPositionRelativeToContainer(view, eventLocation) {
56168
56304
  const { state: state2, dom } = view;
56169
56305
  const { selection } = state2;
56170
56306
  const containerRect = dom.getBoundingClientRect();
56171
- let x, y2;
56307
+ let x2, y2;
56172
56308
  if (typeof eventLocation.clientX === "number" && typeof eventLocation.clientY === "number") {
56173
- x = eventLocation.clientX - containerRect.left;
56309
+ x2 = eventLocation.clientX - containerRect.left;
56174
56310
  y2 = eventLocation.clientY - containerRect.top;
56175
56311
  } else {
56176
56312
  const cursorCoords = view.coordsAtPos(selection.from);
56177
- x = cursorCoords.left - containerRect.left;
56313
+ x2 = cursorCoords.left - containerRect.left;
56178
56314
  y2 = cursorCoords.top - containerRect.top;
56179
56315
  }
56180
- return { left: x, top: y2 };
56316
+ return { left: x2, top: y2 };
56181
56317
  }
56182
56318
  const SlashMenuPluginKey = new PluginKey("slashMenu");
56183
56319
  const SlashMenu = Extension.create({
@@ -56456,17 +56592,17 @@ class StructuredContentViewBase {
56456
56592
  if (!this.dom || this.contentDOM?.contains(target) || !dragHandle) {
56457
56593
  return;
56458
56594
  }
56459
- let x = 0;
56595
+ let x2 = 0;
56460
56596
  let y2 = 0;
56461
56597
  if (this.dom !== dragHandle) {
56462
56598
  const domBox = this.dom.getBoundingClientRect();
56463
56599
  const handleBox = dragHandle.getBoundingClientRect();
56464
56600
  const offsetX = event.offsetX ?? event.nativeEvent?.offsetX;
56465
56601
  const offsetY = event.offsetY ?? event.nativeEvent?.offsetY;
56466
- x = handleBox.x - domBox.x + offsetX;
56602
+ x2 = handleBox.x - domBox.x + offsetX;
56467
56603
  y2 = handleBox.y - domBox.y + offsetY;
56468
56604
  }
56469
- event.dataTransfer?.setDragImage(this.dom, x, y2);
56605
+ event.dataTransfer?.setDragImage(this.dom, x2, y2);
56470
56606
  const pos = this.getPos();
56471
56607
  if (typeof pos !== "number") {
56472
56608
  return;
@@ -56926,7 +57062,7 @@ const StructuredContentCommands = Extension.create({
56926
57062
  * @param {string} id - Unique identifier of the field
56927
57063
  * @param {StructuredContentUpdate} options
56928
57064
  * @example
56929
- * editor.commands.updateStructuredContentById('123', { text: 'Jane Doe' });
57065
+ * editor.commands.updateStructuredContentById('123', { text: 'Jane Doe', keepTextNodeStyles: true });
56930
57066
  * editor.commands.updateStructuredContentById('123', {
56931
57067
  * json: { type: 'text', text: 'Jane Doe' },
56932
57068
  * });
@@ -56947,7 +57083,9 @@ const StructuredContentCommands = Extension.create({
56947
57083
  const posTo = pos + node.nodeSize;
56948
57084
  let content = null;
56949
57085
  if (options.text) {
56950
- content = schema.text(options.text);
57086
+ const firstTextNode = options.keepTextNodeStyles === true ? node.content.content.find((n) => n.type.name === "text") : null;
57087
+ const textMarks = firstTextNode ? firstTextNode.marks : [];
57088
+ content = schema.text(options.text, textMarks);
56951
57089
  }
56952
57090
  if (options.html) {
56953
57091
  const html = htmlHandler(options.html, editor);
@@ -56961,6 +57099,13 @@ const StructuredContentCommands = Extension.create({
56961
57099
  content = node.content;
56962
57100
  }
56963
57101
  const updatedNode = node.type.create({ ...node.attrs, ...options.attrs }, content, node.marks);
57102
+ try {
57103
+ const nodeForValidation = editor.validateJSON(updatedNode.toJSON());
57104
+ nodeForValidation.check();
57105
+ } catch (error) {
57106
+ console.error("Invalid content.", "Passed value:", content, "Error:", error);
57107
+ return false;
57108
+ }
56964
57109
  tr.replaceWith(posFrom, posTo, updatedNode);
56965
57110
  }
56966
57111
  return true;
@@ -57045,7 +57190,7 @@ const StructuredContentCommands = Extension.create({
57045
57190
  * @param {StructuredContentUpdate} options
57046
57191
  * @example
57047
57192
  * // Update all fields in the customer-info group
57048
- * editor.commands.updateStructuredContentByGroup('customer-info', { text: 'Jane Doe' });
57193
+ * editor.commands.updateStructuredContentByGroup('customer-info', { text: 'Jane Doe', keepTextNodeStyles: true });
57049
57194
  *
57050
57195
  * // Update block content in a group
57051
57196
  * editor.commands.updateStructuredContentByGroup('terms-section', {
@@ -57059,13 +57204,14 @@ const StructuredContentCommands = Extension.create({
57059
57204
  }
57060
57205
  const { schema } = editor;
57061
57206
  if (dispatch) {
57062
- structuredContentTags.forEach((structuredContent) => {
57207
+ const updates = [];
57208
+ for (const structuredContent of structuredContentTags) {
57063
57209
  const { pos, node } = structuredContent;
57064
- const posFrom = tr.mapping.map(pos);
57065
- const posTo = tr.mapping.map(pos + node.nodeSize);
57066
57210
  let content = null;
57067
57211
  if (options.text) {
57068
- content = schema.text(options.text);
57212
+ const firstTextNode = options.keepTextNodeStyles === true ? node.content.content.find((n) => n.type.name === "text") : null;
57213
+ const textMarks = firstTextNode ? firstTextNode.marks : [];
57214
+ content = schema.text(options.text, textMarks);
57069
57215
  }
57070
57216
  if (options.html) {
57071
57217
  const html = htmlHandler(options.html, editor);
@@ -57079,11 +57225,23 @@ const StructuredContentCommands = Extension.create({
57079
57225
  content = node.content;
57080
57226
  }
57081
57227
  const updatedNode = node.type.create({ ...node.attrs, ...options.attrs }, content, node.marks);
57228
+ try {
57229
+ const nodeForValidation = editor.validateJSON(updatedNode.toJSON());
57230
+ nodeForValidation.check();
57231
+ } catch (error) {
57232
+ console.error("Invalid content.", "Passed value:", content, "Error:", error);
57233
+ return false;
57234
+ }
57235
+ updates.push({ pos, node, updatedNode });
57236
+ }
57237
+ for (const { pos, node, updatedNode } of updates) {
57238
+ const posFrom = tr.mapping.map(pos);
57239
+ const posTo = tr.mapping.map(pos + node.nodeSize);
57082
57240
  const currentNode = tr.doc.nodeAt(posFrom);
57083
57241
  if (currentNode && node.eq(currentNode)) {
57084
57242
  tr.replaceWith(posFrom, posTo, updatedNode);
57085
57243
  }
57086
- });
57244
+ }
57087
57245
  }
57088
57246
  return true;
57089
57247
  },
@@ -61126,16 +61284,16 @@ function computeMap(table) {
61126
61284
  if (i == rowNode.childCount) break;
61127
61285
  const cellNode = rowNode.child(i);
61128
61286
  const { colspan, rowspan, colwidth } = cellNode.attrs;
61129
- for (let h2 = 0; h2 < rowspan; h2++) {
61130
- if (h2 + row >= height) {
61287
+ for (let h = 0; h < rowspan; h++) {
61288
+ if (h + row >= height) {
61131
61289
  (problems || (problems = [])).push({
61132
61290
  type: "overlong_rowspan",
61133
61291
  pos,
61134
- n: rowspan - h2
61292
+ n: rowspan - h
61135
61293
  });
61136
61294
  break;
61137
61295
  }
61138
- const start2 = mapPos + h2 * width;
61296
+ const start2 = mapPos + h * width;
61139
61297
  for (let w2 = 0; w2 < colspan; w2++) {
61140
61298
  if (map22[start2 + w2] == 0) map22[start2 + w2] = pos;
61141
61299
  else
@@ -64702,24 +64860,24 @@ function parseToRgba(color) {
64702
64860
  const reducedHexMatch = reducedHexRegex.exec(normalizedColor);
64703
64861
  if (reducedHexMatch) {
64704
64862
  const arr = Array.from(reducedHexMatch).slice(1);
64705
- return [...arr.slice(0, 3).map((x) => parseInt(r$1(x, 2), 16)), parseInt(r$1(arr[3] || "f", 2), 16) / 255];
64863
+ return [...arr.slice(0, 3).map((x2) => parseInt(r$1(x2, 2), 16)), parseInt(r$1(arr[3] || "f", 2), 16) / 255];
64706
64864
  }
64707
64865
  const hexMatch = hexRegex$1.exec(normalizedColor);
64708
64866
  if (hexMatch) {
64709
64867
  const arr = Array.from(hexMatch).slice(1);
64710
- return [...arr.slice(0, 3).map((x) => parseInt(x, 16)), parseInt(arr[3] || "ff", 16) / 255];
64868
+ return [...arr.slice(0, 3).map((x2) => parseInt(x2, 16)), parseInt(arr[3] || "ff", 16) / 255];
64711
64869
  }
64712
64870
  const rgbaMatch = rgbaRegex$1.exec(normalizedColor);
64713
64871
  if (rgbaMatch) {
64714
64872
  const arr = Array.from(rgbaMatch).slice(1);
64715
- return [...arr.slice(0, 3).map((x) => parseInt(x, 10)), parseFloat(arr[3] || "1")];
64873
+ return [...arr.slice(0, 3).map((x2) => parseInt(x2, 10)), parseFloat(arr[3] || "1")];
64716
64874
  }
64717
64875
  const hslaMatch = hslaRegex$1.exec(normalizedColor);
64718
64876
  if (hslaMatch) {
64719
- const [h2, s2, l3, a] = Array.from(hslaMatch).slice(1).map(parseFloat);
64877
+ const [h, s2, l3, a] = Array.from(hslaMatch).slice(1).map(parseFloat);
64720
64878
  if (guard(0, 100, s2) !== s2) throw new ColorError$1(color);
64721
64879
  if (guard(0, 100, l3) !== l3) throw new ColorError$1(color);
64722
- return [...hslToRgb(h2, s2, l3), Number.isNaN(a) ? 1 : a];
64880
+ return [...hslToRgb(h, s2, l3), Number.isNaN(a) ? 1 : a];
64723
64881
  }
64724
64882
  throw new ColorError$1(color);
64725
64883
  }
@@ -64731,7 +64889,7 @@ function hash$2(str) {
64731
64889
  }
64732
64890
  return (hash2 >>> 0) % 2341;
64733
64891
  }
64734
- const colorToInt = (x) => parseInt(x.replace(/_/g, ""), 36);
64892
+ const colorToInt = (x2) => parseInt(x2.replace(/_/g, ""), 36);
64735
64893
  const compressedColorMap = "1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((acc, next) => {
64736
64894
  const key2 = colorToInt(next.substring(0, 3));
64737
64895
  const hex2 = colorToInt(next.substring(3)).toString(16);
@@ -64795,9 +64953,9 @@ const hslToRgb = (hue, saturation, lightness) => {
64795
64953
  };
64796
64954
  function toHex(color) {
64797
64955
  const [r2, g, b2, a] = parseToRgba(color);
64798
- let hex2 = (x) => {
64799
- const h2 = guard(0, 255, x).toString(16);
64800
- return h2.length === 1 ? `0${h2}` : h2;
64956
+ let hex2 = (x2) => {
64957
+ const h = guard(0, 255, x2).toString(16);
64958
+ return h.length === 1 ? `0${h}` : h;
64801
64959
  };
64802
64960
  return `#${hex2(r2)}${hex2(g)}${hex2(b2)}${a < 1 ? hex2(Math.round(a * 255)) : ""}`;
64803
64961
  }
@@ -66655,14 +66813,14 @@ const getNormalizedImageAttrs = (attrs = {}) => {
66655
66813
  marginOffset: normalizeMarginOffset(attrs.marginOffset ?? {})
66656
66814
  };
66657
66815
  };
66658
- const getRotationMargins = (w2, h2, angleDegrees) => {
66816
+ const getRotationMargins = (w2, h, angleDegrees) => {
66659
66817
  const rad = angleDegrees * (Math.PI / 180);
66660
66818
  const cos = Math.abs(Math.cos(rad));
66661
66819
  const sin = Math.abs(Math.sin(rad));
66662
- const boundingWidth = w2 * cos + h2 * sin;
66663
- const boundingHeight = w2 * sin + h2 * cos;
66820
+ const boundingWidth = w2 * cos + h * sin;
66821
+ const boundingHeight = w2 * sin + h * cos;
66664
66822
  const marginLeftRight = Math.round(Math.max(0, (boundingWidth - w2) / 2));
66665
- const marginTopBottom = Math.round(Math.max(0, (boundingHeight - h2) / 2));
66823
+ const marginTopBottom = Math.round(Math.max(0, (boundingHeight - h) / 2));
66666
66824
  return {
66667
66825
  horizontal: marginLeftRight,
66668
66826
  vertical: marginTopBottom
@@ -66900,10 +67058,10 @@ const Image = Node$1.create({
66900
67058
  let minX = 0;
66901
67059
  let minY = 0;
66902
67060
  let maxY = 0;
66903
- attrs.polygon.forEach(([x, y2]) => {
66904
- if (floatRight && x < horizontalOffset) horizontalOffset = x;
66905
- if (x > maxX) maxX = x;
66906
- if (x < minX) minX = x;
67061
+ attrs.polygon.forEach(([x2, y2]) => {
67062
+ if (floatRight && x2 < horizontalOffset) horizontalOffset = x2;
67063
+ if (x2 > maxX) maxX = x2;
67064
+ if (x2 < minX) minX = x2;
66907
67065
  if (y2 > maxY) maxY = y2;
66908
67066
  if (y2 < minY) minY = y2;
66909
67067
  });
@@ -66912,7 +67070,7 @@ const Image = Node$1.create({
66912
67070
  const scaleWidth = Math.min(1, size2.width / originalWidth);
66913
67071
  const scaleHeight = Math.min(1, size2.height / originalHeight);
66914
67072
  const verticalOffset = Math.max(0, marginOffset.top);
66915
- const points = attrs.polygon.map(([x, y2]) => `${horizontalOffset + x * scaleWidth}px ${verticalOffset + y2 * scaleHeight}px`).join(", ");
67073
+ const points = attrs.polygon.map(([x2, y2]) => `${horizontalOffset + x2 * scaleWidth}px ${verticalOffset + y2 * scaleHeight}px`).join(", ");
66916
67074
  style2 += `shape-outside: polygon(${points});`;
66917
67075
  }
66918
67076
  break;
@@ -70566,13 +70724,13 @@ class ShapeGroupView {
70566
70724
  createShapeElement(shape) {
70567
70725
  const attrs = shape.attrs;
70568
70726
  if (!attrs) return null;
70569
- const x = attrs.x || 0;
70727
+ const x2 = attrs.x || 0;
70570
70728
  const y2 = attrs.y || 0;
70571
70729
  const width = attrs.width || 100;
70572
70730
  const height = attrs.height || 100;
70573
70731
  const g = document.createElementNS("http://www.w3.org/2000/svg", "g");
70574
70732
  const transforms = [];
70575
- transforms.push(`translate(${x}, ${y2})`);
70733
+ transforms.push(`translate(${x2}, ${y2})`);
70576
70734
  if (attrs.rotation !== 0) {
70577
70735
  transforms.push(`rotate(${attrs.rotation} ${width / 2} ${height / 2})`);
70578
70736
  }
@@ -72299,7 +72457,7 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
72299
72457
  }
72300
72458
  var _ref = isElement$2(element) ? getWindow$1(element) : window, visualViewport = _ref.visualViewport;
72301
72459
  var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
72302
- var x = (clientRect2.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
72460
+ var x2 = (clientRect2.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
72303
72461
  var y2 = (clientRect2.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
72304
72462
  var width = clientRect2.width / scaleX;
72305
72463
  var height = clientRect2.height / scaleY;
@@ -72307,10 +72465,10 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
72307
72465
  width,
72308
72466
  height,
72309
72467
  top: y2,
72310
- right: x + width,
72468
+ right: x2 + width,
72311
72469
  bottom: y2 + height,
72312
- left: x,
72313
- x,
72470
+ left: x2,
72471
+ x: x2,
72314
72472
  y: y2
72315
72473
  };
72316
72474
  }
@@ -72511,25 +72669,25 @@ var unsetSides = {
72511
72669
  left: "auto"
72512
72670
  };
72513
72671
  function roundOffsetsByDPR(_ref, win) {
72514
- var x = _ref.x, y2 = _ref.y;
72672
+ var x2 = _ref.x, y2 = _ref.y;
72515
72673
  var dpr = win.devicePixelRatio || 1;
72516
72674
  return {
72517
- x: round$1(x * dpr) / dpr || 0,
72675
+ x: round$1(x2 * dpr) / dpr || 0,
72518
72676
  y: round$1(y2 * dpr) / dpr || 0
72519
72677
  };
72520
72678
  }
72521
72679
  function mapToStyles(_ref2) {
72522
72680
  var _Object$assign2;
72523
72681
  var popper2 = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets, isFixed = _ref2.isFixed;
72524
- var _offsets$x = offsets.x, x = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y2 = _offsets$y === void 0 ? 0 : _offsets$y;
72682
+ var _offsets$x = offsets.x, x2 = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y2 = _offsets$y === void 0 ? 0 : _offsets$y;
72525
72683
  var _ref3 = typeof roundOffsets === "function" ? roundOffsets({
72526
- x,
72684
+ x: x2,
72527
72685
  y: y2
72528
72686
  }) : {
72529
- x,
72687
+ x: x2,
72530
72688
  y: y2
72531
72689
  };
72532
- x = _ref3.x;
72690
+ x2 = _ref3.x;
72533
72691
  y2 = _ref3.y;
72534
72692
  var hasX = offsets.hasOwnProperty("x");
72535
72693
  var hasY = offsets.hasOwnProperty("y");
@@ -72563,27 +72721,27 @@ function mapToStyles(_ref2) {
72563
72721
  // $FlowFixMe[prop-missing]
72564
72722
  offsetParent[widthProp]
72565
72723
  );
72566
- x -= offsetX - popperRect.width;
72567
- x *= gpuAcceleration ? 1 : -1;
72724
+ x2 -= offsetX - popperRect.width;
72725
+ x2 *= gpuAcceleration ? 1 : -1;
72568
72726
  }
72569
72727
  }
72570
72728
  var commonStyles = Object.assign({
72571
72729
  position
72572
72730
  }, adaptive && unsetSides);
72573
72731
  var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
72574
- x,
72732
+ x: x2,
72575
72733
  y: y2
72576
72734
  }, getWindow$1(popper2)) : {
72577
- x,
72735
+ x: x2,
72578
72736
  y: y2
72579
72737
  };
72580
- x = _ref4.x;
72738
+ x2 = _ref4.x;
72581
72739
  y2 = _ref4.y;
72582
72740
  if (gpuAcceleration) {
72583
72741
  var _Object$assign;
72584
- return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y2 + "px)" : "translate3d(" + x + "px, " + y2 + "px, 0)", _Object$assign));
72742
+ return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x2 + "px, " + y2 + "px)" : "translate3d(" + x2 + "px, " + y2 + "px, 0)", _Object$assign));
72585
72743
  }
72586
- return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ? x + "px" : "", _Object$assign2.transform = "", _Object$assign2));
72744
+ return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ? x2 + "px" : "", _Object$assign2.transform = "", _Object$assign2));
72587
72745
  }
72588
72746
  function computeStyles(_ref5) {
72589
72747
  var state2 = _ref5.state, options = _ref5.options;
@@ -72697,21 +72855,21 @@ function getViewportRect$1(element, strategy) {
72697
72855
  var visualViewport = win.visualViewport;
72698
72856
  var width = html.clientWidth;
72699
72857
  var height = html.clientHeight;
72700
- var x = 0;
72858
+ var x2 = 0;
72701
72859
  var y2 = 0;
72702
72860
  if (visualViewport) {
72703
72861
  width = visualViewport.width;
72704
72862
  height = visualViewport.height;
72705
72863
  var layoutViewport = isLayoutViewport();
72706
72864
  if (layoutViewport || !layoutViewport && strategy === "fixed") {
72707
- x = visualViewport.offsetLeft;
72865
+ x2 = visualViewport.offsetLeft;
72708
72866
  y2 = visualViewport.offsetTop;
72709
72867
  }
72710
72868
  }
72711
72869
  return {
72712
72870
  width,
72713
72871
  height,
72714
- x: x + getWindowScrollBarX$1(element),
72872
+ x: x2 + getWindowScrollBarX$1(element),
72715
72873
  y: y2
72716
72874
  };
72717
72875
  }
@@ -72722,15 +72880,15 @@ function getDocumentRect$1(element) {
72722
72880
  var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
72723
72881
  var width = max$1(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
72724
72882
  var height = max$1(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
72725
- var x = -winScroll.scrollLeft + getWindowScrollBarX$1(element);
72883
+ var x2 = -winScroll.scrollLeft + getWindowScrollBarX$1(element);
72726
72884
  var y2 = -winScroll.scrollTop;
72727
72885
  if (getComputedStyle$2(body || html).direction === "rtl") {
72728
- x += max$1(html.clientWidth, body ? body.clientWidth : 0) - width;
72886
+ x2 += max$1(html.clientWidth, body ? body.clientWidth : 0) - width;
72729
72887
  }
72730
72888
  return {
72731
72889
  width,
72732
72890
  height,
72733
- x,
72891
+ x: x2,
72734
72892
  y: y2
72735
72893
  };
72736
72894
  }
@@ -73107,9 +73265,9 @@ function offset(_ref2) {
73107
73265
  acc[placement] = distanceAndSkiddingToXY(placement, state2.rects, offset2);
73108
73266
  return acc;
73109
73267
  }, {});
73110
- var _data$state$placement = data[state2.placement], x = _data$state$placement.x, y2 = _data$state$placement.y;
73268
+ var _data$state$placement = data[state2.placement], x2 = _data$state$placement.x, y2 = _data$state$placement.y;
73111
73269
  if (state2.modifiersData.popperOffsets != null) {
73112
- state2.modifiersData.popperOffsets.x += x;
73270
+ state2.modifiersData.popperOffsets.x += x2;
73113
73271
  state2.modifiersData.popperOffsets.y += y2;
73114
73272
  }
73115
73273
  state2.modifiersData[name] = data;
@@ -75060,7 +75218,7 @@ function getPaddingObject(padding) {
75060
75218
  }
75061
75219
  function rectToClientRect(rect) {
75062
75220
  const {
75063
- x,
75221
+ x: x2,
75064
75222
  y: y2,
75065
75223
  width,
75066
75224
  height
@@ -75069,10 +75227,10 @@ function rectToClientRect(rect) {
75069
75227
  width,
75070
75228
  height,
75071
75229
  top: y2,
75072
- left: x,
75073
- right: x + width,
75230
+ left: x2,
75231
+ right: x2 + width,
75074
75232
  bottom: y2 + height,
75075
- x,
75233
+ x: x2,
75076
75234
  y: y2
75077
75235
  };
75078
75236
  }
@@ -75146,7 +75304,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
75146
75304
  strategy
75147
75305
  });
75148
75306
  let {
75149
- x,
75307
+ x: x2,
75150
75308
  y: y2
75151
75309
  } = computeCoordsFromPlacement(rects, placement, rtl);
75152
75310
  let statefulPlacement = placement;
@@ -75163,7 +75321,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
75163
75321
  data,
75164
75322
  reset
75165
75323
  } = await fn2({
75166
- x,
75324
+ x: x2,
75167
75325
  y: y2,
75168
75326
  initialPlacement: placement,
75169
75327
  placement: statefulPlacement,
@@ -75176,7 +75334,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
75176
75334
  floating
75177
75335
  }
75178
75336
  });
75179
- x = nextX != null ? nextX : x;
75337
+ x2 = nextX != null ? nextX : x2;
75180
75338
  y2 = nextY != null ? nextY : y2;
75181
75339
  middlewareData = {
75182
75340
  ...middlewareData,
@@ -75199,7 +75357,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
75199
75357
  }) : reset.rects;
75200
75358
  }
75201
75359
  ({
75202
- x,
75360
+ x: x2,
75203
75361
  y: y2
75204
75362
  } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
75205
75363
  }
@@ -75207,7 +75365,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
75207
75365
  }
75208
75366
  }
75209
75367
  return {
75210
- x,
75368
+ x: x2,
75211
75369
  y: y2,
75212
75370
  placement: statefulPlacement,
75213
75371
  strategy,
@@ -75220,7 +75378,7 @@ async function detectOverflow(state2, options) {
75220
75378
  options = {};
75221
75379
  }
75222
75380
  const {
75223
- x,
75381
+ x: x2,
75224
75382
  y: y2,
75225
75383
  platform: platform2,
75226
75384
  rects,
@@ -75244,7 +75402,7 @@ async function detectOverflow(state2, options) {
75244
75402
  strategy
75245
75403
  }));
75246
75404
  const rect = elementContext === "floating" ? {
75247
- x,
75405
+ x: x2,
75248
75406
  y: y2,
75249
75407
  width: rects.floating.width,
75250
75408
  height: rects.floating.height
@@ -75513,16 +75671,16 @@ function getScale(element) {
75513
75671
  height,
75514
75672
  $: $2
75515
75673
  } = getCssDimensions(domElement);
75516
- let x = ($2 ? round(rect.width) : rect.width) / width;
75674
+ let x2 = ($2 ? round(rect.width) : rect.width) / width;
75517
75675
  let y2 = ($2 ? round(rect.height) : rect.height) / height;
75518
- if (!x || !Number.isFinite(x)) {
75519
- x = 1;
75676
+ if (!x2 || !Number.isFinite(x2)) {
75677
+ x2 = 1;
75520
75678
  }
75521
75679
  if (!y2 || !Number.isFinite(y2)) {
75522
75680
  y2 = 1;
75523
75681
  }
75524
75682
  return {
75525
- x,
75683
+ x: x2,
75526
75684
  y: y2
75527
75685
  };
75528
75686
  }
@@ -75566,7 +75724,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
75566
75724
  }
75567
75725
  }
75568
75726
  const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
75569
- let x = (clientRect2.left + visualOffsets.x) / scale.x;
75727
+ let x2 = (clientRect2.left + visualOffsets.x) / scale.x;
75570
75728
  let y2 = (clientRect2.top + visualOffsets.y) / scale.y;
75571
75729
  let width = clientRect2.width / scale.x;
75572
75730
  let height = clientRect2.height / scale.y;
@@ -75581,11 +75739,11 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
75581
75739
  const css = getComputedStyle$1(currentIFrame);
75582
75740
  const left2 = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
75583
75741
  const top2 = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
75584
- x *= iframeScale.x;
75742
+ x2 *= iframeScale.x;
75585
75743
  y2 *= iframeScale.y;
75586
75744
  width *= iframeScale.x;
75587
75745
  height *= iframeScale.y;
75588
- x += left2;
75746
+ x2 += left2;
75589
75747
  y2 += top2;
75590
75748
  currentWin = getWindow(currentIFrame);
75591
75749
  currentIFrame = getFrameElement(currentWin);
@@ -75594,7 +75752,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
75594
75752
  return rectToClientRect({
75595
75753
  width,
75596
75754
  height,
75597
- x,
75755
+ x: x2,
75598
75756
  y: y2
75599
75757
  });
75600
75758
  }
@@ -75607,10 +75765,10 @@ function getWindowScrollBarX(element, rect) {
75607
75765
  }
75608
75766
  function getHTMLOffset(documentElement, scroll) {
75609
75767
  const htmlRect = documentElement.getBoundingClientRect();
75610
- const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
75768
+ const x2 = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
75611
75769
  const y2 = htmlRect.top + scroll.scrollTop;
75612
75770
  return {
75613
- x,
75771
+ x: x2,
75614
75772
  y: y2
75615
75773
  };
75616
75774
  }
@@ -75662,15 +75820,15 @@ function getDocumentRect(element) {
75662
75820
  const body = element.ownerDocument.body;
75663
75821
  const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
75664
75822
  const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
75665
- let x = -scroll.scrollLeft + getWindowScrollBarX(element);
75823
+ let x2 = -scroll.scrollLeft + getWindowScrollBarX(element);
75666
75824
  const y2 = -scroll.scrollTop;
75667
75825
  if (getComputedStyle$1(body).direction === "rtl") {
75668
- x += max(html.clientWidth, body.clientWidth) - width;
75826
+ x2 += max(html.clientWidth, body.clientWidth) - width;
75669
75827
  }
75670
75828
  return {
75671
75829
  width,
75672
75830
  height,
75673
- x,
75831
+ x: x2,
75674
75832
  y: y2
75675
75833
  };
75676
75834
  }
@@ -75681,14 +75839,14 @@ function getViewportRect(element, strategy) {
75681
75839
  const visualViewport = win.visualViewport;
75682
75840
  let width = html.clientWidth;
75683
75841
  let height = html.clientHeight;
75684
- let x = 0;
75842
+ let x2 = 0;
75685
75843
  let y2 = 0;
75686
75844
  if (visualViewport) {
75687
75845
  width = visualViewport.width;
75688
75846
  height = visualViewport.height;
75689
75847
  const visualViewportBased = isWebKit();
75690
75848
  if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
75691
- x = visualViewport.offsetLeft;
75849
+ x2 = visualViewport.offsetLeft;
75692
75850
  y2 = visualViewport.offsetTop;
75693
75851
  }
75694
75852
  }
@@ -75708,7 +75866,7 @@ function getViewportRect(element, strategy) {
75708
75866
  return {
75709
75867
  width,
75710
75868
  height,
75711
- x,
75869
+ x: x2,
75712
75870
  y: y2
75713
75871
  };
75714
75872
  }
@@ -75720,12 +75878,12 @@ function getInnerBoundingClientRect(element, strategy) {
75720
75878
  const scale = isHTMLElement$2(element) ? getScale(element) : createCoords(1);
75721
75879
  const width = element.clientWidth * scale.x;
75722
75880
  const height = element.clientHeight * scale.y;
75723
- const x = left2 * scale.x;
75881
+ const x2 = left2 * scale.x;
75724
75882
  const y2 = top2 * scale.y;
75725
75883
  return {
75726
75884
  width,
75727
75885
  height,
75728
- x,
75886
+ x: x2,
75729
75887
  y: y2
75730
75888
  };
75731
75889
  }
@@ -75845,10 +76003,10 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
75845
76003
  setLeftRTLScrollbarOffset();
75846
76004
  }
75847
76005
  const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
75848
- const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
76006
+ const x2 = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
75849
76007
  const y2 = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
75850
76008
  return {
75851
- x,
76009
+ x: x2,
75852
76010
  y: y2,
75853
76011
  width: rect.width,
75854
76012
  height: rect.height
@@ -76727,22 +76885,22 @@ function createFloatingSeparator(separator, editor) {
76727
76885
  const rect = elements.reference.getBoundingClientRect();
76728
76886
  const containerRect = editorElement.getBoundingClientRect();
76729
76887
  const scaleFactor = getScaleFactor(editorElement);
76730
- const x = Math.round((rect.left - containerRect.left) / scaleFactor);
76888
+ const x2 = Math.round((rect.left - containerRect.left) / scaleFactor);
76731
76889
  const y2 = Math.round((rect.top - containerRect.top) / scaleFactor);
76732
76890
  const width = Math.round(rect.width / scaleFactor);
76733
76891
  const height = Math.round(rect.height / scaleFactor);
76734
76892
  return {
76735
- x,
76893
+ x: x2,
76736
76894
  y: y2,
76737
76895
  data: { width, height }
76738
76896
  };
76739
76897
  }
76740
76898
  }
76741
76899
  ]
76742
- }).then(({ x, y: y2, middlewareData }) => {
76900
+ }).then(({ x: x2, y: y2, middlewareData }) => {
76743
76901
  Object.assign(floatingSeparator.style, {
76744
76902
  top: `${y2}px`,
76745
- left: `${x}px`,
76903
+ left: `${x2}px`,
76746
76904
  width: `${middlewareData.copy.width}px`,
76747
76905
  height: `${middlewareData.copy.height}px`,
76748
76906
  visibility: middlewareData.hide?.referenceHidden ? "hidden" : "visible"
@@ -79801,14 +79959,14 @@ function ensureViewBoundingRect() {
79801
79959
  }
79802
79960
  return viewMeasurer.getBoundingClientRect();
79803
79961
  }
79804
- function getPointRect(x, y2) {
79962
+ function getPointRect(x2, y2) {
79805
79963
  const viewRect = ensureViewBoundingRect();
79806
79964
  return {
79807
79965
  top: y2,
79808
- left: x,
79966
+ left: x2,
79809
79967
  height: 0,
79810
79968
  width: 0,
79811
- right: viewRect.width - x,
79969
+ right: viewRect.width - x2,
79812
79970
  bottom: viewRect.height - y2
79813
79971
  };
79814
79972
  }
@@ -80646,8 +80804,8 @@ const VFollower = vue.defineComponent({
80646
80804
  if (follower === null)
80647
80805
  return;
80648
80806
  const target = VBinder.targetRef;
80649
- const { x, y: y2, overlap } = props;
80650
- const targetRect = x !== void 0 && y2 !== void 0 ? getPointRect(x, y2) : getRect(target);
80807
+ const { x: x2, y: y2, overlap } = props;
80808
+ const targetRect = x2 !== void 0 && y2 !== void 0 ? getPointRect(x2, y2) : getRect(target);
80651
80809
  follower.style.setProperty("--v-target-width", `${Math.round(targetRect.width)}px`);
80652
80810
  follower.style.setProperty("--v-target-height", `${Math.round(targetRect.height)}px`);
80653
80811
  const { width, minWidth, placement, internalShift, flip: flip2 } = props;
@@ -80817,8 +80975,8 @@ var ResizeObserverSize = /* @__PURE__ */ (function() {
80817
80975
  return ResizeObserverSize2;
80818
80976
  })();
80819
80977
  var DOMRectReadOnly = (function() {
80820
- function DOMRectReadOnly2(x, y2, width, height) {
80821
- this.x = x;
80978
+ function DOMRectReadOnly2(x2, y2, width, height) {
80979
+ this.x = x2;
80822
80980
  this.y = y2;
80823
80981
  this.width = width;
80824
80982
  this.height = height;
@@ -80829,8 +80987,8 @@ var DOMRectReadOnly = (function() {
80829
80987
  return freeze(this);
80830
80988
  }
80831
80989
  DOMRectReadOnly2.prototype.toJSON = function() {
80832
- var _a2 = this, x = _a2.x, y2 = _a2.y, top2 = _a2.top, right2 = _a2.right, bottom2 = _a2.bottom, left2 = _a2.left, width = _a2.width, height = _a2.height;
80833
- return { x, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
80990
+ var _a2 = this, x2 = _a2.x, y2 = _a2.y, top2 = _a2.top, right2 = _a2.right, bottom2 = _a2.bottom, left2 = _a2.left, width = _a2.width, height = _a2.height;
80991
+ return { x: x2, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
80834
80992
  };
80835
80993
  DOMRectReadOnly2.fromRect = function(rectangle) {
80836
80994
  return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);