@sakura-ui/sakura-ui 0.5.4 → 0.5.6

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 (30) hide show
  1. package/package.json +4 -4
  2. package/packages/core/package.json +1 -1
  3. package/packages/core/src/components/Link.tsx +17 -0
  4. package/packages/core/tests/Link.test.tsx +41 -0
  5. package/packages/forms/.turbo/turbo-build.log +2 -2
  6. package/packages/helper/.turbo/turbo-build.log +1 -1
  7. package/packages/markdown/.turbo/turbo-build.log +5 -5
  8. package/packages/markdown/README.md +17 -1
  9. package/packages/markdown/dist/index.cjs.js +110 -43
  10. package/packages/markdown/dist/index.es.js +862 -744
  11. package/packages/markdown/dist/types/decorate.d.ts.map +1 -1
  12. package/packages/markdown/dist/types/marked/directives/image.d.ts +3 -0
  13. package/packages/markdown/dist/types/marked/directives/image.d.ts.map +1 -0
  14. package/packages/markdown/dist/types/marked/directives/index.d.ts.map +1 -1
  15. package/packages/markdown/dist/types/marked/html.d.ts.map +1 -1
  16. package/packages/markdown/dist/types/marked/registry.d.ts.map +1 -1
  17. package/packages/markdown/dist/types/sanitize.d.ts.map +1 -1
  18. package/packages/markdown/package.json +1 -1
  19. package/packages/markdown/src/decorate.ts +25 -9
  20. package/packages/markdown/src/marked/directives/image.ts +29 -0
  21. package/packages/markdown/src/marked/directives/index.ts +2 -0
  22. package/packages/markdown/src/marked/html.ts +14 -1
  23. package/packages/markdown/src/marked/registry.ts +1 -0
  24. package/packages/markdown/src/marked/renderer.ts +3 -3
  25. package/packages/markdown/src/sanitize.ts +9 -2
  26. package/packages/markdown/tests/Markdown.test.tsx +17 -0
  27. package/packages/markdown/tests/__snapshots__/Markdown.test.tsx.snap +36 -31
  28. package/packages/markdown/tests/image.test.ts +64 -0
  29. package/packages/markdown/tests/sanitize.test.ts +17 -0
  30. package/packages/tailwind-theme-plugin/.turbo/turbo-build.log +1 -1
@@ -1,24 +1,24 @@
1
- import { styles as E, Ul as Er, Link as ss } from "@sakura-ui/core";
2
- import St from "react";
1
+ import { styles as E, Ul as br, Link as is } from "@sakura-ui/core";
2
+ import Rt from "react";
3
3
  var _t = { exports: {} }, et = {};
4
4
  var Zn;
5
- function is() {
5
+ function os() {
6
6
  if (Zn) return et;
7
7
  Zn = 1;
8
8
  var t = /* @__PURE__ */ Symbol.for("react.transitional.element"), e = /* @__PURE__ */ Symbol.for("react.fragment");
9
- function n(r, s, u) {
9
+ function n(r, s, o) {
10
10
  var l = null;
11
- if (u !== void 0 && (l = "" + u), s.key !== void 0 && (l = "" + s.key), "key" in s) {
12
- u = {};
13
- for (var o in s)
14
- o !== "key" && (u[o] = s[o]);
15
- } else u = s;
16
- return s = u.ref, {
11
+ if (o !== void 0 && (l = "" + o), s.key !== void 0 && (l = "" + s.key), "key" in s) {
12
+ o = {};
13
+ for (var u in s)
14
+ u !== "key" && (o[u] = s[u]);
15
+ } else o = s;
16
+ return s = o.ref, {
17
17
  $$typeof: t,
18
18
  type: r,
19
19
  key: l,
20
20
  ref: s !== void 0 ? s : null,
21
- props: u
21
+ props: o
22
22
  };
23
23
  }
24
24
  return et.Fragment = e, et.jsx = n, et.jsxs = n, et;
@@ -50,7 +50,7 @@ function us() {
50
50
  switch (typeof f.tag == "number" && console.error(
51
51
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
52
52
  ), f.$$typeof) {
53
- case G:
53
+ case q:
54
54
  return "Portal";
55
55
  case ne:
56
56
  return f.displayName || "Context";
@@ -59,7 +59,7 @@ function us() {
59
59
  case Q:
60
60
  var C = f.render;
61
61
  return f = f.displayName, f || (f = C.displayName || C.name || "", f = f !== "" ? "ForwardRef(" + f + ")" : "ForwardRef"), f;
62
- case We:
62
+ case Ge:
63
63
  return C = f.displayName || null, C !== null ? C : t(f.type) || "Memo";
64
64
  case M:
65
65
  C = f._payload, f = f._init;
@@ -105,7 +105,7 @@ function us() {
105
105
  var f = Oe.A;
106
106
  return f === null ? null : f.getOwner();
107
107
  }
108
- function u() {
108
+ function o() {
109
109
  return Error("react-stack-top-frame");
110
110
  }
111
111
  function l(f) {
@@ -115,9 +115,9 @@ function us() {
115
115
  }
116
116
  return f.key !== void 0;
117
117
  }
118
- function o(f, C) {
118
+ function u(f, C) {
119
119
  function S() {
120
- ft || (ft = !0, console.error(
120
+ ht || (ht = !0, console.error(
121
121
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
122
122
  C
123
123
  ));
@@ -129,7 +129,7 @@ function us() {
129
129
  }
130
130
  function c() {
131
131
  var f = t(this.type);
132
- return ht[f] || (ht[f] = !0, console.error(
132
+ return dt[f] || (dt[f] = !0, console.error(
133
133
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
134
134
  )), f = this.props.ref, f !== void 0 ? f : null;
135
135
  }
@@ -170,7 +170,7 @@ function us() {
170
170
  var $ = C.children;
171
171
  if ($ !== void 0)
172
172
  if (b)
173
- if (pt($)) {
173
+ if (ft($)) {
174
174
  for (b = 0; b < $.length; b++)
175
175
  m($[b]);
176
176
  Object.freeze && Object.freeze($);
@@ -181,8 +181,8 @@ function us() {
181
181
  else m($);
182
182
  if (de.call(C, "key")) {
183
183
  $ = t(f);
184
- var De = Object.keys(C).filter(function(It) {
185
- return It !== "key";
184
+ var De = Object.keys(C).filter(function(Pt) {
185
+ return Pt !== "key";
186
186
  });
187
187
  b = 0 < De.length ? "{key: someKey, " + De.join(": ..., ") + ": ...}" : "{key: someKey}", Ze[$ + b] || (De = 0 < De.length ? "{" + De.join(": ..., ") + ": ...}" : "{}", console.error(
188
188
  `A props object containing a "key" prop is being spread into JSX:
@@ -202,7 +202,7 @@ React keys must be passed directly to JSX without using spread:
202
202
  for (var Ve in C)
203
203
  Ve !== "key" && (S[Ve] = C[Ve]);
204
204
  } else S = C;
205
- return $ && o(
205
+ return $ && u(
206
206
  S,
207
207
  typeof f == "function" ? f.displayName || f.name || "Unknown" : f
208
208
  ), h(
@@ -220,18 +220,18 @@ React keys must be passed directly to JSX without using spread:
220
220
  function k(f) {
221
221
  return typeof f == "object" && f !== null && f.$$typeof === T;
222
222
  }
223
- var O = St, T = /* @__PURE__ */ Symbol.for("react.transitional.element"), G = /* @__PURE__ */ Symbol.for("react.portal"), U = /* @__PURE__ */ Symbol.for("react.fragment"), te = /* @__PURE__ */ Symbol.for("react.strict_mode"), be = /* @__PURE__ */ Symbol.for("react.profiler"), ke = /* @__PURE__ */ Symbol.for("react.consumer"), ne = /* @__PURE__ */ Symbol.for("react.context"), Q = /* @__PURE__ */ Symbol.for("react.forward_ref"), K = /* @__PURE__ */ Symbol.for("react.suspense"), Ce = /* @__PURE__ */ Symbol.for("react.suspense_list"), We = /* @__PURE__ */ Symbol.for("react.memo"), M = /* @__PURE__ */ Symbol.for("react.lazy"), fe = /* @__PURE__ */ Symbol.for("react.activity"), Ye = /* @__PURE__ */ Symbol.for("react.client.reference"), Oe = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, de = Object.prototype.hasOwnProperty, pt = Array.isArray, ue = console.createTask ? console.createTask : function() {
223
+ var L = Rt, T = /* @__PURE__ */ Symbol.for("react.transitional.element"), q = /* @__PURE__ */ Symbol.for("react.portal"), U = /* @__PURE__ */ Symbol.for("react.fragment"), te = /* @__PURE__ */ Symbol.for("react.strict_mode"), be = /* @__PURE__ */ Symbol.for("react.profiler"), ke = /* @__PURE__ */ Symbol.for("react.consumer"), ne = /* @__PURE__ */ Symbol.for("react.context"), Q = /* @__PURE__ */ Symbol.for("react.forward_ref"), K = /* @__PURE__ */ Symbol.for("react.suspense"), Ce = /* @__PURE__ */ Symbol.for("react.suspense_list"), Ge = /* @__PURE__ */ Symbol.for("react.memo"), M = /* @__PURE__ */ Symbol.for("react.lazy"), fe = /* @__PURE__ */ Symbol.for("react.activity"), Ye = /* @__PURE__ */ Symbol.for("react.client.reference"), Oe = L.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, de = Object.prototype.hasOwnProperty, ft = Array.isArray, ue = console.createTask ? console.createTask : function() {
224
224
  return null;
225
225
  };
226
- O = {
226
+ L = {
227
227
  react_stack_bottom_frame: function(f) {
228
228
  return f();
229
229
  }
230
230
  };
231
- var ft, ht = {}, xe = O.react_stack_bottom_frame.bind(
232
- O,
233
- u
234
- )(), Le = ue(r(u)), Ze = {};
231
+ var ht, dt = {}, xe = L.react_stack_bottom_frame.bind(
232
+ L,
233
+ o
234
+ )(), Le = ue(r(o)), Ze = {};
235
235
  tt.Fragment = U, tt.jsx = function(f, C, S) {
236
236
  var b = 1e4 > Oe.recentlyCreatedOwnerStacks++;
237
237
  return g(
@@ -256,15 +256,15 @@ React keys must be passed directly to JSX without using spread:
256
256
  })()), tt;
257
257
  }
258
258
  var Vn;
259
- function os() {
260
- return Vn || (Vn = 1, process.env.NODE_ENV === "production" ? _t.exports = is() : _t.exports = us()), _t.exports;
259
+ function ls() {
260
+ return Vn || (Vn = 1, process.env.NODE_ENV === "production" ? _t.exports = os() : _t.exports = us()), _t.exports;
261
261
  }
262
- var ee = os();
262
+ var ee = ls();
263
263
  function pn() {
264
264
  return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
265
265
  }
266
266
  var ve = pn();
267
- function br(t) {
267
+ function kr(t) {
268
268
  ve = t;
269
269
  }
270
270
  var Re = { exec: () => null };
@@ -276,21 +276,21 @@ function je(t) {
276
276
  };
277
277
  }
278
278
  function x(t, e = "") {
279
- let n = typeof t == "string" ? t : t.source, r = { replace: (s, u) => {
280
- let l = typeof u == "string" ? u : u.source;
279
+ let n = typeof t == "string" ? t : t.source, r = { replace: (s, o) => {
280
+ let l = typeof o == "string" ? o : o.source;
281
281
  return l = l.replace(H.caret, "$1"), n = n.replace(s, l), r;
282
282
  }, getRegex: () => new RegExp(n, e) };
283
283
  return r;
284
284
  }
285
- var ls = ((t = "") => {
285
+ var as = ((t = "") => {
286
286
  try {
287
287
  return !!new RegExp("(?<=1)(?<!1)" + t);
288
288
  } catch {
289
289
  return !1;
290
290
  }
291
- })(), H = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (t) => new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: je((t) => new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: je((t) => new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: je((t) => new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)), headingBeginRegex: je((t) => new RegExp(`^ {0,${t}}#`)), htmlBeginRegex: je((t) => new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: je((t) => new RegExp(`^ {0,${t}}>`)) }, as = /^(?:[ \t]*(?:\n|$))+/, cs = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ps = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, at = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, fs = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, fn = / {0,3}(?:[*+-]|\d{1,9}[.)])/, kr = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Cr = x(kr).replace(/bull/g, fn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), hs = x(kr).replace(/bull/g, fn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), hn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, ds = /^[^\n]+/, dn = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Ds = x(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", dn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), gs = x(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, fn).getRegex(), $t = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Dn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, ms = x("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Dn).replace("tag", $t).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), xr = (t) => x(hn).replace("hr", at).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", t).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", $t).getRegex(), Fs = xr(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), As = xr(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), Es = x(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", As).getRegex(), gn = { blockquote: Es, code: cs, def: Ds, fences: ps, heading: fs, hr: at, html: ms, lheading: Cr, list: gs, newline: as, paragraph: Fs, table: Re, text: ds }, Qn = x("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", at).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", $t).getRegex(), bs = { ...gn, lheading: hs, table: Qn, paragraph: x(hn).replace("hr", at).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Qn).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", $t).getRegex() }, ks = { ...gn, html: x(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Dn).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: Re, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: x(hn).replace("hr", at).replace("heading", ` *#{1,6} *[^
292
- ]`).replace("lheading", Cr).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Cs = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, xs = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Tr = /^( {2,}|\\)\n(?!\s*$)/, Ts = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, he = /[\p{P}\p{S}]/u, Ge = /[\s\p{P}\p{S}]/u, ct = /[^\s\p{P}\p{S}]/u, _s = x(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ge).getRegex(), ys = /[\p{Pi}\p{Ps}"']/u, _r = /(?!~)[\p{P}\p{S}]/u, ws = /(?!~)[\s\p{P}\p{S}]/u, Ss = /(?:[^\s\p{P}\p{S}]|~)/u, Rs = x(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", ls ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), yr = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Bs = x(yr, "u").replace(/punct/g, he).getRegex(), vs = x(yr, "u").replace(/punct/g, _r).getRegex(), Os = /^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, Ls = x(Os, "u").replace(/openQuote/g, ys).replace(/punct/g, he).getRegex(), wr = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", $s = x(wr, "gu").replace(/notPunctSpace/g, ct).replace(/punctSpace/g, Ge).replace(/punct/g, he).getRegex(), Is = x(wr, "gu").replace(/notPunctSpace/g, Ss).replace(/punctSpace/g, ws).replace(/punct/g, _r).getRegex(), Ps = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", Ns = x(Ps, "gu").replace(/notPunctSpace/g, ct).replace(/punctSpace/g, Ge).replace(/punct/g, he).getRegex(), Ms = x("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ct).replace(/punctSpace/g, Ge).replace(/punct/g, he).getRegex(), zs = "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", Us = x(zs, "gu").replace(/notPunctSpace/g, ct).replace(/punctSpace/g, Ge).replace(/punct/g, he).getRegex(), js = x(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, he).getRegex(), Hs = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", qs = x(Hs, "gu").replace(/notPunctSpace/g, ct).replace(/punctSpace/g, Ge).replace(/punct/g, he).getRegex(), Gs = x(/\\(punct)/, "gu").replace(/punct/g, he).getRegex(), Ws = x(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Ys = x(Dn).replace("(?:-->|$)", "-->").getRegex(), Zs = x("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Ys).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Rt = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, Xs = x(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Rt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Sr = x(/^!?\[(label)\]\[(ref)\]/).replace("label", Rt).replace("ref", dn).getRegex(), Rr = x(/^!?\[(ref)\](?:\[\])?/).replace("ref", dn).getRegex(), Vs = x("reflink|nolink(?!\\()", "g").replace("reflink", Sr).replace("nolink", Rr).getRegex(), Kn = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, mn = { _backpedal: Re, anyPunctuation: Gs, autolink: Ws, blockSkip: Rs, br: Tr, code: xs, del: Re, delLDelim: Re, delRDelim: Re, emStrongLDelim: Bs, emStrongRDelimAst: $s, emStrongRDelimUnd: Ms, escape: Cs, link: Xs, nolink: Rr, punctuation: _s, reflink: Sr, reflinkSearch: Vs, tag: Zs, text: Ts, url: Re }, Qs = { ...mn, emStrongLDelim: Ls, emStrongRDelimAst: Ns, emStrongRDelimUnd: Us, link: x(/^!?\[(label)\]\((.*?)\)/).replace("label", Rt).getRegex(), reflink: x(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Rt).getRegex() }, un = { ...mn, emStrongRDelimAst: Is, emStrongLDelim: vs, delLDelim: js, delRDelim: qs, url: x(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Kn).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: x(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Kn).getRegex() }, Ks = { ...un, br: x(Tr).replace("{2,}", "*").getRegex(), text: x(un.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, yt = { normal: gn, gfm: bs, pedantic: ks }, nt = { normal: mn, gfm: un, breaks: Ks, pedantic: Qs }, Js = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Jn = (t) => Js[t];
293
- function ce(t, e) {
291
+ })(), H = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (t) => new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: je((t) => new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: je((t) => new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: je((t) => new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)), headingBeginRegex: je((t) => new RegExp(`^ {0,${t}}#`)), htmlBeginRegex: je((t) => new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: je((t) => new RegExp(`^ {0,${t}}>`)) }, cs = /^(?:[ \t]*(?:\n|$))+/, ps = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, fs = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ct = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, hs = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, fn = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Cr = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, xr = x(Cr).replace(/bull/g, fn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), ds = x(Cr).replace(/bull/g, fn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), hn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, Ds = /^[^\n]+/, dn = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, gs = x(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", dn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ms = x(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, fn).getRegex(), $t = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Dn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Fs = x("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Dn).replace("tag", $t).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Tr = (t) => x(hn).replace("hr", ct).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", t).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", $t).getRegex(), As = Tr(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), Es = Tr(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), bs = x(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Es).getRegex(), gn = { blockquote: bs, code: ps, def: gs, fences: fs, heading: hs, hr: ct, html: Fs, lheading: xr, list: ms, newline: cs, paragraph: As, table: Re, text: Ds }, Qn = x("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", ct).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", $t).getRegex(), ks = { ...gn, lheading: ds, table: Qn, paragraph: x(hn).replace("hr", ct).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Qn).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", $t).getRegex() }, Cs = { ...gn, html: x(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Dn).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: Re, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: x(hn).replace("hr", ct).replace("heading", ` *#{1,6} *[^
292
+ ]`).replace("lheading", xr).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, xs = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ts = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, yr = /^( {2,}|\\)\n(?!\s*$)/, ys = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, he = /[\p{P}\p{S}]/u, qe = /[\s\p{P}\p{S}]/u, pt = /[^\s\p{P}\p{S}]/u, _s = x(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, qe).getRegex(), ws = /[\p{Pi}\p{Ps}"']/u, _r = /(?!~)[\p{P}\p{S}]/u, Ss = /(?!~)[\s\p{P}\p{S}]/u, Rs = /(?:[^\s\p{P}\p{S}]|~)/u, Bs = x(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", as ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), wr = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, vs = x(wr, "u").replace(/punct/g, he).getRegex(), Os = x(wr, "u").replace(/punct/g, _r).getRegex(), Ls = /^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, $s = x(Ls, "u").replace(/openQuote/g, ws).replace(/punct/g, he).getRegex(), Sr = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ps = x(Sr, "gu").replace(/notPunctSpace/g, pt).replace(/punctSpace/g, qe).replace(/punct/g, he).getRegex(), Is = x(Sr, "gu").replace(/notPunctSpace/g, Rs).replace(/punctSpace/g, Ss).replace(/punct/g, _r).getRegex(), Ns = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", Ms = x(Ns, "gu").replace(/notPunctSpace/g, pt).replace(/punctSpace/g, qe).replace(/punct/g, he).getRegex(), zs = x("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, pt).replace(/punctSpace/g, qe).replace(/punct/g, he).getRegex(), Us = "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", js = x(Us, "gu").replace(/notPunctSpace/g, pt).replace(/punctSpace/g, qe).replace(/punct/g, he).getRegex(), Hs = x(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, he).getRegex(), Ws = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", qs = x(Ws, "gu").replace(/notPunctSpace/g, pt).replace(/punctSpace/g, qe).replace(/punct/g, he).getRegex(), Gs = x(/\\(punct)/, "gu").replace(/punct/g, he).getRegex(), Ys = x(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Zs = x(Dn).replace("(?:-->|$)", "-->").getRegex(), Xs = x("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Zs).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Bt = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, Vs = x(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Bt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Rr = x(/^!?\[(label)\]\[(ref)\]/).replace("label", Bt).replace("ref", dn).getRegex(), Br = x(/^!?\[(ref)\](?:\[\])?/).replace("ref", dn).getRegex(), Qs = x("reflink|nolink(?!\\()", "g").replace("reflink", Rr).replace("nolink", Br).getRegex(), Kn = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, mn = { _backpedal: Re, anyPunctuation: Gs, autolink: Ys, blockSkip: Bs, br: yr, code: Ts, del: Re, delLDelim: Re, delRDelim: Re, emStrongLDelim: vs, emStrongRDelimAst: Ps, emStrongRDelimUnd: zs, escape: xs, link: Vs, nolink: Br, punctuation: _s, reflink: Rr, reflinkSearch: Qs, tag: Xs, text: ys, url: Re }, Ks = { ...mn, emStrongLDelim: $s, emStrongRDelimAst: Ms, emStrongRDelimUnd: js, link: x(/^!?\[(label)\]\((.*?)\)/).replace("label", Bt).getRegex(), reflink: x(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Bt).getRegex() }, on = { ...mn, emStrongRDelimAst: Is, emStrongLDelim: Os, delLDelim: Hs, delRDelim: qs, url: x(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Kn).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: x(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Kn).getRegex() }, Js = { ...on, br: x(yr).replace("{2,}", "*").getRegex(), text: x(on.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, wt = { normal: gn, gfm: ks, pedantic: Cs }, nt = { normal: mn, gfm: on, breaks: Js, pedantic: Ks }, ei = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Jn = (t) => ei[t];
293
+ function pe(t, e) {
294
294
  if (e) {
295
295
  if (H.escapeTest.test(t)) return t.replace(H.escapeReplace, Jn);
296
296
  } else if (H.escapeTestNoEncode.test(t)) return t.replace(H.escapeReplaceNoEncode, Jn);
@@ -305,9 +305,9 @@ function er(t) {
305
305
  return t;
306
306
  }
307
307
  function tr(t, e) {
308
- let n = t.replace(H.findPipe, (u, l, o) => {
308
+ let n = t.replace(H.findPipe, (o, l, u) => {
309
309
  let c = !1, h = l;
310
- for (; --h >= 0 && o[h] === "\\"; ) c = !c;
310
+ for (; --h >= 0 && u[h] === "\\"; ) c = !c;
311
311
  return c ? "|" : " |";
312
312
  }), r = n.split(H.splitPipe), s = 0;
313
313
  if (r[0].trim() || r.shift(), r.length > 0 && !r.at(-1)?.trim() && r.pop(), e) if (r.length > e) r.splice(e);
@@ -330,7 +330,7 @@ function nr(t) {
330
330
  return e.length - n <= 2 ? t : e.slice(0, n + 1).join(`
331
331
  `);
332
332
  }
333
- function ei(t, e) {
333
+ function ti(t, e) {
334
334
  if (t.indexOf(e[1]) === -1) return -1;
335
335
  let n = 0;
336
336
  for (let r = 0; r < t.length; r++) if (t[r] === "\\") r++;
@@ -338,34 +338,34 @@ function ei(t, e) {
338
338
  else if (t[r] === e[1] && (n--, n < 0)) return r;
339
339
  return n > 0 ? -2 : -1;
340
340
  }
341
- function ti(t, e = 0) {
341
+ function ni(t, e = 0) {
342
342
  let n = e, r = "";
343
343
  for (let s of t) if (s === " ") {
344
- let u = 4 - n % 4;
345
- r += " ".repeat(u), n += u;
344
+ let o = 4 - n % 4;
345
+ r += " ".repeat(o), n += o;
346
346
  } else r += s, n++;
347
347
  return r;
348
348
  }
349
349
  function rr(t, e, n, r, s) {
350
- let u = e.href, l = e.title || null, o = t[1].replace(s.other.outputLinkReplace, "$1");
350
+ let o = e.href, l = e.title || null, u = t[1].replace(s.other.outputLinkReplace, "$1");
351
351
  r.state.inLink = !0;
352
- let c = { type: t[0].charAt(0) === "!" ? "image" : "link", raw: n, href: u, title: l, text: o, tokens: r.inlineTokens(o) };
352
+ let c = { type: t[0].charAt(0) === "!" ? "image" : "link", raw: n, href: o, title: l, text: u, tokens: r.inlineTokens(u) };
353
353
  return r.state.inLink = !1, c;
354
354
  }
355
- function ni(t, e, n) {
355
+ function ri(t, e, n) {
356
356
  let r = t.match(n.other.indentCodeCompensation);
357
357
  if (r === null) return e;
358
358
  let s = r[1];
359
359
  return e.split(`
360
- `).map((u) => {
361
- let l = u.match(n.other.beginningSpace);
362
- if (l === null) return u;
363
- let [o] = l;
364
- return o.length >= s.length ? u.slice(s.length) : u;
360
+ `).map((o) => {
361
+ let l = o.match(n.other.beginningSpace);
362
+ if (l === null) return o;
363
+ let [u] = l;
364
+ return u.length >= s.length ? o.slice(s.length) : o;
365
365
  }).join(`
366
366
  `);
367
367
  }
368
- var Bt = class {
368
+ var vt = class {
369
369
  options;
370
370
  rules;
371
371
  lexer;
@@ -386,7 +386,7 @@ var Bt = class {
386
386
  fences(t) {
387
387
  let e = this.rules.block.fences.exec(t);
388
388
  if (e) {
389
- let n = e[0], r = ni(n, e[3] || "", this.rules);
389
+ let n = e[0], r = ri(n, e[3] || "", this.rules);
390
390
  return { type: "code", raw: n, lang: e[2] ? e[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : e[2], text: r };
391
391
  }
392
392
  }
@@ -412,40 +412,40 @@ var Bt = class {
412
412
  if (e) {
413
413
  let n = Ae(e[0], `
414
414
  `).split(`
415
- `), r = "", s = "", u = [];
415
+ `), r = "", s = "", o = [];
416
416
  for (; n.length > 0; ) {
417
- let l = !1, o = [], c;
418
- for (c = 0; c < n.length; c++) if (this.rules.other.blockquoteStart.test(n[c])) o.push(n[c]), l = !0;
419
- else if (!l) o.push(n[c]);
417
+ let l = !1, u = [], c;
418
+ for (c = 0; c < n.length; c++) if (this.rules.other.blockquoteStart.test(n[c])) u.push(n[c]), l = !0;
419
+ else if (!l) u.push(n[c]);
420
420
  else break;
421
421
  n = n.slice(c);
422
- let h = o.join(`
422
+ let h = u.join(`
423
423
  `), g = h.replace(this.rules.other.blockquoteSetextReplace, `
424
424
  $1`).replace(this.rules.other.blockquoteSetextReplace2, "");
425
425
  r = r ? `${r}
426
426
  ${h}` : h, s = s ? `${s}
427
427
  ${g}` : g;
428
428
  let m = this.lexer.state.top;
429
- if (this.lexer.state.top = !0, this.lexer.blockTokens(g, u, !0), this.lexer.state.top = m, n.length === 0) break;
430
- let k = u.at(-1);
429
+ if (this.lexer.state.top = !0, this.lexer.blockTokens(g, o, !0), this.lexer.state.top = m, n.length === 0) break;
430
+ let k = o.at(-1);
431
431
  if (k?.type === "code") break;
432
432
  if (k?.type === "blockquote") {
433
- let O = k, T = n.join(`
434
- `), G = O.raw + `
435
- ` + T.replace(this.rules.other.blockquoteSetextReplace2, ""), U = this.blockquote(G);
436
- u[u.length - 1] = U, r = `${r}
437
- ${T}`, s = s.substring(0, s.length - O.text.length) + U.text;
433
+ let L = k, T = n.join(`
434
+ `), q = L.raw + `
435
+ ` + T.replace(this.rules.other.blockquoteSetextReplace2, ""), U = this.blockquote(q);
436
+ o[o.length - 1] = U, r = `${r}
437
+ ${T}`, s = s.substring(0, s.length - L.text.length) + U.text;
438
438
  break;
439
439
  } else if (k?.type === "list") {
440
- let O = k, T = O.raw + `
440
+ let L = k, T = L.raw + `
441
441
  ` + n.join(`
442
- `), G = this.list(T);
443
- u[u.length - 1] = G, r = r.substring(0, r.length - k.raw.length) + G.raw, s = s.substring(0, s.length - O.raw.length) + G.raw, n = T.substring(u.at(-1).raw.length).split(`
442
+ `), q = this.list(T);
443
+ o[o.length - 1] = q, r = r.substring(0, r.length - k.raw.length) + q.raw, s = s.substring(0, s.length - L.raw.length) + q.raw, n = T.substring(o.at(-1).raw.length).split(`
444
444
  `);
445
445
  continue;
446
446
  }
447
447
  }
448
- return { type: "blockquote", raw: r, tokens: u, text: s };
448
+ return { type: "blockquote", raw: r, tokens: o, text: s };
449
449
  }
450
450
  }
451
451
  list(t) {
@@ -453,36 +453,36 @@ ${T}`, s = s.substring(0, s.length - O.text.length) + U.text;
453
453
  if (e) {
454
454
  let n = e[1].trim(), r = n.length > 1, s = { type: "list", raw: "", ordered: r, start: r ? +n.slice(0, -1) : "", loose: !1, items: [] };
455
455
  n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
456
- let u = this.rules.other.listItemRegex(n), l = !1;
456
+ let o = this.rules.other.listItemRegex(n), l = !1;
457
457
  for (; t; ) {
458
458
  let c = !1, h = "", g = "";
459
- if (!(e = u.exec(t)) || this.rules.block.hr.test(t)) break;
459
+ if (!(e = o.exec(t)) || this.rules.block.hr.test(t)) break;
460
460
  h = e[0], t = t.substring(h.length);
461
- let m = ti(e[2].split(`
461
+ let m = ni(e[2].split(`
462
462
  `, 1)[0], e[1].length), k = t.split(`
463
- `, 1)[0], O = !m.trim(), T = 0;
464
- if (this.options.pedantic ? (T = 2, g = m.trimStart()) : O ? T = e[1].length + 1 : (T = m.search(this.rules.other.nonSpaceChar), T = T > 4 ? 1 : T, g = m.slice(T), T += e[1].length), O && this.rules.other.blankLine.test(k) && (h += k + `
463
+ `, 1)[0], L = !m.trim(), T = 0;
464
+ if (this.options.pedantic ? (T = 2, g = m.trimStart()) : L ? T = e[1].length + 1 : (T = m.search(this.rules.other.nonSpaceChar), T = T > 4 ? 1 : T, g = m.slice(T), T += e[1].length), L && this.rules.other.blankLine.test(k) && (h += k + `
465
465
  `, t = t.substring(k.length + 1), c = !0), !c) {
466
- let G = this.rules.other.nextBulletRegex(T), U = this.rules.other.hrRegex(T), te = this.rules.other.fencesBeginRegex(T), be = this.rules.other.headingBeginRegex(T), ke = this.rules.other.htmlBeginRegex(T), ne = this.rules.other.blockquoteBeginRegex(T);
466
+ let q = this.rules.other.nextBulletRegex(T), U = this.rules.other.hrRegex(T), te = this.rules.other.fencesBeginRegex(T), be = this.rules.other.headingBeginRegex(T), ke = this.rules.other.htmlBeginRegex(T), ne = this.rules.other.blockquoteBeginRegex(T);
467
467
  for (; t; ) {
468
468
  let Q = t.split(`
469
469
  `, 1)[0], K;
470
- if (k = Q, this.options.pedantic ? (k = k.replace(this.rules.other.listReplaceNesting, " "), K = k) : K = k.replace(this.rules.other.tabCharGlobal, " "), te.test(k) || be.test(k) || ke.test(k) || ne.test(k) || G.test(k) || U.test(k)) break;
470
+ if (k = Q, this.options.pedantic ? (k = k.replace(this.rules.other.listReplaceNesting, " "), K = k) : K = k.replace(this.rules.other.tabCharGlobal, " "), te.test(k) || be.test(k) || ke.test(k) || ne.test(k) || q.test(k) || U.test(k)) break;
471
471
  if (K.search(this.rules.other.nonSpaceChar) >= T || !k.trim()) g += `
472
472
  ` + K.slice(T);
473
473
  else {
474
- if (O || m.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(m) || be.test(m) || U.test(m)) break;
474
+ if (L || m.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(m) || be.test(m) || U.test(m)) break;
475
475
  g += `
476
476
  ` + k;
477
477
  }
478
- O = !k.trim(), h += Q + `
478
+ L = !k.trim(), h += Q + `
479
479
  `, t = t.substring(Q.length + 1), m = K.slice(T);
480
480
  }
481
481
  }
482
482
  s.loose || (l ? s.loose = !0 : this.rules.other.doubleBlankLine.test(h) && (l = !0)), s.items.push({ type: "list_item", raw: h, task: !!this.options.gfm && this.rules.other.listIsTask.test(g), loose: !1, text: g, tokens: [] }), s.raw += h;
483
483
  }
484
- let o = s.items.at(-1);
485
- if (o) o.raw = o.raw.trimEnd(), o.text = o.text.trimEnd();
484
+ let u = s.items.at(-1);
485
+ if (u) u.raw = u.raw.trimEnd(), u.text = u.text.trimEnd();
486
486
  else return;
487
487
  s.raw = s.raw.trimEnd();
488
488
  for (let c of s.items) if (this.lexer.state.top = !1, c.tokens = this.lexer.blockTokens(c.text, []), !s.loose) {
@@ -530,13 +530,13 @@ ${T}`, s = s.substring(0, s.length - O.text.length) + U.text;
530
530
  let e = this.rules.block.table.exec(t);
531
531
  if (!e || !this.rules.other.tableDelimiter.test(e[2])) return;
532
532
  let n = tr(e[1]), r = e[2].replace(this.rules.other.tableAlignChars, "").split("|"), s = e[3]?.trim() ? e[3].replace(this.rules.other.tableRowBlankLine, "").split(`
533
- `) : [], u = { type: "table", raw: Ae(e[0], `
533
+ `) : [], o = { type: "table", raw: Ae(e[0], `
534
534
  `), header: [], align: [], rows: [] };
535
535
  if (n.length === r.length) {
536
- for (let l of r) this.rules.other.tableAlignRight.test(l) ? u.align.push("right") : this.rules.other.tableAlignCenter.test(l) ? u.align.push("center") : this.rules.other.tableAlignLeft.test(l) ? u.align.push("left") : u.align.push(null);
537
- for (let l = 0; l < n.length; l++) u.header.push({ text: n[l], tokens: this.lexer.inline(n[l]), header: !0, align: u.align[l] });
538
- for (let l of s) u.rows.push(tr(l, u.header.length).map((o, c) => ({ text: o, tokens: this.lexer.inline(o), header: !1, align: u.align[c] })));
539
- return u;
536
+ for (let l of r) this.rules.other.tableAlignRight.test(l) ? o.align.push("right") : this.rules.other.tableAlignCenter.test(l) ? o.align.push("center") : this.rules.other.tableAlignLeft.test(l) ? o.align.push("left") : o.align.push(null);
537
+ for (let l = 0; l < n.length; l++) o.header.push({ text: n[l], tokens: this.lexer.inline(n[l]), header: !0, align: o.align[l] });
538
+ for (let l of s) o.rows.push(tr(l, o.header.length).map((u, c) => ({ text: u, tokens: this.lexer.inline(u), header: !1, align: o.align[c] })));
539
+ return o;
540
540
  }
541
541
  }
542
542
  lheading(t) {
@@ -573,20 +573,20 @@ ${T}`, s = s.substring(0, s.length - O.text.length) + U.text;
573
573
  let n = e[2].trim();
574
574
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(n)) {
575
575
  if (!this.rules.other.endAngleBracket.test(n)) return;
576
- let u = Ae(n.slice(0, -1), "\\");
577
- if ((n.length - u.length) % 2 === 0) return;
576
+ let o = Ae(n.slice(0, -1), "\\");
577
+ if ((n.length - o.length) % 2 === 0) return;
578
578
  } else {
579
- let u = ei(e[2], "()");
580
- if (u === -2) return;
581
- if (u > -1) {
582
- let l = (e[0].indexOf("!") === 0 ? 5 : 4) + e[1].length + u;
583
- e[2] = e[2].substring(0, u), e[0] = e[0].substring(0, l).trim(), e[3] = "";
579
+ let o = ti(e[2], "()");
580
+ if (o === -2) return;
581
+ if (o > -1) {
582
+ let l = (e[0].indexOf("!") === 0 ? 5 : 4) + e[1].length + o;
583
+ e[2] = e[2].substring(0, o), e[0] = e[0].substring(0, l).trim(), e[3] = "";
584
584
  }
585
585
  }
586
586
  let r = e[2], s = "";
587
587
  if (this.options.pedantic) {
588
- let u = this.rules.other.pedanticHrefTitle.exec(r);
589
- u && (r = u[1], s = u[3]);
588
+ let o = this.rules.other.pedanticHrefTitle.exec(r);
589
+ o && (r = o[1], s = o[3]);
590
590
  } else s = e[3] ? e[3].slice(1, -1) : "";
591
591
  return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r = r.slice(1) : r = r.slice(1, -1)), rr(e, { href: r && r.replace(this.rules.inline.anyPunctuation, "$1"), title: s && s.replace(this.rules.inline.anyPunctuation, "$1") }, e[0], this.lexer, this.rules);
592
592
  }
@@ -596,8 +596,8 @@ ${T}`, s = s.substring(0, s.length - O.text.length) + U.text;
596
596
  if ((n = this.rules.inline.reflink.exec(t)) || (n = this.rules.inline.nolink.exec(t))) {
597
597
  let r = (n[2] || n[1]).replace(this.rules.other.multipleSpaceGlobal, " "), s = e[r.toLowerCase()];
598
598
  if (!s) {
599
- let u = n[0].charAt(0);
600
- return { type: "text", raw: u, text: u };
599
+ let o = n[0].charAt(0);
600
+ return { type: "text", raw: o, text: o };
601
601
  }
602
602
  return rr(n, s, n[0], this.lexer, this.rules);
603
603
  }
@@ -605,11 +605,11 @@ ${T}`, s = s.substring(0, s.length - O.text.length) + U.text;
605
605
  emStrong(t, e, n = "") {
606
606
  let r = this.rules.inline.emStrongLDelim.exec(t);
607
607
  if (!(!r || !r[1] && !r[2] && !r[3] && !r[4] || r[4] && n.match(this.rules.other.unicodeAlphaNumeric)) && (!(r[1] || r[3]) || !n || this.rules.inline.punctuation.exec(n))) {
608
- let s = [...r[0]].length - 1, u, l, o = s, c = 0, h = r[0][0], g = n === h, m = h === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
608
+ let s = [...r[0]].length - 1, o, l, u = s, c = 0, h = r[0][0], g = n === h, m = h === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
609
609
  for (m.lastIndex = 0, e = e.slice(-1 * t.length + s); (r = m.exec(e)) !== null; ) {
610
- if (u = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !u) continue;
611
- if (l = [...u].length, r[3] || r[4]) {
612
- o += l;
610
+ if (o = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !o) continue;
611
+ if (l = [...o].length, r[3] || r[4]) {
612
+ u += l;
613
613
  continue;
614
614
  } else if (r[5] || r[6]) {
615
615
  if (s % 3 && !((s + l) % 3)) {
@@ -618,15 +618,15 @@ ${T}`, s = s.substring(0, s.length - O.text.length) + U.text;
618
618
  }
619
619
  if (g) break;
620
620
  }
621
- if (o -= l, o > 0) continue;
622
- l = Math.min(l, l + o + c);
623
- let k = [...r[0]][0].length, O = t.slice(0, s + r.index + k + l);
621
+ if (u -= l, u > 0) continue;
622
+ l = Math.min(l, l + u + c);
623
+ let k = [...r[0]][0].length, L = t.slice(0, s + r.index + k + l);
624
624
  if (Math.min(s, l) % 2) {
625
- let G = O.slice(1, -1);
626
- return { type: "em", raw: O, text: G, tokens: this.lexer.inlineTokens(G) };
625
+ let q = L.slice(1, -1);
626
+ return { type: "em", raw: L, text: q, tokens: this.lexer.inlineTokens(q) };
627
627
  }
628
- let T = O.slice(2, -2);
629
- return { type: "strong", raw: O, text: T, tokens: this.lexer.inlineTokens(T) };
628
+ let T = L.slice(2, -2);
629
+ return { type: "strong", raw: L, text: T, tokens: this.lexer.inlineTokens(T) };
630
630
  }
631
631
  }
632
632
  }
@@ -644,15 +644,15 @@ ${T}`, s = s.substring(0, s.length - O.text.length) + U.text;
644
644
  del(t, e, n = "") {
645
645
  let r = this.rules.inline.delLDelim.exec(t);
646
646
  if (r && (!r[1] || !n || this.rules.inline.punctuation.exec(n))) {
647
- let s = [...r[0]].length - 1, u, l, o = s, c = this.rules.inline.delRDelim;
647
+ let s = [...r[0]].length - 1, o, l, u = s, c = this.rules.inline.delRDelim;
648
648
  for (c.lastIndex = 0, e = e.slice(-1 * t.length + s); (r = c.exec(e)) !== null; ) {
649
- if (u = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !u || (l = [...u].length, l !== s)) continue;
649
+ if (o = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !o || (l = [...o].length, l !== s)) continue;
650
650
  if (r[3] || r[4]) {
651
- o += l;
651
+ u += l;
652
652
  continue;
653
653
  }
654
- if (o -= l, o > 0) continue;
655
- l = Math.min(l, l + o);
654
+ if (u -= l, u > 0) continue;
655
+ l = Math.min(l, l + u);
656
656
  let h = [...r[0]][0].length, g = t.slice(0, s + r.index + h + l), m = g.slice(s, -s);
657
657
  return { type: "del", raw: g, text: m, tokens: this.lexer.inlineTokens(m) };
658
658
  }
@@ -687,25 +687,25 @@ ${T}`, s = s.substring(0, s.length - O.text.length) + U.text;
687
687
  return { type: "text", raw: e[0], text: e[0], escaped: n };
688
688
  }
689
689
  }
690
- }, se = class on {
690
+ }, ie = class un {
691
691
  tokens;
692
692
  options;
693
693
  state;
694
694
  inlineQueue;
695
695
  tokenizer;
696
696
  constructor(e) {
697
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || ve, this.options.tokenizer = this.options.tokenizer || new Bt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
698
- let n = { other: H, block: yt.normal, inline: nt.normal };
699
- this.options.pedantic ? (n.block = yt.pedantic, n.inline = nt.pedantic) : this.options.gfm && (n.block = yt.gfm, this.options.breaks ? n.inline = nt.breaks : n.inline = nt.gfm), this.tokenizer.rules = n;
697
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || ve, this.options.tokenizer = this.options.tokenizer || new vt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
698
+ let n = { other: H, block: wt.normal, inline: nt.normal };
699
+ this.options.pedantic ? (n.block = wt.pedantic, n.inline = nt.pedantic) : this.options.gfm && (n.block = wt.gfm, this.options.breaks ? n.inline = nt.breaks : n.inline = nt.gfm), this.tokenizer.rules = n;
700
700
  }
701
701
  static get rules() {
702
- return { block: yt, inline: nt };
702
+ return { block: wt, inline: nt };
703
703
  }
704
704
  static lex(e, n) {
705
- return new on(n).lex(e);
705
+ return new un(n).lex(e);
706
706
  }
707
707
  static lexInline(e, n) {
708
- return new on(n).inlineTokens(e);
708
+ return new un(n).inlineTokens(e);
709
709
  }
710
710
  lex(e) {
711
711
  e = e.replace(H.carriageReturn, `
@@ -725,87 +725,87 @@ ${T}`, s = s.substring(0, s.length - O.text.length) + U.text;
725
725
  this.infiniteLoopError(e.charCodeAt(0));
726
726
  break;
727
727
  }
728
- let u;
729
- if (this.options.extensions?.block?.some((o) => (u = o.call({ lexer: this }, e, n)) ? (e = e.substring(u.raw.length), n.push(u), !0) : !1)) continue;
730
- if (u = this.tokenizer.space(e)) {
731
- e = e.substring(u.raw.length);
732
- let o = n.at(-1);
733
- u.raw.length === 1 && o !== void 0 ? o.raw += `
734
- ` : n.push(u);
728
+ let o;
729
+ if (this.options.extensions?.block?.some((u) => (o = u.call({ lexer: this }, e, n)) ? (e = e.substring(o.raw.length), n.push(o), !0) : !1)) continue;
730
+ if (o = this.tokenizer.space(e)) {
731
+ e = e.substring(o.raw.length);
732
+ let u = n.at(-1);
733
+ o.raw.length === 1 && u !== void 0 ? u.raw += `
734
+ ` : n.push(o);
735
735
  continue;
736
736
  }
737
- if (u = this.tokenizer.code(e)) {
738
- e = e.substring(u.raw.length);
739
- let o = n.at(-1);
740
- o?.type === "paragraph" || o?.type === "text" ? (o.raw += (o.raw.endsWith(`
737
+ if (o = this.tokenizer.code(e)) {
738
+ e = e.substring(o.raw.length);
739
+ let u = n.at(-1);
740
+ u?.type === "paragraph" || u?.type === "text" ? (u.raw += (u.raw.endsWith(`
741
741
  `) ? "" : `
742
- `) + u.raw, o.text += `
743
- ` + u.text, this.inlineQueue.at(-1).src = o.text) : n.push(u);
742
+ `) + o.raw, u.text += `
743
+ ` + o.text, this.inlineQueue.at(-1).src = u.text) : n.push(o);
744
744
  continue;
745
745
  }
746
- if (u = this.tokenizer.fences(e)) {
747
- e = e.substring(u.raw.length), n.push(u);
746
+ if (o = this.tokenizer.fences(e)) {
747
+ e = e.substring(o.raw.length), n.push(o);
748
748
  continue;
749
749
  }
750
- if (u = this.tokenizer.heading(e)) {
751
- e = e.substring(u.raw.length), n.push(u);
750
+ if (o = this.tokenizer.heading(e)) {
751
+ e = e.substring(o.raw.length), n.push(o);
752
752
  continue;
753
753
  }
754
- if (u = this.tokenizer.hr(e)) {
755
- e = e.substring(u.raw.length), n.push(u);
754
+ if (o = this.tokenizer.hr(e)) {
755
+ e = e.substring(o.raw.length), n.push(o);
756
756
  continue;
757
757
  }
758
- if (u = this.tokenizer.blockquote(e)) {
759
- e = e.substring(u.raw.length), n.push(u);
758
+ if (o = this.tokenizer.blockquote(e)) {
759
+ e = e.substring(o.raw.length), n.push(o);
760
760
  continue;
761
761
  }
762
- if (u = this.tokenizer.list(e)) {
763
- e = e.substring(u.raw.length), n.push(u);
762
+ if (o = this.tokenizer.list(e)) {
763
+ e = e.substring(o.raw.length), n.push(o);
764
764
  continue;
765
765
  }
766
- if (u = this.tokenizer.html(e)) {
767
- e = e.substring(u.raw.length), n.push(u);
766
+ if (o = this.tokenizer.html(e)) {
767
+ e = e.substring(o.raw.length), n.push(o);
768
768
  continue;
769
769
  }
770
- if (u = this.tokenizer.def(e)) {
771
- e = e.substring(u.raw.length);
772
- let o = n.at(-1);
773
- o?.type === "paragraph" || o?.type === "text" ? (o.raw += (o.raw.endsWith(`
770
+ if (o = this.tokenizer.def(e)) {
771
+ e = e.substring(o.raw.length);
772
+ let u = n.at(-1);
773
+ u?.type === "paragraph" || u?.type === "text" ? (u.raw += (u.raw.endsWith(`
774
774
  `) ? "" : `
775
- `) + u.raw, o.text += `
776
- ` + u.raw, this.inlineQueue.at(-1).src = o.text) : this.tokens.links[u.tag] || (this.tokens.links[u.tag] = { href: u.href, title: u.title }, n.push(u));
775
+ `) + o.raw, u.text += `
776
+ ` + o.raw, this.inlineQueue.at(-1).src = u.text) : this.tokens.links[o.tag] || (this.tokens.links[o.tag] = { href: o.href, title: o.title }, n.push(o));
777
777
  continue;
778
778
  }
779
- if (u = this.tokenizer.table(e)) {
780
- e = e.substring(u.raw.length), n.push(u);
779
+ if (o = this.tokenizer.table(e)) {
780
+ e = e.substring(o.raw.length), n.push(o);
781
781
  continue;
782
782
  }
783
- if (u = this.tokenizer.lheading(e)) {
784
- e = e.substring(u.raw.length), n.push(u);
783
+ if (o = this.tokenizer.lheading(e)) {
784
+ e = e.substring(o.raw.length), n.push(o);
785
785
  continue;
786
786
  }
787
787
  let l = e;
788
788
  if (this.options.extensions?.startBlock) {
789
- let o = 1 / 0, c = e.slice(1), h;
789
+ let u = 1 / 0, c = e.slice(1), h;
790
790
  this.options.extensions.startBlock.forEach((g) => {
791
- h = g.call({ lexer: this }, c), typeof h == "number" && h >= 0 && (o = Math.min(o, h));
792
- }), o < 1 / 0 && o >= 0 && (l = e.substring(0, o + 1));
791
+ h = g.call({ lexer: this }, c), typeof h == "number" && h >= 0 && (u = Math.min(u, h));
792
+ }), u < 1 / 0 && u >= 0 && (l = e.substring(0, u + 1));
793
793
  }
794
- if (this.state.top && (u = this.tokenizer.paragraph(l))) {
795
- let o = n.at(-1);
796
- r && o?.type === "paragraph" ? (o.raw += (o.raw.endsWith(`
794
+ if (this.state.top && (o = this.tokenizer.paragraph(l))) {
795
+ let u = n.at(-1);
796
+ r && u?.type === "paragraph" ? (u.raw += (u.raw.endsWith(`
797
797
  `) ? "" : `
798
- `) + u.raw, o.text += `
799
- ` + u.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = o.text) : n.push(u), r = l.length !== e.length, e = e.substring(u.raw.length);
798
+ `) + o.raw, u.text += `
799
+ ` + o.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = u.text) : n.push(o), r = l.length !== e.length, e = e.substring(o.raw.length);
800
800
  continue;
801
801
  }
802
- if (u = this.tokenizer.text(e)) {
803
- e = e.substring(u.raw.length);
804
- let o = n.at(-1);
805
- o?.type === "text" ? (o.raw += (o.raw.endsWith(`
802
+ if (o = this.tokenizer.text(e)) {
803
+ e = e.substring(o.raw.length);
804
+ let u = n.at(-1);
805
+ u?.type === "text" ? (u.raw += (u.raw.endsWith(`
806
806
  `) ? "" : `
807
- `) + u.raw, o.text += `
808
- ` + u.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = o.text) : n.push(u);
807
+ `) + o.raw, u.text += `
808
+ ` + o.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = u.text) : n.push(o);
809
809
  continue;
810
810
  }
811
811
  if (e) {
@@ -822,63 +822,63 @@ ${T}`, s = s.substring(0, s.length - O.text.length) + U.text;
822
822
  this.tokenizer.lexer = this;
823
823
  let r = e;
824
824
  if (this.tokens.links) {
825
- let o = Object.keys(this.tokens.links);
826
- o.length > 0 && (r = r.replace(this.tokenizer.rules.inline.reflinkSearch, (c) => o.includes(c.slice(c.lastIndexOf("[") + 1, -1)) ? "[" + "a".repeat(c.length - 2) + "]" : c));
825
+ let u = Object.keys(this.tokens.links);
826
+ u.length > 0 && (r = r.replace(this.tokenizer.rules.inline.reflinkSearch, (c) => u.includes(c.slice(c.lastIndexOf("[") + 1, -1)) ? "[" + "a".repeat(c.length - 2) + "]" : c));
827
827
  }
828
- r = r.replace(this.tokenizer.rules.inline.anyPunctuation, (o) => "+".repeat(o.length)), r = r.replace(this.tokenizer.rules.inline.blockSkip, (o, c, h) => {
828
+ r = r.replace(this.tokenizer.rules.inline.anyPunctuation, (u) => "+".repeat(u.length)), r = r.replace(this.tokenizer.rules.inline.blockSkip, (u, c, h) => {
829
829
  let g = h ? h.length : 0;
830
- return o.slice(0, g) + "[" + "a".repeat(o.length - g - 2) + "]";
830
+ return u.slice(0, g) + "[" + "a".repeat(u.length - g - 2) + "]";
831
831
  }), r = this.options.hooks?.emStrongMask?.call({ lexer: this }, r) ?? r;
832
- let s = !1, u = "", l = 1 / 0;
832
+ let s = !1, o = "", l = 1 / 0;
833
833
  for (; e; ) {
834
834
  if (e.length < l) l = e.length;
835
835
  else {
836
836
  this.infiniteLoopError(e.charCodeAt(0));
837
837
  break;
838
838
  }
839
- s || (u = ""), s = !1;
840
- let o;
841
- if (this.options.extensions?.inline?.some((h) => (o = h.call({ lexer: this }, e, n)) ? (e = e.substring(o.raw.length), n.push(o), !0) : !1)) continue;
842
- if (o = this.tokenizer.escape(e)) {
843
- e = e.substring(o.raw.length), n.push(o);
839
+ s || (o = ""), s = !1;
840
+ let u;
841
+ if (this.options.extensions?.inline?.some((h) => (u = h.call({ lexer: this }, e, n)) ? (e = e.substring(u.raw.length), n.push(u), !0) : !1)) continue;
842
+ if (u = this.tokenizer.escape(e)) {
843
+ e = e.substring(u.raw.length), n.push(u);
844
844
  continue;
845
845
  }
846
- if (o = this.tokenizer.tag(e)) {
847
- e = e.substring(o.raw.length), n.push(o);
846
+ if (u = this.tokenizer.tag(e)) {
847
+ e = e.substring(u.raw.length), n.push(u);
848
848
  continue;
849
849
  }
850
- if (o = this.tokenizer.link(e)) {
851
- e = e.substring(o.raw.length), n.push(o);
850
+ if (u = this.tokenizer.link(e)) {
851
+ e = e.substring(u.raw.length), n.push(u);
852
852
  continue;
853
853
  }
854
- if (o = this.tokenizer.reflink(e, this.tokens.links)) {
855
- e = e.substring(o.raw.length);
854
+ if (u = this.tokenizer.reflink(e, this.tokens.links)) {
855
+ e = e.substring(u.raw.length);
856
856
  let h = n.at(-1);
857
- o.type === "text" && h?.type === "text" ? (h.raw += o.raw, h.text += o.text) : n.push(o);
857
+ u.type === "text" && h?.type === "text" ? (h.raw += u.raw, h.text += u.text) : n.push(u);
858
858
  continue;
859
859
  }
860
- if (o = this.tokenizer.emStrong(e, r, u)) {
861
- e = e.substring(o.raw.length), n.push(o);
860
+ if (u = this.tokenizer.emStrong(e, r, o)) {
861
+ e = e.substring(u.raw.length), n.push(u);
862
862
  continue;
863
863
  }
864
- if (o = this.tokenizer.codespan(e)) {
865
- e = e.substring(o.raw.length), n.push(o);
864
+ if (u = this.tokenizer.codespan(e)) {
865
+ e = e.substring(u.raw.length), n.push(u);
866
866
  continue;
867
867
  }
868
- if (o = this.tokenizer.br(e)) {
869
- e = e.substring(o.raw.length), n.push(o);
868
+ if (u = this.tokenizer.br(e)) {
869
+ e = e.substring(u.raw.length), n.push(u);
870
870
  continue;
871
871
  }
872
- if (o = this.tokenizer.del(e, r, u)) {
873
- e = e.substring(o.raw.length), n.push(o);
872
+ if (u = this.tokenizer.del(e, r, o)) {
873
+ e = e.substring(u.raw.length), n.push(u);
874
874
  continue;
875
875
  }
876
- if (o = this.tokenizer.autolink(e)) {
877
- e = e.substring(o.raw.length), n.push(o);
876
+ if (u = this.tokenizer.autolink(e)) {
877
+ e = e.substring(u.raw.length), n.push(u);
878
878
  continue;
879
879
  }
880
- if (!this.state.inLink && (o = this.tokenizer.url(e))) {
881
- e = e.substring(o.raw.length), n.push(o);
880
+ if (!this.state.inLink && (u = this.tokenizer.url(e))) {
881
+ e = e.substring(u.raw.length), n.push(u);
882
882
  continue;
883
883
  }
884
884
  let c = e;
@@ -888,10 +888,10 @@ ${T}`, s = s.substring(0, s.length - O.text.length) + U.text;
888
888
  m = k.call({ lexer: this }, g), typeof m == "number" && m >= 0 && (h = Math.min(h, m));
889
889
  }), h < 1 / 0 && h >= 0 && (c = e.substring(0, h + 1));
890
890
  }
891
- if (o = this.tokenizer.inlineText(c)) {
892
- e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (u = o.raw.slice(-1)), s = !0;
891
+ if (u = this.tokenizer.inlineText(c)) {
892
+ e = e.substring(u.raw.length), u.raw.slice(-1) !== "_" && (o = u.raw.slice(-1)), s = !0;
893
893
  let h = n.at(-1);
894
- h?.type === "text" ? (h.raw += o.raw, h.text += o.text) : n.push(o);
894
+ h?.type === "text" ? (h.raw += u.raw, h.text += u.text) : n.push(u);
895
895
  continue;
896
896
  }
897
897
  if (e) {
@@ -906,7 +906,7 @@ ${T}`, s = s.substring(0, s.length - O.text.length) + U.text;
906
906
  if (this.options.silent) console.error(n);
907
907
  else throw new Error(n);
908
908
  }
909
- }, vt = class {
909
+ }, Ot = class {
910
910
  options;
911
911
  parser;
912
912
  constructor(t) {
@@ -918,8 +918,8 @@ ${T}`, s = s.substring(0, s.length - O.text.length) + U.text;
918
918
  code({ text: t, lang: e, escaped: n }) {
919
919
  let r = (e || "").match(H.notSpaceStart)?.[0], s = t.replace(H.endingNewline, "") + `
920
920
  `;
921
- return r ? '<pre><code class="language-' + ce(r) + '">' + (n ? s : ce(s, !0)) + `</code></pre>
922
- ` : "<pre><code>" + (n ? s : ce(s, !0)) + `</code></pre>
921
+ return r ? '<pre><code class="language-' + pe(r) + '">' + (n ? s : pe(s, !0)) + `</code></pre>
922
+ ` : "<pre><code>" + (n ? s : pe(s, !0)) + `</code></pre>
923
923
  `;
924
924
  }
925
925
  blockquote({ tokens: t }) {
@@ -944,11 +944,11 @@ ${this.parser.parse(t)}</blockquote>
944
944
  list(t) {
945
945
  let e = t.ordered, n = t.start, r = "";
946
946
  for (let l = 0; l < t.items.length; l++) {
947
- let o = t.items[l];
948
- r += this.listitem(o);
947
+ let u = t.items[l];
948
+ r += this.listitem(u);
949
949
  }
950
- let s = e ? "ol" : "ul", u = e && n !== 1 ? ' start="' + n + '"' : "";
951
- return "<" + s + u + `>
950
+ let s = e ? "ol" : "ul", o = e && n !== 1 ? ' start="' + n + '"' : "";
951
+ return "<" + s + o + `>
952
952
  ` + r + "</" + s + `>
953
953
  `;
954
954
  }
@@ -969,9 +969,9 @@ ${this.parser.parse(t)}</blockquote>
969
969
  e += this.tablerow({ text: n });
970
970
  let r = "";
971
971
  for (let s = 0; s < t.rows.length; s++) {
972
- let u = t.rows[s];
972
+ let o = t.rows[s];
973
973
  n = "";
974
- for (let l = 0; l < u.length; l++) n += this.tablecell(u[l]);
974
+ for (let l = 0; l < o.length; l++) n += this.tablecell(o[l]);
975
975
  r += this.tablerow({ text: n });
976
976
  }
977
977
  return r && (r = `<tbody>${r}</tbody>`), `<table>
@@ -997,7 +997,7 @@ ${t}</tr>
997
997
  return `<em>${this.parser.parseInline(t)}</em>`;
998
998
  }
999
999
  codespan({ text: t }) {
1000
- return `<code>${ce(t, !0)}</code>`;
1000
+ return `<code>${pe(t, !0)}</code>`;
1001
1001
  }
1002
1002
  br(t) {
1003
1003
  return "<br>";
@@ -1009,19 +1009,19 @@ ${t}</tr>
1009
1009
  let r = this.parser.parseInline(n), s = er(t);
1010
1010
  if (s === null) return r;
1011
1011
  t = s;
1012
- let u = '<a href="' + t + '"';
1013
- return e && (u += ' title="' + ce(e) + '"'), u += ">" + r + "</a>", u;
1012
+ let o = '<a href="' + t + '"';
1013
+ return e && (o += ' title="' + pe(e) + '"'), o += ">" + r + "</a>", o;
1014
1014
  }
1015
1015
  image({ href: t, title: e, text: n, tokens: r }) {
1016
1016
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
1017
1017
  let s = er(t);
1018
- if (s === null) return ce(n);
1018
+ if (s === null) return pe(n);
1019
1019
  t = s;
1020
- let u = `<img src="${t}" alt="${ce(n)}"`;
1021
- return e && (u += ` title="${ce(e)}"`), u += ">", u;
1020
+ let o = `<img src="${t}" alt="${pe(n)}"`;
1021
+ return e && (o += ` title="${pe(e)}"`), o += ">", o;
1022
1022
  }
1023
1023
  text(t) {
1024
- return "tokens" in t && t.tokens ? this.parser.parseInline(t.tokens) : "escaped" in t && t.escaped ? t.text : ce(t.text);
1024
+ return "tokens" in t && t.tokens ? this.parser.parseInline(t.tokens) : "escaped" in t && t.escaped ? t.text : pe(t.text);
1025
1025
  }
1026
1026
  }, Fn = class {
1027
1027
  strong({ text: t }) {
@@ -1054,12 +1054,12 @@ ${t}</tr>
1054
1054
  checkbox({ raw: t }) {
1055
1055
  return t;
1056
1056
  }
1057
- }, ie = class ln {
1057
+ }, oe = class ln {
1058
1058
  options;
1059
1059
  renderer;
1060
1060
  textRenderer;
1061
1061
  constructor(e) {
1062
- this.options = e || ve, this.options.renderer = this.options.renderer || new vt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Fn();
1062
+ this.options = e || ve, this.options.renderer = this.options.renderer || new Ot(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Fn();
1063
1063
  }
1064
1064
  static parse(e, n) {
1065
1065
  return new ln(n).parse(e);
@@ -1073,64 +1073,64 @@ ${t}</tr>
1073
1073
  for (let r = 0; r < e.length; r++) {
1074
1074
  let s = e[r];
1075
1075
  if (this.options.extensions?.renderers?.[s.type]) {
1076
- let l = s, o = this.options.extensions.renderers[l.type].call({ parser: this }, l);
1077
- if (o !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "checkbox", "html", "def", "paragraph", "text"].includes(l.type)) {
1078
- n += o || "";
1076
+ let l = s, u = this.options.extensions.renderers[l.type].call({ parser: this }, l);
1077
+ if (u !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "checkbox", "html", "def", "paragraph", "text"].includes(l.type)) {
1078
+ n += u || "";
1079
1079
  continue;
1080
1080
  }
1081
1081
  }
1082
- let u = s;
1083
- switch (u.type) {
1082
+ let o = s;
1083
+ switch (o.type) {
1084
1084
  case "space": {
1085
- n += this.renderer.space(u);
1085
+ n += this.renderer.space(o);
1086
1086
  break;
1087
1087
  }
1088
1088
  case "hr": {
1089
- n += this.renderer.hr(u);
1089
+ n += this.renderer.hr(o);
1090
1090
  break;
1091
1091
  }
1092
1092
  case "heading": {
1093
- n += this.renderer.heading(u);
1093
+ n += this.renderer.heading(o);
1094
1094
  break;
1095
1095
  }
1096
1096
  case "code": {
1097
- n += this.renderer.code(u);
1097
+ n += this.renderer.code(o);
1098
1098
  break;
1099
1099
  }
1100
1100
  case "table": {
1101
- n += this.renderer.table(u);
1101
+ n += this.renderer.table(o);
1102
1102
  break;
1103
1103
  }
1104
1104
  case "blockquote": {
1105
- n += this.renderer.blockquote(u);
1105
+ n += this.renderer.blockquote(o);
1106
1106
  break;
1107
1107
  }
1108
1108
  case "list": {
1109
- n += this.renderer.list(u);
1109
+ n += this.renderer.list(o);
1110
1110
  break;
1111
1111
  }
1112
1112
  case "checkbox": {
1113
- n += this.renderer.checkbox(u);
1113
+ n += this.renderer.checkbox(o);
1114
1114
  break;
1115
1115
  }
1116
1116
  case "html": {
1117
- n += this.renderer.html(u);
1117
+ n += this.renderer.html(o);
1118
1118
  break;
1119
1119
  }
1120
1120
  case "def": {
1121
- n += this.renderer.def(u);
1121
+ n += this.renderer.def(o);
1122
1122
  break;
1123
1123
  }
1124
1124
  case "paragraph": {
1125
- n += this.renderer.paragraph(u);
1125
+ n += this.renderer.paragraph(o);
1126
1126
  break;
1127
1127
  }
1128
1128
  case "text": {
1129
- n += this.renderer.text(u);
1129
+ n += this.renderer.text(o);
1130
1130
  break;
1131
1131
  }
1132
1132
  default: {
1133
- let l = 'Token with "' + u.type + '" type was not found.';
1133
+ let l = 'Token with "' + o.type + '" type was not found.';
1134
1134
  if (this.options.silent) return console.error(l), "";
1135
1135
  throw new Error(l);
1136
1136
  }
@@ -1142,15 +1142,15 @@ ${t}</tr>
1142
1142
  this.renderer.parser = this;
1143
1143
  let r = "";
1144
1144
  for (let s = 0; s < e.length; s++) {
1145
- let u = e[s];
1146
- if (this.options.extensions?.renderers?.[u.type]) {
1147
- let o = this.options.extensions.renderers[u.type].call({ parser: this }, u);
1148
- if (o !== !1 || !["escape", "html", "link", "image", "checkbox", "strong", "em", "codespan", "br", "del", "text"].includes(u.type)) {
1149
- r += o || "";
1145
+ let o = e[s];
1146
+ if (this.options.extensions?.renderers?.[o.type]) {
1147
+ let u = this.options.extensions.renderers[o.type].call({ parser: this }, o);
1148
+ if (u !== !1 || !["escape", "html", "link", "image", "checkbox", "strong", "em", "codespan", "br", "del", "text"].includes(o.type)) {
1149
+ r += u || "";
1150
1150
  continue;
1151
1151
  }
1152
1152
  }
1153
- let l = u;
1153
+ let l = o;
1154
1154
  switch (l.type) {
1155
1155
  case "escape": {
1156
1156
  r += n.text(l);
@@ -1197,15 +1197,15 @@ ${t}</tr>
1197
1197
  break;
1198
1198
  }
1199
1199
  default: {
1200
- let o = 'Token with "' + l.type + '" type was not found.';
1201
- if (this.options.silent) return console.error(o), "";
1202
- throw new Error(o);
1200
+ let u = 'Token with "' + l.type + '" type was not found.';
1201
+ if (this.options.silent) return console.error(u), "";
1202
+ throw new Error(u);
1203
1203
  }
1204
1204
  }
1205
1205
  }
1206
1206
  return r;
1207
1207
  }
1208
- }, ot = class {
1208
+ }, ut = class {
1209
1209
  options;
1210
1210
  block;
1211
1211
  constructor(t) {
@@ -1226,22 +1226,22 @@ ${t}</tr>
1226
1226
  return t;
1227
1227
  }
1228
1228
  provideLexer(t = this.block) {
1229
- return t ? se.lex : se.lexInline;
1229
+ return t ? ie.lex : ie.lexInline;
1230
1230
  }
1231
1231
  provideParser(t = this.block) {
1232
- return t ? ie.parse : ie.parseInline;
1232
+ return t ? oe.parse : oe.parseInline;
1233
1233
  }
1234
- }, Br = class {
1234
+ }, vr = class {
1235
1235
  defaults = pn();
1236
1236
  options = this.setOptions;
1237
1237
  parse = this.parseMarkdown(!0);
1238
1238
  parseInline = this.parseMarkdown(!1);
1239
- Parser = ie;
1240
- Renderer = vt;
1239
+ Parser = oe;
1240
+ Renderer = Ot;
1241
1241
  TextRenderer = Fn;
1242
- Lexer = se;
1243
- Tokenizer = Bt;
1244
- Hooks = ot;
1242
+ Lexer = ie;
1243
+ Tokenizer = vt;
1244
+ Hooks = ut;
1245
1245
  constructor(...t) {
1246
1246
  this.use(...t);
1247
1247
  }
@@ -1250,8 +1250,8 @@ ${t}</tr>
1250
1250
  for (let r of t) switch (n = n.concat(e.call(this, r)), r.type) {
1251
1251
  case "table": {
1252
1252
  let s = r;
1253
- for (let u of s.header) n = n.concat(this.walkTokens(u.tokens, e));
1254
- for (let u of s.rows) for (let l of u) n = n.concat(this.walkTokens(l.tokens, e));
1253
+ for (let o of s.header) n = n.concat(this.walkTokens(o.tokens, e));
1254
+ for (let o of s.rows) for (let l of o) n = n.concat(this.walkTokens(l.tokens, e));
1255
1255
  break;
1256
1256
  }
1257
1257
  case "list": {
@@ -1261,8 +1261,8 @@ ${t}</tr>
1261
1261
  }
1262
1262
  default: {
1263
1263
  let s = r;
1264
- this.defaults.extensions?.childTokens?.[s.type] ? this.defaults.extensions.childTokens[s.type].forEach((u) => {
1265
- let l = s[u].flat(1 / 0);
1264
+ this.defaults.extensions?.childTokens?.[s.type] ? this.defaults.extensions.childTokens[s.type].forEach((o) => {
1265
+ let l = s[o].flat(1 / 0);
1266
1266
  n = n.concat(this.walkTokens(l, e));
1267
1267
  }) : s.tokens && (n = n.concat(this.walkTokens(s.tokens, e)));
1268
1268
  }
@@ -1276,73 +1276,73 @@ ${t}</tr>
1276
1276
  if (r.async = this.defaults.async || r.async || !1, n.extensions && (n.extensions.forEach((s) => {
1277
1277
  if (!s.name) throw new Error("extension name required");
1278
1278
  if ("renderer" in s) {
1279
- let u = e.renderers[s.name];
1280
- u ? e.renderers[s.name] = function(...l) {
1281
- let o = s.renderer.apply(this, l);
1282
- return o === !1 && (o = u.apply(this, l)), o;
1279
+ let o = e.renderers[s.name];
1280
+ o ? e.renderers[s.name] = function(...l) {
1281
+ let u = s.renderer.apply(this, l);
1282
+ return u === !1 && (u = o.apply(this, l)), u;
1283
1283
  } : e.renderers[s.name] = s.renderer;
1284
1284
  }
1285
1285
  if ("tokenizer" in s) {
1286
1286
  if (!s.level || s.level !== "block" && s.level !== "inline") throw new Error("extension level must be 'block' or 'inline'");
1287
- let u = e[s.level];
1288
- u ? u.unshift(s.tokenizer) : e[s.level] = [s.tokenizer], s.start && (s.level === "block" ? e.startBlock ? e.startBlock.push(s.start) : e.startBlock = [s.start] : s.level === "inline" && (e.startInline ? e.startInline.push(s.start) : e.startInline = [s.start]));
1287
+ let o = e[s.level];
1288
+ o ? o.unshift(s.tokenizer) : e[s.level] = [s.tokenizer], s.start && (s.level === "block" ? e.startBlock ? e.startBlock.push(s.start) : e.startBlock = [s.start] : s.level === "inline" && (e.startInline ? e.startInline.push(s.start) : e.startInline = [s.start]));
1289
1289
  }
1290
1290
  "childTokens" in s && s.childTokens && (e.childTokens[s.name] = s.childTokens);
1291
1291
  }), r.extensions = e), n.renderer) {
1292
- let s = this.defaults.renderer || new vt(this.defaults);
1293
- for (let u in n.renderer) {
1294
- if (!(u in s)) throw new Error(`renderer '${u}' does not exist`);
1295
- if (["options", "parser"].includes(u)) continue;
1296
- let l = u, o = n.renderer[l], c = s[l];
1292
+ let s = this.defaults.renderer || new Ot(this.defaults);
1293
+ for (let o in n.renderer) {
1294
+ if (!(o in s)) throw new Error(`renderer '${o}' does not exist`);
1295
+ if (["options", "parser"].includes(o)) continue;
1296
+ let l = o, u = n.renderer[l], c = s[l];
1297
1297
  s[l] = (...h) => {
1298
- let g = o.apply(s, h);
1298
+ let g = u.apply(s, h);
1299
1299
  return g === !1 && (g = c.apply(s, h)), g || "";
1300
1300
  };
1301
1301
  }
1302
1302
  r.renderer = s;
1303
1303
  }
1304
1304
  if (n.tokenizer) {
1305
- let s = this.defaults.tokenizer || new Bt(this.defaults);
1306
- for (let u in n.tokenizer) {
1307
- if (!(u in s)) throw new Error(`tokenizer '${u}' does not exist`);
1308
- if (["options", "rules", "lexer"].includes(u)) continue;
1309
- let l = u, o = n.tokenizer[l], c = s[l];
1305
+ let s = this.defaults.tokenizer || new vt(this.defaults);
1306
+ for (let o in n.tokenizer) {
1307
+ if (!(o in s)) throw new Error(`tokenizer '${o}' does not exist`);
1308
+ if (["options", "rules", "lexer"].includes(o)) continue;
1309
+ let l = o, u = n.tokenizer[l], c = s[l];
1310
1310
  s[l] = (...h) => {
1311
- let g = o.apply(s, h);
1311
+ let g = u.apply(s, h);
1312
1312
  return g === !1 && (g = c.apply(s, h)), g;
1313
1313
  };
1314
1314
  }
1315
1315
  r.tokenizer = s;
1316
1316
  }
1317
1317
  if (n.hooks) {
1318
- let s = this.defaults.hooks || new ot();
1319
- for (let u in n.hooks) {
1320
- if (!(u in s)) throw new Error(`hook '${u}' does not exist`);
1321
- if (["options", "block"].includes(u)) continue;
1322
- let l = u, o = n.hooks[l], c = s[l];
1323
- ot.passThroughHooks.has(u) ? s[l] = (h) => {
1324
- if (this.defaults.async && ot.passThroughHooksRespectAsync.has(u)) return (async () => {
1325
- let m = await o.call(s, h);
1318
+ let s = this.defaults.hooks || new ut();
1319
+ for (let o in n.hooks) {
1320
+ if (!(o in s)) throw new Error(`hook '${o}' does not exist`);
1321
+ if (["options", "block"].includes(o)) continue;
1322
+ let l = o, u = n.hooks[l], c = s[l];
1323
+ ut.passThroughHooks.has(o) ? s[l] = (h) => {
1324
+ if (this.defaults.async && ut.passThroughHooksRespectAsync.has(o)) return (async () => {
1325
+ let m = await u.call(s, h);
1326
1326
  return c.call(s, m);
1327
1327
  })();
1328
- let g = o.call(s, h);
1328
+ let g = u.call(s, h);
1329
1329
  return c.call(s, g);
1330
1330
  } : s[l] = (...h) => {
1331
1331
  if (this.defaults.async) return (async () => {
1332
- let m = await o.apply(s, h);
1332
+ let m = await u.apply(s, h);
1333
1333
  return m === !1 && (m = await c.apply(s, h)), m;
1334
1334
  })();
1335
- let g = o.apply(s, h);
1335
+ let g = u.apply(s, h);
1336
1336
  return g === !1 && (g = c.apply(s, h)), g;
1337
1337
  };
1338
1338
  }
1339
1339
  r.hooks = s;
1340
1340
  }
1341
1341
  if (n.walkTokens) {
1342
- let s = this.defaults.walkTokens, u = n.walkTokens;
1342
+ let s = this.defaults.walkTokens, o = n.walkTokens;
1343
1343
  r.walkTokens = function(l) {
1344
- let o = [];
1345
- return o.push(u.call(this, l)), s && (o = o.concat(s.call(this, l))), o;
1344
+ let u = [];
1345
+ return u.push(o.call(this, l)), s && (u = u.concat(s.call(this, l))), u;
1346
1346
  };
1347
1347
  }
1348
1348
  this.defaults = { ...this.defaults, ...r };
@@ -1352,31 +1352,31 @@ ${t}</tr>
1352
1352
  return this.defaults = { ...this.defaults, ...t }, this;
1353
1353
  }
1354
1354
  lexer(t, e) {
1355
- return se.lex(t, e ?? this.defaults);
1355
+ return ie.lex(t, e ?? this.defaults);
1356
1356
  }
1357
1357
  parser(t, e) {
1358
- return ie.parse(t, e ?? this.defaults);
1358
+ return oe.parse(t, e ?? this.defaults);
1359
1359
  }
1360
1360
  parseMarkdown(t) {
1361
1361
  return (e, n) => {
1362
- let r = { ...n }, s = { ...this.defaults, ...r }, u = this.onError(!!s.silent, !!s.async);
1363
- if (this.defaults.async === !0 && r.async === !1) return u(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
1364
- if (typeof e > "u" || e === null) return u(new Error("marked(): input parameter is undefined or null"));
1365
- if (typeof e != "string") return u(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(e) + ", string expected"));
1362
+ let r = { ...n }, s = { ...this.defaults, ...r }, o = this.onError(!!s.silent, !!s.async);
1363
+ if (this.defaults.async === !0 && r.async === !1) return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
1364
+ if (typeof e > "u" || e === null) return o(new Error("marked(): input parameter is undefined or null"));
1365
+ if (typeof e != "string") return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(e) + ", string expected"));
1366
1366
  if (s.hooks && (s.hooks.options = s, s.hooks.block = t), s.async) return (async () => {
1367
- let l = s.hooks ? await s.hooks.preprocess(e) : e, o = await (s.hooks ? await s.hooks.provideLexer(t) : t ? se.lex : se.lexInline)(l, s), c = s.hooks ? await s.hooks.processAllTokens(o) : o;
1367
+ let l = s.hooks ? await s.hooks.preprocess(e) : e, u = await (s.hooks ? await s.hooks.provideLexer(t) : t ? ie.lex : ie.lexInline)(l, s), c = s.hooks ? await s.hooks.processAllTokens(u) : u;
1368
1368
  s.walkTokens && await Promise.all(this.walkTokens(c, s.walkTokens));
1369
- let h = await (s.hooks ? await s.hooks.provideParser(t) : t ? ie.parse : ie.parseInline)(c, s);
1369
+ let h = await (s.hooks ? await s.hooks.provideParser(t) : t ? oe.parse : oe.parseInline)(c, s);
1370
1370
  return s.hooks ? await s.hooks.postprocess(h) : h;
1371
- })().catch(u);
1371
+ })().catch(o);
1372
1372
  try {
1373
1373
  s.hooks && (e = s.hooks.preprocess(e));
1374
- let l = (s.hooks ? s.hooks.provideLexer(t) : t ? se.lex : se.lexInline)(e, s);
1374
+ let l = (s.hooks ? s.hooks.provideLexer(t) : t ? ie.lex : ie.lexInline)(e, s);
1375
1375
  s.hooks && (l = s.hooks.processAllTokens(l)), s.walkTokens && this.walkTokens(l, s.walkTokens);
1376
- let o = (s.hooks ? s.hooks.provideParser(t) : t ? ie.parse : ie.parseInline)(l, s);
1377
- return s.hooks && (o = s.hooks.postprocess(o)), o;
1376
+ let u = (s.hooks ? s.hooks.provideParser(t) : t ? oe.parse : oe.parseInline)(l, s);
1377
+ return s.hooks && (u = s.hooks.postprocess(u)), u;
1378
1378
  } catch (l) {
1379
- return u(l);
1379
+ return o(l);
1380
1380
  }
1381
1381
  };
1382
1382
  }
@@ -1384,47 +1384,137 @@ ${t}</tr>
1384
1384
  return (n) => {
1385
1385
  if (n.message += `
1386
1386
  Please report this to https://github.com/markedjs/marked.`, t) {
1387
- let r = "<p>An error occurred:</p><pre>" + ce(n.message + "", !0) + "</pre>";
1387
+ let r = "<p>An error occurred:</p><pre>" + pe(n.message + "", !0) + "</pre>";
1388
1388
  return e ? Promise.resolve(r) : r;
1389
1389
  }
1390
1390
  if (e) return Promise.reject(n);
1391
1391
  throw n;
1392
1392
  };
1393
1393
  }
1394
- }, Be = new Br();
1395
- function y(t, e) {
1394
+ }, Be = new vr();
1395
+ function _(t, e) {
1396
1396
  return Be.parse(t, e);
1397
1397
  }
1398
- y.options = y.setOptions = function(t) {
1399
- return Be.setOptions(t), y.defaults = Be.defaults, br(y.defaults), y;
1398
+ _.options = _.setOptions = function(t) {
1399
+ return Be.setOptions(t), _.defaults = Be.defaults, kr(_.defaults), _;
1400
1400
  };
1401
- y.getDefaults = pn;
1402
- y.defaults = ve;
1403
- function ri(...t) {
1404
- return Be.use(...t), y.defaults = Be.defaults, br(y.defaults), y;
1401
+ _.getDefaults = pn;
1402
+ _.defaults = ve;
1403
+ function si(...t) {
1404
+ return Be.use(...t), _.defaults = Be.defaults, kr(_.defaults), _;
1405
1405
  }
1406
- y.use = ri;
1407
- y.walkTokens = function(t, e) {
1406
+ _.use = si;
1407
+ _.walkTokens = function(t, e) {
1408
1408
  return Be.walkTokens(t, e);
1409
1409
  };
1410
- y.parseInline = Be.parseInline;
1411
- y.Parser = ie;
1412
- y.parser = ie.parse;
1413
- y.Renderer = vt;
1414
- y.TextRenderer = Fn;
1415
- y.Lexer = se;
1416
- y.lexer = se.lex;
1417
- y.Tokenizer = Bt;
1418
- y.Hooks = ot;
1419
- y.parse = y;
1420
- y.options;
1421
- y.setOptions;
1422
- y.walkTokens;
1423
- y.parseInline;
1424
- ie.parse;
1425
- se.lex;
1426
- const si = /[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g, ii = Object.hasOwnProperty;
1427
- class ui {
1410
+ _.parseInline = Be.parseInline;
1411
+ _.Parser = oe;
1412
+ _.parser = oe.parse;
1413
+ _.Renderer = Ot;
1414
+ _.TextRenderer = Fn;
1415
+ _.Lexer = ie;
1416
+ _.lexer = ie.lex;
1417
+ _.Tokenizer = vt;
1418
+ _.Hooks = ut;
1419
+ _.parse = _;
1420
+ _.options;
1421
+ _.setOptions;
1422
+ _.walkTokens;
1423
+ _.parseInline;
1424
+ oe.parse;
1425
+ ie.lex;
1426
+ const ii = (t) => {
1427
+ const e = [], n = [];
1428
+ let r = -1, s = -1;
1429
+ for (const { children: o, ...l } of t) {
1430
+ if (r < l.depth && l.depth <= s + 1) {
1431
+ const u = l.depth - r;
1432
+ s = l.depth;
1433
+ const c = n[u - 1];
1434
+ c.children ??= [], c.children.push(l), n[u] = l;
1435
+ continue;
1436
+ }
1437
+ e.push(l), n[0] = l, r = s = l.depth;
1438
+ }
1439
+ return e;
1440
+ };
1441
+ var sr;
1442
+ ((t) => {
1443
+ t.clickable = `
1444
+ px-2
1445
+ min-h-[calc(44/16*1rem)]
1446
+ border
1447
+ border-transparent
1448
+ rounded-lg
1449
+ hover:bg-solid-gray-50
1450
+ `, t.selected = `
1451
+ rounded-full
1452
+ bg-yellow-50
1453
+ `;
1454
+ const e = `
1455
+ focus-visible:outline-4
1456
+ focus-visible:outline-black
1457
+ focus-visible:ring-yellow-300
1458
+ `;
1459
+ t.focusRectCondensed = `
1460
+ ${e}
1461
+ focus-visible:-outline-offset-4
1462
+ focus-visible:ring-[calc(6/16*1rem)]
1463
+ focus-visible:ring-inset
1464
+ `, t.focusRectCondensedWithBg = `
1465
+ ${t.focusRectCondensed}
1466
+ focus-visible:bg-yellow-300
1467
+ `, t.focusRect = `
1468
+ ${e}
1469
+ focus-visible:outline-offset-[calc(2/16*1rem)]
1470
+ focus-visible:ring-[calc(2/16*1rem)]
1471
+ `, t.focusRounded = `
1472
+ ${t.focusRect}
1473
+ focus-visible:rounded-sm
1474
+ `, t.focusCard = `
1475
+ ${t.focusRect}
1476
+ focus-visible:rounded-2xl
1477
+ sm:focus-visible:rounded-3xl
1478
+ `, t.focusRectWithBg = `
1479
+ ${t.focusRect}
1480
+ focus-visible:bg-yellow-300
1481
+ `, t.focusRoundedWithBg = `
1482
+ ${t.focusRectWithBg}
1483
+ focus-visible:rounded-sm
1484
+ `, t.hoverUnderline = `
1485
+ hover:underline
1486
+ hover:underline-offset-[calc(3/16*1rem)]
1487
+ `, t.underline = `
1488
+ underline
1489
+ underline-offset-[calc(3/16*1rem)]
1490
+ hover:decoration-[calc(3/16*1rem)]
1491
+ `, t.underlineNoDeco = `
1492
+ underline
1493
+ underline-offset-[calc(3/16*1rem)]
1494
+ `, t.popover = `
1495
+ min-w-fit
1496
+ w-auto
1497
+ py-2
1498
+ bg-white
1499
+ shadow-1
1500
+ rounded-lg
1501
+ border
1502
+ border-solid-gray-420
1503
+ has-[>:nth-child(7)]:rounded-r-none
1504
+ `, ((n) => {
1505
+ n.focus = `
1506
+ peer-focus-visible:outline-4
1507
+ peer-focus-visible:outline-black
1508
+ peer-focus-visible:ring-yellow-300
1509
+ `, n.focusRect = `
1510
+ ${n.focus}
1511
+ peer-focus-visible:outline-offset-[calc(2/16*1rem)]
1512
+ peer-focus-visible:ring-[calc(2/16*1rem)]
1513
+ `;
1514
+ })(t.Peer || (t.Peer = {}));
1515
+ })(sr || (sr = {}));
1516
+ const oi = /[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g, ui = Object.hasOwnProperty;
1517
+ class li {
1428
1518
  /**
1429
1519
  * Create a new slug class.
1430
1520
  */
@@ -1447,10 +1537,10 @@ class ui {
1447
1537
  */
1448
1538
  slug(e, n) {
1449
1539
  const r = this;
1450
- let s = oi(e, n === !0);
1451
- const u = s;
1452
- for (; ii.call(r.occurrences, s); )
1453
- r.occurrences[u]++, s = u + "-" + r.occurrences[u];
1540
+ let s = ai(e, n === !0);
1541
+ const o = s;
1542
+ for (; ui.call(r.occurrences, s); )
1543
+ r.occurrences[o]++, s = o + "-" + r.occurrences[o];
1454
1544
  return r.occurrences[s] = 0, s;
1455
1545
  }
1456
1546
  /**
@@ -1462,24 +1552,26 @@ class ui {
1462
1552
  this.occurrences = /* @__PURE__ */ Object.create(null);
1463
1553
  }
1464
1554
  }
1465
- function oi(t, e) {
1466
- return typeof t != "string" ? "" : (e || (t = t.toLowerCase()), t.replace(si, "").replace(/ /g, "-"));
1555
+ function ai(t, e) {
1556
+ return typeof t != "string" ? "" : (e || (t = t.toLowerCase()), t.replace(oi, "").replace(/ /g, "-"));
1467
1557
  }
1468
- const li = {
1558
+ const ci = {
1469
1559
  "&": "&amp;",
1470
1560
  "<": "&lt;",
1471
1561
  ">": "&gt;",
1472
1562
  '"': "&quot;",
1473
1563
  "'": "&#39;"
1474
- }, ai = (t) => String(t).replace(/[&<>"']/g, (e) => li[e] ?? e), ci = (t) => Array.from(t).filter((e) => {
1564
+ }, pi = (t) => String(t).replace(/[&<>"']/g, (e) => ci[e] ?? e), fi = (t) => Array.from(t).filter((e) => {
1475
1565
  const n = e.codePointAt(0) ?? 0;
1476
1566
  return n > 31 && n !== 127;
1477
- }).join(""), Ot = (t) => {
1567
+ }).join(""), at = (t) => {
1478
1568
  if (t == null || t === "") return;
1479
- const e = ci(String(t)).trim();
1569
+ const e = fi(String(t)).trim();
1480
1570
  if (!/^(?:javascript|vbscript|file):/i.test(e) && !/^data:/i.test(e))
1481
1571
  return e;
1482
- }, pi = (t) => Object.entries(t).filter(([, e]) => e != null && e !== !1 && e !== "").map(([e, n]) => n === !0 ? ` ${e}` : ` ${e}="${ai(n)}"`).join(""), L = (...t) => t.filter(Boolean).join(" ").split(/\s+/).filter(Boolean).join(" "), fi = {
1572
+ }, hi = /* @__PURE__ */ new Set(["alt"]), di = (t) => Object.entries(t).filter(
1573
+ ([e, n]) => n != null && n !== !1 && (n !== "" || hi.has(e))
1574
+ ).map(([e, n]) => n === !0 ? ` ${e}` : ` ${e}="${pi(n)}"`).join(""), O = (...t) => t.filter(Boolean).join(" ").split(/\s+/).filter(Boolean).join(" "), Di = {
1483
1575
  h1: E.headingStyle.h1,
1484
1576
  h2: E.headingStyle.h2,
1485
1577
  h3: E.headingStyle.h3,
@@ -1492,73 +1584,79 @@ const li = {
1492
1584
  code: E.codeStyle,
1493
1585
  table: E.tableBorderStyle,
1494
1586
  caption: E.captionStyle,
1495
- th: L(E.thStyle, E.tableBorderStyle),
1587
+ th: O(E.thStyle, E.tableBorderStyle),
1496
1588
  tr: E.tableBorderStyle,
1497
- td: L(E.tdStyle, E.tableBorderStyle),
1589
+ td: O(E.tdStyle, E.tableBorderStyle),
1498
1590
  a: E.linkStyle
1499
- }, hi = (t) => t.hasAttribute("data-sakura"), di = (t, e) => {
1500
- const n = L(t.getAttribute("class") ?? "", e);
1591
+ }, gi = (t) => t.hasAttribute("data-styled"), mi = (t) => Array.from(
1592
+ /* @__PURE__ */ new Set([
1593
+ "noopener",
1594
+ "noreferrer",
1595
+ ...(t ?? "").split(/\s+/).filter(Boolean)
1596
+ ])
1597
+ ).join(" "), Fi = (t, e) => {
1598
+ const n = O(t.getAttribute("class") ?? "", e);
1501
1599
  n && t.setAttribute("class", n);
1502
- }, Di = /* @__PURE__ */ new Set(["h1", "h2", "h3", "h4", "h5", "h6"]), gi = (t, e) => {
1503
- if (t.querySelector("[data-sakura-new-tab]")) return;
1600
+ }, Ai = /* @__PURE__ */ new Set(["h1", "h2", "h3", "h4", "h5", "h6"]), Ei = (t, e) => {
1601
+ if (t.querySelector("[data-new-tab]")) return;
1504
1602
  const n = e.createElement("span");
1505
- n.setAttribute("aria-hidden", "true"), n.setAttribute("data-sakura-new-tab", "true"), n.setAttribute(
1603
+ n.setAttribute("aria-hidden", "true"), n.setAttribute("data-new-tab", "true"), n.setAttribute(
1506
1604
  "class",
1507
- L(E.iconSizeStyle[16], E.iconStyle, "ml-0.5")
1605
+ O(E.iconSizeStyle[16], E.iconStyle, "ml-0.5")
1508
1606
  ), n.textContent = "open_in_new";
1509
1607
  const r = e.createElement("span");
1510
1608
  r.setAttribute("class", "sr-only"), r.textContent = "Opens in new tab", t.append(n, r);
1511
- }, mi = (t) => Math.min(6, Math.max(1, t)), Fi = (t, e, n) => {
1512
- const { shiftHeading: r, tocMaxDepth: s } = n, u = new ui(), l = [];
1609
+ }, bi = (t) => Math.min(6, Math.max(1, t)), ki = (t, e, n) => {
1610
+ const { shiftHeading: r, tocMaxDepth: s } = n, o = new li(), l = [];
1513
1611
  if (r !== 0)
1514
- for (const o of Array.from(
1612
+ for (const u of Array.from(
1515
1613
  t.querySelectorAll("h1,h2,h3,h4,h5,h6")
1516
1614
  )) {
1517
- const c = Number(o.tagName[1]), h = e.createElement(
1518
- `h${mi(c + r)}`
1615
+ const c = Number(u.tagName[1]), h = e.createElement(
1616
+ `h${bi(c + r)}`
1519
1617
  );
1520
- for (const g of Array.from(o.attributes))
1618
+ for (const g of Array.from(u.attributes))
1521
1619
  h.setAttribute(g.name, g.value);
1522
- h.innerHTML = o.innerHTML, o.replaceWith(h);
1523
- }
1524
- for (const o of Array.from(t.querySelectorAll("*"))) {
1525
- const c = o.tagName.toLowerCase();
1526
- if (Di.has(c)) {
1527
- const g = o.textContent ?? "", m = o.getAttribute("id");
1528
- m && u.slug(m);
1529
- const k = m || u.slug(g);
1530
- o.setAttribute("id", k), l.push({ id: k, depth: Number(c[1]) - r, value: g });
1531
- }
1532
- if (hi(o)) continue;
1533
- c === "a" && ((o.getAttribute("href") ?? "").startsWith("http") || o.getAttribute("target") === "_blank") && (o.setAttribute("target", "_blank"), o.setAttribute("rel", "noopener noreferrer"), gi(o, e));
1534
- const h = fi[c];
1535
- h && di(o, h);
1536
- }
1537
- for (const o of Array.from(t.querySelectorAll("table"))) {
1538
- if (o.parentElement?.dataset?.sakuraTableContainer === "true") continue;
1620
+ h.innerHTML = u.innerHTML, u.replaceWith(h);
1621
+ }
1622
+ for (const u of Array.from(t.querySelectorAll("*"))) {
1623
+ const c = u.tagName.toLowerCase();
1624
+ if (Ai.has(c)) {
1625
+ const g = u.textContent ?? "", m = u.getAttribute("id");
1626
+ m && o.slug(m);
1627
+ const k = m || o.slug(g);
1628
+ u.setAttribute("id", k), l.push({ id: k, depth: Number(c[1]) - r, value: g });
1629
+ }
1630
+ if (gi(u)) continue;
1631
+ c === "a" && ((u.getAttribute("href") ?? "").startsWith("http") || u.getAttribute("target") === "_blank") && (u.setAttribute("target", "_blank"), u.setAttribute("rel", mi(u.getAttribute("rel"))), Ei(u, e));
1632
+ const h = Di[c];
1633
+ h && Fi(u, h);
1634
+ }
1635
+ for (const u of Array.from(t.querySelectorAll("table"))) {
1636
+ if (u.parentElement?.dataset?.tableContainer === "true") continue;
1539
1637
  const h = e.createElement("div");
1540
- h.setAttribute("class", L(E.overflowContainerStyle)), h.dataset.sakuraTableContainer = "true", o.replaceWith(h), h.appendChild(o);
1638
+ h.setAttribute("class", O(E.overflowContainerStyle)), h.dataset.tableContainer = "true", u.replaceWith(h), h.appendChild(u);
1541
1639
  }
1542
1640
  return {
1543
- headings: l.filter((o) => o.depth <= s)
1641
+ headings: ii(l.filter((u) => u.depth <= s))
1544
1642
  };
1545
- }, Kt = /([#.])?([A-Za-z_:][-A-Za-z0-9_.:]*)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'{}]+)))?/g, vr = "#id", Ai = (t) => {
1643
+ }, Kt = /([#.])?([A-Za-z_:][-A-Za-z0-9_.:]*)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'{}]+)))?/g, Or = "#id", Ci = (t) => {
1546
1644
  const e = {};
1547
1645
  if (!t) return e;
1548
1646
  Kt.lastIndex = 0;
1549
1647
  let n = Kt.exec(t);
1550
1648
  for (; n !== null; ) {
1551
- const [, r, s, u, l, o] = n, c = u ?? l ?? o;
1552
- r === "#" ? e[vr] = s : r === "." ? e.class = e.class ? `${e.class} ${s}` : s : e[s] = c ?? "", n = Kt.exec(t);
1649
+ const [, r, s, o, l, u] = n, c = o ?? l ?? u;
1650
+ r === "#" ? e[Or] = s : r === "." ? e.class = e.class ? `${e.class} ${s}` : s : e[s] = c ?? "", n = Kt.exec(t);
1553
1651
  }
1554
1652
  return e;
1555
- }, sr = (t, e, n, r) => {
1653
+ }, ir = (t, e, n, r) => {
1556
1654
  if (t[e] !== n) return null;
1557
1655
  let s = 0;
1558
- for (let u = e; u < t.length; u++) {
1559
- const l = t[u];
1656
+ for (let o = e; o < t.length; o++) {
1657
+ const l = t[o];
1560
1658
  if (l === "\\") {
1561
- u++;
1659
+ o++;
1562
1660
  continue;
1563
1661
  }
1564
1662
  if (l === `
@@ -1566,90 +1664,101 @@ const li = {
1566
1664
  if (l === n)
1567
1665
  s++;
1568
1666
  else if (l === r && (s--, s === 0))
1569
- return { value: t.slice(e + 1, u), end: u + 1 };
1667
+ return { value: t.slice(e + 1, o), end: o + 1 };
1570
1668
  }
1571
1669
  return null;
1572
- }, Or = (t, e) => {
1670
+ }, Lr = (t, e) => {
1573
1671
  let n = null;
1574
- const r = sr(t, e, "[", "]");
1672
+ const r = ir(t, e, "[", "]");
1575
1673
  r && (n = r.value, e = r.end);
1576
1674
  let s = {};
1577
- const u = sr(t, e, "{", "}");
1578
- return u && (s = Ai(u.value), e = u.end), { label: n, attrs: s, end: e };
1579
- }, J = "container", pe = "leaf", Lt = "text", Ei = {
1675
+ const o = ir(t, e, "{", "}");
1676
+ return o && (s = Ci(o.value), e = o.end), { label: n, attrs: s, end: e };
1677
+ }, J = "container", se = "leaf", Lt = "text", xi = {
1580
1678
  card: [J],
1581
- "card-img": [pe],
1582
- "card-title": [pe, J],
1583
- "card-description": [pe, J],
1584
- "card-footer": [pe, J],
1679
+ "card-img": [se],
1680
+ "card-title": [se, J],
1681
+ "card-description": [se, J],
1682
+ "card-footer": [se, J],
1585
1683
  faq: [J],
1586
- "faq-q": [pe, J],
1587
- "faq-a": [pe, J],
1684
+ "faq-q": [se, J],
1685
+ "faq-a": [se, J],
1588
1686
  cell: [J],
1589
- "cell-img": [pe],
1590
- youtube: [pe, J],
1687
+ "cell-img": [se],
1688
+ img: [se],
1689
+ youtube: [se, J],
1591
1690
  "link-button": [Lt]
1592
- }, Lr = /^grid-cols-(?:1[0-2]|[1-9])$/, $r = (t, e) => Lr.test(t) ? e === J : (Ei[t] ?? []).includes(e), bi = L(E.cardImgStyle, "w-full aspect-[352/226]"), ki = (t, e) => `<span aria-hidden="true" class="${L(
1691
+ }, $r = /^grid-cols-(?:1[0-2]|[1-9])$/, Pr = (t, e) => $r.test(t) ? e === J : (xi[t] ?? []).includes(e), Ti = O(E.cardImgStyle, "w-full aspect-[352/226]"), yi = (t, e) => `<span aria-hidden="true" class="${O(
1593
1692
  E.iconSizeStyle[16],
1594
1693
  E.iconStyle
1595
- )}">${t}</span><span class="sr-only">${e}</span>`, Ci = {
1694
+ )}">${t}</span><span class="sr-only">${e}</span>`, _i = {
1596
1695
  card: ({ token: t, attrs: e, root: n, body: r, nl: s }) => {
1597
- const u = !!t.linked, l = L(
1696
+ const o = !!t.linked, l = O(
1598
1697
  E.cardStyle,
1599
- u && E.linkCardPositionStyle,
1600
- u && E.linkCardHoverStyle,
1601
- u && E.linkCardFocusStyle,
1698
+ o && E.linkCardPositionStyle,
1699
+ o && E.linkCardHoverStyle,
1700
+ o && E.linkCardFocusStyle,
1602
1701
  e.class
1603
- ), o = `<div${n({ class: l })}>${r()}</div>`;
1604
- return t.listed ? `<li class="sm:grid">${o}</li>${s}` : `${o}${s}`;
1702
+ ), u = `<div${n({ class: l })}>${r()}</div>`;
1703
+ return t.listed ? `<li class="sm:grid">${u}</li>${s}` : `${u}${s}`;
1605
1704
  },
1606
1705
  "card-img": ({ attrs: t, root: e, nl: n }) => `<img${e({
1607
- class: L(bi, t.class),
1608
- src: Ot(t.src),
1706
+ class: O(Ti, t.class),
1707
+ src: at(t.src),
1609
1708
  alt: t.alt ?? ""
1610
1709
  })}>${n}`,
1611
- "card-title": ({ token: t, attrs: e, root: n, own: r, body: s, nl: u, options: l }) => {
1612
- const o = l.cardHeadingLevel, c = t.inherited ? Ot(t.inherited.href) : void 0;
1613
- return c ? `<${o}${n({
1614
- class: L(E.cardHeaderStyle, E.linkCardHeadingStyle)
1710
+ "card-title": ({ token: t, attrs: e, root: n, own: r, body: s, nl: o, options: l }) => {
1711
+ const u = l.cardHeadingLevel, c = t.inherited ? at(t.inherited.href) : void 0;
1712
+ return c ? `<${u}${n({
1713
+ class: O(E.cardHeaderStyle, E.linkCardHeadingStyle)
1615
1714
  })}><a${r({
1616
- class: L(E.linkCardOverlayStyle),
1715
+ class: O(E.linkCardOverlayStyle),
1617
1716
  href: c
1618
- })}>${s()}</a></${o}>${u}` : `<${o}${n({
1619
- class: L(E.cardHeaderStyle, e.class)
1620
- })}>${s()}</${o}>${u}`;
1717
+ })}>${s()}</a></${u}>${o}` : `<${u}${n({
1718
+ class: O(E.cardHeaderStyle, e.class)
1719
+ })}>${s()}</${u}>${o}`;
1621
1720
  },
1622
1721
  "card-description": ({ attrs: t, root: e, body: n, nl: r }) => `<div${e({
1623
- class: L(E.cardBodyStyle, t.class)
1722
+ class: O(E.cardBodyStyle, t.class)
1624
1723
  })}>${n()}</div>${r}`,
1625
1724
  "card-footer": ({ token: t, attrs: e, root: n, body: r, nl: s }) => {
1626
- const u = !!t.inherited, l = L(
1725
+ const o = !!t.inherited, l = O(
1627
1726
  E.cardFooterPositionStyle,
1628
1727
  E.cardBodyStyle,
1629
- u && E.linkCardFooterStyle,
1728
+ o && E.linkCardFooterStyle,
1630
1729
  e.class
1631
1730
  );
1632
- if (u) {
1633
- const o = `<span class="${L(
1731
+ if (o) {
1732
+ const u = `<span class="${O(
1634
1733
  E.linkCardArrowStyle,
1635
1734
  E.linkCardArrowHoverStyle
1636
- )}">${ki("arrow_forward", "")}</span>`;
1637
- return `<div${n({ class: l })}><span>${r()}</span>${o}</div>${s}`;
1735
+ )}">${yi("arrow_forward", "")}</span>`;
1736
+ return `<div${n({ class: l })}><span>${r()}</span>${u}</div>${s}`;
1638
1737
  }
1639
1738
  return `<div${n({ class: l })}>${r()}</div>${s}`;
1640
1739
  }
1641
- }, xi = {
1642
- faq: ({ root: t, body: e, nl: n }) => `<dl${t({ class: L(E.faqStyle) })}>${e()}</dl>${n}`,
1740
+ }, wi = {
1741
+ faq: ({ root: t, body: e, nl: n }) => `<dl${t({ class: O(E.faqStyle) })}>${e()}</dl>${n}`,
1643
1742
  "faq-q": ({ root: t, body: e, nl: n }) => `<dt${t({
1644
- class: L(E.questionStyle, E.faqMarkerStyle)
1743
+ class: O(E.questionStyle, E.faqMarkerStyle)
1645
1744
  })}><span aria-hidden="true">Q</span><span>${e()}</span></dt>${n}`,
1646
1745
  "faq-a": ({ root: t, body: e, nl: n }) => `<dd${t({
1647
- class: L(E.answerStyle)
1648
- })}><span class="${L(
1746
+ class: O(E.answerStyle)
1747
+ })}><span class="${O(
1649
1748
  E.faqMarkerStyle,
1650
1749
  "!leading-none"
1651
1750
  )}" aria-hidden="true">A</span><span>${e()}</span></dd>${n}`
1652
- }, Ti = {
1751
+ }, Si = (t, e) => {
1752
+ const n = [];
1753
+ return t && n.push(`width:${t}px`), e && n.push(`height:${e}px`), t && n.push("max-width:100%"), n.length > 0 ? n.join(";") : void 0;
1754
+ }, Ri = {
1755
+ img: ({ attrs: t, root: e, nl: n }) => `<img${e({
1756
+ class: O(t.class),
1757
+ src: at(t.src),
1758
+ alt: t.alt ?? "",
1759
+ style: Si(t.width, t.height)
1760
+ })}>${n}`
1761
+ }, Bi = {
1653
1762
  1: "md:grid-cols-1",
1654
1763
  2: "md:grid-cols-2",
1655
1764
  3: "md:grid-cols-3",
@@ -1662,66 +1771,67 @@ const li = {
1662
1771
  10: "md:grid-cols-6",
1663
1772
  11: "md:grid-cols-6",
1664
1773
  12: "md:grid-cols-12"
1665
- }, _i = ({ token: t, root: e, body: n, nl: r }) => {
1666
- const s = Number(t.name.slice(10)), u = L(
1774
+ }, vi = ({ token: t, root: e, body: n, nl: r }) => {
1775
+ const s = Number(t.name.slice(10)), o = O(
1667
1776
  "flex flex-col md:grid",
1668
- Ti[s],
1777
+ Bi[s],
1669
1778
  "gap-8"
1670
1779
  ), l = t.listed ? "ul" : "div";
1671
- return `<${l}${e({ class: u })}>${n()}</${l}>${r}`;
1672
- }, yi = {
1780
+ return `<${l}${e({ class: o })}>${n()}</${l}>${r}`;
1781
+ }, Oi = {
1673
1782
  cell: ({ attrs: t, root: e, body: n, nl: r }) => `<div${e({ class: t.class })}>${n()}</div>${r}`,
1674
1783
  "cell-img": ({ attrs: t, root: e, nl: n }) => `<img${e({
1675
- class: L("mb-4", t.class),
1676
- src: Ot(t.src),
1784
+ class: O("mb-4", t.class),
1785
+ src: at(t.src),
1677
1786
  alt: t.alt ?? ""
1678
1787
  })}>${n}`
1679
- }, wi = L(
1788
+ }, Li = O(
1680
1789
  E.buttonBaseStyle,
1681
1790
  E.getButtonVariantStyle("secondary"),
1682
1791
  E.getButtonSizeStyle("lg")
1683
- ), Si = {
1792
+ ), $i = {
1684
1793
  "link-button": ({ attrs: t, root: e, body: n }) => `<a${e({
1685
- class: wi,
1686
- href: Ot(t.href)
1794
+ class: Li,
1795
+ href: at(t.href)
1687
1796
  })}>${n()}</a>`
1688
- }, Ri = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture", Bi = "strict-origin-when-cross-origin", vi = /^[\w-]{11}$/, Oi = /(?:youtu\.be\/|[?&]v=|\/embed\/|\/shorts\/)([\w-]{11})/, Li = (t) => t ? vi.test(t) ? t : Oi.exec(t)?.[1] ?? t : "", $i = {
1797
+ }, Pi = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture", Ii = "strict-origin-when-cross-origin", Ni = /^[\w-]{11}$/, Mi = /(?:youtu\.be\/|[?&]v=|\/embed\/|\/shorts\/)([\w-]{11})/, zi = (t) => t ? Ni.test(t) ? t : Mi.exec(t)?.[1] ?? t : "", Ui = {
1689
1798
  youtube: ({ token: t, attrs: e, root: n, nl: r, parser: s }) => {
1690
- const u = s.parseInline(t.tokens, s.textRenderer);
1799
+ const o = s.parseInline(t.tokens, s.textRenderer);
1691
1800
  return `<iframe${n({
1692
- title: u,
1693
- src: `https://www.youtube-nocookie.com/embed/${encodeURIComponent(Li(e.video))}`,
1801
+ title: o,
1802
+ src: `https://www.youtube-nocookie.com/embed/${encodeURIComponent(zi(e.video))}`,
1694
1803
  class: "aspect-video w-full max-w-[470px]",
1695
1804
  style: e.width ? `width:${e.width}px` : void 0,
1696
1805
  frameborder: "0",
1697
- allow: Ri,
1698
- referrerpolicy: Bi,
1806
+ allow: Pi,
1807
+ referrerpolicy: Ii,
1699
1808
  allowfullscreen: !0,
1700
1809
  loading: "lazy"
1701
1810
  })}></iframe>${r}`;
1702
1811
  }
1703
- }, Ii = {
1704
- ...Ci,
1705
- ...yi,
1706
- ...xi,
1707
- ...$i,
1708
- ...Si
1709
- }, Pi = (t) => Ii[t] ?? (Lr.test(t) ? _i : void 0);
1710
- function Ni(t, e) {
1711
- const { name: n, kind: r, attrs: s, tokens: u } = t, l = r === Lt ? "" : `
1712
- `, o = (g) => pi({ ...g, "data-sakura": n }), c = {
1812
+ }, ji = {
1813
+ ..._i,
1814
+ ...Oi,
1815
+ ...wi,
1816
+ ...Ri,
1817
+ ...Ui,
1818
+ ...$i
1819
+ }, Hi = (t) => ji[t] ?? ($r.test(t) ? vi : void 0);
1820
+ function Wi(t, e) {
1821
+ const { name: n, kind: r, attrs: s, tokens: o } = t, l = r === Lt ? "" : `
1822
+ `, u = (g) => di({ ...g, "data-styled": n }), c = {
1713
1823
  token: t,
1714
1824
  attrs: s,
1715
1825
  nl: l,
1716
- own: o,
1717
- root: (g) => o({ ...g, id: s[vr] }),
1718
- body: () => r === J ? this.parser.parse(u) : this.parser.parseInline(u),
1826
+ own: u,
1827
+ root: (g) => u({ ...g, id: s[Or] }),
1828
+ body: () => r === J ? this.parser.parse(o) : this.parser.parseInline(o),
1719
1829
  parser: this.parser,
1720
1830
  options: e
1721
- }, h = Pi(n);
1831
+ }, h = Hi(n);
1722
1832
  return h ? h(c) : c.body() + l;
1723
1833
  }
1724
- const Mi = /^(:{2,})([A-Za-z][A-Za-z0-9_-]*)/, zi = /^:([A-Za-z][A-Za-z0-9_-]*)/, Ui = (t, e) => {
1834
+ const qi = /^(:{2,})([A-Za-z][A-Za-z0-9_-]*)/, Gi = /^:([A-Za-z][A-Za-z0-9_-]*)/, Yi = (t, e) => {
1725
1835
  const n = new RegExp(`^:{${e},}[ \\t]*$`);
1726
1836
  let r = 0;
1727
1837
  for (const s of t.split(`
@@ -1734,13 +1844,13 @@ const Mi = /^(:{2,})([A-Za-z][A-Za-z0-9_-]*)/, zi = /^:([A-Za-z][A-Za-z0-9_-]*)/
1734
1844
  r += s.length + 1;
1735
1845
  }
1736
1846
  return null;
1737
- }, ji = (t) => {
1847
+ }, Zi = (t) => {
1738
1848
  const e = /\n:{2,}[A-Za-z]/.exec(t);
1739
1849
  return e ? e.index : void 0;
1740
- }, Hi = (t) => {
1850
+ }, Xi = (t) => {
1741
1851
  const e = /:[A-Za-z][A-Za-z0-9_-]*\[/.exec(t);
1742
1852
  return e ? e.index : void 0;
1743
- }, qi = (t) => {
1853
+ }, Vi = (t) => {
1744
1854
  if (!/^grid-cols-\d+$/.test(t.name)) return;
1745
1855
  const e = t.tokens.filter((r) => r.type !== "space"), n = e.filter(
1746
1856
  (r) => r.type === "directive" && r.name === "card"
@@ -1749,7 +1859,7 @@ const Mi = /^(:{2,})([A-Za-z][A-Za-z0-9_-]*)/, zi = /^:([A-Za-z][A-Za-z0-9_-]*)/
1749
1859
  t.listed = !0;
1750
1860
  for (const r of n) r.listed = !0;
1751
1861
  }
1752
- }, Gi = (t) => {
1862
+ }, Qi = (t) => {
1753
1863
  if (t.name !== "card" || !t.attrs.href) return;
1754
1864
  const e = t.tokens;
1755
1865
  if (e.some(
@@ -1760,34 +1870,34 @@ const Mi = /^(:{2,})([A-Za-z][A-Za-z0-9_-]*)/, zi = /^:([A-Za-z][A-Za-z0-9_-]*)/
1760
1870
  r.type === "directive" && (r.name === "card-title" || r.name === "card-footer") && (r.inherited = { behavior: "link", href: t.attrs.href ?? "" });
1761
1871
  }
1762
1872
  };
1763
- function Wi(t) {
1764
- const e = Mi.exec(t);
1873
+ function Ki(t) {
1874
+ const e = qi.exec(t);
1765
1875
  if (!e) return;
1766
- const [, n, r] = e, s = n.length >= 3 ? J : pe;
1767
- if (!$r(r, s)) return;
1768
- const u = Or(t, e[0].length), l = /^[ \t]*(?:\n|$)/.exec(t.slice(u.end));
1876
+ const [, n, r] = e, s = n.length >= 3 ? J : se;
1877
+ if (!Pr(r, s)) return;
1878
+ const o = Lr(t, e[0].length), l = /^[ \t]*(?:\n|$)/.exec(t.slice(o.end));
1769
1879
  if (!l) return;
1770
- const o = u.end + l[0].length, c = {
1880
+ const u = o.end + l[0].length, c = {
1771
1881
  type: "directive",
1772
1882
  kind: s,
1773
1883
  name: r,
1774
- attrs: u.attrs,
1884
+ attrs: o.attrs,
1775
1885
  tokens: [],
1776
- raw: t.slice(0, o)
1886
+ raw: t.slice(0, u)
1777
1887
  };
1778
- if (s === pe)
1779
- return u.label && this.lexer.inline(u.label, c.tokens), c;
1780
- const h = t.slice(o), g = Ui(h, n.length);
1781
- return c.raw = t.slice(0, o + (g ? g.rawEnd : h.length)), c.tokens = this.lexer.blockTokens(
1888
+ if (s === se)
1889
+ return o.label && this.lexer.inline(o.label, c.tokens), c;
1890
+ const h = t.slice(u), g = Yi(h, n.length);
1891
+ return c.raw = t.slice(0, u + (g ? g.rawEnd : h.length)), c.tokens = this.lexer.blockTokens(
1782
1892
  g ? h.slice(0, g.contentEnd) : h
1783
- ), Gi(c), qi(c), c;
1893
+ ), Qi(c), Vi(c), c;
1784
1894
  }
1785
- function Yi(t) {
1786
- const e = zi.exec(t);
1895
+ function Ji(t) {
1896
+ const e = Gi.exec(t);
1787
1897
  if (!e) return;
1788
1898
  const [, n] = e;
1789
- if (!$r(n, Lt)) return;
1790
- const r = Or(t, e[0].length);
1899
+ if (!Pr(n, Lt)) return;
1900
+ const r = Lr(t, e[0].length);
1791
1901
  if (r.label !== null)
1792
1902
  return {
1793
1903
  type: "directive",
@@ -1798,21 +1908,21 @@ function Yi(t) {
1798
1908
  raw: t.slice(0, r.end)
1799
1909
  };
1800
1910
  }
1801
- const Zi = (t) => ({
1911
+ const eo = (t) => ({
1802
1912
  extensions: [
1803
1913
  {
1804
1914
  name: "directive",
1805
1915
  level: "inline",
1806
- start: Hi,
1807
- tokenizer: Yi
1916
+ start: Xi,
1917
+ tokenizer: Ji
1808
1918
  },
1809
1919
  {
1810
1920
  name: "directive",
1811
1921
  level: "block",
1812
- start: ji,
1813
- tokenizer: Wi,
1922
+ start: Zi,
1923
+ tokenizer: Ki,
1814
1924
  renderer(e) {
1815
- return Ni.call(
1925
+ return Wi.call(
1816
1926
  this,
1817
1927
  e,
1818
1928
  t
@@ -1821,20 +1931,20 @@ const Zi = (t) => ({
1821
1931
  }
1822
1932
  ]
1823
1933
  });
1824
- function ir(t, e) {
1934
+ function or(t, e) {
1825
1935
  (e == null || e > t.length) && (e = t.length);
1826
1936
  for (var n = 0, r = Array(e); n < e; n++) r[n] = t[n];
1827
1937
  return r;
1828
1938
  }
1829
- function Xi(t) {
1939
+ function to(t) {
1830
1940
  if (Array.isArray(t)) return t;
1831
1941
  }
1832
- function Vi(t, e) {
1942
+ function no(t, e) {
1833
1943
  var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
1834
1944
  if (n != null) {
1835
- var r, s, u, l, o = [], c = !0, h = !1;
1945
+ var r, s, o, l, u = [], c = !0, h = !1;
1836
1946
  try {
1837
- if (u = (n = n.call(t)).next, e !== 0) for (; !(c = (r = u.call(n)).done) && (o.push(r.value), o.length !== e); c = !0) ;
1947
+ if (o = (n = n.call(t)).next, e !== 0) for (; !(c = (r = o.call(n)).done) && (u.push(r.value), u.length !== e); c = !0) ;
1838
1948
  } catch (g) {
1839
1949
  h = !0, s = g;
1840
1950
  } finally {
@@ -1844,25 +1954,25 @@ function Vi(t, e) {
1844
1954
  if (h) throw s;
1845
1955
  }
1846
1956
  }
1847
- return o;
1957
+ return u;
1848
1958
  }
1849
1959
  }
1850
- function Qi() {
1960
+ function ro() {
1851
1961
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1852
1962
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1853
1963
  }
1854
- function Ki(t, e) {
1855
- return Xi(t) || Vi(t, e) || Ji(t, e) || Qi();
1964
+ function so(t, e) {
1965
+ return to(t) || no(t, e) || io(t, e) || ro();
1856
1966
  }
1857
- function Ji(t, e) {
1967
+ function io(t, e) {
1858
1968
  if (t) {
1859
- if (typeof t == "string") return ir(t, e);
1969
+ if (typeof t == "string") return or(t, e);
1860
1970
  var n = {}.toString.call(t).slice(8, -1);
1861
- return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ir(t, e) : void 0;
1971
+ return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? or(t, e) : void 0;
1862
1972
  }
1863
1973
  }
1864
- const Ir = Object.entries, ur = Object.setPrototypeOf, eu = Object.isFrozen, tu = Object.getPrototypeOf, nu = Object.getOwnPropertyDescriptor;
1865
- let N = Object.freeze, z = Object.seal, He = Object.create, Pr = typeof Reflect < "u" && Reflect, an = Pr.apply, cn = Pr.construct;
1974
+ const Ir = Object.entries, ur = Object.setPrototypeOf, oo = Object.isFrozen, uo = Object.getPrototypeOf, lo = Object.getOwnPropertyDescriptor;
1975
+ let N = Object.freeze, z = Object.seal, He = Object.create, Nr = typeof Reflect < "u" && Reflect, an = Nr.apply, cn = Nr.construct;
1866
1976
  N || (N = function(e) {
1867
1977
  return e;
1868
1978
  });
@@ -1870,8 +1980,8 @@ z || (z = function(e) {
1870
1980
  return e;
1871
1981
  });
1872
1982
  an || (an = function(e, n) {
1873
- for (var r = arguments.length, s = new Array(r > 2 ? r - 2 : 0), u = 2; u < r; u++)
1874
- s[u - 2] = arguments[u];
1983
+ for (var r = arguments.length, s = new Array(r > 2 ? r - 2 : 0), o = 2; o < r; o++)
1984
+ s[o - 2] = arguments[o];
1875
1985
  return e.apply(n, s);
1876
1986
  });
1877
1987
  cn || (cn = function(e) {
@@ -1879,8 +1989,8 @@ cn || (cn = function(e) {
1879
1989
  r[s - 1] = arguments[s];
1880
1990
  return new e(...r);
1881
1991
  });
1882
- const Se = P(Array.prototype.forEach), ru = P(Array.prototype.lastIndexOf), or = P(Array.prototype.pop), rt = P(Array.prototype.push), su = P(Array.prototype.splice), qe = Array.isArray, lt = P(String.prototype.toLowerCase), Jt = P(String.prototype.toString), lr = P(String.prototype.match), st = P(String.prototype.replace), ar = P(String.prototype.indexOf), iu = P(String.prototype.trim), uu = P(Number.prototype.toString), ou = P(Boolean.prototype.toString), cr = typeof BigInt > "u" ? null : P(BigInt.prototype.toString), pr = typeof Symbol > "u" ? null : P(Symbol.prototype.toString), Z = P(Object.prototype.hasOwnProperty), it = P(Object.prototype.toString), j = P(RegExp.prototype.test), we = lu(TypeError);
1883
- function P(t) {
1992
+ const Se = I(Array.prototype.forEach), ao = I(Array.prototype.lastIndexOf), lr = I(Array.prototype.pop), rt = I(Array.prototype.push), co = I(Array.prototype.splice), We = Array.isArray, lt = I(String.prototype.toLowerCase), Jt = I(String.prototype.toString), ar = I(String.prototype.match), st = I(String.prototype.replace), cr = I(String.prototype.indexOf), po = I(String.prototype.trim), fo = I(Number.prototype.toString), ho = I(Boolean.prototype.toString), pr = typeof BigInt > "u" ? null : I(BigInt.prototype.toString), fr = typeof Symbol > "u" ? null : I(Symbol.prototype.toString), Z = I(Object.prototype.hasOwnProperty), it = I(Object.prototype.toString), j = I(RegExp.prototype.test), we = Do(TypeError);
1993
+ function I(t) {
1884
1994
  return function(e) {
1885
1995
  e instanceof RegExp && (e.lastIndex = 0);
1886
1996
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), s = 1; s < n; s++)
@@ -1888,29 +1998,29 @@ function P(t) {
1888
1998
  return an(t, e, r);
1889
1999
  };
1890
2000
  }
1891
- function lu(t) {
2001
+ function Do(t) {
1892
2002
  return function() {
1893
2003
  for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
1894
2004
  n[r] = arguments[r];
1895
2005
  return cn(t, n);
1896
2006
  };
1897
2007
  }
1898
- function _(t, e) {
2008
+ function y(t, e) {
1899
2009
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : lt;
1900
- if (ur && ur(t, null), !qe(e))
2010
+ if (ur && ur(t, null), !We(e))
1901
2011
  return t;
1902
2012
  let r = e.length;
1903
2013
  for (; r--; ) {
1904
2014
  let s = e[r];
1905
2015
  if (typeof s == "string") {
1906
- const u = n(s);
1907
- u !== s && (eu(e) || (e[r] = u), s = u);
2016
+ const o = n(s);
2017
+ o !== s && (oo(e) || (e[r] = o), s = o);
1908
2018
  }
1909
2019
  t[s] = !0;
1910
2020
  }
1911
2021
  return t;
1912
2022
  }
1913
- function au(t) {
2023
+ function go(t) {
1914
2024
  for (let e = 0; e < t.length; e++)
1915
2025
  Z(t, e) || (t[e] = null);
1916
2026
  return t;
@@ -1918,24 +2028,24 @@ function au(t) {
1918
2028
  function V(t) {
1919
2029
  const e = He(null);
1920
2030
  for (const r of Ir(t)) {
1921
- var n = Ki(r, 2);
1922
- const s = n[0], u = n[1];
1923
- Z(t, s) && (qe(u) ? e[s] = au(u) : u && typeof u == "object" && u.constructor === Object ? e[s] = V(u) : e[s] = u);
2031
+ var n = so(r, 2);
2032
+ const s = n[0], o = n[1];
2033
+ Z(t, s) && (We(o) ? e[s] = go(o) : o && typeof o == "object" && o.constructor === Object ? e[s] = V(o) : e[s] = o);
1924
2034
  }
1925
2035
  return e;
1926
2036
  }
1927
- function cu(t) {
2037
+ function mo(t) {
1928
2038
  switch (typeof t) {
1929
2039
  case "string":
1930
2040
  return t;
1931
2041
  case "number":
1932
- return uu(t);
2042
+ return fo(t);
1933
2043
  case "boolean":
1934
- return ou(t);
2044
+ return ho(t);
1935
2045
  case "bigint":
1936
- return cr ? cr(t) : "0";
2046
+ return pr ? pr(t) : "0";
1937
2047
  case "symbol":
1938
- return pr ? pr(t) : "Symbol()";
2048
+ return fr ? fr(t) : "Symbol()";
1939
2049
  case "undefined":
1940
2050
  return it(t);
1941
2051
  case "function":
@@ -1955,34 +2065,34 @@ function cu(t) {
1955
2065
  }
1956
2066
  function re(t, e) {
1957
2067
  for (; t !== null; ) {
1958
- const r = nu(t, e);
2068
+ const r = lo(t, e);
1959
2069
  if (r) {
1960
2070
  if (r.get)
1961
- return P(r.get);
2071
+ return I(r.get);
1962
2072
  if (typeof r.value == "function")
1963
- return P(r.value);
2073
+ return I(r.value);
1964
2074
  }
1965
- t = tu(t);
2075
+ t = uo(t);
1966
2076
  }
1967
2077
  function n() {
1968
2078
  return null;
1969
2079
  }
1970
2080
  return n;
1971
2081
  }
1972
- function pu(t) {
2082
+ function Fo(t) {
1973
2083
  try {
1974
2084
  return j(t, ""), !0;
1975
2085
  } catch {
1976
2086
  return !1;
1977
2087
  }
1978
2088
  }
1979
- const fr = N(["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"]), en = N(["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"]), tn = N(["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"]), fu = N(["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"]), nn = N(["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"]), hu = N(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), hr = N(["#text"]), dr = N(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "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"]), rn = N(["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", "dominant-baseline", "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", "pointer-events", "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-orientation", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "vector-effect", "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"]), Dr = N(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "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"]), wt = N(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), du = z(/{{[\w\W]*|^[\w\W]*}}/g), Du = z(/<%[\w\W]*|^[\w\W]*%>/g), gu = z(/\${[\w\W]*/g), mu = z(/^data-[\-\w.\u00B7-\uFFFF]+$/), Fu = z(/^aria-[\-\w]+$/), gr = z(
2089
+ const hr = N(["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"]), en = N(["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"]), tn = N(["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"]), Ao = N(["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"]), nn = N(["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"]), Eo = N(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), dr = N(["#text"]), Dr = N(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "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"]), rn = N(["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", "dominant-baseline", "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", "pointer-events", "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-orientation", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "vector-effect", "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"]), gr = N(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "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"]), St = N(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), bo = z(/{{[\w\W]*|^[\w\W]*}}/g), ko = z(/<%[\w\W]*|^[\w\W]*%>/g), Co = z(/\${[\w\W]*/g), xo = z(/^data-[\-\w.\u00B7-\uFFFF]+$/), To = z(/^aria-[\-\w]+$/), mr = z(
1980
2090
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
1981
2091
  // eslint-disable-line no-useless-escape
1982
- ), Au = z(/^(?:\w+script|data):/i), Eu = z(
2092
+ ), yo = z(/^(?:\w+script|data):/i), _o = z(
1983
2093
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
1984
2094
  // eslint-disable-line no-control-regex
1985
- ), bu = z(/^html$/i), ku = z(/^[a-z][.\w]*(-[.\w]+)+$/i), mr = z(/<[/\w!]/g), Fr = z(/<[/\w]/g), Cu = z(/<\/no(script|embed|frames)/i), xu = z(/\/>/i), X = {
2095
+ ), wo = z(/^html$/i), So = z(/^[a-z][.\w]*(-[.\w]+)+$/i), Fr = z(/<[/\w!]/g), Ar = z(/<[/\w]/g), Ro = z(/<\/no(script|embed|frames)/i), Bo = z(/\/>/i), X = {
1986
2096
  element: 1,
1987
2097
  attribute: 2,
1988
2098
  text: 3,
@@ -1998,22 +2108,22 @@ const fr = N(["a", "abbr", "acronym", "address", "area", "article", "aside", "au
1998
2108
  documentFragment: 11,
1999
2109
  notation: 12
2000
2110
  // Deprecated
2001
- }, Nr = ["style", "script", "xmp", "iframe", "noembed", "noframes", "plaintext", "noscript"], Tu = N(_({}, Nr)), _u = (function() {
2111
+ }, Mr = ["style", "script", "xmp", "iframe", "noembed", "noframes", "plaintext", "noscript"], vo = N(y({}, Mr)), Oo = (function() {
2002
2112
  const t = {};
2003
- return Se(Nr, (e) => {
2113
+ return Se(Mr, (e) => {
2004
2114
  t[e] = z(new RegExp("</" + e + "(?=[\\t\\n\\f\\r />])", "i"));
2005
2115
  }), N(t);
2006
- })(), yu = function() {
2116
+ })(), Lo = function() {
2007
2117
  return typeof window > "u" ? null : window;
2008
- }, wu = function(e, n) {
2118
+ }, $o = function(e, n) {
2009
2119
  if (typeof e != "object" || typeof e.createPolicy != "function")
2010
2120
  return null;
2011
2121
  let r = null;
2012
2122
  const s = "data-tt-policy-suffix";
2013
2123
  n && n.hasAttribute(s) && (r = n.getAttribute(s));
2014
- const u = "dompurify" + (r ? "#" + r : "");
2124
+ const o = "dompurify" + (r ? "#" + r : "");
2015
2125
  try {
2016
- return e.createPolicy(u, {
2126
+ return e.createPolicy(o, {
2017
2127
  createHTML(l) {
2018
2128
  return l;
2019
2129
  },
@@ -2022,9 +2132,9 @@ const fr = N(["a", "abbr", "acronym", "address", "area", "article", "aside", "au
2022
2132
  }
2023
2133
  });
2024
2134
  } catch {
2025
- return console.warn("TrustedTypes policy " + u + " could not be created."), null;
2135
+ return console.warn("TrustedTypes policy " + o + " could not be created."), null;
2026
2136
  }
2027
- }, Ar = function() {
2137
+ }, Er = function() {
2028
2138
  return {
2029
2139
  afterSanitizeAttributes: [],
2030
2140
  afterSanitizeElements: [],
@@ -2037,59 +2147,59 @@ const fr = N(["a", "abbr", "acronym", "address", "area", "article", "aside", "au
2037
2147
  uponSanitizeShadowNode: []
2038
2148
  };
2039
2149
  }, Ee = function(e, n, r, s) {
2040
- return Z(e, n) && qe(e[n]) ? _(s.base ? V(s.base) : {}, e[n], s.transform) : r;
2150
+ return Z(e, n) && We(e[n]) ? y(s.base ? V(s.base) : {}, e[n], s.transform) : r;
2041
2151
  }, sn = function(e, n, r) {
2042
2152
  const s = Z(e, n) ? e[n] : void 0;
2043
2153
  return s && typeof s == "object" ? V(s) : r();
2044
2154
  };
2045
- function Mr() {
2046
- let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : yu();
2047
- const e = (d) => Mr(d);
2155
+ function zr() {
2156
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Lo();
2157
+ const e = (d) => zr(d);
2048
2158
  if (e.version = "3.4.14", e.removed = [], !t || !t.document || t.document.nodeType !== X.document || !t.Element)
2049
2159
  return e.isSupported = !1, e;
2050
2160
  let n = t.document;
2051
2161
  const r = n, s = r.currentScript;
2052
2162
  t.DocumentFragment;
2053
- const u = t.HTMLTemplateElement, l = t.Node, o = t.Element, c = t.NodeFilter, h = t.NamedNodeMap;
2163
+ const o = t.HTMLTemplateElement, l = t.Node, u = t.Element, c = t.NodeFilter, h = t.NamedNodeMap;
2054
2164
  h === void 0 && (t.NamedNodeMap || t.MozNamedAttrMap), t.HTMLFormElement;
2055
- const g = t.DOMParser, m = t.trustedTypes, k = o.prototype, O = re(k, "cloneNode"), T = re(k, "remove"), G = re(k, "nextSibling"), U = re(k, "childNodes"), te = re(k, "parentNode"), be = re(k, "shadowRoot"), ke = re(k, "attributes"), ne = l && l.prototype ? re(l.prototype, "nodeType") : null, Q = l && l.prototype ? re(l.prototype, "nodeName") : null, K = l && l.prototype ? re(l.prototype, "ownerDocument") : null, Ce = function(i) {
2165
+ const g = t.DOMParser, m = t.trustedTypes, k = u.prototype, L = re(k, "cloneNode"), T = re(k, "remove"), q = re(k, "nextSibling"), U = re(k, "childNodes"), te = re(k, "parentNode"), be = re(k, "shadowRoot"), ke = re(k, "attributes"), ne = l && l.prototype ? re(l.prototype, "nodeType") : null, Q = l && l.prototype ? re(l.prototype, "nodeName") : null, K = l && l.prototype ? re(l.prototype, "ownerDocument") : null, Ce = function(i) {
2056
2166
  return ne ? ne(i) : i.nodeType;
2057
- }, We = function(i) {
2167
+ }, Ge = function(i) {
2058
2168
  return Q ? Q(i) : i.nodeName;
2059
2169
  };
2060
- if (typeof u == "function") {
2170
+ if (typeof o == "function") {
2061
2171
  const d = n.createElement("template");
2062
2172
  d.content && d.content.ownerDocument && (n = d.content.ownerDocument);
2063
2173
  }
2064
2174
  let M, fe = "", Ye, Oe = !1, de = 0;
2065
- const pt = function() {
2175
+ const ft = function() {
2066
2176
  if (de > 0)
2067
2177
  throw we('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');
2068
2178
  }, ue = function(i) {
2069
- pt(), de++;
2179
+ ft(), de++;
2070
2180
  try {
2071
2181
  return M.createHTML(i);
2072
2182
  } finally {
2073
2183
  de--;
2074
2184
  }
2075
- }, ft = function(i) {
2076
- pt(), de++;
2185
+ }, ht = function(i) {
2186
+ ft(), de++;
2077
2187
  try {
2078
2188
  return M.createScriptURL(i);
2079
2189
  } finally {
2080
2190
  de--;
2081
2191
  }
2082
- }, ht = function() {
2083
- return Oe || (Ye = wu(m, s), Oe = !0), Ye;
2192
+ }, dt = function() {
2193
+ return Oe || (Ye = $o(m, s), Oe = !0), Ye;
2084
2194
  }, xe = n, Le = xe.implementation, Ze = xe.createNodeIterator, f = xe.createDocumentFragment, C = xe.getElementsByTagName, S = r.importNode;
2085
- let b = Ar();
2195
+ let b = Er();
2086
2196
  e.isSupported = typeof Ir == "function" && typeof te == "function" && Le && Le.createHTMLDocument !== void 0;
2087
- const $e = du, Xe = Du, $ = gu, De = mu, Ve = Fu, It = Au, An = Eu, Ur = ku;
2088
- let En = gr, R = null;
2089
- const Pt = _({}, [...fr, ...en, ...tn, ...nn, ...hr]);
2197
+ const $e = bo, Xe = ko, $ = Co, De = xo, Ve = To, Pt = yo, An = _o, jr = So;
2198
+ let En = mr, R = null;
2199
+ const It = y({}, [...hr, ...en, ...tn, ...nn, ...dr]);
2090
2200
  let B = null;
2091
- const Nt = _({}, [...dr, ...rn, ...Dr, ...wt]);
2092
- let oe = Object.seal(He(null, {
2201
+ const Nt = y({}, [...Dr, ...rn, ...gr, ...St]);
2202
+ let le = Object.seal(He(null, {
2093
2203
  tagNameCheck: {
2094
2204
  writable: !0,
2095
2205
  configurable: !1,
@@ -2123,10 +2233,10 @@ function Mr() {
2123
2233
  value: null
2124
2234
  }
2125
2235
  }));
2126
- let kn = !0, Mt = !0, Cn = !1, xn = !0, me = !1, Te = !0, _e = !1, zt = !1, dt = null, Dt = null, Ut = !1, Ie = !1, gt = !1, mt = !1, Tn = !0, _n = !1;
2127
- const yn = "user-content-";
2128
- let jt = !0, Ht = !1, Pe = {}, Ne = null;
2129
- const wn = _({}, [
2236
+ let kn = !0, Mt = !0, Cn = !1, xn = !0, me = !1, Te = !0, ye = !1, zt = !1, Dt = null, gt = null, Ut = !1, Pe = !1, mt = !1, Ft = !1, Tn = !0, yn = !1;
2237
+ const _n = "user-content-";
2238
+ let jt = !0, Ht = !1, Ie = {}, Ne = null;
2239
+ const wn = y({}, [
2130
2240
  "annotation-xml",
2131
2241
  "audio",
2132
2242
  "colgroup",
@@ -2164,56 +2274,56 @@ function Mr() {
2164
2274
  "xmp"
2165
2275
  ]);
2166
2276
  let Sn = null;
2167
- const Rn = _({}, ["audio", "video", "img", "source", "image", "track"]);
2277
+ const Rn = y({}, ["audio", "video", "img", "source", "image", "track"]);
2168
2278
  let Bn = null;
2169
- const vn = _({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ft = "http://www.w3.org/1998/Math/MathML", At = "http://www.w3.org/2000/svg", le = "http://www.w3.org/1999/xhtml";
2170
- let Me = le, qt = !1, Gt = null;
2171
- const jr = _({}, [Ft, At, le], Jt), On = N(["mi", "mo", "mn", "ms", "mtext"]);
2172
- let Wt = _({}, On);
2279
+ const vn = y({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), At = "http://www.w3.org/1998/Math/MathML", Et = "http://www.w3.org/2000/svg", ae = "http://www.w3.org/1999/xhtml";
2280
+ let Me = ae, Wt = !1, qt = null;
2281
+ const Hr = y({}, [At, Et, ae], Jt), On = N(["mi", "mo", "mn", "ms", "mtext"]);
2282
+ let Gt = y({}, On);
2173
2283
  const Ln = N(["annotation-xml"]);
2174
- let Yt = _({}, Ln);
2175
- const Hr = _({}, ["title", "style", "font", "a", "script"]);
2284
+ let Yt = y({}, Ln);
2285
+ const Wr = y({}, ["title", "style", "font", "a", "script"]);
2176
2286
  let Ke = null;
2177
2287
  const qr = ["application/xhtml+xml", "text/html"], Gr = "text/html";
2178
- let I = null, ze = null;
2179
- const Wr = n.createElement("form"), $n = function(i) {
2288
+ let P = null, ze = null;
2289
+ const Yr = n.createElement("form"), $n = function(i) {
2180
2290
  return i instanceof RegExp || i instanceof Function;
2181
2291
  }, Zt = function() {
2182
2292
  let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2183
2293
  if (ze && ze === i)
2184
2294
  return;
2185
2295
  (!i || typeof i != "object") && (i = {}), i = V(i), Ke = // eslint-disable-next-line unicorn/prefer-includes
2186
- qr.indexOf(i.PARSER_MEDIA_TYPE) === -1 ? Gr : i.PARSER_MEDIA_TYPE, I = Ke === "application/xhtml+xml" ? Jt : lt, R = Ee(i, "ALLOWED_TAGS", Pt, {
2187
- transform: I
2296
+ qr.indexOf(i.PARSER_MEDIA_TYPE) === -1 ? Gr : i.PARSER_MEDIA_TYPE, P = Ke === "application/xhtml+xml" ? Jt : lt, R = Ee(i, "ALLOWED_TAGS", It, {
2297
+ transform: P
2188
2298
  }), B = Ee(i, "ALLOWED_ATTR", Nt, {
2189
- transform: I
2190
- }), Gt = Ee(i, "ALLOWED_NAMESPACES", jr, {
2299
+ transform: P
2300
+ }), qt = Ee(i, "ALLOWED_NAMESPACES", Hr, {
2191
2301
  transform: Jt
2192
2302
  }), Bn = Ee(i, "ADD_URI_SAFE_ATTR", vn, {
2193
- transform: I,
2303
+ transform: P,
2194
2304
  base: vn
2195
2305
  }), Sn = Ee(i, "ADD_DATA_URI_TAGS", Rn, {
2196
- transform: I,
2306
+ transform: P,
2197
2307
  base: Rn
2198
2308
  }), Ne = Ee(i, "FORBID_CONTENTS", wn, {
2199
- transform: I
2309
+ transform: P
2200
2310
  }), Qe = Ee(i, "FORBID_TAGS", V({}), {
2201
- transform: I
2311
+ transform: P
2202
2312
  }), bn = Ee(i, "FORBID_ATTR", V({}), {
2203
- transform: I
2204
- }), Pe = Z(i, "USE_PROFILES") ? i.USE_PROFILES && typeof i.USE_PROFILES == "object" ? V(i.USE_PROFILES) : i.USE_PROFILES : !1, kn = i.ALLOW_ARIA_ATTR !== !1, Mt = i.ALLOW_DATA_ATTR !== !1, Cn = i.ALLOW_UNKNOWN_PROTOCOLS || !1, xn = i.ALLOW_SELF_CLOSE_IN_ATTR !== !1, me = i.SAFE_FOR_TEMPLATES || !1, Te = i.SAFE_FOR_XML !== !1, _e = i.WHOLE_DOCUMENT || !1, Ie = i.RETURN_DOM || !1, gt = i.RETURN_DOM_FRAGMENT || !1, mt = i.RETURN_TRUSTED_TYPE || !1, Ut = i.FORCE_BODY || !1, Tn = i.SANITIZE_DOM !== !1, _n = i.SANITIZE_NAMED_PROPS || !1, jt = i.KEEP_CONTENT !== !1, Ht = i.IN_PLACE || !1, En = pu(i.ALLOWED_URI_REGEXP) ? i.ALLOWED_URI_REGEXP : gr, Me = typeof i.NAMESPACE == "string" ? i.NAMESPACE : le, Wt = sn(
2313
+ transform: P
2314
+ }), Ie = Z(i, "USE_PROFILES") ? i.USE_PROFILES && typeof i.USE_PROFILES == "object" ? V(i.USE_PROFILES) : i.USE_PROFILES : !1, kn = i.ALLOW_ARIA_ATTR !== !1, Mt = i.ALLOW_DATA_ATTR !== !1, Cn = i.ALLOW_UNKNOWN_PROTOCOLS || !1, xn = i.ALLOW_SELF_CLOSE_IN_ATTR !== !1, me = i.SAFE_FOR_TEMPLATES || !1, Te = i.SAFE_FOR_XML !== !1, ye = i.WHOLE_DOCUMENT || !1, Pe = i.RETURN_DOM || !1, mt = i.RETURN_DOM_FRAGMENT || !1, Ft = i.RETURN_TRUSTED_TYPE || !1, Ut = i.FORCE_BODY || !1, Tn = i.SANITIZE_DOM !== !1, yn = i.SANITIZE_NAMED_PROPS || !1, jt = i.KEEP_CONTENT !== !1, Ht = i.IN_PLACE || !1, En = Fo(i.ALLOWED_URI_REGEXP) ? i.ALLOWED_URI_REGEXP : mr, Me = typeof i.NAMESPACE == "string" ? i.NAMESPACE : ae, Gt = sn(
2205
2315
  i,
2206
2316
  "MATHML_TEXT_INTEGRATION_POINTS",
2207
- () => _({}, On)
2317
+ () => y({}, On)
2208
2318
  // Default built-in map
2209
2319
  ), Yt = sn(
2210
2320
  i,
2211
2321
  "HTML_INTEGRATION_POINTS",
2212
- () => _({}, Ln)
2322
+ () => y({}, Ln)
2213
2323
  // Default built-in map
2214
2324
  );
2215
2325
  const a = sn(i, "CUSTOM_ELEMENT_HANDLING", () => He(null));
2216
- if (oe = He(null), Z(a, "tagNameCheck") && $n(a.tagNameCheck) && (oe.tagNameCheck = a.tagNameCheck), Z(a, "attributeNameCheck") && $n(a.attributeNameCheck) && (oe.attributeNameCheck = a.attributeNameCheck), Z(a, "allowCustomizedBuiltInElements") && typeof a.allowCustomizedBuiltInElements == "boolean" && (oe.allowCustomizedBuiltInElements = a.allowCustomizedBuiltInElements), z(oe), me && (Mt = !1), gt && (Ie = !0), Pe && (R = _({}, hr), B = He(null), Pe.html === !0 && (_(R, fr), _(B, dr)), Pe.svg === !0 && (_(R, en), _(B, rn), _(B, wt)), Pe.svgFilters === !0 && (_(R, tn), _(B, rn), _(B, wt)), Pe.mathMl === !0 && (_(R, nn), _(B, Dr), _(B, wt))), ge.tagCheck = null, ge.attributeCheck = null, Z(i, "ADD_TAGS") && (typeof i.ADD_TAGS == "function" ? ge.tagCheck = i.ADD_TAGS : qe(i.ADD_TAGS) && (R === Pt && (R = V(R)), _(R, i.ADD_TAGS, I))), Z(i, "ADD_ATTR") && (typeof i.ADD_ATTR == "function" ? ge.attributeCheck = i.ADD_ATTR : qe(i.ADD_ATTR) && (B === Nt && (B = V(B)), _(B, i.ADD_ATTR, I))), Z(i, "ADD_FORBID_CONTENTS") && qe(i.ADD_FORBID_CONTENTS) && (Ne === wn && (Ne = V(Ne)), _(Ne, i.ADD_FORBID_CONTENTS, I)), jt && (R["#text"] = !0), _e && _(R, ["html", "head", "body"]), R.table && (_(R, ["tbody"]), delete Qe.tbody), i.TRUSTED_TYPES_POLICY) {
2326
+ if (le = He(null), Z(a, "tagNameCheck") && $n(a.tagNameCheck) && (le.tagNameCheck = a.tagNameCheck), Z(a, "attributeNameCheck") && $n(a.attributeNameCheck) && (le.attributeNameCheck = a.attributeNameCheck), Z(a, "allowCustomizedBuiltInElements") && typeof a.allowCustomizedBuiltInElements == "boolean" && (le.allowCustomizedBuiltInElements = a.allowCustomizedBuiltInElements), z(le), me && (Mt = !1), mt && (Pe = !0), Ie && (R = y({}, dr), B = He(null), Ie.html === !0 && (y(R, hr), y(B, Dr)), Ie.svg === !0 && (y(R, en), y(B, rn), y(B, St)), Ie.svgFilters === !0 && (y(R, tn), y(B, rn), y(B, St)), Ie.mathMl === !0 && (y(R, nn), y(B, gr), y(B, St))), ge.tagCheck = null, ge.attributeCheck = null, Z(i, "ADD_TAGS") && (typeof i.ADD_TAGS == "function" ? ge.tagCheck = i.ADD_TAGS : We(i.ADD_TAGS) && (R === It && (R = V(R)), y(R, i.ADD_TAGS, P))), Z(i, "ADD_ATTR") && (typeof i.ADD_ATTR == "function" ? ge.attributeCheck = i.ADD_ATTR : We(i.ADD_ATTR) && (B === Nt && (B = V(B)), y(B, i.ADD_ATTR, P))), Z(i, "ADD_FORBID_CONTENTS") && We(i.ADD_FORBID_CONTENTS) && (Ne === wn && (Ne = V(Ne)), y(Ne, i.ADD_FORBID_CONTENTS, P)), jt && (R["#text"] = !0), ye && y(R, ["html", "head", "body"]), R.table && (y(R, ["tbody"]), delete Qe.tbody), i.TRUSTED_TYPES_POLICY) {
2217
2327
  if (typeof i.TRUSTED_TYPES_POLICY.createHTML != "function")
2218
2328
  throw we('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
2219
2329
  if (typeof i.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -2225,22 +2335,22 @@ function Mr() {
2225
2335
  } catch (D) {
2226
2336
  throw M = p, D;
2227
2337
  }
2228
- } else i.TRUSTED_TYPES_POLICY === null ? (M = void 0, fe = "") : (M === void 0 && (M = ht()), M && typeof fe == "string" && (fe = ue("")));
2338
+ } else i.TRUSTED_TYPES_POLICY === null ? (M = void 0, fe = "") : (M === void 0 && (M = dt()), M && typeof fe == "string" && (fe = ue("")));
2229
2339
  N && N(i), ze = i;
2230
- }, In = _({}, [...en, ...tn, ...fu]), Pn = _({}, [...nn, ...hu]), Yr = function(i, a, p) {
2231
- return a.namespaceURI === le ? i === "svg" : a.namespaceURI === Ft ? i === "svg" && (p === "annotation-xml" || Wt[p]) : !!In[i];
2232
- }, Zr = function(i, a, p) {
2233
- return a.namespaceURI === le ? i === "math" : a.namespaceURI === At ? i === "math" && Yt[p] : !!Pn[i];
2340
+ }, Pn = y({}, [...en, ...tn, ...Ao]), In = y({}, [...nn, ...Eo]), Zr = function(i, a, p) {
2341
+ return a.namespaceURI === ae ? i === "svg" : a.namespaceURI === At ? i === "svg" && (p === "annotation-xml" || Gt[p]) : !!Pn[i];
2234
2342
  }, Xr = function(i, a, p) {
2235
- return a.namespaceURI === At && !Yt[p] || a.namespaceURI === Ft && !Wt[p] ? !1 : !Pn[i] && (Hr[i] || !In[i]);
2236
- }, Vr = function(i) {
2343
+ return a.namespaceURI === ae ? i === "math" : a.namespaceURI === Et ? i === "math" && Yt[p] : !!In[i];
2344
+ }, Vr = function(i, a, p) {
2345
+ return a.namespaceURI === Et && !Yt[p] || a.namespaceURI === At && !Gt[p] ? !1 : !In[i] && (Wr[i] || !Pn[i]);
2346
+ }, Qr = function(i) {
2237
2347
  let a = te(i);
2238
2348
  (!a || !a.tagName) && (a = {
2239
2349
  namespaceURI: Me,
2240
2350
  tagName: "template"
2241
2351
  });
2242
2352
  const p = lt(i.tagName), D = lt(a.tagName);
2243
- return Gt[i.namespaceURI] ? i.namespaceURI === At ? Yr(p, a, D) : i.namespaceURI === Ft ? Zr(p, a, D) : i.namespaceURI === le ? Xr(p, a, D) : !!(Ke === "application/xhtml+xml" && Gt[i.namespaceURI]) : !1;
2353
+ return qt[i.namespaceURI] ? i.namespaceURI === Et ? Zr(p, a, D) : i.namespaceURI === At ? Xr(p, a, D) : i.namespaceURI === ae ? Vr(p, a, D) : !!(Ke === "application/xhtml+xml" && qt[i.namespaceURI]) : !1;
2244
2354
  }, Fe = function(i) {
2245
2355
  rt(e.removed, {
2246
2356
  element: i
@@ -2260,8 +2370,8 @@ function Mr() {
2260
2370
  } catch {
2261
2371
  }
2262
2372
  }
2263
- }, Et = function(i) {
2264
- bt(i);
2373
+ }, bt = function(i) {
2374
+ kt(i);
2265
2375
  const a = U(i);
2266
2376
  if (a) {
2267
2377
  const D = [];
@@ -2280,7 +2390,7 @@ function Mr() {
2280
2390
  const F = p[D], A = F && F.name;
2281
2391
  typeof A == "string" && Nn(i, F, A);
2282
2392
  }
2283
- }, ye = function(i, a, p) {
2393
+ }, _e = function(i, a, p) {
2284
2394
  if (!p)
2285
2395
  try {
2286
2396
  p = a.getAttributeNode(i);
@@ -2300,7 +2410,7 @@ function Mr() {
2300
2410
  }
2301
2411
  }
2302
2412
  if (i === "is")
2303
- if (Ie || gt)
2413
+ if (Pe || mt)
2304
2414
  try {
2305
2415
  Fe(a);
2306
2416
  } catch {
@@ -2310,18 +2420,18 @@ function Mr() {
2310
2420
  a.setAttribute(i, "");
2311
2421
  } catch {
2312
2422
  }
2313
- }, Qr = function(i) {
2423
+ }, Kr = function(i) {
2314
2424
  const a = ke(i);
2315
2425
  if (a)
2316
2426
  for (let p = a.length - 1; p >= 0; --p) {
2317
2427
  const D = a[p], F = D && D.name;
2318
- typeof F != "string" || B[I(F)] || Nn(i, D, F);
2428
+ typeof F != "string" || B[P(F)] || Nn(i, D, F);
2319
2429
  }
2320
- }, bt = function(i) {
2430
+ }, kt = function(i) {
2321
2431
  const a = [i];
2322
2432
  for (; a.length > 0; ) {
2323
2433
  const p = a.pop();
2324
- Ce(p) === X.element && Qr(p);
2434
+ Ce(p) === X.element && Kr(p);
2325
2435
  const F = U(p);
2326
2436
  if (F)
2327
2437
  for (let A = F.length - 1; A >= 0; --A)
@@ -2329,13 +2439,13 @@ function Mr() {
2329
2439
  }
2330
2440
  }, Mn = function(i, a) {
2331
2441
  return Te ? i === "patchsrc" ? !0 : i === "for" && a !== "label" && a !== "output" : !1;
2332
- }, Kr = function(i) {
2442
+ }, Jr = function(i) {
2333
2443
  if (!Te)
2334
2444
  return;
2335
2445
  const a = [i];
2336
2446
  for (; a.length > 0; ) {
2337
2447
  const p = a.pop(), D = Ce(p);
2338
- if (D === X.processingInstruction || D === X.comment && j(Fr, p.data)) {
2448
+ if (D === X.processingInstruction || D === X.comment && j(Ar, p.data)) {
2339
2449
  try {
2340
2450
  T(p);
2341
2451
  } catch {
@@ -2343,7 +2453,7 @@ function Mr() {
2343
2453
  continue;
2344
2454
  }
2345
2455
  if (D === X.element) {
2346
- const A = p, w = I(We(p));
2456
+ const A = p, w = P(Ge(p));
2347
2457
  try {
2348
2458
  A.hasAttribute && A.hasAttribute("patchsrc") && A.removeAttribute("patchsrc"), A.hasAttribute && A.hasAttribute("for") && Mn("for", w) && A.removeAttribute("for");
2349
2459
  } catch {
@@ -2359,12 +2469,12 @@ function Mr() {
2359
2469
  if (Ut)
2360
2470
  i = "<remove></remove>" + i;
2361
2471
  else {
2362
- const A = lr(i, /^[\r\n\t ]+/);
2472
+ const A = ar(i, /^[\r\n\t ]+/);
2363
2473
  p = A && A[0];
2364
2474
  }
2365
- Ke === "application/xhtml+xml" && Me === le && (i = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + i + "</body></html>");
2475
+ Ke === "application/xhtml+xml" && Me === ae && (i = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + i + "</body></html>");
2366
2476
  const D = M ? ue(i) : i;
2367
- if (Me === le)
2477
+ if (Me === ae)
2368
2478
  try {
2369
2479
  a = new g().parseFromString(D, Ke);
2370
2480
  } catch {
@@ -2372,12 +2482,12 @@ function Mr() {
2372
2482
  if (!a || !a.documentElement) {
2373
2483
  a = Le.createDocument(Me, "template", null);
2374
2484
  try {
2375
- a.documentElement.innerHTML = qt ? fe : D;
2485
+ a.documentElement.innerHTML = Wt ? fe : D;
2376
2486
  } catch {
2377
2487
  }
2378
2488
  }
2379
2489
  const F = a.body || a.documentElement;
2380
- return i && p && F.insertBefore(n.createTextNode(p), F.childNodes[0] || null), Me === le ? C.call(a, _e ? "html" : "body")[0] : _e ? a.documentElement : F;
2490
+ return i && p && F.insertBefore(n.createTextNode(p), F.childNodes[0] || null), Me === ae ? C.call(a, ye ? "html" : "body")[0] : ye ? a.documentElement : F;
2381
2491
  }, Un = function(i) {
2382
2492
  const a = K ? K(i) : i.ownerDocument;
2383
2493
  return Ze.call(
@@ -2387,7 +2497,7 @@ function Mr() {
2387
2497
  c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION,
2388
2498
  null
2389
2499
  );
2390
- }, kt = function(i) {
2500
+ }, Ct = function(i) {
2391
2501
  return i = st(i, $e, " "), i = st(i, Xe, " "), i = st(i, $, " "), i;
2392
2502
  }, Xt = function(i) {
2393
2503
  var a;
@@ -2401,14 +2511,14 @@ function Mr() {
2401
2511
  );
2402
2512
  let F = D.nextNode();
2403
2513
  for (; F; )
2404
- F.data = kt(F.data), F = D.nextNode();
2514
+ F.data = Ct(F.data), F = D.nextNode();
2405
2515
  const A = (a = i.querySelectorAll) === null || a === void 0 ? void 0 : a.call(i, "template");
2406
2516
  A && Se(A, (w) => {
2407
2517
  Ue(w.content) && Xt(w.content);
2408
2518
  });
2409
- }, Ct = function(i) {
2519
+ }, xt = function(i) {
2410
2520
  const a = Q ? Q(i) : null;
2411
- return typeof a != "string" || I(a) !== "form" ? !1 : typeof i.nodeName != "string" || typeof i.textContent != "string" || typeof i.removeChild != "function" || // Realm-safe NamedNodeMap detection: equality against the cached
2521
+ return typeof a != "string" || P(a) !== "form" ? !1 : typeof i.nodeName != "string" || typeof i.textContent != "string" || typeof i.removeChild != "function" || // Realm-safe NamedNodeMap detection: equality against the cached
2412
2522
  // prototype getter. Clobbered .attributes (e.g. <input name="attributes">)
2413
2523
  // makes the direct read diverge from the cached read; a clean form
2414
2524
  // (same-realm OR foreign-realm) has both reads pointing at the same
@@ -2449,14 +2559,14 @@ function Mr() {
2449
2559
  return !1;
2450
2560
  }
2451
2561
  };
2452
- function ae(d, i, a) {
2562
+ function ce(d, i, a) {
2453
2563
  d.length !== 0 && Se(d, (p) => {
2454
2564
  p.call(e, i, a, ze);
2455
2565
  });
2456
2566
  }
2457
- const Jr = function(i, a) {
2458
- return !!(Te && i.hasChildNodes() && !Je(i.firstElementChild) && j(mr, i.textContent) && j(mr, i.innerHTML) || Te && i.namespaceURI === le && Tu[a] && (Je(i.firstElementChild) || typeof i.textContent == "string" && j(_u[a], i.textContent)) || i.nodeType === X.processingInstruction || Te && i.nodeType === X.comment && j(Fr, i.data));
2459
- }, xt = function(i, a) {
2567
+ const es = function(i, a) {
2568
+ return !!(Te && i.hasChildNodes() && !Je(i.firstElementChild) && j(Fr, i.textContent) && j(Fr, i.innerHTML) || Te && i.namespaceURI === ae && vo[a] && (Je(i.firstElementChild) || typeof i.textContent == "string" && j(Oo[a], i.textContent)) || i.nodeType === X.processingInstruction || Te && i.nodeType === X.comment && j(Ar, i.data));
2569
+ }, Tt = function(i, a) {
2460
2570
  if (i instanceof RegExp)
2461
2571
  return j(i, a);
2462
2572
  if (i instanceof Function) {
@@ -2465,16 +2575,16 @@ function Mr() {
2465
2575
  return !!i(a, ...D);
2466
2576
  }
2467
2577
  return !1;
2468
- }, es = function(i, a, p) {
2469
- if (!Qe[a] && Wn(a) && xt(oe.tagNameCheck, a))
2578
+ }, ts = function(i, a, p) {
2579
+ if (!Qe[a] && Gn(a) && Tt(le.tagNameCheck, a))
2470
2580
  return !1;
2471
2581
  if (jt && !Ne[a]) {
2472
2582
  const D = te(i), F = U(i);
2473
2583
  if (F && D) {
2474
2584
  const A = F.length;
2475
2585
  for (let w = A - 1; w >= 0; --w) {
2476
- const v = i === p ? O(F[w], !0) : F[w];
2477
- D.insertBefore(v, G(i));
2586
+ const v = i === p ? L(F[w], !0) : F[w];
2587
+ D.insertBefore(v, q(i));
2478
2588
  }
2479
2589
  }
2480
2590
  }
@@ -2482,69 +2592,69 @@ function Mr() {
2482
2592
  }, jn = function(i, a, p, D) {
2483
2593
  return i.length === 0 ? a : a === p || a === D ? V(a) : a;
2484
2594
  }, Hn = function(i, a) {
2485
- return i === a || te(i) !== null ? !1 : (Ht && bt(i), !0);
2486
- }, qn = function(i, a) {
2487
- if (ae(b.beforeSanitizeElements, i, null), Hn(i, a))
2595
+ return i === a || te(i) !== null ? !1 : (Ht && kt(i), !0);
2596
+ }, Wn = function(i, a) {
2597
+ if (ce(b.beforeSanitizeElements, i, null), Hn(i, a))
2488
2598
  return !0;
2489
- if (Ct(i))
2599
+ if (xt(i))
2490
2600
  return Fe(i), !0;
2491
- const p = I(We(i));
2492
- if (R = jn(b.uponSanitizeElement, R, Pt, dt), ae(b.uponSanitizeElement, i, {
2601
+ const p = P(Ge(i));
2602
+ if (R = jn(b.uponSanitizeElement, R, It, Dt), ce(b.uponSanitizeElement, i, {
2493
2603
  tagName: p,
2494
2604
  allowedTags: R
2495
2605
  }), Hn(i, a))
2496
2606
  return !0;
2497
- if (Jr(i, p))
2607
+ if (es(i, p))
2498
2608
  return Fe(i), !0;
2499
2609
  if (Qe[p] || !(ge.tagCheck instanceof Function && ge.tagCheck(p)) && !R[p]) {
2500
- const F = es(i, p, a);
2501
- return F === !1 && ae(b.afterSanitizeElements, i, null), F;
2610
+ const F = ts(i, p, a);
2611
+ return F === !1 && ce(b.afterSanitizeElements, i, null), F;
2502
2612
  }
2503
- if (Ce(i) === X.element && !Vr(i) || (p === "noscript" || p === "noembed" || p === "noframes") && j(Cu, i.innerHTML))
2613
+ if (Ce(i) === X.element && !Qr(i) || (p === "noscript" || p === "noembed" || p === "noframes") && j(Ro, i.innerHTML))
2504
2614
  return Fe(i), !0;
2505
2615
  if (me && i.nodeType === X.text) {
2506
- const F = kt(i.textContent);
2616
+ const F = Ct(i.textContent);
2507
2617
  i.textContent !== F && (rt(e.removed, {
2508
2618
  element: i.cloneNode()
2509
2619
  }), i.textContent = F);
2510
2620
  }
2511
- return ae(b.afterSanitizeElements, i, null), !1;
2512
- }, Gn = function(i, a, p) {
2513
- if (bn[a] || Mn(a, i) || Tn && (a === "id" || a === "name") && (p in n || p in Wr))
2621
+ return ce(b.afterSanitizeElements, i, null), !1;
2622
+ }, qn = function(i, a, p) {
2623
+ if (bn[a] || Mn(a, i) || Tn && (a === "id" || a === "name") && (p in n || p in Yr))
2514
2624
  return !1;
2515
2625
  const D = B[a] || ge.attributeCheck instanceof Function && ge.attributeCheck(a, i);
2516
- return Mt && j(De, a) || kn && j(Ve, a) ? !0 : D ? Bn[a] || j(En, st(p, An, "")) || (a === "src" || a === "xlink:href" || a === "href") && i !== "script" && ar(p, "data:") === 0 && Sn[i] || Cn && !j(It, st(p, An, "")) ? !0 : !p : (
2626
+ return Mt && j(De, a) || kn && j(Ve, a) ? !0 : D ? Bn[a] || j(En, st(p, An, "")) || (a === "src" || a === "xlink:href" || a === "href") && i !== "script" && cr(p, "data:") === 0 && Sn[i] || Cn && !j(Pt, st(p, An, "")) ? !0 : !p : (
2517
2627
  // Condition a) covers a basically valid custom element tag name whose
2518
2628
  // tag passes the configured tagNameCheck and whose attribute name
2519
2629
  // passes the configured attributeNameCheck ...
2520
- Wn(i) && xt(oe.tagNameCheck, i) && xt(oe.attributeNameCheck, a, i) || // Condition b) covers an `is` attribute whose value passes the
2630
+ Gn(i) && Tt(le.tagNameCheck, i) && Tt(le.attributeNameCheck, a, i) || // Condition b) covers an `is` attribute whose value passes the
2521
2631
  // configured tagNameCheck while customized built-in elements are
2522
2632
  // allowed.
2523
- a === "is" && oe.allowCustomizedBuiltInElements && xt(oe.tagNameCheck, p)
2633
+ a === "is" && le.allowCustomizedBuiltInElements && Tt(le.tagNameCheck, p)
2524
2634
  );
2525
- }, ts = _({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), Wn = function(i) {
2526
- return !ts[lt(i)] && j(Ur, i);
2527
- }, ns = function(i, a, p, D) {
2635
+ }, ns = y({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), Gn = function(i) {
2636
+ return !ns[lt(i)] && j(jr, i);
2637
+ }, rs = function(i, a, p, D) {
2528
2638
  if (M && typeof m == "object" && typeof m.getAttributeType == "function" && !p)
2529
2639
  switch (m.getAttributeType(i, a)) {
2530
2640
  case "TrustedHTML":
2531
2641
  return ue(D);
2532
2642
  case "TrustedScriptURL":
2533
- return ft(D);
2643
+ return ht(D);
2534
2644
  }
2535
2645
  return D;
2536
- }, rs = function(i, a, p, D) {
2646
+ }, ss = function(i, a, p, D) {
2537
2647
  try {
2538
- p ? i.setAttributeNS(p, a, D) : i.setAttribute(a, D), Ct(i) ? Fe(i) : or(e.removed);
2648
+ p ? i.setAttributeNS(p, a, D) : i.setAttribute(a, D), xt(i) ? Fe(i) : lr(e.removed);
2539
2649
  } catch {
2540
- ye(a, i);
2650
+ _e(a, i);
2541
2651
  }
2542
2652
  }, Yn = function(i) {
2543
- ae(b.beforeSanitizeAttributes, i, null);
2653
+ ce(b.beforeSanitizeAttributes, i, null);
2544
2654
  const a = i.attributes;
2545
- if (!a || Ct(i))
2655
+ if (!a || xt(i))
2546
2656
  return;
2547
- B = jn(b.uponSanitizeAttribute, B, Nt, Dt);
2657
+ B = jn(b.uponSanitizeAttribute, B, Nt, gt);
2548
2658
  const p = {
2549
2659
  attrName: "",
2550
2660
  attrValue: "",
@@ -2553,44 +2663,44 @@ function Mr() {
2553
2663
  forceKeepAttr: void 0
2554
2664
  };
2555
2665
  let D = a.length;
2556
- const F = I(i.nodeName);
2666
+ const F = P(i.nodeName);
2557
2667
  for (; D--; ) {
2558
- const A = a[D], w = A.name, v = A.namespaceURI, W = A.value, Y = I(w), Qt = W;
2559
- let q = w === "value" ? Qt : iu(Qt);
2560
- if (p.attrName = Y, p.attrValue = q, p.keepAttr = !0, p.forceKeepAttr = void 0, ae(b.uponSanitizeAttribute, i, p), q = p.attrValue, _n && (Y === "id" || Y === "name") && ar(q, yn) !== 0 && (ye(w, i, A), q = yn + q), Te && j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, q)) {
2561
- ye(w, i, A);
2668
+ const A = a[D], w = A.name, v = A.namespaceURI, G = A.value, Y = P(w), Qt = G;
2669
+ let W = w === "value" ? Qt : po(Qt);
2670
+ if (p.attrName = Y, p.attrValue = W, p.keepAttr = !0, p.forceKeepAttr = void 0, ce(b.uponSanitizeAttribute, i, p), W = p.attrValue, yn && (Y === "id" || Y === "name") && cr(W, _n) !== 0 && (_e(w, i, A), W = _n + W), Te && j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, W)) {
2671
+ _e(w, i, A);
2562
2672
  continue;
2563
2673
  }
2564
- if (Y === "attributename" && lr(q, "href")) {
2565
- ye(w, i, A);
2674
+ if (Y === "attributename" && ar(W, "href")) {
2675
+ _e(w, i, A);
2566
2676
  continue;
2567
2677
  }
2568
2678
  if (!p.forceKeepAttr) {
2569
2679
  if (!p.keepAttr) {
2570
- ye(w, i, A);
2680
+ _e(w, i, A);
2571
2681
  continue;
2572
2682
  }
2573
- if (!xn && j(xu, q)) {
2574
- ye(w, i, A);
2683
+ if (!xn && j(Bo, W)) {
2684
+ _e(w, i, A);
2575
2685
  continue;
2576
2686
  }
2577
- if (me && (q = kt(q)), !Gn(F, Y, q)) {
2578
- ye(w, i, A);
2687
+ if (me && (W = Ct(W)), !qn(F, Y, W)) {
2688
+ _e(w, i, A);
2579
2689
  continue;
2580
2690
  }
2581
- q = ns(F, Y, v, q), q !== Qt && rs(i, w, v, q);
2691
+ W = rs(F, Y, v, W), W !== Qt && ss(i, w, v, W);
2582
2692
  }
2583
2693
  }
2584
- ae(b.afterSanitizeAttributes, i, null);
2585
- }, Tt = function(i) {
2694
+ ce(b.afterSanitizeAttributes, i, null);
2695
+ }, yt = function(i) {
2586
2696
  let a = null;
2587
2697
  const p = Un(i);
2588
- for (ae(b.beforeSanitizeShadowDOM, i, null); a = p.nextNode(); )
2589
- if (ae(b.uponSanitizeShadowNode, a, null), qn(a, i), Yn(a), Ue(a.content) && Tt(a.content), Ce(a) === X.element) {
2698
+ for (ce(b.beforeSanitizeShadowDOM, i, null); a = p.nextNode(); )
2699
+ if (ce(b.uponSanitizeShadowNode, a, null), Wn(a, i), Yn(a), Ue(a.content) && yt(a.content), Ce(a) === X.element) {
2590
2700
  const D = be(a);
2591
- Ue(D) && (Vt(D), Tt(D));
2701
+ Ue(D) && (Vt(D), yt(D));
2592
2702
  }
2593
- ae(b.afterSanitizeShadowDOM, i, null);
2703
+ ce(b.afterSanitizeShadowDOM, i, null);
2594
2704
  }, Vt = function(i) {
2595
2705
  const a = [{
2596
2706
  node: i,
@@ -2599,7 +2709,7 @@ function Mr() {
2599
2709
  for (; a.length > 0; ) {
2600
2710
  const p = a.pop();
2601
2711
  if (p.shadow) {
2602
- Tt(p.shadow);
2712
+ yt(p.shadow);
2603
2713
  continue;
2604
2714
  }
2605
2715
  const D = p.node, A = Ce(D) === X.element, w = U(D);
@@ -2611,10 +2721,10 @@ function Mr() {
2611
2721
  });
2612
2722
  if (A) {
2613
2723
  const v = Q ? Q(D) : null;
2614
- if (typeof v == "string" && I(v) === "template") {
2615
- const W = D.content;
2616
- Ue(W) && a.push({
2617
- node: W,
2724
+ if (typeof v == "string" && P(v) === "template") {
2725
+ const G = D.content;
2726
+ Ue(G) && a.push({
2727
+ node: G,
2618
2728
  shadow: null
2619
2729
  });
2620
2730
  }
@@ -2633,89 +2743,89 @@ function Mr() {
2633
2743
  };
2634
2744
  return e.sanitize = function(d) {
2635
2745
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = null, p = null, D = null, F = null;
2636
- if (qt = !d, qt && (d = "<!-->"), typeof d != "string" && !Je(d) && (d = cu(d), typeof d != "string"))
2746
+ if (Wt = !d, Wt && (d = "<!-->"), typeof d != "string" && !Je(d) && (d = mo(d), typeof d != "string"))
2637
2747
  throw we("dirty is not a string, aborting");
2638
2748
  if (!e.isSupported)
2639
2749
  return d;
2640
- zt ? (R = dt, B = Dt) : Zt(i), (b.uponSanitizeElement.length > 0 || b.uponSanitizeAttribute.length > 0) && (R = V(R)), b.uponSanitizeAttribute.length > 0 && (B = V(B)), e.removed = [];
2750
+ zt ? (R = Dt, B = gt) : Zt(i), (b.uponSanitizeElement.length > 0 || b.uponSanitizeAttribute.length > 0) && (R = V(R)), b.uponSanitizeAttribute.length > 0 && (B = V(B)), e.removed = [];
2641
2751
  const A = Ht && typeof d != "string" && Je(d);
2642
2752
  if (A) {
2643
- Kr(d);
2644
- const W = We(d);
2645
- if (typeof W == "string") {
2646
- const Y = I(W);
2753
+ Jr(d);
2754
+ const G = Ge(d);
2755
+ if (typeof G == "string") {
2756
+ const Y = P(G);
2647
2757
  if (!R[Y] || Qe[Y])
2648
- throw Et(d), we("root node is forbidden and cannot be sanitized in-place");
2758
+ throw bt(d), we("root node is forbidden and cannot be sanitized in-place");
2649
2759
  }
2650
- if (Ct(d))
2651
- throw Et(d), we("root node is clobbered and cannot be sanitized in-place");
2760
+ if (xt(d))
2761
+ throw bt(d), we("root node is clobbered and cannot be sanitized in-place");
2652
2762
  try {
2653
2763
  Vt(d);
2654
2764
  } catch (Y) {
2655
- throw Et(d), Y;
2765
+ throw bt(d), Y;
2656
2766
  }
2657
2767
  } else if (Je(d))
2658
2768
  a = zn("<!---->"), p = a.ownerDocument.importNode(d, !0), p.nodeType === X.element && p.nodeName === "BODY" || p.nodeName === "HTML" ? a = p : a.appendChild(p), Vt(p);
2659
2769
  else {
2660
- if (!Ie && !me && !_e && // eslint-disable-next-line unicorn/prefer-includes
2770
+ if (!Pe && !me && !ye && // eslint-disable-next-line unicorn/prefer-includes
2661
2771
  d.indexOf("<") === -1)
2662
- return M && mt ? ue(d) : d;
2772
+ return M && Ft ? ue(d) : d;
2663
2773
  if (a = zn(d), !a)
2664
- return Ie ? null : mt ? fe : "";
2774
+ return Pe ? null : Ft ? fe : "";
2665
2775
  }
2666
2776
  a && Ut && Fe(a.firstChild);
2667
2777
  const w = A ? d : a;
2668
2778
  try {
2669
- const W = Un(w);
2670
- for (; D = W.nextNode(); )
2671
- qn(D, w), Yn(D), Ue(D.content) && Tt(D.content);
2672
- } catch (W) {
2673
- throw A && (Et(d), Se(e.removed, (Y) => {
2674
- Y.element && bt(Y.element);
2675
- })), W;
2779
+ const G = Un(w);
2780
+ for (; D = G.nextNode(); )
2781
+ Wn(D, w), Yn(D), Ue(D.content) && yt(D.content);
2782
+ } catch (G) {
2783
+ throw A && (bt(d), Se(e.removed, (Y) => {
2784
+ Y.element && kt(Y.element);
2785
+ })), G;
2676
2786
  }
2677
2787
  if (A)
2678
- return Se(e.removed, (W) => {
2679
- W.element && bt(W.element);
2788
+ return Se(e.removed, (G) => {
2789
+ G.element && kt(G.element);
2680
2790
  }), me && Xt(d), d;
2681
- if (Ie) {
2682
- if (me && Xt(a), gt)
2791
+ if (Pe) {
2792
+ if (me && Xt(a), mt)
2683
2793
  for (F = f.call(a.ownerDocument); a.firstChild; )
2684
2794
  F.appendChild(a.firstChild);
2685
2795
  else
2686
2796
  F = a;
2687
2797
  return (B.shadowroot || B.shadowrootmode) && (F = S.call(r, F, !0)), F;
2688
2798
  }
2689
- let v = _e ? a.outerHTML : a.innerHTML;
2690
- return _e && R["!doctype"] && a.ownerDocument && a.ownerDocument.doctype && a.ownerDocument.doctype.name && j(bu, a.ownerDocument.doctype.name) && (v = "<!DOCTYPE " + a.ownerDocument.doctype.name + `>
2691
- ` + v), me && (v = kt(v)), M && mt ? ue(v) : v;
2799
+ let v = ye ? a.outerHTML : a.innerHTML;
2800
+ return ye && R["!doctype"] && a.ownerDocument && a.ownerDocument.doctype && a.ownerDocument.doctype.name && j(wo, a.ownerDocument.doctype.name) && (v = "<!DOCTYPE " + a.ownerDocument.doctype.name + `>
2801
+ ` + v), me && (v = Ct(v)), M && Ft ? ue(v) : v;
2692
2802
  }, e.setConfig = function() {
2693
2803
  let d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2694
- Zt(d), zt = !0, dt = R, Dt = B;
2804
+ Zt(d), zt = !0, Dt = R, gt = B;
2695
2805
  }, e.clearConfig = function() {
2696
- ze = null, zt = !1, dt = null, Dt = null, M = Ye, fe = "";
2806
+ ze = null, zt = !1, Dt = null, gt = null, M = Ye, fe = "";
2697
2807
  }, e.isValidAttribute = function(d, i, a) {
2698
2808
  ze || Zt({});
2699
- const p = I(d), D = I(i);
2700
- return Gn(p, D, a);
2809
+ const p = P(d), D = P(i);
2810
+ return qn(p, D, a);
2701
2811
  }, e.addHook = function(d, i) {
2702
2812
  typeof i == "function" && Z(b, d) && rt(b[d], i);
2703
2813
  }, e.removeHook = function(d, i) {
2704
2814
  if (Z(b, d)) {
2705
2815
  if (i !== void 0) {
2706
- const a = ru(b[d], i);
2707
- return a === -1 ? void 0 : su(b[d], a, 1)[0];
2816
+ const a = ao(b[d], i);
2817
+ return a === -1 ? void 0 : co(b[d], a, 1)[0];
2708
2818
  }
2709
- return or(b[d]);
2819
+ return lr(b[d]);
2710
2820
  }
2711
2821
  }, e.removeHooks = function(d) {
2712
2822
  Z(b, d) && (b[d] = []);
2713
2823
  }, e.removeAllHooks = function() {
2714
- b = Ar();
2824
+ b = Er();
2715
2825
  }, e;
2716
2826
  }
2717
- var Su = Mr();
2718
- const Ru = ["caption", "col", "colgroup", "small", "u", "iframe"], Bu = [
2827
+ var Po = zr();
2828
+ const Io = ["caption", "col", "colgroup", "small", "u", "iframe"], No = [
2719
2829
  "target",
2720
2830
  "role",
2721
2831
  "colspan",
@@ -2726,14 +2836,14 @@ const Ru = ["caption", "col", "colgroup", "small", "u", "iframe"], Bu = [
2726
2836
  "frameborder",
2727
2837
  "referrerpolicy",
2728
2838
  "loading"
2729
- ], vu = /* @__PURE__ */ new Set(["www.youtube-nocookie.com"]), Ou = (t) => {
2839
+ ], Mo = /* @__PURE__ */ new Set(["www.youtube-nocookie.com"]), zo = (t) => {
2730
2840
  if (!t) return !1;
2731
2841
  try {
2732
- return vu.has(new URL(t).host);
2842
+ return Mo.has(new URL(t).host);
2733
2843
  } catch {
2734
2844
  return !1;
2735
2845
  }
2736
- }, Lu = /* @__PURE__ */ new Set([
2846
+ }, Uo = /* @__PURE__ */ new Set([
2737
2847
  "background-color",
2738
2848
  "border",
2739
2849
  "border-bottom",
@@ -2769,80 +2879,88 @@ const Ru = ["caption", "col", "colgroup", "small", "u", "iframe"], Bu = [
2769
2879
  "white-space",
2770
2880
  "width",
2771
2881
  "writing-mode"
2772
- ]), $u = {
2882
+ ]), jo = {
2773
2883
  position: /* @__PURE__ */ new Set(["relative", "static"])
2774
- }, Iu = (t) => t.split(";").map((e) => e.trim()).filter(Boolean).filter((e) => {
2775
- const [n, ...r] = e.split(":"), s = n.trim().toLowerCase(), u = r.join(":").trim().toLowerCase();
2776
- return /url\(|expression\(|@import|behavior:/i.test(u) ? !1 : Lu.has(s) ? !0 : !!$u[s]?.has(u);
2777
- }).map((e) => `${e};`).join(" "), Pu = (t) => Array.from(t).filter((e) => (e.codePointAt(0) ?? 0) > 32).join("").toLowerCase();
2778
- let ut = null;
2779
- const Nu = () => ut || (ut = Su(window), ut.addHook("afterSanitizeAttributes", (t) => {
2884
+ }, Ho = (t) => t.split(";").map((e) => e.trim()).filter(Boolean).filter((e) => {
2885
+ const [n, ...r] = e.split(":"), s = n.trim().toLowerCase(), o = r.join(":").trim().toLowerCase();
2886
+ return /url\(|expression\(|@import|behavior:/i.test(o) ? !1 : Uo.has(s) ? !0 : !!jo[s]?.has(o);
2887
+ }).map((e) => `${e};`).join(" "), Wo = (t) => Array.from(t).filter((e) => (e.codePointAt(0) ?? 0) > 32).join("").toLowerCase();
2888
+ let ot = null;
2889
+ const qo = () => ot || (ot = Po(window), ot.addHook("afterSanitizeAttributes", (t) => {
2780
2890
  const e = t;
2781
2891
  if (!e.getAttribute) return;
2782
- if (e.tagName === "IFRAME" && !Ou(e.getAttribute("src"))) {
2892
+ if (e.tagName === "IFRAME" && !zo(e.getAttribute("src"))) {
2783
2893
  e.remove();
2784
2894
  return;
2785
2895
  }
2786
2896
  for (const r of ["src", "href"]) {
2787
2897
  const s = e.getAttribute(r);
2788
- s && Pu(s).startsWith("data:") && e.removeAttribute(r);
2898
+ s && Wo(s).startsWith("data:") && e.removeAttribute(r);
2789
2899
  }
2790
2900
  const n = e.getAttribute("style");
2791
2901
  if (n) {
2792
- const r = Iu(n);
2902
+ const r = Ho(n);
2793
2903
  r ? e.setAttribute("style", r) : e.removeAttribute("style");
2794
2904
  }
2795
- e.getAttribute("target") === "_blank" && e.setAttribute("rel", "noopener noreferrer");
2796
- }), ut), Mu = (t) => Nu().sanitize(t, {
2797
- ADD_TAGS: Ru,
2798
- ADD_ATTR: Bu,
2905
+ if (e.getAttribute("target") === "_blank") {
2906
+ const r = (e.getAttribute("rel") ?? "").split(/\s+/);
2907
+ e.setAttribute(
2908
+ "rel",
2909
+ Array.from(
2910
+ /* @__PURE__ */ new Set(["noopener", "noreferrer", ...r.filter(Boolean)])
2911
+ ).join(" ")
2912
+ );
2913
+ }
2914
+ }), ot), Go = (t) => qo().sanitize(t, {
2915
+ ADD_TAGS: Io,
2916
+ ADD_ATTR: No,
2799
2917
  RETURN_DOM_FRAGMENT: !0,
2800
2918
  ALLOWED_URI_REGEXP: /^(?:(?:https?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.\-:]|$))/i
2801
- }), zu = (t) => Math.min(6, Math.max(1, t)), Uu = (t, e = {}) => {
2802
- const { shiftHeading: n = 0, tocMaxDepth: r = 2 } = e, s = new Br(
2919
+ }), Yo = (t) => Math.min(6, Math.max(1, t)), Zo = (t, e = {}) => {
2920
+ const { shiftHeading: n = 0, tocMaxDepth: r = 2 } = e, s = new vr(
2803
2921
  { gfm: !0, breaks: !0 },
2804
- Zi({
2922
+ eo({
2805
2923
  // The card title is a heading too, and the shift has to reach it.
2806
- cardHeadingLevel: `h${zu(3 + n)}`
2924
+ cardHeadingLevel: `h${Yo(3 + n)}`
2807
2925
  })
2808
- ), u = Mu(s.parse(t, { async: !1 })), { headings: l } = Fi(u, document, {
2926
+ ), o = Go(s.parse(t, { async: !1 })), { headings: l } = ki(o, document, {
2809
2927
  shiftHeading: n,
2810
2928
  tocMaxDepth: r
2811
- }), o = document.createElement("div");
2812
- return o.appendChild(u), { html: o.innerHTML, headings: l };
2813
- }, ju = { html: "", headings: [] }, zr = ({ items: t }) => /* @__PURE__ */ ee.jsx(ee.Fragment, { children: t.map((e) => /* @__PURE__ */ ee.jsxs("li", { children: [
2814
- /* @__PURE__ */ ee.jsx(ss, { href: `#${e.id}`, children: e.value }),
2815
- e.children ? /* @__PURE__ */ ee.jsx(Er, { children: /* @__PURE__ */ ee.jsx(zr, { items: e.children }) }) : null
2816
- ] }, e.id)) }), Gu = ({
2929
+ }), u = document.createElement("div");
2930
+ return u.appendChild(o), { html: u.innerHTML, headings: l };
2931
+ }, Xo = { html: "", headings: [] }, Ur = ({ items: t }) => /* @__PURE__ */ ee.jsx(ee.Fragment, { children: t.map((e) => /* @__PURE__ */ ee.jsxs("li", { children: [
2932
+ /* @__PURE__ */ ee.jsx(is, { href: `#${e.id}`, children: e.value }),
2933
+ e.children ? /* @__PURE__ */ ee.jsx(br, { children: /* @__PURE__ */ ee.jsx(Ur, { items: e.children }) }) : null
2934
+ ] }, e.id)) }), Ko = ({
2817
2935
  children: t,
2818
2936
  showToc: e,
2819
2937
  tocTitle: n = "目次",
2820
2938
  shiftHeading: r = 0,
2821
2939
  tocMaxDepth: s = 2
2822
2940
  }) => {
2823
- const [{ html: u, headings: l }, o] = St.useState(ju);
2824
- return St.useEffect(() => {
2825
- o(Uu(t, { shiftHeading: r, tocMaxDepth: s }));
2826
- }, [t, r, s]), St.useEffect(() => {
2827
- if (!u) return;
2941
+ const [{ html: o, headings: l }, u] = Rt.useState(Xo);
2942
+ return Rt.useEffect(() => {
2943
+ u(Zo(t, { shiftHeading: r, tocMaxDepth: s }));
2944
+ }, [t, r, s]), Rt.useEffect(() => {
2945
+ if (!o) return;
2828
2946
  const c = decodeURI(window.location.hash.slice(1));
2829
2947
  c && document.getElementById(c)?.scrollIntoView();
2830
- }, [u]), /* @__PURE__ */ ee.jsxs("div", { className: "py-8 flex flex-col gap-8", children: [
2948
+ }, [o]), /* @__PURE__ */ ee.jsxs("div", { className: "py-8 flex flex-col gap-8", children: [
2831
2949
  e && l.length > 0 && /* @__PURE__ */ ee.jsxs("nav", { className: "rounded-3xl p-10 bg-yellow-50", children: [
2832
2950
  /* @__PURE__ */ ee.jsx("h2", { className: "mb-4 font-bold text-h-xs-m sm:text-h-xs", children: n }),
2833
- /* @__PURE__ */ ee.jsx(Er, { children: /* @__PURE__ */ ee.jsx(zr, { items: l }) })
2951
+ /* @__PURE__ */ ee.jsx(br, { children: /* @__PURE__ */ ee.jsx(Ur, { items: l }) })
2834
2952
  ] }),
2835
2953
  /* @__PURE__ */ ee.jsx(
2836
2954
  "div",
2837
2955
  {
2838
2956
  className: "flex flex-col gap-8",
2839
- dangerouslySetInnerHTML: { __html: u }
2957
+ dangerouslySetInnerHTML: { __html: o }
2840
2958
  }
2841
2959
  )
2842
2960
  ] });
2843
2961
  };
2844
2962
  export {
2845
- Gu as Markdown,
2846
- zr as TableOfContents,
2847
- Uu as render
2963
+ Ko as Markdown,
2964
+ Ur as TableOfContents,
2965
+ Zo as render
2848
2966
  };