@kong-ui-public/documentation 0.8.27-pr.2132.c7fba69a4.0 → 0.8.27
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/_basePickBy-DF_KwdVi-HVXnmpaQ.js +151 -0
- package/dist/_baseUniq-DefQzZRT-CTix3bMY.js +614 -0
- package/dist/arc-B4xWw-B6-BGnuysbe.js +83 -0
- package/dist/architecture-I3QFYML2-7TNhn42L-52ENK4nk.js +5 -0
- package/dist/architectureDiagram-UYN6MBPD-Bg70hFZ--BirbHF75.js +4592 -0
- package/dist/astro-Uf8_VxKJ-CZxoSljj.js +16 -0
- package/dist/blockDiagram-ZHA2E4KO-Ylh05M-x-AVJfewxx.js +2247 -0
- package/dist/c-DASdrs7p-DASdrs7p.js +6 -0
- package/dist/c4Diagram-6F5ED5ID-BA0B_CmS-WdUKqC7Z.js +1581 -0
- package/dist/channel-B5uWur4x-BHu9WG2d.js +5 -0
- package/dist/chunk-5HRBRIJM-B7MbirM8-YDLjZbXN.js +24 -0
- package/dist/chunk-7U56Z5CX-CfNu7Hr2-BQzILIp1.js +1213 -0
- package/dist/chunk-ASOPGD6M-CwvgmaRl-BZAjlsEd.js +64 -0
- package/dist/chunk-KFBOBJHC-BB675Bua-GRhe6aGs.js +15 -0
- package/dist/chunk-T2TOU4HS-BgV1wucS-5Sa82KgW.js +1301 -0
- package/dist/chunk-TMUBEWPD-C22TGOO0-Bl2u--DY.js +9 -0
- package/dist/classDiagram-LNE6IOMH-D5SiSVyM-BbV9LB8E.js +14 -0
- package/dist/classDiagram-v2-MQ7JQ4JX-D5SiSVyM-BbV9LB8E.js +14 -0
- package/dist/clone-CmU1hwye-Lu5-ol5h.js +8 -0
- package/dist/csharp-CYWRhZ2R-CYWRhZ2R.js +6 -0
- package/dist/css-D1aVdRIU-D1aVdRIU.js +6 -0
- package/dist/csv-DvCncUGQ-Tno401i9.js +6 -0
- package/dist/cytoscape.esm-DAyNQ0qu-B7WxGuVh.js +16110 -0
- package/dist/dagre-4EVJKHTY-DMTVcQfE-C1Tr0EYY.js +447 -0
- package/dist/diagram-QW4FP2JN-jc61JuWr-DOMFELfS.js +126 -0
- package/dist/diff-XmNrvgM1-XmNrvgM1.js +6 -0
- package/dist/docker-DWH2onkn-DWH2onkn.js +6 -0
- package/dist/documentation.es.js +7 -0
- package/dist/documentation.umd.js +2404 -0
- package/dist/erDiagram-6RL3IURR-1byskxwI-B-wzYh8R.js +937 -0
- package/dist/flowDiagram-7ASYPVHJ-B3phEI8o-CVXSVDmh.js +1484 -0
- package/dist/ganttDiagram-NTVNEXSI-vYnO_T5c-Ccxkb7aQ.js +2491 -0
- package/dist/git-commit-BspYIY3P-VkbIfR3L.js +8 -0
- package/dist/git-rebase--zLBTjUa-DEW2tfKx.js +8 -0
- package/dist/gitGraph-YCYPL57B-DPx67Iu5-BPrLSH0g.js +5 -0
- package/dist/gitGraphDiagram-NRZ2UAAF-BHxB7Gjs-CeRxz6oW.js +712 -0
- package/dist/go-BErP6iv1-BErP6iv1.js +6 -0
- package/dist/graph-_eClejaU-DigE4Bf5.js +247 -0
- package/dist/graphql-DWpQF4JI-C-3VJmtp.js +14 -0
- package/dist/haml-CMN0hQaL-BV5BsZTy.js +10 -0
- package/dist/handlebars-Cc-7fXX5-B9YgDKzT.js +14 -0
- package/dist/haskell-CtlGos0K-CtlGos0K.js +6 -0
- package/dist/html-B0P_v3yU-BojM9zZg.js +10 -0
- package/dist/html-derivative-BJFFAxYV-iD6NAoKm.js +8 -0
- package/dist/http-Dcjm_K1m-1LFSbOE1.js +14 -0
- package/dist/index-B_RqyDIa.js +37033 -0
- package/dist/info-46DW6VJ7-DeIQKKyY-CVPexu5P.js +5 -0
- package/dist/infoDiagram-A4XQUW5V-Cx0WE_JZ-B_t8JIcX.js +22 -0
- package/dist/ini-BUcvsX-U-BUcvsX-U.js +6 -0
- package/dist/init-DjUOC4st-C8Nwz6AJ.js +16 -0
- package/dist/java-B7odJ7Ap-B7odJ7Ap.js +6 -0
- package/dist/javascript-fa8UlHZE-fa8UlHZE.js +6 -0
- package/dist/journeyDiagram-G5WM74LC-CUWL5R5G-DWlpHybW.js +810 -0
- package/dist/json-71t8ZF9g-71t8ZF9g.js +6 -0
- package/dist/json5-Z7F6rA6a-Z7F6rA6a.js +6 -0
- package/dist/jsonc-Dphhs4m2-Dphhs4m2.js +6 -0
- package/dist/jsonl-D9jj92Gg-D9jj92Gg.js +6 -0
- package/dist/jsx-Bkesy5tT-Bkesy5tT.js +6 -0
- package/dist/kanban-definition-QRCXZQQD-r5CdvT2h-BUkOeUnm.js +718 -0
- package/dist/katex-Qk2jHgyB-CF_fuFJb.js +11637 -0
- package/dist/kotlin-DCgZY7Ii-DCgZY7Ii.js +6 -0
- package/dist/latex-CZXk8SiZ-DbjDPp_f.js +11 -0
- package/dist/layout-DfjmtgNY-Bw6LFOXt.js +1321 -0
- package/dist/less-DQA4v-Nm-DQA4v-Nm.js +6 -0
- package/dist/linear-BGmbGdcc-C--Nxp9Q.js +423 -0
- package/dist/liquid-CvufO3kO-D90bBAdm.js +14 -0
- package/dist/lua-BVfhNLDr-DAa90qLN.js +8 -0
- package/dist/make-BjuHP00g-BjuHP00g.js +6 -0
- package/dist/markdown-B6guhLWd-B6guhLWd.js +6 -0
- package/dist/material-theme-lighter-BUBw43Yz-BUBw43Yz.js +4 -0
- package/dist/material-theme-palenight-C1RVm8K1-C1RVm8K1.js +4 -0
- package/dist/mdc-Bq810vct-Dr8CpN8f.js +12 -0
- package/dist/mdx-DIoECIFU-DIoECIFU.js +6 -0
- package/dist/mermaid-BZ7WHNIe-BZ7WHNIe.js +6 -0
- package/dist/mermaid-parser.core-DxgZuQQq-uP-grJig.js +12400 -0
- package/dist/mindmap-definition-GWI6TPTV-DX5GL05M-B8Eu6UCe.js +3219 -0
- package/dist/nginx-Can2eAjw-DKMoypYC.js +8 -0
- package/dist/objective-c-BGg9R27G-BGg9R27G.js +6 -0
- package/dist/ordinal-DfAQgscy-BEJTu10r.js +61 -0
- package/dist/packet-W2GHVCYJ-CI_-E3C--D1lo2o0i.js +5 -0
- package/dist/pascal-l2bqd7Dz-l2bqd7Dz.js +6 -0
- package/dist/perl-DaMQyPwp-Cxx4wmV7.js +16 -0
- package/dist/php-BL3EfPBi-BZu5YwDX.js +18 -0
- package/dist/pie-BEWT4RHE-B52QOymI-BoBX6ZnD.js +5 -0
- package/dist/pieDiagram-YF2LJOPJ-IHpbN7M9-BBPOh3m7.js +161 -0
- package/dist/plsql-oVq_K_wH-oVq_K_wH.js +6 -0
- package/dist/postcss-BZ3MNRIJ-BZ3MNRIJ.js +6 -0
- package/dist/powershell-Diwyv8Eh-Diwyv8Eh.js +6 -0
- package/dist/proto-o9HLmF90-o9HLmF90.js +6 -0
- package/dist/pug-HKe4Luo3-BYb0El_4.js +12 -0
- package/dist/python-xYxLFJY--xYxLFJY-.js +6 -0
- package/dist/quadrantDiagram-OS5C2QUG-DyfTAjs0-CvYOplDG.js +1024 -0
- package/dist/r-F-9I-ITZ-F-9I-ITZ.js +6 -0
- package/dist/reg-CMUdAgIP-CMUdAgIP.js +6 -0
- package/dist/requirementDiagram-MIRIMTAZ-DpFia6HM-BNS6fGqi.js +768 -0
- package/dist/rst-B8JEEtLI-Dyxh6LOj.js +22 -0
- package/dist/ruby-FDlfLkNa-nf7VLvCK.js +50 -0
- package/dist/rust-Pc7DCsZD-Pc7DCsZD.js +6 -0
- package/dist/sankeyDiagram-Y46BX6SQ-a6p3ZaX0-Cwasp0IA.js +805 -0
- package/dist/sass-iCyS6eP9-iCyS6eP9.js +6 -0
- package/dist/scss-DhHc4lxB-D1lMETuy.js +8 -0
- package/dist/sequenceDiagram-G6AWOVSC-DlZ7du4U-z70BwBnZ.js +2274 -0
- package/dist/shellscript-Dn0-btNd-Dn0-btNd.js +6 -0
- package/dist/shellsession-8OLo3sB6-DD6AdPYk.js +8 -0
- package/dist/splunk-CTqDjQdo-CTqDjQdo.js +6 -0
- package/dist/sql-DCkt643--DCkt643-.js +6 -0
- package/dist/ssh-config-DHHGll-v-DHHGll-v.js +6 -0
- package/dist/stateDiagram-MAYHULR4-tK3TdntS-PielUO6n.js +268 -0
- package/dist/stateDiagram-v2-4JROLMXI-Ib4sJL3A--uDyhxdT.js +14 -0
- package/dist/style.css +1 -0
- package/dist/stylus-n_9f0QQ5-n_9f0QQ5.js +6 -0
- package/dist/svelte-01qw6Rxm-Cjp5Srko.js +14 -0
- package/dist/swift-BAWqNR8A-BAWqNR8A.js +6 -0
- package/dist/timeline-definition-U7ZMHBDA-Db9d-9_E-kHwjVd5T.js +804 -0
- package/dist/toml-CQSfOn0e-CQSfOn0e.js +6 -0
- package/dist/tsx-DiGsgWT8-DiGsgWT8.js +6 -0
- package/dist/twig-DxrNSc26-BIWbKTFO.js +18 -0
- package/dist/types/components/DocumentationContent.vue.d.ts +177 -0
- package/dist/types/components/DocumentationContent.vue.d.ts.map +1 -0
- package/dist/types/components/DocumentationDisplay.vue.d.ts +323 -0
- package/dist/types/components/DocumentationDisplay.vue.d.ts.map +1 -0
- package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +30 -0
- package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +1 -0
- package/dist/types/components/ProductDocumentModal.vue.d.ts +71 -0
- package/dist/types/components/ProductDocumentModal.vue.d.ts.map +1 -0
- package/dist/types/composables/index.d.ts +6 -0
- package/dist/types/composables/index.d.ts.map +1 -0
- package/dist/types/composables/useI18n.d.ts +9 -0
- package/dist/types/composables/useI18n.d.ts.map +1 -0
- package/dist/types/external-links.d.ts +5 -0
- package/dist/types/external-links.d.ts.map +1 -0
- package/dist/types/helpers.d.ts +8 -0
- package/dist/types/helpers.d.ts.map +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/types/document-list.d.ts +28 -0
- package/dist/types/types/document-list.d.ts.map +1 -0
- package/dist/types/types/document-modal.d.ts +8 -0
- package/dist/types/types/document-modal.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +3 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/typescript-buWNZFwO-buWNZFwO.js +6 -0
- package/dist/v-wa8Orrdd-wa8Orrdd.js +6 -0
- package/dist/vb-E2_-jk4M-E2_-jk4M.js +6 -0
- package/dist/viml-B-zWOd7Z-B-zWOd7Z.js +6 -0
- package/dist/vue-DdqTpW8B-BrYVXV7A.js +31 -0
- package/dist/vue-html-B9t4RWro-D1UeMTSX.js +10 -0
- package/dist/wasm-Bv5f0gKv-Bv5f0gKv.js +6 -0
- package/dist/wgsl-DnPoPGDU-DnPoPGDU.js +6 -0
- package/dist/xml-ChBsf5uy-0Ovnixsj.js +8 -0
- package/dist/xsl-BefjlXrd-CZ7IlB9K.js +8 -0
- package/dist/xychartDiagram-6QU3TZC5-L2EgHpF7-Dbx9eZ7M.js +1304 -0
- package/dist/yaml-Bbg74JKr-Bbg74JKr.js +6 -0
- package/package.json +2 -2
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
import { _ as w, m as L, c as M, a as j, b as F, l as t, g as Y, u as _, s as H, i as $, d as q, e as z, p as D, f as K, h as Q, j as U } from "./index-B_RqyDIa.js";
|
|
2
|
+
import { L as k } from "./graph-_eClejaU-DigE4Bf5.js";
|
|
3
|
+
import { o as V } from "./layout-DfjmtgNY-Bw6LFOXt.js";
|
|
4
|
+
import { E as x } from "./_baseUniq-DefQzZRT-CTix3bMY.js";
|
|
5
|
+
import { a as W } from "./clone-CmU1hwye-Lu5-ol5h.js";
|
|
6
|
+
import { g as G } from "./_basePickBy-DF_KwdVi-HVXnmpaQ.js";
|
|
7
|
+
function X(e) {
|
|
8
|
+
var n = {
|
|
9
|
+
options: {
|
|
10
|
+
directed: e.isDirected(),
|
|
11
|
+
multigraph: e.isMultigraph(),
|
|
12
|
+
compound: e.isCompound()
|
|
13
|
+
},
|
|
14
|
+
nodes: Z(e),
|
|
15
|
+
edges: ee(e)
|
|
16
|
+
};
|
|
17
|
+
return x(e.graph()) || (n.value = W(e.graph())), n;
|
|
18
|
+
}
|
|
19
|
+
function Z(e) {
|
|
20
|
+
return G(e.nodes(), function(n) {
|
|
21
|
+
var r = e.node(n), s = e.parent(n), d = { v: n };
|
|
22
|
+
return x(r) || (d.value = r), x(s) || (d.parent = s), d;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function ee(e) {
|
|
26
|
+
return G(e.edges(), function(n) {
|
|
27
|
+
var r = e.edge(n), s = { v: n.v, w: n.w };
|
|
28
|
+
return x(n.name) || (s.name = n.name), x(r) || (s.value = r), s;
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), ne = /* @__PURE__ */ w(() => {
|
|
32
|
+
N.clear(), B.clear(), u.clear();
|
|
33
|
+
}, "clear"), I = /* @__PURE__ */ w((e, n) => {
|
|
34
|
+
const r = N.get(n) || [];
|
|
35
|
+
return t.trace("In isDescendant", n, " ", e, " = ", r.includes(e)), r.includes(e);
|
|
36
|
+
}, "isDescendant"), re = /* @__PURE__ */ w((e, n) => {
|
|
37
|
+
const r = N.get(n) || [];
|
|
38
|
+
return t.info("Descendants of ", n, " is ", r), t.info("Edge is ", e), e.v === n || e.w === n ? !1 : r ? r.includes(e.v) || I(e.v, n) || I(e.w, n) || r.includes(e.w) : (t.debug("Tilt, ", n, ",not in descendants"), !1);
|
|
39
|
+
}, "edgeInCluster"), J = /* @__PURE__ */ w((e, n, r, s) => {
|
|
40
|
+
t.warn(
|
|
41
|
+
"Copying children of ",
|
|
42
|
+
e,
|
|
43
|
+
"root",
|
|
44
|
+
s,
|
|
45
|
+
"data",
|
|
46
|
+
n.node(e),
|
|
47
|
+
s
|
|
48
|
+
);
|
|
49
|
+
const d = n.children(e) || [];
|
|
50
|
+
e !== s && d.push(e), t.warn("Copying (nodes) clusterId", e, "nodes", d), d.forEach((c) => {
|
|
51
|
+
if (n.children(c).length > 0)
|
|
52
|
+
J(c, n, r, s);
|
|
53
|
+
else {
|
|
54
|
+
const o = n.node(c);
|
|
55
|
+
t.info("cp ", c, " to ", s, " with parent ", e), r.setNode(c, o), s !== n.parent(c) && (t.warn("Setting parent", c, n.parent(c)), r.setParent(c, n.parent(c))), e !== s && c !== e ? (t.debug("Setting parent", c, e), r.setParent(c, e)) : (t.info("In copy ", e, "root", s, "data", n.node(e), s), t.debug(
|
|
56
|
+
"Not Setting parent for node=",
|
|
57
|
+
c,
|
|
58
|
+
"cluster!==rootId",
|
|
59
|
+
e !== s,
|
|
60
|
+
"node!==clusterId",
|
|
61
|
+
c !== e
|
|
62
|
+
));
|
|
63
|
+
const l = n.edges(c);
|
|
64
|
+
t.debug("Copying Edges", l), l.forEach((f) => {
|
|
65
|
+
t.info("Edge", f);
|
|
66
|
+
const E = n.edge(f.v, f.w, f.name);
|
|
67
|
+
t.info("Edge data", E, s);
|
|
68
|
+
try {
|
|
69
|
+
re(f, s) ? (t.info("Copying as ", f.v, f.w, E, f.name), r.setEdge(f.v, f.w, E, f.name), t.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : t.info(
|
|
70
|
+
"Skipping copy of edge ",
|
|
71
|
+
f.v,
|
|
72
|
+
"-->",
|
|
73
|
+
f.w,
|
|
74
|
+
" rootId: ",
|
|
75
|
+
s,
|
|
76
|
+
" clusterId:",
|
|
77
|
+
e
|
|
78
|
+
);
|
|
79
|
+
} catch (C) {
|
|
80
|
+
t.error(C);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
t.debug("Removing node", c), n.removeNode(c);
|
|
85
|
+
});
|
|
86
|
+
}, "copy"), P = /* @__PURE__ */ w((e, n) => {
|
|
87
|
+
const r = n.children(e);
|
|
88
|
+
let s = [...r];
|
|
89
|
+
for (const d of r)
|
|
90
|
+
B.set(d, e), s = [...s, ...P(d, n)];
|
|
91
|
+
return s;
|
|
92
|
+
}, "extractDescendants"), te = /* @__PURE__ */ w((e, n, r) => {
|
|
93
|
+
const s = e.edges().filter((l) => l.v === n || l.w === n), d = e.edges().filter((l) => l.v === r || l.w === r), c = s.map((l) => ({ v: l.v === n ? r : l.v, w: l.w === n ? n : l.w })), o = d.map((l) => ({ v: l.v, w: l.w }));
|
|
94
|
+
return c.filter((l) => o.some((f) => l.v === f.v && l.w === f.w));
|
|
95
|
+
}, "findCommonEdges"), S = /* @__PURE__ */ w((e, n, r) => {
|
|
96
|
+
const s = n.children(e);
|
|
97
|
+
if (t.trace("Searching children of id ", e, s), s.length < 1)
|
|
98
|
+
return e;
|
|
99
|
+
let d;
|
|
100
|
+
for (const c of s) {
|
|
101
|
+
const o = S(c, n, r), l = te(n, r, o);
|
|
102
|
+
if (o)
|
|
103
|
+
if (l.length > 0)
|
|
104
|
+
d = o;
|
|
105
|
+
else
|
|
106
|
+
return o;
|
|
107
|
+
}
|
|
108
|
+
return d;
|
|
109
|
+
}, "findNonClusterChild"), O = /* @__PURE__ */ w((e) => !u.has(e) || !u.get(e).externalConnections ? e : u.has(e) ? u.get(e).id : e, "getAnchorId"), ie = /* @__PURE__ */ w((e, n) => {
|
|
110
|
+
if (!e || n > 10) {
|
|
111
|
+
t.debug("Opting out, no graph ");
|
|
112
|
+
return;
|
|
113
|
+
} else
|
|
114
|
+
t.debug("Opting in, graph ");
|
|
115
|
+
e.nodes().forEach(function(r) {
|
|
116
|
+
e.children(r).length > 0 && (t.warn(
|
|
117
|
+
"Cluster identified",
|
|
118
|
+
r,
|
|
119
|
+
" Replacement id in edges: ",
|
|
120
|
+
S(r, e, r)
|
|
121
|
+
), N.set(r, P(r, e)), u.set(r, { id: S(r, e, r), clusterData: e.node(r) }));
|
|
122
|
+
}), e.nodes().forEach(function(r) {
|
|
123
|
+
const s = e.children(r), d = e.edges();
|
|
124
|
+
s.length > 0 ? (t.debug("Cluster identified", r, N), d.forEach((c) => {
|
|
125
|
+
const o = I(c.v, r), l = I(c.w, r);
|
|
126
|
+
o ^ l && (t.warn("Edge: ", c, " leaves cluster ", r), t.warn("Descendants of XXX ", r, ": ", N.get(r)), u.get(r).externalConnections = !0);
|
|
127
|
+
})) : t.debug("Not a cluster ", r, N);
|
|
128
|
+
});
|
|
129
|
+
for (let r of u.keys()) {
|
|
130
|
+
const s = u.get(r).id, d = e.parent(s);
|
|
131
|
+
d !== r && u.has(d) && !u.get(d).externalConnections && (u.get(r).id = d);
|
|
132
|
+
}
|
|
133
|
+
e.edges().forEach(function(r) {
|
|
134
|
+
const s = e.edge(r);
|
|
135
|
+
t.warn("Edge " + r.v + " -> " + r.w + ": " + JSON.stringify(r)), t.warn("Edge " + r.v + " -> " + r.w + ": " + JSON.stringify(e.edge(r)));
|
|
136
|
+
let d = r.v, c = r.w;
|
|
137
|
+
if (t.warn(
|
|
138
|
+
"Fix XXX",
|
|
139
|
+
u,
|
|
140
|
+
"ids:",
|
|
141
|
+
r.v,
|
|
142
|
+
r.w,
|
|
143
|
+
"Translating: ",
|
|
144
|
+
u.get(r.v),
|
|
145
|
+
" --- ",
|
|
146
|
+
u.get(r.w)
|
|
147
|
+
), u.get(r.v) || u.get(r.w)) {
|
|
148
|
+
if (t.warn("Fixing and trying - removing XXX", r.v, r.w, r.name), d = O(r.v), c = O(r.w), e.removeEdge(r.v, r.w, r.name), d !== r.v) {
|
|
149
|
+
const o = e.parent(d);
|
|
150
|
+
u.get(o).externalConnections = !0, s.fromCluster = r.v;
|
|
151
|
+
}
|
|
152
|
+
if (c !== r.w) {
|
|
153
|
+
const o = e.parent(c);
|
|
154
|
+
u.get(o).externalConnections = !0, s.toCluster = r.w;
|
|
155
|
+
}
|
|
156
|
+
t.warn("Fix Replacing with XXX", d, c, r.name), e.setEdge(d, c, s, r.name);
|
|
157
|
+
}
|
|
158
|
+
}), t.warn("Adjusted Graph", X(e)), A(e, 0), t.trace(u);
|
|
159
|
+
}, "adjustClustersAndEdges"), A = /* @__PURE__ */ w((e, n) => {
|
|
160
|
+
var r, s;
|
|
161
|
+
if (t.warn("extractor - ", n, X(e), e.children("D")), n > 10) {
|
|
162
|
+
t.error("Bailing out");
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
let d = e.nodes(), c = !1;
|
|
166
|
+
for (const o of d) {
|
|
167
|
+
const l = e.children(o);
|
|
168
|
+
c = c || l.length > 0;
|
|
169
|
+
}
|
|
170
|
+
if (!c) {
|
|
171
|
+
t.debug("Done, no node has children", e.nodes());
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
t.debug("Nodes = ", d, n);
|
|
175
|
+
for (const o of d)
|
|
176
|
+
if (t.debug(
|
|
177
|
+
"Extracting node",
|
|
178
|
+
o,
|
|
179
|
+
u,
|
|
180
|
+
u.has(o) && !u.get(o).externalConnections,
|
|
181
|
+
!e.parent(o),
|
|
182
|
+
e.node(o),
|
|
183
|
+
e.children("D"),
|
|
184
|
+
" Depth ",
|
|
185
|
+
n
|
|
186
|
+
), !u.has(o))
|
|
187
|
+
t.debug("Not a cluster", o, n);
|
|
188
|
+
else if (!u.get(o).externalConnections && e.children(o) && e.children(o).length > 0) {
|
|
189
|
+
t.warn(
|
|
190
|
+
"Cluster without external connections, without a parent and with children",
|
|
191
|
+
o,
|
|
192
|
+
n
|
|
193
|
+
);
|
|
194
|
+
let l = e.graph().rankdir === "TB" ? "LR" : "TB";
|
|
195
|
+
(s = (r = u.get(o)) == null ? void 0 : r.clusterData) != null && s.dir && (l = u.get(o).clusterData.dir, t.warn("Fixing dir", u.get(o).clusterData.dir, l));
|
|
196
|
+
const f = new k({
|
|
197
|
+
multigraph: !0,
|
|
198
|
+
compound: !0
|
|
199
|
+
}).setGraph({
|
|
200
|
+
rankdir: l,
|
|
201
|
+
nodesep: 50,
|
|
202
|
+
ranksep: 50,
|
|
203
|
+
marginx: 8,
|
|
204
|
+
marginy: 8
|
|
205
|
+
}).setDefaultEdgeLabel(function() {
|
|
206
|
+
return {};
|
|
207
|
+
});
|
|
208
|
+
t.warn("Old graph before copy", X(e)), J(o, e, f, o), e.setNode(o, {
|
|
209
|
+
clusterNode: !0,
|
|
210
|
+
id: o,
|
|
211
|
+
clusterData: u.get(o).clusterData,
|
|
212
|
+
label: u.get(o).label,
|
|
213
|
+
graph: f
|
|
214
|
+
}), t.warn("New graph after copy node: (", o, ")", X(f)), t.debug("Old graph after copy", X(e));
|
|
215
|
+
} else
|
|
216
|
+
t.warn(
|
|
217
|
+
"Cluster ** ",
|
|
218
|
+
o,
|
|
219
|
+
" **not meeting the criteria !externalConnections:",
|
|
220
|
+
!u.get(o).externalConnections,
|
|
221
|
+
" no parent: ",
|
|
222
|
+
!e.parent(o),
|
|
223
|
+
" children ",
|
|
224
|
+
e.children(o) && e.children(o).length > 0,
|
|
225
|
+
e.children("D"),
|
|
226
|
+
n
|
|
227
|
+
), t.debug(u);
|
|
228
|
+
d = e.nodes(), t.warn("New list of nodes", d);
|
|
229
|
+
for (const o of d) {
|
|
230
|
+
const l = e.node(o);
|
|
231
|
+
t.warn(" Now next level", o, l), l != null && l.clusterNode && A(l.graph, n + 1);
|
|
232
|
+
}
|
|
233
|
+
}, "extractor"), R = /* @__PURE__ */ w((e, n) => {
|
|
234
|
+
if (n.length === 0)
|
|
235
|
+
return [];
|
|
236
|
+
let r = Object.assign([], n);
|
|
237
|
+
return n.forEach((s) => {
|
|
238
|
+
const d = e.children(s), c = R(e, d);
|
|
239
|
+
r = [...r, ...c];
|
|
240
|
+
}), r;
|
|
241
|
+
}, "sorter"), oe = /* @__PURE__ */ w((e) => R(e, e.children()), "sortNodesByHierarchy"), T = /* @__PURE__ */ w(async (e, n, r, s, d, c) => {
|
|
242
|
+
t.warn("Graph in recursive render:XAX", X(n), d);
|
|
243
|
+
const o = n.graph().rankdir;
|
|
244
|
+
t.trace("Dir in recursive render - dir:", o);
|
|
245
|
+
const l = e.insert("g").attr("class", "root");
|
|
246
|
+
n.nodes() ? t.info("Recursive render XXX", n.nodes()) : t.info("No nodes found for", n), n.edges().length > 0 && t.info("Recursive edges", n.edge(n.edges()[0]));
|
|
247
|
+
const f = l.insert("g").attr("class", "clusters"), E = l.insert("g").attr("class", "edgePaths"), C = l.insert("g").attr("class", "edgeLabels"), h = l.insert("g").attr("class", "nodes");
|
|
248
|
+
await Promise.all(
|
|
249
|
+
n.nodes().map(async function(g) {
|
|
250
|
+
const a = n.node(g);
|
|
251
|
+
if (d !== void 0) {
|
|
252
|
+
const i = JSON.parse(JSON.stringify(d.clusterData));
|
|
253
|
+
t.trace(
|
|
254
|
+
`Setting data for parent cluster XXX
|
|
255
|
+
Node.id = `,
|
|
256
|
+
g,
|
|
257
|
+
`
|
|
258
|
+
data=`,
|
|
259
|
+
i.height,
|
|
260
|
+
`
|
|
261
|
+
Parent cluster`,
|
|
262
|
+
d.height
|
|
263
|
+
), n.setNode(d.id, i), n.parent(g) || (t.trace("Setting parent", g, d.id), n.setParent(g, d.id, i));
|
|
264
|
+
}
|
|
265
|
+
if (t.info("(Insert) Node XXX" + g + ": " + JSON.stringify(n.node(g))), a != null && a.clusterNode) {
|
|
266
|
+
t.info("Cluster identified XBX", g, a.width, n.node(g));
|
|
267
|
+
const { ranksep: i, nodesep: v } = n.graph();
|
|
268
|
+
a.graph.setGraph({
|
|
269
|
+
...a.graph.graph(),
|
|
270
|
+
ranksep: i + 25,
|
|
271
|
+
nodesep: v
|
|
272
|
+
});
|
|
273
|
+
const m = await T(
|
|
274
|
+
h,
|
|
275
|
+
a.graph,
|
|
276
|
+
r,
|
|
277
|
+
s,
|
|
278
|
+
n.node(g),
|
|
279
|
+
c
|
|
280
|
+
), b = m.elem;
|
|
281
|
+
_(a, b), a.diff = m.diff || 0, t.info(
|
|
282
|
+
"New compound node after recursive render XAX",
|
|
283
|
+
g,
|
|
284
|
+
"width",
|
|
285
|
+
// node,
|
|
286
|
+
a.width,
|
|
287
|
+
"height",
|
|
288
|
+
a.height
|
|
289
|
+
// node.x,
|
|
290
|
+
// node.y
|
|
291
|
+
), H(b, a);
|
|
292
|
+
} else
|
|
293
|
+
n.children(g).length > 0 ? (t.trace(
|
|
294
|
+
"Cluster - the non recursive path XBX",
|
|
295
|
+
g,
|
|
296
|
+
a.id,
|
|
297
|
+
a,
|
|
298
|
+
a.width,
|
|
299
|
+
"Graph:",
|
|
300
|
+
n
|
|
301
|
+
), t.trace(S(a.id, n)), u.set(a.id, { id: S(a.id, n), node: a })) : (t.trace("Node - the non recursive path XAX", g, h, n.node(g), o), await $(h, n.node(g), { config: c, dir: o }));
|
|
302
|
+
})
|
|
303
|
+
), await (/* @__PURE__ */ w(async () => {
|
|
304
|
+
const g = n.edges().map(async function(a) {
|
|
305
|
+
const i = n.edge(a.v, a.w, a.name);
|
|
306
|
+
t.info("Edge " + a.v + " -> " + a.w + ": " + JSON.stringify(a)), t.info("Edge " + a.v + " -> " + a.w + ": ", a, " ", JSON.stringify(n.edge(a))), t.info(
|
|
307
|
+
"Fix",
|
|
308
|
+
u,
|
|
309
|
+
"ids:",
|
|
310
|
+
a.v,
|
|
311
|
+
a.w,
|
|
312
|
+
"Translating: ",
|
|
313
|
+
u.get(a.v),
|
|
314
|
+
u.get(a.w)
|
|
315
|
+
), await q(C, i);
|
|
316
|
+
});
|
|
317
|
+
await Promise.all(g);
|
|
318
|
+
}, "processEdges"))(), t.info("Graph before layout:", JSON.stringify(X(n))), t.info("############################################# XXX"), t.info("### Layout ### XXX"), t.info("############################################# XXX"), V(n), t.info("Graph after layout:", JSON.stringify(X(n)));
|
|
319
|
+
let p = 0, { subGraphTitleTotalMargin: y } = z(c);
|
|
320
|
+
return await Promise.all(
|
|
321
|
+
oe(n).map(async function(g) {
|
|
322
|
+
var a;
|
|
323
|
+
const i = n.node(g);
|
|
324
|
+
if (t.info(
|
|
325
|
+
"Position XBX => " + g + ": (" + i.x,
|
|
326
|
+
"," + i.y,
|
|
327
|
+
") width: ",
|
|
328
|
+
i.width,
|
|
329
|
+
" height: ",
|
|
330
|
+
i.height
|
|
331
|
+
), i != null && i.clusterNode)
|
|
332
|
+
i.y += y, t.info(
|
|
333
|
+
"A tainted cluster node XBX1",
|
|
334
|
+
g,
|
|
335
|
+
i.id,
|
|
336
|
+
i.width,
|
|
337
|
+
i.height,
|
|
338
|
+
i.x,
|
|
339
|
+
i.y,
|
|
340
|
+
n.parent(g)
|
|
341
|
+
), u.get(i.id).node = i, D(i);
|
|
342
|
+
else if (n.children(g).length > 0) {
|
|
343
|
+
t.info(
|
|
344
|
+
"A pure cluster node XBX1",
|
|
345
|
+
g,
|
|
346
|
+
i.id,
|
|
347
|
+
i.x,
|
|
348
|
+
i.y,
|
|
349
|
+
i.width,
|
|
350
|
+
i.height,
|
|
351
|
+
n.parent(g)
|
|
352
|
+
), i.height += y, n.node(i.parentId);
|
|
353
|
+
const v = (i == null ? void 0 : i.padding) / 2 || 0, m = ((a = i == null ? void 0 : i.labelBBox) == null ? void 0 : a.height) || 0, b = m - v || 0;
|
|
354
|
+
t.debug("OffsetY", b, "labelHeight", m, "halfPadding", v), await K(f, i), u.get(i.id).node = i;
|
|
355
|
+
} else {
|
|
356
|
+
const v = n.node(i.parentId);
|
|
357
|
+
i.y += y / 2, t.info(
|
|
358
|
+
"A regular node XBX1 - using the padding",
|
|
359
|
+
i.id,
|
|
360
|
+
"parent",
|
|
361
|
+
i.parentId,
|
|
362
|
+
i.width,
|
|
363
|
+
i.height,
|
|
364
|
+
i.x,
|
|
365
|
+
i.y,
|
|
366
|
+
"offsetY",
|
|
367
|
+
i.offsetY,
|
|
368
|
+
"parent",
|
|
369
|
+
v,
|
|
370
|
+
v == null ? void 0 : v.offsetY,
|
|
371
|
+
i
|
|
372
|
+
), D(i);
|
|
373
|
+
}
|
|
374
|
+
})
|
|
375
|
+
), n.edges().forEach(function(g) {
|
|
376
|
+
const a = n.edge(g);
|
|
377
|
+
t.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(a), a), a.points.forEach((b) => b.y += y / 2);
|
|
378
|
+
const i = n.node(g.v);
|
|
379
|
+
var v = n.node(g.w);
|
|
380
|
+
const m = Q(E, a, u, r, i, v, s);
|
|
381
|
+
U(a, m);
|
|
382
|
+
}), n.nodes().forEach(function(g) {
|
|
383
|
+
const a = n.node(g);
|
|
384
|
+
t.info(g, a.type, a.diff), a.isGroup && (p = a.diff);
|
|
385
|
+
}), t.warn("Returning from recursive render XAX", l, p), { elem: l, diff: p };
|
|
386
|
+
}, "recursiveRender"), ue = /* @__PURE__ */ w(async (e, n) => {
|
|
387
|
+
var r, s, d, c, o, l;
|
|
388
|
+
const f = new k({
|
|
389
|
+
multigraph: !0,
|
|
390
|
+
compound: !0
|
|
391
|
+
}).setGraph({
|
|
392
|
+
rankdir: e.direction,
|
|
393
|
+
nodesep: ((r = e.config) == null ? void 0 : r.nodeSpacing) || ((d = (s = e.config) == null ? void 0 : s.flowchart) == null ? void 0 : d.nodeSpacing) || e.nodeSpacing,
|
|
394
|
+
ranksep: ((c = e.config) == null ? void 0 : c.rankSpacing) || ((l = (o = e.config) == null ? void 0 : o.flowchart) == null ? void 0 : l.rankSpacing) || e.rankSpacing,
|
|
395
|
+
marginx: 8,
|
|
396
|
+
marginy: 8
|
|
397
|
+
}).setDefaultEdgeLabel(function() {
|
|
398
|
+
return {};
|
|
399
|
+
}), E = n.select("g");
|
|
400
|
+
L(E, e.markers, e.type, e.diagramId), M(), j(), F(), ne(), e.nodes.forEach((h) => {
|
|
401
|
+
f.setNode(h.id, { ...h }), h.parentId && f.setParent(h.id, h.parentId);
|
|
402
|
+
}), t.debug("Edges:", e.edges), e.edges.forEach((h) => {
|
|
403
|
+
if (h.start === h.end) {
|
|
404
|
+
const p = h.start, y = p + "---" + p + "---1", g = p + "---" + p + "---2", a = f.node(p);
|
|
405
|
+
f.setNode(y, {
|
|
406
|
+
domId: y,
|
|
407
|
+
id: y,
|
|
408
|
+
parentId: a.parentId,
|
|
409
|
+
labelStyle: "",
|
|
410
|
+
label: "",
|
|
411
|
+
padding: 0,
|
|
412
|
+
shape: "labelRect",
|
|
413
|
+
// shape: 'rect',
|
|
414
|
+
style: "",
|
|
415
|
+
width: 10,
|
|
416
|
+
height: 10
|
|
417
|
+
}), f.setParent(y, a.parentId), f.setNode(g, {
|
|
418
|
+
domId: g,
|
|
419
|
+
id: g,
|
|
420
|
+
parentId: a.parentId,
|
|
421
|
+
labelStyle: "",
|
|
422
|
+
padding: 0,
|
|
423
|
+
// shape: 'rect',
|
|
424
|
+
shape: "labelRect",
|
|
425
|
+
label: "",
|
|
426
|
+
style: "",
|
|
427
|
+
width: 10,
|
|
428
|
+
height: 10
|
|
429
|
+
}), f.setParent(g, a.parentId);
|
|
430
|
+
const i = structuredClone(h), v = structuredClone(h), m = structuredClone(h);
|
|
431
|
+
i.label = "", i.arrowTypeEnd = "none", i.id = p + "-cyclic-special-1", v.arrowTypeEnd = "none", v.id = p + "-cyclic-special-mid", m.label = "", a.isGroup && (i.fromCluster = p, m.toCluster = p), m.id = p + "-cyclic-special-2", f.setEdge(p, y, i, p + "-cyclic-special-0"), f.setEdge(y, g, v, p + "-cyclic-special-1"), f.setEdge(g, p, m, p + "-cyc<lic-special-2");
|
|
432
|
+
} else
|
|
433
|
+
f.setEdge(h.start, h.end, { ...h }, h.id);
|
|
434
|
+
}), t.warn("Graph at first:", JSON.stringify(X(f))), ie(f), t.warn("Graph after XAX:", JSON.stringify(X(f)));
|
|
435
|
+
const C = Y();
|
|
436
|
+
await T(
|
|
437
|
+
E,
|
|
438
|
+
f,
|
|
439
|
+
e.type,
|
|
440
|
+
e.diagramId,
|
|
441
|
+
void 0,
|
|
442
|
+
C
|
|
443
|
+
);
|
|
444
|
+
}, "render");
|
|
445
|
+
export {
|
|
446
|
+
ue as render
|
|
447
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { m as B } from "./chunk-TMUBEWPD-C22TGOO0-Bl2u--DY.js";
|
|
2
|
+
import { aB as S, a5 as D, a6 as T, al as W, am as z, a7 as P, a8 as A, _ as i, l as x, aC as $, aD as F, ar as v, aW as E, ag as R } from "./index-B_RqyDIa.js";
|
|
3
|
+
import { D as Y } from "./mermaid-parser.core-DxgZuQQq-uP-grJig.js";
|
|
4
|
+
var C = {
|
|
5
|
+
packet: []
|
|
6
|
+
}, m = structuredClone(C), _ = S.packet, H = /* @__PURE__ */ i(() => {
|
|
7
|
+
const t = $({
|
|
8
|
+
..._,
|
|
9
|
+
...F().packet
|
|
10
|
+
});
|
|
11
|
+
return t.showBits && (t.paddingY += 10), t;
|
|
12
|
+
}, "getConfig"), L = /* @__PURE__ */ i(() => m.packet, "getPacket"), M = /* @__PURE__ */ i((t) => {
|
|
13
|
+
t.length > 0 && m.packet.push(t);
|
|
14
|
+
}, "pushWord"), I = /* @__PURE__ */ i(() => {
|
|
15
|
+
v(), m = structuredClone(C);
|
|
16
|
+
}, "clear"), u = {
|
|
17
|
+
pushWord: M,
|
|
18
|
+
getPacket: L,
|
|
19
|
+
getConfig: H,
|
|
20
|
+
clear: I,
|
|
21
|
+
setAccTitle: D,
|
|
22
|
+
getAccTitle: T,
|
|
23
|
+
setDiagramTitle: W,
|
|
24
|
+
getDiagramTitle: z,
|
|
25
|
+
getAccDescription: P,
|
|
26
|
+
setAccDescription: A
|
|
27
|
+
}, X = 1e4, j = /* @__PURE__ */ i((t) => {
|
|
28
|
+
B(t, u);
|
|
29
|
+
let e = -1, o = [], s = 1;
|
|
30
|
+
const { bitsPerRow: n } = u.getConfig();
|
|
31
|
+
for (let { start: a, end: r, label: p } of t.blocks) {
|
|
32
|
+
if (r && r < a)
|
|
33
|
+
throw new Error(`Packet block ${a} - ${r} is invalid. End must be greater than start.`);
|
|
34
|
+
if (a !== e + 1)
|
|
35
|
+
throw new Error(
|
|
36
|
+
`Packet block ${a} - ${r ?? a} is not contiguous. It should start from ${e + 1}.`
|
|
37
|
+
);
|
|
38
|
+
for (e = r ?? a, x.debug(`Packet block ${a} - ${e} with label ${p}`); o.length <= n + 1 && u.getPacket().length < X; ) {
|
|
39
|
+
const [f, c] = q({ start: a, end: r, label: p }, s, n);
|
|
40
|
+
if (o.push(f), f.end + 1 === s * n && (u.pushWord(o), o = [], s++), !c)
|
|
41
|
+
break;
|
|
42
|
+
({ start: a, end: r, label: p } = c);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
u.pushWord(o);
|
|
46
|
+
}, "populate"), q = /* @__PURE__ */ i((t, e, o) => {
|
|
47
|
+
if (t.end === void 0 && (t.end = t.start), t.start > t.end)
|
|
48
|
+
throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);
|
|
49
|
+
return t.end + 1 <= e * o ? [t, void 0] : [
|
|
50
|
+
{
|
|
51
|
+
start: t.start,
|
|
52
|
+
end: e * o - 1,
|
|
53
|
+
label: t.label
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
start: e * o,
|
|
57
|
+
end: t.end,
|
|
58
|
+
label: t.label
|
|
59
|
+
}
|
|
60
|
+
];
|
|
61
|
+
}, "getNextFittingBlock"), G = {
|
|
62
|
+
parse: /* @__PURE__ */ i(async (t) => {
|
|
63
|
+
const e = await Y("packet", t);
|
|
64
|
+
x.debug(e), j(e);
|
|
65
|
+
}, "parse")
|
|
66
|
+
}, J = /* @__PURE__ */ i((t, e, o, s) => {
|
|
67
|
+
const n = s.db, a = n.getConfig(), { rowHeight: r, paddingY: p, bitWidth: f, bitsPerRow: c } = a, h = n.getPacket(), l = n.getDiagramTitle(), g = r + p, d = g * (h.length + 1) - (l ? 0 : r), k = f * c + 2, b = E(e);
|
|
68
|
+
b.attr("viewbox", `0 0 ${k} ${d}`), R(b, d, k, a.useMaxWidth);
|
|
69
|
+
for (const [w, y] of h.entries())
|
|
70
|
+
K(b, y, w, a);
|
|
71
|
+
b.append("text").text(l).attr("x", k / 2).attr("y", d - g / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle");
|
|
72
|
+
}, "draw"), K = /* @__PURE__ */ i((t, e, o, { rowHeight: s, paddingX: n, paddingY: a, bitWidth: r, bitsPerRow: p, showBits: f }) => {
|
|
73
|
+
const c = t.append("g"), h = o * (s + a) + a;
|
|
74
|
+
for (const l of e) {
|
|
75
|
+
const g = l.start % p * r + 1, d = (l.end - l.start + 1) * r - n;
|
|
76
|
+
if (c.append("rect").attr("x", g).attr("y", h).attr("width", d).attr("height", s).attr("class", "packetBlock"), c.append("text").attr("x", g + d / 2).attr("y", h + s / 2).attr("class", "packetLabel").attr("dominant-baseline", "middle").attr("text-anchor", "middle").text(l.label), !f)
|
|
77
|
+
continue;
|
|
78
|
+
const k = l.end === l.start, b = h - 2;
|
|
79
|
+
c.append("text").attr("x", g + (k ? d / 2 : 0)).attr("y", b).attr("class", "packetByte start").attr("dominant-baseline", "auto").attr("text-anchor", k ? "middle" : "start").text(l.start), k || c.append("text").attr("x", g + d).attr("y", b).attr("class", "packetByte end").attr("dominant-baseline", "auto").attr("text-anchor", "end").text(l.end);
|
|
80
|
+
}
|
|
81
|
+
}, "drawWord"), N = { draw: J }, O = {
|
|
82
|
+
byteFontSize: "10px",
|
|
83
|
+
startByteColor: "black",
|
|
84
|
+
endByteColor: "black",
|
|
85
|
+
labelColor: "black",
|
|
86
|
+
labelFontSize: "12px",
|
|
87
|
+
titleColor: "black",
|
|
88
|
+
titleFontSize: "14px",
|
|
89
|
+
blockStrokeColor: "black",
|
|
90
|
+
blockStrokeWidth: "1",
|
|
91
|
+
blockFillColor: "#efefef"
|
|
92
|
+
}, U = /* @__PURE__ */ i(({ packet: t } = {}) => {
|
|
93
|
+
const e = $(O, t);
|
|
94
|
+
return `
|
|
95
|
+
.packetByte {
|
|
96
|
+
font-size: ${e.byteFontSize};
|
|
97
|
+
}
|
|
98
|
+
.packetByte.start {
|
|
99
|
+
fill: ${e.startByteColor};
|
|
100
|
+
}
|
|
101
|
+
.packetByte.end {
|
|
102
|
+
fill: ${e.endByteColor};
|
|
103
|
+
}
|
|
104
|
+
.packetLabel {
|
|
105
|
+
fill: ${e.labelColor};
|
|
106
|
+
font-size: ${e.labelFontSize};
|
|
107
|
+
}
|
|
108
|
+
.packetTitle {
|
|
109
|
+
fill: ${e.titleColor};
|
|
110
|
+
font-size: ${e.titleFontSize};
|
|
111
|
+
}
|
|
112
|
+
.packetBlock {
|
|
113
|
+
stroke: ${e.blockStrokeColor};
|
|
114
|
+
stroke-width: ${e.blockStrokeWidth};
|
|
115
|
+
fill: ${e.blockFillColor};
|
|
116
|
+
}
|
|
117
|
+
`;
|
|
118
|
+
}, "styles"), tt = {
|
|
119
|
+
parser: G,
|
|
120
|
+
db: u,
|
|
121
|
+
renderer: N,
|
|
122
|
+
styles: U
|
|
123
|
+
};
|
|
124
|
+
export {
|
|
125
|
+
tt as diagram
|
|
126
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
const n = Object.freeze(JSON.parse('{"displayName":"Diff","name":"diff","patterns":[{"captures":{"1":{"name":"punctuation.definition.separator.diff"}},"match":"^((\\\\*{15})|(={67})|(-{3}))$\\\\n?","name":"meta.separator.diff"},{"match":"^\\\\d+(,\\\\d+)*(a|d|c)\\\\d+(,\\\\d+)*$\\\\n?","name":"meta.diff.range.normal"},{"captures":{"1":{"name":"punctuation.definition.range.diff"},"2":{"name":"meta.toc-list.line-number.diff"},"3":{"name":"punctuation.definition.range.diff"}},"match":"^(@@)\\\\s*(.+?)\\\\s*(@@)($\\\\n?)?","name":"meta.diff.range.unified"},{"captures":{"3":{"name":"punctuation.definition.range.diff"},"4":{"name":"punctuation.definition.range.diff"},"6":{"name":"punctuation.definition.range.diff"},"7":{"name":"punctuation.definition.range.diff"}},"match":"^(((\\\\-{3}) .+ (\\\\-{4}))|((\\\\*{3}) .+ (\\\\*{4})))$\\\\n?","name":"meta.diff.range.context"},{"match":"^diff --git a/.*$\\\\n?","name":"meta.diff.header.git"},{"match":"^diff (-|\\\\S+\\\\s+\\\\S+).*$\\\\n?","name":"meta.diff.header.command"},{"captures":{"4":{"name":"punctuation.definition.from-file.diff"},"6":{"name":"punctuation.definition.from-file.diff"},"7":{"name":"punctuation.definition.from-file.diff"}},"match":"(^(((-{3}) .+)|((\\\\*{3}) .+))$\\\\n?|^(={4}) .+(?= - ))","name":"meta.diff.header.from-file"},{"captures":{"2":{"name":"punctuation.definition.to-file.diff"},"3":{"name":"punctuation.definition.to-file.diff"},"4":{"name":"punctuation.definition.to-file.diff"}},"match":"(^(\\\\+{3}) .+$\\\\n?| (-) .* (={4})$\\\\n?)","name":"meta.diff.header.to-file"},{"captures":{"3":{"name":"punctuation.definition.inserted.diff"},"6":{"name":"punctuation.definition.inserted.diff"}},"match":"^(((>)( .*)?)|((\\\\+).*))$\\\\n?","name":"markup.inserted.diff"},{"captures":{"1":{"name":"punctuation.definition.changed.diff"}},"match":"^(!).*$\\\\n?","name":"markup.changed.diff"},{"captures":{"3":{"name":"punctuation.definition.deleted.diff"},"6":{"name":"punctuation.definition.deleted.diff"}},"match":"^(((<)( .*)?)|((-).*))$\\\\n?","name":"markup.deleted.diff"},{"begin":"^(#)","captures":{"1":{"name":"punctuation.definition.comment.diff"}},"comment":"Git produces unified diffs with embedded comments\\"","end":"\\\\n","name":"comment.line.number-sign.diff"},{"match":"^index [0-9a-f]{7,40}\\\\.\\\\.[0-9a-f]{7,40}.*$\\\\n?","name":"meta.diff.index.git"},{"captures":{"1":{"name":"punctuation.separator.key-value.diff"},"2":{"name":"meta.toc-list.file-name.diff"}},"match":"^Index(:) (.+)$\\\\n?","name":"meta.diff.index"},{"match":"^Only in .*: .*$\\\\n?","name":"meta.diff.only-in"}],"scopeName":"source.diff"}')), e = [
|
|
2
|
+
n
|
|
3
|
+
];
|
|
4
|
+
export {
|
|
5
|
+
e as default
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
const e = Object.freeze(JSON.parse(`{"displayName":"Dockerfile","name":"docker","patterns":[{"captures":{"1":{"name":"keyword.other.special-method.dockerfile"},"2":{"name":"keyword.other.special-method.dockerfile"}},"match":"^\\\\s*\\\\b(?i:(FROM))\\\\b.*?\\\\b(?i:(AS))\\\\b"},{"captures":{"1":{"name":"keyword.control.dockerfile"},"2":{"name":"keyword.other.special-method.dockerfile"}},"match":"^\\\\s*(?i:(ONBUILD)\\\\s+)?(?i:(ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR))\\\\s"},{"captures":{"1":{"name":"keyword.operator.dockerfile"},"2":{"name":"keyword.other.special-method.dockerfile"}},"match":"^\\\\s*(?i:(ONBUILD)\\\\s+)?(?i:(CMD|ENTRYPOINT))\\\\s"},{"include":"#string-character-escape"},{"begin":"\\"","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.dockerfile"}},"end":"\\"","endCaptures":{"1":{"name":"punctuation.definition.string.end.dockerfile"}},"name":"string.quoted.double.dockerfile","patterns":[{"include":"#string-character-escape"}]},{"begin":"'","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.dockerfile"}},"end":"'","endCaptures":{"1":{"name":"punctuation.definition.string.end.dockerfile"}},"name":"string.quoted.single.dockerfile","patterns":[{"include":"#string-character-escape"}]},{"captures":{"1":{"name":"punctuation.whitespace.comment.leading.dockerfile"},"2":{"name":"comment.line.number-sign.dockerfile"},"3":{"name":"punctuation.definition.comment.dockerfile"}},"comment":"comment.line","match":"^(\\\\s*)((#).*$\\\\n?)"}],"repository":{"string-character-escape":{"match":"\\\\\\\\.","name":"constant.character.escaped.dockerfile"}},"scopeName":"source.dockerfile","aliases":["dockerfile"]}`)), n = [
|
|
2
|
+
e
|
|
3
|
+
];
|
|
4
|
+
export {
|
|
5
|
+
n as default
|
|
6
|
+
};
|