@kong-ui-public/documentation 1.8.13 → 1.8.14-pr.4048.7a10d83bb.0
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/package.json +2 -2
- package/dist/abnfDiagram-VCTEODGH-Bzbg7AHk-DFERbIEu.js +0 -92
- package/dist/arc-CKhg5DVn-BIpMje7c.js +0 -80
- package/dist/architectureDiagram-5GKGNRK7-CqHVyBRI-CLWcRmoG.js +0 -4149
- package/dist/astro-DdQ3Kp7Q-BDE5qFXd.js +0 -18
- package/dist/blockDiagram-I7D4REHJ-DWFqHR0L-D8v5LhXM.js +0 -2029
- package/dist/c-lfOsiBpu-DMPKLUI8.js +0 -4
- package/dist/c4Diagram-7LVT6UL2-DXHigzTJ-BR9440iK.js +0 -3067
- package/dist/catppuccin-latte-D9NPLB7Y-sAlQrrP2.js +0 -4
- package/dist/channel-DUDXYB-g-BsX3Acdu.js +0 -5
- package/dist/chunk-2Q5K7J3B-CQFXhYzi-C3CTUgHo.js +0 -12
- package/dist/chunk-5VM5RSS4-DF_fkndM-uFSHkP_V.js +0 -19
- package/dist/chunk-F27PBJKO-Bf2CKIqN-CUI4z39H.js +0 -65
- package/dist/chunk-IMKFNOWR-DIsz_YLV-B6u2fLNJ.js +0 -2116
- package/dist/chunk-JWPE2WC7-DI69CthA-D_FsPQj-.js +0 -8
- package/dist/chunk-POPQ4Y6H-DycI9Jzm-BWixWzlU.js +0 -24
- package/dist/chunk-SHT3W25Y-CKxDgOBI-OOdqZuVE.js +0 -4307
- package/dist/chunk-SVP7TREG-tW_qYlvV-vP5bsK2H.js +0 -500
- package/dist/chunk-TICWLB2K-CuiDrX3P-WR-FPNea.js +0 -3451
- package/dist/chunk-XXDRQBXY-CSrEKR2C-C6SaSSCC.js +0 -8
- package/dist/classDiagram-ZZMXUADV-WzcguFxl-CKKn1Tfx.js +0 -17
- package/dist/classDiagram-v2-VYDZK3BY-jdAXYY7W-CKKn1Tfx.js +0 -17
- package/dist/cose-bilkent-JH36ORCC-DbS7GVMv-bbQOsy5Y.js +0 -2256
- package/dist/csharp-RRkgh3c4-lim_vKPd.js +0 -4
- package/dist/css-BbwcBM_4-B_2PRTA_.js +0 -4
- package/dist/csv-DFU5sVkH-BPWcOTV4.js +0 -4
- package/dist/cynefin-OW5HDTMX-CmxQwqmf-D_GdoNIu.js +0 -21781
- package/dist/cynefinDiagram-5FMLGOSQ-BNb88xpJ-DfS9O7P4.js +0 -351
- package/dist/cytoscape.esm-YSf_2rtb-CoO8mT3p.js +0 -18279
- package/dist/dagre-C9xJrfGe-Di-1Ikh0.js +0 -1667
- package/dist/dagre-GXQ25YYZ-uiXfyLw2-PU-qeT6_.js +0 -429
- package/dist/defaultLocale-TbxLDlcU-BrdwcF9K.js +0 -180
- package/dist/diagram-S7CK7UJ4-g67BXvGR-Cp9bzjGj.js +0 -303
- package/dist/diagram-UQ7AKVKN-DfJJIsVs-CC7ekguS.js +0 -210
- package/dist/diagram-VSXAHHWV-DmtFfqWN-C9ZLHKzj.js +0 -439
- package/dist/diagram-VX7I27RA--gfQ90BY-QNtwG6Ck.js +0 -477
- package/dist/diagram-Z3DM3KII-Cu_rSHu0-CCCsIuz4.js +0 -127
- package/dist/diff-D_LJiFgV-DenOJuyV.js +0 -4
- package/dist/docker-DMpUQ2UE-xX8PDoIv.js +0 -4
- package/dist/documentation.es.js +0 -7
- package/dist/documentation.umd.js +0 -3715
- package/dist/ebnfDiagram-PWID7BFC-B_qfACMJ-D_Xjruh2.js +0 -109
- package/dist/erDiagram-RLTQ6QDP-Dt9efGmz-BPS1Iwl5.js +0 -2042
- package/dist/flowDiagram-HODETNUW-sAcaB3rt-Ci8x-zG0.js +0 -6
- package/dist/ganttDiagram-EL5Y4UJY-CtWGP-hX-qar4oLEq.js +0 -3098
- package/dist/git-commit--2NDNcyW-Dw9_h8sQ.js +0 -5
- package/dist/git-rebase-CbNvxADk-DAgBrkyL.js +0 -5
- package/dist/gitGraphDiagram-WWUBYQGX-B7B7IG_5-x8UcOce8.js +0 -737
- package/dist/go-BEdBk4fh-DqSXHrGo.js +0 -4
- package/dist/graphql-BMuT9GwB-BP9pcQru.js +0 -14
- package/dist/haml-D3QmTYiV-BTaBXoPr.js +0 -10
- package/dist/handlebars-C_aYHp26-CWcrQHYv.js +0 -14
- package/dist/haskell-DSSJ-2AO-BlmVjKNy.js +0 -4
- package/dist/html-derivative-DgZQ_xNe-BAs__2u-.js +0 -5
- package/dist/html-zcQqUZxh-Dg8OkMBp.js +0 -10
- package/dist/http-BGkfDG8i-lqXytFlH.js +0 -14
- package/dist/index-BaAWoj3P.js +0 -43522
- package/dist/infoDiagram-27XIBGKW-DAx9hub5-CDUrF89O.js +0 -18
- package/dist/ini-CmgEGOBJ-70PBzbbb.js +0 -4
- package/dist/init-Cgg2UTSf-BsHkAom2.js +0 -15
- package/dist/ishikawaDiagram-5VMMS53U-CnBB9iXH-2YyZ3Nxy.js +0 -729
- package/dist/java-CaG1IqbK-D6YBp1XX.js +0 -4
- package/dist/javascript--0qAxhnA-BRPKgr3C.js +0 -4
- package/dist/journeyDiagram-3NMN7TZE-B0a4pOJX-CgtsuE-Y.js +0 -909
- package/dist/json-DVwBUiza-D8uacQj0.js +0 -4
- package/dist/json5-D2Eltym1-Biib5ALh.js +0 -4
- package/dist/jsonc-BPIJyZ7u-BZEKkMok.js +0 -4
- package/dist/jsonl-BGkjXns2-BG2V-IA2.js +0 -4
- package/dist/jsx-cVAJ0Z2c-Cl0AMtmu.js +0 -4
- package/dist/kanban-definition-UXKFOSKX-BGnOZMUl-CHT2EG_7.js +0 -1029
- package/dist/katex-Be3DWdAP-BWcdC2Xb.js +0 -22287
- package/dist/kotlin-CQsNEM2o-Dy_91eL4.js +0 -4
- package/dist/latex-g3NZbvcl-tKQf8TuW.js +0 -5
- package/dist/less-9LYkHheD-tcNg8M2_.js +0 -4
- package/dist/linear-Cf872ac2-BjGvLlX5.js +0 -254
- package/dist/liquid-CG3ph2-5-wZo8nDay.js +0 -14
- package/dist/lua-BdA7_iyX-Fg4s9W4F.js +0 -5
- package/dist/make-CE9Hryyp-CrUl7LOH.js +0 -4
- package/dist/markdown-Gqx6-FHJ-Bcqt-5kX.js +0 -4
- package/dist/material-theme-darker-DL4lHZSa-DMHCIvq5.js +0 -4
- package/dist/mdc-C-RLGlI2-DzcUIqJQ.js +0 -12
- package/dist/mdx-DswfiFg4-CK6jOqmu.js +0 -4
- package/dist/mermaid-CAl3BhSL-CpQh0Vft.js +0 -4
- package/dist/mindmap-definition-YA3MSWOX-D0iYuN9C-B3uI77eT.js +0 -1026
- package/dist/nginx-CokYOiS8-DjML3dpY.js +0 -5
- package/dist/objective-c-DK-EKgyd-C809HPrX.js +0 -4
- package/dist/ordinal-CNzaYghg-B_JXdapq.js +0 -63
- package/dist/pascal-CRtegPzh-a8whuidZ.js +0 -4
- package/dist/pegDiagram-XKGWAZYB-6oG4KeYC-CG27veJ_.js +0 -104
- package/dist/perl-C45KUBhP-Q6opd9qO.js +0 -16
- package/dist/php-COzTb61D-DW91EkjY.js +0 -18
- package/dist/pieDiagram-E7YTZNPT-DsNO0m7t-CMKObJlC.js +0 -191
- package/dist/plsql-Bx7tup_v-BJoF2Vrf.js +0 -4
- package/dist/postcss-DjDdOEzv-DaHMm3XW.js +0 -4
- package/dist/powershell-BeUvHe6o-BC3uPZPS.js +0 -4
- package/dist/proto-DGLklcji-w0B_itsp.js +0 -4
- package/dist/pug-BQ5MM2xz-DMZvJUHt.js +0 -12
- package/dist/python-C_6ySqsv-D_5pfY__.js +0 -4
- package/dist/quadrantDiagram-AXDQQJYC-B6Dc7fje-C23uvcHP.js +0 -2046
- package/dist/r-CNL4a0Qi-pixge7f9.js +0 -4
- package/dist/railroadDiagram-O6MQD6OU-D8qLcD4O-B_Hr3s-n.js +0 -80
- package/dist/reg-D6txjqBF-bHAwx9Pm.js +0 -4
- package/dist/requirementDiagram-BXWQKSXE-Cx28BZaS-Bu-h1fa9.js +0 -2283
- package/dist/rst-xmthoFSf-BdN-iqJu.js +0 -20
- package/dist/ruby-CmwqiOyg-B5qGUHPy.js +0 -44
- package/dist/rust-BrRMzTsN-CaZtBt24.js +0 -4
- package/dist/sankeyDiagram-P5KCCOFB-CqEXebJJ-BrChTi-e.js +0 -948
- package/dist/sass-CL6GLiPQ-pslLeRRb.js +0 -4
- package/dist/scss-CiLZCexj-CladYQkr.js +0 -5
- package/dist/sequenceDiagram-WJ2MYXX4-Bs_1V5D1-Da6JW3KG.js +0 -4263
- package/dist/shellscript-Dfpezy65-BtH46UX7.js +0 -4
- package/dist/shellsession-CRcAC04a-BFLTslz7.js +0 -5
- package/dist/sizeCapture-INFHLROL-Bc4fS2u3-DMniWWy4.js +0 -46
- package/dist/splunk-MGILMmew-BP8P7eWt.js +0 -4
- package/dist/sql-D_W5grEC-Dcn2WLbD.js +0 -4
- package/dist/ssh-config-CFmUyPR7-BB1rrGb9.js +0 -4
- package/dist/stateDiagram-D77RDMKH-oTiwIYVV-BphZk0uR.js +0 -210
- package/dist/stateDiagram-v2-MP3YSRHH-gbAY2cmo-D78HyGx1.js +0 -17
- package/dist/style.css +0 -1
- package/dist/stylus-Kh83dApl-DAu5PNZ9.js +0 -4
- package/dist/svelte-HVIHTyhe-BdPJXyv7.js +0 -14
- package/dist/swift-B7Z-rXzN-CQtmhAMw.js +0 -4
- package/dist/swimlanes-42K2YHIH-BSXAPn2j-C7pTnVuk.js +0 -4983
- package/dist/swimlanesDiagram-VR7AAH4N-Ror_0lre-Di8OVgei.js +0 -17
- package/dist/timeline-definition-24CTP7MA-gOHmAY1H-aIgAzo7s.js +0 -1096
- package/dist/toml-CIQJnU5u-DjT9Bjqu.js +0 -4
- package/dist/tsx-DiMnnori-B-5hSr15.js +0 -4
- package/dist/twig-BXXOiPVV-CmgmU-L-.js +0 -18
- package/dist/types/components/DiscardChangesPrompt.vue.d.ts +0 -35
- package/dist/types/components/DiscardChangesPrompt.vue.d.ts.map +0 -1
- package/dist/types/components/DocumentationContent.vue.d.ts +0 -186
- package/dist/types/components/DocumentationContent.vue.d.ts.map +0 -1
- package/dist/types/components/DocumentationDisplay.vue.d.ts +0 -105
- package/dist/types/components/DocumentationDisplay.vue.d.ts.map +0 -1
- package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +0 -31
- package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +0 -1
- package/dist/types/components/ProductDocumentModal.vue.d.ts +0 -72
- package/dist/types/components/ProductDocumentModal.vue.d.ts.map +0 -1
- package/dist/types/composables/index.d.ts +0 -6
- package/dist/types/composables/index.d.ts.map +0 -1
- package/dist/types/composables/useI18n.d.ts +0 -9
- package/dist/types/composables/useI18n.d.ts.map +0 -1
- package/dist/types/external-links.d.ts +0 -5
- package/dist/types/external-links.d.ts.map +0 -1
- package/dist/types/helpers.d.ts +0 -8
- package/dist/types/helpers.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -7
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/types/document-list.d.ts +0 -28
- package/dist/types/types/document-list.d.ts.map +0 -1
- package/dist/types/types/document-modal.d.ts +0 -8
- package/dist/types/types/document-modal.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -3
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/typescript-DFf19o_s-B0ag8pir.js +0 -4
- package/dist/v-DbYZLS97-CAPuTPjr.js +0 -4
- package/dist/vb-DRaXf86R-Bx9Rwnco.js +0 -4
- package/dist/vennDiagram-4TSXK5OY-Cr4BWMuk-BjBvyxCC.js +0 -1911
- package/dist/viml-DgaHry3T-BeYQ8dZh.js +0 -4
- package/dist/vue-DPI5F0qT-D-Ahkoja.js +0 -22
- package/dist/vue-html-D7FCsiW2-DLSUNIPr.js +0 -5
- package/dist/wardleyDiagram-VM6X3IG4-a6H91k9Q-CsH4gQQ0.js +0 -639
- package/dist/wasm-DXa1gtBd-CfuK9YWP.js +0 -4
- package/dist/wgsl-Vcm3Lg52-C2IZ7ENh.js +0 -4
- package/dist/xml-DnOpIvRK-C-akVYiK.js +0 -5
- package/dist/xsl-K_2BlT3G-D3eRZGNO.js +0 -5
- package/dist/xychartDiagram-S5SC5T6Z-7mX_nPmO-CoM4SG9q.js +0 -2218
- package/dist/yaml-BswqmnDe-X78l_Ibz.js +0 -4
|
@@ -1,477 +0,0 @@
|
|
|
1
|
-
import { a as b, aj as pt, X as tt, z as Z, a2 as ht, V as ut, m as _, b$ as B, G as K, e as ft, t as mt, j as yt, k as gt, r as xt, n as St, L as vt, c0 as Ct, $ as bt } from "./index-BaAWoj3P.js";
|
|
2
|
-
import { s as Y } from "./ordinal-CNzaYghg-B_JXdapq.js";
|
|
3
|
-
import { v as E } from "./defaultLocale-TbxLDlcU-BrdwcF9K.js";
|
|
4
|
-
import { R as $t } from "./cynefin-OW5HDTMX-CmxQwqmf-D_GdoNIu.js";
|
|
5
|
-
import { t as wt } from "./chunk-JWPE2WC7-DI69CthA-D_FsPQj-.js";
|
|
6
|
-
import { r as Lt } from "./chunk-POPQ4Y6H-DycI9Jzm-BWixWzlU.js";
|
|
7
|
-
function Mt(e) {
|
|
8
|
-
var a = 0, r = e.children, l = r && r.length;
|
|
9
|
-
if (!l) a = 1;
|
|
10
|
-
else for (; --l >= 0; ) a += r[l].value;
|
|
11
|
-
e.value = a;
|
|
12
|
-
}
|
|
13
|
-
function kt() {
|
|
14
|
-
return this.eachAfter(Mt);
|
|
15
|
-
}
|
|
16
|
-
function Tt(e, a) {
|
|
17
|
-
let r = -1;
|
|
18
|
-
for (let l of this) e.call(a, l, ++r, this);
|
|
19
|
-
return this;
|
|
20
|
-
}
|
|
21
|
-
function zt(e, a) {
|
|
22
|
-
for (var r = this, l = [r], n, s, c = -1; r = l.pop(); ) if (e.call(a, r, ++c, this), n = r.children) for (s = n.length - 1; s >= 0; --s) l.push(n[s]);
|
|
23
|
-
return this;
|
|
24
|
-
}
|
|
25
|
-
function Ft(e, a) {
|
|
26
|
-
for (var r = this, l = [r], n = [], s, c, p, m = -1; r = l.pop(); ) if (n.push(r), s = r.children) for (c = 0, p = s.length; c < p; ++c) l.push(s[c]);
|
|
27
|
-
for (; r = n.pop(); ) e.call(a, r, ++m, this);
|
|
28
|
-
return this;
|
|
29
|
-
}
|
|
30
|
-
function Pt(e, a) {
|
|
31
|
-
let r = -1;
|
|
32
|
-
for (let l of this) if (e.call(a, l, ++r, this)) return l;
|
|
33
|
-
}
|
|
34
|
-
function At(e) {
|
|
35
|
-
return this.eachAfter(function(a) {
|
|
36
|
-
for (var r = +e(a.data) || 0, l = a.children, n = l && l.length; --n >= 0; ) r += l[n].value;
|
|
37
|
-
a.value = r;
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
function Nt(e) {
|
|
41
|
-
return this.eachBefore(function(a) {
|
|
42
|
-
a.children && a.children.sort(e);
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
function Bt(e) {
|
|
46
|
-
for (var a = this, r = Vt(a, e), l = [a]; a !== r; ) a = a.parent, l.push(a);
|
|
47
|
-
for (var n = l.length; e !== r; ) l.splice(n, 0, e), e = e.parent;
|
|
48
|
-
return l;
|
|
49
|
-
}
|
|
50
|
-
function Vt(e, a) {
|
|
51
|
-
if (e === a) return e;
|
|
52
|
-
var r = e.ancestors(), l = a.ancestors(), n = null;
|
|
53
|
-
for (e = r.pop(), a = l.pop(); e === a; ) n = e, e = r.pop(), a = l.pop();
|
|
54
|
-
return n;
|
|
55
|
-
}
|
|
56
|
-
function Wt() {
|
|
57
|
-
for (var e = this, a = [e]; e = e.parent; ) a.push(e);
|
|
58
|
-
return a;
|
|
59
|
-
}
|
|
60
|
-
function Rt() {
|
|
61
|
-
return Array.from(this);
|
|
62
|
-
}
|
|
63
|
-
function Dt() {
|
|
64
|
-
var e = [];
|
|
65
|
-
return this.eachBefore(function(a) {
|
|
66
|
-
a.children || e.push(a);
|
|
67
|
-
}), e;
|
|
68
|
-
}
|
|
69
|
-
function It() {
|
|
70
|
-
var e = this, a = [];
|
|
71
|
-
return e.each(function(r) {
|
|
72
|
-
r !== e && a.push({
|
|
73
|
-
source: r.parent,
|
|
74
|
-
target: r
|
|
75
|
-
});
|
|
76
|
-
}), a;
|
|
77
|
-
}
|
|
78
|
-
function* Et() {
|
|
79
|
-
var e = this, a, r = [e], l, n, s;
|
|
80
|
-
do
|
|
81
|
-
for (a = r.reverse(), r = []; e = a.pop(); ) if (yield e, l = e.children) for (n = 0, s = l.length; n < s; ++n) r.push(l[n]);
|
|
82
|
-
while (r.length);
|
|
83
|
-
}
|
|
84
|
-
function et(e, a) {
|
|
85
|
-
e instanceof Map ? (e = [void 0, e], a === void 0 && (a = Ht)) : a === void 0 && (a = Gt);
|
|
86
|
-
for (var r = new Q(e), l, n = [r], s, c, p, m; l = n.pop(); ) if ((c = a(l.data)) && (m = (c = Array.from(c)).length)) for (l.children = c, p = m - 1; p >= 0; --p) n.push(s = c[p] = new Q(c[p])), s.parent = l, s.depth = l.depth + 1;
|
|
87
|
-
return r.eachBefore(Xt);
|
|
88
|
-
}
|
|
89
|
-
function jt() {
|
|
90
|
-
return et(this).eachBefore(Ot);
|
|
91
|
-
}
|
|
92
|
-
function Gt(e) {
|
|
93
|
-
return e.children;
|
|
94
|
-
}
|
|
95
|
-
function Ht(e) {
|
|
96
|
-
return Array.isArray(e) ? e[1] : null;
|
|
97
|
-
}
|
|
98
|
-
function Ot(e) {
|
|
99
|
-
e.data.value !== void 0 && (e.value = e.data.value), e.data = e.data.data;
|
|
100
|
-
}
|
|
101
|
-
function Xt(e) {
|
|
102
|
-
var a = 0;
|
|
103
|
-
do
|
|
104
|
-
e.height = a;
|
|
105
|
-
while ((e = e.parent) && e.height < ++a);
|
|
106
|
-
}
|
|
107
|
-
function Q(e) {
|
|
108
|
-
this.data = e, this.depth = this.height = 0, this.parent = null;
|
|
109
|
-
}
|
|
110
|
-
Q.prototype = et.prototype = {
|
|
111
|
-
constructor: Q,
|
|
112
|
-
count: kt,
|
|
113
|
-
each: Tt,
|
|
114
|
-
eachAfter: Ft,
|
|
115
|
-
eachBefore: zt,
|
|
116
|
-
find: Pt,
|
|
117
|
-
sum: At,
|
|
118
|
-
sort: Nt,
|
|
119
|
-
path: Bt,
|
|
120
|
-
ancestors: Wt,
|
|
121
|
-
descendants: Rt,
|
|
122
|
-
leaves: Dt,
|
|
123
|
-
links: It,
|
|
124
|
-
copy: jt,
|
|
125
|
-
[Symbol.iterator]: Et
|
|
126
|
-
};
|
|
127
|
-
function qt(e) {
|
|
128
|
-
if (typeof e != "function") throw Error();
|
|
129
|
-
return e;
|
|
130
|
-
}
|
|
131
|
-
function j() {
|
|
132
|
-
return 0;
|
|
133
|
-
}
|
|
134
|
-
function G(e) {
|
|
135
|
-
return function() {
|
|
136
|
-
return e;
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
function Kt(e) {
|
|
140
|
-
e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
|
|
141
|
-
}
|
|
142
|
-
function Qt(e, a, r, l, n) {
|
|
143
|
-
for (var s = e.children, c, p = -1, m = s.length, o = e.value && (l - a) / e.value; ++p < m; ) c = s[p], c.y0 = r, c.y1 = n, c.x0 = a, c.x1 = a += c.value * o;
|
|
144
|
-
}
|
|
145
|
-
function Ut(e, a, r, l, n) {
|
|
146
|
-
for (var s = e.children, c, p = -1, m = s.length, o = e.value && (n - r) / e.value; ++p < m; ) c = s[p], c.x0 = a, c.x1 = l, c.y0 = r, c.y1 = r += c.value * o;
|
|
147
|
-
}
|
|
148
|
-
var Jt = (1 + Math.sqrt(5)) / 2;
|
|
149
|
-
function Yt(e, a, r, l, n, s) {
|
|
150
|
-
for (var c = [], p = a.children, m, o, h = 0, v = 0, i = p.length, S, g, x = a.value, u, y, F, k, P, R, M; h < i; ) {
|
|
151
|
-
S = n - r, g = s - l;
|
|
152
|
-
do
|
|
153
|
-
u = p[v++].value;
|
|
154
|
-
while (!u && v < i);
|
|
155
|
-
for (y = F = u, R = Math.max(g / S, S / g) / (x * e), M = u * u * R, P = Math.max(F / M, M / y); v < i; ++v) {
|
|
156
|
-
if (u += o = p[v].value, o < y && (y = o), o > F && (F = o), M = u * u * R, k = Math.max(F / M, M / y), k > P) {
|
|
157
|
-
u -= o;
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
P = k;
|
|
161
|
-
}
|
|
162
|
-
c.push(m = {
|
|
163
|
-
value: u,
|
|
164
|
-
dice: S < g,
|
|
165
|
-
children: p.slice(h, v)
|
|
166
|
-
}), m.dice ? Qt(m, r, l, n, x ? l += g * u / x : s) : Ut(m, r, l, x ? r += S * u / x : n, s), x -= u, h = v;
|
|
167
|
-
}
|
|
168
|
-
return c;
|
|
169
|
-
}
|
|
170
|
-
var Zt = (function e(a) {
|
|
171
|
-
function r(l, n, s, c, p) {
|
|
172
|
-
Yt(a, l, n, s, c, p);
|
|
173
|
-
}
|
|
174
|
-
return r.ratio = function(l) {
|
|
175
|
-
return e((l = +l) > 1 ? l : 1);
|
|
176
|
-
}, r;
|
|
177
|
-
})(Jt);
|
|
178
|
-
function _t() {
|
|
179
|
-
var e = Zt, a = !1, r = 1, l = 1, n = [0], s = j, c = j, p = j, m = j, o = j;
|
|
180
|
-
function h(i) {
|
|
181
|
-
return i.x0 = i.y0 = 0, i.x1 = r, i.y1 = l, i.eachBefore(v), n = [0], a && i.eachBefore(Kt), i;
|
|
182
|
-
}
|
|
183
|
-
function v(i) {
|
|
184
|
-
var S = n[i.depth], g = i.x0 + S, x = i.y0 + S, u = i.x1 - S, y = i.y1 - S;
|
|
185
|
-
u < g && (g = u = (g + u) / 2), y < x && (x = y = (x + y) / 2), i.x0 = g, i.y0 = x, i.x1 = u, i.y1 = y, i.children && (S = n[i.depth + 1] = s(i) / 2, g += o(i) - S, x += c(i) - S, u -= p(i) - S, y -= m(i) - S, u < g && (g = u = (g + u) / 2), y < x && (x = y = (x + y) / 2), e(i, g, x, u, y));
|
|
186
|
-
}
|
|
187
|
-
return h.round = function(i) {
|
|
188
|
-
return arguments.length ? (a = !!i, h) : a;
|
|
189
|
-
}, h.size = function(i) {
|
|
190
|
-
return arguments.length ? (r = +i[0], l = +i[1], h) : [r, l];
|
|
191
|
-
}, h.tile = function(i) {
|
|
192
|
-
return arguments.length ? (e = qt(i), h) : e;
|
|
193
|
-
}, h.padding = function(i) {
|
|
194
|
-
return arguments.length ? h.paddingInner(i).paddingOuter(i) : h.paddingInner();
|
|
195
|
-
}, h.paddingInner = function(i) {
|
|
196
|
-
return arguments.length ? (s = typeof i == "function" ? i : G(+i), h) : s;
|
|
197
|
-
}, h.paddingOuter = function(i) {
|
|
198
|
-
return arguments.length ? h.paddingTop(i).paddingRight(i).paddingBottom(i).paddingLeft(i) : h.paddingTop();
|
|
199
|
-
}, h.paddingTop = function(i) {
|
|
200
|
-
return arguments.length ? (c = typeof i == "function" ? i : G(+i), h) : c;
|
|
201
|
-
}, h.paddingRight = function(i) {
|
|
202
|
-
return arguments.length ? (p = typeof i == "function" ? i : G(+i), h) : p;
|
|
203
|
-
}, h.paddingBottom = function(i) {
|
|
204
|
-
return arguments.length ? (m = typeof i == "function" ? i : G(+i), h) : m;
|
|
205
|
-
}, h.paddingLeft = function(i) {
|
|
206
|
-
return arguments.length ? (o = typeof i == "function" ? i : G(+i), h) : o;
|
|
207
|
-
}, h;
|
|
208
|
-
}
|
|
209
|
-
var W, nt = (W = class {
|
|
210
|
-
constructor() {
|
|
211
|
-
this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = ft, this.getAccTitle = mt, this.setDiagramTitle = yt, this.getDiagramTitle = gt, this.getAccDescription = xt, this.setAccDescription = St;
|
|
212
|
-
}
|
|
213
|
-
getNodes() {
|
|
214
|
-
return this.nodes;
|
|
215
|
-
}
|
|
216
|
-
getConfig() {
|
|
217
|
-
let a = vt, r = tt();
|
|
218
|
-
return Z({
|
|
219
|
-
...a.treemap,
|
|
220
|
-
...r.treemap ?? {}
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
addNode(a, r) {
|
|
224
|
-
this.nodes.push(a), this.levels.set(a, r), r === 0 && (this.outerNodes.push(a), this.root ??= a);
|
|
225
|
-
}
|
|
226
|
-
getRoot() {
|
|
227
|
-
return {
|
|
228
|
-
name: "",
|
|
229
|
-
children: this.outerNodes
|
|
230
|
-
};
|
|
231
|
-
}
|
|
232
|
-
addClass(a, r) {
|
|
233
|
-
let l = this.classes.get(a) ?? {
|
|
234
|
-
id: a,
|
|
235
|
-
styles: [],
|
|
236
|
-
textStyles: []
|
|
237
|
-
}, n = r.replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
|
|
238
|
-
n && n.forEach((s) => {
|
|
239
|
-
Ct(s) && (l?.textStyles ? l.textStyles.push(s) : l.textStyles = [s]), l?.styles ? l.styles.push(s) : l.styles = [s];
|
|
240
|
-
}), this.classes.set(a, l);
|
|
241
|
-
}
|
|
242
|
-
getClasses() {
|
|
243
|
-
return this.classes;
|
|
244
|
-
}
|
|
245
|
-
getStylesForClass(a) {
|
|
246
|
-
return this.classes.get(a)?.styles ?? [];
|
|
247
|
-
}
|
|
248
|
-
clear() {
|
|
249
|
-
bt(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
|
|
250
|
-
}
|
|
251
|
-
}, b(W, "TreeMapDB"), W);
|
|
252
|
-
function it(e) {
|
|
253
|
-
if (!e.length) return [];
|
|
254
|
-
let a = [], r = [];
|
|
255
|
-
return e.forEach((l) => {
|
|
256
|
-
let n = {
|
|
257
|
-
name: l.name,
|
|
258
|
-
children: l.type === "Leaf" ? void 0 : []
|
|
259
|
-
};
|
|
260
|
-
for (n.classSelector = l?.classSelector, l?.cssCompiledStyles && (n.cssCompiledStyles = l.cssCompiledStyles), l.type === "Leaf" && l.value !== void 0 && (n.value = l.value); r.length > 0 && r[r.length - 1].level >= l.level; ) r.pop();
|
|
261
|
-
if (r.length === 0) a.push(n);
|
|
262
|
-
else {
|
|
263
|
-
let s = r[r.length - 1].node;
|
|
264
|
-
s.children ? s.children.push(n) : s.children = [n];
|
|
265
|
-
}
|
|
266
|
-
l.type !== "Leaf" && r.push({
|
|
267
|
-
node: n,
|
|
268
|
-
level: l.level
|
|
269
|
-
});
|
|
270
|
-
}), a;
|
|
271
|
-
}
|
|
272
|
-
b(it, "buildHierarchy");
|
|
273
|
-
var te = /* @__PURE__ */ b((e, a) => {
|
|
274
|
-
wt(e, a);
|
|
275
|
-
let r = [];
|
|
276
|
-
for (let s of e.TreemapRows ?? []) s.$type === "ClassDefStatement" && a.addClass(s.className ?? "", s.styleText ?? "");
|
|
277
|
-
for (let s of e.TreemapRows ?? []) {
|
|
278
|
-
let c = s.item;
|
|
279
|
-
if (!c) continue;
|
|
280
|
-
let p = s.indent ? parseInt(s.indent) : 0, m = ee(c), o = c.classSelector ? a.getStylesForClass(c.classSelector) : [], h = o.length > 0 ? o : void 0, v = {
|
|
281
|
-
level: p,
|
|
282
|
-
name: m,
|
|
283
|
-
type: c.$type,
|
|
284
|
-
value: c.value,
|
|
285
|
-
classSelector: c.classSelector,
|
|
286
|
-
cssCompiledStyles: h
|
|
287
|
-
};
|
|
288
|
-
r.push(v);
|
|
289
|
-
}
|
|
290
|
-
let l = it(r), n = /* @__PURE__ */ b((s, c) => {
|
|
291
|
-
for (let p of s) a.addNode(p, c), p.children && p.children.length > 0 && n(p.children, c + 1);
|
|
292
|
-
}, "addNodesRecursively");
|
|
293
|
-
n(l, 0);
|
|
294
|
-
}, "populate"), ee = /* @__PURE__ */ b((e) => e.name ? String(e.name) : "", "getItemName"), st = {
|
|
295
|
-
parser: { yy: void 0 },
|
|
296
|
-
parse: /* @__PURE__ */ b(async (e) => {
|
|
297
|
-
try {
|
|
298
|
-
let a = await $t("treemap", e);
|
|
299
|
-
_.debug("Treemap AST:", a);
|
|
300
|
-
let r = st.parser?.yy;
|
|
301
|
-
if (!(r instanceof nt)) throw Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");
|
|
302
|
-
te(a, r);
|
|
303
|
-
} catch (a) {
|
|
304
|
-
throw _.error("Error parsing treemap:", a), a;
|
|
305
|
-
}
|
|
306
|
-
}, "parse")
|
|
307
|
-
}, ae = 10, V = 10, H = 25, re = {
|
|
308
|
-
draw: /* @__PURE__ */ b((e, a, r, l) => {
|
|
309
|
-
let n = l.db, s = n.getConfig(), c = s.padding ?? ae, p = n.getDiagramTitle(), m = n.getRoot(), { themeVariables: o } = tt();
|
|
310
|
-
if (!m) return;
|
|
311
|
-
let h = p ? 30 : 0, v = ht(a), i = s.nodeWidth ? s.nodeWidth * V : 960, S = s.nodeHeight ? s.nodeHeight * V : 500, g = i, x = S + h;
|
|
312
|
-
v.attr("viewBox", `0 0 ${g} ${x}`), ut(v, x, g, s.useMaxWidth);
|
|
313
|
-
let u;
|
|
314
|
-
try {
|
|
315
|
-
let t = s.valueFormat || ",";
|
|
316
|
-
if (t === "$0,0") u = /* @__PURE__ */ b((d) => "$" + E(",")(d), "valueFormat");
|
|
317
|
-
else if (t.startsWith("$") && t.includes(",")) {
|
|
318
|
-
let d = /\.\d+/.exec(t), C = d ? d[0] : "";
|
|
319
|
-
u = /* @__PURE__ */ b((L) => "$" + E("," + C)(L), "valueFormat");
|
|
320
|
-
} else if (t.startsWith("$")) {
|
|
321
|
-
let d = t.substring(1);
|
|
322
|
-
u = /* @__PURE__ */ b((C) => "$" + E(d || "")(C), "valueFormat");
|
|
323
|
-
} else u = E(t);
|
|
324
|
-
} catch (t) {
|
|
325
|
-
_.error("Error creating format function:", t), u = E(",");
|
|
326
|
-
}
|
|
327
|
-
let y = Y().range([
|
|
328
|
-
"transparent",
|
|
329
|
-
o.cScale0,
|
|
330
|
-
o.cScale1,
|
|
331
|
-
o.cScale2,
|
|
332
|
-
o.cScale3,
|
|
333
|
-
o.cScale4,
|
|
334
|
-
o.cScale5,
|
|
335
|
-
o.cScale6,
|
|
336
|
-
o.cScale7,
|
|
337
|
-
o.cScale8,
|
|
338
|
-
o.cScale9,
|
|
339
|
-
o.cScale10,
|
|
340
|
-
o.cScale11
|
|
341
|
-
]), F = Y().range([
|
|
342
|
-
"transparent",
|
|
343
|
-
o.cScalePeer0,
|
|
344
|
-
o.cScalePeer1,
|
|
345
|
-
o.cScalePeer2,
|
|
346
|
-
o.cScalePeer3,
|
|
347
|
-
o.cScalePeer4,
|
|
348
|
-
o.cScalePeer5,
|
|
349
|
-
o.cScalePeer6,
|
|
350
|
-
o.cScalePeer7,
|
|
351
|
-
o.cScalePeer8,
|
|
352
|
-
o.cScalePeer9,
|
|
353
|
-
o.cScalePeer10,
|
|
354
|
-
o.cScalePeer11
|
|
355
|
-
]), k = Y().range([
|
|
356
|
-
o.cScaleLabel0,
|
|
357
|
-
o.cScaleLabel1,
|
|
358
|
-
o.cScaleLabel2,
|
|
359
|
-
o.cScaleLabel3,
|
|
360
|
-
o.cScaleLabel4,
|
|
361
|
-
o.cScaleLabel5,
|
|
362
|
-
o.cScaleLabel6,
|
|
363
|
-
o.cScaleLabel7,
|
|
364
|
-
o.cScaleLabel8,
|
|
365
|
-
o.cScaleLabel9,
|
|
366
|
-
o.cScaleLabel10,
|
|
367
|
-
o.cScaleLabel11
|
|
368
|
-
]);
|
|
369
|
-
p && v.append("text").attr("x", g / 2).attr("y", h / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(p);
|
|
370
|
-
let P = v.append("g").attr("transform", `translate(0, ${h})`).attr("class", "treemapContainer"), R = et(m).sum((t) => t.value ?? 0).sort((t, d) => (d.value ?? 0) - (t.value ?? 0)), M = _t().size([i, S]).paddingTop((t) => t.children && t.children.length > 0 ? H + V : 0).paddingInner(c).paddingLeft((t) => t.children && t.children.length > 0 ? V : 0).paddingRight((t) => t.children && t.children.length > 0 ? V : 0).paddingBottom((t) => t.children && t.children.length > 0 ? V : 0).round(!0)(R), ot = M.descendants().filter((t) => t.children && t.children.length > 0), D = P.selectAll(".treemapSection").data(ot).enter().append("g").attr("class", "treemapSection").attr("transform", (t) => `translate(${t.x0},${t.y0})`);
|
|
371
|
-
D.append("rect").attr("width", (t) => t.x1 - t.x0).attr("height", H).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", 0.6).attr("stroke-width", 0.6).attr("style", (t) => t.depth === 0 ? "display: none;" : ""), D.append("clipPath").attr("id", (t, d) => `clip-section-${a}-${d}`).append("rect").attr("width", (t) => Math.max(0, t.x1 - t.x0 - 12)).attr("height", H), D.append("rect").attr("width", (t) => t.x1 - t.x0).attr("height", (t) => t.y1 - t.y0).attr("class", (t, d) => `treemapSection section${d}`).attr("fill", (t) => y(t.data.name)).attr("fill-opacity", 0.6).attr("stroke", (t) => F(t.data.name)).attr("stroke-width", 2).attr("stroke-opacity", 0.4).attr("style", (t) => {
|
|
372
|
-
if (t.depth === 0) return "display: none;";
|
|
373
|
-
let d = B({ cssCompiledStyles: t.data.cssCompiledStyles });
|
|
374
|
-
return d.nodeStyles + ";" + d.borderStyles.join(";");
|
|
375
|
-
}), D.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", H / 2).attr("dominant-baseline", "middle").text((t) => t.depth === 0 ? "" : t.data.name).attr("font-weight", "bold").attr("clip-path", (t, d) => `url(#clip-section-${a}-${d})`).attr("style", (t) => t.depth === 0 ? "display: none;" : "dominant-baseline: middle; font-size: 12px; fill:" + k(t.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + B({ cssCompiledStyles: t.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).each(function(t) {
|
|
376
|
-
if (t.depth === 0) return;
|
|
377
|
-
let d = K(this), C = t.data.name;
|
|
378
|
-
d.text(C);
|
|
379
|
-
let L = t.x1 - t.x0, z;
|
|
380
|
-
z = s.showValues !== !1 && t.value ? L - 10 - 30 - 10 - 6 : L - 6 - 6;
|
|
381
|
-
let $ = Math.max(15, z), w = d.node();
|
|
382
|
-
if (w.getComputedTextLength() > $) {
|
|
383
|
-
let f = C;
|
|
384
|
-
for (; f.length > 0; ) {
|
|
385
|
-
if (f = C.substring(0, f.length - 1), f.length === 0) {
|
|
386
|
-
d.text("..."), w.getComputedTextLength() > $ && d.text("");
|
|
387
|
-
break;
|
|
388
|
-
}
|
|
389
|
-
if (d.text(f + "..."), w.getComputedTextLength() <= $) break;
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
}), s.showValues !== !1 && D.append("text").attr("class", "treemapSectionValue").attr("x", (t) => t.x1 - t.x0 - 10).attr("y", H / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((t) => t.value ? u(t.value) : "").attr("font-style", "italic").attr("style", (t) => t.depth === 0 ? "display: none;" : "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + k(t.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + B({ cssCompiledStyles: t.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:"));
|
|
393
|
-
let at = M.leaves(), T = at.length > 20, ct = T ? 16 : 38, O = T ? 14 : 28, A = T ? 4 : 8, I = T ? 4 : 6, U = T ? 2 : 4, rt = T ? 8 : 10, J = T ? 1 : 2, X = P.selectAll(".treemapLeafGroup").data(at).enter().append("g").attr("class", (t, d) => `treemapNode treemapLeafGroup leaf${d}${t.data.classSelector ? ` ${t.data.classSelector}` : ""}x`).attr("transform", (t) => `translate(${t.x0},${t.y0})`);
|
|
394
|
-
X.append("rect").attr("width", (t) => t.x1 - t.x0).attr("height", (t) => t.y1 - t.y0).attr("class", "treemapLeaf").attr("fill", (t) => t.parent ? y(t.parent.data.name) : y(t.data.name)).attr("style", (t) => B({ cssCompiledStyles: t.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", 0.3).attr("stroke", (t) => t.parent ? y(t.parent.data.name) : y(t.data.name)).attr("stroke-width", 3), X.append("clipPath").attr("id", (t, d) => `clip-${a}-${d}`).append("rect").attr("width", (t) => Math.max(0, t.x1 - t.x0 - 4)).attr("height", (t) => Math.max(0, t.y1 - t.y0 - 4)), X.append("text").attr("class", "treemapLabel").attr("x", (t) => (t.x1 - t.x0) / 2).attr("y", (t) => (t.y1 - t.y0) / 2).attr("style", (t) => `text-anchor: middle; dominant-baseline: middle; font-size: ${ct}px;fill:` + k(t.data.name) + ";" + B({ cssCompiledStyles: t.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (t, d) => `url(#clip-${a}-${d})`).text((t) => t.data.name).each(function(t) {
|
|
395
|
-
let d = K(this), C = t.x1 - t.x0, L = t.y1 - t.y0, z = d.node(), $ = C - 2 * U, w = L - 2 * U;
|
|
396
|
-
if ($ < rt || w < rt) {
|
|
397
|
-
d.style("display", "none");
|
|
398
|
-
return;
|
|
399
|
-
}
|
|
400
|
-
let f = parseInt(d.style("font-size"), 10), q = 0.6;
|
|
401
|
-
for (; z.getComputedTextLength() > $ && f > A; ) f--, d.style("font-size", `${f}px`);
|
|
402
|
-
let N = Math.max(I, Math.min(O, Math.round(f * q))), lt = f + J + N;
|
|
403
|
-
for (; lt > w && f > A && (f--, N = Math.max(I, Math.min(O, Math.round(f * q))), !(N < I && f === A)); ) d.style("font-size", `${f}px`), lt = f + J + N;
|
|
404
|
-
d.style("font-size", `${f}px`), T ? (f < A || w < A) && d.style("display", "none") : (z.getComputedTextLength() > $ || f < A || w < f) && d.style("display", "none");
|
|
405
|
-
}), s.showValues !== !1 && X.append("text").attr("class", "treemapValue").attr("x", (t) => (t.x1 - t.x0) / 2).attr("y", function(t) {
|
|
406
|
-
return (t.y1 - t.y0) / 2;
|
|
407
|
-
}).attr("style", (t) => `text-anchor: middle; dominant-baseline: hanging; font-size: ${O}px;fill:` + k(t.data.name) + ";" + B({ cssCompiledStyles: t.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (t, d) => `url(#clip-${a}-${d})`).text((t) => t.value ? u(t.value) : "").each(function(t) {
|
|
408
|
-
let d = K(this), C = this.parentNode;
|
|
409
|
-
if (!C) {
|
|
410
|
-
d.style("display", "none");
|
|
411
|
-
return;
|
|
412
|
-
}
|
|
413
|
-
let L = K(C).select(".treemapLabel");
|
|
414
|
-
if (L.empty() || L.style("display") === "none") {
|
|
415
|
-
d.style("display", "none");
|
|
416
|
-
return;
|
|
417
|
-
}
|
|
418
|
-
let z = parseFloat(L.style("font-size")), $ = Math.max(I, Math.min(O, Math.round(z * 0.6)));
|
|
419
|
-
d.style("font-size", `${$}px`);
|
|
420
|
-
let w = (t.y1 - t.y0) / 2 + z / 2 + J;
|
|
421
|
-
d.attr("y", w);
|
|
422
|
-
let f = t.x1 - t.x0, q = t.y1 - t.y0 - 4, N = f - 2 * U;
|
|
423
|
-
d.node().getComputedTextLength() > N || w + $ > q || $ < I ? d.style("display", "none") : d.style("display", null);
|
|
424
|
-
});
|
|
425
|
-
let dt = s.diagramPadding ?? 8;
|
|
426
|
-
Lt(v, dt, "flowchart", s?.useMaxWidth || !1);
|
|
427
|
-
}, "draw"),
|
|
428
|
-
getClasses: /* @__PURE__ */ b(function(e, a) {
|
|
429
|
-
return a.db.getClasses();
|
|
430
|
-
}, "getClasses")
|
|
431
|
-
}, le = {
|
|
432
|
-
sectionStrokeColor: "black",
|
|
433
|
-
sectionStrokeWidth: "1",
|
|
434
|
-
sectionFillColor: "#efefef",
|
|
435
|
-
leafStrokeColor: "black",
|
|
436
|
-
leafStrokeWidth: "1",
|
|
437
|
-
leafFillColor: "#efefef",
|
|
438
|
-
labelFontSize: "12px",
|
|
439
|
-
valueFontSize: "10px",
|
|
440
|
-
titleFontSize: "14px"
|
|
441
|
-
}, pe = {
|
|
442
|
-
parser: st,
|
|
443
|
-
get db() {
|
|
444
|
-
return new nt();
|
|
445
|
-
},
|
|
446
|
-
renderer: re,
|
|
447
|
-
styles: /* @__PURE__ */ b(({ treemap: e } = {}) => {
|
|
448
|
-
let a = pt(), r = tt(), l = Z(a, r.themeVariables), n = Z(le, e), s = n.titleColor ?? l.titleColor, c = n.labelColor ?? l.textColor, p = n.valueColor ?? l.textColor;
|
|
449
|
-
return `
|
|
450
|
-
.treemapNode.section {
|
|
451
|
-
stroke: ${n.sectionStrokeColor};
|
|
452
|
-
stroke-width: ${n.sectionStrokeWidth};
|
|
453
|
-
fill: ${n.sectionFillColor};
|
|
454
|
-
}
|
|
455
|
-
.treemapNode.leaf {
|
|
456
|
-
stroke: ${n.leafStrokeColor};
|
|
457
|
-
stroke-width: ${n.leafStrokeWidth};
|
|
458
|
-
fill: ${n.leafFillColor};
|
|
459
|
-
}
|
|
460
|
-
.treemapLabel {
|
|
461
|
-
fill: ${c};
|
|
462
|
-
font-size: ${n.labelFontSize};
|
|
463
|
-
}
|
|
464
|
-
.treemapValue {
|
|
465
|
-
fill: ${p};
|
|
466
|
-
font-size: ${n.valueFontSize};
|
|
467
|
-
}
|
|
468
|
-
.treemapTitle {
|
|
469
|
-
fill: ${s};
|
|
470
|
-
font-size: ${n.titleFontSize};
|
|
471
|
-
}
|
|
472
|
-
`;
|
|
473
|
-
}, "getStyles")
|
|
474
|
-
};
|
|
475
|
-
export {
|
|
476
|
-
pe as diagram
|
|
477
|
-
};
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { a as f, z as m, a2 as C, V as v, m as w, e as P, t as z, j as S, k as E, r as F, n as T, X as W, L as D, $ as R } from "./index-BaAWoj3P.js";
|
|
2
|
-
import { R as A } from "./cynefin-OW5HDTMX-CmxQwqmf-D_GdoNIu.js";
|
|
3
|
-
import { t as L } from "./chunk-JWPE2WC7-DI69CthA-D_FsPQj-.js";
|
|
4
|
-
var X = D.packet, u, y = (u = class {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.packet = [], this.setAccTitle = P, this.getAccTitle = z, this.setDiagramTitle = S, this.getDiagramTitle = E, this.getAccDescription = F, this.setAccDescription = T;
|
|
7
|
-
}
|
|
8
|
-
getConfig() {
|
|
9
|
-
let t = m({
|
|
10
|
-
...X,
|
|
11
|
-
...W().packet
|
|
12
|
-
});
|
|
13
|
-
return t.showBits && (t.paddingY += 10), t;
|
|
14
|
-
}
|
|
15
|
-
getPacket() {
|
|
16
|
-
return this.packet;
|
|
17
|
-
}
|
|
18
|
-
pushWord(t) {
|
|
19
|
-
t.length > 0 && this.packet.push(t);
|
|
20
|
-
}
|
|
21
|
-
clear() {
|
|
22
|
-
R(), this.packet = [];
|
|
23
|
-
}
|
|
24
|
-
}, f(u, "PacketDB"), u), Y = 1e4, j = /* @__PURE__ */ f((e, t) => {
|
|
25
|
-
L(e, t);
|
|
26
|
-
let r = -1, i = [], l = 1, { bitsPerRow: n } = t.getConfig();
|
|
27
|
-
for (let { start: a, end: o, bits: c, label: d } of e.blocks) {
|
|
28
|
-
if (a !== void 0 && o !== void 0 && o < a) throw Error(`Packet block ${a} - ${o} is invalid. End must be greater than start.`);
|
|
29
|
-
if (a ??= r + 1, a !== r + 1) throw Error(`Packet block ${a} - ${o ?? a} is not contiguous. It should start from ${r + 1}.`);
|
|
30
|
-
if (c === 0) throw Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);
|
|
31
|
-
for (o ??= a + (c ?? 1) - 1, c ??= o - a + 1, r = o, w.debug(`Packet block ${a} - ${r} with label ${d}`); i.length <= n + 1 && t.getPacket().length < Y; ) {
|
|
32
|
-
let [p, s] = H({
|
|
33
|
-
start: a,
|
|
34
|
-
end: o,
|
|
35
|
-
bits: c,
|
|
36
|
-
label: d
|
|
37
|
-
}, l, n);
|
|
38
|
-
if (i.push(p), p.end + 1 === l * n && (t.pushWord(i), i = [], l++), !s) break;
|
|
39
|
-
({ start: a, end: o, bits: c, label: d } = s);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
t.pushWord(i);
|
|
43
|
-
}, "populate"), H = /* @__PURE__ */ f((e, t, r) => {
|
|
44
|
-
if (e.start === void 0) throw Error("start should have been set during first phase");
|
|
45
|
-
if (e.end === void 0) throw Error("end should have been set during first phase");
|
|
46
|
-
if (e.start > e.end) throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);
|
|
47
|
-
if (e.end + 1 <= t * r) return [e, void 0];
|
|
48
|
-
let i = t * r - 1, l = t * r;
|
|
49
|
-
return [{
|
|
50
|
-
start: e.start,
|
|
51
|
-
end: i,
|
|
52
|
-
label: e.label,
|
|
53
|
-
bits: i - e.start
|
|
54
|
-
}, {
|
|
55
|
-
start: l,
|
|
56
|
-
end: e.end,
|
|
57
|
-
label: e.label,
|
|
58
|
-
bits: e.end - l
|
|
59
|
-
}];
|
|
60
|
-
}, "getNextFittingBlock"), x = {
|
|
61
|
-
parser: { yy: void 0 },
|
|
62
|
-
parse: /* @__PURE__ */ f(async (e) => {
|
|
63
|
-
let t = await A("packet", e), r = x.parser?.yy;
|
|
64
|
-
if (!(r instanceof y)) throw Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");
|
|
65
|
-
w.debug(t), j(t, r);
|
|
66
|
-
}, "parse")
|
|
67
|
-
}, M = /* @__PURE__ */ f((e, t, r, i) => {
|
|
68
|
-
let l = i.db, n = l.getConfig(), { rowHeight: a, paddingY: o, bitWidth: c, bitsPerRow: d } = n, p = l.getPacket(), s = l.getDiagramTitle(), b = a + o, h = b * (p.length + 1) - (s ? 0 : a), k = c * d + 2, g = C(t);
|
|
69
|
-
g.attr("viewBox", `0 0 ${k} ${h}`), v(g, h, k, n.useMaxWidth);
|
|
70
|
-
for (let [$, B] of p.entries()) V(g, B, $, n);
|
|
71
|
-
g.append("text").text(s).attr("x", k / 2).attr("y", h - b / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle");
|
|
72
|
-
}, "draw"), V = /* @__PURE__ */ f((e, t, r, { rowHeight: i, paddingX: l, paddingY: n, bitWidth: a, bitsPerRow: o, showBits: c }) => {
|
|
73
|
-
let d = e.append("g"), p = r * (i + n) + n;
|
|
74
|
-
for (let s of t) {
|
|
75
|
-
let b = s.start % o * a + 1, h = (s.end - s.start + 1) * a - l;
|
|
76
|
-
if (d.append("rect").attr("x", b).attr("y", p).attr("width", h).attr("height", i).attr("class", "packetBlock"), d.append("text").attr("x", b + h / 2).attr("y", p + i / 2).attr("class", "packetLabel").attr("dominant-baseline", "middle").attr("text-anchor", "middle").text(s.label), !c) continue;
|
|
77
|
-
let k = s.end === s.start, g = p - 2;
|
|
78
|
-
d.append("text").attr("x", b + (k ? h / 2 : 0)).attr("y", g).attr("class", "packetByte start").attr("dominant-baseline", "auto").attr("text-anchor", k ? "middle" : "start").text(s.start), k || d.append("text").attr("x", b + h).attr("y", g).attr("class", "packetByte end").attr("dominant-baseline", "auto").attr("text-anchor", "end").text(s.end);
|
|
79
|
-
}
|
|
80
|
-
}, "drawWord"), _ = { draw: M }, I = {
|
|
81
|
-
byteFontSize: "10px",
|
|
82
|
-
startByteColor: "black",
|
|
83
|
-
endByteColor: "black",
|
|
84
|
-
labelColor: "black",
|
|
85
|
-
labelFontSize: "12px",
|
|
86
|
-
titleColor: "black",
|
|
87
|
-
titleFontSize: "14px",
|
|
88
|
-
blockStrokeColor: "black",
|
|
89
|
-
blockStrokeWidth: "1",
|
|
90
|
-
blockFillColor: "#efefef"
|
|
91
|
-
}, G = {
|
|
92
|
-
parser: x,
|
|
93
|
-
get db() {
|
|
94
|
-
return new y();
|
|
95
|
-
},
|
|
96
|
-
renderer: _,
|
|
97
|
-
styles: /* @__PURE__ */ f(({ packet: e } = {}) => {
|
|
98
|
-
let t = m(I, e);
|
|
99
|
-
return `
|
|
100
|
-
.packetByte {
|
|
101
|
-
font-size: ${t.byteFontSize};
|
|
102
|
-
}
|
|
103
|
-
.packetByte.start {
|
|
104
|
-
fill: ${t.startByteColor};
|
|
105
|
-
}
|
|
106
|
-
.packetByte.end {
|
|
107
|
-
fill: ${t.endByteColor};
|
|
108
|
-
}
|
|
109
|
-
.packetLabel {
|
|
110
|
-
fill: ${t.labelColor};
|
|
111
|
-
font-size: ${t.labelFontSize};
|
|
112
|
-
}
|
|
113
|
-
.packetTitle {
|
|
114
|
-
fill: ${t.titleColor};
|
|
115
|
-
font-size: ${t.titleFontSize};
|
|
116
|
-
}
|
|
117
|
-
.packetBlock {
|
|
118
|
-
stroke: ${t.blockStrokeColor};
|
|
119
|
-
stroke-width: ${t.blockStrokeWidth};
|
|
120
|
-
fill: ${t.blockFillColor};
|
|
121
|
-
}
|
|
122
|
-
`;
|
|
123
|
-
}, "styles")
|
|
124
|
-
};
|
|
125
|
-
export {
|
|
126
|
-
G as diagram
|
|
127
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var 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+)*([acd])\\\\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"}},"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"}'))];
|
|
2
|
-
export {
|
|
3
|
-
n as default
|
|
4
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var 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"}},"match":"^(\\\\s*)((#).*$\\\\n?)"}],"repository":{"string-character-escape":{"match":"\\\\\\\\.","name":"constant.character.escaped.dockerfile"}},"scopeName":"source.dockerfile","aliases":["dockerfile"]}`))];
|
|
2
|
-
export {
|
|
3
|
-
e as default
|
|
4
|
-
};
|