react-semaphor 0.0.149 → 0.0.150
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/chunks/{dashboard-plus-V8yyjys7.js → dashboard-plus-1qhhIbxX.js} +2 -2
- package/dist/chunks/{dashboard-plus-VO-o8Q5m.js → dashboard-plus-yoSVBMke.js} +774 -774
- package/dist/chunks/index-e4IBsALI.js +364 -0
- package/dist/chunks/{index-A53WxJ05.js → index-yLUZIbzY.js} +11806 -14124
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/2DAFLIRC-HTB0OzHP.js +0 -1086
- package/dist/chunks/2DAFLIRC-LUJ-HNQs.js +0 -9088
- package/dist/chunks/index-tGO1Iq1M.js +0 -364
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import Re, { useState as J, useEffect as me, useRef as
|
|
1
|
+
import { Q, b as P, j as i, R as wt, U as Ct, V, W as St, X as vt, Y as Nt, Z as Et, _ as de, $ as Ae, a0 as ai, M as oi, P as en, a1 as zs, a2 as Os, a3 as Ts, a4 as As, a5 as Is, a6 as Ls, a7 as tr, a8 as un, a9 as Pn, aa as On, T as Rn, e as zt, g as _n, ab as Ot, ac as Tt, f as xe, ad as At, ae as It, af as Lt, ag as Tn, ah as Ve, H as C, ai as hn, aj as pn, ak as Fs, al as fn, w as ui, v as ci, t as Pe, am as Ms, r as Ds, N as di, s as Ps, an as Rs, B as _s, L as Bn, S as Ft, z as Bs, n as rr, A as hi, F as Vs, ao as Hs, ap as qs, aq as Us, ar as pi, as as fi, at as mi, u as Mt, au as xi, av as gi, aw as $s, ax as yi, ay as ir, az as Ws, aA as bi, aB as ki, aC as Ks, aD as Qs, aE as Gs, aF as Js, aG as Xs, aH as ct, aI as Ys, aJ as Zs, aK as Nn, aL as sr, aM as el, aN as nl, aO as tl, aP as rl, aQ as il, aR as Xn, aS as sl, aT as lr, aU as ll, aV as ar, aW as al, aX as ol, aY as ul, aZ as ji, l as cl, C as dl, E as or, d as hl, h as pl, i as fl, o as ml, a_ as xl, m as gl, a$ as yl, b0 as bl, b1 as kl, b2 as ur, b3 as jl, b4 as cr, b5 as dr, K as wl, b6 as wi, b7 as Cl, b8 as Ci, b9 as An, ba as Sl, bb as vl, bc as Nl, bd as El, be as zl, bf as Ol, bg as $e, bh as ie, bi as se, bj as Dt, bk as le, bl as Tl, bm as Al, bn as Il, bo as hr, bp as Ll, bq as Fl, br as Ml, bs as Dl, bt as Pl } from "./index-yLUZIbzY.js";
|
|
2
|
+
import Re, { useState as J, useEffect as me, useRef as cn } from "react";
|
|
3
3
|
/**
|
|
4
4
|
* @license lucide-react v0.379.0 - ISC
|
|
5
5
|
*
|
|
@@ -404,9 +404,9 @@ const aa = Q("User", [
|
|
|
404
404
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
405
405
|
]);
|
|
406
406
|
function oa() {
|
|
407
|
-
const [e, n] = J(""), [t, r] = J(!1), [s, l] = J(!1), a = P((
|
|
407
|
+
const [e, n] = J(""), [t, r] = J(!1), [s, l] = J(!1), a = P((u) => u.dashboard);
|
|
408
408
|
function o() {
|
|
409
|
-
const
|
|
409
|
+
const u = oi(a), c = en(a.id), h = JSON.parse(localStorage.getItem(c) || "[]");
|
|
410
410
|
if (h.some(
|
|
411
411
|
(f) => f.name === e
|
|
412
412
|
)) {
|
|
@@ -415,8 +415,8 @@ function oa() {
|
|
|
415
415
|
}
|
|
416
416
|
h.push({
|
|
417
417
|
name: e,
|
|
418
|
-
template:
|
|
419
|
-
}), localStorage.setItem(
|
|
418
|
+
template: u
|
|
419
|
+
}), localStorage.setItem(c, JSON.stringify(h)), l(!1);
|
|
420
420
|
}
|
|
421
421
|
return /* @__PURE__ */ i.jsxs(wt, { open: s, onOpenChange: l, children: [
|
|
422
422
|
/* @__PURE__ */ i.jsx(Ct, { asChild: !0, children: /* @__PURE__ */ i.jsxs(
|
|
@@ -442,8 +442,8 @@ function oa() {
|
|
|
442
442
|
Ae,
|
|
443
443
|
{
|
|
444
444
|
value: e,
|
|
445
|
-
onChange: (
|
|
446
|
-
t && r(!1), n(
|
|
445
|
+
onChange: (u) => {
|
|
446
|
+
t && r(!1), n(u.target.value);
|
|
447
447
|
},
|
|
448
448
|
id: "name",
|
|
449
449
|
className: "col-span-7 focus-visible:ring-0 focus-visible:ring-ring focus-visible:ring-offset-0"
|
|
@@ -464,8 +464,8 @@ function oa() {
|
|
|
464
464
|
] })
|
|
465
465
|
] });
|
|
466
466
|
}
|
|
467
|
-
function
|
|
468
|
-
const [e, n] = J(!1), [t, r] = J(""), s = P((p) => p.dashboard), l = P((p) => p.bookmarkKey), [a, o] = J([]),
|
|
467
|
+
function ua() {
|
|
468
|
+
const [e, n] = J(!1), [t, r] = J(""), s = P((p) => p.dashboard), l = P((p) => p.bookmarkKey), [a, o] = J([]), u = P((p) => p.actions.setDashboard), c = P(
|
|
469
469
|
(p) => p.actions.setFilterValues
|
|
470
470
|
), h = P(
|
|
471
471
|
(p) => p.actions.setBookmarkKey
|
|
@@ -482,7 +482,7 @@ function ca() {
|
|
|
482
482
|
if (p === t)
|
|
483
483
|
return;
|
|
484
484
|
const y = a.find((w) => w.name === p), k = y == null ? void 0 : y.template;
|
|
485
|
-
k && (
|
|
485
|
+
k && (u(k), c(y.filterValues || []), h(p === "Original" ? "" : p)), r(p);
|
|
486
486
|
}
|
|
487
487
|
function f(p) {
|
|
488
488
|
const y = en(s.id), w = JSON.parse(localStorage.getItem(y) || "[]").filter(
|
|
@@ -511,7 +511,7 @@ function ca() {
|
|
|
511
511
|
children: [
|
|
512
512
|
/* @__PURE__ */ i.jsx("p", { children: p.name }),
|
|
513
513
|
/* @__PURE__ */ i.jsx(
|
|
514
|
-
|
|
514
|
+
un,
|
|
515
515
|
{
|
|
516
516
|
onClick: (k) => {
|
|
517
517
|
k.preventDefault(), f(p.name);
|
|
@@ -530,7 +530,7 @@ function ca() {
|
|
|
530
530
|
] })
|
|
531
531
|
] });
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function ca() {
|
|
534
534
|
const [e, n] = J(!1), t = P((l) => l.dashboard), r = P((l) => l.bookmarkKey);
|
|
535
535
|
me(() => {
|
|
536
536
|
if (!r) {
|
|
@@ -540,17 +540,17 @@ function ua() {
|
|
|
540
540
|
const l = en(t.id), o = JSON.parse(
|
|
541
541
|
localStorage.getItem(l) || "[]"
|
|
542
542
|
).find(
|
|
543
|
-
(
|
|
543
|
+
(u) => u.name === r
|
|
544
544
|
);
|
|
545
545
|
n(o ? o.default : !1);
|
|
546
546
|
}, [r, t.id]);
|
|
547
547
|
function s(l) {
|
|
548
548
|
if (n(l), !r)
|
|
549
549
|
return;
|
|
550
|
-
const a = en(t.id),
|
|
550
|
+
const a = en(t.id), u = JSON.parse(
|
|
551
551
|
localStorage.getItem(a) || "[]"
|
|
552
|
-
).map((
|
|
553
|
-
console.log(
|
|
552
|
+
).map((c) => (c.name === r ? c.default = l : c.default = !1, c));
|
|
553
|
+
console.log(u), localStorage.setItem(a, JSON.stringify(u));
|
|
554
554
|
}
|
|
555
555
|
return /* @__PURE__ */ i.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
556
556
|
/* @__PURE__ */ i.jsx(
|
|
@@ -582,7 +582,7 @@ function da() {
|
|
|
582
582
|
);
|
|
583
583
|
const a = P((b) => b.onSaveFunction), o = P(
|
|
584
584
|
(b) => b.actions.setShowFilters
|
|
585
|
-
), { addFrame:
|
|
585
|
+
), { addFrame: u, setSelectedFrameId: c } = P(
|
|
586
586
|
(b) => b.actions
|
|
587
587
|
), { getSelectedSheet: h, setIsDashboardEditing: d, setShowDashboardJSON: f } = P((b) => b.actions), p = h(), y = () => {
|
|
588
588
|
if (!t || !p)
|
|
@@ -607,7 +607,7 @@ function da() {
|
|
|
607
607
|
cards: [b],
|
|
608
608
|
activeCardId: b.id
|
|
609
609
|
};
|
|
610
|
-
|
|
610
|
+
u(p.id, E), c(E.id);
|
|
611
611
|
}, k = () => {
|
|
612
612
|
d(!0);
|
|
613
613
|
};
|
|
@@ -638,12 +638,12 @@ function da() {
|
|
|
638
638
|
/* @__PURE__ */ i.jsx(de, { children: e }),
|
|
639
639
|
!!e && /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
640
640
|
/* @__PURE__ */ i.jsx("span", { className: "text-muted-foreground", children: "|" }),
|
|
641
|
-
/* @__PURE__ */ i.jsx(
|
|
641
|
+
/* @__PURE__ */ i.jsx(ca, {})
|
|
642
642
|
] })
|
|
643
643
|
] }),
|
|
644
644
|
/* @__PURE__ */ i.jsxs("div", { className: "flex gap-2", children: [
|
|
645
645
|
t && !s && /* @__PURE__ */ i.jsx(oa, {}),
|
|
646
|
-
!s && /* @__PURE__ */ i.jsx(
|
|
646
|
+
!s && /* @__PURE__ */ i.jsx(ua, {}),
|
|
647
647
|
t && !s && /* @__PURE__ */ i.jsxs(
|
|
648
648
|
V,
|
|
649
649
|
{
|
|
@@ -678,7 +678,7 @@ function da() {
|
|
|
678
678
|
d(!1), f(!1);
|
|
679
679
|
},
|
|
680
680
|
size: "sm",
|
|
681
|
-
children: /* @__PURE__ */ i.jsx(
|
|
681
|
+
children: /* @__PURE__ */ i.jsx(un, { className: "h-4 w-4", strokeWidth: 1.5 })
|
|
682
682
|
}
|
|
683
683
|
),
|
|
684
684
|
t && !s && /* @__PURE__ */ i.jsx(
|
|
@@ -717,9 +717,9 @@ function wn({
|
|
|
717
717
|
connectionTooltip: l,
|
|
718
718
|
onChange: a,
|
|
719
719
|
className: o,
|
|
720
|
-
showIcon:
|
|
720
|
+
showIcon: u = !0
|
|
721
721
|
}) {
|
|
722
|
-
const
|
|
722
|
+
const c = r ? "Loading..." : s ? "Error" : t;
|
|
723
723
|
function h() {
|
|
724
724
|
if (e === "Connection")
|
|
725
725
|
return /* @__PURE__ */ i.jsx(ea, { className: "size-4 rotate-90" });
|
|
@@ -731,11 +731,11 @@ function wn({
|
|
|
731
731
|
return /* @__PURE__ */ i.jsx(_t, { className: "size-4" });
|
|
732
732
|
}
|
|
733
733
|
return /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
734
|
-
|
|
734
|
+
u && /* @__PURE__ */ i.jsx("div", { className: "shrink-0", children: l ? /* @__PURE__ */ i.jsxs(Rn, { children: [
|
|
735
735
|
/* @__PURE__ */ i.jsx(zt, { children: h() }),
|
|
736
736
|
/* @__PURE__ */ i.jsx(_n, { className: "text-xs", align: "start", children: l })
|
|
737
737
|
] }) : h() }),
|
|
738
|
-
/* @__PURE__ */ i.jsxs(Ot, { value:
|
|
738
|
+
/* @__PURE__ */ i.jsxs(Ot, { value: c, onValueChange: a, children: [
|
|
739
739
|
/* @__PURE__ */ i.jsx(
|
|
740
740
|
Tt,
|
|
741
741
|
{
|
|
@@ -754,7 +754,7 @@ function wn({
|
|
|
754
754
|
/* @__PURE__ */ i.jsx(It, { children: /* @__PURE__ */ i.jsxs(Lt, { children: [
|
|
755
755
|
r ? /* @__PURE__ */ i.jsx(Tn, { children: "Loading..." }) : /* @__PURE__ */ i.jsx(Tn, { children: e }),
|
|
756
756
|
/* @__PURE__ */ i.jsx(i.Fragment, { children: n && n.map((d, f) => /* @__PURE__ */ i.jsx(Ve, { value: d.id, children: d.name }, f)) }),
|
|
757
|
-
(r || s) && /* @__PURE__ */ i.jsx(Ve, { value:
|
|
757
|
+
(r || s) && /* @__PURE__ */ i.jsx(Ve, { value: c, children: c })
|
|
758
758
|
] }) })
|
|
759
759
|
] })
|
|
760
760
|
] });
|
|
@@ -762,16 +762,16 @@ function wn({
|
|
|
762
762
|
function ha({ column: e }) {
|
|
763
763
|
const [n, t] = J(!1), r = C((h) => h.selectedTableName), s = C(
|
|
764
764
|
(h) => h.selectedSchemaName
|
|
765
|
-
), l = C((h) => h.sqlGen), a = C((h) => h.actions.setSqlGen), o = C((h) => h.actions.setCardSql),
|
|
766
|
-
function
|
|
767
|
-
const f =
|
|
765
|
+
), l = C((h) => h.sqlGen), a = C((h) => h.actions.setSqlGen), o = C((h) => h.actions.setCardSql), u = C((h) => h.actions.setRunSql);
|
|
766
|
+
function c(h, d) {
|
|
767
|
+
const f = ui(h, l, d);
|
|
768
768
|
a(f);
|
|
769
|
-
const p =
|
|
769
|
+
const p = ci(
|
|
770
770
|
f,
|
|
771
771
|
Pe(s || ""),
|
|
772
772
|
Pe(r)
|
|
773
773
|
);
|
|
774
|
-
p && (o(p),
|
|
774
|
+
p && (o(p), u(!0)), t(!1);
|
|
775
775
|
}
|
|
776
776
|
return /* @__PURE__ */ i.jsxs(hn, { open: n, onOpenChange: t, children: [
|
|
777
777
|
/* @__PURE__ */ i.jsx(pn, { asChild: !0, children: /* @__PURE__ */ i.jsx(Fs, { className: "h-4 w-4 cursor-pointer text-foreground/40" }) }),
|
|
@@ -784,7 +784,7 @@ function ha({ column: e }) {
|
|
|
784
784
|
/* @__PURE__ */ i.jsx(
|
|
785
785
|
"li",
|
|
786
786
|
{
|
|
787
|
-
onClick: () =>
|
|
787
|
+
onClick: () => c(e, "COUNT"),
|
|
788
788
|
className: "cursor-pointer p-1 px-3 transition-colors hover:bg-muted",
|
|
789
789
|
children: "Count"
|
|
790
790
|
}
|
|
@@ -792,7 +792,7 @@ function ha({ column: e }) {
|
|
|
792
792
|
/* @__PURE__ */ i.jsx(
|
|
793
793
|
"li",
|
|
794
794
|
{
|
|
795
|
-
onClick: () =>
|
|
795
|
+
onClick: () => c(e, "AVG"),
|
|
796
796
|
className: "cursor-pointer p-1 px-3 transition-colors hover:bg-muted",
|
|
797
797
|
children: "Avg"
|
|
798
798
|
}
|
|
@@ -800,7 +800,7 @@ function ha({ column: e }) {
|
|
|
800
800
|
/* @__PURE__ */ i.jsx(
|
|
801
801
|
"li",
|
|
802
802
|
{
|
|
803
|
-
onClick: () =>
|
|
803
|
+
onClick: () => c(e, "SUM"),
|
|
804
804
|
className: "cursor-pointer p-1 px-3 transition-colors hover:bg-muted",
|
|
805
805
|
children: "Sum"
|
|
806
806
|
}
|
|
@@ -808,7 +808,7 @@ function ha({ column: e }) {
|
|
|
808
808
|
/* @__PURE__ */ i.jsx(
|
|
809
809
|
"li",
|
|
810
810
|
{
|
|
811
|
-
onClick: () =>
|
|
811
|
+
onClick: () => c(e, "MAX"),
|
|
812
812
|
className: "cursor-pointer p-1 px-3 transition-colors hover:bg-muted",
|
|
813
813
|
children: "Max"
|
|
814
814
|
}
|
|
@@ -816,7 +816,7 @@ function ha({ column: e }) {
|
|
|
816
816
|
/* @__PURE__ */ i.jsx(
|
|
817
817
|
"li",
|
|
818
818
|
{
|
|
819
|
-
onClick: () =>
|
|
819
|
+
onClick: () => c(e, "MIN"),
|
|
820
820
|
className: "cursor-pointer p-1 px-3 transition-colors hover:bg-muted",
|
|
821
821
|
children: "Min"
|
|
822
822
|
}
|
|
@@ -846,16 +846,16 @@ function pa({
|
|
|
846
846
|
}) {
|
|
847
847
|
const s = C((d) => d.sqlGen), l = C((d) => d.actions.setRunSql), a = C((d) => d.actions.setSqlGen), o = C(
|
|
848
848
|
(d) => d.actions.setIsShowingVisual
|
|
849
|
-
),
|
|
850
|
-
function
|
|
851
|
-
const f =
|
|
849
|
+
), u = C((d) => d.actions.setCardSql);
|
|
850
|
+
function c(d) {
|
|
851
|
+
const f = ui(d, s);
|
|
852
852
|
a(f);
|
|
853
|
-
const p =
|
|
854
|
-
p && (
|
|
853
|
+
const p = ci(f, Pe(e), Pe(n));
|
|
854
|
+
p && (u(p), l(!0));
|
|
855
855
|
}
|
|
856
856
|
function h() {
|
|
857
857
|
let f = hi(e, n);
|
|
858
|
-
((y) => y.charAt(0) === y.charAt(0).toUpperCase())(n) && (f = `"${n}"`), o(!1),
|
|
858
|
+
((y) => y.charAt(0) === y.charAt(0).toUpperCase())(n) && (f = `"${n}"`), o(!1), u(`SELECT * FROM ${f} LIMIT 10`), l(!0);
|
|
859
859
|
}
|
|
860
860
|
return /* @__PURE__ */ i.jsxs("div", { className: "flex grow flex-col space-y-4 px-6", children: [
|
|
861
861
|
/* @__PURE__ */ i.jsx("div", { className: "font-medium", children: /* @__PURE__ */ i.jsxs(
|
|
@@ -880,7 +880,7 @@ function pa({
|
|
|
880
880
|
t == null ? void 0 : t.map((d) => /* @__PURE__ */ i.jsxs(
|
|
881
881
|
"div",
|
|
882
882
|
{
|
|
883
|
-
onClick: () =>
|
|
883
|
+
onClick: () => c(d),
|
|
884
884
|
className: xe(
|
|
885
885
|
"mx-3 flex cursor-pointer items-center justify-between rounded px-2 py-[6px] text-sm transition-colors hover:bg-muted/50",
|
|
886
886
|
{
|
|
@@ -926,8 +926,8 @@ function Ti({
|
|
|
926
926
|
), {
|
|
927
927
|
connectionItems: a,
|
|
928
928
|
schemaItems: o,
|
|
929
|
-
databaseItems:
|
|
930
|
-
tableItems:
|
|
929
|
+
databaseItems: u,
|
|
930
|
+
tableItems: c,
|
|
931
931
|
columns: h,
|
|
932
932
|
isConnectionsLoading: d,
|
|
933
933
|
isConnectionsError: f,
|
|
@@ -966,7 +966,7 @@ function Ti({
|
|
|
966
966
|
onChange: j,
|
|
967
967
|
isError: y,
|
|
968
968
|
isLoading: p,
|
|
969
|
-
items:
|
|
969
|
+
items: u,
|
|
970
970
|
value: t || "",
|
|
971
971
|
title: "Database"
|
|
972
972
|
}
|
|
@@ -991,7 +991,7 @@ function Ti({
|
|
|
991
991
|
{
|
|
992
992
|
onChange: l,
|
|
993
993
|
isError: y,
|
|
994
|
-
items:
|
|
994
|
+
items: c,
|
|
995
995
|
isLoading: p,
|
|
996
996
|
value: s || "",
|
|
997
997
|
title: "Table"
|
|
@@ -1115,7 +1115,7 @@ function xa({
|
|
|
1115
1115
|
] });
|
|
1116
1116
|
}
|
|
1117
1117
|
function ga() {
|
|
1118
|
-
const { authToken: e } = Mt(), n =
|
|
1118
|
+
const { authToken: e } = Mt(), n = cn(null), t = C((o) => o.applyFilters), [r, s] = J(""), l = C((o) => o.filterValues), a = C((o) => o.card.sql);
|
|
1119
1119
|
return /* @__PURE__ */ i.jsxs(
|
|
1120
1120
|
pi,
|
|
1121
1121
|
{
|
|
@@ -1124,7 +1124,7 @@ function ga() {
|
|
|
1124
1124
|
if (!o)
|
|
1125
1125
|
return;
|
|
1126
1126
|
console.log("onOpenChange");
|
|
1127
|
-
const
|
|
1127
|
+
const u = await xi(
|
|
1128
1128
|
"https://semaphor.cloud/api/v1/filter-sql",
|
|
1129
1129
|
(e == null ? void 0 : e.accessToken) || "",
|
|
1130
1130
|
{
|
|
@@ -1132,7 +1132,7 @@ function ga() {
|
|
|
1132
1132
|
active_filters: l
|
|
1133
1133
|
}
|
|
1134
1134
|
);
|
|
1135
|
-
console.log(
|
|
1135
|
+
console.log(u), u.sql ? (console.log(u.records), s(u.sql)) : s("Error");
|
|
1136
1136
|
},
|
|
1137
1137
|
children: [
|
|
1138
1138
|
/* @__PURE__ */ i.jsx(fi, { asChild: !0, children: t && /* @__PURE__ */ i.jsx("p", { className: "p-0 text-xs hover:cursor-pointer", children: "| Filter Query" }) }),
|
|
@@ -2340,7 +2340,7 @@ var _i = {}, gr = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Da = /\n/g, Pa = /^\s*/, Ra
|
|
|
2340
2340
|
function l() {
|
|
2341
2341
|
var y = { line: t, column: r };
|
|
2342
2342
|
return function(k) {
|
|
2343
|
-
return k.position = new a(y),
|
|
2343
|
+
return k.position = new a(y), c(), k;
|
|
2344
2344
|
};
|
|
2345
2345
|
}
|
|
2346
2346
|
function a(y) {
|
|
@@ -2354,15 +2354,15 @@ var _i = {}, gr = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Da = /\n/g, Pa = /^\s*/, Ra
|
|
|
2354
2354
|
if (k.reason = y, k.filename = n.source, k.line = t, k.column = r, k.source = e, !n.silent)
|
|
2355
2355
|
throw k;
|
|
2356
2356
|
}
|
|
2357
|
-
function
|
|
2357
|
+
function u(y) {
|
|
2358
2358
|
var k = y.exec(e);
|
|
2359
2359
|
if (k) {
|
|
2360
2360
|
var w = k[0];
|
|
2361
2361
|
return s(w), e = e.slice(w.length), k;
|
|
2362
2362
|
}
|
|
2363
2363
|
}
|
|
2364
|
-
function
|
|
2365
|
-
|
|
2364
|
+
function c() {
|
|
2365
|
+
u(Pa);
|
|
2366
2366
|
}
|
|
2367
2367
|
function h(y) {
|
|
2368
2368
|
var k;
|
|
@@ -2385,16 +2385,16 @@ var _i = {}, gr = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Da = /\n/g, Pa = /^\s*/, Ra
|
|
|
2385
2385
|
}
|
|
2386
2386
|
}
|
|
2387
2387
|
function f() {
|
|
2388
|
-
var y = l(), k =
|
|
2388
|
+
var y = l(), k = u(Ra);
|
|
2389
2389
|
if (k) {
|
|
2390
|
-
if (d(), !
|
|
2390
|
+
if (d(), !u(_a))
|
|
2391
2391
|
return o("property missing ':'");
|
|
2392
|
-
var w =
|
|
2392
|
+
var w = u(Ba), b = y({
|
|
2393
2393
|
type: $a,
|
|
2394
2394
|
property: kr(k[0].replace(gr, Ue)),
|
|
2395
2395
|
value: w ? kr(w[0].replace(gr, Ue)) : Ue
|
|
2396
2396
|
});
|
|
2397
|
-
return
|
|
2397
|
+
return u(Va), b;
|
|
2398
2398
|
}
|
|
2399
2399
|
}
|
|
2400
2400
|
function p() {
|
|
@@ -2404,7 +2404,7 @@ var _i = {}, gr = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Da = /\n/g, Pa = /^\s*/, Ra
|
|
|
2404
2404
|
k !== !1 && (y.push(k), h(y));
|
|
2405
2405
|
return y;
|
|
2406
2406
|
}
|
|
2407
|
-
return
|
|
2407
|
+
return c(), p();
|
|
2408
2408
|
};
|
|
2409
2409
|
function kr(e) {
|
|
2410
2410
|
return e ? e.replace(Ha, Ue) : Ue;
|
|
@@ -2520,12 +2520,12 @@ class he extends Error {
|
|
|
2520
2520
|
ancestors: [t],
|
|
2521
2521
|
place: t.position
|
|
2522
2522
|
} : l = { ...t }), typeof n == "string" ? s = n : !l.cause && n && (a = !0, s = n.message, l.cause = n), !l.ruleId && !l.source && typeof r == "string") {
|
|
2523
|
-
const
|
|
2524
|
-
|
|
2523
|
+
const u = r.indexOf(":");
|
|
2524
|
+
u === -1 ? l.ruleId = r : (l.source = r.slice(0, u), l.ruleId = r.slice(u + 1));
|
|
2525
2525
|
}
|
|
2526
2526
|
if (!l.place && l.ancestors && l.ancestors) {
|
|
2527
|
-
const
|
|
2528
|
-
|
|
2527
|
+
const u = l.ancestors[l.ancestors.length - 1];
|
|
2528
|
+
u && (l.place = u.position);
|
|
2529
2529
|
}
|
|
2530
2530
|
const o = l.place && "start" in l.place ? l.place.start : l.place;
|
|
2531
2531
|
this.ancestors = l.ancestors || void 0, this.cause = l.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file, this.message = s, this.line = o ? o.line : void 0, this.name = an(l.place) || "1:1", this.place = l.place || void 0, this.reason = this.message, this.ruleId = l.ruleId || void 0, this.source = l.source || void 0, this.stack = a && l.cause && typeof l.cause.stack == "string" ? l.cause.stack : "", this.actual, this.expected, this.note, this.url;
|
|
@@ -2561,7 +2561,7 @@ function ro(e, n) {
|
|
|
2561
2561
|
throw new TypeError("Expected `jsx` in production options");
|
|
2562
2562
|
if (typeof n.jsxs != "function")
|
|
2563
2563
|
throw new TypeError("Expected `jsxs` in production options");
|
|
2564
|
-
r =
|
|
2564
|
+
r = co(t, n.jsx, n.jsxs);
|
|
2565
2565
|
}
|
|
2566
2566
|
const s = {
|
|
2567
2567
|
Fragment: n.Fragment,
|
|
@@ -2597,7 +2597,7 @@ function qi(e, n, t) {
|
|
|
2597
2597
|
if (n.type === "root")
|
|
2598
2598
|
return oo(e, n, t);
|
|
2599
2599
|
if (n.type === "text")
|
|
2600
|
-
return
|
|
2600
|
+
return uo(e, n);
|
|
2601
2601
|
}
|
|
2602
2602
|
function io(e, n, t) {
|
|
2603
2603
|
const r = e.schema;
|
|
@@ -2605,8 +2605,8 @@ function io(e, n, t) {
|
|
|
2605
2605
|
n.tagName.toLowerCase() === "svg" && r.space === "html" && (s = Vt, e.schema = s), e.ancestors.push(n);
|
|
2606
2606
|
const l = $i(e, n.tagName, !1), a = po(e, n);
|
|
2607
2607
|
let o = $t(e, n);
|
|
2608
|
-
return no.has(n.tagName) && (o = o.filter(function(
|
|
2609
|
-
return typeof
|
|
2608
|
+
return no.has(n.tagName) && (o = o.filter(function(u) {
|
|
2609
|
+
return typeof u == "string" ? !Ca(u) : !0;
|
|
2610
2610
|
})), Ui(e, a, l, n), Ut(a, o), e.ancestors.pop(), e.schema = r, e.create(n, l, a, t);
|
|
2611
2611
|
}
|
|
2612
2612
|
function so(e, n) {
|
|
@@ -2636,7 +2636,7 @@ function oo(e, n, t) {
|
|
|
2636
2636
|
const r = {};
|
|
2637
2637
|
return Ut(r, $t(e, n)), e.create(n, e.Fragment, r, t);
|
|
2638
2638
|
}
|
|
2639
|
-
function
|
|
2639
|
+
function uo(e, n) {
|
|
2640
2640
|
return n.value;
|
|
2641
2641
|
}
|
|
2642
2642
|
function Ui(e, n, t, r) {
|
|
@@ -2648,26 +2648,26 @@ function Ut(e, n) {
|
|
|
2648
2648
|
t && (e.children = t);
|
|
2649
2649
|
}
|
|
2650
2650
|
}
|
|
2651
|
-
function
|
|
2651
|
+
function co(e, n, t) {
|
|
2652
2652
|
return r;
|
|
2653
2653
|
function r(s, l, a, o) {
|
|
2654
|
-
const
|
|
2655
|
-
return o ?
|
|
2654
|
+
const c = Array.isArray(a.children) ? t : n;
|
|
2655
|
+
return o ? c(l, a, o) : c(l, a);
|
|
2656
2656
|
}
|
|
2657
2657
|
}
|
|
2658
2658
|
function ho(e, n) {
|
|
2659
2659
|
return t;
|
|
2660
2660
|
function t(r, s, l, a) {
|
|
2661
|
-
const o = Array.isArray(l.children),
|
|
2661
|
+
const o = Array.isArray(l.children), u = Ht(r);
|
|
2662
2662
|
return n(
|
|
2663
2663
|
s,
|
|
2664
2664
|
l,
|
|
2665
2665
|
a,
|
|
2666
2666
|
o,
|
|
2667
2667
|
{
|
|
2668
|
-
columnNumber:
|
|
2668
|
+
columnNumber: u ? u.column - 1 : void 0,
|
|
2669
2669
|
fileName: e,
|
|
2670
|
-
lineNumber:
|
|
2670
|
+
lineNumber: u ? u.line : void 0
|
|
2671
2671
|
},
|
|
2672
2672
|
void 0
|
|
2673
2673
|
);
|
|
@@ -2733,10 +2733,10 @@ function $t(e, n) {
|
|
|
2733
2733
|
const l = n.children[r];
|
|
2734
2734
|
let a;
|
|
2735
2735
|
if (e.passKeys) {
|
|
2736
|
-
const
|
|
2737
|
-
if (
|
|
2738
|
-
const
|
|
2739
|
-
a =
|
|
2736
|
+
const u = l.type === "element" ? l.tagName : l.type === "mdxJsxFlowElement" || l.type === "mdxJsxTextElement" ? l.name : void 0;
|
|
2737
|
+
if (u) {
|
|
2738
|
+
const c = s.get(u) || 0;
|
|
2739
|
+
a = u + "-" + c, s.set(u, c + 1);
|
|
2740
2740
|
}
|
|
2741
2741
|
}
|
|
2742
2742
|
const o = qi(e, l, a);
|
|
@@ -3007,11 +3007,11 @@ function Y(e, n, t, r) {
|
|
|
3007
3007
|
const s = r ? r - 1 : Number.POSITIVE_INFINITY;
|
|
3008
3008
|
let l = 0;
|
|
3009
3009
|
return a;
|
|
3010
|
-
function a(
|
|
3011
|
-
return G(
|
|
3010
|
+
function a(u) {
|
|
3011
|
+
return G(u) ? (e.enter(t), o(u)) : n(u);
|
|
3012
3012
|
}
|
|
3013
|
-
function o(
|
|
3014
|
-
return G(
|
|
3013
|
+
function o(u) {
|
|
3014
|
+
return G(u) && l++ < s ? (e.consume(u), o) : (e.exit(t), n(u));
|
|
3015
3015
|
}
|
|
3016
3016
|
}
|
|
3017
3017
|
const Io = {
|
|
@@ -3036,11 +3036,11 @@ function Lo(e) {
|
|
|
3036
3036
|
return e.enter("paragraph"), l(o);
|
|
3037
3037
|
}
|
|
3038
3038
|
function l(o) {
|
|
3039
|
-
const
|
|
3039
|
+
const u = e.enter("chunkText", {
|
|
3040
3040
|
contentType: "text",
|
|
3041
3041
|
previous: t
|
|
3042
3042
|
});
|
|
3043
|
-
return t && (t.next =
|
|
3043
|
+
return t && (t.next = u), t = u, a(o);
|
|
3044
3044
|
}
|
|
3045
3045
|
function a(o) {
|
|
3046
3046
|
if (o === null) {
|
|
@@ -3064,13 +3064,13 @@ function Mo(e) {
|
|
|
3064
3064
|
const M = t[r];
|
|
3065
3065
|
return n.containerState = M[1], e.attempt(
|
|
3066
3066
|
M[0].continuation,
|
|
3067
|
-
|
|
3068
|
-
|
|
3067
|
+
u,
|
|
3068
|
+
c
|
|
3069
3069
|
)(S);
|
|
3070
3070
|
}
|
|
3071
|
-
return
|
|
3071
|
+
return c(S);
|
|
3072
3072
|
}
|
|
3073
|
-
function
|
|
3073
|
+
function u(S) {
|
|
3074
3074
|
if (r++, n.containerState._closeFlow) {
|
|
3075
3075
|
n.containerState._closeFlow = void 0, s && E();
|
|
3076
3076
|
const M = n.events.length;
|
|
@@ -3089,11 +3089,11 @@ function Mo(e) {
|
|
|
3089
3089
|
F + 1,
|
|
3090
3090
|
0,
|
|
3091
3091
|
n.events.slice(M)
|
|
3092
|
-
), n.events.length = R,
|
|
3092
|
+
), n.events.length = R, c(S);
|
|
3093
3093
|
}
|
|
3094
3094
|
return o(S);
|
|
3095
3095
|
}
|
|
3096
|
-
function
|
|
3096
|
+
function c(S) {
|
|
3097
3097
|
if (r === t.length) {
|
|
3098
3098
|
if (!s)
|
|
3099
3099
|
return f(S);
|
|
@@ -3214,7 +3214,7 @@ const yt = {
|
|
|
3214
3214
|
resolveAll: Po
|
|
3215
3215
|
};
|
|
3216
3216
|
function Po(e, n) {
|
|
3217
|
-
let t = -1, r, s, l, a, o,
|
|
3217
|
+
let t = -1, r, s, l, a, o, u, c, h;
|
|
3218
3218
|
for (; ++t < e.length; )
|
|
3219
3219
|
if (e[t][0] === "enter" && e[t][1].type === "attentionSequence" && e[t][1]._close) {
|
|
3220
3220
|
for (r = t; r--; )
|
|
@@ -3222,48 +3222,48 @@ function Po(e, n) {
|
|
|
3222
3222
|
n.sliceSerialize(e[r][1]).charCodeAt(0) === n.sliceSerialize(e[t][1]).charCodeAt(0)) {
|
|
3223
3223
|
if ((e[r][1]._close || e[t][1]._open) && (e[t][1].end.offset - e[t][1].start.offset) % 3 && !((e[r][1].end.offset - e[r][1].start.offset + e[t][1].end.offset - e[t][1].start.offset) % 3))
|
|
3224
3224
|
continue;
|
|
3225
|
-
|
|
3225
|
+
u = e[r][1].end.offset - e[r][1].start.offset > 1 && e[t][1].end.offset - e[t][1].start.offset > 1 ? 2 : 1;
|
|
3226
3226
|
const d = Object.assign({}, e[r][1].end), f = Object.assign({}, e[t][1].start);
|
|
3227
|
-
Or(d, -
|
|
3228
|
-
type:
|
|
3227
|
+
Or(d, -u), Or(f, u), a = {
|
|
3228
|
+
type: u > 1 ? "strongSequence" : "emphasisSequence",
|
|
3229
3229
|
start: d,
|
|
3230
3230
|
end: Object.assign({}, e[r][1].end)
|
|
3231
3231
|
}, o = {
|
|
3232
|
-
type:
|
|
3232
|
+
type: u > 1 ? "strongSequence" : "emphasisSequence",
|
|
3233
3233
|
start: Object.assign({}, e[t][1].start),
|
|
3234
3234
|
end: f
|
|
3235
3235
|
}, l = {
|
|
3236
|
-
type:
|
|
3236
|
+
type: u > 1 ? "strongText" : "emphasisText",
|
|
3237
3237
|
start: Object.assign({}, e[r][1].end),
|
|
3238
3238
|
end: Object.assign({}, e[t][1].start)
|
|
3239
3239
|
}, s = {
|
|
3240
|
-
type:
|
|
3240
|
+
type: u > 1 ? "strong" : "emphasis",
|
|
3241
3241
|
start: Object.assign({}, a.start),
|
|
3242
3242
|
end: Object.assign({}, o.end)
|
|
3243
|
-
}, e[r][1].end = Object.assign({}, a.start), e[t][1].start = Object.assign({}, o.end),
|
|
3243
|
+
}, e[r][1].end = Object.assign({}, a.start), e[t][1].start = Object.assign({}, o.end), c = [], e[r][1].end.offset - e[r][1].start.offset && (c = Ce(c, [
|
|
3244
3244
|
["enter", e[r][1], n],
|
|
3245
3245
|
["exit", e[r][1], n]
|
|
3246
|
-
])),
|
|
3246
|
+
])), c = Ce(c, [
|
|
3247
3247
|
["enter", s, n],
|
|
3248
3248
|
["enter", a, n],
|
|
3249
3249
|
["exit", a, n],
|
|
3250
3250
|
["enter", l, n]
|
|
3251
|
-
]),
|
|
3252
|
-
|
|
3251
|
+
]), c = Ce(
|
|
3252
|
+
c,
|
|
3253
3253
|
Kt(
|
|
3254
3254
|
n.parser.constructs.insideSpan.null,
|
|
3255
3255
|
e.slice(r + 1, t),
|
|
3256
3256
|
n
|
|
3257
3257
|
)
|
|
3258
|
-
),
|
|
3258
|
+
), c = Ce(c, [
|
|
3259
3259
|
["exit", l, n],
|
|
3260
3260
|
["enter", o, n],
|
|
3261
3261
|
["exit", o, n],
|
|
3262
3262
|
["exit", s, n]
|
|
3263
|
-
]), e[t][1].end.offset - e[t][1].start.offset ? (h = 2,
|
|
3263
|
+
]), e[t][1].end.offset - e[t][1].start.offset ? (h = 2, c = Ce(c, [
|
|
3264
3264
|
["enter", e[t][1], n],
|
|
3265
3265
|
["exit", e[t][1], n]
|
|
3266
|
-
])) : h = 0, Ie(e, r - 1, t - r + 3,
|
|
3266
|
+
])) : h = 0, Ie(e, r - 1, t - r + 3, c), t = r + c.length - h - 2;
|
|
3267
3267
|
break;
|
|
3268
3268
|
}
|
|
3269
3269
|
}
|
|
@@ -3275,14 +3275,14 @@ function Ro(e, n) {
|
|
|
3275
3275
|
const t = this.parser.constructs.attentionMarkers.null, r = this.previous, s = zr(r);
|
|
3276
3276
|
let l;
|
|
3277
3277
|
return a;
|
|
3278
|
-
function a(
|
|
3279
|
-
return l =
|
|
3278
|
+
function a(u) {
|
|
3279
|
+
return l = u, e.enter("attentionSequence"), o(u);
|
|
3280
3280
|
}
|
|
3281
|
-
function o(
|
|
3282
|
-
if (
|
|
3283
|
-
return e.consume(
|
|
3284
|
-
const
|
|
3285
|
-
return
|
|
3281
|
+
function o(u) {
|
|
3282
|
+
if (u === l)
|
|
3283
|
+
return e.consume(u), o;
|
|
3284
|
+
const c = e.exit("attentionSequence"), h = zr(u), d = !h || h === 2 && s || t.includes(u), f = !s || s === 2 && h || t.includes(r);
|
|
3285
|
+
return c._open = !!(l === 42 ? d : d && (s || !f)), c._close = !!(l === 42 ? f : f && (h || !d)), n(u);
|
|
3286
3286
|
}
|
|
3287
3287
|
}
|
|
3288
3288
|
function Or(e, n) {
|
|
@@ -3299,19 +3299,19 @@ function Bo(e, n, t) {
|
|
|
3299
3299
|
return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), l;
|
|
3300
3300
|
}
|
|
3301
3301
|
function l(p) {
|
|
3302
|
-
return Te(p) ? (e.consume(p), a) :
|
|
3302
|
+
return Te(p) ? (e.consume(p), a) : c(p);
|
|
3303
3303
|
}
|
|
3304
3304
|
function a(p) {
|
|
3305
|
-
return p === 43 || p === 45 || p === 46 || je(p) ? (r = 1, o(p)) :
|
|
3305
|
+
return p === 43 || p === 45 || p === 46 || je(p) ? (r = 1, o(p)) : c(p);
|
|
3306
3306
|
}
|
|
3307
3307
|
function o(p) {
|
|
3308
|
-
return p === 58 ? (e.consume(p), r = 0,
|
|
3309
|
-
}
|
|
3310
|
-
function c(p) {
|
|
3311
|
-
return p === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), n) : p === null || p === 32 || p === 60 || xt(p) ? t(p) : (e.consume(p), c);
|
|
3308
|
+
return p === 58 ? (e.consume(p), r = 0, u) : (p === 43 || p === 45 || p === 46 || je(p)) && r++ < 32 ? (e.consume(p), o) : (r = 0, c(p));
|
|
3312
3309
|
}
|
|
3313
3310
|
function u(p) {
|
|
3314
|
-
return p ===
|
|
3311
|
+
return p === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), n) : p === null || p === 32 || p === 60 || xt(p) ? t(p) : (e.consume(p), u);
|
|
3312
|
+
}
|
|
3313
|
+
function c(p) {
|
|
3314
|
+
return p === 64 ? (e.consume(p), h) : zo(p) ? (e.consume(p), c) : t(p);
|
|
3315
3315
|
}
|
|
3316
3316
|
function h(p) {
|
|
3317
3317
|
return je(p) ? d(p) : t(p);
|
|
@@ -3404,12 +3404,12 @@ function Wo(e, n, t) {
|
|
|
3404
3404
|
let s = 0, l, a;
|
|
3405
3405
|
return o;
|
|
3406
3406
|
function o(d) {
|
|
3407
|
-
return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"),
|
|
3408
|
-
}
|
|
3409
|
-
function c(d) {
|
|
3410
|
-
return d === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(d), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), l = 31, a = je, h(d));
|
|
3407
|
+
return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), u;
|
|
3411
3408
|
}
|
|
3412
3409
|
function u(d) {
|
|
3410
|
+
return d === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(d), e.exit("characterReferenceMarkerNumeric"), c) : (e.enter("characterReferenceValue"), l = 31, a = je, h(d));
|
|
3411
|
+
}
|
|
3412
|
+
function c(d) {
|
|
3413
3413
|
return d === 88 || d === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(d), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), l = 6, a = Oo, h) : (e.enter("characterReferenceValue"), l = 7, a = gt, h(d));
|
|
3414
3414
|
}
|
|
3415
3415
|
function h(d) {
|
|
@@ -3434,11 +3434,11 @@ function Ko(e, n, t) {
|
|
|
3434
3434
|
partial: !0
|
|
3435
3435
|
};
|
|
3436
3436
|
let l = 0, a = 0, o;
|
|
3437
|
-
return
|
|
3438
|
-
function c(j) {
|
|
3439
|
-
return u(j);
|
|
3440
|
-
}
|
|
3437
|
+
return u;
|
|
3441
3438
|
function u(j) {
|
|
3439
|
+
return c(j);
|
|
3440
|
+
}
|
|
3441
|
+
function c(j) {
|
|
3442
3442
|
const R = r.events[r.events.length - 1];
|
|
3443
3443
|
return l = R && R[1].type === "linePrefix" ? R[2].sliceSerialize(R[1], !0).length : 0, o = j, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), h(j);
|
|
3444
3444
|
}
|
|
@@ -3529,21 +3529,21 @@ const et = {
|
|
|
3529
3529
|
function Jo(e, n, t) {
|
|
3530
3530
|
const r = this;
|
|
3531
3531
|
return s;
|
|
3532
|
-
function s(
|
|
3533
|
-
return e.enter("codeIndented"), Y(e, l, "linePrefix", 5)(
|
|
3532
|
+
function s(c) {
|
|
3533
|
+
return e.enter("codeIndented"), Y(e, l, "linePrefix", 5)(c);
|
|
3534
3534
|
}
|
|
3535
|
-
function l(
|
|
3535
|
+
function l(c) {
|
|
3536
3536
|
const h = r.events[r.events.length - 1];
|
|
3537
|
-
return h && h[1].type === "linePrefix" && h[2].sliceSerialize(h[1], !0).length >= 4 ? a(
|
|
3537
|
+
return h && h[1].type === "linePrefix" && h[2].sliceSerialize(h[1], !0).length >= 4 ? a(c) : t(c);
|
|
3538
3538
|
}
|
|
3539
|
-
function a(
|
|
3540
|
-
return
|
|
3539
|
+
function a(c) {
|
|
3540
|
+
return c === null ? u(c) : D(c) ? e.attempt(Go, a, u)(c) : (e.enter("codeFlowValue"), o(c));
|
|
3541
3541
|
}
|
|
3542
|
-
function o(
|
|
3543
|
-
return
|
|
3542
|
+
function o(c) {
|
|
3543
|
+
return c === null || D(c) ? (e.exit("codeFlowValue"), a(c)) : (e.consume(c), o);
|
|
3544
3544
|
}
|
|
3545
|
-
function c
|
|
3546
|
-
return e.exit("codeIndented"), n(
|
|
3545
|
+
function u(c) {
|
|
3546
|
+
return e.exit("codeIndented"), n(c);
|
|
3547
3547
|
}
|
|
3548
3548
|
}
|
|
3549
3549
|
function Xo(e, n, t) {
|
|
@@ -3559,9 +3559,9 @@ function Xo(e, n, t) {
|
|
|
3559
3559
|
}
|
|
3560
3560
|
const Yo = {
|
|
3561
3561
|
name: "codeText",
|
|
3562
|
-
tokenize:
|
|
3562
|
+
tokenize: nu,
|
|
3563
3563
|
resolve: Zo,
|
|
3564
|
-
previous:
|
|
3564
|
+
previous: eu
|
|
3565
3565
|
};
|
|
3566
3566
|
function Zo(e) {
|
|
3567
3567
|
let n = e.length - 4, t = 3, r, s;
|
|
@@ -3576,51 +3576,51 @@ function Zo(e) {
|
|
|
3576
3576
|
s === void 0 ? r !== n && e[r][1].type !== "lineEnding" && (s = r) : (r === n || e[r][1].type === "lineEnding") && (e[s][1].type = "codeTextData", r !== s + 2 && (e[s][1].end = e[r - 1][1].end, e.splice(s + 2, r - s - 2), n -= r - s - 2, r = s + 2), s = void 0);
|
|
3577
3577
|
return e;
|
|
3578
3578
|
}
|
|
3579
|
-
function
|
|
3579
|
+
function eu(e) {
|
|
3580
3580
|
return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
3581
3581
|
}
|
|
3582
|
-
function
|
|
3582
|
+
function nu(e, n, t) {
|
|
3583
3583
|
let r = 0, s, l;
|
|
3584
3584
|
return a;
|
|
3585
3585
|
function a(d) {
|
|
3586
3586
|
return e.enter("codeText"), e.enter("codeTextSequence"), o(d);
|
|
3587
3587
|
}
|
|
3588
3588
|
function o(d) {
|
|
3589
|
-
return d === 96 ? (e.consume(d), r++, o) : (e.exit("codeTextSequence"),
|
|
3590
|
-
}
|
|
3591
|
-
function c(d) {
|
|
3592
|
-
return d === null ? t(d) : d === 32 ? (e.enter("space"), e.consume(d), e.exit("space"), c) : d === 96 ? (l = e.enter("codeTextSequence"), s = 0, h(d)) : D(d) ? (e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), c) : (e.enter("codeTextData"), u(d));
|
|
3589
|
+
return d === 96 ? (e.consume(d), r++, o) : (e.exit("codeTextSequence"), u(d));
|
|
3593
3590
|
}
|
|
3594
3591
|
function u(d) {
|
|
3595
|
-
return d === null
|
|
3592
|
+
return d === null ? t(d) : d === 32 ? (e.enter("space"), e.consume(d), e.exit("space"), u) : d === 96 ? (l = e.enter("codeTextSequence"), s = 0, h(d)) : D(d) ? (e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), u) : (e.enter("codeTextData"), c(d));
|
|
3593
|
+
}
|
|
3594
|
+
function c(d) {
|
|
3595
|
+
return d === null || d === 32 || d === 96 || D(d) ? (e.exit("codeTextData"), u(d)) : (e.consume(d), c);
|
|
3596
3596
|
}
|
|
3597
3597
|
function h(d) {
|
|
3598
|
-
return d === 96 ? (e.consume(d), s++, h) : s === r ? (e.exit("codeTextSequence"), e.exit("codeText"), n(d)) : (l.type = "codeTextData",
|
|
3598
|
+
return d === 96 ? (e.consume(d), s++, h) : s === r ? (e.exit("codeTextSequence"), e.exit("codeText"), n(d)) : (l.type = "codeTextData", c(d));
|
|
3599
3599
|
}
|
|
3600
3600
|
}
|
|
3601
3601
|
function Yi(e) {
|
|
3602
3602
|
const n = {};
|
|
3603
|
-
let t = -1, r, s, l, a, o,
|
|
3603
|
+
let t = -1, r, s, l, a, o, u, c;
|
|
3604
3604
|
for (; ++t < e.length; ) {
|
|
3605
3605
|
for (; t in n; )
|
|
3606
3606
|
t = n[t];
|
|
3607
|
-
if (r = e[t], t && r[1].type === "chunkFlow" && e[t - 1][1].type === "listItemPrefix" && (
|
|
3608
|
-
for (; ++l <
|
|
3609
|
-
|
|
3607
|
+
if (r = e[t], t && r[1].type === "chunkFlow" && e[t - 1][1].type === "listItemPrefix" && (u = r[1]._tokenizer.events, l = 0, l < u.length && u[l][1].type === "lineEndingBlank" && (l += 2), l < u.length && u[l][1].type === "content"))
|
|
3608
|
+
for (; ++l < u.length && u[l][1].type !== "content"; )
|
|
3609
|
+
u[l][1].type === "chunkText" && (u[l][1]._isInFirstContentOfListItem = !0, l++);
|
|
3610
3610
|
if (r[0] === "enter")
|
|
3611
|
-
r[1].contentType && (Object.assign(n,
|
|
3611
|
+
r[1].contentType && (Object.assign(n, tu(e, t)), t = n[t], c = !0);
|
|
3612
3612
|
else if (r[1]._container) {
|
|
3613
3613
|
for (l = t, s = void 0; l-- && (a = e[l], a[1].type === "lineEnding" || a[1].type === "lineEndingBlank"); )
|
|
3614
3614
|
a[0] === "enter" && (s && (e[s][1].type = "lineEndingBlank"), a[1].type = "lineEnding", s = l);
|
|
3615
3615
|
s && (r[1].end = Object.assign({}, e[s][1].start), o = e.slice(s, t), o.unshift(r), Ie(e, s, t - s + 1, o));
|
|
3616
3616
|
}
|
|
3617
3617
|
}
|
|
3618
|
-
return !
|
|
3618
|
+
return !c;
|
|
3619
3619
|
}
|
|
3620
|
-
function
|
|
3620
|
+
function tu(e, n) {
|
|
3621
3621
|
const t = e[n][1], r = e[n][2];
|
|
3622
3622
|
let s = n - 1;
|
|
3623
|
-
const l = [], a = t._tokenizer || r.parser[t.contentType](t.start), o = a.events,
|
|
3623
|
+
const l = [], a = t._tokenizer || r.parser[t.contentType](t.start), o = a.events, u = [], c = {};
|
|
3624
3624
|
let h, d, f = -1, p = t, y = 0, k = 0;
|
|
3625
3625
|
const w = [k];
|
|
3626
3626
|
for (; p; ) {
|
|
@@ -3633,23 +3633,23 @@ function tc(e, n) {
|
|
|
3633
3633
|
o[f][0] === "exit" && o[f - 1][0] === "enter" && o[f][1].type === o[f - 1][1].type && o[f][1].start.line !== o[f][1].end.line && (k = f + 1, w.push(k), p._tokenizer = void 0, p.previous = void 0, p = p.next);
|
|
3634
3634
|
for (a.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : w.pop(), f = w.length; f--; ) {
|
|
3635
3635
|
const b = o.slice(w[f], w[f + 1]), E = l.pop();
|
|
3636
|
-
|
|
3636
|
+
u.unshift([E, E + b.length - 1]), Ie(e, E, 2, b);
|
|
3637
3637
|
}
|
|
3638
|
-
for (f = -1; ++f <
|
|
3639
|
-
|
|
3640
|
-
return
|
|
3638
|
+
for (f = -1; ++f < u.length; )
|
|
3639
|
+
c[y + u[f][0]] = y + u[f][1], y += u[f][1] - u[f][0] - 1;
|
|
3640
|
+
return c;
|
|
3641
3641
|
}
|
|
3642
|
-
const
|
|
3643
|
-
tokenize:
|
|
3644
|
-
resolve:
|
|
3645
|
-
},
|
|
3646
|
-
tokenize:
|
|
3642
|
+
const ru = {
|
|
3643
|
+
tokenize: lu,
|
|
3644
|
+
resolve: su
|
|
3645
|
+
}, iu = {
|
|
3646
|
+
tokenize: au,
|
|
3647
3647
|
partial: !0
|
|
3648
3648
|
};
|
|
3649
|
-
function
|
|
3649
|
+
function su(e) {
|
|
3650
3650
|
return Yi(e), e;
|
|
3651
3651
|
}
|
|
3652
|
-
function
|
|
3652
|
+
function lu(e, n) {
|
|
3653
3653
|
let t;
|
|
3654
3654
|
return r;
|
|
3655
3655
|
function r(o) {
|
|
@@ -3659,7 +3659,7 @@ function lc(e, n) {
|
|
|
3659
3659
|
}
|
|
3660
3660
|
function s(o) {
|
|
3661
3661
|
return o === null ? l(o) : D(o) ? e.check(
|
|
3662
|
-
|
|
3662
|
+
iu,
|
|
3663
3663
|
a,
|
|
3664
3664
|
l
|
|
3665
3665
|
)(o) : (e.consume(o), s);
|
|
@@ -3674,7 +3674,7 @@ function lc(e, n) {
|
|
|
3674
3674
|
}), t = t.next, s;
|
|
3675
3675
|
}
|
|
3676
3676
|
}
|
|
3677
|
-
function
|
|
3677
|
+
function au(e, n, t) {
|
|
3678
3678
|
const r = this;
|
|
3679
3679
|
return s;
|
|
3680
3680
|
function s(a) {
|
|
@@ -3687,8 +3687,8 @@ function ac(e, n, t) {
|
|
|
3687
3687
|
return !r.parser.constructs.disable.null.includes("codeIndented") && o && o[1].type === "linePrefix" && o[2].sliceSerialize(o[1], !0).length >= 4 ? n(a) : e.interrupt(r.parser.constructs.flow, t, n)(a);
|
|
3688
3688
|
}
|
|
3689
3689
|
}
|
|
3690
|
-
function Zi(e, n, t, r, s, l, a, o,
|
|
3691
|
-
const
|
|
3690
|
+
function Zi(e, n, t, r, s, l, a, o, u) {
|
|
3691
|
+
const c = u || Number.POSITIVE_INFINITY;
|
|
3692
3692
|
let h = 0;
|
|
3693
3693
|
return d;
|
|
3694
3694
|
function d(b) {
|
|
@@ -3708,7 +3708,7 @@ function Zi(e, n, t, r, s, l, a, o, c) {
|
|
|
3708
3708
|
return b === 60 || b === 62 || b === 92 ? (e.consume(b), p) : p(b);
|
|
3709
3709
|
}
|
|
3710
3710
|
function k(b) {
|
|
3711
|
-
return !h && (b === null || b === 41 || ge(b)) ? (e.exit("chunkString"), e.exit(o), e.exit(a), e.exit(r), n(b)) : h <
|
|
3711
|
+
return !h && (b === null || b === 41 || ge(b)) ? (e.exit("chunkString"), e.exit(o), e.exit(a), e.exit(r), n(b)) : h < c && b === 40 ? (e.consume(b), h++, k) : b === 41 ? (e.consume(b), h--, k) : b === null || b === 32 || b === 40 || xt(b) ? t(b) : (e.consume(b), b === 92 ? w : k);
|
|
3712
3712
|
}
|
|
3713
3713
|
function w(b) {
|
|
3714
3714
|
return b === 40 || b === 41 || b === 92 ? (e.consume(b), k) : k(b);
|
|
@@ -3716,13 +3716,13 @@ function Zi(e, n, t, r, s, l, a, o, c) {
|
|
|
3716
3716
|
}
|
|
3717
3717
|
function es(e, n, t, r, s, l) {
|
|
3718
3718
|
const a = this;
|
|
3719
|
-
let o = 0,
|
|
3720
|
-
return
|
|
3721
|
-
function
|
|
3719
|
+
let o = 0, u;
|
|
3720
|
+
return c;
|
|
3721
|
+
function c(p) {
|
|
3722
3722
|
return e.enter(r), e.enter(s), e.consume(p), e.exit(s), e.enter(l), h;
|
|
3723
3723
|
}
|
|
3724
3724
|
function h(p) {
|
|
3725
|
-
return o > 999 || p === null || p === 91 || p === 93 && !
|
|
3725
|
+
return o > 999 || p === null || p === 91 || p === 93 && !u || // To do: remove in the future once we’ve switched from
|
|
3726
3726
|
// `micromark-extension-footnote` to `micromark-extension-gfm-footnote`,
|
|
3727
3727
|
// which doesn’t need this.
|
|
3728
3728
|
// Hidden footnotes hook.
|
|
@@ -3732,7 +3732,7 @@ function es(e, n, t, r, s, l) {
|
|
|
3732
3732
|
}), d(p));
|
|
3733
3733
|
}
|
|
3734
3734
|
function d(p) {
|
|
3735
|
-
return p === null || p === 91 || p === 93 || D(p) || o++ > 999 ? (e.exit("chunkString"), h(p)) : (e.consume(p),
|
|
3735
|
+
return p === null || p === 91 || p === 93 || D(p) || o++ > 999 ? (e.exit("chunkString"), h(p)) : (e.consume(p), u || (u = !G(p)), p === 92 ? f : d);
|
|
3736
3736
|
}
|
|
3737
3737
|
function f(p) {
|
|
3738
3738
|
return p === 91 || p === 92 || p === 93 ? (e.consume(p), o++, d) : d(p);
|
|
@@ -3742,18 +3742,18 @@ function ns(e, n, t, r, s, l) {
|
|
|
3742
3742
|
let a;
|
|
3743
3743
|
return o;
|
|
3744
3744
|
function o(f) {
|
|
3745
|
-
return f === 34 || f === 39 || f === 40 ? (e.enter(r), e.enter(s), e.consume(f), e.exit(s), a = f === 40 ? 41 : f,
|
|
3746
|
-
}
|
|
3747
|
-
function c(f) {
|
|
3748
|
-
return f === a ? (e.enter(s), e.consume(f), e.exit(s), e.exit(r), n) : (e.enter(l), u(f));
|
|
3745
|
+
return f === 34 || f === 39 || f === 40 ? (e.enter(r), e.enter(s), e.consume(f), e.exit(s), a = f === 40 ? 41 : f, u) : t(f);
|
|
3749
3746
|
}
|
|
3750
3747
|
function u(f) {
|
|
3751
|
-
return f === a ? (e.
|
|
3748
|
+
return f === a ? (e.enter(s), e.consume(f), e.exit(s), e.exit(r), n) : (e.enter(l), c(f));
|
|
3749
|
+
}
|
|
3750
|
+
function c(f) {
|
|
3751
|
+
return f === a ? (e.exit(l), u(a)) : f === null ? t(f) : D(f) ? (e.enter("lineEnding"), e.consume(f), e.exit("lineEnding"), Y(e, c, "linePrefix")) : (e.enter("chunkString", {
|
|
3752
3752
|
contentType: "string"
|
|
3753
3753
|
}), h(f));
|
|
3754
3754
|
}
|
|
3755
3755
|
function h(f) {
|
|
3756
|
-
return f === a || f === null || D(f) ? (e.exit("chunkString"),
|
|
3756
|
+
return f === a || f === null || D(f) ? (e.exit("chunkString"), c(f)) : (e.consume(f), f === 92 ? d : h);
|
|
3757
3757
|
}
|
|
3758
3758
|
function d(f) {
|
|
3759
3759
|
return f === a || f === 92 ? (e.consume(f), h) : h(f);
|
|
@@ -3770,14 +3770,14 @@ function on(e, n) {
|
|
|
3770
3770
|
)(s) : n(s);
|
|
3771
3771
|
}
|
|
3772
3772
|
}
|
|
3773
|
-
const
|
|
3773
|
+
const ou = {
|
|
3774
3774
|
name: "definition",
|
|
3775
|
-
tokenize:
|
|
3776
|
-
},
|
|
3777
|
-
tokenize:
|
|
3775
|
+
tokenize: cu
|
|
3776
|
+
}, uu = {
|
|
3777
|
+
tokenize: du,
|
|
3778
3778
|
partial: !0
|
|
3779
3779
|
};
|
|
3780
|
-
function
|
|
3780
|
+
function cu(e, n, t) {
|
|
3781
3781
|
const r = this;
|
|
3782
3782
|
let s;
|
|
3783
3783
|
return l;
|
|
@@ -3799,12 +3799,12 @@ function uc(e, n, t) {
|
|
|
3799
3799
|
function o(p) {
|
|
3800
3800
|
return s = Ze(
|
|
3801
3801
|
r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)
|
|
3802
|
-
), p === 58 ? (e.enter("definitionMarker"), e.consume(p), e.exit("definitionMarker"),
|
|
3803
|
-
}
|
|
3804
|
-
function c(p) {
|
|
3805
|
-
return ge(p) ? on(e, u)(p) : u(p);
|
|
3802
|
+
), p === 58 ? (e.enter("definitionMarker"), e.consume(p), e.exit("definitionMarker"), u) : t(p);
|
|
3806
3803
|
}
|
|
3807
3804
|
function u(p) {
|
|
3805
|
+
return ge(p) ? on(e, c)(p) : c(p);
|
|
3806
|
+
}
|
|
3807
|
+
function c(p) {
|
|
3808
3808
|
return Zi(
|
|
3809
3809
|
e,
|
|
3810
3810
|
h,
|
|
@@ -3818,7 +3818,7 @@ function uc(e, n, t) {
|
|
|
3818
3818
|
)(p);
|
|
3819
3819
|
}
|
|
3820
3820
|
function h(p) {
|
|
3821
|
-
return e.attempt(
|
|
3821
|
+
return e.attempt(uu, d, d)(p);
|
|
3822
3822
|
}
|
|
3823
3823
|
function d(p) {
|
|
3824
3824
|
return G(p) ? Y(e, f, "whitespace")(p) : f(p);
|
|
@@ -3827,7 +3827,7 @@ function uc(e, n, t) {
|
|
|
3827
3827
|
return p === null || D(p) ? (e.exit("definition"), r.parser.defined.push(s), n(p)) : t(p);
|
|
3828
3828
|
}
|
|
3829
3829
|
}
|
|
3830
|
-
function
|
|
3830
|
+
function du(e, n, t) {
|
|
3831
3831
|
return r;
|
|
3832
3832
|
function r(o) {
|
|
3833
3833
|
return ge(o) ? on(e, s)(o) : t(o);
|
|
@@ -3849,11 +3849,11 @@ function dc(e, n, t) {
|
|
|
3849
3849
|
return o === null || D(o) ? n(o) : t(o);
|
|
3850
3850
|
}
|
|
3851
3851
|
}
|
|
3852
|
-
const
|
|
3852
|
+
const hu = {
|
|
3853
3853
|
name: "hardBreakEscape",
|
|
3854
|
-
tokenize:
|
|
3854
|
+
tokenize: pu
|
|
3855
3855
|
};
|
|
3856
|
-
function
|
|
3856
|
+
function pu(e, n, t) {
|
|
3857
3857
|
return r;
|
|
3858
3858
|
function r(l) {
|
|
3859
3859
|
return e.enter("hardBreakEscape"), e.consume(l), s;
|
|
@@ -3862,12 +3862,12 @@ function pc(e, n, t) {
|
|
|
3862
3862
|
return D(l) ? (e.exit("hardBreakEscape"), n(l)) : t(l);
|
|
3863
3863
|
}
|
|
3864
3864
|
}
|
|
3865
|
-
const
|
|
3865
|
+
const fu = {
|
|
3866
3866
|
name: "headingAtx",
|
|
3867
|
-
tokenize:
|
|
3868
|
-
resolve:
|
|
3867
|
+
tokenize: xu,
|
|
3868
|
+
resolve: mu
|
|
3869
3869
|
};
|
|
3870
|
-
function
|
|
3870
|
+
function mu(e, n) {
|
|
3871
3871
|
let t = e.length - 2, r = 3, s, l;
|
|
3872
3872
|
return e[r][1].type === "whitespace" && (r += 2), t - 2 > r && e[t][1].type === "whitespace" && (t -= 2), e[t][1].type === "atxHeadingSequence" && (r === t - 1 || t - 4 > r && e[t - 2][1].type === "whitespace") && (t -= r + 1 === t ? 2 : 4), t > r && (s = {
|
|
3873
3873
|
type: "atxHeadingText",
|
|
@@ -3885,7 +3885,7 @@ function mc(e, n) {
|
|
|
3885
3885
|
["exit", s, n]
|
|
3886
3886
|
])), e;
|
|
3887
3887
|
}
|
|
3888
|
-
function
|
|
3888
|
+
function xu(e, n, t) {
|
|
3889
3889
|
let r = 0;
|
|
3890
3890
|
return s;
|
|
3891
3891
|
function s(h) {
|
|
@@ -3898,16 +3898,16 @@ function xc(e, n, t) {
|
|
|
3898
3898
|
return h === 35 && r++ < 6 ? (e.consume(h), a) : h === null || ge(h) ? (e.exit("atxHeadingSequence"), o(h)) : t(h);
|
|
3899
3899
|
}
|
|
3900
3900
|
function o(h) {
|
|
3901
|
-
return h === 35 ? (e.enter("atxHeadingSequence"),
|
|
3902
|
-
}
|
|
3903
|
-
function c(h) {
|
|
3904
|
-
return h === 35 ? (e.consume(h), c) : (e.exit("atxHeadingSequence"), o(h));
|
|
3901
|
+
return h === 35 ? (e.enter("atxHeadingSequence"), u(h)) : h === null || D(h) ? (e.exit("atxHeading"), n(h)) : G(h) ? Y(e, o, "whitespace")(h) : (e.enter("atxHeadingText"), c(h));
|
|
3905
3902
|
}
|
|
3906
3903
|
function u(h) {
|
|
3907
|
-
return h ===
|
|
3904
|
+
return h === 35 ? (e.consume(h), u) : (e.exit("atxHeadingSequence"), o(h));
|
|
3905
|
+
}
|
|
3906
|
+
function c(h) {
|
|
3907
|
+
return h === null || h === 35 || ge(h) ? (e.exit("atxHeadingText"), o(h)) : (e.consume(h), c);
|
|
3908
3908
|
}
|
|
3909
3909
|
}
|
|
3910
|
-
const
|
|
3910
|
+
const gu = [
|
|
3911
3911
|
"address",
|
|
3912
3912
|
"article",
|
|
3913
3913
|
"aside",
|
|
@@ -3970,29 +3970,29 @@ const gc = [
|
|
|
3970
3970
|
"tr",
|
|
3971
3971
|
"track",
|
|
3972
3972
|
"ul"
|
|
3973
|
-
], Ir = ["pre", "script", "style", "textarea"],
|
|
3973
|
+
], Ir = ["pre", "script", "style", "textarea"], yu = {
|
|
3974
3974
|
name: "htmlFlow",
|
|
3975
|
-
tokenize:
|
|
3976
|
-
resolveTo:
|
|
3975
|
+
tokenize: wu,
|
|
3976
|
+
resolveTo: ju,
|
|
3977
3977
|
concrete: !0
|
|
3978
|
-
},
|
|
3979
|
-
tokenize:
|
|
3978
|
+
}, bu = {
|
|
3979
|
+
tokenize: Su,
|
|
3980
3980
|
partial: !0
|
|
3981
|
-
},
|
|
3982
|
-
tokenize:
|
|
3981
|
+
}, ku = {
|
|
3982
|
+
tokenize: Cu,
|
|
3983
3983
|
partial: !0
|
|
3984
3984
|
};
|
|
3985
|
-
function
|
|
3985
|
+
function ju(e) {
|
|
3986
3986
|
let n = e.length;
|
|
3987
3987
|
for (; n-- && !(e[n][0] === "enter" && e[n][1].type === "htmlFlow"); )
|
|
3988
3988
|
;
|
|
3989
3989
|
return n > 1 && e[n - 2][1].type === "linePrefix" && (e[n][1].start = e[n - 2][1].start, e[n + 1][1].start = e[n - 2][1].start, e.splice(n - 2, 2)), e;
|
|
3990
3990
|
}
|
|
3991
|
-
function
|
|
3991
|
+
function wu(e, n, t) {
|
|
3992
3992
|
const r = this;
|
|
3993
|
-
let s, l, a, o,
|
|
3994
|
-
return
|
|
3995
|
-
function
|
|
3993
|
+
let s, l, a, o, u;
|
|
3994
|
+
return c;
|
|
3995
|
+
function c(x) {
|
|
3996
3996
|
return h(x);
|
|
3997
3997
|
}
|
|
3998
3998
|
function h(x) {
|
|
@@ -4017,7 +4017,7 @@ function wc(e, n, t) {
|
|
|
4017
4017
|
function w(x) {
|
|
4018
4018
|
if (x === null || x === 47 || x === 62 || ge(x)) {
|
|
4019
4019
|
const ye = x === 47, Ee = a.toLowerCase();
|
|
4020
|
-
return !ye && !l && Ir.includes(Ee) ? (s = 1, r.interrupt ? n(x) : z(x)) :
|
|
4020
|
+
return !ye && !l && Ir.includes(Ee) ? (s = 1, r.interrupt ? n(x) : z(x)) : gu.includes(a.toLowerCase()) ? (s = 6, ye ? (e.consume(x), b) : r.interrupt ? n(x) : z(x)) : (s = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(x) : l ? E(x) : S(x));
|
|
4021
4021
|
}
|
|
4022
4022
|
return x === 45 || je(x) ? (e.consume(x), a += String.fromCharCode(x), w) : t(x);
|
|
4023
4023
|
}
|
|
@@ -4037,10 +4037,10 @@ function wc(e, n, t) {
|
|
|
4037
4037
|
return x === 61 ? (e.consume(x), j) : G(x) ? (e.consume(x), F) : S(x);
|
|
4038
4038
|
}
|
|
4039
4039
|
function j(x) {
|
|
4040
|
-
return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? t(x) : x === 34 || x === 39 ? (e.consume(x),
|
|
4040
|
+
return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? t(x) : x === 34 || x === 39 ? (e.consume(x), u = x, R) : G(x) ? (e.consume(x), j) : A(x);
|
|
4041
4041
|
}
|
|
4042
4042
|
function R(x) {
|
|
4043
|
-
return x ===
|
|
4043
|
+
return x === u ? (e.consume(x), u = null, I) : x === null || D(x) ? t(x) : (e.consume(x), R);
|
|
4044
4044
|
}
|
|
4045
4045
|
function A(x) {
|
|
4046
4046
|
return x === null || x === 34 || x === 39 || x === 47 || x === 60 || x === 61 || x === 62 || x === 96 || ge(x) ? F(x) : (e.consume(x), A);
|
|
@@ -4056,14 +4056,14 @@ function wc(e, n, t) {
|
|
|
4056
4056
|
}
|
|
4057
4057
|
function z(x) {
|
|
4058
4058
|
return x === 45 && s === 2 ? (e.consume(x), $) : x === 60 && s === 1 ? (e.consume(x), Z) : x === 62 && s === 4 ? (e.consume(x), ee) : x === 63 && s === 3 ? (e.consume(x), m) : x === 93 && s === 5 ? (e.consume(x), O) : D(x) && (s === 6 || s === 7) ? (e.exit("htmlFlowData"), e.check(
|
|
4059
|
-
|
|
4059
|
+
bu,
|
|
4060
4060
|
oe,
|
|
4061
4061
|
W
|
|
4062
4062
|
)(x)) : x === null || D(x) ? (e.exit("htmlFlowData"), W(x)) : (e.consume(x), z);
|
|
4063
4063
|
}
|
|
4064
4064
|
function W(x) {
|
|
4065
4065
|
return e.check(
|
|
4066
|
-
|
|
4066
|
+
ku,
|
|
4067
4067
|
K,
|
|
4068
4068
|
oe
|
|
4069
4069
|
)(x);
|
|
@@ -4078,14 +4078,14 @@ function wc(e, n, t) {
|
|
|
4078
4078
|
return x === 45 ? (e.consume(x), m) : z(x);
|
|
4079
4079
|
}
|
|
4080
4080
|
function Z(x) {
|
|
4081
|
-
return x === 47 ? (e.consume(x), a = "",
|
|
4081
|
+
return x === 47 ? (e.consume(x), a = "", ce) : z(x);
|
|
4082
4082
|
}
|
|
4083
|
-
function
|
|
4083
|
+
function ce(x) {
|
|
4084
4084
|
if (x === 62) {
|
|
4085
4085
|
const ye = a.toLowerCase();
|
|
4086
4086
|
return Ir.includes(ye) ? (e.consume(x), ee) : z(x);
|
|
4087
4087
|
}
|
|
4088
|
-
return Te(x) && a.length < 8 ? (e.consume(x), a += String.fromCharCode(x),
|
|
4088
|
+
return Te(x) && a.length < 8 ? (e.consume(x), a += String.fromCharCode(x), ce) : z(x);
|
|
4089
4089
|
}
|
|
4090
4090
|
function O(x) {
|
|
4091
4091
|
return x === 93 ? (e.consume(x), m) : z(x);
|
|
@@ -4100,7 +4100,7 @@ function wc(e, n, t) {
|
|
|
4100
4100
|
return e.exit("htmlFlow"), n(x);
|
|
4101
4101
|
}
|
|
4102
4102
|
}
|
|
4103
|
-
function
|
|
4103
|
+
function Cu(e, n, t) {
|
|
4104
4104
|
const r = this;
|
|
4105
4105
|
return s;
|
|
4106
4106
|
function s(a) {
|
|
@@ -4110,27 +4110,27 @@ function Cc(e, n, t) {
|
|
|
4110
4110
|
return r.parser.lazy[r.now().line] ? t(a) : n(a);
|
|
4111
4111
|
}
|
|
4112
4112
|
}
|
|
4113
|
-
function
|
|
4113
|
+
function Su(e, n, t) {
|
|
4114
4114
|
return r;
|
|
4115
4115
|
function r(s) {
|
|
4116
4116
|
return e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), e.attempt(Vn, n, t);
|
|
4117
4117
|
}
|
|
4118
4118
|
}
|
|
4119
|
-
const
|
|
4119
|
+
const vu = {
|
|
4120
4120
|
name: "htmlText",
|
|
4121
|
-
tokenize:
|
|
4121
|
+
tokenize: Nu
|
|
4122
4122
|
};
|
|
4123
|
-
function
|
|
4123
|
+
function Nu(e, n, t) {
|
|
4124
4124
|
const r = this;
|
|
4125
4125
|
let s, l, a;
|
|
4126
4126
|
return o;
|
|
4127
4127
|
function o(m) {
|
|
4128
|
-
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(m),
|
|
4129
|
-
}
|
|
4130
|
-
function c(m) {
|
|
4131
|
-
return m === 33 ? (e.consume(m), u) : m === 47 ? (e.consume(m), F) : m === 63 ? (e.consume(m), S) : Te(m) ? (e.consume(m), A) : t(m);
|
|
4128
|
+
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(m), u;
|
|
4132
4129
|
}
|
|
4133
4130
|
function u(m) {
|
|
4131
|
+
return m === 33 ? (e.consume(m), c) : m === 47 ? (e.consume(m), F) : m === 63 ? (e.consume(m), S) : Te(m) ? (e.consume(m), A) : t(m);
|
|
4132
|
+
}
|
|
4133
|
+
function c(m) {
|
|
4134
4134
|
return m === 45 ? (e.consume(m), h) : m === 91 ? (e.consume(m), l = 0, y) : Te(m) ? (e.consume(m), E) : t(m);
|
|
4135
4135
|
}
|
|
4136
4136
|
function h(m) {
|
|
@@ -4204,9 +4204,9 @@ function Nc(e, n, t) {
|
|
|
4204
4204
|
return m === 62 ? (e.consume(m), e.exit("htmlTextData"), e.exit("htmlText"), n) : t(m);
|
|
4205
4205
|
}
|
|
4206
4206
|
function Z(m) {
|
|
4207
|
-
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"),
|
|
4207
|
+
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), ce;
|
|
4208
4208
|
}
|
|
4209
|
-
function
|
|
4209
|
+
function ce(m) {
|
|
4210
4210
|
return G(m) ? Y(
|
|
4211
4211
|
e,
|
|
4212
4212
|
O,
|
|
@@ -4220,17 +4220,17 @@ function Nc(e, n, t) {
|
|
|
4220
4220
|
}
|
|
4221
4221
|
const Qt = {
|
|
4222
4222
|
name: "labelEnd",
|
|
4223
|
-
tokenize:
|
|
4224
|
-
resolveTo:
|
|
4225
|
-
resolveAll:
|
|
4226
|
-
},
|
|
4227
|
-
tokenize:
|
|
4228
|
-
},
|
|
4229
|
-
tokenize:
|
|
4230
|
-
},
|
|
4231
|
-
tokenize:
|
|
4223
|
+
tokenize: Iu,
|
|
4224
|
+
resolveTo: Au,
|
|
4225
|
+
resolveAll: Tu
|
|
4226
|
+
}, Eu = {
|
|
4227
|
+
tokenize: Lu
|
|
4228
|
+
}, zu = {
|
|
4229
|
+
tokenize: Fu
|
|
4230
|
+
}, Ou = {
|
|
4231
|
+
tokenize: Mu
|
|
4232
4232
|
};
|
|
4233
|
-
function
|
|
4233
|
+
function Tu(e) {
|
|
4234
4234
|
let n = -1;
|
|
4235
4235
|
for (; ++n < e.length; ) {
|
|
4236
4236
|
const t = e[n][1];
|
|
@@ -4238,7 +4238,7 @@ function Tc(e) {
|
|
|
4238
4238
|
}
|
|
4239
4239
|
return e;
|
|
4240
4240
|
}
|
|
4241
|
-
function
|
|
4241
|
+
function Au(e, n) {
|
|
4242
4242
|
let t = e.length, r = 0, s, l, a, o;
|
|
4243
4243
|
for (; t--; )
|
|
4244
4244
|
if (s = e[t][1], l) {
|
|
@@ -4252,11 +4252,11 @@ function Ac(e, n) {
|
|
|
4252
4252
|
}
|
|
4253
4253
|
} else
|
|
4254
4254
|
s.type === "labelEnd" && (a = t);
|
|
4255
|
-
const
|
|
4255
|
+
const u = {
|
|
4256
4256
|
type: e[l][1].type === "labelLink" ? "link" : "image",
|
|
4257
4257
|
start: Object.assign({}, e[l][1].start),
|
|
4258
4258
|
end: Object.assign({}, e[e.length - 1][1].end)
|
|
4259
|
-
},
|
|
4259
|
+
}, c = {
|
|
4260
4260
|
type: "label",
|
|
4261
4261
|
start: Object.assign({}, e[l][1].start),
|
|
4262
4262
|
end: Object.assign({}, e[a][1].end)
|
|
@@ -4266,8 +4266,8 @@ function Ac(e, n) {
|
|
|
4266
4266
|
end: Object.assign({}, e[a - 2][1].start)
|
|
4267
4267
|
};
|
|
4268
4268
|
return o = [
|
|
4269
|
-
["enter",
|
|
4270
|
-
["enter",
|
|
4269
|
+
["enter", u, n],
|
|
4270
|
+
["enter", c, n]
|
|
4271
4271
|
], o = Ce(o, e.slice(l + 1, l + r + 3)), o = Ce(o, [["enter", h, n]]), o = Ce(
|
|
4272
4272
|
o,
|
|
4273
4273
|
Kt(
|
|
@@ -4279,10 +4279,10 @@ function Ac(e, n) {
|
|
|
4279
4279
|
["exit", h, n],
|
|
4280
4280
|
e[a - 2],
|
|
4281
4281
|
e[a - 1],
|
|
4282
|
-
["exit",
|
|
4283
|
-
]), o = Ce(o, e.slice(a + 1)), o = Ce(o, [["exit",
|
|
4282
|
+
["exit", c, n]
|
|
4283
|
+
]), o = Ce(o, e.slice(a + 1)), o = Ce(o, [["exit", u, n]]), Ie(e, l, e.length, o), e;
|
|
4284
4284
|
}
|
|
4285
|
-
function
|
|
4285
|
+
function Iu(e, n, t) {
|
|
4286
4286
|
const r = this;
|
|
4287
4287
|
let s = r.events.length, l, a;
|
|
4288
4288
|
for (; s--; )
|
|
@@ -4299,22 +4299,22 @@ function Ic(e, n, t) {
|
|
|
4299
4299
|
end: r.now()
|
|
4300
4300
|
})
|
|
4301
4301
|
)
|
|
4302
|
-
), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(f), e.exit("labelMarker"), e.exit("labelEnd"),
|
|
4302
|
+
), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(f), e.exit("labelMarker"), e.exit("labelEnd"), u) : t(f);
|
|
4303
4303
|
}
|
|
4304
|
-
function
|
|
4304
|
+
function u(f) {
|
|
4305
4305
|
return f === 40 ? e.attempt(
|
|
4306
|
-
|
|
4306
|
+
Eu,
|
|
4307
4307
|
h,
|
|
4308
4308
|
a ? h : d
|
|
4309
4309
|
)(f) : f === 91 ? e.attempt(
|
|
4310
|
-
|
|
4310
|
+
zu,
|
|
4311
4311
|
h,
|
|
4312
|
-
a ?
|
|
4312
|
+
a ? c : d
|
|
4313
4313
|
)(f) : a ? h(f) : d(f);
|
|
4314
4314
|
}
|
|
4315
|
-
function
|
|
4315
|
+
function c(f) {
|
|
4316
4316
|
return e.attempt(
|
|
4317
|
-
|
|
4317
|
+
Ou,
|
|
4318
4318
|
h,
|
|
4319
4319
|
d
|
|
4320
4320
|
)(f);
|
|
@@ -4326,7 +4326,7 @@ function Ic(e, n, t) {
|
|
|
4326
4326
|
return l._balanced = !0, t(f);
|
|
4327
4327
|
}
|
|
4328
4328
|
}
|
|
4329
|
-
function
|
|
4329
|
+
function Lu(e, n, t) {
|
|
4330
4330
|
return r;
|
|
4331
4331
|
function r(d) {
|
|
4332
4332
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(d), e.exit("resourceMarker"), s;
|
|
@@ -4348,29 +4348,29 @@ function Lc(e, n, t) {
|
|
|
4348
4348
|
)(d);
|
|
4349
4349
|
}
|
|
4350
4350
|
function a(d) {
|
|
4351
|
-
return ge(d) ? on(e,
|
|
4351
|
+
return ge(d) ? on(e, u)(d) : h(d);
|
|
4352
4352
|
}
|
|
4353
4353
|
function o(d) {
|
|
4354
4354
|
return t(d);
|
|
4355
4355
|
}
|
|
4356
|
-
function
|
|
4356
|
+
function u(d) {
|
|
4357
4357
|
return d === 34 || d === 39 || d === 40 ? ns(
|
|
4358
4358
|
e,
|
|
4359
|
-
|
|
4359
|
+
c,
|
|
4360
4360
|
t,
|
|
4361
4361
|
"resourceTitle",
|
|
4362
4362
|
"resourceTitleMarker",
|
|
4363
4363
|
"resourceTitleString"
|
|
4364
4364
|
)(d) : h(d);
|
|
4365
4365
|
}
|
|
4366
|
-
function
|
|
4366
|
+
function c(d) {
|
|
4367
4367
|
return ge(d) ? on(e, h)(d) : h(d);
|
|
4368
4368
|
}
|
|
4369
4369
|
function h(d) {
|
|
4370
4370
|
return d === 41 ? (e.enter("resourceMarker"), e.consume(d), e.exit("resourceMarker"), e.exit("resource"), n) : t(d);
|
|
4371
4371
|
}
|
|
4372
4372
|
}
|
|
4373
|
-
function
|
|
4373
|
+
function Fu(e, n, t) {
|
|
4374
4374
|
const r = this;
|
|
4375
4375
|
return s;
|
|
4376
4376
|
function s(o) {
|
|
@@ -4395,7 +4395,7 @@ function Fc(e, n, t) {
|
|
|
4395
4395
|
return t(o);
|
|
4396
4396
|
}
|
|
4397
4397
|
}
|
|
4398
|
-
function
|
|
4398
|
+
function Mu(e, n, t) {
|
|
4399
4399
|
return r;
|
|
4400
4400
|
function r(l) {
|
|
4401
4401
|
return e.enter("reference"), e.enter("referenceMarker"), e.consume(l), e.exit("referenceMarker"), s;
|
|
@@ -4404,12 +4404,12 @@ function Mc(e, n, t) {
|
|
|
4404
4404
|
return l === 93 ? (e.enter("referenceMarker"), e.consume(l), e.exit("referenceMarker"), e.exit("reference"), n) : t(l);
|
|
4405
4405
|
}
|
|
4406
4406
|
}
|
|
4407
|
-
const
|
|
4407
|
+
const Du = {
|
|
4408
4408
|
name: "labelStartImage",
|
|
4409
|
-
tokenize:
|
|
4409
|
+
tokenize: Pu,
|
|
4410
4410
|
resolveAll: Qt.resolveAll
|
|
4411
4411
|
};
|
|
4412
|
-
function
|
|
4412
|
+
function Pu(e, n, t) {
|
|
4413
4413
|
const r = this;
|
|
4414
4414
|
return s;
|
|
4415
4415
|
function s(o) {
|
|
@@ -4422,12 +4422,12 @@ function Pc(e, n, t) {
|
|
|
4422
4422
|
return o === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(o) : n(o);
|
|
4423
4423
|
}
|
|
4424
4424
|
}
|
|
4425
|
-
const
|
|
4425
|
+
const Ru = {
|
|
4426
4426
|
name: "labelStartLink",
|
|
4427
|
-
tokenize:
|
|
4427
|
+
tokenize: _u,
|
|
4428
4428
|
resolveAll: Qt.resolveAll
|
|
4429
4429
|
};
|
|
4430
|
-
function
|
|
4430
|
+
function _u(e, n, t) {
|
|
4431
4431
|
const r = this;
|
|
4432
4432
|
return s;
|
|
4433
4433
|
function s(a) {
|
|
@@ -4439,9 +4439,9 @@ function _c(e, n, t) {
|
|
|
4439
4439
|
}
|
|
4440
4440
|
const nt = {
|
|
4441
4441
|
name: "lineEnding",
|
|
4442
|
-
tokenize:
|
|
4442
|
+
tokenize: Bu
|
|
4443
4443
|
};
|
|
4444
|
-
function
|
|
4444
|
+
function Bu(e, n) {
|
|
4445
4445
|
return t;
|
|
4446
4446
|
function t(r) {
|
|
4447
4447
|
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), Y(e, n, "linePrefix");
|
|
@@ -4449,39 +4449,39 @@ function Bc(e, n) {
|
|
|
4449
4449
|
}
|
|
4450
4450
|
const En = {
|
|
4451
4451
|
name: "thematicBreak",
|
|
4452
|
-
tokenize:
|
|
4452
|
+
tokenize: Vu
|
|
4453
4453
|
};
|
|
4454
|
-
function
|
|
4454
|
+
function Vu(e, n, t) {
|
|
4455
4455
|
let r = 0, s;
|
|
4456
4456
|
return l;
|
|
4457
|
-
function l(
|
|
4458
|
-
return e.enter("thematicBreak"), a(
|
|
4457
|
+
function l(c) {
|
|
4458
|
+
return e.enter("thematicBreak"), a(c);
|
|
4459
4459
|
}
|
|
4460
|
-
function a(
|
|
4461
|
-
return s =
|
|
4460
|
+
function a(c) {
|
|
4461
|
+
return s = c, o(c);
|
|
4462
4462
|
}
|
|
4463
|
-
function o(
|
|
4464
|
-
return
|
|
4463
|
+
function o(c) {
|
|
4464
|
+
return c === s ? (e.enter("thematicBreakSequence"), u(c)) : r >= 3 && (c === null || D(c)) ? (e.exit("thematicBreak"), n(c)) : t(c);
|
|
4465
4465
|
}
|
|
4466
|
-
function c
|
|
4467
|
-
return
|
|
4466
|
+
function u(c) {
|
|
4467
|
+
return c === s ? (e.consume(c), r++, u) : (e.exit("thematicBreakSequence"), G(c) ? Y(e, o, "whitespace")(c) : o(c));
|
|
4468
4468
|
}
|
|
4469
4469
|
}
|
|
4470
4470
|
const fe = {
|
|
4471
4471
|
name: "list",
|
|
4472
|
-
tokenize:
|
|
4472
|
+
tokenize: Uu,
|
|
4473
4473
|
continuation: {
|
|
4474
|
-
tokenize: $
|
|
4474
|
+
tokenize: $u
|
|
4475
4475
|
},
|
|
4476
|
-
exit:
|
|
4477
|
-
},
|
|
4478
|
-
tokenize:
|
|
4476
|
+
exit: Ku
|
|
4477
|
+
}, Hu = {
|
|
4478
|
+
tokenize: Qu,
|
|
4479
4479
|
partial: !0
|
|
4480
|
-
},
|
|
4481
|
-
tokenize:
|
|
4480
|
+
}, qu = {
|
|
4481
|
+
tokenize: Wu,
|
|
4482
4482
|
partial: !0
|
|
4483
4483
|
};
|
|
4484
|
-
function
|
|
4484
|
+
function Uu(e, n, t) {
|
|
4485
4485
|
const r = this, s = r.events[r.events.length - 1];
|
|
4486
4486
|
let l = s && s[1].type === "linePrefix" ? s[2].sliceSerialize(s[1], !0).length : 0, a = 0;
|
|
4487
4487
|
return o;
|
|
@@ -4491,22 +4491,22 @@ function Uc(e, n, t) {
|
|
|
4491
4491
|
if (r.containerState.type || (r.containerState.type = y, e.enter(y, {
|
|
4492
4492
|
_container: !0
|
|
4493
4493
|
})), y === "listUnordered")
|
|
4494
|
-
return e.enter("listItemPrefix"), p === 42 || p === 45 ? e.check(En, t,
|
|
4494
|
+
return e.enter("listItemPrefix"), p === 42 || p === 45 ? e.check(En, t, c)(p) : c(p);
|
|
4495
4495
|
if (!r.interrupt || p === 49)
|
|
4496
|
-
return e.enter("listItemPrefix"), e.enter("listItemValue"),
|
|
4496
|
+
return e.enter("listItemPrefix"), e.enter("listItemValue"), u(p);
|
|
4497
4497
|
}
|
|
4498
4498
|
return t(p);
|
|
4499
4499
|
}
|
|
4500
|
-
function c(p) {
|
|
4501
|
-
return gt(p) && ++a < 10 ? (e.consume(p), c) : (!r.interrupt || a < 2) && (r.containerState.marker ? p === r.containerState.marker : p === 41 || p === 46) ? (e.exit("listItemValue"), u(p)) : t(p);
|
|
4502
|
-
}
|
|
4503
4500
|
function u(p) {
|
|
4501
|
+
return gt(p) && ++a < 10 ? (e.consume(p), u) : (!r.interrupt || a < 2) && (r.containerState.marker ? p === r.containerState.marker : p === 41 || p === 46) ? (e.exit("listItemValue"), c(p)) : t(p);
|
|
4502
|
+
}
|
|
4503
|
+
function c(p) {
|
|
4504
4504
|
return e.enter("listItemMarker"), e.consume(p), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || p, e.check(
|
|
4505
4505
|
Vn,
|
|
4506
4506
|
// Can’t be empty when interrupting.
|
|
4507
4507
|
r.interrupt ? t : h,
|
|
4508
4508
|
e.attempt(
|
|
4509
|
-
|
|
4509
|
+
Hu,
|
|
4510
4510
|
f,
|
|
4511
4511
|
d
|
|
4512
4512
|
)
|
|
@@ -4522,7 +4522,7 @@ function Uc(e, n, t) {
|
|
|
4522
4522
|
return r.containerState.size = l + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, n(p);
|
|
4523
4523
|
}
|
|
4524
4524
|
}
|
|
4525
|
-
function $
|
|
4525
|
+
function $u(e, n, t) {
|
|
4526
4526
|
const r = this;
|
|
4527
4527
|
return r.containerState._closeFlow = void 0, e.check(Vn, s, l);
|
|
4528
4528
|
function s(o) {
|
|
@@ -4534,7 +4534,7 @@ function $c(e, n, t) {
|
|
|
4534
4534
|
)(o);
|
|
4535
4535
|
}
|
|
4536
4536
|
function l(o) {
|
|
4537
|
-
return r.containerState.furtherBlankLines || !G(o) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, a(o)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(
|
|
4537
|
+
return r.containerState.furtherBlankLines || !G(o) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, a(o)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(qu, n, a)(o));
|
|
4538
4538
|
}
|
|
4539
4539
|
function a(o) {
|
|
4540
4540
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, Y(
|
|
@@ -4545,7 +4545,7 @@ function $c(e, n, t) {
|
|
|
4545
4545
|
)(o);
|
|
4546
4546
|
}
|
|
4547
4547
|
}
|
|
4548
|
-
function
|
|
4548
|
+
function Wu(e, n, t) {
|
|
4549
4549
|
const r = this;
|
|
4550
4550
|
return Y(
|
|
4551
4551
|
e,
|
|
@@ -4558,10 +4558,10 @@ function Wc(e, n, t) {
|
|
|
4558
4558
|
return a && a[1].type === "listItemIndent" && a[2].sliceSerialize(a[1], !0).length === r.containerState.size ? n(l) : t(l);
|
|
4559
4559
|
}
|
|
4560
4560
|
}
|
|
4561
|
-
function
|
|
4561
|
+
function Ku(e) {
|
|
4562
4562
|
e.exit(this.containerState.type);
|
|
4563
4563
|
}
|
|
4564
|
-
function
|
|
4564
|
+
function Qu(e, n, t) {
|
|
4565
4565
|
const r = this;
|
|
4566
4566
|
return Y(
|
|
4567
4567
|
e,
|
|
@@ -4576,10 +4576,10 @@ function Qc(e, n, t) {
|
|
|
4576
4576
|
}
|
|
4577
4577
|
const Lr = {
|
|
4578
4578
|
name: "setextUnderline",
|
|
4579
|
-
tokenize:
|
|
4580
|
-
resolveTo:
|
|
4579
|
+
tokenize: Ju,
|
|
4580
|
+
resolveTo: Gu
|
|
4581
4581
|
};
|
|
4582
|
-
function
|
|
4582
|
+
function Gu(e, n) {
|
|
4583
4583
|
let t = e.length, r, s, l;
|
|
4584
4584
|
for (; t--; )
|
|
4585
4585
|
if (e[t][0] === "enter") {
|
|
@@ -4597,33 +4597,33 @@ function Gc(e, n) {
|
|
|
4597
4597
|
};
|
|
4598
4598
|
return e[s][1].type = "setextHeadingText", l ? (e.splice(s, 0, ["enter", a, n]), e.splice(l + 1, 0, ["exit", e[r][1], n]), e[r][1].end = Object.assign({}, e[l][1].end)) : e[r][1] = a, e.push(["exit", a, n]), e;
|
|
4599
4599
|
}
|
|
4600
|
-
function
|
|
4600
|
+
function Ju(e, n, t) {
|
|
4601
4601
|
const r = this;
|
|
4602
4602
|
let s;
|
|
4603
4603
|
return l;
|
|
4604
|
-
function l(
|
|
4604
|
+
function l(c) {
|
|
4605
4605
|
let h = r.events.length, d;
|
|
4606
4606
|
for (; h--; )
|
|
4607
4607
|
if (r.events[h][1].type !== "lineEnding" && r.events[h][1].type !== "linePrefix" && r.events[h][1].type !== "content") {
|
|
4608
4608
|
d = r.events[h][1].type === "paragraph";
|
|
4609
4609
|
break;
|
|
4610
4610
|
}
|
|
4611
|
-
return !r.parser.lazy[r.now().line] && (r.interrupt || d) ? (e.enter("setextHeadingLine"), s =
|
|
4611
|
+
return !r.parser.lazy[r.now().line] && (r.interrupt || d) ? (e.enter("setextHeadingLine"), s = c, a(c)) : t(c);
|
|
4612
4612
|
}
|
|
4613
|
-
function a(
|
|
4614
|
-
return e.enter("setextHeadingLineSequence"), o(
|
|
4613
|
+
function a(c) {
|
|
4614
|
+
return e.enter("setextHeadingLineSequence"), o(c);
|
|
4615
4615
|
}
|
|
4616
|
-
function o(
|
|
4617
|
-
return
|
|
4616
|
+
function o(c) {
|
|
4617
|
+
return c === s ? (e.consume(c), o) : (e.exit("setextHeadingLineSequence"), G(c) ? Y(e, u, "lineSuffix")(c) : u(c));
|
|
4618
4618
|
}
|
|
4619
|
-
function c
|
|
4620
|
-
return
|
|
4619
|
+
function u(c) {
|
|
4620
|
+
return c === null || D(c) ? (e.exit("setextHeadingLine"), n(c)) : t(c);
|
|
4621
4621
|
}
|
|
4622
4622
|
}
|
|
4623
|
-
const
|
|
4624
|
-
tokenize:
|
|
4623
|
+
const Xu = {
|
|
4624
|
+
tokenize: Yu
|
|
4625
4625
|
};
|
|
4626
|
-
function
|
|
4626
|
+
function Yu(e) {
|
|
4627
4627
|
const n = this, t = e.attempt(
|
|
4628
4628
|
// Try to parse a blank line.
|
|
4629
4629
|
Vn,
|
|
@@ -4637,7 +4637,7 @@ function Yc(e) {
|
|
|
4637
4637
|
e.attempt(
|
|
4638
4638
|
this.parser.constructs.flow,
|
|
4639
4639
|
s,
|
|
4640
|
-
e.attempt(
|
|
4640
|
+
e.attempt(ru, s)
|
|
4641
4641
|
),
|
|
4642
4642
|
"linePrefix"
|
|
4643
4643
|
)
|
|
@@ -4659,33 +4659,33 @@ function Yc(e) {
|
|
|
4659
4659
|
return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), n.currentConstruct = void 0, t;
|
|
4660
4660
|
}
|
|
4661
4661
|
}
|
|
4662
|
-
const
|
|
4662
|
+
const Zu = {
|
|
4663
4663
|
resolveAll: rs()
|
|
4664
|
-
},
|
|
4664
|
+
}, ec = ts("string"), nc = ts("text");
|
|
4665
4665
|
function ts(e) {
|
|
4666
4666
|
return {
|
|
4667
4667
|
tokenize: n,
|
|
4668
4668
|
resolveAll: rs(
|
|
4669
|
-
e === "text" ?
|
|
4669
|
+
e === "text" ? tc : void 0
|
|
4670
4670
|
)
|
|
4671
4671
|
};
|
|
4672
4672
|
function n(t) {
|
|
4673
4673
|
const r = this, s = this.parser.constructs[e], l = t.attempt(s, a, o);
|
|
4674
4674
|
return a;
|
|
4675
4675
|
function a(h) {
|
|
4676
|
-
return
|
|
4676
|
+
return c(h) ? l(h) : o(h);
|
|
4677
4677
|
}
|
|
4678
4678
|
function o(h) {
|
|
4679
4679
|
if (h === null) {
|
|
4680
4680
|
t.consume(h);
|
|
4681
4681
|
return;
|
|
4682
4682
|
}
|
|
4683
|
-
return t.enter("data"), t.consume(h),
|
|
4684
|
-
}
|
|
4685
|
-
function c(h) {
|
|
4686
|
-
return u(h) ? (t.exit("data"), l(h)) : (t.consume(h), c);
|
|
4683
|
+
return t.enter("data"), t.consume(h), u;
|
|
4687
4684
|
}
|
|
4688
4685
|
function u(h) {
|
|
4686
|
+
return c(h) ? (t.exit("data"), l(h)) : (t.consume(h), u);
|
|
4687
|
+
}
|
|
4688
|
+
function c(h) {
|
|
4689
4689
|
if (h === null)
|
|
4690
4690
|
return !0;
|
|
4691
4691
|
const d = s[h];
|
|
@@ -4709,30 +4709,30 @@ function rs(e) {
|
|
|
4709
4709
|
return e ? e(t, r) : t;
|
|
4710
4710
|
}
|
|
4711
4711
|
}
|
|
4712
|
-
function
|
|
4712
|
+
function tc(e, n) {
|
|
4713
4713
|
let t = 0;
|
|
4714
4714
|
for (; ++t <= e.length; )
|
|
4715
4715
|
if ((t === e.length || e[t][1].type === "lineEnding") && e[t - 1][1].type === "data") {
|
|
4716
4716
|
const r = e[t - 1][1], s = n.sliceStream(r);
|
|
4717
|
-
let l = s.length, a = -1, o = 0,
|
|
4717
|
+
let l = s.length, a = -1, o = 0, u;
|
|
4718
4718
|
for (; l--; ) {
|
|
4719
|
-
const
|
|
4720
|
-
if (typeof
|
|
4721
|
-
for (a =
|
|
4719
|
+
const c = s[l];
|
|
4720
|
+
if (typeof c == "string") {
|
|
4721
|
+
for (a = c.length; c.charCodeAt(a - 1) === 32; )
|
|
4722
4722
|
o++, a--;
|
|
4723
4723
|
if (a)
|
|
4724
4724
|
break;
|
|
4725
4725
|
a = -1;
|
|
4726
|
-
} else if (
|
|
4727
|
-
|
|
4728
|
-
else if (
|
|
4726
|
+
} else if (c === -2)
|
|
4727
|
+
u = !0, o++;
|
|
4728
|
+
else if (c !== -1) {
|
|
4729
4729
|
l++;
|
|
4730
4730
|
break;
|
|
4731
4731
|
}
|
|
4732
4732
|
}
|
|
4733
4733
|
if (o) {
|
|
4734
|
-
const
|
|
4735
|
-
type: t === e.length ||
|
|
4734
|
+
const c = {
|
|
4735
|
+
type: t === e.length || u || o < 2 ? "lineSuffix" : "hardBreakTrailing",
|
|
4736
4736
|
start: {
|
|
4737
4737
|
line: r.end.line,
|
|
4738
4738
|
column: r.end.column - o,
|
|
@@ -4742,18 +4742,18 @@ function tu(e, n) {
|
|
|
4742
4742
|
},
|
|
4743
4743
|
end: Object.assign({}, r.end)
|
|
4744
4744
|
};
|
|
4745
|
-
r.end = Object.assign({},
|
|
4745
|
+
r.end = Object.assign({}, c.start), r.start.offset === r.end.offset ? Object.assign(r, c) : (e.splice(
|
|
4746
4746
|
t,
|
|
4747
4747
|
0,
|
|
4748
|
-
["enter",
|
|
4749
|
-
["exit",
|
|
4748
|
+
["enter", c, n],
|
|
4749
|
+
["exit", c, n]
|
|
4750
4750
|
), t += 2);
|
|
4751
4751
|
}
|
|
4752
4752
|
t++;
|
|
4753
4753
|
}
|
|
4754
4754
|
return e;
|
|
4755
4755
|
}
|
|
4756
|
-
function
|
|
4756
|
+
function rc(e, n, t) {
|
|
4757
4757
|
let r = Object.assign(
|
|
4758
4758
|
t ? Object.assign({}, t) : {
|
|
4759
4759
|
line: 1,
|
|
@@ -4767,7 +4767,7 @@ function ru(e, n, t) {
|
|
|
4767
4767
|
);
|
|
4768
4768
|
const s = {}, l = [];
|
|
4769
4769
|
let a = [], o = [];
|
|
4770
|
-
const
|
|
4770
|
+
const u = {
|
|
4771
4771
|
consume: E,
|
|
4772
4772
|
enter: S,
|
|
4773
4773
|
exit: M,
|
|
@@ -4776,7 +4776,7 @@ function ru(e, n, t) {
|
|
|
4776
4776
|
interrupt: R(j, {
|
|
4777
4777
|
interrupt: !0
|
|
4778
4778
|
})
|
|
4779
|
-
},
|
|
4779
|
+
}, c = {
|
|
4780
4780
|
previous: null,
|
|
4781
4781
|
code: null,
|
|
4782
4782
|
containerState: {},
|
|
@@ -4788,16 +4788,16 @@ function ru(e, n, t) {
|
|
|
4788
4788
|
defineSkip: k,
|
|
4789
4789
|
write: d
|
|
4790
4790
|
};
|
|
4791
|
-
let h = n.tokenize.call(
|
|
4792
|
-
return n.resolveAll && l.push(n),
|
|
4791
|
+
let h = n.tokenize.call(c, u);
|
|
4792
|
+
return n.resolveAll && l.push(n), c;
|
|
4793
4793
|
function d(T) {
|
|
4794
|
-
return a = Ce(a, T), w(), a[a.length - 1] !== null ? [] : (A(n, 0),
|
|
4794
|
+
return a = Ce(a, T), w(), a[a.length - 1] !== null ? [] : (A(n, 0), c.events = Kt(l, c.events, c), c.events);
|
|
4795
4795
|
}
|
|
4796
4796
|
function f(T, z) {
|
|
4797
|
-
return
|
|
4797
|
+
return sc(p(T), z);
|
|
4798
4798
|
}
|
|
4799
4799
|
function p(T) {
|
|
4800
|
-
return
|
|
4800
|
+
return ic(a, T);
|
|
4801
4801
|
}
|
|
4802
4802
|
function y() {
|
|
4803
4803
|
const { line: T, column: z, offset: W, _index: K, _bufferIndex: _ } = r;
|
|
@@ -4827,15 +4827,15 @@ function ru(e, n, t) {
|
|
|
4827
4827
|
h = h(T);
|
|
4828
4828
|
}
|
|
4829
4829
|
function E(T) {
|
|
4830
|
-
D(T) ? (r.line++, r.column = 1, r.offset += T === -3 ? 2 : 1, U()) : T !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === a[r._index].length && (r._bufferIndex = -1, r._index++)),
|
|
4830
|
+
D(T) ? (r.line++, r.column = 1, r.offset += T === -3 ? 2 : 1, U()) : T !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === a[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = T;
|
|
4831
4831
|
}
|
|
4832
4832
|
function S(T, z) {
|
|
4833
4833
|
const W = z || {};
|
|
4834
|
-
return W.type = T, W.start = y(),
|
|
4834
|
+
return W.type = T, W.start = y(), c.events.push(["enter", W, c]), o.push(W), W;
|
|
4835
4835
|
}
|
|
4836
4836
|
function M(T) {
|
|
4837
4837
|
const z = o.pop();
|
|
4838
|
-
return z.end = y(),
|
|
4838
|
+
return z.end = y(), c.events.push(["exit", z, c]), z;
|
|
4839
4839
|
}
|
|
4840
4840
|
function F(T, z) {
|
|
4841
4841
|
A(T, z.from);
|
|
@@ -4846,71 +4846,71 @@ function ru(e, n, t) {
|
|
|
4846
4846
|
function R(T, z) {
|
|
4847
4847
|
return W;
|
|
4848
4848
|
function W(K, _, $) {
|
|
4849
|
-
let Z,
|
|
4849
|
+
let Z, ce, O, m;
|
|
4850
4850
|
return Array.isArray(K) ? oe(K) : "tokenize" in K ? (
|
|
4851
4851
|
// @ts-expect-error Looks like a construct.
|
|
4852
4852
|
oe([K])
|
|
4853
4853
|
) : ee(K);
|
|
4854
4854
|
function ee(ne) {
|
|
4855
4855
|
return Le;
|
|
4856
|
-
function Le(
|
|
4857
|
-
const ve =
|
|
4856
|
+
function Le(ue) {
|
|
4857
|
+
const ve = ue !== null && ne[ue], we = ue !== null && ne.null, Qe = [
|
|
4858
4858
|
// To do: add more extension tests.
|
|
4859
4859
|
/* c8 ignore next 2 */
|
|
4860
4860
|
...Array.isArray(ve) ? ve : ve ? [ve] : [],
|
|
4861
4861
|
...Array.isArray(we) ? we : we ? [we] : []
|
|
4862
4862
|
];
|
|
4863
|
-
return oe(Qe)(
|
|
4863
|
+
return oe(Qe)(ue);
|
|
4864
4864
|
}
|
|
4865
4865
|
}
|
|
4866
4866
|
function oe(ne) {
|
|
4867
|
-
return Z = ne,
|
|
4867
|
+
return Z = ne, ce = 0, ne.length === 0 ? $ : x(ne[ce]);
|
|
4868
4868
|
}
|
|
4869
4869
|
function x(ne) {
|
|
4870
4870
|
return Le;
|
|
4871
|
-
function Le(
|
|
4872
|
-
return m = I(), O = ne, ne.partial || (
|
|
4871
|
+
function Le(ue) {
|
|
4872
|
+
return m = I(), O = ne, ne.partial || (c.currentConstruct = ne), ne.name && c.parser.constructs.disable.null.includes(ne.name) ? Ee() : ne.tokenize.call(
|
|
4873
4873
|
// If we do have fields, create an object w/ `context` as its
|
|
4874
4874
|
// prototype.
|
|
4875
4875
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
4876
|
-
z ? Object.assign(Object.create(
|
|
4877
|
-
|
|
4876
|
+
z ? Object.assign(Object.create(c), z) : c,
|
|
4877
|
+
u,
|
|
4878
4878
|
ye,
|
|
4879
4879
|
Ee
|
|
4880
|
-
)(
|
|
4880
|
+
)(ue);
|
|
4881
4881
|
}
|
|
4882
4882
|
}
|
|
4883
4883
|
function ye(ne) {
|
|
4884
4884
|
return T(O, m), _;
|
|
4885
4885
|
}
|
|
4886
4886
|
function Ee(ne) {
|
|
4887
|
-
return m.restore(), ++
|
|
4887
|
+
return m.restore(), ++ce < Z.length ? x(Z[ce]) : $;
|
|
4888
4888
|
}
|
|
4889
4889
|
}
|
|
4890
4890
|
}
|
|
4891
4891
|
function A(T, z) {
|
|
4892
4892
|
T.resolveAll && !l.includes(T) && l.push(T), T.resolve && Ie(
|
|
4893
|
-
|
|
4893
|
+
c.events,
|
|
4894
4894
|
z,
|
|
4895
|
-
|
|
4896
|
-
T.resolve(
|
|
4897
|
-
), T.resolveTo && (
|
|
4895
|
+
c.events.length - z,
|
|
4896
|
+
T.resolve(c.events.slice(z), c)
|
|
4897
|
+
), T.resolveTo && (c.events = T.resolveTo(c.events, c));
|
|
4898
4898
|
}
|
|
4899
4899
|
function I() {
|
|
4900
|
-
const T = y(), z =
|
|
4900
|
+
const T = y(), z = c.previous, W = c.currentConstruct, K = c.events.length, _ = Array.from(o);
|
|
4901
4901
|
return {
|
|
4902
4902
|
restore: $,
|
|
4903
4903
|
from: K
|
|
4904
4904
|
};
|
|
4905
4905
|
function $() {
|
|
4906
|
-
r = T,
|
|
4906
|
+
r = T, c.previous = z, c.currentConstruct = W, c.events.length = K, o = _, U();
|
|
4907
4907
|
}
|
|
4908
4908
|
}
|
|
4909
4909
|
function U() {
|
|
4910
4910
|
r.line in s && r.column < 2 && (r.column = s[r.line], r.offset += s[r.line] - 1);
|
|
4911
4911
|
}
|
|
4912
4912
|
}
|
|
4913
|
-
function
|
|
4913
|
+
function ic(e, n) {
|
|
4914
4914
|
const t = n.start._index, r = n.start._bufferIndex, s = n.end._index, l = n.end._bufferIndex;
|
|
4915
4915
|
let a;
|
|
4916
4916
|
if (t === s)
|
|
@@ -4924,7 +4924,7 @@ function iu(e, n) {
|
|
|
4924
4924
|
}
|
|
4925
4925
|
return a;
|
|
4926
4926
|
}
|
|
4927
|
-
function
|
|
4927
|
+
function sc(e, n) {
|
|
4928
4928
|
let t = -1;
|
|
4929
4929
|
const r = [];
|
|
4930
4930
|
let s;
|
|
@@ -4966,7 +4966,7 @@ function su(e, n) {
|
|
|
4966
4966
|
}
|
|
4967
4967
|
return r.join("");
|
|
4968
4968
|
}
|
|
4969
|
-
const
|
|
4969
|
+
const lc = {
|
|
4970
4970
|
42: fe,
|
|
4971
4971
|
43: fe,
|
|
4972
4972
|
45: fe,
|
|
@@ -4981,109 +4981,109 @@ const lu = {
|
|
|
4981
4981
|
56: fe,
|
|
4982
4982
|
57: fe,
|
|
4983
4983
|
62: Gi
|
|
4984
|
-
},
|
|
4985
|
-
91:
|
|
4986
|
-
},
|
|
4984
|
+
}, ac = {
|
|
4985
|
+
91: ou
|
|
4986
|
+
}, oc = {
|
|
4987
4987
|
[-2]: et,
|
|
4988
4988
|
[-1]: et,
|
|
4989
4989
|
32: et
|
|
4990
|
-
},
|
|
4991
|
-
35:
|
|
4990
|
+
}, uc = {
|
|
4991
|
+
35: fu,
|
|
4992
4992
|
42: En,
|
|
4993
4993
|
45: [Lr, En],
|
|
4994
|
-
60:
|
|
4994
|
+
60: yu,
|
|
4995
4995
|
61: Lr,
|
|
4996
4996
|
95: En,
|
|
4997
4997
|
96: Ar,
|
|
4998
4998
|
126: Ar
|
|
4999
|
-
},
|
|
4999
|
+
}, cc = {
|
|
5000
5000
|
38: Xi,
|
|
5001
5001
|
92: Ji
|
|
5002
|
-
},
|
|
5002
|
+
}, dc = {
|
|
5003
5003
|
[-5]: nt,
|
|
5004
5004
|
[-4]: nt,
|
|
5005
5005
|
[-3]: nt,
|
|
5006
|
-
33:
|
|
5006
|
+
33: Du,
|
|
5007
5007
|
38: Xi,
|
|
5008
5008
|
42: yt,
|
|
5009
|
-
60: [_o,
|
|
5010
|
-
91:
|
|
5011
|
-
92: [
|
|
5009
|
+
60: [_o, vu],
|
|
5010
|
+
91: Ru,
|
|
5011
|
+
92: [hu, Ji],
|
|
5012
5012
|
93: Qt,
|
|
5013
5013
|
95: yt,
|
|
5014
5014
|
96: Yo
|
|
5015
|
-
},
|
|
5016
|
-
null: [yt,
|
|
5017
|
-
},
|
|
5015
|
+
}, hc = {
|
|
5016
|
+
null: [yt, Zu]
|
|
5017
|
+
}, pc = {
|
|
5018
5018
|
null: [42, 95]
|
|
5019
|
-
},
|
|
5019
|
+
}, fc = {
|
|
5020
5020
|
null: []
|
|
5021
|
-
},
|
|
5021
|
+
}, mc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5022
5022
|
__proto__: null,
|
|
5023
|
-
attentionMarkers:
|
|
5024
|
-
contentInitial:
|
|
5025
|
-
disable:
|
|
5026
|
-
document:
|
|
5027
|
-
flow:
|
|
5028
|
-
flowInitial:
|
|
5029
|
-
insideSpan:
|
|
5030
|
-
string:
|
|
5031
|
-
text:
|
|
5023
|
+
attentionMarkers: pc,
|
|
5024
|
+
contentInitial: ac,
|
|
5025
|
+
disable: fc,
|
|
5026
|
+
document: lc,
|
|
5027
|
+
flow: uc,
|
|
5028
|
+
flowInitial: oc,
|
|
5029
|
+
insideSpan: hc,
|
|
5030
|
+
string: cc,
|
|
5031
|
+
text: dc
|
|
5032
5032
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5033
|
-
function
|
|
5033
|
+
function xc(e) {
|
|
5034
5034
|
const t = (
|
|
5035
5035
|
/** @type {FullNormalizedExtension} */
|
|
5036
|
-
So([
|
|
5036
|
+
So([mc, ...(e || {}).extensions || []])
|
|
5037
5037
|
), r = {
|
|
5038
5038
|
defined: [],
|
|
5039
5039
|
lazy: {},
|
|
5040
5040
|
constructs: t,
|
|
5041
5041
|
content: s(Io),
|
|
5042
5042
|
document: s(Fo),
|
|
5043
|
-
flow: s(
|
|
5044
|
-
string: s(
|
|
5045
|
-
text: s(
|
|
5043
|
+
flow: s(Xu),
|
|
5044
|
+
string: s(ec),
|
|
5045
|
+
text: s(nc)
|
|
5046
5046
|
};
|
|
5047
5047
|
return r;
|
|
5048
5048
|
function s(l) {
|
|
5049
5049
|
return a;
|
|
5050
5050
|
function a(o) {
|
|
5051
|
-
return
|
|
5051
|
+
return rc(r, l, o);
|
|
5052
5052
|
}
|
|
5053
5053
|
}
|
|
5054
5054
|
}
|
|
5055
|
-
function
|
|
5055
|
+
function gc(e) {
|
|
5056
5056
|
for (; !Yi(e); )
|
|
5057
5057
|
;
|
|
5058
5058
|
return e;
|
|
5059
5059
|
}
|
|
5060
5060
|
const Fr = /[\0\t\n\r]/g;
|
|
5061
|
-
function
|
|
5061
|
+
function yc() {
|
|
5062
5062
|
let e = 1, n = "", t = !0, r;
|
|
5063
5063
|
return s;
|
|
5064
5064
|
function s(l, a, o) {
|
|
5065
|
-
const
|
|
5066
|
-
let
|
|
5065
|
+
const u = [];
|
|
5066
|
+
let c, h, d, f, p;
|
|
5067
5067
|
for (l = n + (typeof l == "string" ? l.toString() : new TextDecoder(a || void 0).decode(l)), d = 0, n = "", t && (l.charCodeAt(0) === 65279 && d++, t = void 0); d < l.length; ) {
|
|
5068
|
-
if (Fr.lastIndex = d,
|
|
5068
|
+
if (Fr.lastIndex = d, c = Fr.exec(l), f = c && c.index !== void 0 ? c.index : l.length, p = l.charCodeAt(f), !c) {
|
|
5069
5069
|
n = l.slice(d);
|
|
5070
5070
|
break;
|
|
5071
5071
|
}
|
|
5072
5072
|
if (p === 10 && d === f && r)
|
|
5073
|
-
|
|
5073
|
+
u.push(-3), r = void 0;
|
|
5074
5074
|
else
|
|
5075
|
-
switch (r && (
|
|
5075
|
+
switch (r && (u.push(-5), r = void 0), d < f && (u.push(l.slice(d, f)), e += f - d), p) {
|
|
5076
5076
|
case 0: {
|
|
5077
|
-
|
|
5077
|
+
u.push(65533), e++;
|
|
5078
5078
|
break;
|
|
5079
5079
|
}
|
|
5080
5080
|
case 9: {
|
|
5081
|
-
for (h = Math.ceil(e / 4) * 4,
|
|
5082
|
-
|
|
5081
|
+
for (h = Math.ceil(e / 4) * 4, u.push(-2); e++ < h; )
|
|
5082
|
+
u.push(-1);
|
|
5083
5083
|
break;
|
|
5084
5084
|
}
|
|
5085
5085
|
case 10: {
|
|
5086
|
-
|
|
5086
|
+
u.push(-4), e = 1;
|
|
5087
5087
|
break;
|
|
5088
5088
|
}
|
|
5089
5089
|
default:
|
|
@@ -5091,14 +5091,14 @@ function yu() {
|
|
|
5091
5091
|
}
|
|
5092
5092
|
d = f + 1;
|
|
5093
5093
|
}
|
|
5094
|
-
return o && (r &&
|
|
5094
|
+
return o && (r && u.push(-5), n && u.push(n), u.push(null)), u;
|
|
5095
5095
|
}
|
|
5096
5096
|
}
|
|
5097
|
-
const
|
|
5098
|
-
function
|
|
5099
|
-
return e.replace(
|
|
5097
|
+
const bc = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
|
5098
|
+
function kc(e) {
|
|
5099
|
+
return e.replace(bc, jc);
|
|
5100
5100
|
}
|
|
5101
|
-
function
|
|
5101
|
+
function jc(e, n, t) {
|
|
5102
5102
|
if (n)
|
|
5103
5103
|
return n;
|
|
5104
5104
|
if (t.charCodeAt(0) === 35) {
|
|
@@ -5108,14 +5108,14 @@ function ju(e, n, t) {
|
|
|
5108
5108
|
return Wt(t) || e;
|
|
5109
5109
|
}
|
|
5110
5110
|
const is = {}.hasOwnProperty;
|
|
5111
|
-
function
|
|
5112
|
-
return typeof n != "string" && (t = n, n = void 0),
|
|
5113
|
-
|
|
5114
|
-
|
|
5111
|
+
function wc(e, n, t) {
|
|
5112
|
+
return typeof n != "string" && (t = n, n = void 0), Cc(t)(
|
|
5113
|
+
gc(
|
|
5114
|
+
xc(t).document().write(yc()(e, n, !0))
|
|
5115
5115
|
)
|
|
5116
5116
|
);
|
|
5117
5117
|
}
|
|
5118
|
-
function
|
|
5118
|
+
function Cc(e) {
|
|
5119
5119
|
const n = {
|
|
5120
5120
|
transforms: [],
|
|
5121
5121
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
@@ -5163,54 +5163,54 @@ function Cu(e) {
|
|
|
5163
5163
|
thematicBreak: l(Qn)
|
|
5164
5164
|
},
|
|
5165
5165
|
exit: {
|
|
5166
|
-
atxHeading:
|
|
5166
|
+
atxHeading: u(),
|
|
5167
5167
|
atxHeadingSequence: F,
|
|
5168
|
-
autolink:
|
|
5169
|
-
autolinkEmail:
|
|
5168
|
+
autolink: u(),
|
|
5169
|
+
autolinkEmail: ue,
|
|
5170
5170
|
autolinkProtocol: Le,
|
|
5171
|
-
blockQuote:
|
|
5171
|
+
blockQuote: u(),
|
|
5172
5172
|
characterEscapeValue: U,
|
|
5173
5173
|
characterReferenceMarkerHexadecimal: Ee,
|
|
5174
5174
|
characterReferenceMarkerNumeric: Ee,
|
|
5175
5175
|
characterReferenceValue: ne,
|
|
5176
|
-
codeFenced:
|
|
5176
|
+
codeFenced: u(w),
|
|
5177
5177
|
codeFencedFence: k,
|
|
5178
5178
|
codeFencedFenceInfo: p,
|
|
5179
5179
|
codeFencedFenceMeta: y,
|
|
5180
5180
|
codeFlowValue: U,
|
|
5181
|
-
codeIndented:
|
|
5182
|
-
codeText:
|
|
5181
|
+
codeIndented: u(b),
|
|
5182
|
+
codeText: u(_),
|
|
5183
5183
|
codeTextData: U,
|
|
5184
5184
|
data: U,
|
|
5185
|
-
definition:
|
|
5185
|
+
definition: u(),
|
|
5186
5186
|
definitionDestinationString: M,
|
|
5187
5187
|
definitionLabelString: E,
|
|
5188
5188
|
definitionTitleString: S,
|
|
5189
|
-
emphasis:
|
|
5190
|
-
hardBreakEscape:
|
|
5191
|
-
hardBreakTrailing:
|
|
5192
|
-
htmlFlow:
|
|
5189
|
+
emphasis: u(),
|
|
5190
|
+
hardBreakEscape: u(z),
|
|
5191
|
+
hardBreakTrailing: u(z),
|
|
5192
|
+
htmlFlow: u(W),
|
|
5193
5193
|
htmlFlowData: U,
|
|
5194
|
-
htmlText:
|
|
5194
|
+
htmlText: u(K),
|
|
5195
5195
|
htmlTextData: U,
|
|
5196
|
-
image:
|
|
5196
|
+
image: u(Z),
|
|
5197
5197
|
label: O,
|
|
5198
|
-
labelText:
|
|
5198
|
+
labelText: ce,
|
|
5199
5199
|
lineEnding: T,
|
|
5200
|
-
link:
|
|
5201
|
-
listItem:
|
|
5202
|
-
listOrdered:
|
|
5203
|
-
listUnordered:
|
|
5204
|
-
paragraph:
|
|
5200
|
+
link: u($),
|
|
5201
|
+
listItem: u(),
|
|
5202
|
+
listOrdered: u(),
|
|
5203
|
+
listUnordered: u(),
|
|
5204
|
+
paragraph: u(),
|
|
5205
5205
|
referenceString: ye,
|
|
5206
5206
|
resourceDestinationString: m,
|
|
5207
5207
|
resourceTitleString: ee,
|
|
5208
5208
|
resource: oe,
|
|
5209
|
-
setextHeading:
|
|
5209
|
+
setextHeading: u(A),
|
|
5210
5210
|
setextHeadingLineSequence: R,
|
|
5211
5211
|
setextHeadingText: j,
|
|
5212
|
-
strong:
|
|
5213
|
-
thematicBreak:
|
|
5212
|
+
strong: u(),
|
|
5213
|
+
thematicBreak: u()
|
|
5214
5214
|
}
|
|
5215
5215
|
};
|
|
5216
5216
|
ss(n, (e || {}).mdastExtensions || []);
|
|
@@ -5226,7 +5226,7 @@ function Cu(e) {
|
|
|
5226
5226
|
tokenStack: [],
|
|
5227
5227
|
config: n,
|
|
5228
5228
|
enter: o,
|
|
5229
|
-
exit:
|
|
5229
|
+
exit: c,
|
|
5230
5230
|
buffer: a,
|
|
5231
5231
|
resume: h,
|
|
5232
5232
|
data: t
|
|
@@ -5349,13 +5349,13 @@ function Cu(e) {
|
|
|
5349
5349
|
end: void 0
|
|
5350
5350
|
};
|
|
5351
5351
|
}
|
|
5352
|
-
function
|
|
5352
|
+
function u(g) {
|
|
5353
5353
|
return N;
|
|
5354
5354
|
function N(L) {
|
|
5355
|
-
g && g.call(this, L),
|
|
5355
|
+
g && g.call(this, L), c.call(this, L);
|
|
5356
5356
|
}
|
|
5357
5357
|
}
|
|
5358
|
-
function
|
|
5358
|
+
function c(g, N) {
|
|
5359
5359
|
const L = this.stack.pop(), B = this.tokenStack.pop();
|
|
5360
5360
|
if (B)
|
|
5361
5361
|
B[0].type !== g.type && (N ? N.call(this, g, B[0]) : (B[1] || Mr).call(this, g, B[0]));
|
|
@@ -5485,9 +5485,9 @@ function Cu(e) {
|
|
|
5485
5485
|
delete g.identifier, delete g.label;
|
|
5486
5486
|
this.data.referenceType = void 0;
|
|
5487
5487
|
}
|
|
5488
|
-
function
|
|
5488
|
+
function ce(g) {
|
|
5489
5489
|
const N = this.sliceSerialize(g), L = this.stack[this.stack.length - 2];
|
|
5490
|
-
L.label =
|
|
5490
|
+
L.label = kc(N), L.identifier = Ze(N).toLowerCase();
|
|
5491
5491
|
}
|
|
5492
5492
|
function O() {
|
|
5493
5493
|
const g = this.stack[this.stack.length - 1], N = this.resume(), L = this.stack[this.stack.length - 1];
|
|
@@ -5535,7 +5535,7 @@ function Cu(e) {
|
|
|
5535
5535
|
const N = this.stack[this.stack.length - 1];
|
|
5536
5536
|
N.url = this.sliceSerialize(g);
|
|
5537
5537
|
}
|
|
5538
|
-
function
|
|
5538
|
+
function ue(g) {
|
|
5539
5539
|
U.call(this, g);
|
|
5540
5540
|
const N = this.stack[this.stack.length - 1];
|
|
5541
5541
|
N.url = "mailto:" + this.sliceSerialize(g);
|
|
@@ -5662,10 +5662,10 @@ function ss(e, n) {
|
|
|
5662
5662
|
let t = -1;
|
|
5663
5663
|
for (; ++t < n.length; ) {
|
|
5664
5664
|
const r = n[t];
|
|
5665
|
-
Array.isArray(r) ? ss(e, r) :
|
|
5665
|
+
Array.isArray(r) ? ss(e, r) : Sc(e, r);
|
|
5666
5666
|
}
|
|
5667
5667
|
}
|
|
5668
|
-
function
|
|
5668
|
+
function Sc(e, n) {
|
|
5669
5669
|
let t;
|
|
5670
5670
|
for (t in n)
|
|
5671
5671
|
if (is.call(n, t))
|
|
@@ -5704,11 +5704,11 @@ function Mr(e, n) {
|
|
|
5704
5704
|
}) + ") is still open"
|
|
5705
5705
|
);
|
|
5706
5706
|
}
|
|
5707
|
-
function
|
|
5707
|
+
function vc(e) {
|
|
5708
5708
|
const n = this;
|
|
5709
5709
|
n.parser = t;
|
|
5710
5710
|
function t(r) {
|
|
5711
|
-
return
|
|
5711
|
+
return wc(r, {
|
|
5712
5712
|
...n.data("settings"),
|
|
5713
5713
|
...e,
|
|
5714
5714
|
// Note: these options are not in the readme.
|
|
@@ -5719,7 +5719,7 @@ function vu(e) {
|
|
|
5719
5719
|
});
|
|
5720
5720
|
}
|
|
5721
5721
|
}
|
|
5722
|
-
function
|
|
5722
|
+
function Nc(e, n) {
|
|
5723
5723
|
const t = {
|
|
5724
5724
|
type: "element",
|
|
5725
5725
|
tagName: "blockquote",
|
|
@@ -5728,12 +5728,12 @@ function Nu(e, n) {
|
|
|
5728
5728
|
};
|
|
5729
5729
|
return e.patch(n, t), e.applyData(n, t);
|
|
5730
5730
|
}
|
|
5731
|
-
function
|
|
5731
|
+
function Ec(e, n) {
|
|
5732
5732
|
const t = { type: "element", tagName: "br", properties: {}, children: [] };
|
|
5733
5733
|
return e.patch(n, t), [e.applyData(n, t), { type: "text", value: `
|
|
5734
5734
|
` }];
|
|
5735
5735
|
}
|
|
5736
|
-
function
|
|
5736
|
+
function zc(e, n) {
|
|
5737
5737
|
const t = n.value ? n.value + `
|
|
5738
5738
|
` : "", r = {};
|
|
5739
5739
|
n.lang && (r.className = ["language-" + n.lang]);
|
|
@@ -5745,7 +5745,7 @@ function zu(e, n) {
|
|
|
5745
5745
|
};
|
|
5746
5746
|
return n.meta && (s.data = { meta: n.meta }), e.patch(n, s), s = e.applyData(n, s), s = { type: "element", tagName: "pre", properties: {}, children: [s] }, e.patch(n, s), s;
|
|
5747
5747
|
}
|
|
5748
|
-
function
|
|
5748
|
+
function Oc(e, n) {
|
|
5749
5749
|
const t = {
|
|
5750
5750
|
type: "element",
|
|
5751
5751
|
tagName: "del",
|
|
@@ -5754,7 +5754,7 @@ function Ou(e, n) {
|
|
|
5754
5754
|
};
|
|
5755
5755
|
return e.patch(n, t), e.applyData(n, t);
|
|
5756
5756
|
}
|
|
5757
|
-
function
|
|
5757
|
+
function Tc(e, n) {
|
|
5758
5758
|
const t = {
|
|
5759
5759
|
type: "element",
|
|
5760
5760
|
tagName: "em",
|
|
@@ -5763,11 +5763,11 @@ function Tu(e, n) {
|
|
|
5763
5763
|
};
|
|
5764
5764
|
return e.patch(n, t), e.applyData(n, t);
|
|
5765
5765
|
}
|
|
5766
|
-
function
|
|
5766
|
+
function Ac(e, n) {
|
|
5767
5767
|
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), s = tn(r.toLowerCase()), l = e.footnoteOrder.indexOf(r);
|
|
5768
5768
|
let a, o = e.footnoteCounts.get(r);
|
|
5769
5769
|
o === void 0 ? (o = 0, e.footnoteOrder.push(r), a = e.footnoteOrder.length) : a = l + 1, o += 1, e.footnoteCounts.set(r, o);
|
|
5770
|
-
const
|
|
5770
|
+
const u = {
|
|
5771
5771
|
type: "element",
|
|
5772
5772
|
tagName: "a",
|
|
5773
5773
|
properties: {
|
|
@@ -5778,16 +5778,16 @@ function Au(e, n) {
|
|
|
5778
5778
|
},
|
|
5779
5779
|
children: [{ type: "text", value: String(a) }]
|
|
5780
5780
|
};
|
|
5781
|
-
e.patch(n,
|
|
5782
|
-
const
|
|
5781
|
+
e.patch(n, u);
|
|
5782
|
+
const c = {
|
|
5783
5783
|
type: "element",
|
|
5784
5784
|
tagName: "sup",
|
|
5785
5785
|
properties: {},
|
|
5786
|
-
children: [
|
|
5786
|
+
children: [u]
|
|
5787
5787
|
};
|
|
5788
|
-
return e.patch(n,
|
|
5788
|
+
return e.patch(n, c), e.applyData(n, c);
|
|
5789
5789
|
}
|
|
5790
|
-
function
|
|
5790
|
+
function Ic(e, n) {
|
|
5791
5791
|
const t = {
|
|
5792
5792
|
type: "element",
|
|
5793
5793
|
tagName: "h" + n.depth,
|
|
@@ -5796,7 +5796,7 @@ function Iu(e, n) {
|
|
|
5796
5796
|
};
|
|
5797
5797
|
return e.patch(n, t), e.applyData(n, t);
|
|
5798
5798
|
}
|
|
5799
|
-
function
|
|
5799
|
+
function Lc(e, n) {
|
|
5800
5800
|
if (e.options.allowDangerousHtml) {
|
|
5801
5801
|
const t = { type: "raw", value: n.value };
|
|
5802
5802
|
return e.patch(n, t), e.applyData(n, t);
|
|
@@ -5812,7 +5812,7 @@ function ls(e, n) {
|
|
|
5812
5812
|
const a = s[s.length - 1];
|
|
5813
5813
|
return a && a.type === "text" ? a.value += r : s.push({ type: "text", value: r }), s;
|
|
5814
5814
|
}
|
|
5815
|
-
function
|
|
5815
|
+
function Fc(e, n) {
|
|
5816
5816
|
const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
|
|
5817
5817
|
if (!r)
|
|
5818
5818
|
return ls(e, n);
|
|
@@ -5821,13 +5821,13 @@ function Fu(e, n) {
|
|
|
5821
5821
|
const l = { type: "element", tagName: "img", properties: s, children: [] };
|
|
5822
5822
|
return e.patch(n, l), e.applyData(n, l);
|
|
5823
5823
|
}
|
|
5824
|
-
function
|
|
5824
|
+
function Mc(e, n) {
|
|
5825
5825
|
const t = { src: tn(n.url) };
|
|
5826
5826
|
n.alt !== null && n.alt !== void 0 && (t.alt = n.alt), n.title !== null && n.title !== void 0 && (t.title = n.title);
|
|
5827
5827
|
const r = { type: "element", tagName: "img", properties: t, children: [] };
|
|
5828
5828
|
return e.patch(n, r), e.applyData(n, r);
|
|
5829
5829
|
}
|
|
5830
|
-
function
|
|
5830
|
+
function Dc(e, n) {
|
|
5831
5831
|
const t = { type: "text", value: n.value.replace(/\r?\n|\r/g, " ") };
|
|
5832
5832
|
e.patch(n, t);
|
|
5833
5833
|
const r = {
|
|
@@ -5838,7 +5838,7 @@ function Du(e, n) {
|
|
|
5838
5838
|
};
|
|
5839
5839
|
return e.patch(n, r), e.applyData(n, r);
|
|
5840
5840
|
}
|
|
5841
|
-
function
|
|
5841
|
+
function Pc(e, n) {
|
|
5842
5842
|
const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
|
|
5843
5843
|
if (!r)
|
|
5844
5844
|
return ls(e, n);
|
|
@@ -5852,7 +5852,7 @@ function Pu(e, n) {
|
|
|
5852
5852
|
};
|
|
5853
5853
|
return e.patch(n, l), e.applyData(n, l);
|
|
5854
5854
|
}
|
|
5855
|
-
function
|
|
5855
|
+
function Rc(e, n) {
|
|
5856
5856
|
const t = { href: tn(n.url) };
|
|
5857
5857
|
n.title !== null && n.title !== void 0 && (t.title = n.title);
|
|
5858
5858
|
const r = {
|
|
@@ -5863,8 +5863,8 @@ function Ru(e, n) {
|
|
|
5863
5863
|
};
|
|
5864
5864
|
return e.patch(n, r), e.applyData(n, r);
|
|
5865
5865
|
}
|
|
5866
|
-
function
|
|
5867
|
-
const r = e.all(n), s = t ?
|
|
5866
|
+
function _c(e, n, t) {
|
|
5867
|
+
const r = e.all(n), s = t ? Bc(t) : as(n), l = {}, a = [];
|
|
5868
5868
|
if (typeof n.checked == "boolean") {
|
|
5869
5869
|
const h = r[0];
|
|
5870
5870
|
let d;
|
|
@@ -5881,13 +5881,13 @@ function _u(e, n, t) {
|
|
|
5881
5881
|
(s || o !== 0 || h.type !== "element" || h.tagName !== "p") && a.push({ type: "text", value: `
|
|
5882
5882
|
` }), h.type === "element" && h.tagName === "p" && !s ? a.push(...h.children) : a.push(h);
|
|
5883
5883
|
}
|
|
5884
|
-
const
|
|
5885
|
-
|
|
5884
|
+
const u = r[r.length - 1];
|
|
5885
|
+
u && (s || u.type !== "element" || u.tagName !== "p") && a.push({ type: "text", value: `
|
|
5886
5886
|
` });
|
|
5887
|
-
const
|
|
5888
|
-
return e.patch(n,
|
|
5887
|
+
const c = { type: "element", tagName: "li", properties: l, children: a };
|
|
5888
|
+
return e.patch(n, c), e.applyData(n, c);
|
|
5889
5889
|
}
|
|
5890
|
-
function
|
|
5890
|
+
function Bc(e) {
|
|
5891
5891
|
let n = !1;
|
|
5892
5892
|
if (e.type === "list") {
|
|
5893
5893
|
n = e.spread || !1;
|
|
@@ -5902,7 +5902,7 @@ function as(e) {
|
|
|
5902
5902
|
const n = e.spread;
|
|
5903
5903
|
return n ?? e.children.length > 1;
|
|
5904
5904
|
}
|
|
5905
|
-
function
|
|
5905
|
+
function Vc(e, n) {
|
|
5906
5906
|
const t = {}, r = e.all(n);
|
|
5907
5907
|
let s = -1;
|
|
5908
5908
|
for (typeof n.start == "number" && n.start !== 1 && (t.start = n.start); ++s < r.length; ) {
|
|
@@ -5920,7 +5920,7 @@ function Vu(e, n) {
|
|
|
5920
5920
|
};
|
|
5921
5921
|
return e.patch(n, l), e.applyData(n, l);
|
|
5922
5922
|
}
|
|
5923
|
-
function
|
|
5923
|
+
function Hc(e, n) {
|
|
5924
5924
|
const t = {
|
|
5925
5925
|
type: "element",
|
|
5926
5926
|
tagName: "p",
|
|
@@ -5929,11 +5929,11 @@ function Hu(e, n) {
|
|
|
5929
5929
|
};
|
|
5930
5930
|
return e.patch(n, t), e.applyData(n, t);
|
|
5931
5931
|
}
|
|
5932
|
-
function
|
|
5932
|
+
function qc(e, n) {
|
|
5933
5933
|
const t = { type: "root", children: e.wrap(e.all(n)) };
|
|
5934
5934
|
return e.patch(n, t), e.applyData(n, t);
|
|
5935
5935
|
}
|
|
5936
|
-
function
|
|
5936
|
+
function Uc(e, n) {
|
|
5937
5937
|
const t = {
|
|
5938
5938
|
type: "element",
|
|
5939
5939
|
tagName: "strong",
|
|
@@ -5942,7 +5942,7 @@ function Uu(e, n) {
|
|
|
5942
5942
|
};
|
|
5943
5943
|
return e.patch(n, t), e.applyData(n, t);
|
|
5944
5944
|
}
|
|
5945
|
-
function $
|
|
5945
|
+
function $c(e, n) {
|
|
5946
5946
|
const t = e.all(n), r = t.shift(), s = [];
|
|
5947
5947
|
if (r) {
|
|
5948
5948
|
const a = {
|
|
@@ -5959,8 +5959,8 @@ function $u(e, n) {
|
|
|
5959
5959
|
tagName: "tbody",
|
|
5960
5960
|
properties: {},
|
|
5961
5961
|
children: e.wrap(t, !0)
|
|
5962
|
-
}, o = Ht(n.children[1]),
|
|
5963
|
-
o &&
|
|
5962
|
+
}, o = Ht(n.children[1]), u = Bi(n.children[n.children.length - 1]);
|
|
5963
|
+
o && u && (a.position = { start: o, end: u }), s.push(a);
|
|
5964
5964
|
}
|
|
5965
5965
|
const l = {
|
|
5966
5966
|
type: "element",
|
|
@@ -5970,25 +5970,25 @@ function $u(e, n) {
|
|
|
5970
5970
|
};
|
|
5971
5971
|
return e.patch(n, l), e.applyData(n, l);
|
|
5972
5972
|
}
|
|
5973
|
-
function
|
|
5973
|
+
function Wc(e, n, t) {
|
|
5974
5974
|
const r = t ? t.children : void 0, l = (r ? r.indexOf(n) : 1) === 0 ? "th" : "td", a = t && t.type === "table" ? t.align : void 0, o = a ? a.length : n.children.length;
|
|
5975
|
-
let
|
|
5976
|
-
const
|
|
5977
|
-
for (; ++
|
|
5978
|
-
const d = n.children[
|
|
5975
|
+
let u = -1;
|
|
5976
|
+
const c = [];
|
|
5977
|
+
for (; ++u < o; ) {
|
|
5978
|
+
const d = n.children[u], f = {}, p = a ? a[u] : void 0;
|
|
5979
5979
|
p && (f.align = p);
|
|
5980
5980
|
let y = { type: "element", tagName: l, properties: f, children: [] };
|
|
5981
|
-
d && (y.children = e.all(d), e.patch(d, y), y = e.applyData(d, y)),
|
|
5981
|
+
d && (y.children = e.all(d), e.patch(d, y), y = e.applyData(d, y)), c.push(y);
|
|
5982
5982
|
}
|
|
5983
5983
|
const h = {
|
|
5984
5984
|
type: "element",
|
|
5985
5985
|
tagName: "tr",
|
|
5986
5986
|
properties: {},
|
|
5987
|
-
children: e.wrap(
|
|
5987
|
+
children: e.wrap(c, !0)
|
|
5988
5988
|
};
|
|
5989
5989
|
return e.patch(n, h), e.applyData(n, h);
|
|
5990
5990
|
}
|
|
5991
|
-
function
|
|
5991
|
+
function Kc(e, n) {
|
|
5992
5992
|
const t = {
|
|
5993
5993
|
type: "element",
|
|
5994
5994
|
tagName: "td",
|
|
@@ -5999,7 +5999,7 @@ function Ku(e, n) {
|
|
|
5999
5999
|
return e.patch(n, t), e.applyData(n, t);
|
|
6000
6000
|
}
|
|
6001
6001
|
const Dr = 9, Pr = 32;
|
|
6002
|
-
function
|
|
6002
|
+
function Qc(e) {
|
|
6003
6003
|
const n = String(e), t = /\r?\n|\r/g;
|
|
6004
6004
|
let r = t.exec(n), s = 0;
|
|
6005
6005
|
const l = [];
|
|
@@ -6024,11 +6024,11 @@ function Rr(e, n, t) {
|
|
|
6024
6024
|
}
|
|
6025
6025
|
return s > r ? e.slice(r, s) : "";
|
|
6026
6026
|
}
|
|
6027
|
-
function
|
|
6028
|
-
const t = { type: "text", value:
|
|
6027
|
+
function Gc(e, n) {
|
|
6028
|
+
const t = { type: "text", value: Qc(String(n.value)) };
|
|
6029
6029
|
return e.patch(n, t), e.applyData(n, t);
|
|
6030
6030
|
}
|
|
6031
|
-
function
|
|
6031
|
+
function Jc(e, n) {
|
|
6032
6032
|
const t = {
|
|
6033
6033
|
type: "element",
|
|
6034
6034
|
tagName: "hr",
|
|
@@ -6037,31 +6037,31 @@ function Ju(e, n) {
|
|
|
6037
6037
|
};
|
|
6038
6038
|
return e.patch(n, t), e.applyData(n, t);
|
|
6039
6039
|
}
|
|
6040
|
-
const
|
|
6041
|
-
blockquote:
|
|
6042
|
-
break:
|
|
6043
|
-
code:
|
|
6044
|
-
delete:
|
|
6045
|
-
emphasis:
|
|
6046
|
-
footnoteReference:
|
|
6047
|
-
heading:
|
|
6048
|
-
html:
|
|
6049
|
-
imageReference:
|
|
6050
|
-
image:
|
|
6051
|
-
inlineCode:
|
|
6052
|
-
linkReference:
|
|
6053
|
-
link:
|
|
6054
|
-
listItem:
|
|
6055
|
-
list:
|
|
6056
|
-
paragraph:
|
|
6040
|
+
const Xc = {
|
|
6041
|
+
blockquote: Nc,
|
|
6042
|
+
break: Ec,
|
|
6043
|
+
code: zc,
|
|
6044
|
+
delete: Oc,
|
|
6045
|
+
emphasis: Tc,
|
|
6046
|
+
footnoteReference: Ac,
|
|
6047
|
+
heading: Ic,
|
|
6048
|
+
html: Lc,
|
|
6049
|
+
imageReference: Fc,
|
|
6050
|
+
image: Mc,
|
|
6051
|
+
inlineCode: Dc,
|
|
6052
|
+
linkReference: Pc,
|
|
6053
|
+
link: Rc,
|
|
6054
|
+
listItem: _c,
|
|
6055
|
+
list: Vc,
|
|
6056
|
+
paragraph: Hc,
|
|
6057
6057
|
// @ts-expect-error: root is different, but hard to type.
|
|
6058
|
-
root:
|
|
6059
|
-
strong:
|
|
6060
|
-
table: $
|
|
6061
|
-
tableCell:
|
|
6062
|
-
tableRow:
|
|
6063
|
-
text:
|
|
6064
|
-
thematicBreak:
|
|
6058
|
+
root: qc,
|
|
6059
|
+
strong: Uc,
|
|
6060
|
+
table: $c,
|
|
6061
|
+
tableCell: Kc,
|
|
6062
|
+
tableRow: Wc,
|
|
6063
|
+
text: Gc,
|
|
6064
|
+
thematicBreak: Jc,
|
|
6065
6065
|
toml: Cn,
|
|
6066
6066
|
yaml: Cn,
|
|
6067
6067
|
definition: Cn,
|
|
@@ -6069,7 +6069,7 @@ const Xu = {
|
|
|
6069
6069
|
};
|
|
6070
6070
|
function Cn() {
|
|
6071
6071
|
}
|
|
6072
|
-
const os = -1, Hn = 0, In = 1, Ln = 2, Gt = 3, Jt = 4, Xt = 5, Yt = 6,
|
|
6072
|
+
const os = -1, Hn = 0, In = 1, Ln = 2, Gt = 3, Jt = 4, Xt = 5, Yt = 6, us = 7, cs = 8, _r = typeof self == "object" ? self : globalThis, Yc = (e, n) => {
|
|
6073
6073
|
const t = (s, l) => (e.set(l, s), s), r = (s) => {
|
|
6074
6074
|
if (e.has(s))
|
|
6075
6075
|
return e.get(s);
|
|
@@ -6080,39 +6080,39 @@ const os = -1, Hn = 0, In = 1, Ln = 2, Gt = 3, Jt = 4, Xt = 5, Yt = 6, cs = 7, u
|
|
|
6080
6080
|
return t(a, s);
|
|
6081
6081
|
case In: {
|
|
6082
6082
|
const o = t([], s);
|
|
6083
|
-
for (const
|
|
6084
|
-
o.push(r(
|
|
6083
|
+
for (const u of a)
|
|
6084
|
+
o.push(r(u));
|
|
6085
6085
|
return o;
|
|
6086
6086
|
}
|
|
6087
6087
|
case Ln: {
|
|
6088
6088
|
const o = t({}, s);
|
|
6089
|
-
for (const [
|
|
6090
|
-
o[r(
|
|
6089
|
+
for (const [u, c] of a)
|
|
6090
|
+
o[r(u)] = r(c);
|
|
6091
6091
|
return o;
|
|
6092
6092
|
}
|
|
6093
6093
|
case Gt:
|
|
6094
6094
|
return t(new Date(a), s);
|
|
6095
6095
|
case Jt: {
|
|
6096
|
-
const { source: o, flags:
|
|
6097
|
-
return t(new RegExp(o,
|
|
6096
|
+
const { source: o, flags: u } = a;
|
|
6097
|
+
return t(new RegExp(o, u), s);
|
|
6098
6098
|
}
|
|
6099
6099
|
case Xt: {
|
|
6100
6100
|
const o = t(/* @__PURE__ */ new Map(), s);
|
|
6101
|
-
for (const [
|
|
6102
|
-
o.set(r(
|
|
6101
|
+
for (const [u, c] of a)
|
|
6102
|
+
o.set(r(u), r(c));
|
|
6103
6103
|
return o;
|
|
6104
6104
|
}
|
|
6105
6105
|
case Yt: {
|
|
6106
6106
|
const o = t(/* @__PURE__ */ new Set(), s);
|
|
6107
|
-
for (const
|
|
6108
|
-
o.add(r(
|
|
6107
|
+
for (const u of a)
|
|
6108
|
+
o.add(r(u));
|
|
6109
6109
|
return o;
|
|
6110
6110
|
}
|
|
6111
|
-
case
|
|
6112
|
-
const { name: o, message:
|
|
6113
|
-
return t(new _r[o](
|
|
6111
|
+
case us: {
|
|
6112
|
+
const { name: o, message: u } = a;
|
|
6113
|
+
return t(new _r[o](u), s);
|
|
6114
6114
|
}
|
|
6115
|
-
case
|
|
6115
|
+
case cs:
|
|
6116
6116
|
return t(BigInt(a), s);
|
|
6117
6117
|
case "BigInt":
|
|
6118
6118
|
return t(Object(BigInt(a)), s);
|
|
@@ -6120,11 +6120,11 @@ const os = -1, Hn = 0, In = 1, Ln = 2, Gt = 3, Jt = 4, Xt = 5, Yt = 6, cs = 7, u
|
|
|
6120
6120
|
return t(new _r[l](a), s);
|
|
6121
6121
|
};
|
|
6122
6122
|
return r;
|
|
6123
|
-
}, Br = (e) =>
|
|
6123
|
+
}, Br = (e) => Yc(/* @__PURE__ */ new Map(), e)(0), Je = "", { toString: Zc } = {}, { keys: ed } = Object, ln = (e) => {
|
|
6124
6124
|
const n = typeof e;
|
|
6125
6125
|
if (n !== "object" || !e)
|
|
6126
6126
|
return [Hn, n];
|
|
6127
|
-
const t =
|
|
6127
|
+
const t = Zc.call(e).slice(8, -1);
|
|
6128
6128
|
switch (t) {
|
|
6129
6129
|
case "Array":
|
|
6130
6130
|
return [In, Je];
|
|
@@ -6139,26 +6139,26 @@ const os = -1, Hn = 0, In = 1, Ln = 2, Gt = 3, Jt = 4, Xt = 5, Yt = 6, cs = 7, u
|
|
|
6139
6139
|
case "Set":
|
|
6140
6140
|
return [Yt, Je];
|
|
6141
6141
|
}
|
|
6142
|
-
return t.includes("Array") ? [In, t] : t.includes("Error") ? [
|
|
6142
|
+
return t.includes("Array") ? [In, t] : t.includes("Error") ? [us, t] : [Ln, t];
|
|
6143
6143
|
}, Sn = ([e, n]) => e === Hn && (n === "function" || n === "symbol"), nd = (e, n, t, r) => {
|
|
6144
6144
|
const s = (a, o) => {
|
|
6145
|
-
const
|
|
6146
|
-
return t.set(o,
|
|
6145
|
+
const u = r.push(a) - 1;
|
|
6146
|
+
return t.set(o, u), u;
|
|
6147
6147
|
}, l = (a) => {
|
|
6148
6148
|
if (t.has(a))
|
|
6149
6149
|
return t.get(a);
|
|
6150
|
-
let [o,
|
|
6150
|
+
let [o, u] = ln(a);
|
|
6151
6151
|
switch (o) {
|
|
6152
6152
|
case Hn: {
|
|
6153
6153
|
let h = a;
|
|
6154
|
-
switch (
|
|
6154
|
+
switch (u) {
|
|
6155
6155
|
case "bigint":
|
|
6156
|
-
o =
|
|
6156
|
+
o = cs, h = a.toString();
|
|
6157
6157
|
break;
|
|
6158
6158
|
case "function":
|
|
6159
6159
|
case "symbol":
|
|
6160
6160
|
if (e)
|
|
6161
|
-
throw new TypeError("unable to serialize " +
|
|
6161
|
+
throw new TypeError("unable to serialize " + u);
|
|
6162
6162
|
h = null;
|
|
6163
6163
|
break;
|
|
6164
6164
|
case "undefined":
|
|
@@ -6167,22 +6167,22 @@ const os = -1, Hn = 0, In = 1, Ln = 2, Gt = 3, Jt = 4, Xt = 5, Yt = 6, cs = 7, u
|
|
|
6167
6167
|
return s([o, h], a);
|
|
6168
6168
|
}
|
|
6169
6169
|
case In: {
|
|
6170
|
-
if (
|
|
6171
|
-
return s([
|
|
6170
|
+
if (u)
|
|
6171
|
+
return s([u, [...a]], a);
|
|
6172
6172
|
const h = [], d = s([o, h], a);
|
|
6173
6173
|
for (const f of a)
|
|
6174
6174
|
h.push(l(f));
|
|
6175
6175
|
return d;
|
|
6176
6176
|
}
|
|
6177
6177
|
case Ln: {
|
|
6178
|
-
if (
|
|
6179
|
-
switch (
|
|
6178
|
+
if (u)
|
|
6179
|
+
switch (u) {
|
|
6180
6180
|
case "BigInt":
|
|
6181
|
-
return s([
|
|
6181
|
+
return s([u, a.toString()], a);
|
|
6182
6182
|
case "Boolean":
|
|
6183
6183
|
case "Number":
|
|
6184
6184
|
case "String":
|
|
6185
|
-
return s([
|
|
6185
|
+
return s([u, a.valueOf()], a);
|
|
6186
6186
|
}
|
|
6187
6187
|
if (n && "toJSON" in a)
|
|
6188
6188
|
return l(a.toJSON());
|
|
@@ -6210,8 +6210,8 @@ const os = -1, Hn = 0, In = 1, Ln = 2, Gt = 3, Jt = 4, Xt = 5, Yt = 6, cs = 7, u
|
|
|
6210
6210
|
return d;
|
|
6211
6211
|
}
|
|
6212
6212
|
}
|
|
6213
|
-
const { message:
|
|
6214
|
-
return s([o, { name:
|
|
6213
|
+
const { message: c } = a;
|
|
6214
|
+
return s([o, { name: u, message: c }], a);
|
|
6215
6215
|
};
|
|
6216
6216
|
return l;
|
|
6217
6217
|
}, Vr = (e, { json: n, lossy: t } = {}) => {
|
|
@@ -6237,24 +6237,24 @@ function id(e) {
|
|
|
6237
6237
|
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent || td, r = e.options.footnoteBackLabel || rd, s = e.options.footnoteLabel || "Footnotes", l = e.options.footnoteLabelTagName || "h2", a = e.options.footnoteLabelProperties || {
|
|
6238
6238
|
className: ["sr-only"]
|
|
6239
6239
|
}, o = [];
|
|
6240
|
-
let
|
|
6241
|
-
for (; ++
|
|
6242
|
-
const
|
|
6243
|
-
if (!
|
|
6240
|
+
let u = -1;
|
|
6241
|
+
for (; ++u < e.footnoteOrder.length; ) {
|
|
6242
|
+
const c = e.footnoteById.get(e.footnoteOrder[u]);
|
|
6243
|
+
if (!c)
|
|
6244
6244
|
continue;
|
|
6245
|
-
const h = e.all(
|
|
6245
|
+
const h = e.all(c), d = String(c.identifier).toUpperCase(), f = tn(d.toLowerCase());
|
|
6246
6246
|
let p = 0;
|
|
6247
6247
|
const y = [], k = e.footnoteCounts.get(d);
|
|
6248
6248
|
for (; k !== void 0 && ++p <= k; ) {
|
|
6249
6249
|
y.length > 0 && y.push({ type: "text", value: " " });
|
|
6250
|
-
let E = typeof t == "string" ? t : t(
|
|
6250
|
+
let E = typeof t == "string" ? t : t(u, p);
|
|
6251
6251
|
typeof E == "string" && (E = { type: "text", value: E }), y.push({
|
|
6252
6252
|
type: "element",
|
|
6253
6253
|
tagName: "a",
|
|
6254
6254
|
properties: {
|
|
6255
6255
|
href: "#" + n + "fnref-" + f + (p > 1 ? "-" + p : ""),
|
|
6256
6256
|
dataFootnoteBackref: "",
|
|
6257
|
-
ariaLabel: typeof r == "string" ? r : r(
|
|
6257
|
+
ariaLabel: typeof r == "string" ? r : r(u, p),
|
|
6258
6258
|
className: ["data-footnote-backref"]
|
|
6259
6259
|
},
|
|
6260
6260
|
children: Array.isArray(E) ? E : [E]
|
|
@@ -6272,7 +6272,7 @@ function id(e) {
|
|
|
6272
6272
|
properties: { id: n + "fn-" + f },
|
|
6273
6273
|
children: e.wrap(h, !0)
|
|
6274
6274
|
};
|
|
6275
|
-
e.patch(
|
|
6275
|
+
e.patch(c, b), o.push(b);
|
|
6276
6276
|
}
|
|
6277
6277
|
if (o.length !== 0)
|
|
6278
6278
|
return {
|
|
@@ -6371,7 +6371,7 @@ function ad(e) {
|
|
|
6371
6371
|
function qn(e) {
|
|
6372
6372
|
return n;
|
|
6373
6373
|
function n(t, r, s) {
|
|
6374
|
-
return !!(
|
|
6374
|
+
return !!(ud(t) && e.call(
|
|
6375
6375
|
this,
|
|
6376
6376
|
t,
|
|
6377
6377
|
typeof r == "number" ? r : void 0,
|
|
@@ -6382,19 +6382,19 @@ function qn(e) {
|
|
|
6382
6382
|
function od() {
|
|
6383
6383
|
return !0;
|
|
6384
6384
|
}
|
|
6385
|
-
function
|
|
6385
|
+
function ud(e) {
|
|
6386
6386
|
return e !== null && typeof e == "object" && "type" in e;
|
|
6387
6387
|
}
|
|
6388
|
-
const hs = [],
|
|
6388
|
+
const hs = [], cd = !0, Hr = !1, dd = "skip";
|
|
6389
6389
|
function hd(e, n, t, r) {
|
|
6390
6390
|
let s;
|
|
6391
6391
|
typeof n == "function" && typeof t != "function" ? (r = t, t = n) : s = n;
|
|
6392
6392
|
const l = ds(s), a = r ? -1 : 1;
|
|
6393
6393
|
o(e, void 0, [])();
|
|
6394
|
-
function o(
|
|
6394
|
+
function o(u, c, h) {
|
|
6395
6395
|
const d = (
|
|
6396
6396
|
/** @type {Record<string, unknown>} */
|
|
6397
|
-
|
|
6397
|
+
u && typeof u == "object" ? u : {}
|
|
6398
6398
|
);
|
|
6399
6399
|
if (typeof d.type == "string") {
|
|
6400
6400
|
const p = (
|
|
@@ -6405,18 +6405,18 @@ function hd(e, n, t, r) {
|
|
|
6405
6405
|
)
|
|
6406
6406
|
);
|
|
6407
6407
|
Object.defineProperty(f, "name", {
|
|
6408
|
-
value: "node (" + (
|
|
6408
|
+
value: "node (" + (u.type + (p ? "<" + p + ">" : "")) + ")"
|
|
6409
6409
|
});
|
|
6410
6410
|
}
|
|
6411
6411
|
return f;
|
|
6412
6412
|
function f() {
|
|
6413
6413
|
let p = hs, y, k, w;
|
|
6414
|
-
if ((!n || l(
|
|
6414
|
+
if ((!n || l(u, c, h[h.length - 1] || void 0)) && (p = pd(t(u, h)), p[0] === Hr))
|
|
6415
6415
|
return p;
|
|
6416
|
-
if ("children" in
|
|
6416
|
+
if ("children" in u && u.children) {
|
|
6417
6417
|
const b = (
|
|
6418
6418
|
/** @type {UnistParent} */
|
|
6419
|
-
|
|
6419
|
+
u
|
|
6420
6420
|
);
|
|
6421
6421
|
if (b.children && p[0] !== dd)
|
|
6422
6422
|
for (k = (r ? b.children.length : -1) + a, w = h.concat(b); k > -1 && k < b.children.length; ) {
|
|
@@ -6431,27 +6431,27 @@ function hd(e, n, t, r) {
|
|
|
6431
6431
|
}
|
|
6432
6432
|
}
|
|
6433
6433
|
function pd(e) {
|
|
6434
|
-
return Array.isArray(e) ? e : typeof e == "number" ? [
|
|
6434
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [cd, e] : e == null ? hs : [e];
|
|
6435
6435
|
}
|
|
6436
6436
|
function ps(e, n, t, r) {
|
|
6437
6437
|
let s, l, a;
|
|
6438
6438
|
typeof n == "function" && typeof t != "function" ? (l = void 0, a = n, s = t) : (l = n, a = t, s = r), hd(e, l, o, s);
|
|
6439
|
-
function o(
|
|
6440
|
-
const h =
|
|
6441
|
-
return a(
|
|
6439
|
+
function o(u, c) {
|
|
6440
|
+
const h = c[c.length - 1], d = h ? h.children.indexOf(u) : void 0;
|
|
6441
|
+
return a(u, d, h);
|
|
6442
6442
|
}
|
|
6443
6443
|
}
|
|
6444
6444
|
const bt = {}.hasOwnProperty, fd = {};
|
|
6445
6445
|
function md(e, n) {
|
|
6446
|
-
const t = n || fd, r = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), a = { ...
|
|
6447
|
-
all:
|
|
6446
|
+
const t = n || fd, r = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), a = { ...Xc, ...t.handlers }, o = {
|
|
6447
|
+
all: c,
|
|
6448
6448
|
applyData: gd,
|
|
6449
6449
|
definitionById: r,
|
|
6450
6450
|
footnoteById: s,
|
|
6451
6451
|
footnoteCounts: l,
|
|
6452
6452
|
footnoteOrder: [],
|
|
6453
6453
|
handlers: a,
|
|
6454
|
-
one:
|
|
6454
|
+
one: u,
|
|
6455
6455
|
options: t,
|
|
6456
6456
|
patch: xd,
|
|
6457
6457
|
wrap: bd
|
|
@@ -6462,7 +6462,7 @@ function md(e, n) {
|
|
|
6462
6462
|
d.has(f) || d.set(f, h);
|
|
6463
6463
|
}
|
|
6464
6464
|
}), o;
|
|
6465
|
-
function
|
|
6465
|
+
function u(h, d) {
|
|
6466
6466
|
const f = h.type, p = o.handlers[f];
|
|
6467
6467
|
if (bt.call(o.handlers, f) && p)
|
|
6468
6468
|
return p(o, h, d);
|
|
@@ -6475,7 +6475,7 @@ function md(e, n) {
|
|
|
6475
6475
|
}
|
|
6476
6476
|
return (o.options.unknownHandler || yd)(o, h, d);
|
|
6477
6477
|
}
|
|
6478
|
-
function
|
|
6478
|
+
function c(h) {
|
|
6479
6479
|
const d = [];
|
|
6480
6480
|
if ("children" in h) {
|
|
6481
6481
|
const f = h.children;
|
|
@@ -6588,9 +6588,9 @@ var zn = Object.prototype.hasOwnProperty, fs = Object.prototype.toString, Wr = O
|
|
|
6588
6588
|
return;
|
|
6589
6589
|
return n[t];
|
|
6590
6590
|
}, jd = function e() {
|
|
6591
|
-
var n, t, r, s, l, a, o = arguments[0],
|
|
6592
|
-
for (typeof o == "boolean" && (h = o, o = arguments[1] || {},
|
|
6593
|
-
if (n = arguments[
|
|
6591
|
+
var n, t, r, s, l, a, o = arguments[0], u = 1, c = arguments.length, h = !1;
|
|
6592
|
+
for (typeof o == "boolean" && (h = o, o = arguments[1] || {}, u = 2), (o == null || typeof o != "object" && typeof o != "function") && (o = {}); u < c; ++u)
|
|
6593
|
+
if (n = arguments[u], n != null)
|
|
6594
6594
|
for (t in n)
|
|
6595
6595
|
r = Xr(o, t), s = Xr(n, t), o !== s && (h && s && (Gr(s) || (l = Qr(s))) ? (l ? (l = !1, a = r && Qr(r) ? r : []) : a = r && Gr(r) ? r : {}, Jr(o, { name: t, newValue: e(h, a, s) })) : typeof s < "u" && Jr(o, { name: t, newValue: s }));
|
|
6596
6596
|
return o;
|
|
@@ -6611,16 +6611,16 @@ function wd() {
|
|
|
6611
6611
|
if (typeof a != "function")
|
|
6612
6612
|
throw new TypeError("Expected function as last argument, not " + a);
|
|
6613
6613
|
o(null, ...s);
|
|
6614
|
-
function o(
|
|
6614
|
+
function o(u, ...c) {
|
|
6615
6615
|
const h = e[++l];
|
|
6616
6616
|
let d = -1;
|
|
6617
|
-
if (
|
|
6618
|
-
a(
|
|
6617
|
+
if (u) {
|
|
6618
|
+
a(u);
|
|
6619
6619
|
return;
|
|
6620
6620
|
}
|
|
6621
6621
|
for (; ++d < s.length; )
|
|
6622
|
-
(
|
|
6623
|
-
s =
|
|
6622
|
+
(c[d] === null || c[d] === void 0) && (c[d] = s[d]);
|
|
6623
|
+
s = c, h ? Cd(h, o)(...c) : a(null, ...c);
|
|
6624
6624
|
}
|
|
6625
6625
|
}
|
|
6626
6626
|
function r(s) {
|
|
@@ -6636,20 +6636,20 @@ function Cd(e, n) {
|
|
|
6636
6636
|
return r;
|
|
6637
6637
|
function r(...a) {
|
|
6638
6638
|
const o = e.length > a.length;
|
|
6639
|
-
let
|
|
6639
|
+
let u;
|
|
6640
6640
|
o && a.push(s);
|
|
6641
6641
|
try {
|
|
6642
|
-
|
|
6643
|
-
} catch (
|
|
6642
|
+
u = e.apply(this, a);
|
|
6643
|
+
} catch (c) {
|
|
6644
6644
|
const h = (
|
|
6645
6645
|
/** @type {Error} */
|
|
6646
|
-
|
|
6646
|
+
c
|
|
6647
6647
|
);
|
|
6648
6648
|
if (o && t)
|
|
6649
6649
|
throw h;
|
|
6650
6650
|
return s(h);
|
|
6651
6651
|
}
|
|
6652
|
-
o || (
|
|
6652
|
+
o || (u instanceof Promise ? u.then(l, s) : u instanceof Error ? s(u) : l(u));
|
|
6653
6653
|
}
|
|
6654
6654
|
function s(a, ...o) {
|
|
6655
6655
|
t || (t = !0, n(a, ...o));
|
|
@@ -6733,7 +6733,7 @@ function zd(e) {
|
|
|
6733
6733
|
return t.length === 0 && !n && (t = "."), t.length > 0 && e.codePointAt(e.length - 1) === 47 && (t += "/"), n ? "/" + t : t;
|
|
6734
6734
|
}
|
|
6735
6735
|
function Od(e, n) {
|
|
6736
|
-
let t = "", r = 0, s = -1, l = 0, a = -1, o,
|
|
6736
|
+
let t = "", r = 0, s = -1, l = 0, a = -1, o, u;
|
|
6737
6737
|
for (; ++a <= e.length; ) {
|
|
6738
6738
|
if (a < e.length)
|
|
6739
6739
|
o = e.codePointAt(a);
|
|
@@ -6747,8 +6747,8 @@ function Od(e, n) {
|
|
|
6747
6747
|
if (s !== a - 1 && l === 2) {
|
|
6748
6748
|
if (t.length < 2 || r !== 2 || t.codePointAt(t.length - 1) !== 46 || t.codePointAt(t.length - 2) !== 46) {
|
|
6749
6749
|
if (t.length > 2) {
|
|
6750
|
-
if (
|
|
6751
|
-
|
|
6750
|
+
if (u = t.lastIndexOf("/"), u !== t.length - 1) {
|
|
6751
|
+
u < 0 ? (t = "", r = 0) : (t = t.slice(0, u), r = t.length - 1 - t.lastIndexOf("/")), s = a, l = 0;
|
|
6752
6752
|
continue;
|
|
6753
6753
|
}
|
|
6754
6754
|
} else if (t.length > 0) {
|
|
@@ -7235,8 +7235,8 @@ const Md = (
|
|
|
7235
7235
|
Object.setPrototypeOf(l, r);
|
|
7236
7236
|
const a = Object.getOwnPropertyNames(s);
|
|
7237
7237
|
for (const o of a) {
|
|
7238
|
-
const
|
|
7239
|
-
|
|
7238
|
+
const u = Object.getOwnPropertyDescriptor(s, o);
|
|
7239
|
+
u && Object.defineProperty(l, o, u);
|
|
7240
7240
|
}
|
|
7241
7241
|
return l;
|
|
7242
7242
|
}
|
|
@@ -7433,26 +7433,26 @@ class Zt extends Md {
|
|
|
7433
7433
|
const r = this;
|
|
7434
7434
|
return this.freeze(), lt("process", this.parser || this.Parser), at("process", this.compiler || this.Compiler), t ? s(void 0, t) : new Promise(s);
|
|
7435
7435
|
function s(l, a) {
|
|
7436
|
-
const o = vn(n),
|
|
7436
|
+
const o = vn(n), u = (
|
|
7437
7437
|
/** @type {HeadTree extends undefined ? Node : HeadTree} */
|
|
7438
7438
|
/** @type {unknown} */
|
|
7439
7439
|
r.parse(o)
|
|
7440
7440
|
);
|
|
7441
|
-
r.run(
|
|
7441
|
+
r.run(u, o, function(h, d, f) {
|
|
7442
7442
|
if (h || !d || !f)
|
|
7443
|
-
return
|
|
7443
|
+
return c(h);
|
|
7444
7444
|
const p = (
|
|
7445
7445
|
/** @type {CompileTree extends undefined ? Node : CompileTree} */
|
|
7446
7446
|
/** @type {unknown} */
|
|
7447
7447
|
d
|
|
7448
7448
|
), y = r.stringify(p, f);
|
|
7449
|
-
_d(y) ? f.value = y : f.result = y,
|
|
7449
|
+
_d(y) ? f.value = y : f.result = y, c(
|
|
7450
7450
|
h,
|
|
7451
7451
|
/** @type {VFileWithOutput<CompileResult>} */
|
|
7452
7452
|
f
|
|
7453
7453
|
);
|
|
7454
7454
|
});
|
|
7455
|
-
function
|
|
7455
|
+
function c(h, d) {
|
|
7456
7456
|
h || !d ? a(h) : l ? l(d) : t(void 0, d);
|
|
7457
7457
|
}
|
|
7458
7458
|
}
|
|
@@ -7538,9 +7538,9 @@ class Zt extends Md {
|
|
|
7538
7538
|
const s = this.transformers;
|
|
7539
7539
|
return !r && typeof t == "function" && (r = t, t = void 0), r ? l(void 0, r) : new Promise(l);
|
|
7540
7540
|
function l(a, o) {
|
|
7541
|
-
const
|
|
7542
|
-
s.run(n,
|
|
7543
|
-
function
|
|
7541
|
+
const u = vn(t);
|
|
7542
|
+
s.run(n, u, c);
|
|
7543
|
+
function c(h, d, f) {
|
|
7544
7544
|
const p = (
|
|
7545
7545
|
/** @type {TailTree extends undefined ? Node : TailTree} */
|
|
7546
7546
|
d || n
|
|
@@ -7668,58 +7668,58 @@ class Zt extends Md {
|
|
|
7668
7668
|
const r = this.attachers, s = this.namespace;
|
|
7669
7669
|
if (ot("use", this.frozen), n != null)
|
|
7670
7670
|
if (typeof n == "function")
|
|
7671
|
-
|
|
7671
|
+
u(n, t);
|
|
7672
7672
|
else if (typeof n == "object")
|
|
7673
7673
|
Array.isArray(n) ? o(n) : a(n);
|
|
7674
7674
|
else
|
|
7675
7675
|
throw new TypeError("Expected usable value, not `" + n + "`");
|
|
7676
7676
|
return this;
|
|
7677
|
-
function l(
|
|
7678
|
-
if (typeof
|
|
7679
|
-
c
|
|
7680
|
-
else if (typeof
|
|
7681
|
-
if (Array.isArray(
|
|
7677
|
+
function l(c) {
|
|
7678
|
+
if (typeof c == "function")
|
|
7679
|
+
u(c, []);
|
|
7680
|
+
else if (typeof c == "object")
|
|
7681
|
+
if (Array.isArray(c)) {
|
|
7682
7682
|
const [h, ...d] = (
|
|
7683
7683
|
/** @type {PluginTuple<Array<unknown>>} */
|
|
7684
|
-
|
|
7684
|
+
c
|
|
7685
7685
|
);
|
|
7686
|
-
|
|
7686
|
+
u(h, d);
|
|
7687
7687
|
} else
|
|
7688
|
-
a(
|
|
7688
|
+
a(c);
|
|
7689
7689
|
else
|
|
7690
|
-
throw new TypeError("Expected usable value, not `" +
|
|
7690
|
+
throw new TypeError("Expected usable value, not `" + c + "`");
|
|
7691
7691
|
}
|
|
7692
|
-
function a(
|
|
7693
|
-
if (!("plugins" in
|
|
7692
|
+
function a(c) {
|
|
7693
|
+
if (!("plugins" in c) && !("settings" in c))
|
|
7694
7694
|
throw new Error(
|
|
7695
7695
|
"Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither"
|
|
7696
7696
|
);
|
|
7697
|
-
o(
|
|
7697
|
+
o(c.plugins), c.settings && (s.settings = tt(!0, s.settings, c.settings));
|
|
7698
7698
|
}
|
|
7699
|
-
function o(
|
|
7699
|
+
function o(c) {
|
|
7700
7700
|
let h = -1;
|
|
7701
|
-
if (
|
|
7702
|
-
if (Array.isArray(
|
|
7703
|
-
for (; ++h <
|
|
7704
|
-
const d =
|
|
7701
|
+
if (c != null)
|
|
7702
|
+
if (Array.isArray(c))
|
|
7703
|
+
for (; ++h < c.length; ) {
|
|
7704
|
+
const d = c[h];
|
|
7705
7705
|
l(d);
|
|
7706
7706
|
}
|
|
7707
7707
|
else
|
|
7708
|
-
throw new TypeError("Expected a list of plugins, not `" +
|
|
7708
|
+
throw new TypeError("Expected a list of plugins, not `" + c + "`");
|
|
7709
7709
|
}
|
|
7710
|
-
function c
|
|
7710
|
+
function u(c, h) {
|
|
7711
7711
|
let d = -1, f = -1;
|
|
7712
7712
|
for (; ++d < r.length; )
|
|
7713
|
-
if (r[d][0] ===
|
|
7713
|
+
if (r[d][0] === c) {
|
|
7714
7714
|
f = d;
|
|
7715
7715
|
break;
|
|
7716
7716
|
}
|
|
7717
7717
|
if (f === -1)
|
|
7718
|
-
r.push([
|
|
7718
|
+
r.push([c, ...h]);
|
|
7719
7719
|
else if (h.length > 0) {
|
|
7720
7720
|
let [p, ...y] = h;
|
|
7721
7721
|
const k = r[f][1];
|
|
7722
|
-
kt(k) && kt(p) && (p = tt(!0, k, p)), r[f] = [
|
|
7722
|
+
kt(k) && kt(p) && (p = tt(!0, k, p)), r[f] = [c, p, ...y];
|
|
7723
7723
|
}
|
|
7724
7724
|
}
|
|
7725
7725
|
}
|
|
@@ -7795,7 +7795,7 @@ const Vd = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
|
|
|
7795
7795
|
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
|
7796
7796
|
];
|
|
7797
7797
|
function Ud(e) {
|
|
7798
|
-
const n = e.allowedElements, t = e.allowElement, r = e.children || "", s = e.className, l = e.components, a = e.disallowedElements, o = e.rehypePlugins || ni,
|
|
7798
|
+
const n = e.allowedElements, t = e.allowElement, r = e.children || "", s = e.className, l = e.components, a = e.disallowedElements, o = e.rehypePlugins || ni, u = e.remarkPlugins || ni, c = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...ti } : ti, h = e.skipHtml, d = e.unwrapDisallowed, f = e.urlTransform || $d, p = Pd().use(vc).use(u).use(kd, c).use(o), y = new ms();
|
|
7799
7799
|
typeof r == "string" && (y.value = r);
|
|
7800
7800
|
for (const E of qd)
|
|
7801
7801
|
Object.hasOwn(e, E.from) && ("" + E.from + (E.to ? "use `" + E.to + "` instead" : "remove it") + Vd + E.id, void 0);
|
|
@@ -7901,7 +7901,7 @@ function Kd({
|
|
|
7901
7901
|
triggerAIRun: s,
|
|
7902
7902
|
setTriggerAIRun: l
|
|
7903
7903
|
}) {
|
|
7904
|
-
const a =
|
|
7904
|
+
const a = cn(null), o = cn(null), { authToken: u } = Mt(), [c, h] = J(!1), d = C((O) => O.actions.setCardSql), f = P((O) => O.dashboard.baseQueries), p = C((O) => O.actions.setRunSql), y = C((O) => O.actions.setCardType), [k, w] = J([]), b = C((O) => O.currentColumns), E = C((O) => O.card.sql), S = C((O) => O.selectedTableName), M = `
|
|
7905
7905
|
${t}
|
|
7906
7906
|
|
|
7907
7907
|
Database Query Dialect: ${S === "api" || S === "s3" ? "DuckDb" : ""}
|
|
@@ -7913,9 +7913,9 @@ function Kd({
|
|
|
7913
7913
|
queryKey: ["ai-query"],
|
|
7914
7914
|
queryFn: () => Qs(
|
|
7915
7915
|
"https://semaphor.cloud/api/v1/ai",
|
|
7916
|
-
(
|
|
7916
|
+
(u == null ? void 0 : u.accessToken) || "",
|
|
7917
7917
|
{
|
|
7918
|
-
user_content: `userContent: ${M} ${
|
|
7918
|
+
user_content: `userContent: ${M} ${c ? F : ""}`
|
|
7919
7919
|
}
|
|
7920
7920
|
),
|
|
7921
7921
|
enabled: !1
|
|
@@ -8017,7 +8017,7 @@ function Kd({
|
|
|
8017
8017
|
const ee = m.textContent || m.innerText;
|
|
8018
8018
|
return navigator.clipboard.writeText(ee).then(() => console.log("Text copied to clipboard")).catch((oe) => console.error("Error in copying text: ", oe)), ee;
|
|
8019
8019
|
}
|
|
8020
|
-
function
|
|
8020
|
+
function ce() {
|
|
8021
8021
|
return k == null ? void 0 : k.map((O, m) => O.role === "user" ? /* @__PURE__ */ i.jsxs(
|
|
8022
8022
|
"div",
|
|
8023
8023
|
{
|
|
@@ -8062,7 +8062,7 @@ function Kd({
|
|
|
8062
8062
|
{
|
|
8063
8063
|
ref: o,
|
|
8064
8064
|
className: "h-[625px] w-full overflow-auto border-t border-t-muted",
|
|
8065
|
-
children: /* @__PURE__ */ i.jsx("div", { className: "space-y-4 py-2 pr-3", role: "messages", children:
|
|
8065
|
+
children: /* @__PURE__ */ i.jsx("div", { className: "space-y-4 py-2 pr-3", role: "messages", children: ce() })
|
|
8066
8066
|
}
|
|
8067
8067
|
),
|
|
8068
8068
|
/* @__PURE__ */ i.jsx(
|
|
@@ -8201,13 +8201,13 @@ function eh(e) {
|
|
|
8201
8201
|
attr: r,
|
|
8202
8202
|
size: s,
|
|
8203
8203
|
title: l
|
|
8204
|
-
} = e, a = Gd(e, Qd), o = s || t.size || "1em",
|
|
8205
|
-
return t.className && (
|
|
8204
|
+
} = e, a = Gd(e, Qd), o = s || t.size || "1em", u;
|
|
8205
|
+
return t.className && (u = t.className), e.className && (u = (u ? u + " " : "") + e.className), /* @__PURE__ */ Re.createElement("svg", Mn({
|
|
8206
8206
|
stroke: "currentColor",
|
|
8207
8207
|
fill: "currentColor",
|
|
8208
8208
|
strokeWidth: "0"
|
|
8209
8209
|
}, t.attr, r, a, {
|
|
8210
|
-
className:
|
|
8210
|
+
className: u,
|
|
8211
8211
|
style: Dn(Dn({
|
|
8212
8212
|
color: e.color || t.color
|
|
8213
8213
|
}, t.style), e.style),
|
|
@@ -8222,7 +8222,7 @@ function nh(e) {
|
|
|
8222
8222
|
return Ke({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M439.8 200.5c-7.7-30.9-22.3-54.2-53.4-54.2h-40.1v47.4c0 36.8-31.2 67.8-66.8 67.8H172.7c-29.2 0-53.4 25-53.4 54.3v101.8c0 29 25.2 46 53.4 54.3 33.8 9.9 66.3 11.7 106.8 0 26.9-7.8 53.4-23.5 53.4-54.3v-40.7H226.2v-13.6h160.2c31.1 0 42.6-21.7 53.4-54.2 11.2-33.5 10.7-65.7 0-108.6zM286.2 404c11.1 0 20.1 9.1 20.1 20.3 0 11.3-9 20.4-20.1 20.4-11 0-20.1-9.2-20.1-20.4.1-11.3 9.1-20.3 20.1-20.3zM167.8 248.1h106.8c29.7 0 53.4-24.5 53.4-54.3V91.9c0-29-24.4-50.7-53.4-55.6-35.8-5.9-74.7-5.6-106.8.1-45.2 8-53.4 24.7-53.4 55.6v40.7h106.9v13.6h-147c-31.1 0-58.3 18.7-66.8 54.2-9.8 40.7-10.2 66.1 0 108.6 7.6 31.6 25.7 54.2 56.8 54.2H101v-48.8c0-35.3 30.5-66.4 66.8-66.4zm-6.7-142.6c-11.1 0-20.1-9.1-20.1-20.3.1-11.3 9-20.4 20.1-20.4 11 0 20.1 9.2 20.1 20.4s-9 20.3-20.1 20.3z" }, child: [] }] })(e);
|
|
8223
8223
|
}
|
|
8224
8224
|
function th() {
|
|
8225
|
-
const { theme: e } = Js(), n =
|
|
8225
|
+
const { theme: e } = Js(), n = cn(), t = cn(), [r, s] = J(!1), [l, a] = J(!1), [o, u] = J(!1), [c, h] = J(""), [d, f] = J(!1), { authToken: p } = Mt();
|
|
8226
8226
|
P((g) => g.selectedSheetId);
|
|
8227
8227
|
const y = P((g) => g.dashboard.baseQueries), k = C((g) => g.card), w = P((g) => g.theme), b = C((g) => g.isShowingVisual), E = C(
|
|
8228
8228
|
(g) => g.selectedConnectionId
|
|
@@ -8240,14 +8240,14 @@ function th() {
|
|
|
8240
8240
|
setFilterValues: _,
|
|
8241
8241
|
setCardSql: $,
|
|
8242
8242
|
setCardPython: Z,
|
|
8243
|
-
setQueryError:
|
|
8243
|
+
setQueryError: ce,
|
|
8244
8244
|
setPythonStdOut: O
|
|
8245
8245
|
} = C((g) => g.actions), m = C((g) => g.onSave), ee = C(
|
|
8246
8246
|
(g) => g.actions.setApplyFilters
|
|
8247
8247
|
), oe = C((g) => g.onClose), x = C((g) => g.actions.setCardData), ye = C((g) => g.actions.setSqlGen), Ee = C((g) => g.runSql), ne = C((g) => g.actions.setRunSql), Le = C(
|
|
8248
8248
|
(g) => g.actions.setIsSqlRunning
|
|
8249
8249
|
), {
|
|
8250
|
-
data:
|
|
8250
|
+
data: ue,
|
|
8251
8251
|
isLoading: ve,
|
|
8252
8252
|
isFetching: we,
|
|
8253
8253
|
isSuccess: Qe,
|
|
@@ -8271,25 +8271,25 @@ function th() {
|
|
|
8271
8271
|
retry: !1
|
|
8272
8272
|
});
|
|
8273
8273
|
me(() => {
|
|
8274
|
-
if (
|
|
8275
|
-
const { dimensionKeys: g } =
|
|
8274
|
+
if (ue && (x(ue.records), O((ue == null ? void 0 : ue.output) || ""), ue.records.length > 0)) {
|
|
8275
|
+
const { dimensionKeys: g } = ct(ue.records);
|
|
8276
8276
|
K(g);
|
|
8277
8277
|
}
|
|
8278
|
-
}, [
|
|
8278
|
+
}, [ue, x, K, O]), me(() => {
|
|
8279
8279
|
Ee && (qe(), ne(!1));
|
|
8280
8280
|
}, [Ee, qe, ne]), me(() => {
|
|
8281
|
-
(ve || we) && Le(!0), (Ge || Qe) && Le(!1), Ge ? (
|
|
8281
|
+
(ve || we) && Le(!0), (Ge || Qe) && Le(!1), Ge ? (ce(sn.message), x([]), K([]), O("")) : ce("");
|
|
8282
8282
|
}, [
|
|
8283
8283
|
ve,
|
|
8284
8284
|
we,
|
|
8285
|
-
|
|
8285
|
+
ue,
|
|
8286
8286
|
O,
|
|
8287
8287
|
Ge,
|
|
8288
8288
|
Qe,
|
|
8289
8289
|
Le,
|
|
8290
8290
|
x,
|
|
8291
8291
|
K,
|
|
8292
|
-
|
|
8292
|
+
ce,
|
|
8293
8293
|
sn
|
|
8294
8294
|
]);
|
|
8295
8295
|
function gn() {
|
|
@@ -8382,7 +8382,7 @@ function th() {
|
|
|
8382
8382
|
),
|
|
8383
8383
|
/* @__PURE__ */ i.jsx(ga, {}),
|
|
8384
8384
|
T && l && /* @__PURE__ */ i.jsx(
|
|
8385
|
-
|
|
8385
|
+
un,
|
|
8386
8386
|
{
|
|
8387
8387
|
onClick: () => a(!1),
|
|
8388
8388
|
className: "bg-background/50 text-foreground/50 hover:cursor-pointer hover:text-foreground"
|
|
@@ -8589,7 +8589,7 @@ function th() {
|
|
|
8589
8589
|
ma,
|
|
8590
8590
|
{
|
|
8591
8591
|
error: sn.message,
|
|
8592
|
-
setShowAIDialog:
|
|
8592
|
+
setShowAIDialog: u,
|
|
8593
8593
|
setTriggerAIRun: f,
|
|
8594
8594
|
setUserInputforAI: h
|
|
8595
8595
|
}
|
|
@@ -8622,8 +8622,8 @@ function th() {
|
|
|
8622
8622
|
Kd,
|
|
8623
8623
|
{
|
|
8624
8624
|
open: o,
|
|
8625
|
-
setOpen:
|
|
8626
|
-
userInput:
|
|
8625
|
+
setOpen: u,
|
|
8626
|
+
userInput: c,
|
|
8627
8627
|
triggerAIRun: d,
|
|
8628
8628
|
setTriggerAIRun: f,
|
|
8629
8629
|
setUserInput: (g) => h(g)
|
|
@@ -8651,7 +8651,7 @@ function th() {
|
|
|
8651
8651
|
size: "sm",
|
|
8652
8652
|
variant: "outline",
|
|
8653
8653
|
children: [
|
|
8654
|
-
/* @__PURE__ */ i.jsx(
|
|
8654
|
+
/* @__PURE__ */ i.jsx(un, { className: "mr-2 size-4" }),
|
|
8655
8655
|
"Close"
|
|
8656
8656
|
]
|
|
8657
8657
|
}
|
|
@@ -8670,16 +8670,16 @@ function rh({ data: e }) {
|
|
|
8670
8670
|
const [n, t] = Re.useState([]), s = Object.keys(e[0]).map((o) => ({
|
|
8671
8671
|
// header: key,
|
|
8672
8672
|
accessorKey: o,
|
|
8673
|
-
header: ({ column:
|
|
8674
|
-
const
|
|
8673
|
+
header: ({ column: u }) => {
|
|
8674
|
+
const c = u.getIsSorted();
|
|
8675
8675
|
return /* @__PURE__ */ i.jsx("div", { className: "flex gap-2", children: /* @__PURE__ */ i.jsxs(
|
|
8676
8676
|
"div",
|
|
8677
8677
|
{
|
|
8678
8678
|
className: "flex cursor-pointer items-center",
|
|
8679
|
-
onClick: () =>
|
|
8679
|
+
onClick: () => u.toggleSorting(u.getIsSorted() === "asc"),
|
|
8680
8680
|
children: [
|
|
8681
8681
|
o,
|
|
8682
|
-
|
|
8682
|
+
c === "asc" ? /* @__PURE__ */ i.jsx(el, { className: "ml-2 h-5 w-5" }) : c === "desc" ? /* @__PURE__ */ i.jsx(nl, { className: "ml-2 h-5 w-5" }) : null
|
|
8683
8683
|
]
|
|
8684
8684
|
}
|
|
8685
8685
|
) });
|
|
@@ -8690,23 +8690,23 @@ function rh({ data: e }) {
|
|
|
8690
8690
|
getCoreRowModel: al(),
|
|
8691
8691
|
getPaginationRowModel: ol(),
|
|
8692
8692
|
onSortingChange: t,
|
|
8693
|
-
getSortedRowModel:
|
|
8693
|
+
getSortedRowModel: ul(),
|
|
8694
8694
|
manualPagination: !0,
|
|
8695
8695
|
state: {
|
|
8696
8696
|
sorting: n
|
|
8697
8697
|
}
|
|
8698
8698
|
});
|
|
8699
8699
|
return /* @__PURE__ */ i.jsxs(rl, { children: [
|
|
8700
|
-
/* @__PURE__ */ i.jsx(il, { children: l.getHeaderGroups().map((o) => /* @__PURE__ */ i.jsx(Xn, { children: o.headers.map((
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
) },
|
|
8700
|
+
/* @__PURE__ */ i.jsx(il, { children: l.getHeaderGroups().map((o) => /* @__PURE__ */ i.jsx(Xn, { children: o.headers.map((u) => /* @__PURE__ */ i.jsx(sl, { className: "sticky top-0 bg-muted", children: u.isPlaceholder ? null : lr(
|
|
8701
|
+
u.column.columnDef.header,
|
|
8702
|
+
u.getContext()
|
|
8703
|
+
) }, u.id)) }, o.id)) }),
|
|
8704
8704
|
/* @__PURE__ */ i.jsx(ll, { children: (a = l.getRowModel().rows) != null && a.length ? l.getRowModel().rows.map((o) => /* @__PURE__ */ i.jsx(
|
|
8705
8705
|
Xn,
|
|
8706
8706
|
{
|
|
8707
8707
|
className: "whitespace-nowrap py-2",
|
|
8708
8708
|
"data-state": o.getIsSelected() && "selected",
|
|
8709
|
-
children: o.getVisibleCells().map((
|
|
8709
|
+
children: o.getVisibleCells().map((u) => /* @__PURE__ */ i.jsx(ar, { children: lr(u.column.columnDef.cell, u.getContext()) }, u.id))
|
|
8710
8710
|
},
|
|
8711
8711
|
o.id
|
|
8712
8712
|
)) : /* @__PURE__ */ i.jsx(Xn, { children: /* @__PURE__ */ i.jsx(ar, { colSpan: s.length, className: "h-24 text-center", children: "No results." }) }) })
|
|
@@ -8737,7 +8737,7 @@ function ys({
|
|
|
8737
8737
|
customCfg: r.customCfg,
|
|
8738
8738
|
preferences: r.preferences
|
|
8739
8739
|
})), /* @__PURE__ */ i.jsxs(
|
|
8740
|
-
|
|
8740
|
+
cl,
|
|
8741
8741
|
{
|
|
8742
8742
|
role: "editor-visual-card",
|
|
8743
8743
|
className: xe("relative flex h-full flex-col rounded-none", e),
|
|
@@ -8777,7 +8777,7 @@ function ys({
|
|
|
8777
8777
|
);
|
|
8778
8778
|
}
|
|
8779
8779
|
function ih() {
|
|
8780
|
-
const [e, n] = J(!1), [t, r] = J(""), [s, l] = J(""), [a, o] = J(""),
|
|
8780
|
+
const [e, n] = J(!1), [t, r] = J(""), [s, l] = J(""), [a, o] = J(""), u = C((w) => w.card), c = C(
|
|
8781
8781
|
(w) => w.card.customCfg
|
|
8782
8782
|
), h = C(
|
|
8783
8783
|
(w) => w.actions.setCardCustomCfg
|
|
@@ -8797,15 +8797,15 @@ function ih() {
|
|
|
8797
8797
|
return JSON.stringify(b, null, 1);
|
|
8798
8798
|
}
|
|
8799
8799
|
function f() {
|
|
8800
|
-
if (!
|
|
8800
|
+
if (!u.data || u.data.length === 0)
|
|
8801
8801
|
return;
|
|
8802
8802
|
const w = ji({
|
|
8803
|
-
data:
|
|
8804
|
-
cardType:
|
|
8805
|
-
cfg:
|
|
8806
|
-
preferences:
|
|
8803
|
+
data: u.data,
|
|
8804
|
+
cardType: u.type,
|
|
8805
|
+
cfg: u.cfg,
|
|
8806
|
+
preferences: u.preferences
|
|
8807
8807
|
});
|
|
8808
|
-
w && (r(JSON.stringify(w, null, 1)),
|
|
8808
|
+
w && (r(JSON.stringify(w, null, 1)), c && l(JSON.stringify(c, null, 1)));
|
|
8809
8809
|
}
|
|
8810
8810
|
function p() {
|
|
8811
8811
|
if (s)
|
|
@@ -8821,8 +8821,8 @@ function ih() {
|
|
|
8821
8821
|
}
|
|
8822
8822
|
function k() {
|
|
8823
8823
|
let w;
|
|
8824
|
-
if (
|
|
8825
|
-
const b = dr.cloneDeep(
|
|
8824
|
+
if (c) {
|
|
8825
|
+
const b = dr.cloneDeep(u.cfg), E = dr.merge(b, c);
|
|
8826
8826
|
return w = d(E), w;
|
|
8827
8827
|
}
|
|
8828
8828
|
return t ? (w = d(JSON.parse(t)), w) : "";
|
|
@@ -8832,7 +8832,7 @@ function ih() {
|
|
|
8832
8832
|
V,
|
|
8833
8833
|
{
|
|
8834
8834
|
onClick: f,
|
|
8835
|
-
className: ` ${
|
|
8835
|
+
className: ` ${c && "border-foreground/50 dark:border-foreground/70"}`,
|
|
8836
8836
|
size: "sm",
|
|
8837
8837
|
variant: "outline",
|
|
8838
8838
|
children: /* @__PURE__ */ i.jsx(yl, { className: "h-4 w-4" })
|
|
@@ -8851,7 +8851,7 @@ function ih() {
|
|
|
8851
8851
|
Kl,
|
|
8852
8852
|
{
|
|
8853
8853
|
onClick: () => {
|
|
8854
|
-
navigator.clipboard.writeText(
|
|
8854
|
+
navigator.clipboard.writeText(u.id);
|
|
8855
8855
|
},
|
|
8856
8856
|
className: "size-3 cursor-pointer text-muted-foreground/70 transition-colors hover:text-muted-foreground"
|
|
8857
8857
|
}
|
|
@@ -8876,14 +8876,14 @@ function ih() {
|
|
|
8876
8876
|
/* @__PURE__ */ i.jsx(ys, { className: "w-1/2 rounded shadow-none" }),
|
|
8877
8877
|
/* @__PURE__ */ i.jsxs(bl, { defaultValue: "custom-config", className: "flex w-1/2 flex-col", children: [
|
|
8878
8878
|
/* @__PURE__ */ i.jsxs(kl, { className: "justify-start rounded-sm rounded-b-none border border-b-0", children: [
|
|
8879
|
-
/* @__PURE__ */ i.jsxs(
|
|
8880
|
-
|
|
8881
|
-
|
|
8879
|
+
/* @__PURE__ */ i.jsxs(ur, { value: "custom-config", children: [
|
|
8880
|
+
c && /* @__PURE__ */ i.jsx(jl, { className: "mr-1 h-5 w-5 text-green-600" }),
|
|
8881
|
+
c ? "Custom Config" : "Default Config"
|
|
8882
8882
|
] }),
|
|
8883
|
-
/* @__PURE__ */ i.jsx(
|
|
8883
|
+
/* @__PURE__ */ i.jsx(ur, { className: "", value: "output", children: "Output" })
|
|
8884
8884
|
] }),
|
|
8885
8885
|
/* @__PURE__ */ i.jsx(
|
|
8886
|
-
|
|
8886
|
+
cr,
|
|
8887
8887
|
{
|
|
8888
8888
|
className: "bg-red-x mt-0 grow rounded-b border border-t-0 p-2",
|
|
8889
8889
|
value: "output",
|
|
@@ -8898,7 +8898,7 @@ function ih() {
|
|
|
8898
8898
|
}
|
|
8899
8899
|
),
|
|
8900
8900
|
/* @__PURE__ */ i.jsx(
|
|
8901
|
-
|
|
8901
|
+
cr,
|
|
8902
8902
|
{
|
|
8903
8903
|
className: "mt-0 grow rounded-b border border-t-0",
|
|
8904
8904
|
value: "custom-config",
|
|
@@ -8933,7 +8933,7 @@ function ih() {
|
|
|
8933
8933
|
/* @__PURE__ */ i.jsx(
|
|
8934
8934
|
V,
|
|
8935
8935
|
{
|
|
8936
|
-
disabled: !
|
|
8936
|
+
disabled: !c,
|
|
8937
8937
|
onClick: y,
|
|
8938
8938
|
variant: "outline",
|
|
8939
8939
|
children: "Reset"
|
|
@@ -9133,7 +9133,7 @@ function si() {
|
|
|
9133
9133
|
/* @__PURE__ */ i.jsx(ih, {}),
|
|
9134
9134
|
/* @__PURE__ */ i.jsx(ah, {})
|
|
9135
9135
|
] }),
|
|
9136
|
-
/* @__PURE__ */ i.jsx(
|
|
9136
|
+
/* @__PURE__ */ i.jsx(uh, {})
|
|
9137
9137
|
] }),
|
|
9138
9138
|
t ? e.type === "kpi" ? /* @__PURE__ */ i.jsx("div", { className: "flex grow items-center justify-center", children: /* @__PURE__ */ i.jsx("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ i.jsx(wl, { isLoading: r, card: e }) }) }) : /* @__PURE__ */ i.jsx(ys, { className: "grow border-none shadow-none" }) : /* @__PURE__ */ i.jsxs("div", { className: "flex min-h-0 w-full flex-1 grow basis-0 px-6", children: [
|
|
9139
9139
|
l && /* @__PURE__ */ i.jsx(oh, {}),
|
|
@@ -9159,7 +9159,7 @@ function oh() {
|
|
|
9159
9159
|
/* @__PURE__ */ i.jsx(wi, { className: "mb-2" })
|
|
9160
9160
|
] });
|
|
9161
9161
|
}
|
|
9162
|
-
function
|
|
9162
|
+
function uh() {
|
|
9163
9163
|
const e = C((t) => t.isShowingVisual), n = C(
|
|
9164
9164
|
(t) => t.actions.setIsShowingVisual
|
|
9165
9165
|
);
|
|
@@ -9221,7 +9221,7 @@ function rn() {
|
|
|
9221
9221
|
return k[h] = !1, k;
|
|
9222
9222
|
}));
|
|
9223
9223
|
}
|
|
9224
|
-
function
|
|
9224
|
+
function u(h, d) {
|
|
9225
9225
|
var p;
|
|
9226
9226
|
const f = (p = t == null ? void 0 : t.onClickFilter) == null ? void 0 : p.map((y) => y.columnIndex === h ? {
|
|
9227
9227
|
...y,
|
|
@@ -9232,14 +9232,14 @@ function rn() {
|
|
|
9232
9232
|
onClickFilter: f
|
|
9233
9233
|
});
|
|
9234
9234
|
}
|
|
9235
|
-
function
|
|
9235
|
+
function c(h) {
|
|
9236
9236
|
var d, f, p, y;
|
|
9237
9237
|
if (e != null && e[h] || (f = (d = t == null ? void 0 : t.onClickFilter) == null ? void 0 : d.find((k) => k.columnIndex === h)) != null && f.expression)
|
|
9238
9238
|
return /* @__PURE__ */ i.jsx(
|
|
9239
9239
|
Ae,
|
|
9240
9240
|
{
|
|
9241
9241
|
value: (y = (p = t == null ? void 0 : t.onClickFilter) == null ? void 0 : p.find((k) => k.columnIndex === h)) == null ? void 0 : y.expression,
|
|
9242
|
-
onChange: (k) =>
|
|
9242
|
+
onChange: (k) => u(h, k),
|
|
9243
9243
|
type: "text",
|
|
9244
9244
|
className: " h-9 w-full focus-visible:ring-0 focus-visible:ring-ring focus-visible:ring-offset-0 font-mono text-xs",
|
|
9245
9245
|
placeholder: "Expression"
|
|
@@ -9285,7 +9285,7 @@ function rn() {
|
|
|
9285
9285
|
}
|
|
9286
9286
|
) })
|
|
9287
9287
|
] }),
|
|
9288
|
-
|
|
9288
|
+
c(d)
|
|
9289
9289
|
] })
|
|
9290
9290
|
},
|
|
9291
9291
|
h
|
|
@@ -9302,23 +9302,23 @@ function er() {
|
|
|
9302
9302
|
(l = n == null ? void 0 : n.options) != null && l.indexAxis;
|
|
9303
9303
|
function s(o) {
|
|
9304
9304
|
var h, d, f, p, y, k;
|
|
9305
|
-
let
|
|
9306
|
-
(h = e == null ? void 0 : e.chartOptions) != null && h.scales && (
|
|
9305
|
+
let u = {};
|
|
9306
|
+
(h = e == null ? void 0 : e.chartOptions) != null && h.scales && (u = {
|
|
9307
9307
|
x: (f = (d = e == null ? void 0 : e.chartOptions) == null ? void 0 : d.scales) == null ? void 0 : f.y,
|
|
9308
9308
|
y: (y = (p = e == null ? void 0 : e.chartOptions) == null ? void 0 : p.scales) == null ? void 0 : y.x
|
|
9309
9309
|
});
|
|
9310
|
-
const
|
|
9310
|
+
const c = {
|
|
9311
9311
|
...e,
|
|
9312
9312
|
chartOptions: {
|
|
9313
9313
|
...e == null ? void 0 : e.chartOptions,
|
|
9314
9314
|
scales: {
|
|
9315
9315
|
...(k = e == null ? void 0 : e.chartOptions) == null ? void 0 : k.scales,
|
|
9316
|
-
...
|
|
9316
|
+
...u
|
|
9317
9317
|
},
|
|
9318
9318
|
indexAxis: o
|
|
9319
9319
|
}
|
|
9320
9320
|
};
|
|
9321
|
-
r(
|
|
9321
|
+
r(c);
|
|
9322
9322
|
}
|
|
9323
9323
|
return /* @__PURE__ */ i.jsxs(
|
|
9324
9324
|
Ci,
|
|
@@ -9340,7 +9340,7 @@ function er() {
|
|
|
9340
9340
|
}
|
|
9341
9341
|
);
|
|
9342
9342
|
}
|
|
9343
|
-
const
|
|
9343
|
+
const ut = "focus-visible:ring-0 focus-visible:ring-ring focus-visible:ring-offset-0";
|
|
9344
9344
|
function vs(e) {
|
|
9345
9345
|
var t, r;
|
|
9346
9346
|
return (t = e == null ? void 0 : e.chartOptions) != null && t.indexAxis ? ((r = e == null ? void 0 : e.chartOptions) == null ? void 0 : r.indexAxis) === "x" ? "y" : "x" : "y";
|
|
@@ -9350,7 +9350,7 @@ function li(e) {
|
|
|
9350
9350
|
const n = vs(e);
|
|
9351
9351
|
return ((s = (r = (t = e == null ? void 0 : e.chartOptions) == null ? void 0 : t.scales) == null ? void 0 : r[n]) == null ? void 0 : s.type) || "linear";
|
|
9352
9352
|
}
|
|
9353
|
-
function
|
|
9353
|
+
function ch() {
|
|
9354
9354
|
var E, S, M, F, j, R;
|
|
9355
9355
|
const [e, n] = J(!1), t = C((A) => {
|
|
9356
9356
|
var I;
|
|
@@ -9359,16 +9359,16 @@ function uh() {
|
|
|
9359
9359
|
li(t)
|
|
9360
9360
|
), [a, o] = J(
|
|
9361
9361
|
((M = (S = (E = t == null ? void 0 : t.chartOptions) == null ? void 0 : E.scales) == null ? void 0 : S[r]) == null ? void 0 : M.min) || ""
|
|
9362
|
-
), [
|
|
9362
|
+
), [u, c] = J(
|
|
9363
9363
|
((R = (j = (F = t == null ? void 0 : t.chartOptions) == null ? void 0 : F.scales) == null ? void 0 : j[r]) == null ? void 0 : R.max) || ""
|
|
9364
|
-
), [h, d] = J(a ||
|
|
9364
|
+
), [h, d] = J(a || u ? "custom" : "auto"), [f, p] = J(""), y = C(
|
|
9365
9365
|
(A) => A.actions.setCardPreferences
|
|
9366
9366
|
);
|
|
9367
9367
|
me(() => {
|
|
9368
9368
|
var A, I, U, T, z, W, K, _, $, Z;
|
|
9369
9369
|
l(li(t)), o(
|
|
9370
9370
|
((U = (I = (A = t == null ? void 0 : t.chartOptions) == null ? void 0 : A.scales) == null ? void 0 : I[r]) == null ? void 0 : U.min) === 0 ? 0 : ""
|
|
9371
|
-
),
|
|
9371
|
+
), c(((W = (z = (T = t == null ? void 0 : t.chartOptions) == null ? void 0 : T.scales) == null ? void 0 : z[r]) == null ? void 0 : W.max) || ""), p(
|
|
9372
9372
|
((Z = ($ = (_ = (K = t == null ? void 0 : t.chartOptions) == null ? void 0 : K.scales) == null ? void 0 : _[r]) == null ? void 0 : $.ticks) == null ? void 0 : Z.stepSize) || ""
|
|
9373
9373
|
);
|
|
9374
9374
|
}, [e, t, r]);
|
|
@@ -9385,16 +9385,16 @@ function uh() {
|
|
|
9385
9385
|
id: "min",
|
|
9386
9386
|
value: a,
|
|
9387
9387
|
onChange: (A) => o((I) => k(I, A.target.value)),
|
|
9388
|
-
className: `col-span-1 h-8 w-full ${
|
|
9388
|
+
className: `col-span-1 h-8 w-full ${ut}`
|
|
9389
9389
|
}
|
|
9390
9390
|
),
|
|
9391
9391
|
/* @__PURE__ */ i.jsx(
|
|
9392
9392
|
Ae,
|
|
9393
9393
|
{
|
|
9394
|
-
value:
|
|
9395
|
-
onChange: (A) =>
|
|
9394
|
+
value: u,
|
|
9395
|
+
onChange: (A) => c((I) => k(I, A.target.value)),
|
|
9396
9396
|
id: "max",
|
|
9397
|
-
className: `col-span-1 h-8 w-full ${
|
|
9397
|
+
className: `col-span-1 h-8 w-full ${ut}`
|
|
9398
9398
|
}
|
|
9399
9399
|
)
|
|
9400
9400
|
] }),
|
|
@@ -9406,7 +9406,7 @@ function uh() {
|
|
|
9406
9406
|
value: f,
|
|
9407
9407
|
onChange: (A) => p((I) => k(I, A.target.value)),
|
|
9408
9408
|
id: "step-size",
|
|
9409
|
-
className: `col-span-1 h-8 w-full ${
|
|
9409
|
+
className: `col-span-1 h-8 w-full ${ut}`
|
|
9410
9410
|
}
|
|
9411
9411
|
)
|
|
9412
9412
|
] })
|
|
@@ -9417,7 +9417,7 @@ function uh() {
|
|
|
9417
9417
|
let A = {};
|
|
9418
9418
|
h === "custom" && (A = {
|
|
9419
9419
|
min: a,
|
|
9420
|
-
max:
|
|
9420
|
+
max: u,
|
|
9421
9421
|
ticks: {
|
|
9422
9422
|
stepSize: f
|
|
9423
9423
|
}
|
|
@@ -9504,23 +9504,23 @@ function uh() {
|
|
|
9504
9504
|
}
|
|
9505
9505
|
function dh({ idx: e }) {
|
|
9506
9506
|
var o;
|
|
9507
|
-
const n = C((
|
|
9508
|
-
var
|
|
9509
|
-
return (
|
|
9507
|
+
const n = C((u) => {
|
|
9508
|
+
var c;
|
|
9509
|
+
return (c = u.card) == null ? void 0 : c.preferences;
|
|
9510
9510
|
}), t = C(
|
|
9511
|
-
(
|
|
9512
|
-
var
|
|
9513
|
-
return (
|
|
9511
|
+
(u) => {
|
|
9512
|
+
var c;
|
|
9513
|
+
return (c = u.card.preferences) == null ? void 0 : c.datasetOptions;
|
|
9514
9514
|
}
|
|
9515
9515
|
), r = C(
|
|
9516
|
-
(
|
|
9517
|
-
), s = (o = n == null ? void 0 : n.chartOptions) == null ? void 0 : o.indexAxis, l = t == null ? void 0 : t.find((
|
|
9518
|
-
function a(
|
|
9519
|
-
(
|
|
9516
|
+
(u) => u.actions.setCardPreferences
|
|
9517
|
+
), s = (o = n == null ? void 0 : n.chartOptions) == null ? void 0 : o.indexAxis, l = t == null ? void 0 : t.find((u) => u.idx === e);
|
|
9518
|
+
function a(u, c) {
|
|
9519
|
+
(u === "end" || u === "start") && El(zl());
|
|
9520
9520
|
const h = {
|
|
9521
|
-
display:
|
|
9522
|
-
align:
|
|
9523
|
-
anchor:
|
|
9521
|
+
display: u !== "none",
|
|
9522
|
+
align: u,
|
|
9523
|
+
anchor: u,
|
|
9524
9524
|
clamp: !0
|
|
9525
9525
|
};
|
|
9526
9526
|
if (!l)
|
|
@@ -9529,7 +9529,7 @@ function dh({ idx: e }) {
|
|
|
9529
9529
|
datasetOptions: [
|
|
9530
9530
|
...t || [],
|
|
9531
9531
|
{
|
|
9532
|
-
idx:
|
|
9532
|
+
idx: c,
|
|
9533
9533
|
datalabels: h
|
|
9534
9534
|
}
|
|
9535
9535
|
]
|
|
@@ -9538,7 +9538,7 @@ function dh({ idx: e }) {
|
|
|
9538
9538
|
const d = { ...l };
|
|
9539
9539
|
d.datalabels = h;
|
|
9540
9540
|
const f = t == null ? void 0 : t.map(
|
|
9541
|
-
(p) => p.idx ===
|
|
9541
|
+
(p) => p.idx === c ? d : p
|
|
9542
9542
|
);
|
|
9543
9543
|
r({
|
|
9544
9544
|
...n,
|
|
@@ -9614,25 +9614,25 @@ function dh({ idx: e }) {
|
|
|
9614
9614
|
] });
|
|
9615
9615
|
}
|
|
9616
9616
|
function Ns() {
|
|
9617
|
-
const e = C((
|
|
9618
|
-
(
|
|
9619
|
-
var
|
|
9620
|
-
return (d = (h = (
|
|
9617
|
+
const e = C((u) => u.card), n = C(
|
|
9618
|
+
(u) => {
|
|
9619
|
+
var c, h, d;
|
|
9620
|
+
return (d = (h = (c = u == null ? void 0 : u.card) == null ? void 0 : c.preferences) == null ? void 0 : h.chartOptions) == null ? void 0 : d.indexAxis;
|
|
9621
9621
|
}
|
|
9622
9622
|
), t = n === "y" ? "Y axis" : "X axis", r = n === "y" ? "X axis" : "Y axis", {
|
|
9623
9623
|
keys: s,
|
|
9624
9624
|
metricKeys: l,
|
|
9625
9625
|
dimensionKeys: a
|
|
9626
|
-
} =
|
|
9626
|
+
} = ct(e.data || []);
|
|
9627
9627
|
let o = l;
|
|
9628
9628
|
if (e.type === "stackedBar") {
|
|
9629
|
-
const
|
|
9629
|
+
const u = Ol({
|
|
9630
9630
|
dataArray: e.data || [],
|
|
9631
9631
|
groupKey: a[0],
|
|
9632
9632
|
pivotKey: a[1],
|
|
9633
9633
|
valueKey: o[0]
|
|
9634
|
-
}), { metricKeys:
|
|
9635
|
-
o =
|
|
9634
|
+
}), { metricKeys: c } = ct(u);
|
|
9635
|
+
o = c;
|
|
9636
9636
|
}
|
|
9637
9637
|
return s.length === 0 ? null : /* @__PURE__ */ i.jsxs("div", { className: "space-y-4", children: [
|
|
9638
9638
|
/* @__PURE__ */ i.jsxs("div", { className: "space-y-2", children: [
|
|
@@ -9642,20 +9642,20 @@ function Ns() {
|
|
|
9642
9642
|
/* @__PURE__ */ i.jsxs("div", { className: "space-y-2", children: [
|
|
9643
9643
|
/* @__PURE__ */ i.jsxs("div", { className: "flex items-center justify-between gap-5", children: [
|
|
9644
9644
|
/* @__PURE__ */ i.jsx(de, { children: r }),
|
|
9645
|
-
/* @__PURE__ */ i.jsx(
|
|
9645
|
+
/* @__PURE__ */ i.jsx(ch, {})
|
|
9646
9646
|
] }),
|
|
9647
|
-
/* @__PURE__ */ i.jsx("div", { className: "my-1 space-y-1", children: o.map((
|
|
9647
|
+
/* @__PURE__ */ i.jsx("div", { className: "my-1 space-y-1", children: o.map((u, c) => /* @__PURE__ */ i.jsx(hh, { col: u, idx: c }, u)) })
|
|
9648
9648
|
] })
|
|
9649
9649
|
] });
|
|
9650
9650
|
}
|
|
9651
9651
|
function hh({ col: e, idx: n }) {
|
|
9652
9652
|
const t = C((o) => {
|
|
9653
|
-
var
|
|
9654
|
-
return (
|
|
9653
|
+
var u;
|
|
9654
|
+
return (u = o.card) == null ? void 0 : u.preferences;
|
|
9655
9655
|
}), r = C(
|
|
9656
9656
|
(o) => {
|
|
9657
|
-
var
|
|
9658
|
-
return (
|
|
9657
|
+
var u;
|
|
9658
|
+
return (u = o.card.preferences) == null ? void 0 : u.datasetOptions;
|
|
9659
9659
|
}
|
|
9660
9660
|
), s = r == null ? void 0 : r.find((o) => o.idx === n), { setCardPreferences: l } = C((o) => o.actions);
|
|
9661
9661
|
function a(o) {
|
|
@@ -9672,14 +9672,14 @@ function hh({ col: e, idx: n }) {
|
|
|
9672
9672
|
]
|
|
9673
9673
|
});
|
|
9674
9674
|
else {
|
|
9675
|
-
const
|
|
9676
|
-
|
|
9677
|
-
const
|
|
9678
|
-
(h) => h.idx === n ?
|
|
9675
|
+
const u = { ...s };
|
|
9676
|
+
u.type = o === "area" ? "line" : o, u.fill = o === "area" ? "origin" : "";
|
|
9677
|
+
const c = r == null ? void 0 : r.map(
|
|
9678
|
+
(h) => h.idx === n ? u : h
|
|
9679
9679
|
);
|
|
9680
9680
|
l({
|
|
9681
9681
|
...t,
|
|
9682
|
-
datasetOptions:
|
|
9682
|
+
datasetOptions: c
|
|
9683
9683
|
});
|
|
9684
9684
|
}
|
|
9685
9685
|
}
|
|
@@ -9766,7 +9766,7 @@ function nr() {
|
|
|
9766
9766
|
(a) => a.card.cfg
|
|
9767
9767
|
), n = C((a) => a.actions.setCardCfg);
|
|
9768
9768
|
function t(a) {
|
|
9769
|
-
var
|
|
9769
|
+
var c;
|
|
9770
9770
|
const o = {
|
|
9771
9771
|
datalabels: {
|
|
9772
9772
|
display: a !== "none",
|
|
@@ -9774,17 +9774,17 @@ function nr() {
|
|
|
9774
9774
|
anchor: a,
|
|
9775
9775
|
clamp: !0
|
|
9776
9776
|
}
|
|
9777
|
-
},
|
|
9777
|
+
}, u = {
|
|
9778
9778
|
...e,
|
|
9779
9779
|
options: {
|
|
9780
9780
|
...e == null ? void 0 : e.options,
|
|
9781
9781
|
plugins: {
|
|
9782
|
-
...(
|
|
9782
|
+
...(c = e == null ? void 0 : e.options) == null ? void 0 : c.plugins,
|
|
9783
9783
|
...o
|
|
9784
9784
|
}
|
|
9785
9785
|
}
|
|
9786
9786
|
};
|
|
9787
|
-
n(
|
|
9787
|
+
n(u), console.log(a);
|
|
9788
9788
|
}
|
|
9789
9789
|
return /* @__PURE__ */ i.jsxs("div", { className: "space-y-2", children: [
|
|
9790
9790
|
/* @__PURE__ */ i.jsx("label", { className: "font-medium", children: "Data Labels" }),
|
|
@@ -9991,41 +9991,41 @@ function yh(e) {
|
|
|
9991
9991
|
] }) });
|
|
9992
9992
|
}
|
|
9993
9993
|
function bh() {
|
|
9994
|
-
var a, o,
|
|
9995
|
-
const e = C((
|
|
9996
|
-
(
|
|
9994
|
+
var a, o, u;
|
|
9995
|
+
const e = C((c) => c.card.preferences), n = C(
|
|
9996
|
+
(c) => c.actions.setCardPreferences
|
|
9997
9997
|
), t = C(
|
|
9998
|
-
(
|
|
9998
|
+
(c) => c.actions.setNumberFormat
|
|
9999
9999
|
), r = C(
|
|
10000
|
-
(
|
|
10000
|
+
(c) => {
|
|
10001
10001
|
var h, d;
|
|
10002
|
-
return (d = (h =
|
|
10002
|
+
return (d = (h = c.card.preferences) == null ? void 0 : h.formatNumber) == null ? void 0 : d.format;
|
|
10003
10003
|
}
|
|
10004
10004
|
), s = C(
|
|
10005
|
-
(
|
|
10005
|
+
(c) => {
|
|
10006
10006
|
var h, d;
|
|
10007
|
-
return (d = (h =
|
|
10007
|
+
return (d = (h = c.card.preferences) == null ? void 0 : h.formatNumber) == null ? void 0 : d.locale;
|
|
10008
10008
|
}
|
|
10009
10009
|
), l = C(
|
|
10010
|
-
(
|
|
10010
|
+
(c) => {
|
|
10011
10011
|
var h, d;
|
|
10012
|
-
return (d = (h =
|
|
10012
|
+
return (d = (h = c.card.preferences) == null ? void 0 : h.formatNumber) == null ? void 0 : d.currency;
|
|
10013
10013
|
}
|
|
10014
10014
|
);
|
|
10015
10015
|
return C(
|
|
10016
|
-
(
|
|
10016
|
+
(c) => c.actions.setFilterOnClickField
|
|
10017
10017
|
), /* @__PURE__ */ i.jsxs("div", { children: [
|
|
10018
10018
|
/* @__PURE__ */ i.jsxs("div", { className: "mb-3 flex items-center gap-2", children: [
|
|
10019
10019
|
/* @__PURE__ */ i.jsx(
|
|
10020
10020
|
Pn,
|
|
10021
10021
|
{
|
|
10022
10022
|
checked: !!((a = e == null ? void 0 : e.formatNumber) != null && a.enabled),
|
|
10023
|
-
onCheckedChange: (
|
|
10023
|
+
onCheckedChange: (c) => {
|
|
10024
10024
|
n({
|
|
10025
10025
|
...e,
|
|
10026
10026
|
formatNumber: {
|
|
10027
10027
|
...e == null ? void 0 : e.formatNumber,
|
|
10028
|
-
enabled:
|
|
10028
|
+
enabled: c
|
|
10029
10029
|
}
|
|
10030
10030
|
});
|
|
10031
10031
|
}
|
|
@@ -10043,11 +10043,11 @@ function bh() {
|
|
|
10043
10043
|
value: l || "",
|
|
10044
10044
|
className: "h-7 w-20 font-mono text-xs focus-visible:ring-0 focus-visible:ring-ring focus-visible:ring-offset-0",
|
|
10045
10045
|
placeholder: "USD",
|
|
10046
|
-
onChange: (
|
|
10046
|
+
onChange: (c) => {
|
|
10047
10047
|
var h, d, f;
|
|
10048
10048
|
return t(
|
|
10049
10049
|
((h = e == null ? void 0 : e.formatNumber) == null ? void 0 : h.format) || "",
|
|
10050
|
-
|
|
10050
|
+
c.target.value,
|
|
10051
10051
|
((d = e == null ? void 0 : e.formatNumber) == null ? void 0 : d.locale) || "",
|
|
10052
10052
|
((f = e == null ? void 0 : e.formatNumber) == null ? void 0 : f.suffix) || ""
|
|
10053
10053
|
);
|
|
@@ -10060,12 +10060,12 @@ function bh() {
|
|
|
10060
10060
|
value: s || "",
|
|
10061
10061
|
className: "h-7 w-20 font-mono text-xs focus-visible:ring-0 focus-visible:ring-ring focus-visible:ring-offset-0",
|
|
10062
10062
|
placeholder: "en-US",
|
|
10063
|
-
onChange: (
|
|
10063
|
+
onChange: (c) => {
|
|
10064
10064
|
var h, d, f;
|
|
10065
10065
|
return t(
|
|
10066
10066
|
((h = e == null ? void 0 : e.formatNumber) == null ? void 0 : h.format) || "",
|
|
10067
10067
|
((d = e == null ? void 0 : e.formatNumber) == null ? void 0 : d.currency) || "",
|
|
10068
|
-
|
|
10068
|
+
c.target.value,
|
|
10069
10069
|
((f = e == null ? void 0 : e.formatNumber) == null ? void 0 : f.suffix) || ""
|
|
10070
10070
|
);
|
|
10071
10071
|
}
|
|
@@ -10096,10 +10096,10 @@ function bh() {
|
|
|
10096
10096
|
value: r || "",
|
|
10097
10097
|
className: "h-7 font-mono text-xs focus-visible:ring-0 focus-visible:ring-ring focus-visible:ring-offset-0",
|
|
10098
10098
|
placeholder: "###,###.##",
|
|
10099
|
-
onChange: (
|
|
10099
|
+
onChange: (c) => {
|
|
10100
10100
|
var h, d, f;
|
|
10101
10101
|
return t(
|
|
10102
|
-
|
|
10102
|
+
c.target.value,
|
|
10103
10103
|
((h = e == null ? void 0 : e.formatNumber) == null ? void 0 : h.currency) || "",
|
|
10104
10104
|
((d = e == null ? void 0 : e.formatNumber) == null ? void 0 : d.locale) || "",
|
|
10105
10105
|
((f = e == null ? void 0 : e.formatNumber) == null ? void 0 : f.suffix) || ""
|
|
@@ -10113,16 +10113,16 @@ function bh() {
|
|
|
10113
10113
|
/* @__PURE__ */ i.jsx(
|
|
10114
10114
|
Ae,
|
|
10115
10115
|
{
|
|
10116
|
-
value: ((
|
|
10116
|
+
value: ((u = e == null ? void 0 : e.formatNumber) == null ? void 0 : u.suffix) || "",
|
|
10117
10117
|
className: "h-7 font-mono text-xs focus-visible:ring-0 focus-visible:ring-ring focus-visible:ring-offset-0",
|
|
10118
10118
|
placeholder: "K, M, B",
|
|
10119
|
-
onChange: (
|
|
10119
|
+
onChange: (c) => {
|
|
10120
10120
|
var h, d, f;
|
|
10121
10121
|
return t(
|
|
10122
10122
|
((h = e == null ? void 0 : e.formatNumber) == null ? void 0 : h.format) || "",
|
|
10123
10123
|
((d = e == null ? void 0 : e.formatNumber) == null ? void 0 : d.currency) || "",
|
|
10124
10124
|
((f = e == null ? void 0 : e.formatNumber) == null ? void 0 : f.locale) || "",
|
|
10125
|
-
|
|
10125
|
+
c.target.value
|
|
10126
10126
|
);
|
|
10127
10127
|
}
|
|
10128
10128
|
}
|
|
@@ -10357,7 +10357,7 @@ function zh({
|
|
|
10357
10357
|
columns: e,
|
|
10358
10358
|
tableName: n
|
|
10359
10359
|
}) {
|
|
10360
|
-
const t = C((d) => d.selectedConnectionId), r = C((d) => d.selectedDatabaseName), s = C((d) => d.selectedSchemaName), l = C((d) => d.selectedTableName), a = P((d) => d.dashboard.filters) || [], o = P((d) => d.actions.addFilter),
|
|
10360
|
+
const t = C((d) => d.selectedConnectionId), r = C((d) => d.selectedDatabaseName), s = C((d) => d.selectedSchemaName), l = C((d) => d.selectedTableName), a = P((d) => d.dashboard.filters) || [], o = P((d) => d.actions.addFilter), u = P((d) => d.actions.removeFilter), c = P(
|
|
10361
10361
|
(d) => d.actions.removeFilterValue
|
|
10362
10362
|
);
|
|
10363
10363
|
function h(d) {
|
|
@@ -10375,7 +10375,7 @@ function zh({
|
|
|
10375
10375
|
(S) => S.column === b && S.table === k && (S.database === p || S.database === r)
|
|
10376
10376
|
);
|
|
10377
10377
|
if (E)
|
|
10378
|
-
|
|
10378
|
+
c(E.id), u(E.id);
|
|
10379
10379
|
else {
|
|
10380
10380
|
if (n === "api" && t) {
|
|
10381
10381
|
o({
|
|
@@ -10454,7 +10454,7 @@ function Oh() {
|
|
|
10454
10454
|
onClick: () => e(!1),
|
|
10455
10455
|
className: "h-7 w-7 p-0",
|
|
10456
10456
|
variant: "ghost",
|
|
10457
|
-
children: /* @__PURE__ */ i.jsx(
|
|
10457
|
+
children: /* @__PURE__ */ i.jsx(un, {})
|
|
10458
10458
|
}
|
|
10459
10459
|
)
|
|
10460
10460
|
] }),
|