@oiij/naive-ui 0.0.17 → 0.0.18

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 { inject as Sr, onBeforeMount as So, defineComponent as he, createBlock as I, openBlock as P, unref as w, normalizeClass as Du, withCtx as M, renderSlot as H, createVNode as X, createCommentVNode as re, mergeProps as K, resolveDynamicComponent as Se, createElementVNode as Ou, normalizeStyle as on, ref as G, onMounted as To, normalizeProps as oe, guardReactiveProps as Fe, createElementBlock as ae, watch as Be, createTextVNode as Mu, toDisplayString as Lu, watchEffect as Re, onScopeDispose as an, computed as pe, onUnmounted as Po, reactive as Fu, isRef as Qt, toRefs as Ro, h as su, useTemplateRef as mt, Fragment as ve, renderList as We, toValue as fu, nextTick as cn, Teleport as Oo, createSlots as Mo, toRaw as Jt, toRef as Lo, resolveComponent as Vu, createStaticVNode as No, mergeModels as Io, useModel as $o, Transition as zo, isReactive as Bo } from "vue";
2
- import { NEl as ln, NAvatar as Uo, NFlex as Je, NSpin as Tr, NConfigProvider as qo, NLoadingBarProvider as jo, NDialogProvider as Ho, NModalProvider as Go, NNotificationProvider as Wo, NMessageProvider as Vo, NGlobalStyle as Zo, useDialog as Yo, useLoadingBar as Xo, useMessage as Qo, useModal as Jo, useNotification as Ko, NTooltip as Pr, NButton as Nu, NFormItem as ei, NGrid as lt, NGi as st, NDivider as ui, NCollapseTransition as ti, NDataTable as ni, NPagination as Rr, NDropdown as ri, cM as qn, NForm as oi, NTimePicker as ii, NSwitch as ai, NSlider as ci, NSelect as Or, NRate as li, NRadioGroup as si, NInputNumber as fi, NInput as sn, NDynamicTags as di, NDatePicker as pi, NCheckboxGroup as hi, NColorPicker as bi, NCheckbox as mi, NRadio as gi, NInputGroup as xi } from "naive-ui";
1
+ import { inject as Sr, onBeforeMount as So, defineComponent as he, createBlock as I, openBlock as P, unref as w, normalizeClass as Du, withCtx as M, renderSlot as H, createVNode as X, createCommentVNode as oe, mergeProps as ee, resolveDynamicComponent as Se, createElementVNode as Ou, normalizeStyle as on, ref as W, onMounted as To, normalizeProps as ie, guardReactiveProps as Fe, createElementBlock as ce, watch as Be, createTextVNode as Mu, toDisplayString as Lu, watchEffect as Re, onScopeDispose as an, computed as pe, onUnmounted as Po, reactive as Fu, isRef as Qt, toRefs as Ro, h as lu, useTemplateRef as mt, Fragment as ve, renderList as We, toValue as fu, nextTick as cn, Teleport as Oo, createSlots as Mo, toRaw as Jt, toRef as Lo, resolveComponent as Vu, createStaticVNode as No, mergeModels as Io, useModel as $o, Transition as zo, isReactive as Bo } from "vue";
2
+ import { NEl as sn, NAvatar as Uo, NFlex as Je, NSpin as Tr, NConfigProvider as qo, NLoadingBarProvider as jo, NDialogProvider as Ho, NModalProvider as Go, NNotificationProvider as Wo, NMessageProvider as Vo, NGlobalStyle as Zo, useDialog as Yo, useLoadingBar as Xo, useMessage as Qo, useModal as Jo, useNotification as Ko, NTooltip as Pr, NButton as Nu, NFormItem as ei, NGrid as st, NGi as lt, NDivider as ui, NCollapseTransition as ti, NDataTable as ni, NPagination as Rr, NDropdown as ri, cM as qn, NForm as oi, NTimePicker as ii, NSwitch as ai, NSlider as ci, NSelect as Or, NRate as si, NRadioGroup as li, NInputNumber as fi, NInput as ln, NDynamicTags as di, NDatePicker as pi, NCheckboxGroup as hi, NColorPicker as bi, NCheckbox as mi, NRadio as gi, NInputGroup as xi } from "naive-ui";
3
3
  import { useClipboard as ki, createEventHook as rt, useDebounceFn as Mr, useTimeoutFn as _i } from "@vueuse/core";
4
4
  function vi(e) {
5
5
  let u = ".", t = "__", n = "--", r;
@@ -17,14 +17,14 @@ function vi(e) {
17
17
  function a(d) {
18
18
  let E, A;
19
19
  return {
20
- before(y) {
21
- E = y.bem.b, A = y.bem.els, y.bem.els = null;
20
+ before(v) {
21
+ E = v.bem.b, A = v.bem.els, v.bem.els = null;
22
22
  },
23
- after(y) {
24
- y.bem.b = E, y.bem.els = A;
23
+ after(v) {
24
+ v.bem.b = E, v.bem.els = A;
25
25
  },
26
- $({ context: y, props: h }) {
27
- return d = typeof d == "string" ? d : d({ context: y, props: h }), y.bem.b = d, `${h?.bPrefix || u}${y.bem.b}`;
26
+ $({ context: v, props: h }) {
27
+ return d = typeof d == "string" ? d : d({ context: v, props: h }), v.bem.b = d, `${h?.bPrefix || u}${v.bem.b}`;
28
28
  }
29
29
  };
30
30
  }
@@ -37,8 +37,8 @@ function vi(e) {
37
37
  after(A) {
38
38
  A.bem.els = E;
39
39
  },
40
- $({ context: A, props: y }) {
41
- return d = typeof d == "string" ? d : d({ context: A, props: y }), A.bem.els = d.split(",").map((h) => h.trim()), A.bem.els.map((h) => `${y?.bPrefix || u}${A.bem.b}${t}${h}`).join(", ");
40
+ $({ context: A, props: v }) {
41
+ return d = typeof d == "string" ? d : d({ context: A, props: v }), A.bem.els = d.split(",").map((h) => h.trim()), A.bem.els.map((h) => `${v?.bPrefix || u}${A.bem.b}${t}${h}`).join(", ");
42
42
  }
43
43
  };
44
44
  }
@@ -46,9 +46,9 @@ function vi(e) {
46
46
  return {
47
47
  $({ context: E, props: A }) {
48
48
  d = typeof d == "string" ? d : d({ context: E, props: A });
49
- const y = d.split(",").map((m) => m.trim());
49
+ const v = d.split(",").map((m) => m.trim());
50
50
  function h(m) {
51
- return y.map((k) => `&${A?.bPrefix || u}${E.bem.b}${m !== void 0 ? `${t}${m}` : ""}${n}${k}`).join(", ");
51
+ return v.map((k) => `&${A?.bPrefix || u}${E.bem.b}${m !== void 0 ? `${t}${m}` : ""}${n}${k}`).join(", ");
52
52
  }
53
53
  const p = E.bem.els;
54
54
  if (p !== null) {
@@ -60,14 +60,14 @@ function vi(e) {
60
60
  }
61
61
  };
62
62
  }
63
- function l(d) {
63
+ function s(d) {
64
64
  return {
65
65
  $({ context: E, props: A }) {
66
66
  d = typeof d == "string" ? d : d({ context: E, props: A });
67
- const y = E.bem.els;
68
- if (process.env.NODE_ENV !== "production" && y !== null && y.length >= 2)
67
+ const v = E.bem.els;
68
+ if (process.env.NODE_ENV !== "production" && v !== null && v.length >= 2)
69
69
  throw Error(`[css-render/plugin-bem]: notM(${d}) is invalid, using modifier inside multiple elements is not allowed`);
70
- return `&:not(${A?.bPrefix || u}${E.bem.b}${y !== null && y.length > 0 ? `${t}${y[0]}` : ""}${n}${d})`;
70
+ return `&:not(${A?.bPrefix || u}${E.bem.b}${v !== null && v.length > 0 ? `${t}${v[0]}` : ""}${n}${d})`;
71
71
  }
72
72
  };
73
73
  }
@@ -75,7 +75,7 @@ function vi(e) {
75
75
  cB: (...d) => r(a(d[0]), d[1], d[2]),
76
76
  cE: (...d) => r(i(d[0]), d[1], d[2]),
77
77
  cM: (...d) => r(c(d[0]), d[1], d[2]),
78
- cNotM: (...d) => r(l(d[0]), d[1], d[2])
78
+ cNotM: (...d) => r(s(d[0]), d[1], d[2])
79
79
  }), o;
80
80
  }
81
81
  function yi(e) {
@@ -211,30 +211,30 @@ function Ir(e, u, t, n, r) {
211
211
  if (!o || typeof o == "string")
212
212
  Zu(o) ? a = o : u.push(o);
213
213
  else if (typeof o == "function") {
214
- const l = o({
214
+ const s = o({
215
215
  context: n.context,
216
216
  props: r
217
217
  });
218
- Zu(l) ? a = l : u.push(l);
218
+ Zu(s) ? a = s : u.push(s);
219
219
  } else if (o.before && o.before(n.context), !o.$ || typeof o.$ == "string")
220
220
  Zu(o.$) ? a = o.$ : u.push(o.$);
221
221
  else if (o.$) {
222
- const l = o.$({
222
+ const s = o.$({
223
223
  context: n.context,
224
224
  props: r
225
225
  });
226
- Zu(l) ? a = l : u.push(l);
226
+ Zu(s) ? a = s : u.push(s);
227
227
  }
228
228
  const i = Ci(u), c = Hn(i, e.props, n, r);
229
229
  a ? t.push(`${a} {`) : c.length && t.push(c), e.children && Kt(e.children, {
230
230
  context: n.context,
231
231
  props: r
232
- }, (l) => {
233
- if (typeof l == "string") {
234
- const s = Hn(i, { raw: l }, n, r);
235
- t.push(s);
232
+ }, (s) => {
233
+ if (typeof s == "string") {
234
+ const l = Hn(i, { raw: s }, n, r);
235
+ t.push(l);
236
236
  } else
237
- Ir(l, u, t, n, r);
237
+ Ir(s, u, t, n, r);
238
238
  }), u.pop(), a && t.push("}"), o && o.after && o.after(n.context);
239
239
  }
240
240
  function Pi(e, u, t) {
@@ -276,18 +276,18 @@ function Gn(e, u) {
276
276
  e.push(u);
277
277
  }
278
278
  function Mi(e, u, t, n, r, o, a, i, c) {
279
- let l;
280
- if (t === void 0 && (l = u.render(n), t = Ri(l)), c) {
281
- c.adapter(t, l ?? u.render(n));
279
+ let s;
280
+ if (t === void 0 && (s = u.render(n), t = Ri(s)), c) {
281
+ c.adapter(t, s ?? u.render(n));
282
282
  return;
283
283
  }
284
284
  i === void 0 && (i = document.head);
285
- const s = fn(t, i);
286
- if (s !== null && !o)
287
- return s;
288
- const f = s ?? Di(t);
289
- if (l === void 0 && (l = u.render(n)), f.textContent = l, s !== null)
290
- return s;
285
+ const l = fn(t, i);
286
+ if (l !== null && !o)
287
+ return l;
288
+ const f = l ?? Di(t);
289
+ if (s === void 0 && (s = u.render(n)), f.textContent = s, l !== null)
290
+ return l;
291
291
  if (a) {
292
292
  const _ = i.querySelector(`meta[name="${a}"]`);
293
293
  if (_)
@@ -511,8 +511,8 @@ function Vi() {
511
511
  case "Array":
512
512
  return x = i.util.objId(p), m[x] ? m[x] : (k = [], m[x] = k, /** @type {Array} */
513
513
  /** @type {any} */
514
- p.forEach(function(R, v) {
515
- k[v] = h(R, m);
514
+ p.forEach(function(R, y) {
515
+ k[y] = h(R, m);
516
516
  }), /** @type {any} */
517
517
  k);
518
518
  default:
@@ -736,13 +736,13 @@ function Vi() {
736
736
  for (var R in x)
737
737
  if (x.hasOwnProperty(R)) {
738
738
  if (R == p)
739
- for (var v in m)
740
- m.hasOwnProperty(v) && (D[v] = m[v]);
739
+ for (var y in m)
740
+ m.hasOwnProperty(y) && (D[y] = m[y]);
741
741
  m.hasOwnProperty(R) || (D[R] = x[R]);
742
742
  }
743
743
  var $ = k[h];
744
- return k[h] = D, i.languages.DFS(i.languages, function(N, W) {
745
- W === $ && N != h && (this[N] = D);
744
+ return k[h] = D, i.languages.DFS(i.languages, function(N, G) {
745
+ G === $ && N != h && (this[N] = D);
746
746
  }), D;
747
747
  },
748
748
  // Traverse a language definition with Depth First Search
@@ -752,8 +752,8 @@ function Vi() {
752
752
  for (var R in p)
753
753
  if (p.hasOwnProperty(R)) {
754
754
  m.call(p, R, p[R], k || R);
755
- var v = p[R], $ = i.util.type(v);
756
- $ === "Object" && !x[D(v)] ? (x[D(v)] = !0, h(v, m, null, x)) : $ === "Array" && !x[D(v)] && (x[D(v)] = !0, h(v, m, R, x));
755
+ var y = p[R], $ = i.util.type(y);
756
+ $ === "Object" && !x[D(y)] ? (x[D(y)] = !0, h(y, m, null, x)) : $ === "Array" && !x[D(y)] && (x[D(y)] = !0, h(y, m, R, x));
757
757
  }
758
758
  }
759
759
  },
@@ -831,34 +831,34 @@ function Vi() {
831
831
  i.util.setLanguage(h, k);
832
832
  var D = h.parentElement;
833
833
  D && D.nodeName.toLowerCase() === "pre" && i.util.setLanguage(D, k);
834
- var R = h.textContent, v = {
834
+ var R = h.textContent, y = {
835
835
  element: h,
836
836
  language: k,
837
837
  grammar: x,
838
838
  code: R
839
839
  };
840
- function $(W) {
841
- v.highlightedCode = W, i.hooks.run("before-insert", v), v.element.innerHTML = v.highlightedCode, i.hooks.run("after-highlight", v), i.hooks.run("complete", v), m && m.call(v.element);
840
+ function $(G) {
841
+ y.highlightedCode = G, i.hooks.run("before-insert", y), y.element.innerHTML = y.highlightedCode, i.hooks.run("after-highlight", y), i.hooks.run("complete", y), m && m.call(y.element);
842
842
  }
843
- if (i.hooks.run("before-sanity-check", v), D = v.element.parentElement, D && D.nodeName.toLowerCase() === "pre" && !D.hasAttribute("tabindex") && D.setAttribute("tabindex", "0"), !v.code) {
844
- i.hooks.run("complete", v), m && m.call(v.element);
843
+ if (i.hooks.run("before-sanity-check", y), D = y.element.parentElement, D && D.nodeName.toLowerCase() === "pre" && !D.hasAttribute("tabindex") && D.setAttribute("tabindex", "0"), !y.code) {
844
+ i.hooks.run("complete", y), m && m.call(y.element);
845
845
  return;
846
846
  }
847
- if (i.hooks.run("before-highlight", v), !v.grammar) {
848
- $(i.util.encode(v.code));
847
+ if (i.hooks.run("before-highlight", y), !y.grammar) {
848
+ $(i.util.encode(y.code));
849
849
  return;
850
850
  }
851
851
  if (p && n.Worker) {
852
852
  var N = new Worker(i.filename);
853
- N.onmessage = function(W) {
854
- $(W.data);
853
+ N.onmessage = function(G) {
854
+ $(G.data);
855
855
  }, N.postMessage(JSON.stringify({
856
- language: v.language,
857
- code: v.code,
856
+ language: y.language,
857
+ code: y.code,
858
858
  immediateClose: !0
859
859
  }));
860
860
  } else
861
- $(i.highlight(v.code, v.grammar, v.language));
861
+ $(i.highlight(y.code, y.grammar, y.language));
862
862
  },
863
863
  /**
864
864
  * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
@@ -922,7 +922,7 @@ function Vi() {
922
922
  delete p.rest;
923
923
  }
924
924
  var x = new f();
925
- return _(x, x.head, h), s(h, x, p, x.head, 0), d(x);
925
+ return _(x, x.head, h), l(h, x, p, x.head, 0), d(x);
926
926
  },
927
927
  /**
928
928
  * @namespace
@@ -988,11 +988,11 @@ function Vi() {
988
988
  }, D = p.alias;
989
989
  D && (Array.isArray(D) ? Array.prototype.push.apply(x.classes, D) : x.classes.push(D)), i.hooks.run("wrap", x);
990
990
  var R = "";
991
- for (var v in x.attributes)
992
- R += " " + v + '="' + (x.attributes[v] || "").replace(/"/g, """) + '"';
991
+ for (var y in x.attributes)
992
+ R += " " + y + '="' + (x.attributes[y] || "").replace(/"/g, """) + '"';
993
993
  return "<" + x.tag + ' class="' + x.classes.join(" ") + '"' + R + ">" + x.content + "</" + x.tag + ">";
994
994
  };
995
- function l(h, p, m, k) {
995
+ function s(h, p, m, k) {
996
996
  h.lastIndex = p;
997
997
  var x = h.exec(m);
998
998
  if (x && k && x[1]) {
@@ -1001,49 +1001,49 @@ function Vi() {
1001
1001
  }
1002
1002
  return x;
1003
1003
  }
1004
- function s(h, p, m, k, x, D) {
1004
+ function l(h, p, m, k, x, D) {
1005
1005
  for (var R in m)
1006
1006
  if (!(!m.hasOwnProperty(R) || !m[R])) {
1007
- var v = m[R];
1008
- v = Array.isArray(v) ? v : [v];
1009
- for (var $ = 0; $ < v.length; ++$) {
1007
+ var y = m[R];
1008
+ y = Array.isArray(y) ? y : [y];
1009
+ for (var $ = 0; $ < y.length; ++$) {
1010
1010
  if (D && D.cause == R + "," + $)
1011
1011
  return;
1012
- var N = v[$], W = N.inside, ee = !!N.lookbehind, F = !!N.greedy, q = N.alias;
1012
+ var N = y[$], G = N.inside, J = !!N.lookbehind, F = !!N.greedy, q = N.alias;
1013
1013
  if (F && !N.pattern.global) {
1014
- var ce = N.pattern.toString().match(/[imsuy]*$/)[0];
1015
- N.pattern = RegExp(N.pattern.source, ce + "g");
1014
+ var se = N.pattern.toString().match(/[imsuy]*$/)[0];
1015
+ N.pattern = RegExp(N.pattern.source, se + "g");
1016
1016
  }
1017
- for (var fe = N.pattern || N, Y = k.next, C = x; Y !== p.tail && !(D && C >= D.reach); C += Y.value.length, Y = Y.next) {
1018
- var z = Y.value;
1017
+ for (var ue = N.pattern || N, V = k.next, C = x; V !== p.tail && !(D && C >= D.reach); C += V.value.length, V = V.next) {
1018
+ var z = V.value;
1019
1019
  if (p.length > h.length)
1020
1020
  return;
1021
1021
  if (!(z instanceof c)) {
1022
- var T = 1, V;
1022
+ var T = 1, Z;
1023
1023
  if (F) {
1024
- if (V = l(fe, C, h, ee), !V || V.index >= h.length)
1024
+ if (Z = s(ue, C, h, J), !Z || Z.index >= h.length)
1025
1025
  break;
1026
- var ge = V.index, B = V.index + V[0].length, Z = C;
1027
- for (Z += Y.value.length; ge >= Z; )
1028
- Y = Y.next, Z += Y.value.length;
1029
- if (Z -= Y.value.length, C = Z, Y.value instanceof c)
1026
+ var ge = Z.index, B = Z.index + Z[0].length, Y = C;
1027
+ for (Y += V.value.length; ge >= Y; )
1028
+ V = V.next, Y += V.value.length;
1029
+ if (Y -= V.value.length, C = Y, V.value instanceof c)
1030
1030
  continue;
1031
- for (var j = Y; j !== p.tail && (Z < B || typeof j.value == "string"); j = j.next)
1032
- T++, Z += j.value.length;
1033
- T--, z = h.slice(C, Z), V.index -= C;
1034
- } else if (V = l(fe, 0, z, ee), !V)
1031
+ for (var j = V; j !== p.tail && (Y < B || typeof j.value == "string"); j = j.next)
1032
+ T++, Y += j.value.length;
1033
+ T--, z = h.slice(C, Y), Z.index -= C;
1034
+ } else if (Z = s(ue, 0, z, J), !Z)
1035
1035
  continue;
1036
- var ge = V.index, Ue = V[0], eu = z.slice(0, ge), uu = z.slice(ge + Ue.length), tu = C + z.length;
1036
+ var ge = Z.index, Ue = Z[0], eu = z.slice(0, ge), uu = z.slice(ge + Ue.length), tu = C + z.length;
1037
1037
  D && tu > D.reach && (D.reach = tu);
1038
- var Xe = Y.prev;
1038
+ var Xe = V.prev;
1039
1039
  eu && (Xe = _(p, Xe, eu), C += eu.length), g(p, Xe, T);
1040
- var qe = new c(R, W ? i.tokenize(Ue, W) : Ue, q, Ue);
1041
- if (Y = _(p, Xe, qe), uu && _(p, Y, uu), T > 1) {
1040
+ var qe = new c(R, G ? i.tokenize(Ue, G) : Ue, q, Ue);
1041
+ if (V = _(p, Xe, qe), uu && _(p, V, uu), T > 1) {
1042
1042
  var je = {
1043
1043
  cause: R + "," + $,
1044
1044
  reach: tu
1045
1045
  };
1046
- s(h, p, m, Y.prev, C, je), D && je.reach > D.reach && (D.reach = je.reach);
1046
+ l(h, p, m, V.prev, C, je), D && je.reach > D.reach && (D.reach = je.reach);
1047
1047
  }
1048
1048
  }
1049
1049
  }
@@ -1079,8 +1079,8 @@ function Vi() {
1079
1079
  i.manual || i.highlightAll();
1080
1080
  }
1081
1081
  if (!i.manual) {
1082
- var y = document.readyState;
1083
- y === "loading" || y === "interactive" && E && E.defer ? document.addEventListener("DOMContentLoaded", A) : window.requestAnimationFrame ? window.requestAnimationFrame(A) : window.setTimeout(A, 16);
1082
+ var v = document.readyState;
1083
+ v === "loading" || v === "interactive" && E && E.defer ? document.addEventListener("DOMContentLoaded", A) : window.requestAnimationFrame ? window.requestAnimationFrame(A) : window.setTimeout(A, 16);
1084
1084
  }
1085
1085
  return i;
1086
1086
  }(u);
@@ -1474,18 +1474,18 @@ function Vi() {
1474
1474
  bat: "batch",
1475
1475
  h: "c",
1476
1476
  tex: "latex"
1477
- }, i = "data-src-status", c = "loading", l = "loaded", s = "failed", f = "pre[data-src]:not([" + i + '="' + l + '"]):not([' + i + '="' + c + '"])';
1478
- function _(E, A, y) {
1477
+ }, i = "data-src-status", c = "loading", s = "loaded", l = "failed", f = "pre[data-src]:not([" + i + '="' + s + '"]):not([' + i + '="' + c + '"])';
1478
+ function _(E, A, v) {
1479
1479
  var h = new XMLHttpRequest();
1480
1480
  h.open("GET", E, !0), h.onreadystatechange = function() {
1481
- h.readyState == 4 && (h.status < 400 && h.responseText ? A(h.responseText) : h.status >= 400 ? y(r(h.status, h.statusText)) : y(o));
1481
+ h.readyState == 4 && (h.status < 400 && h.responseText ? A(h.responseText) : h.status >= 400 ? v(r(h.status, h.statusText)) : v(o));
1482
1482
  }, h.send(null);
1483
1483
  }
1484
1484
  function g(E) {
1485
1485
  var A = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(E || "");
1486
1486
  if (A) {
1487
- var y = Number(A[1]), h = A[2], p = A[3];
1488
- return h ? p ? [y, Number(p)] : [y, void 0] : [y, y];
1487
+ var v = Number(A[1]), h = A[2], p = A[3];
1488
+ return h ? p ? [v, Number(p)] : [v, void 0] : [v, v];
1489
1489
  }
1490
1490
  }
1491
1491
  t.hooks.add("before-highlightall", function(E) {
@@ -1497,29 +1497,29 @@ function Vi() {
1497
1497
  );
1498
1498
  if (A.matches(f)) {
1499
1499
  E.code = "", A.setAttribute(i, c);
1500
- var y = A.appendChild(document.createElement("CODE"));
1501
- y.textContent = n;
1500
+ var v = A.appendChild(document.createElement("CODE"));
1501
+ v.textContent = n;
1502
1502
  var h = A.getAttribute("data-src"), p = E.language;
1503
1503
  if (p === "none") {
1504
1504
  var m = (/\.(\w+)$/.exec(h) || [, "none"])[1];
1505
1505
  p = a[m] || m;
1506
1506
  }
1507
- t.util.setLanguage(y, p), t.util.setLanguage(A, p);
1507
+ t.util.setLanguage(v, p), t.util.setLanguage(A, p);
1508
1508
  var k = t.plugins.autoloader;
1509
1509
  k && k.loadLanguages(p), _(
1510
1510
  h,
1511
1511
  function(x) {
1512
- A.setAttribute(i, l);
1512
+ A.setAttribute(i, s);
1513
1513
  var D = g(A.getAttribute("data-range"));
1514
1514
  if (D) {
1515
- var R = x.split(/\r\n?|\n/g), v = D[0], $ = D[1] == null ? R.length : D[1];
1516
- v < 0 && (v += R.length), v = Math.max(0, Math.min(v - 1, R.length)), $ < 0 && ($ += R.length), $ = Math.max(0, Math.min($, R.length)), x = R.slice(v, $).join(`
1517
- `), A.hasAttribute("data-start") || A.setAttribute("data-start", String(v + 1));
1515
+ var R = x.split(/\r\n?|\n/g), y = D[0], $ = D[1] == null ? R.length : D[1];
1516
+ y < 0 && (y += R.length), y = Math.max(0, Math.min(y - 1, R.length)), $ < 0 && ($ += R.length), $ = Math.max(0, Math.min($, R.length)), x = R.slice(y, $).join(`
1517
+ `), A.hasAttribute("data-start") || A.setAttribute("data-start", String(y + 1));
1518
1518
  }
1519
- y.textContent = x, t.highlightElement(y);
1519
+ v.textContent = x, t.highlightElement(v);
1520
1520
  },
1521
1521
  function(x) {
1522
- A.setAttribute(i, s), y.textContent = x;
1522
+ A.setAttribute(i, l), v.textContent = x;
1523
1523
  }
1524
1524
  );
1525
1525
  }
@@ -1532,7 +1532,7 @@ function Vi() {
1532
1532
  * @param {ParentNode} [container=document]
1533
1533
  */
1534
1534
  highlight: function(A) {
1535
- for (var y = (A || document).querySelectorAll(f), h = 0, p; p = y[h++]; )
1535
+ for (var v = (A || document).querySelectorAll(f), h = 0, p; p = v[h++]; )
1536
1536
  t.highlightElement(p);
1537
1537
  }
1538
1538
  };
@@ -1578,7 +1578,7 @@ function ea() {
1578
1578
  ])
1579
1579
  ]);
1580
1580
  }
1581
- const Vs = /* @__PURE__ */ he({
1581
+ const Vl = /* @__PURE__ */ he({
1582
1582
  __name: "Bubble",
1583
1583
  props: {
1584
1584
  avatar: {},
@@ -1593,13 +1593,13 @@ const Vs = /* @__PURE__ */ he({
1593
1593
  emits: ["typingComplete"],
1594
1594
  setup(e, { emit: u }) {
1595
1595
  const t = u;
1596
- return gt("n-bubble", ea()), (n, r) => (P(), I(w(ln), {
1596
+ return gt("n-bubble", ea()), (n, r) => (P(), I(w(sn), {
1597
1597
  tag: "div",
1598
1598
  class: Du([w(Mt), n.placement === "end" ? `${w(Mt)}--reverse` : ""])
1599
1599
  }, {
1600
1600
  default: M(() => [
1601
1601
  H(n.$slots, "avatar", {}, () => [
1602
- n.avatar ? (P(), I(w(Uo), K({
1602
+ n.avatar ? (P(), I(w(Uo), ee({
1603
1603
  key: 0,
1604
1604
  round: ""
1605
1605
  }, n.avatar.props), {
@@ -1607,7 +1607,7 @@ const Vs = /* @__PURE__ */ he({
1607
1607
  (P(), I(Se(n.avatar.icon)))
1608
1608
  ]),
1609
1609
  _: 1
1610
- }, 16)) : re("", !0)
1610
+ }, 16)) : oe("", !0)
1611
1611
  ]),
1612
1612
  X(w(Je), { vertical: "" }, {
1613
1613
  default: M(() => [
@@ -1621,7 +1621,7 @@ const Vs = /* @__PURE__ */ he({
1621
1621
  class: Du([`${w(Mt)}__content`, n.contentClass]),
1622
1622
  style: on(n.contentStyle)
1623
1623
  }, [
1624
- X(w(js), {
1624
+ X(w(jl), {
1625
1625
  typing: n.typing,
1626
1626
  markdown: n.markdown,
1627
1627
  value: n.content,
@@ -1640,7 +1640,7 @@ const Vs = /* @__PURE__ */ he({
1640
1640
  _: 3
1641
1641
  }, 8, ["class"]));
1642
1642
  }
1643
- }), Zs = /* @__PURE__ */ he({
1643
+ }), Zl = /* @__PURE__ */ he({
1644
1644
  __name: "ConfigProviders",
1645
1645
  props: {
1646
1646
  globalStyle: { type: Boolean, default: !1 },
@@ -1653,7 +1653,7 @@ const Vs = /* @__PURE__ */ he({
1653
1653
  messageProviderProps: {}
1654
1654
  },
1655
1655
  setup(e) {
1656
- const u = G(!1);
1656
+ const u = W(!1);
1657
1657
  function t() {
1658
1658
  window.$dialog = Yo(), window.$loadingBar = Xo(), window.$message = Qo(), window.$modal = Jo(), window.$notification = Ko(), window.$loading = {
1659
1659
  start: () => {
@@ -1674,17 +1674,17 @@ const Vs = /* @__PURE__ */ he({
1674
1674
  return null;
1675
1675
  }
1676
1676
  });
1677
- return (r, o) => (P(), I(w(qo), oe(Fe(r.configProviderProps)), {
1677
+ return (r, o) => (P(), I(w(qo), ie(Fe(r.configProviderProps)), {
1678
1678
  default: M(() => [
1679
- X(w(jo), oe(Fe(r.loadingBarProps)), {
1679
+ X(w(jo), ie(Fe(r.loadingBarProps)), {
1680
1680
  default: M(() => [
1681
- X(w(Ho), oe(Fe(r.dialogProviderProps)), {
1681
+ X(w(Ho), ie(Fe(r.dialogProviderProps)), {
1682
1682
  default: M(() => [
1683
- X(w(Go), oe(Fe(r.modalProviderProps)), {
1683
+ X(w(Go), ie(Fe(r.modalProviderProps)), {
1684
1684
  default: M(() => [
1685
- X(w(Wo), oe(Fe(r.notificationProviderProps)), {
1685
+ X(w(Wo), ie(Fe(r.notificationProviderProps)), {
1686
1686
  default: M(() => [
1687
- X(w(Vo), oe(Fe(r.messageProviderProps)), {
1687
+ X(w(Vo), ie(Fe(r.messageProviderProps)), {
1688
1688
  default: M(() => [
1689
1689
  H(r.$slots, "default"),
1690
1690
  X(w(n))
@@ -1703,8 +1703,8 @@ const Vs = /* @__PURE__ */ he({
1703
1703
  ]),
1704
1704
  _: 3
1705
1705
  }, 16),
1706
- r.globalStyle ? (P(), I(w(Zo), { key: 0 })) : re("", !0),
1707
- X(w(m0), K({ show: u.value }, r.fullLoadingProps), null, 16, ["show"])
1706
+ r.globalStyle ? (P(), I(w(Zo), { key: 0 })) : oe("", !0),
1707
+ X(w(m0), ee({ show: u.value }, r.fullLoadingProps), null, 16, ["show"])
1708
1708
  ]),
1709
1709
  _: 3
1710
1710
  }, 16));
@@ -1723,14 +1723,14 @@ const Vs = /* @__PURE__ */ he({
1723
1723
  viewBox: "0 0 24 24"
1724
1724
  };
1725
1725
  function na(e, u, t, n, r, o) {
1726
- return P(), ae("svg", ta, u[0] || (u[0] = [
1726
+ return P(), ce("svg", ta, u[0] || (u[0] = [
1727
1727
  Ou("path", {
1728
1728
  fill: "#757575",
1729
1729
  d: "M18.355 6.54h-1.94V4.69a2.69 2.69 0 0 0-1.646-2.484A2.7 2.7 0 0 0 13.745 2h-8.05a2.68 2.68 0 0 0-2.67 2.69v10.09a2.68 2.68 0 0 0 2.67 2.69h1.94v1.85a2.68 2.68 0 0 0 2.67 2.68h8a2.68 2.68 0 0 0 2.67-2.68V9.23a2.69 2.69 0 0 0-2.62-2.69M7.635 9.23v6.74h-1.94a1.18 1.18 0 0 1-1.17-1.19V4.69a1.18 1.18 0 0 1 1.17-1.19h8.05a1.18 1.18 0 0 1 1.17 1.19v1.85h-4.61a2.69 2.69 0 0 0-2.67 2.69"
1730
1730
  }, null, -1)
1731
1731
  ]));
1732
1732
  }
1733
- const ra = /* @__PURE__ */ dn(ua, [["render", na]]), Ys = /* @__PURE__ */ he({
1733
+ const ra = /* @__PURE__ */ dn(ua, [["render", na]]), Yl = /* @__PURE__ */ he({
1734
1734
  __name: "CopyButton",
1735
1735
  props: {
1736
1736
  value: {},
@@ -1750,14 +1750,14 @@ const ra = /* @__PURE__ */ dn(ua, [["render", na]]), Ys = /* @__PURE__ */ he({
1750
1750
  function o(a) {
1751
1751
  a.preventDefault(), r();
1752
1752
  }
1753
- return (a, i) => (P(), I(w(Pr), oe(Fe(a.tooltipProps)), {
1753
+ return (a, i) => (P(), I(w(Pr), ie(Fe(a.tooltipProps)), {
1754
1754
  trigger: M(() => [
1755
1755
  Ou("div", {
1756
1756
  style: { cursor: "pointer" },
1757
1757
  onClick: o
1758
1758
  }, [
1759
1759
  H(a.$slots, "default", {}, () => [
1760
- X(w(Nu), K({
1760
+ X(w(Nu), ee({
1761
1761
  quaternary: "",
1762
1762
  size: "tiny"
1763
1763
  }, a.buttonProps), {
@@ -1780,7 +1780,7 @@ const ra = /* @__PURE__ */ dn(ua, [["render", na]]), Ys = /* @__PURE__ */ he({
1780
1780
  }, 16));
1781
1781
  }
1782
1782
  }), $r = (e, { manual: u, ready: t = !0, refreshDeps: n = [], refreshDepsAction: r }) => {
1783
- const o = G(!1);
1783
+ const o = W(!1);
1784
1784
  return Re(() => {
1785
1785
  !u && e.options.refreshDeps !== !0 && (o.value = w(t));
1786
1786
  }), n instanceof Array ? Be(
@@ -1821,8 +1821,8 @@ const it = /* @__PURE__ */ new Map(), oa = (e, u, t) => {
1821
1821
  at.set(e, u), u.then((t) => (at.delete(e), t)).catch((t) => {
1822
1822
  throw at.delete(e), t;
1823
1823
  });
1824
- }, Ke = {}, la = [], sa = (e, u) => {
1825
- Ke[e] && (Ke[e].forEach((t) => t(u)), la.forEach((t) => t({
1824
+ }, Ke = {}, sa = [], la = (e, u) => {
1825
+ Ke[e] && (Ke[e].forEach((t) => t(u)), sa.forEach((t) => t({
1826
1826
  type: e,
1827
1827
  data: u
1828
1828
  })));
@@ -1836,23 +1836,23 @@ const it = /* @__PURE__ */ new Map(), oa = (e, u, t) => {
1836
1836
  setCache: r,
1837
1837
  getCache: o
1838
1838
  }) => {
1839
- const a = G(), i = G(), c = (s, f) => {
1840
- r ? r(f) : oa(s, t, f), sa(s, f.data);
1841
- }, l = (s, f = []) => o ? o(f) : ia(s);
1839
+ const a = W(), i = W(), c = (l, f) => {
1840
+ r ? r(f) : oa(l, t, f), la(l, f.data);
1841
+ }, s = (l, f = []) => o ? o(f) : ia(l);
1842
1842
  return Re(() => {
1843
1843
  if (!u)
1844
1844
  return;
1845
- const s = l(u);
1846
- s && Object.hasOwnProperty.call(s, "data") && (e.state.data = s.data, e.state.params = s.params, (n === -1 || (/* @__PURE__ */ new Date()).getTime() - s.time <= n) && (e.state.loading = !1)), a.value = Lt(u, (f) => {
1845
+ const l = s(u);
1846
+ l && Object.hasOwnProperty.call(l, "data") && (e.state.data = l.data, e.state.params = l.params, (n === -1 || (/* @__PURE__ */ new Date()).getTime() - l.time <= n) && (e.state.loading = !1)), a.value = Lt(u, (f) => {
1847
1847
  e.setState({ data: f });
1848
1848
  });
1849
1849
  }), an(() => {
1850
- var s;
1851
- (s = a.value) == null || s.call(a);
1850
+ var l;
1851
+ (l = a.value) == null || l.call(a);
1852
1852
  }), u ? {
1853
1853
  name: "cachePlugin",
1854
- onBefore: (s) => {
1855
- const f = l(u, s);
1854
+ onBefore: (l) => {
1855
+ const f = s(u, l);
1856
1856
  return !f || !Object.hasOwnProperty.call(f, "data") ? {} : n === -1 || (/* @__PURE__ */ new Date()).getTime() - f.time <= n ? {
1857
1857
  loading: !1,
1858
1858
  data: f?.data,
@@ -1861,24 +1861,24 @@ const it = /* @__PURE__ */ new Map(), oa = (e, u, t) => {
1861
1861
  data: f?.data
1862
1862
  };
1863
1863
  },
1864
- onRequest: (s, f) => {
1864
+ onRequest: (l, f) => {
1865
1865
  let _ = aa(u);
1866
- return _ && _ !== i.value ? { servicePromise: _ } : (_ = s(...f), i.value = _, ca(u, _), { servicePromise: _ });
1866
+ return _ && _ !== i.value ? { servicePromise: _ } : (_ = l(...f), i.value = _, ca(u, _), { servicePromise: _ });
1867
1867
  },
1868
- onSuccess: (s, f) => {
1868
+ onSuccess: (l, f) => {
1869
1869
  var _;
1870
1870
  u && ((_ = a.value) == null || _.call(a), c(u, {
1871
- data: s,
1871
+ data: l,
1872
1872
  params: f,
1873
1873
  time: (/* @__PURE__ */ new Date()).getTime()
1874
1874
  }), a.value = Lt(u, (g) => {
1875
1875
  e.setState({ data: g });
1876
1876
  }));
1877
1877
  },
1878
- onMutate: (s) => {
1878
+ onMutate: (l) => {
1879
1879
  var f;
1880
1880
  u && ((f = a.value) == null || f.call(a), c(u, {
1881
- data: s,
1881
+ data: l,
1882
1882
  params: e.state.params,
1883
1883
  time: (/* @__PURE__ */ new Date()).getTime()
1884
1884
  }), a.value = Lt(u, (_) => {
@@ -1947,36 +1947,36 @@ function Xn(e) {
1947
1947
  }
1948
1948
  var Ma = "Expected a function", La = Math.max, Na = Math.min;
1949
1949
  function Ur(e, u, t) {
1950
- var n, r, o, a, i, c, l = 0, s = !1, f = !1, _ = !0;
1950
+ var n, r, o, a, i, c, s = 0, l = !1, f = !1, _ = !0;
1951
1951
  if (typeof e != "function")
1952
1952
  throw new TypeError(Ma);
1953
- u = Xn(u) || 0, ft(t) && (s = !!t.leading, f = "maxWait" in t, o = f ? La(Xn(t.maxWait) || 0, u) : o, _ = "trailing" in t ? !!t.trailing : _);
1953
+ u = Xn(u) || 0, ft(t) && (l = !!t.leading, f = "maxWait" in t, o = f ? La(Xn(t.maxWait) || 0, u) : o, _ = "trailing" in t ? !!t.trailing : _);
1954
1954
  function g(x) {
1955
1955
  var D = n, R = r;
1956
- return n = r = void 0, l = x, a = e.apply(R, D), a;
1956
+ return n = r = void 0, s = x, a = e.apply(R, D), a;
1957
1957
  }
1958
1958
  function d(x) {
1959
- return l = x, i = setTimeout(y, u), s ? g(x) : a;
1959
+ return s = x, i = setTimeout(v, u), l ? g(x) : a;
1960
1960
  }
1961
1961
  function E(x) {
1962
- var D = x - c, R = x - l, v = u - D;
1963
- return f ? Na(v, o - R) : v;
1962
+ var D = x - c, R = x - s, y = u - D;
1963
+ return f ? Na(y, o - R) : y;
1964
1964
  }
1965
1965
  function A(x) {
1966
- var D = x - c, R = x - l;
1966
+ var D = x - c, R = x - s;
1967
1967
  return c === void 0 || D >= u || D < 0 || f && R >= o;
1968
1968
  }
1969
- function y() {
1969
+ function v() {
1970
1970
  var x = Nt();
1971
1971
  if (A(x))
1972
1972
  return h(x);
1973
- i = setTimeout(y, E(x));
1973
+ i = setTimeout(v, E(x));
1974
1974
  }
1975
1975
  function h(x) {
1976
1976
  return i = void 0, _ && n ? g(x) : (n = r = void 0, a);
1977
1977
  }
1978
1978
  function p() {
1979
- i !== void 0 && clearTimeout(i), l = 0, n = c = r = i = void 0;
1979
+ i !== void 0 && clearTimeout(i), s = 0, n = c = r = i = void 0;
1980
1980
  }
1981
1981
  function m() {
1982
1982
  return i === void 0 ? a : h(Nt());
@@ -1987,34 +1987,34 @@ function Ur(e, u, t) {
1987
1987
  if (i === void 0)
1988
1988
  return d(c);
1989
1989
  if (f)
1990
- return clearTimeout(i), i = setTimeout(y, u), g(c);
1990
+ return clearTimeout(i), i = setTimeout(v, u), g(c);
1991
1991
  }
1992
- return i === void 0 && (i = setTimeout(y, u)), a;
1992
+ return i === void 0 && (i = setTimeout(v, u)), a;
1993
1993
  }
1994
1994
  return k.cancel = p, k.flush = m, k;
1995
1995
  }
1996
1996
  const Ia = (e, { debounceWait: u, debounceLeading: t, debounceTrailing: n, debounceMaxWait: r }) => {
1997
- const o = G(), a = pe(() => {
1998
- const i = {}, c = w(t), l = w(n), s = w(r);
1999
- return c !== void 0 && (i.leading = c), l !== void 0 && (i.trailing = l), s !== void 0 && (i.maxWait = s), i;
1997
+ const o = W(), a = pe(() => {
1998
+ const i = {}, c = w(t), s = w(n), l = w(r);
1999
+ return c !== void 0 && (i.leading = c), s !== void 0 && (i.trailing = s), l !== void 0 && (i.maxWait = l), i;
2000
2000
  });
2001
2001
  return Re((i) => {
2002
2002
  if (w(u)) {
2003
2003
  const c = e.runAsync.bind(e);
2004
2004
  o.value = Ur(
2005
- (l) => {
2006
- l();
2005
+ (s) => {
2006
+ s();
2007
2007
  },
2008
2008
  w(u),
2009
2009
  a.value
2010
- ), e.runAsync = (...l) => new Promise((s, f) => {
2010
+ ), e.runAsync = (...s) => new Promise((l, f) => {
2011
2011
  var _;
2012
2012
  (_ = o.value) == null || _.call(o, () => {
2013
- c(...l).then(s).catch(f);
2013
+ c(...s).then(l).catch(f);
2014
2014
  });
2015
2015
  }), i(() => {
2016
- var l;
2017
- (l = o.value) == null || l.cancel(), e.runAsync = c;
2016
+ var s;
2017
+ (s = o.value) == null || s.cancel(), e.runAsync = c;
2018
2018
  });
2019
2019
  }
2020
2020
  }), w(u) ? {
@@ -2159,7 +2159,7 @@ const ke = new Ga(), Wa = (e, { ready: u = !0, debugKey: t, ...n }) => {
2159
2159
  }
2160
2160
  };
2161
2161
  }, Va = (e, { loadingDelay: u }) => {
2162
- const t = G(), n = () => {
2162
+ const t = W(), n = () => {
2163
2163
  t.value && (clearTimeout(w(t.value)), t.value = void 0);
2164
2164
  };
2165
2165
  return {
@@ -2206,7 +2206,7 @@ if (pn()) {
2206
2206
  }
2207
2207
  const Xa = (e, { pollingInterval: u, pollingWhenHidden: t = !0, pollingErrorRetryCount: n = -1 }) => {
2208
2208
  let r;
2209
- const o = G(), a = G(0), i = () => {
2209
+ const o = W(), a = W(0), i = () => {
2210
2210
  var c;
2211
2211
  r && clearTimeout(r), (c = o.value) == null || c.call(o);
2212
2212
  };
@@ -2264,7 +2264,7 @@ if (Za) {
2264
2264
  window.addEventListener("visibilitychange", e, !1), window.addEventListener("focus", e, !1);
2265
2265
  }
2266
2266
  const e0 = (e, { refreshOnWindowFocus: u, focusTimespan: t = 5e3 }) => {
2267
- const n = G(), r = () => {
2267
+ const n = W(), r = () => {
2268
2268
  var o;
2269
2269
  (o = n.value) == null || o.call(n);
2270
2270
  };
@@ -2287,7 +2287,7 @@ const e0 = (e, { refreshOnWindowFocus: u, focusTimespan: t = 5e3 }) => {
2287
2287
  name: "refreshOnWindowFocusPlugin"
2288
2288
  };
2289
2289
  }, u0 = (e, { retryInterval: u, retryCount: t }) => {
2290
- const n = G(), r = G(0), o = G(!1);
2290
+ const n = W(), r = W(0), o = W(!1);
2291
2291
  return t ? {
2292
2292
  name: "retryPlugin",
2293
2293
  onBefore: () => {
@@ -2324,16 +2324,16 @@ function n0(e, u, t) {
2324
2324
  const r0 = (e, { throttleWait: u, throttleLeading: t, throttleTrailing: n }) => {
2325
2325
  let r = null;
2326
2326
  const o = pe(() => {
2327
- const l = {};
2328
- return w(t) !== void 0 && (l.leading = w(t)), w(n) !== void 0 && (l.trailing = w(n)), l;
2329
- }), a = e.runAsync.bind(e), i = G(), c = pe(() => w(u));
2330
- return Be([c, o], (l) => {
2327
+ const s = {};
2328
+ return w(t) !== void 0 && (s.leading = w(t)), w(n) !== void 0 && (s.trailing = w(n)), s;
2329
+ }), a = e.runAsync.bind(e), i = W(), c = pe(() => w(u));
2330
+ return Be([c, o], (s) => {
2331
2331
  r && (r.cancel(), e.runAsync = a);
2332
- const [s, f] = l, _ = n0(
2332
+ const [l, f] = s, _ = n0(
2333
2333
  (g) => {
2334
2334
  g();
2335
2335
  },
2336
- w(s),
2336
+ w(l),
2337
2337
  f
2338
2338
  );
2339
2339
  r = _, i.value = _, e.runAsync = (...g) => new Promise((d, E) => {
@@ -2345,13 +2345,13 @@ const r0 = (e, { throttleWait: u, throttleLeading: t, throttleTrailing: n }) =>
2345
2345
  }, {
2346
2346
  immediate: !0
2347
2347
  }), w(u) ? (Po(() => {
2348
- var l;
2349
- (l = i.value) == null || l.cancel();
2348
+ var s;
2349
+ (s = i.value) == null || s.cancel();
2350
2350
  }), {
2351
2351
  name: "throttlePlugin",
2352
2352
  onCancel: () => {
2353
- var l;
2354
- (l = i.value) == null || l.cancel();
2353
+ var s;
2354
+ (s = i.value) == null || s.cancel();
2355
2355
  }
2356
2356
  }) : {};
2357
2357
  }, Kn = (e) => typeof e == "function", o0 = (e) => typeof e == "boolean";
@@ -2394,7 +2394,7 @@ class c0 {
2394
2394
  return Object.assign({}, ...a);
2395
2395
  }
2396
2396
  async runAsync(...u) {
2397
- var t, n, r, o, a, i, c, l, s, f, _;
2397
+ var t, n, r, o, a, i, c, s, l, f, _;
2398
2398
  this.count += 1;
2399
2399
  const g = this.count, { stopNow: d = !1, returnNow: E = !1, ...A } = this.runPluginHandler(
2400
2400
  "onBefore",
@@ -2411,42 +2411,42 @@ class c0 {
2411
2411
  return Promise.resolve(A.data);
2412
2412
  try {
2413
2413
  (n = (t = this.options).onBefore) == null || n.call(t, u);
2414
- } catch (y) {
2414
+ } catch (v) {
2415
2415
  return this.setState({
2416
- error: y,
2416
+ error: v,
2417
2417
  loading: !1
2418
- }), (o = (r = this.options).onError) == null || o.call(r, y, u), this.runPluginHandler("onError", y, u), new Promise(() => {
2418
+ }), (o = (r = this.options).onError) == null || o.call(r, v, u), this.runPluginHandler("onError", v, u), new Promise(() => {
2419
2419
  });
2420
2420
  }
2421
2421
  try {
2422
- let { servicePromise: y } = this.runPluginHandler("onRequest", this.serviceRef.value, u);
2422
+ let { servicePromise: v } = this.runPluginHandler("onRequest", this.serviceRef.value, u);
2423
2423
  const h = (m) => {
2424
2424
  var k, x, D, R;
2425
2425
  if (!this.options.concurrent && g !== this.count)
2426
2426
  return new Promise(() => {
2427
2427
  });
2428
- const v = this.options.formatResult ? this.options.formatResult(m) : m, $ = {
2428
+ const y = this.options.formatResult ? this.options.formatResult(m) : m, $ = {
2429
2429
  data: m
2430
2430
  };
2431
2431
  return this.setState({
2432
- data: v,
2432
+ data: y,
2433
2433
  error: void 0,
2434
2434
  loading: !1
2435
- }), (x = (k = this.options).onSuccess) == null || x.call(k, v, u), this.runPluginHandler("onSuccess", v, u, $), this.previousValidData = v, (R = (D = this.options).onFinally) == null || R.call(D, u, v, void 0), (this.options.concurrent || g === this.count) && this.runPluginHandler("onFinally", u, v, void 0), v;
2435
+ }), (x = (k = this.options).onSuccess) == null || x.call(k, y, u), this.runPluginHandler("onSuccess", y, u, $), this.previousValidData = y, (R = (D = this.options).onFinally) == null || R.call(D, u, y, void 0), (this.options.concurrent || g === this.count) && this.runPluginHandler("onFinally", u, y, void 0), y;
2436
2436
  };
2437
- y || (y = this.serviceRef.value(...u));
2438
- const p = await y;
2437
+ v || (v = this.serviceRef.value(...u));
2438
+ const p = await v;
2439
2439
  return h(p);
2440
- } catch (y) {
2440
+ } catch (v) {
2441
2441
  if (!this.options.concurrent && g !== this.count)
2442
2442
  return new Promise(() => {
2443
2443
  });
2444
2444
  throw this.setState({
2445
- error: y,
2445
+ error: v,
2446
2446
  loading: !1
2447
- }), (i = (a = this.options).onError) == null || i.call(a, y, u), this.runPluginHandler("onError", y, u), (Kn((c = this.options) == null ? void 0 : c.rollbackOnError) && ((l = this.options) != null && l.rollbackOnError(u)) || o0((s = this.options) == null ? void 0 : s.rollbackOnError) && this.options.rollbackOnError) && this.setState({
2447
+ }), (i = (a = this.options).onError) == null || i.call(a, v, u), this.runPluginHandler("onError", v, u), (Kn((c = this.options) == null ? void 0 : c.rollbackOnError) && ((s = this.options) != null && s.rollbackOnError(u)) || o0((l = this.options) == null ? void 0 : l.rollbackOnError) && this.options.rollbackOnError) && this.setState({
2448
2448
  data: this.previousValidData
2449
- }), (_ = (f = this.options).onFinally) == null || _.call(f, u, void 0, y), (this.options.concurrent || g === this.count) && this.runPluginHandler("onFinally", u, void 0, y), y;
2449
+ }), (_ = (f = this.options).onFinally) == null || _.call(f, u, void 0, v), (this.options.concurrent || g === this.count) && this.runPluginHandler("onFinally", u, void 0, v), v;
2450
2450
  }
2451
2451
  }
2452
2452
  run(...u) {
@@ -2472,15 +2472,15 @@ class c0 {
2472
2472
  });
2473
2473
  }
2474
2474
  }
2475
- const l0 = Symbol(
2475
+ const s0 = Symbol(
2476
2476
  "USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY"
2477
2477
  );
2478
- function s0(e) {
2478
+ function l0(e) {
2479
2479
  return Object.keys(e).filter((t) => ["data", "loading", "params", "error"].includes(t)).length === 4;
2480
2480
  }
2481
2481
  function f0(e, u = {}, t = []) {
2482
2482
  const n = Sr(
2483
- l0,
2483
+ s0,
2484
2484
  {}
2485
2485
  ), { initialData: r = void 0, manual: o = !1, ready: a = !0, ...i } = {
2486
2486
  ...n ?? {},
@@ -2490,28 +2490,28 @@ function f0(e, u = {}, t = []) {
2490
2490
  ready: a,
2491
2491
  initialData: r,
2492
2492
  ...i
2493
- }, l = G(e), s = Fu({
2493
+ }, s = W(e), l = Fu({
2494
2494
  data: r,
2495
2495
  loading: !1,
2496
2496
  params: void 0,
2497
2497
  error: void 0
2498
2498
  }), f = (E, A) => {
2499
- A ? s[A] = E : s0(E) && (s.data = E.data, s.loading = E.loading, s.error = E.error, s.params = E.params);
2499
+ A ? l[A] = E : l0(E) && (l.data = E.data, l.loading = E.loading, l.error = E.error, l.params = E.params);
2500
2500
  }, _ = t.map((E) => {
2501
2501
  var A;
2502
2502
  return (A = E?.onInit) == null ? void 0 : A.call(E, c);
2503
2503
  }).filter(Boolean), g = new c0(
2504
- l,
2504
+ s,
2505
2505
  c,
2506
2506
  f,
2507
- Object.assign({}, ..._, s)
2507
+ Object.assign({}, ..._, l)
2508
2508
  );
2509
2509
  g.options = c, g.pluginImpls = t.map((E) => E(g, c));
2510
2510
  const d = pe(() => Qt(a) ? a.value : a);
2511
2511
  if (Re(() => {
2512
2512
  if (!o) {
2513
2513
  const E = g.state.params || u.defaultParams || [];
2514
- d.value && g.options.refreshDeps === !0 && l.value && g.run(...E);
2514
+ d.value && g.options.refreshDeps === !0 && s.value && g.run(...E);
2515
2515
  }
2516
2516
  }), !o && g.options.refreshDeps !== !0) {
2517
2517
  const E = g.state.params || u.defaultParams || [];
@@ -2520,7 +2520,7 @@ function f0(e, u = {}, t = []) {
2520
2520
  return an(() => {
2521
2521
  g.cancel();
2522
2522
  }), {
2523
- ...Ro(s),
2523
+ ...Ro(l),
2524
2524
  cancel: g.cancel.bind(g),
2525
2525
  refresh: g.refresh.bind(g),
2526
2526
  refreshAsync: g.refreshAsync.bind(g),
@@ -2556,7 +2556,7 @@ function bn(e, u, t) {
2556
2556
  );
2557
2557
  }
2558
2558
  function ze(e, u, t) {
2559
- return u ? su(ei, {
2559
+ return u ? lu(ei, {
2560
2560
  labelPlacement: "left",
2561
2561
  path: t,
2562
2562
  ...typeof u == "string" ? { label: u } : typeof u == "boolean" ? {} : u
@@ -2564,7 +2564,7 @@ function ze(e, u, t) {
2564
2564
  default: () => e
2565
2565
  }) : e;
2566
2566
  }
2567
- const Xs = /* @__PURE__ */ he({
2567
+ const Xl = /* @__PURE__ */ he({
2568
2568
  __name: "DataTablePlus",
2569
2569
  props: {
2570
2570
  api: { type: Function },
@@ -2600,17 +2600,17 @@ const Xs = /* @__PURE__ */ he({
2600
2600
  pageSlot: 5,
2601
2601
  prefix: (C) => `共${C.itemCount}条数据`,
2602
2602
  ...e.pagination && typeof e.pagination == "boolean" ? {} : e.pagination
2603
- }), l = G({
2603
+ }), s = W({
2604
2604
  page: 1,
2605
2605
  pageSize: 10,
2606
2606
  itemCount: 0
2607
- }), s = {
2608
- [i.page]: l.value.page,
2609
- [i.pageSize]: l.value.pageSize,
2607
+ }), l = {
2608
+ [i.page]: s.value.page,
2609
+ [i.pageSize]: s.value.pageSize,
2610
2610
  ...e.defaultParams
2611
- }, { loading: f, data: _, error: g, params: d, run: E, runAsync: A, refresh: y, refreshAsync: h, cancel: p, mutate: m } = bn(e.api, {
2611
+ }, { loading: f, data: _, error: g, params: d, run: E, runAsync: A, refresh: v, refreshAsync: h, cancel: p, mutate: m } = bn(e.api, {
2612
2612
  defaultParams: [
2613
- s
2613
+ l
2614
2614
  ],
2615
2615
  manual: e.manual,
2616
2616
  ...e.requestOptions,
@@ -2628,18 +2628,18 @@ const Xs = /* @__PURE__ */ he({
2628
2628
  }
2629
2629
  }, e.requestPlugins), k = pe(() => _.value ? Array.isArray(_.value[i.list]) ? _.value[i.list] : (console.warn(`DataTablePlus: data[${i.list}] must be an array`), []) : []), x = pe(() => e.columns?.reduce((C, z) => C + Number(z.width ?? 100), 0));
2630
2630
  function D(C, z) {
2631
- l.value.page = i.page in z[0] ? Number(z[0][i.page]) : 1, l.value.pageSize = i.pageSize in z[0] ? Number(z[0][i.pageSize]) : 10, l.value.itemCount = i.count in C ? Number(C[i.count]) : 0;
2632
- const T = z[0]?.[i.filter], V = z[0]?.[i.sorter];
2631
+ s.value.page = i.page in z[0] ? Number(z[0][i.page]) : 1, s.value.pageSize = i.pageSize in z[0] ? Number(z[0][i.pageSize]) : 10, s.value.itemCount = i.count in C ? Number(C[i.count]) : 0;
2632
+ const T = z[0]?.[i.filter], Z = z[0]?.[i.sorter];
2633
2633
  if (o) {
2634
2634
  for (const B of o)
2635
2635
  if ("key" in B) {
2636
2636
  if (T && B.key in T) {
2637
- const Z = T[B.key];
2638
- "filter" in B && B.filter && (B.filterMultiple ? Array.isArray(Z) && (B.filterOptionValues = Z) : Array.isArray(Z) || (B.filterOptionValue = Z));
2637
+ const Y = T[B.key];
2638
+ "filter" in B && B.filter && (B.filterMultiple ? Array.isArray(Y) && (B.filterOptionValues = Y) : Array.isArray(Y) || (B.filterOptionValue = Y));
2639
2639
  }
2640
- if ("sorter" in B && typeof B.sorter == "boolean" && (B.sortOrder = !1), V && B.key in V) {
2641
- const Z = V[B.key];
2642
- "sorter" in B && B.sorter && (B.sortOrder = Z);
2640
+ if ("sorter" in B && typeof B.sorter == "boolean" && (B.sortOrder = !1), Z && B.key in Z) {
2641
+ const Y = Z[B.key];
2642
+ "sorter" in B && B.sorter && (B.sortOrder = Y);
2643
2643
  }
2644
2644
  }
2645
2645
  }
@@ -2650,7 +2650,7 @@ const Xs = /* @__PURE__ */ he({
2650
2650
  ...C
2651
2651
  });
2652
2652
  }
2653
- const v = {
2653
+ const y = {
2654
2654
  onUpdatePage: (C) => {
2655
2655
  n("update:page", C), !f.value && R({
2656
2656
  [i.page]: C
@@ -2689,11 +2689,11 @@ const Xs = /* @__PURE__ */ he({
2689
2689
  onUpdateExpandedRowKeys: (C) => {
2690
2690
  n("update:expandedRowKeys", C);
2691
2691
  }
2692
- }, $ = G(!1), N = G(), W = G({
2692
+ }, $ = W(!1), N = W(), G = W({
2693
2693
  x: 0,
2694
2694
  y: 0
2695
2695
  });
2696
- function ee(C, z) {
2696
+ function J(C, z) {
2697
2697
  $.value = !1, n("contextMenuSelect", {
2698
2698
  key: C,
2699
2699
  option: z,
@@ -2707,7 +2707,7 @@ const Xs = /* @__PURE__ */ he({
2707
2707
  },
2708
2708
  onContextmenu: (T) => {
2709
2709
  n("contextMenuRow", { row: C, index: z, event: T }), e.contextMenuOptions && (T.preventDefault(), $.value = !1, N.value = C, cn(() => {
2710
- $.value = !0, W.value = {
2710
+ $.value = !0, G.value = {
2711
2711
  x: T.x,
2712
2712
  y: T.y
2713
2713
  };
@@ -2715,24 +2715,24 @@ const Xs = /* @__PURE__ */ he({
2715
2715
  }
2716
2716
  };
2717
2717
  }
2718
- const q = G(!1);
2719
- function ce(C, z) {
2718
+ const q = W(!1);
2719
+ function se(C, z) {
2720
2720
  z && R({
2721
2721
  [z]: C
2722
2722
  });
2723
2723
  }
2724
- const fe = {
2724
+ const ue = {
2725
2725
  loading: f,
2726
2726
  data: _,
2727
2727
  error: g,
2728
2728
  params: d,
2729
- pagination: l,
2729
+ pagination: s,
2730
2730
  rawList: k,
2731
2731
  dataTableRef: a
2732
- }, Y = {
2732
+ }, V = {
2733
2733
  run: E,
2734
2734
  runAsync: A,
2735
- refresh: y,
2735
+ refresh: v,
2736
2736
  refreshAsync: h,
2737
2737
  cancel: p,
2738
2738
  mutate: m,
@@ -2743,50 +2743,50 @@ const Xs = /* @__PURE__ */ he({
2743
2743
  runParamsAsync: async (C) => A(Object.assign(d.value[0], C))
2744
2744
  };
2745
2745
  return u({
2746
- refs: fe,
2747
- actions: Y
2746
+ refs: ue,
2747
+ actions: V
2748
2748
  }), (C, z) => (P(), I(w(Je), { vertical: "" }, {
2749
2749
  default: M(() => [
2750
2750
  H(C.$slots, "filter", {
2751
- refs: fe,
2752
- actions: Y
2751
+ refs: ue,
2752
+ actions: V
2753
2753
  }, () => [
2754
2754
  X(w(Je), { vertical: "" }, {
2755
2755
  default: M(() => [
2756
- r.value.grid ? (P(), I(w(lt), oe(K({ key: 0 }, C.filterGridProps)), {
2756
+ r.value.grid ? (P(), I(w(st), ie(ee({ key: 0 }, C.filterGridProps)), {
2757
2757
  default: M(() => [
2758
- (P(!0), ae(ve, null, We(C.filterOptions?.filter((T) => !T.collapsed), ({ key: T, gridItemProps: V, render: B, ...Z }, j) => (P(), I(w(st), K({
2758
+ (P(!0), ce(ve, null, We(C.filterOptions?.filter((T) => !T.collapsed), ({ key: T, gridItemProps: Z, render: B, ...Y }, j) => (P(), I(w(lt), ee({
2759
2759
  key: j,
2760
2760
  span: 12
2761
- }, { ref_for: !0 }, V), {
2761
+ }, { ref_for: !0 }, Z), {
2762
2762
  default: M(() => [
2763
- B ? (P(), I(Se(w(ze)(B(fe, Y), Z.label, T)), { key: 0 })) : (P(), I(w(Ve), {
2763
+ B ? (P(), I(Se(w(ze)(B(ue, V), Y.label, T)), { key: 0 })) : (P(), I(w(Ve), {
2764
2764
  key: 1,
2765
- options: Z,
2765
+ options: Y,
2766
2766
  value: T ? w(d)[0][T] : void 0,
2767
2767
  path: T,
2768
- "onUpdate:value": (ge) => ce(ge, T)
2768
+ "onUpdate:value": (ge) => se(ge, T)
2769
2769
  }, null, 8, ["options", "value", "path", "onUpdate:value"]))
2770
2770
  ]),
2771
2771
  _: 2
2772
2772
  }, 1040))), 128))
2773
2773
  ]),
2774
2774
  _: 1
2775
- }, 16)) : re("", !0),
2776
- r.value.flex ? (P(), I(w(Je), oe(K({ key: 1 }, C.filterFlexProps)), {
2775
+ }, 16)) : oe("", !0),
2776
+ r.value.flex ? (P(), I(w(Je), ie(ee({ key: 1 }, C.filterFlexProps)), {
2777
2777
  default: M(() => [
2778
- (P(!0), ae(ve, null, We(C.filterOptions?.filter((T) => !T.collapsed), ({ key: T, render: V, ...B }, Z) => (P(), ae(ve, { key: Z }, [
2779
- V ? (P(), I(Se(w(ze)(V(fe, Y), B.label, T)), { key: 0 })) : (P(), I(w(Ve), {
2778
+ (P(!0), ce(ve, null, We(C.filterOptions?.filter((T) => !T.collapsed), ({ key: T, render: Z, ...B }, Y) => (P(), ce(ve, { key: Y }, [
2779
+ Z ? (P(), I(Se(w(ze)(Z(ue, V), B.label, T)), { key: 0 })) : (P(), I(w(Ve), {
2780
2780
  key: 1,
2781
2781
  options: B,
2782
2782
  value: T ? w(d)[0][T] : void 0,
2783
2783
  path: T,
2784
- "onUpdate:value": (j) => ce(j, T)
2784
+ "onUpdate:value": (j) => se(j, T)
2785
2785
  }, null, 8, ["options", "value", "path", "onUpdate:value"]))
2786
2786
  ], 64))), 128))
2787
2787
  ]),
2788
2788
  _: 1
2789
- }, 16)) : re("", !0),
2789
+ }, 16)) : oe("", !0),
2790
2790
  C.filterOptions?.filter((T) => T.collapsed) && C.filterOptions?.filter((T) => T.collapsed)?.length > 0 ? (P(), I(w(ui), {
2791
2791
  key: 2,
2792
2792
  style: { margin: "5px 0" }
@@ -2803,43 +2803,43 @@ const Xs = /* @__PURE__ */ he({
2803
2803
  })
2804
2804
  ]),
2805
2805
  _: 1
2806
- })) : re("", !0),
2806
+ })) : oe("", !0),
2807
2807
  X(w(ti), { show: q.value }, {
2808
2808
  default: M(() => [
2809
- r.value.collapsedGrid ? (P(), I(w(lt), oe(K({ key: 0 }, C.filterGridProps)), {
2809
+ r.value.collapsedGrid ? (P(), I(w(st), ie(ee({ key: 0 }, C.filterGridProps)), {
2810
2810
  default: M(() => [
2811
- (P(!0), ae(ve, null, We(C.filterOptions?.filter((T) => T.collapsed), ({ key: T, gridItemProps: V, render: B, ...Z }, j) => (P(), I(w(st), K({
2811
+ (P(!0), ce(ve, null, We(C.filterOptions?.filter((T) => T.collapsed), ({ key: T, gridItemProps: Z, render: B, ...Y }, j) => (P(), I(w(lt), ee({
2812
2812
  key: j,
2813
2813
  span: 12
2814
- }, { ref_for: !0 }, V), {
2814
+ }, { ref_for: !0 }, Z), {
2815
2815
  default: M(() => [
2816
- B ? (P(), I(Se(w(ze)(B(fe, Y), Z.label, T)), { key: 0 })) : (P(), I(w(Ve), {
2816
+ B ? (P(), I(Se(w(ze)(B(ue, V), Y.label, T)), { key: 0 })) : (P(), I(w(Ve), {
2817
2817
  key: 1,
2818
- options: Z,
2818
+ options: Y,
2819
2819
  value: T ? w(d)[0][T] : void 0,
2820
2820
  path: T,
2821
- "onUpdate:value": (ge) => ce(ge, T)
2821
+ "onUpdate:value": (ge) => se(ge, T)
2822
2822
  }, null, 8, ["options", "value", "path", "onUpdate:value"]))
2823
2823
  ]),
2824
2824
  _: 2
2825
2825
  }, 1040))), 128))
2826
2826
  ]),
2827
2827
  _: 1
2828
- }, 16)) : re("", !0),
2829
- r.value.collapsedFlex ? (P(), I(w(Je), oe(K({ key: 1 }, C.filterFlexProps)), {
2828
+ }, 16)) : oe("", !0),
2829
+ r.value.collapsedFlex ? (P(), I(w(Je), ie(ee({ key: 1 }, C.filterFlexProps)), {
2830
2830
  default: M(() => [
2831
- (P(!0), ae(ve, null, We(C.filterOptions?.filter((T) => T.collapsed), ({ key: T, render: V, ...B }, Z) => (P(), ae(ve, { key: Z }, [
2832
- V ? (P(), I(Se(w(ze)(V(fe, Y), B.label, T)), { key: 0 })) : (P(), I(w(Ve), {
2831
+ (P(!0), ce(ve, null, We(C.filterOptions?.filter((T) => T.collapsed), ({ key: T, render: Z, ...B }, Y) => (P(), ce(ve, { key: Y }, [
2832
+ Z ? (P(), I(Se(w(ze)(Z(ue, V), B.label, T)), { key: 0 })) : (P(), I(w(Ve), {
2833
2833
  key: 1,
2834
2834
  options: B,
2835
2835
  value: T ? w(d)[0][T] : void 0,
2836
2836
  path: T,
2837
- "onUpdate:value": (j) => ce(j, T)
2837
+ "onUpdate:value": (j) => se(j, T)
2838
2838
  }, null, 8, ["options", "value", "path", "onUpdate:value"]))
2839
2839
  ], 64))), 128))
2840
2840
  ]),
2841
2841
  _: 1
2842
- }, 16)) : re("", !0)
2842
+ }, 16)) : oe("", !0)
2843
2843
  ]),
2844
2844
  _: 1
2845
2845
  }, 8, ["show"])
@@ -2847,7 +2847,7 @@ const Xs = /* @__PURE__ */ he({
2847
2847
  _: 1
2848
2848
  })
2849
2849
  ]),
2850
- X(w(ni), K({
2850
+ X(w(ni), ee({
2851
2851
  ref: "data-table-ref",
2852
2852
  remote: "",
2853
2853
  "flex-height": "",
@@ -2861,34 +2861,49 @@ const Xs = /* @__PURE__ */ he({
2861
2861
  data: k.value,
2862
2862
  "row-props": F
2863
2863
  }, C.dataTableProps, {
2864
- "onUpdate:filters": v.onUpdateFilters,
2865
- "onUpdate:sorter": v.onUpdateSorter,
2866
- onLoad: v.onLoad,
2867
- onScroll: v.onScroll,
2868
- "onUpdate:checkedRowKeys": v.onUpdateCheckedRowKeys,
2869
- "onUpdate:expandedRowKeys": v.onUpdateExpandedRowKeys
2864
+ "onUpdate:filters": y.onUpdateFilters,
2865
+ "onUpdate:sorter": y.onUpdateSorter,
2866
+ onLoad: y.onLoad,
2867
+ onScroll: y.onScroll,
2868
+ "onUpdate:checkedRowKeys": y.onUpdateCheckedRowKeys,
2869
+ "onUpdate:expandedRowKeys": y.onUpdateExpandedRowKeys
2870
2870
  }), {
2871
2871
  empty: M(() => [
2872
- H(C.$slots, "empty")
2872
+ H(C.$slots, "empty", {
2873
+ refs: ue,
2874
+ actions: V
2875
+ })
2873
2876
  ]),
2874
2877
  loading: M(() => [
2875
- H(C.$slots, "loading")
2878
+ H(C.$slots, "loading", {
2879
+ refs: ue,
2880
+ actions: V
2881
+ })
2876
2882
  ]),
2877
2883
  _: 3
2878
2884
  }, 16, ["scroll-x", "style", "class", "row-key", "loading", "columns", "data", "onUpdate:filters", "onUpdate:sorter", "onLoad", "onScroll", "onUpdate:checkedRowKeys", "onUpdate:expandedRowKeys"]),
2879
- H(C.$slots, "actions", {}, () => [
2885
+ H(C.$slots, "actions", {
2886
+ refs: ue,
2887
+ actions: V
2888
+ }, () => [
2880
2889
  X(w(Je), null, {
2881
2890
  default: M(() => [
2882
- H(C.$slots, "extra"),
2883
- H(C.$slots, "pagination", {}, () => [
2884
- C.pagination ? (P(), I(w(Rr), K({
2891
+ H(C.$slots, "extra", {
2892
+ refs: ue,
2893
+ actions: V
2894
+ }),
2895
+ H(C.$slots, "pagination", {
2896
+ refs: ue,
2897
+ actions: V
2898
+ }, () => [
2899
+ C.pagination ? (P(), I(w(Rr), ee({
2885
2900
  key: 0,
2886
2901
  style: { "margin-left": "auto" },
2887
2902
  disabled: w(f)
2888
- }, { ...c, ...l.value }, {
2889
- "onUpdate:page": v.onUpdatePage,
2890
- "onUpdate:pageSize": v.onUpdatePageSize
2891
- }), null, 16, ["disabled", "onUpdate:page", "onUpdate:pageSize"])) : re("", !0)
2903
+ }, { ...c, ...s.value }, {
2904
+ "onUpdate:page": y.onUpdatePage,
2905
+ "onUpdate:pageSize": y.onUpdatePageSize
2906
+ }), null, 16, ["disabled", "onUpdate:page", "onUpdate:pageSize"])) : oe("", !0)
2892
2907
  ])
2893
2908
  ]),
2894
2909
  _: 3
@@ -2898,13 +2913,13 @@ const Xs = /* @__PURE__ */ he({
2898
2913
  key: 0,
2899
2914
  placement: "bottom-start",
2900
2915
  trigger: "manual",
2901
- x: W.value.x,
2902
- y: W.value.y,
2916
+ x: G.value.x,
2917
+ y: G.value.y,
2903
2918
  show: $.value,
2904
2919
  options: C.contextMenuOptions,
2905
2920
  onClickoutside: z[1] || (z[1] = (T) => $.value = !1),
2906
- onSelect: ee
2907
- }, null, 8, ["x", "y", "show", "options"])) : re("", !0)
2921
+ onSelect: J
2922
+ }, null, 8, ["x", "y", "show", "options"])) : oe("", !0)
2908
2923
  ]),
2909
2924
  _: 3
2910
2925
  }));
@@ -2942,7 +2957,7 @@ const m0 = /* @__PURE__ */ he({
2942
2957
  },
2943
2958
  setup(e) {
2944
2959
  gt(Qu, b0());
2945
- const u = G("auto");
2960
+ const u = W("auto");
2946
2961
  return Re(() => {
2947
2962
  if (e.disableScroll) {
2948
2963
  const t = e.scrollSelector instanceof HTMLElement ? e.scrollSelector : document.querySelector(e.scrollSelector);
@@ -2951,13 +2966,13 @@ const m0 = /* @__PURE__ */ he({
2951
2966
  }), (t, n) => (P(), I(w(jr), null, {
2952
2967
  default: M(() => [
2953
2968
  (P(), I(Oo, { to: t.appendTo }, [
2954
- t.show ? (P(), I(w(ln), {
2969
+ t.show ? (P(), I(w(sn), {
2955
2970
  key: 0,
2956
2971
  class: Du([w(Qu), { [`${w(Qu)}--mask`]: t.mask }, { [`${w(Qu)}--blur`]: t.blur }]),
2957
2972
  style: on(typeof t.mask == "object" ? t.mask : {})
2958
2973
  }, {
2959
2974
  default: M(() => [
2960
- X(w(Tr), oe(Fe(t.spinProps)), Mo({ _: 2 }, [
2975
+ X(w(Tr), ie(Fe(t.spinProps)), Mo({ _: 2 }, [
2961
2976
  t.$slots.description ? {
2962
2977
  name: "description",
2963
2978
  fn: M(() => [
@@ -2975,7 +2990,7 @@ const m0 = /* @__PURE__ */ he({
2975
2990
  ]), 1040)
2976
2991
  ]),
2977
2992
  _: 3
2978
- }, 8, ["class", "style"])) : re("", !0)
2993
+ }, 8, ["class", "style"])) : oe("", !0)
2979
2994
  ], 8, ["to"]))
2980
2995
  ]),
2981
2996
  _: 3
@@ -2994,15 +3009,15 @@ function qr(e, u) {
2994
3009
  return typeof e == "string" ? t : typeof e == "number" ? n : typeof e == "boolean" ? r : e;
2995
3010
  }
2996
3011
  function g0(e, u) {
2997
- const { rules: t, clearRules: n } = u ?? {}, r = Fu(e ? structuredClone(Jt(e)) : {}), o = t, a = G(), i = {
3012
+ const { rules: t, clearRules: n } = u ?? {}, r = Fu(e ? structuredClone(Jt(e)) : {}), o = t, a = W(), i = {
2998
3013
  ref: a,
2999
3014
  model: r,
3000
3015
  rules: o
3001
3016
  }, c = rt();
3002
- function l() {
3017
+ function s() {
3003
3018
  return a.value?.validate().then(() => c.trigger(Jt(fu(r))));
3004
3019
  }
3005
- function s() {
3020
+ function l() {
3006
3021
  a.value?.restoreValidation();
3007
3022
  }
3008
3023
  function f() {
@@ -3012,22 +3027,22 @@ function g0(e, u) {
3012
3027
  f(), Object.assign(r, structuredClone(e));
3013
3028
  }
3014
3029
  function g() {
3015
- s(), _();
3030
+ l(), _();
3016
3031
  }
3017
3032
  return {
3018
3033
  formRef: a,
3019
3034
  formValue: Lo(r),
3020
3035
  formRules: o,
3021
3036
  formProps: i,
3022
- validate: l,
3023
- resetValidation: s,
3037
+ validate: s,
3038
+ resetValidation: l,
3024
3039
  resetForm: _,
3025
3040
  reset: g,
3026
3041
  clear: f,
3027
3042
  onValidated: c.on
3028
3043
  };
3029
3044
  }
3030
- const Qs = /* @__PURE__ */ he({
3045
+ const Ql = /* @__PURE__ */ he({
3031
3046
  __name: "PresetForm",
3032
3047
  props: {
3033
3048
  options: {},
@@ -3048,20 +3063,20 @@ const Qs = /* @__PURE__ */ he({
3048
3063
  collapsedGrid: p[1] === "grid",
3049
3064
  collapsedFlex: p[1] === "flex"
3050
3065
  };
3051
- }), { formProps: o, formValue: a, formRules: i, formRef: c, validate: l, resetValidation: s, resetForm: f, reset: _, clear: g, onValidated: d } = g0(e.values, {
3066
+ }), { formProps: o, formValue: a, formRules: i, formRef: c, validate: s, resetValidation: l, resetForm: f, reset: _, clear: g, onValidated: d } = g0(e.values, {
3052
3067
  rules: e.rules
3053
3068
  });
3054
3069
  d((p) => {
3055
3070
  n("validated", p);
3056
3071
  });
3057
- const E = G(!1), A = {
3072
+ const E = W(!1), A = {
3058
3073
  formRef: c,
3059
3074
  formValue: a,
3060
3075
  formRules: i,
3061
3076
  formProps: o
3062
- }, y = {
3063
- validate: l,
3064
- resetValidation: s,
3077
+ }, v = {
3078
+ validate: s,
3079
+ resetValidation: l,
3065
3080
  resetForm: f,
3066
3081
  reset: _,
3067
3082
  clear: g,
@@ -3072,62 +3087,65 @@ const Qs = /* @__PURE__ */ he({
3072
3087
  };
3073
3088
  u({
3074
3089
  refs: A,
3075
- actions: y
3090
+ actions: v
3076
3091
  });
3077
3092
  function h(p, m) {
3078
- m && y.setValues({ [m]: p });
3093
+ m && v.setValues({ [m]: p });
3079
3094
  }
3080
3095
  return (p, m) => {
3081
3096
  const k = Vu("NFlex"), x = Vu("NButton"), D = Vu("NDivider"), R = Vu("NCollapseTransition");
3082
- return P(), I(w(oi), oe(Fe({ ...w(o), ...e.formProps })), {
3097
+ return P(), I(w(oi), ie(Fe({ ...w(o), ...e.formProps })), {
3083
3098
  default: M(() => [
3084
- H(p.$slots, "header"),
3099
+ H(p.$slots, "header", {
3100
+ refs: A,
3101
+ actions: v
3102
+ }),
3085
3103
  H(p.$slots, "default", {
3086
3104
  refs: A,
3087
- actions: y
3105
+ actions: v
3088
3106
  }, () => [
3089
- r.value.grid ? (P(), I(w(lt), oe(K({ key: 0 }, p.gridProps)), {
3107
+ r.value.grid ? (P(), I(w(st), ie(ee({ key: 0 }, p.gridProps)), {
3090
3108
  default: M(() => [
3091
- (P(!0), ae(ve, null, We(p.options?.filter((v) => !v.collapsed), ({ key: v, gridItemProps: $, render: N, ...W }, ee) => (P(), I(w(st), K({
3092
- key: ee,
3109
+ (P(!0), ce(ve, null, We(p.options?.filter((y) => !y.collapsed), ({ key: y, gridItemProps: $, render: N, ...G }, J) => (P(), I(w(lt), ee({
3110
+ key: J,
3093
3111
  span: 12
3094
3112
  }, { ref_for: !0 }, $), {
3095
3113
  default: M(() => [
3096
- N ? (P(), I(Se(w(ze)(N(A, y), W.label, v)), { key: 0 })) : (P(), I(w(Ve), {
3114
+ N ? (P(), I(Se(w(ze)(N(A, v), G.label, y)), { key: 0 })) : (P(), I(w(Ve), {
3097
3115
  key: 1,
3098
- options: W,
3099
- path: v,
3100
- value: v ? w(a)[v] : void 0,
3101
- "onUpdate:value": (F) => h(F, v)
3116
+ options: G,
3117
+ path: y,
3118
+ value: y ? w(a)[y] : void 0,
3119
+ "onUpdate:value": (F) => h(F, y)
3102
3120
  }, null, 8, ["options", "path", "value", "onUpdate:value"]))
3103
3121
  ]),
3104
3122
  _: 2
3105
3123
  }, 1040))), 128))
3106
3124
  ]),
3107
3125
  _: 1
3108
- }, 16)) : re("", !0),
3109
- r.value.flex ? (P(), I(k, oe(K({ key: 1 }, p.flexProps)), {
3126
+ }, 16)) : oe("", !0),
3127
+ r.value.flex ? (P(), I(k, ie(ee({ key: 1 }, p.flexProps)), {
3110
3128
  default: M(() => [
3111
- (P(!0), ae(ve, null, We(p.options?.filter((v) => !v.collapsed), ({ key: v, render: $, ...N }, W) => (P(), ae(ve, { key: W }, [
3112
- $ ? (P(), I(Se(w(ze)($(A, y), N.label, v)), { key: 0 })) : (P(), I(w(Ve), {
3129
+ (P(!0), ce(ve, null, We(p.options?.filter((y) => !y.collapsed), ({ key: y, render: $, ...N }, G) => (P(), ce(ve, { key: G }, [
3130
+ $ ? (P(), I(Se(w(ze)($(A, v), N.label, y)), { key: 0 })) : (P(), I(w(Ve), {
3113
3131
  key: 1,
3114
3132
  options: N,
3115
- path: v,
3116
- value: v ? w(a)[v] : void 0,
3117
- "onUpdate:value": (ee) => h(ee, v)
3133
+ path: y,
3134
+ value: y ? w(a)[y] : void 0,
3135
+ "onUpdate:value": (J) => h(J, y)
3118
3136
  }, null, 8, ["options", "path", "value", "onUpdate:value"]))
3119
3137
  ], 64))), 128))
3120
3138
  ]),
3121
3139
  _: 1
3122
- }, 16)) : re("", !0),
3123
- p.options?.filter((v) => v.collapsed) && p.options?.filter((v) => v.collapsed)?.length > 0 ? (P(), I(D, {
3140
+ }, 16)) : oe("", !0),
3141
+ p.options?.filter((y) => y.collapsed) && p.options?.filter((y) => y.collapsed)?.length > 0 ? (P(), I(D, {
3124
3142
  key: 2,
3125
3143
  style: { margin: "5px 0" }
3126
3144
  }, {
3127
3145
  default: M(() => [
3128
3146
  X(x, {
3129
3147
  size: "tiny",
3130
- onClick: m[0] || (m[0] = (v) => E.value = !E.value)
3148
+ onClick: m[0] || (m[0] = (y) => E.value = !E.value)
3131
3149
  }, {
3132
3150
  default: M(() => [
3133
3151
  Mu(Lu(E.value ? "折叠" : "展开"), 1)
@@ -3136,48 +3154,51 @@ const Qs = /* @__PURE__ */ he({
3136
3154
  })
3137
3155
  ]),
3138
3156
  _: 1
3139
- })) : re("", !0),
3157
+ })) : oe("", !0),
3140
3158
  X(R, { show: E.value }, {
3141
3159
  default: M(() => [
3142
- r.value.collapsedGrid ? (P(), I(w(lt), oe(K({ key: 0 }, p.gridProps)), {
3160
+ r.value.collapsedGrid ? (P(), I(w(st), ie(ee({ key: 0 }, p.gridProps)), {
3143
3161
  default: M(() => [
3144
- (P(!0), ae(ve, null, We(p.options?.filter((v) => v.collapsed), ({ key: v, gridItemProps: $, render: N, ...W }, ee) => (P(), I(w(st), K({
3145
- key: ee,
3162
+ (P(!0), ce(ve, null, We(p.options?.filter((y) => y.collapsed), ({ key: y, gridItemProps: $, render: N, ...G }, J) => (P(), I(w(lt), ee({
3163
+ key: J,
3146
3164
  span: 12
3147
3165
  }, { ref_for: !0 }, $), {
3148
3166
  default: M(() => [
3149
- N ? (P(), I(Se(w(ze)(N(A, y), W.label, v)), { key: 0 })) : (P(), I(w(Ve), {
3167
+ N ? (P(), I(Se(w(ze)(N(A, v), G.label, y)), { key: 0 })) : (P(), I(w(Ve), {
3150
3168
  key: 1,
3151
- options: W,
3152
- path: v,
3153
- value: v ? w(a)[v] : void 0,
3154
- "onUpdate:value": (F) => h(F, v)
3169
+ options: G,
3170
+ path: y,
3171
+ value: y ? w(a)[y] : void 0,
3172
+ "onUpdate:value": (F) => h(F, y)
3155
3173
  }, null, 8, ["options", "path", "value", "onUpdate:value"]))
3156
3174
  ]),
3157
3175
  _: 2
3158
3176
  }, 1040))), 128))
3159
3177
  ]),
3160
3178
  _: 1
3161
- }, 16)) : re("", !0),
3162
- r.value.collapsedFlex ? (P(), I(k, oe(K({ key: 1 }, p.flexProps)), {
3179
+ }, 16)) : oe("", !0),
3180
+ r.value.collapsedFlex ? (P(), I(k, ie(ee({ key: 1 }, p.flexProps)), {
3163
3181
  default: M(() => [
3164
- (P(!0), ae(ve, null, We(p.options?.filter((v) => v.collapsed), ({ key: v, render: $, ...N }, W) => (P(), ae(ve, { key: W }, [
3165
- $ ? (P(), I(Se(w(ze)($(A, y), N.label, v)), { key: 0 })) : (P(), I(w(Ve), {
3182
+ (P(!0), ce(ve, null, We(p.options?.filter((y) => y.collapsed), ({ key: y, render: $, ...N }, G) => (P(), ce(ve, { key: G }, [
3183
+ $ ? (P(), I(Se(w(ze)($(A, v), N.label, y)), { key: 0 })) : (P(), I(w(Ve), {
3166
3184
  key: 1,
3167
3185
  options: N,
3168
- path: v,
3169
- value: v ? w(a)[v] : void 0,
3170
- "onUpdate:value": (ee) => h(ee, v)
3186
+ path: y,
3187
+ value: y ? w(a)[y] : void 0,
3188
+ "onUpdate:value": (J) => h(J, y)
3171
3189
  }, null, 8, ["options", "path", "value", "onUpdate:value"]))
3172
3190
  ], 64))), 128))
3173
3191
  ]),
3174
3192
  _: 1
3175
- }, 16)) : re("", !0)
3193
+ }, 16)) : oe("", !0)
3176
3194
  ]),
3177
3195
  _: 1
3178
3196
  }, 8, ["show"])
3179
3197
  ]),
3180
- H(p.$slots, "footer")
3198
+ H(p.$slots, "footer", {
3199
+ refs: A,
3200
+ actions: v
3201
+ })
3181
3202
  ]),
3182
3203
  _: 3
3183
3204
  }, 16);
@@ -3198,11 +3219,11 @@ const Qs = /* @__PURE__ */ he({
3198
3219
  checkbox: hi,
3199
3220
  "date-picker": pi,
3200
3221
  "dynamic-tags": di,
3201
- input: sn,
3222
+ input: ln,
3202
3223
  "input-number": fi,
3203
3224
  search: w0,
3204
- radio: si,
3205
- rate: li,
3225
+ radio: li,
3226
+ rate: si,
3206
3227
  select: Or,
3207
3228
  slider: ci,
3208
3229
  switch: ai,
@@ -3210,45 +3231,45 @@ const Qs = /* @__PURE__ */ he({
3210
3231
  };
3211
3232
  function r() {
3212
3233
  const { label: o, type: a, props: i } = e.options ?? {};
3213
- function c(l) {
3214
- return ze(l, o, e.path);
3234
+ function c(s) {
3235
+ return ze(s, o, e.path);
3215
3236
  }
3216
3237
  if (a === "checkbox") {
3217
- const { options: l, ...s } = i ?? {};
3218
- return c(su(n[a], {
3238
+ const { options: s, ...l } = i ?? {};
3239
+ return c(lu(n[a], {
3219
3240
  value: e.value,
3220
3241
  "onUpdate:value": (f) => {
3221
3242
  t("update:value", f);
3222
3243
  },
3223
- ...s
3244
+ ...l
3224
3245
  }, {
3225
- default: () => l?.map((f) => su(mi, { ...f }))
3246
+ default: () => s?.map((f) => lu(mi, { ...f }))
3226
3247
  }));
3227
3248
  }
3228
3249
  if (a === "radio") {
3229
- const { options: l, ...s } = i ?? {};
3230
- return c(su(n[a], {
3250
+ const { options: s, ...l } = i ?? {};
3251
+ return c(lu(n[a], {
3231
3252
  value: e.value,
3232
3253
  "onUpdate:value": (f) => {
3233
3254
  t("update:value", f);
3234
3255
  },
3235
- ...s
3256
+ ...l
3236
3257
  }, {
3237
- default: () => l?.map((f) => su(gi, { ...f }))
3258
+ default: () => s?.map((f) => lu(gi, { ...f }))
3238
3259
  }));
3239
3260
  }
3240
3261
  if (a && n[a])
3241
- return c(su(n[a], {
3262
+ return c(lu(n[a], {
3242
3263
  value: e.value,
3243
- "onUpdate:value": (l) => {
3244
- t("update:value", l);
3264
+ "onUpdate:value": (s) => {
3265
+ t("update:value", s);
3245
3266
  },
3246
3267
  ...i
3247
3268
  }));
3248
3269
  }
3249
3270
  return (o, a) => (P(), I(Se(r())));
3250
3271
  }
3251
- }), Js = /* @__PURE__ */ he({
3272
+ }), Jl = /* @__PURE__ */ he({
3252
3273
  __name: "PresetSelect",
3253
3274
  props: {
3254
3275
  api: { type: Function },
@@ -3274,7 +3295,7 @@ const Qs = /* @__PURE__ */ he({
3274
3295
  pageSlot: 5,
3275
3296
  prefix: (F) => `共${F.itemCount}条数据`,
3276
3297
  ...e.pagination && typeof e.pagination == "boolean" ? {} : e.pagination
3277
- }), i = G({
3298
+ }), i = W({
3278
3299
  page: 1,
3279
3300
  pageSize: 10,
3280
3301
  itemCount: 0
@@ -3283,7 +3304,7 @@ const Qs = /* @__PURE__ */ he({
3283
3304
  [o.pageSize]: i.value.pageSize,
3284
3305
  [o.search]: "",
3285
3306
  ...e.defaultParams
3286
- }, { data: l, error: s, loading: f, params: _, run: g, runAsync: d, refresh: E, refreshAsync: A, cancel: y, mutate: h } = bn(e.api, {
3307
+ }, { data: s, error: l, loading: f, params: _, run: g, runAsync: d, refresh: E, refreshAsync: A, cancel: v, mutate: h } = bn(e.api, {
3287
3308
  defaultParams: [
3288
3309
  c
3289
3310
  ],
@@ -3298,10 +3319,10 @@ const Qs = /* @__PURE__ */ he({
3298
3319
  onError: (F, q) => {
3299
3320
  e.requestOptions?.onError?.(F, q), n("error", F, q);
3300
3321
  },
3301
- onFinally: (F, q, ce) => {
3302
- e.requestOptions?.onFinally?.(F, q, ce), n("finally", F, q, ce);
3322
+ onFinally: (F, q, se) => {
3323
+ e.requestOptions?.onFinally?.(F, q, se), n("finally", F, q, se);
3303
3324
  }
3304
- }, e.requestPlugins), p = pe(() => l.value ? Array.isArray(l.value[o.list]) ? l.value[o.list] : (console.warn(`DataTablePlus: data[${o.list}] must be an array`), []) : []), m = pe(() => typeof e.optionFormat == "function" ? p.value.map((F) => e.optionFormat(F)).filter((F) => !!F) : p.value.map((F) => ({
3325
+ }, e.requestPlugins), p = pe(() => s.value ? Array.isArray(s.value[o.list]) ? s.value[o.list] : (console.warn(`DataTablePlus: data[${o.list}] must be an array`), []) : []), m = pe(() => typeof e.optionFormat == "function" ? p.value.map((F) => e.optionFormat(F)).filter((F) => !!F) : p.value.map((F) => ({
3305
3326
  [o.label]: F[o.label],
3306
3327
  [o.value]: F[o.value],
3307
3328
  [o.children]: F[o.children],
@@ -3316,12 +3337,12 @@ const Qs = /* @__PURE__ */ he({
3316
3337
  ...F
3317
3338
  });
3318
3339
  }
3319
- const D = G(""), R = Mr(() => {
3340
+ const D = W(""), R = Mr(() => {
3320
3341
  x({
3321
3342
  [o.page]: 1,
3322
3343
  [o.search]: D.value
3323
3344
  });
3324
- }, typeof e.debounce == "number" ? e.debounce : 500), v = {
3345
+ }, typeof e.debounce == "number" ? e.debounce : 500), y = {
3325
3346
  onBlur: (F) => {
3326
3347
  n("blur", F);
3327
3348
  },
@@ -3336,8 +3357,8 @@ const Qs = /* @__PURE__ */ he({
3336
3357
  n("scroll", F);
3337
3358
  },
3338
3359
  onUpdateValue: (F, q) => {
3339
- const ce = Array.isArray(F) ? p.value.filter((fe) => F.includes(fe[o.rowKey])) : p.value.find((fe) => fe[o.rowKey] === F);
3340
- n("update:value", F, q, ce ? Jt(fu(ce)) : null);
3360
+ const se = Array.isArray(F) ? p.value.filter((ue) => F.includes(ue[o.rowKey])) : p.value.find((ue) => ue[o.rowKey] === F);
3361
+ n("update:value", F, q, se ? Jt(fu(se)) : null);
3341
3362
  },
3342
3363
  onSearch: (F) => {
3343
3364
  D.value = F, !f.value && (e.debounce ? R() : x({
@@ -3346,7 +3367,7 @@ const Qs = /* @__PURE__ */ he({
3346
3367
  }));
3347
3368
  },
3348
3369
  onUpdateShow: (F) => {
3349
- F && (l.value || e.manual && g(c));
3370
+ F && (s.value || e.manual && g(c));
3350
3371
  }
3351
3372
  }, $ = {
3352
3373
  onUpdatePage: (F) => {
@@ -3366,30 +3387,31 @@ const Qs = /* @__PURE__ */ he({
3366
3387
  [o.value]: F
3367
3388
  };
3368
3389
  }
3369
- return u({
3370
- refs: {
3371
- loading: f,
3372
- data: l,
3373
- error: s,
3374
- params: _,
3375
- pagination: i,
3376
- rawList: p,
3377
- selectRef: r
3390
+ const G = {
3391
+ loading: f,
3392
+ data: s,
3393
+ error: l,
3394
+ params: _,
3395
+ pagination: i,
3396
+ rawList: p,
3397
+ selectRef: r
3398
+ }, J = {
3399
+ run: g,
3400
+ runAsync: d,
3401
+ refresh: E,
3402
+ refreshAsync: A,
3403
+ cancel: v,
3404
+ mutate: h,
3405
+ setParams: (F) => {
3406
+ Object.assign(_.value[0], F);
3378
3407
  },
3379
- actions: {
3380
- run: g,
3381
- runAsync: d,
3382
- refresh: E,
3383
- refreshAsync: A,
3384
- cancel: y,
3385
- mutate: h,
3386
- setParams: (F) => {
3387
- Object.assign(_.value[0], F);
3388
- },
3389
- runParams: (F) => g(Object.assign(_.value[0], F)),
3390
- runParamsAsync: async (F) => d(Object.assign(_.value[0], F))
3391
- }
3392
- }), (F, q) => (P(), I(w(Or), K({
3408
+ runParams: (F) => g(Object.assign(_.value[0], F)),
3409
+ runParamsAsync: async (F) => d(Object.assign(_.value[0], F))
3410
+ };
3411
+ return u({
3412
+ refs: G,
3413
+ actions: J
3414
+ }), (F, q) => (P(), I(w(Or), ee({
3393
3415
  ref: "select-ref",
3394
3416
  remote: "",
3395
3417
  filterable: "",
@@ -3403,25 +3425,37 @@ const Qs = /* @__PURE__ */ he({
3403
3425
  "fallback-option": N,
3404
3426
  loading: w(f)
3405
3427
  }, F.selectProps, {
3406
- onBlur: v.onBlur,
3407
- onClear: v.onClear,
3408
- onCreate: v.onCreate,
3409
- onFocus: v.onFocus,
3410
- onScroll: v.onScroll,
3411
- onSearch: v.onSearch,
3412
- "onUpdate:show": v.onUpdateShow,
3413
- "onUpdate:value": v.onUpdateValue
3428
+ onBlur: y.onBlur,
3429
+ onClear: y.onClear,
3430
+ onCreate: y.onCreate,
3431
+ onFocus: y.onFocus,
3432
+ onScroll: y.onScroll,
3433
+ onSearch: y.onSearch,
3434
+ "onUpdate:show": y.onUpdateShow,
3435
+ "onUpdate:value": y.onUpdateValue
3414
3436
  }), {
3415
3437
  header: M(() => [
3416
- H(F.$slots, "header")
3438
+ H(F.$slots, "header", {
3439
+ refs: G,
3440
+ actions: J
3441
+ })
3417
3442
  ]),
3418
3443
  action: M(() => [
3419
- H(F.$slots, "action", {}, () => [
3444
+ H(F.$slots, "action", {
3445
+ refs: G,
3446
+ actions: J
3447
+ }, () => [
3420
3448
  X(w(Je), null, {
3421
3449
  default: M(() => [
3422
- H(F.$slots, "extra"),
3423
- H(F.$slots, "pagination", {}, () => [
3424
- F.pagination ? (P(), I(w(Rr), K({
3450
+ H(F.$slots, "extra", {
3451
+ refs: G,
3452
+ actions: J
3453
+ }),
3454
+ H(F.$slots, "pagination", {
3455
+ refs: G,
3456
+ actions: J
3457
+ }, () => [
3458
+ F.pagination ? (P(), I(w(Rr), ee({
3425
3459
  key: 0,
3426
3460
  style: { "margin-left": "auto" },
3427
3461
  simple: "",
@@ -3429,7 +3463,7 @@ const Qs = /* @__PURE__ */ he({
3429
3463
  }, { ...a, ...i.value }, {
3430
3464
  "onUpdate:page": $.onUpdatePage,
3431
3465
  "onUpdate:pageSize": $.onUpdatePageSize
3432
- }), null, 16, ["disabled", "onUpdate:page", "onUpdate:pageSize"])) : re("", !0)
3466
+ }), null, 16, ["disabled", "onUpdate:page", "onUpdate:pageSize"])) : oe("", !0)
3433
3467
  ])
3434
3468
  ]),
3435
3469
  _: 3
@@ -3445,7 +3479,7 @@ const Qs = /* @__PURE__ */ he({
3445
3479
  _: 3
3446
3480
  }, 16, ["multiple", "disabled", "options", "label-field", "value-field", "children-field", "value", "loading", "onBlur", "onClear", "onCreate", "onFocus", "onScroll", "onSearch", "onUpdate:show", "onUpdate:value"]));
3447
3481
  }
3448
- }), Ks = /* @__PURE__ */ he({
3482
+ }), Kl = /* @__PURE__ */ he({
3449
3483
  __name: "RemoteRequest",
3450
3484
  props: {
3451
3485
  api: { type: Function },
@@ -3457,7 +3491,7 @@ const Qs = /* @__PURE__ */ he({
3457
3491
  },
3458
3492
  emits: ["before", "success", "error", "finally"],
3459
3493
  setup(e, { expose: u, emit: t }) {
3460
- const n = t, r = { page: "page", pageSize: "pageSize", search: "search", ...e.fields }, { loading: o, data: a, error: i, params: c, run: l, runAsync: s, refresh: f, refreshAsync: _, cancel: g, mutate: d } = bn(e.api, {
3494
+ const n = t, r = { page: "page", pageSize: "pageSize", search: "search", ...e.fields }, { loading: o, data: a, error: i, params: c, run: s, runAsync: l, refresh: f, refreshAsync: _, cancel: g, mutate: d } = bn(e.api, {
3461
3495
  defaultParams: [
3462
3496
  {
3463
3497
  [r.page]: 1,
@@ -3468,17 +3502,17 @@ const Qs = /* @__PURE__ */ he({
3468
3502
  ],
3469
3503
  manual: e.manual,
3470
3504
  ...e.requestOptions,
3471
- onBefore: (y) => {
3472
- e.requestOptions?.onBefore?.(y), n("before", y);
3505
+ onBefore: (v) => {
3506
+ e.requestOptions?.onBefore?.(v), n("before", v);
3473
3507
  },
3474
- onSuccess: (y, h) => {
3475
- e.requestOptions?.onSuccess?.(y, h), n("success", y, h);
3508
+ onSuccess: (v, h) => {
3509
+ e.requestOptions?.onSuccess?.(v, h), n("success", v, h);
3476
3510
  },
3477
- onError: (y, h) => {
3478
- e.requestOptions?.onError?.(y, h), n("error", y, h);
3511
+ onError: (v, h) => {
3512
+ e.requestOptions?.onError?.(v, h), n("error", v, h);
3479
3513
  },
3480
- onFinally: (y, h, p) => {
3481
- e.requestOptions?.onFinally?.(y, h, p), n("finally", y, h, p);
3514
+ onFinally: (v, h, p) => {
3515
+ e.requestOptions?.onFinally?.(v, h, p), n("finally", v, h, p);
3482
3516
  }
3483
3517
  }, e.requestPlugins), E = {
3484
3518
  loading: o,
@@ -3486,19 +3520,19 @@ const Qs = /* @__PURE__ */ he({
3486
3520
  error: i,
3487
3521
  params: c
3488
3522
  }, A = {
3489
- run: l,
3490
- runAsync: s,
3523
+ run: s,
3524
+ runAsync: l,
3491
3525
  refresh: f,
3492
3526
  refreshAsync: _,
3493
3527
  cancel: g,
3494
3528
  mutate: d,
3495
- setParam: (y) => {
3496
- Object.assign(c.value[0], y);
3529
+ setParam: (v) => {
3530
+ Object.assign(c.value[0], v);
3497
3531
  },
3498
- runParam: (y) => l(Object.assign(c.value[0], y)),
3499
- runParamAsync: async (y) => s(Object.assign(c.value[0], y))
3532
+ runParam: (v) => s(Object.assign(c.value[0], v)),
3533
+ runParamAsync: async (v) => l(Object.assign(c.value[0], v))
3500
3534
  };
3501
- return u({ refs: E, actions: A }), (y, h) => H(y.$slots, "default", {
3535
+ return u({ refs: E, actions: A }), (v, h) => H(v.$slots, "default", {
3502
3536
  refs: E,
3503
3537
  actions: A
3504
3538
  });
@@ -3512,7 +3546,7 @@ const Qs = /* @__PURE__ */ he({
3512
3546
  viewBox: "0 0 24 24"
3513
3547
  };
3514
3548
  function _0(e, u, t, n, r, o) {
3515
- return P(), ae("svg", k0, u[0] || (u[0] = [
3549
+ return P(), ce("svg", k0, u[0] || (u[0] = [
3516
3550
  No('<circle cx="18" cy="12" r="0" fill="#757575"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="12" cy="12" r="0" fill="#757575"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="6" cy="12" r="0" fill="#757575"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle>', 3)
3517
3551
  ]));
3518
3552
  }
@@ -3525,7 +3559,7 @@ const v0 = /* @__PURE__ */ dn(x0, [["render", _0]]), y0 = {
3525
3559
  viewBox: "0 0 24 24"
3526
3560
  };
3527
3561
  function A0(e, u, t, n, r, o) {
3528
- return P(), ae("svg", E0, u[0] || (u[0] = [
3562
+ return P(), ce("svg", E0, u[0] || (u[0] = [
3529
3563
  Ou("path", {
3530
3564
  fill: "currentColor",
3531
3565
  d: "M11 2c4.968 0 9 4.032 9 9s-4.032 9-9 9s-9-4.032-9-9s4.032-9 9-9m0 16c3.867 0 7-3.133 7-7s-3.133-7-7-7s-7 3.133-7 7s3.133 7 7 7m8.485.071l2.829 2.828l-1.415 1.415l-2.828-2.829z"
@@ -3545,10 +3579,10 @@ const er = /* @__PURE__ */ dn(y0, [["render", A0]]), w0 = /* @__PURE__ */ he({
3545
3579
  },
3546
3580
  emits: ["update:value"],
3547
3581
  setup(e, { emit: u }) {
3548
- const t = u, n = mt("input-ref"), r = G(e.value), { isPending: o, start: a } = _i(() => {
3582
+ const t = u, n = mt("input-ref"), r = W(e.value), { isPending: o, start: a } = _i(() => {
3549
3583
  }, typeof e.autoTrigger == "number" ? e.autoTrigger : 500);
3550
- Be(() => e.value, (s) => {
3551
- r.value = s;
3584
+ Be(() => e.value, (l) => {
3585
+ r.value = l;
3552
3586
  });
3553
3587
  const i = Mr(() => {
3554
3588
  t("update:value", r.value);
@@ -3559,45 +3593,45 @@ const er = /* @__PURE__ */ dn(y0, [["render", A0]]), w0 = /* @__PURE__ */ he({
3559
3593
  function c() {
3560
3594
  t("update:value", r.value);
3561
3595
  }
3562
- function l(s) {
3563
- s.key === "Enter" && c();
3596
+ function s(l) {
3597
+ l.key === "Enter" && c();
3564
3598
  }
3565
3599
  return Re(() => {
3566
3600
  !e.loading && r.value && n.value?.focus();
3567
- }), (s, f) => (P(), I(w(xi), null, {
3601
+ }), (l, f) => (P(), I(w(xi), null, {
3568
3602
  default: M(() => [
3569
- X(w(sn), K({
3603
+ X(w(ln), ee({
3570
3604
  ref: "input-ref",
3571
3605
  value: r.value,
3572
3606
  "onUpdate:value": f[0] || (f[0] = (_) => r.value = _),
3573
- disabled: s.loading,
3607
+ disabled: l.loading,
3574
3608
  clearable: ""
3575
- }, s.inputProps, { onKeydown: l }), {
3609
+ }, l.inputProps, { onKeydown: s }), {
3576
3610
  prefix: M(() => [
3577
- H(s.$slots, "prefix", {}, () => [
3578
- H(s.$slots, "prefix-icon", {}, () => [
3611
+ H(l.$slots, "prefix", {}, () => [
3612
+ H(l.$slots, "prefix-icon", {}, () => [
3579
3613
  X(er)
3580
3614
  ])
3581
3615
  ])
3582
3616
  ]),
3583
3617
  suffix: M(() => [
3584
- w(o) ? (P(), I(v0, { key: 0 })) : re("", !0)
3618
+ w(o) ? (P(), I(v0, { key: 0 })) : oe("", !0)
3585
3619
  ]),
3586
3620
  _: 3
3587
3621
  }, 16, ["value", "disabled"]),
3588
- H(s.$slots, "button", {}, () => [
3589
- s.searchButton ? (P(), I(w(Nu), K({
3622
+ H(l.$slots, "button", {}, () => [
3623
+ l.searchButton ? (P(), I(w(Nu), ee({
3590
3624
  key: 0,
3591
- type: s.type,
3592
- loading: s.loading
3593
- }, s.buttonProps, { onClick: c }), {
3625
+ type: l.type,
3626
+ loading: l.loading
3627
+ }, l.buttonProps, { onClick: c }), {
3594
3628
  icon: M(() => [
3595
- H(s.$slots, "button-icon", {}, () => [
3629
+ H(l.$slots, "button-icon", {}, () => [
3596
3630
  X(er)
3597
3631
  ])
3598
3632
  ]),
3599
3633
  _: 3
3600
- }, 16, ["type", "loading"])) : re("", !0)
3634
+ }, 16, ["type", "loading"])) : oe("", !0)
3601
3635
  ])
3602
3636
  ]),
3603
3637
  _: 3
@@ -3613,7 +3647,7 @@ const er = /* @__PURE__ */ dn(y0, [["render", A0]]), w0 = /* @__PURE__ */ he({
3613
3647
  }),
3614
3648
  emits: ["update:value"],
3615
3649
  setup(e) {
3616
- const u = $o(e, "value"), t = G(!1), n = mt("inputRef"), r = G(u.value);
3650
+ const u = $o(e, "value"), t = W(!1), n = mt("inputRef"), r = W(u.value);
3617
3651
  function o() {
3618
3652
  t.value = !0, cn(() => {
3619
3653
  n.value?.focus();
@@ -3622,17 +3656,17 @@ const er = /* @__PURE__ */ dn(y0, [["render", A0]]), w0 = /* @__PURE__ */ he({
3622
3656
  function a() {
3623
3657
  t.value = !1, u.value = r.value;
3624
3658
  }
3625
- return (i, c) => (P(), ae("div", { onClick: o }, [
3626
- t.value ? (P(), I(w(sn), K({
3659
+ return (i, c) => (P(), ce("div", { onClick: o }, [
3660
+ t.value ? (P(), I(w(ln), ee({
3627
3661
  key: 0,
3628
3662
  ref_key: "inputRef",
3629
3663
  ref: n,
3630
3664
  value: r.value
3631
3665
  }, i.inputProps, {
3632
- "onUpdate:value": c[0] || (c[0] = (l) => r.value = l),
3666
+ "onUpdate:value": c[0] || (c[0] = (s) => r.value = s),
3633
3667
  onChange: a,
3634
3668
  onBlur: a
3635
- }), null, 16, ["value"])) : (P(), ae(ve, { key: 1 }, [
3669
+ }), null, 16, ["value"])) : (P(), ce(ve, { key: 1 }, [
3636
3670
  Mu(Lu(r.value), 1)
3637
3671
  ], 64))
3638
3672
  ]));
@@ -3647,9 +3681,9 @@ const er = /* @__PURE__ */ dn(y0, [["render", A0]]), w0 = /* @__PURE__ */ he({
3647
3681
  emits: ["click"],
3648
3682
  setup(e, { emit: u }) {
3649
3683
  const t = u;
3650
- return (n, r) => (P(), I(w(Pr), oe(Fe(n.tooltipProps)), {
3684
+ return (n, r) => (P(), I(w(Pr), ie(Fe(n.tooltipProps)), {
3651
3685
  trigger: M(() => [
3652
- X(w(Nu), K(n.buttonProps, {
3686
+ X(w(Nu), ee(n.buttonProps, {
3653
3687
  onClick: r[0] || (r[0] = (o) => t("click", o))
3654
3688
  }), {
3655
3689
  icon: M(() => [
@@ -3704,7 +3738,7 @@ const jr = /* @__PURE__ */ he({
3704
3738
  transitionProps: {}
3705
3739
  },
3706
3740
  setup(e) {
3707
- return gt(D0, S0()), (u, t) => (P(), I(zo, K({
3741
+ return gt(D0, S0()), (u, t) => (P(), I(zo, ee({
3708
3742
  name: `${w(Iu)}-${u.name}`,
3709
3743
  appear: "",
3710
3744
  mode: "out-in"
@@ -3849,7 +3883,7 @@ const Au = {
3849
3883
  } catch {
3850
3884
  return console.warn("TrustedTypes policy " + o + " could not be created."), null;
3851
3885
  }
3852
- }, lr = function() {
3886
+ }, sr = function() {
3853
3887
  return {
3854
3888
  afterSanitizeAttributes: [],
3855
3889
  afterSanitizeElements: [],
@@ -3875,12 +3909,12 @@ function Zr() {
3875
3909
  HTMLTemplateElement: a,
3876
3910
  Node: i,
3877
3911
  Element: c,
3878
- NodeFilter: l,
3879
- NamedNodeMap: s = e.NamedNodeMap || e.MozNamedAttrMap,
3912
+ NodeFilter: s,
3913
+ NamedNodeMap: l = e.NamedNodeMap || e.MozNamedAttrMap,
3880
3914
  HTMLFormElement: f,
3881
3915
  DOMParser: _,
3882
3916
  trustedTypes: g
3883
- } = e, d = c.prototype, E = Eu(d, "cloneNode"), A = Eu(d, "remove"), y = Eu(d, "nextSibling"), h = Eu(d, "childNodes"), p = Eu(d, "parentNode");
3917
+ } = e, d = c.prototype, E = Eu(d, "cloneNode"), A = Eu(d, "remove"), v = Eu(d, "nextSibling"), h = Eu(d, "childNodes"), p = Eu(d, "parentNode");
3884
3918
  if (typeof a == "function") {
3885
3919
  const L = t.createElement("template");
3886
3920
  L.content && L.content.ownerDocument && (t = L.content.ownerDocument);
@@ -3890,28 +3924,28 @@ function Zr() {
3890
3924
  implementation: x,
3891
3925
  createNodeIterator: D,
3892
3926
  createDocumentFragment: R,
3893
- getElementsByTagName: v
3927
+ getElementsByTagName: y
3894
3928
  } = t, {
3895
3929
  importNode: $
3896
3930
  } = n;
3897
- let N = lr();
3931
+ let N = sr();
3898
3932
  u.isSupported = typeof Hr == "function" && typeof p == "function" && x && x.createHTMLDocument !== void 0;
3899
3933
  const {
3900
- MUSTACHE_EXPR: W,
3901
- ERB_EXPR: ee,
3934
+ MUSTACHE_EXPR: G,
3935
+ ERB_EXPR: J,
3902
3936
  TMPLIT_EXPR: F,
3903
3937
  DATA_ATTR: q,
3904
- ARIA_ATTR: ce,
3905
- IS_SCRIPT_OR_DATA: fe,
3906
- ATTR_WHITESPACE: Y,
3938
+ ARIA_ATTR: se,
3939
+ IS_SCRIPT_OR_DATA: ue,
3940
+ ATTR_WHITESPACE: V,
3907
3941
  CUSTOM_ELEMENT: C
3908
3942
  } = cr;
3909
3943
  let {
3910
3944
  IS_ALLOWED_URI: z
3911
3945
  } = cr, T = null;
3912
- const V = U({}, [...rr, ...$t, ...zt, ...Bt, ...or]);
3946
+ const Z = U({}, [...rr, ...$t, ...zt, ...Bt, ...or]);
3913
3947
  let B = null;
3914
- const Z = U({}, [...ir, ...Ut, ...ar, ...et]);
3948
+ const Y = U({}, [...ir, ...Ut, ...ar, ...et]);
3915
3949
  let j = Object.seal(Gr(null, {
3916
3950
  tagNameCheck: {
3917
3951
  writable: !0,
@@ -3945,14 +3979,14 @@ function Zr() {
3945
3979
  const Eo = U({}, ["title", "style", "font", "a", "script"]);
3946
3980
  let gu = null;
3947
3981
  const Ao = ["application/xhtml+xml", "text/html"], wo = "text/html";
3948
- let te = null, au = null;
3982
+ let ne = null, au = null;
3949
3983
  const Co = t.createElement("form"), Tn = function(b) {
3950
3984
  return b instanceof RegExp || b instanceof Function;
3951
3985
  }, Tt = function() {
3952
3986
  let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3953
3987
  if (!(au && au === b)) {
3954
3988
  if ((!b || typeof b != "object") && (b = {}), b = $e(b), gu = // eslint-disable-next-line unicorn/prefer-includes
3955
- Ao.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? wo : b.PARSER_MEDIA_TYPE, te = gu === "application/xhtml+xml" ? It : ct, T = we(b, "ALLOWED_TAGS") ? U({}, b.ALLOWED_TAGS, te) : V, B = we(b, "ALLOWED_ATTR") ? U({}, b.ALLOWED_ATTR, te) : Z, St = we(b, "ALLOWED_NAMESPACES") ? U({}, b.ALLOWED_NAMESPACES, It) : yo, Dt = we(b, "ADD_URI_SAFE_ATTR") ? U($e(Sn), b.ADD_URI_SAFE_ATTR, te) : Sn, Dn = we(b, "ADD_DATA_URI_TAGS") ? U($e(Fn), b.ADD_DATA_URI_TAGS, te) : Fn, ou = we(b, "FORBID_CONTENTS") ? U({}, b.FORBID_CONTENTS, te) : Cn, ge = we(b, "FORBID_TAGS") ? U({}, b.FORBID_TAGS, te) : $e({}), Ue = we(b, "FORBID_ATTR") ? U({}, b.FORBID_ATTR, te) : $e({}), ru = we(b, "USE_PROFILES") ? b.USE_PROFILES : !1, eu = b.ALLOW_ARIA_ATTR !== !1, uu = b.ALLOW_DATA_ATTR !== !1, tu = b.ALLOW_UNKNOWN_PROTOCOLS || !1, Xe = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, qe = b.SAFE_FOR_TEMPLATES || !1, je = b.SAFE_FOR_XML !== !1, Qe = b.WHOLE_DOCUMENT || !1, nu = b.RETURN_DOM || !1, Uu = b.RETURN_DOM_FRAGMENT || !1, qu = b.RETURN_TRUSTED_TYPE || !1, wt = b.FORCE_BODY || !1, An = b.SANITIZE_DOM !== !1, wn = b.SANITIZE_NAMED_PROPS || !1, Ct = b.KEEP_CONTENT !== !1, mu = b.IN_PLACE || !1, z = b.ALLOWED_URI_REGEXP || Wr, iu = b.NAMESPACE || Le, Gu = b.MATHML_TEXT_INTEGRATION_POINTS || Gu, Wu = b.HTML_INTEGRATION_POINTS || Wu, j = b.CUSTOM_ELEMENT_HANDLING || {}, b.CUSTOM_ELEMENT_HANDLING && Tn(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (j.tagNameCheck = b.CUSTOM_ELEMENT_HANDLING.tagNameCheck), b.CUSTOM_ELEMENT_HANDLING && Tn(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (j.attributeNameCheck = b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), b.CUSTOM_ELEMENT_HANDLING && typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (j.allowCustomizedBuiltInElements = b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), qe && (uu = !1), Uu && (nu = !0), ru && (T = U({}, or), B = [], ru.html === !0 && (U(T, rr), U(B, ir)), ru.svg === !0 && (U(T, $t), U(B, Ut), U(B, et)), ru.svgFilters === !0 && (U(T, zt), U(B, Ut), U(B, et)), ru.mathMl === !0 && (U(T, Bt), U(B, ar), U(B, et))), b.ADD_TAGS && (T === V && (T = $e(T)), U(T, b.ADD_TAGS, te)), b.ADD_ATTR && (B === Z && (B = $e(B)), U(B, b.ADD_ATTR, te)), b.ADD_URI_SAFE_ATTR && U(Dt, b.ADD_URI_SAFE_ATTR, te), b.FORBID_CONTENTS && (ou === Cn && (ou = $e(ou)), U(ou, b.FORBID_CONTENTS, te)), Ct && (T["#text"] = !0), Qe && U(T, ["html", "head", "body"]), T.table && (U(T, ["tbody"]), delete ge.tbody), b.TRUSTED_TYPES_POLICY) {
3989
+ Ao.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? wo : b.PARSER_MEDIA_TYPE, ne = gu === "application/xhtml+xml" ? It : ct, T = we(b, "ALLOWED_TAGS") ? U({}, b.ALLOWED_TAGS, ne) : Z, B = we(b, "ALLOWED_ATTR") ? U({}, b.ALLOWED_ATTR, ne) : Y, St = we(b, "ALLOWED_NAMESPACES") ? U({}, b.ALLOWED_NAMESPACES, It) : yo, Dt = we(b, "ADD_URI_SAFE_ATTR") ? U($e(Sn), b.ADD_URI_SAFE_ATTR, ne) : Sn, Dn = we(b, "ADD_DATA_URI_TAGS") ? U($e(Fn), b.ADD_DATA_URI_TAGS, ne) : Fn, ou = we(b, "FORBID_CONTENTS") ? U({}, b.FORBID_CONTENTS, ne) : Cn, ge = we(b, "FORBID_TAGS") ? U({}, b.FORBID_TAGS, ne) : $e({}), Ue = we(b, "FORBID_ATTR") ? U({}, b.FORBID_ATTR, ne) : $e({}), ru = we(b, "USE_PROFILES") ? b.USE_PROFILES : !1, eu = b.ALLOW_ARIA_ATTR !== !1, uu = b.ALLOW_DATA_ATTR !== !1, tu = b.ALLOW_UNKNOWN_PROTOCOLS || !1, Xe = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, qe = b.SAFE_FOR_TEMPLATES || !1, je = b.SAFE_FOR_XML !== !1, Qe = b.WHOLE_DOCUMENT || !1, nu = b.RETURN_DOM || !1, Uu = b.RETURN_DOM_FRAGMENT || !1, qu = b.RETURN_TRUSTED_TYPE || !1, wt = b.FORCE_BODY || !1, An = b.SANITIZE_DOM !== !1, wn = b.SANITIZE_NAMED_PROPS || !1, Ct = b.KEEP_CONTENT !== !1, mu = b.IN_PLACE || !1, z = b.ALLOWED_URI_REGEXP || Wr, iu = b.NAMESPACE || Le, Gu = b.MATHML_TEXT_INTEGRATION_POINTS || Gu, Wu = b.HTML_INTEGRATION_POINTS || Wu, j = b.CUSTOM_ELEMENT_HANDLING || {}, b.CUSTOM_ELEMENT_HANDLING && Tn(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (j.tagNameCheck = b.CUSTOM_ELEMENT_HANDLING.tagNameCheck), b.CUSTOM_ELEMENT_HANDLING && Tn(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (j.attributeNameCheck = b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), b.CUSTOM_ELEMENT_HANDLING && typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (j.allowCustomizedBuiltInElements = b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), qe && (uu = !1), Uu && (nu = !0), ru && (T = U({}, or), B = [], ru.html === !0 && (U(T, rr), U(B, ir)), ru.svg === !0 && (U(T, $t), U(B, Ut), U(B, et)), ru.svgFilters === !0 && (U(T, zt), U(B, Ut), U(B, et)), ru.mathMl === !0 && (U(T, Bt), U(B, ar), U(B, et))), b.ADD_TAGS && (T === Z && (T = $e(T)), U(T, b.ADD_TAGS, ne)), b.ADD_ATTR && (B === Y && (B = $e(B)), U(B, b.ADD_ATTR, ne)), b.ADD_URI_SAFE_ATTR && U(Dt, b.ADD_URI_SAFE_ATTR, ne), b.FORBID_CONTENTS && (ou === Cn && (ou = $e(ou)), U(ou, b.FORBID_CONTENTS, ne)), Ct && (T["#text"] = !0), Qe && U(T, ["html", "head", "body"]), T.table && (U(T, ["tbody"]), delete ge.tbody), b.TRUSTED_TYPES_POLICY) {
3956
3990
  if (typeof b.TRUSTED_TYPES_POLICY.createHTML != "function")
3957
3991
  throw yu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
3958
3992
  if (typeof b.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -3968,8 +4002,8 @@ function Zr() {
3968
4002
  namespaceURI: iu,
3969
4003
  tagName: "template"
3970
4004
  });
3971
- const O = ct(b.tagName), J = ct(S.tagName);
3972
- return St[b.namespaceURI] ? b.namespaceURI === Hu ? S.namespaceURI === Le ? O === "svg" : S.namespaceURI === ju ? O === "svg" && (J === "annotation-xml" || Gu[J]) : !!Pn[O] : b.namespaceURI === ju ? S.namespaceURI === Le ? O === "math" : S.namespaceURI === Hu ? O === "math" && Wu[J] : !!Rn[O] : b.namespaceURI === Le ? S.namespaceURI === Hu && !Wu[J] || S.namespaceURI === ju && !Gu[J] ? !1 : !Rn[O] && (Eo[O] || !Pn[O]) : !!(gu === "application/xhtml+xml" && St[b.namespaceURI]) : !1;
4005
+ const O = ct(b.tagName), K = ct(S.tagName);
4006
+ return St[b.namespaceURI] ? b.namespaceURI === Hu ? S.namespaceURI === Le ? O === "svg" : S.namespaceURI === ju ? O === "svg" && (K === "annotation-xml" || Gu[K]) : !!Pn[O] : b.namespaceURI === ju ? S.namespaceURI === Le ? O === "math" : S.namespaceURI === Hu ? O === "math" && Wu[K] : !!Rn[O] : b.namespaceURI === Le ? S.namespaceURI === Hu && !Wu[K] || S.namespaceURI === ju && !Gu[K] ? !1 : !Rn[O] && (Eo[O] || !Pn[O]) : !!(gu === "application/xhtml+xml" && St[b.namespaceURI]) : !1;
3973
4007
  }, De = function(b) {
3974
4008
  _u(u.removed, {
3975
4009
  element: b
@@ -4007,35 +4041,35 @@ function Zr() {
4007
4041
  if (wt)
4008
4042
  b = "<remove></remove>" + b;
4009
4043
  else {
4010
- const ue = nr(b, /^[\r\n\t ]+/);
4011
- O = ue && ue[0];
4044
+ const te = nr(b, /^[\r\n\t ]+/);
4045
+ O = te && te[0];
4012
4046
  }
4013
4047
  gu === "application/xhtml+xml" && iu === Le && (b = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + b + "</body></html>");
4014
- const J = m ? m.createHTML(b) : b;
4048
+ const K = m ? m.createHTML(b) : b;
4015
4049
  if (iu === Le)
4016
4050
  try {
4017
- S = new _().parseFromString(J, gu);
4051
+ S = new _().parseFromString(K, gu);
4018
4052
  } catch {
4019
4053
  }
4020
4054
  if (!S || !S.documentElement) {
4021
4055
  S = x.createDocument(iu, "template", null);
4022
4056
  try {
4023
- S.documentElement.innerHTML = Ft ? k : J;
4057
+ S.documentElement.innerHTML = Ft ? k : K;
4024
4058
  } catch {
4025
4059
  }
4026
4060
  }
4027
4061
  const le = S.body || S.documentElement;
4028
- return b && O && le.insertBefore(t.createTextNode(O), le.childNodes[0] || null), iu === Le ? v.call(S, Qe ? "html" : "body")[0] : Qe ? S.documentElement : le;
4062
+ return b && O && le.insertBefore(t.createTextNode(O), le.childNodes[0] || null), iu === Le ? y.call(S, Qe ? "html" : "body")[0] : Qe ? S.documentElement : le;
4029
4063
  }, Mn = function(b) {
4030
4064
  return D.call(
4031
4065
  b.ownerDocument || b,
4032
4066
  b,
4033
4067
  // eslint-disable-next-line no-bitwise
4034
- l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION,
4068
+ s.SHOW_ELEMENT | s.SHOW_COMMENT | s.SHOW_TEXT | s.SHOW_PROCESSING_INSTRUCTION | s.SHOW_CDATA_SECTION,
4035
4069
  null
4036
4070
  );
4037
4071
  }, Pt = function(b) {
4038
- return b instanceof f && (typeof b.nodeName != "string" || typeof b.textContent != "string" || typeof b.removeChild != "function" || !(b.attributes instanceof s) || typeof b.removeAttribute != "function" || typeof b.setAttribute != "function" || typeof b.namespaceURI != "string" || typeof b.insertBefore != "function" || typeof b.hasChildNodes != "function");
4072
+ return b instanceof f && (typeof b.nodeName != "string" || typeof b.textContent != "string" || typeof b.removeChild != "function" || !(b.attributes instanceof l) || typeof b.removeAttribute != "function" || typeof b.setAttribute != "function" || typeof b.namespaceURI != "string" || typeof b.insertBefore != "function" || typeof b.hasChildNodes != "function");
4039
4073
  }, Ln = function(b) {
4040
4074
  return typeof i == "function" && b instanceof i;
4041
4075
  };
@@ -4048,7 +4082,7 @@ function Zr() {
4048
4082
  let S = null;
4049
4083
  if (Ne(N.beforeSanitizeElements, b, null), Pt(b))
4050
4084
  return De(b), !0;
4051
- const O = te(b.nodeName);
4085
+ const O = ne(b.nodeName);
4052
4086
  if (Ne(N.uponSanitizeElement, b, {
4053
4087
  tagName: O,
4054
4088
  allowedTags: T
@@ -4058,19 +4092,19 @@ function Zr() {
4058
4092
  if (!ge[O] && $n(O) && (j.tagNameCheck instanceof RegExp && de(j.tagNameCheck, O) || j.tagNameCheck instanceof Function && j.tagNameCheck(O)))
4059
4093
  return !1;
4060
4094
  if (Ct && !ou[O]) {
4061
- const J = p(b) || b.parentNode, le = h(b) || b.childNodes;
4062
- if (le && J) {
4063
- const ue = le.length;
4064
- for (let xe = ue - 1; xe >= 0; --xe) {
4095
+ const K = p(b) || b.parentNode, le = h(b) || b.childNodes;
4096
+ if (le && K) {
4097
+ const te = le.length;
4098
+ for (let xe = te - 1; xe >= 0; --xe) {
4065
4099
  const Ie = E(le[xe], !0);
4066
- Ie.__removalCount = (b.__removalCount || 0) + 1, J.insertBefore(Ie, y(b));
4100
+ Ie.__removalCount = (b.__removalCount || 0) + 1, K.insertBefore(Ie, v(b));
4067
4101
  }
4068
4102
  }
4069
4103
  }
4070
4104
  return De(b), !0;
4071
4105
  }
4072
- return b instanceof c && !Do(b) || (O === "noscript" || O === "noembed" || O === "noframes") && de(/<\/no(script|embed|frames)/i, b.innerHTML) ? (De(b), !0) : (qe && b.nodeType === Au.text && (S = b.textContent, Ku([W, ee, F], (J) => {
4073
- S = vu(S, J, " ");
4106
+ return b instanceof c && !Do(b) || (O === "noscript" || O === "noembed" || O === "noframes") && de(/<\/no(script|embed|frames)/i, b.innerHTML) ? (De(b), !0) : (qe && b.nodeType === Au.text && (S = b.textContent, Ku([G, J, F], (K) => {
4107
+ S = vu(S, K, " ");
4074
4108
  }), b.textContent !== S && (_u(u.removed, {
4075
4109
  element: b.cloneNode()
4076
4110
  }), b.textContent = S)), Ne(N.afterSanitizeElements, b, null), !1);
@@ -4078,7 +4112,7 @@ function Zr() {
4078
4112
  if (An && (S === "id" || S === "name") && (O in t || O in Co))
4079
4113
  return !1;
4080
4114
  if (!(uu && !Ue[S] && de(q, S))) {
4081
- if (!(eu && de(ce, S))) {
4115
+ if (!(eu && de(se, S))) {
4082
4116
  if (!B[S] || Ue[S]) {
4083
4117
  if (
4084
4118
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
@@ -4089,9 +4123,9 @@ function Zr() {
4089
4123
  S === "is" && j.allowCustomizedBuiltInElements && (j.tagNameCheck instanceof RegExp && de(j.tagNameCheck, O) || j.tagNameCheck instanceof Function && j.tagNameCheck(O)))
4090
4124
  ) return !1;
4091
4125
  } else if (!Dt[S]) {
4092
- if (!de(z, vu(O, Y, ""))) {
4126
+ if (!de(z, vu(O, V, ""))) {
4093
4127
  if (!((S === "src" || S === "xlink:href" || S === "href") && b !== "script" && L0(O, "data:") === 0 && Dn[b])) {
4094
- if (!(tu && !de(fe, vu(O, Y, "")))) {
4128
+ if (!(tu && !de(ue, vu(O, V, "")))) {
4095
4129
  if (O)
4096
4130
  return !1;
4097
4131
  }
@@ -4117,52 +4151,52 @@ function Zr() {
4117
4151
  allowedAttributes: B,
4118
4152
  forceKeepAttr: void 0
4119
4153
  };
4120
- let J = S.length;
4121
- for (; J--; ) {
4122
- const le = S[J], {
4123
- name: ue,
4154
+ let K = S.length;
4155
+ for (; K--; ) {
4156
+ const le = S[K], {
4157
+ name: te,
4124
4158
  namespaceURI: xe,
4125
4159
  value: Ie
4126
- } = le, xu = te(ue), Rt = Ie;
4127
- let se = ue === "value" ? Rt : N0(Rt);
4128
- if (O.attrName = xu, O.attrValue = se, O.keepAttr = !0, O.forceKeepAttr = void 0, Ne(N.uponSanitizeAttribute, b, O), se = O.attrValue, wn && (xu === "id" || xu === "name") && (cu(ue, b), se = vo + se), je && de(/((--!?|])>)|<\/(style|title)/i, se)) {
4129
- cu(ue, b);
4160
+ } = le, xu = ne(te), Rt = Ie;
4161
+ let fe = te === "value" ? Rt : N0(Rt);
4162
+ if (O.attrName = xu, O.attrValue = fe, O.keepAttr = !0, O.forceKeepAttr = void 0, Ne(N.uponSanitizeAttribute, b, O), fe = O.attrValue, wn && (xu === "id" || xu === "name") && (cu(te, b), fe = vo + fe), je && de(/((--!?|])>)|<\/(style|title)/i, fe)) {
4163
+ cu(te, b);
4130
4164
  continue;
4131
4165
  }
4132
4166
  if (O.forceKeepAttr)
4133
4167
  continue;
4134
4168
  if (!O.keepAttr) {
4135
- cu(ue, b);
4169
+ cu(te, b);
4136
4170
  continue;
4137
4171
  }
4138
- if (!Xe && de(/\/>/i, se)) {
4139
- cu(ue, b);
4172
+ if (!Xe && de(/\/>/i, fe)) {
4173
+ cu(te, b);
4140
4174
  continue;
4141
4175
  }
4142
- qe && Ku([W, ee, F], (Un) => {
4143
- se = vu(se, Un, " ");
4176
+ qe && Ku([G, J, F], (Un) => {
4177
+ fe = vu(fe, Un, " ");
4144
4178
  });
4145
- const Bn = te(b.nodeName);
4146
- if (!In(Bn, xu, se)) {
4147
- cu(ue, b);
4179
+ const Bn = ne(b.nodeName);
4180
+ if (!In(Bn, xu, fe)) {
4181
+ cu(te, b);
4148
4182
  continue;
4149
4183
  }
4150
4184
  if (m && typeof g == "object" && typeof g.getAttributeType == "function" && !xe)
4151
4185
  switch (g.getAttributeType(Bn, xu)) {
4152
4186
  case "TrustedHTML": {
4153
- se = m.createHTML(se);
4187
+ fe = m.createHTML(fe);
4154
4188
  break;
4155
4189
  }
4156
4190
  case "TrustedScriptURL": {
4157
- se = m.createScriptURL(se);
4191
+ fe = m.createScriptURL(fe);
4158
4192
  break;
4159
4193
  }
4160
4194
  }
4161
- if (se !== Rt)
4195
+ if (fe !== Rt)
4162
4196
  try {
4163
- xe ? b.setAttributeNS(xe, ue, se) : b.setAttribute(ue, se), Pt(b) ? De(b) : tr(u.removed);
4197
+ xe ? b.setAttributeNS(xe, te, fe) : b.setAttribute(te, fe), Pt(b) ? De(b) : tr(u.removed);
4164
4198
  } catch {
4165
- cu(ue, b);
4199
+ cu(te, b);
4166
4200
  }
4167
4201
  }
4168
4202
  Ne(N.afterSanitizeAttributes, b, null);
@@ -4174,7 +4208,7 @@ function Zr() {
4174
4208
  Ne(N.afterSanitizeShadowDOM, b, null);
4175
4209
  };
4176
4210
  return u.sanitize = function(L) {
4177
- let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, S = null, O = null, J = null, le = null;
4211
+ let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, S = null, O = null, K = null, le = null;
4178
4212
  if (Ft = !L, Ft && (L = "<!-->"), typeof L != "string" && !Ln(L))
4179
4213
  if (typeof L.toString == "function") {
4180
4214
  if (L = L.toString(), typeof L != "string")
@@ -4185,7 +4219,7 @@ function Zr() {
4185
4219
  return L;
4186
4220
  if (At || Tt(b), u.removed = [], typeof L == "string" && (mu = !1), mu) {
4187
4221
  if (L.nodeName) {
4188
- const Ie = te(L.nodeName);
4222
+ const Ie = ne(L.nodeName);
4189
4223
  if (!T[Ie] || ge[Ie])
4190
4224
  throw yu("root node is forbidden and cannot be sanitized in-place");
4191
4225
  }
@@ -4199,9 +4233,9 @@ function Zr() {
4199
4233
  return nu ? null : qu ? k : "";
4200
4234
  }
4201
4235
  S && wt && De(S.firstChild);
4202
- const ue = Mn(mu ? L : S);
4203
- for (; J = ue.nextNode(); )
4204
- Nn(J), zn(J), J.content instanceof o && Fo(J.content);
4236
+ const te = Mn(mu ? L : S);
4237
+ for (; K = te.nextNode(); )
4238
+ Nn(K), zn(K), K.content instanceof o && Fo(K.content);
4205
4239
  if (mu)
4206
4240
  return L;
4207
4241
  if (nu) {
@@ -4214,7 +4248,7 @@ function Zr() {
4214
4248
  }
4215
4249
  let xe = Qe ? S.outerHTML : S.innerHTML;
4216
4250
  return Qe && T["!doctype"] && S.ownerDocument && S.ownerDocument.doctype && S.ownerDocument.doctype.name && de(Vr, S.ownerDocument.doctype.name) && (xe = "<!DOCTYPE " + S.ownerDocument.doctype.name + `>
4217
- ` + xe), qe && Ku([W, ee, F], (Ie) => {
4251
+ ` + xe), qe && Ku([G, J, F], (Ie) => {
4218
4252
  xe = vu(xe, Ie, " ");
4219
4253
  }), m && qu ? m.createHTML(xe) : xe;
4220
4254
  }, u.setConfig = function() {
@@ -4224,8 +4258,8 @@ function Zr() {
4224
4258
  au = null, At = !1;
4225
4259
  }, u.isValidAttribute = function(L, b, S) {
4226
4260
  au || Tt({});
4227
- const O = te(L), J = te(b);
4228
- return In(O, J, S);
4261
+ const O = ne(L), K = ne(b);
4262
+ return In(O, K, S);
4229
4263
  }, u.addHook = function(L, b) {
4230
4264
  typeof b == "function" && _u(N[L], b);
4231
4265
  }, u.removeHook = function(L, b) {
@@ -4237,16 +4271,16 @@ function Zr() {
4237
4271
  }, u.removeHooks = function(L) {
4238
4272
  N[L] = [];
4239
4273
  }, u.removeAllHooks = function() {
4240
- N = lr();
4274
+ N = sr();
4241
4275
  }, u;
4242
4276
  }
4243
4277
  var Q0 = Zr();
4244
- const sr = {};
4278
+ const lr = {};
4245
4279
  function J0(e) {
4246
- let u = sr[e];
4280
+ let u = lr[e];
4247
4281
  if (u)
4248
4282
  return u;
4249
- u = sr[e] = [];
4283
+ u = lr[e] = [];
4250
4284
  for (let t = 0; t < 128; t++) {
4251
4285
  const n = String.fromCharCode(t);
4252
4286
  u.push(n);
@@ -4271,23 +4305,23 @@ function pu(e, u) {
4271
4305
  if ((i & 224) === 192 && o + 3 < a) {
4272
4306
  const c = parseInt(n.slice(o + 4, o + 6), 16);
4273
4307
  if ((c & 192) === 128) {
4274
- const l = i << 6 & 1984 | c & 63;
4275
- l < 128 ? r += "��" : r += String.fromCharCode(l), o += 3;
4308
+ const s = i << 6 & 1984 | c & 63;
4309
+ s < 128 ? r += "��" : r += String.fromCharCode(s), o += 3;
4276
4310
  continue;
4277
4311
  }
4278
4312
  }
4279
4313
  if ((i & 240) === 224 && o + 6 < a) {
4280
- const c = parseInt(n.slice(o + 4, o + 6), 16), l = parseInt(n.slice(o + 7, o + 9), 16);
4281
- if ((c & 192) === 128 && (l & 192) === 128) {
4282
- const s = i << 12 & 61440 | c << 6 & 4032 | l & 63;
4283
- s < 2048 || s >= 55296 && s <= 57343 ? r += "���" : r += String.fromCharCode(s), o += 6;
4314
+ const c = parseInt(n.slice(o + 4, o + 6), 16), s = parseInt(n.slice(o + 7, o + 9), 16);
4315
+ if ((c & 192) === 128 && (s & 192) === 128) {
4316
+ const l = i << 12 & 61440 | c << 6 & 4032 | s & 63;
4317
+ l < 2048 || l >= 55296 && l <= 57343 ? r += "���" : r += String.fromCharCode(l), o += 6;
4284
4318
  continue;
4285
4319
  }
4286
4320
  }
4287
4321
  if ((i & 248) === 240 && o + 9 < a) {
4288
- const c = parseInt(n.slice(o + 4, o + 6), 16), l = parseInt(n.slice(o + 7, o + 9), 16), s = parseInt(n.slice(o + 10, o + 12), 16);
4289
- if ((c & 192) === 128 && (l & 192) === 128 && (s & 192) === 128) {
4290
- let f = i << 18 & 1835008 | c << 12 & 258048 | l << 6 & 4032 | s & 63;
4322
+ const c = parseInt(n.slice(o + 4, o + 6), 16), s = parseInt(n.slice(o + 7, o + 9), 16), l = parseInt(n.slice(o + 10, o + 12), 16);
4323
+ if ((c & 192) === 128 && (s & 192) === 128 && (l & 192) === 128) {
4324
+ let f = i << 18 & 1835008 | c << 12 & 258048 | s << 6 & 4032 | l & 63;
4291
4325
  f < 65536 || f > 1114111 ? r += "����" : (f -= 65536, r += String.fromCharCode(55296 + (f >> 10), 56320 + (f & 1023))), o += 9;
4292
4326
  continue;
4293
4327
  }
@@ -4375,33 +4409,33 @@ function gn(e, u) {
4375
4409
  pt.prototype.parse = function(e, u) {
4376
4410
  let t, n, r, o = e;
4377
4411
  if (o = o.trim(), !u && e.split("#").length === 1) {
4378
- const l = tc.exec(o);
4379
- if (l)
4380
- return this.pathname = l[1], l[2] && (this.search = l[2]), this;
4412
+ const s = tc.exec(o);
4413
+ if (s)
4414
+ return this.pathname = s[1], s[2] && (this.search = s[2]), this;
4381
4415
  }
4382
4416
  let a = ec.exec(o);
4383
4417
  if (a && (a = a[0], t = a.toLowerCase(), this.protocol = a, o = o.substr(a.length)), (u || a || o.match(/^\/\/[^@\/]+@[^@\/]+/)) && (r = o.substr(0, 2) === "//", r && !(a && br[a]) && (o = o.substr(2), this.slashes = !0)), !br[a] && (r || a && !mr[a])) {
4384
- let l = -1;
4418
+ let s = -1;
4385
4419
  for (let d = 0; d < pr.length; d++)
4386
- n = o.indexOf(pr[d]), n !== -1 && (l === -1 || n < l) && (l = n);
4387
- let s, f;
4388
- l === -1 ? f = o.lastIndexOf("@") : f = o.lastIndexOf("@", l), f !== -1 && (s = o.slice(0, f), o = o.slice(f + 1), this.auth = s), l = -1;
4420
+ n = o.indexOf(pr[d]), n !== -1 && (s === -1 || n < s) && (s = n);
4421
+ let l, f;
4422
+ s === -1 ? f = o.lastIndexOf("@") : f = o.lastIndexOf("@", s), f !== -1 && (l = o.slice(0, f), o = o.slice(f + 1), this.auth = l), s = -1;
4389
4423
  for (let d = 0; d < dr.length; d++)
4390
- n = o.indexOf(dr[d]), n !== -1 && (l === -1 || n < l) && (l = n);
4391
- l === -1 && (l = o.length), o[l - 1] === ":" && l--;
4392
- const _ = o.slice(0, l);
4393
- o = o.slice(l), this.parseHost(_), this.hostname = this.hostname || "";
4424
+ n = o.indexOf(dr[d]), n !== -1 && (s === -1 || n < s) && (s = n);
4425
+ s === -1 && (s = o.length), o[s - 1] === ":" && s--;
4426
+ const _ = o.slice(0, s);
4427
+ o = o.slice(s), this.parseHost(_), this.hostname = this.hostname || "";
4394
4428
  const g = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
4395
4429
  if (!g) {
4396
4430
  const d = this.hostname.split(/\./);
4397
4431
  for (let E = 0, A = d.length; E < A; E++) {
4398
- const y = d[E];
4399
- if (y && !y.match(hr)) {
4432
+ const v = d[E];
4433
+ if (v && !v.match(hr)) {
4400
4434
  let h = "";
4401
- for (let p = 0, m = y.length; p < m; p++)
4402
- y.charCodeAt(p) > 127 ? h += "x" : h += y[p];
4435
+ for (let p = 0, m = v.length; p < m; p++)
4436
+ v.charCodeAt(p) > 127 ? h += "x" : h += v[p];
4403
4437
  if (!h.match(hr)) {
4404
- const p = d.slice(0, E), m = d.slice(E + 1), k = y.match(ac);
4438
+ const p = d.slice(0, E), m = d.slice(E + 1), k = v.match(ac);
4405
4439
  k && (p.push(k[1]), m.unshift(k[2])), m.length && (o = m.join(".") + o), this.hostname = p.join(".");
4406
4440
  break;
4407
4441
  }
@@ -4425,11 +4459,11 @@ const cc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4425
4459
  encode: $u,
4426
4460
  format: mn,
4427
4461
  parse: gn
4428
- }, Symbol.toStringTag, { value: "Module" })), Yr = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Xr = /[\0-\x1F\x7F-\x9F]/, lc = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, xn = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, Qr = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, Jr = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, sc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4462
+ }, Symbol.toStringTag, { value: "Module" })), Yr = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Xr = /[\0-\x1F\x7F-\x9F]/, sc = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, xn = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, Qr = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, Jr = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4429
4463
  __proto__: null,
4430
4464
  Any: Yr,
4431
4465
  Cc: Xr,
4432
- Cf: lc,
4466
+ Cf: sc,
4433
4467
  P: xn,
4434
4468
  S: Qr,
4435
4469
  Z: Jr
@@ -4482,42 +4516,42 @@ function bc(e) {
4482
4516
  var u;
4483
4517
  return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : (u = pc.get(e)) !== null && u !== void 0 ? u : e;
4484
4518
  }
4485
- var ie;
4519
+ var ae;
4486
4520
  (function(e) {
4487
4521
  e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.LOWER_Z = 122] = "LOWER_Z", e[e.UPPER_A = 65] = "UPPER_A", e[e.UPPER_F = 70] = "UPPER_F", e[e.UPPER_Z = 90] = "UPPER_Z";
4488
- })(ie || (ie = {}));
4522
+ })(ae || (ae = {}));
4489
4523
  const mc = 32;
4490
4524
  var Ze;
4491
4525
  (function(e) {
4492
4526
  e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
4493
4527
  })(Ze || (Ze = {}));
4494
4528
  function tn(e) {
4495
- return e >= ie.ZERO && e <= ie.NINE;
4529
+ return e >= ae.ZERO && e <= ae.NINE;
4496
4530
  }
4497
4531
  function gc(e) {
4498
- return e >= ie.UPPER_A && e <= ie.UPPER_F || e >= ie.LOWER_A && e <= ie.LOWER_F;
4532
+ return e >= ae.UPPER_A && e <= ae.UPPER_F || e >= ae.LOWER_A && e <= ae.LOWER_F;
4499
4533
  }
4500
4534
  function xc(e) {
4501
- return e >= ie.UPPER_A && e <= ie.UPPER_Z || e >= ie.LOWER_A && e <= ie.LOWER_Z || tn(e);
4535
+ return e >= ae.UPPER_A && e <= ae.UPPER_Z || e >= ae.LOWER_A && e <= ae.LOWER_Z || tn(e);
4502
4536
  }
4503
4537
  function kc(e) {
4504
- return e === ie.EQUALS || xc(e);
4538
+ return e === ae.EQUALS || xc(e);
4505
4539
  }
4506
- var ne;
4540
+ var re;
4507
4541
  (function(e) {
4508
4542
  e[e.EntityStart = 0] = "EntityStart", e[e.NumericStart = 1] = "NumericStart", e[e.NumericDecimal = 2] = "NumericDecimal", e[e.NumericHex = 3] = "NumericHex", e[e.NamedEntity = 4] = "NamedEntity";
4509
- })(ne || (ne = {}));
4543
+ })(re || (re = {}));
4510
4544
  var Ge;
4511
4545
  (function(e) {
4512
4546
  e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute";
4513
4547
  })(Ge || (Ge = {}));
4514
4548
  class _c {
4515
4549
  constructor(u, t, n) {
4516
- this.decodeTree = u, this.emitCodePoint = t, this.errors = n, this.state = ne.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = Ge.Strict;
4550
+ this.decodeTree = u, this.emitCodePoint = t, this.errors = n, this.state = re.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = Ge.Strict;
4517
4551
  }
4518
4552
  /** Resets the instance to make it reusable. */
4519
4553
  startEntity(u) {
4520
- this.decodeMode = u, this.state = ne.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
4554
+ this.decodeMode = u, this.state = re.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
4521
4555
  }
4522
4556
  /**
4523
4557
  * Write an entity to the decoder. This can be called multiple times with partial entities.
@@ -4532,15 +4566,15 @@ class _c {
4532
4566
  */
4533
4567
  write(u, t) {
4534
4568
  switch (this.state) {
4535
- case ne.EntityStart:
4536
- return u.charCodeAt(t) === ie.NUM ? (this.state = ne.NumericStart, this.consumed += 1, this.stateNumericStart(u, t + 1)) : (this.state = ne.NamedEntity, this.stateNamedEntity(u, t));
4537
- case ne.NumericStart:
4569
+ case re.EntityStart:
4570
+ return u.charCodeAt(t) === ae.NUM ? (this.state = re.NumericStart, this.consumed += 1, this.stateNumericStart(u, t + 1)) : (this.state = re.NamedEntity, this.stateNamedEntity(u, t));
4571
+ case re.NumericStart:
4538
4572
  return this.stateNumericStart(u, t);
4539
- case ne.NumericDecimal:
4573
+ case re.NumericDecimal:
4540
4574
  return this.stateNumericDecimal(u, t);
4541
- case ne.NumericHex:
4575
+ case re.NumericHex:
4542
4576
  return this.stateNumericHex(u, t);
4543
- case ne.NamedEntity:
4577
+ case re.NamedEntity:
4544
4578
  return this.stateNamedEntity(u, t);
4545
4579
  }
4546
4580
  }
@@ -4554,7 +4588,7 @@ class _c {
4554
4588
  * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
4555
4589
  */
4556
4590
  stateNumericStart(u, t) {
4557
- return t >= u.length ? -1 : (u.charCodeAt(t) | mc) === ie.LOWER_X ? (this.state = ne.NumericHex, this.consumed += 1, this.stateNumericHex(u, t + 1)) : (this.state = ne.NumericDecimal, this.stateNumericDecimal(u, t));
4591
+ return t >= u.length ? -1 : (u.charCodeAt(t) | mc) === ae.LOWER_X ? (this.state = re.NumericHex, this.consumed += 1, this.stateNumericHex(u, t + 1)) : (this.state = re.NumericDecimal, this.stateNumericDecimal(u, t));
4558
4592
  }
4559
4593
  addToNumericResult(u, t, n, r) {
4560
4594
  if (t !== n) {
@@ -4619,11 +4653,11 @@ class _c {
4619
4653
  var n;
4620
4654
  if (this.consumed <= t)
4621
4655
  return (n = this.errors) === null || n === void 0 || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
4622
- if (u === ie.SEMI)
4656
+ if (u === ae.SEMI)
4623
4657
  this.consumed += 1;
4624
4658
  else if (this.decodeMode === Ge.Strict)
4625
4659
  return 0;
4626
- return this.emitCodePoint(bc(this.result), this.consumed), this.errors && (u !== ie.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
4660
+ return this.emitCodePoint(bc(this.result), this.consumed), this.errors && (u !== ae.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
4627
4661
  }
4628
4662
  /**
4629
4663
  * Parses a named entity.
@@ -4645,7 +4679,7 @@ class _c {
4645
4679
  (o === 0 || // And there should be no invalid characters.
4646
4680
  kc(a)) ? 0 : this.emitNotTerminatedNamedEntity();
4647
4681
  if (r = n[this.treeIndex], o = (r & Ze.VALUE_LENGTH) >> 14, o !== 0) {
4648
- if (a === ie.SEMI)
4682
+ if (a === ae.SEMI)
4649
4683
  return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
4650
4684
  this.decodeMode !== Ge.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
4651
4685
  }
@@ -4685,16 +4719,16 @@ class _c {
4685
4719
  end() {
4686
4720
  var u;
4687
4721
  switch (this.state) {
4688
- case ne.NamedEntity:
4722
+ case re.NamedEntity:
4689
4723
  return this.result !== 0 && (this.decodeMode !== Ge.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
4690
4724
  // Otherwise, emit a numeric entity if we have one.
4691
- case ne.NumericDecimal:
4725
+ case re.NumericDecimal:
4692
4726
  return this.emitNumericEntity(0, 2);
4693
- case ne.NumericHex:
4727
+ case re.NumericHex:
4694
4728
  return this.emitNumericEntity(0, 3);
4695
- case ne.NumericStart:
4729
+ case re.NumericStart:
4696
4730
  return (u = this.errors) === null || u === void 0 || u.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
4697
- case ne.EntityStart:
4731
+ case re.EntityStart:
4698
4732
  return 0;
4699
4733
  }
4700
4734
  }
@@ -4706,16 +4740,16 @@ function Kr(e) {
4706
4740
  let a = 0, i = 0;
4707
4741
  for (; (i = r.indexOf("&", i)) >= 0; ) {
4708
4742
  u += r.slice(a, i), t.startEntity(o);
4709
- const l = t.write(
4743
+ const s = t.write(
4710
4744
  r,
4711
4745
  // Skip the "&"
4712
4746
  i + 1
4713
4747
  );
4714
- if (l < 0) {
4748
+ if (s < 0) {
4715
4749
  a = i + t.end();
4716
4750
  break;
4717
4751
  }
4718
- a = i + l, i = l === 0 ? a + 1 : a;
4752
+ a = i + s, i = s === 0 ? a + 1 : a;
4719
4753
  }
4720
4754
  const c = u + r.slice(a);
4721
4755
  return u = "", c;
@@ -4731,10 +4765,10 @@ function vc(e, u, t, n) {
4731
4765
  }
4732
4766
  let a = t, i = a + r - 1;
4733
4767
  for (; a <= i; ) {
4734
- const c = a + i >>> 1, l = e[c];
4735
- if (l < n)
4768
+ const c = a + i >>> 1, s = e[c];
4769
+ if (s < n)
4736
4770
  a = c + 1;
4737
- else if (l > n)
4771
+ else if (s > n)
4738
4772
  i = c - 1;
4739
4773
  else
4740
4774
  return e[c + r];
@@ -4891,7 +4925,7 @@ function Pu(e) {
4891
4925
  function vt(e) {
4892
4926
  return e = e.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (e = e.replace(/ẞ/g, "ß")), e.toLowerCase().toUpperCase();
4893
4927
  }
4894
- const Ic = { mdurl: cc, ucmicro: sc }, $c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4928
+ const Ic = { mdurl: cc, ucmicro: lc }, $c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4895
4929
  __proto__: null,
4896
4930
  arrayReplaceAt: uo,
4897
4931
  assign: _t,
@@ -4925,8 +4959,8 @@ function zc(e, u, t) {
4925
4959
  return e.pos = c, -1;
4926
4960
  }
4927
4961
  }
4928
- let l = -1;
4929
- return r && (l = e.pos), e.pos = c, l;
4962
+ let s = -1;
4963
+ return r && (s = e.pos), e.pos = c, s;
4930
4964
  }
4931
4965
  function Bc(e, u, t) {
4932
4966
  let n, r = u;
@@ -5020,23 +5054,23 @@ Oe.fence = function(e, u, t, n, r) {
5020
5054
  const o = e[u], a = o.info ? hu(o.info).trim() : "";
5021
5055
  let i = "", c = "";
5022
5056
  if (a) {
5023
- const s = a.split(/(\s+)/g);
5024
- i = s[0], c = s.slice(2).join("");
5057
+ const l = a.split(/(\s+)/g);
5058
+ i = l[0], c = l.slice(2).join("");
5025
5059
  }
5026
- let l;
5027
- if (t.highlight ? l = t.highlight(o.content, i, c) || Ye(o.content) : l = Ye(o.content), l.indexOf("<pre") === 0)
5028
- return l + `
5060
+ let s;
5061
+ if (t.highlight ? s = t.highlight(o.content, i, c) || Ye(o.content) : s = Ye(o.content), s.indexOf("<pre") === 0)
5062
+ return s + `
5029
5063
  `;
5030
5064
  if (a) {
5031
- const s = o.attrIndex("class"), f = o.attrs ? o.attrs.slice() : [];
5032
- s < 0 ? f.push(["class", t.langPrefix + i]) : (f[s] = f[s].slice(), f[s][1] += " " + t.langPrefix + i);
5065
+ const l = o.attrIndex("class"), f = o.attrs ? o.attrs.slice() : [];
5066
+ l < 0 ? f.push(["class", t.langPrefix + i]) : (f[l] = f[l].slice(), f[l][1] += " " + t.langPrefix + i);
5033
5067
  const _ = {
5034
5068
  attrs: f
5035
5069
  };
5036
- return `<pre><code${r.renderAttrs(_)}>${l}</code></pre>
5070
+ return `<pre><code${r.renderAttrs(_)}>${s}</code></pre>
5037
5071
  `;
5038
5072
  }
5039
- return `<pre><code${r.renderAttrs(o)}>${l}</code></pre>
5073
+ return `<pre><code${r.renderAttrs(o)}>${s}</code></pre>
5040
5074
  `;
5041
5075
  };
5042
5076
  Oe.image = function(e, u, t, n, r) {
@@ -5292,33 +5326,33 @@ function Xc(e) {
5292
5326
  }
5293
5327
  if (i.type === "html_inline" && (Zc(i.content) && o > 0 && o--, Yc(i.content) && o++), !(o > 0) && i.type === "text" && e.md.linkify.test(i.content)) {
5294
5328
  const c = i.content;
5295
- let l = e.md.linkify.match(c);
5296
- const s = [];
5329
+ let s = e.md.linkify.match(c);
5330
+ const l = [];
5297
5331
  let f = i.level, _ = 0;
5298
- l.length > 0 && l[0].index === 0 && a > 0 && r[a - 1].type === "text_special" && (l = l.slice(1));
5299
- for (let g = 0; g < l.length; g++) {
5300
- const d = l[g].url, E = e.md.normalizeLink(d);
5332
+ s.length > 0 && s[0].index === 0 && a > 0 && r[a - 1].type === "text_special" && (s = s.slice(1));
5333
+ for (let g = 0; g < s.length; g++) {
5334
+ const d = s[g].url, E = e.md.normalizeLink(d);
5301
5335
  if (!e.md.validateLink(E))
5302
5336
  continue;
5303
- let A = l[g].text;
5304
- l[g].schema ? l[g].schema === "mailto:" && !/^mailto:/i.test(A) ? A = e.md.normalizeLinkText("mailto:" + A).replace(/^mailto:/, "") : A = e.md.normalizeLinkText(A) : A = e.md.normalizeLinkText("http://" + A).replace(/^http:\/\//, "");
5305
- const y = l[g].index;
5306
- if (y > _) {
5337
+ let A = s[g].text;
5338
+ s[g].schema ? s[g].schema === "mailto:" && !/^mailto:/i.test(A) ? A = e.md.normalizeLinkText("mailto:" + A).replace(/^mailto:/, "") : A = e.md.normalizeLinkText(A) : A = e.md.normalizeLinkText("http://" + A).replace(/^http:\/\//, "");
5339
+ const v = s[g].index;
5340
+ if (v > _) {
5307
5341
  const k = new e.Token("text", "", 0);
5308
- k.content = c.slice(_, y), k.level = f, s.push(k);
5342
+ k.content = c.slice(_, v), k.level = f, l.push(k);
5309
5343
  }
5310
5344
  const h = new e.Token("link_open", "a", 1);
5311
- h.attrs = [["href", E]], h.level = f++, h.markup = "linkify", h.info = "auto", s.push(h);
5345
+ h.attrs = [["href", E]], h.level = f++, h.markup = "linkify", h.info = "auto", l.push(h);
5312
5346
  const p = new e.Token("text", "", 0);
5313
- p.content = A, p.level = f, s.push(p);
5347
+ p.content = A, p.level = f, l.push(p);
5314
5348
  const m = new e.Token("link_close", "a", -1);
5315
- m.level = --f, m.markup = "linkify", m.info = "auto", s.push(m), _ = l[g].lastIndex;
5349
+ m.level = --f, m.markup = "linkify", m.info = "auto", l.push(m), _ = s[g].lastIndex;
5316
5350
  }
5317
5351
  if (_ < c.length) {
5318
5352
  const g = new e.Token("text", "", 0);
5319
- g.content = c.slice(_), g.level = f, s.push(g);
5353
+ g.content = c.slice(_), g.level = f, l.push(g);
5320
5354
  }
5321
- u[t].children = r = uo(r, a, s);
5355
+ u[t].children = r = uo(r, a, l);
5322
5356
  }
5323
5357
  }
5324
5358
  }
@@ -5328,34 +5362,34 @@ const ro = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, Qc = /\((c|tm|r)\)/i, Jc = /\((c|tm|r
5328
5362
  r: "®",
5329
5363
  tm: "™"
5330
5364
  };
5331
- function el(e, u) {
5365
+ function es(e, u) {
5332
5366
  return Kc[u.toLowerCase()];
5333
5367
  }
5334
- function ul(e) {
5368
+ function us(e) {
5335
5369
  let u = 0;
5336
5370
  for (let t = e.length - 1; t >= 0; t--) {
5337
5371
  const n = e[t];
5338
- n.type === "text" && !u && (n.content = n.content.replace(Jc, el)), n.type === "link_open" && n.info === "auto" && u--, n.type === "link_close" && n.info === "auto" && u++;
5372
+ n.type === "text" && !u && (n.content = n.content.replace(Jc, es)), n.type === "link_open" && n.info === "auto" && u--, n.type === "link_close" && n.info === "auto" && u++;
5339
5373
  }
5340
5374
  }
5341
- function tl(e) {
5375
+ function ts(e) {
5342
5376
  let u = 0;
5343
5377
  for (let t = e.length - 1; t >= 0; t--) {
5344
5378
  const n = e[t];
5345
5379
  n.type === "text" && !u && ro.test(n.content) && (n.content = n.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1—").replace(/(^|\s)--(?=\s|$)/mg, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1–")), n.type === "link_open" && n.info === "auto" && u--, n.type === "link_close" && n.info === "auto" && u++;
5346
5380
  }
5347
5381
  }
5348
- function nl(e) {
5382
+ function ns(e) {
5349
5383
  let u;
5350
5384
  if (e.md.options.typographer)
5351
5385
  for (u = e.tokens.length - 1; u >= 0; u--)
5352
- e.tokens[u].type === "inline" && (Qc.test(e.tokens[u].content) && ul(e.tokens[u].children), ro.test(e.tokens[u].content) && tl(e.tokens[u].children));
5386
+ e.tokens[u].type === "inline" && (Qc.test(e.tokens[u].content) && us(e.tokens[u].children), ro.test(e.tokens[u].content) && ts(e.tokens[u].children));
5353
5387
  }
5354
- const rl = /['"]/, gr = /['"]/g, xr = "’";
5388
+ const rs = /['"]/, gr = /['"]/g, xr = "’";
5355
5389
  function ut(e, u, t) {
5356
5390
  return e.slice(0, u) + t + e.slice(u + 1);
5357
5391
  }
5358
- function ol(e, u) {
5392
+ function os(e, u) {
5359
5393
  let t;
5360
5394
  const n = [];
5361
5395
  for (let r = 0; r < e.length; r++) {
@@ -5364,19 +5398,19 @@ function ol(e, u) {
5364
5398
  ;
5365
5399
  if (n.length = t + 1, o.type !== "text")
5366
5400
  continue;
5367
- let i = o.content, c = 0, l = i.length;
5401
+ let i = o.content, c = 0, s = i.length;
5368
5402
  e:
5369
- for (; c < l; ) {
5403
+ for (; c < s; ) {
5370
5404
  gr.lastIndex = c;
5371
- const s = gr.exec(i);
5372
- if (!s)
5405
+ const l = gr.exec(i);
5406
+ if (!l)
5373
5407
  break;
5374
5408
  let f = !0, _ = !0;
5375
- c = s.index + 1;
5376
- const g = s[0] === "'";
5409
+ c = l.index + 1;
5410
+ const g = l[0] === "'";
5377
5411
  let d = 32;
5378
- if (s.index - 1 >= 0)
5379
- d = i.charCodeAt(s.index - 1);
5412
+ if (l.index - 1 >= 0)
5413
+ d = i.charCodeAt(l.index - 1);
5380
5414
  else
5381
5415
  for (t = r - 1; t >= 0 && !(e[t].type === "softbreak" || e[t].type === "hardbreak"); t--)
5382
5416
  if (e[t].content) {
@@ -5384,7 +5418,7 @@ function ol(e, u) {
5384
5418
  break;
5385
5419
  }
5386
5420
  let E = 32;
5387
- if (c < l)
5421
+ if (c < s)
5388
5422
  E = i.charCodeAt(c);
5389
5423
  else
5390
5424
  for (t = r + 1; t < e.length && !(e[t].type === "softbreak" || e[t].type === "hardbreak"); t++)
@@ -5392,9 +5426,9 @@ function ol(e, u) {
5392
5426
  E = e[t].content.charCodeAt(0);
5393
5427
  break;
5394
5428
  }
5395
- const A = Pu(d) || Tu(String.fromCharCode(d)), y = Pu(E) || Tu(String.fromCharCode(E)), h = Su(d), p = Su(E);
5396
- if (p ? f = !1 : y && (h || A || (f = !1)), h ? _ = !1 : A && (p || y || (_ = !1)), E === 34 && s[0] === '"' && d >= 48 && d <= 57 && (_ = f = !1), f && _ && (f = A, _ = y), !f && !_) {
5397
- g && (o.content = ut(o.content, s.index, xr));
5429
+ const A = Pu(d) || Tu(String.fromCharCode(d)), v = Pu(E) || Tu(String.fromCharCode(E)), h = Su(d), p = Su(E);
5430
+ if (p ? f = !1 : v && (h || A || (f = !1)), h ? _ = !1 : A && (p || v || (_ = !1)), E === 34 && l[0] === '"' && d >= 48 && d <= 57 && (_ = f = !1), f && _ && (f = A, _ = v), !f && !_) {
5431
+ g && (o.content = ut(o.content, l.index, xr));
5398
5432
  continue;
5399
5433
  }
5400
5434
  if (_)
@@ -5405,29 +5439,29 @@ function ol(e, u) {
5405
5439
  if (m.single === g && n[t].level === a) {
5406
5440
  m = n[t];
5407
5441
  let k, x;
5408
- g ? (k = u.md.options.quotes[2], x = u.md.options.quotes[3]) : (k = u.md.options.quotes[0], x = u.md.options.quotes[1]), o.content = ut(o.content, s.index, x), e[m.token].content = ut(
5442
+ g ? (k = u.md.options.quotes[2], x = u.md.options.quotes[3]) : (k = u.md.options.quotes[0], x = u.md.options.quotes[1]), o.content = ut(o.content, l.index, x), e[m.token].content = ut(
5409
5443
  e[m.token].content,
5410
5444
  m.pos,
5411
5445
  k
5412
- ), c += x.length - 1, m.token === r && (c += k.length - 1), i = o.content, l = i.length, n.length = t;
5446
+ ), c += x.length - 1, m.token === r && (c += k.length - 1), i = o.content, s = i.length, n.length = t;
5413
5447
  continue e;
5414
5448
  }
5415
5449
  }
5416
5450
  f ? n.push({
5417
5451
  token: r,
5418
- pos: s.index,
5452
+ pos: l.index,
5419
5453
  single: g,
5420
5454
  level: a
5421
- }) : _ && g && (o.content = ut(o.content, s.index, xr));
5455
+ }) : _ && g && (o.content = ut(o.content, l.index, xr));
5422
5456
  }
5423
5457
  }
5424
5458
  }
5425
- function il(e) {
5459
+ function is(e) {
5426
5460
  if (e.md.options.typographer)
5427
5461
  for (let u = e.tokens.length - 1; u >= 0; u--)
5428
- e.tokens[u].type !== "inline" || !rl.test(e.tokens[u].content) || ol(e.tokens[u].children, e);
5462
+ e.tokens[u].type !== "inline" || !rs.test(e.tokens[u].content) || os(e.tokens[u].children, e);
5429
5463
  }
5430
- function al(e) {
5464
+ function as(e) {
5431
5465
  let u, t;
5432
5466
  const n = e.tokens, r = n.length;
5433
5467
  for (let o = 0; o < r; o++) {
@@ -5445,11 +5479,11 @@ const jt = [
5445
5479
  ["block", Wc],
5446
5480
  ["inline", Vc],
5447
5481
  ["linkify", Xc],
5448
- ["replacements", nl],
5449
- ["smartquotes", il],
5482
+ ["replacements", ns],
5483
+ ["smartquotes", is],
5450
5484
  // `text_join` finds `text_special` tokens (for escape sequences)
5451
5485
  // and joins them with the rest of the text
5452
- ["text_join", al]
5486
+ ["text_join", as]
5453
5487
  ];
5454
5488
  function vn() {
5455
5489
  this.ruler = new _e();
@@ -5465,15 +5499,15 @@ vn.prototype.State = no;
5465
5499
  function Me(e, u, t, n) {
5466
5500
  this.src = e, this.md = u, 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;
5467
5501
  const r = this.src;
5468
- for (let o = 0, a = 0, i = 0, c = 0, l = r.length, s = !1; a < l; a++) {
5502
+ for (let o = 0, a = 0, i = 0, c = 0, s = r.length, l = !1; a < s; a++) {
5469
5503
  const f = r.charCodeAt(a);
5470
- if (!s)
5504
+ if (!l)
5471
5505
  if (Q(f)) {
5472
5506
  i++, f === 9 ? c += 4 - c % 4 : c++;
5473
5507
  continue;
5474
5508
  } else
5475
- s = !0;
5476
- (f === 10 || a === l - 1) && (f !== 10 && a++, this.bMarks.push(o), this.eMarks.push(a), this.tShift.push(i), this.sCount.push(c), this.bsCount.push(0), s = !1, i = 0, c = 0, o = a + 1);
5509
+ l = !0;
5510
+ (f === 10 || a === s - 1) && (f !== 10 && a++, this.bMarks.push(o), this.eMarks.push(a), this.tShift.push(i), this.sCount.push(c), this.bsCount.push(0), l = !1, i = 0, c = 0, o = a + 1);
5477
5511
  }
5478
5512
  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;
5479
5513
  }
@@ -5524,24 +5558,24 @@ Me.prototype.getLines = function(u, t, n, r) {
5524
5558
  const o = new Array(t - u);
5525
5559
  for (let a = 0, i = u; i < t; i++, a++) {
5526
5560
  let c = 0;
5527
- const l = this.bMarks[i];
5528
- let s = l, f;
5529
- for (i + 1 < t || r ? f = this.eMarks[i] + 1 : f = this.eMarks[i]; s < f && c < n; ) {
5530
- const _ = this.src.charCodeAt(s);
5561
+ const s = this.bMarks[i];
5562
+ let l = s, f;
5563
+ for (i + 1 < t || r ? f = this.eMarks[i] + 1 : f = this.eMarks[i]; l < f && c < n; ) {
5564
+ const _ = this.src.charCodeAt(l);
5531
5565
  if (Q(_))
5532
5566
  _ === 9 ? c += 4 - (c + this.bsCount[i]) % 4 : c++;
5533
- else if (s - l < this.tShift[i])
5567
+ else if (l - s < this.tShift[i])
5534
5568
  c++;
5535
5569
  else
5536
5570
  break;
5537
- s++;
5571
+ l++;
5538
5572
  }
5539
- c > n ? o[a] = new Array(c - n + 1).join(" ") + this.src.slice(s, f) : o[a] = this.src.slice(s, f);
5573
+ c > n ? o[a] = new Array(c - n + 1).join(" ") + this.src.slice(l, f) : o[a] = this.src.slice(l, f);
5540
5574
  }
5541
5575
  return o.join("");
5542
5576
  };
5543
5577
  Me.prototype.Token = Ce;
5544
- const cl = 65536;
5578
+ const cs = 65536;
5545
5579
  function Ht(e, u) {
5546
5580
  const t = e.bMarks[u] + e.tShift[u], n = e.eMarks[u];
5547
5581
  return e.src.slice(t, n);
@@ -5553,7 +5587,7 @@ function kr(e) {
5553
5587
  r === 124 && (o ? (i += e.substring(a, n - 1), a = n) : (u.push(i + e.substring(a, n)), i = "", a = n + 1)), o = r === 92, n++, r = e.charCodeAt(n);
5554
5588
  return u.push(i + e.substring(a)), u;
5555
5589
  }
5556
- function ll(e, u, t, n) {
5590
+ function ss(e, u, t, n) {
5557
5591
  if (u + 2 > t)
5558
5592
  return !1;
5559
5593
  let r = u + 1;
@@ -5574,24 +5608,24 @@ function ll(e, u, t, n) {
5574
5608
  return !1;
5575
5609
  o++;
5576
5610
  }
5577
- let c = Ht(e, u + 1), l = c.split("|");
5578
- const s = [];
5579
- for (let m = 0; m < l.length; m++) {
5580
- const k = l[m].trim();
5611
+ let c = Ht(e, u + 1), s = c.split("|");
5612
+ const l = [];
5613
+ for (let m = 0; m < s.length; m++) {
5614
+ const k = s[m].trim();
5581
5615
  if (!k) {
5582
- if (m === 0 || m === l.length - 1)
5616
+ if (m === 0 || m === s.length - 1)
5583
5617
  continue;
5584
5618
  return !1;
5585
5619
  }
5586
5620
  if (!/^:?-+:?$/.test(k))
5587
5621
  return !1;
5588
- k.charCodeAt(k.length - 1) === 58 ? s.push(k.charCodeAt(0) === 58 ? "center" : "right") : k.charCodeAt(0) === 58 ? s.push("left") : s.push("");
5622
+ k.charCodeAt(k.length - 1) === 58 ? l.push(k.charCodeAt(0) === 58 ? "center" : "right") : k.charCodeAt(0) === 58 ? l.push("left") : l.push("");
5589
5623
  }
5590
5624
  if (c = Ht(e, u).trim(), c.indexOf("|") === -1 || e.sCount[u] - e.blkIndent >= 4)
5591
5625
  return !1;
5592
- l = kr(c), l.length && l[0] === "" && l.shift(), l.length && l[l.length - 1] === "" && l.pop();
5593
- const f = l.length;
5594
- if (f === 0 || f !== s.length)
5626
+ s = kr(c), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop();
5627
+ const f = s.length;
5628
+ if (f === 0 || f !== l.length)
5595
5629
  return !1;
5596
5630
  if (n)
5597
5631
  return !0;
@@ -5601,13 +5635,13 @@ function ll(e, u, t, n) {
5601
5635
  d.map = E;
5602
5636
  const A = e.push("thead_open", "thead", 1);
5603
5637
  A.map = [u, u + 1];
5604
- const y = e.push("tr_open", "tr", 1);
5605
- y.map = [u, u + 1];
5606
- for (let m = 0; m < l.length; m++) {
5638
+ const v = e.push("tr_open", "tr", 1);
5639
+ v.map = [u, u + 1];
5640
+ for (let m = 0; m < s.length; m++) {
5607
5641
  const k = e.push("th_open", "th", 1);
5608
- s[m] && (k.attrs = [["style", "text-align:" + s[m]]]);
5642
+ l[m] && (k.attrs = [["style", "text-align:" + l[m]]]);
5609
5643
  const x = e.push("inline", "", 0);
5610
- x.content = l[m].trim(), x.children = [], e.push("th_close", "th", -1);
5644
+ x.content = s[m].trim(), x.children = [], e.push("th_close", "th", -1);
5611
5645
  }
5612
5646
  e.push("tr_close", "tr", -1), e.push("thead_close", "thead", -1);
5613
5647
  let h, p = 0;
@@ -5618,7 +5652,7 @@ function ll(e, u, t, n) {
5618
5652
  m = !0;
5619
5653
  break;
5620
5654
  }
5621
- if (m || (c = Ht(e, r).trim(), !c) || e.sCount[r] - e.blkIndent >= 4 || (l = kr(c), l.length && l[0] === "" && l.shift(), l.length && l[l.length - 1] === "" && l.pop(), p += f - l.length, p > cl))
5655
+ if (m || (c = Ht(e, r).trim(), !c) || e.sCount[r] - e.blkIndent >= 4 || (s = kr(c), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), p += f - s.length, p > cs))
5622
5656
  break;
5623
5657
  if (r === u + 2) {
5624
5658
  const x = e.push("tbody_open", "tbody", 1);
@@ -5628,15 +5662,15 @@ function ll(e, u, t, n) {
5628
5662
  k.map = [r, r + 1];
5629
5663
  for (let x = 0; x < f; x++) {
5630
5664
  const D = e.push("td_open", "td", 1);
5631
- s[x] && (D.attrs = [["style", "text-align:" + s[x]]]);
5665
+ l[x] && (D.attrs = [["style", "text-align:" + l[x]]]);
5632
5666
  const R = e.push("inline", "", 0);
5633
- R.content = l[x] ? l[x].trim() : "", R.children = [], e.push("td_close", "td", -1);
5667
+ R.content = s[x] ? s[x].trim() : "", R.children = [], e.push("td_close", "td", -1);
5634
5668
  }
5635
5669
  e.push("tr_close", "tr", -1);
5636
5670
  }
5637
5671
  return h && (e.push("tbody_close", "tbody", -1), h[1] = r), e.push("table_close", "table", -1), E[1] = r, e.parentType = _, e.line = r, !0;
5638
5672
  }
5639
- function sl(e, u, t) {
5673
+ function ls(e, u, t) {
5640
5674
  if (e.sCount[u] - e.blkIndent < 4)
5641
5675
  return !1;
5642
5676
  let n = u + 1, r = n;
@@ -5656,7 +5690,7 @@ function sl(e, u, t) {
5656
5690
  return o.content = e.getLines(u, r, 4 + e.blkIndent, !1) + `
5657
5691
  `, o.map = [u, e.line], !0;
5658
5692
  }
5659
- function fl(e, u, t, n) {
5693
+ function fs(e, u, t, n) {
5660
5694
  let r = e.bMarks[u] + e.tShift[u], o = e.eMarks[u];
5661
5695
  if (e.sCount[u] - e.blkIndent >= 4 || r + 3 > o)
5662
5696
  return !1;
@@ -5668,8 +5702,8 @@ function fl(e, u, t, n) {
5668
5702
  let c = r - i;
5669
5703
  if (c < 3)
5670
5704
  return !1;
5671
- const l = e.src.slice(i, r), s = e.src.slice(r, o);
5672
- if (a === 96 && s.indexOf(String.fromCharCode(a)) >= 0)
5705
+ const s = e.src.slice(i, r), l = e.src.slice(r, o);
5706
+ if (a === 96 && l.indexOf(String.fromCharCode(a)) >= 0)
5673
5707
  return !1;
5674
5708
  if (n)
5675
5709
  return !0;
@@ -5681,16 +5715,16 @@ function fl(e, u, t, n) {
5681
5715
  }
5682
5716
  c = e.sCount[u], e.line = f + (_ ? 1 : 0);
5683
5717
  const g = e.push("fence", "code", 0);
5684
- return g.info = s, g.content = e.getLines(u + 1, f, c, !0), g.markup = l, g.map = [u, e.line], !0;
5718
+ return g.info = l, g.content = e.getLines(u + 1, f, c, !0), g.markup = s, g.map = [u, e.line], !0;
5685
5719
  }
5686
- function dl(e, u, t, n) {
5720
+ function ds(e, u, t, n) {
5687
5721
  let r = e.bMarks[u] + e.tShift[u], o = e.eMarks[u];
5688
5722
  const a = e.lineMax;
5689
5723
  if (e.sCount[u] - e.blkIndent >= 4 || e.src.charCodeAt(r) !== 62)
5690
5724
  return !1;
5691
5725
  if (n)
5692
5726
  return !0;
5693
- const i = [], c = [], l = [], s = [], f = e.md.block.ruler.getRules("blockquote"), _ = e.parentType;
5727
+ const i = [], c = [], s = [], l = [], f = e.md.block.ruler.getRules("blockquote"), _ = e.parentType;
5694
5728
  e.parentType = "blockquote";
5695
5729
  let g = !1, d;
5696
5730
  for (d = u; d < t; d++) {
@@ -5702,14 +5736,14 @@ function dl(e, u, t, n) {
5702
5736
  e.src.charCodeAt(r) === 32 ? (r++, k++, D = !1, x = !0) : e.src.charCodeAt(r) === 9 ? (x = !0, (e.bsCount[d] + k) % 4 === 3 ? (r++, k++, D = !1) : D = !0) : x = !1;
5703
5737
  let R = k;
5704
5738
  for (i.push(e.bMarks[d]), e.bMarks[d] = r; r < o; ) {
5705
- const v = e.src.charCodeAt(r);
5706
- if (Q(v))
5707
- v === 9 ? R += 4 - (R + e.bsCount[d] + (D ? 1 : 0)) % 4 : R++;
5739
+ const y = e.src.charCodeAt(r);
5740
+ if (Q(y))
5741
+ y === 9 ? R += 4 - (R + e.bsCount[d] + (D ? 1 : 0)) % 4 : R++;
5708
5742
  else
5709
5743
  break;
5710
5744
  r++;
5711
5745
  }
5712
- g = r >= o, c.push(e.bsCount[d]), e.bsCount[d] = e.sCount[d] + 1 + (x ? 1 : 0), l.push(e.sCount[d]), e.sCount[d] = R - k, s.push(e.tShift[d]), e.tShift[d] = r - e.bMarks[d];
5746
+ g = r >= o, c.push(e.bsCount[d]), e.bsCount[d] = e.sCount[d] + 1 + (x ? 1 : 0), s.push(e.sCount[d]), e.sCount[d] = R - k, l.push(e.tShift[d]), e.tShift[d] = r - e.bMarks[d];
5713
5747
  continue;
5714
5748
  }
5715
5749
  if (g)
@@ -5721,24 +5755,24 @@ function dl(e, u, t, n) {
5721
5755
  break;
5722
5756
  }
5723
5757
  if (m) {
5724
- e.lineMax = d, e.blkIndent !== 0 && (i.push(e.bMarks[d]), c.push(e.bsCount[d]), s.push(e.tShift[d]), l.push(e.sCount[d]), e.sCount[d] -= e.blkIndent);
5758
+ e.lineMax = d, e.blkIndent !== 0 && (i.push(e.bMarks[d]), c.push(e.bsCount[d]), l.push(e.tShift[d]), s.push(e.sCount[d]), e.sCount[d] -= e.blkIndent);
5725
5759
  break;
5726
5760
  }
5727
- i.push(e.bMarks[d]), c.push(e.bsCount[d]), s.push(e.tShift[d]), l.push(e.sCount[d]), e.sCount[d] = -1;
5761
+ i.push(e.bMarks[d]), c.push(e.bsCount[d]), l.push(e.tShift[d]), s.push(e.sCount[d]), e.sCount[d] = -1;
5728
5762
  }
5729
5763
  const E = e.blkIndent;
5730
5764
  e.blkIndent = 0;
5731
5765
  const A = e.push("blockquote_open", "blockquote", 1);
5732
5766
  A.markup = ">";
5733
- const y = [u, 0];
5734
- A.map = y, e.md.block.tokenize(e, u, d);
5767
+ const v = [u, 0];
5768
+ A.map = v, e.md.block.tokenize(e, u, d);
5735
5769
  const h = e.push("blockquote_close", "blockquote", -1);
5736
- h.markup = ">", e.lineMax = a, e.parentType = _, y[1] = e.line;
5737
- for (let p = 0; p < s.length; p++)
5738
- e.bMarks[p + u] = i[p], e.tShift[p + u] = s[p], e.sCount[p + u] = l[p], e.bsCount[p + u] = c[p];
5770
+ h.markup = ">", e.lineMax = a, e.parentType = _, v[1] = e.line;
5771
+ for (let p = 0; p < l.length; p++)
5772
+ e.bMarks[p + u] = i[p], e.tShift[p + u] = l[p], e.sCount[p + u] = s[p], e.bsCount[p + u] = c[p];
5739
5773
  return e.blkIndent = E, !0;
5740
5774
  }
5741
- function pl(e, u, t, n) {
5775
+ function ps(e, u, t, n) {
5742
5776
  const r = e.eMarks[u];
5743
5777
  if (e.sCount[u] - e.blkIndent >= 4)
5744
5778
  return !1;
@@ -5748,10 +5782,10 @@ function pl(e, u, t, n) {
5748
5782
  return !1;
5749
5783
  let i = 1;
5750
5784
  for (; o < r; ) {
5751
- const l = e.src.charCodeAt(o++);
5752
- if (l !== a && !Q(l))
5785
+ const s = e.src.charCodeAt(o++);
5786
+ if (s !== a && !Q(s))
5753
5787
  return !1;
5754
- l === a && i++;
5788
+ s === a && i++;
5755
5789
  }
5756
5790
  if (i < 3)
5757
5791
  return !1;
@@ -5796,25 +5830,25 @@ function vr(e, u) {
5796
5830
  }
5797
5831
  return r < n && (o = e.src.charCodeAt(r), !Q(o)) ? -1 : r;
5798
5832
  }
5799
- function hl(e, u) {
5833
+ function hs(e, u) {
5800
5834
  const t = e.level + 2;
5801
5835
  for (let n = u + 2, r = e.tokens.length - 2; n < r; n++)
5802
5836
  e.tokens[n].level === t && e.tokens[n].type === "paragraph_open" && (e.tokens[n + 2].hidden = !0, e.tokens[n].hidden = !0, n += 2);
5803
5837
  }
5804
- function bl(e, u, t, n) {
5805
- let r, o, a, i, c = u, l = !0;
5838
+ function bs(e, u, t, n) {
5839
+ let r, o, a, i, c = u, s = !0;
5806
5840
  if (e.sCount[c] - e.blkIndent >= 4 || e.listIndent >= 0 && e.sCount[c] - e.listIndent >= 4 && e.sCount[c] < e.blkIndent)
5807
5841
  return !1;
5808
- let s = !1;
5809
- n && e.parentType === "paragraph" && e.sCount[c] >= e.blkIndent && (s = !0);
5842
+ let l = !1;
5843
+ n && e.parentType === "paragraph" && e.sCount[c] >= e.blkIndent && (l = !0);
5810
5844
  let f, _, g;
5811
5845
  if ((g = vr(e, c)) >= 0) {
5812
- if (f = !0, a = e.bMarks[c] + e.tShift[c], _ = Number(e.src.slice(a, g - 1)), s && _ !== 1) return !1;
5846
+ if (f = !0, a = e.bMarks[c] + e.tShift[c], _ = Number(e.src.slice(a, g - 1)), l && _ !== 1) return !1;
5813
5847
  } else if ((g = _r(e, c)) >= 0)
5814
5848
  f = !1;
5815
5849
  else
5816
5850
  return !1;
5817
- if (s && e.skipSpaces(g) >= e.eMarks[c])
5851
+ if (l && e.skipSpaces(g) >= e.eMarks[c])
5818
5852
  return !1;
5819
5853
  if (n)
5820
5854
  return !0;
@@ -5822,7 +5856,7 @@ function bl(e, u, t, n) {
5822
5856
  f ? (i = e.push("ordered_list_open", "ol", 1), _ !== 1 && (i.attrs = [["start", _]])) : i = e.push("bullet_list_open", "ul", 1);
5823
5857
  const A = [c, 0];
5824
5858
  i.map = A, i.markup = String.fromCharCode(d);
5825
- let y = !1;
5859
+ let v = !1;
5826
5860
  const h = e.md.block.ruler.getRules("list"), p = e.parentType;
5827
5861
  for (e.parentType = "list"; c < t; ) {
5828
5862
  o = g, r = e.eMarks[c];
@@ -5843,13 +5877,13 @@ function bl(e, u, t, n) {
5843
5877
  x >= r ? D = 1 : D = k - m, D > 4 && (D = 1);
5844
5878
  const R = m + D;
5845
5879
  i = e.push("list_item_open", "li", 1), i.markup = String.fromCharCode(d);
5846
- const v = [c, 0];
5847
- i.map = v, f && (i.info = e.src.slice(a, g - 1));
5848
- const $ = e.tight, N = e.tShift[c], W = e.sCount[c], ee = e.listIndent;
5849
- if (e.listIndent = e.blkIndent, e.blkIndent = R, e.tight = !0, e.tShift[c] = x - e.bMarks[c], e.sCount[c] = k, x >= r && e.isEmpty(c + 1) ? e.line = Math.min(e.line + 2, t) : e.md.block.tokenize(e, c, t, !0), (!e.tight || y) && (l = !1), y = e.line - c > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = ee, e.tShift[c] = N, e.sCount[c] = W, e.tight = $, i = e.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), c = e.line, v[1] = c, c >= t || e.sCount[c] < e.blkIndent || e.sCount[c] - e.blkIndent >= 4)
5880
+ const y = [c, 0];
5881
+ i.map = y, f && (i.info = e.src.slice(a, g - 1));
5882
+ const $ = e.tight, N = e.tShift[c], G = e.sCount[c], J = e.listIndent;
5883
+ if (e.listIndent = e.blkIndent, e.blkIndent = R, e.tight = !0, e.tShift[c] = x - e.bMarks[c], e.sCount[c] = k, x >= r && e.isEmpty(c + 1) ? e.line = Math.min(e.line + 2, t) : e.md.block.tokenize(e, c, t, !0), (!e.tight || v) && (s = !1), v = e.line - c > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = J, e.tShift[c] = N, e.sCount[c] = G, e.tight = $, i = e.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), c = e.line, y[1] = c, c >= t || e.sCount[c] < e.blkIndent || e.sCount[c] - e.blkIndent >= 4)
5850
5884
  break;
5851
5885
  let F = !1;
5852
- for (let q = 0, ce = h.length; q < ce; q++)
5886
+ for (let q = 0, se = h.length; q < se; q++)
5853
5887
  if (h[q](e, c, t, !0)) {
5854
5888
  F = !0;
5855
5889
  break;
@@ -5865,9 +5899,9 @@ function bl(e, u, t, n) {
5865
5899
  if (d !== e.src.charCodeAt(g - 1))
5866
5900
  break;
5867
5901
  }
5868
- return f ? i = e.push("ordered_list_close", "ol", -1) : i = e.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(d), A[1] = c, e.line = c, e.parentType = p, l && hl(e, E), !0;
5902
+ return f ? i = e.push("ordered_list_close", "ol", -1) : i = e.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(d), A[1] = c, e.line = c, e.parentType = p, s && hs(e, E), !0;
5869
5903
  }
5870
- function ml(e, u, t, n) {
5904
+ function ms(e, u, t, n) {
5871
5905
  let r = e.bMarks[u] + e.tShift[u], o = e.eMarks[u], a = u + 1;
5872
5906
  if (e.sCount[u] - e.blkIndent >= 4 || e.src.charCodeAt(r) !== 91)
5873
5907
  return !1;
@@ -5879,13 +5913,13 @@ function ml(e, u, t, n) {
5879
5913
  if (e.sCount[h] - e.blkIndent > 3 && (m = !0), e.sCount[h] < 0 && (m = !0), !m) {
5880
5914
  const D = e.md.block.ruler.getRules("reference"), R = e.parentType;
5881
5915
  e.parentType = "reference";
5882
- let v = !1;
5916
+ let y = !1;
5883
5917
  for (let $ = 0, N = D.length; $ < N; $++)
5884
5918
  if (D[$](e, h, p, !0)) {
5885
- v = !0;
5919
+ y = !0;
5886
5920
  break;
5887
5921
  }
5888
- if (e.parentType = R, v)
5922
+ if (e.parentType = R, y)
5889
5923
  return null;
5890
5924
  }
5891
5925
  const k = e.bMarks[h] + e.tShift[h], x = e.eMarks[h];
@@ -5893,13 +5927,13 @@ function ml(e, u, t, n) {
5893
5927
  }
5894
5928
  let c = e.src.slice(r, o + 1);
5895
5929
  o = c.length;
5896
- let l = -1;
5930
+ let s = -1;
5897
5931
  for (r = 1; r < o; r++) {
5898
5932
  const h = c.charCodeAt(r);
5899
5933
  if (h === 91)
5900
5934
  return !1;
5901
5935
  if (h === 93) {
5902
- l = r;
5936
+ s = r;
5903
5937
  break;
5904
5938
  } else if (h === 10) {
5905
5939
  const p = i(a);
@@ -5909,22 +5943,22 @@ function ml(e, u, t, n) {
5909
5943
  p !== null && (c += p, o = c.length, a++);
5910
5944
  }
5911
5945
  }
5912
- if (l < 0 || c.charCodeAt(l + 1) !== 58)
5946
+ if (s < 0 || c.charCodeAt(s + 1) !== 58)
5913
5947
  return !1;
5914
- for (r = l + 2; r < o; r++) {
5948
+ for (r = s + 2; r < o; r++) {
5915
5949
  const h = c.charCodeAt(r);
5916
5950
  if (h === 10) {
5917
5951
  const p = i(a);
5918
5952
  p !== null && (c += p, o = c.length, a++);
5919
5953
  } else if (!Q(h)) break;
5920
5954
  }
5921
- const s = e.md.helpers.parseLinkDestination(c, r, o);
5922
- if (!s.ok)
5955
+ const l = e.md.helpers.parseLinkDestination(c, r, o);
5956
+ if (!l.ok)
5923
5957
  return !1;
5924
- const f = e.md.normalizeLink(s.str);
5958
+ const f = e.md.normalizeLink(l.str);
5925
5959
  if (!e.md.validateLink(f))
5926
5960
  return !1;
5927
- r = s.pos;
5961
+ r = l.pos;
5928
5962
  const _ = r, g = a, d = r;
5929
5963
  for (; r < o; r++) {
5930
5964
  const h = c.charCodeAt(r);
@@ -5955,10 +5989,10 @@ function ml(e, u, t, n) {
5955
5989
  }
5956
5990
  if (r < o && c.charCodeAt(r) !== 10)
5957
5991
  return !1;
5958
- const y = vt(c.slice(1, l));
5959
- return y ? (n || (typeof e.env.references > "u" && (e.env.references = {}), typeof e.env.references[y] > "u" && (e.env.references[y] = { title: A, href: f }), e.line = a), !0) : !1;
5992
+ const v = vt(c.slice(1, s));
5993
+ return v ? (n || (typeof e.env.references > "u" && (e.env.references = {}), typeof e.env.references[v] > "u" && (e.env.references[v] = { title: A, href: f }), e.line = a), !0) : !1;
5960
5994
  }
5961
- const gl = [
5995
+ const gs = [
5962
5996
  "address",
5963
5997
  "article",
5964
5998
  "aside",
@@ -6021,39 +6055,39 @@ const gl = [
6021
6055
  "tr",
6022
6056
  "track",
6023
6057
  "ul"
6024
- ], xl = "[a-zA-Z_:][a-zA-Z0-9:._-]*", kl = "[^\"'=<>`\\x00-\\x20]+", _l = "'[^']*'", vl = '"[^"]*"', yl = "(?:" + kl + "|" + _l + "|" + vl + ")", El = "(?:\\s+" + xl + "(?:\\s*=\\s*" + yl + ")?)", oo = "<[A-Za-z][A-Za-z0-9\\-]*" + El + "*\\s*\\/?>", io = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", Al = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", wl = "<[?][\\s\\S]*?[?]>", Cl = "<![A-Za-z][^>]*>", Dl = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", Fl = new RegExp("^(?:" + oo + "|" + io + "|" + Al + "|" + wl + "|" + Cl + "|" + Dl + ")"), Sl = new RegExp("^(?:" + oo + "|" + io + ")"), lu = [
6058
+ ], xs = "[a-zA-Z_:][a-zA-Z0-9:._-]*", ks = "[^\"'=<>`\\x00-\\x20]+", _s = "'[^']*'", vs = '"[^"]*"', ys = "(?:" + ks + "|" + _s + "|" + vs + ")", Es = "(?:\\s+" + xs + "(?:\\s*=\\s*" + ys + ")?)", oo = "<[A-Za-z][A-Za-z0-9\\-]*" + Es + "*\\s*\\/?>", io = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", As = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", ws = "<[?][\\s\\S]*?[?]>", Cs = "<![A-Za-z][^>]*>", Ds = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", Fs = new RegExp("^(?:" + oo + "|" + io + "|" + As + "|" + ws + "|" + Cs + "|" + Ds + ")"), Ss = new RegExp("^(?:" + oo + "|" + io + ")"), su = [
6025
6059
  [/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
6026
6060
  [/^<!--/, /-->/, !0],
6027
6061
  [/^<\?/, /\?>/, !0],
6028
6062
  [/^<![A-Z]/, />/, !0],
6029
6063
  [/^<!\[CDATA\[/, /\]\]>/, !0],
6030
- [new RegExp("^</?(" + gl.join("|") + ")(?=(\\s|/?>|$))", "i"), /^$/, !0],
6031
- [new RegExp(Sl.source + "\\s*$"), /^$/, !1]
6064
+ [new RegExp("^</?(" + gs.join("|") + ")(?=(\\s|/?>|$))", "i"), /^$/, !0],
6065
+ [new RegExp(Ss.source + "\\s*$"), /^$/, !1]
6032
6066
  ];
6033
- function Tl(e, u, t, n) {
6067
+ function Ts(e, u, t, n) {
6034
6068
  let r = e.bMarks[u] + e.tShift[u], o = e.eMarks[u];
6035
6069
  if (e.sCount[u] - e.blkIndent >= 4 || !e.md.options.html || e.src.charCodeAt(r) !== 60)
6036
6070
  return !1;
6037
6071
  let a = e.src.slice(r, o), i = 0;
6038
- for (; i < lu.length && !lu[i][0].test(a); i++)
6072
+ for (; i < su.length && !su[i][0].test(a); i++)
6039
6073
  ;
6040
- if (i === lu.length)
6074
+ if (i === su.length)
6041
6075
  return !1;
6042
6076
  if (n)
6043
- return lu[i][2];
6077
+ return su[i][2];
6044
6078
  let c = u + 1;
6045
- if (!lu[i][1].test(a)) {
6079
+ if (!su[i][1].test(a)) {
6046
6080
  for (; c < t && !(e.sCount[c] < e.blkIndent); c++)
6047
- if (r = e.bMarks[c] + e.tShift[c], o = e.eMarks[c], a = e.src.slice(r, o), lu[i][1].test(a)) {
6081
+ if (r = e.bMarks[c] + e.tShift[c], o = e.eMarks[c], a = e.src.slice(r, o), su[i][1].test(a)) {
6048
6082
  a.length !== 0 && c++;
6049
6083
  break;
6050
6084
  }
6051
6085
  }
6052
6086
  e.line = c;
6053
- const l = e.push("html_block", "", 0);
6054
- return l.map = [u, c], l.content = e.getLines(u, c, e.blkIndent, !0), !0;
6087
+ const s = e.push("html_block", "", 0);
6088
+ return s.map = [u, c], s.content = e.getLines(u, c, e.blkIndent, !0), !0;
6055
6089
  }
6056
- function Pl(e, u, t, n) {
6090
+ function Ps(e, u, t, n) {
6057
6091
  let r = e.bMarks[u] + e.tShift[u], o = e.eMarks[u];
6058
6092
  if (e.sCount[u] - e.blkIndent >= 4)
6059
6093
  return !1;
@@ -6070,14 +6104,14 @@ function Pl(e, u, t, n) {
6070
6104
  o = e.skipSpacesBack(o, r);
6071
6105
  const c = e.skipCharsBack(o, 35, r);
6072
6106
  c > r && Q(e.src.charCodeAt(c - 1)) && (o = c), e.line = u + 1;
6073
- const l = e.push("heading_open", "h" + String(i), 1);
6074
- l.markup = "########".slice(0, i), l.map = [u, e.line];
6075
- const s = e.push("inline", "", 0);
6076
- s.content = e.src.slice(r, o).trim(), s.map = [u, e.line], s.children = [];
6107
+ const s = e.push("heading_open", "h" + String(i), 1);
6108
+ s.markup = "########".slice(0, i), s.map = [u, e.line];
6109
+ const l = e.push("inline", "", 0);
6110
+ l.content = e.src.slice(r, o).trim(), l.map = [u, e.line], l.children = [];
6077
6111
  const f = e.push("heading_close", "h" + String(i), -1);
6078
6112
  return f.markup = "########".slice(0, i), !0;
6079
6113
  }
6080
- function Rl(e, u, t) {
6114
+ function Rs(e, u, t) {
6081
6115
  const n = e.md.block.ruler.getRules("paragraph");
6082
6116
  if (e.sCount[u] - e.blkIndent >= 4)
6083
6117
  return !1;
@@ -6110,26 +6144,26 @@ function Rl(e, u, t) {
6110
6144
  return !1;
6111
6145
  const c = e.getLines(u, i, e.blkIndent, !1).trim();
6112
6146
  e.line = i + 1;
6113
- const l = e.push("heading_open", "h" + String(o), 1);
6114
- l.markup = String.fromCharCode(a), l.map = [u, e.line];
6115
- const s = e.push("inline", "", 0);
6116
- s.content = c, s.map = [u, e.line - 1], s.children = [];
6147
+ const s = e.push("heading_open", "h" + String(o), 1);
6148
+ s.markup = String.fromCharCode(a), s.map = [u, e.line];
6149
+ const l = e.push("inline", "", 0);
6150
+ l.content = c, l.map = [u, e.line - 1], l.children = [];
6117
6151
  const f = e.push("heading_close", "h" + String(o), -1);
6118
6152
  return f.markup = String.fromCharCode(a), e.parentType = r, !0;
6119
6153
  }
6120
- function Ol(e, u, t) {
6154
+ function Os(e, u, t) {
6121
6155
  const n = e.md.block.ruler.getRules("paragraph"), r = e.parentType;
6122
6156
  let o = u + 1;
6123
6157
  for (e.parentType = "paragraph"; o < t && !e.isEmpty(o); o++) {
6124
6158
  if (e.sCount[o] - e.blkIndent > 3 || e.sCount[o] < 0)
6125
6159
  continue;
6126
- let l = !1;
6127
- for (let s = 0, f = n.length; s < f; s++)
6128
- if (n[s](e, o, t, !0)) {
6129
- l = !0;
6160
+ let s = !1;
6161
+ for (let l = 0, f = n.length; l < f; l++)
6162
+ if (n[l](e, o, t, !0)) {
6163
+ s = !0;
6130
6164
  break;
6131
6165
  }
6132
- if (l)
6166
+ if (s)
6133
6167
  break;
6134
6168
  }
6135
6169
  const a = e.getLines(u, o, e.blkIndent, !1).trim();
@@ -6142,17 +6176,17 @@ function Ol(e, u, t) {
6142
6176
  const tt = [
6143
6177
  // First 2 params - rule name & source. Secondary array - list of rules,
6144
6178
  // which can be terminated by this one.
6145
- ["table", ll, ["paragraph", "reference"]],
6146
- ["code", sl],
6147
- ["fence", fl, ["paragraph", "reference", "blockquote", "list"]],
6148
- ["blockquote", dl, ["paragraph", "reference", "blockquote", "list"]],
6149
- ["hr", pl, ["paragraph", "reference", "blockquote", "list"]],
6150
- ["list", bl, ["paragraph", "reference", "blockquote"]],
6151
- ["reference", ml],
6152
- ["html_block", Tl, ["paragraph", "reference", "blockquote"]],
6153
- ["heading", Pl, ["paragraph", "reference", "blockquote"]],
6154
- ["lheading", Rl],
6155
- ["paragraph", Ol]
6179
+ ["table", ss, ["paragraph", "reference"]],
6180
+ ["code", ls],
6181
+ ["fence", fs, ["paragraph", "reference", "blockquote", "list"]],
6182
+ ["blockquote", ds, ["paragraph", "reference", "blockquote", "list"]],
6183
+ ["hr", ps, ["paragraph", "reference", "blockquote", "list"]],
6184
+ ["list", bs, ["paragraph", "reference", "blockquote"]],
6185
+ ["reference", ms],
6186
+ ["html_block", Ts, ["paragraph", "reference", "blockquote"]],
6187
+ ["heading", Ps, ["paragraph", "reference", "blockquote"]],
6188
+ ["lheading", Rs],
6189
+ ["paragraph", Os]
6156
6190
  ];
6157
6191
  function yt() {
6158
6192
  this.ruler = new _e();
@@ -6168,14 +6202,14 @@ yt.prototype.tokenize = function(e, u, t) {
6168
6202
  break;
6169
6203
  }
6170
6204
  const c = e.line;
6171
- let l = !1;
6172
- for (let s = 0; s < r; s++)
6173
- if (l = n[s](e, a, t, !1), l) {
6205
+ let s = !1;
6206
+ for (let l = 0; l < r; l++)
6207
+ if (s = n[l](e, a, t, !1), s) {
6174
6208
  if (c >= e.line)
6175
6209
  throw new Error("block rule didn't increment state.line");
6176
6210
  break;
6177
6211
  }
6178
- if (!l) throw new Error("none of the block rules matched");
6212
+ if (!s) throw new Error("none of the block rules matched");
6179
6213
  e.tight = !i, e.isEmpty(e.line - 1) && (i = !0), a = e.line, a < t && e.isEmpty(a) && (i = !0, a++, e.line = a);
6180
6214
  }
6181
6215
  };
@@ -6204,11 +6238,11 @@ zu.prototype.scanDelims = function(e, u) {
6204
6238
  let o = e;
6205
6239
  for (; o < t && this.src.charCodeAt(o) === n; )
6206
6240
  o++;
6207
- const a = o - e, i = o < t ? this.src.charCodeAt(o) : 32, c = Pu(r) || Tu(String.fromCharCode(r)), l = Pu(i) || Tu(String.fromCharCode(i)), s = Su(r), f = Su(i), _ = !f && (!l || s || c), g = !s && (!c || f || l);
6208
- return { can_open: _ && (u || !g || c), can_close: g && (u || !_ || l), length: a };
6241
+ const a = o - e, i = o < t ? this.src.charCodeAt(o) : 32, c = Pu(r) || Tu(String.fromCharCode(r)), s = Pu(i) || Tu(String.fromCharCode(i)), l = Su(r), f = Su(i), _ = !f && (!s || l || c), g = !l && (!c || f || s);
6242
+ return { can_open: _ && (u || !g || c), can_close: g && (u || !_ || s), length: a };
6209
6243
  };
6210
6244
  zu.prototype.Token = Ce;
6211
- function Ml(e) {
6245
+ function Ms(e) {
6212
6246
  switch (e) {
6213
6247
  case 10:
6214
6248
  case 33:
@@ -6238,18 +6272,18 @@ function Ml(e) {
6238
6272
  return !1;
6239
6273
  }
6240
6274
  }
6241
- function Ll(e, u) {
6275
+ function Ls(e, u) {
6242
6276
  let t = e.pos;
6243
- for (; t < e.posMax && !Ml(e.src.charCodeAt(t)); )
6277
+ for (; t < e.posMax && !Ms(e.src.charCodeAt(t)); )
6244
6278
  t++;
6245
6279
  return t === e.pos ? !1 : (u || (e.pending += e.src.slice(e.pos, t)), e.pos = t, !0);
6246
6280
  }
6247
- const Nl = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
6248
- function Il(e, u) {
6281
+ const Ns = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
6282
+ function Is(e, u) {
6249
6283
  if (!e.md.options.linkify || e.linkLevel > 0) return !1;
6250
6284
  const t = e.pos, n = e.posMax;
6251
6285
  if (t + 3 > n || e.src.charCodeAt(t) !== 58 || e.src.charCodeAt(t + 1) !== 47 || e.src.charCodeAt(t + 2) !== 47) return !1;
6252
- const r = e.pending.match(Nl);
6286
+ const r = e.pending.match(Ns);
6253
6287
  if (!r) return !1;
6254
6288
  const o = r[1], a = e.md.linkify.matchAtStart(e.src.slice(t - o.length));
6255
6289
  if (!a) return !1;
@@ -6260,16 +6294,16 @@ function Il(e, u) {
6260
6294
  if (!e.md.validateLink(c)) return !1;
6261
6295
  if (!u) {
6262
6296
  e.pending = e.pending.slice(0, -o.length);
6263
- const l = e.push("link_open", "a", 1);
6264
- l.attrs = [["href", c]], l.markup = "linkify", l.info = "auto";
6265
- const s = e.push("text", "", 0);
6266
- s.content = e.md.normalizeLinkText(i);
6297
+ const s = e.push("link_open", "a", 1);
6298
+ s.attrs = [["href", c]], s.markup = "linkify", s.info = "auto";
6299
+ const l = e.push("text", "", 0);
6300
+ l.content = e.md.normalizeLinkText(i);
6267
6301
  const f = e.push("link_close", "a", -1);
6268
6302
  f.markup = "linkify", f.info = "auto";
6269
6303
  }
6270
6304
  return e.pos += i.length - o.length, !0;
6271
6305
  }
6272
- function $l(e, u) {
6306
+ function $s(e, u) {
6273
6307
  let t = e.pos;
6274
6308
  if (e.src.charCodeAt(t) !== 10)
6275
6309
  return !1;
@@ -6294,7 +6328,7 @@ for (let e = 0; e < 256; e++)
6294
6328
  "\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e) {
6295
6329
  yn[e.charCodeAt(0)] = 1;
6296
6330
  });
6297
- function zl(e, u) {
6331
+ function zs(e, u) {
6298
6332
  let t = e.pos;
6299
6333
  const n = e.posMax;
6300
6334
  if (e.src.charCodeAt(t) !== 92 || (t++, t >= n)) return !1;
@@ -6316,7 +6350,7 @@ function zl(e, u) {
6316
6350
  }
6317
6351
  return e.pos = t + 1, !0;
6318
6352
  }
6319
- function Bl(e, u) {
6353
+ function Bs(e, u) {
6320
6354
  let t = e.pos;
6321
6355
  if (e.src.charCodeAt(t) !== 96)
6322
6356
  return !1;
@@ -6328,23 +6362,23 @@ function Bl(e, u) {
6328
6362
  const a = e.src.slice(r, t), i = a.length;
6329
6363
  if (e.backticksScanned && (e.backticks[i] || 0) <= r)
6330
6364
  return u || (e.pending += a), e.pos += i, !0;
6331
- let c = t, l;
6332
- for (; (l = e.src.indexOf("`", c)) !== -1; ) {
6333
- for (c = l + 1; c < o && e.src.charCodeAt(c) === 96; )
6365
+ let c = t, s;
6366
+ for (; (s = e.src.indexOf("`", c)) !== -1; ) {
6367
+ for (c = s + 1; c < o && e.src.charCodeAt(c) === 96; )
6334
6368
  c++;
6335
- const s = c - l;
6336
- if (s === i) {
6369
+ const l = c - s;
6370
+ if (l === i) {
6337
6371
  if (!u) {
6338
6372
  const f = e.push("code_inline", "code", 0);
6339
- f.markup = a, f.content = e.src.slice(t, l).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
6373
+ f.markup = a, f.content = e.src.slice(t, s).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
6340
6374
  }
6341
6375
  return e.pos = c, !0;
6342
6376
  }
6343
- e.backticks[s] = l;
6377
+ e.backticks[l] = s;
6344
6378
  }
6345
6379
  return e.backticksScanned = !0, u || (e.pending += a), e.pos += i, !0;
6346
6380
  }
6347
- function Ul(e, u) {
6381
+ function Us(e, u) {
6348
6382
  const t = e.pos, n = e.src.charCodeAt(t);
6349
6383
  if (u || n !== 126)
6350
6384
  return !1;
@@ -6385,17 +6419,17 @@ function yr(e, u) {
6385
6419
  a--, o !== a && (t = e.tokens[a], e.tokens[a] = e.tokens[o], e.tokens[o] = t);
6386
6420
  }
6387
6421
  }
6388
- function ql(e) {
6422
+ function qs(e) {
6389
6423
  const u = e.tokens_meta, t = e.tokens_meta.length;
6390
6424
  yr(e, e.delimiters);
6391
6425
  for (let n = 0; n < t; n++)
6392
6426
  u[n] && u[n].delimiters && yr(e, u[n].delimiters);
6393
6427
  }
6394
6428
  const ao = {
6395
- tokenize: Ul,
6396
- postProcess: ql
6429
+ tokenize: Us,
6430
+ postProcess: qs
6397
6431
  };
6398
- function jl(e, u) {
6432
+ function js(e, u) {
6399
6433
  const t = e.pos, n = e.src.charCodeAt(t);
6400
6434
  if (u || n !== 95 && n !== 42)
6401
6435
  return !1;
@@ -6435,30 +6469,30 @@ function Er(e, u) {
6435
6469
  u[n - 1].marker === r.marker && u[n - 1].token === r.token - 1 && // check that last two markers are adjacent (we can safely assume they match)
6436
6470
  u[r.end + 1].token === o.token + 1, i = String.fromCharCode(r.marker), c = e.tokens[r.token];
6437
6471
  c.type = a ? "strong_open" : "em_open", c.tag = a ? "strong" : "em", c.nesting = 1, c.markup = a ? i + i : i, c.content = "";
6438
- const l = e.tokens[o.token];
6439
- l.type = a ? "strong_close" : "em_close", l.tag = a ? "strong" : "em", l.nesting = -1, l.markup = a ? i + i : i, l.content = "", a && (e.tokens[u[n - 1].token].content = "", e.tokens[u[r.end + 1].token].content = "", n--);
6472
+ const s = e.tokens[o.token];
6473
+ s.type = a ? "strong_close" : "em_close", s.tag = a ? "strong" : "em", s.nesting = -1, s.markup = a ? i + i : i, s.content = "", a && (e.tokens[u[n - 1].token].content = "", e.tokens[u[r.end + 1].token].content = "", n--);
6440
6474
  }
6441
6475
  }
6442
- function Hl(e) {
6476
+ function Hs(e) {
6443
6477
  const u = e.tokens_meta, t = e.tokens_meta.length;
6444
6478
  Er(e, e.delimiters);
6445
6479
  for (let n = 0; n < t; n++)
6446
6480
  u[n] && u[n].delimiters && Er(e, u[n].delimiters);
6447
6481
  }
6448
6482
  const co = {
6449
- tokenize: jl,
6450
- postProcess: Hl
6483
+ tokenize: js,
6484
+ postProcess: Hs
6451
6485
  };
6452
- function Gl(e, u) {
6453
- let t, n, r, o, a = "", i = "", c = e.pos, l = !0;
6486
+ function Gs(e, u) {
6487
+ let t, n, r, o, a = "", i = "", c = e.pos, s = !0;
6454
6488
  if (e.src.charCodeAt(e.pos) !== 91)
6455
6489
  return !1;
6456
- const s = e.pos, f = e.posMax, _ = e.pos + 1, g = e.md.helpers.parseLinkLabel(e, e.pos, !0);
6490
+ const l = e.pos, f = e.posMax, _ = e.pos + 1, g = e.md.helpers.parseLinkLabel(e, e.pos, !0);
6457
6491
  if (g < 0)
6458
6492
  return !1;
6459
6493
  let d = g + 1;
6460
6494
  if (d < f && e.src.charCodeAt(d) === 40) {
6461
- for (l = !1, d++; d < f && (t = e.src.charCodeAt(d), !(!Q(t) && t !== 10)); d++)
6495
+ for (s = !1, d++; d < f && (t = e.src.charCodeAt(d), !(!Q(t) && t !== 10)); d++)
6462
6496
  ;
6463
6497
  if (d >= f)
6464
6498
  return !1;
@@ -6469,13 +6503,13 @@ function Gl(e, u) {
6469
6503
  for (i = r.str, d = r.pos; d < f && (t = e.src.charCodeAt(d), !(!Q(t) && t !== 10)); d++)
6470
6504
  ;
6471
6505
  }
6472
- (d >= f || e.src.charCodeAt(d) !== 41) && (l = !0), d++;
6506
+ (d >= f || e.src.charCodeAt(d) !== 41) && (s = !0), d++;
6473
6507
  }
6474
- if (l) {
6508
+ if (s) {
6475
6509
  if (typeof e.env.references > "u")
6476
6510
  return !1;
6477
6511
  if (d < f && e.src.charCodeAt(d) === 91 ? (c = d + 1, d = e.md.helpers.parseLinkLabel(e, d), d >= 0 ? n = e.src.slice(c, d++) : d = g + 1) : d = g + 1, n || (n = e.src.slice(_, g)), o = e.env.references[vt(n)], !o)
6478
- return e.pos = s, !1;
6512
+ return e.pos = l, !1;
6479
6513
  a = o.href, i = o.title;
6480
6514
  }
6481
6515
  if (!u) {
@@ -6485,8 +6519,8 @@ function Gl(e, u) {
6485
6519
  }
6486
6520
  return e.pos = d, e.posMax = f, !0;
6487
6521
  }
6488
- function Wl(e, u) {
6489
- let t, n, r, o, a, i, c, l, s = "";
6522
+ function Ws(e, u) {
6523
+ let t, n, r, o, a, i, c, s, l = "";
6490
6524
  const f = e.pos, _ = e.posMax;
6491
6525
  if (e.src.charCodeAt(e.pos) !== 33 || e.src.charCodeAt(e.pos + 1) !== 91)
6492
6526
  return !1;
@@ -6498,9 +6532,9 @@ function Wl(e, u) {
6498
6532
  ;
6499
6533
  if (o >= _)
6500
6534
  return !1;
6501
- for (l = o, i = e.md.helpers.parseLinkDestination(e.src, o, e.posMax), i.ok && (s = e.md.normalizeLink(i.str), e.md.validateLink(s) ? o = i.pos : s = ""), l = o; o < _ && (t = e.src.charCodeAt(o), !(!Q(t) && t !== 10)); o++)
6535
+ for (s = o, i = e.md.helpers.parseLinkDestination(e.src, o, e.posMax), i.ok && (l = e.md.normalizeLink(i.str), e.md.validateLink(l) ? o = i.pos : l = ""), s = o; o < _ && (t = e.src.charCodeAt(o), !(!Q(t) && t !== 10)); o++)
6502
6536
  ;
6503
- if (i = e.md.helpers.parseLinkTitle(e.src, o, e.posMax), o < _ && l !== o && i.ok)
6537
+ if (i = e.md.helpers.parseLinkTitle(e.src, o, e.posMax), o < _ && s !== o && i.ok)
6504
6538
  for (c = i.str, o = i.pos; o < _ && (t = e.src.charCodeAt(o), !(!Q(t) && t !== 10)); o++)
6505
6539
  ;
6506
6540
  else
@@ -6511,9 +6545,9 @@ function Wl(e, u) {
6511
6545
  } else {
6512
6546
  if (typeof e.env.references > "u")
6513
6547
  return !1;
6514
- if (o < _ && e.src.charCodeAt(o) === 91 ? (l = o + 1, o = e.md.helpers.parseLinkLabel(e, o), o >= 0 ? r = e.src.slice(l, o++) : o = d + 1) : o = d + 1, r || (r = e.src.slice(g, d)), a = e.env.references[vt(r)], !a)
6548
+ if (o < _ && e.src.charCodeAt(o) === 91 ? (s = o + 1, o = e.md.helpers.parseLinkLabel(e, o), o >= 0 ? r = e.src.slice(s, o++) : o = d + 1) : o = d + 1, r || (r = e.src.slice(g, d)), a = e.env.references[vt(r)], !a)
6515
6549
  return e.pos = f, !1;
6516
- s = a.href, c = a.title;
6550
+ l = a.href, c = a.title;
6517
6551
  }
6518
6552
  if (!u) {
6519
6553
  n = e.src.slice(g, d);
@@ -6524,13 +6558,13 @@ function Wl(e, u) {
6524
6558
  e.env,
6525
6559
  E
6526
6560
  );
6527
- const A = e.push("image", "img", 0), y = [["src", s], ["alt", ""]];
6528
- A.attrs = y, A.children = E, A.content = n, c && y.push(["title", c]);
6561
+ const A = e.push("image", "img", 0), v = [["src", l], ["alt", ""]];
6562
+ A.attrs = v, A.children = E, A.content = n, c && v.push(["title", c]);
6529
6563
  }
6530
6564
  return e.pos = o, e.posMax = _, !0;
6531
6565
  }
6532
- const Vl = /^([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])?)*)$/, Zl = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
6533
- function Yl(e, u) {
6566
+ const Vs = /^([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])?)*)$/, Zs = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
6567
+ function Ys(e, u) {
6534
6568
  let t = e.pos;
6535
6569
  if (e.src.charCodeAt(t) !== 60)
6536
6570
  return !1;
@@ -6542,7 +6576,7 @@ function Yl(e, u) {
6542
6576
  if (a === 62) break;
6543
6577
  }
6544
6578
  const o = e.src.slice(n + 1, t);
6545
- if (Zl.test(o)) {
6579
+ if (Zs.test(o)) {
6546
6580
  const a = e.md.normalizeLink(o);
6547
6581
  if (!e.md.validateLink(a))
6548
6582
  return !1;
@@ -6551,12 +6585,12 @@ function Yl(e, u) {
6551
6585
  i.attrs = [["href", a]], i.markup = "autolink", i.info = "auto";
6552
6586
  const c = e.push("text", "", 0);
6553
6587
  c.content = e.md.normalizeLinkText(o);
6554
- const l = e.push("link_close", "a", -1);
6555
- l.markup = "autolink", l.info = "auto";
6588
+ const s = e.push("link_close", "a", -1);
6589
+ s.markup = "autolink", s.info = "auto";
6556
6590
  }
6557
6591
  return e.pos += o.length + 2, !0;
6558
6592
  }
6559
- if (Vl.test(o)) {
6593
+ if (Vs.test(o)) {
6560
6594
  const a = e.md.normalizeLink("mailto:" + o);
6561
6595
  if (!e.md.validateLink(a))
6562
6596
  return !1;
@@ -6565,47 +6599,47 @@ function Yl(e, u) {
6565
6599
  i.attrs = [["href", a]], i.markup = "autolink", i.info = "auto";
6566
6600
  const c = e.push("text", "", 0);
6567
6601
  c.content = e.md.normalizeLinkText(o);
6568
- const l = e.push("link_close", "a", -1);
6569
- l.markup = "autolink", l.info = "auto";
6602
+ const s = e.push("link_close", "a", -1);
6603
+ s.markup = "autolink", s.info = "auto";
6570
6604
  }
6571
6605
  return e.pos += o.length + 2, !0;
6572
6606
  }
6573
6607
  return !1;
6574
6608
  }
6575
- function Xl(e) {
6609
+ function Xs(e) {
6576
6610
  return /^<a[>\s]/i.test(e);
6577
6611
  }
6578
- function Ql(e) {
6612
+ function Qs(e) {
6579
6613
  return /^<\/a\s*>/i.test(e);
6580
6614
  }
6581
- function Jl(e) {
6615
+ function Js(e) {
6582
6616
  const u = e | 32;
6583
6617
  return u >= 97 && u <= 122;
6584
6618
  }
6585
- function Kl(e, u) {
6619
+ function Ks(e, u) {
6586
6620
  if (!e.md.options.html)
6587
6621
  return !1;
6588
6622
  const t = e.posMax, n = e.pos;
6589
6623
  if (e.src.charCodeAt(n) !== 60 || n + 2 >= t)
6590
6624
  return !1;
6591
6625
  const r = e.src.charCodeAt(n + 1);
6592
- if (r !== 33 && r !== 63 && r !== 47 && !Jl(r))
6626
+ if (r !== 33 && r !== 63 && r !== 47 && !Js(r))
6593
6627
  return !1;
6594
- const o = e.src.slice(n).match(Fl);
6628
+ const o = e.src.slice(n).match(Fs);
6595
6629
  if (!o)
6596
6630
  return !1;
6597
6631
  if (!u) {
6598
6632
  const a = e.push("html_inline", "", 0);
6599
- a.content = o[0], Xl(a.content) && e.linkLevel++, Ql(a.content) && e.linkLevel--;
6633
+ a.content = o[0], Xs(a.content) && e.linkLevel++, Qs(a.content) && e.linkLevel--;
6600
6634
  }
6601
6635
  return e.pos += o[0].length, !0;
6602
6636
  }
6603
- const es = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, us = /^&([a-z][a-z0-9]{1,31});/i;
6604
- function ts(e, u) {
6637
+ const el = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, ul = /^&([a-z][a-z0-9]{1,31});/i;
6638
+ function tl(e, u) {
6605
6639
  const t = e.pos, n = e.posMax;
6606
6640
  if (e.src.charCodeAt(t) !== 38 || t + 1 >= n) return !1;
6607
6641
  if (e.src.charCodeAt(t + 1) === 35) {
6608
- const o = e.src.slice(t).match(es);
6642
+ const o = e.src.slice(t).match(el);
6609
6643
  if (o) {
6610
6644
  if (!u) {
6611
6645
  const a = o[1][0].toLowerCase() === "x" ? parseInt(o[1].slice(1), 16) : parseInt(o[1], 10), i = e.push("text_special", "", 0);
@@ -6614,7 +6648,7 @@ function ts(e, u) {
6614
6648
  return e.pos += o[0].length, !0;
6615
6649
  }
6616
6650
  } else {
6617
- const o = e.src.slice(t).match(us);
6651
+ const o = e.src.slice(t).match(ul);
6618
6652
  if (o) {
6619
6653
  const a = eo(o[0]);
6620
6654
  if (a !== o[0]) {
@@ -6638,28 +6672,28 @@ function Ar(e) {
6638
6672
  if (o.push(0), (e[n].marker !== i.marker || r !== i.token - 1) && (n = a), r = i.token, i.length = i.length || 0, !i.close) continue;
6639
6673
  u.hasOwnProperty(i.marker) || (u[i.marker] = [-1, -1, -1, -1, -1, -1]);
6640
6674
  const c = u[i.marker][(i.open ? 3 : 0) + i.length % 3];
6641
- let l = n - o[n] - 1, s = l;
6642
- for (; l > c; l -= o[l] + 1) {
6643
- const f = e[l];
6675
+ let s = n - o[n] - 1, l = s;
6676
+ for (; s > c; s -= o[s] + 1) {
6677
+ const f = e[s];
6644
6678
  if (f.marker === i.marker && f.open && f.end < 0) {
6645
6679
  let _ = !1;
6646
6680
  if ((f.close || i.open) && (f.length + i.length) % 3 === 0 && (f.length % 3 !== 0 || i.length % 3 !== 0) && (_ = !0), !_) {
6647
- const g = l > 0 && !e[l - 1].open ? o[l - 1] + 1 : 0;
6648
- o[a] = a - l + g, o[l] = g, i.open = !1, f.end = a, f.close = !1, s = -1, r = -2;
6681
+ const g = s > 0 && !e[s - 1].open ? o[s - 1] + 1 : 0;
6682
+ o[a] = a - s + g, o[s] = g, i.open = !1, f.end = a, f.close = !1, l = -1, r = -2;
6649
6683
  break;
6650
6684
  }
6651
6685
  }
6652
6686
  }
6653
- s !== -1 && (u[i.marker][(i.open ? 3 : 0) + (i.length || 0) % 3] = s);
6687
+ l !== -1 && (u[i.marker][(i.open ? 3 : 0) + (i.length || 0) % 3] = l);
6654
6688
  }
6655
6689
  }
6656
- function ns(e) {
6690
+ function nl(e) {
6657
6691
  const u = e.tokens_meta, t = e.tokens_meta.length;
6658
6692
  Ar(e.delimiters);
6659
6693
  for (let n = 0; n < t; n++)
6660
6694
  u[n] && u[n].delimiters && Ar(u[n].delimiters);
6661
6695
  }
6662
- function rs(e) {
6696
+ function rl(e) {
6663
6697
  let u, t, n = 0;
6664
6698
  const r = e.tokens, o = e.tokens.length;
6665
6699
  for (u = t = 0; u < o; u++)
@@ -6667,25 +6701,25 @@ function rs(e) {
6667
6701
  u !== t && (r.length = t);
6668
6702
  }
6669
6703
  const Gt = [
6670
- ["text", Ll],
6671
- ["linkify", Il],
6672
- ["newline", $l],
6673
- ["escape", zl],
6674
- ["backticks", Bl],
6704
+ ["text", Ls],
6705
+ ["linkify", Is],
6706
+ ["newline", $s],
6707
+ ["escape", zs],
6708
+ ["backticks", Bs],
6675
6709
  ["strikethrough", ao.tokenize],
6676
6710
  ["emphasis", co.tokenize],
6677
- ["link", Gl],
6678
- ["image", Wl],
6679
- ["autolink", Yl],
6680
- ["html_inline", Kl],
6681
- ["entity", ts]
6711
+ ["link", Gs],
6712
+ ["image", Ws],
6713
+ ["autolink", Ys],
6714
+ ["html_inline", Ks],
6715
+ ["entity", tl]
6682
6716
  ], Wt = [
6683
- ["balance_pairs", ns],
6717
+ ["balance_pairs", nl],
6684
6718
  ["strikethrough", ao.postProcess],
6685
6719
  ["emphasis", co.postProcess],
6686
6720
  // rules for pairs separate '**' into its own text tokens, which may be left unused,
6687
6721
  // rule below merges unused segments back with the rest of the text
6688
- ["fragments_join", rs]
6722
+ ["fragments_join", rl]
6689
6723
  ];
6690
6724
  function Bu() {
6691
6725
  this.ruler = new _e();
@@ -6743,7 +6777,7 @@ Bu.prototype.parse = function(e, u, t, n) {
6743
6777
  o[i](r);
6744
6778
  };
6745
6779
  Bu.prototype.State = zu;
6746
- function os(e) {
6780
+ function ol(e) {
6747
6781
  const u = {};
6748
6782
  e = e || {}, u.src_Any = Yr.source, u.src_Cc = Xr.source, u.src_Z = Jr.source, u.src_P = xn.source, u.src_ZPCc = [u.src_Z, u.src_P, u.src_Cc].join("|"), u.src_ZCc = [u.src_Z, u.src_Cc].join("|");
6749
6783
  const t = "[><|]";
@@ -6765,32 +6799,32 @@ function nn(e) {
6765
6799
  function Et(e) {
6766
6800
  return Object.prototype.toString.call(e);
6767
6801
  }
6768
- function is(e) {
6802
+ function il(e) {
6769
6803
  return Et(e) === "[object String]";
6770
6804
  }
6771
- function as(e) {
6805
+ function al(e) {
6772
6806
  return Et(e) === "[object Object]";
6773
6807
  }
6774
- function cs(e) {
6808
+ function cl(e) {
6775
6809
  return Et(e) === "[object RegExp]";
6776
6810
  }
6777
6811
  function wr(e) {
6778
6812
  return Et(e) === "[object Function]";
6779
6813
  }
6780
- function ls(e) {
6814
+ function sl(e) {
6781
6815
  return e.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
6782
6816
  }
6783
- const lo = {
6817
+ const so = {
6784
6818
  fuzzyLink: !0,
6785
6819
  fuzzyEmail: !0,
6786
6820
  fuzzyIP: !1
6787
6821
  };
6788
- function ss(e) {
6822
+ function ll(e) {
6789
6823
  return Object.keys(e || {}).reduce(function(u, t) {
6790
- return u || lo.hasOwnProperty(t);
6824
+ return u || so.hasOwnProperty(t);
6791
6825
  }, !1);
6792
6826
  }
6793
- const fs = {
6827
+ const fl = {
6794
6828
  "http:": {
6795
6829
  validate: function(e, u, t) {
6796
6830
  const n = e.slice(u);
@@ -6822,11 +6856,11 @@ const fs = {
6822
6856
  )), t.re.mailto.test(n) ? n.match(t.re.mailto)[0].length : 0;
6823
6857
  }
6824
6858
  }
6825
- }, ds = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", ps = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
6826
- function hs(e) {
6859
+ }, dl = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", pl = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
6860
+ function hl(e) {
6827
6861
  e.__index__ = -1, e.__text_cache__ = "";
6828
6862
  }
6829
- function bs(e) {
6863
+ function bl(e) {
6830
6864
  return function(u, t) {
6831
6865
  const n = u.slice(t);
6832
6866
  return e.test(n) ? n.match(e)[0].length : 0;
@@ -6838,8 +6872,8 @@ function Cr() {
6838
6872
  };
6839
6873
  }
6840
6874
  function bt(e) {
6841
- const u = e.re = os(e.__opts__), t = e.__tlds__.slice();
6842
- e.onCompile(), e.__tlds_replaced__ || t.push(ds), t.push(u.src_xn), u.src_tlds = t.join("|");
6875
+ const u = e.re = ol(e.__opts__), t = e.__tlds__.slice();
6876
+ e.onCompile(), e.__tlds_replaced__ || t.push(dl), t.push(u.src_xn), u.src_tlds = t.join("|");
6843
6877
  function n(i) {
6844
6878
  return i.replace("%TLDS%", u.src_tlds);
6845
6879
  }
@@ -6853,12 +6887,12 @@ function bt(e) {
6853
6887
  const c = e.__schemas__[i];
6854
6888
  if (c === null)
6855
6889
  return;
6856
- const l = { validate: null, link: null };
6857
- if (e.__compiled__[i] = l, as(c)) {
6858
- cs(c.validate) ? l.validate = bs(c.validate) : wr(c.validate) ? l.validate = c.validate : o(i, c), wr(c.normalize) ? l.normalize = c.normalize : c.normalize ? o(i, c) : l.normalize = Cr();
6890
+ const s = { validate: null, link: null };
6891
+ if (e.__compiled__[i] = s, al(c)) {
6892
+ cl(c.validate) ? s.validate = bl(c.validate) : wr(c.validate) ? s.validate = c.validate : o(i, c), wr(c.normalize) ? s.normalize = c.normalize : c.normalize ? o(i, c) : s.normalize = Cr();
6859
6893
  return;
6860
6894
  }
6861
- if (is(c)) {
6895
+ if (il(c)) {
6862
6896
  r.push(i);
6863
6897
  return;
6864
6898
  }
@@ -6868,24 +6902,24 @@ function bt(e) {
6868
6902
  }), e.__compiled__[""] = { validate: null, normalize: Cr() };
6869
6903
  const a = Object.keys(e.__compiled__).filter(function(i) {
6870
6904
  return i.length > 0 && e.__compiled__[i];
6871
- }).map(ls).join("|");
6905
+ }).map(sl).join("|");
6872
6906
  e.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + u.src_ZPCc + "))(" + a + ")", "i"), e.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + u.src_ZPCc + "))(" + a + ")", "ig"), e.re.schema_at_start = RegExp("^" + e.re.schema_search.source, "i"), e.re.pretest = RegExp(
6873
6907
  "(" + e.re.schema_test.source + ")|(" + e.re.host_fuzzy_test.source + ")|@",
6874
6908
  "i"
6875
- ), hs(e);
6909
+ ), hl(e);
6876
6910
  }
6877
- function ms(e, u) {
6911
+ function ml(e, u) {
6878
6912
  const t = e.__index__, n = e.__last_index__, r = e.__text_cache__.slice(t, n);
6879
6913
  this.schema = e.__schema__.toLowerCase(), this.index = t + u, this.lastIndex = n + u, this.raw = r, this.text = r, this.url = r;
6880
6914
  }
6881
6915
  function rn(e, u) {
6882
- const t = new ms(e, u);
6916
+ const t = new ml(e, u);
6883
6917
  return e.__compiled__[t.schema].normalize(t, e), t;
6884
6918
  }
6885
6919
  function ye(e, u) {
6886
6920
  if (!(this instanceof ye))
6887
6921
  return new ye(e, u);
6888
- u || ss(e) && (u = e, e = {}), this.__opts__ = nn({}, lo, u), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = nn({}, fs, e), this.__compiled__ = {}, this.__tlds__ = ps, this.__tlds_replaced__ = !1, this.re = {}, bt(this);
6922
+ u || ll(e) && (u = e, e = {}), this.__opts__ = nn({}, so, u), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = nn({}, fl, e), this.__compiled__ = {}, this.__tlds__ = pl, this.__tlds_replaced__ = !1, this.re = {}, bt(this);
6889
6923
  }
6890
6924
  ye.prototype.add = function(u, t) {
6891
6925
  return this.__schemas__[u] = t, bt(this), this;
@@ -6896,7 +6930,7 @@ ye.prototype.set = function(u) {
6896
6930
  ye.prototype.test = function(u) {
6897
6931
  if (this.__text_cache__ = u, this.__index__ = -1, !u.length)
6898
6932
  return !1;
6899
- let t, n, r, o, a, i, c, l, s;
6933
+ let t, n, r, o, a, i, c, s, l;
6900
6934
  if (this.re.schema_test.test(u)) {
6901
6935
  for (c = this.re.schema_search, c.lastIndex = 0; (t = c.exec(u)) !== null; )
6902
6936
  if (o = this.testSchemaAt(u, t[2], c.lastIndex), o) {
@@ -6904,7 +6938,7 @@ ye.prototype.test = function(u) {
6904
6938
  break;
6905
6939
  }
6906
6940
  }
6907
- return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (l = u.search(this.re.host_fuzzy_test), l >= 0 && (this.__index__ < 0 || l < this.__index__) && (n = u.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (a = n.index + n[1].length, (this.__index__ < 0 || a < this.__index__) && (this.__schema__ = "", this.__index__ = a, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (s = u.indexOf("@"), s >= 0 && (r = u.match(this.re.email_fuzzy)) !== null && (a = r.index + r[1].length, i = r.index + r[0].length, (this.__index__ < 0 || a < this.__index__ || a === this.__index__ && i > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = a, this.__last_index__ = i))), this.__index__ >= 0;
6941
+ return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (s = u.search(this.re.host_fuzzy_test), s >= 0 && (this.__index__ < 0 || s < this.__index__) && (n = u.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (a = n.index + n[1].length, (this.__index__ < 0 || a < this.__index__) && (this.__schema__ = "", this.__index__ = a, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (l = u.indexOf("@"), l >= 0 && (r = u.match(this.re.email_fuzzy)) !== null && (a = r.index + r[1].length, i = r.index + r[0].length, (this.__index__ < 0 || a < this.__index__ || a === this.__index__ && i > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = a, this.__last_index__ = i))), this.__index__ >= 0;
6908
6942
  };
6909
6943
  ye.prototype.pretest = function(u) {
6910
6944
  return this.re.pretest.test(u);
@@ -6938,15 +6972,15 @@ ye.prototype.normalize = function(u) {
6938
6972
  };
6939
6973
  ye.prototype.onCompile = function() {
6940
6974
  };
6941
- const du = 2147483647, Te = 36, En = 1, Ru = 26, gs = 38, xs = 700, so = 72, fo = 128, po = "-", ks = /^xn--/, _s = /[^\0-\x7F]/, vs = /[\x2E\u3002\uFF0E\uFF61]/g, ys = {
6975
+ const du = 2147483647, Te = 36, En = 1, Ru = 26, gl = 38, xl = 700, lo = 72, fo = 128, po = "-", kl = /^xn--/, _l = /[^\0-\x7F]/, vl = /[\x2E\u3002\uFF0E\uFF61]/g, yl = {
6942
6976
  overflow: "Overflow: input needs wider integers to process",
6943
6977
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
6944
6978
  "invalid-input": "Invalid input"
6945
6979
  }, Vt = Te - En, Pe = Math.floor, Zt = String.fromCharCode;
6946
6980
  function He(e) {
6947
- throw new RangeError(ys[e]);
6981
+ throw new RangeError(yl[e]);
6948
6982
  }
6949
- function Es(e, u) {
6983
+ function El(e, u) {
6950
6984
  const t = [];
6951
6985
  let n = e.length;
6952
6986
  for (; n--; )
@@ -6956,8 +6990,8 @@ function Es(e, u) {
6956
6990
  function ho(e, u) {
6957
6991
  const t = e.split("@");
6958
6992
  let n = "";
6959
- t.length > 1 && (n = t[0] + "@", e = t[1]), e = e.replace(vs, ".");
6960
- const r = e.split("."), o = Es(r, u).join(".");
6993
+ t.length > 1 && (n = t[0] + "@", e = t[1]), e = e.replace(vl, ".");
6994
+ const r = e.split("."), o = El(r, u).join(".");
6961
6995
  return n + o;
6962
6996
  }
6963
6997
  function bo(e) {
@@ -6974,54 +7008,54 @@ function bo(e) {
6974
7008
  }
6975
7009
  return u;
6976
7010
  }
6977
- const As = (e) => String.fromCodePoint(...e), ws = function(e) {
7011
+ const Al = (e) => String.fromCodePoint(...e), wl = function(e) {
6978
7012
  return e >= 48 && e < 58 ? 26 + (e - 48) : e >= 65 && e < 91 ? e - 65 : e >= 97 && e < 123 ? e - 97 : Te;
6979
7013
  }, Dr = function(e, u) {
6980
7014
  return e + 22 + 75 * (e < 26) - ((u != 0) << 5);
6981
7015
  }, mo = function(e, u, t) {
6982
7016
  let n = 0;
6983
- for (e = t ? Pe(e / xs) : e >> 1, e += Pe(e / u); e > Vt * Ru >> 1; n += Te)
7017
+ for (e = t ? Pe(e / xl) : e >> 1, e += Pe(e / u); e > Vt * Ru >> 1; n += Te)
6984
7018
  e = Pe(e / Vt);
6985
- return Pe(n + (Vt + 1) * e / (e + gs));
7019
+ return Pe(n + (Vt + 1) * e / (e + gl));
6986
7020
  }, go = function(e) {
6987
7021
  const u = [], t = e.length;
6988
- let n = 0, r = fo, o = so, a = e.lastIndexOf(po);
7022
+ let n = 0, r = fo, o = lo, a = e.lastIndexOf(po);
6989
7023
  a < 0 && (a = 0);
6990
7024
  for (let i = 0; i < a; ++i)
6991
7025
  e.charCodeAt(i) >= 128 && He("not-basic"), u.push(e.charCodeAt(i));
6992
7026
  for (let i = a > 0 ? a + 1 : 0; i < t; ) {
6993
7027
  const c = n;
6994
- for (let s = 1, f = Te; ; f += Te) {
7028
+ for (let l = 1, f = Te; ; f += Te) {
6995
7029
  i >= t && He("invalid-input");
6996
- const _ = ws(e.charCodeAt(i++));
6997
- _ >= Te && He("invalid-input"), _ > Pe((du - n) / s) && He("overflow"), n += _ * s;
7030
+ const _ = wl(e.charCodeAt(i++));
7031
+ _ >= Te && He("invalid-input"), _ > Pe((du - n) / l) && He("overflow"), n += _ * l;
6998
7032
  const g = f <= o ? En : f >= o + Ru ? Ru : f - o;
6999
7033
  if (_ < g)
7000
7034
  break;
7001
7035
  const d = Te - g;
7002
- s > Pe(du / d) && He("overflow"), s *= d;
7036
+ l > Pe(du / d) && He("overflow"), l *= d;
7003
7037
  }
7004
- const l = u.length + 1;
7005
- o = mo(n - c, l, c == 0), Pe(n / l) > du - r && He("overflow"), r += Pe(n / l), n %= l, u.splice(n++, 0, r);
7038
+ const s = u.length + 1;
7039
+ o = mo(n - c, s, c == 0), Pe(n / s) > du - r && He("overflow"), r += Pe(n / s), n %= s, u.splice(n++, 0, r);
7006
7040
  }
7007
7041
  return String.fromCodePoint(...u);
7008
7042
  }, xo = function(e) {
7009
7043
  const u = [];
7010
7044
  e = bo(e);
7011
7045
  const t = e.length;
7012
- let n = fo, r = 0, o = so;
7046
+ let n = fo, r = 0, o = lo;
7013
7047
  for (const c of e)
7014
7048
  c < 128 && u.push(Zt(c));
7015
7049
  const a = u.length;
7016
7050
  let i = a;
7017
7051
  for (a && u.push(po); i < t; ) {
7018
7052
  let c = du;
7019
- for (const s of e)
7020
- s >= n && s < c && (c = s);
7021
- const l = i + 1;
7022
- c - n > Pe((du - r) / l) && He("overflow"), r += (c - n) * l, n = c;
7023
- for (const s of e)
7024
- if (s < n && ++r > du && He("overflow"), s === n) {
7053
+ for (const l of e)
7054
+ l >= n && l < c && (c = l);
7055
+ const s = i + 1;
7056
+ c - n > Pe((du - r) / s) && He("overflow"), r += (c - n) * s, n = c;
7057
+ for (const l of e)
7058
+ if (l < n && ++r > du && He("overflow"), l === n) {
7025
7059
  let f = r;
7026
7060
  for (let _ = Te; ; _ += Te) {
7027
7061
  const g = _ <= o ? En : _ >= o + Ru ? Ru : _ - o;
@@ -7032,18 +7066,18 @@ const As = (e) => String.fromCodePoint(...e), ws = function(e) {
7032
7066
  Zt(Dr(g + d % E, 0))
7033
7067
  ), f = Pe(d / E);
7034
7068
  }
7035
- u.push(Zt(Dr(f, 0))), o = mo(r, l, i === a), r = 0, ++i;
7069
+ u.push(Zt(Dr(f, 0))), o = mo(r, s, i === a), r = 0, ++i;
7036
7070
  }
7037
7071
  ++r, ++n;
7038
7072
  }
7039
7073
  return u.join("");
7040
- }, Cs = function(e) {
7074
+ }, Cl = function(e) {
7041
7075
  return ho(e, function(u) {
7042
- return ks.test(u) ? go(u.slice(4).toLowerCase()) : u;
7076
+ return kl.test(u) ? go(u.slice(4).toLowerCase()) : u;
7043
7077
  });
7044
- }, Ds = function(e) {
7078
+ }, Dl = function(e) {
7045
7079
  return ho(e, function(u) {
7046
- return _s.test(u) ? "xn--" + xo(u) : u;
7080
+ return _l.test(u) ? "xn--" + xo(u) : u;
7047
7081
  });
7048
7082
  }, ko = {
7049
7083
  /**
@@ -7061,13 +7095,13 @@ const As = (e) => String.fromCodePoint(...e), ws = function(e) {
7061
7095
  */
7062
7096
  ucs2: {
7063
7097
  decode: bo,
7064
- encode: As
7098
+ encode: Al
7065
7099
  },
7066
7100
  decode: go,
7067
7101
  encode: xo,
7068
- toASCII: Ds,
7069
- toUnicode: Cs
7070
- }, Fs = {
7102
+ toASCII: Dl,
7103
+ toUnicode: Cl
7104
+ }, Fl = {
7071
7105
  options: {
7072
7106
  // Enable HTML tags in source
7073
7107
  html: !1,
@@ -7103,7 +7137,7 @@ const As = (e) => String.fromCodePoint(...e), ws = function(e) {
7103
7137
  block: {},
7104
7138
  inline: {}
7105
7139
  }
7106
- }, Ss = {
7140
+ }, Sl = {
7107
7141
  options: {
7108
7142
  // Enable HTML tags in source
7109
7143
  html: !1,
@@ -7158,7 +7192,7 @@ const As = (e) => String.fromCodePoint(...e), ws = function(e) {
7158
7192
  ]
7159
7193
  }
7160
7194
  }
7161
- }, Ts = {
7195
+ }, Tl = {
7162
7196
  options: {
7163
7197
  // Enable HTML tags in source
7164
7198
  html: !0,
@@ -7232,17 +7266,17 @@ const As = (e) => String.fromCodePoint(...e), ws = function(e) {
7232
7266
  ]
7233
7267
  }
7234
7268
  }
7235
- }, Ps = {
7236
- default: Fs,
7237
- zero: Ss,
7238
- commonmark: Ts
7239
- }, Rs = /^(vbscript|javascript|file|data):/, Os = /^data:image\/(gif|png|jpeg|webp);/;
7240
- function Ms(e) {
7269
+ }, Pl = {
7270
+ default: Fl,
7271
+ zero: Sl,
7272
+ commonmark: Tl
7273
+ }, Rl = /^(vbscript|javascript|file|data):/, Ol = /^data:image\/(gif|png|jpeg|webp);/;
7274
+ function Ml(e) {
7241
7275
  const u = e.trim().toLowerCase();
7242
- return Rs.test(u) ? Os.test(u) : !0;
7276
+ return Rl.test(u) ? Ol.test(u) : !0;
7243
7277
  }
7244
7278
  const _o = ["http:", "https:", "mailto:"];
7245
- function Ls(e) {
7279
+ function Ll(e) {
7246
7280
  const u = gn(e, !0);
7247
7281
  if (u.hostname && (!u.protocol || _o.indexOf(u.protocol) >= 0))
7248
7282
  try {
@@ -7251,7 +7285,7 @@ function Ls(e) {
7251
7285
  }
7252
7286
  return $u(mn(u));
7253
7287
  }
7254
- function Ns(e) {
7288
+ function Nl(e) {
7255
7289
  const u = gn(e, !0);
7256
7290
  if (u.hostname && (!u.protocol || _o.indexOf(u.protocol) >= 0))
7257
7291
  try {
@@ -7263,7 +7297,7 @@ function Ns(e) {
7263
7297
  function Ae(e, u) {
7264
7298
  if (!(this instanceof Ae))
7265
7299
  return new Ae(e, u);
7266
- u || kn(e) || (u = e || {}, e = "default"), this.inline = new Bu(), this.block = new yt(), this.core = new vn(), this.renderer = new bu(), this.linkify = new ye(), this.validateLink = Ms, this.normalizeLink = Ls, this.normalizeLinkText = Ns, this.utils = $c, this.helpers = _t({}, qc), this.options = {}, this.configure(e), u && this.set(u);
7300
+ u || kn(e) || (u = e || {}, e = "default"), this.inline = new Bu(), this.block = new yt(), this.core = new vn(), this.renderer = new bu(), this.linkify = new ye(), this.validateLink = Ml, this.normalizeLink = Ll, this.normalizeLinkText = Nl, this.utils = $c, this.helpers = _t({}, qc), this.options = {}, this.configure(e), u && this.set(u);
7267
7301
  }
7268
7302
  Ae.prototype.set = function(e) {
7269
7303
  return _t(this.options, e), this;
@@ -7272,7 +7306,7 @@ Ae.prototype.configure = function(e) {
7272
7306
  const u = this;
7273
7307
  if (kn(e)) {
7274
7308
  const t = e;
7275
- if (e = Ps[t], !e)
7309
+ if (e = Pl[t], !e)
7276
7310
  throw new Error('Wrong `markdown-it` preset "' + t + '", check name');
7277
7311
  }
7278
7312
  if (!e)
@@ -7325,14 +7359,14 @@ Ae.prototype.parseInline = function(e, u) {
7325
7359
  Ae.prototype.renderInline = function(e, u) {
7326
7360
  return u = u || {}, this.renderer.render(this.parseInline(e, u), this.options, u);
7327
7361
  };
7328
- function Is(e, u) {
7329
- const { manual: t = !1, domPurify: n = !0, ...r } = u ?? {}, o = G(Qt(e) ? fu(e.value) : Bo(e) ? fu(e) : e);
7362
+ function Il(e, u) {
7363
+ const { manual: t = !1, domPurify: n = !0, ...r } = u ?? {}, o = W(Qt(e) ? fu(e.value) : Bo(e) ? fu(e) : e);
7330
7364
  Qt(e) && Re(() => {
7331
7365
  o.value = fu(e.value);
7332
7366
  });
7333
- const a = G(""), i = G(), c = Ae({ ...r });
7334
- function l(s) {
7335
- const f = c.render(s);
7367
+ const a = W(""), i = W(), c = Ae({ ...r });
7368
+ function s(l) {
7369
+ const f = c.render(l);
7336
7370
  if (a.value = n ? Q0.sanitize(f) : f, i.value) i.value.innerHTML = a.value;
7337
7371
  else {
7338
7372
  const _ = Be(i, (g) => {
@@ -7341,18 +7375,18 @@ function Is(e, u) {
7341
7375
  }
7342
7376
  return a.value;
7343
7377
  }
7344
- return t || (l(o.value ?? ""), Be(o, (s) => {
7345
- l(s ?? "");
7378
+ return t || (s(o.value ?? ""), Be(o, (l) => {
7379
+ s(l ?? "");
7346
7380
  })), {
7347
7381
  value: o,
7348
7382
  html: a,
7349
7383
  domRef: i,
7350
7384
  md: c,
7351
- render: l
7385
+ render: s
7352
7386
  };
7353
7387
  }
7354
- function $s(e, u) {
7355
- const { step: t = 1, interval: n = 50, enabled: r = !0 } = u ?? {}, o = G(0), a = G(!1), i = G(!1), c = G(!1), l = pe(() => r ? e.value.slice(0, o.value) : e.value), s = pe(() => Number(Math.min(o.value / e.value.length * 100, 100).toFixed(2)));
7388
+ function $l(e, u) {
7389
+ const { step: t = 1, interval: n = 50, enabled: r = !0 } = u ?? {}, o = W(0), a = W(!1), i = W(!1), c = W(!1), s = pe(() => r ? e.value.slice(0, o.value) : e.value), l = pe(() => Number(Math.min(o.value / e.value.length * 100, 100).toFixed(2)));
7356
7390
  let f = null;
7357
7391
  const _ = rt(), g = rt(), d = rt();
7358
7392
  Be(e, (k, x) => {
@@ -7364,16 +7398,16 @@ function $s(e, u) {
7364
7398
  }, { immediate: !0 });
7365
7399
  function E() {
7366
7400
  if (f && clearTimeout(f), !r) {
7367
- o.value = e.value.length, i.value = !0, c.value = !1, a.value = !1, g.trigger(l.value);
7401
+ o.value = e.value.length, i.value = !0, c.value = !1, a.value = !1, g.trigger(s.value);
7368
7402
  return;
7369
7403
  }
7370
7404
  c.value = !0, a.value = !1, i.value = !1, _.trigger();
7371
7405
  function k() {
7372
7406
  if (o.value += t, d.trigger({
7373
7407
  index: o.value,
7374
- value: l.value
7408
+ value: s.value
7375
7409
  }), o.value >= e.value.length) {
7376
- o.value = e.value.length, i.value = !0, c.value = !1, g.trigger(l.value);
7410
+ o.value = e.value.length, i.value = !0, c.value = !1, g.trigger(s.value);
7377
7411
  return;
7378
7412
  }
7379
7413
  f = setTimeout(k, n);
@@ -7383,7 +7417,7 @@ function $s(e, u) {
7383
7417
  function A() {
7384
7418
  f && clearTimeout(f), a.value = !0, c.value = !1, i.value = !1;
7385
7419
  }
7386
- function y() {
7420
+ function v() {
7387
7421
  f && clearTimeout(f), E();
7388
7422
  }
7389
7423
  function h() {
@@ -7392,7 +7426,7 @@ function $s(e, u) {
7392
7426
  });
7393
7427
  }
7394
7428
  function p() {
7395
- f && clearTimeout(f), c.value = !1, a.value = !1, i.value = !0, o.value = e.value.length, g.trigger(l.value);
7429
+ f && clearTimeout(f), c.value = !1, a.value = !1, i.value = !0, o.value = e.value.length, g.trigger(s.value);
7396
7430
  }
7397
7431
  function m() {
7398
7432
  f && clearTimeout(f), f = null, c.value = !1, a.value = !1, i.value = !1, o.value = 0;
@@ -7402,11 +7436,11 @@ function $s(e, u) {
7402
7436
  paused: a,
7403
7437
  ended: i,
7404
7438
  isTyping: c,
7405
- typedValue: l,
7406
- progress: s,
7439
+ typedValue: s,
7440
+ progress: l,
7407
7441
  start: E,
7408
7442
  pause: A,
7409
- resume: y,
7443
+ resume: v,
7410
7444
  restart: h,
7411
7445
  stop: p,
7412
7446
  destroy: m,
@@ -7415,12 +7449,12 @@ function $s(e, u) {
7415
7449
  onUpdate: d.on
7416
7450
  };
7417
7451
  }
7418
- const zs = `
7452
+ const zl = `
7419
7453
  code[class*=language-],pre[class*=language-]{background:#282c34;color:#abb2bf;text-shadow:0 1px rgba(0,0,0,.3);font-family:"Fira Code","Fira Mono",Menlo,Consolas,"DejaVu Sans Mono",monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection,pre[class*=language-] ::-moz-selection{background:#3e4451;color:inherit;text-shadow:none}code[class*=language-]::selection,code[class*=language-] ::selection,pre[class*=language-] ::selection{background:#3e4451;color:inherit;text-shadow:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-]{padding:.2em .3em;border-radius:.3em;white-space:normal}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}.token.comment,.token.prolog,.token.cdata{color:#5c6370}.token.doctype,.token.punctuation,.token.entity{color:#abb2bf}.token.attr-name,.token.class-name,.token.boolean,.token.constant,.token.number,.token.atrule{color:#d19a66}.token.keyword{color:#c678dd}.token.property,.token.tag,.token.symbol,.token.deleted,.token.important{color:#e06c75}.token.selector,.token.string,.token.char,.token.builtin,.token.inserted,.token.regex,.token.attr-value,.token.attr-value>.token.punctuation{color:#98c379}.token.variable,.token.operator,.token.function{color:#61afef}.token.url{color:#56b6c2}.token.attr-value>.token.punctuation.attr-equals,.token.special-attr>.token.attr-value>.token.value.css{color:#abb2bf}.language-css .token.selector{color:#e06c75}.language-css .token.property{color:#abb2bf}.language-css .token.function,.language-css .token.url>.token.function{color:#56b6c2}.language-css .token.url>.token.string.url{color:#98c379}.language-css .token.important,.language-css .token.atrule .token.rule{color:#c678dd}.language-javascript .token.operator{color:#c678dd}.language-javascript .token.template-string>.token.interpolation>.token.interpolation-punctuation.punctuation{color:#be5046}.language-json .token.operator{color:#abb2bf}.language-json .token.null.keyword{color:#d19a66}.language-markdown .token.url,.language-markdown .token.url>.token.operator,.language-markdown .token.url-reference.url>.token.string{color:#abb2bf}.language-markdown .token.url>.token.content{color:#61afef}.language-markdown .token.url>.token.url,.language-markdown .token.url-reference.url{color:#56b6c2}.language-markdown .token.blockquote.punctuation,.language-markdown .token.hr.punctuation{color:#5c6370;font-style:italic}.language-markdown .token.code-snippet{color:#98c379}.language-markdown .token.bold .token.content{color:#d19a66}.language-markdown .token.italic .token.content{color:#c678dd}.language-markdown .token.strike .token.content,.language-markdown .token.strike .token.punctuation,.language-markdown .token.list.punctuation,.language-markdown .token.title.important>.token.punctuation{color:#e06c75}.token.bold{font-weight:700}.token.comment,.token.italic{font-style:italic}.token.entity{cursor:help}.token.namespace{opacity:.8}.token.token.tab:not(:empty):before,.token.token.cr:before,.token.token.lf:before,.token.token.space:before{color:rgba(171,178,191,.15);text-shadow:none}div.code-toolbar>.toolbar.toolbar>.toolbar-item{margin-right:.4em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span{background:#3a3f4b;color:#828997;padding:.1em .4em;border-radius:.3em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:focus{background:#3e4451;color:#abb2bf}.line-highlight.line-highlight{background:rgba(153,187,255,.04)}.line-highlight.line-highlight:before,.line-highlight.line-highlight[data-end]:after{background:#3a3f4b;color:#abb2bf;padding:.1em .6em;border-radius:.3em;box-shadow:0 2px 0 0 rgba(0,0,0,.2)}pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows>span:hover:before{background-color:rgba(153,187,255,.04)}.line-numbers.line-numbers .line-numbers-rows,.command-line .command-line-prompt{border-right-color:rgba(171,178,191,.15)}.line-numbers .line-numbers-rows>span:before,.command-line .command-line-prompt>span:before{color:#636d83}.rainbow-braces .token.token.punctuation.brace-level-1,.rainbow-braces .token.token.punctuation.brace-level-5,.rainbow-braces .token.token.punctuation.brace-level-9{color:#e06c75}.rainbow-braces .token.token.punctuation.brace-level-2,.rainbow-braces .token.token.punctuation.brace-level-6,.rainbow-braces .token.token.punctuation.brace-level-10{color:#98c379}.rainbow-braces .token.token.punctuation.brace-level-3,.rainbow-braces .token.token.punctuation.brace-level-7,.rainbow-braces .token.token.punctuation.brace-level-11{color:#61afef}.rainbow-braces .token.token.punctuation.brace-level-4,.rainbow-braces .token.token.punctuation.brace-level-8,.rainbow-braces .token.token.punctuation.brace-level-12{color:#c678dd}pre.diff-highlight>code .token.token.deleted:not(.prefix),pre>code.diff-highlight .token.token.deleted:not(.prefix){background-color:rgba(255,82,102,.15)}pre.diff-highlight>code .token.token.deleted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) ::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) ::-moz-selection{background-color:rgba(251,86,105,.25)}pre.diff-highlight>code .token.token.deleted:not(.prefix)::selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) ::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) ::selection{background-color:rgba(251,86,105,.25)}pre.diff-highlight>code .token.token.inserted:not(.prefix),pre>code.diff-highlight .token.token.inserted:not(.prefix){background-color:rgba(26,255,91,.15)}pre.diff-highlight>code .token.token.inserted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) ::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) ::-moz-selection{background-color:rgba(56,224,98,.25)}pre.diff-highlight>code .token.token.inserted:not(.prefix)::selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) ::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) ::selection{background-color:rgba(56,224,98,.25)}.prism-previewer.prism-previewer:before,.prism-previewer-gradient.prism-previewer-gradient div{border-color:#262931}.prism-previewer-color.prism-previewer-color:before,.prism-previewer-gradient.prism-previewer-gradient div,.prism-previewer-easing.prism-previewer-easing:before{border-radius:.3em}.prism-previewer.prism-previewer:after{border-top-color:#262931}.prism-previewer-flipped.prism-previewer-flipped.after{border-bottom-color:#262931}.prism-previewer-angle.prism-previewer-angle:before,.prism-previewer-time.prism-previewer-time:before,.prism-previewer-easing.prism-previewer-easing{background:#31363f}.prism-previewer-angle.prism-previewer-angle circle,.prism-previewer-time.prism-previewer-time circle{stroke:#abb2bf;stroke-opacity:1}.prism-previewer-easing.prism-previewer-easing circle,.prism-previewer-easing.prism-previewer-easing path,.prism-previewer-easing.prism-previewer-easing line{stroke:#abb2bf}.prism-previewer-easing.prism-previewer-easing circle{fill:transparent}
7420
- `, Bs = `
7454
+ `, Bl = `
7421
7455
  code[class*=language-],pre[class*=language-]{background:#fafafa;color:#383a42;font-family:"Fira Code","Fira Mono",Menlo,Consolas,"DejaVu Sans Mono",monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection,pre[class*=language-] ::-moz-selection{background:#e5e5e6;color:inherit}code[class*=language-]::selection,code[class*=language-] ::selection,pre[class*=language-] ::selection{background:#e5e5e6;color:inherit}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-]{padding:.2em .3em;border-radius:.3em;white-space:normal}.token.comment,.token.prolog,.token.cdata{color:#a0a1a7}.token.doctype,.token.punctuation,.token.entity{color:#383a42}.token.attr-name,.token.class-name,.token.boolean,.token.constant,.token.number,.token.atrule{color:#b76b01}.token.keyword{color:#a626a4}.token.property,.token.tag,.token.symbol,.token.deleted,.token.important{color:#e45649}.token.selector,.token.string,.token.char,.token.builtin,.token.inserted,.token.regex,.token.attr-value,.token.attr-value>.token.punctuation{color:#50a14f}.token.variable,.token.operator,.token.function{color:#4078f2}.token.url{color:#0184bc}.token.attr-value>.token.punctuation.attr-equals,.token.special-attr>.token.attr-value>.token.value.css{color:#383a42}.language-css .token.selector{color:#e45649}.language-css .token.property{color:#383a42}.language-css .token.function,.language-css .token.url>.token.function{color:#0184bc}.language-css .token.url>.token.string.url{color:#50a14f}.language-css .token.important,.language-css .token.atrule .token.rule{color:#a626a4}.language-javascript .token.operator{color:#a626a4}.language-javascript .token.template-string>.token.interpolation>.token.interpolation-punctuation.punctuation{color:#ca1243}.language-json .token.operator{color:#383a42}.language-json .token.null.keyword{color:#b76b01}.language-markdown .token.url,.language-markdown .token.url>.token.operator,.language-markdown .token.url-reference.url>.token.string{color:#383a42}.language-markdown .token.url>.token.content{color:#4078f2}.language-markdown .token.url>.token.url,.language-markdown .token.url-reference.url{color:#0184bc}.language-markdown .token.blockquote.punctuation,.language-markdown .token.hr.punctuation{color:#a0a1a7;font-style:italic}.language-markdown .token.code-snippet{color:#50a14f}.language-markdown .token.bold .token.content{color:#b76b01}.language-markdown .token.italic .token.content{color:#a626a4}.language-markdown .token.strike .token.content,.language-markdown .token.strike .token.punctuation,.language-markdown .token.list.punctuation,.language-markdown .token.title.important>.token.punctuation{color:#e45649}.token.bold{font-weight:700}.token.comment,.token.italic{font-style:italic}.token.entity{cursor:help}.token.namespace{opacity:.8}.token.token.tab:not(:empty):before,.token.token.cr:before,.token.token.lf:before,.token.token.space:before{color:rgba(56,58,66,.2)}div.code-toolbar>.toolbar.toolbar>.toolbar-item{margin-right:.4em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span{background:#e5e5e6;color:#696c77;padding:.1em .4em;border-radius:.3em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:focus{background:#c6c7c7;color:#383a42}.line-highlight.line-highlight{background:rgba(56,58,66,.05)}.line-highlight.line-highlight:before,.line-highlight.line-highlight[data-end]:after{background:#e5e5e6;color:#383a42;padding:.1em .6em;border-radius:.3em;box-shadow:0 2px 0 0 rgba(0,0,0,.2)}pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows>span:hover:before{background-color:rgba(56,58,66,.05)}.line-numbers.line-numbers .line-numbers-rows,.command-line .command-line-prompt{border-right-color:rgba(56,58,66,.2)}.line-numbers .line-numbers-rows>span:before,.command-line .command-line-prompt>span:before{color:#9d9d9f}.rainbow-braces .token.token.punctuation.brace-level-1,.rainbow-braces .token.token.punctuation.brace-level-5,.rainbow-braces .token.token.punctuation.brace-level-9{color:#e45649}.rainbow-braces .token.token.punctuation.brace-level-2,.rainbow-braces .token.token.punctuation.brace-level-6,.rainbow-braces .token.token.punctuation.brace-level-10{color:#50a14f}.rainbow-braces .token.token.punctuation.brace-level-3,.rainbow-braces .token.token.punctuation.brace-level-7,.rainbow-braces .token.token.punctuation.brace-level-11{color:#4078f2}.rainbow-braces .token.token.punctuation.brace-level-4,.rainbow-braces .token.token.punctuation.brace-level-8,.rainbow-braces .token.token.punctuation.brace-level-12{color:#a626a4}pre.diff-highlight>code .token.token.deleted:not(.prefix),pre>code.diff-highlight .token.token.deleted:not(.prefix){background-color:rgba(255,82,102,.15)}pre.diff-highlight>code .token.token.deleted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) ::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) ::-moz-selection{background-color:rgba(251,86,105,.25)}pre.diff-highlight>code .token.token.deleted:not(.prefix)::selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) ::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) ::selection{background-color:rgba(251,86,105,.25)}pre.diff-highlight>code .token.token.inserted:not(.prefix),pre>code.diff-highlight .token.token.inserted:not(.prefix){background-color:rgba(26,255,91,.15)}pre.diff-highlight>code .token.token.inserted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) ::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) ::-moz-selection{background-color:rgba(56,224,98,.25)}pre.diff-highlight>code .token.token.inserted:not(.prefix)::selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) ::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) ::selection{background-color:rgba(56,224,98,.25)}.prism-previewer.prism-previewer:before,.prism-previewer-gradient.prism-previewer-gradient div{border-color:hsl(0,0,95%)}.prism-previewer-color.prism-previewer-color:before,.prism-previewer-gradient.prism-previewer-gradient div,.prism-previewer-easing.prism-previewer-easing:before{border-radius:.3em}.prism-previewer.prism-previewer:after{border-top-color:hsl(0,0,95%)}.prism-previewer-flipped.prism-previewer-flipped.after{border-bottom-color:hsl(0,0,95%)}.prism-previewer-angle.prism-previewer-angle:before,.prism-previewer-time.prism-previewer-time:before,.prism-previewer-easing.prism-previewer-easing{background:#fff}.prism-previewer-angle.prism-previewer-angle circle,.prism-previewer-time.prism-previewer-time circle{stroke:#383a42;stroke-opacity:1}.prism-previewer-easing.prism-previewer-easing circle,.prism-previewer-easing.prism-previewer-easing path,.prism-previewer-easing.prism-previewer-easing line{stroke:#383a42}.prism-previewer-easing.prism-previewer-easing circle{fill:transparent}
7422
7456
  `, { c: Yt, cB: Fr, cE: Xt } = { ...xt, ...kt }, nt = `${Iu}-type-writer`;
7423
- function Us() {
7457
+ function Ul() {
7424
7458
  return Yt([
7425
7459
  Fr("type-writer", {
7426
7460
  overflowX: "auto"
@@ -7430,7 +7464,7 @@ function Us() {
7430
7464
  marginLeft: "2px",
7431
7465
  display: "inline-block"
7432
7466
  }),
7433
- Xt("markdown", `${Bs}`, [
7467
+ Xt("markdown", `${Bl}`, [
7434
7468
  Yt("pre", {
7435
7469
  backgroundColor: "var(--tag-color)",
7436
7470
  borderRadius: "var(--border-radius)"
@@ -7439,12 +7473,12 @@ function Us() {
7439
7473
  ]),
7440
7474
  Yt(".dark", [
7441
7475
  Fr("type-writer", [
7442
- Xt("markdown", `${zs}`)
7476
+ Xt("markdown", `${zl}`)
7443
7477
  ])
7444
7478
  ])
7445
7479
  ]);
7446
7480
  }
7447
- const qs = ["innerHTML"], js = /* @__PURE__ */ he({
7481
+ const ql = ["innerHTML"], jl = /* @__PURE__ */ he({
7448
7482
  __name: "TypeWriter",
7449
7483
  props: {
7450
7484
  value: {},
@@ -7457,54 +7491,54 @@ const qs = ["innerHTML"], js = /* @__PURE__ */ he({
7457
7491
  emits: ["start", "update", "stop"],
7458
7492
  setup(e, { emit: u }) {
7459
7493
  const t = u;
7460
- gt(nt, Us());
7461
- const { typedValue: n, isTyping: r, onStat: o, onUpdate: a, onStop: i } = $s(pe(() => e.value ?? ""), {
7494
+ gt(nt, Ul());
7495
+ const { typedValue: n, isTyping: r, onStat: o, onUpdate: a, onStop: i } = $l(pe(() => e.value ?? ""), {
7462
7496
  step: e.step,
7463
7497
  interval: e.interval,
7464
7498
  enabled: e.typing
7465
7499
  });
7466
7500
  o(() => {
7467
7501
  t("start");
7468
- }), a((s) => {
7469
- t("update", s);
7470
- }), i((s) => {
7471
- t("stop", s);
7502
+ }), a((l) => {
7503
+ t("update", l);
7504
+ }), i((l) => {
7505
+ t("stop", l);
7472
7506
  });
7473
- const { html: c } = Is(n, {
7507
+ const { html: c } = Il(n, {
7474
7508
  html: !0,
7475
7509
  linkify: !0,
7476
7510
  typographer: !0,
7477
7511
  breaks: !0,
7478
7512
  highlight: Yi
7479
- }), l = pe(() => e.markdown ? c.value : n.value);
7480
- return (s, f) => (P(), I(w(ln), {
7513
+ }), s = pe(() => e.markdown ? c.value : n.value);
7514
+ return (l, f) => (P(), I(w(sn), {
7481
7515
  tag: "div",
7482
7516
  class: Du([w(nt)])
7483
7517
  }, {
7484
7518
  default: M(() => [
7485
7519
  Ou("div", {
7486
- class: Du([w(r) && !s.markdown ? `${w(nt)}__cursor` : void 0, s.markdown ? `${w(nt)}__markdown` : void 0]),
7487
- style: on([s.markdown ? void 0 : { "--cursor-content": `'${s.suffix}'` }]),
7488
- innerHTML: l.value
7489
- }, null, 14, qs)
7520
+ class: Du([w(r) && !l.markdown ? `${w(nt)}__cursor` : void 0, l.markdown ? `${w(nt)}__markdown` : void 0]),
7521
+ style: on([l.markdown ? void 0 : { "--cursor-content": `'${l.suffix}'` }]),
7522
+ innerHTML: s.value
7523
+ }, null, 14, ql)
7490
7524
  ]),
7491
7525
  _: 1
7492
7526
  }, 8, ["class"]));
7493
7527
  }
7494
7528
  });
7495
7529
  export {
7496
- Vs as NBubble,
7497
- Zs as NConfigProviders,
7498
- Ys as NCopyButton,
7499
- Xs as NDataTablePlus,
7530
+ Vl as NBubble,
7531
+ Zl as NConfigProviders,
7532
+ Yl as NCopyButton,
7533
+ Xl as NDataTablePlus,
7500
7534
  m0 as NFullLoading,
7501
- Qs as NPresetForm,
7535
+ Ql as NPresetForm,
7502
7536
  Ve as NPresetInput,
7503
- Js as NPresetSelect,
7504
- Ks as NRemoteRequest,
7537
+ Jl as NPresetSelect,
7538
+ Kl as NRemoteRequest,
7505
7539
  w0 as NSearchInput,
7506
7540
  ef as NToggleEditor,
7507
7541
  uf as NTooltipButton,
7508
7542
  jr as NTransition,
7509
- js as NTypeWriter
7543
+ jl as NTypeWriter
7510
7544
  };