juneau 0.7.3 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1066 -1051
- package/dist/components/AiChatHeader/AiChatHeader.d.ts +6 -1
- package/dist/components/AiChatHeader/AiChatHeader.d.ts.map +1 -1
- package/dist/components/AiSidebar/AiSidebar.d.ts +6 -1
- package/dist/components/AiSidebar/AiSidebar.d.ts.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +354 -344
- package/dist/index.js.map +1 -1
- package/package.json +86 -86
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useState as Me, useRef as Ue, useEffect as St, useCallback as de, useMemo as
|
|
1
|
+
import { useState as Me, useRef as Ue, useEffect as St, useCallback as de, useMemo as Ar, useContext as sn, createContext as Tr } from "react";
|
|
2
2
|
import { jsx as b, jsxs as Y, Fragment as un } from "react/jsx-runtime";
|
|
3
3
|
function Ki(e) {
|
|
4
4
|
return e.map((n) => n.role !== "assistant" || n.parts.some((t) => t.type === "text") ? n : { ...n, parts: [{ type: "text", text: "" }] });
|
|
@@ -397,11 +397,11 @@ function ml({
|
|
|
397
397
|
historyLimit: o,
|
|
398
398
|
onMessagesChange: l
|
|
399
399
|
}) {
|
|
400
|
-
const [a, s] = Me(i ?? []), [u, f] = Me(""), [c, h] = Me(!1), [p, g] = Me(!1), [C, S] = Me(null), y = Ue(null),
|
|
400
|
+
const [a, s] = Me(i ?? []), [u, f] = Me(""), [c, h] = Me(!1), [p, g] = Me(!1), [C, S] = Me(null), y = Ue(null), I = Ue(!1), _ = Ue(l);
|
|
401
401
|
St(() => {
|
|
402
402
|
_.current = l;
|
|
403
403
|
}), St(() => {
|
|
404
|
-
!
|
|
404
|
+
!I.current || c || (I.current = !1, _.current?.(a));
|
|
405
405
|
}, [a, c]);
|
|
406
406
|
const L = de((v) => {
|
|
407
407
|
s((R) => {
|
|
@@ -477,14 +477,14 @@ function ml({
|
|
|
477
477
|
const m = te instanceof Error ? te.message : "Unknown error occurred";
|
|
478
478
|
S(m), d(), L({ type: "error", message: m });
|
|
479
479
|
} finally {
|
|
480
|
-
|
|
480
|
+
I.current = !0, h(!1), g(!1);
|
|
481
481
|
}
|
|
482
482
|
}, [e, n, o, N, L]), O = de(async () => {
|
|
483
483
|
const v = u.trim();
|
|
484
484
|
!v || c || (f(""), await x(v, a));
|
|
485
|
-
}, [u, c, a, x]),
|
|
485
|
+
}, [u, c, a, x]), H = de(async (v) => {
|
|
486
486
|
!v.trim() || c || await x(v, a);
|
|
487
|
-
}, [c, a, x]),
|
|
487
|
+
}, [c, a, x]), j = de(async (v) => {
|
|
488
488
|
if (c) return;
|
|
489
489
|
S(null), h(!0), g(!0);
|
|
490
490
|
const R = {
|
|
@@ -527,14 +527,14 @@ function ml({
|
|
|
527
527
|
const d = W instanceof Error ? W.message : "Unknown error occurred";
|
|
528
528
|
S(d), L({ type: "error", message: d });
|
|
529
529
|
} finally {
|
|
530
|
-
|
|
530
|
+
I.current = !0, h(!1), g(!1);
|
|
531
531
|
}
|
|
532
532
|
}, [c, e, n, N, L]), k = de(() => {
|
|
533
533
|
y.current?.abort(), h(!1), g(!1);
|
|
534
534
|
}, []), T = de((v) => {
|
|
535
|
-
y.current?.abort(),
|
|
535
|
+
y.current?.abort(), I.current = !0, s(v ?? []), f(""), S(null), h(!1), g(!1);
|
|
536
536
|
}, []), z = de((v, R) => {
|
|
537
|
-
|
|
537
|
+
I.current = !0, s((B) => B.map((Q) => ({
|
|
538
538
|
...Q,
|
|
539
539
|
parts: Q.parts.map(
|
|
540
540
|
(W) => zr(W) && W.proposal.id === v ? { ...W, proposal: { ...W.proposal, resolved: R } } : W
|
|
@@ -545,13 +545,13 @@ function ml({
|
|
|
545
545
|
}, [t, z]), P = de((v) => {
|
|
546
546
|
z(v, "cancelled"), r?.(v);
|
|
547
547
|
}, [r, z]);
|
|
548
|
-
return
|
|
548
|
+
return Ar(() => ({
|
|
549
549
|
messages: a,
|
|
550
550
|
input: u,
|
|
551
551
|
setInput: f,
|
|
552
552
|
sendMessage: O,
|
|
553
|
-
sendMessageWithText:
|
|
554
|
-
sendGreeting:
|
|
553
|
+
sendMessageWithText: H,
|
|
554
|
+
sendGreeting: j,
|
|
555
555
|
stop: k,
|
|
556
556
|
isLoading: c,
|
|
557
557
|
isConnecting: p,
|
|
@@ -563,8 +563,8 @@ function ml({
|
|
|
563
563
|
a,
|
|
564
564
|
u,
|
|
565
565
|
O,
|
|
566
|
-
$,
|
|
567
566
|
H,
|
|
567
|
+
j,
|
|
568
568
|
k,
|
|
569
569
|
c,
|
|
570
570
|
p,
|
|
@@ -685,7 +685,7 @@ function rd({
|
|
|
685
685
|
initialMessages: i,
|
|
686
686
|
historyLimit: o,
|
|
687
687
|
onMessagesChange: l
|
|
688
|
-
}), h =
|
|
688
|
+
}), h = Ar(
|
|
689
689
|
() => ({ ...c, setContext: f }),
|
|
690
690
|
[c, f]
|
|
691
691
|
);
|
|
@@ -847,7 +847,7 @@ function El({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
|
847
847
|
}
|
|
848
848
|
);
|
|
849
849
|
}
|
|
850
|
-
function
|
|
850
|
+
function Il({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
851
851
|
return /* @__PURE__ */ b(
|
|
852
852
|
"svg",
|
|
853
853
|
{
|
|
@@ -863,7 +863,7 @@ function Al({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
|
863
863
|
}
|
|
864
864
|
);
|
|
865
865
|
}
|
|
866
|
-
function
|
|
866
|
+
function Al({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
867
867
|
return /* @__PURE__ */ b(
|
|
868
868
|
"svg",
|
|
869
869
|
{
|
|
@@ -2088,38 +2088,38 @@ function Wl() {
|
|
|
2088
2088
|
throw new TypeError("First argument must be a string");
|
|
2089
2089
|
if (!S) return [];
|
|
2090
2090
|
y = y || {};
|
|
2091
|
-
var
|
|
2091
|
+
var I = 1, _ = 1;
|
|
2092
2092
|
function L(P) {
|
|
2093
2093
|
var v = P.match(n);
|
|
2094
|
-
v && (
|
|
2094
|
+
v && (I += v.length);
|
|
2095
2095
|
var R = P.lastIndexOf(s);
|
|
2096
2096
|
_ = ~R ? P.length - R : _ + P.length;
|
|
2097
2097
|
}
|
|
2098
2098
|
function N() {
|
|
2099
|
-
var P = { line:
|
|
2099
|
+
var P = { line: I, column: _ };
|
|
2100
2100
|
return function(v) {
|
|
2101
|
-
return v.position = new x(P),
|
|
2101
|
+
return v.position = new x(P), j(), v;
|
|
2102
2102
|
};
|
|
2103
2103
|
}
|
|
2104
2104
|
function x(P) {
|
|
2105
|
-
this.start = P, this.end = { line:
|
|
2105
|
+
this.start = P, this.end = { line: I, column: _ }, this.source = y.source;
|
|
2106
2106
|
}
|
|
2107
2107
|
x.prototype.content = S;
|
|
2108
2108
|
function O(P) {
|
|
2109
2109
|
var v = new Error(
|
|
2110
|
-
y.source + ":" +
|
|
2110
|
+
y.source + ":" + I + ":" + _ + ": " + P
|
|
2111
2111
|
);
|
|
2112
|
-
if (v.reason = P, v.filename = y.source, v.line =
|
|
2112
|
+
if (v.reason = P, v.filename = y.source, v.line = I, v.column = _, v.source = S, !y.silent) throw v;
|
|
2113
2113
|
}
|
|
2114
|
-
function
|
|
2114
|
+
function H(P) {
|
|
2115
2115
|
var v = P.exec(S);
|
|
2116
2116
|
if (v) {
|
|
2117
2117
|
var R = v[0];
|
|
2118
2118
|
return L(R), S = S.slice(R.length), v;
|
|
2119
2119
|
}
|
|
2120
2120
|
}
|
|
2121
|
-
function
|
|
2122
|
-
|
|
2121
|
+
function j() {
|
|
2122
|
+
H(t);
|
|
2123
2123
|
}
|
|
2124
2124
|
function k(P) {
|
|
2125
2125
|
var v;
|
|
@@ -2142,15 +2142,15 @@ function Wl() {
|
|
|
2142
2142
|
}
|
|
2143
2143
|
}
|
|
2144
2144
|
function z() {
|
|
2145
|
-
var P = N(), v =
|
|
2145
|
+
var P = N(), v = H(r);
|
|
2146
2146
|
if (v) {
|
|
2147
|
-
if (T(),
|
|
2148
|
-
var R =
|
|
2147
|
+
if (T(), !H(i)) return O("property missing ':'");
|
|
2148
|
+
var R = H(o), B = P({
|
|
2149
2149
|
type: p,
|
|
2150
2150
|
property: C(v[0].replace(e, c)),
|
|
2151
2151
|
value: R ? C(R[0].replace(e, c)) : c
|
|
2152
2152
|
});
|
|
2153
|
-
return
|
|
2153
|
+
return H(l), B;
|
|
2154
2154
|
}
|
|
2155
2155
|
}
|
|
2156
2156
|
function U() {
|
|
@@ -2160,7 +2160,7 @@ function Wl() {
|
|
|
2160
2160
|
v !== !1 && (P.push(v), k(P));
|
|
2161
2161
|
return P;
|
|
2162
2162
|
}
|
|
2163
|
-
return
|
|
2163
|
+
return j(), U();
|
|
2164
2164
|
}
|
|
2165
2165
|
function C(S) {
|
|
2166
2166
|
return S ? S.replace(a, c) : c;
|
|
@@ -2756,10 +2756,10 @@ function D(e) {
|
|
|
2756
2756
|
function J(e) {
|
|
2757
2757
|
return e !== null && (e < 0 || e === 32);
|
|
2758
2758
|
}
|
|
2759
|
-
function
|
|
2759
|
+
function $(e) {
|
|
2760
2760
|
return e === -2 || e === -1 || e === 32;
|
|
2761
2761
|
}
|
|
2762
|
-
const
|
|
2762
|
+
const At = ze(/\p{P}|\p{S}/u), Oe = ze(/\s/);
|
|
2763
2763
|
function ze(e) {
|
|
2764
2764
|
return n;
|
|
2765
2765
|
function n(t) {
|
|
@@ -2790,16 +2790,16 @@ function q(e, n, t, r) {
|
|
|
2790
2790
|
let o = 0;
|
|
2791
2791
|
return l;
|
|
2792
2792
|
function l(s) {
|
|
2793
|
-
return
|
|
2793
|
+
return $(s) ? (e.enter(t), a(s)) : n(s);
|
|
2794
2794
|
}
|
|
2795
2795
|
function a(s) {
|
|
2796
|
-
return
|
|
2796
|
+
return $(s) && o++ < i ? (e.consume(s), a) : (e.exit(t), n(s));
|
|
2797
2797
|
}
|
|
2798
2798
|
}
|
|
2799
|
-
const
|
|
2800
|
-
tokenize:
|
|
2799
|
+
const Io = {
|
|
2800
|
+
tokenize: Ao
|
|
2801
2801
|
};
|
|
2802
|
-
function
|
|
2802
|
+
function Ao(e) {
|
|
2803
2803
|
const n = e.attempt(this.parser.constructs.contentInitial, r, i);
|
|
2804
2804
|
let t;
|
|
2805
2805
|
return n;
|
|
@@ -2846,7 +2846,7 @@ function zo(e) {
|
|
|
2846
2846
|
}
|
|
2847
2847
|
function s(_) {
|
|
2848
2848
|
if (r++, n.containerState._closeFlow) {
|
|
2849
|
-
n.containerState._closeFlow = void 0, i &&
|
|
2849
|
+
n.containerState._closeFlow = void 0, i && I();
|
|
2850
2850
|
const L = n.events.length;
|
|
2851
2851
|
let N = L, x;
|
|
2852
2852
|
for (; N--; )
|
|
@@ -2875,7 +2875,7 @@ function zo(e) {
|
|
|
2875
2875
|
return n.containerState = {}, e.check(Gn, f, c)(_);
|
|
2876
2876
|
}
|
|
2877
2877
|
function f(_) {
|
|
2878
|
-
return i &&
|
|
2878
|
+
return i && I(), y(r), h(_);
|
|
2879
2879
|
}
|
|
2880
2880
|
function c(_) {
|
|
2881
2881
|
return n.parser.lazy[n.now().line] = r !== t.length, l = n.now().offset, g(_);
|
|
@@ -2888,7 +2888,7 @@ function zo(e) {
|
|
|
2888
2888
|
}
|
|
2889
2889
|
function g(_) {
|
|
2890
2890
|
if (_ === null) {
|
|
2891
|
-
i &&
|
|
2891
|
+
i && I(), y(0), e.consume(_);
|
|
2892
2892
|
return;
|
|
2893
2893
|
}
|
|
2894
2894
|
return i = i || n.parser.flow(n.now()), e.enter("chunkFlow", {
|
|
@@ -2917,20 +2917,20 @@ function zo(e) {
|
|
|
2917
2917
|
)
|
|
2918
2918
|
return;
|
|
2919
2919
|
const O = n.events.length;
|
|
2920
|
-
let
|
|
2921
|
-
for (;
|
|
2922
|
-
if (n.events[
|
|
2923
|
-
if (
|
|
2924
|
-
k = n.events[
|
|
2920
|
+
let H = O, j, k;
|
|
2921
|
+
for (; H--; )
|
|
2922
|
+
if (n.events[H][0] === "exit" && n.events[H][1].type === "chunkFlow") {
|
|
2923
|
+
if (j) {
|
|
2924
|
+
k = n.events[H][1].end;
|
|
2925
2925
|
break;
|
|
2926
2926
|
}
|
|
2927
|
-
|
|
2927
|
+
j = !0;
|
|
2928
2928
|
}
|
|
2929
2929
|
for (y(r), x = O; x < n.events.length; )
|
|
2930
2930
|
n.events[x][1].end = {
|
|
2931
2931
|
...k
|
|
2932
2932
|
}, x++;
|
|
2933
|
-
he(n.events,
|
|
2933
|
+
he(n.events, H + 1, 0, n.events.slice(O)), n.events.length = x;
|
|
2934
2934
|
}
|
|
2935
2935
|
}
|
|
2936
2936
|
function y(_) {
|
|
@@ -2941,7 +2941,7 @@ function zo(e) {
|
|
|
2941
2941
|
}
|
|
2942
2942
|
t.length = _;
|
|
2943
2943
|
}
|
|
2944
|
-
function
|
|
2944
|
+
function I() {
|
|
2945
2945
|
i.write([null]), o = void 0, i = void 0, n.containerState._closeFlow = void 0;
|
|
2946
2946
|
}
|
|
2947
2947
|
}
|
|
@@ -2951,7 +2951,7 @@ function Po(e, n, t) {
|
|
|
2951
2951
|
function We(e) {
|
|
2952
2952
|
if (e === null || J(e) || Oe(e))
|
|
2953
2953
|
return 1;
|
|
2954
|
-
if (
|
|
2954
|
+
if (At(e))
|
|
2955
2955
|
return 2;
|
|
2956
2956
|
}
|
|
2957
2957
|
function Tt(e, n, t) {
|
|
@@ -3086,7 +3086,7 @@ const ft = {
|
|
|
3086
3086
|
function Mo(e, n, t) {
|
|
3087
3087
|
return r;
|
|
3088
3088
|
function r(o) {
|
|
3089
|
-
return
|
|
3089
|
+
return $(o) ? q(e, i, "linePrefix")(o) : i(o);
|
|
3090
3090
|
}
|
|
3091
3091
|
function i(o) {
|
|
3092
3092
|
return o === null || D(o) ? n(o) : t(o);
|
|
@@ -3113,14 +3113,14 @@ function Fo(e, n, t) {
|
|
|
3113
3113
|
return t(l);
|
|
3114
3114
|
}
|
|
3115
3115
|
function o(l) {
|
|
3116
|
-
return
|
|
3116
|
+
return $(l) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(l), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), n) : (e.exit("blockQuotePrefix"), n(l));
|
|
3117
3117
|
}
|
|
3118
3118
|
}
|
|
3119
3119
|
function Oo(e, n, t) {
|
|
3120
3120
|
const r = this;
|
|
3121
3121
|
return i;
|
|
3122
3122
|
function i(l) {
|
|
3123
|
-
return
|
|
3123
|
+
return $(l) ? q(e, o, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(l) : o(l);
|
|
3124
3124
|
}
|
|
3125
3125
|
function o(l) {
|
|
3126
3126
|
return e.attempt(Kr, n, t)(l);
|
|
@@ -3190,7 +3190,7 @@ function Ho(e, n, t) {
|
|
|
3190
3190
|
return o = O && O[1].type === "linePrefix" ? O[2].sliceSerialize(O[1], !0).length : 0, a = x, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), f(x);
|
|
3191
3191
|
}
|
|
3192
3192
|
function f(x) {
|
|
3193
|
-
return x === a ? (l++, e.consume(x), f) : l < 3 ? t(x) : (e.exit("codeFencedFenceSequence"),
|
|
3193
|
+
return x === a ? (l++, e.consume(x), f) : l < 3 ? t(x) : (e.exit("codeFencedFenceSequence"), $(x) ? q(e, c, "whitespace")(x) : c(x));
|
|
3194
3194
|
}
|
|
3195
3195
|
function c(x) {
|
|
3196
3196
|
return x === null || D(x) ? (e.exit("codeFencedFence"), r.interrupt ? n(x) : e.check(Kn, C, L)(x)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
@@ -3198,7 +3198,7 @@ function Ho(e, n, t) {
|
|
|
3198
3198
|
}), h(x));
|
|
3199
3199
|
}
|
|
3200
3200
|
function h(x) {
|
|
3201
|
-
return x === null || D(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), c(x)) :
|
|
3201
|
+
return x === null || D(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), c(x)) : $(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), q(e, p, "whitespace")(x)) : x === 96 && x === a ? t(x) : (e.consume(x), h);
|
|
3202
3202
|
}
|
|
3203
3203
|
function p(x) {
|
|
3204
3204
|
return x === null || D(x) ? c(x) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
@@ -3215,34 +3215,34 @@ function Ho(e, n, t) {
|
|
|
3215
3215
|
return e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), y;
|
|
3216
3216
|
}
|
|
3217
3217
|
function y(x) {
|
|
3218
|
-
return o > 0 &&
|
|
3218
|
+
return o > 0 && $(x) ? q(e, I, "linePrefix", o + 1)(x) : I(x);
|
|
3219
3219
|
}
|
|
3220
|
-
function
|
|
3220
|
+
function I(x) {
|
|
3221
3221
|
return x === null || D(x) ? e.check(Kn, C, L)(x) : (e.enter("codeFlowValue"), _(x));
|
|
3222
3222
|
}
|
|
3223
3223
|
function _(x) {
|
|
3224
|
-
return x === null || D(x) ? (e.exit("codeFlowValue"),
|
|
3224
|
+
return x === null || D(x) ? (e.exit("codeFlowValue"), I(x)) : (e.consume(x), _);
|
|
3225
3225
|
}
|
|
3226
3226
|
function L(x) {
|
|
3227
3227
|
return e.exit("codeFenced"), n(x);
|
|
3228
3228
|
}
|
|
3229
|
-
function N(x, O,
|
|
3230
|
-
let
|
|
3229
|
+
function N(x, O, H) {
|
|
3230
|
+
let j = 0;
|
|
3231
3231
|
return k;
|
|
3232
3232
|
function k(v) {
|
|
3233
3233
|
return x.enter("lineEnding"), x.consume(v), x.exit("lineEnding"), T;
|
|
3234
3234
|
}
|
|
3235
3235
|
function T(v) {
|
|
3236
|
-
return x.enter("codeFencedFence"),
|
|
3236
|
+
return x.enter("codeFencedFence"), $(v) ? q(x, z, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(v) : z(v);
|
|
3237
3237
|
}
|
|
3238
3238
|
function z(v) {
|
|
3239
|
-
return v === a ? (x.enter("codeFencedFenceSequence"), U(v)) :
|
|
3239
|
+
return v === a ? (x.enter("codeFencedFenceSequence"), U(v)) : H(v);
|
|
3240
3240
|
}
|
|
3241
3241
|
function U(v) {
|
|
3242
|
-
return v === a ? (
|
|
3242
|
+
return v === a ? (j++, x.consume(v), U) : j >= l ? (x.exit("codeFencedFenceSequence"), $(v) ? q(x, P, "whitespace")(v) : P(v)) : H(v);
|
|
3243
3243
|
}
|
|
3244
3244
|
function P(v) {
|
|
3245
|
-
return v === null || D(v) ? (x.exit("codeFencedFence"), O(v)) :
|
|
3245
|
+
return v === null || D(v) ? (x.exit("codeFencedFence"), O(v)) : H(v);
|
|
3246
3246
|
}
|
|
3247
3247
|
}
|
|
3248
3248
|
}
|
|
@@ -3549,8 +3549,8 @@ function Ko(e, n) {
|
|
|
3549
3549
|
// Find a void token that includes a break.
|
|
3550
3550
|
a[h][0] === "exit" && a[h - 1][0] === "enter" && a[h][1].type === a[h - 1][1].type && a[h][1].start.line !== a[h][1].end.line && (C = h + 1, S.push(C), p._tokenizer = void 0, p.previous = void 0, p = p.next);
|
|
3551
3551
|
for (l.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : S.pop(), h = S.length; h--; ) {
|
|
3552
|
-
const y = a.slice(S[h], S[h + 1]),
|
|
3553
|
-
s.push([
|
|
3552
|
+
const y = a.slice(S[h], S[h + 1]), I = o.pop();
|
|
3553
|
+
s.push([I, I + y.length - 1]), e.splice(I, 2, y);
|
|
3554
3554
|
}
|
|
3555
3555
|
for (s.reverse(), h = -1; ++h < s.length; )
|
|
3556
3556
|
u[g + s[h][0]] = g + s[h][1], g += s[h][1] - s[h][0] - 1;
|
|
@@ -3645,7 +3645,7 @@ function ri(e, n, t, r, i, o) {
|
|
|
3645
3645
|
}), c(p));
|
|
3646
3646
|
}
|
|
3647
3647
|
function c(p) {
|
|
3648
|
-
return p === null || p === 91 || p === 93 || D(p) || a++ > 999 ? (e.exit("chunkString"), f(p)) : (e.consume(p), s || (s =
|
|
3648
|
+
return p === null || p === 91 || p === 93 || D(p) || a++ > 999 ? (e.exit("chunkString"), f(p)) : (e.consume(p), s || (s = !$(p)), p === 92 ? h : c);
|
|
3649
3649
|
}
|
|
3650
3650
|
function h(p) {
|
|
3651
3651
|
return p === 91 || p === 92 || p === 93 ? (e.consume(p), a++, c) : c(p);
|
|
@@ -3676,7 +3676,7 @@ function ot(e, n) {
|
|
|
3676
3676
|
let t;
|
|
3677
3677
|
return r;
|
|
3678
3678
|
function r(i) {
|
|
3679
|
-
return D(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) :
|
|
3679
|
+
return D(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) : $(i) ? q(e, r, t ? "linePrefix" : "lineSuffix")(i) : n(i);
|
|
3680
3680
|
}
|
|
3681
3681
|
}
|
|
3682
3682
|
const ia = {
|
|
@@ -3728,7 +3728,7 @@ function oa(e, n, t) {
|
|
|
3728
3728
|
return e.attempt(la, c, c)(p);
|
|
3729
3729
|
}
|
|
3730
3730
|
function c(p) {
|
|
3731
|
-
return
|
|
3731
|
+
return $(p) ? q(e, h, "whitespace")(p) : h(p);
|
|
3732
3732
|
}
|
|
3733
3733
|
function h(p) {
|
|
3734
3734
|
return p === null || D(p) ? (e.exit("definition"), r.parser.defined.push(i), n(p)) : t(p);
|
|
@@ -3743,7 +3743,7 @@ function aa(e, n, t) {
|
|
|
3743
3743
|
return ii(e, o, t, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
|
|
3744
3744
|
}
|
|
3745
3745
|
function o(a) {
|
|
3746
|
-
return
|
|
3746
|
+
return $(a) ? q(e, l, "whitespace")(a) : l(a);
|
|
3747
3747
|
}
|
|
3748
3748
|
function l(a) {
|
|
3749
3749
|
return a === null || D(a) ? n(a) : t(a);
|
|
@@ -3793,7 +3793,7 @@ function pa(e, n, t) {
|
|
|
3793
3793
|
return f === 35 && r++ < 6 ? (e.consume(f), l) : f === null || J(f) ? (e.exit("atxHeadingSequence"), a(f)) : t(f);
|
|
3794
3794
|
}
|
|
3795
3795
|
function a(f) {
|
|
3796
|
-
return f === 35 ? (e.enter("atxHeadingSequence"), s(f)) : f === null || D(f) ? (e.exit("atxHeading"), n(f)) :
|
|
3796
|
+
return f === 35 ? (e.enter("atxHeadingSequence"), s(f)) : f === null || D(f) ? (e.exit("atxHeading"), n(f)) : $(f) ? q(e, a, "whitespace")(f) : (e.enter("atxHeadingText"), u(f));
|
|
3797
3797
|
}
|
|
3798
3798
|
function s(f) {
|
|
3799
3799
|
return f === 35 ? (e.consume(f), s) : (e.exit("atxHeadingSequence"), a(f));
|
|
@@ -3912,42 +3912,42 @@ function ka(e, n, t) {
|
|
|
3912
3912
|
function S(m) {
|
|
3913
3913
|
if (m === null || m === 47 || m === 62 || J(m)) {
|
|
3914
3914
|
const ne = m === 47, Pe = l.toLowerCase();
|
|
3915
|
-
return !ne && !o && er.includes(Pe) ? (i = 1, r.interrupt ? n(m) : z(m)) : ha.includes(l.toLowerCase()) ? (i = 6, ne ? (e.consume(m), y) : r.interrupt ? n(m) : z(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : o ?
|
|
3915
|
+
return !ne && !o && er.includes(Pe) ? (i = 1, r.interrupt ? n(m) : z(m)) : ha.includes(l.toLowerCase()) ? (i = 6, ne ? (e.consume(m), y) : r.interrupt ? n(m) : z(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : o ? I(m) : _(m));
|
|
3916
3916
|
}
|
|
3917
3917
|
return m === 45 || ie(m) ? (e.consume(m), l += String.fromCharCode(m), S) : t(m);
|
|
3918
3918
|
}
|
|
3919
3919
|
function y(m) {
|
|
3920
3920
|
return m === 62 ? (e.consume(m), r.interrupt ? n : z) : t(m);
|
|
3921
3921
|
}
|
|
3922
|
-
function
|
|
3923
|
-
return
|
|
3922
|
+
function I(m) {
|
|
3923
|
+
return $(m) ? (e.consume(m), I) : k(m);
|
|
3924
3924
|
}
|
|
3925
3925
|
function _(m) {
|
|
3926
|
-
return m === 47 ? (e.consume(m), k) : m === 58 || m === 95 || ae(m) ? (e.consume(m), L) :
|
|
3926
|
+
return m === 47 ? (e.consume(m), k) : m === 58 || m === 95 || ae(m) ? (e.consume(m), L) : $(m) ? (e.consume(m), _) : k(m);
|
|
3927
3927
|
}
|
|
3928
3928
|
function L(m) {
|
|
3929
3929
|
return m === 45 || m === 46 || m === 58 || m === 95 || ie(m) ? (e.consume(m), L) : N(m);
|
|
3930
3930
|
}
|
|
3931
3931
|
function N(m) {
|
|
3932
|
-
return m === 61 ? (e.consume(m), x) :
|
|
3932
|
+
return m === 61 ? (e.consume(m), x) : $(m) ? (e.consume(m), N) : _(m);
|
|
3933
3933
|
}
|
|
3934
3934
|
function x(m) {
|
|
3935
|
-
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? t(m) : m === 34 || m === 39 ? (e.consume(m), s = m, O) :
|
|
3935
|
+
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? t(m) : m === 34 || m === 39 ? (e.consume(m), s = m, O) : $(m) ? (e.consume(m), x) : H(m);
|
|
3936
3936
|
}
|
|
3937
3937
|
function O(m) {
|
|
3938
|
-
return m === s ? (e.consume(m), s = null,
|
|
3939
|
-
}
|
|
3940
|
-
function $(m) {
|
|
3941
|
-
return m === null || m === 34 || m === 39 || m === 47 || m === 60 || m === 61 || m === 62 || m === 96 || J(m) ? N(m) : (e.consume(m), $);
|
|
3938
|
+
return m === s ? (e.consume(m), s = null, j) : m === null || D(m) ? t(m) : (e.consume(m), O);
|
|
3942
3939
|
}
|
|
3943
3940
|
function H(m) {
|
|
3944
|
-
return m === 47 || m === 62 ||
|
|
3941
|
+
return m === null || m === 34 || m === 39 || m === 47 || m === 60 || m === 61 || m === 62 || m === 96 || J(m) ? N(m) : (e.consume(m), H);
|
|
3942
|
+
}
|
|
3943
|
+
function j(m) {
|
|
3944
|
+
return m === 47 || m === 62 || $(m) ? _(m) : t(m);
|
|
3945
3945
|
}
|
|
3946
3946
|
function k(m) {
|
|
3947
3947
|
return m === 62 ? (e.consume(m), T) : t(m);
|
|
3948
3948
|
}
|
|
3949
3949
|
function T(m) {
|
|
3950
|
-
return m === null || D(m) ? z(m) :
|
|
3950
|
+
return m === null || D(m) ? z(m) : $(m) ? (e.consume(m), T) : t(m);
|
|
3951
3951
|
}
|
|
3952
3952
|
function z(m) {
|
|
3953
3953
|
return m === 45 && i === 2 ? (e.consume(m), R) : m === 60 && i === 1 ? (e.consume(m), B) : m === 62 && i === 4 ? (e.consume(m), se) : m === 63 && i === 3 ? (e.consume(m), d) : m === 93 && i === 5 ? (e.consume(m), W) : D(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(ma, te, U)(m)) : m === null || D(m) ? (e.exit("htmlFlowData"), U(m)) : (e.consume(m), z);
|
|
@@ -4015,10 +4015,10 @@ function Ca(e, n, t) {
|
|
|
4015
4015
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(d), s;
|
|
4016
4016
|
}
|
|
4017
4017
|
function s(d) {
|
|
4018
|
-
return d === 33 ? (e.consume(d), u) : d === 47 ? (e.consume(d), N) : d === 63 ? (e.consume(d), _) : ae(d) ? (e.consume(d),
|
|
4018
|
+
return d === 33 ? (e.consume(d), u) : d === 47 ? (e.consume(d), N) : d === 63 ? (e.consume(d), _) : ae(d) ? (e.consume(d), H) : t(d);
|
|
4019
4019
|
}
|
|
4020
4020
|
function u(d) {
|
|
4021
|
-
return d === 45 ? (e.consume(d), f) : d === 91 ? (e.consume(d), o = 0, g) : ae(d) ? (e.consume(d),
|
|
4021
|
+
return d === 45 ? (e.consume(d), f) : d === 91 ? (e.consume(d), o = 0, g) : ae(d) ? (e.consume(d), I) : t(d);
|
|
4022
4022
|
}
|
|
4023
4023
|
function f(d) {
|
|
4024
4024
|
return d === 45 ? (e.consume(d), p) : t(d);
|
|
@@ -4045,8 +4045,8 @@ function Ca(e, n, t) {
|
|
|
4045
4045
|
function y(d) {
|
|
4046
4046
|
return d === 62 ? R(d) : d === 93 ? (e.consume(d), y) : C(d);
|
|
4047
4047
|
}
|
|
4048
|
-
function
|
|
4049
|
-
return d === null || d === 62 ? R(d) : D(d) ? (l =
|
|
4048
|
+
function I(d) {
|
|
4049
|
+
return d === null || d === 62 ? R(d) : D(d) ? (l = I, B(d)) : (e.consume(d), I);
|
|
4050
4050
|
}
|
|
4051
4051
|
function _(d) {
|
|
4052
4052
|
return d === null ? t(d) : d === 63 ? (e.consume(d), L) : D(d) ? (l = _, B(d)) : (e.consume(d), _);
|
|
@@ -4061,31 +4061,31 @@ function Ca(e, n, t) {
|
|
|
4061
4061
|
return d === 45 || ie(d) ? (e.consume(d), x) : O(d);
|
|
4062
4062
|
}
|
|
4063
4063
|
function O(d) {
|
|
4064
|
-
return D(d) ? (l = O, B(d)) :
|
|
4065
|
-
}
|
|
4066
|
-
function $(d) {
|
|
4067
|
-
return d === 45 || ie(d) ? (e.consume(d), $) : d === 47 || d === 62 || J(d) ? H(d) : t(d);
|
|
4064
|
+
return D(d) ? (l = O, B(d)) : $(d) ? (e.consume(d), O) : R(d);
|
|
4068
4065
|
}
|
|
4069
4066
|
function H(d) {
|
|
4070
|
-
return d ===
|
|
4067
|
+
return d === 45 || ie(d) ? (e.consume(d), H) : d === 47 || d === 62 || J(d) ? j(d) : t(d);
|
|
4068
|
+
}
|
|
4069
|
+
function j(d) {
|
|
4070
|
+
return d === 47 ? (e.consume(d), R) : d === 58 || d === 95 || ae(d) ? (e.consume(d), k) : D(d) ? (l = j, B(d)) : $(d) ? (e.consume(d), j) : R(d);
|
|
4071
4071
|
}
|
|
4072
4072
|
function k(d) {
|
|
4073
4073
|
return d === 45 || d === 46 || d === 58 || d === 95 || ie(d) ? (e.consume(d), k) : T(d);
|
|
4074
4074
|
}
|
|
4075
4075
|
function T(d) {
|
|
4076
|
-
return d === 61 ? (e.consume(d), z) : D(d) ? (l = T, B(d)) :
|
|
4076
|
+
return d === 61 ? (e.consume(d), z) : D(d) ? (l = T, B(d)) : $(d) ? (e.consume(d), T) : j(d);
|
|
4077
4077
|
}
|
|
4078
4078
|
function z(d) {
|
|
4079
|
-
return d === null || d === 60 || d === 61 || d === 62 || d === 96 ? t(d) : d === 34 || d === 39 ? (e.consume(d), i = d, U) : D(d) ? (l = z, B(d)) :
|
|
4079
|
+
return d === null || d === 60 || d === 61 || d === 62 || d === 96 ? t(d) : d === 34 || d === 39 ? (e.consume(d), i = d, U) : D(d) ? (l = z, B(d)) : $(d) ? (e.consume(d), z) : (e.consume(d), P);
|
|
4080
4080
|
}
|
|
4081
4081
|
function U(d) {
|
|
4082
4082
|
return d === i ? (e.consume(d), i = void 0, v) : d === null ? t(d) : D(d) ? (l = U, B(d)) : (e.consume(d), U);
|
|
4083
4083
|
}
|
|
4084
4084
|
function P(d) {
|
|
4085
|
-
return d === null || d === 34 || d === 39 || d === 60 || d === 61 || d === 96 ? t(d) : d === 47 || d === 62 || J(d) ?
|
|
4085
|
+
return d === null || d === 34 || d === 39 || d === 60 || d === 61 || d === 96 ? t(d) : d === 47 || d === 62 || J(d) ? j(d) : (e.consume(d), P);
|
|
4086
4086
|
}
|
|
4087
4087
|
function v(d) {
|
|
4088
|
-
return d === 47 || d === 62 || J(d) ?
|
|
4088
|
+
return d === 47 || d === 62 || J(d) ? j(d) : t(d);
|
|
4089
4089
|
}
|
|
4090
4090
|
function R(d) {
|
|
4091
4091
|
return d === 62 ? (e.consume(d), e.exit("htmlTextData"), e.exit("htmlText"), n) : t(d);
|
|
@@ -4094,7 +4094,7 @@ function Ca(e, n, t) {
|
|
|
4094
4094
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), Q;
|
|
4095
4095
|
}
|
|
4096
4096
|
function Q(d) {
|
|
4097
|
-
return
|
|
4097
|
+
return $(d) ? q(e, W, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(d) : W(d);
|
|
4098
4098
|
}
|
|
4099
4099
|
function W(d) {
|
|
4100
4100
|
return e.enter("htmlTextData"), l(d);
|
|
@@ -4103,8 +4103,8 @@ function Ca(e, n, t) {
|
|
|
4103
4103
|
const xn = {
|
|
4104
4104
|
name: "labelEnd",
|
|
4105
4105
|
resolveAll: Ea,
|
|
4106
|
-
resolveTo:
|
|
4107
|
-
tokenize:
|
|
4106
|
+
resolveTo: Ia,
|
|
4107
|
+
tokenize: Aa
|
|
4108
4108
|
}, Sa = {
|
|
4109
4109
|
tokenize: Ta
|
|
4110
4110
|
}, va = {
|
|
@@ -4124,7 +4124,7 @@ function Ea(e) {
|
|
|
4124
4124
|
}
|
|
4125
4125
|
return e.length !== t.length && he(e, 0, e.length, t), e;
|
|
4126
4126
|
}
|
|
4127
|
-
function
|
|
4127
|
+
function Ia(e, n) {
|
|
4128
4128
|
let t = e.length, r = 0, i, o, l, a;
|
|
4129
4129
|
for (; t--; )
|
|
4130
4130
|
if (i = e[t][1], o) {
|
|
@@ -4164,7 +4164,7 @@ function Aa(e, n) {
|
|
|
4164
4164
|
};
|
|
4165
4165
|
return a = [["enter", s, n], ["enter", u, n]], a = me(a, e.slice(o + 1, o + r + 3)), a = me(a, [["enter", f, n]]), a = me(a, Tt(n.parser.constructs.insideSpan.null, e.slice(o + r + 4, l - 3), n)), a = me(a, [["exit", f, n], e[l - 2], e[l - 1], ["exit", u, n]]), a = me(a, e.slice(l + 1)), a = me(a, [["exit", s, n]]), he(e, o, e.length, a), e;
|
|
4166
4166
|
}
|
|
4167
|
-
function
|
|
4167
|
+
function Aa(e, n, t) {
|
|
4168
4168
|
const r = this;
|
|
4169
4169
|
let i = r.events.length, o, l;
|
|
4170
4170
|
for (; i--; )
|
|
@@ -4301,7 +4301,7 @@ function Fa(e, n, t) {
|
|
|
4301
4301
|
return u === i ? (e.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || D(u)) ? (e.exit("thematicBreak"), n(u)) : t(u);
|
|
4302
4302
|
}
|
|
4303
4303
|
function s(u) {
|
|
4304
|
-
return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"),
|
|
4304
|
+
return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), $(u) ? q(e, a, "whitespace")(u) : a(u));
|
|
4305
4305
|
}
|
|
4306
4306
|
}
|
|
4307
4307
|
const ue = {
|
|
@@ -4349,7 +4349,7 @@ function ja(e, n, t) {
|
|
|
4349
4349
|
return r.containerState.initialBlankLine = !0, o++, h(p);
|
|
4350
4350
|
}
|
|
4351
4351
|
function c(p) {
|
|
4352
|
-
return
|
|
4352
|
+
return $(p) ? (e.enter("listItemPrefixWhitespace"), e.consume(p), e.exit("listItemPrefixWhitespace"), h) : t(p);
|
|
4353
4353
|
}
|
|
4354
4354
|
function h(p) {
|
|
4355
4355
|
return r.containerState.size = o + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, n(p);
|
|
@@ -4362,7 +4362,7 @@ function $a(e, n, t) {
|
|
|
4362
4362
|
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, q(e, n, "listItemIndent", r.containerState.size + 1)(a);
|
|
4363
4363
|
}
|
|
4364
4364
|
function o(a) {
|
|
4365
|
-
return r.containerState.furtherBlankLines ||
|
|
4365
|
+
return r.containerState.furtherBlankLines || !$(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(Ba, n, l)(a));
|
|
4366
4366
|
}
|
|
4367
4367
|
function l(a) {
|
|
4368
4368
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, q(e, e.attempt(ue, n, t), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
|
|
@@ -4384,7 +4384,7 @@ function qa(e, n, t) {
|
|
|
4384
4384
|
return q(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
|
4385
4385
|
function i(o) {
|
|
4386
4386
|
const l = r.events[r.events.length - 1];
|
|
4387
|
-
return
|
|
4387
|
+
return !$(o) && l && l[1].type === "listItemPrefixWhitespace" ? n(o) : t(o);
|
|
4388
4388
|
}
|
|
4389
4389
|
}
|
|
4390
4390
|
const tr = {
|
|
@@ -4433,7 +4433,7 @@ function Wa(e, n, t) {
|
|
|
4433
4433
|
return e.enter("setextHeadingLineSequence"), a(u);
|
|
4434
4434
|
}
|
|
4435
4435
|
function a(u) {
|
|
4436
|
-
return u === i ? (e.consume(u), a) : (e.exit("setextHeadingLineSequence"),
|
|
4436
|
+
return u === i ? (e.consume(u), a) : (e.exit("setextHeadingLineSequence"), $(u) ? q(e, s, "lineSuffix")(u) : s(u));
|
|
4437
4437
|
}
|
|
4438
4438
|
function s(u) {
|
|
4439
4439
|
return u === null || D(u) ? (e.exit("setextHeadingLine"), n(u)) : t(u);
|
|
@@ -4633,7 +4633,7 @@ function us(e, n, t) {
|
|
|
4633
4633
|
const s = {
|
|
4634
4634
|
attempt: O(N),
|
|
4635
4635
|
check: O(x),
|
|
4636
|
-
consume:
|
|
4636
|
+
consume: I,
|
|
4637
4637
|
enter: _,
|
|
4638
4638
|
exit: L,
|
|
4639
4639
|
interrupt: O(x, {
|
|
@@ -4654,7 +4654,7 @@ function us(e, n, t) {
|
|
|
4654
4654
|
let f = n.tokenize.call(u, s);
|
|
4655
4655
|
return n.resolveAll && o.push(n), u;
|
|
4656
4656
|
function c(T) {
|
|
4657
|
-
return l = me(l, T), S(), l[l.length - 1] !== null ? [] : (
|
|
4657
|
+
return l = me(l, T), S(), l[l.length - 1] !== null ? [] : (H(n, 0), u.events = Tt(o, u.events, u), u.events);
|
|
4658
4658
|
}
|
|
4659
4659
|
function h(T, z) {
|
|
4660
4660
|
return fs(p(T), z);
|
|
@@ -4695,7 +4695,7 @@ function us(e, n, t) {
|
|
|
4695
4695
|
function y(T) {
|
|
4696
4696
|
f = f(T);
|
|
4697
4697
|
}
|
|
4698
|
-
function
|
|
4698
|
+
function I(T) {
|
|
4699
4699
|
D(T) ? (r.line++, r.column = 1, r.offset += T === -3 ? 2 : 1, k()) : T !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
4700
4700
|
// strings.
|
|
4701
4701
|
/** @type {string} */
|
|
@@ -4710,7 +4710,7 @@ function us(e, n, t) {
|
|
|
4710
4710
|
return z.end = g(), u.events.push(["exit", z, u]), z;
|
|
4711
4711
|
}
|
|
4712
4712
|
function N(T, z) {
|
|
4713
|
-
|
|
4713
|
+
H(T, z.from);
|
|
4714
4714
|
}
|
|
4715
4715
|
function x(T, z) {
|
|
4716
4716
|
z.restore();
|
|
@@ -4731,14 +4731,14 @@ function us(e, n, t) {
|
|
|
4731
4731
|
) : se(P);
|
|
4732
4732
|
function se(re) {
|
|
4733
4733
|
return Xe;
|
|
4734
|
-
function Xe(
|
|
4735
|
-
const je =
|
|
4734
|
+
function Xe(Ie) {
|
|
4735
|
+
const je = Ie !== null && re[Ie], $e = Ie !== null && re.null, ht = [
|
|
4736
4736
|
// To do: add more extension tests.
|
|
4737
4737
|
/* c8 ignore next 2 */
|
|
4738
4738
|
...Array.isArray(je) ? je : je ? [je] : [],
|
|
4739
4739
|
...Array.isArray($e) ? $e : $e ? [$e] : []
|
|
4740
4740
|
];
|
|
4741
|
-
return te(ht)(
|
|
4741
|
+
return te(ht)(Ie);
|
|
4742
4742
|
}
|
|
4743
4743
|
}
|
|
4744
4744
|
function te(re) {
|
|
@@ -4746,8 +4746,8 @@ function us(e, n, t) {
|
|
|
4746
4746
|
}
|
|
4747
4747
|
function m(re) {
|
|
4748
4748
|
return Xe;
|
|
4749
|
-
function Xe(
|
|
4750
|
-
return d =
|
|
4749
|
+
function Xe(Ie) {
|
|
4750
|
+
return d = j(), W = re, re.partial || (u.currentConstruct = re), re.name && u.parser.constructs.disable.null.includes(re.name) ? Pe() : re.tokenize.call(
|
|
4751
4751
|
// If we do have fields, create an object w/ `context` as its
|
|
4752
4752
|
// prototype.
|
|
4753
4753
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
@@ -4755,7 +4755,7 @@ function us(e, n, t) {
|
|
|
4755
4755
|
s,
|
|
4756
4756
|
ne,
|
|
4757
4757
|
Pe
|
|
4758
|
-
)(
|
|
4758
|
+
)(Ie);
|
|
4759
4759
|
}
|
|
4760
4760
|
}
|
|
4761
4761
|
function ne(re) {
|
|
@@ -4766,10 +4766,10 @@ function us(e, n, t) {
|
|
|
4766
4766
|
}
|
|
4767
4767
|
}
|
|
4768
4768
|
}
|
|
4769
|
-
function
|
|
4769
|
+
function H(T, z) {
|
|
4770
4770
|
T.resolveAll && !o.includes(T) && o.push(T), T.resolve && he(u.events, z, u.events.length - z, T.resolve(u.events.slice(z), u)), T.resolveTo && (u.events = T.resolveTo(u.events, u));
|
|
4771
4771
|
}
|
|
4772
|
-
function
|
|
4772
|
+
function j() {
|
|
4773
4773
|
const T = g(), z = u.previous, U = u.currentConstruct, P = u.events.length, v = Array.from(a);
|
|
4774
4774
|
return {
|
|
4775
4775
|
from: P,
|
|
@@ -4843,7 +4843,7 @@ function ps(e) {
|
|
|
4843
4843
|
/** @type {FullNormalizedExtension} */
|
|
4844
4844
|
Gr([ss, ...(e || {}).extensions || []])
|
|
4845
4845
|
),
|
|
4846
|
-
content: i(
|
|
4846
|
+
content: i(Io),
|
|
4847
4847
|
defined: [],
|
|
4848
4848
|
document: i(To),
|
|
4849
4849
|
flow: i(Ya),
|
|
@@ -4923,20 +4923,20 @@ function xs(e) {
|
|
|
4923
4923
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
4924
4924
|
enter: {
|
|
4925
4925
|
autolink: o(Ln),
|
|
4926
|
-
autolinkProtocol:
|
|
4927
|
-
autolinkEmail:
|
|
4926
|
+
autolinkProtocol: j,
|
|
4927
|
+
autolinkEmail: j,
|
|
4928
4928
|
atxHeading: o(Tn),
|
|
4929
4929
|
blockQuote: o($e),
|
|
4930
|
-
characterEscape:
|
|
4931
|
-
characterReference:
|
|
4930
|
+
characterEscape: j,
|
|
4931
|
+
characterReference: j,
|
|
4932
4932
|
codeFenced: o(ht),
|
|
4933
4933
|
codeFencedFenceInfo: l,
|
|
4934
4934
|
codeFencedFenceMeta: l,
|
|
4935
4935
|
codeIndented: o(ht, l),
|
|
4936
4936
|
codeText: o(Vi, l),
|
|
4937
|
-
codeTextData:
|
|
4938
|
-
data:
|
|
4939
|
-
codeFlowValue:
|
|
4937
|
+
codeTextData: j,
|
|
4938
|
+
data: j,
|
|
4939
|
+
codeFlowValue: j,
|
|
4940
4940
|
definition: o(qi),
|
|
4941
4941
|
definitionDestinationString: l,
|
|
4942
4942
|
definitionLabelString: l,
|
|
@@ -4945,9 +4945,9 @@ function xs(e) {
|
|
|
4945
4945
|
hardBreakEscape: o(zn),
|
|
4946
4946
|
hardBreakTrailing: o(zn),
|
|
4947
4947
|
htmlFlow: o(Pn, l),
|
|
4948
|
-
htmlFlowData:
|
|
4948
|
+
htmlFlowData: j,
|
|
4949
4949
|
htmlText: o(Pn, l),
|
|
4950
|
-
htmlTextData:
|
|
4950
|
+
htmlTextData: j,
|
|
4951
4951
|
image: o(Wi),
|
|
4952
4952
|
label: l,
|
|
4953
4953
|
link: o(Ln),
|
|
@@ -4969,7 +4969,7 @@ function xs(e) {
|
|
|
4969
4969
|
atxHeadingSequence: N,
|
|
4970
4970
|
autolink: s(),
|
|
4971
4971
|
autolinkEmail: je,
|
|
4972
|
-
autolinkProtocol:
|
|
4972
|
+
autolinkProtocol: Ie,
|
|
4973
4973
|
blockQuote: s(),
|
|
4974
4974
|
characterEscapeValue: k,
|
|
4975
4975
|
characterReferenceMarkerHexadecimal: Pe,
|
|
@@ -4987,7 +4987,7 @@ function xs(e) {
|
|
|
4987
4987
|
data: k,
|
|
4988
4988
|
definition: s(),
|
|
4989
4989
|
definitionDestinationString: L,
|
|
4990
|
-
definitionLabelString:
|
|
4990
|
+
definitionLabelString: I,
|
|
4991
4991
|
definitionTitleString: _,
|
|
4992
4992
|
emphasis: s(),
|
|
4993
4993
|
hardBreakEscape: s(z),
|
|
@@ -5009,7 +5009,7 @@ function xs(e) {
|
|
|
5009
5009
|
resourceDestinationString: d,
|
|
5010
5010
|
resourceTitleString: se,
|
|
5011
5011
|
resource: te,
|
|
5012
|
-
setextHeading: s(
|
|
5012
|
+
setextHeading: s(H),
|
|
5013
5013
|
setextHeadingLineSequence: O,
|
|
5014
5014
|
setextHeadingText: x,
|
|
5015
5015
|
strong: s(),
|
|
@@ -5020,12 +5020,12 @@ function xs(e) {
|
|
|
5020
5020
|
const t = {};
|
|
5021
5021
|
return r;
|
|
5022
5022
|
function r(w) {
|
|
5023
|
-
let
|
|
5023
|
+
let A = {
|
|
5024
5024
|
type: "root",
|
|
5025
5025
|
children: []
|
|
5026
5026
|
};
|
|
5027
5027
|
const F = {
|
|
5028
|
-
stack: [
|
|
5028
|
+
stack: [A],
|
|
5029
5029
|
tokenStack: [],
|
|
5030
5030
|
config: n,
|
|
5031
5031
|
enter: a,
|
|
@@ -5053,23 +5053,23 @@ function xs(e) {
|
|
|
5053
5053
|
const ge = F.tokenStack[F.tokenStack.length - 1];
|
|
5054
5054
|
(ge[1] || rr).call(F, void 0, ge[0]);
|
|
5055
5055
|
}
|
|
5056
|
-
for (
|
|
5057
|
-
start:
|
|
5056
|
+
for (A.position = {
|
|
5057
|
+
start: Ae(w.length > 0 ? w[0][1].start : {
|
|
5058
5058
|
line: 1,
|
|
5059
5059
|
column: 1,
|
|
5060
5060
|
offset: 0
|
|
5061
5061
|
}),
|
|
5062
|
-
end:
|
|
5062
|
+
end: Ae(w.length > 0 ? w[w.length - 2][1].end : {
|
|
5063
5063
|
line: 1,
|
|
5064
5064
|
column: 1,
|
|
5065
5065
|
offset: 0
|
|
5066
5066
|
})
|
|
5067
5067
|
}, X = -1; ++X < n.transforms.length; )
|
|
5068
|
-
|
|
5069
|
-
return
|
|
5068
|
+
A = n.transforms[X](A) || A;
|
|
5069
|
+
return A;
|
|
5070
5070
|
}
|
|
5071
|
-
function i(w,
|
|
5072
|
-
let V =
|
|
5071
|
+
function i(w, A, F) {
|
|
5072
|
+
let V = A - 1, X = -1, ge = !1, Le, Ce, Ge, Je;
|
|
5073
5073
|
for (; ++V <= F; ) {
|
|
5074
5074
|
const fe = w[V];
|
|
5075
5075
|
switch (fe[1].type) {
|
|
@@ -5116,12 +5116,12 @@ function xs(e) {
|
|
|
5116
5116
|
}
|
|
5117
5117
|
}
|
|
5118
5118
|
}
|
|
5119
|
-
return w[
|
|
5119
|
+
return w[A][1]._spread = ge, F;
|
|
5120
5120
|
}
|
|
5121
|
-
function o(w,
|
|
5121
|
+
function o(w, A) {
|
|
5122
5122
|
return F;
|
|
5123
5123
|
function F(V) {
|
|
5124
|
-
a.call(this, w(V), V),
|
|
5124
|
+
a.call(this, w(V), V), A && A.call(this, V);
|
|
5125
5125
|
}
|
|
5126
5126
|
}
|
|
5127
5127
|
function l() {
|
|
@@ -5130,28 +5130,28 @@ function xs(e) {
|
|
|
5130
5130
|
children: []
|
|
5131
5131
|
});
|
|
5132
5132
|
}
|
|
5133
|
-
function a(w,
|
|
5134
|
-
this.stack[this.stack.length - 1].children.push(w), this.stack.push(w), this.tokenStack.push([
|
|
5135
|
-
start:
|
|
5133
|
+
function a(w, A, F) {
|
|
5134
|
+
this.stack[this.stack.length - 1].children.push(w), this.stack.push(w), this.tokenStack.push([A, F || void 0]), w.position = {
|
|
5135
|
+
start: Ae(A.start),
|
|
5136
5136
|
// @ts-expect-error: `end` will be patched later.
|
|
5137
5137
|
end: void 0
|
|
5138
5138
|
};
|
|
5139
5139
|
}
|
|
5140
5140
|
function s(w) {
|
|
5141
|
-
return
|
|
5142
|
-
function
|
|
5141
|
+
return A;
|
|
5142
|
+
function A(F) {
|
|
5143
5143
|
w && w.call(this, F), u.call(this, F);
|
|
5144
5144
|
}
|
|
5145
5145
|
}
|
|
5146
|
-
function u(w,
|
|
5146
|
+
function u(w, A) {
|
|
5147
5147
|
const F = this.stack.pop(), V = this.tokenStack.pop();
|
|
5148
5148
|
if (V)
|
|
5149
|
-
V[0].type !== w.type && (
|
|
5149
|
+
V[0].type !== w.type && (A ? A.call(this, w, V[0]) : (V[1] || rr).call(this, w, V[0]));
|
|
5150
5150
|
else throw new Error("Cannot close `" + w.type + "` (" + lt({
|
|
5151
5151
|
start: w.start,
|
|
5152
5152
|
end: w.end
|
|
5153
5153
|
}) + "): it’s not open");
|
|
5154
|
-
F.position.end =
|
|
5154
|
+
F.position.end = Ae(w.end);
|
|
5155
5155
|
}
|
|
5156
5156
|
function f() {
|
|
5157
5157
|
return yn(this.stack.pop());
|
|
@@ -5161,100 +5161,100 @@ function xs(e) {
|
|
|
5161
5161
|
}
|
|
5162
5162
|
function h(w) {
|
|
5163
5163
|
if (this.data.expectingFirstListItemValue) {
|
|
5164
|
-
const
|
|
5165
|
-
|
|
5164
|
+
const A = this.stack[this.stack.length - 2];
|
|
5165
|
+
A.start = Number.parseInt(this.sliceSerialize(w), 10), this.data.expectingFirstListItemValue = void 0;
|
|
5166
5166
|
}
|
|
5167
5167
|
}
|
|
5168
5168
|
function p() {
|
|
5169
|
-
const w = this.resume(),
|
|
5170
|
-
|
|
5169
|
+
const w = this.resume(), A = this.stack[this.stack.length - 1];
|
|
5170
|
+
A.lang = w;
|
|
5171
5171
|
}
|
|
5172
5172
|
function g() {
|
|
5173
|
-
const w = this.resume(),
|
|
5174
|
-
|
|
5173
|
+
const w = this.resume(), A = this.stack[this.stack.length - 1];
|
|
5174
|
+
A.meta = w;
|
|
5175
5175
|
}
|
|
5176
5176
|
function C() {
|
|
5177
5177
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
5178
5178
|
}
|
|
5179
5179
|
function S() {
|
|
5180
|
-
const w = this.resume(),
|
|
5181
|
-
|
|
5180
|
+
const w = this.resume(), A = this.stack[this.stack.length - 1];
|
|
5181
|
+
A.value = w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
5182
5182
|
}
|
|
5183
5183
|
function y() {
|
|
5184
|
-
const w = this.resume(),
|
|
5185
|
-
|
|
5184
|
+
const w = this.resume(), A = this.stack[this.stack.length - 1];
|
|
5185
|
+
A.value = w.replace(/(\r?\n|\r)$/g, "");
|
|
5186
5186
|
}
|
|
5187
|
-
function
|
|
5188
|
-
const
|
|
5189
|
-
F.label =
|
|
5187
|
+
function I(w) {
|
|
5188
|
+
const A = this.resume(), F = this.stack[this.stack.length - 1];
|
|
5189
|
+
F.label = A, F.identifier = ke(this.sliceSerialize(w)).toLowerCase();
|
|
5190
5190
|
}
|
|
5191
5191
|
function _() {
|
|
5192
|
-
const w = this.resume(),
|
|
5193
|
-
|
|
5192
|
+
const w = this.resume(), A = this.stack[this.stack.length - 1];
|
|
5193
|
+
A.title = w;
|
|
5194
5194
|
}
|
|
5195
5195
|
function L() {
|
|
5196
|
-
const w = this.resume(),
|
|
5197
|
-
|
|
5196
|
+
const w = this.resume(), A = this.stack[this.stack.length - 1];
|
|
5197
|
+
A.url = w;
|
|
5198
5198
|
}
|
|
5199
5199
|
function N(w) {
|
|
5200
|
-
const
|
|
5201
|
-
if (!
|
|
5200
|
+
const A = this.stack[this.stack.length - 1];
|
|
5201
|
+
if (!A.depth) {
|
|
5202
5202
|
const F = this.sliceSerialize(w).length;
|
|
5203
|
-
|
|
5203
|
+
A.depth = F;
|
|
5204
5204
|
}
|
|
5205
5205
|
}
|
|
5206
5206
|
function x() {
|
|
5207
5207
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
5208
5208
|
}
|
|
5209
5209
|
function O(w) {
|
|
5210
|
-
const
|
|
5211
|
-
|
|
5210
|
+
const A = this.stack[this.stack.length - 1];
|
|
5211
|
+
A.depth = this.sliceSerialize(w).codePointAt(0) === 61 ? 1 : 2;
|
|
5212
5212
|
}
|
|
5213
|
-
function
|
|
5213
|
+
function H() {
|
|
5214
5214
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
5215
5215
|
}
|
|
5216
|
-
function
|
|
5216
|
+
function j(w) {
|
|
5217
5217
|
const F = this.stack[this.stack.length - 1].children;
|
|
5218
5218
|
let V = F[F.length - 1];
|
|
5219
5219
|
(!V || V.type !== "text") && (V = Gi(), V.position = {
|
|
5220
|
-
start:
|
|
5220
|
+
start: Ae(w.start),
|
|
5221
5221
|
// @ts-expect-error: we’ll add `end` later.
|
|
5222
5222
|
end: void 0
|
|
5223
5223
|
}, F.push(V)), this.stack.push(V);
|
|
5224
5224
|
}
|
|
5225
5225
|
function k(w) {
|
|
5226
|
-
const
|
|
5227
|
-
|
|
5226
|
+
const A = this.stack.pop();
|
|
5227
|
+
A.value += this.sliceSerialize(w), A.position.end = Ae(w.end);
|
|
5228
5228
|
}
|
|
5229
5229
|
function T(w) {
|
|
5230
|
-
const
|
|
5230
|
+
const A = this.stack[this.stack.length - 1];
|
|
5231
5231
|
if (this.data.atHardBreak) {
|
|
5232
|
-
const F =
|
|
5233
|
-
F.position.end =
|
|
5232
|
+
const F = A.children[A.children.length - 1];
|
|
5233
|
+
F.position.end = Ae(w.end), this.data.atHardBreak = void 0;
|
|
5234
5234
|
return;
|
|
5235
5235
|
}
|
|
5236
|
-
!this.data.setextHeadingSlurpLineEnding && n.canContainEols.includes(
|
|
5236
|
+
!this.data.setextHeadingSlurpLineEnding && n.canContainEols.includes(A.type) && (j.call(this, w), k.call(this, w));
|
|
5237
5237
|
}
|
|
5238
5238
|
function z() {
|
|
5239
5239
|
this.data.atHardBreak = !0;
|
|
5240
5240
|
}
|
|
5241
5241
|
function U() {
|
|
5242
|
-
const w = this.resume(),
|
|
5243
|
-
|
|
5242
|
+
const w = this.resume(), A = this.stack[this.stack.length - 1];
|
|
5243
|
+
A.value = w;
|
|
5244
5244
|
}
|
|
5245
5245
|
function P() {
|
|
5246
|
-
const w = this.resume(),
|
|
5247
|
-
|
|
5246
|
+
const w = this.resume(), A = this.stack[this.stack.length - 1];
|
|
5247
|
+
A.value = w;
|
|
5248
5248
|
}
|
|
5249
5249
|
function v() {
|
|
5250
|
-
const w = this.resume(),
|
|
5251
|
-
|
|
5250
|
+
const w = this.resume(), A = this.stack[this.stack.length - 1];
|
|
5251
|
+
A.value = w;
|
|
5252
5252
|
}
|
|
5253
5253
|
function R() {
|
|
5254
5254
|
const w = this.stack[this.stack.length - 1];
|
|
5255
5255
|
if (this.data.inReference) {
|
|
5256
|
-
const
|
|
5257
|
-
w.type += "Reference", w.referenceType =
|
|
5256
|
+
const A = this.data.referenceType || "shortcut";
|
|
5257
|
+
w.type += "Reference", w.referenceType = A, delete w.url, delete w.title;
|
|
5258
5258
|
} else
|
|
5259
5259
|
delete w.identifier, delete w.label;
|
|
5260
5260
|
this.data.referenceType = void 0;
|
|
@@ -5262,31 +5262,31 @@ function xs(e) {
|
|
|
5262
5262
|
function B() {
|
|
5263
5263
|
const w = this.stack[this.stack.length - 1];
|
|
5264
5264
|
if (this.data.inReference) {
|
|
5265
|
-
const
|
|
5266
|
-
w.type += "Reference", w.referenceType =
|
|
5265
|
+
const A = this.data.referenceType || "shortcut";
|
|
5266
|
+
w.type += "Reference", w.referenceType = A, delete w.url, delete w.title;
|
|
5267
5267
|
} else
|
|
5268
5268
|
delete w.identifier, delete w.label;
|
|
5269
5269
|
this.data.referenceType = void 0;
|
|
5270
5270
|
}
|
|
5271
5271
|
function Q(w) {
|
|
5272
|
-
const
|
|
5273
|
-
F.label = gs(
|
|
5272
|
+
const A = this.sliceSerialize(w), F = this.stack[this.stack.length - 2];
|
|
5273
|
+
F.label = gs(A), F.identifier = ke(A).toLowerCase();
|
|
5274
5274
|
}
|
|
5275
5275
|
function W() {
|
|
5276
|
-
const w = this.stack[this.stack.length - 1],
|
|
5276
|
+
const w = this.stack[this.stack.length - 1], A = this.resume(), F = this.stack[this.stack.length - 1];
|
|
5277
5277
|
if (this.data.inReference = !0, F.type === "link") {
|
|
5278
5278
|
const V = w.children;
|
|
5279
5279
|
F.children = V;
|
|
5280
5280
|
} else
|
|
5281
|
-
F.alt =
|
|
5281
|
+
F.alt = A;
|
|
5282
5282
|
}
|
|
5283
5283
|
function d() {
|
|
5284
|
-
const w = this.resume(),
|
|
5285
|
-
|
|
5284
|
+
const w = this.resume(), A = this.stack[this.stack.length - 1];
|
|
5285
|
+
A.url = w;
|
|
5286
5286
|
}
|
|
5287
5287
|
function se() {
|
|
5288
|
-
const w = this.resume(),
|
|
5289
|
-
|
|
5288
|
+
const w = this.resume(), A = this.stack[this.stack.length - 1];
|
|
5289
|
+
A.title = w;
|
|
5290
5290
|
}
|
|
5291
5291
|
function te() {
|
|
5292
5292
|
this.data.inReference = void 0;
|
|
@@ -5295,32 +5295,32 @@ function xs(e) {
|
|
|
5295
5295
|
this.data.referenceType = "collapsed";
|
|
5296
5296
|
}
|
|
5297
5297
|
function ne(w) {
|
|
5298
|
-
const
|
|
5299
|
-
F.label =
|
|
5298
|
+
const A = this.resume(), F = this.stack[this.stack.length - 1];
|
|
5299
|
+
F.label = A, F.identifier = ke(this.sliceSerialize(w)).toLowerCase(), this.data.referenceType = "full";
|
|
5300
5300
|
}
|
|
5301
5301
|
function Pe(w) {
|
|
5302
5302
|
this.data.characterReferenceType = w.type;
|
|
5303
5303
|
}
|
|
5304
5304
|
function re(w) {
|
|
5305
|
-
const
|
|
5305
|
+
const A = this.sliceSerialize(w), F = this.data.characterReferenceType;
|
|
5306
5306
|
let V;
|
|
5307
|
-
F ? (V = Jr(
|
|
5307
|
+
F ? (V = Jr(A, F === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : V = kn(A);
|
|
5308
5308
|
const X = this.stack[this.stack.length - 1];
|
|
5309
5309
|
X.value += V;
|
|
5310
5310
|
}
|
|
5311
5311
|
function Xe(w) {
|
|
5312
|
-
const
|
|
5313
|
-
|
|
5312
|
+
const A = this.stack.pop();
|
|
5313
|
+
A.position.end = Ae(w.end);
|
|
5314
5314
|
}
|
|
5315
|
-
function
|
|
5315
|
+
function Ie(w) {
|
|
5316
5316
|
k.call(this, w);
|
|
5317
|
-
const
|
|
5318
|
-
|
|
5317
|
+
const A = this.stack[this.stack.length - 1];
|
|
5318
|
+
A.url = this.sliceSerialize(w);
|
|
5319
5319
|
}
|
|
5320
5320
|
function je(w) {
|
|
5321
5321
|
k.call(this, w);
|
|
5322
|
-
const
|
|
5323
|
-
|
|
5322
|
+
const A = this.stack[this.stack.length - 1];
|
|
5323
|
+
A.url = "mailto:" + this.sliceSerialize(w);
|
|
5324
5324
|
}
|
|
5325
5325
|
function $e() {
|
|
5326
5326
|
return {
|
|
@@ -5433,7 +5433,7 @@ function xs(e) {
|
|
|
5433
5433
|
};
|
|
5434
5434
|
}
|
|
5435
5435
|
}
|
|
5436
|
-
function
|
|
5436
|
+
function Ae(e) {
|
|
5437
5437
|
return {
|
|
5438
5438
|
line: e.line,
|
|
5439
5439
|
column: e.column,
|
|
@@ -5541,7 +5541,7 @@ function Es(e, n) {
|
|
|
5541
5541
|
};
|
|
5542
5542
|
return e.patch(n, t), e.applyData(n, t);
|
|
5543
5543
|
}
|
|
5544
|
-
function
|
|
5544
|
+
function Is(e, n) {
|
|
5545
5545
|
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), i = Qe(r.toLowerCase()), o = e.footnoteOrder.indexOf(r);
|
|
5546
5546
|
let l, a = e.footnoteCounts.get(r);
|
|
5547
5547
|
a === void 0 ? (a = 0, e.footnoteOrder.push(r), l = e.footnoteOrder.length) : l = o + 1, a += 1, e.footnoteCounts.set(r, a);
|
|
@@ -5565,7 +5565,7 @@ function As(e, n) {
|
|
|
5565
5565
|
};
|
|
5566
5566
|
return e.patch(n, u), e.applyData(n, u);
|
|
5567
5567
|
}
|
|
5568
|
-
function
|
|
5568
|
+
function As(e, n) {
|
|
5569
5569
|
const t = {
|
|
5570
5570
|
type: "element",
|
|
5571
5571
|
tagName: "h" + n.depth,
|
|
@@ -5821,8 +5821,8 @@ const Ys = {
|
|
|
5821
5821
|
code: vs,
|
|
5822
5822
|
delete: _s,
|
|
5823
5823
|
emphasis: Es,
|
|
5824
|
-
footnoteReference:
|
|
5825
|
-
heading:
|
|
5824
|
+
footnoteReference: Is,
|
|
5825
|
+
heading: As,
|
|
5826
5826
|
html: Ts,
|
|
5827
5827
|
imageReference: zs,
|
|
5828
5828
|
image: Ps,
|
|
@@ -6051,8 +6051,8 @@ function eu(e) {
|
|
|
6051
6051
|
const g = [], C = e.footnoteCounts.get(c);
|
|
6052
6052
|
for (; C !== void 0 && ++p <= C; ) {
|
|
6053
6053
|
g.length > 0 && g.push({ type: "text", value: " " });
|
|
6054
|
-
let
|
|
6055
|
-
typeof
|
|
6054
|
+
let I = typeof t == "string" ? t : t(s, p);
|
|
6055
|
+
typeof I == "string" && (I = { type: "text", value: I }), g.push({
|
|
6056
6056
|
type: "element",
|
|
6057
6057
|
tagName: "a",
|
|
6058
6058
|
properties: {
|
|
@@ -6061,13 +6061,13 @@ function eu(e) {
|
|
|
6061
6061
|
ariaLabel: typeof r == "string" ? r : r(s, p),
|
|
6062
6062
|
className: ["data-footnote-backref"]
|
|
6063
6063
|
},
|
|
6064
|
-
children: Array.isArray(
|
|
6064
|
+
children: Array.isArray(I) ? I : [I]
|
|
6065
6065
|
});
|
|
6066
6066
|
}
|
|
6067
6067
|
const S = f[f.length - 1];
|
|
6068
6068
|
if (S && S.type === "element" && S.tagName === "p") {
|
|
6069
|
-
const
|
|
6070
|
-
|
|
6069
|
+
const I = S.children[S.children.length - 1];
|
|
6070
|
+
I && I.type === "text" ? I.value += " " : S.children.push({ type: "text", value: " " }), S.children.push(...g);
|
|
6071
6071
|
} else
|
|
6072
6072
|
f.push(...g);
|
|
6073
6073
|
const y = {
|
|
@@ -6229,8 +6229,8 @@ function gi(e, n, t, r) {
|
|
|
6229
6229
|
);
|
|
6230
6230
|
if (y.children && p[0] !== au)
|
|
6231
6231
|
for (C = (r ? y.children.length : -1) + l, S = f.concat(y); C > -1 && C < y.children.length; ) {
|
|
6232
|
-
const
|
|
6233
|
-
if (g = a(
|
|
6232
|
+
const I = y.children[C];
|
|
6233
|
+
if (g = a(I, C, S)(), g[0] === nn)
|
|
6234
6234
|
return g;
|
|
6235
6235
|
C = typeof g[1] == "number" ? g[1] : C + l;
|
|
6236
6236
|
}
|
|
@@ -6401,11 +6401,11 @@ function gu() {
|
|
|
6401
6401
|
return u[f];
|
|
6402
6402
|
};
|
|
6403
6403
|
return Ot = function s() {
|
|
6404
|
-
var u, f, c, h, p, g, C = arguments[0], S = 1, y = arguments.length,
|
|
6405
|
-
for (typeof C == "boolean" && (
|
|
6404
|
+
var u, f, c, h, p, g, C = arguments[0], S = 1, y = arguments.length, I = !1;
|
|
6405
|
+
for (typeof C == "boolean" && (I = C, C = arguments[1] || {}, S = 2), (C == null || typeof C != "object" && typeof C != "function") && (C = {}); S < y; ++S)
|
|
6406
6406
|
if (u = arguments[S], u != null)
|
|
6407
6407
|
for (f in u)
|
|
6408
|
-
c = a(C, f), h = a(u, f), C !== h && (
|
|
6408
|
+
c = a(C, f), h = a(u, f), C !== h && (I && h && (o(h) || (p = i(h))) ? (p ? (p = !1, g = c && i(c) ? c : []) : g = c && o(c) ? c : {}, l(C, { name: f, newValue: s(I, g, h) })) : typeof h < "u" && l(C, { name: f, newValue: h }));
|
|
6409
6409
|
return C;
|
|
6410
6410
|
}, Ot;
|
|
6411
6411
|
}
|
|
@@ -6582,15 +6582,15 @@ function pt(e) {
|
|
|
6582
6582
|
"Path must be a string. Received " + JSON.stringify(e)
|
|
6583
6583
|
);
|
|
6584
6584
|
}
|
|
6585
|
-
const Eu = { cwd:
|
|
6586
|
-
function
|
|
6585
|
+
const Eu = { cwd: Iu };
|
|
6586
|
+
function Iu() {
|
|
6587
6587
|
return "/";
|
|
6588
6588
|
}
|
|
6589
6589
|
function on(e) {
|
|
6590
6590
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
|
6591
6591
|
e.auth === void 0);
|
|
6592
6592
|
}
|
|
6593
|
-
function
|
|
6593
|
+
function Au(e) {
|
|
6594
6594
|
if (typeof e == "string")
|
|
6595
6595
|
e = new URL(e);
|
|
6596
6596
|
else if (!on(e)) {
|
|
@@ -6770,7 +6770,7 @@ class yi {
|
|
|
6770
6770
|
* Nothing.
|
|
6771
6771
|
*/
|
|
6772
6772
|
set path(n) {
|
|
6773
|
-
on(n) && (n =
|
|
6773
|
+
on(n) && (n = Au(n)), Ht(n, "path"), this.path !== n && this.history.push(n);
|
|
6774
6774
|
}
|
|
6775
6775
|
/**
|
|
6776
6776
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -7688,7 +7688,7 @@ function Wu(e, n, t) {
|
|
|
7688
7688
|
const c = f[f.length - 1], h = o[l][0], p = o[l][1];
|
|
7689
7689
|
let g = 0;
|
|
7690
7690
|
const S = c.children.indexOf(u);
|
|
7691
|
-
let y = !1,
|
|
7691
|
+
let y = !1, I = [];
|
|
7692
7692
|
h.lastIndex = 0;
|
|
7693
7693
|
let _ = h.exec(u.value);
|
|
7694
7694
|
for (; _; ) {
|
|
@@ -7698,14 +7698,14 @@ function Wu(e, n, t) {
|
|
|
7698
7698
|
stack: [...f, u]
|
|
7699
7699
|
};
|
|
7700
7700
|
let x = p(..._, N);
|
|
7701
|
-
if (typeof x == "string" && (x = x.length > 0 ? { type: "text", value: x } : void 0), x === !1 ? h.lastIndex = L + 1 : (g !== L &&
|
|
7701
|
+
if (typeof x == "string" && (x = x.length > 0 ? { type: "text", value: x } : void 0), x === !1 ? h.lastIndex = L + 1 : (g !== L && I.push({
|
|
7702
7702
|
type: "text",
|
|
7703
7703
|
value: u.value.slice(g, L)
|
|
7704
|
-
}), Array.isArray(x) ?
|
|
7704
|
+
}), Array.isArray(x) ? I.push(...x) : x && I.push(x), g = L + _[0].length, y = !0), !h.global)
|
|
7705
7705
|
break;
|
|
7706
7706
|
_ = h.exec(u.value);
|
|
7707
7707
|
}
|
|
7708
|
-
return y ? (g < u.value.length &&
|
|
7708
|
+
return y ? (g < u.value.length && I.push({ type: "text", value: u.value.slice(g) }), c.children.splice(S, 1, ...I)) : I = [u], S + I.length;
|
|
7709
7709
|
}
|
|
7710
7710
|
}
|
|
7711
7711
|
function Yu(e) {
|
|
@@ -7847,7 +7847,7 @@ function ac(e) {
|
|
|
7847
7847
|
}
|
|
7848
7848
|
function ki(e, n) {
|
|
7849
7849
|
const t = e.input.charCodeAt(e.index - 1);
|
|
7850
|
-
return (e.index === 0 || Oe(t) ||
|
|
7850
|
+
return (e.index === 0 || Oe(t) || At(t)) && // If it’s an email, the previous character should not be a slash.
|
|
7851
7851
|
(!n || t !== 47);
|
|
7852
7852
|
}
|
|
7853
7853
|
xi.peek = gc;
|
|
@@ -7988,19 +7988,19 @@ function _c() {
|
|
|
7988
7988
|
function Ec(e) {
|
|
7989
7989
|
return e.length;
|
|
7990
7990
|
}
|
|
7991
|
-
function
|
|
7991
|
+
function Ic(e, n) {
|
|
7992
7992
|
const t = n || {}, r = (t.align || []).concat(), i = t.stringLength || Ec, o = [], l = [], a = [], s = [];
|
|
7993
7993
|
let u = 0, f = -1;
|
|
7994
7994
|
for (; ++f < e.length; ) {
|
|
7995
7995
|
const C = [], S = [];
|
|
7996
7996
|
let y = -1;
|
|
7997
7997
|
for (e[f].length > u && (u = e[f].length); ++y < e[f].length; ) {
|
|
7998
|
-
const
|
|
7998
|
+
const I = Ac(e[f][y]);
|
|
7999
7999
|
if (t.alignDelimiters !== !1) {
|
|
8000
|
-
const _ = i(
|
|
8000
|
+
const _ = i(I);
|
|
8001
8001
|
S[y] = _, (s[y] === void 0 || _ > s[y]) && (s[y] = _);
|
|
8002
8002
|
}
|
|
8003
|
-
C.push(
|
|
8003
|
+
C.push(I);
|
|
8004
8004
|
}
|
|
8005
8005
|
l[f] = C, a[f] = S;
|
|
8006
8006
|
}
|
|
@@ -8019,12 +8019,12 @@ function Ac(e, n) {
|
|
|
8019
8019
|
const C = o[c];
|
|
8020
8020
|
let S = "", y = "";
|
|
8021
8021
|
C === 99 ? (S = ":", y = ":") : C === 108 ? S = ":" : C === 114 && (y = ":");
|
|
8022
|
-
let
|
|
8022
|
+
let I = t.alignDelimiters === !1 ? 1 : Math.max(
|
|
8023
8023
|
1,
|
|
8024
8024
|
s[c] - S.length - y.length
|
|
8025
8025
|
);
|
|
8026
|
-
const _ = S + "-".repeat(
|
|
8027
|
-
t.alignDelimiters !== !1 && (
|
|
8026
|
+
const _ = S + "-".repeat(I) + y;
|
|
8027
|
+
t.alignDelimiters !== !1 && (I = S.length + I + y.length, I > s[c] && (s[c] = I), p[c] = I), h[c] = _;
|
|
8028
8028
|
}
|
|
8029
8029
|
l.splice(1, 0, h), a.splice(1, 0, p), f = -1;
|
|
8030
8030
|
const g = [];
|
|
@@ -8033,7 +8033,7 @@ function Ac(e, n) {
|
|
|
8033
8033
|
c = -1;
|
|
8034
8034
|
const y = [];
|
|
8035
8035
|
for (; ++c < u; ) {
|
|
8036
|
-
const
|
|
8036
|
+
const I = C[c] || "";
|
|
8037
8037
|
let _ = "", L = "";
|
|
8038
8038
|
if (t.alignDelimiters !== !1) {
|
|
8039
8039
|
const N = s[c] - (S[c] || 0), x = o[c];
|
|
@@ -8041,7 +8041,7 @@ function Ac(e, n) {
|
|
|
8041
8041
|
}
|
|
8042
8042
|
t.delimiterStart !== !1 && !c && y.push("|"), t.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
8043
8043
|
// empty: there will be a closing space.
|
|
8044
|
-
!(t.alignDelimiters === !1 &&
|
|
8044
|
+
!(t.alignDelimiters === !1 && I === "") && (t.delimiterStart !== !1 || c) && y.push(" "), t.alignDelimiters !== !1 && y.push(_), y.push(I), t.alignDelimiters !== !1 && y.push(L), t.padding !== !1 && y.push(" "), (t.delimiterEnd !== !1 || c !== u - 1) && y.push("|");
|
|
8045
8045
|
}
|
|
8046
8046
|
g.push(
|
|
8047
8047
|
t.delimiterEnd === !1 ? y.join("").replace(/ +$/, "") : y.join("")
|
|
@@ -8050,7 +8050,7 @@ function Ac(e, n) {
|
|
|
8050
8050
|
return g.join(`
|
|
8051
8051
|
`);
|
|
8052
8052
|
}
|
|
8053
|
-
function
|
|
8053
|
+
function Ac(e) {
|
|
8054
8054
|
return e == null ? "" : String(e);
|
|
8055
8055
|
}
|
|
8056
8056
|
function br(e) {
|
|
@@ -8200,7 +8200,7 @@ function Oc(e) {
|
|
|
8200
8200
|
function ut(e) {
|
|
8201
8201
|
return "&#x" + e.toString(16).toUpperCase() + ";";
|
|
8202
8202
|
}
|
|
8203
|
-
function
|
|
8203
|
+
function It(e, n, t) {
|
|
8204
8204
|
const r = We(e), i = We(n);
|
|
8205
8205
|
return r === void 0 ? i === void 0 ? (
|
|
8206
8206
|
// Letter inside:
|
|
@@ -8243,13 +8243,13 @@ function Ci(e, n, t, r) {
|
|
|
8243
8243
|
...l.current()
|
|
8244
8244
|
})
|
|
8245
8245
|
);
|
|
8246
|
-
const u = s.charCodeAt(0), f =
|
|
8246
|
+
const u = s.charCodeAt(0), f = It(
|
|
8247
8247
|
r.before.charCodeAt(r.before.length - 1),
|
|
8248
8248
|
u,
|
|
8249
8249
|
i
|
|
8250
8250
|
);
|
|
8251
8251
|
f.inside && (s = ut(u) + s.slice(1));
|
|
8252
|
-
const c = s.charCodeAt(s.length - 1), h =
|
|
8252
|
+
const c = s.charCodeAt(s.length - 1), h = It(r.after.charCodeAt(0), c, i);
|
|
8253
8253
|
h.inside && (s = s.slice(0, -1) + ut(c));
|
|
8254
8254
|
const p = l.move(i);
|
|
8255
8255
|
return o(), t.attentionEncodeSurroundingInfo = {
|
|
@@ -8375,7 +8375,7 @@ function Ei(e, n, t) {
|
|
|
8375
8375
|
function Uc() {
|
|
8376
8376
|
return "`";
|
|
8377
8377
|
}
|
|
8378
|
-
function
|
|
8378
|
+
function Ii(e, n) {
|
|
8379
8379
|
const t = yn(e);
|
|
8380
8380
|
return !!(!n.options.resourceLink && // If there’s a url…
|
|
8381
8381
|
e.url && // And there’s a no title…
|
|
@@ -8386,11 +8386,11 @@ function Ai(e, n) {
|
|
|
8386
8386
|
// references don’t work), space, or angle brackets…
|
|
8387
8387
|
!/[\0- <>\u007F]/.test(e.url));
|
|
8388
8388
|
}
|
|
8389
|
-
|
|
8390
|
-
function
|
|
8389
|
+
Ai.peek = Wc;
|
|
8390
|
+
function Ai(e, n, t, r) {
|
|
8391
8391
|
const i = En(t), o = i === '"' ? "Quote" : "Apostrophe", l = t.createTracker(r);
|
|
8392
8392
|
let a, s;
|
|
8393
|
-
if (
|
|
8393
|
+
if (Ii(e, t)) {
|
|
8394
8394
|
const f = t.stack;
|
|
8395
8395
|
t.stack = [], a = t.enter("autolink");
|
|
8396
8396
|
let c = l.move("<");
|
|
@@ -8429,7 +8429,7 @@ function Ii(e, n, t, r) {
|
|
|
8429
8429
|
), u += l.move(i), s()), u += l.move(")"), a(), u;
|
|
8430
8430
|
}
|
|
8431
8431
|
function Wc(e, n, t) {
|
|
8432
|
-
return
|
|
8432
|
+
return Ii(e, t) ? "<" : "[";
|
|
8433
8433
|
}
|
|
8434
8434
|
Ti.peek = Yc;
|
|
8435
8435
|
function Ti(e, n, t, r) {
|
|
@@ -8455,7 +8455,7 @@ function Ti(e, n, t, r) {
|
|
|
8455
8455
|
function Yc() {
|
|
8456
8456
|
return "[";
|
|
8457
8457
|
}
|
|
8458
|
-
function
|
|
8458
|
+
function In(e) {
|
|
8459
8459
|
const n = e.options.bullet || "*";
|
|
8460
8460
|
if (n !== "*" && n !== "+" && n !== "-")
|
|
8461
8461
|
throw new Error(
|
|
@@ -8464,7 +8464,7 @@ function An(e) {
|
|
|
8464
8464
|
return n;
|
|
8465
8465
|
}
|
|
8466
8466
|
function Qc(e) {
|
|
8467
|
-
const n =
|
|
8467
|
+
const n = In(e), t = e.options.bulletOther;
|
|
8468
8468
|
if (!t)
|
|
8469
8469
|
return n === "*" ? "-" : "*";
|
|
8470
8470
|
if (t !== "*" && t !== "+" && t !== "-")
|
|
@@ -8495,7 +8495,7 @@ function zi(e) {
|
|
|
8495
8495
|
}
|
|
8496
8496
|
function Gc(e, n, t, r) {
|
|
8497
8497
|
const i = t.enter("list"), o = t.bulletCurrent;
|
|
8498
|
-
let l = e.ordered ? Xc(t) :
|
|
8498
|
+
let l = e.ordered ? Xc(t) : In(t);
|
|
8499
8499
|
const a = e.ordered ? l === "." ? ")" : "." : Qc(t);
|
|
8500
8500
|
let s = n && t.bulletLastUsed ? l === t.bulletLastUsed : !1;
|
|
8501
8501
|
if (!e.ordered) {
|
|
@@ -8531,7 +8531,7 @@ function Jc(e) {
|
|
|
8531
8531
|
}
|
|
8532
8532
|
function Kc(e, n, t, r) {
|
|
8533
8533
|
const i = Jc(t);
|
|
8534
|
-
let o = t.bulletCurrent ||
|
|
8534
|
+
let o = t.bulletCurrent || In(t);
|
|
8535
8535
|
n && n.type === "list" && n.ordered && (o = (typeof n.start == "number" && n.start > -1 ? n.start : 1) + (t.options.incrementListMarker === !1 ? 0 : n.children.indexOf(e)) + o);
|
|
8536
8536
|
let l = o.length + 1;
|
|
8537
8537
|
(i === "tab" || i === "mixed" && (n && n.type === "list" && n.spread || e.spread)) && (l = Math.ceil(l / 4) * 4);
|
|
@@ -8599,13 +8599,13 @@ function Pi(e, n, t, r) {
|
|
|
8599
8599
|
...l.current()
|
|
8600
8600
|
})
|
|
8601
8601
|
);
|
|
8602
|
-
const u = s.charCodeAt(0), f =
|
|
8602
|
+
const u = s.charCodeAt(0), f = It(
|
|
8603
8603
|
r.before.charCodeAt(r.before.length - 1),
|
|
8604
8604
|
u,
|
|
8605
8605
|
i
|
|
8606
8606
|
);
|
|
8607
8607
|
f.inside && (s = ut(u) + s.slice(1));
|
|
8608
|
-
const c = s.charCodeAt(s.length - 1), h =
|
|
8608
|
+
const c = s.charCodeAt(s.length - 1), h = It(r.after.charCodeAt(0), c, i);
|
|
8609
8609
|
h.inside && (s = s.slice(0, -1) + ut(c));
|
|
8610
8610
|
const p = l.move(i + i);
|
|
8611
8611
|
return o(), t.attentionEncodeSurroundingInfo = {
|
|
@@ -8643,7 +8643,7 @@ const Li = {
|
|
|
8643
8643
|
image: vi,
|
|
8644
8644
|
imageReference: _i,
|
|
8645
8645
|
inlineCode: Ei,
|
|
8646
|
-
link:
|
|
8646
|
+
link: Ai,
|
|
8647
8647
|
linkReference: Ti,
|
|
8648
8648
|
list: Gc,
|
|
8649
8649
|
listItem: Kc,
|
|
@@ -8737,20 +8737,20 @@ function df(e) {
|
|
|
8737
8737
|
return u(f(p, C, S), p.align);
|
|
8738
8738
|
}
|
|
8739
8739
|
function a(p, g, C, S) {
|
|
8740
|
-
const y = c(p, C, S),
|
|
8741
|
-
return
|
|
8740
|
+
const y = c(p, C, S), I = u([y]);
|
|
8741
|
+
return I.slice(0, I.indexOf(`
|
|
8742
8742
|
`));
|
|
8743
8743
|
}
|
|
8744
8744
|
function s(p, g, C, S) {
|
|
8745
|
-
const y = C.enter("tableCell"),
|
|
8745
|
+
const y = C.enter("tableCell"), I = C.enter("phrasing"), _ = C.containerPhrasing(p, {
|
|
8746
8746
|
...S,
|
|
8747
8747
|
before: o,
|
|
8748
8748
|
after: o
|
|
8749
8749
|
});
|
|
8750
|
-
return
|
|
8750
|
+
return I(), y(), _;
|
|
8751
8751
|
}
|
|
8752
8752
|
function u(p, g) {
|
|
8753
|
-
return
|
|
8753
|
+
return Ic(p, {
|
|
8754
8754
|
align: g,
|
|
8755
8755
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
8756
8756
|
alignDelimiters: r,
|
|
@@ -8763,18 +8763,18 @@ function df(e) {
|
|
|
8763
8763
|
function f(p, g, C) {
|
|
8764
8764
|
const S = p.children;
|
|
8765
8765
|
let y = -1;
|
|
8766
|
-
const
|
|
8766
|
+
const I = [], _ = g.enter("table");
|
|
8767
8767
|
for (; ++y < S.length; )
|
|
8768
|
-
|
|
8769
|
-
return _(),
|
|
8768
|
+
I[y] = c(S[y], g, C);
|
|
8769
|
+
return _(), I;
|
|
8770
8770
|
}
|
|
8771
8771
|
function c(p, g, C) {
|
|
8772
8772
|
const S = p.children;
|
|
8773
8773
|
let y = -1;
|
|
8774
|
-
const
|
|
8774
|
+
const I = [], _ = g.enter("tableRow");
|
|
8775
8775
|
for (; ++y < S.length; )
|
|
8776
|
-
|
|
8777
|
-
return _(),
|
|
8776
|
+
I[y] = s(S[y], p, g, C);
|
|
8777
|
+
return _(), I;
|
|
8778
8778
|
}
|
|
8779
8779
|
function h(p, g, C) {
|
|
8780
8780
|
let S = Li.inlineCode(p, g, C);
|
|
@@ -8854,10 +8854,10 @@ function bf(e) {
|
|
|
8854
8854
|
};
|
|
8855
8855
|
}
|
|
8856
8856
|
const wf = {
|
|
8857
|
-
tokenize:
|
|
8857
|
+
tokenize: If,
|
|
8858
8858
|
partial: !0
|
|
8859
8859
|
}, Di = {
|
|
8860
|
-
tokenize:
|
|
8860
|
+
tokenize: Af,
|
|
8861
8861
|
partial: !0
|
|
8862
8862
|
}, Ni = {
|
|
8863
8863
|
tokenize: Tf,
|
|
@@ -8902,7 +8902,7 @@ function vf(e, n, t) {
|
|
|
8902
8902
|
let i, o;
|
|
8903
8903
|
return l;
|
|
8904
8904
|
function l(c) {
|
|
8905
|
-
return !an(c) || !ji.call(r, r.previous) ||
|
|
8905
|
+
return !an(c) || !ji.call(r, r.previous) || An(r.events) ? t(c) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), a(c));
|
|
8906
8906
|
}
|
|
8907
8907
|
function a(c) {
|
|
8908
8908
|
return an(c) ? (e.consume(c), a) : c === 64 ? (e.consume(c), s) : t(c);
|
|
@@ -8921,7 +8921,7 @@ function _f(e, n, t) {
|
|
|
8921
8921
|
const r = this;
|
|
8922
8922
|
return i;
|
|
8923
8923
|
function i(l) {
|
|
8924
|
-
return l !== 87 && l !== 119 || !Oi.call(r, r.previous) ||
|
|
8924
|
+
return l !== 87 && l !== 119 || !Oi.call(r, r.previous) || An(r.events) ? t(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(wf, e.attempt(Di, e.attempt(Ni, o), t), t)(l));
|
|
8925
8925
|
}
|
|
8926
8926
|
function o(l) {
|
|
8927
8927
|
return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), n(l);
|
|
@@ -8932,7 +8932,7 @@ function Ef(e, n, t) {
|
|
|
8932
8932
|
let i = "", o = !1;
|
|
8933
8933
|
return l;
|
|
8934
8934
|
function l(c) {
|
|
8935
|
-
return (c === 72 || c === 104) && Bi.call(r, r.previous) && !
|
|
8935
|
+
return (c === 72 || c === 104) && Bi.call(r, r.previous) && !An(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), i += String.fromCodePoint(c), e.consume(c), a) : t(c);
|
|
8936
8936
|
}
|
|
8937
8937
|
function a(c) {
|
|
8938
8938
|
if (ae(c) && i.length < 5)
|
|
@@ -8948,13 +8948,13 @@ function Ef(e, n, t) {
|
|
|
8948
8948
|
return c === 47 ? (e.consume(c), o ? u : (o = !0, s)) : t(c);
|
|
8949
8949
|
}
|
|
8950
8950
|
function u(c) {
|
|
8951
|
-
return c === null || vt(c) || J(c) || Oe(c) ||
|
|
8951
|
+
return c === null || vt(c) || J(c) || Oe(c) || At(c) ? t(c) : e.attempt(Di, e.attempt(Ni, f), t)(c);
|
|
8952
8952
|
}
|
|
8953
8953
|
function f(c) {
|
|
8954
8954
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), n(c);
|
|
8955
8955
|
}
|
|
8956
8956
|
}
|
|
8957
|
-
function
|
|
8957
|
+
function If(e, n, t) {
|
|
8958
8958
|
let r = 0;
|
|
8959
8959
|
return i;
|
|
8960
8960
|
function i(l) {
|
|
@@ -8964,11 +8964,11 @@ function Af(e, n, t) {
|
|
|
8964
8964
|
return l === null ? t(l) : n(l);
|
|
8965
8965
|
}
|
|
8966
8966
|
}
|
|
8967
|
-
function
|
|
8967
|
+
function Af(e, n, t) {
|
|
8968
8968
|
let r, i, o;
|
|
8969
8969
|
return l;
|
|
8970
8970
|
function l(u) {
|
|
8971
|
-
return u === 46 || u === 95 ? e.check(Ri, s, a)(u) : u === null || J(u) || Oe(u) || u !== 45 &&
|
|
8971
|
+
return u === 46 || u === 95 ? e.check(Ri, s, a)(u) : u === null || J(u) || Oe(u) || u !== 45 && At(u) ? s(u) : (o = !0, e.consume(u), l);
|
|
8972
8972
|
}
|
|
8973
8973
|
function a(u) {
|
|
8974
8974
|
return u === 95 ? r = !0 : (i = r, r = void 0), e.consume(u), l;
|
|
@@ -9027,7 +9027,7 @@ function ji(e) {
|
|
|
9027
9027
|
function an(e) {
|
|
9028
9028
|
return e === 43 || e === 45 || e === 46 || e === 95 || ie(e);
|
|
9029
9029
|
}
|
|
9030
|
-
function
|
|
9030
|
+
function An(e) {
|
|
9031
9031
|
let n = e.length, t = !1;
|
|
9032
9032
|
for (; n--; ) {
|
|
9033
9033
|
const r = e[n][1];
|
|
@@ -9409,7 +9409,7 @@ function Wf(e, n, t) {
|
|
|
9409
9409
|
return k === 124 || (l = !0, o += 1), f(k);
|
|
9410
9410
|
}
|
|
9411
9411
|
function f(k) {
|
|
9412
|
-
return k === null ? t(k) : D(k) ? o > 1 ? (o = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(k), e.exit("lineEnding"), p) : t(k) :
|
|
9412
|
+
return k === null ? t(k) : D(k) ? o > 1 ? (o = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(k), e.exit("lineEnding"), p) : t(k) : $(k) ? q(e, f, "whitespace")(k) : (o += 1, l && (l = !1, i += 1), k === 124 ? (e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), l = !0, f) : (e.enter("data"), c(k)));
|
|
9413
9413
|
}
|
|
9414
9414
|
function c(k) {
|
|
9415
9415
|
return k === null || k === 124 || J(k) ? (e.exit("data"), f(k)) : (e.consume(k), k === 92 ? h : c);
|
|
@@ -9418,25 +9418,25 @@ function Wf(e, n, t) {
|
|
|
9418
9418
|
return k === 92 || k === 124 ? (e.consume(k), c) : c(k);
|
|
9419
9419
|
}
|
|
9420
9420
|
function p(k) {
|
|
9421
|
-
return r.interrupt = !1, r.parser.lazy[r.now().line] ? t(k) : (e.enter("tableDelimiterRow"), l = !1,
|
|
9421
|
+
return r.interrupt = !1, r.parser.lazy[r.now().line] ? t(k) : (e.enter("tableDelimiterRow"), l = !1, $(k) ? q(e, g, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(k) : g(k));
|
|
9422
9422
|
}
|
|
9423
9423
|
function g(k) {
|
|
9424
9424
|
return k === 45 || k === 58 ? S(k) : k === 124 ? (l = !0, e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), C) : N(k);
|
|
9425
9425
|
}
|
|
9426
9426
|
function C(k) {
|
|
9427
|
-
return
|
|
9427
|
+
return $(k) ? q(e, S, "whitespace")(k) : S(k);
|
|
9428
9428
|
}
|
|
9429
9429
|
function S(k) {
|
|
9430
9430
|
return k === 58 ? (o += 1, l = !0, e.enter("tableDelimiterMarker"), e.consume(k), e.exit("tableDelimiterMarker"), y) : k === 45 ? (o += 1, y(k)) : k === null || D(k) ? L(k) : N(k);
|
|
9431
9431
|
}
|
|
9432
9432
|
function y(k) {
|
|
9433
|
-
return k === 45 ? (e.enter("tableDelimiterFiller"),
|
|
9433
|
+
return k === 45 ? (e.enter("tableDelimiterFiller"), I(k)) : N(k);
|
|
9434
9434
|
}
|
|
9435
|
-
function
|
|
9436
|
-
return k === 45 ? (e.consume(k),
|
|
9435
|
+
function I(k) {
|
|
9436
|
+
return k === 45 ? (e.consume(k), I) : k === 58 ? (l = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(k), e.exit("tableDelimiterMarker"), _) : (e.exit("tableDelimiterFiller"), _(k));
|
|
9437
9437
|
}
|
|
9438
9438
|
function _(k) {
|
|
9439
|
-
return
|
|
9439
|
+
return $(k) ? q(e, L, "whitespace")(k) : L(k);
|
|
9440
9440
|
}
|
|
9441
9441
|
function L(k) {
|
|
9442
9442
|
return k === 124 ? g(k) : k === null || D(k) ? !l || i !== o ? N(k) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), n(k)) : N(k);
|
|
@@ -9448,13 +9448,13 @@ function Wf(e, n, t) {
|
|
|
9448
9448
|
return e.enter("tableRow"), O(k);
|
|
9449
9449
|
}
|
|
9450
9450
|
function O(k) {
|
|
9451
|
-
return k === 124 ? (e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), O) : k === null || D(k) ? (e.exit("tableRow"), n(k)) :
|
|
9452
|
-
}
|
|
9453
|
-
function $(k) {
|
|
9454
|
-
return k === null || k === 124 || J(k) ? (e.exit("data"), O(k)) : (e.consume(k), k === 92 ? H : $);
|
|
9451
|
+
return k === 124 ? (e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), O) : k === null || D(k) ? (e.exit("tableRow"), n(k)) : $(k) ? q(e, O, "whitespace")(k) : (e.enter("data"), H(k));
|
|
9455
9452
|
}
|
|
9456
9453
|
function H(k) {
|
|
9457
|
-
return k ===
|
|
9454
|
+
return k === null || k === 124 || J(k) ? (e.exit("data"), O(k)) : (e.consume(k), k === 92 ? j : H);
|
|
9455
|
+
}
|
|
9456
|
+
function j(k) {
|
|
9457
|
+
return k === 92 || k === 124 ? (e.consume(k), H) : H(k);
|
|
9458
9458
|
}
|
|
9459
9459
|
}
|
|
9460
9460
|
function Yf(e, n) {
|
|
@@ -9543,7 +9543,7 @@ function Gf(e, n, t) {
|
|
|
9543
9543
|
return s === 93 ? (e.enter("taskListCheckMarker"), e.consume(s), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), a) : t(s);
|
|
9544
9544
|
}
|
|
9545
9545
|
function a(s) {
|
|
9546
|
-
return D(s) ? n(s) :
|
|
9546
|
+
return D(s) ? n(s) : $(s) ? e.check({
|
|
9547
9547
|
tokenize: Jf
|
|
9548
9548
|
}, n, t)(s) : t(s);
|
|
9549
9549
|
}
|
|
@@ -9640,12 +9640,12 @@ function Sp({ part: e }) {
|
|
|
9640
9640
|
] })
|
|
9641
9641
|
] });
|
|
9642
9642
|
}
|
|
9643
|
-
const vp = "_card_jwkcu_1", _p = "_cardClickable_jwkcu_14", Ep = "_header_jwkcu_24",
|
|
9643
|
+
const vp = "_card_jwkcu_1", _p = "_cardClickable_jwkcu_14", Ep = "_header_jwkcu_24", Ip = "_title_jwkcu_30", Ap = "_subtitle_jwkcu_36", Tp = "_fields_jwkcu_41", zp = "_fieldRow_jwkcu_48", Pp = "_fieldLabel_jwkcu_55", Lp = "_fieldValue_jwkcu_61", Dp = "_badge_jwkcu_68", Np = "_badgeSuccess_jwkcu_76", Rp = "_badgeWarning_jwkcu_81", Mp = "_badgeDanger_jwkcu_86", Fp = "_badgeNeutral_jwkcu_91", oe = {
|
|
9644
9644
|
card: vp,
|
|
9645
9645
|
cardClickable: _p,
|
|
9646
9646
|
header: Ep,
|
|
9647
|
-
title:
|
|
9648
|
-
subtitle:
|
|
9647
|
+
title: Ip,
|
|
9648
|
+
subtitle: Ap,
|
|
9649
9649
|
fields: Tp,
|
|
9650
9650
|
fieldRow: zp,
|
|
9651
9651
|
fieldLabel: Pp,
|
|
@@ -9733,7 +9733,7 @@ function Wp({ part: e, onProposalConfirm: n, onProposalCancel: t, onEntityClick:
|
|
|
9733
9733
|
return /* @__PURE__ */ b($p, { part: e, onEntityClick: r });
|
|
9734
9734
|
case "error":
|
|
9735
9735
|
return /* @__PURE__ */ Y("span", { className: xt.errorText, children: [
|
|
9736
|
-
/* @__PURE__ */ b(
|
|
9736
|
+
/* @__PURE__ */ b(Al, { className: xt.errorIcon }),
|
|
9737
9737
|
e.message
|
|
9738
9738
|
] });
|
|
9739
9739
|
default:
|
|
@@ -9942,7 +9942,7 @@ const Sh = "_wrapper_1e3w5_1", vh = "_icon_1e3w5_27", _h = "_message_1e3w5_39",
|
|
|
9942
9942
|
message: _h,
|
|
9943
9943
|
dismiss: Eh
|
|
9944
9944
|
};
|
|
9945
|
-
function
|
|
9945
|
+
function Ih({ message: e, onDismiss: n }) {
|
|
9946
9946
|
const t = Te();
|
|
9947
9947
|
return /* @__PURE__ */ Y("div", { className: wt.wrapper, role: "alert", children: [
|
|
9948
9948
|
/* @__PURE__ */ b("svg", { className: wt.icon, viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ b("path", { fillRule: "evenodd", d: "M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" }) }),
|
|
@@ -9950,8 +9950,8 @@ function Ah({ message: e, onDismiss: n }) {
|
|
|
9950
9950
|
n && /* @__PURE__ */ b("button", { className: wt.dismiss, onClick: n, "aria-label": t.errorDismiss, children: /* @__PURE__ */ b("svg", { viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ b("path", { d: "M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z" }) }) })
|
|
9951
9951
|
] });
|
|
9952
9952
|
}
|
|
9953
|
-
const
|
|
9954
|
-
chat:
|
|
9953
|
+
const Ah = "_chat_13051_1", Th = {
|
|
9954
|
+
chat: Ah
|
|
9955
9955
|
};
|
|
9956
9956
|
function zh({
|
|
9957
9957
|
messages: e,
|
|
@@ -9992,7 +9992,7 @@ function zh({
|
|
|
9992
9992
|
renderPart: C
|
|
9993
9993
|
}
|
|
9994
9994
|
),
|
|
9995
|
-
i && /* @__PURE__ */ b(
|
|
9995
|
+
i && /* @__PURE__ */ b(Ih, { message: i }),
|
|
9996
9996
|
/* @__PURE__ */ b(
|
|
9997
9997
|
Ch,
|
|
9998
9998
|
{
|
|
@@ -10018,21 +10018,29 @@ const Ph = "_header_1saak_1", Lh = "_left_1saak_23", Dh = "_icon_1saak_35", Nh =
|
|
|
10018
10018
|
resetBtn: Rh,
|
|
10019
10019
|
actions: Mh
|
|
10020
10020
|
};
|
|
10021
|
-
function Fh({
|
|
10022
|
-
|
|
10021
|
+
function Fh({
|
|
10022
|
+
title: e,
|
|
10023
|
+
onMinimize: n,
|
|
10024
|
+
isMinimized: t,
|
|
10025
|
+
icon: r,
|
|
10026
|
+
onReset: i,
|
|
10027
|
+
headerActions: o
|
|
10028
|
+
}) {
|
|
10029
|
+
const l = Te();
|
|
10023
10030
|
return /* @__PURE__ */ Y("div", { className: Ne.header, children: [
|
|
10024
10031
|
/* @__PURE__ */ Y("div", { className: Ne.left, children: [
|
|
10025
10032
|
/* @__PURE__ */ b("span", { className: Ne.icon, "aria-hidden": "true", children: r ?? /* @__PURE__ */ b(Nr, {}) }),
|
|
10026
|
-
/* @__PURE__ */ b("span", { className: Ne.title, children: e ??
|
|
10033
|
+
/* @__PURE__ */ b("span", { className: Ne.title, children: e ?? l.sidebarTitle })
|
|
10027
10034
|
] }),
|
|
10028
|
-
(n || i) && /* @__PURE__ */ Y("div", { className: Ne.actions, children: [
|
|
10035
|
+
(n || i || o) && /* @__PURE__ */ Y("div", { className: Ne.actions, children: [
|
|
10036
|
+
o,
|
|
10029
10037
|
i && /* @__PURE__ */ b(
|
|
10030
10038
|
"button",
|
|
10031
10039
|
{
|
|
10032
10040
|
className: Ne.resetBtn,
|
|
10033
10041
|
onClick: i,
|
|
10034
|
-
title:
|
|
10035
|
-
"aria-label":
|
|
10042
|
+
title: l.resetConversation,
|
|
10043
|
+
"aria-label": l.resetConversation,
|
|
10036
10044
|
children: "↺"
|
|
10037
10045
|
}
|
|
10038
10046
|
),
|
|
@@ -10041,15 +10049,15 @@ function Fh({ title: e, onMinimize: n, isMinimized: t, icon: r, onReset: i }) {
|
|
|
10041
10049
|
{
|
|
10042
10050
|
className: Ne.resetBtn,
|
|
10043
10051
|
onClick: n,
|
|
10044
|
-
title: t ?
|
|
10045
|
-
"aria-label": t ?
|
|
10046
|
-
children: t ? /* @__PURE__ */ b(
|
|
10052
|
+
title: t ? l.expandSidebar : l.minimizeSidebar,
|
|
10053
|
+
"aria-label": t ? l.expandSidebar : l.minimizeSidebar,
|
|
10054
|
+
children: t ? /* @__PURE__ */ b(Il, {}) : /* @__PURE__ */ b(El, {})
|
|
10047
10055
|
}
|
|
10048
10056
|
)
|
|
10049
10057
|
] })
|
|
10050
10058
|
] });
|
|
10051
10059
|
}
|
|
10052
|
-
const Oh = "_sidebar_u9ybt_1", Bh = "_minimized_u9ybt_39",
|
|
10060
|
+
const Oh = "_sidebar_u9ybt_1", Bh = "_minimized_u9ybt_39", Ir = {
|
|
10053
10061
|
sidebar: Oh,
|
|
10054
10062
|
minimized: Bh
|
|
10055
10063
|
};
|
|
@@ -10063,52 +10071,54 @@ function ld({
|
|
|
10063
10071
|
style: l,
|
|
10064
10072
|
onReset: a,
|
|
10065
10073
|
renderPart: s,
|
|
10066
|
-
onEntityClick: u
|
|
10074
|
+
onEntityClick: u,
|
|
10075
|
+
headerActions: f
|
|
10067
10076
|
}) {
|
|
10068
|
-
const [
|
|
10069
|
-
messages:
|
|
10070
|
-
input:
|
|
10071
|
-
setInput:
|
|
10072
|
-
sendMessage:
|
|
10073
|
-
stop:
|
|
10074
|
-
isLoading:
|
|
10075
|
-
isConnecting:
|
|
10076
|
-
error:
|
|
10077
|
-
reset:
|
|
10078
|
-
confirmProposal:
|
|
10079
|
-
cancelProposal:
|
|
10080
|
-
} = xl(),
|
|
10081
|
-
|
|
10077
|
+
const [c, h] = Me(!1), {
|
|
10078
|
+
messages: p,
|
|
10079
|
+
input: g,
|
|
10080
|
+
setInput: C,
|
|
10081
|
+
sendMessage: S,
|
|
10082
|
+
stop: y,
|
|
10083
|
+
isLoading: I,
|
|
10084
|
+
isConnecting: _,
|
|
10085
|
+
error: L,
|
|
10086
|
+
reset: N,
|
|
10087
|
+
confirmProposal: x,
|
|
10088
|
+
cancelProposal: O
|
|
10089
|
+
} = xl(), H = a ? () => {
|
|
10090
|
+
N(), a();
|
|
10082
10091
|
} : void 0;
|
|
10083
10092
|
return /* @__PURE__ */ Y(
|
|
10084
10093
|
"aside",
|
|
10085
10094
|
{
|
|
10086
|
-
className: [
|
|
10087
|
-
style: { height:
|
|
10095
|
+
className: [Ir.sidebar, c ? Ir.minimized : "", o].filter(Boolean).join(" "),
|
|
10096
|
+
style: { height: c ? void 0 : i, ...l },
|
|
10088
10097
|
children: [
|
|
10089
10098
|
/* @__PURE__ */ b(
|
|
10090
10099
|
Fh,
|
|
10091
10100
|
{
|
|
10092
10101
|
title: e,
|
|
10093
10102
|
icon: n,
|
|
10094
|
-
onMinimize: () =>
|
|
10095
|
-
isMinimized:
|
|
10096
|
-
onReset:
|
|
10103
|
+
onMinimize: () => h((j) => !j),
|
|
10104
|
+
isMinimized: c,
|
|
10105
|
+
onReset: H,
|
|
10106
|
+
headerActions: f
|
|
10097
10107
|
}
|
|
10098
10108
|
),
|
|
10099
|
-
!
|
|
10109
|
+
!c && /* @__PURE__ */ b(
|
|
10100
10110
|
zh,
|
|
10101
10111
|
{
|
|
10102
|
-
messages:
|
|
10103
|
-
input:
|
|
10104
|
-
isLoading:
|
|
10105
|
-
isConnecting:
|
|
10106
|
-
error:
|
|
10107
|
-
onInputChange:
|
|
10108
|
-
onSend:
|
|
10109
|
-
onStop:
|
|
10110
|
-
onProposalConfirm:
|
|
10111
|
-
onProposalCancel:
|
|
10112
|
+
messages: p,
|
|
10113
|
+
input: g,
|
|
10114
|
+
isLoading: I,
|
|
10115
|
+
isConnecting: _,
|
|
10116
|
+
error: L,
|
|
10117
|
+
onInputChange: C,
|
|
10118
|
+
onSend: S,
|
|
10119
|
+
onStop: y,
|
|
10120
|
+
onProposalConfirm: x,
|
|
10121
|
+
onProposalCancel: O,
|
|
10112
10122
|
assistantIcon: n,
|
|
10113
10123
|
actions: t,
|
|
10114
10124
|
sendIcon: r,
|
|
@@ -10163,7 +10173,7 @@ export {
|
|
|
10163
10173
|
rd as AiChatProvider,
|
|
10164
10174
|
$i as AiEntityCard,
|
|
10165
10175
|
$p as AiEntityListPart,
|
|
10166
|
-
|
|
10176
|
+
Ih as AiError,
|
|
10167
10177
|
Ch as AiInput,
|
|
10168
10178
|
rh as AiMessageBubble,
|
|
10169
10179
|
ph as AiMessageList,
|