@gnai/message-content-renderer 0.1.8 → 0.1.9

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.
@@ -1,5 +1,5 @@
1
- import * as lu from "vue";
2
- import { defineComponent as xu, ref as Iu, shallowRef as g0, onMounted as _0, watch as k0, onUnmounted as y0, h as $e, nextTick as C0, createBlock as Z, openBlock as P, Teleport as v0, createVNode as pu, Transition as D0, withCtx as E0, createElementBlock as G, createCommentVNode as yu, createElementVNode as fu, withModifiers as Ve, unref as ou, computed as uu, normalizeClass as Nu, toDisplayString as F0, Fragment as He, renderList as Ue } from "vue";
1
+ import * as fu from "vue";
2
+ import { defineComponent as gu, ref as Iu, shallowRef as g0, onMounted as _0, watch as k0, onUnmounted as y0, h as $e, nextTick as C0, createBlock as Q, openBlock as L, Teleport as v0, createVNode as du, Transition as D0, withCtx as E0, createElementBlock as U, createCommentVNode as hu, createElementVNode as cu, withModifiers as Ve, unref as tu, computed as J, normalizeClass as Nu, toDisplayString as F0, Fragment as He, renderList as Ue } from "vue";
3
3
  const Nt = /^[a-z0-9]+(-[a-z0-9]+)*$/, Xu = (u, e, t, n = "") => {
4
4
  const r = u.split(":");
5
5
  if (u.slice(0, 1) === "@") {
@@ -290,9 +290,9 @@ function $0(u, e) {
290
290
  };
291
291
  let o = t.body;
292
292
  [t, n].forEach((C) => {
293
- const k = [], A = C.hFlip, v = C.vFlip;
293
+ const k = [], w = C.hFlip, v = C.vFlip;
294
294
  let E = C.rotate;
295
- A ? v ? E += 2 : (k.push(
295
+ w ? v ? E += 2 : (k.push(
296
296
  "translate(" + (r.width + r.left).toString() + " " + (0 - r.top).toString() + ")"
297
297
  ), k.push("scale(-1 1)"), r.top = r.left = 0) : v && (k.push(
298
298
  "translate(" + (0 - r.left).toString() + " " + (r.height + r.top).toString() + ")"
@@ -324,13 +324,13 @@ function $0(u, e) {
324
324
  const c = n.width, i = n.height, a = r.width, s = r.height;
325
325
  let l, f;
326
326
  c === null ? (f = i === null ? "1em" : i === "auto" ? s : i, l = We(f, a / s)) : (l = c === "auto" ? a : c, f = i === null ? We(l, s / a) : i === "auto" ? s : i);
327
- const m = {}, p = (C, k) => {
328
- q0(k) || (m[C] = k.toString());
327
+ const g = {}, p = (C, k) => {
328
+ q0(k) || (g[C] = k.toString());
329
329
  };
330
330
  p("width", l), p("height", f);
331
331
  const d = [r.left, r.top, a, s];
332
- return m.viewBox = d.join(" "), {
333
- attributes: m,
332
+ return g.viewBox = d.join(" "), {
333
+ attributes: g,
334
334
  viewBox: d,
335
335
  body: o
336
336
  };
@@ -612,56 +612,56 @@ function sn(u, e, t, n) {
612
612
  const r = u.resources.length, o = u.random ? Math.floor(Math.random() * r) : u.index;
613
613
  let c;
614
614
  if (u.random) {
615
- let b = u.resources.slice(0);
616
- for (c = []; b.length > 1; ) {
617
- const _ = Math.floor(Math.random() * b.length);
618
- c.push(b[_]), b = b.slice(0, _).concat(b.slice(_ + 1));
615
+ let m = u.resources.slice(0);
616
+ for (c = []; m.length > 1; ) {
617
+ const _ = Math.floor(Math.random() * m.length);
618
+ c.push(m[_]), m = m.slice(0, _).concat(m.slice(_ + 1));
619
619
  }
620
- c = c.concat(b);
620
+ c = c.concat(m);
621
621
  } else
622
622
  c = u.resources.slice(o).concat(u.resources.slice(0, o));
623
623
  const i = Date.now();
624
- let a = "pending", s = 0, l, f = null, m = [], p = [];
624
+ let a = "pending", s = 0, l, f = null, g = [], p = [];
625
625
  typeof n == "function" && p.push(n);
626
626
  function d() {
627
627
  f && (clearTimeout(f), f = null);
628
628
  }
629
629
  function C() {
630
- a === "pending" && (a = "aborted"), d(), m.forEach((b) => {
631
- b.status === "pending" && (b.status = "aborted");
632
- }), m = [];
630
+ a === "pending" && (a = "aborted"), d(), g.forEach((m) => {
631
+ m.status === "pending" && (m.status = "aborted");
632
+ }), g = [];
633
633
  }
634
- function k(b, _) {
635
- _ && (p = []), typeof b == "function" && p.push(b);
634
+ function k(m, _) {
635
+ _ && (p = []), typeof m == "function" && p.push(m);
636
636
  }
637
- function A() {
637
+ function w() {
638
638
  return {
639
639
  startTime: i,
640
640
  payload: e,
641
641
  status: a,
642
642
  queriesSent: s,
643
- queriesPending: m.length,
643
+ queriesPending: g.length,
644
644
  subscribe: k,
645
645
  abort: C
646
646
  };
647
647
  }
648
648
  function v() {
649
- a = "failed", p.forEach((b) => {
650
- b(void 0, l);
649
+ a = "failed", p.forEach((m) => {
650
+ m(void 0, l);
651
651
  });
652
652
  }
653
653
  function E() {
654
- m.forEach((b) => {
655
- b.status === "pending" && (b.status = "aborted");
656
- }), m = [];
654
+ g.forEach((m) => {
655
+ m.status === "pending" && (m.status = "aborted");
656
+ }), g = [];
657
657
  }
658
- function h(b, _, D) {
659
- const I = _ !== "success";
660
- switch (m = m.filter((S) => S !== b), a) {
658
+ function h(m, _, D) {
659
+ const N = _ !== "success";
660
+ switch (g = g.filter((T) => T !== m), a) {
661
661
  case "pending":
662
662
  break;
663
663
  case "failed":
664
- if (I || !u.dataAfterTimeout)
664
+ if (N || !u.dataAfterTimeout)
665
665
  return;
666
666
  break;
667
667
  default:
@@ -671,25 +671,25 @@ function sn(u, e, t, n) {
671
671
  l = D, v();
672
672
  return;
673
673
  }
674
- if (I) {
675
- l = D, m.length || (c.length ? y() : v());
674
+ if (N) {
675
+ l = D, g.length || (c.length ? y() : v());
676
676
  return;
677
677
  }
678
678
  if (d(), E(), !u.random) {
679
- const S = u.resources.indexOf(b.resource);
680
- S !== -1 && S !== u.index && (u.index = S);
679
+ const T = u.resources.indexOf(m.resource);
680
+ T !== -1 && T !== u.index && (u.index = T);
681
681
  }
682
- a = "completed", p.forEach((S) => {
683
- S(D);
682
+ a = "completed", p.forEach((T) => {
683
+ T(D);
684
684
  });
685
685
  }
686
686
  function y() {
687
687
  if (a !== "pending")
688
688
  return;
689
689
  d();
690
- const b = c.shift();
691
- if (b === void 0) {
692
- if (m.length) {
690
+ const m = c.shift();
691
+ if (m === void 0) {
692
+ if (g.length) {
693
693
  f = setTimeout(() => {
694
694
  d(), a === "pending" && (E(), v());
695
695
  }, u.timeout);
@@ -700,14 +700,14 @@ function sn(u, e, t, n) {
700
700
  }
701
701
  const _ = {
702
702
  status: "pending",
703
- resource: b,
704
- callback: (D, I) => {
705
- h(_, D, I);
703
+ resource: m,
704
+ callback: (D, N) => {
705
+ h(_, D, N);
706
706
  }
707
707
  };
708
- m.push(_), s++, f = setTimeout(y, u.rotate), t(b, e, _.callback);
708
+ g.push(_), s++, f = setTimeout(y, u.rotate), t(m, e, _.callback);
709
709
  }
710
- return setTimeout(y), A;
710
+ return setTimeout(y), w;
711
711
  }
712
712
  function qt(u) {
713
713
  const e = {
@@ -723,8 +723,8 @@ function qt(u) {
723
723
  e,
724
724
  i,
725
725
  a,
726
- (f, m) => {
727
- n(), s && s(f, m);
726
+ (f, g) => {
727
+ n(), s && s(f, g);
728
728
  }
729
729
  );
730
730
  return t.push(l), l;
@@ -837,11 +837,11 @@ function pn(u, e) {
837
837
  if (o) {
838
838
  r.forEach((l) => {
839
839
  const f = o(l, n, t);
840
- Ye(f, (m) => {
841
- const p = m ? {
840
+ Ye(f, (g) => {
841
+ const p = g ? {
842
842
  prefix: n,
843
843
  icons: {
844
- [l]: m
844
+ [l]: g
845
845
  }
846
846
  } : null;
847
847
  Tu(u, [l], p);
@@ -889,7 +889,7 @@ const bn = (u, e) => {
889
889
  const f = r[s] || (r[s] = /* @__PURE__ */ Object.create(null));
890
890
  f[l] || (f[l] = []);
891
891
  }), n.pending.forEach((a) => {
892
- const { provider: s, prefix: l, name: f } = a, m = Du(s, l), p = m.pendingIcons || (m.pendingIcons = /* @__PURE__ */ new Set());
892
+ const { provider: s, prefix: l, name: f } = a, g = Du(s, l), p = g.pendingIcons || (g.pendingIcons = /* @__PURE__ */ new Set());
893
893
  p.has(f) || (p.add(f), r[s][l].push(f));
894
894
  }), o.forEach((a) => {
895
895
  const s = r[a.provider][a.prefix];
@@ -1033,8 +1033,8 @@ const nt = (u, e) => {
1033
1033
  k !== !0 && k !== "true" && delete n["aria-hidden"];
1034
1034
  break;
1035
1035
  default: {
1036
- const A = Gu[C];
1037
- A ? (k === !0 || k === "true" || k === 1) && (t[A] = !0) : Xe[C] === void 0 && (n[C] = k);
1036
+ const w = Gu[C];
1037
+ w ? (k === !0 || k === "true" || k === 1) && (t[w] = !0) : Xe[C] === void 0 && (n[C] = k);
1038
1038
  }
1039
1039
  }
1040
1040
  }
@@ -1047,10 +1047,10 @@ const nt = (u, e) => {
1047
1047
  let C = 0, k = e.id;
1048
1048
  return typeof k == "string" && (k = k.replace(/-/g, "_")), n.innerHTML = Z0(a.body, k ? () => k + "ID" + C++ : "iconifyVue"), $e("svg", n);
1049
1049
  }
1050
- const { body: l, width: f, height: m } = u, p = r === "mask" || (r === "bg" ? !1 : l.indexOf("currentColor") !== -1), d = kn(l, {
1050
+ const { body: l, width: f, height: g } = u, p = r === "mask" || (r === "bg" ? !1 : l.indexOf("currentColor") !== -1), d = kn(l, {
1051
1051
  ...s,
1052
1052
  width: f + "",
1053
- height: m + ""
1053
+ height: g + ""
1054
1054
  });
1055
1055
  return n.style = {
1056
1056
  ...o,
@@ -1098,7 +1098,7 @@ if (typeof document < "u" && typeof window < "u") {
1098
1098
  const Fn = {
1099
1099
  ...ue,
1100
1100
  body: ""
1101
- }, Cu = xu((u, { emit: e }) => {
1101
+ }, ku = gu((u, { emit: e }) => {
1102
1102
  const t = Iu(null);
1103
1103
  function n() {
1104
1104
  t.value && (t.value.abort?.(), t.value = null);
@@ -1126,10 +1126,10 @@ const Fn = {
1126
1126
  n(), o.value !== s && (o.value = s, C0(() => {
1127
1127
  e("load", s);
1128
1128
  }));
1129
- const m = u.customise;
1130
- if (m) {
1129
+ const g = u.customise;
1130
+ if (g) {
1131
1131
  f = Object.assign({}, f);
1132
- const d = m(f.body, l.name, l.prefix, l.provider);
1132
+ const d = g(f.body, l.name, l.prefix, l.provider);
1133
1133
  typeof d == "string" && (f.body = d);
1134
1134
  }
1135
1135
  const p = ["iconify"];
@@ -1328,19 +1328,19 @@ Qu.prototype.parse = function(u, e) {
1328
1328
  for (let d = 0; d < ct.length; d++)
1329
1329
  n = o.indexOf(ct[d]), n !== -1 && (s === -1 || n < s) && (s = n);
1330
1330
  s === -1 && (s = o.length), o[s - 1] === ":" && s--;
1331
- const m = o.slice(0, s);
1332
- o = o.slice(s), this.parseHost(m), this.hostname = this.hostname || "";
1331
+ const g = o.slice(0, s);
1332
+ o = o.slice(s), this.parseHost(g), this.hostname = this.hostname || "";
1333
1333
  const p = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
1334
1334
  if (!p) {
1335
1335
  const d = this.hostname.split(/\./);
1336
1336
  for (let C = 0, k = d.length; C < k; C++) {
1337
- const A = d[C];
1338
- if (A && !A.match(at)) {
1337
+ const w = d[C];
1338
+ if (w && !w.match(at)) {
1339
1339
  let v = "";
1340
- for (let E = 0, h = A.length; E < h; E++)
1341
- A.charCodeAt(E) > 127 ? v += "x" : v += A[E];
1340
+ for (let E = 0, h = w.length; E < h; E++)
1341
+ w.charCodeAt(E) > 127 ? v += "x" : v += w[E];
1342
1342
  if (!v.match(at)) {
1343
- const E = d.slice(0, C), h = d.slice(C + 1), y = A.match(Pn);
1343
+ const E = d.slice(0, C), h = d.slice(C + 1), y = w.match(Pn);
1344
1344
  y && (E.push(y[1]), h.unshift(y[2])), h.length && (o = h.join(".") + o), this.hostname = E.join(".");
1345
1345
  break;
1346
1346
  }
@@ -1421,38 +1421,38 @@ function Hn(u) {
1421
1421
  var e;
1422
1422
  return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e = $n.get(u)) !== null && e !== void 0 ? e : u;
1423
1423
  }
1424
- var U;
1424
+ var Z;
1425
1425
  (function(u) {
1426
1426
  u[u.NUM = 35] = "NUM", u[u.SEMI = 59] = "SEMI", u[u.EQUALS = 61] = "EQUALS", u[u.ZERO = 48] = "ZERO", u[u.NINE = 57] = "NINE", u[u.LOWER_A = 97] = "LOWER_A", u[u.LOWER_F = 102] = "LOWER_F", u[u.LOWER_X = 120] = "LOWER_X", u[u.LOWER_Z = 122] = "LOWER_Z", u[u.UPPER_A = 65] = "UPPER_A", u[u.UPPER_F = 70] = "UPPER_F", u[u.UPPER_Z = 90] = "UPPER_Z";
1427
- })(U || (U = {}));
1427
+ })(Z || (Z = {}));
1428
1428
  const Un = 32;
1429
- var bu;
1429
+ var mu;
1430
1430
  (function(u) {
1431
1431
  u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
1432
- })(bu || (bu = {}));
1432
+ })(mu || (mu = {}));
1433
1433
  function ve(u) {
1434
- return u >= U.ZERO && u <= U.NINE;
1434
+ return u >= Z.ZERO && u <= Z.NINE;
1435
1435
  }
1436
1436
  function Zn(u) {
1437
- return u >= U.UPPER_A && u <= U.UPPER_F || u >= U.LOWER_A && u <= U.LOWER_F;
1437
+ return u >= Z.UPPER_A && u <= Z.UPPER_F || u >= Z.LOWER_A && u <= Z.LOWER_F;
1438
1438
  }
1439
1439
  function Gn(u) {
1440
- return u >= U.UPPER_A && u <= U.UPPER_Z || u >= U.LOWER_A && u <= U.LOWER_Z || ve(u);
1440
+ return u >= Z.UPPER_A && u <= Z.UPPER_Z || u >= Z.LOWER_A && u <= Z.LOWER_Z || ve(u);
1441
1441
  }
1442
1442
  function Wn(u) {
1443
- return u === U.EQUALS || Gn(u);
1443
+ return u === Z.EQUALS || Gn(u);
1444
1444
  }
1445
1445
  var H;
1446
1446
  (function(u) {
1447
1447
  u[u.EntityStart = 0] = "EntityStart", u[u.NumericStart = 1] = "NumericStart", u[u.NumericDecimal = 2] = "NumericDecimal", u[u.NumericHex = 3] = "NumericHex", u[u.NamedEntity = 4] = "NamedEntity";
1448
1448
  })(H || (H = {}));
1449
- var hu;
1449
+ var bu;
1450
1450
  (function(u) {
1451
1451
  u[u.Legacy = 0] = "Legacy", u[u.Strict = 1] = "Strict", u[u.Attribute = 2] = "Attribute";
1452
- })(hu || (hu = {}));
1452
+ })(bu || (bu = {}));
1453
1453
  class Qn {
1454
1454
  constructor(e, t, n) {
1455
- this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = H.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = hu.Strict;
1455
+ this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = H.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = bu.Strict;
1456
1456
  }
1457
1457
  /** Resets the instance to make it reusable. */
1458
1458
  startEntity(e) {
@@ -1472,7 +1472,7 @@ class Qn {
1472
1472
  write(e, t) {
1473
1473
  switch (this.state) {
1474
1474
  case H.EntityStart:
1475
- return e.charCodeAt(t) === U.NUM ? (this.state = H.NumericStart, this.consumed += 1, this.stateNumericStart(e, t + 1)) : (this.state = H.NamedEntity, this.stateNamedEntity(e, t));
1475
+ return e.charCodeAt(t) === Z.NUM ? (this.state = H.NumericStart, this.consumed += 1, this.stateNumericStart(e, t + 1)) : (this.state = H.NamedEntity, this.stateNamedEntity(e, t));
1476
1476
  case H.NumericStart:
1477
1477
  return this.stateNumericStart(e, t);
1478
1478
  case H.NumericDecimal:
@@ -1493,7 +1493,7 @@ class Qn {
1493
1493
  * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
1494
1494
  */
1495
1495
  stateNumericStart(e, t) {
1496
- return t >= e.length ? -1 : (e.charCodeAt(t) | Un) === U.LOWER_X ? (this.state = H.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = H.NumericDecimal, this.stateNumericDecimal(e, t));
1496
+ return t >= e.length ? -1 : (e.charCodeAt(t) | Un) === Z.LOWER_X ? (this.state = H.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = H.NumericDecimal, this.stateNumericDecimal(e, t));
1497
1497
  }
1498
1498
  addToNumericResult(e, t, n, r) {
1499
1499
  if (t !== n) {
@@ -1558,11 +1558,11 @@ class Qn {
1558
1558
  var n;
1559
1559
  if (this.consumed <= t)
1560
1560
  return (n = this.errors) === null || n === void 0 || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
1561
- if (e === U.SEMI)
1561
+ if (e === Z.SEMI)
1562
1562
  this.consumed += 1;
1563
- else if (this.decodeMode === hu.Strict)
1563
+ else if (this.decodeMode === bu.Strict)
1564
1564
  return 0;
1565
- return this.emitCodePoint(Hn(this.result), this.consumed), this.errors && (e !== U.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
1565
+ return this.emitCodePoint(Hn(this.result), this.consumed), this.errors && (e !== Z.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
1566
1566
  }
1567
1567
  /**
1568
1568
  * Parses a named entity.
@@ -1575,18 +1575,18 @@ class Qn {
1575
1575
  */
1576
1576
  stateNamedEntity(e, t) {
1577
1577
  const { decodeTree: n } = this;
1578
- let r = n[this.treeIndex], o = (r & bu.VALUE_LENGTH) >> 14;
1578
+ let r = n[this.treeIndex], o = (r & mu.VALUE_LENGTH) >> 14;
1579
1579
  for (; t < e.length; t++, this.excess++) {
1580
1580
  const c = e.charCodeAt(t);
1581
1581
  if (this.treeIndex = Jn(n, r, this.treeIndex + Math.max(1, o), c), this.treeIndex < 0)
1582
1582
  return this.result === 0 || // If we are parsing an attribute
1583
- this.decodeMode === hu.Attribute && // We shouldn't have consumed any characters after the entity,
1583
+ this.decodeMode === bu.Attribute && // We shouldn't have consumed any characters after the entity,
1584
1584
  (o === 0 || // And there should be no invalid characters.
1585
1585
  Wn(c)) ? 0 : this.emitNotTerminatedNamedEntity();
1586
- if (r = n[this.treeIndex], o = (r & bu.VALUE_LENGTH) >> 14, o !== 0) {
1587
- if (c === U.SEMI)
1586
+ if (r = n[this.treeIndex], o = (r & mu.VALUE_LENGTH) >> 14, o !== 0) {
1587
+ if (c === Z.SEMI)
1588
1588
  return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
1589
- this.decodeMode !== hu.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
1589
+ this.decodeMode !== bu.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
1590
1590
  }
1591
1591
  }
1592
1592
  return -1;
@@ -1598,7 +1598,7 @@ class Qn {
1598
1598
  */
1599
1599
  emitNotTerminatedNamedEntity() {
1600
1600
  var e;
1601
- const { result: t, decodeTree: n } = this, r = (n[t] & bu.VALUE_LENGTH) >> 14;
1601
+ const { result: t, decodeTree: n } = this, r = (n[t] & mu.VALUE_LENGTH) >> 14;
1602
1602
  return this.emitNamedEntityData(t, r, this.consumed), (e = this.errors) === null || e === void 0 || e.missingSemicolonAfterCharacterReference(), this.consumed;
1603
1603
  }
1604
1604
  /**
@@ -1612,7 +1612,7 @@ class Qn {
1612
1612
  */
1613
1613
  emitNamedEntityData(e, t, n) {
1614
1614
  const { decodeTree: r } = this;
1615
- return this.emitCodePoint(t === 1 ? r[e] & ~bu.VALUE_LENGTH : r[e + 1], n), t === 3 && this.emitCodePoint(r[e + 2], n), n;
1615
+ return this.emitCodePoint(t === 1 ? r[e] & ~mu.VALUE_LENGTH : r[e + 1], n), t === 3 && this.emitCodePoint(r[e + 2], n), n;
1616
1616
  }
1617
1617
  /**
1618
1618
  * Signal to the parser that the end of the input was reached.
@@ -1625,7 +1625,7 @@ class Qn {
1625
1625
  var e;
1626
1626
  switch (this.state) {
1627
1627
  case H.NamedEntity:
1628
- return this.result !== 0 && (this.decodeMode !== hu.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
1628
+ return this.result !== 0 && (this.decodeMode !== bu.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
1629
1629
  // Otherwise, emit a numeric entity if we have one.
1630
1630
  case H.NumericDecimal:
1631
1631
  return this.emitNumericEntity(0, 2);
@@ -1661,7 +1661,7 @@ function Gt(u) {
1661
1661
  };
1662
1662
  }
1663
1663
  function Jn(u, e, t, n) {
1664
- const r = (e & bu.BRANCH_LENGTH) >> 7, o = e & bu.JUMP_TABLE;
1664
+ const r = (e & mu.BRANCH_LENGTH) >> 7, o = e & mu.JUMP_TABLE;
1665
1665
  if (r === 0)
1666
1666
  return o !== 0 && n === o ? t : -1;
1667
1667
  if (o) {
@@ -1682,7 +1682,7 @@ function Jn(u, e, t, n) {
1682
1682
  }
1683
1683
  const Kn = Gt(Rn);
1684
1684
  Gt(qn);
1685
- function Wt(u, e = hu.Legacy) {
1685
+ function Wt(u, e = bu.Legacy) {
1686
1686
  return Kn(u, e);
1687
1687
  }
1688
1688
  function Yn(u) {
@@ -1746,14 +1746,14 @@ const cr = /[&<>"]/, ir = /[&<>"]/g, ar = {
1746
1746
  function sr(u) {
1747
1747
  return ar[u];
1748
1748
  }
1749
- function mu(u) {
1749
+ function xu(u) {
1750
1750
  return cr.test(u) ? u.replace(ir, sr) : u;
1751
1751
  }
1752
1752
  const lr = /[.?*+^$[\]\\(){}|-]/g;
1753
1753
  function fr(u) {
1754
1754
  return u.replace(lr, "\\$&");
1755
1755
  }
1756
- function z(u) {
1756
+ function j(u) {
1757
1757
  switch (u) {
1758
1758
  case 9:
1759
1759
  case 32:
@@ -1834,13 +1834,13 @@ const dr = { mdurl: Mn, ucmicro: zn }, hr = /* @__PURE__ */ Object.freeze(/* @__
1834
1834
  __proto__: null,
1835
1835
  arrayReplaceAt: Qt,
1836
1836
  assign: ee,
1837
- escapeHtml: mu,
1837
+ escapeHtml: xu,
1838
1838
  escapeRE: fr,
1839
1839
  fromCodePoint: Ju,
1840
1840
  has: ur,
1841
1841
  isMdAsciiPunct: Pu,
1842
1842
  isPunctChar: Ou,
1843
- isSpace: z,
1843
+ isSpace: j,
1844
1844
  isString: Oe,
1845
1845
  isValidEntityCode: Pe,
1846
1846
  isWhiteSpace: Lu,
@@ -1945,17 +1945,17 @@ const xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1945
1945
  parseLinkDestination: br,
1946
1946
  parseLinkLabel: pr,
1947
1947
  parseLinkTitle: mr
1948
- }, Symbol.toStringTag, { value: "Module" })), au = {};
1949
- au.code_inline = function(u, e, t, n, r) {
1948
+ }, Symbol.toStringTag, { value: "Module" })), su = {};
1949
+ su.code_inline = function(u, e, t, n, r) {
1950
1950
  const o = u[e];
1951
- return "<code" + r.renderAttrs(o) + ">" + mu(o.content) + "</code>";
1951
+ return "<code" + r.renderAttrs(o) + ">" + xu(o.content) + "</code>";
1952
1952
  };
1953
- au.code_block = function(u, e, t, n, r) {
1953
+ su.code_block = function(u, e, t, n, r) {
1954
1954
  const o = u[e];
1955
- return "<pre" + r.renderAttrs(o) + "><code>" + mu(u[e].content) + `</code></pre>
1955
+ return "<pre" + r.renderAttrs(o) + "><code>" + xu(u[e].content) + `</code></pre>
1956
1956
  `;
1957
1957
  };
1958
- au.fence = function(u, e, t, n, r) {
1958
+ su.fence = function(u, e, t, n, r) {
1959
1959
  const o = u[e], c = o.info ? Fu(o.info).trim() : "";
1960
1960
  let i = "", a = "";
1961
1961
  if (c) {
@@ -1963,54 +1963,54 @@ au.fence = function(u, e, t, n, r) {
1963
1963
  i = l[0], a = l.slice(2).join("");
1964
1964
  }
1965
1965
  let s;
1966
- if (t.highlight ? s = t.highlight(o.content, i, a) || mu(o.content) : s = mu(o.content), s.indexOf("<pre") === 0)
1966
+ if (t.highlight ? s = t.highlight(o.content, i, a) || xu(o.content) : s = xu(o.content), s.indexOf("<pre") === 0)
1967
1967
  return s + `
1968
1968
  `;
1969
1969
  if (c) {
1970
1970
  const l = o.attrIndex("class"), f = o.attrs ? o.attrs.slice() : [];
1971
1971
  l < 0 ? f.push(["class", t.langPrefix + i]) : (f[l] = f[l].slice(), f[l][1] += " " + t.langPrefix + i);
1972
- const m = {
1972
+ const g = {
1973
1973
  attrs: f
1974
1974
  };
1975
- return `<pre><code${r.renderAttrs(m)}>${s}</code></pre>
1975
+ return `<pre><code${r.renderAttrs(g)}>${s}</code></pre>
1976
1976
  `;
1977
1977
  }
1978
1978
  return `<pre><code${r.renderAttrs(o)}>${s}</code></pre>
1979
1979
  `;
1980
1980
  };
1981
- au.image = function(u, e, t, n, r) {
1981
+ su.image = function(u, e, t, n, r) {
1982
1982
  const o = u[e];
1983
1983
  return o.attrs[o.attrIndex("alt")][1] = r.renderInlineAsText(o.children, t, n), r.renderToken(u, e, t);
1984
1984
  };
1985
- au.hardbreak = function(u, e, t) {
1985
+ su.hardbreak = function(u, e, t) {
1986
1986
  return t.xhtmlOut ? `<br />
1987
1987
  ` : `<br>
1988
1988
  `;
1989
1989
  };
1990
- au.softbreak = function(u, e, t) {
1990
+ su.softbreak = function(u, e, t) {
1991
1991
  return t.breaks ? t.xhtmlOut ? `<br />
1992
1992
  ` : `<br>
1993
1993
  ` : `
1994
1994
  `;
1995
1995
  };
1996
- au.text = function(u, e) {
1997
- return mu(u[e].content);
1996
+ su.text = function(u, e) {
1997
+ return xu(u[e].content);
1998
1998
  };
1999
- au.html_block = function(u, e) {
1999
+ su.html_block = function(u, e) {
2000
2000
  return u[e].content;
2001
2001
  };
2002
- au.html_inline = function(u, e) {
2002
+ su.html_inline = function(u, e) {
2003
2003
  return u[e].content;
2004
2004
  };
2005
2005
  function Au() {
2006
- this.rules = ee({}, au);
2006
+ this.rules = ee({}, su);
2007
2007
  }
2008
2008
  Au.prototype.renderAttrs = function(e) {
2009
2009
  let t, n, r;
2010
2010
  if (!e.attrs)
2011
2011
  return "";
2012
2012
  for (r = "", t = 0, n = e.attrs.length; t < n; t++)
2013
- r += " " + mu(e.attrs[t][0]) + '="' + mu(e.attrs[t][1]) + '"';
2013
+ r += " " + xu(e.attrs[t][0]) + '="' + xu(e.attrs[t][1]) + '"';
2014
2014
  return r;
2015
2015
  };
2016
2016
  Au.prototype.renderToken = function(e, t, n) {
@@ -2068,16 +2068,16 @@ Au.prototype.render = function(u, e, t) {
2068
2068
  }
2069
2069
  return n;
2070
2070
  };
2071
- function W() {
2071
+ function Y() {
2072
2072
  this.__rules__ = [], this.__cache__ = null;
2073
2073
  }
2074
- W.prototype.__find__ = function(u) {
2074
+ Y.prototype.__find__ = function(u) {
2075
2075
  for (let e = 0; e < this.__rules__.length; e++)
2076
2076
  if (this.__rules__[e].name === u)
2077
2077
  return e;
2078
2078
  return -1;
2079
2079
  };
2080
- W.prototype.__compile__ = function() {
2080
+ Y.prototype.__compile__ = function() {
2081
2081
  const u = this, e = [""];
2082
2082
  u.__rules__.forEach(function(t) {
2083
2083
  t.enabled && t.alt.forEach(function(n) {
@@ -2089,13 +2089,13 @@ W.prototype.__compile__ = function() {
2089
2089
  });
2090
2090
  });
2091
2091
  };
2092
- W.prototype.at = function(u, e, t) {
2092
+ Y.prototype.at = function(u, e, t) {
2093
2093
  const n = this.__find__(u), r = t || {};
2094
2094
  if (n === -1)
2095
2095
  throw new Error("Parser rule not found: " + u);
2096
2096
  this.__rules__[n].fn = e, this.__rules__[n].alt = r.alt || [], this.__cache__ = null;
2097
2097
  };
2098
- W.prototype.before = function(u, e, t, n) {
2098
+ Y.prototype.before = function(u, e, t, n) {
2099
2099
  const r = this.__find__(u), o = n || {};
2100
2100
  if (r === -1)
2101
2101
  throw new Error("Parser rule not found: " + u);
@@ -2106,7 +2106,7 @@ W.prototype.before = function(u, e, t, n) {
2106
2106
  alt: o.alt || []
2107
2107
  }), this.__cache__ = null;
2108
2108
  };
2109
- W.prototype.after = function(u, e, t, n) {
2109
+ Y.prototype.after = function(u, e, t, n) {
2110
2110
  const r = this.__find__(u), o = n || {};
2111
2111
  if (r === -1)
2112
2112
  throw new Error("Parser rule not found: " + u);
@@ -2117,7 +2117,7 @@ W.prototype.after = function(u, e, t, n) {
2117
2117
  alt: o.alt || []
2118
2118
  }), this.__cache__ = null;
2119
2119
  };
2120
- W.prototype.push = function(u, e, t) {
2120
+ Y.prototype.push = function(u, e, t) {
2121
2121
  const n = t || {};
2122
2122
  this.__rules__.push({
2123
2123
  name: u,
@@ -2126,7 +2126,7 @@ W.prototype.push = function(u, e, t) {
2126
2126
  alt: n.alt || []
2127
2127
  }), this.__cache__ = null;
2128
2128
  };
2129
- W.prototype.enable = function(u, e) {
2129
+ Y.prototype.enable = function(u, e) {
2130
2130
  Array.isArray(u) || (u = [u]);
2131
2131
  const t = [];
2132
2132
  return u.forEach(function(n) {
@@ -2139,12 +2139,12 @@ W.prototype.enable = function(u, e) {
2139
2139
  this.__rules__[r].enabled = !0, t.push(n);
2140
2140
  }, this), this.__cache__ = null, t;
2141
2141
  };
2142
- W.prototype.enableOnly = function(u, e) {
2142
+ Y.prototype.enableOnly = function(u, e) {
2143
2143
  Array.isArray(u) || (u = [u]), this.__rules__.forEach(function(t) {
2144
2144
  t.enabled = !1;
2145
2145
  }), this.enable(u, e);
2146
2146
  };
2147
- W.prototype.disable = function(u, e) {
2147
+ Y.prototype.disable = function(u, e) {
2148
2148
  Array.isArray(u) || (u = [u]);
2149
2149
  const t = [];
2150
2150
  return u.forEach(function(n) {
@@ -2157,13 +2157,13 @@ W.prototype.disable = function(u, e) {
2157
2157
  this.__rules__[r].enabled = !1, t.push(n);
2158
2158
  }, this), this.__cache__ = null, t;
2159
2159
  };
2160
- W.prototype.getRules = function(u) {
2160
+ Y.prototype.getRules = function(u) {
2161
2161
  return this.__cache__ === null && this.__compile__(), this.__cache__[u] || [];
2162
2162
  };
2163
- function nu(u, e, t) {
2163
+ function ru(u, e, t) {
2164
2164
  this.type = u, this.tag = e, this.attrs = null, this.map = null, this.nesting = t, this.level = 0, this.children = null, this.content = "", this.markup = "", this.info = "", this.meta = null, this.block = !1, this.hidden = !1;
2165
2165
  }
2166
- nu.prototype.attrIndex = function(e) {
2166
+ ru.prototype.attrIndex = function(e) {
2167
2167
  if (!this.attrs)
2168
2168
  return -1;
2169
2169
  const t = this.attrs;
@@ -2172,26 +2172,26 @@ nu.prototype.attrIndex = function(e) {
2172
2172
  return n;
2173
2173
  return -1;
2174
2174
  };
2175
- nu.prototype.attrPush = function(e) {
2175
+ ru.prototype.attrPush = function(e) {
2176
2176
  this.attrs ? this.attrs.push(e) : this.attrs = [e];
2177
2177
  };
2178
- nu.prototype.attrSet = function(e, t) {
2178
+ ru.prototype.attrSet = function(e, t) {
2179
2179
  const n = this.attrIndex(e), r = [e, t];
2180
2180
  n < 0 ? this.attrPush(r) : this.attrs[n] = r;
2181
2181
  };
2182
- nu.prototype.attrGet = function(e) {
2182
+ ru.prototype.attrGet = function(e) {
2183
2183
  const t = this.attrIndex(e);
2184
2184
  let n = null;
2185
2185
  return t >= 0 && (n = this.attrs[t][1]), n;
2186
2186
  };
2187
- nu.prototype.attrJoin = function(e, t) {
2187
+ ru.prototype.attrJoin = function(e, t) {
2188
2188
  const n = this.attrIndex(e);
2189
2189
  n < 0 ? this.attrPush([e, t]) : this.attrs[n][1] = this.attrs[n][1] + " " + t;
2190
2190
  };
2191
2191
  function Kt(u, e, t) {
2192
2192
  this.src = u, this.env = t, this.tokens = [], this.inlineMode = !1, this.md = e;
2193
2193
  }
2194
- Kt.prototype.Token = nu;
2194
+ Kt.prototype.Token = ru;
2195
2195
  const gr = /\r\n?|\n/g, _r = /\0/g;
2196
2196
  function kr(u) {
2197
2197
  let e;
@@ -2233,7 +2233,7 @@ function Er(u) {
2233
2233
  const a = i.content;
2234
2234
  let s = u.md.linkify.match(a);
2235
2235
  const l = [];
2236
- let f = i.level, m = 0;
2236
+ let f = i.level, g = 0;
2237
2237
  s.length > 0 && s[0].index === 0 && c > 0 && r[c - 1].type === "text_special" && (s = s.slice(1));
2238
2238
  for (let p = 0; p < s.length; p++) {
2239
2239
  const d = s[p].url, C = u.md.normalizeLink(d);
@@ -2241,21 +2241,21 @@ function Er(u) {
2241
2241
  continue;
2242
2242
  let k = s[p].text;
2243
2243
  s[p].schema ? s[p].schema === "mailto:" && !/^mailto:/i.test(k) ? k = u.md.normalizeLinkText("mailto:" + k).replace(/^mailto:/, "") : k = u.md.normalizeLinkText(k) : k = u.md.normalizeLinkText("http://" + k).replace(/^http:\/\//, "");
2244
- const A = s[p].index;
2245
- if (A > m) {
2244
+ const w = s[p].index;
2245
+ if (w > g) {
2246
2246
  const y = new u.Token("text", "", 0);
2247
- y.content = a.slice(m, A), y.level = f, l.push(y);
2247
+ y.content = a.slice(g, w), y.level = f, l.push(y);
2248
2248
  }
2249
2249
  const v = new u.Token("link_open", "a", 1);
2250
2250
  v.attrs = [["href", C]], v.level = f++, v.markup = "linkify", v.info = "auto", l.push(v);
2251
2251
  const E = new u.Token("text", "", 0);
2252
2252
  E.content = k, E.level = f, l.push(E);
2253
2253
  const h = new u.Token("link_close", "a", -1);
2254
- h.level = --f, h.markup = "linkify", h.info = "auto", l.push(h), m = s[p].lastIndex;
2254
+ h.level = --f, h.markup = "linkify", h.info = "auto", l.push(h), g = s[p].lastIndex;
2255
2255
  }
2256
- if (m < a.length) {
2256
+ if (g < a.length) {
2257
2257
  const p = new u.Token("text", "", 0);
2258
- p.content = a.slice(m), p.level = f, l.push(p);
2258
+ p.content = a.slice(g), p.level = f, l.push(p);
2259
2259
  }
2260
2260
  e[t].children = r = Qt(r, c, l);
2261
2261
  }
@@ -2310,7 +2310,7 @@ function Lr(u, e) {
2310
2310
  const l = ft.exec(i);
2311
2311
  if (!l)
2312
2312
  break;
2313
- let f = !0, m = !0;
2313
+ let f = !0, g = !0;
2314
2314
  a = l.index + 1;
2315
2315
  const p = l[0] === "'";
2316
2316
  let d = 32;
@@ -2331,24 +2331,24 @@ function Lr(u, e) {
2331
2331
  C = u[t].content.charCodeAt(0);
2332
2332
  break;
2333
2333
  }
2334
- const k = Pu(d) || Ou(String.fromCharCode(d)), A = Pu(C) || Ou(String.fromCharCode(C)), v = Lu(d), E = Lu(C);
2335
- if (E ? f = !1 : A && (v || k || (f = !1)), v ? m = !1 : k && (E || A || (m = !1)), C === 34 && l[0] === '"' && d >= 48 && d <= 57 && (m = f = !1), f && m && (f = k, m = A), !f && !m) {
2334
+ const k = Pu(d) || Ou(String.fromCharCode(d)), w = Pu(C) || Ou(String.fromCharCode(C)), v = Lu(d), E = Lu(C);
2335
+ if (E ? f = !1 : w && (v || k || (f = !1)), v ? g = !1 : k && (E || w || (g = !1)), C === 34 && l[0] === '"' && d >= 48 && d <= 57 && (g = f = !1), f && g && (f = k, g = w), !f && !g) {
2336
2336
  p && (o.content = $u(o.content, l.index, dt));
2337
2337
  continue;
2338
2338
  }
2339
- if (m)
2339
+ if (g)
2340
2340
  for (t = n.length - 1; t >= 0; t--) {
2341
2341
  let h = n[t];
2342
2342
  if (n[t].level < c)
2343
2343
  break;
2344
2344
  if (h.single === p && n[t].level === c) {
2345
2345
  h = n[t];
2346
- let y, b;
2347
- p ? (y = e.md.options.quotes[2], b = e.md.options.quotes[3]) : (y = e.md.options.quotes[0], b = e.md.options.quotes[1]), o.content = $u(o.content, l.index, b), u[h.token].content = $u(
2346
+ let y, m;
2347
+ p ? (y = e.md.options.quotes[2], m = e.md.options.quotes[3]) : (y = e.md.options.quotes[0], m = e.md.options.quotes[1]), o.content = $u(o.content, l.index, m), u[h.token].content = $u(
2348
2348
  u[h.token].content,
2349
2349
  h.pos,
2350
2350
  y
2351
- ), a += b.length - 1, h.token === r && (a += y.length - 1), i = o.content, s = i.length, n.length = t;
2351
+ ), a += m.length - 1, h.token === r && (a += y.length - 1), i = o.content, s = i.length, n.length = t;
2352
2352
  continue u;
2353
2353
  }
2354
2354
  }
@@ -2357,7 +2357,7 @@ function Lr(u, e) {
2357
2357
  pos: l.index,
2358
2358
  single: p,
2359
2359
  level: c
2360
- }) : m && p && (o.content = $u(o.content, l.index, dt));
2360
+ }) : g && p && (o.content = $u(o.content, l.index, dt));
2361
2361
  }
2362
2362
  }
2363
2363
  }
@@ -2391,7 +2391,7 @@ const se = [
2391
2391
  ["text_join", Pr]
2392
2392
  ];
2393
2393
  function Me() {
2394
- this.ruler = new W();
2394
+ this.ruler = new Y();
2395
2395
  for (let u = 0; u < se.length; u++)
2396
2396
  this.ruler.push(se[u][0], se[u][1]);
2397
2397
  }
@@ -2401,13 +2401,13 @@ Me.prototype.process = function(u) {
2401
2401
  e[t](u);
2402
2402
  };
2403
2403
  Me.prototype.State = Kt;
2404
- function su(u, e, t, n) {
2404
+ function lu(u, e, t, n) {
2405
2405
  this.src = u, this.md = e, this.env = t, this.tokens = n, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0;
2406
2406
  const r = this.src;
2407
2407
  for (let o = 0, c = 0, i = 0, a = 0, s = r.length, l = !1; c < s; c++) {
2408
2408
  const f = r.charCodeAt(c);
2409
2409
  if (!l)
2410
- if (z(f)) {
2410
+ if (j(f)) {
2411
2411
  i++, f === 9 ? a += 4 - a % 4 : a++;
2412
2412
  continue;
2413
2413
  } else
@@ -2416,40 +2416,40 @@ function su(u, e, t, n) {
2416
2416
  }
2417
2417
  this.bMarks.push(r.length), this.eMarks.push(r.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
2418
2418
  }
2419
- su.prototype.push = function(u, e, t) {
2420
- const n = new nu(u, e, t);
2419
+ lu.prototype.push = function(u, e, t) {
2420
+ const n = new ru(u, e, t);
2421
2421
  return n.block = !0, t < 0 && this.level--, n.level = this.level, t > 0 && this.level++, this.tokens.push(n), n;
2422
2422
  };
2423
- su.prototype.isEmpty = function(e) {
2423
+ lu.prototype.isEmpty = function(e) {
2424
2424
  return this.bMarks[e] + this.tShift[e] >= this.eMarks[e];
2425
2425
  };
2426
- su.prototype.skipEmptyLines = function(e) {
2426
+ lu.prototype.skipEmptyLines = function(e) {
2427
2427
  for (let t = this.lineMax; e < t && !(this.bMarks[e] + this.tShift[e] < this.eMarks[e]); e++)
2428
2428
  ;
2429
2429
  return e;
2430
2430
  };
2431
- su.prototype.skipSpaces = function(e) {
2431
+ lu.prototype.skipSpaces = function(e) {
2432
2432
  for (let t = this.src.length; e < t; e++) {
2433
2433
  const n = this.src.charCodeAt(e);
2434
- if (!z(n))
2434
+ if (!j(n))
2435
2435
  break;
2436
2436
  }
2437
2437
  return e;
2438
2438
  };
2439
- su.prototype.skipSpacesBack = function(e, t) {
2439
+ lu.prototype.skipSpacesBack = function(e, t) {
2440
2440
  if (e <= t)
2441
2441
  return e;
2442
2442
  for (; e > t; )
2443
- if (!z(this.src.charCodeAt(--e)))
2443
+ if (!j(this.src.charCodeAt(--e)))
2444
2444
  return e + 1;
2445
2445
  return e;
2446
2446
  };
2447
- su.prototype.skipChars = function(e, t) {
2447
+ lu.prototype.skipChars = function(e, t) {
2448
2448
  for (let n = this.src.length; e < n && this.src.charCodeAt(e) === t; e++)
2449
2449
  ;
2450
2450
  return e;
2451
2451
  };
2452
- su.prototype.skipCharsBack = function(e, t, n) {
2452
+ lu.prototype.skipCharsBack = function(e, t, n) {
2453
2453
  if (e <= n)
2454
2454
  return e;
2455
2455
  for (; e > n; )
@@ -2457,7 +2457,7 @@ su.prototype.skipCharsBack = function(e, t, n) {
2457
2457
  return e + 1;
2458
2458
  return e;
2459
2459
  };
2460
- su.prototype.getLines = function(e, t, n, r) {
2460
+ lu.prototype.getLines = function(e, t, n, r) {
2461
2461
  if (e >= t)
2462
2462
  return "";
2463
2463
  const o = new Array(t - e);
@@ -2466,9 +2466,9 @@ su.prototype.getLines = function(e, t, n, r) {
2466
2466
  const s = this.bMarks[i];
2467
2467
  let l = s, f;
2468
2468
  for (i + 1 < t || r ? f = this.eMarks[i] + 1 : f = this.eMarks[i]; l < f && a < n; ) {
2469
- const m = this.src.charCodeAt(l);
2470
- if (z(m))
2471
- m === 9 ? a += 4 - (a + this.bsCount[i]) % 4 : a++;
2469
+ const g = this.src.charCodeAt(l);
2470
+ if (j(g))
2471
+ g === 9 ? a += 4 - (a + this.bsCount[i]) % 4 : a++;
2472
2472
  else if (l - s < this.tShift[i])
2473
2473
  a++;
2474
2474
  else
@@ -2479,7 +2479,7 @@ su.prototype.getLines = function(e, t, n, r) {
2479
2479
  }
2480
2480
  return o.join("");
2481
2481
  };
2482
- su.prototype.Token = nu;
2482
+ lu.prototype.Token = ru;
2483
2483
  const Mr = 65536;
2484
2484
  function le(u, e) {
2485
2485
  const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
@@ -2505,11 +2505,11 @@ function jr(u, e, t, n) {
2505
2505
  if (c !== 124 && c !== 45 && c !== 58 || o >= u.eMarks[r])
2506
2506
  return !1;
2507
2507
  const i = u.src.charCodeAt(o++);
2508
- if (i !== 124 && i !== 45 && i !== 58 && !z(i) || c === 45 && z(i))
2508
+ if (i !== 124 && i !== 45 && i !== 58 && !j(i) || c === 45 && j(i))
2509
2509
  return !1;
2510
2510
  for (; o < u.eMarks[r]; ) {
2511
2511
  const h = u.src.charCodeAt(o);
2512
- if (h !== 124 && h !== 45 && h !== 58 && !z(h))
2512
+ if (h !== 124 && h !== 45 && h !== 58 && !j(h))
2513
2513
  return !1;
2514
2514
  o++;
2515
2515
  }
@@ -2534,46 +2534,46 @@ function jr(u, e, t, n) {
2534
2534
  return !1;
2535
2535
  if (n)
2536
2536
  return !0;
2537
- const m = u.parentType;
2537
+ const g = u.parentType;
2538
2538
  u.parentType = "table";
2539
2539
  const p = u.md.block.ruler.getRules("blockquote"), d = u.push("table_open", "table", 1), C = [e, 0];
2540
2540
  d.map = C;
2541
2541
  const k = u.push("thead_open", "thead", 1);
2542
2542
  k.map = [e, e + 1];
2543
- const A = u.push("tr_open", "tr", 1);
2544
- A.map = [e, e + 1];
2543
+ const w = u.push("tr_open", "tr", 1);
2544
+ w.map = [e, e + 1];
2545
2545
  for (let h = 0; h < s.length; h++) {
2546
2546
  const y = u.push("th_open", "th", 1);
2547
2547
  l[h] && (y.attrs = [["style", "text-align:" + l[h]]]);
2548
- const b = u.push("inline", "", 0);
2549
- b.content = s[h].trim(), b.children = [], u.push("th_close", "th", -1);
2548
+ const m = u.push("inline", "", 0);
2549
+ m.content = s[h].trim(), m.children = [], u.push("th_close", "th", -1);
2550
2550
  }
2551
2551
  u.push("tr_close", "tr", -1), u.push("thead_close", "thead", -1);
2552
2552
  let v, E = 0;
2553
2553
  for (r = e + 2; r < t && !(u.sCount[r] < u.blkIndent); r++) {
2554
2554
  let h = !1;
2555
- for (let b = 0, _ = p.length; b < _; b++)
2556
- if (p[b](u, r, t, !0)) {
2555
+ for (let m = 0, _ = p.length; m < _; m++)
2556
+ if (p[m](u, r, t, !0)) {
2557
2557
  h = !0;
2558
2558
  break;
2559
2559
  }
2560
2560
  if (h || (a = le(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s = ht(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), E += f - s.length, E > Mr))
2561
2561
  break;
2562
2562
  if (r === e + 2) {
2563
- const b = u.push("tbody_open", "tbody", 1);
2564
- b.map = v = [e + 2, 0];
2563
+ const m = u.push("tbody_open", "tbody", 1);
2564
+ m.map = v = [e + 2, 0];
2565
2565
  }
2566
2566
  const y = u.push("tr_open", "tr", 1);
2567
2567
  y.map = [r, r + 1];
2568
- for (let b = 0; b < f; b++) {
2568
+ for (let m = 0; m < f; m++) {
2569
2569
  const _ = u.push("td_open", "td", 1);
2570
- l[b] && (_.attrs = [["style", "text-align:" + l[b]]]);
2570
+ l[m] && (_.attrs = [["style", "text-align:" + l[m]]]);
2571
2571
  const D = u.push("inline", "", 0);
2572
- D.content = s[b] ? s[b].trim() : "", D.children = [], u.push("td_close", "td", -1);
2572
+ D.content = s[m] ? s[m].trim() : "", D.children = [], u.push("td_close", "td", -1);
2573
2573
  }
2574
2574
  u.push("tr_close", "tr", -1);
2575
2575
  }
2576
- return v && (u.push("tbody_close", "tbody", -1), v[1] = r), u.push("table_close", "table", -1), C[1] = r, u.parentType = m, u.line = r, !0;
2576
+ return v && (u.push("tbody_close", "tbody", -1), v[1] = r), u.push("table_close", "table", -1), C[1] = r, u.parentType = g, u.line = r, !0;
2577
2577
  }
2578
2578
  function zr(u, e, t) {
2579
2579
  if (u.sCount[e] - u.blkIndent < 4)
@@ -2612,13 +2612,13 @@ function Rr(u, e, t, n) {
2612
2612
  return !1;
2613
2613
  if (n)
2614
2614
  return !0;
2615
- let f = e, m = !1;
2615
+ let f = e, g = !1;
2616
2616
  for (; f++, !(f >= t || (r = i = u.bMarks[f] + u.tShift[f], o = u.eMarks[f], r < o && u.sCount[f] < u.blkIndent)); )
2617
2617
  if (u.src.charCodeAt(r) === c && !(u.sCount[f] - u.blkIndent >= 4) && (r = u.skipChars(r, c), !(r - i < a) && (r = u.skipSpaces(r), !(r < o)))) {
2618
- m = !0;
2618
+ g = !0;
2619
2619
  break;
2620
2620
  }
2621
- a = u.sCount[e], u.line = f + (m ? 1 : 0);
2621
+ a = u.sCount[e], u.line = f + (g ? 1 : 0);
2622
2622
  const p = u.push("fence", "code", 0);
2623
2623
  return p.info = l, p.content = u.getLines(e + 1, f, a, !0), p.markup = s, p.map = [e, u.line], !0;
2624
2624
  }
@@ -2629,7 +2629,7 @@ function qr(u, e, t, n) {
2629
2629
  return !1;
2630
2630
  if (n)
2631
2631
  return !0;
2632
- const i = [], a = [], s = [], l = [], f = u.md.block.ruler.getRules("blockquote"), m = u.parentType;
2632
+ const i = [], a = [], s = [], l = [], f = u.md.block.ruler.getRules("blockquote"), g = u.parentType;
2633
2633
  u.parentType = "blockquote";
2634
2634
  let p = !1, d;
2635
2635
  for (d = e; d < t; d++) {
@@ -2637,24 +2637,24 @@ function qr(u, e, t, n) {
2637
2637
  if (r = u.bMarks[d] + u.tShift[d], o = u.eMarks[d], r >= o)
2638
2638
  break;
2639
2639
  if (u.src.charCodeAt(r++) === 62 && !E) {
2640
- let y = u.sCount[d] + 1, b, _;
2641
- u.src.charCodeAt(r) === 32 ? (r++, y++, _ = !1, b = !0) : u.src.charCodeAt(r) === 9 ? (b = !0, (u.bsCount[d] + y) % 4 === 3 ? (r++, y++, _ = !1) : _ = !0) : b = !1;
2640
+ let y = u.sCount[d] + 1, m, _;
2641
+ u.src.charCodeAt(r) === 32 ? (r++, y++, _ = !1, m = !0) : u.src.charCodeAt(r) === 9 ? (m = !0, (u.bsCount[d] + y) % 4 === 3 ? (r++, y++, _ = !1) : _ = !0) : m = !1;
2642
2642
  let D = y;
2643
2643
  for (i.push(u.bMarks[d]), u.bMarks[d] = r; r < o; ) {
2644
- const I = u.src.charCodeAt(r);
2645
- if (z(I))
2646
- I === 9 ? D += 4 - (D + u.bsCount[d] + (_ ? 1 : 0)) % 4 : D++;
2644
+ const N = u.src.charCodeAt(r);
2645
+ if (j(N))
2646
+ N === 9 ? D += 4 - (D + u.bsCount[d] + (_ ? 1 : 0)) % 4 : D++;
2647
2647
  else
2648
2648
  break;
2649
2649
  r++;
2650
2650
  }
2651
- p = r >= o, a.push(u.bsCount[d]), u.bsCount[d] = u.sCount[d] + 1 + (b ? 1 : 0), s.push(u.sCount[d]), u.sCount[d] = D - y, l.push(u.tShift[d]), u.tShift[d] = r - u.bMarks[d];
2651
+ p = r >= o, a.push(u.bsCount[d]), u.bsCount[d] = u.sCount[d] + 1 + (m ? 1 : 0), s.push(u.sCount[d]), u.sCount[d] = D - y, l.push(u.tShift[d]), u.tShift[d] = r - u.bMarks[d];
2652
2652
  continue;
2653
2653
  }
2654
2654
  if (p)
2655
2655
  break;
2656
2656
  let h = !1;
2657
- for (let y = 0, b = f.length; y < b; y++)
2657
+ for (let y = 0, m = f.length; y < m; y++)
2658
2658
  if (f[y](u, d, t, !0)) {
2659
2659
  h = !0;
2660
2660
  break;
@@ -2669,10 +2669,10 @@ function qr(u, e, t, n) {
2669
2669
  u.blkIndent = 0;
2670
2670
  const k = u.push("blockquote_open", "blockquote", 1);
2671
2671
  k.markup = ">";
2672
- const A = [e, 0];
2673
- k.map = A, u.md.block.tokenize(u, e, d);
2672
+ const w = [e, 0];
2673
+ k.map = w, u.md.block.tokenize(u, e, d);
2674
2674
  const v = u.push("blockquote_close", "blockquote", -1);
2675
- v.markup = ">", u.lineMax = c, u.parentType = m, A[1] = u.line;
2675
+ v.markup = ">", u.lineMax = c, u.parentType = g, w[1] = u.line;
2676
2676
  for (let E = 0; E < l.length; E++)
2677
2677
  u.bMarks[E + e] = i[E], u.tShift[E + e] = l[E], u.sCount[E + e] = s[E], u.bsCount[E + e] = a[E];
2678
2678
  return u.blkIndent = C, !0;
@@ -2688,7 +2688,7 @@ function $r(u, e, t, n) {
2688
2688
  let i = 1;
2689
2689
  for (; o < r; ) {
2690
2690
  const s = u.src.charCodeAt(o++);
2691
- if (s !== c && !z(s))
2691
+ if (s !== c && !j(s))
2692
2692
  return !1;
2693
2693
  s === c && i++;
2694
2694
  }
@@ -2708,7 +2708,7 @@ function pt(u, e) {
2708
2708
  return -1;
2709
2709
  if (n < t) {
2710
2710
  const o = u.src.charCodeAt(n);
2711
- if (!z(o))
2711
+ if (!j(o))
2712
2712
  return -1;
2713
2713
  }
2714
2714
  return n;
@@ -2733,7 +2733,7 @@ function bt(u, e) {
2733
2733
  break;
2734
2734
  return -1;
2735
2735
  }
2736
- return r < n && (o = u.src.charCodeAt(r), !z(o)) ? -1 : r;
2736
+ return r < n && (o = u.src.charCodeAt(r), !j(o)) ? -1 : r;
2737
2737
  }
2738
2738
  function Vr(u, e) {
2739
2739
  const t = u.level + 2;
@@ -2746,9 +2746,9 @@ function Hr(u, e, t, n) {
2746
2746
  return !1;
2747
2747
  let l = !1;
2748
2748
  n && u.parentType === "paragraph" && u.sCount[a] >= u.blkIndent && (l = !0);
2749
- let f, m, p;
2749
+ let f, g, p;
2750
2750
  if ((p = bt(u, a)) >= 0) {
2751
- if (f = !0, c = u.bMarks[a] + u.tShift[a], m = Number(u.src.slice(c, p - 1)), l && m !== 1) return !1;
2751
+ if (f = !0, c = u.bMarks[a] + u.tShift[a], g = Number(u.src.slice(c, p - 1)), l && g !== 1) return !1;
2752
2752
  } else if ((p = pt(u, a)) >= 0)
2753
2753
  f = !1;
2754
2754
  else
@@ -2758,42 +2758,42 @@ function Hr(u, e, t, n) {
2758
2758
  if (n)
2759
2759
  return !0;
2760
2760
  const d = u.src.charCodeAt(p - 1), C = u.tokens.length;
2761
- f ? (i = u.push("ordered_list_open", "ol", 1), m !== 1 && (i.attrs = [["start", m]])) : i = u.push("bullet_list_open", "ul", 1);
2761
+ f ? (i = u.push("ordered_list_open", "ol", 1), g !== 1 && (i.attrs = [["start", g]])) : i = u.push("bullet_list_open", "ul", 1);
2762
2762
  const k = [a, 0];
2763
2763
  i.map = k, i.markup = String.fromCharCode(d);
2764
- let A = !1;
2764
+ let w = !1;
2765
2765
  const v = u.md.block.ruler.getRules("list"), E = u.parentType;
2766
2766
  for (u.parentType = "list"; a < t; ) {
2767
2767
  o = p, r = u.eMarks[a];
2768
2768
  const h = u.sCount[a] + p - (u.bMarks[a] + u.tShift[a]);
2769
2769
  let y = h;
2770
2770
  for (; o < r; ) {
2771
- const L = u.src.charCodeAt(o);
2772
- if (L === 9)
2771
+ const z = u.src.charCodeAt(o);
2772
+ if (z === 9)
2773
2773
  y += 4 - (y + u.bsCount[a]) % 4;
2774
- else if (L === 32)
2774
+ else if (z === 32)
2775
2775
  y++;
2776
2776
  else
2777
2777
  break;
2778
2778
  o++;
2779
2779
  }
2780
- const b = o;
2780
+ const m = o;
2781
2781
  let _;
2782
- b >= r ? _ = 1 : _ = y - h, _ > 4 && (_ = 1);
2782
+ m >= r ? _ = 1 : _ = y - h, _ > 4 && (_ = 1);
2783
2783
  const D = h + _;
2784
2784
  i = u.push("list_item_open", "li", 1), i.markup = String.fromCharCode(d);
2785
- const I = [a, 0];
2786
- i.map = I, f && (i.info = u.src.slice(c, p - 1));
2787
- const S = u.tight, q = u.tShift[a], O = u.sCount[a], $ = u.listIndent;
2788
- if (u.listIndent = u.blkIndent, u.blkIndent = D, u.tight = !0, u.tShift[a] = b - u.bMarks[a], u.sCount[a] = y, b >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || A) && (s = !1), A = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = $, u.tShift[a] = q, u.sCount[a] = O, u.tight = S, i = u.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), a = u.line, I[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
2785
+ const N = [a, 0];
2786
+ i.map = N, f && (i.info = u.src.slice(c, p - 1));
2787
+ const T = u.tight, O = u.tShift[a], P = u.sCount[a], q = u.listIndent;
2788
+ if (u.listIndent = u.blkIndent, u.blkIndent = D, u.tight = !0, u.tShift[a] = m - u.bMarks[a], u.sCount[a] = y, m >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || w) && (s = !1), w = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = q, u.tShift[a] = O, u.sCount[a] = P, u.tight = T, i = u.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), a = u.line, N[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
2789
2789
  break;
2790
- let N = !1;
2791
- for (let L = 0, M = v.length; L < M; L++)
2792
- if (v[L](u, a, t, !0)) {
2793
- N = !0;
2790
+ let V = !1;
2791
+ for (let z = 0, B = v.length; z < B; z++)
2792
+ if (v[z](u, a, t, !0)) {
2793
+ V = !0;
2794
2794
  break;
2795
2795
  }
2796
- if (N)
2796
+ if (V)
2797
2797
  break;
2798
2798
  if (f) {
2799
2799
  if (p = bt(u, a), p < 0)
@@ -2818,17 +2818,17 @@ function Ur(u, e, t, n) {
2818
2818
  if (u.sCount[v] - u.blkIndent > 3 && (h = !0), u.sCount[v] < 0 && (h = !0), !h) {
2819
2819
  const _ = u.md.block.ruler.getRules("reference"), D = u.parentType;
2820
2820
  u.parentType = "reference";
2821
- let I = !1;
2822
- for (let S = 0, q = _.length; S < q; S++)
2823
- if (_[S](u, v, E, !0)) {
2824
- I = !0;
2821
+ let N = !1;
2822
+ for (let T = 0, O = _.length; T < O; T++)
2823
+ if (_[T](u, v, E, !0)) {
2824
+ N = !0;
2825
2825
  break;
2826
2826
  }
2827
- if (u.parentType = D, I)
2827
+ if (u.parentType = D, N)
2828
2828
  return null;
2829
2829
  }
2830
- const y = u.bMarks[v] + u.tShift[v], b = u.eMarks[v];
2831
- return u.src.slice(y, b + 1);
2830
+ const y = u.bMarks[v] + u.tShift[v], m = u.eMarks[v];
2831
+ return u.src.slice(y, m + 1);
2832
2832
  }
2833
2833
  let a = u.src.slice(r, o + 1);
2834
2834
  o = a.length;
@@ -2855,7 +2855,7 @@ function Ur(u, e, t, n) {
2855
2855
  if (v === 10) {
2856
2856
  const E = i(c);
2857
2857
  E !== null && (a += E, o = a.length, c++);
2858
- } else if (!z(v)) break;
2858
+ } else if (!j(v)) break;
2859
2859
  }
2860
2860
  const l = u.md.helpers.parseLinkDestination(a, r, o);
2861
2861
  if (!l.ok)
@@ -2864,13 +2864,13 @@ function Ur(u, e, t, n) {
2864
2864
  if (!u.md.validateLink(f))
2865
2865
  return !1;
2866
2866
  r = l.pos;
2867
- const m = r, p = c, d = r;
2867
+ const g = r, p = c, d = r;
2868
2868
  for (; r < o; r++) {
2869
2869
  const v = a.charCodeAt(r);
2870
2870
  if (v === 10) {
2871
2871
  const E = i(c);
2872
2872
  E !== null && (a += E, o = a.length, c++);
2873
- } else if (!z(v)) break;
2873
+ } else if (!j(v)) break;
2874
2874
  }
2875
2875
  let C = u.md.helpers.parseLinkTitle(a, r, o);
2876
2876
  for (; C.can_continue; ) {
@@ -2879,23 +2879,23 @@ function Ur(u, e, t, n) {
2879
2879
  a += v, r = o, o = a.length, c++, C = u.md.helpers.parseLinkTitle(a, r, o, C);
2880
2880
  }
2881
2881
  let k;
2882
- for (r < o && d !== r && C.ok ? (k = C.str, r = C.pos) : (k = "", r = m, c = p); r < o; ) {
2882
+ for (r < o && d !== r && C.ok ? (k = C.str, r = C.pos) : (k = "", r = g, c = p); r < o; ) {
2883
2883
  const v = a.charCodeAt(r);
2884
- if (!z(v))
2884
+ if (!j(v))
2885
2885
  break;
2886
2886
  r++;
2887
2887
  }
2888
2888
  if (r < o && a.charCodeAt(r) !== 10 && k)
2889
- for (k = "", r = m, c = p; r < o; ) {
2889
+ for (k = "", r = g, c = p; r < o; ) {
2890
2890
  const v = a.charCodeAt(r);
2891
- if (!z(v))
2891
+ if (!j(v))
2892
2892
  break;
2893
2893
  r++;
2894
2894
  }
2895
2895
  if (r < o && a.charCodeAt(r) !== 10)
2896
2896
  return !1;
2897
- const A = te(a.slice(1, s));
2898
- return A ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[A] > "u" && (u.env.references[A] = { title: k, href: f }), u.line = c), !0) : !1;
2897
+ const w = te(a.slice(1, s));
2898
+ return w ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[w] > "u" && (u.env.references[w] = { title: k, href: f }), u.line = c), !0) : !1;
2899
2899
  }
2900
2900
  const Zr = [
2901
2901
  "address",
@@ -2960,7 +2960,7 @@ const Zr = [
2960
2960
  "tr",
2961
2961
  "track",
2962
2962
  "ul"
2963
- ], Gr = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Wr = "[^\"'=<>`\\x00-\\x20]+", Qr = "'[^']*'", Jr = '"[^"]*"', Kr = "(?:" + Wr + "|" + Qr + "|" + Jr + ")", Yr = "(?:\\s+" + Gr + "(?:\\s*=\\s*" + Kr + ")?)", Xt = "<[A-Za-z][A-Za-z0-9\\-]*" + Yr + "*\\s*\\/?>", u0 = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", Xr = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", uo = "<[?][\\s\\S]*?[?]>", eo = "<![A-Za-z][^>]*>", to = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", no = new RegExp("^(?:" + Xt + "|" + u0 + "|" + Xr + "|" + uo + "|" + eo + "|" + to + ")"), ro = new RegExp("^(?:" + Xt + "|" + u0 + ")"), ku = [
2963
+ ], Gr = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Wr = "[^\"'=<>`\\x00-\\x20]+", Qr = "'[^']*'", Jr = '"[^"]*"', Kr = "(?:" + Wr + "|" + Qr + "|" + Jr + ")", Yr = "(?:\\s+" + Gr + "(?:\\s*=\\s*" + Kr + ")?)", Xt = "<[A-Za-z][A-Za-z0-9\\-]*" + Yr + "*\\s*\\/?>", u0 = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", Xr = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", uo = "<[?][\\s\\S]*?[?]>", eo = "<![A-Za-z][^>]*>", to = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", no = new RegExp("^(?:" + Xt + "|" + u0 + "|" + Xr + "|" + uo + "|" + eo + "|" + to + ")"), ro = new RegExp("^(?:" + Xt + "|" + u0 + ")"), Cu = [
2964
2964
  [/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
2965
2965
  [/^<!--/, /-->/, !0],
2966
2966
  [/^<\?/, /\?>/, !0],
@@ -2974,16 +2974,16 @@ function oo(u, e, t, n) {
2974
2974
  if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(r) !== 60)
2975
2975
  return !1;
2976
2976
  let c = u.src.slice(r, o), i = 0;
2977
- for (; i < ku.length && !ku[i][0].test(c); i++)
2977
+ for (; i < Cu.length && !Cu[i][0].test(c); i++)
2978
2978
  ;
2979
- if (i === ku.length)
2979
+ if (i === Cu.length)
2980
2980
  return !1;
2981
2981
  if (n)
2982
- return ku[i][2];
2982
+ return Cu[i][2];
2983
2983
  let a = e + 1;
2984
- if (!ku[i][1].test(c)) {
2984
+ if (!Cu[i][1].test(c)) {
2985
2985
  for (; a < t && !(u.sCount[a] < u.blkIndent); a++)
2986
- if (r = u.bMarks[a] + u.tShift[a], o = u.eMarks[a], c = u.src.slice(r, o), ku[i][1].test(c)) {
2986
+ if (r = u.bMarks[a] + u.tShift[a], o = u.eMarks[a], c = u.src.slice(r, o), Cu[i][1].test(c)) {
2987
2987
  c.length !== 0 && a++;
2988
2988
  break;
2989
2989
  }
@@ -3002,13 +3002,13 @@ function co(u, e, t, n) {
3002
3002
  let i = 1;
3003
3003
  for (c = u.src.charCodeAt(++r); c === 35 && r < o && i <= 6; )
3004
3004
  i++, c = u.src.charCodeAt(++r);
3005
- if (i > 6 || r < o && !z(c))
3005
+ if (i > 6 || r < o && !j(c))
3006
3006
  return !1;
3007
3007
  if (n)
3008
3008
  return !0;
3009
3009
  o = u.skipSpacesBack(o, r);
3010
3010
  const a = u.skipCharsBack(o, 35, r);
3011
- a > r && z(u.src.charCodeAt(a - 1)) && (o = a), u.line = e + 1;
3011
+ a > r && j(u.src.charCodeAt(a - 1)) && (o = a), u.line = e + 1;
3012
3012
  const s = u.push("heading_open", "h" + String(i), 1);
3013
3013
  s.markup = "########".slice(0, i), s.map = [e, u.line];
3014
3014
  const l = u.push("inline", "", 0);
@@ -3036,13 +3036,13 @@ function io(u, e, t) {
3036
3036
  }
3037
3037
  if (u.sCount[i] < 0)
3038
3038
  continue;
3039
- let m = !1;
3039
+ let g = !1;
3040
3040
  for (let p = 0, d = n.length; p < d; p++)
3041
3041
  if (n[p](u, i, t, !0)) {
3042
- m = !0;
3042
+ g = !0;
3043
3043
  break;
3044
3044
  }
3045
- if (m)
3045
+ if (g)
3046
3046
  break;
3047
3047
  }
3048
3048
  if (!o)
@@ -3094,7 +3094,7 @@ const Vu = [
3094
3094
  ["paragraph", ao]
3095
3095
  ];
3096
3096
  function ne() {
3097
- this.ruler = new W();
3097
+ this.ruler = new Y();
3098
3098
  for (let u = 0; u < Vu.length; u++)
3099
3099
  this.ruler.push(Vu[u][0], Vu[u][1], { alt: (Vu[u][2] || []).slice() });
3100
3100
  }
@@ -3124,17 +3124,17 @@ ne.prototype.parse = function(u, e, t, n) {
3124
3124
  const r = new this.State(u, e, t, n);
3125
3125
  this.tokenize(r, r.line, r.lineMax);
3126
3126
  };
3127
- ne.prototype.State = su;
3127
+ ne.prototype.State = lu;
3128
3128
  function Ru(u, e, t, n) {
3129
3129
  this.src = u, this.env = t, this.md = e, this.tokens = n, this.tokens_meta = Array(n.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0;
3130
3130
  }
3131
3131
  Ru.prototype.pushPending = function() {
3132
- const u = new nu("text", "", 0);
3132
+ const u = new ru("text", "", 0);
3133
3133
  return u.content = this.pending, u.level = this.pendingLevel, this.tokens.push(u), this.pending = "", u;
3134
3134
  };
3135
3135
  Ru.prototype.push = function(u, e, t) {
3136
3136
  this.pending && this.pushPending();
3137
- const n = new nu(u, e, t);
3137
+ const n = new ru(u, e, t);
3138
3138
  let r = null;
3139
3139
  return t < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), n.level = this.level, t > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], r = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(n), this.tokens_meta.push(r), n;
3140
3140
  };
@@ -3143,10 +3143,10 @@ Ru.prototype.scanDelims = function(u, e) {
3143
3143
  let o = u;
3144
3144
  for (; o < t && this.src.charCodeAt(o) === n; )
3145
3145
  o++;
3146
- const c = o - u, i = o < t ? this.src.charCodeAt(o) : 32, a = Pu(r) || Ou(String.fromCharCode(r)), s = Pu(i) || Ou(String.fromCharCode(i)), l = Lu(r), f = Lu(i), m = !f && (!s || l || a), p = !l && (!a || f || s);
3147
- return { can_open: m && (e || !p || a), can_close: p && (e || !m || s), length: c };
3146
+ const c = o - u, i = o < t ? this.src.charCodeAt(o) : 32, a = Pu(r) || Ou(String.fromCharCode(r)), s = Pu(i) || Ou(String.fromCharCode(i)), l = Lu(r), f = Lu(i), g = !f && (!s || l || a), p = !l && (!a || f || s);
3147
+ return { can_open: g && (e || !p || a), can_close: p && (e || !g || s), length: c };
3148
3148
  };
3149
- Ru.prototype.Token = nu;
3149
+ Ru.prototype.Token = ru;
3150
3150
  function so(u) {
3151
3151
  switch (u) {
3152
3152
  case 10:
@@ -3223,7 +3223,7 @@ function po(u, e) {
3223
3223
  u.pending = u.pending.slice(0, -1), u.push("softbreak", "br", 0);
3224
3224
  else
3225
3225
  u.push("softbreak", "br", 0);
3226
- for (t++; t < r && z(u.src.charCodeAt(t)); )
3226
+ for (t++; t < r && j(u.src.charCodeAt(t)); )
3227
3227
  t++;
3228
3228
  return u.pos = t, !0;
3229
3229
  }
@@ -3239,7 +3239,7 @@ function bo(u, e) {
3239
3239
  if (u.src.charCodeAt(t) !== 92 || (t++, t >= n)) return !1;
3240
3240
  let r = u.src.charCodeAt(t);
3241
3241
  if (r === 10) {
3242
- for (e || u.push("hardbreak", "br", 0), t++; t < n && (r = u.src.charCodeAt(t), !!z(r)); )
3242
+ for (e || u.push("hardbreak", "br", 0), t++; t < n && (r = u.src.charCodeAt(t), !!j(r)); )
3243
3243
  t++;
3244
3244
  return u.pos = t, !0;
3245
3245
  }
@@ -3392,20 +3392,20 @@ function yo(u, e) {
3392
3392
  let t, n, r, o, c = "", i = "", a = u.pos, s = !0;
3393
3393
  if (u.src.charCodeAt(u.pos) !== 91)
3394
3394
  return !1;
3395
- const l = u.pos, f = u.posMax, m = u.pos + 1, p = u.md.helpers.parseLinkLabel(u, u.pos, !0);
3395
+ const l = u.pos, f = u.posMax, g = u.pos + 1, p = u.md.helpers.parseLinkLabel(u, u.pos, !0);
3396
3396
  if (p < 0)
3397
3397
  return !1;
3398
3398
  let d = p + 1;
3399
3399
  if (d < f && u.src.charCodeAt(d) === 40) {
3400
- for (s = !1, d++; d < f && (t = u.src.charCodeAt(d), !(!z(t) && t !== 10)); d++)
3400
+ for (s = !1, d++; d < f && (t = u.src.charCodeAt(d), !(!j(t) && t !== 10)); d++)
3401
3401
  ;
3402
3402
  if (d >= f)
3403
3403
  return !1;
3404
3404
  if (a = d, r = u.md.helpers.parseLinkDestination(u.src, d, u.posMax), r.ok) {
3405
- for (c = u.md.normalizeLink(r.str), u.md.validateLink(c) ? d = r.pos : c = "", a = d; d < f && (t = u.src.charCodeAt(d), !(!z(t) && t !== 10)); d++)
3405
+ for (c = u.md.normalizeLink(r.str), u.md.validateLink(c) ? d = r.pos : c = "", a = d; d < f && (t = u.src.charCodeAt(d), !(!j(t) && t !== 10)); d++)
3406
3406
  ;
3407
3407
  if (r = u.md.helpers.parseLinkTitle(u.src, d, u.posMax), d < f && a !== d && r.ok)
3408
- for (i = r.str, d = r.pos; d < f && (t = u.src.charCodeAt(d), !(!z(t) && t !== 10)); d++)
3408
+ for (i = r.str, d = r.pos; d < f && (t = u.src.charCodeAt(d), !(!j(t) && t !== 10)); d++)
3409
3409
  ;
3410
3410
  }
3411
3411
  (d >= f || u.src.charCodeAt(d) !== 41) && (s = !0), d++;
@@ -3413,12 +3413,12 @@ function yo(u, e) {
3413
3413
  if (s) {
3414
3414
  if (typeof u.env.references > "u")
3415
3415
  return !1;
3416
- if (d < f && u.src.charCodeAt(d) === 91 ? (a = d + 1, d = u.md.helpers.parseLinkLabel(u, d), d >= 0 ? n = u.src.slice(a, d++) : d = p + 1) : d = p + 1, n || (n = u.src.slice(m, p)), o = u.env.references[te(n)], !o)
3416
+ if (d < f && u.src.charCodeAt(d) === 91 ? (a = d + 1, d = u.md.helpers.parseLinkLabel(u, d), d >= 0 ? n = u.src.slice(a, d++) : d = p + 1) : d = p + 1, n || (n = u.src.slice(g, p)), o = u.env.references[te(n)], !o)
3417
3417
  return u.pos = l, !1;
3418
3418
  c = o.href, i = o.title;
3419
3419
  }
3420
3420
  if (!e) {
3421
- u.pos = m, u.posMax = p;
3421
+ u.pos = g, u.posMax = p;
3422
3422
  const C = u.push("link_open", "a", 1), k = [["href", c]];
3423
3423
  C.attrs = k, i && k.push(["title", i]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
3424
3424
  }
@@ -3426,31 +3426,31 @@ function yo(u, e) {
3426
3426
  }
3427
3427
  function Co(u, e) {
3428
3428
  let t, n, r, o, c, i, a, s, l = "";
3429
- const f = u.pos, m = u.posMax;
3429
+ const f = u.pos, g = u.posMax;
3430
3430
  if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
3431
3431
  return !1;
3432
3432
  const p = u.pos + 2, d = u.md.helpers.parseLinkLabel(u, u.pos + 1, !1);
3433
3433
  if (d < 0)
3434
3434
  return !1;
3435
- if (o = d + 1, o < m && u.src.charCodeAt(o) === 40) {
3436
- for (o++; o < m && (t = u.src.charCodeAt(o), !(!z(t) && t !== 10)); o++)
3435
+ if (o = d + 1, o < g && u.src.charCodeAt(o) === 40) {
3436
+ for (o++; o < g && (t = u.src.charCodeAt(o), !(!j(t) && t !== 10)); o++)
3437
3437
  ;
3438
- if (o >= m)
3438
+ if (o >= g)
3439
3439
  return !1;
3440
- for (s = o, i = u.md.helpers.parseLinkDestination(u.src, o, u.posMax), i.ok && (l = u.md.normalizeLink(i.str), u.md.validateLink(l) ? o = i.pos : l = ""), s = o; o < m && (t = u.src.charCodeAt(o), !(!z(t) && t !== 10)); o++)
3440
+ for (s = o, i = u.md.helpers.parseLinkDestination(u.src, o, u.posMax), i.ok && (l = u.md.normalizeLink(i.str), u.md.validateLink(l) ? o = i.pos : l = ""), s = o; o < g && (t = u.src.charCodeAt(o), !(!j(t) && t !== 10)); o++)
3441
3441
  ;
3442
- if (i = u.md.helpers.parseLinkTitle(u.src, o, u.posMax), o < m && s !== o && i.ok)
3443
- for (a = i.str, o = i.pos; o < m && (t = u.src.charCodeAt(o), !(!z(t) && t !== 10)); o++)
3442
+ if (i = u.md.helpers.parseLinkTitle(u.src, o, u.posMax), o < g && s !== o && i.ok)
3443
+ for (a = i.str, o = i.pos; o < g && (t = u.src.charCodeAt(o), !(!j(t) && t !== 10)); o++)
3444
3444
  ;
3445
3445
  else
3446
3446
  a = "";
3447
- if (o >= m || u.src.charCodeAt(o) !== 41)
3447
+ if (o >= g || u.src.charCodeAt(o) !== 41)
3448
3448
  return u.pos = f, !1;
3449
3449
  o++;
3450
3450
  } else {
3451
3451
  if (typeof u.env.references > "u")
3452
3452
  return !1;
3453
- if (o < m && u.src.charCodeAt(o) === 91 ? (s = o + 1, o = u.md.helpers.parseLinkLabel(u, o), o >= 0 ? r = u.src.slice(s, o++) : o = d + 1) : o = d + 1, r || (r = u.src.slice(p, d)), c = u.env.references[te(r)], !c)
3453
+ if (o < g && u.src.charCodeAt(o) === 91 ? (s = o + 1, o = u.md.helpers.parseLinkLabel(u, o), o >= 0 ? r = u.src.slice(s, o++) : o = d + 1) : o = d + 1, r || (r = u.src.slice(p, d)), c = u.env.references[te(r)], !c)
3454
3454
  return u.pos = f, !1;
3455
3455
  l = c.href, a = c.title;
3456
3456
  }
@@ -3463,10 +3463,10 @@ function Co(u, e) {
3463
3463
  u.env,
3464
3464
  C
3465
3465
  );
3466
- const k = u.push("image", "img", 0), A = [["src", l], ["alt", ""]];
3467
- k.attrs = A, k.children = C, k.content = n, a && A.push(["title", a]);
3466
+ const k = u.push("image", "img", 0), w = [["src", l], ["alt", ""]];
3467
+ k.attrs = w, k.children = C, k.content = n, a && w.push(["title", a]);
3468
3468
  }
3469
- return u.pos = o, u.posMax = m, !0;
3469
+ return u.pos = o, u.posMax = g, !0;
3470
3470
  }
3471
3471
  const vo = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, Do = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
3472
3472
  function Eo(u, e) {
@@ -3581,8 +3581,8 @@ function gt(u) {
3581
3581
  for (; s > a; s -= o[s] + 1) {
3582
3582
  const f = u[s];
3583
3583
  if (f.marker === i.marker && f.open && f.end < 0) {
3584
- let m = !1;
3585
- if ((f.close || i.open) && (f.length + i.length) % 3 === 0 && (f.length % 3 !== 0 || i.length % 3 !== 0) && (m = !0), !m) {
3584
+ let g = !1;
3585
+ if ((f.close || i.open) && (f.length + i.length) % 3 === 0 && (f.length % 3 !== 0 || i.length % 3 !== 0) && (g = !0), !g) {
3586
3586
  const p = s > 0 && !u[s - 1].open ? o[s - 1] + 1 : 0;
3587
3587
  o[c] = c - s + p, o[s] = p, i.open = !1, f.end = c, f.close = !1, l = -1, r = -2;
3588
3588
  break;
@@ -3627,10 +3627,10 @@ const fe = [
3627
3627
  ["fragments_join", Lo]
3628
3628
  ];
3629
3629
  function qu() {
3630
- this.ruler = new W();
3630
+ this.ruler = new Y();
3631
3631
  for (let u = 0; u < fe.length; u++)
3632
3632
  this.ruler.push(fe[u][0], fe[u][1]);
3633
- this.ruler2 = new W();
3633
+ this.ruler2 = new Y();
3634
3634
  for (let u = 0; u < de.length; u++)
3635
3635
  this.ruler2.push(de[u][0], de[u][1]);
3636
3636
  }
@@ -3821,18 +3821,18 @@ function Ee(u, e) {
3821
3821
  const t = new Zo(u, e);
3822
3822
  return u.__compiled__[t.schema].normalize(t, u), t;
3823
3823
  }
3824
- function X(u, e) {
3825
- if (!(this instanceof X))
3826
- return new X(u, e);
3824
+ function uu(u, e) {
3825
+ if (!(this instanceof uu))
3826
+ return new uu(u, e);
3827
3827
  e || Ro(u) && (e = u, u = {}), this.__opts__ = De({}, n0, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = De({}, qo, u), this.__compiled__ = {}, this.__tlds__ = Vo, this.__tlds_replaced__ = !1, this.re = {}, Ku(this);
3828
3828
  }
3829
- X.prototype.add = function(e, t) {
3829
+ uu.prototype.add = function(e, t) {
3830
3830
  return this.__schemas__[e] = t, Ku(this), this;
3831
3831
  };
3832
- X.prototype.set = function(e) {
3832
+ uu.prototype.set = function(e) {
3833
3833
  return this.__opts__ = De(this.__opts__, e), this;
3834
3834
  };
3835
- X.prototype.test = function(e) {
3835
+ uu.prototype.test = function(e) {
3836
3836
  if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
3837
3837
  return !1;
3838
3838
  let t, n, r, o, c, i, a, s, l;
@@ -3845,13 +3845,13 @@ X.prototype.test = function(e) {
3845
3845
  }
3846
3846
  return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (s = e.search(this.re.host_fuzzy_test), s >= 0 && (this.__index__ < 0 || s < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (c = n.index + n[1].length, (this.__index__ < 0 || c < this.__index__) && (this.__schema__ = "", this.__index__ = c, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (l = e.indexOf("@"), l >= 0 && (r = e.match(this.re.email_fuzzy)) !== null && (c = r.index + r[1].length, i = r.index + r[0].length, (this.__index__ < 0 || c < this.__index__ || c === this.__index__ && i > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = c, this.__last_index__ = i))), this.__index__ >= 0;
3847
3847
  };
3848
- X.prototype.pretest = function(e) {
3848
+ uu.prototype.pretest = function(e) {
3849
3849
  return this.re.pretest.test(e);
3850
3850
  };
3851
- X.prototype.testSchemaAt = function(e, t, n) {
3851
+ uu.prototype.testSchemaAt = function(e, t, n) {
3852
3852
  return this.__compiled__[t.toLowerCase()] ? this.__compiled__[t.toLowerCase()].validate(e, n, this) : 0;
3853
3853
  };
3854
- X.prototype.match = function(e) {
3854
+ uu.prototype.match = function(e) {
3855
3855
  const t = [];
3856
3856
  let n = 0;
3857
3857
  this.__index__ >= 0 && this.__text_cache__ === e && (t.push(Ee(this, n)), n = this.__last_index__);
@@ -3860,29 +3860,29 @@ X.prototype.match = function(e) {
3860
3860
  t.push(Ee(this, n)), r = r.slice(this.__last_index__), n += this.__last_index__;
3861
3861
  return t.length ? t : null;
3862
3862
  };
3863
- X.prototype.matchAtStart = function(e) {
3863
+ uu.prototype.matchAtStart = function(e) {
3864
3864
  if (this.__text_cache__ = e, this.__index__ = -1, !e.length) return null;
3865
3865
  const t = this.re.schema_at_start.exec(e);
3866
3866
  if (!t) return null;
3867
3867
  const n = this.testSchemaAt(e, t[2], t[0].length);
3868
3868
  return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n, Ee(this, 0)) : null;
3869
3869
  };
3870
- X.prototype.tlds = function(e, t) {
3870
+ uu.prototype.tlds = function(e, t) {
3871
3871
  return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r, o) {
3872
3872
  return n !== o[r - 1];
3873
3873
  }).reverse(), Ku(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, Ku(this), this);
3874
3874
  };
3875
- X.prototype.normalize = function(e) {
3875
+ uu.prototype.normalize = function(e) {
3876
3876
  e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url);
3877
3877
  };
3878
- X.prototype.onCompile = function() {
3878
+ uu.prototype.onCompile = function() {
3879
3879
  };
3880
- const vu = 2147483647, cu = 36, ze = 1, Mu = 26, Go = 38, Wo = 700, r0 = 72, o0 = 128, c0 = "-", Qo = /^xn--/, Jo = /[^\0-\x7F]/, Ko = /[\x2E\u3002\uFF0E\uFF61]/g, Yo = {
3880
+ const vu = 2147483647, iu = 36, ze = 1, Mu = 26, Go = 38, Wo = 700, r0 = 72, o0 = 128, c0 = "-", Qo = /^xn--/, Jo = /[^\0-\x7F]/, Ko = /[\x2E\u3002\uFF0E\uFF61]/g, Yo = {
3881
3881
  overflow: "Overflow: input needs wider integers to process",
3882
3882
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
3883
3883
  "invalid-input": "Invalid input"
3884
- }, he = cu - ze, iu = Math.floor, pe = String.fromCharCode;
3885
- function du(u) {
3884
+ }, he = iu - ze, au = Math.floor, pe = String.fromCharCode;
3885
+ function pu(u) {
3886
3886
  throw new RangeError(Yo[u]);
3887
3887
  }
3888
3888
  function Xo(u, e) {
@@ -3914,34 +3914,34 @@ function a0(u) {
3914
3914
  return e;
3915
3915
  }
3916
3916
  const uc = (u) => String.fromCodePoint(...u), ec = function(u) {
3917
- return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 : cu;
3917
+ return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 : iu;
3918
3918
  }, yt = function(u, e) {
3919
3919
  return u + 22 + 75 * (u < 26) - ((e != 0) << 5);
3920
3920
  }, s0 = function(u, e, t) {
3921
3921
  let n = 0;
3922
- for (u = t ? iu(u / Wo) : u >> 1, u += iu(u / e); u > he * Mu >> 1; n += cu)
3923
- u = iu(u / he);
3924
- return iu(n + (he + 1) * u / (u + Go));
3922
+ for (u = t ? au(u / Wo) : u >> 1, u += au(u / e); u > he * Mu >> 1; n += iu)
3923
+ u = au(u / he);
3924
+ return au(n + (he + 1) * u / (u + Go));
3925
3925
  }, l0 = function(u) {
3926
3926
  const e = [], t = u.length;
3927
3927
  let n = 0, r = o0, o = r0, c = u.lastIndexOf(c0);
3928
3928
  c < 0 && (c = 0);
3929
3929
  for (let i = 0; i < c; ++i)
3930
- u.charCodeAt(i) >= 128 && du("not-basic"), e.push(u.charCodeAt(i));
3930
+ u.charCodeAt(i) >= 128 && pu("not-basic"), e.push(u.charCodeAt(i));
3931
3931
  for (let i = c > 0 ? c + 1 : 0; i < t; ) {
3932
3932
  const a = n;
3933
- for (let l = 1, f = cu; ; f += cu) {
3934
- i >= t && du("invalid-input");
3935
- const m = ec(u.charCodeAt(i++));
3936
- m >= cu && du("invalid-input"), m > iu((vu - n) / l) && du("overflow"), n += m * l;
3933
+ for (let l = 1, f = iu; ; f += iu) {
3934
+ i >= t && pu("invalid-input");
3935
+ const g = ec(u.charCodeAt(i++));
3936
+ g >= iu && pu("invalid-input"), g > au((vu - n) / l) && pu("overflow"), n += g * l;
3937
3937
  const p = f <= o ? ze : f >= o + Mu ? Mu : f - o;
3938
- if (m < p)
3938
+ if (g < p)
3939
3939
  break;
3940
- const d = cu - p;
3941
- l > iu(vu / d) && du("overflow"), l *= d;
3940
+ const d = iu - p;
3941
+ l > au(vu / d) && pu("overflow"), l *= d;
3942
3942
  }
3943
3943
  const s = e.length + 1;
3944
- o = s0(n - a, s, a == 0), iu(n / s) > vu - r && du("overflow"), r += iu(n / s), n %= s, e.splice(n++, 0, r);
3944
+ o = s0(n - a, s, a == 0), au(n / s) > vu - r && pu("overflow"), r += au(n / s), n %= s, e.splice(n++, 0, r);
3945
3945
  }
3946
3946
  return String.fromCodePoint(...e);
3947
3947
  }, f0 = function(u) {
@@ -3958,18 +3958,18 @@ const uc = (u) => String.fromCodePoint(...u), ec = function(u) {
3958
3958
  for (const l of u)
3959
3959
  l >= n && l < a && (a = l);
3960
3960
  const s = i + 1;
3961
- a - n > iu((vu - r) / s) && du("overflow"), r += (a - n) * s, n = a;
3961
+ a - n > au((vu - r) / s) && pu("overflow"), r += (a - n) * s, n = a;
3962
3962
  for (const l of u)
3963
- if (l < n && ++r > vu && du("overflow"), l === n) {
3963
+ if (l < n && ++r > vu && pu("overflow"), l === n) {
3964
3964
  let f = r;
3965
- for (let m = cu; ; m += cu) {
3966
- const p = m <= o ? ze : m >= o + Mu ? Mu : m - o;
3965
+ for (let g = iu; ; g += iu) {
3966
+ const p = g <= o ? ze : g >= o + Mu ? Mu : g - o;
3967
3967
  if (f < p)
3968
3968
  break;
3969
- const d = f - p, C = cu - p;
3969
+ const d = f - p, C = iu - p;
3970
3970
  e.push(
3971
3971
  pe(yt(p + d % C, 0))
3972
- ), f = iu(d / C);
3972
+ ), f = au(d / C);
3973
3973
  }
3974
3974
  e.push(pe(yt(f, 0))), o = s0(r, s, i === c), r = 0, ++i;
3975
3975
  }
@@ -4202,7 +4202,7 @@ function dc(u) {
4202
4202
  function eu(u, e) {
4203
4203
  if (!(this instanceof eu))
4204
4204
  return new eu(u, e);
4205
- e || Oe(u) || (e = u || {}, u = "default"), this.inline = new qu(), this.block = new ne(), this.core = new Me(), this.renderer = new Au(), this.linkify = new X(), this.validateLink = lc, this.normalizeLink = fc, this.normalizeLinkText = dc, this.utils = hr, this.helpers = ee({}, xr), this.options = {}, this.configure(u), e && this.set(e);
4205
+ e || Oe(u) || (e = u || {}, u = "default"), this.inline = new qu(), this.block = new ne(), this.core = new Me(), this.renderer = new Au(), this.linkify = new uu(), this.validateLink = lc, this.normalizeLink = fc, this.normalizeLinkText = dc, this.utils = hr, this.helpers = ee({}, xr), this.options = {}, this.configure(u), e && this.set(e);
4206
4206
  }
4207
4207
  eu.prototype.set = function(u) {
4208
4208
  return ee(this.options, u), this;
@@ -4269,60 +4269,60 @@ var hc = { 207: (u, e, t) => {
4269
4269
  }, 452: (u) => {
4270
4270
  var e = (function(t) {
4271
4271
  var n, r = Object.prototype, o = r.hasOwnProperty, c = typeof Symbol == "function" ? Symbol : {}, i = c.iterator || "@@iterator", a = c.asyncIterator || "@@asyncIterator", s = c.toStringTag || "@@toStringTag";
4272
- function l(x, g, w) {
4273
- return Object.defineProperty(x, g, { value: w, enumerable: !0, configurable: !0, writable: !0 }), x[g];
4272
+ function l(x, b, F) {
4273
+ return Object.defineProperty(x, b, { value: F, enumerable: !0, configurable: !0, writable: !0 }), x[b];
4274
4274
  }
4275
4275
  try {
4276
4276
  l({}, "");
4277
4277
  } catch {
4278
- l = function(g, w, B) {
4279
- return g[w] = B;
4278
+ l = function(b, F, I) {
4279
+ return b[F] = I;
4280
4280
  };
4281
4281
  }
4282
- function f(x, g, w, B) {
4283
- var T = g && g.prototype instanceof v ? g : v, V = Object.create(T.prototype), R = new N(B || []);
4284
- return V._invoke = /* @__PURE__ */ (function(Q, J, j) {
4285
- var K = p;
4286
- return function(ru, Re) {
4287
- if (K === C) throw new Error("Generator is already running");
4288
- if (K === k) {
4289
- if (ru === "throw") throw Re;
4290
- return M();
4282
+ function f(x, b, F, I) {
4283
+ var S = b && b.prototype instanceof v ? b : v, R = Object.create(S.prototype), $ = new V(I || []);
4284
+ return R._invoke = /* @__PURE__ */ (function(K, W, M) {
4285
+ var G = p;
4286
+ return function(ou, Re) {
4287
+ if (G === C) throw new Error("Generator is already running");
4288
+ if (G === k) {
4289
+ if (ou === "throw") throw Re;
4290
+ return B();
4291
4291
  }
4292
- for (j.method = ru, j.arg = Re; ; ) {
4293
- var qe = j.delegate;
4292
+ for (M.method = ou, M.arg = Re; ; ) {
4293
+ var qe = M.delegate;
4294
4294
  if (qe) {
4295
- var oe = q(qe, j);
4295
+ var oe = O(qe, M);
4296
4296
  if (oe) {
4297
- if (oe === A) continue;
4297
+ if (oe === w) continue;
4298
4298
  return oe;
4299
4299
  }
4300
4300
  }
4301
- if (j.method === "next") j.sent = j._sent = j.arg;
4302
- else if (j.method === "throw") {
4303
- if (K === p) throw K = k, j.arg;
4304
- j.dispatchException(j.arg);
4305
- } else j.method === "return" && j.abrupt("return", j.arg);
4306
- K = C;
4307
- var wu = m(Q, J, j);
4301
+ if (M.method === "next") M.sent = M._sent = M.arg;
4302
+ else if (M.method === "throw") {
4303
+ if (G === p) throw G = k, M.arg;
4304
+ M.dispatchException(M.arg);
4305
+ } else M.method === "return" && M.abrupt("return", M.arg);
4306
+ G = C;
4307
+ var wu = g(K, W, M);
4308
4308
  if (wu.type === "normal") {
4309
- if (K = j.done ? k : d, wu.arg === A) continue;
4310
- return { value: wu.arg, done: j.done };
4309
+ if (G = M.done ? k : d, wu.arg === w) continue;
4310
+ return { value: wu.arg, done: M.done };
4311
4311
  }
4312
- wu.type === "throw" && (K = k, j.method = "throw", j.arg = wu.arg);
4312
+ wu.type === "throw" && (G = k, M.method = "throw", M.arg = wu.arg);
4313
4313
  }
4314
4314
  };
4315
- })(x, w, R), V;
4315
+ })(x, F, $), R;
4316
4316
  }
4317
- function m(x, g, w) {
4317
+ function g(x, b, F) {
4318
4318
  try {
4319
- return { type: "normal", arg: x.call(g, w) };
4320
- } catch (B) {
4321
- return { type: "throw", arg: B };
4319
+ return { type: "normal", arg: x.call(b, F) };
4320
+ } catch (I) {
4321
+ return { type: "throw", arg: I };
4322
4322
  }
4323
4323
  }
4324
4324
  t.wrap = f;
4325
- var p = "suspendedStart", d = "suspendedYield", C = "executing", k = "completed", A = {};
4325
+ var p = "suspendedStart", d = "suspendedYield", C = "executing", k = "completed", w = {};
4326
4326
  function v() {
4327
4327
  }
4328
4328
  function E() {
@@ -4333,117 +4333,117 @@ var hc = { 207: (u, e, t) => {
4333
4333
  l(y, i, (function() {
4334
4334
  return this;
4335
4335
  }));
4336
- var b = Object.getPrototypeOf, _ = b && b(b(L([])));
4336
+ var m = Object.getPrototypeOf, _ = m && m(m(z([])));
4337
4337
  _ && _ !== r && o.call(_, i) && (y = _);
4338
4338
  var D = h.prototype = v.prototype = Object.create(y);
4339
- function I(x) {
4340
- ["next", "throw", "return"].forEach((function(g) {
4341
- l(x, g, (function(w) {
4342
- return this._invoke(g, w);
4339
+ function N(x) {
4340
+ ["next", "throw", "return"].forEach((function(b) {
4341
+ l(x, b, (function(F) {
4342
+ return this._invoke(b, F);
4343
4343
  }));
4344
4344
  }));
4345
4345
  }
4346
- function S(x, g) {
4347
- function w(T, V, R, Q) {
4348
- var J = m(x[T], x, V);
4349
- if (J.type !== "throw") {
4350
- var j = J.arg, K = j.value;
4351
- return K && typeof K == "object" && o.call(K, "__await") ? g.resolve(K.__await).then((function(ru) {
4352
- w("next", ru, R, Q);
4353
- }), (function(ru) {
4354
- w("throw", ru, R, Q);
4355
- })) : g.resolve(K).then((function(ru) {
4356
- j.value = ru, R(j);
4357
- }), (function(ru) {
4358
- return w("throw", ru, R, Q);
4346
+ function T(x, b) {
4347
+ function F(S, R, $, K) {
4348
+ var W = g(x[S], x, R);
4349
+ if (W.type !== "throw") {
4350
+ var M = W.arg, G = M.value;
4351
+ return G && typeof G == "object" && o.call(G, "__await") ? b.resolve(G.__await).then((function(ou) {
4352
+ F("next", ou, $, K);
4353
+ }), (function(ou) {
4354
+ F("throw", ou, $, K);
4355
+ })) : b.resolve(G).then((function(ou) {
4356
+ M.value = ou, $(M);
4357
+ }), (function(ou) {
4358
+ return F("throw", ou, $, K);
4359
4359
  }));
4360
4360
  }
4361
- Q(J.arg);
4361
+ K(W.arg);
4362
4362
  }
4363
- var B;
4364
- this._invoke = function(T, V) {
4365
- function R() {
4366
- return new g((function(Q, J) {
4367
- w(T, V, Q, J);
4363
+ var I;
4364
+ this._invoke = function(S, R) {
4365
+ function $() {
4366
+ return new b((function(K, W) {
4367
+ F(S, R, K, W);
4368
4368
  }));
4369
4369
  }
4370
- return B = B ? B.then(R, R) : R();
4370
+ return I = I ? I.then($, $) : $();
4371
4371
  };
4372
4372
  }
4373
- function q(x, g) {
4374
- var w = x.iterator[g.method];
4375
- if (w === n) {
4376
- if (g.delegate = null, g.method === "throw") {
4377
- if (x.iterator.return && (g.method = "return", g.arg = n, q(x, g), g.method === "throw")) return A;
4378
- g.method = "throw", g.arg = new TypeError("The iterator does not provide a 'throw' method");
4373
+ function O(x, b) {
4374
+ var F = x.iterator[b.method];
4375
+ if (F === n) {
4376
+ if (b.delegate = null, b.method === "throw") {
4377
+ if (x.iterator.return && (b.method = "return", b.arg = n, O(x, b), b.method === "throw")) return w;
4378
+ b.method = "throw", b.arg = new TypeError("The iterator does not provide a 'throw' method");
4379
4379
  }
4380
- return A;
4380
+ return w;
4381
4381
  }
4382
- var B = m(w, x.iterator, g.arg);
4383
- if (B.type === "throw") return g.method = "throw", g.arg = B.arg, g.delegate = null, A;
4384
- var T = B.arg;
4385
- return T ? T.done ? (g[x.resultName] = T.value, g.next = x.nextLoc, g.method !== "return" && (g.method = "next", g.arg = n), g.delegate = null, A) : T : (g.method = "throw", g.arg = new TypeError("iterator result is not an object"), g.delegate = null, A);
4382
+ var I = g(F, x.iterator, b.arg);
4383
+ if (I.type === "throw") return b.method = "throw", b.arg = I.arg, b.delegate = null, w;
4384
+ var S = I.arg;
4385
+ return S ? S.done ? (b[x.resultName] = S.value, b.next = x.nextLoc, b.method !== "return" && (b.method = "next", b.arg = n), b.delegate = null, w) : S : (b.method = "throw", b.arg = new TypeError("iterator result is not an object"), b.delegate = null, w);
4386
4386
  }
4387
- function O(x) {
4388
- var g = { tryLoc: x[0] };
4389
- 1 in x && (g.catchLoc = x[1]), 2 in x && (g.finallyLoc = x[2], g.afterLoc = x[3]), this.tryEntries.push(g);
4387
+ function P(x) {
4388
+ var b = { tryLoc: x[0] };
4389
+ 1 in x && (b.catchLoc = x[1]), 2 in x && (b.finallyLoc = x[2], b.afterLoc = x[3]), this.tryEntries.push(b);
4390
4390
  }
4391
- function $(x) {
4392
- var g = x.completion || {};
4393
- g.type = "normal", delete g.arg, x.completion = g;
4391
+ function q(x) {
4392
+ var b = x.completion || {};
4393
+ b.type = "normal", delete b.arg, x.completion = b;
4394
4394
  }
4395
- function N(x) {
4396
- this.tryEntries = [{ tryLoc: "root" }], x.forEach(O, this), this.reset(!0);
4395
+ function V(x) {
4396
+ this.tryEntries = [{ tryLoc: "root" }], x.forEach(P, this), this.reset(!0);
4397
4397
  }
4398
- function L(x) {
4398
+ function z(x) {
4399
4399
  if (x) {
4400
- var g = x[i];
4401
- if (g) return g.call(x);
4400
+ var b = x[i];
4401
+ if (b) return b.call(x);
4402
4402
  if (typeof x.next == "function") return x;
4403
4403
  if (!isNaN(x.length)) {
4404
- var w = -1, B = function T() {
4405
- for (; ++w < x.length; ) if (o.call(x, w)) return T.value = x[w], T.done = !1, T;
4406
- return T.value = n, T.done = !0, T;
4404
+ var F = -1, I = function S() {
4405
+ for (; ++F < x.length; ) if (o.call(x, F)) return S.value = x[F], S.done = !1, S;
4406
+ return S.value = n, S.done = !0, S;
4407
4407
  };
4408
- return B.next = B;
4408
+ return I.next = I;
4409
4409
  }
4410
4410
  }
4411
- return { next: M };
4411
+ return { next: B };
4412
4412
  }
4413
- function M() {
4413
+ function B() {
4414
4414
  return { value: n, done: !0 };
4415
4415
  }
4416
4416
  return E.prototype = h, l(D, "constructor", h), l(h, "constructor", E), E.displayName = l(h, s, "GeneratorFunction"), t.isGeneratorFunction = function(x) {
4417
- var g = typeof x == "function" && x.constructor;
4418
- return !!g && (g === E || (g.displayName || g.name) === "GeneratorFunction");
4417
+ var b = typeof x == "function" && x.constructor;
4418
+ return !!b && (b === E || (b.displayName || b.name) === "GeneratorFunction");
4419
4419
  }, t.mark = function(x) {
4420
4420
  return Object.setPrototypeOf ? Object.setPrototypeOf(x, h) : (x.__proto__ = h, l(x, s, "GeneratorFunction")), x.prototype = Object.create(D), x;
4421
4421
  }, t.awrap = function(x) {
4422
4422
  return { __await: x };
4423
- }, I(S.prototype), l(S.prototype, a, (function() {
4423
+ }, N(T.prototype), l(T.prototype, a, (function() {
4424
4424
  return this;
4425
- })), t.AsyncIterator = S, t.async = function(x, g, w, B, T) {
4426
- T === void 0 && (T = Promise);
4427
- var V = new S(f(x, g, w, B), T);
4428
- return t.isGeneratorFunction(g) ? V : V.next().then((function(R) {
4429
- return R.done ? R.value : V.next();
4425
+ })), t.AsyncIterator = T, t.async = function(x, b, F, I, S) {
4426
+ S === void 0 && (S = Promise);
4427
+ var R = new T(f(x, b, F, I), S);
4428
+ return t.isGeneratorFunction(b) ? R : R.next().then((function($) {
4429
+ return $.done ? $.value : R.next();
4430
4430
  }));
4431
- }, I(D), l(D, s, "Generator"), l(D, i, (function() {
4431
+ }, N(D), l(D, s, "Generator"), l(D, i, (function() {
4432
4432
  return this;
4433
4433
  })), l(D, "toString", (function() {
4434
4434
  return "[object Generator]";
4435
4435
  })), t.keys = function(x) {
4436
- var g = [];
4437
- for (var w in x) g.push(w);
4438
- return g.reverse(), function B() {
4439
- for (; g.length; ) {
4440
- var T = g.pop();
4441
- if (T in x) return B.value = T, B.done = !1, B;
4436
+ var b = [];
4437
+ for (var F in x) b.push(F);
4438
+ return b.reverse(), function I() {
4439
+ for (; b.length; ) {
4440
+ var S = b.pop();
4441
+ if (S in x) return I.value = S, I.done = !1, I;
4442
4442
  }
4443
- return B.done = !0, B;
4443
+ return I.done = !0, I;
4444
4444
  };
4445
- }, t.values = L, N.prototype = { constructor: N, reset: function(x) {
4446
- if (this.prev = 0, this.next = 0, this.sent = this._sent = n, this.done = !1, this.delegate = null, this.method = "next", this.arg = n, this.tryEntries.forEach($), !x) for (var g in this) g.charAt(0) === "t" && o.call(this, g) && !isNaN(+g.slice(1)) && (this[g] = n);
4445
+ }, t.values = z, V.prototype = { constructor: V, reset: function(x) {
4446
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = n, this.done = !1, this.delegate = null, this.method = "next", this.arg = n, this.tryEntries.forEach(q), !x) for (var b in this) b.charAt(0) === "t" && o.call(this, b) && !isNaN(+b.slice(1)) && (this[b] = n);
4447
4447
  }, stop: function() {
4448
4448
  this.done = !0;
4449
4449
  var x = this.tryEntries[0].completion;
@@ -4451,60 +4451,60 @@ var hc = { 207: (u, e, t) => {
4451
4451
  return this.rval;
4452
4452
  }, dispatchException: function(x) {
4453
4453
  if (this.done) throw x;
4454
- var g = this;
4455
- function w(J, j) {
4456
- return V.type = "throw", V.arg = x, g.next = J, j && (g.method = "next", g.arg = n), !!j;
4454
+ var b = this;
4455
+ function F(W, M) {
4456
+ return R.type = "throw", R.arg = x, b.next = W, M && (b.method = "next", b.arg = n), !!M;
4457
4457
  }
4458
- for (var B = this.tryEntries.length - 1; B >= 0; --B) {
4459
- var T = this.tryEntries[B], V = T.completion;
4460
- if (T.tryLoc === "root") return w("end");
4461
- if (T.tryLoc <= this.prev) {
4462
- var R = o.call(T, "catchLoc"), Q = o.call(T, "finallyLoc");
4463
- if (R && Q) {
4464
- if (this.prev < T.catchLoc) return w(T.catchLoc, !0);
4465
- if (this.prev < T.finallyLoc) return w(T.finallyLoc);
4466
- } else if (R) {
4467
- if (this.prev < T.catchLoc) return w(T.catchLoc, !0);
4458
+ for (var I = this.tryEntries.length - 1; I >= 0; --I) {
4459
+ var S = this.tryEntries[I], R = S.completion;
4460
+ if (S.tryLoc === "root") return F("end");
4461
+ if (S.tryLoc <= this.prev) {
4462
+ var $ = o.call(S, "catchLoc"), K = o.call(S, "finallyLoc");
4463
+ if ($ && K) {
4464
+ if (this.prev < S.catchLoc) return F(S.catchLoc, !0);
4465
+ if (this.prev < S.finallyLoc) return F(S.finallyLoc);
4466
+ } else if ($) {
4467
+ if (this.prev < S.catchLoc) return F(S.catchLoc, !0);
4468
4468
  } else {
4469
- if (!Q) throw new Error("try statement without catch or finally");
4470
- if (this.prev < T.finallyLoc) return w(T.finallyLoc);
4469
+ if (!K) throw new Error("try statement without catch or finally");
4470
+ if (this.prev < S.finallyLoc) return F(S.finallyLoc);
4471
4471
  }
4472
4472
  }
4473
4473
  }
4474
- }, abrupt: function(x, g) {
4475
- for (var w = this.tryEntries.length - 1; w >= 0; --w) {
4476
- var B = this.tryEntries[w];
4477
- if (B.tryLoc <= this.prev && o.call(B, "finallyLoc") && this.prev < B.finallyLoc) {
4478
- var T = B;
4474
+ }, abrupt: function(x, b) {
4475
+ for (var F = this.tryEntries.length - 1; F >= 0; --F) {
4476
+ var I = this.tryEntries[F];
4477
+ if (I.tryLoc <= this.prev && o.call(I, "finallyLoc") && this.prev < I.finallyLoc) {
4478
+ var S = I;
4479
4479
  break;
4480
4480
  }
4481
4481
  }
4482
- T && (x === "break" || x === "continue") && T.tryLoc <= g && g <= T.finallyLoc && (T = null);
4483
- var V = T ? T.completion : {};
4484
- return V.type = x, V.arg = g, T ? (this.method = "next", this.next = T.finallyLoc, A) : this.complete(V);
4485
- }, complete: function(x, g) {
4482
+ S && (x === "break" || x === "continue") && S.tryLoc <= b && b <= S.finallyLoc && (S = null);
4483
+ var R = S ? S.completion : {};
4484
+ return R.type = x, R.arg = b, S ? (this.method = "next", this.next = S.finallyLoc, w) : this.complete(R);
4485
+ }, complete: function(x, b) {
4486
4486
  if (x.type === "throw") throw x.arg;
4487
- return x.type === "break" || x.type === "continue" ? this.next = x.arg : x.type === "return" ? (this.rval = this.arg = x.arg, this.method = "return", this.next = "end") : x.type === "normal" && g && (this.next = g), A;
4487
+ return x.type === "break" || x.type === "continue" ? this.next = x.arg : x.type === "return" ? (this.rval = this.arg = x.arg, this.method = "return", this.next = "end") : x.type === "normal" && b && (this.next = b), w;
4488
4488
  }, finish: function(x) {
4489
- for (var g = this.tryEntries.length - 1; g >= 0; --g) {
4490
- var w = this.tryEntries[g];
4491
- if (w.finallyLoc === x) return this.complete(w.completion, w.afterLoc), $(w), A;
4489
+ for (var b = this.tryEntries.length - 1; b >= 0; --b) {
4490
+ var F = this.tryEntries[b];
4491
+ if (F.finallyLoc === x) return this.complete(F.completion, F.afterLoc), q(F), w;
4492
4492
  }
4493
4493
  }, catch: function(x) {
4494
- for (var g = this.tryEntries.length - 1; g >= 0; --g) {
4495
- var w = this.tryEntries[g];
4496
- if (w.tryLoc === x) {
4497
- var B = w.completion;
4498
- if (B.type === "throw") {
4499
- var T = B.arg;
4500
- $(w);
4494
+ for (var b = this.tryEntries.length - 1; b >= 0; --b) {
4495
+ var F = this.tryEntries[b];
4496
+ if (F.tryLoc === x) {
4497
+ var I = F.completion;
4498
+ if (I.type === "throw") {
4499
+ var S = I.arg;
4500
+ q(F);
4501
4501
  }
4502
- return T;
4502
+ return S;
4503
4503
  }
4504
4504
  }
4505
4505
  throw new Error("illegal catch attempt");
4506
- }, delegateYield: function(x, g, w) {
4507
- return this.delegate = { iterator: L(x), resultName: g, nextLoc: w }, this.method === "next" && (this.arg = n), A;
4506
+ }, delegateYield: function(x, b, F) {
4507
+ return this.delegate = { iterator: z(x), resultName: b, nextLoc: F }, this.method === "next" && (this.arg = n), w;
4508
4508
  } }, t;
4509
4509
  })(u.exports);
4510
4510
  try {
@@ -4513,18 +4513,18 @@ var hc = { 207: (u, e, t) => {
4513
4513
  typeof globalThis == "object" ? globalThis.regeneratorRuntime = e : Function("r", "regeneratorRuntime = r")(e);
4514
4514
  }
4515
4515
  } }, Ct = {};
4516
- function tu(u) {
4516
+ function nu(u) {
4517
4517
  var e = Ct[u];
4518
4518
  if (e !== void 0) return e.exports;
4519
4519
  var t = Ct[u] = { exports: {} };
4520
- return hc[u](t, t.exports, tu), t.exports;
4520
+ return hc[u](t, t.exports, nu), t.exports;
4521
4521
  }
4522
- tu.n = (u) => {
4522
+ nu.n = (u) => {
4523
4523
  var e = u && u.__esModule ? () => u.default : () => u;
4524
- return tu.d(e, { a: e }), e;
4525
- }, tu.d = (u, e) => {
4526
- for (var t in e) tu.o(e, t) && !tu.o(u, t) && Object.defineProperty(u, t, { enumerable: !0, get: e[t] });
4527
- }, tu.o = (u, e) => Object.prototype.hasOwnProperty.call(u, e);
4524
+ return nu.d(e, { a: e }), e;
4525
+ }, nu.d = (u, e) => {
4526
+ for (var t in e) nu.o(e, t) && !nu.o(u, t) && Object.defineProperty(u, t, { enumerable: !0, get: e[t] });
4527
+ }, nu.o = (u, e) => Object.prototype.hasOwnProperty.call(u, e);
4528
4528
  var p0 = {};
4529
4529
  function Fe(u, e) {
4530
4530
  (e == null || e > u.length) && (e = u.length);
@@ -4551,29 +4551,29 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4551
4551
  function ju(u, e, t) {
4552
4552
  return e in u ? Object.defineProperty(u, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : u[e] = t, u;
4553
4553
  }
4554
- tu.d(p0, { A: () => _c });
4555
- const F = (vt = { Fragment: () => lu.Fragment, computed: () => lu.computed, createTextVNode: () => lu.createTextVNode, createVNode: () => lu.createVNode, defineComponent: () => lu.defineComponent, reactive: () => lu.reactive, ref: () => lu.ref, watch: () => lu.watch, watchEffect: () => lu.watchEffect }, be = {}, tu.d(be, vt), be), pc = (0, F.defineComponent)({ props: { data: { required: !0, type: String }, onClick: Function }, render: function() {
4554
+ nu.d(p0, { A: () => _c });
4555
+ const A = (vt = { Fragment: () => fu.Fragment, computed: () => fu.computed, createTextVNode: () => fu.createTextVNode, createVNode: () => fu.createVNode, defineComponent: () => fu.defineComponent, reactive: () => fu.reactive, ref: () => fu.ref, watch: () => fu.watch, watchEffect: () => fu.watchEffect }, be = {}, nu.d(be, vt), be), pc = (0, A.defineComponent)({ props: { data: { required: !0, type: String }, onClick: Function }, render: function() {
4556
4556
  var u = this.data, e = this.onClick;
4557
- return (0, F.createVNode)("span", { class: "vjs-tree-brackets", onClick: e }, [u]);
4558
- } }), bc = (0, F.defineComponent)({ emits: ["change", "update:modelValue"], props: { checked: { type: Boolean, default: !1 }, isMultiple: Boolean, onChange: Function }, setup: function(u, e) {
4557
+ return (0, A.createVNode)("span", { class: "vjs-tree-brackets", onClick: e }, [u]);
4558
+ } }), bc = (0, A.defineComponent)({ emits: ["change", "update:modelValue"], props: { checked: { type: Boolean, default: !1 }, isMultiple: Boolean, onChange: Function }, setup: function(u, e) {
4559
4559
  var t = e.emit;
4560
- return { uiType: (0, F.computed)((function() {
4560
+ return { uiType: (0, A.computed)((function() {
4561
4561
  return u.isMultiple ? "checkbox" : "radio";
4562
- })), model: (0, F.computed)({ get: function() {
4562
+ })), model: (0, A.computed)({ get: function() {
4563
4563
  return u.checked;
4564
4564
  }, set: function(n) {
4565
4565
  return t("update:modelValue", n);
4566
4566
  } }) };
4567
4567
  }, render: function() {
4568
4568
  var u = this.uiType, e = this.model, t = this.$emit;
4569
- return (0, F.createVNode)("label", { class: ["vjs-check-controller", e ? "is-checked" : ""], onClick: function(n) {
4569
+ return (0, A.createVNode)("label", { class: ["vjs-check-controller", e ? "is-checked" : ""], onClick: function(n) {
4570
4570
  return n.stopPropagation();
4571
- } }, [(0, F.createVNode)("span", { class: "vjs-check-controller-inner is-".concat(u) }, null), (0, F.createVNode)("input", { checked: e, class: "vjs-check-controller-original is-".concat(u), type: u, onChange: function() {
4571
+ } }, [(0, A.createVNode)("span", { class: "vjs-check-controller-inner is-".concat(u) }, null), (0, A.createVNode)("input", { checked: e, class: "vjs-check-controller-original is-".concat(u), type: u, onChange: function() {
4572
4572
  return t("change", e);
4573
4573
  } }, null)]);
4574
- } }), mc = (0, F.defineComponent)({ props: { nodeType: { required: !0, type: String }, onClick: Function }, render: function() {
4574
+ } }), mc = (0, A.defineComponent)({ props: { nodeType: { required: !0, type: String }, onClick: Function }, render: function() {
4575
4575
  var u = this.nodeType, e = this.onClick, t = u === "objectStart" || u === "arrayStart";
4576
- return t || u === "objectCollapsed" || u === "arrayCollapsed" ? (0, F.createVNode)("span", { class: "vjs-carets vjs-carets-".concat(t ? "open" : "close"), onClick: e }, [(0, F.createVNode)("svg", { viewBox: "0 0 1024 1024", focusable: "false", "data-icon": "caret-down", width: "1em", height: "1em", fill: "currentColor", "aria-hidden": "true" }, [(0, F.createVNode)("path", { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" }, null)])]) : null;
4576
+ return t || u === "objectCollapsed" || u === "arrayCollapsed" ? (0, A.createVNode)("span", { class: "vjs-carets vjs-carets-".concat(t ? "open" : "close"), onClick: e }, [(0, A.createVNode)("svg", { viewBox: "0 0 1024 1024", focusable: "false", "data-icon": "caret-down", width: "1em", height: "1em", fill: "currentColor", "aria-hidden": "true" }, [(0, A.createVNode)("path", { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" }, null)])]) : null;
4577
4577
  } });
4578
4578
  var vt, be;
4579
4579
  function Ae(u) {
@@ -4586,19 +4586,19 @@ function Ae(u) {
4586
4586
  function m0(u) {
4587
4587
  return Object.prototype.toString.call(u).slice(8, -1).toLowerCase();
4588
4588
  }
4589
- function gu(u) {
4590
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "root", t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, n = (arguments.length > 3 ? arguments[3] : void 0) || {}, r = n.key, o = n.index, c = n.type, i = c === void 0 ? "content" : c, a = n.showComma, s = a !== void 0 && a, l = n.length, f = l === void 0 ? 1 : l, m = m0(u);
4591
- if (m === "array") {
4592
- var p = Dt(u.map((function(k, A, v) {
4593
- return gu(k, "".concat(e, "[").concat(A, "]"), t + 1, { index: A, showComma: A !== v.length - 1, length: f, type: i });
4589
+ function _u(u) {
4590
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "root", t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, n = (arguments.length > 3 ? arguments[3] : void 0) || {}, r = n.key, o = n.index, c = n.type, i = c === void 0 ? "content" : c, a = n.showComma, s = a !== void 0 && a, l = n.length, f = l === void 0 ? 1 : l, g = m0(u);
4591
+ if (g === "array") {
4592
+ var p = Dt(u.map((function(k, w, v) {
4593
+ return _u(k, "".concat(e, "[").concat(w, "]"), t + 1, { index: w, showComma: w !== v.length - 1, length: f, type: i });
4594
4594
  })));
4595
- return [gu("[", e, t, { showComma: !1, key: r, length: u.length, type: "arrayStart" })[0]].concat(p, gu("]", e, t, { showComma: s, length: u.length, type: "arrayEnd" })[0]);
4595
+ return [_u("[", e, t, { showComma: !1, key: r, length: u.length, type: "arrayStart" })[0]].concat(p, _u("]", e, t, { showComma: s, length: u.length, type: "arrayEnd" })[0]);
4596
4596
  }
4597
- if (m === "object") {
4598
- var d = Object.keys(u), C = Dt(d.map((function(k, A, v) {
4599
- return gu(u[k], /^[a-zA-Z_]\w*$/.test(k) ? "".concat(e, ".").concat(k) : "".concat(e, '["').concat(k, '"]'), t + 1, { key: k, showComma: A !== v.length - 1, length: f, type: i });
4597
+ if (g === "object") {
4598
+ var d = Object.keys(u), C = Dt(d.map((function(k, w, v) {
4599
+ return _u(u[k], /^[a-zA-Z_]\w*$/.test(k) ? "".concat(e, ".").concat(k) : "".concat(e, '["').concat(k, '"]'), t + 1, { key: k, showComma: w !== v.length - 1, length: f, type: i });
4600
4600
  })));
4601
- return [gu("{", e, t, { showComma: !1, key: r, index: o, length: d.length, type: "objectStart" })[0]].concat(C, gu("}", e, t, { showComma: s, length: d.length, type: "objectEnd" })[0]);
4601
+ return [_u("{", e, t, { showComma: !1, key: r, index: o, length: d.length, type: "objectStart" })[0]].concat(C, _u("}", e, t, { showComma: s, length: d.length, type: "objectEnd" })[0]);
4602
4602
  }
4603
4603
  return [{ content: u, level: t, key: r, index: o, path: e, showComma: s, length: f, type: i }];
4604
4604
  }
@@ -4635,7 +4635,7 @@ function Et(u, e, t, n, r, o, c) {
4635
4635
  }
4636
4636
  i.done ? e(a) : Promise.resolve(a).then(n, r);
4637
4637
  }
4638
- var xc = tu(207), Ft = tu.n(xc);
4638
+ var xc = nu(207), Ft = nu.n(xc);
4639
4639
  function At(u, e) {
4640
4640
  var t = Object.keys(u);
4641
4641
  if (Object.getOwnPropertySymbols) {
@@ -4660,28 +4660,28 @@ function wt(u) {
4660
4660
  var x0 = { data: { type: [String, Number, Boolean, Array, Object], default: null }, rootPath: { type: String, default: "root" }, indent: { type: Number, default: 2 }, showLength: { type: Boolean, default: !1 }, showDoubleQuotes: { type: Boolean, default: !0 }, renderNodeKey: Function, renderNodeValue: Function, renderNodeActions: { type: [Boolean, Function], default: void 0 }, selectableType: String, showSelectController: { type: Boolean, default: !1 }, showLine: { type: Boolean, default: !0 }, showLineNumber: { type: Boolean, default: !1 }, selectOnClickNode: { type: Boolean, default: !0 }, nodeSelectable: { type: Function, default: function() {
4661
4661
  return !0;
4662
4662
  } }, highlightSelectedNode: { type: Boolean, default: !0 }, showIcon: { type: Boolean, default: !1 }, theme: { type: String, default: "light" }, showKeyValueSpace: { type: Boolean, default: !0 }, editable: { type: Boolean, default: !1 }, editableTrigger: { type: String, default: "click" }, onNodeClick: { type: Function }, onNodeMouseover: { type: Function }, onBracketsClick: { type: Function }, onIconClick: { type: Function }, onValueChange: { type: Function } };
4663
- const gc = (0, F.defineComponent)({ name: "TreeNode", props: wt(wt({}, x0), {}, { node: { type: Object, required: !0 }, collapsed: Boolean, checked: Boolean, style: Object, onSelectedChange: { type: Function } }), emits: ["nodeClick", "nodeMouseover", "bracketsClick", "iconClick", "selectedChange", "valueChange"], setup: function(u, e) {
4664
- var t = e.emit, n = (0, F.computed)((function() {
4663
+ const gc = (0, A.defineComponent)({ name: "TreeNode", props: wt(wt({}, x0), {}, { node: { type: Object, required: !0 }, collapsed: Boolean, checked: Boolean, style: Object, onSelectedChange: { type: Function } }), emits: ["nodeClick", "nodeMouseover", "bracketsClick", "iconClick", "selectedChange", "valueChange"], setup: function(u, e) {
4664
+ var t = e.emit, n = (0, A.computed)((function() {
4665
4665
  return m0(u.node.content);
4666
- })), r = (0, F.computed)((function() {
4666
+ })), r = (0, A.computed)((function() {
4667
4667
  return "vjs-value vjs-value-".concat(n.value);
4668
- })), o = (0, F.computed)((function() {
4668
+ })), o = (0, A.computed)((function() {
4669
4669
  return u.showDoubleQuotes ? '"'.concat(u.node.key, '"') : u.node.key;
4670
- })), c = (0, F.computed)((function() {
4670
+ })), c = (0, A.computed)((function() {
4671
4671
  return u.selectableType === "multiple";
4672
- })), i = (0, F.computed)((function() {
4672
+ })), i = (0, A.computed)((function() {
4673
4673
  return u.selectableType === "single";
4674
- })), a = (0, F.computed)((function() {
4674
+ })), a = (0, A.computed)((function() {
4675
4675
  return u.nodeSelectable(u.node) && (c.value || i.value);
4676
- })), s = (0, F.reactive)({ editing: !1 }), l = function(b) {
4677
- var _, D, I = (D = (_ = b.target) === null || _ === void 0 ? void 0 : _.value) === "null" ? null : D === "undefined" ? void 0 : D === "true" || D !== "false" && (D[0] + D[D.length - 1] === '""' || D[0] + D[D.length - 1] === "''" ? D.slice(1, -1) : typeof Number(D) == "number" && !isNaN(Number(D)) || D === "NaN" ? Number(D) : D);
4678
- t("valueChange", I, u.node.path);
4679
- }, f = (0, F.computed)((function() {
4680
- var b, _ = (b = u.node) === null || b === void 0 ? void 0 : b.content;
4676
+ })), s = (0, A.reactive)({ editing: !1 }), l = function(m) {
4677
+ var _, D, N = (D = (_ = m.target) === null || _ === void 0 ? void 0 : _.value) === "null" ? null : D === "undefined" ? void 0 : D === "true" || D !== "false" && (D[0] + D[D.length - 1] === '""' || D[0] + D[D.length - 1] === "''" ? D.slice(1, -1) : typeof Number(D) == "number" && !isNaN(Number(D)) || D === "NaN" ? Number(D) : D);
4678
+ t("valueChange", N, u.node.path);
4679
+ }, f = (0, A.computed)((function() {
4680
+ var m, _ = (m = u.node) === null || m === void 0 ? void 0 : m.content;
4681
4681
  return _ === null ? _ = "null" : _ === void 0 && (_ = "undefined"), n.value === "string" ? '"'.concat(_, '"') : _ + "";
4682
- })), m = function() {
4683
- var b = u.renderNodeValue;
4684
- return b ? b({ node: u.node, defaultValue: f.value }) : f.value;
4682
+ })), g = function() {
4683
+ var m = u.renderNodeValue;
4684
+ return m ? m({ node: u.node, defaultValue: f.value }) : f.value;
4685
4685
  }, p = function() {
4686
4686
  t("bracketsClick", !u.collapsed, u.node);
4687
4687
  }, d = function() {
@@ -4690,70 +4690,70 @@ const gc = (0, F.defineComponent)({ name: "TreeNode", props: wt(wt({}, x0), {},
4690
4690
  t("selectedChange", u.node);
4691
4691
  }, k = function() {
4692
4692
  t("nodeClick", u.node), a.value && u.selectOnClickNode && t("selectedChange", u.node);
4693
- }, A = function() {
4693
+ }, w = function() {
4694
4694
  t("nodeMouseover", u.node);
4695
- }, v = function(b) {
4695
+ }, v = function(m) {
4696
4696
  if (u.editable && !s.editing) {
4697
4697
  s.editing = !0;
4698
- var _ = function D(I) {
4699
- var S;
4700
- I.target !== b.target && ((S = I.target) === null || S === void 0 ? void 0 : S.parentElement) !== b.target && (s.editing = !1, document.removeEventListener("click", D));
4698
+ var _ = function D(N) {
4699
+ var T;
4700
+ N.target !== m.target && ((T = N.target) === null || T === void 0 ? void 0 : T.parentElement) !== m.target && (s.editing = !1, document.removeEventListener("click", D));
4701
4701
  };
4702
4702
  document.removeEventListener("click", _), document.addEventListener("click", _);
4703
4703
  }
4704
4704
  }, E = (function() {
4705
- var b = (0, F.ref)(!1), _ = (function() {
4706
- var D, I = (D = Ft().mark((function S(q) {
4707
- return Ft().wrap((function(O) {
4708
- for (; ; ) switch (O.prev = O.next) {
4705
+ var m = (0, A.ref)(!1), _ = (function() {
4706
+ var D, N = (D = Ft().mark((function T(O) {
4707
+ return Ft().wrap((function(P) {
4708
+ for (; ; ) switch (P.prev = P.next) {
4709
4709
  case 0:
4710
- return O.prev = 0, O.next = 3, navigator.clipboard.writeText(q);
4710
+ return P.prev = 0, P.next = 3, navigator.clipboard.writeText(O);
4711
4711
  case 3:
4712
- b.value = !0, setTimeout((function() {
4713
- b.value = !1;
4714
- }), 300), O.next = 10;
4712
+ m.value = !0, setTimeout((function() {
4713
+ m.value = !1;
4714
+ }), 300), P.next = 10;
4715
4715
  break;
4716
4716
  case 7:
4717
- O.prev = 7, O.t0 = O.catch(0), console.error("[vue-json-pretty] Copy failed: ", O.t0);
4717
+ P.prev = 7, P.t0 = P.catch(0), console.error("[vue-json-pretty] Copy failed: ", P.t0);
4718
4718
  case 10:
4719
4719
  case "end":
4720
- return O.stop();
4720
+ return P.stop();
4721
4721
  }
4722
- }), S, null, [[0, 7]]);
4722
+ }), T, null, [[0, 7]]);
4723
4723
  })), function() {
4724
- var S = this, q = arguments;
4725
- return new Promise((function(O, $) {
4726
- var N = D.apply(S, q);
4727
- function L(x) {
4728
- Et(N, O, $, L, M, "next", x);
4724
+ var T = this, O = arguments;
4725
+ return new Promise((function(P, q) {
4726
+ var V = D.apply(T, O);
4727
+ function z(x) {
4728
+ Et(V, P, q, z, B, "next", x);
4729
4729
  }
4730
- function M(x) {
4731
- Et(N, O, $, L, M, "throw", x);
4730
+ function B(x) {
4731
+ Et(V, P, q, z, B, "throw", x);
4732
4732
  }
4733
- L(void 0);
4733
+ z(void 0);
4734
4734
  }));
4735
4735
  });
4736
- return function(S) {
4737
- return I.apply(this, arguments);
4736
+ return function(T) {
4737
+ return N.apply(this, arguments);
4738
4738
  };
4739
4739
  })();
4740
4740
  return { copy: _ };
4741
4741
  })().copy, h = function() {
4742
- var b = u.node, _ = b.key, D = b.path, I = u.rootPath, S = new Function("data", "return data".concat(D.slice(I.length)))(u.data), q = JSON.stringify(_ ? ju({}, _, S) : S, null, 2);
4743
- E(q);
4742
+ var m = u.node, _ = m.key, D = m.path, N = u.rootPath, T = new Function("data", "return data".concat(D.slice(N.length)))(u.data), O = JSON.stringify(_ ? ju({}, _, T) : T, null, 2);
4743
+ E(O);
4744
4744
  }, y = function() {
4745
- var b = u.renderNodeActions;
4746
- if (!b) return null;
4745
+ var m = u.renderNodeActions;
4746
+ if (!m) return null;
4747
4747
  var _ = { copy: h };
4748
- return typeof b == "function" ? b({ node: u.node, defaultActions: _ }) : (0, F.createVNode)("span", { onClick: h, class: "vjs-tree-node-actions-item" }, [(0, F.createTextVNode)("copy")]);
4748
+ return typeof m == "function" ? m({ node: u.node, defaultActions: _ }) : (0, A.createVNode)("span", { onClick: h, class: "vjs-tree-node-actions-item" }, [(0, A.createTextVNode)("copy")]);
4749
4749
  };
4750
4750
  return function() {
4751
- var b, _ = u.node;
4752
- return (0, F.createVNode)("div", { class: { "vjs-tree-node": !0, "has-selector": u.showSelectController, "has-carets": u.showIcon, "is-highlight": u.highlightSelectedNode && u.checked, dark: u.theme === "dark" }, onClick: k, onMouseover: A, style: u.style }, [u.showLineNumber && (0, F.createVNode)("span", { class: "vjs-node-index" }, [_.id + 1]), u.showSelectController && a.value && _.type !== "objectEnd" && _.type !== "arrayEnd" && (0, F.createVNode)(bc, { isMultiple: c.value, checked: u.checked, onChange: C }, null), (0, F.createVNode)("div", { class: "vjs-indent" }, [Array.from(Array(_.level)).map((function(D, I) {
4753
- return (0, F.createVNode)("div", { key: I, class: { "vjs-indent-unit": !0, "has-line": u.showLine } }, [Array.from(Array(u.indent)).map((function() {
4754
- return (0, F.createVNode)(F.Fragment, null, [(0, F.createTextVNode)(" ")]);
4751
+ var m, _ = u.node;
4752
+ return (0, A.createVNode)("div", { class: { "vjs-tree-node": !0, "has-selector": u.showSelectController, "has-carets": u.showIcon, "is-highlight": u.highlightSelectedNode && u.checked, dark: u.theme === "dark" }, onClick: k, onMouseover: w, style: u.style }, [u.showLineNumber && (0, A.createVNode)("span", { class: "vjs-node-index" }, [_.id + 1]), u.showSelectController && a.value && _.type !== "objectEnd" && _.type !== "arrayEnd" && (0, A.createVNode)(bc, { isMultiple: c.value, checked: u.checked, onChange: C }, null), (0, A.createVNode)("div", { class: "vjs-indent" }, [Array.from(Array(_.level)).map((function(D, N) {
4753
+ return (0, A.createVNode)("div", { key: N, class: { "vjs-indent-unit": !0, "has-line": u.showLine } }, [Array.from(Array(u.indent)).map((function() {
4754
+ return (0, A.createVNode)(A.Fragment, null, [(0, A.createTextVNode)(" ")]);
4755
4755
  }))]);
4756
- })), u.showIcon && (0, F.createVNode)(mc, { nodeType: _.type, onClick: d }, null)]), _.key && (0, F.createVNode)("span", { class: "vjs-key" }, [(b = u.renderNodeKey, b ? b({ node: u.node, defaultKey: o.value || "" }) : o.value), (0, F.createVNode)("span", { class: "vjs-colon" }, [":".concat(u.showKeyValueSpace ? " " : "")])]), (0, F.createVNode)("span", null, [_.type !== "content" && _.content ? (0, F.createVNode)(pc, { data: _.content.toString(), onClick: p }, null) : (0, F.createVNode)("span", { class: r.value, onClick: !u.editable || u.editableTrigger && u.editableTrigger !== "click" ? void 0 : v, onDblclick: u.editable && u.editableTrigger === "dblclick" ? v : void 0 }, [u.editable && s.editing ? (0, F.createVNode)("input", { value: f.value, onChange: l, style: { padding: "3px 8px", border: "1px solid #eee", boxShadow: "none", boxSizing: "border-box", borderRadius: 5, fontFamily: "inherit" } }, null) : m()]), _.showComma && (0, F.createVNode)("span", null, [","]), u.showLength && u.collapsed && (0, F.createVNode)("span", { class: "vjs-comment" }, [(0, F.createTextVNode)(" // "), _.length, (0, F.createTextVNode)(" items ")])]), u.renderNodeActions && (0, F.createVNode)("span", { class: "vjs-tree-node-actions" }, [y()])]);
4756
+ })), u.showIcon && (0, A.createVNode)(mc, { nodeType: _.type, onClick: d }, null)]), _.key && (0, A.createVNode)("span", { class: "vjs-key" }, [(m = u.renderNodeKey, m ? m({ node: u.node, defaultKey: o.value || "" }) : o.value), (0, A.createVNode)("span", { class: "vjs-colon" }, [":".concat(u.showKeyValueSpace ? " " : "")])]), (0, A.createVNode)("span", null, [_.type !== "content" && _.content ? (0, A.createVNode)(pc, { data: _.content.toString(), onClick: p }, null) : (0, A.createVNode)("span", { class: r.value, onClick: !u.editable || u.editableTrigger && u.editableTrigger !== "click" ? void 0 : v, onDblclick: u.editable && u.editableTrigger === "dblclick" ? v : void 0 }, [u.editable && s.editing ? (0, A.createVNode)("input", { value: f.value, onChange: l, style: { padding: "3px 8px", border: "1px solid #eee", boxShadow: "none", boxSizing: "border-box", borderRadius: 5, fontFamily: "inherit" } }, null) : g()]), _.showComma && (0, A.createVNode)("span", null, [","]), u.showLength && u.collapsed && (0, A.createVNode)("span", { class: "vjs-comment" }, [(0, A.createTextVNode)(" // "), _.length, (0, A.createTextVNode)(" items ")])]), u.renderNodeActions && (0, A.createVNode)("span", { class: "vjs-tree-node-actions" }, [y()])]);
4757
4757
  };
4758
4758
  } });
4759
4759
  function St(u, e) {
@@ -4766,7 +4766,7 @@ function St(u, e) {
4766
4766
  }
4767
4767
  return t;
4768
4768
  }
4769
- function Y(u) {
4769
+ function X(u) {
4770
4770
  for (var e = 1; e < arguments.length; e++) {
4771
4771
  var t = arguments[e] != null ? arguments[e] : {};
4772
4772
  e % 2 ? St(Object(t), !0).forEach((function(n) {
@@ -4777,26 +4777,26 @@ function Y(u) {
4777
4777
  }
4778
4778
  return u;
4779
4779
  }
4780
- const _c = (0, F.defineComponent)({ name: "Tree", props: Y(Y({}, x0), {}, { collapsedNodeLength: { type: Number, default: 1 / 0 }, deep: { type: Number, default: 1 / 0 }, pathCollapsible: { type: Function, default: function() {
4780
+ const _c = (0, A.defineComponent)({ name: "Tree", props: X(X({}, x0), {}, { collapsedNodeLength: { type: Number, default: 1 / 0 }, deep: { type: Number, default: 1 / 0 }, pathCollapsible: { type: Function, default: function() {
4781
4781
  return !1;
4782
4782
  } }, virtual: { type: Boolean, default: !1 }, height: { type: Number, default: 400 }, itemHeight: { type: Number, default: 20 }, selectedValue: { type: [String, Array], default: function() {
4783
4783
  return "";
4784
4784
  } }, collapsedOnClickBrackets: { type: Boolean, default: !0 }, style: Object, onSelectedChange: { type: Function }, theme: { type: String, default: "light" } }), slots: ["renderNodeKey", "renderNodeValue", "renderNodeActions"], emits: ["nodeClick", "nodeMouseover", "bracketsClick", "iconClick", "selectedChange", "update:selectedValue", "update:data"], setup: function(u, e) {
4785
- var t = e.emit, n = e.slots, r = (0, F.ref)(), o = (0, F.computed)((function() {
4786
- return gu(u.data, u.rootPath);
4785
+ var t = e.emit, n = e.slots, r = (0, A.ref)(), o = (0, A.computed)((function() {
4786
+ return _u(u.data, u.rootPath);
4787
4787
  })), c = function(h, y) {
4788
- return o.value.reduce((function(b, _) {
4789
- var D, I = _.level >= h || _.length >= y, S = (D = u.pathCollapsible) === null || D === void 0 ? void 0 : D.call(u, _);
4790
- return _.type !== "objectStart" && _.type !== "arrayStart" || !I && !S ? b : Y(Y({}, b), {}, ju({}, _.path, 1));
4788
+ return o.value.reduce((function(m, _) {
4789
+ var D, N = _.level >= h || _.length >= y, T = (D = u.pathCollapsible) === null || D === void 0 ? void 0 : D.call(u, _);
4790
+ return _.type !== "objectStart" && _.type !== "arrayStart" || !N && !T ? m : X(X({}, m), {}, ju({}, _.path, 1));
4791
4791
  }), {});
4792
- }, i = (0, F.reactive)({ translateY: 0, visibleData: null, hiddenPaths: c(u.deep, u.collapsedNodeLength) }), a = (0, F.computed)((function() {
4793
- for (var h = null, y = [], b = o.value.length, _ = 0; _ < b; _++) {
4794
- var D = Y(Y({}, o.value[_]), {}, { id: _ }), I = i.hiddenPaths[D.path];
4792
+ }, i = (0, A.reactive)({ translateY: 0, visibleData: null, hiddenPaths: c(u.deep, u.collapsedNodeLength) }), a = (0, A.computed)((function() {
4793
+ for (var h = null, y = [], m = o.value.length, _ = 0; _ < m; _++) {
4794
+ var D = X(X({}, o.value[_]), {}, { id: _ }), N = i.hiddenPaths[D.path];
4795
4795
  if (h && h.path === D.path) {
4796
- var S = h.type === "objectStart", q = Y(Y(Y({}, D), h), {}, { showComma: D.showComma, content: S ? "{...}" : "[...]", type: S ? "objectCollapsed" : "arrayCollapsed" });
4797
- h = null, y.push(q);
4796
+ var T = h.type === "objectStart", O = X(X(X({}, D), h), {}, { showComma: D.showComma, content: T ? "{...}" : "[...]", type: T ? "objectCollapsed" : "arrayCollapsed" });
4797
+ h = null, y.push(O);
4798
4798
  } else {
4799
- if (I && !h) {
4799
+ if (N && !h) {
4800
4800
  h = D;
4801
4801
  continue;
4802
4802
  }
@@ -4805,97 +4805,97 @@ const _c = (0, F.defineComponent)({ name: "Tree", props: Y(Y({}, x0), {}, { coll
4805
4805
  }
4806
4806
  }
4807
4807
  return y;
4808
- })), s = (0, F.computed)((function() {
4808
+ })), s = (0, A.computed)((function() {
4809
4809
  var h = u.selectedValue;
4810
4810
  return h && u.selectableType === "multiple" && Array.isArray(h) ? h : [h];
4811
- })), l = (0, F.computed)((function() {
4811
+ })), l = (0, A.computed)((function() {
4812
4812
  return !u.selectableType || u.selectOnClickNode || u.showSelectController ? "" : "When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail.";
4813
4813
  })), f = function() {
4814
4814
  var h = a.value;
4815
4815
  if (u.virtual) {
4816
- var y, b = u.height / u.itemHeight, _ = ((y = r.value) === null || y === void 0 ? void 0 : y.scrollTop) || 0, D = Math.floor(_ / u.itemHeight), I = D < 0 ? 0 : D + b > h.length ? h.length - b : D;
4817
- I < 0 && (I = 0);
4818
- var S = I + b;
4819
- i.translateY = I * u.itemHeight, i.visibleData = h.filter((function(q, O) {
4820
- return O >= I && O < S;
4816
+ var y, m = u.height / u.itemHeight, _ = ((y = r.value) === null || y === void 0 ? void 0 : y.scrollTop) || 0, D = Math.floor(_ / u.itemHeight), N = D < 0 ? 0 : D + m > h.length ? h.length - m : D;
4817
+ N < 0 && (N = 0);
4818
+ var T = N + m;
4819
+ i.translateY = N * u.itemHeight, i.visibleData = h.filter((function(O, P) {
4820
+ return P >= N && P < T;
4821
4821
  }));
4822
4822
  } else i.visibleData = h;
4823
- }, m = function() {
4823
+ }, g = function() {
4824
4824
  f();
4825
4825
  }, p = function(h) {
4826
- var y, b, _ = h.path, D = u.selectableType;
4826
+ var y, m, _ = h.path, D = u.selectableType;
4827
4827
  if (D === "multiple") {
4828
- var I = s.value.findIndex((function($) {
4829
- return $ === _;
4830
- })), S = Yu(s.value);
4831
- I !== -1 ? S.splice(I, 1) : S.push(_), t("update:selectedValue", S), t("selectedChange", S, Yu(s.value));
4828
+ var N = s.value.findIndex((function(q) {
4829
+ return q === _;
4830
+ })), T = Yu(s.value);
4831
+ N !== -1 ? T.splice(N, 1) : T.push(_), t("update:selectedValue", T), t("selectedChange", T, Yu(s.value));
4832
4832
  } else if (D === "single" && s.value[0] !== _) {
4833
- var q = (y = s.value, b = 1, (function($) {
4834
- if (Array.isArray($)) return $;
4835
- })(y) || (function($, N) {
4836
- var L = $ == null ? null : typeof Symbol < "u" && $[Symbol.iterator] || $["@@iterator"];
4837
- if (L != null) {
4838
- var M, x, g = [], w = !0, B = !1;
4833
+ var O = (y = s.value, m = 1, (function(q) {
4834
+ if (Array.isArray(q)) return q;
4835
+ })(y) || (function(q, V) {
4836
+ var z = q == null ? null : typeof Symbol < "u" && q[Symbol.iterator] || q["@@iterator"];
4837
+ if (z != null) {
4838
+ var B, x, b = [], F = !0, I = !1;
4839
4839
  try {
4840
- for (L = L.call($); !(w = (M = L.next()).done) && (g.push(M.value), !N || g.length !== N); w = !0) ;
4841
- } catch (T) {
4842
- B = !0, x = T;
4840
+ for (z = z.call(q); !(F = (B = z.next()).done) && (b.push(B.value), !V || b.length !== V); F = !0) ;
4841
+ } catch (S) {
4842
+ I = !0, x = S;
4843
4843
  } finally {
4844
4844
  try {
4845
- w || L.return == null || L.return();
4845
+ F || z.return == null || z.return();
4846
4846
  } finally {
4847
- if (B) throw x;
4847
+ if (I) throw x;
4848
4848
  }
4849
4849
  }
4850
- return g;
4850
+ return b;
4851
4851
  }
4852
- })(y, b) || b0(y, b) || (function() {
4852
+ })(y, m) || b0(y, m) || (function() {
4853
4853
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4854
4854
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
4855
- })())[0], O = _;
4856
- t("update:selectedValue", O), t("selectedChange", O, q);
4855
+ })())[0], P = _;
4856
+ t("update:selectedValue", P), t("selectedChange", P, O);
4857
4857
  }
4858
4858
  }, d = function(h) {
4859
4859
  t("nodeClick", h);
4860
4860
  }, C = function(h) {
4861
4861
  t("nodeMouseover", h);
4862
4862
  }, k = function(h, y) {
4863
- if (h) i.hiddenPaths = Y(Y({}, i.hiddenPaths), {}, ju({}, y, 1));
4863
+ if (h) i.hiddenPaths = X(X({}, i.hiddenPaths), {}, ju({}, y, 1));
4864
4864
  else {
4865
- var b = Y({}, i.hiddenPaths);
4866
- delete b[y], i.hiddenPaths = b;
4865
+ var m = X({}, i.hiddenPaths);
4866
+ delete m[y], i.hiddenPaths = m;
4867
4867
  }
4868
- }, A = function(h, y) {
4868
+ }, w = function(h, y) {
4869
4869
  u.collapsedOnClickBrackets && k(h, y.path), t("bracketsClick", h, y);
4870
4870
  }, v = function(h, y) {
4871
4871
  k(h, y.path), t("iconClick", h, y);
4872
4872
  }, E = function(h, y) {
4873
- var b = we(u.data), _ = u.rootPath;
4874
- new Function("data", "val", "data".concat(y.slice(_.length), "=val"))(b, h), t("update:data", b);
4873
+ var m = we(u.data), _ = u.rootPath;
4874
+ new Function("data", "val", "data".concat(y.slice(_.length), "=val"))(m, h), t("update:data", m);
4875
4875
  };
4876
- return (0, F.watchEffect)((function() {
4876
+ return (0, A.watchEffect)((function() {
4877
4877
  l.value && (function(h) {
4878
4878
  throw new Error("[VueJSONPretty] ".concat(h));
4879
4879
  })(l.value);
4880
- })), (0, F.watchEffect)((function() {
4880
+ })), (0, A.watchEffect)((function() {
4881
4881
  a.value && f();
4882
- })), (0, F.watch)((function() {
4882
+ })), (0, A.watch)((function() {
4883
4883
  return u.deep;
4884
4884
  }), (function(h) {
4885
4885
  h && (i.hiddenPaths = c(h, u.collapsedNodeLength));
4886
- })), (0, F.watch)((function() {
4886
+ })), (0, A.watch)((function() {
4887
4887
  return u.collapsedNodeLength;
4888
4888
  }), (function(h) {
4889
4889
  h && (i.hiddenPaths = c(u.deep, h));
4890
4890
  })), function() {
4891
- var h, y, b, _, D = (h = u.renderNodeKey) !== null && h !== void 0 ? h : n.renderNodeKey, I = (y = u.renderNodeValue) !== null && y !== void 0 ? y : n.renderNodeValue, S = (b = (_ = u.renderNodeActions) !== null && _ !== void 0 ? _ : n.renderNodeActions) !== null && b !== void 0 && b, q = i.visibleData && i.visibleData.map((function(O) {
4892
- return (0, F.createVNode)(gc, { key: O.id, data: u.data, rootPath: u.rootPath, indent: u.indent, node: O, collapsed: !!i.hiddenPaths[O.path], theme: u.theme, showDoubleQuotes: u.showDoubleQuotes, showLength: u.showLength, checked: s.value.includes(O.path), selectableType: u.selectableType, showLine: u.showLine, showLineNumber: u.showLineNumber, showSelectController: u.showSelectController, selectOnClickNode: u.selectOnClickNode, nodeSelectable: u.nodeSelectable, highlightSelectedNode: u.highlightSelectedNode, editable: u.editable, editableTrigger: u.editableTrigger, showIcon: u.showIcon, showKeyValueSpace: u.showKeyValueSpace, renderNodeKey: D, renderNodeValue: I, renderNodeActions: S, onNodeClick: d, onNodeMouseover: C, onBracketsClick: A, onIconClick: v, onSelectedChange: p, onValueChange: E, style: u.itemHeight && u.itemHeight !== 20 ? { lineHeight: "".concat(u.itemHeight, "px") } : {} }, null);
4891
+ var h, y, m, _, D = (h = u.renderNodeKey) !== null && h !== void 0 ? h : n.renderNodeKey, N = (y = u.renderNodeValue) !== null && y !== void 0 ? y : n.renderNodeValue, T = (m = (_ = u.renderNodeActions) !== null && _ !== void 0 ? _ : n.renderNodeActions) !== null && m !== void 0 && m, O = i.visibleData && i.visibleData.map((function(P) {
4892
+ return (0, A.createVNode)(gc, { key: P.id, data: u.data, rootPath: u.rootPath, indent: u.indent, node: P, collapsed: !!i.hiddenPaths[P.path], theme: u.theme, showDoubleQuotes: u.showDoubleQuotes, showLength: u.showLength, checked: s.value.includes(P.path), selectableType: u.selectableType, showLine: u.showLine, showLineNumber: u.showLineNumber, showSelectController: u.showSelectController, selectOnClickNode: u.selectOnClickNode, nodeSelectable: u.nodeSelectable, highlightSelectedNode: u.highlightSelectedNode, editable: u.editable, editableTrigger: u.editableTrigger, showIcon: u.showIcon, showKeyValueSpace: u.showKeyValueSpace, renderNodeKey: D, renderNodeValue: N, renderNodeActions: T, onNodeClick: d, onNodeMouseover: C, onBracketsClick: w, onIconClick: v, onSelectedChange: p, onValueChange: E, style: u.itemHeight && u.itemHeight !== 20 ? { lineHeight: "".concat(u.itemHeight, "px") } : {} }, null);
4893
4893
  }));
4894
- return (0, F.createVNode)("div", { ref: r, class: { "vjs-tree": !0, "is-virtual": u.virtual, dark: u.theme === "dark" }, onScroll: u.virtual ? m : void 0, style: u.showLineNumber ? Y({ paddingLeft: "".concat(12 * Number(o.value.length.toString().length), "px") }, u.style) : u.style }, [u.virtual ? (0, F.createVNode)("div", { class: "vjs-tree-list", style: { height: "".concat(u.height, "px") } }, [(0, F.createVNode)("div", { class: "vjs-tree-list-holder", style: { height: "".concat(a.value.length * u.itemHeight, "px") } }, [(0, F.createVNode)("div", { class: "vjs-tree-list-holder-inner", style: { transform: "translateY(".concat(i.translateY, "px)") } }, [q])])]) : q]);
4894
+ return (0, A.createVNode)("div", { ref: r, class: { "vjs-tree": !0, "is-virtual": u.virtual, dark: u.theme === "dark" }, onScroll: u.virtual ? g : void 0, style: u.showLineNumber ? X({ paddingLeft: "".concat(12 * Number(o.value.length.toString().length), "px") }, u.style) : u.style }, [u.virtual ? (0, A.createVNode)("div", { class: "vjs-tree-list", style: { height: "".concat(u.height, "px") } }, [(0, A.createVNode)("div", { class: "vjs-tree-list-holder", style: { height: "".concat(a.value.length * u.itemHeight, "px") } }, [(0, A.createVNode)("div", { class: "vjs-tree-list-holder-inner", style: { transform: "translateY(".concat(i.translateY, "px)") } }, [O])])]) : O]);
4895
4895
  };
4896
4896
  } });
4897
4897
  var kc = p0.A;
4898
- const yc = ["src", "alt"], Cc = /* @__PURE__ */ xu({
4898
+ const yc = ["src", "alt"], Cc = /* @__PURE__ */ gu({
4899
4899
  __name: "ImageViewer",
4900
4900
  props: {
4901
4901
  show: { type: Boolean },
@@ -4904,42 +4904,42 @@ const yc = ["src", "alt"], Cc = /* @__PURE__ */ xu({
4904
4904
  },
4905
4905
  emits: ["close"],
4906
4906
  setup(u) {
4907
- return (e, t) => (P(), Z(v0, { to: "body" }, [
4908
- pu(D0, { name: "viewer" }, {
4907
+ return (e, t) => (L(), Q(v0, { to: "body" }, [
4908
+ du(D0, { name: "viewer" }, {
4909
4909
  default: E0(() => [
4910
- u.show ? (P(), G("div", {
4910
+ u.show ? (L(), U("div", {
4911
4911
  key: 0,
4912
4912
  class: "image-viewer",
4913
4913
  onClick: t[2] || (t[2] = (n) => e.$emit("close"))
4914
4914
  }, [
4915
- fu("div", {
4915
+ cu("div", {
4916
4916
  class: "close-button",
4917
4917
  onClick: t[0] || (t[0] = Ve((n) => e.$emit("close"), ["stop"]))
4918
4918
  }, [
4919
- pu(ou(Cu), { icon: "mdi:close" })
4919
+ du(tu(ku), { icon: "mdi:close" })
4920
4920
  ]),
4921
- fu("div", {
4921
+ cu("div", {
4922
4922
  class: "viewer-content",
4923
4923
  onClick: t[1] || (t[1] = Ve(() => {
4924
4924
  }, ["stop"]))
4925
4925
  }, [
4926
- fu("img", {
4926
+ cu("img", {
4927
4927
  src: u.imageUrl,
4928
4928
  alt: u.alt
4929
4929
  }, null, 8, yc)
4930
4930
  ])
4931
- ])) : yu("", !0)
4931
+ ])) : hu("", !0)
4932
4932
  ]),
4933
4933
  _: 1
4934
4934
  })
4935
4935
  ]));
4936
4936
  }
4937
- }), _u = (u, e) => {
4937
+ }), yu = (u, e) => {
4938
4938
  const t = u.__vccOpts || u;
4939
4939
  for (const [n, r] of e)
4940
4940
  t[n] = r;
4941
4941
  return t;
4942
- }, vc = /* @__PURE__ */ _u(Cc, [["__scopeId", "data-v-92c159ee"]]), Dc = ["innerHTML"], Ec = /* @__PURE__ */ xu({
4942
+ }, vc = /* @__PURE__ */ yu(Cc, [["__scopeId", "data-v-92c159ee"]]), Dc = ["innerHTML"], Ec = /* @__PURE__ */ gu({
4943
4943
  __name: "MessageTextContent",
4944
4944
  props: {
4945
4945
  html: {},
@@ -4947,35 +4947,47 @@ const yc = ["src", "alt"], Cc = /* @__PURE__ */ xu({
4947
4947
  plain: { type: Boolean, default: !1 }
4948
4948
  },
4949
4949
  setup(u) {
4950
- const e = u, t = uu(() => e.role ? `role-${e.role}` : ""), n = uu(() => e.plain);
4951
- return (r, o) => (P(), G("div", {
4950
+ const e = u, t = J(() => e.role ? `role-${e.role}` : ""), n = J(() => e.plain);
4951
+ return (r, o) => (L(), U("div", {
4952
4952
  class: Nu(["content-text", [t.value, { "is-plain": n.value }]]),
4953
4953
  innerHTML: u.html
4954
4954
  }, null, 10, Dc));
4955
4955
  }
4956
- }), Tt = /* @__PURE__ */ _u(Ec, [["__scopeId", "data-v-d4935523"]]), Fc = { class: "file-name" }, Ac = /* @__PURE__ */ xu({
4956
+ }), Tt = /* @__PURE__ */ yu(Ec, [["__scopeId", "data-v-d4935523"]]), Fc = {
4957
+ key: 0,
4958
+ class: "html-preview-wrapper"
4959
+ }, Ac = ["src"], wc = { class: "file-name" }, Sc = /* @__PURE__ */ gu({
4957
4960
  __name: "MessageFileContent",
4958
4961
  props: {
4959
- name: {}
4962
+ name: {},
4963
+ url: {}
4960
4964
  },
4961
4965
  emits: ["click"],
4962
4966
  setup(u) {
4963
- return (e, t) => (P(), G("div", {
4967
+ const e = u, t = J(() => e.url.toLowerCase().endsWith(".html") ?? !1);
4968
+ return (n, r) => t.value ? (L(), U("div", Fc, [
4969
+ cu("iframe", {
4970
+ src: u.url,
4971
+ class: "html-iframe",
4972
+ frameborder: "0"
4973
+ }, null, 8, Ac)
4974
+ ])) : (L(), U("div", {
4975
+ key: 1,
4964
4976
  class: "content-file",
4965
- onClick: t[0] || (t[0] = (n) => e.$emit("click"))
4977
+ onClick: r[0] || (r[0] = (o) => n.$emit("click"))
4966
4978
  }, [
4967
- pu(ou(Cu), {
4979
+ du(tu(ku), {
4968
4980
  icon: "mdi:file-document-outline",
4969
4981
  class: "file-icon"
4970
4982
  }),
4971
- fu("span", Fc, F0(u.name), 1),
4972
- pu(ou(Cu), {
4983
+ cu("span", wc, F0(u.name), 1),
4984
+ du(tu(ku), {
4973
4985
  icon: "mdi:download",
4974
4986
  class: "download-icon"
4975
4987
  })
4976
4988
  ]));
4977
4989
  }
4978
- }), me = /* @__PURE__ */ _u(Ac, [["__scopeId", "data-v-24190b61"]]), wc = ["src"], Sc = /* @__PURE__ */ xu({
4990
+ }), me = /* @__PURE__ */ yu(Sc, [["__scopeId", "data-v-ec2741e4"]]), Tc = ["src"], Ic = /* @__PURE__ */ gu({
4979
4991
  __name: "MessageImageContent",
4980
4992
  props: {
4981
4993
  src: {},
@@ -4983,48 +4995,48 @@ const yc = ["src", "alt"], Cc = /* @__PURE__ */ xu({
4983
4995
  },
4984
4996
  emits: ["click"],
4985
4997
  setup(u) {
4986
- return (e, t) => (P(), G("img", {
4998
+ return (e, t) => (L(), U("img", {
4987
4999
  src: u.src,
4988
5000
  alt: "图片",
4989
5001
  class: Nu(["message-image", { "is-full-width": u.fullWidth }]),
4990
5002
  onClick: t[0] || (t[0] = (n) => e.$emit("click"))
4991
- }, null, 10, wc));
5003
+ }, null, 10, Tc));
4992
5004
  }
4993
- }), xe = /* @__PURE__ */ _u(Sc, [["__scopeId", "data-v-24952cda"]]), Tc = ["src"], Ic = /* @__PURE__ */ xu({
5005
+ }), xe = /* @__PURE__ */ yu(Ic, [["__scopeId", "data-v-24952cda"]]), Nc = ["src"], Bc = /* @__PURE__ */ gu({
4994
5006
  __name: "MessageVideoContent",
4995
5007
  props: {
4996
5008
  src: {},
4997
5009
  fullWidth: { type: Boolean }
4998
5010
  },
4999
5011
  setup(u) {
5000
- return (e, t) => (P(), G("video", {
5012
+ return (e, t) => (L(), U("video", {
5001
5013
  controls: "",
5002
5014
  src: u.src,
5003
5015
  class: Nu(["message-video", { "is-full-width": u.fullWidth }])
5004
- }, " 您的浏览器不支持视频播放 ", 10, Tc));
5016
+ }, " 您的浏览器不支持视频播放 ", 10, Nc));
5005
5017
  }
5006
- }), It = /* @__PURE__ */ _u(Ic, [["__scopeId", "data-v-be6bb72d"]]), Nc = ["src"], Bc = /* @__PURE__ */ xu({
5018
+ }), It = /* @__PURE__ */ yu(Bc, [["__scopeId", "data-v-be6bb72d"]]), Lc = ["src"], Oc = /* @__PURE__ */ gu({
5007
5019
  __name: "MessageAudioContent",
5008
5020
  props: {
5009
5021
  src: {}
5010
5022
  },
5011
5023
  setup(u) {
5012
- return (e, t) => (P(), G("audio", {
5024
+ return (e, t) => (L(), U("audio", {
5013
5025
  controls: "",
5014
5026
  src: u.src,
5015
5027
  class: "message-audio"
5016
- }, " 您的浏览器不支持音频播放 ", 8, Nc));
5028
+ }, " 您的浏览器不支持音频播放 ", 8, Lc));
5017
5029
  }
5018
- }), ge = /* @__PURE__ */ _u(Bc, [["__scopeId", "data-v-c0d42074"]]), Lc = {
5030
+ }), ge = /* @__PURE__ */ yu(Oc, [["__scopeId", "data-v-c0d42074"]]), Pc = {
5019
5031
  key: 2,
5020
5032
  class: "content-user-message"
5021
- }, Oc = {
5033
+ }, Mc = {
5022
5034
  key: 1,
5023
5035
  class: "files-grid"
5024
- }, Pc = {
5036
+ }, jc = {
5025
5037
  key: 6,
5026
5038
  class: "content-medialib"
5027
- }, Mc = /* @__PURE__ */ xu({
5039
+ }, zc = /* @__PURE__ */ gu({
5028
5040
  __name: "MessageContentRenderer",
5029
5041
  props: {
5030
5042
  content: {},
@@ -5034,96 +5046,97 @@ const yc = ["src", "alt"], Cc = /* @__PURE__ */ xu({
5034
5046
  },
5035
5047
  emits: ["copy", "regenerate", "delete"],
5036
5048
  setup(u, { emit: e }) {
5037
- const t = u, n = e, r = uu(() => t.role ? `role-${t.role}` : ""), o = uu(() => t.role ? `actions-${t.role}` : ""), c = uu(() => t.showActions !== !1 && !!t.role), i = uu(
5049
+ const t = u, n = e, r = J(() => t.role ? `role-${t.role}` : ""), o = J(() => t.role ? `actions-${t.role}` : ""), c = J(() => t.showActions !== !1 && !!t.role), i = J(
5038
5050
  () => t.role === "assistant" && t.allowRegenerate !== !1
5039
- ), a = uu(() => {
5040
- const N = t.content;
5041
- return typeof N == "string" ? { type: "text", content: N } : N;
5051
+ ), a = J(() => {
5052
+ const B = t.content;
5053
+ return typeof B == "string" ? { type: "text", content: B } : B;
5042
5054
  });
5043
- function s(N) {
5044
- return !("type" in N);
5055
+ function s(B) {
5056
+ return !("type" in B);
5045
5057
  }
5046
5058
  const l = new eu({
5047
5059
  html: !0,
5048
5060
  linkify: !0,
5049
5061
  typographer: !0,
5050
5062
  breaks: !0
5051
- }), f = l.renderer.rules.link_open ?? ((N, L, M, x, g) => g.renderToken(N, L, M));
5052
- l.renderer.rules.link_open = (N, L, M, x, g) => {
5053
- const w = N[L];
5054
- if (!w)
5055
- return f(N, L, M, x, g);
5056
- const B = w.attrs ?? (w.attrs = []), T = w.attrIndex("target");
5057
- if (T < 0)
5058
- B.push(["target", "_blank"]);
5063
+ }), f = l.renderer.rules.link_open ?? ((B, x, b, F, I) => I.renderToken(B, x, b));
5064
+ l.renderer.rules.link_open = (B, x, b, F, I) => {
5065
+ const S = B[x];
5066
+ if (!S)
5067
+ return f(B, x, b, F, I);
5068
+ const R = S.attrs ?? (S.attrs = []), $ = S.attrIndex("target");
5069
+ if ($ < 0)
5070
+ R.push(["target", "_blank"]);
5059
5071
  else {
5060
- const R = B[T];
5061
- R && (R[1] = "_blank");
5072
+ const W = R[$];
5073
+ W && (W[1] = "_blank");
5062
5074
  }
5063
- const V = w.attrIndex("rel");
5064
- if (V < 0)
5065
- B.push(["rel", "noopener noreferrer"]);
5075
+ const K = S.attrIndex("rel");
5076
+ if (K < 0)
5077
+ R.push(["rel", "noopener noreferrer"]);
5066
5078
  else {
5067
- const R = B[V];
5068
- if (R) {
5069
- const Q = R[1] || "", J = new Set(Q.split(/\s+/).filter(Boolean));
5070
- J.add("noopener"), J.add("noreferrer"), R[1] = Array.from(J).join(" ");
5079
+ const W = R[K];
5080
+ if (W) {
5081
+ const M = W[1] || "", G = new Set(M.split(/\s+/).filter(Boolean));
5082
+ G.add("noopener"), G.add("noreferrer"), W[1] = Array.from(G).join(" ");
5071
5083
  }
5072
5084
  }
5073
- return f(N, L, M, x, g);
5085
+ return f(B, x, b, F, I);
5074
5086
  };
5075
- const m = uu(() => !s(a.value) && a.value.type === "text" ? l.render(a.value.content) : "");
5076
- function p(N) {
5077
- return N ? l.renderInline(N) : "";
5087
+ const g = J(() => !s(a.value) && a.value.type === "text" ? l.render(a.value.content) : "");
5088
+ function p(B) {
5089
+ return B ? l.renderInline(B) : "";
5078
5090
  }
5079
5091
  const d = Iu(!1), C = Iu("");
5080
5092
  function k() {
5081
- const N = a.value;
5082
- if (s(N)) {
5083
- const L = [];
5084
- return Array.isArray(N.texts) && L.push(...N.texts.filter(Boolean)), L.join(`
5093
+ const B = a.value;
5094
+ if (s(B)) {
5095
+ const x = [];
5096
+ return Array.isArray(B.texts) && x.push(...B.texts.filter(Boolean)), x.join(`
5085
5097
 
5086
5098
  `).trim();
5087
5099
  }
5088
- return N.type === "text" ? N.content : "";
5100
+ return B.type === "text" ? B.content : "";
5089
5101
  }
5090
- async function A() {
5091
- const N = k();
5092
- if (N)
5102
+ const w = J(() => k().length > 0);
5103
+ async function v() {
5104
+ const B = k();
5105
+ if (B)
5093
5106
  try {
5094
- await navigator.clipboard.writeText(N);
5095
- } catch (L) {
5096
- console.error("Failed to copy content", L);
5107
+ await navigator.clipboard.writeText(B);
5108
+ } catch (x) {
5109
+ console.error("Failed to copy content", x);
5097
5110
  }
5098
5111
  n("copy");
5099
5112
  }
5100
- function v() {
5113
+ function E() {
5101
5114
  n("regenerate");
5102
5115
  }
5103
- function E() {
5116
+ function h() {
5104
5117
  n("delete");
5105
5118
  }
5106
- function h() {
5107
- s(a.value) || (a.value.type === "image" ? (C.value = a.value.content, d.value = !0) : a.value.type === "medialib" && O.value === "image" && (C.value = S.value, d.value = !0));
5119
+ function y() {
5120
+ s(a.value) || (a.value.type === "image" ? (C.value = a.value.content, d.value = !0) : a.value.type === "medialib" && V.value === "image" && (C.value = O.value, d.value = !0));
5108
5121
  }
5109
- function y(N) {
5110
- C.value = N, d.value = !0;
5122
+ function m(B) {
5123
+ C.value = B, d.value = !0;
5111
5124
  }
5112
- function b(N) {
5125
+ function _(B) {
5113
5126
  try {
5114
- const x = new URL(N).pathname.split("/");
5115
- return x[x.length - 1] || "未知文件";
5127
+ const F = new URL(B).pathname.split("/");
5128
+ return F[F.length - 1] || "未知文件";
5116
5129
  } catch {
5117
5130
  return "未知文件";
5118
5131
  }
5119
5132
  }
5120
- function _() {
5133
+ function D() {
5121
5134
  s(a.value) || window.open(a.value.content, "_blank");
5122
5135
  }
5123
- function D(N) {
5124
- window.open(N, "_blank");
5136
+ function N(B) {
5137
+ window.open(B, "_blank");
5125
5138
  }
5126
- const I = uu(() => {
5139
+ const T = J(() => {
5127
5140
  if (!s(a.value) && a.value.type === "medialib")
5128
5141
  try {
5129
5142
  return JSON.parse(a.value.content);
@@ -5131,124 +5144,137 @@ const yc = ["src", "alt"], Cc = /* @__PURE__ */ xu({
5131
5144
  return null;
5132
5145
  }
5133
5146
  return null;
5134
- }), S = uu(() => I.value?.file_url || ""), q = uu(() => I.value?.file_name || b(S.value)), O = uu(() => {
5135
- if (!S.value)
5147
+ }), O = J(() => T.value?.file_url || ""), P = J(() => T.value?.file_url?.toLowerCase().endsWith(".html") ?? !1), q = J(() => T.value?.file_name || _(O.value)), V = J(() => {
5148
+ if (!O.value)
5136
5149
  return "json";
5137
- const N = S.value.toLowerCase();
5138
- return Hu(N);
5150
+ const B = O.value.toLowerCase();
5151
+ return Hu(B);
5139
5152
  });
5140
- function $() {
5141
- S.value && window.open(S.value, "_blank");
5153
+ function z() {
5154
+ O.value && window.open(O.value, "_blank");
5142
5155
  }
5143
- return (N, L) => (P(), G("div", {
5156
+ return (B, x) => (L(), U("div", {
5144
5157
  class: Nu(["message-content-renderer", r.value])
5145
5158
  }, [
5146
- c.value ? (P(), G("div", {
5159
+ c.value ? (L(), U("div", {
5147
5160
  key: 0,
5148
5161
  class: Nu(["renderer-actions", o.value])
5149
5162
  }, [
5150
- fu("button", {
5163
+ w.value ? (L(), U("button", {
5164
+ key: 0,
5151
5165
  type: "button",
5152
5166
  class: "renderer-action-btn",
5153
- onClick: A
5167
+ onClick: v
5154
5168
  }, [
5155
- pu(ou(Cu), { icon: "mdi:content-copy" }),
5156
- L[1] || (L[1] = fu("span", null, "复制", -1))
5157
- ]),
5158
- i.value ? (P(), G("button", {
5159
- key: 0,
5169
+ du(tu(ku), { icon: "mdi:content-copy" }),
5170
+ x[1] || (x[1] = cu("span", null, "复制", -1))
5171
+ ])) : hu("", !0),
5172
+ P.value ? (L(), U("button", {
5173
+ key: 1,
5160
5174
  type: "button",
5161
5175
  class: "renderer-action-btn",
5162
- onClick: v
5176
+ onClick: z
5163
5177
  }, [
5164
- pu(ou(Cu), { icon: "mdi:refresh" }),
5165
- L[2] || (L[2] = fu("span", null, "重新生成", -1))
5166
- ])) : yu("", !0),
5167
- fu("button", {
5178
+ du(tu(ku), { icon: "mdi:share-outline" }),
5179
+ x[2] || (x[2] = cu("span", null, "打开网页", -1))
5180
+ ])) : hu("", !0),
5181
+ i.value ? (L(), U("button", {
5182
+ key: 2,
5168
5183
  type: "button",
5169
- class: "renderer-action-btn danger",
5184
+ class: "renderer-action-btn",
5170
5185
  onClick: E
5171
5186
  }, [
5172
- pu(ou(Cu), { icon: "mdi:delete-outline" }),
5173
- L[3] || (L[3] = fu("span", null, "删除", -1))
5187
+ du(tu(ku), { icon: "mdi:refresh" }),
5188
+ x[3] || (x[3] = cu("span", null, "重新生成", -1))
5189
+ ])) : hu("", !0),
5190
+ cu("button", {
5191
+ type: "button",
5192
+ class: "renderer-action-btn danger",
5193
+ onClick: h
5194
+ }, [
5195
+ du(tu(ku), { icon: "mdi:delete-outline" }),
5196
+ x[4] || (x[4] = cu("span", null, "删除", -1))
5174
5197
  ])
5175
- ], 2)) : yu("", !0),
5176
- !s(a.value) && a.value.type === "text" ? (P(), Z(Tt, {
5198
+ ], 2)) : hu("", !0),
5199
+ !s(a.value) && a.value.type === "text" ? (L(), Q(Tt, {
5177
5200
  key: 1,
5178
- html: m.value,
5201
+ html: g.value,
5179
5202
  role: u.role
5180
- }, null, 8, ["html", "role"])) : s(a.value) ? (P(), G("div", Lc, [
5181
- a.value.texts && a.value.texts.length > 0 ? (P(!0), G(He, { key: 0 }, Ue(a.value.texts, (M, x) => (P(), Z(Tt, {
5182
- key: `text-${x}`,
5183
- html: p(String(M ?? "")),
5203
+ }, null, 8, ["html", "role"])) : s(a.value) ? (L(), U("div", Pc, [
5204
+ a.value.texts && a.value.texts.length > 0 ? (L(!0), U(He, { key: 0 }, Ue(a.value.texts, (b, F) => (L(), Q(Tt, {
5205
+ key: `text-${F}`,
5206
+ html: p(String(b ?? "")),
5184
5207
  role: u.role,
5185
5208
  plain: ""
5186
- }, null, 8, ["html", "role"]))), 128)) : yu("", !0),
5187
- a.value.files && a.value.files.length > 0 ? (P(), G("div", Oc, [
5188
- (P(!0), G(He, null, Ue(a.value.files, (M, x) => (P(), G("div", {
5189
- key: `file-${x}`
5209
+ }, null, 8, ["html", "role"]))), 128)) : hu("", !0),
5210
+ a.value.files && a.value.files.length > 0 ? (L(), U("div", Mc, [
5211
+ (L(!0), U(He, null, Ue(a.value.files, (b, F) => (L(), U("div", {
5212
+ key: `file-${F}`
5190
5213
  }, [
5191
- ou(Hu)(M) === "image" ? (P(), Z(xe, {
5214
+ tu(Hu)(b) === "image" ? (L(), Q(xe, {
5192
5215
  key: 0,
5193
- src: M,
5216
+ src: b,
5194
5217
  "full-width": !0,
5195
- onClick: (g) => y(M)
5196
- }, null, 8, ["src", "onClick"])) : ou(Hu)(M) === "video" ? (P(), Z(It, {
5218
+ onClick: (I) => m(b)
5219
+ }, null, 8, ["src", "onClick"])) : tu(Hu)(b) === "video" ? (L(), Q(It, {
5197
5220
  key: 1,
5198
- src: M,
5221
+ src: b,
5199
5222
  "full-width": !0
5200
- }, null, 8, ["src"])) : ou(Hu)(M) === "audio" ? (P(), Z(ge, {
5223
+ }, null, 8, ["src"])) : tu(Hu)(b) === "audio" ? (L(), Q(ge, {
5201
5224
  key: 2,
5202
- src: M
5203
- }, null, 8, ["src"])) : (P(), Z(me, {
5225
+ src: b
5226
+ }, null, 8, ["src"])) : (L(), Q(me, {
5204
5227
  key: 3,
5205
- name: b(M),
5206
- onClick: (g) => D(M)
5207
- }, null, 8, ["name", "onClick"]))
5228
+ name: _(b),
5229
+ url: b,
5230
+ onClick: (I) => N(b)
5231
+ }, null, 8, ["name", "url", "onClick"]))
5208
5232
  ]))), 128))
5209
- ])) : yu("", !0)
5210
- ])) : !s(a.value) && a.value.type === "file" ? (P(), Z(me, {
5233
+ ])) : hu("", !0)
5234
+ ])) : !s(a.value) && a.value.type === "file" ? (L(), Q(me, {
5211
5235
  key: 3,
5212
- name: b(a.value.content),
5213
- onClick: _
5214
- }, null, 8, ["name"])) : !s(a.value) && a.value.type === "image" ? (P(), Z(xe, {
5236
+ name: _(a.value.content),
5237
+ url: a.value.content,
5238
+ onClick: D
5239
+ }, null, 8, ["name", "url"])) : !s(a.value) && a.value.type === "image" ? (L(), Q(xe, {
5215
5240
  key: 4,
5216
5241
  src: a.value.content,
5217
- onClick: h
5218
- }, null, 8, ["src"])) : !s(a.value) && a.value.type === "voice" ? (P(), Z(ge, {
5242
+ onClick: y
5243
+ }, null, 8, ["src"])) : !s(a.value) && a.value.type === "voice" ? (L(), Q(ge, {
5219
5244
  key: 5,
5220
5245
  src: a.value.content
5221
- }, null, 8, ["src"])) : !s(a.value) && a.value.type === "medialib" ? (P(), G("div", Pc, [
5222
- O.value === "video" ? (P(), Z(It, {
5246
+ }, null, 8, ["src"])) : !s(a.value) && a.value.type === "medialib" ? (L(), U("div", jc, [
5247
+ V.value === "video" ? (L(), Q(It, {
5223
5248
  key: 0,
5224
- src: S.value,
5249
+ src: O.value,
5225
5250
  "full-width": !0
5226
- }, null, 8, ["src"])) : O.value === "image" ? (P(), Z(xe, {
5251
+ }, null, 8, ["src"])) : V.value === "image" ? (L(), Q(xe, {
5227
5252
  key: 1,
5228
- src: S.value,
5229
- onClick: h
5230
- }, null, 8, ["src"])) : O.value === "audio" ? (P(), Z(ge, {
5253
+ src: O.value,
5254
+ onClick: y
5255
+ }, null, 8, ["src"])) : V.value === "audio" ? (L(), Q(ge, {
5231
5256
  key: 2,
5232
- src: S.value
5233
- }, null, 8, ["src"])) : O.value === "file" ? (P(), Z(me, {
5257
+ src: O.value
5258
+ }, null, 8, ["src"])) : V.value === "file" ? (L(), Q(me, {
5234
5259
  key: 3,
5235
5260
  name: q.value,
5236
- onClick: $
5237
- }, null, 8, ["name"])) : (P(), Z(ou(kc), {
5261
+ url: O.value,
5262
+ onClick: z
5263
+ }, null, 8, ["name", "url"])) : (L(), Q(tu(kc), {
5238
5264
  key: 4,
5239
- data: I.value,
5265
+ data: T.value,
5240
5266
  deep: 3,
5241
5267
  class: "json-viewer"
5242
5268
  }, null, 8, ["data"]))
5243
- ])) : yu("", !0),
5244
- pu(vc, {
5269
+ ])) : hu("", !0),
5270
+ du(vc, {
5245
5271
  show: d.value,
5246
5272
  "image-url": C.value,
5247
- onClose: L[0] || (L[0] = (M) => d.value = !1)
5273
+ onClose: x[0] || (x[0] = (b) => d.value = !1)
5248
5274
  }, null, 8, ["show", "image-url"])
5249
5275
  ], 2));
5250
5276
  }
5251
- }), zc = /* @__PURE__ */ _u(Mc, [["__scopeId", "data-v-19ff30be"]]);
5277
+ }), qc = /* @__PURE__ */ yu(zc, [["__scopeId", "data-v-38a7371e"]]);
5252
5278
  function Hu(u) {
5253
5279
  if (!u) return "file";
5254
5280
  const e = u.toLowerCase();
@@ -5256,6 +5282,6 @@ function Hu(u) {
5256
5282
  }
5257
5283
  export {
5258
5284
  vc as ImageViewer,
5259
- zc as MessageContentRenderer,
5285
+ qc as MessageContentRenderer,
5260
5286
  Hu as getFileTypeFromUrl
5261
5287
  };