@harbour-enterprises/superdoc 0.10.42 → 0.10.44

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.
@@ -7223,13 +7223,13 @@ let Ls = class g1 {
7223
7223
  @internal
7224
7224
  */
7225
7225
  static parse(e, n) {
7226
- let r = new eC(e, n);
7226
+ let r = new e4(e, n);
7227
7227
  if (r.next == null)
7228
7228
  return g1.empty;
7229
7229
  let o = y1(r);
7230
7230
  r.next && r.err("Unexpected trailing text");
7231
- let i = aC(sC(o));
7232
- return lC(i, r), i;
7231
+ let i = a4(s4(o));
7232
+ return l4(i, r), i;
7233
7233
  }
7234
7234
  /**
7235
7235
  Match a node type, returning a match after that node if
@@ -7375,7 +7375,7 @@ let Ls = class g1 {
7375
7375
  }
7376
7376
  };
7377
7377
  Ls.empty = new Ls(!0);
7378
- let eC = class {
7378
+ let e4 = class {
7379
7379
  constructor(e, n) {
7380
7380
  this.string = e, this.nodeTypes = n, this.inline = null, this.pos = 0, this.tokens = e.split(/\s*(?=\b|\W|$)/), this.tokens[this.tokens.length - 1] == "" && this.tokens.pop(), this.tokens[0] == "" && this.tokens.shift();
7381
7381
  }
@@ -7392,19 +7392,19 @@ let eC = class {
7392
7392
  function y1(t) {
7393
7393
  let e = [];
7394
7394
  do
7395
- e.push(tC(t));
7395
+ e.push(t4(t));
7396
7396
  while (t.eat("|"));
7397
7397
  return e.length == 1 ? e[0] : { type: "choice", exprs: e };
7398
7398
  }
7399
- function tC(t) {
7399
+ function t4(t) {
7400
7400
  let e = [];
7401
7401
  do
7402
- e.push(nC(t));
7402
+ e.push(n4(t));
7403
7403
  while (t.next && t.next != ")" && t.next != "|");
7404
7404
  return e.length == 1 ? e[0] : { type: "seq", exprs: e };
7405
7405
  }
7406
- function nC(t) {
7407
- let e = iC(t);
7406
+ function n4(t) {
7407
+ let e = i4(t);
7408
7408
  for (; ; )
7409
7409
  if (t.eat("+"))
7410
7410
  e = { type: "plus", expr: e };
@@ -7413,7 +7413,7 @@ function nC(t) {
7413
7413
  else if (t.eat("?"))
7414
7414
  e = { type: "opt", expr: e };
7415
7415
  else if (t.eat("{"))
7416
- e = rC(t, e);
7416
+ e = r4(t, e);
7417
7417
  else
7418
7418
  break;
7419
7419
  return e;
@@ -7423,11 +7423,11 @@ function $g(t) {
7423
7423
  let e = Number(t.next);
7424
7424
  return t.pos++, e;
7425
7425
  }
7426
- function rC(t, e) {
7426
+ function r4(t, e) {
7427
7427
  let n = $g(t), r = n;
7428
7428
  return t.eat(",") && (t.next != "}" ? r = $g(t) : r = -1), t.eat("}") || t.err("Unclosed braced range"), { type: "range", min: n, max: r, expr: e };
7429
7429
  }
7430
- function oC(t, e) {
7430
+ function o4(t, e) {
7431
7431
  let n = t.nodeTypes, r = n[e];
7432
7432
  if (r)
7433
7433
  return [r];
@@ -7438,18 +7438,18 @@ function oC(t, e) {
7438
7438
  }
7439
7439
  return o.length == 0 && t.err("No node type or group '" + e + "' found"), o;
7440
7440
  }
7441
- function iC(t) {
7441
+ function i4(t) {
7442
7442
  if (t.eat("(")) {
7443
7443
  let e = y1(t);
7444
7444
  return t.eat(")") || t.err("Missing closing paren"), e;
7445
7445
  } else if (/\W/.test(t.next))
7446
7446
  t.err("Unexpected token '" + t.next + "'");
7447
7447
  else {
7448
- let e = oC(t, t.next).map((n) => (t.inline == null ? t.inline = n.isInline : t.inline != n.isInline && t.err("Mixing inline and block content"), { type: "name", value: n }));
7448
+ let e = o4(t, t.next).map((n) => (t.inline == null ? t.inline = n.isInline : t.inline != n.isInline && t.err("Mixing inline and block content"), { type: "name", value: n }));
7449
7449
  return t.pos++, e.length == 1 ? e[0] : { type: "choice", exprs: e };
7450
7450
  }
7451
7451
  }
7452
- function sC(t) {
7452
+ function s4(t) {
7453
7453
  let e = [[]];
7454
7454
  return o(i(t, 0), n()), e;
7455
7455
  function n() {
@@ -7520,7 +7520,7 @@ function Og(t, e) {
7520
7520
  }
7521
7521
  }
7522
7522
  }
7523
- function aC(t) {
7523
+ function a4(t) {
7524
7524
  let e = /* @__PURE__ */ Object.create(null);
7525
7525
  return n(Og(t, 0));
7526
7526
  function n(r) {
@@ -7545,7 +7545,7 @@ function aC(t) {
7545
7545
  return i;
7546
7546
  }
7547
7547
  }
7548
- function lC(t, e) {
7548
+ function l4(t, e) {
7549
7549
  for (let n = 0, r = [t]; n < r.length; n++) {
7550
7550
  let o = r[n], i = !o.validEnd, s = [];
7551
7551
  for (let a = 0; a < o.next.length; a++) {
@@ -7593,7 +7593,7 @@ function k1(t, e) {
7593
7593
  let n = /* @__PURE__ */ Object.create(null);
7594
7594
  if (e)
7595
7595
  for (let r in e)
7596
- n[r] = new uC(t, r, e[r]);
7596
+ n[r] = new u4(t, r, e[r]);
7597
7597
  return n;
7598
7598
  }
7599
7599
  let Mg = class S1 {
@@ -7775,7 +7775,7 @@ let Mg = class S1 {
7775
7775
  return r;
7776
7776
  }
7777
7777
  };
7778
- function cC(t, e, n) {
7778
+ function c4(t, e, n) {
7779
7779
  let r = n.split("|");
7780
7780
  return (o) => {
7781
7781
  let i = o === null ? "null" : typeof o;
@@ -7783,9 +7783,9 @@ function cC(t, e, n) {
7783
7783
  throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${i}`);
7784
7784
  };
7785
7785
  }
7786
- let uC = class {
7786
+ let u4 = class {
7787
7787
  constructor(e, n, r) {
7788
- this.hasDefault = Object.prototype.hasOwnProperty.call(r, "default"), this.default = r.default, this.validate = typeof r.validate == "string" ? cC(e, n, r.validate) : r.validate;
7788
+ this.hasDefault = Object.prototype.hasOwnProperty.call(r, "default"), this.default = r.default, this.validate = typeof r.validate == "string" ? c4(e, n, r.validate) : r.validate;
7789
7789
  }
7790
7790
  get isRequired() {
7791
7791
  return !this.hasDefault;
@@ -7943,10 +7943,10 @@ function Dg(t, e) {
7943
7943
  }
7944
7944
  return n;
7945
7945
  }
7946
- function dC(t) {
7946
+ function d4(t) {
7947
7947
  return t.tag != null;
7948
7948
  }
7949
- function fC(t) {
7949
+ function f4(t) {
7950
7950
  return t.style != null;
7951
7951
  }
7952
7952
  let Kr = class qd {
@@ -7958,9 +7958,9 @@ let Kr = class qd {
7958
7958
  this.schema = e, this.rules = n, this.tags = [], this.styles = [];
7959
7959
  let r = this.matchedStyles = [];
7960
7960
  n.forEach((o) => {
7961
- if (dC(o))
7961
+ if (d4(o))
7962
7962
  this.tags.push(o);
7963
- else if (fC(o)) {
7963
+ else if (f4(o)) {
7964
7964
  let i = /[^=]*/.exec(o.style)[0];
7965
7965
  r.indexOf(i) < 0 && r.push(i), this.styles.push(o);
7966
7966
  }
@@ -7996,7 +7996,7 @@ let Kr = class qd {
7996
7996
  matchTag(e, n, r) {
7997
7997
  for (let o = r ? this.tags.indexOf(r) + 1 : 0; o < this.tags.length; o++) {
7998
7998
  let i = this.tags[o];
7999
- if (mC(e, i.tag) && (i.namespace === void 0 || e.namespaceURI == i.namespace) && (!i.context || n.matchesContext(i.context))) {
7999
+ if (m4(e, i.tag) && (i.namespace === void 0 || e.namespaceURI == i.namespace) && (!i.context || n.matchesContext(i.context))) {
8000
8000
  if (i.getAttrs) {
8001
8001
  let s = i.getAttrs(e);
8002
8002
  if (s === !1)
@@ -8097,7 +8097,7 @@ const T1 = {
8097
8097
  table: !0,
8098
8098
  tfoot: !0,
8099
8099
  ul: !0
8100
- }, pC = {
8100
+ }, p4 = {
8101
8101
  head: !0,
8102
8102
  noscript: !0,
8103
8103
  object: !0,
@@ -8175,9 +8175,9 @@ let Ea = class {
8175
8175
  let o = this.localPreserveWS, i = this.top;
8176
8176
  (e.tagName == "PRE" || /pre/.test(e.style && e.style.whiteSpace)) && (this.localPreserveWS = !0);
8177
8177
  let s = e.nodeName.toLowerCase(), a;
8178
- $1.hasOwnProperty(s) && this.parser.normalizeLists && hC(e);
8178
+ $1.hasOwnProperty(s) && this.parser.normalizeLists && h4(e);
8179
8179
  let l = this.options.ruleFromNode && this.options.ruleFromNode(e) || (a = this.parser.matchTag(e, this, r));
8180
- e: if (l ? l.ignore : pC.hasOwnProperty(s))
8180
+ e: if (l ? l.ignore : p4.hasOwnProperty(s))
8181
8181
  this.findInside(e), this.ignoreFallback(e, n);
8182
8182
  else if (!l || l.skip || l.closeParent) {
8183
8183
  l && l.closeParent ? this.open = Math.max(0, this.open - 1) : l && l.skip.nodeType && (e = l.skip);
@@ -8409,13 +8409,13 @@ let Ea = class {
8409
8409
  }
8410
8410
  }
8411
8411
  };
8412
- function hC(t) {
8412
+ function h4(t) {
8413
8413
  for (let e = t.firstChild, n = null; e; e = e.nextSibling) {
8414
8414
  let r = e.nodeType == 1 ? e.nodeName.toLowerCase() : null;
8415
8415
  r && $1.hasOwnProperty(r) && n ? (n.appendChild(e), e = n) : r == "li" ? n = e : r && (n = null);
8416
8416
  }
8417
8417
  }
8418
- function mC(t, e) {
8418
+ function m4(t, e) {
8419
8419
  return (t.matches || t.msMatchesSelector || t.webkitMatchesSelector || t.mozMatchesSelector).call(t, e);
8420
8420
  }
8421
8421
  function Ng(t) {
@@ -8558,11 +8558,11 @@ function Du(t) {
8558
8558
  return t.document || window.document;
8559
8559
  }
8560
8560
  const Lg = /* @__PURE__ */ new WeakMap();
8561
- function gC(t) {
8561
+ function g4(t) {
8562
8562
  let e = Lg.get(t);
8563
- return e === void 0 && Lg.set(t, e = yC(t)), e;
8563
+ return e === void 0 && Lg.set(t, e = y4(t)), e;
8564
8564
  }
8565
- function yC(t) {
8565
+ function y4(t) {
8566
8566
  let e = null;
8567
8567
  function n(r) {
8568
8568
  if (r && typeof r == "object")
@@ -8588,7 +8588,7 @@ function Qa(t, e, n, r) {
8588
8588
  let o = e[0], i;
8589
8589
  if (typeof o != "string")
8590
8590
  throw new RangeError("Invalid array passed to renderSpec");
8591
- if (r && (i = gC(r)) && i.indexOf(e) > -1)
8591
+ if (r && (i = g4(r)) && i.indexOf(e) > -1)
8592
8592
  throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");
8593
8593
  let s = o.indexOf(" ");
8594
8594
  s > 0 && (n = o.slice(0, s), o = o.slice(s + 1));
@@ -8619,13 +8619,13 @@ function Qa(t, e, n, r) {
8619
8619
  return { dom: l, contentDOM: a };
8620
8620
  }
8621
8621
  const M1 = 65535, D1 = Math.pow(2, 16);
8622
- function wC(t, e) {
8622
+ function w4(t, e) {
8623
8623
  return t + e * D1;
8624
8624
  }
8625
8625
  function Bg(t) {
8626
8626
  return t & M1;
8627
8627
  }
8628
- function bC(t) {
8628
+ function b4(t) {
8629
8629
  return (t - (t & M1)) / D1;
8630
8630
  }
8631
8631
  const _1 = 1, I1 = 2, el = 4, N1 = 8;
@@ -8682,7 +8682,7 @@ let Vd = class {
8682
8682
  if (!this.inverted)
8683
8683
  for (let o = 0; o < r; o++)
8684
8684
  n += this.ranges[o * 3 + 2] - this.ranges[o * 3 + 1];
8685
- return this.ranges[r * 3] + n + bC(e);
8685
+ return this.ranges[r * 3] + n + b4(e);
8686
8686
  }
8687
8687
  mapResult(e, n = 1) {
8688
8688
  return this._map(e, n, !1);
@@ -8704,7 +8704,7 @@ let Vd = class {
8704
8704
  let f = c ? e == l ? -1 : e == d ? 1 : n : n, p = l + o + (f < 0 ? 0 : u);
8705
8705
  if (r)
8706
8706
  return p;
8707
- let h = e == (n < 0 ? l : d) ? null : wC(a / 3, e - l), m = e == l ? I1 : e == d ? _1 : el;
8707
+ let h = e == (n < 0 ? l : d) ? null : w4(a / 3, e - l), m = e == l ? I1 : e == d ? _1 : el;
8708
8708
  return (n < 0 ? e != l : e != d) && (m |= N1), new Vd(p, m, h);
8709
8709
  }
8710
8710
  o += u - c;
@@ -9232,7 +9232,7 @@ function Gd(t, e, n) {
9232
9232
  }
9233
9233
  return !1;
9234
9234
  }
9235
- function vC(t, e, n, r) {
9235
+ function v4(t, e, n, r) {
9236
9236
  let o = [], i = [], s, a;
9237
9237
  t.doc.nodesBetween(e, n, (l, c, u) => {
9238
9238
  if (!l.isInline)
@@ -9246,7 +9246,7 @@ function vC(t, e, n, r) {
9246
9246
  }
9247
9247
  }), o.forEach((l) => t.step(l)), i.forEach((l) => t.step(l));
9248
9248
  }
9249
- function xC(t, e, n, r) {
9249
+ function x4(t, e, n, r) {
9250
9250
  let o = [], i = 0;
9251
9251
  t.doc.nodesBetween(e, n, (s, a) => {
9252
9252
  if (!s.isInline)
@@ -9296,7 +9296,7 @@ function Cp(t, e, n, r = n.contentMatch, o = !0) {
9296
9296
  for (let l = s.length - 1; l >= 0; l--)
9297
9297
  t.step(s[l]);
9298
9298
  }
9299
- function kC(t, e, n) {
9299
+ function k4(t, e, n) {
9300
9300
  return (e == 0 || t.canReplace(e, t.childCount)) && (n == t.childCount || t.canReplace(0, n));
9301
9301
  }
9302
9302
  function da(t) {
@@ -9305,12 +9305,12 @@ function da(t) {
9305
9305
  let r = t.$from.node(n), o = t.$from.index(n), i = t.$to.indexAfter(n);
9306
9306
  if (n < t.depth && r.canReplace(o, i, e))
9307
9307
  return n;
9308
- if (n == 0 || r.type.spec.isolating || !kC(r, o, i))
9308
+ if (n == 0 || r.type.spec.isolating || !k4(r, o, i))
9309
9309
  break;
9310
9310
  }
9311
9311
  return null;
9312
9312
  }
9313
- function SC(t, e, n) {
9313
+ function S4(t, e, n) {
9314
9314
  let { $from: r, $to: o, depth: i } = e, s = r.before(i + 1), a = o.after(i + 1), l = s, c = a, u = be.empty, d = 0;
9315
9315
  for (let h = i, m = !1; h > n; h--)
9316
9316
  m || r.index(h) > 0 ? (m = !0, u = be.from(r.node(h).copy(u)), d++) : l--;
@@ -9320,20 +9320,20 @@ function SC(t, e, n) {
9320
9320
  t.step(new hn(l, c, s, a, new ke(u.append(f), d, p), u.size - d, !0));
9321
9321
  }
9322
9322
  function F1(t, e, n = null, r = t) {
9323
- let o = AC(t, e), i = o && EC(r, e);
9323
+ let o = A4(t, e), i = o && E4(r, e);
9324
9324
  return i ? o.map(Pg).concat({ type: e, attrs: n }).concat(i.map(Pg)) : null;
9325
9325
  }
9326
9326
  function Pg(t) {
9327
9327
  return { type: t, attrs: null };
9328
9328
  }
9329
- function AC(t, e) {
9329
+ function A4(t, e) {
9330
9330
  let { parent: n, startIndex: r, endIndex: o } = t, i = n.contentMatchAt(r).findWrapping(e);
9331
9331
  if (!i)
9332
9332
  return null;
9333
9333
  let s = i.length ? i[0] : e;
9334
9334
  return n.canReplaceWith(r, o, s) ? i : null;
9335
9335
  }
9336
- function EC(t, e) {
9336
+ function E4(t, e) {
9337
9337
  let { parent: n, startIndex: r, endIndex: o } = t, i = n.child(r), s = e.contentMatch.findWrapping(i.type);
9338
9338
  if (!s)
9339
9339
  return null;
@@ -9342,7 +9342,7 @@ function EC(t, e) {
9342
9342
  a = a.matchType(n.child(l).type);
9343
9343
  return !a || !a.validEnd ? null : s;
9344
9344
  }
9345
- function CC(t, e, n) {
9345
+ function C4(t, e, n) {
9346
9346
  let r = be.empty;
9347
9347
  for (let s = n.length - 1; s >= 0; s--) {
9348
9348
  if (r.size) {
@@ -9355,13 +9355,13 @@ function CC(t, e, n) {
9355
9355
  let o = e.start, i = e.end;
9356
9356
  t.step(new hn(o, i, o, i, new ke(r, 0, 0), n.length, !0));
9357
9357
  }
9358
- function TC(t, e, n, r, o) {
9358
+ function T4(t, e, n, r, o) {
9359
9359
  if (!r.isTextblock)
9360
9360
  throw new RangeError("Type given to setBlockType should be a textblock");
9361
9361
  let i = t.steps.length;
9362
9362
  t.doc.nodesBetween(e, n, (s, a) => {
9363
9363
  let l = typeof o == "function" ? o(s) : o;
9364
- if (s.isTextblock && !s.hasMarkup(r, l) && $C(t.doc, t.mapping.slice(i).map(a), r)) {
9364
+ if (s.isTextblock && !s.hasMarkup(r, l) && $4(t.doc, t.mapping.slice(i).map(a), r)) {
9365
9365
  let c = null;
9366
9366
  if (r.schema.linebreakReplacement) {
9367
9367
  let p = r.whitespace == "pre", h = !!r.contentMatch.matchType(r.schema.linebreakReplacement);
@@ -9393,11 +9393,11 @@ function L1(t, e, n, r) {
9393
9393
  }
9394
9394
  });
9395
9395
  }
9396
- function $C(t, e, n) {
9396
+ function $4(t, e, n) {
9397
9397
  let r = t.resolve(e), o = r.index();
9398
9398
  return r.parent.canReplaceWith(o, o + 1, n);
9399
9399
  }
9400
- function OC(t, e, n, r, o) {
9400
+ function O4(t, e, n, r, o) {
9401
9401
  let i = t.doc.nodeAt(e);
9402
9402
  if (!i)
9403
9403
  throw new RangeError("No node at given position");
@@ -9426,7 +9426,7 @@ function xr(t, e, n = 1, r) {
9426
9426
  let a = o.indexAfter(i), l = r && r[0];
9427
9427
  return o.node(i).canReplaceWith(a, a, l ? l.type : o.node(i + 1).type);
9428
9428
  }
9429
- function MC(t, e, n = 1, r) {
9429
+ function M4(t, e, n = 1, r) {
9430
9430
  let o = t.doc.resolve(e), i = be.empty, s = be.empty;
9431
9431
  for (let a = o.depth, l = o.depth - n, c = n - 1; a > l; a--, c--) {
9432
9432
  i = be.from(o.node(a).copy(i));
@@ -9439,7 +9439,7 @@ function oo(t, e) {
9439
9439
  let n = t.resolve(e), r = n.index();
9440
9440
  return B1(n.nodeBefore, n.nodeAfter) && n.parent.canReplace(r, r + 1);
9441
9441
  }
9442
- function DC(t, e) {
9442
+ function D4(t, e) {
9443
9443
  e.content.size || t.type.compatibleContent(e.type);
9444
9444
  let n = t.contentMatchAt(t.childCount), { linebreakReplacement: r } = t.type.schema;
9445
9445
  for (let o = 0; o < e.childCount; o++) {
@@ -9450,7 +9450,7 @@ function DC(t, e) {
9450
9450
  return n.validEnd;
9451
9451
  }
9452
9452
  function B1(t, e) {
9453
- return !!(t && e && !t.isLeaf && DC(t, e));
9453
+ return !!(t && e && !t.isLeaf && D4(t, e));
9454
9454
  }
9455
9455
  function P1(t, e, n = -1) {
9456
9456
  let r = t.resolve(e);
@@ -9463,7 +9463,7 @@ function P1(t, e, n = -1) {
9463
9463
  e = n < 0 ? r.before(o) : r.after(o);
9464
9464
  }
9465
9465
  }
9466
- function _C(t, e, n) {
9466
+ function _4(t, e, n) {
9467
9467
  let r = null, { linebreakReplacement: o } = t.doc.type.schema, i = t.doc.resolve(e - n), s = i.node().type;
9468
9468
  if (o && s.inlineContent) {
9469
9469
  let u = s.whitespace == "pre", d = !!s.contentMatch.matchType(o);
@@ -9482,7 +9482,7 @@ function _C(t, e, n) {
9482
9482
  }
9483
9483
  return t;
9484
9484
  }
9485
- function IC(t, e, n) {
9485
+ function I4(t, e, n) {
9486
9486
  let r = t.resolve(e);
9487
9487
  if (r.parent.canReplaceWith(r.index(), r.index(), n))
9488
9488
  return e;
@@ -9529,12 +9529,12 @@ function Tp(t, e, n = e, r = ke.empty) {
9529
9529
  if (e == n && !r.size)
9530
9530
  return null;
9531
9531
  let o = t.resolve(e), i = t.resolve(n);
9532
- return j1(o, i, r) ? new Pt(e, n, r) : new NC(o, i, r).fit();
9532
+ return j1(o, i, r) ? new Pt(e, n, r) : new N4(o, i, r).fit();
9533
9533
  }
9534
9534
  function j1(t, e, n) {
9535
9535
  return !n.openStart && !n.openEnd && t.start() == e.start() && t.parent.canReplace(t.index(), e.index(), n.content);
9536
9536
  }
9537
- let NC = class {
9537
+ let N4 = class {
9538
9538
  constructor(e, n, r) {
9539
9539
  this.$from = e, this.$to = n, this.unplaced = r, this.frontier = [], this.placed = be.empty;
9540
9540
  for (let o = 0; o <= e.depth; o++) {
@@ -9703,18 +9703,18 @@ function Nu(t, e, n, r, o) {
9703
9703
  if (s == i.childCount && !n.compatibleContent(i.type))
9704
9704
  return null;
9705
9705
  let a = r.fillBefore(i.content, !0, s);
9706
- return a && !FC(n, i.content, s) ? a : null;
9706
+ return a && !F4(n, i.content, s) ? a : null;
9707
9707
  }
9708
- function FC(t, e, n) {
9708
+ function F4(t, e, n) {
9709
9709
  for (let r = n; r < e.childCount; r++)
9710
9710
  if (!t.allowsMarks(e.child(r).marks))
9711
9711
  return !0;
9712
9712
  return !1;
9713
9713
  }
9714
- function RC(t) {
9714
+ function R4(t) {
9715
9715
  return t.spec.defining || t.spec.definingForContent;
9716
9716
  }
9717
- function LC(t, e, n, r) {
9717
+ function L4(t, e, n, r) {
9718
9718
  if (!r.size)
9719
9719
  return t.deleteRange(e, n);
9720
9720
  let o = t.doc.resolve(e), i = t.doc.resolve(n);
@@ -9738,7 +9738,7 @@ function LC(t, e, n, r) {
9738
9738
  f = h.content;
9739
9739
  }
9740
9740
  for (let f = u - 1; f >= 0; f--) {
9741
- let p = c[f], h = RC(p.type);
9741
+ let p = c[f], h = R4(p.type);
9742
9742
  if (h && !p.sameMarkup(o.node(Math.abs(a) - 1)))
9743
9743
  u = f;
9744
9744
  else if (h || !p.type.isTextblock)
@@ -9772,14 +9772,14 @@ function U1(t, e, n, r, o) {
9772
9772
  }
9773
9773
  return t;
9774
9774
  }
9775
- function BC(t, e, n, r) {
9775
+ function B4(t, e, n, r) {
9776
9776
  if (!r.isInline && e == n && t.doc.resolve(e).parent.content.size) {
9777
- let o = IC(t.doc, e, r.type);
9777
+ let o = I4(t.doc, e, r.type);
9778
9778
  o != null && (e = n = o);
9779
9779
  }
9780
9780
  t.replaceRange(e, n, new ke(be.from(r), 0, 0));
9781
9781
  }
9782
- function PC(t, e, n) {
9782
+ function P4(t, e, n) {
9783
9783
  let r = t.doc.resolve(e), o = t.doc.resolve(n), i = V1(r, o);
9784
9784
  for (let s = 0; s < i.length; s++) {
9785
9785
  let a = i[s], l = s == i.length - 1;
@@ -9975,7 +9975,7 @@ let G1 = class {
9975
9975
  control over what happens.
9976
9976
  */
9977
9977
  replaceRange(e, n, r) {
9978
- return LC(this, e, n, r), this;
9978
+ return L4(this, e, n, r), this;
9979
9979
  }
9980
9980
  /**
9981
9981
  Replace the given range with a node, but use `from` and `to` as
@@ -9987,14 +9987,14 @@ let G1 = class {
9987
9987
  that parent node.
9988
9988
  */
9989
9989
  replaceRangeWith(e, n, r) {
9990
- return BC(this, e, n, r), this;
9990
+ return B4(this, e, n, r), this;
9991
9991
  }
9992
9992
  /**
9993
9993
  Delete the given range, expanding it to cover fully covered
9994
9994
  parent nodes until a valid replace is found.
9995
9995
  */
9996
9996
  deleteRange(e, n) {
9997
- return PC(this, e, n), this;
9997
+ return P4(this, e, n), this;
9998
9998
  }
9999
9999
  /**
10000
10000
  Split the content in the given range off from its parent, if there
@@ -10004,14 +10004,14 @@ let G1 = class {
10004
10004
  sure the lift is valid.
10005
10005
  */
10006
10006
  lift(e, n) {
10007
- return SC(this, e, n), this;
10007
+ return S4(this, e, n), this;
10008
10008
  }
10009
10009
  /**
10010
10010
  Join the blocks around the given position. If depth is 2, their
10011
10011
  last and first siblings are also joined, and so on.
10012
10012
  */
10013
10013
  join(e, n = 1) {
10014
- return _C(this, e, n), this;
10014
+ return _4(this, e, n), this;
10015
10015
  }
10016
10016
  /**
10017
10017
  Wrap the given [range](https://prosemirror.net/docs/ref/#model.NodeRange) in the given set of wrappers.
@@ -10019,21 +10019,21 @@ let G1 = class {
10019
10019
  probably be computed with [`findWrapping`](https://prosemirror.net/docs/ref/#transform.findWrapping).
10020
10020
  */
10021
10021
  wrap(e, n) {
10022
- return CC(this, e, n), this;
10022
+ return C4(this, e, n), this;
10023
10023
  }
10024
10024
  /**
10025
10025
  Set the type of all textblocks (partly) between `from` and `to` to
10026
10026
  the given node type with the given attributes.
10027
10027
  */
10028
10028
  setBlockType(e, n = e, r, o = null) {
10029
- return TC(this, e, n, r, o), this;
10029
+ return T4(this, e, n, r, o), this;
10030
10030
  }
10031
10031
  /**
10032
10032
  Change the type, attributes, and/or marks of the node at `pos`.
10033
10033
  When `type` isn't given, the existing node type is preserved,
10034
10034
  */
10035
10035
  setNodeMarkup(e, n, r = null, o) {
10036
- return OC(this, e, n, r, o), this;
10036
+ return O4(this, e, n, r, o), this;
10037
10037
  }
10038
10038
  /**
10039
10039
  Set a single attribute on a given node to a new value.
@@ -10077,13 +10077,13 @@ let G1 = class {
10077
10077
  use after the split (with the outermost nodes coming first).
10078
10078
  */
10079
10079
  split(e, n = 1, r) {
10080
- return MC(this, e, n, r), this;
10080
+ return M4(this, e, n, r), this;
10081
10081
  }
10082
10082
  /**
10083
10083
  Add the given mark to the inline content between `from` and `to`.
10084
10084
  */
10085
10085
  addMark(e, n, r) {
10086
- return vC(this, e, n, r), this;
10086
+ return v4(this, e, n, r), this;
10087
10087
  }
10088
10088
  /**
10089
10089
  Remove marks from inline nodes between `from` and `to`. When
@@ -10092,7 +10092,7 @@ let G1 = class {
10092
10092
  remove all marks of any type.
10093
10093
  */
10094
10094
  removeMark(e, n, r) {
10095
- return xC(this, e, n, r), this;
10095
+ return x4(this, e, n, r), this;
10096
10096
  }
10097
10097
  /**
10098
10098
  Removes all marks and nodes from the content of the node at
@@ -10386,7 +10386,7 @@ let J1 = class X1 {
10386
10386
  return { type: "node", anchor: this.anchor };
10387
10387
  }
10388
10388
  getBookmark() {
10389
- return new zC(this.anchor);
10389
+ return new z4(this.anchor);
10390
10390
  }
10391
10391
  /**
10392
10392
  @internal
@@ -10412,7 +10412,7 @@ let J1 = class X1 {
10412
10412
  };
10413
10413
  Pe.prototype.visible = !1;
10414
10414
  Ue.jsonID("node", Pe);
10415
- let zC = class Y1 {
10415
+ let z4 = class Y1 {
10416
10416
  constructor(e) {
10417
10417
  this.anchor = e;
10418
10418
  }
@@ -10455,11 +10455,11 @@ let zC = class Y1 {
10455
10455
  return e instanceof rl;
10456
10456
  }
10457
10457
  getBookmark() {
10458
- return jC;
10458
+ return j4;
10459
10459
  }
10460
10460
  };
10461
10461
  Ue.jsonID("all", Qn);
10462
- const jC = {
10462
+ const j4 = {
10463
10463
  map() {
10464
10464
  return this;
10465
10465
  },
@@ -10497,7 +10497,7 @@ function qg(t, e, n) {
10497
10497
  }), t.setSelection(Ue.near(t.doc.resolve(s), n));
10498
10498
  }
10499
10499
  const Ug = 1, Vg = 2, Hg = 4;
10500
- let qC = class extends G1 {
10500
+ let q4 = class extends G1 {
10501
10501
  /**
10502
10502
  @internal
10503
10503
  */
@@ -10656,7 +10656,7 @@ let fs = class {
10656
10656
  this.name = e, this.init = Wg(n.init, r), this.apply = Wg(n.apply, r);
10657
10657
  }
10658
10658
  };
10659
- const UC = [
10659
+ const U4 = [
10660
10660
  new fs("doc", {
10661
10661
  init(t) {
10662
10662
  return t.doc || t.schema.topNodeType.createAndFill();
@@ -10692,7 +10692,7 @@ const UC = [
10692
10692
  ];
10693
10693
  let Ru = class {
10694
10694
  constructor(e, n) {
10695
- this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = UC.slice(), n && n.forEach((r) => {
10695
+ this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = U4.slice(), n && n.forEach((r) => {
10696
10696
  if (this.pluginsByKey[r.key])
10697
10697
  throw new RangeError("Adding different instances of a keyed plugin (" + r.key + ")");
10698
10698
  this.plugins.push(r), this.pluginsByKey[r.key] = r, r.spec.state && this.fields.push(new fs(r.key, r.spec.state, r));
@@ -10784,7 +10784,7 @@ let Ru = class {
10784
10784
  Start a [transaction](https://prosemirror.net/docs/ref/#state.Transaction) from this state.
10785
10785
  */
10786
10786
  get tr() {
10787
- return new qC(this);
10787
+ return new q4(this);
10788
10788
  }
10789
10789
  /**
10790
10790
  Create a new state.
@@ -10909,7 +10909,7 @@ let st = class {
10909
10909
  return e[this.key];
10910
10910
  }
10911
10911
  };
10912
- const Tl = (t) => t.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), VC = (t) => Tl(t), ol = Object.freeze({
10912
+ const Tl = (t) => t.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), V4 = (t) => Tl(t), ol = Object.freeze({
10913
10913
  RESOLVED: "resolved",
10914
10914
  NEW: "new",
10915
10915
  ADD: "add",
@@ -10922,7 +10922,7 @@ const Tl = (t) => t.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), VC = (t) =>
10922
10922
  // Tracked changes
10923
10923
  CHANGE_ACCEPTED: "change-accepted",
10924
10924
  CHANGE_REJECTED: "change-rejected"
10925
- }), HC = {
10925
+ }), H4 = {
10926
10926
  mounted(t, e, n) {
10927
10927
  const r = (o) => {
10928
10928
  t.contains(o.target) || e.value(o);
@@ -10936,10 +10936,10 @@ const Tl = (t) => t.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), VC = (t) =>
10936
10936
  function Ze(t, e = null, ...n) {
10937
10937
  return typeof t == "function" ? e ? t.bind(e)(...n) : t(...n) : t;
10938
10938
  }
10939
- function WC(t = {}) {
10939
+ function W4(t = {}) {
10940
10940
  return Object.keys(t).length === 0 && t.constructor === Object;
10941
10941
  }
10942
- const GC = () => typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1, KC = () => ["iPad Simulator", "iPhone Simulator", "iPod Simulator", "iPad", "iPhone", "iPod"].includes(
10942
+ const G4 = () => typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1, K4 = () => ["iPad Simulator", "iPhone Simulator", "iPod Simulator", "iPad", "iPhone", "iPod"].includes(
10943
10943
  navigator.platform
10944
10944
  ), ev = (t) => Object.prototype.toString.call(t) === "[object RegExp]";
10945
10945
  function Ei(t, e, n = { strict: !0 }) {
@@ -10950,10 +10950,10 @@ function Gg(t, e) {
10950
10950
  const n = typeof e == "string" ? [e] : e;
10951
10951
  return Object.keys(t).reduce((r, o) => (n.includes(o) || (r[o] = t[o]), r), {});
10952
10952
  }
10953
- const JC = /[\d-.]+(\w+)$/, XC = ["px", "rem", "em", "in", "q", "mm", "cm", "pt", "pc", "vh", "vw", "vmin", "vmax"];
10953
+ const J4 = /[\d-.]+(\w+)$/, X4 = ["px", "rem", "em", "in", "q", "mm", "cm", "pt", "pc", "vh", "vw", "vmin", "vmax"];
10954
10954
  function kr(t = "0") {
10955
- const e = t.toString() || "0", n = Number.parseFloat(e), r = (e.match(JC)?.[1] ?? "").toLowerCase();
10956
- return [n, XC.includes(r) ? r : null];
10955
+ const e = t.toString() || "0", n = Number.parseFloat(e), r = (e.match(J4)?.[1] ?? "").toLowerCase();
10956
+ return [n, X4.includes(r) ? r : null];
10957
10957
  }
10958
10958
  function $l(t = 0, e = 0, n = 0) {
10959
10959
  return Math.min(Math.max(t, e), n);
@@ -10982,7 +10982,7 @@ function Jd(t) {
10982
10982
  if (t != null)
10983
10983
  return t * 240;
10984
10984
  }
10985
- function YC(t) {
10985
+ function Y4(t) {
10986
10986
  if (t != null)
10987
10987
  return Math.round(t / 2);
10988
10988
  }
@@ -11007,14 +11007,14 @@ function rv(t) {
11007
11007
  if (t != null)
11008
11008
  return t / 20;
11009
11009
  }
11010
- function ZC(t) {
11010
+ function Z4(t) {
11011
11011
  if (t != null)
11012
11012
  return t * 20;
11013
11013
  }
11014
- const QC = async (t) => await (await fetch(t)).arrayBuffer(), e4 = (t) => {
11014
+ const Q4 = async (t) => await (await fetch(t)).arrayBuffer(), eC = (t) => {
11015
11015
  const e = new window.DOMParser().parseFromString(t, "text/xml").querySelectorAll("Default");
11016
11016
  return Array.from(e).map((n) => n.getAttribute("Extension"));
11017
- }, t4 = (t) => (/* @__PURE__ */ new Map([
11017
+ }, tC = (t) => (/* @__PURE__ */ new Map([
11018
11018
  ["yellow", "#ffff00"],
11019
11019
  ["green", "#00ff00"],
11020
11020
  ["blue", "#0000FFFF"],
@@ -11031,7 +11031,7 @@ const QC = async (t) => await (await fetch(t)).arrayBuffer(), e4 = (t) => {
11031
11031
  ["lightGray", "#C0C0C0FF"],
11032
11032
  ["black", "#000"]
11033
11033
  ])).get(t) || null;
11034
- function n4(t) {
11034
+ function nC(t) {
11035
11035
  if (!t || typeof t != "string") return !1;
11036
11036
  switch (t.length) {
11037
11037
  case 3:
@@ -11044,13 +11044,13 @@ function n4(t) {
11044
11044
  return !1;
11045
11045
  }
11046
11046
  }
11047
- const r4 = (t) => {
11047
+ const rC = (t) => {
11048
11048
  const e = Number(t).toString(16);
11049
11049
  return e.length === 1 ? "0" + e : e;
11050
- }, o4 = (t) => "#" + t.match(/\d+/g).map(r4).join(""), fc = (t, e, n = "", r = !1) => {
11050
+ }, oC = (t) => "#" + t.match(/\d+/g).map(rC).join(""), fc = (t, e, n = "", r = !1) => {
11051
11051
  let [o, i] = kr(t);
11052
11052
  return Number.isNaN(o) || o === 0 ? {} : n === "atLeast" && o < 1 ? {} : (i = i || e, o += i ? 4 : 0.2, r ? { "line-height": `${o}${i}` } : `line-height: ${o}${i}`);
11053
- }, i4 = (t, e) => {
11053
+ }, iC = (t, e) => {
11054
11054
  const n = new Uint8Array(t), r = e.replace(/[-{}]/g, "");
11055
11055
  if (r.length !== 32) {
11056
11056
  console.error("Invalid GUID");
@@ -11079,7 +11079,7 @@ function yr(t = 8) {
11079
11079
  function $p() {
11080
11080
  return Math.floor(Math.random() * 2147483647).toString(16).toUpperCase().padStart(8, "0");
11081
11081
  }
11082
- const s4 = {
11082
+ const sC = {
11083
11083
  "xmlns:wpc": "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",
11084
11084
  "xmlns:cx": "http://schemas.microsoft.com/office/drawing/2014/chartex",
11085
11085
  "xmlns:cx1": "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",
@@ -11116,7 +11116,7 @@ const s4 = {
11116
11116
  "xmlns:wne": "http://schemas.microsoft.com/office/word/2006/wordml",
11117
11117
  "xmlns:wps": "http://schemas.microsoft.com/office/word/2010/wordprocessingShape",
11118
11118
  "mc:Ignorable": "w14 w15 w16se w16cid w16 w16cex w16sdtdh w16sdtfl w16du wp14"
11119
- }, a4 = {
11119
+ }, aC = {
11120
11120
  elements: [
11121
11121
  {
11122
11122
  type: "element",
@@ -11128,7 +11128,7 @@ const s4 = {
11128
11128
  elements: []
11129
11129
  }
11130
11130
  ]
11131
- }, l4 = {
11131
+ }, lC = {
11132
11132
  elements: [{
11133
11133
  type: "element",
11134
11134
  name: "w:settings",
@@ -11137,7 +11137,7 @@ const s4 = {
11137
11137
  },
11138
11138
  elements: []
11139
11139
  }]
11140
- }, c4 = {
11140
+ }, cC = {
11141
11141
  type: "element",
11142
11142
  name: "w:r",
11143
11143
  elements: [
@@ -11813,7 +11813,7 @@ const s4 = {
11813
11813
  }
11814
11814
  ]
11815
11815
  }
11816
- }, u4 = {
11816
+ }, uC = {
11817
11817
  declaration: {
11818
11818
  attributes: {
11819
11819
  version: "1.0",
@@ -11866,7 +11866,7 @@ const s4 = {
11866
11866
  elements: []
11867
11867
  }
11868
11868
  ]
11869
- }, d4 = {
11869
+ }, dC = {
11870
11870
  declaration: {
11871
11871
  attributes: {
11872
11872
  version: "1.0",
@@ -11919,7 +11919,7 @@ const s4 = {
11919
11919
  elements: []
11920
11920
  }
11921
11921
  ]
11922
- }, f4 = {
11922
+ }, fC = {
11923
11923
  declaration: {
11924
11924
  attributes: {
11925
11925
  version: "1.0",
@@ -11973,7 +11973,7 @@ const s4 = {
11973
11973
  elements: []
11974
11974
  }
11975
11975
  ]
11976
- }, p4 = {
11976
+ }, pC = {
11977
11977
  declaration: {
11978
11978
  attributes: {
11979
11979
  version: "1.0",
@@ -12026,7 +12026,7 @@ const s4 = {
12026
12026
  elements: []
12027
12027
  }
12028
12028
  ]
12029
- }, h4 = {
12029
+ }, hC = {
12030
12030
  elements: [
12031
12031
  {
12032
12032
  type: "element",
@@ -12128,7 +12128,7 @@ const s4 = {
12128
12128
  ]
12129
12129
  }
12130
12130
  ]
12131
- }, m4 = {
12131
+ }, mC = {
12132
12132
  declaration: {
12133
12133
  attributes: {
12134
12134
  version: "1.0",
@@ -12276,12 +12276,12 @@ const s4 = {
12276
12276
  }
12277
12277
  ]
12278
12278
  }, ii = {
12279
- COMMENTS_XML_DEF: u4,
12280
- COMMENTS_EXTENDED_XML_DEF: d4,
12281
- COMMENTS_EXTENSIBLE_XML_DEF: f4,
12282
- COMMENTS_IDS_XML_DEF: p4,
12283
- DOCUMENT_RELS_XML_DEF: h4,
12284
- CONTENT_TYPES: m4
12279
+ COMMENTS_XML_DEF: uC,
12280
+ COMMENTS_EXTENDED_XML_DEF: dC,
12281
+ COMMENTS_EXTENSIBLE_XML_DEF: fC,
12282
+ COMMENTS_IDS_XML_DEF: pC,
12283
+ DOCUMENT_RELS_XML_DEF: hC,
12284
+ CONTENT_TYPES: mC
12285
12285
  }, Wt = "trackInsert", wt = "trackDelete", Ot = "trackFormat", Cn = (t) => {
12286
12286
  if (t)
12287
12287
  try {
@@ -12290,11 +12290,11 @@ const s4 = {
12290
12290
  console.error("Error in carbonCopy", t, e);
12291
12291
  return;
12292
12292
  }
12293
- }, g4 = {
12293
+ }, gC = {
12294
12294
  attributes: {
12295
12295
  "w:abstractNumId": "1"
12296
12296
  }
12297
- }, y4 = {
12297
+ }, yC = {
12298
12298
  attributes: {
12299
12299
  "w:abstractNumId": "0"
12300
12300
  }
@@ -13548,7 +13548,7 @@ function Jg(t, e) {
13548
13548
  l && (c = t.comments.find((f) => f.commentId === l || f.importedId === l));
13549
13549
  const u = c?.isInternal || s.isInternal;
13550
13550
  if (r === "external" && u || s.resolvedTime) return;
13551
- let d = w4(e, a);
13551
+ let d = wC(e, a);
13552
13552
  if (e === "End") {
13553
13553
  const f = {
13554
13554
  name: "w:r",
@@ -13558,21 +13558,21 @@ function Jg(t, e) {
13558
13558
  }
13559
13559
  return d;
13560
13560
  }
13561
- const w4 = (t, e) => ({
13561
+ const wC = (t, e) => ({
13562
13562
  name: `w:commentRange${t}`,
13563
13563
  attributes: {
13564
13564
  "w:id": String(e)
13565
13565
  }
13566
- }), b4 = (t) => ({
13566
+ }), bC = (t) => ({
13567
13567
  ...t,
13568
13568
  commentParaId: $p()
13569
- }), v4 = (t, e, n) => {
13569
+ }), vC = (t, e, n) => {
13570
13570
  const r = av({ node: t.commentJSON }), o = {
13571
13571
  "w:id": String(e),
13572
13572
  "w:author": t.creatorName || t.importedAuthor?.name,
13573
13573
  "w:email": t.creatorEmail || t.importedAuthor?.email,
13574
13574
  "w:date": iv(t.createdTime),
13575
- "w:initials": x4(t.creatorName),
13575
+ "w:initials": xC(t.creatorName),
13576
13576
  "w:done": t.resolvedTime ? "1" : "0",
13577
13577
  "w15:paraId": t.commentParaId,
13578
13578
  "custom:internalId": t.commentId || t.internalId,
@@ -13591,10 +13591,10 @@ const w4 = (t, e) => ({
13591
13591
  attributes: o,
13592
13592
  elements: [r]
13593
13593
  };
13594
- }, x4 = (t) => t ? t.replace("(imported)", "").trim().split(" ").map((e) => e[0]).join("") : null, iv = (t) => new Date(t || Date.now()).toISOString().replace(/\.\d{3}Z$/, "Z"), k4 = (t = [], e) => {
13594
+ }, xC = (t) => t ? t.replace("(imported)", "").trim().split(" ").map((e) => e[0]).join("") : null, iv = (t) => new Date(t || Date.now()).toISOString().replace(/\.\d{3}Z$/, "Z"), kC = (t = [], e) => {
13595
13595
  const n = Cn(e);
13596
13596
  return t.forEach((r) => {
13597
- r.elements[0].elements.unshift(c4);
13597
+ r.elements[0].elements.unshift(cC);
13598
13598
  const o = r.attributes["w15:paraId"];
13599
13599
  r.elements[0].attributes["w14:paraId"] = o, r.attributes = {
13600
13600
  "w:id": r.attributes["w:id"],
@@ -13610,7 +13610,7 @@ const w4 = (t, e) => ({
13610
13610
  "xmlns:custom": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
13611
13611
  };
13612
13612
  }), n.elements[0].elements = t, n;
13613
- }, S4 = (t = [], e) => {
13613
+ }, SC = (t = [], e) => {
13614
13614
  const n = Cn(e), r = t.map((o) => {
13615
13615
  const i = {
13616
13616
  "w15:paraId": o.commentParaId,
@@ -13627,7 +13627,7 @@ const w4 = (t, e) => ({
13627
13627
  };
13628
13628
  });
13629
13629
  return n.elements[0].elements = r, n;
13630
- }, A4 = (t = [], e, n) => {
13630
+ }, AC = (t = [], e, n) => {
13631
13631
  const r = Cn(e), o = Cn(n);
13632
13632
  return r.elements[0].elements = [], o.elements[0].elements = [], t.forEach((i) => {
13633
13633
  const s = $p(), a = {
@@ -13652,13 +13652,13 @@ const w4 = (t, e) => ({
13652
13652
  documentIdsUpdated: r,
13653
13653
  extensibleUpdated: o
13654
13654
  };
13655
- }, E4 = (t) => {
13655
+ }, EC = (t) => {
13656
13656
  const e = Cn(t);
13657
13657
  return e["word/comments.xml"] = ii.COMMENTS_XML_DEF, e["word/commentsExtended.xml"] = ii.COMMENTS_EXTENDED_XML_DEF, e["word/commentsExtensible.xml"] = ii.COMMENTS_EXTENSIBLE_XML_DEF, e["word/commentsIds.xml"] = ii.COMMENTS_IDS_XML_DEF, e["[Content_Types].xml"] = ii.CONTENT_TYPES, e;
13658
- }, C4 = (t) => {
13658
+ }, CC = (t) => {
13659
13659
  const e = Cn(t);
13660
13660
  return delete e["word/comments.xml"], delete e["word/commentsExtended.xml"], delete e["word/commentsExtensible.xml"], delete e["word/commentsIds.xml"], e;
13661
- }, Ca = (t) => ({ ...ii.DOCUMENT_RELS_XML_DEF.elements[0].elements.find((e) => e.attributes.Target === t) }), T4 = ({
13661
+ }, Ca = (t) => ({ ...ii.DOCUMENT_RELS_XML_DEF.elements[0].elements.find((e) => e.attributes.Target === t) }), TC = ({
13662
13662
  convertedXml: t,
13663
13663
  defs: e,
13664
13664
  commentsWithParaIds: n,
@@ -13667,16 +13667,16 @@ const w4 = (t, e) => ({
13667
13667
  }) => {
13668
13668
  const i = [];
13669
13669
  if (r === "clean")
13670
- return { documentXml: C4(t), relationships: i };
13671
- const s = E4(t);
13672
- s["word/comments.xml"] = k4(
13670
+ return { documentXml: CC(t), relationships: i };
13671
+ const s = EC(t);
13672
+ s["word/comments.xml"] = kC(
13673
13673
  e,
13674
13674
  s["word/comments.xml"]
13675
- ), i.push(Ca("comments.xml")), s["word/commentsExtended.xml"] = S4(
13675
+ ), i.push(Ca("comments.xml")), s["word/commentsExtended.xml"] = SC(
13676
13676
  n,
13677
13677
  s["word/commentsExtended.xml"]
13678
13678
  ), i.push(Ca("commentsExtended.xml"));
13679
- const { documentIdsUpdated: a, extensibleUpdated: l } = A4(
13679
+ const { documentIdsUpdated: a, extensibleUpdated: l } = AC(
13680
13680
  n,
13681
13681
  s["word/commentsIds.xml"],
13682
13682
  s["word/commentsExtensible.xml"]
@@ -13708,19 +13708,19 @@ const w4 = (t, e) => ({
13708
13708
  };
13709
13709
  function Vi(t) {
13710
13710
  const { type: e } = t.node || {}, n = {
13711
- doc: M4,
13712
- body: $4,
13711
+ doc: MC,
13712
+ body: $C,
13713
13713
  paragraph: av,
13714
- text: D4,
13714
+ text: DC,
13715
13715
  bulletList: Yg,
13716
13716
  orderedList: Yg,
13717
- lineBreak: P4,
13718
- table: z4,
13719
- tableRow: W4,
13720
- tableCell: K4,
13721
- bookmarkStart: Y4,
13717
+ lineBreak: PC,
13718
+ table: zC,
13719
+ tableRow: WC,
13720
+ tableCell: KC,
13721
+ bookmarkStart: YC,
13722
13722
  fieldAnnotation: i6,
13723
- tab: q4,
13723
+ tab: qC,
13724
13724
  image: uv,
13725
13725
  hardBreak: s6,
13726
13726
  commentRangeStart: () => Jg(t, "Start"),
@@ -13732,7 +13732,7 @@ function Vi(t) {
13732
13732
  };
13733
13733
  return n[e] ? n[e](t) : (console.error("No translation function found for node type:", e), null);
13734
13734
  }
13735
- function $4(t) {
13735
+ function $C(t) {
13736
13736
  const e = t.bodyNode?.elements.find((n) => n.name === "w:sectPr") || {};
13737
13737
  if (t.converter) {
13738
13738
  const n = t.converter.pageStyles.pageMargins, r = e.elements.find((i) => i.name === "w:pgMar"), { attributes: o } = r;
@@ -13750,7 +13750,7 @@ function av(t) {
13750
13750
  const e = io(t), n = e.find((i) => i.name === "htmlAnnotation");
13751
13751
  if (e.length === 1 && n)
13752
13752
  return n.elements;
13753
- const r = O4(t.node);
13753
+ const r = OC(t.node);
13754
13754
  r && e.unshift(r);
13755
13755
  let o = {};
13756
13756
  return t.node.attrs?.rsidRDefault && (o["w:rsidRDefault"] = t.node.attrs.rsidRDefault), {
@@ -13759,13 +13759,13 @@ function av(t) {
13759
13759
  attributes: o
13760
13760
  };
13761
13761
  }
13762
- function O4(t) {
13762
+ function OC(t) {
13763
13763
  const { attrs: e = {} } = t, n = [], { styleId: r } = e;
13764
13764
  r && n.push({ name: "w:pStyle", attributes: { "w:val": r } });
13765
13765
  const { spacing: o, indent: i, textAlign: s, textIndent: a, lineHeight: l, marksAttrs: c, keepLines: u, keepNext: d, dropcap: f } = e;
13766
13766
  if (o) {
13767
13767
  const { lineSpaceBefore: p, lineSpaceAfter: h, line: m, lineRule: y } = o, g = {};
13768
- p >= 0 && (g["w:before"] = mt(p)), h >= 0 && (g["w:after"] = mt(h)), y === "exact" ? l && (g["w:line"] = ZC(parseFloat(l))) : l && (g["w:line"] = Jd(l)), g["w:lineRule"] = y || "auto";
13768
+ p >= 0 && (g["w:before"] = mt(p)), h >= 0 && (g["w:after"] = mt(h)), y === "exact" ? l && (g["w:line"] = Z4(parseFloat(l))) : l && (g["w:line"] = Jd(l)), g["w:lineRule"] = y || "auto";
13769
13769
  const b = {
13770
13770
  name: "w:spacing",
13771
13771
  attributes: g
@@ -13829,7 +13829,7 @@ function O4(t) {
13829
13829
  elements: n
13830
13830
  } : null;
13831
13831
  }
13832
- function M4(t) {
13832
+ function MC(t) {
13833
13833
  const e = {
13834
13834
  type: "body",
13835
13835
  content: t.node.content
@@ -13837,7 +13837,7 @@ function M4(t) {
13837
13837
  return [{
13838
13838
  name: "w:document",
13839
13839
  elements: [Vi({ ...t, node: e })],
13840
- attributes: s4
13840
+ attributes: sC
13841
13841
  }, t];
13842
13842
  }
13843
13843
  function io(t) {
@@ -13884,14 +13884,14 @@ function pc(t, e, n) {
13884
13884
  }
13885
13885
  return fa(i, s);
13886
13886
  }
13887
- function D4(t) {
13887
+ function DC(t) {
13888
13888
  const { node: e } = t, n = [Wt, wt];
13889
- if (e.marks?.some((i) => n.includes(i.type))) return I4(t);
13890
- if (e.marks?.some((i) => i.type === "link")) return N4(t);
13889
+ if (e.marks?.some((i) => n.includes(i.type))) return IC(t);
13890
+ if (e.marks?.some((i) => i.type === "link")) return NC(t);
13891
13891
  const { text: r, marks: o = [] } = e;
13892
13892
  return pc(r, o, t);
13893
13893
  }
13894
- function _4(t) {
13894
+ function _C(t) {
13895
13895
  const e = t.find((n) => n.type === Ot);
13896
13896
  if (e)
13897
13897
  return {
@@ -13906,8 +13906,8 @@ function _4(t) {
13906
13906
  elements: e.attrs.before.map((n) => hc([n])).filter((n) => n !== void 0)
13907
13907
  };
13908
13908
  }
13909
- function I4(t) {
13910
- const { node: e } = t, n = e.marks, r = [Wt, wt, Ot], o = n.find((l) => r.includes(l.type)), i = o.type === Wt, s = _4(n);
13909
+ function IC(t) {
13910
+ const { node: e } = t, n = e.marks, r = [Wt, wt, Ot], o = n.find((l) => r.includes(l.type)), i = o.type === Wt, s = _C(n);
13911
13911
  e.marks = n.filter((l) => !r.includes(l.type)), s && e.marks.push(s);
13912
13912
  const a = Vi({ ...t, node: e });
13913
13913
  if (!i) {
@@ -13945,7 +13945,7 @@ function hc(t = []) {
13945
13945
  return Zg(o);
13946
13946
  }) : Zg(e));
13947
13947
  }
13948
- function N4(t) {
13948
+ function NC(t) {
13949
13949
  const { node: e } = t, n = e.marks.find((s) => s.type === "link"), r = n.attrs.href;
13950
13950
  let o = n.attrs.rId;
13951
13951
  o || (o = cv(t, r)), e.marks = e.marks.filter((s) => s.type !== "link");
@@ -13985,9 +13985,9 @@ function Xg(t, e) {
13985
13985
  return t.relationships.push(r), n;
13986
13986
  }
13987
13987
  function Yg(t) {
13988
- const { type: e } = t.node, n = B4(t), r = [];
13988
+ const { type: e } = t.node, n = BC(t), r = [];
13989
13989
  return n.forEach((o) => {
13990
- const { level: i, listType: s, pPrs: a, content: l, attrs: c = {} } = o, u = (o.attrs.numId || o.listId) ?? F4(t, s), d = L4(i, u, a);
13990
+ const { level: i, listType: s, pPrs: a, content: l, attrs: c = {} } = o, u = (o.attrs.numId || o.listId) ?? FC(t, s), d = LC(i, u, a);
13991
13991
  l.forEach((f, p) => {
13992
13992
  const h = Object.assign({}, f);
13993
13993
  h.attrs = {
@@ -14020,8 +14020,8 @@ function Yg(t) {
14020
14020
  });
14021
14021
  }), r;
14022
14022
  }
14023
- function F4(t, e) {
14024
- const n = R4(t.converter?.numbering?.definitions), r = e === "bullet" ? y4 : g4, o = n, i = r.attributes["w:abstractNumId"], s = {
14023
+ function FC(t, e) {
14024
+ const n = RC(t.converter?.numbering?.definitions), r = e === "bullet" ? yC : gC, o = n, i = r.attributes["w:abstractNumId"], s = {
14025
14025
  type: "element",
14026
14026
  name: "w:num",
14027
14027
  attributes: {
@@ -14034,8 +14034,8 @@ function F4(t, e) {
14034
14034
  };
14035
14035
  return t.converter.numbering.definitions[o] = s, o;
14036
14036
  }
14037
- const R4 = (t) => !t || !Object.keys(t).length ? 0 : Math.max(...Object.keys(t).map((e) => parseInt(e, 10))) + 1;
14038
- function L4(t, e, n = []) {
14037
+ const RC = (t) => !t || !Object.keys(t).length ? 0 : Math.max(...Object.keys(t).map((e) => parseInt(e, 10))) + 1;
14038
+ function LC(t, e, n = []) {
14039
14039
  return {
14040
14040
  name: "w:pPr",
14041
14041
  type: "element",
@@ -14060,7 +14060,7 @@ function L4(t, e, n = []) {
14060
14060
  ]
14061
14061
  };
14062
14062
  }
14063
- function B4({ node: t }) {
14063
+ function BC({ node: t }) {
14064
14064
  const { content: e, attrs: n = {} } = t, { listId: r, syncId: o } = t.attrs || {}, i = t.attrs["list-style-type"], { attributes: s = {} } = n, a = s?.parentAttributes?.paragraphProperties?.elements?.filter((u) => u.name !== "w:numPr") || [], l = [];
14065
14065
  function c(u, d = 0) {
14066
14066
  !u || !u.length || u.forEach((f) => {
@@ -14081,22 +14081,22 @@ function B4({ node: t }) {
14081
14081
  }
14082
14082
  return c(e), l;
14083
14083
  }
14084
- function P4(t) {
14084
+ function PC(t) {
14085
14085
  const e = {}, { lineBreakType: n } = t.node?.attrs || {};
14086
14086
  return n && (e["w:type"] = n), {
14087
14087
  name: "w:br",
14088
14088
  attributes: e
14089
14089
  };
14090
14090
  }
14091
- function z4(t) {
14092
- t.node = j4(t.node, t);
14093
- const e = io(t), n = U4(t.node), r = H4(t.node, t);
14091
+ function zC(t) {
14092
+ t.node = jC(t.node, t);
14093
+ const e = io(t), n = UC(t.node), r = HC(t.node, t);
14094
14094
  return e.unshift(n), e.unshift(r), {
14095
14095
  name: "w:tbl",
14096
14096
  elements: e
14097
14097
  };
14098
14098
  }
14099
- function j4(t, { editorSchema: e }) {
14099
+ function jC(t, { editorSchema: e }) {
14100
14100
  const { content: n } = t;
14101
14101
  for (let r = 0; r < n.length; r++) {
14102
14102
  const o = n[r];
@@ -14132,13 +14132,13 @@ function j4(t, { editorSchema: e }) {
14132
14132
  }
14133
14133
  return t;
14134
14134
  }
14135
- function q4(t) {
14135
+ function qC(t) {
14136
14136
  const { marks: e = [] } = t.node, n = hc(e);
14137
14137
  return fa({
14138
14138
  name: "w:tab"
14139
14139
  }, n);
14140
14140
  }
14141
- function U4(t) {
14141
+ function UC(t) {
14142
14142
  const e = [], { attrs: n } = t, { tableWidth: r, tableWidthType: o, tableStyleId: i, borders: s, tableIndent: a, tableLayout: l, tableCellSpacing: c } = n;
14143
14143
  if (i) {
14144
14144
  const u = {
@@ -14148,7 +14148,7 @@ function U4(t) {
14148
14148
  e.push(u);
14149
14149
  }
14150
14150
  if (s) {
14151
- const u = V4(t);
14151
+ const u = VC(t);
14152
14152
  e.push(u);
14153
14153
  }
14154
14154
  if (a) {
@@ -14183,7 +14183,7 @@ function U4(t) {
14183
14183
  elements: e
14184
14184
  };
14185
14185
  }
14186
- function V4(t) {
14186
+ function VC(t) {
14187
14187
  const { borders: e } = t.attrs, n = [];
14188
14188
  return e ? (["top", "bottom", "left", "right", "insideH", "insideV"].forEach((r) => {
14189
14189
  const o = e[r];
@@ -14207,7 +14207,7 @@ function V4(t) {
14207
14207
  elements: n
14208
14208
  }) : void 0;
14209
14209
  }
14210
- function H4(t, e) {
14210
+ function HC(t, e) {
14211
14211
  const { editorSchema: n } = e;
14212
14212
  let r = [];
14213
14213
  try {
@@ -14230,14 +14230,14 @@ function H4(t, e) {
14230
14230
  elements: o
14231
14231
  };
14232
14232
  }
14233
- function W4(t) {
14234
- const e = io(t), n = G4(t.node);
14233
+ function WC(t) {
14234
+ const e = io(t), n = GC(t.node);
14235
14235
  return n.elements.length && e.unshift(n), {
14236
14236
  name: "w:tr",
14237
14237
  elements: e
14238
14238
  };
14239
14239
  }
14240
- function G4(t) {
14240
+ function GC(t) {
14241
14241
  const { attrs: e } = t, n = [], { rowHeight: r, rowHeightType: o } = e;
14242
14242
  if (r) {
14243
14243
  const i = { "w:val": mt(r) };
@@ -14253,17 +14253,17 @@ function G4(t) {
14253
14253
  elements: n
14254
14254
  };
14255
14255
  }
14256
- function K4(t) {
14256
+ function KC(t) {
14257
14257
  const e = io({
14258
14258
  ...t,
14259
14259
  tableCell: t.node
14260
- }), n = J4(t.node);
14260
+ }), n = JC(t.node);
14261
14261
  return e.unshift(n), {
14262
14262
  name: "w:tc",
14263
14263
  elements: e
14264
14264
  };
14265
14265
  }
14266
- function J4(t) {
14266
+ function JC(t) {
14267
14267
  const e = [], { attrs: n } = t, { colwidth: r = [], cellWidthType: o = "dxa", background: i = {}, colspan: s, rowspan: a, widthUnit: l } = n, c = r.reduce((m, y) => m + y, 0), u = {
14268
14268
  name: "w:tcW",
14269
14269
  attributes: { "w:w": l === "px" ? mt(c) : Ci(c), "w:type": o }
@@ -14287,7 +14287,7 @@ function J4(t) {
14287
14287
  if (f) {
14288
14288
  const m = {
14289
14289
  name: "w:tcMar",
14290
- elements: X4(f)
14290
+ elements: XC(f)
14291
14291
  };
14292
14292
  e.push(m);
14293
14293
  }
@@ -14339,11 +14339,11 @@ function J4(t) {
14339
14339
  elements: e
14340
14340
  };
14341
14341
  }
14342
- function X4(t) {
14342
+ function XC(t) {
14343
14343
  const e = [], { top: n, right: r, bottom: o, left: i } = t;
14344
14344
  return n != null && e.push({ name: "w:top", attributes: { "w:w": mt(n) } }), r != null && e.push({ name: "w:right", attributes: { "w:w": mt(r) } }), o != null && e.push({ name: "w:bottom", attributes: { "w:w": mt(o) } }), i != null && e.push({ name: "w:left", attributes: { "w:w": mt(i) } }), e;
14345
14345
  }
14346
- function Y4(t) {
14346
+ function YC(t) {
14347
14347
  const e = {
14348
14348
  name: "w:bookmarkStart",
14349
14349
  attributes: {
@@ -14382,7 +14382,7 @@ function Zg(t) {
14382
14382
  break;
14383
14383
  case "color":
14384
14384
  let i = r.color.replace(/^#/, "").replace(/;$/, "");
14385
- i.startsWith("rgb") && (i = o4(i)), n.attributes["w:val"] = i;
14385
+ i.startsWith("rgb") && (i = oC(i)), n.attributes["w:val"] = i;
14386
14386
  break;
14387
14387
  case "textAlign":
14388
14388
  n.attributes["w:val"] = r.textAlign;
@@ -14399,7 +14399,7 @@ function Zg(t) {
14399
14399
  }
14400
14400
  return n;
14401
14401
  }
14402
- function Z4(t) {
14402
+ function ZC(t) {
14403
14403
  if (!t) return {};
14404
14404
  const e = t.split(";")[0].split("/")[1];
14405
14405
  if (!t || e !== "png")
@@ -14413,7 +14413,7 @@ function Z4(t) {
14413
14413
  originalHeight: o.getInt32(20)
14414
14414
  };
14415
14415
  }
14416
- function Q4(t, e, n, r) {
14416
+ function QC(t, e, n, r) {
14417
14417
  let o = t, i = e, s = Math.min(n / t, r / e);
14418
14418
  return o = Math.round(o * s), i = Math.round(i * s), { scaledWidth: o, scaledHeight: i };
14419
14419
  }
@@ -14423,13 +14423,13 @@ function uv(t, e) {
14423
14423
  tableCell: o
14424
14424
  } = t;
14425
14425
  let i = n.rId;
14426
- const s = n.src || n.imageSrc, { originalWidth: a, originalHeight: l } = Z4(s);
14426
+ const s = n.src || n.imageSrc, { originalWidth: a, originalHeight: l } = ZC(s);
14427
14427
  let c = n.size ? {
14428
14428
  w: Xi(n.size.width),
14429
14429
  h: Xi(n.size.height)
14430
14430
  } : e;
14431
14431
  if (a && l) {
14432
- const p = an(c.w), h = an(c.h), { scaledWidth: m, scaledHeight: y } = Q4(a, l, p, h);
14432
+ const p = an(c.w), h = an(c.h), { scaledWidth: m, scaledHeight: y } = QC(a, l, p, h);
14433
14433
  c = {
14434
14434
  w: Xi(m),
14435
14435
  h: Xi(y)
@@ -14984,7 +14984,7 @@ function pv(t, e, n) {
14984
14984
  r.fonts = { ascii: g, hAnsi: b, cs: x };
14985
14985
  }
14986
14986
  const y = p.elements.find((g) => g.name === "w:sz");
14987
- y?.attributes && (r.fontSize = YC(y.attributes["w:val"]) + "pt");
14987
+ y?.attributes && (r.fontSize = Y4(y.attributes["w:val"]) + "pt");
14988
14988
  }
14989
14989
  const h = c.elements.find((m) => m.name === "w:tblPr");
14990
14990
  if (h && h.elements) {
@@ -15219,7 +15219,7 @@ function O6(t) {
15219
15219
  }
15220
15220
  function M6(t) {
15221
15221
  const e = t["w:fill"];
15222
- return e && e !== "auto" ? `#${e}` : n4(t?.["w:val"]) ? `#${t["w:val"]}` : t4(t?.["w:val"]) || null;
15222
+ return e && e !== "auto" ? `#${e}` : nC(t?.["w:val"]) ? `#${t["w:val"]}` : tC(t?.["w:val"]) || null;
15223
15223
  }
15224
15224
  function Io(t, e) {
15225
15225
  const n = [], r = [], { attributes: o = {}, elements: i = [] } = t, { nodes: s, paragraphProperties: a = {}, runProperties: l = {} } = D6(i);
@@ -16547,7 +16547,7 @@ const hs = class Mv {
16547
16547
  return;
16548
16548
  }
16549
16549
  }
16550
- static updateDocumentVersion(e = this.convertedXml, n = "0.10.42") {
16550
+ static updateDocumentVersion(e = this.convertedXml, n = "0.10.44") {
16551
16551
  const r = "docProps/custom.xml";
16552
16552
  e[r] || (e[r] = Dv());
16553
16553
  const o = e["docProps/custom.xml"];
@@ -16598,7 +16598,7 @@ const hs = class Mv {
16598
16598
  for (const s of n) {
16599
16599
  const a = o.find((m) => m.attributes.Id === s.attributes["r:id"])?.attributes?.Target;
16600
16600
  if (!a) return;
16601
- const l = i4(this.fonts[`word/${a}`], s.attributes["w:fontKey"]);
16601
+ const l = iC(this.fonts[`word/${a}`], s.attributes["w:fontKey"]);
16602
16602
  if (!l) return;
16603
16603
  const c = new Blob([l], { type: "font/ttf" }), u = URL.createObjectURL(c), d = s.name.includes("Regular"), f = s.name.includes("Bold"), p = s.name.includes("Italic"), h = s.name.includes("Light");
16604
16604
  i += `
@@ -16615,7 +16615,7 @@ const hs = class Mv {
16615
16615
  }
16616
16616
  getDocumentInternalId() {
16617
16617
  const e = "word/settings.xml";
16618
- this.convertedXml[e] || (this.convertedXml[e] = l4);
16618
+ this.convertedXml[e] || (this.convertedXml[e] = lC);
16619
16619
  const n = Object.assign({}, this.convertedXml[e]);
16620
16620
  if (!n.elements[0]?.elements?.length) {
16621
16621
  const o = this.createDocumentIdElement(n);
@@ -16654,7 +16654,7 @@ const hs = class Mv {
16654
16654
  return new ey(this).schemaToXml(e, n);
16655
16655
  }
16656
16656
  async exportToDocx(e, n, r, o = !1, i, s = [], a) {
16657
- const l = s.map((m) => b4(m)), c = l.map((m, y) => v4(m, y, l)), { result: u, params: d } = this.exportToXmlJson({
16657
+ const l = s.map((m) => bC(m)), c = l.map((m, y) => vC(m, y, l)), { result: u, params: d } = this.exportToXmlJson({
16658
16658
  data: e,
16659
16659
  editorSchema: n,
16660
16660
  comments: s,
@@ -16717,7 +16717,7 @@ si = /* @__PURE__ */ new WeakSet(), Cv = function(t) {
16717
16717
  * Update comments files and relationships depending on export type
16718
16718
  */
16719
16719
  Tv = function({ defs: t, exportType: e, commentsWithParaIds: n }) {
16720
- const { documentXml: r, relationships: o } = T4({
16720
+ const { documentXml: r, relationships: o } = TC({
16721
16721
  exportType: e,
16722
16722
  convertedXml: this.convertedXml,
16723
16723
  defs: t,
@@ -16737,7 +16737,7 @@ Tv = function({ defs: t, exportType: e, commentsWithParaIds: n }) {
16737
16737
  for (const n in t) {
16738
16738
  if (typeof t[n] != "string") return;
16739
16739
  const r = n.split("/").pop();
16740
- e[r] = await QC(t[n]);
16740
+ e[r] = await Q4(t[n]);
16741
16741
  }
16742
16742
  this.convertedXml.media = {
16743
16743
  ...this.convertedXml.media,
@@ -16806,9 +16806,9 @@ function BT(t) {
16806
16806
  return o.push(_v(i)), n.elements = o, t;
16807
16807
  }
16808
16808
  function Dv() {
16809
- return a4;
16809
+ return aC;
16810
16810
  }
16811
- function _v(t = 2, e = "0.10.42") {
16811
+ function _v(t = 2, e = "0.10.44") {
16812
16812
  return {
16813
16813
  type: "element",
16814
16814
  name: "property",
@@ -19195,7 +19195,7 @@ let ly = class {
19195
19195
  async updateContentTypes(e, n) {
19196
19196
  const r = Object.keys(n).map((d) => this.getFileExtension(d)), o = "[Content_Types].xml", i = await e.file(o).async("string");
19197
19197
  let s = "";
19198
- const a = e4(i), l = /* @__PURE__ */ new Set();
19198
+ const a = eC(i), l = /* @__PURE__ */ new Set();
19199
19199
  for (let d of r) {
19200
19200
  if (a.includes(d) || l.has(d)) continue;
19201
19201
  const f = `<Default Extension="${d}" ContentType="image/${d}"/>`;
@@ -25133,7 +25133,7 @@ zl = /* @__PURE__ */ new WeakSet(), z2 = function(t, e) {
25133
25133
  return n;
25134
25134
  }, Jr(Me, zl);
25135
25135
  function xf(t) {
25136
- const e = Object.entries(t).filter(([n, r]) => n === "attrs" && WC(r) ? !1 : r != null);
25136
+ const e = Object.entries(t).filter(([n, r]) => n === "attrs" && W4(r) ? !1 : r != null);
25137
25137
  return Object.fromEntries(e);
25138
25138
  }
25139
25139
  var jl, q2, U2;
@@ -27781,7 +27781,7 @@ const BD = (t, e = {}) => ({ state: n, dispatch: r }) => {
27781
27781
  "Ctrl-e": () => this.editor.commands.selectTextblockEnd(),
27782
27782
  "Ctrl-t": () => this.editor.commands.insertTabChar()
27783
27783
  };
27784
- return GC() || KC() ? n : e;
27784
+ return G4() || K4() ? n : e;
27785
27785
  }
27786
27786
  }), YD = ut.create({
27787
27787
  name: "editable",
@@ -29274,7 +29274,7 @@ const v8 = class Ox extends bM {
29274
29274
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
29275
29275
  */
29276
29276
  processCollaborationMigrations() {
29277
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.42"), !this.options.ydoc) return;
29277
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.44"), !this.options.ydoc) return;
29278
29278
  let e = this.options.ydoc.getMap("meta").get("version");
29279
29279
  e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
29280
29280
  const n = sw(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));
@@ -30701,7 +30701,7 @@ const pw = /^(\d+)\.\s$/, Hx = Qe.create({
30701
30701
  renderDOM: (t) => {
30702
30702
  let e = t["list-style-type"];
30703
30703
  return e ? (e === "lowerLetter" && (e = "lowerAlpha"), {
30704
- style: `list-style-type: ${VC(e)};`
30704
+ style: `list-style-type: ${V4(e)};`
30705
30705
  }) : {};
30706
30706
  }
30707
30707
  },
@@ -31563,11 +31563,16 @@ const k_ = Qe.create({
31563
31563
  name: "lineBreak",
31564
31564
  group: "inline",
31565
31565
  inline: !0,
31566
+ marks: "",
31567
+ defining: !0,
31568
+ selectable: !1,
31569
+ content: "",
31570
+ atom: !0,
31566
31571
  parseDOM() {
31567
31572
  return [{ tag: "br" }];
31568
31573
  },
31569
31574
  renderDOM() {
31570
- return ["br", {}, 0];
31575
+ return ["br", {}];
31571
31576
  }
31572
31577
  }), Qx = Qe.create({
31573
31578
  name: "hardBreak",
@@ -46962,7 +46967,7 @@ class tH extends Wq {
46962
46967
  console.warn(`[super-toolbar 🎨] Element not found: ${this.config.selector}`);
46963
46968
  return;
46964
46969
  }
46965
- this.app = xb(Aq), this.app.directive("click-outside", HC), this.app.config.globalProperties.$toolbar = this, n && (this.toolbar = this.app.mount(n)), this.activeEditor = e.editor || null, this.updateToolbarState();
46970
+ this.app = xb(Aq), this.app.directive("click-outside", H4), this.app.config.globalProperties.$toolbar = this, n && (this.toolbar = this.app.mount(n)), this.activeEditor = e.editor || null, this.updateToolbarState();
46966
46971
  }
46967
46972
  log(...e) {
46968
46973
  console.debug("[🎨 super-toolbar]", ...e);