@openbkn/workshop 0.2.2-rc.5 → 0.2.2-rc.6
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 +79 -8
- package/component.d.ts +10 -0
- package/dist/ActionConfirm-DJ91X3ml.js +236 -0
- package/dist/ActionFailure-ZgPt_3B-.js +37 -0
- package/dist/AgentChat-CRYai8ge.js +1062 -0
- package/dist/AppFormModal-D73ucaHK.js +4282 -0
- package/dist/AppListPage-D87piiOw.js +1364 -0
- package/dist/AskDrawer-BUMYsRnt.js +38 -0
- package/dist/ComputedView-CgYrDbx1.js +3221 -0
- package/dist/ConclusionApply-sjGfoEBY.js +153 -0
- package/dist/CypherEditor-lus6FA5L.js +485 -0
- package/dist/LandingList-6JI6864C.js +230 -0
- package/dist/MenuUnfoldOutlined-Cdg24l2h.js +27 -0
- package/dist/ModelTrial-ClHFGTpQ.js +359 -0
- package/dist/PageRenderer-DBd_g6mN.js +85480 -0
- package/dist/README-DjRyTQSR.js +76 -0
- package/dist/ScenarioApply-DtW_hh47.js +590 -0
- package/dist/SimulateForm-C-i08Jjd.js +153 -0
- package/dist/Subgraph-CnrkH9AN.js +32586 -0
- package/dist/WorkshopLabPage-DiVXQL9e.js +11364 -0
- package/dist/WorkshopRunPage-6hjRUf64.js +253 -0
- package/dist/abnfDiagram-WEYOIA3C-beRNhN3c.js +87 -0
- package/dist/action-type-tool.service-B2B74fKC.js +1060 -0
- package/dist/actionButton-DA5CNEzx.js +94 -0
- package/dist/actionButton.en-US-qjeqA7hs.js +94 -0
- package/dist/agentChat-EoDznd58.js +116 -0
- package/dist/agentChat.en-US-B6-pFd9Y.js +116 -0
- package/dist/alertList-DqditwM8.js +84 -0
- package/dist/alertList.en-US-BAXAgltP.js +84 -0
- package/dist/architectureDiagram-ZHVYKT53-DY2l1qxx.js +4779 -0
- package/dist/asOfSlider-QPvHWUMV.js +83 -0
- package/dist/asOfSlider.en-US-BI4jVfSn.js +83 -0
- package/dist/bkn-agent-execution.service-DVh-SHyl.js +205 -0
- package/dist/blockDiagram-RJAE7QA3-DR0mjN2h.js +1435 -0
- package/dist/c4Diagram-XDPPPE54-DH5zsGug.js +1518 -0
- package/dist/channel-B034hcOF.js +5 -0
- package/dist/china-C6m7zXIv.js +9 -0
- package/dist/chunk-2E7WHVMD-Ba3svxgx.js +664 -0
- package/dist/chunk-2Q5K7J3B-rT4eU6_y.js +15 -0
- package/dist/chunk-4EMNKR2T-C1kQZYHK.js +262 -0
- package/dist/chunk-55XCU76K-dcpLOktb.js +68 -0
- package/dist/chunk-5VM5RSS4-BdpQuzmO.js +19 -0
- package/dist/chunk-JWPE2WC7-CDBrSjU7.js +8 -0
- package/dist/chunk-VQ5W62QI-BiVKc40w.js +19 -0
- package/dist/chunk-XXDRQBXY-CPYrcdVW.js +8 -0
- package/dist/chunk-ZCHMQSOR-BG8OLpvb.js +451 -0
- package/dist/classDiagram-v2-4MYWR3UA-DqbpQpwI.js +1564 -0
- package/dist/component.d-DFoMKuUv.js +179 -0
- package/dist/cose-bilkent-JH36ORCC-CdXk4sPf.js +2609 -0
- package/dist/customComponents-DasaZ6pq.js +4 -0
- package/dist/customComponents.en-US-CkabuCXg.js +79 -0
- package/dist/customParseFormat-C0uLEpdq.js +182 -0
- package/dist/cynefin-EF2NZ3EQ-D7MVnMHu.js +21746 -0
- package/dist/cynefinDiagram-WF24UDRP-BYT_KpDL.js +299 -0
- package/dist/cytoscape.esm-BCV9V6aO.js +18760 -0
- package/dist/d3-scale-DA8IHmf0.js +1841 -0
- package/dist/dagre-NK4GIZVX-l-ghPdM8.js +2154 -0
- package/dist/dateRange-BbkLMg8L.js +79 -0
- package/dist/dateRange.en-US-CV12Q02G.js +79 -0
- package/dist/dayjs.min-DZ-YV8Mv.js +284 -0
- package/dist/diagram-CBK3MWTC-Bt3HiwvA.js +542 -0
- package/dist/diagram-I5XIIV2D-DcbqfBjx.js +150 -0
- package/dist/diagram-ODIL2UCW-9PC1n3n5.js +346 -0
- package/dist/diagram-PFBEJUXE-DGhr2kc7.js +478 -0
- package/dist/diagram-RJA3I4VV-DwzpOjZ_.js +219 -0
- package/dist/diagram-TYUNFSNR-B3Bd3TDU.js +2583 -0
- package/dist/dropdownFilter-DOi_8-ZT.js +76 -0
- package/dist/dropdownFilter.en-US-BiXpvXtF.js +76 -0
- package/dist/ebnfDiagram-V4P3TTPT-E5NN2oKc.js +109 -0
- package/dist/elk-QONTBCTQ-dFjcujl_.js +49170 -0
- package/dist/erDiagram-KYQIGQAA-BMrasBzB.js +1061 -0
- package/dist/eventList-CnsAwfDS.js +115 -0
- package/dist/eventList.en-US-Cof3rCLq.js +115 -0
- package/dist/eventReport-XS-HegnH.js +76 -0
- package/dist/eventReport.en-US-DTx4vzWT.js +76 -0
- package/dist/flowDiagram-IUGLLWBU-BGIBH0q0.js +1769 -0
- package/dist/ganttChart-DEeSvTJA.js +77 -0
- package/dist/ganttChart.en-US-SwRKrnoD.js +77 -0
- package/dist/ganttDiagram-R7GPNTJY-C0tb1Lpp.js +1741 -0
- package/dist/generateCypher-Ch9_lQa6.js +399 -0
- package/dist/gitGraphDiagram-PDYL7XHY-DBqcOa-c.js +815 -0
- package/dist/graph-CKJmgLki.js +1541 -0
- package/dist/index-BA-GzCXt.js +441 -0
- package/dist/infoDiagram-MVDRKAX5-Bwuki4JA.js +24 -0
- package/dist/ishikawaDiagram-HPEHV2GE-Dz4d6ygx.js +622 -0
- package/dist/journeyDiagram-BOSHW7O7-C99m34Bb.js +834 -0
- package/dist/kanban-definition-FNSA4HC5-mdqjODsT.js +724 -0
- package/dist/katex-BsrBVQKd.js +11314 -0
- package/dist/manifest-BjV1PJ6u.js +41 -0
- package/dist/mermaid.core-yQghUlIz.js +17642 -0
- package/dist/metricCards-CSb-_cT2.js +104 -0
- package/dist/metricCards.en-US-BLLhRsQU.js +104 -0
- package/dist/mindmap-definition-6OY57UG3-BZhO2wX4.js +834 -0
- package/dist/modelTrial-Bvb-RhGt.js +137 -0
- package/dist/modelTrial.en-US-DYcuor-G.js +137 -0
- package/dist/models-DekiCOuZ.js +6 -0
- package/dist/object-metric-numeric-vs3BeDkH.js +42 -0
- package/dist/object-metric.service-flZgBMRX.js +233 -0
- package/dist/objectDetail-SQUbp4Py.js +117 -0
- package/dist/objectDetail.en-US-DW3mlONM.js +117 -0
- package/dist/objectList-D99wPtJH.js +97 -0
- package/dist/objectList.en-US-PBBNyVLW.js +97 -0
- package/dist/objectTable-0jsFFMN3.js +127 -0
- package/dist/objectTable.en-US-yWEs8qc_.js +127 -0
- package/dist/pegDiagram-ECIUJNBX-BDa5RfZt.js +95 -0
- package/dist/pieDiagram-GNMPY74T-DNVtzXPv.js +165 -0
- package/dist/pivotTable-CHmQw18-.js +102 -0
- package/dist/pivotTable.en-US-B4uv4P08.js +102 -0
- package/dist/prompt-DYrjlEFr.js +373 -0
- package/dist/quadrantDiagram-D57K4MC3-vK0f2OvQ.js +1023 -0
- package/dist/railroadDiagram-Y72NRBL7-j6ZrTmRp.js +77 -0
- package/dist/regionMap-Cme-JyV_.js +128 -0
- package/dist/regionMap.en-US-Bwr2_p32.js +128 -0
- package/dist/requirementDiagram-EQYSW5RA-DgfEyljA.js +886 -0
- package/dist/sankeyDiagram-SY24JHO5-CImx-IX0.js +1160 -0
- package/dist/scenarioBar-BV43p7n-.js +122 -0
- package/dist/scenarioBar.en-US-5KqMQ2Bg.js +122 -0
- package/dist/scheduleGantt-CTYO-zYP.js +180 -0
- package/dist/scheduleGantt.en-US-hE7mvVUW.js +180 -0
- package/dist/searchBox-Ca7w0f_6.js +67 -0
- package/dist/searchBox.en-US-ArS_XBvB.js +67 -0
- package/dist/segmentedFilter-MhjVcWo0.js +80 -0
- package/dist/segmentedFilter.en-US-BxNrQO5T.js +80 -0
- package/dist/sequenceDiagram-BLEHNHQU-nWmjd1ci.js +2969 -0
- package/dist/sizeCapture-INFHLROL-D3jlbt7h.js +46 -0
- package/dist/stageChain-BxBafwjD.js +74 -0
- package/dist/stageChain.en-US-CP0G27n8.js +74 -0
- package/dist/stateDiagram-v2-A6IESKWZ-DG1ZetEu.js +1514 -0
- package/dist/subgraph-7n4SwliR.js +71 -0
- package/dist/subgraph.en-US-BNvY18IW.js +71 -0
- package/dist/swimlanes-B3ENRKFQ-cCmJE8AU.js +4991 -0
- package/dist/swimlanesDiagram-AYQRV4AK-CtuhyguU.js +14 -0
- package/dist/taskInbox-DGWYeI2b.js +118 -0
- package/dist/taskInbox.en-US-B-OzDmVl.js +118 -0
- package/dist/text-BqSVQKS6.js +78 -0
- package/dist/text.en-US-BhAxy_LE.js +78 -0
- package/dist/timeline-definition-JXYKGLGB-Cc-INsOv.js +1057 -0
- package/dist/trendChart-BjEeRS5_.js +135 -0
- package/dist/trendChart.en-US-BBGqWUKM.js +135 -0
- package/dist/useLabData-Df-jEHKs.js +20470 -0
- package/dist/usecaseDiagram-WPOLBNNX-r8wVjopm.js +7920 -0
- package/dist/vennDiagram-Q3Y3IDCW-BZiOcgrj.js +1579 -0
- package/dist/wardleyDiagram-IVAIDKWA-16jd07C_.js +675 -0
- package/dist/workshop-app-DnHNjBqy.js +86038 -0
- package/dist/workshop-app.css +1 -0
- package/dist/workshop-app.js +4 -0
- package/dist/world-Djau1JyJ.js +9 -0
- package/dist/xychartDiagram-4URNHDU4-C8DwWQNh.js +1460 -0
- package/dist-cli/workshop.js +340 -217
- package/example/host.js +109 -0
- package/example/index.html +93 -0
- package/example/server.mjs +237 -0
- package/index.d.ts +48 -0
- package/lib/validate.js +47 -1
- package/package.json +17 -5
- package/runtime/frame-runtime.js +13 -1
- package/workshop-component.js +32 -12
- package/workshop.js +2 -0
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { aj as B, _ as y } from "./mermaid.core-yQghUlIz.js";
|
|
2
|
+
var w = 5, O = 1e-5, X = 2, Y = 0.6, R = 1e-6;
|
|
3
|
+
function N(t) {
|
|
4
|
+
const e = [];
|
|
5
|
+
for (let s = 0; s < t.length - 1; s++)
|
|
6
|
+
e.push({ a: t[s], b: t[s + 1] });
|
|
7
|
+
return e;
|
|
8
|
+
}
|
|
9
|
+
y(N, "buildSegmentList");
|
|
10
|
+
function T(t, e, s, a) {
|
|
11
|
+
const r = e.x - t.x, o = e.y - t.y, i = a.x - s.x, d = a.y - s.y, u = r * d - o * i;
|
|
12
|
+
if (u === 0)
|
|
13
|
+
return null;
|
|
14
|
+
const n = s.x - t.x, c = s.y - t.y, p = (n * d - c * i) / u, f = (n * o - c * r) / u;
|
|
15
|
+
return p <= R || p >= 1 - R || f <= R || f >= 1 - R ? null : {
|
|
16
|
+
point: { x: t.x + p * r, y: t.y + p * o },
|
|
17
|
+
tA: p,
|
|
18
|
+
tB: f
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
y(T, "segmentIntersection");
|
|
22
|
+
function P(t) {
|
|
23
|
+
return Math.abs(t.b.x - t.a.x) >= Math.abs(t.b.y - t.a.y);
|
|
24
|
+
}
|
|
25
|
+
y(P, "isHorizontalSeg");
|
|
26
|
+
function v(t, e, s) {
|
|
27
|
+
if (t.curve !== "rounded")
|
|
28
|
+
return !1;
|
|
29
|
+
const a = t.points, r = a[e], o = a[e + 1];
|
|
30
|
+
if (!r || !o)
|
|
31
|
+
return !1;
|
|
32
|
+
const i = Math.hypot(o.x - r.x, o.y - r.y), d = s * i, u = e > 0 ? L(a[e - 1], r, o, w) : null;
|
|
33
|
+
if (u && d < u.cutLen)
|
|
34
|
+
return !0;
|
|
35
|
+
const n = e + 2 < a.length ? L(r, o, a[e + 2], w) : null;
|
|
36
|
+
return n !== null && i - d < n.cutLen;
|
|
37
|
+
}
|
|
38
|
+
y(v, "crossingSitsInRoundedCorner");
|
|
39
|
+
function _(t) {
|
|
40
|
+
const e = [];
|
|
41
|
+
for (let s = 0; s < t.length; s++) {
|
|
42
|
+
const a = t[s], r = N(a.points);
|
|
43
|
+
for (let o = s + 1; o < t.length; o++) {
|
|
44
|
+
const i = t[o], d = N(i.points);
|
|
45
|
+
for (const [u, n] of r.entries())
|
|
46
|
+
for (const [c, p] of d.entries()) {
|
|
47
|
+
const f = T(n.a, n.b, p.a, p.b);
|
|
48
|
+
if (!f || v(a, u, f.tA) || v(i, c, f.tB))
|
|
49
|
+
continue;
|
|
50
|
+
const g = P(n), S = P(p);
|
|
51
|
+
(g !== S ? g : !1) ? e.push({
|
|
52
|
+
jumpEdgeId: a.id,
|
|
53
|
+
otherEdgeId: i.id,
|
|
54
|
+
segIndex: u,
|
|
55
|
+
t: f.tA,
|
|
56
|
+
point: f.point
|
|
57
|
+
}) : e.push({
|
|
58
|
+
jumpEdgeId: i.id,
|
|
59
|
+
otherEdgeId: a.id,
|
|
60
|
+
segIndex: c,
|
|
61
|
+
t: f.tB,
|
|
62
|
+
point: f.point
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return e;
|
|
68
|
+
}
|
|
69
|
+
y(_, "findEdgeIntersections");
|
|
70
|
+
function M(t) {
|
|
71
|
+
const e = Math.round(t * 1e3) / 1e3;
|
|
72
|
+
return Number.isInteger(e) ? `${e}` : `${e}`;
|
|
73
|
+
}
|
|
74
|
+
y(M, "fmt");
|
|
75
|
+
function A(t) {
|
|
76
|
+
return `${M(t.x)},${M(t.y)}`;
|
|
77
|
+
}
|
|
78
|
+
y(A, "pointToString");
|
|
79
|
+
function C(t) {
|
|
80
|
+
const e = t.b.x - t.a.x, s = t.b.y - t.a.y;
|
|
81
|
+
return Math.abs(e) >= Math.abs(s) ? e >= 0 ? 1 : 0 : s >= 0 ? 1 : 0;
|
|
82
|
+
}
|
|
83
|
+
y(C, "getArcSweepFlag");
|
|
84
|
+
function D(t, e) {
|
|
85
|
+
if (t.length < 2)
|
|
86
|
+
return t.map((o) => ({ ...o }));
|
|
87
|
+
const s = t.map((o) => ({ ...o })), a = e.arrowTypeStart && B[e.arrowTypeStart];
|
|
88
|
+
if (a) {
|
|
89
|
+
const o = t[0], i = t[1], d = Math.atan2(i.y - o.y, i.x - o.x);
|
|
90
|
+
s[0].x = o.x + a * Math.cos(d), s[0].y = o.y + a * Math.sin(d);
|
|
91
|
+
}
|
|
92
|
+
const r = e.arrowTypeEnd && B[e.arrowTypeEnd];
|
|
93
|
+
if (r) {
|
|
94
|
+
const o = t.length, i = t[o - 2], d = t[o - 1], u = Math.atan2(d.y - i.y, d.x - i.x);
|
|
95
|
+
s[o - 1].x = d.x - r * Math.cos(u), s[o - 1].y = d.y - r * Math.sin(u);
|
|
96
|
+
}
|
|
97
|
+
return s;
|
|
98
|
+
}
|
|
99
|
+
y(D, "applyMarkerOffsets");
|
|
100
|
+
function j(t, e, s, a, r) {
|
|
101
|
+
const o = t.point.x, i = t.point.y, d = { x: o - e * t.r, y: i - s * t.r }, u = { x: o + e * t.r, y: i + s * t.r }, n = [`L${A(d)}`];
|
|
102
|
+
return r === "arc" ? n.push(`A${M(t.r)},${M(t.r)} 0 0 ${a} ${A(u)}`) : n.push(`M${A(u)}`), n;
|
|
103
|
+
}
|
|
104
|
+
y(j, "emitJump");
|
|
105
|
+
function L(t, e, s, a) {
|
|
106
|
+
const r = e.x - t.x, o = e.y - t.y, i = s.x - e.x, d = s.y - e.y, u = Math.hypot(r, o), n = Math.hypot(i, d);
|
|
107
|
+
if (u < O || n < O)
|
|
108
|
+
return null;
|
|
109
|
+
const c = r / u, p = o / u, f = i / n, g = d / n, S = c * f + p * g, b = Math.max(-1, Math.min(1, S)), m = Math.acos(b);
|
|
110
|
+
if (m < O || Math.abs(Math.PI - m) < O)
|
|
111
|
+
return null;
|
|
112
|
+
const h = Math.min(a / Math.sin(m / 2), u / 2, n / 2);
|
|
113
|
+
return {
|
|
114
|
+
startX: e.x - c * h,
|
|
115
|
+
startY: e.y - p * h,
|
|
116
|
+
endX: e.x + f * h,
|
|
117
|
+
endY: e.y + g * h,
|
|
118
|
+
ctrlX: e.x,
|
|
119
|
+
ctrlY: e.y,
|
|
120
|
+
cutLen: h
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
y(L, "computeRoundedCorner");
|
|
124
|
+
function k(t, e, s) {
|
|
125
|
+
const a = t.points;
|
|
126
|
+
if (a.length < 2)
|
|
127
|
+
return "";
|
|
128
|
+
const r = D(a, t), o = t.curve === "rounded", i = N(r), d = /* @__PURE__ */ new Map();
|
|
129
|
+
for (const n of e) {
|
|
130
|
+
const c = i[n.segIndex];
|
|
131
|
+
if (!c)
|
|
132
|
+
continue;
|
|
133
|
+
const p = Math.hypot(c.b.x - c.a.x, c.b.y - c.a.y), f = d.get(n.segIndex) ?? [];
|
|
134
|
+
f.push({
|
|
135
|
+
t: n.t,
|
|
136
|
+
point: n.point,
|
|
137
|
+
d: n.t * p,
|
|
138
|
+
r: s.jumpRadius
|
|
139
|
+
}), d.set(n.segIndex, f);
|
|
140
|
+
}
|
|
141
|
+
const u = [`M${A(r[0])}`];
|
|
142
|
+
for (let n = 0; n < i.length; n++) {
|
|
143
|
+
const c = i[n], p = Math.hypot(c.b.x - c.a.x, c.b.y - c.a.y), f = p === 0 ? 0 : (c.b.x - c.a.x) / p, g = p === 0 ? 0 : (c.b.y - c.a.y) / p, S = C(c);
|
|
144
|
+
let b = 0;
|
|
145
|
+
if (o && n > 0) {
|
|
146
|
+
const l = L(
|
|
147
|
+
r[n - 1],
|
|
148
|
+
r[n],
|
|
149
|
+
r[n + 1] ?? r[n],
|
|
150
|
+
w
|
|
151
|
+
);
|
|
152
|
+
l && (b = l.cutLen);
|
|
153
|
+
}
|
|
154
|
+
let m = p, h = null;
|
|
155
|
+
o && n < i.length - 1 && (h = L(
|
|
156
|
+
r[n],
|
|
157
|
+
r[n + 1],
|
|
158
|
+
r[n + 2] ?? r[n + 1],
|
|
159
|
+
w
|
|
160
|
+
), h && (m = p - h.cutLen));
|
|
161
|
+
const $ = s.jumpRadius * Y, x = [...d.get(n) ?? []].sort((l, E) => l.t - E.t).filter((l) => {
|
|
162
|
+
const E = Math.min(l.d - b, m - l.d) - X;
|
|
163
|
+
return l.r = Math.min(l.r, E), l.r >= $;
|
|
164
|
+
});
|
|
165
|
+
for (let l = 0; l < x.length - 1; l++) {
|
|
166
|
+
const E = x[l + 1].d - x[l].d;
|
|
167
|
+
if (x[l].r + x[l + 1].r > E) {
|
|
168
|
+
const I = E / 2;
|
|
169
|
+
x[l].r = Math.min(x[l].r, I), x[l + 1].r = Math.min(x[l + 1].r, I);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
for (const l of x)
|
|
173
|
+
l.r < $ || u.push(...j(l, f, g, S, s.jumpStyle));
|
|
174
|
+
o && h ? (u.push(`L${M(h.startX)},${M(h.startY)}`), u.push(
|
|
175
|
+
`Q${M(h.ctrlX)},${M(h.ctrlY)} ${M(h.endX)},${M(h.endY)}`
|
|
176
|
+
)) : u.push(`L${A(c.b)}`);
|
|
177
|
+
}
|
|
178
|
+
return u.join(" ");
|
|
179
|
+
}
|
|
180
|
+
y(k, "rewriteEdgePath");
|
|
181
|
+
function H(t) {
|
|
182
|
+
return /^[\d\s+,.LMelm-]*$/.test(t);
|
|
183
|
+
}
|
|
184
|
+
y(H, "isStraightPath");
|
|
185
|
+
function J(t) {
|
|
186
|
+
return t ? t === "linear" || t === "rounded" || t === "step" || t === "stepBefore" || t === "stepAfter" : !0;
|
|
187
|
+
}
|
|
188
|
+
y(J, "curveSupportsLineHops");
|
|
189
|
+
function U(t) {
|
|
190
|
+
if (!t)
|
|
191
|
+
return null;
|
|
192
|
+
try {
|
|
193
|
+
const e = typeof atob == "function" ? atob(t) : Buffer.from(t, "base64").toString(), s = JSON.parse(e);
|
|
194
|
+
if (!Array.isArray(s))
|
|
195
|
+
return null;
|
|
196
|
+
const a = [];
|
|
197
|
+
for (const r of s)
|
|
198
|
+
r && typeof r.x == "number" && typeof r.y == "number" && a.push({ x: r.x, y: r.y });
|
|
199
|
+
return a.length >= 2 ? a : null;
|
|
200
|
+
} catch {
|
|
201
|
+
return null;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
y(U, "decodeDataPoints");
|
|
205
|
+
function F(t, e, s) {
|
|
206
|
+
if (!s.enabled)
|
|
207
|
+
return;
|
|
208
|
+
const a = t.node();
|
|
209
|
+
if (!a)
|
|
210
|
+
return;
|
|
211
|
+
const r = /* @__PURE__ */ new Map();
|
|
212
|
+
for (const n of e)
|
|
213
|
+
r.set(n.id, n);
|
|
214
|
+
const o = /* @__PURE__ */ new Map();
|
|
215
|
+
for (const n of a.querySelectorAll("path[data-id]")) {
|
|
216
|
+
const c = n.getAttribute("data-id");
|
|
217
|
+
c !== null && !o.has(c) && o.set(c, n);
|
|
218
|
+
}
|
|
219
|
+
const i = [];
|
|
220
|
+
for (const n of e) {
|
|
221
|
+
const c = o.get(n.id);
|
|
222
|
+
if (!c)
|
|
223
|
+
continue;
|
|
224
|
+
const f = U(c.getAttribute("data-points")) ?? n.points;
|
|
225
|
+
i.push({ ...n, points: f });
|
|
226
|
+
}
|
|
227
|
+
const d = _(i);
|
|
228
|
+
if (d.length === 0)
|
|
229
|
+
return;
|
|
230
|
+
const u = /* @__PURE__ */ new Map();
|
|
231
|
+
for (const n of d) {
|
|
232
|
+
const c = u.get(n.jumpEdgeId) ?? [];
|
|
233
|
+
c.push(n), u.set(n.jumpEdgeId, c);
|
|
234
|
+
}
|
|
235
|
+
for (const n of i) {
|
|
236
|
+
const c = u.get(n.id);
|
|
237
|
+
if (!c || c.length === 0)
|
|
238
|
+
continue;
|
|
239
|
+
const f = r.get(n.id)?.curve;
|
|
240
|
+
if (f !== void 0 && !J(f))
|
|
241
|
+
continue;
|
|
242
|
+
const g = o.get(n.id);
|
|
243
|
+
if (!g)
|
|
244
|
+
continue;
|
|
245
|
+
if (f === void 0) {
|
|
246
|
+
const x = g.getAttribute("d") ?? "";
|
|
247
|
+
if (!H(x))
|
|
248
|
+
continue;
|
|
249
|
+
}
|
|
250
|
+
const S = g.getAttribute("style") ?? "", b = /stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(
|
|
251
|
+
S
|
|
252
|
+
), m = b ? Number.parseFloat(b[1]) : null, h = b ? Number.parseFloat(b[2]) : null, $ = k(n, c, s);
|
|
253
|
+
if (g.setAttribute("d", $), m !== null && h !== null && typeof g.getTotalLength == "function") {
|
|
254
|
+
const x = g.getTotalLength(), l = Math.max(0, x - m - h), E = `0 ${m} ${l} ${h}`, I = S.replace(/stroke-dasharray\s*:[^;]*;?/g, `stroke-dasharray: ${E};`).replace(/;\s*;+/g, ";");
|
|
255
|
+
g.setAttribute("style", I);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
y(F, "applyLineJumpsToSvg");
|
|
260
|
+
export {
|
|
261
|
+
F as a
|
|
262
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { _ as i, k as l, o as d, p as o } from "./mermaid.core-yQghUlIz.js";
|
|
2
|
+
var x = /* @__PURE__ */ i((r, t) => {
|
|
3
|
+
const e = r.append("rect");
|
|
4
|
+
if (e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), t.name && e.attr("name", t.name), t.rx && e.attr("rx", t.rx), t.ry && e.attr("ry", t.ry), t.attrs !== void 0)
|
|
5
|
+
for (const s in t.attrs)
|
|
6
|
+
e.attr(s, t.attrs[s]);
|
|
7
|
+
return t.class && e.attr("class", t.class), e;
|
|
8
|
+
}, "drawRect"), c = /* @__PURE__ */ i((r, t) => {
|
|
9
|
+
const e = {
|
|
10
|
+
x: t.startx,
|
|
11
|
+
y: t.starty,
|
|
12
|
+
width: t.stopx - t.startx,
|
|
13
|
+
height: t.stopy - t.starty,
|
|
14
|
+
fill: t.fill,
|
|
15
|
+
stroke: t.stroke,
|
|
16
|
+
class: "rect"
|
|
17
|
+
};
|
|
18
|
+
x(r, e).lower();
|
|
19
|
+
}, "drawBackgroundRect"), y = /* @__PURE__ */ i((r, t) => {
|
|
20
|
+
const e = t.text.replace(d, " "), s = r.append("text");
|
|
21
|
+
s.attr("x", t.x), s.attr("y", t.y), s.attr("class", "legend"), s.style("text-anchor", t.anchor), t.class && s.attr("class", t.class);
|
|
22
|
+
const a = s.append("tspan");
|
|
23
|
+
return a.attr("x", t.x + t.textMargin * 2), a.text(e), s;
|
|
24
|
+
}, "drawText"), m = /* @__PURE__ */ i((r, t, e, s) => {
|
|
25
|
+
const a = r.append("image");
|
|
26
|
+
a.attr("x", t), a.attr("y", e);
|
|
27
|
+
const n = o.sanitizeUrl(s);
|
|
28
|
+
a.attr("xlink:href", n);
|
|
29
|
+
}, "drawImage"), g = /* @__PURE__ */ i((r, t, e, s) => {
|
|
30
|
+
const a = r.append("use");
|
|
31
|
+
a.attr("x", t), a.attr("y", e);
|
|
32
|
+
const n = o.sanitizeUrl(s);
|
|
33
|
+
a.attr("xlink:href", `#${n}`);
|
|
34
|
+
}, "drawEmbeddedImage"), h = /* @__PURE__ */ i(() => ({
|
|
35
|
+
x: 0,
|
|
36
|
+
y: 0,
|
|
37
|
+
width: 100,
|
|
38
|
+
height: 100,
|
|
39
|
+
fill: "#EDF2AE",
|
|
40
|
+
stroke: "#666",
|
|
41
|
+
anchor: "start",
|
|
42
|
+
rx: 0,
|
|
43
|
+
ry: 0
|
|
44
|
+
}), "getNoteRect"), f = /* @__PURE__ */ i(() => ({
|
|
45
|
+
x: 0,
|
|
46
|
+
y: 0,
|
|
47
|
+
width: 100,
|
|
48
|
+
height: 100,
|
|
49
|
+
"text-anchor": "start",
|
|
50
|
+
style: "#666",
|
|
51
|
+
textMargin: 0,
|
|
52
|
+
rx: 0,
|
|
53
|
+
ry: 0,
|
|
54
|
+
tspan: !0
|
|
55
|
+
}), "getTextObj"), w = /* @__PURE__ */ i(() => {
|
|
56
|
+
let r = l(".mermaidTooltip");
|
|
57
|
+
return r.empty() && (r = l("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0).style("position", "absolute").style("text-align", "center").style("max-width", "200px").style("padding", "2px").style("font-size", "12px").style("background", "#ffffde").style("border", "1px solid #333").style("border-radius", "2px").style("pointer-events", "none").style("z-index", "100")), r;
|
|
58
|
+
}, "createTooltip");
|
|
59
|
+
export {
|
|
60
|
+
c as a,
|
|
61
|
+
h as b,
|
|
62
|
+
w as c,
|
|
63
|
+
x as d,
|
|
64
|
+
g as e,
|
|
65
|
+
m as f,
|
|
66
|
+
f as g,
|
|
67
|
+
y as h
|
|
68
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { _ as e } from "./mermaid.core-yQghUlIz.js";
|
|
2
|
+
var l = /* @__PURE__ */ e(() => `
|
|
3
|
+
/* Font Awesome icon styling - consolidated */
|
|
4
|
+
.label-icon {
|
|
5
|
+
display: inline-block;
|
|
6
|
+
height: 1em;
|
|
7
|
+
overflow: visible;
|
|
8
|
+
vertical-align: -0.125em;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.node .label-icon path {
|
|
12
|
+
fill: currentColor;
|
|
13
|
+
stroke: revert;
|
|
14
|
+
stroke-width: revert;
|
|
15
|
+
}
|
|
16
|
+
`, "getIconStyles");
|
|
17
|
+
export {
|
|
18
|
+
l as g
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { _ as a, d as w, l as x } from "./mermaid.core-yQghUlIz.js";
|
|
2
|
+
var B = /* @__PURE__ */ a((e, t, i, r) => {
|
|
3
|
+
e.attr("class", i);
|
|
4
|
+
const { width: o, height: h, x: n, y: c } = u(e, t);
|
|
5
|
+
w(e, h, o, r);
|
|
6
|
+
const s = d(n, c, o, h, t);
|
|
7
|
+
e.attr("viewBox", s), x.debug(`viewBox configured: ${s} with padding: ${t}`);
|
|
8
|
+
}, "setupViewPortForSVG"), u = /* @__PURE__ */ a((e, t) => {
|
|
9
|
+
const i = e.node()?.getBBox() || { width: 0, height: 0, x: 0, y: 0 };
|
|
10
|
+
return {
|
|
11
|
+
width: i.width + t * 2,
|
|
12
|
+
height: i.height + t * 2,
|
|
13
|
+
x: i.x,
|
|
14
|
+
y: i.y
|
|
15
|
+
};
|
|
16
|
+
}, "calculateDimensionsWithPadding"), d = /* @__PURE__ */ a((e, t, i, r, o) => `${e - o} ${t - o} ${i} ${r}`, "createViewBox");
|
|
17
|
+
export {
|
|
18
|
+
B as s
|
|
19
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { _ as a, k as o } from "./mermaid.core-yQghUlIz.js";
|
|
2
|
+
var g = /* @__PURE__ */ a((t, e) => {
|
|
3
|
+
let n;
|
|
4
|
+
return e === "sandbox" && (n = o("#i" + t)), (e === "sandbox" ? o(n.nodes()[0].contentDocument.body) : o("body")).select(`[id="${t}"]`);
|
|
5
|
+
}, "getDiagramElement");
|
|
6
|
+
export {
|
|
7
|
+
g
|
|
8
|
+
};
|