@rekayasa/erica-bubble 1.0.10 → 1.0.13
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/erica-bubble.css +1 -1
- package/dist/index.cjs +23 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2396 -445
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -852,14 +852,6 @@ function Ze({ onSend: e, inProgress: t, threadId: n }) {
|
|
|
852
852
|
disabled: t,
|
|
853
853
|
multiple: !0
|
|
854
854
|
}),
|
|
855
|
-
/* @__PURE__ */ g("button", {
|
|
856
|
-
onClick: () => h.current?.click(),
|
|
857
|
-
disabled: t,
|
|
858
|
-
className: "copilotKitInputControlButton erica-attach-button",
|
|
859
|
-
"aria-label": "Attach files",
|
|
860
|
-
title: "Attach files (drag & drop supported)",
|
|
861
|
-
children: /* @__PURE__ */ g(fe, { className: "erica-icon-md" })
|
|
862
|
-
}),
|
|
863
855
|
/* @__PURE__ */ g("div", { className: "erica-spacer" }),
|
|
864
856
|
/* @__PURE__ */ g("button", {
|
|
865
857
|
onClick: D,
|
|
@@ -883,6 +875,10 @@ function Ze({ onSend: e, inProgress: t, threadId: n }) {
|
|
|
883
875
|
})
|
|
884
876
|
]
|
|
885
877
|
})]
|
|
878
|
+
}),
|
|
879
|
+
/* @__PURE__ */ g("div", {
|
|
880
|
+
className: "erica-input-disclaimer",
|
|
881
|
+
children: "AI dapat membuat kesalahan. Harap verifikasi informasi penting."
|
|
886
882
|
})
|
|
887
883
|
]
|
|
888
884
|
});
|
|
@@ -2557,7 +2553,7 @@ function Dn({ onNewChat: e, onThreadSelect: t }) {
|
|
|
2557
2553
|
className: "erica-header",
|
|
2558
2554
|
children: [/* @__PURE__ */ g("h2", {
|
|
2559
2555
|
className: "erica-header-title",
|
|
2560
|
-
children: "
|
|
2556
|
+
children: "SPP AI"
|
|
2561
2557
|
}), /* @__PURE__ */ _("div", {
|
|
2562
2558
|
className: "erica-header-controls",
|
|
2563
2559
|
ref: i,
|
|
@@ -5750,7 +5746,7 @@ function zc({ sql: e, x: t, y: n, seriesBy: r, size: i, color: a, title: o, heig
|
|
|
5750
5746
|
//#region src/components/charts/FunnelChart.tsx
|
|
5751
5747
|
var Bc = (e) => Object.fromEntries(Object.entries(e).filter(([e, t]) => t !== void 0));
|
|
5752
5748
|
function Vc({ sql: e, name: t, value: n, title: r, height: i = "400px", showLabels: a = !0, showLegend: o = !1, sort: c = "descending" }) {
|
|
5753
|
-
let { accountUid: u } = Dc(), [d, f] = l(a), [p, m] = l(o), { data: h, isLoading:
|
|
5749
|
+
let { accountUid: u } = Dc(), [d, f] = l(a), [p, m] = l(o), { data: h, isLoading: _, isError: v, error: y } = kc(u, s(() => ({ sql: e }), [e])), b = s(() => {
|
|
5754
5750
|
if (!h?.rows?.length) return null;
|
|
5755
5751
|
let e = h.rows.map((e) => ({
|
|
5756
5752
|
name: String(e[t] ?? ""),
|
|
@@ -5808,23 +5804,23 @@ function Vc({ sql: e, name: t, value: n, title: r, height: i = "400px", showLabe
|
|
|
5808
5804
|
c,
|
|
5809
5805
|
d,
|
|
5810
5806
|
p
|
|
5811
|
-
]),
|
|
5807
|
+
]), x = {
|
|
5812
5808
|
height: typeof i == "number" ? `${i}px` : i,
|
|
5813
5809
|
width: "100%"
|
|
5814
5810
|
};
|
|
5815
|
-
return
|
|
5816
|
-
style:
|
|
5811
|
+
return _ ? /* @__PURE__ */ g("div", {
|
|
5812
|
+
style: x,
|
|
5817
5813
|
className: "erica-chart-loading",
|
|
5818
|
-
children:
|
|
5819
|
-
}) :
|
|
5820
|
-
style:
|
|
5814
|
+
children: /* @__PURE__ */ g("div", { className: "erica-chart-loading-spinner" })
|
|
5815
|
+
}) : v ? /* @__PURE__ */ g("div", {
|
|
5816
|
+
style: x,
|
|
5821
5817
|
className: "erica-chart-error",
|
|
5822
|
-
children: /* @__PURE__ */ g("p", { children:
|
|
5823
|
-
}) :
|
|
5824
|
-
option:
|
|
5825
|
-
style:
|
|
5818
|
+
children: /* @__PURE__ */ g("p", { children: y?.message ?? "Failed to load chart data" })
|
|
5819
|
+
}) : b ? /* @__PURE__ */ g(wc, {
|
|
5820
|
+
option: b,
|
|
5821
|
+
style: x
|
|
5826
5822
|
}) : /* @__PURE__ */ g("div", {
|
|
5827
|
-
style:
|
|
5823
|
+
style: x,
|
|
5828
5824
|
className: "erica-chart-no-data",
|
|
5829
5825
|
children: /* @__PURE__ */ g("p", { children: "No data" })
|
|
5830
5826
|
});
|
|
@@ -6020,43 +6016,43 @@ V.prototype.attribute = "", V.prototype.booleanish = !1, V.prototype.boolean = !
|
|
|
6020
6016
|
var sl = /* @__PURE__ */ E({
|
|
6021
6017
|
boolean: () => H,
|
|
6022
6018
|
booleanish: () => U,
|
|
6023
|
-
commaOrSpaceSeparated: () =>
|
|
6019
|
+
commaOrSpaceSeparated: () => dl,
|
|
6024
6020
|
commaSeparated: () => ul,
|
|
6025
6021
|
number: () => W,
|
|
6026
6022
|
overloadedBoolean: () => ll,
|
|
6027
6023
|
spaceSeparated: () => G
|
|
6028
|
-
}), cl = 0, H =
|
|
6029
|
-
function
|
|
6024
|
+
}), cl = 0, H = fl(), U = fl(), ll = fl(), W = fl(), G = fl(), ul = fl(), dl = fl();
|
|
6025
|
+
function fl() {
|
|
6030
6026
|
return 2 ** ++cl;
|
|
6031
6027
|
}
|
|
6032
6028
|
//#endregion
|
|
6033
6029
|
//#region node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/defined-info.js
|
|
6034
|
-
var
|
|
6030
|
+
var pl = Object.keys(sl), ml = class extends V {
|
|
6035
6031
|
constructor(e, t, n, r) {
|
|
6036
6032
|
let i = -1;
|
|
6037
|
-
if (super(e, t),
|
|
6038
|
-
let e =
|
|
6039
|
-
|
|
6033
|
+
if (super(e, t), hl(this, "space", r), typeof n == "number") for (; ++i < pl.length;) {
|
|
6034
|
+
let e = pl[i];
|
|
6035
|
+
hl(this, pl[i], (n & sl[e]) === sl[e]);
|
|
6040
6036
|
}
|
|
6041
6037
|
}
|
|
6042
6038
|
};
|
|
6043
|
-
|
|
6044
|
-
function
|
|
6039
|
+
ml.prototype.defined = !0;
|
|
6040
|
+
function hl(e, t, n) {
|
|
6045
6041
|
n && (e[t] = n);
|
|
6046
6042
|
}
|
|
6047
6043
|
//#endregion
|
|
6048
6044
|
//#region node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/create.js
|
|
6049
|
-
function
|
|
6045
|
+
function gl(e) {
|
|
6050
6046
|
let t = {}, n = {};
|
|
6051
6047
|
for (let [r, i] of Object.entries(e.properties)) {
|
|
6052
|
-
let a = new
|
|
6048
|
+
let a = new ml(r, e.transform(e.attributes || {}, r), i, e.space);
|
|
6053
6049
|
e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[ol(r)] = r, n[ol(a.attribute)] = r;
|
|
6054
6050
|
}
|
|
6055
6051
|
return new il(t, n, e.space);
|
|
6056
6052
|
}
|
|
6057
6053
|
//#endregion
|
|
6058
6054
|
//#region node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/aria.js
|
|
6059
|
-
var
|
|
6055
|
+
var _l = gl({
|
|
6060
6056
|
properties: {
|
|
6061
6057
|
ariaActiveDescendant: null,
|
|
6062
6058
|
ariaAtomic: U,
|
|
@@ -6114,17 +6110,17 @@ var gl = hl({
|
|
|
6114
6110
|
});
|
|
6115
6111
|
//#endregion
|
|
6116
6112
|
//#region node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-sensitive-transform.js
|
|
6117
|
-
function
|
|
6113
|
+
function vl(e, t) {
|
|
6118
6114
|
return t in e ? e[t] : t;
|
|
6119
6115
|
}
|
|
6120
6116
|
//#endregion
|
|
6121
6117
|
//#region node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-insensitive-transform.js
|
|
6122
|
-
function
|
|
6123
|
-
return
|
|
6118
|
+
function yl(e, t) {
|
|
6119
|
+
return vl(e, t.toLowerCase());
|
|
6124
6120
|
}
|
|
6125
6121
|
//#endregion
|
|
6126
6122
|
//#region node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/html.js
|
|
6127
|
-
var
|
|
6123
|
+
var bl = gl({
|
|
6128
6124
|
attributes: {
|
|
6129
6125
|
acceptcharset: "accept-charset",
|
|
6130
6126
|
classname: "class",
|
|
@@ -6432,8 +6428,8 @@ var yl = hl({
|
|
|
6432
6428
|
unselectable: null
|
|
6433
6429
|
},
|
|
6434
6430
|
space: "html",
|
|
6435
|
-
transform:
|
|
6436
|
-
}),
|
|
6431
|
+
transform: yl
|
|
6432
|
+
}), xl = gl({
|
|
6437
6433
|
attributes: {
|
|
6438
6434
|
accentHeight: "accent-height",
|
|
6439
6435
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -6609,7 +6605,7 @@ var yl = hl({
|
|
|
6609
6605
|
timelineBegin: "timelinebegin"
|
|
6610
6606
|
},
|
|
6611
6607
|
properties: {
|
|
6612
|
-
about:
|
|
6608
|
+
about: dl,
|
|
6613
6609
|
accentHeight: W,
|
|
6614
6610
|
accumulate: null,
|
|
6615
6611
|
additive: null,
|
|
@@ -6721,7 +6717,7 @@ var yl = hl({
|
|
|
6721
6717
|
k2: W,
|
|
6722
6718
|
k3: W,
|
|
6723
6719
|
k4: W,
|
|
6724
|
-
kernelMatrix:
|
|
6720
|
+
kernelMatrix: dl,
|
|
6725
6721
|
kernelUnitLength: null,
|
|
6726
6722
|
keyPoints: null,
|
|
6727
6723
|
keySplines: null,
|
|
@@ -6875,21 +6871,21 @@ var yl = hl({
|
|
|
6875
6871
|
preserveAspectRatio: null,
|
|
6876
6872
|
primitiveUnits: null,
|
|
6877
6873
|
propagate: null,
|
|
6878
|
-
property:
|
|
6874
|
+
property: dl,
|
|
6879
6875
|
r: null,
|
|
6880
6876
|
radius: null,
|
|
6881
6877
|
referrerPolicy: null,
|
|
6882
6878
|
refX: null,
|
|
6883
6879
|
refY: null,
|
|
6884
|
-
rel:
|
|
6885
|
-
rev:
|
|
6880
|
+
rel: dl,
|
|
6881
|
+
rev: dl,
|
|
6886
6882
|
renderingIntent: null,
|
|
6887
6883
|
repeatCount: null,
|
|
6888
6884
|
repeatDur: null,
|
|
6889
|
-
requiredExtensions:
|
|
6890
|
-
requiredFeatures:
|
|
6891
|
-
requiredFonts:
|
|
6892
|
-
requiredFormats:
|
|
6885
|
+
requiredExtensions: dl,
|
|
6886
|
+
requiredFeatures: dl,
|
|
6887
|
+
requiredFonts: dl,
|
|
6888
|
+
requiredFormats: dl,
|
|
6893
6889
|
resource: null,
|
|
6894
6890
|
restart: null,
|
|
6895
6891
|
result: null,
|
|
@@ -6917,7 +6913,7 @@ var yl = hl({
|
|
|
6917
6913
|
strikethroughThickness: W,
|
|
6918
6914
|
string: null,
|
|
6919
6915
|
stroke: null,
|
|
6920
|
-
strokeDashArray:
|
|
6916
|
+
strokeDashArray: dl,
|
|
6921
6917
|
strokeDashOffset: null,
|
|
6922
6918
|
strokeLineCap: null,
|
|
6923
6919
|
strokeLineJoin: null,
|
|
@@ -6931,7 +6927,7 @@ var yl = hl({
|
|
|
6931
6927
|
syncMaster: null,
|
|
6932
6928
|
syncTolerance: null,
|
|
6933
6929
|
syncToleranceDefault: null,
|
|
6934
|
-
systemLanguage:
|
|
6930
|
+
systemLanguage: dl,
|
|
6935
6931
|
tabIndex: W,
|
|
6936
6932
|
tableValues: null,
|
|
6937
6933
|
target: null,
|
|
@@ -6945,7 +6941,7 @@ var yl = hl({
|
|
|
6945
6941
|
title: null,
|
|
6946
6942
|
transformBehavior: null,
|
|
6947
6943
|
type: null,
|
|
6948
|
-
typeOf:
|
|
6944
|
+
typeOf: dl,
|
|
6949
6945
|
to: null,
|
|
6950
6946
|
transform: null,
|
|
6951
6947
|
transformOrigin: null,
|
|
@@ -6987,8 +6983,8 @@ var yl = hl({
|
|
|
6987
6983
|
zoomAndPan: null
|
|
6988
6984
|
},
|
|
6989
6985
|
space: "svg",
|
|
6990
|
-
transform:
|
|
6991
|
-
}),
|
|
6986
|
+
transform: vl
|
|
6987
|
+
}), Sl = gl({
|
|
6992
6988
|
properties: {
|
|
6993
6989
|
xLinkActuate: null,
|
|
6994
6990
|
xLinkArcRole: null,
|
|
@@ -7002,15 +6998,15 @@ var yl = hl({
|
|
|
7002
6998
|
transform(e, t) {
|
|
7003
6999
|
return "xlink:" + t.slice(5).toLowerCase();
|
|
7004
7000
|
}
|
|
7005
|
-
}),
|
|
7001
|
+
}), Cl = gl({
|
|
7006
7002
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
7007
7003
|
properties: {
|
|
7008
7004
|
xmlnsXLink: null,
|
|
7009
7005
|
xmlns: null
|
|
7010
7006
|
},
|
|
7011
7007
|
space: "xmlns",
|
|
7012
|
-
transform:
|
|
7013
|
-
}),
|
|
7008
|
+
transform: yl
|
|
7009
|
+
}), wl = gl({
|
|
7014
7010
|
properties: {
|
|
7015
7011
|
xmlBase: null,
|
|
7016
7012
|
xmlLang: null,
|
|
@@ -7020,7 +7016,7 @@ var yl = hl({
|
|
|
7020
7016
|
transform(e, t) {
|
|
7021
7017
|
return "xml:" + t.slice(3).toLowerCase();
|
|
7022
7018
|
}
|
|
7023
|
-
}),
|
|
7019
|
+
}), Tl = {
|
|
7024
7020
|
classId: "classID",
|
|
7025
7021
|
dataType: "datatype",
|
|
7026
7022
|
itemId: "itemID",
|
|
@@ -7038,54 +7034,54 @@ var yl = hl({
|
|
|
7038
7034
|
xLinkTitle: "xlinkTitle",
|
|
7039
7035
|
xLinkType: "xlinkType",
|
|
7040
7036
|
xmlnsXLink: "xmlnsXlink"
|
|
7041
|
-
},
|
|
7042
|
-
function
|
|
7037
|
+
}, El = /[A-Z]/g, Dl = /-[a-z]/g, Ol = /^data[-\w.:]+$/i;
|
|
7038
|
+
function kl(e, t) {
|
|
7043
7039
|
let n = ol(t), r = t, i = V;
|
|
7044
7040
|
if (n in e.normal) return e.property[e.normal[n]];
|
|
7045
|
-
if (n.length > 4 && n.slice(0, 4) === "data" &&
|
|
7041
|
+
if (n.length > 4 && n.slice(0, 4) === "data" && Ol.test(t)) {
|
|
7046
7042
|
if (t.charAt(4) === "-") {
|
|
7047
|
-
let e = t.slice(5).replace(
|
|
7043
|
+
let e = t.slice(5).replace(Dl, jl);
|
|
7048
7044
|
r = "data" + e.charAt(0).toUpperCase() + e.slice(1);
|
|
7049
7045
|
} else {
|
|
7050
7046
|
let e = t.slice(4);
|
|
7051
|
-
if (!
|
|
7052
|
-
let n = e.replace(
|
|
7047
|
+
if (!Dl.test(e)) {
|
|
7048
|
+
let n = e.replace(El, Al);
|
|
7053
7049
|
n.charAt(0) !== "-" && (n = "-" + n), t = "data" + n;
|
|
7054
7050
|
}
|
|
7055
7051
|
}
|
|
7056
|
-
i =
|
|
7052
|
+
i = ml;
|
|
7057
7053
|
}
|
|
7058
7054
|
return new i(r, t);
|
|
7059
7055
|
}
|
|
7060
|
-
function
|
|
7056
|
+
function Al(e) {
|
|
7061
7057
|
return "-" + e.toLowerCase();
|
|
7062
7058
|
}
|
|
7063
|
-
function
|
|
7059
|
+
function jl(e) {
|
|
7064
7060
|
return e.charAt(1).toUpperCase();
|
|
7065
7061
|
}
|
|
7066
7062
|
//#endregion
|
|
7067
7063
|
//#region node_modules/hast-util-to-jsx-runtime/node_modules/property-information/index.js
|
|
7068
|
-
var
|
|
7069
|
-
|
|
7070
|
-
yl,
|
|
7071
|
-
xl,
|
|
7072
|
-
Sl,
|
|
7073
|
-
Cl
|
|
7074
|
-
], "html"), Ml = al([
|
|
7075
|
-
gl,
|
|
7064
|
+
var Ml = al([
|
|
7065
|
+
_l,
|
|
7076
7066
|
bl,
|
|
7067
|
+
Sl,
|
|
7068
|
+
Cl,
|
|
7069
|
+
wl
|
|
7070
|
+
], "html"), Nl = al([
|
|
7071
|
+
_l,
|
|
7077
7072
|
xl,
|
|
7078
7073
|
Sl,
|
|
7079
|
-
Cl
|
|
7074
|
+
Cl,
|
|
7075
|
+
wl
|
|
7080
7076
|
], "svg");
|
|
7081
7077
|
//#endregion
|
|
7082
7078
|
//#region node_modules/space-separated-tokens/index.js
|
|
7083
|
-
function
|
|
7079
|
+
function Pl(e) {
|
|
7084
7080
|
return e.join(" ").trim();
|
|
7085
7081
|
}
|
|
7086
7082
|
//#endregion
|
|
7087
7083
|
//#region node_modules/style-to-js/node_modules/inline-style-parser/cjs/index.js
|
|
7088
|
-
var
|
|
7084
|
+
var Fl = /* @__PURE__ */ T(((e, t) => {
|
|
7089
7085
|
var n = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, r = /\n/g, i = /^\s*/, a = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, o = /^:\s*/, s = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, c = /^[;\s]*/, l = /^\s+|\s+$/g, u = "\n", d = "/", f = "*", p = "", m = "comment", h = "declaration";
|
|
7090
7086
|
function g(e, t) {
|
|
7091
7087
|
if (typeof e != "string") throw TypeError("First argument must be a string");
|
|
@@ -7169,12 +7165,12 @@ var Pl = /* @__PURE__ */ T(((e, t) => {
|
|
|
7169
7165
|
return e ? e.replace(l, p) : p;
|
|
7170
7166
|
}
|
|
7171
7167
|
t.exports = g;
|
|
7172
|
-
})),
|
|
7168
|
+
})), Il = /* @__PURE__ */ T(((e) => {
|
|
7173
7169
|
var t = e && e.__importDefault || function(e) {
|
|
7174
7170
|
return e && e.__esModule ? e : { default: e };
|
|
7175
7171
|
};
|
|
7176
7172
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = r;
|
|
7177
|
-
var n = t(
|
|
7173
|
+
var n = t(Fl());
|
|
7178
7174
|
function r(e, t) {
|
|
7179
7175
|
let r = null;
|
|
7180
7176
|
if (!e || typeof e != "string") return r;
|
|
@@ -7185,7 +7181,7 @@ var Pl = /* @__PURE__ */ T(((e, t) => {
|
|
|
7185
7181
|
a ? t(n, i, e) : i && (r ||= {}, r[n] = i);
|
|
7186
7182
|
}), r;
|
|
7187
7183
|
}
|
|
7188
|
-
})),
|
|
7184
|
+
})), Ll = /* @__PURE__ */ T(((e) => {
|
|
7189
7185
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.camelCase = void 0;
|
|
7190
7186
|
var t = /^--[a-zA-Z0-9_-]+$/, n = /-([a-z])/g, r = /^[^-]+$/, i = /^-(webkit|moz|ms|o|khtml)-/, a = /^-(ms)-/, o = function(e) {
|
|
7191
7187
|
return !e || r.test(e) || t.test(e);
|
|
@@ -7197,10 +7193,10 @@ var Pl = /* @__PURE__ */ T(((e, t) => {
|
|
|
7197
7193
|
e.camelCase = function(e, t) {
|
|
7198
7194
|
return t === void 0 && (t = {}), o(e) ? e : (e = e.toLowerCase(), e = t.reactCompat ? e.replace(a, c) : e.replace(i, c), e.replace(n, s));
|
|
7199
7195
|
};
|
|
7200
|
-
})),
|
|
7196
|
+
})), Rl = /* @__PURE__ */ T(((e, t) => {
|
|
7201
7197
|
var n = (e && e.__importDefault || function(e) {
|
|
7202
7198
|
return e && e.__esModule ? e : { default: e };
|
|
7203
|
-
})(
|
|
7199
|
+
})(Il()), r = Ll();
|
|
7204
7200
|
function i(e, t) {
|
|
7205
7201
|
var i = {};
|
|
7206
7202
|
return !e || typeof e != "string" || (0, n.default)(e, function(e, n) {
|
|
@@ -7208,8 +7204,8 @@ var Pl = /* @__PURE__ */ T(((e, t) => {
|
|
|
7208
7204
|
}), i;
|
|
7209
7205
|
}
|
|
7210
7206
|
i.default = i, t.exports = i;
|
|
7211
|
-
})),
|
|
7212
|
-
function
|
|
7207
|
+
})), zl = Vl("end"), Bl = Vl("start");
|
|
7208
|
+
function Vl(e) {
|
|
7213
7209
|
return t;
|
|
7214
7210
|
function t(t) {
|
|
7215
7211
|
let n = t && t.position && t.position[e] || {};
|
|
@@ -7220,8 +7216,8 @@ function Bl(e) {
|
|
|
7220
7216
|
};
|
|
7221
7217
|
}
|
|
7222
7218
|
}
|
|
7223
|
-
function
|
|
7224
|
-
let t =
|
|
7219
|
+
function Hl(e) {
|
|
7220
|
+
let t = Bl(e), n = zl(e);
|
|
7225
7221
|
if (t && n) return {
|
|
7226
7222
|
start: t,
|
|
7227
7223
|
end: n
|
|
@@ -7229,21 +7225,21 @@ function Vl(e) {
|
|
|
7229
7225
|
}
|
|
7230
7226
|
//#endregion
|
|
7231
7227
|
//#region node_modules/unist-util-stringify-position/lib/index.js
|
|
7232
|
-
function Hl(e) {
|
|
7233
|
-
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Wl(e.position) : "start" in e || "end" in e ? Wl(e) : "line" in e || "column" in e ? Ul(e) : "";
|
|
7234
|
-
}
|
|
7235
7228
|
function Ul(e) {
|
|
7236
|
-
return
|
|
7229
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Gl(e.position) : "start" in e || "end" in e ? Gl(e) : "line" in e || "column" in e ? Wl(e) : "";
|
|
7237
7230
|
}
|
|
7238
7231
|
function Wl(e) {
|
|
7239
|
-
return
|
|
7232
|
+
return Kl(e && e.line) + ":" + Kl(e && e.column);
|
|
7240
7233
|
}
|
|
7241
7234
|
function Gl(e) {
|
|
7235
|
+
return Wl(e && e.start) + "-" + Wl(e && e.end);
|
|
7236
|
+
}
|
|
7237
|
+
function Kl(e) {
|
|
7242
7238
|
return e && typeof e == "number" ? e : 1;
|
|
7243
7239
|
}
|
|
7244
7240
|
//#endregion
|
|
7245
7241
|
//#region node_modules/vfile-message/lib/index.js
|
|
7246
|
-
var
|
|
7242
|
+
var K = class extends Error {
|
|
7247
7243
|
constructor(e, t, n) {
|
|
7248
7244
|
super(), typeof t == "string" && (n = t, t = void 0);
|
|
7249
7245
|
let r = "", i = {}, a = !1;
|
|
@@ -7259,29 +7255,29 @@ var q = class extends Error {
|
|
|
7259
7255
|
e && (i.place = e.position);
|
|
7260
7256
|
}
|
|
7261
7257
|
let o = i.place && "start" in i.place ? i.place.start : i.place;
|
|
7262
|
-
this.ancestors = i.ancestors || void 0, this.cause = i.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file = "", this.message = r, this.line = o ? o.line : void 0, this.name =
|
|
7258
|
+
this.ancestors = i.ancestors || void 0, this.cause = i.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file = "", this.message = r, this.line = o ? o.line : void 0, this.name = Ul(i.place) || "1:1", this.place = i.place || void 0, this.reason = this.message, this.ruleId = i.ruleId || void 0, this.source = i.source || void 0, this.stack = a && i.cause && typeof i.cause.stack == "string" ? i.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
|
|
7263
7259
|
}
|
|
7264
7260
|
};
|
|
7265
|
-
|
|
7261
|
+
K.prototype.file = "", K.prototype.name = "", K.prototype.reason = "", K.prototype.message = "", K.prototype.stack = "", K.prototype.column = void 0, K.prototype.line = void 0, K.prototype.ancestors = void 0, K.prototype.cause = void 0, K.prototype.fatal = void 0, K.prototype.place = void 0, K.prototype.ruleId = void 0, K.prototype.source = void 0;
|
|
7266
7262
|
//#endregion
|
|
7267
7263
|
//#region node_modules/hast-util-to-jsx-runtime/lib/index.js
|
|
7268
|
-
var
|
|
7264
|
+
var ql = /* @__PURE__ */ O(Rl(), 1), Jl = {}.hasOwnProperty, Yl = /* @__PURE__ */ new Map(), Xl = /[A-Z]/g, Zl = new Set([
|
|
7269
7265
|
"table",
|
|
7270
7266
|
"tbody",
|
|
7271
7267
|
"thead",
|
|
7272
7268
|
"tfoot",
|
|
7273
7269
|
"tr"
|
|
7274
|
-
]),
|
|
7275
|
-
function
|
|
7270
|
+
]), Ql = new Set(["td", "th"]), $l = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
7271
|
+
function eu(e, t) {
|
|
7276
7272
|
if (!t || t.Fragment === void 0) throw TypeError("Expected `Fragment` in options");
|
|
7277
7273
|
let n = t.filePath || void 0, r;
|
|
7278
7274
|
if (t.development) {
|
|
7279
7275
|
if (typeof t.jsxDEV != "function") throw TypeError("Expected `jsxDEV` in options when `development: true`");
|
|
7280
|
-
r =
|
|
7276
|
+
r = du(n, t.jsxDEV);
|
|
7281
7277
|
} else {
|
|
7282
7278
|
if (typeof t.jsx != "function") throw TypeError("Expected `jsx` in production options");
|
|
7283
7279
|
if (typeof t.jsxs != "function") throw TypeError("Expected `jsxs` in production options");
|
|
7284
|
-
r =
|
|
7280
|
+
r = uu(n, t.jsx, t.jsxs);
|
|
7285
7281
|
}
|
|
7286
7282
|
let i = {
|
|
7287
7283
|
Fragment: t.Fragment,
|
|
@@ -7294,72 +7290,72 @@ function $l(e, t) {
|
|
|
7294
7290
|
ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
|
|
7295
7291
|
passKeys: t.passKeys !== !1,
|
|
7296
7292
|
passNode: t.passNode || !1,
|
|
7297
|
-
schema: t.space === "svg" ?
|
|
7293
|
+
schema: t.space === "svg" ? Nl : Ml,
|
|
7298
7294
|
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
|
7299
7295
|
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
|
7300
|
-
}, a =
|
|
7296
|
+
}, a = tu(i, e, void 0);
|
|
7301
7297
|
return a && typeof a != "string" ? a : i.create(e, i.Fragment, { children: a || void 0 }, void 0);
|
|
7302
7298
|
}
|
|
7303
|
-
function eu(e, t, n) {
|
|
7304
|
-
if (t.type === "element") return tu(e, t, n);
|
|
7305
|
-
if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression") return nu(e, t);
|
|
7306
|
-
if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement") return iu(e, t, n);
|
|
7307
|
-
if (t.type === "mdxjsEsm") return ru(e, t);
|
|
7308
|
-
if (t.type === "root") return au(e, t, n);
|
|
7309
|
-
if (t.type === "text") return ou(e, t);
|
|
7310
|
-
}
|
|
7311
7299
|
function tu(e, t, n) {
|
|
7300
|
+
if (t.type === "element") return nu(e, t, n);
|
|
7301
|
+
if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression") return ru(e, t);
|
|
7302
|
+
if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement") return au(e, t, n);
|
|
7303
|
+
if (t.type === "mdxjsEsm") return iu(e, t);
|
|
7304
|
+
if (t.type === "root") return ou(e, t, n);
|
|
7305
|
+
if (t.type === "text") return su(e, t);
|
|
7306
|
+
}
|
|
7307
|
+
function nu(e, t, n) {
|
|
7312
7308
|
let r = e.schema, i = r;
|
|
7313
|
-
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i =
|
|
7314
|
-
let a =
|
|
7315
|
-
return
|
|
7309
|
+
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Nl, e.schema = i), e.ancestors.push(t);
|
|
7310
|
+
let a = _u(e, t.tagName, !1), o = fu(e, t), s = mu(e, t);
|
|
7311
|
+
return Zl.has(t.tagName) && (s = s.filter(function(e) {
|
|
7316
7312
|
return typeof e == "string" ? !nl(e) : !0;
|
|
7317
|
-
})),
|
|
7313
|
+
})), cu(e, o, a, t), lu(o, s), e.ancestors.pop(), e.schema = r, e.create(t, a, o, n);
|
|
7318
7314
|
}
|
|
7319
|
-
function
|
|
7315
|
+
function ru(e, t) {
|
|
7320
7316
|
if (t.data && t.data.estree && e.evaluater) {
|
|
7321
7317
|
let n = t.data.estree.body[0];
|
|
7322
7318
|
return n.type, e.evaluater.evaluateExpression(n.expression);
|
|
7323
7319
|
}
|
|
7324
|
-
|
|
7320
|
+
vu(e, t.position);
|
|
7325
7321
|
}
|
|
7326
|
-
function
|
|
7322
|
+
function iu(e, t) {
|
|
7327
7323
|
if (t.data && t.data.estree && e.evaluater) return e.evaluater.evaluateProgram(t.data.estree);
|
|
7328
|
-
|
|
7324
|
+
vu(e, t.position);
|
|
7329
7325
|
}
|
|
7330
|
-
function
|
|
7326
|
+
function au(e, t, n) {
|
|
7331
7327
|
let r = e.schema, i = r;
|
|
7332
|
-
t.name === "svg" && r.space === "html" && (i =
|
|
7333
|
-
let a = t.name === null ? e.Fragment :
|
|
7334
|
-
return
|
|
7328
|
+
t.name === "svg" && r.space === "html" && (i = Nl, e.schema = i), e.ancestors.push(t);
|
|
7329
|
+
let a = t.name === null ? e.Fragment : _u(e, t.name, !0), o = pu(e, t), s = mu(e, t);
|
|
7330
|
+
return cu(e, o, a, t), lu(o, s), e.ancestors.pop(), e.schema = r, e.create(t, a, o, n);
|
|
7335
7331
|
}
|
|
7336
|
-
function
|
|
7332
|
+
function ou(e, t, n) {
|
|
7337
7333
|
let r = {};
|
|
7338
|
-
return
|
|
7334
|
+
return lu(r, mu(e, t)), e.create(t, e.Fragment, r, n);
|
|
7339
7335
|
}
|
|
7340
|
-
function
|
|
7336
|
+
function su(e, t) {
|
|
7341
7337
|
return t.value;
|
|
7342
7338
|
}
|
|
7343
|
-
function
|
|
7339
|
+
function cu(e, t, n, r) {
|
|
7344
7340
|
typeof n != "string" && n !== e.Fragment && e.passNode && (t.node = r);
|
|
7345
7341
|
}
|
|
7346
|
-
function
|
|
7342
|
+
function lu(e, t) {
|
|
7347
7343
|
if (t.length > 0) {
|
|
7348
7344
|
let n = t.length > 1 ? t : t[0];
|
|
7349
7345
|
n && (e.children = n);
|
|
7350
7346
|
}
|
|
7351
7347
|
}
|
|
7352
|
-
function
|
|
7348
|
+
function uu(e, t, n) {
|
|
7353
7349
|
return r;
|
|
7354
7350
|
function r(e, r, i, a) {
|
|
7355
7351
|
let o = Array.isArray(i.children) ? n : t;
|
|
7356
7352
|
return a ? o(r, i, a) : o(r, i);
|
|
7357
7353
|
}
|
|
7358
7354
|
}
|
|
7359
|
-
function
|
|
7355
|
+
function du(e, t) {
|
|
7360
7356
|
return n;
|
|
7361
7357
|
function n(n, r, i, a) {
|
|
7362
|
-
let o = Array.isArray(i.children), s =
|
|
7358
|
+
let o = Array.isArray(i.children), s = Bl(n);
|
|
7363
7359
|
return t(r, i, a, o, {
|
|
7364
7360
|
columnNumber: s ? s.column - 1 : void 0,
|
|
7365
7361
|
fileName: e,
|
|
@@ -7367,13 +7363,13 @@ function uu(e, t) {
|
|
|
7367
7363
|
}, void 0);
|
|
7368
7364
|
}
|
|
7369
7365
|
}
|
|
7370
|
-
function
|
|
7366
|
+
function fu(e, t) {
|
|
7371
7367
|
let n = {}, r, i;
|
|
7372
|
-
for (i in t.properties) if (i !== "children" &&
|
|
7373
|
-
let a =
|
|
7368
|
+
for (i in t.properties) if (i !== "children" && Jl.call(t.properties, i)) {
|
|
7369
|
+
let a = hu(e, i, t.properties[i]);
|
|
7374
7370
|
if (a) {
|
|
7375
7371
|
let [i, o] = a;
|
|
7376
|
-
e.tableCellAlignToStyle && i === "align" && typeof o == "string" &&
|
|
7372
|
+
e.tableCellAlignToStyle && i === "align" && typeof o == "string" && Ql.has(t.tagName) ? r = o : n[i] = o;
|
|
7377
7373
|
}
|
|
7378
7374
|
}
|
|
7379
7375
|
if (r) {
|
|
@@ -7382,7 +7378,7 @@ function du(e, t) {
|
|
|
7382
7378
|
}
|
|
7383
7379
|
return n;
|
|
7384
7380
|
}
|
|
7385
|
-
function
|
|
7381
|
+
function pu(e, t) {
|
|
7386
7382
|
let n = {};
|
|
7387
7383
|
for (let r of t.attributes) if (r.type === "mdxJsxExpressionAttribute") if (r.data && r.data.estree && e.evaluater) {
|
|
7388
7384
|
let t = r.data.estree.body[0];
|
|
@@ -7391,20 +7387,20 @@ function fu(e, t) {
|
|
|
7391
7387
|
i.type;
|
|
7392
7388
|
let a = i.properties[0];
|
|
7393
7389
|
a.type, Object.assign(n, e.evaluater.evaluateExpression(a.argument));
|
|
7394
|
-
} else
|
|
7390
|
+
} else vu(e, t.position);
|
|
7395
7391
|
else {
|
|
7396
7392
|
let i = r.name, a;
|
|
7397
7393
|
if (r.value && typeof r.value == "object") if (r.value.data && r.value.data.estree && e.evaluater) {
|
|
7398
7394
|
let t = r.value.data.estree.body[0];
|
|
7399
7395
|
t.type, a = e.evaluater.evaluateExpression(t.expression);
|
|
7400
|
-
} else
|
|
7396
|
+
} else vu(e, t.position);
|
|
7401
7397
|
else a = r.value === null ? !0 : r.value;
|
|
7402
7398
|
n[i] = a;
|
|
7403
7399
|
}
|
|
7404
7400
|
return n;
|
|
7405
7401
|
}
|
|
7406
|
-
function
|
|
7407
|
-
let n = [], r = -1, i = e.passKeys ? /* @__PURE__ */ new Map() :
|
|
7402
|
+
function mu(e, t) {
|
|
7403
|
+
let n = [], r = -1, i = e.passKeys ? /* @__PURE__ */ new Map() : Yl;
|
|
7408
7404
|
for (; ++r < t.children.length;) {
|
|
7409
7405
|
let a = t.children[r], o;
|
|
7410
7406
|
if (e.passKeys) {
|
|
@@ -7414,36 +7410,36 @@ function pu(e, t) {
|
|
|
7414
7410
|
o = e + "-" + t, i.set(e, t + 1);
|
|
7415
7411
|
}
|
|
7416
7412
|
}
|
|
7417
|
-
let s =
|
|
7413
|
+
let s = tu(e, a, o);
|
|
7418
7414
|
s !== void 0 && n.push(s);
|
|
7419
7415
|
}
|
|
7420
7416
|
return n;
|
|
7421
7417
|
}
|
|
7422
|
-
function
|
|
7423
|
-
let r =
|
|
7418
|
+
function hu(e, t, n) {
|
|
7419
|
+
let r = kl(e.schema, t);
|
|
7424
7420
|
if (!(n == null || typeof n == "number" && Number.isNaN(n))) {
|
|
7425
|
-
if (Array.isArray(n) && (n = r.commaSeparated ? Xc(n) :
|
|
7426
|
-
let t = typeof n == "object" ? n :
|
|
7427
|
-
return e.stylePropertyNameCase === "css" && (t =
|
|
7421
|
+
if (Array.isArray(n) && (n = r.commaSeparated ? Xc(n) : Pl(n)), r.property === "style") {
|
|
7422
|
+
let t = typeof n == "object" ? n : gu(e, String(n));
|
|
7423
|
+
return e.stylePropertyNameCase === "css" && (t = yu(t)), ["style", t];
|
|
7428
7424
|
}
|
|
7429
|
-
return [e.elementAttributeNameCase === "react" && r.space ?
|
|
7425
|
+
return [e.elementAttributeNameCase === "react" && r.space ? Tl[r.property] || r.property : r.attribute, n];
|
|
7430
7426
|
}
|
|
7431
7427
|
}
|
|
7432
|
-
function
|
|
7428
|
+
function gu(e, t) {
|
|
7433
7429
|
try {
|
|
7434
|
-
return (0,
|
|
7430
|
+
return (0, ql.default)(t, { reactCompat: !0 });
|
|
7435
7431
|
} catch (t) {
|
|
7436
7432
|
if (e.ignoreInvalidStyle) return {};
|
|
7437
|
-
let n = t, r = new
|
|
7433
|
+
let n = t, r = new K("Cannot parse `style` attribute", {
|
|
7438
7434
|
ancestors: e.ancestors,
|
|
7439
7435
|
cause: n,
|
|
7440
7436
|
ruleId: "style",
|
|
7441
7437
|
source: "hast-util-to-jsx-runtime"
|
|
7442
7438
|
});
|
|
7443
|
-
throw r.file = e.filePath || void 0, r.url =
|
|
7439
|
+
throw r.file = e.filePath || void 0, r.url = $l + "#cannot-parse-style-attribute", r;
|
|
7444
7440
|
}
|
|
7445
7441
|
}
|
|
7446
|
-
function
|
|
7442
|
+
function _u(e, t, n) {
|
|
7447
7443
|
let r;
|
|
7448
7444
|
if (!n) r = {
|
|
7449
7445
|
type: "Literal",
|
|
@@ -7477,35 +7473,35 @@ function gu(e, t, n) {
|
|
|
7477
7473
|
};
|
|
7478
7474
|
if (r.type === "Literal") {
|
|
7479
7475
|
let t = r.value;
|
|
7480
|
-
return
|
|
7476
|
+
return Jl.call(e.components, t) ? e.components[t] : t;
|
|
7481
7477
|
}
|
|
7482
7478
|
if (e.evaluater) return e.evaluater.evaluateExpression(r);
|
|
7483
|
-
|
|
7479
|
+
vu(e);
|
|
7484
7480
|
}
|
|
7485
|
-
function
|
|
7486
|
-
let n = new
|
|
7481
|
+
function vu(e, t) {
|
|
7482
|
+
let n = new K("Cannot handle MDX estrees without `createEvaluater`", {
|
|
7487
7483
|
ancestors: e.ancestors,
|
|
7488
7484
|
place: t,
|
|
7489
7485
|
ruleId: "mdx-estree",
|
|
7490
7486
|
source: "hast-util-to-jsx-runtime"
|
|
7491
7487
|
});
|
|
7492
|
-
throw n.file = e.filePath || void 0, n.url =
|
|
7488
|
+
throw n.file = e.filePath || void 0, n.url = $l + "#cannot-handle-mdx-estrees-without-createevaluater", n;
|
|
7493
7489
|
}
|
|
7494
|
-
function
|
|
7490
|
+
function yu(e) {
|
|
7495
7491
|
let t = {}, n;
|
|
7496
|
-
for (n in e)
|
|
7492
|
+
for (n in e) Jl.call(e, n) && (t[bu(n)] = e[n]);
|
|
7497
7493
|
return t;
|
|
7498
7494
|
}
|
|
7499
|
-
function
|
|
7500
|
-
let t = e.replace(
|
|
7495
|
+
function bu(e) {
|
|
7496
|
+
let t = e.replace(Xl, xu);
|
|
7501
7497
|
return t.slice(0, 3) === "ms-" && (t = "-" + t), t;
|
|
7502
7498
|
}
|
|
7503
|
-
function
|
|
7499
|
+
function xu(e) {
|
|
7504
7500
|
return "-" + e.toLowerCase();
|
|
7505
7501
|
}
|
|
7506
7502
|
//#endregion
|
|
7507
7503
|
//#region node_modules/html-url-attributes/lib/index.js
|
|
7508
|
-
var
|
|
7504
|
+
var Su = {
|
|
7509
7505
|
action: ["form"],
|
|
7510
7506
|
cite: [
|
|
7511
7507
|
"blockquote",
|
|
@@ -7537,84 +7533,84 @@ var xu = {
|
|
|
7537
7533
|
"track",
|
|
7538
7534
|
"video"
|
|
7539
7535
|
]
|
|
7540
|
-
},
|
|
7541
|
-
function
|
|
7542
|
-
let n = t ||
|
|
7543
|
-
return
|
|
7536
|
+
}, Cu = {};
|
|
7537
|
+
function wu(e, t) {
|
|
7538
|
+
let n = t || Cu;
|
|
7539
|
+
return Tu(e, typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, typeof n.includeHtml == "boolean" ? n.includeHtml : !0);
|
|
7544
7540
|
}
|
|
7545
|
-
function
|
|
7546
|
-
if (
|
|
7541
|
+
function Tu(e, t, n) {
|
|
7542
|
+
if (Du(e)) {
|
|
7547
7543
|
if ("value" in e) return e.type === "html" && !n ? "" : e.value;
|
|
7548
7544
|
if (t && "alt" in e && e.alt) return e.alt;
|
|
7549
|
-
if ("children" in e) return
|
|
7545
|
+
if ("children" in e) return Eu(e.children, t, n);
|
|
7550
7546
|
}
|
|
7551
|
-
return Array.isArray(e) ?
|
|
7547
|
+
return Array.isArray(e) ? Eu(e, t, n) : "";
|
|
7552
7548
|
}
|
|
7553
|
-
function
|
|
7549
|
+
function Eu(e, t, n) {
|
|
7554
7550
|
let r = [], i = -1;
|
|
7555
|
-
for (; ++i < e.length;) r[i] =
|
|
7551
|
+
for (; ++i < e.length;) r[i] = Tu(e[i], t, n);
|
|
7556
7552
|
return r.join("");
|
|
7557
7553
|
}
|
|
7558
|
-
function
|
|
7554
|
+
function Du(e) {
|
|
7559
7555
|
return !!(e && typeof e == "object");
|
|
7560
7556
|
}
|
|
7561
7557
|
//#endregion
|
|
7562
7558
|
//#region node_modules/decode-named-character-reference/index.dom.js
|
|
7563
|
-
var
|
|
7564
|
-
function
|
|
7559
|
+
var Ou = document.createElement("i");
|
|
7560
|
+
function ku(e) {
|
|
7565
7561
|
let t = "&" + e + ";";
|
|
7566
|
-
|
|
7567
|
-
let n =
|
|
7562
|
+
Ou.innerHTML = t;
|
|
7563
|
+
let n = Ou.textContent;
|
|
7568
7564
|
return n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n;
|
|
7569
7565
|
}
|
|
7570
7566
|
//#endregion
|
|
7571
7567
|
//#region node_modules/micromark-util-chunked/index.js
|
|
7572
|
-
function
|
|
7568
|
+
function Au(e, t, n, r) {
|
|
7573
7569
|
let i = e.length, a = 0, o;
|
|
7574
7570
|
if (t = t < 0 ? -t > i ? 0 : i + t : t > i ? i : t, n = n > 0 ? n : 0, r.length < 1e4) o = Array.from(r), o.unshift(t, n), e.splice(...o);
|
|
7575
7571
|
else for (n && e.splice(t, n); a < r.length;) o = r.slice(a, a + 1e4), o.unshift(t, 0), e.splice(...o), a += 1e4, t += 1e4;
|
|
7576
7572
|
}
|
|
7577
|
-
function
|
|
7578
|
-
return e.length > 0 ? (
|
|
7573
|
+
function ju(e, t) {
|
|
7574
|
+
return e.length > 0 ? (Au(e, e.length, 0, t), e) : t;
|
|
7579
7575
|
}
|
|
7580
7576
|
//#endregion
|
|
7581
7577
|
//#region node_modules/micromark-util-combine-extensions/index.js
|
|
7582
|
-
var
|
|
7583
|
-
function
|
|
7578
|
+
var Mu = {}.hasOwnProperty;
|
|
7579
|
+
function Nu(e) {
|
|
7584
7580
|
let t = {}, n = -1;
|
|
7585
|
-
for (; ++n < e.length;)
|
|
7581
|
+
for (; ++n < e.length;) Pu(t, e[n]);
|
|
7586
7582
|
return t;
|
|
7587
7583
|
}
|
|
7588
|
-
function
|
|
7584
|
+
function Pu(e, t) {
|
|
7589
7585
|
let n;
|
|
7590
7586
|
for (n in t) {
|
|
7591
|
-
let r = (
|
|
7587
|
+
let r = (Mu.call(e, n) ? e[n] : void 0) || (e[n] = {}), i = t[n], a;
|
|
7592
7588
|
if (i) for (a in i) {
|
|
7593
|
-
|
|
7589
|
+
Mu.call(r, a) || (r[a] = []);
|
|
7594
7590
|
let e = i[a];
|
|
7595
|
-
|
|
7591
|
+
Fu(r[a], Array.isArray(e) ? e : e ? [e] : []);
|
|
7596
7592
|
}
|
|
7597
7593
|
}
|
|
7598
7594
|
}
|
|
7599
|
-
function
|
|
7595
|
+
function Fu(e, t) {
|
|
7600
7596
|
let n = -1, r = [];
|
|
7601
7597
|
for (; ++n < t.length;) (t[n].add === "after" ? e : r).push(t[n]);
|
|
7602
|
-
|
|
7598
|
+
Au(e, 0, 0, r);
|
|
7603
7599
|
}
|
|
7604
7600
|
//#endregion
|
|
7605
7601
|
//#region node_modules/micromark-util-decode-numeric-character-reference/index.js
|
|
7606
|
-
function
|
|
7602
|
+
function Iu(e, t) {
|
|
7607
7603
|
let n = Number.parseInt(e, t);
|
|
7608
7604
|
return n < 9 || n === 11 || n > 13 && n < 32 || n > 126 && n < 160 || n > 55295 && n < 57344 || n > 64975 && n < 65008 || (n & 65535) == 65535 || (n & 65535) == 65534 || n > 1114111 ? "�" : String.fromCodePoint(n);
|
|
7609
7605
|
}
|
|
7610
7606
|
//#endregion
|
|
7611
7607
|
//#region node_modules/micromark-util-normalize-identifier/index.js
|
|
7612
|
-
function
|
|
7608
|
+
function Lu(e) {
|
|
7613
7609
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
7614
7610
|
}
|
|
7615
7611
|
//#endregion
|
|
7616
7612
|
//#region node_modules/micromark-util-character/index.js
|
|
7617
|
-
var
|
|
7613
|
+
var q = Gu(/[A-Za-z]/), J = Gu(/[\dA-Za-z]/), Ru = Gu(/[#-'*+\--9=?A-Z^-~]/);
|
|
7618
7614
|
function zu(e) {
|
|
7619
7615
|
return e !== null && (e < 32 || e === 127);
|
|
7620
7616
|
}
|
|
@@ -7718,7 +7714,7 @@ function Zu(e) {
|
|
|
7718
7714
|
_(r);
|
|
7719
7715
|
let s = n;
|
|
7720
7716
|
for (; s < t.events.length;) t.events[s][1].end = { ...o }, s++;
|
|
7721
|
-
return
|
|
7717
|
+
return Au(t.events, a + 1, 0, t.events.slice(n)), t.events.length = s, l(e);
|
|
7722
7718
|
}
|
|
7723
7719
|
return s(e);
|
|
7724
7720
|
}
|
|
@@ -7774,7 +7770,7 @@ function Zu(e) {
|
|
|
7774
7770
|
s = !0;
|
|
7775
7771
|
}
|
|
7776
7772
|
for (_(r), e = n; e < t.events.length;) t.events[e][1].end = { ...c }, e++;
|
|
7777
|
-
|
|
7773
|
+
Au(t.events, a + 1, 0, t.events.slice(n)), t.events.length = e;
|
|
7778
7774
|
}
|
|
7779
7775
|
}
|
|
7780
7776
|
function _(r) {
|
|
@@ -7838,7 +7834,7 @@ function nd(e, t) {
|
|
|
7838
7834
|
type: c > 1 ? "strong" : "emphasis",
|
|
7839
7835
|
start: { ...o.start },
|
|
7840
7836
|
end: { ...s.end }
|
|
7841
|
-
}, e[r][1].end = { ...o.start }, e[n][1].start = { ...s.end }, l = [], e[r][1].end.offset - e[r][1].start.offset && (l =
|
|
7837
|
+
}, e[r][1].end = { ...o.start }, e[n][1].start = { ...s.end }, l = [], e[r][1].end.offset - e[r][1].start.offset && (l = ju(l, [[
|
|
7842
7838
|
"enter",
|
|
7843
7839
|
e[r][1],
|
|
7844
7840
|
t
|
|
@@ -7846,7 +7842,7 @@ function nd(e, t) {
|
|
|
7846
7842
|
"exit",
|
|
7847
7843
|
e[r][1],
|
|
7848
7844
|
t
|
|
7849
|
-
]])), l =
|
|
7845
|
+
]])), l = ju(l, [
|
|
7850
7846
|
[
|
|
7851
7847
|
"enter",
|
|
7852
7848
|
i,
|
|
@@ -7867,7 +7863,7 @@ function nd(e, t) {
|
|
|
7867
7863
|
a,
|
|
7868
7864
|
t
|
|
7869
7865
|
]
|
|
7870
|
-
]), l =
|
|
7866
|
+
]), l = ju(l, ed(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), l = ju(l, [
|
|
7871
7867
|
[
|
|
7872
7868
|
"exit",
|
|
7873
7869
|
a,
|
|
@@ -7888,7 +7884,7 @@ function nd(e, t) {
|
|
|
7888
7884
|
i,
|
|
7889
7885
|
t
|
|
7890
7886
|
]
|
|
7891
|
-
]), e[n][1].end.offset - e[n][1].start.offset ? (u = 2, l =
|
|
7887
|
+
]), e[n][1].end.offset - e[n][1].start.offset ? (u = 2, l = ju(l, [[
|
|
7892
7888
|
"enter",
|
|
7893
7889
|
e[n][1],
|
|
7894
7890
|
t
|
|
@@ -7896,7 +7892,7 @@ function nd(e, t) {
|
|
|
7896
7892
|
"exit",
|
|
7897
7893
|
e[n][1],
|
|
7898
7894
|
t
|
|
7899
|
-
]])) : u = 0,
|
|
7895
|
+
]])) : u = 0, Au(e, r - 1, n - r + 3, l), n = r + l.length - u - 2;
|
|
7900
7896
|
break;
|
|
7901
7897
|
}
|
|
7902
7898
|
}
|
|
@@ -7931,7 +7927,7 @@ function od(e, t, n) {
|
|
|
7931
7927
|
return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(t), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), a;
|
|
7932
7928
|
}
|
|
7933
7929
|
function a(t) {
|
|
7934
|
-
return
|
|
7930
|
+
return q(t) ? (e.consume(t), o) : t === 64 ? n(t) : l(t);
|
|
7935
7931
|
}
|
|
7936
7932
|
function o(e) {
|
|
7937
7933
|
return e === 43 || e === 45 || e === 46 || J(e) ? (r = 1, s(e)) : l(e);
|
|
@@ -8045,7 +8041,7 @@ function gd(e, t, n) {
|
|
|
8045
8041
|
function u(s) {
|
|
8046
8042
|
if (s === 59 && i) {
|
|
8047
8043
|
let i = e.exit("characterReferenceValue");
|
|
8048
|
-
return o === J && !
|
|
8044
|
+
return o === J && !ku(r.sliceSerialize(i)) ? n(s) : (e.enter("characterReferenceMarker"), e.consume(s), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
|
|
8049
8045
|
}
|
|
8050
8046
|
return o(s) && i++ < a ? (e.consume(s), u) : n(s);
|
|
8051
8047
|
}
|
|
@@ -8287,7 +8283,7 @@ function jd(e) {
|
|
|
8287
8283
|
i && (r[1].end = { ...u.get(i)[1].start }, s = u.slice(i, n), s.unshift(r), u.splice(i, n - i + 1, s));
|
|
8288
8284
|
}
|
|
8289
8285
|
}
|
|
8290
|
-
return
|
|
8286
|
+
return Au(e, 0, Infinity, u.slice(0)), !l;
|
|
8291
8287
|
}
|
|
8292
8288
|
function Md(e, t) {
|
|
8293
8289
|
let n = e.get(t)[1], r = e.get(t)[2], i = t - 1, a = [], o = n._tokenizer;
|
|
@@ -8439,7 +8435,7 @@ function Wd(e, t, n) {
|
|
|
8439
8435
|
return zd.call(r, e, s, n, "definitionLabel", "definitionLabelMarker", "definitionLabelString")(t);
|
|
8440
8436
|
}
|
|
8441
8437
|
function s(t) {
|
|
8442
|
-
return i =
|
|
8438
|
+
return i = Lu(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), t === 58 ? (e.enter("definitionMarker"), e.consume(t), e.exit("definitionMarker"), c) : n(t);
|
|
8443
8439
|
}
|
|
8444
8440
|
function c(t) {
|
|
8445
8441
|
return X(t) ? Vd(e, l)(t) : l(t);
|
|
@@ -8505,7 +8501,7 @@ function Yd(e, t) {
|
|
|
8505
8501
|
start: e[r][1].start,
|
|
8506
8502
|
end: e[n][1].end,
|
|
8507
8503
|
contentType: "text"
|
|
8508
|
-
},
|
|
8504
|
+
}, Au(e, r, n - r + 1, [
|
|
8509
8505
|
[
|
|
8510
8506
|
"enter",
|
|
8511
8507
|
i,
|
|
@@ -8584,10 +8580,10 @@ function rf(e, t, n) {
|
|
|
8584
8580
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(t), d;
|
|
8585
8581
|
}
|
|
8586
8582
|
function d(s) {
|
|
8587
|
-
return s === 33 ? (e.consume(s), f) : s === 47 ? (e.consume(s), a = !0, h) : s === 63 ? (e.consume(s), i = 3, r.interrupt ? t : oe) :
|
|
8583
|
+
return s === 33 ? (e.consume(s), f) : s === 47 ? (e.consume(s), a = !0, h) : s === 63 ? (e.consume(s), i = 3, r.interrupt ? t : oe) : q(s) ? (e.consume(s), o = String.fromCharCode(s), g) : n(s);
|
|
8588
8584
|
}
|
|
8589
8585
|
function f(a) {
|
|
8590
|
-
return a === 45 ? (e.consume(a), i = 2, p) : a === 91 ? (e.consume(a), i = 5, s = 0, m) :
|
|
8586
|
+
return a === 45 ? (e.consume(a), i = 2, p) : a === 91 ? (e.consume(a), i = 5, s = 0, m) : q(a) ? (e.consume(a), i = 4, r.interrupt ? t : oe) : n(a);
|
|
8591
8587
|
}
|
|
8592
8588
|
function p(i) {
|
|
8593
8589
|
return i === 45 ? (e.consume(i), r.interrupt ? t : oe) : n(i);
|
|
@@ -8596,7 +8592,7 @@ function rf(e, t, n) {
|
|
|
8596
8592
|
return i === "CDATA[".charCodeAt(s++) ? (e.consume(i), s === 6 ? r.interrupt ? t : O : m) : n(i);
|
|
8597
8593
|
}
|
|
8598
8594
|
function h(t) {
|
|
8599
|
-
return
|
|
8595
|
+
return q(t) ? (e.consume(t), o = String.fromCharCode(t), g) : n(t);
|
|
8600
8596
|
}
|
|
8601
8597
|
function g(s) {
|
|
8602
8598
|
if (s === null || s === 47 || s === 62 || X(s)) {
|
|
@@ -8612,7 +8608,7 @@ function rf(e, t, n) {
|
|
|
8612
8608
|
return Z(t) ? (e.consume(t), v) : E(t);
|
|
8613
8609
|
}
|
|
8614
8610
|
function y(t) {
|
|
8615
|
-
return t === 47 ? (e.consume(t), E) : t === 58 || t === 95 ||
|
|
8611
|
+
return t === 47 ? (e.consume(t), E) : t === 58 || t === 95 || q(t) ? (e.consume(t), b) : Z(t) ? (e.consume(t), y) : E(t);
|
|
8616
8612
|
}
|
|
8617
8613
|
function b(t) {
|
|
8618
8614
|
return t === 45 || t === 46 || t === 58 || t === 95 || J(t) ? (e.consume(t), b) : x(t);
|
|
@@ -8661,7 +8657,7 @@ function rf(e, t, n) {
|
|
|
8661
8657
|
let n = o.toLowerCase();
|
|
8662
8658
|
return Qd.includes(n) ? (e.consume(t), se) : O(t);
|
|
8663
8659
|
}
|
|
8664
|
-
return
|
|
8660
|
+
return q(t) && o.length < 8 ? (e.consume(t), o += String.fromCharCode(t), ie) : O(t);
|
|
8665
8661
|
}
|
|
8666
8662
|
function ae(t) {
|
|
8667
8663
|
return t === 93 ? (e.consume(t), oe) : O(t);
|
|
@@ -8705,10 +8701,10 @@ function cf(e, t, n) {
|
|
|
8705
8701
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(t), c;
|
|
8706
8702
|
}
|
|
8707
8703
|
function c(t) {
|
|
8708
|
-
return t === 33 ? (e.consume(t), l) : t === 47 ? (e.consume(t), x) : t === 63 ? (e.consume(t), y) :
|
|
8704
|
+
return t === 33 ? (e.consume(t), l) : t === 47 ? (e.consume(t), x) : t === 63 ? (e.consume(t), y) : q(t) ? (e.consume(t), w) : n(t);
|
|
8709
8705
|
}
|
|
8710
8706
|
function l(t) {
|
|
8711
|
-
return t === 45 ? (e.consume(t), u) : t === 91 ? (e.consume(t), a = 0, m) :
|
|
8707
|
+
return t === 45 ? (e.consume(t), u) : t === 91 ? (e.consume(t), a = 0, m) : q(t) ? (e.consume(t), v) : n(t);
|
|
8712
8708
|
}
|
|
8713
8709
|
function u(t) {
|
|
8714
8710
|
return t === 45 ? (e.consume(t), p) : n(t);
|
|
@@ -8744,7 +8740,7 @@ function cf(e, t, n) {
|
|
|
8744
8740
|
return e === 62 ? re(e) : y(e);
|
|
8745
8741
|
}
|
|
8746
8742
|
function x(t) {
|
|
8747
|
-
return
|
|
8743
|
+
return q(t) ? (e.consume(t), S) : n(t);
|
|
8748
8744
|
}
|
|
8749
8745
|
function S(t) {
|
|
8750
8746
|
return t === 45 || J(t) ? (e.consume(t), S) : C(t);
|
|
@@ -8756,7 +8752,7 @@ function cf(e, t, n) {
|
|
|
8756
8752
|
return t === 45 || J(t) ? (e.consume(t), w) : t === 47 || t === 62 || X(t) ? T(t) : n(t);
|
|
8757
8753
|
}
|
|
8758
8754
|
function T(t) {
|
|
8759
|
-
return t === 47 ? (e.consume(t), re) : t === 58 || t === 95 ||
|
|
8755
|
+
return t === 47 ? (e.consume(t), re) : t === 58 || t === 95 || q(t) ? (e.consume(t), E) : Y(t) ? (o = T, k(t)) : Z(t) ? (e.consume(t), T) : re(t);
|
|
8760
8756
|
}
|
|
8761
8757
|
function E(t) {
|
|
8762
8758
|
return t === 45 || t === 46 || t === 58 || t === 95 || J(t) ? (e.consume(t), E) : D(t);
|
|
@@ -8806,7 +8802,7 @@ function pf(e) {
|
|
|
8806
8802
|
r.type = "data", t += e;
|
|
8807
8803
|
}
|
|
8808
8804
|
}
|
|
8809
|
-
return e.length !== n.length &&
|
|
8805
|
+
return e.length !== n.length && Au(e, 0, e.length, n), e;
|
|
8810
8806
|
}
|
|
8811
8807
|
function mf(e, t) {
|
|
8812
8808
|
let n = e.length, r = 0, i, a, o, s;
|
|
@@ -8840,11 +8836,11 @@ function mf(e, t) {
|
|
|
8840
8836
|
"enter",
|
|
8841
8837
|
l,
|
|
8842
8838
|
t
|
|
8843
|
-
]], s =
|
|
8839
|
+
]], s = ju(s, e.slice(a + 1, a + r + 3)), s = ju(s, [[
|
|
8844
8840
|
"enter",
|
|
8845
8841
|
u,
|
|
8846
8842
|
t
|
|
8847
|
-
]]), s =
|
|
8843
|
+
]]), s = ju(s, ed(t.parser.constructs.insideSpan.null, e.slice(a + r + 4, o - 3), t)), s = ju(s, [
|
|
8848
8844
|
[
|
|
8849
8845
|
"exit",
|
|
8850
8846
|
u,
|
|
@@ -8857,11 +8853,11 @@ function mf(e, t) {
|
|
|
8857
8853
|
l,
|
|
8858
8854
|
t
|
|
8859
8855
|
]
|
|
8860
|
-
]), s =
|
|
8856
|
+
]), s = ju(s, e.slice(o + 1)), s = ju(s, [[
|
|
8861
8857
|
"exit",
|
|
8862
8858
|
c,
|
|
8863
8859
|
t
|
|
8864
|
-
]]),
|
|
8860
|
+
]]), Au(e, a, e.length, s), e;
|
|
8865
8861
|
}
|
|
8866
8862
|
function hf(e, t, n) {
|
|
8867
8863
|
let r = this, i = r.events.length, a, o;
|
|
@@ -8871,7 +8867,7 @@ function hf(e, t, n) {
|
|
|
8871
8867
|
}
|
|
8872
8868
|
return s;
|
|
8873
8869
|
function s(t) {
|
|
8874
|
-
return a ? a._inactive ? d(t) : (o = r.parser.defined.includes(
|
|
8870
|
+
return a ? a._inactive ? d(t) : (o = r.parser.defined.includes(Lu(r.sliceSerialize({
|
|
8875
8871
|
start: a.end,
|
|
8876
8872
|
end: r.now()
|
|
8877
8873
|
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(t), e.exit("labelMarker"), e.exit("labelEnd"), c) : n(t);
|
|
@@ -8923,7 +8919,7 @@ function _f(e, t, n) {
|
|
|
8923
8919
|
return zd.call(r, e, a, o, "reference", "referenceMarker", "referenceString")(t);
|
|
8924
8920
|
}
|
|
8925
8921
|
function a(e) {
|
|
8926
|
-
return r.parser.defined.includes(
|
|
8922
|
+
return r.parser.defined.includes(Lu(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? t(e) : n(e);
|
|
8927
8923
|
}
|
|
8928
8924
|
function o(e) {
|
|
8929
8925
|
return n(e);
|
|
@@ -9333,7 +9329,7 @@ function tp(e, t, n) {
|
|
|
9333
9329
|
}, u = t.tokenize.call(l, c);
|
|
9334
9330
|
return t.resolveAll && a.push(t), l;
|
|
9335
9331
|
function d(e) {
|
|
9336
|
-
return o =
|
|
9332
|
+
return o = ju(o, e), g(), o[o.length - 1] === null ? (w(t, 0), l.events = ed(a, l.events, l), l.events) : [];
|
|
9337
9333
|
}
|
|
9338
9334
|
function f(e, t) {
|
|
9339
9335
|
return rp(p(e), t);
|
|
@@ -9420,7 +9416,7 @@ function tp(e, t, n) {
|
|
|
9420
9416
|
}
|
|
9421
9417
|
}
|
|
9422
9418
|
function w(e, t) {
|
|
9423
|
-
e.resolveAll && !a.includes(e) && a.push(e), e.resolve &&
|
|
9419
|
+
e.resolveAll && !a.includes(e) && a.push(e), e.resolve && Au(l.events, t, l.events.length - t, e.resolve(l.events.slice(t), l)), e.resolveTo && (l.events = e.resolveTo(l.events, l));
|
|
9424
9420
|
}
|
|
9425
9421
|
function T() {
|
|
9426
9422
|
let e = m(), t = l.previous, n = l.currentConstruct, i = l.events.length, a = Array.from(s);
|
|
@@ -9480,7 +9476,7 @@ function rp(e, t) {
|
|
|
9480
9476
|
//#region node_modules/micromark/lib/parse.js
|
|
9481
9477
|
function ip(e) {
|
|
9482
9478
|
let t = {
|
|
9483
|
-
constructs:
|
|
9479
|
+
constructs: Nu([Gf, ...(e || {}).extensions || []]),
|
|
9484
9480
|
content: n(qu),
|
|
9485
9481
|
defined: [],
|
|
9486
9482
|
document: n(Yu),
|
|
@@ -9544,9 +9540,9 @@ function up(e, t, n) {
|
|
|
9544
9540
|
if (t) return t;
|
|
9545
9541
|
if (n.charCodeAt(0) === 35) {
|
|
9546
9542
|
let e = n.charCodeAt(1), t = e === 120 || e === 88;
|
|
9547
|
-
return
|
|
9543
|
+
return Iu(n.slice(t ? 2 : 1), t ? 16 : 10);
|
|
9548
9544
|
}
|
|
9549
|
-
return
|
|
9545
|
+
return ku(n) || e;
|
|
9550
9546
|
}
|
|
9551
9547
|
//#endregion
|
|
9552
9548
|
//#region node_modules/mdast-util-from-markdown/lib/index.js
|
|
@@ -9779,14 +9775,14 @@ function pp(e) {
|
|
|
9779
9775
|
function l(e, t) {
|
|
9780
9776
|
let n = this.stack.pop(), r = this.tokenStack.pop();
|
|
9781
9777
|
if (r) r[0].type !== e.type && (t ? t.call(this, e, r[0]) : (r[1] || _p).call(this, e, r[0]));
|
|
9782
|
-
else throw Error("Cannot close `" + e.type + "` (" +
|
|
9778
|
+
else throw Error("Cannot close `" + e.type + "` (" + Ul({
|
|
9783
9779
|
start: e.start,
|
|
9784
9780
|
end: e.end
|
|
9785
9781
|
}) + "): it’s not open");
|
|
9786
9782
|
n.position.end = mp(e.end);
|
|
9787
9783
|
}
|
|
9788
9784
|
function u() {
|
|
9789
|
-
return
|
|
9785
|
+
return wu(this.stack.pop());
|
|
9790
9786
|
}
|
|
9791
9787
|
function d() {
|
|
9792
9788
|
this.data.expectingFirstListItemValue = !0;
|
|
@@ -9818,7 +9814,7 @@ function pp(e) {
|
|
|
9818
9814
|
}
|
|
9819
9815
|
function v(e) {
|
|
9820
9816
|
let t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
9821
|
-
n.label = t, n.identifier =
|
|
9817
|
+
n.label = t, n.identifier = Lu(this.sliceSerialize(e)).toLowerCase();
|
|
9822
9818
|
}
|
|
9823
9819
|
function y() {
|
|
9824
9820
|
let e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
@@ -9895,7 +9891,7 @@ function pp(e) {
|
|
|
9895
9891
|
}
|
|
9896
9892
|
function ie(e) {
|
|
9897
9893
|
let t = this.sliceSerialize(e), n = this.stack[this.stack.length - 2];
|
|
9898
|
-
n.label = lp(t), n.identifier =
|
|
9894
|
+
n.label = lp(t), n.identifier = Lu(t).toLowerCase();
|
|
9899
9895
|
}
|
|
9900
9896
|
function ae() {
|
|
9901
9897
|
let e = this.stack[this.stack.length - 1], t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
@@ -9917,14 +9913,14 @@ function pp(e) {
|
|
|
9917
9913
|
}
|
|
9918
9914
|
function ue(e) {
|
|
9919
9915
|
let t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
9920
|
-
n.label = t, n.identifier =
|
|
9916
|
+
n.label = t, n.identifier = Lu(this.sliceSerialize(e)).toLowerCase(), this.data.referenceType = "full";
|
|
9921
9917
|
}
|
|
9922
9918
|
function de(e) {
|
|
9923
9919
|
this.data.characterReferenceType = e.type;
|
|
9924
9920
|
}
|
|
9925
9921
|
function fe(e) {
|
|
9926
9922
|
let t = this.sliceSerialize(e), n = this.data.characterReferenceType, r;
|
|
9927
|
-
n ? (r =
|
|
9923
|
+
n ? (r = Iu(t, n === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : r = ku(t);
|
|
9928
9924
|
let i = this.stack[this.stack.length - 1];
|
|
9929
9925
|
i.value += r;
|
|
9930
9926
|
}
|
|
@@ -10084,13 +10080,13 @@ function gp(e, t) {
|
|
|
10084
10080
|
}
|
|
10085
10081
|
}
|
|
10086
10082
|
function _p(e, t) {
|
|
10087
|
-
throw Error(e ? "Cannot close `" + e.type + "` (" +
|
|
10083
|
+
throw Error(e ? "Cannot close `" + e.type + "` (" + Ul({
|
|
10088
10084
|
start: e.start,
|
|
10089
10085
|
end: e.end
|
|
10090
|
-
}) + "): a different token (`" + t.type + "`, " +
|
|
10086
|
+
}) + "): a different token (`" + t.type + "`, " + Ul({
|
|
10091
10087
|
start: t.start,
|
|
10092
10088
|
end: t.end
|
|
10093
|
-
}) + ") is open" : "Cannot close document, a token (`" + t.type + "`, " +
|
|
10089
|
+
}) + ") is open" : "Cannot close document, a token (`" + t.type + "`, " + Ul({
|
|
10094
10090
|
start: t.start,
|
|
10095
10091
|
end: t.end
|
|
10096
10092
|
}) + ") is still open");
|
|
@@ -10448,7 +10444,7 @@ function Bp(e, t) {
|
|
|
10448
10444
|
tagName: "tbody",
|
|
10449
10445
|
properties: {},
|
|
10450
10446
|
children: e.wrap(n, !0)
|
|
10451
|
-
}, a =
|
|
10447
|
+
}, a = Bl(t.children[1]), o = zl(t.children[t.children.length - 1]);
|
|
10452
10448
|
a && o && (r.position = {
|
|
10453
10449
|
start: a,
|
|
10454
10450
|
end: o
|
|
@@ -10956,7 +10952,7 @@ function Tm(e, t) {
|
|
|
10956
10952
|
}
|
|
10957
10953
|
}
|
|
10958
10954
|
function Em(e, t) {
|
|
10959
|
-
e.position && (t.position =
|
|
10955
|
+
e.position && (t.position = Hl(e));
|
|
10960
10956
|
}
|
|
10961
10957
|
function Dm(e, t) {
|
|
10962
10958
|
let n = t;
|
|
@@ -11333,7 +11329,7 @@ var Zm = [
|
|
|
11333
11329
|
return r.fatal = void 0, r;
|
|
11334
11330
|
}
|
|
11335
11331
|
message(e, t, n) {
|
|
11336
|
-
let r = new
|
|
11332
|
+
let r = new K(e, t, n);
|
|
11337
11333
|
return this.path && (r.name = this.path + ":" + r.name, r.file = this.path), r.fatal = !1, this.messages.push(r), r;
|
|
11338
11334
|
}
|
|
11339
11335
|
toString(e) {
|
|
@@ -11607,7 +11603,7 @@ function Sh(e) {
|
|
|
11607
11603
|
function Ch(e, t) {
|
|
11608
11604
|
let n = t.allowedElements, r = t.allowElement, i = t.components, a = t.disallowedElements, o = t.skipHtml, s = t.unwrapDisallowed, c = t.urlTransform || wh;
|
|
11609
11605
|
for (let e of yh) Object.hasOwn(t, e.from) && "" + e.from + (e.to ? "use `" + e.to + "` instead" : "remove it") + e.id;
|
|
11610
|
-
return Sm(e, l),
|
|
11606
|
+
return Sm(e, l), eu(e, {
|
|
11611
11607
|
Fragment: h,
|
|
11612
11608
|
components: i,
|
|
11613
11609
|
ignoreInvalidStyle: !0,
|
|
@@ -11623,8 +11619,8 @@ function Ch(e, t) {
|
|
|
11623
11619
|
}, t;
|
|
11624
11620
|
if (e.type === "element") {
|
|
11625
11621
|
let t;
|
|
11626
|
-
for (t in
|
|
11627
|
-
let n = e.properties[t], r =
|
|
11622
|
+
for (t in Su) if (Object.hasOwn(Su, t) && Object.hasOwn(e.properties, t)) {
|
|
11623
|
+
let n = e.properties[t], r = Su[t];
|
|
11628
11624
|
(r === null || r.includes(e.tagName)) && (e.properties[t] = c(String(n || ""), t, e));
|
|
11629
11625
|
}
|
|
11630
11626
|
}
|
|
@@ -11734,12 +11730,12 @@ function Nh(e, t) {
|
|
|
11734
11730
|
for (l--; ++l <= e.length;) {
|
|
11735
11731
|
let t = e.charCodeAt(l);
|
|
11736
11732
|
if (!b(t)) break;
|
|
11737
|
-
y += String.fromCharCode(t), u === "named" && Eh.includes(y) && (_ = y, v =
|
|
11733
|
+
y += String.fromCharCode(t), u === "named" && Eh.includes(y) && (_ = y, v = ku(y));
|
|
11738
11734
|
}
|
|
11739
11735
|
let x = e.charCodeAt(l) === 59;
|
|
11740
11736
|
if (x) {
|
|
11741
11737
|
l++;
|
|
11742
|
-
let e = u === "named" ?
|
|
11738
|
+
let e = u === "named" ? ku(y) : !1;
|
|
11743
11739
|
e && (_ = y, v = e);
|
|
11744
11740
|
}
|
|
11745
11741
|
let S = 1 + l - o, C = "";
|
|
@@ -12319,217 +12315,2172 @@ function Bg() {
|
|
|
12319
12315
|
t.push(zg()), n.push(Xh()), r.push(Zh());
|
|
12320
12316
|
}
|
|
12321
12317
|
//#endregion
|
|
12322
|
-
//#region
|
|
12323
|
-
function Vg(
|
|
12324
|
-
|
|
12325
|
-
|
|
12326
|
-
children: /* @__PURE__ */ g(bh, {
|
|
12327
|
-
remarkPlugins: [Bg, () => (e) => {
|
|
12328
|
-
let t = (e) => {
|
|
12329
|
-
let n = ["grid", "column"].includes(e.name);
|
|
12330
|
-
[
|
|
12331
|
-
"containerDirective",
|
|
12332
|
-
"leafDirective",
|
|
12333
|
-
"textDirective"
|
|
12334
|
-
].includes(e.type) && n && (e.data = e.data || {}, e.data.hName = e.name, e.data.hProperties = e.attributes || {}), e.children && e.children.forEach(t);
|
|
12335
|
-
};
|
|
12336
|
-
t(e);
|
|
12337
|
-
}],
|
|
12338
|
-
components: {
|
|
12339
|
-
h1: ({ children: e }) => /* @__PURE__ */ g("h1", {
|
|
12340
|
-
className: "erica-markdown-h1",
|
|
12341
|
-
children: e
|
|
12342
|
-
}),
|
|
12343
|
-
h2: ({ children: e }) => /* @__PURE__ */ g("h2", {
|
|
12344
|
-
className: "erica-markdown-h2",
|
|
12345
|
-
children: e
|
|
12346
|
-
}),
|
|
12347
|
-
h3: ({ children: e }) => /* @__PURE__ */ g("h3", {
|
|
12348
|
-
className: "erica-markdown-h3",
|
|
12349
|
-
children: e
|
|
12350
|
-
}),
|
|
12351
|
-
p: ({ children: e }) => /* @__PURE__ */ g("p", {
|
|
12352
|
-
className: "erica-markdown-p",
|
|
12353
|
-
children: e
|
|
12354
|
-
}),
|
|
12355
|
-
ul: ({ children: e }) => /* @__PURE__ */ g("ul", {
|
|
12356
|
-
className: "erica-markdown-ul",
|
|
12357
|
-
children: e
|
|
12358
|
-
}),
|
|
12359
|
-
ol: ({ children: e }) => /* @__PURE__ */ g("ol", {
|
|
12360
|
-
className: "erica-markdown-ol",
|
|
12361
|
-
children: e
|
|
12362
|
-
}),
|
|
12363
|
-
li: ({ children: e }) => /* @__PURE__ */ g("li", {
|
|
12364
|
-
className: "erica-markdown-li",
|
|
12365
|
-
children: e
|
|
12366
|
-
}),
|
|
12367
|
-
a: ({ children: e, href: t }) => /* @__PURE__ */ g("a", {
|
|
12368
|
-
href: t,
|
|
12369
|
-
target: "_blank",
|
|
12370
|
-
rel: "noopener noreferrer",
|
|
12371
|
-
className: "erica-markdown-link",
|
|
12372
|
-
children: e
|
|
12373
|
-
}),
|
|
12374
|
-
blockquote: ({ children: e }) => /* @__PURE__ */ g("blockquote", {
|
|
12375
|
-
className: "erica-markdown-blockquote",
|
|
12376
|
-
children: e
|
|
12377
|
-
}),
|
|
12378
|
-
hr: () => /* @__PURE__ */ g("hr", { className: "erica-markdown-hr" }),
|
|
12379
|
-
table: ({ children: e }) => /* @__PURE__ */ g("div", {
|
|
12380
|
-
className: "erica-markdown-table-wrapper",
|
|
12381
|
-
children: /* @__PURE__ */ g("table", {
|
|
12382
|
-
className: "erica-markdown-table",
|
|
12383
|
-
children: e
|
|
12384
|
-
})
|
|
12385
|
-
}),
|
|
12386
|
-
thead: ({ children: e }) => /* @__PURE__ */ g("thead", {
|
|
12387
|
-
className: "erica-markdown-thead",
|
|
12388
|
-
children: e
|
|
12389
|
-
}),
|
|
12390
|
-
th: ({ children: e }) => /* @__PURE__ */ g("th", {
|
|
12391
|
-
className: "erica-markdown-th",
|
|
12392
|
-
children: e
|
|
12393
|
-
}),
|
|
12394
|
-
td: ({ children: e }) => /* @__PURE__ */ g("td", {
|
|
12395
|
-
className: "erica-markdown-td",
|
|
12396
|
-
children: e
|
|
12397
|
-
}),
|
|
12398
|
-
code: (e) => {
|
|
12399
|
-
let { children: t, className: n, ...r } = e;
|
|
12400
|
-
return /language-(\w+)/.exec(n || "")?.[1] === "ericachart" ? /* @__PURE__ */ g(Wc, { markdown: t }) : /* @__PURE__ */ g("code", {
|
|
12401
|
-
...r,
|
|
12402
|
-
className: n,
|
|
12403
|
-
children: t
|
|
12404
|
-
});
|
|
12405
|
-
}
|
|
12406
|
-
},
|
|
12407
|
-
children: e
|
|
12408
|
-
})
|
|
12409
|
-
});
|
|
12318
|
+
//#region node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js
|
|
12319
|
+
function Vg(e) {
|
|
12320
|
+
if (typeof e != "string") throw TypeError("Expected a string");
|
|
12321
|
+
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
12410
12322
|
}
|
|
12411
12323
|
//#endregion
|
|
12412
|
-
//#region
|
|
12413
|
-
|
|
12414
|
-
|
|
12415
|
-
|
|
12416
|
-
|
|
12417
|
-
|
|
12418
|
-
|
|
12419
|
-
|
|
12420
|
-
|
|
12421
|
-
|
|
12422
|
-
|
|
12423
|
-
|
|
12424
|
-
|
|
12425
|
-
|
|
12426
|
-
|
|
12427
|
-
|
|
12428
|
-
|
|
12429
|
-
|
|
12430
|
-
|
|
12431
|
-
|
|
12432
|
-
|
|
12433
|
-
|
|
12434
|
-
|
|
12435
|
-
|
|
12436
|
-
|
|
12437
|
-
|
|
12438
|
-
|
|
12439
|
-
|
|
12440
|
-
|
|
12441
|
-
|
|
12442
|
-
|
|
12443
|
-
|
|
12444
|
-
|
|
12445
|
-
|
|
12446
|
-
|
|
12447
|
-
|
|
12448
|
-
|
|
12449
|
-
})
|
|
12450
|
-
});
|
|
12324
|
+
//#region node_modules/mdast-util-find-and-replace/lib/index.js
|
|
12325
|
+
function Hg(e, t, n) {
|
|
12326
|
+
let r = dm((n || {}).ignore || []), i = Ug(t), a = -1;
|
|
12327
|
+
for (; ++a < i.length;) bm(e, "text", o);
|
|
12328
|
+
function o(e, t) {
|
|
12329
|
+
let n = -1, i;
|
|
12330
|
+
for (; ++n < t.length;) {
|
|
12331
|
+
let e = t[n], a = i ? i.children : void 0;
|
|
12332
|
+
if (r(e, a ? a.indexOf(e) : void 0, i)) return;
|
|
12333
|
+
i = e;
|
|
12334
|
+
}
|
|
12335
|
+
if (i) return s(e, t);
|
|
12336
|
+
}
|
|
12337
|
+
function s(e, t) {
|
|
12338
|
+
let n = t[t.length - 1], r = i[a][0], o = i[a][1], s = 0, c = n.children.indexOf(e), l = !1, u = [];
|
|
12339
|
+
r.lastIndex = 0;
|
|
12340
|
+
let d = r.exec(e.value);
|
|
12341
|
+
for (; d;) {
|
|
12342
|
+
let n = d.index, i = {
|
|
12343
|
+
index: d.index,
|
|
12344
|
+
input: d.input,
|
|
12345
|
+
stack: [...t, e]
|
|
12346
|
+
}, a = o(...d, i);
|
|
12347
|
+
if (typeof a == "string" && (a = a.length > 0 ? {
|
|
12348
|
+
type: "text",
|
|
12349
|
+
value: a
|
|
12350
|
+
} : void 0), a === !1 ? r.lastIndex = n + 1 : (s !== n && u.push({
|
|
12351
|
+
type: "text",
|
|
12352
|
+
value: e.value.slice(s, n)
|
|
12353
|
+
}), Array.isArray(a) ? u.push(...a) : a && u.push(a), s = n + d[0].length, l = !0), !r.global) break;
|
|
12354
|
+
d = r.exec(e.value);
|
|
12355
|
+
}
|
|
12356
|
+
return l ? (s < e.value.length && u.push({
|
|
12357
|
+
type: "text",
|
|
12358
|
+
value: e.value.slice(s)
|
|
12359
|
+
}), n.children.splice(c, 1, ...u)) : u = [e], c + u.length;
|
|
12360
|
+
}
|
|
12451
12361
|
}
|
|
12452
|
-
|
|
12453
|
-
|
|
12454
|
-
|
|
12455
|
-
|
|
12456
|
-
|
|
12457
|
-
|
|
12458
|
-
|
|
12459
|
-
|
|
12460
|
-
|
|
12461
|
-
name: "showReport",
|
|
12462
|
-
description: "Display a report from markdown with erica report syntax.",
|
|
12463
|
-
parameters: Hg,
|
|
12464
|
-
render: Ug
|
|
12465
|
-
}, []);
|
|
12466
|
-
};
|
|
12467
|
-
//#endregion
|
|
12468
|
-
//#region src/components/EricaChat.tsx
|
|
12469
|
-
function Gg({ threadId: e, handleNewChat: t, handleThreadSelect: n }) {
|
|
12470
|
-
return Wg(), /* @__PURE__ */ g(m, {
|
|
12471
|
-
labels: { initial: "Hi! How can I help you today?\n\nYou can:\n- Ask me questions\n- Upload files using the attachment icon\n- Drag & drop files to attach" },
|
|
12472
|
-
Input: i((t) => /* @__PURE__ */ g(Ze, {
|
|
12473
|
-
...t,
|
|
12474
|
-
threadId: e
|
|
12475
|
-
}), [e]),
|
|
12476
|
-
Header: i(() => /* @__PURE__ */ g(Dn, {
|
|
12477
|
-
onNewChat: t,
|
|
12478
|
-
onThreadSelect: n
|
|
12479
|
-
}), [t, n])
|
|
12480
|
-
});
|
|
12362
|
+
function Ug(e) {
|
|
12363
|
+
let t = [];
|
|
12364
|
+
if (!Array.isArray(e)) throw TypeError("Expected find and replace tuple or list of tuples");
|
|
12365
|
+
let n = !e[0] || Array.isArray(e[0]) ? e : [e], r = -1;
|
|
12366
|
+
for (; ++r < n.length;) {
|
|
12367
|
+
let e = n[r];
|
|
12368
|
+
t.push([Wg(e[0]), Gg(e[1])]);
|
|
12369
|
+
}
|
|
12370
|
+
return t;
|
|
12481
12371
|
}
|
|
12482
|
-
function
|
|
12483
|
-
|
|
12484
|
-
let t = new URL(e), n = t.pathname.split("/").filter(Boolean);
|
|
12485
|
-
return n.length > 2 && n.pop(), t.pathname = "/" + n.join("/"), t.toString();
|
|
12486
|
-
}, [e]);
|
|
12487
|
-
s(() => {
|
|
12488
|
-
We(a, t);
|
|
12489
|
-
}, [a, t]);
|
|
12490
|
-
let o = i(() => {
|
|
12491
|
-
r(void 0), console.log("New chat started");
|
|
12492
|
-
}, []), c = i((e) => {
|
|
12493
|
-
r(e), console.log("Thread selected:", e);
|
|
12494
|
-
}, []);
|
|
12495
|
-
return /* @__PURE__ */ g(d, {
|
|
12496
|
-
isModalDefaultOpen: !0,
|
|
12497
|
-
children: /* @__PURE__ */ g("div", {
|
|
12498
|
-
className: "h-full w-full",
|
|
12499
|
-
children: /* @__PURE__ */ g(u, {
|
|
12500
|
-
runtimeUrl: e,
|
|
12501
|
-
headers: { Authorization: `Bearer ${t}` },
|
|
12502
|
-
properties: { agent: "platform:ultimate" },
|
|
12503
|
-
threadId: n,
|
|
12504
|
-
enableInspector: !1,
|
|
12505
|
-
children: /* @__PURE__ */ g(Gg, {
|
|
12506
|
-
threadId: n,
|
|
12507
|
-
handleNewChat: o,
|
|
12508
|
-
handleThreadSelect: c
|
|
12509
|
-
})
|
|
12510
|
-
})
|
|
12511
|
-
})
|
|
12512
|
-
});
|
|
12372
|
+
function Wg(e) {
|
|
12373
|
+
return typeof e == "string" ? new RegExp(Vg(e), "g") : e;
|
|
12513
12374
|
}
|
|
12514
|
-
|
|
12515
|
-
|
|
12516
|
-
|
|
12517
|
-
|
|
12518
|
-
retry: 1,
|
|
12519
|
-
staleTime: 3e4
|
|
12520
|
-
} } });
|
|
12521
|
-
function Jg({ accountUid: e, children: t }) {
|
|
12522
|
-
return /* @__PURE__ */ g(sn, {
|
|
12523
|
-
client: qg,
|
|
12524
|
-
children: /* @__PURE__ */ g(Ec, {
|
|
12525
|
-
accountUid: e,
|
|
12526
|
-
children: /* @__PURE__ */ g(Jc, { children: t })
|
|
12527
|
-
})
|
|
12528
|
-
});
|
|
12375
|
+
function Gg(e) {
|
|
12376
|
+
return typeof e == "function" ? e : function() {
|
|
12377
|
+
return e;
|
|
12378
|
+
};
|
|
12529
12379
|
}
|
|
12530
12380
|
//#endregion
|
|
12531
|
-
//#region
|
|
12381
|
+
//#region node_modules/mdast-util-gfm-autolink-literal/lib/index.js
|
|
12382
|
+
var Kg = "phrasing", qg = [
|
|
12383
|
+
"autolink",
|
|
12384
|
+
"link",
|
|
12385
|
+
"image",
|
|
12386
|
+
"label"
|
|
12387
|
+
];
|
|
12388
|
+
function Jg() {
|
|
12389
|
+
return {
|
|
12390
|
+
transforms: [n_],
|
|
12391
|
+
enter: {
|
|
12392
|
+
literalAutolink: Xg,
|
|
12393
|
+
literalAutolinkEmail: Zg,
|
|
12394
|
+
literalAutolinkHttp: Zg,
|
|
12395
|
+
literalAutolinkWww: Zg
|
|
12396
|
+
},
|
|
12397
|
+
exit: {
|
|
12398
|
+
literalAutolink: t_,
|
|
12399
|
+
literalAutolinkEmail: e_,
|
|
12400
|
+
literalAutolinkHttp: Qg,
|
|
12401
|
+
literalAutolinkWww: $g
|
|
12402
|
+
}
|
|
12403
|
+
};
|
|
12404
|
+
}
|
|
12532
12405
|
function Yg() {
|
|
12406
|
+
return { unsafe: [
|
|
12407
|
+
{
|
|
12408
|
+
character: "@",
|
|
12409
|
+
before: "[+\\-.\\w]",
|
|
12410
|
+
after: "[\\-.\\w]",
|
|
12411
|
+
inConstruct: Kg,
|
|
12412
|
+
notInConstruct: qg
|
|
12413
|
+
},
|
|
12414
|
+
{
|
|
12415
|
+
character: ".",
|
|
12416
|
+
before: "[Ww]",
|
|
12417
|
+
after: "[\\-.\\w]",
|
|
12418
|
+
inConstruct: Kg,
|
|
12419
|
+
notInConstruct: qg
|
|
12420
|
+
},
|
|
12421
|
+
{
|
|
12422
|
+
character: ":",
|
|
12423
|
+
before: "[ps]",
|
|
12424
|
+
after: "\\/",
|
|
12425
|
+
inConstruct: Kg,
|
|
12426
|
+
notInConstruct: qg
|
|
12427
|
+
}
|
|
12428
|
+
] };
|
|
12429
|
+
}
|
|
12430
|
+
function Xg(e) {
|
|
12431
|
+
this.enter({
|
|
12432
|
+
type: "link",
|
|
12433
|
+
title: null,
|
|
12434
|
+
url: "",
|
|
12435
|
+
children: []
|
|
12436
|
+
}, e);
|
|
12437
|
+
}
|
|
12438
|
+
function Zg(e) {
|
|
12439
|
+
this.config.enter.autolinkProtocol.call(this, e);
|
|
12440
|
+
}
|
|
12441
|
+
function Qg(e) {
|
|
12442
|
+
this.config.exit.autolinkProtocol.call(this, e);
|
|
12443
|
+
}
|
|
12444
|
+
function $g(e) {
|
|
12445
|
+
this.config.exit.data.call(this, e);
|
|
12446
|
+
let t = this.stack[this.stack.length - 1];
|
|
12447
|
+
t.type, t.url = "http://" + this.sliceSerialize(e);
|
|
12448
|
+
}
|
|
12449
|
+
function e_(e) {
|
|
12450
|
+
this.config.exit.autolinkEmail.call(this, e);
|
|
12451
|
+
}
|
|
12452
|
+
function t_(e) {
|
|
12453
|
+
this.exit(e);
|
|
12454
|
+
}
|
|
12455
|
+
function n_(e) {
|
|
12456
|
+
Hg(e, [[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, r_], [/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu, i_]], { ignore: ["link", "linkReference"] });
|
|
12457
|
+
}
|
|
12458
|
+
function r_(e, t, n, r, i) {
|
|
12459
|
+
let a = "";
|
|
12460
|
+
if (!s_(i) || (/^w/i.test(t) && (n = t + n, t = "", a = "http://"), !a_(n))) return !1;
|
|
12461
|
+
let o = o_(n + r);
|
|
12462
|
+
if (!o[0]) return !1;
|
|
12463
|
+
let s = {
|
|
12464
|
+
type: "link",
|
|
12465
|
+
title: null,
|
|
12466
|
+
url: a + t + o[0],
|
|
12467
|
+
children: [{
|
|
12468
|
+
type: "text",
|
|
12469
|
+
value: t + o[0]
|
|
12470
|
+
}]
|
|
12471
|
+
};
|
|
12472
|
+
return o[1] ? [s, {
|
|
12473
|
+
type: "text",
|
|
12474
|
+
value: o[1]
|
|
12475
|
+
}] : s;
|
|
12476
|
+
}
|
|
12477
|
+
function i_(e, t, n, r) {
|
|
12478
|
+
return !s_(r, !0) || /[-\d_]$/.test(n) ? !1 : {
|
|
12479
|
+
type: "link",
|
|
12480
|
+
title: null,
|
|
12481
|
+
url: "mailto:" + t + "@" + n,
|
|
12482
|
+
children: [{
|
|
12483
|
+
type: "text",
|
|
12484
|
+
value: t + "@" + n
|
|
12485
|
+
}]
|
|
12486
|
+
};
|
|
12487
|
+
}
|
|
12488
|
+
function a_(e) {
|
|
12489
|
+
let t = e.split(".");
|
|
12490
|
+
return !(t.length < 2 || t[t.length - 1] && (/_/.test(t[t.length - 1]) || !/[a-zA-Z\d]/.test(t[t.length - 1])) || t[t.length - 2] && (/_/.test(t[t.length - 2]) || !/[a-zA-Z\d]/.test(t[t.length - 2])));
|
|
12491
|
+
}
|
|
12492
|
+
function o_(e) {
|
|
12493
|
+
let t = /[!"&'),.:;<>?\]}]+$/.exec(e);
|
|
12494
|
+
if (!t) return [e, void 0];
|
|
12495
|
+
e = e.slice(0, t.index);
|
|
12496
|
+
let n = t[0], r = n.indexOf(")"), i = Th(e, "("), a = Th(e, ")");
|
|
12497
|
+
for (; r !== -1 && i > a;) e += n.slice(0, r + 1), n = n.slice(r + 1), r = n.indexOf(")"), a++;
|
|
12498
|
+
return [e, n];
|
|
12499
|
+
}
|
|
12500
|
+
function s_(e, t) {
|
|
12501
|
+
let n = e.input.charCodeAt(e.index - 1);
|
|
12502
|
+
return (e.index === 0 || Wu(n) || Uu(n)) && (!t || n !== 47);
|
|
12503
|
+
}
|
|
12504
|
+
//#endregion
|
|
12505
|
+
//#region node_modules/mdast-util-gfm-footnote/lib/index.js
|
|
12506
|
+
__.peek = g_;
|
|
12507
|
+
function c_() {
|
|
12508
|
+
this.buffer();
|
|
12509
|
+
}
|
|
12510
|
+
function l_(e) {
|
|
12511
|
+
this.enter({
|
|
12512
|
+
type: "footnoteReference",
|
|
12513
|
+
identifier: "",
|
|
12514
|
+
label: ""
|
|
12515
|
+
}, e);
|
|
12516
|
+
}
|
|
12517
|
+
function u_() {
|
|
12518
|
+
this.buffer();
|
|
12519
|
+
}
|
|
12520
|
+
function d_(e) {
|
|
12521
|
+
this.enter({
|
|
12522
|
+
type: "footnoteDefinition",
|
|
12523
|
+
identifier: "",
|
|
12524
|
+
label: "",
|
|
12525
|
+
children: []
|
|
12526
|
+
}, e);
|
|
12527
|
+
}
|
|
12528
|
+
function f_(e) {
|
|
12529
|
+
let t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
12530
|
+
n.type, n.identifier = Lu(this.sliceSerialize(e)).toLowerCase(), n.label = t;
|
|
12531
|
+
}
|
|
12532
|
+
function p_(e) {
|
|
12533
|
+
this.exit(e);
|
|
12534
|
+
}
|
|
12535
|
+
function m_(e) {
|
|
12536
|
+
let t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
12537
|
+
n.type, n.identifier = Lu(this.sliceSerialize(e)).toLowerCase(), n.label = t;
|
|
12538
|
+
}
|
|
12539
|
+
function h_(e) {
|
|
12540
|
+
this.exit(e);
|
|
12541
|
+
}
|
|
12542
|
+
function g_() {
|
|
12543
|
+
return "[";
|
|
12544
|
+
}
|
|
12545
|
+
function __(e, t, n, r) {
|
|
12546
|
+
let i = n.createTracker(r), a = i.move("[^"), o = n.enter("footnoteReference"), s = n.enter("reference");
|
|
12547
|
+
return a += i.move(n.safe(n.associationId(e), {
|
|
12548
|
+
after: "]",
|
|
12549
|
+
before: a
|
|
12550
|
+
})), s(), o(), a += i.move("]"), a;
|
|
12551
|
+
}
|
|
12552
|
+
function v_() {
|
|
12553
|
+
return {
|
|
12554
|
+
enter: {
|
|
12555
|
+
gfmFootnoteCallString: c_,
|
|
12556
|
+
gfmFootnoteCall: l_,
|
|
12557
|
+
gfmFootnoteDefinitionLabelString: u_,
|
|
12558
|
+
gfmFootnoteDefinition: d_
|
|
12559
|
+
},
|
|
12560
|
+
exit: {
|
|
12561
|
+
gfmFootnoteCallString: f_,
|
|
12562
|
+
gfmFootnoteCall: p_,
|
|
12563
|
+
gfmFootnoteDefinitionLabelString: m_,
|
|
12564
|
+
gfmFootnoteDefinition: h_
|
|
12565
|
+
}
|
|
12566
|
+
};
|
|
12567
|
+
}
|
|
12568
|
+
function y_(e) {
|
|
12569
|
+
let t = !1;
|
|
12570
|
+
return e && e.firstLineBlank && (t = !0), {
|
|
12571
|
+
handlers: {
|
|
12572
|
+
footnoteDefinition: n,
|
|
12573
|
+
footnoteReference: __
|
|
12574
|
+
},
|
|
12575
|
+
unsafe: [{
|
|
12576
|
+
character: "[",
|
|
12577
|
+
inConstruct: [
|
|
12578
|
+
"label",
|
|
12579
|
+
"phrasing",
|
|
12580
|
+
"reference"
|
|
12581
|
+
]
|
|
12582
|
+
}]
|
|
12583
|
+
};
|
|
12584
|
+
function n(e, n, r, i) {
|
|
12585
|
+
let a = r.createTracker(i), o = a.move("[^"), s = r.enter("footnoteDefinition"), c = r.enter("label");
|
|
12586
|
+
return o += a.move(r.safe(r.associationId(e), {
|
|
12587
|
+
before: o,
|
|
12588
|
+
after: "]"
|
|
12589
|
+
})), c(), o += a.move("]:"), e.children && e.children.length > 0 && (a.shift(4), o += a.move((t ? "\n" : " ") + r.indentLines(r.containerFlow(e, a.current()), t ? x_ : b_))), s(), o;
|
|
12590
|
+
}
|
|
12591
|
+
}
|
|
12592
|
+
function b_(e, t, n) {
|
|
12593
|
+
return t === 0 ? e : x_(e, t, n);
|
|
12594
|
+
}
|
|
12595
|
+
function x_(e, t, n) {
|
|
12596
|
+
return (n ? "" : " ") + e;
|
|
12597
|
+
}
|
|
12598
|
+
//#endregion
|
|
12599
|
+
//#region node_modules/mdast-util-gfm-strikethrough/lib/index.js
|
|
12600
|
+
var S_ = [
|
|
12601
|
+
"autolink",
|
|
12602
|
+
"destinationLiteral",
|
|
12603
|
+
"destinationRaw",
|
|
12604
|
+
"reference",
|
|
12605
|
+
"titleQuote",
|
|
12606
|
+
"titleApostrophe"
|
|
12607
|
+
];
|
|
12608
|
+
D_.peek = O_;
|
|
12609
|
+
function C_() {
|
|
12610
|
+
return {
|
|
12611
|
+
canContainEols: ["delete"],
|
|
12612
|
+
enter: { strikethrough: T_ },
|
|
12613
|
+
exit: { strikethrough: E_ }
|
|
12614
|
+
};
|
|
12615
|
+
}
|
|
12616
|
+
function w_() {
|
|
12617
|
+
return {
|
|
12618
|
+
unsafe: [{
|
|
12619
|
+
character: "~",
|
|
12620
|
+
inConstruct: "phrasing",
|
|
12621
|
+
notInConstruct: S_
|
|
12622
|
+
}],
|
|
12623
|
+
handlers: { delete: D_ }
|
|
12624
|
+
};
|
|
12625
|
+
}
|
|
12626
|
+
function T_(e) {
|
|
12627
|
+
this.enter({
|
|
12628
|
+
type: "delete",
|
|
12629
|
+
children: []
|
|
12630
|
+
}, e);
|
|
12631
|
+
}
|
|
12632
|
+
function E_(e) {
|
|
12633
|
+
this.exit(e);
|
|
12634
|
+
}
|
|
12635
|
+
function D_(e, t, n, r) {
|
|
12636
|
+
let i = n.createTracker(r), a = n.enter("strikethrough"), o = i.move("~~");
|
|
12637
|
+
return o += n.containerPhrasing(e, {
|
|
12638
|
+
...i.current(),
|
|
12639
|
+
before: o,
|
|
12640
|
+
after: "~"
|
|
12641
|
+
}), o += i.move("~~"), a(), o;
|
|
12642
|
+
}
|
|
12643
|
+
function O_() {
|
|
12644
|
+
return "~";
|
|
12645
|
+
}
|
|
12646
|
+
//#endregion
|
|
12647
|
+
//#region node_modules/markdown-table/index.js
|
|
12648
|
+
function k_(e) {
|
|
12649
|
+
return e.length;
|
|
12650
|
+
}
|
|
12651
|
+
function A_(e, t) {
|
|
12652
|
+
let n = t || {}, r = (n.align || []).concat(), i = n.stringLength || k_, a = [], o = [], s = [], c = [], l = 0, u = -1;
|
|
12653
|
+
for (; ++u < e.length;) {
|
|
12654
|
+
let t = [], r = [], a = -1;
|
|
12655
|
+
for (e[u].length > l && (l = e[u].length); ++a < e[u].length;) {
|
|
12656
|
+
let o = j_(e[u][a]);
|
|
12657
|
+
if (n.alignDelimiters !== !1) {
|
|
12658
|
+
let e = i(o);
|
|
12659
|
+
r[a] = e, (c[a] === void 0 || e > c[a]) && (c[a] = e);
|
|
12660
|
+
}
|
|
12661
|
+
t.push(o);
|
|
12662
|
+
}
|
|
12663
|
+
o[u] = t, s[u] = r;
|
|
12664
|
+
}
|
|
12665
|
+
let d = -1;
|
|
12666
|
+
if (typeof r == "object" && "length" in r) for (; ++d < l;) a[d] = M_(r[d]);
|
|
12667
|
+
else {
|
|
12668
|
+
let e = M_(r);
|
|
12669
|
+
for (; ++d < l;) a[d] = e;
|
|
12670
|
+
}
|
|
12671
|
+
d = -1;
|
|
12672
|
+
let f = [], p = [];
|
|
12673
|
+
for (; ++d < l;) {
|
|
12674
|
+
let e = a[d], t = "", r = "";
|
|
12675
|
+
e === 99 ? (t = ":", r = ":") : e === 108 ? t = ":" : e === 114 && (r = ":");
|
|
12676
|
+
let i = n.alignDelimiters === !1 ? 1 : Math.max(1, c[d] - t.length - r.length), o = t + "-".repeat(i) + r;
|
|
12677
|
+
n.alignDelimiters !== !1 && (i = t.length + i + r.length, i > c[d] && (c[d] = i), p[d] = i), f[d] = o;
|
|
12678
|
+
}
|
|
12679
|
+
o.splice(1, 0, f), s.splice(1, 0, p), u = -1;
|
|
12680
|
+
let m = [];
|
|
12681
|
+
for (; ++u < o.length;) {
|
|
12682
|
+
let e = o[u], t = s[u];
|
|
12683
|
+
d = -1;
|
|
12684
|
+
let r = [];
|
|
12685
|
+
for (; ++d < l;) {
|
|
12686
|
+
let i = e[d] || "", o = "", s = "";
|
|
12687
|
+
if (n.alignDelimiters !== !1) {
|
|
12688
|
+
let e = c[d] - (t[d] || 0), n = a[d];
|
|
12689
|
+
n === 114 ? o = " ".repeat(e) : n === 99 ? e % 2 ? (o = " ".repeat(e / 2 + .5), s = " ".repeat(e / 2 - .5)) : (o = " ".repeat(e / 2), s = o) : s = " ".repeat(e);
|
|
12690
|
+
}
|
|
12691
|
+
n.delimiterStart !== !1 && !d && r.push("|"), n.padding !== !1 && !(n.alignDelimiters === !1 && i === "") && (n.delimiterStart !== !1 || d) && r.push(" "), n.alignDelimiters !== !1 && r.push(o), r.push(i), n.alignDelimiters !== !1 && r.push(s), n.padding !== !1 && r.push(" "), (n.delimiterEnd !== !1 || d !== l - 1) && r.push("|");
|
|
12692
|
+
}
|
|
12693
|
+
m.push(n.delimiterEnd === !1 ? r.join("").replace(/ +$/, "") : r.join(""));
|
|
12694
|
+
}
|
|
12695
|
+
return m.join("\n");
|
|
12696
|
+
}
|
|
12697
|
+
function j_(e) {
|
|
12698
|
+
return e == null ? "" : String(e);
|
|
12699
|
+
}
|
|
12700
|
+
function M_(e) {
|
|
12701
|
+
let t = typeof e == "string" ? e.codePointAt(0) : 0;
|
|
12702
|
+
return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
|
|
12703
|
+
}
|
|
12704
|
+
//#endregion
|
|
12705
|
+
//#region node_modules/mdast-util-to-markdown/lib/handle/blockquote.js
|
|
12706
|
+
function N_(e, t, n, r) {
|
|
12707
|
+
let i = n.enter("blockquote"), a = n.createTracker(r);
|
|
12708
|
+
a.move("> "), a.shift(2);
|
|
12709
|
+
let o = n.indentLines(n.containerFlow(e, a.current()), P_);
|
|
12710
|
+
return i(), o;
|
|
12711
|
+
}
|
|
12712
|
+
function P_(e, t, n) {
|
|
12713
|
+
return ">" + (n ? "" : " ") + e;
|
|
12714
|
+
}
|
|
12715
|
+
//#endregion
|
|
12716
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js
|
|
12717
|
+
function F_(e, t) {
|
|
12718
|
+
return I_(e, t.inConstruct, !0) && !I_(e, t.notInConstruct, !1);
|
|
12719
|
+
}
|
|
12720
|
+
function I_(e, t, n) {
|
|
12721
|
+
if (typeof t == "string" && (t = [t]), !t || t.length === 0) return n;
|
|
12722
|
+
let r = -1;
|
|
12723
|
+
for (; ++r < t.length;) if (e.includes(t[r])) return !0;
|
|
12724
|
+
return !1;
|
|
12725
|
+
}
|
|
12726
|
+
//#endregion
|
|
12727
|
+
//#region node_modules/mdast-util-to-markdown/lib/handle/break.js
|
|
12728
|
+
function L_(e, t, n, r) {
|
|
12729
|
+
let i = -1;
|
|
12730
|
+
for (; ++i < n.unsafe.length;) if (n.unsafe[i].character === "\n" && F_(n.stack, n.unsafe[i])) return /[ \t]/.test(r.before) ? "" : " ";
|
|
12731
|
+
return "\\\n";
|
|
12732
|
+
}
|
|
12733
|
+
//#endregion
|
|
12734
|
+
//#region node_modules/longest-streak/index.js
|
|
12735
|
+
function R_(e, t) {
|
|
12736
|
+
let n = String(e), r = n.indexOf(t), i = r, a = 0, o = 0;
|
|
12737
|
+
if (typeof t != "string") throw TypeError("Expected substring");
|
|
12738
|
+
for (; r !== -1;) r === i ? ++a > o && (o = a) : a = 1, i = r + t.length, r = n.indexOf(t, i);
|
|
12739
|
+
return o;
|
|
12740
|
+
}
|
|
12741
|
+
//#endregion
|
|
12742
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js
|
|
12743
|
+
function z_(e, t) {
|
|
12744
|
+
return !!(t.options.fences === !1 && e.value && !e.lang && /[^ \r\n]/.test(e.value) && !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value));
|
|
12745
|
+
}
|
|
12746
|
+
//#endregion
|
|
12747
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/check-fence.js
|
|
12748
|
+
function B_(e) {
|
|
12749
|
+
let t = e.options.fence || "`";
|
|
12750
|
+
if (t !== "`" && t !== "~") throw Error("Cannot serialize code with `" + t + "` for `options.fence`, expected `` ` `` or `~`");
|
|
12751
|
+
return t;
|
|
12752
|
+
}
|
|
12753
|
+
//#endregion
|
|
12754
|
+
//#region node_modules/mdast-util-to-markdown/lib/handle/code.js
|
|
12755
|
+
function V_(e, t, n, r) {
|
|
12756
|
+
let i = B_(n), a = e.value || "", o = i === "`" ? "GraveAccent" : "Tilde";
|
|
12757
|
+
if (z_(e, n)) {
|
|
12758
|
+
let e = n.enter("codeIndented"), t = n.indentLines(a, H_);
|
|
12759
|
+
return e(), t;
|
|
12760
|
+
}
|
|
12761
|
+
let s = n.createTracker(r), c = i.repeat(Math.max(R_(a, i) + 1, 3)), l = n.enter("codeFenced"), u = s.move(c);
|
|
12762
|
+
if (e.lang) {
|
|
12763
|
+
let t = n.enter(`codeFencedLang${o}`);
|
|
12764
|
+
u += s.move(n.safe(e.lang, {
|
|
12765
|
+
before: u,
|
|
12766
|
+
after: " ",
|
|
12767
|
+
encode: ["`"],
|
|
12768
|
+
...s.current()
|
|
12769
|
+
})), t();
|
|
12770
|
+
}
|
|
12771
|
+
if (e.lang && e.meta) {
|
|
12772
|
+
let t = n.enter(`codeFencedMeta${o}`);
|
|
12773
|
+
u += s.move(" "), u += s.move(n.safe(e.meta, {
|
|
12774
|
+
before: u,
|
|
12775
|
+
after: "\n",
|
|
12776
|
+
encode: ["`"],
|
|
12777
|
+
...s.current()
|
|
12778
|
+
})), t();
|
|
12779
|
+
}
|
|
12780
|
+
return u += s.move("\n"), a && (u += s.move(a + "\n")), u += s.move(c), l(), u;
|
|
12781
|
+
}
|
|
12782
|
+
function H_(e, t, n) {
|
|
12783
|
+
return (n ? "" : " ") + e;
|
|
12784
|
+
}
|
|
12785
|
+
//#endregion
|
|
12786
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/check-quote.js
|
|
12787
|
+
function U_(e) {
|
|
12788
|
+
let t = e.options.quote || "\"";
|
|
12789
|
+
if (t !== "\"" && t !== "'") throw Error("Cannot serialize title with `" + t + "` for `options.quote`, expected `\"`, or `'`");
|
|
12790
|
+
return t;
|
|
12791
|
+
}
|
|
12792
|
+
//#endregion
|
|
12793
|
+
//#region node_modules/mdast-util-to-markdown/lib/handle/definition.js
|
|
12794
|
+
function W_(e, t, n, r) {
|
|
12795
|
+
let i = U_(n), a = i === "\"" ? "Quote" : "Apostrophe", o = n.enter("definition"), s = n.enter("label"), c = n.createTracker(r), l = c.move("[");
|
|
12796
|
+
return l += c.move(n.safe(n.associationId(e), {
|
|
12797
|
+
before: l,
|
|
12798
|
+
after: "]",
|
|
12799
|
+
...c.current()
|
|
12800
|
+
})), l += c.move("]: "), s(), !e.url || /[\0- \u007F]/.test(e.url) ? (s = n.enter("destinationLiteral"), l += c.move("<"), l += c.move(n.safe(e.url, {
|
|
12801
|
+
before: l,
|
|
12802
|
+
after: ">",
|
|
12803
|
+
...c.current()
|
|
12804
|
+
})), l += c.move(">")) : (s = n.enter("destinationRaw"), l += c.move(n.safe(e.url, {
|
|
12805
|
+
before: l,
|
|
12806
|
+
after: e.title ? " " : "\n",
|
|
12807
|
+
...c.current()
|
|
12808
|
+
}))), s(), e.title && (s = n.enter(`title${a}`), l += c.move(" " + i), l += c.move(n.safe(e.title, {
|
|
12809
|
+
before: l,
|
|
12810
|
+
after: i,
|
|
12811
|
+
...c.current()
|
|
12812
|
+
})), l += c.move(i), s()), o(), l;
|
|
12813
|
+
}
|
|
12814
|
+
//#endregion
|
|
12815
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js
|
|
12816
|
+
function G_(e) {
|
|
12817
|
+
let t = e.options.emphasis || "*";
|
|
12818
|
+
if (t !== "*" && t !== "_") throw Error("Cannot serialize emphasis with `" + t + "` for `options.emphasis`, expected `*`, or `_`");
|
|
12819
|
+
return t;
|
|
12820
|
+
}
|
|
12821
|
+
//#endregion
|
|
12822
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js
|
|
12823
|
+
function K_(e) {
|
|
12824
|
+
return "&#x" + e.toString(16).toUpperCase() + ";";
|
|
12825
|
+
}
|
|
12826
|
+
//#endregion
|
|
12827
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/encode-info.js
|
|
12828
|
+
function q_(e, t, n) {
|
|
12829
|
+
let r = $u(e), i = $u(t);
|
|
12830
|
+
return r === void 0 ? i === void 0 ? n === "_" ? {
|
|
12831
|
+
inside: !0,
|
|
12832
|
+
outside: !0
|
|
12833
|
+
} : {
|
|
12834
|
+
inside: !1,
|
|
12835
|
+
outside: !1
|
|
12836
|
+
} : i === 1 ? {
|
|
12837
|
+
inside: !0,
|
|
12838
|
+
outside: !0
|
|
12839
|
+
} : {
|
|
12840
|
+
inside: !1,
|
|
12841
|
+
outside: !0
|
|
12842
|
+
} : r === 1 ? i === void 0 ? {
|
|
12843
|
+
inside: !1,
|
|
12844
|
+
outside: !1
|
|
12845
|
+
} : i === 1 ? {
|
|
12846
|
+
inside: !0,
|
|
12847
|
+
outside: !0
|
|
12848
|
+
} : {
|
|
12849
|
+
inside: !1,
|
|
12850
|
+
outside: !1
|
|
12851
|
+
} : i === void 0 ? {
|
|
12852
|
+
inside: !1,
|
|
12853
|
+
outside: !1
|
|
12854
|
+
} : i === 1 ? {
|
|
12855
|
+
inside: !0,
|
|
12856
|
+
outside: !1
|
|
12857
|
+
} : {
|
|
12858
|
+
inside: !1,
|
|
12859
|
+
outside: !1
|
|
12860
|
+
};
|
|
12861
|
+
}
|
|
12862
|
+
//#endregion
|
|
12863
|
+
//#region node_modules/mdast-util-to-markdown/lib/handle/emphasis.js
|
|
12864
|
+
J_.peek = Y_;
|
|
12865
|
+
function J_(e, t, n, r) {
|
|
12866
|
+
let i = G_(n), a = n.enter("emphasis"), o = n.createTracker(r), s = o.move(i), c = o.move(n.containerPhrasing(e, {
|
|
12867
|
+
after: i,
|
|
12868
|
+
before: s,
|
|
12869
|
+
...o.current()
|
|
12870
|
+
})), l = c.charCodeAt(0), u = q_(r.before.charCodeAt(r.before.length - 1), l, i);
|
|
12871
|
+
u.inside && (c = K_(l) + c.slice(1));
|
|
12872
|
+
let d = c.charCodeAt(c.length - 1), f = q_(r.after.charCodeAt(0), d, i);
|
|
12873
|
+
f.inside && (c = c.slice(0, -1) + K_(d));
|
|
12874
|
+
let p = o.move(i);
|
|
12875
|
+
return a(), n.attentionEncodeSurroundingInfo = {
|
|
12876
|
+
after: f.outside,
|
|
12877
|
+
before: u.outside
|
|
12878
|
+
}, s + c + p;
|
|
12879
|
+
}
|
|
12880
|
+
function Y_(e, t, n) {
|
|
12881
|
+
return n.options.emphasis || "*";
|
|
12882
|
+
}
|
|
12883
|
+
//#endregion
|
|
12884
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js
|
|
12885
|
+
function X_(e, t) {
|
|
12886
|
+
let n = !1;
|
|
12887
|
+
return Sm(e, function(e) {
|
|
12888
|
+
if ("value" in e && /\r?\n|\r/.test(e.value) || e.type === "break") return n = !0, !1;
|
|
12889
|
+
}), !!((!e.depth || e.depth < 3) && wu(e) && (t.options.setext || n));
|
|
12890
|
+
}
|
|
12891
|
+
//#endregion
|
|
12892
|
+
//#region node_modules/mdast-util-to-markdown/lib/handle/heading.js
|
|
12893
|
+
function Z_(e, t, n, r) {
|
|
12894
|
+
let i = Math.max(Math.min(6, e.depth || 1), 1), a = n.createTracker(r);
|
|
12895
|
+
if (X_(e, n)) {
|
|
12896
|
+
let t = n.enter("headingSetext"), r = n.enter("phrasing"), o = n.containerPhrasing(e, {
|
|
12897
|
+
...a.current(),
|
|
12898
|
+
before: "\n",
|
|
12899
|
+
after: "\n"
|
|
12900
|
+
});
|
|
12901
|
+
return r(), t(), o + "\n" + (i === 1 ? "=" : "-").repeat(o.length - (Math.max(o.lastIndexOf("\r"), o.lastIndexOf("\n")) + 1));
|
|
12902
|
+
}
|
|
12903
|
+
let o = "#".repeat(i), s = n.enter("headingAtx"), c = n.enter("phrasing");
|
|
12904
|
+
a.move(o + " ");
|
|
12905
|
+
let l = n.containerPhrasing(e, {
|
|
12906
|
+
before: "# ",
|
|
12907
|
+
after: "\n",
|
|
12908
|
+
...a.current()
|
|
12909
|
+
});
|
|
12910
|
+
return /^[\t ]/.test(l) && (l = K_(l.charCodeAt(0)) + l.slice(1)), l = l ? o + " " + l : o, n.options.closeAtx && (l += " " + o), c(), s(), l;
|
|
12911
|
+
}
|
|
12912
|
+
//#endregion
|
|
12913
|
+
//#region node_modules/mdast-util-to-markdown/lib/handle/html.js
|
|
12914
|
+
Q_.peek = $_;
|
|
12915
|
+
function Q_(e) {
|
|
12916
|
+
return e.value || "";
|
|
12917
|
+
}
|
|
12918
|
+
function $_() {
|
|
12919
|
+
return "<";
|
|
12920
|
+
}
|
|
12921
|
+
//#endregion
|
|
12922
|
+
//#region node_modules/mdast-util-to-markdown/lib/handle/image.js
|
|
12923
|
+
ev.peek = tv;
|
|
12924
|
+
function ev(e, t, n, r) {
|
|
12925
|
+
let i = U_(n), a = i === "\"" ? "Quote" : "Apostrophe", o = n.enter("image"), s = n.enter("label"), c = n.createTracker(r), l = c.move("![");
|
|
12926
|
+
return l += c.move(n.safe(e.alt, {
|
|
12927
|
+
before: l,
|
|
12928
|
+
after: "]",
|
|
12929
|
+
...c.current()
|
|
12930
|
+
})), l += c.move("]("), s(), !e.url && e.title || /[\0- \u007F]/.test(e.url) ? (s = n.enter("destinationLiteral"), l += c.move("<"), l += c.move(n.safe(e.url, {
|
|
12931
|
+
before: l,
|
|
12932
|
+
after: ">",
|
|
12933
|
+
...c.current()
|
|
12934
|
+
})), l += c.move(">")) : (s = n.enter("destinationRaw"), l += c.move(n.safe(e.url, {
|
|
12935
|
+
before: l,
|
|
12936
|
+
after: e.title ? " " : ")",
|
|
12937
|
+
...c.current()
|
|
12938
|
+
}))), s(), e.title && (s = n.enter(`title${a}`), l += c.move(" " + i), l += c.move(n.safe(e.title, {
|
|
12939
|
+
before: l,
|
|
12940
|
+
after: i,
|
|
12941
|
+
...c.current()
|
|
12942
|
+
})), l += c.move(i), s()), l += c.move(")"), o(), l;
|
|
12943
|
+
}
|
|
12944
|
+
function tv() {
|
|
12945
|
+
return "!";
|
|
12946
|
+
}
|
|
12947
|
+
//#endregion
|
|
12948
|
+
//#region node_modules/mdast-util-to-markdown/lib/handle/image-reference.js
|
|
12949
|
+
nv.peek = rv;
|
|
12950
|
+
function nv(e, t, n, r) {
|
|
12951
|
+
let i = e.referenceType, a = n.enter("imageReference"), o = n.enter("label"), s = n.createTracker(r), c = s.move("!["), l = n.safe(e.alt, {
|
|
12952
|
+
before: c,
|
|
12953
|
+
after: "]",
|
|
12954
|
+
...s.current()
|
|
12955
|
+
});
|
|
12956
|
+
c += s.move(l + "]["), o();
|
|
12957
|
+
let u = n.stack;
|
|
12958
|
+
n.stack = [], o = n.enter("reference");
|
|
12959
|
+
let d = n.safe(n.associationId(e), {
|
|
12960
|
+
before: c,
|
|
12961
|
+
after: "]",
|
|
12962
|
+
...s.current()
|
|
12963
|
+
});
|
|
12964
|
+
return o(), n.stack = u, a(), i === "full" || !l || l !== d ? c += s.move(d + "]") : i === "shortcut" ? c = c.slice(0, -1) : c += s.move("]"), c;
|
|
12965
|
+
}
|
|
12966
|
+
function rv() {
|
|
12967
|
+
return "!";
|
|
12968
|
+
}
|
|
12969
|
+
//#endregion
|
|
12970
|
+
//#region node_modules/mdast-util-to-markdown/lib/handle/inline-code.js
|
|
12971
|
+
iv.peek = av;
|
|
12972
|
+
function iv(e, t, n) {
|
|
12973
|
+
let r = e.value || "", i = "`", a = -1;
|
|
12974
|
+
for (; RegExp("(^|[^`])" + i + "([^`]|$)").test(r);) i += "`";
|
|
12975
|
+
for (/[^ \r\n]/.test(r) && (/^[ \r\n]/.test(r) && /[ \r\n]$/.test(r) || /^`|`$/.test(r)) && (r = " " + r + " "); ++a < n.unsafe.length;) {
|
|
12976
|
+
let e = n.unsafe[a], t = n.compilePattern(e), i;
|
|
12977
|
+
if (e.atBreak) for (; i = t.exec(r);) {
|
|
12978
|
+
let e = i.index;
|
|
12979
|
+
r.charCodeAt(e) === 10 && r.charCodeAt(e - 1) === 13 && e--, r = r.slice(0, e) + " " + r.slice(i.index + 1);
|
|
12980
|
+
}
|
|
12981
|
+
}
|
|
12982
|
+
return i + r + i;
|
|
12983
|
+
}
|
|
12984
|
+
function av() {
|
|
12985
|
+
return "`";
|
|
12986
|
+
}
|
|
12987
|
+
//#endregion
|
|
12988
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js
|
|
12989
|
+
function ov(e, t) {
|
|
12990
|
+
let n = wu(e);
|
|
12991
|
+
return !!(!t.options.resourceLink && e.url && !e.title && e.children && e.children.length === 1 && e.children[0].type === "text" && (n === e.url || "mailto:" + n === e.url) && /^[a-z][a-z+.-]+:/i.test(e.url) && !/[\0- <>\u007F]/.test(e.url));
|
|
12992
|
+
}
|
|
12993
|
+
//#endregion
|
|
12994
|
+
//#region node_modules/mdast-util-to-markdown/lib/handle/link.js
|
|
12995
|
+
sv.peek = cv;
|
|
12996
|
+
function sv(e, t, n, r) {
|
|
12997
|
+
let i = U_(n), a = i === "\"" ? "Quote" : "Apostrophe", o = n.createTracker(r), s, c;
|
|
12998
|
+
if (ov(e, n)) {
|
|
12999
|
+
let t = n.stack;
|
|
13000
|
+
n.stack = [], s = n.enter("autolink");
|
|
13001
|
+
let r = o.move("<");
|
|
13002
|
+
return r += o.move(n.containerPhrasing(e, {
|
|
13003
|
+
before: r,
|
|
13004
|
+
after: ">",
|
|
13005
|
+
...o.current()
|
|
13006
|
+
})), r += o.move(">"), s(), n.stack = t, r;
|
|
13007
|
+
}
|
|
13008
|
+
s = n.enter("link"), c = n.enter("label");
|
|
13009
|
+
let l = o.move("[");
|
|
13010
|
+
return l += o.move(n.containerPhrasing(e, {
|
|
13011
|
+
before: l,
|
|
13012
|
+
after: "](",
|
|
13013
|
+
...o.current()
|
|
13014
|
+
})), l += o.move("]("), c(), !e.url && e.title || /[\0- \u007F]/.test(e.url) ? (c = n.enter("destinationLiteral"), l += o.move("<"), l += o.move(n.safe(e.url, {
|
|
13015
|
+
before: l,
|
|
13016
|
+
after: ">",
|
|
13017
|
+
...o.current()
|
|
13018
|
+
})), l += o.move(">")) : (c = n.enter("destinationRaw"), l += o.move(n.safe(e.url, {
|
|
13019
|
+
before: l,
|
|
13020
|
+
after: e.title ? " " : ")",
|
|
13021
|
+
...o.current()
|
|
13022
|
+
}))), c(), e.title && (c = n.enter(`title${a}`), l += o.move(" " + i), l += o.move(n.safe(e.title, {
|
|
13023
|
+
before: l,
|
|
13024
|
+
after: i,
|
|
13025
|
+
...o.current()
|
|
13026
|
+
})), l += o.move(i), c()), l += o.move(")"), s(), l;
|
|
13027
|
+
}
|
|
13028
|
+
function cv(e, t, n) {
|
|
13029
|
+
return ov(e, n) ? "<" : "[";
|
|
13030
|
+
}
|
|
13031
|
+
//#endregion
|
|
13032
|
+
//#region node_modules/mdast-util-to-markdown/lib/handle/link-reference.js
|
|
13033
|
+
lv.peek = uv;
|
|
13034
|
+
function lv(e, t, n, r) {
|
|
13035
|
+
let i = e.referenceType, a = n.enter("linkReference"), o = n.enter("label"), s = n.createTracker(r), c = s.move("["), l = n.containerPhrasing(e, {
|
|
13036
|
+
before: c,
|
|
13037
|
+
after: "]",
|
|
13038
|
+
...s.current()
|
|
13039
|
+
});
|
|
13040
|
+
c += s.move(l + "]["), o();
|
|
13041
|
+
let u = n.stack;
|
|
13042
|
+
n.stack = [], o = n.enter("reference");
|
|
13043
|
+
let d = n.safe(n.associationId(e), {
|
|
13044
|
+
before: c,
|
|
13045
|
+
after: "]",
|
|
13046
|
+
...s.current()
|
|
13047
|
+
});
|
|
13048
|
+
return o(), n.stack = u, a(), i === "full" || !l || l !== d ? c += s.move(d + "]") : i === "shortcut" ? c = c.slice(0, -1) : c += s.move("]"), c;
|
|
13049
|
+
}
|
|
13050
|
+
function uv() {
|
|
13051
|
+
return "[";
|
|
13052
|
+
}
|
|
13053
|
+
//#endregion
|
|
13054
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/check-bullet.js
|
|
13055
|
+
function dv(e) {
|
|
13056
|
+
let t = e.options.bullet || "*";
|
|
13057
|
+
if (t !== "*" && t !== "+" && t !== "-") throw Error("Cannot serialize items with `" + t + "` for `options.bullet`, expected `*`, `+`, or `-`");
|
|
13058
|
+
return t;
|
|
13059
|
+
}
|
|
13060
|
+
//#endregion
|
|
13061
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js
|
|
13062
|
+
function fv(e) {
|
|
13063
|
+
let t = dv(e), n = e.options.bulletOther;
|
|
13064
|
+
if (!n) return t === "*" ? "-" : "*";
|
|
13065
|
+
if (n !== "*" && n !== "+" && n !== "-") throw Error("Cannot serialize items with `" + n + "` for `options.bulletOther`, expected `*`, `+`, or `-`");
|
|
13066
|
+
if (n === t) throw Error("Expected `bullet` (`" + t + "`) and `bulletOther` (`" + n + "`) to be different");
|
|
13067
|
+
return n;
|
|
13068
|
+
}
|
|
13069
|
+
//#endregion
|
|
13070
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js
|
|
13071
|
+
function pv(e) {
|
|
13072
|
+
let t = e.options.bulletOrdered || ".";
|
|
13073
|
+
if (t !== "." && t !== ")") throw Error("Cannot serialize items with `" + t + "` for `options.bulletOrdered`, expected `.` or `)`");
|
|
13074
|
+
return t;
|
|
13075
|
+
}
|
|
13076
|
+
//#endregion
|
|
13077
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/check-rule.js
|
|
13078
|
+
function mv(e) {
|
|
13079
|
+
let t = e.options.rule || "*";
|
|
13080
|
+
if (t !== "*" && t !== "-" && t !== "_") throw Error("Cannot serialize rules with `" + t + "` for `options.rule`, expected `*`, `-`, or `_`");
|
|
13081
|
+
return t;
|
|
13082
|
+
}
|
|
13083
|
+
//#endregion
|
|
13084
|
+
//#region node_modules/mdast-util-to-markdown/lib/handle/list.js
|
|
13085
|
+
function hv(e, t, n, r) {
|
|
13086
|
+
let i = n.enter("list"), a = n.bulletCurrent, o = e.ordered ? pv(n) : dv(n), s = e.ordered ? o === "." ? ")" : "." : fv(n), c = t && n.bulletLastUsed ? o === n.bulletLastUsed : !1;
|
|
13087
|
+
if (!e.ordered) {
|
|
13088
|
+
let t = e.children ? e.children[0] : void 0;
|
|
13089
|
+
if ((o === "*" || o === "-") && t && (!t.children || !t.children[0]) && n.stack[n.stack.length - 1] === "list" && n.stack[n.stack.length - 2] === "listItem" && n.stack[n.stack.length - 3] === "list" && n.stack[n.stack.length - 4] === "listItem" && n.indexStack[n.indexStack.length - 1] === 0 && n.indexStack[n.indexStack.length - 2] === 0 && n.indexStack[n.indexStack.length - 3] === 0 && (c = !0), mv(n) === o && t) {
|
|
13090
|
+
let t = -1;
|
|
13091
|
+
for (; ++t < e.children.length;) {
|
|
13092
|
+
let n = e.children[t];
|
|
13093
|
+
if (n && n.type === "listItem" && n.children && n.children[0] && n.children[0].type === "thematicBreak") {
|
|
13094
|
+
c = !0;
|
|
13095
|
+
break;
|
|
13096
|
+
}
|
|
13097
|
+
}
|
|
13098
|
+
}
|
|
13099
|
+
}
|
|
13100
|
+
c && (o = s), n.bulletCurrent = o;
|
|
13101
|
+
let l = n.containerFlow(e, r);
|
|
13102
|
+
return n.bulletLastUsed = o, n.bulletCurrent = a, i(), l;
|
|
13103
|
+
}
|
|
13104
|
+
//#endregion
|
|
13105
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js
|
|
13106
|
+
function gv(e) {
|
|
13107
|
+
let t = e.options.listItemIndent || "one";
|
|
13108
|
+
if (t !== "tab" && t !== "one" && t !== "mixed") throw Error("Cannot serialize items with `" + t + "` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");
|
|
13109
|
+
return t;
|
|
13110
|
+
}
|
|
13111
|
+
//#endregion
|
|
13112
|
+
//#region node_modules/mdast-util-to-markdown/lib/handle/list-item.js
|
|
13113
|
+
function _v(e, t, n, r) {
|
|
13114
|
+
let i = gv(n), a = n.bulletCurrent || dv(n);
|
|
13115
|
+
t && t.type === "list" && t.ordered && (a = (typeof t.start == "number" && t.start > -1 ? t.start : 1) + (n.options.incrementListMarker === !1 ? 0 : t.children.indexOf(e)) + a);
|
|
13116
|
+
let o = a.length + 1;
|
|
13117
|
+
(i === "tab" || i === "mixed" && (t && t.type === "list" && t.spread || e.spread)) && (o = Math.ceil(o / 4) * 4);
|
|
13118
|
+
let s = n.createTracker(r);
|
|
13119
|
+
s.move(a + " ".repeat(o - a.length)), s.shift(o);
|
|
13120
|
+
let c = n.enter("listItem"), l = n.indentLines(n.containerFlow(e, s.current()), u);
|
|
13121
|
+
return c(), l;
|
|
13122
|
+
function u(e, t, n) {
|
|
13123
|
+
return t ? (n ? "" : " ".repeat(o)) + e : (n ? a : a + " ".repeat(o - a.length)) + e;
|
|
13124
|
+
}
|
|
13125
|
+
}
|
|
13126
|
+
//#endregion
|
|
13127
|
+
//#region node_modules/mdast-util-to-markdown/lib/handle/paragraph.js
|
|
13128
|
+
function vv(e, t, n, r) {
|
|
13129
|
+
let i = n.enter("paragraph"), a = n.enter("phrasing"), o = n.containerPhrasing(e, r);
|
|
13130
|
+
return a(), i(), o;
|
|
13131
|
+
}
|
|
13132
|
+
//#endregion
|
|
13133
|
+
//#region node_modules/mdast-util-phrasing/lib/index.js
|
|
13134
|
+
var yv = dm([
|
|
13135
|
+
"break",
|
|
13136
|
+
"delete",
|
|
13137
|
+
"emphasis",
|
|
13138
|
+
"footnote",
|
|
13139
|
+
"footnoteReference",
|
|
13140
|
+
"image",
|
|
13141
|
+
"imageReference",
|
|
13142
|
+
"inlineCode",
|
|
13143
|
+
"inlineMath",
|
|
13144
|
+
"link",
|
|
13145
|
+
"linkReference",
|
|
13146
|
+
"mdxJsxTextElement",
|
|
13147
|
+
"mdxTextExpression",
|
|
13148
|
+
"strong",
|
|
13149
|
+
"text",
|
|
13150
|
+
"textDirective"
|
|
13151
|
+
]);
|
|
13152
|
+
//#endregion
|
|
13153
|
+
//#region node_modules/mdast-util-to-markdown/lib/handle/root.js
|
|
13154
|
+
function bv(e, t, n, r) {
|
|
13155
|
+
return (e.children.some(function(e) {
|
|
13156
|
+
return yv(e);
|
|
13157
|
+
}) ? n.containerPhrasing : n.containerFlow).call(n, e, r);
|
|
13158
|
+
}
|
|
13159
|
+
//#endregion
|
|
13160
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/check-strong.js
|
|
13161
|
+
function xv(e) {
|
|
13162
|
+
let t = e.options.strong || "*";
|
|
13163
|
+
if (t !== "*" && t !== "_") throw Error("Cannot serialize strong with `" + t + "` for `options.strong`, expected `*`, or `_`");
|
|
13164
|
+
return t;
|
|
13165
|
+
}
|
|
13166
|
+
//#endregion
|
|
13167
|
+
//#region node_modules/mdast-util-to-markdown/lib/handle/strong.js
|
|
13168
|
+
Sv.peek = Cv;
|
|
13169
|
+
function Sv(e, t, n, r) {
|
|
13170
|
+
let i = xv(n), a = n.enter("strong"), o = n.createTracker(r), s = o.move(i + i), c = o.move(n.containerPhrasing(e, {
|
|
13171
|
+
after: i,
|
|
13172
|
+
before: s,
|
|
13173
|
+
...o.current()
|
|
13174
|
+
})), l = c.charCodeAt(0), u = q_(r.before.charCodeAt(r.before.length - 1), l, i);
|
|
13175
|
+
u.inside && (c = K_(l) + c.slice(1));
|
|
13176
|
+
let d = c.charCodeAt(c.length - 1), f = q_(r.after.charCodeAt(0), d, i);
|
|
13177
|
+
f.inside && (c = c.slice(0, -1) + K_(d));
|
|
13178
|
+
let p = o.move(i + i);
|
|
13179
|
+
return a(), n.attentionEncodeSurroundingInfo = {
|
|
13180
|
+
after: f.outside,
|
|
13181
|
+
before: u.outside
|
|
13182
|
+
}, s + c + p;
|
|
13183
|
+
}
|
|
13184
|
+
function Cv(e, t, n) {
|
|
13185
|
+
return n.options.strong || "*";
|
|
13186
|
+
}
|
|
13187
|
+
//#endregion
|
|
13188
|
+
//#region node_modules/mdast-util-to-markdown/lib/handle/text.js
|
|
13189
|
+
function wv(e, t, n, r) {
|
|
13190
|
+
return n.safe(e.value, r);
|
|
13191
|
+
}
|
|
13192
|
+
//#endregion
|
|
13193
|
+
//#region node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js
|
|
13194
|
+
function Tv(e) {
|
|
13195
|
+
let t = e.options.ruleRepetition || 3;
|
|
13196
|
+
if (t < 3) throw Error("Cannot serialize rules with repetition `" + t + "` for `options.ruleRepetition`, expected `3` or more");
|
|
13197
|
+
return t;
|
|
13198
|
+
}
|
|
13199
|
+
//#endregion
|
|
13200
|
+
//#region node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js
|
|
13201
|
+
function Ev(e, t, n) {
|
|
13202
|
+
let r = (mv(n) + (n.options.ruleSpaces ? " " : "")).repeat(Tv(n));
|
|
13203
|
+
return n.options.ruleSpaces ? r.slice(0, -1) : r;
|
|
13204
|
+
}
|
|
13205
|
+
//#endregion
|
|
13206
|
+
//#region node_modules/mdast-util-to-markdown/lib/handle/index.js
|
|
13207
|
+
var Dv = {
|
|
13208
|
+
blockquote: N_,
|
|
13209
|
+
break: L_,
|
|
13210
|
+
code: V_,
|
|
13211
|
+
definition: W_,
|
|
13212
|
+
emphasis: J_,
|
|
13213
|
+
hardBreak: L_,
|
|
13214
|
+
heading: Z_,
|
|
13215
|
+
html: Q_,
|
|
13216
|
+
image: ev,
|
|
13217
|
+
imageReference: nv,
|
|
13218
|
+
inlineCode: iv,
|
|
13219
|
+
link: sv,
|
|
13220
|
+
linkReference: lv,
|
|
13221
|
+
list: hv,
|
|
13222
|
+
listItem: _v,
|
|
13223
|
+
paragraph: vv,
|
|
13224
|
+
root: bv,
|
|
13225
|
+
strong: Sv,
|
|
13226
|
+
text: wv,
|
|
13227
|
+
thematicBreak: Ev
|
|
13228
|
+
};
|
|
13229
|
+
//#endregion
|
|
13230
|
+
//#region node_modules/mdast-util-gfm-table/lib/index.js
|
|
13231
|
+
function Ov() {
|
|
13232
|
+
return {
|
|
13233
|
+
enter: {
|
|
13234
|
+
table: kv,
|
|
13235
|
+
tableData: Nv,
|
|
13236
|
+
tableHeader: Nv,
|
|
13237
|
+
tableRow: jv
|
|
13238
|
+
},
|
|
13239
|
+
exit: {
|
|
13240
|
+
codeText: Pv,
|
|
13241
|
+
table: Av,
|
|
13242
|
+
tableData: Mv,
|
|
13243
|
+
tableHeader: Mv,
|
|
13244
|
+
tableRow: Mv
|
|
13245
|
+
}
|
|
13246
|
+
};
|
|
13247
|
+
}
|
|
13248
|
+
function kv(e) {
|
|
13249
|
+
let t = e._align;
|
|
13250
|
+
this.enter({
|
|
13251
|
+
type: "table",
|
|
13252
|
+
align: t.map(function(e) {
|
|
13253
|
+
return e === "none" ? null : e;
|
|
13254
|
+
}),
|
|
13255
|
+
children: []
|
|
13256
|
+
}, e), this.data.inTable = !0;
|
|
13257
|
+
}
|
|
13258
|
+
function Av(e) {
|
|
13259
|
+
this.exit(e), this.data.inTable = void 0;
|
|
13260
|
+
}
|
|
13261
|
+
function jv(e) {
|
|
13262
|
+
this.enter({
|
|
13263
|
+
type: "tableRow",
|
|
13264
|
+
children: []
|
|
13265
|
+
}, e);
|
|
13266
|
+
}
|
|
13267
|
+
function Mv(e) {
|
|
13268
|
+
this.exit(e);
|
|
13269
|
+
}
|
|
13270
|
+
function Nv(e) {
|
|
13271
|
+
this.enter({
|
|
13272
|
+
type: "tableCell",
|
|
13273
|
+
children: []
|
|
13274
|
+
}, e);
|
|
13275
|
+
}
|
|
13276
|
+
function Pv(e) {
|
|
13277
|
+
let t = this.resume();
|
|
13278
|
+
this.data.inTable && (t = t.replace(/\\([\\|])/g, Fv));
|
|
13279
|
+
let n = this.stack[this.stack.length - 1];
|
|
13280
|
+
n.type, n.value = t, this.exit(e);
|
|
13281
|
+
}
|
|
13282
|
+
function Fv(e, t) {
|
|
13283
|
+
return t === "|" ? t : e;
|
|
13284
|
+
}
|
|
13285
|
+
function Iv(e) {
|
|
13286
|
+
let t = e || {}, n = t.tableCellPadding, r = t.tablePipeAlign, i = t.stringLength, a = n ? " " : "|";
|
|
13287
|
+
return {
|
|
13288
|
+
unsafe: [
|
|
13289
|
+
{
|
|
13290
|
+
character: "\r",
|
|
13291
|
+
inConstruct: "tableCell"
|
|
13292
|
+
},
|
|
13293
|
+
{
|
|
13294
|
+
character: "\n",
|
|
13295
|
+
inConstruct: "tableCell"
|
|
13296
|
+
},
|
|
13297
|
+
{
|
|
13298
|
+
atBreak: !0,
|
|
13299
|
+
character: "|",
|
|
13300
|
+
after: "[ :-]"
|
|
13301
|
+
},
|
|
13302
|
+
{
|
|
13303
|
+
character: "|",
|
|
13304
|
+
inConstruct: "tableCell"
|
|
13305
|
+
},
|
|
13306
|
+
{
|
|
13307
|
+
atBreak: !0,
|
|
13308
|
+
character: ":",
|
|
13309
|
+
after: "-"
|
|
13310
|
+
},
|
|
13311
|
+
{
|
|
13312
|
+
atBreak: !0,
|
|
13313
|
+
character: "-",
|
|
13314
|
+
after: "[:|-]"
|
|
13315
|
+
}
|
|
13316
|
+
],
|
|
13317
|
+
handlers: {
|
|
13318
|
+
inlineCode: f,
|
|
13319
|
+
table: o,
|
|
13320
|
+
tableCell: c,
|
|
13321
|
+
tableRow: s
|
|
13322
|
+
}
|
|
13323
|
+
};
|
|
13324
|
+
function o(e, t, n, r) {
|
|
13325
|
+
return l(u(e, n, r), e.align);
|
|
13326
|
+
}
|
|
13327
|
+
function s(e, t, n, r) {
|
|
13328
|
+
let i = l([d(e, n, r)]);
|
|
13329
|
+
return i.slice(0, i.indexOf("\n"));
|
|
13330
|
+
}
|
|
13331
|
+
function c(e, t, n, r) {
|
|
13332
|
+
let i = n.enter("tableCell"), o = n.enter("phrasing"), s = n.containerPhrasing(e, {
|
|
13333
|
+
...r,
|
|
13334
|
+
before: a,
|
|
13335
|
+
after: a
|
|
13336
|
+
});
|
|
13337
|
+
return o(), i(), s;
|
|
13338
|
+
}
|
|
13339
|
+
function l(e, t) {
|
|
13340
|
+
return A_(e, {
|
|
13341
|
+
align: t,
|
|
13342
|
+
alignDelimiters: r,
|
|
13343
|
+
padding: n,
|
|
13344
|
+
stringLength: i
|
|
13345
|
+
});
|
|
13346
|
+
}
|
|
13347
|
+
function u(e, t, n) {
|
|
13348
|
+
let r = e.children, i = -1, a = [], o = t.enter("table");
|
|
13349
|
+
for (; ++i < r.length;) a[i] = d(r[i], t, n);
|
|
13350
|
+
return o(), a;
|
|
13351
|
+
}
|
|
13352
|
+
function d(e, t, n) {
|
|
13353
|
+
let r = e.children, i = -1, a = [], o = t.enter("tableRow");
|
|
13354
|
+
for (; ++i < r.length;) a[i] = c(r[i], e, t, n);
|
|
13355
|
+
return o(), a;
|
|
13356
|
+
}
|
|
13357
|
+
function f(e, t, n) {
|
|
13358
|
+
let r = Dv.inlineCode(e, t, n);
|
|
13359
|
+
return n.stack.includes("tableCell") && (r = r.replace(/\|/g, "\\$&")), r;
|
|
13360
|
+
}
|
|
13361
|
+
}
|
|
13362
|
+
//#endregion
|
|
13363
|
+
//#region node_modules/mdast-util-gfm-task-list-item/lib/index.js
|
|
13364
|
+
function Lv() {
|
|
13365
|
+
return { exit: {
|
|
13366
|
+
taskListCheckValueChecked: zv,
|
|
13367
|
+
taskListCheckValueUnchecked: zv,
|
|
13368
|
+
paragraph: Bv
|
|
13369
|
+
} };
|
|
13370
|
+
}
|
|
13371
|
+
function Rv() {
|
|
13372
|
+
return {
|
|
13373
|
+
unsafe: [{
|
|
13374
|
+
atBreak: !0,
|
|
13375
|
+
character: "-",
|
|
13376
|
+
after: "[:|-]"
|
|
13377
|
+
}],
|
|
13378
|
+
handlers: { listItem: Vv }
|
|
13379
|
+
};
|
|
13380
|
+
}
|
|
13381
|
+
function zv(e) {
|
|
13382
|
+
let t = this.stack[this.stack.length - 2];
|
|
13383
|
+
t.type, t.checked = e.type === "taskListCheckValueChecked";
|
|
13384
|
+
}
|
|
13385
|
+
function Bv(e) {
|
|
13386
|
+
let t = this.stack[this.stack.length - 2];
|
|
13387
|
+
if (t && t.type === "listItem" && typeof t.checked == "boolean") {
|
|
13388
|
+
let e = this.stack[this.stack.length - 1];
|
|
13389
|
+
e.type;
|
|
13390
|
+
let n = e.children[0];
|
|
13391
|
+
if (n && n.type === "text") {
|
|
13392
|
+
let r = t.children, i = -1, a;
|
|
13393
|
+
for (; ++i < r.length;) {
|
|
13394
|
+
let e = r[i];
|
|
13395
|
+
if (e.type === "paragraph") {
|
|
13396
|
+
a = e;
|
|
13397
|
+
break;
|
|
13398
|
+
}
|
|
13399
|
+
}
|
|
13400
|
+
a === e && (n.value = n.value.slice(1), n.value.length === 0 ? e.children.shift() : e.position && n.position && typeof n.position.start.offset == "number" && (n.position.start.column++, n.position.start.offset++, e.position.start = Object.assign({}, n.position.start)));
|
|
13401
|
+
}
|
|
13402
|
+
}
|
|
13403
|
+
this.exit(e);
|
|
13404
|
+
}
|
|
13405
|
+
function Vv(e, t, n, r) {
|
|
13406
|
+
let i = e.children[0], a = typeof e.checked == "boolean" && i && i.type === "paragraph", o = "[" + (e.checked ? "x" : " ") + "] ", s = n.createTracker(r);
|
|
13407
|
+
a && s.move(o);
|
|
13408
|
+
let c = Dv.listItem(e, t, n, {
|
|
13409
|
+
...r,
|
|
13410
|
+
...s.current()
|
|
13411
|
+
});
|
|
13412
|
+
return a && (c = c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/, l)), c;
|
|
13413
|
+
function l(e) {
|
|
13414
|
+
return e + o;
|
|
13415
|
+
}
|
|
13416
|
+
}
|
|
13417
|
+
//#endregion
|
|
13418
|
+
//#region node_modules/mdast-util-gfm/lib/index.js
|
|
13419
|
+
function Hv() {
|
|
13420
|
+
return [
|
|
13421
|
+
Jg(),
|
|
13422
|
+
v_(),
|
|
13423
|
+
C_(),
|
|
13424
|
+
Ov(),
|
|
13425
|
+
Lv()
|
|
13426
|
+
];
|
|
13427
|
+
}
|
|
13428
|
+
function Uv(e) {
|
|
13429
|
+
return { extensions: [
|
|
13430
|
+
Yg(),
|
|
13431
|
+
y_(e),
|
|
13432
|
+
w_(),
|
|
13433
|
+
Iv(e),
|
|
13434
|
+
Rv()
|
|
13435
|
+
] };
|
|
13436
|
+
}
|
|
13437
|
+
//#endregion
|
|
13438
|
+
//#region node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js
|
|
13439
|
+
var Wv = {
|
|
13440
|
+
tokenize: iy,
|
|
13441
|
+
partial: !0
|
|
13442
|
+
}, Gv = {
|
|
13443
|
+
tokenize: ay,
|
|
13444
|
+
partial: !0
|
|
13445
|
+
}, Kv = {
|
|
13446
|
+
tokenize: oy,
|
|
13447
|
+
partial: !0
|
|
13448
|
+
}, qv = {
|
|
13449
|
+
tokenize: sy,
|
|
13450
|
+
partial: !0
|
|
13451
|
+
}, Jv = {
|
|
13452
|
+
tokenize: cy,
|
|
13453
|
+
partial: !0
|
|
13454
|
+
}, Yv = {
|
|
13455
|
+
name: "wwwAutolink",
|
|
13456
|
+
tokenize: ny,
|
|
13457
|
+
previous: ly
|
|
13458
|
+
}, Xv = {
|
|
13459
|
+
name: "protocolAutolink",
|
|
13460
|
+
tokenize: ry,
|
|
13461
|
+
previous: uy
|
|
13462
|
+
}, Zv = {
|
|
13463
|
+
name: "emailAutolink",
|
|
13464
|
+
tokenize: ty,
|
|
13465
|
+
previous: dy
|
|
13466
|
+
}, Qv = {};
|
|
13467
|
+
function $v() {
|
|
13468
|
+
return { text: Qv };
|
|
13469
|
+
}
|
|
13470
|
+
for (var ey = 48; ey < 123;) Qv[ey] = Zv, ey++, ey === 58 ? ey = 65 : ey === 91 && (ey = 97);
|
|
13471
|
+
Qv[43] = Zv, Qv[45] = Zv, Qv[46] = Zv, Qv[95] = Zv, Qv[72] = [Zv, Xv], Qv[104] = [Zv, Xv], Qv[87] = [Zv, Yv], Qv[119] = [Zv, Yv];
|
|
13472
|
+
function ty(e, t, n) {
|
|
13473
|
+
let r = this, i, a;
|
|
13474
|
+
return o;
|
|
13475
|
+
function o(t) {
|
|
13476
|
+
return !fy(t) || !dy.call(r, r.previous) || py(r.events) ? n(t) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), s(t));
|
|
13477
|
+
}
|
|
13478
|
+
function s(t) {
|
|
13479
|
+
return fy(t) ? (e.consume(t), s) : t === 64 ? (e.consume(t), c) : n(t);
|
|
13480
|
+
}
|
|
13481
|
+
function c(t) {
|
|
13482
|
+
return t === 46 ? e.check(Jv, u, l)(t) : t === 45 || t === 95 || J(t) ? (a = !0, e.consume(t), c) : u(t);
|
|
13483
|
+
}
|
|
13484
|
+
function l(t) {
|
|
13485
|
+
return e.consume(t), i = !0, c;
|
|
13486
|
+
}
|
|
13487
|
+
function u(o) {
|
|
13488
|
+
return a && i && q(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(o)) : n(o);
|
|
13489
|
+
}
|
|
13490
|
+
}
|
|
13491
|
+
function ny(e, t, n) {
|
|
13492
|
+
let r = this;
|
|
13493
|
+
return i;
|
|
13494
|
+
function i(t) {
|
|
13495
|
+
return t !== 87 && t !== 119 || !ly.call(r, r.previous) || py(r.events) ? n(t) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(Wv, e.attempt(Gv, e.attempt(Kv, a), n), n)(t));
|
|
13496
|
+
}
|
|
13497
|
+
function a(n) {
|
|
13498
|
+
return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(n);
|
|
13499
|
+
}
|
|
13500
|
+
}
|
|
13501
|
+
function ry(e, t, n) {
|
|
13502
|
+
let r = this, i = "", a = !1;
|
|
13503
|
+
return o;
|
|
13504
|
+
function o(t) {
|
|
13505
|
+
return (t === 72 || t === 104) && uy.call(r, r.previous) && !py(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), i += String.fromCodePoint(t), e.consume(t), s) : n(t);
|
|
13506
|
+
}
|
|
13507
|
+
function s(t) {
|
|
13508
|
+
if (q(t) && i.length < 5) return i += String.fromCodePoint(t), e.consume(t), s;
|
|
13509
|
+
if (t === 58) {
|
|
13510
|
+
let n = i.toLowerCase();
|
|
13511
|
+
if (n === "http" || n === "https") return e.consume(t), c;
|
|
13512
|
+
}
|
|
13513
|
+
return n(t);
|
|
13514
|
+
}
|
|
13515
|
+
function c(t) {
|
|
13516
|
+
return t === 47 ? (e.consume(t), a ? l : (a = !0, c)) : n(t);
|
|
13517
|
+
}
|
|
13518
|
+
function l(t) {
|
|
13519
|
+
return t === null || zu(t) || X(t) || Wu(t) || Uu(t) ? n(t) : e.attempt(Gv, e.attempt(Kv, u), n)(t);
|
|
13520
|
+
}
|
|
13521
|
+
function u(n) {
|
|
13522
|
+
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(n);
|
|
13523
|
+
}
|
|
13524
|
+
}
|
|
13525
|
+
function iy(e, t, n) {
|
|
13526
|
+
let r = 0;
|
|
13527
|
+
return i;
|
|
13528
|
+
function i(t) {
|
|
13529
|
+
return (t === 87 || t === 119) && r < 3 ? (r++, e.consume(t), i) : t === 46 && r === 3 ? (e.consume(t), a) : n(t);
|
|
13530
|
+
}
|
|
13531
|
+
function a(e) {
|
|
13532
|
+
return e === null ? n(e) : t(e);
|
|
13533
|
+
}
|
|
13534
|
+
}
|
|
13535
|
+
function ay(e, t, n) {
|
|
13536
|
+
let r, i, a;
|
|
13537
|
+
return o;
|
|
13538
|
+
function o(t) {
|
|
13539
|
+
return t === 46 || t === 95 ? e.check(qv, c, s)(t) : t === null || X(t) || Wu(t) || t !== 45 && Uu(t) ? c(t) : (a = !0, e.consume(t), o);
|
|
13540
|
+
}
|
|
13541
|
+
function s(t) {
|
|
13542
|
+
return t === 95 ? r = !0 : (i = r, r = void 0), e.consume(t), o;
|
|
13543
|
+
}
|
|
13544
|
+
function c(e) {
|
|
13545
|
+
return i || r || !a ? n(e) : t(e);
|
|
13546
|
+
}
|
|
13547
|
+
}
|
|
13548
|
+
function oy(e, t) {
|
|
13549
|
+
let n = 0, r = 0;
|
|
13550
|
+
return i;
|
|
13551
|
+
function i(o) {
|
|
13552
|
+
return o === 40 ? (n++, e.consume(o), i) : o === 41 && r < n ? a(o) : o === 33 || o === 34 || o === 38 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 60 || o === 63 || o === 93 || o === 95 || o === 126 ? e.check(qv, t, a)(o) : o === null || X(o) || Wu(o) ? t(o) : (e.consume(o), i);
|
|
13553
|
+
}
|
|
13554
|
+
function a(t) {
|
|
13555
|
+
return t === 41 && r++, e.consume(t), i;
|
|
13556
|
+
}
|
|
13557
|
+
}
|
|
13558
|
+
function sy(e, t, n) {
|
|
13559
|
+
return r;
|
|
13560
|
+
function r(o) {
|
|
13561
|
+
return o === 33 || o === 34 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 63 || o === 95 || o === 126 ? (e.consume(o), r) : o === 38 ? (e.consume(o), a) : o === 93 ? (e.consume(o), i) : o === 60 || o === null || X(o) || Wu(o) ? t(o) : n(o);
|
|
13562
|
+
}
|
|
13563
|
+
function i(e) {
|
|
13564
|
+
return e === null || e === 40 || e === 91 || X(e) || Wu(e) ? t(e) : r(e);
|
|
13565
|
+
}
|
|
13566
|
+
function a(e) {
|
|
13567
|
+
return q(e) ? o(e) : n(e);
|
|
13568
|
+
}
|
|
13569
|
+
function o(t) {
|
|
13570
|
+
return t === 59 ? (e.consume(t), r) : q(t) ? (e.consume(t), o) : n(t);
|
|
13571
|
+
}
|
|
13572
|
+
}
|
|
13573
|
+
function cy(e, t, n) {
|
|
13574
|
+
return r;
|
|
13575
|
+
function r(t) {
|
|
13576
|
+
return e.consume(t), i;
|
|
13577
|
+
}
|
|
13578
|
+
function i(e) {
|
|
13579
|
+
return J(e) ? n(e) : t(e);
|
|
13580
|
+
}
|
|
13581
|
+
}
|
|
13582
|
+
function ly(e) {
|
|
13583
|
+
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || X(e);
|
|
13584
|
+
}
|
|
13585
|
+
function uy(e) {
|
|
13586
|
+
return !q(e);
|
|
13587
|
+
}
|
|
13588
|
+
function dy(e) {
|
|
13589
|
+
return !(e === 47 || fy(e));
|
|
13590
|
+
}
|
|
13591
|
+
function fy(e) {
|
|
13592
|
+
return e === 43 || e === 45 || e === 46 || e === 95 || J(e);
|
|
13593
|
+
}
|
|
13594
|
+
function py(e) {
|
|
13595
|
+
let t = e.length, n = !1;
|
|
13596
|
+
for (; t--;) {
|
|
13597
|
+
let r = e[t][1];
|
|
13598
|
+
if ((r.type === "labelLink" || r.type === "labelImage") && !r._balanced) {
|
|
13599
|
+
n = !0;
|
|
13600
|
+
break;
|
|
13601
|
+
}
|
|
13602
|
+
if (r._gfmAutolinkLiteralWalkedInto) {
|
|
13603
|
+
n = !1;
|
|
13604
|
+
break;
|
|
13605
|
+
}
|
|
13606
|
+
}
|
|
13607
|
+
return e.length > 0 && !n && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), n;
|
|
13608
|
+
}
|
|
13609
|
+
//#endregion
|
|
13610
|
+
//#region node_modules/micromark-extension-gfm-footnote/lib/syntax.js
|
|
13611
|
+
var my = {
|
|
13612
|
+
tokenize: Sy,
|
|
13613
|
+
partial: !0
|
|
13614
|
+
};
|
|
13615
|
+
function hy() {
|
|
13616
|
+
return {
|
|
13617
|
+
document: { 91: {
|
|
13618
|
+
name: "gfmFootnoteDefinition",
|
|
13619
|
+
tokenize: yy,
|
|
13620
|
+
continuation: { tokenize: by },
|
|
13621
|
+
exit: xy
|
|
13622
|
+
} },
|
|
13623
|
+
text: {
|
|
13624
|
+
91: {
|
|
13625
|
+
name: "gfmFootnoteCall",
|
|
13626
|
+
tokenize: vy
|
|
13627
|
+
},
|
|
13628
|
+
93: {
|
|
13629
|
+
name: "gfmPotentialFootnoteCall",
|
|
13630
|
+
add: "after",
|
|
13631
|
+
tokenize: gy,
|
|
13632
|
+
resolveTo: _y
|
|
13633
|
+
}
|
|
13634
|
+
}
|
|
13635
|
+
};
|
|
13636
|
+
}
|
|
13637
|
+
function gy(e, t, n) {
|
|
13638
|
+
let r = this, i = r.events.length, a = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []), o;
|
|
13639
|
+
for (; i--;) {
|
|
13640
|
+
let e = r.events[i][1];
|
|
13641
|
+
if (e.type === "labelImage") {
|
|
13642
|
+
o = e;
|
|
13643
|
+
break;
|
|
13644
|
+
}
|
|
13645
|
+
if (e.type === "gfmFootnoteCall" || e.type === "labelLink" || e.type === "label" || e.type === "image" || e.type === "link") break;
|
|
13646
|
+
}
|
|
13647
|
+
return s;
|
|
13648
|
+
function s(i) {
|
|
13649
|
+
if (!o || !o._balanced) return n(i);
|
|
13650
|
+
let s = Lu(r.sliceSerialize({
|
|
13651
|
+
start: o.end,
|
|
13652
|
+
end: r.now()
|
|
13653
|
+
}));
|
|
13654
|
+
return s.codePointAt(0) !== 94 || !a.includes(s.slice(1)) ? n(i) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(i), e.exit("gfmFootnoteCallLabelMarker"), t(i));
|
|
13655
|
+
}
|
|
13656
|
+
}
|
|
13657
|
+
function _y(e, t) {
|
|
13658
|
+
let n = e.length;
|
|
13659
|
+
for (; n--;) if (e[n][1].type === "labelImage" && e[n][0] === "enter") {
|
|
13660
|
+
e[n][1];
|
|
13661
|
+
break;
|
|
13662
|
+
}
|
|
13663
|
+
e[n + 1][1].type = "data", e[n + 3][1].type = "gfmFootnoteCallLabelMarker";
|
|
13664
|
+
let r = {
|
|
13665
|
+
type: "gfmFootnoteCall",
|
|
13666
|
+
start: Object.assign({}, e[n + 3][1].start),
|
|
13667
|
+
end: Object.assign({}, e[e.length - 1][1].end)
|
|
13668
|
+
}, i = {
|
|
13669
|
+
type: "gfmFootnoteCallMarker",
|
|
13670
|
+
start: Object.assign({}, e[n + 3][1].end),
|
|
13671
|
+
end: Object.assign({}, e[n + 3][1].end)
|
|
13672
|
+
};
|
|
13673
|
+
i.end.column++, i.end.offset++, i.end._bufferIndex++;
|
|
13674
|
+
let a = {
|
|
13675
|
+
type: "gfmFootnoteCallString",
|
|
13676
|
+
start: Object.assign({}, i.end),
|
|
13677
|
+
end: Object.assign({}, e[e.length - 1][1].start)
|
|
13678
|
+
}, o = {
|
|
13679
|
+
type: "chunkString",
|
|
13680
|
+
contentType: "string",
|
|
13681
|
+
start: Object.assign({}, a.start),
|
|
13682
|
+
end: Object.assign({}, a.end)
|
|
13683
|
+
}, s = [
|
|
13684
|
+
e[n + 1],
|
|
13685
|
+
e[n + 2],
|
|
13686
|
+
[
|
|
13687
|
+
"enter",
|
|
13688
|
+
r,
|
|
13689
|
+
t
|
|
13690
|
+
],
|
|
13691
|
+
e[n + 3],
|
|
13692
|
+
e[n + 4],
|
|
13693
|
+
[
|
|
13694
|
+
"enter",
|
|
13695
|
+
i,
|
|
13696
|
+
t
|
|
13697
|
+
],
|
|
13698
|
+
[
|
|
13699
|
+
"exit",
|
|
13700
|
+
i,
|
|
13701
|
+
t
|
|
13702
|
+
],
|
|
13703
|
+
[
|
|
13704
|
+
"enter",
|
|
13705
|
+
a,
|
|
13706
|
+
t
|
|
13707
|
+
],
|
|
13708
|
+
[
|
|
13709
|
+
"enter",
|
|
13710
|
+
o,
|
|
13711
|
+
t
|
|
13712
|
+
],
|
|
13713
|
+
[
|
|
13714
|
+
"exit",
|
|
13715
|
+
o,
|
|
13716
|
+
t
|
|
13717
|
+
],
|
|
13718
|
+
[
|
|
13719
|
+
"exit",
|
|
13720
|
+
a,
|
|
13721
|
+
t
|
|
13722
|
+
],
|
|
13723
|
+
e[e.length - 2],
|
|
13724
|
+
e[e.length - 1],
|
|
13725
|
+
[
|
|
13726
|
+
"exit",
|
|
13727
|
+
r,
|
|
13728
|
+
t
|
|
13729
|
+
]
|
|
13730
|
+
];
|
|
13731
|
+
return e.splice(n, e.length - n + 1, ...s), e;
|
|
13732
|
+
}
|
|
13733
|
+
function vy(e, t, n) {
|
|
13734
|
+
let r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []), a = 0, o;
|
|
13735
|
+
return s;
|
|
13736
|
+
function s(t) {
|
|
13737
|
+
return e.enter("gfmFootnoteCall"), e.enter("gfmFootnoteCallLabelMarker"), e.consume(t), e.exit("gfmFootnoteCallLabelMarker"), c;
|
|
13738
|
+
}
|
|
13739
|
+
function c(t) {
|
|
13740
|
+
return t === 94 ? (e.enter("gfmFootnoteCallMarker"), e.consume(t), e.exit("gfmFootnoteCallMarker"), e.enter("gfmFootnoteCallString"), e.enter("chunkString").contentType = "string", l) : n(t);
|
|
13741
|
+
}
|
|
13742
|
+
function l(s) {
|
|
13743
|
+
if (a > 999 || s === 93 && !o || s === null || s === 91 || X(s)) return n(s);
|
|
13744
|
+
if (s === 93) {
|
|
13745
|
+
e.exit("chunkString");
|
|
13746
|
+
let a = e.exit("gfmFootnoteCallString");
|
|
13747
|
+
return i.includes(Lu(r.sliceSerialize(a))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(s), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(s);
|
|
13748
|
+
}
|
|
13749
|
+
return X(s) || (o = !0), a++, e.consume(s), s === 92 ? u : l;
|
|
13750
|
+
}
|
|
13751
|
+
function u(t) {
|
|
13752
|
+
return t === 91 || t === 92 || t === 93 ? (e.consume(t), a++, l) : l(t);
|
|
13753
|
+
}
|
|
13754
|
+
}
|
|
13755
|
+
function yy(e, t, n) {
|
|
13756
|
+
let r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []), a, o = 0, s;
|
|
13757
|
+
return c;
|
|
13758
|
+
function c(t) {
|
|
13759
|
+
return e.enter("gfmFootnoteDefinition")._container = !0, e.enter("gfmFootnoteDefinitionLabel"), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(t), e.exit("gfmFootnoteDefinitionLabelMarker"), l;
|
|
13760
|
+
}
|
|
13761
|
+
function l(t) {
|
|
13762
|
+
return t === 94 ? (e.enter("gfmFootnoteDefinitionMarker"), e.consume(t), e.exit("gfmFootnoteDefinitionMarker"), e.enter("gfmFootnoteDefinitionLabelString"), e.enter("chunkString").contentType = "string", u) : n(t);
|
|
13763
|
+
}
|
|
13764
|
+
function u(t) {
|
|
13765
|
+
if (o > 999 || t === 93 && !s || t === null || t === 91 || X(t)) return n(t);
|
|
13766
|
+
if (t === 93) {
|
|
13767
|
+
e.exit("chunkString");
|
|
13768
|
+
let n = e.exit("gfmFootnoteDefinitionLabelString");
|
|
13769
|
+
return a = Lu(r.sliceSerialize(n)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(t), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), f;
|
|
13770
|
+
}
|
|
13771
|
+
return X(t) || (s = !0), o++, e.consume(t), t === 92 ? d : u;
|
|
13772
|
+
}
|
|
13773
|
+
function d(t) {
|
|
13774
|
+
return t === 91 || t === 92 || t === 93 ? (e.consume(t), o++, u) : u(t);
|
|
13775
|
+
}
|
|
13776
|
+
function f(t) {
|
|
13777
|
+
return t === 58 ? (e.enter("definitionMarker"), e.consume(t), e.exit("definitionMarker"), i.includes(a) || i.push(a), Q(e, p, "gfmFootnoteDefinitionWhitespace")) : n(t);
|
|
13778
|
+
}
|
|
13779
|
+
function p(e) {
|
|
13780
|
+
return t(e);
|
|
13781
|
+
}
|
|
13782
|
+
}
|
|
13783
|
+
function by(e, t, n) {
|
|
13784
|
+
return e.check(sd, t, e.attempt(my, t, n));
|
|
13785
|
+
}
|
|
13786
|
+
function xy(e) {
|
|
13787
|
+
e.exit("gfmFootnoteDefinition");
|
|
13788
|
+
}
|
|
13789
|
+
function Sy(e, t, n) {
|
|
13790
|
+
let r = this;
|
|
13791
|
+
return Q(e, i, "gfmFootnoteDefinitionIndent", 5);
|
|
13792
|
+
function i(e) {
|
|
13793
|
+
let i = r.events[r.events.length - 1];
|
|
13794
|
+
return i && i[1].type === "gfmFootnoteDefinitionIndent" && i[2].sliceSerialize(i[1], !0).length === 4 ? t(e) : n(e);
|
|
13795
|
+
}
|
|
13796
|
+
}
|
|
13797
|
+
//#endregion
|
|
13798
|
+
//#region node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js
|
|
13799
|
+
function Cy(e) {
|
|
13800
|
+
let t = (e || {}).singleTilde, n = {
|
|
13801
|
+
name: "strikethrough",
|
|
13802
|
+
tokenize: i,
|
|
13803
|
+
resolveAll: r
|
|
13804
|
+
};
|
|
13805
|
+
return t ??= !0, {
|
|
13806
|
+
text: { 126: n },
|
|
13807
|
+
insideSpan: { null: [n] },
|
|
13808
|
+
attentionMarkers: { null: [126] }
|
|
13809
|
+
};
|
|
13810
|
+
function r(e, t) {
|
|
13811
|
+
let n = -1;
|
|
13812
|
+
for (; ++n < e.length;) if (e[n][0] === "enter" && e[n][1].type === "strikethroughSequenceTemporary" && e[n][1]._close) {
|
|
13813
|
+
let r = n;
|
|
13814
|
+
for (; r--;) if (e[r][0] === "exit" && e[r][1].type === "strikethroughSequenceTemporary" && e[r][1]._open && e[n][1].end.offset - e[n][1].start.offset === e[r][1].end.offset - e[r][1].start.offset) {
|
|
13815
|
+
e[n][1].type = "strikethroughSequence", e[r][1].type = "strikethroughSequence";
|
|
13816
|
+
let i = {
|
|
13817
|
+
type: "strikethrough",
|
|
13818
|
+
start: Object.assign({}, e[r][1].start),
|
|
13819
|
+
end: Object.assign({}, e[n][1].end)
|
|
13820
|
+
}, a = {
|
|
13821
|
+
type: "strikethroughText",
|
|
13822
|
+
start: Object.assign({}, e[r][1].end),
|
|
13823
|
+
end: Object.assign({}, e[n][1].start)
|
|
13824
|
+
}, o = [
|
|
13825
|
+
[
|
|
13826
|
+
"enter",
|
|
13827
|
+
i,
|
|
13828
|
+
t
|
|
13829
|
+
],
|
|
13830
|
+
[
|
|
13831
|
+
"enter",
|
|
13832
|
+
e[r][1],
|
|
13833
|
+
t
|
|
13834
|
+
],
|
|
13835
|
+
[
|
|
13836
|
+
"exit",
|
|
13837
|
+
e[r][1],
|
|
13838
|
+
t
|
|
13839
|
+
],
|
|
13840
|
+
[
|
|
13841
|
+
"enter",
|
|
13842
|
+
a,
|
|
13843
|
+
t
|
|
13844
|
+
]
|
|
13845
|
+
], s = t.parser.constructs.insideSpan.null;
|
|
13846
|
+
s && Au(o, o.length, 0, ed(s, e.slice(r + 1, n), t)), Au(o, o.length, 0, [
|
|
13847
|
+
[
|
|
13848
|
+
"exit",
|
|
13849
|
+
a,
|
|
13850
|
+
t
|
|
13851
|
+
],
|
|
13852
|
+
[
|
|
13853
|
+
"enter",
|
|
13854
|
+
e[n][1],
|
|
13855
|
+
t
|
|
13856
|
+
],
|
|
13857
|
+
[
|
|
13858
|
+
"exit",
|
|
13859
|
+
e[n][1],
|
|
13860
|
+
t
|
|
13861
|
+
],
|
|
13862
|
+
[
|
|
13863
|
+
"exit",
|
|
13864
|
+
i,
|
|
13865
|
+
t
|
|
13866
|
+
]
|
|
13867
|
+
]), Au(e, r - 1, n - r + 3, o), n = r + o.length - 2;
|
|
13868
|
+
break;
|
|
13869
|
+
}
|
|
13870
|
+
}
|
|
13871
|
+
for (n = -1; ++n < e.length;) e[n][1].type === "strikethroughSequenceTemporary" && (e[n][1].type = "data");
|
|
13872
|
+
return e;
|
|
13873
|
+
}
|
|
13874
|
+
function i(e, n, r) {
|
|
13875
|
+
let i = this.previous, a = this.events, o = 0;
|
|
13876
|
+
return s;
|
|
13877
|
+
function s(t) {
|
|
13878
|
+
return i === 126 && a[a.length - 1][1].type !== "characterEscape" ? r(t) : (e.enter("strikethroughSequenceTemporary"), c(t));
|
|
13879
|
+
}
|
|
13880
|
+
function c(a) {
|
|
13881
|
+
let s = $u(i);
|
|
13882
|
+
if (a === 126) return o > 1 ? r(a) : (e.consume(a), o++, c);
|
|
13883
|
+
if (o < 2 && !t) return r(a);
|
|
13884
|
+
let l = e.exit("strikethroughSequenceTemporary"), u = $u(a);
|
|
13885
|
+
return l._open = !u || u === 2 && !!s, l._close = !s || s === 2 && !!u, n(a);
|
|
13886
|
+
}
|
|
13887
|
+
}
|
|
13888
|
+
}
|
|
13889
|
+
//#endregion
|
|
13890
|
+
//#region node_modules/micromark-extension-gfm-table/lib/edit-map.js
|
|
13891
|
+
var wy = class {
|
|
13892
|
+
constructor() {
|
|
13893
|
+
this.map = [];
|
|
13894
|
+
}
|
|
13895
|
+
add(e, t, n) {
|
|
13896
|
+
Ty(this, e, t, n);
|
|
13897
|
+
}
|
|
13898
|
+
consume(e) {
|
|
13899
|
+
/* c8 ignore next 3 -- `resolve` is never called without tables, so without edits. */
|
|
13900
|
+
if (this.map.sort(function(e, t) {
|
|
13901
|
+
return e[0] - t[0];
|
|
13902
|
+
}), this.map.length === 0) return;
|
|
13903
|
+
let t = this.map.length, n = [];
|
|
13904
|
+
for (; t > 0;) --t, n.push(e.slice(this.map[t][0] + this.map[t][1]), this.map[t][2]), e.length = this.map[t][0];
|
|
13905
|
+
n.push(e.slice()), e.length = 0;
|
|
13906
|
+
let r = n.pop();
|
|
13907
|
+
for (; r;) {
|
|
13908
|
+
for (let t of r) e.push(t);
|
|
13909
|
+
r = n.pop();
|
|
13910
|
+
}
|
|
13911
|
+
this.map.length = 0;
|
|
13912
|
+
}
|
|
13913
|
+
};
|
|
13914
|
+
function Ty(e, t, n, r) {
|
|
13915
|
+
let i = 0;
|
|
13916
|
+
if (!(n === 0 && r.length === 0)) {
|
|
13917
|
+
for (; i < e.map.length;) {
|
|
13918
|
+
if (e.map[i][0] === t) {
|
|
13919
|
+
e.map[i][1] += n, e.map[i][2].push(...r);
|
|
13920
|
+
return;
|
|
13921
|
+
}
|
|
13922
|
+
i += 1;
|
|
13923
|
+
}
|
|
13924
|
+
e.map.push([
|
|
13925
|
+
t,
|
|
13926
|
+
n,
|
|
13927
|
+
r
|
|
13928
|
+
]);
|
|
13929
|
+
}
|
|
13930
|
+
}
|
|
13931
|
+
//#endregion
|
|
13932
|
+
//#region node_modules/micromark-extension-gfm-table/lib/infer.js
|
|
13933
|
+
function Ey(e, t) {
|
|
13934
|
+
let n = !1, r = [];
|
|
13935
|
+
for (; t < e.length;) {
|
|
13936
|
+
let i = e[t];
|
|
13937
|
+
if (n) {
|
|
13938
|
+
if (i[0] === "enter") i[1].type === "tableContent" && r.push(e[t + 1][1].type === "tableDelimiterMarker" ? "left" : "none");
|
|
13939
|
+
else if (i[1].type === "tableContent") {
|
|
13940
|
+
if (e[t - 1][1].type === "tableDelimiterMarker") {
|
|
13941
|
+
let e = r.length - 1;
|
|
13942
|
+
r[e] = r[e] === "left" ? "center" : "right";
|
|
13943
|
+
}
|
|
13944
|
+
} else if (i[1].type === "tableDelimiterRow") break;
|
|
13945
|
+
} else i[0] === "enter" && i[1].type === "tableDelimiterRow" && (n = !0);
|
|
13946
|
+
t += 1;
|
|
13947
|
+
}
|
|
13948
|
+
return r;
|
|
13949
|
+
}
|
|
13950
|
+
//#endregion
|
|
13951
|
+
//#region node_modules/micromark-extension-gfm-table/lib/syntax.js
|
|
13952
|
+
function Dy() {
|
|
13953
|
+
return { flow: { null: {
|
|
13954
|
+
name: "table",
|
|
13955
|
+
tokenize: Oy,
|
|
13956
|
+
resolveAll: ky
|
|
13957
|
+
} } };
|
|
13958
|
+
}
|
|
13959
|
+
function Oy(e, t, n) {
|
|
13960
|
+
let r = this, i = 0, a = 0, o;
|
|
13961
|
+
return s;
|
|
13962
|
+
function s(e) {
|
|
13963
|
+
let t = r.events.length - 1;
|
|
13964
|
+
for (; t > -1;) {
|
|
13965
|
+
let e = r.events[t][1].type;
|
|
13966
|
+
if (e === "lineEnding" || e === "linePrefix") t--;
|
|
13967
|
+
else break;
|
|
13968
|
+
}
|
|
13969
|
+
let i = t > -1 ? r.events[t][1].type : null, a = i === "tableHead" || i === "tableRow" ? S : c;
|
|
13970
|
+
return a === S && r.parser.lazy[r.now().line] ? n(e) : a(e);
|
|
13971
|
+
}
|
|
13972
|
+
function c(t) {
|
|
13973
|
+
return e.enter("tableHead"), e.enter("tableRow"), l(t);
|
|
13974
|
+
}
|
|
13975
|
+
function l(e) {
|
|
13976
|
+
return e === 124 ? u(e) : (o = !0, a += 1, u(e));
|
|
13977
|
+
}
|
|
13978
|
+
function u(t) {
|
|
13979
|
+
return t === null ? n(t) : Y(t) ? a > 1 ? (a = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), p) : n(t) : Z(t) ? Q(e, u, "whitespace")(t) : (a += 1, o && (o = !1, i += 1), t === 124 ? (e.enter("tableCellDivider"), e.consume(t), e.exit("tableCellDivider"), o = !0, u) : (e.enter("data"), d(t)));
|
|
13980
|
+
}
|
|
13981
|
+
function d(t) {
|
|
13982
|
+
return t === null || t === 124 || X(t) ? (e.exit("data"), u(t)) : (e.consume(t), t === 92 ? f : d);
|
|
13983
|
+
}
|
|
13984
|
+
function f(t) {
|
|
13985
|
+
return t === 92 || t === 124 ? (e.consume(t), d) : d(t);
|
|
13986
|
+
}
|
|
13987
|
+
function p(t) {
|
|
13988
|
+
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(t) : (e.enter("tableDelimiterRow"), o = !1, Z(t) ? Q(e, m, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(t) : m(t));
|
|
13989
|
+
}
|
|
13990
|
+
function m(t) {
|
|
13991
|
+
return t === 45 || t === 58 ? g(t) : t === 124 ? (o = !0, e.enter("tableCellDivider"), e.consume(t), e.exit("tableCellDivider"), h) : x(t);
|
|
13992
|
+
}
|
|
13993
|
+
function h(t) {
|
|
13994
|
+
return Z(t) ? Q(e, g, "whitespace")(t) : g(t);
|
|
13995
|
+
}
|
|
13996
|
+
function g(t) {
|
|
13997
|
+
return t === 58 ? (a += 1, o = !0, e.enter("tableDelimiterMarker"), e.consume(t), e.exit("tableDelimiterMarker"), _) : t === 45 ? (a += 1, _(t)) : t === null || Y(t) ? b(t) : x(t);
|
|
13998
|
+
}
|
|
13999
|
+
function _(t) {
|
|
14000
|
+
return t === 45 ? (e.enter("tableDelimiterFiller"), v(t)) : x(t);
|
|
14001
|
+
}
|
|
14002
|
+
function v(t) {
|
|
14003
|
+
return t === 45 ? (e.consume(t), v) : t === 58 ? (o = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(t), e.exit("tableDelimiterMarker"), y) : (e.exit("tableDelimiterFiller"), y(t));
|
|
14004
|
+
}
|
|
14005
|
+
function y(t) {
|
|
14006
|
+
return Z(t) ? Q(e, b, "whitespace")(t) : b(t);
|
|
14007
|
+
}
|
|
14008
|
+
function b(n) {
|
|
14009
|
+
return n === 124 ? m(n) : n === null || Y(n) ? !o || i !== a ? x(n) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(n)) : x(n);
|
|
14010
|
+
}
|
|
14011
|
+
function x(e) {
|
|
14012
|
+
return n(e);
|
|
14013
|
+
}
|
|
14014
|
+
function S(t) {
|
|
14015
|
+
return e.enter("tableRow"), C(t);
|
|
14016
|
+
}
|
|
14017
|
+
function C(n) {
|
|
14018
|
+
return n === 124 ? (e.enter("tableCellDivider"), e.consume(n), e.exit("tableCellDivider"), C) : n === null || Y(n) ? (e.exit("tableRow"), t(n)) : Z(n) ? Q(e, C, "whitespace")(n) : (e.enter("data"), w(n));
|
|
14019
|
+
}
|
|
14020
|
+
function w(t) {
|
|
14021
|
+
return t === null || t === 124 || X(t) ? (e.exit("data"), C(t)) : (e.consume(t), t === 92 ? T : w);
|
|
14022
|
+
}
|
|
14023
|
+
function T(t) {
|
|
14024
|
+
return t === 92 || t === 124 ? (e.consume(t), w) : w(t);
|
|
14025
|
+
}
|
|
14026
|
+
}
|
|
14027
|
+
function ky(e, t) {
|
|
14028
|
+
let n = -1, r = !0, i = 0, a = [
|
|
14029
|
+
0,
|
|
14030
|
+
0,
|
|
14031
|
+
0,
|
|
14032
|
+
0
|
|
14033
|
+
], o = [
|
|
14034
|
+
0,
|
|
14035
|
+
0,
|
|
14036
|
+
0,
|
|
14037
|
+
0
|
|
14038
|
+
], s = !1, c = 0, l, u, d, f = new wy();
|
|
14039
|
+
for (; ++n < e.length;) {
|
|
14040
|
+
let p = e[n], m = p[1];
|
|
14041
|
+
p[0] === "enter" ? m.type === "tableHead" ? (s = !1, c !== 0 && (jy(f, t, c, l, u), u = void 0, c = 0), l = {
|
|
14042
|
+
type: "table",
|
|
14043
|
+
start: Object.assign({}, m.start),
|
|
14044
|
+
end: Object.assign({}, m.end)
|
|
14045
|
+
}, f.add(n, 0, [[
|
|
14046
|
+
"enter",
|
|
14047
|
+
l,
|
|
14048
|
+
t
|
|
14049
|
+
]])) : m.type === "tableRow" || m.type === "tableDelimiterRow" ? (r = !0, d = void 0, a = [
|
|
14050
|
+
0,
|
|
14051
|
+
0,
|
|
14052
|
+
0,
|
|
14053
|
+
0
|
|
14054
|
+
], o = [
|
|
14055
|
+
0,
|
|
14056
|
+
n + 1,
|
|
14057
|
+
0,
|
|
14058
|
+
0
|
|
14059
|
+
], s && (s = !1, u = {
|
|
14060
|
+
type: "tableBody",
|
|
14061
|
+
start: Object.assign({}, m.start),
|
|
14062
|
+
end: Object.assign({}, m.end)
|
|
14063
|
+
}, f.add(n, 0, [[
|
|
14064
|
+
"enter",
|
|
14065
|
+
u,
|
|
14066
|
+
t
|
|
14067
|
+
]])), i = m.type === "tableDelimiterRow" ? 2 : u ? 3 : 1) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") ? (r = !1, o[2] === 0 && (a[1] !== 0 && (o[0] = o[1], d = Ay(f, t, a, i, void 0, d), a = [
|
|
14068
|
+
0,
|
|
14069
|
+
0,
|
|
14070
|
+
0,
|
|
14071
|
+
0
|
|
14072
|
+
]), o[2] = n)) : m.type === "tableCellDivider" && (r ? r = !1 : (a[1] !== 0 && (o[0] = o[1], d = Ay(f, t, a, i, void 0, d)), a = o, o = [
|
|
14073
|
+
a[1],
|
|
14074
|
+
n,
|
|
14075
|
+
0,
|
|
14076
|
+
0
|
|
14077
|
+
])) : m.type === "tableHead" ? (s = !0, c = n) : m.type === "tableRow" || m.type === "tableDelimiterRow" ? (c = n, a[1] === 0 ? o[1] !== 0 && (d = Ay(f, t, o, i, n, d)) : (o[0] = o[1], d = Ay(f, t, a, i, n, d)), i = 0) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") && (o[3] = n);
|
|
14078
|
+
}
|
|
14079
|
+
for (c !== 0 && jy(f, t, c, l, u), f.consume(t.events), n = -1; ++n < t.events.length;) {
|
|
14080
|
+
let e = t.events[n];
|
|
14081
|
+
e[0] === "enter" && e[1].type === "table" && (e[1]._align = Ey(t.events, n));
|
|
14082
|
+
}
|
|
14083
|
+
return e;
|
|
14084
|
+
}
|
|
14085
|
+
function Ay(e, t, n, r, i, a) {
|
|
14086
|
+
let o = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData";
|
|
14087
|
+
n[0] !== 0 && (a.end = Object.assign({}, My(t.events, n[0])), e.add(n[0], 0, [[
|
|
14088
|
+
"exit",
|
|
14089
|
+
a,
|
|
14090
|
+
t
|
|
14091
|
+
]]));
|
|
14092
|
+
let s = My(t.events, n[1]);
|
|
14093
|
+
if (a = {
|
|
14094
|
+
type: o,
|
|
14095
|
+
start: Object.assign({}, s),
|
|
14096
|
+
end: Object.assign({}, s)
|
|
14097
|
+
}, e.add(n[1], 0, [[
|
|
14098
|
+
"enter",
|
|
14099
|
+
a,
|
|
14100
|
+
t
|
|
14101
|
+
]]), n[2] !== 0) {
|
|
14102
|
+
let i = My(t.events, n[2]), a = My(t.events, n[3]), o = {
|
|
14103
|
+
type: "tableContent",
|
|
14104
|
+
start: Object.assign({}, i),
|
|
14105
|
+
end: Object.assign({}, a)
|
|
14106
|
+
};
|
|
14107
|
+
if (e.add(n[2], 0, [[
|
|
14108
|
+
"enter",
|
|
14109
|
+
o,
|
|
14110
|
+
t
|
|
14111
|
+
]]), r !== 2) {
|
|
14112
|
+
let r = t.events[n[2]], i = t.events[n[3]];
|
|
14113
|
+
if (r[1].end = Object.assign({}, i[1].end), r[1].type = "chunkText", r[1].contentType = "text", n[3] > n[2] + 1) {
|
|
14114
|
+
let t = n[2] + 1, r = n[3] - n[2] - 1;
|
|
14115
|
+
e.add(t, r, []);
|
|
14116
|
+
}
|
|
14117
|
+
}
|
|
14118
|
+
e.add(n[3] + 1, 0, [[
|
|
14119
|
+
"exit",
|
|
14120
|
+
o,
|
|
14121
|
+
t
|
|
14122
|
+
]]);
|
|
14123
|
+
}
|
|
14124
|
+
return i !== void 0 && (a.end = Object.assign({}, My(t.events, i)), e.add(i, 0, [[
|
|
14125
|
+
"exit",
|
|
14126
|
+
a,
|
|
14127
|
+
t
|
|
14128
|
+
]]), a = void 0), a;
|
|
14129
|
+
}
|
|
14130
|
+
function jy(e, t, n, r, i) {
|
|
14131
|
+
let a = [], o = My(t.events, n);
|
|
14132
|
+
i && (i.end = Object.assign({}, o), a.push([
|
|
14133
|
+
"exit",
|
|
14134
|
+
i,
|
|
14135
|
+
t
|
|
14136
|
+
])), r.end = Object.assign({}, o), a.push([
|
|
14137
|
+
"exit",
|
|
14138
|
+
r,
|
|
14139
|
+
t
|
|
14140
|
+
]), e.add(n + 1, 0, a);
|
|
14141
|
+
}
|
|
14142
|
+
function My(e, t) {
|
|
14143
|
+
let n = e[t], r = n[0] === "enter" ? "start" : "end";
|
|
14144
|
+
return n[1][r];
|
|
14145
|
+
}
|
|
14146
|
+
//#endregion
|
|
14147
|
+
//#region node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js
|
|
14148
|
+
var Ny = {
|
|
14149
|
+
name: "tasklistCheck",
|
|
14150
|
+
tokenize: Fy
|
|
14151
|
+
};
|
|
14152
|
+
function Py() {
|
|
14153
|
+
return { text: { 91: Ny } };
|
|
14154
|
+
}
|
|
14155
|
+
function Fy(e, t, n) {
|
|
14156
|
+
let r = this;
|
|
14157
|
+
return i;
|
|
14158
|
+
function i(t) {
|
|
14159
|
+
return r.previous !== null || !r._gfmTasklistFirstContentOfListItem ? n(t) : (e.enter("taskListCheck"), e.enter("taskListCheckMarker"), e.consume(t), e.exit("taskListCheckMarker"), a);
|
|
14160
|
+
}
|
|
14161
|
+
function a(t) {
|
|
14162
|
+
return X(t) ? (e.enter("taskListCheckValueUnchecked"), e.consume(t), e.exit("taskListCheckValueUnchecked"), o) : t === 88 || t === 120 ? (e.enter("taskListCheckValueChecked"), e.consume(t), e.exit("taskListCheckValueChecked"), o) : n(t);
|
|
14163
|
+
}
|
|
14164
|
+
function o(t) {
|
|
14165
|
+
return t === 93 ? (e.enter("taskListCheckMarker"), e.consume(t), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), s) : n(t);
|
|
14166
|
+
}
|
|
14167
|
+
function s(r) {
|
|
14168
|
+
return Y(r) ? t(r) : Z(r) ? e.check({ tokenize: Iy }, t, n)(r) : n(r);
|
|
14169
|
+
}
|
|
14170
|
+
}
|
|
14171
|
+
function Iy(e, t, n) {
|
|
14172
|
+
return Q(e, r, "whitespace");
|
|
14173
|
+
function r(e) {
|
|
14174
|
+
return e === null ? n(e) : t(e);
|
|
14175
|
+
}
|
|
14176
|
+
}
|
|
14177
|
+
//#endregion
|
|
14178
|
+
//#region node_modules/micromark-extension-gfm/index.js
|
|
14179
|
+
function Ly(e) {
|
|
14180
|
+
return Nu([
|
|
14181
|
+
$v(),
|
|
14182
|
+
hy(),
|
|
14183
|
+
Cy(e),
|
|
14184
|
+
Dy(),
|
|
14185
|
+
Py()
|
|
14186
|
+
]);
|
|
14187
|
+
}
|
|
14188
|
+
//#endregion
|
|
14189
|
+
//#region node_modules/remark-gfm/lib/index.js
|
|
14190
|
+
var Ry = {};
|
|
14191
|
+
function zy(e) {
|
|
14192
|
+
let t = this, n = e || Ry, r = t.data(), i = r.micromarkExtensions ||= [], a = r.fromMarkdownExtensions ||= [], o = r.toMarkdownExtensions ||= [];
|
|
14193
|
+
i.push(Ly(n)), a.push(Hv()), o.push(Uv(n));
|
|
14194
|
+
}
|
|
14195
|
+
//#endregion
|
|
14196
|
+
//#region src/components/ReportArtifact.tsx
|
|
14197
|
+
function By({ markdown: e }) {
|
|
14198
|
+
return /* @__PURE__ */ g("div", {
|
|
14199
|
+
className: "erica-report-artifact",
|
|
14200
|
+
children: /* @__PURE__ */ g(bh, {
|
|
14201
|
+
remarkPlugins: [
|
|
14202
|
+
zy,
|
|
14203
|
+
Bg,
|
|
14204
|
+
() => (e) => {
|
|
14205
|
+
let t = (e) => {
|
|
14206
|
+
let n = ["grid", "column"].includes(e.name);
|
|
14207
|
+
[
|
|
14208
|
+
"containerDirective",
|
|
14209
|
+
"leafDirective",
|
|
14210
|
+
"textDirective"
|
|
14211
|
+
].includes(e.type) && n && (e.data = e.data || {}, e.data.hName = e.name, e.data.hProperties = e.attributes || {}), e.children && e.children.forEach(t);
|
|
14212
|
+
};
|
|
14213
|
+
t(e);
|
|
14214
|
+
}
|
|
14215
|
+
],
|
|
14216
|
+
components: {
|
|
14217
|
+
h1: ({ children: e }) => /* @__PURE__ */ g("h1", {
|
|
14218
|
+
className: "erica-markdown-h1",
|
|
14219
|
+
children: e
|
|
14220
|
+
}),
|
|
14221
|
+
h2: ({ children: e }) => /* @__PURE__ */ g("h2", {
|
|
14222
|
+
className: "erica-markdown-h2",
|
|
14223
|
+
children: e
|
|
14224
|
+
}),
|
|
14225
|
+
h3: ({ children: e }) => /* @__PURE__ */ g("h3", {
|
|
14226
|
+
className: "erica-markdown-h3",
|
|
14227
|
+
children: e
|
|
14228
|
+
}),
|
|
14229
|
+
p: ({ children: e }) => /* @__PURE__ */ g("p", {
|
|
14230
|
+
className: "erica-markdown-p",
|
|
14231
|
+
children: e
|
|
14232
|
+
}),
|
|
14233
|
+
ul: ({ children: e }) => /* @__PURE__ */ g("ul", {
|
|
14234
|
+
className: "erica-markdown-ul",
|
|
14235
|
+
children: e
|
|
14236
|
+
}),
|
|
14237
|
+
ol: ({ children: e }) => /* @__PURE__ */ g("ol", {
|
|
14238
|
+
className: "erica-markdown-ol",
|
|
14239
|
+
children: e
|
|
14240
|
+
}),
|
|
14241
|
+
li: ({ children: e }) => /* @__PURE__ */ g("li", {
|
|
14242
|
+
className: "erica-markdown-li",
|
|
14243
|
+
children: e
|
|
14244
|
+
}),
|
|
14245
|
+
a: ({ children: e, href: t }) => /* @__PURE__ */ g("a", {
|
|
14246
|
+
href: t,
|
|
14247
|
+
target: "_blank",
|
|
14248
|
+
rel: "noopener noreferrer",
|
|
14249
|
+
className: "erica-markdown-link",
|
|
14250
|
+
children: e
|
|
14251
|
+
}),
|
|
14252
|
+
blockquote: ({ children: e }) => /* @__PURE__ */ g("blockquote", {
|
|
14253
|
+
className: "erica-markdown-blockquote",
|
|
14254
|
+
children: e
|
|
14255
|
+
}),
|
|
14256
|
+
hr: () => /* @__PURE__ */ g("hr", { className: "erica-markdown-hr" }),
|
|
14257
|
+
table: ({ children: e }) => /* @__PURE__ */ g("div", {
|
|
14258
|
+
className: "erica-markdown-table-wrapper",
|
|
14259
|
+
children: /* @__PURE__ */ g("table", {
|
|
14260
|
+
className: "erica-markdown-table",
|
|
14261
|
+
children: e
|
|
14262
|
+
})
|
|
14263
|
+
}),
|
|
14264
|
+
thead: ({ children: e }) => /* @__PURE__ */ g("thead", {
|
|
14265
|
+
className: "erica-markdown-thead",
|
|
14266
|
+
children: e
|
|
14267
|
+
}),
|
|
14268
|
+
th: ({ children: e }) => /* @__PURE__ */ g("th", {
|
|
14269
|
+
className: "erica-markdown-th",
|
|
14270
|
+
children: e
|
|
14271
|
+
}),
|
|
14272
|
+
td: ({ children: e }) => /* @__PURE__ */ g("td", {
|
|
14273
|
+
className: "erica-markdown-td",
|
|
14274
|
+
children: e
|
|
14275
|
+
}),
|
|
14276
|
+
code: (e) => {
|
|
14277
|
+
let { children: t, className: n, ...r } = e;
|
|
14278
|
+
return /language-(\w+)/.exec(n || "")?.[1] === "ericachart" ? /* @__PURE__ */ g(Wc, { markdown: t }) : /* @__PURE__ */ g("code", {
|
|
14279
|
+
...r,
|
|
14280
|
+
className: n,
|
|
14281
|
+
children: t
|
|
14282
|
+
});
|
|
14283
|
+
},
|
|
14284
|
+
grid: ({ children: e, columns: t }) => {
|
|
14285
|
+
let n = t ? Number(t) : 2;
|
|
14286
|
+
return /* @__PURE__ */ g("div", {
|
|
14287
|
+
style: {
|
|
14288
|
+
display: "grid",
|
|
14289
|
+
gridTemplateColumns: n === 3 ? "repeat(3, 1fr)" : n === 1 ? "1fr" : "repeat(2, 1fr)",
|
|
14290
|
+
gap: "1.5rem",
|
|
14291
|
+
margin: "2rem 0",
|
|
14292
|
+
width: "100%"
|
|
14293
|
+
},
|
|
14294
|
+
children: e
|
|
14295
|
+
});
|
|
14296
|
+
}
|
|
14297
|
+
},
|
|
14298
|
+
children: e
|
|
14299
|
+
})
|
|
14300
|
+
});
|
|
14301
|
+
}
|
|
14302
|
+
//#endregion
|
|
14303
|
+
//#region src/components/ReportItem.tsx
|
|
14304
|
+
var Vy = Bs({
|
|
14305
|
+
title: ps().describe("Title of the report."),
|
|
14306
|
+
reportContent: ps().describe("Markdown content of the report.")
|
|
14307
|
+
});
|
|
14308
|
+
function Hy({ title: e, reportContent: t }) {
|
|
14309
|
+
let n = Yc(), r = () => {
|
|
14310
|
+
n.setTitle(e), n.setContent(/* @__PURE__ */ g(By, { markdown: t })), n.onOpen();
|
|
14311
|
+
};
|
|
14312
|
+
return /* @__PURE__ */ g("div", {
|
|
14313
|
+
onClick: r,
|
|
14314
|
+
className: "erica-report-card",
|
|
14315
|
+
children: /* @__PURE__ */ _("div", {
|
|
14316
|
+
className: "erica-report-content-wrapper",
|
|
14317
|
+
children: [
|
|
14318
|
+
/* @__PURE__ */ g("div", {
|
|
14319
|
+
className: "erica-report-icon",
|
|
14320
|
+
children: /* @__PURE__ */ g(de, { className: "erica-icon-md" })
|
|
14321
|
+
}),
|
|
14322
|
+
/* @__PURE__ */ _("div", {
|
|
14323
|
+
className: "erica-report-content",
|
|
14324
|
+
children: [/* @__PURE__ */ g("span", {
|
|
14325
|
+
className: "erica-report-title",
|
|
14326
|
+
children: e
|
|
14327
|
+
}), /* @__PURE__ */ g("span", {
|
|
14328
|
+
className: "erica-report-subtitle",
|
|
14329
|
+
children: "Business Report"
|
|
14330
|
+
})]
|
|
14331
|
+
}),
|
|
14332
|
+
/* @__PURE__ */ g("button", {
|
|
14333
|
+
onClick: (e) => {
|
|
14334
|
+
e.stopPropagation(), r();
|
|
14335
|
+
},
|
|
14336
|
+
className: "erica-report-button",
|
|
14337
|
+
children: "Show Report"
|
|
14338
|
+
})
|
|
14339
|
+
]
|
|
14340
|
+
})
|
|
14341
|
+
});
|
|
14342
|
+
}
|
|
14343
|
+
//#endregion
|
|
14344
|
+
//#region src/hooks/use-tools.ts
|
|
14345
|
+
var Uy = () => {
|
|
14346
|
+
f({
|
|
14347
|
+
name: "showChart",
|
|
14348
|
+
description: "Display a chart from erica chart syntax.",
|
|
14349
|
+
parameters: Gc,
|
|
14350
|
+
render: Kc
|
|
14351
|
+
}, []), f({
|
|
14352
|
+
name: "showReport",
|
|
14353
|
+
description: "Display a report from markdown with erica report syntax.",
|
|
14354
|
+
parameters: Vy,
|
|
14355
|
+
render: Hy
|
|
14356
|
+
}, []);
|
|
14357
|
+
};
|
|
14358
|
+
//#endregion
|
|
14359
|
+
//#region src/components/AttachmentBlock.tsx
|
|
14360
|
+
function Wy({ attachment: e }) {
|
|
14361
|
+
let [t, n] = l(!1);
|
|
14362
|
+
async function r() {
|
|
14363
|
+
n(!0);
|
|
14364
|
+
try {
|
|
14365
|
+
await Xe.download(e.file_path, e.original_name);
|
|
14366
|
+
} catch (t) {
|
|
14367
|
+
console.error("Download failed:", t), alert(`Failed to download ${e.original_name}`);
|
|
14368
|
+
} finally {
|
|
14369
|
+
n(!1);
|
|
14370
|
+
}
|
|
14371
|
+
}
|
|
14372
|
+
return /* @__PURE__ */ _("div", {
|
|
14373
|
+
role: "button",
|
|
14374
|
+
tabIndex: 0,
|
|
14375
|
+
onClick: r,
|
|
14376
|
+
onKeyDown: (e) => {
|
|
14377
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), r());
|
|
14378
|
+
},
|
|
14379
|
+
className: "erica-attachment-item",
|
|
14380
|
+
title: e.original_name,
|
|
14381
|
+
children: [t ? /* @__PURE__ */ g("div", { className: "erica-spinner erica-spinner--sm" }) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(fe, { className: "erica-attachment-icon erica-attachment-icon--default" }), /* @__PURE__ */ g(ue, { className: "erica-attachment-icon erica-attachment-icon--hover" })] }), /* @__PURE__ */ g("span", {
|
|
14382
|
+
className: "erica-attachment-name",
|
|
14383
|
+
children: e.original_name
|
|
14384
|
+
})]
|
|
14385
|
+
});
|
|
14386
|
+
}
|
|
14387
|
+
function Gy({ children: e }) {
|
|
14388
|
+
let t = String(e).trim(), n = [];
|
|
14389
|
+
try {
|
|
14390
|
+
n = JSON.parse(t);
|
|
14391
|
+
} catch {
|
|
14392
|
+
return null;
|
|
14393
|
+
}
|
|
14394
|
+
return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ g("div", {
|
|
14395
|
+
className: "erica-attachment-block",
|
|
14396
|
+
children: n.map((e, t) => /* @__PURE__ */ g(Wy, { attachment: e }, t))
|
|
14397
|
+
});
|
|
14398
|
+
}
|
|
14399
|
+
//#endregion
|
|
14400
|
+
//#region src/components/EricaChat.tsx
|
|
14401
|
+
function Ky({ threadId: e, handleNewChat: t, handleThreadSelect: n }) {
|
|
14402
|
+
return Uy(), /* @__PURE__ */ g(m, {
|
|
14403
|
+
labels: { initial: "Halo! Saya asisten AI SPP, ada yg bisa saya bantu?" },
|
|
14404
|
+
Input: i((t) => /* @__PURE__ */ g(Ze, {
|
|
14405
|
+
...t,
|
|
14406
|
+
threadId: e
|
|
14407
|
+
}), [e]),
|
|
14408
|
+
Header: i(() => /* @__PURE__ */ g(Dn, {
|
|
14409
|
+
onNewChat: t,
|
|
14410
|
+
onThreadSelect: n
|
|
14411
|
+
}), [t, n]),
|
|
14412
|
+
UserMessage: ({ message: e }) => /* @__PURE__ */ g("div", {
|
|
14413
|
+
className: "copilotKitMessage copilotKitUserMessage",
|
|
14414
|
+
children: /* @__PURE__ */ g(bh, {
|
|
14415
|
+
components: {
|
|
14416
|
+
pre: ({ children: e }) => /* @__PURE__ */ g(h, { children: e }),
|
|
14417
|
+
code({ children: e, className: t }) {
|
|
14418
|
+
return /language-(\w+)/.exec(t || "")?.[1] === "attachments" ? /* @__PURE__ */ g(Gy, { children: e }) : /* @__PURE__ */ g("code", {
|
|
14419
|
+
className: t,
|
|
14420
|
+
style: {
|
|
14421
|
+
fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace",
|
|
14422
|
+
fontSize: "0.85em"
|
|
14423
|
+
},
|
|
14424
|
+
children: e
|
|
14425
|
+
});
|
|
14426
|
+
}
|
|
14427
|
+
},
|
|
14428
|
+
children: Array.isArray(e.content) ? e.content.filter((e) => e.type === "text").map((e) => e.text).join("") : String(e.content)
|
|
14429
|
+
})
|
|
14430
|
+
})
|
|
14431
|
+
});
|
|
14432
|
+
}
|
|
14433
|
+
function qy({ runtimeUrl: e, widgetToken: t }) {
|
|
14434
|
+
let [n, r] = l(void 0), a = s(() => {
|
|
14435
|
+
let t = new URL(e), n = t.pathname.split("/").filter(Boolean);
|
|
14436
|
+
return n.length > 2 && n.pop(), t.pathname = "/" + n.join("/"), t.toString();
|
|
14437
|
+
}, [e]);
|
|
14438
|
+
s(() => {
|
|
14439
|
+
We(a, t);
|
|
14440
|
+
}, [a, t]);
|
|
14441
|
+
let o = i(() => {
|
|
14442
|
+
r(void 0), console.log("New chat started");
|
|
14443
|
+
}, []), c = i((e) => {
|
|
14444
|
+
r(e), console.log("Thread selected:", e);
|
|
14445
|
+
}, []);
|
|
14446
|
+
return /* @__PURE__ */ g(d, {
|
|
14447
|
+
isModalDefaultOpen: !0,
|
|
14448
|
+
children: /* @__PURE__ */ g("div", {
|
|
14449
|
+
className: "h-full w-full",
|
|
14450
|
+
children: /* @__PURE__ */ g(u, {
|
|
14451
|
+
runtimeUrl: e,
|
|
14452
|
+
headers: { Authorization: `Bearer ${t}` },
|
|
14453
|
+
properties: { agent: "platform:ultimate" },
|
|
14454
|
+
threadId: n,
|
|
14455
|
+
enableInspector: !1,
|
|
14456
|
+
children: /* @__PURE__ */ g(Ky, {
|
|
14457
|
+
threadId: n,
|
|
14458
|
+
handleNewChat: o,
|
|
14459
|
+
handleThreadSelect: c
|
|
14460
|
+
})
|
|
14461
|
+
})
|
|
14462
|
+
})
|
|
14463
|
+
});
|
|
14464
|
+
}
|
|
14465
|
+
//#endregion
|
|
14466
|
+
//#region src/contexts/EricaProvider.tsx
|
|
14467
|
+
var Jy = new rn({ defaultOptions: { queries: {
|
|
14468
|
+
refetchOnWindowFocus: !1,
|
|
14469
|
+
retry: 1,
|
|
14470
|
+
staleTime: 3e4
|
|
14471
|
+
} } });
|
|
14472
|
+
function Yy({ accountUid: e, children: t }) {
|
|
14473
|
+
return /* @__PURE__ */ g(sn, {
|
|
14474
|
+
client: Jy,
|
|
14475
|
+
children: /* @__PURE__ */ g(Ec, {
|
|
14476
|
+
accountUid: e,
|
|
14477
|
+
children: /* @__PURE__ */ g(Jc, { children: t })
|
|
14478
|
+
})
|
|
14479
|
+
});
|
|
14480
|
+
}
|
|
14481
|
+
//#endregion
|
|
14482
|
+
//#region src/components/EricaDrawer.tsx
|
|
14483
|
+
function Xy() {
|
|
12533
14484
|
let { isOpen: e, onClose: t, content: n, title: r } = Yc(), [i, a] = l(!1);
|
|
12534
14485
|
return o(() => {
|
|
12535
14486
|
e ? setTimeout(() => a(!0), 10) : a(!1);
|
|
@@ -12559,6 +14510,6 @@ function Yg() {
|
|
|
12559
14510
|
}) : null;
|
|
12560
14511
|
}
|
|
12561
14512
|
//#endregion
|
|
12562
|
-
export { Jc as ArtifactProvider,
|
|
14513
|
+
export { Jc as ArtifactProvider, qy as EricaChat, Xy as EricaDrawer, Yy as EricaProvider };
|
|
12563
14514
|
|
|
12564
14515
|
//# sourceMappingURL=index.mjs.map
|