@kong-ui-public/documentation 1.7.2 → 1.7.3-pr.3596.41e70338d.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/arc-DZdQjcG8-CduayE88.js +0 -79
- package/dist/architectureDiagram-3BPJPVTR-By_DXDyu-U3MSLbOU.js +0 -4065
- package/dist/astro-D8QEIUE9-nzvtSwAQ.js +0 -18
- package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CKP-SiVG.js +0 -3268
- package/dist/c-GOwUpV7U-DMPKLUI8.js +0 -4
- package/dist/c4Diagram-AAUBKEIU-ftdwlfdB-D3A61SdV.js +0 -3035
- package/dist/catppuccin-latte-BcV8jije-D8pvGdu1.js +0 -4
- package/dist/channel-DM9j7IFL-DxqBUxfY.js +0 -5
- package/dist/chunk-2J33WTMH-CBbjVzWb-0og4LHQ-.js +0 -24
- package/dist/chunk-4BX2VUAB-C_NnimAy--QQ0Db2V.js +0 -8
- package/dist/chunk-55IACEB6-DZn1aNO0-A3zOZ7dT.js +0 -8
- package/dist/chunk-727SXJPM-B2_6_WLv-Bs3CxHaX.js +0 -3445
- package/dist/chunk-AQP2D5EJ-DEAEiJjW-DTbwZT8N.js +0 -2096
- package/dist/chunk-FMBD7UC4-D_tZ4Dxg-DwjoPGUH.js +0 -19
- package/dist/chunk-ND2GUHAM-Duw3k8MU-HmrdHLJ9.js +0 -65
- package/dist/chunk-QZHKN3VN-DN6nBdn0-BvQOETVz.js +0 -12
- package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-BqXc0etQ.js +0 -17
- package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-BqXc0etQ.js +0 -17
- package/dist/cose-bilkent-S5V4N54A-0ZumbVgj-0z7CQbIH.js +0 -2260
- package/dist/csharp-Cy04UeDC-OaGPefhL.js +0 -4
- package/dist/css-CJQ-rcMF-B_2PRTA_.js +0 -4
- package/dist/csv-Bx_Umlp--BPWcOTV4.js +0 -4
- package/dist/cytoscape.esm-BDIiOYYO-C1jMBhD8.js +0 -18220
- package/dist/dagre-BM42HDAG-qMWMsyLb-DGMrq3i3.js +0 -288
- package/dist/dagre-DJxg_nfI-hVOVexz-.js +0 -1687
- package/dist/defaultLocale-mtMQ0U8A-D6jPixjH.js +0 -182
- package/dist/diagram-2AECGRRQ-B2gF_dHe-Bv_EpxRz.js +0 -210
- package/dist/diagram-5GNKFQAL-DJ9WwRrD-WVvm0Icu.js +0 -99
- package/dist/diagram-KO2AKTUF-RfkqD-VW-yyAds1Qq.js +0 -439
- package/dist/diagram-LMA3HP47-Ct7s9hIt-Dy6f9BAO.js +0 -127
- package/dist/diagram-OG6HWLK6-BSYJ2CoI-ckmfat-L.js +0 -475
- package/dist/diff-DZRtXnMG-DenOJuyV.js +0 -4
- package/dist/docker-DQBBDNmU-xX8PDoIv.js +0 -4
- package/dist/documentation.es.js +0 -7
- package/dist/documentation.umd.js +0 -3474
- package/dist/erDiagram-TEJ5UH35-BudwiSYX-bVzp1Kjr.js +0 -1773
- package/dist/flowDiagram-I6XJVG4X-B23Smlxp-ClHvdCdJ.js +0 -4258
- package/dist/ganttDiagram-6RSMTGT7-C-i89z_P-t5UAyRM5.js +0 -3099
- package/dist/git-commit-BOgnKaZ8-Csu8eMzs.js +0 -5
- package/dist/git-rebase-0v-YFIjP-D701iWbX.js +0 -5
- package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-Cg3smOdz.js +0 -734
- package/dist/go-DpaXbCNA-DqSXHrGo.js +0 -4
- package/dist/graphlib-D2YdGpuK-CnQPmzkS.js +0 -1071
- package/dist/graphql-BSO8hVnT-C6Okg5tI.js +0 -14
- package/dist/haml-DizLz-gS-BWwS-eha.js +0 -10
- package/dist/handlebars-tnt1-4s--xVtJSIx5.js +0 -14
- package/dist/haskell-BDLr0yXS-BlmVjKNy.js +0 -4
- package/dist/html-DdIT5Pi9-C35UyBqr.js +0 -10
- package/dist/html-derivative-BHAKSQcK-BChKhjnv.js +0 -5
- package/dist/http-DRk-iX-V-DQ76ihB0.js +0 -14
- package/dist/index-DfVKdDwj.js +0 -40029
- package/dist/infoDiagram-5YYISTIA-CDUwzFql-Bmthmcp4.js +0 -18
- package/dist/ini-D-uG5DCC-70PBzbbb.js +0 -4
- package/dist/init-8lPFe2y8-B2MlpiqM.js +0 -16
- package/dist/ishikawaDiagram-YF4QCWOH-MfYdx0rK-cbltssua.js +0 -728
- package/dist/java-CQQr73XR-D6YBp1XX.js +0 -4
- package/dist/javascript-CXmFGv-C-BRPKgr3C.js +0 -4
- package/dist/journeyDiagram-JHISSGLW-C_udOPtJ-BjAvgSAR.js +0 -908
- package/dist/json-BXFRNzj8-D8uacQj0.js +0 -4
- package/dist/json5-B5-J7v9w-Biib5ALh.js +0 -4
- package/dist/jsonc-CeA7x8NU-BZEKkMok.js +0 -4
- package/dist/jsonl-BBlxch9W-BG2V-IA2.js +0 -4
- package/dist/jsx-DucQCby8-Cl0AMtmu.js +0 -4
- package/dist/kanban-definition-UN3LZRKU-C1Su-UOY-DZ93dsWZ.js +0 -1028
- package/dist/katex-D7tFlpqA-BOSQxXe1.js +0 -22315
- package/dist/kotlin-CDXyBjvc-Dy_91eL4.js +0 -4
- package/dist/latex-COX74REd-l1quglTx.js +0 -5
- package/dist/less-QqooI0UQ-tcNg8M2_.js +0 -4
- package/dist/linear-1MXhYum8-9C1jno9G.js +0 -255
- package/dist/liquid-CsynDTV--Bdhb3gsJ.js +0 -14
- package/dist/lua-B3xrKnOz-Coo0MCwO.js +0 -5
- package/dist/make-eFBmESRY-CrUl7LOH.js +0 -4
- package/dist/markdown-DkQv9NwM-Bcqt-5kX.js +0 -4
- package/dist/material-theme-darker-Bp7Jj852-DMHCIvq5.js +0 -4
- package/dist/mdc-BK-Z5Xv--aFc-Oyv5.js +0 -12
- package/dist/mdx-CjbEMaEg-CK6jOqmu.js +0 -4
- package/dist/mermaid-Ccfpee4A-BgbNnQO5.js +0 -4
- package/dist/mindmap-definition-RKZ34NQL-MuSV765K-Kub1iXFv.js +0 -1026
- package/dist/nginx-DQrs__jO-BS9Jcr4V.js +0 -5
- package/dist/objective-c-CXg1TPY9-C809HPrX.js +0 -4
- package/dist/ordinal-D9ksOc8y-2hZwLyEk.js +0 -63
- package/dist/pascal-C6L9Tn1x-a8whuidZ.js +0 -4
- package/dist/perl-Dbi-SlHs-DsZjIGqU.js +0 -16
- package/dist/php-J5w8HAya-DnRg4f-g.js +0 -18
- package/dist/pieDiagram-4H26LBE5-TgFp7J6_-i6NxP3Xz.js +0 -153
- package/dist/plsql-Ba_yrVwL-BJoF2Vrf.js +0 -4
- package/dist/postcss-Bsoc__IZ-DaHMm3XW.js +0 -4
- package/dist/powershell-CKvM5hOe-Box9VSDW.js +0 -4
- package/dist/proto-iweZN-Ks-w0B_itsp.js +0 -4
- package/dist/pug-DUPsoXbW-BFHDRSax.js +0 -12
- package/dist/python-MxhgNM12-D_5pfY__.js +0 -4
- package/dist/quadrantDiagram-W4KKPZXB-DKPne3o_-DXLHqRuR.js +0 -2046
- package/dist/r-CoGPXt5G-BrbXTU3W.js +0 -4
- package/dist/reg-CHAl2UuA-bHAwx9Pm.js +0 -4
- package/dist/requirementDiagram-4Y6WPE33-vh8uUAp_-CHtsISxP.js +0 -2281
- package/dist/rst-D-Zcnz0t-C3PGnqgH.js +0 -20
- package/dist/ruby-CQp7mk0v-B3KpG-9E.js +0 -46
- package/dist/rust-W9HETclW-CaZtBt24.js +0 -4
- package/dist/sankeyDiagram-5OEKKPKP-Cgs6W_El-D7GZyd8n.js +0 -946
- package/dist/sass-DzGfEb5u-pslLeRRb.js +0 -4
- package/dist/scss-cWHTb1-d-DN6jMR75.js +0 -5
- package/dist/sequenceDiagram-3UESZ5HK-C5F57Dkt-BW1Hb7UW.js +0 -4266
- package/dist/shellscript-BvJBBLP1-BtH46UX7.js +0 -4
- package/dist/shellsession-CXHk-hsk-D-2JR5oU.js +0 -5
- package/dist/splunk-TtOhH_8h-BP8P7eWt.js +0 -4
- package/dist/sql-B-h_q34g-uWwuAxg_.js +0 -4
- package/dist/ssh-config-B7jk1vQp-BB1rrGb9.js +0 -4
- package/dist/stateDiagram-AJRCARHV-09dUKG6Y-Dm2a1vNu.js +0 -210
- package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-DbWzZ-j-.js +0 -16
- package/dist/style.css +0 -1
- package/dist/stylus-Ccd_7r3J-DAu5PNZ9.js +0 -4
- package/dist/svelte-CYqtuUsn-Cf97VB5J.js +0 -14
- package/dist/swift-CzsQqA0L-BPF2ddNF.js +0 -4
- package/dist/timeline-definition-PNZ67QCA-CCndyx0V-B5CT96H-.js +0 -1095
- package/dist/toml-CRTROHRr-DjT9Bjqu.js +0 -4
- package/dist/tsx-CE8dfKwK-B-5hSr15.js +0 -4
- package/dist/twig-Bst4uh7S-C3aA9tng.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-8ogSSNer-B0ag8pir.js +0 -4
- package/dist/v-NeSnRB8V-CYSa2rJN.js +0 -4
- package/dist/vb-Dz72yc4q-B6FpM2Kc.js +0 -4
- package/dist/vennDiagram-CIIHVFJN-DQfKxM3L-qUaKEl7l.js +0 -1889
- package/dist/viml-DB1flIhL-BeYQ8dZh.js +0 -4
- package/dist/vue-Bq4JA_WT-CGBUDahs.js +0 -22
- package/dist/vue-html-BygQzR-9-BPez-Otx.js +0 -5
- package/dist/wardley-L42UT6IY-BjAkE_cs-C-giFqos.js +0 -20731
- package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-DXPF2Ee9.js +0 -639
- package/dist/wasm-BmZuu1vu-CfuK9YWP.js +0 -4
- package/dist/wgsl-D-vNyw6e-C2IZ7ENh.js +0 -4
- package/dist/xml-juAhGoTG-khG3jjDl.js +0 -5
- package/dist/xsl-CHgyQG2O-CiMa9sUf.js +0 -5
- package/dist/xychartDiagram-2RQKCTM6-ChNH3q1U-a59DsJDA.js +0 -2055
- package/dist/yaml-BK_xXVzk-X78l_Ibz.js +0 -4
|
@@ -1,908 +0,0 @@
|
|
|
1
|
-
import { K as gt, G as mt, W as xt, U as kt, i as _t, f as bt, p as n, Z as j, q as et, A as vt, H as $t } from "./index-DfVKdDwj.js";
|
|
2
|
-
import { x as it } from "./arc-DZdQjcG8-CduayE88.js";
|
|
3
|
-
import { t as wt } from "./chunk-FMBD7UC4-D_tZ4Dxg-DwjoPGUH.js";
|
|
4
|
-
import { o as Mt, u as ot, s as Tt, a as At } from "./chunk-ND2GUHAM-Duw3k8MU-HmrdHLJ9.js";
|
|
5
|
-
var U = (function() {
|
|
6
|
-
var t = /* @__PURE__ */ n(function(i, a, r, c) {
|
|
7
|
-
for (r ||= {}, c = i.length; c--; r[i[c]] = a) ;
|
|
8
|
-
return r;
|
|
9
|
-
}, "o"), e = [
|
|
10
|
-
6,
|
|
11
|
-
8,
|
|
12
|
-
10,
|
|
13
|
-
11,
|
|
14
|
-
12,
|
|
15
|
-
14,
|
|
16
|
-
16,
|
|
17
|
-
17,
|
|
18
|
-
18
|
|
19
|
-
], l = [1, 9], y = [1, 10], s = [1, 11], h = [1, 12], u = [1, 13], p = [1, 14], f = {
|
|
20
|
-
trace: /* @__PURE__ */ n(function() {
|
|
21
|
-
}, "trace"),
|
|
22
|
-
yy: {},
|
|
23
|
-
symbols_: {
|
|
24
|
-
error: 2,
|
|
25
|
-
start: 3,
|
|
26
|
-
journey: 4,
|
|
27
|
-
document: 5,
|
|
28
|
-
EOF: 6,
|
|
29
|
-
line: 7,
|
|
30
|
-
SPACE: 8,
|
|
31
|
-
statement: 9,
|
|
32
|
-
NEWLINE: 10,
|
|
33
|
-
title: 11,
|
|
34
|
-
acc_title: 12,
|
|
35
|
-
acc_title_value: 13,
|
|
36
|
-
acc_descr: 14,
|
|
37
|
-
acc_descr_value: 15,
|
|
38
|
-
acc_descr_multiline_value: 16,
|
|
39
|
-
section: 17,
|
|
40
|
-
taskName: 18,
|
|
41
|
-
taskData: 19,
|
|
42
|
-
$accept: 0,
|
|
43
|
-
$end: 1
|
|
44
|
-
},
|
|
45
|
-
terminals_: {
|
|
46
|
-
2: "error",
|
|
47
|
-
4: "journey",
|
|
48
|
-
6: "EOF",
|
|
49
|
-
8: "SPACE",
|
|
50
|
-
10: "NEWLINE",
|
|
51
|
-
11: "title",
|
|
52
|
-
12: "acc_title",
|
|
53
|
-
13: "acc_title_value",
|
|
54
|
-
14: "acc_descr",
|
|
55
|
-
15: "acc_descr_value",
|
|
56
|
-
16: "acc_descr_multiline_value",
|
|
57
|
-
17: "section",
|
|
58
|
-
18: "taskName",
|
|
59
|
-
19: "taskData"
|
|
60
|
-
},
|
|
61
|
-
productions_: [
|
|
62
|
-
0,
|
|
63
|
-
[3, 3],
|
|
64
|
-
[5, 0],
|
|
65
|
-
[5, 2],
|
|
66
|
-
[7, 2],
|
|
67
|
-
[7, 1],
|
|
68
|
-
[7, 1],
|
|
69
|
-
[7, 1],
|
|
70
|
-
[9, 1],
|
|
71
|
-
[9, 2],
|
|
72
|
-
[9, 2],
|
|
73
|
-
[9, 1],
|
|
74
|
-
[9, 1],
|
|
75
|
-
[9, 2]
|
|
76
|
-
],
|
|
77
|
-
performAction: /* @__PURE__ */ n(function(i, a, r, c, d, o, k) {
|
|
78
|
-
var m = o.length - 1;
|
|
79
|
-
switch (d) {
|
|
80
|
-
case 1:
|
|
81
|
-
return o[m - 1];
|
|
82
|
-
case 2:
|
|
83
|
-
this.$ = [];
|
|
84
|
-
break;
|
|
85
|
-
case 3:
|
|
86
|
-
o[m - 1].push(o[m]), this.$ = o[m - 1];
|
|
87
|
-
break;
|
|
88
|
-
case 4:
|
|
89
|
-
case 5:
|
|
90
|
-
this.$ = o[m];
|
|
91
|
-
break;
|
|
92
|
-
case 6:
|
|
93
|
-
case 7:
|
|
94
|
-
this.$ = [];
|
|
95
|
-
break;
|
|
96
|
-
case 8:
|
|
97
|
-
c.setDiagramTitle(o[m].substr(6)), this.$ = o[m].substr(6);
|
|
98
|
-
break;
|
|
99
|
-
case 9:
|
|
100
|
-
this.$ = o[m].trim(), c.setAccTitle(this.$);
|
|
101
|
-
break;
|
|
102
|
-
case 10:
|
|
103
|
-
case 11:
|
|
104
|
-
this.$ = o[m].trim(), c.setAccDescription(this.$);
|
|
105
|
-
break;
|
|
106
|
-
case 12:
|
|
107
|
-
c.addSection(o[m].substr(8)), this.$ = o[m].substr(8);
|
|
108
|
-
break;
|
|
109
|
-
case 13:
|
|
110
|
-
c.addTask(o[m - 1], o[m]), this.$ = "task";
|
|
111
|
-
break;
|
|
112
|
-
}
|
|
113
|
-
}, "anonymous"),
|
|
114
|
-
table: [
|
|
115
|
-
{
|
|
116
|
-
3: 1,
|
|
117
|
-
4: [1, 2]
|
|
118
|
-
},
|
|
119
|
-
{ 1: [3] },
|
|
120
|
-
t(e, [2, 2], { 5: 3 }),
|
|
121
|
-
{
|
|
122
|
-
6: [1, 4],
|
|
123
|
-
7: 5,
|
|
124
|
-
8: [1, 6],
|
|
125
|
-
9: 7,
|
|
126
|
-
10: [1, 8],
|
|
127
|
-
11: l,
|
|
128
|
-
12: y,
|
|
129
|
-
14: s,
|
|
130
|
-
16: h,
|
|
131
|
-
17: u,
|
|
132
|
-
18: p
|
|
133
|
-
},
|
|
134
|
-
t(e, [2, 7], { 1: [2, 1] }),
|
|
135
|
-
t(e, [2, 3]),
|
|
136
|
-
{
|
|
137
|
-
9: 15,
|
|
138
|
-
11: l,
|
|
139
|
-
12: y,
|
|
140
|
-
14: s,
|
|
141
|
-
16: h,
|
|
142
|
-
17: u,
|
|
143
|
-
18: p
|
|
144
|
-
},
|
|
145
|
-
t(e, [2, 5]),
|
|
146
|
-
t(e, [2, 6]),
|
|
147
|
-
t(e, [2, 8]),
|
|
148
|
-
{ 13: [1, 16] },
|
|
149
|
-
{ 15: [1, 17] },
|
|
150
|
-
t(e, [2, 11]),
|
|
151
|
-
t(e, [2, 12]),
|
|
152
|
-
{ 19: [1, 18] },
|
|
153
|
-
t(e, [2, 4]),
|
|
154
|
-
t(e, [2, 9]),
|
|
155
|
-
t(e, [2, 10]),
|
|
156
|
-
t(e, [2, 13])
|
|
157
|
-
],
|
|
158
|
-
defaultActions: {},
|
|
159
|
-
parseError: /* @__PURE__ */ n(function(i, a) {
|
|
160
|
-
if (a.recoverable) this.trace(i);
|
|
161
|
-
else {
|
|
162
|
-
var r = Error(i);
|
|
163
|
-
throw r.hash = a, r;
|
|
164
|
-
}
|
|
165
|
-
}, "parseError"),
|
|
166
|
-
parse: /* @__PURE__ */ n(function(i) {
|
|
167
|
-
var a = this, r = [0], c = [], d = [null], o = [], k = this.table, m = "", b = 0, F = 0, V = 0, pt = 2, K = 1, yt = o.slice.call(arguments, 1), x = Object.create(this.lexer), E = { yy: {} };
|
|
168
|
-
for (var D in this.yy) Object.prototype.hasOwnProperty.call(this.yy, D) && (E.yy[D] = this.yy[D]);
|
|
169
|
-
x.setInput(i, E.yy), E.yy.lexer = x, E.yy.parser = this, x.yylloc === void 0 && (x.yylloc = {});
|
|
170
|
-
var q = x.yylloc;
|
|
171
|
-
o.push(q);
|
|
172
|
-
var dt = x.options && x.options.ranges;
|
|
173
|
-
typeof E.yy.parseError == "function" ? this.parseError = E.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
174
|
-
function ft($) {
|
|
175
|
-
r.length -= 2 * $, d.length -= $, o.length -= $;
|
|
176
|
-
}
|
|
177
|
-
n(ft, "popStack");
|
|
178
|
-
function J() {
|
|
179
|
-
var $ = c.pop() || x.lex() || K;
|
|
180
|
-
return typeof $ != "number" && ($ instanceof Array && (c = $, $ = c.pop()), $ = a.symbols_[$] || $), $;
|
|
181
|
-
}
|
|
182
|
-
n(J, "lex");
|
|
183
|
-
for (var _, W, I, v, Y, S = {}, N, T, Q, O; ; ) {
|
|
184
|
-
if (I = r[r.length - 1], this.defaultActions[I] ? v = this.defaultActions[I] : (_ ??= J(), v = k[I] && k[I][_]), v === void 0 || !v.length || !v[0]) {
|
|
185
|
-
var tt = "";
|
|
186
|
-
for (N in O = [], k[I]) this.terminals_[N] && N > pt && O.push("'" + this.terminals_[N] + "'");
|
|
187
|
-
tt = x.showPosition ? "Parse error on line " + (b + 1) + `:
|
|
188
|
-
` + x.showPosition() + `
|
|
189
|
-
Expecting ` + O.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : "Parse error on line " + (b + 1) + ": Unexpected " + (_ == K ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError(tt, {
|
|
190
|
-
text: x.match,
|
|
191
|
-
token: this.terminals_[_] || _,
|
|
192
|
-
line: x.yylineno,
|
|
193
|
-
loc: q,
|
|
194
|
-
expected: O
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
if (v[0] instanceof Array && v.length > 1) throw Error("Parse Error: multiple actions possible at state: " + I + ", token: " + _);
|
|
198
|
-
switch (v[0]) {
|
|
199
|
-
case 1:
|
|
200
|
-
r.push(_), d.push(x.yytext), o.push(x.yylloc), r.push(v[1]), _ = null, W ? (_ = W, W = null) : (F = x.yyleng, m = x.yytext, b = x.yylineno, q = x.yylloc, V > 0);
|
|
201
|
-
break;
|
|
202
|
-
case 2:
|
|
203
|
-
if (T = this.productions_[v[1]][1], S.$ = d[d.length - T], S._$ = {
|
|
204
|
-
first_line: o[o.length - (T || 1)].first_line,
|
|
205
|
-
last_line: o[o.length - 1].last_line,
|
|
206
|
-
first_column: o[o.length - (T || 1)].first_column,
|
|
207
|
-
last_column: o[o.length - 1].last_column
|
|
208
|
-
}, dt && (S._$.range = [o[o.length - (T || 1)].range[0], o[o.length - 1].range[1]]), Y = this.performAction.apply(S, [
|
|
209
|
-
m,
|
|
210
|
-
F,
|
|
211
|
-
b,
|
|
212
|
-
E.yy,
|
|
213
|
-
v[1],
|
|
214
|
-
d,
|
|
215
|
-
o
|
|
216
|
-
].concat(yt)), Y !== void 0) return Y;
|
|
217
|
-
T && (r = r.slice(0, -1 * T * 2), d = d.slice(0, -1 * T), o = o.slice(0, -1 * T)), r.push(this.productions_[v[1]][0]), d.push(S.$), o.push(S._$), Q = k[r[r.length - 2]][r[r.length - 1]], r.push(Q);
|
|
218
|
-
break;
|
|
219
|
-
case 3:
|
|
220
|
-
return !0;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
return !0;
|
|
224
|
-
}, "parse")
|
|
225
|
-
};
|
|
226
|
-
f.lexer = /* @__PURE__ */ (function() {
|
|
227
|
-
return {
|
|
228
|
-
EOF: 1,
|
|
229
|
-
parseError: /* @__PURE__ */ n(function(i, a) {
|
|
230
|
-
if (this.yy.parser) this.yy.parser.parseError(i, a);
|
|
231
|
-
else throw Error(i);
|
|
232
|
-
}, "parseError"),
|
|
233
|
-
setInput: /* @__PURE__ */ n(function(i, a) {
|
|
234
|
-
return this.yy = a || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
235
|
-
first_line: 1,
|
|
236
|
-
first_column: 0,
|
|
237
|
-
last_line: 1,
|
|
238
|
-
last_column: 0
|
|
239
|
-
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
240
|
-
}, "setInput"),
|
|
241
|
-
input: /* @__PURE__ */ n(function() {
|
|
242
|
-
var i = this._input[0];
|
|
243
|
-
return this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i, i.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
|
|
244
|
-
}, "input"),
|
|
245
|
-
unput: /* @__PURE__ */ n(function(i) {
|
|
246
|
-
var a = i.length, r = i.split(/(?:\r\n?|\n)/g);
|
|
247
|
-
this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
|
|
248
|
-
var c = this.match.split(/(?:\r\n?|\n)/g);
|
|
249
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), r.length - 1 && (this.yylineno -= r.length - 1);
|
|
250
|
-
var d = this.yylloc.range;
|
|
251
|
-
return this.yylloc = {
|
|
252
|
-
first_line: this.yylloc.first_line,
|
|
253
|
-
last_line: this.yylineno + 1,
|
|
254
|
-
first_column: this.yylloc.first_column,
|
|
255
|
-
last_column: r ? (r.length === c.length ? this.yylloc.first_column : 0) + c[c.length - r.length].length - r[0].length : this.yylloc.first_column - a
|
|
256
|
-
}, this.options.ranges && (this.yylloc.range = [d[0], d[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
|
|
257
|
-
}, "unput"),
|
|
258
|
-
more: /* @__PURE__ */ n(function() {
|
|
259
|
-
return this._more = !0, this;
|
|
260
|
-
}, "more"),
|
|
261
|
-
reject: /* @__PURE__ */ n(function() {
|
|
262
|
-
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
263
|
-
else return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
264
|
-
` + this.showPosition(), {
|
|
265
|
-
text: "",
|
|
266
|
-
token: null,
|
|
267
|
-
line: this.yylineno
|
|
268
|
-
});
|
|
269
|
-
return this;
|
|
270
|
-
}, "reject"),
|
|
271
|
-
less: /* @__PURE__ */ n(function(i) {
|
|
272
|
-
this.unput(this.match.slice(i));
|
|
273
|
-
}, "less"),
|
|
274
|
-
pastInput: /* @__PURE__ */ n(function() {
|
|
275
|
-
var i = this.matched.substr(0, this.matched.length - this.match.length);
|
|
276
|
-
return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
|
|
277
|
-
}, "pastInput"),
|
|
278
|
-
upcomingInput: /* @__PURE__ */ n(function() {
|
|
279
|
-
var i = this.match;
|
|
280
|
-
return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
281
|
-
}, "upcomingInput"),
|
|
282
|
-
showPosition: /* @__PURE__ */ n(function() {
|
|
283
|
-
var i = this.pastInput(), a = Array(i.length + 1).join("-");
|
|
284
|
-
return i + this.upcomingInput() + `
|
|
285
|
-
` + a + "^";
|
|
286
|
-
}, "showPosition"),
|
|
287
|
-
test_match: /* @__PURE__ */ n(function(i, a) {
|
|
288
|
-
var r, c, d;
|
|
289
|
-
if (this.options.backtrack_lexer && (d = {
|
|
290
|
-
yylineno: this.yylineno,
|
|
291
|
-
yylloc: {
|
|
292
|
-
first_line: this.yylloc.first_line,
|
|
293
|
-
last_line: this.last_line,
|
|
294
|
-
first_column: this.yylloc.first_column,
|
|
295
|
-
last_column: this.yylloc.last_column
|
|
296
|
-
},
|
|
297
|
-
yytext: this.yytext,
|
|
298
|
-
match: this.match,
|
|
299
|
-
matches: this.matches,
|
|
300
|
-
matched: this.matched,
|
|
301
|
-
yyleng: this.yyleng,
|
|
302
|
-
offset: this.offset,
|
|
303
|
-
_more: this._more,
|
|
304
|
-
_input: this._input,
|
|
305
|
-
yy: this.yy,
|
|
306
|
-
conditionStack: this.conditionStack.slice(0),
|
|
307
|
-
done: this.done
|
|
308
|
-
}, this.options.ranges && (d.yylloc.range = this.yylloc.range.slice(0))), c = i[0].match(/(?:\r\n?|\n).*/g), c && (this.yylineno += c.length), this.yylloc = {
|
|
309
|
-
first_line: this.yylloc.last_line,
|
|
310
|
-
last_line: this.yylineno + 1,
|
|
311
|
-
first_column: this.yylloc.last_column,
|
|
312
|
-
last_column: c ? c[c.length - 1].length - c[c.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
|
|
313
|
-
}, this.yytext += i[0], this.match += i[0], this.matches = i, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(i[0].length), this.matched += i[0], r = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), r) return r;
|
|
314
|
-
if (this._backtrack) {
|
|
315
|
-
for (var o in d) this[o] = d[o];
|
|
316
|
-
return !1;
|
|
317
|
-
}
|
|
318
|
-
return !1;
|
|
319
|
-
}, "test_match"),
|
|
320
|
-
next: /* @__PURE__ */ n(function() {
|
|
321
|
-
if (this.done) return this.EOF;
|
|
322
|
-
this._input || (this.done = !0);
|
|
323
|
-
var i, a, r, c;
|
|
324
|
-
this._more || (this.yytext = "", this.match = "");
|
|
325
|
-
for (var d = this._currentRules(), o = 0; o < d.length; o++) if (r = this._input.match(this.rules[d[o]]), r && (!a || r[0].length > a[0].length)) {
|
|
326
|
-
if (a = r, c = o, this.options.backtrack_lexer) {
|
|
327
|
-
if (i = this.test_match(r, d[o]), i !== !1) return i;
|
|
328
|
-
if (this._backtrack) {
|
|
329
|
-
a = !1;
|
|
330
|
-
continue;
|
|
331
|
-
} else return !1;
|
|
332
|
-
} else if (!this.options.flex) break;
|
|
333
|
-
}
|
|
334
|
-
return a ? (i = this.test_match(a, d[c]), i === !1 ? !1 : i) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
335
|
-
` + this.showPosition(), {
|
|
336
|
-
text: "",
|
|
337
|
-
token: null,
|
|
338
|
-
line: this.yylineno
|
|
339
|
-
});
|
|
340
|
-
}, "next"),
|
|
341
|
-
lex: /* @__PURE__ */ n(function() {
|
|
342
|
-
return this.next() || this.lex();
|
|
343
|
-
}, "lex"),
|
|
344
|
-
begin: /* @__PURE__ */ n(function(i) {
|
|
345
|
-
this.conditionStack.push(i);
|
|
346
|
-
}, "begin"),
|
|
347
|
-
popState: /* @__PURE__ */ n(function() {
|
|
348
|
-
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
349
|
-
}, "popState"),
|
|
350
|
-
_currentRules: /* @__PURE__ */ n(function() {
|
|
351
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
352
|
-
}, "_currentRules"),
|
|
353
|
-
topState: /* @__PURE__ */ n(function(i) {
|
|
354
|
-
return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
|
|
355
|
-
}, "topState"),
|
|
356
|
-
pushState: /* @__PURE__ */ n(function(i) {
|
|
357
|
-
this.begin(i);
|
|
358
|
-
}, "pushState"),
|
|
359
|
-
stateStackSize: /* @__PURE__ */ n(function() {
|
|
360
|
-
return this.conditionStack.length;
|
|
361
|
-
}, "stateStackSize"),
|
|
362
|
-
options: { "case-insensitive": !0 },
|
|
363
|
-
performAction: /* @__PURE__ */ n(function(i, a, r, c) {
|
|
364
|
-
switch (r) {
|
|
365
|
-
case 0:
|
|
366
|
-
break;
|
|
367
|
-
case 1:
|
|
368
|
-
break;
|
|
369
|
-
case 2:
|
|
370
|
-
return 10;
|
|
371
|
-
case 3:
|
|
372
|
-
break;
|
|
373
|
-
case 4:
|
|
374
|
-
break;
|
|
375
|
-
case 5:
|
|
376
|
-
return 4;
|
|
377
|
-
case 6:
|
|
378
|
-
return 11;
|
|
379
|
-
case 7:
|
|
380
|
-
return this.begin("acc_title"), 12;
|
|
381
|
-
case 8:
|
|
382
|
-
return this.popState(), "acc_title_value";
|
|
383
|
-
case 9:
|
|
384
|
-
return this.begin("acc_descr"), 14;
|
|
385
|
-
case 10:
|
|
386
|
-
return this.popState(), "acc_descr_value";
|
|
387
|
-
case 11:
|
|
388
|
-
this.begin("acc_descr_multiline");
|
|
389
|
-
break;
|
|
390
|
-
case 12:
|
|
391
|
-
this.popState();
|
|
392
|
-
break;
|
|
393
|
-
case 13:
|
|
394
|
-
return "acc_descr_multiline_value";
|
|
395
|
-
case 14:
|
|
396
|
-
return 17;
|
|
397
|
-
case 15:
|
|
398
|
-
return 18;
|
|
399
|
-
case 16:
|
|
400
|
-
return 19;
|
|
401
|
-
case 17:
|
|
402
|
-
return ":";
|
|
403
|
-
case 18:
|
|
404
|
-
return 6;
|
|
405
|
-
case 19:
|
|
406
|
-
return "INVALID";
|
|
407
|
-
}
|
|
408
|
-
}, "anonymous"),
|
|
409
|
-
rules: [
|
|
410
|
-
/^(?:%(?!\{)[^\n]*)/i,
|
|
411
|
-
/^(?:[^\}]%%[^\n]*)/i,
|
|
412
|
-
/^(?:[\n]+)/i,
|
|
413
|
-
/^(?:\s+)/i,
|
|
414
|
-
/^(?:#[^\n]*)/i,
|
|
415
|
-
/^(?:journey\b)/i,
|
|
416
|
-
/^(?:title\s[^#\n;]+)/i,
|
|
417
|
-
/^(?:accTitle\s*:\s*)/i,
|
|
418
|
-
/^(?:(?!\n||)*[^\n]*)/i,
|
|
419
|
-
/^(?:accDescr\s*:\s*)/i,
|
|
420
|
-
/^(?:(?!\n||)*[^\n]*)/i,
|
|
421
|
-
/^(?:accDescr\s*\{\s*)/i,
|
|
422
|
-
/^(?:[\}])/i,
|
|
423
|
-
/^(?:[^\}]*)/i,
|
|
424
|
-
/^(?:section\s[^#:\n;]+)/i,
|
|
425
|
-
/^(?:[^#:\n;]+)/i,
|
|
426
|
-
/^(?::[^#\n;]+)/i,
|
|
427
|
-
/^(?::)/i,
|
|
428
|
-
/^(?:$)/i,
|
|
429
|
-
/^(?:.)/i
|
|
430
|
-
],
|
|
431
|
-
conditions: {
|
|
432
|
-
acc_descr_multiline: {
|
|
433
|
-
rules: [12, 13],
|
|
434
|
-
inclusive: !1
|
|
435
|
-
},
|
|
436
|
-
acc_descr: {
|
|
437
|
-
rules: [10],
|
|
438
|
-
inclusive: !1
|
|
439
|
-
},
|
|
440
|
-
acc_title: {
|
|
441
|
-
rules: [8],
|
|
442
|
-
inclusive: !1
|
|
443
|
-
},
|
|
444
|
-
INITIAL: {
|
|
445
|
-
rules: [
|
|
446
|
-
0,
|
|
447
|
-
1,
|
|
448
|
-
2,
|
|
449
|
-
3,
|
|
450
|
-
4,
|
|
451
|
-
5,
|
|
452
|
-
6,
|
|
453
|
-
7,
|
|
454
|
-
9,
|
|
455
|
-
11,
|
|
456
|
-
14,
|
|
457
|
-
15,
|
|
458
|
-
16,
|
|
459
|
-
17,
|
|
460
|
-
18,
|
|
461
|
-
19
|
|
462
|
-
],
|
|
463
|
-
inclusive: !0
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
};
|
|
467
|
-
})();
|
|
468
|
-
function g() {
|
|
469
|
-
this.yy = {};
|
|
470
|
-
}
|
|
471
|
-
return n(g, "Parser"), g.prototype = f, f.Parser = g, new g();
|
|
472
|
-
})();
|
|
473
|
-
U.parser = U;
|
|
474
|
-
var Ct = U, P = "", H = [], B = [], L = [], Et = /* @__PURE__ */ n(function() {
|
|
475
|
-
H.length = 0, B.length = 0, P = "", L.length = 0, $t();
|
|
476
|
-
}, "clear"), It = /* @__PURE__ */ n(function(t) {
|
|
477
|
-
P = t, H.push(t);
|
|
478
|
-
}, "addSection"), St = /* @__PURE__ */ n(function() {
|
|
479
|
-
return H;
|
|
480
|
-
}, "getSections"), Pt = /* @__PURE__ */ n(function() {
|
|
481
|
-
let t = st(), e = 0;
|
|
482
|
-
for (; !t && e < 100; ) t = st(), e++;
|
|
483
|
-
return B.push(...L), B;
|
|
484
|
-
}, "getTasks"), jt = /* @__PURE__ */ n(function() {
|
|
485
|
-
let t = [];
|
|
486
|
-
return B.forEach((e) => {
|
|
487
|
-
e.people && t.push(...e.people);
|
|
488
|
-
}), [...new Set(t)].sort();
|
|
489
|
-
}, "updateActors"), Ft = /* @__PURE__ */ n(function(t, e) {
|
|
490
|
-
let l = e.substr(1).split(":"), y = 0, s = [];
|
|
491
|
-
l.length === 1 ? (y = Number(l[0]), s = []) : (y = Number(l[0]), s = l[1].split(","));
|
|
492
|
-
let h = s.map((p) => p.trim()), u = {
|
|
493
|
-
section: P,
|
|
494
|
-
type: P,
|
|
495
|
-
people: h,
|
|
496
|
-
task: t,
|
|
497
|
-
score: y
|
|
498
|
-
};
|
|
499
|
-
L.push(u);
|
|
500
|
-
}, "addTask"), Vt = /* @__PURE__ */ n(function(t) {
|
|
501
|
-
let e = {
|
|
502
|
-
section: P,
|
|
503
|
-
type: P,
|
|
504
|
-
description: t,
|
|
505
|
-
task: t,
|
|
506
|
-
classes: []
|
|
507
|
-
};
|
|
508
|
-
B.push(e);
|
|
509
|
-
}, "addTaskOrg"), st = /* @__PURE__ */ n(function() {
|
|
510
|
-
let t = /* @__PURE__ */ n(function(l) {
|
|
511
|
-
return L[l].processed;
|
|
512
|
-
}, "compileTask"), e = !0;
|
|
513
|
-
for (let [l, y] of L.entries()) t(l), e &&= y.processed;
|
|
514
|
-
return e;
|
|
515
|
-
}, "compileTasks"), rt = {
|
|
516
|
-
getConfig: /* @__PURE__ */ n(() => j().journey, "getConfig"),
|
|
517
|
-
clear: Et,
|
|
518
|
-
setDiagramTitle: bt,
|
|
519
|
-
getDiagramTitle: _t,
|
|
520
|
-
setAccTitle: kt,
|
|
521
|
-
getAccTitle: xt,
|
|
522
|
-
setAccDescription: mt,
|
|
523
|
-
getAccDescription: gt,
|
|
524
|
-
addSection: It,
|
|
525
|
-
getSections: St,
|
|
526
|
-
getTasks: Pt,
|
|
527
|
-
addTask: Ft,
|
|
528
|
-
addTaskOrg: Vt,
|
|
529
|
-
getActors: /* @__PURE__ */ n(function() {
|
|
530
|
-
return jt();
|
|
531
|
-
}, "getActors")
|
|
532
|
-
}, Bt = /* @__PURE__ */ n((t) => `.label {
|
|
533
|
-
font-family: ${t.fontFamily};
|
|
534
|
-
color: ${t.textColor};
|
|
535
|
-
}
|
|
536
|
-
.mouth {
|
|
537
|
-
stroke: #666;
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
line {
|
|
541
|
-
stroke: ${t.textColor}
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
.legend {
|
|
545
|
-
fill: ${t.textColor};
|
|
546
|
-
font-family: ${t.fontFamily};
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
.label text {
|
|
550
|
-
fill: #333;
|
|
551
|
-
}
|
|
552
|
-
.label {
|
|
553
|
-
color: ${t.textColor}
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
.face {
|
|
557
|
-
${t.faceColor ? `fill: ${t.faceColor}` : "fill: #FFF8DC"};
|
|
558
|
-
stroke: #999;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
.node rect,
|
|
562
|
-
.node circle,
|
|
563
|
-
.node ellipse,
|
|
564
|
-
.node polygon,
|
|
565
|
-
.node path {
|
|
566
|
-
fill: ${t.mainBkg};
|
|
567
|
-
stroke: ${t.nodeBorder};
|
|
568
|
-
stroke-width: 1px;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
.node .label {
|
|
572
|
-
text-align: center;
|
|
573
|
-
}
|
|
574
|
-
.node.clickable {
|
|
575
|
-
cursor: pointer;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
.arrowheadPath {
|
|
579
|
-
fill: ${t.arrowheadColor};
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
.edgePath .path {
|
|
583
|
-
stroke: ${t.lineColor};
|
|
584
|
-
stroke-width: 1.5px;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
.flowchart-link {
|
|
588
|
-
stroke: ${t.lineColor};
|
|
589
|
-
fill: none;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
.edgeLabel {
|
|
593
|
-
background-color: ${t.edgeLabelBackground};
|
|
594
|
-
rect {
|
|
595
|
-
opacity: 0.5;
|
|
596
|
-
}
|
|
597
|
-
text-align: center;
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
.cluster rect {
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
.cluster text {
|
|
604
|
-
fill: ${t.titleColor};
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
div.mermaidTooltip {
|
|
608
|
-
position: absolute;
|
|
609
|
-
text-align: center;
|
|
610
|
-
max-width: 200px;
|
|
611
|
-
padding: 2px;
|
|
612
|
-
font-family: ${t.fontFamily};
|
|
613
|
-
font-size: 12px;
|
|
614
|
-
background: ${t.tertiaryColor};
|
|
615
|
-
border: 1px solid ${t.border2};
|
|
616
|
-
border-radius: 2px;
|
|
617
|
-
pointer-events: none;
|
|
618
|
-
z-index: 100;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
.task-type-0, .section-type-0 {
|
|
622
|
-
${t.fillType0 ? `fill: ${t.fillType0}` : ""};
|
|
623
|
-
}
|
|
624
|
-
.task-type-1, .section-type-1 {
|
|
625
|
-
${t.fillType0 ? `fill: ${t.fillType1}` : ""};
|
|
626
|
-
}
|
|
627
|
-
.task-type-2, .section-type-2 {
|
|
628
|
-
${t.fillType0 ? `fill: ${t.fillType2}` : ""};
|
|
629
|
-
}
|
|
630
|
-
.task-type-3, .section-type-3 {
|
|
631
|
-
${t.fillType0 ? `fill: ${t.fillType3}` : ""};
|
|
632
|
-
}
|
|
633
|
-
.task-type-4, .section-type-4 {
|
|
634
|
-
${t.fillType0 ? `fill: ${t.fillType4}` : ""};
|
|
635
|
-
}
|
|
636
|
-
.task-type-5, .section-type-5 {
|
|
637
|
-
${t.fillType0 ? `fill: ${t.fillType5}` : ""};
|
|
638
|
-
}
|
|
639
|
-
.task-type-6, .section-type-6 {
|
|
640
|
-
${t.fillType0 ? `fill: ${t.fillType6}` : ""};
|
|
641
|
-
}
|
|
642
|
-
.task-type-7, .section-type-7 {
|
|
643
|
-
${t.fillType0 ? `fill: ${t.fillType7}` : ""};
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
.actor-0 {
|
|
647
|
-
${t.actor0 ? `fill: ${t.actor0}` : ""};
|
|
648
|
-
}
|
|
649
|
-
.actor-1 {
|
|
650
|
-
${t.actor1 ? `fill: ${t.actor1}` : ""};
|
|
651
|
-
}
|
|
652
|
-
.actor-2 {
|
|
653
|
-
${t.actor2 ? `fill: ${t.actor2}` : ""};
|
|
654
|
-
}
|
|
655
|
-
.actor-3 {
|
|
656
|
-
${t.actor3 ? `fill: ${t.actor3}` : ""};
|
|
657
|
-
}
|
|
658
|
-
.actor-4 {
|
|
659
|
-
${t.actor4 ? `fill: ${t.actor4}` : ""};
|
|
660
|
-
}
|
|
661
|
-
.actor-5 {
|
|
662
|
-
${t.actor5 ? `fill: ${t.actor5}` : ""};
|
|
663
|
-
}
|
|
664
|
-
${wt()}
|
|
665
|
-
`, "getStyles"), Z = /* @__PURE__ */ n(function(t, e) {
|
|
666
|
-
return At(t, e);
|
|
667
|
-
}, "drawRect"), Lt = /* @__PURE__ */ n(function(t, e) {
|
|
668
|
-
let l = t.append("circle").attr("cx", e.cx).attr("cy", e.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), y = t.append("g");
|
|
669
|
-
y.append("circle").attr("cx", e.cx - 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), y.append("circle").attr("cx", e.cx + 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
|
|
670
|
-
function s(p) {
|
|
671
|
-
let f = it().startAngle(Math.PI / 2).endAngle(Math.PI / 2 * 3).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
672
|
-
p.append("path").attr("class", "mouth").attr("d", f).attr("transform", "translate(" + e.cx + "," + (e.cy + 2) + ")");
|
|
673
|
-
}
|
|
674
|
-
n(s, "smile");
|
|
675
|
-
function h(p) {
|
|
676
|
-
let f = it().startAngle(3 * Math.PI / 2).endAngle(Math.PI / 2 * 5).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
677
|
-
p.append("path").attr("class", "mouth").attr("d", f).attr("transform", "translate(" + e.cx + "," + (e.cy + 7) + ")");
|
|
678
|
-
}
|
|
679
|
-
n(h, "sad");
|
|
680
|
-
function u(p) {
|
|
681
|
-
p.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", e.cx - 5).attr("y1", e.cy + 7).attr("x2", e.cx + 5).attr("y2", e.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
|
|
682
|
-
}
|
|
683
|
-
return n(u, "ambivalent"), e.score > 3 ? s(y) : e.score < 3 ? h(y) : u(y), l;
|
|
684
|
-
}, "drawFace"), lt = /* @__PURE__ */ n(function(t, e) {
|
|
685
|
-
let l = t.append("circle");
|
|
686
|
-
return l.attr("cx", e.cx), l.attr("cy", e.cy), l.attr("class", "actor-" + e.pos), l.attr("fill", e.fill), l.attr("stroke", e.stroke), l.attr("r", e.r), l.class !== void 0 && l.attr("class", l.class), e.title !== void 0 && l.append("title").text(e.title), l;
|
|
687
|
-
}, "drawCircle"), ct = /* @__PURE__ */ n(function(t, e) {
|
|
688
|
-
return Tt(t, e);
|
|
689
|
-
}, "drawText"), Rt = /* @__PURE__ */ n(function(t, e) {
|
|
690
|
-
function l(s, h, u, p, f) {
|
|
691
|
-
return s + "," + h + " " + (s + u) + "," + h + " " + (s + u) + "," + (h + p - f) + " " + (s + u - f * 1.2) + "," + (h + p) + " " + s + "," + (h + p);
|
|
692
|
-
}
|
|
693
|
-
n(l, "genPoints");
|
|
694
|
-
let y = t.append("polygon");
|
|
695
|
-
y.attr("points", l(e.x, e.y, 50, 20, 7)), y.attr("class", "labelBox"), e.y += e.labelMargin, e.x += 0.5 * e.labelMargin, ct(t, e);
|
|
696
|
-
}, "drawLabel"), Nt = /* @__PURE__ */ n(function(t, e, l) {
|
|
697
|
-
let y = t.append("g"), s = ot();
|
|
698
|
-
s.x = e.x, s.y = e.y, s.fill = e.fill, s.width = l.width * e.taskCount + l.diagramMarginX * (e.taskCount - 1), s.height = l.height, s.class = "journey-section section-type-" + e.num, s.rx = 3, s.ry = 3, Z(y, s), ht(l)(e.text, y, s.x, s.y, s.width, s.height, { class: "journey-section section-type-" + e.num }, l, e.colour);
|
|
699
|
-
}, "drawSection"), X = -1, Ot = /* @__PURE__ */ n(function(t, e, l, y) {
|
|
700
|
-
let s = e.x + l.width / 2, h = t.append("g");
|
|
701
|
-
X++, h.append("line").attr("id", y + "-task" + X).attr("x1", s).attr("y1", e.y).attr("x2", s).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Lt(h, {
|
|
702
|
-
cx: s,
|
|
703
|
-
cy: 300 + (5 - e.score) * 30,
|
|
704
|
-
score: e.score
|
|
705
|
-
});
|
|
706
|
-
let u = ot();
|
|
707
|
-
u.x = e.x, u.y = e.y, u.fill = e.fill, u.width = l.width, u.height = l.height, u.class = "task task-type-" + e.num, u.rx = 3, u.ry = 3, Z(h, u);
|
|
708
|
-
let p = e.x + 14;
|
|
709
|
-
e.people.forEach((f) => {
|
|
710
|
-
let g = e.actors[f].color;
|
|
711
|
-
lt(h, {
|
|
712
|
-
cx: p,
|
|
713
|
-
cy: e.y,
|
|
714
|
-
r: 7,
|
|
715
|
-
fill: g,
|
|
716
|
-
stroke: "#000",
|
|
717
|
-
title: f,
|
|
718
|
-
pos: e.actors[f].position
|
|
719
|
-
}), p += 10;
|
|
720
|
-
}), ht(l)(e.task, h, u.x, u.y, u.width, u.height, { class: "task" }, l, e.colour);
|
|
721
|
-
}, "drawTask"), zt = /* @__PURE__ */ n(function(t, e) {
|
|
722
|
-
Mt(t, e);
|
|
723
|
-
}, "drawBackgroundRect"), ht = /* @__PURE__ */ (function() {
|
|
724
|
-
function t(s, h, u, p, f, g, i, a) {
|
|
725
|
-
y(h.append("text").attr("x", u + f / 2).attr("y", p + g / 2 + 5).style("font-color", a).style("text-anchor", "middle").text(s), i);
|
|
726
|
-
}
|
|
727
|
-
n(t, "byText");
|
|
728
|
-
function e(s, h, u, p, f, g, i, a, r) {
|
|
729
|
-
let { taskFontSize: c, taskFontFamily: d } = a, o = s.split(/<br\s*\/?>/gi);
|
|
730
|
-
for (let k = 0; k < o.length; k++) {
|
|
731
|
-
let m = k * c - c * (o.length - 1) / 2, b = h.append("text").attr("x", u + f / 2).attr("y", p).attr("fill", r).style("text-anchor", "middle").style("font-size", c).style("font-family", d);
|
|
732
|
-
b.append("tspan").attr("x", u + f / 2).attr("dy", m).text(o[k]), b.attr("y", p + g / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), y(b, i);
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
n(e, "byTspan");
|
|
736
|
-
function l(s, h, u, p, f, g, i, a) {
|
|
737
|
-
let r = h.append("switch"), c = r.append("foreignObject").attr("x", u).attr("y", p).attr("width", f).attr("height", g).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
738
|
-
c.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(s), e(s, r, u, p, f, g, i, a), y(c, i);
|
|
739
|
-
}
|
|
740
|
-
n(l, "byFo");
|
|
741
|
-
function y(s, h) {
|
|
742
|
-
for (let u in h) u in h && s.attr(u, h[u]);
|
|
743
|
-
}
|
|
744
|
-
return n(y, "_setTextAttrs"), function(s) {
|
|
745
|
-
return s.textPlacement === "fo" ? l : s.textPlacement === "old" ? t : e;
|
|
746
|
-
};
|
|
747
|
-
})(), R = {
|
|
748
|
-
drawRect: Z,
|
|
749
|
-
drawCircle: lt,
|
|
750
|
-
drawSection: Nt,
|
|
751
|
-
drawText: ct,
|
|
752
|
-
drawLabel: Rt,
|
|
753
|
-
drawTask: Ot,
|
|
754
|
-
drawBackgroundRect: zt,
|
|
755
|
-
initGraphics: /* @__PURE__ */ n(function(t, e) {
|
|
756
|
-
X = -1, t.append("defs").append("marker").attr("id", e + "-arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
|
|
757
|
-
}, "initGraphics")
|
|
758
|
-
}, Dt = /* @__PURE__ */ n(function(t) {
|
|
759
|
-
Object.keys(t).forEach(function(e) {
|
|
760
|
-
M[e] = t[e];
|
|
761
|
-
});
|
|
762
|
-
}, "setConf"), A = {}, z = 0;
|
|
763
|
-
function ut(t) {
|
|
764
|
-
let e = j().journey, l = e.maxLabelWidth;
|
|
765
|
-
z = 0;
|
|
766
|
-
let y = 60;
|
|
767
|
-
Object.keys(A).forEach((s) => {
|
|
768
|
-
let h = A[s].color, u = {
|
|
769
|
-
cx: 20,
|
|
770
|
-
cy: y,
|
|
771
|
-
r: 7,
|
|
772
|
-
fill: h,
|
|
773
|
-
stroke: "#000",
|
|
774
|
-
pos: A[s].position
|
|
775
|
-
};
|
|
776
|
-
R.drawCircle(t, u);
|
|
777
|
-
let p = t.append("text").attr("visibility", "hidden").text(s), f = p.node().getBoundingClientRect().width;
|
|
778
|
-
p.remove();
|
|
779
|
-
let g = [];
|
|
780
|
-
if (f <= l) g = [s];
|
|
781
|
-
else {
|
|
782
|
-
let i = s.split(" "), a = "";
|
|
783
|
-
p = t.append("text").attr("visibility", "hidden"), i.forEach((r) => {
|
|
784
|
-
let c = a ? `${a} ${r}` : r;
|
|
785
|
-
if (p.text(c), p.node().getBoundingClientRect().width > l) {
|
|
786
|
-
if (a && g.push(a), a = r, p.text(r), p.node().getBoundingClientRect().width > l) {
|
|
787
|
-
let d = "";
|
|
788
|
-
for (let o of r) d += o, p.text(d + "-"), p.node().getBoundingClientRect().width > l && (g.push(d.slice(0, -1) + "-"), d = o);
|
|
789
|
-
a = d;
|
|
790
|
-
}
|
|
791
|
-
} else a = c;
|
|
792
|
-
}), a && g.push(a), p.remove();
|
|
793
|
-
}
|
|
794
|
-
g.forEach((i, a) => {
|
|
795
|
-
let r = {
|
|
796
|
-
x: 40,
|
|
797
|
-
y: y + 7 + a * 20,
|
|
798
|
-
fill: "#666",
|
|
799
|
-
text: i,
|
|
800
|
-
textMargin: e.boxTextMargin ?? 5
|
|
801
|
-
}, c = R.drawText(t, r).node().getBoundingClientRect().width;
|
|
802
|
-
c > z && c > e.leftMargin - c && (z = c);
|
|
803
|
-
}), y += Math.max(20, g.length * 20);
|
|
804
|
-
});
|
|
805
|
-
}
|
|
806
|
-
n(ut, "drawActorLegend");
|
|
807
|
-
var M = j().journey, C = 0, qt = /* @__PURE__ */ n(function(t, e, l, y) {
|
|
808
|
-
let s = j(), h = s.journey.titleColor, u = s.journey.titleFontSize, p = s.journey.titleFontFamily, f = s.securityLevel, g;
|
|
809
|
-
f === "sandbox" && (g = et("#i" + e));
|
|
810
|
-
let i = et(f === "sandbox" ? g.nodes()[0].contentDocument.body : "body");
|
|
811
|
-
w.init();
|
|
812
|
-
let a = i.select("#" + e);
|
|
813
|
-
R.initGraphics(a, e);
|
|
814
|
-
let r = y.db.getTasks(), c = y.db.getDiagramTitle(), d = y.db.getActors();
|
|
815
|
-
for (let V in A) delete A[V];
|
|
816
|
-
let o = 0;
|
|
817
|
-
d.forEach((V) => {
|
|
818
|
-
A[V] = {
|
|
819
|
-
color: M.actorColours[o % M.actorColours.length],
|
|
820
|
-
position: o
|
|
821
|
-
}, o++;
|
|
822
|
-
}), ut(a), C = M.leftMargin + z, w.insert(0, 0, C, Object.keys(A).length * 50), Wt(a, r, 0, e);
|
|
823
|
-
let k = w.getBounds();
|
|
824
|
-
c && a.append("text").text(c).attr("x", C).attr("font-size", u).attr("font-weight", "bold").attr("y", 25).attr("fill", h).attr("font-family", p);
|
|
825
|
-
let m = k.stopy - k.starty + 2 * M.diagramMarginY, b = C + k.stopx + 2 * M.diagramMarginX;
|
|
826
|
-
vt(a, m, b, M.useMaxWidth), a.append("line").attr("x1", C).attr("y1", M.height * 4).attr("x2", b - C - 4).attr("y2", M.height * 4).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#" + e + "-arrowhead)");
|
|
827
|
-
let F = c ? 70 : 0;
|
|
828
|
-
a.attr("viewBox", `${k.startx} -25 ${b} ${m + F}`), a.attr("preserveAspectRatio", "xMinYMin meet"), a.attr("height", m + F + 25);
|
|
829
|
-
}, "draw"), w = {
|
|
830
|
-
data: {
|
|
831
|
-
startx: void 0,
|
|
832
|
-
stopx: void 0,
|
|
833
|
-
starty: void 0,
|
|
834
|
-
stopy: void 0
|
|
835
|
-
},
|
|
836
|
-
verticalPos: 0,
|
|
837
|
-
sequenceItems: [],
|
|
838
|
-
init: /* @__PURE__ */ n(function() {
|
|
839
|
-
this.sequenceItems = [], this.data = {
|
|
840
|
-
startx: void 0,
|
|
841
|
-
stopx: void 0,
|
|
842
|
-
starty: void 0,
|
|
843
|
-
stopy: void 0
|
|
844
|
-
}, this.verticalPos = 0;
|
|
845
|
-
}, "init"),
|
|
846
|
-
updateVal: /* @__PURE__ */ n(function(t, e, l, y) {
|
|
847
|
-
t[e] === void 0 ? t[e] = l : t[e] = y(l, t[e]);
|
|
848
|
-
}, "updateVal"),
|
|
849
|
-
updateBounds: /* @__PURE__ */ n(function(t, e, l, y) {
|
|
850
|
-
let s = j().journey, h = this, u = 0;
|
|
851
|
-
function p(f) {
|
|
852
|
-
return /* @__PURE__ */ n(function(g) {
|
|
853
|
-
u++;
|
|
854
|
-
let i = h.sequenceItems.length - u + 1;
|
|
855
|
-
h.updateVal(g, "starty", e - i * s.boxMargin, Math.min), h.updateVal(g, "stopy", y + i * s.boxMargin, Math.max), h.updateVal(w.data, "startx", t - i * s.boxMargin, Math.min), h.updateVal(w.data, "stopx", l + i * s.boxMargin, Math.max), f !== "activation" && (h.updateVal(g, "startx", t - i * s.boxMargin, Math.min), h.updateVal(g, "stopx", l + i * s.boxMargin, Math.max), h.updateVal(w.data, "starty", e - i * s.boxMargin, Math.min), h.updateVal(w.data, "stopy", y + i * s.boxMargin, Math.max));
|
|
856
|
-
}, "updateItemBounds");
|
|
857
|
-
}
|
|
858
|
-
n(p, "updateFn"), this.sequenceItems.forEach(p());
|
|
859
|
-
}, "updateBounds"),
|
|
860
|
-
insert: /* @__PURE__ */ n(function(t, e, l, y) {
|
|
861
|
-
let s = Math.min(t, l), h = Math.max(t, l), u = Math.min(e, y), p = Math.max(e, y);
|
|
862
|
-
this.updateVal(w.data, "startx", s, Math.min), this.updateVal(w.data, "starty", u, Math.min), this.updateVal(w.data, "stopx", h, Math.max), this.updateVal(w.data, "stopy", p, Math.max), this.updateBounds(s, u, h, p);
|
|
863
|
-
}, "insert"),
|
|
864
|
-
bumpVerticalPos: /* @__PURE__ */ n(function(t) {
|
|
865
|
-
this.verticalPos += t, this.data.stopy = this.verticalPos;
|
|
866
|
-
}, "bumpVerticalPos"),
|
|
867
|
-
getVerticalPos: /* @__PURE__ */ n(function() {
|
|
868
|
-
return this.verticalPos;
|
|
869
|
-
}, "getVerticalPos"),
|
|
870
|
-
getBounds: /* @__PURE__ */ n(function() {
|
|
871
|
-
return this.data;
|
|
872
|
-
}, "getBounds")
|
|
873
|
-
}, G = M.sectionFills, nt = M.sectionColours, Wt = /* @__PURE__ */ n(function(t, e, l, y) {
|
|
874
|
-
let s = j().journey, h = "", u = l + (s.height * 2 + s.diagramMarginY), p = 0, f = "#CCC", g = "black", i = 0;
|
|
875
|
-
for (let [a, r] of e.entries()) {
|
|
876
|
-
if (h !== r.section) {
|
|
877
|
-
f = G[p % G.length], i = p % G.length, g = nt[p % nt.length];
|
|
878
|
-
let d = 0, o = r.section;
|
|
879
|
-
for (let m = a; m < e.length && e[m].section == o; m++) d += 1;
|
|
880
|
-
let k = {
|
|
881
|
-
x: a * s.taskMargin + a * s.width + C,
|
|
882
|
-
y: 50,
|
|
883
|
-
text: r.section,
|
|
884
|
-
fill: f,
|
|
885
|
-
num: i,
|
|
886
|
-
colour: g,
|
|
887
|
-
taskCount: d
|
|
888
|
-
};
|
|
889
|
-
R.drawSection(t, k, s), h = r.section, p++;
|
|
890
|
-
}
|
|
891
|
-
let c = r.people.reduce((d, o) => (A[o] && (d[o] = A[o]), d), {});
|
|
892
|
-
r.x = a * s.taskMargin + a * s.width + C, r.y = u, r.width = s.diagramMarginX, r.height = s.diagramMarginY, r.colour = g, r.fill = f, r.num = i, r.actors = c, R.drawTask(t, r, s, y), w.insert(r.x, r.y, r.x + r.width + s.taskMargin, 450);
|
|
893
|
-
}
|
|
894
|
-
}, "drawTasks"), at = {
|
|
895
|
-
setConf: Dt,
|
|
896
|
-
draw: qt
|
|
897
|
-
}, Ht = {
|
|
898
|
-
parser: Ct,
|
|
899
|
-
db: rt,
|
|
900
|
-
renderer: at,
|
|
901
|
-
styles: Bt,
|
|
902
|
-
init: /* @__PURE__ */ n((t) => {
|
|
903
|
-
at.setConf(t.journey), rt.clear();
|
|
904
|
-
}, "init")
|
|
905
|
-
};
|
|
906
|
-
export {
|
|
907
|
-
Ht as diagram
|
|
908
|
-
};
|