@burdenoff/fe-libs 2026.720.1 → 2026.720.3
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/node_modules/ccount/index.js +10 -0
- package/dist/node_modules/hast-util-sanitize/lib/index.js +161 -0
- package/dist/node_modules/hast-util-sanitize/lib/schema.js +74 -0
- package/dist/node_modules/longest-streak/index.js +9 -0
- package/dist/node_modules/markdown-table/index.js +59 -0
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +61 -0
- package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +7 -0
- package/dist/node_modules/mdast-util-gfm/lib/index.js +26 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +129 -0
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +97 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +49 -0
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +137 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +58 -0
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +12 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +36 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +24 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +24 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +10 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +23 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +28 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +44 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +19 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +23 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +41 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +18 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +26 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +38 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +12 -0
- package/dist/node_modules/micromark-extension-gfm/index.js +18 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +174 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +193 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +96 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +43 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +20 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +201 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +34 -0
- package/dist/node_modules/rehype-sanitize/lib/index.js +9 -0
- package/dist/node_modules/remark-gfm/lib/index.js +10 -0
- package/dist/shared/components/Markdown.d.ts +22 -0
- package/dist/shared/components/Markdown.d.ts.map +1 -0
- package/dist/shared/components/Markdown.js +38 -0
- package/dist/shared/components/index.d.ts +2 -0
- package/dist/shared/components/index.d.ts.map +1 -1
- package/dist/shared/graphql/fetch.d.ts.map +1 -1
- package/dist/shared/pages/LegalPage.js +1 -1
- package/dist/shared/tours/routeCatalog.d.ts.map +1 -1
- package/dist/shared/tours/routeCatalog.js +88 -0
- package/dist/shared-components.js +2 -1
- package/dist/shared.js +59 -58
- package/package.json +7 -1
- package/dist/shared/components/LegalPage.d.ts +0 -19
- package/dist/shared/components/LegalPage.d.ts.map +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = e.options.bulletOrdered || ".";
|
|
4
|
+
if (t !== "." && t !== ")") throw Error("Cannot serialize items with `" + t + "` for `options.bulletOrdered`, expected `.` or `)`");
|
|
5
|
+
return t;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { e as checkBulletOrdered };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { checkBullet as e } from "./check-bullet.js";
|
|
2
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js
|
|
3
|
+
function t(t) {
|
|
4
|
+
let n = e(t), r = t.options.bulletOther;
|
|
5
|
+
if (!r) return n === "*" ? "-" : "*";
|
|
6
|
+
if (r !== "*" && r !== "+" && r !== "-") throw Error("Cannot serialize items with `" + r + "` for `options.bulletOther`, expected `*`, `+`, or `-`");
|
|
7
|
+
if (r === n) throw Error("Expected `bullet` (`" + n + "`) and `bulletOther` (`" + r + "`) to be different");
|
|
8
|
+
return r;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as checkBulletOther };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/check-bullet.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = e.options.bullet || "*";
|
|
4
|
+
if (t !== "*" && t !== "+" && t !== "-") throw Error("Cannot serialize items with `" + t + "` for `options.bullet`, expected `*`, `+`, or `-`");
|
|
5
|
+
return t;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { e as checkBullet };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = e.options.emphasis || "*";
|
|
4
|
+
if (t !== "*" && t !== "_") throw Error("Cannot serialize emphasis with `" + t + "` for `options.emphasis`, expected `*`, or `_`");
|
|
5
|
+
return t;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { e as checkEmphasis };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/check-fence.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = e.options.fence || "`";
|
|
4
|
+
if (t !== "`" && t !== "~") throw Error("Cannot serialize code with `" + t + "` for `options.fence`, expected `` ` `` or `~`");
|
|
5
|
+
return t;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { e as checkFence };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = e.options.listItemIndent || "one";
|
|
4
|
+
if (t !== "tab" && t !== "one" && t !== "mixed") throw Error("Cannot serialize items with `" + t + "` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");
|
|
5
|
+
return t;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { e as checkListItemIndent };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/check-quote.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = e.options.quote || "\"";
|
|
4
|
+
if (t !== "\"" && t !== "'") throw Error("Cannot serialize title with `" + t + "` for `options.quote`, expected `\"`, or `'`");
|
|
5
|
+
return t;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { e as checkQuote };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = e.options.ruleRepetition || 3;
|
|
4
|
+
if (t < 3) throw Error("Cannot serialize rules with repetition `" + t + "` for `options.ruleRepetition`, expected `3` or more");
|
|
5
|
+
return t;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { e as checkRuleRepetition };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/check-rule.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = e.options.rule || "*";
|
|
4
|
+
if (t !== "*" && t !== "-" && t !== "_") throw Error("Cannot serialize rules with `" + t + "` for `options.rule`, expected `*`, `-`, or `_`");
|
|
5
|
+
return t;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { e as checkRule };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/check-strong.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = e.options.strong || "*";
|
|
4
|
+
if (t !== "*" && t !== "_") throw Error("Cannot serialize strong with `" + t + "` for `options.strong`, expected `*`, or `_`");
|
|
5
|
+
return t;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { e as checkStrong };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { classifyCharacter as e } from "../../../micromark-util-classify-character/index.js";
|
|
2
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/encode-info.js
|
|
3
|
+
function t(t, n, r) {
|
|
4
|
+
let i = e(t), a = e(n);
|
|
5
|
+
return i === void 0 ? a === void 0 ? r === "_" ? {
|
|
6
|
+
inside: !0,
|
|
7
|
+
outside: !0
|
|
8
|
+
} : {
|
|
9
|
+
inside: !1,
|
|
10
|
+
outside: !1
|
|
11
|
+
} : a === 1 ? {
|
|
12
|
+
inside: !0,
|
|
13
|
+
outside: !0
|
|
14
|
+
} : {
|
|
15
|
+
inside: !1,
|
|
16
|
+
outside: !0
|
|
17
|
+
} : i === 1 ? a === void 0 ? {
|
|
18
|
+
inside: !1,
|
|
19
|
+
outside: !1
|
|
20
|
+
} : a === 1 ? {
|
|
21
|
+
inside: !0,
|
|
22
|
+
outside: !0
|
|
23
|
+
} : {
|
|
24
|
+
inside: !1,
|
|
25
|
+
outside: !1
|
|
26
|
+
} : a === void 0 ? {
|
|
27
|
+
inside: !1,
|
|
28
|
+
outside: !1
|
|
29
|
+
} : a === 1 ? {
|
|
30
|
+
inside: !0,
|
|
31
|
+
outside: !1
|
|
32
|
+
} : {
|
|
33
|
+
inside: !1,
|
|
34
|
+
outside: !1
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
export { t as encodeInfo };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
return !!(t.options.fences === !1 && e.value && !e.lang && /[^ \r\n]/.test(e.value) && !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value));
|
|
4
|
+
}
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as formatCodeAsIndented };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { toString as e } from "../../../mdast-util-to-string/lib/index.js";
|
|
2
|
+
import { visit as t } from "../../../unist-util-visit/lib/index.js";
|
|
3
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js
|
|
4
|
+
function n(n, r) {
|
|
5
|
+
let i = !1;
|
|
6
|
+
return t(n, function(e) {
|
|
7
|
+
if ("value" in e && /\r?\n|\r/.test(e.value) || e.type === "break") return i = !0, !1;
|
|
8
|
+
}), !!((!n.depth || n.depth < 3) && e(n) && (r.options.setext || i));
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { n as formatHeadingAsSetext };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { toString as e } from "../../../mdast-util-to-string/lib/index.js";
|
|
2
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
let r = e(t);
|
|
5
|
+
return !!(!n.options.resourceLink && t.url && !t.title && t.children && t.children.length === 1 && t.children[0].type === "text" && (r === t.url || "mailto:" + r === t.url) && /^[a-z][a-z+.-]+:/i.test(t.url) && !/[\0- <>\u007F]/.test(t.url));
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t as formatLinkAsAutolink };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js
|
|
2
|
+
function e(e, n) {
|
|
3
|
+
return t(e, n.inConstruct, !0) && !t(e, n.notInConstruct, !1);
|
|
4
|
+
}
|
|
5
|
+
function t(e, t, n) {
|
|
6
|
+
if (typeof t == "string" && (t = [t]), !t || t.length === 0) return n;
|
|
7
|
+
let r = -1;
|
|
8
|
+
for (; ++r < t.length;) if (e.includes(t[r])) return !0;
|
|
9
|
+
return !1;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { e as patternInScope };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { combineExtensions as e } from "../micromark-util-combine-extensions/index.js";
|
|
2
|
+
import { gfmAutolinkLiteral as t } from "../micromark-extension-gfm-autolink-literal/lib/syntax.js";
|
|
3
|
+
import { gfmFootnote as n } from "../micromark-extension-gfm-footnote/lib/syntax.js";
|
|
4
|
+
import { gfmStrikethrough as r } from "../micromark-extension-gfm-strikethrough/lib/syntax.js";
|
|
5
|
+
import { gfmTable as i } from "../micromark-extension-gfm-table/lib/syntax.js";
|
|
6
|
+
import { gfmTaskListItem as a } from "../micromark-extension-gfm-task-list-item/lib/syntax.js";
|
|
7
|
+
//#region node_modules/micromark-extension-gfm/index.js
|
|
8
|
+
function o(o) {
|
|
9
|
+
return e([
|
|
10
|
+
t(),
|
|
11
|
+
n(),
|
|
12
|
+
r(o),
|
|
13
|
+
i(),
|
|
14
|
+
a()
|
|
15
|
+
]);
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { o as gfm };
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { asciiAlpha as e, asciiAlphanumeric as t, asciiControl as n, markdownLineEndingOrSpace as r, unicodePunctuation as i, unicodeWhitespace as a } from "../../micromark-util-character/index.js";
|
|
2
|
+
//#region node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js
|
|
3
|
+
var o = {
|
|
4
|
+
tokenize: b,
|
|
5
|
+
partial: !0
|
|
6
|
+
}, s = {
|
|
7
|
+
tokenize: x,
|
|
8
|
+
partial: !0
|
|
9
|
+
}, c = {
|
|
10
|
+
tokenize: S,
|
|
11
|
+
partial: !0
|
|
12
|
+
}, l = {
|
|
13
|
+
tokenize: C,
|
|
14
|
+
partial: !0
|
|
15
|
+
}, u = {
|
|
16
|
+
tokenize: w,
|
|
17
|
+
partial: !0
|
|
18
|
+
}, d = {
|
|
19
|
+
name: "wwwAutolink",
|
|
20
|
+
tokenize: v,
|
|
21
|
+
previous: T
|
|
22
|
+
}, f = {
|
|
23
|
+
name: "protocolAutolink",
|
|
24
|
+
tokenize: y,
|
|
25
|
+
previous: E
|
|
26
|
+
}, p = {
|
|
27
|
+
name: "emailAutolink",
|
|
28
|
+
tokenize: _,
|
|
29
|
+
previous: D
|
|
30
|
+
}, m = {};
|
|
31
|
+
function h() {
|
|
32
|
+
return { text: m };
|
|
33
|
+
}
|
|
34
|
+
for (var g = 48; g < 123;) m[g] = p, g++, g === 58 ? g = 65 : g === 91 && (g = 97);
|
|
35
|
+
m[43] = p, m[45] = p, m[46] = p, m[95] = p, m[72] = [p, f], m[104] = [p, f], m[87] = [p, d], m[119] = [p, d];
|
|
36
|
+
function _(n, r, i) {
|
|
37
|
+
let a = this, o, s;
|
|
38
|
+
return c;
|
|
39
|
+
function c(e) {
|
|
40
|
+
return !O(e) || !D.call(a, a.previous) || k(a.events) ? i(e) : (n.enter("literalAutolink"), n.enter("literalAutolinkEmail"), l(e));
|
|
41
|
+
}
|
|
42
|
+
function l(e) {
|
|
43
|
+
return O(e) ? (n.consume(e), l) : e === 64 ? (n.consume(e), d) : i(e);
|
|
44
|
+
}
|
|
45
|
+
function d(e) {
|
|
46
|
+
return e === 46 ? n.check(u, p, f)(e) : e === 45 || e === 95 || t(e) ? (s = !0, n.consume(e), d) : p(e);
|
|
47
|
+
}
|
|
48
|
+
function f(e) {
|
|
49
|
+
return n.consume(e), o = !0, d;
|
|
50
|
+
}
|
|
51
|
+
function p(t) {
|
|
52
|
+
return s && o && e(a.previous) ? (n.exit("literalAutolinkEmail"), n.exit("literalAutolink"), r(t)) : i(t);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function v(e, t, n) {
|
|
56
|
+
let r = this;
|
|
57
|
+
return i;
|
|
58
|
+
function i(t) {
|
|
59
|
+
return t !== 87 && t !== 119 || !T.call(r, r.previous) || k(r.events) ? n(t) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(o, e.attempt(s, e.attempt(c, a), n), n)(t));
|
|
60
|
+
}
|
|
61
|
+
function a(n) {
|
|
62
|
+
return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(n);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function y(t, o, l) {
|
|
66
|
+
let u = this, d = "", f = !1;
|
|
67
|
+
return p;
|
|
68
|
+
function p(e) {
|
|
69
|
+
return (e === 72 || e === 104) && E.call(u, u.previous) && !k(u.events) ? (t.enter("literalAutolink"), t.enter("literalAutolinkHttp"), d += String.fromCodePoint(e), t.consume(e), m) : l(e);
|
|
70
|
+
}
|
|
71
|
+
function m(n) {
|
|
72
|
+
if (e(n) && d.length < 5) return d += String.fromCodePoint(n), t.consume(n), m;
|
|
73
|
+
if (n === 58) {
|
|
74
|
+
let e = d.toLowerCase();
|
|
75
|
+
if (e === "http" || e === "https") return t.consume(n), h;
|
|
76
|
+
}
|
|
77
|
+
return l(n);
|
|
78
|
+
}
|
|
79
|
+
function h(e) {
|
|
80
|
+
return e === 47 ? (t.consume(e), f ? g : (f = !0, h)) : l(e);
|
|
81
|
+
}
|
|
82
|
+
function g(e) {
|
|
83
|
+
return e === null || n(e) || r(e) || a(e) || i(e) ? l(e) : t.attempt(s, t.attempt(c, _), l)(e);
|
|
84
|
+
}
|
|
85
|
+
function _(e) {
|
|
86
|
+
return t.exit("literalAutolinkHttp"), t.exit("literalAutolink"), o(e);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
function b(e, t, n) {
|
|
90
|
+
let r = 0;
|
|
91
|
+
return i;
|
|
92
|
+
function i(t) {
|
|
93
|
+
return (t === 87 || t === 119) && r < 3 ? (r++, e.consume(t), i) : t === 46 && r === 3 ? (e.consume(t), a) : n(t);
|
|
94
|
+
}
|
|
95
|
+
function a(e) {
|
|
96
|
+
return e === null ? n(e) : t(e);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function x(e, t, n) {
|
|
100
|
+
let o, s, c;
|
|
101
|
+
return u;
|
|
102
|
+
function u(t) {
|
|
103
|
+
return t === 46 || t === 95 ? e.check(l, f, d)(t) : t === null || r(t) || a(t) || t !== 45 && i(t) ? f(t) : (c = !0, e.consume(t), u);
|
|
104
|
+
}
|
|
105
|
+
function d(t) {
|
|
106
|
+
return t === 95 ? o = !0 : (s = o, o = void 0), e.consume(t), u;
|
|
107
|
+
}
|
|
108
|
+
function f(e) {
|
|
109
|
+
return s || o || !c ? n(e) : t(e);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
function S(e, t) {
|
|
113
|
+
let n = 0, i = 0;
|
|
114
|
+
return o;
|
|
115
|
+
function o(c) {
|
|
116
|
+
return c === 40 ? (n++, e.consume(c), o) : c === 41 && i < n ? s(c) : c === 33 || c === 34 || c === 38 || c === 39 || c === 41 || c === 42 || c === 44 || c === 46 || c === 58 || c === 59 || c === 60 || c === 63 || c === 93 || c === 95 || c === 126 ? e.check(l, t, s)(c) : c === null || r(c) || a(c) ? t(c) : (e.consume(c), o);
|
|
117
|
+
}
|
|
118
|
+
function s(t) {
|
|
119
|
+
return t === 41 && i++, e.consume(t), o;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
function C(t, n, i) {
|
|
123
|
+
return o;
|
|
124
|
+
function o(e) {
|
|
125
|
+
return e === 33 || e === 34 || e === 39 || e === 41 || e === 42 || e === 44 || e === 46 || e === 58 || e === 59 || e === 63 || e === 95 || e === 126 ? (t.consume(e), o) : e === 38 ? (t.consume(e), c) : e === 93 ? (t.consume(e), s) : e === 60 || e === null || r(e) || a(e) ? n(e) : i(e);
|
|
126
|
+
}
|
|
127
|
+
function s(e) {
|
|
128
|
+
return e === null || e === 40 || e === 91 || r(e) || a(e) ? n(e) : o(e);
|
|
129
|
+
}
|
|
130
|
+
function c(t) {
|
|
131
|
+
return e(t) ? l(t) : i(t);
|
|
132
|
+
}
|
|
133
|
+
function l(n) {
|
|
134
|
+
return n === 59 ? (t.consume(n), o) : e(n) ? (t.consume(n), l) : i(n);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
function w(e, n, r) {
|
|
138
|
+
return i;
|
|
139
|
+
function i(t) {
|
|
140
|
+
return e.consume(t), a;
|
|
141
|
+
}
|
|
142
|
+
function a(e) {
|
|
143
|
+
return t(e) ? r(e) : n(e);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
function T(e) {
|
|
147
|
+
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || r(e);
|
|
148
|
+
}
|
|
149
|
+
function E(t) {
|
|
150
|
+
return !e(t);
|
|
151
|
+
}
|
|
152
|
+
function D(e) {
|
|
153
|
+
return !(e === 47 || O(e));
|
|
154
|
+
}
|
|
155
|
+
function O(e) {
|
|
156
|
+
return e === 43 || e === 45 || e === 46 || e === 95 || t(e);
|
|
157
|
+
}
|
|
158
|
+
function k(e) {
|
|
159
|
+
let t = e.length, n = !1;
|
|
160
|
+
for (; t--;) {
|
|
161
|
+
let r = e[t][1];
|
|
162
|
+
if ((r.type === "labelLink" || r.type === "labelImage") && !r._balanced) {
|
|
163
|
+
n = !0;
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
if (r._gfmAutolinkLiteralWalkedInto) {
|
|
167
|
+
n = !1;
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
return e.length > 0 && !n && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), n;
|
|
172
|
+
}
|
|
173
|
+
//#endregion
|
|
174
|
+
export { h as gfmAutolinkLiteral };
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { normalizeIdentifier as e } from "../../micromark-util-normalize-identifier/index.js";
|
|
2
|
+
import { markdownLineEndingOrSpace as t } from "../../micromark-util-character/index.js";
|
|
3
|
+
import { factorySpace as n } from "../../micromark-factory-space/index.js";
|
|
4
|
+
import { blankLine as r } from "../../micromark-core-commonmark/lib/blank-line.js";
|
|
5
|
+
//#region node_modules/micromark-extension-gfm-footnote/lib/syntax.js
|
|
6
|
+
var i = {
|
|
7
|
+
tokenize: f,
|
|
8
|
+
partial: !0
|
|
9
|
+
};
|
|
10
|
+
function a() {
|
|
11
|
+
return {
|
|
12
|
+
document: { 91: {
|
|
13
|
+
name: "gfmFootnoteDefinition",
|
|
14
|
+
tokenize: l,
|
|
15
|
+
continuation: { tokenize: u },
|
|
16
|
+
exit: d
|
|
17
|
+
} },
|
|
18
|
+
text: {
|
|
19
|
+
91: {
|
|
20
|
+
name: "gfmFootnoteCall",
|
|
21
|
+
tokenize: c
|
|
22
|
+
},
|
|
23
|
+
93: {
|
|
24
|
+
name: "gfmPotentialFootnoteCall",
|
|
25
|
+
add: "after",
|
|
26
|
+
tokenize: o,
|
|
27
|
+
resolveTo: s
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function o(t, n, r) {
|
|
33
|
+
let i = this, a = i.events.length, o = i.parser.gfmFootnotes || (i.parser.gfmFootnotes = []), s;
|
|
34
|
+
for (; a--;) {
|
|
35
|
+
let e = i.events[a][1];
|
|
36
|
+
if (e.type === "labelImage") {
|
|
37
|
+
s = e;
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
if (e.type === "gfmFootnoteCall" || e.type === "labelLink" || e.type === "label" || e.type === "image" || e.type === "link") break;
|
|
41
|
+
}
|
|
42
|
+
return c;
|
|
43
|
+
function c(a) {
|
|
44
|
+
if (!s || !s._balanced) return r(a);
|
|
45
|
+
let c = e(i.sliceSerialize({
|
|
46
|
+
start: s.end,
|
|
47
|
+
end: i.now()
|
|
48
|
+
}));
|
|
49
|
+
return c.codePointAt(0) !== 94 || !o.includes(c.slice(1)) ? r(a) : (t.enter("gfmFootnoteCallLabelMarker"), t.consume(a), t.exit("gfmFootnoteCallLabelMarker"), n(a));
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function s(e, t) {
|
|
53
|
+
let n = e.length;
|
|
54
|
+
for (; n--;) if (e[n][1].type === "labelImage" && e[n][0] === "enter") {
|
|
55
|
+
e[n][1];
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
e[n + 1][1].type = "data", e[n + 3][1].type = "gfmFootnoteCallLabelMarker";
|
|
59
|
+
let r = {
|
|
60
|
+
type: "gfmFootnoteCall",
|
|
61
|
+
start: Object.assign({}, e[n + 3][1].start),
|
|
62
|
+
end: Object.assign({}, e[e.length - 1][1].end)
|
|
63
|
+
}, i = {
|
|
64
|
+
type: "gfmFootnoteCallMarker",
|
|
65
|
+
start: Object.assign({}, e[n + 3][1].end),
|
|
66
|
+
end: Object.assign({}, e[n + 3][1].end)
|
|
67
|
+
};
|
|
68
|
+
i.end.column++, i.end.offset++, i.end._bufferIndex++;
|
|
69
|
+
let a = {
|
|
70
|
+
type: "gfmFootnoteCallString",
|
|
71
|
+
start: Object.assign({}, i.end),
|
|
72
|
+
end: Object.assign({}, e[e.length - 1][1].start)
|
|
73
|
+
}, o = {
|
|
74
|
+
type: "chunkString",
|
|
75
|
+
contentType: "string",
|
|
76
|
+
start: Object.assign({}, a.start),
|
|
77
|
+
end: Object.assign({}, a.end)
|
|
78
|
+
}, s = [
|
|
79
|
+
e[n + 1],
|
|
80
|
+
e[n + 2],
|
|
81
|
+
[
|
|
82
|
+
"enter",
|
|
83
|
+
r,
|
|
84
|
+
t
|
|
85
|
+
],
|
|
86
|
+
e[n + 3],
|
|
87
|
+
e[n + 4],
|
|
88
|
+
[
|
|
89
|
+
"enter",
|
|
90
|
+
i,
|
|
91
|
+
t
|
|
92
|
+
],
|
|
93
|
+
[
|
|
94
|
+
"exit",
|
|
95
|
+
i,
|
|
96
|
+
t
|
|
97
|
+
],
|
|
98
|
+
[
|
|
99
|
+
"enter",
|
|
100
|
+
a,
|
|
101
|
+
t
|
|
102
|
+
],
|
|
103
|
+
[
|
|
104
|
+
"enter",
|
|
105
|
+
o,
|
|
106
|
+
t
|
|
107
|
+
],
|
|
108
|
+
[
|
|
109
|
+
"exit",
|
|
110
|
+
o,
|
|
111
|
+
t
|
|
112
|
+
],
|
|
113
|
+
[
|
|
114
|
+
"exit",
|
|
115
|
+
a,
|
|
116
|
+
t
|
|
117
|
+
],
|
|
118
|
+
e[e.length - 2],
|
|
119
|
+
e[e.length - 1],
|
|
120
|
+
[
|
|
121
|
+
"exit",
|
|
122
|
+
r,
|
|
123
|
+
t
|
|
124
|
+
]
|
|
125
|
+
];
|
|
126
|
+
return e.splice(n, e.length - n + 1, ...s), e;
|
|
127
|
+
}
|
|
128
|
+
function c(n, r, i) {
|
|
129
|
+
let a = this, o = a.parser.gfmFootnotes || (a.parser.gfmFootnotes = []), s = 0, c;
|
|
130
|
+
return l;
|
|
131
|
+
function l(e) {
|
|
132
|
+
return n.enter("gfmFootnoteCall"), n.enter("gfmFootnoteCallLabelMarker"), n.consume(e), n.exit("gfmFootnoteCallLabelMarker"), u;
|
|
133
|
+
}
|
|
134
|
+
function u(e) {
|
|
135
|
+
return e === 94 ? (n.enter("gfmFootnoteCallMarker"), n.consume(e), n.exit("gfmFootnoteCallMarker"), n.enter("gfmFootnoteCallString"), n.enter("chunkString").contentType = "string", d) : i(e);
|
|
136
|
+
}
|
|
137
|
+
function d(l) {
|
|
138
|
+
if (s > 999 || l === 93 && !c || l === null || l === 91 || t(l)) return i(l);
|
|
139
|
+
if (l === 93) {
|
|
140
|
+
n.exit("chunkString");
|
|
141
|
+
let t = n.exit("gfmFootnoteCallString");
|
|
142
|
+
return o.includes(e(a.sliceSerialize(t))) ? (n.enter("gfmFootnoteCallLabelMarker"), n.consume(l), n.exit("gfmFootnoteCallLabelMarker"), n.exit("gfmFootnoteCall"), r) : i(l);
|
|
143
|
+
}
|
|
144
|
+
return t(l) || (c = !0), s++, n.consume(l), l === 92 ? f : d;
|
|
145
|
+
}
|
|
146
|
+
function f(e) {
|
|
147
|
+
return e === 91 || e === 92 || e === 93 ? (n.consume(e), s++, d) : d(e);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
function l(r, i, a) {
|
|
151
|
+
let o = this, s = o.parser.gfmFootnotes || (o.parser.gfmFootnotes = []), c, l = 0, u;
|
|
152
|
+
return d;
|
|
153
|
+
function d(e) {
|
|
154
|
+
return r.enter("gfmFootnoteDefinition")._container = !0, r.enter("gfmFootnoteDefinitionLabel"), r.enter("gfmFootnoteDefinitionLabelMarker"), r.consume(e), r.exit("gfmFootnoteDefinitionLabelMarker"), f;
|
|
155
|
+
}
|
|
156
|
+
function f(e) {
|
|
157
|
+
return e === 94 ? (r.enter("gfmFootnoteDefinitionMarker"), r.consume(e), r.exit("gfmFootnoteDefinitionMarker"), r.enter("gfmFootnoteDefinitionLabelString"), r.enter("chunkString").contentType = "string", p) : a(e);
|
|
158
|
+
}
|
|
159
|
+
function p(n) {
|
|
160
|
+
if (l > 999 || n === 93 && !u || n === null || n === 91 || t(n)) return a(n);
|
|
161
|
+
if (n === 93) {
|
|
162
|
+
r.exit("chunkString");
|
|
163
|
+
let t = r.exit("gfmFootnoteDefinitionLabelString");
|
|
164
|
+
return c = e(o.sliceSerialize(t)), r.enter("gfmFootnoteDefinitionLabelMarker"), r.consume(n), r.exit("gfmFootnoteDefinitionLabelMarker"), r.exit("gfmFootnoteDefinitionLabel"), h;
|
|
165
|
+
}
|
|
166
|
+
return t(n) || (u = !0), l++, r.consume(n), n === 92 ? m : p;
|
|
167
|
+
}
|
|
168
|
+
function m(e) {
|
|
169
|
+
return e === 91 || e === 92 || e === 93 ? (r.consume(e), l++, p) : p(e);
|
|
170
|
+
}
|
|
171
|
+
function h(e) {
|
|
172
|
+
return e === 58 ? (r.enter("definitionMarker"), r.consume(e), r.exit("definitionMarker"), s.includes(c) || s.push(c), n(r, g, "gfmFootnoteDefinitionWhitespace")) : a(e);
|
|
173
|
+
}
|
|
174
|
+
function g(e) {
|
|
175
|
+
return i(e);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
function u(e, t, n) {
|
|
179
|
+
return e.check(r, t, e.attempt(i, t, n));
|
|
180
|
+
}
|
|
181
|
+
function d(e) {
|
|
182
|
+
e.exit("gfmFootnoteDefinition");
|
|
183
|
+
}
|
|
184
|
+
function f(e, t, r) {
|
|
185
|
+
let i = this;
|
|
186
|
+
return n(e, a, "gfmFootnoteDefinitionIndent", 5);
|
|
187
|
+
function a(e) {
|
|
188
|
+
let n = i.events[i.events.length - 1];
|
|
189
|
+
return n && n[1].type === "gfmFootnoteDefinitionIndent" && n[2].sliceSerialize(n[1], !0).length === 4 ? t(e) : r(e);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
//#endregion
|
|
193
|
+
export { a as gfmFootnote };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { splice as e } from "../../micromark-util-chunked/index.js";
|
|
2
|
+
import { classifyCharacter as t } from "../../micromark-util-classify-character/index.js";
|
|
3
|
+
import { resolveAll as n } from "../../micromark-util-resolve-all/index.js";
|
|
4
|
+
//#region node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js
|
|
5
|
+
function r(r) {
|
|
6
|
+
let i = (r || {}).singleTilde, a = {
|
|
7
|
+
name: "strikethrough",
|
|
8
|
+
tokenize: s,
|
|
9
|
+
resolveAll: o
|
|
10
|
+
};
|
|
11
|
+
return i ??= !0, {
|
|
12
|
+
text: { 126: a },
|
|
13
|
+
insideSpan: { null: [a] },
|
|
14
|
+
attentionMarkers: { null: [126] }
|
|
15
|
+
};
|
|
16
|
+
function o(t, r) {
|
|
17
|
+
let i = -1;
|
|
18
|
+
for (; ++i < t.length;) if (t[i][0] === "enter" && t[i][1].type === "strikethroughSequenceTemporary" && t[i][1]._close) {
|
|
19
|
+
let a = i;
|
|
20
|
+
for (; a--;) if (t[a][0] === "exit" && t[a][1].type === "strikethroughSequenceTemporary" && t[a][1]._open && t[i][1].end.offset - t[i][1].start.offset === t[a][1].end.offset - t[a][1].start.offset) {
|
|
21
|
+
t[i][1].type = "strikethroughSequence", t[a][1].type = "strikethroughSequence";
|
|
22
|
+
let o = {
|
|
23
|
+
type: "strikethrough",
|
|
24
|
+
start: Object.assign({}, t[a][1].start),
|
|
25
|
+
end: Object.assign({}, t[i][1].end)
|
|
26
|
+
}, s = {
|
|
27
|
+
type: "strikethroughText",
|
|
28
|
+
start: Object.assign({}, t[a][1].end),
|
|
29
|
+
end: Object.assign({}, t[i][1].start)
|
|
30
|
+
}, c = [
|
|
31
|
+
[
|
|
32
|
+
"enter",
|
|
33
|
+
o,
|
|
34
|
+
r
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
"enter",
|
|
38
|
+
t[a][1],
|
|
39
|
+
r
|
|
40
|
+
],
|
|
41
|
+
[
|
|
42
|
+
"exit",
|
|
43
|
+
t[a][1],
|
|
44
|
+
r
|
|
45
|
+
],
|
|
46
|
+
[
|
|
47
|
+
"enter",
|
|
48
|
+
s,
|
|
49
|
+
r
|
|
50
|
+
]
|
|
51
|
+
], l = r.parser.constructs.insideSpan.null;
|
|
52
|
+
l && e(c, c.length, 0, n(l, t.slice(a + 1, i), r)), e(c, c.length, 0, [
|
|
53
|
+
[
|
|
54
|
+
"exit",
|
|
55
|
+
s,
|
|
56
|
+
r
|
|
57
|
+
],
|
|
58
|
+
[
|
|
59
|
+
"enter",
|
|
60
|
+
t[i][1],
|
|
61
|
+
r
|
|
62
|
+
],
|
|
63
|
+
[
|
|
64
|
+
"exit",
|
|
65
|
+
t[i][1],
|
|
66
|
+
r
|
|
67
|
+
],
|
|
68
|
+
[
|
|
69
|
+
"exit",
|
|
70
|
+
o,
|
|
71
|
+
r
|
|
72
|
+
]
|
|
73
|
+
]), e(t, a - 1, i - a + 3, c), i = a + c.length - 2;
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
for (i = -1; ++i < t.length;) t[i][1].type === "strikethroughSequenceTemporary" && (t[i][1].type = "data");
|
|
78
|
+
return t;
|
|
79
|
+
}
|
|
80
|
+
function s(e, n, r) {
|
|
81
|
+
let a = this.previous, o = this.events, s = 0;
|
|
82
|
+
return c;
|
|
83
|
+
function c(t) {
|
|
84
|
+
return a === 126 && o[o.length - 1][1].type !== "characterEscape" ? r(t) : (e.enter("strikethroughSequenceTemporary"), l(t));
|
|
85
|
+
}
|
|
86
|
+
function l(o) {
|
|
87
|
+
let c = t(a);
|
|
88
|
+
if (o === 126) return s > 1 ? r(o) : (e.consume(o), s++, l);
|
|
89
|
+
if (s < 2 && !i) return r(o);
|
|
90
|
+
let u = e.exit("strikethroughSequenceTemporary"), d = t(o);
|
|
91
|
+
return u._open = !d || d === 2 && !!c, u._close = !c || c === 2 && !!d, n(o);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
//#endregion
|
|
96
|
+
export { r as gfmStrikethrough };
|