@kong-ui-public/documentation 1.4.31-pr.2751.7a3f18384.0 → 1.4.32-pr.2694.d983d66d0.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/_basePickBy-BCsiP0lE-DJBdvZNn.js +0 -151
- package/dist/_baseUniq-CsvgMmt0-CCBG5z_B.js +0 -614
- package/dist/arc-DYb5Ak6k-js8YHzj6.js +0 -83
- package/dist/architecture-U656AL7Q-LZu-yAfZ-CQD6AyxA.js +0 -5
- package/dist/architectureDiagram-KFL7JDKH-BK_an8l5-D20M_MXF.js +0 -4665
- package/dist/astro-Uf8_VxKJ-CZxoSljj.js +0 -16
- package/dist/blockDiagram-ZYB65J3Q-C0KtqCEe-pwEm3-ie.js +0 -2265
- package/dist/c-DASdrs7p-DASdrs7p.js +0 -6
- package/dist/c4Diagram-AAMF2YG6-DYHWlrmc-C6NWDsTV.js +0 -1581
- package/dist/channel-3QVQMCTA-BwyrTaJi.js +0 -5
- package/dist/chunk-ANTBXLJU-BhR1MDfy-Bec7kb00.js +0 -9
- package/dist/chunk-FHKO5MBM-z_nuC8Da-Dge2Nbr5.js +0 -15
- package/dist/chunk-GLLZNHP4-DgwBbAOT-BUrsAxH8.js +0 -19
- package/dist/chunk-JBRWN2VN-CHua2TSC-BYWS19Oz.js +0 -1374
- package/dist/chunk-LXBSTHXV-CoED0jHL-Cc8w4JL1.js +0 -1382
- package/dist/chunk-NRVI72HA-DxsqT4Dt-Bo_vu9qn.js +0 -20
- package/dist/chunk-OMD6QJNC-_VI6zVGr-Bb4P7zNG.js +0 -64
- package/dist/chunk-WVR4S24B-C4HIWky3-CkJ0DHSJ.js +0 -8
- package/dist/classDiagram-3BZAVTQC-DrmNjTt_-CS9fxl_R.js +0 -16
- package/dist/classDiagram-v2-QTMF73CY-DrmNjTt_-CS9fxl_R.js +0 -16
- package/dist/clone-C0dvnYv6-BozdSvey.js +0 -8
- package/dist/csharp-CYWRhZ2R-CYWRhZ2R.js +0 -6
- package/dist/css-D1aVdRIU-D1aVdRIU.js +0 -6
- package/dist/csv-DvCncUGQ-Tno401i9.js +0 -6
- package/dist/cytoscape.esm-CjI2IsL8-DYIumutE.js +0 -18721
- package/dist/dagre-2BBEFEWP-Bh_bYuL8-Cej31YXN.js +0 -447
- package/dist/defaultLocale-D7EN2tov-CK6dgF7Y.js +0 -171
- package/dist/diagram-4IRLE6MV-34TaesxP-XfF-gcP2.js +0 -533
- package/dist/diagram-GUPCWM2R-Cr4-5_uX-B8mxM1Uc.js +0 -143
- package/dist/diagram-RP2FKANI-COpvHjzI-C-_mZxuk.js +0 -221
- package/dist/diff-XmNrvgM1-XmNrvgM1.js +0 -6
- package/dist/docker-DWH2onkn-DWH2onkn.js +0 -6
- package/dist/documentation.es.js +0 -7
- package/dist/documentation.umd.js +0 -2865
- package/dist/erDiagram-HZWUO2LU-Cu2MerRS-KziSgDQg.js +0 -840
- package/dist/flowDiagram-THRYKUMA-CfrQTB8C-BYn8LF24.js +0 -1627
- package/dist/ganttDiagram-WV7ZQ7D5-gkieebY_-C7YOriZ4.js +0 -2504
- package/dist/git-commit-BspYIY3P-VkbIfR3L.js +0 -8
- package/dist/git-rebase--zLBTjUa-DEW2tfKx.js +0 -8
- package/dist/gitGraph-F6HP7TQM-suE5ufvy-CQDQV2yP.js +0 -5
- package/dist/gitGraphDiagram-OJR772UL-CYA7EIoU-Bqc1qZk4.js +0 -712
- package/dist/go-BErP6iv1-BErP6iv1.js +0 -6
- package/dist/graph-B_1gOUDz-Dm6REFzZ.js +0 -247
- package/dist/graphql-DWpQF4JI-C-3VJmtp.js +0 -14
- package/dist/haml-CMN0hQaL-BV5BsZTy.js +0 -10
- package/dist/handlebars-Cc-7fXX5-B9YgDKzT.js +0 -14
- package/dist/haskell-CtlGos0K-CtlGos0K.js +0 -6
- package/dist/html-B0P_v3yU-BojM9zZg.js +0 -10
- package/dist/html-derivative-BJFFAxYV-iD6NAoKm.js +0 -8
- package/dist/http-Dcjm_K1m-1LFSbOE1.js +0 -14
- package/dist/index-BDD0CD9m.js +0 -37385
- package/dist/info-NVLQJR56-CdsHk-Jf-tf8zb8tD.js +0 -5
- package/dist/infoDiagram-6WOFNB3A-ajp3t5Lm-D80dGo5F.js +0 -24
- package/dist/ini-BUcvsX-U-BUcvsX-U.js +0 -6
- package/dist/init-DjUOC4st-C8Nwz6AJ.js +0 -16
- package/dist/java-B7odJ7Ap-B7odJ7Ap.js +0 -6
- package/dist/javascript-fa8UlHZE-fa8UlHZE.js +0 -6
- package/dist/journeyDiagram-FFXJYRFH-kgCEEPLo-CakI8CyJ.js +0 -834
- package/dist/json-71t8ZF9g-71t8ZF9g.js +0 -6
- package/dist/json5-Z7F6rA6a-Z7F6rA6a.js +0 -6
- package/dist/jsonc-Dphhs4m2-Dphhs4m2.js +0 -6
- package/dist/jsonl-D9jj92Gg-D9jj92Gg.js +0 -6
- package/dist/jsx-Bkesy5tT-Bkesy5tT.js +0 -6
- package/dist/kanban-definition-KOZQBZVT-CmM4CHe6-rjuufCiO.js +0 -720
- package/dist/katex-C0Lgw_Sx-CbX2I1cQ.js +0 -11687
- package/dist/kotlin-DCgZY7Ii-DCgZY7Ii.js +0 -6
- package/dist/latex-CZXk8SiZ-DbjDPp_f.js +0 -11
- package/dist/layout-9vIfpCf3-FfABA43y.js +0 -1321
- package/dist/less-DQA4v-Nm-DQA4v-Nm.js +0 -6
- package/dist/linear-C-k9vokG-Md9dfBfB.js +0 -259
- package/dist/liquid-CvufO3kO-D90bBAdm.js +0 -14
- package/dist/lua-BVfhNLDr-DAa90qLN.js +0 -8
- package/dist/make-BjuHP00g-BjuHP00g.js +0 -6
- package/dist/markdown-B6guhLWd-B6guhLWd.js +0 -6
- package/dist/material-theme-lighter-BUBw43Yz-BUBw43Yz.js +0 -4
- package/dist/material-theme-palenight-C1RVm8K1-C1RVm8K1.js +0 -4
- package/dist/mdc-Bq810vct-Dr8CpN8f.js +0 -12
- package/dist/mdx-DIoECIFU-DIoECIFU.js +0 -6
- package/dist/mermaid-BZ7WHNIe-BZ7WHNIe.js +0 -6
- package/dist/mermaid-parser.core-DHL9WXVx-DeKF3RZx.js +0 -12890
- package/dist/mindmap-definition-LNHGMQRG-BsypuFYj-DSVrvuog.js +0 -3231
- package/dist/nginx-Can2eAjw-DKMoypYC.js +0 -8
- package/dist/objective-c-BGg9R27G-BGg9R27G.js +0 -6
- package/dist/ordinal-DfAQgscy-BEJTu10r.js +0 -61
- package/dist/packet-BFZMPI3H-BcK9kJ-B-BxxCPBGn.js +0 -5
- package/dist/pascal-l2bqd7Dz-l2bqd7Dz.js +0 -6
- package/dist/perl-DaMQyPwp-Cxx4wmV7.js +0 -16
- package/dist/php-BL3EfPBi-BZu5YwDX.js +0 -18
- package/dist/pie-7BOR55EZ-Vt5px0F3-BM7egbMh.js +0 -5
- package/dist/pieDiagram-DBDJKBY4-Bam6gKTi-BOqYeC6c.js +0 -161
- package/dist/plsql-oVq_K_wH-oVq_K_wH.js +0 -6
- package/dist/postcss-BZ3MNRIJ-BZ3MNRIJ.js +0 -6
- package/dist/powershell-Diwyv8Eh-Diwyv8Eh.js +0 -6
- package/dist/proto-o9HLmF90-o9HLmF90.js +0 -6
- package/dist/pug-HKe4Luo3-BYb0El_4.js +0 -12
- package/dist/python-xYxLFJY--xYxLFJY-.js +0 -6
- package/dist/quadrantDiagram-YPSRARAO-CJwMw09m-CN2OO-Le.js +0 -1024
- package/dist/r-F-9I-ITZ-F-9I-ITZ.js +0 -6
- package/dist/radar-NHE76QYJ-Br11XWE4-4RP4MPFA.js +0 -5
- package/dist/reg-CMUdAgIP-CMUdAgIP.js +0 -6
- package/dist/requirementDiagram-EGVEC5DT-DkRytT0X-C2zigskn.js +0 -850
- package/dist/rst-B8JEEtLI-Dyxh6LOj.js +0 -22
- package/dist/ruby-FDlfLkNa-nf7VLvCK.js +0 -50
- package/dist/rust-Pc7DCsZD-Pc7DCsZD.js +0 -6
- package/dist/sankeyDiagram-HRAUVNP4-08s1UHMk-2j8idkNs.js +0 -810
- package/dist/sass-iCyS6eP9-iCyS6eP9.js +0 -6
- package/dist/scss-DhHc4lxB-D1lMETuy.js +0 -8
- package/dist/sequenceDiagram-WFGC7UMF-6_s7-CN7-D-oTpLFJ.js +0 -2283
- package/dist/shellscript-Dn0-btNd-Dn0-btNd.js +0 -6
- package/dist/shellsession-8OLo3sB6-DD6AdPYk.js +0 -8
- package/dist/splunk-CTqDjQdo-CTqDjQdo.js +0 -6
- package/dist/sql-DCkt643--DCkt643-.js +0 -6
- package/dist/ssh-config-DHHGll-v-DHHGll-v.js +0 -6
- package/dist/stateDiagram-UUKSUZ4H-eWajY90l-BlM614AN.js +0 -263
- package/dist/stateDiagram-v2-EYPG3UTE-Dh7Ngu1O-YVMiocHE.js +0 -16
- package/dist/style.css +0 -1
- package/dist/stylus-n_9f0QQ5-n_9f0QQ5.js +0 -6
- package/dist/svelte-01qw6Rxm-Cjp5Srko.js +0 -14
- package/dist/swift-BAWqNR8A-BAWqNR8A.js +0 -6
- package/dist/timeline-definition-3HZDQTIS-4TPEOhE8-fDDLVlO8.js +0 -799
- package/dist/toml-CQSfOn0e-CQSfOn0e.js +0 -6
- package/dist/treemap-KMMF4GRG-nu7WEuPi-C1YG24W8.js +0 -5
- package/dist/tsx-DiGsgWT8-DiGsgWT8.js +0 -6
- package/dist/twig-DxrNSc26-BIWbKTFO.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 -175
- package/dist/types/components/DocumentationContent.vue.d.ts.map +0 -1
- package/dist/types/components/DocumentationDisplay.vue.d.ts +0 -94
- 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-buWNZFwO-buWNZFwO.js +0 -6
- package/dist/v-wa8Orrdd-wa8Orrdd.js +0 -6
- package/dist/vb-E2_-jk4M-E2_-jk4M.js +0 -6
- package/dist/viml-B-zWOd7Z-B-zWOd7Z.js +0 -6
- package/dist/vue-DdqTpW8B-BrYVXV7A.js +0 -31
- package/dist/vue-html-B9t4RWro-D1UeMTSX.js +0 -10
- package/dist/wasm-Bv5f0gKv-Bv5f0gKv.js +0 -6
- package/dist/wgsl-DnPoPGDU-DnPoPGDU.js +0 -6
- package/dist/xml-ChBsf5uy-0Ovnixsj.js +0 -8
- package/dist/xsl-BefjlXrd-CZ7IlB9K.js +0 -8
- package/dist/xychartDiagram-FDP5SA34-BbtKlU7T-D1BI5nWs.js +0 -1340
- package/dist/yaml-Bbg74JKr-Bbg74JKr.js +0 -6
|
@@ -1,1382 +0,0 @@
|
|
|
1
|
-
import { d as Jt } from "./chunk-WVR4S24B-C4HIWky3-CkJ0DHSJ.js";
|
|
2
|
-
import { d as te } from "./chunk-NRVI72HA-DxsqT4Dt-Bo_vu9qn.js";
|
|
3
|
-
import { _ as d, l as T, g as P, al as ee, am as se, a7 as ie, a8 as re, a6 as ae, a5 as ne, an as oe, ao as le, bl as ce, ag as K, at as he } from "./index-BDD0CD9m.js";
|
|
4
|
-
var Dt = function() {
|
|
5
|
-
var t = /* @__PURE__ */ d(function(B, r, a, y) {
|
|
6
|
-
for (a = a || {}, y = B.length; y--; a[B[y]] = r) ;
|
|
7
|
-
return a;
|
|
8
|
-
}, "o"), e = [1, 2], n = [1, 3], s = [1, 4], c = [2, 4], o = [1, 9], f = [1, 11], m = [1, 16], u = [1, 17], S = [1, 18], E = [1, 19], g = [1, 33], O = [1, 20], L = [1, 21], R = [1, 22], D = [1, 23], I = [1, 24], h = [1, 26], C = [1, 27], v = [1, 28], w = [1, 29], M = [1, 30], Y = [1, 31], G = [1, 32], it = [1, 35], rt = [1, 36], at = [1, 37], nt = [1, 38], V = [1, 34], p = [1, 4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 41, 45, 48, 51, 52, 53, 54, 57], ot = [1, 4, 5, 14, 15, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 39, 40, 41, 45, 48, 51, 52, 53, 54, 57], $t = [4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 41, 45, 48, 51, 52, 53, 54, 57], gt = {
|
|
9
|
-
trace: /* @__PURE__ */ d(function() {
|
|
10
|
-
}, "trace"),
|
|
11
|
-
yy: {},
|
|
12
|
-
symbols_: { error: 2, start: 3, SPACE: 4, NL: 5, SD: 6, document: 7, line: 8, statement: 9, classDefStatement: 10, styleStatement: 11, cssClassStatement: 12, idStatement: 13, DESCR: 14, "-->": 15, HIDE_EMPTY: 16, scale: 17, WIDTH: 18, COMPOSIT_STATE: 19, STRUCT_START: 20, STRUCT_STOP: 21, STATE_DESCR: 22, AS: 23, ID: 24, FORK: 25, JOIN: 26, CHOICE: 27, CONCURRENT: 28, note: 29, notePosition: 30, NOTE_TEXT: 31, direction: 32, acc_title: 33, acc_title_value: 34, acc_descr: 35, acc_descr_value: 36, acc_descr_multiline_value: 37, CLICK: 38, STRING: 39, HREF: 40, classDef: 41, CLASSDEF_ID: 42, CLASSDEF_STYLEOPTS: 43, DEFAULT: 44, style: 45, STYLE_IDS: 46, STYLEDEF_STYLEOPTS: 47, class: 48, CLASSENTITY_IDS: 49, STYLECLASS: 50, direction_tb: 51, direction_bt: 52, direction_rl: 53, direction_lr: 54, eol: 55, ";": 56, EDGE_STATE: 57, STYLE_SEPARATOR: 58, left_of: 59, right_of: 60, $accept: 0, $end: 1 },
|
|
13
|
-
terminals_: { 2: "error", 4: "SPACE", 5: "NL", 6: "SD", 14: "DESCR", 15: "-->", 16: "HIDE_EMPTY", 17: "scale", 18: "WIDTH", 19: "COMPOSIT_STATE", 20: "STRUCT_START", 21: "STRUCT_STOP", 22: "STATE_DESCR", 23: "AS", 24: "ID", 25: "FORK", 26: "JOIN", 27: "CHOICE", 28: "CONCURRENT", 29: "note", 31: "NOTE_TEXT", 33: "acc_title", 34: "acc_title_value", 35: "acc_descr", 36: "acc_descr_value", 37: "acc_descr_multiline_value", 38: "CLICK", 39: "STRING", 40: "HREF", 41: "classDef", 42: "CLASSDEF_ID", 43: "CLASSDEF_STYLEOPTS", 44: "DEFAULT", 45: "style", 46: "STYLE_IDS", 47: "STYLEDEF_STYLEOPTS", 48: "class", 49: "CLASSENTITY_IDS", 50: "STYLECLASS", 51: "direction_tb", 52: "direction_bt", 53: "direction_rl", 54: "direction_lr", 56: ";", 57: "EDGE_STATE", 58: "STYLE_SEPARATOR", 59: "left_of", 60: "right_of" },
|
|
14
|
-
productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 2], [9, 3], [9, 4], [9, 1], [9, 2], [9, 1], [9, 4], [9, 3], [9, 6], [9, 1], [9, 1], [9, 1], [9, 1], [9, 4], [9, 4], [9, 1], [9, 2], [9, 2], [9, 1], [9, 5], [9, 5], [10, 3], [10, 3], [11, 3], [12, 3], [32, 1], [32, 1], [32, 1], [32, 1], [55, 1], [55, 1], [13, 1], [13, 1], [13, 3], [13, 3], [30, 1], [30, 1]],
|
|
15
|
-
performAction: /* @__PURE__ */ d(function(B, r, a, y, _, i, x) {
|
|
16
|
-
var l = i.length - 1;
|
|
17
|
-
switch (_) {
|
|
18
|
-
case 3:
|
|
19
|
-
return y.setRootDoc(i[l]), i[l];
|
|
20
|
-
case 4:
|
|
21
|
-
this.$ = [];
|
|
22
|
-
break;
|
|
23
|
-
case 5:
|
|
24
|
-
i[l] != "nl" && (i[l - 1].push(i[l]), this.$ = i[l - 1]);
|
|
25
|
-
break;
|
|
26
|
-
case 6:
|
|
27
|
-
case 7:
|
|
28
|
-
this.$ = i[l];
|
|
29
|
-
break;
|
|
30
|
-
case 8:
|
|
31
|
-
this.$ = "nl";
|
|
32
|
-
break;
|
|
33
|
-
case 12:
|
|
34
|
-
this.$ = i[l];
|
|
35
|
-
break;
|
|
36
|
-
case 13:
|
|
37
|
-
const Q = i[l - 1];
|
|
38
|
-
Q.description = y.trimColon(i[l]), this.$ = Q;
|
|
39
|
-
break;
|
|
40
|
-
case 14:
|
|
41
|
-
this.$ = { stmt: "relation", state1: i[l - 2], state2: i[l] };
|
|
42
|
-
break;
|
|
43
|
-
case 15:
|
|
44
|
-
const St = y.trimColon(i[l]);
|
|
45
|
-
this.$ = { stmt: "relation", state1: i[l - 3], state2: i[l - 1], description: St };
|
|
46
|
-
break;
|
|
47
|
-
case 19:
|
|
48
|
-
this.$ = { stmt: "state", id: i[l - 3], type: "default", description: "", doc: i[l - 1] };
|
|
49
|
-
break;
|
|
50
|
-
case 20:
|
|
51
|
-
var z = i[l], X = i[l - 2].trim();
|
|
52
|
-
if (i[l].match(":")) {
|
|
53
|
-
var ct = i[l].split(":");
|
|
54
|
-
z = ct[0], X = [X, ct[1]];
|
|
55
|
-
}
|
|
56
|
-
this.$ = { stmt: "state", id: z, type: "default", description: X };
|
|
57
|
-
break;
|
|
58
|
-
case 21:
|
|
59
|
-
this.$ = { stmt: "state", id: i[l - 3], type: "default", description: i[l - 5], doc: i[l - 1] };
|
|
60
|
-
break;
|
|
61
|
-
case 22:
|
|
62
|
-
this.$ = { stmt: "state", id: i[l], type: "fork" };
|
|
63
|
-
break;
|
|
64
|
-
case 23:
|
|
65
|
-
this.$ = { stmt: "state", id: i[l], type: "join" };
|
|
66
|
-
break;
|
|
67
|
-
case 24:
|
|
68
|
-
this.$ = { stmt: "state", id: i[l], type: "choice" };
|
|
69
|
-
break;
|
|
70
|
-
case 25:
|
|
71
|
-
this.$ = { stmt: "state", id: y.getDividerId(), type: "divider" };
|
|
72
|
-
break;
|
|
73
|
-
case 26:
|
|
74
|
-
this.$ = { stmt: "state", id: i[l - 1].trim(), note: { position: i[l - 2].trim(), text: i[l].trim() } };
|
|
75
|
-
break;
|
|
76
|
-
case 29:
|
|
77
|
-
this.$ = i[l].trim(), y.setAccTitle(this.$);
|
|
78
|
-
break;
|
|
79
|
-
case 30:
|
|
80
|
-
case 31:
|
|
81
|
-
this.$ = i[l].trim(), y.setAccDescription(this.$);
|
|
82
|
-
break;
|
|
83
|
-
case 32:
|
|
84
|
-
this.$ = {
|
|
85
|
-
stmt: "click",
|
|
86
|
-
id: i[l - 3],
|
|
87
|
-
url: i[l - 2],
|
|
88
|
-
tooltip: i[l - 1]
|
|
89
|
-
};
|
|
90
|
-
break;
|
|
91
|
-
case 33:
|
|
92
|
-
this.$ = {
|
|
93
|
-
stmt: "click",
|
|
94
|
-
id: i[l - 3],
|
|
95
|
-
url: i[l - 1],
|
|
96
|
-
tooltip: ""
|
|
97
|
-
};
|
|
98
|
-
break;
|
|
99
|
-
case 34:
|
|
100
|
-
case 35:
|
|
101
|
-
this.$ = { stmt: "classDef", id: i[l - 1].trim(), classes: i[l].trim() };
|
|
102
|
-
break;
|
|
103
|
-
case 36:
|
|
104
|
-
this.$ = { stmt: "style", id: i[l - 1].trim(), styleClass: i[l].trim() };
|
|
105
|
-
break;
|
|
106
|
-
case 37:
|
|
107
|
-
this.$ = { stmt: "applyClass", id: i[l - 1].trim(), styleClass: i[l].trim() };
|
|
108
|
-
break;
|
|
109
|
-
case 38:
|
|
110
|
-
y.setDirection("TB"), this.$ = { stmt: "dir", value: "TB" };
|
|
111
|
-
break;
|
|
112
|
-
case 39:
|
|
113
|
-
y.setDirection("BT"), this.$ = { stmt: "dir", value: "BT" };
|
|
114
|
-
break;
|
|
115
|
-
case 40:
|
|
116
|
-
y.setDirection("RL"), this.$ = { stmt: "dir", value: "RL" };
|
|
117
|
-
break;
|
|
118
|
-
case 41:
|
|
119
|
-
y.setDirection("LR"), this.$ = { stmt: "dir", value: "LR" };
|
|
120
|
-
break;
|
|
121
|
-
case 44:
|
|
122
|
-
case 45:
|
|
123
|
-
this.$ = { stmt: "state", id: i[l].trim(), type: "default", description: "" };
|
|
124
|
-
break;
|
|
125
|
-
case 46:
|
|
126
|
-
this.$ = { stmt: "state", id: i[l - 2].trim(), classes: [i[l].trim()], type: "default", description: "" };
|
|
127
|
-
break;
|
|
128
|
-
case 47:
|
|
129
|
-
this.$ = { stmt: "state", id: i[l - 2].trim(), classes: [i[l].trim()], type: "default", description: "" };
|
|
130
|
-
break;
|
|
131
|
-
}
|
|
132
|
-
}, "anonymous"),
|
|
133
|
-
table: [{ 3: 1, 4: e, 5: n, 6: s }, { 1: [3] }, { 3: 5, 4: e, 5: n, 6: s }, { 3: 6, 4: e, 5: n, 6: s }, t([1, 4, 5, 16, 17, 19, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 41, 45, 48, 51, 52, 53, 54, 57], c, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: o, 5: f, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: m, 17: u, 19: S, 22: E, 24: g, 25: O, 26: L, 27: R, 28: D, 29: I, 32: 25, 33: h, 35: C, 37: v, 38: w, 41: M, 45: Y, 48: G, 51: it, 52: rt, 53: at, 54: nt, 57: V }, t(p, [2, 5]), { 9: 39, 10: 12, 11: 13, 12: 14, 13: 15, 16: m, 17: u, 19: S, 22: E, 24: g, 25: O, 26: L, 27: R, 28: D, 29: I, 32: 25, 33: h, 35: C, 37: v, 38: w, 41: M, 45: Y, 48: G, 51: it, 52: rt, 53: at, 54: nt, 57: V }, t(p, [2, 7]), t(p, [2, 8]), t(p, [2, 9]), t(p, [2, 10]), t(p, [2, 11]), t(p, [2, 12], { 14: [1, 40], 15: [1, 41] }), t(p, [2, 16]), { 18: [1, 42] }, t(p, [2, 18], { 20: [1, 43] }), { 23: [1, 44] }, t(p, [2, 22]), t(p, [2, 23]), t(p, [2, 24]), t(p, [2, 25]), { 30: 45, 31: [1, 46], 59: [1, 47], 60: [1, 48] }, t(p, [2, 28]), { 34: [1, 49] }, { 36: [1, 50] }, t(p, [2, 31]), { 13: 51, 24: g, 57: V }, { 42: [1, 52], 44: [1, 53] }, { 46: [1, 54] }, { 49: [1, 55] }, t(ot, [2, 44], { 58: [1, 56] }), t(ot, [2, 45], { 58: [1, 57] }), t(p, [2, 38]), t(p, [2, 39]), t(p, [2, 40]), t(p, [2, 41]), t(p, [2, 6]), t(p, [2, 13]), { 13: 58, 24: g, 57: V }, t(p, [2, 17]), t($t, c, { 7: 59 }), { 24: [1, 60] }, { 24: [1, 61] }, { 23: [1, 62] }, { 24: [2, 48] }, { 24: [2, 49] }, t(p, [2, 29]), t(p, [2, 30]), { 39: [1, 63], 40: [1, 64] }, { 43: [1, 65] }, { 43: [1, 66] }, { 47: [1, 67] }, { 50: [1, 68] }, { 24: [1, 69] }, { 24: [1, 70] }, t(p, [2, 14], { 14: [1, 71] }), { 4: o, 5: f, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: m, 17: u, 19: S, 21: [1, 72], 22: E, 24: g, 25: O, 26: L, 27: R, 28: D, 29: I, 32: 25, 33: h, 35: C, 37: v, 38: w, 41: M, 45: Y, 48: G, 51: it, 52: rt, 53: at, 54: nt, 57: V }, t(p, [2, 20], { 20: [1, 73] }), { 31: [1, 74] }, { 24: [1, 75] }, { 39: [1, 76] }, { 39: [1, 77] }, t(p, [2, 34]), t(p, [2, 35]), t(p, [2, 36]), t(p, [2, 37]), t(ot, [2, 46]), t(ot, [2, 47]), t(p, [2, 15]), t(p, [2, 19]), t($t, c, { 7: 78 }), t(p, [2, 26]), t(p, [2, 27]), { 5: [1, 79] }, { 5: [1, 80] }, { 4: o, 5: f, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: m, 17: u, 19: S, 21: [1, 81], 22: E, 24: g, 25: O, 26: L, 27: R, 28: D, 29: I, 32: 25, 33: h, 35: C, 37: v, 38: w, 41: M, 45: Y, 48: G, 51: it, 52: rt, 53: at, 54: nt, 57: V }, t(p, [2, 32]), t(p, [2, 33]), t(p, [2, 21])],
|
|
134
|
-
defaultActions: { 5: [2, 1], 6: [2, 2], 47: [2, 48], 48: [2, 49] },
|
|
135
|
-
parseError: /* @__PURE__ */ d(function(B, r) {
|
|
136
|
-
if (r.recoverable)
|
|
137
|
-
this.trace(B);
|
|
138
|
-
else {
|
|
139
|
-
var a = new Error(B);
|
|
140
|
-
throw a.hash = r, a;
|
|
141
|
-
}
|
|
142
|
-
}, "parseError"),
|
|
143
|
-
parse: /* @__PURE__ */ d(function(B) {
|
|
144
|
-
var r = this, a = [0], y = [], _ = [null], i = [], x = this.table, l = "", z = 0, X = 0, ct = 2, Q = 1, St = i.slice.call(arguments, 1), b = Object.create(this.lexer), U = { yy: {} };
|
|
145
|
-
for (var mt in this.yy)
|
|
146
|
-
Object.prototype.hasOwnProperty.call(this.yy, mt) && (U.yy[mt] = this.yy[mt]);
|
|
147
|
-
b.setInput(B, U.yy), U.yy.lexer = b, U.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {});
|
|
148
|
-
var _t = b.yylloc;
|
|
149
|
-
i.push(_t);
|
|
150
|
-
var Zt = b.options && b.options.ranges;
|
|
151
|
-
typeof U.yy.parseError == "function" ? this.parseError = U.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
152
|
-
function Qt(A) {
|
|
153
|
-
a.length = a.length - 2 * A, _.length = _.length - A, i.length = i.length - A;
|
|
154
|
-
}
|
|
155
|
-
d(Qt, "popStack");
|
|
156
|
-
function Ct() {
|
|
157
|
-
var A;
|
|
158
|
-
return A = y.pop() || b.lex() || Q, typeof A != "number" && (A instanceof Array && (y = A, A = y.pop()), A = r.symbols_[A] || A), A;
|
|
159
|
-
}
|
|
160
|
-
d(Ct, "lex");
|
|
161
|
-
for (var $, W, N, Tt, q = {}, ht, F, At, dt; ; ) {
|
|
162
|
-
if (W = a[a.length - 1], this.defaultActions[W] ? N = this.defaultActions[W] : (($ === null || typeof $ > "u") && ($ = Ct()), N = x[W] && x[W][$]), typeof N > "u" || !N.length || !N[0]) {
|
|
163
|
-
var bt = "";
|
|
164
|
-
dt = [];
|
|
165
|
-
for (ht in x[W])
|
|
166
|
-
this.terminals_[ht] && ht > ct && dt.push("'" + this.terminals_[ht] + "'");
|
|
167
|
-
b.showPosition ? bt = "Parse error on line " + (z + 1) + `:
|
|
168
|
-
` + b.showPosition() + `
|
|
169
|
-
Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : bt = "Parse error on line " + (z + 1) + ": Unexpected " + ($ == Q ? "end of input" : "'" + (this.terminals_[$] || $) + "'"), this.parseError(bt, {
|
|
170
|
-
text: b.match,
|
|
171
|
-
token: this.terminals_[$] || $,
|
|
172
|
-
line: b.yylineno,
|
|
173
|
-
loc: _t,
|
|
174
|
-
expected: dt
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
if (N[0] instanceof Array && N.length > 1)
|
|
178
|
-
throw new Error("Parse Error: multiple actions possible at state: " + W + ", token: " + $);
|
|
179
|
-
switch (N[0]) {
|
|
180
|
-
case 1:
|
|
181
|
-
a.push($), _.push(b.yytext), i.push(b.yylloc), a.push(N[1]), $ = null, X = b.yyleng, l = b.yytext, z = b.yylineno, _t = b.yylloc;
|
|
182
|
-
break;
|
|
183
|
-
case 2:
|
|
184
|
-
if (F = this.productions_[N[1]][1], q.$ = _[_.length - F], q._$ = {
|
|
185
|
-
first_line: i[i.length - (F || 1)].first_line,
|
|
186
|
-
last_line: i[i.length - 1].last_line,
|
|
187
|
-
first_column: i[i.length - (F || 1)].first_column,
|
|
188
|
-
last_column: i[i.length - 1].last_column
|
|
189
|
-
}, Zt && (q._$.range = [
|
|
190
|
-
i[i.length - (F || 1)].range[0],
|
|
191
|
-
i[i.length - 1].range[1]
|
|
192
|
-
]), Tt = this.performAction.apply(q, [
|
|
193
|
-
l,
|
|
194
|
-
X,
|
|
195
|
-
z,
|
|
196
|
-
U.yy,
|
|
197
|
-
N[1],
|
|
198
|
-
_,
|
|
199
|
-
i
|
|
200
|
-
].concat(St)), typeof Tt < "u")
|
|
201
|
-
return Tt;
|
|
202
|
-
F && (a = a.slice(0, -1 * F * 2), _ = _.slice(0, -1 * F), i = i.slice(0, -1 * F)), a.push(this.productions_[N[1]][0]), _.push(q.$), i.push(q._$), At = x[a[a.length - 2]][a[a.length - 1]], a.push(At);
|
|
203
|
-
break;
|
|
204
|
-
case 3:
|
|
205
|
-
return !0;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
return !0;
|
|
209
|
-
}, "parse")
|
|
210
|
-
}, Ht = /* @__PURE__ */ function() {
|
|
211
|
-
var B = {
|
|
212
|
-
EOF: 1,
|
|
213
|
-
parseError: /* @__PURE__ */ d(function(r, a) {
|
|
214
|
-
if (this.yy.parser)
|
|
215
|
-
this.yy.parser.parseError(r, a);
|
|
216
|
-
else
|
|
217
|
-
throw new Error(r);
|
|
218
|
-
}, "parseError"),
|
|
219
|
-
// resets the lexer, sets new input
|
|
220
|
-
setInput: /* @__PURE__ */ d(function(r, a) {
|
|
221
|
-
return this.yy = a || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
222
|
-
first_line: 1,
|
|
223
|
-
first_column: 0,
|
|
224
|
-
last_line: 1,
|
|
225
|
-
last_column: 0
|
|
226
|
-
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
227
|
-
}, "setInput"),
|
|
228
|
-
// consumes and returns one char from the input
|
|
229
|
-
input: /* @__PURE__ */ d(function() {
|
|
230
|
-
var r = this._input[0];
|
|
231
|
-
this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
|
|
232
|
-
var a = r.match(/(?:\r\n?|\n).*/g);
|
|
233
|
-
return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
|
|
234
|
-
}, "input"),
|
|
235
|
-
// unshifts one char (or a string) into the input
|
|
236
|
-
unput: /* @__PURE__ */ d(function(r) {
|
|
237
|
-
var a = r.length, y = r.split(/(?:\r\n?|\n)/g);
|
|
238
|
-
this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
|
|
239
|
-
var _ = this.match.split(/(?:\r\n?|\n)/g);
|
|
240
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), y.length - 1 && (this.yylineno -= y.length - 1);
|
|
241
|
-
var i = this.yylloc.range;
|
|
242
|
-
return this.yylloc = {
|
|
243
|
-
first_line: this.yylloc.first_line,
|
|
244
|
-
last_line: this.yylineno + 1,
|
|
245
|
-
first_column: this.yylloc.first_column,
|
|
246
|
-
last_column: y ? (y.length === _.length ? this.yylloc.first_column : 0) + _[_.length - y.length].length - y[0].length : this.yylloc.first_column - a
|
|
247
|
-
}, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
|
|
248
|
-
}, "unput"),
|
|
249
|
-
// When called from action, caches matched text and appends it on next action
|
|
250
|
-
more: /* @__PURE__ */ d(function() {
|
|
251
|
-
return this._more = !0, this;
|
|
252
|
-
}, "more"),
|
|
253
|
-
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
254
|
-
reject: /* @__PURE__ */ d(function() {
|
|
255
|
-
if (this.options.backtrack_lexer)
|
|
256
|
-
this._backtrack = !0;
|
|
257
|
-
else
|
|
258
|
-
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).
|
|
259
|
-
` + this.showPosition(), {
|
|
260
|
-
text: "",
|
|
261
|
-
token: null,
|
|
262
|
-
line: this.yylineno
|
|
263
|
-
});
|
|
264
|
-
return this;
|
|
265
|
-
}, "reject"),
|
|
266
|
-
// retain first n characters of the match
|
|
267
|
-
less: /* @__PURE__ */ d(function(r) {
|
|
268
|
-
this.unput(this.match.slice(r));
|
|
269
|
-
}, "less"),
|
|
270
|
-
// displays already matched input, i.e. for error messages
|
|
271
|
-
pastInput: /* @__PURE__ */ d(function() {
|
|
272
|
-
var r = this.matched.substr(0, this.matched.length - this.match.length);
|
|
273
|
-
return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
|
|
274
|
-
}, "pastInput"),
|
|
275
|
-
// displays upcoming input, i.e. for error messages
|
|
276
|
-
upcomingInput: /* @__PURE__ */ d(function() {
|
|
277
|
-
var r = this.match;
|
|
278
|
-
return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
279
|
-
}, "upcomingInput"),
|
|
280
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
281
|
-
showPosition: /* @__PURE__ */ d(function() {
|
|
282
|
-
var r = this.pastInput(), a = new Array(r.length + 1).join("-");
|
|
283
|
-
return r + this.upcomingInput() + `
|
|
284
|
-
` + a + "^";
|
|
285
|
-
}, "showPosition"),
|
|
286
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
287
|
-
test_match: /* @__PURE__ */ d(function(r, a) {
|
|
288
|
-
var y, _, i;
|
|
289
|
-
if (this.options.backtrack_lexer && (i = {
|
|
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 && (i.yylloc.range = this.yylloc.range.slice(0))), _ = r[0].match(/(?:\r\n?|\n).*/g), _ && (this.yylineno += _.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: _ ? _[_.length - 1].length - _[_.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
|
|
313
|
-
}, this.yytext += r[0], this.match += r[0], this.matches = r, 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(r[0].length), this.matched += r[0], y = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), y)
|
|
314
|
-
return y;
|
|
315
|
-
if (this._backtrack) {
|
|
316
|
-
for (var x in i)
|
|
317
|
-
this[x] = i[x];
|
|
318
|
-
return !1;
|
|
319
|
-
}
|
|
320
|
-
return !1;
|
|
321
|
-
}, "test_match"),
|
|
322
|
-
// return next match in input
|
|
323
|
-
next: /* @__PURE__ */ d(function() {
|
|
324
|
-
if (this.done)
|
|
325
|
-
return this.EOF;
|
|
326
|
-
this._input || (this.done = !0);
|
|
327
|
-
var r, a, y, _;
|
|
328
|
-
this._more || (this.yytext = "", this.match = "");
|
|
329
|
-
for (var i = this._currentRules(), x = 0; x < i.length; x++)
|
|
330
|
-
if (y = this._input.match(this.rules[i[x]]), y && (!a || y[0].length > a[0].length)) {
|
|
331
|
-
if (a = y, _ = x, this.options.backtrack_lexer) {
|
|
332
|
-
if (r = this.test_match(y, i[x]), r !== !1)
|
|
333
|
-
return r;
|
|
334
|
-
if (this._backtrack) {
|
|
335
|
-
a = !1;
|
|
336
|
-
continue;
|
|
337
|
-
} else
|
|
338
|
-
return !1;
|
|
339
|
-
} else if (!this.options.flex)
|
|
340
|
-
break;
|
|
341
|
-
}
|
|
342
|
-
return a ? (r = this.test_match(a, i[_]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
343
|
-
` + this.showPosition(), {
|
|
344
|
-
text: "",
|
|
345
|
-
token: null,
|
|
346
|
-
line: this.yylineno
|
|
347
|
-
});
|
|
348
|
-
}, "next"),
|
|
349
|
-
// return next match that has a token
|
|
350
|
-
lex: /* @__PURE__ */ d(function() {
|
|
351
|
-
var r = this.next();
|
|
352
|
-
return r || this.lex();
|
|
353
|
-
}, "lex"),
|
|
354
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
355
|
-
begin: /* @__PURE__ */ d(function(r) {
|
|
356
|
-
this.conditionStack.push(r);
|
|
357
|
-
}, "begin"),
|
|
358
|
-
// pop the previously active lexer condition state off the condition stack
|
|
359
|
-
popState: /* @__PURE__ */ d(function() {
|
|
360
|
-
var r = this.conditionStack.length - 1;
|
|
361
|
-
return r > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
362
|
-
}, "popState"),
|
|
363
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
364
|
-
_currentRules: /* @__PURE__ */ d(function() {
|
|
365
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
366
|
-
}, "_currentRules"),
|
|
367
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
368
|
-
topState: /* @__PURE__ */ d(function(r) {
|
|
369
|
-
return r = this.conditionStack.length - 1 - Math.abs(r || 0), r >= 0 ? this.conditionStack[r] : "INITIAL";
|
|
370
|
-
}, "topState"),
|
|
371
|
-
// alias for begin(condition)
|
|
372
|
-
pushState: /* @__PURE__ */ d(function(r) {
|
|
373
|
-
this.begin(r);
|
|
374
|
-
}, "pushState"),
|
|
375
|
-
// return the number of states currently on the stack
|
|
376
|
-
stateStackSize: /* @__PURE__ */ d(function() {
|
|
377
|
-
return this.conditionStack.length;
|
|
378
|
-
}, "stateStackSize"),
|
|
379
|
-
options: { "case-insensitive": !0 },
|
|
380
|
-
performAction: /* @__PURE__ */ d(function(r, a, y, _) {
|
|
381
|
-
switch (y) {
|
|
382
|
-
case 0:
|
|
383
|
-
return 38;
|
|
384
|
-
case 1:
|
|
385
|
-
return 40;
|
|
386
|
-
case 2:
|
|
387
|
-
return 39;
|
|
388
|
-
case 3:
|
|
389
|
-
return 44;
|
|
390
|
-
case 4:
|
|
391
|
-
return 51;
|
|
392
|
-
case 5:
|
|
393
|
-
return 52;
|
|
394
|
-
case 6:
|
|
395
|
-
return 53;
|
|
396
|
-
case 7:
|
|
397
|
-
return 54;
|
|
398
|
-
case 8:
|
|
399
|
-
break;
|
|
400
|
-
case 9:
|
|
401
|
-
break;
|
|
402
|
-
case 10:
|
|
403
|
-
return 5;
|
|
404
|
-
case 11:
|
|
405
|
-
break;
|
|
406
|
-
case 12:
|
|
407
|
-
break;
|
|
408
|
-
case 13:
|
|
409
|
-
break;
|
|
410
|
-
case 14:
|
|
411
|
-
break;
|
|
412
|
-
case 15:
|
|
413
|
-
return this.pushState("SCALE"), 17;
|
|
414
|
-
case 16:
|
|
415
|
-
return 18;
|
|
416
|
-
case 17:
|
|
417
|
-
this.popState();
|
|
418
|
-
break;
|
|
419
|
-
case 18:
|
|
420
|
-
return this.begin("acc_title"), 33;
|
|
421
|
-
case 19:
|
|
422
|
-
return this.popState(), "acc_title_value";
|
|
423
|
-
case 20:
|
|
424
|
-
return this.begin("acc_descr"), 35;
|
|
425
|
-
case 21:
|
|
426
|
-
return this.popState(), "acc_descr_value";
|
|
427
|
-
case 22:
|
|
428
|
-
this.begin("acc_descr_multiline");
|
|
429
|
-
break;
|
|
430
|
-
case 23:
|
|
431
|
-
this.popState();
|
|
432
|
-
break;
|
|
433
|
-
case 24:
|
|
434
|
-
return "acc_descr_multiline_value";
|
|
435
|
-
case 25:
|
|
436
|
-
return this.pushState("CLASSDEF"), 41;
|
|
437
|
-
case 26:
|
|
438
|
-
return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
|
|
439
|
-
case 27:
|
|
440
|
-
return this.popState(), this.pushState("CLASSDEFID"), 42;
|
|
441
|
-
case 28:
|
|
442
|
-
return this.popState(), 43;
|
|
443
|
-
case 29:
|
|
444
|
-
return this.pushState("CLASS"), 48;
|
|
445
|
-
case 30:
|
|
446
|
-
return this.popState(), this.pushState("CLASS_STYLE"), 49;
|
|
447
|
-
case 31:
|
|
448
|
-
return this.popState(), 50;
|
|
449
|
-
case 32:
|
|
450
|
-
return this.pushState("STYLE"), 45;
|
|
451
|
-
case 33:
|
|
452
|
-
return this.popState(), this.pushState("STYLEDEF_STYLES"), 46;
|
|
453
|
-
case 34:
|
|
454
|
-
return this.popState(), 47;
|
|
455
|
-
case 35:
|
|
456
|
-
return this.pushState("SCALE"), 17;
|
|
457
|
-
case 36:
|
|
458
|
-
return 18;
|
|
459
|
-
case 37:
|
|
460
|
-
this.popState();
|
|
461
|
-
break;
|
|
462
|
-
case 38:
|
|
463
|
-
this.pushState("STATE");
|
|
464
|
-
break;
|
|
465
|
-
case 39:
|
|
466
|
-
return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 25;
|
|
467
|
-
case 40:
|
|
468
|
-
return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 26;
|
|
469
|
-
case 41:
|
|
470
|
-
return this.popState(), a.yytext = a.yytext.slice(0, -10).trim(), 27;
|
|
471
|
-
case 42:
|
|
472
|
-
return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 25;
|
|
473
|
-
case 43:
|
|
474
|
-
return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 26;
|
|
475
|
-
case 44:
|
|
476
|
-
return this.popState(), a.yytext = a.yytext.slice(0, -10).trim(), 27;
|
|
477
|
-
case 45:
|
|
478
|
-
return 51;
|
|
479
|
-
case 46:
|
|
480
|
-
return 52;
|
|
481
|
-
case 47:
|
|
482
|
-
return 53;
|
|
483
|
-
case 48:
|
|
484
|
-
return 54;
|
|
485
|
-
case 49:
|
|
486
|
-
this.pushState("STATE_STRING");
|
|
487
|
-
break;
|
|
488
|
-
case 50:
|
|
489
|
-
return this.pushState("STATE_ID"), "AS";
|
|
490
|
-
case 51:
|
|
491
|
-
return this.popState(), "ID";
|
|
492
|
-
case 52:
|
|
493
|
-
this.popState();
|
|
494
|
-
break;
|
|
495
|
-
case 53:
|
|
496
|
-
return "STATE_DESCR";
|
|
497
|
-
case 54:
|
|
498
|
-
return 19;
|
|
499
|
-
case 55:
|
|
500
|
-
this.popState();
|
|
501
|
-
break;
|
|
502
|
-
case 56:
|
|
503
|
-
return this.popState(), this.pushState("struct"), 20;
|
|
504
|
-
case 57:
|
|
505
|
-
break;
|
|
506
|
-
case 58:
|
|
507
|
-
return this.popState(), 21;
|
|
508
|
-
case 59:
|
|
509
|
-
break;
|
|
510
|
-
case 60:
|
|
511
|
-
return this.begin("NOTE"), 29;
|
|
512
|
-
case 61:
|
|
513
|
-
return this.popState(), this.pushState("NOTE_ID"), 59;
|
|
514
|
-
case 62:
|
|
515
|
-
return this.popState(), this.pushState("NOTE_ID"), 60;
|
|
516
|
-
case 63:
|
|
517
|
-
this.popState(), this.pushState("FLOATING_NOTE");
|
|
518
|
-
break;
|
|
519
|
-
case 64:
|
|
520
|
-
return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
|
|
521
|
-
case 65:
|
|
522
|
-
break;
|
|
523
|
-
case 66:
|
|
524
|
-
return "NOTE_TEXT";
|
|
525
|
-
case 67:
|
|
526
|
-
return this.popState(), "ID";
|
|
527
|
-
case 68:
|
|
528
|
-
return this.popState(), this.pushState("NOTE_TEXT"), 24;
|
|
529
|
-
case 69:
|
|
530
|
-
return this.popState(), a.yytext = a.yytext.substr(2).trim(), 31;
|
|
531
|
-
case 70:
|
|
532
|
-
return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 31;
|
|
533
|
-
case 71:
|
|
534
|
-
return 6;
|
|
535
|
-
case 72:
|
|
536
|
-
return 6;
|
|
537
|
-
case 73:
|
|
538
|
-
return 16;
|
|
539
|
-
case 74:
|
|
540
|
-
return 57;
|
|
541
|
-
case 75:
|
|
542
|
-
return 24;
|
|
543
|
-
case 76:
|
|
544
|
-
return a.yytext = a.yytext.trim(), 14;
|
|
545
|
-
case 77:
|
|
546
|
-
return 15;
|
|
547
|
-
case 78:
|
|
548
|
-
return 28;
|
|
549
|
-
case 79:
|
|
550
|
-
return 58;
|
|
551
|
-
case 80:
|
|
552
|
-
return 5;
|
|
553
|
-
case 81:
|
|
554
|
-
return "INVALID";
|
|
555
|
-
}
|
|
556
|
-
}, "anonymous"),
|
|
557
|
-
rules: [/^(?:click\b)/i, /^(?:href\b)/i, /^(?:"[^"]*")/i, /^(?:default\b)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:[\s]+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:classDef\s+)/i, /^(?:DEFAULT\s+)/i, /^(?:\w+\s+)/i, /^(?:[^\n]*)/i, /^(?:class\s+)/i, /^(?:(\w+)+((,\s*\w+)*))/i, /^(?:[^\n]*)/i, /^(?:style\s+)/i, /^(?:[\w,]+\s+)/i, /^(?:[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:state\s+)/i, /^(?:.*<<fork>>)/i, /^(?:.*<<join>>)/i, /^(?:.*<<choice>>)/i, /^(?:.*\[\[fork\]\])/i, /^(?:.*\[\[join\]\])/i, /^(?:.*\[\[choice\]\])/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:["])/i, /^(?:\s*as\s+)/i, /^(?:[^\n\{]*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n\s\{]+)/i, /^(?:\n)/i, /^(?:\{)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:\})/i, /^(?:[\n])/i, /^(?:note\s+)/i, /^(?:left of\b)/i, /^(?:right of\b)/i, /^(?:")/i, /^(?:\s*as\s*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n]*)/i, /^(?:\s*[^:\n\s\-]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:[\s\S]*?end note\b)/i, /^(?:stateDiagram\s+)/i, /^(?:stateDiagram-v2\s+)/i, /^(?:hide empty description\b)/i, /^(?:\[\*\])/i, /^(?:[^:\n\s\-\{]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:-->)/i, /^(?:--)/i, /^(?::::)/i, /^(?:$)/i, /^(?:.)/i],
|
|
558
|
-
conditions: { LINE: { rules: [12, 13], inclusive: !1 }, struct: { rules: [12, 13, 25, 29, 32, 38, 45, 46, 47, 48, 57, 58, 59, 60, 74, 75, 76, 77, 78], inclusive: !1 }, FLOATING_NOTE_ID: { rules: [67], inclusive: !1 }, FLOATING_NOTE: { rules: [64, 65, 66], inclusive: !1 }, NOTE_TEXT: { rules: [69, 70], inclusive: !1 }, NOTE_ID: { rules: [68], inclusive: !1 }, NOTE: { rules: [61, 62, 63], inclusive: !1 }, STYLEDEF_STYLEOPTS: { rules: [], inclusive: !1 }, STYLEDEF_STYLES: { rules: [34], inclusive: !1 }, STYLE_IDS: { rules: [], inclusive: !1 }, STYLE: { rules: [33], inclusive: !1 }, CLASS_STYLE: { rules: [31], inclusive: !1 }, CLASS: { rules: [30], inclusive: !1 }, CLASSDEFID: { rules: [28], inclusive: !1 }, CLASSDEF: { rules: [26, 27], inclusive: !1 }, acc_descr_multiline: { rules: [23, 24], inclusive: !1 }, acc_descr: { rules: [21], inclusive: !1 }, acc_title: { rules: [19], inclusive: !1 }, SCALE: { rules: [16, 17, 36, 37], inclusive: !1 }, ALIAS: { rules: [], inclusive: !1 }, STATE_ID: { rules: [51], inclusive: !1 }, STATE_STRING: { rules: [52, 53], inclusive: !1 }, FORK_STATE: { rules: [], inclusive: !1 }, STATE: { rules: [12, 13, 39, 40, 41, 42, 43, 44, 49, 50, 54, 55, 56], inclusive: !1 }, ID: { rules: [12, 13], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 18, 20, 22, 25, 29, 32, 35, 38, 56, 60, 71, 72, 73, 74, 75, 76, 77, 79, 80, 81], inclusive: !0 } }
|
|
559
|
-
};
|
|
560
|
-
return B;
|
|
561
|
-
}();
|
|
562
|
-
gt.lexer = Ht;
|
|
563
|
-
function lt() {
|
|
564
|
-
this.yy = {};
|
|
565
|
-
}
|
|
566
|
-
return d(lt, "Parser"), lt.prototype = gt, gt.Parser = lt, new lt();
|
|
567
|
-
}();
|
|
568
|
-
Dt.parser = Dt;
|
|
569
|
-
var Ye = Dt, de = "TB", Pt = "TB", Lt = "dir", Z = "state", H = "root", vt = "relation", ue = "classDef", pe = "style", ye = "applyClass", et = "default", Ft = "divider", Yt = "fill:none", Gt = "fill: #333", jt = "c", Mt = "text", zt = "normal", kt = "rect", Et = "rectWithTitle", fe = "stateStart", ge = "stateEnd", It = "divider", Nt = "roundedWithTitle", Se = "note", me = "noteGroup", st = "statediagram", _e = "state", Te = `${st}-${_e}`, Ut = "transition", be = "note", ke = "note-edge", Ee = `${Ut} ${ke}`, De = `${st}-${be}`, ve = "cluster", xe = `${st}-${ve}`, $e = "cluster-alt", Ce = `${st}-${$e}`, Wt = "parent", Kt = "note", Ae = "state", xt = "----", Le = `${xt}${Kt}`, Ot = `${xt}${Wt}`, Vt = /* @__PURE__ */ d((t, e = Pt) => {
|
|
570
|
-
if (!t.doc)
|
|
571
|
-
return e;
|
|
572
|
-
let n = e;
|
|
573
|
-
for (const s of t.doc)
|
|
574
|
-
s.stmt === "dir" && (n = s.value);
|
|
575
|
-
return n;
|
|
576
|
-
}, "getDir"), Ie = /* @__PURE__ */ d(function(t, e) {
|
|
577
|
-
return e.db.getClasses();
|
|
578
|
-
}, "getClasses"), Ne = /* @__PURE__ */ d(async function(t, e, n, s) {
|
|
579
|
-
T.info("REF0:"), T.info("Drawing state diagram (v2)", e);
|
|
580
|
-
const { securityLevel: c, state: o, layout: f } = P();
|
|
581
|
-
s.db.extract(s.db.getRootDocV2());
|
|
582
|
-
const m = s.db.getData(), u = Jt(e, c);
|
|
583
|
-
m.type = s.type, m.layoutAlgorithm = f, m.nodeSpacing = (o == null ? void 0 : o.nodeSpacing) || 50, m.rankSpacing = (o == null ? void 0 : o.rankSpacing) || 50, m.markers = ["barb"], m.diagramId = e, await ee(m, u);
|
|
584
|
-
const S = 8;
|
|
585
|
-
try {
|
|
586
|
-
(typeof s.db.getLinks == "function" ? s.db.getLinks() : /* @__PURE__ */ new Map()).forEach((E, g) => {
|
|
587
|
-
var O;
|
|
588
|
-
const L = typeof g == "string" ? g : typeof (g == null ? void 0 : g.id) == "string" ? g.id : "";
|
|
589
|
-
if (!L) {
|
|
590
|
-
T.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(g));
|
|
591
|
-
return;
|
|
592
|
-
}
|
|
593
|
-
const R = (O = u.node()) == null ? void 0 : O.querySelectorAll("g");
|
|
594
|
-
let D;
|
|
595
|
-
if (R == null || R.forEach((v) => {
|
|
596
|
-
var w;
|
|
597
|
-
((w = v.textContent) == null ? void 0 : w.trim()) === L && (D = v);
|
|
598
|
-
}), !D) {
|
|
599
|
-
T.warn("⚠️ Could not find node matching text:", L);
|
|
600
|
-
return;
|
|
601
|
-
}
|
|
602
|
-
const I = D.parentNode;
|
|
603
|
-
if (!I) {
|
|
604
|
-
T.warn("⚠️ Node has no parent, cannot wrap:", L);
|
|
605
|
-
return;
|
|
606
|
-
}
|
|
607
|
-
const h = document.createElementNS("http://www.w3.org/2000/svg", "a"), C = E.url.replace(/^"+|"+$/g, "");
|
|
608
|
-
if (h.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", C), h.setAttribute("target", "_blank"), E.tooltip) {
|
|
609
|
-
const v = E.tooltip.replace(/^"+|"+$/g, "");
|
|
610
|
-
h.setAttribute("title", v);
|
|
611
|
-
}
|
|
612
|
-
I.replaceChild(h, D), h.appendChild(D), T.info("🔗 Wrapped node in <a> tag for:", L, E.url);
|
|
613
|
-
});
|
|
614
|
-
} catch (E) {
|
|
615
|
-
T.error("❌ Error injecting clickable links:", E);
|
|
616
|
-
}
|
|
617
|
-
se.insertTitle(
|
|
618
|
-
u,
|
|
619
|
-
"statediagramTitleText",
|
|
620
|
-
(o == null ? void 0 : o.titleTopMargin) ?? 25,
|
|
621
|
-
s.db.getDiagramTitle()
|
|
622
|
-
), te(u, S, st, (o == null ? void 0 : o.useMaxWidth) ?? !0);
|
|
623
|
-
}, "draw"), Ge = {
|
|
624
|
-
getClasses: Ie,
|
|
625
|
-
draw: Ne,
|
|
626
|
-
getDir: Vt
|
|
627
|
-
}, yt = /* @__PURE__ */ new Map(), j = 0;
|
|
628
|
-
function ft(t = "", e = 0, n = "", s = xt) {
|
|
629
|
-
const c = n !== null && n.length > 0 ? `${s}${n}` : "";
|
|
630
|
-
return `${Ae}-${t}${c}-${e}`;
|
|
631
|
-
}
|
|
632
|
-
d(ft, "stateDomId");
|
|
633
|
-
var Oe = /* @__PURE__ */ d((t, e, n, s, c, o, f, m) => {
|
|
634
|
-
T.trace("items", e), e.forEach((u) => {
|
|
635
|
-
switch (u.stmt) {
|
|
636
|
-
case Z:
|
|
637
|
-
tt(t, u, n, s, c, o, f, m);
|
|
638
|
-
break;
|
|
639
|
-
case et:
|
|
640
|
-
tt(t, u, n, s, c, o, f, m);
|
|
641
|
-
break;
|
|
642
|
-
case vt:
|
|
643
|
-
{
|
|
644
|
-
tt(
|
|
645
|
-
t,
|
|
646
|
-
u.state1,
|
|
647
|
-
n,
|
|
648
|
-
s,
|
|
649
|
-
c,
|
|
650
|
-
o,
|
|
651
|
-
f,
|
|
652
|
-
m
|
|
653
|
-
), tt(
|
|
654
|
-
t,
|
|
655
|
-
u.state2,
|
|
656
|
-
n,
|
|
657
|
-
s,
|
|
658
|
-
c,
|
|
659
|
-
o,
|
|
660
|
-
f,
|
|
661
|
-
m
|
|
662
|
-
);
|
|
663
|
-
const S = {
|
|
664
|
-
id: "edge" + j,
|
|
665
|
-
start: u.state1.id,
|
|
666
|
-
end: u.state2.id,
|
|
667
|
-
arrowhead: "normal",
|
|
668
|
-
arrowTypeEnd: "arrow_barb",
|
|
669
|
-
style: Yt,
|
|
670
|
-
labelStyle: "",
|
|
671
|
-
label: K.sanitizeText(u.description ?? "", P()),
|
|
672
|
-
arrowheadStyle: Gt,
|
|
673
|
-
labelpos: jt,
|
|
674
|
-
labelType: Mt,
|
|
675
|
-
thickness: zt,
|
|
676
|
-
classes: Ut,
|
|
677
|
-
look: f
|
|
678
|
-
};
|
|
679
|
-
c.push(S), j++;
|
|
680
|
-
}
|
|
681
|
-
break;
|
|
682
|
-
}
|
|
683
|
-
});
|
|
684
|
-
}, "setupDoc"), Rt = /* @__PURE__ */ d((t, e = Pt) => {
|
|
685
|
-
let n = e;
|
|
686
|
-
if (t.doc)
|
|
687
|
-
for (const s of t.doc)
|
|
688
|
-
s.stmt === "dir" && (n = s.value);
|
|
689
|
-
return n;
|
|
690
|
-
}, "getDir");
|
|
691
|
-
function J(t, e, n) {
|
|
692
|
-
if (!e.id || e.id === "</join></fork>" || e.id === "</choice>")
|
|
693
|
-
return;
|
|
694
|
-
e.cssClasses && (Array.isArray(e.cssCompiledStyles) || (e.cssCompiledStyles = []), e.cssClasses.split(" ").forEach((c) => {
|
|
695
|
-
const o = n.get(c);
|
|
696
|
-
o && (e.cssCompiledStyles = [...e.cssCompiledStyles ?? [], ...o.styles]);
|
|
697
|
-
}));
|
|
698
|
-
const s = t.find((c) => c.id === e.id);
|
|
699
|
-
s ? Object.assign(s, e) : t.push(e);
|
|
700
|
-
}
|
|
701
|
-
d(J, "insertOrUpdateNode");
|
|
702
|
-
function Xt(t) {
|
|
703
|
-
var e;
|
|
704
|
-
return ((e = t == null ? void 0 : t.classes) == null ? void 0 : e.join(" ")) ?? "";
|
|
705
|
-
}
|
|
706
|
-
d(Xt, "getClassesFromDbInfo");
|
|
707
|
-
function qt(t) {
|
|
708
|
-
return (t == null ? void 0 : t.styles) ?? [];
|
|
709
|
-
}
|
|
710
|
-
d(qt, "getStylesFromDbInfo");
|
|
711
|
-
var tt = /* @__PURE__ */ d((t, e, n, s, c, o, f, m) => {
|
|
712
|
-
var u, S, E;
|
|
713
|
-
const g = e.id, O = n.get(g), L = Xt(O), R = qt(O), D = P();
|
|
714
|
-
if (T.info("dataFetcher parsedItem", e, O, R), g !== "root") {
|
|
715
|
-
let I = kt;
|
|
716
|
-
e.start === !0 ? I = fe : e.start === !1 && (I = ge), e.type !== et && (I = e.type), yt.get(g) || yt.set(g, {
|
|
717
|
-
id: g,
|
|
718
|
-
shape: I,
|
|
719
|
-
description: K.sanitizeText(g, D),
|
|
720
|
-
cssClasses: `${L} ${Te}`,
|
|
721
|
-
cssStyles: R
|
|
722
|
-
});
|
|
723
|
-
const h = yt.get(g);
|
|
724
|
-
e.description && (Array.isArray(h.description) ? (h.shape = Et, h.description.push(e.description)) : (u = h.description) != null && u.length && h.description.length > 0 ? (h.shape = Et, h.description === g ? h.description = [e.description] : h.description = [h.description, e.description]) : (h.shape = kt, h.description = e.description), h.description = K.sanitizeTextOrArray(h.description, D)), ((S = h.description) == null ? void 0 : S.length) === 1 && h.shape === Et && (h.type === "group" ? h.shape = Nt : h.shape = kt), !h.type && e.doc && (T.info("Setting cluster for XCX", g, Rt(e)), h.type = "group", h.isGroup = !0, h.dir = Rt(e), h.shape = e.type === Ft ? It : Nt, h.cssClasses = `${h.cssClasses} ${xe} ${o ? Ce : ""}`);
|
|
725
|
-
const C = {
|
|
726
|
-
labelStyle: "",
|
|
727
|
-
shape: h.shape,
|
|
728
|
-
label: h.description,
|
|
729
|
-
cssClasses: h.cssClasses,
|
|
730
|
-
cssCompiledStyles: [],
|
|
731
|
-
cssStyles: h.cssStyles,
|
|
732
|
-
id: g,
|
|
733
|
-
dir: h.dir,
|
|
734
|
-
domId: ft(g, j),
|
|
735
|
-
type: h.type,
|
|
736
|
-
isGroup: h.type === "group",
|
|
737
|
-
padding: 8,
|
|
738
|
-
rx: 10,
|
|
739
|
-
ry: 10,
|
|
740
|
-
look: f
|
|
741
|
-
};
|
|
742
|
-
if (C.shape === It && (C.label = ""), t && t.id !== "root" && (T.trace("Setting node ", g, " to be child of its parent ", t.id), C.parentId = t.id), C.centerLabel = !0, e.note) {
|
|
743
|
-
const v = {
|
|
744
|
-
labelStyle: "",
|
|
745
|
-
shape: Se,
|
|
746
|
-
label: e.note.text,
|
|
747
|
-
cssClasses: De,
|
|
748
|
-
// useHtmlLabels: false,
|
|
749
|
-
cssStyles: [],
|
|
750
|
-
cssCompiledStyles: [],
|
|
751
|
-
id: g + Le + "-" + j,
|
|
752
|
-
domId: ft(g, j, Kt),
|
|
753
|
-
type: h.type,
|
|
754
|
-
isGroup: h.type === "group",
|
|
755
|
-
padding: (E = D.flowchart) == null ? void 0 : E.padding,
|
|
756
|
-
look: f,
|
|
757
|
-
position: e.note.position
|
|
758
|
-
}, w = g + Ot, M = {
|
|
759
|
-
labelStyle: "",
|
|
760
|
-
shape: me,
|
|
761
|
-
label: e.note.text,
|
|
762
|
-
cssClasses: h.cssClasses,
|
|
763
|
-
cssStyles: [],
|
|
764
|
-
id: g + Ot,
|
|
765
|
-
domId: ft(g, j, Wt),
|
|
766
|
-
type: "group",
|
|
767
|
-
isGroup: !0,
|
|
768
|
-
padding: 16,
|
|
769
|
-
//getConfig().flowchart.padding
|
|
770
|
-
look: f,
|
|
771
|
-
position: e.note.position
|
|
772
|
-
};
|
|
773
|
-
j++, M.id = w, v.parentId = w, J(s, M, m), J(s, v, m), J(s, C, m);
|
|
774
|
-
let Y = g, G = v.id;
|
|
775
|
-
e.note.position === "left of" && (Y = v.id, G = g), c.push({
|
|
776
|
-
id: Y + "-" + G,
|
|
777
|
-
start: Y,
|
|
778
|
-
end: G,
|
|
779
|
-
arrowhead: "none",
|
|
780
|
-
arrowTypeEnd: "",
|
|
781
|
-
style: Yt,
|
|
782
|
-
labelStyle: "",
|
|
783
|
-
classes: Ee,
|
|
784
|
-
arrowheadStyle: Gt,
|
|
785
|
-
labelpos: jt,
|
|
786
|
-
labelType: Mt,
|
|
787
|
-
thickness: zt,
|
|
788
|
-
look: f
|
|
789
|
-
});
|
|
790
|
-
} else
|
|
791
|
-
J(s, C, m);
|
|
792
|
-
}
|
|
793
|
-
e.doc && (T.trace("Adding nodes children "), Oe(e, e.doc, n, s, c, !o, f, m));
|
|
794
|
-
}, "dataFetcher"), Re = /* @__PURE__ */ d(() => {
|
|
795
|
-
yt.clear(), j = 0;
|
|
796
|
-
}, "reset"), k = {
|
|
797
|
-
START_NODE: "[*]",
|
|
798
|
-
START_TYPE: "start",
|
|
799
|
-
END_NODE: "[*]",
|
|
800
|
-
END_TYPE: "end",
|
|
801
|
-
COLOR_KEYWORD: "color",
|
|
802
|
-
FILL_KEYWORD: "fill",
|
|
803
|
-
BG_FILL: "bgFill",
|
|
804
|
-
STYLECLASS_SEP: ","
|
|
805
|
-
}, wt = /* @__PURE__ */ d(() => /* @__PURE__ */ new Map(), "newClassesList"), Bt = /* @__PURE__ */ d(() => ({
|
|
806
|
-
relations: [],
|
|
807
|
-
states: /* @__PURE__ */ new Map(),
|
|
808
|
-
documents: {}
|
|
809
|
-
}), "newDoc"), ut = /* @__PURE__ */ d((t) => JSON.parse(JSON.stringify(t)), "clone"), pt, je = (pt = class {
|
|
810
|
-
constructor(t) {
|
|
811
|
-
this.version = t, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = wt(), this.documents = { root: Bt() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.getAccTitle = ie, this.setAccTitle = re, this.getAccDescription = ae, this.setAccDescription = ne, this.setDiagramTitle = oe, this.getDiagramTitle = le, this.clear(), this.setRootDoc = this.setRootDoc.bind(this), this.getDividerId = this.getDividerId.bind(this), this.setDirection = this.setDirection.bind(this), this.trimColon = this.trimColon.bind(this);
|
|
812
|
-
}
|
|
813
|
-
/**
|
|
814
|
-
* Convert all of the statements (stmts) that were parsed into states and relationships.
|
|
815
|
-
* This is done because a state diagram may have nested sections,
|
|
816
|
-
* where each section is a 'document' and has its own set of statements.
|
|
817
|
-
* Ex: the section within a fork has its own statements, and incoming and outgoing statements
|
|
818
|
-
* refer to the fork as a whole (document).
|
|
819
|
-
* See the parser grammar: the definition of a document is a document then a 'line', where a line can be a statement.
|
|
820
|
-
* This will push the statement into the list of statements for the current document.
|
|
821
|
-
*/
|
|
822
|
-
extract(t) {
|
|
823
|
-
this.clear(!0);
|
|
824
|
-
for (const s of Array.isArray(t) ? t : t.doc)
|
|
825
|
-
switch (s.stmt) {
|
|
826
|
-
case Z:
|
|
827
|
-
this.addState(s.id.trim(), s.type, s.doc, s.description, s.note);
|
|
828
|
-
break;
|
|
829
|
-
case vt:
|
|
830
|
-
this.addRelation(s.state1, s.state2, s.description);
|
|
831
|
-
break;
|
|
832
|
-
case ue:
|
|
833
|
-
this.addStyleClass(s.id.trim(), s.classes);
|
|
834
|
-
break;
|
|
835
|
-
case pe:
|
|
836
|
-
this.handleStyleDef(s);
|
|
837
|
-
break;
|
|
838
|
-
case ye:
|
|
839
|
-
this.setCssClass(s.id.trim(), s.styleClass);
|
|
840
|
-
break;
|
|
841
|
-
case "click":
|
|
842
|
-
this.addLink(s.id, s.url, s.tooltip);
|
|
843
|
-
break;
|
|
844
|
-
}
|
|
845
|
-
const e = this.getStates(), n = P();
|
|
846
|
-
Re(), tt(
|
|
847
|
-
void 0,
|
|
848
|
-
this.getRootDocV2(),
|
|
849
|
-
e,
|
|
850
|
-
this.nodes,
|
|
851
|
-
this.edges,
|
|
852
|
-
!0,
|
|
853
|
-
n.look,
|
|
854
|
-
this.classes
|
|
855
|
-
);
|
|
856
|
-
for (const s of this.nodes)
|
|
857
|
-
if (Array.isArray(s.label)) {
|
|
858
|
-
if (s.description = s.label.slice(1), s.isGroup && s.description.length > 0)
|
|
859
|
-
throw new Error(
|
|
860
|
-
`Group nodes can only have label. Remove the additional description for node [${s.id}]`
|
|
861
|
-
);
|
|
862
|
-
s.label = s.label[0];
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
handleStyleDef(t) {
|
|
866
|
-
const e = t.id.trim().split(","), n = t.styleClass.split(",");
|
|
867
|
-
for (const s of e) {
|
|
868
|
-
let c = this.getState(s);
|
|
869
|
-
if (!c) {
|
|
870
|
-
const o = s.trim();
|
|
871
|
-
this.addState(o), c = this.getState(o);
|
|
872
|
-
}
|
|
873
|
-
c && (c.styles = n.map((o) => {
|
|
874
|
-
var f;
|
|
875
|
-
return (f = o.replace(/;/g, "")) == null ? void 0 : f.trim();
|
|
876
|
-
}));
|
|
877
|
-
}
|
|
878
|
-
}
|
|
879
|
-
setRootDoc(t) {
|
|
880
|
-
T.info("Setting root doc", t), this.rootDoc = t, this.version === 1 ? this.extract(t) : this.extract(this.getRootDocV2());
|
|
881
|
-
}
|
|
882
|
-
docTranslator(t, e, n) {
|
|
883
|
-
if (e.stmt === vt) {
|
|
884
|
-
this.docTranslator(t, e.state1, !0), this.docTranslator(t, e.state2, !1);
|
|
885
|
-
return;
|
|
886
|
-
}
|
|
887
|
-
if (e.stmt === Z && (e.id === k.START_NODE ? (e.id = t.id + (n ? "_start" : "_end"), e.start = n) : e.id = e.id.trim()), e.stmt !== H && e.stmt !== Z || !e.doc)
|
|
888
|
-
return;
|
|
889
|
-
const s = [];
|
|
890
|
-
let c = [];
|
|
891
|
-
for (const o of e.doc)
|
|
892
|
-
if (o.type === Ft) {
|
|
893
|
-
const f = ut(o);
|
|
894
|
-
f.doc = ut(c), s.push(f), c = [];
|
|
895
|
-
} else
|
|
896
|
-
c.push(o);
|
|
897
|
-
if (s.length > 0 && c.length > 0) {
|
|
898
|
-
const o = {
|
|
899
|
-
stmt: Z,
|
|
900
|
-
id: ce(),
|
|
901
|
-
type: "divider",
|
|
902
|
-
doc: ut(c)
|
|
903
|
-
};
|
|
904
|
-
s.push(ut(o)), e.doc = s;
|
|
905
|
-
}
|
|
906
|
-
e.doc.forEach((o) => this.docTranslator(e, o, !0));
|
|
907
|
-
}
|
|
908
|
-
getRootDocV2() {
|
|
909
|
-
return this.docTranslator(
|
|
910
|
-
{ id: H, stmt: H },
|
|
911
|
-
{ id: H, stmt: H, doc: this.rootDoc },
|
|
912
|
-
!0
|
|
913
|
-
), { id: H, doc: this.rootDoc };
|
|
914
|
-
}
|
|
915
|
-
/**
|
|
916
|
-
* Function called by parser when a node definition has been found.
|
|
917
|
-
*
|
|
918
|
-
* @param descr - description for the state. Can be a string or a list or strings
|
|
919
|
-
* @param classes - class styles to apply to this state. Can be a string (1 style) or an array of styles. If it's just 1 class, convert it to an array of that 1 class.
|
|
920
|
-
* @param styles - styles to apply to this state. Can be a string (1 style) or an array of styles. If it's just 1 style, convert it to an array of that 1 style.
|
|
921
|
-
* @param textStyles - text styles to apply to this state. Can be a string (1 text test) or an array of text styles. If it's just 1 text style, convert it to an array of that 1 text style.
|
|
922
|
-
*/
|
|
923
|
-
addState(t, e = et, n = void 0, s = void 0, c = void 0, o = void 0, f = void 0, m = void 0) {
|
|
924
|
-
const u = t == null ? void 0 : t.trim();
|
|
925
|
-
if (!this.currentDocument.states.has(u))
|
|
926
|
-
T.info("Adding state ", u, s), this.currentDocument.states.set(u, {
|
|
927
|
-
stmt: Z,
|
|
928
|
-
id: u,
|
|
929
|
-
descriptions: [],
|
|
930
|
-
type: e,
|
|
931
|
-
doc: n,
|
|
932
|
-
note: c,
|
|
933
|
-
classes: [],
|
|
934
|
-
styles: [],
|
|
935
|
-
textStyles: []
|
|
936
|
-
});
|
|
937
|
-
else {
|
|
938
|
-
const S = this.currentDocument.states.get(u);
|
|
939
|
-
if (!S)
|
|
940
|
-
throw new Error(`State not found: ${u}`);
|
|
941
|
-
S.doc || (S.doc = n), S.type || (S.type = e);
|
|
942
|
-
}
|
|
943
|
-
if (s && (T.info("Setting state description", u, s), (Array.isArray(s) ? s : [s]).forEach((S) => this.addDescription(u, S.trim()))), c) {
|
|
944
|
-
const S = this.currentDocument.states.get(u);
|
|
945
|
-
if (!S)
|
|
946
|
-
throw new Error(`State not found: ${u}`);
|
|
947
|
-
S.note = c, S.note.text = K.sanitizeText(S.note.text, P());
|
|
948
|
-
}
|
|
949
|
-
o && (T.info("Setting state classes", u, o), (Array.isArray(o) ? o : [o]).forEach((S) => this.setCssClass(u, S.trim()))), f && (T.info("Setting state styles", u, f), (Array.isArray(f) ? f : [f]).forEach((S) => this.setStyle(u, S.trim()))), m && (T.info("Setting state styles", u, f), (Array.isArray(m) ? m : [m]).forEach((S) => this.setTextStyle(u, S.trim())));
|
|
950
|
-
}
|
|
951
|
-
clear(t) {
|
|
952
|
-
this.nodes = [], this.edges = [], this.documents = { root: Bt() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = wt(), t || (this.links = /* @__PURE__ */ new Map(), he());
|
|
953
|
-
}
|
|
954
|
-
getState(t) {
|
|
955
|
-
return this.currentDocument.states.get(t);
|
|
956
|
-
}
|
|
957
|
-
getStates() {
|
|
958
|
-
return this.currentDocument.states;
|
|
959
|
-
}
|
|
960
|
-
logDocuments() {
|
|
961
|
-
T.info("Documents = ", this.documents);
|
|
962
|
-
}
|
|
963
|
-
getRelations() {
|
|
964
|
-
return this.currentDocument.relations;
|
|
965
|
-
}
|
|
966
|
-
/**
|
|
967
|
-
* Adds a clickable link to a state.
|
|
968
|
-
*/
|
|
969
|
-
addLink(t, e, n) {
|
|
970
|
-
this.links.set(t, { url: e, tooltip: n }), T.warn("Adding link", t, e, n);
|
|
971
|
-
}
|
|
972
|
-
/**
|
|
973
|
-
* Get all registered links.
|
|
974
|
-
*/
|
|
975
|
-
getLinks() {
|
|
976
|
-
return this.links;
|
|
977
|
-
}
|
|
978
|
-
/**
|
|
979
|
-
* If the id is a start node ( [*] ), then return a new id constructed from
|
|
980
|
-
* the start node name and the current start node count.
|
|
981
|
-
* else return the given id
|
|
982
|
-
*/
|
|
983
|
-
startIdIfNeeded(t = "") {
|
|
984
|
-
return t === k.START_NODE ? (this.startEndCount++, `${k.START_TYPE}${this.startEndCount}`) : t;
|
|
985
|
-
}
|
|
986
|
-
/**
|
|
987
|
-
* If the id is a start node ( [*] ), then return the start type ('start')
|
|
988
|
-
* else return the given type
|
|
989
|
-
*/
|
|
990
|
-
startTypeIfNeeded(t = "", e = et) {
|
|
991
|
-
return t === k.START_NODE ? k.START_TYPE : e;
|
|
992
|
-
}
|
|
993
|
-
/**
|
|
994
|
-
* If the id is an end node ( [*] ), then return a new id constructed from
|
|
995
|
-
* the end node name and the current start_end node count.
|
|
996
|
-
* else return the given id
|
|
997
|
-
*/
|
|
998
|
-
endIdIfNeeded(t = "") {
|
|
999
|
-
return t === k.END_NODE ? (this.startEndCount++, `${k.END_TYPE}${this.startEndCount}`) : t;
|
|
1000
|
-
}
|
|
1001
|
-
/**
|
|
1002
|
-
* If the id is an end node ( [*] ), then return the end type
|
|
1003
|
-
* else return the given type
|
|
1004
|
-
*
|
|
1005
|
-
*/
|
|
1006
|
-
endTypeIfNeeded(t = "", e = et) {
|
|
1007
|
-
return t === k.END_NODE ? k.END_TYPE : e;
|
|
1008
|
-
}
|
|
1009
|
-
addRelationObjs(t, e, n = "") {
|
|
1010
|
-
const s = this.startIdIfNeeded(t.id.trim()), c = this.startTypeIfNeeded(t.id.trim(), t.type), o = this.startIdIfNeeded(e.id.trim()), f = this.startTypeIfNeeded(e.id.trim(), e.type);
|
|
1011
|
-
this.addState(
|
|
1012
|
-
s,
|
|
1013
|
-
c,
|
|
1014
|
-
t.doc,
|
|
1015
|
-
t.description,
|
|
1016
|
-
t.note,
|
|
1017
|
-
t.classes,
|
|
1018
|
-
t.styles,
|
|
1019
|
-
t.textStyles
|
|
1020
|
-
), this.addState(
|
|
1021
|
-
o,
|
|
1022
|
-
f,
|
|
1023
|
-
e.doc,
|
|
1024
|
-
e.description,
|
|
1025
|
-
e.note,
|
|
1026
|
-
e.classes,
|
|
1027
|
-
e.styles,
|
|
1028
|
-
e.textStyles
|
|
1029
|
-
), this.currentDocument.relations.push({
|
|
1030
|
-
id1: s,
|
|
1031
|
-
id2: o,
|
|
1032
|
-
relationTitle: K.sanitizeText(n, P())
|
|
1033
|
-
});
|
|
1034
|
-
}
|
|
1035
|
-
/**
|
|
1036
|
-
* Add a relation between two items. The items may be full objects or just the string id of a state.
|
|
1037
|
-
*/
|
|
1038
|
-
addRelation(t, e, n) {
|
|
1039
|
-
if (typeof t == "object" && typeof e == "object")
|
|
1040
|
-
this.addRelationObjs(t, e, n);
|
|
1041
|
-
else if (typeof t == "string" && typeof e == "string") {
|
|
1042
|
-
const s = this.startIdIfNeeded(t.trim()), c = this.startTypeIfNeeded(t), o = this.endIdIfNeeded(e.trim()), f = this.endTypeIfNeeded(e);
|
|
1043
|
-
this.addState(s, c), this.addState(o, f), this.currentDocument.relations.push({
|
|
1044
|
-
id1: s,
|
|
1045
|
-
id2: o,
|
|
1046
|
-
relationTitle: n ? K.sanitizeText(n, P()) : void 0
|
|
1047
|
-
});
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
addDescription(t, e) {
|
|
1051
|
-
var n;
|
|
1052
|
-
const s = this.currentDocument.states.get(t), c = e.startsWith(":") ? e.replace(":", "").trim() : e;
|
|
1053
|
-
(n = s == null ? void 0 : s.descriptions) == null || n.push(K.sanitizeText(c, P()));
|
|
1054
|
-
}
|
|
1055
|
-
cleanupLabel(t) {
|
|
1056
|
-
return t.startsWith(":") ? t.slice(2).trim() : t.trim();
|
|
1057
|
-
}
|
|
1058
|
-
getDividerId() {
|
|
1059
|
-
return this.dividerCnt++, `divider-id-${this.dividerCnt}`;
|
|
1060
|
-
}
|
|
1061
|
-
/**
|
|
1062
|
-
* Called when the parser comes across a (style) class definition
|
|
1063
|
-
* @example classDef my-style fill:#f96;
|
|
1064
|
-
*
|
|
1065
|
-
* @param id - the id of this (style) class
|
|
1066
|
-
* @param styleAttributes - the string with 1 or more style attributes (each separated by a comma)
|
|
1067
|
-
*/
|
|
1068
|
-
addStyleClass(t, e = "") {
|
|
1069
|
-
this.classes.has(t) || this.classes.set(t, { id: t, styles: [], textStyles: [] });
|
|
1070
|
-
const n = this.classes.get(t);
|
|
1071
|
-
e && n && e.split(k.STYLECLASS_SEP).forEach((s) => {
|
|
1072
|
-
const c = s.replace(/([^;]*);/, "$1").trim();
|
|
1073
|
-
if (RegExp(k.COLOR_KEYWORD).exec(s)) {
|
|
1074
|
-
const o = c.replace(k.FILL_KEYWORD, k.BG_FILL).replace(k.COLOR_KEYWORD, k.FILL_KEYWORD);
|
|
1075
|
-
n.textStyles.push(o);
|
|
1076
|
-
}
|
|
1077
|
-
n.styles.push(c);
|
|
1078
|
-
});
|
|
1079
|
-
}
|
|
1080
|
-
getClasses() {
|
|
1081
|
-
return this.classes;
|
|
1082
|
-
}
|
|
1083
|
-
/**
|
|
1084
|
-
* Add a (style) class or css class to a state with the given id.
|
|
1085
|
-
* If the state isn't already in the list of known states, add it.
|
|
1086
|
-
* Might be called by parser when a style class or CSS class should be applied to a state
|
|
1087
|
-
*
|
|
1088
|
-
* @param itemIds - The id or a list of ids of the item(s) to apply the css class to
|
|
1089
|
-
* @param cssClassName - CSS class name
|
|
1090
|
-
*/
|
|
1091
|
-
setCssClass(t, e) {
|
|
1092
|
-
t.split(",").forEach((n) => {
|
|
1093
|
-
var s;
|
|
1094
|
-
let c = this.getState(n);
|
|
1095
|
-
if (!c) {
|
|
1096
|
-
const o = n.trim();
|
|
1097
|
-
this.addState(o), c = this.getState(o);
|
|
1098
|
-
}
|
|
1099
|
-
(s = c == null ? void 0 : c.classes) == null || s.push(e);
|
|
1100
|
-
});
|
|
1101
|
-
}
|
|
1102
|
-
/**
|
|
1103
|
-
* Add a style to a state with the given id.
|
|
1104
|
-
* @example style stateId fill:#f9f,stroke:#333,stroke-width:4px
|
|
1105
|
-
* where 'style' is the keyword
|
|
1106
|
-
* stateId is the id of a state
|
|
1107
|
-
* the rest of the string is the styleText (all of the attributes to be applied to the state)
|
|
1108
|
-
*
|
|
1109
|
-
* @param itemId - The id of item to apply the style to
|
|
1110
|
-
* @param styleText - the text of the attributes for the style
|
|
1111
|
-
*/
|
|
1112
|
-
setStyle(t, e) {
|
|
1113
|
-
var n, s;
|
|
1114
|
-
(s = (n = this.getState(t)) == null ? void 0 : n.styles) == null || s.push(e);
|
|
1115
|
-
}
|
|
1116
|
-
/**
|
|
1117
|
-
* Add a text style to a state with the given id
|
|
1118
|
-
*
|
|
1119
|
-
* @param itemId - The id of item to apply the css class to
|
|
1120
|
-
* @param cssClassName - CSS class name
|
|
1121
|
-
*/
|
|
1122
|
-
setTextStyle(t, e) {
|
|
1123
|
-
var n, s;
|
|
1124
|
-
(s = (n = this.getState(t)) == null ? void 0 : n.textStyles) == null || s.push(e);
|
|
1125
|
-
}
|
|
1126
|
-
/**
|
|
1127
|
-
* Finds the direction statement in the root document.
|
|
1128
|
-
* @returns the direction statement if present
|
|
1129
|
-
*/
|
|
1130
|
-
getDirectionStatement() {
|
|
1131
|
-
return this.rootDoc.find((t) => t.stmt === Lt);
|
|
1132
|
-
}
|
|
1133
|
-
getDirection() {
|
|
1134
|
-
var t;
|
|
1135
|
-
return ((t = this.getDirectionStatement()) == null ? void 0 : t.value) ?? de;
|
|
1136
|
-
}
|
|
1137
|
-
setDirection(t) {
|
|
1138
|
-
const e = this.getDirectionStatement();
|
|
1139
|
-
e ? e.value = t : this.rootDoc.unshift({ stmt: Lt, value: t });
|
|
1140
|
-
}
|
|
1141
|
-
trimColon(t) {
|
|
1142
|
-
return t.startsWith(":") ? t.slice(1).trim() : t.trim();
|
|
1143
|
-
}
|
|
1144
|
-
getData() {
|
|
1145
|
-
const t = P();
|
|
1146
|
-
return {
|
|
1147
|
-
nodes: this.nodes,
|
|
1148
|
-
edges: this.edges,
|
|
1149
|
-
other: {},
|
|
1150
|
-
config: t,
|
|
1151
|
-
direction: Vt(this.getRootDocV2())
|
|
1152
|
-
};
|
|
1153
|
-
}
|
|
1154
|
-
getConfig() {
|
|
1155
|
-
return P().state;
|
|
1156
|
-
}
|
|
1157
|
-
}, d(pt, "StateDB"), pt.relationType = {
|
|
1158
|
-
AGGREGATION: 0,
|
|
1159
|
-
EXTENSION: 1,
|
|
1160
|
-
COMPOSITION: 2,
|
|
1161
|
-
DEPENDENCY: 3
|
|
1162
|
-
}, pt), we = /* @__PURE__ */ d((t) => `
|
|
1163
|
-
defs #statediagram-barbEnd {
|
|
1164
|
-
fill: ${t.transitionColor};
|
|
1165
|
-
stroke: ${t.transitionColor};
|
|
1166
|
-
}
|
|
1167
|
-
g.stateGroup text {
|
|
1168
|
-
fill: ${t.nodeBorder};
|
|
1169
|
-
stroke: none;
|
|
1170
|
-
font-size: 10px;
|
|
1171
|
-
}
|
|
1172
|
-
g.stateGroup text {
|
|
1173
|
-
fill: ${t.textColor};
|
|
1174
|
-
stroke: none;
|
|
1175
|
-
font-size: 10px;
|
|
1176
|
-
|
|
1177
|
-
}
|
|
1178
|
-
g.stateGroup .state-title {
|
|
1179
|
-
font-weight: bolder;
|
|
1180
|
-
fill: ${t.stateLabelColor};
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
|
-
g.stateGroup rect {
|
|
1184
|
-
fill: ${t.mainBkg};
|
|
1185
|
-
stroke: ${t.nodeBorder};
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
|
-
g.stateGroup line {
|
|
1189
|
-
stroke: ${t.lineColor};
|
|
1190
|
-
stroke-width: 1;
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
.transition {
|
|
1194
|
-
stroke: ${t.transitionColor};
|
|
1195
|
-
stroke-width: 1;
|
|
1196
|
-
fill: none;
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
.stateGroup .composit {
|
|
1200
|
-
fill: ${t.background};
|
|
1201
|
-
border-bottom: 1px
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
.stateGroup .alt-composit {
|
|
1205
|
-
fill: #e0e0e0;
|
|
1206
|
-
border-bottom: 1px
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
.state-note {
|
|
1210
|
-
stroke: ${t.noteBorderColor};
|
|
1211
|
-
fill: ${t.noteBkgColor};
|
|
1212
|
-
|
|
1213
|
-
text {
|
|
1214
|
-
fill: ${t.noteTextColor};
|
|
1215
|
-
stroke: none;
|
|
1216
|
-
font-size: 10px;
|
|
1217
|
-
}
|
|
1218
|
-
}
|
|
1219
|
-
|
|
1220
|
-
.stateLabel .box {
|
|
1221
|
-
stroke: none;
|
|
1222
|
-
stroke-width: 0;
|
|
1223
|
-
fill: ${t.mainBkg};
|
|
1224
|
-
opacity: 0.5;
|
|
1225
|
-
}
|
|
1226
|
-
|
|
1227
|
-
.edgeLabel .label rect {
|
|
1228
|
-
fill: ${t.labelBackgroundColor};
|
|
1229
|
-
opacity: 0.5;
|
|
1230
|
-
}
|
|
1231
|
-
.edgeLabel {
|
|
1232
|
-
background-color: ${t.edgeLabelBackground};
|
|
1233
|
-
p {
|
|
1234
|
-
background-color: ${t.edgeLabelBackground};
|
|
1235
|
-
}
|
|
1236
|
-
rect {
|
|
1237
|
-
opacity: 0.5;
|
|
1238
|
-
background-color: ${t.edgeLabelBackground};
|
|
1239
|
-
fill: ${t.edgeLabelBackground};
|
|
1240
|
-
}
|
|
1241
|
-
text-align: center;
|
|
1242
|
-
}
|
|
1243
|
-
.edgeLabel .label text {
|
|
1244
|
-
fill: ${t.transitionLabelColor || t.tertiaryTextColor};
|
|
1245
|
-
}
|
|
1246
|
-
.label div .edgeLabel {
|
|
1247
|
-
color: ${t.transitionLabelColor || t.tertiaryTextColor};
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
|
-
.stateLabel text {
|
|
1251
|
-
fill: ${t.stateLabelColor};
|
|
1252
|
-
font-size: 10px;
|
|
1253
|
-
font-weight: bold;
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
.node circle.state-start {
|
|
1257
|
-
fill: ${t.specialStateColor};
|
|
1258
|
-
stroke: ${t.specialStateColor};
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
|
-
.node .fork-join {
|
|
1262
|
-
fill: ${t.specialStateColor};
|
|
1263
|
-
stroke: ${t.specialStateColor};
|
|
1264
|
-
}
|
|
1265
|
-
|
|
1266
|
-
.node circle.state-end {
|
|
1267
|
-
fill: ${t.innerEndBackground};
|
|
1268
|
-
stroke: ${t.background};
|
|
1269
|
-
stroke-width: 1.5
|
|
1270
|
-
}
|
|
1271
|
-
.end-state-inner {
|
|
1272
|
-
fill: ${t.compositeBackground || t.background};
|
|
1273
|
-
// stroke: ${t.background};
|
|
1274
|
-
stroke-width: 1.5
|
|
1275
|
-
}
|
|
1276
|
-
|
|
1277
|
-
.node rect {
|
|
1278
|
-
fill: ${t.stateBkg || t.mainBkg};
|
|
1279
|
-
stroke: ${t.stateBorder || t.nodeBorder};
|
|
1280
|
-
stroke-width: 1px;
|
|
1281
|
-
}
|
|
1282
|
-
.node polygon {
|
|
1283
|
-
fill: ${t.mainBkg};
|
|
1284
|
-
stroke: ${t.stateBorder || t.nodeBorder};;
|
|
1285
|
-
stroke-width: 1px;
|
|
1286
|
-
}
|
|
1287
|
-
#statediagram-barbEnd {
|
|
1288
|
-
fill: ${t.lineColor};
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
|
-
.statediagram-cluster rect {
|
|
1292
|
-
fill: ${t.compositeTitleBackground};
|
|
1293
|
-
stroke: ${t.stateBorder || t.nodeBorder};
|
|
1294
|
-
stroke-width: 1px;
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
.cluster-label, .nodeLabel {
|
|
1298
|
-
color: ${t.stateLabelColor};
|
|
1299
|
-
// line-height: 1;
|
|
1300
|
-
}
|
|
1301
|
-
|
|
1302
|
-
.statediagram-cluster rect.outer {
|
|
1303
|
-
rx: 5px;
|
|
1304
|
-
ry: 5px;
|
|
1305
|
-
}
|
|
1306
|
-
.statediagram-state .divider {
|
|
1307
|
-
stroke: ${t.stateBorder || t.nodeBorder};
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
|
-
.statediagram-state .title-state {
|
|
1311
|
-
rx: 5px;
|
|
1312
|
-
ry: 5px;
|
|
1313
|
-
}
|
|
1314
|
-
.statediagram-cluster.statediagram-cluster .inner {
|
|
1315
|
-
fill: ${t.compositeBackground || t.background};
|
|
1316
|
-
}
|
|
1317
|
-
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
1318
|
-
fill: ${t.altBackground ? t.altBackground : "#efefef"};
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1321
|
-
.statediagram-cluster .inner {
|
|
1322
|
-
rx:0;
|
|
1323
|
-
ry:0;
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
.statediagram-state rect.basic {
|
|
1327
|
-
rx: 5px;
|
|
1328
|
-
ry: 5px;
|
|
1329
|
-
}
|
|
1330
|
-
.statediagram-state rect.divider {
|
|
1331
|
-
stroke-dasharray: 10,10;
|
|
1332
|
-
fill: ${t.altBackground ? t.altBackground : "#efefef"};
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
.note-edge {
|
|
1336
|
-
stroke-dasharray: 5;
|
|
1337
|
-
}
|
|
1338
|
-
|
|
1339
|
-
.statediagram-note rect {
|
|
1340
|
-
fill: ${t.noteBkgColor};
|
|
1341
|
-
stroke: ${t.noteBorderColor};
|
|
1342
|
-
stroke-width: 1px;
|
|
1343
|
-
rx: 0;
|
|
1344
|
-
ry: 0;
|
|
1345
|
-
}
|
|
1346
|
-
.statediagram-note rect {
|
|
1347
|
-
fill: ${t.noteBkgColor};
|
|
1348
|
-
stroke: ${t.noteBorderColor};
|
|
1349
|
-
stroke-width: 1px;
|
|
1350
|
-
rx: 0;
|
|
1351
|
-
ry: 0;
|
|
1352
|
-
}
|
|
1353
|
-
|
|
1354
|
-
.statediagram-note text {
|
|
1355
|
-
fill: ${t.noteTextColor};
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
.statediagram-note .nodeLabel {
|
|
1359
|
-
color: ${t.noteTextColor};
|
|
1360
|
-
}
|
|
1361
|
-
.statediagram .edgeLabel {
|
|
1362
|
-
color: red; // ${t.noteTextColor};
|
|
1363
|
-
}
|
|
1364
|
-
|
|
1365
|
-
#dependencyStart, #dependencyEnd {
|
|
1366
|
-
fill: ${t.lineColor};
|
|
1367
|
-
stroke: ${t.lineColor};
|
|
1368
|
-
stroke-width: 1;
|
|
1369
|
-
}
|
|
1370
|
-
|
|
1371
|
-
.statediagramTitleText {
|
|
1372
|
-
text-anchor: middle;
|
|
1373
|
-
font-size: 18px;
|
|
1374
|
-
fill: ${t.textColor};
|
|
1375
|
-
}
|
|
1376
|
-
`, "getStyles"), Me = we;
|
|
1377
|
-
export {
|
|
1378
|
-
Ye as B,
|
|
1379
|
-
je as M,
|
|
1380
|
-
Me as U,
|
|
1381
|
-
Ge as V
|
|
1382
|
-
};
|