@harbour-enterprises/superdoc 0.10.51 → 0.10.53

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 (27) hide show
  1. package/dist/chunks/{super-editor.es-B-eM0VQ9.es.js → super-editor.es-D8i8HaSd.es.js} +15 -7
  2. package/dist/chunks/{super-editor.es-DieS3opU.cjs → super-editor.es-sAfJIZkX.cjs} +38 -38
  3. package/dist/core/SuperDoc.d.ts.map +1 -1
  4. package/dist/style.css +29 -29
  5. package/dist/super-editor/ai-writer.es.js +21 -15
  6. package/dist/super-editor/chunks/{converter-BNiMKJNK.js → converter-BYBZ1O4h.js} +2 -2
  7. package/dist/super-editor/chunks/{docx-zipper-BgocE4ya.js → docx-zipper-CM4pITBO.js} +1 -1
  8. package/dist/super-editor/chunks/{editor-DDmn_vlU.js → editor-BOY7rOTL.js} +3 -3
  9. package/dist/super-editor/chunks/{toolbar-DBo8vVyt.js → toolbar-BpDnHGzG.js} +2 -2
  10. package/dist/super-editor/components/toolbar/ai-helpers.d.ts.map +1 -1
  11. package/dist/super-editor/components/toolbar/defaultItems.d.ts.map +1 -1
  12. package/dist/super-editor/components/toolbar/super-toolbar.d.ts +1 -0
  13. package/dist/super-editor/components/toolbar/super-toolbar.d.ts.map +1 -1
  14. package/dist/super-editor/converter.es.js +1 -1
  15. package/dist/super-editor/docx-zipper.es.js +2 -2
  16. package/dist/super-editor/editor.es.js +3 -3
  17. package/dist/super-editor/file-zipper.es.js +1 -1
  18. package/dist/super-editor/style.css +1 -1
  19. package/dist/super-editor/super-editor.es.js +9 -7
  20. package/dist/super-editor/toolbar.es.js +2 -2
  21. package/dist/super-editor.cjs +1 -1
  22. package/dist/super-editor.es.js +1 -1
  23. package/dist/superdoc.cjs +2 -2
  24. package/dist/superdoc.es.js +100 -98
  25. package/dist/superdoc.umd.js +461 -451
  26. package/dist/superdoc.umd.js.map +1 -1
  27. package/package.json +1 -1
@@ -8160,13 +8160,13 @@
8160
8160
  }, l.prototype.writeFloatBE = function(c3, d, S3) {
8161
8161
  return N3(this, c3, d, false, S3);
8162
8162
  };
8163
- function C(y, c3, d, S3, O) {
8163
+ function C3(y, c3, d, S3, O) {
8164
8164
  return c3 = +c3, d = d >>> 0, O || m(y, c3, d, 8), t.write(y, c3, d, S3, 52, 8), d + 8;
8165
8165
  }
8166
8166
  l.prototype.writeDoubleLE = function(c3, d, S3) {
8167
- return C(this, c3, d, true, S3);
8167
+ return C3(this, c3, d, true, S3);
8168
8168
  }, l.prototype.writeDoubleBE = function(c3, d, S3) {
8169
- return C(this, c3, d, false, S3);
8169
+ return C3(this, c3, d, false, S3);
8170
8170
  }, l.prototype.copy = function(c3, d, S3, O) {
8171
8171
  if (!l.isBuffer(c3)) throw new TypeError("argument should be a Buffer");
8172
8172
  if (S3 || (S3 = 0), !O && O !== 0 && (O = this.length), d >= c3.length && (d = c3.length), d || (d = 0), O > 0 && O < S3 && (O = S3), O === S3 || c3.length === 0 || this.length === 0) return 0;
@@ -9163,22 +9163,22 @@
9163
9163
  var Y3 = q3(q3(N3));
9164
9164
  de2["%Error.prototype%"] = Y3;
9165
9165
  }
9166
- var ie2 = function N3(C) {
9166
+ var ie2 = function N3(C3) {
9167
9167
  var b;
9168
- if (C === "%AsyncFunction%")
9168
+ if (C3 === "%AsyncFunction%")
9169
9169
  b = w("async function () {}");
9170
- else if (C === "%GeneratorFunction%")
9170
+ else if (C3 === "%GeneratorFunction%")
9171
9171
  b = w("function* () {}");
9172
- else if (C === "%AsyncGeneratorFunction%")
9172
+ else if (C3 === "%AsyncGeneratorFunction%")
9173
9173
  b = w("async function* () {}");
9174
- else if (C === "%AsyncGenerator%") {
9174
+ else if (C3 === "%AsyncGenerator%") {
9175
9175
  var x = N3("%AsyncGeneratorFunction%");
9176
9176
  x && (b = x.prototype);
9177
- } else if (C === "%AsyncIteratorPrototype%") {
9177
+ } else if (C3 === "%AsyncIteratorPrototype%") {
9178
9178
  var _3 = N3("%AsyncGenerator%");
9179
9179
  _3 && q3 && (b = q3(_3.prototype));
9180
9180
  }
9181
- return de2[C] = b, b;
9181
+ return de2[C3] = b, b;
9182
9182
  }, Z3 = {
9183
9183
  __proto__: null,
9184
9184
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
@@ -9232,38 +9232,38 @@
9232
9232
  "%URIErrorPrototype%": ["URIError", "prototype"],
9233
9233
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
9234
9234
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
9235
- }, fe2 = Kt$2(), $3 = Qo$2(), ne2 = fe2.call(oe2, Array.prototype.concat), se2 = fe2.call(J3, Array.prototype.splice), L3 = fe2.call(oe2, String.prototype.replace), j = fe2.call(oe2, String.prototype.slice), V = fe2.call(oe2, RegExp.prototype.exec), K3 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, P = /\\(\\)?/g, p3 = function(C) {
9236
- var b = j(C, 0, 1), x = j(C, -1);
9235
+ }, fe2 = Kt$2(), $3 = Qo$2(), ne2 = fe2.call(oe2, Array.prototype.concat), se2 = fe2.call(J3, Array.prototype.splice), L3 = fe2.call(oe2, String.prototype.replace), j = fe2.call(oe2, String.prototype.slice), V = fe2.call(oe2, RegExp.prototype.exec), K3 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, P = /\\(\\)?/g, p3 = function(C3) {
9236
+ var b = j(C3, 0, 1), x = j(C3, -1);
9237
9237
  if (b === "%" && x !== "%")
9238
9238
  throw new o("invalid intrinsic syntax, expected closing `%`");
9239
9239
  if (x === "%" && b !== "%")
9240
9240
  throw new o("invalid intrinsic syntax, expected opening `%`");
9241
9241
  var _3 = [];
9242
- return L3(C, K3, function(W3, te2, X3, re2) {
9242
+ return L3(C3, K3, function(W3, te2, X3, re2) {
9243
9243
  _3[_3.length] = X3 ? L3(re2, P, "$1") : te2 || W3;
9244
9244
  }), _3;
9245
- }, m = function(C, b) {
9246
- var x = C, _3;
9245
+ }, m = function(C3, b) {
9246
+ var x = C3, _3;
9247
9247
  if ($3(Z3, x) && (_3 = Z3[x], x = "%" + _3[0] + "%"), $3(de2, x)) {
9248
9248
  var W3 = de2[x];
9249
9249
  if (W3 === Q3 && (W3 = ie2(x)), typeof W3 > "u" && !b)
9250
- throw new a("intrinsic " + C + " exists, but is not available. Please file an issue!");
9250
+ throw new a("intrinsic " + C3 + " exists, but is not available. Please file an issue!");
9251
9251
  return {
9252
9252
  alias: _3,
9253
9253
  name: x,
9254
9254
  value: W3
9255
9255
  };
9256
9256
  }
9257
- throw new o("intrinsic " + C + " does not exist!");
9257
+ throw new o("intrinsic " + C3 + " does not exist!");
9258
9258
  };
9259
- return yn$3 = function(C, b) {
9260
- if (typeof C != "string" || C.length === 0)
9259
+ return yn$3 = function(C3, b) {
9260
+ if (typeof C3 != "string" || C3.length === 0)
9261
9261
  throw new a("intrinsic name must be a non-empty string");
9262
9262
  if (arguments.length > 1 && typeof b != "boolean")
9263
9263
  throw new a('"allowMissing" argument must be a boolean');
9264
- if (V(/^%?[^%]*%?$/, C) === null)
9264
+ if (V(/^%?[^%]*%?$/, C3) === null)
9265
9265
  throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
9266
- var x = p3(C), _3 = x.length > 0 ? x[0] : "", W3 = m("%" + _3 + "%", b), te2 = W3.name, X3 = W3.value, re2 = false, ue = W3.alias;
9266
+ var x = p3(C3), _3 = x.length > 0 ? x[0] : "", W3 = m("%" + _3 + "%", b), te2 = W3.name, X3 = W3.value, re2 = false, ue = W3.alias;
9267
9267
  ue && (_3 = ue[0], se2(x, ne2([0, 1], ue)));
9268
9268
  for (var z = 1, Se2 = true; z < x.length; z += 1) {
9269
9269
  var Be2 = x[z], Ve2 = j(Be2, 0, 1), Ge2 = j(Be2, -1);
@@ -9274,7 +9274,7 @@
9274
9274
  else if (X3 != null) {
9275
9275
  if (!(Be2 in X3)) {
9276
9276
  if (!b)
9277
- throw new a("base intrinsic for " + C + " exists, but the property is not available.");
9277
+ throw new a("base intrinsic for " + C3 + " exists, but the property is not available.");
9278
9278
  return;
9279
9279
  }
9280
9280
  if (F3 && z + 1 >= x.length) {
@@ -9854,10 +9854,10 @@
9854
9854
  return u(z) === "[object Set Iterator]";
9855
9855
  }
9856
9856
  r22.isSetIterator = N3;
9857
- function C(z) {
9857
+ function C3(z) {
9858
9858
  return u(z) === "[object Generator]";
9859
9859
  }
9860
- r22.isGeneratorObject = C;
9860
+ r22.isGeneratorObject = C3;
9861
9861
  function b(z) {
9862
9862
  return u(z) === "[object WebAssembly.Module]";
9863
9863
  }
@@ -10045,20 +10045,20 @@
10045
10045
  if (oe2(j))
10046
10046
  return g(j);
10047
10047
  }
10048
- var C = "", b = false, x = ["{", "}"];
10048
+ var C3 = "", b = false, x = ["{", "}"];
10049
10049
  if (B(j) && (b = true, x = ["[", "]"]), Q3(j)) {
10050
10050
  var _3 = j.name ? ": " + j.name : "";
10051
- C = " [Function" + _3 + "]";
10051
+ C3 = " [Function" + _3 + "]";
10052
10052
  }
10053
- if (H3(j) && (C = " " + RegExp.prototype.toString.call(j)), J3(j) && (C = " " + Date.prototype.toUTCString.call(j)), oe2(j) && (C = " " + g(j)), p3.length === 0 && (!b || j.length == 0))
10054
- return x[0] + C + x[1];
10053
+ if (H3(j) && (C3 = " " + RegExp.prototype.toString.call(j)), J3(j) && (C3 = " " + Date.prototype.toUTCString.call(j)), oe2(j) && (C3 = " " + g(j)), p3.length === 0 && (!b || j.length == 0))
10054
+ return x[0] + C3 + x[1];
10055
10055
  if (V < 0)
10056
10056
  return H3(j) ? L3.stylize(RegExp.prototype.toString.call(j), "regexp") : L3.stylize("[Object]", "special");
10057
10057
  L3.seen.push(j);
10058
10058
  var W3;
10059
10059
  return b ? W3 = A(L3, j, V, m, p3) : W3 = p3.map(function(te2) {
10060
10060
  return D3(L3, j, V, m, te2, b);
10061
- }), L3.seen.pop(), v(W3, C, x);
10061
+ }), L3.seen.pop(), v(W3, C3, x);
10062
10062
  }
10063
10063
  function h3(L3, j) {
10064
10064
  if (q3(j))
@@ -10087,20 +10087,20 @@
10087
10087
  String(m),
10088
10088
  true
10089
10089
  )) : p3.push("");
10090
- return P.forEach(function(C) {
10091
- C.match(/^\d+$/) || p3.push(D3(
10090
+ return P.forEach(function(C3) {
10091
+ C3.match(/^\d+$/) || p3.push(D3(
10092
10092
  L3,
10093
10093
  j,
10094
10094
  V,
10095
10095
  K3,
10096
- C,
10096
+ C3,
10097
10097
  true
10098
10098
  ));
10099
10099
  }), p3;
10100
10100
  }
10101
10101
  function D3(L3, j, V, K3, P, p3) {
10102
- var m, N3, C;
10103
- if (C = Object.getOwnPropertyDescriptor(j, P) || { value: j[P] }, C.get ? C.set ? N3 = L3.stylize("[Getter/Setter]", "special") : N3 = L3.stylize("[Getter]", "special") : C.set && (N3 = L3.stylize("[Setter]", "special")), fe2(K3, P) || (m = "[" + P + "]"), N3 || (L3.seen.indexOf(C.value) < 0 ? (F3(V) ? N3 = l(L3, C.value, null) : N3 = l(L3, C.value, V - 1), N3.indexOf(`
10102
+ var m, N3, C3;
10103
+ if (C3 = Object.getOwnPropertyDescriptor(j, P) || { value: j[P] }, C3.get ? C3.set ? N3 = L3.stylize("[Getter/Setter]", "special") : N3 = L3.stylize("[Getter]", "special") : C3.set && (N3 = L3.stylize("[Setter]", "special")), fe2(K3, P) || (m = "[" + P + "]"), N3 || (L3.seen.indexOf(C3.value) < 0 ? (F3(V) ? N3 = l(L3, C3.value, null) : N3 = l(L3, C3.value, V - 1), N3.indexOf(`
10104
10104
  `) > -1 && (p3 ? N3 = N3.split(`
10105
10105
  `).map(function(b) {
10106
10106
  return " " + b;
@@ -10239,17 +10239,17 @@
10239
10239
  }), V;
10240
10240
  }
10241
10241
  function V() {
10242
- for (var K3, P, p3 = new Promise(function(C, b) {
10243
- K3 = C, P = b;
10242
+ for (var K3, P, p3 = new Promise(function(C3, b) {
10243
+ K3 = C3, P = b;
10244
10244
  }), m = [], N3 = 0; N3 < arguments.length; N3++)
10245
10245
  m.push(arguments[N3]);
10246
- m.push(function(C, b) {
10247
- C ? P(C) : K3(b);
10246
+ m.push(function(C3, b) {
10247
+ C3 ? P(C3) : K3(b);
10248
10248
  });
10249
10249
  try {
10250
10250
  j.apply(this, m);
10251
- } catch (C) {
10252
- P(C);
10251
+ } catch (C3) {
10252
+ P(C3);
10253
10253
  }
10254
10254
  return p3;
10255
10255
  }
@@ -10638,8 +10638,8 @@
10638
10638
  function R(P, p3, m) {
10639
10639
  e = e || Tt$2(), P = P || {}, typeof m != "boolean" && (m = p3 instanceof e), this.objectMode = !!P.objectMode, m && (this.objectMode = this.objectMode || !!P.writableObjectMode), this.highWaterMark = l(this, P, "writableHighWaterMark", m), this.finalCalled = false, this.needDrain = false, this.ending = false, this.ended = false, this.finished = false, this.destroyed = false;
10640
10640
  var N3 = P.decodeStrings === false;
10641
- this.decodeStrings = !N3, this.defaultEncoding = P.defaultEncoding || "utf8", this.length = 0, this.writing = false, this.corked = 0, this.sync = true, this.bufferProcessing = false, this.onwrite = function(C) {
10642
- ie2(p3, C);
10641
+ this.decodeStrings = !N3, this.defaultEncoding = P.defaultEncoding || "utf8", this.length = 0, this.writing = false, this.corked = 0, this.sync = true, this.bufferProcessing = false, this.onwrite = function(C3) {
10642
+ ie2(p3, C3);
10643
10643
  }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = false, this.errorEmitted = false, this.emitClose = P.emitClose !== false, this.autoDestroy = !!P.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new r22(this);
10644
10644
  }
10645
10645
  R.prototype.getBuffer = function() {
@@ -10678,12 +10678,12 @@
10678
10678
  T3(P, m), ge$1.nextTick(p3, m);
10679
10679
  }
10680
10680
  function J3(P, p3, m, N3) {
10681
- var C;
10682
- return m === null ? C = new w() : typeof m != "string" && !p3.objectMode && (C = new g("chunk", ["string", "Buffer"], m)), C ? (T3(P, C), ge$1.nextTick(N3, C), false) : true;
10681
+ var C3;
10682
+ return m === null ? C3 = new w() : typeof m != "string" && !p3.objectMode && (C3 = new g("chunk", ["string", "Buffer"], m)), C3 ? (T3(P, C3), ge$1.nextTick(N3, C3), false) : true;
10683
10683
  }
10684
10684
  H3.prototype.write = function(P, p3, m) {
10685
- var N3 = this._writableState, C = false, b = !N3.objectMode && a(P);
10686
- return b && !i3.isBuffer(P) && (P = o(P)), typeof p3 == "function" && (m = p3, p3 = null), b ? p3 = "buffer" : p3 || (p3 = N3.defaultEncoding), typeof m != "function" && (m = k), N3.ending ? E3(this, m) : (b || J3(this, N3, P, m)) && (N3.pendingcb++, C = Q3(this, N3, b, P, p3, m)), C;
10685
+ var N3 = this._writableState, C3 = false, b = !N3.objectMode && a(P);
10686
+ return b && !i3.isBuffer(P) && (P = o(P)), typeof p3 == "function" && (m = p3, p3 = null), b ? p3 = "buffer" : p3 || (p3 = N3.defaultEncoding), typeof m != "function" && (m = k), N3.ending ? E3(this, m) : (b || J3(this, N3, P, m)) && (N3.pendingcb++, C3 = Q3(this, N3, b, P, p3, m)), C3;
10687
10687
  }, H3.prototype.cork = function() {
10688
10688
  this._writableState.corked++;
10689
10689
  }, H3.prototype.uncork = function() {
@@ -10713,10 +10713,10 @@
10713
10713
  return this._writableState.highWaterMark;
10714
10714
  }
10715
10715
  });
10716
- function Q3(P, p3, m, N3, C, b) {
10716
+ function Q3(P, p3, m, N3, C3, b) {
10717
10717
  if (!m) {
10718
- var x = oe2(p3, N3, C);
10719
- N3 !== x && (m = true, C = "buffer", N3 = x);
10718
+ var x = oe2(p3, N3, C3);
10719
+ N3 !== x && (m = true, C3 = "buffer", N3 = x);
10720
10720
  }
10721
10721
  var _3 = p3.objectMode ? 1 : N3.length;
10722
10722
  p3.length += _3;
@@ -10725,31 +10725,31 @@
10725
10725
  var te2 = p3.lastBufferedRequest;
10726
10726
  p3.lastBufferedRequest = {
10727
10727
  chunk: N3,
10728
- encoding: C,
10728
+ encoding: C3,
10729
10729
  isBuf: m,
10730
10730
  callback: b,
10731
10731
  next: null
10732
10732
  }, te2 ? te2.next = p3.lastBufferedRequest : p3.bufferedRequest = p3.lastBufferedRequest, p3.bufferedRequestCount += 1;
10733
10733
  } else
10734
- ce2(P, p3, false, _3, N3, C, b);
10734
+ ce2(P, p3, false, _3, N3, C3, b);
10735
10735
  return W3;
10736
10736
  }
10737
- function ce2(P, p3, m, N3, C, b, x) {
10738
- p3.writelen = N3, p3.writecb = x, p3.writing = true, p3.sync = true, p3.destroyed ? p3.onwrite(new B("write")) : m ? P._writev(C, p3.onwrite) : P._write(C, b, p3.onwrite), p3.sync = false;
10737
+ function ce2(P, p3, m, N3, C3, b, x) {
10738
+ p3.writelen = N3, p3.writecb = x, p3.writing = true, p3.sync = true, p3.destroyed ? p3.onwrite(new B("write")) : m ? P._writev(C3, p3.onwrite) : P._write(C3, b, p3.onwrite), p3.sync = false;
10739
10739
  }
10740
- function de2(P, p3, m, N3, C) {
10741
- --p3.pendingcb, m ? (ge$1.nextTick(C, N3), ge$1.nextTick(j, P, p3), P._writableState.errorEmitted = true, T3(P, N3)) : (C(N3), P._writableState.errorEmitted = true, T3(P, N3), j(P, p3));
10740
+ function de2(P, p3, m, N3, C3) {
10741
+ --p3.pendingcb, m ? (ge$1.nextTick(C3, N3), ge$1.nextTick(j, P, p3), P._writableState.errorEmitted = true, T3(P, N3)) : (C3(N3), P._writableState.errorEmitted = true, T3(P, N3), j(P, p3));
10742
10742
  }
10743
10743
  function Y3(P) {
10744
10744
  P.writing = false, P.writecb = null, P.length -= P.writelen, P.writelen = 0;
10745
10745
  }
10746
10746
  function ie2(P, p3) {
10747
- var m = P._writableState, N3 = m.sync, C = m.writecb;
10748
- if (typeof C != "function") throw new D3();
10749
- if (Y3(m), p3) de2(P, m, N3, p3, C);
10747
+ var m = P._writableState, N3 = m.sync, C3 = m.writecb;
10748
+ if (typeof C3 != "function") throw new D3();
10749
+ if (Y3(m), p3) de2(P, m, N3, p3, C3);
10750
10750
  else {
10751
10751
  var b = ne2(m) || P.destroyed;
10752
- !b && !m.corked && !m.bufferProcessing && m.bufferedRequest && $3(P, m), N3 ? ge$1.nextTick(Z3, P, m, b, C) : Z3(P, m, b, C);
10752
+ !b && !m.corked && !m.bufferProcessing && m.bufferedRequest && $3(P, m), N3 ? ge$1.nextTick(Z3, P, m, b, C3) : Z3(P, m, b, C3);
10753
10753
  }
10754
10754
  }
10755
10755
  function Z3(P, p3, m, N3) {
@@ -10762,11 +10762,11 @@
10762
10762
  p3.bufferProcessing = true;
10763
10763
  var m = p3.bufferedRequest;
10764
10764
  if (P._writev && m && m.next) {
10765
- var N3 = p3.bufferedRequestCount, C = new Array(N3), b = p3.corkedRequestsFree;
10765
+ var N3 = p3.bufferedRequestCount, C3 = new Array(N3), b = p3.corkedRequestsFree;
10766
10766
  b.entry = m;
10767
10767
  for (var x = 0, _3 = true; m; )
10768
- C[x] = m, m.isBuf || (_3 = false), m = m.next, x += 1;
10769
- C.allBuffers = _3, ce2(P, p3, true, p3.length, C, "", b.finish), p3.pendingcb++, p3.lastBufferedRequest = null, b.next ? (p3.corkedRequestsFree = b.next, b.next = null) : p3.corkedRequestsFree = new r22(p3), p3.bufferedRequestCount = 0;
10768
+ C3[x] = m, m.isBuf || (_3 = false), m = m.next, x += 1;
10769
+ C3.allBuffers = _3, ce2(P, p3, true, p3.length, C3, "", b.finish), p3.pendingcb++, p3.lastBufferedRequest = null, b.next ? (p3.corkedRequestsFree = b.next, b.next = null) : p3.corkedRequestsFree = new r22(p3), p3.bufferedRequestCount = 0;
10770
10770
  } else {
10771
10771
  for (; m; ) {
10772
10772
  var W3 = m.chunk, te2 = m.encoding, X3 = m.callback, re2 = p3.objectMode ? 1 : W3.length;
@@ -10816,8 +10816,8 @@
10816
10816
  function K3(P, p3, m) {
10817
10817
  var N3 = P.entry;
10818
10818
  for (P.entry = null; N3; ) {
10819
- var C = N3.callback;
10820
- p3.pendingcb--, C(m), N3 = N3.next;
10819
+ var C3 = N3.callback;
10820
+ p3.pendingcb--, C3(m), N3 = N3.next;
10821
10821
  }
10822
10822
  p3.corkedRequestsFree.next = P;
10823
10823
  }
@@ -11443,7 +11443,7 @@
11443
11443
  function Ve2(lt2) {
11444
11444
  u("ondata");
11445
11445
  var Le2 = b.write(lt2);
11446
- u("dest.write", Le2), Le2 === false && ((W3.pipesCount === 1 && W3.pipes === b || W3.pipesCount > 1 && C(W3.pipes, b) !== -1) && !Se2 && (u("false write response, pause", W3.awaitDrain), W3.awaitDrain++), _3.pause());
11446
+ u("dest.write", Le2), Le2 === false && ((W3.pipesCount === 1 && W3.pipes === b || W3.pipesCount > 1 && C3(W3.pipes, b) !== -1) && !Se2 && (u("false write response, pause", W3.awaitDrain), W3.awaitDrain++), _3.pause());
11447
11447
  }
11448
11448
  function Ge2(lt2) {
11449
11449
  u("onerror", lt2), st2(), b.removeListener("error", Ge2), e(b, "error") === 0 && k(b, lt2);
@@ -11483,7 +11483,7 @@
11483
11483
  });
11484
11484
  return this;
11485
11485
  }
11486
- var re2 = C(x.pipes, b);
11486
+ var re2 = C3(x.pipes, b);
11487
11487
  return re2 === -1 ? this : (x.pipes.splice(re2, 1), x.pipesCount -= 1, x.pipesCount === 1 && (x.pipes = x.pipes[0]), b.emit("unpipe", this, _3), this);
11488
11488
  }, E3.prototype.on = function(b, x) {
11489
11489
  var _3 = t.prototype.on.call(this, b, x), W3 = this._readableState;
@@ -11600,7 +11600,7 @@
11600
11600
  typeof Symbol == "function" && (E3.from = function(b, x) {
11601
11601
  return T3 === void 0 && (T3 = Kl$2()), T3(E3, b, x);
11602
11602
  });
11603
- function C(b, x) {
11603
+ function C3(b, x) {
11604
11604
  for (var _3 = 0, W3 = b.length; _3 < W3; _3++)
11605
11605
  if (b[_3] === x) return _3;
11606
11606
  return -1;
@@ -11838,10 +11838,10 @@
11838
11838
  return m;
11839
11839
  });
11840
11840
  function i3(p3) {
11841
- for (var m = Math.max(e.MAX_BUFFER_LENGTH, 10), N3 = 0, C = 0, b = t.length; C < b; C++) {
11842
- var x = p3[t[C]].length;
11841
+ for (var m = Math.max(e.MAX_BUFFER_LENGTH, 10), N3 = 0, C3 = 0, b = t.length; C3 < b; C3++) {
11842
+ var x = p3[t[C3]].length;
11843
11843
  if (x > m)
11844
- switch (t[C]) {
11844
+ switch (t[C3]) {
11845
11845
  case "textNode":
11846
11846
  ce2(p3);
11847
11847
  break;
@@ -11852,7 +11852,7 @@
11852
11852
  Q3(p3, "onscript", p3.script), p3.script = "";
11853
11853
  break;
11854
11854
  default:
11855
- Y3(p3, "Max buffer length exceeded: " + t[C]);
11855
+ Y3(p3, "Max buffer length exceeded: " + t[C3]);
11856
11856
  }
11857
11857
  N3 = Math.max(N3, x);
11858
11858
  }
@@ -11903,17 +11903,17 @@
11903
11903
  var N3 = this;
11904
11904
  this._parser.onend = function() {
11905
11905
  N3.emit("end");
11906
- }, this._parser.onerror = function(C) {
11907
- N3.emit("error", C), N3._parser.error = null;
11908
- }, this._decoder = null, u.forEach(function(C) {
11909
- Object.defineProperty(N3, "on" + C, {
11906
+ }, this._parser.onerror = function(C3) {
11907
+ N3.emit("error", C3), N3._parser.error = null;
11908
+ }, this._decoder = null, u.forEach(function(C3) {
11909
+ Object.defineProperty(N3, "on" + C3, {
11910
11910
  get: function() {
11911
- return N3._parser["on" + C];
11911
+ return N3._parser["on" + C3];
11912
11912
  },
11913
11913
  set: function(b) {
11914
11914
  if (!b)
11915
- return N3.removeAllListeners(C), N3._parser["on" + C] = b, b;
11916
- N3.on(C, b);
11915
+ return N3.removeAllListeners(C3), N3._parser["on" + C3] = b, b;
11916
+ N3.on(C3, b);
11917
11917
  },
11918
11918
  enumerable: true,
11919
11919
  configurable: false
@@ -11938,8 +11938,8 @@
11938
11938
  }, l.prototype.on = function(p3, m) {
11939
11939
  var N3 = this;
11940
11940
  return !N3._parser["on" + p3] && u.indexOf(p3) !== -1 && (N3._parser["on" + p3] = function() {
11941
- var C = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
11942
- C.splice(0, 0, p3), N3.emit.apply(N3, C);
11941
+ var C3 = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
11942
+ C3.splice(0, 0, p3), N3.emit.apply(N3, C3);
11943
11943
  }), a.prototype.on.call(N3, p3, m);
11944
11944
  };
11945
11945
  var h3 = "[CDATA[", g = "DOCTYPE", A = "http://www.w3.org/XML/1998/namespace", D3 = "http://www.w3.org/2000/xmlns/", v = { xml: A, xmlns: D3 }, B = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, w = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/, F3 = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, I3 = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;
@@ -12332,7 +12332,7 @@ Char: ` + p3.c), m = new Error(m), p3.error = m, oe2(p3, "onerror", m), p3;
12332
12332
  p3.opt.xmlns && (N3.ns = m.ns), p3.attribList.length = 0, Q3(p3, "onopentagstart", N3);
12333
12333
  }
12334
12334
  function $3(p3, m) {
12335
- var N3 = p3.indexOf(":"), C = N3 < 0 ? ["", p3] : p3.split(":"), b = C[0], x = C[1];
12335
+ var N3 = p3.indexOf(":"), C3 = N3 < 0 ? ["", p3] : p3.split(":"), b = C3[0], x = C3[1];
12336
12336
  return m && p3 === "xmlns" && (b = "xmlns", x = ""), { prefix: b, local: x };
12337
12337
  }
12338
12338
  function ne2(p3) {
@@ -12341,15 +12341,15 @@ Char: ` + p3.c), m = new Error(m), p3.error = m, oe2(p3, "onerror", m), p3;
12341
12341
  return;
12342
12342
  }
12343
12343
  if (p3.opt.xmlns) {
12344
- var m = $3(p3.attribName, true), N3 = m.prefix, C = m.local;
12344
+ var m = $3(p3.attribName, true), N3 = m.prefix, C3 = m.local;
12345
12345
  if (N3 === "xmlns")
12346
- if (C === "xml" && p3.attribValue !== A)
12346
+ if (C3 === "xml" && p3.attribValue !== A)
12347
12347
  Z3(
12348
12348
  p3,
12349
12349
  "xml: prefix must be bound to " + A + `
12350
12350
  Actual: ` + p3.attribValue
12351
12351
  );
12352
- else if (C === "xmlns" && p3.attribValue !== D3)
12352
+ else if (C3 === "xmlns" && p3.attribValue !== D3)
12353
12353
  Z3(
12354
12354
  p3,
12355
12355
  "xmlns: prefix must be bound to " + D3 + `
@@ -12357,7 +12357,7 @@ Actual: ` + p3.attribValue
12357
12357
  );
12358
12358
  else {
12359
12359
  var b = p3.tag, x = p3.tags[p3.tags.length - 1] || p3;
12360
- b.ns === x.ns && (b.ns = Object.create(x.ns)), b.ns[C] = p3.attribValue;
12360
+ b.ns === x.ns && (b.ns = Object.create(x.ns)), b.ns[C3] = p3.attribValue;
12361
12361
  }
12362
12362
  p3.attribList.push([p3.attribName, p3.attribValue]);
12363
12363
  } else
@@ -12369,8 +12369,8 @@ Actual: ` + p3.attribValue
12369
12369
  }
12370
12370
  function se2(p3, m) {
12371
12371
  if (p3.opt.xmlns) {
12372
- var N3 = p3.tag, C = $3(p3.tagName);
12373
- N3.prefix = C.prefix, N3.local = C.local, N3.uri = N3.ns[C.prefix] || "", N3.prefix && !N3.uri && (Z3(p3, "Unbound namespace prefix: " + JSON.stringify(p3.tagName)), N3.uri = C.prefix);
12372
+ var N3 = p3.tag, C3 = $3(p3.tagName);
12373
+ N3.prefix = C3.prefix, N3.local = C3.local, N3.uri = N3.ns[C3.prefix] || "", N3.prefix && !N3.uri && (Z3(p3, "Unbound namespace prefix: " + JSON.stringify(p3.tagName)), N3.uri = C3.prefix);
12374
12374
  var b = p3.tags[p3.tags.length - 1] || p3;
12375
12375
  N3.ns && b.ns !== N3.ns && Object.keys(N3.ns).forEach(function(Ve2) {
12376
12376
  Q3(p3, "onopennamespace", {
@@ -12406,9 +12406,9 @@ Actual: ` + p3.attribValue
12406
12406
  }
12407
12407
  var m = p3.tags.length, N3 = p3.tagName;
12408
12408
  p3.strict || (N3 = N3[p3.looseCase]());
12409
- for (var C = N3; m--; ) {
12409
+ for (var C3 = N3; m--; ) {
12410
12410
  var b = p3.tags[m];
12411
- if (b.name !== C)
12411
+ if (b.name !== C3)
12412
12412
  Z3(p3, "Unexpected close tag");
12413
12413
  else
12414
12414
  break;
@@ -12433,8 +12433,8 @@ Actual: ` + p3.attribValue
12433
12433
  m === 0 && (p3.closedRoot = true), p3.tagName = p3.attribValue = p3.attribName = "", p3.attribList.length = 0, p3.state = E3.TEXT;
12434
12434
  }
12435
12435
  function j(p3) {
12436
- var m = p3.entity, N3 = m.toLowerCase(), C, b = "";
12437
- return p3.ENTITIES[m] ? p3.ENTITIES[m] : p3.ENTITIES[N3] ? p3.ENTITIES[N3] : (m = N3, m.charAt(0) === "#" && (m.charAt(1) === "x" ? (m = m.slice(2), C = parseInt(m, 16), b = C.toString(16)) : (m = m.slice(1), C = parseInt(m, 10), b = C.toString(10))), m = m.replace(/^0+/, ""), isNaN(C) || b.toLowerCase() !== m ? (Z3(p3, "Invalid character entity"), "&" + p3.entity + ";") : String.fromCodePoint(C));
12436
+ var m = p3.entity, N3 = m.toLowerCase(), C3, b = "";
12437
+ return p3.ENTITIES[m] ? p3.ENTITIES[m] : p3.ENTITIES[N3] ? p3.ENTITIES[N3] : (m = N3, m.charAt(0) === "#" && (m.charAt(1) === "x" ? (m = m.slice(2), C3 = parseInt(m, 16), b = C3.toString(16)) : (m = m.slice(1), C3 = parseInt(m, 10), b = C3.toString(10))), m = m.replace(/^0+/, ""), isNaN(C3) || b.toLowerCase() !== m ? (Z3(p3, "Invalid character entity"), "&" + p3.entity + ";") : String.fromCodePoint(C3));
12438
12438
  }
12439
12439
  function V(p3, m) {
12440
12440
  m === "<" ? (p3.state = E3.OPEN_WAKA, p3.startTagPosition = p3.position) : T3(m) || (Z3(p3, "Non-whitespace before first tag."), p3.textNode = m, p3.state = E3.TEXT);
@@ -12455,167 +12455,167 @@ Actual: ` + p3.attribValue
12455
12455
  if (p3 === null)
12456
12456
  return ie2(m);
12457
12457
  typeof p3 == "object" && (p3 = p3.toString());
12458
- for (var N3 = 0, C = ""; C = K3(p3, N3++), m.c = C, !!C; )
12459
- switch (m.trackPosition && (m.position++, C === `
12458
+ for (var N3 = 0, C3 = ""; C3 = K3(p3, N3++), m.c = C3, !!C3; )
12459
+ switch (m.trackPosition && (m.position++, C3 === `
12460
12460
  ` ? (m.line++, m.column = 0) : m.column++), m.state) {
12461
12461
  case E3.BEGIN:
12462
- if (m.state = E3.BEGIN_WHITESPACE, C === "\uFEFF")
12462
+ if (m.state = E3.BEGIN_WHITESPACE, C3 === "\uFEFF")
12463
12463
  continue;
12464
- V(m, C);
12464
+ V(m, C3);
12465
12465
  continue;
12466
12466
  case E3.BEGIN_WHITESPACE:
12467
- V(m, C);
12467
+ V(m, C3);
12468
12468
  continue;
12469
12469
  case E3.TEXT:
12470
12470
  if (m.sawRoot && !m.closedRoot) {
12471
- for (var b = N3 - 1; C && C !== "<" && C !== "&"; )
12472
- C = K3(p3, N3++), C && m.trackPosition && (m.position++, C === `
12471
+ for (var b = N3 - 1; C3 && C3 !== "<" && C3 !== "&"; )
12472
+ C3 = K3(p3, N3++), C3 && m.trackPosition && (m.position++, C3 === `
12473
12473
  ` ? (m.line++, m.column = 0) : m.column++);
12474
12474
  m.textNode += p3.substring(b, N3 - 1);
12475
12475
  }
12476
- C === "<" && !(m.sawRoot && m.closedRoot && !m.strict) ? (m.state = E3.OPEN_WAKA, m.startTagPosition = m.position) : (!T3(C) && (!m.sawRoot || m.closedRoot) && Z3(m, "Text data outside of root node."), C === "&" ? m.state = E3.TEXT_ENTITY : m.textNode += C);
12476
+ C3 === "<" && !(m.sawRoot && m.closedRoot && !m.strict) ? (m.state = E3.OPEN_WAKA, m.startTagPosition = m.position) : (!T3(C3) && (!m.sawRoot || m.closedRoot) && Z3(m, "Text data outside of root node."), C3 === "&" ? m.state = E3.TEXT_ENTITY : m.textNode += C3);
12477
12477
  continue;
12478
12478
  case E3.SCRIPT:
12479
- C === "<" ? m.state = E3.SCRIPT_ENDING : m.script += C;
12479
+ C3 === "<" ? m.state = E3.SCRIPT_ENDING : m.script += C3;
12480
12480
  continue;
12481
12481
  case E3.SCRIPT_ENDING:
12482
- C === "/" ? m.state = E3.CLOSE_TAG : (m.script += "<" + C, m.state = E3.SCRIPT);
12482
+ C3 === "/" ? m.state = E3.CLOSE_TAG : (m.script += "<" + C3, m.state = E3.SCRIPT);
12483
12483
  continue;
12484
12484
  case E3.OPEN_WAKA:
12485
- if (C === "!")
12485
+ if (C3 === "!")
12486
12486
  m.state = E3.SGML_DECL, m.sgmlDecl = "";
12487
- else if (!T3(C)) if (q3(B, C))
12488
- m.state = E3.OPEN_TAG, m.tagName = C;
12489
- else if (C === "/")
12487
+ else if (!T3(C3)) if (q3(B, C3))
12488
+ m.state = E3.OPEN_TAG, m.tagName = C3;
12489
+ else if (C3 === "/")
12490
12490
  m.state = E3.CLOSE_TAG, m.tagName = "";
12491
- else if (C === "?")
12491
+ else if (C3 === "?")
12492
12492
  m.state = E3.PROC_INST, m.procInstName = m.procInstBody = "";
12493
12493
  else {
12494
12494
  if (Z3(m, "Unencoded <"), m.startTagPosition + 1 < m.position) {
12495
12495
  var x = m.position - m.startTagPosition;
12496
- C = new Array(x).join(" ") + C;
12496
+ C3 = new Array(x).join(" ") + C3;
12497
12497
  }
12498
- m.textNode += "<" + C, m.state = E3.TEXT;
12498
+ m.textNode += "<" + C3, m.state = E3.TEXT;
12499
12499
  }
12500
12500
  continue;
12501
12501
  case E3.SGML_DECL:
12502
- if (m.sgmlDecl + C === "--") {
12502
+ if (m.sgmlDecl + C3 === "--") {
12503
12503
  m.state = E3.COMMENT, m.comment = "", m.sgmlDecl = "";
12504
12504
  continue;
12505
12505
  }
12506
- m.doctype && m.doctype !== true && m.sgmlDecl ? (m.state = E3.DOCTYPE_DTD, m.doctype += "<!" + m.sgmlDecl + C, m.sgmlDecl = "") : (m.sgmlDecl + C).toUpperCase() === h3 ? (Q3(m, "onopencdata"), m.state = E3.CDATA, m.sgmlDecl = "", m.cdata = "") : (m.sgmlDecl + C).toUpperCase() === g ? (m.state = E3.DOCTYPE, (m.doctype || m.sawRoot) && Z3(
12506
+ m.doctype && m.doctype !== true && m.sgmlDecl ? (m.state = E3.DOCTYPE_DTD, m.doctype += "<!" + m.sgmlDecl + C3, m.sgmlDecl = "") : (m.sgmlDecl + C3).toUpperCase() === h3 ? (Q3(m, "onopencdata"), m.state = E3.CDATA, m.sgmlDecl = "", m.cdata = "") : (m.sgmlDecl + C3).toUpperCase() === g ? (m.state = E3.DOCTYPE, (m.doctype || m.sawRoot) && Z3(
12507
12507
  m,
12508
12508
  "Inappropriately located doctype declaration"
12509
- ), m.doctype = "", m.sgmlDecl = "") : C === ">" ? (Q3(m, "onsgmldeclaration", m.sgmlDecl), m.sgmlDecl = "", m.state = E3.TEXT) : (k(C) && (m.state = E3.SGML_DECL_QUOTED), m.sgmlDecl += C);
12509
+ ), m.doctype = "", m.sgmlDecl = "") : C3 === ">" ? (Q3(m, "onsgmldeclaration", m.sgmlDecl), m.sgmlDecl = "", m.state = E3.TEXT) : (k(C3) && (m.state = E3.SGML_DECL_QUOTED), m.sgmlDecl += C3);
12510
12510
  continue;
12511
12511
  case E3.SGML_DECL_QUOTED:
12512
- C === m.q && (m.state = E3.SGML_DECL, m.q = ""), m.sgmlDecl += C;
12512
+ C3 === m.q && (m.state = E3.SGML_DECL, m.q = ""), m.sgmlDecl += C3;
12513
12513
  continue;
12514
12514
  case E3.DOCTYPE:
12515
- C === ">" ? (m.state = E3.TEXT, Q3(m, "ondoctype", m.doctype), m.doctype = true) : (m.doctype += C, C === "[" ? m.state = E3.DOCTYPE_DTD : k(C) && (m.state = E3.DOCTYPE_QUOTED, m.q = C));
12515
+ C3 === ">" ? (m.state = E3.TEXT, Q3(m, "ondoctype", m.doctype), m.doctype = true) : (m.doctype += C3, C3 === "[" ? m.state = E3.DOCTYPE_DTD : k(C3) && (m.state = E3.DOCTYPE_QUOTED, m.q = C3));
12516
12516
  continue;
12517
12517
  case E3.DOCTYPE_QUOTED:
12518
- m.doctype += C, C === m.q && (m.q = "", m.state = E3.DOCTYPE);
12518
+ m.doctype += C3, C3 === m.q && (m.q = "", m.state = E3.DOCTYPE);
12519
12519
  continue;
12520
12520
  case E3.DOCTYPE_DTD:
12521
- C === "]" ? (m.doctype += C, m.state = E3.DOCTYPE) : C === "<" ? (m.state = E3.OPEN_WAKA, m.startTagPosition = m.position) : k(C) ? (m.doctype += C, m.state = E3.DOCTYPE_DTD_QUOTED, m.q = C) : m.doctype += C;
12521
+ C3 === "]" ? (m.doctype += C3, m.state = E3.DOCTYPE) : C3 === "<" ? (m.state = E3.OPEN_WAKA, m.startTagPosition = m.position) : k(C3) ? (m.doctype += C3, m.state = E3.DOCTYPE_DTD_QUOTED, m.q = C3) : m.doctype += C3;
12522
12522
  continue;
12523
12523
  case E3.DOCTYPE_DTD_QUOTED:
12524
- m.doctype += C, C === m.q && (m.state = E3.DOCTYPE_DTD, m.q = "");
12524
+ m.doctype += C3, C3 === m.q && (m.state = E3.DOCTYPE_DTD, m.q = "");
12525
12525
  continue;
12526
12526
  case E3.COMMENT:
12527
- C === "-" ? m.state = E3.COMMENT_ENDING : m.comment += C;
12527
+ C3 === "-" ? m.state = E3.COMMENT_ENDING : m.comment += C3;
12528
12528
  continue;
12529
12529
  case E3.COMMENT_ENDING:
12530
- C === "-" ? (m.state = E3.COMMENT_ENDED, m.comment = de2(m.opt, m.comment), m.comment && Q3(m, "oncomment", m.comment), m.comment = "") : (m.comment += "-" + C, m.state = E3.COMMENT);
12530
+ C3 === "-" ? (m.state = E3.COMMENT_ENDED, m.comment = de2(m.opt, m.comment), m.comment && Q3(m, "oncomment", m.comment), m.comment = "") : (m.comment += "-" + C3, m.state = E3.COMMENT);
12531
12531
  continue;
12532
12532
  case E3.COMMENT_ENDED:
12533
- C !== ">" ? (Z3(m, "Malformed comment"), m.comment += "--" + C, m.state = E3.COMMENT) : m.doctype && m.doctype !== true ? m.state = E3.DOCTYPE_DTD : m.state = E3.TEXT;
12533
+ C3 !== ">" ? (Z3(m, "Malformed comment"), m.comment += "--" + C3, m.state = E3.COMMENT) : m.doctype && m.doctype !== true ? m.state = E3.DOCTYPE_DTD : m.state = E3.TEXT;
12534
12534
  continue;
12535
12535
  case E3.CDATA:
12536
- C === "]" ? m.state = E3.CDATA_ENDING : m.cdata += C;
12536
+ C3 === "]" ? m.state = E3.CDATA_ENDING : m.cdata += C3;
12537
12537
  continue;
12538
12538
  case E3.CDATA_ENDING:
12539
- C === "]" ? m.state = E3.CDATA_ENDING_2 : (m.cdata += "]" + C, m.state = E3.CDATA);
12539
+ C3 === "]" ? m.state = E3.CDATA_ENDING_2 : (m.cdata += "]" + C3, m.state = E3.CDATA);
12540
12540
  continue;
12541
12541
  case E3.CDATA_ENDING_2:
12542
- C === ">" ? (m.cdata && Q3(m, "oncdata", m.cdata), Q3(m, "onclosecdata"), m.cdata = "", m.state = E3.TEXT) : C === "]" ? m.cdata += "]" : (m.cdata += "]]" + C, m.state = E3.CDATA);
12542
+ C3 === ">" ? (m.cdata && Q3(m, "oncdata", m.cdata), Q3(m, "onclosecdata"), m.cdata = "", m.state = E3.TEXT) : C3 === "]" ? m.cdata += "]" : (m.cdata += "]]" + C3, m.state = E3.CDATA);
12543
12543
  continue;
12544
12544
  case E3.PROC_INST:
12545
- C === "?" ? m.state = E3.PROC_INST_ENDING : T3(C) ? m.state = E3.PROC_INST_BODY : m.procInstName += C;
12545
+ C3 === "?" ? m.state = E3.PROC_INST_ENDING : T3(C3) ? m.state = E3.PROC_INST_BODY : m.procInstName += C3;
12546
12546
  continue;
12547
12547
  case E3.PROC_INST_BODY:
12548
- if (!m.procInstBody && T3(C))
12548
+ if (!m.procInstBody && T3(C3))
12549
12549
  continue;
12550
- C === "?" ? m.state = E3.PROC_INST_ENDING : m.procInstBody += C;
12550
+ C3 === "?" ? m.state = E3.PROC_INST_ENDING : m.procInstBody += C3;
12551
12551
  continue;
12552
12552
  case E3.PROC_INST_ENDING:
12553
- C === ">" ? (Q3(m, "onprocessinginstruction", {
12553
+ C3 === ">" ? (Q3(m, "onprocessinginstruction", {
12554
12554
  name: m.procInstName,
12555
12555
  body: m.procInstBody
12556
- }), m.procInstName = m.procInstBody = "", m.state = E3.TEXT) : (m.procInstBody += "?" + C, m.state = E3.PROC_INST_BODY);
12556
+ }), m.procInstName = m.procInstBody = "", m.state = E3.TEXT) : (m.procInstBody += "?" + C3, m.state = E3.PROC_INST_BODY);
12557
12557
  continue;
12558
12558
  case E3.OPEN_TAG:
12559
- q3(w, C) ? m.tagName += C : (fe2(m), C === ">" ? se2(m) : C === "/" ? m.state = E3.OPEN_TAG_SLASH : (T3(C) || Z3(m, "Invalid character in tag name"), m.state = E3.ATTRIB));
12559
+ q3(w, C3) ? m.tagName += C3 : (fe2(m), C3 === ">" ? se2(m) : C3 === "/" ? m.state = E3.OPEN_TAG_SLASH : (T3(C3) || Z3(m, "Invalid character in tag name"), m.state = E3.ATTRIB));
12560
12560
  continue;
12561
12561
  case E3.OPEN_TAG_SLASH:
12562
- C === ">" ? (se2(m, true), L3(m)) : (Z3(m, "Forward-slash in opening tag not followed by >"), m.state = E3.ATTRIB);
12562
+ C3 === ">" ? (se2(m, true), L3(m)) : (Z3(m, "Forward-slash in opening tag not followed by >"), m.state = E3.ATTRIB);
12563
12563
  continue;
12564
12564
  case E3.ATTRIB:
12565
- if (T3(C))
12565
+ if (T3(C3))
12566
12566
  continue;
12567
- C === ">" ? se2(m) : C === "/" ? m.state = E3.OPEN_TAG_SLASH : q3(B, C) ? (m.attribName = C, m.attribValue = "", m.state = E3.ATTRIB_NAME) : Z3(m, "Invalid attribute name");
12567
+ C3 === ">" ? se2(m) : C3 === "/" ? m.state = E3.OPEN_TAG_SLASH : q3(B, C3) ? (m.attribName = C3, m.attribValue = "", m.state = E3.ATTRIB_NAME) : Z3(m, "Invalid attribute name");
12568
12568
  continue;
12569
12569
  case E3.ATTRIB_NAME:
12570
- C === "=" ? m.state = E3.ATTRIB_VALUE : C === ">" ? (Z3(m, "Attribute without value"), m.attribValue = m.attribName, ne2(m), se2(m)) : T3(C) ? m.state = E3.ATTRIB_NAME_SAW_WHITE : q3(w, C) ? m.attribName += C : Z3(m, "Invalid attribute name");
12570
+ C3 === "=" ? m.state = E3.ATTRIB_VALUE : C3 === ">" ? (Z3(m, "Attribute without value"), m.attribValue = m.attribName, ne2(m), se2(m)) : T3(C3) ? m.state = E3.ATTRIB_NAME_SAW_WHITE : q3(w, C3) ? m.attribName += C3 : Z3(m, "Invalid attribute name");
12571
12571
  continue;
12572
12572
  case E3.ATTRIB_NAME_SAW_WHITE:
12573
- if (C === "=")
12573
+ if (C3 === "=")
12574
12574
  m.state = E3.ATTRIB_VALUE;
12575
12575
  else {
12576
- if (T3(C))
12576
+ if (T3(C3))
12577
12577
  continue;
12578
12578
  Z3(m, "Attribute without value"), m.tag.attributes[m.attribName] = "", m.attribValue = "", Q3(m, "onattribute", {
12579
12579
  name: m.attribName,
12580
12580
  value: ""
12581
- }), m.attribName = "", C === ">" ? se2(m) : q3(B, C) ? (m.attribName = C, m.state = E3.ATTRIB_NAME) : (Z3(m, "Invalid attribute name"), m.state = E3.ATTRIB);
12581
+ }), m.attribName = "", C3 === ">" ? se2(m) : q3(B, C3) ? (m.attribName = C3, m.state = E3.ATTRIB_NAME) : (Z3(m, "Invalid attribute name"), m.state = E3.ATTRIB);
12582
12582
  }
12583
12583
  continue;
12584
12584
  case E3.ATTRIB_VALUE:
12585
- if (T3(C))
12585
+ if (T3(C3))
12586
12586
  continue;
12587
- k(C) ? (m.q = C, m.state = E3.ATTRIB_VALUE_QUOTED) : (m.opt.unquotedAttributeValues || Y3(m, "Unquoted attribute value"), m.state = E3.ATTRIB_VALUE_UNQUOTED, m.attribValue = C);
12587
+ k(C3) ? (m.q = C3, m.state = E3.ATTRIB_VALUE_QUOTED) : (m.opt.unquotedAttributeValues || Y3(m, "Unquoted attribute value"), m.state = E3.ATTRIB_VALUE_UNQUOTED, m.attribValue = C3);
12588
12588
  continue;
12589
12589
  case E3.ATTRIB_VALUE_QUOTED:
12590
- if (C !== m.q) {
12591
- C === "&" ? m.state = E3.ATTRIB_VALUE_ENTITY_Q : m.attribValue += C;
12590
+ if (C3 !== m.q) {
12591
+ C3 === "&" ? m.state = E3.ATTRIB_VALUE_ENTITY_Q : m.attribValue += C3;
12592
12592
  continue;
12593
12593
  }
12594
12594
  ne2(m), m.q = "", m.state = E3.ATTRIB_VALUE_CLOSED;
12595
12595
  continue;
12596
12596
  case E3.ATTRIB_VALUE_CLOSED:
12597
- T3(C) ? m.state = E3.ATTRIB : C === ">" ? se2(m) : C === "/" ? m.state = E3.OPEN_TAG_SLASH : q3(B, C) ? (Z3(m, "No whitespace between attributes"), m.attribName = C, m.attribValue = "", m.state = E3.ATTRIB_NAME) : Z3(m, "Invalid attribute name");
12597
+ T3(C3) ? m.state = E3.ATTRIB : C3 === ">" ? se2(m) : C3 === "/" ? m.state = E3.OPEN_TAG_SLASH : q3(B, C3) ? (Z3(m, "No whitespace between attributes"), m.attribName = C3, m.attribValue = "", m.state = E3.ATTRIB_NAME) : Z3(m, "Invalid attribute name");
12598
12598
  continue;
12599
12599
  case E3.ATTRIB_VALUE_UNQUOTED:
12600
- if (!R(C)) {
12601
- C === "&" ? m.state = E3.ATTRIB_VALUE_ENTITY_U : m.attribValue += C;
12600
+ if (!R(C3)) {
12601
+ C3 === "&" ? m.state = E3.ATTRIB_VALUE_ENTITY_U : m.attribValue += C3;
12602
12602
  continue;
12603
12603
  }
12604
- ne2(m), C === ">" ? se2(m) : m.state = E3.ATTRIB;
12604
+ ne2(m), C3 === ">" ? se2(m) : m.state = E3.ATTRIB;
12605
12605
  continue;
12606
12606
  case E3.CLOSE_TAG:
12607
12607
  if (m.tagName)
12608
- C === ">" ? L3(m) : q3(w, C) ? m.tagName += C : m.script ? (m.script += "</" + m.tagName, m.tagName = "", m.state = E3.SCRIPT) : (T3(C) || Z3(m, "Invalid tagname in closing tag"), m.state = E3.CLOSE_TAG_SAW_WHITE);
12608
+ C3 === ">" ? L3(m) : q3(w, C3) ? m.tagName += C3 : m.script ? (m.script += "</" + m.tagName, m.tagName = "", m.state = E3.SCRIPT) : (T3(C3) || Z3(m, "Invalid tagname in closing tag"), m.state = E3.CLOSE_TAG_SAW_WHITE);
12609
12609
  else {
12610
- if (T3(C))
12610
+ if (T3(C3))
12611
12611
  continue;
12612
- H3(B, C) ? m.script ? (m.script += "</" + C, m.state = E3.SCRIPT) : Z3(m, "Invalid tagname in closing tag.") : m.tagName = C;
12612
+ H3(B, C3) ? m.script ? (m.script += "</" + C3, m.state = E3.SCRIPT) : Z3(m, "Invalid tagname in closing tag.") : m.tagName = C3;
12613
12613
  }
12614
12614
  continue;
12615
12615
  case E3.CLOSE_TAG_SAW_WHITE:
12616
- if (T3(C))
12616
+ if (T3(C3))
12617
12617
  continue;
12618
- C === ">" ? L3(m) : Z3(m, "Invalid characters in closing tag");
12618
+ C3 === ">" ? L3(m) : Z3(m, "Invalid characters in closing tag");
12619
12619
  continue;
12620
12620
  case E3.TEXT_ENTITY:
12621
12621
  case E3.ATTRIB_VALUE_ENTITY_Q:
@@ -12632,10 +12632,10 @@ Actual: ` + p3.attribValue
12632
12632
  _3 = E3.ATTRIB_VALUE_UNQUOTED, W3 = "attribValue";
12633
12633
  break;
12634
12634
  }
12635
- if (C === ";") {
12635
+ if (C3 === ";") {
12636
12636
  var te2 = j(m);
12637
12637
  m.opt.unparsedEntities && !Object.values(e.XML_ENTITIES).includes(te2) ? (m.entity = "", m.state = _3, m.write(te2)) : (m[W3] += te2, m.entity = "", m.state = _3);
12638
- } else q3(m.entity.length ? I3 : F3, C) ? m.entity += C : (Z3(m, "Invalid character in entity name"), m[W3] += "&" + m.entity + C, m.entity = "", m.state = _3);
12638
+ } else q3(m.entity.length ? I3 : F3, C3) ? m.entity += C3 : (Z3(m, "Invalid character in entity name"), m[W3] += "&" + m.entity + C3, m.entity = "", m.state = _3);
12639
12639
  continue;
12640
12640
  default:
12641
12641
  throw new Error(m, "Unknown state: " + m.state);
@@ -12645,7 +12645,7 @@ Actual: ` + p3.attribValue
12645
12645
  /*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
12646
12646
  String.fromCodePoint || function() {
12647
12647
  var p3 = String.fromCharCode, m = Math.floor, N3 = function() {
12648
- var C = 16384, b = [], x, _3, W3 = -1, te2 = arguments.length;
12648
+ var C3 = 16384, b = [], x, _3, W3 = -1, te2 = arguments.length;
12649
12649
  if (!te2)
12650
12650
  return "";
12651
12651
  for (var X3 = ""; ++W3 < te2; ) {
@@ -12655,7 +12655,7 @@ Actual: ` + p3.attribValue
12655
12655
  re2 > 1114111 || // not a valid Unicode code point
12656
12656
  m(re2) !== re2)
12657
12657
  throw RangeError("Invalid code point: " + re2);
12658
- re2 <= 65535 ? b.push(re2) : (re2 -= 65536, x = (re2 >> 10) + 55296, _3 = re2 % 1024 + 56320, b.push(x, _3)), (W3 + 1 === te2 || b.length > C) && (X3 += p3.apply(null, b), b.length = 0);
12658
+ re2 <= 65535 ? b.push(re2) : (re2 -= 65536, x = (re2 >> 10) + 55296, _3 = re2 % 1024 + 56320, b.push(x, _3)), (W3 + 1 === te2 || b.length > C3) && (X3 += p3.apply(null, b), b.length = 0);
12659
12659
  }
12660
12660
  return X3;
12661
12661
  };
@@ -13100,8 +13100,8 @@ Actual: ` + p3.attribValue
13100
13100
  })), $3 = $3.replace(/&gt;\u20D2/g, "&nvgt;").replace(/&lt;\u20D2/g, "&nvlt;"), $3 = $3.replace(f3, function(p3) {
13101
13101
  return "&" + l[p3] + ";";
13102
13102
  })) : V || ($3 = $3.replace(h3, P)), $3.replace(o, function(p3) {
13103
- var m = p3.charCodeAt(0), N3 = p3.charCodeAt(1), C = (m - 55296) * 1024 + N3 - 56320 + 65536;
13104
- return K3(C);
13103
+ var m = p3.charCodeAt(0), N3 = p3.charCodeAt(1), C3 = (m - 55296) * 1024 + N3 - 56320 + 65536;
13104
+ return K3(C3);
13105
13105
  }).replace(u, P);
13106
13106
  };
13107
13107
  de2.options = {
@@ -13114,7 +13114,7 @@ Actual: ` + p3.attribValue
13114
13114
  var Y3 = function($3, ne2) {
13115
13115
  ne2 = E3(ne2, Y3.options);
13116
13116
  var se2 = ne2.strict;
13117
- return se2 && A.test($3) && ce2("malformed character reference"), $3.replace(v, function(L3, j, V, K3, P, p3, m, N3, C) {
13117
+ return se2 && A.test($3) && ce2("malformed character reference"), $3.replace(v, function(L3, j, V, K3, P, p3, m, N3, C3) {
13118
13118
  var b, x, _3, W3, te2, X3;
13119
13119
  return j ? (te2 = j, B[te2]) : V ? (te2 = V, X3 = K3, X3 && ne2.isAttributeValue ? (se2 && X3 == "=" && ce2("`&` did not start a character reference"), L3) : (se2 && ce2(
13120
13120
  "named character reference was not terminated by a semicolon"
@@ -22788,19 +22788,19 @@ Actual: ` + p3.attribValue
22788
22788
  if (V && !p3) {
22789
22789
  g = de2, R.seen = true;
22790
22790
  const N3 = [];
22791
- let C = {
22791
+ let C3 = {
22792
22792
  type: "paragraph",
22793
22793
  content: f3.handler({ ...t, nodes: [q3.paragraphProperties, ...H3] })?.filter((ue) => ue)
22794
22794
  };
22795
- C.content && (C = {
22796
- ...C,
22795
+ C3.content && (C3 = {
22796
+ ...C3,
22797
22797
  attrs: {
22798
22798
  textAlign: Q3?.attrs.textAlign || ce2?.attrs.textAlign || null,
22799
22799
  rsidRDefault: q3?.["w:rsidRDefault"] || null,
22800
22800
  styleId: w
22801
22801
  },
22802
- content: gu$2(C.content)
22803
- }), N3.push(C), I3 = n;
22802
+ content: gu$2(C3.content)
22803
+ }), N3.push(C3), I3 = n;
22804
22804
  let b = [];
22805
22805
  if (A !== "bullet" && (b = [...o, l[s][n]], l[s][i3]++), !o.length && i3 > 0) {
22806
22806
  const ue = l[s];
@@ -22825,7 +22825,7 @@ Actual: ` + p3.attribValue
22825
22825
  const re2 = Po$1(N3, m, []);
22826
22826
  h3.push(re2);
22827
22827
  } else if (p3) {
22828
- const N3 = [...o, l[s][n]], C = wu$2({
22828
+ const N3 = [...o, l[s][n]], C3 = wu$2({
22829
22829
  listItems: r22.slice(k),
22830
22830
  originalPpr: e,
22831
22831
  params: t,
@@ -22835,9 +22835,9 @@ Actual: ` + p3.attribValue
22835
22835
  path: N3,
22836
22836
  isNested: true
22837
22837
  });
22838
- I3 = C.lastNestedListLevel, delete C.lastNestedListLevel;
22838
+ I3 = C3.lastNestedListLevel, delete C3.lastNestedListLevel;
22839
22839
  const b = h3[h3.length - 1];
22840
- b ? b.content.push(C) : h3.push(Po$1([C], m, []));
22840
+ b ? b.content.push(C3) : h3.push(Po$1([C3], m, []));
22841
22841
  } else if (L3) {
22842
22842
  I3 = n, n > 0 && R.elements[0].elements.find((N3) => N3.name === "w:numPr") && (l[s][n] = 0);
22843
22843
  break;
@@ -23891,7 +23891,7 @@ Actual: ` + p3.attribValue
23891
23891
  return;
23892
23892
  }
23893
23893
  }
23894
- static updateDocumentVersion(e = this.convertedXml, t = "0.10.51") {
23894
+ static updateDocumentVersion(e = this.convertedXml, t = "0.10.53") {
23895
23895
  const n = "docProps/custom.xml";
23896
23896
  e[n] || (e[n] = Fu$2());
23897
23897
  const i3 = e["docProps/custom.xml"];
@@ -24152,7 +24152,7 @@ Actual: ` + p3.attribValue
24152
24152
  function Fu$2() {
24153
24153
  return Gf$2;
24154
24154
  }
24155
- function Bu$2(r22 = 2, e = "0.10.51") {
24155
+ function Bu$2(r22 = 2, e = "0.10.53") {
24156
24156
  return {
24157
24157
  type: "element",
24158
24158
  name: "property",
@@ -24296,8 +24296,8 @@ Actual: ` + p3.attribValue
24296
24296
  function a(i3, d, n, u, s, p3) {
24297
24297
  var w, S3, x = i3.file, F3 = i3.compression, I3 = p3 !== m.utf8encode, j = r.transformTo("string", p3(x.name)), O = r.transformTo("string", m.utf8encode(x.name)), W3 = x.comment, V = r.transformTo("string", p3(W3)), g = r.transformTo("string", m.utf8encode(W3)), T3 = O.length !== x.name.length, e = g.length !== W3.length, D3 = "", J3 = "", U3 = "", $3 = x.dir, L3 = x.date, q3 = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
24298
24298
  d && !n || (q3.crc32 = i3.crc32, q3.compressedSize = i3.compressedSize, q3.uncompressedSize = i3.uncompressedSize);
24299
- var C = 0;
24300
- d && (C |= 8), I3 || !T3 && !e || (C |= 2048);
24299
+ var C3 = 0;
24300
+ d && (C3 |= 8), I3 || !T3 && !e || (C3 |= 2048);
24301
24301
  var E3 = 0, Y3 = 0;
24302
24302
  $3 && (E3 |= 16), s === "UNIX" ? (Y3 = 798, E3 |= function(H3, it2) {
24303
24303
  var lt2 = H3;
@@ -24307,7 +24307,7 @@ Actual: ` + p3.attribValue
24307
24307
  }(x.dosPermissions)), w = L3.getUTCHours(), w <<= 6, w |= L3.getUTCMinutes(), w <<= 5, w |= L3.getUTCSeconds() / 2, S3 = L3.getUTCFullYear() - 1980, S3 <<= 4, S3 |= L3.getUTCMonth() + 1, S3 <<= 5, S3 |= L3.getUTCDate(), T3 && (J3 = l(1, 1) + l(v(j), 4) + O, D3 += "up" + l(J3.length, 2) + J3), e && (U3 = l(1, 1) + l(v(V), 4) + g, D3 += "uc" + l(U3.length, 2) + U3);
24308
24308
  var G = "";
24309
24309
  return G += `
24310
- \0`, G += l(C, 2), G += F3.magic, G += l(w, 2), G += l(S3, 2), G += l(q3.crc32, 4), G += l(q3.compressedSize, 4), G += l(q3.uncompressedSize, 4), G += l(j.length, 2), G += l(D3.length, 2), { fileRecord: c3.LOCAL_FILE_HEADER + G + j + D3, dirRecord: c3.CENTRAL_FILE_HEADER + l(Y3, 2) + G + l(V.length, 2) + "\0\0\0\0" + l(E3, 4) + l(u, 4) + j + D3 + V };
24310
+ \0`, G += l(C3, 2), G += F3.magic, G += l(w, 2), G += l(S3, 2), G += l(q3.crc32, 4), G += l(q3.compressedSize, 4), G += l(q3.uncompressedSize, 4), G += l(j.length, 2), G += l(D3.length, 2), { fileRecord: c3.LOCAL_FILE_HEADER + G + j + D3, dirRecord: c3.CENTRAL_FILE_HEADER + l(Y3, 2) + G + l(V.length, 2) + "\0\0\0\0" + l(E3, 4) + l(u, 4) + j + D3 + V };
24311
24311
  }
24312
24312
  var r = _3("../utils"), h3 = _3("../stream/GenericWorker"), m = _3("../utf8"), v = _3("../crc32"), c3 = _3("../signature");
24313
24313
  function b(i3, d, n, u) {
@@ -25541,12 +25541,12 @@ Actual: ` + p3.attribValue
25541
25541
  function q3(t) {
25542
25542
  for (var B = t.length; 0 <= --B; ) t[B] = 0;
25543
25543
  }
25544
- function C(t) {
25544
+ function C3(t) {
25545
25545
  var B = t.state, A = B.pending;
25546
25546
  A > t.avail_out && (A = t.avail_out), A !== 0 && (a.arraySet(t.output, B.pending_buf, B.pending_out, A, t.next_out), t.next_out += A, B.pending_out += A, t.total_out += A, t.avail_out -= A, B.pending -= A, B.pending === 0 && (B.pending_out = 0));
25547
25547
  }
25548
25548
  function E3(t, B) {
25549
- r._tr_flush_block(t, 0 <= t.block_start ? t.block_start : -1, t.strstart - t.block_start, B), t.block_start = t.strstart, C(t.strm);
25549
+ r._tr_flush_block(t, 0 <= t.block_start ? t.block_start : -1, t.strstart - t.block_start, B), t.block_start = t.strstart, C3(t.strm);
25550
25550
  }
25551
25551
  function Y3(t, B) {
25552
25552
  t.pending_buf[t.pending++] = B;
@@ -25663,13 +25663,13 @@ Actual: ` + p3.attribValue
25663
25663
  N3 |= (2 <= f3.strategy || f3.level < 2 ? 0 : f3.level < 6 ? 1 : f3.level === 6 ? 2 : 3) << 6, f3.strstart !== 0 && (N3 |= 32), N3 += 31 - N3 % 31, f3.status = T3, G(f3, N3), f3.strstart !== 0 && (G(f3, t.adler >>> 16), G(f3, 65535 & t.adler)), t.adler = 1;
25664
25664
  }
25665
25665
  if (f3.status === 69) if (f3.gzhead.extra) {
25666
- for (o = f3.pending; f3.gzindex < (65535 & f3.gzhead.extra.length) && (f3.pending !== f3.pending_buf_size || (f3.gzhead.hcrc && f3.pending > o && (t.adler = m(t.adler, f3.pending_buf, f3.pending - o, o)), C(t), o = f3.pending, f3.pending !== f3.pending_buf_size)); ) Y3(f3, 255 & f3.gzhead.extra[f3.gzindex]), f3.gzindex++;
25666
+ for (o = f3.pending; f3.gzindex < (65535 & f3.gzhead.extra.length) && (f3.pending !== f3.pending_buf_size || (f3.gzhead.hcrc && f3.pending > o && (t.adler = m(t.adler, f3.pending_buf, f3.pending - o, o)), C3(t), o = f3.pending, f3.pending !== f3.pending_buf_size)); ) Y3(f3, 255 & f3.gzhead.extra[f3.gzindex]), f3.gzindex++;
25667
25667
  f3.gzhead.hcrc && f3.pending > o && (t.adler = m(t.adler, f3.pending_buf, f3.pending - o, o)), f3.gzindex === f3.gzhead.extra.length && (f3.gzindex = 0, f3.status = 73);
25668
25668
  } else f3.status = 73;
25669
25669
  if (f3.status === 73) if (f3.gzhead.name) {
25670
25670
  o = f3.pending;
25671
25671
  do {
25672
- if (f3.pending === f3.pending_buf_size && (f3.gzhead.hcrc && f3.pending > o && (t.adler = m(t.adler, f3.pending_buf, f3.pending - o, o)), C(t), o = f3.pending, f3.pending === f3.pending_buf_size)) {
25672
+ if (f3.pending === f3.pending_buf_size && (f3.gzhead.hcrc && f3.pending > o && (t.adler = m(t.adler, f3.pending_buf, f3.pending - o, o)), C3(t), o = f3.pending, f3.pending === f3.pending_buf_size)) {
25673
25673
  k = 1;
25674
25674
  break;
25675
25675
  }
@@ -25680,7 +25680,7 @@ Actual: ` + p3.attribValue
25680
25680
  if (f3.status === 91) if (f3.gzhead.comment) {
25681
25681
  o = f3.pending;
25682
25682
  do {
25683
- if (f3.pending === f3.pending_buf_size && (f3.gzhead.hcrc && f3.pending > o && (t.adler = m(t.adler, f3.pending_buf, f3.pending - o, o)), C(t), o = f3.pending, f3.pending === f3.pending_buf_size)) {
25683
+ if (f3.pending === f3.pending_buf_size && (f3.gzhead.hcrc && f3.pending > o && (t.adler = m(t.adler, f3.pending_buf, f3.pending - o, o)), C3(t), o = f3.pending, f3.pending === f3.pending_buf_size)) {
25684
25684
  k = 1;
25685
25685
  break;
25686
25686
  }
@@ -25688,8 +25688,8 @@ Actual: ` + p3.attribValue
25688
25688
  } while (k !== 0);
25689
25689
  f3.gzhead.hcrc && f3.pending > o && (t.adler = m(t.adler, f3.pending_buf, f3.pending - o, o)), k === 0 && (f3.status = 103);
25690
25690
  } else f3.status = 103;
25691
- if (f3.status === 103 && (f3.gzhead.hcrc ? (f3.pending + 2 > f3.pending_buf_size && C(t), f3.pending + 2 <= f3.pending_buf_size && (Y3(f3, 255 & t.adler), Y3(f3, t.adler >> 8 & 255), t.adler = 0, f3.status = T3)) : f3.status = T3), f3.pending !== 0) {
25692
- if (C(t), t.avail_out === 0) return f3.last_flush = -1, i3;
25691
+ if (f3.status === 103 && (f3.gzhead.hcrc ? (f3.pending + 2 > f3.pending_buf_size && C3(t), f3.pending + 2 <= f3.pending_buf_size && (Y3(f3, 255 & t.adler), Y3(f3, t.adler >> 8 & 255), t.adler = 0, f3.status = T3)) : f3.status = T3), f3.pending !== 0) {
25692
+ if (C3(t), t.avail_out === 0) return f3.last_flush = -1, i3;
25693
25693
  } else if (t.avail_in === 0 && L3(B) <= L3(A) && B !== b) return $3(t, -5);
25694
25694
  if (f3.status === 666 && t.avail_in !== 0) return $3(t, -5);
25695
25695
  if (t.avail_in !== 0 || f3.lookahead !== 0 || B !== c3 && f3.status !== 666) {
@@ -25720,9 +25720,9 @@ Actual: ` + p3.attribValue
25720
25720
  return z.insert = 0, Z3 === b ? (E3(z, true), z.strm.avail_out === 0 ? J3 : U3) : z.last_lit && (E3(z, false), z.strm.avail_out === 0) ? e : D3;
25721
25721
  }(f3, B) : l[f3.level].func(f3, B);
25722
25722
  if (P !== J3 && P !== U3 || (f3.status = 666), P === e || P === J3) return t.avail_out === 0 && (f3.last_flush = -1), i3;
25723
- if (P === D3 && (B === 1 ? r._tr_align(f3) : B !== 5 && (r._tr_stored_block(f3, 0, 0, false), B === 3 && (q3(f3.head), f3.lookahead === 0 && (f3.strstart = 0, f3.block_start = 0, f3.insert = 0))), C(t), t.avail_out === 0)) return f3.last_flush = -1, i3;
25723
+ if (P === D3 && (B === 1 ? r._tr_align(f3) : B !== 5 && (r._tr_stored_block(f3, 0, 0, false), B === 3 && (q3(f3.head), f3.lookahead === 0 && (f3.strstart = 0, f3.block_start = 0, f3.insert = 0))), C3(t), t.avail_out === 0)) return f3.last_flush = -1, i3;
25724
25724
  }
25725
- return B !== b ? i3 : f3.wrap <= 0 ? 1 : (f3.wrap === 2 ? (Y3(f3, 255 & t.adler), Y3(f3, t.adler >> 8 & 255), Y3(f3, t.adler >> 16 & 255), Y3(f3, t.adler >> 24 & 255), Y3(f3, 255 & t.total_in), Y3(f3, t.total_in >> 8 & 255), Y3(f3, t.total_in >> 16 & 255), Y3(f3, t.total_in >> 24 & 255)) : (G(f3, t.adler >>> 16), G(f3, 65535 & t.adler)), C(t), 0 < f3.wrap && (f3.wrap = -f3.wrap), f3.pending !== 0 ? i3 : 1);
25725
+ return B !== b ? i3 : f3.wrap <= 0 ? 1 : (f3.wrap === 2 ? (Y3(f3, 255 & t.adler), Y3(f3, t.adler >> 8 & 255), Y3(f3, t.adler >> 16 & 255), Y3(f3, t.adler >> 24 & 255), Y3(f3, 255 & t.total_in), Y3(f3, t.total_in >> 8 & 255), Y3(f3, t.total_in >> 16 & 255), Y3(f3, t.total_in >> 24 & 255)) : (G(f3, t.adler >>> 16), G(f3, 65535 & t.adler)), C3(t), 0 < f3.wrap && (f3.wrap = -f3.wrap), f3.pending !== 0 ? i3 : 1);
25726
25726
  }, y.deflateEnd = function(t) {
25727
25727
  var B;
25728
25728
  return t && t.state ? (B = t.state.status) !== g && B !== 69 && B !== 73 && B !== 91 && B !== 103 && B !== T3 && B !== 666 ? $3(t, d) : (t.state = null, B === T3 ? $3(t, -3) : i3) : d;
@@ -25854,9 +25854,9 @@ Actual: ` + p3.attribValue
25854
25854
  y.inflateReset = S3, y.inflateReset2 = x, y.inflateResetKeep = w, y.inflateInit = function(g) {
25855
25855
  return F3(g, 15);
25856
25856
  }, y.inflateInit2 = F3, y.inflate = function(g, T3) {
25857
- var e, D3, J3, U3, $3, L3, q3, C, E3, Y3, G, H3, it2, lt2, Q3, et2, ot2, at2, ct2, ft2, t, B, A, f3, o = 0, k = new l.Buf8(4), N3 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
25857
+ var e, D3, J3, U3, $3, L3, q3, C3, E3, Y3, G, H3, it2, lt2, Q3, et2, ot2, at2, ct2, ft2, t, B, A, f3, o = 0, k = new l.Buf8(4), N3 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
25858
25858
  if (!g || !g.state || !g.output || !g.input && g.avail_in !== 0) return i3;
25859
- (e = g.state).mode === 12 && (e.mode = 13), $3 = g.next_out, J3 = g.output, q3 = g.avail_out, U3 = g.next_in, D3 = g.input, L3 = g.avail_in, C = e.hold, E3 = e.bits, Y3 = L3, G = q3, B = b;
25859
+ (e = g.state).mode === 12 && (e.mode = 13), $3 = g.next_out, J3 = g.output, q3 = g.avail_out, U3 = g.next_in, D3 = g.input, L3 = g.avail_in, C3 = e.hold, E3 = e.bits, Y3 = L3, G = q3, B = b;
25860
25860
  t: for (; ; ) switch (e.mode) {
25861
25861
  case d:
25862
25862
  if (e.wrap === 0) {
@@ -25865,33 +25865,33 @@ Actual: ` + p3.attribValue
25865
25865
  }
25866
25866
  for (; E3 < 16; ) {
25867
25867
  if (L3 === 0) break t;
25868
- L3--, C += D3[U3++] << E3, E3 += 8;
25868
+ L3--, C3 += D3[U3++] << E3, E3 += 8;
25869
25869
  }
25870
- if (2 & e.wrap && C === 35615) {
25871
- k[e.check = 0] = 255 & C, k[1] = C >>> 8 & 255, e.check = r(e.check, k, 2, 0), E3 = C = 0, e.mode = 2;
25870
+ if (2 & e.wrap && C3 === 35615) {
25871
+ k[e.check = 0] = 255 & C3, k[1] = C3 >>> 8 & 255, e.check = r(e.check, k, 2, 0), E3 = C3 = 0, e.mode = 2;
25872
25872
  break;
25873
25873
  }
25874
- if (e.flags = 0, e.head && (e.head.done = false), !(1 & e.wrap) || (((255 & C) << 8) + (C >> 8)) % 31) {
25874
+ if (e.flags = 0, e.head && (e.head.done = false), !(1 & e.wrap) || (((255 & C3) << 8) + (C3 >> 8)) % 31) {
25875
25875
  g.msg = "incorrect header check", e.mode = 30;
25876
25876
  break;
25877
25877
  }
25878
- if ((15 & C) != 8) {
25878
+ if ((15 & C3) != 8) {
25879
25879
  g.msg = "unknown compression method", e.mode = 30;
25880
25880
  break;
25881
25881
  }
25882
- if (E3 -= 4, t = 8 + (15 & (C >>>= 4)), e.wbits === 0) e.wbits = t;
25882
+ if (E3 -= 4, t = 8 + (15 & (C3 >>>= 4)), e.wbits === 0) e.wbits = t;
25883
25883
  else if (t > e.wbits) {
25884
25884
  g.msg = "invalid window size", e.mode = 30;
25885
25885
  break;
25886
25886
  }
25887
- e.dmax = 1 << t, g.adler = e.check = 1, e.mode = 512 & C ? 10 : 12, E3 = C = 0;
25887
+ e.dmax = 1 << t, g.adler = e.check = 1, e.mode = 512 & C3 ? 10 : 12, E3 = C3 = 0;
25888
25888
  break;
25889
25889
  case 2:
25890
25890
  for (; E3 < 16; ) {
25891
25891
  if (L3 === 0) break t;
25892
- L3--, C += D3[U3++] << E3, E3 += 8;
25892
+ L3--, C3 += D3[U3++] << E3, E3 += 8;
25893
25893
  }
25894
- if (e.flags = C, (255 & e.flags) != 8) {
25894
+ if (e.flags = C3, (255 & e.flags) != 8) {
25895
25895
  g.msg = "unknown compression method", e.mode = 30;
25896
25896
  break;
25897
25897
  }
@@ -25899,26 +25899,26 @@ Actual: ` + p3.attribValue
25899
25899
  g.msg = "unknown header flags set", e.mode = 30;
25900
25900
  break;
25901
25901
  }
25902
- e.head && (e.head.text = C >> 8 & 1), 512 & e.flags && (k[0] = 255 & C, k[1] = C >>> 8 & 255, e.check = r(e.check, k, 2, 0)), E3 = C = 0, e.mode = 3;
25902
+ e.head && (e.head.text = C3 >> 8 & 1), 512 & e.flags && (k[0] = 255 & C3, k[1] = C3 >>> 8 & 255, e.check = r(e.check, k, 2, 0)), E3 = C3 = 0, e.mode = 3;
25903
25903
  case 3:
25904
25904
  for (; E3 < 32; ) {
25905
25905
  if (L3 === 0) break t;
25906
- L3--, C += D3[U3++] << E3, E3 += 8;
25906
+ L3--, C3 += D3[U3++] << E3, E3 += 8;
25907
25907
  }
25908
- e.head && (e.head.time = C), 512 & e.flags && (k[0] = 255 & C, k[1] = C >>> 8 & 255, k[2] = C >>> 16 & 255, k[3] = C >>> 24 & 255, e.check = r(e.check, k, 4, 0)), E3 = C = 0, e.mode = 4;
25908
+ e.head && (e.head.time = C3), 512 & e.flags && (k[0] = 255 & C3, k[1] = C3 >>> 8 & 255, k[2] = C3 >>> 16 & 255, k[3] = C3 >>> 24 & 255, e.check = r(e.check, k, 4, 0)), E3 = C3 = 0, e.mode = 4;
25909
25909
  case 4:
25910
25910
  for (; E3 < 16; ) {
25911
25911
  if (L3 === 0) break t;
25912
- L3--, C += D3[U3++] << E3, E3 += 8;
25912
+ L3--, C3 += D3[U3++] << E3, E3 += 8;
25913
25913
  }
25914
- e.head && (e.head.xflags = 255 & C, e.head.os = C >> 8), 512 & e.flags && (k[0] = 255 & C, k[1] = C >>> 8 & 255, e.check = r(e.check, k, 2, 0)), E3 = C = 0, e.mode = 5;
25914
+ e.head && (e.head.xflags = 255 & C3, e.head.os = C3 >> 8), 512 & e.flags && (k[0] = 255 & C3, k[1] = C3 >>> 8 & 255, e.check = r(e.check, k, 2, 0)), E3 = C3 = 0, e.mode = 5;
25915
25915
  case 5:
25916
25916
  if (1024 & e.flags) {
25917
25917
  for (; E3 < 16; ) {
25918
25918
  if (L3 === 0) break t;
25919
- L3--, C += D3[U3++] << E3, E3 += 8;
25919
+ L3--, C3 += D3[U3++] << E3, E3 += 8;
25920
25920
  }
25921
- e.length = C, e.head && (e.head.extra_len = C), 512 & e.flags && (k[0] = 255 & C, k[1] = C >>> 8 & 255, e.check = r(e.check, k, 2, 0)), E3 = C = 0;
25921
+ e.length = C3, e.head && (e.head.extra_len = C3), 512 & e.flags && (k[0] = 255 & C3, k[1] = C3 >>> 8 & 255, e.check = r(e.check, k, 2, 0)), E3 = C3 = 0;
25922
25922
  } else e.head && (e.head.extra = null);
25923
25923
  e.mode = 6;
25924
25924
  case 6:
@@ -25942,43 +25942,43 @@ Actual: ` + p3.attribValue
25942
25942
  if (512 & e.flags) {
25943
25943
  for (; E3 < 16; ) {
25944
25944
  if (L3 === 0) break t;
25945
- L3--, C += D3[U3++] << E3, E3 += 8;
25945
+ L3--, C3 += D3[U3++] << E3, E3 += 8;
25946
25946
  }
25947
- if (C !== (65535 & e.check)) {
25947
+ if (C3 !== (65535 & e.check)) {
25948
25948
  g.msg = "header crc mismatch", e.mode = 30;
25949
25949
  break;
25950
25950
  }
25951
- E3 = C = 0;
25951
+ E3 = C3 = 0;
25952
25952
  }
25953
25953
  e.head && (e.head.hcrc = e.flags >> 9 & 1, e.head.done = true), g.adler = e.check = 0, e.mode = 12;
25954
25954
  break;
25955
25955
  case 10:
25956
25956
  for (; E3 < 32; ) {
25957
25957
  if (L3 === 0) break t;
25958
- L3--, C += D3[U3++] << E3, E3 += 8;
25958
+ L3--, C3 += D3[U3++] << E3, E3 += 8;
25959
25959
  }
25960
- g.adler = e.check = s(C), E3 = C = 0, e.mode = 11;
25960
+ g.adler = e.check = s(C3), E3 = C3 = 0, e.mode = 11;
25961
25961
  case 11:
25962
- if (e.havedict === 0) return g.next_out = $3, g.avail_out = q3, g.next_in = U3, g.avail_in = L3, e.hold = C, e.bits = E3, 2;
25962
+ if (e.havedict === 0) return g.next_out = $3, g.avail_out = q3, g.next_in = U3, g.avail_in = L3, e.hold = C3, e.bits = E3, 2;
25963
25963
  g.adler = e.check = 1, e.mode = 12;
25964
25964
  case 12:
25965
25965
  if (T3 === 5 || T3 === 6) break t;
25966
25966
  case 13:
25967
25967
  if (e.last) {
25968
- C >>>= 7 & E3, E3 -= 7 & E3, e.mode = 27;
25968
+ C3 >>>= 7 & E3, E3 -= 7 & E3, e.mode = 27;
25969
25969
  break;
25970
25970
  }
25971
25971
  for (; E3 < 3; ) {
25972
25972
  if (L3 === 0) break t;
25973
- L3--, C += D3[U3++] << E3, E3 += 8;
25973
+ L3--, C3 += D3[U3++] << E3, E3 += 8;
25974
25974
  }
25975
- switch (e.last = 1 & C, E3 -= 1, 3 & (C >>>= 1)) {
25975
+ switch (e.last = 1 & C3, E3 -= 1, 3 & (C3 >>>= 1)) {
25976
25976
  case 0:
25977
25977
  e.mode = 14;
25978
25978
  break;
25979
25979
  case 1:
25980
25980
  if (W3(e), e.mode = 20, T3 !== 6) break;
25981
- C >>>= 2, E3 -= 2;
25981
+ C3 >>>= 2, E3 -= 2;
25982
25982
  break t;
25983
25983
  case 2:
25984
25984
  e.mode = 17;
@@ -25986,18 +25986,18 @@ Actual: ` + p3.attribValue
25986
25986
  case 3:
25987
25987
  g.msg = "invalid block type", e.mode = 30;
25988
25988
  }
25989
- C >>>= 2, E3 -= 2;
25989
+ C3 >>>= 2, E3 -= 2;
25990
25990
  break;
25991
25991
  case 14:
25992
- for (C >>>= 7 & E3, E3 -= 7 & E3; E3 < 32; ) {
25992
+ for (C3 >>>= 7 & E3, E3 -= 7 & E3; E3 < 32; ) {
25993
25993
  if (L3 === 0) break t;
25994
- L3--, C += D3[U3++] << E3, E3 += 8;
25994
+ L3--, C3 += D3[U3++] << E3, E3 += 8;
25995
25995
  }
25996
- if ((65535 & C) != (C >>> 16 ^ 65535)) {
25996
+ if ((65535 & C3) != (C3 >>> 16 ^ 65535)) {
25997
25997
  g.msg = "invalid stored block lengths", e.mode = 30;
25998
25998
  break;
25999
25999
  }
26000
- if (e.length = 65535 & C, E3 = C = 0, e.mode = 15, T3 === 6) break t;
26000
+ if (e.length = 65535 & C3, E3 = C3 = 0, e.mode = 15, T3 === 6) break t;
26001
26001
  case 15:
26002
26002
  e.mode = 16;
26003
26003
  case 16:
@@ -26011,9 +26011,9 @@ Actual: ` + p3.attribValue
26011
26011
  case 17:
26012
26012
  for (; E3 < 14; ) {
26013
26013
  if (L3 === 0) break t;
26014
- L3--, C += D3[U3++] << E3, E3 += 8;
26014
+ L3--, C3 += D3[U3++] << E3, E3 += 8;
26015
26015
  }
26016
- if (e.nlen = 257 + (31 & C), C >>>= 5, E3 -= 5, e.ndist = 1 + (31 & C), C >>>= 5, E3 -= 5, e.ncode = 4 + (15 & C), C >>>= 4, E3 -= 4, 286 < e.nlen || 30 < e.ndist) {
26016
+ if (e.nlen = 257 + (31 & C3), C3 >>>= 5, E3 -= 5, e.ndist = 1 + (31 & C3), C3 >>>= 5, E3 -= 5, e.ncode = 4 + (15 & C3), C3 >>>= 4, E3 -= 4, 286 < e.nlen || 30 < e.ndist) {
26017
26017
  g.msg = "too many length or distance symbols", e.mode = 30;
26018
26018
  break;
26019
26019
  }
@@ -26022,9 +26022,9 @@ Actual: ` + p3.attribValue
26022
26022
  for (; e.have < e.ncode; ) {
26023
26023
  for (; E3 < 3; ) {
26024
26024
  if (L3 === 0) break t;
26025
- L3--, C += D3[U3++] << E3, E3 += 8;
26025
+ L3--, C3 += D3[U3++] << E3, E3 += 8;
26026
26026
  }
26027
- e.lens[N3[e.have++]] = 7 & C, C >>>= 3, E3 -= 3;
26027
+ e.lens[N3[e.have++]] = 7 & C3, C3 >>>= 3, E3 -= 3;
26028
26028
  }
26029
26029
  for (; e.have < 19; ) e.lens[N3[e.have++]] = 0;
26030
26030
  if (e.lencode = e.lendyn, e.lenbits = 7, A = { bits: e.lenbits }, B = m(0, e.lens, 0, 19, e.lencode, 0, e.work, A), e.lenbits = A.bits, B) {
@@ -26034,34 +26034,34 @@ Actual: ` + p3.attribValue
26034
26034
  e.have = 0, e.mode = 19;
26035
26035
  case 19:
26036
26036
  for (; e.have < e.nlen + e.ndist; ) {
26037
- for (; et2 = (o = e.lencode[C & (1 << e.lenbits) - 1]) >>> 16 & 255, ot2 = 65535 & o, !((Q3 = o >>> 24) <= E3); ) {
26037
+ for (; et2 = (o = e.lencode[C3 & (1 << e.lenbits) - 1]) >>> 16 & 255, ot2 = 65535 & o, !((Q3 = o >>> 24) <= E3); ) {
26038
26038
  if (L3 === 0) break t;
26039
- L3--, C += D3[U3++] << E3, E3 += 8;
26039
+ L3--, C3 += D3[U3++] << E3, E3 += 8;
26040
26040
  }
26041
- if (ot2 < 16) C >>>= Q3, E3 -= Q3, e.lens[e.have++] = ot2;
26041
+ if (ot2 < 16) C3 >>>= Q3, E3 -= Q3, e.lens[e.have++] = ot2;
26042
26042
  else {
26043
26043
  if (ot2 === 16) {
26044
26044
  for (f3 = Q3 + 2; E3 < f3; ) {
26045
26045
  if (L3 === 0) break t;
26046
- L3--, C += D3[U3++] << E3, E3 += 8;
26046
+ L3--, C3 += D3[U3++] << E3, E3 += 8;
26047
26047
  }
26048
- if (C >>>= Q3, E3 -= Q3, e.have === 0) {
26048
+ if (C3 >>>= Q3, E3 -= Q3, e.have === 0) {
26049
26049
  g.msg = "invalid bit length repeat", e.mode = 30;
26050
26050
  break;
26051
26051
  }
26052
- t = e.lens[e.have - 1], H3 = 3 + (3 & C), C >>>= 2, E3 -= 2;
26052
+ t = e.lens[e.have - 1], H3 = 3 + (3 & C3), C3 >>>= 2, E3 -= 2;
26053
26053
  } else if (ot2 === 17) {
26054
26054
  for (f3 = Q3 + 3; E3 < f3; ) {
26055
26055
  if (L3 === 0) break t;
26056
- L3--, C += D3[U3++] << E3, E3 += 8;
26056
+ L3--, C3 += D3[U3++] << E3, E3 += 8;
26057
26057
  }
26058
- E3 -= Q3, t = 0, H3 = 3 + (7 & (C >>>= Q3)), C >>>= 3, E3 -= 3;
26058
+ E3 -= Q3, t = 0, H3 = 3 + (7 & (C3 >>>= Q3)), C3 >>>= 3, E3 -= 3;
26059
26059
  } else {
26060
26060
  for (f3 = Q3 + 7; E3 < f3; ) {
26061
26061
  if (L3 === 0) break t;
26062
- L3--, C += D3[U3++] << E3, E3 += 8;
26062
+ L3--, C3 += D3[U3++] << E3, E3 += 8;
26063
26063
  }
26064
- E3 -= Q3, t = 0, H3 = 11 + (127 & (C >>>= Q3)), C >>>= 7, E3 -= 7;
26064
+ E3 -= Q3, t = 0, H3 = 11 + (127 & (C3 >>>= Q3)), C3 >>>= 7, E3 -= 7;
26065
26065
  }
26066
26066
  if (e.have + H3 > e.nlen + e.ndist) {
26067
26067
  g.msg = "invalid bit length repeat", e.mode = 30;
@@ -26088,21 +26088,21 @@ Actual: ` + p3.attribValue
26088
26088
  e.mode = 21;
26089
26089
  case 21:
26090
26090
  if (6 <= L3 && 258 <= q3) {
26091
- g.next_out = $3, g.avail_out = q3, g.next_in = U3, g.avail_in = L3, e.hold = C, e.bits = E3, h3(g, G), $3 = g.next_out, J3 = g.output, q3 = g.avail_out, U3 = g.next_in, D3 = g.input, L3 = g.avail_in, C = e.hold, E3 = e.bits, e.mode === 12 && (e.back = -1);
26091
+ g.next_out = $3, g.avail_out = q3, g.next_in = U3, g.avail_in = L3, e.hold = C3, e.bits = E3, h3(g, G), $3 = g.next_out, J3 = g.output, q3 = g.avail_out, U3 = g.next_in, D3 = g.input, L3 = g.avail_in, C3 = e.hold, E3 = e.bits, e.mode === 12 && (e.back = -1);
26092
26092
  break;
26093
26093
  }
26094
- for (e.back = 0; et2 = (o = e.lencode[C & (1 << e.lenbits) - 1]) >>> 16 & 255, ot2 = 65535 & o, !((Q3 = o >>> 24) <= E3); ) {
26094
+ for (e.back = 0; et2 = (o = e.lencode[C3 & (1 << e.lenbits) - 1]) >>> 16 & 255, ot2 = 65535 & o, !((Q3 = o >>> 24) <= E3); ) {
26095
26095
  if (L3 === 0) break t;
26096
- L3--, C += D3[U3++] << E3, E3 += 8;
26096
+ L3--, C3 += D3[U3++] << E3, E3 += 8;
26097
26097
  }
26098
26098
  if (et2 && !(240 & et2)) {
26099
- for (at2 = Q3, ct2 = et2, ft2 = ot2; et2 = (o = e.lencode[ft2 + ((C & (1 << at2 + ct2) - 1) >> at2)]) >>> 16 & 255, ot2 = 65535 & o, !(at2 + (Q3 = o >>> 24) <= E3); ) {
26099
+ for (at2 = Q3, ct2 = et2, ft2 = ot2; et2 = (o = e.lencode[ft2 + ((C3 & (1 << at2 + ct2) - 1) >> at2)]) >>> 16 & 255, ot2 = 65535 & o, !(at2 + (Q3 = o >>> 24) <= E3); ) {
26100
26100
  if (L3 === 0) break t;
26101
- L3--, C += D3[U3++] << E3, E3 += 8;
26101
+ L3--, C3 += D3[U3++] << E3, E3 += 8;
26102
26102
  }
26103
- C >>>= at2, E3 -= at2, e.back += at2;
26103
+ C3 >>>= at2, E3 -= at2, e.back += at2;
26104
26104
  }
26105
- if (C >>>= Q3, E3 -= Q3, e.back += Q3, e.length = ot2, et2 === 0) {
26105
+ if (C3 >>>= Q3, E3 -= Q3, e.back += Q3, e.length = ot2, et2 === 0) {
26106
26106
  e.mode = 26;
26107
26107
  break;
26108
26108
  }
@@ -26119,24 +26119,24 @@ Actual: ` + p3.attribValue
26119
26119
  if (e.extra) {
26120
26120
  for (f3 = e.extra; E3 < f3; ) {
26121
26121
  if (L3 === 0) break t;
26122
- L3--, C += D3[U3++] << E3, E3 += 8;
26122
+ L3--, C3 += D3[U3++] << E3, E3 += 8;
26123
26123
  }
26124
- e.length += C & (1 << e.extra) - 1, C >>>= e.extra, E3 -= e.extra, e.back += e.extra;
26124
+ e.length += C3 & (1 << e.extra) - 1, C3 >>>= e.extra, E3 -= e.extra, e.back += e.extra;
26125
26125
  }
26126
26126
  e.was = e.length, e.mode = 23;
26127
26127
  case 23:
26128
- for (; et2 = (o = e.distcode[C & (1 << e.distbits) - 1]) >>> 16 & 255, ot2 = 65535 & o, !((Q3 = o >>> 24) <= E3); ) {
26128
+ for (; et2 = (o = e.distcode[C3 & (1 << e.distbits) - 1]) >>> 16 & 255, ot2 = 65535 & o, !((Q3 = o >>> 24) <= E3); ) {
26129
26129
  if (L3 === 0) break t;
26130
- L3--, C += D3[U3++] << E3, E3 += 8;
26130
+ L3--, C3 += D3[U3++] << E3, E3 += 8;
26131
26131
  }
26132
26132
  if (!(240 & et2)) {
26133
- for (at2 = Q3, ct2 = et2, ft2 = ot2; et2 = (o = e.distcode[ft2 + ((C & (1 << at2 + ct2) - 1) >> at2)]) >>> 16 & 255, ot2 = 65535 & o, !(at2 + (Q3 = o >>> 24) <= E3); ) {
26133
+ for (at2 = Q3, ct2 = et2, ft2 = ot2; et2 = (o = e.distcode[ft2 + ((C3 & (1 << at2 + ct2) - 1) >> at2)]) >>> 16 & 255, ot2 = 65535 & o, !(at2 + (Q3 = o >>> 24) <= E3); ) {
26134
26134
  if (L3 === 0) break t;
26135
- L3--, C += D3[U3++] << E3, E3 += 8;
26135
+ L3--, C3 += D3[U3++] << E3, E3 += 8;
26136
26136
  }
26137
- C >>>= at2, E3 -= at2, e.back += at2;
26137
+ C3 >>>= at2, E3 -= at2, e.back += at2;
26138
26138
  }
26139
- if (C >>>= Q3, E3 -= Q3, e.back += Q3, 64 & et2) {
26139
+ if (C3 >>>= Q3, E3 -= Q3, e.back += Q3, 64 & et2) {
26140
26140
  g.msg = "invalid distance code", e.mode = 30;
26141
26141
  break;
26142
26142
  }
@@ -26145,9 +26145,9 @@ Actual: ` + p3.attribValue
26145
26145
  if (e.extra) {
26146
26146
  for (f3 = e.extra; E3 < f3; ) {
26147
26147
  if (L3 === 0) break t;
26148
- L3--, C += D3[U3++] << E3, E3 += 8;
26148
+ L3--, C3 += D3[U3++] << E3, E3 += 8;
26149
26149
  }
26150
- e.offset += C & (1 << e.extra) - 1, C >>>= e.extra, E3 -= e.extra, e.back += e.extra;
26150
+ e.offset += C3 & (1 << e.extra) - 1, C3 >>>= e.extra, E3 -= e.extra, e.back += e.extra;
26151
26151
  }
26152
26152
  if (e.offset > e.dmax) {
26153
26153
  g.msg = "invalid distance too far back", e.mode = 30;
@@ -26174,26 +26174,26 @@ Actual: ` + p3.attribValue
26174
26174
  if (e.wrap) {
26175
26175
  for (; E3 < 32; ) {
26176
26176
  if (L3 === 0) break t;
26177
- L3--, C |= D3[U3++] << E3, E3 += 8;
26177
+ L3--, C3 |= D3[U3++] << E3, E3 += 8;
26178
26178
  }
26179
- if (G -= q3, g.total_out += G, e.total += G, G && (g.adler = e.check = e.flags ? r(e.check, J3, G, $3 - G) : a(e.check, J3, G, $3 - G)), G = q3, (e.flags ? C : s(C)) !== e.check) {
26179
+ if (G -= q3, g.total_out += G, e.total += G, G && (g.adler = e.check = e.flags ? r(e.check, J3, G, $3 - G) : a(e.check, J3, G, $3 - G)), G = q3, (e.flags ? C3 : s(C3)) !== e.check) {
26180
26180
  g.msg = "incorrect data check", e.mode = 30;
26181
26181
  break;
26182
26182
  }
26183
- E3 = C = 0;
26183
+ E3 = C3 = 0;
26184
26184
  }
26185
26185
  e.mode = 28;
26186
26186
  case 28:
26187
26187
  if (e.wrap && e.flags) {
26188
26188
  for (; E3 < 32; ) {
26189
26189
  if (L3 === 0) break t;
26190
- L3--, C += D3[U3++] << E3, E3 += 8;
26190
+ L3--, C3 += D3[U3++] << E3, E3 += 8;
26191
26191
  }
26192
- if (C !== (4294967295 & e.total)) {
26192
+ if (C3 !== (4294967295 & e.total)) {
26193
26193
  g.msg = "incorrect length check", e.mode = 30;
26194
26194
  break;
26195
26195
  }
26196
- E3 = C = 0;
26196
+ E3 = C3 = 0;
26197
26197
  }
26198
26198
  e.mode = 29;
26199
26199
  case 29:
@@ -26208,7 +26208,7 @@ Actual: ` + p3.attribValue
26208
26208
  default:
26209
26209
  return i3;
26210
26210
  }
26211
- return g.next_out = $3, g.avail_out = q3, g.next_in = U3, g.avail_in = L3, e.hold = C, e.bits = E3, (e.wsize || G !== g.avail_out && e.mode < 30 && (e.mode < 27 || T3 !== 4)) && V(g, g.output, g.next_out, G - g.avail_out) ? (e.mode = 31, -4) : (Y3 -= g.avail_in, G -= g.avail_out, g.total_in += Y3, g.total_out += G, e.total += G, e.wrap && G && (g.adler = e.check = e.flags ? r(e.check, J3, G, g.next_out - G) : a(e.check, J3, G, g.next_out - G)), g.data_type = e.bits + (e.last ? 64 : 0) + (e.mode === 12 ? 128 : 0) + (e.mode === 20 || e.mode === 15 ? 256 : 0), (Y3 == 0 && G === 0 || T3 === 4) && B === b && (B = -5), B);
26211
+ return g.next_out = $3, g.avail_out = q3, g.next_in = U3, g.avail_in = L3, e.hold = C3, e.bits = E3, (e.wsize || G !== g.avail_out && e.mode < 30 && (e.mode < 27 || T3 !== 4)) && V(g, g.output, g.next_out, G - g.avail_out) ? (e.mode = 31, -4) : (Y3 -= g.avail_in, G -= g.avail_out, g.total_in += Y3, g.total_out += G, e.total += G, e.wrap && G && (g.adler = e.check = e.flags ? r(e.check, J3, G, g.next_out - G) : a(e.check, J3, G, g.next_out - G)), g.data_type = e.bits + (e.last ? 64 : 0) + (e.mode === 12 ? 128 : 0) + (e.mode === 20 || e.mode === 15 ? 256 : 0), (Y3 == 0 && G === 0 || T3 === 4) && B === b && (B = -5), B);
26212
26212
  }, y.inflateEnd = function(g) {
26213
26213
  if (!g || !g.state) return i3;
26214
26214
  var T3 = g.state;
@@ -26223,7 +26223,7 @@ Actual: ` + p3.attribValue
26223
26223
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(_3, R, y) {
26224
26224
  var l = _3("../utils/common"), a = [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], r = [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], h3 = [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], m = [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];
26225
26225
  R.exports = function(v, c3, b, i3, d, n, u, s) {
26226
- var p3, w, S3, x, F3, I3, j, O, W3, V = s.bits, g = 0, T3 = 0, e = 0, D3 = 0, J3 = 0, U3 = 0, $3 = 0, L3 = 0, q3 = 0, C = 0, E3 = null, Y3 = 0, G = new l.Buf16(16), H3 = new l.Buf16(16), it2 = null, lt2 = 0;
26226
+ var p3, w, S3, x, F3, I3, j, O, W3, V = s.bits, g = 0, T3 = 0, e = 0, D3 = 0, J3 = 0, U3 = 0, $3 = 0, L3 = 0, q3 = 0, C3 = 0, E3 = null, Y3 = 0, G = new l.Buf16(16), H3 = new l.Buf16(16), it2 = null, lt2 = 0;
26227
26227
  for (g = 0; g <= 15; g++) G[g] = 0;
26228
26228
  for (T3 = 0; T3 < i3; T3++) G[c3[b + T3]]++;
26229
26229
  for (J3 = V, D3 = 15; 1 <= D3 && G[D3] === 0; D3--) ;
@@ -26233,21 +26233,21 @@ Actual: ` + p3.attribValue
26233
26233
  if (0 < L3 && (v === 0 || D3 !== 1)) return -1;
26234
26234
  for (H3[1] = 0, g = 1; g < 15; g++) H3[g + 1] = H3[g] + G[g];
26235
26235
  for (T3 = 0; T3 < i3; T3++) c3[b + T3] !== 0 && (u[H3[c3[b + T3]]++] = T3);
26236
- if (I3 = v === 0 ? (E3 = it2 = u, 19) : v === 1 ? (E3 = a, Y3 -= 257, it2 = r, lt2 -= 257, 256) : (E3 = h3, it2 = m, -1), g = e, F3 = n, $3 = T3 = C = 0, S3 = -1, x = (q3 = 1 << (U3 = J3)) - 1, v === 1 && 852 < q3 || v === 2 && 592 < q3) return 1;
26236
+ if (I3 = v === 0 ? (E3 = it2 = u, 19) : v === 1 ? (E3 = a, Y3 -= 257, it2 = r, lt2 -= 257, 256) : (E3 = h3, it2 = m, -1), g = e, F3 = n, $3 = T3 = C3 = 0, S3 = -1, x = (q3 = 1 << (U3 = J3)) - 1, v === 1 && 852 < q3 || v === 2 && 592 < q3) return 1;
26237
26237
  for (; ; ) {
26238
- for (j = g - $3, W3 = u[T3] < I3 ? (O = 0, u[T3]) : u[T3] > I3 ? (O = it2[lt2 + u[T3]], E3[Y3 + u[T3]]) : (O = 96, 0), p3 = 1 << g - $3, e = w = 1 << U3; d[F3 + (C >> $3) + (w -= p3)] = j << 24 | O << 16 | W3 | 0, w !== 0; ) ;
26239
- for (p3 = 1 << g - 1; C & p3; ) p3 >>= 1;
26240
- if (p3 !== 0 ? (C &= p3 - 1, C += p3) : C = 0, T3++, --G[g] == 0) {
26238
+ for (j = g - $3, W3 = u[T3] < I3 ? (O = 0, u[T3]) : u[T3] > I3 ? (O = it2[lt2 + u[T3]], E3[Y3 + u[T3]]) : (O = 96, 0), p3 = 1 << g - $3, e = w = 1 << U3; d[F3 + (C3 >> $3) + (w -= p3)] = j << 24 | O << 16 | W3 | 0, w !== 0; ) ;
26239
+ for (p3 = 1 << g - 1; C3 & p3; ) p3 >>= 1;
26240
+ if (p3 !== 0 ? (C3 &= p3 - 1, C3 += p3) : C3 = 0, T3++, --G[g] == 0) {
26241
26241
  if (g === D3) break;
26242
26242
  g = c3[b + u[T3]];
26243
26243
  }
26244
- if (J3 < g && (C & x) !== S3) {
26244
+ if (J3 < g && (C3 & x) !== S3) {
26245
26245
  for ($3 === 0 && ($3 = J3), F3 += e, L3 = 1 << (U3 = g - $3); U3 + $3 < D3 && !((L3 -= G[U3 + $3]) <= 0); ) U3++, L3 <<= 1;
26246
26246
  if (q3 += 1 << U3, v === 1 && 852 < q3 || v === 2 && 592 < q3) return 1;
26247
- d[S3 = C & x] = J3 << 24 | U3 << 16 | F3 - n | 0;
26247
+ d[S3 = C3 & x] = J3 << 24 | U3 << 16 | F3 - n | 0;
26248
26248
  }
26249
26249
  }
26250
- return C !== 0 && (d[F3 + C] = g - $3 << 24 | 64 << 16 | 0), s.bits = J3, 0;
26250
+ return C3 !== 0 && (d[F3 + C3] = g - $3 << 24 | 64 << 16 | 0), s.bits = J3, 0;
26251
26251
  };
26252
26252
  }, { "../utils/common": 41 }], 51: [function(_3, R, y) {
26253
26253
  R.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" };
@@ -26270,7 +26270,7 @@ Actual: ` + p3.attribValue
26270
26270
  function q3(o, k, N3, P, z) {
26271
26271
  this.static_tree = o, this.extra_bits = k, this.extra_base = N3, this.elems = P, this.max_length = z, this.has_stree = o && o.length;
26272
26272
  }
26273
- function C(o, k) {
26273
+ function C3(o, k) {
26274
26274
  this.dyn_tree = o, this.max_code = 0, this.stat_desc = k;
26275
26275
  }
26276
26276
  function E3(o) {
@@ -26371,7 +26371,7 @@ Actual: ` + p3.attribValue
26371
26371
  for (; k <= 287; ) V[2 * k + 1] = 8, k++, K3[8]++;
26372
26372
  for (lt2(V, b + 1, K3), k = 0; k < i3; k++) g[2 * k + 1] = 5, g[2 * k] = it2(k, 5);
26373
26373
  J3 = new q3(V, I3, c3 + 1, b, u), U3 = new q3(g, j, 0, i3, u), $3 = new q3(new Array(0), O, 0, d, p3);
26374
- }(), A = true), o.l_desc = new C(o.dyn_ltree, J3), o.d_desc = new C(o.dyn_dtree, U3), o.bl_desc = new C(o.bl_tree, $3), o.bi_buf = 0, o.bi_valid = 0, Q3(o);
26374
+ }(), A = true), o.l_desc = new C3(o.dyn_ltree, J3), o.d_desc = new C3(o.dyn_dtree, U3), o.bl_desc = new C3(o.bl_tree, $3), o.bi_buf = 0, o.bi_valid = 0, Q3(o);
26375
26375
  }, y._tr_stored_block = f3, y._tr_flush_block = function(o, k, N3, P) {
26376
26376
  var z, Z3, K3 = 0;
26377
26377
  0 < o.level ? (o.strm.data_type === 2 && (o.strm.data_type = function(M3) {
@@ -29924,8 +29924,8 @@ Actual: ` + p3.attribValue
29924
29924
  let w = a[b + 1];
29925
29925
  if (w < 0 || f3 > w + d - u)
29926
29926
  continue;
29927
- let C = a[b] + d - u;
29928
- p3 >= C ? a[b + 1] = f3 <= C ? -2 : -1 : f3 >= d && g && (a[b] += g, a[b + 1] += g);
29927
+ let C3 = a[b] + d - u;
29928
+ p3 >= C3 ? a[b + 1] = f3 <= C3 ? -2 : -1 : f3 >= d && g && (a[b] += g, a[b + 1] += g);
29929
29929
  }
29930
29930
  u += g;
29931
29931
  }), d = n.maps[c3].map(d, -1);
@@ -30323,8 +30323,8 @@ Actual: ` + p3.attribValue
30323
30323
  return;
30324
30324
  }
30325
30325
  e.state.selection.from < e.state.selection.to && h3.start == h3.endB && e.state.selection instanceof tt$3 && (h3.start > e.state.selection.from && h3.start <= e.state.selection.from + 2 && e.state.selection.from >= c3.from ? h3.start = e.state.selection.from : h3.endA < e.state.selection.to && h3.endA >= e.state.selection.to - 2 && e.state.selection.to <= c3.to && (h3.endB += e.state.selection.to - h3.endA, h3.endA = e.state.selection.to)), Te$1 && Lt <= 11 && h3.endB == h3.start + 1 && h3.endA == h3.start && h3.start > c3.from && c3.doc.textBetween(h3.start - c3.from - 1, h3.start - c3.from + 1) == "  " && (h3.start--, h3.endA--, h3.endB--);
30326
- let m = c3.doc.resolveNoCache(h3.start - c3.from), g = c3.doc.resolveNoCache(h3.endB - c3.from), b = d.resolve(h3.start), w = m.sameParent(g) && m.parent.inlineContent && b.end() >= h3.endA, C;
30327
- if ((Nn$2 && e.input.lastIOSEnter > Date.now() - 225 && (!w || o.some((x) => x.nodeName == "DIV" || x.nodeName == "P")) || !w && m.pos < c3.doc.content.size && (!m.sameParent(g) || !m.parent.inlineContent) && (C = Ee$1.findFrom(c3.doc.resolve(m.pos + 1), 1, true)) && C.head > m.pos) && e.someProp("handleKeyDown", (x) => x(e, Gt$2(13, "Enter")))) {
30326
+ let m = c3.doc.resolveNoCache(h3.start - c3.from), g = c3.doc.resolveNoCache(h3.endB - c3.from), b = d.resolve(h3.start), w = m.sameParent(g) && m.parent.inlineContent && b.end() >= h3.endA, C3;
30327
+ if ((Nn$2 && e.input.lastIOSEnter > Date.now() - 225 && (!w || o.some((x) => x.nodeName == "DIV" || x.nodeName == "P")) || !w && m.pos < c3.doc.content.size && (!m.sameParent(g) || !m.parent.inlineContent) && (C3 = Ee$1.findFrom(c3.doc.resolve(m.pos + 1), 1, true)) && C3.head > m.pos) && e.someProp("handleKeyDown", (x) => x(e, Gt$2(13, "Enter")))) {
30328
30328
  e.input.lastIOSEnter = 0;
30329
30329
  return;
30330
30330
  }
@@ -31767,14 +31767,14 @@ Actual: ` + p3.attribValue
31767
31767
  /** @type {PModel.Node} */
31768
31768
  p3,
31769
31769
  r
31770
- ), C = Ya$1(
31770
+ ), C3 = Ya$1(
31771
31771
  /** @type {Y.XmlElement} */
31772
31772
  h3,
31773
31773
  /** @type {PModel.Node} */
31774
31774
  m,
31775
31775
  r
31776
31776
  );
31777
- w.foundMappedChild && !C.foundMappedChild ? b = false : !w.foundMappedChild && C.foundMappedChild || w.equalityFactor < C.equalityFactor ? g = false : b = false;
31777
+ w.foundMappedChild && !C3.foundMappedChild ? b = false : !w.foundMappedChild && C3.foundMappedChild || w.equalityFactor < C3.equalityFactor ? g = false : b = false;
31778
31778
  }
31779
31779
  g ? (zi$1(
31780
31780
  e,
@@ -33291,8 +33291,8 @@ Actual: ` + p3.attribValue
33291
33291
  if (p3.canReplace(p3.childCount, p3.childCount, m.content)) {
33292
33292
  if (n) {
33293
33293
  let b = ee$1.empty;
33294
- for (let C = h3.length - 1; C >= 0; C--)
33295
- b = ee$1.from(h3[C].copy(b));
33294
+ for (let C3 = h3.length - 1; C3 >= 0; C3--)
33295
+ b = ee$1.from(h3[C3].copy(b));
33296
33296
  let w = e.tr.step(new $e$1(t.pos - h3.length, t.pos + i3.nodeSize, t.pos + g, t.pos + i3.nodeSize - g, new ae$2(b, h3.length, 0), 0, true));
33297
33297
  n(w.scrollIntoView());
33298
33298
  }
@@ -33483,8 +33483,8 @@ Actual: ` + p3.attribValue
33483
33483
  const p3 = u.pos, h3 = f3.pos;
33484
33484
  e.doc.nodesBetween(p3, h3, (m, g) => {
33485
33485
  if (!m.isText && !m.marks.length) return;
33486
- const b = Math.max(p3, g), w = Math.min(h3, g + m.nodeSize), C = w - b;
33487
- s += C, a.push(
33486
+ const b = Math.max(p3, g), w = Math.min(h3, g + m.nodeSize), C3 = w - b;
33487
+ s += C3, a.push(
33488
33488
  ...m.marks.map((y) => ({
33489
33489
  mark: y,
33490
33490
  from: b,
@@ -34959,7 +34959,7 @@ Actual: ` + p3.attribValue
34959
34959
  const o = e.doc.nodeAt(r);
34960
34960
  return n.node.type === o?.type && Rp$1(e.doc, r) && e.join(r), true;
34961
34961
  }, By = (e, t, n, r = {}) => (o) => {
34962
- const { editor: i3, tr: s, state: a, dispatch: l, chain: c3, can: d, commands: u } = o, { extensions: f3, splittableMarks: p3 } = i3.extensionService, h3 = le$2(e, a.schema), m = le$2(t, a.schema), { selection: g, storedMarks: b } = a, { $from: w, $to: C } = g, y = w.blockRange(C), M3 = b || g.$to.parentOffset && g.$from.marks();
34962
+ const { editor: i3, tr: s, state: a, dispatch: l, chain: c3, can: d, commands: u } = o, { extensions: f3, splittableMarks: p3 } = i3.extensionService, h3 = le$2(e, a.schema), m = le$2(t, a.schema), { selection: g, storedMarks: b } = a, { $from: w, $to: C3 } = g, y = w.blockRange(C3), M3 = b || g.$to.parentOffset && g.$from.marks();
34963
34963
  if (!y) return false;
34964
34964
  const k = He$2((z) => Ui$1(z.type.name, f3))(g), { numbering: A } = i3.converter;
34965
34965
  if (y.depth >= 1 && k && y.depth - k.depth <= 1) {
@@ -35020,11 +35020,11 @@ Actual: ` + p3.attribValue
35020
35020
  const b = a.index(-1) ? 1 : a.index(-2) ? 2 : 3;
35021
35021
  for (let A = a.depth - b; A >= a.depth - 3; A--)
35022
35022
  g = ee$1.from(a.node(A).copy(g));
35023
- const w = a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3, C = D.getSplittedAttributes(
35023
+ const w = a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3, C3 = D.getSplittedAttributes(
35024
35024
  u,
35025
35025
  a.node().type.name,
35026
35026
  a.node().attrs
35027
- ), y = s.contentMatch.defaultType?.createAndFill(C) || void 0;
35027
+ ), y = s.contentMatch.defaultType?.createAndFill(C3) || void 0;
35028
35028
  g = g.append(ee$1.from(s.createAndFill(null, y) || void 0));
35029
35029
  const M3 = a.before(a.depth - (b - 1));
35030
35030
  n.replace(M3, a.after(-w), new ae$2(g, 4 - b, 0));
@@ -35049,9 +35049,9 @@ Actual: ` + p3.attribValue
35049
35049
  if (!Ip$1(n.doc, a.pos, 2))
35050
35050
  return false;
35051
35051
  if (o) {
35052
- const { selection: g, storedMarks: b } = r, { splittableMarks: w } = i3.extensionService, C = b || g.$to.parentOffset && g.$from.marks();
35053
- if (n.split(a.pos, 2, m).scrollIntoView(), !C || !o) return true;
35054
- const y = C.filter((M3) => w.includes(M3.type.name));
35052
+ const { selection: g, storedMarks: b } = r, { splittableMarks: w } = i3.extensionService, C3 = b || g.$to.parentOffset && g.$from.marks();
35053
+ if (n.split(a.pos, 2, m).scrollIntoView(), !C3 || !o) return true;
35054
+ const y = C3.filter((M3) => w.includes(M3.type.name));
35055
35055
  n.ensureMarks(y), n.setMeta("splitListItem", y);
35056
35056
  }
35057
35057
  return true;
@@ -35607,13 +35607,13 @@ Actual: ` + p3.attribValue
35607
35607
  node: m
35608
35608
  });
35609
35609
  const g = f3;
35610
- g && r.filter((w) => w.parentCommentId === g).sort((w, C) => w.createdTime - C.createdTime).forEach((w) => {
35611
- const C = tl$1(w), y = n.nodes.commentRangeStart.create(C);
35610
+ g && r.filter((w) => w.parentCommentId === g).sort((w, C3) => w.createdTime - C3.createdTime).forEach((w) => {
35611
+ const C3 = tl$1(w), y = n.nodes.commentRangeStart.create(C3);
35612
35612
  s.add(w.commentId), o.push({
35613
35613
  pos: l,
35614
35614
  node: y
35615
35615
  });
35616
- const M3 = n.nodes.commentRangeEnd.create(C);
35616
+ const M3 = n.nodes.commentRangeEnd.create(C3);
35617
35617
  i3.push({
35618
35618
  pos: l + a.nodeSize,
35619
35619
  node: M3
@@ -35842,8 +35842,8 @@ Actual: ` + p3.attribValue
35842
35842
  activeCommentId: n || null
35843
35843
  };
35844
35844
  t = true, e.emit("commentsUpdate", w);
35845
- const { tr: C } = e.view.state, { dispatch: y } = e.view;
35846
- C.setMeta(he$2, { type: "force" }), y(C);
35845
+ const { tr: C3 } = e.view.state, { dispatch: y } = e.view;
35846
+ C3.setMeta(he$2, { type: "force" }), y(C3);
35847
35847
  }
35848
35848
  }
35849
35849
  return i3;
@@ -35863,7 +35863,7 @@ Actual: ` + p3.attribValue
35863
35863
  i3 = c3, t = false;
35864
35864
  const u = [], f3 = {};
35865
35865
  c3.descendants((b, w) => {
35866
- const { marks: C = [] } = b, y = C.filter(
35866
+ const { marks: C3 = [] } = b, y = C3.filter(
35867
35867
  (A) => A.type.name === Re$1
35868
35868
  );
35869
35869
  let M3 = false;
@@ -36067,7 +36067,7 @@ Actual: ` + p3.attribValue
36067
36067
  });
36068
36068
  if (!b && !w)
36069
36069
  return;
36070
- const C = {
36070
+ const C3 = {
36071
36071
  event: Mp$1.ADD,
36072
36072
  type: "trackedChange",
36073
36073
  documentId: i3,
@@ -36079,7 +36079,7 @@ Actual: ` + p3.attribValue
36079
36079
  authorEmail: u,
36080
36080
  date: f3
36081
36081
  };
36082
- return e === "add" ? C.event = Mp$1.ADD : e === "update" && (C.event = Mp$1.UPDATE), C;
36082
+ return e === "add" ? C3.event = Mp$1.ADD : e === "update" && (C3.event = Mp$1.UPDATE), C3;
36083
36083
  };
36084
36084
  function ub(e, t) {
36085
36085
  let n = null;
@@ -36107,10 +36107,10 @@ Actual: ` + p3.attribValue
36107
36107
  to: b,
36108
36108
  user: s,
36109
36109
  date: a
36110
- }), C = new Ie$2(p3.from, p3.to, g.doc.slice(p3.from, b));
36111
- r.step(C);
36110
+ }), C3 = new Ie$2(p3.from, p3.to, g.doc.slice(p3.from, b));
36111
+ r.step(C3);
36112
36112
  const y = o.maps.length - 1;
36113
- o.appendMap(C.getMap(), y), p3.from !== b && (m.insertedMark = w, m.step = C), r.selection.eq(g.selection) || r.setSelection(g.selection);
36113
+ o.appendMap(C3.getMap(), y), p3.from !== b && (m.insertedMark = w, m.step = C3), r.selection.eq(g.selection) || r.setSelection(g.selection);
36114
36114
  }
36115
36115
  if (n.from !== n.to) {
36116
36116
  const { deletionMark: g, deletionMap: b, nodes: w } = Od$1({
@@ -36285,11 +36285,11 @@ Actual: ` + p3.attribValue
36285
36285
  }, ol$1 = (e) => {
36286
36286
  if (e === "initial" || e === "0.4.14") return Object.values(mb);
36287
36287
  };
36288
- var en$1, ws, S$1, _d$1, $d$1, Ki$1, Xi$1, Vd$1, Ji$1, Yi$1, Gi$1, Zi$1, Qi$1, es$1, Hd$1, ts$1, ns$1, rs$1, is$1, jd$1, Zn$2, Qn$2, Wd$1, Ud$1, qd$1, Kd$1;
36288
+ var en$1, ws, S, _d$1, $d$1, Ki$1, Xi$1, Vd$1, Ji$1, Yi$1, Gi$1, Zi$1, Qi$1, es$1, Hd$1, ts$1, ns$1, rs$1, is$1, jd$1, Zn$2, Qn$2, Wd$1, Ud$1, qd$1, Kd$1;
36289
36289
  const Qs = class Qs2 extends bg {
36290
36290
  constructor(n) {
36291
36291
  super();
36292
- ft(this, S$1);
36292
+ ft(this, S);
36293
36293
  ft(this, en$1);
36294
36294
  I$2(this, "extensionService");
36295
36295
  I$2(this, "extensionStorage", {});
@@ -36357,11 +36357,11 @@ Actual: ` + p3.attribValue
36357
36357
  // telemetry
36358
36358
  telemetry: null
36359
36359
  });
36360
- N$1(this, S$1, _d$1).call(this, n), N$1(this, S$1, Vd$1).call(this, n), this.setOptions(n);
36360
+ N$1(this, S, _d$1).call(this, n), N$1(this, S, Vd$1).call(this, n), this.setOptions(n);
36361
36361
  let r = {
36362
- docx: () => N$1(this, S$1, $d$1).call(this, this.options),
36363
- text: () => N$1(this, S$1, Ki$1).call(this, this.options),
36364
- html: () => N$1(this, S$1, Ki$1).call(this, this.options),
36362
+ docx: () => N$1(this, S, $d$1).call(this, this.options),
36363
+ text: () => N$1(this, S, Ki$1).call(this, this.options),
36364
+ html: () => N$1(this, S, Ki$1).call(this, this.options),
36365
36365
  default: () => {
36366
36366
  console.log("Not implemented.");
36367
36367
  }
@@ -36433,7 +36433,7 @@ Actual: ` + p3.attribValue
36433
36433
  }
36434
36434
  setDocumentMode(n) {
36435
36435
  let r = n?.toLowerCase() || "editing";
36436
- this.extensionService && (this.options.role === "viewer" && (r = "viewing"), this.options.role === "suggester" && r === "editing" && (r = "suggesting"), r === "viewing" ? (this.commands.toggleTrackChangesShowOriginal(), this.setEditable(false, false)) : r === "suggesting" ? (N$1(this, S$1, Yi$1).call(this, "TrackChangesBase"), this.commands.disableTrackChangesShowOriginal(), this.commands.enableTrackChanges(), this.setEditable(true, false)) : r === "editing" && (N$1(this, S$1, Yi$1).call(this, "TrackChangesBase"), this.commands.disableTrackChangesShowOriginal(), this.commands.disableTrackChanges(), this.setEditable(true, false)));
36436
+ this.extensionService && (this.options.role === "viewer" && (r = "viewing"), this.options.role === "suggester" && r === "editing" && (r = "suggesting"), r === "viewing" ? (this.commands.toggleTrackChangesShowOriginal(), this.setEditable(false, false)) : r === "suggesting" ? (N$1(this, S, Yi$1).call(this, "TrackChangesBase"), this.commands.disableTrackChangesShowOriginal(), this.commands.enableTrackChanges(), this.setEditable(true, false)) : r === "editing" && (N$1(this, S, Yi$1).call(this, "TrackChangesBase"), this.commands.disableTrackChangesShowOriginal(), this.commands.disableTrackChanges(), this.setEditable(true, false)));
36437
36437
  }
36438
36438
  /**
36439
36439
  * If we are replacing data and have a valid provider, listen for synced event
@@ -36442,9 +36442,9 @@ Actual: ` + p3.attribValue
36442
36442
  initializeCollaborationData() {
36443
36443
  if (!this.options.isNewFile || !this.options.collaborationProvider) return;
36444
36444
  const { collaborationProvider: n } = this.options, r = () => {
36445
- n.off("synced", r), N$1(this, S$1, Ji$1).call(this);
36445
+ n.off("synced", r), N$1(this, S, Ji$1).call(this);
36446
36446
  };
36447
- n.synced ? N$1(this, S$1, Ji$1).call(this) : n.on("synced", r);
36447
+ n.synced ? N$1(this, S, Ji$1).call(this) : n.on("synced", r);
36448
36448
  }
36449
36449
  /**
36450
36450
  * Set editor options and update state.
@@ -36611,7 +36611,7 @@ Actual: ` + p3.attribValue
36611
36611
  * Export the editor document to DOCX.
36612
36612
  */
36613
36613
  async exportDocx({ isFinalDoc: n = false, commentsType: r, comments: o = [] } = {}) {
36614
- const i3 = N$1(this, S$1, qd$1).call(this, o), s = await this.converter.exportToDocx(
36614
+ const i3 = N$1(this, S, qd$1).call(this, o), s = await this.converter.exportToDocx(
36615
36615
  i3,
36616
36616
  this.schema,
36617
36617
  this.storage.image.media,
@@ -36629,8 +36629,8 @@ Actual: ` + p3.attribValue
36629
36629
  "word/styles.xml": String(l).replace(/&/gi, "&amp;")
36630
36630
  };
36631
36631
  if (o.length) {
36632
- const b = this.converter.schemaToXml(this.converter.convertedXml["word/comments.xml"].elements[0]), w = this.converter.schemaToXml(this.converter.convertedXml["word/commentsExtended.xml"].elements[0]), C = this.converter.schemaToXml(this.converter.convertedXml["word/commentsExtensible.xml"].elements[0]), y = this.converter.schemaToXml(this.converter.convertedXml["word/commentsIds.xml"].elements[0]);
36633
- h3["word/comments.xml"] = String(b), h3["word/commentsExtended.xml"] = String(w), h3["word/commentsExtensible.xml"] = String(C), h3["word/commentsIds.xml"] = String(y);
36632
+ const b = this.converter.schemaToXml(this.converter.convertedXml["word/comments.xml"].elements[0]), w = this.converter.schemaToXml(this.converter.convertedXml["word/commentsExtended.xml"].elements[0]), C3 = this.converter.schemaToXml(this.converter.convertedXml["word/commentsExtensible.xml"].elements[0]), y = this.converter.schemaToXml(this.converter.convertedXml["word/commentsIds.xml"].elements[0]);
36633
+ h3["word/comments.xml"] = String(b), h3["word/commentsExtended.xml"] = String(w), h3["word/commentsExtensible.xml"] = String(C3), h3["word/commentsIds.xml"] = String(y);
36634
36634
  }
36635
36635
  const g = await new Nt$2().updateZip({
36636
36636
  docx: this.options.content,
@@ -36649,7 +36649,7 @@ Actual: ` + p3.attribValue
36649
36649
  * Destroy the editor.
36650
36650
  */
36651
36651
  destroy() {
36652
- this.emit("destroy"), this.view && this.view.destroy(), N$1(this, S$1, Kd$1).call(this), this.removeAllListeners();
36652
+ this.emit("destroy"), this.view && this.view.destroy(), N$1(this, S, Kd$1).call(this), this.removeAllListeners();
36653
36653
  }
36654
36654
  static checkIfMigrationsNeeded(n) {
36655
36655
  n || (n = "initial");
@@ -36662,7 +36662,7 @@ Actual: ` + p3.attribValue
36662
36662
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
36663
36663
  */
36664
36664
  processCollaborationMigrations() {
36665
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.51"), !this.options.ydoc) return;
36665
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.53"), !this.options.ydoc) return;
36666
36666
  let r = this.options.ydoc.getMap("meta").get("version");
36667
36667
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
36668
36668
  const o = ol$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
@@ -36684,21 +36684,21 @@ Actual: ` + p3.attribValue
36684
36684
  isNewFile: true,
36685
36685
  shouldLoadComments: true,
36686
36686
  replacedFile: true
36687
- }), N$1(this, S$1, Qi$1).call(this), N$1(this, S$1, es$1).call(this), this.initDefaultStyles(), this.initializeCollaborationData(true), this.options.ydoc || (N$1(this, S$1, Qn$2).call(this), N$1(this, S$1, Zn$2).call(this));
36687
+ }), N$1(this, S, Qi$1).call(this), N$1(this, S, es$1).call(this), this.initDefaultStyles(), this.initializeCollaborationData(true), this.options.ydoc || (N$1(this, S, Qn$2).call(this), N$1(this, S, Zn$2).call(this));
36688
36688
  }
36689
36689
  };
36690
- en$1 = /* @__PURE__ */ new WeakMap(), ws = /* @__PURE__ */ new WeakMap(), S$1 = /* @__PURE__ */ new WeakSet(), _d$1 = function(n) {
36690
+ en$1 = /* @__PURE__ */ new WeakMap(), ws = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakSet(), _d$1 = function(n) {
36691
36691
  if (!n.element && n.selector) {
36692
36692
  const { selector: r } = n;
36693
36693
  r.startsWith("#") || r.startsWith(".") ? n.element = document.querySelector(r) : n.element = document.getElementById(r), ["text", "html"].includes(n.mode) && n.element && n.element.classList.add("sd-super-editor-html");
36694
36694
  }
36695
36695
  n.element = n.isHeadless ? null : n.element || document.createElement("div");
36696
36696
  }, $d$1 = function(n) {
36697
- N$1(this, S$1, Gi$1).call(this), N$1(this, S$1, Zi$1).call(this), N$1(this, S$1, ts$1).call(this), N$1(this, S$1, Qi$1).call(this), N$1(this, S$1, es$1).call(this), N$1(this, S$1, Hd$1).call(this), this.on("beforeCreate", this.options.onBeforeCreate), this.emit("beforeCreate", { editor: this }), this.on("contentError", this.options.onContentError), this.on("exception", this.options.onException), N$1(this, S$1, is$1).call(this), this.initDefaultStyles(), this.setDocumentMode(n.documentMode), !this.options.isHeadless && (this.on("create", this.options.onCreate), this.on("update", this.options.onUpdate), this.on("selectionUpdate", this.options.onSelectionUpdate), this.on("transaction", this.options.onTransaction), this.on("focus", N$1(this, S$1, Xi$1)), this.on("blur", this.options.onBlur), this.on("destroy", this.options.onDestroy), this.on("trackedChangesUpdate", this.options.onTrackedChangesUpdate), this.on("commentsLoaded", this.options.onCommentsLoaded), this.on("commentClick", this.options.onCommentClicked), this.on("commentsUpdate", this.options.onCommentsUpdate), this.on("locked", this.options.onDocumentLocked), this.on("collaborationReady", N$1(this, S$1, jd$1)), this.on("paginationUpdate", this.options.onPaginationUpdate), this.on("comment-positions", this.options.onCommentLocationsUpdate), this.initializeCollaborationData(), this.options.ydoc || (N$1(this, S$1, Qn$2).call(this), N$1(this, S$1, Zn$2).call(this)), window.setTimeout(() => {
36697
+ N$1(this, S, Gi$1).call(this), N$1(this, S, Zi$1).call(this), N$1(this, S, ts$1).call(this), N$1(this, S, Qi$1).call(this), N$1(this, S, es$1).call(this), N$1(this, S, Hd$1).call(this), this.on("beforeCreate", this.options.onBeforeCreate), this.emit("beforeCreate", { editor: this }), this.on("contentError", this.options.onContentError), this.on("exception", this.options.onException), N$1(this, S, is$1).call(this), this.initDefaultStyles(), this.setDocumentMode(n.documentMode), !this.options.isHeadless && (this.on("create", this.options.onCreate), this.on("update", this.options.onUpdate), this.on("selectionUpdate", this.options.onSelectionUpdate), this.on("transaction", this.options.onTransaction), this.on("focus", N$1(this, S, Xi$1)), this.on("blur", this.options.onBlur), this.on("destroy", this.options.onDestroy), this.on("trackedChangesUpdate", this.options.onTrackedChangesUpdate), this.on("commentsLoaded", this.options.onCommentsLoaded), this.on("commentClick", this.options.onCommentClicked), this.on("commentsUpdate", this.options.onCommentsUpdate), this.on("locked", this.options.onDocumentLocked), this.on("collaborationReady", N$1(this, S, jd$1)), this.on("paginationUpdate", this.options.onPaginationUpdate), this.on("comment-positions", this.options.onCommentLocationsUpdate), this.initializeCollaborationData(), this.options.ydoc || (N$1(this, S, Qn$2).call(this), N$1(this, S, Zn$2).call(this)), window.setTimeout(() => {
36698
36698
  this.isDestroyed || this.emit("create", { editor: this });
36699
36699
  }, 0));
36700
36700
  }, Ki$1 = function(n) {
36701
- (!n.extensions || !n.extensions.length) && (this.options.extensions = Jk()), N$1(this, S$1, Gi$1).call(this), N$1(this, S$1, Zi$1).call(this), N$1(this, S$1, ts$1).call(this), this.on("beforeCreate", this.options.onBeforeCreate), this.emit("beforeCreate", { editor: this }), this.on("contentError", this.options.onContentError), N$1(this, S$1, is$1).call(this), this.on("create", this.options.onCreate), this.on("update", this.options.onUpdate), this.on("selectionUpdate", this.options.onSelectionUpdate), this.on("transaction", this.options.onTransaction), this.on("focus", N$1(this, S$1, Xi$1)), this.on("blur", this.options.onBlur), this.on("destroy", this.options.onDestroy), this.on("commentsLoaded", this.options.onCommentsLoaded), this.on("commentClick", this.options.onCommentClicked), this.on("locked", this.options.onDocumentLocked), window.setTimeout(() => {
36701
+ (!n.extensions || !n.extensions.length) && (this.options.extensions = Jk()), N$1(this, S, Gi$1).call(this), N$1(this, S, Zi$1).call(this), N$1(this, S, ts$1).call(this), this.on("beforeCreate", this.options.onBeforeCreate), this.emit("beforeCreate", { editor: this }), this.on("contentError", this.options.onContentError), N$1(this, S, is$1).call(this), this.on("create", this.options.onCreate), this.on("update", this.options.onUpdate), this.on("selectionUpdate", this.options.onSelectionUpdate), this.on("transaction", this.options.onTransaction), this.on("focus", N$1(this, S, Xi$1)), this.on("blur", this.options.onBlur), this.on("destroy", this.options.onDestroy), this.on("commentsLoaded", this.options.onCommentsLoaded), this.on("commentClick", this.options.onCommentClicked), this.on("locked", this.options.onDocumentLocked), window.setTimeout(() => {
36702
36702
  this.isDestroyed || this.emit("create", { editor: this });
36703
36703
  }, 0);
36704
36704
  }, Xi$1 = function({ editor: n, event: r }) {
@@ -36712,9 +36712,9 @@ Actual: ` + p3.attribValue
36712
36712
  Ji$1 = function() {
36713
36713
  if (!this.options.isNewFile) return;
36714
36714
  this.options.isNewFile = false;
36715
- const n = N$1(this, S$1, ns$1).call(this), r = this.state.tr.replaceWith(0, this.state.doc.content.size, n);
36715
+ const n = N$1(this, S, ns$1).call(this), r = this.state.tr.replaceWith(0, this.state.doc.content.size, n);
36716
36716
  this.view.dispatch(r), setTimeout(() => {
36717
- N$1(this, S$1, Qn$2).call(this), N$1(this, S$1, Zn$2).call(this);
36717
+ N$1(this, S, Qn$2).call(this), N$1(this, S, Zn$2).call(this);
36718
36718
  }, 50);
36719
36719
  }, Yi$1 = function(n) {
36720
36720
  const r = this.extensionService?.plugins.find((i3) => i3.key.startsWith(n)), o = this.state.plugins.find((i3) => i3.key.startsWith(n));
@@ -36774,7 +36774,7 @@ Actual: ` + p3.attribValue
36774
36774
  let n;
36775
36775
  try {
36776
36776
  const { mode: r, fragment: o, isHeadless: i3, content: s, loadFromSchema: a } = this.options;
36777
- r === "docx" ? (n = xd$1(this.converter, this.schema, this), n = N$1(this, S$1, Ud$1).call(this, n), this.options.html && (n = N$1(this, S$1, rs$1).call(this, this.options.html)), o && (n = ag(o, this.schema))) : (r === "text" || r === "html") && (a ? n = this.schema.nodeFromJSON(s) : s ? n = N$1(this, S$1, rs$1).call(this, s) : n = this.schema.topNodeType.createAndFill());
36777
+ r === "docx" ? (n = xd$1(this.converter, this.schema, this), n = N$1(this, S, Ud$1).call(this, n), this.options.html && (n = N$1(this, S, rs$1).call(this, this.options.html)), o && (n = ag(o, this.schema))) : (r === "text" || r === "html") && (a ? n = this.schema.nodeFromJSON(s) : s ? n = N$1(this, S, rs$1).call(this, s) : n = this.schema.topNodeType.createAndFill());
36778
36778
  } catch (r) {
36779
36779
  console.error(r), this.emit("contentError", { editor: this, error: r });
36780
36780
  }
@@ -36795,11 +36795,11 @@ Actual: ` + p3.attribValue
36795
36795
  * Creates PM View.
36796
36796
  */
36797
36797
  is$1 = function() {
36798
- let n = N$1(this, S$1, ns$1).call(this);
36798
+ let n = N$1(this, S, ns$1).call(this);
36799
36799
  const r = { schema: this.schema };
36800
36800
  this.options.ydoc || (r.doc = n), this.view = new Uc$1(this.options.element, {
36801
36801
  ...this.options.editorProps,
36802
- dispatchTransaction: N$1(this, S$1, Wd$1).bind(this),
36802
+ dispatchTransaction: N$1(this, S, Wd$1).bind(this),
36803
36803
  state: vt$1.create(r)
36804
36804
  });
36805
36805
  const o = this.state.reconfigure({
@@ -36809,7 +36809,7 @@ Actual: ` + p3.attribValue
36809
36809
  const i3 = this.view.dom;
36810
36810
  i3.editor = this, this.options.telemetry?.sendReport();
36811
36811
  }, jd$1 = function({ editor: n, ydoc: r }) {
36812
- this.options.collaborationIsReady || (console.debug("🔗 [super-editor] Collaboration ready"), this.options.onCollaborationReady({ editor: n, ydoc: r }), this.options.collaborationIsReady = true, this.options.isNewFile || (N$1(this, S$1, Qn$2).call(this), N$1(this, S$1, Zn$2).call(this)));
36812
+ this.options.collaborationIsReady || (console.debug("🔗 [super-editor] Collaboration ready"), this.options.onCollaborationReady({ editor: n, ydoc: r }), this.options.collaborationIsReady = true, this.options.isNewFile || (N$1(this, S, Qn$2).call(this), N$1(this, S, Zn$2).call(this)));
36813
36813
  }, /**
36814
36814
  * Initialize comments plugin
36815
36815
  */
@@ -37941,11 +37941,11 @@ Actual: ` + p3.attribValue
37941
37941
  let [f3] = u, p3 = f3.node.attrs.order;
37942
37942
  u.forEach((h3, m) => {
37943
37943
  if (m === 0) return;
37944
- let { node: g, pos: b } = h3, w = u[m - 1], C = p3 + w.node.childCount;
37945
- g.attrs.order !== C && (s.setNodeMarkup(b, void 0, {
37944
+ let { node: g, pos: b } = h3, w = u[m - 1], C3 = p3 + w.node.childCount;
37945
+ g.attrs.order !== C3 && (s.setNodeMarkup(b, void 0, {
37946
37946
  ...g.attrs,
37947
- order: C
37948
- }), c3 = true), p3 = C;
37947
+ order: C3
37948
+ }), c3 = true), p3 = C3;
37949
37949
  });
37950
37950
  }), c3 ? s : null;
37951
37951
  }
@@ -38180,7 +38180,7 @@ Actual: ` + p3.attribValue
38180
38180
  return false;
38181
38181
  let { $from: p3 } = r.selection, h3 = r.doc.nodeAt(f3), m = p3.after(), g = r.doc.nodeAt(m), b = h3?.type.name === this.name, w = g?.type.name === this.name;
38182
38182
  if (b && w) {
38183
- let C = h3.attrs.order || 1, y = h3.childCount, M3 = h3.attrs.syncId, k = y + C, A = M3 || $b();
38183
+ let C3 = h3.attrs.order || 1, y = h3.childCount, M3 = h3.attrs.syncId, k = y + C3, A = M3 || $b();
38184
38184
  r.setNodeMarkup(m, void 0, {
38185
38185
  ...g.attrs,
38186
38186
  order: k,
@@ -38309,8 +38309,8 @@ Actual: ` + p3.attribValue
38309
38309
  c3.forEach((b) => {
38310
38310
  let { attrs: w } = b;
38311
38311
  if (w.fontSize && !u) {
38312
- let [C, y] = Of$1(w.fontSize);
38313
- Number.isNaN(C) || (y = y ?? "pt", u = `${C}${y}`);
38312
+ let [C3, y] = Of$1(w.fontSize);
38313
+ Number.isNaN(C3) || (y = y ?? "pt", u = `${C3}${y}`);
38314
38314
  }
38315
38315
  w.fontFamily && !f3 && (f3 = w.fontFamily);
38316
38316
  });
@@ -39033,8 +39033,8 @@ Actual: ` + p3.attribValue
39033
39033
  }
39034
39034
  l = l.nextSibling;
39035
39035
  } else {
39036
- const b = document.createElement("col"), [w, C] = dd$2(r, m);
39037
- b.style.setProperty(w, C), t.appendChild(b);
39036
+ const b = document.createElement("col"), [w, C3] = dd$2(r, m);
39037
+ b.style.setProperty(w, C3), t.appendChild(b);
39038
39038
  }
39039
39039
  }
39040
39040
  }
@@ -39205,16 +39205,16 @@ Actual: ` + p3.attribValue
39205
39205
  for (; o < r.length && r[o] != 0; ) o++;
39206
39206
  if (h3 == u.childCount) break;
39207
39207
  const m = u.child(h3), { colspan: g, rowspan: b, colwidth: w } = m.attrs;
39208
- for (let C = 0; C < b; C++) {
39209
- if (C + c3 >= n) {
39208
+ for (let C3 = 0; C3 < b; C3++) {
39209
+ if (C3 + c3 >= n) {
39210
39210
  (i3 || (i3 = [])).push({
39211
39211
  type: "overlong_rowspan",
39212
39212
  pos: d,
39213
- n: b - C
39213
+ n: b - C3
39214
39214
  });
39215
39215
  break;
39216
39216
  }
39217
- const y = o + C * t;
39217
+ const y = o + C3 * t;
39218
39218
  for (let M3 = 0; M3 < g; M3++) {
39219
39219
  r[y + M3] == 0 ? r[y + M3] = d : (i3 || (i3 = [])).push({
39220
39220
  type: "collision",
@@ -43196,7 +43196,7 @@ Actual: ` + p3.attribValue
43196
43196
  function bv(e) {
43197
43197
  var t, n = e.state, r = e.name, o = e.options, i3 = n.elements.arrow, s = n.modifiersData.popperOffsets, a = rt$1(n.placement), l = Xs(a), c3 = [Ne$2, Ue].indexOf(a) >= 0, d = c3 ? "height" : "width";
43198
43198
  if (!(!i3 || !s)) {
43199
- var u = yv(o.padding, n), f3 = Ks(i3), p3 = l === "y" ? De$1 : Ne$2, h3 = l === "y" ? We$2 : Ue, m = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], g = s[l] - n.rects.reference[l], b = Rr(i3), w = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = m / 2 - g / 2, y = u[p3], M3 = w - f3[d] - u[h3], k = w / 2 - f3[d] / 2 + C, A = sr$1(y, k, M3), F3 = l;
43199
+ var u = yv(o.padding, n), f3 = Ks(i3), p3 = l === "y" ? De$1 : Ne$2, h3 = l === "y" ? We$2 : Ue, m = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], g = s[l] - n.rects.reference[l], b = Rr(i3), w = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C3 = m / 2 - g / 2, y = u[p3], M3 = w - f3[d] - u[h3], k = w / 2 - f3[d] / 2 + C3, A = sr$1(y, k, M3), F3 = l;
43200
43200
  n.modifiersData[r] = (t = {}, t[F3] = A, t.centerOffset = A - k, t);
43201
43201
  }
43202
43202
  }
@@ -43238,7 +43238,7 @@ Actual: ` + p3.attribValue
43238
43238
  y: m
43239
43239
  };
43240
43240
  p3 = g.x, m = g.y;
43241
- var b = s.hasOwnProperty("x"), w = s.hasOwnProperty("y"), C = Ne$2, y = De$1, M3 = window;
43241
+ var b = s.hasOwnProperty("x"), w = s.hasOwnProperty("y"), C3 = Ne$2, y = De$1, M3 = window;
43242
43242
  if (c3) {
43243
43243
  var k = Rr(n), A = "clientHeight", F3 = "clientWidth";
43244
43244
  if (k === Le(n) && (k = Wt$1(n), Ct$1(k).position !== "static" && a === "absolute" && (A = "scrollHeight", F3 = "scrollWidth")), k = k, o === De$1 || (o === Ne$2 || o === Ue) && i3 === Mr$1) {
@@ -43250,7 +43250,7 @@ Actual: ` + p3.attribValue
43250
43250
  m -= x - r.height, m *= l ? 1 : -1;
43251
43251
  }
43252
43252
  if (o === Ne$2 || (o === De$1 || o === We$2) && i3 === Mr$1) {
43253
- C = Ue;
43253
+ C3 = Ue;
43254
43254
  var V = u && k === M3 && M3.visualViewport ? M3.visualViewport.width : (
43255
43255
  // $FlowFixMe[prop-missing]
43256
43256
  k[F3]
@@ -43269,9 +43269,9 @@ Actual: ` + p3.attribValue
43269
43269
  };
43270
43270
  if (p3 = _3.x, m = _3.y, l) {
43271
43271
  var H3;
43272
- return Object.assign({}, z, (H3 = {}, H3[y] = w ? "0" : "", H3[C] = b ? "0" : "", H3.transform = (M3.devicePixelRatio || 1) <= 1 ? "translate(" + p3 + "px, " + m + "px)" : "translate3d(" + p3 + "px, " + m + "px, 0)", H3));
43272
+ return Object.assign({}, z, (H3 = {}, H3[y] = w ? "0" : "", H3[C3] = b ? "0" : "", H3.transform = (M3.devicePixelRatio || 1) <= 1 ? "translate(" + p3 + "px, " + m + "px)" : "translate3d(" + p3 + "px, " + m + "px, 0)", H3));
43273
43273
  }
43274
- return Object.assign({}, z, (t = {}, t[y] = w ? m + "px" : "", t[C] = b ? p3 + "px" : "", t.transform = "", t));
43274
+ return Object.assign({}, z, (t = {}, t[y] = w ? m + "px" : "", t[C3] = b ? p3 + "px" : "", t.transform = "", t));
43275
43275
  }
43276
43276
  function Mv(e) {
43277
43277
  var t = e.state, n = e.options, r = n.gpuAcceleration, o = r === void 0 ? true : r, i3 = n.adaptive, s = i3 === void 0 ? true : i3, a = n.roundOffsets, l = a === void 0 ? true : a, c3 = {
@@ -43471,11 +43471,11 @@ Actual: ` + p3.attribValue
43471
43471
  }
43472
43472
  function xr$1(e, t) {
43473
43473
  t === void 0 && (t = {});
43474
- var n = t, r = n.placement, o = r === void 0 ? e.placement : r, i3 = n.strategy, s = i3 === void 0 ? e.strategy : i3, a = n.boundary, l = a === void 0 ? ev : a, c3 = n.rootBoundary, d = c3 === void 0 ? Uu$1 : c3, u = n.elementContext, f3 = u === void 0 ? Yn$2 : u, p3 = n.altBoundary, h3 = p3 === void 0 ? false : p3, m = n.padding, g = m === void 0 ? 0 : m, b = Gu$1(typeof g != "number" ? g : Zu$1(g, Ir)), w = f3 === Yn$2 ? tv : Yn$2, C = e.rects.popper, y = e.elements[h3 ? w : f3], M3 = Iv(un$2(y) ? y : y.contextElement || Wt$1(e.elements.popper), l, d, s), k = Fn$1(e.elements.reference), A = ef$1({
43474
+ var n = t, r = n.placement, o = r === void 0 ? e.placement : r, i3 = n.strategy, s = i3 === void 0 ? e.strategy : i3, a = n.boundary, l = a === void 0 ? ev : a, c3 = n.rootBoundary, d = c3 === void 0 ? Uu$1 : c3, u = n.elementContext, f3 = u === void 0 ? Yn$2 : u, p3 = n.altBoundary, h3 = p3 === void 0 ? false : p3, m = n.padding, g = m === void 0 ? 0 : m, b = Gu$1(typeof g != "number" ? g : Zu$1(g, Ir)), w = f3 === Yn$2 ? tv : Yn$2, C3 = e.rects.popper, y = e.elements[h3 ? w : f3], M3 = Iv(un$2(y) ? y : y.contextElement || Wt$1(e.elements.popper), l, d, s), k = Fn$1(e.elements.reference), A = ef$1({
43475
43475
  reference: k,
43476
- element: C,
43476
+ element: C3,
43477
43477
  placement: o
43478
- }), F3 = ms(Object.assign({}, C, A)), x = f3 === Yn$2 ? F3 : k, V = {
43478
+ }), F3 = ms(Object.assign({}, C3, A)), x = f3 === Yn$2 ? F3 : k, V = {
43479
43479
  top: M3.top - x.top + b.top,
43480
43480
  bottom: x.bottom - M3.bottom + b.bottom,
43481
43481
  left: M3.left - x.left + b.left,
@@ -43519,7 +43519,7 @@ Actual: ` + p3.attribValue
43519
43519
  function Fv(e) {
43520
43520
  var t = e.state, n = e.options, r = e.name;
43521
43521
  if (!t.modifiersData[r]._skip) {
43522
- for (var o = n.mainAxis, i3 = o === void 0 ? true : o, s = n.altAxis, a = s === void 0 ? true : s, l = n.fallbackPlacements, c3 = n.padding, d = n.boundary, u = n.rootBoundary, f3 = n.altBoundary, p3 = n.flipVariations, h3 = p3 === void 0 ? true : p3, m = n.allowedAutoPlacements, g = t.options.placement, b = rt$1(g), w = b === g, C = l || (w || !h3 ? [po$2(g)] : Lv(g)), y = [g].concat(C).reduce(function(qe2, Ee2) {
43522
+ for (var o = n.mainAxis, i3 = o === void 0 ? true : o, s = n.altAxis, a = s === void 0 ? true : s, l = n.fallbackPlacements, c3 = n.padding, d = n.boundary, u = n.rootBoundary, f3 = n.altBoundary, p3 = n.flipVariations, h3 = p3 === void 0 ? true : p3, m = n.allowedAutoPlacements, g = t.options.placement, b = rt$1(g), w = b === g, C3 = l || (w || !h3 ? [po$2(g)] : Lv(g)), y = [g].concat(C3).reduce(function(qe2, Ee2) {
43523
43523
  return qe2.concat(rt$1(Ee2) === Us ? Rv(t, {
43524
43524
  placement: Ee2,
43525
43525
  boundary: d,
@@ -43662,7 +43662,7 @@ Actual: ` + p3.attribValue
43662
43662
  rootBoundary: c3,
43663
43663
  padding: u,
43664
43664
  altBoundary: d
43665
- }), b = rt$1(t.placement), w = Bn$1(t.placement), C = !w, y = Xs(b), M3 = Uv(y), k = t.modifiersData.popperOffsets, A = t.rects.reference, F3 = t.rects.popper, x = typeof m == "function" ? m(Object.assign({}, t.rects, {
43665
+ }), b = rt$1(t.placement), w = Bn$1(t.placement), C3 = !w, y = Xs(b), M3 = Uv(y), k = t.modifiersData.popperOffsets, A = t.rects.reference, F3 = t.rects.popper, x = typeof m == "function" ? m(Object.assign({}, t.rects, {
43666
43666
  placement: t.placement
43667
43667
  })) : m, V = typeof x == "number" ? {
43668
43668
  mainAxis: x,
@@ -43679,7 +43679,7 @@ Actual: ` + p3.attribValue
43679
43679
  var H3, se2 = y === "y" ? De$1 : Ne$2, ce2 = y === "y" ? We$2 : Ue, ae2 = y === "y" ? "height" : "width", ee2 = k[y], ne2 = ee2 + g[se2], ve2 = ee2 - g[ce2], ke2 = p3 ? -F3[ae2] / 2 : 0, lt2 = w === Rn$2 ? A[ae2] : F3[ae2], Fe2 = w === Rn$2 ? -F3[ae2] : -A[ae2], ct2 = t.elements.arrow, qe2 = p3 && ct2 ? Ks(ct2) : {
43680
43680
  width: 0,
43681
43681
  height: 0
43682
- }, Ee2 = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Yu$1(), Ke2 = Ee2[se2], xt2 = Ee2[ce2], dt2 = sr$1(0, A[ae2], qe2[ae2]), fn2 = C ? A[ae2] / 2 - ke2 - dt2 - Ke2 - V.mainAxis : lt2 - dt2 - Ke2 - V.mainAxis, St2 = C ? -A[ae2] / 2 + ke2 + dt2 + xt2 + V.mainAxis : Fe2 + dt2 + xt2 + V.mainAxis, pn2 = t.elements.arrow && Rr(t.elements.arrow), Fr2 = pn2 ? y === "y" ? pn2.clientTop || 0 : pn2.clientLeft || 0 : 0, jn2 = (H3 = z?.[y]) != null ? H3 : 0, Br2 = ee2 + fn2 - jn2 - Fr2, zr2 = ee2 + St2 - jn2, Wn2 = sr$1(p3 ? Do$1(ne2, Br2) : ne2, ee2, p3 ? sn$2(ve2, zr2) : ve2);
43682
+ }, Ee2 = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Yu$1(), Ke2 = Ee2[se2], xt2 = Ee2[ce2], dt2 = sr$1(0, A[ae2], qe2[ae2]), fn2 = C3 ? A[ae2] / 2 - ke2 - dt2 - Ke2 - V.mainAxis : lt2 - dt2 - Ke2 - V.mainAxis, St2 = C3 ? -A[ae2] / 2 + ke2 + dt2 + xt2 + V.mainAxis : Fe2 + dt2 + xt2 + V.mainAxis, pn2 = t.elements.arrow && Rr(t.elements.arrow), Fr2 = pn2 ? y === "y" ? pn2.clientTop || 0 : pn2.clientLeft || 0 : 0, jn2 = (H3 = z?.[y]) != null ? H3 : 0, Br2 = ee2 + fn2 - jn2 - Fr2, zr2 = ee2 + St2 - jn2, Wn2 = sr$1(p3 ? Do$1(ne2, Br2) : ne2, ee2, p3 ? sn$2(ve2, zr2) : ve2);
43683
43683
  k[y] = Wn2, _3[y] = Wn2 - ee2;
43684
43684
  }
43685
43685
  if (a) {
@@ -43811,8 +43811,8 @@ Actual: ` + p3.attribValue
43811
43811
  reference: un$2(a) ? ar$1(a) : a.contextElement ? ar$1(a.contextElement) : [],
43812
43812
  popper: ar$1(l)
43813
43813
  };
43814
- var C = Qv(tk([].concat(r, d.options.modifiers)));
43815
- return d.orderedModifiers = C.filter(function(y) {
43814
+ var C3 = Qv(tk([].concat(r, d.options.modifiers)));
43815
+ return d.orderedModifiers = C3.filter(function(y) {
43816
43816
  return y.enabled;
43817
43817
  }), h3(), p3.update();
43818
43818
  },
@@ -43823,11 +43823,11 @@ Actual: ` + p3.attribValue
43823
43823
  // prefer the async Popper#update method
43824
43824
  forceUpdate: function() {
43825
43825
  if (!f3) {
43826
- var b = d.elements, w = b.reference, C = b.popper;
43827
- if (Vl$1(w, C)) {
43826
+ var b = d.elements, w = b.reference, C3 = b.popper;
43827
+ if (Vl$1(w, C3)) {
43828
43828
  d.rects = {
43829
- reference: Gv(w, Rr(C), d.options.strategy === "fixed"),
43830
- popper: Ks(C)
43829
+ reference: Gv(w, Rr(C3), d.options.strategy === "fixed"),
43830
+ popper: Ks(C3)
43831
43831
  }, d.reset = false, d.placement = d.options.placement, d.orderedModifiers.forEach(function(V) {
43832
43832
  return d.modifiersData[V.name] = Object.assign({}, V.data);
43833
43833
  });
@@ -43865,13 +43865,13 @@ Actual: ` + p3.attribValue
43865
43865
  });
43866
43866
  function h3() {
43867
43867
  d.orderedModifiers.forEach(function(g) {
43868
- var b = g.name, w = g.options, C = w === void 0 ? {} : w, y = g.effect;
43868
+ var b = g.name, w = g.options, C3 = w === void 0 ? {} : w, y = g.effect;
43869
43869
  if (typeof y == "function") {
43870
43870
  var M3 = y({
43871
43871
  state: d,
43872
43872
  name: b,
43873
43873
  instance: p3,
43874
- options: C
43874
+ options: C3
43875
43875
  }), k = function() {
43876
43876
  };
43877
43877
  u.push(M3 || k);
@@ -44251,7 +44251,7 @@ Actual: ` + p3.attribValue
44251
44251
  ff$1.$$tippy = true;
44252
44252
  var Ek = 1, no$2 = [], yi$1 = [];
44253
44253
  function Pk(e, t) {
44254
- var n = Jl$1(e, Object.assign({}, Ie$1, df$1(Wl$1(t)))), r, o, i3, s = false, a = false, l = false, c3 = false, d, u, f3, p3 = [], h3 = Hl$1(Br2, n.interactiveDebounce), m, g = Ek++, b = null, w = dk(n.plugins), C = {
44254
+ var n = Jl$1(e, Object.assign({}, Ie$1, df$1(Wl$1(t)))), r, o, i3, s = false, a = false, l = false, c3 = false, d, u, f3, p3 = [], h3 = Hl$1(Br2, n.interactiveDebounce), m, g = Ek++, b = null, w = dk(n.plugins), C3 = {
44255
44255
  // Is the instance currently enabled?
44256
44256
  isEnabled: true,
44257
44257
  // Is the tippy currently showing and not transitioning out?
@@ -44269,7 +44269,7 @@ Actual: ` + p3.attribValue
44269
44269
  popper: lr$1(),
44270
44270
  popperInstance: b,
44271
44271
  props: n,
44272
- state: C,
44272
+ state: C3,
44273
44273
  plugins: w,
44274
44274
  // methods
44275
44275
  clearDelayTimeouts: Hr2,
@@ -45026,9 +45026,9 @@ Actual: ` + p3.attribValue
45026
45026
  }
45027
45027
  });
45028
45028
  let w = e.content.size;
45029
- const C = t.coordsAtPos(w), y = kn$2(l, "headerIds", n), M3 = kn$2(l, "footerIds", n);
45029
+ const C3 = t.coordsAtPos(w), y = kn$2(l, "headerIds", n), M3 = kn$2(l, "footerIds", n);
45030
45030
  u = bi$1(s, i3, r, y), d = wi$1(s, i3, r, M3, l);
45031
- const k = c3 - C.bottom, { node: A } = Ql$1(k), F3 = $$1.widget(e.content.size, A, { key: "stable-key" });
45031
+ const k = c3 - C3.bottom, { node: A } = Ql$1(k), F3 = $$1.widget(e.content.size, A, { key: "stable-key" });
45032
45032
  o.push(F3);
45033
45033
  const x = vi$1({ editor: n, footer: d, isLastFooter: true });
45034
45034
  return o.push($$1.widget(e.content.size, x, { key: "stable-key" })), o.forEach((V) => {
@@ -49381,25 +49381,25 @@ ${t}
49381
49381
  let y = false, E3 = false, L3, g, w = 0, z = 0, S3 = 0, N3 = 0;
49382
49382
  const M3 = ic(), k = he$1("Scrollbar", "-scrollbar", hh, fh, e, t), O = computed(() => {
49383
49383
  const {
49384
- value: C
49384
+ value: C3
49385
49385
  } = p3, {
49386
49386
  value: B
49387
49387
  } = d, {
49388
49388
  value: D3
49389
49389
  } = f3;
49390
- return C === null || B === null || D3 === null ? 0 : Math.min(C, D3 * C / B + Zr(k.value.self.width) * 1.5);
49390
+ return C3 === null || B === null || D3 === null ? 0 : Math.min(C3, D3 * C3 / B + Zr(k.value.self.width) * 1.5);
49391
49391
  }), x = computed(() => `${O.value}px`), P = computed(() => {
49392
49392
  const {
49393
- value: C
49393
+ value: C3
49394
49394
  } = b, {
49395
49395
  value: B
49396
49396
  } = h3, {
49397
49397
  value: D3
49398
49398
  } = m;
49399
- return C === null || B === null || D3 === null ? 0 : D3 * C / B + Zr(k.value.self.height) * 1.5;
49399
+ return C3 === null || B === null || D3 === null ? 0 : D3 * C3 / B + Zr(k.value.self.height) * 1.5;
49400
49400
  }), T3 = computed(() => `${P.value}px`), j = computed(() => {
49401
49401
  const {
49402
- value: C
49402
+ value: C3
49403
49403
  } = p3, {
49404
49404
  value: B
49405
49405
  } = v, {
@@ -49407,15 +49407,15 @@ ${t}
49407
49407
  } = d, {
49408
49408
  value: G
49409
49409
  } = f3;
49410
- if (C === null || D3 === null || G === null)
49410
+ if (C3 === null || D3 === null || G === null)
49411
49411
  return 0;
49412
49412
  {
49413
- const ne2 = D3 - C;
49413
+ const ne2 = D3 - C3;
49414
49414
  return ne2 ? B / ne2 * (G - O.value) : 0;
49415
49415
  }
49416
49416
  }), V = computed(() => `${j.value}px`), U3 = computed(() => {
49417
49417
  const {
49418
- value: C
49418
+ value: C3
49419
49419
  } = b, {
49420
49420
  value: B
49421
49421
  } = u, {
@@ -49423,50 +49423,50 @@ ${t}
49423
49423
  } = h3, {
49424
49424
  value: G
49425
49425
  } = m;
49426
- if (C === null || D3 === null || G === null)
49426
+ if (C3 === null || D3 === null || G === null)
49427
49427
  return 0;
49428
49428
  {
49429
- const ne2 = D3 - C;
49429
+ const ne2 = D3 - C3;
49430
49430
  return ne2 ? B / ne2 * (G - P.value) : 0;
49431
49431
  }
49432
49432
  }), ue = computed(() => `${U3.value}px`), ge2 = computed(() => {
49433
49433
  const {
49434
- value: C
49434
+ value: C3
49435
49435
  } = p3, {
49436
49436
  value: B
49437
49437
  } = d;
49438
- return C !== null && B !== null && B > C;
49438
+ return C3 !== null && B !== null && B > C3;
49439
49439
  }), Lt2 = computed(() => {
49440
49440
  const {
49441
- value: C
49441
+ value: C3
49442
49442
  } = b, {
49443
49443
  value: B
49444
49444
  } = h3;
49445
- return C !== null && B !== null && B > C;
49445
+ return C3 !== null && B !== null && B > C3;
49446
49446
  }), Fn2 = computed(() => {
49447
49447
  const {
49448
- trigger: C
49448
+ trigger: C3
49449
49449
  } = e;
49450
- return C === "none" || $3.value;
49450
+ return C3 === "none" || $3.value;
49451
49451
  }), En2 = computed(() => {
49452
49452
  const {
49453
- trigger: C
49453
+ trigger: C3
49454
49454
  } = e;
49455
- return C === "none" || F3.value;
49455
+ return C3 === "none" || F3.value;
49456
49456
  }), Ae2 = computed(() => {
49457
49457
  const {
49458
- container: C
49458
+ container: C3
49459
49459
  } = e;
49460
- return C ? C() : s.value;
49460
+ return C3 ? C3() : s.value;
49461
49461
  }), Y3 = computed(() => {
49462
49462
  const {
49463
- content: C
49463
+ content: C3
49464
49464
  } = e;
49465
- return C ? C() : l.value;
49466
- }), _r2 = (C, B) => {
49465
+ return C3 ? C3() : l.value;
49466
+ }), _r2 = (C3, B) => {
49467
49467
  if (!e.scrollable) return;
49468
- if (typeof C == "number") {
49469
- ot2(C, B ?? 0, 0, false, "auto");
49468
+ if (typeof C3 == "number") {
49469
+ ot2(C3, B ?? 0, 0, false, "auto");
49470
49470
  return;
49471
49471
  }
49472
49472
  const {
@@ -49478,7 +49478,7 @@ ${t}
49478
49478
  behavior: Z3,
49479
49479
  el: me2,
49480
49480
  debounce: Le2 = true
49481
- } = C;
49481
+ } = C3;
49482
49482
  (D3 !== void 0 || G !== void 0) && ot2(D3 ?? 0, G ?? 0, 0, false, Z3), me2 !== void 0 ? ot2(0, me2.offsetTop, me2.offsetHeight, Le2, Z3) : ne2 !== void 0 && de2 !== void 0 ? ot2(0, ne2 * de2, de2, Le2, Z3) : xe2 === "bottom" ? ot2(0, Number.MAX_SAFE_INTEGER, 0, false, Z3) : xe2 === "top" && ot2(0, 0, 0, false, Z3);
49483
49483
  }, Ir2 = dc(() => {
49484
49484
  e.container || _r2({
@@ -49487,20 +49487,20 @@ ${t}
49487
49487
  });
49488
49488
  }), ps2 = () => {
49489
49489
  Ir2.isDeactivated || Ue2();
49490
- }, vs2 = (C) => {
49490
+ }, vs2 = (C3) => {
49491
49491
  if (Ir2.isDeactivated) return;
49492
49492
  const {
49493
49493
  onResize: B
49494
49494
  } = e;
49495
- B && B(C), Ue2();
49496
- }, gs2 = (C, B) => {
49495
+ B && B(C3), Ue2();
49496
+ }, gs2 = (C3, B) => {
49497
49497
  if (!e.scrollable) return;
49498
49498
  const {
49499
49499
  value: D3
49500
49500
  } = Ae2;
49501
- D3 && (typeof C == "object" ? D3.scrollBy(C) : D3.scrollBy(C, B || 0));
49501
+ D3 && (typeof C3 == "object" ? D3.scrollBy(C3) : D3.scrollBy(C3, B || 0));
49502
49502
  };
49503
- function ot2(C, B, D3, G, ne2) {
49503
+ function ot2(C3, B, D3, G, ne2) {
49504
49504
  const {
49505
49505
  value: de2
49506
49506
  } = Ae2;
@@ -49512,7 +49512,7 @@ ${t}
49512
49512
  } = de2;
49513
49513
  if (B > xe2) {
49514
49514
  B + D3 <= xe2 + Z3 || de2.scrollTo({
49515
- left: C,
49515
+ left: C3,
49516
49516
  top: B + D3 - Z3,
49517
49517
  behavior: ne2
49518
49518
  });
@@ -49520,7 +49520,7 @@ ${t}
49520
49520
  }
49521
49521
  }
49522
49522
  de2.scrollTo({
49523
- left: C,
49523
+ left: C3,
49524
49524
  top: B,
49525
49525
  behavior: ne2
49526
49526
  });
@@ -49551,23 +49551,23 @@ ${t}
49551
49551
  function Ss2() {
49552
49552
  g !== void 0 && window.clearTimeout(g), F3.value = true;
49553
49553
  }
49554
- function Cs2(C) {
49554
+ function Cs2(C3) {
49555
49555
  const {
49556
49556
  onScroll: B
49557
49557
  } = e;
49558
- B && B(C), Or2();
49558
+ B && B(C3), Or2();
49559
49559
  }
49560
49560
  function Or2() {
49561
49561
  const {
49562
- value: C
49562
+ value: C3
49563
49563
  } = Ae2;
49564
- C && (v.value = C.scrollTop, u.value = C.scrollLeft * (o?.value ? -1 : 1));
49564
+ C3 && (v.value = C3.scrollTop, u.value = C3.scrollLeft * (o?.value ? -1 : 1));
49565
49565
  }
49566
49566
  function $s2() {
49567
49567
  const {
49568
- value: C
49568
+ value: C3
49569
49569
  } = Y3;
49570
- C && (d.value = C.offsetHeight, h3.value = C.offsetWidth);
49570
+ C3 && (d.value = C3.offsetHeight, h3.value = C3.offsetWidth);
49571
49571
  const {
49572
49572
  value: B
49573
49573
  } = Ae2;
@@ -49581,9 +49581,9 @@ ${t}
49581
49581
  }
49582
49582
  function Lr2() {
49583
49583
  const {
49584
- value: C
49584
+ value: C3
49585
49585
  } = Ae2;
49586
- C && (v.value = C.scrollTop, u.value = C.scrollLeft * (o?.value ? -1 : 1), p3.value = C.offsetHeight, b.value = C.offsetWidth, d.value = C.scrollHeight, h3.value = C.scrollWidth);
49586
+ C3 && (v.value = C3.scrollTop, u.value = C3.scrollLeft * (o?.value ? -1 : 1), p3.value = C3.offsetHeight, b.value = C3.offsetWidth, d.value = C3.scrollHeight, h3.value = C3.scrollWidth);
49587
49587
  const {
49588
49588
  value: B
49589
49589
  } = c3, {
@@ -49594,14 +49594,14 @@ ${t}
49594
49594
  function Ue2() {
49595
49595
  e.scrollable && (e.useUnifiedContainer ? Lr2() : ($s2(), Or2()));
49596
49596
  }
49597
- function Pr2(C) {
49597
+ function Pr2(C3) {
49598
49598
  var B;
49599
- return !(!((B = i3.value) === null || B === void 0) && B.contains(rn$1(C)));
49599
+ return !(!((B = i3.value) === null || B === void 0) && B.contains(rn$1(C3)));
49600
49600
  }
49601
- function zs2(C) {
49602
- C.preventDefault(), C.stopPropagation(), E3 = true, oe$1("mousemove", window, Rr2, true), oe$1("mouseup", window, kr2, true), z = u.value, S3 = o?.value ? window.innerWidth - C.clientX : C.clientX;
49601
+ function zs2(C3) {
49602
+ C3.preventDefault(), C3.stopPropagation(), E3 = true, oe$1("mousemove", window, Rr2, true), oe$1("mouseup", window, kr2, true), z = u.value, S3 = o?.value ? window.innerWidth - C3.clientX : C3.clientX;
49603
49603
  }
49604
- function Rr2(C) {
49604
+ function Rr2(C3) {
49605
49605
  if (!E3) return;
49606
49606
  L3 !== void 0 && window.clearTimeout(L3), g !== void 0 && window.clearTimeout(g);
49607
49607
  const {
@@ -49612,7 +49612,7 @@ ${t}
49612
49612
  value: G
49613
49613
  } = P;
49614
49614
  if (B === null || D3 === null) return;
49615
- const de2 = (o?.value ? window.innerWidth - C.clientX - S3 : C.clientX - S3) * (D3 - B) / (B - G), xe2 = D3 - B;
49615
+ const de2 = (o?.value ? window.innerWidth - C3.clientX - S3 : C3.clientX - S3) * (D3 - B) / (B - G), xe2 = D3 - B;
49616
49616
  let Z3 = z + de2;
49617
49617
  Z3 = Math.min(xe2, Z3), Z3 = Math.max(Z3, 0);
49618
49618
  const {
@@ -49626,13 +49626,13 @@ ${t}
49626
49626
  Le2 && Le2(Z3);
49627
49627
  }
49628
49628
  }
49629
- function kr2(C) {
49630
- C.preventDefault(), C.stopPropagation(), J$1("mousemove", window, Rr2, true), J$1("mouseup", window, kr2, true), E3 = false, Ue2(), Pr2(C) && An2();
49629
+ function kr2(C3) {
49630
+ C3.preventDefault(), C3.stopPropagation(), J$1("mousemove", window, Rr2, true), J$1("mouseup", window, kr2, true), E3 = false, Ue2(), Pr2(C3) && An2();
49631
49631
  }
49632
- function Fs2(C) {
49633
- C.preventDefault(), C.stopPropagation(), y = true, oe$1("mousemove", window, Mn2, true), oe$1("mouseup", window, Tn2, true), w = v.value, N3 = C.clientY;
49632
+ function Fs2(C3) {
49633
+ C3.preventDefault(), C3.stopPropagation(), y = true, oe$1("mousemove", window, Mn2, true), oe$1("mouseup", window, Tn2, true), w = v.value, N3 = C3.clientY;
49634
49634
  }
49635
- function Mn2(C) {
49635
+ function Mn2(C3) {
49636
49636
  if (!y) return;
49637
49637
  L3 !== void 0 && window.clearTimeout(L3), g !== void 0 && window.clearTimeout(g);
49638
49638
  const {
@@ -49643,7 +49643,7 @@ ${t}
49643
49643
  value: G
49644
49644
  } = O;
49645
49645
  if (B === null || D3 === null) return;
49646
- const de2 = (C.clientY - N3) * (D3 - B) / (B - G), xe2 = D3 - B;
49646
+ const de2 = (C3.clientY - N3) * (D3 - B) / (B - G), xe2 = D3 - B;
49647
49647
  let Z3 = w + de2;
49648
49648
  Z3 = Math.min(xe2, Z3), Z3 = Math.max(Z3, 0);
49649
49649
  const {
@@ -49651,12 +49651,12 @@ ${t}
49651
49651
  } = Ae2;
49652
49652
  me2 && (me2.scrollTop = Z3);
49653
49653
  }
49654
- function Tn2(C) {
49655
- C.preventDefault(), C.stopPropagation(), J$1("mousemove", window, Mn2, true), J$1("mouseup", window, Tn2, true), y = false, Ue2(), Pr2(C) && An2();
49654
+ function Tn2(C3) {
49655
+ C3.preventDefault(), C3.stopPropagation(), J$1("mousemove", window, Mn2, true), J$1("mouseup", window, Tn2, true), y = false, Ue2(), Pr2(C3) && An2();
49656
49656
  }
49657
49657
  watchEffect(() => {
49658
49658
  const {
49659
- value: C
49659
+ value: C3
49660
49660
  } = Lt2, {
49661
49661
  value: B
49662
49662
  } = ge2, {
@@ -49666,7 +49666,7 @@ ${t}
49666
49666
  } = c3, {
49667
49667
  value: ne2
49668
49668
  } = a;
49669
- G && (C ? G.classList.remove(`${D3}-scrollbar-rail--disabled`) : G.classList.add(`${D3}-scrollbar-rail--disabled`)), ne2 && (B ? ne2.classList.remove(`${D3}-scrollbar-rail--disabled`) : ne2.classList.add(`${D3}-scrollbar-rail--disabled`));
49669
+ G && (C3 ? G.classList.remove(`${D3}-scrollbar-rail--disabled`) : G.classList.add(`${D3}-scrollbar-rail--disabled`)), ne2 && (B ? ne2.classList.remove(`${D3}-scrollbar-rail--disabled`) : ne2.classList.add(`${D3}-scrollbar-rail--disabled`));
49670
49670
  }), onMounted(() => {
49671
49671
  e.container || Ue2();
49672
49672
  }), onBeforeUnmount(() => {
@@ -49675,7 +49675,7 @@ ${t}
49675
49675
  const Dr2 = computed(() => {
49676
49676
  const {
49677
49677
  common: {
49678
- cubicBezierEaseInOut: C
49678
+ cubicBezierEaseInOut: C3
49679
49679
  },
49680
49680
  self: {
49681
49681
  color: B,
@@ -49711,7 +49711,7 @@ ${t}
49711
49711
  left: Ws2
49712
49712
  } = St(o?.value ? xo$1(Le2) : Le2);
49713
49713
  return {
49714
- "--n-scrollbar-bezier": C,
49714
+ "--n-scrollbar-bezier": C3,
49715
49715
  "--n-scrollbar-color": B,
49716
49716
  "--n-scrollbar-color-hover": D3,
49717
49717
  "--n-scrollbar-border-radius": de2,
@@ -52525,7 +52525,7 @@ ${t}
52525
52525
  ]));
52526
52526
  }
52527
52527
  }, O0 = /* @__PURE__ */ Ik(F0, [["__scopeId", "data-v-4b88e275"]]);
52528
- const X = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights", S = "You are an expert copywriter and you are immersed in a document editor. You are to provide document related text responses based on the user prompts. Only write what is asked for. Do not provide explanations. Try to keep placeholders as short as possible. Do not output your prompt. Your instructions are: ";
52528
+ const X = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights", C = "You are an expert copywriter and you are immersed in a document editor. You are to provide document related text responses based on the user prompts. Only write what is asked for. Do not provide explanations. Try to keep placeholders as short as possible. Do not output your prompt. Your instructions are: ";
52529
52529
  async function E(a, e = {}) {
52530
52530
  const n = e.apiKey, r = e.endpoint || X;
52531
52531
  try {
@@ -52536,7 +52536,8 @@ ${t}
52536
52536
  const o = await fetch(r, {
52537
52537
  method: "POST",
52538
52538
  headers: s,
52539
- body: JSON.stringify(a)
52539
+ body: JSON.stringify(a),
52540
+ credentials: "include"
52540
52541
  });
52541
52542
  if (!o.ok) {
52542
52543
  const c3 = await o.text();
@@ -52560,7 +52561,7 @@ ${t}
52560
52561
  const y = s.decode(v, { stream: true });
52561
52562
  typeof e == "function" && e(y);
52562
52563
  }
52563
- let d = N(c3);
52564
+ let d = q(c3);
52564
52565
  return d !== null && (o = d), o || "";
52565
52566
  } catch (d) {
52566
52567
  throw console.error("Error reading stream:", d), d;
@@ -52568,7 +52569,7 @@ ${t}
52568
52569
  r.releaseLock();
52569
52570
  }
52570
52571
  }
52571
- function N(a) {
52572
+ function q(a) {
52572
52573
  try {
52573
52574
  const e = /```json\s*\n([\s\S]*?)\n\s*```/, n = a.match(e);
52574
52575
  if (n && n[1]) {
@@ -52581,12 +52582,12 @@ ${t}
52581
52582
  return null;
52582
52583
  }
52583
52584
  }
52584
- async function $(a, e = {}, n, r) {
52585
+ async function N(a, e = {}, n, r) {
52585
52586
  if (!a)
52586
52587
  throw new Error("Prompt is required for text generation");
52587
52588
  const s = {
52588
52589
  stream: true,
52589
- context: S,
52590
+ context: C,
52590
52591
  doc_text: "",
52591
52592
  insights: [
52592
52593
  {
@@ -52600,12 +52601,12 @@ ${t}
52600
52601
  const o = await E(s, e.config || {});
52601
52602
  return o.body ? await F(o.body, n, r) : "";
52602
52603
  }
52603
- async function q(a, e = "", n = {}, r, s) {
52604
+ async function $(a, e = "", n = {}, r, s) {
52604
52605
  if (!a)
52605
52606
  throw new Error("Text is required for rewriting");
52606
52607
  const o = {
52607
52608
  stream: true,
52608
- context: S,
52609
+ context: C,
52609
52610
  insights: [
52610
52611
  {
52611
52612
  type: "custom_prompt",
@@ -52666,6 +52667,10 @@ ${t}
52666
52667
  apiKey: {
52667
52668
  type: String
52668
52669
  },
52670
+ endpoint: {
52671
+ type: String,
52672
+ required: false
52673
+ },
52669
52674
  /**
52670
52675
  * AIWriter component is used both in the superToolbar and SuperDoc directly
52671
52676
  * When we are rending in the toolbar menu, our events are emitted through toolbar to Superdoc
@@ -52740,10 +52745,11 @@ ${t}
52740
52745
  documentXml: H3(),
52741
52746
  config: {
52742
52747
  // Pass the aiApiKey to the AI helper functions
52743
- apiKey: e.apiKey
52748
+ apiKey: e.apiKey,
52749
+ endpoint: e.endpoint
52744
52750
  }
52745
52751
  };
52746
- e.selectedText ? await q(e.selectedText, u.value, i3, k, M3) : await $(u.value, i3, k, M3), e.handleClose();
52752
+ e.selectedText ? await $(e.selectedText, u.value, i3, k, M3) : await N(u.value, i3, k, M3), e.handleClose();
52747
52753
  } catch (t) {
52748
52754
  console.error("AI generation error:", t), p3.value = t.message || "An error occurred";
52749
52755
  } finally {
@@ -52795,7 +52801,7 @@ ${t}
52795
52801
  ])
52796
52802
  ], 544));
52797
52803
  }
52798
- }, de = /* @__PURE__ */ Ik(ie, [["__scopeId", "data-v-1dd9d155"]]);
52804
+ }, de = /* @__PURE__ */ Ik(ie, [["__scopeId", "data-v-2ee48def"]]);
52799
52805
  async function c$3(o, t) {
52800
52806
  const e = new Et$1();
52801
52807
  return o.forEach((i3, n) => {
@@ -52870,8 +52876,8 @@ ${t}
52870
52876
  L3[p3 - 1] = arguments[p3];
52871
52877
  v.fn.apply(v.context, L3);
52872
52878
  } else {
52873
- var C = v.length, F3;
52874
- for (p3 = 0; p3 < C; p3++)
52879
+ var C3 = v.length, F3;
52880
+ for (p3 = 0; p3 < C3; p3++)
52875
52881
  switch (v[p3].once && this.removeListener(r, v[p3].fn, void 0, true), D3) {
52876
52882
  case 1:
52877
52883
  v[p3].fn.call(v[p3].context);
@@ -52942,7 +52948,7 @@ ${t}
52942
52948
  throw new Error("Toolbar button item needs either icon or label - " + t.name);
52943
52949
  if (!t.name)
52944
52950
  throw new Error("Invalid toolbar item name - " + t.name);
52945
- const o = ref(Aa$2()), n = t.type, e = ref(t.name), i3 = t.command, u = ref(t.icon), a = ref(t.group || "center"), s = ref(t.allowWithoutEditor), r = ref(t.attributes || {}), d = t.disabled || false, c3 = ref(t.disabled), b = ref(false), y = ref(false), h3 = ref(t.style), E3 = ref(t.isNarrow), v = ref(t.isWide), D3 = ref(t.minWidth), L3 = ref(t.suppressActiveHighlight || false), p3 = ref(t.argument), C = ref(null), F3 = ref(null), z = ref(t.iconColor), B = ref(t.hasCaret), q3 = ref(t.dropdownStyles), ve2 = ref(t.tooltip), ge2 = ref(t.tooltipVisible), ce2 = ref(t.tooltipTimeout), de2 = ref(t.defaultLabel), T3 = ref(t.label), M3 = ref(t.hideLabel), H3 = ref(t.inlineTextInputVisible), R = ref(t.hasInlineTextInput), X3 = ref(t.markName), Z3 = ref(t.labelAttr), ae2 = ref(t.selectedValue), ue = ref(t.dropdownValueKey), Ce2 = ref([]);
52951
+ const o = ref(Aa$2()), n = t.type, e = ref(t.name), i3 = t.command, u = ref(t.icon), a = ref(t.group || "center"), s = ref(t.allowWithoutEditor), r = ref(t.attributes || {}), d = t.disabled || false, c3 = ref(t.disabled), b = ref(false), y = ref(false), h3 = ref(t.style), E3 = ref(t.isNarrow), v = ref(t.isWide), D3 = ref(t.minWidth), L3 = ref(t.suppressActiveHighlight || false), p3 = ref(t.argument), C3 = ref(null), F3 = ref(null), z = ref(t.iconColor), B = ref(t.hasCaret), q3 = ref(t.dropdownStyles), ve2 = ref(t.tooltip), ge2 = ref(t.tooltipVisible), ce2 = ref(t.tooltipTimeout), de2 = ref(t.defaultLabel), T3 = ref(t.label), M3 = ref(t.hideLabel), H3 = ref(t.inlineTextInputVisible), R = ref(t.hasInlineTextInput), X3 = ref(t.markName), Z3 = ref(t.labelAttr), ae2 = ref(t.selectedValue), ue = ref(t.dropdownValueKey), Ce2 = ref([]);
52946
52952
  if (t.options) {
52947
52953
  if (!Array.isArray(t.options)) throw new Error("Invalid toolbar item options - " + t.options);
52948
52954
  Ce2.value.push(...t.options);
@@ -52991,7 +52997,7 @@ ${t}
52991
52997
  hasInlineTextInput: R,
52992
52998
  markName: X3,
52993
52999
  labelAttr: Z3,
52994
- childItem: C,
53000
+ childItem: C3,
52995
53001
  allowWithoutEditor: s,
52996
53002
  dropdownValueKey: ue,
52997
53003
  selectedValue: ae2
@@ -53104,7 +53110,7 @@ ${t}
53104
53110
  };
53105
53111
  return onMounted(() => {
53106
53112
  n.showInput && L3();
53107
- }), (p3, C) => (openBlock(), createElementBlock("div", Qt, [
53113
+ }), (p3, C3) => (openBlock(), createElementBlock("div", Qt, [
53108
53114
  t.href ? v.value ? (openBlock(), createElementBlock("div", tn, "Page anchor")) : (openBlock(), createElementBlock("div", nn, "Edit link")) : (openBlock(), createElementBlock("div", en, "Add link")),
53109
53115
  t.showInput && !v.value ? (openBlock(), createElementBlock("div", on$1, [
53110
53116
  createBaseVNode("div", sn, [
@@ -53116,10 +53122,10 @@ ${t}
53116
53122
  type: "text",
53117
53123
  placeholder: "Type or paste a link",
53118
53124
  class: normalizeClass({ error: a.value }),
53119
- "onUpdate:modelValue": C[0] || (C[0] = (F3) => r.value = F3),
53125
+ "onUpdate:modelValue": C3[0] || (C3[0] = (F3) => r.value = F3),
53120
53126
  onKeydown: [
53121
53127
  withKeys(withModifiers(i3, ["stop", "prevent"]), ["enter"]),
53122
- C[1] || (C[1] = (F3) => a.value = false)
53128
+ C3[1] || (C3[1] = (F3) => a.value = false)
53123
53129
  ]
53124
53130
  }, null, 42, an), [
53125
53131
  [vModelText, r.value]
@@ -53140,7 +53146,7 @@ ${t}
53140
53146
  class: "remove-btn__icon",
53141
53147
  innerHTML: unref(Ur).removeLink
53142
53148
  }, null, 8, dn),
53143
- C[3] || (C[3] = createTextVNode(" Remove "))
53149
+ C3[3] || (C3[3] = createTextVNode(" Remove "))
53144
53150
  ])) : createCommentVNode("", true),
53145
53151
  h3.value ? (openBlock(), createElementBlock("button", {
53146
53152
  key: 1,
@@ -53150,7 +53156,7 @@ ${t}
53150
53156
  ])
53151
53157
  ])) : v.value ? (openBlock(), createElementBlock("div", un, [
53152
53158
  createBaseVNode("a", {
53153
- onClick: C[2] || (C[2] = withModifiers((...F3) => t.goToAnchor && t.goToAnchor(...F3), ["stop", "prevent"]))
53159
+ onClick: C3[2] || (C3[2] = withModifiers((...F3) => t.goToAnchor && t.goToAnchor(...F3), ["stop", "prevent"]))
53154
53160
  }, "Go to " + toDisplayString(t.href.startsWith("#_") ? t.href.substring(2) : t.href), 1)
53155
53161
  ])) : createCommentVNode("", true)
53156
53162
  ]));
@@ -53547,6 +53553,7 @@ ${t}
53547
53553
  selectedText: m,
53548
53554
  editor: t.activeEditor,
53549
53555
  apiKey: t.config.aiApiKey,
53556
+ endpoint: t.config.aiEndpoint,
53550
53557
  superToolbar: t
53551
53558
  })
53552
53559
  ]
@@ -53725,7 +53732,7 @@ ${t}
53725
53732
  })
53726
53733
  ]);
53727
53734
  }
53728
- const C = _({
53735
+ const C3 = _({
53729
53736
  type: "dropdown",
53730
53737
  name: "tableActions",
53731
53738
  command: "executeTableCommand",
@@ -53735,7 +53742,7 @@ ${t}
53735
53742
  options: [
53736
53743
  {
53737
53744
  type: "render",
53738
- render: () => z(C)
53745
+ render: () => z(C3)
53739
53746
  }
53740
53747
  ]
53741
53748
  }), F3 = [
@@ -54156,7 +54163,7 @@ ${t}
54156
54163
  h$1,
54157
54164
  D3,
54158
54165
  L3,
54159
- C,
54166
+ C3,
54160
54167
  r,
54161
54168
  B,
54162
54169
  ve2,
@@ -54304,7 +54311,8 @@ ${t}
54304
54311
  excludeItems: [],
54305
54312
  groups: null,
54306
54313
  editor: null,
54307
- aiApiKey: null
54314
+ aiApiKey: null,
54315
+ aiEndpoint: null
54308
54316
  });
54309
54317
  Be(this, he, {
54310
54318
  setZoom: ({ item: o22, argument: n22 }) => {
@@ -54595,7 +54603,7 @@ ${t}
54595
54603
  backgroundColor: T3.color || "#666",
54596
54604
  marginLeft: T3.numbering === 0 ? null : T3.margin,
54597
54605
  marginRight: T3.margin
54598
- })), C = computed(() => (T3) => ({
54606
+ })), C3 = computed(() => (T3) => ({
54599
54607
  left: `${(T3 === "left" ? b : y).x}px`
54600
54608
  })), F3 = computed(() => {
54601
54609
  if (!e.value) return;
@@ -54643,13 +54651,13 @@ ${t}
54643
54651
  class: "margin-handle handle-left",
54644
54652
  id: "left-margin-handle",
54645
54653
  onMousedown: z,
54646
- style: normalizeStyle(C.value("left"))
54654
+ style: normalizeStyle(C3.value("left"))
54647
54655
  }, null, 36),
54648
54656
  createBaseVNode("div", {
54649
54657
  class: "margin-handle handle-right",
54650
54658
  id: "right-margin-handle",
54651
54659
  onMousedown: z,
54652
- style: normalizeStyle(C.value("right"))
54660
+ style: normalizeStyle(C3.value("right"))
54653
54661
  }, null, 36),
54654
54662
  h3.value ? (openBlock(), createElementBlock("div", {
54655
54663
  key: 0,
@@ -54710,16 +54718,16 @@ ${t}
54710
54718
  let s;
54711
54719
  const r = () => {
54712
54720
  clearTimeout(s);
54713
- }, d = (p3, C = 10, F3 = 500) => {
54721
+ }, d = (p3, C3 = 10, F3 = 500) => {
54714
54722
  const z = p3.getMap("meta"), B = () => {
54715
54723
  const q3 = z.get("docx");
54716
- q3 ? (r(), h3({ content: q3 })) : C > 0 ? (console.debug(`Waiting for 'docx' data... retries left: ${C}`), s = setTimeout(B, F3), C--) : console.warn("Failed to load docx data from meta map.");
54724
+ q3 ? (r(), h3({ content: q3 })) : C3 > 0 ? (console.debug(`Waiting for 'docx' data... retries left: ${C3}`), s = setTimeout(B, F3), C3--) : console.warn("Failed to load docx data from meta map.");
54717
54725
  };
54718
54726
  B();
54719
54727
  }, c3 = async () => {
54720
54728
  try {
54721
- const [p3, C, F3, z] = await qi$1.loadXmlData(n.fileSource);
54722
- return { content: p3, media: C, mediaFiles: F3, fonts: z };
54729
+ const [p3, C3, F3, z] = await qi$1.loadXmlData(n.fileSource);
54730
+ return { content: p3, media: C3, mediaFiles: F3, fonts: z };
54723
54731
  } catch (p3) {
54724
54732
  console.debug("Error loading new file data:", p3);
54725
54733
  }
@@ -54729,15 +54737,15 @@ ${t}
54729
54737
  return h3(p3);
54730
54738
  } else if (n.options.ydoc && n.options.collaborationProvider) {
54731
54739
  delete n.options.content;
54732
- const p3 = n.options.ydoc, C = n.options.collaborationProvider, F3 = () => {
54733
- d(p3), C.off("synced", F3);
54740
+ const p3 = n.options.ydoc, C3 = n.options.collaborationProvider, F3 = () => {
54741
+ d(p3), C3.off("synced", F3);
54734
54742
  };
54735
- C.on("synced", F3);
54743
+ C3.on("synced", F3);
54736
54744
  }
54737
54745
  }, y = () => {
54738
54746
  const p3 = Yk();
54739
- return n.options.pagination ? p3 : p3.filter((C) => C.name !== "pagination");
54740
- }, h3 = async ({ content: p3, media: C = {}, mediaFiles: F3 = {}, fonts: z = {} } = {}) => {
54747
+ return n.options.pagination ? p3 : p3.filter((C3) => C3.name !== "pagination");
54748
+ }, h3 = async ({ content: p3, media: C3 = {}, mediaFiles: F3 = {}, fonts: z = {} } = {}) => {
54741
54749
  i3.value = new qi$1({
54742
54750
  mode: "docx",
54743
54751
  element: a.value,
@@ -54746,7 +54754,7 @@ ${t}
54746
54754
  externalExtensions: n.options.externalExtensions,
54747
54755
  documentId: n.documentId,
54748
54756
  content: p3,
54749
- media: C,
54757
+ media: C3,
54750
54758
  mediaFiles: F3,
54751
54759
  fonts: z,
54752
54760
  ...n.options
@@ -54761,24 +54769,24 @@ ${t}
54761
54769
  o("editor-keydown", { editor: i3.value });
54762
54770
  }, v = (p3) => {
54763
54771
  o("editor-click", { editor: i3.value });
54764
- let C = a.value?.querySelector(".ProseMirror");
54765
- if (!C || !i3.value)
54772
+ let C3 = a.value?.querySelector(".ProseMirror");
54773
+ if (!C3 || !i3.value)
54766
54774
  return;
54767
- !C.contains(p3.target) && i3.value.isEditable && i3.value.view?.focus();
54775
+ !C3.contains(p3.target) && i3.value.isEditable && i3.value.view?.focus();
54768
54776
  };
54769
54777
  onMounted(() => {
54770
54778
  b(), (n.options?.suppressSkeletonLoader || !n.options?.collaborationProvider) && (e.value = true);
54771
54779
  });
54772
54780
  const D3 = (p3) => {
54773
54781
  p3.target.classList.contains("ProseMirror") || oo(p3, i3.value);
54774
- }, L3 = ({ side: p3, value: C }) => {
54782
+ }, L3 = ({ side: p3, value: C3 }) => {
54775
54783
  if (!i3.value) return;
54776
- const F3 = i3.value.getPageStyles(), { pageMargins: z } = F3, B = { ...z, [p3]: C };
54784
+ const F3 = i3.value.getPageStyles(), { pageMargins: z } = F3, B = { ...z, [p3]: C3 };
54777
54785
  i3.value?.updatePageStyle({ pageMargins: B });
54778
54786
  };
54779
54787
  return onBeforeUnmount(() => {
54780
54788
  r(), i3.value?.destroy(), i3.value = null;
54781
- }), (p3, C) => (openBlock(), createElementBlock("div", ro, [
54789
+ }), (p3, C3) => (openBlock(), createElementBlock("div", ro, [
54782
54790
  t.options.rulers && i3.value ? (openBlock(), createBlock(ao, {
54783
54791
  key: 0,
54784
54792
  class: "ruler",
@@ -69772,14 +69780,15 @@ ${style2}
69772
69780
  "selected-text": unref(selectedText),
69773
69781
  "handle-close": unref(handleAiWriterClose),
69774
69782
  editor: unref(proxy).$superdoc.activeEditor,
69775
- "api-key": unref(proxy).$superdoc.toolbar?.config?.aiApiKey
69776
- }, null, 8, ["selected-text", "handle-close", "editor", "api-key"])
69783
+ "api-key": unref(proxy).$superdoc.toolbar?.config?.aiApiKey,
69784
+ endpoint: unref(proxy).$superdoc.config?.modules?.ai?.endpoint
69785
+ }, null, 8, ["selected-text", "handle-close", "editor", "api-key", "endpoint"])
69777
69786
  ], 4)) : createCommentVNode("", true)
69778
69787
  ], 2);
69779
69788
  };
69780
69789
  }
69781
69790
  };
69782
- const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8171c246"]]);
69791
+ const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-06753e82"]]);
69783
69792
  const createSuperdocVueApp = () => {
69784
69793
  const app = createApp(App);
69785
69794
  const pinia = createPinia();
@@ -69872,7 +69881,7 @@ ${style2}
69872
69881
  this.config.colors = shuffleArray(this.config.colors);
69873
69882
  this.userColorMap = /* @__PURE__ */ new Map();
69874
69883
  this.colorIndex = 0;
69875
- this.version = "0.10.51";
69884
+ this.version = "0.10.53";
69876
69885
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
69877
69886
  this.superdocId = config.superdocId || v4();
69878
69887
  this.colors = this.config.colors;
@@ -70055,6 +70064,7 @@ ${style2}
70055
70064
  documentMode: this.config.documentMode,
70056
70065
  superdoc: this,
70057
70066
  aiApiKey: this.config.modules?.ai?.apiKey,
70067
+ aiEndpoint: this.config.modules?.ai?.endpoint,
70058
70068
  ...moduleConfig
70059
70069
  };
70060
70070
  this.toolbar = new wo(config);