@harbour-enterprises/superdoc 0.10.56 → 0.10.58

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.
@@ -3,7 +3,7 @@ var _i = (r) => {
3
3
  throw TypeError(r);
4
4
  };
5
5
  var Iu = (r, e, t) => e in r ? Nu(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
6
- var _t = (r, e, t) => Iu(r, typeof e != "symbol" ? e + "" : e, t), Ru = (r, e, t) => e.has(r) || _i("Cannot " + t);
6
+ var qt = (r, e, t) => Iu(r, typeof e != "symbol" ? e + "" : e, t), Ru = (r, e, t) => e.has(r) || _i("Cannot " + t);
7
7
  var Ir = (r, e, t) => e.has(r) ? _i("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t);
8
8
  var Ke = (r, e, t) => (Ru(r, e, "access private method"), t);
9
9
  import "vue";
@@ -1049,7 +1049,7 @@ bi.write = function(r, e, t, n, i, s) {
1049
1049
  throw new Error("BigInt not supported");
1050
1050
  }
1051
1051
  })(Fe);
1052
- const Ht = Fe.Buffer, Vu = Fe.Blob, zu = Fe.BlobOptions, Gu = Fe.Buffer, Wu = Fe.File, Ju = Fe.FileOptions, $u = Fe.INSPECT_MAX_BYTES, Ku = Fe.SlowBuffer, Xu = Fe.TranscodeEncoding, Yu = Fe.atob, Zu = Fe.btoa, Qu = Fe.constants, el = Fe.isAscii, tl = Fe.isUtf8, rl = Fe.kMaxLength, nl = Fe.kStringMaxLength, il = Fe.resolveObjectURL, sl = Fe.transcode, ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1052
+ const vt = Fe.Buffer, Vu = Fe.Blob, zu = Fe.BlobOptions, Gu = Fe.Buffer, Wu = Fe.File, Ju = Fe.FileOptions, $u = Fe.INSPECT_MAX_BYTES, Ku = Fe.SlowBuffer, Xu = Fe.TranscodeEncoding, Yu = Fe.atob, Zu = Fe.btoa, Qu = Fe.constants, el = Fe.isAscii, tl = Fe.isUtf8, rl = Fe.kMaxLength, nl = Fe.kStringMaxLength, il = Fe.resolveObjectURL, sl = Fe.transcode, ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1053
1053
  __proto__: null,
1054
1054
  Blob: Vu,
1055
1055
  BlobOptions: zu,
@@ -1062,7 +1062,7 @@ const Ht = Fe.Buffer, Vu = Fe.Blob, zu = Fe.BlobOptions, Gu = Fe.Buffer, Wu = Fe
1062
1062
  atob: Yu,
1063
1063
  btoa: Zu,
1064
1064
  constants: Qu,
1065
- default: Ht,
1065
+ default: vt,
1066
1066
  isAscii: el,
1067
1067
  isUtf8: tl,
1068
1068
  kMaxLength: rl,
@@ -1354,20 +1354,20 @@ function ul(r) {
1354
1354
  }
1355
1355
  }
1356
1356
  }
1357
- var ot = [], vt = !1, pt, ar = -1;
1357
+ var ot = [], Ct = !1, pt, ar = -1;
1358
1358
  function ll() {
1359
- !vt || !pt || (vt = !1, pt.length ? ot = pt.concat(ot) : ar = -1, ot.length && zo());
1359
+ !Ct || !pt || (Ct = !1, pt.length ? ot = pt.concat(ot) : ar = -1, ot.length && zo());
1360
1360
  }
1361
1361
  function zo() {
1362
- if (!vt) {
1362
+ if (!Ct) {
1363
1363
  var r = Vo(ll);
1364
- vt = !0;
1364
+ Ct = !0;
1365
1365
  for (var e = ot.length; e; ) {
1366
1366
  for (pt = ot, ot = []; ++ar < e; )
1367
1367
  pt && pt[ar].run();
1368
1368
  ar = -1, e = ot.length;
1369
1369
  }
1370
- pt = null, vt = !1, ul(r);
1370
+ pt = null, Ct = !1, ul(r);
1371
1371
  }
1372
1372
  }
1373
1373
  Ee.nextTick = function(r) {
@@ -1375,7 +1375,7 @@ Ee.nextTick = function(r) {
1375
1375
  if (arguments.length > 1)
1376
1376
  for (var t = 1; t < arguments.length; t++)
1377
1377
  e[t - 1] = arguments[t];
1378
- ot.push(new Go(r, e)), ot.length === 1 && !vt && Vo(zo);
1378
+ ot.push(new Go(r, e)), ot.length === 1 && !Ct && Vo(zo);
1379
1379
  };
1380
1380
  function Go(r, e) {
1381
1381
  this.fun = r, this.array = e;
@@ -1537,7 +1537,7 @@ function vl() {
1537
1537
  return ss || (ss = 1, tn = Object.getOwnPropertyDescriptor), tn;
1538
1538
  }
1539
1539
  var rn, os;
1540
- function Pt() {
1540
+ function Ot() {
1541
1541
  if (os) return rn;
1542
1542
  os = 1;
1543
1543
  var r = vl();
@@ -1668,7 +1668,7 @@ var hn, ys;
1668
1668
  function Fl() {
1669
1669
  if (ys) return hn;
1670
1670
  ys = 1;
1671
- var r = Ei(), e = Pt(), t;
1671
+ var r = Ei(), e = Ot(), t;
1672
1672
  try {
1673
1673
  t = /** @type {{ __proto__?: typeof Array.prototype }} */
1674
1674
  [].__proto__ === Array.prototype;
@@ -1719,7 +1719,7 @@ function ea() {
1719
1719
  return F('"use strict"; return (' + I + ").constructor;")();
1720
1720
  } catch {
1721
1721
  }
1722
- }, B = Pt(), R = Cr(), D = function() {
1722
+ }, B = Ot(), R = Cr(), D = function() {
1723
1723
  throw new a();
1724
1724
  }, k = B ? function() {
1725
1725
  try {
@@ -1980,7 +1980,7 @@ var An, vs;
1980
1980
  function kl() {
1981
1981
  if (vs) return An;
1982
1982
  vs = 1;
1983
- var r = Xt(), e = vr()(), t = Qo(), n = Pt(), i;
1983
+ var r = Xt(), e = vr()(), t = Qo(), n = Ot(), i;
1984
1984
  if (e) {
1985
1985
  var s = r("RegExp.prototype.exec"), o = {}, a = function() {
1986
1986
  throw o;
@@ -2194,7 +2194,7 @@ var Fn = { exports: {} }, Bn, Ns;
2194
2194
  function _l() {
2195
2195
  if (Ns) return Bn;
2196
2196
  Ns = 1;
2197
- var r = Cr(), e = Ko(), t = $t(), n = Pt();
2197
+ var r = Cr(), e = Ko(), t = $t(), n = Ot();
2198
2198
  return Bn = function(s, o, a) {
2199
2199
  if (!s || typeof s != "object" && typeof s != "function")
2200
2200
  throw new t("`obj` must be an object or a function`");
@@ -2243,7 +2243,7 @@ var Nn, Rs;
2243
2243
  function Ml() {
2244
2244
  if (Rs) return Nn;
2245
2245
  Rs = 1;
2246
- var r = ea(), e = _l(), t = ql()(), n = Pt(), i = $t(), s = r("%Math.floor%");
2246
+ var r = ea(), e = _l(), t = ql()(), n = Ot(), i = $t(), s = r("%Math.floor%");
2247
2247
  return Nn = function(a, u) {
2248
2248
  if (typeof a != "function")
2249
2249
  throw new i("`fn` is not a function");
@@ -2296,7 +2296,7 @@ var Rn, Ls;
2296
2296
  function ta() {
2297
2297
  if (Ls) return Rn;
2298
2298
  Ls = 1;
2299
- var r = Pl(), e = Ll(), t = jl(), n = Xt(), i = Pt(), s = vi(), o = n("Object.prototype.toString"), a = vr()(), u = typeof globalThis > "u" ? Je : globalThis, f = e(), l = n("String.prototype.slice"), h = n("Array.prototype.indexOf", !0) || function(F, w) {
2299
+ var r = Pl(), e = Ll(), t = jl(), n = Xt(), i = Ot(), s = vi(), o = n("Object.prototype.toString"), a = vr()(), u = typeof globalThis > "u" ? Je : globalThis, f = e(), l = n("String.prototype.slice"), h = n("Array.prototype.indexOf", !0) || function(F, w) {
2300
2300
  for (var B = 0; B < F.length; B += 1)
2301
2301
  if (F[B] === w)
2302
2302
  return B;
@@ -3156,7 +3156,7 @@ function na() {
3156
3156
  }, _n;
3157
3157
  }
3158
3158
  var qn = {}, Vs;
3159
- function Ot() {
3159
+ function Lt() {
3160
3160
  if (Vs) return qn;
3161
3161
  Vs = 1;
3162
3162
  function r(a, u) {
@@ -3220,7 +3220,7 @@ var Mn, zs;
3220
3220
  function ia() {
3221
3221
  if (zs) return Mn;
3222
3222
  zs = 1;
3223
- var r = Ot().codes.ERR_INVALID_OPT_VALUE;
3223
+ var r = Lt().codes.ERR_INVALID_OPT_VALUE;
3224
3224
  function e(n, i, s) {
3225
3225
  return n.highWaterMark != null ? n.highWaterMark : i ? n[s] : null;
3226
3226
  }
@@ -3290,12 +3290,12 @@ function sa() {
3290
3290
  function a(P) {
3291
3291
  return i.isBuffer(P) || P instanceof s;
3292
3292
  }
3293
- var u = na(), f = ia(), l = f.getHighWaterMark, h = Ot().codes, g = h.ERR_INVALID_ARG_TYPE, v = h.ERR_METHOD_NOT_IMPLEMENTED, A = h.ERR_MULTIPLE_CALLBACK, E = h.ERR_STREAM_CANNOT_PIPE, F = h.ERR_STREAM_DESTROYED, w = h.ERR_STREAM_NULL_VALUES, B = h.ERR_STREAM_WRITE_AFTER_END, R = h.ERR_UNKNOWN_ENCODING, D = u.errorOrDestroy;
3293
+ var u = na(), f = ia(), l = f.getHighWaterMark, h = Lt().codes, g = h.ERR_INVALID_ARG_TYPE, v = h.ERR_METHOD_NOT_IMPLEMENTED, A = h.ERR_MULTIPLE_CALLBACK, E = h.ERR_STREAM_CANNOT_PIPE, F = h.ERR_STREAM_DESTROYED, w = h.ERR_STREAM_NULL_VALUES, B = h.ERR_STREAM_WRITE_AFTER_END, R = h.ERR_UNKNOWN_ENCODING, D = u.errorOrDestroy;
3294
3294
  bt()(M, n);
3295
3295
  function k() {
3296
3296
  }
3297
3297
  function N(P, p, m) {
3298
- e = e || Tt(), P = P || {}, typeof m != "boolean" && (m = p instanceof e), this.objectMode = !!P.objectMode, m && (this.objectMode = this.objectMode || !!P.writableObjectMode), this.highWaterMark = l(this, P, "writableHighWaterMark", m), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
3298
+ e = e || Ft(), P = P || {}, typeof m != "boolean" && (m = p instanceof e), this.objectMode = !!P.objectMode, m && (this.objectMode = this.objectMode || !!P.writableObjectMode), this.highWaterMark = l(this, P, "writableHighWaterMark", m), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
3299
3299
  var I = P.decodeStrings === !1;
3300
3300
  this.decodeStrings = !I, this.defaultEncoding = P.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(S) {
3301
3301
  ie(p, S);
@@ -3324,7 +3324,7 @@ function sa() {
3324
3324
  return p instanceof this;
3325
3325
  };
3326
3326
  function M(P) {
3327
- e = e || Tt();
3327
+ e = e || Ft();
3328
3328
  var p = this instanceof e;
3329
3329
  if (!p && !q.call(M, this)) return new M(P);
3330
3330
  this._writableState = new N(P, this, p), this.writable = !0, P && (typeof P.write == "function" && (this._write = P.write), typeof P.writev == "function" && (this._writev = P.writev), typeof P.destroy == "function" && (this._destroy = P.destroy), typeof P.final == "function" && (this._final = P.final)), n.call(this);
@@ -3496,7 +3496,7 @@ function sa() {
3496
3496
  }, jn;
3497
3497
  }
3498
3498
  var Hn, Js;
3499
- function Tt() {
3499
+ function Ft() {
3500
3500
  if (Js) return Hn;
3501
3501
  Js = 1;
3502
3502
  var r = Object.keys || function(f) {
@@ -3753,7 +3753,7 @@ var zn, Xs;
3753
3753
  function Ci() {
3754
3754
  if (Xs) return zn;
3755
3755
  Xs = 1;
3756
- var r = Ot().codes.ERR_STREAM_PREMATURE_CLOSE;
3756
+ var r = Lt().codes.ERR_STREAM_PREMATURE_CLOSE;
3757
3757
  function e(s) {
3758
3758
  var o = !1;
3759
3759
  return function() {
@@ -3947,7 +3947,7 @@ function oa() {
3947
3947
  var a = ra(), u;
3948
3948
  a && a.debuglog ? u = a.debuglog("stream") : u = function() {
3949
3949
  };
3950
- var f = Gl(), l = na(), h = ia(), g = h.getHighWaterMark, v = Ot().codes, A = v.ERR_INVALID_ARG_TYPE, E = v.ERR_STREAM_PUSH_AFTER_EOF, F = v.ERR_METHOD_NOT_IMPLEMENTED, w = v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, B, R, D;
3950
+ var f = Gl(), l = na(), h = ia(), g = h.getHighWaterMark, v = Lt().codes, A = v.ERR_INVALID_ARG_TYPE, E = v.ERR_STREAM_PUSH_AFTER_EOF, F = v.ERR_METHOD_NOT_IMPLEMENTED, w = v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, B, R, D;
3951
3951
  bt()(C, t);
3952
3952
  var k = l.errorOrDestroy, N = ["error", "close", "destroy", "pause", "resume"];
3953
3953
  function q(b, x, _) {
@@ -3955,10 +3955,10 @@ function oa() {
3955
3955
  !b._events || !b._events[x] ? b.on(x, _) : Array.isArray(b._events[x]) ? b._events[x].unshift(_) : b._events[x] = [_, b._events[x]];
3956
3956
  }
3957
3957
  function M(b, x, _) {
3958
- r = r || Tt(), b = b || {}, typeof _ != "boolean" && (_ = x instanceof r), this.objectMode = !!b.objectMode, _ && (this.objectMode = this.objectMode || !!b.readableObjectMode), this.highWaterMark = g(this, b, "readableHighWaterMark", _), this.buffer = new f(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = b.emitClose !== !1, this.autoDestroy = !!b.autoDestroy, this.destroyed = !1, this.defaultEncoding = b.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, b.encoding && (B || (B = li().StringDecoder), this.decoder = new B(b.encoding), this.encoding = b.encoding);
3958
+ r = r || Ft(), b = b || {}, typeof _ != "boolean" && (_ = x instanceof r), this.objectMode = !!b.objectMode, _ && (this.objectMode = this.objectMode || !!b.readableObjectMode), this.highWaterMark = g(this, b, "readableHighWaterMark", _), this.buffer = new f(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = b.emitClose !== !1, this.autoDestroy = !!b.autoDestroy, this.destroyed = !1, this.defaultEncoding = b.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, b.encoding && (B || (B = li().StringDecoder), this.decoder = new B(b.encoding), this.encoding = b.encoding);
3959
3959
  }
3960
3960
  function C(b) {
3961
- if (r = r || Tt(), !(this instanceof C)) return new C(b);
3961
+ if (r = r || Ft(), !(this instanceof C)) return new C(b);
3962
3962
  var x = this instanceof r;
3963
3963
  this._readableState = new M(b, this, x), this.readable = !0, b && (typeof b.read == "function" && (this._read = b.read), typeof b.destroy == "function" && (this._destroy = b.destroy)), t.call(this);
3964
3964
  }
@@ -4270,7 +4270,7 @@ var $n, eo;
4270
4270
  function aa() {
4271
4271
  if (eo) return $n;
4272
4272
  eo = 1, $n = a;
4273
- var r = Ot().codes, e = r.ERR_METHOD_NOT_IMPLEMENTED, t = r.ERR_MULTIPLE_CALLBACK, n = r.ERR_TRANSFORM_ALREADY_TRANSFORMING, i = r.ERR_TRANSFORM_WITH_LENGTH_0, s = Tt();
4273
+ var r = Lt().codes, e = r.ERR_METHOD_NOT_IMPLEMENTED, t = r.ERR_MULTIPLE_CALLBACK, n = r.ERR_TRANSFORM_ALREADY_TRANSFORMING, i = r.ERR_TRANSFORM_WITH_LENGTH_0, s = Ft();
4274
4274
  bt()(a, s);
4275
4275
  function o(l, h) {
4276
4276
  var g = this._transformState;
@@ -4350,7 +4350,7 @@ function Yl() {
4350
4350
  v || (v = !0, g.apply(void 0, arguments));
4351
4351
  };
4352
4352
  }
4353
- var t = Ot().codes, n = t.ERR_MISSING_ARGS, i = t.ERR_STREAM_DESTROYED;
4353
+ var t = Lt().codes, n = t.ERR_MISSING_ARGS, i = t.ERR_STREAM_DESTROYED;
4354
4354
  function s(g) {
4355
4355
  if (g) throw g;
4356
4356
  }
@@ -4408,7 +4408,7 @@ function Zl() {
4408
4408
  if (no) return Yn;
4409
4409
  no = 1, Yn = t;
4410
4410
  var r = xi().EventEmitter, e = bt();
4411
- e(t, r), t.Readable = oa(), t.Writable = sa(), t.Duplex = Tt(), t.Transform = aa(), t.PassThrough = Xl(), t.finished = Ci(), t.pipeline = Yl(), t.Stream = t;
4411
+ e(t, r), t.Readable = oa(), t.Writable = sa(), t.Duplex = Ft(), t.Transform = aa(), t.PassThrough = Xl(), t.finished = Ci(), t.pipeline = Yl(), t.Stream = t;
4412
4412
  function t() {
4413
4413
  r.call(this);
4414
4414
  }
@@ -4584,7 +4584,7 @@ function Zl() {
4584
4584
  value: l
4585
4585
  }
4586
4586
  }), l.prototype.write = function(p) {
4587
- if (typeof Ht == "function" && typeof Ht.isBuffer == "function" && Ht.isBuffer(p)) {
4587
+ if (typeof vt == "function" && typeof vt.isBuffer == "function" && vt.isBuffer(p)) {
4588
4588
  if (!this._decoder) {
4589
4589
  var m = li().StringDecoder;
4590
4590
  this._decoder = new m("utf8");
@@ -5352,7 +5352,7 @@ var Si = {
5352
5352
  checkFnExists: function(r, e) {
5353
5353
  return r + "Fn" in e;
5354
5354
  }
5355
- }, ec = jo, me = Ti, Ct = Si.isArray, U, le;
5355
+ }, ec = jo, me = Ti, St = Si.isArray, U, le;
5356
5356
  function tc(r) {
5357
5357
  return U = me.copyOptions(r), me.ensureFlagExists("ignoreDeclaration", U), me.ensureFlagExists("ignoreInstruction", U), me.ensureFlagExists("ignoreAttributes", U), me.ensureFlagExists("ignoreText", U), me.ensureFlagExists("ignoreComment", U), me.ensureFlagExists("ignoreCdata", U), me.ensureFlagExists("ignoreDoctype", U), me.ensureFlagExists("compact", U), me.ensureFlagExists("alwaysChildren", U), me.ensureFlagExists("addParent", U), me.ensureFlagExists("trim", U), me.ensureFlagExists("nativeType", U), me.ensureFlagExists("nativeTypeAttributes", U), me.ensureFlagExists("sanitize", U), me.ensureFlagExists("instructionHasAttributes", U), me.ensureFlagExists("captureSpacesBetweenElements", U), me.ensureAlwaysArrayExists(U), me.ensureKeyExists("declaration", U), me.ensureKeyExists("instruction", U), me.ensureKeyExists("attributes", U), me.ensureKeyExists("text", U), me.ensureKeyExists("comment", U), me.ensureKeyExists("cdata", U), me.ensureKeyExists("doctype", U), me.ensureKeyExists("type", U), me.ensureKeyExists("name", U), me.ensureKeyExists("elements", U), me.ensureKeyExists("parent", U), me.checkFnExists("doctype", U), me.checkFnExists("instruction", U), me.checkFnExists("cdata", U), me.checkFnExists("comment", U), me.checkFnExists("text", U), me.checkFnExists("instructionName", U), me.checkFnExists("elementName", U), me.checkFnExists("attributeName", U), me.checkFnExists("attributeValue", U), me.checkFnExists("attributes", U), U;
5358
5358
  }
@@ -5366,7 +5366,7 @@ function ua(r) {
5366
5366
  function Yt(r, e) {
5367
5367
  var t;
5368
5368
  if (U.compact) {
5369
- if (!le[U[r + "Key"]] && (Ct(U.alwaysArray) ? U.alwaysArray.indexOf(U[r + "Key"]) !== -1 : U.alwaysArray) && (le[U[r + "Key"]] = []), le[U[r + "Key"]] && !Ct(le[U[r + "Key"]]) && (le[U[r + "Key"]] = [le[U[r + "Key"]]]), r + "Fn" in U && typeof e == "string" && (e = U[r + "Fn"](e, le)), r === "instruction" && ("instructionFn" in U || "instructionNameFn" in U)) {
5369
+ if (!le[U[r + "Key"]] && (St(U.alwaysArray) ? U.alwaysArray.indexOf(U[r + "Key"]) !== -1 : U.alwaysArray) && (le[U[r + "Key"]] = []), le[U[r + "Key"]] && !St(le[U[r + "Key"]]) && (le[U[r + "Key"]] = [le[U[r + "Key"]]]), r + "Fn" in U && typeof e == "string" && (e = U[r + "Fn"](e, le)), r === "instruction" && ("instructionFn" in U || "instructionNameFn" in U)) {
5370
5370
  for (t in e)
5371
5371
  if (e.hasOwnProperty(t))
5372
5372
  if ("instructionFn" in U)
@@ -5376,7 +5376,7 @@ function Yt(r, e) {
5376
5376
  delete e[t], e[U.instructionNameFn(t, n, le)] = n;
5377
5377
  }
5378
5378
  }
5379
- Ct(le[U[r + "Key"]]) ? le[U[r + "Key"]].push(e) : le[U[r + "Key"]] = e;
5379
+ St(le[U[r + "Key"]]) ? le[U[r + "Key"]].push(e) : le[U[r + "Key"]] = e;
5380
5380
  } else {
5381
5381
  le[U.elementsKey] || (le[U.elementsKey] = []);
5382
5382
  var i = {};
@@ -5429,7 +5429,7 @@ function nc(r, e) {
5429
5429
  for (n in e)
5430
5430
  e.hasOwnProperty(n) && (t[U.attributesKey][n] = e[n]);
5431
5431
  }
5432
- !(r in le) && (Ct(U.alwaysArray) ? U.alwaysArray.indexOf(r) !== -1 : U.alwaysArray) && (le[r] = []), le[r] && !Ct(le[r]) && (le[r] = [le[r]]), Ct(le[r]) ? le[r].push(t) : le[r] = t;
5432
+ !(r in le) && (St(U.alwaysArray) ? U.alwaysArray.indexOf(r) !== -1 : U.alwaysArray) && (le[r] = []), le[r] && !St(le[r]) && (le[r] = [le[r]]), St(le[r]) ? le[r].push(t) : le[r] = t;
5433
5433
  } else
5434
5434
  le[U.elementsKey] || (le[U.elementsKey] = []), t = {}, t[U.typeKey] = "element", t[U.nameKey] = r, !U.ignoreAttributes && e && Object.keys(e).length && (t[U.attributesKey] = e), U.alwaysChildren && (t[U.elementsKey] = []), le[U.elementsKey].push(t);
5435
5435
  t[U.parentKey] = le, le = t;
@@ -5655,7 +5655,7 @@ var ba = function(r, e) {
5655
5655
  var t = [];
5656
5656
  return Re = r, Pe = "_root_", e.compact ? t.push(ya(r, e, 0, !0)) : (r[e.declarationKey] && t.push(fa(r[e.declarationKey], e, 0)), r[e.elementsKey] && r[e.elementsKey].length && t.push(ga(r[e.elementsKey], e, 0, !t.length))), t.join("");
5657
5657
  }, yc = ba, bc = function(r, e) {
5658
- r instanceof Ht && (r = r.toString());
5658
+ r instanceof vt && (r = r.toString());
5659
5659
  var t = null;
5660
5660
  if (typeof r == "string")
5661
5661
  try {
@@ -9065,7 +9065,7 @@ class ft extends Oe {
9065
9065
  return new ft(this.pos, this.mark);
9066
9066
  }
9067
9067
  }
9068
- return new Ft(this.pos, this.mark);
9068
+ return new Bt(this.pos, this.mark);
9069
9069
  }
9070
9070
  map(e) {
9071
9071
  let t = e.mapResult(this.pos, 1);
@@ -9084,7 +9084,7 @@ class ft extends Oe {
9084
9084
  }
9085
9085
  }
9086
9086
  Oe.jsonID("addNodeMark", ft);
9087
- class Ft extends Oe {
9087
+ class Bt extends Oe {
9088
9088
  /**
9089
9089
  Create a mark-removing step.
9090
9090
  */
@@ -9104,7 +9104,7 @@ class Ft extends Oe {
9104
9104
  }
9105
9105
  map(e) {
9106
9106
  let t = e.mapResult(this.pos, 1);
9107
- return t.deletedAfter ? null : new Ft(t.pos, this.mark);
9107
+ return t.deletedAfter ? null : new Bt(t.pos, this.mark);
9108
9108
  }
9109
9109
  toJSON() {
9110
9110
  return { stepType: "removeNodeMark", pos: this.pos, mark: this.mark.toJSON() };
@@ -9115,10 +9115,10 @@ class Ft extends Oe {
9115
9115
  static fromJSON(e, t) {
9116
9116
  if (typeof t.pos != "number")
9117
9117
  throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");
9118
- return new Ft(t.pos, e.markFromJSON(t.mark));
9118
+ return new Bt(t.pos, e.markFromJSON(t.mark));
9119
9119
  }
9120
9120
  }
9121
- Oe.jsonID("removeNodeMark", Ft);
9121
+ Oe.jsonID("removeNodeMark", Bt);
9122
9122
  class Ie extends Oe {
9123
9123
  /**
9124
9124
  The given `slice` should fit the 'gap' between `from` and
@@ -9612,9 +9612,9 @@ class xf {
9612
9612
  let { content: e, openStart: t, openEnd: n } = this.unplaced, i = ri(e, t);
9613
9613
  if (i.childCount <= 1 && t > 0) {
9614
9614
  let s = e.size - t <= t + i.size;
9615
- this.unplaced = new ae(Mt(e, t - 1, 1), t - 1, s ? t - 1 : n);
9615
+ this.unplaced = new ae(Ut(e, t - 1, 1), t - 1, s ? t - 1 : n);
9616
9616
  } else
9617
- this.unplaced = new ae(Mt(e, t, 1), t, n);
9617
+ this.unplaced = new ae(Ut(e, t, 1), t, n);
9618
9618
  }
9619
9619
  // Move content from the unplaced slice at `sliceDepth` to the
9620
9620
  // frontier node at `frontierDepth`. Close that frontier node when
@@ -9639,12 +9639,12 @@ class xf {
9639
9639
  f++, (f > 1 || u == 0 || E.content.size) && (h = F, l.push($a(E.mark(g.allowedMarks(E.marks)), f == 1 ? u : 0, f == a.childCount ? v : -1)));
9640
9640
  }
9641
9641
  let A = f == a.childCount;
9642
- A || (v = -1), this.placed = Ut(this.placed, t, ee.from(l)), this.frontier[t].match = h, A && v < 0 && n && n.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
9642
+ A || (v = -1), this.placed = jt(this.placed, t, ee.from(l)), this.frontier[t].match = h, A && v < 0 && n && n.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
9643
9643
  for (let E = 0, F = a; E < v; E++) {
9644
9644
  let w = F.lastChild;
9645
9645
  this.frontier.push({ type: w.type, match: w.contentMatchAt(w.childCount) }), F = w.content;
9646
9646
  }
9647
- this.unplaced = A ? e == 0 ? ae.empty : new ae(Mt(o.content, e - 1, 1), e - 1, v < 0 ? o.openEnd : e - 1) : new ae(Mt(o.content, e, f), o.openStart, o.openEnd);
9647
+ this.unplaced = A ? e == 0 ? ae.empty : new ae(Ut(o.content, e - 1, 1), e - 1, v < 0 ? o.openEnd : e - 1) : new ae(Ut(o.content, e, f), o.openStart, o.openEnd);
9648
9648
  }
9649
9649
  mustMoveInline() {
9650
9650
  if (!this.$to.parent.isTextblock)
@@ -9676,7 +9676,7 @@ class xf {
9676
9676
  return null;
9677
9677
  for (; this.depth > t.depth; )
9678
9678
  this.closeFrontierNode();
9679
- t.fit.childCount && (this.placed = Ut(this.placed, t.depth, t.fit)), e = t.move;
9679
+ t.fit.childCount && (this.placed = jt(this.placed, t.depth, t.fit)), e = t.move;
9680
9680
  for (let n = t.depth + 1; n <= e.depth; n++) {
9681
9681
  let i = e.node(n), s = i.type.contentMatch.fillBefore(i.content, !0, e.index(n));
9682
9682
  this.openFrontierNode(i.type, i.attrs, s);
@@ -9685,18 +9685,18 @@ class xf {
9685
9685
  }
9686
9686
  openFrontierNode(e, t = null, n) {
9687
9687
  let i = this.frontier[this.depth];
9688
- i.match = i.match.matchType(e), this.placed = Ut(this.placed, this.depth, ee.from(e.create(t, n))), this.frontier.push({ type: e, match: e.contentMatch });
9688
+ i.match = i.match.matchType(e), this.placed = jt(this.placed, this.depth, ee.from(e.create(t, n))), this.frontier.push({ type: e, match: e.contentMatch });
9689
9689
  }
9690
9690
  closeFrontierNode() {
9691
9691
  let t = this.frontier.pop().match.fillBefore(ee.empty, !0);
9692
- t.childCount && (this.placed = Ut(this.placed, this.frontier.length, t));
9692
+ t.childCount && (this.placed = jt(this.placed, this.frontier.length, t));
9693
9693
  }
9694
9694
  }
9695
- function Mt(r, e, t) {
9696
- return e == 0 ? r.cutByIndex(t, r.childCount) : r.replaceChild(0, r.firstChild.copy(Mt(r.firstChild.content, e - 1, t)));
9697
- }
9698
9695
  function Ut(r, e, t) {
9699
- return e == 0 ? r.append(t) : r.replaceChild(r.childCount - 1, r.lastChild.copy(Ut(r.lastChild.content, e - 1, t)));
9696
+ return e == 0 ? r.cutByIndex(t, r.childCount) : r.replaceChild(0, r.firstChild.copy(Ut(r.firstChild.content, e - 1, t)));
9697
+ }
9698
+ function jt(r, e, t) {
9699
+ return e == 0 ? r.append(t) : r.replaceChild(r.childCount - 1, r.lastChild.copy(jt(r.lastChild.content, e - 1, t)));
9700
9700
  }
9701
9701
  function ri(r, e) {
9702
9702
  for (let t = 0; t < e; t++)
@@ -9814,7 +9814,7 @@ function Xa(r, e) {
9814
9814
  }
9815
9815
  return t;
9816
9816
  }
9817
- class St extends Oe {
9817
+ class Tt extends Oe {
9818
9818
  /**
9819
9819
  Construct an attribute step.
9820
9820
  */
@@ -9836,11 +9836,11 @@ class St extends Oe {
9836
9836
  return je.empty;
9837
9837
  }
9838
9838
  invert(e) {
9839
- return new St(this.pos, this.attr, e.nodeAt(this.pos).attrs[this.attr]);
9839
+ return new Tt(this.pos, this.attr, e.nodeAt(this.pos).attrs[this.attr]);
9840
9840
  }
9841
9841
  map(e) {
9842
9842
  let t = e.mapResult(this.pos, 1);
9843
- return t.deletedAfter ? null : new St(t.pos, this.attr, this.value);
9843
+ return t.deletedAfter ? null : new Tt(t.pos, this.attr, this.value);
9844
9844
  }
9845
9845
  toJSON() {
9846
9846
  return { stepType: "attr", pos: this.pos, attr: this.attr, value: this.value };
@@ -9848,10 +9848,10 @@ class St extends Oe {
9848
9848
  static fromJSON(e, t) {
9849
9849
  if (typeof t.pos != "number" || typeof t.attr != "string")
9850
9850
  throw new RangeError("Invalid input for AttrStep.fromJSON");
9851
- return new St(t.pos, t.attr, t.value);
9851
+ return new Tt(t.pos, t.attr, t.value);
9852
9852
  }
9853
9853
  }
9854
- Oe.jsonID("attr", St);
9854
+ Oe.jsonID("attr", Tt);
9855
9855
  class Wt extends Oe {
9856
9856
  /**
9857
9857
  Construct an attribute step.
@@ -9886,15 +9886,15 @@ class Wt extends Oe {
9886
9886
  }
9887
9887
  }
9888
9888
  Oe.jsonID("docAttr", Wt);
9889
- let Bt = class extends Error {
9889
+ let kt = class extends Error {
9890
9890
  };
9891
- Bt = function r(e) {
9891
+ kt = function r(e) {
9892
9892
  let t = Error.call(this, e);
9893
9893
  return t.__proto__ = r.prototype, t;
9894
9894
  };
9895
- Bt.prototype = Object.create(Error.prototype);
9896
- Bt.prototype.constructor = Bt;
9897
- Bt.prototype.name = "TransformError";
9895
+ kt.prototype = Object.create(Error.prototype);
9896
+ kt.prototype.constructor = kt;
9897
+ kt.prototype.name = "TransformError";
9898
9898
  class Sf {
9899
9899
  /**
9900
9900
  Create a transform that starts with the given document.
@@ -9915,7 +9915,7 @@ class Sf {
9915
9915
  step(e) {
9916
9916
  let t = this.maybeStep(e);
9917
9917
  if (t.failed)
9918
- throw new Bt(t.failed);
9918
+ throw new kt(t.failed);
9919
9919
  return this;
9920
9920
  }
9921
9921
  /**
@@ -10052,7 +10052,7 @@ class Sf {
10052
10052
  to set attributes on the document itself.
10053
10053
  */
10054
10054
  setNodeAttribute(e, t, n) {
10055
- return this.step(new St(e, t, n)), this;
10055
+ return this.step(new Tt(e, t, n)), this;
10056
10056
  }
10057
10057
  /**
10058
10058
  Set a single attribute on the document to a new value.
@@ -10078,7 +10078,7 @@ class Sf {
10078
10078
  if (t = t.isInSet(n.marks), !t)
10079
10079
  return this;
10080
10080
  }
10081
- return this.step(new Ft(e, t)), this;
10081
+ return this.step(new Bt(e, t)), this;
10082
10082
  }
10083
10083
  /**
10084
10084
  Split the node at the given position, and optionally, if `depth` is
@@ -10665,13 +10665,13 @@ class Bf extends Sf {
10665
10665
  function vo(r, e) {
10666
10666
  return !e || !r ? r : r.bind(e);
10667
10667
  }
10668
- class jt {
10668
+ class Ht {
10669
10669
  constructor(e, t, n) {
10670
10670
  this.name = e, this.init = vo(t.init, n), this.apply = vo(t.apply, n);
10671
10671
  }
10672
10672
  }
10673
10673
  const kf = [
10674
- new jt("doc", {
10674
+ new Ht("doc", {
10675
10675
  init(r) {
10676
10676
  return r.doc || r.schema.topNodeType.createAndFill();
10677
10677
  },
@@ -10679,7 +10679,7 @@ const kf = [
10679
10679
  return r.doc;
10680
10680
  }
10681
10681
  }),
10682
- new jt("selection", {
10682
+ new Ht("selection", {
10683
10683
  init(r, e) {
10684
10684
  return r.selection || ve.atStart(e.doc);
10685
10685
  },
@@ -10687,7 +10687,7 @@ const kf = [
10687
10687
  return r.selection;
10688
10688
  }
10689
10689
  }),
10690
- new jt("storedMarks", {
10690
+ new Ht("storedMarks", {
10691
10691
  init(r) {
10692
10692
  return r.storedMarks || null;
10693
10693
  },
@@ -10695,7 +10695,7 @@ const kf = [
10695
10695
  return n.selection.$cursor ? r.storedMarks : null;
10696
10696
  }
10697
10697
  }),
10698
- new jt("scrollToSelection", {
10698
+ new Ht("scrollToSelection", {
10699
10699
  init() {
10700
10700
  return 0;
10701
10701
  },
@@ -10709,7 +10709,7 @@ class si {
10709
10709
  this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = kf.slice(), t && t.forEach((n) => {
10710
10710
  if (this.pluginsByKey[n.key])
10711
10711
  throw new RangeError("Adding different instances of a keyed plugin (" + n.key + ")");
10712
- this.plugins.push(n), this.pluginsByKey[n.key] = n, n.spec.state && this.fields.push(new jt(n.key, n.spec.state, n));
10712
+ this.plugins.push(n), this.pluginsByKey[n.key] = n, n.spec.state && this.fields.push(new Ht(n.key, n.spec.state, n));
10713
10713
  });
10714
10714
  }
10715
10715
  }
@@ -10973,7 +10973,7 @@ function Of(r = "0") {
10973
10973
  function Wp(r = 0, e = 0, t = 0) {
10974
10974
  return Math.min(Math.max(r, e), t);
10975
10975
  }
10976
- function kt(r) {
10976
+ function Nt(r) {
10977
10977
  if (r != null)
10978
10978
  return typeof r == "string" && (r = parseFloat(r)), Math.round(r * 1440);
10979
10979
  }
@@ -10987,7 +10987,7 @@ function be(r) {
10987
10987
  }
10988
10988
  function Te(r) {
10989
10989
  if (r != null)
10990
- return r = r / 96, kt(r);
10990
+ return r = r / 96, Nt(r);
10991
10991
  }
10992
10992
  function Ii(r) {
10993
10993
  if (r != null)
@@ -11007,7 +11007,7 @@ function Me(r) {
11007
11007
  const e = r * 96 / 914400;
11008
11008
  return Math.round(e);
11009
11009
  }
11010
- function qt(r) {
11010
+ function Mt(r) {
11011
11011
  if (r != null)
11012
11012
  return typeof r == "string" && (r = parseFloat(r)), Math.round(r * 9525);
11013
11013
  }
@@ -11026,7 +11026,20 @@ function _f(r) {
11026
11026
  if (r != null)
11027
11027
  return r * 20;
11028
11028
  }
11029
- const qf = async (r) => await (await fetch(r)).arrayBuffer(), Jp = (r) => {
11029
+ const qf = async (r) => {
11030
+ const e = r.includes(",") ? r.split(",", 2)[1] : r;
11031
+ if (typeof globalThis.atob == "function") {
11032
+ const n = globalThis.atob(e), i = n.length, s = new Uint8Array(i);
11033
+ for (let o = 0; o < i; o++)
11034
+ s[o] = n.charCodeAt(o);
11035
+ return s.buffer;
11036
+ }
11037
+ const t = vt.from(e, "base64");
11038
+ return t.buffer.slice(
11039
+ t.byteOffset,
11040
+ t.byteOffset + t.byteLength
11041
+ );
11042
+ }, Jp = (r) => {
11030
11043
  const n = new window.DOMParser().parseFromString(r, "text/xml").querySelectorAll("Default");
11031
11044
  return Array.from(n).map((i) => i.getAttribute("Extension"));
11032
11045
  }, Mf = (r) => (/* @__PURE__ */ new Map([
@@ -13721,7 +13734,7 @@ const rd = (r, e) => ({
13721
13734
  colgroupValues: g
13722
13735
  };
13723
13736
  };
13724
- function Lt(r) {
13737
+ function _t(r) {
13725
13738
  const { type: e } = r.node || {}, t = {
13726
13739
  doc: gd,
13727
13740
  body: pd,
@@ -13752,7 +13765,7 @@ function pd(r) {
13752
13765
  if (r.converter) {
13753
13766
  const n = r.converter.pageStyles.pageMargins, i = e.elements.find((o) => o.name === "w:pgMar"), { attributes: s } = i;
13754
13767
  Object.entries(n).forEach(([o, a]) => {
13755
- const u = kt(a);
13768
+ const u = Nt(a);
13756
13769
  s[`w:${o}`] = u;
13757
13770
  }), i.attributes = s;
13758
13771
  }
@@ -13798,7 +13811,7 @@ function hd(r) {
13798
13811
  }
13799
13812
  if (s) {
13800
13813
  const { left: A, right: E, firstLine: F, hanging: w } = s, B = {};
13801
- (A || A === 0) && (B["w:left"] = Te(A)), (E || E === 0) && (B["w:right"] = Te(E)), (F || F === 0) && (B["w:firstLine"] = Te(F)), (w || w === 0) && (B["w:hanging"] = Te(w)), a && !B["w:left"] && (B["w:left"] = kt(a));
13814
+ (A || A === 0) && (B["w:left"] = Te(A)), (E || E === 0) && (B["w:right"] = Te(E)), (F || F === 0) && (B["w:firstLine"] = Te(F)), (w || w === 0) && (B["w:hanging"] = Te(w)), a && !B["w:left"] && (B["w:left"] = Nt(a));
13802
13815
  const R = {
13803
13816
  name: "w:ind",
13804
13817
  attributes: B
@@ -13808,7 +13821,7 @@ function hd(r) {
13808
13821
  const A = {
13809
13822
  name: "w:ind",
13810
13823
  attributes: {
13811
- "w:left": kt(a)
13824
+ "w:left": Nt(a)
13812
13825
  }
13813
13826
  };
13814
13827
  t.push(A);
@@ -13853,7 +13866,7 @@ function gd(r) {
13853
13866
  };
13854
13867
  return [{
13855
13868
  name: "w:document",
13856
- elements: [Lt({ ...r, node: e })],
13869
+ elements: [_t({ ...r, node: e })],
13857
13870
  attributes: zf
13858
13871
  }, r];
13859
13872
  }
@@ -13862,7 +13875,7 @@ function dt(r) {
13862
13875
  if (!e) return [];
13863
13876
  const t = [];
13864
13877
  return e.forEach((n) => {
13865
- const i = Lt({ ...r, node: n });
13878
+ const i = _t({ ...r, node: n });
13866
13879
  i instanceof Array ? t.push(...i) : t.push(i);
13867
13880
  }), t.filter((n) => n);
13868
13881
  }
@@ -13926,7 +13939,7 @@ function yd(r) {
13926
13939
  function bd(r) {
13927
13940
  const { node: e } = r, t = e.marks, n = [xr, Pi, Oi], i = t.find((f) => n.includes(f.type)), s = i.type === xr, o = yd(t);
13928
13941
  e.marks = t.filter((f) => !n.includes(f.type)), o && e.marks.push(o);
13929
- const a = Lt({ ...r, node: e });
13942
+ const a = _t({ ...r, node: e });
13930
13943
  if (!s) {
13931
13944
  const f = a.elements.find((l) => l.name === "w:t");
13932
13945
  f.name = "w:delText";
@@ -13966,7 +13979,7 @@ function xd(r) {
13966
13979
  const { node: e } = r, t = e.marks.find((a) => a.type === "link"), n = t.attrs.href;
13967
13980
  let i = t.attrs.rId;
13968
13981
  i || (i = uu(r, n)), e.marks = e.marks.filter((a) => a.type !== "link");
13969
- const s = Lt({ ...r, node: e });
13982
+ const s = _t({ ...r, node: e });
13970
13983
  return {
13971
13984
  name: "w:hyperlink",
13972
13985
  type: "element",
@@ -14011,7 +14024,7 @@ function Fo(r) {
14011
14024
  ...F.attrs,
14012
14025
  ...i.attrs
14013
14026
  };
14014
- const w = Lt({ ...r, node: F });
14027
+ const w = _t({ ...r, node: F });
14015
14028
  w.elements || (w.elements = []);
14016
14029
  const B = w.elements.findIndex((N) => N.name === "w:pPr");
14017
14030
  if (!w.elements.filter((N) => N.name !== "w:pPr").length) {
@@ -14286,7 +14299,7 @@ function Pd(r) {
14286
14299
  function Od(r) {
14287
14300
  const e = [], { attrs: t } = r, { colwidth: n = [], cellWidthType: i = "dxa", background: s = {}, colspan: o, rowspan: a, widthUnit: u } = t, f = n.reduce((E, F) => E + F, 0), l = {
14288
14301
  name: "w:tcW",
14289
- attributes: { "w:w": u === "px" ? Te(f) : kt(f), "w:type": i }
14302
+ attributes: { "w:w": u === "px" ? Te(f) : Nt(f), "w:type": i }
14290
14303
  };
14291
14304
  if (e.push(l), o) {
14292
14305
  const E = {
@@ -14379,7 +14392,7 @@ function _d(r) {
14379
14392
  return [e, t];
14380
14393
  }
14381
14394
  function Bo(r) {
14382
- const e = Rt.markTypes.find((s) => s.type === r.type);
14395
+ const e = Pt.markTypes.find((s) => s.type === r.type);
14383
14396
  if (!e)
14384
14397
  return {};
14385
14398
  const t = { name: e.name, attributes: {} }, { attrs: n } = r;
@@ -14408,7 +14421,7 @@ function Bo(r) {
14408
14421
  t.attributes["w:val"] = n.textAlign;
14409
14422
  break;
14410
14423
  case "textIndent":
14411
- t.attributes["w:firstline"] = kt(n.textIndent);
14424
+ t.attributes["w:firstline"] = Nt(n.textIndent);
14412
14425
  break;
14413
14426
  case "lineHeight":
14414
14427
  t.attributes["w:line"] = pi(n.lineHeight);
@@ -14445,18 +14458,18 @@ function lu(r, e) {
14445
14458
  let s = t.rId;
14446
14459
  const o = t.src || t.imageSrc, { originalWidth: a, originalHeight: u } = qd(o);
14447
14460
  let f = t.size ? {
14448
- w: qt(t.size.width),
14449
- h: qt(t.size.height)
14461
+ w: Mt(t.size.width),
14462
+ h: Mt(t.size.height)
14450
14463
  } : e;
14451
14464
  if (a && u) {
14452
14465
  const v = Me(f.w), A = Me(f.h), { scaledWidth: E, scaledHeight: F } = Md(a, u, v, A);
14453
14466
  f = {
14454
- w: qt(E),
14455
- h: qt(F)
14467
+ w: Mt(E),
14468
+ h: Mt(F)
14456
14469
  };
14457
14470
  }
14458
14471
  if (i) {
14459
- const v = i.attrs.colwidth.reduce((R, D) => R + D, 0), A = i.attrs.cellMargins?.left || 8, E = i.attrs.cellMargins?.right || 8, F = qt(v - (A + E)), { width: w, height: B } = Xd(f.w, f.h, F);
14472
+ const v = i.attrs.colwidth.reduce((R, D) => R + D, 0), A = i.attrs.cellMargins?.left || 8, E = i.attrs.cellMargins?.right || 8, F = Mt(v - (A + E)), { width: w, height: B } = Xd(f.w, f.h, F);
14460
14473
  w && B && (f = { w, h: B });
14461
14474
  }
14462
14475
  if (r.node.type === "image" && !s) {
@@ -15152,10 +15165,10 @@ const um = (r, e, t) => {
15152
15165
  handlerName: "drawingNodeHandler",
15153
15166
  handler: am
15154
15167
  };
15155
- function Nt(r, e = [], t = null) {
15168
+ function It(r, e = [], t = null) {
15156
15169
  const n = [], i = /* @__PURE__ */ new Set();
15157
15170
  return r?.elements?.forEach((s) => {
15158
- const o = Rt.markTypes.filter((a) => a.name === s.name);
15171
+ const o = Pt.markTypes.filter((a) => a.name === s.name);
15159
15172
  o.length || [
15160
15173
  "w:shd",
15161
15174
  "w:rStyle",
@@ -15193,7 +15206,7 @@ function fm(r, e) {
15193
15206
  date: n["w:date"],
15194
15207
  author: n["w:author"],
15195
15208
  authorEmail: n["w:authorEmail"]
15196
- }, s = Nt(t);
15209
+ }, s = It(t);
15197
15210
  return [{ type: Oi, attrs: { ...i, before: s, after: [...e] } }];
15198
15211
  }
15199
15212
  function wi(r) {
@@ -15245,7 +15258,7 @@ function gm(r) {
15245
15258
  }
15246
15259
  function yt(r, e) {
15247
15260
  const t = [], n = [], { attributes: i = {}, elements: s = [] } = r, { nodes: o, paragraphProperties: a = {}, runProperties: u = {} } = wm(s);
15248
- return s.find((l) => l.name === "w:r") && (a.elements = a?.elements?.filter((l) => l.name !== "w:rPr")), u && u?.elements?.length && t.push(...Nt(u, n)), a && a.elements?.length && t.push(...Nt(a, n)), t.push(...fm(u, t)), a && a.elements?.length && (i.paragraphProperties = a), t && r.name === "w:p" && t.forEach((l) => {
15261
+ return s.find((l) => l.name === "w:r") && (a.elements = a?.elements?.filter((l) => l.name !== "w:rPr")), u && u?.elements?.length && t.push(...It(u, n)), a && a.elements?.length && t.push(...It(a, n)), t.push(...fm(u, t)), a && a.elements?.length && (i.paragraphProperties = a), t && r.name === "w:p" && t.forEach((l) => {
15249
15262
  const h = Object.keys(l.attrs ?? {})[0];
15250
15263
  if (h) {
15251
15264
  const g = l.attrs[h];
@@ -15263,9 +15276,9 @@ function wm(r) {
15263
15276
  };
15264
15277
  }
15265
15278
  function fr(r) {
15266
- return Rt.allowedElements[r.name || r.type];
15279
+ return Pt.allowedElements[r.name || r.type];
15267
15280
  }
15268
- const ym = (r) => !!Rt.propertyTypes[r.name || r.type];
15281
+ const ym = (r) => !!Pt.propertyTypes[r.name || r.type];
15269
15282
  function hu(r) {
15270
15283
  return r.filter((n) => n.name === "w:r").some((n) => n.elements.some((i) => i.name === "w:t"));
15271
15284
  }
@@ -15417,7 +15430,7 @@ function wu({
15417
15430
  if (!A)
15418
15431
  return console.error("Standard node handler not found"), { nodes: [], consumed: 0 };
15419
15432
  const w = r[0].elements.find((k) => k.name === "w:pPr")?.elements?.find((k) => k.name === "w:pStyle")?.attributes["w:val"], B = Nr({ node: r[0], styleId: w, docx: u });
15420
- s = It(B), i = parseInt(B?.elements?.find((k) => k.name === "w:ilvl")?.attributes["w:val"]) || 0, i === void 0 && (i = yu(w, u));
15433
+ s = Rt(B), i = parseInt(B?.elements?.find((k) => k.name === "w:ilvl")?.attributes["w:val"]) || 0, i === void 0 && (i = yu(w, u));
15421
15434
  let R = 0;
15422
15435
  for (let [k, N] of r.entries()) {
15423
15436
  if (N.seen) continue;
@@ -15533,20 +15546,20 @@ function yi(r, e) {
15533
15546
  const { elements: t } = r, n = t?.find((u) => u.name === "w:pPr");
15534
15547
  if (!n) return !1;
15535
15548
  const i = n.elements?.find((u) => u.name === "w:pStyle");
15536
- let s = n.elements?.find((u) => u.name === "w:numPr"), o = It(s);
15549
+ let s = n.elements?.find((u) => u.name === "w:numPr"), o = Rt(s);
15537
15550
  const a = i?.attributes["w:val"];
15538
- return a && !o && (s = Nr({ node: r, styleId: a, docx: e }), o = It(s)), !!o;
15551
+ return a && !o && (s = Nr({ node: r, styleId: a, docx: e }), o = Rt(s)), !!o;
15539
15552
  }
15540
- const It = (r) => r?.elements?.find((e) => e.name === "w:numId")?.attributes["w:val"];
15553
+ const Rt = (r) => r?.elements?.find((e) => e.name === "w:numId")?.attributes["w:val"];
15541
15554
  function Li(r, e) {
15542
15555
  const t = e["word/styles.xml"];
15543
15556
  return t ? t.elements.find((o) => o.name === "w:styles").elements.filter((o) => o.name === "w:style").find((o) => o.attributes["w:styleId"] === r) : {};
15544
15557
  }
15545
15558
  function Nr({ node: r, styleId: e, docx: t, seenStyleIds: n = /* @__PURE__ */ new Set() }) {
15546
- let o = r?.elements?.find((h) => h.name === "w:pPr")?.elements?.find((h) => h.name === "w:numPr"), a = It(o);
15559
+ let o = r?.elements?.find((h) => h.name === "w:pPr")?.elements?.find((h) => h.name === "w:numPr"), a = Rt(o);
15547
15560
  if (a) return o;
15548
15561
  const u = Li(e, t);
15549
- o = u?.elements?.find((h) => h.name === "w:pPr")?.elements?.find((h) => h.name === "w:numPr"), a = It(o);
15562
+ o = u?.elements?.find((h) => h.name === "w:pPr")?.elements?.find((h) => h.name === "w:numPr"), a = Rt(o);
15550
15563
  const l = u?.elements?.find((h) => h.name === "w:basedOn");
15551
15564
  if (!a && !n.has(e)) {
15552
15565
  const h = l?.attributes["w:val"];
@@ -15610,7 +15623,7 @@ const Im = [
15610
15623
  if (!o) return null;
15611
15624
  let a = o?.elements?.find((E) => E.name === "w:numPr");
15612
15625
  if (!a) return null;
15613
- let u = a?.elements?.find((E) => E.name === "w:numId") || {}, f = It(a), l = a?.elements?.find((E) => E.name === "w:ilvl"), h = l?.attributes?.["w:val"];
15626
+ let u = a?.elements?.find((E) => E.name === "w:numId") || {}, f = Rt(a), l = a?.elements?.find((E) => E.name === "w:ilvl"), h = l?.attributes?.["w:val"];
15614
15627
  const v = s?.elements?.find((E) => E.name === "w:basedOn")?.attributes?.["w:val"];
15615
15628
  let A = 0;
15616
15629
  for (; a && !f && A < 10; )
@@ -15715,7 +15728,7 @@ const bu = (r) => {
15715
15728
  l.nodes.length === 1 && (o = l.nodes[0]);
15716
15729
  const h = s.elements?.find((D) => D.name === "w:pPr"), g = h?.elements?.find((D) => D.name === "w:pStyle"), v = h?.elements?.find((D) => D.name === "w:rPr"), A = h?.elements?.find((D) => D.name === "w:framePr");
15717
15730
  if (v) {
15718
- let D = Nt(v, []);
15731
+ let D = It(v, []);
15719
15732
  if (!o.content?.length) {
15720
15733
  let k = D?.findIndex((N) => N.type === "highlight");
15721
15734
  k !== -1 && D.splice(k, 1);
@@ -15826,7 +15839,7 @@ function jm(r, e) {
15826
15839
  outlineLevel: N ? parseInt(q) : null,
15827
15840
  pageBreakBefore: !!C,
15828
15841
  pageBreakAfter: !!oe
15829
- }, ce = o.elements.find((ie) => ie.name === "w:rPr"), de = Nt(ce, [], e) || {}, Y = {
15842
+ }, ce = o.elements.find((ie) => ie.name === "w:rPr"), de = It(ce, [], e) || {}, Y = {
15830
15843
  spacing: { lineSpaceAfter: A, lineSpaceBefore: v, line: E },
15831
15844
  textAlign: F,
15832
15845
  indent: { leftIndent: w, rightIndent: B, firstLine: R }
@@ -15954,7 +15967,7 @@ const Lo = (r = []) => {
15954
15967
  }, Gm = (r = {}) => {
15955
15968
  const t = r.elements?.find((a) => a.name === "w:r")?.elements?.find((a) => a.name === "w:rPr");
15956
15969
  if (!t) return {};
15957
- const i = Nt(t, []) || [], s = [];
15970
+ const i = It(t, []) || [], s = [];
15958
15971
  i.forEach((a) => {
15959
15972
  const { type: u } = a;
15960
15973
  if (u === "textStyle") {
@@ -16562,7 +16575,7 @@ const mt = class mt {
16562
16575
  return;
16563
16576
  }
16564
16577
  }
16565
- static updateDocumentVersion(e = this.convertedXml, t = "0.10.56") {
16578
+ static updateDocumentVersion(e = this.convertedXml, t = "0.10.58") {
16566
16579
  const n = "docProps/custom.xml";
16567
16580
  e[n] || (e[n] = Fu());
16568
16581
  const i = e["docProps/custom.xml"];
@@ -16703,7 +16716,7 @@ const mt = class mt {
16703
16716
  isFinalDoc: o = !1,
16704
16717
  editor: a
16705
16718
  }) {
16706
- const u = this.savedTagsToRestore.find((h) => h.name === "w:body"), [f, l] = Lt({
16719
+ const u = this.savedTagsToRestore.find((h) => h.name === "w:body"), [f, l] = _t({
16707
16720
  node: e,
16708
16721
  bodyNode: u,
16709
16722
  relationships: [],
@@ -16758,7 +16771,7 @@ Cu = function({ defs: e, exportType: t, commentsWithParaIds: n }) {
16758
16771
  ...this.convertedXml.media,
16759
16772
  ...t
16760
16773
  }, this.media = this.convertedXml.media, this.addedMedia = t;
16761
- }, _t(mt, "allowedElements", Object.freeze({
16774
+ }, qt(mt, "allowedElements", Object.freeze({
16762
16775
  "w:document": "doc",
16763
16776
  "w:body": "body",
16764
16777
  "w:p": "paragraph",
@@ -16779,7 +16792,7 @@ Cu = function({ defs: e, exportType: t, commentsWithParaIds: n }) {
16779
16792
  "w:commentRangeStart": "commentRangeStart",
16780
16793
  "w:commentRangeEnd": "commentRangeEnd",
16781
16794
  "w:commentReference": "commentReference"
16782
- })), _t(mt, "markTypes", [
16795
+ })), qt(mt, "markTypes", [
16783
16796
  { name: "w:b", type: "bold" },
16784
16797
  { name: "w:bCs", type: "bold" },
16785
16798
  { name: "w:i", type: "italic" },
@@ -16796,14 +16809,14 @@ Cu = function({ defs: e, exportType: t, commentsWithParaIds: n }) {
16796
16809
  { name: "link", type: "link", mark: "link", property: "href" },
16797
16810
  { name: "w:highlight", type: "highlight", mark: "highlight", property: "color" },
16798
16811
  { name: "w:shd", type: "highlight", mark: "highlight", property: "color" }
16799
- ]), _t(mt, "propertyTypes", Object.freeze({
16812
+ ]), qt(mt, "propertyTypes", Object.freeze({
16800
16813
  "w:pPr": "paragraphProperties",
16801
16814
  "w:rPr": "runProperties",
16802
16815
  "w:sectPr": "sectionProperties",
16803
16816
  "w:numPr": "numberingProperties",
16804
16817
  "w:tcPr": "tableCellProperties"
16805
- })), _t(mt, "elements", /* @__PURE__ */ new Set(["w:document", "w:body", "w:p", "w:r", "w:t", "w:delText"]));
16806
- let Rt = mt;
16818
+ })), qt(mt, "elements", /* @__PURE__ */ new Set(["w:document", "w:body", "w:p", "w:r", "w:t", "w:delText"]));
16819
+ let Pt = mt;
16807
16820
  function vp(r) {
16808
16821
  const e = "docProps/custom.xml";
16809
16822
  r[e] || (r[e] = Fu());
@@ -16823,7 +16836,7 @@ function vp(r) {
16823
16836
  function Fu() {
16824
16837
  return Gf;
16825
16838
  }
16826
- function Bu(r = 2, e = "0.10.56") {
16839
+ function Bu(r = 2, e = "0.10.58") {
16827
16840
  return {
16828
16841
  type: "element",
16829
16842
  name: "property",
@@ -16849,7 +16862,7 @@ function Bu(r = 2, e = "0.10.56") {
16849
16862
  export {
16850
16863
  md as $,
16851
16864
  at as A,
16852
- Ht as B,
16865
+ vt as B,
16853
16866
  Wp as C,
16854
16867
  qa as D,
16855
16868
  nu as E,
@@ -16862,7 +16875,7 @@ export {
16862
16875
  Te as L,
16863
16876
  br as M,
16864
16877
  We as N,
16865
- Rt as O,
16878
+ Pt as O,
16866
16879
  _p as P,
16867
16880
  Et as Q,
16868
16881
  $e as R,