@canofold/markdown 0.3.0 → 0.3.2
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 +2 -0
- package/README.zh-CN.md +2 -0
- package/dist/ImageGallery-Bcpjlfh9.js +569 -0
- package/dist/Markdown-607_slPB.js +117 -0
- package/dist/assets-CqlggKr8.js +77 -0
- package/dist/base.css +1 -1
- package/dist/client/bundler.js +308 -0
- package/dist/client/chunks/{client-kVNIqHQd.js → client-CHUUETWE.js} +3 -3
- package/dist/client/chunks/{gallery-BTg1qJjd.js → gallery-Cr0TgC1h.js} +2 -2
- package/dist/client/chunks/{image-BuMCsr5L.js → image-6_o7fPkU.js} +3 -3
- package/dist/client/chunks/provider-k1N-5njv.js +1037 -0
- package/dist/client/chunks/react-runtime-DRPMrVPX.js +12062 -0
- package/dist/client/chunks/{serialized-T1PzI4rG.js → serialized-Chn9ydGA.js} +270 -220
- package/dist/client/chunks/{table-JOSJsHgy.js → table-D99-Zhc8.js} +3 -3
- package/dist/client/index.js +1 -1
- package/dist/compiler/fenceMetadata.d.ts +7 -0
- package/dist/compiler/normalizeOptions.d.ts +2 -1
- package/dist/compiler/plugins/code.d.ts +1 -1
- package/dist/compiler/prepareMarkdown.d.ts +1 -1
- package/dist/compiler/types.d.ts +3 -0
- package/dist/componentMap-CKSUGzQH.js +1483 -0
- package/dist/components/blocks/MarkdownCodeBlock.d.ts +3 -1
- package/dist/copyText-C0ZgrMnH.js +18 -0
- package/dist/{directiveValidation-BdVbgcY_.js → directiveValidation-B7LY-R5p.js} +187 -248
- package/dist/fileKinds-BPzIxbaS.js +170 -0
- package/dist/gallery-BqQ-i0TC.js +42 -0
- package/dist/image-CiPni6Az.js +38 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/plugins-CXYBB-oH.js +130 -0
- package/dist/{prepareMarkdown-D-bFl1_V.js → prepareMarkdown-CS6sALIb.js} +344 -329
- package/dist/provider-BJDHf4Z_.js +8 -0
- package/dist/serialized-DFiNQYA5.js +39 -0
- package/dist/server/analyze.js +11 -11
- package/dist/server.js +30 -28
- package/dist/table-DQSeLjVL.js +32 -0
- package/package.json +14 -9
- package/dist/Markdown-C7O01MRv.js +0 -2116
- package/dist/client/chunks/provider-DNSHvvN7.js +0 -841
- package/dist/client/chunks/react-runtime-Dzgdzn6D.js +0 -10571
- package/dist/plugins-StkCS2su.js +0 -298
|
@@ -1,94 +1,133 @@
|
|
|
1
|
-
import { r as c, j as s, g as
|
|
2
|
-
import { c as re, u as
|
|
3
|
-
import { c as jn } from "./client-
|
|
1
|
+
import { r as c, j as s, g as Qn } from "./react-runtime-DRPMrVPX.js";
|
|
2
|
+
import { c as re, u as et, t as nt, g as Cn, a as tt, e as V, s as h, D as T, b as wn, m as G, d as Q, M as En, f as W, r as X, h as ne, i as we, j as at, I as Le, k as lt, l as Me } from "./provider-k1N-5njv.js";
|
|
3
|
+
import { c as jn } from "./client-CHUUETWE.js";
|
|
4
4
|
/**
|
|
5
|
-
* @license lucide-react v1.
|
|
5
|
+
* @license lucide-react v1.46.0 - ISC
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the ISC license.
|
|
8
8
|
* See the LICENSE file in the root directory of this source tree.
|
|
9
9
|
*/
|
|
10
|
-
const
|
|
10
|
+
const Sn = {
|
|
11
|
+
name: "check",
|
|
12
|
+
size: 24,
|
|
13
|
+
node: [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]
|
|
14
|
+
};
|
|
15
|
+
Sn.node;
|
|
16
|
+
const ot = re(Sn);
|
|
11
17
|
/**
|
|
12
|
-
* @license lucide-react v1.
|
|
18
|
+
* @license lucide-react v1.46.0 - ISC
|
|
13
19
|
*
|
|
14
20
|
* This source code is licensed under the ISC license.
|
|
15
21
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
22
|
*/
|
|
17
|
-
const
|
|
23
|
+
const Ln = {
|
|
24
|
+
name: "chevron-down",
|
|
25
|
+
size: 24,
|
|
26
|
+
node: [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]]
|
|
27
|
+
};
|
|
28
|
+
Ln.node;
|
|
29
|
+
const rt = re(Ln);
|
|
18
30
|
/**
|
|
19
|
-
* @license lucide-react v1.
|
|
31
|
+
* @license lucide-react v1.46.0 - ISC
|
|
20
32
|
*
|
|
21
33
|
* This source code is licensed under the ISC license.
|
|
22
34
|
* See the LICENSE file in the root directory of this source tree.
|
|
23
35
|
*/
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
36
|
+
const Mn = {
|
|
37
|
+
name: "circle-alert",
|
|
38
|
+
size: 24,
|
|
39
|
+
node: [
|
|
40
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
41
|
+
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
42
|
+
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
43
|
+
],
|
|
44
|
+
aliases: ["alert-circle"]
|
|
45
|
+
};
|
|
46
|
+
Mn.node;
|
|
47
|
+
const it = re(Mn);
|
|
29
48
|
/**
|
|
30
|
-
* @license lucide-react v1.
|
|
49
|
+
* @license lucide-react v1.46.0 - ISC
|
|
31
50
|
*
|
|
32
51
|
* This source code is licensed under the ISC license.
|
|
33
52
|
* See the LICENSE file in the root directory of this source tree.
|
|
34
53
|
*/
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
54
|
+
const Nn = {
|
|
55
|
+
name: "circle-check",
|
|
56
|
+
size: 24,
|
|
57
|
+
node: [
|
|
58
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
59
|
+
["path", { d: "m16 9-5.5 5.5L8 12", key: "xofnsj" }]
|
|
60
|
+
],
|
|
61
|
+
aliases: ["check-circle-2"]
|
|
62
|
+
};
|
|
63
|
+
Nn.node;
|
|
64
|
+
const st = re(Nn);
|
|
39
65
|
/**
|
|
40
|
-
* @license lucide-react v1.
|
|
66
|
+
* @license lucide-react v1.46.0 - ISC
|
|
41
67
|
*
|
|
42
68
|
* This source code is licensed under the ISC license.
|
|
43
69
|
* See the LICENSE file in the root directory of this source tree.
|
|
44
70
|
*/
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
71
|
+
const Dn = {
|
|
72
|
+
name: "info",
|
|
73
|
+
size: 24,
|
|
74
|
+
node: [
|
|
75
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
76
|
+
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
77
|
+
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
78
|
+
]
|
|
79
|
+
};
|
|
80
|
+
Dn.node;
|
|
81
|
+
const ct = re(Dn);
|
|
50
82
|
/**
|
|
51
|
-
* @license lucide-react v1.
|
|
83
|
+
* @license lucide-react v1.46.0 - ISC
|
|
52
84
|
*
|
|
53
85
|
* This source code is licensed under the ISC license.
|
|
54
86
|
* See the LICENSE file in the root directory of this source tree.
|
|
55
87
|
*/
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
88
|
+
const Tn = {
|
|
89
|
+
name: "triangle-alert",
|
|
90
|
+
size: 24,
|
|
91
|
+
node: [
|
|
92
|
+
[
|
|
93
|
+
"path",
|
|
94
|
+
{
|
|
95
|
+
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|
|
96
|
+
key: "wmoenq"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
100
|
+
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
63
101
|
],
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
102
|
+
aliases: ["alert-triangle"]
|
|
103
|
+
};
|
|
104
|
+
Tn.node;
|
|
105
|
+
const ut = re(Tn);
|
|
106
|
+
function Ne(e) {
|
|
107
|
+
return e.type === "root" ? ["r", e.children.map(Ne)] : e.type === "element" ? ["e", e.tagName, e.properties, e.children.map(Ne)] : e.type === "comment" ? ["c", e.value] : ["t", "value" in e ? String(e.value) : ""];
|
|
69
108
|
}
|
|
70
|
-
function
|
|
71
|
-
return e[0] === "r" ? { type: "root", children: e[1].map(
|
|
109
|
+
function De(e) {
|
|
110
|
+
return e[0] === "r" ? { type: "root", children: e[1].map(De) } : e[0] === "e" ? {
|
|
72
111
|
type: "element",
|
|
73
112
|
tagName: e[1],
|
|
74
113
|
properties: e[2],
|
|
75
|
-
children: e[3].map(
|
|
114
|
+
children: e[3].map(De)
|
|
76
115
|
} : e[0] === "c" ? { type: "comment", value: e[1] } : { type: "text", value: e[1] };
|
|
77
116
|
}
|
|
78
|
-
function
|
|
79
|
-
return Array.isArray(e) ? e[0] === "r" ? e.length === 2 && Array.isArray(e[1]) && e[1].every(
|
|
117
|
+
function Te(e) {
|
|
118
|
+
return Array.isArray(e) ? e[0] === "r" ? e.length === 2 && Array.isArray(e[1]) && e[1].every(Te) : e[0] === "e" ? e.length === 4 && typeof e[1] == "string" && !!e[2] && typeof e[2] == "object" && !Array.isArray(e[2]) && Array.isArray(e[3]) && e[3].every(Te) : (e[0] === "t" || e[0] === "c") && e.length === 2 && typeof e[1] == "string" : !1;
|
|
80
119
|
}
|
|
81
120
|
function dt(e) {
|
|
82
121
|
try {
|
|
83
|
-
return !e || typeof e != "object" || typeof e.type != "string" ? void 0 : JSON.stringify(
|
|
122
|
+
return !e || typeof e != "object" || typeof e.type != "string" ? void 0 : JSON.stringify(Ne(e));
|
|
84
123
|
} catch {
|
|
85
124
|
return;
|
|
86
125
|
}
|
|
87
126
|
}
|
|
88
|
-
function
|
|
127
|
+
function Rn(e) {
|
|
89
128
|
try {
|
|
90
129
|
const n = JSON.parse(e ?? "null");
|
|
91
|
-
return
|
|
130
|
+
return Te(n) ? De(n) : void 0;
|
|
92
131
|
} catch {
|
|
93
132
|
return;
|
|
94
133
|
}
|
|
@@ -110,18 +149,18 @@ function Re({
|
|
|
110
149
|
inner: b = !1,
|
|
111
150
|
...M
|
|
112
151
|
}) {
|
|
113
|
-
const j = M, C =
|
|
152
|
+
const j = M, C = et(), g = t && C ? C(t, "src") : t, S = f && C ? nt(f, C) : f, y = Cn(tt()), A = c.Children.toArray(e).find(
|
|
114
153
|
(Z) => c.isValidElement(Z) && V(Z) === "img"
|
|
115
154
|
), P = c.Children.toArray(e).find((Z) => {
|
|
116
155
|
if (!c.isValidElement(Z)) return !1;
|
|
117
156
|
const le = Z;
|
|
118
157
|
return V(le) === "figcaption" || le.props["data-cf-slot"] === "caption";
|
|
119
|
-
}), R = m || h(j, "data-cf-zoom-label", "dataCfZoomLabel") ||
|
|
158
|
+
}), R = m || h(j, "data-cf-zoom-label", "dataCfZoomLabel") || T.zoomImage, I = k || h(j, "data-cf-close-label", "dataCfCloseLabel") || T.closeImagePreview, [L, B] = c.useState(!1), z = c.useRef(null), N = c.useRef(null), O = c.useRef(null), q = () => B(!1), E = wn({
|
|
120
159
|
open: L,
|
|
121
160
|
close: q,
|
|
122
|
-
dialogRef:
|
|
161
|
+
dialogRef: O,
|
|
123
162
|
initialFocusRef: N,
|
|
124
|
-
triggerRef:
|
|
163
|
+
triggerRef: z
|
|
125
164
|
}), x = A ?? (g ? /* @__PURE__ */ s.jsx(
|
|
126
165
|
"img",
|
|
127
166
|
{
|
|
@@ -142,7 +181,7 @@ function Re({
|
|
|
142
181
|
/* @__PURE__ */ s.jsx(
|
|
143
182
|
"button",
|
|
144
183
|
{
|
|
145
|
-
ref:
|
|
184
|
+
ref: z,
|
|
146
185
|
className: "cf-media-zoom",
|
|
147
186
|
type: "button",
|
|
148
187
|
"data-cf-action": "zoom-image",
|
|
@@ -158,7 +197,7 @@ function Re({
|
|
|
158
197
|
L ? /* @__PURE__ */ s.jsx(En, { children: /* @__PURE__ */ s.jsxs(
|
|
159
198
|
"div",
|
|
160
199
|
{
|
|
161
|
-
ref:
|
|
200
|
+
ref: O,
|
|
162
201
|
className: "cf-image-lightbox",
|
|
163
202
|
"data-cf-slot": "lightbox",
|
|
164
203
|
role: "dialog",
|
|
@@ -247,7 +286,7 @@ class me {
|
|
|
247
286
|
me.prototype.normal = {};
|
|
248
287
|
me.prototype.property = {};
|
|
249
288
|
me.prototype.space = void 0;
|
|
250
|
-
function
|
|
289
|
+
function An(e, n) {
|
|
251
290
|
const t = {}, a = {};
|
|
252
291
|
for (const o of e)
|
|
253
292
|
Object.assign(t, o.property), Object.assign(a, o.normal);
|
|
@@ -282,7 +321,7 @@ H.prototype.property = "";
|
|
|
282
321
|
H.prototype.spaceSeparated = !1;
|
|
283
322
|
H.prototype.space = void 0;
|
|
284
323
|
let bt = 0;
|
|
285
|
-
const v = te(), F = te(), Pe = te(), d = te(),
|
|
324
|
+
const v = te(), F = te(), Pe = te(), d = te(), D = te(), ee = te(), K = te();
|
|
286
325
|
function te() {
|
|
287
326
|
return 2 ** ++bt;
|
|
288
327
|
}
|
|
@@ -294,7 +333,7 @@ const Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
294
333
|
commaSeparated: ee,
|
|
295
334
|
number: d,
|
|
296
335
|
overloadedBoolean: Pe,
|
|
297
|
-
spaceSeparated:
|
|
336
|
+
spaceSeparated: D
|
|
298
337
|
}, Symbol.toStringTag, { value: "Module" })), Ee = (
|
|
299
338
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
300
339
|
Object.keys(Ie)
|
|
@@ -339,7 +378,7 @@ function ie(e) {
|
|
|
339
378
|
}
|
|
340
379
|
return new me(n, t, e.space);
|
|
341
380
|
}
|
|
342
|
-
const
|
|
381
|
+
const Pn = ie({
|
|
343
382
|
properties: {
|
|
344
383
|
ariaActiveDescendant: null,
|
|
345
384
|
ariaAtomic: F,
|
|
@@ -349,36 +388,36 @@ const Nn = ie({
|
|
|
349
388
|
ariaColCount: d,
|
|
350
389
|
ariaColIndex: d,
|
|
351
390
|
ariaColSpan: d,
|
|
352
|
-
ariaControls:
|
|
391
|
+
ariaControls: D,
|
|
353
392
|
ariaCurrent: null,
|
|
354
|
-
ariaDescribedBy:
|
|
393
|
+
ariaDescribedBy: D,
|
|
355
394
|
ariaDetails: null,
|
|
356
395
|
ariaDisabled: F,
|
|
357
|
-
ariaDropEffect:
|
|
396
|
+
ariaDropEffect: D,
|
|
358
397
|
ariaErrorMessage: null,
|
|
359
398
|
ariaExpanded: F,
|
|
360
|
-
ariaFlowTo:
|
|
399
|
+
ariaFlowTo: D,
|
|
361
400
|
ariaGrabbed: F,
|
|
362
401
|
ariaHasPopup: null,
|
|
363
402
|
ariaHidden: F,
|
|
364
403
|
ariaInvalid: null,
|
|
365
404
|
ariaKeyShortcuts: null,
|
|
366
405
|
ariaLabel: null,
|
|
367
|
-
ariaLabelledBy:
|
|
406
|
+
ariaLabelledBy: D,
|
|
368
407
|
ariaLevel: d,
|
|
369
408
|
ariaLive: null,
|
|
370
409
|
ariaModal: F,
|
|
371
410
|
ariaMultiLine: F,
|
|
372
411
|
ariaMultiSelectable: F,
|
|
373
412
|
ariaOrientation: null,
|
|
374
|
-
ariaOwns:
|
|
413
|
+
ariaOwns: D,
|
|
375
414
|
ariaPlaceholder: null,
|
|
376
415
|
ariaPosInSet: d,
|
|
377
416
|
ariaPressed: F,
|
|
378
417
|
ariaReadOnly: F,
|
|
379
418
|
ariaRelevant: null,
|
|
380
419
|
ariaRequired: F,
|
|
381
|
-
ariaRoleDescription:
|
|
420
|
+
ariaRoleDescription: D,
|
|
382
421
|
ariaRowCount: d,
|
|
383
422
|
ariaRowIndex: d,
|
|
384
423
|
ariaRowSpan: d,
|
|
@@ -395,11 +434,11 @@ const Nn = ie({
|
|
|
395
434
|
return n === "role" ? n : "aria-" + n.slice(4).toLowerCase();
|
|
396
435
|
}
|
|
397
436
|
});
|
|
398
|
-
function
|
|
437
|
+
function In(e, n) {
|
|
399
438
|
return n in e ? e[n] : n;
|
|
400
439
|
}
|
|
401
|
-
function
|
|
402
|
-
return
|
|
440
|
+
function Fn(e, n) {
|
|
441
|
+
return In(e, n.toLowerCase());
|
|
403
442
|
}
|
|
404
443
|
const vt = ie({
|
|
405
444
|
attributes: {
|
|
@@ -413,8 +452,8 @@ const vt = ie({
|
|
|
413
452
|
// Standard Properties.
|
|
414
453
|
abbr: null,
|
|
415
454
|
accept: ee,
|
|
416
|
-
acceptCharset:
|
|
417
|
-
accessKey:
|
|
455
|
+
acceptCharset: D,
|
|
456
|
+
accessKey: D,
|
|
418
457
|
action: null,
|
|
419
458
|
allow: null,
|
|
420
459
|
allowFullScreen: v,
|
|
@@ -425,15 +464,15 @@ const vt = ie({
|
|
|
425
464
|
as: null,
|
|
426
465
|
async: v,
|
|
427
466
|
autoCapitalize: null,
|
|
428
|
-
autoComplete:
|
|
467
|
+
autoComplete: D,
|
|
429
468
|
autoFocus: v,
|
|
430
469
|
autoPlay: v,
|
|
431
|
-
blocking:
|
|
470
|
+
blocking: D,
|
|
432
471
|
capture: null,
|
|
433
472
|
charSet: null,
|
|
434
473
|
checked: v,
|
|
435
474
|
cite: null,
|
|
436
|
-
className:
|
|
475
|
+
className: D,
|
|
437
476
|
closedBy: null,
|
|
438
477
|
colorSpace: null,
|
|
439
478
|
cols: d,
|
|
@@ -443,7 +482,7 @@ const vt = ie({
|
|
|
443
482
|
content: null,
|
|
444
483
|
contentEditable: F,
|
|
445
484
|
controls: v,
|
|
446
|
-
controlsList:
|
|
485
|
+
controlsList: D,
|
|
447
486
|
coords: d | ee,
|
|
448
487
|
crossOrigin: null,
|
|
449
488
|
data: null,
|
|
@@ -465,14 +504,14 @@ const vt = ie({
|
|
|
465
504
|
formMethod: null,
|
|
466
505
|
formNoValidate: v,
|
|
467
506
|
formTarget: null,
|
|
468
|
-
headers:
|
|
507
|
+
headers: D,
|
|
469
508
|
height: d,
|
|
470
509
|
hidden: Pe,
|
|
471
510
|
high: d,
|
|
472
511
|
href: null,
|
|
473
512
|
hrefLang: null,
|
|
474
|
-
htmlFor:
|
|
475
|
-
httpEquiv:
|
|
513
|
+
htmlFor: D,
|
|
514
|
+
httpEquiv: D,
|
|
476
515
|
id: null,
|
|
477
516
|
imageSizes: null,
|
|
478
517
|
imageSrcSet: null,
|
|
@@ -482,10 +521,10 @@ const vt = ie({
|
|
|
482
521
|
is: null,
|
|
483
522
|
isMap: v,
|
|
484
523
|
itemId: null,
|
|
485
|
-
itemProp:
|
|
486
|
-
itemRef:
|
|
524
|
+
itemProp: D,
|
|
525
|
+
itemRef: D,
|
|
487
526
|
itemScope: v,
|
|
488
|
-
itemType:
|
|
527
|
+
itemType: D,
|
|
489
528
|
kind: null,
|
|
490
529
|
label: null,
|
|
491
530
|
lang: null,
|
|
@@ -598,7 +637,7 @@ const vt = ie({
|
|
|
598
637
|
open: v,
|
|
599
638
|
optimum: d,
|
|
600
639
|
pattern: null,
|
|
601
|
-
ping:
|
|
640
|
+
ping: D,
|
|
602
641
|
placeholder: null,
|
|
603
642
|
playsInline: v,
|
|
604
643
|
popover: null,
|
|
@@ -608,12 +647,12 @@ const vt = ie({
|
|
|
608
647
|
preload: null,
|
|
609
648
|
readOnly: v,
|
|
610
649
|
referrerPolicy: null,
|
|
611
|
-
rel:
|
|
650
|
+
rel: D,
|
|
612
651
|
required: v,
|
|
613
652
|
reversed: v,
|
|
614
653
|
rows: d,
|
|
615
654
|
rowSpan: d,
|
|
616
|
-
sandbox:
|
|
655
|
+
sandbox: D,
|
|
617
656
|
scope: null,
|
|
618
657
|
scoped: v,
|
|
619
658
|
seamless: v,
|
|
@@ -653,7 +692,7 @@ const vt = ie({
|
|
|
653
692
|
// Several. Use CSS `text-align` instead,
|
|
654
693
|
aLink: null,
|
|
655
694
|
// `<body>`. Use CSS `a:active {color}` instead
|
|
656
|
-
archive:
|
|
695
|
+
archive: D,
|
|
657
696
|
// `<object>`. List of URIs to archives
|
|
658
697
|
axis: null,
|
|
659
698
|
// `<td>` and `<th>`. Use `scope` on `<th>`
|
|
@@ -763,7 +802,7 @@ const vt = ie({
|
|
|
763
802
|
disablePictureInPicture: v,
|
|
764
803
|
disableRemotePlayback: v,
|
|
765
804
|
exportParts: ee,
|
|
766
|
-
part:
|
|
805
|
+
part: D,
|
|
767
806
|
prefix: null,
|
|
768
807
|
property: null,
|
|
769
808
|
results: d,
|
|
@@ -771,7 +810,7 @@ const vt = ie({
|
|
|
771
810
|
unselectable: null
|
|
772
811
|
},
|
|
773
812
|
space: "html",
|
|
774
|
-
transform:
|
|
813
|
+
transform: Fn
|
|
775
814
|
}), xt = ie({
|
|
776
815
|
attributes: {
|
|
777
816
|
accentHeight: "accent-height",
|
|
@@ -972,7 +1011,7 @@ const vt = ie({
|
|
|
972
1011
|
by: null,
|
|
973
1012
|
calcMode: null,
|
|
974
1013
|
capHeight: d,
|
|
975
|
-
className:
|
|
1014
|
+
className: D,
|
|
976
1015
|
clip: null,
|
|
977
1016
|
clipPath: null,
|
|
978
1017
|
clipPathUnits: null,
|
|
@@ -1208,7 +1247,7 @@ const vt = ie({
|
|
|
1208
1247
|
patternTransform: null,
|
|
1209
1248
|
patternUnits: null,
|
|
1210
1249
|
phase: null,
|
|
1211
|
-
ping:
|
|
1250
|
+
ping: D,
|
|
1212
1251
|
pitch: null,
|
|
1213
1252
|
playbackOrder: null,
|
|
1214
1253
|
pointerEvents: null,
|
|
@@ -1332,8 +1371,8 @@ const vt = ie({
|
|
|
1332
1371
|
zoomAndPan: null
|
|
1333
1372
|
},
|
|
1334
1373
|
space: "svg",
|
|
1335
|
-
transform:
|
|
1336
|
-
}),
|
|
1374
|
+
transform: In
|
|
1375
|
+
}), _n = ie({
|
|
1337
1376
|
properties: {
|
|
1338
1377
|
xLinkActuate: null,
|
|
1339
1378
|
xLinkArcRole: null,
|
|
@@ -1347,12 +1386,12 @@ const vt = ie({
|
|
|
1347
1386
|
transform(e, n) {
|
|
1348
1387
|
return "xlink:" + n.slice(5).toLowerCase();
|
|
1349
1388
|
}
|
|
1350
|
-
}),
|
|
1389
|
+
}), zn = ie({
|
|
1351
1390
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
1352
1391
|
properties: { xmlnsXLink: null, xmlns: null },
|
|
1353
1392
|
space: "xmlns",
|
|
1354
|
-
transform:
|
|
1355
|
-
}),
|
|
1393
|
+
transform: Fn
|
|
1394
|
+
}), On = ie({
|
|
1356
1395
|
properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
|
|
1357
1396
|
space: "xml",
|
|
1358
1397
|
transform(e, n) {
|
|
@@ -1403,12 +1442,12 @@ function jt(e) {
|
|
|
1403
1442
|
function St(e) {
|
|
1404
1443
|
return e.charAt(1).toUpperCase();
|
|
1405
1444
|
}
|
|
1406
|
-
const Lt =
|
|
1407
|
-
function
|
|
1445
|
+
const Lt = An([Pn, vt, _n, zn, On], "html"), Ze = An([Pn, xt, _n, zn, On], "svg");
|
|
1446
|
+
function Mt(e) {
|
|
1408
1447
|
return e.join(" ").trim();
|
|
1409
1448
|
}
|
|
1410
1449
|
var oe = {}, je, un;
|
|
1411
|
-
function
|
|
1450
|
+
function Nt() {
|
|
1412
1451
|
if (un) return je;
|
|
1413
1452
|
un = 1;
|
|
1414
1453
|
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, n = /\n/g, t = /^\s*/, a = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, o = /^:\s*/, l = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, r = /^[;\s]*/, i = /^\s+|\s+$/g, u = `
|
|
@@ -1451,7 +1490,7 @@ function Mt() {
|
|
|
1451
1490
|
function B() {
|
|
1452
1491
|
L(t);
|
|
1453
1492
|
}
|
|
1454
|
-
function
|
|
1493
|
+
function z(E) {
|
|
1455
1494
|
var x;
|
|
1456
1495
|
for (E = E || []; x = N(); )
|
|
1457
1496
|
x !== !1 && E.push(x);
|
|
@@ -1471,7 +1510,7 @@ function Mt() {
|
|
|
1471
1510
|
});
|
|
1472
1511
|
}
|
|
1473
1512
|
}
|
|
1474
|
-
function
|
|
1513
|
+
function O() {
|
|
1475
1514
|
var E = P(), x = L(a);
|
|
1476
1515
|
if (x) {
|
|
1477
1516
|
if (N(), !L(o)) return I("property missing ':'");
|
|
@@ -1485,9 +1524,9 @@ function Mt() {
|
|
|
1485
1524
|
}
|
|
1486
1525
|
function q() {
|
|
1487
1526
|
var E = [];
|
|
1488
|
-
|
|
1489
|
-
for (var x; x =
|
|
1490
|
-
x !== !1 && (E.push(x),
|
|
1527
|
+
z(E);
|
|
1528
|
+
for (var x; x = O(); )
|
|
1529
|
+
x !== !1 && (E.push(x), z(E));
|
|
1491
1530
|
return E;
|
|
1492
1531
|
}
|
|
1493
1532
|
return B(), q();
|
|
@@ -1498,14 +1537,14 @@ function Mt() {
|
|
|
1498
1537
|
return je = M, je;
|
|
1499
1538
|
}
|
|
1500
1539
|
var dn;
|
|
1501
|
-
function
|
|
1540
|
+
function Dt() {
|
|
1502
1541
|
if (dn) return oe;
|
|
1503
1542
|
dn = 1;
|
|
1504
1543
|
var e = oe && oe.__importDefault || function(a) {
|
|
1505
1544
|
return a && a.__esModule ? a : { default: a };
|
|
1506
1545
|
};
|
|
1507
1546
|
Object.defineProperty(oe, "__esModule", { value: !0 }), oe.default = t;
|
|
1508
|
-
const n = e(
|
|
1547
|
+
const n = e(Nt());
|
|
1509
1548
|
function t(a, o) {
|
|
1510
1549
|
let l = null;
|
|
1511
1550
|
if (!a || typeof a != "string")
|
|
@@ -1521,7 +1560,7 @@ function Tt() {
|
|
|
1521
1560
|
return oe;
|
|
1522
1561
|
}
|
|
1523
1562
|
var ce = {}, fn;
|
|
1524
|
-
function
|
|
1563
|
+
function Tt() {
|
|
1525
1564
|
if (fn) return ce;
|
|
1526
1565
|
fn = 1, Object.defineProperty(ce, "__esModule", { value: !0 }), ce.camelCase = void 0;
|
|
1527
1566
|
var e = /^--[a-zA-Z0-9_-]+$/, n = /-([a-z])/g, t = /^[^-]+$/, a = /^-(webkit|moz|ms|o|khtml)-/, o = /^-(ms)-/, l = function(f) {
|
|
@@ -1541,7 +1580,7 @@ function Rt() {
|
|
|
1541
1580
|
pn = 1;
|
|
1542
1581
|
var e = ue && ue.__importDefault || function(o) {
|
|
1543
1582
|
return o && o.__esModule ? o : { default: o };
|
|
1544
|
-
}, n = e(
|
|
1583
|
+
}, n = e(Dt()), t = Tt();
|
|
1545
1584
|
function a(o, l) {
|
|
1546
1585
|
var r = {};
|
|
1547
1586
|
return !o || typeof o != "string" || (0, n.default)(o, function(i, u) {
|
|
@@ -1551,7 +1590,7 @@ function Rt() {
|
|
|
1551
1590
|
return a.default = a, ue = a, ue;
|
|
1552
1591
|
}
|
|
1553
1592
|
var At = Rt();
|
|
1554
|
-
const Pt = /* @__PURE__ */
|
|
1593
|
+
const Pt = /* @__PURE__ */ Qn(At), It = Ft("start");
|
|
1555
1594
|
function Ft(e) {
|
|
1556
1595
|
return n;
|
|
1557
1596
|
function n(t) {
|
|
@@ -1663,7 +1702,7 @@ U.prototype.fatal = void 0;
|
|
|
1663
1702
|
U.prototype.place = void 0;
|
|
1664
1703
|
U.prototype.ruleId = void 0;
|
|
1665
1704
|
U.prototype.source = void 0;
|
|
1666
|
-
const Qe = {}.hasOwnProperty,
|
|
1705
|
+
const Qe = {}.hasOwnProperty, zt = /* @__PURE__ */ new Map(), Ot = /[A-Z]/g, $t = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Ut = /* @__PURE__ */ new Set(["td", "th"]), $n = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
1667
1706
|
function Bt(e, n) {
|
|
1668
1707
|
if (!n || n.Fragment === void 0)
|
|
1669
1708
|
throw new TypeError("Expected `Fragment` in options");
|
|
@@ -1696,7 +1735,7 @@ function Bt(e, n) {
|
|
|
1696
1735
|
schema: n.space === "svg" ? Ze : Lt,
|
|
1697
1736
|
stylePropertyNameCase: n.stylePropertyNameCase || "dom",
|
|
1698
1737
|
tableCellAlignToStyle: n.tableCellAlignToStyle !== !1
|
|
1699
|
-
}, l =
|
|
1738
|
+
}, l = Un(o, e, void 0);
|
|
1700
1739
|
return l && typeof l != "string" ? l : o.create(
|
|
1701
1740
|
e,
|
|
1702
1741
|
o.Fragment,
|
|
@@ -1704,7 +1743,7 @@ function Bt(e, n) {
|
|
|
1704
1743
|
void 0
|
|
1705
1744
|
);
|
|
1706
1745
|
}
|
|
1707
|
-
function
|
|
1746
|
+
function Un(e, n, t) {
|
|
1708
1747
|
if (n.type === "element")
|
|
1709
1748
|
return Vt(e, n, t);
|
|
1710
1749
|
if (n.type === "mdxFlowExpression" || n.type === "mdxTextExpression")
|
|
@@ -1722,11 +1761,11 @@ function Vt(e, n, t) {
|
|
|
1722
1761
|
const a = e.schema;
|
|
1723
1762
|
let o = a;
|
|
1724
1763
|
n.tagName.toLowerCase() === "svg" && a.space === "html" && (o = Ze, e.schema = o), e.ancestors.push(n);
|
|
1725
|
-
const l =
|
|
1764
|
+
const l = Vn(e, n.tagName, !1), r = Yt(e, n);
|
|
1726
1765
|
let i = nn(e, n);
|
|
1727
1766
|
return $t.has(n.tagName) && (i = i.filter(function(u) {
|
|
1728
1767
|
return typeof u == "string" ? !yt(u) : !0;
|
|
1729
|
-
})),
|
|
1768
|
+
})), Bn(e, r, l, n), en(r, i), e.ancestors.pop(), e.schema = a, e.create(n, l, r, t);
|
|
1730
1769
|
}
|
|
1731
1770
|
function Ht(e, n) {
|
|
1732
1771
|
if (n.data && n.data.estree && e.evaluater) {
|
|
@@ -1748,8 +1787,8 @@ function Wt(e, n, t) {
|
|
|
1748
1787
|
const a = e.schema;
|
|
1749
1788
|
let o = a;
|
|
1750
1789
|
n.name === "svg" && a.space === "html" && (o = Ze, e.schema = o), e.ancestors.push(n);
|
|
1751
|
-
const l = n.name === null ? e.Fragment :
|
|
1752
|
-
return
|
|
1790
|
+
const l = n.name === null ? e.Fragment : Vn(e, n.name, !0), r = Zt(e, n), i = nn(e, n);
|
|
1791
|
+
return Bn(e, r, l, n), en(r, i), e.ancestors.pop(), e.schema = a, e.create(n, l, r, t);
|
|
1753
1792
|
}
|
|
1754
1793
|
function qt(e, n, t) {
|
|
1755
1794
|
const a = {};
|
|
@@ -1758,7 +1797,7 @@ function qt(e, n, t) {
|
|
|
1758
1797
|
function Xt(e, n) {
|
|
1759
1798
|
return n.value;
|
|
1760
1799
|
}
|
|
1761
|
-
function
|
|
1800
|
+
function Bn(e, n, t, a) {
|
|
1762
1801
|
typeof t != "string" && t !== e.Fragment && e.passNode && (n.node = a);
|
|
1763
1802
|
}
|
|
1764
1803
|
function en(e, n) {
|
|
@@ -1847,7 +1886,7 @@ function Zt(e, n) {
|
|
|
1847
1886
|
function nn(e, n) {
|
|
1848
1887
|
const t = [];
|
|
1849
1888
|
let a = -1;
|
|
1850
|
-
const o = e.passKeys ? /* @__PURE__ */ new Map() :
|
|
1889
|
+
const o = e.passKeys ? /* @__PURE__ */ new Map() : zt;
|
|
1851
1890
|
for (; ++a < n.children.length; ) {
|
|
1852
1891
|
const l = n.children[a];
|
|
1853
1892
|
let r;
|
|
@@ -1858,7 +1897,7 @@ function nn(e, n) {
|
|
|
1858
1897
|
r = u + "-" + f, o.set(u, f + 1);
|
|
1859
1898
|
}
|
|
1860
1899
|
}
|
|
1861
|
-
const i =
|
|
1900
|
+
const i = Un(e, l, r);
|
|
1862
1901
|
i !== void 0 && t.push(i);
|
|
1863
1902
|
}
|
|
1864
1903
|
return t;
|
|
@@ -1866,7 +1905,7 @@ function nn(e, n) {
|
|
|
1866
1905
|
function Qt(e, n, t) {
|
|
1867
1906
|
const a = Et(e.schema, n);
|
|
1868
1907
|
if (!(t == null || typeof t == "number" && Number.isNaN(t))) {
|
|
1869
|
-
if (Array.isArray(t) && (t = a.commaSeparated ? ft(t) :
|
|
1908
|
+
if (Array.isArray(t) && (t = a.commaSeparated ? ft(t) : Mt(t)), a.property === "style") {
|
|
1870
1909
|
let o = typeof t == "object" ? t : ea(e, String(t));
|
|
1871
1910
|
return e.stylePropertyNameCase === "css" && (o = na(o)), ["style", o];
|
|
1872
1911
|
}
|
|
@@ -1891,10 +1930,10 @@ function ea(e, n) {
|
|
|
1891
1930
|
ruleId: "style",
|
|
1892
1931
|
source: "hast-util-to-jsx-runtime"
|
|
1893
1932
|
});
|
|
1894
|
-
throw o.file = e.filePath || void 0, o.url =
|
|
1933
|
+
throw o.file = e.filePath || void 0, o.url = $n + "#cannot-parse-style-attribute", o;
|
|
1895
1934
|
}
|
|
1896
1935
|
}
|
|
1897
|
-
function
|
|
1936
|
+
function Vn(e, n, t) {
|
|
1898
1937
|
let a;
|
|
1899
1938
|
if (!t)
|
|
1900
1939
|
a = { type: "Literal", value: n };
|
|
@@ -1935,7 +1974,7 @@ function pe(e, n) {
|
|
|
1935
1974
|
source: "hast-util-to-jsx-runtime"
|
|
1936
1975
|
}
|
|
1937
1976
|
);
|
|
1938
|
-
throw t.file = e.filePath || void 0, t.url =
|
|
1977
|
+
throw t.file = e.filePath || void 0, t.url = $n + "#cannot-handle-mdx-estrees-without-createevaluater", t;
|
|
1939
1978
|
}
|
|
1940
1979
|
function na(e) {
|
|
1941
1980
|
const n = {};
|
|
@@ -1945,25 +1984,25 @@ function na(e) {
|
|
|
1945
1984
|
return n;
|
|
1946
1985
|
}
|
|
1947
1986
|
function ta(e) {
|
|
1948
|
-
let n = e.replace(
|
|
1987
|
+
let n = e.replace(Ot, aa);
|
|
1949
1988
|
return n.slice(0, 3) === "ms-" && (n = "-" + n), n;
|
|
1950
1989
|
}
|
|
1951
1990
|
function aa(e) {
|
|
1952
1991
|
return "-" + e.toLowerCase();
|
|
1953
1992
|
}
|
|
1954
|
-
const
|
|
1993
|
+
const Hn = 1500;
|
|
1955
1994
|
function ke({
|
|
1956
1995
|
value: e,
|
|
1957
1996
|
label: n,
|
|
1958
1997
|
action: t,
|
|
1959
1998
|
className: a = "cf-block-button",
|
|
1960
1999
|
icon: o = "copy",
|
|
1961
|
-
failureLabel: l =
|
|
2000
|
+
failureLabel: l = T.copyFailed
|
|
1962
2001
|
}) {
|
|
1963
2002
|
const [r, i] = c.useState("idle");
|
|
1964
2003
|
c.useEffect(() => {
|
|
1965
2004
|
if (r === "idle") return;
|
|
1966
|
-
const f = setTimeout(() => i("idle"),
|
|
2005
|
+
const f = setTimeout(() => i("idle"), Hn);
|
|
1967
2006
|
return () => clearTimeout(f);
|
|
1968
2007
|
}, [r]);
|
|
1969
2008
|
const u = r === "success" ? `${n} ✓` : r === "error" ? l : n;
|
|
@@ -1986,7 +2025,7 @@ function ke({
|
|
|
1986
2025
|
},
|
|
1987
2026
|
children: [
|
|
1988
2027
|
/* @__PURE__ */ s.jsx("span", { className: "cf-action-icon cf-action-icon-copy", "aria-hidden": "true", children: /* @__PURE__ */ s.jsx(W, { name: o }) }),
|
|
1989
|
-
/* @__PURE__ */ s.jsx("span", { className: "cf-action-icon cf-action-icon-success", "aria-hidden": "true", children: /* @__PURE__ */ s.jsx(
|
|
2028
|
+
/* @__PURE__ */ s.jsx("span", { className: "cf-action-icon cf-action-icon-success", "aria-hidden": "true", children: /* @__PURE__ */ s.jsx(ot, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) }),
|
|
1990
2029
|
/* @__PURE__ */ s.jsx("span", { className: "cf-sr-only", "aria-live": "polite", "aria-atomic": "true", children: r === "idle" ? "" : u })
|
|
1991
2030
|
]
|
|
1992
2031
|
}
|
|
@@ -2118,7 +2157,7 @@ const oa = {
|
|
|
2118
2157
|
rust: "source",
|
|
2119
2158
|
rs: "source"
|
|
2120
2159
|
};
|
|
2121
|
-
function
|
|
2160
|
+
function Kn(e, n = "") {
|
|
2122
2161
|
const t = e.split(/[\\/]/).pop()?.toLowerCase() || "", a = oa[t];
|
|
2123
2162
|
if (a) return a;
|
|
2124
2163
|
if (/^\.env(?:\..+)?$/.test(t)) return "environment";
|
|
@@ -2180,7 +2219,7 @@ function sa(e, n = "") {
|
|
|
2180
2219
|
if (/^\.env(?:\.|$)/.test(a)) return "environment";
|
|
2181
2220
|
if (a === "tsconfig.json" || a === "jsconfig.json") return "typescript";
|
|
2182
2221
|
if (/\.(?:jsx|tsx)$/.test(a)) return "react";
|
|
2183
|
-
const o =
|
|
2222
|
+
const o = Kn(a, n);
|
|
2184
2223
|
if (o === "config") return "config";
|
|
2185
2224
|
if (o === "database") return "database";
|
|
2186
2225
|
if (o === "diff") return "diff";
|
|
@@ -2190,7 +2229,7 @@ function sa(e, n = "") {
|
|
|
2190
2229
|
return gn[l] || gn[n.toLowerCase()] || "document";
|
|
2191
2230
|
}
|
|
2192
2231
|
function ca({ filename: e, language: n }) {
|
|
2193
|
-
const t =
|
|
2232
|
+
const t = Kn(e, n), a = sa(e, n);
|
|
2194
2233
|
return /* @__PURE__ */ s.jsx(
|
|
2195
2234
|
"span",
|
|
2196
2235
|
{
|
|
@@ -2210,31 +2249,42 @@ function _e({
|
|
|
2210
2249
|
source: n,
|
|
2211
2250
|
language: t,
|
|
2212
2251
|
filename: a,
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2252
|
+
overflow: o,
|
|
2253
|
+
copyLabel: l,
|
|
2254
|
+
copyFailureLabel: r,
|
|
2255
|
+
...i
|
|
2216
2256
|
}) {
|
|
2217
|
-
const
|
|
2218
|
-
return /* @__PURE__ */ s.jsxs(
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2257
|
+
const u = i, f = n ?? (h(u, "data-cf-source", "dataCfSource") || ua(e)), p = t ?? (h(u, "data-cf-language", "dataCfLanguage") || "text"), m = a ?? (h(u, "data-cf-filename", "dataCfFilename") || void 0), k = h(u, "data-cf-code-overflow", "dataCfCodeOverflow"), b = o ?? (k === "wrap" || k === "scroll" ? k : void 0), M = l ?? (h(u, "data-cf-copy-label", "dataCfCopyLabel") || T.copyCode), j = r ?? (h(u, "data-cf-copy-failure-label", "dataCfCopyFailureLabel") || T.copyFailed), C = G("cf-code", u.className), { className: g, ...S } = Q(u);
|
|
2258
|
+
return /* @__PURE__ */ s.jsxs(
|
|
2259
|
+
"figure",
|
|
2260
|
+
{
|
|
2261
|
+
...S,
|
|
2262
|
+
className: C,
|
|
2263
|
+
"data-cf-component": "code-block",
|
|
2264
|
+
"data-cf-slot": "root",
|
|
2265
|
+
"data-cf-code-overflow": b,
|
|
2266
|
+
children: [
|
|
2267
|
+
/* @__PURE__ */ s.jsx(
|
|
2268
|
+
da,
|
|
2269
|
+
{
|
|
2270
|
+
source: f,
|
|
2271
|
+
language: p,
|
|
2272
|
+
filename: m,
|
|
2273
|
+
copyLabel: M,
|
|
2274
|
+
copyFailureLabel: j
|
|
2275
|
+
}
|
|
2276
|
+
),
|
|
2277
|
+
e
|
|
2278
|
+
]
|
|
2279
|
+
}
|
|
2280
|
+
);
|
|
2231
2281
|
}
|
|
2232
2282
|
function da({
|
|
2233
2283
|
source: e,
|
|
2234
2284
|
language: n,
|
|
2235
2285
|
filename: t,
|
|
2236
|
-
copyLabel: a =
|
|
2237
|
-
copyFailureLabel: o =
|
|
2286
|
+
copyLabel: a = T.copyCode,
|
|
2287
|
+
copyFailureLabel: o = T.copyFailed
|
|
2238
2288
|
}) {
|
|
2239
2289
|
const l = t ? /* @__PURE__ */ s.jsxs("span", { className: "cf-code-file", "data-cf-slot": "title", "data-cf-language": n, children: [
|
|
2240
2290
|
/* @__PURE__ */ s.jsx(ca, { filename: t, language: n }),
|
|
@@ -2265,7 +2315,7 @@ function da({
|
|
|
2265
2315
|
}
|
|
2266
2316
|
);
|
|
2267
2317
|
}
|
|
2268
|
-
function
|
|
2318
|
+
function ze({
|
|
2269
2319
|
children: e,
|
|
2270
2320
|
value: n,
|
|
2271
2321
|
copyLabel: t,
|
|
@@ -2274,7 +2324,7 @@ function Oe({
|
|
|
2274
2324
|
inner: l = !1,
|
|
2275
2325
|
...r
|
|
2276
2326
|
}) {
|
|
2277
|
-
const i = n ?? (h(r, "data-cf-value", "dataCfValue") || X(e)), u = t || h(r, "data-cf-copy-label", "dataCfCopyLabel") ||
|
|
2327
|
+
const i = n ?? (h(r, "data-cf-value", "dataCfValue") || X(e)), u = t || h(r, "data-cf-copy-label", "dataCfCopyLabel") || T.copySnippet, f = a || h(r, "data-cf-copy-failure-label", "dataCfCopyFailureLabel") || T.copyFailed, p = G("cf-copy-snippet", o), { className: m, ...k } = Q(r), b = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2278
2328
|
/* @__PURE__ */ s.jsx("code", { "data-cf-slot": "content", children: e ?? i }),
|
|
2279
2329
|
/* @__PURE__ */ s.jsx(
|
|
2280
2330
|
ke,
|
|
@@ -2305,7 +2355,7 @@ function Oe({
|
|
|
2305
2355
|
function fa(e) {
|
|
2306
2356
|
return ne(e).find((n) => V(n) === "table");
|
|
2307
2357
|
}
|
|
2308
|
-
function
|
|
2358
|
+
function Oe(e) {
|
|
2309
2359
|
return e ? ne(e.props.children).filter((n) => V(n) === "tr") : [];
|
|
2310
2360
|
}
|
|
2311
2361
|
function be(e) {
|
|
@@ -2325,7 +2375,7 @@ function ma(e) {
|
|
|
2325
2375
|
return e ? ne(e.props.children).filter(
|
|
2326
2376
|
(t) => V(t) === "thead" || V(t) === "tbody"
|
|
2327
2377
|
).flatMap(
|
|
2328
|
-
(t) =>
|
|
2378
|
+
(t) => Oe(t).map(
|
|
2329
2379
|
(a) => be(a).map((o) => pa(X(o.props.children))).join(",")
|
|
2330
2380
|
)
|
|
2331
2381
|
).join(`
|
|
@@ -2333,7 +2383,7 @@ function ma(e) {
|
|
|
2333
2383
|
}
|
|
2334
2384
|
function ha(e, n, t, a) {
|
|
2335
2385
|
if (!e) return null;
|
|
2336
|
-
const o = yn(e, "thead"), l = yn(e, "tbody"), r =
|
|
2386
|
+
const o = yn(e, "thead"), l = yn(e, "tbody"), r = Oe(o), i = r[0] ? be(r[0]).map((p, m) => {
|
|
2337
2387
|
const k = n?.column === m, b = k ? n.direction : void 0;
|
|
2338
2388
|
return c.cloneElement(p, {
|
|
2339
2389
|
"aria-sort": k ? b === "asc" ? "ascending" : "descending" : void 0,
|
|
@@ -2356,7 +2406,7 @@ function ha(e, n, t, a) {
|
|
|
2356
2406
|
}
|
|
2357
2407
|
)
|
|
2358
2408
|
});
|
|
2359
|
-
}) : [], u = l ?
|
|
2409
|
+
}) : [], u = l ? Oe(l).slice().sort((p, m) => {
|
|
2360
2410
|
if (!n) return 0;
|
|
2361
2411
|
const k = X(be(p)[n.column]?.props.children), b = X(be(m)[n.column]?.props.children), M = k.localeCompare(b, void 0, { numeric: !0, sensitivity: "base" });
|
|
2362
2412
|
return n.direction === "asc" ? M : -M;
|
|
@@ -2380,7 +2430,7 @@ function $e({
|
|
|
2380
2430
|
inner: f = !1,
|
|
2381
2431
|
...p
|
|
2382
2432
|
}) {
|
|
2383
|
-
const m = p, k = fa(e), b = c.useMemo(() => ma(k), [k]), [M, j] = c.useState(null), [C, g] = c.useState(!1), S = c.useRef(null), y = c.useRef(null), A = c.useRef(null), P = n || h(m, "data-cf-table-title", "dataCfTableTitle") ||
|
|
2433
|
+
const m = p, k = fa(e), b = c.useMemo(() => ma(k), [k]), [M, j] = c.useState(null), [C, g] = c.useState(!1), S = c.useRef(null), y = c.useRef(null), A = c.useRef(null), P = n || h(m, "data-cf-table-title", "dataCfTableTitle") || T.tableTitle, R = t || h(m, "data-cf-copy-label", "dataCfCopyLabel") || T.copyTableCsv, I = a || h(m, "data-cf-copy-failure-label", "dataCfCopyFailureLabel") || T.copyFailed, L = o || h(m, "data-cf-download-label", "dataCfDownloadLabel") || T.downloadTableCsv, B = l || h(m, "data-cf-zoom-label", "dataCfZoomLabel") || T.zoomTable, z = r || h(m, "data-cf-close-label", "dataCfCloseLabel") || T.closeTablePreview, N = i || h(m, "data-cf-sort-label", "dataCfSortLabel") || T.sortTableColumn, O = u ?? h(m, "data-cf-table", "dataCfTable"), q = G("cf-table-window", m.className), { className: E, ...x } = Q(m), Y = ha(k, M, N, (le) => j(
|
|
2384
2434
|
(ln) => ln?.column === le ? ln.direction === "asc" ? { column: le, direction: "desc" } : null : { column: le, direction: "asc" }
|
|
2385
2435
|
)), he = () => g(!1), ge = wn({
|
|
2386
2436
|
open: C,
|
|
@@ -2420,7 +2470,7 @@ function $e({
|
|
|
2420
2470
|
type: "button",
|
|
2421
2471
|
"data-cf-action": "close-table",
|
|
2422
2472
|
"data-cf-slot": "close",
|
|
2423
|
-
"aria-label":
|
|
2473
|
+
"aria-label": z,
|
|
2424
2474
|
onClick: he,
|
|
2425
2475
|
children: /* @__PURE__ */ s.jsx(W, { name: "close" })
|
|
2426
2476
|
}
|
|
@@ -2488,9 +2538,9 @@ function $e({
|
|
|
2488
2538
|
"data-cf-copy-failure-label": I,
|
|
2489
2539
|
"data-cf-download-label": L,
|
|
2490
2540
|
"data-cf-zoom-label": B,
|
|
2491
|
-
"data-cf-close-label":
|
|
2541
|
+
"data-cf-close-label": z,
|
|
2492
2542
|
"data-cf-sort-label": N,
|
|
2493
|
-
"data-cf-table":
|
|
2543
|
+
"data-cf-table": O || void 0,
|
|
2494
2544
|
children: Z
|
|
2495
2545
|
}
|
|
2496
2546
|
);
|
|
@@ -2524,7 +2574,7 @@ function ve({
|
|
|
2524
2574
|
copyFailureLabel: l,
|
|
2525
2575
|
...r
|
|
2526
2576
|
}) {
|
|
2527
|
-
const i = r, u = t || h(i, "data-cf-title", "dataCfTitle") ||
|
|
2577
|
+
const i = r, u = t || h(i, "data-cf-title", "dataCfTitle") || T.terminalTitle, f = a ?? h(i, "data-cf-source", "dataCfSource"), p = o || h(i, "data-cf-copy-label", "dataCfCopyLabel") || T.copyTerminal, m = l || h(i, "data-cf-copy-failure-label", "dataCfCopyFailureLabel") || T.copyFailed, k = G("cf-terminal", i.className), { className: b, ...M } = Q(i);
|
|
2528
2578
|
return /* @__PURE__ */ s.jsxs("div", { ...M, className: k, "data-cf-component": "terminal", "data-cf-slot": "root", children: [
|
|
2529
2579
|
/* @__PURE__ */ s.jsx(
|
|
2530
2580
|
ya,
|
|
@@ -2541,8 +2591,8 @@ function ve({
|
|
|
2541
2591
|
function ya({
|
|
2542
2592
|
title: e,
|
|
2543
2593
|
source: n,
|
|
2544
|
-
copyLabel: t =
|
|
2545
|
-
copyFailureLabel: a =
|
|
2594
|
+
copyLabel: t = T.copyTerminal,
|
|
2595
|
+
copyFailureLabel: a = T.copyFailed,
|
|
2546
2596
|
inner: o = !1
|
|
2547
2597
|
}) {
|
|
2548
2598
|
const l = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
@@ -2578,7 +2628,7 @@ function tn(e, n, t) {
|
|
|
2578
2628
|
function de(e) {
|
|
2579
2629
|
return c.isValidElement(e);
|
|
2580
2630
|
}
|
|
2581
|
-
function
|
|
2631
|
+
function Wn(e) {
|
|
2582
2632
|
return String(tn(e.props, "data-cf-tab", "dataCfTab") ?? "");
|
|
2583
2633
|
}
|
|
2584
2634
|
function ba(e) {
|
|
@@ -2606,7 +2656,7 @@ function ka(e, n, t, a, o, l) {
|
|
|
2606
2656
|
if (i < 0) return e;
|
|
2607
2657
|
const u = r[i], f = Ue(u);
|
|
2608
2658
|
if (!f.length) return e;
|
|
2609
|
-
const p = f.map((g, S) =>
|
|
2659
|
+
const p = f.map((g, S) => Wn(g) || `tab-${S + 1}`), m = f.flatMap((g, S) => Be(g) ? [] : [S]), k = (g, S = !1) => {
|
|
2610
2660
|
g && (t(g), queueMicrotask(() => {
|
|
2611
2661
|
const y = a.current[g];
|
|
2612
2662
|
y && (xa(o.current ?? y.parentElement ?? y, y), S && y.focus());
|
|
@@ -2662,30 +2712,30 @@ function fe({
|
|
|
2662
2712
|
}) {
|
|
2663
2713
|
const l = c.Children.toArray(e).find(
|
|
2664
2714
|
(N) => de(N) && N.props.role === "tablist"
|
|
2665
|
-
), r = l ? Ue(l).map((N,
|
|
2715
|
+
), r = l ? Ue(l).map((N, O) => Wn(N) || `tab-${O + 1}`) : [], i = l ? Ue(l) : [], u = i.findIndex(
|
|
2666
2716
|
(N) => va(N) && !Be(N)
|
|
2667
2717
|
), f = i.findIndex((N) => !Be(N)), p = r[u >= 0 ? u : f] ?? "", [m, k] = c.useState(p), b = r.includes(m) ? m : p, M = c.useRef({}), j = c.useRef(null), [C, g] = c.useState(!1), [S, y] = c.useState(!1), A = c.useId().replace(/:/g, ""), R = String(tn(a, "data-cf-tabs-id", "dataCfTabsId") ?? "") || `cf-tabs-${A}`, I = ka(e, b, k, M, j, R);
|
|
2668
2718
|
c.useEffect(() => {
|
|
2669
2719
|
if (n !== "code-group") return;
|
|
2670
2720
|
const N = j.current;
|
|
2671
2721
|
if (!N) return;
|
|
2672
|
-
const
|
|
2722
|
+
const O = () => {
|
|
2673
2723
|
const E = Math.max(0, N.scrollWidth - N.clientWidth);
|
|
2674
2724
|
g(E > 1 && N.scrollLeft > 1), y(E > 1 && N.scrollLeft < E - 1);
|
|
2675
2725
|
};
|
|
2676
|
-
|
|
2677
|
-
const q = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(
|
|
2726
|
+
O(), N.addEventListener("scroll", O, { passive: !0 });
|
|
2727
|
+
const q = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(O);
|
|
2678
2728
|
return q?.observe(N), () => {
|
|
2679
|
-
N.removeEventListener("scroll",
|
|
2729
|
+
N.removeEventListener("scroll", O), q?.disconnect();
|
|
2680
2730
|
};
|
|
2681
2731
|
}, [e, n]);
|
|
2682
2732
|
const L = (N) => {
|
|
2683
|
-
const
|
|
2684
|
-
!
|
|
2685
|
-
left: N * Math.max(180,
|
|
2733
|
+
const O = j.current;
|
|
2734
|
+
!O || typeof O.scrollBy != "function" || O.scrollBy({
|
|
2735
|
+
left: N * Math.max(180, O.clientWidth * 0.72),
|
|
2686
2736
|
behavior: "smooth"
|
|
2687
2737
|
});
|
|
2688
|
-
}, B = Q(a),
|
|
2738
|
+
}, B = Q(a), z = G(
|
|
2689
2739
|
n === "code-group" ? "cf-tabs cf-code-group" : "cf-tabs",
|
|
2690
2740
|
a.className
|
|
2691
2741
|
);
|
|
@@ -2693,7 +2743,7 @@ function fe({
|
|
|
2693
2743
|
t,
|
|
2694
2744
|
{
|
|
2695
2745
|
...B,
|
|
2696
|
-
className:
|
|
2746
|
+
className: z,
|
|
2697
2747
|
kind: n,
|
|
2698
2748
|
"data-cf-component": n,
|
|
2699
2749
|
"data-cf-slot": "root",
|
|
@@ -2705,7 +2755,7 @@ function fe({
|
|
|
2705
2755
|
"div",
|
|
2706
2756
|
{
|
|
2707
2757
|
...B,
|
|
2708
|
-
className:
|
|
2758
|
+
className: z,
|
|
2709
2759
|
"data-cf-component": n,
|
|
2710
2760
|
"data-cf-slot": "root",
|
|
2711
2761
|
"data-cf-behavior": "tabs",
|
|
@@ -2747,12 +2797,12 @@ function vn(e) {
|
|
|
2747
2797
|
const n = e.type.displayName ?? "";
|
|
2748
2798
|
return n.startsWith("Markdown") ? n.slice(8).toLowerCase() : "";
|
|
2749
2799
|
}
|
|
2750
|
-
function
|
|
2800
|
+
function qn(e) {
|
|
2751
2801
|
return typeof e == "string" && !e.trim();
|
|
2752
2802
|
}
|
|
2753
2803
|
function Ve(e, n, t, a) {
|
|
2754
2804
|
if (!c.isValidElement(e)) return e;
|
|
2755
|
-
const o = e, l = c.Children.toArray(o.props.children).filter((y) => !
|
|
2805
|
+
const o = e, l = c.Children.toArray(o.props.children).filter((y) => !qn(y)), r = o.props["data-cf-file-tree-file"] !== void 0 || o.props.dataCfFileTreeFile !== void 0, i = o.props["data-cf-file-tree-branch"] !== void 0 || o.props.dataCfFileTreeBranch !== void 0, u = o.props["aria-current"] === "page" || o.props["aria-current"] === !0 || o.props["data-cf-current"] !== void 0 || o.props.dataCfCurrent !== void 0, f = i ? l.findIndex(
|
|
2756
2806
|
(y) => c.isValidElement(y) && vn(y) === "button"
|
|
2757
2807
|
) : -1, p = i ? l.findIndex(
|
|
2758
2808
|
(y) => c.isValidElement(y) && vn(y) === "ul"
|
|
@@ -2762,7 +2812,7 @@ function Ve(e, n, t, a) {
|
|
|
2762
2812
|
const P = `${n}.${A}`;
|
|
2763
2813
|
if (i && A === f && c.isValidElement(y)) {
|
|
2764
2814
|
const R = y, I = R.props.onClick, L = c.Children.toArray(R.props.children), B = L.some(
|
|
2765
|
-
(
|
|
2815
|
+
(z) => c.isValidElement(z) && (z.props["data-cf-slot"] === "folder-icon" || z.props.dataCfSlot === "folder-icon")
|
|
2766
2816
|
);
|
|
2767
2817
|
return c.cloneElement(R, {
|
|
2768
2818
|
className: G("cf-file-tree-folder", R.props.className),
|
|
@@ -2773,8 +2823,8 @@ function Ve(e, n, t, a) {
|
|
|
2773
2823
|
/* @__PURE__ */ s.jsx("span", { className: "cf-file-tree-folder-icon", "data-cf-slot": "folder-icon", children: /* @__PURE__ */ s.jsx(W, { name: "folder" }) }, "folder-icon"),
|
|
2774
2824
|
...L
|
|
2775
2825
|
],
|
|
2776
|
-
onClick: (
|
|
2777
|
-
typeof I == "function" && I(
|
|
2826
|
+
onClick: (z) => {
|
|
2827
|
+
typeof I == "function" && I(z), z.defaultPrevented || a(b, !j);
|
|
2778
2828
|
}
|
|
2779
2829
|
});
|
|
2780
2830
|
}
|
|
@@ -2818,7 +2868,7 @@ function Ve(e, n, t, a) {
|
|
|
2818
2868
|
});
|
|
2819
2869
|
}
|
|
2820
2870
|
function He({ children: e, ...n }) {
|
|
2821
|
-
const [t, a] = c.useState({}), o = c.Children.toArray(e).filter((i) => !
|
|
2871
|
+
const [t, a] = c.useState({}), o = c.Children.toArray(e).filter((i) => !qn(i)).map(
|
|
2822
2872
|
(i, u) => Ve(
|
|
2823
2873
|
i,
|
|
2824
2874
|
String(u),
|
|
@@ -2852,7 +2902,7 @@ function ae(e, n, t) {
|
|
|
2852
2902
|
function xe({ children: e, ...n }) {
|
|
2853
2903
|
const t = String(
|
|
2854
2904
|
n["data-callout"] ?? n.dataCallout ?? "info"
|
|
2855
|
-
), a = t === "tip" ?
|
|
2905
|
+
), a = t === "tip" ? st : t === "warning" ? ut : t === "danger" ? it : ct, o = c.Children.map(e, (l) => {
|
|
2856
2906
|
if (!c.isValidElement(l)) return l;
|
|
2857
2907
|
const r = l;
|
|
2858
2908
|
return r.props["data-cf-slot"] === "title" || r.props.dataCfSlot === "title" ? c.cloneElement(r, {
|
|
@@ -2884,7 +2934,7 @@ function We({ children: e, onToggle: n, ...t }) {
|
|
|
2884
2934
|
return c.cloneElement(b, {
|
|
2885
2935
|
children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2886
2936
|
b.props.children,
|
|
2887
|
-
/* @__PURE__ */ s.jsx(
|
|
2937
|
+
/* @__PURE__ */ s.jsx(rt, { className: "cf-details-chevron", size: 17, strokeWidth: 2, "aria-hidden": "true" })
|
|
2888
2938
|
] }),
|
|
2889
2939
|
onClick: (j) => {
|
|
2890
2940
|
if (M?.(j), j.defaultPrevented) return;
|
|
@@ -2922,14 +2972,14 @@ function We({ children: e, onToggle: n, ...t }) {
|
|
|
2922
2972
|
}
|
|
2923
2973
|
);
|
|
2924
2974
|
}
|
|
2925
|
-
function
|
|
2975
|
+
function Xn(e, n) {
|
|
2926
2976
|
return c.Children.map(e, (t) => c.isValidElement(t) ? c.cloneElement(t, { "data-cf-slot": n }) : t);
|
|
2927
2977
|
}
|
|
2928
2978
|
function qe({ children: e, ...n }) {
|
|
2929
|
-
return /* @__PURE__ */ s.jsx("div", { ...ae(n, "card-grid", "cf-card-grid"), children:
|
|
2979
|
+
return /* @__PURE__ */ s.jsx("div", { ...ae(n, "card-grid", "cf-card-grid"), children: Xn(e, "card") });
|
|
2930
2980
|
}
|
|
2931
2981
|
function Xe({ children: e, ...n }) {
|
|
2932
|
-
return /* @__PURE__ */ s.jsx("section", { ...ae(n, "api", "cf-api-block"), children:
|
|
2982
|
+
return /* @__PURE__ */ s.jsx("section", { ...ae(n, "api", "cf-api-block"), children: Xn(e, "section") });
|
|
2933
2983
|
}
|
|
2934
2984
|
function Ge({ children: e, ...n }) {
|
|
2935
2985
|
return /* @__PURE__ */ s.jsx("aside", { ...ae(n, "aside", "cf-aside"), children: e });
|
|
@@ -2941,12 +2991,12 @@ function Je({ children: e, ...n }) {
|
|
|
2941
2991
|
function wa({
|
|
2942
2992
|
anchor: e,
|
|
2943
2993
|
anchorLabel: n,
|
|
2944
|
-
copyFailureLabel: t =
|
|
2994
|
+
copyFailureLabel: t = T.copyFailed
|
|
2945
2995
|
}) {
|
|
2946
2996
|
const [a, o] = c.useState("idle");
|
|
2947
2997
|
c.useEffect(() => {
|
|
2948
2998
|
if (a === "idle") return;
|
|
2949
|
-
const u = setTimeout(() => o("idle"),
|
|
2999
|
+
const u = setTimeout(() => o("idle"), Hn);
|
|
2950
3000
|
return () => clearTimeout(u);
|
|
2951
3001
|
}, [a]);
|
|
2952
3002
|
const l = async () => {
|
|
@@ -2956,7 +3006,7 @@ function wa({
|
|
|
2956
3006
|
} catch {
|
|
2957
3007
|
o("error");
|
|
2958
3008
|
}
|
|
2959
|
-
}, r = n ||
|
|
3009
|
+
}, r = n || T.copySectionLink, i = a === "success" ? `${r} ✓` : a === "error" ? t : r;
|
|
2960
3010
|
return /* @__PURE__ */ s.jsxs(
|
|
2961
3011
|
"button",
|
|
2962
3012
|
{
|
|
@@ -2998,8 +3048,8 @@ function Ea({
|
|
|
2998
3048
|
className: "cf-anchor-island",
|
|
2999
3049
|
"data-cf-behavior": "heading",
|
|
3000
3050
|
"data-cf-anchor": a,
|
|
3001
|
-
"data-cf-anchor-label": o ||
|
|
3002
|
-
"data-cf-copy-failure-label": l ||
|
|
3051
|
+
"data-cf-anchor-label": o || T.copySectionLink,
|
|
3052
|
+
"data-cf-copy-failure-label": l || T.copyFailed,
|
|
3003
3053
|
children: /* @__PURE__ */ s.jsx(
|
|
3004
3054
|
wa,
|
|
3005
3055
|
{
|
|
@@ -3019,7 +3069,7 @@ function xn(e, n) {
|
|
|
3019
3069
|
return V(a) === n || n === "figcaption" && (a.props["data-cf-slot"] === "caption" || a.props.dataCfSlot === "caption");
|
|
3020
3070
|
});
|
|
3021
3071
|
}
|
|
3022
|
-
function
|
|
3072
|
+
function Gn(e, n, t) {
|
|
3023
3073
|
const a = { ...n, children: t };
|
|
3024
3074
|
if (e === "code-block")
|
|
3025
3075
|
return {
|
|
@@ -3072,7 +3122,7 @@ function Vn(e, n, t) {
|
|
|
3072
3122
|
copyFailureLabel: h(n, "data-cf-copy-failure-label", "dataCfCopyFailureLabel") || void 0
|
|
3073
3123
|
} : e === "gallery" ? {
|
|
3074
3124
|
...a,
|
|
3075
|
-
items:
|
|
3125
|
+
items: at(void 0, n.node, t),
|
|
3076
3126
|
labels: {
|
|
3077
3127
|
gallery: h(n, "data-cf-gallery-label", "dataCfGalleryLabel") || void 0,
|
|
3078
3128
|
close: h(n, "data-cf-close-label", "dataCfCloseLabel") || void 0,
|
|
@@ -3124,35 +3174,35 @@ function se(e, n) {
|
|
|
3124
3174
|
function J(e, n) {
|
|
3125
3175
|
return e[n];
|
|
3126
3176
|
}
|
|
3127
|
-
function
|
|
3177
|
+
function Jn(e, n, t, a, o, l) {
|
|
3128
3178
|
const r = $(n.className, Sa(e, a)), i = se(o, e);
|
|
3129
3179
|
if (i) {
|
|
3130
|
-
const u =
|
|
3131
|
-
return c.createElement(i,
|
|
3180
|
+
const u = Gn(e, { ...n, className: r }, t);
|
|
3181
|
+
return c.createElement(i, Yn(e, u, l));
|
|
3132
3182
|
}
|
|
3133
3183
|
if (e === "file-tree") return c.createElement(He, { ...n, className: r, children: t });
|
|
3134
3184
|
if (e === "gallery") return c.createElement(Le, { ...n, className: r, children: t });
|
|
3135
3185
|
if (e === "terminal") return c.createElement(ve, { ...n, className: r, children: t });
|
|
3136
3186
|
if (e === "copy-snippet")
|
|
3137
|
-
return c.createElement(
|
|
3187
|
+
return c.createElement(ze, { ...n, className: r, children: t });
|
|
3138
3188
|
if (e === "card-grid") return c.createElement(qe, { ...n, className: r, children: t });
|
|
3139
3189
|
if (e === "api") return c.createElement(Xe, { ...n, className: r, children: t });
|
|
3140
3190
|
if (e === "aside") return c.createElement(Ge, { ...n, className: r, children: t });
|
|
3141
3191
|
if (e === "badge") return c.createElement(Je, { ...n, className: r, children: t });
|
|
3142
3192
|
}
|
|
3143
|
-
function
|
|
3144
|
-
const a =
|
|
3193
|
+
function Yn(e, n, t) {
|
|
3194
|
+
const a = Me(n, t);
|
|
3145
3195
|
return e !== "gallery" || !Array.isArray(a.items) ? a : {
|
|
3146
3196
|
...a,
|
|
3147
3197
|
items: a.items.map(
|
|
3148
|
-
(o) => o && typeof o == "object" ?
|
|
3198
|
+
(o) => o && typeof o == "object" ? Me(o, t) : o
|
|
3149
3199
|
)
|
|
3150
3200
|
};
|
|
3151
3201
|
}
|
|
3152
3202
|
function w(e, n, t, a, o) {
|
|
3153
3203
|
const l = n.replace(/[A-Z]/g, (i) => `-${i.toLowerCase()}`);
|
|
3154
3204
|
function r({ children: i, node: u, ...f }) {
|
|
3155
|
-
const p = J(a, e) ?? e, m =
|
|
3205
|
+
const p = J(a, e) ?? e, m = Me(f, o);
|
|
3156
3206
|
if (n === "heading" && /^h[1-6]$/.test(e)) {
|
|
3157
3207
|
const k = f["data-cf-anchor"] ?? f.dataCfAnchor, b = f["data-cf-anchor-label"] ?? f.dataCfAnchorLabel, M = f["data-cf-copy-failure-label"] ?? f.dataCfCopyFailureLabel;
|
|
3158
3208
|
return c.createElement(Ea, {
|
|
@@ -3181,7 +3231,7 @@ function w(e, n, t, a, o) {
|
|
|
3181
3231
|
}
|
|
3182
3232
|
function La(e, n) {
|
|
3183
3233
|
return function({ children: a, node: o, ...l }) {
|
|
3184
|
-
const r = l["data-cf-icon"] ?? l.dataCfIcon, i = typeof r == "string" ?
|
|
3234
|
+
const r = l["data-cf-icon"] ?? l.dataCfIcon, i = typeof r == "string" ? lt(e, r) : void 0;
|
|
3185
3235
|
if (i)
|
|
3186
3236
|
return c.createElement(i, {
|
|
3187
3237
|
size: Number(l.width ?? 16),
|
|
@@ -3192,7 +3242,7 @@ function La(e, n) {
|
|
|
3192
3242
|
return c.createElement(J(n, "svg") ?? "svg", p, a);
|
|
3193
3243
|
};
|
|
3194
3244
|
}
|
|
3195
|
-
function
|
|
3245
|
+
function Ma(e, n) {
|
|
3196
3246
|
return function({ children: a, node: o, ...l }) {
|
|
3197
3247
|
const r = l["data-cf-slot"] === "caption" ? Cn(e) : void 0;
|
|
3198
3248
|
return r ? c.createElement(r, {
|
|
@@ -3202,7 +3252,7 @@ function Na(e, n) {
|
|
|
3202
3252
|
}) : c.createElement(J(n, "figcaption") ?? "figcaption", l, a);
|
|
3203
3253
|
};
|
|
3204
3254
|
}
|
|
3205
|
-
function
|
|
3255
|
+
function Na(e, n, t) {
|
|
3206
3256
|
return function({ children: o, node: l, ...r }) {
|
|
3207
3257
|
const i = Ce(r), u = i ? se(n, i) : void 0;
|
|
3208
3258
|
if (i === "callout") {
|
|
@@ -3221,7 +3271,7 @@ function Ma(e, n, t) {
|
|
|
3221
3271
|
component: u,
|
|
3222
3272
|
children: o
|
|
3223
3273
|
});
|
|
3224
|
-
const f = i &&
|
|
3274
|
+
const f = i && Jn(i, { ...r, node: l }, o, e, n, t);
|
|
3225
3275
|
return f || c.createElement(
|
|
3226
3276
|
J(n, "div") ?? "div",
|
|
3227
3277
|
{
|
|
@@ -3251,7 +3301,7 @@ function Se(e, n, t, a) {
|
|
|
3251
3301
|
component: f,
|
|
3252
3302
|
children: l
|
|
3253
3303
|
});
|
|
3254
|
-
const p = u &&
|
|
3304
|
+
const p = u && Jn(u, { ...i, node: r }, l, n, t, a);
|
|
3255
3305
|
if (p) return p;
|
|
3256
3306
|
const m = e === "section" && (i["data-cf-element"] === "footnotes" || i.dataCfElement === "footnotes");
|
|
3257
3307
|
return c.createElement(
|
|
@@ -3266,18 +3316,18 @@ function Se(e, n, t, a) {
|
|
|
3266
3316
|
);
|
|
3267
3317
|
};
|
|
3268
3318
|
}
|
|
3269
|
-
function
|
|
3319
|
+
function Da(e, n, t) {
|
|
3270
3320
|
return function({ children: o, node: l, ...r }) {
|
|
3271
3321
|
const i = Ce(r);
|
|
3272
3322
|
if (i && ["code-block", "table", "image", "terminal"].includes(i)) {
|
|
3273
3323
|
const f = e[i === "code-block" ? "codeBlock" : i], p = se(n, i);
|
|
3274
3324
|
if (p) {
|
|
3275
|
-
const m =
|
|
3325
|
+
const m = Gn(
|
|
3276
3326
|
i,
|
|
3277
3327
|
{ ...r, className: $(r.className, f) },
|
|
3278
3328
|
o
|
|
3279
3329
|
);
|
|
3280
|
-
return c.createElement(p,
|
|
3330
|
+
return c.createElement(p, Yn(i, m, t));
|
|
3281
3331
|
}
|
|
3282
3332
|
return i === "code-block" ? c.createElement(_e, {
|
|
3283
3333
|
...r,
|
|
@@ -3312,7 +3362,7 @@ function Ta(e, n, t) {
|
|
|
3312
3362
|
);
|
|
3313
3363
|
};
|
|
3314
3364
|
}
|
|
3315
|
-
function
|
|
3365
|
+
function Ta(e, n) {
|
|
3316
3366
|
return function({ children: a, node: o, ...l }) {
|
|
3317
3367
|
const r = Ce(l);
|
|
3318
3368
|
if (r === "steps") {
|
|
@@ -3356,7 +3406,7 @@ function Aa(e = {}, n = {}, t = {}, a) {
|
|
|
3356
3406
|
p: w("p", "paragraph", e, t, a),
|
|
3357
3407
|
a: w("a", "link", e, t, a),
|
|
3358
3408
|
ul: w("ul", "list", e, t, a),
|
|
3359
|
-
ol:
|
|
3409
|
+
ol: Ta(e, t),
|
|
3360
3410
|
li: w("li", "listItem", e, t, a),
|
|
3361
3411
|
blockquote: w("blockquote", "blockquote", e, t),
|
|
3362
3412
|
hr: w("hr", "horizontalRule", e, t),
|
|
@@ -3368,7 +3418,7 @@ function Aa(e = {}, n = {}, t = {}, a) {
|
|
|
3368
3418
|
sup: w("sup", "superscript", e, t),
|
|
3369
3419
|
sub: w("sub", "subscript", e, t),
|
|
3370
3420
|
code: w("code", "inlineCode", e, t),
|
|
3371
|
-
div:
|
|
3421
|
+
div: Na(e, t, a),
|
|
3372
3422
|
aside: Se("aside", e, t, a),
|
|
3373
3423
|
section: Se("section", e, t, a),
|
|
3374
3424
|
span: Se("span", e, t, a),
|
|
@@ -3380,7 +3430,7 @@ function Aa(e = {}, n = {}, t = {}, a) {
|
|
|
3380
3430
|
th: w("th", "tableHeader", e, t),
|
|
3381
3431
|
td: w("td", "tableCell", e, t),
|
|
3382
3432
|
input: w("input", "taskCheckbox", e, t),
|
|
3383
|
-
figure:
|
|
3433
|
+
figure: Da(e, t, a),
|
|
3384
3434
|
img: w("img", "image", e, t, a),
|
|
3385
3435
|
video: w("video", "video", e, t, a),
|
|
3386
3436
|
audio: w("audio", "audio", e, t, a),
|
|
@@ -3389,14 +3439,14 @@ function Aa(e = {}, n = {}, t = {}, a) {
|
|
|
3389
3439
|
dt: w("dt", "definitionTerm", e, t),
|
|
3390
3440
|
dd: w("dd", "definitionDescription", e, t),
|
|
3391
3441
|
summary: w("summary", "summary", e, t),
|
|
3392
|
-
figcaption:
|
|
3442
|
+
figcaption: Ma(n, t),
|
|
3393
3443
|
svg: La(n, t),
|
|
3394
3444
|
details: Ra(e, t),
|
|
3395
3445
|
MarkdownCallout: xe,
|
|
3396
3446
|
MarkdownTabs: fe,
|
|
3397
3447
|
MarkdownSteps: Ke,
|
|
3398
3448
|
MarkdownCodeBlock: _e,
|
|
3399
|
-
MarkdownCopySnippet:
|
|
3449
|
+
MarkdownCopySnippet: ze,
|
|
3400
3450
|
MarkdownTable: $e,
|
|
3401
3451
|
MarkdownImage: Re,
|
|
3402
3452
|
MarkdownDetails: We,
|
|
@@ -3412,7 +3462,7 @@ function Aa(e = {}, n = {}, t = {}, a) {
|
|
|
3412
3462
|
CodeGroup: fe,
|
|
3413
3463
|
Steps: Ke,
|
|
3414
3464
|
CodeBlock: _e,
|
|
3415
|
-
CopySnippet:
|
|
3465
|
+
CopySnippet: ze,
|
|
3416
3466
|
Table: $e,
|
|
3417
3467
|
Image: Re,
|
|
3418
3468
|
Details: We,
|
|
@@ -3428,7 +3478,7 @@ function Aa(e = {}, n = {}, t = {}, a) {
|
|
|
3428
3478
|
function Pa(e) {
|
|
3429
3479
|
return !!(e && typeof e == "object" && typeof e.type == "string");
|
|
3430
3480
|
}
|
|
3431
|
-
function
|
|
3481
|
+
function Zn(e, n = {}, t = !0) {
|
|
3432
3482
|
return Bt(e, {
|
|
3433
3483
|
Fragment: s.Fragment,
|
|
3434
3484
|
jsx: s.jsx,
|
|
@@ -3437,19 +3487,19 @@ function Wn(e, n = {}, t = !0) {
|
|
|
3437
3487
|
passNode: !0
|
|
3438
3488
|
});
|
|
3439
3489
|
}
|
|
3440
|
-
function
|
|
3490
|
+
function za(e, n = {}) {
|
|
3441
3491
|
try {
|
|
3442
|
-
const t =
|
|
3443
|
-
return t ?
|
|
3492
|
+
const t = Rn(e);
|
|
3493
|
+
return t ? Zn(t, n) : void 0;
|
|
3444
3494
|
} catch {
|
|
3445
3495
|
return;
|
|
3446
3496
|
}
|
|
3447
3497
|
}
|
|
3448
|
-
function
|
|
3498
|
+
function Oa(e, n = {}, t = !0) {
|
|
3449
3499
|
try {
|
|
3450
|
-
const a =
|
|
3500
|
+
const a = Rn(e);
|
|
3451
3501
|
return !a || !("children" in a) || !Array.isArray(a.children) ? void 0 : a.children.filter(Pa).map((o, l) => {
|
|
3452
|
-
const r = o.type === "text" ? o.value :
|
|
3502
|
+
const r = o.type === "text" ? o.value : Zn(o, n, t);
|
|
3453
3503
|
return c.isValidElement(r) && r.key === null ? c.cloneElement(r, { key: `markdown-node-${l}` }) : r;
|
|
3454
3504
|
});
|
|
3455
3505
|
} catch {
|
|
@@ -3459,6 +3509,6 @@ function za(e, n = {}, t = !0) {
|
|
|
3459
3509
|
export {
|
|
3460
3510
|
Re as M,
|
|
3461
3511
|
$e as a,
|
|
3462
|
-
|
|
3463
|
-
|
|
3512
|
+
za as b,
|
|
3513
|
+
Oa as r
|
|
3464
3514
|
};
|