@aiquants/markdown 12.2.1 → 12.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/dist/{abnfDiagram-VRR7QNED-CBpBnfY2.cjs → abnfDiagram-VRR7QNED-1fn6qV_P.cjs} +1 -1
- package/dist/{abnfDiagram-VRR7QNED-DfXbTqjh.js → abnfDiagram-VRR7QNED-DQ52KUbH.js} +3 -3
- package/dist/{arc-i1LLtFAY.cjs → arc-D8xGHwLe.cjs} +1 -1
- package/dist/{arc-SwVEWxG-.js → arc-D9kg3f8-.js} +1 -1
- package/dist/{architectureDiagram-ZJ3FMSHR-mtDK4cwq.cjs → architectureDiagram-ZJ3FMSHR-C4QxQA-o.cjs} +1 -1
- package/dist/{architectureDiagram-ZJ3FMSHR-U_pWpndb.js → architectureDiagram-ZJ3FMSHR-Cc9gQRX2.js} +2 -2
- package/dist/{blockDiagram-677ZJIJ3-09mZA62D.cjs → blockDiagram-677ZJIJ3-BCgCtZXM.cjs} +1 -1
- package/dist/{blockDiagram-677ZJIJ3-DaMXfbBZ.js → blockDiagram-677ZJIJ3-DIpIE77y.js} +3 -3
- package/dist/{c4Diagram-LMCZKHZV-CLofA9zh.js → c4Diagram-LMCZKHZV-jgR25uUP.js} +2 -2
- package/dist/{c4Diagram-LMCZKHZV-DWjHOW7P.cjs → c4Diagram-LMCZKHZV-q0iHoZqg.cjs} +1 -1
- package/dist/{channel-Dl2sOuEn.js → channel-Bw3o-12p.js} +1 -1
- package/dist/{channel-CQoj-afO.cjs → channel-DuWQwUVP.cjs} +1 -1
- package/dist/{chunk-2Q5K7J3B-CKPbsraT.js → chunk-2Q5K7J3B-0amJDSXB.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-CEUXgiDQ.cjs → chunk-2Q5K7J3B-gCP3NILS.cjs} +1 -1
- package/dist/{chunk-32BRIVSS-CSloQ7s4.js → chunk-32BRIVSS-BMqTi8UH.js} +1 -1
- package/dist/{chunk-32BRIVSS-BUpbARO6.cjs → chunk-32BRIVSS-PidRQo43.cjs} +1 -1
- package/dist/{chunk-5VM5RSS4-Bi4r4BMv.cjs → chunk-5VM5RSS4-C0OtlojA.cjs} +1 -1
- package/dist/{chunk-5VM5RSS4-DnY6RxJd.js → chunk-5VM5RSS4-EGE3VaH8.js} +1 -1
- package/dist/{chunk-EX3LRPZG-Dj5dcbgv.cjs → chunk-EX3LRPZG-4qSuVZkz.cjs} +1 -1
- package/dist/{chunk-EX3LRPZG-tOgHFiZ3.js → chunk-EX3LRPZG-wasnZ2h7.js} +4 -4
- package/dist/{chunk-JWPE2WC7-k67jLZJ7.cjs → chunk-JWPE2WC7-CHK_g5p5.cjs} +1 -1
- package/dist/{chunk-JWPE2WC7-Bhm6M6wC.js → chunk-JWPE2WC7-O891tu2Q.js} +1 -1
- package/dist/{chunk-MOJQB5TN-FdExe_-9.cjs → chunk-MOJQB5TN-BSfpWEVd.cjs} +1 -1
- package/dist/{chunk-MOJQB5TN-9753BB9c.js → chunk-MOJQB5TN-BzuZr6pz.js} +1 -1
- package/dist/{chunk-PUDLZKDR-D1FbiHYm.js → chunk-PUDLZKDR-BRL3efwE.js} +6 -6
- package/dist/{chunk-PUDLZKDR-D0K6eTN9.cjs → chunk-PUDLZKDR-DNbm7Xzd.cjs} +1 -1
- package/dist/{chunk-RYQCIY6F-BTRnFcRY.cjs → chunk-RYQCIY6F-B_33Thwg.cjs} +1 -1
- package/dist/{chunk-RYQCIY6F-DDGOfO1d.js → chunk-RYQCIY6F-DwmsCCiA.js} +1 -1
- package/dist/{chunk-V7JOEXUC-B_5ply0Z.cjs → chunk-V7JOEXUC-BowEdIo-.cjs} +1 -1
- package/dist/{chunk-V7JOEXUC-YddVyhzx.js → chunk-V7JOEXUC-D0oynREN.js} +5 -5
- package/dist/{chunk-VR4S4FIN-h3qCNGDA.cjs → chunk-VR4S4FIN-Ca3mlCgX.cjs} +1 -1
- package/dist/{chunk-VR4S4FIN-DYEB0iUI.js → chunk-VR4S4FIN-Dg_3SNs1.js} +1 -1
- package/dist/{chunk-XXDRQBXY-CXTX2F5M.js → chunk-XXDRQBXY-Byo5u3b_.js} +1 -1
- package/dist/{chunk-XXDRQBXY-Dn3UHIR-.cjs → chunk-XXDRQBXY-CeZMmeIi.cjs} +1 -1
- package/dist/{classDiagram-v2-EOCWNBFH-Bygloau7.js → classDiagram-OUVF2IWQ-CVu4_B8x.js} +2 -2
- package/dist/{classDiagram-OUVF2IWQ-BZRw3Il9.cjs → classDiagram-OUVF2IWQ-DPzttpgE.cjs} +1 -1
- package/dist/{classDiagram-OUVF2IWQ-Bygloau7.js → classDiagram-v2-EOCWNBFH-CVu4_B8x.js} +2 -2
- package/dist/{classDiagram-v2-EOCWNBFH-BZRw3Il9.cjs → classDiagram-v2-EOCWNBFH-DPzttpgE.cjs} +1 -1
- package/dist/components/mdastNodes/MathNode.d.ts +7 -0
- package/dist/converter.wasm +0 -0
- package/dist/{cose-bilkent-JH36ORCC-DpqqWegk.js → cose-bilkent-JH36ORCC-BmM-AQ-j.js} +1 -1
- package/dist/{cose-bilkent-JH36ORCC-BeacL0Ew.cjs → cose-bilkent-JH36ORCC-C3UAMvQQ.cjs} +1 -1
- package/dist/{cynefinDiagram-TSTJHNR4-CB8X1jFh.cjs → cynefinDiagram-TSTJHNR4-DStGofoE.cjs} +1 -1
- package/dist/{cynefinDiagram-TSTJHNR4-DTqoE65U.js → cynefinDiagram-TSTJHNR4-iS4n-7T_.js} +2 -2
- package/dist/{dagre-VKFMJZFB-CC9EQKtT.cjs → dagre-VKFMJZFB-BXsQ5-Ek.cjs} +1 -1
- package/dist/{dagre-VKFMJZFB-CXjbVzxo.js → dagre-VKFMJZFB-C1Y6S6Dm.js} +2 -2
- package/dist/{diagram-FQU43EPY-B8x8fTKN.js → diagram-FQU43EPY-CFG9AlAq.js} +2 -2
- package/dist/{diagram-FQU43EPY-pkT8NaMb.cjs → diagram-FQU43EPY-CRXs7mU1.cjs} +1 -1
- package/dist/{diagram-G47NLZAW-DqNB9k7X.cjs → diagram-G47NLZAW-BaX-jrfs.cjs} +1 -1
- package/dist/{diagram-G47NLZAW-YJY1vw-z.js → diagram-G47NLZAW-Bqr76Qn5.js} +3 -3
- package/dist/{diagram-NH7WQ7WH-6S5rssLn.js → diagram-NH7WQ7WH-BDWfQ8xs.js} +2 -2
- package/dist/{diagram-NH7WQ7WH-e_5r7YfA.cjs → diagram-NH7WQ7WH-Cczq2y99.cjs} +1 -1
- package/dist/{diagram-OA4YK3LP-CXQnLyDQ.js → diagram-OA4YK3LP-DuW90Uhk.js} +3 -3
- package/dist/{diagram-OA4YK3LP-gAuJXOZ8.cjs → diagram-OA4YK3LP-uBVV8yBB.cjs} +1 -1
- package/dist/{diagram-WEI45ONY-PgR9S6g1.cjs → diagram-WEI45ONY-C_L-4kui.cjs} +1 -1
- package/dist/{diagram-WEI45ONY-ixyUSYN0.js → diagram-WEI45ONY-Cd3qe8Wi.js} +2 -2
- package/dist/{ebnfDiagram-CCIWWBDH-KryWrZHM.js → ebnfDiagram-CCIWWBDH-CMmTdVTT.js} +3 -3
- package/dist/{ebnfDiagram-CCIWWBDH-y4KbiCN5.cjs → ebnfDiagram-CCIWWBDH-Cg7DTSlM.cjs} +1 -1
- package/dist/{erDiagram-Q63AITRT-D8vW6pbx.cjs → erDiagram-Q63AITRT-ONnVKrzr.cjs} +1 -1
- package/dist/{erDiagram-Q63AITRT-B11QNISq.js → erDiagram-Q63AITRT-tOZoI25O.js} +4 -4
- package/dist/{extractHeadings-9PqrYAM2.js → extractHeadings-3qWVTkb9.js} +445 -418
- package/dist/{extractHeadings-BXiMC-GU.cjs → extractHeadings-DpvwXCio.cjs} +3 -3
- package/dist/flowDiagram-23GEKE2U-DfDAl_qd.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-p6ccACf3.js +7 -0
- package/dist/{ganttDiagram-NO4QXBWP-DZTm-SVx.js → ganttDiagram-NO4QXBWP-C23vm5cK.js} +2 -2
- package/dist/{ganttDiagram-NO4QXBWP-D8Y9jimu.cjs → ganttDiagram-NO4QXBWP-CHP_muri.cjs} +1 -1
- package/dist/{gitGraphDiagram-IHSO6WYX-CJbZ5ZvO.js → gitGraphDiagram-IHSO6WYX-BXWses91.js} +3 -3
- package/dist/{gitGraphDiagram-IHSO6WYX-DbYXrclf.cjs → gitGraphDiagram-IHSO6WYX-DOH3WBNZ.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.client.cjs +1 -1
- package/dist/index.client.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{infoDiagram-FWYZ7A6U-D5RCO_vv.cjs → infoDiagram-FWYZ7A6U-Bj2fnr5Y.cjs} +1 -1
- package/dist/{infoDiagram-FWYZ7A6U-B50T5vm2.js → infoDiagram-FWYZ7A6U-C4NsbHAN.js} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-CDedQKau.js → ishikawaDiagram-FXEZZL3T-B2bMsFnl.js} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-Csx1NBdz.cjs → ishikawaDiagram-FXEZZL3T-Cjqwv-T2.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-DtiYwhDm.js → journeyDiagram-5HDEW3XC-DO1Xx-OE.js} +4 -4
- package/dist/{journeyDiagram-5HDEW3XC-a80p1mpy.cjs → journeyDiagram-5HDEW3XC-DfRiiYRf.cjs} +1 -1
- package/dist/{kanban-definition-HUTT4EX6-D9SadN7G.cjs → kanban-definition-HUTT4EX6-Cu_E-BJj.cjs} +1 -1
- package/dist/{kanban-definition-HUTT4EX6-I9eVeuC0.js → kanban-definition-HUTT4EX6-RfpoaM17.js} +2 -2
- package/dist/{linear-0P_8Ivdd.js → linear-BbWOUIQi.js} +1 -1
- package/dist/{linear-DXqXAu27.cjs → linear-Cz3x9Lkl.cjs} +1 -1
- package/dist/{mindmap-definition-LN4V7U3C-CFZpZpE0.js → mindmap-definition-LN4V7U3C-B5LpvJ9m.js} +3 -3
- package/dist/{mindmap-definition-LN4V7U3C-BkehNbGL.cjs → mindmap-definition-LN4V7U3C-CB606E3L.cjs} +1 -1
- package/dist/{pegDiagram-2B236MQR-BfOxwgjO.cjs → pegDiagram-2B236MQR-BCqBc3Re.cjs} +1 -1
- package/dist/{pegDiagram-2B236MQR-DjCc1Quh.js → pegDiagram-2B236MQR-DaosueJV.js} +3 -3
- package/dist/{pieDiagram-ENE6RG2P-Cak5M9yn.cjs → pieDiagram-ENE6RG2P-BUY2Dvjo.cjs} +1 -1
- package/dist/{pieDiagram-ENE6RG2P-BPZ7HAvt.js → pieDiagram-ENE6RG2P-wfsOfWyT.js} +3 -3
- package/dist/{quadrantDiagram-ABIIQ3AL-55hF84Fw.cjs → quadrantDiagram-ABIIQ3AL-BSvHqsTp.cjs} +1 -1
- package/dist/{quadrantDiagram-ABIIQ3AL-D104Wy4Z.js → quadrantDiagram-ABIIQ3AL-Bgc3vspL.js} +2 -2
- package/dist/{railroadDiagram-RFXS5EU6-DcKZ88rg.cjs → railroadDiagram-RFXS5EU6-DdF2c_n3.cjs} +1 -1
- package/dist/{railroadDiagram-RFXS5EU6-JxXkyrZQ.js → railroadDiagram-RFXS5EU6-Du2CFU9M.js} +3 -3
- package/dist/{requirementDiagram-TGXJPOKE-MV4pfoX4.js → requirementDiagram-TGXJPOKE-CnafqSUP.js} +3 -3
- package/dist/{requirementDiagram-TGXJPOKE-DPs0Ihw7.cjs → requirementDiagram-TGXJPOKE-WM3sItRw.cjs} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-DOV_mdAU.js → sankeyDiagram-HTMAVEWB-D4Qv4d98.js} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-C5XpxThf.cjs → sankeyDiagram-HTMAVEWB-DaZN3ZDb.cjs} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-0J_xPyLe.cjs → sequenceDiagram-DBY2YBRQ-C6fa7Axs.cjs} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-CGbFTj5V.js → sequenceDiagram-DBY2YBRQ-CmP6XGGE.js} +3 -3
- package/dist/{sizeCapture-X5ZJPWSS-DgTVF2P9.cjs → sizeCapture-X5ZJPWSS-B6sRQba9.cjs} +1 -1
- package/dist/{sizeCapture-X5ZJPWSS-BBd4os7j.js → sizeCapture-X5ZJPWSS-mWZkTwA5.js} +1 -1
- package/dist/{stateDiagram-2N3HPSRC-DzuNZ3I1.cjs → stateDiagram-2N3HPSRC-B__29zPZ.cjs} +1 -1
- package/dist/{stateDiagram-2N3HPSRC-ByQZMt4V.js → stateDiagram-2N3HPSRC-ClDZKhLD.js} +2 -2
- package/dist/{stateDiagram-v2-6OUMAXLB-pdxYI04k.cjs → stateDiagram-v2-6OUMAXLB-BA-_ovVY.cjs} +1 -1
- package/dist/{stateDiagram-v2-6OUMAXLB-Dy3F4gdh.js → stateDiagram-v2-6OUMAXLB-K7slPgH_.js} +2 -2
- package/dist/styles/markdown.css +1 -1
- package/dist/styles/markdown.standalone.css +1 -1
- package/dist/{swimlanes-5IMT3BWC-RzXk2ZsR.cjs → swimlanes-5IMT3BWC-BhxZhB7M.cjs} +1 -1
- package/dist/{swimlanes-5IMT3BWC-6i8hPBJr.js → swimlanes-5IMT3BWC-Cpowlk7O.js} +3 -3
- package/dist/{swimlanesDiagram-G3AALYLV-C6aFaQGO.js → swimlanesDiagram-G3AALYLV-36K4ynZn.js} +2 -2
- package/dist/{swimlanesDiagram-G3AALYLV-BdbEkuk7.cjs → swimlanesDiagram-G3AALYLV-BZ0eguZa.cjs} +1 -1
- package/dist/{timeline-definition-FHXFAJF6--ngcmo2O.cjs → timeline-definition-FHXFAJF6-BJN69nkZ.cjs} +1 -1
- package/dist/{timeline-definition-FHXFAJF6-HwXvlWGt.js → timeline-definition-FHXFAJF6-C2xHtlkw.js} +2 -2
- package/dist/{vennDiagram-L72KCM5P-rD2w7pAb.cjs → vennDiagram-L72KCM5P-3R1vuMWd.cjs} +1 -1
- package/dist/{vennDiagram-L72KCM5P-CEMDoE35.js → vennDiagram-L72KCM5P-DbqRaWm5.js} +1 -1
- package/dist/{wardleyDiagram-EHGQE667-CAaRrppH.js → wardleyDiagram-EHGQE667-CF5I0pM9.js} +2 -2
- package/dist/{wardleyDiagram-EHGQE667-DfYFaC8_.cjs → wardleyDiagram-EHGQE667-CyU76ilz.cjs} +1 -1
- package/dist/{xychartDiagram-FW5EYKEG-By9uEzY0.cjs → xychartDiagram-FW5EYKEG-DaKE_uIg.cjs} +1 -1
- package/dist/{xychartDiagram-FW5EYKEG-DaD79epL.js → xychartDiagram-FW5EYKEG-spkx-w6w.js} +2 -2
- package/package.json +7 -7
- package/dist/flowDiagram-23GEKE2U-BY2Fc_n3.cjs +0 -1
- package/dist/flowDiagram-23GEKE2U-DKG5Q_i5.js +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Ex, { useRef as gt, useCallback as mt, useState as
|
|
1
|
+
import Ex, { useRef as gt, useCallback as mt, useState as ct, useLayoutEffect as ve, forwardRef as nu, createElement as _n, Component as Fx, useSyncExternalStore as Uo, useEffect as Rt, useId as Je, memo as Ol, useMemo as Mt, Suspense as Ax, use as Mx, Fragment as lu, useEffectEvent as $x, isValidElement as Ox } from "react";
|
|
2
2
|
import { c as Ix, d as Rx, b as Px, e as Dx, i as Nx, f as zx, g as qx, N as hu, h as jx } from "./linkCards-1JxY8wdm.js";
|
|
3
3
|
import { i as Wx, a as Bn, b as Hh, r as Hx } from "./providers-BwQK7hZa.js";
|
|
4
4
|
import { CONTENT_ALIGNS as ja, DEFAULT_CONTENT_ALIGN as Yx, DEFAULT_MARKDOWN_STYLES as Ux } from "./viewer-settings.js";
|
|
@@ -36,7 +36,7 @@ const Wi = (e, t) => {
|
|
|
36
36
|
embeddedVideo: { text: "embedded video", lang: "en" },
|
|
37
37
|
embeddedPost: { text: "embedded post", lang: "en" },
|
|
38
38
|
embeddedFrame: { text: "Embedded content", lang: "en" }
|
|
39
|
-
}),
|
|
39
|
+
}), lI = xa(Ca), Cu = (e) => Wi(Ca, e), yC = Cu(void 0);
|
|
40
40
|
function xC(e) {
|
|
41
41
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
42
42
|
}
|
|
@@ -314,7 +314,7 @@ const Gh = Object.freeze({ display: "flex", flexDirection: "row", inlineSize: "1
|
|
|
314
314
|
overlaysScrollbars: l === 0 && t.offsetWidth > 0 && t.offsetWidth === t.clientWidth
|
|
315
315
|
};
|
|
316
316
|
}, LC = (e, t, r, i, o) => {
|
|
317
|
-
const [s, a] =
|
|
317
|
+
const [s, a] = ct(Vh), n = gt(o), l = gt(0);
|
|
318
318
|
return ve(() => {
|
|
319
319
|
n.current = o;
|
|
320
320
|
}), ve(() => {
|
|
@@ -677,8 +677,8 @@ const YC = [
|
|
|
677
677
|
] })
|
|
678
678
|
] }), ib = ({ href: e, endpoint: t, size: r, fallback: i }) => {
|
|
679
679
|
const o = Il(), s = gt(null), a = new URL(e), n = `${t}
|
|
680
|
-
${a.href}`, [l, c] =
|
|
681
|
-
|
|
680
|
+
${a.href}`, [l, c] = ct(null);
|
|
681
|
+
Rt(() => {
|
|
682
682
|
const x = s.current;
|
|
683
683
|
if (x === null || o === null) return;
|
|
684
684
|
let C = null;
|
|
@@ -793,8 +793,8 @@ const rc = (e) => {
|
|
|
793
793
|
}
|
|
794
794
|
return { kind: "frame", src: s };
|
|
795
795
|
}, ub = ({ resolution: e, caption: t, fallback: r, theme: i, labels: o }) => {
|
|
796
|
-
const s = Il(), a = KC(), [n, l] =
|
|
797
|
-
|
|
796
|
+
const s = Il(), a = KC(), [n, l] = ct(null), [c, h] = ct(null), d = e.kind === "lookup" ? e.request.href : null, [f, u] = ct(null);
|
|
797
|
+
Rt(() => {
|
|
798
798
|
if (d !== null)
|
|
799
799
|
return sb.subscribe(
|
|
800
800
|
d,
|
|
@@ -4042,7 +4042,7 @@ var An = /* @__PURE__ */ g((e, t, { depth: r = 2, clobber: i = !1 } = {}) => {
|
|
|
4042
4042
|
return _o = r, zu(_o), _o;
|
|
4043
4043
|
}, "updateCurrentConfig"), N1 = /* @__PURE__ */ g((e) => (Ce = Vt({}, Hi), Ce = Vt(Ce, e), e.theme && ur[e.theme] && (Ce.themeVariables = ur[e.theme].getThemeVariables(e.themeVariables)), wa(Ce, Zr), Ce), "setSiteConfig"), z1 = /* @__PURE__ */ g((e) => {
|
|
4044
4044
|
zs = Vt({}, e);
|
|
4045
|
-
}, "saveConfigFromInitialize"), q1 = /* @__PURE__ */ g((e) => (Ce = Vt(Ce, e), wa(Ce, Zr), Ce), "updateSiteConfig"), Ru = /* @__PURE__ */ g(() => Vt({}, Ce), "getSiteConfig"), Pu = /* @__PURE__ */ g((e) => (zu(e), Vt(_o, e),
|
|
4045
|
+
}, "saveConfigFromInitialize"), q1 = /* @__PURE__ */ g((e) => (Ce = Vt(Ce, e), wa(Ce, Zr), Ce), "updateSiteConfig"), Ru = /* @__PURE__ */ g(() => Vt({}, Ce), "getSiteConfig"), Pu = /* @__PURE__ */ g((e) => (zu(e), Vt(_o, e), Pt()), "setConfig"), Pt = /* @__PURE__ */ g(() => Vt({}, _o), "getConfig"), Du = /* @__PURE__ */ g((e) => {
|
|
4046
4046
|
e && (["secure", ...Ce.secure ?? []].forEach((t) => {
|
|
4047
4047
|
Object.hasOwn(e, t) && (G.debug(`Denied attempt to modify a secure key ${t}`, e[t]), delete e[t]);
|
|
4048
4048
|
}), Object.keys(e).forEach((t) => {
|
|
@@ -4064,7 +4064,7 @@ var An = /* @__PURE__ */ g((e, t, { depth: r = 2, clobber: i = !1 } = {}) => {
|
|
|
4064
4064
|
cc[e] || (G.warn(W1[e]), cc[e] = !0);
|
|
4065
4065
|
}, "issueWarning"), zu = /* @__PURE__ */ g((e) => {
|
|
4066
4066
|
e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && Nu("LAZY_LOAD_DEPRECATED");
|
|
4067
|
-
}, "checkConfig"),
|
|
4067
|
+
}, "checkConfig"), hI = /* @__PURE__ */ g(() => {
|
|
4068
4068
|
let e = {};
|
|
4069
4069
|
zs && (e = Vt(e, zs));
|
|
4070
4070
|
for (const t of Zr)
|
|
@@ -4145,7 +4145,7 @@ var Yu = /* @__PURE__ */ g((e) => (X1(), ji.sanitize(e)), "removeScript"), dc =
|
|
|
4145
4145
|
for (; o !== -1 && s !== -1 && o !== s; )
|
|
4146
4146
|
i[o] = "<", i[s] = ">", o = i.indexOf("~"), s = i.lastIndexOf("~");
|
|
4147
4147
|
return r && i.unshift("~"), i.join("");
|
|
4148
|
-
}, "processSet"), fc = /* @__PURE__ */ g(() => window.MathMLElement !== void 0, "isMathMLSupported"), On = /\$\$(.*?)\$\$/g, $o = /* @__PURE__ */ g((e) => (e.match(On)?.length ?? 0) > 0, "hasKatex"),
|
|
4148
|
+
}, "processSet"), fc = /* @__PURE__ */ g(() => window.MathMLElement !== void 0, "isMathMLSupported"), On = /\$\$(.*?)\$\$/g, $o = /* @__PURE__ */ g((e) => (e.match(On)?.length ?? 0) > 0, "hasKatex"), cI = /* @__PURE__ */ g(async (e, t) => {
|
|
4149
4149
|
const r = document.createElement("div");
|
|
4150
4150
|
r.innerHTML = await Xu(e, t), r.id = "katex-temp", r.style.visibility = "hidden", r.style.position = "absolute", r.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", r);
|
|
4151
4151
|
const o = { width: r.clientWidth, height: r.clientHeight };
|
|
@@ -4338,7 +4338,7 @@ r1(Vu, {
|
|
|
4338
4338
|
setAccTitle: () => dk,
|
|
4339
4339
|
setDiagramTitle: () => gk
|
|
4340
4340
|
});
|
|
4341
|
-
var Nl = "", zl = "", ql = "", jl = /* @__PURE__ */ g((e) => qe(e,
|
|
4341
|
+
var Nl = "", zl = "", ql = "", jl = /* @__PURE__ */ g((e) => qe(e, Pt()), "sanitizeText"), ck = /* @__PURE__ */ g(() => {
|
|
4342
4342
|
Nl = "", ql = "", zl = "";
|
|
4343
4343
|
}, "clear"), dk = /* @__PURE__ */ g((e) => {
|
|
4344
4344
|
Nl = jl(e).replace(/^\s+/g, "");
|
|
@@ -4347,7 +4347,7 @@ var Nl = "", zl = "", ql = "", jl = /* @__PURE__ */ g((e) => qe(e, Rt()), "sanit
|
|
|
4347
4347
|
`);
|
|
4348
4348
|
}, "setAccDescription"), pk = /* @__PURE__ */ g(() => ql, "getAccDescription"), gk = /* @__PURE__ */ g((e) => {
|
|
4349
4349
|
zl = jl(e);
|
|
4350
|
-
}, "setDiagramTitle"), mk = /* @__PURE__ */ g(() => zl, "getDiagramTitle"), pc = G, yk = Pl, Tt =
|
|
4350
|
+
}, "setDiagramTitle"), mk = /* @__PURE__ */ g(() => zl, "getDiagramTitle"), pc = G, yk = Pl, Tt = Pt, dI = Pu, uI = Hi, Wl = /* @__PURE__ */ g((e) => qe(e, Tt()), "sanitizeText"), xk = ak, Ck = /* @__PURE__ */ g(() => Vu, "getCommonDb"), js = {}, Ws = /* @__PURE__ */ g((e, t, r) => {
|
|
4351
4351
|
js[e] && pc.warn(`Diagram with id ${e} already registered. Overwriting.`), js[e] = t, r && Wu(e, r), lk(e, t.styles), t.injectUtils?.(
|
|
4352
4352
|
pc,
|
|
4353
4353
|
yk,
|
|
@@ -5313,7 +5313,7 @@ function pw(e, t, r) {
|
|
|
5313
5313
|
return Math.pow(e + i * t, r);
|
|
5314
5314
|
};
|
|
5315
5315
|
}
|
|
5316
|
-
function
|
|
5316
|
+
function fI(e, t) {
|
|
5317
5317
|
var r = t - e;
|
|
5318
5318
|
return r ? uf(e, r > 180 || r < -180 ? r - 360 * Math.round(r / 360) : r) : Xl(isNaN(e) ? t : e);
|
|
5319
5319
|
}
|
|
@@ -6064,11 +6064,11 @@ function ui(e) {
|
|
|
6064
6064
|
return e;
|
|
6065
6065
|
};
|
|
6066
6066
|
}
|
|
6067
|
-
const
|
|
6068
|
-
function
|
|
6067
|
+
const pI = Math.abs, gI = Math.atan2, mI = Math.cos, yI = Math.max, xI = Math.min, CI = Math.sin, bI = Math.sqrt, Ac = 1e-12, Zl = Math.PI, Mc = Zl / 2, kI = 2 * Zl;
|
|
6068
|
+
function wI(e) {
|
|
6069
6069
|
return e > 1 ? 0 : e < -1 ? Zl : Math.acos(e);
|
|
6070
6070
|
}
|
|
6071
|
-
function
|
|
6071
|
+
function SI(e) {
|
|
6072
6072
|
return e >= 1 ? Mc : e <= -1 ? -Mc : Math.asin(e);
|
|
6073
6073
|
}
|
|
6074
6074
|
function DS(e) {
|
|
@@ -9058,7 +9058,7 @@ var Pe = {
|
|
|
9058
9058
|
}), t;
|
|
9059
9059
|
}, "encodeEntities"), ei = /* @__PURE__ */ g(function(e) {
|
|
9060
9060
|
return e.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";");
|
|
9061
|
-
}, "decodeEntities"),
|
|
9061
|
+
}, "decodeEntities"), vI = /* @__PURE__ */ g((e, t, {
|
|
9062
9062
|
counter: r = 0,
|
|
9063
9063
|
prefix: i,
|
|
9064
9064
|
suffix: o
|
|
@@ -9372,7 +9372,7 @@ var S_ = {
|
|
|
9372
9372
|
...o.attributes,
|
|
9373
9373
|
...r
|
|
9374
9374
|
});
|
|
9375
|
-
return qe(s,
|
|
9375
|
+
return qe(s, Pt());
|
|
9376
9376
|
}, "getIconSVG");
|
|
9377
9377
|
function kh() {
|
|
9378
9378
|
return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
|
|
@@ -10589,7 +10589,7 @@ function pl(e, t) {
|
|
|
10589
10589
|
}
|
|
10590
10590
|
g(pl, "applyStyle");
|
|
10591
10591
|
var rd = 16384;
|
|
10592
|
-
async function fm(e, t, r, i, o = !1, s =
|
|
10592
|
+
async function fm(e, t, r, i, o = !1, s = Pt()) {
|
|
10593
10593
|
const a = e.append("foreignObject");
|
|
10594
10594
|
a.attr("width", `${Math.min(10 * r, rd)}px`), a.attr("height", `${Math.min(10 * r, rd)}px`);
|
|
10595
10595
|
const n = a.append("xhtml:div"), l = $o(t.label) ? await Xu(t.label.replace(Vo.lineBreakRegex, `
|
|
@@ -11712,7 +11712,7 @@ class TB {
|
|
|
11712
11712
|
return this.draw(i);
|
|
11713
11713
|
}
|
|
11714
11714
|
}
|
|
11715
|
-
var it = { canvas: (e, t) => new vB(e, t), svg: (e, t) => new TB(e, t), generator: (e) => new fa(e), newSeed: () => fa.newSeed() },
|
|
11715
|
+
var it = { canvas: (e, t) => new vB(e, t), svg: (e, t) => new TB(e, t), generator: (e) => new fa(e), newSeed: () => fa.newSeed() }, dt = /* @__PURE__ */ g(async (e, t, r) => {
|
|
11716
11716
|
let i;
|
|
11717
11717
|
const o = t.useHtmlLabels || sr(Tt()?.htmlLabels);
|
|
11718
11718
|
r ? i = r : i = "node default";
|
|
@@ -12126,7 +12126,7 @@ var _B = /* @__PURE__ */ g((e, t) => {
|
|
|
12126
12126
|
}, vm = /* @__PURE__ */ new Map(), IB = /* @__PURE__ */ g(async (e, t) => {
|
|
12127
12127
|
const r = t.shape || "rect", i = await OB[r](e, t);
|
|
12128
12128
|
return vm.set(t.id, i), i;
|
|
12129
|
-
}, "insertCluster"),
|
|
12129
|
+
}, "insertCluster"), FI = /* @__PURE__ */ g(() => {
|
|
12130
12130
|
vm = /* @__PURE__ */ new Map();
|
|
12131
12131
|
}, "clear");
|
|
12132
12132
|
function Tm(e, t) {
|
|
@@ -12240,7 +12240,7 @@ async function $m(e, t) {
|
|
|
12240
12240
|
const o = t.padding ?? 0, s = t.look === "neo" ? 16 : o, a = t.look === "neo" ? 12 : o, n = /* @__PURE__ */ g((P) => P + a, "calcTotalHeight"), l = /* @__PURE__ */ g((P) => {
|
|
12241
12241
|
const $ = P / 2;
|
|
12242
12242
|
return [$ / (2.5 + P / 50), $];
|
|
12243
|
-
}, "calcEllipseRadius"), { shapeSvg: c, bbox: h } = await
|
|
12243
|
+
}, "calcEllipseRadius"), { shapeSvg: c, bbox: h } = await dt(e, t, ht(t)), d = n(t?.height ? t?.height : h.height), [f, u] = l(d), p = Mm(d, f, u), y = (t?.width ? t?.width : h.width) + s * 2 + p - p, x = d, { cssStyles: C } = t, k = [
|
|
12244
12244
|
{ x: y / 2, y: -x / 2 },
|
|
12245
12245
|
{ x: -y / 2, y: -x / 2 },
|
|
12246
12246
|
...kl(-y / 2, -x / 2, -y / 2, x / 2, f, u, !1),
|
|
@@ -12267,7 +12267,7 @@ var xs = 12;
|
|
|
12267
12267
|
async function Om(e, t) {
|
|
12268
12268
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
12269
12269
|
t.labelStyle = r;
|
|
12270
|
-
const o = t.padding ?? 0, s = t.look === "neo" ? 28 : o, a = t.look === "neo" ? 24 : o, { shapeSvg: n, bbox: l } = await
|
|
12270
|
+
const o = t.padding ?? 0, s = t.look === "neo" ? 28 : o, a = t.look === "neo" ? 24 : o, { shapeSvg: n, bbox: l } = await dt(e, t, ht(t)), c = (t?.width ?? l.width) + (t.look === "neo" ? s * 2 : s + xs), h = (t?.height ?? l.height) + (t.look === "neo" ? a * 2 : a), d = 0, f = c, u = -h, p = 0, m = [
|
|
12271
12271
|
{ x: d + xs, y: u },
|
|
12272
12272
|
{ x: f, y: u },
|
|
12273
12273
|
{ x: f, y: p },
|
|
@@ -12306,7 +12306,7 @@ g(Im, "choice");
|
|
|
12306
12306
|
async function $h(e, t, r) {
|
|
12307
12307
|
const { labelStyles: i, nodeStyles: o } = st(t);
|
|
12308
12308
|
t.labelStyle = i;
|
|
12309
|
-
const { shapeSvg: s, bbox: a, halfPadding: n } = await
|
|
12309
|
+
const { shapeSvg: s, bbox: a, halfPadding: n } = await dt(e, t, ht(t)), l = 16, c = r?.padding ?? n, h = t.look === "neo" ? a.width / 2 + l * 2 : a.width / 2 + c;
|
|
12310
12310
|
let d;
|
|
12311
12311
|
const { cssStyles: f } = t;
|
|
12312
12312
|
if (t.look === "handDrawn") {
|
|
@@ -12351,7 +12351,7 @@ g(cr, "generateCirclePoints");
|
|
|
12351
12351
|
async function Dm(e, t) {
|
|
12352
12352
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
12353
12353
|
t.labelStyle = r;
|
|
12354
|
-
const { shapeSvg: o, bbox: s, label: a } = await
|
|
12354
|
+
const { shapeSvg: o, bbox: s, label: a } = await dt(e, t, ht(t)), n = t.look === "neo" ? 18 : t.padding ?? 0, l = t.look === "neo" ? 12 : t.padding ?? 0, c = s.width + n, h = s.height + l, d = Math.max(5, h * 0.1), { cssStyles: f } = t, u = [
|
|
12355
12355
|
...cr(c / 2, -h / 2, d, 30, -90, 0),
|
|
12356
12356
|
{ x: -c / 2 - d, y: d },
|
|
12357
12357
|
...cr(c / 2 + d * 2, -d, d, 20, -180, -270),
|
|
@@ -12392,7 +12392,7 @@ g(dr, "generateCirclePoints");
|
|
|
12392
12392
|
async function Nm(e, t) {
|
|
12393
12393
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
12394
12394
|
t.labelStyle = r;
|
|
12395
|
-
const { shapeSvg: o, bbox: s, label: a } = await
|
|
12395
|
+
const { shapeSvg: o, bbox: s, label: a } = await dt(e, t, ht(t)), n = t.look === "neo" ? 18 : t.padding ?? 0, l = t.look === "neo" ? 12 : t.padding ?? 0, c = s.width + (t.look === "neo" ? n * 2 : n), h = s.height + (t.look === "neo" ? l * 2 : l), d = Math.max(5, h * 0.1), { cssStyles: f } = t, u = [
|
|
12396
12396
|
...dr(c / 2, -h / 2, d, 20, -90, 0),
|
|
12397
12397
|
{ x: c / 2 + d, y: -d },
|
|
12398
12398
|
...dr(c / 2 + d * 2, -d, d, 20, -180, -270),
|
|
@@ -12433,7 +12433,7 @@ g(ie, "generateCirclePoints");
|
|
|
12433
12433
|
async function zm(e, t) {
|
|
12434
12434
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
12435
12435
|
t.labelStyle = r;
|
|
12436
|
-
const { shapeSvg: o, bbox: s, label: a } = await
|
|
12436
|
+
const { shapeSvg: o, bbox: s, label: a } = await dt(e, t, ht(t)), n = t.look === "neo" ? 18 : t.padding ?? 0, l = t.look === "neo" ? 12 : t.padding ?? 0, c = s.width + (t.look === "neo" ? n * 2 : n), h = s.height + (t.look === "neo" ? l * 2 : l), d = Math.max(5, h * 0.1), { cssStyles: f } = t, u = [
|
|
12437
12437
|
...ie(c / 2, -h / 2, d, 30, -90, 0),
|
|
12438
12438
|
{ x: -c / 2 - d, y: d },
|
|
12439
12439
|
...ie(c / 2 + d * 2, -d, d, 20, -180, -270),
|
|
@@ -12478,7 +12478,7 @@ g(zm, "curlyBraces");
|
|
|
12478
12478
|
async function qm(e, t) {
|
|
12479
12479
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
12480
12480
|
t.labelStyle = r;
|
|
12481
|
-
const o = t.padding ?? 0, s = t.look === "neo" ? 16 : o, a = t.look === "neo" ? 12 : o, n = 20, l = 5, { shapeSvg: c, bbox: h } = await
|
|
12481
|
+
const o = t.padding ?? 0, s = t.look === "neo" ? 16 : o, a = t.look === "neo" ? 12 : o, n = 20, l = 5, { shapeSvg: c, bbox: h } = await dt(e, t, ht(t)), d = Math.max(n, (h.width + s * 2) * 1.25, t?.width ?? 0), f = Math.max(l, h.height + a * 2, t?.height ?? 0), u = f / 2, { cssStyles: p } = t, m = it.svg(c), y = rt(t, {});
|
|
12482
12482
|
t.look !== "handDrawn" && (y.roughness = 0, y.fillStyle = "solid");
|
|
12483
12483
|
const x = d, C = f, k = x - u, S = C / 4, v = [
|
|
12484
12484
|
{ x: k, y: 0 },
|
|
@@ -12518,7 +12518,7 @@ async function jm(e, t) {
|
|
|
12518
12518
|
const C = y / 2 / (2.5 + y / 50);
|
|
12519
12519
|
t.height = (t.height ?? 0) - s - C * 3, t.height < dd && (t.height = dd);
|
|
12520
12520
|
}
|
|
12521
|
-
const { shapeSvg: n, bbox: l, label: c } = await
|
|
12521
|
+
const { shapeSvg: n, bbox: l, label: c } = await dt(e, t, ht(t)), h = (t.width ? t.width : l.width) + a, d = h / 2, f = d / (2.5 + h / 50), u = (t.height ? t.height : l.height) + s + f;
|
|
12522
12522
|
let p;
|
|
12523
12523
|
const { cssStyles: m } = t;
|
|
12524
12524
|
if (t.look === "handDrawn") {
|
|
@@ -12544,7 +12544,7 @@ g(jm, "cylinder");
|
|
|
12544
12544
|
async function Ji(e, t, r) {
|
|
12545
12545
|
const { labelStyles: i, nodeStyles: o } = st(t);
|
|
12546
12546
|
t.labelStyle = i;
|
|
12547
|
-
const { shapeSvg: s, bbox: a } = await
|
|
12547
|
+
const { shapeSvg: s, bbox: a } = await dt(e, t, ht(t)), n = Math.max(a.width + r.labelPaddingX * 2, t?.width || 0), l = Math.max(a.height + r.labelPaddingY * 2, t?.height || 0), c = -n / 2, h = -l / 2;
|
|
12548
12548
|
let d, { rx: f, ry: u } = t;
|
|
12549
12549
|
const { cssStyles: p } = t;
|
|
12550
12550
|
if (r?.rx && r.ry && (f = r.rx, u = r.ry), t.look === "handDrawn") {
|
|
@@ -12596,7 +12596,7 @@ g(Wm, "datastore");
|
|
|
12596
12596
|
async function Hm(e, t) {
|
|
12597
12597
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
12598
12598
|
t.labelStyle = r;
|
|
12599
|
-
const o = t.look === "neo" ? 16 : t.padding ?? 0, s = t.look === "neo" ? 16 : t.padding ?? 0, { shapeSvg: a, bbox: n, label: l } = await
|
|
12599
|
+
const o = t.look === "neo" ? 16 : t.padding ?? 0, s = t.look === "neo" ? 16 : t.padding ?? 0, { shapeSvg: a, bbox: n, label: l } = await dt(e, t, ht(t)), c = n.width + o, h = n.height + s, d = h * 0.2, f = -c / 2, u = -h / 2 - d / 2, { cssStyles: p } = t, m = it.svg(a), y = rt(t, {});
|
|
12600
12600
|
t.look !== "handDrawn" && (y.roughness = 0, y.fillStyle = "solid");
|
|
12601
12601
|
const x = [
|
|
12602
12602
|
{ x: f, y: u + d },
|
|
@@ -12621,7 +12621,7 @@ g(Hm, "dividedRectangle");
|
|
|
12621
12621
|
async function Ym(e, t) {
|
|
12622
12622
|
const { labelStyles: r, nodeStyles: i } = st(t), o = t.look === "neo" ? 12 : 5;
|
|
12623
12623
|
t.labelStyle = r;
|
|
12624
|
-
const s = t.padding ?? 0, a = t.look === "neo" ? 16 : s, { shapeSvg: n, bbox: l } = await
|
|
12624
|
+
const s = t.padding ?? 0, a = t.look === "neo" ? 16 : s, { shapeSvg: n, bbox: l } = await dt(e, t, ht(t)), c = (t?.width ? t?.width / 2 : l.width / 2) + (a ?? 0), h = c - o;
|
|
12625
12625
|
let d;
|
|
12626
12626
|
const { cssStyles: f } = t;
|
|
12627
12627
|
if (t.look === "handDrawn") {
|
|
@@ -12654,7 +12654,7 @@ async function Xm(e, t) {
|
|
|
12654
12654
|
t.labelStyle = r;
|
|
12655
12655
|
const o = t.padding ?? 0, s = t.look === "neo" ? o * 2 : o;
|
|
12656
12656
|
(t.width || t.height) && (t.height = t?.height ?? 0, t.height < fd && (t.height = fd), t.width = (t?.width ?? 0) - s - s / 2, t.width < pd && (t.width = pd));
|
|
12657
|
-
const { shapeSvg: a, bbox: n, label: l } = await
|
|
12657
|
+
const { shapeSvg: a, bbox: n, label: l } = await dt(e, t, ht(t)), c = (t?.width ? t?.width : n.width) + (s ?? 0), h = t?.height ? t?.height : c + n.height, d = h, f = [
|
|
12658
12658
|
{ x: 0, y: -h },
|
|
12659
12659
|
{ x: d, y: -h },
|
|
12660
12660
|
{ x: d / 2, y: 0 }
|
|
@@ -12693,7 +12693,7 @@ async function Vm(e, t) {
|
|
|
12693
12693
|
t.labelStyle = r;
|
|
12694
12694
|
const o = 15, s = 10, a = t.look === "neo" ? 16 : t.padding ?? 0, n = t.look === "neo" ? 12 : t.padding ?? 0;
|
|
12695
12695
|
(t.width || t.height) && (t.height = (t?.height ?? 0) - n * 2, t.height < s && (t.height = s), t.width = (t?.width ?? 0) - a * 2, t.width < o && (t.width = o));
|
|
12696
|
-
const { shapeSvg: l, bbox: c } = await
|
|
12696
|
+
const { shapeSvg: l, bbox: c } = await dt(e, t, ht(t)), h = (t?.width ? t?.width : Math.max(o, c.width)) + a * 2, d = (t?.height ? t?.height : Math.max(s, c.height)) + n * 2, f = d / 2, { cssStyles: u } = t, p = it.svg(l), m = rt(t, {});
|
|
12697
12697
|
t.look !== "handDrawn" && (m.roughness = 0, m.fillStyle = "solid");
|
|
12698
12698
|
const y = [
|
|
12699
12699
|
{ x: -h / 2, y: -d / 2 },
|
|
@@ -12724,7 +12724,7 @@ async function Km(e, t) {
|
|
|
12724
12724
|
const k = (t.height ?? 0) / o;
|
|
12725
12725
|
t.width = (t?.width ?? 0) - 2 * k - c, t.height = (t.height ?? 0) - l;
|
|
12726
12726
|
}
|
|
12727
|
-
const { shapeSvg: h, bbox: d } = await
|
|
12727
|
+
const { shapeSvg: h, bbox: d } = await dt(e, t, ht(t)), f = (t?.height ? t?.height : d.height) + l, u = f / o, p = (t?.width ? t?.width : d.width) + 2 * u + c, m = [
|
|
12728
12728
|
{ x: u, y: 0 },
|
|
12729
12729
|
{ x: p - u, y: 0 },
|
|
12730
12730
|
{ x: p, y: -f / 2 },
|
|
@@ -12747,7 +12747,7 @@ g(Km, "hexagon");
|
|
|
12747
12747
|
async function Zm(e, t) {
|
|
12748
12748
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
12749
12749
|
t.label = "", t.labelStyle = r;
|
|
12750
|
-
const { shapeSvg: o } = await
|
|
12750
|
+
const { shapeSvg: o } = await dt(e, t, ht(t)), s = Math.max(30, t?.width ?? 0), a = Math.max(30, t?.height ?? 0), { cssStyles: n } = t, l = it.svg(o), c = rt(t, {});
|
|
12751
12751
|
t.look !== "handDrawn" && (c.roughness = 0, c.fillStyle = "solid");
|
|
12752
12752
|
const h = [
|
|
12753
12753
|
{ x: 0, y: 0 },
|
|
@@ -12765,7 +12765,7 @@ async function Qm(e, t, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
12765
12765
|
t.labelStyle = o;
|
|
12766
12766
|
const s = t.assetHeight ?? 48, a = t.assetWidth ?? 48, n = Math.max(s, a), l = i?.wrappingWidth;
|
|
12767
12767
|
t.width = Math.max(n, l ?? 0);
|
|
12768
|
-
const { shapeSvg: c, bbox: h, label: d } = await
|
|
12768
|
+
const { shapeSvg: c, bbox: h, label: d } = await dt(e, t, "icon-shape default"), f = t.pos === "t", u = n, p = n, { nodeBorder: m } = r, { stylesMap: y } = Qi(t), x = -p / 2, C = -u / 2, k = t.label ? 8 : 0, S = it.svg(c), v = rt(t, { stroke: "none", fill: "none" });
|
|
12769
12769
|
t.look !== "handDrawn" && (v.roughness = 0, v.fillStyle = "solid");
|
|
12770
12770
|
const T = S.rectangle(x, C, p, u, v), B = Math.max(p, h.width), _ = u + h.height + k, P = S.rectangle(-B / 2, -_ / 2, B, _, {
|
|
12771
12771
|
...v,
|
|
@@ -12825,7 +12825,7 @@ async function Jm(e, t, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
12825
12825
|
t.labelStyle = o;
|
|
12826
12826
|
const s = t.assetHeight ?? 48, a = t.assetWidth ?? 48, n = Math.max(s, a), l = i?.wrappingWidth;
|
|
12827
12827
|
t.width = Math.max(n, l ?? 0);
|
|
12828
|
-
const { shapeSvg: c, bbox: h, label: d } = await
|
|
12828
|
+
const { shapeSvg: c, bbox: h, label: d } = await dt(e, t, "icon-shape default"), f = 20, u = t.label ? 8 : 0, p = t.pos === "t", { nodeBorder: m, mainBkg: y } = r, { stylesMap: x } = Qi(t), C = it.svg(c), k = rt(t, {});
|
|
12829
12829
|
t.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid");
|
|
12830
12830
|
const S = x.get("fill");
|
|
12831
12831
|
k.stroke = S ?? y;
|
|
@@ -12861,7 +12861,7 @@ async function ty(e, t, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
12861
12861
|
t.labelStyle = o;
|
|
12862
12862
|
const s = t.assetHeight ?? 48, a = t.assetWidth ?? 48, n = Math.max(s, a), l = i?.wrappingWidth;
|
|
12863
12863
|
t.width = Math.max(n, l ?? 0);
|
|
12864
|
-
const { shapeSvg: c, bbox: h, halfPadding: d, label: f } = await
|
|
12864
|
+
const { shapeSvg: c, bbox: h, halfPadding: d, label: f } = await dt(
|
|
12865
12865
|
e,
|
|
12866
12866
|
t,
|
|
12867
12867
|
"icon-shape default"
|
|
@@ -12927,7 +12927,7 @@ async function ey(e, t, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
12927
12927
|
t.labelStyle = o;
|
|
12928
12928
|
const s = t.assetHeight ?? 48, a = t.assetWidth ?? 48, n = Math.max(s, a), l = i?.wrappingWidth;
|
|
12929
12929
|
t.width = Math.max(n, l ?? 0);
|
|
12930
|
-
const { shapeSvg: c, bbox: h, halfPadding: d, label: f } = await
|
|
12930
|
+
const { shapeSvg: c, bbox: h, halfPadding: d, label: f } = await dt(
|
|
12931
12931
|
e,
|
|
12932
12932
|
t,
|
|
12933
12933
|
"icon-shape default"
|
|
@@ -13002,7 +13002,7 @@ async function ry(e, t, { config: { flowchart: r } }) {
|
|
|
13002
13002
|
t?.assetWidth ?? o
|
|
13003
13003
|
), c = t.constraint === "on" && t?.assetHeight ? t.assetHeight * t.imageAspectRatio : l, h = t.constraint === "on" ? c / t.imageAspectRatio : t?.assetHeight ?? s;
|
|
13004
13004
|
t.width = Math.max(c, n ?? 0);
|
|
13005
|
-
const { shapeSvg: d, bbox: f, label: u } = await
|
|
13005
|
+
const { shapeSvg: d, bbox: f, label: u } = await dt(e, t, "image-shape default"), p = t.pos === "t", m = -c / 2, y = -h / 2, x = t.label ? 8 : 0, C = it.svg(d), k = rt(t, {});
|
|
13006
13006
|
t.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid");
|
|
13007
13007
|
const S = C.rectangle(m, y, c, h, k), v = Math.max(c, f.width), T = h + f.height + x, B = C.rectangle(-v / 2, -T / 2, v, T, {
|
|
13008
13008
|
...k,
|
|
@@ -13052,7 +13052,7 @@ g(ry, "imageSquare");
|
|
|
13052
13052
|
async function iy(e, t) {
|
|
13053
13053
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
13054
13054
|
t.labelStyle = r;
|
|
13055
|
-
const o = t.padding ?? 0, s = o, a = t.look === "neo" ? o * 2 : o, { shapeSvg: n, bbox: l } = await
|
|
13055
|
+
const o = t.padding ?? 0, s = o, a = t.look === "neo" ? o * 2 : o, { shapeSvg: n, bbox: l } = await dt(e, t, ht(t)), c = Math.max(l.width + (a ?? 0) * 2, t?.width ?? 0), h = Math.max(l.height + (s ?? 0) * 2, t?.height ?? 0), d = [
|
|
13056
13056
|
{ x: 0, y: 0 },
|
|
13057
13057
|
{ x: c, y: 0 },
|
|
13058
13058
|
{ x: c + 3 * h / 6, y: -h },
|
|
@@ -13071,7 +13071,7 @@ async function iy(e, t) {
|
|
|
13071
13071
|
}
|
|
13072
13072
|
g(iy, "inv_trapezoid");
|
|
13073
13073
|
async function oy(e, t) {
|
|
13074
|
-
const { shapeSvg: r, bbox: i, label: o } = await
|
|
13074
|
+
const { shapeSvg: r, bbox: i, label: o } = await dt(e, t, "label"), s = r.insert("rect", ":first-child");
|
|
13075
13075
|
return s.attr("width", 0.1).attr("height", 0.1), r.attr("class", "label edgeLabel"), o.attr(
|
|
13076
13076
|
"transform",
|
|
13077
13077
|
`translate(${-(i.width / 2) - (i.x - (i.left ?? 0))}, ${-(i.height / 2) - (i.y - (i.top ?? 0))})`
|
|
@@ -13083,7 +13083,7 @@ g(oy, "labelRect");
|
|
|
13083
13083
|
async function sy(e, t) {
|
|
13084
13084
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
13085
13085
|
t.labelStyle = r;
|
|
13086
|
-
const o = t.padding ?? 0, s = o, a = t.look === "neo" ? o * 2 : o, { shapeSvg: n, bbox: l } = await
|
|
13086
|
+
const o = t.padding ?? 0, s = o, a = t.look === "neo" ? o * 2 : o, { shapeSvg: n, bbox: l } = await dt(e, t, ht(t)), c = (t?.height ?? l.height) + s, h = (t?.width ?? l.width) + a, d = [
|
|
13087
13087
|
{ x: 0, y: 0 },
|
|
13088
13088
|
{ x: h + 3 * c / 6, y: 0 },
|
|
13089
13089
|
{ x: h, y: -c },
|
|
@@ -13104,7 +13104,7 @@ g(sy, "lean_left");
|
|
|
13104
13104
|
async function ay(e, t) {
|
|
13105
13105
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
13106
13106
|
t.labelStyle = r;
|
|
13107
|
-
const o = t.padding ?? 0, s = o, a = t.look === "neo" ? o * 2 : o, { shapeSvg: n, bbox: l } = await
|
|
13107
|
+
const o = t.padding ?? 0, s = o, a = t.look === "neo" ? o * 2 : o, { shapeSvg: n, bbox: l } = await dt(e, t, ht(t)), c = (t?.height ?? l.height) + s, h = (t?.width ?? l.width) + a, d = [
|
|
13108
13108
|
{ x: -3 * c / 6, y: 0 },
|
|
13109
13109
|
{ x: h, y: 0 },
|
|
13110
13110
|
{ x: h + 3 * c / 6, y: -c },
|
|
@@ -13169,7 +13169,7 @@ async function ly(e, t) {
|
|
|
13169
13169
|
const k = x / 2 / (2.5 + x / 50);
|
|
13170
13170
|
t.height = (t.height ?? 0) - a - k * 3, t.height < gd && (t.height = gd);
|
|
13171
13171
|
}
|
|
13172
|
-
const { shapeSvg: n, bbox: l, label: c } = await
|
|
13172
|
+
const { shapeSvg: n, bbox: l, label: c } = await dt(e, t, ht(t)), h = (t?.width ? t?.width : l.width) + s * 2, d = h / 2, f = d / (2.5 + h / 50), u = (t?.height ? t?.height : l.height) + f + a * 2, p = u * 0.1;
|
|
13173
13173
|
let m;
|
|
13174
13174
|
const { cssStyles: y } = t;
|
|
13175
13175
|
if (t.look === "handDrawn") {
|
|
@@ -13200,7 +13200,7 @@ async function hy(e, t) {
|
|
|
13200
13200
|
const S = t.width;
|
|
13201
13201
|
t.width = (S ?? 0) * 10 / 11 - s * 2, t.width < 10 && (t.width = 10), t.height = (t?.height ?? 0) - a * 2, t.height < 10 && (t.height = 10);
|
|
13202
13202
|
}
|
|
13203
|
-
const { shapeSvg: n, bbox: l, label: c } = await
|
|
13203
|
+
const { shapeSvg: n, bbox: l, label: c } = await dt(e, t, ht(t)), h = (t?.width ? t?.width : l.width) + (s ?? 0) * 2, d = (t?.height ? t?.height : l.height) + (a ?? 0) * 2, f = t.look === "neo" ? d / 4 : d / 8, u = d + f, { cssStyles: p } = t, m = it.svg(n), y = rt(t, {});
|
|
13204
13204
|
t.look !== "handDrawn" && (y.roughness = 0, y.fillStyle = "solid");
|
|
13205
13205
|
const x = [
|
|
13206
13206
|
{ x: -h / 2 - h / 2 * 0.1, y: -u / 2 },
|
|
@@ -13235,7 +13235,7 @@ async function cy(e, t) {
|
|
|
13235
13235
|
t.labelStyle = r;
|
|
13236
13236
|
const o = t.padding ?? 0, s = t.look === "neo" ? 16 : o, a = t.look === "neo" ? 12 : o, n = t.look === "neo" ? 10 : 5;
|
|
13237
13237
|
(t.width || t.height) && (t.width = Math.max((t?.width ?? 0) - s * 2 - 2 * n, 10), t.height = Math.max((t?.height ?? 0) - a * 2 - 2 * n, 10));
|
|
13238
|
-
const { shapeSvg: l, bbox: c, label: h } = await
|
|
13238
|
+
const { shapeSvg: l, bbox: c, label: h } = await dt(e, t, ht(t)), d = (t?.width ? t?.width : c.width) + s * 2 + 2 * n, f = (t?.height ? t?.height : c.height) + a * 2 + 2 * n, u = d - 2 * n, p = f - 2 * n, m = -u / 2, y = -p / 2, { cssStyles: x } = t, C = it.svg(l), k = rt(t, {}), S = [
|
|
13239
13239
|
{ x: m - n, y: y + n },
|
|
13240
13240
|
{ x: m - n, y: y + p + n },
|
|
13241
13241
|
{ x: m + u - n, y: y + p + n },
|
|
@@ -13274,7 +13274,7 @@ g(cy, "multiRect");
|
|
|
13274
13274
|
async function dy(e, t) {
|
|
13275
13275
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
13276
13276
|
t.labelStyle = r;
|
|
13277
|
-
const { shapeSvg: o, bbox: s, label: a } = await
|
|
13277
|
+
const { shapeSvg: o, bbox: s, label: a } = await dt(e, t, ht(t)), n = t.padding ?? 0, l = t.look === "neo" ? 16 : n, c = t.look === "neo" ? 12 : n;
|
|
13278
13278
|
let h = !0;
|
|
13279
13279
|
(t.width || t.height) && (h = !1, t.width = (t?.width ?? 0) - l * 2, t.height = (t?.height ?? 0) - c * 3);
|
|
13280
13280
|
const d = Math.max(s.width, t?.width ?? 0) + l * 2, f = Math.max(s.height, t?.height ?? 0) + c * 3, u = t.look === "neo" ? f / 4 : f / 8, p = f + (h ? u / 2 : -u / 2), m = -d / 2, y = -p / 2, x = 10, { cssStyles: C } = t, k = Fr(
|
|
@@ -13317,8 +13317,8 @@ async function dy(e, t) {
|
|
|
13317
13317
|
g(dy, "multiWaveEdgedRectangle");
|
|
13318
13318
|
async function uy(e, t, { config: { themeVariables: r } }) {
|
|
13319
13319
|
const { labelStyles: i, nodeStyles: o } = st(t);
|
|
13320
|
-
t.labelStyle = i, t.useHtmlLabels || me(
|
|
13321
|
-
const { shapeSvg: a, bbox: n, label: l } = await
|
|
13320
|
+
t.labelStyle = i, t.useHtmlLabels || me(Pt()) || (t.centerLabel = !0);
|
|
13321
|
+
const { shapeSvg: a, bbox: n, label: l } = await dt(e, t, ht(t)), c = Math.max(n.width + (t.padding ?? 0) * 2, t?.width ?? 0), h = Math.max(n.height + (t.padding ?? 0) * 2, t?.height ?? 0), d = -c / 2, f = -h / 2, { cssStyles: u } = t, p = it.svg(a), m = rt(t, {
|
|
13322
13322
|
fill: r.noteBkgColor,
|
|
13323
13323
|
stroke: r.noteBorderColor
|
|
13324
13324
|
});
|
|
@@ -13342,7 +13342,7 @@ var XB = /* @__PURE__ */ g((e, t, r) => [
|
|
|
13342
13342
|
async function fy(e, t) {
|
|
13343
13343
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
13344
13344
|
t.labelStyle = r;
|
|
13345
|
-
const { shapeSvg: o, bbox: s } = await
|
|
13345
|
+
const { shapeSvg: o, bbox: s } = await dt(e, t, ht(t)), a = s.width + (t.padding ?? 0), n = s.height + (t.padding ?? 0), l = a + n, c = 0.5, h = [
|
|
13346
13346
|
{ x: l / 2, y: 0 },
|
|
13347
13347
|
{ x: l, y: -l / 2 },
|
|
13348
13348
|
{ x: l / 2, y: -l },
|
|
@@ -13371,7 +13371,7 @@ g(fy, "question");
|
|
|
13371
13371
|
async function py(e, t) {
|
|
13372
13372
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
13373
13373
|
t.labelStyle = r;
|
|
13374
|
-
const o = t.padding ?? 0, s = t.look === "neo" ? 21 : o ?? 0, a = t.look === "neo" ? 12 : o ?? 0, { shapeSvg: n, bbox: l, label: c } = await
|
|
13374
|
+
const o = t.padding ?? 0, s = t.look === "neo" ? 21 : o ?? 0, a = t.look === "neo" ? 12 : o ?? 0, { shapeSvg: n, bbox: l, label: c } = await dt(e, t, ht(t)), h = (t?.width ?? l.width) + (t.look === "neo" ? s * 2 : s), d = (t?.height ?? l.height) + (t.look === "neo" ? a * 2 : a), f = -h / 2, u = -d / 2, p = u / 2, m = [
|
|
13375
13375
|
{ x: f + p, y: u },
|
|
13376
13376
|
{ x: f, y: 0 },
|
|
13377
13377
|
{ x: f + p, y: -u },
|
|
@@ -13454,7 +13454,7 @@ var zr = 8;
|
|
|
13454
13454
|
async function yy(e, t) {
|
|
13455
13455
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
13456
13456
|
t.labelStyle = r;
|
|
13457
|
-
const o = t.look === "neo" ? 16 : t.padding ?? 0, s = t.look === "neo" ? 12 : t.padding ?? 0, { shapeSvg: a, bbox: n, label: l } = await
|
|
13457
|
+
const o = t.look === "neo" ? 16 : t.padding ?? 0, s = t.look === "neo" ? 12 : t.padding ?? 0, { shapeSvg: a, bbox: n, label: l } = await dt(e, t, ht(t)), c = (t?.width ?? n.width) + o * 2 + (t.look === "neo" ? zr : zr * 2), h = (t?.height ?? n.height) + s * 2, d = c - zr, f = h, u = zr - c / 2, p = -h / 2, { cssStyles: m } = t, y = it.svg(a), x = rt(t, {});
|
|
13458
13458
|
t.look !== "handDrawn" && (x.roughness = 0, x.fillStyle = "solid");
|
|
13459
13459
|
const C = [
|
|
13460
13460
|
{ x: u, y: p },
|
|
@@ -13481,7 +13481,7 @@ async function xy(e, t) {
|
|
|
13481
13481
|
t.labelStyle = r;
|
|
13482
13482
|
const o = t.padding ?? 0, s = t.look === "neo" ? 16 : o, a = t.look === "neo" ? 12 : o;
|
|
13483
13483
|
(t.width || t.height) && (t.width = Math.max((t?.width ?? 0) - s * 2, 10), t.height = Math.max((t?.height ?? 0) / 1.5 - a * 2, 10));
|
|
13484
|
-
const { shapeSvg: n, bbox: l, label: c } = await
|
|
13484
|
+
const { shapeSvg: n, bbox: l, label: c } = await dt(e, t, ht(t)), h = (t?.width ? t?.width : l.width) + s * 2, d = ((t?.height ? t?.height : l.height) + a * 2) * 1.5, f = h, u = d / 1.5, p = -f / 2, m = -u / 2, { cssStyles: y } = t, x = it.svg(n), C = rt(t, {});
|
|
13485
13485
|
t.look !== "handDrawn" && (C.roughness = 0, C.fillStyle = "solid");
|
|
13486
13486
|
const k = [
|
|
13487
13487
|
{ x: p, y: m },
|
|
@@ -13510,7 +13510,7 @@ g(Cy, "squareRect");
|
|
|
13510
13510
|
async function by(e, t) {
|
|
13511
13511
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
13512
13512
|
t.labelStyle = r;
|
|
13513
|
-
const o = t.padding ?? 0, s = t.look === "neo" ? 20 : o, a = t.look === "neo" ? 12 : o, { shapeSvg: n, bbox: l } = await
|
|
13513
|
+
const o = t.padding ?? 0, s = t.look === "neo" ? 20 : o, a = t.look === "neo" ? 12 : o, { shapeSvg: n, bbox: l } = await dt(e, t, ht(t)), c = l.height + (t.look === "neo" ? a * 2 : a), h = l.width + c / 4 + (t.look === "neo" ? s * 2 : s), d = c / 2, { cssStyles: f } = t, u = it.svg(n), p = rt(t, {});
|
|
13514
13514
|
t.look !== "handDrawn" && (p.roughness = 0, p.fillStyle = "solid");
|
|
13515
13515
|
const m = [
|
|
13516
13516
|
{ x: -h / 2 + d, y: -c / 2 },
|
|
@@ -13582,7 +13582,7 @@ var pi = 8;
|
|
|
13582
13582
|
async function vy(e, t) {
|
|
13583
13583
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
13584
13584
|
t.labelStyle = r;
|
|
13585
|
-
const o = t?.padding ?? 8, s = t.look === "neo" ? 28 : o, a = t.look === "neo" ? 12 : o, { shapeSvg: n, bbox: l } = await
|
|
13585
|
+
const o = t?.padding ?? 8, s = t.look === "neo" ? 28 : o, a = t.look === "neo" ? 12 : o, { shapeSvg: n, bbox: l } = await dt(e, t, ht(t)), c = (t?.width ?? l.width) + 2 * pi + s, h = (t?.height ?? l.height) + a, d = c - 2 * pi, f = h, u = -c / 2, p = -h / 2, m = [
|
|
13586
13586
|
{ x: 0, y: 0 },
|
|
13587
13587
|
{ x: d, y: 0 },
|
|
13588
13588
|
{ x: d, y: -f },
|
|
@@ -13617,7 +13617,7 @@ async function Ty(e, t) {
|
|
|
13617
13617
|
(t?.width ?? 0) - s * 2 - gn * (t.height + a * 2),
|
|
13618
13618
|
10
|
|
13619
13619
|
));
|
|
13620
|
-
const { shapeSvg: n, bbox: l } = await
|
|
13620
|
+
const { shapeSvg: n, bbox: l } = await dt(e, t, ht(t)), c = (t?.height ? t?.height : l.height) + a * 2, h = gn * c, d = gn * c, u = (t?.width ? t?.width : l.width) + s * 2 + h - h, p = c, m = -u / 2, y = -p / 2, { cssStyles: x } = t, C = it.svg(n), k = rt(t, {}), S = [
|
|
13621
13621
|
{ x: m - h / 2, y },
|
|
13622
13622
|
{ x: m + u + h / 2, y },
|
|
13623
13623
|
{ x: m + u + h / 2, y: y + p },
|
|
@@ -13637,7 +13637,7 @@ g(Ty, "taggedRect");
|
|
|
13637
13637
|
async function _y(e, t) {
|
|
13638
13638
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
13639
13639
|
t.labelStyle = r;
|
|
13640
|
-
const { shapeSvg: o, bbox: s, label: a } = await
|
|
13640
|
+
const { shapeSvg: o, bbox: s, label: a } = await dt(e, t, ht(t)), n = Math.max(s.width + (t.padding ?? 0) * 2, t?.width ?? 0), l = Math.max(s.height + (t.padding ?? 0) * 2, t?.height ?? 0), c = l / 8, h = 0.2 * n, d = 0.2 * l, f = l + c, { cssStyles: u } = t, p = it.svg(o), m = rt(t, {});
|
|
13641
13641
|
t.look !== "handDrawn" && (m.roughness = 0, m.fillStyle = "solid");
|
|
13642
13642
|
const y = [
|
|
13643
13643
|
{ x: -n / 2 - n / 2 * 0.1, y: f / 2 },
|
|
@@ -13678,7 +13678,7 @@ g(_y, "taggedWaveEdgedRectangle");
|
|
|
13678
13678
|
async function By(e, t) {
|
|
13679
13679
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
13680
13680
|
t.labelStyle = r;
|
|
13681
|
-
const { shapeSvg: o, bbox: s } = await
|
|
13681
|
+
const { shapeSvg: o, bbox: s } = await dt(e, t, ht(t)), a = Math.max(s.width + (t.padding ?? 0), t?.width || 0), n = Math.max(s.height + (t.padding ?? 0), t?.height || 0), l = -a / 2, c = -n / 2, h = o.insert("rect", ":first-child");
|
|
13682
13682
|
return h.attr("class", "text").attr("style", i).attr("rx", 0).attr("ry", 0).attr("x", l).attr("y", c).attr("width", a).attr("height", n), at(t, h), t.intersect = function(d) {
|
|
13683
13683
|
return tt.rect(t, d);
|
|
13684
13684
|
}, o;
|
|
@@ -13708,7 +13708,7 @@ async function Ly(e, t) {
|
|
|
13708
13708
|
const x = m / 2 / (2.5 + m / 50);
|
|
13709
13709
|
t.width = (t.width ?? 0) - s - x * 3, t.width < xd && (t.width = xd);
|
|
13710
13710
|
}
|
|
13711
|
-
const { shapeSvg: a, bbox: n, label: l } = await
|
|
13711
|
+
const { shapeSvg: a, bbox: n, label: l } = await dt(e, t, ht(t)), c = (t.height ? t.height : n.height) + s, h = c / 2, d = h / (2.5 + c / 50), f = (t.width ? t.width : n.width) + d + s, { cssStyles: u } = t;
|
|
13712
13712
|
let p;
|
|
13713
13713
|
if (t.look === "handDrawn") {
|
|
13714
13714
|
const m = it.svg(a), y = VB(0, 0, f, c, d, h), x = KB(0, 0, f, c, d, h), C = m.path(y, rt(t, {})), k = m.path(x, rt(t, { fill: "none" }));
|
|
@@ -13733,7 +13733,7 @@ g(Ly, "tiltedCylinder");
|
|
|
13733
13733
|
async function Ey(e, t) {
|
|
13734
13734
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
13735
13735
|
t.labelStyle = r;
|
|
13736
|
-
const o = t.padding ?? 0, s = (t.look === "neo", o), a = t.look === "neo" ? o * 2 : o, { shapeSvg: n, bbox: l } = await
|
|
13736
|
+
const o = t.padding ?? 0, s = (t.look === "neo", o), a = t.look === "neo" ? o * 2 : o, { shapeSvg: n, bbox: l } = await dt(e, t, ht(t)), c = (t?.height ?? l.height) + s, h = (t?.width ?? l.width) + a, d = [
|
|
13737
13737
|
{ x: -3 * c / 6, y: 0 },
|
|
13738
13738
|
{ x: h + 3 * c / 6, y: 0 },
|
|
13739
13739
|
{ x: h, y: -c },
|
|
@@ -13756,7 +13756,7 @@ async function Fy(e, t) {
|
|
|
13756
13756
|
t.labelStyle = r;
|
|
13757
13757
|
const o = t.padding ?? 0, s = t.look === "neo" ? 16 : o, a = t.look === "neo" ? 12 : o, n = 15, l = 5;
|
|
13758
13758
|
(t.width || t.height) && (t.height = (t.height ?? 0) - a * 2, t.height < l && (t.height = l), t.width = (t.width ?? 0) - s * 2, t.width < n && (t.width = n));
|
|
13759
|
-
const { shapeSvg: c, bbox: h } = await
|
|
13759
|
+
const { shapeSvg: c, bbox: h } = await dt(e, t, ht(t)), d = (t?.width ? t?.width : h.width) + s * 2, f = (t?.height ? t?.height : h.height) + a * 2, { cssStyles: u } = t, p = it.svg(c), m = rt(t, {});
|
|
13760
13760
|
t.look !== "handDrawn" && (m.roughness = 0, m.fillStyle = "solid");
|
|
13761
13761
|
const y = [
|
|
13762
13762
|
{ x: -d / 2 * 0.8, y: -f / 2 },
|
|
@@ -13777,7 +13777,7 @@ async function Ay(e, t) {
|
|
|
13777
13777
|
t.labelStyle = r;
|
|
13778
13778
|
const o = t.padding ?? 0, s = t.look === "neo" ? o * 2 : o;
|
|
13779
13779
|
(t.width || t.height) && (t.width = ((t?.width ?? 0) - s) / 2, t.width < bd && (t.width = bd), t.height = t?.height ?? 0, t.height < Cd && (t.height = Cd));
|
|
13780
|
-
const { shapeSvg: a, bbox: n, label: l } = await
|
|
13780
|
+
const { shapeSvg: a, bbox: n, label: l } = await dt(e, t, ht(t)), c = sr(Tt().flowchart?.htmlLabels), h = (t?.width ? t?.width : n.width) + s, d = t?.height ? t?.height : h + n.height, f = d, u = [
|
|
13781
13781
|
{ x: 0, y: 0 },
|
|
13782
13782
|
{ x: f, y: 0 },
|
|
13783
13783
|
{ x: f / 2, y: -d }
|
|
@@ -13798,7 +13798,7 @@ async function My(e, t) {
|
|
|
13798
13798
|
const o = t.padding ?? 0, s = t.look === "neo" ? 16 : o, a = t.look === "neo" ? 12 : o;
|
|
13799
13799
|
let n = !0;
|
|
13800
13800
|
(t.width || t.height) && (n = !1, t.width = (t?.width ?? 0) - s * 2, t.width < 10 && (t.width = 10), t.height = (t?.height ?? 0) - a * 2, t.height < 10 && (t.height = 10));
|
|
13801
|
-
const { shapeSvg: l, bbox: c, label: h } = await
|
|
13801
|
+
const { shapeSvg: l, bbox: c, label: h } = await dt(e, t, ht(t)), d = (t?.width ? t?.width : c.width) + (s ?? 0) * 2, f = (t?.height ? t?.height : c.height) + (a ?? 0) * 2, u = t.look === "neo" ? f / 4 : f / 8, p = f + (n ? u : -u), { cssStyles: m } = t, x = 14 - d, C = x > 0 ? x / 2 : 0, k = it.svg(l), S = rt(t, {});
|
|
13802
13802
|
t.look !== "handDrawn" && (S.roughness = 0, S.fillStyle = "solid");
|
|
13803
13803
|
const v = [
|
|
13804
13804
|
{ x: -d / 2 - C, y: p / 2 },
|
|
@@ -13830,7 +13830,7 @@ async function $y(e, t) {
|
|
|
13830
13830
|
const S = Math.min(t.height * 0.2, t.height / 4);
|
|
13831
13831
|
t.height = Math.ceil(t.height - a - S * (20 / 9)), t.width = t.width - s * 2;
|
|
13832
13832
|
}
|
|
13833
|
-
const { shapeSvg: n, bbox: l } = await
|
|
13833
|
+
const { shapeSvg: n, bbox: l } = await dt(e, t, ht(t)), c = (t?.width ? t?.width : l.width) + s * 2, h = (t?.height ? t?.height : l.height) + a, d = h / 8, f = h + d * 2, { cssStyles: u } = t, p = it.svg(n), m = rt(t, {});
|
|
13834
13834
|
t.look !== "handDrawn" && (m.roughness = 0, m.fillStyle = "solid");
|
|
13835
13835
|
const y = [
|
|
13836
13836
|
{ x: -c / 2, y: f / 2 },
|
|
@@ -13843,25 +13843,25 @@ async function $y(e, t) {
|
|
|
13843
13843
|
}, n;
|
|
13844
13844
|
}
|
|
13845
13845
|
g($y, "waveRectangle");
|
|
13846
|
-
var
|
|
13846
|
+
var Dt = 10;
|
|
13847
13847
|
async function Oy(e, t) {
|
|
13848
13848
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
13849
13849
|
t.labelStyle = r;
|
|
13850
13850
|
const o = t.look === "neo" ? 16 : t.padding ?? 0, s = t.look === "neo" ? 12 : t.padding ?? 0;
|
|
13851
|
-
(t.width || t.height) && (t.width = Math.max((t?.width ?? 0) - o * 2 -
|
|
13852
|
-
const { shapeSvg: a, bbox: n, label: l } = await
|
|
13853
|
-
{ x: u -
|
|
13854
|
-
{ x: u -
|
|
13851
|
+
(t.width || t.height) && (t.width = Math.max((t?.width ?? 0) - o * 2 - Dt, 10), t.height = Math.max((t?.height ?? 0) - s * 2 - Dt, 10));
|
|
13852
|
+
const { shapeSvg: a, bbox: n, label: l } = await dt(e, t, ht(t)), c = (t?.width ? t?.width : n.width) + o * 2 + Dt, h = (t?.height ? t?.height : n.height) + s * 2 + Dt, d = c - Dt, f = h - Dt, u = -d / 2, p = -f / 2, { cssStyles: m } = t, y = it.svg(a), x = rt(t, {}), C = [
|
|
13853
|
+
{ x: u - Dt, y: p - Dt },
|
|
13854
|
+
{ x: u - Dt, y: p + f },
|
|
13855
13855
|
{ x: u + d, y: p + f },
|
|
13856
|
-
{ x: u + d, y: p -
|
|
13857
|
-
], k = `M${u -
|
|
13858
|
-
M${u -
|
|
13859
|
-
M${u},${p -
|
|
13856
|
+
{ x: u + d, y: p - Dt }
|
|
13857
|
+
], k = `M${u - Dt},${p - Dt} L${u + d},${p - Dt} L${u + d},${p + f} L${u - Dt},${p + f} L${u - Dt},${p - Dt}
|
|
13858
|
+
M${u - Dt},${p} L${u + d},${p}
|
|
13859
|
+
M${u},${p - Dt} L${u},${p + f}`;
|
|
13860
13860
|
t.look !== "handDrawn" && (x.roughness = 0, x.fillStyle = "solid");
|
|
13861
13861
|
const S = y.path(k, x), v = a.insert(() => S, ":first-child");
|
|
13862
|
-
return v.attr("transform", `translate(${
|
|
13862
|
+
return v.attr("transform", `translate(${Dt / 2}, ${Dt / 2})`), v.attr("class", "basic label-container outer-path"), m && t.look !== "handDrawn" && v.selectAll("path").attr("style", m), i && t.look !== "handDrawn" && v.selectAll("path").attr("style", i), l.attr(
|
|
13863
13863
|
"transform",
|
|
13864
|
-
`translate(${-(n.width / 2) +
|
|
13864
|
+
`translate(${-(n.width / 2) + Dt / 2 - (n.x - (n.left ?? 0))}, ${-(n.height / 2) + Dt / 2 - (n.y - (n.top ?? 0))})`
|
|
13865
13865
|
), at(t, v), t.intersect = function(T) {
|
|
13866
13866
|
return tt.polygon(t, C, T);
|
|
13867
13867
|
}, a;
|
|
@@ -13871,9 +13871,9 @@ var kd = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), ZB = /* @
|
|
|
13871
13871
|
async function Oh(e, t) {
|
|
13872
13872
|
const r = t;
|
|
13873
13873
|
r.alias && (t.label = r.alias);
|
|
13874
|
-
const { theme: i, themeVariables: o } =
|
|
13874
|
+
const { theme: i, themeVariables: o } = Pt(), { rowEven: s, rowOdd: a, nodeBorder: n, borderColorArray: l } = o;
|
|
13875
13875
|
if (t.look === "handDrawn") {
|
|
13876
|
-
const { themeVariables: Z } =
|
|
13876
|
+
const { themeVariables: Z } = Pt(), { background: j } = Z, K = {
|
|
13877
13877
|
...t,
|
|
13878
13878
|
id: t.id + "-background",
|
|
13879
13879
|
domId: (t.domId || t.id) + "-background",
|
|
@@ -13882,7 +13882,7 @@ async function Oh(e, t) {
|
|
|
13882
13882
|
};
|
|
13883
13883
|
await Oh(e, K);
|
|
13884
13884
|
}
|
|
13885
|
-
const c =
|
|
13885
|
+
const c = Pt();
|
|
13886
13886
|
t.useHtmlLabels = c.htmlLabels;
|
|
13887
13887
|
let h = c.er?.diagramPadding ?? 10, d = c.er?.entityPadding ?? 6;
|
|
13888
13888
|
const { cssStyles: f } = t, { labelStyles: u, nodeStyles: p } = st(t);
|
|
@@ -14115,7 +14115,7 @@ async function Iy(e, t, r, i, o = r.class.padding ?? 12) {
|
|
|
14115
14115
|
}
|
|
14116
14116
|
g(Iy, "textHelper");
|
|
14117
14117
|
async function wo(e, t, r, i = []) {
|
|
14118
|
-
const o = e.insert("g").attr("class", "label").attr("style", i.join("; ")), s =
|
|
14118
|
+
const o = e.insert("g").attr("class", "label").attr("style", i.join("; ")), s = Pt();
|
|
14119
14119
|
let a = "useHtmlLabels" in t ? t.useHtmlLabels : sr(s.htmlLabels) ?? !0, n = "";
|
|
14120
14120
|
"text" in t ? n = t.text : n = t.label, !a && n.startsWith("\\") && (n = n.substring(1)), $o(n) && (a = !0);
|
|
14121
14121
|
const l = await nr(
|
|
@@ -14394,7 +14394,7 @@ async function Dy(e, t, { config: r }) {
|
|
|
14394
14394
|
shapeSvg: n,
|
|
14395
14395
|
bbox: l,
|
|
14396
14396
|
label: c
|
|
14397
|
-
} = await
|
|
14397
|
+
} = await dt(e, t, ht(t)), h = t.padding || 10;
|
|
14398
14398
|
let d = "", f;
|
|
14399
14399
|
"ticket" in t && t.ticket && r?.kanban?.ticketBaseUrl && (d = r?.kanban?.ticketBaseUrl.replace("#TICKET#", t.ticket), f = n.insert("svg:a", ":first-child").attr("class", "kanban-ticket-link").attr("xlink:href", d).attr("target", "_blank"));
|
|
14400
14400
|
const u = {
|
|
@@ -14453,7 +14453,7 @@ g(Dy, "kanbanItem");
|
|
|
14453
14453
|
async function Ny(e, t) {
|
|
14454
14454
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
14455
14455
|
t.labelStyle = r;
|
|
14456
|
-
const { shapeSvg: o, bbox: s, halfPadding: a, label: n } = await
|
|
14456
|
+
const { shapeSvg: o, bbox: s, halfPadding: a, label: n } = await dt(
|
|
14457
14457
|
e,
|
|
14458
14458
|
t,
|
|
14459
14459
|
ht(t)
|
|
@@ -14494,7 +14494,7 @@ g(Ny, "bang");
|
|
|
14494
14494
|
async function zy(e, t) {
|
|
14495
14495
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
14496
14496
|
t.labelStyle = r;
|
|
14497
|
-
const { shapeSvg: o, bbox: s, halfPadding: a, label: n } = await
|
|
14497
|
+
const { shapeSvg: o, bbox: s, halfPadding: a, label: n } = await dt(
|
|
14498
14498
|
e,
|
|
14499
14499
|
t,
|
|
14500
14500
|
ht(t)
|
|
@@ -14530,7 +14530,7 @@ g(zy, "cloud");
|
|
|
14530
14530
|
async function qy(e, t) {
|
|
14531
14531
|
const { labelStyles: r, nodeStyles: i } = st(t);
|
|
14532
14532
|
t.labelStyle = r;
|
|
14533
|
-
const { shapeSvg: o, bbox: s, halfPadding: a, label: n } = await
|
|
14533
|
+
const { shapeSvg: o, bbox: s, halfPadding: a, label: n } = await dt(
|
|
14534
14534
|
e,
|
|
14535
14535
|
t,
|
|
14536
14536
|
ht(t)
|
|
@@ -15021,11 +15021,11 @@ async function Hy(e, t, r) {
|
|
|
15021
15021
|
return i.attr("data-look", Jt(t.look)), t.tooltip && o.attr("title", t.tooltip), Ra.set(t.id, i), t.haveCallback && i.attr("class", i.attr("class") + " clickable"), i;
|
|
15022
15022
|
}
|
|
15023
15023
|
g(Hy, "insertNode");
|
|
15024
|
-
var
|
|
15024
|
+
var AI = /* @__PURE__ */ g((e, t) => {
|
|
15025
15025
|
Ra.set(t.id, e);
|
|
15026
|
-
}, "setNodeElem"),
|
|
15026
|
+
}, "setNodeElem"), MI = /* @__PURE__ */ g(() => {
|
|
15027
15027
|
Ra.clear();
|
|
15028
|
-
}, "clear"),
|
|
15028
|
+
}, "clear"), $I = /* @__PURE__ */ g((e) => {
|
|
15029
15029
|
const t = Ra.get(e.id);
|
|
15030
15030
|
G.trace(
|
|
15031
15031
|
"Transforming node",
|
|
@@ -15182,7 +15182,7 @@ var It = /* @__PURE__ */ g((e) => Array.isArray(e) ? { x: e[0], y: e[1] } : e, "
|
|
|
15182
15182
|
e.attr(`marker-${t}`, `url(${i}#${m})`);
|
|
15183
15183
|
} else
|
|
15184
15184
|
e.attr(`marker-${t}`, `url(${i}#${u})`);
|
|
15185
|
-
}, "addEdgeMarker"), aL = /* @__PURE__ */ g((e) => typeof e == "string" ? e : Tt()?.flowchart?.curve, "resolveEdgeCurveType"), pa = /* @__PURE__ */ new Map(), oe = /* @__PURE__ */ new Map(),
|
|
15185
|
+
}, "addEdgeMarker"), aL = /* @__PURE__ */ g((e) => typeof e == "string" ? e : Tt()?.flowchart?.curve, "resolveEdgeCurveType"), pa = /* @__PURE__ */ new Map(), oe = /* @__PURE__ */ new Map(), OI = /* @__PURE__ */ g(() => {
|
|
15186
15186
|
pa.clear(), oe.clear();
|
|
15187
15187
|
}, "clear"), uo = /* @__PURE__ */ g((e) => e ? typeof e == "string" ? e : e.reduce((t, r) => t + ";" + r, "") : "", "getLabelStyles"), nL = /* @__PURE__ */ g(async (e, t) => {
|
|
15188
15188
|
const r = Tt();
|
|
@@ -15656,7 +15656,7 @@ var gL = /* @__PURE__ */ g((e, t, r, i) => {
|
|
|
15656
15656
|
}, "cross"), vL = /* @__PURE__ */ g((e, t, r) => {
|
|
15657
15657
|
e.append("defs").append("marker").attr("id", r + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
|
|
15658
15658
|
}, "barb"), TL = /* @__PURE__ */ g((e, t, r) => {
|
|
15659
|
-
const i =
|
|
15659
|
+
const i = Pt(), { themeVariables: o } = i, { transitionColor: s } = o;
|
|
15660
15660
|
e.append("defs").append("marker").attr("id", r + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L11,14 L13,7 L11,0 Z"), e.append("defs").append("marker").attr("id", r + "_" + t + "-barbEnd-margin").attr("refX", 17).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L11,14 L13,7 L11,0 Z").attr("fill", `${s}`);
|
|
15661
15661
|
}, "barbNeo"), _L = /* @__PURE__ */ g((e, t, r) => {
|
|
15662
15662
|
e.append("defs").append("marker").attr("id", r + "_" + t + "-onlyOneStart").attr("class", "marker onlyOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18"), e.append("defs").append("marker").attr("id", r + "_" + t + "-onlyOneEnd").attr("class", "marker onlyOne " + t).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18");
|
|
@@ -15673,18 +15673,18 @@ var gL = /* @__PURE__ */ g((e, t, r, i) => {
|
|
|
15673
15673
|
const o = e.append("defs").append("marker").attr("id", r + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
|
|
15674
15674
|
o.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), o.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18");
|
|
15675
15675
|
}, "zero_or_more"), FL = /* @__PURE__ */ g((e, t, r) => {
|
|
15676
|
-
const i =
|
|
15676
|
+
const i = Pt(), { themeVariables: o } = i, { strokeWidth: s } = o;
|
|
15677
15677
|
e.append("defs").append("marker").attr("id", r + "_" + t + "-onlyOneStart").attr("class", "marker onlyOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18").attr("stroke-width", `${s}`), e.append("defs").append("marker").attr("id", r + "_" + t + "-onlyOneEnd").attr("class", "marker onlyOne " + t).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18").attr("stroke-width", `${s}`);
|
|
15678
15678
|
}, "only_one_neo"), AL = /* @__PURE__ */ g((e, t, r) => {
|
|
15679
|
-
const i =
|
|
15679
|
+
const i = Pt(), { themeVariables: o } = i, { strokeWidth: s, mainBkg: a } = o, n = e.append("defs").append("marker").attr("id", r + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse");
|
|
15680
15680
|
n.append("circle").attr("fill", a ?? "white").attr("cx", 21).attr("cy", 9).attr("stroke-width", `${s}`).attr("r", 6), n.append("path").attr("d", "M9,0 L9,18").attr("stroke-width", `${s}`);
|
|
15681
15681
|
const l = e.append("defs").append("marker").attr("id", r + "_" + t + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + t).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto");
|
|
15682
15682
|
l.append("circle").attr("fill", a ?? "white").attr("cx", 9).attr("cy", 9).attr("stroke-width", `${s}`).attr("r", 6), l.append("path").attr("d", "M21,0 L21,18").attr("stroke-width", `${s}`);
|
|
15683
15683
|
}, "zero_or_one_neo"), ML = /* @__PURE__ */ g((e, t, r) => {
|
|
15684
|
-
const i =
|
|
15684
|
+
const i = Pt(), { themeVariables: o } = i, { strokeWidth: s } = o;
|
|
15685
15685
|
e.append("defs").append("marker").attr("id", r + "_" + t + "-oneOrMoreStart").attr("class", "marker oneOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width", `${s}`), e.append("defs").append("marker").attr("id", r + "_" + t + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + t).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width", `${s}`);
|
|
15686
15686
|
}, "one_or_more_neo"), $L = /* @__PURE__ */ g((e, t, r) => {
|
|
15687
|
-
const i =
|
|
15687
|
+
const i = Pt(), { themeVariables: o } = i, { strokeWidth: s, mainBkg: a } = o, n = e.append("defs").append("marker").attr("id", r + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto");
|
|
15688
15688
|
n.append("circle").attr("fill", a ?? "white").attr("cx", 45.5).attr("cy", 18).attr("r", 6).attr("stroke-width", `${s}`), n.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width", `${s}`);
|
|
15689
15689
|
const l = e.append("defs").append("marker").attr("id", r + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse");
|
|
15690
15690
|
l.append("circle").attr("fill", a ?? "white").attr("cx", 11).attr("cy", 18).attr("r", 6).attr("stroke-width", `${s}`), l.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width", `${s}`);
|
|
@@ -15697,7 +15697,7 @@ var gL = /* @__PURE__ */ g((e, t, r, i) => {
|
|
|
15697
15697
|
L0,20`
|
|
15698
15698
|
);
|
|
15699
15699
|
}, "requirement_arrow"), IL = /* @__PURE__ */ g((e, t, r) => {
|
|
15700
|
-
const i =
|
|
15700
|
+
const i = Pt(), { themeVariables: o } = i, { strokeWidth: s } = o;
|
|
15701
15701
|
e.append("defs").append("marker").attr("id", r + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("stroke-width", `${s}`).attr("viewBox", "0 0 25 20").append("path").attr(
|
|
15702
15702
|
"d",
|
|
15703
15703
|
`M0,0
|
|
@@ -15709,7 +15709,7 @@ var gL = /* @__PURE__ */ g((e, t, r, i) => {
|
|
|
15709
15709
|
const i = e.append("defs").append("marker").attr("id", r + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("g");
|
|
15710
15710
|
i.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), i.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), i.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10);
|
|
15711
15711
|
}, "requirement_contains"), PL = /* @__PURE__ */ g((e, t, r) => {
|
|
15712
|
-
const i =
|
|
15712
|
+
const i = Pt(), { themeVariables: o } = i, { strokeWidth: s } = o, a = e.append("defs").append("marker").attr("id", r + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("g");
|
|
15713
15713
|
a.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), a.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), a.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10), a.selectAll("*").attr("stroke-width", `${s}`);
|
|
15714
15714
|
}, "requirement_contains_neo"), DL = {
|
|
15715
15715
|
extension: mL,
|
|
@@ -15736,14 +15736,14 @@ var gL = /* @__PURE__ */ g((e, t, r, i) => {
|
|
|
15736
15736
|
requirement_contains_neo: PL
|
|
15737
15737
|
}, NL = gL, zL = {
|
|
15738
15738
|
common: Vo,
|
|
15739
|
-
getConfig:
|
|
15739
|
+
getConfig: Pt,
|
|
15740
15740
|
insertCluster: IB,
|
|
15741
15741
|
insertEdge: pL,
|
|
15742
15742
|
insertEdgeLabel: nL,
|
|
15743
15743
|
insertMarkers: NL,
|
|
15744
15744
|
insertNode: Hy,
|
|
15745
15745
|
interpolateToCurve: ph,
|
|
15746
|
-
labelHelper:
|
|
15746
|
+
labelHelper: dt,
|
|
15747
15747
|
log: G,
|
|
15748
15748
|
positionEdgeLabel: lL
|
|
15749
15749
|
}, Wo = {}, Gy = /* @__PURE__ */ g((e) => {
|
|
@@ -15753,20 +15753,20 @@ var gL = /* @__PURE__ */ g((e, t, r, i) => {
|
|
|
15753
15753
|
Gy([
|
|
15754
15754
|
{
|
|
15755
15755
|
name: "dagre",
|
|
15756
|
-
loader: /* @__PURE__ */ g(async () => await import("./dagre-VKFMJZFB-
|
|
15756
|
+
loader: /* @__PURE__ */ g(async () => await import("./dagre-VKFMJZFB-C1Y6S6Dm.js"), "loader")
|
|
15757
15757
|
},
|
|
15758
15758
|
{
|
|
15759
15759
|
name: "swimlane",
|
|
15760
|
-
loader: /* @__PURE__ */ g(async () => await import("./swimlanes-5IMT3BWC-
|
|
15760
|
+
loader: /* @__PURE__ */ g(async () => await import("./swimlanes-5IMT3BWC-Cpowlk7O.js"), "loader")
|
|
15761
15761
|
},
|
|
15762
15762
|
{
|
|
15763
15763
|
name: "cose-bilkent",
|
|
15764
|
-
loader: /* @__PURE__ */ g(async () => await import("./cose-bilkent-JH36ORCC-
|
|
15764
|
+
loader: /* @__PURE__ */ g(async () => await import("./cose-bilkent-JH36ORCC-BmM-AQ-j.js"), "loader")
|
|
15765
15765
|
}
|
|
15766
15766
|
]);
|
|
15767
15767
|
}, "registerDefaultLayoutLoaders");
|
|
15768
15768
|
qL();
|
|
15769
|
-
var
|
|
15769
|
+
var II = /* @__PURE__ */ g(async (e, t, r) => {
|
|
15770
15770
|
if (!(e.layoutAlgorithm in Wo))
|
|
15771
15771
|
throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);
|
|
15772
15772
|
if (e.diagramId)
|
|
@@ -15788,7 +15788,7 @@ var $I = /* @__PURE__ */ g(async (e, t, r) => {
|
|
|
15788
15788
|
},
|
|
15789
15789
|
r
|
|
15790
15790
|
);
|
|
15791
|
-
}, "render"),
|
|
15791
|
+
}, "render"), RI = /* @__PURE__ */ g((e = "", { fallback: t = "dagre" } = {}) => {
|
|
15792
15792
|
if (e in Wo)
|
|
15793
15793
|
return e;
|
|
15794
15794
|
if (t in Wo)
|
|
@@ -16096,126 +16096,126 @@ function sE(e) {
|
|
|
16096
16096
|
};
|
|
16097
16097
|
}
|
|
16098
16098
|
var e0 = "c4", aE = /* @__PURE__ */ g((e) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e), "detector"), nE = /* @__PURE__ */ g(async () => {
|
|
16099
|
-
const { diagram: e } = await import("./c4Diagram-LMCZKHZV-
|
|
16099
|
+
const { diagram: e } = await import("./c4Diagram-LMCZKHZV-jgR25uUP.js");
|
|
16100
16100
|
return { id: e0, diagram: e };
|
|
16101
16101
|
}, "loader"), lE = {
|
|
16102
16102
|
id: e0,
|
|
16103
16103
|
detector: aE,
|
|
16104
16104
|
loader: nE
|
|
16105
16105
|
}, hE = lE, r0 = "flowchart", cE = /* @__PURE__ */ g((e, t) => t?.flowchart?.defaultRenderer === "dagre-wrapper" || t?.flowchart?.defaultRenderer === "elk" ? !1 : /^\s*graph/.test(e), "detector"), dE = /* @__PURE__ */ g(async () => {
|
|
16106
|
-
const { diagram: e } = await import("./flowDiagram-23GEKE2U-
|
|
16106
|
+
const { diagram: e } = await import("./flowDiagram-23GEKE2U-p6ccACf3.js");
|
|
16107
16107
|
return { id: r0, diagram: e };
|
|
16108
16108
|
}, "loader"), uE = {
|
|
16109
16109
|
id: r0,
|
|
16110
16110
|
detector: cE,
|
|
16111
16111
|
loader: dE
|
|
16112
16112
|
}, fE = uE, i0 = "flowchart-v2", pE = /* @__PURE__ */ g((e, t) => t?.flowchart?.defaultRenderer === "dagre-d3" ? !1 : (t?.flowchart?.defaultRenderer === "elk" && (t.layout = "elk"), /^\s*graph/.test(e) && t?.flowchart?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(e)), "detector"), gE = /* @__PURE__ */ g(async () => {
|
|
16113
|
-
const { diagram: e } = await import("./flowDiagram-23GEKE2U-
|
|
16113
|
+
const { diagram: e } = await import("./flowDiagram-23GEKE2U-p6ccACf3.js");
|
|
16114
16114
|
return { id: i0, diagram: e };
|
|
16115
16115
|
}, "loader"), mE = {
|
|
16116
16116
|
id: i0,
|
|
16117
16117
|
detector: pE,
|
|
16118
16118
|
loader: gE
|
|
16119
16119
|
}, yE = mE, o0 = "swimlane", xE = /* @__PURE__ */ g((e) => /^\s*swimlane-beta\b/.test(e), "detector"), CE = /* @__PURE__ */ g(async () => {
|
|
16120
|
-
const { diagram: e } = await import("./swimlanesDiagram-G3AALYLV-
|
|
16120
|
+
const { diagram: e } = await import("./swimlanesDiagram-G3AALYLV-36K4ynZn.js");
|
|
16121
16121
|
return { id: o0, diagram: e };
|
|
16122
16122
|
}, "loader"), bE = {
|
|
16123
16123
|
id: o0,
|
|
16124
16124
|
detector: xE,
|
|
16125
16125
|
loader: CE
|
|
16126
16126
|
}, kE = bE, s0 = "er", wE = /* @__PURE__ */ g((e) => /^\s*erDiagram/.test(e), "detector"), SE = /* @__PURE__ */ g(async () => {
|
|
16127
|
-
const { diagram: e } = await import("./erDiagram-Q63AITRT-
|
|
16127
|
+
const { diagram: e } = await import("./erDiagram-Q63AITRT-tOZoI25O.js");
|
|
16128
16128
|
return { id: s0, diagram: e };
|
|
16129
16129
|
}, "loader"), vE = {
|
|
16130
16130
|
id: s0,
|
|
16131
16131
|
detector: wE,
|
|
16132
16132
|
loader: SE
|
|
16133
16133
|
}, TE = vE, a0 = "gitGraph", _E = /* @__PURE__ */ g((e) => /^\s*gitGraph/.test(e), "detector"), BE = /* @__PURE__ */ g(async () => {
|
|
16134
|
-
const { diagram: e } = await import("./gitGraphDiagram-IHSO6WYX-
|
|
16134
|
+
const { diagram: e } = await import("./gitGraphDiagram-IHSO6WYX-BXWses91.js");
|
|
16135
16135
|
return { id: a0, diagram: e };
|
|
16136
16136
|
}, "loader"), LE = {
|
|
16137
16137
|
id: a0,
|
|
16138
16138
|
detector: _E,
|
|
16139
16139
|
loader: BE
|
|
16140
16140
|
}, EE = LE, n0 = "gantt", FE = /* @__PURE__ */ g((e) => /^\s*gantt/.test(e), "detector"), AE = /* @__PURE__ */ g(async () => {
|
|
16141
|
-
const { diagram: e } = await import("./ganttDiagram-NO4QXBWP-
|
|
16141
|
+
const { diagram: e } = await import("./ganttDiagram-NO4QXBWP-C23vm5cK.js");
|
|
16142
16142
|
return { id: n0, diagram: e };
|
|
16143
16143
|
}, "loader"), ME = {
|
|
16144
16144
|
id: n0,
|
|
16145
16145
|
detector: FE,
|
|
16146
16146
|
loader: AE
|
|
16147
16147
|
}, $E = ME, l0 = "info", OE = /* @__PURE__ */ g((e) => /^\s*info/.test(e), "detector"), IE = /* @__PURE__ */ g(async () => {
|
|
16148
|
-
const { diagram: e } = await import("./infoDiagram-FWYZ7A6U-
|
|
16148
|
+
const { diagram: e } = await import("./infoDiagram-FWYZ7A6U-C4NsbHAN.js");
|
|
16149
16149
|
return { id: l0, diagram: e };
|
|
16150
16150
|
}, "loader"), RE = {
|
|
16151
16151
|
id: l0,
|
|
16152
16152
|
detector: OE,
|
|
16153
16153
|
loader: IE
|
|
16154
16154
|
}, h0 = "pie", PE = /* @__PURE__ */ g((e) => /^\s*pie/.test(e), "detector"), DE = /* @__PURE__ */ g(async () => {
|
|
16155
|
-
const { diagram: e } = await import("./pieDiagram-ENE6RG2P-
|
|
16155
|
+
const { diagram: e } = await import("./pieDiagram-ENE6RG2P-wfsOfWyT.js");
|
|
16156
16156
|
return { id: h0, diagram: e };
|
|
16157
16157
|
}, "loader"), NE = {
|
|
16158
16158
|
id: h0,
|
|
16159
16159
|
detector: PE,
|
|
16160
16160
|
loader: DE
|
|
16161
16161
|
}, c0 = "quadrantChart", zE = /* @__PURE__ */ g((e) => /^\s*quadrantChart/.test(e), "detector"), qE = /* @__PURE__ */ g(async () => {
|
|
16162
|
-
const { diagram: e } = await import("./quadrantDiagram-ABIIQ3AL-
|
|
16162
|
+
const { diagram: e } = await import("./quadrantDiagram-ABIIQ3AL-Bgc3vspL.js");
|
|
16163
16163
|
return { id: c0, diagram: e };
|
|
16164
16164
|
}, "loader"), jE = {
|
|
16165
16165
|
id: c0,
|
|
16166
16166
|
detector: zE,
|
|
16167
16167
|
loader: qE
|
|
16168
16168
|
}, WE = jE, d0 = "xychart", HE = /* @__PURE__ */ g((e) => /^\s*xychart(-beta)?/.test(e), "detector"), YE = /* @__PURE__ */ g(async () => {
|
|
16169
|
-
const { diagram: e } = await import("./xychartDiagram-FW5EYKEG-
|
|
16169
|
+
const { diagram: e } = await import("./xychartDiagram-FW5EYKEG-spkx-w6w.js");
|
|
16170
16170
|
return { id: d0, diagram: e };
|
|
16171
16171
|
}, "loader"), UE = {
|
|
16172
16172
|
id: d0,
|
|
16173
16173
|
detector: HE,
|
|
16174
16174
|
loader: YE
|
|
16175
16175
|
}, XE = UE, u0 = "requirement", GE = /* @__PURE__ */ g((e) => /^\s*requirement(Diagram)?/.test(e), "detector"), VE = /* @__PURE__ */ g(async () => {
|
|
16176
|
-
const { diagram: e } = await import("./requirementDiagram-TGXJPOKE-
|
|
16176
|
+
const { diagram: e } = await import("./requirementDiagram-TGXJPOKE-CnafqSUP.js");
|
|
16177
16177
|
return { id: u0, diagram: e };
|
|
16178
16178
|
}, "loader"), KE = {
|
|
16179
16179
|
id: u0,
|
|
16180
16180
|
detector: GE,
|
|
16181
16181
|
loader: VE
|
|
16182
16182
|
}, ZE = KE, f0 = "sequence", QE = /* @__PURE__ */ g((e) => /^\s*sequenceDiagram/.test(e), "detector"), JE = /* @__PURE__ */ g(async () => {
|
|
16183
|
-
const { diagram: e } = await import("./sequenceDiagram-DBY2YBRQ-
|
|
16183
|
+
const { diagram: e } = await import("./sequenceDiagram-DBY2YBRQ-CmP6XGGE.js");
|
|
16184
16184
|
return { id: f0, diagram: e };
|
|
16185
16185
|
}, "loader"), tF = {
|
|
16186
16186
|
id: f0,
|
|
16187
16187
|
detector: QE,
|
|
16188
16188
|
loader: JE
|
|
16189
16189
|
}, eF = tF, p0 = "class", rF = /* @__PURE__ */ g((e, t) => t?.class?.defaultRenderer === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(e), "detector"), iF = /* @__PURE__ */ g(async () => {
|
|
16190
|
-
const { diagram: e } = await import("./classDiagram-OUVF2IWQ-
|
|
16190
|
+
const { diagram: e } = await import("./classDiagram-OUVF2IWQ-CVu4_B8x.js");
|
|
16191
16191
|
return { id: p0, diagram: e };
|
|
16192
16192
|
}, "loader"), oF = {
|
|
16193
16193
|
id: p0,
|
|
16194
16194
|
detector: rF,
|
|
16195
16195
|
loader: iF
|
|
16196
16196
|
}, sF = oF, g0 = "classDiagram", aF = /* @__PURE__ */ g((e, t) => /^\s*classDiagram/.test(e) && t?.class?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(e), "detector"), nF = /* @__PURE__ */ g(async () => {
|
|
16197
|
-
const { diagram: e } = await import("./classDiagram-v2-EOCWNBFH-
|
|
16197
|
+
const { diagram: e } = await import("./classDiagram-v2-EOCWNBFH-CVu4_B8x.js");
|
|
16198
16198
|
return { id: g0, diagram: e };
|
|
16199
16199
|
}, "loader"), lF = {
|
|
16200
16200
|
id: g0,
|
|
16201
16201
|
detector: aF,
|
|
16202
16202
|
loader: nF
|
|
16203
16203
|
}, hF = lF, m0 = "state", cF = /* @__PURE__ */ g((e, t) => t?.state?.defaultRenderer === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(e), "detector"), dF = /* @__PURE__ */ g(async () => {
|
|
16204
|
-
const { diagram: e } = await import("./stateDiagram-2N3HPSRC-
|
|
16204
|
+
const { diagram: e } = await import("./stateDiagram-2N3HPSRC-ClDZKhLD.js");
|
|
16205
16205
|
return { id: m0, diagram: e };
|
|
16206
16206
|
}, "loader"), uF = {
|
|
16207
16207
|
id: m0,
|
|
16208
16208
|
detector: cF,
|
|
16209
16209
|
loader: dF
|
|
16210
16210
|
}, fF = uF, y0 = "stateDiagram", pF = /* @__PURE__ */ g((e, t) => !!(/^\s*stateDiagram-v2/.test(e) || /^\s*stateDiagram/.test(e) && t?.state?.defaultRenderer === "dagre-wrapper"), "detector"), gF = /* @__PURE__ */ g(async () => {
|
|
16211
|
-
const { diagram: e } = await import("./stateDiagram-v2-6OUMAXLB-
|
|
16211
|
+
const { diagram: e } = await import("./stateDiagram-v2-6OUMAXLB-K7slPgH_.js");
|
|
16212
16212
|
return { id: y0, diagram: e };
|
|
16213
16213
|
}, "loader"), mF = {
|
|
16214
16214
|
id: y0,
|
|
16215
16215
|
detector: pF,
|
|
16216
16216
|
loader: gF
|
|
16217
16217
|
}, yF = mF, x0 = "journey", xF = /* @__PURE__ */ g((e) => /^\s*journey/.test(e), "detector"), CF = /* @__PURE__ */ g(async () => {
|
|
16218
|
-
const { diagram: e } = await import("./journeyDiagram-5HDEW3XC-
|
|
16218
|
+
const { diagram: e } = await import("./journeyDiagram-5HDEW3XC-DO1Xx-OE.js");
|
|
16219
16219
|
return { id: x0, diagram: e };
|
|
16220
16220
|
}, "loader"), bF = {
|
|
16221
16221
|
id: x0,
|
|
@@ -16256,140 +16256,140 @@ var e0 = "c4", aE = /* @__PURE__ */ g((e) => /^\s*C4Context|C4Container|C4Compon
|
|
|
16256
16256
|
/^\s*flowchart-elk/.test(e) || // If a flowchart/graph diagram has their default renderer set to elk
|
|
16257
16257
|
/^\s*(flowchart|graph)/.test(e) && t?.flowchart?.defaultRenderer === "elk" ? (t.layout = "elk", !0) : !1
|
|
16258
16258
|
), "detector"), BF = /* @__PURE__ */ g(async () => {
|
|
16259
|
-
const { diagram: e } = await import("./flowDiagram-23GEKE2U-
|
|
16259
|
+
const { diagram: e } = await import("./flowDiagram-23GEKE2U-p6ccACf3.js");
|
|
16260
16260
|
return { id: b0, diagram: e };
|
|
16261
16261
|
}, "loader"), LF = {
|
|
16262
16262
|
id: b0,
|
|
16263
16263
|
detector: _F,
|
|
16264
16264
|
loader: BF
|
|
16265
16265
|
}, EF = LF, k0 = "timeline", FF = /* @__PURE__ */ g((e) => /^\s*timeline/.test(e), "detector"), AF = /* @__PURE__ */ g(async () => {
|
|
16266
|
-
const { diagram: e } = await import("./timeline-definition-FHXFAJF6-
|
|
16266
|
+
const { diagram: e } = await import("./timeline-definition-FHXFAJF6-C2xHtlkw.js");
|
|
16267
16267
|
return { id: k0, diagram: e };
|
|
16268
16268
|
}, "loader"), MF = {
|
|
16269
16269
|
id: k0,
|
|
16270
16270
|
detector: FF,
|
|
16271
16271
|
loader: AF
|
|
16272
16272
|
}, $F = MF, w0 = "mindmap", OF = /* @__PURE__ */ g((e) => /^\s*mindmap/.test(e), "detector"), IF = /* @__PURE__ */ g(async () => {
|
|
16273
|
-
const { diagram: e } = await import("./mindmap-definition-LN4V7U3C-
|
|
16273
|
+
const { diagram: e } = await import("./mindmap-definition-LN4V7U3C-B5LpvJ9m.js");
|
|
16274
16274
|
return { id: w0, diagram: e };
|
|
16275
16275
|
}, "loader"), RF = {
|
|
16276
16276
|
id: w0,
|
|
16277
16277
|
detector: OF,
|
|
16278
16278
|
loader: IF
|
|
16279
16279
|
}, PF = RF, S0 = "kanban", DF = /* @__PURE__ */ g((e) => /^\s*kanban/.test(e), "detector"), NF = /* @__PURE__ */ g(async () => {
|
|
16280
|
-
const { diagram: e } = await import("./kanban-definition-HUTT4EX6-
|
|
16280
|
+
const { diagram: e } = await import("./kanban-definition-HUTT4EX6-RfpoaM17.js");
|
|
16281
16281
|
return { id: S0, diagram: e };
|
|
16282
16282
|
}, "loader"), zF = {
|
|
16283
16283
|
id: S0,
|
|
16284
16284
|
detector: DF,
|
|
16285
16285
|
loader: NF
|
|
16286
16286
|
}, qF = zF, v0 = "sankey", jF = /* @__PURE__ */ g((e) => /^\s*sankey(-beta)?/.test(e), "detector"), WF = /* @__PURE__ */ g(async () => {
|
|
16287
|
-
const { diagram: e } = await import("./sankeyDiagram-HTMAVEWB-
|
|
16287
|
+
const { diagram: e } = await import("./sankeyDiagram-HTMAVEWB-D4Qv4d98.js");
|
|
16288
16288
|
return { id: v0, diagram: e };
|
|
16289
16289
|
}, "loader"), HF = {
|
|
16290
16290
|
id: v0,
|
|
16291
16291
|
detector: jF,
|
|
16292
16292
|
loader: WF
|
|
16293
16293
|
}, YF = HF, T0 = "packet", UF = /* @__PURE__ */ g((e) => /^\s*packet(-beta)?/.test(e), "detector"), XF = /* @__PURE__ */ g(async () => {
|
|
16294
|
-
const { diagram: e } = await import("./diagram-NH7WQ7WH-
|
|
16294
|
+
const { diagram: e } = await import("./diagram-NH7WQ7WH-BDWfQ8xs.js");
|
|
16295
16295
|
return { id: T0, diagram: e };
|
|
16296
16296
|
}, "loader"), GF = {
|
|
16297
16297
|
id: T0,
|
|
16298
16298
|
detector: UF,
|
|
16299
16299
|
loader: XF
|
|
16300
16300
|
}, _0 = "radar", VF = /* @__PURE__ */ g((e) => /^\s*radar-beta/.test(e), "detector"), KF = /* @__PURE__ */ g(async () => {
|
|
16301
|
-
const { diagram: e } = await import("./diagram-WEI45ONY-
|
|
16301
|
+
const { diagram: e } = await import("./diagram-WEI45ONY-Cd3qe8Wi.js");
|
|
16302
16302
|
return { id: _0, diagram: e };
|
|
16303
16303
|
}, "loader"), ZF = {
|
|
16304
16304
|
id: _0,
|
|
16305
16305
|
detector: VF,
|
|
16306
16306
|
loader: KF
|
|
16307
16307
|
}, B0 = "block", QF = /* @__PURE__ */ g((e) => /^\s*block(-beta)?/.test(e), "detector"), JF = /* @__PURE__ */ g(async () => {
|
|
16308
|
-
const { diagram: e } = await import("./blockDiagram-677ZJIJ3-
|
|
16308
|
+
const { diagram: e } = await import("./blockDiagram-677ZJIJ3-DIpIE77y.js");
|
|
16309
16309
|
return { id: B0, diagram: e };
|
|
16310
16310
|
}, "loader"), tA = {
|
|
16311
16311
|
id: B0,
|
|
16312
16312
|
detector: QF,
|
|
16313
16313
|
loader: JF
|
|
16314
16314
|
}, eA = tA, L0 = "treeView", rA = /* @__PURE__ */ g((e) => /^\s*treeView-beta/.test(e), "detector"), iA = /* @__PURE__ */ g(async () => {
|
|
16315
|
-
const { diagram: e } = await import("./diagram-OA4YK3LP-
|
|
16315
|
+
const { diagram: e } = await import("./diagram-OA4YK3LP-DuW90Uhk.js");
|
|
16316
16316
|
return { id: L0, diagram: e };
|
|
16317
16317
|
}, "loader"), oA = {
|
|
16318
16318
|
id: L0,
|
|
16319
16319
|
detector: rA,
|
|
16320
16320
|
loader: iA
|
|
16321
16321
|
}, sA = oA, E0 = "architecture", aA = /* @__PURE__ */ g((e) => /^\s*architecture/.test(e), "detector"), nA = /* @__PURE__ */ g(async () => {
|
|
16322
|
-
const { diagram: e } = await import("./architectureDiagram-ZJ3FMSHR-
|
|
16322
|
+
const { diagram: e } = await import("./architectureDiagram-ZJ3FMSHR-Cc9gQRX2.js");
|
|
16323
16323
|
return { id: E0, diagram: e };
|
|
16324
16324
|
}, "loader"), lA = {
|
|
16325
16325
|
id: E0,
|
|
16326
16326
|
detector: aA,
|
|
16327
16327
|
loader: nA
|
|
16328
16328
|
}, hA = lA, F0 = "eventmodeling", cA = /* @__PURE__ */ g((e) => /^\s*eventmodeling/.test(e), "detector"), dA = /* @__PURE__ */ g(async () => {
|
|
16329
|
-
const { diagram: e } = await import("./diagram-FQU43EPY-
|
|
16329
|
+
const { diagram: e } = await import("./diagram-FQU43EPY-CFG9AlAq.js");
|
|
16330
16330
|
return { id: F0, diagram: e };
|
|
16331
16331
|
}, "loader"), uA = {
|
|
16332
16332
|
id: F0,
|
|
16333
16333
|
detector: cA,
|
|
16334
16334
|
loader: dA
|
|
16335
16335
|
}, fA = uA, A0 = "ishikawa", pA = /* @__PURE__ */ g((e) => /^\s*ishikawa(-beta)?\b/i.test(e), "detector"), gA = /* @__PURE__ */ g(async () => {
|
|
16336
|
-
const { diagram: e } = await import("./ishikawaDiagram-FXEZZL3T-
|
|
16336
|
+
const { diagram: e } = await import("./ishikawaDiagram-FXEZZL3T-B2bMsFnl.js");
|
|
16337
16337
|
return { id: A0, diagram: e };
|
|
16338
16338
|
}, "loader"), mA = {
|
|
16339
16339
|
id: A0,
|
|
16340
16340
|
detector: pA,
|
|
16341
16341
|
loader: gA
|
|
16342
16342
|
}, M0 = "venn", yA = /* @__PURE__ */ g((e) => /^\s*venn-beta/.test(e), "detector"), xA = /* @__PURE__ */ g(async () => {
|
|
16343
|
-
const { diagram: e } = await import("./vennDiagram-L72KCM5P-
|
|
16343
|
+
const { diagram: e } = await import("./vennDiagram-L72KCM5P-DbqRaWm5.js");
|
|
16344
16344
|
return { id: M0, diagram: e };
|
|
16345
16345
|
}, "loader"), CA = {
|
|
16346
16346
|
id: M0,
|
|
16347
16347
|
detector: yA,
|
|
16348
16348
|
loader: xA
|
|
16349
16349
|
}, bA = CA, $0 = "treemap", kA = /* @__PURE__ */ g((e) => /^\s*treemap/.test(e), "detector"), wA = /* @__PURE__ */ g(async () => {
|
|
16350
|
-
const { diagram: e } = await import("./diagram-G47NLZAW-
|
|
16350
|
+
const { diagram: e } = await import("./diagram-G47NLZAW-Bqr76Qn5.js");
|
|
16351
16351
|
return { id: $0, diagram: e };
|
|
16352
16352
|
}, "loader"), SA = {
|
|
16353
16353
|
id: $0,
|
|
16354
16354
|
detector: kA,
|
|
16355
16355
|
loader: wA
|
|
16356
16356
|
}, O0 = "wardley", vA = /* @__PURE__ */ g((e) => /^\s*wardley-beta/i.test(e), "detector"), TA = /* @__PURE__ */ g(async () => {
|
|
16357
|
-
const { diagram: e } = await import("./wardleyDiagram-EHGQE667-
|
|
16357
|
+
const { diagram: e } = await import("./wardleyDiagram-EHGQE667-CF5I0pM9.js");
|
|
16358
16358
|
return { id: O0, diagram: e };
|
|
16359
16359
|
}, "loader"), _A = {
|
|
16360
16360
|
id: O0,
|
|
16361
16361
|
detector: vA,
|
|
16362
16362
|
loader: TA
|
|
16363
16363
|
}, BA = _A, I0 = "cynefin", LA = /* @__PURE__ */ g((e) => /^\s*cynefin-beta(?:[\s:]|$)/.test(e), "detector"), EA = /* @__PURE__ */ g(async () => {
|
|
16364
|
-
const { diagram: e } = await import("./cynefinDiagram-TSTJHNR4-
|
|
16364
|
+
const { diagram: e } = await import("./cynefinDiagram-TSTJHNR4-iS4n-7T_.js");
|
|
16365
16365
|
return { id: I0, diagram: e };
|
|
16366
16366
|
}, "loader"), FA = {
|
|
16367
16367
|
id: I0,
|
|
16368
16368
|
detector: LA,
|
|
16369
16369
|
loader: EA
|
|
16370
16370
|
}, R0 = "railroad", AA = /* @__PURE__ */ g((e) => /^\s*railroad-beta/i.test(e), "detector"), MA = /* @__PURE__ */ g(async () => {
|
|
16371
|
-
const { diagram: e } = await import("./railroadDiagram-RFXS5EU6-
|
|
16371
|
+
const { diagram: e } = await import("./railroadDiagram-RFXS5EU6-Du2CFU9M.js");
|
|
16372
16372
|
return { id: R0, diagram: e };
|
|
16373
16373
|
}, "loader"), $A = {
|
|
16374
16374
|
id: R0,
|
|
16375
16375
|
detector: AA,
|
|
16376
16376
|
loader: MA
|
|
16377
16377
|
}, P0 = "railroadEbnf", OA = /* @__PURE__ */ g((e) => /^\s*railroad-ebnf-beta/i.test(e), "detector"), IA = /* @__PURE__ */ g(async () => {
|
|
16378
|
-
const { diagram: e } = await import("./ebnfDiagram-CCIWWBDH-
|
|
16378
|
+
const { diagram: e } = await import("./ebnfDiagram-CCIWWBDH-CMmTdVTT.js");
|
|
16379
16379
|
return { id: P0, diagram: e };
|
|
16380
16380
|
}, "loader"), RA = {
|
|
16381
16381
|
id: P0,
|
|
16382
16382
|
detector: OA,
|
|
16383
16383
|
loader: IA
|
|
16384
16384
|
}, D0 = "railroadAbnf", PA = /* @__PURE__ */ g((e) => /^\s*railroad-abnf-beta/i.test(e), "detector"), DA = /* @__PURE__ */ g(async () => {
|
|
16385
|
-
const { diagram: e } = await import("./abnfDiagram-VRR7QNED-
|
|
16385
|
+
const { diagram: e } = await import("./abnfDiagram-VRR7QNED-DQ52KUbH.js");
|
|
16386
16386
|
return { id: D0, diagram: e };
|
|
16387
16387
|
}, "loader"), NA = {
|
|
16388
16388
|
id: D0,
|
|
16389
16389
|
detector: PA,
|
|
16390
16390
|
loader: DA
|
|
16391
16391
|
}, N0 = "railroadPeg", zA = /* @__PURE__ */ g((e) => /^\s*railroad-peg-beta/i.test(e), "detector"), qA = /* @__PURE__ */ g(async () => {
|
|
16392
|
-
const { diagram: e } = await import("./pegDiagram-2B236MQR-
|
|
16392
|
+
const { diagram: e } = await import("./pegDiagram-2B236MQR-DaosueJV.js");
|
|
16393
16393
|
return { id: N0, diagram: e };
|
|
16394
16394
|
}, "loader"), jA = {
|
|
16395
16395
|
id: N0,
|
|
@@ -16504,7 +16504,7 @@ var Kr, Bl = (Kr = class {
|
|
|
16504
16504
|
this.type = t, this.text = r, this.db = i, this.parser = o, this.renderer = s;
|
|
16505
16505
|
}
|
|
16506
16506
|
static async fromText(t, r = {}) {
|
|
16507
|
-
const i =
|
|
16507
|
+
const i = Pt(), o = Dl(t, i);
|
|
16508
16508
|
t = i_(t) + `
|
|
16509
16509
|
`;
|
|
16510
16510
|
try {
|
|
@@ -16699,7 +16699,7 @@ var mM = /* @__PURE__ */ g((e, t, r, i) => {
|
|
|
16699
16699
|
Na();
|
|
16700
16700
|
const i = Dh(t);
|
|
16701
16701
|
t = i.code;
|
|
16702
|
-
const o =
|
|
16702
|
+
const o = Pt();
|
|
16703
16703
|
G.debug(o), t.length > (o?.maxTextSize ?? KA) && (t = ZA);
|
|
16704
16704
|
const s = `#${e}`, a = "i" + e, n = "#" + a, l = "d" + e, c = "#" + l, h = /* @__PURE__ */ g(() => {
|
|
16705
16705
|
const z = Ct(f ? n : c).node();
|
|
@@ -16778,7 +16778,7 @@ var ii = Object.freeze({
|
|
|
16778
16778
|
parse: H0,
|
|
16779
16779
|
getDiagramFromText: U0,
|
|
16780
16780
|
initialize: Y0,
|
|
16781
|
-
getConfig:
|
|
16781
|
+
getConfig: Pt,
|
|
16782
16782
|
setConfig: Pu,
|
|
16783
16783
|
getSiteConfig: Ru,
|
|
16784
16784
|
updateSiteConfig: q1,
|
|
@@ -16790,8 +16790,8 @@ var ii = Object.freeze({
|
|
|
16790
16790
|
}, "globalReset"),
|
|
16791
16791
|
defaultConfig: Hi
|
|
16792
16792
|
});
|
|
16793
|
-
Pl(
|
|
16794
|
-
qs(
|
|
16793
|
+
Pl(Pt().logLevel);
|
|
16794
|
+
qs(Pt());
|
|
16795
16795
|
var xM = /* @__PURE__ */ g((e, t, r) => {
|
|
16796
16796
|
G.warn(e), xh(e) ? (r && r(e.str, e.hash), t.push({ ...e, message: e.str, error: e })) : (r && r(e), e instanceof Error && t.push({
|
|
16797
16797
|
str: e.message,
|
|
@@ -16946,8 +16946,8 @@ const BM = [
|
|
|
16946
16946
|
}, IM = (e) => {
|
|
16947
16947
|
e.style.removeProperty("min-block-size"), e.getAttribute("style") === "" && e.removeAttribute("style");
|
|
16948
16948
|
}, Nh = (e, t) => {
|
|
16949
|
-
const [r, i] =
|
|
16950
|
-
|
|
16949
|
+
const [r, i] = ct(!1), o = gt(null), s = gt(null), a = gt([]), n = gt(!1);
|
|
16950
|
+
Rt(() => {
|
|
16951
16951
|
n.current && (n.current = !1, o.current?.querySelector(`[${e}="${yr}"]`)?.focus());
|
|
16952
16952
|
}, [r, e]);
|
|
16953
16953
|
const l = mt((f) => {
|
|
@@ -17076,7 +17076,7 @@ const za = Object.freeze({
|
|
|
17076
17076
|
fullscreenDialog: { text: "Diagram (full screen)", lang: "en" },
|
|
17077
17077
|
diagram: { text: "Diagram (arrow keys pan, + and - zoom, 0 resets)", lang: "en" },
|
|
17078
17078
|
retry: { text: "再試行", lang: "ja" }
|
|
17079
|
-
}),
|
|
17079
|
+
}), PI = xa(za), ZM = Object.freeze({
|
|
17080
17080
|
none: "modeNone",
|
|
17081
17081
|
zoom: "modeZoom",
|
|
17082
17082
|
pan: "modePan",
|
|
@@ -17092,7 +17092,7 @@ const za = Object.freeze({
|
|
|
17092
17092
|
const t = window.matchMedia(J0);
|
|
17093
17093
|
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
|
|
17094
17094
|
}, t5 = () => window.matchMedia(J0).matches, e5 = () => !1, r5 = () => Uo(JM, t5, e5), qh = (e, t) => {
|
|
17095
|
-
const [r, i] =
|
|
17095
|
+
const [r, i] = ct(null), o = r !== null && e.includes(r) ? r : e[0], s = (l) => l instanceof Element ? l.getAttribute(t) : null;
|
|
17096
17096
|
return { onKeyDown: (l) => {
|
|
17097
17097
|
const c = s(l.target);
|
|
17098
17098
|
if (c === null || l.altKey || l.ctrlKey || l.metaKey || l.shiftKey)
|
|
@@ -17135,7 +17135,7 @@ const za = Object.freeze({
|
|
|
17135
17135
|
const a = Math.min(t, s), n = Math.min(Math.max(i ? e.right - a : e.left, r.low), r.high - a);
|
|
17136
17136
|
return { side: "inside", offset: i ? e.right - n - a : n - e.left, maxWidth: a < t ? a : null };
|
|
17137
17137
|
}, tx = ({ buttonHook: e, menuHook: t, label: r, icon: i, tabIndex: o, items: s }) => {
|
|
17138
|
-
const [a, n] =
|
|
17138
|
+
const [a, n] = ct(null), [l, c] = ct(Ao), h = a !== null, d = Je(), f = Je(), u = gt(null), p = gt(null), m = gt(null), y = () => Array.from(m.current?.querySelectorAll('[role="menuitem"], [role="menuitemradio"]') ?? []), x = (S) => {
|
|
17139
17139
|
n(null), c(Ao), S && p.current?.focus();
|
|
17140
17140
|
};
|
|
17141
17141
|
ve(() => {
|
|
@@ -17146,7 +17146,7 @@ const za = Object.freeze({
|
|
|
17146
17146
|
c(i5(S.getBoundingClientRect(), v.getBoundingClientRect().width, _, P));
|
|
17147
17147
|
const $ = y(), I = $.findIndex((z) => z.getAttribute("aria-checked") === "true"), q = a === "last" ? $.length - 1 : Math.max(I, 0);
|
|
17148
17148
|
$[q]?.focus();
|
|
17149
|
-
}, [a]),
|
|
17149
|
+
}, [a]), Rt(() => {
|
|
17150
17150
|
const S = u.current?.ownerDocument;
|
|
17151
17151
|
if (!h || S === void 0)
|
|
17152
17152
|
return;
|
|
@@ -17257,12 +17257,12 @@ if (El?.initialize)
|
|
|
17257
17257
|
else
|
|
17258
17258
|
Fl = new Error("Mermaid library or mermaid.initialize is not available.");
|
|
17259
17259
|
const rx = ({ chartContent: e, interaction: t, hideInteractionMenu: r = !1, labels: i, sourceLines: o }) => {
|
|
17260
|
-
const s = Mt(() => Wi(za, i), [i]), a = Je(), n = Je(), l = gt(`mermaid-chart-${Math.random().toString(36).substring(2, 15)}`), c = gt(0), h = gt(null), d = gt(null), f = gt(null), u = gt(null), [p, m] =
|
|
17261
|
-
|
|
17260
|
+
const s = Mt(() => Wi(za, i), [i]), a = Je(), n = Je(), l = gt(`mermaid-chart-${Math.random().toString(36).substring(2, 15)}`), c = gt(0), h = gt(null), d = gt(null), f = gt(null), u = gt(null), [p, m] = ct(!0), [y, x] = ct(null), [C, k] = ct(null), [S, v] = ct(0), T = gt(!1), B = r5(), [_, P] = ct(t ?? RM), $ = gt(Od[_]), I = gt(!1), [q, z] = ct(!1);
|
|
17261
|
+
Rt(() => {
|
|
17262
17262
|
t && P(t);
|
|
17263
|
-
}, [t]),
|
|
17263
|
+
}, [t]), Rt(() => {
|
|
17264
17264
|
$.current = Od[_], u.current?.refresh();
|
|
17265
|
-
}, [_]),
|
|
17265
|
+
}, [_]), Rt(() => {
|
|
17266
17266
|
if (m(!0), x(null), k(null), !ex) {
|
|
17267
17267
|
x(Fl?.message || "Mermaid failed to initialize globally."), m(!1);
|
|
17268
17268
|
return;
|
|
@@ -17326,7 +17326,7 @@ const rx = ({ chartContent: e, interaction: t, hideInteractionMenu: r = !1, labe
|
|
|
17326
17326
|
return ye.observe(K), kt > 0 && Wt(kt), () => {
|
|
17327
17327
|
Q = !0, qt(), clearTimeout(de);
|
|
17328
17328
|
};
|
|
17329
|
-
}, [e, S]),
|
|
17329
|
+
}, [e, S]), Rt(() => {
|
|
17330
17330
|
const j = d.current;
|
|
17331
17331
|
if (!j)
|
|
17332
17332
|
return;
|
|
@@ -17848,7 +17848,7 @@ const R5 = [
|
|
|
17848
17848
|
})
|
|
17849
17849
|
};
|
|
17850
17850
|
}, bi = "data-aqmd-spreadsheet-control", a3 = Object.freeze(["zoom-in", "zoom-out", "reset-zoom", "highlight", "track-size", "copy", "save", "save-menu", yr]), n3 = ({ labels: e, labelledBy: t, rows: r, cols: i, canZoomIn: o, canZoomOut: s, zoom: a, onZoom: n, onResetZoom: l, highlighted: c, onToggleHighlight: h, onCopy: d, onSave: f, fullscreen: u, onToggleFullscreen: p, gridReady: m, activeCell: y, onTrackSize: x }) => {
|
|
17851
|
-
const { onKeyDown: C, onFocus: k, tabIndexOf: S } = qh(a3, bi), [v, T] =
|
|
17851
|
+
const { onKeyDown: C, onFocus: k, tabIndexOf: S } = qh(a3, bi), [v, T] = ct(!1), B = Je(), _ = gt(null), P = v && m, $ = (z, F, A, E, D, R, M = Ar) => /* @__PURE__ */ w.jsx("button", { type: "button", [bi]: z, tabIndex: S(z), onClick: D ? A : void 0, "aria-disabled": D ? void 0 : "true", "aria-pressed": R, className: M, "aria-label": F.text, lang: F.lang, children: E }), I = ma(a), q = { text: Le(e.resetZoom.text, { percent: I }), lang: e.resetZoom.lang };
|
|
17852
17852
|
return /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
|
|
17853
17853
|
/* @__PURE__ */ w.jsxs("div", { "data-aqmd-spreadsheet-toolbar": "", role: "toolbar", "aria-labelledby": t, onKeyDown: C, onFocus: k, className: "mb-1 flex flex-wrap items-center justify-end gap-1", children: [
|
|
17854
17854
|
/* @__PURE__ */ w.jsx("span", { "data-aqmd-spreadsheet-size": "", lang: e.size.lang, className: "me-auto text-sm", children: Le(e.size.text, { rows: r, cols: i }) }),
|
|
@@ -17975,8 +17975,8 @@ const R5 = [
|
|
|
17975
17975
|
ve(() => {
|
|
17976
17976
|
t.current = e;
|
|
17977
17977
|
});
|
|
17978
|
-
const r = e !== void 0, [i] =
|
|
17979
|
-
return
|
|
17978
|
+
const r = e !== void 0, [i] = ct(() => /* @__PURE__ */ new Set());
|
|
17979
|
+
return Rt(
|
|
17980
17980
|
() => e?.subscribe(() => {
|
|
17981
17981
|
for (const o of [...i])
|
|
17982
17982
|
o();
|
|
@@ -18103,24 +18103,24 @@ const Hd = (e) => {
|
|
|
18103
18103
|
throw new RangeError(`[@aiquants/markdown] unsupported spreadsheet layout "${String(a)}" (inline and fill are supported)`);
|
|
18104
18104
|
if (l !== "host" && l !== "options")
|
|
18105
18105
|
throw new RangeError(`[@aiquants/markdown] unsupported spreadsheet tap-scroll circle chooser "${String(l)}" (host and options are supported)`);
|
|
18106
|
-
const c = Mt(() => Wi(Ln[o], s), [o, s]), { options: h, unreadWord: d } = Mt(() => S3(t), [t]), f = Mt(() => kn(e), [e]), u = f > is, p = Mt(() => mu(r)?.first ?? null, [r]), [m, y] =
|
|
18107
|
-
${e}`, C = m === x, k = i !== void 0 && p !== null && !C ? i : void 0, S = k !== void 0, v = S && h !== null && h.footerRows === 0 ? D5 : 0, T = S ? N5 : 0, [B, _] =
|
|
18106
|
+
const c = Mt(() => Wi(Ln[o], s), [o, s]), { options: h, unreadWord: d } = Mt(() => S3(t), [t]), f = Mt(() => kn(e), [e]), u = f > is, p = Mt(() => mu(r)?.first ?? null, [r]), [m, y] = ct(null), x = `${r ?? ""}
|
|
18107
|
+
${e}`, C = m === x, k = i !== void 0 && p !== null && !C ? i : void 0, S = k !== void 0, v = S && h !== null && h.footerRows === 0 ? D5 : 0, T = S ? N5 : 0, [B, _] = ct(() => u ? Xd : bs(e)), [P, $] = ct(0), I = gt(e), q = gt([]), z = Mt(() => V5(B, v, T), [B, v, T]), F = gt(z);
|
|
18108
18108
|
F.current = z;
|
|
18109
18109
|
const A = Uo(
|
|
18110
18110
|
m3,
|
|
18111
18111
|
() => Rs,
|
|
18112
18112
|
() => null
|
|
18113
|
-
), [E, D] =
|
|
18113
|
+
), [E, D] = ct(!1), R = E && A === null, M = h === null ? null : h.zoomPercent, [N, L] = ct(() => M === null ? 1 : jd(M)), [U, Y] = ct(M);
|
|
18114
18114
|
M !== U && (Y(M), M !== null && L(jd(M)));
|
|
18115
|
-
const X = h !== null && h.toolbar === 0 ? Ud : Yd, [V, Z] =
|
|
18115
|
+
const X = h !== null && h.toolbar === 0 ? Ud : Yd, [V, Z] = ct(X), [j, K] = ct(X);
|
|
18116
18116
|
X !== j && (K(X), Z(X));
|
|
18117
|
-
const [Q, ot] =
|
|
18117
|
+
const [Q, ot] = ct(null), { fullscreen: yt, toggle: kt, dialogRef: vt, dialogProps: Qt, rootProps: de } = Nh(bi, h !== null && !u && h.toolbar === 1), qt = Je(), $t = mt(
|
|
18118
18118
|
(et, xt = {}) => {
|
|
18119
18119
|
ot((Ot) => ({ text: Le(c[et].text, xt), lang: c[et].lang, serial: (Ot?.serial ?? 0) + 1 }));
|
|
18120
18120
|
},
|
|
18121
18121
|
[c]
|
|
18122
18122
|
);
|
|
18123
|
-
|
|
18123
|
+
Rt(() => {
|
|
18124
18124
|
if (A !== null || h === null || u)
|
|
18125
18125
|
return;
|
|
18126
18126
|
let et = !0;
|
|
@@ -18129,7 +18129,7 @@ ${e}`, C = m === x, k = i !== void 0 && p !== null && !C ? i : void 0, S = k !==
|
|
|
18129
18129
|
}), () => {
|
|
18130
18130
|
et = !1;
|
|
18131
18131
|
};
|
|
18132
|
-
}, [A, h, u]),
|
|
18132
|
+
}, [A, h, u]), Rt(() => {
|
|
18133
18133
|
const et = J5(q.current, e);
|
|
18134
18134
|
if (et.echo) {
|
|
18135
18135
|
q.current = et.pending;
|
|
@@ -18148,7 +18148,7 @@ ${e}`, C = m === x, k = i !== void 0 && p !== null && !C ? i : void 0, S = k !==
|
|
|
18148
18148
|
const et = k.read(p);
|
|
18149
18149
|
et === null || et === I.current || kn(et) > is || (q.current = [], I.current = et, _(bs(et)), $((xt) => xt + 1));
|
|
18150
18150
|
}, [k, p]);
|
|
18151
|
-
|
|
18151
|
+
Rt(
|
|
18152
18152
|
() => k?.subscribe(() => {
|
|
18153
18153
|
q.current.length > 0 && Wt();
|
|
18154
18154
|
}),
|
|
@@ -18188,7 +18188,7 @@ ${e}`, C = m === x, k = i !== void 0 && p !== null && !C ? i : void 0, S = k !==
|
|
|
18188
18188
|
throw new TypeError(`[@aiquants/markdown] SpreadsheetEditor.write answered ${JSON.stringify(Dr)} (written, changed, closesFence or unwritable)`);
|
|
18189
18189
|
}
|
|
18190
18190
|
};
|
|
18191
|
-
const [ue] =
|
|
18191
|
+
const [ue] = ct(() => ({
|
|
18192
18192
|
get rowCount() {
|
|
18193
18193
|
return F.current.length;
|
|
18194
18194
|
},
|
|
@@ -18215,12 +18215,12 @@ ${e}`, C = m === x, k = i !== void 0 && p !== null && !C ? i : void 0, S = k !==
|
|
|
18215
18215
|
), He = mt(({ range: et }) => Le(c.selectionAnnouncement.text, { range: i3(et, Ps) }), [c]), $r = mt(
|
|
18216
18216
|
({ axis: et, index: xt, size: Ot }) => et === "column" ? Le(c.columnResized.text, { column: Ps(xt), size: Ot }) : Le(c.rowResized.text, { row: xt + 1, size: Ot }),
|
|
18217
18217
|
[c]
|
|
18218
|
-
), Ye = gt(null), [Ue] =
|
|
18218
|
+
), Ye = gt(null), [Ue] = ct(s3), ni = mt((et) => Ue.set(et.active), [Ue]), Xe = mt((et) => {
|
|
18219
18219
|
Ye.current?.executeCommand(et);
|
|
18220
18220
|
}, []), Me = ma(N), Ge = gt(Me);
|
|
18221
18221
|
ve(() => {
|
|
18222
18222
|
U !== null && (Ge.current = U);
|
|
18223
|
-
}, [U]),
|
|
18223
|
+
}, [U]), Rt(() => {
|
|
18224
18224
|
Ge.current !== Me && (Ge.current = Me, $t("zoomed", { percent: Me }));
|
|
18225
18225
|
}, [$t, Me]);
|
|
18226
18226
|
const li = mt((et) => L((xt) => cC(dC(xt, et))), []), Or = mt(() => L(1), []), Ir = V.row || V.column, eo = mt(() => Z((et) => et.row || et.column ? Ud : Yd), []), Rr = mt(() => {
|
|
@@ -18244,7 +18244,7 @@ ${e}`, C = m === x, k = i !== void 0 && p !== null && !C ? i : void 0, S = k !==
|
|
|
18244
18244
|
xt !== void 0 && g3(p3(B, et), c.fileName.text, xt);
|
|
18245
18245
|
},
|
|
18246
18246
|
[B, c]
|
|
18247
|
-
), lt = B.length, bt = B[0].length, Nt = h === null ? 0 : h.frame, Ut = Mt(() => Nt === 0 ? void 0 : { startRow: 0, startCol: 0, endRow: lt - 1, endCol: bt - 1 }, [Nt, lt, bt]), hi = h === null ? 0 : h.tapscroll, At = Mt(() => l === "host" ? n : hi === 1 ? { ...n, enabled: !0, size: z5 } : x3, [n, l, hi]), Et = h === null ? 0 : H5(h, z.length), fe = z.length, Xt = h !== null && a === "inline" && G5(h.visibleRows, fe), [se, Ve] =
|
|
18247
|
+
), lt = B.length, bt = B[0].length, Nt = h === null ? 0 : h.frame, Ut = Mt(() => Nt === 0 ? void 0 : { startRow: 0, startCol: 0, endRow: lt - 1, endCol: bt - 1 }, [Nt, lt, bt]), hi = h === null ? 0 : h.tapscroll, At = Mt(() => l === "host" ? n : hi === 1 ? { ...n, enabled: !0, size: z5 } : x3, [n, l, hi]), Et = h === null ? 0 : H5(h, z.length), fe = z.length, Xt = h !== null && a === "inline" && G5(h.visibleRows, fe), [se, Ve] = ct(null), ci = Mt(() => {
|
|
18248
18248
|
if (h === null)
|
|
18249
18249
|
return;
|
|
18250
18250
|
const et = h.headings === 1, xt = { "--aqmd-spreadsheet-zoom": String(N) };
|
|
@@ -18404,7 +18404,7 @@ function _3(e) {
|
|
|
18404
18404
|
return t;
|
|
18405
18405
|
}
|
|
18406
18406
|
const B3 = ({ code: e }) => {
|
|
18407
|
-
const [t, r] =
|
|
18407
|
+
const [t, r] = ct(!1), i = () => {
|
|
18408
18408
|
navigator.clipboard.writeText(e).then(
|
|
18409
18409
|
() => {
|
|
18410
18410
|
r(!0), setTimeout(() => r(!1), 2e3);
|
|
@@ -18489,8 +18489,8 @@ const B3 = ({ code: e }) => {
|
|
|
18489
18489
|
children: /* @__PURE__ */ w.jsx(L3, { htmlPromise: s, filename: i, code: e, sourceLines: o })
|
|
18490
18490
|
}
|
|
18491
18491
|
);
|
|
18492
|
-
},
|
|
18493
|
-
const [t, r] =
|
|
18492
|
+
}, R3 = ({ code: e }) => {
|
|
18493
|
+
const [t, r] = ct(!1), i = () => {
|
|
18494
18494
|
navigator.clipboard.writeText(e).then(
|
|
18495
18495
|
() => {
|
|
18496
18496
|
r(!0), setTimeout(() => r(!1), 2e3);
|
|
@@ -18500,7 +18500,40 @@ const B3 = ({ code: e }) => {
|
|
|
18500
18500
|
}
|
|
18501
18501
|
);
|
|
18502
18502
|
};
|
|
18503
|
-
return /* @__PURE__ */ w.jsx("button", { type: "button", "data-aqmd-code-copy": "", className: "
|
|
18503
|
+
return /* @__PURE__ */ w.jsx("button", { type: "button", "data-aqmd-code-copy": "", className: "inline-flex min-h-11 min-w-11 items-center justify-center rounded-md px-2 py-1 text-xs transition-colors", onClick: i, children: t ? "COPIED!" : "Copy" });
|
|
18504
|
+
}, P3 = (e) => {
|
|
18505
|
+
const [t, r] = ct(!1);
|
|
18506
|
+
return Rt(() => {
|
|
18507
|
+
if (e === null)
|
|
18508
|
+
return;
|
|
18509
|
+
let i = 0;
|
|
18510
|
+
const o = () => {
|
|
18511
|
+
cancelAnimationFrame(i), i = requestAnimationFrame(() => r(e.scrollWidth > e.clientWidth));
|
|
18512
|
+
};
|
|
18513
|
+
o();
|
|
18514
|
+
const s = new ResizeObserver(o);
|
|
18515
|
+
s.observe(e);
|
|
18516
|
+
const a = new MutationObserver(o);
|
|
18517
|
+
a.observe(e, { childList: !0, subtree: !0, characterData: !0 });
|
|
18518
|
+
const n = e.ownerDocument.fonts;
|
|
18519
|
+
return n?.addEventListener("loadingdone", o), () => {
|
|
18520
|
+
cancelAnimationFrame(i), s.disconnect(), a.disconnect(), n?.removeEventListener("loadingdone", o);
|
|
18521
|
+
};
|
|
18522
|
+
}, [e]), t;
|
|
18523
|
+
}, ux = ({ source: e, placement: t, children: r }) => {
|
|
18524
|
+
const [i, o] = ct(null), s = P3(i), a = t === "flow" ? "span" : "div";
|
|
18525
|
+
return /* @__PURE__ */ w.jsxs(a, { "data-aqmd-math-display": t, children: [
|
|
18526
|
+
/* @__PURE__ */ w.jsx(
|
|
18527
|
+
a,
|
|
18528
|
+
{
|
|
18529
|
+
ref: o,
|
|
18530
|
+
"data-aqmd-math-scroll": "",
|
|
18531
|
+
tabIndex: s ? 0 : void 0,
|
|
18532
|
+
children: r
|
|
18533
|
+
}
|
|
18534
|
+
),
|
|
18535
|
+
/* @__PURE__ */ w.jsx(a, { "data-aqmd-math-copy": "", children: /* @__PURE__ */ w.jsx(R3, { code: e }) })
|
|
18536
|
+
] });
|
|
18504
18537
|
}, fx = (e, t) => {
|
|
18505
18538
|
const r = Mt(() => {
|
|
18506
18539
|
try {
|
|
@@ -18509,24 +18542,21 @@ const B3 = ({ code: e }) => {
|
|
|
18509
18542
|
return { kind: "failed", error: i, message: `Math rendering error: ${i instanceof Error ? i.message : String(i)}` };
|
|
18510
18543
|
}
|
|
18511
18544
|
}, [e, t]);
|
|
18512
|
-
return
|
|
18545
|
+
return Rt(() => {
|
|
18513
18546
|
r.kind === "failed" && console.error("An error occurred while rendering KaTeX:", r.error);
|
|
18514
18547
|
}, [r]), r;
|
|
18515
|
-
},
|
|
18548
|
+
}, D3 = ({ node: e }) => {
|
|
18516
18549
|
const t = fx(e.value, !0), r = "rounded-md px-1.5 py-1 font-mono text-gray-800 text-sm dark:text-gray-200";
|
|
18517
|
-
return /* @__PURE__ */ w.
|
|
18518
|
-
|
|
18519
|
-
t.kind === "rendered" ? /* @__PURE__ */ w.jsx("article", { className: r, dangerouslySetInnerHTML: { __html: t.html } }) : /* @__PURE__ */ w.jsx("article", { className: r, children: t.message })
|
|
18520
|
-
] });
|
|
18521
|
-
}, P3 = /^[a-z][a-z0-9+.-]*:/i, D3 = /^[/\\]{2}/, N3 = /[\t\n\r]/g, Gd = 32, z3 = (e) => {
|
|
18550
|
+
return /* @__PURE__ */ w.jsx(ux, { source: e.value, placement: "block", children: t.kind === "rendered" ? /* @__PURE__ */ w.jsx("article", { className: r, dangerouslySetInnerHTML: { __html: t.html } }) : /* @__PURE__ */ w.jsx("article", { className: r, children: t.message }) });
|
|
18551
|
+
}, N3 = /^[a-z][a-z0-9+.-]*:/i, z3 = /^[/\\]{2}/, q3 = /[\t\n\r]/g, Gd = 32, j3 = (e) => {
|
|
18522
18552
|
let t = 0, r = e.length;
|
|
18523
18553
|
for (; t < r && e.charCodeAt(t) <= Gd; ) t += 1;
|
|
18524
18554
|
for (; r > t && e.charCodeAt(r - 1) <= Gd; ) r -= 1;
|
|
18525
18555
|
return e.slice(t, r);
|
|
18526
18556
|
}, px = (e) => {
|
|
18527
|
-
const t =
|
|
18528
|
-
return
|
|
18529
|
-
},
|
|
18557
|
+
const t = j3(e).replace(q3, "");
|
|
18558
|
+
return N3.test(t) || z3.test(t);
|
|
18559
|
+
}, W3 = "text-link underline visited:text-link-visited", H3 = "inline-block w-fit", Wh = /* @__PURE__ */ new Set([
|
|
18530
18560
|
"img",
|
|
18531
18561
|
"picture",
|
|
18532
18562
|
"video",
|
|
@@ -18572,17 +18602,17 @@ const B3 = ({ code: e }) => {
|
|
|
18572
18602
|
"ul"
|
|
18573
18603
|
]);
|
|
18574
18604
|
[...Wh].join(",");
|
|
18575
|
-
const gx = (e, t) => [e, t ?
|
|
18605
|
+
const gx = (e, t) => [e, t ? H3 : void 0, W3].filter((r) => r !== void 0 && r.trim() !== "").join(" "), Y3 = /* @__PURE__ */ new Set(["id", "title", "lang", "dir", "role"]), U3 = ["aria-", "data-footnote-"], X3 = (e) => {
|
|
18576
18606
|
const t = {};
|
|
18577
18607
|
for (const [r, i] of Object.entries(e)) {
|
|
18578
18608
|
const o = r.toLowerCase();
|
|
18579
|
-
(
|
|
18609
|
+
(Y3.has(o) || U3.some((s) => o.startsWith(s) && o.length > s.length)) && (t[o] = i);
|
|
18580
18610
|
}
|
|
18581
18611
|
return Object.freeze(t);
|
|
18582
|
-
}, Be = new rC(iC.INFO, "[DifyIFramePlugin]"),
|
|
18583
|
-
const [r, i] =
|
|
18612
|
+
}, Be = new rC(iC.INFO, "[DifyIFramePlugin]"), G3 = "100%", V3 = "600px", K3 = "0", Z3 = (e) => typeof e != "object" || e === null || !("type" in e) ? null : typeof e.type == "string" ? e.type : null, Q3 = ({ embed: e, iFrameAllowedDomains: t }) => {
|
|
18613
|
+
const [r, i] = ct(!0), [o, s] = ct(!1), a = gt(null), n = gt(null), l = gt(null), { src: c } = e, h = mt(
|
|
18584
18614
|
(x) => {
|
|
18585
|
-
x.source === null || x.source !== a.current?.contentWindow || !pb(x.origin, t) ||
|
|
18615
|
+
x.source === null || x.source !== a.current?.contentWindow || !pb(x.origin, t) || Z3(x.data) === "dify-chatbot-iframe-ready" && (Be.info("Dify chatbot iframe is ready"), i((C) => C && (s(!1), n.current && (clearTimeout(n.current), n.current = null), l.current && (clearTimeout(l.current), l.current = null), !1)));
|
|
18586
18616
|
},
|
|
18587
18617
|
[t]
|
|
18588
18618
|
), d = mt(() => {
|
|
@@ -18622,19 +18652,19 @@ const gx = (e, t) => [e, t ? j3 : void 0, q3].filter((r) => r !== void 0 && r.tr
|
|
|
18622
18652
|
}, 1e3);
|
|
18623
18653
|
Be.info("ポップアップを開きました:"), Be.info("- 初期URL:", c), Be.info("- ウィンドウ名:", "dify-oauth"), Be.info("- ウィンドウサイズ: 500x600");
|
|
18624
18654
|
}, [d, c]);
|
|
18625
|
-
|
|
18655
|
+
Rt(() => (window.addEventListener("message", h), () => {
|
|
18626
18656
|
window.removeEventListener("message", h);
|
|
18627
|
-
}), [h]),
|
|
18657
|
+
}), [h]), Rt(() => {
|
|
18628
18658
|
const x = setTimeout(() => {
|
|
18629
18659
|
Be.warn("Timeout: dify-chatbot-iframe-ready not received, checking iframe access"), d();
|
|
18630
18660
|
}, 5e3);
|
|
18631
18661
|
return l.current = x, () => {
|
|
18632
18662
|
l.current && (clearTimeout(l.current), l.current = null);
|
|
18633
18663
|
};
|
|
18634
|
-
}, [d]),
|
|
18664
|
+
}, [d]), Rt(() => () => {
|
|
18635
18665
|
n.current && (clearTimeout(n.current), n.current = null);
|
|
18636
18666
|
}, []);
|
|
18637
|
-
const { width: u =
|
|
18667
|
+
const { width: u = G3, height: p = V3, frameborder: m = K3, ...y } = e.attributes;
|
|
18638
18668
|
return /* @__PURE__ */ w.jsxs("div", { className: "dify-iframe-container", children: [
|
|
18639
18669
|
r && !o && /* @__PURE__ */ w.jsxs("div", { className: "flex items-center justify-center rounded-lg bg-gray-50 p-8", children: [
|
|
18640
18670
|
/* @__PURE__ */ w.jsx("div", { className: "h-8 w-8 animate-spin rounded-full border-blue-600 border-b-2" }),
|
|
@@ -18654,18 +18684,18 @@ const gx = (e, t) => [e, t ? j3 : void 0, q3].filter((r) => r !== void 0 && r.tr
|
|
|
18654
18684
|
* Plugin for embedding Dify chatbots.
|
|
18655
18685
|
* Dify チャットボットを埋め込むためのプラグイン。
|
|
18656
18686
|
*/
|
|
18657
|
-
dify:
|
|
18658
|
-
}),
|
|
18659
|
-
const s = t === null ? null :
|
|
18687
|
+
dify: Q3
|
|
18688
|
+
}), J3 = (e) => Object.hasOwn(Vd, e) ? Vd[e] : null, t$ = /* @__PURE__ */ w.jsx(lu, {}), e$ = (e, t, r, i, o) => {
|
|
18689
|
+
const s = t === null ? null : J3(t), a = e.attributes.title === void 0 ? { title: `${i.text}: ${new URL(e.src).hostname}`, lang: i.lang } : {};
|
|
18660
18690
|
return /* @__PURE__ */ w.jsx(QC, { embed: e, label: i, insideAnchor: o, children: s !== null ? /* @__PURE__ */ w.jsx(s, { embed: e, iFrameAllowedDomains: r }) : /* @__PURE__ */ w.jsx("iframe", { ...oi(e.attributes, "iframe"), ...a, src: e.src }) });
|
|
18661
18691
|
}, mx = (e) => {
|
|
18662
18692
|
for (let t = e.parent; t !== null; t = t.parent)
|
|
18663
18693
|
if (t instanceof ze && t.name.toLowerCase() === "a") return !0;
|
|
18664
18694
|
return !1;
|
|
18665
|
-
}, yx = (e) => e.some((t) => t instanceof ze && (Wh.has(t.name) || yx(t.children))),
|
|
18695
|
+
}, yx = (e) => e.some((t) => t instanceof ze && (Wh.has(t.name) || yx(t.children))), r$ = (e, t, r) => {
|
|
18666
18696
|
const { class: i, "data-link-kind": o, "data-doc-path": s, "data-doc-exists": a, ...n } = e.attribs, l = gx(i, yx(e.children)), c = n.href ?? "", h = o, d = h === "external" || px(c), f = Zi(e.children, t);
|
|
18667
18697
|
if (r && c && !d)
|
|
18668
|
-
return /* @__PURE__ */ w.jsx(r, { href: c, kind: h, docPath: s, docExists: a === void 0 ? void 0 : a === "true", className: l, attributes:
|
|
18698
|
+
return /* @__PURE__ */ w.jsx(r, { href: c, kind: h, docPath: s, docExists: a === void 0 ? void 0 : a === "true", className: l, attributes: X3(n), children: f });
|
|
18669
18699
|
d && (n.target = "_blank", n.rel = "noreferrer");
|
|
18670
18700
|
const u = {};
|
|
18671
18701
|
return o !== void 0 && (u["data-link-kind"] = o), s !== void 0 && (u["data-doc-path"] = s), a !== void 0 && (u["data-doc-exists"] = a), // 文書の属性は他の要素と同じく React の props へ変換して渡す (style の文字列をそのまま渡すと React が描画を止める)
|
|
@@ -18678,11 +18708,11 @@ const gx = (e, t) => [e, t ? j3 : void 0, q3].filter((r) => r !== void 0 && r.tr
|
|
|
18678
18708
|
const n = a.parent instanceof ze ? a.parent.name : null, l = ba(a.name, a.attribs, { parentName: n, iFrameAllowedDomains: e });
|
|
18679
18709
|
switch (l.action) {
|
|
18680
18710
|
case "remove":
|
|
18681
|
-
return
|
|
18711
|
+
return t$;
|
|
18682
18712
|
case "unwrap":
|
|
18683
18713
|
return /* @__PURE__ */ w.jsx(lu, { children: Zi(a.children, s) });
|
|
18684
18714
|
case "embed":
|
|
18685
|
-
return
|
|
18715
|
+
return e$(l.embed, l.pluginType, e, t.embeddedFrame, mx(a));
|
|
18686
18716
|
}
|
|
18687
18717
|
if (a.attribs = { ...l.attributes }, l.action === "placeholder") {
|
|
18688
18718
|
const h = i?.(a, l.link, s);
|
|
@@ -18693,30 +18723,30 @@ const gx = (e, t) => [e, t ? j3 : void 0, q3].filter((r) => r !== void 0 && r.tr
|
|
|
18693
18723
|
if (c !== void 0)
|
|
18694
18724
|
return c;
|
|
18695
18725
|
if (a.name === "a")
|
|
18696
|
-
return
|
|
18726
|
+
return r$(a, s, r);
|
|
18697
18727
|
}
|
|
18698
18728
|
};
|
|
18699
18729
|
return s;
|
|
18700
18730
|
};
|
|
18701
|
-
const
|
|
18731
|
+
const i$ = [
|
|
18702
18732
|
["path", { d: "m18 16 4-4-4-4", key: "1inbqp" }],
|
|
18703
18733
|
["path", { d: "m6 8-4 4 4 4", key: "15zrgr" }],
|
|
18704
18734
|
["path", { d: "m14.5 4-5 16", key: "e7oirm" }]
|
|
18705
|
-
],
|
|
18735
|
+
], o$ = Lt("code-xml", i$), s$ = 4096 * 4096, Kd = 32767, a$ = Object.freeze({ width: 0, height: 0 }), n$ = /^\s*(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[a-zA-Z]*\s*$/u, l$ = (e, t) => {
|
|
18706
18736
|
const r = new t.DOMParser().parseFromString(e, "image/svg+xml").documentElement;
|
|
18707
|
-
return r.localName === "svg" && [r.getAttribute("width"), r.getAttribute("height")].some((i) => i !== null &&
|
|
18708
|
-
}, Zd = (e) => Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0,
|
|
18737
|
+
return r.localName === "svg" && [r.getAttribute("width"), r.getAttribute("height")].some((i) => i !== null && n$.test(i));
|
|
18738
|
+
}, Zd = (e) => Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0, h$ = (e, t) => {
|
|
18709
18739
|
const r = Zd(e) ? e : Zd(t) ? t : null;
|
|
18710
18740
|
if (r === null)
|
|
18711
18741
|
return null;
|
|
18712
|
-
const i = Math.min(1, Math.sqrt(
|
|
18742
|
+
const i = Math.min(1, Math.sqrt(s$ / (r.width * r.height)), Kd / r.width, Kd / r.height);
|
|
18713
18743
|
return { width: Math.max(1, Math.floor(r.width * i)), height: Math.max(1, Math.floor(r.height * i)) };
|
|
18714
|
-
},
|
|
18744
|
+
}, c$ = async (e, t, r) => {
|
|
18715
18745
|
const i = r.URL.createObjectURL(new r.Blob([e], { type: "image/svg+xml;charset=utf-8" }));
|
|
18716
18746
|
try {
|
|
18717
18747
|
const o = new r.Image();
|
|
18718
18748
|
o.src = i, await o.decode();
|
|
18719
|
-
const s =
|
|
18749
|
+
const s = h$(l$(e, r) ? { width: o.naturalWidth, height: o.naturalHeight } : a$, t);
|
|
18720
18750
|
if (s === null)
|
|
18721
18751
|
throw new Error("[@aiquants/markdown] the SVG image has no size to draw at");
|
|
18722
18752
|
const a = r.document.createElement("canvas");
|
|
@@ -18730,7 +18760,7 @@ const e$ = [
|
|
|
18730
18760
|
} finally {
|
|
18731
18761
|
r.URL.revokeObjectURL(i);
|
|
18732
18762
|
}
|
|
18733
|
-
},
|
|
18763
|
+
}, d$ = (e) => /\.[Ss][Vv][Gg]$/u.test(e), Cx = (e) => {
|
|
18734
18764
|
const t = gt(e);
|
|
18735
18765
|
ve(() => {
|
|
18736
18766
|
t.current = e;
|
|
@@ -18745,9 +18775,9 @@ const e$ = [
|
|
|
18745
18775
|
}
|
|
18746
18776
|
};
|
|
18747
18777
|
}, [r]);
|
|
18748
|
-
}, go = "data-aqmd-svg-image-control",
|
|
18749
|
-
const { [ya]: a, ...n } = e, [l, c] =
|
|
18750
|
-
|
|
18778
|
+
}, go = "data-aqmd-svg-image-control", u$ = Object.freeze(["copy", "source", yr]), f$ = Object.freeze(["source", yr]), p$ = Object.freeze({ kind: "failure", retryable: !0 }), Qd = (e, t, r) => new Promise((i) => i(e.read(t, r))), g$ = ({ paragraph: e, image: t, path: r, name: i, reader: o, labels: s }) => {
|
|
18779
|
+
const { [ya]: a, ...n } = e, [l, c] = ct(!1), [h, d] = ct(0), [f, u] = ct(null), [p, m] = ct(null), y = Je(), x = Je(), C = Je(), k = gt(null), S = gt(null), v = gt(null);
|
|
18780
|
+
Rt(() => () => S.current?.abort(), []), Rt(() => {
|
|
18751
18781
|
if (!l)
|
|
18752
18782
|
return;
|
|
18753
18783
|
const U = new AbortController();
|
|
@@ -18756,11 +18786,11 @@ const e$ = [
|
|
|
18756
18786
|
U.signal.aborted || u({ read: h, answer: Y });
|
|
18757
18787
|
},
|
|
18758
18788
|
(Y) => {
|
|
18759
|
-
U.signal.aborted || (console.error("[@aiquants/markdown] the image source reader failed without an abort", Y), u({ read: h, answer:
|
|
18789
|
+
U.signal.aborted || (console.error("[@aiquants/markdown] the image source reader failed without an abort", Y), u({ read: h, answer: p$ }));
|
|
18760
18790
|
}
|
|
18761
18791
|
), () => U.abort();
|
|
18762
18792
|
}, [l, h, r, o]);
|
|
18763
|
-
const T = l && f !== null && f.read === h ? f.answer : null, B = T !== null && T.kind === "text" && !T.truncated ? T.text : null, _ = !l || B !== null, { onKeyDown: P, onFocus: $, tabIndexOf: I } = qh(_ ?
|
|
18793
|
+
const T = l && f !== null && f.read === h ? f.answer : null, B = T !== null && T.kind === "text" && !T.truncated ? T.text : null, _ = !l || B !== null, { onKeyDown: P, onFocus: $, tabIndexOf: I } = qh(_ ? u$ : f$, go), { fullscreen: q, toggle: z, dialogProps: F, rootProps: A } = Nh(go, !0), E = (U) => {
|
|
18764
18794
|
m((Y) => ({ text: s[U].text, lang: s[U].lang, serial: Y === null ? 1 : Y.serial + 1 }));
|
|
18765
18795
|
}, D = () => {
|
|
18766
18796
|
if (m(null), l) {
|
|
@@ -18797,7 +18827,7 @@ const e$ = [
|
|
|
18797
18827
|
(kt) => {
|
|
18798
18828
|
if (kt.kind !== "text" || kt.truncated)
|
|
18799
18829
|
throw ot = !0, new Error("[@aiquants/markdown] the SVG image cannot be copied whole");
|
|
18800
|
-
return
|
|
18830
|
+
return c$(kt.text, K, Y).catch((vt) => {
|
|
18801
18831
|
throw ot = !0, console.error("[@aiquants/markdown] could not draw the SVG image as a PNG", vt), vt;
|
|
18802
18832
|
});
|
|
18803
18833
|
},
|
|
@@ -18853,7 +18883,7 @@ const e$ = [
|
|
|
18853
18883
|
children: /* @__PURE__ */ w.jsx(sx, { size: 18 })
|
|
18854
18884
|
}
|
|
18855
18885
|
),
|
|
18856
|
-
/* @__PURE__ */ w.jsx("button", { ref: k, type: "button", [go]: "source", tabIndex: I("source"), "aria-pressed": l, onClick: D, className: Ar, "aria-label": s.source.text, lang: s.source.lang, children: /* @__PURE__ */ w.jsx(
|
|
18886
|
+
/* @__PURE__ */ w.jsx("button", { ref: k, type: "button", [go]: "source", tabIndex: I("source"), "aria-pressed": l, onClick: D, className: Ar, "aria-label": s.source.text, lang: s.source.lang, children: /* @__PURE__ */ w.jsx(o$, { size: 20 }) }),
|
|
18857
18887
|
/* @__PURE__ */ w.jsx(zh, { hook: go, fullscreen: q, labels: s, tabIndex: I(yr), onToggle: z })
|
|
18858
18888
|
] }),
|
|
18859
18889
|
L,
|
|
@@ -18876,7 +18906,7 @@ const e$ = [
|
|
|
18876
18906
|
copyImageFailed: { text: "Could not copy the image.", lang: "en" },
|
|
18877
18907
|
...uu.en,
|
|
18878
18908
|
fullscreenDialog: { text: "{name} (full screen)", lang: "en" }
|
|
18879
|
-
}),
|
|
18909
|
+
}), DI = xa(qa), m$ = ({ alt: e, target: t, label: r }) => /* @__PURE__ */ w.jsxs(
|
|
18880
18910
|
"span",
|
|
18881
18911
|
{
|
|
18882
18912
|
"data-testid": "markdown-missing-image",
|
|
@@ -18892,25 +18922,25 @@ const e$ = [
|
|
|
18892
18922
|
] })
|
|
18893
18923
|
]
|
|
18894
18924
|
}
|
|
18895
|
-
),
|
|
18925
|
+
), y$ = (e, t, r) => {
|
|
18896
18926
|
const { src: i, alt: o, "data-asset-exists": s, "data-asset-src": a } = e.attribs;
|
|
18897
18927
|
if (!i || i.trim() === "" || s === "false")
|
|
18898
|
-
return /* @__PURE__ */ w.jsx(
|
|
18928
|
+
return /* @__PURE__ */ w.jsx(m$, { alt: o, target: a, label: t });
|
|
18899
18929
|
const n = r.rendered === 0;
|
|
18900
18930
|
return r.rendered += 1, /* @__PURE__ */ w.jsx("img", { alt: "", ...oi({ loading: n ? "eager" : "lazy", decoding: "async", ...e.attribs }) });
|
|
18901
|
-
}, Yo = (e) => e.map((t) => t instanceof qi ? t.data : t instanceof ze ? Yo(t.children) : "").join(""),
|
|
18931
|
+
}, Yo = (e) => e.map((t) => t instanceof qi ? t.data : t instanceof ze ? Yo(t.children) : "").join(""), x$ = (e, t) => e.map((r) => {
|
|
18902
18932
|
if (r instanceof qi) return { kind: "text", text: r.data };
|
|
18903
18933
|
if (!(r instanceof ze)) return { kind: "ignored" };
|
|
18904
18934
|
if (r.name.toLowerCase() !== "a") return { kind: "element" };
|
|
18905
18935
|
const i = ba(r.name, r.attribs, { parentName: "p", iFrameAllowedDomains: t });
|
|
18906
18936
|
return { kind: "link", href: i.action === "keep" ? i.attributes.href ?? null : null };
|
|
18907
|
-
}),
|
|
18908
|
-
const o = e.children, s = Jx(t,
|
|
18937
|
+
}), C$ = (e, t, r, i) => {
|
|
18938
|
+
const o = e.children, s = Jx(t, x$(o, i.iFrameAllowedDomains));
|
|
18909
18939
|
if (s === null)
|
|
18910
18940
|
return;
|
|
18911
18941
|
const a = Zi(o, r), n = /* @__PURE__ */ w.jsx("p", { ...oi(e.attribs, "p"), children: a }), l = o.find((f) => f instanceof ze), c = i.embeds.linkCardEndpoint, h = c !== null && l !== void 0 && tC(Yo(l.children), s) ? /* @__PURE__ */ w.jsx(ib, { href: t, endpoint: c, size: jx(i.embeds), fallback: n }) : n, d = Hx(s, i.embeds.providers);
|
|
18912
18942
|
return d === null ? h : /* @__PURE__ */ w.jsx(ub, { resolution: d, caption: a, fallback: h, theme: i.theme, labels: i.embedLabels });
|
|
18913
|
-
},
|
|
18943
|
+
}, b$ = (e, t) => {
|
|
18914
18944
|
if (mx(e))
|
|
18915
18945
|
return null;
|
|
18916
18946
|
const r = e.children.filter((c) => !(c instanceof qi && Ml.test(c.data))), [i] = r;
|
|
@@ -18920,8 +18950,8 @@ const e$ = [
|
|
|
18920
18950
|
if (o.action !== "keep")
|
|
18921
18951
|
return null;
|
|
18922
18952
|
const { src: s, alt: a, "data-asset-src": n, "data-asset-exists": l } = o.attributes;
|
|
18923
|
-
return n === void 0 || !
|
|
18924
|
-
},
|
|
18953
|
+
return n === void 0 || !d$(n) || s === void 0 || s.trim() === "" || l === "false" ? null : { node: i, path: n, name: a !== void 0 && a.trim() !== "" ? a : n.slice(n.lastIndexOf("/") + 1) };
|
|
18954
|
+
}, k$ = { lowerCaseAttributeNames: !1 }, Jd = 2166136261, tu = 16777619, Ml = /^[\t\n\f\r ]*$/u, w$ = `language-${fu}`, bx = (e) => e.name === "code" && (e.attribs.class ?? "").split(/[\t\n\f\r ]+/u).includes(w$), S$ = (e) => {
|
|
18925
18955
|
let t = Jd, r = Jd;
|
|
18926
18956
|
const i = (s, a) => {
|
|
18927
18957
|
for (let n = 0; n < s.length; n += 1) {
|
|
@@ -18943,9 +18973,9 @@ const e$ = [
|
|
|
18943
18973
|
i("\x07", a), i(s.data, a);
|
|
18944
18974
|
};
|
|
18945
18975
|
return o(e, !0), { fingerprint: (t >>> 0).toString(36), content: (r >>> 0).toString(36) };
|
|
18946
|
-
},
|
|
18976
|
+
}, v$ = (e, t, r, i) => {
|
|
18947
18977
|
if (e === "") return { nodes: [], keys: [] };
|
|
18948
|
-
const o = Xx(e,
|
|
18978
|
+
const o = Xx(e, k$), s = o.filter((l) => !(l instanceof qi && Ml.test(l.data))), a = jC(s.map(S$), r);
|
|
18949
18979
|
let n = 0;
|
|
18950
18980
|
return {
|
|
18951
18981
|
nodes: o.map((l) => {
|
|
@@ -18955,7 +18985,7 @@ const e$ = [
|
|
|
18955
18985
|
}),
|
|
18956
18986
|
keys: a
|
|
18957
18987
|
};
|
|
18958
|
-
},
|
|
18988
|
+
}, T$ = ({
|
|
18959
18989
|
htmlContent: e,
|
|
18960
18990
|
theme: t = "light",
|
|
18961
18991
|
iFrameAllowedDomains: r = [],
|
|
@@ -18981,12 +19011,12 @@ const e$ = [
|
|
|
18981
19011
|
iFrameAllowedDomains: r,
|
|
18982
19012
|
embedLabels: x,
|
|
18983
19013
|
linkComponent: d,
|
|
18984
|
-
renderPlaceholder: (F, A, E) =>
|
|
19014
|
+
renderPlaceholder: (F, A, E) => C$(F, A, E, { embeds: i, theme: t, embedLabels: x, iFrameAllowedDomains: r }),
|
|
18985
19015
|
renderKept: (F, A) => {
|
|
18986
19016
|
if (F.name === "p" && k !== void 0) {
|
|
18987
|
-
const E =
|
|
19017
|
+
const E = b$(F, r);
|
|
18988
19018
|
if (E !== null)
|
|
18989
|
-
return /* @__PURE__ */ w.jsx(
|
|
19019
|
+
return /* @__PURE__ */ w.jsx(g$, { paragraph: F.attribs, image: Zi([E.node], A), path: E.path, name: E.name, reader: k, labels: S });
|
|
18990
19020
|
}
|
|
18991
19021
|
if (F.name === "pre" && F.children.length === 1) {
|
|
18992
19022
|
const E = F.children[0];
|
|
@@ -19008,31 +19038,28 @@ const e$ = [
|
|
|
19008
19038
|
}
|
|
19009
19039
|
}
|
|
19010
19040
|
if (F.name === "img")
|
|
19011
|
-
return
|
|
19041
|
+
return y$(F, f, T);
|
|
19012
19042
|
if (F.name === "span" && F.attribs.class?.includes("math")) {
|
|
19013
19043
|
const E = F.attribs.class.includes("display");
|
|
19014
19044
|
let D = Yo(F.children).trim();
|
|
19015
19045
|
E ? D = D.replace(/^\\\[/, "").replace(/\\\]$/, "") : D = D.replace(/^\\\(/, "").replace(/\\\)$/, "");
|
|
19016
19046
|
try {
|
|
19017
19047
|
const { html: R, diagnostics: M } = ox(D, E);
|
|
19018
|
-
return B.push(...M), E ? /* @__PURE__ */ w.
|
|
19019
|
-
/* @__PURE__ */ w.jsx(ux, { code: D }),
|
|
19020
|
-
/* @__PURE__ */ w.jsx("span", { dangerouslySetInnerHTML: { __html: R } })
|
|
19021
|
-
] }) : /* @__PURE__ */ w.jsx("span", { dangerouslySetInnerHTML: { __html: R } });
|
|
19048
|
+
return B.push(...M), E ? /* @__PURE__ */ w.jsx(ux, { source: D, placement: "flow", children: /* @__PURE__ */ w.jsx("span", { dangerouslySetInnerHTML: { __html: R } }) }) : /* @__PURE__ */ w.jsx("span", { dangerouslySetInnerHTML: { __html: R } });
|
|
19022
19049
|
} catch (R) {
|
|
19023
19050
|
console.error("Failed to render math:", R);
|
|
19024
19051
|
return;
|
|
19025
19052
|
}
|
|
19026
19053
|
}
|
|
19027
19054
|
}
|
|
19028
|
-
}), I = gt([]), { nodes: q, keys: z } =
|
|
19029
|
-
return
|
|
19055
|
+
}), I = gt([]), { nodes: q, keys: z } = v$(e, $, I.current, v);
|
|
19056
|
+
return Rt(() => {
|
|
19030
19057
|
I.current = z;
|
|
19031
|
-
}, [z]),
|
|
19058
|
+
}, [z]), Rt(() => {
|
|
19032
19059
|
_.current !== e && (_.current = e, B.length > 0 && P(B));
|
|
19033
19060
|
}, [e, B]), /* @__PURE__ */ w.jsx("div", { className: "markdown-body", "data-theme": t, children: q });
|
|
19034
19061
|
};
|
|
19035
|
-
const
|
|
19062
|
+
const _$ = [
|
|
19036
19063
|
[
|
|
19037
19064
|
"path",
|
|
19038
19065
|
{
|
|
@@ -19042,31 +19069,31 @@ const v$ = [
|
|
|
19042
19069
|
],
|
|
19043
19070
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
19044
19071
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
19045
|
-
],
|
|
19046
|
-
const
|
|
19072
|
+
], B$ = Lt("triangle-alert", _$);
|
|
19073
|
+
const L$ = [
|
|
19047
19074
|
["path", { d: "M21 5H3", key: "1fi0y6" }],
|
|
19048
19075
|
["path", { d: "M17 12H7", key: "16if0g" }],
|
|
19049
19076
|
["path", { d: "M19 19H5", key: "vjpgq2" }]
|
|
19050
|
-
],
|
|
19051
|
-
const
|
|
19077
|
+
], E$ = Lt("text-align-center", L$);
|
|
19078
|
+
const F$ = [
|
|
19052
19079
|
["path", { d: "M21 5H3", key: "1fi0y6" }],
|
|
19053
19080
|
["path", { d: "M15 12H3", key: "6jk70r" }],
|
|
19054
19081
|
["path", { d: "M17 19H3", key: "z6ezky" }]
|
|
19055
|
-
],
|
|
19056
|
-
const
|
|
19082
|
+
], A$ = Lt("text-align-start", F$);
|
|
19083
|
+
const M$ = [
|
|
19057
19084
|
["path", { d: "M21 5H3", key: "1fi0y6" }],
|
|
19058
19085
|
["path", { d: "M21 12H9", key: "dn1m92" }],
|
|
19059
19086
|
["path", { d: "M21 19H7", key: "4cu937" }]
|
|
19060
|
-
],
|
|
19061
|
-
const
|
|
19087
|
+
], $$ = Lt("text-align-end", M$);
|
|
19088
|
+
const O$ = [
|
|
19062
19089
|
["path", { d: "M3 5h.01", key: "18ugdj" }],
|
|
19063
19090
|
["path", { d: "M3 12h.01", key: "nlz23k" }],
|
|
19064
19091
|
["path", { d: "M3 19h.01", key: "noohij" }],
|
|
19065
19092
|
["path", { d: "M8 5h13", key: "1pao27" }],
|
|
19066
19093
|
["path", { d: "M8 12h13", key: "1za7za" }],
|
|
19067
19094
|
["path", { d: "M8 19h13", key: "m83p4d" }]
|
|
19068
|
-
],
|
|
19069
|
-
const
|
|
19095
|
+
], I$ = Lt("list", O$);
|
|
19096
|
+
const R$ = [
|
|
19070
19097
|
[
|
|
19071
19098
|
"path",
|
|
19072
19099
|
{
|
|
@@ -19078,8 +19105,8 @@ const O$ = [
|
|
|
19078
19105
|
["circle", { cx: "17.5", cy: "10.5", r: ".5", fill: "currentColor", key: "f64h9f" }],
|
|
19079
19106
|
["circle", { cx: "6.5", cy: "12.5", r: ".5", fill: "currentColor", key: "qy21gx" }],
|
|
19080
19107
|
["circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor", key: "fotxhn" }]
|
|
19081
|
-
],
|
|
19082
|
-
const
|
|
19108
|
+
], P$ = Lt("palette", R$);
|
|
19109
|
+
const D$ = [
|
|
19083
19110
|
["path", { d: "M12 17v5", key: "bb1du9" }],
|
|
19084
19111
|
[
|
|
19085
19112
|
"path",
|
|
@@ -19088,8 +19115,8 @@ const R$ = [
|
|
|
19088
19115
|
key: "1nkz8b"
|
|
19089
19116
|
}
|
|
19090
19117
|
]
|
|
19091
|
-
],
|
|
19092
|
-
const
|
|
19118
|
+
], N$ = Lt("pin", D$);
|
|
19119
|
+
const z$ = [
|
|
19093
19120
|
["path", { d: "M12 17v5", key: "bb1du9" }],
|
|
19094
19121
|
["path", { d: "M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89", key: "znwnzq" }],
|
|
19095
19122
|
["path", { d: "m2 2 20 20", key: "1ooewy" }],
|
|
@@ -19100,15 +19127,15 @@ const D$ = [
|
|
|
19100
19127
|
key: "c9qhm2"
|
|
19101
19128
|
}
|
|
19102
19129
|
]
|
|
19103
|
-
],
|
|
19130
|
+
], q$ = Lt("pin-off", z$), j$ = (e) => `#${e.id}`, W$ = (e) => {
|
|
19104
19131
|
let t = Number.POSITIVE_INFINITY;
|
|
19105
19132
|
for (const r of e)
|
|
19106
19133
|
r.depth < t && (t = r.depth);
|
|
19107
19134
|
return t;
|
|
19108
|
-
}, eu = "block truncate py-[max(0px,calc((2.75rem_-_1lh)_/_2))]",
|
|
19135
|
+
}, eu = "block truncate py-[max(0px,calc((2.75rem_-_1lh)_/_2))]", H$ = ({ headings: e, className: t = "", onHeadingSelect: r, headingHref: i = j$, label: o, labelledBy: s }) => {
|
|
19109
19136
|
if (e.length === 0)
|
|
19110
19137
|
return null;
|
|
19111
|
-
const a =
|
|
19138
|
+
const a = W$(e);
|
|
19112
19139
|
return /* @__PURE__ */ w.jsx("nav", { className: `toc ${t}`, "aria-label": o, "aria-labelledby": s, children: /* @__PURE__ */ w.jsx("ul", { className: "m-0 list-none p-0", children: e.map((n, l) => {
|
|
19113
19140
|
const c = n.id === "" ? null : i(n);
|
|
19114
19141
|
return (
|
|
@@ -19125,11 +19152,11 @@ const D$ = [
|
|
|
19125
19152
|
) }, l)
|
|
19126
19153
|
);
|
|
19127
19154
|
}) }) });
|
|
19128
|
-
}, vn = "--aqmd-toolbar-block-overlap",
|
|
19155
|
+
}, vn = "--aqmd-toolbar-block-overlap", Y$ = ({ toolbar: e, content: t, scrollportTop: r, scrollportBottom: i }) => {
|
|
19129
19156
|
if (e.width <= 0 || e.height <= 0) return 0;
|
|
19130
19157
|
const o = e.left < t.right && e.right > t.left, s = e.top < r + e.height && e.top < i, a = e.bottom - r;
|
|
19131
19158
|
return o && s && a > 0 ? Math.ceil(a) : 0;
|
|
19132
|
-
}, kx = (e) => `mermaid${e.charAt(0).toUpperCase()}${e.slice(1)}`, wx = Object.keys(za),
|
|
19159
|
+
}, kx = (e) => `mermaid${e.charAt(0).toUpperCase()}${e.slice(1)}`, wx = Object.keys(za), U$ = (e) => `spreadsheet${e.charAt(0).toUpperCase()}${e.slice(1)}`, X$ = Object.keys(Ln.en), Sx = (e) => `svgImage${e.charAt(0).toUpperCase()}${e.slice(1)}`, vx = Object.keys(qa), Tx = Object.freeze({
|
|
19133
19160
|
loading: { text: "Loading data...", lang: "en" },
|
|
19134
19161
|
errorPrefix: { text: "Error: ", lang: "en" },
|
|
19135
19162
|
defaultErrorTitle: { text: "An error occurred", lang: "en" },
|
|
@@ -19153,7 +19180,7 @@ const D$ = [
|
|
|
19153
19180
|
...Object.fromEntries(wx.map((e) => [kx(e), za[e]])),
|
|
19154
19181
|
...Object.fromEntries(vx.map((e) => [Sx(e), qa[e]])),
|
|
19155
19182
|
...Ca
|
|
19156
|
-
}),
|
|
19183
|
+
}), NI = xa(Tx), G$ = (e) => Wi(Tx, e), V$ = (e) => {
|
|
19157
19184
|
const t = {};
|
|
19158
19185
|
if (e === void 0) return Object.freeze(t);
|
|
19159
19186
|
for (const r of wx) {
|
|
@@ -19161,15 +19188,15 @@ const D$ = [
|
|
|
19161
19188
|
i !== void 0 && (t[r] = i);
|
|
19162
19189
|
}
|
|
19163
19190
|
return Object.freeze(t);
|
|
19164
|
-
},
|
|
19191
|
+
}, K$ = (e) => {
|
|
19165
19192
|
const t = {};
|
|
19166
19193
|
if (e === void 0) return Object.freeze(t);
|
|
19167
|
-
for (const r of
|
|
19168
|
-
const i = e[
|
|
19194
|
+
for (const r of X$) {
|
|
19195
|
+
const i = e[U$(r)];
|
|
19169
19196
|
i !== void 0 && (t[r] = i);
|
|
19170
19197
|
}
|
|
19171
19198
|
return Object.freeze(t);
|
|
19172
|
-
},
|
|
19199
|
+
}, Z$ = (e) => {
|
|
19173
19200
|
const t = {};
|
|
19174
19201
|
if (e === void 0) return Object.freeze(t);
|
|
19175
19202
|
for (const r of vx) {
|
|
@@ -19177,19 +19204,19 @@ const D$ = [
|
|
|
19177
19204
|
i !== void 0 && (t[r] = i);
|
|
19178
19205
|
}
|
|
19179
19206
|
return Object.freeze(t);
|
|
19180
|
-
},
|
|
19207
|
+
}, Q$ = Object.keys(Ca), J$ = (e) => {
|
|
19181
19208
|
const t = {};
|
|
19182
19209
|
if (e === void 0) return Object.freeze(t);
|
|
19183
|
-
for (const r of
|
|
19210
|
+
for (const r of Q$) {
|
|
19184
19211
|
const i = e[r];
|
|
19185
19212
|
i !== void 0 && (t[r] = i);
|
|
19186
19213
|
}
|
|
19187
19214
|
return Object.freeze(t);
|
|
19188
19215
|
}, ru = Object.freeze({
|
|
19189
|
-
left: { labelKey: "alignLeft", Icon:
|
|
19190
|
-
center: { labelKey: "alignCenter", Icon:
|
|
19191
|
-
right: { labelKey: "alignRight", Icon:
|
|
19192
|
-
}),
|
|
19216
|
+
left: { labelKey: "alignLeft", Icon: A$ },
|
|
19217
|
+
center: { labelKey: "alignCenter", Icon: E$ },
|
|
19218
|
+
right: { labelKey: "alignRight", Icon: $$ }
|
|
19219
|
+
}), tO = Object.freeze({ text: "ファイルを選択してください。", lang: "ja" }), eO = "100%", rO = (e) => e === "center" ? "auto" : e === "right" ? "auto 0" : "0 auto", $l = "24px", _x = (e) => Object.freeze({
|
|
19193
19220
|
position: "fixed",
|
|
19194
19221
|
insetBlockStart: "var(--aqmd-toolbar-inset-block-start, 0px)",
|
|
19195
19222
|
insetInlineEnd: `calc(var(--aqmd-toolbar-inset-inline-end, 0px) + ${e})`,
|
|
@@ -19199,7 +19226,7 @@ const D$ = [
|
|
|
19199
19226
|
alignItems: "flex-start",
|
|
19200
19227
|
gap: "0.5rem",
|
|
19201
19228
|
pointerEvents: "none"
|
|
19202
|
-
}),
|
|
19229
|
+
}), iO = _x($l), oO = Object.freeze({
|
|
19203
19230
|
position: "absolute",
|
|
19204
19231
|
insetBlockStart: 0,
|
|
19205
19232
|
insetInlineStart: 0,
|
|
@@ -19207,21 +19234,21 @@ const D$ = [
|
|
|
19207
19234
|
inlineSize: "var(--aqmd-toolbar-inset-inline-end, 0px)",
|
|
19208
19235
|
visibility: "hidden",
|
|
19209
19236
|
pointerEvents: "none"
|
|
19210
|
-
}),
|
|
19237
|
+
}), sO = (e) => `calc(100cqi - var(--aqmd-toolbar-inset-inline-end, 0px) - ${e})`, aO = 8, iu = 800, nO = 16, lO = (e, t) => {
|
|
19211
19238
|
const r = e.defaultView;
|
|
19212
19239
|
let i;
|
|
19213
19240
|
const o = () => {
|
|
19214
19241
|
e.removeEventListener("click", s, !0), e.removeEventListener("pointercancel", a, !0), i !== void 0 && r?.clearTimeout(i);
|
|
19215
19242
|
};
|
|
19216
19243
|
function s(n) {
|
|
19217
|
-
o(), !(n.timeStamp - t.timeStamp > iu || Math.hypot(n.clientX - t.clientX, n.clientY - t.clientY) >
|
|
19244
|
+
o(), !(n.timeStamp - t.timeStamp > iu || Math.hypot(n.clientX - t.clientX, n.clientY - t.clientY) > nO) && (n.preventDefault(), n.stopPropagation());
|
|
19218
19245
|
}
|
|
19219
19246
|
function a(n) {
|
|
19220
19247
|
n.pointerId === t.pointerId && o();
|
|
19221
19248
|
}
|
|
19222
19249
|
e.addEventListener("click", s, !0), e.addEventListener("pointercancel", a, !0), i = r?.setTimeout(o, iu);
|
|
19223
|
-
},
|
|
19224
|
-
const [i, o] =
|
|
19250
|
+
}, hO = (e, t, r) => {
|
|
19251
|
+
const [i, o] = ct(null);
|
|
19225
19252
|
return ve(() => {
|
|
19226
19253
|
const s = t.current;
|
|
19227
19254
|
if (!e || s === null || r === null) {
|
|
@@ -19233,7 +19260,7 @@ const D$ = [
|
|
|
19233
19260
|
const l = () => {
|
|
19234
19261
|
n = 0;
|
|
19235
19262
|
const d = s.getBoundingClientRect(), f = s.offsetHeight > 0 ? d.height / s.offsetHeight : 1, u = a?.visualViewport ?? null, p = u === null ? Number.POSITIVE_INFINITY : u.offsetTop + u.height, m = Math.min(r.getBoundingClientRect().bottom, p);
|
|
19236
|
-
o(Math.max(0, Math.floor((m - d.top) / f -
|
|
19263
|
+
o(Math.max(0, Math.floor((m - d.top) / f - aO)));
|
|
19237
19264
|
}, c = () => {
|
|
19238
19265
|
a !== null && n === 0 && (n = a.requestAnimationFrame(l));
|
|
19239
19266
|
};
|
|
@@ -19245,7 +19272,7 @@ const D$ = [
|
|
|
19245
19272
|
}, [e, t, r]), i;
|
|
19246
19273
|
};
|
|
19247
19274
|
function Tn({ menu: e, Icon: t, buttonLabel: r, titleLabel: i, titleId: o, pinLabel: s, unpinLabel: a, isOpen: n, isPinned: l, isFront: c, onActivate: h, onToggle: d, onClose: f, onPinToggle: u, popoverClassName: p, scrollBarClearance: m, boundary: y, renderBody: x }) {
|
|
19248
|
-
const C = gt(null), k = gt(null), S = gt(null), v =
|
|
19275
|
+
const C = gt(null), k = gt(null), S = gt(null), v = hO(n, S, y), T = mt(() => {
|
|
19249
19276
|
d(), h();
|
|
19250
19277
|
}, [h, d]), B = mt(() => {
|
|
19251
19278
|
if (l)
|
|
@@ -19253,14 +19280,14 @@ function Tn({ menu: e, Icon: t, buttonLabel: r, titleLabel: i, titleId: o, pinLa
|
|
|
19253
19280
|
const P = C.current?.contains(document.activeElement) === !0;
|
|
19254
19281
|
f(), P && k.current?.focus();
|
|
19255
19282
|
}, [l, f]);
|
|
19256
|
-
|
|
19283
|
+
Rt(() => {
|
|
19257
19284
|
if (!n || l)
|
|
19258
19285
|
return;
|
|
19259
19286
|
const P = C.current;
|
|
19260
19287
|
if (P === null)
|
|
19261
19288
|
return;
|
|
19262
19289
|
const $ = (q) => {
|
|
19263
|
-
P.contains(q.target) || (f(), q.pointerType === "touch" && !(q.target instanceof Element && q.target.closest("[data-aqmd-toolbar]") !== null) &&
|
|
19290
|
+
P.contains(q.target) || (f(), q.pointerType === "touch" && !(q.target instanceof Element && q.target.closest("[data-aqmd-toolbar]") !== null) && lO(P.ownerDocument, q));
|
|
19264
19291
|
}, I = (q) => {
|
|
19265
19292
|
q.key !== "Escape" || q.defaultPrevented || q.isComposing || (q.preventDefault(), f(), k.current?.focus());
|
|
19266
19293
|
};
|
|
@@ -19289,7 +19316,7 @@ function Tn({ menu: e, Icon: t, buttonLabel: r, titleLabel: i, titleId: o, pinLa
|
|
|
19289
19316
|
ref: S,
|
|
19290
19317
|
"data-aqmd-toolbar-popover": e,
|
|
19291
19318
|
className: `pointer-events-auto absolute end-0 top-full mt-2 box-border overflow-y-auto overscroll-contain rounded-lg border border-gray-200 bg-white shadow-xl dark:border-gray-700 dark:bg-gray-800 ${p}`,
|
|
19292
|
-
style: { zIndex: c ? 2 : 1, maxInlineSize:
|
|
19319
|
+
style: { zIndex: c ? 2 : 1, maxInlineSize: sO(m), maxBlockSize: v ?? void 0 },
|
|
19293
19320
|
children: [
|
|
19294
19321
|
/* @__PURE__ */ w.jsxs("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
19295
19322
|
/* @__PURE__ */ w.jsx("h3", { id: o, lang: i.lang, className: "px-2 font-bold text-gray-600 text-sm uppercase tracking-wider dark:text-gray-300", children: i.text }),
|
|
@@ -19301,7 +19328,7 @@ function Tn({ menu: e, Icon: t, buttonLabel: r, titleLabel: i, titleId: o, pinLa
|
|
|
19301
19328
|
onClick: u,
|
|
19302
19329
|
"aria-label": _.text,
|
|
19303
19330
|
lang: _.lang,
|
|
19304
|
-
children: l ? /* @__PURE__ */ w.jsx(
|
|
19331
|
+
children: l ? /* @__PURE__ */ w.jsx(N$, { className: "h-4 w-4" }) : /* @__PURE__ */ w.jsx(q$, { className: "h-4 w-4" })
|
|
19305
19332
|
}
|
|
19306
19333
|
)
|
|
19307
19334
|
] }),
|
|
@@ -19311,8 +19338,8 @@ function Tn({ menu: e, Icon: t, buttonLabel: r, titleLabel: i, titleId: o, pinLa
|
|
|
19311
19338
|
)
|
|
19312
19339
|
] });
|
|
19313
19340
|
}
|
|
19314
|
-
const
|
|
19315
|
-
const [o, s] =
|
|
19341
|
+
const cO = (e, t, r, i) => {
|
|
19342
|
+
const [o, s] = ct(0), a = gt(null);
|
|
19316
19343
|
return ve(() => {
|
|
19317
19344
|
const n = e.current, l = t.current;
|
|
19318
19345
|
if (r === null || n === null || l === null) {
|
|
@@ -19321,7 +19348,7 @@ const lO = (e, t, r, i) => {
|
|
|
19321
19348
|
}
|
|
19322
19349
|
const c = () => {
|
|
19323
19350
|
const p = n.getBoundingClientRect();
|
|
19324
|
-
s(
|
|
19351
|
+
s(Y$({ toolbar: r.getBoundingClientRect(), content: l.getBoundingClientRect(), scrollportTop: p.top + n.clientTop, scrollportBottom: p.bottom }));
|
|
19325
19352
|
};
|
|
19326
19353
|
a.current = c;
|
|
19327
19354
|
let h = null;
|
|
@@ -19340,11 +19367,11 @@ const lO = (e, t, r, i) => {
|
|
|
19340
19367
|
}, [e, t, r]), ve(() => {
|
|
19341
19368
|
a.current?.();
|
|
19342
19369
|
}, [i]), o;
|
|
19343
|
-
},
|
|
19370
|
+
}, dO = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches, uO = (e) => {
|
|
19344
19371
|
let t = null, r = e;
|
|
19345
19372
|
for (; r !== null; )
|
|
19346
19373
|
r.getAttribute("hidden")?.toLowerCase() === "until-found" && (r.dispatchEvent(new Event("beforematch", { bubbles: !0 })), r.removeAttribute("hidden")), r instanceof HTMLDetailsElement && !r.open && t !== null && t !== Array.from(r.children).find((i) => i.localName === "summary") && (r.open = !0), t = r, r = r.parentElement;
|
|
19347
|
-
},
|
|
19374
|
+
}, fO = Ol(function({
|
|
19348
19375
|
parseResult: t,
|
|
19349
19376
|
theme: r,
|
|
19350
19377
|
styleClassName: i,
|
|
@@ -19364,7 +19391,7 @@ const lO = (e, t, r, i) => {
|
|
|
19364
19391
|
onMathDiagnostics: x
|
|
19365
19392
|
}) {
|
|
19366
19393
|
return /* @__PURE__ */ w.jsx("div", { className: "w-full min-w-0", children: /* @__PURE__ */ w.jsx("div", { className: i, "data-theme": r, children: /* @__PURE__ */ w.jsx(
|
|
19367
|
-
|
|
19394
|
+
T$,
|
|
19368
19395
|
{
|
|
19369
19396
|
htmlContent: t.htmlContent,
|
|
19370
19397
|
theme: r,
|
|
@@ -19385,8 +19412,8 @@ const lO = (e, t, r, i) => {
|
|
|
19385
19412
|
}
|
|
19386
19413
|
) }) });
|
|
19387
19414
|
});
|
|
19388
|
-
function
|
|
19389
|
-
const [e, t] =
|
|
19415
|
+
function pO() {
|
|
19416
|
+
const [e, t] = ct("toc"), [r, i] = ct(!1), [o, s] = ct(!1), [a, n] = ct(!1), [l, c] = ct(!1), [h, d] = ct(!1), [f, u] = ct(!1), p = mt(() => t("toc"), []), m = mt(() => i(($) => !$), []), y = mt(() => i(!1), []), x = mt(() => c(($) => !$), []), C = mt(() => t("style"), []), k = mt(() => s(($) => !$), []), S = mt(() => s(!1), []), v = mt(() => d(($) => !$), []), T = mt(() => t("align"), []), B = mt(() => n(($) => !$), []), _ = mt(() => n(!1), []), P = mt(() => u(($) => !$), []);
|
|
19390
19417
|
return {
|
|
19391
19418
|
lastActiveMenu: e,
|
|
19392
19419
|
isTocOpen: r,
|
|
@@ -19409,13 +19436,13 @@ function uO() {
|
|
|
19409
19436
|
togglePinAlign: P
|
|
19410
19437
|
};
|
|
19411
19438
|
}
|
|
19412
|
-
const
|
|
19439
|
+
const gO = ({ error: e, labels: t }) => {
|
|
19413
19440
|
if (Ox(e))
|
|
19414
19441
|
return /* @__PURE__ */ w.jsx("div", { className: "p-4", children: e });
|
|
19415
19442
|
if (typeof e == "object" && e !== null && "message" in e) {
|
|
19416
19443
|
const i = e, o = i.title !== void 0 && i.title !== "";
|
|
19417
19444
|
return /* @__PURE__ */ w.jsx("div", { className: "mx-auto my-8 max-w-lg rounded-xl border border-red-200 bg-red-50/50 p-6 shadow-sm backdrop-blur-sm dark:border-red-900/50 dark:bg-red-950/30", children: /* @__PURE__ */ w.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
19418
|
-
/* @__PURE__ */ w.jsx("div", { className: "rounded-lg bg-red-100 p-2 text-red-600 dark:bg-red-900/50 dark:text-red-400", children: /* @__PURE__ */ w.jsx(
|
|
19445
|
+
/* @__PURE__ */ w.jsx("div", { className: "rounded-lg bg-red-100 p-2 text-red-600 dark:bg-red-900/50 dark:text-red-400", children: /* @__PURE__ */ w.jsx(B$, { className: "h-5 w-5" }) }),
|
|
19419
19446
|
/* @__PURE__ */ w.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
19420
19447
|
/* @__PURE__ */ w.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
19421
19448
|
/* @__PURE__ */ w.jsx("h3", { lang: o ? void 0 : t.defaultErrorTitle.lang, className: "font-semibold text-base text-red-900 dark:text-red-200", children: o ? i.title : t.defaultErrorTitle.text }),
|
|
@@ -19431,7 +19458,7 @@ const fO = ({ error: e, labels: t }) => {
|
|
|
19431
19458
|
r
|
|
19432
19459
|
] }) });
|
|
19433
19460
|
};
|
|
19434
|
-
function
|
|
19461
|
+
function zI({
|
|
19435
19462
|
parseResult: e,
|
|
19436
19463
|
content: t,
|
|
19437
19464
|
error: r = null,
|
|
@@ -19464,20 +19491,20 @@ function DI({
|
|
|
19464
19491
|
renderScrollBar: z,
|
|
19465
19492
|
scrollBarGutter: F = 0
|
|
19466
19493
|
}) {
|
|
19467
|
-
const A = gt(null), [E, D] =
|
|
19494
|
+
const A = gt(null), [E, D] = ct(null), R = mt((At) => {
|
|
19468
19495
|
A.current = At, D(At);
|
|
19469
|
-
}, []), [M, N] =
|
|
19496
|
+
}, []), [M, N] = ct(0), L = gt(null), [U, Y] = ct(null), X = gt(null), V = Je(), Z = pO(), j = S ?? Z, K = Mt(() => G$(o), [o]), Q = Mt(() => V$(o), [o]), ot = Mt(() => K$(o), [o]), yt = Mt(() => Z$(o), [o]), kt = Cx(q), vt = nx(P);
|
|
19470
19497
|
Su(C);
|
|
19471
19498
|
const Qt = Bn.filter((At) => C.providers.includes(At)).join(" "), de = C.linkCardEndpoint, qt = C.linkCardSize, $t = Mt(() => {
|
|
19472
19499
|
const At = Qt.split(" "), Et = Object.freeze(Bn.filter((fe) => At.includes(fe)));
|
|
19473
19500
|
return Object.freeze(qt === void 0 ? { providers: Et, linkCardEndpoint: de } : { providers: Et, linkCardEndpoint: de, linkCardSize: qt });
|
|
19474
|
-
}, [Qt, de, qt]), Wt = o?.embeddedVideo, Ht = o?.embeddedPost, te = o?.embeddedFrame, ye = Mt(() =>
|
|
19501
|
+
}, [Qt, de, qt]), Wt = o?.embeddedVideo, Ht = o?.embeddedPost, te = o?.embeddedFrame, ye = Mt(() => J$({ embeddedVideo: Wt, embeddedPost: Ht, embeddedFrame: te }), [Wt, Ht, te]), Yt = gt(_);
|
|
19475
19502
|
ve(() => {
|
|
19476
19503
|
Yt.current = _;
|
|
19477
19504
|
}, [_]);
|
|
19478
19505
|
const ue = mt((At) => {
|
|
19479
19506
|
Yt.current?.(At);
|
|
19480
|
-
}, []), Fe = k === void 0 ?
|
|
19507
|
+
}, []), Fe = k === void 0 ? tO : { text: k, lang: void 0 }, Ae = cO(A, L, U, c);
|
|
19481
19508
|
if (!ja.includes(c))
|
|
19482
19509
|
throw new TypeError(`[@aiquants/markdown] align must be one of ${ja.join(", ")}; got ${String(c)} (normalize it with toContentAlign)`);
|
|
19483
19510
|
const _t = Number.isFinite(y) && y >= 0 ? y : 16;
|
|
@@ -19527,11 +19554,11 @@ function DI({
|
|
|
19527
19554
|
return;
|
|
19528
19555
|
Et.preventDefault();
|
|
19529
19556
|
const Xt = A.current?.querySelector(`#${CSS.escape(At.id)}`) ?? document.getElementById(At.id);
|
|
19530
|
-
Xt && (
|
|
19557
|
+
Xt && (uO(Xt), Xt.tabIndex < 0 && !Xt.hasAttribute("tabindex") && Xt.setAttribute("tabindex", "-1"), Xt.scrollIntoView({ behavior: dO() ? "instant" : "smooth", block: "start" }), Xt.focus({ preventScroll: !0 }));
|
|
19531
19558
|
},
|
|
19532
19559
|
[Ye, $r, T]
|
|
19533
|
-
), ni = Mt(() => l.find((Et) => Et.name === a)?.className ?? "markdown-body", [l, a]), Xe = e?.headings ?? [], Me = !(i || r), Ge = Me && e !== null, li = Me && e === null && t !== null, Or = Ge && d && Xe.length > 0, Ir = Ge && f, Rr = (Ge || li) && u && typeof h == "function" && (p !== void 0 || m !== void 0), J = Mt(() => /* @__PURE__ */ w.jsx(
|
|
19534
|
-
/* @__PURE__ */ w.jsx("span", { "data-aqmd-toolbar-inset-probe": !0, "aria-hidden": "true", style:
|
|
19560
|
+
), ni = Mt(() => l.find((Et) => Et.name === a)?.className ?? "markdown-body", [l, a]), Xe = e?.headings ?? [], Me = !(i || r), Ge = Me && e !== null, li = Me && e === null && t !== null, Or = Ge && d && Xe.length > 0, Ir = Ge && f, Rr = (Ge || li) && u && typeof h == "function" && (p !== void 0 || m !== void 0), J = Mt(() => /* @__PURE__ */ w.jsx(H$, { headings: Xe, className: "text-sm", labelledBy: V, onHeadingSelect: Ue, headingHref: B }), [Xe, V, Ue, B]), lt = z === void 0 ? $l : `${M}px`, bt = Mt(() => lt === $l ? iO : _x(lt), [lt]), Nt = Or || Ir || Rr ? /* @__PURE__ */ w.jsxs("div", { ref: Y, "data-aqmd-toolbar": !0, style: bt, children: [
|
|
19561
|
+
/* @__PURE__ */ w.jsx("span", { "data-aqmd-toolbar-inset-probe": !0, "aria-hidden": "true", style: oO }),
|
|
19535
19562
|
Rr && h && /* @__PURE__ */ w.jsx(
|
|
19536
19563
|
Tn,
|
|
19537
19564
|
{
|
|
@@ -19577,7 +19604,7 @@ function DI({
|
|
|
19577
19604
|
Tn,
|
|
19578
19605
|
{
|
|
19579
19606
|
menu: "style",
|
|
19580
|
-
Icon:
|
|
19607
|
+
Icon: P$,
|
|
19581
19608
|
buttonLabel: K.selectStyleAria,
|
|
19582
19609
|
titleLabel: K.styleTitle,
|
|
19583
19610
|
pinLabel: K.pinStyleAria,
|
|
@@ -19614,7 +19641,7 @@ function DI({
|
|
|
19614
19641
|
Tn,
|
|
19615
19642
|
{
|
|
19616
19643
|
menu: "toc",
|
|
19617
|
-
Icon:
|
|
19644
|
+
Icon: I$,
|
|
19618
19645
|
buttonLabel: K.openTocAria,
|
|
19619
19646
|
titleLabel: K.tocTitle,
|
|
19620
19647
|
titleId: V,
|
|
@@ -19637,8 +19664,8 @@ function DI({
|
|
|
19637
19664
|
/* @__PURE__ */ w.jsx("span", { "aria-hidden": "true", children: "🌀" }),
|
|
19638
19665
|
" ",
|
|
19639
19666
|
/* @__PURE__ */ w.jsx("span", { lang: K.loading.lang, children: K.loading.text })
|
|
19640
|
-
] }) : r ? /* @__PURE__ */ w.jsx(
|
|
19641
|
-
|
|
19667
|
+
] }) : r ? /* @__PURE__ */ w.jsx(gO, { error: r, labels: K }) : e ? /* @__PURE__ */ w.jsx("div", { className: "relative w-full min-w-0", children: /* @__PURE__ */ w.jsx(
|
|
19668
|
+
fO,
|
|
19642
19669
|
{
|
|
19643
19670
|
parseResult: e,
|
|
19644
19671
|
theme: s,
|
|
@@ -19679,16 +19706,16 @@ function DI({
|
|
|
19679
19706
|
onBarInlineSizeChange: N,
|
|
19680
19707
|
children: [
|
|
19681
19708
|
Nt,
|
|
19682
|
-
/* @__PURE__ */ w.jsx("div", { ref: L, "data-aqmd-content": !0, style: { width: p ??
|
|
19709
|
+
/* @__PURE__ */ w.jsx("div", { ref: L, "data-aqmd-content": !0, style: { width: p ?? eO, maxWidth: m, marginInline: rO(c) }, children: Ut() })
|
|
19683
19710
|
]
|
|
19684
19711
|
}
|
|
19685
19712
|
);
|
|
19686
19713
|
}
|
|
19687
|
-
const
|
|
19714
|
+
const mO = ({ node: e }) => /* @__PURE__ */ w.jsx("del", { children: /* @__PURE__ */ w.jsx(Zt, { nodes: e.children }) }), yO = ({ node: e }) => /* @__PURE__ */ w.jsx("em", { children: /* @__PURE__ */ w.jsx(Zt, { nodes: e.children }) }), xO = ({ node: e }) => /* @__PURE__ */ w.jsx("sup", { children: /* @__PURE__ */ w.jsxs("a", { id: `fnref-${e.identifier}`, className: "text-[#316dce] underline visited:text-[#6b46c1] dark:text-[#3182ce] dark:visited:text-[#805ad5]", href: `#fn-${e.identifier}`, children: [
|
|
19688
19715
|
"[",
|
|
19689
19716
|
e.identifier,
|
|
19690
19717
|
"]"
|
|
19691
|
-
] }) }),
|
|
19718
|
+
] }) }), qI = ({ nodes: e, theme: t = "light" }) => e.length === 0 ? null : /* @__PURE__ */ w.jsx("section", { className: "border-[#171717] border-t pt-4 dark:border-[#464646]", children: /* @__PURE__ */ w.jsx("ol", { className: "pl-6 text-[#686868] text-sm dark:text-[#a4a5a9]", children: e.map((r, i) => /* @__PURE__ */ w.jsx("li", { id: `fn-${r.identifier}`, className: i === 0 ? "" : "mt-4", children: /* @__PURE__ */ w.jsx(Zt, { nodes: r.children, theme: t }) }, `mdast-node-fn-${r.identifier}-${i}`)) }) }), CO = ({ node: e }) => /* @__PURE__ */ w.jsx("a", { href: e.url, className: "text-[#316dce] underline visited:text-[#6b46c1] dark:text-[#3182ce] dark:visited:text-[#805ad5]", children: "↩" }), bO = (e) => e.replace(/<rt\b[^>]*>[\s\S]*?<\/rt>/gi, "").replace(/<rp\b[^>]*>[\s\S]*?<\/rp>/gi, "").replace(/<[^>]+>/g, "").replace(/ /gi, " ").replace(/&/gi, "&").replace(/</gi, "<").replace(/>/gi, ">").replace(/"/gi, '"').replace(/'/gi, "'").replace(/&#(\d+);/g, (o, s) => {
|
|
19692
19719
|
const a = Number(s);
|
|
19693
19720
|
return Number.isFinite(a) ? String.fromCodePoint(a) : "";
|
|
19694
19721
|
}).replace(/&#x([0-9a-f]+);/gi, (o, s) => {
|
|
@@ -19700,7 +19727,7 @@ const pO = ({ node: e }) => /* @__PURE__ */ w.jsx("del", { children: /* @__PURE_
|
|
|
19700
19727
|
return "";
|
|
19701
19728
|
if ("type" in r && r.type === "html") {
|
|
19702
19729
|
const i = r.value;
|
|
19703
|
-
return typeof i == "string" ?
|
|
19730
|
+
return typeof i == "string" ? bO(i) : "";
|
|
19704
19731
|
}
|
|
19705
19732
|
if ("value" in r) {
|
|
19706
19733
|
const i = r.value;
|
|
@@ -19710,7 +19737,7 @@ const pO = ({ node: e }) => /* @__PURE__ */ w.jsx("del", { children: /* @__PURE_
|
|
|
19710
19737
|
return "children" in r && Array.isArray(r.children) ? r.children.map((i) => t(i)).join("") : "";
|
|
19711
19738
|
};
|
|
19712
19739
|
return e.map((r) => t(r)).join("").replace(/\s+/g, " ").trim();
|
|
19713
|
-
},
|
|
19740
|
+
}, kO = (e) => {
|
|
19714
19741
|
switch (e) {
|
|
19715
19742
|
case 1:
|
|
19716
19743
|
return "border-b-2 border-gray-300 pb-2 text-3xl font-bold dark:border-gray-600 dark:text-gray-100";
|
|
@@ -19721,26 +19748,26 @@ const pO = ({ node: e }) => /* @__PURE__ */ w.jsx("del", { children: /* @__PURE_
|
|
|
19721
19748
|
default:
|
|
19722
19749
|
return "text-lg font-medium dark:text-gray-400";
|
|
19723
19750
|
}
|
|
19724
|
-
},
|
|
19751
|
+
}, wO = ({ node: e }) => {
|
|
19725
19752
|
const t = new gC(), r = `h${e.depth}`, i = e.data?.hProperties?.id, o = t.slug(Bx(e.children));
|
|
19726
19753
|
return (
|
|
19727
19754
|
// <Tag id={customId || encodeURIComponent(childrenText)} className={getHeadingClassName(node.depth)}>
|
|
19728
|
-
/* @__PURE__ */ w.jsx(r, { id: i || o, className:
|
|
19755
|
+
/* @__PURE__ */ w.jsx(r, { id: i || o, className: kO(e.depth), children: /* @__PURE__ */ w.jsx(Zt, { nodes: e.children }) })
|
|
19729
19756
|
);
|
|
19730
|
-
},
|
|
19757
|
+
}, SO = (e) => Object.fromEntries(
|
|
19731
19758
|
Object.entries(e).filter(([, t]) => t !== !1).map(([t, r]) => [t, r === !0 ? "" : String(r)])
|
|
19732
|
-
),
|
|
19733
|
-
const i = /* @__PURE__ */ w.jsx(Zt, { nodes: e.children, theme: t, iFrameAllowedDomains: r }), o = ba(e.data.tagName,
|
|
19759
|
+
), vO = ({ node: e, theme: t, iFrameAllowedDomains: r = [] }) => {
|
|
19760
|
+
const i = /* @__PURE__ */ w.jsx(Zt, { nodes: e.children, theme: t, iFrameAllowedDomains: r }), o = ba(e.data.tagName, SO(e.data.properties), { parentName: null, iFrameAllowedDomains: r });
|
|
19734
19761
|
if (o.action === "unwrap")
|
|
19735
19762
|
return i;
|
|
19736
19763
|
if (o.action !== "keep" && o.action !== "placeholder")
|
|
19737
19764
|
return null;
|
|
19738
19765
|
const s = e.data.tagName.toLowerCase();
|
|
19739
19766
|
return /* @__PURE__ */ w.jsx(s, { ...oi(o.attributes, e.data.tagName.toLowerCase()), children: i });
|
|
19740
|
-
},
|
|
19767
|
+
}, TO = /^\s*<(address|article|aside|blockquote|details|dialog|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h[1-6]|header|hgroup|hr|li|main|nav|ol|p|pre|section|table|ul)/i, _O = ({ node: e, iFrameAllowedDomains: t = [] }) => {
|
|
19741
19768
|
const r = cu(e.value, xx({ iFrameAllowedDomains: t, embedLabels: yC }));
|
|
19742
|
-
return Array.isArray(r) && r.length === 0 ? null :
|
|
19743
|
-
},
|
|
19769
|
+
return Array.isArray(r) && r.length === 0 ? null : TO.test(e.value) ? /* @__PURE__ */ w.jsx("div", { children: r }) : /* @__PURE__ */ w.jsx("span", { children: r });
|
|
19770
|
+
}, BO = ({ node: e }) => {
|
|
19744
19771
|
if (!e.url || e.url.trim() === "" || !Xo(e.url))
|
|
19745
19772
|
return null;
|
|
19746
19773
|
const t = e.title ?? "", r = e.data?.hProperties?.width, i = e.data?.hProperties?.height;
|
|
@@ -19748,16 +19775,16 @@ const pO = ({ node: e }) => /* @__PURE__ */ w.jsx("del", { children: /* @__PURE_
|
|
|
19748
19775
|
/* @__PURE__ */ w.jsx("img", { src: e.url, alt: e.alt ?? "", className: "mx-auto h-full w-full", width: r, height: i }),
|
|
19749
19776
|
t && /* @__PURE__ */ w.jsx("em", { className: "block text-center text-gray-400 text-xs", children: t })
|
|
19750
19777
|
] });
|
|
19751
|
-
},
|
|
19778
|
+
}, LO = ({ node: e }) => /* @__PURE__ */ w.jsx("code", { className: "rounded-md bg-gray-200 px-1.5 py-1 font-mono text-gray-800 text-sm dark:bg-gray-700 dark:text-gray-200", children: e.value }), EO = ({ node: e }) => {
|
|
19752
19779
|
const t = fx(e.value, !1), r = "rounded-md px-1.5 py-1 font-mono text-gray-800 text-sm dark:text-gray-200";
|
|
19753
19780
|
return t.kind === "rendered" ? /* @__PURE__ */ w.jsx("span", { className: r, dangerouslySetInnerHTML: { __html: t.html } }) : /* @__PURE__ */ w.jsx("span", { className: r, children: t.message });
|
|
19754
|
-
},
|
|
19781
|
+
}, FO = new RegExp(`<(?:${[...Wh].join("|")})(?=[\\s/>])`, "i"), Lx = (e) => e.some((t) => t.type === "image" || t.type === "imageReference" || t.type === "html" && typeof t.value == "string" && FO.test(t.value) || t.children !== void 0 && Lx(t.children)), AO = ({ node: e }) => {
|
|
19755
19782
|
const t = Xo(e.url) ? e.url : void 0, r = t !== void 0 && px(t);
|
|
19756
19783
|
return /* @__PURE__ */ w.jsx("a", { className: gx(void 0, Lx(e.children)), href: t, target: r ? "_blank" : void 0, rel: r ? "noreferrer" : void 0, children: /* @__PURE__ */ w.jsx(Zt, { nodes: e.children }) });
|
|
19757
|
-
},
|
|
19784
|
+
}, MO = ({ node: e }) => e.children.length === 1 && e.children[0].type === "paragraph" ? /* @__PURE__ */ w.jsx("li", { children: /* @__PURE__ */ w.jsx(Zt, { nodes: e.children[0].children }) }) : /* @__PURE__ */ w.jsx("li", { children: /* @__PURE__ */ w.jsx(Zt, { nodes: e.children }) }), $O = ({ node: e }) => {
|
|
19758
19785
|
const t = e.ordered ? "ol" : "ul";
|
|
19759
19786
|
return /* @__PURE__ */ w.jsx(t, { children: /* @__PURE__ */ w.jsx(Zt, { nodes: e.children }) });
|
|
19760
|
-
},
|
|
19787
|
+
}, OO = ({ node: e }) => /* @__PURE__ */ w.jsx("mark", { children: /* @__PURE__ */ w.jsx(Zt, { nodes: e.children }) }), IO = ({ node: e }) => /* @__PURE__ */ w.jsx("p", { children: /* @__PURE__ */ w.jsx(Zt, { nodes: e.children }) }), RO = ({ node: e }) => /* @__PURE__ */ w.jsx("strong", { children: /* @__PURE__ */ w.jsx(Zt, { nodes: e.children }) }), PO = ({ node: e }) => /* @__PURE__ */ w.jsx("sub", { children: /* @__PURE__ */ w.jsx(Zt, { nodes: e.children }) }), DO = ({ node: e }) => /* @__PURE__ */ w.jsx("sup", { children: /* @__PURE__ */ w.jsx(Zt, { nodes: e.children }) }), ou = (e) => {
|
|
19761
19788
|
const t = e.data?.hProperties;
|
|
19762
19789
|
return {
|
|
19763
19790
|
merged: t?.merged ?? !1,
|
|
@@ -19765,7 +19792,7 @@ const pO = ({ node: e }) => /* @__PURE__ */ w.jsx("del", { children: /* @__PURE_
|
|
|
19765
19792
|
rowSpan: t?.rowSpan,
|
|
19766
19793
|
textAlign: t?.textAlign
|
|
19767
19794
|
};
|
|
19768
|
-
},
|
|
19795
|
+
}, NO = ({ node: e }) => {
|
|
19769
19796
|
const [t, ...r] = e.children;
|
|
19770
19797
|
return /* @__PURE__ */ w.jsx("div", { className: "overflow-x-auto", children: /* @__PURE__ */ w.jsxs("table", { className: "w-full border-collapse border-none", children: [
|
|
19771
19798
|
/* @__PURE__ */ w.jsx("thead", { className: "bg-gray-100 dark:bg-gray-800", children: /* @__PURE__ */ w.jsx("tr", { children: t.children.map((i, o) => {
|
|
@@ -19797,13 +19824,13 @@ const pO = ({ node: e }) => /* @__PURE__ */ w.jsx("del", { children: /* @__PURE_
|
|
|
19797
19824
|
);
|
|
19798
19825
|
}) }, `mdast-table-node-${e.type}-${o}`)) })
|
|
19799
19826
|
] }) });
|
|
19800
|
-
},
|
|
19827
|
+
}, zO = ({ node: e }) => /* @__PURE__ */ w.jsx(w.Fragment, { children: e.value }), qO = () => /* @__PURE__ */ w.jsx("hr", { className: "border-gray-300 dark:border-gray-600" }), jO = ({ node: e }) => {
|
|
19801
19828
|
const t = e.data?.title || "";
|
|
19802
19829
|
return /* @__PURE__ */ w.jsxs("details", { className: "markdown-details", children: [
|
|
19803
19830
|
/* @__PURE__ */ w.jsx("summary", { children: t }),
|
|
19804
19831
|
/* @__PURE__ */ w.jsx("div", { className: "markdown-details-content", children: /* @__PURE__ */ w.jsx(Zt, { nodes: e.children }) })
|
|
19805
19832
|
] });
|
|
19806
|
-
},
|
|
19833
|
+
}, WO = ({ node: e }) => {
|
|
19807
19834
|
const r = ["message", e.data?.messageType || "message"].filter(Boolean).join(" ");
|
|
19808
19835
|
return /* @__PURE__ */ w.jsxs("aside", { className: r, children: [
|
|
19809
19836
|
/* @__PURE__ */ w.jsx("span", { className: "message-symbol", style: { userSelect: "none" }, children: "!" }),
|
|
@@ -19812,63 +19839,63 @@ const pO = ({ node: e }) => /* @__PURE__ */ w.jsx("del", { children: /* @__PURE_
|
|
|
19812
19839
|
}, Zt = ({ nodes: e, theme: t = "light", iFrameAllowedDomains: r = [] }) => e.map((i, o) => {
|
|
19813
19840
|
switch (i.type) {
|
|
19814
19841
|
case "blockquote":
|
|
19815
|
-
return /* @__PURE__ */ w.jsx(
|
|
19842
|
+
return /* @__PURE__ */ w.jsx(HO, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19816
19843
|
case "break":
|
|
19817
19844
|
return /* @__PURE__ */ w.jsx("br", {}, `mdast-node-${i.type}-${o}`);
|
|
19818
19845
|
case "code":
|
|
19819
19846
|
return /* @__PURE__ */ w.jsx(dx, { node: i, theme: t }, `mdast-node-${i.type}-${o}`);
|
|
19820
19847
|
case "delete":
|
|
19821
|
-
return /* @__PURE__ */ w.jsx(
|
|
19848
|
+
return /* @__PURE__ */ w.jsx(mO, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19822
19849
|
case "details":
|
|
19823
|
-
return /* @__PURE__ */ w.jsx(
|
|
19850
|
+
return /* @__PURE__ */ w.jsx(jO, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19824
19851
|
case "emphasis":
|
|
19825
|
-
return /* @__PURE__ */ w.jsx(
|
|
19852
|
+
return /* @__PURE__ */ w.jsx(yO, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19826
19853
|
case "footnoteReference":
|
|
19827
|
-
return /* @__PURE__ */ w.jsx(
|
|
19854
|
+
return /* @__PURE__ */ w.jsx(xO, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19828
19855
|
case "footnoteDefinition":
|
|
19829
19856
|
return null;
|
|
19830
19857
|
case "footnote-back-link":
|
|
19831
|
-
return /* @__PURE__ */ w.jsx(
|
|
19858
|
+
return /* @__PURE__ */ w.jsx(CO, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19832
19859
|
case "heading":
|
|
19833
|
-
return /* @__PURE__ */ w.jsx(
|
|
19860
|
+
return /* @__PURE__ */ w.jsx(wO, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19834
19861
|
case "html":
|
|
19835
|
-
return /* @__PURE__ */ w.jsx(
|
|
19862
|
+
return /* @__PURE__ */ w.jsx(_O, { node: i, iFrameAllowedDomains: r }, `mdast-node-${i.type}-${o}`);
|
|
19836
19863
|
case "html-block-container": {
|
|
19837
19864
|
const s = i, a = `mdast-node-${s.type}-${s.position?.start?.offset ?? "na"}-${s.position?.end?.offset ?? "na"}`;
|
|
19838
|
-
return /* @__PURE__ */ w.jsx(
|
|
19865
|
+
return /* @__PURE__ */ w.jsx(vO, { node: s, theme: t, iFrameAllowedDomains: r }, a);
|
|
19839
19866
|
}
|
|
19840
19867
|
case "image":
|
|
19841
|
-
return /* @__PURE__ */ w.jsx(
|
|
19868
|
+
return /* @__PURE__ */ w.jsx(BO, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19842
19869
|
case "inlineCode":
|
|
19843
|
-
return /* @__PURE__ */ w.jsx(
|
|
19870
|
+
return /* @__PURE__ */ w.jsx(LO, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19844
19871
|
case "inlineMath":
|
|
19845
|
-
return /* @__PURE__ */ w.jsx(BO, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19846
|
-
case "link":
|
|
19847
19872
|
return /* @__PURE__ */ w.jsx(EO, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19873
|
+
case "link":
|
|
19874
|
+
return /* @__PURE__ */ w.jsx(AO, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19848
19875
|
case "listItem":
|
|
19849
|
-
return /* @__PURE__ */ w.jsx(
|
|
19876
|
+
return /* @__PURE__ */ w.jsx(MO, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19850
19877
|
case "list":
|
|
19851
|
-
return /* @__PURE__ */ w.jsx(
|
|
19878
|
+
return /* @__PURE__ */ w.jsx($O, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19852
19879
|
case "mark":
|
|
19853
|
-
return /* @__PURE__ */ w.jsx(
|
|
19880
|
+
return /* @__PURE__ */ w.jsx(OO, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19854
19881
|
case "math":
|
|
19855
|
-
return /* @__PURE__ */ w.jsx(
|
|
19882
|
+
return /* @__PURE__ */ w.jsx(D3, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19856
19883
|
case "message":
|
|
19857
|
-
return /* @__PURE__ */ w.jsx(
|
|
19884
|
+
return /* @__PURE__ */ w.jsx(WO, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19858
19885
|
case "paragraph":
|
|
19859
|
-
return /* @__PURE__ */ w.jsx(
|
|
19886
|
+
return /* @__PURE__ */ w.jsx(IO, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19860
19887
|
case "strong":
|
|
19861
|
-
return /* @__PURE__ */ w.jsx(
|
|
19888
|
+
return /* @__PURE__ */ w.jsx(RO, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19862
19889
|
case "subscript":
|
|
19863
|
-
return /* @__PURE__ */ w.jsx(
|
|
19890
|
+
return /* @__PURE__ */ w.jsx(PO, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19864
19891
|
case "superscript":
|
|
19865
|
-
return /* @__PURE__ */ w.jsx(
|
|
19892
|
+
return /* @__PURE__ */ w.jsx(DO, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19866
19893
|
case "table":
|
|
19867
|
-
return /* @__PURE__ */ w.jsx(
|
|
19894
|
+
return /* @__PURE__ */ w.jsx(NO, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19868
19895
|
case "text":
|
|
19869
|
-
return /* @__PURE__ */ w.jsx(
|
|
19896
|
+
return /* @__PURE__ */ w.jsx(zO, { node: i }, `mdast-node-${i.type}-${o}`);
|
|
19870
19897
|
case "thematicBreak":
|
|
19871
|
-
return /* @__PURE__ */ w.jsx(
|
|
19898
|
+
return /* @__PURE__ */ w.jsx(qO, {}, `mdast-node-${i.type}-${o}`);
|
|
19872
19899
|
case "yaml":
|
|
19873
19900
|
return null;
|
|
19874
19901
|
default: {
|
|
@@ -19883,14 +19910,14 @@ const pO = ({ node: e }) => /* @__PURE__ */ w.jsx("del", { children: /* @__PURE_
|
|
|
19883
19910
|
throw new Error(`Unknown node type: ${i.type}`);
|
|
19884
19911
|
}
|
|
19885
19912
|
}
|
|
19886
|
-
}),
|
|
19913
|
+
}), HO = ({ node: e }) => /* @__PURE__ */ w.jsx("blockquote", { className: "my-4 border-gray-300 border-l-4 bg-gray-50 p-4 italic dark:border-gray-500 dark:bg-gray-800 dark:text-gray-300", children: /* @__PURE__ */ w.jsx(Zt, { nodes: e.children }) }), YO = /\s*\{#(.+?)\}\s*$/, jI = () => (e) => {
|
|
19887
19914
|
Se(e, "heading", (t) => {
|
|
19888
19915
|
if (t.children.length === 0)
|
|
19889
19916
|
return;
|
|
19890
19917
|
const r = t.children[t.children.length - 1];
|
|
19891
19918
|
if (r?.type !== "text")
|
|
19892
19919
|
return;
|
|
19893
|
-
const i = r, o = i.value.match(
|
|
19920
|
+
const i = r, o = i.value.match(YO);
|
|
19894
19921
|
if (o) {
|
|
19895
19922
|
const s = o[1];
|
|
19896
19923
|
t.data || (t.data = {});
|
|
@@ -19898,7 +19925,7 @@ const pO = ({ node: e }) => /* @__PURE__ */ w.jsx("del", { children: /* @__PURE_
|
|
|
19898
19925
|
n.id = s, a.hProperties = n, i.value = i.value.substring(0, o.index).trimEnd(), i.value === "" && t.children.pop();
|
|
19899
19926
|
}
|
|
19900
19927
|
});
|
|
19901
|
-
},
|
|
19928
|
+
}, WI = () => (e) => {
|
|
19902
19929
|
Se(e, "footnoteDefinition", (t) => {
|
|
19903
19930
|
Se(t, "paragraph", (r) => {
|
|
19904
19931
|
r.children.push({
|
|
@@ -19907,7 +19934,7 @@ const pO = ({ node: e }) => /* @__PURE__ */ w.jsx("del", { children: /* @__PURE_
|
|
|
19907
19934
|
});
|
|
19908
19935
|
});
|
|
19909
19936
|
});
|
|
19910
|
-
},
|
|
19937
|
+
}, HI = () => (e) => {
|
|
19911
19938
|
Se(e, "html", (t, r, i) => {
|
|
19912
19939
|
if (typeof r != "number" || !i)
|
|
19913
19940
|
return;
|
|
@@ -19921,7 +19948,7 @@ const pO = ({ node: e }) => /* @__PURE__ */ w.jsx("del", { children: /* @__PURE_
|
|
|
19921
19948
|
i.children.splice(r, 1, l);
|
|
19922
19949
|
}
|
|
19923
19950
|
});
|
|
19924
|
-
},
|
|
19951
|
+
}, YI = () => (e) => {
|
|
19925
19952
|
const t = (r) => {
|
|
19926
19953
|
const i = r.children;
|
|
19927
19954
|
if (!i)
|
|
@@ -19964,7 +19991,7 @@ const pO = ({ node: e }) => /* @__PURE__ */ w.jsx("del", { children: /* @__PURE_
|
|
|
19964
19991
|
}
|
|
19965
19992
|
};
|
|
19966
19993
|
Se(e, "paragraph", t), Se(e, "tableCell", t), Se(e, "heading", t), Se(e, "emphasis", t), Se(e, "strong", t), Se(e, "delete", t);
|
|
19967
|
-
}, su = /\s*=\s*(\d+)(w|h|x|y)\s*/g,
|
|
19994
|
+
}, su = /\s*=\s*(\d+)(w|h|x|y)\s*/g, UI = () => (e) => {
|
|
19968
19995
|
Se(e, "image", (t) => {
|
|
19969
19996
|
const r = (l) => {
|
|
19970
19997
|
if (!l)
|
|
@@ -19984,7 +20011,7 @@ const pO = ({ node: e }) => /* @__PURE__ */ w.jsx("del", { children: /* @__PURE_
|
|
|
19984
20011
|
}
|
|
19985
20012
|
}
|
|
19986
20013
|
});
|
|
19987
|
-
},
|
|
20014
|
+
}, XI = () => (e) => {
|
|
19988
20015
|
Se(e, (t, r, i) => {
|
|
19989
20016
|
i && Object.defineProperty(t, "parent", {
|
|
19990
20017
|
value: i,
|
|
@@ -19994,7 +20021,7 @@ const pO = ({ node: e }) => /* @__PURE__ */ w.jsx("del", { children: /* @__PURE_
|
|
|
19994
20021
|
// JSON.stringify でシリアライズされないようにする
|
|
19995
20022
|
});
|
|
19996
20023
|
});
|
|
19997
|
-
}, au = /^:::(message|details)\s*(.*)/,
|
|
20024
|
+
}, au = /^:::(message|details)\s*(.*)/, GI = () => (e) => {
|
|
19998
20025
|
function t(r) {
|
|
19999
20026
|
const i = [];
|
|
20000
20027
|
let o = 0;
|
|
@@ -20064,7 +20091,7 @@ const pO = ({ node: e }) => /* @__PURE__ */ w.jsx("del", { children: /* @__PURE_
|
|
|
20064
20091
|
return i;
|
|
20065
20092
|
}
|
|
20066
20093
|
e.children = t(e.children);
|
|
20067
|
-
},
|
|
20094
|
+
}, VI = (e) => {
|
|
20068
20095
|
const t = [];
|
|
20069
20096
|
return Se(e, "heading", (r) => {
|
|
20070
20097
|
const i = Bx(r.children), o = r.data?.hProperties?.id;
|
|
@@ -20077,42 +20104,42 @@ const pO = ({ node: e }) => /* @__PURE__ */ w.jsx("del", { children: /* @__PURE_
|
|
|
20077
20104
|
};
|
|
20078
20105
|
export {
|
|
20079
20106
|
cT as $,
|
|
20080
|
-
|
|
20081
|
-
|
|
20107
|
+
pO as A,
|
|
20108
|
+
HO as B,
|
|
20082
20109
|
dx as C,
|
|
20083
|
-
|
|
20084
|
-
|
|
20085
|
-
|
|
20110
|
+
lI as D,
|
|
20111
|
+
yO as E,
|
|
20112
|
+
CO as F,
|
|
20086
20113
|
fk as G,
|
|
20087
|
-
|
|
20088
|
-
|
|
20114
|
+
wO as H,
|
|
20115
|
+
BO as I,
|
|
20089
20116
|
pk as J,
|
|
20090
20117
|
uk as K,
|
|
20091
|
-
|
|
20092
|
-
|
|
20118
|
+
AO as L,
|
|
20119
|
+
T$ as M,
|
|
20093
20120
|
Zt as N,
|
|
20094
20121
|
dk as O,
|
|
20095
|
-
|
|
20122
|
+
IO as P,
|
|
20096
20123
|
Tt as Q,
|
|
20097
20124
|
Ct as R,
|
|
20098
20125
|
cx as S,
|
|
20099
|
-
|
|
20126
|
+
NO as T,
|
|
20100
20127
|
G as U,
|
|
20101
20128
|
Gu as V,
|
|
20102
20129
|
Vt as W,
|
|
20103
20130
|
gr as X,
|
|
20104
20131
|
qe as Y,
|
|
20105
|
-
|
|
20132
|
+
jO as Z,
|
|
20106
20133
|
g as _,
|
|
20107
|
-
|
|
20134
|
+
NI as a,
|
|
20108
20135
|
yh as a$,
|
|
20109
20136
|
QT as a0,
|
|
20110
20137
|
Vo as a1,
|
|
20111
20138
|
qg as a2,
|
|
20112
|
-
|
|
20113
|
-
|
|
20114
|
-
|
|
20115
|
-
|
|
20139
|
+
hI as a3,
|
|
20140
|
+
dI as a4,
|
|
20141
|
+
RI as a5,
|
|
20142
|
+
II as a6,
|
|
20116
20143
|
Pe as a7,
|
|
20117
20144
|
gk as a8,
|
|
20118
20145
|
mk as a9,
|
|
@@ -20124,21 +20151,21 @@ export {
|
|
|
20124
20151
|
DS as aF,
|
|
20125
20152
|
Mc as aG,
|
|
20126
20153
|
Ac as aH,
|
|
20127
|
-
|
|
20128
|
-
|
|
20129
|
-
|
|
20130
|
-
|
|
20131
|
-
|
|
20154
|
+
kI as aI,
|
|
20155
|
+
mI as aJ,
|
|
20156
|
+
CI as aK,
|
|
20157
|
+
xI as aL,
|
|
20158
|
+
pI as aM,
|
|
20132
20159
|
Zl as aN,
|
|
20133
|
-
|
|
20134
|
-
|
|
20160
|
+
bI as aO,
|
|
20161
|
+
gI as aP,
|
|
20135
20162
|
ui as aQ,
|
|
20136
|
-
|
|
20137
|
-
|
|
20138
|
-
|
|
20163
|
+
SI as aR,
|
|
20164
|
+
wI as aS,
|
|
20165
|
+
yI as aT,
|
|
20139
20166
|
IB as aU,
|
|
20140
20167
|
Hy as aV,
|
|
20141
|
-
|
|
20168
|
+
$I as aW,
|
|
20142
20169
|
pt as aX,
|
|
20143
20170
|
er as aY,
|
|
20144
20171
|
ts as aZ,
|
|
@@ -20146,12 +20173,12 @@ export {
|
|
|
20146
20173
|
oT as aa,
|
|
20147
20174
|
iT as ab,
|
|
20148
20175
|
eL as ac,
|
|
20149
|
-
|
|
20176
|
+
vI as ad,
|
|
20150
20177
|
ck as ae,
|
|
20151
|
-
|
|
20178
|
+
uI as af,
|
|
20152
20179
|
Tr as ag,
|
|
20153
20180
|
r1 as ah,
|
|
20154
|
-
|
|
20181
|
+
Pt as ai,
|
|
20155
20182
|
xk as aj,
|
|
20156
20183
|
Ch as ak,
|
|
20157
20184
|
Ou as al,
|
|
@@ -20159,7 +20186,7 @@ export {
|
|
|
20159
20186
|
ZS as an,
|
|
20160
20187
|
C1 as ao,
|
|
20161
20188
|
$o as ap,
|
|
20162
|
-
|
|
20189
|
+
cI as aq,
|
|
20163
20190
|
Fa as ar,
|
|
20164
20191
|
zT as as,
|
|
20165
20192
|
Q1 as at,
|
|
@@ -20169,15 +20196,15 @@ export {
|
|
|
20169
20196
|
Un as ax,
|
|
20170
20197
|
GT as ay,
|
|
20171
20198
|
Go as az,
|
|
20172
|
-
|
|
20199
|
+
PI as b,
|
|
20173
20200
|
ff as b$,
|
|
20174
20201
|
it as b0,
|
|
20175
20202
|
NL as b1,
|
|
20176
|
-
|
|
20177
|
-
|
|
20178
|
-
|
|
20203
|
+
MI as b2,
|
|
20204
|
+
OI as b3,
|
|
20205
|
+
FI as b4,
|
|
20179
20206
|
at as b5,
|
|
20180
|
-
|
|
20207
|
+
AI as b6,
|
|
20181
20208
|
bh as b7,
|
|
20182
20209
|
pL as b8,
|
|
20183
20210
|
lL as b9,
|
|
@@ -20235,29 +20262,29 @@ export {
|
|
|
20235
20262
|
pT as by,
|
|
20236
20263
|
Ag as bz,
|
|
20237
20264
|
RM as c,
|
|
20238
|
-
|
|
20265
|
+
fI as c0,
|
|
20239
20266
|
a1 as c1,
|
|
20240
|
-
|
|
20241
|
-
|
|
20242
|
-
|
|
20243
|
-
|
|
20267
|
+
DI as d,
|
|
20268
|
+
mO as e,
|
|
20269
|
+
xO as f,
|
|
20270
|
+
qI as g,
|
|
20244
20271
|
FC as h,
|
|
20245
|
-
|
|
20246
|
-
|
|
20247
|
-
|
|
20248
|
-
|
|
20272
|
+
LO as i,
|
|
20273
|
+
MO as j,
|
|
20274
|
+
$O as k,
|
|
20275
|
+
zI as l,
|
|
20249
20276
|
ix as m,
|
|
20250
|
-
|
|
20251
|
-
|
|
20252
|
-
|
|
20253
|
-
|
|
20254
|
-
|
|
20255
|
-
|
|
20256
|
-
|
|
20257
|
-
|
|
20258
|
-
|
|
20259
|
-
|
|
20260
|
-
|
|
20261
|
-
|
|
20262
|
-
|
|
20277
|
+
RO as n,
|
|
20278
|
+
H$ as o,
|
|
20279
|
+
zO as p,
|
|
20280
|
+
qO as q,
|
|
20281
|
+
WO as r,
|
|
20282
|
+
VI as s,
|
|
20283
|
+
jI as t,
|
|
20284
|
+
WI as u,
|
|
20285
|
+
HI as v,
|
|
20286
|
+
YI as w,
|
|
20287
|
+
UI as x,
|
|
20288
|
+
XI as y,
|
|
20289
|
+
GI as z
|
|
20263
20290
|
};
|