zudoku 0.46.1 → 0.46.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/validators/InputSidebarSchema.d.ts +3 -0
- package/dist/config/validators/InputSidebarSchema.js +1 -0
- package/dist/config/validators/InputSidebarSchema.js.map +1 -1
- package/dist/config/validators/SidebarSchema.d.ts +1 -1
- package/dist/config/validators/validate.d.ts +12 -12
- package/dist/config/validators/validate.js +3 -1
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +0 -5
- package/dist/lib/authentication/AuthenticationPlugin.js +0 -12
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +2 -3
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +110 -15
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +3 -3
- package/dist/lib/plugins/api-keys/index.js +14 -14
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +11 -91
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
- package/dist/lib/plugins/openapi/playground/BodyPanel.js +22 -0
- package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -1
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.js +25 -25
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -1
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js +2 -2
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +3 -8
- package/dist/lib/plugins/openapi/playground/Playground.js +70 -65
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +4 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +29 -20
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +2 -2
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +16 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +10 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
- package/dist/lib/shiki.d.ts +8 -12
- package/dist/lib/shiki.js +11 -13
- package/dist/lib/shiki.js.map +1 -1
- package/dist/lib/ui/CodeBlock.js +1 -1
- package/dist/lib/ui/CodeBlock.js.map +1 -1
- package/dist/lib/ui/Dialog.d.ts +3 -1
- package/dist/lib/ui/Dialog.js +2 -2
- package/dist/lib/ui/Dialog.js.map +1 -1
- package/dist/lib/util/humanFileSize.d.ts +6 -0
- package/dist/lib/util/humanFileSize.js +14 -0
- package/dist/lib/util/humanFileSize.js.map +1 -0
- package/dist/lib/util/humanFileSize.test.d.ts +1 -0
- package/dist/lib/util/humanFileSize.test.js +22 -0
- package/dist/lib/util/humanFileSize.test.js.map +1 -0
- package/dist/vite/build.js +1 -4
- package/dist/vite/build.js.map +1 -1
- package/lib/{Callout-BkgOUkoZ.js → Callout-CoVxYafP.js} +2 -2
- package/lib/{Callout-BkgOUkoZ.js.map → Callout-CoVxYafP.js.map} +1 -1
- package/lib/{Dialog-Du6WMcIA.js → Dialog-BxpuVLh9.js} +25 -25
- package/lib/Dialog-BxpuVLh9.js.map +1 -0
- package/lib/{Markdown-BRAyzyUJ.js → Markdown-D81l28Ib.js} +310 -306
- package/lib/{Markdown-BRAyzyUJ.js.map → Markdown-D81l28Ib.js.map} +1 -1
- package/lib/{MdxPage-B3v1BSKr.js → MdxPage-S_CxlNmX.js} +5 -5
- package/lib/{MdxPage-B3v1BSKr.js.map → MdxPage-S_CxlNmX.js.map} +1 -1
- package/lib/{OasProvider-5jrFuhVk.js → OasProvider-D5rt6WMb.js} +3 -3
- package/lib/{OasProvider-5jrFuhVk.js.map → OasProvider-D5rt6WMb.js.map} +1 -1
- package/lib/{OperationList-BmoMLQPO.js → OperationList-CNhg654C.js} +1139 -1131
- package/lib/OperationList-CNhg654C.js.map +1 -0
- package/lib/{Pagination-Cr0fWZS3.js → Pagination-CCxhL836.js} +2 -2
- package/lib/{Pagination-Cr0fWZS3.js.map → Pagination-CCxhL836.js.map} +1 -1
- package/lib/{RouteGuard-PrSVLbSr.js → RouteGuard-CZ_uLv3g.js} +6 -6
- package/lib/{RouteGuard-PrSVLbSr.js.map → RouteGuard-CZ_uLv3g.js.map} +1 -1
- package/lib/{SchemaList-B4riYLoP.js → SchemaList-BvzCrTYg.js} +6 -6
- package/lib/{SchemaList-B4riYLoP.js.map → SchemaList-BvzCrTYg.js.map} +1 -1
- package/lib/{SchemaView-CPZ6RgsF.js → SchemaView-Br1RupCp.js} +3 -3
- package/lib/{SchemaView-CPZ6RgsF.js.map → SchemaView-Br1RupCp.js.map} +1 -1
- package/lib/{SignUp-CWaiH0tY.js → SignUp-B-1Pvc-8.js} +3 -3
- package/lib/{SignUp-CWaiH0tY.js.map → SignUp-B-1Pvc-8.js.map} +1 -1
- package/lib/{Slot-Bo6K4tnb.js → Slot-T8NJUkm4.js} +11 -11
- package/lib/{Slot-Bo6K4tnb.js.map → Slot-T8NJUkm4.js.map} +1 -1
- package/lib/{SyntaxHighlight-DedRjJNr.js → SyntaxHighlight-Cz6Me7-F.js} +4474 -3323
- package/lib/SyntaxHighlight-Cz6Me7-F.js.map +1 -0
- package/lib/{Toc-lL3fzNkl.js → Toc-PA-j0gEu.js} +2 -2
- package/lib/{Toc-lL3fzNkl.js.map → Toc-PA-j0gEu.js.map} +1 -1
- package/lib/{chunk-BAXFHI7N-C9WnHsLV.js → chunk-DQRVZFIR-BblmKnHy.js} +697 -697
- package/lib/chunk-DQRVZFIR-BblmKnHy.js.map +1 -0
- package/lib/{circular-oB4auIIg.js → circular-5FeDWJOn.js} +1812 -1807
- package/lib/circular-5FeDWJOn.js.map +1 -0
- package/lib/{createServer-DCB82j2t.js → createServer-BC2RZgmW.js} +3648 -3493
- package/lib/createServer-BC2RZgmW.js.map +1 -0
- package/lib/{hook-DawSLaZr.js → hook-k7PfUIsj.js} +10 -10
- package/lib/{hook-DawSLaZr.js.map → hook-k7PfUIsj.js.map} +1 -1
- package/lib/{index-BXYvD5-7.js → index-CJZthJSj.js} +1053 -1095
- package/lib/index-CJZthJSj.js.map +1 -0
- package/lib/index.esm-Cp4wkyud.js +1236 -0
- package/lib/index.esm-Cp4wkyud.js.map +1 -0
- package/lib/{mutation-oxMvODNQ.js → mutation-BSeQ8pEK.js} +2 -2
- package/lib/{mutation-oxMvODNQ.js.map → mutation-BSeQ8pEK.js.map} +1 -1
- package/lib/react-nprogress.esm-C2MPXjiJ.js +389 -0
- package/lib/react-nprogress.esm-C2MPXjiJ.js.map +1 -0
- package/lib/ui/CodeBlock.js +17 -16
- package/lib/ui/CodeBlock.js.map +1 -1
- package/lib/ui/Command.js +1 -1
- package/lib/ui/Dialog.js +25 -25
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Form.js +1 -1
- package/lib/ui/SyntaxHighlight.js +2 -2
- package/lib/{useExposedProps-DG8J6ewJ.js → useExposedProps-BZQkZneR.js} +2 -2
- package/lib/{useExposedProps-DG8J6ewJ.js.map → useExposedProps-BZQkZneR.js.map} +1 -1
- package/lib/{useMutation-C_j3dA_L.js → useMutation-CZSmsIGW.js} +3 -3
- package/lib/{useMutation-C_j3dA_L.js.map → useMutation-CZSmsIGW.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +57 -66
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1698 -2082
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +11 -11
- package/lib/zudoku.plugin-api-catalog.js +5 -5
- package/lib/zudoku.plugin-api-keys.js +473 -4970
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +2 -2
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +5 -5
- package/package.json +33 -34
- package/src/lib/authentication/AuthenticationPlugin.tsx +0 -14
- package/src/lib/components/navigation/SidebarItem.tsx +2 -1
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +193 -48
- package/src/lib/plugins/api-keys/index.tsx +25 -18
- package/src/lib/plugins/openapi/Sidecar.tsx +11 -97
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +46 -0
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +4 -1
- package/src/lib/plugins/openapi/playground/Headers.tsx +110 -106
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +13 -11
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +2 -2
- package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -1
- package/src/lib/plugins/openapi/playground/Playground.tsx +127 -211
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +2 -1
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +1 -1
- package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +74 -39
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +4 -1
- package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
- package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
- package/src/lib/shiki.ts +21 -22
- package/src/lib/ui/CodeBlock.tsx +1 -0
- package/src/lib/ui/Dialog.tsx +11 -7
- package/src/lib/util/humanFileSize.test.ts +24 -0
- package/src/lib/util/humanFileSize.ts +16 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +0 -7
- package/dist/lib/plugins/openapi/playground/SubmitButton.js +0 -19
- package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +0 -1
- package/lib/Dialog-Du6WMcIA.js.map +0 -1
- package/lib/OperationList-BmoMLQPO.js.map +0 -1
- package/lib/SyntaxHighlight-DedRjJNr.js.map +0 -1
- package/lib/chunk-BAXFHI7N-C9WnHsLV.js.map +0 -1
- package/lib/circular-oB4auIIg.js.map +0 -1
- package/lib/createServer-DCB82j2t.js.map +0 -1
- package/lib/index-BXYvD5-7.js.map +0 -1
- package/lib/index.esm-DSfX_eMP.js +0 -1216
- package/lib/index.esm-DSfX_eMP.js.map +0 -1
- package/src/lib/plugins/openapi/playground/SubmitButton.tsx +0 -70
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { j as P } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import * as us from "react";
|
|
3
3
|
import { useState as et, useEffect as Ye, useRef as Je, createContext as is, use as as, useCallback as ti, useMemo as sn, memo as ni } from "react";
|
|
4
|
-
import { s as en, p as qe, a as or, v as Tn, b as ss, V as os, u as ls, t as cs, c as vr, d as zr, o as Me, z as ri, e as fs, f as hs, g as ds, i as ui, j as ms, k as Yr, E as ps, S as Es, l as Ts } from "./SyntaxHighlight-
|
|
4
|
+
import { s as en, p as qe, a as or, v as Tn, b as ss, V as os, u as ls, t as cs, c as vr, d as zr, o as Me, z as ri, e as fs, f as hs, g as ds, i as ui, j as ms, k as Yr, E as ps, S as Es, l as Ts } from "./SyntaxHighlight-Cz6Me7-F.js";
|
|
5
5
|
import { CheckIcon as bs, CopyIcon as gs, ChevronRightIcon as As, ExternalLinkIcon as _s, LinkIcon as Cs } from "lucide-react";
|
|
6
6
|
import { c as ce } from "./cn-wvCW-ho6.js";
|
|
7
|
-
import { u as bn, d as Is, g as lr, j as xs } from "./chunk-
|
|
7
|
+
import { u as bn, d as Is, g as lr, j as xs } from "./chunk-DQRVZFIR-BblmKnHy.js";
|
|
8
8
|
import * as Et from "@radix-ui/react-tooltip";
|
|
9
|
-
import { T as
|
|
9
|
+
import { T as Ns, U as tn, j as ii, k as Ss } from "./hook-k7PfUIsj.js";
|
|
10
10
|
import * as yn from "@radix-ui/react-collapsible";
|
|
11
11
|
import { B as ks } from "./Button-BE9IVkWV.js";
|
|
12
12
|
import { c as Os } from "./index-DI5SPFK9.js";
|
|
@@ -285,14 +285,14 @@ function Vs(e) {
|
|
|
285
285
|
contentType: "flow",
|
|
286
286
|
previous: a,
|
|
287
287
|
_tokenizer: u
|
|
288
|
-
}),
|
|
288
|
+
}), N(R);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function N(R) {
|
|
291
291
|
if (R === null) {
|
|
292
292
|
L(e.exit("chunkFlow"), !0), x(0), e.consume(R);
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
|
-
return H(R) ? (e.consume(R), L(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, o) : (e.consume(R),
|
|
295
|
+
return H(R) ? (e.consume(R), L(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, o) : (e.consume(R), N);
|
|
296
296
|
}
|
|
297
297
|
function L(R, z) {
|
|
298
298
|
const Y = t.sliceStream(R);
|
|
@@ -599,7 +599,7 @@ function ro(e, t, n) {
|
|
|
599
599
|
return k === o ? (i++, e.consume(k), h) : i < 3 ? n(k) : (e.exit("codeFencedFenceSequence"), j(k) ? W(e, f, "whitespace")(k) : f(k));
|
|
600
600
|
}
|
|
601
601
|
function f(k) {
|
|
602
|
-
return k === null || H(k) ? (e.exit("codeFencedFence"), r.interrupt ? t(k) : e.check(Gr,
|
|
602
|
+
return k === null || H(k) ? (e.exit("codeFencedFence"), r.interrupt ? t(k) : e.check(Gr, N, z)(k)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
603
603
|
contentType: "string"
|
|
604
604
|
}), p(k));
|
|
605
605
|
}
|
|
@@ -614,7 +614,7 @@ function ro(e, t, n) {
|
|
|
614
614
|
function A(k) {
|
|
615
615
|
return k === null || H(k) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), f(k)) : k === 96 && k === o ? n(k) : (e.consume(k), A);
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function N(k) {
|
|
618
618
|
return e.attempt(u, z, L)(k);
|
|
619
619
|
}
|
|
620
620
|
function L(k) {
|
|
@@ -629,7 +629,7 @@ function ro(e, t, n) {
|
|
|
629
629
|
)(k) : w(k);
|
|
630
630
|
}
|
|
631
631
|
function w(k) {
|
|
632
|
-
return k === null || H(k) ? e.check(Gr,
|
|
632
|
+
return k === null || H(k) ? e.check(Gr, N, z)(k) : (e.enter("codeFlowValue"), R(k));
|
|
633
633
|
}
|
|
634
634
|
function R(k) {
|
|
635
635
|
return k === null || H(k) ? (e.exit("codeFlowValue"), w(k)) : (e.consume(k), R);
|
|
@@ -774,8 +774,8 @@ function ho(e, t) {
|
|
|
774
774
|
const n = e[t][1], r = e[t][2];
|
|
775
775
|
let u = t - 1;
|
|
776
776
|
const a = [], i = n._tokenizer || r.parser[n.contentType](n.start), o = i.events, l = [], c = {};
|
|
777
|
-
let h, f, p = -1, m = n, A = 0,
|
|
778
|
-
const L = [
|
|
777
|
+
let h, f, p = -1, m = n, A = 0, N = 0;
|
|
778
|
+
const L = [N];
|
|
779
779
|
for (; m; ) {
|
|
780
780
|
for (; e[++u][1] !== m; )
|
|
781
781
|
;
|
|
@@ -783,7 +783,7 @@ function ho(e, t) {
|
|
|
783
783
|
}
|
|
784
784
|
for (m = n; ++p < o.length; )
|
|
785
785
|
// Find a void token that includes a break.
|
|
786
|
-
o[p][0] === "exit" && o[p - 1][0] === "enter" && o[p][1].type === o[p - 1][1].type && o[p][1].start.line !== o[p][1].end.line && (
|
|
786
|
+
o[p][0] === "exit" && o[p - 1][0] === "enter" && o[p][1].type === o[p - 1][1].type && o[p][1].start.line !== o[p][1].end.line && (N = p + 1, L.push(N), m._tokenizer = void 0, m.previous = void 0, m = m.next);
|
|
787
787
|
for (i.events = [], m ? (m._tokenizer = void 0, m.previous = void 0) : L.pop(), p = L.length; p--; ) {
|
|
788
788
|
const x = o.slice(L[p], L[p + 1]), w = a.pop();
|
|
789
789
|
l.unshift([w, w + x.length - 1]), Oe(e, w, 2, x);
|
|
@@ -847,7 +847,7 @@ function hi(e, t, n, r, u, a, i, o, l) {
|
|
|
847
847
|
function f(x) {
|
|
848
848
|
return x === 60 ? (e.enter(r), e.enter(u), e.enter(a), e.consume(x), e.exit(a), p) : x === null || x === 32 || x === 41 || on(x) ? n(x) : (e.enter(r), e.enter(i), e.enter(o), e.enter("chunkString", {
|
|
849
849
|
contentType: "string"
|
|
850
|
-
}),
|
|
850
|
+
}), N(x));
|
|
851
851
|
}
|
|
852
852
|
function p(x) {
|
|
853
853
|
return x === 62 ? (e.enter(a), e.consume(x), e.exit(a), e.exit(u), e.exit(r), t) : (e.enter(o), e.enter("chunkString", {
|
|
@@ -860,11 +860,11 @@ function hi(e, t, n, r, u, a, i, o, l) {
|
|
|
860
860
|
function A(x) {
|
|
861
861
|
return x === 60 || x === 62 || x === 92 ? (e.consume(x), m) : m(x);
|
|
862
862
|
}
|
|
863
|
-
function
|
|
864
|
-
return !h && (x === null || x === 41 || J(x)) ? (e.exit("chunkString"), e.exit(o), e.exit(i), e.exit(r), t(x)) : h < c && x === 40 ? (e.consume(x), h++,
|
|
863
|
+
function N(x) {
|
|
864
|
+
return !h && (x === null || x === 41 || J(x)) ? (e.exit("chunkString"), e.exit(o), e.exit(i), e.exit(r), t(x)) : h < c && x === 40 ? (e.consume(x), h++, N) : x === 41 ? (e.consume(x), h--, N) : x === null || x === 32 || x === 40 || on(x) ? n(x) : (e.consume(x), x === 92 ? L : N);
|
|
865
865
|
}
|
|
866
866
|
function L(x) {
|
|
867
|
-
return x === 40 || x === 41 || x === 92 ? (e.consume(x),
|
|
867
|
+
return x === 40 || x === 41 || x === 92 ? (e.consume(x), N) : N(x);
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
870
|
function di(e, t, n, r, u, a) {
|
|
@@ -1011,12 +1011,12 @@ function xo(e, t, n) {
|
|
|
1011
1011
|
return H(a) ? (e.exit("hardBreakEscape"), t(a)) : n(a);
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
|
-
const
|
|
1014
|
+
const No = {
|
|
1015
1015
|
name: "headingAtx",
|
|
1016
1016
|
tokenize: ko,
|
|
1017
|
-
resolve:
|
|
1017
|
+
resolve: So
|
|
1018
1018
|
};
|
|
1019
|
-
function
|
|
1019
|
+
function So(e, t) {
|
|
1020
1020
|
let n = e.length - 2, r = 3, u, a;
|
|
1021
1021
|
return e[r][1].type === "whitespace" && (r += 2), n - 2 > r && e[n][1].type === "whitespace" && (n -= 2), e[n][1].type === "atxHeadingSequence" && (r === n - 1 || n - 4 > r && e[n - 2][1].type === "whitespace") && (n -= r + 1 === n ? 2 : 4), n > r && (u = {
|
|
1022
1022
|
type: "atxHeadingText",
|
|
@@ -1148,7 +1148,7 @@ function Po(e, t, n) {
|
|
|
1148
1148
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(g), f;
|
|
1149
1149
|
}
|
|
1150
1150
|
function f(g) {
|
|
1151
|
-
return g === 33 ? (e.consume(g), p) : g === 47 ? (e.consume(g), a = !0,
|
|
1151
|
+
return g === 33 ? (e.consume(g), p) : g === 47 ? (e.consume(g), a = !0, N) : g === 63 ? (e.consume(g), u = 3, r.interrupt ? t : b) : de(g) ? (e.consume(g), i = String.fromCharCode(g), L) : n(g);
|
|
1152
1152
|
}
|
|
1153
1153
|
function p(g) {
|
|
1154
1154
|
return g === 45 ? (e.consume(g), u = 2, m) : g === 91 ? (e.consume(g), u = 5, o = 0, A) : de(g) ? (e.consume(g), u = 4, r.interrupt ? t : b) : n(g);
|
|
@@ -1160,7 +1160,7 @@ function Po(e, t, n) {
|
|
|
1160
1160
|
const Ie = "CDATA[";
|
|
1161
1161
|
return g === Ie.charCodeAt(o++) ? (e.consume(g), o === Ie.length ? r.interrupt ? t : F : A) : n(g);
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function N(g) {
|
|
1164
1164
|
return de(g) ? (e.consume(g), i = String.fromCharCode(g), L) : n(g);
|
|
1165
1165
|
}
|
|
1166
1166
|
function L(g) {
|
|
@@ -1296,16 +1296,16 @@ function Fo(e, t, n) {
|
|
|
1296
1296
|
}
|
|
1297
1297
|
function A(b) {
|
|
1298
1298
|
const Ce = "CDATA[";
|
|
1299
|
-
return b === Ce.charCodeAt(a++) ? (e.consume(b), a === Ce.length ?
|
|
1299
|
+
return b === Ce.charCodeAt(a++) ? (e.consume(b), a === Ce.length ? N : A) : n(b);
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1302
|
-
return b === null ? n(b) : b === 93 ? (e.consume(b), L) : H(b) ? (i =
|
|
1301
|
+
function N(b) {
|
|
1302
|
+
return b === null ? n(b) : b === 93 ? (e.consume(b), L) : H(b) ? (i = N, se(b)) : (e.consume(b), N);
|
|
1303
1303
|
}
|
|
1304
1304
|
function L(b) {
|
|
1305
|
-
return b === 93 ? (e.consume(b), x) :
|
|
1305
|
+
return b === 93 ? (e.consume(b), x) : N(b);
|
|
1306
1306
|
}
|
|
1307
1307
|
function x(b) {
|
|
1308
|
-
return b === 62 ? le(b) : b === 93 ? (e.consume(b), x) :
|
|
1308
|
+
return b === 62 ? le(b) : b === 93 ? (e.consume(b), x) : N(b);
|
|
1309
1309
|
}
|
|
1310
1310
|
function w(b) {
|
|
1311
1311
|
return b === null || b === 62 ? le(b) : H(b) ? (i = w, se(b)) : (e.consume(b), w);
|
|
@@ -1932,7 +1932,7 @@ function ml(e, t, n) {
|
|
|
1932
1932
|
sliceStream: m,
|
|
1933
1933
|
sliceSerialize: p,
|
|
1934
1934
|
now: A,
|
|
1935
|
-
defineSkip:
|
|
1935
|
+
defineSkip: N,
|
|
1936
1936
|
write: f
|
|
1937
1937
|
};
|
|
1938
1938
|
let h = t.tokenize.call(c, l);
|
|
@@ -1956,7 +1956,7 @@ function ml(e, t, n) {
|
|
|
1956
1956
|
_bufferIndex: G
|
|
1957
1957
|
};
|
|
1958
1958
|
}
|
|
1959
|
-
function
|
|
1959
|
+
function N(B) {
|
|
1960
1960
|
u[B.line] = B.column, I();
|
|
1961
1961
|
}
|
|
1962
1962
|
function L() {
|
|
@@ -2134,7 +2134,7 @@ const Tl = {
|
|
|
2134
2134
|
[-1]: Rn,
|
|
2135
2135
|
32: Rn
|
|
2136
2136
|
}, Al = {
|
|
2137
|
-
35:
|
|
2137
|
+
35: No,
|
|
2138
2138
|
42: nn,
|
|
2139
2139
|
45: [$r, nn],
|
|
2140
2140
|
60: yo,
|
|
@@ -2162,13 +2162,13 @@ const Tl = {
|
|
|
2162
2162
|
null: [Kn, cl]
|
|
2163
2163
|
}, xl = {
|
|
2164
2164
|
null: [42, 95]
|
|
2165
|
-
},
|
|
2165
|
+
}, Nl = {
|
|
2166
2166
|
null: []
|
|
2167
|
-
},
|
|
2167
|
+
}, Sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2168
2168
|
__proto__: null,
|
|
2169
2169
|
attentionMarkers: xl,
|
|
2170
2170
|
contentInitial: bl,
|
|
2171
|
-
disable:
|
|
2171
|
+
disable: Nl,
|
|
2172
2172
|
document: Tl,
|
|
2173
2173
|
flow: Al,
|
|
2174
2174
|
flowInitial: gl,
|
|
@@ -2179,7 +2179,7 @@ const Tl = {
|
|
|
2179
2179
|
function kl(e) {
|
|
2180
2180
|
const n = (
|
|
2181
2181
|
/** @type {FullNormalizedExtension} */
|
|
2182
|
-
Bs([
|
|
2182
|
+
Bs([Sl, ...(e || {}).extensions || []])
|
|
2183
2183
|
), r = {
|
|
2184
2184
|
defined: [],
|
|
2185
2185
|
lazy: {},
|
|
@@ -2319,7 +2319,7 @@ function wl(e) {
|
|
|
2319
2319
|
characterReferenceMarkerNumeric: We,
|
|
2320
2320
|
characterReferenceValue: oe,
|
|
2321
2321
|
codeFenced: l(L),
|
|
2322
|
-
codeFencedFence:
|
|
2322
|
+
codeFencedFence: N,
|
|
2323
2323
|
codeFencedFenceInfo: m,
|
|
2324
2324
|
codeFencedFenceMeta: A,
|
|
2325
2325
|
codeFlowValue: I,
|
|
@@ -2361,7 +2361,7 @@ function wl(e) {
|
|
|
2361
2361
|
bi(t, (e || {}).mdastExtensions || []);
|
|
2362
2362
|
const n = {};
|
|
2363
2363
|
return r;
|
|
2364
|
-
function r(
|
|
2364
|
+
function r(S) {
|
|
2365
2365
|
let M = {
|
|
2366
2366
|
type: "root",
|
|
2367
2367
|
children: []
|
|
@@ -2377,24 +2377,24 @@ function wl(e) {
|
|
|
2377
2377
|
data: n
|
|
2378
2378
|
}, V = [];
|
|
2379
2379
|
let K = -1;
|
|
2380
|
-
for (; ++K <
|
|
2381
|
-
if (
|
|
2382
|
-
if (
|
|
2380
|
+
for (; ++K < S.length; )
|
|
2381
|
+
if (S[K][1].type === "listOrdered" || S[K][1].type === "listUnordered")
|
|
2382
|
+
if (S[K][0] === "enter")
|
|
2383
2383
|
V.push(K);
|
|
2384
2384
|
else {
|
|
2385
2385
|
const xe = V.pop();
|
|
2386
|
-
K = u(
|
|
2386
|
+
K = u(S, xe, K);
|
|
2387
2387
|
}
|
|
2388
|
-
for (K = -1; ++K <
|
|
2389
|
-
const xe = t[
|
|
2390
|
-
Ti.call(xe,
|
|
2388
|
+
for (K = -1; ++K < S.length; ) {
|
|
2389
|
+
const xe = t[S[K][0]];
|
|
2390
|
+
Ti.call(xe, S[K][1].type) && xe[S[K][1].type].call(
|
|
2391
2391
|
Object.assign(
|
|
2392
2392
|
{
|
|
2393
|
-
sliceSerialize:
|
|
2393
|
+
sliceSerialize: S[K][2].sliceSerialize
|
|
2394
2394
|
},
|
|
2395
2395
|
U
|
|
2396
2396
|
),
|
|
2397
|
-
|
|
2397
|
+
S[K][1]
|
|
2398
2398
|
);
|
|
2399
2399
|
}
|
|
2400
2400
|
if (U.tokenStack.length > 0) {
|
|
@@ -2403,14 +2403,14 @@ function wl(e) {
|
|
|
2403
2403
|
}
|
|
2404
2404
|
for (M.position = {
|
|
2405
2405
|
start: He(
|
|
2406
|
-
|
|
2406
|
+
S.length > 0 ? S[0][1].start : {
|
|
2407
2407
|
line: 1,
|
|
2408
2408
|
column: 1,
|
|
2409
2409
|
offset: 0
|
|
2410
2410
|
}
|
|
2411
2411
|
),
|
|
2412
2412
|
end: He(
|
|
2413
|
-
|
|
2413
|
+
S.length > 0 ? S[S.length - 2][1].end : {
|
|
2414
2414
|
line: 1,
|
|
2415
2415
|
column: 1,
|
|
2416
2416
|
offset: 0
|
|
@@ -2420,10 +2420,10 @@ function wl(e) {
|
|
|
2420
2420
|
M = t.transforms[K](M) || M;
|
|
2421
2421
|
return M;
|
|
2422
2422
|
}
|
|
2423
|
-
function u(
|
|
2423
|
+
function u(S, M, U) {
|
|
2424
2424
|
let V = M - 1, K = -1, xe = !1, Ge, De, It, xt;
|
|
2425
2425
|
for (; ++V <= U; ) {
|
|
2426
|
-
const Ee =
|
|
2426
|
+
const Ee = S[V];
|
|
2427
2427
|
switch (Ee[1].type) {
|
|
2428
2428
|
case "listUnordered":
|
|
2429
2429
|
case "listOrdered":
|
|
@@ -2448,16 +2448,16 @@ function wl(e) {
|
|
|
2448
2448
|
if (Ge) {
|
|
2449
2449
|
let at = V;
|
|
2450
2450
|
for (De = void 0; at--; ) {
|
|
2451
|
-
const Pe =
|
|
2451
|
+
const Pe = S[at];
|
|
2452
2452
|
if (Pe[1].type === "lineEnding" || Pe[1].type === "lineEndingBlank") {
|
|
2453
2453
|
if (Pe[0] === "exit") continue;
|
|
2454
|
-
De && (
|
|
2454
|
+
De && (S[De][1].type = "lineEndingBlank", xe = !0), Pe[1].type = "lineEnding", De = at;
|
|
2455
2455
|
} else if (!(Pe[1].type === "linePrefix" || Pe[1].type === "blockQuotePrefix" || Pe[1].type === "blockQuotePrefixWhitespace" || Pe[1].type === "blockQuoteMarker" || Pe[1].type === "listItemIndent")) break;
|
|
2456
2456
|
}
|
|
2457
2457
|
It && (!De || It < De) && (Ge._spread = !0), Ge.end = Object.assign(
|
|
2458
2458
|
{},
|
|
2459
|
-
De ?
|
|
2460
|
-
),
|
|
2459
|
+
De ? S[De][1].start : Ee[1].end
|
|
2460
|
+
), S.splice(De || V, 0, ["exit", Ge, Ee[2]]), V++, U++;
|
|
2461
2461
|
}
|
|
2462
2462
|
if (Ee[1].type === "listItemPrefix") {
|
|
2463
2463
|
const at = {
|
|
@@ -2467,16 +2467,16 @@ function wl(e) {
|
|
|
2467
2467
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
2468
2468
|
end: void 0
|
|
2469
2469
|
};
|
|
2470
|
-
Ge = at,
|
|
2470
|
+
Ge = at, S.splice(V, 0, ["enter", at, Ee[2]]), V++, U++, It = void 0, xt = !0;
|
|
2471
2471
|
}
|
|
2472
2472
|
}
|
|
2473
2473
|
}
|
|
2474
|
-
return
|
|
2474
|
+
return S[M][1]._spread = xe, U;
|
|
2475
2475
|
}
|
|
2476
|
-
function a(
|
|
2476
|
+
function a(S, M) {
|
|
2477
2477
|
return U;
|
|
2478
2478
|
function U(V) {
|
|
2479
|
-
o.call(this,
|
|
2479
|
+
o.call(this, S(V), V), M && M.call(this, V);
|
|
2480
2480
|
}
|
|
2481
2481
|
}
|
|
2482
2482
|
function i() {
|
|
@@ -2485,30 +2485,30 @@ function wl(e) {
|
|
|
2485
2485
|
children: []
|
|
2486
2486
|
});
|
|
2487
2487
|
}
|
|
2488
|
-
function o(
|
|
2489
|
-
this.stack[this.stack.length - 1].children.push(
|
|
2488
|
+
function o(S, M, U) {
|
|
2489
|
+
this.stack[this.stack.length - 1].children.push(S), this.stack.push(S), this.tokenStack.push([M, U]), S.position = {
|
|
2490
2490
|
start: He(M.start),
|
|
2491
2491
|
// @ts-expect-error: `end` will be patched later.
|
|
2492
2492
|
end: void 0
|
|
2493
2493
|
};
|
|
2494
2494
|
}
|
|
2495
|
-
function l(
|
|
2495
|
+
function l(S) {
|
|
2496
2496
|
return M;
|
|
2497
2497
|
function M(U) {
|
|
2498
|
-
|
|
2498
|
+
S && S.call(this, U), c.call(this, U);
|
|
2499
2499
|
}
|
|
2500
2500
|
}
|
|
2501
|
-
function c(
|
|
2501
|
+
function c(S, M) {
|
|
2502
2502
|
const U = this.stack.pop(), V = this.tokenStack.pop();
|
|
2503
2503
|
if (V)
|
|
2504
|
-
V[0].type !==
|
|
2504
|
+
V[0].type !== S.type && (M ? M.call(this, S, V[0]) : (V[1] || Zr).call(this, S, V[0]));
|
|
2505
2505
|
else throw new Error(
|
|
2506
|
-
"Cannot close `" +
|
|
2507
|
-
start:
|
|
2508
|
-
end:
|
|
2506
|
+
"Cannot close `" + S.type + "` (" + en({
|
|
2507
|
+
start: S.start,
|
|
2508
|
+
end: S.end
|
|
2509
2509
|
}) + "): it’s not open"
|
|
2510
2510
|
);
|
|
2511
|
-
U.position.end = He(
|
|
2511
|
+
U.position.end = He(S.end);
|
|
2512
2512
|
}
|
|
2513
2513
|
function h() {
|
|
2514
2514
|
return cr(this.stack.pop());
|
|
@@ -2516,136 +2516,136 @@ function wl(e) {
|
|
|
2516
2516
|
function f() {
|
|
2517
2517
|
this.data.expectingFirstListItemValue = !0;
|
|
2518
2518
|
}
|
|
2519
|
-
function p(
|
|
2519
|
+
function p(S) {
|
|
2520
2520
|
if (this.data.expectingFirstListItemValue) {
|
|
2521
2521
|
const M = this.stack[this.stack.length - 2];
|
|
2522
|
-
M.start = Number.parseInt(this.sliceSerialize(
|
|
2522
|
+
M.start = Number.parseInt(this.sliceSerialize(S), 10), this.data.expectingFirstListItemValue = void 0;
|
|
2523
2523
|
}
|
|
2524
2524
|
}
|
|
2525
2525
|
function m() {
|
|
2526
|
-
const
|
|
2527
|
-
M.lang =
|
|
2526
|
+
const S = this.resume(), M = this.stack[this.stack.length - 1];
|
|
2527
|
+
M.lang = S;
|
|
2528
2528
|
}
|
|
2529
2529
|
function A() {
|
|
2530
|
-
const
|
|
2531
|
-
M.meta =
|
|
2530
|
+
const S = this.resume(), M = this.stack[this.stack.length - 1];
|
|
2531
|
+
M.meta = S;
|
|
2532
2532
|
}
|
|
2533
|
-
function
|
|
2533
|
+
function N() {
|
|
2534
2534
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
2535
2535
|
}
|
|
2536
2536
|
function L() {
|
|
2537
|
-
const
|
|
2538
|
-
M.value =
|
|
2537
|
+
const S = this.resume(), M = this.stack[this.stack.length - 1];
|
|
2538
|
+
M.value = S.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
2539
2539
|
}
|
|
2540
2540
|
function x() {
|
|
2541
|
-
const
|
|
2542
|
-
M.value =
|
|
2541
|
+
const S = this.resume(), M = this.stack[this.stack.length - 1];
|
|
2542
|
+
M.value = S.replace(/(\r?\n|\r)$/g, "");
|
|
2543
2543
|
}
|
|
2544
|
-
function w(
|
|
2544
|
+
function w(S) {
|
|
2545
2545
|
const M = this.resume(), U = this.stack[this.stack.length - 1];
|
|
2546
2546
|
U.label = M, U.identifier = ht(
|
|
2547
|
-
this.sliceSerialize(
|
|
2547
|
+
this.sliceSerialize(S)
|
|
2548
2548
|
).toLowerCase();
|
|
2549
2549
|
}
|
|
2550
2550
|
function R() {
|
|
2551
|
-
const
|
|
2552
|
-
M.title =
|
|
2551
|
+
const S = this.resume(), M = this.stack[this.stack.length - 1];
|
|
2552
|
+
M.title = S;
|
|
2553
2553
|
}
|
|
2554
2554
|
function z() {
|
|
2555
|
-
const
|
|
2556
|
-
M.url =
|
|
2555
|
+
const S = this.resume(), M = this.stack[this.stack.length - 1];
|
|
2556
|
+
M.url = S;
|
|
2557
2557
|
}
|
|
2558
|
-
function Y(
|
|
2558
|
+
function Y(S) {
|
|
2559
2559
|
const M = this.stack[this.stack.length - 1];
|
|
2560
2560
|
if (!M.depth) {
|
|
2561
|
-
const U = this.sliceSerialize(
|
|
2561
|
+
const U = this.sliceSerialize(S).length;
|
|
2562
2562
|
M.depth = U;
|
|
2563
2563
|
}
|
|
2564
2564
|
}
|
|
2565
2565
|
function k() {
|
|
2566
2566
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
2567
2567
|
}
|
|
2568
|
-
function Q(
|
|
2568
|
+
function Q(S) {
|
|
2569
2569
|
const M = this.stack[this.stack.length - 1];
|
|
2570
|
-
M.depth = this.sliceSerialize(
|
|
2570
|
+
M.depth = this.sliceSerialize(S).codePointAt(0) === 61 ? 1 : 2;
|
|
2571
2571
|
}
|
|
2572
2572
|
function ee() {
|
|
2573
2573
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
2574
2574
|
}
|
|
2575
|
-
function X(
|
|
2575
|
+
function X(S) {
|
|
2576
2576
|
const U = this.stack[this.stack.length - 1].children;
|
|
2577
2577
|
let V = U[U.length - 1];
|
|
2578
2578
|
(!V || V.type !== "text") && (V = ns(), V.position = {
|
|
2579
|
-
start: He(
|
|
2579
|
+
start: He(S.start),
|
|
2580
2580
|
// @ts-expect-error: we’ll add `end` later.
|
|
2581
2581
|
end: void 0
|
|
2582
2582
|
}, U.push(V)), this.stack.push(V);
|
|
2583
2583
|
}
|
|
2584
|
-
function I(
|
|
2584
|
+
function I(S) {
|
|
2585
2585
|
const M = this.stack.pop();
|
|
2586
|
-
M.value += this.sliceSerialize(
|
|
2586
|
+
M.value += this.sliceSerialize(S), M.position.end = He(S.end);
|
|
2587
2587
|
}
|
|
2588
|
-
function B(
|
|
2588
|
+
function B(S) {
|
|
2589
2589
|
const M = this.stack[this.stack.length - 1];
|
|
2590
2590
|
if (this.data.atHardBreak) {
|
|
2591
2591
|
const U = M.children[M.children.length - 1];
|
|
2592
|
-
U.position.end = He(
|
|
2592
|
+
U.position.end = He(S.end), this.data.atHardBreak = void 0;
|
|
2593
2593
|
return;
|
|
2594
2594
|
}
|
|
2595
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(M.type) && (X.call(this,
|
|
2595
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(M.type) && (X.call(this, S), I.call(this, S));
|
|
2596
2596
|
}
|
|
2597
2597
|
function F() {
|
|
2598
2598
|
this.data.atHardBreak = !0;
|
|
2599
2599
|
}
|
|
2600
2600
|
function $() {
|
|
2601
|
-
const
|
|
2602
|
-
M.value =
|
|
2601
|
+
const S = this.resume(), M = this.stack[this.stack.length - 1];
|
|
2602
|
+
M.value = S;
|
|
2603
2603
|
}
|
|
2604
2604
|
function ne() {
|
|
2605
|
-
const
|
|
2606
|
-
M.value =
|
|
2605
|
+
const S = this.resume(), M = this.stack[this.stack.length - 1];
|
|
2606
|
+
M.value = S;
|
|
2607
2607
|
}
|
|
2608
2608
|
function G() {
|
|
2609
|
-
const
|
|
2610
|
-
M.value =
|
|
2609
|
+
const S = this.resume(), M = this.stack[this.stack.length - 1];
|
|
2610
|
+
M.value = S;
|
|
2611
2611
|
}
|
|
2612
2612
|
function le() {
|
|
2613
|
-
const
|
|
2613
|
+
const S = this.stack[this.stack.length - 1];
|
|
2614
2614
|
if (this.data.inReference) {
|
|
2615
2615
|
const M = this.data.referenceType || "shortcut";
|
|
2616
|
-
|
|
2616
|
+
S.type += "Reference", S.referenceType = M, delete S.url, delete S.title;
|
|
2617
2617
|
} else
|
|
2618
|
-
delete
|
|
2618
|
+
delete S.identifier, delete S.label;
|
|
2619
2619
|
this.data.referenceType = void 0;
|
|
2620
2620
|
}
|
|
2621
2621
|
function se() {
|
|
2622
|
-
const
|
|
2622
|
+
const S = this.stack[this.stack.length - 1];
|
|
2623
2623
|
if (this.data.inReference) {
|
|
2624
2624
|
const M = this.data.referenceType || "shortcut";
|
|
2625
|
-
|
|
2625
|
+
S.type += "Reference", S.referenceType = M, delete S.url, delete S.title;
|
|
2626
2626
|
} else
|
|
2627
|
-
delete
|
|
2627
|
+
delete S.identifier, delete S.label;
|
|
2628
2628
|
this.data.referenceType = void 0;
|
|
2629
2629
|
}
|
|
2630
|
-
function _e(
|
|
2631
|
-
const M = this.sliceSerialize(
|
|
2630
|
+
function _e(S) {
|
|
2631
|
+
const M = this.sliceSerialize(S), U = this.stack[this.stack.length - 2];
|
|
2632
2632
|
U.label = Rl(M), U.identifier = ht(M).toLowerCase();
|
|
2633
2633
|
}
|
|
2634
2634
|
function Le() {
|
|
2635
|
-
const
|
|
2635
|
+
const S = this.stack[this.stack.length - 1], M = this.resume(), U = this.stack[this.stack.length - 1];
|
|
2636
2636
|
if (this.data.inReference = !0, U.type === "link") {
|
|
2637
|
-
const V =
|
|
2637
|
+
const V = S.children;
|
|
2638
2638
|
U.children = V;
|
|
2639
2639
|
} else
|
|
2640
2640
|
U.alt = M;
|
|
2641
2641
|
}
|
|
2642
2642
|
function b() {
|
|
2643
|
-
const
|
|
2644
|
-
M.url =
|
|
2643
|
+
const S = this.resume(), M = this.stack[this.stack.length - 1];
|
|
2644
|
+
M.url = S;
|
|
2645
2645
|
}
|
|
2646
2646
|
function Ce() {
|
|
2647
|
-
const
|
|
2648
|
-
M.title =
|
|
2647
|
+
const S = this.resume(), M = this.stack[this.stack.length - 1];
|
|
2648
|
+
M.title = S;
|
|
2649
2649
|
}
|
|
2650
2650
|
function Re() {
|
|
2651
2651
|
this.data.inReference = void 0;
|
|
@@ -2653,34 +2653,34 @@ function wl(e) {
|
|
|
2653
2653
|
function g() {
|
|
2654
2654
|
this.data.referenceType = "collapsed";
|
|
2655
2655
|
}
|
|
2656
|
-
function Ie(
|
|
2656
|
+
function Ie(S) {
|
|
2657
2657
|
const M = this.resume(), U = this.stack[this.stack.length - 1];
|
|
2658
2658
|
U.label = M, U.identifier = ht(
|
|
2659
|
-
this.sliceSerialize(
|
|
2659
|
+
this.sliceSerialize(S)
|
|
2660
2660
|
).toLowerCase(), this.data.referenceType = "full";
|
|
2661
2661
|
}
|
|
2662
|
-
function We(
|
|
2663
|
-
this.data.characterReferenceType =
|
|
2662
|
+
function We(S) {
|
|
2663
|
+
this.data.characterReferenceType = S.type;
|
|
2664
2664
|
}
|
|
2665
|
-
function oe(
|
|
2666
|
-
const M = this.sliceSerialize(
|
|
2665
|
+
function oe(S) {
|
|
2666
|
+
const M = this.sliceSerialize(S), U = this.data.characterReferenceType;
|
|
2667
2667
|
let V;
|
|
2668
2668
|
U ? (V = si(
|
|
2669
2669
|
M,
|
|
2670
2670
|
U === "characterReferenceMarkerNumeric" ? 10 : 16
|
|
2671
2671
|
), this.data.characterReferenceType = void 0) : V = fr(M);
|
|
2672
2672
|
const K = this.stack.pop();
|
|
2673
|
-
K.value += V, K.position.end = He(
|
|
2673
|
+
K.value += V, K.position.end = He(S.end);
|
|
2674
2674
|
}
|
|
2675
|
-
function Ct(
|
|
2676
|
-
I.call(this,
|
|
2675
|
+
function Ct(S) {
|
|
2676
|
+
I.call(this, S);
|
|
2677
2677
|
const M = this.stack[this.stack.length - 1];
|
|
2678
|
-
M.url = this.sliceSerialize(
|
|
2678
|
+
M.url = this.sliceSerialize(S);
|
|
2679
2679
|
}
|
|
2680
|
-
function Fe(
|
|
2681
|
-
I.call(this,
|
|
2680
|
+
function Fe(S) {
|
|
2681
|
+
I.call(this, S);
|
|
2682
2682
|
const M = this.stack[this.stack.length - 1];
|
|
2683
|
-
M.url = "mailto:" + this.sliceSerialize(
|
|
2683
|
+
M.url = "mailto:" + this.sliceSerialize(S);
|
|
2684
2684
|
}
|
|
2685
2685
|
function it() {
|
|
2686
2686
|
return {
|
|
@@ -2752,19 +2752,19 @@ function wl(e) {
|
|
|
2752
2752
|
children: []
|
|
2753
2753
|
};
|
|
2754
2754
|
}
|
|
2755
|
-
function Ur(
|
|
2755
|
+
function Ur(S) {
|
|
2756
2756
|
return {
|
|
2757
2757
|
type: "list",
|
|
2758
|
-
ordered:
|
|
2758
|
+
ordered: S.type === "listOrdered",
|
|
2759
2759
|
start: null,
|
|
2760
|
-
spread:
|
|
2760
|
+
spread: S._spread,
|
|
2761
2761
|
children: []
|
|
2762
2762
|
};
|
|
2763
2763
|
}
|
|
2764
|
-
function Za(
|
|
2764
|
+
function Za(S) {
|
|
2765
2765
|
return {
|
|
2766
2766
|
type: "listItem",
|
|
2767
|
-
spread:
|
|
2767
|
+
spread: S._spread,
|
|
2768
2768
|
checked: null,
|
|
2769
2769
|
children: []
|
|
2770
2770
|
};
|
|
@@ -3287,7 +3287,7 @@ const _i = -1, _n = 0, Dt = 1, ln = 2, mr = 3, pr = 4, Er = 5, Tr = 6, Ci = 7, I
|
|
|
3287
3287
|
return n(new ru[a](i), u);
|
|
3288
3288
|
};
|
|
3289
3289
|
return r;
|
|
3290
|
-
}, uu = (e) => lc(/* @__PURE__ */ new Map(), e)(0), st = "", { toString: cc } = {}, { keys: fc } = Object,
|
|
3290
|
+
}, uu = (e) => lc(/* @__PURE__ */ new Map(), e)(0), st = "", { toString: cc } = {}, { keys: fc } = Object, Nt = (e) => {
|
|
3291
3291
|
const t = typeof e;
|
|
3292
3292
|
if (t !== "object" || !e)
|
|
3293
3293
|
return [_n, t];
|
|
@@ -3316,7 +3316,7 @@ const _i = -1, _n = 0, Dt = 1, ln = 2, mr = 3, pr = 4, Er = 5, Tr = 6, Ci = 7, I
|
|
|
3316
3316
|
}, a = (i) => {
|
|
3317
3317
|
if (n.has(i))
|
|
3318
3318
|
return n.get(i);
|
|
3319
|
-
let [o, l] =
|
|
3319
|
+
let [o, l] = Nt(i);
|
|
3320
3320
|
switch (o) {
|
|
3321
3321
|
case _n: {
|
|
3322
3322
|
let h = i;
|
|
@@ -3359,7 +3359,7 @@ const _i = -1, _n = 0, Dt = 1, ln = 2, mr = 3, pr = 4, Er = 5, Tr = 6, Ci = 7, I
|
|
|
3359
3359
|
return a(i.toJSON());
|
|
3360
3360
|
const h = [], f = u([o, h], i);
|
|
3361
3361
|
for (const p of fc(i))
|
|
3362
|
-
(e || !Gt(
|
|
3362
|
+
(e || !Gt(Nt(i[p]))) && h.push([a(p), a(i[p])]);
|
|
3363
3363
|
return f;
|
|
3364
3364
|
}
|
|
3365
3365
|
case mr:
|
|
@@ -3371,13 +3371,13 @@ const _i = -1, _n = 0, Dt = 1, ln = 2, mr = 3, pr = 4, Er = 5, Tr = 6, Ci = 7, I
|
|
|
3371
3371
|
case Er: {
|
|
3372
3372
|
const h = [], f = u([o, h], i);
|
|
3373
3373
|
for (const [p, m] of i)
|
|
3374
|
-
(e || !(Gt(
|
|
3374
|
+
(e || !(Gt(Nt(p)) || Gt(Nt(m)))) && h.push([a(p), a(m)]);
|
|
3375
3375
|
return f;
|
|
3376
3376
|
}
|
|
3377
3377
|
case Tr: {
|
|
3378
3378
|
const h = [], f = u([o, h], i);
|
|
3379
3379
|
for (const p of i)
|
|
3380
|
-
(e || !Gt(
|
|
3380
|
+
(e || !Gt(Nt(p))) && h.push(a(p));
|
|
3381
3381
|
return f;
|
|
3382
3382
|
}
|
|
3383
3383
|
}
|
|
@@ -3417,8 +3417,8 @@ function pc(e) {
|
|
|
3417
3417
|
continue;
|
|
3418
3418
|
const h = e.all(c), f = String(c.identifier).toUpperCase(), p = Tt(f.toLowerCase());
|
|
3419
3419
|
let m = 0;
|
|
3420
|
-
const A = [],
|
|
3421
|
-
for (;
|
|
3420
|
+
const A = [], N = e.footnoteCounts.get(f);
|
|
3421
|
+
for (; N !== void 0 && ++m <= N; ) {
|
|
3422
3422
|
A.length > 0 && A.push({ type: "text", value: " " });
|
|
3423
3423
|
let w = typeof n == "string" ? n : n(l, m);
|
|
3424
3424
|
typeof w == "string" && (w = { type: "text", value: w }), A.push({
|
|
@@ -3502,7 +3502,7 @@ function Tc(e, t) {
|
|
|
3502
3502
|
return m(o, h, f);
|
|
3503
3503
|
if (o.options.passThrough && o.options.passThrough.includes(p)) {
|
|
3504
3504
|
if ("children" in h) {
|
|
3505
|
-
const { children:
|
|
3505
|
+
const { children: N, ...L } = h, x = cn(L);
|
|
3506
3506
|
return x.children = o.all(h), x;
|
|
3507
3507
|
}
|
|
3508
3508
|
return cn(h);
|
|
@@ -3518,8 +3518,8 @@ function Tc(e, t) {
|
|
|
3518
3518
|
const A = o.one(p[m], h);
|
|
3519
3519
|
if (A) {
|
|
3520
3520
|
if (m && p[m - 1].type === "break" && (!Array.isArray(A) && A.type === "text" && (A.value = au(A.value)), !Array.isArray(A) && A.type === "element")) {
|
|
3521
|
-
const
|
|
3522
|
-
|
|
3521
|
+
const N = A.children[0];
|
|
3522
|
+
N && N.type === "text" && (N.value = au(N.value));
|
|
3523
3523
|
}
|
|
3524
3524
|
Array.isArray(A) ? f.push(...A) : f.push(A);
|
|
3525
3525
|
}
|
|
@@ -3626,12 +3626,12 @@ function Ic() {
|
|
|
3626
3626
|
return c[h];
|
|
3627
3627
|
};
|
|
3628
3628
|
return Pn = function l() {
|
|
3629
|
-
var c, h, f, p, m, A,
|
|
3630
|
-
for (typeof
|
|
3629
|
+
var c, h, f, p, m, A, N = arguments[0], L = 1, x = arguments.length, w = !1;
|
|
3630
|
+
for (typeof N == "boolean" && (w = N, N = arguments[1] || {}, L = 2), (N == null || typeof N != "object" && typeof N != "function") && (N = {}); L < x; ++L)
|
|
3631
3631
|
if (c = arguments[L], c != null)
|
|
3632
3632
|
for (h in c)
|
|
3633
|
-
f = o(
|
|
3634
|
-
return
|
|
3633
|
+
f = o(N, h), p = o(c, h), N !== p && (w && p && (a(p) || (m = u(p))) ? (m ? (m = !1, A = f && u(f) ? f : []) : A = f && a(f) ? f : {}, i(N, { name: h, newValue: l(w, A, p) })) : typeof p < "u" && i(N, { name: h, newValue: p }));
|
|
3634
|
+
return N;
|
|
3635
3635
|
}, Pn;
|
|
3636
3636
|
}
|
|
3637
3637
|
var xc = Ic();
|
|
@@ -3642,7 +3642,7 @@ function Jn(e) {
|
|
|
3642
3642
|
const t = Object.getPrototypeOf(e);
|
|
3643
3643
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
3644
3644
|
}
|
|
3645
|
-
function
|
|
3645
|
+
function Nc() {
|
|
3646
3646
|
const e = [], t = { run: n, use: r };
|
|
3647
3647
|
return t;
|
|
3648
3648
|
function n(...u) {
|
|
@@ -3660,7 +3660,7 @@ function Sc() {
|
|
|
3660
3660
|
}
|
|
3661
3661
|
for (; ++f < u.length; )
|
|
3662
3662
|
(c[f] === null || c[f] === void 0) && (c[f] = u[f]);
|
|
3663
|
-
u = c, h ?
|
|
3663
|
+
u = c, h ? Sc(h, o)(...c) : i(null, ...c);
|
|
3664
3664
|
}
|
|
3665
3665
|
}
|
|
3666
3666
|
function r(u) {
|
|
@@ -3671,7 +3671,7 @@ function Sc() {
|
|
|
3671
3671
|
return e.push(u), t;
|
|
3672
3672
|
}
|
|
3673
3673
|
}
|
|
3674
|
-
function
|
|
3674
|
+
function Sc(e, t) {
|
|
3675
3675
|
let n;
|
|
3676
3676
|
return r;
|
|
3677
3677
|
function r(...i) {
|
|
@@ -3698,7 +3698,7 @@ function Nc(e, t) {
|
|
|
3698
3698
|
u(null, i);
|
|
3699
3699
|
}
|
|
3700
3700
|
}
|
|
3701
|
-
const
|
|
3701
|
+
const Se = { basename: kc, dirname: Oc, extname: yc, join: Lc, sep: "/" };
|
|
3702
3702
|
function kc(e, t) {
|
|
3703
3703
|
if (t !== void 0 && typeof t != "string")
|
|
3704
3704
|
throw new TypeError('"ext" argument must be a string');
|
|
@@ -3904,7 +3904,7 @@ class xi {
|
|
|
3904
3904
|
* Basename.
|
|
3905
3905
|
*/
|
|
3906
3906
|
get basename() {
|
|
3907
|
-
return typeof this.path == "string" ?
|
|
3907
|
+
return typeof this.path == "string" ? Se.basename(this.path) : void 0;
|
|
3908
3908
|
}
|
|
3909
3909
|
/**
|
|
3910
3910
|
* Set basename (including extname) (`'index.min.js'`).
|
|
@@ -3919,7 +3919,7 @@ class xi {
|
|
|
3919
3919
|
* Nothing.
|
|
3920
3920
|
*/
|
|
3921
3921
|
set basename(t) {
|
|
3922
|
-
Fn(t, "basename"), Bn(t, "basename"), this.path =
|
|
3922
|
+
Fn(t, "basename"), Bn(t, "basename"), this.path = Se.join(this.dirname || "", t);
|
|
3923
3923
|
}
|
|
3924
3924
|
/**
|
|
3925
3925
|
* Get the parent path (example: `'~'`).
|
|
@@ -3928,7 +3928,7 @@ class xi {
|
|
|
3928
3928
|
* Dirname.
|
|
3929
3929
|
*/
|
|
3930
3930
|
get dirname() {
|
|
3931
|
-
return typeof this.path == "string" ?
|
|
3931
|
+
return typeof this.path == "string" ? Se.dirname(this.path) : void 0;
|
|
3932
3932
|
}
|
|
3933
3933
|
/**
|
|
3934
3934
|
* Set the parent path (example: `'~'`).
|
|
@@ -3941,7 +3941,7 @@ class xi {
|
|
|
3941
3941
|
* Nothing.
|
|
3942
3942
|
*/
|
|
3943
3943
|
set dirname(t) {
|
|
3944
|
-
cu(this.basename, "dirname"), this.path =
|
|
3944
|
+
cu(this.basename, "dirname"), this.path = Se.join(t || "", this.basename);
|
|
3945
3945
|
}
|
|
3946
3946
|
/**
|
|
3947
3947
|
* Get the extname (including dot) (example: `'.js'`).
|
|
@@ -3950,7 +3950,7 @@ class xi {
|
|
|
3950
3950
|
* Extname.
|
|
3951
3951
|
*/
|
|
3952
3952
|
get extname() {
|
|
3953
|
-
return typeof this.path == "string" ?
|
|
3953
|
+
return typeof this.path == "string" ? Se.extname(this.path) : void 0;
|
|
3954
3954
|
}
|
|
3955
3955
|
/**
|
|
3956
3956
|
* Set the extname (including dot) (example: `'.js'`).
|
|
@@ -3971,7 +3971,7 @@ class xi {
|
|
|
3971
3971
|
if (t.includes(".", 1))
|
|
3972
3972
|
throw new Error("`extname` cannot contain multiple dots");
|
|
3973
3973
|
}
|
|
3974
|
-
this.path =
|
|
3974
|
+
this.path = Se.join(this.dirname, this.stem + (t || ""));
|
|
3975
3975
|
}
|
|
3976
3976
|
/**
|
|
3977
3977
|
* Get the full path (example: `'~/index.min.js'`).
|
|
@@ -4004,7 +4004,7 @@ class xi {
|
|
|
4004
4004
|
* Stem.
|
|
4005
4005
|
*/
|
|
4006
4006
|
get stem() {
|
|
4007
|
-
return typeof this.path == "string" ?
|
|
4007
|
+
return typeof this.path == "string" ? Se.basename(this.path, this.extname) : void 0;
|
|
4008
4008
|
}
|
|
4009
4009
|
/**
|
|
4010
4010
|
* Set the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -4019,7 +4019,7 @@ class xi {
|
|
|
4019
4019
|
* Nothing.
|
|
4020
4020
|
*/
|
|
4021
4021
|
set stem(t) {
|
|
4022
|
-
Fn(t, "stem"), Bn(t, "stem"), this.path =
|
|
4022
|
+
Fn(t, "stem"), Bn(t, "stem"), this.path = Se.join(this.dirname || "", t + (this.extname || ""));
|
|
4023
4023
|
}
|
|
4024
4024
|
// Normal prototypal methods.
|
|
4025
4025
|
/**
|
|
@@ -4233,9 +4233,9 @@ class xi {
|
|
|
4233
4233
|
}
|
|
4234
4234
|
}
|
|
4235
4235
|
function Bn(e, t) {
|
|
4236
|
-
if (e && e.includes(
|
|
4236
|
+
if (e && e.includes(Se.sep))
|
|
4237
4237
|
throw new Error(
|
|
4238
|
-
"`" + t + "` cannot be a path: did not expect `" +
|
|
4238
|
+
"`" + t + "` cannot be a path: did not expect `" + Se.sep + "`"
|
|
4239
4239
|
);
|
|
4240
4240
|
}
|
|
4241
4241
|
function Fn(e, t) {
|
|
@@ -4276,7 +4276,7 @@ class br extends Hc {
|
|
|
4276
4276
|
* Create a processor.
|
|
4277
4277
|
*/
|
|
4278
4278
|
constructor() {
|
|
4279
|
-
super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers =
|
|
4279
|
+
super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = Nc();
|
|
4280
4280
|
}
|
|
4281
4281
|
/**
|
|
4282
4282
|
* Copy a processor.
|
|
@@ -4746,8 +4746,8 @@ class br extends Hc {
|
|
|
4746
4746
|
r.push([c, ...h]);
|
|
4747
4747
|
else if (h.length > 0) {
|
|
4748
4748
|
let [m, ...A] = h;
|
|
4749
|
-
const
|
|
4750
|
-
Jn(
|
|
4749
|
+
const N = r[p][1];
|
|
4750
|
+
Jn(N) && Jn(m) && (m = wn(!0, N, m)), r[p] = [c, m, ...A];
|
|
4751
4751
|
}
|
|
4752
4752
|
}
|
|
4753
4753
|
}
|
|
@@ -4880,8 +4880,8 @@ function Kc(e, t) {
|
|
|
4880
4880
|
let m;
|
|
4881
4881
|
for (m in Ln)
|
|
4882
4882
|
if (Object.hasOwn(Ln, m) && Object.hasOwn(h.properties, m)) {
|
|
4883
|
-
const A = h.properties[m],
|
|
4884
|
-
(
|
|
4883
|
+
const A = h.properties[m], N = Ln[m];
|
|
4884
|
+
(N === null || N.includes(h.tagName)) && (h.properties[m] = l(String(A || ""), m, h));
|
|
4885
4885
|
}
|
|
4886
4886
|
}
|
|
4887
4887
|
if (h.type === "element") {
|
|
@@ -4900,14 +4900,14 @@ function $c(e) {
|
|
|
4900
4900
|
Vc.test(e.slice(0, t)) ? e : ""
|
|
4901
4901
|
);
|
|
4902
4902
|
}
|
|
4903
|
-
const
|
|
4903
|
+
const Ni = -1, Cn = 0, fn = 1, hn = 2, gr = 3, Ar = 4, _r = 5, Cr = 6, Si = 7, ki = 8, pu = typeof self == "object" ? self : globalThis, Jc = (e, t) => {
|
|
4904
4904
|
const n = (u, a) => (e.set(a, u), u), r = (u) => {
|
|
4905
4905
|
if (e.has(u))
|
|
4906
4906
|
return e.get(u);
|
|
4907
4907
|
const [a, i] = t[u];
|
|
4908
4908
|
switch (a) {
|
|
4909
4909
|
case Cn:
|
|
4910
|
-
case
|
|
4910
|
+
case Ni:
|
|
4911
4911
|
return n(i, u);
|
|
4912
4912
|
case fn: {
|
|
4913
4913
|
const o = n([], u);
|
|
@@ -4939,7 +4939,7 @@ const Si = -1, Cn = 0, fn = 1, hn = 2, gr = 3, Ar = 4, _r = 5, Cr = 6, Ni = 7, k
|
|
|
4939
4939
|
o.add(r(l));
|
|
4940
4940
|
return o;
|
|
4941
4941
|
}
|
|
4942
|
-
case
|
|
4942
|
+
case Si: {
|
|
4943
4943
|
const { name: o, message: l } = i;
|
|
4944
4944
|
return n(new pu[o](l), u);
|
|
4945
4945
|
}
|
|
@@ -4951,7 +4951,7 @@ const Si = -1, Cn = 0, fn = 1, hn = 2, gr = 3, Ar = 4, _r = 5, Cr = 6, Ni = 7, k
|
|
|
4951
4951
|
return n(new pu[a](i), u);
|
|
4952
4952
|
};
|
|
4953
4953
|
return r;
|
|
4954
|
-
}, Eu = (e) => Jc(/* @__PURE__ */ new Map(), e)(0), ot = "", { toString: Zc } = {}, { keys: e0 } = Object,
|
|
4954
|
+
}, Eu = (e) => Jc(/* @__PURE__ */ new Map(), e)(0), ot = "", { toString: Zc } = {}, { keys: e0 } = Object, St = (e) => {
|
|
4955
4955
|
const t = typeof e;
|
|
4956
4956
|
if (t !== "object" || !e)
|
|
4957
4957
|
return [Cn, t];
|
|
@@ -4970,7 +4970,7 @@ const Si = -1, Cn = 0, fn = 1, hn = 2, gr = 3, Ar = 4, _r = 5, Cr = 6, Ni = 7, k
|
|
|
4970
4970
|
case "Set":
|
|
4971
4971
|
return [Cr, ot];
|
|
4972
4972
|
}
|
|
4973
|
-
return n.includes("Array") ? [fn, n] : n.includes("Error") ? [
|
|
4973
|
+
return n.includes("Array") ? [fn, n] : n.includes("Error") ? [Si, n] : [hn, n];
|
|
4974
4974
|
}, Kt = ([e, t]) => e === Cn && (t === "function" || t === "symbol"), t0 = (e, t, n, r) => {
|
|
4975
4975
|
const u = (i, o) => {
|
|
4976
4976
|
const l = r.push(i) - 1;
|
|
@@ -4978,7 +4978,7 @@ const Si = -1, Cn = 0, fn = 1, hn = 2, gr = 3, Ar = 4, _r = 5, Cr = 6, Ni = 7, k
|
|
|
4978
4978
|
}, a = (i) => {
|
|
4979
4979
|
if (n.has(i))
|
|
4980
4980
|
return n.get(i);
|
|
4981
|
-
let [o, l] =
|
|
4981
|
+
let [o, l] = St(i);
|
|
4982
4982
|
switch (o) {
|
|
4983
4983
|
case Cn: {
|
|
4984
4984
|
let h = i;
|
|
@@ -4993,7 +4993,7 @@ const Si = -1, Cn = 0, fn = 1, hn = 2, gr = 3, Ar = 4, _r = 5, Cr = 6, Ni = 7, k
|
|
|
4993
4993
|
h = null;
|
|
4994
4994
|
break;
|
|
4995
4995
|
case "undefined":
|
|
4996
|
-
return u([
|
|
4996
|
+
return u([Ni], i);
|
|
4997
4997
|
}
|
|
4998
4998
|
return u([o, h], i);
|
|
4999
4999
|
}
|
|
@@ -5019,7 +5019,7 @@ const Si = -1, Cn = 0, fn = 1, hn = 2, gr = 3, Ar = 4, _r = 5, Cr = 6, Ni = 7, k
|
|
|
5019
5019
|
return a(i.toJSON());
|
|
5020
5020
|
const h = [], f = u([o, h], i);
|
|
5021
5021
|
for (const p of e0(i))
|
|
5022
|
-
(e || !Kt(
|
|
5022
|
+
(e || !Kt(St(i[p]))) && h.push([a(p), a(i[p])]);
|
|
5023
5023
|
return f;
|
|
5024
5024
|
}
|
|
5025
5025
|
case gr:
|
|
@@ -5031,13 +5031,13 @@ const Si = -1, Cn = 0, fn = 1, hn = 2, gr = 3, Ar = 4, _r = 5, Cr = 6, Ni = 7, k
|
|
|
5031
5031
|
case _r: {
|
|
5032
5032
|
const h = [], f = u([o, h], i);
|
|
5033
5033
|
for (const [p, m] of i)
|
|
5034
|
-
(e || !(Kt(
|
|
5034
|
+
(e || !(Kt(St(p)) || Kt(St(m)))) && h.push([a(p), a(m)]);
|
|
5035
5035
|
return f;
|
|
5036
5036
|
}
|
|
5037
5037
|
case Cr: {
|
|
5038
5038
|
const h = [], f = u([o, h], i);
|
|
5039
5039
|
for (const p of i)
|
|
5040
|
-
(e || !Kt(
|
|
5040
|
+
(e || !Kt(St(p))) && h.push(a(p));
|
|
5041
5041
|
return f;
|
|
5042
5042
|
}
|
|
5043
5043
|
}
|
|
@@ -6401,7 +6401,7 @@ const $e = {
|
|
|
6401
6401
|
}, Fi = {}.hasOwnProperty, g0 = Object.prototype;
|
|
6402
6402
|
function A0(e, t) {
|
|
6403
6403
|
const n = t || {};
|
|
6404
|
-
return
|
|
6404
|
+
return Nr(
|
|
6405
6405
|
{
|
|
6406
6406
|
file: n.file || void 0,
|
|
6407
6407
|
location: !1,
|
|
@@ -6411,7 +6411,7 @@ function A0(e, t) {
|
|
|
6411
6411
|
e
|
|
6412
6412
|
);
|
|
6413
6413
|
}
|
|
6414
|
-
function
|
|
6414
|
+
function Nr(e, t) {
|
|
6415
6415
|
let n;
|
|
6416
6416
|
switch (t.nodeName) {
|
|
6417
6417
|
case "#comment": {
|
|
@@ -6466,7 +6466,7 @@ function Hi(e, t) {
|
|
|
6466
6466
|
for (; ++n < t.length; ) {
|
|
6467
6467
|
const u = (
|
|
6468
6468
|
/** @type {RootContent} */
|
|
6469
|
-
|
|
6469
|
+
Nr(e, t[n])
|
|
6470
6470
|
);
|
|
6471
6471
|
r.push(u);
|
|
6472
6472
|
}
|
|
@@ -6488,7 +6488,7 @@ function _0(e, t) {
|
|
|
6488
6488
|
t
|
|
6489
6489
|
), l = o.sourceCodeLocation, c = l && l.startTag && ft(l.startTag), h = l && l.endTag && ft(l.endTag), f = (
|
|
6490
6490
|
/** @type {Root} */
|
|
6491
|
-
|
|
6491
|
+
Nr(e, o.content)
|
|
6492
6492
|
);
|
|
6493
6493
|
c && h && e.file && (f.position = { start: c.end, end: h.start }), i.content = f;
|
|
6494
6494
|
}
|
|
@@ -6534,23 +6534,23 @@ function ft(e) {
|
|
|
6534
6534
|
function xu(e) {
|
|
6535
6535
|
return e.line && e.column ? e : void 0;
|
|
6536
6536
|
}
|
|
6537
|
-
const I0 = {}, x0 = {}.hasOwnProperty, Ui = ri("type", { handlers: { root:
|
|
6538
|
-
function
|
|
6537
|
+
const I0 = {}, x0 = {}.hasOwnProperty, Ui = ri("type", { handlers: { root: S0, element: R0, text: y0, comment: L0, doctype: O0 } });
|
|
6538
|
+
function N0(e, t) {
|
|
6539
6539
|
const r = (t || I0).space;
|
|
6540
6540
|
return Ui(e, r === "svg" ? qt : In);
|
|
6541
6541
|
}
|
|
6542
|
-
function
|
|
6542
|
+
function S0(e, t) {
|
|
6543
6543
|
const n = {
|
|
6544
6544
|
nodeName: "#document",
|
|
6545
6545
|
// @ts-expect-error: `parse5` uses enums, which are actually strings.
|
|
6546
6546
|
mode: (e.data || {}).quirksMode ? "quirks" : "no-quirks",
|
|
6547
6547
|
childNodes: []
|
|
6548
6548
|
};
|
|
6549
|
-
return n.childNodes =
|
|
6549
|
+
return n.childNodes = Sr(e.children, n, t), gt(e, n), n;
|
|
6550
6550
|
}
|
|
6551
6551
|
function k0(e, t) {
|
|
6552
6552
|
const n = { nodeName: "#document-fragment", childNodes: [] };
|
|
6553
|
-
return n.childNodes =
|
|
6553
|
+
return n.childNodes = Sr(e.children, n, t), gt(e, n), n;
|
|
6554
6554
|
}
|
|
6555
6555
|
function O0(e) {
|
|
6556
6556
|
const t = {
|
|
@@ -6604,7 +6604,7 @@ function R0(e, t) {
|
|
|
6604
6604
|
childNodes: [],
|
|
6605
6605
|
parentNode: null
|
|
6606
6606
|
};
|
|
6607
|
-
return o.childNodes =
|
|
6607
|
+
return o.childNodes = Sr(e.children, o, r), gt(e, o), e.tagName === "template" && e.content && (o.content = k0(e.content, r)), o;
|
|
6608
6608
|
}
|
|
6609
6609
|
function D0(e, t, n) {
|
|
6610
6610
|
const r = xr(e, t);
|
|
@@ -6621,7 +6621,7 @@ function D0(e, t, n) {
|
|
|
6621
6621
|
}
|
|
6622
6622
|
return u;
|
|
6623
6623
|
}
|
|
6624
|
-
function
|
|
6624
|
+
function Sr(e, t, n) {
|
|
6625
6625
|
let r = -1;
|
|
6626
6626
|
const u = [];
|
|
6627
6627
|
if (e)
|
|
@@ -7376,7 +7376,7 @@ function K0(e) {
|
|
|
7376
7376
|
function Ue(e) {
|
|
7377
7377
|
return K0(e) || Lt(e);
|
|
7378
7378
|
}
|
|
7379
|
-
function
|
|
7379
|
+
function Nu(e) {
|
|
7380
7380
|
return Ue(e) || X0(e);
|
|
7381
7381
|
}
|
|
7382
7382
|
function $t(e) {
|
|
@@ -7385,7 +7385,7 @@ function $t(e) {
|
|
|
7385
7385
|
function Qi(e) {
|
|
7386
7386
|
return e === d.SPACE || e === d.LINE_FEED || e === d.TABULATION || e === d.FORM_FEED;
|
|
7387
7387
|
}
|
|
7388
|
-
function
|
|
7388
|
+
function Su(e) {
|
|
7389
7389
|
return Qi(e) || e === d.SOLIDUS || e === d.GREATER_THAN_SIGN;
|
|
7390
7390
|
}
|
|
7391
7391
|
function $0(e) {
|
|
@@ -8268,7 +8268,7 @@ class J0 {
|
|
|
8268
8268
|
// Script data double escape start state
|
|
8269
8269
|
//------------------------------------------------------------------
|
|
8270
8270
|
_stateScriptDataDoubleEscapeStart(t) {
|
|
8271
|
-
if (this.preprocessor.startsWith(me.SCRIPT, !1) &&
|
|
8271
|
+
if (this.preprocessor.startsWith(me.SCRIPT, !1) && Su(this.preprocessor.peek(me.SCRIPT.length))) {
|
|
8272
8272
|
this._emitCodePoint(t);
|
|
8273
8273
|
for (let n = 0; n < me.SCRIPT.length; n++)
|
|
8274
8274
|
this._emitCodePoint(this._consume());
|
|
@@ -8359,7 +8359,7 @@ class J0 {
|
|
|
8359
8359
|
// Script data double escape end state
|
|
8360
8360
|
//------------------------------------------------------------------
|
|
8361
8361
|
_stateScriptDataDoubleEscapeEnd(t) {
|
|
8362
|
-
if (this.preprocessor.startsWith(me.SCRIPT, !1) &&
|
|
8362
|
+
if (this.preprocessor.startsWith(me.SCRIPT, !1) && Su(this.preprocessor.peek(me.SCRIPT.length))) {
|
|
8363
8363
|
this._emitCodePoint(t);
|
|
8364
8364
|
for (let n = 0; n < me.SCRIPT.length; n++)
|
|
8365
8365
|
this._emitCodePoint(this._consume());
|
|
@@ -9273,12 +9273,12 @@ class J0 {
|
|
|
9273
9273
|
this.active = !1, this.preprocessor.pos = this.preprocessor.html.length - 1, this.consumedAfterSnapshot = 0, this.preprocessor.endOfChunkHit = !0;
|
|
9274
9274
|
return;
|
|
9275
9275
|
}
|
|
9276
|
-
t === 0 ? (this.preprocessor.pos = this.entityStartPos, this._flushCodePointConsumedAsCharacterReference(d.AMPERSAND), this.state = !this._isCharacterReferenceInAttribute() &&
|
|
9276
|
+
t === 0 ? (this.preprocessor.pos = this.entityStartPos, this._flushCodePointConsumedAsCharacterReference(d.AMPERSAND), this.state = !this._isCharacterReferenceInAttribute() && Nu(this.preprocessor.peek(1)) ? E.AMBIGUOUS_AMPERSAND : this.returnState) : this.state = this.returnState;
|
|
9277
9277
|
}
|
|
9278
9278
|
// Ambiguos ampersand state
|
|
9279
9279
|
//------------------------------------------------------------------
|
|
9280
9280
|
_stateAmbiguousAmpersand(t) {
|
|
9281
|
-
|
|
9281
|
+
Nu(t) ? this._flushCodePointConsumedAsCharacterReference(t) : (t === d.SEMICOLON && this._err(C.unknownNamedCharacterReference), this.state = this.returnState, this._callState(t));
|
|
9282
9282
|
}
|
|
9283
9283
|
}
|
|
9284
9284
|
const Gi = /* @__PURE__ */ new Set([s.DD, s.DT, s.LI, s.OPTGROUP, s.OPTION, s.P, s.RB, s.RP, s.RT, s.RTC]), ku = /* @__PURE__ */ new Set([
|
|
@@ -10045,10 +10045,10 @@ function xf(e, t, n) {
|
|
|
10045
10045
|
}
|
|
10046
10046
|
return t === O.SVG && (e === s.FOREIGN_OBJECT || e === s.DESC || e === s.TITLE);
|
|
10047
10047
|
}
|
|
10048
|
-
function
|
|
10048
|
+
function Nf(e, t, n, r) {
|
|
10049
10049
|
return (!r || r === O.HTML) && xf(e, t, n) || (!r || r === O.MATHML) && If(e, t);
|
|
10050
10050
|
}
|
|
10051
|
-
const
|
|
10051
|
+
const Sf = "hidden", kf = 8, Of = 3;
|
|
10052
10052
|
var T;
|
|
10053
10053
|
(function(e) {
|
|
10054
10054
|
e[e.INITIAL = 0] = "INITIAL", e[e.BEFORE_HTML = 1] = "BEFORE_HTML", e[e.BEFORE_HEAD = 2] = "BEFORE_HEAD", e[e.IN_HEAD = 3] = "IN_HEAD", e[e.IN_HEAD_NO_SCRIPT = 4] = "IN_HEAD_NO_SCRIPT", e[e.AFTER_HEAD = 5] = "AFTER_HEAD", e[e.IN_BODY = 6] = "IN_BODY", e[e.TEXT = 7] = "TEXT", e[e.IN_TABLE = 8] = "IN_TABLE", e[e.IN_TABLE_TEXT = 9] = "IN_TABLE_TEXT", e[e.IN_CAPTION = 10] = "IN_CAPTION", e[e.IN_COLUMN_GROUP = 11] = "IN_COLUMN_GROUP", e[e.IN_TABLE_BODY = 12] = "IN_TABLE_BODY", e[e.IN_ROW = 13] = "IN_ROW", e[e.IN_CELL = 14] = "IN_CELL", e[e.IN_SELECT = 15] = "IN_SELECT", e[e.IN_SELECT_IN_TABLE = 16] = "IN_SELECT_IN_TABLE", e[e.IN_TEMPLATE = 17] = "IN_TEMPLATE", e[e.AFTER_BODY = 18] = "AFTER_BODY", e[e.IN_FRAMESET = 19] = "IN_FRAMESET", e[e.AFTER_FRAMESET = 20] = "AFTER_FRAMESET", e[e.AFTER_AFTER_BODY = 21] = "AFTER_AFTER_BODY", e[e.AFTER_AFTER_FRAMESET = 22] = "AFTER_AFTER_FRAMESET";
|
|
@@ -10324,7 +10324,7 @@ class wu {
|
|
|
10324
10324
|
/** @protected */
|
|
10325
10325
|
_isIntegrationPoint(t, n, r) {
|
|
10326
10326
|
const u = this.treeAdapter.getNamespaceURI(n), a = this.treeAdapter.getAttrList(n);
|
|
10327
|
-
return
|
|
10327
|
+
return Nf(t, u, a, r);
|
|
10328
10328
|
}
|
|
10329
10329
|
//Active formatting elements reconstruction
|
|
10330
10330
|
/** @protected */
|
|
@@ -10684,7 +10684,7 @@ class wu {
|
|
|
10684
10684
|
break;
|
|
10685
10685
|
}
|
|
10686
10686
|
case T.IN_HEAD: {
|
|
10687
|
-
|
|
10687
|
+
Ne(this, t);
|
|
10688
10688
|
break;
|
|
10689
10689
|
}
|
|
10690
10690
|
case T.IN_HEAD_NO_SCRIPT: {
|
|
@@ -10716,7 +10716,7 @@ class wu {
|
|
|
10716
10716
|
break;
|
|
10717
10717
|
}
|
|
10718
10718
|
case T.IN_TABLE_BODY: {
|
|
10719
|
-
|
|
10719
|
+
Sn(this, t);
|
|
10720
10720
|
break;
|
|
10721
10721
|
}
|
|
10722
10722
|
case T.IN_ROW: {
|
|
@@ -10793,7 +10793,7 @@ class wu {
|
|
|
10793
10793
|
break;
|
|
10794
10794
|
}
|
|
10795
10795
|
case T.IN_BODY: {
|
|
10796
|
-
|
|
10796
|
+
Nn(this, t);
|
|
10797
10797
|
break;
|
|
10798
10798
|
}
|
|
10799
10799
|
case T.TEXT: {
|
|
@@ -11081,7 +11081,7 @@ function Yf(e, t) {
|
|
|
11081
11081
|
function wt(e, t) {
|
|
11082
11082
|
e._insertFakeElement(_.HEAD, s.HEAD), e.headElement = e.openElements.current, e.insertionMode = T.IN_HEAD, e._processToken(t);
|
|
11083
11083
|
}
|
|
11084
|
-
function
|
|
11084
|
+
function Ne(e, t) {
|
|
11085
11085
|
switch (t.tagID) {
|
|
11086
11086
|
case s.HTML: {
|
|
11087
11087
|
he(e, t);
|
|
@@ -11163,7 +11163,7 @@ function jf(e, t) {
|
|
|
11163
11163
|
case s.META:
|
|
11164
11164
|
case s.NOFRAMES:
|
|
11165
11165
|
case s.STYLE: {
|
|
11166
|
-
|
|
11166
|
+
Ne(e, t);
|
|
11167
11167
|
break;
|
|
11168
11168
|
}
|
|
11169
11169
|
case s.NOSCRIPT: {
|
|
@@ -11216,7 +11216,7 @@ function Wf(e, t) {
|
|
|
11216
11216
|
case s.STYLE:
|
|
11217
11217
|
case s.TEMPLATE:
|
|
11218
11218
|
case s.TITLE: {
|
|
11219
|
-
e._err(t, C.abandonedHeadElementChild), e.openElements.push(e.headElement, s.HEAD),
|
|
11219
|
+
e._err(t, C.abandonedHeadElementChild), e.openElements.push(e.headElement, s.HEAD), Ne(e, t), e.openElements.remove(e.headElement);
|
|
11220
11220
|
break;
|
|
11221
11221
|
}
|
|
11222
11222
|
case s.HEAD: {
|
|
@@ -11265,7 +11265,7 @@ function xn(e, t) {
|
|
|
11265
11265
|
break;
|
|
11266
11266
|
}
|
|
11267
11267
|
case q.END_TAG: {
|
|
11268
|
-
|
|
11268
|
+
Nn(e, t);
|
|
11269
11269
|
break;
|
|
11270
11270
|
}
|
|
11271
11271
|
case q.EOF: {
|
|
@@ -11345,7 +11345,7 @@ function ra(e, t) {
|
|
|
11345
11345
|
}
|
|
11346
11346
|
function ua(e) {
|
|
11347
11347
|
const t = qi(e, Ze.TYPE);
|
|
11348
|
-
return t != null && t.toLowerCase() ===
|
|
11348
|
+
return t != null && t.toLowerCase() === Sf;
|
|
11349
11349
|
}
|
|
11350
11350
|
function lh(e, t) {
|
|
11351
11351
|
e._reconstructActiveFormattingElements(), e._appendElement(t, O.HTML), ua(t) || (e.framesetOk = !1), t.ackSelfClosing = !0;
|
|
@@ -11505,7 +11505,7 @@ function he(e, t) {
|
|
|
11505
11505
|
case s.BGSOUND:
|
|
11506
11506
|
case s.BASEFONT:
|
|
11507
11507
|
case s.TEMPLATE: {
|
|
11508
|
-
|
|
11508
|
+
Ne(e, t);
|
|
11509
11509
|
break;
|
|
11510
11510
|
}
|
|
11511
11511
|
case s.BODY: {
|
|
@@ -11615,11 +11615,11 @@ function xh(e, t) {
|
|
|
11615
11615
|
const n = t.tagID;
|
|
11616
11616
|
e.openElements.hasInScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n));
|
|
11617
11617
|
}
|
|
11618
|
-
function
|
|
11618
|
+
function Nh(e) {
|
|
11619
11619
|
const t = e.openElements.tmplCount > 0, { formElement: n } = e;
|
|
11620
11620
|
t || (e.formElement = null), (n || t) && e.openElements.hasInScope(s.FORM) && (e.openElements.generateImpliedEndTags(), t ? e.openElements.popUntilTagNamePopped(s.FORM) : n && e.openElements.remove(n));
|
|
11621
11621
|
}
|
|
11622
|
-
function
|
|
11622
|
+
function Sh(e) {
|
|
11623
11623
|
e.openElements.hasInButtonScope(s.P) || e._insertFakeElement(_.P, s.P), e._closePElement();
|
|
11624
11624
|
}
|
|
11625
11625
|
function kh(e) {
|
|
@@ -11651,7 +11651,7 @@ function ia(e, t) {
|
|
|
11651
11651
|
break;
|
|
11652
11652
|
}
|
|
11653
11653
|
}
|
|
11654
|
-
function
|
|
11654
|
+
function Nn(e, t) {
|
|
11655
11655
|
switch (t.tagID) {
|
|
11656
11656
|
case s.A:
|
|
11657
11657
|
case s.B:
|
|
@@ -11671,7 +11671,7 @@ function Sn(e, t) {
|
|
|
11671
11671
|
break;
|
|
11672
11672
|
}
|
|
11673
11673
|
case s.P: {
|
|
11674
|
-
|
|
11674
|
+
Sh(e);
|
|
11675
11675
|
break;
|
|
11676
11676
|
}
|
|
11677
11677
|
case s.DL:
|
|
@@ -11735,7 +11735,7 @@ function Sn(e, t) {
|
|
|
11735
11735
|
break;
|
|
11736
11736
|
}
|
|
11737
11737
|
case s.FORM: {
|
|
11738
|
-
|
|
11738
|
+
Nh(e);
|
|
11739
11739
|
break;
|
|
11740
11740
|
}
|
|
11741
11741
|
case s.APPLET:
|
|
@@ -11790,7 +11790,7 @@ function Fh(e, t) {
|
|
|
11790
11790
|
e.openElements.clearBackToTableContext(), e._insertElement(t, O.HTML), e.insertionMode = T.IN_TABLE_BODY;
|
|
11791
11791
|
}
|
|
11792
11792
|
function Hh(e, t) {
|
|
11793
|
-
e.openElements.clearBackToTableContext(), e._insertFakeElement(_.TBODY, s.TBODY), e.insertionMode = T.IN_TABLE_BODY,
|
|
11793
|
+
e.openElements.clearBackToTableContext(), e._insertFakeElement(_.TBODY, s.TBODY), e.insertionMode = T.IN_TABLE_BODY, Sn(e, t);
|
|
11794
11794
|
}
|
|
11795
11795
|
function Uh(e, t) {
|
|
11796
11796
|
e.openElements.hasInTableScope(s.TABLE) && (e.openElements.popUntilTagNamePopped(s.TABLE), e._resetInsertionMode(), e._processStartTag(t));
|
|
@@ -11812,7 +11812,7 @@ function pt(e, t) {
|
|
|
11812
11812
|
case s.STYLE:
|
|
11813
11813
|
case s.SCRIPT:
|
|
11814
11814
|
case s.TEMPLATE: {
|
|
11815
|
-
|
|
11815
|
+
Ne(e, t);
|
|
11816
11816
|
break;
|
|
11817
11817
|
}
|
|
11818
11818
|
case s.COL: {
|
|
@@ -11920,7 +11920,7 @@ function qh(e, t) {
|
|
|
11920
11920
|
case s.TR:
|
|
11921
11921
|
break;
|
|
11922
11922
|
default:
|
|
11923
|
-
|
|
11923
|
+
Nn(e, t);
|
|
11924
11924
|
}
|
|
11925
11925
|
}
|
|
11926
11926
|
function Lr(e, t) {
|
|
@@ -11934,7 +11934,7 @@ function Lr(e, t) {
|
|
|
11934
11934
|
break;
|
|
11935
11935
|
}
|
|
11936
11936
|
case s.TEMPLATE: {
|
|
11937
|
-
|
|
11937
|
+
Ne(e, t);
|
|
11938
11938
|
break;
|
|
11939
11939
|
}
|
|
11940
11940
|
default:
|
|
@@ -11960,7 +11960,7 @@ function jh(e, t) {
|
|
|
11960
11960
|
function mn(e, t) {
|
|
11961
11961
|
e.openElements.currentTagId === s.COLGROUP && (e.openElements.pop(), e.insertionMode = T.IN_TABLE, e._processToken(t));
|
|
11962
11962
|
}
|
|
11963
|
-
function
|
|
11963
|
+
function Sn(e, t) {
|
|
11964
11964
|
switch (t.tagID) {
|
|
11965
11965
|
case s.TR: {
|
|
11966
11966
|
e.openElements.clearBackToTableBodyContext(), e._insertElement(t, O.HTML), e.insertionMode = T.IN_ROW;
|
|
@@ -12024,7 +12024,7 @@ function kn(e, t) {
|
|
|
12024
12024
|
case s.TFOOT:
|
|
12025
12025
|
case s.THEAD:
|
|
12026
12026
|
case s.TR: {
|
|
12027
|
-
e.openElements.hasInTableScope(s.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = T.IN_TABLE_BODY,
|
|
12027
|
+
e.openElements.hasInTableScope(s.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = T.IN_TABLE_BODY, Sn(e, t));
|
|
12028
12028
|
break;
|
|
12029
12029
|
}
|
|
12030
12030
|
default:
|
|
@@ -12086,7 +12086,7 @@ function Wh(e, t) {
|
|
|
12086
12086
|
case s.HTML:
|
|
12087
12087
|
break;
|
|
12088
12088
|
default:
|
|
12089
|
-
|
|
12089
|
+
Nn(e, t);
|
|
12090
12090
|
}
|
|
12091
12091
|
}
|
|
12092
12092
|
function fa(e, t) {
|
|
@@ -12116,7 +12116,7 @@ function fa(e, t) {
|
|
|
12116
12116
|
}
|
|
12117
12117
|
case s.SCRIPT:
|
|
12118
12118
|
case s.TEMPLATE: {
|
|
12119
|
-
|
|
12119
|
+
Ne(e, t);
|
|
12120
12120
|
break;
|
|
12121
12121
|
}
|
|
12122
12122
|
}
|
|
@@ -12162,7 +12162,7 @@ function Xh(e, t) {
|
|
|
12162
12162
|
case s.STYLE:
|
|
12163
12163
|
case s.TEMPLATE:
|
|
12164
12164
|
case s.TITLE: {
|
|
12165
|
-
|
|
12165
|
+
Ne(e, t);
|
|
12166
12166
|
break;
|
|
12167
12167
|
}
|
|
12168
12168
|
// Re-process the token in the appropriate mode
|
|
@@ -12179,7 +12179,7 @@ function Xh(e, t) {
|
|
|
12179
12179
|
break;
|
|
12180
12180
|
}
|
|
12181
12181
|
case s.TR: {
|
|
12182
|
-
e.tmplInsertionModeStack[0] = T.IN_TABLE_BODY, e.insertionMode = T.IN_TABLE_BODY,
|
|
12182
|
+
e.tmplInsertionModeStack[0] = T.IN_TABLE_BODY, e.insertionMode = T.IN_TABLE_BODY, Sn(e, t);
|
|
12183
12183
|
break;
|
|
12184
12184
|
}
|
|
12185
12185
|
case s.TD:
|
|
@@ -12229,7 +12229,7 @@ function Jh(e, t) {
|
|
|
12229
12229
|
break;
|
|
12230
12230
|
}
|
|
12231
12231
|
case s.NOFRAMES: {
|
|
12232
|
-
|
|
12232
|
+
Ne(e, t);
|
|
12233
12233
|
break;
|
|
12234
12234
|
}
|
|
12235
12235
|
}
|
|
@@ -12244,7 +12244,7 @@ function ed(e, t) {
|
|
|
12244
12244
|
break;
|
|
12245
12245
|
}
|
|
12246
12246
|
case s.NOFRAMES: {
|
|
12247
|
-
|
|
12247
|
+
Ne(e, t);
|
|
12248
12248
|
break;
|
|
12249
12249
|
}
|
|
12250
12250
|
}
|
|
@@ -12265,7 +12265,7 @@ function rd(e, t) {
|
|
|
12265
12265
|
break;
|
|
12266
12266
|
}
|
|
12267
12267
|
case s.NOFRAMES: {
|
|
12268
|
-
|
|
12268
|
+
Ne(e, t);
|
|
12269
12269
|
break;
|
|
12270
12270
|
}
|
|
12271
12271
|
}
|
|
@@ -12443,7 +12443,7 @@ function Td(e, t) {
|
|
|
12443
12443
|
const r = t.parser.openElements.current;
|
|
12444
12444
|
let u = "namespaceURI" in r ? r.namespaceURI : $e.html;
|
|
12445
12445
|
u === $e.html && n === "svg" && (u = $e.svg);
|
|
12446
|
-
const a =
|
|
12446
|
+
const a = N0(
|
|
12447
12447
|
// Shallow clone to not delve into `children`: we only need the attributes.
|
|
12448
12448
|
{ ...e, children: [] },
|
|
12449
12449
|
{ space: u === $e.svg ? "svg" : "html" }
|
|
@@ -12566,20 +12566,20 @@ function Id(e) {
|
|
|
12566
12566
|
let r = -1;
|
|
12567
12567
|
for (; ++r < n.length; ) {
|
|
12568
12568
|
const u = n[r];
|
|
12569
|
-
t.push([xd(u[0]),
|
|
12569
|
+
t.push([xd(u[0]), Nd(u[1])]);
|
|
12570
12570
|
}
|
|
12571
12571
|
return t;
|
|
12572
12572
|
}
|
|
12573
12573
|
function xd(e) {
|
|
12574
12574
|
return typeof e == "string" ? new RegExp(Ps(e), "g") : e;
|
|
12575
12575
|
}
|
|
12576
|
-
function
|
|
12576
|
+
function Nd(e) {
|
|
12577
12577
|
return typeof e == "function" ? e : function() {
|
|
12578
12578
|
return e;
|
|
12579
12579
|
};
|
|
12580
12580
|
}
|
|
12581
12581
|
const Vn = "phrasing", Wn = ["autolink", "link", "image", "label"];
|
|
12582
|
-
function
|
|
12582
|
+
function Sd() {
|
|
12583
12583
|
return {
|
|
12584
12584
|
transforms: [Pd],
|
|
12585
12585
|
enter: {
|
|
@@ -12845,7 +12845,7 @@ function rm(e, t) {
|
|
|
12845
12845
|
const n = t || {}, r = (n.align || []).concat(), u = n.stringLength || nm, a = [], i = [], o = [], l = [];
|
|
12846
12846
|
let c = 0, h = -1;
|
|
12847
12847
|
for (; ++h < e.length; ) {
|
|
12848
|
-
const
|
|
12848
|
+
const N = [], L = [];
|
|
12849
12849
|
let x = -1;
|
|
12850
12850
|
for (e[h].length > c && (c = e[h].length); ++x < e[h].length; ) {
|
|
12851
12851
|
const w = um(e[h][x]);
|
|
@@ -12853,25 +12853,25 @@ function rm(e, t) {
|
|
|
12853
12853
|
const R = u(w);
|
|
12854
12854
|
L[x] = R, (l[x] === void 0 || R > l[x]) && (l[x] = R);
|
|
12855
12855
|
}
|
|
12856
|
-
|
|
12856
|
+
N.push(w);
|
|
12857
12857
|
}
|
|
12858
|
-
i[h] =
|
|
12858
|
+
i[h] = N, o[h] = L;
|
|
12859
12859
|
}
|
|
12860
12860
|
let f = -1;
|
|
12861
12861
|
if (typeof r == "object" && "length" in r)
|
|
12862
12862
|
for (; ++f < c; )
|
|
12863
12863
|
a[f] = Hu(r[f]);
|
|
12864
12864
|
else {
|
|
12865
|
-
const
|
|
12865
|
+
const N = Hu(r);
|
|
12866
12866
|
for (; ++f < c; )
|
|
12867
|
-
a[f] =
|
|
12867
|
+
a[f] = N;
|
|
12868
12868
|
}
|
|
12869
12869
|
f = -1;
|
|
12870
12870
|
const p = [], m = [];
|
|
12871
12871
|
for (; ++f < c; ) {
|
|
12872
|
-
const
|
|
12872
|
+
const N = a[f];
|
|
12873
12873
|
let L = "", x = "";
|
|
12874
|
-
|
|
12874
|
+
N === 99 ? (L = ":", x = ":") : N === 108 ? L = ":" : N === 114 && (x = ":");
|
|
12875
12875
|
let w = n.alignDelimiters === !1 ? 1 : Math.max(
|
|
12876
12876
|
1,
|
|
12877
12877
|
l[f] - L.length - x.length
|
|
@@ -12882,11 +12882,11 @@ function rm(e, t) {
|
|
|
12882
12882
|
i.splice(1, 0, p), o.splice(1, 0, m), h = -1;
|
|
12883
12883
|
const A = [];
|
|
12884
12884
|
for (; ++h < i.length; ) {
|
|
12885
|
-
const
|
|
12885
|
+
const N = i[h], L = o[h];
|
|
12886
12886
|
f = -1;
|
|
12887
12887
|
const x = [];
|
|
12888
12888
|
for (; ++f < c; ) {
|
|
12889
|
-
const w =
|
|
12889
|
+
const w = N[f] || "";
|
|
12890
12890
|
let R = "", z = "";
|
|
12891
12891
|
if (n.alignDelimiters !== !1) {
|
|
12892
12892
|
const Y = l[f] - (L[f] || 0), k = a[f];
|
|
@@ -13149,15 +13149,15 @@ function Tm(e, t, n, r) {
|
|
|
13149
13149
|
});
|
|
13150
13150
|
return /^[\t ]/.test(c) && (c = vt(c.charCodeAt(0)) + c.slice(1)), c = c ? i + " " + c : i, n.options.closeAtx && (c += " " + i), l(), o(), c;
|
|
13151
13151
|
}
|
|
13152
|
-
|
|
13153
|
-
function
|
|
13152
|
+
Na.peek = bm;
|
|
13153
|
+
function Na(e) {
|
|
13154
13154
|
return e.value || "";
|
|
13155
13155
|
}
|
|
13156
13156
|
function bm() {
|
|
13157
13157
|
return "<";
|
|
13158
13158
|
}
|
|
13159
|
-
|
|
13160
|
-
function
|
|
13159
|
+
Sa.peek = gm;
|
|
13160
|
+
function Sa(e, t, n, r) {
|
|
13161
13161
|
const u = Rr(n), a = u === '"' ? "Quote" : "Apostrophe", i = n.enter("image");
|
|
13162
13162
|
let o = n.enter("label");
|
|
13163
13163
|
const l = n.createTracker(r);
|
|
@@ -13330,7 +13330,7 @@ function xm(e) {
|
|
|
13330
13330
|
);
|
|
13331
13331
|
return n;
|
|
13332
13332
|
}
|
|
13333
|
-
function
|
|
13333
|
+
function Nm(e) {
|
|
13334
13334
|
const t = e.options.bulletOrdered || ".";
|
|
13335
13335
|
if (t !== "." && t !== ")")
|
|
13336
13336
|
throw new Error(
|
|
@@ -13346,9 +13346,9 @@ function Da(e) {
|
|
|
13346
13346
|
);
|
|
13347
13347
|
return t;
|
|
13348
13348
|
}
|
|
13349
|
-
function
|
|
13349
|
+
function Sm(e, t, n, r) {
|
|
13350
13350
|
const u = n.enter("list"), a = n.bulletCurrent;
|
|
13351
|
-
let i = e.ordered ?
|
|
13351
|
+
let i = e.ordered ? Nm(n) : Dr(n);
|
|
13352
13352
|
const o = e.ordered ? i === "." ? ")" : "." : xm(n);
|
|
13353
13353
|
let l = t && n.bulletLastUsed ? i === n.bulletLastUsed : !1;
|
|
13354
13354
|
if (!e.ordered) {
|
|
@@ -13492,13 +13492,13 @@ const wa = {
|
|
|
13492
13492
|
emphasis: xa,
|
|
13493
13493
|
hardBreak: vu,
|
|
13494
13494
|
heading: Tm,
|
|
13495
|
-
html:
|
|
13496
|
-
image:
|
|
13495
|
+
html: Na,
|
|
13496
|
+
image: Sa,
|
|
13497
13497
|
imageReference: ka,
|
|
13498
13498
|
inlineCode: Oa,
|
|
13499
13499
|
link: La,
|
|
13500
13500
|
linkReference: Ra,
|
|
13501
|
-
list:
|
|
13501
|
+
list: Sm,
|
|
13502
13502
|
listItem: Om,
|
|
13503
13503
|
paragraph: ym,
|
|
13504
13504
|
root: Rm,
|
|
@@ -13586,16 +13586,16 @@ function qm(e) {
|
|
|
13586
13586
|
tableRow: o
|
|
13587
13587
|
}
|
|
13588
13588
|
};
|
|
13589
|
-
function i(m, A,
|
|
13590
|
-
return c(h(m,
|
|
13589
|
+
function i(m, A, N, L) {
|
|
13590
|
+
return c(h(m, N, L), m.align);
|
|
13591
13591
|
}
|
|
13592
|
-
function o(m, A,
|
|
13593
|
-
const x = f(m,
|
|
13592
|
+
function o(m, A, N, L) {
|
|
13593
|
+
const x = f(m, N, L), w = c([x]);
|
|
13594
13594
|
return w.slice(0, w.indexOf(`
|
|
13595
13595
|
`));
|
|
13596
13596
|
}
|
|
13597
|
-
function l(m, A,
|
|
13598
|
-
const x =
|
|
13597
|
+
function l(m, A, N, L) {
|
|
13598
|
+
const x = N.enter("tableCell"), w = N.enter("phrasing"), R = N.containerPhrasing(m, {
|
|
13599
13599
|
...L,
|
|
13600
13600
|
before: a,
|
|
13601
13601
|
after: a
|
|
@@ -13613,25 +13613,25 @@ function qm(e) {
|
|
|
13613
13613
|
stringLength: u
|
|
13614
13614
|
});
|
|
13615
13615
|
}
|
|
13616
|
-
function h(m, A,
|
|
13616
|
+
function h(m, A, N) {
|
|
13617
13617
|
const L = m.children;
|
|
13618
13618
|
let x = -1;
|
|
13619
13619
|
const w = [], R = A.enter("table");
|
|
13620
13620
|
for (; ++x < L.length; )
|
|
13621
|
-
w[x] = f(L[x], A,
|
|
13621
|
+
w[x] = f(L[x], A, N);
|
|
13622
13622
|
return R(), w;
|
|
13623
13623
|
}
|
|
13624
|
-
function f(m, A,
|
|
13624
|
+
function f(m, A, N) {
|
|
13625
13625
|
const L = m.children;
|
|
13626
13626
|
let x = -1;
|
|
13627
13627
|
const w = [], R = A.enter("tableRow");
|
|
13628
13628
|
for (; ++x < L.length; )
|
|
13629
|
-
w[x] = l(L[x], m, A,
|
|
13629
|
+
w[x] = l(L[x], m, A, N);
|
|
13630
13630
|
return R(), w;
|
|
13631
13631
|
}
|
|
13632
|
-
function p(m, A,
|
|
13633
|
-
let L = wa.inlineCode(m, A,
|
|
13634
|
-
return
|
|
13632
|
+
function p(m, A, N) {
|
|
13633
|
+
let L = wa.inlineCode(m, A, N);
|
|
13634
|
+
return N.stack.includes("tableCell") && (L = L.replace(/\|/g, "\\$&")), L;
|
|
13635
13635
|
}
|
|
13636
13636
|
}
|
|
13637
13637
|
function jm() {
|
|
@@ -13688,7 +13688,7 @@ function Qm(e, t, n, r) {
|
|
|
13688
13688
|
}
|
|
13689
13689
|
function Gm() {
|
|
13690
13690
|
return [
|
|
13691
|
-
|
|
13691
|
+
Sd(),
|
|
13692
13692
|
Qd(),
|
|
13693
13693
|
$d(),
|
|
13694
13694
|
Fm(),
|
|
@@ -14114,8 +14114,8 @@ function b1(e, t, n) {
|
|
|
14114
14114
|
return n(A);
|
|
14115
14115
|
if (A === 93) {
|
|
14116
14116
|
e.exit("chunkString");
|
|
14117
|
-
const
|
|
14118
|
-
return a = Wt(r.sliceSerialize(
|
|
14117
|
+
const N = e.exit("gfmFootnoteDefinitionLabelString");
|
|
14118
|
+
return a = Wt(r.sliceSerialize(N)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(A), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), p;
|
|
14119
14119
|
}
|
|
14120
14120
|
return J(A) || (o = !0), i++, e.consume(A), A === 92 ? f : h;
|
|
14121
14121
|
}
|
|
@@ -14195,12 +14195,12 @@ function C1(e) {
|
|
|
14195
14195
|
return c === 126 && h[h.length - 1][1].type !== "characterEscape" ? l(A) : (i.enter("strikethroughSequenceTemporary"), m(A));
|
|
14196
14196
|
}
|
|
14197
14197
|
function m(A) {
|
|
14198
|
-
const
|
|
14198
|
+
const N = mt(c);
|
|
14199
14199
|
if (A === 126)
|
|
14200
14200
|
return f > 1 ? l(A) : (i.consume(A), f++, m);
|
|
14201
14201
|
if (f < 2 && !n) return l(A);
|
|
14202
14202
|
const L = i.exit("strikethroughSequenceTemporary"), x = mt(A);
|
|
14203
|
-
return L._open = !x || x === 2 && !!
|
|
14203
|
+
return L._open = !x || x === 2 && !!N, L._close = !N || N === 2 && !!x, o(A);
|
|
14204
14204
|
}
|
|
14205
14205
|
}
|
|
14206
14206
|
}
|
|
@@ -14272,7 +14272,7 @@ function x1(e, t, n, r) {
|
|
|
14272
14272
|
e.map.push([t, n, r]);
|
|
14273
14273
|
}
|
|
14274
14274
|
}
|
|
14275
|
-
function
|
|
14275
|
+
function N1(e, t) {
|
|
14276
14276
|
let n = !1;
|
|
14277
14277
|
const r = [];
|
|
14278
14278
|
for (; t < e.length; ) {
|
|
@@ -14292,7 +14292,7 @@ function S1(e, t) {
|
|
|
14292
14292
|
}
|
|
14293
14293
|
return r;
|
|
14294
14294
|
}
|
|
14295
|
-
function
|
|
14295
|
+
function S1() {
|
|
14296
14296
|
return {
|
|
14297
14297
|
flow: {
|
|
14298
14298
|
null: {
|
|
@@ -14337,9 +14337,9 @@ function k1(e, t, n) {
|
|
|
14337
14337
|
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(I) : (e.enter("tableDelimiterRow"), i = !1, j(I) ? W(e, A, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(I) : A(I));
|
|
14338
14338
|
}
|
|
14339
14339
|
function A(I) {
|
|
14340
|
-
return I === 45 || I === 58 ? L(I) : I === 124 ? (i = !0, e.enter("tableCellDivider"), e.consume(I), e.exit("tableCellDivider"),
|
|
14340
|
+
return I === 45 || I === 58 ? L(I) : I === 124 ? (i = !0, e.enter("tableCellDivider"), e.consume(I), e.exit("tableCellDivider"), N) : Y(I);
|
|
14341
14341
|
}
|
|
14342
|
-
function
|
|
14342
|
+
function N(I) {
|
|
14343
14343
|
return j(I) ? W(e, L, "whitespace")(I) : L(I);
|
|
14344
14344
|
}
|
|
14345
14345
|
function L(I) {
|
|
@@ -14392,7 +14392,7 @@ function O1(e, t) {
|
|
|
14392
14392
|
}
|
|
14393
14393
|
for (l !== 0 && ju(p, t, l, c, h), p.consume(t.events), n = -1; ++n < t.events.length; ) {
|
|
14394
14394
|
const m = t.events[n];
|
|
14395
|
-
m[0] === "enter" && m[1].type === "table" && (m[1]._align =
|
|
14395
|
+
m[0] === "enter" && m[1].type === "table" && (m[1]._align = N1(t.events, n));
|
|
14396
14396
|
}
|
|
14397
14397
|
return e;
|
|
14398
14398
|
}
|
|
@@ -14414,8 +14414,8 @@ function Jt(e, t, n, r, u, a) {
|
|
|
14414
14414
|
if (e.add(n[2], 0, [["enter", f, t]]), r !== 2) {
|
|
14415
14415
|
const p = t.events[n[2]], m = t.events[n[3]];
|
|
14416
14416
|
if (p[1].end = Object.assign({}, m[1].end), p[1].type = "chunkText", p[1].contentType = "text", n[3] > n[2] + 1) {
|
|
14417
|
-
const A = n[2] + 1,
|
|
14418
|
-
e.add(A,
|
|
14417
|
+
const A = n[2] + 1, N = n[3] - n[2] - 1;
|
|
14418
|
+
e.add(A, N, []);
|
|
14419
14419
|
}
|
|
14420
14420
|
}
|
|
14421
14421
|
e.add(n[3] + 1, 0, [["exit", f, t]]);
|
|
@@ -14475,7 +14475,7 @@ function P1(e) {
|
|
|
14475
14475
|
t1(),
|
|
14476
14476
|
m1(),
|
|
14477
14477
|
C1(e),
|
|
14478
|
-
|
|
14478
|
+
S1(),
|
|
14479
14479
|
L1()
|
|
14480
14480
|
]);
|
|
14481
14481
|
}
|
|
@@ -14523,7 +14523,8 @@ const B1 = ({
|
|
|
14523
14523
|
{
|
|
14524
14524
|
className: ce(
|
|
14525
14525
|
"absolute top-1.5 end-3 !text-[11px] font-mono text-muted-foreground transition group-hover:opacity-0",
|
|
14526
|
-
t && "top-12"
|
|
14526
|
+
t && "top-12",
|
|
14527
|
+
r === "always" && "hidden"
|
|
14527
14528
|
),
|
|
14528
14529
|
children: n
|
|
14529
14530
|
}
|
|
@@ -14810,35 +14811,35 @@ function Va(e, t, n, r) {
|
|
|
14810
14811
|
var sp = "[object Arguments]", op = "[object Boolean]", lp = "[object Date]", cp = "[object Error]", fp = "[object Map]", hp = "[object Number]", dp = "[object Object]", mp = "[object RegExp]", pp = "[object Set]", Ep = "[object String]", Tp = "[object URL]", bp = Array.isArray, Ju = typeof ArrayBuffer == "function" && ArrayBuffer.isView ? ArrayBuffer.isView : null, Zu = Object.assign, gp = Object.prototype.toString.call.bind(Object.prototype.toString);
|
|
14811
14812
|
function Ap(e) {
|
|
14812
14813
|
var t = e.areArraysEqual, n = e.areDatesEqual, r = e.areErrorsEqual, u = e.areFunctionsEqual, a = e.areMapsEqual, i = e.areNumbersEqual, o = e.areObjectsEqual, l = e.arePrimitiveWrappersEqual, c = e.areRegExpsEqual, h = e.areSetsEqual, f = e.areTypedArraysEqual, p = e.areUrlsEqual;
|
|
14813
|
-
return function(A,
|
|
14814
|
-
if (A ===
|
|
14814
|
+
return function(A, N, L) {
|
|
14815
|
+
if (A === N)
|
|
14815
14816
|
return !0;
|
|
14816
|
-
if (A == null ||
|
|
14817
|
+
if (A == null || N == null)
|
|
14817
14818
|
return !1;
|
|
14818
14819
|
var x = typeof A;
|
|
14819
|
-
if (x !== typeof
|
|
14820
|
+
if (x !== typeof N)
|
|
14820
14821
|
return !1;
|
|
14821
14822
|
if (x !== "object")
|
|
14822
|
-
return x === "number" ? i(A,
|
|
14823
|
+
return x === "number" ? i(A, N, L) : x === "function" ? u(A, N, L) : !1;
|
|
14823
14824
|
var w = A.constructor;
|
|
14824
|
-
if (w !==
|
|
14825
|
+
if (w !== N.constructor)
|
|
14825
14826
|
return !1;
|
|
14826
14827
|
if (w === Object)
|
|
14827
|
-
return o(A,
|
|
14828
|
+
return o(A, N, L);
|
|
14828
14829
|
if (bp(A))
|
|
14829
|
-
return t(A,
|
|
14830
|
+
return t(A, N, L);
|
|
14830
14831
|
if (Ju != null && Ju(A))
|
|
14831
|
-
return f(A,
|
|
14832
|
+
return f(A, N, L);
|
|
14832
14833
|
if (w === Date)
|
|
14833
|
-
return n(A,
|
|
14834
|
+
return n(A, N, L);
|
|
14834
14835
|
if (w === RegExp)
|
|
14835
|
-
return c(A,
|
|
14836
|
+
return c(A, N, L);
|
|
14836
14837
|
if (w === Map)
|
|
14837
|
-
return a(A,
|
|
14838
|
+
return a(A, N, L);
|
|
14838
14839
|
if (w === Set)
|
|
14839
|
-
return h(A,
|
|
14840
|
+
return h(A, N, L);
|
|
14840
14841
|
var R = gp(A);
|
|
14841
|
-
return R === lp ? n(A,
|
|
14842
|
+
return R === lp ? n(A, N, L) : R === mp ? c(A, N, L) : R === fp ? a(A, N, L) : R === pp ? h(A, N, L) : R === dp ? typeof A.then != "function" && typeof N.then != "function" && o(A, N, L) : R === Tp ? p(A, N, L) : R === cp ? r(A, N, L) : R === sp ? o(A, N, L) : R === op || R === hp || R === Ep ? l(A, N, L) : !1;
|
|
14842
14843
|
};
|
|
14843
14844
|
}
|
|
14844
14845
|
function _p(e) {
|
|
@@ -14939,19 +14940,19 @@ function Ve(e) {
|
|
|
14939
14940
|
var t = e.circular, n = t === void 0 ? !1 : t, r = e.createInternalComparator, u = e.createState, a = e.strict, i = a === void 0 ? !1 : a, o = _p(e), l = Ap(o), c = r ? r(l) : Cp(l);
|
|
14940
14941
|
return Ip({ circular: n, comparator: l, createState: u, equals: c, strict: i });
|
|
14941
14942
|
}
|
|
14942
|
-
const
|
|
14943
|
+
const Np = ({
|
|
14943
14944
|
category: e,
|
|
14944
14945
|
onRequestClose: t
|
|
14945
14946
|
}) => {
|
|
14946
|
-
const n =
|
|
14947
|
+
const n = Ns(e), [r, u] = et(!1), a = bn(), i = e.collapsible ?? !0, o = e.collapsed ?? !0, l = !!(!i || !o || n), [c, h] = et(l), f = Is(e.link?.id ?? "");
|
|
14947
14948
|
Ye(() => {
|
|
14948
14949
|
n && h(!0);
|
|
14949
14950
|
}, [n]);
|
|
14950
14951
|
const p = i && /* @__PURE__ */ P.jsx(
|
|
14951
14952
|
ks,
|
|
14952
14953
|
{
|
|
14953
|
-
onClick: (
|
|
14954
|
-
|
|
14954
|
+
onClick: (N) => {
|
|
14955
|
+
N.preventDefault(), h((L) => !L), u(!0);
|
|
14955
14956
|
},
|
|
14956
14957
|
variant: "ghost",
|
|
14957
14958
|
size: "icon",
|
|
@@ -15022,20 +15023,20 @@ const Sp = ({
|
|
|
15022
15023
|
e.items.length === 0 && "hidden",
|
|
15023
15024
|
"ms-6 my-1"
|
|
15024
15025
|
),
|
|
15025
|
-
children: /* @__PURE__ */ P.jsx("ul", { className: "relative after:absolute after:-start-(--padding-nav-item) after:translate-x-[1.5px] after:top-0 after:bottom-0 after:w-px after:bg-border", children: e.items.map((
|
|
15026
|
-
|
|
15026
|
+
children: /* @__PURE__ */ P.jsx("ul", { className: "relative after:absolute after:-start-(--padding-nav-item) after:translate-x-[1.5px] after:top-0 after:bottom-0 after:w-px after:bg-border", children: e.items.map((N) => /* @__PURE__ */ P.jsx(
|
|
15027
|
+
Sp,
|
|
15027
15028
|
{
|
|
15028
15029
|
onRequestClose: t,
|
|
15029
|
-
item:
|
|
15030
|
+
item: N
|
|
15030
15031
|
},
|
|
15031
|
-
("id" in
|
|
15032
|
+
("id" in N ? N.id : "") + ("href" in N ? N.href : "") + N.label
|
|
15032
15033
|
)) })
|
|
15033
15034
|
}
|
|
15034
15035
|
)
|
|
15035
15036
|
]
|
|
15036
15037
|
}
|
|
15037
15038
|
);
|
|
15038
|
-
}, Wa = ni(
|
|
15039
|
+
}, Wa = ni(Np, xp);
|
|
15039
15040
|
Wa.displayName = "SidebarCategory";
|
|
15040
15041
|
const ei = ({
|
|
15041
15042
|
label: e,
|
|
@@ -15070,7 +15071,7 @@ const ei = ({
|
|
|
15070
15071
|
)
|
|
15071
15072
|
] }) })
|
|
15072
15073
|
] });
|
|
15073
|
-
}, Qa = "data-anchor",
|
|
15074
|
+
}, Qa = "data-anchor", Sp = ({
|
|
15074
15075
|
item: e,
|
|
15075
15076
|
onRequestClose: t
|
|
15076
15077
|
}) => {
|
|
@@ -15105,11 +15106,12 @@ const ei = ({
|
|
|
15105
15106
|
rel: "noopener noreferrer",
|
|
15106
15107
|
onClick: t,
|
|
15107
15108
|
children: [
|
|
15109
|
+
e.icon && /* @__PURE__ */ P.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
|
|
15108
15110
|
/* @__PURE__ */ P.jsx("span", { className: "whitespace-normal", children: e.label }),
|
|
15109
15111
|
/* @__PURE__ */ P.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ P.jsx(_s, { className: "inline -translate-y-0.5", size: 12 }) })
|
|
15110
15112
|
]
|
|
15111
15113
|
}
|
|
15112
|
-
) : /* @__PURE__ */ P.
|
|
15114
|
+
) : /* @__PURE__ */ P.jsxs(
|
|
15113
15115
|
Xa,
|
|
15114
15116
|
{
|
|
15115
15117
|
to: {
|
|
@@ -15119,14 +15121,16 @@ const ei = ({
|
|
|
15119
15121
|
},
|
|
15120
15122
|
[Qa]: e.href.split("#")[1],
|
|
15121
15123
|
className: tn({
|
|
15122
|
-
isActive: e.href === [n.pathname, r].join("#")
|
|
15123
|
-
className: e.badge?.placement !== "start" && "justify-between"
|
|
15124
|
+
isActive: e.href === [n.pathname, r].join("#")
|
|
15124
15125
|
}),
|
|
15125
15126
|
onClick: t,
|
|
15126
|
-
children:
|
|
15127
|
-
/* @__PURE__ */ P.jsx(
|
|
15128
|
-
/* @__PURE__ */ P.
|
|
15129
|
-
|
|
15127
|
+
children: [
|
|
15128
|
+
e.icon && /* @__PURE__ */ P.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
|
|
15129
|
+
e.badge ? /* @__PURE__ */ P.jsxs(P.Fragment, { children: [
|
|
15130
|
+
/* @__PURE__ */ P.jsx(ei, { label: e.label }),
|
|
15131
|
+
/* @__PURE__ */ P.jsx(Vu, { ...e.badge })
|
|
15132
|
+
] }) : /* @__PURE__ */ P.jsx("span", { className: "break-all", children: e.label })
|
|
15133
|
+
]
|
|
15130
15134
|
}
|
|
15131
15135
|
);
|
|
15132
15136
|
}
|
|
@@ -15309,7 +15313,7 @@ const ei = ({
|
|
|
15309
15313
|
className: t,
|
|
15310
15314
|
components: n
|
|
15311
15315
|
}) => {
|
|
15312
|
-
const { syntaxHighlighting: r } =
|
|
15316
|
+
const { syntaxHighlighting: r } = Ss().options, u = sn(
|
|
15313
15317
|
() => [
|
|
15314
15318
|
_d,
|
|
15315
15319
|
...Ts(r?.themes)
|
|
@@ -15339,10 +15343,10 @@ export {
|
|
|
15339
15343
|
Jp as P,
|
|
15340
15344
|
Lp as S,
|
|
15341
15345
|
Kp as V,
|
|
15342
|
-
|
|
15346
|
+
Sp as a,
|
|
15343
15347
|
$p as b,
|
|
15344
15348
|
Dp as c,
|
|
15345
15349
|
kp as s,
|
|
15346
15350
|
wr as u
|
|
15347
15351
|
};
|
|
15348
|
-
//# sourceMappingURL=Markdown-
|
|
15352
|
+
//# sourceMappingURL=Markdown-D81l28Ib.js.map
|