@canofold/markdown 0.3.1 → 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/client/bundler.js +308 -0
- package/dist/client/chunks/{client-CTpZrdpv.js → client-CHUUETWE.js} +3 -3
- package/dist/client/chunks/{gallery-BTg1qJjd.js → gallery-Cr0TgC1h.js} +2 -2
- package/dist/client/chunks/{image-BsfZtDsx.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-Ck9NBdg7.js → serialized-Chn9ydGA.js} +334 -295
- package/dist/client/chunks/{table-jaJMPch3.js → table-D99-Zhc8.js} +3 -3
- package/dist/client/index.js +1 -1
- package/dist/componentMap-CKSUGzQH.js +1483 -0
- 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.js +2 -2
- package/dist/plugins-CXYBB-oH.js +130 -0
- package/dist/{prepareMarkdown-DPMq7203.js → prepareMarkdown-CS6sALIb.js} +13 -11
- 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-CPG2lcO7.js +0 -2127
- 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
|
}
|
|
@@ -106,22 +145,22 @@ function Re({
|
|
|
106
145
|
srcSet: f,
|
|
107
146
|
sizes: p,
|
|
108
147
|
zoomLabel: m,
|
|
109
|
-
closeLabel:
|
|
148
|
+
closeLabel: k,
|
|
110
149
|
inner: b = !1,
|
|
111
|
-
...
|
|
150
|
+
...M
|
|
112
151
|
}) {
|
|
113
|
-
const j =
|
|
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:
|
|
123
|
-
initialFocusRef:
|
|
124
|
-
triggerRef:
|
|
161
|
+
dialogRef: O,
|
|
162
|
+
initialFocusRef: N,
|
|
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",
|
|
@@ -180,7 +219,7 @@ function Re({
|
|
|
180
219
|
/* @__PURE__ */ s.jsx(
|
|
181
220
|
"button",
|
|
182
221
|
{
|
|
183
|
-
ref:
|
|
222
|
+
ref: N,
|
|
184
223
|
className: "cf-icon-button cf-image-lightbox-close",
|
|
185
224
|
type: "button",
|
|
186
225
|
"data-cf-action": "close-image",
|
|
@@ -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,18 +1386,18 @@ 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) {
|
|
1359
1398
|
return "xml:" + n.slice(3).toLowerCase();
|
|
1360
1399
|
}
|
|
1361
|
-
}),
|
|
1400
|
+
}), kt = {
|
|
1362
1401
|
classId: "classID",
|
|
1363
1402
|
dataType: "datatype",
|
|
1364
1403
|
itemId: "itemID",
|
|
@@ -1376,7 +1415,7 @@ const vt = ie({
|
|
|
1376
1415
|
xLinkTitle: "xlinkTitle",
|
|
1377
1416
|
xLinkType: "xlinkType",
|
|
1378
1417
|
xmlnsXLink: "xmlnsXlink"
|
|
1379
|
-
},
|
|
1418
|
+
}, Ct = /[A-Z]/g, cn = /-[a-z]/g, wt = /^data[-\w.:]+$/i;
|
|
1380
1419
|
function Et(e, n) {
|
|
1381
1420
|
const t = Ae(n);
|
|
1382
1421
|
let a = n, o = H;
|
|
@@ -1389,7 +1428,7 @@ function Et(e, n) {
|
|
|
1389
1428
|
} else {
|
|
1390
1429
|
const l = n.slice(4);
|
|
1391
1430
|
if (!cn.test(l)) {
|
|
1392
|
-
let r = l.replace(
|
|
1431
|
+
let r = l.replace(Ct, jt);
|
|
1393
1432
|
r.charAt(0) !== "-" && (r = "-" + r), n = "data" + r;
|
|
1394
1433
|
}
|
|
1395
1434
|
}
|
|
@@ -1403,20 +1442,20 @@ 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 = `
|
|
1415
|
-
`, f = "/", p = "*", m = "",
|
|
1416
|
-
function
|
|
1417
|
-
if (typeof
|
|
1454
|
+
`, f = "/", p = "*", m = "", k = "comment", b = "declaration";
|
|
1455
|
+
function M(C, g) {
|
|
1456
|
+
if (typeof C != "string")
|
|
1418
1457
|
throw new TypeError("First argument must be a string");
|
|
1419
|
-
if (!
|
|
1458
|
+
if (!C) return [];
|
|
1420
1459
|
g = g || {};
|
|
1421
1460
|
var S = 1, y = 1;
|
|
1422
1461
|
function A(E) {
|
|
@@ -1434,47 +1473,47 @@ function Mt() {
|
|
|
1434
1473
|
function R(E) {
|
|
1435
1474
|
this.start = E, this.end = { line: S, column: y }, this.source = g.source;
|
|
1436
1475
|
}
|
|
1437
|
-
R.prototype.content =
|
|
1476
|
+
R.prototype.content = C;
|
|
1438
1477
|
function I(E) {
|
|
1439
1478
|
var x = new Error(
|
|
1440
1479
|
g.source + ":" + S + ":" + y + ": " + E
|
|
1441
1480
|
);
|
|
1442
|
-
if (x.reason = E, x.filename = g.source, x.line = S, x.column = y, x.source =
|
|
1481
|
+
if (x.reason = E, x.filename = g.source, x.line = S, x.column = y, x.source = C, !g.silent) throw x;
|
|
1443
1482
|
}
|
|
1444
1483
|
function L(E) {
|
|
1445
|
-
var x = E.exec(
|
|
1484
|
+
var x = E.exec(C);
|
|
1446
1485
|
if (x) {
|
|
1447
1486
|
var _ = x[0];
|
|
1448
|
-
return A(_),
|
|
1487
|
+
return A(_), C = C.slice(_.length), x;
|
|
1449
1488
|
}
|
|
1450
1489
|
}
|
|
1451
1490
|
function B() {
|
|
1452
1491
|
L(t);
|
|
1453
1492
|
}
|
|
1454
|
-
function
|
|
1493
|
+
function z(E) {
|
|
1455
1494
|
var x;
|
|
1456
|
-
for (E = E || []; x =
|
|
1495
|
+
for (E = E || []; x = N(); )
|
|
1457
1496
|
x !== !1 && E.push(x);
|
|
1458
1497
|
return E;
|
|
1459
1498
|
}
|
|
1460
|
-
function
|
|
1499
|
+
function N() {
|
|
1461
1500
|
var E = P();
|
|
1462
|
-
if (!(f !=
|
|
1463
|
-
for (var x = 2; m !=
|
|
1501
|
+
if (!(f != C.charAt(0) || p != C.charAt(1))) {
|
|
1502
|
+
for (var x = 2; m != C.charAt(x) && (p != C.charAt(x) || f != C.charAt(x + 1)); )
|
|
1464
1503
|
++x;
|
|
1465
|
-
if (x += 2, m ===
|
|
1504
|
+
if (x += 2, m === C.charAt(x - 1))
|
|
1466
1505
|
return I("End of comment missing");
|
|
1467
|
-
var _ =
|
|
1468
|
-
return y += 2, A(_),
|
|
1469
|
-
type:
|
|
1506
|
+
var _ = C.slice(2, x - 2);
|
|
1507
|
+
return y += 2, A(_), C = C.slice(x), y += 2, E({
|
|
1508
|
+
type: k,
|
|
1470
1509
|
comment: _
|
|
1471
1510
|
});
|
|
1472
1511
|
}
|
|
1473
1512
|
}
|
|
1474
|
-
function
|
|
1513
|
+
function O() {
|
|
1475
1514
|
var E = P(), x = L(a);
|
|
1476
1515
|
if (x) {
|
|
1477
|
-
if (
|
|
1516
|
+
if (N(), !L(o)) return I("property missing ':'");
|
|
1478
1517
|
var _ = L(l), Y = E({
|
|
1479
1518
|
type: b,
|
|
1480
1519
|
property: j(x[0].replace(e, m)),
|
|
@@ -1485,27 +1524,27 @@ 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();
|
|
1494
1533
|
}
|
|
1495
|
-
function j(
|
|
1496
|
-
return
|
|
1534
|
+
function j(C) {
|
|
1535
|
+
return C ? C.replace(i, m) : m;
|
|
1497
1536
|
}
|
|
1498
|
-
return je =
|
|
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,12 +1905,12 @@ 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
|
}
|
|
1873
1912
|
return [
|
|
1874
|
-
e.elementAttributeNameCase === "react" && a.space ?
|
|
1913
|
+
e.elementAttributeNameCase === "react" && a.space ? kt[a.property] || a.property : a.attribute,
|
|
1875
1914
|
t
|
|
1876
1915
|
];
|
|
1877
1916
|
}
|
|
@@ -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
|
|
1955
|
-
function
|
|
1993
|
+
const Hn = 1500;
|
|
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 Ce({
|
|
|
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
|
{
|
|
@@ -2215,12 +2254,12 @@ function _e({
|
|
|
2215
2254
|
copyFailureLabel: r,
|
|
2216
2255
|
...i
|
|
2217
2256
|
}) {
|
|
2218
|
-
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),
|
|
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);
|
|
2219
2258
|
return /* @__PURE__ */ s.jsxs(
|
|
2220
2259
|
"figure",
|
|
2221
2260
|
{
|
|
2222
2261
|
...S,
|
|
2223
|
-
className:
|
|
2262
|
+
className: C,
|
|
2224
2263
|
"data-cf-component": "code-block",
|
|
2225
2264
|
"data-cf-slot": "root",
|
|
2226
2265
|
"data-cf-code-overflow": b,
|
|
@@ -2231,7 +2270,7 @@ function _e({
|
|
|
2231
2270
|
source: f,
|
|
2232
2271
|
language: p,
|
|
2233
2272
|
filename: m,
|
|
2234
|
-
copyLabel:
|
|
2273
|
+
copyLabel: M,
|
|
2235
2274
|
copyFailureLabel: j
|
|
2236
2275
|
}
|
|
2237
2276
|
),
|
|
@@ -2244,8 +2283,8 @@ function da({
|
|
|
2244
2283
|
source: e,
|
|
2245
2284
|
language: n,
|
|
2246
2285
|
filename: t,
|
|
2247
|
-
copyLabel: a =
|
|
2248
|
-
copyFailureLabel: o =
|
|
2286
|
+
copyLabel: a = T.copyCode,
|
|
2287
|
+
copyFailureLabel: o = T.copyFailed
|
|
2249
2288
|
}) {
|
|
2250
2289
|
const l = t ? /* @__PURE__ */ s.jsxs("span", { className: "cf-code-file", "data-cf-slot": "title", "data-cf-language": n, children: [
|
|
2251
2290
|
/* @__PURE__ */ s.jsx(ca, { filename: t, language: n }),
|
|
@@ -2253,7 +2292,7 @@ function da({
|
|
|
2253
2292
|
] }) : /* @__PURE__ */ s.jsx("span", { className: "cf-code-lang", "data-cf-slot": "title", children: n }), r = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2254
2293
|
l,
|
|
2255
2294
|
/* @__PURE__ */ s.jsx("div", { className: "cf-block-actions", "data-cf-slot": "actions", children: /* @__PURE__ */ s.jsx(
|
|
2256
|
-
|
|
2295
|
+
ke,
|
|
2257
2296
|
{
|
|
2258
2297
|
value: e,
|
|
2259
2298
|
label: a,
|
|
@@ -2276,7 +2315,7 @@ function da({
|
|
|
2276
2315
|
}
|
|
2277
2316
|
);
|
|
2278
2317
|
}
|
|
2279
|
-
function
|
|
2318
|
+
function ze({
|
|
2280
2319
|
children: e,
|
|
2281
2320
|
value: n,
|
|
2282
2321
|
copyLabel: t,
|
|
@@ -2285,10 +2324,10 @@ function Oe({
|
|
|
2285
2324
|
inner: l = !1,
|
|
2286
2325
|
...r
|
|
2287
2326
|
}) {
|
|
2288
|
-
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: [
|
|
2289
2328
|
/* @__PURE__ */ s.jsx("code", { "data-cf-slot": "content", children: e ?? i }),
|
|
2290
2329
|
/* @__PURE__ */ s.jsx(
|
|
2291
|
-
|
|
2330
|
+
ke,
|
|
2292
2331
|
{
|
|
2293
2332
|
value: i,
|
|
2294
2333
|
label: u,
|
|
@@ -2301,7 +2340,7 @@ function Oe({
|
|
|
2301
2340
|
return l ? b : /* @__PURE__ */ s.jsx(
|
|
2302
2341
|
"span",
|
|
2303
2342
|
{
|
|
2304
|
-
...
|
|
2343
|
+
...k,
|
|
2305
2344
|
className: p,
|
|
2306
2345
|
"data-cf-component": "copy-snippet",
|
|
2307
2346
|
"data-cf-slot": "root",
|
|
@@ -2316,7 +2355,7 @@ function Oe({
|
|
|
2316
2355
|
function fa(e) {
|
|
2317
2356
|
return ne(e).find((n) => V(n) === "table");
|
|
2318
2357
|
}
|
|
2319
|
-
function
|
|
2358
|
+
function Oe(e) {
|
|
2320
2359
|
return e ? ne(e.props.children).filter((n) => V(n) === "tr") : [];
|
|
2321
2360
|
}
|
|
2322
2361
|
function be(e) {
|
|
@@ -2336,7 +2375,7 @@ function ma(e) {
|
|
|
2336
2375
|
return e ? ne(e.props.children).filter(
|
|
2337
2376
|
(t) => V(t) === "thead" || V(t) === "tbody"
|
|
2338
2377
|
).flatMap(
|
|
2339
|
-
(t) =>
|
|
2378
|
+
(t) => Oe(t).map(
|
|
2340
2379
|
(a) => be(a).map((o) => pa(X(o.props.children))).join(",")
|
|
2341
2380
|
)
|
|
2342
2381
|
).join(`
|
|
@@ -2344,10 +2383,10 @@ function ma(e) {
|
|
|
2344
2383
|
}
|
|
2345
2384
|
function ha(e, n, t, a) {
|
|
2346
2385
|
if (!e) return null;
|
|
2347
|
-
const o = yn(e, "thead"), l = yn(e, "tbody"), r =
|
|
2348
|
-
const
|
|
2386
|
+
const o = yn(e, "thead"), l = yn(e, "tbody"), r = Oe(o), i = r[0] ? be(r[0]).map((p, m) => {
|
|
2387
|
+
const k = n?.column === m, b = k ? n.direction : void 0;
|
|
2349
2388
|
return c.cloneElement(p, {
|
|
2350
|
-
"aria-sort":
|
|
2389
|
+
"aria-sort": k ? b === "asc" ? "ascending" : "descending" : void 0,
|
|
2351
2390
|
children: /* @__PURE__ */ s.jsxs(
|
|
2352
2391
|
"button",
|
|
2353
2392
|
{
|
|
@@ -2356,7 +2395,7 @@ function ha(e, n, t, a) {
|
|
|
2356
2395
|
"data-cf-action": "sort-table",
|
|
2357
2396
|
"data-column": String(m),
|
|
2358
2397
|
"data-sort": b,
|
|
2359
|
-
"aria-pressed":
|
|
2398
|
+
"aria-pressed": k ? "true" : "false",
|
|
2360
2399
|
"aria-label": t.replace("{column}", String(m + 1)),
|
|
2361
2400
|
title: t.replace("{column}", String(m + 1)),
|
|
2362
2401
|
onClick: () => a?.(m),
|
|
@@ -2367,13 +2406,13 @@ function ha(e, n, t, a) {
|
|
|
2367
2406
|
}
|
|
2368
2407
|
)
|
|
2369
2408
|
});
|
|
2370
|
-
}) : [], u = l ?
|
|
2409
|
+
}) : [], u = l ? Oe(l).slice().sort((p, m) => {
|
|
2371
2410
|
if (!n) return 0;
|
|
2372
|
-
const
|
|
2373
|
-
return n.direction === "asc" ?
|
|
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" });
|
|
2412
|
+
return n.direction === "asc" ? M : -M;
|
|
2374
2413
|
}) : [], f = ne(e.props.children).map((p) => V(p) === "thead" && r[0] ? c.cloneElement(p, {
|
|
2375
2414
|
children: r.map(
|
|
2376
|
-
(m,
|
|
2415
|
+
(m, k) => k === 0 ? c.cloneElement(m, { children: i }) : m
|
|
2377
2416
|
)
|
|
2378
2417
|
}) : V(p) === "tbody" && l && n ? c.cloneElement(p, { children: u }) : p);
|
|
2379
2418
|
return c.cloneElement(e, { children: f });
|
|
@@ -2391,15 +2430,15 @@ function $e({
|
|
|
2391
2430
|
inner: f = !1,
|
|
2392
2431
|
...p
|
|
2393
2432
|
}) {
|
|
2394
|
-
const m = p,
|
|
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(
|
|
2395
2434
|
(ln) => ln?.column === le ? ln.direction === "asc" ? { column: le, direction: "desc" } : null : { column: le, direction: "asc" }
|
|
2396
2435
|
)), he = () => g(!1), ge = wn({
|
|
2397
|
-
open:
|
|
2436
|
+
open: C,
|
|
2398
2437
|
close: he,
|
|
2399
2438
|
dialogRef: A,
|
|
2400
2439
|
initialFocusRef: A,
|
|
2401
2440
|
triggerRef: S
|
|
2402
|
-
}), ye =
|
|
2441
|
+
}), ye = C && Y ? /* @__PURE__ */ s.jsx(En, { children: /* @__PURE__ */ s.jsxs(
|
|
2403
2442
|
"div",
|
|
2404
2443
|
{
|
|
2405
2444
|
ref: A,
|
|
@@ -2431,7 +2470,7 @@ function $e({
|
|
|
2431
2470
|
type: "button",
|
|
2432
2471
|
"data-cf-action": "close-table",
|
|
2433
2472
|
"data-cf-slot": "close",
|
|
2434
|
-
"aria-label":
|
|
2473
|
+
"aria-label": z,
|
|
2435
2474
|
onClick: he,
|
|
2436
2475
|
children: /* @__PURE__ */ s.jsx(W, { name: "close" })
|
|
2437
2476
|
}
|
|
@@ -2449,7 +2488,7 @@ function $e({
|
|
|
2449
2488
|
] }),
|
|
2450
2489
|
/* @__PURE__ */ s.jsxs("div", { className: "cf-block-actions", "data-cf-slot": "actions", children: [
|
|
2451
2490
|
/* @__PURE__ */ s.jsx(
|
|
2452
|
-
|
|
2491
|
+
ke,
|
|
2453
2492
|
{
|
|
2454
2493
|
value: b,
|
|
2455
2494
|
label: R,
|
|
@@ -2499,9 +2538,9 @@ function $e({
|
|
|
2499
2538
|
"data-cf-copy-failure-label": I,
|
|
2500
2539
|
"data-cf-download-label": L,
|
|
2501
2540
|
"data-cf-zoom-label": B,
|
|
2502
|
-
"data-cf-close-label":
|
|
2503
|
-
"data-cf-sort-label":
|
|
2504
|
-
"data-cf-table":
|
|
2541
|
+
"data-cf-close-label": z,
|
|
2542
|
+
"data-cf-sort-label": N,
|
|
2543
|
+
"data-cf-table": O || void 0,
|
|
2505
2544
|
children: Z
|
|
2506
2545
|
}
|
|
2507
2546
|
);
|
|
@@ -2535,8 +2574,8 @@ function ve({
|
|
|
2535
2574
|
copyFailureLabel: l,
|
|
2536
2575
|
...r
|
|
2537
2576
|
}) {
|
|
2538
|
-
const i = r, u = t || h(i, "data-cf-title", "dataCfTitle") ||
|
|
2539
|
-
return /* @__PURE__ */ s.jsxs("div", { ...
|
|
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);
|
|
2578
|
+
return /* @__PURE__ */ s.jsxs("div", { ...M, className: k, "data-cf-component": "terminal", "data-cf-slot": "root", children: [
|
|
2540
2579
|
/* @__PURE__ */ s.jsx(
|
|
2541
2580
|
ya,
|
|
2542
2581
|
{
|
|
@@ -2552,14 +2591,14 @@ function ve({
|
|
|
2552
2591
|
function ya({
|
|
2553
2592
|
title: e,
|
|
2554
2593
|
source: n,
|
|
2555
|
-
copyLabel: t =
|
|
2556
|
-
copyFailureLabel: a =
|
|
2594
|
+
copyLabel: t = T.copyTerminal,
|
|
2595
|
+
copyFailureLabel: a = T.copyFailed,
|
|
2557
2596
|
inner: o = !1
|
|
2558
2597
|
}) {
|
|
2559
2598
|
const l = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2560
2599
|
/* @__PURE__ */ s.jsx("span", { children: e }),
|
|
2561
2600
|
/* @__PURE__ */ s.jsx(
|
|
2562
|
-
|
|
2601
|
+
ke,
|
|
2563
2602
|
{
|
|
2564
2603
|
value: n,
|
|
2565
2604
|
label: t,
|
|
@@ -2589,7 +2628,7 @@ function tn(e, n, t) {
|
|
|
2589
2628
|
function de(e) {
|
|
2590
2629
|
return c.isValidElement(e);
|
|
2591
2630
|
}
|
|
2592
|
-
function
|
|
2631
|
+
function Wn(e) {
|
|
2593
2632
|
return String(tn(e.props, "data-cf-tab", "dataCfTab") ?? "");
|
|
2594
2633
|
}
|
|
2595
2634
|
function ba(e) {
|
|
@@ -2612,12 +2651,12 @@ function xa(e, n, t = "smooth") {
|
|
|
2612
2651
|
const a = n.offsetLeft, o = a + n.offsetWidth;
|
|
2613
2652
|
a < e.scrollLeft ? e.scrollTo({ left: a, behavior: t }) : o > e.scrollLeft + e.clientWidth && e.scrollTo({ left: o - e.clientWidth, behavior: t });
|
|
2614
2653
|
}
|
|
2615
|
-
function
|
|
2654
|
+
function ka(e, n, t, a, o, l) {
|
|
2616
2655
|
const r = c.Children.toArray(e), i = r.findIndex((g) => de(g) && g.props.role === "tablist");
|
|
2617
2656
|
if (i < 0) return e;
|
|
2618
2657
|
const u = r[i], f = Ue(u);
|
|
2619
2658
|
if (!f.length) return e;
|
|
2620
|
-
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) => {
|
|
2621
2660
|
g && (t(g), queueMicrotask(() => {
|
|
2622
2661
|
const y = a.current[g];
|
|
2623
2662
|
y && (xa(o.current ?? y.parentElement ?? y, y), S && y.focus());
|
|
@@ -2630,8 +2669,8 @@ function Ca(e, n, t, a, o, l) {
|
|
|
2630
2669
|
const A = g.key === "Home" ? m[0] : g.key === "End" ? m.at(-1) : m[(y + (g.key === "ArrowRight" || g.key === "ArrowDown" ? 1 : -1) + m.length) % m.length];
|
|
2631
2670
|
if (A === void 0) return;
|
|
2632
2671
|
const P = p[A];
|
|
2633
|
-
P &&
|
|
2634
|
-
},
|
|
2672
|
+
P && k(P, !0);
|
|
2673
|
+
}, M = f.map((g, S) => {
|
|
2635
2674
|
const y = p[S] ?? `tab-${S + 1}`, A = y === n, P = g.props.onClick, R = g.props.onKeyDown, I = bn(g);
|
|
2636
2675
|
return c.cloneElement(g, {
|
|
2637
2676
|
id: `${l}-tab-${S + 1}`,
|
|
@@ -2642,20 +2681,20 @@ function Ca(e, n, t, a, o, l) {
|
|
|
2642
2681
|
a.current[y] = L, typeof I == "function" ? I(L) : I && "current" in I && (I.current = L);
|
|
2643
2682
|
},
|
|
2644
2683
|
onClick: (L) => {
|
|
2645
|
-
P?.(L), !L.defaultPrevented && (L.stopPropagation(),
|
|
2684
|
+
P?.(L), !L.defaultPrevented && (L.stopPropagation(), k(y));
|
|
2646
2685
|
},
|
|
2647
2686
|
onKeyDown: (L) => {
|
|
2648
2687
|
R?.(L), L.defaultPrevented || b(L, S);
|
|
2649
2688
|
}
|
|
2650
2689
|
});
|
|
2651
|
-
}), j = bn(u),
|
|
2652
|
-
children:
|
|
2690
|
+
}), j = bn(u), C = c.cloneElement(u, {
|
|
2691
|
+
children: M,
|
|
2653
2692
|
ref: (g) => {
|
|
2654
2693
|
o.current = g, typeof j == "function" ? j(g) : j && "current" in j && (j.current = g);
|
|
2655
2694
|
}
|
|
2656
2695
|
});
|
|
2657
2696
|
return r.map((g, S) => {
|
|
2658
|
-
if (S === i) return
|
|
2697
|
+
if (S === i) return C;
|
|
2659
2698
|
if (!de(g) || g.props.role !== "tabpanel") return g;
|
|
2660
2699
|
const y = r.filter((P) => de(P) && P.props.role === "tabpanel").indexOf(g), A = ba(g) || p[y] || "";
|
|
2661
2700
|
return c.cloneElement(g, {
|
|
@@ -2672,31 +2711,31 @@ function fe({
|
|
|
2672
2711
|
...a
|
|
2673
2712
|
}) {
|
|
2674
2713
|
const l = c.Children.toArray(e).find(
|
|
2675
|
-
(
|
|
2676
|
-
), r = l ? Ue(l).map((
|
|
2677
|
-
(
|
|
2678
|
-
), f = i.findIndex((
|
|
2714
|
+
(N) => de(N) && N.props.role === "tablist"
|
|
2715
|
+
), r = l ? Ue(l).map((N, O) => Wn(N) || `tab-${O + 1}`) : [], i = l ? Ue(l) : [], u = i.findIndex(
|
|
2716
|
+
(N) => va(N) && !Be(N)
|
|
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);
|
|
2679
2718
|
c.useEffect(() => {
|
|
2680
2719
|
if (n !== "code-group") return;
|
|
2681
|
-
const
|
|
2682
|
-
if (!
|
|
2683
|
-
const
|
|
2684
|
-
const E = Math.max(0,
|
|
2685
|
-
g(E > 1 &&
|
|
2720
|
+
const N = j.current;
|
|
2721
|
+
if (!N) return;
|
|
2722
|
+
const O = () => {
|
|
2723
|
+
const E = Math.max(0, N.scrollWidth - N.clientWidth);
|
|
2724
|
+
g(E > 1 && N.scrollLeft > 1), y(E > 1 && N.scrollLeft < E - 1);
|
|
2686
2725
|
};
|
|
2687
|
-
|
|
2688
|
-
const q = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(
|
|
2689
|
-
return q?.observe(
|
|
2690
|
-
|
|
2726
|
+
O(), N.addEventListener("scroll", O, { passive: !0 });
|
|
2727
|
+
const q = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(O);
|
|
2728
|
+
return q?.observe(N), () => {
|
|
2729
|
+
N.removeEventListener("scroll", O), q?.disconnect();
|
|
2691
2730
|
};
|
|
2692
2731
|
}, [e, n]);
|
|
2693
|
-
const L = (
|
|
2694
|
-
const
|
|
2695
|
-
!
|
|
2696
|
-
left:
|
|
2732
|
+
const L = (N) => {
|
|
2733
|
+
const O = j.current;
|
|
2734
|
+
!O || typeof O.scrollBy != "function" || O.scrollBy({
|
|
2735
|
+
left: N * Math.max(180, O.clientWidth * 0.72),
|
|
2697
2736
|
behavior: "smooth"
|
|
2698
2737
|
});
|
|
2699
|
-
}, B = Q(a),
|
|
2738
|
+
}, B = Q(a), z = G(
|
|
2700
2739
|
n === "code-group" ? "cf-tabs cf-code-group" : "cf-tabs",
|
|
2701
2740
|
a.className
|
|
2702
2741
|
);
|
|
@@ -2704,7 +2743,7 @@ function fe({
|
|
|
2704
2743
|
t,
|
|
2705
2744
|
{
|
|
2706
2745
|
...B,
|
|
2707
|
-
className:
|
|
2746
|
+
className: z,
|
|
2708
2747
|
kind: n,
|
|
2709
2748
|
"data-cf-component": n,
|
|
2710
2749
|
"data-cf-slot": "root",
|
|
@@ -2716,7 +2755,7 @@ function fe({
|
|
|
2716
2755
|
"div",
|
|
2717
2756
|
{
|
|
2718
2757
|
...B,
|
|
2719
|
-
className:
|
|
2758
|
+
className: z,
|
|
2720
2759
|
"data-cf-component": n,
|
|
2721
2760
|
"data-cf-slot": "root",
|
|
2722
2761
|
"data-cf-behavior": "tabs",
|
|
@@ -2730,7 +2769,7 @@ function fe({
|
|
|
2730
2769
|
"data-cf-action": "scroll-code-tabs",
|
|
2731
2770
|
"data-cf-direction": "-1",
|
|
2732
2771
|
"aria-label": "Previous code files",
|
|
2733
|
-
hidden: !
|
|
2772
|
+
hidden: !C,
|
|
2734
2773
|
onClick: () => L(-1),
|
|
2735
2774
|
children: /* @__PURE__ */ s.jsx(W, { name: "previous", size: 18 })
|
|
2736
2775
|
}
|
|
@@ -2758,22 +2797,22 @@ function vn(e) {
|
|
|
2758
2797
|
const n = e.type.displayName ?? "";
|
|
2759
2798
|
return n.startsWith("Markdown") ? n.slice(8).toLowerCase() : "";
|
|
2760
2799
|
}
|
|
2761
|
-
function
|
|
2800
|
+
function qn(e) {
|
|
2762
2801
|
return typeof e == "string" && !e.trim();
|
|
2763
2802
|
}
|
|
2764
2803
|
function Ve(e, n, t, a) {
|
|
2765
2804
|
if (!c.isValidElement(e)) return e;
|
|
2766
|
-
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(
|
|
2767
2806
|
(y) => c.isValidElement(y) && vn(y) === "button"
|
|
2768
2807
|
) : -1, p = i ? l.findIndex(
|
|
2769
2808
|
(y) => c.isValidElement(y) && vn(y) === "ul"
|
|
2770
2809
|
) : -1, m = String(
|
|
2771
2810
|
o.props["data-cf-file-tree-path"] ?? o.props.dataCfFileTreePath ?? ""
|
|
2772
|
-
),
|
|
2811
|
+
), k = f >= 0 ? X(l[f].props.children) : "", b = m || `${n}:${k.trim().toLowerCase()}`, M = f >= 0 ? l[f].props["aria-expanded"] : void 0, j = i ? t[b] ?? (M !== !1 && M !== "false") : !0, C = l.map((y, A) => {
|
|
2773
2812
|
const P = `${n}.${A}`;
|
|
2774
2813
|
if (i && A === f && c.isValidElement(y)) {
|
|
2775
2814
|
const R = y, I = R.props.onClick, L = c.Children.toArray(R.props.children), B = L.some(
|
|
2776
|
-
(
|
|
2815
|
+
(z) => c.isValidElement(z) && (z.props["data-cf-slot"] === "folder-icon" || z.props.dataCfSlot === "folder-icon")
|
|
2777
2816
|
);
|
|
2778
2817
|
return c.cloneElement(R, {
|
|
2779
2818
|
className: G("cf-file-tree-folder", R.props.className),
|
|
@@ -2784,8 +2823,8 @@ function Ve(e, n, t, a) {
|
|
|
2784
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"),
|
|
2785
2824
|
...L
|
|
2786
2825
|
],
|
|
2787
|
-
onClick: (
|
|
2788
|
-
typeof I == "function" && I(
|
|
2826
|
+
onClick: (z) => {
|
|
2827
|
+
typeof I == "function" && I(z), z.defaultPrevented || a(b, !j);
|
|
2789
2828
|
}
|
|
2790
2829
|
});
|
|
2791
2830
|
}
|
|
@@ -2808,8 +2847,8 @@ function Ve(e, n, t, a) {
|
|
|
2808
2847
|
(y) => c.isValidElement(y) && (y.props["data-cf-slot"] === "file-icon" || y.props.dataCfSlot === "file-icon")
|
|
2809
2848
|
), S = r && !g ? [
|
|
2810
2849
|
/* @__PURE__ */ s.jsx("span", { className: "cf-file-tree-file-icon", "data-cf-slot": "file-icon", children: /* @__PURE__ */ s.jsx(W, { name: "file" }) }, "file-icon"),
|
|
2811
|
-
...
|
|
2812
|
-
] :
|
|
2850
|
+
...C
|
|
2851
|
+
] : C;
|
|
2813
2852
|
return c.cloneElement(o, {
|
|
2814
2853
|
...r || i ? {
|
|
2815
2854
|
className: G(
|
|
@@ -2829,7 +2868,7 @@ function Ve(e, n, t, a) {
|
|
|
2829
2868
|
});
|
|
2830
2869
|
}
|
|
2831
2870
|
function He({ children: e, ...n }) {
|
|
2832
|
-
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(
|
|
2833
2872
|
(i, u) => Ve(
|
|
2834
2873
|
i,
|
|
2835
2874
|
String(u),
|
|
@@ -2863,7 +2902,7 @@ function ae(e, n, t) {
|
|
|
2863
2902
|
function xe({ children: e, ...n }) {
|
|
2864
2903
|
const t = String(
|
|
2865
2904
|
n["data-callout"] ?? n.dataCallout ?? "info"
|
|
2866
|
-
), a = t === "tip" ?
|
|
2905
|
+
), a = t === "tip" ? st : t === "warning" ? ut : t === "danger" ? it : ct, o = c.Children.map(e, (l) => {
|
|
2867
2906
|
if (!c.isValidElement(l)) return l;
|
|
2868
2907
|
const r = l;
|
|
2869
2908
|
return r.props["data-cf-slot"] === "title" || r.props.dataCfSlot === "title" ? c.cloneElement(r, {
|
|
@@ -2878,7 +2917,7 @@ function xe({ children: e, ...n }) {
|
|
|
2878
2917
|
function Ke({ children: e, ...n }) {
|
|
2879
2918
|
return c.createElement("ol", ae(n, "steps", "cf-steps"), e);
|
|
2880
2919
|
}
|
|
2881
|
-
function
|
|
2920
|
+
function Ca(e) {
|
|
2882
2921
|
const n = c.Children.toArray(e), t = n.findIndex(
|
|
2883
2922
|
(a) => c.isValidElement(a) && V(a) === "summary"
|
|
2884
2923
|
);
|
|
@@ -2890,24 +2929,24 @@ function ka(e) {
|
|
|
2890
2929
|
};
|
|
2891
2930
|
}
|
|
2892
2931
|
function We({ children: e, onToggle: n, ...t }) {
|
|
2893
|
-
const a = t.open === !0, [o, l] = c.useState(a), [r, i] = c.useState(!1), u = c.useRef(null), { summary: f, content: p } =
|
|
2894
|
-
const b = f,
|
|
2932
|
+
const a = t.open === !0, [o, l] = c.useState(a), [r, i] = c.useState(!1), u = c.useRef(null), { summary: f, content: p } = Ca(e), m = c.isValidElement(f) ? (() => {
|
|
2933
|
+
const b = f, M = b.props.onClick;
|
|
2895
2934
|
return c.cloneElement(b, {
|
|
2896
2935
|
children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2897
2936
|
b.props.children,
|
|
2898
|
-
/* @__PURE__ */ s.jsx(
|
|
2937
|
+
/* @__PURE__ */ s.jsx(rt, { className: "cf-details-chevron", size: 17, strokeWidth: 2, "aria-hidden": "true" })
|
|
2899
2938
|
] }),
|
|
2900
2939
|
onClick: (j) => {
|
|
2901
|
-
if (
|
|
2902
|
-
const
|
|
2903
|
-
queueMicrotask(() => l(
|
|
2940
|
+
if (M?.(j), j.defaultPrevented) return;
|
|
2941
|
+
const C = j.currentTarget.closest("details");
|
|
2942
|
+
queueMicrotask(() => l(C?.open ?? !1));
|
|
2904
2943
|
}
|
|
2905
2944
|
});
|
|
2906
2945
|
})() : f;
|
|
2907
2946
|
c.useEffect(() => {
|
|
2908
2947
|
i(!0);
|
|
2909
2948
|
}, []);
|
|
2910
|
-
const
|
|
2949
|
+
const k = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2911
2950
|
m,
|
|
2912
2951
|
/* @__PURE__ */ s.jsx(
|
|
2913
2952
|
"div",
|
|
@@ -2916,7 +2955,7 @@ function We({ children: e, onToggle: n, ...t }) {
|
|
|
2916
2955
|
className: "cf-details-content",
|
|
2917
2956
|
"data-cf-slot": "content",
|
|
2918
2957
|
inert: r && !o ? !0 : void 0,
|
|
2919
|
-
children: /* @__PURE__ */ s.jsx("div", { className: "cf-details-content-inner", children: p.map((b,
|
|
2958
|
+
children: /* @__PURE__ */ s.jsx("div", { className: "cf-details-content-inner", children: p.map((b, M) => /* @__PURE__ */ s.jsx(c.Fragment, { children: b }, c.isValidElement(b) && b.key !== null ? b.key : `details-${M}`)) })
|
|
2920
2959
|
}
|
|
2921
2960
|
)
|
|
2922
2961
|
] });
|
|
@@ -2929,18 +2968,18 @@ function We({ children: e, onToggle: n, ...t }) {
|
|
|
2929
2968
|
onToggle: (b) => {
|
|
2930
2969
|
l(b.currentTarget.open), n?.(b);
|
|
2931
2970
|
},
|
|
2932
|
-
children:
|
|
2971
|
+
children: k
|
|
2933
2972
|
}
|
|
2934
2973
|
);
|
|
2935
2974
|
}
|
|
2936
|
-
function
|
|
2975
|
+
function Xn(e, n) {
|
|
2937
2976
|
return c.Children.map(e, (t) => c.isValidElement(t) ? c.cloneElement(t, { "data-cf-slot": n }) : t);
|
|
2938
2977
|
}
|
|
2939
2978
|
function qe({ children: e, ...n }) {
|
|
2940
|
-
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") });
|
|
2941
2980
|
}
|
|
2942
2981
|
function Xe({ children: e, ...n }) {
|
|
2943
|
-
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") });
|
|
2944
2983
|
}
|
|
2945
2984
|
function Ge({ children: e, ...n }) {
|
|
2946
2985
|
return /* @__PURE__ */ s.jsx("aside", { ...ae(n, "aside", "cf-aside"), children: e });
|
|
@@ -2952,12 +2991,12 @@ function Je({ children: e, ...n }) {
|
|
|
2952
2991
|
function wa({
|
|
2953
2992
|
anchor: e,
|
|
2954
2993
|
anchorLabel: n,
|
|
2955
|
-
copyFailureLabel: t =
|
|
2994
|
+
copyFailureLabel: t = T.copyFailed
|
|
2956
2995
|
}) {
|
|
2957
2996
|
const [a, o] = c.useState("idle");
|
|
2958
2997
|
c.useEffect(() => {
|
|
2959
2998
|
if (a === "idle") return;
|
|
2960
|
-
const u = setTimeout(() => o("idle"),
|
|
2999
|
+
const u = setTimeout(() => o("idle"), Hn);
|
|
2961
3000
|
return () => clearTimeout(u);
|
|
2962
3001
|
}, [a]);
|
|
2963
3002
|
const l = async () => {
|
|
@@ -2967,7 +3006,7 @@ function wa({
|
|
|
2967
3006
|
} catch {
|
|
2968
3007
|
o("error");
|
|
2969
3008
|
}
|
|
2970
|
-
}, r = n ||
|
|
3009
|
+
}, r = n || T.copySectionLink, i = a === "success" ? `${r} ✓` : a === "error" ? t : r;
|
|
2971
3010
|
return /* @__PURE__ */ s.jsxs(
|
|
2972
3011
|
"button",
|
|
2973
3012
|
{
|
|
@@ -2998,19 +3037,19 @@ function Ea({
|
|
|
2998
3037
|
className: i,
|
|
2999
3038
|
...u
|
|
3000
3039
|
}) {
|
|
3001
|
-
const f = n ?? `h${e}`, p = i?.split(/\s+/).filter(Boolean) ?? [], m = p.some((
|
|
3002
|
-
m && !p.includes("cf-sr-only") && p.push("cf-sr-only"),
|
|
3040
|
+
const f = n ?? `h${e}`, p = i?.split(/\s+/).filter(Boolean) ?? [], m = p.some((M) => M === "sr-only" || M === "cf-sr-only"), k = e > 1 && !!a && !m;
|
|
3041
|
+
m && !p.includes("cf-sr-only") && p.push("cf-sr-only"), k && p.push("cf-heading-with-anchor");
|
|
3003
3042
|
const b = p.join(" ");
|
|
3004
3043
|
return /* @__PURE__ */ s.jsxs(f, { ...u, id: t, className: b || void 0, children: [
|
|
3005
3044
|
r,
|
|
3006
|
-
|
|
3045
|
+
k && a ? /* @__PURE__ */ s.jsx(
|
|
3007
3046
|
"span",
|
|
3008
3047
|
{
|
|
3009
3048
|
className: "cf-anchor-island",
|
|
3010
3049
|
"data-cf-behavior": "heading",
|
|
3011
3050
|
"data-cf-anchor": a,
|
|
3012
|
-
"data-cf-anchor-label": o ||
|
|
3013
|
-
"data-cf-copy-failure-label": l ||
|
|
3051
|
+
"data-cf-anchor-label": o || T.copySectionLink,
|
|
3052
|
+
"data-cf-copy-failure-label": l || T.copyFailed,
|
|
3014
3053
|
children: /* @__PURE__ */ s.jsx(
|
|
3015
3054
|
wa,
|
|
3016
3055
|
{
|
|
@@ -3030,7 +3069,7 @@ function xn(e, n) {
|
|
|
3030
3069
|
return V(a) === n || n === "figcaption" && (a.props["data-cf-slot"] === "caption" || a.props.dataCfSlot === "caption");
|
|
3031
3070
|
});
|
|
3032
3071
|
}
|
|
3033
|
-
function
|
|
3072
|
+
function Gn(e, n, t) {
|
|
3034
3073
|
const a = { ...n, children: t };
|
|
3035
3074
|
if (e === "code-block")
|
|
3036
3075
|
return {
|
|
@@ -3083,7 +3122,7 @@ function Vn(e, n, t) {
|
|
|
3083
3122
|
copyFailureLabel: h(n, "data-cf-copy-failure-label", "dataCfCopyFailureLabel") || void 0
|
|
3084
3123
|
} : e === "gallery" ? {
|
|
3085
3124
|
...a,
|
|
3086
|
-
items:
|
|
3125
|
+
items: at(void 0, n.node, t),
|
|
3087
3126
|
labels: {
|
|
3088
3127
|
gallery: h(n, "data-cf-gallery-label", "dataCfGalleryLabel") || void 0,
|
|
3089
3128
|
close: h(n, "data-cf-close-label", "dataCfCloseLabel") || void 0,
|
|
@@ -3119,12 +3158,12 @@ const an = {
|
|
|
3119
3158
|
aside: { className: "aside", override: "Aside" },
|
|
3120
3159
|
badge: { className: "badge", override: "Badge" }
|
|
3121
3160
|
};
|
|
3122
|
-
function
|
|
3161
|
+
function kn(e) {
|
|
3123
3162
|
const n = typeof e == "string" ? e : "";
|
|
3124
3163
|
return Object.hasOwn(an, n) ? n : void 0;
|
|
3125
3164
|
}
|
|
3126
|
-
function
|
|
3127
|
-
return
|
|
3165
|
+
function Ce(e) {
|
|
3166
|
+
return kn(e["data-cf-component"]) ?? kn(e.dataCfComponent);
|
|
3128
3167
|
}
|
|
3129
3168
|
function Sa(e, n) {
|
|
3130
3169
|
return n[an[e].className];
|
|
@@ -3135,44 +3174,44 @@ function se(e, n) {
|
|
|
3135
3174
|
function J(e, n) {
|
|
3136
3175
|
return e[n];
|
|
3137
3176
|
}
|
|
3138
|
-
function
|
|
3177
|
+
function Jn(e, n, t, a, o, l) {
|
|
3139
3178
|
const r = $(n.className, Sa(e, a)), i = se(o, e);
|
|
3140
3179
|
if (i) {
|
|
3141
|
-
const u =
|
|
3142
|
-
return c.createElement(i,
|
|
3180
|
+
const u = Gn(e, { ...n, className: r }, t);
|
|
3181
|
+
return c.createElement(i, Yn(e, u, l));
|
|
3143
3182
|
}
|
|
3144
3183
|
if (e === "file-tree") return c.createElement(He, { ...n, className: r, children: t });
|
|
3145
3184
|
if (e === "gallery") return c.createElement(Le, { ...n, className: r, children: t });
|
|
3146
3185
|
if (e === "terminal") return c.createElement(ve, { ...n, className: r, children: t });
|
|
3147
3186
|
if (e === "copy-snippet")
|
|
3148
|
-
return c.createElement(
|
|
3187
|
+
return c.createElement(ze, { ...n, className: r, children: t });
|
|
3149
3188
|
if (e === "card-grid") return c.createElement(qe, { ...n, className: r, children: t });
|
|
3150
3189
|
if (e === "api") return c.createElement(Xe, { ...n, className: r, children: t });
|
|
3151
3190
|
if (e === "aside") return c.createElement(Ge, { ...n, className: r, children: t });
|
|
3152
3191
|
if (e === "badge") return c.createElement(Je, { ...n, className: r, children: t });
|
|
3153
3192
|
}
|
|
3154
|
-
function
|
|
3155
|
-
const a =
|
|
3193
|
+
function Yn(e, n, t) {
|
|
3194
|
+
const a = Me(n, t);
|
|
3156
3195
|
return e !== "gallery" || !Array.isArray(a.items) ? a : {
|
|
3157
3196
|
...a,
|
|
3158
3197
|
items: a.items.map(
|
|
3159
|
-
(o) => o && typeof o == "object" ?
|
|
3198
|
+
(o) => o && typeof o == "object" ? Me(o, t) : o
|
|
3160
3199
|
)
|
|
3161
3200
|
};
|
|
3162
3201
|
}
|
|
3163
3202
|
function w(e, n, t, a, o) {
|
|
3164
3203
|
const l = n.replace(/[A-Z]/g, (i) => `-${i.toLowerCase()}`);
|
|
3165
3204
|
function r({ children: i, node: u, ...f }) {
|
|
3166
|
-
const p = J(a, e) ?? e, m =
|
|
3205
|
+
const p = J(a, e) ?? e, m = Me(f, o);
|
|
3167
3206
|
if (n === "heading" && /^h[1-6]$/.test(e)) {
|
|
3168
|
-
const
|
|
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;
|
|
3169
3208
|
return c.createElement(Ea, {
|
|
3170
3209
|
...m,
|
|
3171
3210
|
as: p,
|
|
3172
3211
|
level: Number(e.slice(1)),
|
|
3173
|
-
anchor: typeof
|
|
3212
|
+
anchor: typeof k == "string" ? k : void 0,
|
|
3174
3213
|
anchorLabel: typeof b == "string" ? b : void 0,
|
|
3175
|
-
copyFailureLabel: typeof
|
|
3214
|
+
copyFailureLabel: typeof M == "string" ? M : void 0,
|
|
3176
3215
|
className: $(m.className, t[n]),
|
|
3177
3216
|
"data-cf-element": l,
|
|
3178
3217
|
children: i
|
|
@@ -3192,7 +3231,7 @@ function w(e, n, t, a, o) {
|
|
|
3192
3231
|
}
|
|
3193
3232
|
function La(e, n) {
|
|
3194
3233
|
return function({ children: a, node: o, ...l }) {
|
|
3195
|
-
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;
|
|
3196
3235
|
if (i)
|
|
3197
3236
|
return c.createElement(i, {
|
|
3198
3237
|
size: Number(l.width ?? 16),
|
|
@@ -3203,9 +3242,9 @@ function La(e, n) {
|
|
|
3203
3242
|
return c.createElement(J(n, "svg") ?? "svg", p, a);
|
|
3204
3243
|
};
|
|
3205
3244
|
}
|
|
3206
|
-
function
|
|
3245
|
+
function Ma(e, n) {
|
|
3207
3246
|
return function({ children: a, node: o, ...l }) {
|
|
3208
|
-
const r = l["data-cf-slot"] === "caption" ?
|
|
3247
|
+
const r = l["data-cf-slot"] === "caption" ? Cn(e) : void 0;
|
|
3209
3248
|
return r ? c.createElement(r, {
|
|
3210
3249
|
children: a,
|
|
3211
3250
|
className: typeof l.className == "string" ? l.className : void 0,
|
|
@@ -3213,9 +3252,9 @@ function Na(e, n) {
|
|
|
3213
3252
|
}) : c.createElement(J(n, "figcaption") ?? "figcaption", l, a);
|
|
3214
3253
|
};
|
|
3215
3254
|
}
|
|
3216
|
-
function
|
|
3255
|
+
function Na(e, n, t) {
|
|
3217
3256
|
return function({ children: o, node: l, ...r }) {
|
|
3218
|
-
const i =
|
|
3257
|
+
const i = Ce(r), u = i ? se(n, i) : void 0;
|
|
3219
3258
|
if (i === "callout") {
|
|
3220
3259
|
const p = u ?? xe;
|
|
3221
3260
|
return c.createElement(p, {
|
|
@@ -3232,7 +3271,7 @@ function Ma(e, n, t) {
|
|
|
3232
3271
|
component: u,
|
|
3233
3272
|
children: o
|
|
3234
3273
|
});
|
|
3235
|
-
const f = i &&
|
|
3274
|
+
const f = i && Jn(i, { ...r, node: l }, o, e, n, t);
|
|
3236
3275
|
return f || c.createElement(
|
|
3237
3276
|
J(n, "div") ?? "div",
|
|
3238
3277
|
{
|
|
@@ -3245,10 +3284,10 @@ function Ma(e, n, t) {
|
|
|
3245
3284
|
}
|
|
3246
3285
|
function Se(e, n, t, a) {
|
|
3247
3286
|
return function({ children: l, node: r, ...i }) {
|
|
3248
|
-
const u =
|
|
3287
|
+
const u = Ce(i), f = u ? se(t, u) : void 0;
|
|
3249
3288
|
if (u === "callout") {
|
|
3250
|
-
const
|
|
3251
|
-
return c.createElement(
|
|
3289
|
+
const k = f ?? xe;
|
|
3290
|
+
return c.createElement(k, {
|
|
3252
3291
|
...i,
|
|
3253
3292
|
className: $(i.className, n.callout),
|
|
3254
3293
|
children: l
|
|
@@ -3262,7 +3301,7 @@ function Se(e, n, t, a) {
|
|
|
3262
3301
|
component: f,
|
|
3263
3302
|
children: l
|
|
3264
3303
|
});
|
|
3265
|
-
const p = u &&
|
|
3304
|
+
const p = u && Jn(u, { ...i, node: r }, l, n, t, a);
|
|
3266
3305
|
if (p) return p;
|
|
3267
3306
|
const m = e === "section" && (i["data-cf-element"] === "footnotes" || i.dataCfElement === "footnotes");
|
|
3268
3307
|
return c.createElement(
|
|
@@ -3277,18 +3316,18 @@ function Se(e, n, t, a) {
|
|
|
3277
3316
|
);
|
|
3278
3317
|
};
|
|
3279
3318
|
}
|
|
3280
|
-
function
|
|
3319
|
+
function Da(e, n, t) {
|
|
3281
3320
|
return function({ children: o, node: l, ...r }) {
|
|
3282
|
-
const i =
|
|
3321
|
+
const i = Ce(r);
|
|
3283
3322
|
if (i && ["code-block", "table", "image", "terminal"].includes(i)) {
|
|
3284
3323
|
const f = e[i === "code-block" ? "codeBlock" : i], p = se(n, i);
|
|
3285
3324
|
if (p) {
|
|
3286
|
-
const m =
|
|
3325
|
+
const m = Gn(
|
|
3287
3326
|
i,
|
|
3288
3327
|
{ ...r, className: $(r.className, f) },
|
|
3289
3328
|
o
|
|
3290
3329
|
);
|
|
3291
|
-
return c.createElement(p,
|
|
3330
|
+
return c.createElement(p, Yn(i, m, t));
|
|
3292
3331
|
}
|
|
3293
3332
|
return i === "code-block" ? c.createElement(_e, {
|
|
3294
3333
|
...r,
|
|
@@ -3323,9 +3362,9 @@ function Ta(e, n, t) {
|
|
|
3323
3362
|
);
|
|
3324
3363
|
};
|
|
3325
3364
|
}
|
|
3326
|
-
function
|
|
3365
|
+
function Ta(e, n) {
|
|
3327
3366
|
return function({ children: a, node: o, ...l }) {
|
|
3328
|
-
const r =
|
|
3367
|
+
const r = Ce(l);
|
|
3329
3368
|
if (r === "steps") {
|
|
3330
3369
|
const i = se(n, r) ?? Ke;
|
|
3331
3370
|
return c.createElement(i, {
|
|
@@ -3367,7 +3406,7 @@ function Aa(e = {}, n = {}, t = {}, a) {
|
|
|
3367
3406
|
p: w("p", "paragraph", e, t, a),
|
|
3368
3407
|
a: w("a", "link", e, t, a),
|
|
3369
3408
|
ul: w("ul", "list", e, t, a),
|
|
3370
|
-
ol:
|
|
3409
|
+
ol: Ta(e, t),
|
|
3371
3410
|
li: w("li", "listItem", e, t, a),
|
|
3372
3411
|
blockquote: w("blockquote", "blockquote", e, t),
|
|
3373
3412
|
hr: w("hr", "horizontalRule", e, t),
|
|
@@ -3379,7 +3418,7 @@ function Aa(e = {}, n = {}, t = {}, a) {
|
|
|
3379
3418
|
sup: w("sup", "superscript", e, t),
|
|
3380
3419
|
sub: w("sub", "subscript", e, t),
|
|
3381
3420
|
code: w("code", "inlineCode", e, t),
|
|
3382
|
-
div:
|
|
3421
|
+
div: Na(e, t, a),
|
|
3383
3422
|
aside: Se("aside", e, t, a),
|
|
3384
3423
|
section: Se("section", e, t, a),
|
|
3385
3424
|
span: Se("span", e, t, a),
|
|
@@ -3391,7 +3430,7 @@ function Aa(e = {}, n = {}, t = {}, a) {
|
|
|
3391
3430
|
th: w("th", "tableHeader", e, t),
|
|
3392
3431
|
td: w("td", "tableCell", e, t),
|
|
3393
3432
|
input: w("input", "taskCheckbox", e, t),
|
|
3394
|
-
figure:
|
|
3433
|
+
figure: Da(e, t, a),
|
|
3395
3434
|
img: w("img", "image", e, t, a),
|
|
3396
3435
|
video: w("video", "video", e, t, a),
|
|
3397
3436
|
audio: w("audio", "audio", e, t, a),
|
|
@@ -3400,14 +3439,14 @@ function Aa(e = {}, n = {}, t = {}, a) {
|
|
|
3400
3439
|
dt: w("dt", "definitionTerm", e, t),
|
|
3401
3440
|
dd: w("dd", "definitionDescription", e, t),
|
|
3402
3441
|
summary: w("summary", "summary", e, t),
|
|
3403
|
-
figcaption:
|
|
3442
|
+
figcaption: Ma(n, t),
|
|
3404
3443
|
svg: La(n, t),
|
|
3405
3444
|
details: Ra(e, t),
|
|
3406
3445
|
MarkdownCallout: xe,
|
|
3407
3446
|
MarkdownTabs: fe,
|
|
3408
3447
|
MarkdownSteps: Ke,
|
|
3409
3448
|
MarkdownCodeBlock: _e,
|
|
3410
|
-
MarkdownCopySnippet:
|
|
3449
|
+
MarkdownCopySnippet: ze,
|
|
3411
3450
|
MarkdownTable: $e,
|
|
3412
3451
|
MarkdownImage: Re,
|
|
3413
3452
|
MarkdownDetails: We,
|
|
@@ -3423,7 +3462,7 @@ function Aa(e = {}, n = {}, t = {}, a) {
|
|
|
3423
3462
|
CodeGroup: fe,
|
|
3424
3463
|
Steps: Ke,
|
|
3425
3464
|
CodeBlock: _e,
|
|
3426
|
-
CopySnippet:
|
|
3465
|
+
CopySnippet: ze,
|
|
3427
3466
|
Table: $e,
|
|
3428
3467
|
Image: Re,
|
|
3429
3468
|
Details: We,
|
|
@@ -3439,7 +3478,7 @@ function Aa(e = {}, n = {}, t = {}, a) {
|
|
|
3439
3478
|
function Pa(e) {
|
|
3440
3479
|
return !!(e && typeof e == "object" && typeof e.type == "string");
|
|
3441
3480
|
}
|
|
3442
|
-
function
|
|
3481
|
+
function Zn(e, n = {}, t = !0) {
|
|
3443
3482
|
return Bt(e, {
|
|
3444
3483
|
Fragment: s.Fragment,
|
|
3445
3484
|
jsx: s.jsx,
|
|
@@ -3448,19 +3487,19 @@ function Wn(e, n = {}, t = !0) {
|
|
|
3448
3487
|
passNode: !0
|
|
3449
3488
|
});
|
|
3450
3489
|
}
|
|
3451
|
-
function
|
|
3490
|
+
function za(e, n = {}) {
|
|
3452
3491
|
try {
|
|
3453
|
-
const t =
|
|
3454
|
-
return t ?
|
|
3492
|
+
const t = Rn(e);
|
|
3493
|
+
return t ? Zn(t, n) : void 0;
|
|
3455
3494
|
} catch {
|
|
3456
3495
|
return;
|
|
3457
3496
|
}
|
|
3458
3497
|
}
|
|
3459
|
-
function
|
|
3498
|
+
function Oa(e, n = {}, t = !0) {
|
|
3460
3499
|
try {
|
|
3461
|
-
const a =
|
|
3500
|
+
const a = Rn(e);
|
|
3462
3501
|
return !a || !("children" in a) || !Array.isArray(a.children) ? void 0 : a.children.filter(Pa).map((o, l) => {
|
|
3463
|
-
const r = o.type === "text" ? o.value :
|
|
3502
|
+
const r = o.type === "text" ? o.value : Zn(o, n, t);
|
|
3464
3503
|
return c.isValidElement(r) && r.key === null ? c.cloneElement(r, { key: `markdown-node-${l}` }) : r;
|
|
3465
3504
|
});
|
|
3466
3505
|
} catch {
|
|
@@ -3470,6 +3509,6 @@ function za(e, n = {}, t = !0) {
|
|
|
3470
3509
|
export {
|
|
3471
3510
|
Re as M,
|
|
3472
3511
|
$e as a,
|
|
3473
|
-
|
|
3474
|
-
|
|
3512
|
+
za as b,
|
|
3513
|
+
Oa as r
|
|
3475
3514
|
};
|