@tobisk/codesafari 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/content/frontmatter.js +9 -1
- package/dist/content/frontmatter.js.map +1 -1
- package/package.json +12 -9
- package/viewer-dist/assets/abnfDiagram-XWFEHMT6-C79KnTw8.js +1 -0
- package/viewer-dist/assets/arc-l-ZAXPJO.js +1 -0
- package/viewer-dist/assets/architecture-WOLXFQ4H-BgLy9Yqp.js +1 -0
- package/viewer-dist/assets/architectureDiagram-CSQXQB3N-TJ9cXrHq.js +36 -0
- package/viewer-dist/assets/blockDiagram-BEDRHYPZ-By3kvess.js +140 -0
- package/viewer-dist/assets/bpmnIcons-APHXDYXF-C0jbCElo.js +1 -0
- package/viewer-dist/assets/c4Diagram-M2UUVUY5-CEeFbn5F.js +38 -0
- package/viewer-dist/assets/chunk-2Q5K7J3B-DKYFIUDS.js +1 -0
- package/viewer-dist/assets/chunk-3BJB4PZV-D3hUDXSk.js +1 -0
- package/viewer-dist/assets/chunk-3GCGMST5-C9FeQipv.js +1 -0
- package/viewer-dist/assets/{chunk-5VM5RSS4-Zc4pbF2-.js → chunk-5VM5RSS4-CdmEoR_J.js} +2 -2
- package/viewer-dist/assets/chunk-7U7NFRK5-CTLlozLY.js +88 -0
- package/viewer-dist/assets/chunk-CNRTWJTD-Ccr1NK1L.js +1 -0
- package/viewer-dist/assets/chunk-D5HYT7QG-Bj30JPRv.js +1 -0
- package/viewer-dist/assets/chunk-EBZ3SEQC-Sk8u_9ep.js +2 -0
- package/viewer-dist/assets/chunk-JWPE2WC7-COMTgl4A.js +1 -0
- package/viewer-dist/assets/chunk-KTR4FSNJ-WfEV-uOS.js +1 -0
- package/viewer-dist/assets/chunk-VN5WK6U6-C6BzLJ3g.js +213 -0
- package/viewer-dist/assets/chunk-XXDRQBXY-B_jRWCc3.js +1 -0
- package/viewer-dist/assets/classDiagram-v2-IZLYA2OM-CMUybpF2.js +217 -0
- package/viewer-dist/assets/cose-bilkent-JH36ORCC-BPaMzy85.js +1 -0
- package/viewer-dist/assets/cynefin-EF2NZ3EQ-DWzUaEWi.js +1 -0
- package/viewer-dist/assets/cynefinDiagram-NJNITYFG-C8QaCQXp.js +62 -0
- package/viewer-dist/assets/cytoscape.esm-DTfjcSDB.js +321 -0
- package/viewer-dist/assets/dagre-KIHZ2IZ3-BOPsr9LQ.js +4 -0
- package/viewer-dist/assets/defaultLocale-DeDIAtVl.js +1 -0
- package/viewer-dist/assets/diagram-7YQZDPLS-mYVjZ8Lx.js +41 -0
- package/viewer-dist/assets/diagram-QBROCOUO-DvI2mJSr.js +200 -0
- package/viewer-dist/assets/diagram-RJJCUUZO-CUPJGu2H.js +30 -0
- package/viewer-dist/assets/diagram-WERXNKYE-LcjJC6e6.js +24 -0
- package/viewer-dist/assets/diagram-YHHI257C-CcytRL3C.js +3 -0
- package/viewer-dist/assets/diagram-YR4HJLHV-DSNAvpUg.js +24 -0
- package/viewer-dist/assets/ebnfDiagram-N527522P-DCRtXms7.js +1 -0
- package/viewer-dist/assets/elk-O5DQBFGD-DMI6Zpvy.js +27 -0
- package/viewer-dist/assets/erDiagram-GT5GOJPG-D1F-hqWB.js +99 -0
- package/viewer-dist/assets/eventmodeling-K75KTNOO-4qs67wAF.js +1 -0
- package/viewer-dist/assets/flowDiagram-JAYNFW54-7bC7dhfH.js +1 -0
- package/viewer-dist/assets/ganttDiagram-3PRQTZWP-c3vw-KzJ.js +292 -0
- package/viewer-dist/assets/gitGraph-VSP46ZUC-CFMJazMp.js +1 -0
- package/viewer-dist/assets/gitGraphDiagram-VXDFKS5L-CXwZYVtU.js +106 -0
- package/viewer-dist/assets/graphlib-7nQ5Ng6P.js +1 -0
- package/viewer-dist/assets/grid-E2QIVN74-ryRc6Wgk.js +1 -0
- package/viewer-dist/assets/index-BLTUQmtP.css +1 -0
- package/viewer-dist/assets/index-LgGsGSUh.js +398 -0
- package/viewer-dist/assets/info-OHQRW6UA-rYwbZW6Y.js +1 -0
- package/viewer-dist/assets/infoDiagram-ATMJ4U3S-qX5Cid2q.js +2 -0
- package/viewer-dist/assets/init-C-OQMol4.js +1 -0
- package/viewer-dist/assets/ishikawaDiagram-S3EKX5GW-CSUJfCgm.js +70 -0
- package/viewer-dist/assets/journeyDiagram-POQNLL5X--_T-gdww.js +139 -0
- package/viewer-dist/assets/kanban-definition-BH5XI6FM-BsWjihcO.js +89 -0
- package/viewer-dist/assets/katex-CePi8B18.js +257 -0
- package/viewer-dist/assets/linear-BjnGGdIE.js +1 -0
- package/viewer-dist/assets/mermaid-parser.core-D9IKLdIu.js +141 -0
- package/viewer-dist/assets/mindmap-definition-WVAN44T4-vxwY3Xnu.js +98 -0
- package/viewer-dist/assets/ordinal-BDEzSJ7C.js +1 -0
- package/viewer-dist/assets/packet-JDAUHWVQ-CEegYGRn.js +1 -0
- package/viewer-dist/assets/pegDiagram-D4NLKWP3-8tSu4Jqx.js +1 -0
- package/viewer-dist/assets/pie-XZMESJXO-exj595wL.js +1 -0
- package/viewer-dist/assets/pieDiagram-36ENHN4W-CNY-FqqW.js +39 -0
- package/viewer-dist/assets/quadrantDiagram-ZQUDMS73-CqGaRuIP.js +7 -0
- package/viewer-dist/assets/radar-ABXABTNO-CmxHfKAF.js +1 -0
- package/viewer-dist/assets/railroad-I3PHUGI6-DXY0-ZL-.js +1 -0
- package/viewer-dist/assets/railroad-abnf-LNEFI6M7-v-M60bY5.js +1 -0
- package/viewer-dist/assets/railroad-ebnf-DWYD2UWJ-C7Ubri5u.js +1 -0
- package/viewer-dist/assets/railroad-peg-JR7BVNR7-DpAM4Usk.js +1 -0
- package/viewer-dist/assets/railroadDiagram-JIZHGYPL-D6LbsW-D.js +1 -0
- package/viewer-dist/assets/render-VIF2ZAQL-B9RjOjNU.js +2 -0
- package/viewer-dist/assets/requirementDiagram-AXW2TVFA-FxNR3nZg.js +84 -0
- package/viewer-dist/assets/sankeyDiagram-FBCJTAIF-pSJfgdmf.js +40 -0
- package/viewer-dist/assets/sequenceDiagram-3LA2ROMG-R5T9FB-U.js +169 -0
- package/viewer-dist/assets/sizeCapture-2Q2CQKSF-BuZ6aVhF.js +1 -0
- package/viewer-dist/assets/stateDiagram-v2-XZFR63ZJ-y2ApNDME.js +291 -0
- package/viewer-dist/assets/swimlanes-YQL5WMAO-Dqbpsu6u.js +1 -0
- package/viewer-dist/assets/swimlanesDiagram-BA3ZWDFA-iEZapiU_.js +8 -0
- package/viewer-dist/assets/timeline-definition-7Z437IG3-DAxdChcP.js +120 -0
- package/viewer-dist/assets/treeView-D4JQ5SDB-DE5B8wLE.js +1 -0
- package/viewer-dist/assets/treemap-SAJKECNS-fnWCJ5Gb.js +1 -0
- package/viewer-dist/assets/usecaseDiagram-RDK6N6HP-bXXWy_jN.js +328 -0
- package/viewer-dist/assets/vennDiagram-SHRQU5PJ-CjOBjqdM.js +34 -0
- package/viewer-dist/assets/wardley-7MLQ67FV-COzPZ67W.js +1 -0
- package/viewer-dist/assets/wardleyDiagram-F3OXNVQS-BjHoJgg7.js +78 -0
- package/viewer-dist/assets/xychartDiagram-GDYJKCDI-CwJZcH_5.js +7 -0
- package/viewer-dist/index.html +2 -2
- package/viewer-dist/assets/abnfDiagram-VRR7QNED-CUtCPUcK.js +0 -1
- package/viewer-dist/assets/arc-DT1qPdzO.js +0 -1
- package/viewer-dist/assets/architectureDiagram-ZJ3FMSHR-Clz4_k6c.js +0 -36
- package/viewer-dist/assets/blockDiagram-677ZJIJ3-BprAT8ww.js +0 -132
- package/viewer-dist/assets/c4Diagram-LMCZKHZV-K4EFS-bi.js +0 -10
- package/viewer-dist/assets/channel-B6VWJVDA.js +0 -1
- package/viewer-dist/assets/chunk-2Q5K7J3B-wt4j9iAJ.js +0 -1
- package/viewer-dist/assets/chunk-32BRIVSS-DZndHhpA.js +0 -1
- package/viewer-dist/assets/chunk-EX3LRPZG-D150rsiB.js +0 -231
- package/viewer-dist/assets/chunk-JWPE2WC7-CnWGcCgD.js +0 -1
- package/viewer-dist/assets/chunk-MOJQB5TN-CNNkBqHI.js +0 -88
- package/viewer-dist/assets/chunk-RYQCIY6F-BohP8cpF.js +0 -1
- package/viewer-dist/assets/chunk-V7JOEXUC-O8PMb1tP.js +0 -206
- package/viewer-dist/assets/chunk-VR4S4FIN-AjltP-MY.js +0 -1
- package/viewer-dist/assets/chunk-XXDRQBXY-BOvzmjQv.js +0 -1
- package/viewer-dist/assets/classDiagram-OUVF2IWQ-7lFY7hbW.js +0 -1
- package/viewer-dist/assets/classDiagram-v2-EOCWNBFH-7lFY7hbW.js +0 -1
- package/viewer-dist/assets/cose-bilkent-JH36ORCC-BI5sbJIe.js +0 -1
- package/viewer-dist/assets/cynefin-VYW2F7L2-DsqQ6c-8.js +0 -178
- package/viewer-dist/assets/cynefinDiagram-TSTJHNR4-aSrdlJhs.js +0 -62
- package/viewer-dist/assets/cytoscape.esm-CUqq0XTU.js +0 -331
- package/viewer-dist/assets/dagre-VKFMJZFB-C1JJb4il.js +0 -4
- package/viewer-dist/assets/defaultLocale-DX6XiGOO.js +0 -1
- package/viewer-dist/assets/diagram-FQU43EPY-bqnjeq9L.js +0 -3
- package/viewer-dist/assets/diagram-G47NLZAW-CI_3tBI7.js +0 -24
- package/viewer-dist/assets/diagram-NH7WQ7WH--Cuuj_l0.js +0 -24
- package/viewer-dist/assets/diagram-OA4YK3LP-Ber9CxgW.js +0 -30
- package/viewer-dist/assets/diagram-WEI45ONY-DA4LRa2G.js +0 -41
- package/viewer-dist/assets/ebnfDiagram-CCIWWBDH-BWw30PPO.js +0 -1
- package/viewer-dist/assets/erDiagram-Q63AITRT-CvTYXHZZ.js +0 -85
- package/viewer-dist/assets/flowDiagram-23GEKE2U-Jzg6zox9.js +0 -156
- package/viewer-dist/assets/ganttDiagram-NO4QXBWP-DXxub_Mn.js +0 -292
- package/viewer-dist/assets/gitGraphDiagram-IHSO6WYX-DplAVHS7.js +0 -106
- package/viewer-dist/assets/graph-C2PyVmSI.js +0 -1
- package/viewer-dist/assets/index-DVLkX2-Z.css +0 -1
- package/viewer-dist/assets/index-MwqpmjOm.js +0 -430
- package/viewer-dist/assets/infoDiagram-FWYZ7A6U-Df_ey2Yt.js +0 -2
- package/viewer-dist/assets/init-Gi6I4Gst.js +0 -1
- package/viewer-dist/assets/ishikawaDiagram-FXEZZL3T-C68vhFVb.js +0 -70
- package/viewer-dist/assets/journeyDiagram-5HDEW3XC-CoDmHoV3.js +0 -139
- package/viewer-dist/assets/kanban-definition-HUTT4EX6-B6r0jwQw.js +0 -89
- package/viewer-dist/assets/katex-C5jXJg4s.js +0 -257
- package/viewer-dist/assets/layout-HEHzrzvT.js +0 -1
- package/viewer-dist/assets/linear-DIoMe8rR.js +0 -1
- package/viewer-dist/assets/map-BQHxRNoK.js +0 -1
- package/viewer-dist/assets/mindmap-definition-LN4V7U3C-Bnswylok.js +0 -96
- package/viewer-dist/assets/ordinal-Cboi1Yqb.js +0 -1
- package/viewer-dist/assets/pegDiagram-2B236MQR-DIN1FTnX.js +0 -1
- package/viewer-dist/assets/pieDiagram-ENE6RG2P-CprqMtkw.js +0 -39
- package/viewer-dist/assets/quadrantDiagram-ABIIQ3AL-BDDULhdJ.js +0 -7
- package/viewer-dist/assets/railroadDiagram-RFXS5EU6-DYchCzqc.js +0 -1
- package/viewer-dist/assets/requirementDiagram-TGXJPOKE-C5wnr9uO.js +0 -84
- package/viewer-dist/assets/sankeyDiagram-HTMAVEWB-DkwntNXb.js +0 -40
- package/viewer-dist/assets/sequenceDiagram-DBY2YBRQ-CjDmNFC_.js +0 -162
- package/viewer-dist/assets/sizeCapture-X5ZJPWSS-DPuxDmrs.js +0 -1
- package/viewer-dist/assets/stateDiagram-2N3HPSRC-BYVZZo-M.js +0 -1
- package/viewer-dist/assets/stateDiagram-v2-6OUMAXLB-BRXNY8_F.js +0 -1
- package/viewer-dist/assets/swimlanes-5IMT3BWC-GXmz8FzP.js +0 -2
- package/viewer-dist/assets/swimlanesDiagram-G3AALYLV-Gfb32vBV.js +0 -8
- package/viewer-dist/assets/timeline-definition-FHXFAJF6-CQLwZsEX.js +0 -120
- package/viewer-dist/assets/vennDiagram-L72KCM5P-DZt4sGqU.js +0 -34
- package/viewer-dist/assets/wardleyDiagram-EHGQE667-7OXN_C-l.js +0 -78
- package/viewer-dist/assets/xychartDiagram-FW5EYKEG-rI5CAM0A.js +0 -7
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import{t as e}from"./chunk-3BJB4PZV-D3hUDXSk.js";import{t}from"./chunk-XXDRQBXY-B_jRWCc3.js";import{t as n}from"./chunk-CNRTWJTD-Ccr1NK1L.js";import{Bn as r,Cn as i,Dt as a,En as o,Et as s,H as c,Ln as l,Ot as u,Qn as d,Rn as f,Sn as p,Tn as m,gn as h,kt as g,n as _,nr as v,pn as y,q as b,t as x,tr as S,vn as C}from"./index-LgGsGSUh.js";import{t as w}from"./chunk-D5HYT7QG-Bj30JPRv.js";var T=(function(){var e=S(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,2],n=[1,3],r=[1,4],i=[2,4],a=[1,9],o=[1,11],s=[1,16],c=[1,17],l=[1,18],u=[1,19],d=[1,33],f=[1,20],p=[1,21],m=[1,22],h=[1,23],g=[1,24],_=[1,26],v=[1,27],y=[1,28],b=[1,29],x=[1,30],C=[1,31],w=[1,32],T=[1,35],E=[1,36],D=[1,37],O=[1,38],k=[1,34],A=[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],j=[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],M=[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],N={trace:S(function(){},`trace`),yy:{},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},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`},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]],performAction:S(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 12:this.$=a[s];break;case 13:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 14:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 15:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 19:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 20:var c=a[s],l=a[s-2].trim();if(a[s].match(`:`)){var u=a[s].split(`:`);c=u[0],l=[l,u[1]]}this.$={stmt:`state`,id:c,type:`default`,description:l};break;case 21:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 23:this.$={stmt:`state`,id:a[s],type:`join`};break;case 24:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 25:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 26:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:`click`,id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:`click`,id:a[s-3],url:a[s-1],tooltip:``};break;case 34:case 35:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:`style`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 39:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 40:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 41:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 44:case 45:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 46:case 47:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``}}},`anonymous`),table:[{3:1,4:t,5:n,6:r},{1:[3]},{3:5,4:t,5:n,6:r},{3:6,4:t,5:n,6:r},e([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],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:c,19:l,22:u,24:d,25:f,26:p,27:m,28:h,29:g,32:25,33:_,35:v,37:y,38:b,41:x,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:s,17:c,19:l,22:u,24:d,25:f,26:p,27:m,28:h,29:g,32:25,33:_,35:v,37:y,38:b,41:x,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,7]),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(A,[2,11]),e(A,[2,12],{14:[1,40],15:[1,41]}),e(A,[2,16]),{18:[1,42]},e(A,[2,18],{20:[1,43]}),{23:[1,44]},e(A,[2,22]),e(A,[2,23]),e(A,[2,24]),e(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(A,[2,28]),{34:[1,49]},{36:[1,50]},e(A,[2,31]),{13:51,24:d,57:k},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(j,[2,44],{58:[1,56]}),e(j,[2,45],{58:[1,57]}),e(A,[2,38]),e(A,[2,39]),e(A,[2,40]),e(A,[2,41]),e(A,[2,6]),e(A,[2,13]),{13:58,24:d,57:k},e(A,[2,17]),e(M,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(A,[2,29]),e(A,[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]},e(A,[2,14],{14:[1,71]}),{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:c,19:l,21:[1,72],22:u,24:d,25:f,26:p,27:m,28:h,29:g,32:25,33:_,35:v,37:y,38:b,41:x,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(A,[2,34]),e(A,[2,35]),e(A,[2,36]),e(A,[2,37]),e(j,[2,46]),e(j,[2,47]),e(A,[2,15]),e(A,[2,19]),e(M,i,{7:78}),e(A,[2,26]),e(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:c,19:l,21:[1,81],22:u,24:d,25:f,26:p,27:m,28:h,29:g,32:25,33:_,35:v,37:y,38:b,41:x,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,32]),e(A,[2,33]),e(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:S(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:S(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,d=2,f=1,p=a.slice.call(arguments,1),m=Object.create(this.lexer),h={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(h.yy[g]=this.yy[g]);m.setInput(e,h.yy),h.yy.lexer=m,h.yy.parser=this,m.yylloc===void 0&&(m.yylloc={});var _=m.yylloc;a.push(_);var v=m.options&&m.options.ranges;this.parseError=typeof h.yy.parseError==`function`?h.yy.parseError:Object.getPrototypeOf(this).parseError;function y(e){n.length-=2*e,i.length-=e,a.length-=e}S(y,`popStack`);function b(){var e=r.pop()||m.lex()||f;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}S(b,`lex`);for(var x,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(x??=b(),T=o[w]&&o[w][x]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>d&&j.push(`'`+this.terminals_[O]+`'`);M=m.showPosition?`Parse error on line `+(c+1)+`:
|
|
2
|
+
`+m.showPosition()+`
|
|
3
|
+
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[x]||x)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(x==f?`end of input`:`'`+(this.terminals_[x]||x)+`'`),this.parseError(M,{text:m.match,token:this.terminals_[x]||x,line:m.yylineno,loc:_,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+x);switch(T[0]){case 1:n.push(x),i.push(m.yytext),a.push(m.yylloc),n.push(T[1]),x=null,C?(x=C,C=null):(l=m.yyleng,s=m.yytext,c=m.yylineno,_=m.yylloc,u>0&&u--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},v&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,l,c,h.yy,T[1],i,a].concat(p)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};N.lexer=(function(){return{EOF:1,parseError:S(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:S(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:S(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},`input`),unput:S(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:S(function(){return this._more=!0,this},`more`),reject:S(function(){if(this.options.backtrack_lexer)this._backtrack=!0;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).
|
|
4
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:S(function(e){this.unput(this.match.slice(e))},`less`),pastInput:S(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:S(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:S(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
+
`+t+`^`},`showPosition`),test_match:S(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:S(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:S(function(){return this.next()||this.lex()},`lex`),begin:S(function(e){this.conditionStack.push(e)},`begin`),popState:S(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:S(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:S(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:S(function(e){this.begin(e)},`pushState`),stateStackSize:S(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:S(function(e,t,n,r){function i(){let n=t.yytext.indexOf(`%%`);if(n===0)return!1;if(n>0){let r=t.yytext.slice(0,n),i=t.yytext.slice(n);i&&e.lexer.unput(i),t.yytext=r}return!0}switch(S(i,`processId`),n){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:return 5;case 9:case 10:case 11:case 12:break;case 13:return this.pushState(`SCALE`),17;case 14:return 18;case 15:this.popState();break;case 16:return this.begin(`acc_title`),33;case 17:return this.popState(),`acc_title_value`;case 18:return this.begin(`acc_descr`),35;case 19:return this.popState(),`acc_descr_value`;case 20:this.begin(`acc_descr_multiline`);break;case 21:this.popState();break;case 22:return`acc_descr_multiline_value`;case 23:return this.pushState(`CLASSDEF`),41;case 24:return this.popState(),this.pushState(`CLASSDEFID`),`DEFAULT_CLASSDEF_ID`;case 25:return this.popState(),this.pushState(`CLASSDEFID`),42;case 26:return this.popState(),43;case 27:return this.pushState(`CLASS`),48;case 28:return this.popState(),this.pushState(`CLASS_STYLE`),49;case 29:return this.popState(),50;case 30:return this.pushState(`STYLE`),45;case 31:return this.popState(),this.pushState(`STYLEDEF_STYLES`),46;case 32:return this.popState(),47;case 33:return this.pushState(`SCALE`),17;case 34:return 18;case 35:this.popState();break;case 36:this.pushState(`STATE`);break;case 37:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 39:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),27;case 40:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 41:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 42:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),27;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState(`STATE_STRING`);break;case 48:return this.pushState(`STATE_ID`),`AS`;case 49:return i()?(this.popState(),`ID`):void 0;case 50:this.popState();break;case 51:return`STATE_DESCR`;case 52:throw Error(`Error: State name must be a single word. Found: "`+t.yytext.trim()+`"`);case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState(`struct`),20;case 56:return this.popState(),21;case 57:break;case 58:return this.begin(`NOTE`),29;case 59:return this.popState(),this.pushState(`NOTE_ID`),59;case 60:return this.popState(),this.pushState(`NOTE_ID`),60;case 61:this.popState(),this.pushState(`FLOATING_NOTE`);break;case 62:return this.popState(),this.pushState(`FLOATING_NOTE_ID`),`AS`;case 63:break;case 64:return`NOTE_TEXT`;case 65:return i()?(this.popState(),`ID`):void 0;case 66:return i()?(this.popState(),this.pushState(`NOTE_TEXT`),24):void 0;case 67:return this.popState(),t.yytext=t.yytext.substr(2).trim(),31;case 68:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),31;case 69:case 70:return 6;case 71:return 16;case 72:return 57;case 73:return i()?24:void 0;case 74:return t.yytext=t.yytext.trim(),14;case 75:return 15;case 76:return 28;case 77:return 58;case 78:return 5;case 79:return`INVALID`}},`anonymous`),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,/^(?:[\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,/^(?:\w+\s+\w+.*?\{)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/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]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54,55],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}}})();function P(){this.yy={}}return S(P,`Parser`),P.prototype=N,N.Parser=P,new P})();T.parser=T;var E=T,D=`TB`,O=`TB`,k=`dir`,A=`state`,j=`root`,M=`relation`,N=`classDef`,P=`style`,ee=`applyClass`,F=`default`,te=`divider`,ne=`fill:none`,re=`fill: #333`,ie=`c`,I=`markdown`,ae=`normal`,L=`rect`,R=`rectWithTitle`,oe=`stateStart`,se=`stateEnd`,z=`divider`,ce=`roundedWithTitle`,le=`note`,ue=`noteGroup`,B=`statediagram`,de=`${B}-state`,V=`transition`,fe=`note`,pe=`${V} note-edge`,me=`${B}-${fe}`,he=`${B}-cluster`,ge=`${B}-cluster-alt`,H=`parent`,_e=`note`,ve=`state`,U=`----`,ye=`${U}${_e}`,be=`${U}${H}`,W=new Map,G=new Map,K=0,xe=0,q=new Map,Se=S((e,t,n,r)=>{if(e===z&&n?.id!==void 0&&q.has(n.id)){let e=q.get(n.id);return q.set(t,e),e}let i=xe++,a=r?void 0:i;return q.set(t,a),a},`colorSlotFor`);function J(e=``,t=0,n=``,r=U){return`${ve}-${e}${n!==null&&n.length>0?`${r}${n}`:``}-${t}`}S(J,`stateDomId`);var Ce=S((e,t,n,r,i,a,o,s)=>{d.trace(`items`,t),t.forEach(t=>{switch(t.stmt){case A:case F:X(e,t,n,r,i,a,o,s);break;case M:{X(e,t.state1,n,r,i,a,o,s),X(e,t.state2,n,r,i,a,o,s);let c=o===`neo`,l={id:`edge`+K,start:t.state1.id,end:t.state2.id,arrowhead:`normal`,arrowTypeEnd:c?`arrow_barb_neo`:`arrow_barb`,style:ne,labelStyle:``,label:C.sanitizeText(t.description??``,m()),arrowheadStyle:re,labelpos:ie,labelType:I,thickness:ae,classes:V,look:o};i.push(l),K++}}})},`setupDoc`),we=S((e,t=O)=>{let n=t;if(e.doc)for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`);function Y(e,t,n){if(!t.id||t.id===`</join></fork>`||t.id===`</choice>`)return;t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(` `).forEach(e=>{let r=n.get(e);r&&(t.cssCompiledStyles=[...t.cssCompiledStyles??[],...r.styles])}));let r=G.get(t.id);r?Object.assign(r,t):(G.set(t.id,t),e.push(t))}S(Y,`insertOrUpdateNode`);function Te(e){return e?.classes?.join(` `)??``}S(Te,`getClassesFromDbInfo`);function Ee(e){return e?.styles??[]}S(Ee,`getStylesFromDbInfo`);var X=S((t,n,r,i,a,o,s,c)=>{let l=n.id,u=r.get(l),f=Te(u),p=Ee(u),h=m(),g=f.trim()!==``||p.length>0;if(d.info(`dataFetcher parsedItem`,n,u,p),l!==`root`){let r=L;n.start===!0?r=oe:n.start===!1&&(r=se),n.type!==F&&(r=n.type),W.get(l)||W.set(l,{id:l,shape:r,description:C.sanitizeText(l,h),cssClasses:`${f} ${de}`,cssStyles:p});let u=W.get(l);n.description&&(Array.isArray(u.description)?(u.shape=R,u.description.push(n.description)):u.description?.length&&u.description.length>0?(u.shape=R,u.description=u.description===l?[n.description]:[u.description,n.description]):(u.shape=L,u.description=n.description),u.description=C.sanitizeTextOrArray(u.description,h)),u.description?.length===1&&u.shape===R&&(u.shape=u.type===`group`?ce:L),!u.type&&n.doc&&(d.info(`Setting cluster for XCX`,l,we(n)),u.type=`group`,u.isGroup=!0,u.dir=we(n),u.shape=n.type===te?z:ce,u.colorIndex=Se(u.shape,l,t,g),u.cssClasses=`${u.cssClasses} ${he} ${o?ge:``}`);let m={labelStyle:``,shape:u.shape,label:u.description,cssClasses:u.cssClasses,cssCompiledStyles:[],cssStyles:u.cssStyles,id:l,dir:u.dir,domId:J(l,K),type:u.type,isGroup:u.type===`group`,colorIndex:u.colorIndex,padding:8,rx:10,ry:10,look:s,labelType:`markdown`};if(m.shape===z&&(m.label=``),t&&t.id!==`root`&&!e(l,t.id,e=>G.get(e)?.parentId)&&(d.trace(`Setting node `,l,` to be child of its parent `,t.id),m.parentId=t.id),m.centerLabel=!0,n.note){let t={labelStyle:``,shape:le,label:n.note.text,labelType:`markdown`,cssClasses:me,cssStyles:[],cssCompiledStyles:[],id:l+ye+`-`+K,domId:J(l,K,_e),type:`node`,isGroup:!1,padding:h.flowchart?.padding,look:s,position:n.note.position},r=l+be,o={labelStyle:``,shape:ue,label:n.note.text,cssClasses:u.cssClasses,cssStyles:[],id:l+be,domId:J(l,K,H),type:`group`,isGroup:!0,padding:16,look:s,position:n.note.position};K++,o.id=r,Y(i,o,c),e(t.id,r,e=>G.get(e)?.parentId)||(t.parentId=r),Y(i,t,c),Y(i,m,c);let d=l,f=t.id;n.note.position===`left of`&&(d=t.id,f=l),a.push({id:d+`-`+f,start:d,end:f,arrowhead:`none`,arrowTypeEnd:``,style:ne,labelStyle:``,classes:pe,pattern:`dashed`,arrowheadStyle:re,labelpos:ie,labelType:I,thickness:ae,look:s})}else Y(i,m,c)}n.doc&&(d.trace(`Adding nodes children `),Ce(n,n.doc,r,i,a,!o,s,c))},`dataFetcher`),De=S(()=>{W.clear(),G.clear(),K=0,xe=0,q.clear()},`reset`),Oe=S((e,t=O)=>{if(!e.doc)return t;let n=t;for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`),ke={getClasses:S(function(e,t){return t.db.getClasses()},`getClasses`),draw:S(async function(e,r,i,a){d.info(`REF0:`),d.info(`Drawing state diagram (v2)`,r);let{securityLevel:o,state:s,layout:c}=m();a.db.extract(a.db.getRootDocV2());let l=a.db.getData(),u=t(r,o);l.type=a.type,l.layoutAlgorithm=x(c),l.nodeSpacing=s?.nodeSpacing||50,l.rankSpacing=s?.rankSpacing||50,l.markers=m().look===`neo`?[`barbNeo`]:[`barb`],l.diagramId=r,await _(l,u);try{(typeof a.db.getLinks==`function`?a.db.getLinks():new Map).forEach((e,t)=>{let n=typeof t==`string`?t:typeof t?.id==`string`?t.id:``,r=l.nodes.find(e=>e.id===n);if(!n){d.warn(`⚠️ Invalid or missing stateId from key:`,JSON.stringify(t));return}let i=u.node()?.querySelectorAll(`g.node, g.rough-node`),a;if(i?.forEach(e=>{let t=e.textContent?.trim();(e.id===r?.domId||t===n)&&(a=e)}),!a){d.warn(`⚠️ Could not find node matching text:`,n);return}let o=a.parentNode;if(!o){d.warn(`⚠️ Node has no parent, cannot wrap:`,n);return}let s=document.createElementNS(`http://www.w3.org/2000/svg`,`a`),c=e.url.replace(/^"+|"+$/g,``);if(s.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,c),s.setAttribute(`target`,`_blank`),e.tooltip){let t=e.tooltip.replace(/^"+|"+$/g,``);s.setAttribute(`title`,t),a.setAttribute(`title`,t)}o.replaceChild(s,a),s.appendChild(a),d.info(`🔗 Wrapped node in <a> tag for:`,n,e.url)})}catch(e){d.error(`❌ Error injecting clickable links:`,e)}b.insertTitle(u,`statediagramTitleText`,s?.titleTopMargin??25,a.db.getDiagramTitle()),n(u,8,B,s?.useMaxWidth??!0)},`draw`),getDir:Oe},Z={START_NODE:`[*]`,START_TYPE:`start`,END_NODE:`[*]`,END_TYPE:`end`,COLOR_KEYWORD:`color`,FILL_KEYWORD:`fill`,BG_FILL:`bgFill`,STYLECLASS_SEP:`,`},Q=S(()=>new Map,`newClassesList`),Ae=S(()=>({relations:[],states:new Map,documents:{}}),`newDoc`),$=S(e=>JSON.parse(JSON.stringify(e)),`clone`),je=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=Q(),this.documents={root:Ae()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.funs=[],this.getAccTitle=i,this.setAccTitle=f,this.getAccDescription=p,this.setAccDescription=l,this.setDiagramTitle=r,this.getDiagramTitle=o,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),this.bindFunctions=this.bindFunctions.bind(this)}static{S(this,`StateDB`)}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(e){this.clear(!0);for(let t of Array.isArray(e)?e:e.doc)switch(t.stmt){case A:this.addState(t.id.trim(),t.type,t.doc,t.description,t.note);break;case M:this.addRelation(t.state1,t.state2,t.description);break;case N:this.addStyleClass(t.id.trim(),t.classes);break;case P:this.handleStyleDef(t);break;case ee:this.setCssClass(t.id.trim(),t.styleClass);break;case`click`:this.addLink(t.id,t.url,t.tooltip)}let t=this.getStates(),n=m();De(),X(void 0,this.getRootDocV2(),t,this.nodes,this.edges,!0,n.look,this.classes);for(let e of this.nodes)if(Array.isArray(e.label)){if(e.description=e.label.slice(1),e.isGroup&&e.description.length>0)throw Error(`Group nodes can only have label. Remove the additional description for node [${e.id}]`);e.label=e.label[0]}}handleStyleDef(e){let t=e.id.trim().split(`,`),n=e.styleClass.split(`,`);for(let e of t){let t=this.getState(e);if(!t){let n=e.trim();this.addState(n),t=this.getState(n)}t&&(t.styles=n.map(e=>e.replace(/;/g,``)?.trim()))}}setRootDoc(e){d.info(`Setting root doc`,e),this.rootDoc=e,this.version===1?this.extract(e):this.extract(this.getRootDocV2())}docTranslator(e,t,n){if(t.stmt===M){this.docTranslator(e,t.state1,!0),this.docTranslator(e,t.state2,!1);return}if(t.stmt===A&&(t.id===Z.START_NODE?(t.id=e.id+(n?`_start`:`_end`),t.start=n):t.id=t.id.trim()),t.stmt!==j&&t.stmt!==A||!t.doc)return;let r=[],i=[];for(let e of t.doc)if(e.type===te){let t=$(e);t.doc=$(i),r.push(t),i=[]}else i.push(e);if(r.length>0&&i.length>0){let e={stmt:A,id:c(),type:`divider`,doc:$(i)};r.push($(e)),t.doc=r}t.doc.forEach(e=>this.docTranslator(t,e,!0))}getRootDocV2(){return this.docTranslator({id:j,stmt:j},{id:j,stmt:j,doc:this.rootDoc},!0),{id:j,doc:this.rootDoc}}addState(e,t=F,n=void 0,r=void 0,i=void 0,a=void 0,o=void 0,s=void 0){let c=e?.trim();if(!this.currentDocument.states.has(c))d.info(`Adding state `,c,r),this.currentDocument.states.set(c,{stmt:A,id:c,descriptions:[],type:t,doc:n,note:i,classes:[],styles:[],textStyles:[]});else{let e=this.currentDocument.states.get(c);if(!e)throw Error(`State not found: ${c}`);e.doc||=n,e.type||=t}if(r&&(d.info(`Setting state description`,c,r),(Array.isArray(r)?r:[r]).forEach(e=>this.addDescription(c,e.trim()))),i){let e=this.currentDocument.states.get(c);if(!e)throw Error(`State not found: ${c}`);e.note=i,e.note.text=C.sanitizeText(e.note.text,m())}a&&(d.info(`Setting state classes`,c,a),(Array.isArray(a)?a:[a]).forEach(e=>this.setCssClass(c,e.trim()))),o&&(d.info(`Setting state styles`,c,o),(Array.isArray(o)?o:[o]).forEach(e=>this.setStyle(c,e.trim()))),s&&(d.info(`Setting state styles`,c,o),(Array.isArray(s)?s:[s]).forEach(e=>this.setTextStyle(c,e.trim())))}clear(e){this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:Ae()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=Q(),e||(this.links=new Map,h())}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){d.info(`Documents = `,this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,t,n){this.links.set(e,{url:t,tooltip:n}),d.warn(`Adding link`,e,t,n)}getLinks(){return this.links}startIdIfNeeded(e=``){return e===Z.START_NODE?(this.startEndCount++,`${Z.START_TYPE}${this.startEndCount}`):e}startTypeIfNeeded(e=``,t=F){return e===Z.START_NODE?Z.START_TYPE:t}endIdIfNeeded(e=``){return e===Z.END_NODE?(this.startEndCount++,`${Z.END_TYPE}${this.startEndCount}`):e}endTypeIfNeeded(e=``,t=F){return e===Z.END_NODE?Z.END_TYPE:t}addRelationObjs(e,t,n=``){let r=this.startIdIfNeeded(e.id.trim()),i=this.startTypeIfNeeded(e.id.trim(),e.type),a=this.startIdIfNeeded(t.id.trim()),o=this.startTypeIfNeeded(t.id.trim(),t.type);this.addState(r,i,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(a,o,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.currentDocument.relations.push({id1:r,id2:a,relationTitle:C.sanitizeText(n,m())})}addRelation(e,t,n){if(typeof e==`object`&&typeof t==`object`)this.addRelationObjs(e,t,n);else if(typeof e==`string`&&typeof t==`string`){let r=this.startIdIfNeeded(e.trim()),i=this.startTypeIfNeeded(e),a=this.endIdIfNeeded(t.trim()),o=this.endTypeIfNeeded(t);this.addState(r,i),this.addState(a,o),this.currentDocument.relations.push({id1:r,id2:a,relationTitle:n?C.sanitizeText(n,m()):void 0})}}addDescription(e,t){let n=this.currentDocument.states.get(e),r=t.startsWith(`:`)?t.replace(`:`,``).trim():t;n?.descriptions?.push(C.sanitizeText(r,m()))}cleanupLabel(e){return e.startsWith(`:`)?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,t=``){this.classes.has(e)||this.classes.set(e,{id:e,styles:[],textStyles:[]});let n=this.classes.get(e);t&&n&&t.split(Z.STYLECLASS_SEP).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(Z.COLOR_KEYWORD).exec(e)){let e=t.replace(Z.FILL_KEYWORD,Z.BG_FILL).replace(Z.COLOR_KEYWORD,Z.FILL_KEYWORD);n.textStyles.push(e)}n.styles.push(t)})}getClasses(){return this.classes}setupToolTips(e){let t=w();y(e).select(`svg`).selectAll(`g.node, g.rough-node`).on(`mouseover`,e=>{let n=y(e.currentTarget),r=n.attr(`title`);if(r===null)return;let i=e.currentTarget?.getBoundingClientRect();t.transition().duration(200).style(`opacity`,`.9`),t.style(`left`,window.scrollX+i.left+(i.right-i.left)/2+`px`).style(`top`,window.scrollY+i.bottom+`px`),t.html(v.sanitize(r)),n.classed(`hover`,!0)}).on(`mouseout`,e=>{t.transition().duration(500).style(`opacity`,0),y(e.currentTarget).classed(`hover`,!1)})}setCssClass(e,t){e.split(`,`).forEach(e=>{let n=this.getState(e);if(!n){let t=e.trim();this.addState(t),n=this.getState(t)}n?.classes?.push(t)})}setStyle(e,t){this.getState(e)?.styles?.push(t)}setTextStyle(e,t){this.getState(e)?.textStyles?.push(t)}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirectionStatement(){return this.rootDoc.find(e=>e.stmt===k)}getDirection(){return this.getDirectionStatement()?.value??D}setDirection(e){let t=this.getDirectionStatement();t?t.value=e:this.rootDoc.unshift({stmt:k,value:e})}trimColon(e){return e.startsWith(`:`)?e.slice(1).trim():e.trim()}getData(){let e=m();for(let t of this.nodes)t.wrappingWidth??=e.state?.wrappingWidth,t.isGroup||(t.minWidth??=e.state?.minNodeWidth);return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:Oe(this.getRootDocV2())}}getConfig(){return m().state}},Me=S(e=>{let{theme:t,bkgColorArray:n,borderColorArray:r}=e;if(!a(t,r))return``;let i=g(e.look),o=s(n),c=``;for(let e=0;e<u(r);e++){let t=r[e],a=o?`fill: ${n[e%n.length]};`:``,s=`[data-look="${i}"][data-color-id="color-${e}"]`;c+=`
|
|
7
|
+
|
|
8
|
+
/* The title strip: \`rect.outer\` spans the whole composite and \`rect.inner\` covers
|
|
9
|
+
the body, so what stays visible of \`outer\` is the band behind the label. */
|
|
10
|
+
${s}.statediagram-cluster rect.outer {
|
|
11
|
+
stroke: ${t};
|
|
12
|
+
${a}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
${s}.statediagram-cluster rect.inner {
|
|
16
|
+
stroke: ${t};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Concurrency regions. Siblings of one composite share a slot, so a divided composite
|
|
20
|
+
reads as one thing split into parts rather than as several composites. */
|
|
21
|
+
${s}.statediagram-cluster rect.divider {
|
|
22
|
+
stroke: ${t};
|
|
23
|
+
${a}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* handDrawn draws the same container as roughjs shapes rather than plain rects, so it
|
|
27
|
+
needs its own rules. \`roundedWithTitle\` and \`divider\` name those groups \`outer\`,
|
|
28
|
+
\`inner\` and \`divider\` to match the classic branch, which is what lets these
|
|
29
|
+
discriminate -- a bare \`.statediagram-cluster path\` rule reached the body as well and
|
|
30
|
+
tinted the whole composite, losing \`compositeBackground\` and diverging from what
|
|
31
|
+
classic and neo do.
|
|
32
|
+
|
|
33
|
+
roughjs emits two paths per shape and marks them: the filled shape carries
|
|
34
|
+
\`stroke="none"\` and the sketched outline carries \`fill="none"\`. Splitting on that is
|
|
35
|
+
what keeps \`fill\` off the outline -- a rough outline is open squiggles, not a closed
|
|
36
|
+
region, so filling it produces smears -- and keeps \`stroke\` off the fill shape, which
|
|
37
|
+
would otherwise gain an edge it was drawn without. */
|
|
38
|
+
${s}.statediagram-cluster .outer path[stroke='none'] {
|
|
39
|
+
${a}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
${s}.statediagram-cluster .outer path[fill='none'] {
|
|
43
|
+
stroke: ${t};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* No \`.inner\` rule on purpose. The body shape is left entirely alone under handDrawn,
|
|
47
|
+
where a rect's \`inner\` counterpart cannot be recoloured safely: roughjs draws a
|
|
48
|
+
hachure fill as *stroked* lines, so its fill paths carry \`fill="none"\` exactly like
|
|
49
|
+
the outline and no selector separates them. An \`.inner\` stroke rule therefore
|
|
50
|
+
repainted the hatching of every alt composite in the palette colour instead of
|
|
51
|
+
leaving it on \`altBackground\`. The container still reads as palette-coloured: the
|
|
52
|
+
\`outer\` shape spans the whole composite, so its outline already frames the body. */
|
|
53
|
+
|
|
54
|
+
/* Regions split the same way, which is why \`divider\` fills solid rather than taking
|
|
55
|
+
roughjs's default hachure -- see the note on that call. Hatched, both of its paths
|
|
56
|
+
carried \`fill="none"\` and these two rules degenerated: the tint matched nothing and
|
|
57
|
+
the border rule repainted the hatching. */
|
|
58
|
+
${s}.statediagram-cluster .divider path[stroke='none'] {
|
|
59
|
+
${a}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
${s}.statediagram-cluster .divider path[fill='none'] {
|
|
63
|
+
stroke: ${t};
|
|
64
|
+
}
|
|
65
|
+
`}return c},`genColor`),Ne={parser:E,get db(){return new je(2)},renderer:ke,styles:S(e=>`
|
|
66
|
+
${Me(e)}
|
|
67
|
+
defs [id$="-barbEnd"] {
|
|
68
|
+
fill: ${e.transitionColor};
|
|
69
|
+
stroke: ${e.transitionColor};
|
|
70
|
+
}
|
|
71
|
+
g.stateGroup text {
|
|
72
|
+
fill: ${e.nodeBorder};
|
|
73
|
+
stroke: none;
|
|
74
|
+
font-size: 10px;
|
|
75
|
+
}
|
|
76
|
+
g.stateGroup text {
|
|
77
|
+
fill: ${e.textColor};
|
|
78
|
+
stroke: none;
|
|
79
|
+
font-size: 10px;
|
|
80
|
+
|
|
81
|
+
}
|
|
82
|
+
g.stateGroup .state-title {
|
|
83
|
+
font-weight: bolder;
|
|
84
|
+
fill: ${e.stateLabelColor};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
g.stateGroup rect {
|
|
88
|
+
fill: ${e.mainBkg};
|
|
89
|
+
stroke: ${e.nodeBorder};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
g.stateGroup line {
|
|
93
|
+
stroke: ${e.lineColor};
|
|
94
|
+
stroke-width: ${e.strokeWidth||1};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.transition {
|
|
98
|
+
stroke: ${e.transitionColor};
|
|
99
|
+
stroke-width: ${e.strokeWidth||1};
|
|
100
|
+
fill: none;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.stateGroup .composit {
|
|
104
|
+
fill: ${e.background};
|
|
105
|
+
border-bottom: 1px
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.stateGroup .alt-composit {
|
|
109
|
+
fill: #e0e0e0;
|
|
110
|
+
border-bottom: 1px
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.state-note {
|
|
114
|
+
stroke: ${e.noteBorderColor};
|
|
115
|
+
fill: ${e.noteBkgColor};
|
|
116
|
+
|
|
117
|
+
text {
|
|
118
|
+
fill: ${e.noteTextColor};
|
|
119
|
+
stroke: none;
|
|
120
|
+
font-size: 10px;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.stateLabel .box {
|
|
125
|
+
stroke: none;
|
|
126
|
+
stroke-width: 0;
|
|
127
|
+
fill: ${e.mainBkg};
|
|
128
|
+
opacity: 0.5;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.edgeLabel .label rect {
|
|
132
|
+
fill: ${e.labelBackgroundColor};
|
|
133
|
+
opacity: 0.5;
|
|
134
|
+
}
|
|
135
|
+
.edgeLabel {
|
|
136
|
+
background-color: ${e.edgeLabelBackground};
|
|
137
|
+
p {
|
|
138
|
+
background-color: ${e.edgeLabelBackground};
|
|
139
|
+
}
|
|
140
|
+
rect {
|
|
141
|
+
opacity: 0.5;
|
|
142
|
+
background-color: ${e.edgeLabelBackground};
|
|
143
|
+
fill: ${e.edgeLabelBackground};
|
|
144
|
+
}
|
|
145
|
+
text-align: center;
|
|
146
|
+
}
|
|
147
|
+
.edgeLabel .label text {
|
|
148
|
+
fill: ${e.transitionLabelColor||e.tertiaryTextColor};
|
|
149
|
+
}
|
|
150
|
+
.label div .edgeLabel {
|
|
151
|
+
color: ${e.transitionLabelColor||e.tertiaryTextColor};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.stateLabel text {
|
|
155
|
+
fill: ${e.stateLabelColor};
|
|
156
|
+
font-size: 10px;
|
|
157
|
+
font-weight: bold;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.node circle.state-start {
|
|
161
|
+
fill: ${e.specialStateColor};
|
|
162
|
+
stroke: ${e.specialStateColor};
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.node .fork-join {
|
|
166
|
+
fill: ${e.specialStateColor};
|
|
167
|
+
stroke: ${e.specialStateColor};
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.node circle.state-end {
|
|
171
|
+
fill: ${e.innerEndBackground};
|
|
172
|
+
stroke: ${e.background};
|
|
173
|
+
stroke-width: 1.5
|
|
174
|
+
}
|
|
175
|
+
.end-state-inner {
|
|
176
|
+
fill: ${e.compositeBackground||e.background};
|
|
177
|
+
// stroke: ${e.background};
|
|
178
|
+
stroke-width: 1.5
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.node rect {
|
|
182
|
+
fill: ${e.stateBkg||e.mainBkg};
|
|
183
|
+
stroke: ${e.stateBorder||e.nodeBorder};
|
|
184
|
+
stroke-width: ${e.strokeWidth||1}px;
|
|
185
|
+
}
|
|
186
|
+
.node polygon {
|
|
187
|
+
fill: ${e.mainBkg};
|
|
188
|
+
stroke: ${e.stateBorder||e.nodeBorder};;
|
|
189
|
+
stroke-width: ${e.strokeWidth||1}px;
|
|
190
|
+
}
|
|
191
|
+
[id$="-barbEnd"] {
|
|
192
|
+
fill: ${e.lineColor};
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.statediagram-cluster rect {
|
|
196
|
+
fill: ${e.compositeTitleBackground};
|
|
197
|
+
stroke: ${e.stateBorder||e.nodeBorder};
|
|
198
|
+
stroke-width: ${e.strokeWidth||1}px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.cluster-label, .nodeLabel {
|
|
202
|
+
color: ${e.stateLabelColor};
|
|
203
|
+
// line-height: 1;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.statediagram-cluster rect.outer {
|
|
207
|
+
rx: 5px;
|
|
208
|
+
ry: 5px;
|
|
209
|
+
}
|
|
210
|
+
.statediagram-state .divider {
|
|
211
|
+
stroke: ${e.stateBorder||e.nodeBorder};
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.statediagram-state .title-state {
|
|
215
|
+
rx: 5px;
|
|
216
|
+
ry: 5px;
|
|
217
|
+
}
|
|
218
|
+
.statediagram-cluster.statediagram-cluster .inner {
|
|
219
|
+
fill: ${e.compositeBackground||e.background};
|
|
220
|
+
}
|
|
221
|
+
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
222
|
+
fill: ${e.altBackground?e.altBackground:`#efefef`};
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.statediagram-cluster .inner {
|
|
226
|
+
rx:0;
|
|
227
|
+
ry:0;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.statediagram-state rect.basic {
|
|
231
|
+
rx: 5px;
|
|
232
|
+
ry: 5px;
|
|
233
|
+
}
|
|
234
|
+
.statediagram-state rect.divider {
|
|
235
|
+
stroke-dasharray: 10,10;
|
|
236
|
+
fill: ${e.altBackground?e.altBackground:`#efefef`};
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.note-edge {
|
|
240
|
+
stroke-dasharray: 5;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.statediagram-note rect {
|
|
244
|
+
fill: ${e.noteBkgColor};
|
|
245
|
+
stroke: ${e.noteBorderColor};
|
|
246
|
+
stroke-width: 1px;
|
|
247
|
+
rx: 0;
|
|
248
|
+
ry: 0;
|
|
249
|
+
}
|
|
250
|
+
.statediagram-note rect {
|
|
251
|
+
fill: ${e.noteBkgColor};
|
|
252
|
+
stroke: ${e.noteBorderColor};
|
|
253
|
+
stroke-width: 1px;
|
|
254
|
+
rx: 0;
|
|
255
|
+
ry: 0;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.statediagram-note text {
|
|
259
|
+
fill: ${e.noteTextColor};
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.statediagram-note .nodeLabel {
|
|
263
|
+
color: ${e.noteTextColor};
|
|
264
|
+
}
|
|
265
|
+
.statediagram .edgeLabel {
|
|
266
|
+
color: red; // ${e.noteTextColor};
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
[id$="-dependencyStart"], [id$="-dependencyEnd"] {
|
|
270
|
+
fill: ${e.lineColor};
|
|
271
|
+
stroke: ${e.lineColor};
|
|
272
|
+
stroke-width: ${e.strokeWidth||1};
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.statediagramTitleText {
|
|
276
|
+
text-anchor: middle;
|
|
277
|
+
font-size: 18px;
|
|
278
|
+
fill: ${e.textColor};
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
[data-look="neo"].statediagram-cluster rect {
|
|
282
|
+
fill: ${e.mainBkg};
|
|
283
|
+
stroke: ${e.useGradient?`url(`+e.svgId+`-gradient)`:e.stateBorder||e.nodeBorder};
|
|
284
|
+
stroke-width: ${e.strokeWidth??1};
|
|
285
|
+
}
|
|
286
|
+
[data-look="neo"].statediagram-cluster rect.outer {
|
|
287
|
+
rx: ${e.radius}px;
|
|
288
|
+
ry: ${e.radius}px;
|
|
289
|
+
filter: ${e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${e.svgId}-drop-shadow)`):`none`}
|
|
290
|
+
}
|
|
291
|
+
`,`getStyles`),init:S(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{Ne as diagram};
|