@blueking/ai-blueking 0.1.6 → 0.1.7

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.
@@ -2,7 +2,7 @@ var wr = Object.defineProperty;
2
2
  var Er = (n, t, e) => t in n ? wr(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
3
  var vt = (n, t, e) => (Er(n, typeof t != "symbol" ? t + "" : t, e), e);
4
4
  import { Popover as Cr, Input as Wn, Exception as Dr, clickoutside as Tr, bkTooltips as ln, Button as Sr, provideGlobalConfig as Lr } from "bkui-vue";
5
- import { defineComponent as Xt, computed as ue, openBlock as U, createElementBlock as X, normalizeClass as nn, unref as O, Fragment as pe, createElementVNode as I, createCommentVNode as on, toDisplayString as be, ref as Ft, watch as Bo, onMounted as qr, createBlock as fe, withCtx as he, withDirectives as yt, createVNode as Yt, renderList as Uo, normalizeStyle as de, createTextVNode as Vo, nextTick as Rr, pushScopeId as Fr, popScopeId as Mr, onBeforeMount as Ir, onBeforeUnmount as Nr, withModifiers as mt, renderSlot as Pr } from "vue";
5
+ import { defineComponent as Xt, computed as ue, openBlock as U, createElementBlock as X, normalizeClass as on, unref as O, Fragment as pe, createElementVNode as I, createCommentVNode as fe, toDisplayString as _e, ref as Ft, watch as Bo, onMounted as qr, createBlock as he, withCtx as de, withDirectives as yt, createVNode as Yt, renderList as Uo, normalizeStyle as me, createTextVNode as Vo, nextTick as Rr, pushScopeId as Fr, popScopeId as Mr, onBeforeMount as Ir, onBeforeUnmount as Nr, withModifiers as mt, renderSlot as Pr } from "vue";
6
6
  const zr = (n) => {
7
7
  const t = document.cookie.match(new RegExp(`(^| )${n}=([^;]*)(;|$)`));
8
8
  return t ? t[2] : "";
@@ -51,7 +51,7 @@ rn || (rn = function(t, e, o) {
51
51
  sn || (sn = function(t, e) {
52
52
  return new t(...e);
53
53
  });
54
- const oe = et(Array.prototype.forEach), Kn = et(Array.prototype.pop), Vt = et(Array.prototype.push), le = et(String.prototype.toLowerCase), Pe = et(String.prototype.toString), Jn = et(String.prototype.match), Ht = et(String.prototype.replace), jr = et(String.prototype.indexOf), Zr = et(String.prototype.trim), st = et(Object.prototype.hasOwnProperty), J = et(RegExp.prototype.test), Gt = Yr(TypeError);
54
+ const oe = et(Array.prototype.forEach), Kn = et(Array.prototype.pop), Vt = et(Array.prototype.push), le = et(String.prototype.toLowerCase), ze = et(String.prototype.toString), Jn = et(String.prototype.match), Ht = et(String.prototype.replace), jr = et(String.prototype.indexOf), Zr = et(String.prototype.trim), st = et(Object.prototype.hasOwnProperty), J = et(RegExp.prototype.test), Gt = Yr(TypeError);
55
55
  function et(n) {
56
56
  return function(t) {
57
57
  for (var e = arguments.length, o = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
@@ -107,7 +107,7 @@ function re(n, t) {
107
107
  }
108
108
  return e;
109
109
  }
110
- const Qn = Q(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), ze = Q(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Oe = Q(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Xr = Q(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Be = Q(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Kr = Q(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), $n = Q(["#text"]), to = Q(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Ue = Q(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), eo = Q(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), se = Q(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Jr = ot(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Qr = ot(/<%[\w\W]*|[\w\W]*%>/gm), $r = ot(/\${[\w\W]*}/gm), ts = ot(/^data-[\-\w.\u00B7-\uFFFF]/), es = ot(/^aria-[\-\w]+$/), jo = ot(
110
+ const Qn = Q(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Oe = Q(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Be = Q(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Xr = Q(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Ue = Q(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Kr = Q(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), $n = Q(["#text"]), to = Q(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Ve = Q(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), eo = Q(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), se = Q(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Jr = ot(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Qr = ot(/<%[\w\W]*|[\w\W]*%>/gm), $r = ot(/\${[\w\W]*}/gm), ts = ot(/^data-[\-\w.\u00B7-\uFFFF]/), es = ot(/^aria-[\-\w]+$/), jo = ot(
111
111
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
112
112
  // eslint-disable-line no-useless-escape
113
113
  ), ns = ot(/^(?:\w+script|data):/i), os = ot(
@@ -212,9 +212,9 @@ function Yo() {
212
212
  let {
213
213
  IS_ALLOWED_URI: xn
214
214
  } = no, V = null;
215
- const yn = R({}, [...Qn, ...ze, ...Oe, ...Be, ...$n]);
215
+ const yn = R({}, [...Qn, ...Oe, ...Be, ...Ue, ...$n]);
216
216
  let H = null;
217
- const An = R({}, [...to, ...Ue, ...eo, ...se]);
217
+ const An = R({}, [...to, ...Ve, ...eo, ...se]);
218
218
  let B = Object.seal(Go(null, {
219
219
  tagNameCheck: {
220
220
  writable: !0,
@@ -234,26 +234,26 @@ function Yo() {
234
234
  enumerable: !0,
235
235
  value: !1
236
236
  }
237
- })), zt = null, De = null, wn = !0, Te = !0, En = !1, Cn = !0, Ct = !1, Se = !0, _t = !1, Le = !1, qe = !1, Dt = !1, Qt = !1, $t = !1, Dn = !0, Tn = !1;
237
+ })), zt = null, Te = null, wn = !0, Se = !0, En = !1, Cn = !0, Ct = !1, Le = !0, _t = !1, qe = !1, Re = !1, Dt = !1, Qt = !1, $t = !1, Dn = !0, Tn = !1;
238
238
  const gr = "user-content-";
239
- let Re = !0, Ot = !1, Tt = {}, St = null;
239
+ let Fe = !0, Ot = !1, Tt = {}, St = null;
240
240
  const Sn = R({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
241
241
  let Ln = null;
242
242
  const qn = R({}, ["audio", "video", "img", "source", "image", "track"]);
243
- let Fe = null;
243
+ let Me = null;
244
244
  const Rn = R({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), te = "http://www.w3.org/1998/Math/MathML", ee = "http://www.w3.org/2000/svg", ht = "http://www.w3.org/1999/xhtml";
245
- let Lt = ht, Me = !1, Ie = null;
246
- const br = R({}, [te, ee, ht], Pe);
245
+ let Lt = ht, Ie = !1, Ne = null;
246
+ const br = R({}, [te, ee, ht], ze);
247
247
  let Bt = null;
248
248
  const _r = ["application/xhtml+xml", "text/html"], vr = "text/html";
249
249
  let G = null, qt = null;
250
250
  const kr = e.createElement("form"), Fn = function(p) {
251
251
  return p instanceof RegExp || p instanceof Function;
252
- }, Ne = function() {
252
+ }, Pe = function() {
253
253
  let p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
254
254
  if (!(qt && qt === p)) {
255
255
  if ((!p || typeof p != "object") && (p = {}), p = xt(p), Bt = // eslint-disable-next-line unicorn/prefer-includes
256
- _r.indexOf(p.PARSER_MEDIA_TYPE) === -1 ? vr : p.PARSER_MEDIA_TYPE, G = Bt === "application/xhtml+xml" ? Pe : le, V = st(p, "ALLOWED_TAGS") ? R({}, p.ALLOWED_TAGS, G) : yn, H = st(p, "ALLOWED_ATTR") ? R({}, p.ALLOWED_ATTR, G) : An, Ie = st(p, "ALLOWED_NAMESPACES") ? R({}, p.ALLOWED_NAMESPACES, Pe) : br, Fe = st(p, "ADD_URI_SAFE_ATTR") ? R(
256
+ _r.indexOf(p.PARSER_MEDIA_TYPE) === -1 ? vr : p.PARSER_MEDIA_TYPE, G = Bt === "application/xhtml+xml" ? ze : le, V = st(p, "ALLOWED_TAGS") ? R({}, p.ALLOWED_TAGS, G) : yn, H = st(p, "ALLOWED_ATTR") ? R({}, p.ALLOWED_ATTR, G) : An, Ne = st(p, "ALLOWED_NAMESPACES") ? R({}, p.ALLOWED_NAMESPACES, ze) : br, Me = st(p, "ADD_URI_SAFE_ATTR") ? R(
257
257
  xt(Rn),
258
258
  // eslint-disable-line indent
259
259
  p.ADD_URI_SAFE_ATTR,
@@ -267,7 +267,7 @@ function Yo() {
267
267
  // eslint-disable-line indent
268
268
  G
269
269
  // eslint-disable-line indent
270
- ) : qn, St = st(p, "FORBID_CONTENTS") ? R({}, p.FORBID_CONTENTS, G) : Sn, zt = st(p, "FORBID_TAGS") ? R({}, p.FORBID_TAGS, G) : {}, De = st(p, "FORBID_ATTR") ? R({}, p.FORBID_ATTR, G) : {}, Tt = st(p, "USE_PROFILES") ? p.USE_PROFILES : !1, wn = p.ALLOW_ARIA_ATTR !== !1, Te = p.ALLOW_DATA_ATTR !== !1, En = p.ALLOW_UNKNOWN_PROTOCOLS || !1, Cn = p.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ct = p.SAFE_FOR_TEMPLATES || !1, Se = p.SAFE_FOR_XML !== !1, _t = p.WHOLE_DOCUMENT || !1, Dt = p.RETURN_DOM || !1, Qt = p.RETURN_DOM_FRAGMENT || !1, $t = p.RETURN_TRUSTED_TYPE || !1, qe = p.FORCE_BODY || !1, Dn = p.SANITIZE_DOM !== !1, Tn = p.SANITIZE_NAMED_PROPS || !1, Re = p.KEEP_CONTENT !== !1, Ot = p.IN_PLACE || !1, xn = p.ALLOWED_URI_REGEXP || jo, Lt = p.NAMESPACE || ht, B = p.CUSTOM_ELEMENT_HANDLING || {}, p.CUSTOM_ELEMENT_HANDLING && Fn(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (B.tagNameCheck = p.CUSTOM_ELEMENT_HANDLING.tagNameCheck), p.CUSTOM_ELEMENT_HANDLING && Fn(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (B.attributeNameCheck = p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), p.CUSTOM_ELEMENT_HANDLING && typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (B.allowCustomizedBuiltInElements = p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ct && (Te = !1), Qt && (Dt = !0), Tt && (V = R({}, $n), H = [], Tt.html === !0 && (R(V, Qn), R(H, to)), Tt.svg === !0 && (R(V, ze), R(H, Ue), R(H, se)), Tt.svgFilters === !0 && (R(V, Oe), R(H, Ue), R(H, se)), Tt.mathMl === !0 && (R(V, Be), R(H, eo), R(H, se))), p.ADD_TAGS && (V === yn && (V = xt(V)), R(V, p.ADD_TAGS, G)), p.ADD_ATTR && (H === An && (H = xt(H)), R(H, p.ADD_ATTR, G)), p.ADD_URI_SAFE_ATTR && R(Fe, p.ADD_URI_SAFE_ATTR, G), p.FORBID_CONTENTS && (St === Sn && (St = xt(St)), R(St, p.FORBID_CONTENTS, G)), Re && (V["#text"] = !0), _t && R(V, ["html", "head", "body"]), V.table && (R(V, ["tbody"]), delete zt.tbody), p.TRUSTED_TYPES_POLICY) {
270
+ ) : qn, St = st(p, "FORBID_CONTENTS") ? R({}, p.FORBID_CONTENTS, G) : Sn, zt = st(p, "FORBID_TAGS") ? R({}, p.FORBID_TAGS, G) : {}, Te = st(p, "FORBID_ATTR") ? R({}, p.FORBID_ATTR, G) : {}, Tt = st(p, "USE_PROFILES") ? p.USE_PROFILES : !1, wn = p.ALLOW_ARIA_ATTR !== !1, Se = p.ALLOW_DATA_ATTR !== !1, En = p.ALLOW_UNKNOWN_PROTOCOLS || !1, Cn = p.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ct = p.SAFE_FOR_TEMPLATES || !1, Le = p.SAFE_FOR_XML !== !1, _t = p.WHOLE_DOCUMENT || !1, Dt = p.RETURN_DOM || !1, Qt = p.RETURN_DOM_FRAGMENT || !1, $t = p.RETURN_TRUSTED_TYPE || !1, Re = p.FORCE_BODY || !1, Dn = p.SANITIZE_DOM !== !1, Tn = p.SANITIZE_NAMED_PROPS || !1, Fe = p.KEEP_CONTENT !== !1, Ot = p.IN_PLACE || !1, xn = p.ALLOWED_URI_REGEXP || jo, Lt = p.NAMESPACE || ht, B = p.CUSTOM_ELEMENT_HANDLING || {}, p.CUSTOM_ELEMENT_HANDLING && Fn(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (B.tagNameCheck = p.CUSTOM_ELEMENT_HANDLING.tagNameCheck), p.CUSTOM_ELEMENT_HANDLING && Fn(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (B.attributeNameCheck = p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), p.CUSTOM_ELEMENT_HANDLING && typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (B.allowCustomizedBuiltInElements = p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ct && (Se = !1), Qt && (Dt = !0), Tt && (V = R({}, $n), H = [], Tt.html === !0 && (R(V, Qn), R(H, to)), Tt.svg === !0 && (R(V, Oe), R(H, Ve), R(H, se)), Tt.svgFilters === !0 && (R(V, Be), R(H, Ve), R(H, se)), Tt.mathMl === !0 && (R(V, Ue), R(H, eo), R(H, se))), p.ADD_TAGS && (V === yn && (V = xt(V)), R(V, p.ADD_TAGS, G)), p.ADD_ATTR && (H === An && (H = xt(H)), R(H, p.ADD_ATTR, G)), p.ADD_URI_SAFE_ATTR && R(Me, p.ADD_URI_SAFE_ATTR, G), p.FORBID_CONTENTS && (St === Sn && (St = xt(St)), R(St, p.FORBID_CONTENTS, G)), Fe && (V["#text"] = !0), _t && R(V, ["html", "head", "body"]), V.table && (R(V, ["tbody"]), delete zt.tbody), p.TRUSTED_TYPES_POLICY) {
271
271
  if (typeof p.TRUSTED_TYPES_POLICY.createHTML != "function")
272
272
  throw Gt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
273
273
  if (typeof p.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -277,14 +277,14 @@ function Yo() {
277
277
  g === void 0 && (g = cs(d, r)), g !== null && typeof C == "string" && (C = g.createHTML(""));
278
278
  Q && Q(p), qt = p;
279
279
  }
280
- }, Mn = R({}, ["mi", "mo", "mn", "ms", "mtext"]), In = R({}, ["foreignobject", "annotation-xml"]), xr = R({}, ["title", "style", "font", "a", "script"]), Nn = R({}, [...ze, ...Oe, ...Xr]), Pn = R({}, [...Be, ...Kr]), yr = function(p) {
280
+ }, Mn = R({}, ["mi", "mo", "mn", "ms", "mtext"]), In = R({}, ["foreignobject", "annotation-xml"]), xr = R({}, ["title", "style", "font", "a", "script"]), Nn = R({}, [...Oe, ...Be, ...Xr]), Pn = R({}, [...Ue, ...Kr]), yr = function(p) {
281
281
  let m = _(p);
282
282
  (!m || !m.tagName) && (m = {
283
283
  namespaceURI: Lt,
284
284
  tagName: "template"
285
285
  });
286
286
  const w = le(p.tagName), P = le(m.tagName);
287
- return Ie[p.namespaceURI] ? p.namespaceURI === ee ? m.namespaceURI === ht ? w === "svg" : m.namespaceURI === te ? w === "svg" && (P === "annotation-xml" || Mn[P]) : !!Nn[w] : p.namespaceURI === te ? m.namespaceURI === ht ? w === "math" : m.namespaceURI === ee ? w === "math" && In[P] : !!Pn[w] : p.namespaceURI === ht ? m.namespaceURI === ee && !In[P] || m.namespaceURI === te && !Mn[P] ? !1 : !Pn[w] && (xr[w] || !Nn[w]) : !!(Bt === "application/xhtml+xml" && Ie[p.namespaceURI]) : !1;
287
+ return Ne[p.namespaceURI] ? p.namespaceURI === ee ? m.namespaceURI === ht ? w === "svg" : m.namespaceURI === te ? w === "svg" && (P === "annotation-xml" || Mn[P]) : !!Nn[w] : p.namespaceURI === te ? m.namespaceURI === ht ? w === "math" : m.namespaceURI === ee ? w === "math" && In[P] : !!Pn[w] : p.namespaceURI === ht ? m.namespaceURI === ee && !In[P] || m.namespaceURI === te && !Mn[P] ? !1 : !Pn[w] && (xr[w] || !Nn[w]) : !!(Bt === "application/xhtml+xml" && Ne[p.namespaceURI]) : !1;
288
288
  }, it = function(p) {
289
289
  Vt(t.removed, {
290
290
  element: p
@@ -319,7 +319,7 @@ function Yo() {
319
319
  }
320
320
  }, zn = function(p) {
321
321
  let m = null, w = null;
322
- if (qe)
322
+ if (Re)
323
323
  p = "<remove></remove>" + p;
324
324
  else {
325
325
  const Z = Jn(p, /^[\r\n\t ]+/);
@@ -335,7 +335,7 @@ function Yo() {
335
335
  if (!m || !m.documentElement) {
336
336
  m = S.createDocument(Lt, "template", null);
337
337
  try {
338
- m.documentElement.innerHTML = Me ? C : P;
338
+ m.documentElement.innerHTML = Ie ? C : P;
339
339
  } catch {
340
340
  }
341
341
  }
@@ -365,12 +365,12 @@ function Yo() {
365
365
  if (dt("uponSanitizeElement", p, {
366
366
  tagName: w,
367
367
  allowedTags: V
368
- }), p.hasChildNodes() && !Un(p.firstElementChild) && J(/<[/\w]/g, p.innerHTML) && J(/<[/\w]/g, p.textContent) || p.nodeType === jt.progressingInstruction || Se && p.nodeType === jt.comment && J(/<[/\w]/g, p.data))
368
+ }), p.hasChildNodes() && !Un(p.firstElementChild) && J(/<[/\w]/g, p.innerHTML) && J(/<[/\w]/g, p.textContent) || p.nodeType === jt.progressingInstruction || Le && p.nodeType === jt.comment && J(/<[/\w]/g, p.data))
369
369
  return it(p), !0;
370
370
  if (!V[w] || zt[w]) {
371
371
  if (!zt[w] && Gn(w) && (B.tagNameCheck instanceof RegExp && J(B.tagNameCheck, w) || B.tagNameCheck instanceof Function && B.tagNameCheck(w)))
372
372
  return !1;
373
- if (Re && !St[w]) {
373
+ if (Fe && !St[w]) {
374
374
  const P = _(p) || p.parentNode, W = y(p) || p.childNodes;
375
375
  if (W && P) {
376
376
  const Z = W.length;
@@ -390,9 +390,9 @@ function Yo() {
390
390
  }, Hn = function(p, m, w) {
391
391
  if (Dn && (m === "id" || m === "name") && (w in e || w in kr))
392
392
  return !1;
393
- if (!(Te && !De[m] && J(b, m))) {
393
+ if (!(Se && !Te[m] && J(b, m))) {
394
394
  if (!(wn && J(q, m))) {
395
- if (!H[m] || De[m]) {
395
+ if (!H[m] || Te[m]) {
396
396
  if (
397
397
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
398
398
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
@@ -402,7 +402,7 @@ function Yo() {
402
402
  m === "is" && B.allowCustomizedBuiltInElements && (B.tagNameCheck instanceof RegExp && J(B.tagNameCheck, w) || B.tagNameCheck instanceof Function && B.tagNameCheck(w)))
403
403
  )
404
404
  return !1;
405
- } else if (!Fe[m]) {
405
+ } else if (!Me[m]) {
406
406
  if (!J(xn, Ht(w, j, ""))) {
407
407
  if (!((m === "src" || m === "xlink:href" || m === "href") && p !== "script" && jr(w, "data:") === 0 && Ln[p])) {
408
408
  if (!(En && !J(A, Ht(w, j, "")))) {
@@ -444,7 +444,7 @@ function Yo() {
444
444
  ne(Z, p);
445
445
  continue;
446
446
  }
447
- if (Se && J(/((--!?|])>)|<\/(style|title)/i, K)) {
447
+ if (Le && J(/((--!?|])>)|<\/(style|title)/i, K)) {
448
448
  ne(Z, p);
449
449
  continue;
450
450
  }
@@ -480,7 +480,7 @@ function Yo() {
480
480
  };
481
481
  return t.sanitize = function(T) {
482
482
  let p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = null, w = null, P = null, W = null;
483
- if (Me = !T, Me && (T = "<!-->"), typeof T != "string" && !Un(T))
483
+ if (Ie = !T, Ie && (T = "<!-->"), typeof T != "string" && !Un(T))
484
484
  if (typeof T.toString == "function") {
485
485
  if (T = T.toString(), typeof T != "string")
486
486
  throw Gt("dirty is not a string, aborting");
@@ -488,7 +488,7 @@ function Yo() {
488
488
  throw Gt("toString is not a function");
489
489
  if (!t.isSupported)
490
490
  return T;
491
- if (Le || Ne(p), t.removed = [], typeof T == "string" && (Ot = !1), Ot) {
491
+ if (qe || Pe(p), t.removed = [], typeof T == "string" && (Ot = !1), Ot) {
492
492
  if (T.nodeName) {
493
493
  const at = G(T.nodeName);
494
494
  if (!V[at] || zt[at])
@@ -503,7 +503,7 @@ function Yo() {
503
503
  if (m = zn(T), !m)
504
504
  return Dt ? null : $t ? C : "";
505
505
  }
506
- m && qe && it(m.firstChild);
506
+ m && Re && it(m.firstChild);
507
507
  const Z = On(Ot ? T : m);
508
508
  for (; P = Z.nextNode(); )
509
509
  Vn(P) || (P.content instanceof s && Ar(P.content), jn(P));
@@ -524,11 +524,11 @@ function Yo() {
524
524
  }), g && $t ? g.createHTML($) : $;
525
525
  }, t.setConfig = function() {
526
526
  let T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
527
- Ne(T), Le = !0;
527
+ Pe(T), qe = !0;
528
528
  }, t.clearConfig = function() {
529
- qt = null, Le = !1;
529
+ qt = null, qe = !1;
530
530
  }, t.isValidAttribute = function(T, p, m) {
531
- qt || Ne({});
531
+ qt || Pe({});
532
532
  const w = G(T), P = G(p);
533
533
  return Hn(w, P, m);
534
534
  }, t.addHook = function(T, p) {
@@ -2707,9 +2707,9 @@ function SN(n) {
2707
2707
  o[n.charCodeAt(t)] = n[t];
2708
2708
  return o;
2709
2709
  }
2710
- function _e(n, t, e) {
2710
+ function ve(n, t, e) {
2711
2711
  var o, r, s, c, a, i = "";
2712
- for (typeof t != "string" && (e = t, t = _e.defaultChars), typeof e > "u" && (e = !0), a = SN(t), o = 0, r = n.length; o < r; o++) {
2712
+ for (typeof t != "string" && (e = t, t = ve.defaultChars), typeof e > "u" && (e = !0), a = SN(t), o = 0, r = n.length; o < r; o++) {
2713
2713
  if (s = n.charCodeAt(o), e && s === 37 && o + 2 < r && /^[0-9a-f]{2}$/i.test(n.slice(o + 1, o + 3))) {
2714
2714
  i += n.slice(o, o + 3), o += 2;
2715
2715
  continue;
@@ -2730,9 +2730,9 @@ function _e(n, t, e) {
2730
2730
  }
2731
2731
  return i;
2732
2732
  }
2733
- _e.defaultChars = ";/?:@&=+$,-_.!~*'()#";
2734
- _e.componentChars = "-_.!~*'()";
2735
- var LN = _e, ro = {};
2733
+ ve.defaultChars = ";/?:@&=+$,-_.!~*'()#";
2734
+ ve.componentChars = "-_.!~*'()";
2735
+ var LN = ve, ro = {};
2736
2736
  function qN(n) {
2737
2737
  var t, e, o = ro[n];
2738
2738
  if (o)
@@ -2743,9 +2743,9 @@ function qN(n) {
2743
2743
  e = n.charCodeAt(t), o[e] = "%" + ("0" + e.toString(16).toUpperCase()).slice(-2);
2744
2744
  return o;
2745
2745
  }
2746
- function ve(n, t) {
2746
+ function ke(n, t) {
2747
2747
  var e;
2748
- return typeof t != "string" && (t = ve.defaultChars), e = qN(t), n.replace(/(%[a-f0-9]{2})+/gi, function(o) {
2748
+ return typeof t != "string" && (t = ke.defaultChars), e = qN(t), n.replace(/(%[a-f0-9]{2})+/gi, function(o) {
2749
2749
  var r, s, c, a, i, l, u, f = "";
2750
2750
  for (r = 0, s = o.length; r < s; r += 3) {
2751
2751
  if (c = parseInt(o.slice(r + 1, r + 3), 16), c < 128) {
@@ -2769,13 +2769,13 @@ function ve(n, t) {
2769
2769
  return f;
2770
2770
  });
2771
2771
  }
2772
- ve.defaultChars = ";/?:@&=+$,#";
2773
- ve.componentChars = "";
2774
- var RN = ve, FN = function(t) {
2772
+ ke.defaultChars = ";/?:@&=+$,#";
2773
+ ke.componentChars = "";
2774
+ var RN = ke, FN = function(t) {
2775
2775
  var e = "";
2776
2776
  return e += t.protocol || "", e += t.slashes ? "//" : "", e += t.auth ? t.auth + "@" : "", t.hostname && t.hostname.indexOf(":") !== -1 ? e += "[" + t.hostname + "]" : e += t.hostname || "", e += t.port ? ":" + t.port : "", e += t.pathname || "", e += t.search || "", e += t.hash || "", e;
2777
2777
  };
2778
- function me() {
2778
+ function ge() {
2779
2779
  this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null;
2780
2780
  }
2781
2781
  var MN = /^([a-z0-9.+-]+:)/i, IN = /:[0-9]*$/, NN = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, PN = ["<", ">", '"', "`", " ", "\r", `
@@ -2795,12 +2795,12 @@ var MN = /^([a-z0-9.+-]+:)/i, IN = /:[0-9]*$/, NN = /^(\/\/?(?!\/)[^\?\s]*)(\?[^
2795
2795
  "file:": !0
2796
2796
  };
2797
2797
  function VN(n, t) {
2798
- if (n && n instanceof me)
2798
+ if (n && n instanceof ge)
2799
2799
  return n;
2800
- var e = new me();
2800
+ var e = new ge();
2801
2801
  return e.parse(n, t), e;
2802
2802
  }
2803
- me.prototype.parse = function(n, t) {
2803
+ ge.prototype.parse = function(n, t) {
2804
2804
  var e, o, r, s, c, a = n;
2805
2805
  if (a = a.trim(), !t && n.split("#").length === 1) {
2806
2806
  var i = NN.exec(a);
@@ -2841,7 +2841,7 @@ me.prototype.parse = function(n, t) {
2841
2841
  var z = a.indexOf("?");
2842
2842
  return z !== -1 && (this.search = a.substr(z), a = a.slice(0, z)), a && (this.pathname = a), lo[r] && this.hostname && !this.pathname && (this.pathname = ""), this;
2843
2843
  };
2844
- me.prototype.parseHost = function(n) {
2844
+ ge.prototype.parseHost = function(n) {
2845
2845
  var t = IN.exec(n);
2846
2846
  t && (t = t[0], t !== ":" && (this.port = t.substr(1)), n = n.substr(0, n.length - t.length)), n && (this.hostname = n);
2847
2847
  };
@@ -2850,21 +2850,21 @@ It.encode = LN;
2850
2850
  It.decode = RN;
2851
2851
  It.format = FN;
2852
2852
  It.parse = HN;
2853
- var kt = {}, Ve, uo;
2853
+ var kt = {}, He, uo;
2854
2854
  function Xo() {
2855
- return uo || (uo = 1, Ve = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/), Ve;
2855
+ return uo || (uo = 1, He = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/), He;
2856
2856
  }
2857
- var He, po;
2857
+ var Ge, po;
2858
2858
  function Ko() {
2859
- return po || (po = 1, He = /[\0-\x1F\x7F-\x9F]/), He;
2859
+ return po || (po = 1, Ge = /[\0-\x1F\x7F-\x9F]/), Ge;
2860
2860
  }
2861
- var Ge, fo;
2861
+ var je, fo;
2862
2862
  function GN() {
2863
- return fo || (fo = 1, Ge = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/), Ge;
2863
+ return fo || (fo = 1, je = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/), je;
2864
2864
  }
2865
- var je, ho;
2865
+ var Ze, ho;
2866
2866
  function Jo() {
2867
- return ho || (ho = 1, je = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/), je;
2867
+ return ho || (ho = 1, Ze = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/), Ze;
2868
2868
  }
2869
2869
  var mo;
2870
2870
  function jN() {
@@ -3011,7 +3011,7 @@ function jN() {
3011
3011
  }
3012
3012
  n.lib = {}, n.lib.mdurl = It, n.lib.ucmicro = jN(), n.assign = s, n.isString = e, n.has = r, n.unescapeMd = k, n.unescapeAll = E, n.isValidEntityCode = a, n.fromCodePoint = i, n.escapeHtml = S, n.arrayReplaceAt = c, n.isSpace = z, n.isWhiteSpace = tt, n.isMdAsciiPunct = D, n.isPunctChar = Y, n.escapeRE = F, n.normalizeReference = N;
3013
3013
  })(M);
3014
- var ke = {}, ZN = function(t, e, o) {
3014
+ var xe = {}, ZN = function(t, e, o) {
3015
3015
  var r, s, c, a, i = -1, l = t.posMax, u = t.pos;
3016
3016
  for (t.pos = e + 1, r = 1; t.pos < l; ) {
3017
3017
  if (c = t.src.charCodeAt(t.pos), c === 93 && (r--, r === 0)) {
@@ -3082,9 +3082,9 @@ var ke = {}, ZN = function(t, e, o) {
3082
3082
  }
3083
3083
  return i;
3084
3084
  };
3085
- ke.parseLinkLabel = ZN;
3086
- ke.parseLinkDestination = YN;
3087
- ke.parseLinkTitle = XN;
3085
+ xe.parseLinkLabel = ZN;
3086
+ xe.parseLinkDestination = YN;
3087
+ xe.parseLinkTitle = XN;
3088
3088
  var KN = M.assign, JN = M.unescapeAll, wt = M.escapeHtml, pt = {};
3089
3089
  pt.code_inline = function(n, t, e, o, r) {
3090
3090
  var s = n[t];
@@ -3416,7 +3416,7 @@ function $o(n, t, e) {
3416
3416
  this.src = n, this.env = e, this.tokens = [], this.inlineMode = !1, this.md = t;
3417
3417
  }
3418
3418
  $o.prototype.Token = vP;
3419
- var kP = $o, xP = pn, Ze = [
3419
+ var kP = $o, xP = pn, Ye = [
3420
3420
  ["normalize", eP],
3421
3421
  ["block", nP],
3422
3422
  ["inline", oP],
@@ -3429,8 +3429,8 @@ var kP = $o, xP = pn, Ze = [
3429
3429
  ];
3430
3430
  function hn() {
3431
3431
  this.ruler = new xP();
3432
- for (var n = 0; n < Ze.length; n++)
3433
- this.ruler.push(Ze[n][0], Ze[n][1]);
3432
+ for (var n = 0; n < Ye.length; n++)
3433
+ this.ruler.push(Ye[n][0], Ye[n][1]);
3434
3434
  }
3435
3435
  hn.prototype.process = function(n) {
3436
3436
  var t, e, o;
@@ -3438,8 +3438,8 @@ hn.prototype.process = function(n) {
3438
3438
  o[t](n);
3439
3439
  };
3440
3440
  hn.prototype.State = kP;
3441
- var yP = hn, Ye = M.isSpace;
3442
- function We(n, t) {
3441
+ var yP = hn, We = M.isSpace;
3442
+ function Xe(n, t) {
3443
3443
  var e = n.bMarks[t] + n.tShift[t], o = n.eMarks[t];
3444
3444
  return n.src.slice(e, o);
3445
3445
  }
@@ -3451,14 +3451,14 @@ function yo(n) {
3451
3451
  }
3452
3452
  var AP = function(t, e, o, r) {
3453
3453
  var s, c, a, i, l, u, f, h, d, x, k, E, y, _, g, C, S, v;
3454
- if (e + 2 > o || (u = e + 1, t.sCount[u] < t.blkIndent) || t.sCount[u] - t.blkIndent >= 4 || (a = t.bMarks[u] + t.tShift[u], a >= t.eMarks[u]) || (S = t.src.charCodeAt(a++), S !== 124 && S !== 45 && S !== 58) || a >= t.eMarks[u] || (v = t.src.charCodeAt(a++), v !== 124 && v !== 45 && v !== 58 && !Ye(v)) || S === 45 && Ye(v))
3454
+ if (e + 2 > o || (u = e + 1, t.sCount[u] < t.blkIndent) || t.sCount[u] - t.blkIndent >= 4 || (a = t.bMarks[u] + t.tShift[u], a >= t.eMarks[u]) || (S = t.src.charCodeAt(a++), S !== 124 && S !== 45 && S !== 58) || a >= t.eMarks[u] || (v = t.src.charCodeAt(a++), v !== 124 && v !== 45 && v !== 58 && !We(v)) || S === 45 && We(v))
3455
3455
  return !1;
3456
3456
  for (; a < t.eMarks[u]; ) {
3457
- if (s = t.src.charCodeAt(a), s !== 124 && s !== 45 && s !== 58 && !Ye(s))
3457
+ if (s = t.src.charCodeAt(a), s !== 124 && s !== 45 && s !== 58 && !We(s))
3458
3458
  return !1;
3459
3459
  a++;
3460
3460
  }
3461
- for (c = We(t, e + 1), f = c.split("|"), x = [], i = 0; i < f.length; i++) {
3461
+ for (c = Xe(t, e + 1), f = c.split("|"), x = [], i = 0; i < f.length; i++) {
3462
3462
  if (k = f[i].trim(), !k) {
3463
3463
  if (i === 0 || i === f.length - 1)
3464
3464
  continue;
@@ -3468,7 +3468,7 @@ var AP = function(t, e, o, r) {
3468
3468
  return !1;
3469
3469
  k.charCodeAt(k.length - 1) === 58 ? x.push(k.charCodeAt(0) === 58 ? "center" : "right") : k.charCodeAt(0) === 58 ? x.push("left") : x.push("");
3470
3470
  }
3471
- if (c = We(t, e).trim(), c.indexOf("|") === -1 || t.sCount[e] - t.blkIndent >= 4 || (f = yo(c), f.length && f[0] === "" && f.shift(), f.length && f[f.length - 1] === "" && f.pop(), h = f.length, h === 0 || h !== x.length))
3471
+ if (c = Xe(t, e).trim(), c.indexOf("|") === -1 || t.sCount[e] - t.blkIndent >= 4 || (f = yo(c), f.length && f[0] === "" && f.shift(), f.length && f[f.length - 1] === "" && f.pop(), h = f.length, h === 0 || h !== x.length))
3472
3472
  return !1;
3473
3473
  if (r)
3474
3474
  return !0;
@@ -3480,7 +3480,7 @@ var AP = function(t, e, o, r) {
3480
3480
  g = !0;
3481
3481
  break;
3482
3482
  }
3483
- if (g || (c = We(t, u).trim(), !c) || t.sCount[u] - t.blkIndent >= 4)
3483
+ if (g || (c = Xe(t, u).trim(), !c) || t.sCount[u] - t.blkIndent >= 4)
3484
3484
  break;
3485
3485
  for (f = yo(c), f.length && f[0] === "" && f.shift(), f.length && f[f.length - 1] === "" && f.pop(), u === e + 2 && (d = t.push("tbody_open", "tbody", 1), d.map = y = [e + 2, 0]), d = t.push("tr_open", "tr", 1), d.map = [u, u + 1], i = 0; i < h; i++)
3486
3486
  d = t.push("td_open", "td", 1), x[i] && (d.attrs = [["style", "text-align:" + x[i]]]), d = t.push("inline", "", 0), d.content = f[i] ? f[i].trim() : "", d.children = [], d = t.push("td_close", "td", -1);
@@ -3741,10 +3741,10 @@ var qP = function(t, e, o, r) {
3741
3741
  "tr",
3742
3742
  "track",
3743
3743
  "ul"
3744
- ], xe = {}, IP = "[a-zA-Z_:][a-zA-Z0-9:._-]*", NP = "[^\"'=<>`\\x00-\\x20]+", PP = "'[^']*'", zP = '"[^"]*"', OP = "(?:" + NP + "|" + PP + "|" + zP + ")", BP = "(?:\\s+" + IP + "(?:\\s*=\\s*" + OP + ")?)", er = "<[A-Za-z][A-Za-z0-9\\-]*" + BP + "*\\s*\\/?>", nr = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", UP = "<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->", VP = "<[?][\\s\\S]*?[?]>", HP = "<![A-Z]+\\s+[^>]*>", GP = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", jP = new RegExp("^(?:" + er + "|" + nr + "|" + UP + "|" + VP + "|" + HP + "|" + GP + ")"), ZP = new RegExp("^(?:" + er + "|" + nr + ")");
3745
- xe.HTML_TAG_RE = jP;
3746
- xe.HTML_OPEN_CLOSE_TAG_RE = ZP;
3747
- var YP = MP, WP = xe.HTML_OPEN_CLOSE_TAG_RE, Rt = [
3744
+ ], ye = {}, IP = "[a-zA-Z_:][a-zA-Z0-9:._-]*", NP = "[^\"'=<>`\\x00-\\x20]+", PP = "'[^']*'", zP = '"[^"]*"', OP = "(?:" + NP + "|" + PP + "|" + zP + ")", BP = "(?:\\s+" + IP + "(?:\\s*=\\s*" + OP + ")?)", er = "<[A-Za-z][A-Za-z0-9\\-]*" + BP + "*\\s*\\/?>", nr = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", UP = "<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->", VP = "<[?][\\s\\S]*?[?]>", HP = "<![A-Z]+\\s+[^>]*>", GP = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", jP = new RegExp("^(?:" + er + "|" + nr + "|" + UP + "|" + VP + "|" + HP + "|" + GP + ")"), ZP = new RegExp("^(?:" + er + "|" + nr + ")");
3745
+ ye.HTML_TAG_RE = jP;
3746
+ ye.HTML_OPEN_CLOSE_TAG_RE = ZP;
3747
+ var YP = MP, WP = ye.HTML_OPEN_CLOSE_TAG_RE, Rt = [
3748
3748
  [/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
3749
3749
  [/^<!--/, /-->/, !0],
3750
3750
  [/^<\?/, /\?>/, !0],
@@ -3811,12 +3811,12 @@ var YP = MP, WP = xe.HTML_OPEN_CLOSE_TAG_RE, Rt = [
3811
3811
  break;
3812
3812
  }
3813
3813
  return r = t.getLines(e, u, t.blkIndent, !1).trim(), t.line = u, i = t.push("paragraph_open", "p", 1), i.map = [e, t.line], i = t.push("inline", "", 0), i.content = r, i.map = [e, t.line], i.children = [], i = t.push("paragraph_close", "p", -1), t.parentType = l, !0;
3814
- }, or = fn, ye = M.isSpace;
3814
+ }, or = fn, Ae = M.isSpace;
3815
3815
  function ft(n, t, e, o) {
3816
3816
  var r, s, c, a, i, l, u, f;
3817
3817
  for (this.src = n, this.md = t, this.env = e, this.tokens = o, 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, this.result = "", s = this.src, f = !1, c = a = l = u = 0, i = s.length; a < i; a++) {
3818
3818
  if (r = s.charCodeAt(a), !f)
3819
- if (ye(r)) {
3819
+ if (Ae(r)) {
3820
3820
  l++, r === 9 ? u += 4 - u % 4 : u++;
3821
3821
  continue;
3822
3822
  } else
@@ -3838,7 +3838,7 @@ ft.prototype.skipEmptyLines = function(t) {
3838
3838
  return t;
3839
3839
  };
3840
3840
  ft.prototype.skipSpaces = function(t) {
3841
- for (var e, o = this.src.length; t < o && (e = this.src.charCodeAt(t), !!ye(e)); t++)
3841
+ for (var e, o = this.src.length; t < o && (e = this.src.charCodeAt(t), !!Ae(e)); t++)
3842
3842
  ;
3843
3843
  return t;
3844
3844
  };
@@ -3846,7 +3846,7 @@ ft.prototype.skipSpacesBack = function(t, e) {
3846
3846
  if (t <= e)
3847
3847
  return t;
3848
3848
  for (; t > e; )
3849
- if (!ye(this.src.charCodeAt(--t)))
3849
+ if (!Ae(this.src.charCodeAt(--t)))
3850
3850
  return t + 1;
3851
3851
  return t;
3852
3852
  };
@@ -3869,7 +3869,7 @@ ft.prototype.getLines = function(t, e, o, r) {
3869
3869
  return "";
3870
3870
  for (u = new Array(e - t), s = 0; h < e; h++, s++) {
3871
3871
  for (c = 0, f = i = this.bMarks[h], h + 1 < e || r ? l = this.eMarks[h] + 1 : l = this.eMarks[h]; i < l && c < o; ) {
3872
- if (a = this.src.charCodeAt(i), ye(a))
3872
+ if (a = this.src.charCodeAt(i), Ae(a))
3873
3873
  a === 9 ? c += 4 - (c + this.bsCount[h]) % 4 : c++;
3874
3874
  else if (i - f < this.tShift[h])
3875
3875
  c++;
@@ -3897,12 +3897,12 @@ var $P = ft, tz = pn, ae = [
3897
3897
  ["lheading", JP],
3898
3898
  ["paragraph", QP]
3899
3899
  ];
3900
- function Ae() {
3900
+ function we() {
3901
3901
  this.ruler = new tz();
3902
3902
  for (var n = 0; n < ae.length; n++)
3903
3903
  this.ruler.push(ae[n][0], ae[n][1], { alt: (ae[n][2] || []).slice() });
3904
3904
  }
3905
- Ae.prototype.tokenize = function(n, t, e) {
3905
+ we.prototype.tokenize = function(n, t, e) {
3906
3906
  for (var o, r, s, c = this.ruler.getRules(""), a = c.length, i = t, l = !1, u = n.md.options.maxNesting; i < e && (n.line = i = n.skipEmptyLines(i), !(i >= e || n.sCount[i] < n.blkIndent)); ) {
3907
3907
  if (n.level >= u) {
3908
3908
  n.line = e;
@@ -3919,12 +3919,12 @@ Ae.prototype.tokenize = function(n, t, e) {
3919
3919
  n.tight = !l, n.isEmpty(n.line - 1) && (l = !0), i = n.line, i < e && n.isEmpty(i) && (l = !0, i++, n.line = i);
3920
3920
  }
3921
3921
  };
3922
- Ae.prototype.parse = function(n, t, e, o) {
3922
+ we.prototype.parse = function(n, t, e, o) {
3923
3923
  var r;
3924
3924
  n && (r = new this.State(n, t, e, o), this.tokenize(r, r.line, r.lineMax));
3925
3925
  };
3926
- Ae.prototype.State = $P;
3927
- var ez = Ae;
3926
+ we.prototype.State = $P;
3927
+ var ez = we;
3928
3928
  function nz(n) {
3929
3929
  switch (n) {
3930
3930
  case 10:
@@ -4011,8 +4011,8 @@ var lz = function(t, e) {
4011
4011
  t.backticks[u] = a;
4012
4012
  }
4013
4013
  return t.backticksScanned = !0, e || (t.pending += s), t.pos += l, !0;
4014
- }, we = {};
4015
- we.tokenize = function(t, e) {
4014
+ }, Ee = {};
4015
+ Ee.tokenize = function(t, e) {
4016
4016
  var o, r, s, c, a, i = t.pos, l = t.src.charCodeAt(i);
4017
4017
  if (e || l !== 126 || (r = t.scanDelims(t.pos, !0), c = r.length, a = String.fromCharCode(l), c < 2))
4018
4018
  return !1;
@@ -4038,13 +4038,13 @@ function Do(n, t) {
4038
4038
  o--, e !== o && (c = n.tokens[o], n.tokens[o] = n.tokens[e], n.tokens[e] = c);
4039
4039
  }
4040
4040
  }
4041
- we.postProcess = function(t) {
4041
+ Ee.postProcess = function(t) {
4042
4042
  var e, o = t.tokens_meta, r = t.tokens_meta.length;
4043
4043
  for (Do(t, t.delimiters), e = 0; e < r; e++)
4044
4044
  o[e] && o[e].delimiters && Do(t, o[e].delimiters);
4045
4045
  };
4046
- var Ee = {};
4047
- Ee.tokenize = function(t, e) {
4046
+ var Ce = {};
4047
+ Ce.tokenize = function(t, e) {
4048
4048
  var o, r, s, c = t.pos, a = t.src.charCodeAt(c);
4049
4049
  if (e || a !== 95 && a !== 42)
4050
4050
  return !1;
@@ -4078,25 +4078,25 @@ function To(n, t) {
4078
4078
  t[e - 1].marker === o.marker && t[e - 1].token === o.token - 1 && // check that last two markers are adjacent (we can safely assume they match)
4079
4079
  t[o.end + 1].token === r.token + 1, c = String.fromCharCode(o.marker), s = n.tokens[o.token], s.type = a ? "strong_open" : "em_open", s.tag = a ? "strong" : "em", s.nesting = 1, s.markup = a ? c + c : c, s.content = "", s = n.tokens[r.token], s.type = a ? "strong_close" : "em_close", s.tag = a ? "strong" : "em", s.nesting = -1, s.markup = a ? c + c : c, s.content = "", a && (n.tokens[t[e - 1].token].content = "", n.tokens[t[o.end + 1].token].content = "", e--));
4080
4080
  }
4081
- Ee.postProcess = function(t) {
4081
+ Ce.postProcess = function(t) {
4082
4082
  var e, o = t.tokens_meta, r = t.tokens_meta.length;
4083
4083
  for (To(t, t.delimiters), e = 0; e < r; e++)
4084
4084
  o[e] && o[e].delimiters && To(t, o[e].delimiters);
4085
4085
  };
4086
- var pz = M.normalizeReference, Xe = M.isSpace, fz = function(t, e) {
4086
+ var pz = M.normalizeReference, Ke = M.isSpace, fz = function(t, e) {
4087
4087
  var o, r, s, c, a, i, l, u, f, h = "", d = "", x = t.pos, k = t.posMax, E = t.pos, y = !0;
4088
4088
  if (t.src.charCodeAt(t.pos) !== 91 || (a = t.pos + 1, c = t.md.helpers.parseLinkLabel(t, t.pos, !0), c < 0))
4089
4089
  return !1;
4090
4090
  if (i = c + 1, i < k && t.src.charCodeAt(i) === 40) {
4091
- for (y = !1, i++; i < k && (r = t.src.charCodeAt(i), !(!Xe(r) && r !== 10)); i++)
4091
+ for (y = !1, i++; i < k && (r = t.src.charCodeAt(i), !(!Ke(r) && r !== 10)); i++)
4092
4092
  ;
4093
4093
  if (i >= k)
4094
4094
  return !1;
4095
4095
  if (E = i, l = t.md.helpers.parseLinkDestination(t.src, i, t.posMax), l.ok) {
4096
- for (h = t.md.normalizeLink(l.str), t.md.validateLink(h) ? i = l.pos : h = "", E = i; i < k && (r = t.src.charCodeAt(i), !(!Xe(r) && r !== 10)); i++)
4096
+ for (h = t.md.normalizeLink(l.str), t.md.validateLink(h) ? i = l.pos : h = "", E = i; i < k && (r = t.src.charCodeAt(i), !(!Ke(r) && r !== 10)); i++)
4097
4097
  ;
4098
4098
  if (l = t.md.helpers.parseLinkTitle(t.src, i, t.posMax), i < k && E !== i && l.ok)
4099
- for (d = l.str, i = l.pos; i < k && (r = t.src.charCodeAt(i), !(!Xe(r) && r !== 10)); i++)
4099
+ for (d = l.str, i = l.pos; i < k && (r = t.src.charCodeAt(i), !(!Ke(r) && r !== 10)); i++)
4100
4100
  ;
4101
4101
  }
4102
4102
  (i >= k || t.src.charCodeAt(i) !== 41) && (y = !0), i++;
@@ -4109,19 +4109,19 @@ var pz = M.normalizeReference, Xe = M.isSpace, fz = function(t, e) {
4109
4109
  h = u.href, d = u.title;
4110
4110
  }
4111
4111
  return e || (t.pos = a, t.posMax = c, f = t.push("link_open", "a", 1), f.attrs = o = [["href", h]], d && o.push(["title", d]), t.linkLevel++, t.md.inline.tokenize(t), t.linkLevel--, f = t.push("link_close", "a", -1)), t.pos = i, t.posMax = k, !0;
4112
- }, hz = M.normalizeReference, Ke = M.isSpace, dz = function(t, e) {
4112
+ }, hz = M.normalizeReference, Je = M.isSpace, dz = function(t, e) {
4113
4113
  var o, r, s, c, a, i, l, u, f, h, d, x, k, E = "", y = t.pos, _ = t.posMax;
4114
4114
  if (t.src.charCodeAt(t.pos) !== 33 || t.src.charCodeAt(t.pos + 1) !== 91 || (i = t.pos + 2, a = t.md.helpers.parseLinkLabel(t, t.pos + 1, !1), a < 0))
4115
4115
  return !1;
4116
4116
  if (l = a + 1, l < _ && t.src.charCodeAt(l) === 40) {
4117
- for (l++; l < _ && (r = t.src.charCodeAt(l), !(!Ke(r) && r !== 10)); l++)
4117
+ for (l++; l < _ && (r = t.src.charCodeAt(l), !(!Je(r) && r !== 10)); l++)
4118
4118
  ;
4119
4119
  if (l >= _)
4120
4120
  return !1;
4121
- for (k = l, f = t.md.helpers.parseLinkDestination(t.src, l, t.posMax), f.ok && (E = t.md.normalizeLink(f.str), t.md.validateLink(E) ? l = f.pos : E = ""), k = l; l < _ && (r = t.src.charCodeAt(l), !(!Ke(r) && r !== 10)); l++)
4121
+ for (k = l, f = t.md.helpers.parseLinkDestination(t.src, l, t.posMax), f.ok && (E = t.md.normalizeLink(f.str), t.md.validateLink(E) ? l = f.pos : E = ""), k = l; l < _ && (r = t.src.charCodeAt(l), !(!Je(r) && r !== 10)); l++)
4122
4122
  ;
4123
4123
  if (f = t.md.helpers.parseLinkTitle(t.src, l, t.posMax), l < _ && k !== l && f.ok)
4124
- for (h = f.str, l = f.pos; l < _ && (r = t.src.charCodeAt(l), !(!Ke(r) && r !== 10)); l++)
4124
+ for (h = f.str, l = f.pos; l < _ && (r = t.src.charCodeAt(l), !(!Je(r) && r !== 10)); l++)
4125
4125
  ;
4126
4126
  else
4127
4127
  h = "";
@@ -4152,7 +4152,7 @@ var pz = M.normalizeReference, Xe = M.isSpace, fz = function(t, e) {
4152
4152
  break;
4153
4153
  }
4154
4154
  return o = t.src.slice(a + 1, l), gz.test(o) ? (r = t.md.normalizeLink(o), t.md.validateLink(r) ? (e || (s = t.push("link_open", "a", 1), s.attrs = [["href", r]], s.markup = "autolink", s.info = "auto", s = t.push("text", "", 0), s.content = t.md.normalizeLinkText(o), s = t.push("link_close", "a", -1), s.markup = "autolink", s.info = "auto"), t.pos += o.length + 2, !0) : !1) : mz.test(o) ? (r = t.md.normalizeLink("mailto:" + o), t.md.validateLink(r) ? (e || (s = t.push("link_open", "a", 1), s.attrs = [["href", r]], s.markup = "autolink", s.info = "auto", s = t.push("text", "", 0), s.content = t.md.normalizeLinkText(o), s = t.push("link_close", "a", -1), s.markup = "autolink", s.info = "auto"), t.pos += o.length + 2, !0) : !1) : !1;
4155
- }, _z = xe.HTML_TAG_RE;
4155
+ }, _z = ye.HTML_TAG_RE;
4156
4156
  function vz(n) {
4157
4157
  return /^<a[>\s]/i.test(n);
4158
4158
  }
@@ -4225,33 +4225,33 @@ Kt.prototype.scanDelims = function(n, t) {
4225
4225
  };
4226
4226
  };
4227
4227
  Kt.prototype.Token = mn;
4228
- var Lz = Kt, Io = pn, Je = [
4228
+ var Lz = Kt, Io = pn, Qe = [
4229
4229
  ["text", oz],
4230
4230
  ["linkify", sz],
4231
4231
  ["newline", iz],
4232
4232
  ["escape", lz],
4233
4233
  ["backticks", uz],
4234
- ["strikethrough", we.tokenize],
4235
- ["emphasis", Ee.tokenize],
4234
+ ["strikethrough", Ee.tokenize],
4235
+ ["emphasis", Ce.tokenize],
4236
4236
  ["link", fz],
4237
4237
  ["image", dz],
4238
4238
  ["autolink", bz],
4239
4239
  ["html_inline", yz],
4240
4240
  ["entity", Dz]
4241
- ], Qe = [
4241
+ ], $e = [
4242
4242
  ["balance_pairs", Tz],
4243
- ["strikethrough", we.postProcess],
4244
- ["emphasis", Ee.postProcess],
4243
+ ["strikethrough", Ee.postProcess],
4244
+ ["emphasis", Ce.postProcess],
4245
4245
  // rules for pairs separate '**' into its own text tokens, which may be left unused,
4246
4246
  // rule below merges unused segments back with the rest of the text
4247
4247
  ["fragments_join", Sz]
4248
4248
  ];
4249
4249
  function Jt() {
4250
4250
  var n;
4251
- for (this.ruler = new Io(), n = 0; n < Je.length; n++)
4252
- this.ruler.push(Je[n][0], Je[n][1]);
4253
- for (this.ruler2 = new Io(), n = 0; n < Qe.length; n++)
4254
- this.ruler2.push(Qe[n][0], Qe[n][1]);
4251
+ for (this.ruler = new Io(), n = 0; n < Qe.length; n++)
4252
+ this.ruler.push(Qe[n][0], Qe[n][1]);
4253
+ for (this.ruler2 = new Io(), n = 0; n < $e.length; n++)
4254
+ this.ruler2.push($e[n][0], $e[n][1]);
4255
4255
  }
4256
4256
  Jt.prototype.skipToken = function(n) {
4257
4257
  var t, e, o = n.pos, r = this.ruler.getRules(""), s = r.length, c = n.md.options.maxNesting, a = n.cache;
@@ -4295,9 +4295,9 @@ Jt.prototype.parse = function(n, t, e, o) {
4295
4295
  s[r](a);
4296
4296
  };
4297
4297
  Jt.prototype.State = Lz;
4298
- var qz = Jt, $e, No;
4298
+ var qz = Jt, tn, No;
4299
4299
  function Rz() {
4300
- return No || (No = 1, $e = function(n) {
4300
+ return No || (No = 1, tn = function(n) {
4301
4301
  var t = {};
4302
4302
  n = n || {}, t.src_Any = Xo().source, t.src_Cc = Ko().source, t.src_Z = Jo().source, t.src_P = un.source, t.src_ZPCc = [t.src_Z, t.src_P, t.src_Cc].join("|"), t.src_ZCc = [t.src_Z, t.src_Cc].join("|");
4303
4303
  var e = "[><|]";
@@ -4307,7 +4307,7 @@ function Rz() {
4307
4307
  "(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + t.src_ZPCc + "))((?![$+<=>^`||])" + t.tpl_host_port_fuzzy_strict + t.src_path + ")", t.tpl_link_no_ip_fuzzy = // Fuzzy link can't be prepended with .:/\- and non punctuation.
4308
4308
  // but can start with > (markdown blockquote)
4309
4309
  "(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + t.src_ZPCc + "))((?![$+<=>^`||])" + t.tpl_host_port_no_ip_fuzzy_strict + t.src_path + ")", t;
4310
- }), $e;
4310
+ }), tn;
4311
4311
  }
4312
4312
  function cn(n) {
4313
4313
  var t = Array.prototype.slice.call(arguments, 1);
@@ -4317,20 +4317,20 @@ function cn(n) {
4317
4317
  });
4318
4318
  }), n;
4319
4319
  }
4320
- function Ce(n) {
4320
+ function De(n) {
4321
4321
  return Object.prototype.toString.call(n);
4322
4322
  }
4323
4323
  function Fz(n) {
4324
- return Ce(n) === "[object String]";
4324
+ return De(n) === "[object String]";
4325
4325
  }
4326
4326
  function Mz(n) {
4327
- return Ce(n) === "[object Object]";
4327
+ return De(n) === "[object Object]";
4328
4328
  }
4329
4329
  function Iz(n) {
4330
- return Ce(n) === "[object RegExp]";
4330
+ return De(n) === "[object RegExp]";
4331
4331
  }
4332
4332
  function Po(n) {
4333
- return Ce(n) === "[object Function]";
4333
+ return De(n) === "[object Function]";
4334
4334
  }
4335
4335
  function Nz(n) {
4336
4336
  return n.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
@@ -4392,7 +4392,7 @@ function zo() {
4392
4392
  t.normalize(n);
4393
4393
  };
4394
4394
  }
4395
- function ge(n) {
4395
+ function be(n) {
4396
4396
  var t = n.re = Rz()(n.__opts__), e = n.__tlds__.slice();
4397
4397
  n.onCompile(), n.__tlds_replaced__ || e.push(Oz), e.push(t.src_xn), t.src_tlds = e.join("|");
4398
4398
  function o(a) {
@@ -4440,10 +4440,10 @@ function an(n, t) {
4440
4440
  function nt(n, t) {
4441
4441
  if (!(this instanceof nt))
4442
4442
  return new nt(n, t);
4443
- t || Pz(n) && (t = n, n = {}), this.__opts__ = cn({}, rr, t), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = cn({}, zz, n), this.__compiled__ = {}, this.__tlds__ = Bz, this.__tlds_replaced__ = !1, this.re = {}, ge(this);
4443
+ t || Pz(n) && (t = n, n = {}), this.__opts__ = cn({}, rr, t), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = cn({}, zz, n), this.__compiled__ = {}, this.__tlds__ = Bz, this.__tlds_replaced__ = !1, this.re = {}, be(this);
4444
4444
  }
4445
4445
  nt.prototype.add = function(t, e) {
4446
- return this.__schemas__[t] = e, ge(this), this;
4446
+ return this.__schemas__[t] = e, be(this), this;
4447
4447
  };
4448
4448
  nt.prototype.set = function(t) {
4449
4449
  return this.__opts__ = cn(this.__opts__, t), this;
@@ -4486,7 +4486,7 @@ nt.prototype.matchAtStart = function(t) {
4486
4486
  nt.prototype.tlds = function(t, e) {
4487
4487
  return t = Array.isArray(t) ? t : [t], e ? (this.__tlds__ = this.__tlds__.concat(t).sort().filter(function(o, r, s) {
4488
4488
  return o !== s[r - 1];
4489
- }).reverse(), ge(this), this) : (this.__tlds__ = t.slice(), this.__tlds_replaced__ = !0, ge(this), this);
4489
+ }).reverse(), be(this), this) : (this.__tlds__ = t.slice(), this.__tlds_replaced__ = !0, be(this), this);
4490
4490
  };
4491
4491
  nt.prototype.normalize = function(t) {
4492
4492
  t.schema || (t.url = "http://" + t.url), t.schema === "mailto:" && !/^mailto:/i.test(t.url) && (t.url = "mailto:" + t.url);
@@ -4498,7 +4498,7 @@ const Mt = 2147483647, lt = 36, gn = 1, Wt = 26, jz = 38, Zz = 700, sr = 72, cr
4498
4498
  overflow: "Overflow: input needs wider integers to process",
4499
4499
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
4500
4500
  "invalid-input": "Invalid input"
4501
- }, tn = lt - gn, ut = Math.floor, en = String.fromCharCode;
4501
+ }, en = lt - gn, ut = Math.floor, nn = String.fromCharCode;
4502
4502
  function bt(n) {
4503
4503
  throw new RangeError(Kz[n]);
4504
4504
  }
@@ -4536,9 +4536,9 @@ const lr = (n) => String.fromCodePoint(...n), Qz = function(n) {
4536
4536
  return n + 22 + 75 * (n < 26) - ((t != 0) << 5);
4537
4537
  }, ur = function(n, t, e) {
4538
4538
  let o = 0;
4539
- for (n = e ? ut(n / Zz) : n >> 1, n += ut(n / t); n > tn * Wt >> 1; o += lt)
4540
- n = ut(n / tn);
4541
- return ut(o + (tn + 1) * n / (n + jz));
4539
+ for (n = e ? ut(n / Zz) : n >> 1, n += ut(n / t); n > en * Wt >> 1; o += lt)
4540
+ n = ut(n / en);
4541
+ return ut(o + (en + 1) * n / (n + jz));
4542
4542
  }, _n = function(n) {
4543
4543
  const t = [], e = n.length;
4544
4544
  let o = 0, r = cr, s = sr, c = n.lastIndexOf(ir);
@@ -4567,7 +4567,7 @@ const lr = (n) => String.fromCodePoint(...n), Qz = function(n) {
4567
4567
  const e = n.length;
4568
4568
  let o = cr, r = 0, s = sr;
4569
4569
  for (const i of n)
4570
- i < 128 && t.push(en(i));
4570
+ i < 128 && t.push(nn(i));
4571
4571
  const c = t.length;
4572
4572
  let a = c;
4573
4573
  for (c && t.push(ir); a < e; ) {
@@ -4585,10 +4585,10 @@ const lr = (n) => String.fromCodePoint(...n), Qz = function(n) {
4585
4585
  break;
4586
4586
  const x = f - d, k = lt - d;
4587
4587
  t.push(
4588
- en(Oo(d + x % k, 0))
4588
+ nn(Oo(d + x % k, 0))
4589
4589
  ), f = ut(x / k);
4590
4590
  }
4591
- t.push(en(Oo(f, 0))), s = ur(r, l, a === c), r = 0, ++a;
4591
+ t.push(nn(Oo(f, 0))), s = ur(r, l, a === c), r = 0, ++a;
4592
4592
  }
4593
4593
  ++r, ++o;
4594
4594
  }
@@ -4798,7 +4798,7 @@ var n9 = {
4798
4798
  ]
4799
4799
  }
4800
4800
  }
4801
- }, Zt = M, s9 = ke, c9 = QN, i9 = yP, a9 = ez, l9 = qz, u9 = Gz, At = It, hr = e9, p9 = {
4801
+ }, Zt = M, s9 = xe, c9 = QN, i9 = yP, a9 = ez, l9 = qz, u9 = Gz, At = It, hr = e9, p9 = {
4802
4802
  default: n9,
4803
4803
  zero: o9,
4804
4804
  commonmark: r9
@@ -4941,7 +4941,7 @@ const x9 = { class: "message-content user" }, y9 = ["innerHTML"], A9 = { class:
4941
4941
  return (r, s) => (U(), X(
4942
4942
  "li",
4943
4943
  {
4944
- class: nn([r.message.role, "message-main"])
4944
+ class: on([r.message.role, "message-main"])
4945
4945
  },
4946
4946
  [
4947
4947
  r.message.role === O(mr).User ? (U(), X(
@@ -4970,17 +4970,17 @@ const x9 = { class: "message-content user" }, y9 = ["innerHTML"], A9 = { class:
4970
4970
  "i",
4971
4971
  {
4972
4972
  key: 0,
4973
- class: nn(e.value)
4973
+ class: on(e.value)
4974
4974
  },
4975
4975
  null,
4976
4976
  2
4977
4977
  /* CLASS */
4978
- )) : on("v-if", !0),
4979
- r.message.status === "loading" ? (U(), X("svg", D9, S9)) : on("v-if", !0),
4978
+ )) : fe("v-if", !0),
4979
+ r.message.status === "loading" ? (U(), X("svg", D9, S9)) : fe("v-if", !0),
4980
4980
  r.message.status === "error" ? (U(), X(
4981
4981
  "span",
4982
4982
  L9,
4983
- be(r.message.content),
4983
+ _e(r.message.content),
4984
4984
  1
4985
4985
  /* TEXT */
4986
4986
  )) : (U(), X("span", {
@@ -5035,7 +5035,7 @@ const x9 = { class: "message-content user" }, y9 = ["innerHTML"], A9 = { class:
5035
5035
  () => {
5036
5036
  d(), h();
5037
5037
  }
5038
- ), qr(E), (g, C) => (U(), fe(O(Cr), {
5038
+ ), qr(E), (g, C) => (U(), he(O(Cr), {
5039
5039
  width: "calc(100% - 118px)",
5040
5040
  "ext-cls": "empty-padding",
5041
5041
  arrow: !1,
@@ -5046,7 +5046,7 @@ const x9 = { class: "message-content user" }, y9 = ["innerHTML"], A9 = { class:
5046
5046
  theme: "light",
5047
5047
  trigger: "manual"
5048
5048
  }, {
5049
- content: he(() => {
5049
+ content: de(() => {
5050
5050
  var S;
5051
5051
  return [
5052
5052
  I("div", null, [
@@ -5070,7 +5070,7 @@ const x9 = { class: "message-content user" }, y9 = ["innerHTML"], A9 = { class:
5070
5070
  I(
5071
5071
  "span",
5072
5072
  N9,
5073
- be(v.content),
5073
+ _e(v.content),
5074
5074
  1
5075
5075
  /* TEXT */
5076
5076
  )
@@ -5087,7 +5087,7 @@ const x9 = { class: "message-content user" }, y9 = ["innerHTML"], A9 = { class:
5087
5087
  128
5088
5088
  /* KEYED_FRAGMENT */
5089
5089
  )),
5090
- (S = u.value) != null && S.length ? on("v-if", !0) : (U(), fe(O(Dr), {
5090
+ (S = u.value) != null && S.length ? fe("v-if", !0) : (U(), he(O(Dr), {
5091
5091
  key: 0,
5092
5092
  class: "exception-wrap-item exception-part",
5093
5093
  scene: "part",
@@ -5100,13 +5100,13 @@ const x9 = { class: "message-content user" }, y9 = ["innerHTML"], A9 = { class:
5100
5100
  ])
5101
5101
  ];
5102
5102
  }),
5103
- default: he(() => {
5103
+ default: de(() => {
5104
5104
  var S;
5105
5105
  return [
5106
5106
  I(
5107
5107
  "section",
5108
5108
  {
5109
- style: de({
5109
+ style: me({
5110
5110
  width: "calc(100% - 84px)",
5111
5111
  "margin-right": "7px",
5112
5112
  "--text-height": a.value + "px"
@@ -5142,7 +5142,7 @@ const x9 = { class: "message-content user" }, y9 = ["innerHTML"], A9 = { class:
5142
5142
  for (const [o, r] of t)
5143
5143
  e[o] = r;
5144
5144
  return e;
5145
- }, z9 = /* @__PURE__ */ kn(P9, [["__scopeId", "data-v-54514a96"]]), O9 = (n) => (Fr("data-v-7f3487ff"), n = n(), Mr(), n), B9 = { class: "ai-operation" }, U9 = /* @__PURE__ */ O9(() => /* @__PURE__ */ I(
5145
+ }, z9 = /* @__PURE__ */ kn(P9, [["__scopeId", "data-v-54514a96"]]), O9 = (n) => (Fr("data-v-9214a253"), n = n(), Mr(), n), B9 = { class: "ai-operation" }, U9 = /* @__PURE__ */ O9(() => /* @__PURE__ */ I(
5146
5146
  "i",
5147
5147
  { class: "ai-blueking-icon ai-blueking-fasong" },
5148
5148
  null,
@@ -5177,7 +5177,7 @@ const x9 = { class: "message-content user" }, y9 = ["innerHTML"], A9 = { class:
5177
5177
  }), (u, f) => (U(), X(
5178
5178
  "section",
5179
5179
  {
5180
- style: de({
5180
+ style: me({
5181
5181
  background: u.background
5182
5182
  }),
5183
5183
  class: "ai-content"
@@ -5193,7 +5193,7 @@ const x9 = { class: "message-content user" }, y9 = ["innerHTML"], A9 = { class:
5193
5193
  (U(!0), X(
5194
5194
  pe,
5195
5195
  null,
5196
- Uo(u.messages, (h) => (U(), fe(R9, {
5196
+ Uo(u.messages, (h) => (U(), he(R9, {
5197
5197
  class: "ai-message",
5198
5198
  key: h.content,
5199
5199
  message: h,
@@ -5207,6 +5207,8 @@ const x9 = { class: "message-content user" }, y9 = ["innerHTML"], A9 = { class:
5207
5207
  /* NEED_HYDRATION */
5208
5208
  ),
5209
5209
  yt((U(), X("section", B9, [
5210
+ fe(` <render-back />
5211
+ <render-stop /> `),
5210
5212
  Yt(z9, {
5211
5213
  value: s.value,
5212
5214
  "onUpdate:value": f[0] || (f[0] = (h) => s.value = h),
@@ -5221,10 +5223,10 @@ const x9 = { class: "message-content user" }, y9 = ["innerHTML"], A9 = { class:
5221
5223
  theme: "primary",
5222
5224
  onClick: a
5223
5225
  }, {
5224
- default: he(() => [
5226
+ default: de(() => [
5225
5227
  U9,
5226
5228
  Vo(
5227
- " " + be(O(gt)("发送")),
5229
+ " " + _e(O(gt)("发送")),
5228
5230
  1
5229
5231
  /* TEXT */
5230
5232
  )
@@ -5244,7 +5246,7 @@ const x9 = { class: "message-content user" }, y9 = ["innerHTML"], A9 = { class:
5244
5246
  /* STYLE */
5245
5247
  ));
5246
5248
  }
5247
- }), H9 = /* @__PURE__ */ kn(V9, [["__scopeId", "data-v-7f3487ff"]]), G9 = /* @__PURE__ */ Xt({
5249
+ }), H9 = /* @__PURE__ */ kn(V9, [["__scopeId", "data-v-9214a253"]]), G9 = /* @__PURE__ */ Xt({
5248
5250
  __name: "render-modal",
5249
5251
  props: {
5250
5252
  headBackground: { default: "linear-gradient(267deg, #2dd1f4 0%, #1482ff 95%)" },
@@ -5334,7 +5336,7 @@ const x9 = { class: "message-content user" }, y9 = ["innerHTML"], A9 = { class:
5334
5336
  }), (D, N) => (U(), X(
5335
5337
  "section",
5336
5338
  {
5337
- style: de({
5339
+ style: me({
5338
5340
  top: i.value.top + "px",
5339
5341
  bottom: i.value.bottom + "px",
5340
5342
  left: i.value.left + "px",
@@ -5346,7 +5348,7 @@ const x9 = { class: "message-content user" }, y9 = ["innerHTML"], A9 = { class:
5346
5348
  I(
5347
5349
  "header",
5348
5350
  {
5349
- style: de({
5351
+ style: me({
5350
5352
  background: D.headBackground
5351
5353
  }),
5352
5354
  class: "ai-modal-header",
@@ -5357,14 +5359,14 @@ const x9 = { class: "message-content user" }, y9 = ["innerHTML"], A9 = { class:
5357
5359
  I(
5358
5360
  "i",
5359
5361
  {
5360
- class: nn(D.logo)
5362
+ class: on(D.logo)
5361
5363
  },
5362
5364
  null,
5363
5365
  2
5364
5366
  /* CLASS */
5365
5367
  ),
5366
5368
  Vo(
5367
- " " + be(O(gt)("小鲸")),
5369
+ " " + _e(O(gt)("小鲸")),
5368
5370
  1
5369
5371
  /* TEXT */
5370
5372
  )
@@ -5526,7 +5528,7 @@ const x9 = { class: "message-content user" }, y9 = ["innerHTML"], A9 = { class:
5526
5528
  /* STYLE */
5527
5529
  ));
5528
5530
  }
5529
- }), j9 = /* @__PURE__ */ kn(G9, [["__scopeId", "data-v-00f37e03"]]), X9 = /* @__PURE__ */ Xt({
5531
+ }), j9 = /* @__PURE__ */ kn(G9, [["__scopeId", "data-v-2e313531"]]), X9 = /* @__PURE__ */ Xt({
5530
5532
  __name: "ai-blueking",
5531
5533
  props: {
5532
5534
  messages: {},
@@ -5553,7 +5555,7 @@ const x9 = { class: "message-content user" }, y9 = ["innerHTML"], A9 = { class:
5553
5555
  }, a = (i) => {
5554
5556
  e("scroll", i);
5555
5557
  };
5556
- return (i, l) => (U(), fe(j9, {
5558
+ return (i, l) => (U(), he(j9, {
5557
5559
  "head-background": i.headBackground,
5558
5560
  logo: i.logo,
5559
5561
  "position-limit": i.positionLimit,
@@ -5562,7 +5564,7 @@ const x9 = { class: "message-content user" }, y9 = ["innerHTML"], A9 = { class:
5562
5564
  onClear: o,
5563
5565
  onClose: r
5564
5566
  }, {
5565
- default: he(() => [
5567
+ default: de(() => [
5566
5568
  Yt(H9, {
5567
5569
  background: i.background,
5568
5570
  loading: i.loading,