nnews-react 2.0.4 → 2.0.5
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.cjs +14 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +230 -257
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12,30 +12,29 @@ function rM({
|
|
|
12
12
|
error: n = null,
|
|
13
13
|
onArticleClick: r,
|
|
14
14
|
onEditClick: i,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
emptyMessage: l = "No articles found"
|
|
15
|
+
onAIClick: s,
|
|
16
|
+
showActions: o = !1,
|
|
17
|
+
emptyMessage: a = "No articles found"
|
|
19
18
|
}) {
|
|
20
19
|
return t ? /* @__PURE__ */ A("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ A("div", { className: "text-gray-500", children: "Loading articles..." }) }) : n ? /* @__PURE__ */ A("div", { className: "rounded-md bg-red-50 p-4", children: /* @__PURE__ */ F("div", { className: "text-sm text-red-800", children: [
|
|
21
20
|
"Error loading articles: ",
|
|
22
21
|
n.message
|
|
23
|
-
] }) }) : !e || e.items.length === 0 ? /* @__PURE__ */ A("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ A("div", { className: "text-gray-500", children:
|
|
24
|
-
/* @__PURE__ */ A("div", { className: "grid grid-cols-3 gap-6", children: e.items.map((
|
|
22
|
+
] }) }) : !e || e.items.length === 0 ? /* @__PURE__ */ A("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ A("div", { className: "text-gray-500", children: a }) }) : /* @__PURE__ */ F("div", { className: "space-y-6", children: [
|
|
23
|
+
/* @__PURE__ */ A("div", { className: "grid grid-cols-3 gap-6", children: e.items.map((l) => /* @__PURE__ */ F(
|
|
25
24
|
"div",
|
|
26
25
|
{
|
|
27
26
|
className: "rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 shadow-sm hover:shadow-md transition-shadow overflow-hidden flex flex-col",
|
|
28
27
|
children: [
|
|
29
|
-
|
|
28
|
+
l.imageName && /* @__PURE__ */ A(
|
|
30
29
|
"div",
|
|
31
30
|
{
|
|
32
31
|
className: `w-full h-48 bg-gray-200 dark:bg-gray-700 overflow-hidden ${r ? "cursor-pointer" : ""}`,
|
|
33
|
-
onClick: () => r == null ? void 0 : r(
|
|
32
|
+
onClick: () => r == null ? void 0 : r(l),
|
|
34
33
|
children: /* @__PURE__ */ A(
|
|
35
34
|
"img",
|
|
36
35
|
{
|
|
37
|
-
src:
|
|
38
|
-
alt:
|
|
36
|
+
src: l.imageName,
|
|
37
|
+
alt: l.title,
|
|
39
38
|
className: "w-full h-[250px] object-cover hover:scale-105 transition-transform duration-300",
|
|
40
39
|
style: { height: "250px" }
|
|
41
40
|
}
|
|
@@ -48,12 +47,12 @@ function rM({
|
|
|
48
47
|
"h3",
|
|
49
48
|
{
|
|
50
49
|
className: `text-xl font-semibold text-gray-900 dark:text-gray-100 line-clamp-2 ${r ? "cursor-pointer hover:text-blue-600 dark:hover:text-blue-400" : ""}`,
|
|
51
|
-
onClick: () => r == null ? void 0 : r(
|
|
52
|
-
children:
|
|
50
|
+
onClick: () => r == null ? void 0 : r(l),
|
|
51
|
+
children: l.title
|
|
53
52
|
}
|
|
54
53
|
),
|
|
55
54
|
/* @__PURE__ */ F("div", { className: "mt-4 flex flex-wrap items-center gap-2 text-sm text-gray-500 dark:text-gray-400", children: [
|
|
56
|
-
|
|
55
|
+
l.dateAt && /* @__PURE__ */ F("span", { className: "flex items-center gap-1", children: [
|
|
57
56
|
/* @__PURE__ */ A(
|
|
58
57
|
"svg",
|
|
59
58
|
{
|
|
@@ -72,54 +71,54 @@ function rM({
|
|
|
72
71
|
)
|
|
73
72
|
}
|
|
74
73
|
),
|
|
75
|
-
new Date(
|
|
74
|
+
new Date(l.dateAt).toLocaleDateString()
|
|
76
75
|
] }),
|
|
77
|
-
|
|
76
|
+
l.category && /* @__PURE__ */ A("span", { className: "rounded-full bg-blue-100 dark:bg-blue-900 px-3 py-1 text-xs font-medium text-blue-800 dark:text-blue-200", children: l.category.title })
|
|
78
77
|
] }),
|
|
79
78
|
/* @__PURE__ */ A("div", { className: "mt-3", children: /* @__PURE__ */ A(
|
|
80
79
|
"span",
|
|
81
80
|
{
|
|
82
|
-
className: `inline-block rounded-full px-3 py-1 text-xs font-medium ${
|
|
83
|
-
children: He[
|
|
81
|
+
className: `inline-block rounded-full px-3 py-1 text-xs font-medium ${l.status === He.Published ? "bg-green-100 dark:bg-green-900 text-green-800 dark:text-green-200" : l.status === He.Draft ? "bg-gray-100 dark:bg-gray-700 text-gray-800 dark:text-gray-200" : l.status === He.Review ? "bg-yellow-100 dark:bg-yellow-900 text-yellow-800 dark:text-yellow-200" : l.status === He.Scheduled ? "bg-purple-100 dark:bg-purple-900 text-purple-800 dark:text-purple-200" : "bg-orange-100 dark:bg-orange-900 text-orange-800 dark:text-orange-200"}`,
|
|
82
|
+
children: He[l.status]
|
|
84
83
|
}
|
|
85
84
|
) }),
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
l.tags && l.tags.length > 0 && /* @__PURE__ */ F("div", { className: "mt-3 flex flex-wrap gap-2", children: [
|
|
86
|
+
l.tags.slice(0, 3).map((c) => /* @__PURE__ */ F(
|
|
88
87
|
"span",
|
|
89
88
|
{
|
|
90
89
|
className: "rounded-md bg-gray-100 dark:bg-gray-700 px-2 py-1 text-xs text-gray-700 dark:text-gray-300",
|
|
91
90
|
children: [
|
|
92
91
|
"#",
|
|
93
|
-
|
|
92
|
+
c.title
|
|
94
93
|
]
|
|
95
94
|
},
|
|
96
|
-
|
|
95
|
+
c.tagId
|
|
97
96
|
)),
|
|
98
|
-
|
|
97
|
+
l.tags.length > 3 && /* @__PURE__ */ F("span", { className: "rounded-md bg-gray-100 dark:bg-gray-700 px-2 py-1 text-xs text-gray-700 dark:text-gray-300", children: [
|
|
99
98
|
"+",
|
|
100
|
-
|
|
99
|
+
l.tags.length - 3
|
|
101
100
|
] })
|
|
102
101
|
] }),
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
l.roles && l.roles.length > 0 && /* @__PURE__ */ F("div", { className: "mt-3 flex flex-wrap gap-2", children: [
|
|
103
|
+
l.roles.slice(0, 2).map((c) => /* @__PURE__ */ A(
|
|
105
104
|
"span",
|
|
106
105
|
{
|
|
107
106
|
className: "rounded-md bg-purple-100 dark:bg-purple-900 px-2 py-1 text-xs text-purple-700 dark:text-purple-200",
|
|
108
|
-
children:
|
|
107
|
+
children: c.name
|
|
109
108
|
},
|
|
110
|
-
|
|
109
|
+
c.slug
|
|
111
110
|
)),
|
|
112
|
-
|
|
111
|
+
l.roles.length > 2 && /* @__PURE__ */ F("span", { className: "rounded-md bg-purple-100 dark:bg-purple-900 px-2 py-1 text-xs text-purple-700 dark:text-purple-200", children: [
|
|
113
112
|
"+",
|
|
114
|
-
|
|
113
|
+
l.roles.length - 2
|
|
115
114
|
] })
|
|
116
115
|
] })
|
|
117
116
|
] }),
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
o && (i || s) && /* @__PURE__ */ F("div", { className: "mt-4 pt-4 border-t border-gray-200 dark:border-gray-700 flex gap-2 justify-end", children: [
|
|
118
|
+
s && /* @__PURE__ */ A(
|
|
120
119
|
"button",
|
|
121
120
|
{
|
|
122
|
-
onClick: () =>
|
|
121
|
+
onClick: () => s(l),
|
|
123
122
|
className: "rounded p-2 text-purple-600 dark:text-purple-400 hover:bg-purple-50 dark:hover:bg-purple-900/20",
|
|
124
123
|
title: "AI Edit",
|
|
125
124
|
children: /* @__PURE__ */ A(
|
|
@@ -145,7 +144,7 @@ function rM({
|
|
|
145
144
|
i && /* @__PURE__ */ A(
|
|
146
145
|
"button",
|
|
147
146
|
{
|
|
148
|
-
onClick: () => i(
|
|
147
|
+
onClick: () => i(l),
|
|
149
148
|
className: "rounded p-2 text-blue-600 dark:text-blue-400 hover:bg-blue-50 dark:hover:bg-blue-900/20",
|
|
150
149
|
title: "Edit",
|
|
151
150
|
children: /* @__PURE__ */ A(
|
|
@@ -167,38 +166,12 @@ function rM({
|
|
|
167
166
|
}
|
|
168
167
|
)
|
|
169
168
|
}
|
|
170
|
-
),
|
|
171
|
-
s && /* @__PURE__ */ A(
|
|
172
|
-
"button",
|
|
173
|
-
{
|
|
174
|
-
onClick: () => s(c),
|
|
175
|
-
className: "rounded p-2 text-red-600 dark:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20",
|
|
176
|
-
title: "Delete",
|
|
177
|
-
children: /* @__PURE__ */ A(
|
|
178
|
-
"svg",
|
|
179
|
-
{
|
|
180
|
-
className: "h-5 w-5",
|
|
181
|
-
fill: "none",
|
|
182
|
-
stroke: "currentColor",
|
|
183
|
-
viewBox: "0 0 24 24",
|
|
184
|
-
children: /* @__PURE__ */ A(
|
|
185
|
-
"path",
|
|
186
|
-
{
|
|
187
|
-
strokeLinecap: "round",
|
|
188
|
-
strokeLinejoin: "round",
|
|
189
|
-
strokeWidth: 2,
|
|
190
|
-
d: "M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"
|
|
191
|
-
}
|
|
192
|
-
)
|
|
193
|
-
}
|
|
194
|
-
)
|
|
195
|
-
}
|
|
196
169
|
)
|
|
197
170
|
] })
|
|
198
171
|
] })
|
|
199
172
|
]
|
|
200
173
|
},
|
|
201
|
-
|
|
174
|
+
l.articleId
|
|
202
175
|
)) }),
|
|
203
176
|
e.totalPages > 1 && /* @__PURE__ */ A("div", { className: "mt-6 flex items-center justify-between border-t border-gray-200 dark:border-gray-700 pt-4", children: /* @__PURE__ */ F("div", { className: "text-sm text-gray-700 dark:text-gray-300", children: [
|
|
204
177
|
"Showing ",
|
|
@@ -4224,9 +4197,9 @@ function Q0(e, t, n) {
|
|
|
4224
4197
|
}
|
|
4225
4198
|
const sh = {}.hasOwnProperty;
|
|
4226
4199
|
function J0(e, t, n) {
|
|
4227
|
-
return typeof t != "string" && (n = t, t = void 0),
|
|
4200
|
+
return typeof t != "string" && (n = t, t = void 0), eE(n)(V0(W0(n).document().write(Y0()(e, t, !0))));
|
|
4228
4201
|
}
|
|
4229
|
-
function
|
|
4202
|
+
function eE(e) {
|
|
4230
4203
|
const t = {
|
|
4231
4204
|
transforms: [],
|
|
4232
4205
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
@@ -4753,10 +4726,10 @@ function oh(e, t) {
|
|
|
4753
4726
|
let n = -1;
|
|
4754
4727
|
for (; ++n < t.length; ) {
|
|
4755
4728
|
const r = t[n];
|
|
4756
|
-
Array.isArray(r) ? oh(e, r) :
|
|
4729
|
+
Array.isArray(r) ? oh(e, r) : tE(e, r);
|
|
4757
4730
|
}
|
|
4758
4731
|
}
|
|
4759
|
-
function
|
|
4732
|
+
function tE(e, t) {
|
|
4760
4733
|
let n;
|
|
4761
4734
|
for (n in t)
|
|
4762
4735
|
if (sh.call(t, n))
|
|
@@ -4791,7 +4764,7 @@ function cu(e, t) {
|
|
|
4791
4764
|
end: t.end
|
|
4792
4765
|
}) + ") is still open");
|
|
4793
4766
|
}
|
|
4794
|
-
function
|
|
4767
|
+
function nE(e) {
|
|
4795
4768
|
const t = this;
|
|
4796
4769
|
t.parser = n;
|
|
4797
4770
|
function n(r) {
|
|
@@ -4806,7 +4779,7 @@ function n1(e) {
|
|
|
4806
4779
|
});
|
|
4807
4780
|
}
|
|
4808
4781
|
}
|
|
4809
|
-
function
|
|
4782
|
+
function rE(e, t) {
|
|
4810
4783
|
const n = {
|
|
4811
4784
|
type: "element",
|
|
4812
4785
|
tagName: "blockquote",
|
|
@@ -4815,12 +4788,12 @@ function r1(e, t) {
|
|
|
4815
4788
|
};
|
|
4816
4789
|
return e.patch(t, n), e.applyData(t, n);
|
|
4817
4790
|
}
|
|
4818
|
-
function
|
|
4791
|
+
function iE(e, t) {
|
|
4819
4792
|
const n = { type: "element", tagName: "br", properties: {}, children: [] };
|
|
4820
4793
|
return e.patch(t, n), [e.applyData(t, n), { type: "text", value: `
|
|
4821
4794
|
` }];
|
|
4822
4795
|
}
|
|
4823
|
-
function
|
|
4796
|
+
function sE(e, t) {
|
|
4824
4797
|
const n = t.value ? t.value + `
|
|
4825
4798
|
` : "", r = {}, i = t.lang ? t.lang.split(/\s+/) : [];
|
|
4826
4799
|
i.length > 0 && (r.className = ["language-" + i[0]]);
|
|
@@ -4832,7 +4805,7 @@ function s1(e, t) {
|
|
|
4832
4805
|
};
|
|
4833
4806
|
return t.meta && (s.data = { meta: t.meta }), e.patch(t, s), s = e.applyData(t, s), s = { type: "element", tagName: "pre", properties: {}, children: [s] }, e.patch(t, s), s;
|
|
4834
4807
|
}
|
|
4835
|
-
function
|
|
4808
|
+
function oE(e, t) {
|
|
4836
4809
|
const n = {
|
|
4837
4810
|
type: "element",
|
|
4838
4811
|
tagName: "del",
|
|
@@ -4841,7 +4814,7 @@ function o1(e, t) {
|
|
|
4841
4814
|
};
|
|
4842
4815
|
return e.patch(t, n), e.applyData(t, n);
|
|
4843
4816
|
}
|
|
4844
|
-
function
|
|
4817
|
+
function aE(e, t) {
|
|
4845
4818
|
const n = {
|
|
4846
4819
|
type: "element",
|
|
4847
4820
|
tagName: "em",
|
|
@@ -4850,7 +4823,7 @@ function a1(e, t) {
|
|
|
4850
4823
|
};
|
|
4851
4824
|
return e.patch(t, n), e.applyData(t, n);
|
|
4852
4825
|
}
|
|
4853
|
-
function
|
|
4826
|
+
function lE(e, t) {
|
|
4854
4827
|
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), i = Hr(r.toLowerCase()), s = e.footnoteOrder.indexOf(r);
|
|
4855
4828
|
let o, a = e.footnoteCounts.get(r);
|
|
4856
4829
|
a === void 0 ? (a = 0, e.footnoteOrder.push(r), o = e.footnoteOrder.length) : o = s + 1, a += 1, e.footnoteCounts.set(r, a);
|
|
@@ -4874,7 +4847,7 @@ function l1(e, t) {
|
|
|
4874
4847
|
};
|
|
4875
4848
|
return e.patch(t, c), e.applyData(t, c);
|
|
4876
4849
|
}
|
|
4877
|
-
function
|
|
4850
|
+
function cE(e, t) {
|
|
4878
4851
|
const n = {
|
|
4879
4852
|
type: "element",
|
|
4880
4853
|
tagName: "h" + t.depth,
|
|
@@ -4883,7 +4856,7 @@ function c1(e, t) {
|
|
|
4883
4856
|
};
|
|
4884
4857
|
return e.patch(t, n), e.applyData(t, n);
|
|
4885
4858
|
}
|
|
4886
|
-
function
|
|
4859
|
+
function uE(e, t) {
|
|
4887
4860
|
if (e.options.allowDangerousHtml) {
|
|
4888
4861
|
const n = { type: "raw", value: t.value };
|
|
4889
4862
|
return e.patch(t, n), e.applyData(t, n);
|
|
@@ -4899,7 +4872,7 @@ function ah(e, t) {
|
|
|
4899
4872
|
const o = i[i.length - 1];
|
|
4900
4873
|
return o && o.type === "text" ? o.value += r : i.push({ type: "text", value: r }), i;
|
|
4901
4874
|
}
|
|
4902
|
-
function
|
|
4875
|
+
function dE(e, t) {
|
|
4903
4876
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
4904
4877
|
if (!r)
|
|
4905
4878
|
return ah(e, t);
|
|
@@ -4908,13 +4881,13 @@ function d1(e, t) {
|
|
|
4908
4881
|
const s = { type: "element", tagName: "img", properties: i, children: [] };
|
|
4909
4882
|
return e.patch(t, s), e.applyData(t, s);
|
|
4910
4883
|
}
|
|
4911
|
-
function
|
|
4884
|
+
function fE(e, t) {
|
|
4912
4885
|
const n = { src: Hr(t.url) };
|
|
4913
4886
|
t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
|
|
4914
4887
|
const r = { type: "element", tagName: "img", properties: n, children: [] };
|
|
4915
4888
|
return e.patch(t, r), e.applyData(t, r);
|
|
4916
4889
|
}
|
|
4917
|
-
function
|
|
4890
|
+
function hE(e, t) {
|
|
4918
4891
|
const n = { type: "text", value: t.value.replace(/\r?\n|\r/g, " ") };
|
|
4919
4892
|
e.patch(t, n);
|
|
4920
4893
|
const r = {
|
|
@@ -4925,7 +4898,7 @@ function h1(e, t) {
|
|
|
4925
4898
|
};
|
|
4926
4899
|
return e.patch(t, r), e.applyData(t, r);
|
|
4927
4900
|
}
|
|
4928
|
-
function
|
|
4901
|
+
function pE(e, t) {
|
|
4929
4902
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
4930
4903
|
if (!r)
|
|
4931
4904
|
return ah(e, t);
|
|
@@ -4939,7 +4912,7 @@ function p1(e, t) {
|
|
|
4939
4912
|
};
|
|
4940
4913
|
return e.patch(t, s), e.applyData(t, s);
|
|
4941
4914
|
}
|
|
4942
|
-
function
|
|
4915
|
+
function gE(e, t) {
|
|
4943
4916
|
const n = { href: Hr(t.url) };
|
|
4944
4917
|
t.title !== null && t.title !== void 0 && (n.title = t.title);
|
|
4945
4918
|
const r = {
|
|
@@ -4950,8 +4923,8 @@ function g1(e, t) {
|
|
|
4950
4923
|
};
|
|
4951
4924
|
return e.patch(t, r), e.applyData(t, r);
|
|
4952
4925
|
}
|
|
4953
|
-
function
|
|
4954
|
-
const r = e.all(t), i = n ?
|
|
4926
|
+
function mE(e, t, n) {
|
|
4927
|
+
const r = e.all(t), i = n ? bE(n) : lh(t), s = {}, o = [];
|
|
4955
4928
|
if (typeof t.checked == "boolean") {
|
|
4956
4929
|
const u = r[0];
|
|
4957
4930
|
let d;
|
|
@@ -4974,7 +4947,7 @@ function m1(e, t, n) {
|
|
|
4974
4947
|
const c = { type: "element", tagName: "li", properties: s, children: o };
|
|
4975
4948
|
return e.patch(t, c), e.applyData(t, c);
|
|
4976
4949
|
}
|
|
4977
|
-
function
|
|
4950
|
+
function bE(e) {
|
|
4978
4951
|
let t = !1;
|
|
4979
4952
|
if (e.type === "list") {
|
|
4980
4953
|
t = e.spread || !1;
|
|
@@ -4989,7 +4962,7 @@ function lh(e) {
|
|
|
4989
4962
|
const t = e.spread;
|
|
4990
4963
|
return t ?? e.children.length > 1;
|
|
4991
4964
|
}
|
|
4992
|
-
function
|
|
4965
|
+
function yE(e, t) {
|
|
4993
4966
|
const n = {}, r = e.all(t);
|
|
4994
4967
|
let i = -1;
|
|
4995
4968
|
for (typeof t.start == "number" && t.start !== 1 && (n.start = t.start); ++i < r.length; ) {
|
|
@@ -5007,7 +4980,7 @@ function y1(e, t) {
|
|
|
5007
4980
|
};
|
|
5008
4981
|
return e.patch(t, s), e.applyData(t, s);
|
|
5009
4982
|
}
|
|
5010
|
-
function
|
|
4983
|
+
function EE(e, t) {
|
|
5011
4984
|
const n = {
|
|
5012
4985
|
type: "element",
|
|
5013
4986
|
tagName: "p",
|
|
@@ -5016,11 +4989,11 @@ function E1(e, t) {
|
|
|
5016
4989
|
};
|
|
5017
4990
|
return e.patch(t, n), e.applyData(t, n);
|
|
5018
4991
|
}
|
|
5019
|
-
function
|
|
4992
|
+
function wE(e, t) {
|
|
5020
4993
|
const n = { type: "root", children: e.wrap(e.all(t)) };
|
|
5021
4994
|
return e.patch(t, n), e.applyData(t, n);
|
|
5022
4995
|
}
|
|
5023
|
-
function
|
|
4996
|
+
function xE(e, t) {
|
|
5024
4997
|
const n = {
|
|
5025
4998
|
type: "element",
|
|
5026
4999
|
tagName: "strong",
|
|
@@ -5029,7 +5002,7 @@ function x1(e, t) {
|
|
|
5029
5002
|
};
|
|
5030
5003
|
return e.patch(t, n), e.applyData(t, n);
|
|
5031
5004
|
}
|
|
5032
|
-
function
|
|
5005
|
+
function _E(e, t) {
|
|
5033
5006
|
const n = e.all(t), r = n.shift(), i = [];
|
|
5034
5007
|
if (r) {
|
|
5035
5008
|
const o = {
|
|
@@ -5057,7 +5030,7 @@ function _1(e, t) {
|
|
|
5057
5030
|
};
|
|
5058
5031
|
return e.patch(t, s), e.applyData(t, s);
|
|
5059
5032
|
}
|
|
5060
|
-
function
|
|
5033
|
+
function vE(e, t, n) {
|
|
5061
5034
|
const r = n ? n.children : void 0, s = (r ? r.indexOf(t) : 1) === 0 ? "th" : "td", o = n && n.type === "table" ? n.align : void 0, a = o ? o.length : t.children.length;
|
|
5062
5035
|
let l = -1;
|
|
5063
5036
|
const c = [];
|
|
@@ -5075,7 +5048,7 @@ function v1(e, t, n) {
|
|
|
5075
5048
|
};
|
|
5076
5049
|
return e.patch(t, u), e.applyData(t, u);
|
|
5077
5050
|
}
|
|
5078
|
-
function
|
|
5051
|
+
function kE(e, t) {
|
|
5079
5052
|
const n = {
|
|
5080
5053
|
type: "element",
|
|
5081
5054
|
tagName: "td",
|
|
@@ -5086,7 +5059,7 @@ function k1(e, t) {
|
|
|
5086
5059
|
return e.patch(t, n), e.applyData(t, n);
|
|
5087
5060
|
}
|
|
5088
5061
|
const uu = 9, du = 32;
|
|
5089
|
-
function
|
|
5062
|
+
function NE(e) {
|
|
5090
5063
|
const t = String(e), n = /\r?\n|\r/g;
|
|
5091
5064
|
let r = n.exec(t), i = 0;
|
|
5092
5065
|
const s = [];
|
|
@@ -5111,11 +5084,11 @@ function fu(e, t, n) {
|
|
|
5111
5084
|
}
|
|
5112
5085
|
return i > r ? e.slice(r, i) : "";
|
|
5113
5086
|
}
|
|
5114
|
-
function
|
|
5115
|
-
const n = { type: "text", value:
|
|
5087
|
+
function AE(e, t) {
|
|
5088
|
+
const n = { type: "text", value: NE(String(t.value)) };
|
|
5116
5089
|
return e.patch(t, n), e.applyData(t, n);
|
|
5117
5090
|
}
|
|
5118
|
-
function
|
|
5091
|
+
function SE(e, t) {
|
|
5119
5092
|
const n = {
|
|
5120
5093
|
type: "element",
|
|
5121
5094
|
tagName: "hr",
|
|
@@ -5124,31 +5097,31 @@ function S1(e, t) {
|
|
|
5124
5097
|
};
|
|
5125
5098
|
return e.patch(t, n), e.applyData(t, n);
|
|
5126
5099
|
}
|
|
5127
|
-
const
|
|
5128
|
-
blockquote:
|
|
5129
|
-
break:
|
|
5130
|
-
code:
|
|
5131
|
-
delete:
|
|
5132
|
-
emphasis:
|
|
5133
|
-
footnoteReference:
|
|
5134
|
-
heading:
|
|
5135
|
-
html:
|
|
5136
|
-
imageReference:
|
|
5137
|
-
image:
|
|
5138
|
-
inlineCode:
|
|
5139
|
-
linkReference:
|
|
5140
|
-
link:
|
|
5141
|
-
listItem:
|
|
5142
|
-
list:
|
|
5143
|
-
paragraph:
|
|
5100
|
+
const TE = {
|
|
5101
|
+
blockquote: rE,
|
|
5102
|
+
break: iE,
|
|
5103
|
+
code: sE,
|
|
5104
|
+
delete: oE,
|
|
5105
|
+
emphasis: aE,
|
|
5106
|
+
footnoteReference: lE,
|
|
5107
|
+
heading: cE,
|
|
5108
|
+
html: uE,
|
|
5109
|
+
imageReference: dE,
|
|
5110
|
+
image: fE,
|
|
5111
|
+
inlineCode: hE,
|
|
5112
|
+
linkReference: pE,
|
|
5113
|
+
link: gE,
|
|
5114
|
+
listItem: mE,
|
|
5115
|
+
list: yE,
|
|
5116
|
+
paragraph: EE,
|
|
5144
5117
|
// @ts-expect-error: root is different, but hard to type.
|
|
5145
|
-
root:
|
|
5146
|
-
strong:
|
|
5147
|
-
table:
|
|
5148
|
-
tableCell:
|
|
5149
|
-
tableRow:
|
|
5150
|
-
text:
|
|
5151
|
-
thematicBreak:
|
|
5118
|
+
root: wE,
|
|
5119
|
+
strong: xE,
|
|
5120
|
+
table: _E,
|
|
5121
|
+
tableCell: kE,
|
|
5122
|
+
tableRow: vE,
|
|
5123
|
+
text: AE,
|
|
5124
|
+
thematicBreak: SE,
|
|
5152
5125
|
toml: ls,
|
|
5153
5126
|
yaml: ls,
|
|
5154
5127
|
definition: ls,
|
|
@@ -5156,7 +5129,7 @@ const T1 = {
|
|
|
5156
5129
|
};
|
|
5157
5130
|
function ls() {
|
|
5158
5131
|
}
|
|
5159
|
-
const ch = -1, Js = 0, yi = 1, Ds = 2, Zl = 3, Xl = 4, Ql = 5, Jl = 6, uh = 7, dh = 8, hu = typeof self == "object" ? self : globalThis,
|
|
5132
|
+
const ch = -1, Js = 0, yi = 1, Ds = 2, Zl = 3, Xl = 4, Ql = 5, Jl = 6, uh = 7, dh = 8, hu = typeof self == "object" ? self : globalThis, CE = (e, t) => {
|
|
5160
5133
|
const n = (i, s) => (e.set(s, i), i), r = (i) => {
|
|
5161
5134
|
if (e.has(i))
|
|
5162
5135
|
return e.get(i);
|
|
@@ -5213,11 +5186,11 @@ const ch = -1, Js = 0, yi = 1, Ds = 2, Zl = 3, Xl = 4, Ql = 5, Jl = 6, uh = 7, d
|
|
|
5213
5186
|
return n(new hu[s](o), i);
|
|
5214
5187
|
};
|
|
5215
5188
|
return r;
|
|
5216
|
-
}, pu = (e) =>
|
|
5189
|
+
}, pu = (e) => CE(/* @__PURE__ */ new Map(), e)(0), yr = "", { toString: OE } = {}, { keys: IE } = Object, li = (e) => {
|
|
5217
5190
|
const t = typeof e;
|
|
5218
5191
|
if (t !== "object" || !e)
|
|
5219
5192
|
return [Js, t];
|
|
5220
|
-
const n =
|
|
5193
|
+
const n = OE.call(e).slice(8, -1);
|
|
5221
5194
|
switch (n) {
|
|
5222
5195
|
case "Array":
|
|
5223
5196
|
return [yi, yr];
|
|
@@ -5235,7 +5208,7 @@ const ch = -1, Js = 0, yi = 1, Ds = 2, Zl = 3, Xl = 4, Ql = 5, Jl = 6, uh = 7, d
|
|
|
5235
5208
|
return [yi, n];
|
|
5236
5209
|
}
|
|
5237
5210
|
return n.includes("Array") ? [yi, n] : n.includes("Error") ? [uh, n] : [Ds, n];
|
|
5238
|
-
}, cs = ([e, t]) => e === Js && (t === "function" || t === "symbol"),
|
|
5211
|
+
}, cs = ([e, t]) => e === Js && (t === "function" || t === "symbol"), RE = (e, t, n, r) => {
|
|
5239
5212
|
const i = (o, a) => {
|
|
5240
5213
|
const l = r.push(o) - 1;
|
|
5241
5214
|
return n.set(a, l), l;
|
|
@@ -5284,7 +5257,7 @@ const ch = -1, Js = 0, yi = 1, Ds = 2, Zl = 3, Xl = 4, Ql = 5, Jl = 6, uh = 7, d
|
|
|
5284
5257
|
if (t && "toJSON" in o)
|
|
5285
5258
|
return s(o.toJSON());
|
|
5286
5259
|
const u = [], d = i([a, u], o);
|
|
5287
|
-
for (const h of
|
|
5260
|
+
for (const h of IE(o))
|
|
5288
5261
|
(e || !cs(li(o[h]))) && u.push([s(h), s(o[h])]);
|
|
5289
5262
|
return d;
|
|
5290
5263
|
}
|
|
@@ -5313,12 +5286,12 @@ const ch = -1, Js = 0, yi = 1, Ds = 2, Zl = 3, Xl = 4, Ql = 5, Jl = 6, uh = 7, d
|
|
|
5313
5286
|
return s;
|
|
5314
5287
|
}, gu = (e, { json: t, lossy: n } = {}) => {
|
|
5315
5288
|
const r = [];
|
|
5316
|
-
return
|
|
5289
|
+
return RE(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
|
|
5317
5290
|
}, Ps = typeof structuredClone == "function" ? (
|
|
5318
5291
|
/* c8 ignore start */
|
|
5319
5292
|
(e, t) => t && ("json" in t || "lossy" in t) ? pu(gu(e, t)) : structuredClone(e)
|
|
5320
5293
|
) : (e, t) => pu(gu(e, t));
|
|
5321
|
-
function
|
|
5294
|
+
function LE(e, t) {
|
|
5322
5295
|
const n = [{ type: "text", value: "↩" }];
|
|
5323
5296
|
return t > 1 && n.push({
|
|
5324
5297
|
type: "element",
|
|
@@ -5327,11 +5300,11 @@ function L1(e, t) {
|
|
|
5327
5300
|
children: [{ type: "text", value: String(t) }]
|
|
5328
5301
|
}), n;
|
|
5329
5302
|
}
|
|
5330
|
-
function
|
|
5303
|
+
function ME(e, t) {
|
|
5331
5304
|
return "Back to reference " + (e + 1) + (t > 1 ? "-" + t : "");
|
|
5332
5305
|
}
|
|
5333
|
-
function
|
|
5334
|
-
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent ||
|
|
5306
|
+
function DE(e) {
|
|
5307
|
+
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent || LE, r = e.options.footnoteBackLabel || ME, i = e.options.footnoteLabel || "Footnotes", s = e.options.footnoteLabelTagName || "h2", o = e.options.footnoteLabelProperties || {
|
|
5335
5308
|
className: ["sr-only"]
|
|
5336
5309
|
}, a = [];
|
|
5337
5310
|
let l = -1;
|
|
@@ -5418,24 +5391,24 @@ const fh = (
|
|
|
5418
5391
|
*/
|
|
5419
5392
|
function(e) {
|
|
5420
5393
|
if (e == null)
|
|
5421
|
-
return
|
|
5394
|
+
return qE;
|
|
5422
5395
|
if (typeof e == "function")
|
|
5423
5396
|
return eo(e);
|
|
5424
5397
|
if (typeof e == "object")
|
|
5425
|
-
return Array.isArray(e) ?
|
|
5398
|
+
return Array.isArray(e) ? PE(e) : (
|
|
5426
5399
|
// Cast because `ReadonlyArray` goes into the above but `isArray`
|
|
5427
5400
|
// narrows to `Array`.
|
|
5428
|
-
|
|
5401
|
+
BE(
|
|
5429
5402
|
/** @type {Props} */
|
|
5430
5403
|
e
|
|
5431
5404
|
)
|
|
5432
5405
|
);
|
|
5433
5406
|
if (typeof e == "string")
|
|
5434
|
-
return
|
|
5407
|
+
return FE(e);
|
|
5435
5408
|
throw new Error("Expected function, string, or object as test");
|
|
5436
5409
|
}
|
|
5437
5410
|
);
|
|
5438
|
-
function
|
|
5411
|
+
function PE(e) {
|
|
5439
5412
|
const t = [];
|
|
5440
5413
|
let n = -1;
|
|
5441
5414
|
for (; ++n < e.length; )
|
|
@@ -5448,7 +5421,7 @@ function P1(e) {
|
|
|
5448
5421
|
return !1;
|
|
5449
5422
|
}
|
|
5450
5423
|
}
|
|
5451
|
-
function
|
|
5424
|
+
function BE(e) {
|
|
5452
5425
|
const t = (
|
|
5453
5426
|
/** @type {Record<string, unknown>} */
|
|
5454
5427
|
e
|
|
@@ -5466,7 +5439,7 @@ function B1(e) {
|
|
|
5466
5439
|
return !0;
|
|
5467
5440
|
}
|
|
5468
5441
|
}
|
|
5469
|
-
function
|
|
5442
|
+
function FE(e) {
|
|
5470
5443
|
return eo(t);
|
|
5471
5444
|
function t(n) {
|
|
5472
5445
|
return n && n.type === e;
|
|
@@ -5475,7 +5448,7 @@ function F1(e) {
|
|
|
5475
5448
|
function eo(e) {
|
|
5476
5449
|
return t;
|
|
5477
5450
|
function t(n, r, i) {
|
|
5478
|
-
return !!(
|
|
5451
|
+
return !!(UE(n) && e.call(
|
|
5479
5452
|
this,
|
|
5480
5453
|
n,
|
|
5481
5454
|
typeof r == "number" ? r : void 0,
|
|
@@ -5483,14 +5456,14 @@ function eo(e) {
|
|
|
5483
5456
|
));
|
|
5484
5457
|
}
|
|
5485
5458
|
}
|
|
5486
|
-
function
|
|
5459
|
+
function qE() {
|
|
5487
5460
|
return !0;
|
|
5488
5461
|
}
|
|
5489
|
-
function
|
|
5462
|
+
function UE(e) {
|
|
5490
5463
|
return e !== null && typeof e == "object" && "type" in e;
|
|
5491
5464
|
}
|
|
5492
|
-
const hh = [], $
|
|
5493
|
-
function
|
|
5465
|
+
const hh = [], $E = !0, mu = !1, zE = "skip";
|
|
5466
|
+
function HE(e, t, n, r) {
|
|
5494
5467
|
let i;
|
|
5495
5468
|
typeof t == "function" && typeof n != "function" ? (r = n, n = t) : i = t;
|
|
5496
5469
|
const s = fh(i), o = r ? -1 : 1;
|
|
@@ -5515,14 +5488,14 @@ function H1(e, t, n, r) {
|
|
|
5515
5488
|
return h;
|
|
5516
5489
|
function h() {
|
|
5517
5490
|
let f = hh, p, m, b;
|
|
5518
|
-
if ((!t || s(l, c, u[u.length - 1] || void 0)) && (f =
|
|
5491
|
+
if ((!t || s(l, c, u[u.length - 1] || void 0)) && (f = jE(n(l, u)), f[0] === mu))
|
|
5519
5492
|
return f;
|
|
5520
5493
|
if ("children" in l && l.children) {
|
|
5521
5494
|
const y = (
|
|
5522
5495
|
/** @type {UnistParent} */
|
|
5523
5496
|
l
|
|
5524
5497
|
);
|
|
5525
|
-
if (y.children && f[0] !==
|
|
5498
|
+
if (y.children && f[0] !== zE)
|
|
5526
5499
|
for (m = (r ? y.children.length : -1) + o, b = u.concat(y); m > -1 && m < y.children.length; ) {
|
|
5527
5500
|
const x = y.children[m];
|
|
5528
5501
|
if (p = a(x, m, b)(), p[0] === mu)
|
|
@@ -5534,22 +5507,22 @@ function H1(e, t, n, r) {
|
|
|
5534
5507
|
}
|
|
5535
5508
|
}
|
|
5536
5509
|
}
|
|
5537
|
-
function
|
|
5538
|
-
return Array.isArray(e) ? e : typeof e == "number" ? [$
|
|
5510
|
+
function jE(e) {
|
|
5511
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [$E, e] : e == null ? hh : [e];
|
|
5539
5512
|
}
|
|
5540
|
-
function
|
|
5513
|
+
function GE(e, t, n, r) {
|
|
5541
5514
|
let i, s, o;
|
|
5542
|
-
typeof t == "function" && typeof n != "function" ? (s = void 0, o = t, i = n) : (s = t, o = n, i = r),
|
|
5515
|
+
typeof t == "function" && typeof n != "function" ? (s = void 0, o = t, i = n) : (s = t, o = n, i = r), HE(e, s, a, i);
|
|
5543
5516
|
function a(l, c) {
|
|
5544
5517
|
const u = c[c.length - 1], d = u ? u.children.indexOf(l) : void 0;
|
|
5545
5518
|
return o(l, d, u);
|
|
5546
5519
|
}
|
|
5547
5520
|
}
|
|
5548
|
-
const rl = {}.hasOwnProperty,
|
|
5549
|
-
function
|
|
5550
|
-
const n = t ||
|
|
5521
|
+
const rl = {}.hasOwnProperty, KE = {};
|
|
5522
|
+
function WE(e, t) {
|
|
5523
|
+
const n = t || KE, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), o = { ...TE, ...n.handlers }, a = {
|
|
5551
5524
|
all: c,
|
|
5552
|
-
applyData:
|
|
5525
|
+
applyData: YE,
|
|
5553
5526
|
definitionById: r,
|
|
5554
5527
|
footnoteById: i,
|
|
5555
5528
|
footnoteCounts: s,
|
|
@@ -5557,10 +5530,10 @@ function W1(e, t) {
|
|
|
5557
5530
|
handlers: o,
|
|
5558
5531
|
one: l,
|
|
5559
5532
|
options: n,
|
|
5560
|
-
patch:
|
|
5561
|
-
wrap:
|
|
5533
|
+
patch: VE,
|
|
5534
|
+
wrap: XE
|
|
5562
5535
|
};
|
|
5563
|
-
return
|
|
5536
|
+
return GE(e, function(u) {
|
|
5564
5537
|
if (u.type === "definition" || u.type === "footnoteDefinition") {
|
|
5565
5538
|
const d = u.type === "definition" ? r : i, h = String(u.identifier).toUpperCase();
|
|
5566
5539
|
d.has(h) || d.set(h, u);
|
|
@@ -5577,7 +5550,7 @@ function W1(e, t) {
|
|
|
5577
5550
|
}
|
|
5578
5551
|
return Ps(u);
|
|
5579
5552
|
}
|
|
5580
|
-
return (a.options.unknownHandler ||
|
|
5553
|
+
return (a.options.unknownHandler || ZE)(a, u, d);
|
|
5581
5554
|
}
|
|
5582
5555
|
function c(u) {
|
|
5583
5556
|
const d = [];
|
|
@@ -5598,10 +5571,10 @@ function W1(e, t) {
|
|
|
5598
5571
|
return d;
|
|
5599
5572
|
}
|
|
5600
5573
|
}
|
|
5601
|
-
function
|
|
5574
|
+
function VE(e, t) {
|
|
5602
5575
|
e.position && (t.position = Lb(e));
|
|
5603
5576
|
}
|
|
5604
|
-
function
|
|
5577
|
+
function YE(e, t) {
|
|
5605
5578
|
let n = t;
|
|
5606
5579
|
if (e && e.data) {
|
|
5607
5580
|
const r = e.data.hName, i = e.data.hChildren, s = e.data.hProperties;
|
|
@@ -5616,7 +5589,7 @@ function Y1(e, t) {
|
|
|
5616
5589
|
}
|
|
5617
5590
|
return n;
|
|
5618
5591
|
}
|
|
5619
|
-
function
|
|
5592
|
+
function ZE(e, t) {
|
|
5620
5593
|
const n = t.data || {}, r = "value" in t && !(rl.call(n, "hProperties") || rl.call(n, "hChildren")) ? { type: "text", value: t.value } : {
|
|
5621
5594
|
type: "element",
|
|
5622
5595
|
tagName: "div",
|
|
@@ -5625,7 +5598,7 @@ function Z1(e, t) {
|
|
|
5625
5598
|
};
|
|
5626
5599
|
return e.patch(t, r), e.applyData(t, r);
|
|
5627
5600
|
}
|
|
5628
|
-
function
|
|
5601
|
+
function XE(e, t) {
|
|
5629
5602
|
const n = [];
|
|
5630
5603
|
let r = -1;
|
|
5631
5604
|
for (t && n.push({ type: "text", value: `
|
|
@@ -5642,11 +5615,11 @@ function bu(e) {
|
|
|
5642
5615
|
return e.slice(t);
|
|
5643
5616
|
}
|
|
5644
5617
|
function yu(e, t) {
|
|
5645
|
-
const n =
|
|
5618
|
+
const n = WE(e, t), r = n.one(e, void 0), i = DE(n), s = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
|
5646
5619
|
return i && s.children.push({ type: "text", value: `
|
|
5647
5620
|
` }, i), s;
|
|
5648
5621
|
}
|
|
5649
|
-
function
|
|
5622
|
+
function QE(e, t) {
|
|
5650
5623
|
return e && "run" in e ? async function(n, r) {
|
|
5651
5624
|
const i = (
|
|
5652
5625
|
/** @type {HastRoot} */
|
|
@@ -5690,7 +5663,7 @@ var Ss = Object.prototype.hasOwnProperty, ph = Object.prototype.toString, wu = O
|
|
|
5690
5663
|
return xu(t, n).value;
|
|
5691
5664
|
} else return;
|
|
5692
5665
|
return t[n];
|
|
5693
|
-
},
|
|
5666
|
+
}, JE = function e() {
|
|
5694
5667
|
var t, n, r, i, s, o, a = arguments[0], l = 1, c = arguments.length, u = !1;
|
|
5695
5668
|
for (typeof a == "boolean" && (u = a, a = arguments[1] || {}, l = 2), (a == null || typeof a != "object" && typeof a != "function") && (a = {}); l < c; ++l)
|
|
5696
5669
|
if (t = arguments[l], t != null)
|
|
@@ -5698,14 +5671,14 @@ var Ss = Object.prototype.hasOwnProperty, ph = Object.prototype.toString, wu = O
|
|
|
5698
5671
|
r = Nu(a, n), i = Nu(t, n), a !== i && (u && i && (vu(i) || (s = _u(i))) ? (s ? (s = !1, o = r && _u(r) ? r : []) : o = r && vu(r) ? r : {}, ku(a, { name: n, newValue: e(u, o, i) })) : typeof i < "u" && ku(a, { name: n, newValue: i }));
|
|
5699
5672
|
return a;
|
|
5700
5673
|
};
|
|
5701
|
-
const pa = /* @__PURE__ */ Pi(
|
|
5674
|
+
const pa = /* @__PURE__ */ Pi(JE);
|
|
5702
5675
|
function il(e) {
|
|
5703
5676
|
if (typeof e != "object" || e === null)
|
|
5704
5677
|
return !1;
|
|
5705
5678
|
const t = Object.getPrototypeOf(e);
|
|
5706
5679
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
5707
5680
|
}
|
|
5708
|
-
function
|
|
5681
|
+
function e1() {
|
|
5709
5682
|
const e = [], t = { run: n, use: r };
|
|
5710
5683
|
return t;
|
|
5711
5684
|
function n(...i) {
|
|
@@ -5723,7 +5696,7 @@ function eE() {
|
|
|
5723
5696
|
}
|
|
5724
5697
|
for (; ++d < i.length; )
|
|
5725
5698
|
(c[d] === null || c[d] === void 0) && (c[d] = i[d]);
|
|
5726
|
-
i = c, u ?
|
|
5699
|
+
i = c, u ? t1(u, a)(...c) : o(null, ...c);
|
|
5727
5700
|
}
|
|
5728
5701
|
}
|
|
5729
5702
|
function r(i) {
|
|
@@ -5734,7 +5707,7 @@ function eE() {
|
|
|
5734
5707
|
return e.push(i), t;
|
|
5735
5708
|
}
|
|
5736
5709
|
}
|
|
5737
|
-
function
|
|
5710
|
+
function t1(e, t) {
|
|
5738
5711
|
let n;
|
|
5739
5712
|
return r;
|
|
5740
5713
|
function r(...o) {
|
|
@@ -5761,8 +5734,8 @@ function tE(e, t) {
|
|
|
5761
5734
|
i(null, o);
|
|
5762
5735
|
}
|
|
5763
5736
|
}
|
|
5764
|
-
const an = { basename:
|
|
5765
|
-
function
|
|
5737
|
+
const an = { basename: n1, dirname: r1, extname: i1, join: s1, sep: "/" };
|
|
5738
|
+
function n1(e, t) {
|
|
5766
5739
|
if (t !== void 0 && typeof t != "string")
|
|
5767
5740
|
throw new TypeError('"ext" argument must be a string');
|
|
5768
5741
|
Fi(e);
|
|
@@ -5790,7 +5763,7 @@ function nE(e, t) {
|
|
|
5790
5763
|
o < 0 && (s = !0, o = i + 1), a > -1 && (e.codePointAt(i) === t.codePointAt(a--) ? a < 0 && (r = i) : (a = -1, r = o));
|
|
5791
5764
|
return n === r ? r = o : r < 0 && (r = e.length), e.slice(n, r);
|
|
5792
5765
|
}
|
|
5793
|
-
function
|
|
5766
|
+
function r1(e) {
|
|
5794
5767
|
if (Fi(e), e.length === 0)
|
|
5795
5768
|
return ".";
|
|
5796
5769
|
let t = -1, n = e.length, r;
|
|
@@ -5803,7 +5776,7 @@ function rE(e) {
|
|
|
5803
5776
|
} else r || (r = !0);
|
|
5804
5777
|
return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
|
|
5805
5778
|
}
|
|
5806
|
-
function
|
|
5779
|
+
function i1(e) {
|
|
5807
5780
|
Fi(e);
|
|
5808
5781
|
let t = e.length, n = -1, r = 0, i = -1, s = 0, o;
|
|
5809
5782
|
for (; t--; ) {
|
|
@@ -5821,19 +5794,19 @@ function iE(e) {
|
|
|
5821
5794
|
s === 0 || // The (right-most) trimmed path component is exactly `..`.
|
|
5822
5795
|
s === 1 && i === n - 1 && i === r + 1 ? "" : e.slice(i, n);
|
|
5823
5796
|
}
|
|
5824
|
-
function
|
|
5797
|
+
function s1(...e) {
|
|
5825
5798
|
let t = -1, n;
|
|
5826
5799
|
for (; ++t < e.length; )
|
|
5827
5800
|
Fi(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
|
|
5828
|
-
return n === void 0 ? "." :
|
|
5801
|
+
return n === void 0 ? "." : o1(n);
|
|
5829
5802
|
}
|
|
5830
|
-
function
|
|
5803
|
+
function o1(e) {
|
|
5831
5804
|
Fi(e);
|
|
5832
5805
|
const t = e.codePointAt(0) === 47;
|
|
5833
|
-
let n =
|
|
5806
|
+
let n = a1(e, !t);
|
|
5834
5807
|
return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
|
|
5835
5808
|
}
|
|
5836
|
-
function
|
|
5809
|
+
function a1(e, t) {
|
|
5837
5810
|
let n = "", r = 0, i = -1, s = 0, o = -1, a, l;
|
|
5838
5811
|
for (; ++o <= e.length; ) {
|
|
5839
5812
|
if (o < e.length)
|
|
@@ -5870,15 +5843,15 @@ function Fi(e) {
|
|
|
5870
5843
|
"Path must be a string. Received " + JSON.stringify(e)
|
|
5871
5844
|
);
|
|
5872
5845
|
}
|
|
5873
|
-
const
|
|
5874
|
-
function
|
|
5846
|
+
const l1 = { cwd: c1 };
|
|
5847
|
+
function c1() {
|
|
5875
5848
|
return "/";
|
|
5876
5849
|
}
|
|
5877
5850
|
function sl(e) {
|
|
5878
5851
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
|
5879
5852
|
e.auth === void 0);
|
|
5880
5853
|
}
|
|
5881
|
-
function
|
|
5854
|
+
function u1(e) {
|
|
5882
5855
|
if (typeof e == "string")
|
|
5883
5856
|
e = new URL(e);
|
|
5884
5857
|
else if (!sl(e)) {
|
|
@@ -5891,9 +5864,9 @@ function uE(e) {
|
|
|
5891
5864
|
const t = new TypeError("The URL must be of scheme file");
|
|
5892
5865
|
throw t.code = "ERR_INVALID_URL_SCHEME", t;
|
|
5893
5866
|
}
|
|
5894
|
-
return
|
|
5867
|
+
return d1(e);
|
|
5895
5868
|
}
|
|
5896
|
-
function
|
|
5869
|
+
function d1(e) {
|
|
5897
5870
|
if (e.hostname !== "") {
|
|
5898
5871
|
const r = new TypeError(
|
|
5899
5872
|
'File URL host must be "localhost" or empty on darwin'
|
|
@@ -5950,7 +5923,7 @@ class gh {
|
|
|
5950
5923
|
*/
|
|
5951
5924
|
constructor(t) {
|
|
5952
5925
|
let n;
|
|
5953
|
-
t ? sl(t) ? n = { path: t } : typeof t == "string" ||
|
|
5926
|
+
t ? sl(t) ? n = { path: t } : typeof t == "string" || f1(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : l1.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
|
|
5954
5927
|
let r = -1;
|
|
5955
5928
|
for (; ++r < ga.length; ) {
|
|
5956
5929
|
const s = ga[r];
|
|
@@ -6058,7 +6031,7 @@ class gh {
|
|
|
6058
6031
|
* Nothing.
|
|
6059
6032
|
*/
|
|
6060
6033
|
set path(t) {
|
|
6061
|
-
sl(t) && (t =
|
|
6034
|
+
sl(t) && (t = u1(t)), ba(t, "path"), this.path !== t && this.history.push(t);
|
|
6062
6035
|
}
|
|
6063
6036
|
/**
|
|
6064
6037
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -6309,10 +6282,10 @@ function Au(e, t) {
|
|
|
6309
6282
|
if (!e)
|
|
6310
6283
|
throw new Error("Setting `" + t + "` requires `path` to be set too");
|
|
6311
6284
|
}
|
|
6312
|
-
function
|
|
6285
|
+
function f1(e) {
|
|
6313
6286
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
6314
6287
|
}
|
|
6315
|
-
const
|
|
6288
|
+
const h1 = (
|
|
6316
6289
|
/**
|
|
6317
6290
|
* @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
|
|
6318
6291
|
*/
|
|
@@ -6333,13 +6306,13 @@ const hE = (
|
|
|
6333
6306
|
};
|
|
6334
6307
|
return Object.setPrototypeOf(s, r), s;
|
|
6335
6308
|
}
|
|
6336
|
-
),
|
|
6337
|
-
class ec extends
|
|
6309
|
+
), p1 = {}.hasOwnProperty;
|
|
6310
|
+
class ec extends h1 {
|
|
6338
6311
|
/**
|
|
6339
6312
|
* Create a processor.
|
|
6340
6313
|
*/
|
|
6341
6314
|
constructor() {
|
|
6342
|
-
super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers =
|
|
6315
|
+
super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = e1();
|
|
6343
6316
|
}
|
|
6344
6317
|
/**
|
|
6345
6318
|
* Copy a processor.
|
|
@@ -6424,7 +6397,7 @@ class ec extends hE {
|
|
|
6424
6397
|
* the entire dataset when getting without key.
|
|
6425
6398
|
*/
|
|
6426
6399
|
data(t, n) {
|
|
6427
|
-
return typeof t == "string" ? arguments.length === 2 ? (wa("data", this.frozen), this.namespace[t] = n, this) :
|
|
6400
|
+
return typeof t == "string" ? arguments.length === 2 ? (wa("data", this.frozen), this.namespace[t] = n, this) : p1.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (wa("data", this.frozen), this.namespace = t, this) : this.namespace;
|
|
6428
6401
|
}
|
|
6429
6402
|
/**
|
|
6430
6403
|
* Freeze a processor.
|
|
@@ -6539,7 +6512,7 @@ class ec extends hE {
|
|
|
6539
6512
|
/** @type {unknown} */
|
|
6540
6513
|
d
|
|
6541
6514
|
), p = r.stringify(f, h);
|
|
6542
|
-
|
|
6515
|
+
b1(p) ? h.value = p : h.result = p, c(
|
|
6543
6516
|
u,
|
|
6544
6517
|
/** @type {VFileWithOutput<CompileResult>} */
|
|
6545
6518
|
h
|
|
@@ -6815,7 +6788,7 @@ class ec extends hE {
|
|
|
6815
6788
|
}
|
|
6816
6789
|
}
|
|
6817
6790
|
}
|
|
6818
|
-
const
|
|
6791
|
+
const g1 = new ec().freeze();
|
|
6819
6792
|
function ya(e, t) {
|
|
6820
6793
|
if (typeof t != "function")
|
|
6821
6794
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
|
@@ -6841,15 +6814,15 @@ function Tu(e, t, n) {
|
|
|
6841
6814
|
);
|
|
6842
6815
|
}
|
|
6843
6816
|
function us(e) {
|
|
6844
|
-
return
|
|
6817
|
+
return m1(e) ? e : new gh(e);
|
|
6845
6818
|
}
|
|
6846
|
-
function
|
|
6819
|
+
function m1(e) {
|
|
6847
6820
|
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
|
6848
6821
|
}
|
|
6849
|
-
function
|
|
6850
|
-
return typeof e == "string" ||
|
|
6822
|
+
function b1(e) {
|
|
6823
|
+
return typeof e == "string" || y1(e);
|
|
6851
6824
|
}
|
|
6852
|
-
function
|
|
6825
|
+
function y1(e) {
|
|
6853
6826
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
6854
6827
|
}
|
|
6855
6828
|
const mh = (
|
|
@@ -6869,24 +6842,24 @@ const mh = (
|
|
|
6869
6842
|
*/
|
|
6870
6843
|
function(e) {
|
|
6871
6844
|
if (e == null)
|
|
6872
|
-
return
|
|
6845
|
+
return _1;
|
|
6873
6846
|
if (typeof e == "function")
|
|
6874
6847
|
return to(e);
|
|
6875
6848
|
if (typeof e == "object")
|
|
6876
|
-
return Array.isArray(e) ?
|
|
6849
|
+
return Array.isArray(e) ? E1(e) : (
|
|
6877
6850
|
// Cast because `ReadonlyArray` goes into the above but `isArray`
|
|
6878
6851
|
// narrows to `Array`.
|
|
6879
|
-
|
|
6852
|
+
w1(
|
|
6880
6853
|
/** @type {Props} */
|
|
6881
6854
|
e
|
|
6882
6855
|
)
|
|
6883
6856
|
);
|
|
6884
6857
|
if (typeof e == "string")
|
|
6885
|
-
return
|
|
6858
|
+
return x1(e);
|
|
6886
6859
|
throw new Error("Expected function, string, or object as test");
|
|
6887
6860
|
}
|
|
6888
6861
|
);
|
|
6889
|
-
function
|
|
6862
|
+
function E1(e) {
|
|
6890
6863
|
const t = [];
|
|
6891
6864
|
let n = -1;
|
|
6892
6865
|
for (; ++n < e.length; )
|
|
@@ -6899,7 +6872,7 @@ function EE(e) {
|
|
|
6899
6872
|
return !1;
|
|
6900
6873
|
}
|
|
6901
6874
|
}
|
|
6902
|
-
function
|
|
6875
|
+
function w1(e) {
|
|
6903
6876
|
const t = (
|
|
6904
6877
|
/** @type {Record<string, unknown>} */
|
|
6905
6878
|
e
|
|
@@ -6917,7 +6890,7 @@ function wE(e) {
|
|
|
6917
6890
|
return !0;
|
|
6918
6891
|
}
|
|
6919
6892
|
}
|
|
6920
|
-
function
|
|
6893
|
+
function x1(e) {
|
|
6921
6894
|
return to(t);
|
|
6922
6895
|
function t(n) {
|
|
6923
6896
|
return n && n.type === e;
|
|
@@ -6926,7 +6899,7 @@ function xE(e) {
|
|
|
6926
6899
|
function to(e) {
|
|
6927
6900
|
return t;
|
|
6928
6901
|
function t(n, r, i) {
|
|
6929
|
-
return !!(
|
|
6902
|
+
return !!(v1(n) && e.call(
|
|
6930
6903
|
this,
|
|
6931
6904
|
n,
|
|
6932
6905
|
typeof r == "number" ? r : void 0,
|
|
@@ -6934,14 +6907,14 @@ function to(e) {
|
|
|
6934
6907
|
));
|
|
6935
6908
|
}
|
|
6936
6909
|
}
|
|
6937
|
-
function
|
|
6910
|
+
function _1() {
|
|
6938
6911
|
return !0;
|
|
6939
6912
|
}
|
|
6940
|
-
function
|
|
6913
|
+
function v1(e) {
|
|
6941
6914
|
return e !== null && typeof e == "object" && "type" in e;
|
|
6942
6915
|
}
|
|
6943
|
-
const bh = [],
|
|
6944
|
-
function
|
|
6916
|
+
const bh = [], k1 = !0, Cu = !1, N1 = "skip";
|
|
6917
|
+
function A1(e, t, n, r) {
|
|
6945
6918
|
let i;
|
|
6946
6919
|
typeof t == "function" && typeof n != "function" ? (r = n, n = t) : i = t;
|
|
6947
6920
|
const s = mh(i), o = r ? -1 : 1;
|
|
@@ -6966,14 +6939,14 @@ function AE(e, t, n, r) {
|
|
|
6966
6939
|
return h;
|
|
6967
6940
|
function h() {
|
|
6968
6941
|
let f = bh, p, m, b;
|
|
6969
|
-
if ((!t || s(l, c, u[u.length - 1] || void 0)) && (f =
|
|
6942
|
+
if ((!t || s(l, c, u[u.length - 1] || void 0)) && (f = S1(n(l, u)), f[0] === Cu))
|
|
6970
6943
|
return f;
|
|
6971
6944
|
if ("children" in l && l.children) {
|
|
6972
6945
|
const y = (
|
|
6973
6946
|
/** @type {UnistParent} */
|
|
6974
6947
|
l
|
|
6975
6948
|
);
|
|
6976
|
-
if (y.children && f[0] !==
|
|
6949
|
+
if (y.children && f[0] !== N1)
|
|
6977
6950
|
for (m = (r ? y.children.length : -1) + o, b = u.concat(y); m > -1 && m < y.children.length; ) {
|
|
6978
6951
|
const x = y.children[m];
|
|
6979
6952
|
if (p = a(x, m, b)(), p[0] === Cu)
|
|
@@ -6985,18 +6958,18 @@ function AE(e, t, n, r) {
|
|
|
6985
6958
|
}
|
|
6986
6959
|
}
|
|
6987
6960
|
}
|
|
6988
|
-
function
|
|
6989
|
-
return Array.isArray(e) ? e : typeof e == "number" ? [
|
|
6961
|
+
function S1(e) {
|
|
6962
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [k1, e] : e == null ? bh : [e];
|
|
6990
6963
|
}
|
|
6991
|
-
function
|
|
6964
|
+
function T1(e, t, n, r) {
|
|
6992
6965
|
let i, s, o;
|
|
6993
|
-
typeof t == "function" && typeof n != "function" ? (s = void 0, o = t, i = n) : (s = t, o = n, i = r),
|
|
6966
|
+
typeof t == "function" && typeof n != "function" ? (s = void 0, o = t, i = n) : (s = t, o = n, i = r), A1(e, s, a, i);
|
|
6994
6967
|
function a(l, c) {
|
|
6995
6968
|
const u = c[c.length - 1], d = u ? u.children.indexOf(l) : void 0;
|
|
6996
6969
|
return o(l, d, u);
|
|
6997
6970
|
}
|
|
6998
6971
|
}
|
|
6999
|
-
const
|
|
6972
|
+
const C1 = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Ou = [], Iu = { allowDangerousHtml: !0 }, O1 = /^(https?|ircs?|mailto|xmpp)$/i, I1 = [
|
|
7000
6973
|
{ from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
|
|
7001
6974
|
{ from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
|
|
7002
6975
|
{
|
|
@@ -7030,21 +7003,21 @@ const CE = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
|
|
|
7030
7003
|
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
|
7031
7004
|
];
|
|
7032
7005
|
function yh(e) {
|
|
7033
|
-
const t =
|
|
7034
|
-
return
|
|
7006
|
+
const t = R1(e), n = L1(e);
|
|
7007
|
+
return M1(t.runSync(t.parse(n), n), e);
|
|
7035
7008
|
}
|
|
7036
|
-
function
|
|
7009
|
+
function R1(e) {
|
|
7037
7010
|
const t = e.rehypePlugins || Ou, n = e.remarkPlugins || Ou, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Iu } : Iu;
|
|
7038
|
-
return
|
|
7011
|
+
return g1().use(nE).use(n).use(QE, r).use(t);
|
|
7039
7012
|
}
|
|
7040
|
-
function
|
|
7013
|
+
function L1(e) {
|
|
7041
7014
|
const t = e.children || "", n = new gh();
|
|
7042
7015
|
return typeof t == "string" && (n.value = t), n;
|
|
7043
7016
|
}
|
|
7044
|
-
function
|
|
7045
|
-
const n = t.allowedElements, r = t.allowElement, i = t.components, s = t.disallowedElements, o = t.skipHtml, a = t.unwrapDisallowed, l = t.urlTransform ||
|
|
7046
|
-
for (const u of
|
|
7047
|
-
Object.hasOwn(t, u.from) && ("" + u.from + (u.to ? "use `" + u.to + "` instead" : "remove it") +
|
|
7017
|
+
function M1(e, t) {
|
|
7018
|
+
const n = t.allowedElements, r = t.allowElement, i = t.components, s = t.disallowedElements, o = t.skipHtml, a = t.unwrapDisallowed, l = t.urlTransform || D1;
|
|
7019
|
+
for (const u of I1)
|
|
7020
|
+
Object.hasOwn(t, u.from) && ("" + u.from + (u.to ? "use `" + u.to + "` instead" : "remove it") + C1 + u.id, void 0);
|
|
7048
7021
|
return t.className && (e = {
|
|
7049
7022
|
type: "element",
|
|
7050
7023
|
tagName: "div",
|
|
@@ -7054,7 +7027,7 @@ function ME(e, t) {
|
|
|
7054
7027
|
/** @type {Array<ElementContent>} */
|
|
7055
7028
|
e.type === "root" ? e.children : [e]
|
|
7056
7029
|
)
|
|
7057
|
-
}),
|
|
7030
|
+
}), T1(e, c), Fb(e, {
|
|
7058
7031
|
Fragment: Wa,
|
|
7059
7032
|
// @ts-expect-error
|
|
7060
7033
|
// React components are allowed to return numbers,
|
|
@@ -7084,13 +7057,13 @@ function ME(e, t) {
|
|
|
7084
7057
|
}
|
|
7085
7058
|
}
|
|
7086
7059
|
}
|
|
7087
|
-
function
|
|
7060
|
+
function D1(e) {
|
|
7088
7061
|
const t = e.indexOf(":"), n = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
|
|
7089
7062
|
return (
|
|
7090
7063
|
// If there is no protocol, it’s relative.
|
|
7091
7064
|
t === -1 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
|
|
7092
7065
|
i !== -1 && t > i || n !== -1 && t > n || r !== -1 && t > r || // It is a protocol, it should be allowed.
|
|
7093
|
-
|
|
7066
|
+
O1.test(e.slice(0, t)) ? e : ""
|
|
7094
7067
|
);
|
|
7095
7068
|
}
|
|
7096
7069
|
function Ru(e, t) {
|
|
@@ -7102,7 +7075,7 @@ function Ru(e, t) {
|
|
|
7102
7075
|
r++, i = n.indexOf(t, i + t.length);
|
|
7103
7076
|
return r;
|
|
7104
7077
|
}
|
|
7105
|
-
function
|
|
7078
|
+
function P1(e) {
|
|
7106
7079
|
if (typeof e != "string")
|
|
7107
7080
|
throw new TypeError("Expected a string");
|
|
7108
7081
|
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
@@ -7124,24 +7097,24 @@ const tc = (
|
|
|
7124
7097
|
*/
|
|
7125
7098
|
function(e) {
|
|
7126
7099
|
if (e == null)
|
|
7127
|
-
return
|
|
7100
|
+
return U1;
|
|
7128
7101
|
if (typeof e == "function")
|
|
7129
7102
|
return no(e);
|
|
7130
7103
|
if (typeof e == "object")
|
|
7131
|
-
return Array.isArray(e) ?
|
|
7104
|
+
return Array.isArray(e) ? B1(e) : (
|
|
7132
7105
|
// Cast because `ReadonlyArray` goes into the above but `isArray`
|
|
7133
7106
|
// narrows to `Array`.
|
|
7134
|
-
|
|
7107
|
+
F1(
|
|
7135
7108
|
/** @type {Props} */
|
|
7136
7109
|
e
|
|
7137
7110
|
)
|
|
7138
7111
|
);
|
|
7139
7112
|
if (typeof e == "string")
|
|
7140
|
-
return
|
|
7113
|
+
return q1(e);
|
|
7141
7114
|
throw new Error("Expected function, string, or object as test");
|
|
7142
7115
|
}
|
|
7143
7116
|
);
|
|
7144
|
-
function
|
|
7117
|
+
function B1(e) {
|
|
7145
7118
|
const t = [];
|
|
7146
7119
|
let n = -1;
|
|
7147
7120
|
for (; ++n < e.length; )
|
|
@@ -7154,7 +7127,7 @@ function BE(e) {
|
|
|
7154
7127
|
return !1;
|
|
7155
7128
|
}
|
|
7156
7129
|
}
|
|
7157
|
-
function
|
|
7130
|
+
function F1(e) {
|
|
7158
7131
|
const t = (
|
|
7159
7132
|
/** @type {Record<string, unknown>} */
|
|
7160
7133
|
e
|
|
@@ -7172,7 +7145,7 @@ function FE(e) {
|
|
|
7172
7145
|
return !0;
|
|
7173
7146
|
}
|
|
7174
7147
|
}
|
|
7175
|
-
function
|
|
7148
|
+
function q1(e) {
|
|
7176
7149
|
return no(t);
|
|
7177
7150
|
function t(n) {
|
|
7178
7151
|
return n && n.type === e;
|
|
@@ -7181,7 +7154,7 @@ function qE(e) {
|
|
|
7181
7154
|
function no(e) {
|
|
7182
7155
|
return t;
|
|
7183
7156
|
function t(n, r, i) {
|
|
7184
|
-
return !!($
|
|
7157
|
+
return !!($1(n) && e.call(
|
|
7185
7158
|
this,
|
|
7186
7159
|
n,
|
|
7187
7160
|
typeof r == "number" ? r : void 0,
|
|
@@ -7189,14 +7162,14 @@ function no(e) {
|
|
|
7189
7162
|
));
|
|
7190
7163
|
}
|
|
7191
7164
|
}
|
|
7192
|
-
function
|
|
7165
|
+
function U1() {
|
|
7193
7166
|
return !0;
|
|
7194
7167
|
}
|
|
7195
|
-
function $
|
|
7168
|
+
function $1(e) {
|
|
7196
7169
|
return e !== null && typeof e == "object" && "type" in e;
|
|
7197
7170
|
}
|
|
7198
|
-
const Eh = [],
|
|
7199
|
-
function
|
|
7171
|
+
const Eh = [], z1 = !0, Lu = !1, H1 = "skip";
|
|
7172
|
+
function j1(e, t, n, r) {
|
|
7200
7173
|
let i;
|
|
7201
7174
|
i = t;
|
|
7202
7175
|
const s = tc(i), o = 1;
|
|
@@ -7221,14 +7194,14 @@ function jE(e, t, n, r) {
|
|
|
7221
7194
|
return h;
|
|
7222
7195
|
function h() {
|
|
7223
7196
|
let f = Eh, p, m, b;
|
|
7224
|
-
if (s(l, c, u[u.length - 1] || void 0) && (f =
|
|
7197
|
+
if (s(l, c, u[u.length - 1] || void 0) && (f = G1(n(l, u)), f[0] === Lu))
|
|
7225
7198
|
return f;
|
|
7226
7199
|
if ("children" in l && l.children) {
|
|
7227
7200
|
const y = (
|
|
7228
7201
|
/** @type {UnistParent} */
|
|
7229
7202
|
l
|
|
7230
7203
|
);
|
|
7231
|
-
if (y.children && f[0] !==
|
|
7204
|
+
if (y.children && f[0] !== H1)
|
|
7232
7205
|
for (m = -1 + o, b = u.concat(y); m > -1 && m < y.children.length; ) {
|
|
7233
7206
|
const x = y.children[m];
|
|
7234
7207
|
if (p = a(x, m, b)(), p[0] === Lu)
|
|
@@ -7240,14 +7213,14 @@ function jE(e, t, n, r) {
|
|
|
7240
7213
|
}
|
|
7241
7214
|
}
|
|
7242
7215
|
}
|
|
7243
|
-
function
|
|
7244
|
-
return Array.isArray(e) ? e : typeof e == "number" ? [
|
|
7216
|
+
function G1(e) {
|
|
7217
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [z1, e] : e == null ? Eh : [e];
|
|
7245
7218
|
}
|
|
7246
|
-
function
|
|
7247
|
-
const i = tc((n || {}).ignore || []), s =
|
|
7219
|
+
function K1(e, t, n) {
|
|
7220
|
+
const i = tc((n || {}).ignore || []), s = W1(t);
|
|
7248
7221
|
let o = -1;
|
|
7249
7222
|
for (; ++o < s.length; )
|
|
7250
|
-
|
|
7223
|
+
j1(e, "text", a);
|
|
7251
7224
|
function a(c, u) {
|
|
7252
7225
|
let d = -1, h;
|
|
7253
7226
|
for (; ++d < u.length; ) {
|
|
@@ -7287,7 +7260,7 @@ function KE(e, t, n) {
|
|
|
7287
7260
|
return y ? (p < c.value.length && x.push({ type: "text", value: c.value.slice(p) }), d.children.splice(b, 1, ...x)) : x = [c], b + x.length;
|
|
7288
7261
|
}
|
|
7289
7262
|
}
|
|
7290
|
-
function
|
|
7263
|
+
function W1(e) {
|
|
7291
7264
|
const t = [];
|
|
7292
7265
|
if (!Array.isArray(e))
|
|
7293
7266
|
throw new TypeError("Expected find and replace tuple or list of tuples");
|
|
@@ -7295,24 +7268,24 @@ function WE(e) {
|
|
|
7295
7268
|
let r = -1;
|
|
7296
7269
|
for (; ++r < n.length; ) {
|
|
7297
7270
|
const i = n[r];
|
|
7298
|
-
t.push([
|
|
7271
|
+
t.push([V1(i[0]), Y1(i[1])]);
|
|
7299
7272
|
}
|
|
7300
7273
|
return t;
|
|
7301
7274
|
}
|
|
7302
|
-
function
|
|
7303
|
-
return typeof e == "string" ? new RegExp(
|
|
7275
|
+
function V1(e) {
|
|
7276
|
+
return typeof e == "string" ? new RegExp(P1(e), "g") : e;
|
|
7304
7277
|
}
|
|
7305
|
-
function
|
|
7278
|
+
function Y1(e) {
|
|
7306
7279
|
return typeof e == "function" ? e : function() {
|
|
7307
7280
|
return e;
|
|
7308
7281
|
};
|
|
7309
7282
|
}
|
|
7310
7283
|
const xa = "phrasing", _a = ["autolink", "link", "image", "label"];
|
|
7311
|
-
function
|
|
7284
|
+
function Z1() {
|
|
7312
7285
|
return {
|
|
7313
7286
|
transforms: [rw],
|
|
7314
7287
|
enter: {
|
|
7315
|
-
literalAutolink:
|
|
7288
|
+
literalAutolink: Q1,
|
|
7316
7289
|
literalAutolinkEmail: va,
|
|
7317
7290
|
literalAutolinkHttp: va,
|
|
7318
7291
|
literalAutolinkWww: va
|
|
@@ -7320,12 +7293,12 @@ function ZE() {
|
|
|
7320
7293
|
exit: {
|
|
7321
7294
|
literalAutolink: nw,
|
|
7322
7295
|
literalAutolinkEmail: tw,
|
|
7323
|
-
literalAutolinkHttp:
|
|
7296
|
+
literalAutolinkHttp: J1,
|
|
7324
7297
|
literalAutolinkWww: ew
|
|
7325
7298
|
}
|
|
7326
7299
|
};
|
|
7327
7300
|
}
|
|
7328
|
-
function
|
|
7301
|
+
function X1() {
|
|
7329
7302
|
return {
|
|
7330
7303
|
unsafe: [
|
|
7331
7304
|
{
|
|
@@ -7352,13 +7325,13 @@ function XE() {
|
|
|
7352
7325
|
]
|
|
7353
7326
|
};
|
|
7354
7327
|
}
|
|
7355
|
-
function
|
|
7328
|
+
function Q1(e) {
|
|
7356
7329
|
this.enter({ type: "link", title: null, url: "", children: [] }, e);
|
|
7357
7330
|
}
|
|
7358
7331
|
function va(e) {
|
|
7359
7332
|
this.config.enter.autolinkProtocol.call(this, e);
|
|
7360
7333
|
}
|
|
7361
|
-
function
|
|
7334
|
+
function J1(e) {
|
|
7362
7335
|
this.config.exit.autolinkProtocol.call(this, e);
|
|
7363
7336
|
}
|
|
7364
7337
|
function ew(e) {
|
|
@@ -7373,7 +7346,7 @@ function nw(e) {
|
|
|
7373
7346
|
this.exit(e);
|
|
7374
7347
|
}
|
|
7375
7348
|
function rw(e) {
|
|
7376
|
-
|
|
7349
|
+
K1(
|
|
7377
7350
|
e,
|
|
7378
7351
|
[
|
|
7379
7352
|
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, iw],
|
|
@@ -8672,7 +8645,7 @@ function Mx(e, t, n, r) {
|
|
|
8672
8645
|
}
|
|
8673
8646
|
function Dx() {
|
|
8674
8647
|
return [
|
|
8675
|
-
|
|
8648
|
+
Z1(),
|
|
8676
8649
|
bw(),
|
|
8677
8650
|
xw(),
|
|
8678
8651
|
kx(),
|
|
@@ -8682,7 +8655,7 @@ function Dx() {
|
|
|
8682
8655
|
function Px(e) {
|
|
8683
8656
|
return {
|
|
8684
8657
|
extensions: [
|
|
8685
|
-
|
|
8658
|
+
X1(),
|
|
8686
8659
|
yw(e),
|
|
8687
8660
|
_w(),
|
|
8688
8661
|
Ox(e),
|