@antdv-next/x 1.0.2-beta.2 → 1.0.2-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/Actions.js +1 -1
- package/dist/attachments/index.js +1 -1
- package/dist/conversations/index.js +1 -1
- package/dist/file-card/FileCard.js +1 -1
- package/dist/file-card/List.js +1 -1
- package/dist/index.umd.js +25 -25
- package/dist/locale/useLocale.js +1 -1
- package/dist/mermaid/Mermaid.js +1 -1
- package/dist/package.js +1 -1
- package/dist/prompts/Prompts.js +1 -1
- package/dist/sender/Sender.js +1 -1
- package/dist/sender/SenderHeader.js +1 -1
- package/dist/sender/SenderSwitch.js +1 -1
- package/dist/sources/Sources.js +1 -1
- package/dist/suggestion/Suggestion.js +1 -1
- package/dist/theme/genStyleUtils.js +1 -1
- package/dist/think/Think.js +1 -1
- package/dist/thought-chain/Item.js +1 -1
- package/dist/thought-chain/Node.js +1 -1
- package/dist/thought-chain/ThoughtChain.js +1 -1
- package/dist/welcome/index.js +1 -1
- package/dist/x-provider/hooks/use-x-provider-context.js +1 -1
- package/es/{Serializer-y_SfSPKv.js → Serializer-D1JYN1kI.js} +4 -4
- package/es/{_basePickBy-DPqob0cQ.js → _basePickBy-DFHEGO2M.js} +23 -23
- package/es/{_baseUniq-AMhRdOMz.js → _baseUniq-BlS7rXTs.js} +83 -83
- package/es/antdv-next-x.esm.js +44833 -7290
- package/es/{arc-caEkbRYF.js → arc-BuXEd18J.js} +3 -3
- package/es/architecture-PBZL5I3N-D7tS55xM.js +3 -0
- package/es/{architectureDiagram-2XIMDMQ5-ZOgJV9Kg.js → architectureDiagram-2XIMDMQ5-CmfsCwJk.js} +85 -85
- package/es/{blockDiagram-WCTKOSBZ-8iZwAKBK.js → blockDiagram-WCTKOSBZ-lJAan65A.js} +530 -530
- package/es/{c4Diagram-IC4MRINW-DrH9eRMR.js → c4Diagram-IC4MRINW-B1c2x_1Q.js} +170 -170
- package/es/channel-DFgF_2F7.js +5 -0
- package/es/{chunk-4BX2VUAB-DUVpjbJi.js → chunk-4BX2VUAB-J2N81Fpp.js} +2 -2
- package/es/{chunk-55IACEB6-RlJ-J3tE.js → chunk-55IACEB6-DGtfGRgi.js} +2 -2
- package/es/{chunk-7E7YKBS2-ChLFamzc.js → chunk-7E7YKBS2-CL2d4WAf.js} +2 -2
- package/es/{chunk-7R4GIKGN-B9vamSzt.js → chunk-7R4GIKGN-QT6IorJ_.js} +3 -3
- package/es/{chunk-C72U2L5F-BV-rXau1.js → chunk-C72U2L5F-OHTVpS-m.js} +2 -2
- package/es/{chunk-EGIJ26TM-GvsuORRL.js → chunk-EGIJ26TM-DyMPGYrB.js} +2 -2
- package/es/{chunk-FMBD7UC4-D6ZlqqMC.js → chunk-FMBD7UC4-DCcRjunY.js} +2 -2
- package/es/{chunk-GEFDOKGD-DM6dsEsk.js → chunk-GEFDOKGD-BWpC-zoH.js} +278 -278
- package/es/chunk-GLR3WWYH-DiXcKb5Y.js +41 -0
- package/es/{chunk-HHEYEP7N-FVfYw94p.js → chunk-HHEYEP7N-Cxc7E4dX.js} +3 -3
- package/es/{chunk-JSJVCQXG-Wr9uPcCh.js → chunk-JSJVCQXG-D8_heHOp.js} +4 -4
- package/es/{chunk-KX2RTZJC-BGffjoxB.js → chunk-KX2RTZJC-D5cc4rj6.js} +3 -3
- package/es/{chunk-KYZI473N-Bit5smNE.js → chunk-KYZI473N-BHJ3T5Zv.js} +573 -573
- package/es/{chunk-L3YUKLVL-DBuHDpQ2.js → chunk-L3YUKLVL-7oGaUOdc.js} +2 -2
- package/es/{chunk-MX3YWQON-Cbj2WwUZ.js → chunk-MX3YWQON-BxE-Aq9c.js} +2 -2
- package/es/{chunk-NQ4KR5QH-FPQ-IHJN.js → chunk-NQ4KR5QH-EYQBXkqP.js} +120 -120
- package/es/{chunk-O4XLMI2P-BCDk0ZIW.js → chunk-O4XLMI2P-qjOoGpnx.js} +238 -238
- package/es/{chunk-OZEHJAEY-BZ24IOgQ.js → chunk-OZEHJAEY-D82nx27s.js} +2 -2
- package/es/{chunk-PQ6SQG4A-DpwBx6Hx.js → chunk-PQ6SQG4A-D3jtNCWN.js} +3 -3
- package/es/{chunk-PU5JKC2W-BNpJuXxn.js → chunk-PU5JKC2W-DdP8BS-S.js} +76 -76
- package/es/{chunk-QZHKN3VN-NEMwPryC.js → chunk-QZHKN3VN-CW3cFN-h.js} +2 -2
- package/es/{chunk-R5LLSJPH-g44vgerl.js → chunk-R5LLSJPH-CreI2kO9.js} +2 -2
- package/es/{chunk-WL4C6EOR-B6l-Yy2t.js → chunk-WL4C6EOR-BDbxJyGk.js} +120 -120
- package/es/{chunk-XIRO2GV7-CaFInIOW.js → chunk-XIRO2GV7-S5KkbVnN.js} +2 -2
- package/es/{chunk-XPW4576I-Cp1j6iTN.js → chunk-XPW4576I-B0KVSHwE.js} +2 -2
- package/es/{chunk-XZSTWKYB-CGk7ipHd.js → chunk-XZSTWKYB-CucN1XvM.js} +93 -93
- package/es/{chunk-YBOYWFTD-dOTBpTYs.js → chunk-YBOYWFTD-CvaddD9G.js} +8 -8
- package/es/classDiagram-VBA2DB6C-Co3LMmg8.js +29 -0
- package/es/classDiagram-v2-RAHNMMFH-BZscgdF2.js +29 -0
- package/es/clone-r3YukIBB.js +8 -0
- package/es/{cose-bilkent-S5V4N54A-DlmXyn6m.js → cose-bilkent-S5V4N54A-B5OQuIhl.js} +3 -3
- package/es/{cytoscape.esm-BY3wHcbp.js → cytoscape.esm-i2CZcWd-.js} +1 -1
- package/es/{dagre-B1qTL793.js → dagre-5aGJFKmT.js} +57 -57
- package/es/dagre-KLK3FWXG-BI5QQMXo.js +294 -0
- package/es/{defaultLocale-BaPFSbai.js → defaultLocale-bckJcYh1.js} +12 -12
- package/es/{diagram-E7M64L7V-Dnd8N74o.js → diagram-E7M64L7V-Dz62Vz_a.js} +83 -83
- package/es/{diagram-IFDJBPK2-Dan7RsGr.js → diagram-IFDJBPK2-9fjvFkSc.js} +31 -31
- package/es/{diagram-P4PSJMXO-DwKJpttH.js → diagram-P4PSJMXO-BlX6jFjZ.js} +32 -32
- package/es/{dist-DltyvPj3.js → dist-BX_roQzC.js} +1 -1
- package/es/{erDiagram-INFDFZHY-CGO6k23w.js → erDiagram-INFDFZHY-BcRXu8Cp.js} +128 -128
- package/es/{flowDiagram-PKNHOUZH-DFN1GsRx.js → flowDiagram-PKNHOUZH-UeyfgU8z.js} +156 -156
- package/es/{ganttDiagram-A5KZAMGK-Cf5NxH1w.js → ganttDiagram-A5KZAMGK-txCzqgQ5.js} +625 -622
- package/es/gitGraph-HDMCJU4V-CxsS0Qr1.js +3 -0
- package/es/{gitGraphDiagram-K3NZZRJ6-BgE6aSZO.js → gitGraphDiagram-K3NZZRJ6-DghWYaFU.js} +176 -176
- package/es/{graphlib-DFxSohCv.js → graphlib-dRkI1OCL.js} +4 -4
- package/es/{html-C2-_98S6.js → html-B6UxjOv0.js} +1 -1
- package/es/html-Hb1oe8XT.js +2 -0
- package/es/info-3K5VOQVL-COqdvM99.js +3 -0
- package/es/{infoDiagram-LFFYTUFH-WcApcdl5.js → infoDiagram-LFFYTUFH-CA-vlAvP.js} +5 -5
- package/es/{init-PAs0hR-b.js → init-B75p2clj.js} +1 -1
- package/es/{isArrayLikeObject-BEG9p74d.js → isArrayLikeObject-jl2bjkAJ.js} +80 -80
- package/es/{isEmpty-B1YrVV8B.js → isEmpty-CmA-HYrg.js} +3 -3
- package/es/{ishikawaDiagram-PHBUUO56-DwK7J31a.js → ishikawaDiagram-PHBUUO56-DjdpS9Lb.js} +67 -67
- package/es/{journeyDiagram-4ABVD52K-CWuA57by.js → journeyDiagram-4ABVD52K-CIJfC1fp.js} +6 -6
- package/es/{kanban-definition-K7BYSVSG-DBt3gYRQ.js → kanban-definition-K7BYSVSG-CC2vwGck.js} +11 -11
- package/es/{katex-OR8z_f6I.js → katex-DCMiIo1z.js} +1 -1
- package/es/{line-zOBKZCP5.js → line-Cu9NTacD.js} +4 -4
- package/es/{linear-DttXWw4q.js → linear-C0rAYYmp.js} +23 -23
- package/es/{math-DPzKeDKn.js → math-CoDOuve-.js} +1 -1
- package/es/{mermaid-parser.core-CWNEdmZ_.js → mermaid-parser.core-7Wn2L29P.js} +16 -16
- package/es/{mermaid.core-DPBXXViR.js → mermaid.core-Bvy_Q6Hu.js} +208 -208
- package/es/{mindmap-definition-YRQLILUH-Bq2xqboX.js → mindmap-definition-YRQLILUH-BzTYDYmK.js} +16 -16
- package/es/{ordinal-D8PKtxfM.js → ordinal-F3U6aXtP.js} +3 -3
- package/es/packet-RMMSAZCW-2PTjWKLd.js +3 -0
- package/es/{path-DZ-6AyWK.js → path-Dm3C8WEs.js} +3 -3
- package/es/pie-UPGHQEXC-Du8-k-EA.js +3 -0
- package/es/{pieDiagram-SKSYHLDU-D4iMzwzH.js → pieDiagram-SKSYHLDU-COvqE_C6.js} +32 -32
- package/es/{quadrantDiagram-337W2JSQ-DSbXC0z6.js → quadrantDiagram-337W2JSQ-Dgv8ccjt.js} +4 -4
- package/es/radar-KQ55EAFF-jJOhyjxC.js +3 -0
- package/es/{requirementDiagram-Z7DCOOCP-D7eLn3fs.js → requirementDiagram-Z7DCOOCP-B2NyhxO-.js} +59 -59
- package/es/{rough.esm-C_hJ3ICT.js → rough.esm-BhGP2Udb.js} +1 -1
- package/es/{sankeyDiagram-WA2Y5GQK-DN5ZPgWU.js → sankeyDiagram-WA2Y5GQK-BfnH_gpl.js} +18 -18
- package/es/{sequenceDiagram-2WXFIKYE-CRFEBP8-.js → sequenceDiagram-2WXFIKYE-DXssVQOF.js} +390 -390
- package/es/{src-BH16DVv0.js → src-CUQ6oOYk.js} +86 -86
- package/es/{stateDiagram-RAJIS63D-CfO23QJX.js → stateDiagram-RAJIS63D-DvDLfupV.js} +68 -68
- package/es/stateDiagram-v2-FVOUBMTO-DIXyaX9W.js +27 -0
- package/es/{timeline-definition-YZTLITO2-DmpPrD-3.js → timeline-definition-YZTLITO2-ErcRjbZf.js} +4 -4
- package/es/treemap-KZPCXAKY-CvZAIYVa.js +3 -0
- package/es/{vennDiagram-LZ73GAT5-B80Xr4jV.js → vennDiagram-LZ73GAT5-CDTZUtc8.js} +107 -107
- package/es/{vue-DTiWrQBM.js → vue-2aJw7p5p.js} +2 -2
- package/es/{vue-html-BG3Xflut.js → vue-html-DEjI8X9t.js} +1 -1
- package/es/{xychartDiagram-JWTSCODW-DvQyPDr4.js → xychartDiagram-JWTSCODW-Y21jBOTg.js} +103 -103
- package/package.json +1 -1
- package/es/architecture-PBZL5I3N-CBmkTWjb.js +0 -3
- package/es/channel-DIQFjdG3.js +0 -5
- package/es/chunk-GLR3WWYH-CqFdLic9.js +0 -41
- package/es/classDiagram-VBA2DB6C-B3yBiQy3.js +0 -29
- package/es/classDiagram-v2-RAHNMMFH-jbFYm_Xj.js +0 -29
- package/es/clone-DXVS0uSx.js +0 -8
- package/es/dagre-KLK3FWXG-CEhXRLVR.js +0 -294
- package/es/gitGraph-HDMCJU4V-CrEEHSZS.js +0 -3
- package/es/html-JbFqcNgP.js +0 -2
- package/es/info-3K5VOQVL-Dg3DCp4F.js +0 -3
- package/es/packet-RMMSAZCW-Dk7mKMJ4.js +0 -3
- package/es/pie-UPGHQEXC-CnM5YLNO.js +0 -3
- package/es/radar-KQ55EAFF-BwfADDx8.js +0 -3
- package/es/stateDiagram-v2-FVOUBMTO-BGWbXepL.js +0 -27
- package/es/treemap-KZPCXAKY-BWfn7JxQ.js +0 -3
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { B as a, C as o, U as s, V as c, W as l, Z as u, _ as d, a as f, b as p, nt as m, s as h, u as g, v as _ } from "./chunk-7R4GIKGN-
|
|
4
|
-
import { t as v } from "./channel-
|
|
5
|
-
import "./chunk-PU5JKC2W-
|
|
6
|
-
import { t as ee } from "./chunk-FMBD7UC4-
|
|
7
|
-
import "./chunk-MX3YWQON-
|
|
8
|
-
import "./chunk-YBOYWFTD-
|
|
9
|
-
import { t as te } from "./chunk-JSJVCQXG-
|
|
10
|
-
import { t as ne } from "./chunk-55IACEB6-
|
|
11
|
-
import { t as y } from "./chunk-KX2RTZJC-
|
|
12
|
-
import "./chunk-PQ6SQG4A-
|
|
13
|
-
import { o as b } from "./chunk-KYZI473N-
|
|
14
|
-
import "./chunk-O4XLMI2P-
|
|
15
|
-
import { r as x, t as S } from "./chunk-GLR3WWYH-
|
|
16
|
-
import { n as C, t as w } from "./chunk-XPW4576I-
|
|
17
|
-
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-PKNHOUZH.mjs
|
|
1
|
+
import { g as e, h as t, p as n } from "./src-CUQ6oOYk.js";
|
|
2
|
+
import { h as r, s as i } from "./chunk-GEFDOKGD-BWpC-zoH.js";
|
|
3
|
+
import { B as a, C as o, U as s, V as c, W as l, Z as u, _ as d, a as f, b as p, nt as m, s as h, u as g, v as _ } from "./chunk-7R4GIKGN-QT6IorJ_.js";
|
|
4
|
+
import { t as v } from "./channel-DFgF_2F7.js";
|
|
5
|
+
import "./chunk-PU5JKC2W-DdP8BS-S.js";
|
|
6
|
+
import { t as ee } from "./chunk-FMBD7UC4-DCcRjunY.js";
|
|
7
|
+
import "./chunk-MX3YWQON-BxE-Aq9c.js";
|
|
8
|
+
import "./chunk-YBOYWFTD-CvaddD9G.js";
|
|
9
|
+
import { t as te } from "./chunk-JSJVCQXG-D8_heHOp.js";
|
|
10
|
+
import { t as ne } from "./chunk-55IACEB6-DGtfGRgi.js";
|
|
11
|
+
import { t as y } from "./chunk-KX2RTZJC-D5cc4rj6.js";
|
|
12
|
+
import "./chunk-PQ6SQG4A-D3jtNCWN.js";
|
|
13
|
+
import { o as b } from "./chunk-KYZI473N-BHJ3T5Zv.js";
|
|
14
|
+
import "./chunk-O4XLMI2P-qjOoGpnx.js";
|
|
15
|
+
import { r as x, t as S } from "./chunk-GLR3WWYH-DiXcKb5Y.js";
|
|
16
|
+
import { n as C, t as w } from "./chunk-XPW4576I-B0KVSHwE.js";
|
|
17
|
+
//#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-PKNHOUZH.mjs
|
|
18
18
|
var T = "flowchart-", E = class {
|
|
19
19
|
constructor() {
|
|
20
20
|
this.vertexCounter = 0, this.config = p(), this.vertices = /* @__PURE__ */ new Map(), this.edges = [], this.classes = /* @__PURE__ */ new Map(), this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.tooltips = /* @__PURE__ */ new Map(), this.subCount = 0, this.firstGraphFlag = !0, this.secCount = -1, this.posCrossRef = [], this.funs = [], this.setAccTitle = c, this.setAccDescription = a, this.setDiagramTitle = l, this.getAccTitle = _, this.getAccDescription = d, this.getDiagramTitle = o, this.funs.push(this.setupToolTips.bind(this)), this.addVertex = this.addVertex.bind(this), this.firstGraph = this.firstGraph.bind(this), this.setDirection = this.setDirection.bind(this), this.addSubGraph = this.addSubGraph.bind(this), this.addLink = this.addLink.bind(this), this.setLink = this.setLink.bind(this), this.updateLink = this.updateLink.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.destructLink = this.destructLink.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setTooltip = this.setTooltip.bind(this), this.updateLinkInterpolate = this.updateLinkInterpolate.bind(this), this.setClickFun = this.setClickFun.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.lex = { firstGraph: this.firstGraph.bind(this) }, this.clear(), this.setGen("gen-2");
|
|
21
21
|
}
|
|
22
22
|
static {
|
|
23
|
-
|
|
23
|
+
t(this, "FlowDB");
|
|
24
24
|
}
|
|
25
25
|
sanitizeText(e) {
|
|
26
26
|
return h.sanitizeText(e, this.config);
|
|
@@ -70,10 +70,10 @@ var T = "flowchart-", E = class {
|
|
|
70
70
|
c?.label && (d.text = c?.label, d.labelType = this.sanitizeNodeLabelType(c?.labelType)), c?.icon && (d.icon = c?.icon, !c.label?.trim() && d.text === e && (d.text = "")), c?.form && (d.form = c?.form), c?.pos && (d.pos = c?.pos), c?.img && (d.img = c?.img, !c.label?.trim() && d.text === e && (d.text = "")), c?.constraint && (d.constraint = c.constraint), c.w && (d.assetWidth = Number(c.w)), c.h && (d.assetHeight = Number(c.h));
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
addSingleLink(
|
|
73
|
+
addSingleLink(t, n, r, a) {
|
|
74
74
|
let o = {
|
|
75
|
-
start:
|
|
76
|
-
end:
|
|
75
|
+
start: t,
|
|
76
|
+
end: n,
|
|
77
77
|
type: void 0,
|
|
78
78
|
text: "",
|
|
79
79
|
labelType: "text",
|
|
@@ -81,20 +81,20 @@ var T = "flowchart-", E = class {
|
|
|
81
81
|
isUserDefinedId: !1,
|
|
82
82
|
interpolate: this.edges.defaultInterpolate
|
|
83
83
|
};
|
|
84
|
-
|
|
85
|
-
let s =
|
|
86
|
-
if (s !== void 0 && (o.text = this.sanitizeText(s.text.trim()), o.text.startsWith("\"") && o.text.endsWith("\"") && (o.text = o.text.substring(1, o.text.length - 1)), o.labelType = this.sanitizeNodeLabelType(s.type)),
|
|
84
|
+
e.info("abc78 Got edge...", o);
|
|
85
|
+
let s = r.text;
|
|
86
|
+
if (s !== void 0 && (o.text = this.sanitizeText(s.text.trim()), o.text.startsWith("\"") && o.text.endsWith("\"") && (o.text = o.text.substring(1, o.text.length - 1)), o.labelType = this.sanitizeNodeLabelType(s.type)), r !== void 0 && (o.type = r.type, o.stroke = r.stroke, o.length = r.length > 10 ? 10 : r.length), a && !this.edges.some((e) => e.id === a)) o.id = a, o.isUserDefinedId = !0;
|
|
87
87
|
else {
|
|
88
88
|
let e = this.edges.filter((e) => e.start === o.start && e.end === o.end);
|
|
89
|
-
e.length === 0 ? o.id =
|
|
89
|
+
e.length === 0 ? o.id = i(o.start, o.end, {
|
|
90
90
|
counter: 0,
|
|
91
91
|
prefix: "L"
|
|
92
|
-
}) : o.id =
|
|
92
|
+
}) : o.id = i(o.start, o.end, {
|
|
93
93
|
counter: e.length + 1,
|
|
94
94
|
prefix: "L"
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
|
-
if (this.edges.length < (this.config.maxEdges ?? 500))
|
|
97
|
+
if (this.edges.length < (this.config.maxEdges ?? 500)) e.info("Pushing edge..."), this.edges.push(o);
|
|
98
98
|
else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
|
|
99
99
|
|
|
100
100
|
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
|
@@ -104,12 +104,12 @@ You have to call mermaid.initialize.`);
|
|
|
104
104
|
isLinkData(e) {
|
|
105
105
|
return typeof e == "object" && !!e && "id" in e && typeof e.id == "string";
|
|
106
106
|
}
|
|
107
|
-
addLink(
|
|
107
|
+
addLink(t, n, r) {
|
|
108
108
|
let i = this.isLinkData(r) ? r.id.replace("@", "") : void 0;
|
|
109
|
-
|
|
110
|
-
for (let
|
|
111
|
-
let o =
|
|
112
|
-
o && s ? this.addSingleLink(
|
|
109
|
+
e.info("addLink", t, n, i);
|
|
110
|
+
for (let e of t) for (let a of n) {
|
|
111
|
+
let o = e === t[t.length - 1], s = a === n[0];
|
|
112
|
+
o && s ? this.addSingleLink(e, a, r, i) : this.addSingleLink(e, a, r, void 0);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
updateLinkInterpolate(e, t) {
|
|
@@ -159,31 +159,31 @@ You have to call mermaid.initialize.`);
|
|
|
159
159
|
for (let n of e.split(",")) this.tooltips.set(this.version === "gen-1" ? this.lookUpDomId(n) : n, t);
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
setClickFun(t, n
|
|
163
|
-
let i = this.lookUpDomId(
|
|
164
|
-
if (p().securityLevel !== "loose" ||
|
|
162
|
+
setClickFun(e, t, n) {
|
|
163
|
+
let i = this.lookUpDomId(e);
|
|
164
|
+
if (p().securityLevel !== "loose" || t === void 0) return;
|
|
165
165
|
let a = [];
|
|
166
|
-
if (typeof
|
|
167
|
-
a =
|
|
166
|
+
if (typeof n == "string") {
|
|
167
|
+
a = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
|
|
168
168
|
for (let e = 0; e < a.length; e++) {
|
|
169
169
|
let t = a[e].trim();
|
|
170
170
|
t.startsWith("\"") && t.endsWith("\"") && (t = t.substr(1, t.length - 2)), a[e] = t;
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
a.length === 0 && a.push(
|
|
174
|
-
let o = this.vertices.get(
|
|
173
|
+
a.length === 0 && a.push(e);
|
|
174
|
+
let o = this.vertices.get(e);
|
|
175
175
|
o && (o.haveCallback = !0, this.funs.push(() => {
|
|
176
|
-
let
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
let e = document.querySelector(`[id="${i}"]`);
|
|
177
|
+
e !== null && e.addEventListener("click", () => {
|
|
178
|
+
r.runFunc(t, ...a);
|
|
179
179
|
}, !1);
|
|
180
180
|
}));
|
|
181
181
|
}
|
|
182
|
-
setLink(t, n
|
|
183
|
-
|
|
184
|
-
let i = this.vertices.get(
|
|
185
|
-
i !== void 0 && (i.link =
|
|
186
|
-
}), this.setClass(
|
|
182
|
+
setLink(e, t, n) {
|
|
183
|
+
e.split(",").forEach((e) => {
|
|
184
|
+
let i = this.vertices.get(e);
|
|
185
|
+
i !== void 0 && (i.link = r.formatUrl(t, this.config), i.linkTarget = n);
|
|
186
|
+
}), this.setClass(e, "clickable");
|
|
187
187
|
}
|
|
188
188
|
getTooltip(e) {
|
|
189
189
|
return this.tooltips.get(e);
|
|
@@ -212,13 +212,13 @@ You have to call mermaid.initialize.`);
|
|
|
212
212
|
}
|
|
213
213
|
setupToolTips(e) {
|
|
214
214
|
let t = te();
|
|
215
|
-
|
|
216
|
-
let
|
|
217
|
-
if (
|
|
215
|
+
n(e).select("svg").selectAll("g.node").on("mouseover", (e) => {
|
|
216
|
+
let r = n(e.currentTarget), i = r.attr("title");
|
|
217
|
+
if (i === null) return;
|
|
218
218
|
let a = e.currentTarget?.getBoundingClientRect();
|
|
219
|
-
t.transition().duration(200).style("opacity", ".9"), t.text(
|
|
219
|
+
t.transition().duration(200).style("opacity", ".9"), t.text(r.attr("title")).style("left", window.scrollX + a.left + (a.right - a.left) / 2 + "px").style("top", window.scrollY + a.bottom + "px"), t.html(u.sanitize(i)), r.classed("hover", !0);
|
|
220
220
|
}).on("mouseout", (e) => {
|
|
221
|
-
t.transition().duration(500).style("opacity", 0),
|
|
221
|
+
t.transition().duration(500).style("opacity", 0), n(e.currentTarget).classed("hover", !1);
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
224
|
clear(e = "gen-2") {
|
|
@@ -230,10 +230,10 @@ You have to call mermaid.initialize.`);
|
|
|
230
230
|
defaultStyle() {
|
|
231
231
|
return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
|
|
232
232
|
}
|
|
233
|
-
addSubGraph(
|
|
234
|
-
let a =
|
|
235
|
-
|
|
236
|
-
let s = (/* @__PURE__ */
|
|
233
|
+
addSubGraph(n, r, i) {
|
|
234
|
+
let a = n.text.trim(), o = i.text;
|
|
235
|
+
n === i && /\s/.exec(i.text) && (a = void 0);
|
|
236
|
+
let s = (/* @__PURE__ */ t((e) => {
|
|
237
237
|
let t = {
|
|
238
238
|
boolean: {},
|
|
239
239
|
number: {},
|
|
@@ -246,7 +246,7 @@ You have to call mermaid.initialize.`);
|
|
|
246
246
|
}),
|
|
247
247
|
dir: r
|
|
248
248
|
};
|
|
249
|
-
}, "uniq"))(
|
|
249
|
+
}, "uniq"))(r.flat()), c = s.nodeList, l = s.dir, u = p().flowchart ?? {};
|
|
250
250
|
if (l ??= u.inheritDir ? this.getDirection() ?? p().direction ?? void 0 : void 0, this.version === "gen-1") for (let e = 0; e < c.length; e++) c[e] = this.lookUpDomId(c[e]);
|
|
251
251
|
a ??= "subGraph" + this.subCount, o ||= "", o = this.sanitizeText(o), this.subCount += 1;
|
|
252
252
|
let d = {
|
|
@@ -257,7 +257,7 @@ You have to call mermaid.initialize.`);
|
|
|
257
257
|
dir: l,
|
|
258
258
|
labelType: this.sanitizeNodeLabelType(i?.type)
|
|
259
259
|
};
|
|
260
|
-
return
|
|
260
|
+
return e.info("Adding", d.id, d.nodes, d.dir), d.nodes = this.makeUniq(d, this.subGraphs).nodes, this.subGraphs.push(d), this.subGraphLookup.set(a, d), a;
|
|
261
261
|
}
|
|
262
262
|
getPosForId(e) {
|
|
263
263
|
for (let [t, n] of this.subGraphs.entries()) if (n.id === e) return t;
|
|
@@ -462,67 +462,67 @@ You have to call mermaid.initialize.`);
|
|
|
462
462
|
return t;
|
|
463
463
|
}
|
|
464
464
|
getData() {
|
|
465
|
-
let e = p(),
|
|
466
|
-
for (let e =
|
|
467
|
-
let t =
|
|
465
|
+
let e = p(), t = [], n = [], r = this.getSubGraphs(), a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
466
|
+
for (let e = r.length - 1; e >= 0; e--) {
|
|
467
|
+
let t = r[e];
|
|
468
468
|
t.nodes.length > 0 && o.set(t.id, !0);
|
|
469
469
|
for (let e of t.nodes) a.set(e, t.id);
|
|
470
470
|
}
|
|
471
|
-
for (let
|
|
472
|
-
let
|
|
473
|
-
|
|
474
|
-
id:
|
|
475
|
-
label:
|
|
471
|
+
for (let n = r.length - 1; n >= 0; n--) {
|
|
472
|
+
let i = r[n];
|
|
473
|
+
t.push({
|
|
474
|
+
id: i.id,
|
|
475
|
+
label: i.title,
|
|
476
476
|
labelStyle: "",
|
|
477
|
-
labelType:
|
|
478
|
-
parentId: a.get(
|
|
477
|
+
labelType: i.labelType,
|
|
478
|
+
parentId: a.get(i.id),
|
|
479
479
|
padding: 8,
|
|
480
|
-
cssCompiledStyles: this.getCompiledStyles(
|
|
481
|
-
cssClasses:
|
|
480
|
+
cssCompiledStyles: this.getCompiledStyles(i.classes),
|
|
481
|
+
cssClasses: i.classes.join(" "),
|
|
482
482
|
shape: "rect",
|
|
483
|
-
dir:
|
|
483
|
+
dir: i.dir,
|
|
484
484
|
isGroup: !0,
|
|
485
485
|
look: e.look
|
|
486
486
|
});
|
|
487
487
|
}
|
|
488
|
-
this.getVertices().forEach((
|
|
489
|
-
this.addNodeFromVertex(
|
|
488
|
+
this.getVertices().forEach((n) => {
|
|
489
|
+
this.addNodeFromVertex(n, t, a, o, e, e.look || "classic");
|
|
490
490
|
});
|
|
491
491
|
let s = this.getEdges();
|
|
492
|
-
return s.forEach((
|
|
493
|
-
let { arrowTypeStart: a, arrowTypeEnd: o } = this.destructEdgeType(
|
|
494
|
-
|
|
492
|
+
return s.forEach((t, r) => {
|
|
493
|
+
let { arrowTypeStart: a, arrowTypeEnd: o } = this.destructEdgeType(t.type), c = [...s.defaultStyle ?? []];
|
|
494
|
+
t.style && c.push(...t.style);
|
|
495
495
|
let l = {
|
|
496
|
-
id: t
|
|
497
|
-
counter:
|
|
496
|
+
id: i(t.start, t.end, {
|
|
497
|
+
counter: r,
|
|
498
498
|
prefix: "L"
|
|
499
|
-
},
|
|
500
|
-
isUserDefinedId:
|
|
501
|
-
start:
|
|
502
|
-
end:
|
|
503
|
-
type:
|
|
504
|
-
label:
|
|
505
|
-
labelType:
|
|
499
|
+
}, t.id),
|
|
500
|
+
isUserDefinedId: t.isUserDefinedId,
|
|
501
|
+
start: t.start,
|
|
502
|
+
end: t.end,
|
|
503
|
+
type: t.type ?? "normal",
|
|
504
|
+
label: t.text,
|
|
505
|
+
labelType: t.labelType,
|
|
506
506
|
labelpos: "c",
|
|
507
|
-
thickness:
|
|
508
|
-
minlen:
|
|
509
|
-
classes:
|
|
510
|
-
arrowTypeStart:
|
|
511
|
-
arrowTypeEnd:
|
|
507
|
+
thickness: t.stroke,
|
|
508
|
+
minlen: t.length,
|
|
509
|
+
classes: t?.stroke === "invisible" ? "" : "edge-thickness-normal edge-pattern-solid flowchart-link",
|
|
510
|
+
arrowTypeStart: t?.stroke === "invisible" || t?.type === "arrow_open" ? "none" : a,
|
|
511
|
+
arrowTypeEnd: t?.stroke === "invisible" || t?.type === "arrow_open" ? "none" : o,
|
|
512
512
|
arrowheadStyle: "fill: #333",
|
|
513
|
-
cssCompiledStyles: this.getCompiledStyles(
|
|
513
|
+
cssCompiledStyles: this.getCompiledStyles(t.classes),
|
|
514
514
|
labelStyle: c,
|
|
515
515
|
style: c,
|
|
516
|
-
pattern:
|
|
516
|
+
pattern: t.stroke,
|
|
517
517
|
look: e.look,
|
|
518
|
-
animate:
|
|
519
|
-
animation:
|
|
520
|
-
curve:
|
|
518
|
+
animate: t.animate,
|
|
519
|
+
animation: t.animation,
|
|
520
|
+
curve: t.interpolate || this.edges.defaultInterpolate || e.flowchart?.curve
|
|
521
521
|
};
|
|
522
|
-
|
|
522
|
+
n.push(l);
|
|
523
523
|
}), {
|
|
524
|
-
nodes:
|
|
525
|
-
edges:
|
|
524
|
+
nodes: t,
|
|
525
|
+
edges: n,
|
|
526
526
|
other: {},
|
|
527
527
|
config: e
|
|
528
528
|
};
|
|
@@ -531,32 +531,32 @@ You have to call mermaid.initialize.`);
|
|
|
531
531
|
return g.flowchart;
|
|
532
532
|
}
|
|
533
533
|
}, D = {
|
|
534
|
-
getClasses: /* @__PURE__ */
|
|
534
|
+
getClasses: /* @__PURE__ */ t(function(e, t) {
|
|
535
535
|
return t.db.getClasses();
|
|
536
536
|
}, "getClasses"),
|
|
537
|
-
draw: /* @__PURE__ */
|
|
538
|
-
|
|
537
|
+
draw: /* @__PURE__ */ t(async function(t, i, a, o) {
|
|
538
|
+
e.info("REF0:"), e.info("Drawing state diagram (v2)", i);
|
|
539
539
|
let { securityLevel: s, flowchart: c, layout: l } = p(), u;
|
|
540
|
-
s === "sandbox" && (u =
|
|
540
|
+
s === "sandbox" && (u = n("#i" + i));
|
|
541
541
|
let d = s === "sandbox" ? u.nodes()[0].contentDocument : document;
|
|
542
|
-
|
|
542
|
+
e.debug("Before getData: ");
|
|
543
543
|
let f = o.db.getData();
|
|
544
|
-
|
|
545
|
-
let m = ne(
|
|
546
|
-
f.type = o.type, f.layoutAlgorithm = S(l), f.layoutAlgorithm === "dagre" && l === "elk" &&
|
|
544
|
+
e.debug("Data: ", f);
|
|
545
|
+
let m = ne(i, s), h = o.db.getDirection();
|
|
546
|
+
f.type = o.type, f.layoutAlgorithm = S(l), f.layoutAlgorithm === "dagre" && l === "elk" && e.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."), f.direction = h, f.nodeSpacing = c?.nodeSpacing || 50, f.rankSpacing = c?.rankSpacing || 50, f.markers = [
|
|
547
547
|
"point",
|
|
548
548
|
"circle",
|
|
549
549
|
"cross"
|
|
550
|
-
], f.diagramId =
|
|
550
|
+
], f.diagramId = i, e.debug("REF1:", f), await x(f, m);
|
|
551
551
|
let g = f.config.flowchart?.diagramPadding ?? 8;
|
|
552
|
-
|
|
552
|
+
r.insertTitle(m, "flowchartTitleText", c?.titleTopMargin || 0, o.db.getDiagramTitle()), y(m, g, "flowchart", c?.useMaxWidth || !1);
|
|
553
553
|
for (let e of f.nodes) {
|
|
554
|
-
let t =
|
|
554
|
+
let t = n(`#${i} [id="${e.id}"]`);
|
|
555
555
|
if (!t || !e.link) continue;
|
|
556
|
-
let
|
|
557
|
-
|
|
556
|
+
let r = d.createElementNS("http://www.w3.org/2000/svg", "a");
|
|
557
|
+
r.setAttributeNS("http://www.w3.org/2000/svg", "class", e.cssClasses), r.setAttributeNS("http://www.w3.org/2000/svg", "rel", "noopener"), s === "sandbox" ? r.setAttributeNS("http://www.w3.org/2000/svg", "target", "_top") : e.linkTarget && r.setAttributeNS("http://www.w3.org/2000/svg", "target", e.linkTarget);
|
|
558
558
|
let a = t.insert(function() {
|
|
559
|
-
return
|
|
559
|
+
return r;
|
|
560
560
|
}, ":first-child"), o = t.select(".label-container");
|
|
561
561
|
o && a.append(function() {
|
|
562
562
|
return o.node();
|
|
@@ -568,10 +568,10 @@ You have to call mermaid.initialize.`);
|
|
|
568
568
|
}
|
|
569
569
|
}, "draw")
|
|
570
570
|
}, O = (function() {
|
|
571
|
-
var e = /* @__PURE__ */
|
|
571
|
+
var e = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
572
572
|
for (n ||= {}, r = e.length; r--; n[e[r]] = t);
|
|
573
573
|
return n;
|
|
574
|
-
}, "o"),
|
|
574
|
+
}, "o"), n = [1, 4], r = [1, 3], i = [1, 5], a = [
|
|
575
575
|
1,
|
|
576
576
|
8,
|
|
577
577
|
9,
|
|
@@ -853,7 +853,7 @@ You have to call mermaid.initialize.`);
|
|
|
853
853
|
111,
|
|
854
854
|
112
|
|
855
855
|
], rt = {
|
|
856
|
-
trace: /* @__PURE__ */
|
|
856
|
+
trace: /* @__PURE__ */ t(function() {}, "trace"),
|
|
857
857
|
yy: {},
|
|
858
858
|
symbols_: {
|
|
859
859
|
error: 2,
|
|
@@ -1261,7 +1261,7 @@ You have to call mermaid.initialize.`);
|
|
|
1261
1261
|
[33, 1],
|
|
1262
1262
|
[33, 1]
|
|
1263
1263
|
],
|
|
1264
|
-
performAction: /* @__PURE__ */
|
|
1264
|
+
performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
|
|
1265
1265
|
var s = a.length - 1;
|
|
1266
1266
|
switch (i) {
|
|
1267
1267
|
case 2:
|
|
@@ -1652,22 +1652,22 @@ You have to call mermaid.initialize.`);
|
|
|
1652
1652
|
{
|
|
1653
1653
|
3: 1,
|
|
1654
1654
|
4: 2,
|
|
1655
|
-
9:
|
|
1656
|
-
10:
|
|
1655
|
+
9: n,
|
|
1656
|
+
10: r,
|
|
1657
1657
|
12: i
|
|
1658
1658
|
},
|
|
1659
1659
|
{ 1: [3] },
|
|
1660
1660
|
e(a, o, { 5: 6 }),
|
|
1661
1661
|
{
|
|
1662
1662
|
4: 7,
|
|
1663
|
-
9:
|
|
1664
|
-
10:
|
|
1663
|
+
9: n,
|
|
1664
|
+
10: r,
|
|
1665
1665
|
12: i
|
|
1666
1666
|
},
|
|
1667
1667
|
{
|
|
1668
1668
|
4: 8,
|
|
1669
|
-
9:
|
|
1670
|
-
10:
|
|
1669
|
+
9: n,
|
|
1670
|
+
10: r,
|
|
1671
1671
|
12: i
|
|
1672
1672
|
},
|
|
1673
1673
|
{
|
|
@@ -3000,15 +3000,15 @@ You have to call mermaid.initialize.`);
|
|
|
3000
3000
|
e(I, [2, 125], { 106: tt })
|
|
3001
3001
|
],
|
|
3002
3002
|
defaultActions: {},
|
|
3003
|
-
parseError: /* @__PURE__ */
|
|
3003
|
+
parseError: /* @__PURE__ */ t(function(e, t) {
|
|
3004
3004
|
if (t.recoverable) this.trace(e);
|
|
3005
3005
|
else {
|
|
3006
3006
|
var n = Error(e);
|
|
3007
3007
|
throw n.hash = t, n;
|
|
3008
3008
|
}
|
|
3009
3009
|
}, "parseError"),
|
|
3010
|
-
parse: /* @__PURE__ */
|
|
3011
|
-
var
|
|
3010
|
+
parse: /* @__PURE__ */ t(function(e) {
|
|
3011
|
+
var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
|
|
3012
3012
|
for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
|
|
3013
3013
|
h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
|
|
3014
3014
|
var v = h.yylloc;
|
|
@@ -3016,16 +3016,16 @@ You have to call mermaid.initialize.`);
|
|
|
3016
3016
|
var ee = h.options && h.options.ranges;
|
|
3017
3017
|
typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
3018
3018
|
function te(e) {
|
|
3019
|
-
|
|
3019
|
+
r.length -= 2 * e, a.length -= e, o.length -= e;
|
|
3020
3020
|
}
|
|
3021
|
-
|
|
3021
|
+
t(te, "popStack");
|
|
3022
3022
|
function ne() {
|
|
3023
3023
|
var e = i.pop() || h.lex() || p;
|
|
3024
|
-
return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e =
|
|
3024
|
+
return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
|
|
3025
3025
|
}
|
|
3026
|
-
|
|
3026
|
+
t(ne, "lex");
|
|
3027
3027
|
for (var y, b, x, S, C, w = {}, T, E, D, O;;) {
|
|
3028
|
-
if (x =
|
|
3028
|
+
if (x = r[r.length - 1], this.defaultActions[x] ? S = this.defaultActions[x] : (y ??= ne(), S = s[x] && s[x][y]), S === void 0 || !S.length || !S[0]) {
|
|
3029
3029
|
var re = "";
|
|
3030
3030
|
for (T in O = [], s[x]) this.terminals_[T] && T > f && O.push("'" + this.terminals_[T] + "'");
|
|
3031
3031
|
re = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + O.join(", ") + ", got '" + (this.terminals_[y] || y) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (y == p ? "end of input" : "'" + (this.terminals_[y] || y) + "'"), this.parseError(re, {
|
|
@@ -3039,7 +3039,7 @@ You have to call mermaid.initialize.`);
|
|
|
3039
3039
|
if (S[0] instanceof Array && S.length > 1) throw Error("Parse Error: multiple actions possible at state: " + x + ", token: " + y);
|
|
3040
3040
|
switch (S[0]) {
|
|
3041
3041
|
case 1:
|
|
3042
|
-
|
|
3042
|
+
r.push(y), a.push(h.yytext), o.push(h.yylloc), r.push(S[1]), y = null, b ? (y = b, b = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
|
|
3043
3043
|
break;
|
|
3044
3044
|
case 2:
|
|
3045
3045
|
if (E = this.productions_[S[1]][1], w.$ = a[a.length - E], w._$ = {
|
|
@@ -3056,7 +3056,7 @@ You have to call mermaid.initialize.`);
|
|
|
3056
3056
|
a,
|
|
3057
3057
|
o
|
|
3058
3058
|
].concat(m)), C !== void 0) return C;
|
|
3059
|
-
E && (
|
|
3059
|
+
E && (r = r.slice(0, -1 * E * 2), a = a.slice(0, -1 * E), o = o.slice(0, -1 * E)), r.push(this.productions_[S[1]][0]), a.push(w.$), o.push(w._$), D = s[r[r.length - 2]][r[r.length - 1]], r.push(D);
|
|
3060
3060
|
break;
|
|
3061
3061
|
case 3: return !0;
|
|
3062
3062
|
}
|
|
@@ -3067,11 +3067,11 @@ You have to call mermaid.initialize.`);
|
|
|
3067
3067
|
rt.lexer = /* @__PURE__ */ (function() {
|
|
3068
3068
|
return {
|
|
3069
3069
|
EOF: 1,
|
|
3070
|
-
parseError: /* @__PURE__ */
|
|
3070
|
+
parseError: /* @__PURE__ */ t(function(e, t) {
|
|
3071
3071
|
if (this.yy.parser) this.yy.parser.parseError(e, t);
|
|
3072
3072
|
else throw Error(e);
|
|
3073
3073
|
}, "parseError"),
|
|
3074
|
-
setInput: /* @__PURE__ */
|
|
3074
|
+
setInput: /* @__PURE__ */ t(function(e, t) {
|
|
3075
3075
|
return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
3076
3076
|
first_line: 1,
|
|
3077
3077
|
first_column: 0,
|
|
@@ -3079,11 +3079,11 @@ You have to call mermaid.initialize.`);
|
|
|
3079
3079
|
last_column: 0
|
|
3080
3080
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
3081
3081
|
}, "setInput"),
|
|
3082
|
-
input: /* @__PURE__ */
|
|
3082
|
+
input: /* @__PURE__ */ t(function() {
|
|
3083
3083
|
var e = this._input[0];
|
|
3084
3084
|
return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
|
|
3085
3085
|
}, "input"),
|
|
3086
|
-
unput: /* @__PURE__ */
|
|
3086
|
+
unput: /* @__PURE__ */ t(function(e) {
|
|
3087
3087
|
var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
|
|
3088
3088
|
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
|
|
3089
3089
|
var r = this.match.split(/(?:\r\n?|\n)/g);
|
|
@@ -3096,10 +3096,10 @@ You have to call mermaid.initialize.`);
|
|
|
3096
3096
|
last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
|
|
3097
3097
|
}, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
|
|
3098
3098
|
}, "unput"),
|
|
3099
|
-
more: /* @__PURE__ */
|
|
3099
|
+
more: /* @__PURE__ */ t(function() {
|
|
3100
3100
|
return this._more = !0, this;
|
|
3101
3101
|
}, "more"),
|
|
3102
|
-
reject: /* @__PURE__ */
|
|
3102
|
+
reject: /* @__PURE__ */ t(function() {
|
|
3103
3103
|
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
3104
3104
|
else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
|
|
3105
3105
|
text: "",
|
|
@@ -3108,22 +3108,22 @@ You have to call mermaid.initialize.`);
|
|
|
3108
3108
|
});
|
|
3109
3109
|
return this;
|
|
3110
3110
|
}, "reject"),
|
|
3111
|
-
less: /* @__PURE__ */
|
|
3111
|
+
less: /* @__PURE__ */ t(function(e) {
|
|
3112
3112
|
this.unput(this.match.slice(e));
|
|
3113
3113
|
}, "less"),
|
|
3114
|
-
pastInput: /* @__PURE__ */
|
|
3114
|
+
pastInput: /* @__PURE__ */ t(function() {
|
|
3115
3115
|
var e = this.matched.substr(0, this.matched.length - this.match.length);
|
|
3116
3116
|
return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
|
|
3117
3117
|
}, "pastInput"),
|
|
3118
|
-
upcomingInput: /* @__PURE__ */
|
|
3118
|
+
upcomingInput: /* @__PURE__ */ t(function() {
|
|
3119
3119
|
var e = this.match;
|
|
3120
3120
|
return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
3121
3121
|
}, "upcomingInput"),
|
|
3122
|
-
showPosition: /* @__PURE__ */
|
|
3122
|
+
showPosition: /* @__PURE__ */ t(function() {
|
|
3123
3123
|
var e = this.pastInput(), t = Array(e.length + 1).join("-");
|
|
3124
3124
|
return e + this.upcomingInput() + "\n" + t + "^";
|
|
3125
3125
|
}, "showPosition"),
|
|
3126
|
-
test_match: /* @__PURE__ */
|
|
3126
|
+
test_match: /* @__PURE__ */ t(function(e, t) {
|
|
3127
3127
|
var n, r, i;
|
|
3128
3128
|
if (this.options.backtrack_lexer && (i = {
|
|
3129
3129
|
yylineno: this.yylineno,
|
|
@@ -3156,7 +3156,7 @@ You have to call mermaid.initialize.`);
|
|
|
3156
3156
|
}
|
|
3157
3157
|
return !1;
|
|
3158
3158
|
}, "test_match"),
|
|
3159
|
-
next: /* @__PURE__ */
|
|
3159
|
+
next: /* @__PURE__ */ t(function() {
|
|
3160
3160
|
if (this.done) return this.EOF;
|
|
3161
3161
|
this._input || (this.done = !0);
|
|
3162
3162
|
var e, t, n, r;
|
|
@@ -3176,29 +3176,29 @@ You have to call mermaid.initialize.`);
|
|
|
3176
3176
|
line: this.yylineno
|
|
3177
3177
|
});
|
|
3178
3178
|
}, "next"),
|
|
3179
|
-
lex: /* @__PURE__ */
|
|
3179
|
+
lex: /* @__PURE__ */ t(function() {
|
|
3180
3180
|
return this.next() || this.lex();
|
|
3181
3181
|
}, "lex"),
|
|
3182
|
-
begin: /* @__PURE__ */
|
|
3182
|
+
begin: /* @__PURE__ */ t(function(e) {
|
|
3183
3183
|
this.conditionStack.push(e);
|
|
3184
3184
|
}, "begin"),
|
|
3185
|
-
popState: /* @__PURE__ */
|
|
3185
|
+
popState: /* @__PURE__ */ t(function() {
|
|
3186
3186
|
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
3187
3187
|
}, "popState"),
|
|
3188
|
-
_currentRules: /* @__PURE__ */
|
|
3188
|
+
_currentRules: /* @__PURE__ */ t(function() {
|
|
3189
3189
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
3190
3190
|
}, "_currentRules"),
|
|
3191
|
-
topState: /* @__PURE__ */
|
|
3191
|
+
topState: /* @__PURE__ */ t(function(e) {
|
|
3192
3192
|
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
3193
3193
|
}, "topState"),
|
|
3194
|
-
pushState: /* @__PURE__ */
|
|
3194
|
+
pushState: /* @__PURE__ */ t(function(e) {
|
|
3195
3195
|
this.begin(e);
|
|
3196
3196
|
}, "pushState"),
|
|
3197
|
-
stateStackSize: /* @__PURE__ */
|
|
3197
|
+
stateStackSize: /* @__PURE__ */ t(function() {
|
|
3198
3198
|
return this.conditionStack.length;
|
|
3199
3199
|
}, "stateStackSize"),
|
|
3200
3200
|
options: {},
|
|
3201
|
-
performAction: /* @__PURE__ */
|
|
3201
|
+
performAction: /* @__PURE__ */ t(function(e, t, n, r) {
|
|
3202
3202
|
switch (n) {
|
|
3203
3203
|
case 0: return this.begin("acc_title"), 34;
|
|
3204
3204
|
case 1: return this.popState(), "acc_title_value";
|
|
@@ -3988,7 +3988,7 @@ You have to call mermaid.initialize.`);
|
|
|
3988
3988
|
function it() {
|
|
3989
3989
|
this.yy = {};
|
|
3990
3990
|
}
|
|
3991
|
-
return
|
|
3991
|
+
return t(it, "Parser"), it.prototype = rt, rt.Parser = it, new it();
|
|
3992
3992
|
})();
|
|
3993
3993
|
O.parser = O;
|
|
3994
3994
|
var re = O, ie = Object.assign({}, re);
|
|
@@ -3996,7 +3996,7 @@ ie.parse = (e) => {
|
|
|
3996
3996
|
let t = e.replace(/}\s*\n/g, "}\n");
|
|
3997
3997
|
return re.parse(t);
|
|
3998
3998
|
};
|
|
3999
|
-
var ae = ie, oe = /* @__PURE__ */
|
|
3999
|
+
var ae = ie, oe = /* @__PURE__ */ t((e, t) => {
|
|
4000
4000
|
let n = v;
|
|
4001
4001
|
return m(n(e, "r"), n(e, "g"), n(e, "b"), t);
|
|
4002
4002
|
}, "fade"), k = {
|
|
@@ -4005,7 +4005,7 @@ var ae = ie, oe = /* @__PURE__ */ r((e, t) => {
|
|
|
4005
4005
|
return new E();
|
|
4006
4006
|
},
|
|
4007
4007
|
renderer: D,
|
|
4008
|
-
styles: /* @__PURE__ */
|
|
4008
|
+
styles: /* @__PURE__ */ t((e) => `.label {
|
|
4009
4009
|
font-family: ${e.fontFamily};
|
|
4010
4010
|
color: ${e.nodeTextColor || e.textColor};
|
|
4011
4011
|
}
|
|
@@ -4153,7 +4153,7 @@ var ae = ie, oe = /* @__PURE__ */ r((e, t) => {
|
|
|
4153
4153
|
}
|
|
4154
4154
|
${ee()}
|
|
4155
4155
|
`, "getStyles"),
|
|
4156
|
-
init: /* @__PURE__ */
|
|
4156
|
+
init: /* @__PURE__ */ t((e) => {
|
|
4157
4157
|
e.flowchart ||= {}, e.layout && s({ layout: e.layout }), e.flowchart.arrowMarkerAbsolute = e.arrowMarkerAbsolute, s({ flowchart: { arrowMarkerAbsolute: e.arrowMarkerAbsolute } });
|
|
4158
4158
|
}, "init")
|
|
4159
4159
|
};
|