bunki 0.11.1 → 0.12.0

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.
package/dist/index.js CHANGED
@@ -6547,24 +6547,24 @@ var require_lib = __commonJS((exports) => {
6547
6547
  // node_modules/domhandler/lib/node.js
6548
6548
  var require_node = __commonJS((exports) => {
6549
6549
  var __extends = exports && exports.__extends || function() {
6550
- var extendStatics = function(d3, b2) {
6551
- extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d4, b3) {
6552
- d4.__proto__ = b3;
6553
- } || function(d4, b3) {
6550
+ var extendStatics = function(d2, b2) {
6551
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
6552
+ d3.__proto__ = b3;
6553
+ } || function(d3, b3) {
6554
6554
  for (var p in b3)
6555
6555
  if (Object.prototype.hasOwnProperty.call(b3, p))
6556
- d4[p] = b3[p];
6556
+ d3[p] = b3[p];
6557
6557
  };
6558
- return extendStatics(d3, b2);
6558
+ return extendStatics(d2, b2);
6559
6559
  };
6560
- return function(d3, b2) {
6560
+ return function(d2, b2) {
6561
6561
  if (typeof b2 !== "function" && b2 !== null)
6562
6562
  throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
6563
- extendStatics(d3, b2);
6563
+ extendStatics(d2, b2);
6564
6564
  function __() {
6565
- this.constructor = d3;
6565
+ this.constructor = d2;
6566
6566
  }
6567
- d3.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __);
6567
+ d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __);
6568
6568
  };
6569
6569
  }();
6570
6570
  var __assign = exports && exports.__assign || function() {
@@ -7129,7 +7129,7 @@ var require_escape = __commonJS((exports) => {
7129
7129
  exports.encodeXML = encodeXML;
7130
7130
  exports.escape = encodeXML;
7131
7131
  function getEscaper(regex, map) {
7132
- return function escape(data) {
7132
+ return function escape2(data) {
7133
7133
  var match;
7134
7134
  var lastIdx = 0;
7135
7135
  var result = "";
@@ -8476,7 +8476,7 @@ var require_is_plain_object = __commonJS((exports) => {
8476
8476
 
8477
8477
  // node_modules/deepmerge/dist/cjs.js
8478
8478
  var require_cjs = __commonJS((exports, module) => {
8479
- var isMergeableObject = function isMergeableObject(value) {
8479
+ var isMergeableObject = function isMergeableObject2(value) {
8480
8480
  return isNonNullObject(value) && !isSpecial(value);
8481
8481
  };
8482
8482
  function isNonNullObject(value) {
@@ -8669,7 +8669,7 @@ var require_parse_srcset = __commonJS((exports, module) => {
8669
8669
  }
8670
8670
  }
8671
8671
  function parseDescriptors() {
8672
- var pError = false, w2, d3, h, i, candidate = {}, desc, lastChar, value, intVal, floatVal;
8672
+ var pError = false, w2, d2, h, i, candidate = {}, desc, lastChar, value, intVal, floatVal;
8673
8673
  for (i = 0;i < descriptors.length; i++) {
8674
8674
  desc = descriptors[i];
8675
8675
  lastChar = desc[desc.length - 1];
@@ -8677,7 +8677,7 @@ var require_parse_srcset = __commonJS((exports, module) => {
8677
8677
  intVal = parseInt(value, 10);
8678
8678
  floatVal = parseFloat(value);
8679
8679
  if (regexNonNegativeInteger.test(value) && lastChar === "w") {
8680
- if (w2 || d3) {
8680
+ if (w2 || d2) {
8681
8681
  pError = true;
8682
8682
  }
8683
8683
  if (intVal === 0) {
@@ -8686,16 +8686,16 @@ var require_parse_srcset = __commonJS((exports, module) => {
8686
8686
  w2 = intVal;
8687
8687
  }
8688
8688
  } else if (regexFloatingPoint.test(value) && lastChar === "x") {
8689
- if (w2 || d3 || h) {
8689
+ if (w2 || d2 || h) {
8690
8690
  pError = true;
8691
8691
  }
8692
8692
  if (floatVal < 0) {
8693
8693
  pError = true;
8694
8694
  } else {
8695
- d3 = floatVal;
8695
+ d2 = floatVal;
8696
8696
  }
8697
8697
  } else if (regexNonNegativeInteger.test(value) && lastChar === "h") {
8698
- if (h || d3) {
8698
+ if (h || d2) {
8699
8699
  pError = true;
8700
8700
  }
8701
8701
  if (intVal === 0) {
@@ -8712,8 +8712,8 @@ var require_parse_srcset = __commonJS((exports, module) => {
8712
8712
  if (w2) {
8713
8713
  candidate.w = w2;
8714
8714
  }
8715
- if (d3) {
8716
- candidate.d = d3;
8715
+ if (d2) {
8716
+ candidate.d = d2;
8717
8717
  }
8718
8718
  if (h) {
8719
8719
  candidate.h = h;
@@ -10548,7 +10548,7 @@ var require_util = __commonJS((exports) => {
10548
10548
  return result;
10549
10549
  };
10550
10550
  }
10551
- var normalize = lruMemoize(function normalize(aPath) {
10551
+ var normalize = lruMemoize(function normalize2(aPath) {
10552
10552
  var path2 = aPath;
10553
10553
  var url = urlParse(aPath);
10554
10554
  if (url) {
@@ -15448,13 +15448,13 @@ var require_lib7 = __commonJS((exports, module) => {
15448
15448
  return stackDescriptor.value;
15449
15449
  });
15450
15450
  if (!getStack) {
15451
- getStack = function getStack() {
15451
+ getStack = function getStack2() {
15452
15452
  return cause.stack;
15453
15453
  };
15454
15454
  }
15455
15455
  } else {
15456
15456
  var stack = new Error(message).stack;
15457
- getStack = function getStack() {
15457
+ getStack = function getStack2() {
15458
15458
  return stack;
15459
15459
  };
15460
15460
  }
@@ -16320,7 +16320,7 @@ var require_object = __commonJS((exports, module) => {
16320
16320
  _setPrototypeOf(subClass, superClass);
16321
16321
  }
16322
16322
  function _setPrototypeOf(o, p) {
16323
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o2, p2) {
16323
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
16324
16324
  o2.__proto__ = p2;
16325
16325
  return o2;
16326
16326
  };
@@ -16332,7 +16332,7 @@ var require_object = __commonJS((exports, module) => {
16332
16332
  if (typeof parent !== "function" || typeof prop !== "function") {
16333
16333
  return prop;
16334
16334
  }
16335
- return function wrap() {
16335
+ return function wrap2() {
16336
16336
  var tmp = this.parent;
16337
16337
  this.parent = parent;
16338
16338
  var res = prop.apply(this, arguments);
@@ -16456,7 +16456,7 @@ var require_nodes = __commonJS((exports, module) => {
16456
16456
  _setPrototypeOf(subClass, superClass);
16457
16457
  }
16458
16458
  function _setPrototypeOf(o, p) {
16459
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o2, p2) {
16459
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
16460
16460
  o2.__proto__ = p2;
16461
16461
  return o2;
16462
16462
  };
@@ -16810,7 +16810,7 @@ var require_parser2 = __commonJS((exports, module) => {
16810
16810
  _setPrototypeOf(subClass, superClass);
16811
16811
  }
16812
16812
  function _setPrototypeOf(o, p) {
16813
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o2, p2) {
16813
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
16814
16814
  o2.__proto__ = p2;
16815
16815
  return o2;
16816
16816
  };
@@ -17717,7 +17717,7 @@ var require_parser2 = __commonJS((exports, module) => {
17717
17717
  }
17718
17718
  return buf;
17719
17719
  };
17720
- _proto.parse = function parse() {
17720
+ _proto.parse = function parse2() {
17721
17721
  return new nodes.NodeList(0, 0, this.parseNodes());
17722
17722
  };
17723
17723
  _proto.parseAsRoot = function parseAsRoot() {
@@ -17726,7 +17726,7 @@ var require_parser2 = __commonJS((exports, module) => {
17726
17726
  return Parser2;
17727
17727
  }(Obj);
17728
17728
  module.exports = {
17729
- parse: function parse(src, extensions, opts) {
17729
+ parse: function parse2(src, extensions, opts) {
17730
17730
  var p = new Parser(lexer.lex(src, opts));
17731
17731
  if (extensions !== undefined) {
17732
17732
  p.extensions = extensions;
@@ -18219,7 +18219,7 @@ var require_compiler = __commonJS((exports, module) => {
18219
18219
  _setPrototypeOf(subClass, superClass);
18220
18220
  }
18221
18221
  function _setPrototypeOf(o, p) {
18222
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o2, p2) {
18222
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
18223
18223
  o2.__proto__ = p2;
18224
18224
  return o2;
18225
18225
  };
@@ -19661,7 +19661,7 @@ var require_loader2 = __commonJS((exports, module) => {
19661
19661
  _setPrototypeOf(subClass, superClass);
19662
19662
  }
19663
19663
  function _setPrototypeOf(o, p) {
19664
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o2, p2) {
19664
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
19665
19665
  o2.__proto__ = p2;
19666
19666
  return o2;
19667
19667
  };
@@ -19694,7 +19694,7 @@ var require_precompiled_loader = __commonJS((exports, module) => {
19694
19694
  _setPrototypeOf(subClass, superClass);
19695
19695
  }
19696
19696
  function _setPrototypeOf(o, p) {
19697
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o2, p2) {
19697
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
19698
19698
  o2.__proto__ = p2;
19699
19699
  return o2;
19700
19700
  };
@@ -24546,9 +24546,9 @@ var require_chokidar = __commonJS((exports) => {
24546
24546
  if (this.options.ignorePermissionErrors)
24547
24547
  return true;
24548
24548
  const md = stats && Number.parseInt(stats.mode, 10);
24549
- const st = md & 511;
24550
- const it = Number.parseInt(st.toString(8)[0], 10);
24551
- return Boolean(4 & it);
24549
+ const st2 = md & 511;
24550
+ const it2 = Number.parseInt(st2.toString(8)[0], 10);
24551
+ return Boolean(4 & it2);
24552
24552
  }
24553
24553
  _remove(directory, item, isDirectory2) {
24554
24554
  const path4 = sysPath.join(directory, item);
@@ -24642,7 +24642,7 @@ var require_node_loaders = __commonJS((exports, module) => {
24642
24642
  _setPrototypeOf(subClass, superClass);
24643
24643
  }
24644
24644
  function _setPrototypeOf(o, p) {
24645
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o2, p2) {
24645
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
24646
24646
  o2.__proto__ = p2;
24647
24647
  return o2;
24648
24648
  };
@@ -24977,7 +24977,7 @@ var require_environment = __commonJS((exports, module) => {
24977
24977
  _setPrototypeOf(subClass, superClass);
24978
24978
  }
24979
24979
  function _setPrototypeOf(o, p) {
24980
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o2, p2) {
24980
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
24981
24981
  o2.__proto__ = p2;
24982
24982
  return o2;
24983
24983
  };
@@ -25180,7 +25180,7 @@ var require_environment = __commonJS((exports, module) => {
25180
25180
  }
25181
25181
  }
25182
25182
  var syncResult;
25183
- var createTemplate = function createTemplate(err, info) {
25183
+ var createTemplate = function createTemplate2(err, info) {
25184
25184
  if (!info && !err && !ignoreMissing) {
25185
25185
  err = new Error("template not found: " + name);
25186
25186
  }
@@ -25674,7 +25674,7 @@ var require_jinja_compat = __commonJS((exports, module) => {
25674
25674
  return orig_Parser_parseAggregate.apply(this);
25675
25675
  } catch (e) {
25676
25676
  var errState = getTokensState(this.tokens);
25677
- var rethrow = function rethrow() {
25677
+ var rethrow = function rethrow2() {
25678
25678
  lib._assign(_this.tokens, errState);
25679
25679
  return e;
25680
25680
  };
@@ -25767,13 +25767,13 @@ var require_jinja_compat = __commonJS((exports, module) => {
25767
25767
  throw new Error("ValueError");
25768
25768
  },
25769
25769
  count: function count(element) {
25770
- var count = 0;
25770
+ var count2 = 0;
25771
25771
  for (var i = 0;i < this.length; i++) {
25772
25772
  if (this[i] === element) {
25773
- count++;
25773
+ count2++;
25774
25774
  }
25775
25775
  }
25776
- return count;
25776
+ return count2;
25777
25777
  },
25778
25778
  index: function index(element) {
25779
25779
  var i;
@@ -29030,14 +29030,14 @@ function xml(hljs) {
29030
29030
  }
29031
29031
 
29032
29032
  // node_modules/marked/lib/marked.esm.js
29033
- function L() {
29033
+ function M() {
29034
29034
  return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
29035
29035
  }
29036
- var T = L();
29037
- function Z(u) {
29036
+ var T = M();
29037
+ function H(u) {
29038
29038
  T = u;
29039
29039
  }
29040
- var C = { exec: () => null };
29040
+ var _ = { exec: () => null };
29041
29041
  function k(u, e = "") {
29042
29042
  let t = typeof u == "string" ? u : u.source, n = { replace: (r, i) => {
29043
29043
  let s = typeof i == "string" ? i : i.source;
@@ -29045,81 +29045,87 @@ function k(u, e = "") {
29045
29045
  }, getRegex: () => new RegExp(t, e) };
29046
29046
  return n;
29047
29047
  }
29048
- var me = (() => {
29048
+ var Re = (() => {
29049
29049
  try {
29050
29050
  return !!new RegExp("(?<=1)(?<!1)");
29051
29051
  } catch {
29052
29052
  return false;
29053
29053
  }
29054
29054
  })();
29055
- var m = { 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, listReplaceTabs: /^\t+/, 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, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (u) => new RegExp(`^( {0,3}${u})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}#`), htmlBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}<(?:[a-z].*>|!--)`, "i") };
29056
- var xe = /^(?:[ \t]*(?:\n|$))+/;
29057
- var be = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/;
29058
- var Re = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/;
29055
+ var m = { 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, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (u) => new RegExp(`^( {0,3}${u})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}#`), htmlBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}>`) };
29056
+ var Te = /^(?:[ \t]*(?:\n|$))+/;
29057
+ var Oe = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/;
29058
+ var we = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/;
29059
29059
  var I = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/;
29060
- var Te = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/;
29061
- var N = /(?:[*+-]|\d{1,9}[.)])/;
29060
+ var ye = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/;
29061
+ var N = / {0,3}(?:[*+-]|\d{1,9}[.)])/;
29062
29062
  var re = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/;
29063
29063
  var se = k(re).replace(/bull/g, N).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}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex();
29064
- var Oe = k(re).replace(/bull/g, N).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}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex();
29064
+ var Pe = k(re).replace(/bull/g, N).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}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex();
29065
29065
  var Q = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/;
29066
- var we = /^[^\n]+/;
29066
+ var Se = /^[^\n]+/;
29067
29067
  var F = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/;
29068
- var ye = k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", F).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex();
29069
- var Pe = k(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, N).getRegex();
29070
- var v = "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";
29068
+ var $e = k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", F).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex();
29069
+ var _e = k(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, N).getRegex();
29070
+ var q = "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";
29071
29071
  var j = /<!--(?:-?>|[\s\S]*?(?:-->|$))/;
29072
- var Se = k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))", "i").replace("comment", j).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();
29073
- var ie = k(Q).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex();
29074
- var $e = k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ie).getRegex();
29075
- var U = { blockquote: $e, code: be, def: ye, fences: Re, heading: Te, hr: I, html: Se, lheading: se, list: Pe, newline: xe, paragraph: ie, table: C, text: we };
29076
- var te = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3}\t)[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex();
29077
- var _e = { ...U, lheading: Oe, table: te, paragraph: k(Q).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", te).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() };
29078
- var Le = { ...U, html: k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", j).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: C, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: k(Q).replace("hr", I).replace("heading", ` *#{1,6} *[^
29072
+ var Le = k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))", "i").replace("comment", j).replace("tag", q).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();
29073
+ var ie = k(Q).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", q).getRegex();
29074
+ var Me = k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ie).getRegex();
29075
+ var U = { blockquote: Me, code: Oe, def: $e, fences: we, heading: ye, hr: I, html: Le, lheading: se, list: _e, newline: Te, paragraph: ie, table: _, text: Se };
29076
+ var te = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3}\t)[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", q).getRegex();
29077
+ var ze = { ...U, lheading: Pe, table: te, paragraph: k(Q).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", te).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", q).getRegex() };
29078
+ var Ce = { ...U, html: k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", j).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: _, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: k(Q).replace("hr", I).replace("heading", ` *#{1,6} *[^
29079
29079
  ]`).replace("lheading", se).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() };
29080
- var Me = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/;
29081
- var ze = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/;
29080
+ var Ae = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/;
29081
+ var Ie = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/;
29082
29082
  var oe = /^( {2,}|\\)\n(?!\s*$)/;
29083
- var Ae = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/;
29084
- var D = /[\p{P}\p{S}]/u;
29083
+ var Ee = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/;
29084
+ var v = /[\p{P}\p{S}]/u;
29085
29085
  var K = /[\s\p{P}\p{S}]/u;
29086
29086
  var ae = /[^\s\p{P}\p{S}]/u;
29087
- var Ce = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, K).getRegex();
29087
+ var Be = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, K).getRegex();
29088
29088
  var le = /(?!~)[\p{P}\p{S}]/u;
29089
- var Ie = /(?!~)[\s\p{P}\p{S}]/u;
29090
- var Ee = /(?:[^\s\p{P}\p{S}]|~)/u;
29091
- var Be = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", me ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex();
29092
- var ue = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/;
29093
- var qe = k(ue, "u").replace(/punct/g, D).getRegex();
29094
- var ve = k(ue, "u").replace(/punct/g, le).getRegex();
29095
- var pe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)";
29096
- var De = k(pe, "gu").replace(/notPunctSpace/g, ae).replace(/punctSpace/g, K).replace(/punct/g, D).getRegex();
29097
- var He = k(pe, "gu").replace(/notPunctSpace/g, Ee).replace(/punctSpace/g, Ie).replace(/punct/g, le).getRegex();
29098
- var Ze = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ae).replace(/punctSpace/g, K).replace(/punct/g, D).getRegex();
29099
- var Ge = k(/\\(punct)/, "gu").replace(/punct/g, D).getRegex();
29100
- var Ne = k(/^<(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();
29101
- var Qe = k(j).replace("(?:-->|$)", "-->").getRegex();
29102
- var Fe = k("^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", Qe).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex();
29103
- var q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/;
29104
- var je = k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex();
29105
- var ce = k(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", F).getRegex();
29106
- var he = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", F).getRegex();
29107
- var Ue = k("reflink|nolink(?!\\()", "g").replace("reflink", ce).replace("nolink", he).getRegex();
29089
+ var De = /(?!~)[\s\p{P}\p{S}]/u;
29090
+ var qe = /(?:[^\s\p{P}\p{S}]|~)/u;
29091
+ var ue = /(?![*_])[\p{P}\p{S}]/u;
29092
+ var ve = /(?![*_])[\s\p{P}\p{S}]/u;
29093
+ var Ge = /(?:[^\s\p{P}\p{S}]|[*_])/u;
29094
+ var He = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Re ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex();
29095
+ var pe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/;
29096
+ var Ze = k(pe, "u").replace(/punct/g, v).getRegex();
29097
+ var Ne = k(pe, "u").replace(/punct/g, le).getRegex();
29098
+ var ce = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)";
29099
+ var Qe = k(ce, "gu").replace(/notPunctSpace/g, ae).replace(/punctSpace/g, K).replace(/punct/g, v).getRegex();
29100
+ var Fe = k(ce, "gu").replace(/notPunctSpace/g, qe).replace(/punctSpace/g, De).replace(/punct/g, le).getRegex();
29101
+ var je = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ae).replace(/punctSpace/g, K).replace(/punct/g, v).getRegex();
29102
+ var Ue = k(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, ue).getRegex();
29103
+ var Ke = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)";
29104
+ var We = k(Ke, "gu").replace(/notPunctSpace/g, Ge).replace(/punctSpace/g, ve).replace(/punct/g, ue).getRegex();
29105
+ var Xe = k(/\\(punct)/, "gu").replace(/punct/g, v).getRegex();
29106
+ var Je = k(/^<(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();
29107
+ var Ve = k(j).replace("(?:-->|$)", "-->").getRegex();
29108
+ var Ye = k("^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", Ve).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex();
29109
+ var D = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/;
29110
+ var et = k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", D).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex();
29111
+ var he = k(/^!?\[(label)\]\[(ref)\]/).replace("label", D).replace("ref", F).getRegex();
29112
+ var ke = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", F).getRegex();
29113
+ var tt = k("reflink|nolink(?!\\()", "g").replace("reflink", he).replace("nolink", ke).getRegex();
29108
29114
  var ne = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/;
29109
- var W = { _backpedal: C, anyPunctuation: Ge, autolink: Ne, blockSkip: Be, br: oe, code: ze, del: C, emStrongLDelim: qe, emStrongRDelimAst: De, emStrongRDelimUnd: Ze, escape: Me, link: je, nolink: he, punctuation: Ce, reflink: ce, reflinkSearch: Ue, tag: Fe, text: Ae, url: C };
29110
- var Ke = { ...W, link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() };
29111
- var G = { ...W, emStrongRDelimAst: He, emStrongLDelim: ve, url: k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ne).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: k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", ne).getRegex() };
29112
- var We = { ...G, br: k(oe).replace("{2,}", "*").getRegex(), text: k(G.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() };
29113
- var E = { normal: U, gfm: _e, pedantic: Le };
29114
- var M = { normal: W, gfm: G, breaks: We, pedantic: Ke };
29115
- var Xe = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" };
29116
- var ke = (u) => Xe[u];
29117
- function w(u, e) {
29115
+ var W = { _backpedal: _, anyPunctuation: Xe, autolink: Je, blockSkip: He, br: oe, code: Ie, del: _, delLDelim: _, delRDelim: _, emStrongLDelim: Ze, emStrongRDelimAst: Qe, emStrongRDelimUnd: je, escape: Ae, link: et, nolink: ke, punctuation: Be, reflink: he, reflinkSearch: tt, tag: Ye, text: Ee, url: _ };
29116
+ var nt = { ...W, link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", D).getRegex(), reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", D).getRegex() };
29117
+ var Z = { ...W, emStrongRDelimAst: Fe, emStrongLDelim: Ne, delLDelim: Ue, delRDelim: We, url: k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ne).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: k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", ne).getRegex() };
29118
+ var rt = { ...Z, br: k(oe).replace("{2,}", "*").getRegex(), text: k(Z.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() };
29119
+ var E = { normal: U, gfm: ze, pedantic: Ce };
29120
+ var z = { normal: W, gfm: Z, breaks: rt, pedantic: nt };
29121
+ var st = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" };
29122
+ var de = (u) => st[u];
29123
+ function O(u, e) {
29118
29124
  if (e) {
29119
29125
  if (m.escapeTest.test(u))
29120
- return u.replace(m.escapeReplace, ke);
29126
+ return u.replace(m.escapeReplace, de);
29121
29127
  } else if (m.escapeTestNoEncode.test(u))
29122
- return u.replace(m.escapeReplaceNoEncode, ke);
29128
+ return u.replace(m.escapeReplaceNoEncode, de);
29123
29129
  return u;
29124
29130
  }
29125
29131
  function X(u) {
@@ -29147,7 +29153,7 @@ function J(u, e) {
29147
29153
  n[r] = n[r].trim().replace(m.slashPipe, "|");
29148
29154
  return n;
29149
29155
  }
29150
- function z(u, e, t) {
29156
+ function C(u, e, t) {
29151
29157
  let n = u.length;
29152
29158
  if (n === 0)
29153
29159
  return "";
@@ -29163,7 +29169,7 @@ function z(u, e, t) {
29163
29169
  }
29164
29170
  return u.slice(0, n - r);
29165
29171
  }
29166
- function de(u, e) {
29172
+ function ge(u, e) {
29167
29173
  if (u.indexOf(e[1]) === -1)
29168
29174
  return -1;
29169
29175
  let t = 0;
@@ -29176,13 +29182,23 @@ function de(u, e) {
29176
29182
  return n;
29177
29183
  return t > 0 ? -2 : -1;
29178
29184
  }
29179
- function ge(u, e, t, n, r) {
29185
+ function fe(u, e = 0) {
29186
+ let t = e, n = "";
29187
+ for (let r of u)
29188
+ if (r === "\t") {
29189
+ let i = 4 - t % 4;
29190
+ n += " ".repeat(i), t += i;
29191
+ } else
29192
+ n += r, t++;
29193
+ return n;
29194
+ }
29195
+ function me(u, e, t, n, r) {
29180
29196
  let i = e.href, s = e.title || null, a = u[1].replace(r.other.outputLinkReplace, "$1");
29181
29197
  n.state.inLink = true;
29182
29198
  let o = { type: u[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s, text: a, tokens: n.inlineTokens(a) };
29183
29199
  return n.state.inLink = false, o;
29184
29200
  }
29185
- function Je(u, e, t) {
29201
+ function it(u, e, t) {
29186
29202
  let n = u.match(t.other.indentCodeCompensation);
29187
29203
  if (n === null)
29188
29204
  return e;
@@ -29197,7 +29213,7 @@ function Je(u, e, t) {
29197
29213
  }).join(`
29198
29214
  `);
29199
29215
  }
29200
- var y = class {
29216
+ var w = class {
29201
29217
  options;
29202
29218
  rules;
29203
29219
  lexer;
@@ -29213,14 +29229,14 @@ var y = class {
29213
29229
  let t = this.rules.block.code.exec(e);
29214
29230
  if (t) {
29215
29231
  let n = t[0].replace(this.rules.other.codeRemoveIndent, "");
29216
- return { type: "code", raw: t[0], codeBlockStyle: "indented", text: this.options.pedantic ? n : z(n, `
29232
+ return { type: "code", raw: t[0], codeBlockStyle: "indented", text: this.options.pedantic ? n : C(n, `
29217
29233
  `) };
29218
29234
  }
29219
29235
  }
29220
29236
  fences(e) {
29221
29237
  let t = this.rules.block.fences.exec(e);
29222
29238
  if (t) {
29223
- let n = t[0], r = Je(n, t[3] || "", this.rules);
29239
+ let n = t[0], r = it(n, t[3] || "", this.rules);
29224
29240
  return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r };
29225
29241
  }
29226
29242
  }
@@ -29229,7 +29245,7 @@ var y = class {
29229
29245
  if (t) {
29230
29246
  let n = t[2].trim();
29231
29247
  if (this.rules.other.endingHash.test(n)) {
29232
- let r = z(n, "#");
29248
+ let r = C(n, "#");
29233
29249
  (this.options.pedantic || !r || this.rules.other.endingSpaceChar.test(r)) && (n = r.trim());
29234
29250
  }
29235
29251
  return { type: "heading", raw: t[0], depth: t[1].length, text: n, tokens: this.lexer.inline(n) };
@@ -29238,13 +29254,13 @@ var y = class {
29238
29254
  hr(e) {
29239
29255
  let t = this.rules.block.hr.exec(e);
29240
29256
  if (t)
29241
- return { type: "hr", raw: z(t[0], `
29257
+ return { type: "hr", raw: C(t[0], `
29242
29258
  `) };
29243
29259
  }
29244
29260
  blockquote(e) {
29245
29261
  let t = this.rules.block.blockquote.exec(e);
29246
29262
  if (t) {
29247
- let n = z(t[0], `
29263
+ let n = C(t[0], `
29248
29264
  `).split(`
29249
29265
  `), r = "", i = "", s = [];
29250
29266
  for (;n.length > 0; ) {
@@ -29263,8 +29279,8 @@ var y = class {
29263
29279
  r = r ? `${r}
29264
29280
  ${p}` : p, i = i ? `${i}
29265
29281
  ${c}` : c;
29266
- let g = this.lexer.state.top;
29267
- if (this.lexer.state.top = true, this.lexer.blockTokens(c, s, true), this.lexer.state.top = g, n.length === 0)
29282
+ let d = this.lexer.state.top;
29283
+ if (this.lexer.state.top = true, this.lexer.blockTokens(c, s, true), this.lexer.state.top = d, n.length === 0)
29268
29284
  break;
29269
29285
  let h = s.at(-1);
29270
29286
  if (h?.type === "code")
@@ -29272,14 +29288,14 @@ ${c}` : c;
29272
29288
  if (h?.type === "blockquote") {
29273
29289
  let R = h, f = R.raw + `
29274
29290
  ` + n.join(`
29275
- `), O = this.blockquote(f);
29276
- s[s.length - 1] = O, r = r.substring(0, r.length - R.raw.length) + O.raw, i = i.substring(0, i.length - R.text.length) + O.text;
29291
+ `), S = this.blockquote(f);
29292
+ s[s.length - 1] = S, r = r.substring(0, r.length - R.raw.length) + S.raw, i = i.substring(0, i.length - R.text.length) + S.text;
29277
29293
  break;
29278
29294
  } else if (h?.type === "list") {
29279
29295
  let R = h, f = R.raw + `
29280
29296
  ` + n.join(`
29281
- `), O = this.list(f);
29282
- s[s.length - 1] = O, r = r.substring(0, r.length - h.raw.length) + O.raw, i = i.substring(0, i.length - R.raw.length) + O.raw, n = f.substring(s.at(-1).raw.length).split(`
29297
+ `), S = this.list(f);
29298
+ s[s.length - 1] = S, r = r.substring(0, r.length - h.raw.length) + S.raw, i = i.substring(0, i.length - R.raw.length) + S.raw, n = f.substring(s.at(-1).raw.length).split(`
29283
29299
  `);
29284
29300
  continue;
29285
29301
  }
@@ -29298,28 +29314,28 @@ ${c}` : c;
29298
29314
  if (!(t = s.exec(e)) || this.rules.block.hr.test(e))
29299
29315
  break;
29300
29316
  p = t[0], e = e.substring(p.length);
29301
- let g = t[2].split(`
29302
- `, 1)[0].replace(this.rules.other.listReplaceTabs, (O) => " ".repeat(3 * O.length)), h = e.split(`
29303
- `, 1)[0], R = !g.trim(), f = 0;
29304
- if (this.options.pedantic ? (f = 2, c = g.trimStart()) : R ? f = t[1].length + 1 : (f = t[2].search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, c = g.slice(f), f += t[1].length), R && this.rules.other.blankLine.test(h) && (p += h + `
29317
+ let d = fe(t[2].split(`
29318
+ `, 1)[0], t[1].length), h = e.split(`
29319
+ `, 1)[0], R = !d.trim(), f = 0;
29320
+ if (this.options.pedantic ? (f = 2, c = d.trimStart()) : R ? f = t[1].length + 1 : (f = d.search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, c = d.slice(f), f += t[1].length), R && this.rules.other.blankLine.test(h) && (p += h + `
29305
29321
  `, e = e.substring(h.length + 1), l = true), !l) {
29306
- let O = this.rules.other.nextBulletRegex(f), V = this.rules.other.hrRegex(f), Y = this.rules.other.fencesBeginRegex(f), ee = this.rules.other.headingBeginRegex(f), fe = this.rules.other.htmlBeginRegex(f);
29322
+ let S = this.rules.other.nextBulletRegex(f), V = this.rules.other.hrRegex(f), Y = this.rules.other.fencesBeginRegex(f), ee = this.rules.other.headingBeginRegex(f), xe = this.rules.other.htmlBeginRegex(f), be = this.rules.other.blockquoteBeginRegex(f);
29307
29323
  for (;e; ) {
29308
- let H = e.split(`
29324
+ let G = e.split(`
29309
29325
  `, 1)[0], A;
29310
- if (h = H, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), A = h) : A = h.replace(this.rules.other.tabCharGlobal, " "), Y.test(h) || ee.test(h) || fe.test(h) || O.test(h) || V.test(h))
29326
+ if (h = G, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), A = h) : A = h.replace(this.rules.other.tabCharGlobal, " "), Y.test(h) || ee.test(h) || xe.test(h) || be.test(h) || S.test(h) || V.test(h))
29311
29327
  break;
29312
29328
  if (A.search(this.rules.other.nonSpaceChar) >= f || !h.trim())
29313
29329
  c += `
29314
29330
  ` + A.slice(f);
29315
29331
  else {
29316
- if (R || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Y.test(g) || ee.test(g) || V.test(g))
29332
+ if (R || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Y.test(d) || ee.test(d) || V.test(d))
29317
29333
  break;
29318
29334
  c += `
29319
29335
  ` + h;
29320
29336
  }
29321
- !R && !h.trim() && (R = true), p += H + `
29322
- `, e = e.substring(H.length + 1), g = A.slice(f);
29337
+ R = !h.trim(), p += G + `
29338
+ `, e = e.substring(G.length + 1), d = A.slice(f);
29323
29339
  }
29324
29340
  }
29325
29341
  i.loose || (a ? i.loose = true : this.rules.other.doubleBlankLine.test(p) && (a = true)), i.items.push({ type: "list_item", raw: p, task: !!this.options.gfm && this.rules.other.listIsTask.test(c), loose: false, text: c, tokens: [] }), i.raw += p;
@@ -29347,7 +29363,7 @@ ${c}` : c;
29347
29363
  }
29348
29364
  }
29349
29365
  if (!i.loose) {
29350
- let p = l.tokens.filter((g) => g.type === "space"), c = p.length > 0 && p.some((g) => this.rules.other.anyLine.test(g.raw));
29366
+ let p = l.tokens.filter((d) => d.type === "space"), c = p.length > 0 && p.some((d) => this.rules.other.anyLine.test(d.raw));
29351
29367
  i.loose = c;
29352
29368
  }
29353
29369
  }
@@ -29423,11 +29439,11 @@ ${c}` : c;
29423
29439
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(n)) {
29424
29440
  if (!this.rules.other.endAngleBracket.test(n))
29425
29441
  return;
29426
- let s = z(n.slice(0, -1), "\\");
29442
+ let s = C(n.slice(0, -1), "\\");
29427
29443
  if ((n.length - s.length) % 2 === 0)
29428
29444
  return;
29429
29445
  } else {
29430
- let s = de(t[2], "()");
29446
+ let s = ge(t[2], "()");
29431
29447
  if (s === -2)
29432
29448
  return;
29433
29449
  if (s > -1) {
@@ -29441,7 +29457,7 @@ ${c}` : c;
29441
29457
  s && (r = s[1], i = s[3]);
29442
29458
  } else
29443
29459
  i = t[3] ? t[3].slice(1, -1) : "";
29444
- 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)), ge(t, { href: r && r.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
29460
+ 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)), me(t, { href: r && r.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
29445
29461
  }
29446
29462
  }
29447
29463
  reflink(e, t) {
@@ -29452,7 +29468,7 @@ ${c}` : c;
29452
29468
  let s = n[0].charAt(0);
29453
29469
  return { type: "text", raw: s, text: s };
29454
29470
  }
29455
- return ge(n, i, n[0], this.lexer, this.rules);
29471
+ return me(n, i, n[0], this.lexer, this.rules);
29456
29472
  }
29457
29473
  }
29458
29474
  emStrong(e, t, n = "") {
@@ -29474,7 +29490,7 @@ ${c}` : c;
29474
29490
  if (l -= o, l > 0)
29475
29491
  continue;
29476
29492
  o = Math.min(o, o + l + p);
29477
- let g = [...r[0]][0].length, h = e.slice(0, s + r.index + g + o);
29493
+ let d = [...r[0]][0].length, h = e.slice(0, s + r.index + d + o);
29478
29494
  if (Math.min(s, o) % 2) {
29479
29495
  let f = h.slice(1, -1);
29480
29496
  return { type: "em", raw: h, text: f, tokens: this.lexer.inlineTokens(f) };
@@ -29496,10 +29512,26 @@ ${c}` : c;
29496
29512
  if (t)
29497
29513
  return { type: "br", raw: t[0] };
29498
29514
  }
29499
- del(e) {
29500
- let t = this.rules.inline.del.exec(e);
29501
- if (t)
29502
- return { type: "del", raw: t[0], text: t[2], tokens: this.lexer.inlineTokens(t[2]) };
29515
+ del(e, t, n = "") {
29516
+ let r = this.rules.inline.delLDelim.exec(e);
29517
+ if (!r)
29518
+ return;
29519
+ if (!(r[1] || "") || !n || this.rules.inline.punctuation.exec(n)) {
29520
+ let s = [...r[0]].length - 1, a, o, l = s, p = this.rules.inline.delRDelim;
29521
+ for (p.lastIndex = 0, t = t.slice(-1 * e.length + s);(r = p.exec(t)) != null; ) {
29522
+ if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a || (o = [...a].length, o !== s))
29523
+ continue;
29524
+ if (r[3] || r[4]) {
29525
+ l += o;
29526
+ continue;
29527
+ }
29528
+ if (l -= o, l > 0)
29529
+ continue;
29530
+ o = Math.min(o, o + l);
29531
+ let c = [...r[0]][0].length, d = e.slice(0, s + r.index + c + o), h = d.slice(s, -s);
29532
+ return { type: "del", raw: d, text: h, tokens: this.lexer.inlineTokens(h) };
29533
+ }
29534
+ }
29503
29535
  }
29504
29536
  autolink(e) {
29505
29537
  let t = this.rules.inline.autolink.exec(e);
@@ -29539,12 +29571,12 @@ var x = class u {
29539
29571
  inlineQueue;
29540
29572
  tokenizer;
29541
29573
  constructor(e) {
29542
- this.tokens = [], this.tokens.links = Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new y, this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
29543
- let t = { other: m, block: E.normal, inline: M.normal };
29544
- this.options.pedantic ? (t.block = E.pedantic, t.inline = M.pedantic) : this.options.gfm && (t.block = E.gfm, this.options.breaks ? t.inline = M.breaks : t.inline = M.gfm), this.tokenizer.rules = t;
29574
+ this.tokens = [], this.tokens.links = Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new w, this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
29575
+ let t = { other: m, block: E.normal, inline: z.normal };
29576
+ this.options.pedantic ? (t.block = E.pedantic, t.inline = z.pedantic) : this.options.gfm && (t.block = E.gfm, this.options.breaks ? t.inline = z.breaks : t.inline = z.gfm), this.tokenizer.rules = t;
29545
29577
  }
29546
29578
  static get rules() {
29547
- return { block: E, inline: M };
29579
+ return { block: E, inline: z };
29548
29580
  }
29549
29581
  static lex(e, t) {
29550
29582
  return new u(t).lex(e);
@@ -29711,7 +29743,7 @@ var x = class u {
29711
29743
  e = e.substring(o.raw.length), t.push(o);
29712
29744
  continue;
29713
29745
  }
29714
- if (o = this.tokenizer.del(e)) {
29746
+ if (o = this.tokenizer.del(e, n, a)) {
29715
29747
  e = e.substring(o.raw.length), t.push(o);
29716
29748
  continue;
29717
29749
  }
@@ -29725,9 +29757,9 @@ var x = class u {
29725
29757
  }
29726
29758
  let l = e;
29727
29759
  if (this.options.extensions?.startInline) {
29728
- let p = 1 / 0, c = e.slice(1), g;
29760
+ let p = 1 / 0, c = e.slice(1), d;
29729
29761
  this.options.extensions.startInline.forEach((h) => {
29730
- g = h.call({ lexer: this }, c), typeof g == "number" && g >= 0 && (p = Math.min(p, g));
29762
+ d = h.call({ lexer: this }, c), typeof d == "number" && d >= 0 && (p = Math.min(p, d));
29731
29763
  }), p < 1 / 0 && p >= 0 && (l = e.substring(0, p + 1));
29732
29764
  }
29733
29765
  if (o = this.tokenizer.inlineText(l)) {
@@ -29748,7 +29780,7 @@ var x = class u {
29748
29780
  return t;
29749
29781
  }
29750
29782
  };
29751
- var P = class {
29783
+ var y = class {
29752
29784
  options;
29753
29785
  parser;
29754
29786
  constructor(e) {
@@ -29760,8 +29792,8 @@ var P = class {
29760
29792
  code({ text: e, lang: t, escaped: n }) {
29761
29793
  let r = (t || "").match(m.notSpaceStart)?.[0], i = e.replace(m.endingNewline, "") + `
29762
29794
  `;
29763
- return r ? '<pre><code class="language-' + w(r) + '">' + (n ? i : w(i, true)) + `</code></pre>
29764
- ` : "<pre><code>" + (n ? i : w(i, true)) + `</code></pre>
29795
+ return r ? '<pre><code class="language-' + O(r) + '">' + (n ? i : O(i, true)) + `</code></pre>
29796
+ ` : "<pre><code>" + (n ? i : O(i, true)) + `</code></pre>
29765
29797
  `;
29766
29798
  }
29767
29799
  blockquote({ tokens: e }) {
@@ -29841,7 +29873,7 @@ ${e}</tr>
29841
29873
  return `<em>${this.parser.parseInline(e)}</em>`;
29842
29874
  }
29843
29875
  codespan({ text: e }) {
29844
- return `<code>${w(e, true)}</code>`;
29876
+ return `<code>${O(e, true)}</code>`;
29845
29877
  }
29846
29878
  br(e) {
29847
29879
  return "<br>";
@@ -29855,19 +29887,19 @@ ${e}</tr>
29855
29887
  return r;
29856
29888
  e = i;
29857
29889
  let s = '<a href="' + e + '"';
29858
- return t && (s += ' title="' + w(t) + '"'), s += ">" + r + "</a>", s;
29890
+ return t && (s += ' title="' + O(t) + '"'), s += ">" + r + "</a>", s;
29859
29891
  }
29860
29892
  image({ href: e, title: t, text: n, tokens: r }) {
29861
29893
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
29862
29894
  let i = X(e);
29863
29895
  if (i === null)
29864
- return w(n);
29896
+ return O(n);
29865
29897
  e = i;
29866
29898
  let s = `<img src="${e}" alt="${n}"`;
29867
- return t && (s += ` title="${w(t)}"`), s += ">", s;
29899
+ return t && (s += ` title="${O(t)}"`), s += ">", s;
29868
29900
  }
29869
29901
  text(e) {
29870
- return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : ("escaped" in e) && e.escaped ? e.text : w(e.text);
29902
+ return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : ("escaped" in e) && e.escaped ? e.text : O(e.text);
29871
29903
  }
29872
29904
  };
29873
29905
  var $ = class {
@@ -29907,7 +29939,7 @@ var b = class u2 {
29907
29939
  renderer;
29908
29940
  textRenderer;
29909
29941
  constructor(e) {
29910
- this.options = e || T, this.options.renderer = this.options.renderer || new P, this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $;
29942
+ this.options = e || T, this.options.renderer = this.options.renderer || new y, this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $;
29911
29943
  }
29912
29944
  static parse(e, t) {
29913
29945
  return new u2(t).parse(e);
@@ -30054,7 +30086,7 @@ var b = class u2 {
30054
30086
  return n;
30055
30087
  }
30056
30088
  };
30057
- var S = class {
30089
+ var P = class {
30058
30090
  options;
30059
30091
  block;
30060
30092
  constructor(e) {
@@ -30082,16 +30114,16 @@ var S = class {
30082
30114
  }
30083
30115
  };
30084
30116
  var B = class {
30085
- defaults = L();
30117
+ defaults = M();
30086
30118
  options = this.setOptions;
30087
30119
  parse = this.parseMarkdown(true);
30088
30120
  parseInline = this.parseMarkdown(false);
30089
30121
  Parser = b;
30090
- Renderer = P;
30122
+ Renderer = y;
30091
30123
  TextRenderer = $;
30092
30124
  Lexer = x;
30093
- Tokenizer = y;
30094
- Hooks = S;
30125
+ Tokenizer = w;
30126
+ Hooks = P;
30095
30127
  constructor(...e) {
30096
30128
  this.use(...e);
30097
30129
  }
@@ -30145,7 +30177,7 @@ var B = class {
30145
30177
  }
30146
30178
  "childTokens" in i && i.childTokens && (t.childTokens[i.name] = i.childTokens);
30147
30179
  }), r.extensions = t), n.renderer) {
30148
- let i = this.defaults.renderer || new P(this.defaults);
30180
+ let i = this.defaults.renderer || new y(this.defaults);
30149
30181
  for (let s in n.renderer) {
30150
30182
  if (!(s in i))
30151
30183
  throw new Error(`renderer '${s}' does not exist`);
@@ -30160,7 +30192,7 @@ var B = class {
30160
30192
  r.renderer = i;
30161
30193
  }
30162
30194
  if (n.tokenizer) {
30163
- let i = this.defaults.tokenizer || new y(this.defaults);
30195
+ let i = this.defaults.tokenizer || new w(this.defaults);
30164
30196
  for (let s in n.tokenizer) {
30165
30197
  if (!(s in i))
30166
30198
  throw new Error(`tokenizer '${s}' does not exist`);
@@ -30175,26 +30207,26 @@ var B = class {
30175
30207
  r.tokenizer = i;
30176
30208
  }
30177
30209
  if (n.hooks) {
30178
- let i = this.defaults.hooks || new S;
30210
+ let i = this.defaults.hooks || new P;
30179
30211
  for (let s in n.hooks) {
30180
30212
  if (!(s in i))
30181
30213
  throw new Error(`hook '${s}' does not exist`);
30182
30214
  if (["options", "block"].includes(s))
30183
30215
  continue;
30184
30216
  let a = s, o = n.hooks[a], l = i[a];
30185
- S.passThroughHooks.has(s) ? i[a] = (p) => {
30186
- if (this.defaults.async && S.passThroughHooksRespectAsync.has(s))
30217
+ P.passThroughHooks.has(s) ? i[a] = (p) => {
30218
+ if (this.defaults.async && P.passThroughHooksRespectAsync.has(s))
30187
30219
  return (async () => {
30188
- let g = await o.call(i, p);
30189
- return l.call(i, g);
30220
+ let d = await o.call(i, p);
30221
+ return l.call(i, d);
30190
30222
  })();
30191
30223
  let c = o.call(i, p);
30192
30224
  return l.call(i, c);
30193
30225
  } : i[a] = (...p) => {
30194
30226
  if (this.defaults.async)
30195
30227
  return (async () => {
30196
- let g = await o.apply(i, p);
30197
- return g === false && (g = await l.apply(i, p)), g;
30228
+ let d = await o.apply(i, p);
30229
+ return d === false && (d = await l.apply(i, p)), d;
30198
30230
  })();
30199
30231
  let c = o.apply(i, p);
30200
30232
  return c === false && (c = l.apply(i, p)), c;
@@ -30252,7 +30284,7 @@ var B = class {
30252
30284
  return (n) => {
30253
30285
  if (n.message += `
30254
30286
  Please report this to https://github.com/markedjs/marked.`, e) {
30255
- let r = "<p>An error occurred:</p><pre>" + w(n.message + "", true) + "</pre>";
30287
+ let r = "<p>An error occurred:</p><pre>" + O(n.message + "", true) + "</pre>";
30256
30288
  return t ? Promise.resolve(r) : r;
30257
30289
  }
30258
30290
  if (t)
@@ -30261,41 +30293,41 @@ Please report this to https://github.com/markedjs/marked.`, e) {
30261
30293
  };
30262
30294
  }
30263
30295
  };
30264
- var _ = new B;
30265
- function d(u3, e) {
30266
- return _.parse(u3, e);
30296
+ var L = new B;
30297
+ function g(u3, e) {
30298
+ return L.parse(u3, e);
30267
30299
  }
30268
- d.options = d.setOptions = function(u3) {
30269
- return _.setOptions(u3), d.defaults = _.defaults, Z(d.defaults), d;
30300
+ g.options = g.setOptions = function(u3) {
30301
+ return L.setOptions(u3), g.defaults = L.defaults, H(g.defaults), g;
30270
30302
  };
30271
- d.getDefaults = L;
30272
- d.defaults = T;
30273
- d.use = function(...u3) {
30274
- return _.use(...u3), d.defaults = _.defaults, Z(d.defaults), d;
30303
+ g.getDefaults = M;
30304
+ g.defaults = T;
30305
+ g.use = function(...u3) {
30306
+ return L.use(...u3), g.defaults = L.defaults, H(g.defaults), g;
30275
30307
  };
30276
- d.walkTokens = function(u3, e) {
30277
- return _.walkTokens(u3, e);
30308
+ g.walkTokens = function(u3, e) {
30309
+ return L.walkTokens(u3, e);
30278
30310
  };
30279
- d.parseInline = _.parseInline;
30280
- d.Parser = b;
30281
- d.parser = b.parse;
30282
- d.Renderer = P;
30283
- d.TextRenderer = $;
30284
- d.Lexer = x;
30285
- d.lexer = x.lex;
30286
- d.Tokenizer = y;
30287
- d.Hooks = S;
30288
- d.parse = d;
30289
- var Dt = d.options;
30290
- var Ht = d.setOptions;
30291
- var Zt = d.use;
30292
- var Gt = d.walkTokens;
30293
- var Nt = d.parseInline;
30294
- var Ft = b.parse;
30295
- var jt = x.lex;
30311
+ g.parseInline = L.parseInline;
30312
+ g.Parser = b;
30313
+ g.parser = b.parse;
30314
+ g.Renderer = y;
30315
+ g.TextRenderer = $;
30316
+ g.Lexer = x;
30317
+ g.lexer = x.lex;
30318
+ g.Tokenizer = w;
30319
+ g.Hooks = P;
30320
+ g.parse = g;
30321
+ var Ut = g.options;
30322
+ var Kt = g.setOptions;
30323
+ var Wt = g.use;
30324
+ var Xt = g.walkTokens;
30325
+ var Jt = g.parseInline;
30326
+ var Yt = b.parse;
30327
+ var en = x.lex;
30296
30328
 
30297
30329
  // node_modules/marked-alert/dist/index.js
30298
- var d2 = [
30330
+ var d = [
30299
30331
  {
30300
30332
  type: "note",
30301
30333
  icon: '<svg class="octicon octicon-info mr-2" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>'
@@ -30318,7 +30350,7 @@ var d2 = [
30318
30350
  }
30319
30351
  ];
30320
30352
  function m2(a) {
30321
- return a.length ? Object.values([...d2, ...a].reduce((i, s) => (i[s.type] = s, i), {})) : d2;
30353
+ return a.length ? Object.values([...d, ...a].reduce((i, s) => (i[s.type] = s, i), {})) : d;
30322
30354
  }
30323
30355
  function u3(a) {
30324
30356
  return `^(?:\\[!${a.toUpperCase()}])\\s*?
@@ -30328,13 +30360,13 @@ function x2(a) {
30328
30360
  return a.slice(0, 1).toUpperCase() + a.slice(1).toLowerCase();
30329
30361
  }
30330
30362
  function A(a = {}) {
30331
- const { className: i = "markdown-alert", variants: s = [] } = a, g = m2(s);
30363
+ const { className: i = "markdown-alert", variants: s = [] } = a, g2 = m2(s);
30332
30364
  return {
30333
30365
  walkTokens(t) {
30334
30366
  var e, h, p, v2;
30335
30367
  if (t.type !== "blockquote")
30336
30368
  return;
30337
- const c = g.find(({ type: n }) => new RegExp(u3(n)).test(t.text));
30369
+ const c = g2.find(({ type: n }) => new RegExp(u3(n)).test(t.text));
30338
30370
  if (c) {
30339
30371
  const {
30340
30372
  type: n,
@@ -31311,7 +31343,7 @@ class SiteGenerator {
31311
31343
  watch: false
31312
31344
  });
31313
31345
  env.addFilter("date", function(date, format) {
31314
- const d3 = toPacificTime(date);
31346
+ const d2 = toPacificTime(date);
31315
31347
  const months = [
31316
31348
  "January",
31317
31349
  "February",
@@ -31327,15 +31359,15 @@ class SiteGenerator {
31327
31359
  "December"
31328
31360
  ];
31329
31361
  if (format === "YYYY") {
31330
- return d3.getFullYear();
31362
+ return d2.getFullYear();
31331
31363
  } else if (format === "MMMM D, YYYY") {
31332
- return `${months[d3.getMonth()]} ${d3.getDate()}, ${d3.getFullYear()}`;
31364
+ return `${months[d2.getMonth()]} ${d2.getDate()}, ${d2.getFullYear()}`;
31333
31365
  } else if (format === "MMMM D, YYYY h:mm A") {
31334
- const hours = d3.getHours() % 12 || 12;
31335
- const ampm = d3.getHours() >= 12 ? "PM" : "AM";
31336
- return `${months[d3.getMonth()]} ${d3.getDate()}, ${d3.getFullYear()} @ ${hours} ${ampm}`;
31366
+ const hours = d2.getHours() % 12 || 12;
31367
+ const ampm = d2.getHours() >= 12 ? "PM" : "AM";
31368
+ return `${months[d2.getMonth()]} ${d2.getDate()}, ${d2.getFullYear()} @ ${hours} ${ampm}`;
31337
31369
  } else {
31338
- return d3.toLocaleDateString("en-US", {
31370
+ return d2.toLocaleDateString("en-US", {
31339
31371
  timeZone: "America/Los_Angeles"
31340
31372
  });
31341
31373
  }
@@ -31401,10 +31433,26 @@ class SiteGenerator {
31401
31433
  this.generateRSSFeed(),
31402
31434
  this.generateSitemap(),
31403
31435
  this.generateRobotsTxt(),
31436
+ this.generate404Page(),
31404
31437
  this.copyStaticAssets()
31405
31438
  ]);
31406
31439
  console.log("Site generation complete!");
31407
31440
  }
31441
+ async generate404Page() {
31442
+ try {
31443
+ const notFoundHtml = import_nunjucks.default.render("404.njk", {
31444
+ site: this.options.config
31445
+ });
31446
+ await Bun.write(path5.join(this.options.outputDir, "404.html"), notFoundHtml);
31447
+ console.log("Generated 404.html");
31448
+ } catch (error) {
31449
+ if (error instanceof Error && error.message.includes("404.njk")) {
31450
+ console.log("No 404.njk template found, skipping 404 page generation");
31451
+ } else {
31452
+ console.warn("Error generating 404 page:", error);
31453
+ }
31454
+ }
31455
+ }
31408
31456
  async generateYearArchives() {
31409
31457
  for (const [year, yearPosts] of Object.entries(this.site.postsByYear)) {
31410
31458
  const yearDir = path5.join(this.options.outputDir, year);