@clevertask/scribe 0.0.12 → 0.0.14

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.
Files changed (69) hide show
  1. package/README.md +80 -4
  2. package/dist/assets/index.css +1 -1
  3. package/dist/components/Menu/BarMenu.d.ts +3 -2
  4. package/dist/components/Menu/BarMenu.d.ts.map +1 -0
  5. package/dist/components/Menu/BarMenu.js +21 -21
  6. package/dist/components/Menu/BubbleMenu.d.ts +3 -2
  7. package/dist/components/Menu/BubbleMenu.d.ts.map +1 -0
  8. package/dist/components/Menu/BubbleMenu.js +1 -1
  9. package/dist/components/Menu/Mobile/ListOptionBar.d.ts +2 -1
  10. package/dist/components/Menu/Mobile/ListOptionBar.d.ts.map +1 -0
  11. package/dist/components/Menu/Mobile/ListOptionBar.js +35 -38
  12. package/dist/components/Scribe/extension/emoji/EmojiList.d.ts +2 -1
  13. package/dist/components/Scribe/extension/emoji/EmojiList.d.ts.map +1 -0
  14. package/dist/components/Scribe/extension/emoji/suggest.d.ts +1 -0
  15. package/dist/components/Scribe/extension/emoji/suggest.d.ts.map +1 -0
  16. package/dist/components/Scribe/extension/emoji/suggest.js +5 -6
  17. package/dist/components/Scribe/extension/extension-link.d.ts +2 -1
  18. package/dist/components/Scribe/extension/extension-link.d.ts.map +1 -0
  19. package/dist/components/Scribe/extension/extension-link.js +2 -2
  20. package/dist/components/Scribe/extension/extension-selectedText.d.ts +2 -1
  21. package/dist/components/Scribe/extension/extension-selectedText.d.ts.map +1 -0
  22. package/dist/components/Scribe/extension/extension-selectedText.js +1 -1
  23. package/dist/components/Scribe/extension/index.d.ts +3 -2
  24. package/dist/components/Scribe/extension/index.d.ts.map +1 -0
  25. package/dist/components/Scribe/extension/index.js +2 -2
  26. package/dist/components/Scribe/extension/slashCommand/SlashCommandList.d.ts +3 -2
  27. package/dist/components/Scribe/extension/slashCommand/SlashCommandList.d.ts.map +1 -0
  28. package/dist/components/Scribe/extension/slashCommand/SlashCommandList.js +4 -4
  29. package/dist/components/Scribe/extension/slashCommand/index.d.ts +3 -2
  30. package/dist/components/Scribe/extension/slashCommand/index.d.ts.map +1 -0
  31. package/dist/components/Scribe/extension/slashCommand/index.js +2 -2
  32. package/dist/components/Scribe/extension/slashCommand/items.d.ts +3 -2
  33. package/dist/components/Scribe/extension/slashCommand/items.d.ts.map +1 -0
  34. package/dist/components/Scribe/extension/slashCommand/items.js +6 -7
  35. package/dist/components/Scribe/extension/slashCommand/renderItems.d.ts +2 -1
  36. package/dist/components/Scribe/extension/slashCommand/renderItems.d.ts.map +1 -0
  37. package/dist/components/Scribe/extension/slashCommand/renderItems.js +10 -11
  38. package/dist/components/Scribe/index.d.ts +6 -4
  39. package/dist/components/Scribe/index.d.ts.map +1 -0
  40. package/dist/components/Scribe/index.js +78 -79
  41. package/dist/index-BfaHEr44.js +159 -0
  42. package/dist/{index-VneQGVTd.js → index-Bvgjhwaj.js} +11 -47
  43. package/dist/{index-CCS9HOYd.js → index-DAuPG8ME.js} +5313 -5425
  44. package/dist/{index-DoNRu1rY.js → index-flsxByQS.js} +17 -17
  45. package/dist/main.d.ts +4 -3
  46. package/dist/main.d.ts.map +1 -0
  47. package/dist/main.js +8 -6
  48. package/dist/marked.esm-H7n4rMcO.js +1554 -0
  49. package/dist/{purify.es-BGaRrCfO.js → purify.es-BRDuGiV2.js} +114 -115
  50. package/dist/utils/convert-legacy-math-delimiters.d.ts +2 -0
  51. package/dist/utils/convert-legacy-math-delimiters.d.ts.map +1 -0
  52. package/dist/utils/convert-legacy-math-delimiters.js +13 -0
  53. package/dist/utils/create-scribe-editor.d.ts +2 -1
  54. package/dist/utils/create-scribe-editor.d.ts.map +1 -0
  55. package/dist/utils/create-scribe-editor.js +3 -3
  56. package/dist/utils/html-to-markdown.d.ts +1 -0
  57. package/dist/utils/html-to-markdown.d.ts.map +1 -0
  58. package/dist/utils/html-to-markdown.js +1 -1
  59. package/dist/utils/index.d.ts +6 -4
  60. package/dist/utils/index.d.ts.map +1 -0
  61. package/dist/utils/index.js +8 -6
  62. package/dist/utils/is-in-viewport.d.ts +1 -0
  63. package/dist/utils/is-in-viewport.d.ts.map +1 -0
  64. package/dist/utils/markdown-to-html.d.ts +1 -0
  65. package/dist/utils/markdown-to-html.d.ts.map +1 -0
  66. package/dist/utils/markdown-to-html.js +2 -2
  67. package/package.json +46 -46
  68. package/dist/index-B0pieAxt.js +0 -160
  69. package/dist/marked.esm-BS_MmRZC.js +0 -1566
@@ -1,4 +1,3 @@
1
- /*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
2
1
  const {
3
2
  entries: _t,
4
3
  setPrototypeOf: ct,
@@ -8,21 +7,21 @@ const {
8
7
  } = Object;
9
8
  let {
10
9
  freeze: S,
11
- seal: L,
12
- create: ve
10
+ seal: b,
11
+ create: me
13
12
  } = Object, {
14
- apply: ke,
13
+ apply: ve,
15
14
  construct: Ue
16
15
  } = typeof Reflect < "u" && Reflect;
17
16
  S || (S = function(o) {
18
17
  return o;
19
18
  });
20
- L || (L = function(o) {
19
+ b || (b = function(o) {
21
20
  return o;
22
21
  });
23
- ke || (ke = function(o, l) {
24
- for (var a = arguments.length, c = new Array(a > 2 ? a - 2 : 0), O = 2; O < a; O++)
25
- c[O - 2] = arguments[O];
22
+ ve || (ve = function(o, l) {
23
+ for (var a = arguments.length, c = new Array(a > 2 ? a - 2 : 0), D = 2; D < a; D++)
24
+ c[D - 2] = arguments[D];
26
25
  return o.apply(l, c);
27
26
  });
28
27
  Ue || (Ue = function(o) {
@@ -30,13 +29,13 @@ Ue || (Ue = function(o) {
30
29
  a[c - 1] = arguments[c];
31
30
  return new o(...a);
32
31
  });
33
- const ce = R(Array.prototype.forEach), Vt = R(Array.prototype.lastIndexOf), ft = R(Array.prototype.pop), q = R(Array.prototype.push), $t = R(Array.prototype.splice), ue = R(String.prototype.toLowerCase), Ie = R(String.prototype.toString), Ce = R(String.prototype.match), K = R(String.prototype.replace), qt = R(String.prototype.indexOf), Kt = R(String.prototype.trim), y = R(Object.prototype.hasOwnProperty), h = R(RegExp.prototype.test), Z = Zt(TypeError);
32
+ const fe = R(Array.prototype.forEach), Vt = R(Array.prototype.lastIndexOf), ft = R(Array.prototype.pop), q = R(Array.prototype.push), $t = R(Array.prototype.splice), pe = R(String.prototype.toLowerCase), Ie = R(String.prototype.toString), Me = R(String.prototype.match), K = R(String.prototype.replace), qt = R(String.prototype.indexOf), Kt = R(String.prototype.trim), L = R(Object.prototype.hasOwnProperty), h = R(RegExp.prototype.test), Z = Zt(TypeError);
34
33
  function R(s) {
35
34
  return function(o) {
36
35
  o instanceof RegExp && (o.lastIndex = 0);
37
36
  for (var l = arguments.length, a = new Array(l > 1 ? l - 1 : 0), c = 1; c < l; c++)
38
37
  a[c - 1] = arguments[c];
39
- return ke(s, o, a);
38
+ return ve(s, o, a);
40
39
  };
41
40
  }
42
41
  function Zt(s) {
@@ -47,14 +46,14 @@ function Zt(s) {
47
46
  };
48
47
  }
49
48
  function r(s, o) {
50
- let l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ue;
49
+ let l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : pe;
51
50
  ct && ct(s, null);
52
51
  let a = o.length;
53
52
  for (; a--; ) {
54
53
  let c = o[a];
55
54
  if (typeof c == "string") {
56
- const O = l(c);
57
- O !== c && (Yt(o) || (o[a] = O), c = O);
55
+ const D = l(c);
56
+ D !== c && (Yt(o) || (o[a] = D), c = D);
58
57
  }
59
58
  s[c] = !0;
60
59
  }
@@ -62,13 +61,13 @@ function r(s, o) {
62
61
  }
63
62
  function Jt(s) {
64
63
  for (let o = 0; o < s.length; o++)
65
- y(s, o) || (s[o] = null);
64
+ L(s, o) || (s[o] = null);
66
65
  return s;
67
66
  }
68
- function I(s) {
69
- const o = ve(null);
67
+ function C(s) {
68
+ const o = me(null);
70
69
  for (const [l, a] of _t(s))
71
- y(s, l) && (Array.isArray(a) ? o[l] = Jt(a) : a && typeof a == "object" && a.constructor === Object ? o[l] = I(a) : o[l] = a);
70
+ L(s, l) && (Array.isArray(a) ? o[l] = Jt(a) : a && typeof a == "object" && a.constructor === Object ? o[l] = C(a) : o[l] = a);
72
71
  return o;
73
72
  }
74
73
  function J(s, o) {
@@ -87,13 +86,13 @@ function J(s, o) {
87
86
  }
88
87
  return l;
89
88
  }
90
- const ut = S(["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", "search", "section", "select", "shadow", "slot", "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"]), Me = S(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), we = S(["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"]), Qt = S(["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"]), xe = S(["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"]), en = S(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), mt = S(["#text"]), pt = S(["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", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "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", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Pe = S(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "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", "exponent", "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", "intercept", "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", "mask-type", "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", "slope", "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", "tablevalues", "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"]), Tt = S(["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"]), fe = S(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), tn = L(/\{\{[\w\W]*|[\w\W]*\}\}/gm), nn = L(/<%[\w\W]*|[\w\W]*%>/gm), on = L(/\$\{[\w\W]*/gm), an = L(/^data-[\-\w.\u00B7-\uFFFF]+$/), rn = L(/^aria-[\-\w]+$/), gt = L(
89
+ const ut = S(["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", "search", "section", "select", "shadow", "slot", "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"]), we = S(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), xe = S(["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"]), Qt = S(["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"]), Pe = S(["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"]), en = S(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), mt = S(["#text"]), pt = S(["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", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "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", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), ke = S(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "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", "exponent", "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", "intercept", "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", "mask-type", "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", "slope", "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", "tablevalues", "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"]), Tt = S(["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"]), ue = S(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), tn = b(/\{\{[\w\W]*|[\w\W]*\}\}/gm), nn = b(/<%[\w\W]*|[\w\W]*%>/gm), on = b(/\$\{[\w\W]*/gm), an = b(/^data-[\-\w.\u00B7-\uFFFF]+$/), rn = b(/^aria-[\-\w]+$/), gt = b(
91
90
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
92
91
  // eslint-disable-line no-useless-escape
93
- ), sn = L(/^(?:\w+script|data):/i), ln = L(
92
+ ), sn = b(/^(?:\w+script|data):/i), ln = b(
94
93
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
95
94
  // eslint-disable-line no-control-regex
96
- ), At = L(/^html$/i), cn = L(/^[a-z][.\w]*(-[.\w]+)+$/i);
95
+ ), At = b(/^html$/i), cn = b(/^[a-z][.\w]*(-[.\w]+)+$/i);
97
96
  var dt = /* @__PURE__ */ Object.freeze({
98
97
  __proto__: null,
99
98
  ARIA_ATTR: rn,
@@ -122,9 +121,9 @@ const Q = {
122
121
  let a = null;
123
122
  const c = "data-tt-policy-suffix";
124
123
  l && l.hasAttribute(c) && (a = l.getAttribute(c));
125
- const O = "dompurify" + (a ? "#" + a : "");
124
+ const D = "dompurify" + (a ? "#" + a : "");
126
125
  try {
127
- return o.createPolicy(O, {
126
+ return o.createPolicy(D, {
128
127
  createHTML(v) {
129
128
  return v;
130
129
  },
@@ -133,7 +132,7 @@ const Q = {
133
132
  }
134
133
  });
135
134
  } catch {
136
- return console.warn("TrustedTypes policy " + O + " could not be created."), null;
135
+ return console.warn("TrustedTypes policy " + D + " could not be created."), null;
137
136
  }
138
137
  }, Et = function() {
139
138
  return {
@@ -151,54 +150,54 @@ const Q = {
151
150
  function ht() {
152
151
  let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : fn();
153
152
  const o = (i) => ht(i);
154
- if (o.version = "3.3.1", o.removed = [], !s || !s.document || s.document.nodeType !== Q.document || !s.Element)
153
+ if (o.version = "3.3.2", o.removed = [], !s || !s.document || s.document.nodeType !== Q.document || !s.Element)
155
154
  return o.isSupported = !1, o;
156
155
  let {
157
156
  document: l
158
157
  } = s;
159
158
  const a = l, c = a.currentScript, {
160
- DocumentFragment: O,
159
+ DocumentFragment: D,
161
160
  HTMLTemplateElement: v,
162
- Node: me,
161
+ Node: Te,
163
162
  Element: Fe,
164
163
  NodeFilter: B,
165
164
  NamedNodeMap: St = s.NamedNodeMap || s.MozNamedAttrMap,
166
165
  HTMLFormElement: Rt,
167
- DOMParser: Ot,
166
+ DOMParser: Dt,
168
167
  trustedTypes: ee
169
- } = s, Y = Fe.prototype, Dt = J(Y, "cloneNode"), Lt = J(Y, "remove"), yt = J(Y, "nextSibling"), bt = J(Y, "childNodes"), te = J(Y, "parentNode");
168
+ } = s, Y = Fe.prototype, Ot = J(Y, "cloneNode"), Lt = J(Y, "remove"), bt = J(Y, "nextSibling"), yt = J(Y, "childNodes"), te = J(Y, "parentNode");
170
169
  if (typeof v == "function") {
171
170
  const i = l.createElement("template");
172
171
  i.content && i.content.ownerDocument && (l = i.content.ownerDocument);
173
172
  }
174
173
  let g, X = "";
175
174
  const {
176
- implementation: pe,
175
+ implementation: de,
177
176
  createNodeIterator: Nt,
178
- createDocumentFragment: It,
179
- getElementsByTagName: Ct
177
+ createDocumentFragment: Ct,
178
+ getElementsByTagName: It
180
179
  } = l, {
181
180
  importNode: Mt
182
181
  } = a;
183
182
  let A = Et();
184
- o.isSupported = typeof _t == "function" && typeof te == "function" && pe && pe.createHTMLDocument !== void 0;
183
+ o.isSupported = typeof _t == "function" && typeof te == "function" && de && de.createHTMLDocument !== void 0;
185
184
  const {
186
- MUSTACHE_EXPR: Te,
187
- ERB_EXPR: de,
188
- TMPLIT_EXPR: Ee,
185
+ MUSTACHE_EXPR: Ee,
186
+ ERB_EXPR: _e,
187
+ TMPLIT_EXPR: ge,
189
188
  DATA_ATTR: wt,
190
189
  ARIA_ATTR: xt,
191
190
  IS_SCRIPT_OR_DATA: Pt,
192
191
  ATTR_WHITESPACE: He,
193
- CUSTOM_ELEMENT: vt
192
+ CUSTOM_ELEMENT: kt
194
193
  } = dt;
195
194
  let {
196
195
  IS_ALLOWED_URI: ze
197
196
  } = dt, T = null;
198
- const Ge = r({}, [...ut, ...Me, ...we, ...xe, ...mt]);
197
+ const Ge = r({}, [...ut, ...we, ...xe, ...Pe, ...mt]);
199
198
  let d = null;
200
- const We = r({}, [...pt, ...Pe, ...Tt, ...fe]);
201
- let u = Object.seal(ve(null, {
199
+ const We = r({}, [...pt, ...ke, ...Tt, ...ue]);
200
+ let u = Object.seal(me(null, {
202
201
  tagNameCheck: {
203
202
  writable: !0,
204
203
  configurable: !1,
@@ -217,8 +216,8 @@ function ht() {
217
216
  enumerable: !0,
218
217
  value: !1
219
218
  }
220
- })), j = null, _e = null;
221
- const k = Object.seal(ve(null, {
219
+ })), j = null, ne = null;
220
+ const x = Object.seal(me(null, {
222
221
  tagCheck: {
223
222
  writable: !0,
224
223
  configurable: !1,
@@ -232,17 +231,17 @@ function ht() {
232
231
  value: null
233
232
  }
234
233
  }));
235
- let Be = !0, ge = !0, Ye = !1, Xe = !0, U = !1, ne = !0, x = !1, Ae = !1, he = !1, F = !1, oe = !1, ie = !1, je = !0, Ve = !1;
236
- const kt = "user-content-";
237
- let Se = !0, V = !1, H = {}, b = null;
238
- const Re = 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"]);
234
+ let Be = !0, Ae = !0, Ye = !1, Xe = !0, U = !1, oe = !0, P = !1, he = !1, Se = !1, F = !1, ie = !1, ae = !1, je = !0, Ve = !1;
235
+ const vt = "user-content-";
236
+ let Re = !0, V = !1, H = {}, y = null;
237
+ const De = 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"]);
239
238
  let $e = null;
240
239
  const qe = r({}, ["audio", "video", "img", "source", "image", "track"]);
241
240
  let Oe = null;
242
- const Ke = r({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ae = "http://www.w3.org/1998/Math/MathML", re = "http://www.w3.org/2000/svg", C = "http://www.w3.org/1999/xhtml";
243
- let z = C, De = !1, Le = null;
244
- const Ut = r({}, [ae, re, C], Ie);
245
- let se = r({}, ["mi", "mo", "mn", "ms", "mtext"]), le = r({}, ["annotation-xml"]);
241
+ const Ke = r({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), re = "http://www.w3.org/1998/Math/MathML", se = "http://www.w3.org/2000/svg", I = "http://www.w3.org/1999/xhtml";
242
+ let z = I, Le = !1, be = null;
243
+ const Ut = r({}, [re, se, I], Ie);
244
+ let le = r({}, ["mi", "mo", "mn", "ms", "mtext"]), ce = r({}, ["annotation-xml"]);
246
245
  const Ft = r({}, ["title", "style", "font", "a", "script"]);
247
246
  let $ = null;
248
247
  const Ht = ["application/xhtml+xml", "text/html"], zt = "text/html";
@@ -252,8 +251,8 @@ function ht() {
252
251
  }, ye = function() {
253
252
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
254
253
  if (!(G && G === e)) {
255
- if ((!e || typeof e != "object") && (e = {}), e = I(e), $ = // eslint-disable-next-line unicorn/prefer-includes
256
- Ht.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? zt : e.PARSER_MEDIA_TYPE, p = $ === "application/xhtml+xml" ? Ie : ue, T = y(e, "ALLOWED_TAGS") ? r({}, e.ALLOWED_TAGS, p) : Ge, d = y(e, "ALLOWED_ATTR") ? r({}, e.ALLOWED_ATTR, p) : We, Le = y(e, "ALLOWED_NAMESPACES") ? r({}, e.ALLOWED_NAMESPACES, Ie) : Ut, Oe = y(e, "ADD_URI_SAFE_ATTR") ? r(I(Ke), e.ADD_URI_SAFE_ATTR, p) : Ke, $e = y(e, "ADD_DATA_URI_TAGS") ? r(I(qe), e.ADD_DATA_URI_TAGS, p) : qe, b = y(e, "FORBID_CONTENTS") ? r({}, e.FORBID_CONTENTS, p) : Re, j = y(e, "FORBID_TAGS") ? r({}, e.FORBID_TAGS, p) : I({}), _e = y(e, "FORBID_ATTR") ? r({}, e.FORBID_ATTR, p) : I({}), H = y(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Be = e.ALLOW_ARIA_ATTR !== !1, ge = e.ALLOW_DATA_ATTR !== !1, Ye = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Xe = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, U = e.SAFE_FOR_TEMPLATES || !1, ne = e.SAFE_FOR_XML !== !1, x = e.WHOLE_DOCUMENT || !1, F = e.RETURN_DOM || !1, oe = e.RETURN_DOM_FRAGMENT || !1, ie = e.RETURN_TRUSTED_TYPE || !1, he = e.FORCE_BODY || !1, je = e.SANITIZE_DOM !== !1, Ve = e.SANITIZE_NAMED_PROPS || !1, Se = e.KEEP_CONTENT !== !1, V = e.IN_PLACE || !1, ze = e.ALLOWED_URI_REGEXP || gt, z = e.NAMESPACE || C, se = e.MATHML_TEXT_INTEGRATION_POINTS || se, le = e.HTML_INTEGRATION_POINTS || le, u = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && Ze(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (u.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && Ze(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (u.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (u.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), U && (ge = !1), oe && (F = !0), H && (T = r({}, mt), d = [], H.html === !0 && (r(T, ut), r(d, pt)), H.svg === !0 && (r(T, Me), r(d, Pe), r(d, fe)), H.svgFilters === !0 && (r(T, we), r(d, Pe), r(d, fe)), H.mathMl === !0 && (r(T, xe), r(d, Tt), r(d, fe))), e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? k.tagCheck = e.ADD_TAGS : (T === Ge && (T = I(T)), r(T, e.ADD_TAGS, p))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? k.attributeCheck = e.ADD_ATTR : (d === We && (d = I(d)), r(d, e.ADD_ATTR, p))), e.ADD_URI_SAFE_ATTR && r(Oe, e.ADD_URI_SAFE_ATTR, p), e.FORBID_CONTENTS && (b === Re && (b = I(b)), r(b, e.FORBID_CONTENTS, p)), e.ADD_FORBID_CONTENTS && (b === Re && (b = I(b)), r(b, e.ADD_FORBID_CONTENTS, p)), Se && (T["#text"] = !0), x && r(T, ["html", "head", "body"]), T.table && (r(T, ["tbody"]), delete j.tbody), e.TRUSTED_TYPES_POLICY) {
254
+ if ((!e || typeof e != "object") && (e = {}), e = C(e), $ = // eslint-disable-next-line unicorn/prefer-includes
255
+ Ht.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? zt : e.PARSER_MEDIA_TYPE, p = $ === "application/xhtml+xml" ? Ie : pe, T = L(e, "ALLOWED_TAGS") ? r({}, e.ALLOWED_TAGS, p) : Ge, d = L(e, "ALLOWED_ATTR") ? r({}, e.ALLOWED_ATTR, p) : We, be = L(e, "ALLOWED_NAMESPACES") ? r({}, e.ALLOWED_NAMESPACES, Ie) : Ut, Oe = L(e, "ADD_URI_SAFE_ATTR") ? r(C(Ke), e.ADD_URI_SAFE_ATTR, p) : Ke, $e = L(e, "ADD_DATA_URI_TAGS") ? r(C(qe), e.ADD_DATA_URI_TAGS, p) : qe, y = L(e, "FORBID_CONTENTS") ? r({}, e.FORBID_CONTENTS, p) : De, j = L(e, "FORBID_TAGS") ? r({}, e.FORBID_TAGS, p) : C({}), ne = L(e, "FORBID_ATTR") ? r({}, e.FORBID_ATTR, p) : C({}), H = L(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Be = e.ALLOW_ARIA_ATTR !== !1, Ae = e.ALLOW_DATA_ATTR !== !1, Ye = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Xe = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, U = e.SAFE_FOR_TEMPLATES || !1, oe = e.SAFE_FOR_XML !== !1, P = e.WHOLE_DOCUMENT || !1, F = e.RETURN_DOM || !1, ie = e.RETURN_DOM_FRAGMENT || !1, ae = e.RETURN_TRUSTED_TYPE || !1, Se = e.FORCE_BODY || !1, je = e.SANITIZE_DOM !== !1, Ve = e.SANITIZE_NAMED_PROPS || !1, Re = e.KEEP_CONTENT !== !1, V = e.IN_PLACE || !1, ze = e.ALLOWED_URI_REGEXP || gt, z = e.NAMESPACE || I, le = e.MATHML_TEXT_INTEGRATION_POINTS || le, ce = e.HTML_INTEGRATION_POINTS || ce, u = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && Ze(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (u.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && Ze(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (u.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (u.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), U && (Ae = !1), ie && (F = !0), H && (T = r({}, mt), d = me(null), H.html === !0 && (r(T, ut), r(d, pt)), H.svg === !0 && (r(T, we), r(d, ke), r(d, ue)), H.svgFilters === !0 && (r(T, xe), r(d, ke), r(d, ue)), H.mathMl === !0 && (r(T, Pe), r(d, Tt), r(d, ue))), L(e, "ADD_TAGS") || (x.tagCheck = null), L(e, "ADD_ATTR") || (x.attributeCheck = null), e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? x.tagCheck = e.ADD_TAGS : (T === Ge && (T = C(T)), r(T, e.ADD_TAGS, p))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? x.attributeCheck = e.ADD_ATTR : (d === We && (d = C(d)), r(d, e.ADD_ATTR, p))), e.ADD_URI_SAFE_ATTR && r(Oe, e.ADD_URI_SAFE_ATTR, p), e.FORBID_CONTENTS && (y === De && (y = C(y)), r(y, e.FORBID_CONTENTS, p)), e.ADD_FORBID_CONTENTS && (y === De && (y = C(y)), r(y, e.ADD_FORBID_CONTENTS, p)), Re && (T["#text"] = !0), P && r(T, ["html", "head", "body"]), T.table && (r(T, ["tbody"]), delete j.tbody), e.TRUSTED_TYPES_POLICY) {
257
256
  if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
258
257
  throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
259
258
  if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -263,14 +262,14 @@ function ht() {
263
262
  g === void 0 && (g = un(ee, c)), g !== null && typeof X == "string" && (X = g.createHTML(""));
264
263
  S && S(e), G = e;
265
264
  }
266
- }, Je = r({}, [...Me, ...we, ...Qt]), Qe = r({}, [...xe, ...en]), Wt = function(e) {
265
+ }, Je = r({}, [...we, ...xe, ...Qt]), Qe = r({}, [...Pe, ...en]), Wt = function(e) {
267
266
  let t = te(e);
268
267
  (!t || !t.tagName) && (t = {
269
268
  namespaceURI: z,
270
269
  tagName: "template"
271
270
  });
272
- const n = ue(e.tagName), f = ue(t.tagName);
273
- return Le[e.namespaceURI] ? e.namespaceURI === re ? t.namespaceURI === C ? n === "svg" : t.namespaceURI === ae ? n === "svg" && (f === "annotation-xml" || se[f]) : !!Je[n] : e.namespaceURI === ae ? t.namespaceURI === C ? n === "math" : t.namespaceURI === re ? n === "math" && le[f] : !!Qe[n] : e.namespaceURI === C ? t.namespaceURI === re && !le[f] || t.namespaceURI === ae && !se[f] ? !1 : !Qe[n] && (Ft[n] || !Je[n]) : !!($ === "application/xhtml+xml" && Le[e.namespaceURI]) : !1;
271
+ const n = pe(e.tagName), f = pe(t.tagName);
272
+ return be[e.namespaceURI] ? e.namespaceURI === se ? t.namespaceURI === I ? n === "svg" : t.namespaceURI === re ? n === "svg" && (f === "annotation-xml" || le[f]) : !!Je[n] : e.namespaceURI === re ? t.namespaceURI === I ? n === "math" : t.namespaceURI === se ? n === "math" && ce[f] : !!Qe[n] : e.namespaceURI === I ? t.namespaceURI === se && !ce[f] || t.namespaceURI === re && !le[f] ? !1 : !Qe[n] && (Ft[n] || !Je[n]) : !!($ === "application/xhtml+xml" && be[e.namespaceURI]) : !1;
274
273
  }, N = function(e) {
275
274
  q(o.removed, {
276
275
  element: e
@@ -280,7 +279,7 @@ function ht() {
280
279
  } catch {
281
280
  Lt(e);
282
281
  }
283
- }, P = function(e, t) {
282
+ }, k = function(e, t) {
284
283
  try {
285
284
  q(o.removed, {
286
285
  attribute: t.getAttributeNode(e),
@@ -293,7 +292,7 @@ function ht() {
293
292
  });
294
293
  }
295
294
  if (t.removeAttribute(e), e === "is")
296
- if (F || oe)
295
+ if (F || ie)
297
296
  try {
298
297
  N(t);
299
298
  } catch {
@@ -305,28 +304,28 @@ function ht() {
305
304
  }
306
305
  }, et = function(e) {
307
306
  let t = null, n = null;
308
- if (he)
307
+ if (Se)
309
308
  e = "<remove></remove>" + e;
310
309
  else {
311
- const m = Ce(e, /^[\r\n\t ]+/);
310
+ const m = Me(e, /^[\r\n\t ]+/);
312
311
  n = m && m[0];
313
312
  }
314
- $ === "application/xhtml+xml" && z === C && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
313
+ $ === "application/xhtml+xml" && z === I && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
315
314
  const f = g ? g.createHTML(e) : e;
316
- if (z === C)
315
+ if (z === I)
317
316
  try {
318
- t = new Ot().parseFromString(f, $);
317
+ t = new Dt().parseFromString(f, $);
319
318
  } catch {
320
319
  }
321
320
  if (!t || !t.documentElement) {
322
- t = pe.createDocument(z, "template", null);
321
+ t = de.createDocument(z, "template", null);
323
322
  try {
324
- t.documentElement.innerHTML = De ? X : f;
323
+ t.documentElement.innerHTML = Le ? X : f;
325
324
  } catch {
326
325
  }
327
326
  }
328
327
  const _ = t.body || t.documentElement;
329
- return e && n && _.insertBefore(l.createTextNode(n), _.childNodes[0] || null), z === C ? Ct.call(t, x ? "html" : "body")[0] : x ? t.documentElement : _;
328
+ return e && n && _.insertBefore(l.createTextNode(n), _.childNodes[0] || null), z === I ? It.call(t, P ? "html" : "body")[0] : P ? t.documentElement : _;
330
329
  }, tt = function(e) {
331
330
  return Nt.call(
332
331
  e.ownerDocument || e,
@@ -335,53 +334,53 @@ function ht() {
335
334
  B.SHOW_ELEMENT | B.SHOW_COMMENT | B.SHOW_TEXT | B.SHOW_PROCESSING_INSTRUCTION | B.SHOW_CDATA_SECTION,
336
335
  null
337
336
  );
338
- }, be = function(e) {
337
+ }, Ne = function(e) {
339
338
  return e instanceof Rt && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof St) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
340
339
  }, nt = function(e) {
341
- return typeof me == "function" && e instanceof me;
340
+ return typeof Te == "function" && e instanceof Te;
342
341
  };
343
342
  function M(i, e, t) {
344
- ce(i, (n) => {
343
+ fe(i, (n) => {
345
344
  n.call(o, e, t, G);
346
345
  });
347
346
  }
348
347
  const ot = function(e) {
349
348
  let t = null;
350
- if (M(A.beforeSanitizeElements, e, null), be(e))
349
+ if (M(A.beforeSanitizeElements, e, null), Ne(e))
351
350
  return N(e), !0;
352
351
  const n = p(e.nodeName);
353
352
  if (M(A.uponSanitizeElement, e, {
354
353
  tagName: n,
355
354
  allowedTags: T
356
- }), ne && e.hasChildNodes() && !nt(e.firstElementChild) && h(/<[/\w!]/g, e.innerHTML) && h(/<[/\w!]/g, e.textContent) || e.nodeType === Q.progressingInstruction || ne && e.nodeType === Q.comment && h(/<[/\w]/g, e.data))
355
+ }), oe && e.hasChildNodes() && !nt(e.firstElementChild) && h(/<[/\w!]/g, e.innerHTML) && h(/<[/\w!]/g, e.textContent) || e.nodeType === Q.progressingInstruction || oe && e.nodeType === Q.comment && h(/<[/\w]/g, e.data))
357
356
  return N(e), !0;
358
- if (!(k.tagCheck instanceof Function && k.tagCheck(n)) && (!T[n] || j[n])) {
357
+ if (!(x.tagCheck instanceof Function && x.tagCheck(n)) && (!T[n] || j[n])) {
359
358
  if (!j[n] && at(n) && (u.tagNameCheck instanceof RegExp && h(u.tagNameCheck, n) || u.tagNameCheck instanceof Function && u.tagNameCheck(n)))
360
359
  return !1;
361
- if (Se && !b[n]) {
362
- const f = te(e) || e.parentNode, _ = bt(e) || e.childNodes;
360
+ if (Re && !y[n]) {
361
+ const f = te(e) || e.parentNode, _ = yt(e) || e.childNodes;
363
362
  if (_ && f) {
364
363
  const m = _.length;
365
- for (let D = m - 1; D >= 0; --D) {
366
- const w = Dt(_[D], !0);
367
- w.__removalCount = (e.__removalCount || 0) + 1, f.insertBefore(w, yt(e));
364
+ for (let O = m - 1; O >= 0; --O) {
365
+ const w = Ot(_[O], !0);
366
+ w.__removalCount = (e.__removalCount || 0) + 1, f.insertBefore(w, bt(e));
368
367
  }
369
368
  }
370
369
  }
371
370
  return N(e), !0;
372
371
  }
373
- return e instanceof Fe && !Wt(e) || (n === "noscript" || n === "noembed" || n === "noframes") && h(/<\/no(script|embed|frames)/i, e.innerHTML) ? (N(e), !0) : (U && e.nodeType === Q.text && (t = e.textContent, ce([Te, de, Ee], (f) => {
372
+ return e instanceof Fe && !Wt(e) || (n === "noscript" || n === "noembed" || n === "noframes") && h(/<\/no(script|embed|frames)/i, e.innerHTML) ? (N(e), !0) : (U && e.nodeType === Q.text && (t = e.textContent, fe([Ee, _e, ge], (f) => {
374
373
  t = K(t, f, " ");
375
374
  }), e.textContent !== t && (q(o.removed, {
376
375
  element: e.cloneNode()
377
376
  }), e.textContent = t)), M(A.afterSanitizeElements, e, null), !1);
378
377
  }, it = function(e, t, n) {
379
- if (je && (t === "id" || t === "name") && (n in l || n in Gt))
378
+ if (ne[t] || je && (t === "id" || t === "name") && (n in l || n in Gt))
380
379
  return !1;
381
- if (!(ge && !_e[t] && h(wt, t))) {
380
+ if (!(Ae && !ne[t] && h(wt, t))) {
382
381
  if (!(Be && h(xt, t))) {
383
- if (!(k.attributeCheck instanceof Function && k.attributeCheck(t, e))) {
384
- if (!d[t] || _e[t]) {
382
+ if (!(x.attributeCheck instanceof Function && x.attributeCheck(t, e))) {
383
+ if (!d[t] || ne[t]) {
385
384
  if (
386
385
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
387
386
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
@@ -405,13 +404,13 @@ function ht() {
405
404
  }
406
405
  return !0;
407
406
  }, at = function(e) {
408
- return e !== "annotation-xml" && Ce(e, vt);
407
+ return e !== "annotation-xml" && Me(e, kt);
409
408
  }, rt = function(e) {
410
409
  M(A.beforeSanitizeAttributes, e, null);
411
410
  const {
412
411
  attributes: t
413
412
  } = e;
414
- if (!t || be(e))
413
+ if (!t || Ne(e))
415
414
  return;
416
415
  const n = {
417
416
  attrName: "",
@@ -424,37 +423,37 @@ function ht() {
424
423
  for (; f--; ) {
425
424
  const _ = t[f], {
426
425
  name: m,
427
- namespaceURI: D,
426
+ namespaceURI: O,
428
427
  value: w
429
- } = _, W = p(m), Ne = w;
430
- let E = m === "value" ? Ne : Kt(Ne);
431
- if (n.attrName = W, n.attrValue = E, n.keepAttr = !0, n.forceKeepAttr = void 0, M(A.uponSanitizeAttribute, e, n), E = n.attrValue, Ve && (W === "id" || W === "name") && (P(m, e), E = kt + E), ne && h(/((--!?|])>)|<\/(style|title|textarea)/i, E)) {
432
- P(m, e);
428
+ } = _, W = p(m), Ce = w;
429
+ let E = m === "value" ? Ce : Kt(Ce);
430
+ if (n.attrName = W, n.attrValue = E, n.keepAttr = !0, n.forceKeepAttr = void 0, M(A.uponSanitizeAttribute, e, n), E = n.attrValue, Ve && (W === "id" || W === "name") && (k(m, e), E = vt + E), oe && h(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, E)) {
431
+ k(m, e);
433
432
  continue;
434
433
  }
435
- if (W === "attributename" && Ce(E, "href")) {
436
- P(m, e);
434
+ if (W === "attributename" && Me(E, "href")) {
435
+ k(m, e);
437
436
  continue;
438
437
  }
439
438
  if (n.forceKeepAttr)
440
439
  continue;
441
440
  if (!n.keepAttr) {
442
- P(m, e);
441
+ k(m, e);
443
442
  continue;
444
443
  }
445
444
  if (!Xe && h(/\/>/i, E)) {
446
- P(m, e);
445
+ k(m, e);
447
446
  continue;
448
447
  }
449
- U && ce([Te, de, Ee], (lt) => {
448
+ U && fe([Ee, _e, ge], (lt) => {
450
449
  E = K(E, lt, " ");
451
450
  });
452
451
  const st = p(e.nodeName);
453
452
  if (!it(st, W, E)) {
454
- P(m, e);
453
+ k(m, e);
455
454
  continue;
456
455
  }
457
- if (g && typeof ee == "object" && typeof ee.getAttributeType == "function" && !D)
456
+ if (g && typeof ee == "object" && typeof ee.getAttributeType == "function" && !O)
458
457
  switch (ee.getAttributeType(st, W)) {
459
458
  case "TrustedHTML": {
460
459
  E = g.createHTML(E);
@@ -465,11 +464,11 @@ function ht() {
465
464
  break;
466
465
  }
467
466
  }
468
- if (E !== Ne)
467
+ if (E !== Ce)
469
468
  try {
470
- D ? e.setAttributeNS(D, m, E) : e.setAttribute(m, E), be(e) ? N(e) : ft(o.removed);
469
+ O ? e.setAttributeNS(O, m, E) : e.setAttribute(m, E), Ne(e) ? N(e) : ft(o.removed);
471
470
  } catch {
472
- P(m, e);
471
+ k(m, e);
473
472
  }
474
473
  }
475
474
  M(A.afterSanitizeAttributes, e, null);
@@ -477,12 +476,12 @@ function ht() {
477
476
  let t = null;
478
477
  const n = tt(e);
479
478
  for (M(A.beforeSanitizeShadowDOM, e, null); t = n.nextNode(); )
480
- M(A.uponSanitizeShadowNode, t, null), ot(t), rt(t), t.content instanceof O && i(t.content);
479
+ M(A.uponSanitizeShadowNode, t, null), ot(t), rt(t), t.content instanceof D && i(t.content);
481
480
  M(A.afterSanitizeShadowDOM, e, null);
482
481
  };
483
482
  return o.sanitize = function(i) {
484
483
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null, n = null, f = null, _ = null;
485
- if (De = !i, De && (i = "<!-->"), typeof i != "string" && !nt(i))
484
+ if (Le = !i, Le && (i = "<!-->"), typeof i != "string" && !nt(i))
486
485
  if (typeof i.toString == "function") {
487
486
  if (i = i.toString(), typeof i != "string")
488
487
  throw Z("dirty is not a string, aborting");
@@ -490,45 +489,45 @@ function ht() {
490
489
  throw Z("toString is not a function");
491
490
  if (!o.isSupported)
492
491
  return i;
493
- if (Ae || ye(e), o.removed = [], typeof i == "string" && (V = !1), V) {
492
+ if (he || ye(e), o.removed = [], typeof i == "string" && (V = !1), V) {
494
493
  if (i.nodeName) {
495
494
  const w = p(i.nodeName);
496
495
  if (!T[w] || j[w])
497
496
  throw Z("root node is forbidden and cannot be sanitized in-place");
498
497
  }
499
- } else if (i instanceof me)
498
+ } else if (i instanceof Te)
500
499
  t = et("<!---->"), n = t.ownerDocument.importNode(i, !0), n.nodeType === Q.element && n.nodeName === "BODY" || n.nodeName === "HTML" ? t = n : t.appendChild(n);
501
500
  else {
502
- if (!F && !U && !x && // eslint-disable-next-line unicorn/prefer-includes
501
+ if (!F && !U && !P && // eslint-disable-next-line unicorn/prefer-includes
503
502
  i.indexOf("<") === -1)
504
- return g && ie ? g.createHTML(i) : i;
503
+ return g && ae ? g.createHTML(i) : i;
505
504
  if (t = et(i), !t)
506
- return F ? null : ie ? X : "";
505
+ return F ? null : ae ? X : "";
507
506
  }
508
- t && he && N(t.firstChild);
507
+ t && Se && N(t.firstChild);
509
508
  const m = tt(V ? i : t);
510
509
  for (; f = m.nextNode(); )
511
- ot(f), rt(f), f.content instanceof O && Bt(f.content);
510
+ ot(f), rt(f), f.content instanceof D && Bt(f.content);
512
511
  if (V)
513
512
  return i;
514
513
  if (F) {
515
- if (oe)
516
- for (_ = It.call(t.ownerDocument); t.firstChild; )
514
+ if (ie)
515
+ for (_ = Ct.call(t.ownerDocument); t.firstChild; )
517
516
  _.appendChild(t.firstChild);
518
517
  else
519
518
  _ = t;
520
519
  return (d.shadowroot || d.shadowrootmode) && (_ = Mt.call(a, _, !0)), _;
521
520
  }
522
- let D = x ? t.outerHTML : t.innerHTML;
523
- return x && T["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && h(At, t.ownerDocument.doctype.name) && (D = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
524
- ` + D), U && ce([Te, de, Ee], (w) => {
525
- D = K(D, w, " ");
526
- }), g && ie ? g.createHTML(D) : D;
521
+ let O = P ? t.outerHTML : t.innerHTML;
522
+ return P && T["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && h(At, t.ownerDocument.doctype.name) && (O = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
523
+ ` + O), U && fe([Ee, _e, ge], (w) => {
524
+ O = K(O, w, " ");
525
+ }), g && ae ? g.createHTML(O) : O;
527
526
  }, o.setConfig = function() {
528
527
  let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
529
- ye(i), Ae = !0;
528
+ ye(i), he = !0;
530
529
  }, o.clearConfig = function() {
531
- G = null, Ae = !1;
530
+ G = null, he = !1;
532
531
  }, o.isValidAttribute = function(i, e, t) {
533
532
  G || ye({});
534
533
  const n = p(i), f = p(e);
@@ -0,0 +1,2 @@
1
+ export declare const convertLegacyMathDelimiters: (input: string) => string;
2
+ //# sourceMappingURL=convert-legacy-math-delimiters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convert-legacy-math-delimiters.d.ts","sourceRoot":"","sources":["../../lib/utils/convert-legacy-math-delimiters.ts"],"names":[],"mappings":"AAmCA,eAAO,MAAM,2BAA2B,GAAI,OAAO,MAAM,WAQxD,CAAC"}
@@ -0,0 +1,13 @@
1
+ const r = (t) => t.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), o = (t) => `<span data-type="inline-math" data-latex="${r(t.trim())}"></span>`, p = (t) => `<div data-type="block-math" data-latex="${r(t.trim())}"></div>`, s = (t) => /\\[a-zA-Z]+|[_^]/.test(t), g = /\\\(([^\n]+?)\\\)|\\\[([^\n]+?)\\\]|\[([^\n]+?)\]|\(([^\n]+?)\)/g, d = (t) => t.replace(g, (e, n, a, l, c) => {
2
+ const i = n || a || l || c || "";
3
+ return !!!(n || a) && !s(i) ? e : o(i);
4
+ }), m = (t) => t.split(/(<[^>]+>)/g).map((e) => e.startsWith("<") ? e : d(e)).join(""), x = (t) => {
5
+ const e = t.replace(
6
+ /(^|\n)[ \t]*(?:\\\[|\[)([\s\S]*?)(?:\\\]|\])[ \t]*(?=\n|$)/g,
7
+ (n, a, l) => s(l) ? `${a}${p(l)}` : n
8
+ );
9
+ return m(e);
10
+ };
11
+ export {
12
+ x as convertLegacyMathDelimiters
13
+ };