react-docs-ui 0.6.18 → 0.6.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DocsApp-CNVM_Zcf.js → DocsApp-CybQmyB8.js} +452 -365
- package/dist/{MdxContent-D2l4Au7Z.js → MdxContent-CH9GcMIg.js} +1 -1
- package/dist/{MdxContent.lazy-BirC7wrH.js → MdxContent.lazy-D7XJ-ZHl.js} +1 -1
- package/dist/{_basePickBy-3HEi44E5.js → _basePickBy-D8oNWNf8.js} +23 -23
- package/dist/{_baseUniq-CyOGXr0t.js → _baseUniq-DHuXxixa.js} +83 -83
- package/dist/{arc-DULIiw5L.js → arc-j69r3jDe.js} +3 -3
- package/dist/architecture-PBZL5I3N-DvHexcWL.js +3 -0
- package/dist/{architectureDiagram-2XIMDMQ5-CqinFxzU.js → architectureDiagram-2XIMDMQ5-DmhcSwl7.js} +9 -9
- package/dist/{blockDiagram-WCTKOSBZ-4JAhKeqm.js → blockDiagram-WCTKOSBZ-B6A-w3LB.js} +12 -12
- package/dist/{c4Diagram-IC4MRINW-DtmtzsQQ.js → c4Diagram-IC4MRINW-AmEpu2Zd.js} +6 -6
- package/dist/channel-CqxMgZ5t.js +5 -0
- package/dist/{chunk-4BX2VUAB-Bv5NGtUU.js → chunk-4BX2VUAB-D3p73nhw.js} +2 -2
- package/dist/{chunk-55IACEB6-BXL-F-QI.js → chunk-55IACEB6-CLgZJbYv.js} +2 -2
- package/dist/{chunk-7E7YKBS2-CuTUVGrY.js → chunk-7E7YKBS2-CKRA8Egz.js} +2 -2
- package/dist/{chunk-7R4GIKGN-Qkaxl46X.js → chunk-7R4GIKGN-C19ZEV_b.js} +2 -2
- package/dist/{chunk-C72U2L5F-42ScKBi2.js → chunk-C72U2L5F-B6IP-vol.js} +2 -2
- package/dist/{chunk-EGIJ26TM-D9jfybGA.js → chunk-EGIJ26TM-Cw4ft_Ra.js} +2 -2
- package/dist/{chunk-FMBD7UC4-DZXaweDk.js → chunk-FMBD7UC4-D-Ronn4l.js} +2 -2
- package/dist/{chunk-GEFDOKGD-OXBFFBXI.js → chunk-GEFDOKGD-8e2771NL.js} +30 -30
- package/dist/{chunk-GLR3WWYH-BNwKwdNm.js → chunk-GLR3WWYH-ShSppUzV.js} +8 -8
- package/dist/{chunk-HHEYEP7N-BQ3EJT5G.js → chunk-HHEYEP7N-CU-ZzGab.js} +3 -3
- package/dist/{chunk-JSJVCQXG-DNkHiMyV.js → chunk-JSJVCQXG-D49UMhzO.js} +4 -4
- package/dist/{chunk-KX2RTZJC-DuTfSwwu.js → chunk-KX2RTZJC-BDcxmH0D.js} +3 -3
- package/dist/{chunk-KYZI473N-COpLSX52.js → chunk-KYZI473N-B9L8Kk83.js} +8 -8
- package/dist/{chunk-L3YUKLVL-BdSnx12A.js → chunk-L3YUKLVL-CEVeJJT9.js} +2 -2
- package/dist/{chunk-MX3YWQON-CrwNXQjz.js → chunk-MX3YWQON-CVZUx3EI.js} +2 -2
- package/dist/{chunk-NQ4KR5QH-Y07nfCMJ.js → chunk-NQ4KR5QH-BWRGvKed.js} +7 -7
- package/dist/{chunk-O4XLMI2P-CuexQiBs.js → chunk-O4XLMI2P-BlC0d_Zr.js} +11 -11
- package/dist/{chunk-OZEHJAEY-D6vfkGpv.js → chunk-OZEHJAEY-BuORg3qI.js} +2 -2
- package/dist/{chunk-PQ6SQG4A-6cI0SCcc.js → chunk-PQ6SQG4A-BggLWIDB.js} +3 -3
- package/dist/{chunk-PU5JKC2W-an2DzREj.js → chunk-PU5JKC2W-CeOPBYeP.js} +16 -16
- package/dist/{chunk-QZHKN3VN-BKMQ36H3.js → chunk-QZHKN3VN-3LiJhn2O.js} +2 -2
- package/dist/{chunk-R5LLSJPH-DOyud7qN.js → chunk-R5LLSJPH-B8KdhC9h.js} +2 -2
- package/dist/{chunk-WL4C6EOR-y1gU9zpd.js → chunk-WL4C6EOR-DLbU3P3W.js} +9 -9
- package/dist/{chunk-XIRO2GV7-BD1Cp5pB.js → chunk-XIRO2GV7-Bv7JEVD4.js} +2 -2
- package/dist/{chunk-XPW4576I-DOBR2ORN.js → chunk-XPW4576I-Bu03pPNP.js} +2 -2
- package/dist/{chunk-XZSTWKYB-BQ9uqNJe.js → chunk-XZSTWKYB-CpQJcKKv.js} +93 -93
- package/dist/{chunk-YBOYWFTD-BT3l76Xm.js → chunk-YBOYWFTD-BAPGCoDq.js} +4 -4
- package/dist/classDiagram-VBA2DB6C-D4y64v83.js +29 -0
- package/dist/classDiagram-v2-RAHNMMFH-DXkt0Wd4.js +29 -0
- package/dist/clone-B2fVtDap.js +8 -0
- package/dist/{cose-bilkent-S5V4N54A-Bbd2d2j7.js → cose-bilkent-S5V4N54A-BX63fiTJ.js} +3 -3
- package/dist/{cytoscape.esm-CQKQOqRt.js → cytoscape.esm-D1tmL96B.js} +1 -1
- package/dist/{dagre-Cyr5_x2X.js → dagre-BM10A37c.js} +57 -57
- package/dist/{dagre-KLK3FWXG-Bjsq-TtB.js → dagre-KLK3FWXG-BkGeaeJf.js} +16 -16
- package/dist/{defaultLocale-P2nWjZJu.js → defaultLocale-CS9riXxY.js} +12 -12
- package/dist/{diagram-E7M64L7V-CCTuI46e.js → diagram-E7M64L7V-BCpOexcP.js} +32 -32
- package/dist/{diagram-IFDJBPK2-DI_KTvRx.js → diagram-IFDJBPK2-lSNeST-Z.js} +7 -7
- package/dist/{diagram-P4PSJMXO-D3SeWDdU.js → diagram-P4PSJMXO-Dd8HMHpS.js} +7 -7
- package/dist/{dist-CSS39H68.js → dist-DeXxBykG.js} +1 -1
- package/dist/docs-app.es.js +1 -1
- package/dist/{erDiagram-INFDFZHY-Db_DAoTf.js → erDiagram-INFDFZHY-DjNq2UqZ.js} +14 -14
- package/dist/{flowDiagram-PKNHOUZH-TqyNp9Dn.js → flowDiagram-PKNHOUZH-AUeVhXRc.js} +17 -17
- package/dist/{ganttDiagram-A5KZAMGK-DqNVbtHo.js → ganttDiagram-A5KZAMGK-DZIM1zx8.js} +27 -27
- package/dist/gitGraph-HDMCJU4V-BiirFMfI.js +3 -0
- package/dist/{gitGraphDiagram-K3NZZRJ6-Cga9Wfgb.js → gitGraphDiagram-K3NZZRJ6-CpR0vINe.js} +7 -7
- package/dist/{graphlib-CexrUFs9.js → graphlib-DOjl69i0.js} +4 -4
- package/dist/info-3K5VOQVL-CfGgZztt.js +3 -0
- package/dist/{infoDiagram-LFFYTUFH-bvABxJph.js → infoDiagram-LFFYTUFH-DAJ9foHI.js} +5 -5
- package/dist/{init-GWRygwCo.js → init-B4NvJPDj.js} +1 -1
- package/dist/{isArrayLikeObject-CG2kGrxR.js → isArrayLikeObject-DLIYDRni.js} +80 -80
- package/dist/{isEmpty-C8iIdTg-.js → isEmpty-DhbfzuZy.js} +3 -3
- package/dist/{ishikawaDiagram-PHBUUO56-DKGPu-hu.js → ishikawaDiagram-PHBUUO56-B7xss2de.js} +6 -6
- package/dist/{journeyDiagram-4ABVD52K-DefcNau0.js → journeyDiagram-4ABVD52K-BbX80Gcw.js} +6 -6
- package/dist/{kanban-definition-K7BYSVSG-BXvFQzdZ.js → kanban-definition-K7BYSVSG-BQ87hifQ.js} +11 -11
- package/dist/{line-ChPoSgrf.js → line-DfLnhEwA.js} +4 -4
- package/dist/{linear-BeQrMQNe.js → linear-CWB56ned.js} +23 -23
- package/dist/{math-CgS6d5p2.js → math-DHDNczAo.js} +1 -1
- package/dist/{mdx-components-Bz45lgrV.js → mdx-components-m1cGPhc8.js} +51 -51
- package/dist/{mermaid-parser.core-CDTyVXPe.js → mermaid-parser.core-l4wHnGuN.js} +16 -16
- package/dist/{mermaid.core-CHJrGTZ9.js → mermaid.core-CtkJeRVj.js} +47 -47
- package/dist/{mindmap-definition-YRQLILUH-CqsMcFhX.js → mindmap-definition-YRQLILUH-Cnl-qPDR.js} +16 -16
- package/dist/{ordinal-DUEC8Lr4.js → ordinal-CD64W6lf.js} +3 -3
- package/dist/packet-RMMSAZCW-DfA9M99B.js +3 -0
- package/dist/{path-CzRXOvk1.js → path-BjiRrKY7.js} +3 -3
- package/dist/pie-UPGHQEXC-Bujrkgkt.js +3 -0
- package/dist/{pieDiagram-SKSYHLDU-C8Y5Bc8d.js → pieDiagram-SKSYHLDU-xow4mVuZ.js} +14 -14
- package/dist/{quadrantDiagram-337W2JSQ-DRWBX5cn.js → quadrantDiagram-337W2JSQ-CV2tMWXO.js} +4 -4
- package/dist/radar-KQ55EAFF-DEzDT04F.js +3 -0
- package/dist/react-docs-ui.es.js +3 -3
- package/dist/{requirementDiagram-Z7DCOOCP-EkyUnFq8.js → requirementDiagram-Z7DCOOCP-Bx6NAgqy.js} +13 -13
- package/dist/{rough.esm-qTNNhHn7.js → rough.esm-BOvWpVpy.js} +1 -1
- package/dist/{sankeyDiagram-WA2Y5GQK-Cmas7IuZ.js → sankeyDiagram-WA2Y5GQK-CvTU-CXN.js} +18 -18
- package/dist/{sequenceDiagram-2WXFIKYE-B7TrFw3o.js → sequenceDiagram-2WXFIKYE-1wYHvZEI.js} +8 -8
- package/dist/{src-B8kKzJ6p.js → src-DI0MZP4m.js} +86 -86
- package/dist/{stateDiagram-RAJIS63D-DyqZyFdt.js → stateDiagram-RAJIS63D-DFmbSHPX.js} +17 -17
- package/dist/stateDiagram-v2-FVOUBMTO-TjYtTjLB.js +27 -0
- package/dist/{timeline-definition-YZTLITO2-qhoXPOhL.js → timeline-definition-YZTLITO2-BAK411Yg.js} +4 -4
- package/dist/treemap-KZPCXAKY-DThdSsPR.js +3 -0
- package/dist/types/components/DocsLayout.d.ts +2 -0
- package/dist/types/components/DocsLayout.d.ts.map +1 -1
- package/dist/types/lib/config.d.ts +10 -0
- package/dist/types/lib/config.d.ts.map +1 -1
- package/dist/{vennDiagram-LZ73GAT5-DlUUn7LI.js → vennDiagram-LZ73GAT5-B7dft0U9.js} +7 -7
- package/dist/{xychartDiagram-JWTSCODW-oT2IR7c0.js → xychartDiagram-JWTSCODW-CXtfEnJM.js} +12 -12
- package/package.json +3 -2
- package/dist/architecture-PBZL5I3N-DT4oHaWT.js +0 -3
- package/dist/channel-BPONoOHQ.js +0 -5
- package/dist/classDiagram-VBA2DB6C-AUxID939.js +0 -29
- package/dist/classDiagram-v2-RAHNMMFH-tupy2OPi.js +0 -29
- package/dist/clone-CRTZj7kp.js +0 -8
- package/dist/gitGraph-HDMCJU4V-DQudxfzL.js +0 -3
- package/dist/info-3K5VOQVL-DiuN3kw6.js +0 -3
- package/dist/packet-RMMSAZCW-ZLaHU0Ov.js +0 -3
- package/dist/pie-UPGHQEXC-COgIbE0j.js +0 -3
- package/dist/radar-KQ55EAFF-ABFVVcns.js +0 -3
- package/dist/stateDiagram-v2-FVOUBMTO-5UjWXgt6.js +0 -27
- package/dist/treemap-KZPCXAKY-CRdRsoRo.js +0 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, r as t, s as n, t as r } from "./chunk-NBPlniwU.js";
|
|
2
2
|
import { n as i, t as a } from "./theme-provider-fNhx9xK0.js";
|
|
3
3
|
import { t as o } from "./utils-Ct96Mtjw.js";
|
|
4
|
-
import { C as s, S as c, _ as l, a as u, b as d, f, g as p, h as m, i as h, m as g, n as _, o as v, r as y, t as b, u as x, v as S, x as C, y as w } from "./mdx-components-
|
|
4
|
+
import { C as s, S as c, _ as l, a as u, b as d, f, g as p, h as m, i as h, m as g, n as _, o as v, r as y, t as b, u as x, v as S, x as C, y as w } from "./mdx-components-m1cGPhc8.js";
|
|
5
5
|
import { n as T } from "./use-toast-DK69oadB.js";
|
|
6
6
|
import { a as E, i as D, o as O, r as k, s as A, t as j } from "./dialog-D8otbqQL.js";
|
|
7
7
|
import { t as M } from "./AIProvider-niZNPSGi.js";
|
|
@@ -1292,7 +1292,7 @@ function un({ footer: e, lang: t }) {
|
|
|
1292
1292
|
});
|
|
1293
1293
|
}
|
|
1294
1294
|
//#endregion
|
|
1295
|
-
//#region node_modules
|
|
1295
|
+
//#region node_modules/file-saver/dist/FileSaver.min.js
|
|
1296
1296
|
var dn = /* @__PURE__ */ r(((e, t) => {
|
|
1297
1297
|
(function(t, n) {
|
|
1298
1298
|
typeof define == "function" && define.amd ? define([], n) : e === void 0 ? (n(), t.FileSaver = { exports: {} }.exports) : n();
|
|
@@ -4388,7 +4388,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
4388
4388
|
});
|
|
4389
4389
|
}));
|
|
4390
4390
|
//#endregion
|
|
4391
|
-
//#region node_modules
|
|
4391
|
+
//#region node_modules/turndown/lib/turndown.browser.es.js
|
|
4392
4392
|
function pn(e) {
|
|
4393
4393
|
for (var t = 1; t < arguments.length; t++) {
|
|
4394
4394
|
var n = arguments[t];
|
|
@@ -4849,7 +4849,7 @@ function rr(e) {
|
|
|
4849
4849
|
return e != null && (typeof e == "string" || e.nodeType && (e.nodeType === 1 || e.nodeType === 9 || e.nodeType === 11));
|
|
4850
4850
|
}
|
|
4851
4851
|
//#endregion
|
|
4852
|
-
//#region node_modules
|
|
4852
|
+
//#region node_modules/docx/dist/index.mjs
|
|
4853
4853
|
var ir = Object.defineProperty, ar = Object.defineProperties, or = Object.getOwnPropertyDescriptors, sr = Object.getOwnPropertySymbols, cr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, ur = (e, t, n) => t in e ? ir(e, t, {
|
|
4854
4854
|
enumerable: !0,
|
|
4855
4855
|
configurable: !0,
|
|
@@ -18120,12 +18120,12 @@ K(ug, "compiler", new sg());
|
|
|
18120
18120
|
var dg = ug;
|
|
18121
18121
|
new ig(), new ig(), new ag(), new Uint8Array([255, 254]), new Uint8Array([254, 255]);
|
|
18122
18122
|
//#endregion
|
|
18123
|
-
//#region node_modules
|
|
18123
|
+
//#region node_modules/bail/index.js
|
|
18124
18124
|
function fg(e) {
|
|
18125
18125
|
if (e) throw e;
|
|
18126
18126
|
}
|
|
18127
18127
|
//#endregion
|
|
18128
|
-
//#region node_modules
|
|
18128
|
+
//#region node_modules/extend/index.js
|
|
18129
18129
|
var pg = /* @__PURE__ */ r(((e, t) => {
|
|
18130
18130
|
var n = Object.prototype.hasOwnProperty, r = Object.prototype.toString, i = Object.defineProperty, a = Object.getOwnPropertyDescriptor, o = function(e) {
|
|
18131
18131
|
return typeof Array.isArray == "function" ? Array.isArray(e) : r.call(e) === "[object Array]";
|
|
@@ -18162,14 +18162,14 @@ var pg = /* @__PURE__ */ r(((e, t) => {
|
|
|
18162
18162
|
};
|
|
18163
18163
|
}));
|
|
18164
18164
|
//#endregion
|
|
18165
|
-
//#region node_modules
|
|
18165
|
+
//#region node_modules/is-plain-obj/index.js
|
|
18166
18166
|
function mg(e) {
|
|
18167
18167
|
if (typeof e != "object" || !e) return !1;
|
|
18168
18168
|
let t = Object.getPrototypeOf(e);
|
|
18169
18169
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
18170
18170
|
}
|
|
18171
18171
|
//#endregion
|
|
18172
|
-
//#region node_modules
|
|
18172
|
+
//#region node_modules/trough/lib/index.js
|
|
18173
18173
|
function hg() {
|
|
18174
18174
|
let e = [], t = {
|
|
18175
18175
|
run: n,
|
|
@@ -18218,7 +18218,7 @@ function gg(e, t) {
|
|
|
18218
18218
|
}
|
|
18219
18219
|
}
|
|
18220
18220
|
//#endregion
|
|
18221
|
-
//#region node_modules
|
|
18221
|
+
//#region node_modules/unist-util-stringify-position/lib/index.js
|
|
18222
18222
|
function _g(e) {
|
|
18223
18223
|
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? yg(e.position) : "start" in e || "end" in e ? yg(e) : "line" in e || "column" in e ? vg(e) : "";
|
|
18224
18224
|
}
|
|
@@ -18232,7 +18232,7 @@ function bg(e) {
|
|
|
18232
18232
|
return e && typeof e == "number" ? e : 1;
|
|
18233
18233
|
}
|
|
18234
18234
|
//#endregion
|
|
18235
|
-
//#region node_modules
|
|
18235
|
+
//#region node_modules/vfile-message/lib/index.js
|
|
18236
18236
|
var xg = class extends Error {
|
|
18237
18237
|
constructor(e, t, n) {
|
|
18238
18238
|
super(), typeof t == "string" && (n = t, t = void 0);
|
|
@@ -18254,7 +18254,7 @@ var xg = class extends Error {
|
|
|
18254
18254
|
};
|
|
18255
18255
|
xg.prototype.file = "", xg.prototype.name = "", xg.prototype.reason = "", xg.prototype.message = "", xg.prototype.stack = "", xg.prototype.column = void 0, xg.prototype.line = void 0, xg.prototype.ancestors = void 0, xg.prototype.cause = void 0, xg.prototype.fatal = void 0, xg.prototype.place = void 0, xg.prototype.ruleId = void 0, xg.prototype.source = void 0;
|
|
18256
18256
|
//#endregion
|
|
18257
|
-
//#region node_modules
|
|
18257
|
+
//#region node_modules/vfile/lib/minpath.browser.js
|
|
18258
18258
|
var Sg = {
|
|
18259
18259
|
basename: Cg,
|
|
18260
18260
|
dirname: wg,
|
|
@@ -18352,18 +18352,18 @@ function kg(e) {
|
|
|
18352
18352
|
if (typeof e != "string") throw TypeError("Path must be a string. Received " + JSON.stringify(e));
|
|
18353
18353
|
}
|
|
18354
18354
|
//#endregion
|
|
18355
|
-
//#region node_modules
|
|
18355
|
+
//#region node_modules/vfile/lib/minproc.browser.js
|
|
18356
18356
|
var Ag = { cwd: jg };
|
|
18357
18357
|
function jg() {
|
|
18358
18358
|
return "/";
|
|
18359
18359
|
}
|
|
18360
18360
|
//#endregion
|
|
18361
|
-
//#region node_modules
|
|
18361
|
+
//#region node_modules/vfile/lib/minurl.shared.js
|
|
18362
18362
|
function Mg(e) {
|
|
18363
18363
|
return !!(typeof e == "object" && e && "href" in e && e.href && "protocol" in e && e.protocol && e.auth === void 0);
|
|
18364
18364
|
}
|
|
18365
18365
|
//#endregion
|
|
18366
|
-
//#region node_modules
|
|
18366
|
+
//#region node_modules/vfile/lib/minurl.browser.js
|
|
18367
18367
|
function Ng(e) {
|
|
18368
18368
|
if (typeof e == "string") e = new URL(e);
|
|
18369
18369
|
else if (!Mg(e)) {
|
|
@@ -18392,7 +18392,7 @@ function Pg(e) {
|
|
|
18392
18392
|
return decodeURIComponent(t);
|
|
18393
18393
|
}
|
|
18394
18394
|
//#endregion
|
|
18395
|
-
//#region node_modules
|
|
18395
|
+
//#region node_modules/vfile/lib/index.js
|
|
18396
18396
|
var Fg = [
|
|
18397
18397
|
"history",
|
|
18398
18398
|
"path",
|
|
@@ -18475,7 +18475,7 @@ function Bg(e) {
|
|
|
18475
18475
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
18476
18476
|
}
|
|
18477
18477
|
//#endregion
|
|
18478
|
-
//#region node_modules
|
|
18478
|
+
//#region node_modules/unified/lib/callable-instance.js
|
|
18479
18479
|
var Vg = (function(e) {
|
|
18480
18480
|
let t = this.constructor.prototype, n = t[e], r = function() {
|
|
18481
18481
|
return n.apply(r, arguments);
|
|
@@ -18632,7 +18632,7 @@ function $g(e) {
|
|
|
18632
18632
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
18633
18633
|
}
|
|
18634
18634
|
//#endregion
|
|
18635
|
-
//#region node_modules
|
|
18635
|
+
//#region node_modules/mdast-util-to-string/lib/index.js
|
|
18636
18636
|
var e_ = {};
|
|
18637
18637
|
function t_(e, t) {
|
|
18638
18638
|
let n = t || e_;
|
|
@@ -18655,7 +18655,7 @@ function i_(e) {
|
|
|
18655
18655
|
return !!(e && typeof e == "object");
|
|
18656
18656
|
}
|
|
18657
18657
|
//#endregion
|
|
18658
|
-
//#region node_modules
|
|
18658
|
+
//#region node_modules/decode-named-character-reference/index.dom.js
|
|
18659
18659
|
var a_ = document.createElement("i");
|
|
18660
18660
|
function o_(e) {
|
|
18661
18661
|
let t = "&" + e + ";";
|
|
@@ -18664,7 +18664,7 @@ function o_(e) {
|
|
|
18664
18664
|
return n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n;
|
|
18665
18665
|
}
|
|
18666
18666
|
//#endregion
|
|
18667
|
-
//#region node_modules
|
|
18667
|
+
//#region node_modules/micromark-util-chunked/index.js
|
|
18668
18668
|
function s_(e, t, n, r) {
|
|
18669
18669
|
let i = e.length, a = 0, o;
|
|
18670
18670
|
if (t = t < 0 ? -t > i ? 0 : i + t : t > i ? i : t, n = n > 0 ? n : 0, r.length < 1e4) o = Array.from(r), o.unshift(t, n), e.splice(...o);
|
|
@@ -18674,7 +18674,7 @@ function c_(e, t) {
|
|
|
18674
18674
|
return e.length > 0 ? (s_(e, e.length, 0, t), e) : t;
|
|
18675
18675
|
}
|
|
18676
18676
|
//#endregion
|
|
18677
|
-
//#region node_modules
|
|
18677
|
+
//#region node_modules/micromark-util-combine-extensions/index.js
|
|
18678
18678
|
var l_ = {}.hasOwnProperty;
|
|
18679
18679
|
function u_(e) {
|
|
18680
18680
|
let t = {}, n = -1;
|
|
@@ -18698,18 +18698,18 @@ function f_(e, t) {
|
|
|
18698
18698
|
s_(e, 0, 0, r);
|
|
18699
18699
|
}
|
|
18700
18700
|
//#endregion
|
|
18701
|
-
//#region node_modules
|
|
18701
|
+
//#region node_modules/micromark-util-decode-numeric-character-reference/index.js
|
|
18702
18702
|
function p_(e, t) {
|
|
18703
18703
|
let n = Number.parseInt(e, t);
|
|
18704
18704
|
return n < 9 || n === 11 || n > 13 && n < 32 || n > 126 && n < 160 || n > 55295 && n < 57344 || n > 64975 && n < 65008 || (n & 65535) == 65535 || (n & 65535) == 65534 || n > 1114111 ? "�" : String.fromCodePoint(n);
|
|
18705
18705
|
}
|
|
18706
18706
|
//#endregion
|
|
18707
|
-
//#region node_modules
|
|
18707
|
+
//#region node_modules/micromark-util-normalize-identifier/index.js
|
|
18708
18708
|
function m_(e) {
|
|
18709
18709
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
18710
18710
|
}
|
|
18711
18711
|
//#endregion
|
|
18712
|
-
//#region node_modules
|
|
18712
|
+
//#region node_modules/micromark-util-character/index.js
|
|
18713
18713
|
var h_ = E_(/[A-Za-z]/), g_ = E_(/[\dA-Za-z]/), __ = E_(/[#-'*+\--9=?A-Z^-~]/);
|
|
18714
18714
|
function v_(e) {
|
|
18715
18715
|
return e !== null && (e < 32 || e === 127);
|
|
@@ -18732,7 +18732,7 @@ function E_(e) {
|
|
|
18732
18732
|
}
|
|
18733
18733
|
}
|
|
18734
18734
|
//#endregion
|
|
18735
|
-
//#region node_modules
|
|
18735
|
+
//#region node_modules/micromark-factory-space/index.js
|
|
18736
18736
|
function D_(e, t, n, r) {
|
|
18737
18737
|
let i = r ? r - 1 : Infinity, a = 0;
|
|
18738
18738
|
return o;
|
|
@@ -18744,7 +18744,7 @@ function D_(e, t, n, r) {
|
|
|
18744
18744
|
}
|
|
18745
18745
|
}
|
|
18746
18746
|
//#endregion
|
|
18747
|
-
//#region node_modules
|
|
18747
|
+
//#region node_modules/micromark/lib/initialize/content.js
|
|
18748
18748
|
var O_ = { tokenize: k_ };
|
|
18749
18749
|
function k_(e) {
|
|
18750
18750
|
let t = e.attempt(this.parser.constructs.contentInitial, r, i), n;
|
|
@@ -18775,7 +18775,7 @@ function k_(e) {
|
|
|
18775
18775
|
}
|
|
18776
18776
|
}
|
|
18777
18777
|
//#endregion
|
|
18778
|
-
//#region node_modules
|
|
18778
|
+
//#region node_modules/micromark/lib/initialize/document.js
|
|
18779
18779
|
var A_ = { tokenize: M_ }, j_ = { tokenize: N_ };
|
|
18780
18780
|
function M_(e) {
|
|
18781
18781
|
let t = this, n = [], r = 0, i, a, o;
|
|
@@ -18873,13 +18873,13 @@ function N_(e, t, n) {
|
|
|
18873
18873
|
return D_(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
18874
18874
|
}
|
|
18875
18875
|
//#endregion
|
|
18876
|
-
//#region node_modules
|
|
18876
|
+
//#region node_modules/micromark-util-classify-character/index.js
|
|
18877
18877
|
function P_(e) {
|
|
18878
18878
|
if (e === null || S_(e) || T_(e)) return 1;
|
|
18879
18879
|
if (w_(e)) return 2;
|
|
18880
18880
|
}
|
|
18881
18881
|
//#endregion
|
|
18882
|
-
//#region node_modules
|
|
18882
|
+
//#region node_modules/micromark-util-resolve-all/index.js
|
|
18883
18883
|
function F_(e, t, n) {
|
|
18884
18884
|
let r = [], i = -1;
|
|
18885
18885
|
for (; ++i < e.length;) {
|
|
@@ -18889,7 +18889,7 @@ function F_(e, t, n) {
|
|
|
18889
18889
|
return t;
|
|
18890
18890
|
}
|
|
18891
18891
|
//#endregion
|
|
18892
|
-
//#region node_modules
|
|
18892
|
+
//#region node_modules/micromark-core-commonmark/lib/attention.js
|
|
18893
18893
|
var I_ = {
|
|
18894
18894
|
name: "attention",
|
|
18895
18895
|
resolveAll: L_,
|
|
@@ -18999,7 +18999,7 @@ function z_(e, t) {
|
|
|
18999
18999
|
e.column += t, e.offset += t, e._bufferIndex += t;
|
|
19000
19000
|
}
|
|
19001
19001
|
//#endregion
|
|
19002
|
-
//#region node_modules
|
|
19002
|
+
//#region node_modules/micromark-core-commonmark/lib/autolink.js
|
|
19003
19003
|
var B_ = {
|
|
19004
19004
|
name: "autolink",
|
|
19005
19005
|
tokenize: V_
|
|
@@ -19040,7 +19040,7 @@ function V_(e, t, n) {
|
|
|
19040
19040
|
}
|
|
19041
19041
|
}
|
|
19042
19042
|
//#endregion
|
|
19043
|
-
//#region node_modules
|
|
19043
|
+
//#region node_modules/micromark-core-commonmark/lib/blank-line.js
|
|
19044
19044
|
var H_ = {
|
|
19045
19045
|
partial: !0,
|
|
19046
19046
|
tokenize: U_
|
|
@@ -19055,7 +19055,7 @@ function U_(e, t, n) {
|
|
|
19055
19055
|
}
|
|
19056
19056
|
}
|
|
19057
19057
|
//#endregion
|
|
19058
|
-
//#region node_modules
|
|
19058
|
+
//#region node_modules/micromark-core-commonmark/lib/block-quote.js
|
|
19059
19059
|
var W_ = {
|
|
19060
19060
|
continuation: { tokenize: K_ },
|
|
19061
19061
|
exit: q_,
|
|
@@ -19090,7 +19090,7 @@ function q_(e) {
|
|
|
19090
19090
|
e.exit("blockQuote");
|
|
19091
19091
|
}
|
|
19092
19092
|
//#endregion
|
|
19093
|
-
//#region node_modules
|
|
19093
|
+
//#region node_modules/micromark-core-commonmark/lib/character-escape.js
|
|
19094
19094
|
var J_ = {
|
|
19095
19095
|
name: "characterEscape",
|
|
19096
19096
|
tokenize: Y_
|
|
@@ -19105,7 +19105,7 @@ function Y_(e, t, n) {
|
|
|
19105
19105
|
}
|
|
19106
19106
|
}
|
|
19107
19107
|
//#endregion
|
|
19108
|
-
//#region node_modules
|
|
19108
|
+
//#region node_modules/micromark-core-commonmark/lib/character-reference.js
|
|
19109
19109
|
var X_ = {
|
|
19110
19110
|
name: "characterReference",
|
|
19111
19111
|
tokenize: Z_
|
|
@@ -19131,7 +19131,7 @@ function Z_(e, t, n) {
|
|
|
19131
19131
|
}
|
|
19132
19132
|
}
|
|
19133
19133
|
//#endregion
|
|
19134
|
-
//#region node_modules
|
|
19134
|
+
//#region node_modules/micromark-core-commonmark/lib/code-fenced.js
|
|
19135
19135
|
var Q_ = {
|
|
19136
19136
|
partial: !0,
|
|
19137
19137
|
tokenize: tv
|
|
@@ -19217,7 +19217,7 @@ function tv(e, t, n) {
|
|
|
19217
19217
|
}
|
|
19218
19218
|
}
|
|
19219
19219
|
//#endregion
|
|
19220
|
-
//#region node_modules
|
|
19220
|
+
//#region node_modules/micromark-core-commonmark/lib/code-indented.js
|
|
19221
19221
|
var nv = {
|
|
19222
19222
|
name: "codeIndented",
|
|
19223
19223
|
tokenize: iv
|
|
@@ -19257,7 +19257,7 @@ function av(e, t, n) {
|
|
|
19257
19257
|
}
|
|
19258
19258
|
}
|
|
19259
19259
|
//#endregion
|
|
19260
|
-
//#region node_modules
|
|
19260
|
+
//#region node_modules/micromark-core-commonmark/lib/code-text.js
|
|
19261
19261
|
var ov = {
|
|
19262
19262
|
name: "codeText",
|
|
19263
19263
|
previous: cv,
|
|
@@ -19298,7 +19298,7 @@ function lv(e, t, n) {
|
|
|
19298
19298
|
}
|
|
19299
19299
|
}
|
|
19300
19300
|
//#endregion
|
|
19301
|
-
//#region node_modules
|
|
19301
|
+
//#region node_modules/micromark-util-subtokenize/lib/splice-buffer.js
|
|
19302
19302
|
var uv = class {
|
|
19303
19303
|
constructor(e) {
|
|
19304
19304
|
this.left = e ? [...e] : [], this.right = [];
|
|
@@ -19354,7 +19354,7 @@ function dv(e, t) {
|
|
|
19354
19354
|
else for (; n < t.length;) e.push(...t.slice(n, n + 1e4)), n += 1e4;
|
|
19355
19355
|
}
|
|
19356
19356
|
//#endregion
|
|
19357
|
-
//#region node_modules
|
|
19357
|
+
//#region node_modules/micromark-util-subtokenize/index.js
|
|
19358
19358
|
function fv(e) {
|
|
19359
19359
|
let t = {}, n = -1, r, i, a, o, s, c, l, u = new uv(e);
|
|
19360
19360
|
for (; ++n < u.length;) {
|
|
@@ -19386,7 +19386,7 @@ function pv(e, t) {
|
|
|
19386
19386
|
return l;
|
|
19387
19387
|
}
|
|
19388
19388
|
//#endregion
|
|
19389
|
-
//#region node_modules
|
|
19389
|
+
//#region node_modules/micromark-core-commonmark/lib/content.js
|
|
19390
19390
|
var mv = {
|
|
19391
19391
|
resolve: gv,
|
|
19392
19392
|
tokenize: _v
|
|
@@ -19429,7 +19429,7 @@ function vv(e, t, n) {
|
|
|
19429
19429
|
}
|
|
19430
19430
|
}
|
|
19431
19431
|
//#endregion
|
|
19432
|
-
//#region node_modules
|
|
19432
|
+
//#region node_modules/micromark-factory-destination/index.js
|
|
19433
19433
|
function yv(e, t, n, r, i, a, o, s, c) {
|
|
19434
19434
|
let l = c || Infinity, u = 0;
|
|
19435
19435
|
return d;
|
|
@@ -19453,7 +19453,7 @@ function yv(e, t, n, r, i, a, o, s, c) {
|
|
|
19453
19453
|
}
|
|
19454
19454
|
}
|
|
19455
19455
|
//#endregion
|
|
19456
|
-
//#region node_modules
|
|
19456
|
+
//#region node_modules/micromark-factory-label/index.js
|
|
19457
19457
|
function bv(e, t, n, r, i, a) {
|
|
19458
19458
|
let o = this, s = 0, c;
|
|
19459
19459
|
return l;
|
|
@@ -19471,7 +19471,7 @@ function bv(e, t, n, r, i, a) {
|
|
|
19471
19471
|
}
|
|
19472
19472
|
}
|
|
19473
19473
|
//#endregion
|
|
19474
|
-
//#region node_modules
|
|
19474
|
+
//#region node_modules/micromark-factory-title/index.js
|
|
19475
19475
|
function xv(e, t, n, r, i, a) {
|
|
19476
19476
|
let o;
|
|
19477
19477
|
return s;
|
|
@@ -19492,7 +19492,7 @@ function xv(e, t, n, r, i, a) {
|
|
|
19492
19492
|
}
|
|
19493
19493
|
}
|
|
19494
19494
|
//#endregion
|
|
19495
|
-
//#region node_modules
|
|
19495
|
+
//#region node_modules/micromark-factory-whitespace/index.js
|
|
19496
19496
|
function Sv(e, t) {
|
|
19497
19497
|
let n;
|
|
19498
19498
|
return r;
|
|
@@ -19501,7 +19501,7 @@ function Sv(e, t) {
|
|
|
19501
19501
|
}
|
|
19502
19502
|
}
|
|
19503
19503
|
//#endregion
|
|
19504
|
-
//#region node_modules
|
|
19504
|
+
//#region node_modules/micromark-core-commonmark/lib/definition.js
|
|
19505
19505
|
var Cv = {
|
|
19506
19506
|
name: "definition",
|
|
19507
19507
|
tokenize: Tv
|
|
@@ -19553,7 +19553,7 @@ function Ev(e, t, n) {
|
|
|
19553
19553
|
}
|
|
19554
19554
|
}
|
|
19555
19555
|
//#endregion
|
|
19556
|
-
//#region node_modules
|
|
19556
|
+
//#region node_modules/micromark-core-commonmark/lib/hard-break-escape.js
|
|
19557
19557
|
var Dv = {
|
|
19558
19558
|
name: "hardBreakEscape",
|
|
19559
19559
|
tokenize: Ov
|
|
@@ -19568,7 +19568,7 @@ function Ov(e, t, n) {
|
|
|
19568
19568
|
}
|
|
19569
19569
|
}
|
|
19570
19570
|
//#endregion
|
|
19571
|
-
//#region node_modules
|
|
19571
|
+
//#region node_modules/micromark-core-commonmark/lib/heading-atx.js
|
|
19572
19572
|
var kv = {
|
|
19573
19573
|
name: "headingAtx",
|
|
19574
19574
|
resolve: Av,
|
|
@@ -19631,7 +19631,7 @@ function jv(e, t, n) {
|
|
|
19631
19631
|
}
|
|
19632
19632
|
}
|
|
19633
19633
|
//#endregion
|
|
19634
|
-
//#region node_modules
|
|
19634
|
+
//#region node_modules/micromark-util-html-tag-name/index.js
|
|
19635
19635
|
var Mv = /* @__PURE__ */ "address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul".split("."), Nv = [
|
|
19636
19636
|
"pre",
|
|
19637
19637
|
"script",
|
|
@@ -19773,7 +19773,7 @@ function Bv(e, t, n) {
|
|
|
19773
19773
|
}
|
|
19774
19774
|
}
|
|
19775
19775
|
//#endregion
|
|
19776
|
-
//#region node_modules
|
|
19776
|
+
//#region node_modules/micromark-core-commonmark/lib/html-text.js
|
|
19777
19777
|
var Vv = {
|
|
19778
19778
|
name: "htmlText",
|
|
19779
19779
|
tokenize: Hv
|
|
@@ -19870,7 +19870,7 @@ function Hv(e, t, n) {
|
|
|
19870
19870
|
}
|
|
19871
19871
|
}
|
|
19872
19872
|
//#endregion
|
|
19873
|
-
//#region node_modules
|
|
19873
|
+
//#region node_modules/micromark-core-commonmark/lib/label-end.js
|
|
19874
19874
|
var Uv = {
|
|
19875
19875
|
name: "labelEnd",
|
|
19876
19876
|
resolveAll: qv,
|
|
@@ -20019,7 +20019,7 @@ function Qv(e, t, n) {
|
|
|
20019
20019
|
}
|
|
20020
20020
|
}
|
|
20021
20021
|
//#endregion
|
|
20022
|
-
//#region node_modules
|
|
20022
|
+
//#region node_modules/micromark-core-commonmark/lib/label-start-image.js
|
|
20023
20023
|
var $v = {
|
|
20024
20024
|
name: "labelStartImage",
|
|
20025
20025
|
resolveAll: Uv.resolveAll,
|
|
@@ -20040,7 +20040,7 @@ function ey(e, t, n) {
|
|
|
20040
20040
|
}
|
|
20041
20041
|
}
|
|
20042
20042
|
//#endregion
|
|
20043
|
-
//#region node_modules
|
|
20043
|
+
//#region node_modules/micromark-core-commonmark/lib/label-start-link.js
|
|
20044
20044
|
var ty = {
|
|
20045
20045
|
name: "labelStartLink",
|
|
20046
20046
|
resolveAll: Uv.resolveAll,
|
|
@@ -20058,7 +20058,7 @@ function ny(e, t, n) {
|
|
|
20058
20058
|
}
|
|
20059
20059
|
}
|
|
20060
20060
|
//#endregion
|
|
20061
|
-
//#region node_modules
|
|
20061
|
+
//#region node_modules/micromark-core-commonmark/lib/line-ending.js
|
|
20062
20062
|
var ry = {
|
|
20063
20063
|
name: "lineEnding",
|
|
20064
20064
|
tokenize: iy
|
|
@@ -20070,7 +20070,7 @@ function iy(e, t) {
|
|
|
20070
20070
|
}
|
|
20071
20071
|
}
|
|
20072
20072
|
//#endregion
|
|
20073
|
-
//#region node_modules
|
|
20073
|
+
//#region node_modules/micromark-core-commonmark/lib/thematic-break.js
|
|
20074
20074
|
var ay = {
|
|
20075
20075
|
name: "thematicBreak",
|
|
20076
20076
|
tokenize: oy
|
|
@@ -20092,7 +20092,7 @@ function oy(e, t, n) {
|
|
|
20092
20092
|
}
|
|
20093
20093
|
}
|
|
20094
20094
|
//#endregion
|
|
20095
|
-
//#region node_modules
|
|
20095
|
+
//#region node_modules/micromark-core-commonmark/lib/list.js
|
|
20096
20096
|
var sy = {
|
|
20097
20097
|
continuation: { tokenize: dy },
|
|
20098
20098
|
exit: py,
|
|
@@ -20165,7 +20165,7 @@ function my(e, t, n) {
|
|
|
20165
20165
|
}
|
|
20166
20166
|
}
|
|
20167
20167
|
//#endregion
|
|
20168
|
-
//#region node_modules
|
|
20168
|
+
//#region node_modules/micromark-core-commonmark/lib/setext-underline.js
|
|
20169
20169
|
var hy = {
|
|
20170
20170
|
name: "setextUnderline",
|
|
20171
20171
|
resolveTo: gy,
|
|
@@ -20221,7 +20221,7 @@ function _y(e, t, n) {
|
|
|
20221
20221
|
}
|
|
20222
20222
|
}
|
|
20223
20223
|
//#endregion
|
|
20224
|
-
//#region node_modules
|
|
20224
|
+
//#region node_modules/micromark/lib/initialize/flow.js
|
|
20225
20225
|
var vy = { tokenize: yy };
|
|
20226
20226
|
function yy(e) {
|
|
20227
20227
|
let t = this, n = e.attempt(H_, r, e.attempt(this.parser.constructs.flowInitial, i, D_(e, e.attempt(this.parser.constructs.flow, i, e.attempt(mv, i)), "linePrefix")));
|
|
@@ -20242,7 +20242,7 @@ function yy(e) {
|
|
|
20242
20242
|
}
|
|
20243
20243
|
}
|
|
20244
20244
|
//#endregion
|
|
20245
|
-
//#region node_modules
|
|
20245
|
+
//#region node_modules/micromark/lib/initialize/text.js
|
|
20246
20246
|
var by = { resolveAll: wy() }, xy = Cy("string"), Sy = Cy("text");
|
|
20247
20247
|
function Cy(e) {
|
|
20248
20248
|
return {
|
|
@@ -20327,7 +20327,7 @@ function Ty(e, t) {
|
|
|
20327
20327
|
return e;
|
|
20328
20328
|
}
|
|
20329
20329
|
//#endregion
|
|
20330
|
-
//#region node_modules
|
|
20330
|
+
//#region node_modules/micromark/lib/constructs.js
|
|
20331
20331
|
var Ey = /* @__PURE__ */ t({
|
|
20332
20332
|
attentionMarkers: () => Py,
|
|
20333
20333
|
contentInitial: () => Oy,
|
|
@@ -20384,7 +20384,7 @@ var Ey = /* @__PURE__ */ t({
|
|
|
20384
20384
|
96: ov
|
|
20385
20385
|
}, Ny = { null: [I_, by] }, Py = { null: [42, 95] }, Fy = { null: [] };
|
|
20386
20386
|
//#endregion
|
|
20387
|
-
//#region node_modules
|
|
20387
|
+
//#region node_modules/micromark/lib/create-tokenizer.js
|
|
20388
20388
|
function Iy(e, t, n) {
|
|
20389
20389
|
let r = {
|
|
20390
20390
|
_bufferIndex: -1,
|
|
@@ -20557,7 +20557,7 @@ function Ry(e, t) {
|
|
|
20557
20557
|
return r.join("");
|
|
20558
20558
|
}
|
|
20559
20559
|
//#endregion
|
|
20560
|
-
//#region node_modules
|
|
20560
|
+
//#region node_modules/micromark/lib/parse.js
|
|
20561
20561
|
function zy(e) {
|
|
20562
20562
|
let t = {
|
|
20563
20563
|
constructs: u_([Ey, ...(e || {}).extensions || []]),
|
|
@@ -20578,13 +20578,13 @@ function zy(e) {
|
|
|
20578
20578
|
}
|
|
20579
20579
|
}
|
|
20580
20580
|
//#endregion
|
|
20581
|
-
//#region node_modules
|
|
20581
|
+
//#region node_modules/micromark/lib/postprocess.js
|
|
20582
20582
|
function By(e) {
|
|
20583
20583
|
for (; !fv(e););
|
|
20584
20584
|
return e;
|
|
20585
20585
|
}
|
|
20586
20586
|
//#endregion
|
|
20587
|
-
//#region node_modules
|
|
20587
|
+
//#region node_modules/micromark/lib/preprocess.js
|
|
20588
20588
|
var Vy = /[\0\t\n\r]/g;
|
|
20589
20589
|
function Hy() {
|
|
20590
20590
|
let e = 1, t = "", n = !0, r;
|
|
@@ -20615,7 +20615,7 @@ function Hy() {
|
|
|
20615
20615
|
}
|
|
20616
20616
|
}
|
|
20617
20617
|
//#endregion
|
|
20618
|
-
//#region node_modules
|
|
20618
|
+
//#region node_modules/micromark-util-decode-string/index.js
|
|
20619
20619
|
var Uy = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
|
20620
20620
|
function Wy(e) {
|
|
20621
20621
|
return e.replace(Uy, Gy);
|
|
@@ -20629,7 +20629,7 @@ function Gy(e, t, n) {
|
|
|
20629
20629
|
return o_(n) || e;
|
|
20630
20630
|
}
|
|
20631
20631
|
//#endregion
|
|
20632
|
-
//#region node_modules
|
|
20632
|
+
//#region node_modules/mdast-util-from-markdown/lib/index.js
|
|
20633
20633
|
var Ky = {}.hasOwnProperty;
|
|
20634
20634
|
function qy(e, t, n) {
|
|
20635
20635
|
return t && typeof t == "object" && (n = t, t = void 0), Jy(n)(By(zy(n).document().write(Hy()(e, t, !0))));
|
|
@@ -21176,7 +21176,7 @@ function Qy(e, t) {
|
|
|
21176
21176
|
}) + ") is still open");
|
|
21177
21177
|
}
|
|
21178
21178
|
//#endregion
|
|
21179
|
-
//#region node_modules
|
|
21179
|
+
//#region node_modules/remark-parse/lib/index.js
|
|
21180
21180
|
function $y(e) {
|
|
21181
21181
|
let t = this;
|
|
21182
21182
|
t.parser = n;
|
|
@@ -22313,12 +22313,99 @@ function zb() {
|
|
|
22313
22313
|
}
|
|
22314
22314
|
//#endregion
|
|
22315
22315
|
//#region src/components/DocsLayout.tsx
|
|
22316
|
-
function Bb(
|
|
22317
|
-
|
|
22316
|
+
function Bb(e, t) {
|
|
22317
|
+
return `${e.replace(/\/+$/, "")}${t.startsWith("/") ? t : `/${t}`}`;
|
|
22318
|
+
}
|
|
22319
|
+
function Vb(e, t, n) {
|
|
22320
|
+
let r = document.head.querySelector(e);
|
|
22321
|
+
r || (r = t(), document.head.appendChild(r)), n(r);
|
|
22322
|
+
}
|
|
22323
|
+
function Hb({ lang: e, config: t, frontmatter: n, slug: r, version: i, lastUpdated: a, editUrl: o, docFilePath: s, children: c, prev: l, next: u, content: d = "", availableLangs: f }) {
|
|
22324
|
+
let { site: p, navbar: m, sidebar: h, theme: g } = t, _ = n?.authors?.length ? n.authors : n?.author ? [n.author] : [], v = n?.createdAt, y = v ? new Date(v).toString() === "Invalid Date" ? String(v) : new Date(v).toLocaleDateString(e === "en" ? "en-US" : "zh-CN") : void 0, b = n?.title || n?.firstH1 || t.seo?.defaultTitle || p?.title || "Docs", x = t.seo?.titleTemplate && b ? t.seo.titleTemplate.replace(/\{title\}/g, b).replace(/\{siteTitle\}/g, p?.title || "Docs") : b, S = n?.description || t.seo?.defaultDescription || p?.description, C = p?.url?.replace(/\/+$/, ""), w = i ? `/${e}/v/${i}${r ? `/${r}` : ""}` : `/${e}${r ? `/${r}` : ""}`;
|
|
22318
22325
|
B(() => {
|
|
22319
|
-
document.title =
|
|
22320
|
-
}, [
|
|
22321
|
-
|
|
22326
|
+
document.title = x;
|
|
22327
|
+
}, [x]), B(() => {
|
|
22328
|
+
if (t.seo?.enabled === !1) return;
|
|
22329
|
+
let e = n?.noindex ? "noindex, nofollow" : t.seo?.robots || "index, follow", a = n?.noindex ? void 0 : typeof n?.canonical == "string" ? n.canonical : C ? Bb(C, w) : void 0, o = n?.noindex || !C ? [] : [
|
|
22330
|
+
{
|
|
22331
|
+
hreflang: "zh-CN",
|
|
22332
|
+
href: Bb(C, i ? `/zh-cn/v/${i}${r ? `/${r}` : ""}` : `/zh-cn${r ? `/${r}` : ""}`)
|
|
22333
|
+
},
|
|
22334
|
+
{
|
|
22335
|
+
hreflang: "en",
|
|
22336
|
+
href: Bb(C, i ? `/en/v/${i}${r ? `/${r}` : ""}` : `/en${r ? `/${r}` : ""}`)
|
|
22337
|
+
},
|
|
22338
|
+
{
|
|
22339
|
+
hreflang: "x-default",
|
|
22340
|
+
href: Bb(C, i ? `/zh-cn/v/${i}${r ? `/${r}` : ""}` : `/zh-cn${r ? `/${r}` : ""}`)
|
|
22341
|
+
}
|
|
22342
|
+
];
|
|
22343
|
+
Vb("meta[name=\"description\"]", () => document.createElement("meta"), (e) => {
|
|
22344
|
+
e.setAttribute("name", "description"), e.setAttribute("content", S || "");
|
|
22345
|
+
}), Vb("meta[name=\"robots\"]", () => document.createElement("meta"), (t) => {
|
|
22346
|
+
t.setAttribute("name", "robots"), t.setAttribute("content", e);
|
|
22347
|
+
}), [
|
|
22348
|
+
{
|
|
22349
|
+
key: "og:title",
|
|
22350
|
+
value: x
|
|
22351
|
+
},
|
|
22352
|
+
{
|
|
22353
|
+
key: "og:description",
|
|
22354
|
+
value: S || ""
|
|
22355
|
+
},
|
|
22356
|
+
{
|
|
22357
|
+
key: "og:type",
|
|
22358
|
+
value: "article"
|
|
22359
|
+
},
|
|
22360
|
+
{
|
|
22361
|
+
key: "og:url",
|
|
22362
|
+
value: a
|
|
22363
|
+
},
|
|
22364
|
+
{
|
|
22365
|
+
key: "og:image",
|
|
22366
|
+
value: t.seo?.defaultOgImage
|
|
22367
|
+
}
|
|
22368
|
+
].filter((e) => e.value).forEach(({ key: e, value: t }) => Vb(`meta[property="${e}"]`, () => document.createElement("meta"), (n) => {
|
|
22369
|
+
n.setAttribute("property", e), n.setAttribute("content", t || "");
|
|
22370
|
+
})), [
|
|
22371
|
+
{
|
|
22372
|
+
key: "twitter:card",
|
|
22373
|
+
value: t.seo?.twitterCard || "summary_large_image"
|
|
22374
|
+
},
|
|
22375
|
+
{
|
|
22376
|
+
key: "twitter:title",
|
|
22377
|
+
value: x
|
|
22378
|
+
},
|
|
22379
|
+
{
|
|
22380
|
+
key: "twitter:description",
|
|
22381
|
+
value: S || ""
|
|
22382
|
+
},
|
|
22383
|
+
{
|
|
22384
|
+
key: "twitter:image",
|
|
22385
|
+
value: t.seo?.defaultOgImage
|
|
22386
|
+
}
|
|
22387
|
+
].filter((e) => e.value).forEach(({ key: e, value: t }) => Vb(`meta[name="${e}"]`, () => document.createElement("meta"), (n) => {
|
|
22388
|
+
n.setAttribute("name", e), n.setAttribute("content", t || "");
|
|
22389
|
+
}));
|
|
22390
|
+
let s = document.head.querySelector("link[rel=\"canonical\"][data-rdu-seo=\"canonical\"]");
|
|
22391
|
+
a ? Vb("link[rel=\"canonical\"][data-rdu-seo=\"canonical\"]", () => document.createElement("link"), (e) => {
|
|
22392
|
+
e.setAttribute("rel", "canonical"), e.setAttribute("href", a), e.setAttribute("data-rdu-seo", "canonical");
|
|
22393
|
+
}) : s && s.remove(), document.head.querySelectorAll("link[rel=\"alternate\"][data-rdu-seo=\"alternate\"]").forEach((e) => e.remove()), o.forEach(({ hreflang: e, href: t }) => Vb(`link[rel="alternate"][hreflang="${e}"][data-rdu-seo="alternate"]`, () => document.createElement("link"), (n) => {
|
|
22394
|
+
n.setAttribute("rel", "alternate"), n.setAttribute("hreflang", e), n.setAttribute("href", t), n.setAttribute("data-rdu-seo", "alternate");
|
|
22395
|
+
}));
|
|
22396
|
+
}, [
|
|
22397
|
+
t.seo,
|
|
22398
|
+
n?.canonical,
|
|
22399
|
+
n?.noindex,
|
|
22400
|
+
e,
|
|
22401
|
+
S,
|
|
22402
|
+
w,
|
|
22403
|
+
x,
|
|
22404
|
+
C,
|
|
22405
|
+
r,
|
|
22406
|
+
i
|
|
22407
|
+
]);
|
|
22408
|
+
let T = t.toc?.enabled === !1 ? [] : n?.toc || [], { openSearch: E } = ot(), [D, O] = H(!1);
|
|
22322
22409
|
return zb(), /* @__PURE__ */ W("div", {
|
|
22323
22410
|
className: "relative flex min-h-screen flex-col",
|
|
22324
22411
|
children: [
|
|
@@ -22336,20 +22423,20 @@ function Bb({ lang: e, config: t, frontmatter: n, slug: r, version: i, lastUpdat
|
|
|
22336
22423
|
lang: e,
|
|
22337
22424
|
version: i,
|
|
22338
22425
|
sidebar: h,
|
|
22339
|
-
open:
|
|
22340
|
-
onOpenChange:
|
|
22426
|
+
open: D,
|
|
22427
|
+
onOpenChange: O
|
|
22341
22428
|
}),
|
|
22342
22429
|
/* @__PURE__ */ U(Xt, {
|
|
22343
22430
|
lang: e,
|
|
22344
22431
|
navItems: m.items || [],
|
|
22345
|
-
toc:
|
|
22432
|
+
toc: T,
|
|
22346
22433
|
showSidebar: !!h,
|
|
22347
22434
|
showSearch: t.search?.enabled !== !1,
|
|
22348
|
-
onOpenSidebar: () =>
|
|
22349
|
-
onOpenSearch:
|
|
22435
|
+
onOpenSidebar: () => O(!0),
|
|
22436
|
+
onOpenSearch: E
|
|
22350
22437
|
}),
|
|
22351
22438
|
/* @__PURE__ */ W("div", {
|
|
22352
|
-
className: `flex-1 items-start md:grid md:grid-cols-[220px_1fr] md:gap-6 lg:grid-cols-[240px_1fr] lg:gap-10 px-4 md:px-8 ${
|
|
22439
|
+
className: `flex-1 items-start md:grid md:grid-cols-[220px_1fr] md:gap-6 lg:grid-cols-[240px_1fr] lg:gap-10 px-4 md:px-8 ${T && T.length > 0 ? "container lg:max-w-[calc(100vw-280px)]" : "container"}`,
|
|
22353
22440
|
children: [
|
|
22354
22441
|
h && /* @__PURE__ */ U("aside", {
|
|
22355
22442
|
className: "fixed top-14 z-30 -ml-2 hidden h-[calc(100vh-3.5rem)] w-full shrink-0 md:sticky md:block",
|
|
@@ -22462,11 +22549,11 @@ function Bb({ lang: e, config: t, frontmatter: n, slug: r, version: i, lastUpdat
|
|
|
22462
22549
|
})
|
|
22463
22550
|
]
|
|
22464
22551
|
}),
|
|
22465
|
-
|
|
22552
|
+
T && T.length > 0 && /* @__PURE__ */ U("aside", {
|
|
22466
22553
|
className: "fixed top-14 right-0 z-30 hidden lg:block h-[calc(100vh-3.5rem)] w-[280px] shrink-0 border-l border-border bg-background/50 backdrop-blur-sm",
|
|
22467
22554
|
children: /* @__PURE__ */ U(Ht, {
|
|
22468
22555
|
className: "h-full py-6 pr-4 lg:py-8 pl-6",
|
|
22469
|
-
children: /* @__PURE__ */ U(en, { toc:
|
|
22556
|
+
children: /* @__PURE__ */ U(en, { toc: T })
|
|
22470
22557
|
})
|
|
22471
22558
|
})
|
|
22472
22559
|
]
|
|
@@ -22474,39 +22561,39 @@ function Bb({ lang: e, config: t, frontmatter: n, slug: r, version: i, lastUpdat
|
|
|
22474
22561
|
}
|
|
22475
22562
|
//#endregion
|
|
22476
22563
|
//#region src/components/FontProvider.tsx
|
|
22477
|
-
var
|
|
22564
|
+
var Ub = {
|
|
22478
22565
|
fontFamilyZhCn: "MiSans, PingFang SC, Noto Sans SC, Microsoft YaHei, sans-serif",
|
|
22479
22566
|
fontFamilyEn: "Fragment Mono, system-ui, sans-serif"
|
|
22480
|
-
},
|
|
22567
|
+
}, Wb = {
|
|
22481
22568
|
fontFamilyZhCn: "PingFang SC, Noto Sans SC, Microsoft YaHei, sans-serif",
|
|
22482
22569
|
fontFamilyEn: "system-ui, sans-serif"
|
|
22483
|
-
},
|
|
22484
|
-
function
|
|
22485
|
-
let e = document.getElementById(
|
|
22486
|
-
e || (e = document.createElement("style"), e.id =
|
|
22570
|
+
}, Gb = "react-docs-ui-font-face-styles", Kb = "react-docs-ui:content-ready", qb = "\n@font-face {\n font-family: 'Fragment Mono';\n src: url('/fonts/FragmentMono-Regular.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n}\n\n@font-face {\n font-family: 'Fragment Mono';\n src: url('/fonts/FragmentMono-Italic.woff2') format('woff2');\n font-weight: 400;\n font-style: italic;\n font-display: swap;\n}\n\n@font-face {\n font-family: 'MiSans';\n src: url('/fonts/MiSans-Regular.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n}\n\n@font-face {\n font-family: 'MiSans';\n src: url('/fonts/MiSans-Medium.woff2') format('woff2');\n font-weight: 500;\n font-style: normal;\n font-display: swap;\n}\n\n@font-face {\n font-family: 'MiSans';\n src: url('/fonts/MiSans-Bold.woff2') format('woff2');\n font-weight: 700;\n font-style: normal;\n font-display: swap;\n}\n";
|
|
22571
|
+
function Jb() {
|
|
22572
|
+
let e = document.getElementById(Gb);
|
|
22573
|
+
e || (e = document.createElement("style"), e.id = Gb, e.textContent = qb, document.head.appendChild(e));
|
|
22487
22574
|
}
|
|
22488
|
-
var
|
|
22489
|
-
function
|
|
22575
|
+
var Yb = I(Ub);
|
|
22576
|
+
function Xb(e) {
|
|
22490
22577
|
return e.split(",")[0]?.trim().replace(/^['"]|['"]$/g, "") || null;
|
|
22491
22578
|
}
|
|
22492
|
-
function
|
|
22493
|
-
return z(
|
|
22579
|
+
function Zb() {
|
|
22580
|
+
return z(Yb);
|
|
22494
22581
|
}
|
|
22495
|
-
function
|
|
22582
|
+
function Qb({ children: e, config: t, lang: n = "zh-cn" }) {
|
|
22496
22583
|
let r = V(() => ({
|
|
22497
|
-
fontFamilyZhCn: t?.fonts?.fontFamilyZhCn ||
|
|
22498
|
-
fontFamilyEn: t?.fonts?.fontFamilyEn ||
|
|
22584
|
+
fontFamilyZhCn: t?.fonts?.fontFamilyZhCn || Ub.fontFamilyZhCn,
|
|
22585
|
+
fontFamilyEn: t?.fonts?.fontFamilyEn || Ub.fontFamilyEn
|
|
22499
22586
|
}), [t?.fonts?.fontFamilyZhCn, t?.fonts?.fontFamilyEn]), [i, a] = H(!1);
|
|
22500
22587
|
return B(() => {
|
|
22501
22588
|
a(!1);
|
|
22502
22589
|
let e = !1, t = null, i = null, o = null, s = null, c = null, l = document.documentElement;
|
|
22503
|
-
l.style.setProperty("--font-family-zh-cn",
|
|
22504
|
-
let u = n === "zh-cn" || n.startsWith("zh"), d = u ?
|
|
22590
|
+
l.style.setProperty("--font-family-zh-cn", Wb.fontFamilyZhCn), l.style.setProperty("--font-family-en", Wb.fontFamilyEn), l.setAttribute("data-docs-lang", n);
|
|
22591
|
+
let u = n === "zh-cn" || n.startsWith("zh"), d = u ? Wb.fontFamilyZhCn : Wb.fontFamilyEn;
|
|
22505
22592
|
l.style.setProperty("--font-family-primary", d);
|
|
22506
22593
|
let f = "requestIdleCallback" in globalThis ? globalThis.requestIdleCallback.bind(globalThis) : null, p = "cancelIdleCallback" in globalThis ? globalThis.cancelIdleCallback.bind(globalThis) : null, m = () => {
|
|
22507
22594
|
e || (l.style.setProperty("--font-family-zh-cn", r.fontFamilyZhCn), l.style.setProperty("--font-family-en", r.fontFamilyEn), l.style.setProperty("--font-family-primary", u ? r.fontFamilyZhCn : r.fontFamilyEn), a(!0));
|
|
22508
|
-
}, h =
|
|
22509
|
-
|
|
22595
|
+
}, h = Xb(r.fontFamilyZhCn), g = Xb(r.fontFamilyEn), _ = async () => {
|
|
22596
|
+
Jb();
|
|
22510
22597
|
let e = [];
|
|
22511
22598
|
if (h && e.push(document.fonts.load(`normal 400 16px "${h}"`, "中文"), document.fonts.load(`normal 500 16px "${h}"`, "中文"), document.fonts.load(`normal 700 16px "${h}"`, "中文")), g && e.push(document.fonts.load(`normal 400 16px "${g}"`, "Docs"), document.fonts.load(`italic 400 16px "${g}"`, "Docs")), e.length === 0) {
|
|
22512
22599
|
m();
|
|
@@ -22532,7 +22619,7 @@ function Xb({ children: e, config: t, lang: n = "zh-cn" }) {
|
|
|
22532
22619
|
}, x = () => {
|
|
22533
22620
|
b();
|
|
22534
22621
|
};
|
|
22535
|
-
if (globalThis.addEventListener(
|
|
22622
|
+
if (globalThis.addEventListener(Kb, x, { once: !0 }), document.readyState !== "complete") {
|
|
22536
22623
|
let e = () => {
|
|
22537
22624
|
s?.(), s = null, o !== null && (globalThis.clearTimeout(o), o = null);
|
|
22538
22625
|
};
|
|
@@ -22545,40 +22632,40 @@ function Xb({ children: e, config: t, lang: n = "zh-cn" }) {
|
|
|
22545
22632
|
return c = globalThis.setTimeout(() => {
|
|
22546
22633
|
b();
|
|
22547
22634
|
}, 8e3), () => {
|
|
22548
|
-
e = !0, t !== null && p && p(t), i !== null && globalThis.clearTimeout(i), o !== null && globalThis.clearTimeout(o), c !== null && globalThis.clearTimeout(c), s?.(), globalThis.removeEventListener(
|
|
22635
|
+
e = !0, t !== null && p && p(t), i !== null && globalThis.clearTimeout(i), o !== null && globalThis.clearTimeout(o), c !== null && globalThis.clearTimeout(c), s?.(), globalThis.removeEventListener(Kb, x), l.removeAttribute("data-docs-lang");
|
|
22549
22636
|
};
|
|
22550
|
-
}, [r, n]), /* @__PURE__ */ U(
|
|
22551
|
-
value: i ? r :
|
|
22637
|
+
}, [r, n]), /* @__PURE__ */ U(Yb.Provider, {
|
|
22638
|
+
value: i ? r : Wb,
|
|
22552
22639
|
children: e
|
|
22553
22640
|
});
|
|
22554
22641
|
}
|
|
22555
22642
|
//#endregion
|
|
22556
22643
|
//#region src/lib/component-scanner.ts
|
|
22557
|
-
var
|
|
22644
|
+
var $b = {
|
|
22558
22645
|
Tip: v,
|
|
22559
22646
|
Warning: u,
|
|
22560
22647
|
Card: h,
|
|
22561
22648
|
Tabs: y,
|
|
22562
22649
|
Tab: _,
|
|
22563
22650
|
Mermaid: b
|
|
22564
|
-
},
|
|
22565
|
-
function
|
|
22566
|
-
return
|
|
22651
|
+
}, ex = null;
|
|
22652
|
+
function tx() {
|
|
22653
|
+
return ex ||= import("./mdx-components-TEc3uhbY.js").then((e) => e && e.MDX_COMPONENTS ? e.MDX_COMPONENTS : null).catch(() => null), ex;
|
|
22567
22654
|
}
|
|
22568
|
-
async function
|
|
22655
|
+
async function nx() {
|
|
22569
22656
|
try {
|
|
22570
|
-
return await
|
|
22657
|
+
return await tx();
|
|
22571
22658
|
} catch {
|
|
22572
22659
|
return null;
|
|
22573
22660
|
}
|
|
22574
22661
|
}
|
|
22575
|
-
function
|
|
22576
|
-
|
|
22662
|
+
function rx() {
|
|
22663
|
+
tx();
|
|
22577
22664
|
}
|
|
22578
|
-
async function
|
|
22665
|
+
async function ix(e = "/src/components") {
|
|
22579
22666
|
return [];
|
|
22580
22667
|
}
|
|
22581
|
-
async function
|
|
22668
|
+
async function ax(e) {
|
|
22582
22669
|
try {
|
|
22583
22670
|
let t = await import(
|
|
22584
22671
|
/* @vite-ignore */
|
|
@@ -22589,30 +22676,30 @@ async function rx(e) {
|
|
|
22589
22676
|
return console.warn(`[MDX] 无法导入组件 ${e}:`, t), null;
|
|
22590
22677
|
}
|
|
22591
22678
|
}
|
|
22592
|
-
async function
|
|
22679
|
+
async function ox(e, t) {
|
|
22593
22680
|
let n = {};
|
|
22594
|
-
Object.assign(n,
|
|
22595
|
-
let r = await
|
|
22681
|
+
Object.assign(n, $b);
|
|
22682
|
+
let r = await nx();
|
|
22596
22683
|
if (r && Object.keys(r).length > 0 && Object.assign(n, r), t && Object.keys(t).length > 0 && !r) for (let [e, r] of Object.entries(t)) try {
|
|
22597
|
-
let t = await
|
|
22684
|
+
let t = await ax(r);
|
|
22598
22685
|
t && (n[e] = t);
|
|
22599
22686
|
} catch (t) {
|
|
22600
22687
|
console.warn(`[MDX] 加载组件 ${e} 失败:`, t);
|
|
22601
22688
|
}
|
|
22602
22689
|
return n;
|
|
22603
22690
|
}
|
|
22604
|
-
function
|
|
22605
|
-
return {
|
|
22691
|
+
function sx() {
|
|
22692
|
+
return { ...$b };
|
|
22606
22693
|
}
|
|
22607
|
-
function
|
|
22694
|
+
function cx(e = {}) {
|
|
22608
22695
|
return {
|
|
22609
|
-
|
|
22696
|
+
...$b,
|
|
22610
22697
|
...e
|
|
22611
22698
|
};
|
|
22612
22699
|
}
|
|
22613
22700
|
//#endregion
|
|
22614
22701
|
//#region src/lib/navigation.ts
|
|
22615
|
-
function
|
|
22702
|
+
function lx(e, t, n, r) {
|
|
22616
22703
|
if (!e) return {
|
|
22617
22704
|
prev: null,
|
|
22618
22705
|
next: null
|
|
@@ -22639,37 +22726,37 @@ function sx(e, t, n, r) {
|
|
|
22639
22726
|
};
|
|
22640
22727
|
}
|
|
22641
22728
|
typeof window < "u" && window.document && window.document.createElement;
|
|
22642
|
-
function
|
|
22729
|
+
function ux(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
22643
22730
|
return function(r) {
|
|
22644
22731
|
if (e?.(r), n === !1 || !r.defaultPrevented) return t?.(r);
|
|
22645
22732
|
};
|
|
22646
22733
|
}
|
|
22647
22734
|
//#endregion
|
|
22648
|
-
//#region node_modules
|
|
22649
|
-
function
|
|
22735
|
+
//#region node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
22736
|
+
function dx(e, t) {
|
|
22650
22737
|
if (typeof e == "function") return e(t);
|
|
22651
22738
|
e != null && (e.current = t);
|
|
22652
22739
|
}
|
|
22653
|
-
function
|
|
22740
|
+
function fx(...e) {
|
|
22654
22741
|
return (t) => {
|
|
22655
22742
|
let n = !1, r = e.map((e) => {
|
|
22656
|
-
let r =
|
|
22743
|
+
let r = dx(e, t);
|
|
22657
22744
|
return !n && typeof r == "function" && (n = !0), r;
|
|
22658
22745
|
});
|
|
22659
22746
|
if (n) return () => {
|
|
22660
22747
|
for (let t = 0; t < r.length; t++) {
|
|
22661
22748
|
let n = r[t];
|
|
22662
|
-
typeof n == "function" ? n() :
|
|
22749
|
+
typeof n == "function" ? n() : dx(e[t], null);
|
|
22663
22750
|
}
|
|
22664
22751
|
};
|
|
22665
22752
|
};
|
|
22666
22753
|
}
|
|
22667
|
-
function
|
|
22668
|
-
return N.useCallback(
|
|
22754
|
+
function px(...e) {
|
|
22755
|
+
return N.useCallback(fx(...e), e);
|
|
22669
22756
|
}
|
|
22670
22757
|
//#endregion
|
|
22671
|
-
//#region node_modules
|
|
22672
|
-
function
|
|
22758
|
+
//#region node_modules/@radix-ui/react-context/dist/index.mjs
|
|
22759
|
+
function mx(e, t = []) {
|
|
22673
22760
|
let n = [];
|
|
22674
22761
|
function r(t, r) {
|
|
22675
22762
|
let i = N.createContext(r), a = n.length;
|
|
@@ -22700,9 +22787,9 @@ function fx(e, t = []) {
|
|
|
22700
22787
|
} }), [n, r]);
|
|
22701
22788
|
};
|
|
22702
22789
|
};
|
|
22703
|
-
return i.scopeName = e, [r,
|
|
22790
|
+
return i.scopeName = e, [r, hx(i, ...t)];
|
|
22704
22791
|
}
|
|
22705
|
-
function
|
|
22792
|
+
function hx(...e) {
|
|
22706
22793
|
let t = e[0];
|
|
22707
22794
|
if (e.length === 1) return t;
|
|
22708
22795
|
let n = () => {
|
|
@@ -22724,9 +22811,9 @@ function px(...e) {
|
|
|
22724
22811
|
return n.scopeName = t.scopeName, n;
|
|
22725
22812
|
}
|
|
22726
22813
|
//#endregion
|
|
22727
|
-
//#region node_modules
|
|
22728
|
-
function
|
|
22729
|
-
let t = e + "CollectionProvider", [n, r] =
|
|
22814
|
+
//#region node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
22815
|
+
function gx(e) {
|
|
22816
|
+
let t = e + "CollectionProvider", [n, r] = mx(t), [i, a] = n(t, {
|
|
22730
22817
|
collectionRef: { current: null },
|
|
22731
22818
|
itemMap: /* @__PURE__ */ new Map()
|
|
22732
22819
|
}), o = (e) => {
|
|
@@ -22742,13 +22829,13 @@ function mx(e) {
|
|
|
22742
22829
|
let s = e + "CollectionSlot", c = Ke(s), l = P.forwardRef((e, t) => {
|
|
22743
22830
|
let { scope: n, children: r } = e;
|
|
22744
22831
|
return /* @__PURE__ */ U(c, {
|
|
22745
|
-
ref:
|
|
22832
|
+
ref: px(t, a(s, n).collectionRef),
|
|
22746
22833
|
children: r
|
|
22747
22834
|
});
|
|
22748
22835
|
});
|
|
22749
22836
|
l.displayName = s;
|
|
22750
22837
|
let u = e + "CollectionItemSlot", d = "data-radix-collection-item", f = Ke(u), p = P.forwardRef((e, t) => {
|
|
22751
|
-
let { scope: n, children: r, ...i } = e, o = P.useRef(null), s =
|
|
22838
|
+
let { scope: n, children: r, ...i } = e, o = P.useRef(null), s = px(t, o), c = a(u, n);
|
|
22752
22839
|
return P.useEffect(() => (c.itemMap.set(o, {
|
|
22753
22840
|
ref: o,
|
|
22754
22841
|
...i
|
|
@@ -22779,8 +22866,8 @@ function mx(e) {
|
|
|
22779
22866
|
];
|
|
22780
22867
|
}
|
|
22781
22868
|
//#endregion
|
|
22782
|
-
//#region node_modules
|
|
22783
|
-
var
|
|
22869
|
+
//#region node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
22870
|
+
var _x = [
|
|
22784
22871
|
"a",
|
|
22785
22872
|
"button",
|
|
22786
22873
|
"div",
|
|
@@ -22811,21 +22898,21 @@ var hx = [
|
|
|
22811
22898
|
[t]: r
|
|
22812
22899
|
};
|
|
22813
22900
|
}, {});
|
|
22814
|
-
function
|
|
22901
|
+
function vx(e, t) {
|
|
22815
22902
|
e && tt.flushSync(() => e.dispatchEvent(t));
|
|
22816
22903
|
}
|
|
22817
22904
|
//#endregion
|
|
22818
|
-
//#region node_modules
|
|
22819
|
-
function
|
|
22905
|
+
//#region node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
22906
|
+
function yx(e) {
|
|
22820
22907
|
let t = N.useRef(e);
|
|
22821
22908
|
return N.useEffect(() => {
|
|
22822
22909
|
t.current = e;
|
|
22823
22910
|
}), N.useMemo(() => (...e) => t.current?.(...e), []);
|
|
22824
22911
|
}
|
|
22825
22912
|
//#endregion
|
|
22826
|
-
//#region node_modules
|
|
22827
|
-
function
|
|
22828
|
-
let n =
|
|
22913
|
+
//#region node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
|
|
22914
|
+
function bx(e, t = globalThis?.document) {
|
|
22915
|
+
let n = yx(e);
|
|
22829
22916
|
N.useEffect(() => {
|
|
22830
22917
|
let e = (e) => {
|
|
22831
22918
|
e.key === "Escape" && n(e);
|
|
@@ -22834,24 +22921,24 @@ function vx(e, t = globalThis?.document) {
|
|
|
22834
22921
|
}, [n, t]);
|
|
22835
22922
|
}
|
|
22836
22923
|
//#endregion
|
|
22837
|
-
//#region node_modules
|
|
22838
|
-
var
|
|
22924
|
+
//#region node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
22925
|
+
var xx = "DismissableLayer", Sx = "dismissableLayer.update", Cx = "dismissableLayer.pointerDownOutside", wx = "dismissableLayer.focusOutside", Tx, Ex = N.createContext({
|
|
22839
22926
|
layers: /* @__PURE__ */ new Set(),
|
|
22840
22927
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
22841
22928
|
branches: /* @__PURE__ */ new Set()
|
|
22842
|
-
}),
|
|
22843
|
-
let { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: r, onPointerDownOutside: i, onFocusOutside: a, onInteractOutside: o, onDismiss: s, ...c } = e, l = N.useContext(
|
|
22929
|
+
}), Dx = N.forwardRef((e, t) => {
|
|
22930
|
+
let { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: r, onPointerDownOutside: i, onFocusOutside: a, onInteractOutside: o, onDismiss: s, ...c } = e, l = N.useContext(Ex), [u, d] = N.useState(null), f = u?.ownerDocument ?? globalThis?.document, [, p] = N.useState({}), m = px(t, (e) => d(e)), h = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), _ = h.indexOf(g), v = u ? h.indexOf(u) : -1, y = l.layersWithOutsidePointerEventsDisabled.size > 0, b = v >= _, x = Ax((e) => {
|
|
22844
22931
|
let t = e.target, n = [...l.branches].some((e) => e.contains(t));
|
|
22845
22932
|
!b || n || (i?.(e), o?.(e), e.defaultPrevented || s?.());
|
|
22846
|
-
}, f), S =
|
|
22933
|
+
}, f), S = jx((e) => {
|
|
22847
22934
|
let t = e.target;
|
|
22848
22935
|
[...l.branches].some((e) => e.contains(t)) || (a?.(e), o?.(e), e.defaultPrevented || s?.());
|
|
22849
22936
|
}, f);
|
|
22850
|
-
return
|
|
22937
|
+
return bx((e) => {
|
|
22851
22938
|
v === l.layers.size - 1 && (r?.(e), !e.defaultPrevented && s && (e.preventDefault(), s()));
|
|
22852
22939
|
}, f), N.useEffect(() => {
|
|
22853
|
-
if (u) return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
22854
|
-
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents =
|
|
22940
|
+
if (u) return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Tx = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(u)), l.layers.add(u), Mx(), () => {
|
|
22941
|
+
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = Tx);
|
|
22855
22942
|
};
|
|
22856
22943
|
}, [
|
|
22857
22944
|
u,
|
|
@@ -22859,43 +22946,43 @@ var yx = "DismissableLayer", bx = "dismissableLayer.update", xx = "dismissableLa
|
|
|
22859
22946
|
n,
|
|
22860
22947
|
l
|
|
22861
22948
|
]), N.useEffect(() => () => {
|
|
22862
|
-
u && (l.layers.delete(u), l.layersWithOutsidePointerEventsDisabled.delete(u),
|
|
22949
|
+
u && (l.layers.delete(u), l.layersWithOutsidePointerEventsDisabled.delete(u), Mx());
|
|
22863
22950
|
}, [u, l]), N.useEffect(() => {
|
|
22864
22951
|
let e = () => p({});
|
|
22865
|
-
return document.addEventListener(
|
|
22866
|
-
}, []), /* @__PURE__ */ U(
|
|
22952
|
+
return document.addEventListener(Sx, e), () => document.removeEventListener(Sx, e);
|
|
22953
|
+
}, []), /* @__PURE__ */ U(_x.div, {
|
|
22867
22954
|
...c,
|
|
22868
22955
|
ref: m,
|
|
22869
22956
|
style: {
|
|
22870
22957
|
pointerEvents: y ? b ? "auto" : "none" : void 0,
|
|
22871
22958
|
...e.style
|
|
22872
22959
|
},
|
|
22873
|
-
onFocusCapture:
|
|
22874
|
-
onBlurCapture:
|
|
22875
|
-
onPointerDownCapture:
|
|
22960
|
+
onFocusCapture: ux(e.onFocusCapture, S.onFocusCapture),
|
|
22961
|
+
onBlurCapture: ux(e.onBlurCapture, S.onBlurCapture),
|
|
22962
|
+
onPointerDownCapture: ux(e.onPointerDownCapture, x.onPointerDownCapture)
|
|
22876
22963
|
});
|
|
22877
22964
|
});
|
|
22878
|
-
|
|
22879
|
-
var
|
|
22880
|
-
let n = N.useContext(
|
|
22965
|
+
Dx.displayName = xx;
|
|
22966
|
+
var Ox = "DismissableLayerBranch", kx = N.forwardRef((e, t) => {
|
|
22967
|
+
let n = N.useContext(Ex), r = N.useRef(null), i = px(t, r);
|
|
22881
22968
|
return N.useEffect(() => {
|
|
22882
22969
|
let e = r.current;
|
|
22883
22970
|
if (e) return n.branches.add(e), () => {
|
|
22884
22971
|
n.branches.delete(e);
|
|
22885
22972
|
};
|
|
22886
|
-
}, [n.branches]), /* @__PURE__ */ U(
|
|
22973
|
+
}, [n.branches]), /* @__PURE__ */ U(_x.div, {
|
|
22887
22974
|
...e,
|
|
22888
22975
|
ref: i
|
|
22889
22976
|
});
|
|
22890
22977
|
});
|
|
22891
|
-
|
|
22892
|
-
function
|
|
22893
|
-
let n =
|
|
22978
|
+
kx.displayName = Ox;
|
|
22979
|
+
function Ax(e, t = globalThis?.document) {
|
|
22980
|
+
let n = yx(e), r = N.useRef(!1), i = N.useRef(() => {});
|
|
22894
22981
|
return N.useEffect(() => {
|
|
22895
22982
|
let e = (e) => {
|
|
22896
22983
|
if (e.target && !r.current) {
|
|
22897
22984
|
let r = function() {
|
|
22898
|
-
|
|
22985
|
+
Nx(Cx, n, a, { discrete: !0 });
|
|
22899
22986
|
}, a = { originalEvent: e };
|
|
22900
22987
|
e.pointerType === "touch" ? (t.removeEventListener("click", i.current), i.current = r, t.addEventListener("click", i.current, { once: !0 })) : r();
|
|
22901
22988
|
} else t.removeEventListener("click", i.current);
|
|
@@ -22908,11 +22995,11 @@ function Ox(e, t = globalThis?.document) {
|
|
|
22908
22995
|
};
|
|
22909
22996
|
}, [t, n]), { onPointerDownCapture: () => r.current = !0 };
|
|
22910
22997
|
}
|
|
22911
|
-
function
|
|
22912
|
-
let n =
|
|
22998
|
+
function jx(e, t = globalThis?.document) {
|
|
22999
|
+
let n = yx(e), r = N.useRef(!1);
|
|
22913
23000
|
return N.useEffect(() => {
|
|
22914
23001
|
let e = (e) => {
|
|
22915
|
-
e.target && !r.current &&
|
|
23002
|
+
e.target && !r.current && Nx(wx, n, { originalEvent: e }, { discrete: !1 });
|
|
22916
23003
|
};
|
|
22917
23004
|
return t.addEventListener("focusin", e), () => t.removeEventListener("focusin", e);
|
|
22918
23005
|
}, [t, n]), {
|
|
@@ -22920,40 +23007,40 @@ function kx(e, t = globalThis?.document) {
|
|
|
22920
23007
|
onBlurCapture: () => r.current = !1
|
|
22921
23008
|
};
|
|
22922
23009
|
}
|
|
22923
|
-
function
|
|
22924
|
-
let e = new CustomEvent(
|
|
23010
|
+
function Mx() {
|
|
23011
|
+
let e = new CustomEvent(Sx);
|
|
22925
23012
|
document.dispatchEvent(e);
|
|
22926
23013
|
}
|
|
22927
|
-
function
|
|
23014
|
+
function Nx(e, t, n, { discrete: r }) {
|
|
22928
23015
|
let i = n.originalEvent.target, a = new CustomEvent(e, {
|
|
22929
23016
|
bubbles: !1,
|
|
22930
23017
|
cancelable: !0,
|
|
22931
23018
|
detail: n
|
|
22932
23019
|
});
|
|
22933
|
-
t && i.addEventListener(e, t, { once: !0 }), r ?
|
|
23020
|
+
t && i.addEventListener(e, t, { once: !0 }), r ? vx(i, a) : i.dispatchEvent(a);
|
|
22934
23021
|
}
|
|
22935
|
-
var
|
|
23022
|
+
var Px = Dx, Fx = kx, Ix = globalThis?.document ? N.useLayoutEffect : () => {}, Lx = "Portal", Rx = N.forwardRef((e, t) => {
|
|
22936
23023
|
let { container: n, ...r } = e, [i, a] = N.useState(!1);
|
|
22937
|
-
|
|
23024
|
+
Ix(() => a(!0), []);
|
|
22938
23025
|
let o = n || i && globalThis?.document?.body;
|
|
22939
|
-
return o ? nt.createPortal(/* @__PURE__ */ U(
|
|
23026
|
+
return o ? nt.createPortal(/* @__PURE__ */ U(_x.div, {
|
|
22940
23027
|
...r,
|
|
22941
23028
|
ref: t
|
|
22942
23029
|
}), o) : null;
|
|
22943
23030
|
});
|
|
22944
|
-
|
|
23031
|
+
Rx.displayName = Lx;
|
|
22945
23032
|
//#endregion
|
|
22946
|
-
//#region node_modules
|
|
22947
|
-
function
|
|
23033
|
+
//#region node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
23034
|
+
function zx(e, t) {
|
|
22948
23035
|
return N.useReducer((e, n) => t[e][n] ?? e, e);
|
|
22949
23036
|
}
|
|
22950
|
-
var
|
|
22951
|
-
let { present: t, children: n } = e, r =
|
|
23037
|
+
var Bx = (e) => {
|
|
23038
|
+
let { present: t, children: n } = e, r = Vx(t), i = typeof n == "function" ? n({ present: r.isPresent }) : N.Children.only(n), a = px(r.ref, Ux(i));
|
|
22952
23039
|
return typeof n == "function" || r.isPresent ? N.cloneElement(i, { ref: a }) : null;
|
|
22953
23040
|
};
|
|
22954
|
-
|
|
22955
|
-
function
|
|
22956
|
-
let [t, n] = N.useState(), r = N.useRef(null), i = N.useRef(e), a = N.useRef("none"), [o, s] =
|
|
23041
|
+
Bx.displayName = "Presence";
|
|
23042
|
+
function Vx(e) {
|
|
23043
|
+
let [t, n] = N.useState(), r = N.useRef(null), i = N.useRef(e), a = N.useRef("none"), [o, s] = zx(e ? "mounted" : "unmounted", {
|
|
22957
23044
|
mounted: {
|
|
22958
23045
|
UNMOUNT: "unmounted",
|
|
22959
23046
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -22965,18 +23052,18 @@ function zx(e) {
|
|
|
22965
23052
|
unmounted: { MOUNT: "mounted" }
|
|
22966
23053
|
});
|
|
22967
23054
|
return N.useEffect(() => {
|
|
22968
|
-
let e =
|
|
23055
|
+
let e = Hx(r.current);
|
|
22969
23056
|
a.current = o === "mounted" ? e : "none";
|
|
22970
|
-
}, [o]),
|
|
23057
|
+
}, [o]), Ix(() => {
|
|
22971
23058
|
let t = r.current, n = i.current;
|
|
22972
23059
|
if (n !== e) {
|
|
22973
|
-
let r = a.current, o =
|
|
23060
|
+
let r = a.current, o = Hx(t);
|
|
22974
23061
|
e ? s("MOUNT") : o === "none" || t?.display === "none" ? s("UNMOUNT") : s(n && r !== o ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
|
|
22975
23062
|
}
|
|
22976
|
-
}, [e, s]),
|
|
23063
|
+
}, [e, s]), Ix(() => {
|
|
22977
23064
|
if (t) {
|
|
22978
23065
|
let e, n = t.ownerDocument.defaultView ?? window, o = (a) => {
|
|
22979
|
-
let o =
|
|
23066
|
+
let o = Hx(r.current).includes(CSS.escape(a.animationName));
|
|
22980
23067
|
if (a.target === t && o && (s("ANIMATION_END"), !i.current)) {
|
|
22981
23068
|
let r = t.style.animationFillMode;
|
|
22982
23069
|
t.style.animationFillMode = "forwards", e = n.setTimeout(() => {
|
|
@@ -22984,7 +23071,7 @@ function zx(e) {
|
|
|
22984
23071
|
});
|
|
22985
23072
|
}
|
|
22986
23073
|
}, c = (e) => {
|
|
22987
|
-
e.target === t && (a.current =
|
|
23074
|
+
e.target === t && (a.current = Hx(r.current));
|
|
22988
23075
|
};
|
|
22989
23076
|
return t.addEventListener("animationstart", c), t.addEventListener("animationcancel", o), t.addEventListener("animationend", o), () => {
|
|
22990
23077
|
n.clearTimeout(e), t.removeEventListener("animationstart", c), t.removeEventListener("animationcancel", o), t.removeEventListener("animationend", o);
|
|
@@ -22997,18 +23084,18 @@ function zx(e) {
|
|
|
22997
23084
|
}, [])
|
|
22998
23085
|
};
|
|
22999
23086
|
}
|
|
23000
|
-
function
|
|
23087
|
+
function Hx(e) {
|
|
23001
23088
|
return e?.animationName || "none";
|
|
23002
23089
|
}
|
|
23003
|
-
function
|
|
23090
|
+
function Ux(e) {
|
|
23004
23091
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
23005
23092
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
23006
23093
|
}
|
|
23007
23094
|
//#endregion
|
|
23008
|
-
//#region node_modules
|
|
23009
|
-
var
|
|
23010
|
-
function
|
|
23011
|
-
let [i, a, o] =
|
|
23095
|
+
//#region node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
23096
|
+
var Wx = N.useInsertionEffect || Ix;
|
|
23097
|
+
function Gx({ prop: e, defaultProp: t, onChange: n = () => {}, caller: r }) {
|
|
23098
|
+
let [i, a, o] = Kx({
|
|
23012
23099
|
defaultProp: t,
|
|
23013
23100
|
onChange: n
|
|
23014
23101
|
}), s = e !== void 0, c = s ? e : i;
|
|
@@ -23021,7 +23108,7 @@ function Ux({ prop: e, defaultProp: t, onChange: n = () => {}, caller: r }) {
|
|
|
23021
23108
|
}
|
|
23022
23109
|
return [c, N.useCallback((t) => {
|
|
23023
23110
|
if (s) {
|
|
23024
|
-
let n =
|
|
23111
|
+
let n = qx(t) ? t(e) : t;
|
|
23025
23112
|
n !== e && o.current?.(n);
|
|
23026
23113
|
} else a(t);
|
|
23027
23114
|
}, [
|
|
@@ -23031,9 +23118,9 @@ function Ux({ prop: e, defaultProp: t, onChange: n = () => {}, caller: r }) {
|
|
|
23031
23118
|
o
|
|
23032
23119
|
])];
|
|
23033
23120
|
}
|
|
23034
|
-
function
|
|
23121
|
+
function Kx({ defaultProp: e, onChange: t }) {
|
|
23035
23122
|
let [n, r] = N.useState(e), i = N.useRef(n), a = N.useRef(t);
|
|
23036
|
-
return
|
|
23123
|
+
return Wx(() => {
|
|
23037
23124
|
a.current = t;
|
|
23038
23125
|
}, [t]), N.useEffect(() => {
|
|
23039
23126
|
i.current !== n && (a.current?.(n), i.current = n);
|
|
@@ -23043,12 +23130,12 @@ function Wx({ defaultProp: e, onChange: t }) {
|
|
|
23043
23130
|
a
|
|
23044
23131
|
];
|
|
23045
23132
|
}
|
|
23046
|
-
function
|
|
23133
|
+
function qx(e) {
|
|
23047
23134
|
return typeof e == "function";
|
|
23048
23135
|
}
|
|
23049
23136
|
//#endregion
|
|
23050
|
-
//#region node_modules
|
|
23051
|
-
var
|
|
23137
|
+
//#region node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
|
|
23138
|
+
var Jx = Object.freeze({
|
|
23052
23139
|
position: "absolute",
|
|
23053
23140
|
border: 0,
|
|
23054
23141
|
width: 1,
|
|
@@ -23059,22 +23146,22 @@ var Kx = Object.freeze({
|
|
|
23059
23146
|
clip: "rect(0, 0, 0, 0)",
|
|
23060
23147
|
whiteSpace: "nowrap",
|
|
23061
23148
|
wordWrap: "normal"
|
|
23062
|
-
}),
|
|
23149
|
+
}), Yx = "VisuallyHidden", Xx = N.forwardRef((e, t) => /* @__PURE__ */ U(_x.span, {
|
|
23063
23150
|
...e,
|
|
23064
23151
|
ref: t,
|
|
23065
23152
|
style: {
|
|
23066
|
-
...
|
|
23153
|
+
...Jx,
|
|
23067
23154
|
...e.style
|
|
23068
23155
|
}
|
|
23069
23156
|
}));
|
|
23070
|
-
|
|
23157
|
+
Xx.displayName = Yx;
|
|
23071
23158
|
//#endregion
|
|
23072
|
-
//#region node_modules
|
|
23073
|
-
var
|
|
23159
|
+
//#region node_modules/@radix-ui/react-toast/dist/index.mjs
|
|
23160
|
+
var Zx = "ToastProvider", [Qx, $x, eS] = gx("Toast"), [tS, nS] = mx("Toast", [eS]), [rS, iS] = tS(Zx), aS = (e) => {
|
|
23074
23161
|
let { __scopeToast: t, label: n = "Notification", duration: r = 5e3, swipeDirection: i = "right", swipeThreshold: a = 50, children: o } = e, [s, c] = N.useState(null), [l, u] = N.useState(0), d = N.useRef(!1), f = N.useRef(!1);
|
|
23075
|
-
return n.trim() || console.error(`Invalid prop \`label\` supplied to \`${
|
|
23162
|
+
return n.trim() || console.error(`Invalid prop \`label\` supplied to \`${Zx}\`. Expected non-empty \`string\`.`), /* @__PURE__ */ U(Qx.Provider, {
|
|
23076
23163
|
scope: t,
|
|
23077
|
-
children: /* @__PURE__ */ U(
|
|
23164
|
+
children: /* @__PURE__ */ U(rS, {
|
|
23078
23165
|
scope: t,
|
|
23079
23166
|
label: n,
|
|
23080
23167
|
duration: r,
|
|
@@ -23091,9 +23178,9 @@ var Yx = "ToastProvider", [Xx, Zx, Qx] = mx("Toast"), [$x, eS] = fx("Toast", [Qx
|
|
|
23091
23178
|
})
|
|
23092
23179
|
});
|
|
23093
23180
|
};
|
|
23094
|
-
|
|
23095
|
-
var
|
|
23096
|
-
let { __scopeToast: n, hotkey: r =
|
|
23181
|
+
aS.displayName = Zx;
|
|
23182
|
+
var oS = "ToastViewport", sS = ["F8"], cS = "toast.viewportPause", lS = "toast.viewportResume", uS = N.forwardRef((e, t) => {
|
|
23183
|
+
let { __scopeToast: n, hotkey: r = sS, label: i = "Notifications ({hotkey})", ...a } = e, o = iS(oS, n), s = $x(n), c = N.useRef(null), l = N.useRef(null), u = N.useRef(null), d = N.useRef(null), f = px(t, d, o.onViewportChange), p = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), m = o.toastCount > 0;
|
|
23097
23184
|
N.useEffect(() => {
|
|
23098
23185
|
let e = (e) => {
|
|
23099
23186
|
r.length !== 0 && r.every((t) => e[t] || e.code === t) && d.current?.focus();
|
|
@@ -23104,12 +23191,12 @@ var iS = "ToastViewport", aS = ["F8"], oS = "toast.viewportPause", sS = "toast.v
|
|
|
23104
23191
|
if (m && e && t) {
|
|
23105
23192
|
let n = () => {
|
|
23106
23193
|
if (!o.isClosePausedRef.current) {
|
|
23107
|
-
let e = new CustomEvent(
|
|
23194
|
+
let e = new CustomEvent(cS);
|
|
23108
23195
|
t.dispatchEvent(e), o.isClosePausedRef.current = !0;
|
|
23109
23196
|
}
|
|
23110
23197
|
}, r = () => {
|
|
23111
23198
|
if (o.isClosePausedRef.current) {
|
|
23112
|
-
let e = new CustomEvent(
|
|
23199
|
+
let e = new CustomEvent(lS);
|
|
23113
23200
|
t.dispatchEvent(e), o.isClosePausedRef.current = !1;
|
|
23114
23201
|
}
|
|
23115
23202
|
}, i = (t) => {
|
|
@@ -23124,7 +23211,7 @@ var iS = "ToastViewport", aS = ["F8"], oS = "toast.viewportPause", sS = "toast.v
|
|
|
23124
23211
|
}, [m, o.isClosePausedRef]);
|
|
23125
23212
|
let h = N.useCallback(({ tabbingDirection: e }) => {
|
|
23126
23213
|
let t = s().map((t) => {
|
|
23127
|
-
let n = t.ref.current, r = [n, ...
|
|
23214
|
+
let n = t.ref.current, r = [n, ...LS(n)];
|
|
23128
23215
|
return e === "forwards" ? r : r.reverse();
|
|
23129
23216
|
});
|
|
23130
23217
|
return (e === "forwards" ? t.reverse() : t).flat();
|
|
@@ -23141,45 +23228,45 @@ var iS = "ToastViewport", aS = ["F8"], oS = "toast.viewportPause", sS = "toast.v
|
|
|
23141
23228
|
return;
|
|
23142
23229
|
}
|
|
23143
23230
|
let i = h({ tabbingDirection: r ? "backwards" : "forwards" }), a = i.findIndex((e) => e === n);
|
|
23144
|
-
|
|
23231
|
+
RS(i.slice(a + 1)) ? t.preventDefault() : r ? l.current?.focus() : u.current?.focus();
|
|
23145
23232
|
}
|
|
23146
23233
|
};
|
|
23147
23234
|
return e.addEventListener("keydown", t), () => e.removeEventListener("keydown", t);
|
|
23148
23235
|
}
|
|
23149
|
-
}, [s, h]), /* @__PURE__ */ W(
|
|
23236
|
+
}, [s, h]), /* @__PURE__ */ W(Fx, {
|
|
23150
23237
|
ref: c,
|
|
23151
23238
|
role: "region",
|
|
23152
23239
|
"aria-label": i.replace("{hotkey}", p),
|
|
23153
23240
|
tabIndex: -1,
|
|
23154
23241
|
style: { pointerEvents: m ? void 0 : "none" },
|
|
23155
23242
|
children: [
|
|
23156
|
-
m && /* @__PURE__ */ U(
|
|
23243
|
+
m && /* @__PURE__ */ U(fS, {
|
|
23157
23244
|
ref: l,
|
|
23158
23245
|
onFocusFromOutsideViewport: () => {
|
|
23159
|
-
|
|
23246
|
+
RS(h({ tabbingDirection: "forwards" }));
|
|
23160
23247
|
}
|
|
23161
23248
|
}),
|
|
23162
|
-
/* @__PURE__ */ U(
|
|
23249
|
+
/* @__PURE__ */ U(Qx.Slot, {
|
|
23163
23250
|
scope: n,
|
|
23164
|
-
children: /* @__PURE__ */ U(
|
|
23251
|
+
children: /* @__PURE__ */ U(_x.ol, {
|
|
23165
23252
|
tabIndex: -1,
|
|
23166
23253
|
...a,
|
|
23167
23254
|
ref: f
|
|
23168
23255
|
})
|
|
23169
23256
|
}),
|
|
23170
|
-
m && /* @__PURE__ */ U(
|
|
23257
|
+
m && /* @__PURE__ */ U(fS, {
|
|
23171
23258
|
ref: u,
|
|
23172
23259
|
onFocusFromOutsideViewport: () => {
|
|
23173
|
-
|
|
23260
|
+
RS(h({ tabbingDirection: "backwards" }));
|
|
23174
23261
|
}
|
|
23175
23262
|
})
|
|
23176
23263
|
]
|
|
23177
23264
|
});
|
|
23178
23265
|
});
|
|
23179
|
-
|
|
23180
|
-
var
|
|
23181
|
-
let { __scopeToast: n, onFocusFromOutsideViewport: r, ...i } = e, a =
|
|
23182
|
-
return /* @__PURE__ */ U(
|
|
23266
|
+
uS.displayName = oS;
|
|
23267
|
+
var dS = "ToastFocusProxy", fS = N.forwardRef((e, t) => {
|
|
23268
|
+
let { __scopeToast: n, onFocusFromOutsideViewport: r, ...i } = e, a = iS(dS, n);
|
|
23269
|
+
return /* @__PURE__ */ U(Xx, {
|
|
23183
23270
|
tabIndex: 0,
|
|
23184
23271
|
...i,
|
|
23185
23272
|
ref: t,
|
|
@@ -23190,43 +23277,43 @@ var lS = "ToastFocusProxy", uS = N.forwardRef((e, t) => {
|
|
|
23190
23277
|
}
|
|
23191
23278
|
});
|
|
23192
23279
|
});
|
|
23193
|
-
|
|
23194
|
-
var
|
|
23195
|
-
let { forceMount: n, open: r, defaultOpen: i, onOpenChange: a, ...o } = e, [s, c] =
|
|
23280
|
+
fS.displayName = dS;
|
|
23281
|
+
var pS = "Toast", mS = "toast.swipeStart", hS = "toast.swipeMove", gS = "toast.swipeCancel", _S = "toast.swipeEnd", vS = N.forwardRef((e, t) => {
|
|
23282
|
+
let { forceMount: n, open: r, defaultOpen: i, onOpenChange: a, ...o } = e, [s, c] = Gx({
|
|
23196
23283
|
prop: r,
|
|
23197
23284
|
defaultProp: i ?? !0,
|
|
23198
23285
|
onChange: a,
|
|
23199
|
-
caller:
|
|
23286
|
+
caller: pS
|
|
23200
23287
|
});
|
|
23201
|
-
return /* @__PURE__ */ U(
|
|
23288
|
+
return /* @__PURE__ */ U(Bx, {
|
|
23202
23289
|
present: n || s,
|
|
23203
|
-
children: /* @__PURE__ */ U(
|
|
23290
|
+
children: /* @__PURE__ */ U(xS, {
|
|
23204
23291
|
open: s,
|
|
23205
23292
|
...o,
|
|
23206
23293
|
ref: t,
|
|
23207
23294
|
onClose: () => c(!1),
|
|
23208
|
-
onPause:
|
|
23209
|
-
onResume:
|
|
23210
|
-
onSwipeStart:
|
|
23295
|
+
onPause: yx(e.onPause),
|
|
23296
|
+
onResume: yx(e.onResume),
|
|
23297
|
+
onSwipeStart: ux(e.onSwipeStart, (e) => {
|
|
23211
23298
|
e.currentTarget.setAttribute("data-swipe", "start");
|
|
23212
23299
|
}),
|
|
23213
|
-
onSwipeMove:
|
|
23300
|
+
onSwipeMove: ux(e.onSwipeMove, (e) => {
|
|
23214
23301
|
let { x: t, y: n } = e.detail.delta;
|
|
23215
23302
|
e.currentTarget.setAttribute("data-swipe", "move"), e.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${t}px`), e.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${n}px`);
|
|
23216
23303
|
}),
|
|
23217
|
-
onSwipeCancel:
|
|
23304
|
+
onSwipeCancel: ux(e.onSwipeCancel, (e) => {
|
|
23218
23305
|
e.currentTarget.setAttribute("data-swipe", "cancel"), e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"), e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y");
|
|
23219
23306
|
}),
|
|
23220
|
-
onSwipeEnd:
|
|
23307
|
+
onSwipeEnd: ux(e.onSwipeEnd, (e) => {
|
|
23221
23308
|
let { x: t, y: n } = e.detail.delta;
|
|
23222
23309
|
e.currentTarget.setAttribute("data-swipe", "end"), e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), e.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${t}px`), e.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${n}px`), c(!1);
|
|
23223
23310
|
})
|
|
23224
23311
|
})
|
|
23225
23312
|
});
|
|
23226
23313
|
});
|
|
23227
|
-
|
|
23228
|
-
var [
|
|
23229
|
-
let { __scopeToast: n, type: r = "foreground", duration: i, open: a, onClose: o, onEscapeKeyDown: s, onPause: c, onResume: l, onSwipeStart: u, onSwipeMove: d, onSwipeCancel: f, onSwipeEnd: p, ...m } = e, h =
|
|
23314
|
+
vS.displayName = pS;
|
|
23315
|
+
var [yS, bS] = tS(pS, { onClose() {} }), xS = N.forwardRef((e, t) => {
|
|
23316
|
+
let { __scopeToast: n, type: r = "foreground", duration: i, open: a, onClose: o, onEscapeKeyDown: s, onPause: c, onResume: l, onSwipeStart: u, onSwipeMove: d, onSwipeCancel: f, onSwipeEnd: p, ...m } = e, h = iS(pS, n), [g, _] = N.useState(null), v = px(t, (e) => _(e)), y = N.useRef(null), b = N.useRef(null), x = i || h.duration, S = N.useRef(0), C = N.useRef(x), w = N.useRef(0), { onToastAdd: T, onToastRemove: E } = h, D = yx(() => {
|
|
23230
23317
|
g?.contains(document.activeElement) && h.viewport?.focus(), o();
|
|
23231
23318
|
}), O = N.useCallback((e) => {
|
|
23232
23319
|
!e || e === Infinity || (window.clearTimeout(w.current), S.current = (/* @__PURE__ */ new Date()).getTime(), w.current = window.setTimeout(D, e));
|
|
@@ -23240,8 +23327,8 @@ var [_S, vS] = $x(dS, { onClose() {} }), yS = N.forwardRef((e, t) => {
|
|
|
23240
23327
|
let e = (/* @__PURE__ */ new Date()).getTime() - S.current;
|
|
23241
23328
|
C.current -= e, window.clearTimeout(w.current), c?.();
|
|
23242
23329
|
};
|
|
23243
|
-
return e.addEventListener(
|
|
23244
|
-
e.removeEventListener(
|
|
23330
|
+
return e.addEventListener(cS, n), e.addEventListener(lS, t), () => {
|
|
23331
|
+
e.removeEventListener(cS, n), e.removeEventListener(lS, t);
|
|
23245
23332
|
};
|
|
23246
23333
|
}
|
|
23247
23334
|
}, [
|
|
@@ -23258,23 +23345,23 @@ var [_S, vS] = $x(dS, { onClose() {} }), yS = N.forwardRef((e, t) => {
|
|
|
23258
23345
|
h.isClosePausedRef,
|
|
23259
23346
|
O
|
|
23260
23347
|
]), N.useEffect(() => (T(), () => E()), [T, E]);
|
|
23261
|
-
let k = N.useMemo(() => g ?
|
|
23262
|
-
return h.viewport ? /* @__PURE__ */ W(Ge, { children: [k && /* @__PURE__ */ U(
|
|
23348
|
+
let k = N.useMemo(() => g ? MS(g) : null, [g]);
|
|
23349
|
+
return h.viewport ? /* @__PURE__ */ W(Ge, { children: [k && /* @__PURE__ */ U(SS, {
|
|
23263
23350
|
__scopeToast: n,
|
|
23264
23351
|
role: "status",
|
|
23265
23352
|
"aria-live": r === "foreground" ? "assertive" : "polite",
|
|
23266
23353
|
children: k
|
|
23267
|
-
}), /* @__PURE__ */ U(
|
|
23354
|
+
}), /* @__PURE__ */ U(yS, {
|
|
23268
23355
|
scope: n,
|
|
23269
23356
|
onClose: D,
|
|
23270
|
-
children: tt.createPortal(/* @__PURE__ */ U(
|
|
23357
|
+
children: tt.createPortal(/* @__PURE__ */ U(Qx.ItemSlot, {
|
|
23271
23358
|
scope: n,
|
|
23272
|
-
children: /* @__PURE__ */ U(
|
|
23359
|
+
children: /* @__PURE__ */ U(Px, {
|
|
23273
23360
|
asChild: !0,
|
|
23274
|
-
onEscapeKeyDown:
|
|
23361
|
+
onEscapeKeyDown: ux(s, () => {
|
|
23275
23362
|
h.isFocusedToastEscapeKeyDownRef.current || D(), h.isFocusedToastEscapeKeyDownRef.current = !1;
|
|
23276
23363
|
}),
|
|
23277
|
-
children: /* @__PURE__ */ U(
|
|
23364
|
+
children: /* @__PURE__ */ U(_x.li, {
|
|
23278
23365
|
tabIndex: 0,
|
|
23279
23366
|
"data-state": a ? "open" : "closed",
|
|
23280
23367
|
"data-swipe-direction": h.swipeDirection,
|
|
@@ -23285,16 +23372,16 @@ var [_S, vS] = $x(dS, { onClose() {} }), yS = N.forwardRef((e, t) => {
|
|
|
23285
23372
|
touchAction: "none",
|
|
23286
23373
|
...e.style
|
|
23287
23374
|
},
|
|
23288
|
-
onKeyDown:
|
|
23375
|
+
onKeyDown: ux(e.onKeyDown, (e) => {
|
|
23289
23376
|
e.key === "Escape" && (s?.(e.nativeEvent), e.nativeEvent.defaultPrevented || (h.isFocusedToastEscapeKeyDownRef.current = !0, D()));
|
|
23290
23377
|
}),
|
|
23291
|
-
onPointerDown:
|
|
23378
|
+
onPointerDown: ux(e.onPointerDown, (e) => {
|
|
23292
23379
|
e.button === 0 && (y.current = {
|
|
23293
23380
|
x: e.clientX,
|
|
23294
23381
|
y: e.clientY
|
|
23295
23382
|
});
|
|
23296
23383
|
}),
|
|
23297
|
-
onPointerMove:
|
|
23384
|
+
onPointerMove: ux(e.onPointerMove, (e) => {
|
|
23298
23385
|
if (!y.current) return;
|
|
23299
23386
|
let t = e.clientX - y.current.x, n = e.clientY - y.current.y, r = !!b.current, i = ["left", "right"].includes(h.swipeDirection), a = ["left", "up"].includes(h.swipeDirection) ? Math.min : Math.max, o = i ? a(0, t) : 0, s = i ? 0 : a(0, n), c = e.pointerType === "touch" ? 10 : 2, l = {
|
|
23300
23387
|
x: o,
|
|
@@ -23303,30 +23390,30 @@ var [_S, vS] = $x(dS, { onClose() {} }), yS = N.forwardRef((e, t) => {
|
|
|
23303
23390
|
originalEvent: e,
|
|
23304
23391
|
delta: l
|
|
23305
23392
|
};
|
|
23306
|
-
r ? (b.current = l,
|
|
23393
|
+
r ? (b.current = l, NS(hS, d, f, { discrete: !1 })) : PS(l, h.swipeDirection, c) ? (b.current = l, NS(mS, u, f, { discrete: !1 }), e.target.setPointerCapture(e.pointerId)) : (Math.abs(t) > c || Math.abs(n) > c) && (y.current = null);
|
|
23307
23394
|
}),
|
|
23308
|
-
onPointerUp:
|
|
23395
|
+
onPointerUp: ux(e.onPointerUp, (e) => {
|
|
23309
23396
|
let t = b.current, n = e.target;
|
|
23310
23397
|
if (n.hasPointerCapture(e.pointerId) && n.releasePointerCapture(e.pointerId), b.current = null, y.current = null, t) {
|
|
23311
23398
|
let n = e.currentTarget, r = {
|
|
23312
23399
|
originalEvent: e,
|
|
23313
23400
|
delta: t
|
|
23314
23401
|
};
|
|
23315
|
-
|
|
23402
|
+
PS(t, h.swipeDirection, h.swipeThreshold) ? NS(_S, p, r, { discrete: !0 }) : NS(gS, f, r, { discrete: !0 }), n.addEventListener("click", (e) => e.preventDefault(), { once: !0 });
|
|
23316
23403
|
}
|
|
23317
23404
|
})
|
|
23318
23405
|
})
|
|
23319
23406
|
})
|
|
23320
23407
|
}), h.viewport)
|
|
23321
23408
|
})] }) : null;
|
|
23322
|
-
}),
|
|
23323
|
-
let { __scopeToast: t, children: n, ...r } = e, i =
|
|
23324
|
-
return
|
|
23409
|
+
}), SS = (e) => {
|
|
23410
|
+
let { __scopeToast: t, children: n, ...r } = e, i = iS(pS, t), [a, o] = N.useState(!1), [s, c] = N.useState(!1);
|
|
23411
|
+
return FS(() => o(!0)), N.useEffect(() => {
|
|
23325
23412
|
let e = window.setTimeout(() => c(!0), 1e3);
|
|
23326
23413
|
return () => window.clearTimeout(e);
|
|
23327
|
-
}, []), s ? null : /* @__PURE__ */ U(
|
|
23414
|
+
}, []), s ? null : /* @__PURE__ */ U(Rx, {
|
|
23328
23415
|
asChild: !0,
|
|
23329
|
-
children: /* @__PURE__ */ U(
|
|
23416
|
+
children: /* @__PURE__ */ U(Xx, {
|
|
23330
23417
|
...r,
|
|
23331
23418
|
children: a && /* @__PURE__ */ W(Ge, { children: [
|
|
23332
23419
|
i.label,
|
|
@@ -23335,93 +23422,93 @@ var [_S, vS] = $x(dS, { onClose() {} }), yS = N.forwardRef((e, t) => {
|
|
|
23335
23422
|
] })
|
|
23336
23423
|
})
|
|
23337
23424
|
});
|
|
23338
|
-
},
|
|
23425
|
+
}, CS = "ToastTitle", wS = N.forwardRef((e, t) => {
|
|
23339
23426
|
let { __scopeToast: n, ...r } = e;
|
|
23340
|
-
return /* @__PURE__ */ U(
|
|
23427
|
+
return /* @__PURE__ */ U(_x.div, {
|
|
23341
23428
|
...r,
|
|
23342
23429
|
ref: t
|
|
23343
23430
|
});
|
|
23344
23431
|
});
|
|
23345
|
-
|
|
23346
|
-
var
|
|
23432
|
+
wS.displayName = CS;
|
|
23433
|
+
var TS = "ToastDescription", ES = N.forwardRef((e, t) => {
|
|
23347
23434
|
let { __scopeToast: n, ...r } = e;
|
|
23348
|
-
return /* @__PURE__ */ U(
|
|
23435
|
+
return /* @__PURE__ */ U(_x.div, {
|
|
23349
23436
|
...r,
|
|
23350
23437
|
ref: t
|
|
23351
23438
|
});
|
|
23352
23439
|
});
|
|
23353
|
-
|
|
23354
|
-
var
|
|
23440
|
+
ES.displayName = TS;
|
|
23441
|
+
var DS = "ToastAction", OS = N.forwardRef((e, t) => {
|
|
23355
23442
|
let { altText: n, ...r } = e;
|
|
23356
|
-
return n.trim() ? /* @__PURE__ */ U(
|
|
23443
|
+
return n.trim() ? /* @__PURE__ */ U(jS, {
|
|
23357
23444
|
altText: n,
|
|
23358
23445
|
asChild: !0,
|
|
23359
|
-
children: /* @__PURE__ */ U(
|
|
23446
|
+
children: /* @__PURE__ */ U(AS, {
|
|
23360
23447
|
...r,
|
|
23361
23448
|
ref: t
|
|
23362
23449
|
})
|
|
23363
|
-
}) : (console.error(`Invalid prop \`altText\` supplied to \`${
|
|
23450
|
+
}) : (console.error(`Invalid prop \`altText\` supplied to \`${DS}\`. Expected non-empty \`string\`.`), null);
|
|
23364
23451
|
});
|
|
23365
|
-
|
|
23366
|
-
var
|
|
23367
|
-
let { __scopeToast: n, ...r } = e, i =
|
|
23368
|
-
return /* @__PURE__ */ U(
|
|
23452
|
+
OS.displayName = DS;
|
|
23453
|
+
var kS = "ToastClose", AS = N.forwardRef((e, t) => {
|
|
23454
|
+
let { __scopeToast: n, ...r } = e, i = bS(kS, n);
|
|
23455
|
+
return /* @__PURE__ */ U(jS, {
|
|
23369
23456
|
asChild: !0,
|
|
23370
|
-
children: /* @__PURE__ */ U(
|
|
23457
|
+
children: /* @__PURE__ */ U(_x.button, {
|
|
23371
23458
|
type: "button",
|
|
23372
23459
|
...r,
|
|
23373
23460
|
ref: t,
|
|
23374
|
-
onClick:
|
|
23461
|
+
onClick: ux(e.onClick, i.onClose)
|
|
23375
23462
|
})
|
|
23376
23463
|
});
|
|
23377
23464
|
});
|
|
23378
|
-
|
|
23379
|
-
var
|
|
23465
|
+
AS.displayName = kS;
|
|
23466
|
+
var jS = N.forwardRef((e, t) => {
|
|
23380
23467
|
let { __scopeToast: n, altText: r, ...i } = e;
|
|
23381
|
-
return /* @__PURE__ */ U(
|
|
23468
|
+
return /* @__PURE__ */ U(_x.div, {
|
|
23382
23469
|
"data-radix-toast-announce-exclude": "",
|
|
23383
23470
|
"data-radix-toast-announce-alt": r || void 0,
|
|
23384
23471
|
...i,
|
|
23385
23472
|
ref: t
|
|
23386
23473
|
});
|
|
23387
23474
|
});
|
|
23388
|
-
function
|
|
23475
|
+
function MS(e) {
|
|
23389
23476
|
let t = [];
|
|
23390
23477
|
return Array.from(e.childNodes).forEach((e) => {
|
|
23391
|
-
if (e.nodeType === e.TEXT_NODE && e.textContent && t.push(e.textContent),
|
|
23478
|
+
if (e.nodeType === e.TEXT_NODE && e.textContent && t.push(e.textContent), IS(e)) {
|
|
23392
23479
|
let n = e.ariaHidden || e.hidden || e.style.display === "none", r = e.dataset.radixToastAnnounceExclude === "";
|
|
23393
23480
|
if (!n) if (r) {
|
|
23394
23481
|
let n = e.dataset.radixToastAnnounceAlt;
|
|
23395
23482
|
n && t.push(n);
|
|
23396
|
-
} else t.push(...
|
|
23483
|
+
} else t.push(...MS(e));
|
|
23397
23484
|
}
|
|
23398
23485
|
}), t;
|
|
23399
23486
|
}
|
|
23400
|
-
function
|
|
23487
|
+
function NS(e, t, n, { discrete: r }) {
|
|
23401
23488
|
let i = n.originalEvent.currentTarget, a = new CustomEvent(e, {
|
|
23402
23489
|
bubbles: !0,
|
|
23403
23490
|
cancelable: !0,
|
|
23404
23491
|
detail: n
|
|
23405
23492
|
});
|
|
23406
|
-
t && i.addEventListener(e, t, { once: !0 }), r ?
|
|
23493
|
+
t && i.addEventListener(e, t, { once: !0 }), r ? vx(i, a) : i.dispatchEvent(a);
|
|
23407
23494
|
}
|
|
23408
|
-
var
|
|
23495
|
+
var PS = (e, t, n = 0) => {
|
|
23409
23496
|
let r = Math.abs(e.x), i = Math.abs(e.y), a = r > i;
|
|
23410
23497
|
return t === "left" || t === "right" ? a && r > n : !a && i > n;
|
|
23411
23498
|
};
|
|
23412
|
-
function
|
|
23413
|
-
let t =
|
|
23414
|
-
|
|
23499
|
+
function FS(e = () => {}) {
|
|
23500
|
+
let t = yx(e);
|
|
23501
|
+
Ix(() => {
|
|
23415
23502
|
let e = 0, n = 0;
|
|
23416
23503
|
return e = window.requestAnimationFrame(() => n = window.requestAnimationFrame(t)), () => {
|
|
23417
23504
|
window.cancelAnimationFrame(e), window.cancelAnimationFrame(n);
|
|
23418
23505
|
};
|
|
23419
23506
|
}, [t]);
|
|
23420
23507
|
}
|
|
23421
|
-
function
|
|
23508
|
+
function IS(e) {
|
|
23422
23509
|
return e.nodeType === e.ELEMENT_NODE;
|
|
23423
23510
|
}
|
|
23424
|
-
function
|
|
23511
|
+
function LS(e) {
|
|
23425
23512
|
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
23426
23513
|
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
23427
23514
|
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
@@ -23429,83 +23516,83 @@ function FS(e) {
|
|
|
23429
23516
|
for (; n.nextNode();) t.push(n.currentNode);
|
|
23430
23517
|
return t;
|
|
23431
23518
|
}
|
|
23432
|
-
function
|
|
23519
|
+
function RS(e) {
|
|
23433
23520
|
let t = document.activeElement;
|
|
23434
23521
|
return e.some((e) => e === t ? !0 : (e.focus(), document.activeElement !== t));
|
|
23435
23522
|
}
|
|
23436
|
-
var
|
|
23523
|
+
var zS = aS, BS = uS, VS = vS, HS = wS, US = ES, WS = OS, GS = AS, KS = zS, qS = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ U(BS, {
|
|
23437
23524
|
ref: n,
|
|
23438
23525
|
className: o("fixed top-4 left-1/2 z-[100] flex max-h-screen w-fit max-w-[min(92vw,360px)] -translate-x-1/2 flex-col gap-2 p-0", e),
|
|
23439
23526
|
...t
|
|
23440
23527
|
}));
|
|
23441
|
-
|
|
23442
|
-
var
|
|
23528
|
+
qS.displayName = BS.displayName;
|
|
23529
|
+
var JS = qe("group pointer-events-auto relative flex w-fit max-w-[min(92vw,360px)] items-start gap-3 overflow-hidden rounded-md border px-4 py-3 pr-9 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2", {
|
|
23443
23530
|
variants: { variant: {
|
|
23444
23531
|
default: "border bg-background text-foreground",
|
|
23445
23532
|
destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
|
|
23446
23533
|
} },
|
|
23447
23534
|
defaultVariants: { variant: "default" }
|
|
23448
|
-
}),
|
|
23535
|
+
}), YS = N.forwardRef(({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ U(VS, {
|
|
23449
23536
|
ref: r,
|
|
23450
|
-
className: o(
|
|
23537
|
+
className: o(JS({ variant: t }), e),
|
|
23451
23538
|
...n
|
|
23452
23539
|
}));
|
|
23453
|
-
|
|
23454
|
-
var
|
|
23540
|
+
YS.displayName = VS.displayName;
|
|
23541
|
+
var XS = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ U(WS, {
|
|
23455
23542
|
ref: n,
|
|
23456
23543
|
className: o("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive", e),
|
|
23457
23544
|
...t
|
|
23458
23545
|
}));
|
|
23459
|
-
|
|
23460
|
-
var
|
|
23546
|
+
XS.displayName = WS.displayName;
|
|
23547
|
+
var ZS = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ U(GS, {
|
|
23461
23548
|
ref: n,
|
|
23462
23549
|
className: o("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600", e),
|
|
23463
23550
|
"toast-close": "",
|
|
23464
23551
|
...t,
|
|
23465
23552
|
children: /* @__PURE__ */ U(Le, { className: "h-4 w-4" })
|
|
23466
23553
|
}));
|
|
23467
|
-
|
|
23468
|
-
var
|
|
23554
|
+
ZS.displayName = GS.displayName;
|
|
23555
|
+
var QS = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ U(HS, {
|
|
23469
23556
|
ref: n,
|
|
23470
23557
|
className: o("text-sm font-semibold", e),
|
|
23471
23558
|
...t
|
|
23472
23559
|
}));
|
|
23473
|
-
|
|
23474
|
-
var
|
|
23560
|
+
QS.displayName = HS.displayName;
|
|
23561
|
+
var $S = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ U(US, {
|
|
23475
23562
|
ref: n,
|
|
23476
23563
|
className: o("text-sm opacity-90", e),
|
|
23477
23564
|
...t
|
|
23478
23565
|
}));
|
|
23479
|
-
|
|
23566
|
+
$S.displayName = US.displayName;
|
|
23480
23567
|
//#endregion
|
|
23481
23568
|
//#region src/components/ui/toaster.tsx
|
|
23482
|
-
function
|
|
23569
|
+
function eC() {
|
|
23483
23570
|
let { toasts: e } = T();
|
|
23484
|
-
return /* @__PURE__ */ W(
|
|
23485
|
-
return /* @__PURE__ */ W(
|
|
23571
|
+
return /* @__PURE__ */ W(KS, { children: [e.map(function({ id: e, title: t, description: n, action: r, ...i }) {
|
|
23572
|
+
return /* @__PURE__ */ W(YS, {
|
|
23486
23573
|
...i,
|
|
23487
23574
|
children: [
|
|
23488
23575
|
/* @__PURE__ */ W("div", {
|
|
23489
23576
|
className: "grid gap-1",
|
|
23490
|
-
children: [t && /* @__PURE__ */ U(
|
|
23577
|
+
children: [t && /* @__PURE__ */ U(QS, { children: t }), n && /* @__PURE__ */ U($S, { children: n })]
|
|
23491
23578
|
}),
|
|
23492
23579
|
r,
|
|
23493
|
-
/* @__PURE__ */ U(
|
|
23580
|
+
/* @__PURE__ */ U(ZS, {})
|
|
23494
23581
|
]
|
|
23495
23582
|
}, e);
|
|
23496
|
-
}), /* @__PURE__ */ U(
|
|
23583
|
+
}), /* @__PURE__ */ U(qS, {})] });
|
|
23497
23584
|
}
|
|
23498
23585
|
//#endregion
|
|
23499
23586
|
//#region src/lib/page-meta.ts
|
|
23500
|
-
function
|
|
23587
|
+
function tC(e) {
|
|
23501
23588
|
if (typeof e == "string") return e;
|
|
23502
23589
|
if (e instanceof Date && !Number.isNaN(e.getTime())) return e.toISOString();
|
|
23503
23590
|
}
|
|
23504
|
-
function
|
|
23591
|
+
function nC(e, t) {
|
|
23505
23592
|
if (e) return e.replace(/\{(\w+)\}/g, (e, n) => t[n] ?? "");
|
|
23506
23593
|
}
|
|
23507
|
-
function
|
|
23508
|
-
let { gitMeta: t, frontmatter: n, preferGitMeta: r = !0 } = e, i = Array.isArray(n?.authors) ? n.authors.filter((e) => typeof e == "string") : typeof n?.author == "string" ? [n.author] : [], a = t?.author ? [t.author] : [], o = r && a.length > 0 ? a : i, s =
|
|
23594
|
+
function rC(e) {
|
|
23595
|
+
let { gitMeta: t, frontmatter: n, preferGitMeta: r = !0 } = e, i = Array.isArray(n?.authors) ? n.authors.filter((e) => typeof e == "string") : typeof n?.author == "string" ? [n.author] : [], a = t?.author ? [t.author] : [], o = r && a.length > 0 ? a : i, s = tC(n?.lastUpdated);
|
|
23509
23596
|
return {
|
|
23510
23597
|
lastUpdated: r && t?.lastUpdated ? t.lastUpdated : s,
|
|
23511
23598
|
authors: o
|
|
@@ -23513,7 +23600,7 @@ function tC(e) {
|
|
|
23513
23600
|
}
|
|
23514
23601
|
//#endregion
|
|
23515
23602
|
//#region src/lib/rehype-toc.ts
|
|
23516
|
-
function
|
|
23603
|
+
function iC(e) {
|
|
23517
23604
|
return e.split(/(`[^`]+`|~~[^~]+~~)/g).filter(Boolean).map((e) => e.startsWith("`") && e.endsWith("`") ? {
|
|
23518
23605
|
type: "inlineCode",
|
|
23519
23606
|
value: e.slice(1, -1)
|
|
@@ -23528,38 +23615,38 @@ function nC(e) {
|
|
|
23528
23615
|
value: e
|
|
23529
23616
|
});
|
|
23530
23617
|
}
|
|
23531
|
-
function
|
|
23618
|
+
function aC(e) {
|
|
23532
23619
|
try {
|
|
23533
|
-
return e ? Array.isArray(e) ? e.map(
|
|
23620
|
+
return e ? Array.isArray(e) ? e.map(aC).join("") : e.type === "text" || e.type === "inlineCode" ? e.value || "" : typeof e == "object" && "children" in e && Array.isArray(e.children) ? e.children.map(aC).join("") : "" : "";
|
|
23534
23621
|
} catch {
|
|
23535
23622
|
return "";
|
|
23536
23623
|
}
|
|
23537
23624
|
}
|
|
23538
|
-
function
|
|
23625
|
+
function oC(e) {
|
|
23539
23626
|
try {
|
|
23540
|
-
return e ? Array.isArray(e) ? e.flatMap(
|
|
23627
|
+
return e ? Array.isArray(e) ? e.flatMap(oC) : e.type === "text" ? iC(e.value || "") : e.type === "inlineCode" ? [{
|
|
23541
23628
|
type: "inlineCode",
|
|
23542
23629
|
value: e.value || ""
|
|
23543
23630
|
}] : e.type === "strong" || e.type === "emphasis" || e.type === "delete" ? [{
|
|
23544
23631
|
type: e.type,
|
|
23545
|
-
children:
|
|
23632
|
+
children: oC(e.children || [])
|
|
23546
23633
|
}] : e.type === "link" ? [{
|
|
23547
23634
|
type: "link",
|
|
23548
23635
|
url: e.url,
|
|
23549
|
-
children:
|
|
23550
|
-
}] : typeof e == "object" && "children" in e && Array.isArray(e.children) ?
|
|
23636
|
+
children: oC(e.children || [])
|
|
23637
|
+
}] : typeof e == "object" && "children" in e && Array.isArray(e.children) ? oC(e.children) : [] : [];
|
|
23551
23638
|
} catch {
|
|
23552
23639
|
return [];
|
|
23553
23640
|
}
|
|
23554
23641
|
}
|
|
23555
|
-
function
|
|
23642
|
+
function sC(e = {}) {
|
|
23556
23643
|
let t = e.maxLevel || 3;
|
|
23557
23644
|
return (e) => {
|
|
23558
23645
|
let n = [], r = /* @__PURE__ */ new Map();
|
|
23559
23646
|
et(e, "heading", (e) => {
|
|
23560
23647
|
try {
|
|
23561
23648
|
if (e.depth > t) return;
|
|
23562
|
-
let i =
|
|
23649
|
+
let i = aC(e).trim(), a = oC(e.children || []);
|
|
23563
23650
|
if (!i) return;
|
|
23564
23651
|
let o = i.trim().toLowerCase().replace(/[^a-z0-9\u4e00-\u9fa5\s-]/g, "").replace(/\s+/g, "-"), s = r.get(o) || 0;
|
|
23565
23652
|
r.set(o, s + 1), s > 0 && (o = `${o}-${s}`);
|
|
@@ -23581,23 +23668,23 @@ function aC(e = {}) {
|
|
|
23581
23668
|
}
|
|
23582
23669
|
//#endregion
|
|
23583
23670
|
//#region src/app/DocsApp.tsx
|
|
23584
|
-
var
|
|
23585
|
-
function
|
|
23586
|
-
import("./MdxContent.lazy-
|
|
23671
|
+
var cC = L(() => import("./GlobalContextMenu-BtVjQk0v.js").then((e) => ({ default: e.GlobalContextMenu }))), lC = L(() => import("./MdxContent.lazy-D7XJ-ZHl.js"));
|
|
23672
|
+
function uC() {
|
|
23673
|
+
import("./MdxContent.lazy-D7XJ-ZHl.js");
|
|
23587
23674
|
}
|
|
23588
|
-
function
|
|
23675
|
+
function dC() {
|
|
23589
23676
|
globalThis.dispatchEvent(new Event("react-docs-ui:content-ready"));
|
|
23590
23677
|
}
|
|
23591
|
-
var
|
|
23592
|
-
function
|
|
23678
|
+
var fC = L(() => import("./AISelectionTrigger-SLyb8Vep.js").then((e) => e.n).then((e) => ({ default: e.AISelectionTrigger }))), pC = L(() => import("./AIChatDialog-BnAX3dRn.js").then((e) => e.n).then((e) => ({ default: e.AIChatDialog }))), mC = L(() => import("./AISettingsPanel-Bsd_wLP4.js").then((e) => e.n).then((e) => ({ default: e.AISettingsPanel })));
|
|
23679
|
+
function hC(e) {
|
|
23593
23680
|
let t = e.split("\n");
|
|
23594
23681
|
for (let e of t) if (e.startsWith("# ")) return e.slice(2).trim();
|
|
23595
23682
|
}
|
|
23596
|
-
var
|
|
23683
|
+
var gC = I({
|
|
23597
23684
|
config: null,
|
|
23598
23685
|
lang: "zh-cn"
|
|
23599
23686
|
});
|
|
23600
|
-
function
|
|
23687
|
+
function _C({ children: e }) {
|
|
23601
23688
|
let t = We(), n = V(() => t.lang || "zh-cn", [t.lang]), r = V(() => t.version, [t.version]), [i, a] = H(null);
|
|
23602
23689
|
return B(() => {
|
|
23603
23690
|
eb(n).then(a).catch(console.error);
|
|
@@ -23610,8 +23697,8 @@ function hC({ children: e }) {
|
|
|
23610
23697
|
children: e
|
|
23611
23698
|
});
|
|
23612
23699
|
}
|
|
23613
|
-
function
|
|
23614
|
-
let e = He(), [t, n] = H(null), [r, i] = H(() =>
|
|
23700
|
+
function vC() {
|
|
23701
|
+
let e = He(), [t, n] = H(null), [r, i] = H(() => sx()), [o, s] = H(!1), c = V(() => {
|
|
23615
23702
|
let t = e.pathname.split("/").filter(Boolean);
|
|
23616
23703
|
return t[0] === "en" || t[0] === "zh-cn" ? t[0] : "zh-cn";
|
|
23617
23704
|
}, [e.pathname]);
|
|
@@ -23619,13 +23706,13 @@ function gC() {
|
|
|
23619
23706
|
let e = !1;
|
|
23620
23707
|
return (async () => {
|
|
23621
23708
|
try {
|
|
23622
|
-
|
|
23709
|
+
rx();
|
|
23623
23710
|
let t = await eb(c);
|
|
23624
23711
|
if (!e) {
|
|
23625
23712
|
n(t), s(t?.ai?.enabled === !0);
|
|
23626
23713
|
let e = t?.mdx?.componentsPath || "/src/components", r = t?.mdx?.components;
|
|
23627
23714
|
if (t?.mdx?.enabled !== !1) try {
|
|
23628
|
-
i(await
|
|
23715
|
+
i(await ox(await ix(e), r));
|
|
23629
23716
|
} catch (e) {
|
|
23630
23717
|
console.warn("[MDX] 加载组件失败:", e);
|
|
23631
23718
|
}
|
|
@@ -23639,42 +23726,42 @@ function gC() {
|
|
|
23639
23726
|
}, [c]), /* @__PURE__ */ U(a, {
|
|
23640
23727
|
defaultTheme: "system",
|
|
23641
23728
|
storageKey: "vite-ui-theme",
|
|
23642
|
-
children: /* @__PURE__ */ U(
|
|
23729
|
+
children: /* @__PURE__ */ U(gC.Provider, {
|
|
23643
23730
|
value: {
|
|
23644
23731
|
config: t,
|
|
23645
23732
|
lang: c
|
|
23646
23733
|
},
|
|
23647
|
-
children: /* @__PURE__ */ U(
|
|
23734
|
+
children: /* @__PURE__ */ U(Qb, {
|
|
23648
23735
|
config: t,
|
|
23649
23736
|
lang: c,
|
|
23650
23737
|
children: /* @__PURE__ */ W(M, { children: [/* @__PURE__ */ U(f, {
|
|
23651
23738
|
components: r,
|
|
23652
|
-
children: /* @__PURE__ */ U(
|
|
23739
|
+
children: /* @__PURE__ */ U(_C, { children: /* @__PURE__ */ U(F, {
|
|
23653
23740
|
fallback: /* @__PURE__ */ U(ze, {}),
|
|
23654
|
-
children: /* @__PURE__ */ W(
|
|
23741
|
+
children: /* @__PURE__ */ W(cC, {
|
|
23655
23742
|
config: t?.contextMenu,
|
|
23656
23743
|
children: [o && /* @__PURE__ */ W(F, {
|
|
23657
23744
|
fallback: null,
|
|
23658
23745
|
children: [
|
|
23659
|
-
/* @__PURE__ */ U(
|
|
23660
|
-
/* @__PURE__ */ U(
|
|
23661
|
-
/* @__PURE__ */ U(
|
|
23746
|
+
/* @__PURE__ */ U(fC, {}),
|
|
23747
|
+
/* @__PURE__ */ U(pC, {}),
|
|
23748
|
+
/* @__PURE__ */ U(mC, {})
|
|
23662
23749
|
]
|
|
23663
23750
|
}), /* @__PURE__ */ U(ze, {})]
|
|
23664
23751
|
})
|
|
23665
23752
|
}) })
|
|
23666
|
-
}), /* @__PURE__ */ U(
|
|
23753
|
+
}), /* @__PURE__ */ U(eC, {})] })
|
|
23667
23754
|
})
|
|
23668
23755
|
})
|
|
23669
23756
|
});
|
|
23670
23757
|
}
|
|
23671
|
-
function
|
|
23758
|
+
function yC({ shikiBundle: e }) {
|
|
23672
23759
|
let t = We(), n = t.lang, r = t.version, i = t["*"], a = !!(n && n !== "en" && n !== "zh-cn"), o = V(() => n === "en" || n === "zh-cn" ? n : "zh-cn", [n]), [s, c] = H(null), [u, d] = H(null), [f, m] = H(null), [h, _] = H(null), [v, y] = H(), [b, S] = H(), [C, w] = H(!0), [T, E] = H(null), D = V(() => p(s, r) ? r : void 0, [s, r]), O = V(() => {
|
|
23673
23760
|
let e = (i || "").split("/").filter(Boolean);
|
|
23674
23761
|
return e.length > 0 ? e[0] : "";
|
|
23675
23762
|
}, [i]), { prev: k, next: A } = V(() => {
|
|
23676
23763
|
let e = D ? `/${o}/v/${D}/${i || ""}` : `/${o}/${i || ""}`;
|
|
23677
|
-
return
|
|
23764
|
+
return lx(s?.sidebar, e, O, D);
|
|
23678
23765
|
}, [
|
|
23679
23766
|
s?.sidebar,
|
|
23680
23767
|
o,
|
|
@@ -23696,7 +23783,7 @@ function _C({ shikiBundle: e }) {
|
|
|
23696
23783
|
};
|
|
23697
23784
|
}, [o]), B(() => {
|
|
23698
23785
|
let t = !1;
|
|
23699
|
-
if (w(!0), _(null), y(void 0), S(void 0),
|
|
23786
|
+
if (w(!0), _(null), y(void 0), S(void 0), uC(), a) return d("# 404 - Not Found\n\nThe page you're looking for could not be found."), m({
|
|
23700
23787
|
title: "Not Found",
|
|
23701
23788
|
toc: []
|
|
23702
23789
|
}), E(null), w(!1), () => {
|
|
@@ -23724,7 +23811,7 @@ function _C({ shikiBundle: e }) {
|
|
|
23724
23811
|
}
|
|
23725
23812
|
if (!g) throw Error(`Neither ${r} nor ${c} found`);
|
|
23726
23813
|
if (t) return;
|
|
23727
|
-
let { data: b, content: C } = rb(g), w = s?.toc?.maxLevel || 3, T = Wg().use($y).use(
|
|
23814
|
+
let { data: b, content: C } = rb(g), w = s?.toc?.maxLevel || 3, T = Wg().use($y).use(sC, { maxLevel: w }), E = (await T.run(T.parse(C))).data?.toc || [], O = hC(C);
|
|
23728
23815
|
m({
|
|
23729
23816
|
...b,
|
|
23730
23817
|
toc: E,
|
|
@@ -23762,18 +23849,18 @@ function _C({ shikiBundle: e }) {
|
|
|
23762
23849
|
e = !0;
|
|
23763
23850
|
};
|
|
23764
23851
|
}, [v, f?.title]), B(() => {
|
|
23765
|
-
!u || C || (
|
|
23852
|
+
!u || C || (dC(), x(u, s?.codeHighlight, e));
|
|
23766
23853
|
}, [
|
|
23767
23854
|
u,
|
|
23768
23855
|
C,
|
|
23769
23856
|
s?.codeHighlight,
|
|
23770
23857
|
e
|
|
23771
23858
|
]), !s) return /* @__PURE__ */ U("div", { children: "Loading..." });
|
|
23772
|
-
let j =
|
|
23859
|
+
let j = rC({
|
|
23773
23860
|
gitMeta: h ?? void 0,
|
|
23774
23861
|
frontmatter: f,
|
|
23775
23862
|
preferGitMeta: s.pageMeta?.preferGitMeta !== !1
|
|
23776
|
-
}), M = typeof f?.editUrl == "string" ? f.editUrl : s.editLink?.enabled === !1 ? void 0 :
|
|
23863
|
+
}), M = typeof f?.editUrl == "string" ? f.editUrl : s.editLink?.enabled === !1 ? void 0 : nC(s.editLink?.urlTemplate, {
|
|
23777
23864
|
lang: o,
|
|
23778
23865
|
version: D,
|
|
23779
23866
|
slug: i || "index",
|
|
@@ -23781,7 +23868,7 @@ function _C({ shikiBundle: e }) {
|
|
|
23781
23868
|
ext: b,
|
|
23782
23869
|
filePath: v
|
|
23783
23870
|
});
|
|
23784
|
-
return T ? /* @__PURE__ */ U(
|
|
23871
|
+
return T ? /* @__PURE__ */ U(Hb, {
|
|
23785
23872
|
lang: o,
|
|
23786
23873
|
config: s,
|
|
23787
23874
|
frontmatter: {
|
|
@@ -23796,7 +23883,7 @@ function _C({ shikiBundle: e }) {
|
|
|
23796
23883
|
className: "text-red-600",
|
|
23797
23884
|
children: [/* @__PURE__ */ U("h1", { children: "页面加载失败" }), /* @__PURE__ */ U("p", { children: T.message })]
|
|
23798
23885
|
})
|
|
23799
|
-
}) : /* @__PURE__ */ U(
|
|
23886
|
+
}) : /* @__PURE__ */ U(Hb, {
|
|
23800
23887
|
lang: o,
|
|
23801
23888
|
config: s,
|
|
23802
23889
|
frontmatter: f,
|
|
@@ -23811,7 +23898,7 @@ function _C({ shikiBundle: e }) {
|
|
|
23811
23898
|
availableLangs: ["zh-cn", "en"],
|
|
23812
23899
|
children: C && !u ? /* @__PURE__ */ U("div", { children: "Loading..." }) : /* @__PURE__ */ U(F, {
|
|
23813
23900
|
fallback: /* @__PURE__ */ U("div", { children: "Loading..." }),
|
|
23814
|
-
children: /* @__PURE__ */ U(
|
|
23901
|
+
children: /* @__PURE__ */ U(lC, {
|
|
23815
23902
|
source: u || "",
|
|
23816
23903
|
skipFirstH1: !!f?.title,
|
|
23817
23904
|
imageViewer: s?.imageViewer,
|
|
@@ -23821,33 +23908,33 @@ function _C({ shikiBundle: e }) {
|
|
|
23821
23908
|
})
|
|
23822
23909
|
});
|
|
23823
23910
|
}
|
|
23824
|
-
function
|
|
23911
|
+
function bC({ shikiBundle: e } = {}) {
|
|
23825
23912
|
return /* @__PURE__ */ U(Be, { router: V(() => Ve([{
|
|
23826
23913
|
path: "/",
|
|
23827
|
-
element: /* @__PURE__ */ U(
|
|
23914
|
+
element: /* @__PURE__ */ U(vC, {}),
|
|
23828
23915
|
children: [
|
|
23829
23916
|
{
|
|
23830
23917
|
index: !0,
|
|
23831
|
-
element: /* @__PURE__ */ U(
|
|
23918
|
+
element: /* @__PURE__ */ U(yC, { shikiBundle: e })
|
|
23832
23919
|
},
|
|
23833
23920
|
{
|
|
23834
23921
|
path: ":lang",
|
|
23835
|
-
element: /* @__PURE__ */ U(
|
|
23922
|
+
element: /* @__PURE__ */ U(yC, { shikiBundle: e })
|
|
23836
23923
|
},
|
|
23837
23924
|
{
|
|
23838
23925
|
path: ":lang/v/:version",
|
|
23839
|
-
element: /* @__PURE__ */ U(
|
|
23926
|
+
element: /* @__PURE__ */ U(yC, { shikiBundle: e })
|
|
23840
23927
|
},
|
|
23841
23928
|
{
|
|
23842
23929
|
path: ":lang/v/:version/*",
|
|
23843
|
-
element: /* @__PURE__ */ U(
|
|
23930
|
+
element: /* @__PURE__ */ U(yC, { shikiBundle: e })
|
|
23844
23931
|
},
|
|
23845
23932
|
{
|
|
23846
23933
|
path: ":lang/*",
|
|
23847
|
-
element: /* @__PURE__ */ U(
|
|
23934
|
+
element: /* @__PURE__ */ U(yC, { shikiBundle: e })
|
|
23848
23935
|
}
|
|
23849
23936
|
]
|
|
23850
23937
|
}]), [e]) });
|
|
23851
23938
|
}
|
|
23852
23939
|
//#endregion
|
|
23853
|
-
export { Rt as A, _t as B, un as C, en as D, rn as E, Et as F, xt as G, dt as H, ct as I, ht as J, St as K, vt as L, zt as M, Lt as N, Ht as O, Ot as P, gt as R, eb as S, an as T, pt as U, bt as V, yt as W, lt as X, mt as Y, Mb as _,
|
|
23940
|
+
export { Rt as A, _t as B, un as C, en as D, rn as E, Et as F, xt as G, dt as H, ct as I, ht as J, St as K, vt as L, zt as M, Lt as N, Ht as O, Ot as P, gt as R, eb as S, an as T, pt as U, bt as V, yt as W, lt as X, mt as Y, Mb as _, ax as a, jb as b, rx as c, Zb as d, Hb as f, Eb as g, Pb as h, lx as i, Bt as j, Vt as k, ix as l, Ib as m, uC as n, ox as o, Rb as p, ft as q, sC as r, cx as s, bC as t, Qb as u, Db as v, on as w, Nb as x, Ob as y, ut as z };
|