orbitchat 1.0.3 → 2.0.1
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/README.md +2 -2
- package/dist/assets/api-BHF9IxKN.js +1 -0
- package/dist/assets/api-BK67K_W_.js +2 -0
- package/dist/assets/arc-CVHSP1cu-BRo_NEw5.js +1 -0
- package/dist/assets/{blockDiagram-c4efeb88-CLLcV2XJ-CMXih17a.js → blockDiagram-c4efeb88-BF2cqC5E-BkXQGexK.js} +8 -8
- package/dist/assets/{c4Diagram-c83219d4-Bq976NrW-DFsl6C0Q.js → c4Diagram-c83219d4-D9AJbzWz-CNYGOFES.js} +4 -4
- package/dist/assets/channel-BYhLgIow-BRybLlZc.js +1 -0
- package/dist/assets/{classDiagram-beda092f-7G8Y9ObP-BEJoZQBZ.js → classDiagram-beda092f-B88VjdUG-BbwMvv2v.js} +2 -2
- package/dist/assets/{classDiagram-v2-2358418a-CYz_KHej-Bu8C3_BF.js → classDiagram-v2-2358418a-BPyGCNOs-Cbd2QXtY.js} +2 -2
- package/dist/assets/clone-C0MdfhAf-BMHvCdCo.js +1 -0
- package/dist/assets/{createText-1719965b-Cbn6MBZp-HdNLk45j.js → createText-1719965b-D5GExXUl-Ckz8tHz2.js} +2 -2
- package/dist/assets/edges-96097737-BnGLzlID-DglIvYsr.js +4 -0
- package/dist/assets/{erDiagram-0228fc6a-Bj5SeSQq-CsjVaWYC.js → erDiagram-0228fc6a-DNX6_tUA-DhPLx33M.js} +4 -4
- package/dist/assets/{flowDb-c6c81e3f-CaVKc_SB-DZrfNATF.js → flowDb-c6c81e3f-DFROkPpA-B3HlgleO.js} +3 -3
- package/dist/assets/{flowDiagram-50d868cf-BcT1Qv7E-u8dx26BM.js → flowDiagram-50d868cf-Cmwizbui-BeKU27fc.js} +3 -3
- package/dist/assets/flowDiagram-v2-4f6560a1-LfQOA08G-CEF5LezR.js +1 -0
- package/dist/assets/{flowchart-elk-definition-6af322e1-CIF5zs_e-Bgt8PjTx.js → flowchart-elk-definition-6af322e1-CNwLXR6A-DOFVWWCc.js} +1 -1
- package/dist/assets/{ganttDiagram-a2739b55-wX4z0bcl-BMkD98_f.js → ganttDiagram-a2739b55-7uphPAFV-BP-Pmtkl.js} +3 -3
- package/dist/assets/{gitGraphDiagram-82fe8481-BTMrrqSM-I1Bmvtxc.js → gitGraphDiagram-82fe8481-DRDypp_x-D9EVaeSh.js} +5 -5
- package/dist/assets/{graph-Bc6U-Oet-3YUGkDrJ.js → graph-CvRY9YIM-BSWPV9Nr.js} +1 -1
- package/dist/assets/index-5325376f-D7k5u-pg-BkjFLQrR.js +1 -0
- package/dist/assets/index-BocEneU2.js +983 -0
- package/dist/assets/index-CfrvHiM_.css +1 -0
- package/dist/assets/{infoDiagram-8eee0895-CGdieI3d-CIzc0OGw.js → infoDiagram-8eee0895-BcQBWTwp-B_L_58_Z.js} +3 -3
- package/dist/assets/{journeyDiagram-c64418c1-D741T7Vx-qfoqs_hr.js → journeyDiagram-c64418c1-CN5eh0M6-Cblzjpty.js} +3 -3
- package/dist/assets/layout-DSZZaifl-Dg6wRbVD.js +1 -0
- package/dist/assets/{mindmap-definition-8da855dc-DYXCEYTW-DdvnL6p9.js → mindmap-definition-8da855dc-BIK1yn9--Jo-NTSHi.js} +1 -1
- package/dist/assets/{pieDiagram-a8764435-56nwm0bs-BpTsGhJJ.js → pieDiagram-a8764435-ikNRxsHY-DMvtPLAT.js} +5 -5
- package/dist/assets/{quadrantDiagram-1e28029f-BPDrTwrc-DD_xkuIu.js → quadrantDiagram-1e28029f-jvSP5gnQ-6wFt9EAe.js} +4 -4
- package/dist/assets/{requirementDiagram-08caed73-ErOyM087-CKQzZzTi.js → requirementDiagram-08caed73-FO_Z83qK-B12P_I-Z.js} +5 -5
- package/dist/assets/{sankeyDiagram-a04cb91d-Dr_h6k2R-DO_fI4J5.js → sankeyDiagram-a04cb91d-DN0iWjES-D5WnyMp5.js} +4 -4
- package/dist/assets/{sequenceDiagram-c5b8d532-wtK0ihCE-DCUXgjj-.js → sequenceDiagram-c5b8d532-CGsjpH84-dYgkkktm.js} +1 -1
- package/dist/assets/{stateDiagram-1ecb1508-D6rDYnWS-Bj3UWumS.js → stateDiagram-1ecb1508-zuhKSs9y-jJmEXeoz.js} +1 -1
- package/dist/assets/stateDiagram-v2-c2b004d7-CNnNRi3z-D_BHzNsc.js +1 -0
- package/dist/assets/{styles-b4e223ce-CPkoRhK8-Bn84ZqKn.js → styles-b4e223ce-BOk_k5Y1-BRehazjg.js} +3 -3
- package/dist/assets/{styles-ca3715f6-FCD4s0nN-BexUBZci.js → styles-ca3715f6-g0iC1zjD-137Q5E3Y.js} +4 -4
- package/dist/assets/{styles-d45a18b0-7fTS_K4G-BYM8_U5l.js → styles-d45a18b0-VfGWd52Q-CGigGBMU.js} +3 -3
- package/dist/assets/{svgDrawCommon-b86b1483-C9ebAubK-Kv8qCklh.js → svgDrawCommon-b86b1483-BnVJ45aa-DzmeVj2M.js} +1 -1
- package/dist/assets/{timeline-definition-faaaa080-C-TPmIif-BZmYoZoQ.js → timeline-definition-faaaa080-BpDBXry4-BFWV_D1Z.js} +4 -4
- package/dist/assets/{xychartDiagram-f5964ef8-Dy6Sev6Z-D-p_N-TM.js → xychartDiagram-f5964ef8-CvN7DIQW-DQ0y-Ye4.js} +4 -4
- package/dist/index.html +2 -2
- package/package.json +3 -3
- package/dist/assets/api-Cw0muHPX.js +0 -2
- package/dist/assets/api-DDfFAb3S.js +0 -2
- package/dist/assets/arc-hH97QygY-Dc60tMPx.js +0 -1
- package/dist/assets/channel-CSC8iKVS-B3buI7Pt.js +0 -1
- package/dist/assets/clone-vCPXKFeo-CwhyC9Xy.js +0 -1
- package/dist/assets/edges-96097737-XAH6P1yX-FQjO7zBz.js +0 -4
- package/dist/assets/flowDiagram-v2-4f6560a1-B0fti9Da-BEpPg0cM.js +0 -1
- package/dist/assets/index-5325376f-DCLsNwAa-DsLbLzAP.js +0 -1
- package/dist/assets/index-Cdetzrl0.css +0 -1
- package/dist/assets/index-D-8SZBhx.js +0 -966
- package/dist/assets/layout-BtHnec7v-BmEhz7Rk.js +0 -1
- package/dist/assets/stateDiagram-v2-c2b004d7-K0flL3uN-CfGxGnyr.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{j as ft,w as mt,x as Et,v as gt,y as bt,b as kt,g as Z,O as H,P as et,i as Ot,V as Rt,m as Nt,c as xt,o as Tt,W as At}from"./index-BocEneU2.js";import{K as Mt}from"./graph-CvRY9YIM-BSWPV9Nr.js";import{A as vt}from"./layout-DSZZaifl-Dg6wRbVD.js";const It=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function St(t){return typeof t=="string"&&It.test(t)}const T=[];for(let t=0;t<256;++t)T.push((t+256).toString(16).slice(1));function $t(t,e=0){return T[t[e+0]]+T[t[e+1]]+T[t[e+2]]+T[t[e+3]]+"-"+T[t[e+4]]+T[t[e+5]]+"-"+T[t[e+6]]+T[t[e+7]]+"-"+T[t[e+8]]+T[t[e+9]]+"-"+T[t[e+10]]+T[t[e+11]]+T[t[e+12]]+T[t[e+13]]+T[t[e+14]]+T[t[e+15]]}function Lt(t){if(!St(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function wt(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}const Dt="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Bt="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Ct(t,e,r){function d(l,p,h,c){var u;if(typeof l=="string"&&(l=wt(l)),typeof p=="string"&&(p=Lt(p)),((u=p)===null||u===void 0?void 0:u.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let f=new Uint8Array(16+l.length);if(f.set(p),f.set(l,p.length),f=r(f),f[6]=f[6]&15|e,f[8]=f[8]&63|128,h){c=c||0;for(let m=0;m<16;++m)h[c+m]=f[m];return h}return $t(f)}try{d.name=t}catch{}return d.DNS=Dt,d.URL=Bt,d}function Yt(t,e,r,d){switch(t){case 0:return e&r^~e&d;case 1:return e^r^d;case 2:return e&r^e&d^r&d;case 3:return e^r^d}}function rt(t,e){return t<<e|t>>>32-e}function Zt(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const h=unescape(encodeURIComponent(t));t=[];for(let c=0;c<h.length;++c)t.push(h.charCodeAt(c))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const d=t.length/4+2,l=Math.ceil(d/16),p=new Array(l);for(let h=0;h<l;++h){const c=new Uint32Array(16);for(let u=0;u<16;++u)c[u]=t[h*64+u*4]<<24|t[h*64+u*4+1]<<16|t[h*64+u*4+2]<<8|t[h*64+u*4+3];p[h]=c}p[l-1][14]=(t.length-1)*8/Math.pow(2,32),p[l-1][14]=Math.floor(p[l-1][14]),p[l-1][15]=(t.length-1)*8&4294967295;for(let h=0;h<l;++h){const c=new Uint32Array(80);for(let _=0;_<16;++_)c[_]=p[h][_];for(let _=16;_<80;++_)c[_]=rt(c[_-3]^c[_-8]^c[_-14]^c[_-16],1);let u=r[0],f=r[1],m=r[2],E=r[3],g=r[4];for(let _=0;_<80;++_){const I=Math.floor(_/20),D=rt(u,5)+Yt(I,f,m,E)+g+e[I]+c[_]>>>0;g=E,E=m,m=rt(f,30)>>>0,f=u,u=D}r[0]=r[0]+u>>>0,r[1]=r[1]+f>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+E>>>0,r[4]=r[4]+g>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}const Pt=Ct("v5",80,Zt);var at=function(){var t=function(A,i,o,n){for(o=o||{},n=A.length;n--;o[A[n]]=i);return o},e=[6,8,10,20,22,24,26,27,28],r=[1,10],d=[1,11],l=[1,12],p=[1,13],h=[1,14],c=[1,15],u=[1,21],f=[1,22],m=[1,23],E=[1,24],g=[1,25],_=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],I=[1,34],D=[27,28,46,47],P=[41,42,43,44,45],F=[17,34],B=[1,54],N=[1,53],M=[17,34,36,38],k={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(A,i,o,n,y,a,x){var s=a.length-1;switch(y){case 1:break;case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:n.addEntity(a[s-4]),n.addEntity(a[s-2]),n.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:n.addEntity(a[s-3]),n.addAttributes(a[s-3],a[s-1]);break;case 10:n.addEntity(a[s-2]);break;case 11:n.addEntity(a[s]);break;case 12:n.addEntity(a[s-6],a[s-4]),n.addAttributes(a[s-6],a[s-1]);break;case 13:n.addEntity(a[s-5],a[s-3]);break;case 14:n.addEntity(a[s-3],a[s-1]);break;case 15:case 16:this.$=a[s].trim(),n.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),n.setAccDescription(this.$);break;case 19:case 43:this.$=a[s];break;case 20:case 41:case 42:this.$=a[s].replace(/"/g,"");break;case 21:case 29:this.$=[a[s]];break;case 22:a[s].push(a[s-1]),this.$=a[s];break;case 23:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 24:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyTypeList:a[s]};break;case 25:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 26:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyTypeList:a[s-1],attributeComment:a[s]};break;case 27:case 28:case 31:this.$=a[s];break;case 30:a[s-2].push(a[s]),this.$=a[s-2];break;case 32:this.$=a[s].replace(/"/g,"");break;case 33:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 34:this.$=n.Cardinality.ZERO_OR_ONE;break;case 35:this.$=n.Cardinality.ZERO_OR_MORE;break;case 36:this.$=n.Cardinality.ONE_OR_MORE;break;case 37:this.$=n.Cardinality.ONLY_ONE;break;case 38:this.$=n.Cardinality.MD_PARENT;break;case 39:this.$=n.Identification.NON_IDENTIFYING;break;case 40:this.$=n.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:d,24:l,26:p,27:h,28:c},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:d,24:l,26:p,27:h,28:c},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:u,42:f,43:m,44:E,45:g}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(_,[2,19]),t(_,[2,20]),t(e,[2,4]),{11:29,27:h,28:c},{16:30,17:[1,31],29:32,30:33,34:I},{11:35,27:h,28:c},{40:36,46:[1,37],47:[1,38]},t(D,[2,34]),t(D,[2,35]),t(D,[2,36]),t(D,[2,37]),t(D,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:I},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:u,42:f,43:m,44:E,45:g},t(P,[2,39]),t(P,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(F,[2,23],{32:50,33:51,35:52,37:B,38:N}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(F,[2,24],{33:56,36:[1,57],38:N}),t(F,[2,25]),t(M,[2,29]),t(F,[2,32]),t(M,[2,31]),{16:58,17:[1,59],29:32,30:33,34:I},t(F,[2,26]),{35:60,37:B},{17:[1,61]},t(e,[2,13]),t(M,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(A,i){if(i.recoverable)this.trace(A);else{var o=new Error(A);throw o.hash=i,o}},parse:function(A){var i=this,o=[0],n=[],y=[null],a=[],x=this.table,s="",X=0,nt=0,dt=2,st=1,yt=a.slice.call(arguments,1),R=Object.create(this.lexer),K={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&(K.yy[V]=this.yy[V]);R.setInput(A,K.yy),K.yy.lexer=R,K.yy.parser=this,typeof R.yylloc>"u"&&(R.yylloc={});var J=R.yylloc;a.push(J);var pt=R.options&&R.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(){var Y;return Y=n.pop()||R.lex()||st,typeof Y!="number"&&(Y instanceof Array&&(n=Y,Y=n.pop()),Y=i.symbols_[Y]||Y),Y}for(var v,U,S,q,z={},j,C,ot,G;;){if(U=o[o.length-1],this.defaultActions[U]?S=this.defaultActions[U]:((v===null||typeof v>"u")&&(v=_t()),S=x[U]&&x[U][v]),typeof S>"u"||!S.length||!S[0]){var tt="";G=[];for(j in x[U])this.terminals_[j]&&j>dt&&G.push("'"+this.terminals_[j]+"'");R.showPosition?tt="Parse error on line "+(X+1)+`:
|
|
2
2
|
`+R.showPosition()+`
|
|
3
|
-
Expecting `+
|
|
3
|
+
Expecting `+G.join(", ")+", got '"+(this.terminals_[v]||v)+"'":tt="Parse error on line "+(X+1)+": Unexpected "+(v==st?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(tt,{text:R.match,token:this.terminals_[v]||v,line:R.yylineno,loc:J,expected:G})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+v);switch(S[0]){case 1:o.push(v),y.push(R.yytext),a.push(R.yylloc),o.push(S[1]),v=null,nt=R.yyleng,s=R.yytext,X=R.yylineno,J=R.yylloc;break;case 2:if(C=this.productions_[S[1]][1],z.$=y[y.length-C],z._$={first_line:a[a.length-(C||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(C||1)].first_column,last_column:a[a.length-1].last_column},pt&&(z._$.range=[a[a.length-(C||1)].range[0],a[a.length-1].range[1]]),q=this.performAction.apply(z,[s,nt,X,K.yy,S[1],y,a].concat(yt)),typeof q<"u")return q;C&&(o=o.slice(0,-1*C*2),y=y.slice(0,-1*C),a=a.slice(0,-1*C)),o.push(this.productions_[S[1]][0]),y.push(z.$),a.push(z._$),ot=x[o[o.length-2]][o[o.length-1]],o.push(ot);break;case 3:return!0}}return!0}},O=function(){var A={EOF:1,parseError:function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},setInput:function(i,o){return this.yy=o||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var o=i.length,n=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var y=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 a=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===y.length?this.yylloc.first_column:0)+y[y.length-n.length].length-n[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
5
5
|
`+o+"^"},test_match:function(i,o){var n,y,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),y=i[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],n=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var x in a)this[x]=a[x];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,o,n,y;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),x=0;x<a.length;x++)if(n=this._input.match(this.rules[a[x]]),n&&(!o||n[0].length>o[0].length)){if(o=n,y=x,this.options.backtrack_lexer){if(i=this.test_match(n,a[x]),i!==!1)return i;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(i=this.test_match(o,a[y]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var i=this.next();return i||this.lex()},begin:function(i){this.conditionStack.push(i)},popState:function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},pushState:function(i){this.begin(i)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(i,o,n,y){switch(n){case 0:return this.begin("acc_title"),22;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),24;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 10;case 8:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;case 14:return 36;case 15:break;case 16:return 37;case 17:return 34;case 18:return 34;case 19:return 38;case 20:break;case 21:return this.popState(),17;case 22:return o.yytext[0];case 23:return 18;case 24:return 19;case 25:return 41;case 26:return 43;case 27:return 43;case 28:return 43;case 29:return 41;case 30:return 41;case 31:return 42;case 32:return 42;case 33:return 42;case 34:return 42;case 35:return 42;case 36:return 43;case 37:return 42;case 38:return 43;case 39:return 44;case 40:return 44;case 41:return 44;case 42:return 44;case 43:return 41;case 44:return 42;case 45:return 43;case 46:return 45;case 47:return 46;case 48:return 47;case 49:return 47;case 50:return 46;case 51:return 46;case 52:return 46;case 53:return 27;case 54:return o.yytext[0];case 55:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}};return A}();k.lexer=O;function v(){this.yy={}}return v.prototype=k,k.Parser=v,new v}();at.parser=at;const Ft=at;let K={},it=[];const Kt={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},Wt={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},ht=function(t,e=void 0){return K[t]===void 0?(K[t]={attributes:[],alias:e},H.info("Added new entity :",t)):K[t]&&!K[t].alias&&e&&(K[t].alias=e,H.info(`Add alias '${e}' to entity '${t}'`)),K[t]},Ut=()=>K,zt=function(t,e){let r=ht(t),d;for(d=e.length-1;d>=0;d--)r.attributes.push(e[d]),H.debug("Added attribute ",e[d].attributeName)},Ht=function(t,e,r,d){let l={entityA:t,roleA:e,entityB:r,relSpec:d};it.push(l),H.debug("Added new relationship :",l)},Qt=()=>it,Xt=function(){K={},it=[],Nt()},Gt={Cardinality:Kt,Identification:Wt,getConfig:()=>Z().er,addEntity:ht,addAttributes:zt,getEntities:Ut,addRelationship:Ht,getRelationships:Qt,clear:Xt,setAccTitle:kt,getAccTitle:bt,setAccDescription:gt,getAccDescription:Et,setDiagramTitle:mt,getDiagramTitle:ft},L={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},jt=function(t,e){let r;t.append("defs").append("marker").attr("id",L.MD_PARENT_START).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",L.MD_PARENT_END).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",L.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",L.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",L.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",L.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},w={ERMarkers:L,insertMarkers:jt},Vt=/[^\dA-Za-z](\W)*/g;let b={},Q=new Map;const qt=function(t){const e=Object.keys(t);for(const r of e)b[r]=t[r]},Jt=(t,e,r)=>{const d=b.entityPadding/3,l=b.entityPadding/3,p=b.fontSize*.85,h=e.node().getBBox(),c=[];let u=!1,f=!1,m=0,E=0,g=0,_=0,S=h.height+d*2,D=1;r.forEach(N=>{N.attributeKeyTypeList!==void 0&&N.attributeKeyTypeList.length>0&&(u=!0),N.attributeComment!==void 0&&(f=!0)}),r.forEach(N=>{const M=`${e.node().id}-attr-${D}`;let k=0;const O=At(N.attributeType),v=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",p+"px").text(O),A=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",p+"px").text(N.attributeName),i={};i.tn=v,i.nn=A;const o=v.node().getBBox(),n=A.node().getBBox();if(m=Math.max(m,o.width),E=Math.max(E,n.width),k=Math.max(o.height,n.height),u){const y=N.attributeKeyTypeList!==void 0?N.attributeKeyTypeList.join(","):"",a=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",p+"px").text(y);i.kn=a;const x=a.node().getBBox();g=Math.max(g,x.width),k=Math.max(k,x.height)}if(f){const y=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",p+"px").text(N.attributeComment||"");i.cn=y;const a=y.node().getBBox();_=Math.max(_,a.width),k=Math.max(k,a.height)}i.height=k,c.push(i),S+=k+d*2,D+=1});let P=4;u&&(P+=2),f&&(P+=2);const F=m+E+g+_,B={width:Math.max(b.minEntityWidth,Math.max(h.width+b.entityPadding*2,F+l*P)),height:r.length>0?S:Math.max(b.minEntityHeight,h.height+b.entityPadding*2)};if(r.length>0){const N=Math.max(0,(B.width-F-l*P)/(P/2));e.attr("transform","translate("+B.width/2+","+(d+h.height/2)+")");let M=h.height+d*2,k="attributeBoxOdd";c.forEach(O=>{const v=M+d+O.height/2;O.tn.attr("transform","translate("+l+","+v+")");const A=t.insert("rect","#"+O.tn.node().id).classed(`er ${k}`,!0).attr("x",0).attr("y",M).attr("width",m+l*2+N).attr("height",O.height+d*2),i=parseFloat(A.attr("x"))+parseFloat(A.attr("width"));O.nn.attr("transform","translate("+(i+l)+","+v+")");const o=t.insert("rect","#"+O.nn.node().id).classed(`er ${k}`,!0).attr("x",i).attr("y",M).attr("width",E+l*2+N).attr("height",O.height+d*2);let n=parseFloat(o.attr("x"))+parseFloat(o.attr("width"));if(u){O.kn.attr("transform","translate("+(n+l)+","+v+")");const y=t.insert("rect","#"+O.kn.node().id).classed(`er ${k}`,!0).attr("x",n).attr("y",M).attr("width",g+l*2+N).attr("height",O.height+d*2);n=parseFloat(y.attr("x"))+parseFloat(y.attr("width"))}f&&(O.cn.attr("transform","translate("+(n+l)+","+v+")"),t.insert("rect","#"+O.cn.node().id).classed(`er ${k}`,"true").attr("x",n).attr("y",M).attr("width",_+l*2+N).attr("height",O.height+d*2)),M+=O.height+d*2,k=k==="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else B.height=Math.max(b.minEntityHeight,S),e.attr("transform","translate("+B.width/2+","+B.height/2+")");return B},te=function(t,e,r){const d=Object.keys(e);let l;return d.forEach(function(p){const h=se(p,"entity");Q.set(p,h);const c=t.append("g").attr("id",h);l=l===void 0?h:l;const u="text-"+h,f=c.append("text").classed("er entityLabel",!0).attr("id",u).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",Z().fontFamily).style("font-size",b.fontSize+"px").text(e[p].alias??p),{width:m,height:E}=Jt(c,f,e[p].attributes),g=c.insert("rect","#"+u).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",m).attr("height",E).node().getBBox();r.setNode(h,{width:g.width,height:g.height,shape:"rect",id:h})}),l},ee=function(t,e){e.nodes().forEach(function(r){r!==void 0&&e.node(r)!==void 0&&t.select("#"+r).attr("transform","translate("+(e.node(r).x-e.node(r).width/2)+","+(e.node(r).y-e.node(r).height/2)+" )")})},ut=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},re=function(t,e){return t.forEach(function(r){e.setEdge(Q.get(r.entityA),Q.get(r.entityB),{relationship:r},ut(r))}),t};let ct=0;const ae=function(t,e,r,d,l){ct++;const p=r.edge(Q.get(e.entityA),Q.get(e.entityB),ut(e)),h=xt().x(function(_){return _.x}).y(function(_){return _.y}).curve(Tt),c=t.insert("path","#"+d).classed("er relationshipLine",!0).attr("d",h(p.points)).style("stroke",b.stroke).style("fill","none");e.relSpec.relType===l.db.Identification.NON_IDENTIFYING&&c.attr("stroke-dasharray","8,8");let u="";switch(b.arrowMarkerAbsolute&&(u=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,u=u.replace(/\(/g,"\\("),u=u.replace(/\)/g,"\\)")),e.relSpec.cardA){case l.db.Cardinality.ZERO_OR_ONE:c.attr("marker-end","url("+u+"#"+w.ERMarkers.ZERO_OR_ONE_END+")");break;case l.db.Cardinality.ZERO_OR_MORE:c.attr("marker-end","url("+u+"#"+w.ERMarkers.ZERO_OR_MORE_END+")");break;case l.db.Cardinality.ONE_OR_MORE:c.attr("marker-end","url("+u+"#"+w.ERMarkers.ONE_OR_MORE_END+")");break;case l.db.Cardinality.ONLY_ONE:c.attr("marker-end","url("+u+"#"+w.ERMarkers.ONLY_ONE_END+")");break;case l.db.Cardinality.MD_PARENT:c.attr("marker-end","url("+u+"#"+w.ERMarkers.MD_PARENT_END+")");break}switch(e.relSpec.cardB){case l.db.Cardinality.ZERO_OR_ONE:c.attr("marker-start","url("+u+"#"+w.ERMarkers.ZERO_OR_ONE_START+")");break;case l.db.Cardinality.ZERO_OR_MORE:c.attr("marker-start","url("+u+"#"+w.ERMarkers.ZERO_OR_MORE_START+")");break;case l.db.Cardinality.ONE_OR_MORE:c.attr("marker-start","url("+u+"#"+w.ERMarkers.ONE_OR_MORE_START+")");break;case l.db.Cardinality.ONLY_ONE:c.attr("marker-start","url("+u+"#"+w.ERMarkers.ONLY_ONE_START+")");break;case l.db.Cardinality.MD_PARENT:c.attr("marker-start","url("+u+"#"+w.ERMarkers.MD_PARENT_START+")");break}const f=c.node().getTotalLength(),m=c.node().getPointAtLength(f*.5),E="rel"+ct,g=t.append("text").classed("er relationshipLabel",!0).attr("id",E).attr("x",m.x).attr("y",m.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",Z().fontFamily).style("font-size",b.fontSize+"px").text(e.roleA).node().getBBox();t.insert("rect","#"+E).classed("er relationshipLabelBox",!0).attr("x",m.x-g.width/2).attr("y",m.y-g.height/2).attr("width",g.width).attr("height",g.height)},ie=function(t,e,r,d){b=Z().er,H.info("Drawing ER diagram");const l=Z().securityLevel;let p;l==="sandbox"&&(p=et("#i"+e));const h=(l==="sandbox"?et(p.nodes()[0].contentDocument.body):et("body")).select(`[id='${e}']`);w.insertMarkers(h,b);let c;c=new Mt({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:b.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});const u=te(h,d.db.getEntities(),c),f=re(d.db.getRelationships(),c);It(c),ee(h,c),f.forEach(function(S){ae(h,S,c,u,d)});const m=b.diagramPadding;Ot.insertTitle(h,"entityTitleText",b.titleTopMargin,d.db.getDiagramTitle());const E=h.node().getBBox(),g=E.width+m*2,_=E.height+m*2;Rt(h,_,g,b.useMaxWidth),h.attr("viewBox",`${E.x-m} ${E.y-m} ${g} ${_}`)},ne="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function se(t="",e=""){const r=t.replace(Vt,"");return`${lt(e)}${lt(r)}${Pt(t,ne)}`}function lt(t=""){return t.length>0?`${t}-`:""}const oe={setConf:qt,draw:ie},ce=t=>`
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var i=this.next();return i||this.lex()},begin:function(i){this.conditionStack.push(i)},popState:function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},pushState:function(i){this.begin(i)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(i,o,n,y){switch(n){case 0:return this.begin("acc_title"),22;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),24;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 10;case 8:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;case 14:return 36;case 15:break;case 16:return 37;case 17:return 34;case 18:return 34;case 19:return 38;case 20:break;case 21:return this.popState(),17;case 22:return o.yytext[0];case 23:return 18;case 24:return 19;case 25:return 41;case 26:return 43;case 27:return 43;case 28:return 43;case 29:return 41;case 30:return 41;case 31:return 42;case 32:return 42;case 33:return 42;case 34:return 42;case 35:return 42;case 36:return 43;case 37:return 42;case 38:return 43;case 39:return 44;case 40:return 44;case 41:return 44;case 42:return 44;case 43:return 41;case 44:return 42;case 45:return 43;case 46:return 45;case 47:return 46;case 48:return 47;case 49:return 47;case 50:return 46;case 51:return 46;case 52:return 46;case 53:return 27;case 54:return o.yytext[0];case 55:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}};return A}();k.lexer=O;function $(){this.yy={}}return $.prototype=k,k.Parser=$,new $}();at.parser=at;const Ft=at;let W={},it=[];const Wt={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},Kt={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},ht=function(t,e=void 0){return W[t]===void 0?(W[t]={attributes:[],alias:e},H.info("Added new entity :",t)):W[t]&&!W[t].alias&&e&&(W[t].alias=e,H.info(`Add alias '${e}' to entity '${t}'`)),W[t]},Ut=()=>W,zt=function(t,e){let r=ht(t),d;for(d=e.length-1;d>=0;d--)r.attributes.push(e[d]),H.debug("Added attribute ",e[d].attributeName)},Ht=function(t,e,r,d){let l={entityA:t,roleA:e,entityB:r,relSpec:d};it.push(l),H.debug("Added new relationship :",l)},Qt=()=>it,Xt=function(){W={},it=[],Nt()},jt={Cardinality:Wt,Identification:Kt,getConfig:()=>Z().er,addEntity:ht,addAttributes:zt,getEntities:Ut,addRelationship:Ht,getRelationships:Qt,clear:Xt,setAccTitle:kt,getAccTitle:bt,setAccDescription:gt,getAccDescription:Et,setDiagramTitle:mt,getDiagramTitle:ft},L={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},Gt=function(t,e){let r;t.append("defs").append("marker").attr("id",L.MD_PARENT_START).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",L.MD_PARENT_END).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",L.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",L.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",L.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",L.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},w={ERMarkers:L,insertMarkers:Gt},Vt=/[^\dA-Za-z](\W)*/g;let b={},Q=new Map;const Jt=function(t){const e=Object.keys(t);for(const r of e)b[r]=t[r]},qt=(t,e,r)=>{const d=b.entityPadding/3,l=b.entityPadding/3,p=b.fontSize*.85,h=e.node().getBBox(),c=[];let u=!1,f=!1,m=0,E=0,g=0,_=0,I=h.height+d*2,D=1;r.forEach(N=>{N.attributeKeyTypeList!==void 0&&N.attributeKeyTypeList.length>0&&(u=!0),N.attributeComment!==void 0&&(f=!0)}),r.forEach(N=>{const M=`${e.node().id}-attr-${D}`;let k=0;const O=At(N.attributeType),$=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",p+"px").text(O),A=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",p+"px").text(N.attributeName),i={};i.tn=$,i.nn=A;const o=$.node().getBBox(),n=A.node().getBBox();if(m=Math.max(m,o.width),E=Math.max(E,n.width),k=Math.max(o.height,n.height),u){const y=N.attributeKeyTypeList!==void 0?N.attributeKeyTypeList.join(","):"",a=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",p+"px").text(y);i.kn=a;const x=a.node().getBBox();g=Math.max(g,x.width),k=Math.max(k,x.height)}if(f){const y=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",p+"px").text(N.attributeComment||"");i.cn=y;const a=y.node().getBBox();_=Math.max(_,a.width),k=Math.max(k,a.height)}i.height=k,c.push(i),I+=k+d*2,D+=1});let P=4;u&&(P+=2),f&&(P+=2);const F=m+E+g+_,B={width:Math.max(b.minEntityWidth,Math.max(h.width+b.entityPadding*2,F+l*P)),height:r.length>0?I:Math.max(b.minEntityHeight,h.height+b.entityPadding*2)};if(r.length>0){const N=Math.max(0,(B.width-F-l*P)/(P/2));e.attr("transform","translate("+B.width/2+","+(d+h.height/2)+")");let M=h.height+d*2,k="attributeBoxOdd";c.forEach(O=>{const $=M+d+O.height/2;O.tn.attr("transform","translate("+l+","+$+")");const A=t.insert("rect","#"+O.tn.node().id).classed(`er ${k}`,!0).attr("x",0).attr("y",M).attr("width",m+l*2+N).attr("height",O.height+d*2),i=parseFloat(A.attr("x"))+parseFloat(A.attr("width"));O.nn.attr("transform","translate("+(i+l)+","+$+")");const o=t.insert("rect","#"+O.nn.node().id).classed(`er ${k}`,!0).attr("x",i).attr("y",M).attr("width",E+l*2+N).attr("height",O.height+d*2);let n=parseFloat(o.attr("x"))+parseFloat(o.attr("width"));if(u){O.kn.attr("transform","translate("+(n+l)+","+$+")");const y=t.insert("rect","#"+O.kn.node().id).classed(`er ${k}`,!0).attr("x",n).attr("y",M).attr("width",g+l*2+N).attr("height",O.height+d*2);n=parseFloat(y.attr("x"))+parseFloat(y.attr("width"))}f&&(O.cn.attr("transform","translate("+(n+l)+","+$+")"),t.insert("rect","#"+O.cn.node().id).classed(`er ${k}`,"true").attr("x",n).attr("y",M).attr("width",_+l*2+N).attr("height",O.height+d*2)),M+=O.height+d*2,k=k==="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else B.height=Math.max(b.minEntityHeight,I),e.attr("transform","translate("+B.width/2+","+B.height/2+")");return B},te=function(t,e,r){const d=Object.keys(e);let l;return d.forEach(function(p){const h=se(p,"entity");Q.set(p,h);const c=t.append("g").attr("id",h);l=l===void 0?h:l;const u="text-"+h,f=c.append("text").classed("er entityLabel",!0).attr("id",u).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",Z().fontFamily).style("font-size",b.fontSize+"px").text(e[p].alias??p),{width:m,height:E}=qt(c,f,e[p].attributes),g=c.insert("rect","#"+u).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",m).attr("height",E).node().getBBox();r.setNode(h,{width:g.width,height:g.height,shape:"rect",id:h})}),l},ee=function(t,e){e.nodes().forEach(function(r){r!==void 0&&e.node(r)!==void 0&&t.select("#"+r).attr("transform","translate("+(e.node(r).x-e.node(r).width/2)+","+(e.node(r).y-e.node(r).height/2)+" )")})},ut=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},re=function(t,e){return t.forEach(function(r){e.setEdge(Q.get(r.entityA),Q.get(r.entityB),{relationship:r},ut(r))}),t};let ct=0;const ae=function(t,e,r,d,l){ct++;const p=r.edge(Q.get(e.entityA),Q.get(e.entityB),ut(e)),h=xt().x(function(_){return _.x}).y(function(_){return _.y}).curve(Tt),c=t.insert("path","#"+d).classed("er relationshipLine",!0).attr("d",h(p.points)).style("stroke",b.stroke).style("fill","none");e.relSpec.relType===l.db.Identification.NON_IDENTIFYING&&c.attr("stroke-dasharray","8,8");let u="";switch(b.arrowMarkerAbsolute&&(u=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,u=u.replace(/\(/g,"\\("),u=u.replace(/\)/g,"\\)")),e.relSpec.cardA){case l.db.Cardinality.ZERO_OR_ONE:c.attr("marker-end","url("+u+"#"+w.ERMarkers.ZERO_OR_ONE_END+")");break;case l.db.Cardinality.ZERO_OR_MORE:c.attr("marker-end","url("+u+"#"+w.ERMarkers.ZERO_OR_MORE_END+")");break;case l.db.Cardinality.ONE_OR_MORE:c.attr("marker-end","url("+u+"#"+w.ERMarkers.ONE_OR_MORE_END+")");break;case l.db.Cardinality.ONLY_ONE:c.attr("marker-end","url("+u+"#"+w.ERMarkers.ONLY_ONE_END+")");break;case l.db.Cardinality.MD_PARENT:c.attr("marker-end","url("+u+"#"+w.ERMarkers.MD_PARENT_END+")");break}switch(e.relSpec.cardB){case l.db.Cardinality.ZERO_OR_ONE:c.attr("marker-start","url("+u+"#"+w.ERMarkers.ZERO_OR_ONE_START+")");break;case l.db.Cardinality.ZERO_OR_MORE:c.attr("marker-start","url("+u+"#"+w.ERMarkers.ZERO_OR_MORE_START+")");break;case l.db.Cardinality.ONE_OR_MORE:c.attr("marker-start","url("+u+"#"+w.ERMarkers.ONE_OR_MORE_START+")");break;case l.db.Cardinality.ONLY_ONE:c.attr("marker-start","url("+u+"#"+w.ERMarkers.ONLY_ONE_START+")");break;case l.db.Cardinality.MD_PARENT:c.attr("marker-start","url("+u+"#"+w.ERMarkers.MD_PARENT_START+")");break}const f=c.node().getTotalLength(),m=c.node().getPointAtLength(f*.5),E="rel"+ct,g=t.append("text").classed("er relationshipLabel",!0).attr("id",E).attr("x",m.x).attr("y",m.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",Z().fontFamily).style("font-size",b.fontSize+"px").text(e.roleA).node().getBBox();t.insert("rect","#"+E).classed("er relationshipLabelBox",!0).attr("x",m.x-g.width/2).attr("y",m.y-g.height/2).attr("width",g.width).attr("height",g.height)},ie=function(t,e,r,d){b=Z().er,H.info("Drawing ER diagram");const l=Z().securityLevel;let p;l==="sandbox"&&(p=et("#i"+e));const h=(l==="sandbox"?et(p.nodes()[0].contentDocument.body):et("body")).select(`[id='${e}']`);w.insertMarkers(h,b);let c;c=new Mt({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:b.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});const u=te(h,d.db.getEntities(),c),f=re(d.db.getRelationships(),c);vt(c),ee(h,c),f.forEach(function(I){ae(h,I,c,u,d)});const m=b.diagramPadding;Ot.insertTitle(h,"entityTitleText",b.titleTopMargin,d.db.getDiagramTitle());const E=h.node().getBBox(),g=E.width+m*2,_=E.height+m*2;Rt(h,_,g,b.useMaxWidth),h.attr("viewBox",`${E.x-m} ${E.y-m} ${g} ${_}`)},ne="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function se(t="",e=""){const r=t.replace(Vt,"");return`${lt(e)}${lt(r)}${Pt(t,ne)}`}function lt(t=""){return t.length>0?`${t}-`:""}const oe={setConf:Jt,draw:ie},ce=t=>`
|
|
7
7
|
.entityBox {
|
|
8
8
|
fill: ${t.mainBkg};
|
|
9
9
|
stroke: ${t.nodeBorder};
|
|
@@ -48,4 +48,4 @@ Expecting `+j.join(", ")+", got '"+(this.terminals_[I]||I)+"'":tt="Parse error o
|
|
|
48
48
|
stroke-width: 1;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
`,le=ce,ye={parser:Ft,db:
|
|
51
|
+
`,le=ce,ye={parser:Ft,db:jt,renderer:oe,styles:le};export{ye as diagram};
|
package/dist/assets/{flowDb-c6c81e3f-CaVKc_SB-DZrfNATF.js → flowDb-c6c81e3f-DFROkPpA-B3HlgleO.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{u as Bt,l as mt,o as xt,s as vt,i as Lt,a as $t,aK as It,U as Rt,O as J1,X as ee,n as Nt,r as de,P as R1}from"./index-D-8SZBhx.js";var pe=function(){var t=function(j,a,l,n){for(l=l||{},n=j.length;n--;l[j[n]]=a);return l},r=[1,4],i=[1,3],u=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],D=[2,2],d=[1,13],w=[1,14],b=[1,15],N=[1,16],H=[1,23],o1=[1,25],p1=[1,26],A1=[1,27],f=[1,49],T=[1,48],P1=[1,29],w1=[1,30],U1=[1,31],V1=[1,32],M1=[1,33],C=[1,44],_=[1,46],B=[1,42],m=[1,47],x=[1,43],v=[1,50],L=[1,45],$=[1,51],I=[1,52],G1=[1,34],K1=[1,35],X1=[1,36],Y1=[1,37],$1=[1,57],y=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Q=[1,61],J=[1,60],Z=[1,62],H1=[8,9,11,73,75],y1=[1,88],E1=[1,93],k1=[1,92],g1=[1,89],b1=[1,85],D1=[1,91],F1=[1,87],T1=[1,94],S1=[1,90],C1=[1,95],_1=[1,86],z1=[8,9,10,11,73,75],R=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],fe=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],I1=[42,58,86,99,102,103,106,108,111,112,113],ye=[1,121],Ee=[1,120],ke=[1,128],ge=[1,142],be=[1,143],De=[1,144],Fe=[1,145],Te=[1,130],Se=[1,132],Ce=[1,136],_e=[1,137],Be=[1,138],me=[1,139],xe=[1,140],ve=[1,141],Le=[1,146],$e=[1,147],Ie=[1,126],Re=[1,127],Ne=[1,134],Oe=[1,129],Pe=[1,133],we=[1,131],ne=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Ue=[1,149],F=[8,9,11],G=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],o=[1,169],O=[1,165],P=[1,166],h=[1,170],p=[1,167],A=[1,168],B1=[75,113,116],E=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Ve=[10,103],h1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],q=[1,235],e1=[1,233],t1=[1,237],s1=[1,231],u1=[1,232],i1=[1,234],n1=[1,236],r1=[1,238],m1=[1,255],Me=[8,9,11,103],W=[8,9,10,11,58,81,102,103,106,107,108,109],re={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(j,a,l,n,k,e,U){var s=e.length-1;switch(k){case 2:this.$=[];break;case 3:(!Array.isArray(e[s])||e[s].length>0)&&e[s-1].push(e[s]),this.$=e[s-1];break;case 4:case 176:this.$=e[s];break;case 11:n.setDirection("TB"),this.$="TB";break;case 12:n.setDirection(e[s-1]),this.$=e[s-1];break;case 27:this.$=e[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=n.addSubGraph(e[s-6],e[s-1],e[s-4]);break;case 34:this.$=n.addSubGraph(e[s-3],e[s-1],e[s-3]);break;case 35:this.$=n.addSubGraph(void 0,e[s-1],void 0);break;case 37:this.$=e[s].trim(),n.setAccTitle(this.$);break;case 38:case 39:this.$=e[s].trim(),n.setAccDescription(this.$);break;case 43:n.addLink(e[s-2].stmt,e[s],e[s-1]),this.$={stmt:e[s],nodes:e[s].concat(e[s-2].nodes)};break;case 44:n.addLink(e[s-3].stmt,e[s-1],e[s-2]),this.$={stmt:e[s-1],nodes:e[s-1].concat(e[s-3].nodes)};break;case 45:this.$={stmt:e[s-1],nodes:e[s-1]};break;case 46:this.$={stmt:e[s],nodes:e[s]};break;case 47:this.$=[e[s]];break;case 48:this.$=e[s-4].concat(e[s]);break;case 49:this.$=e[s];break;case 50:this.$=e[s-2],n.setClass(e[s-2],e[s]);break;case 51:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"square");break;case 52:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"doublecircle");break;case 53:this.$=e[s-5],n.addVertex(e[s-5],e[s-2],"circle");break;case 54:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"ellipse");break;case 55:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"stadium");break;case 56:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"subroutine");break;case 57:this.$=e[s-7],n.addVertex(e[s-7],e[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[e[s-5],e[s-3]]]));break;case 58:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"cylinder");break;case 59:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"round");break;case 60:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"diamond");break;case 61:this.$=e[s-5],n.addVertex(e[s-5],e[s-2],"hexagon");break;case 62:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"odd");break;case 63:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"trapezoid");break;case 64:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"inv_trapezoid");break;case 65:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"lean_right");break;case 66:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"lean_left");break;case 67:this.$=e[s],n.addVertex(e[s]);break;case 68:e[s-1].text=e[s],this.$=e[s-1];break;case 69:case 70:e[s-2].text=e[s-1],this.$=e[s-2];break;case 71:this.$=e[s];break;case 72:var K=n.destructLink(e[s],e[s-2]);this.$={type:K.type,stroke:K.stroke,length:K.length,text:e[s-1]};break;case 73:this.$={text:e[s],type:"text"};break;case 74:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 75:this.$={text:e[s],type:"string"};break;case 76:this.$={text:e[s],type:"markdown"};break;case 77:var K=n.destructLink(e[s]);this.$={type:K.type,stroke:K.stroke,length:K.length};break;case 78:this.$=e[s-1];break;case 79:this.$={text:e[s],type:"text"};break;case 80:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 81:this.$={text:e[s],type:"string"};break;case 82:case 97:this.$={text:e[s],type:"markdown"};break;case 94:this.$={text:e[s],type:"text"};break;case 95:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 96:this.$={text:e[s],type:"text"};break;case 98:this.$=e[s-4],n.addClass(e[s-2],e[s]);break;case 99:this.$=e[s-4],n.setClass(e[s-2],e[s]);break;case 100:case 108:this.$=e[s-1],n.setClickEvent(e[s-1],e[s]);break;case 101:case 109:this.$=e[s-3],n.setClickEvent(e[s-3],e[s-2]),n.setTooltip(e[s-3],e[s]);break;case 102:this.$=e[s-2],n.setClickEvent(e[s-2],e[s-1],e[s]);break;case 103:this.$=e[s-4],n.setClickEvent(e[s-4],e[s-3],e[s-2]),n.setTooltip(e[s-4],e[s]);break;case 104:this.$=e[s-2],n.setLink(e[s-2],e[s]);break;case 105:this.$=e[s-4],n.setLink(e[s-4],e[s-2]),n.setTooltip(e[s-4],e[s]);break;case 106:this.$=e[s-4],n.setLink(e[s-4],e[s-2],e[s]);break;case 107:this.$=e[s-6],n.setLink(e[s-6],e[s-4],e[s]),n.setTooltip(e[s-6],e[s-2]);break;case 110:this.$=e[s-1],n.setLink(e[s-1],e[s]);break;case 111:this.$=e[s-3],n.setLink(e[s-3],e[s-2]),n.setTooltip(e[s-3],e[s]);break;case 112:this.$=e[s-3],n.setLink(e[s-3],e[s-2],e[s]);break;case 113:this.$=e[s-5],n.setLink(e[s-5],e[s-4],e[s]),n.setTooltip(e[s-5],e[s-2]);break;case 114:this.$=e[s-4],n.addVertex(e[s-2],void 0,void 0,e[s]);break;case 115:this.$=e[s-4],n.updateLink([e[s-2]],e[s]);break;case 116:this.$=e[s-4],n.updateLink(e[s-2],e[s]);break;case 117:this.$=e[s-8],n.updateLinkInterpolate([e[s-6]],e[s-2]),n.updateLink([e[s-6]],e[s]);break;case 118:this.$=e[s-8],n.updateLinkInterpolate(e[s-6],e[s-2]),n.updateLink(e[s-6],e[s]);break;case 119:this.$=e[s-6],n.updateLinkInterpolate([e[s-4]],e[s]);break;case 120:this.$=e[s-6],n.updateLinkInterpolate(e[s-4],e[s]);break;case 121:case 123:this.$=[e[s]];break;case 122:case 124:e[s-2].push(e[s]),this.$=e[s-2];break;case 126:this.$=e[s-1]+e[s];break;case 174:this.$=e[s];break;case 175:this.$=e[s-1]+""+e[s];break;case 177:this.$=e[s-1]+""+e[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:r,10:i,12:u},{1:[3]},t(c,D,{5:6}),{4:7,9:r,10:i,12:u},{4:8,9:r,10:i,12:u},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:d,9:w,10:b,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:P1,82:w1,83:U1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:G1,119:K1,120:X1,121:Y1},t(c,[2,9]),t(c,[2,10]),t(c,[2,11]),{8:[1,54],9:[1,55],10:$1,15:53,18:56},t(y,[2,3]),t(y,[2,4]),t(y,[2,5]),t(y,[2,6]),t(y,[2,7]),t(y,[2,8]),{8:Q,9:J,11:Z,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:Q,9:J,11:Z,21:66},{8:Q,9:J,11:Z,21:67},{8:Q,9:J,11:Z,21:68},{8:Q,9:J,11:Z,21:69},{8:Q,9:J,11:Z,21:70},{8:Q,9:J,10:[1,71],11:Z,21:72},t(y,[2,36]),{35:[1,73]},{37:[1,74]},t(y,[2,39]),t(H1,[2,46],{18:75,10:$1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:y1,42:E1,58:k1,77:[1,83],86:g1,92:[1,80],94:[1,81],98:82,102:b1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1,117:84},t(y,[2,178]),t(y,[2,179]),t(y,[2,180]),t(y,[2,181]),t(z1,[2,47]),t(z1,[2,49],{44:[1,96]}),t(R,[2,67],{110:109,29:[1,97],42:f,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:T,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:C,99:_,102:B,103:m,106:x,108:v,111:L,112:$,113:I}),t(M,[2,174]),t(M,[2,135]),t(M,[2,136]),t(M,[2,137]),t(M,[2,138]),t(M,[2,139]),t(M,[2,140]),t(M,[2,141]),t(M,[2,142]),t(M,[2,143]),t(M,[2,144]),t(M,[2,145]),t(c,[2,12]),t(c,[2,18]),t(c,[2,19]),{9:[1,110]},t(fe,[2,26],{18:111,10:$1}),t(y,[2,27]),{40:112,41:38,42:f,43:39,45:40,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},t(y,[2,40]),t(y,[2,41]),t(y,[2,42]),t(I1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:ye,116:Ee},t([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),t(y,[2,28]),t(y,[2,29]),t(y,[2,30]),t(y,[2,31]),t(y,[2,32]),{10:ke,12:ge,14:be,27:De,28:122,32:Fe,42:Te,58:Se,73:Ce,77:[1,124],78:[1,125],80:135,81:_e,82:Be,83:me,84:xe,85:ve,86:Le,87:$e,88:123,102:Ie,106:Re,108:Ne,111:Oe,112:Pe,113:we},t(ne,D,{5:148}),t(y,[2,37]),t(y,[2,38]),t(H1,[2,45],{42:Ue}),{42:f,45:150,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{99:[1,151],100:152,102:[1,153]},{42:f,45:154,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{42:f,45:155,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},t(F,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},t(F,[2,108],{117:160,10:[1,159],14:y1,42:E1,58:k1,86:g1,102:b1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1}),t(F,[2,110],{10:[1,161]}),t(G,[2,176]),t(G,[2,163]),t(G,[2,164]),t(G,[2,165]),t(G,[2,166]),t(G,[2,167]),t(G,[2,168]),t(G,[2,169]),t(G,[2,170]),t(G,[2,171]),t(G,[2,172]),t(G,[2,173]),{42:f,45:162,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{30:163,65:o,77:O,78:P,79:164,113:h,114:p,115:A},{30:171,65:o,77:O,78:P,79:164,113:h,114:p,115:A},{30:173,48:[1,172],65:o,77:O,78:P,79:164,113:h,114:p,115:A},{30:174,65:o,77:O,78:P,79:164,113:h,114:p,115:A},{30:175,65:o,77:O,78:P,79:164,113:h,114:p,115:A},{30:176,65:o,77:O,78:P,79:164,113:h,114:p,115:A},{106:[1,177]},{30:178,65:o,77:O,78:P,79:164,113:h,114:p,115:A},{30:179,63:[1,180],65:o,77:O,78:P,79:164,113:h,114:p,115:A},{30:181,65:o,77:O,78:P,79:164,113:h,114:p,115:A},{30:182,65:o,77:O,78:P,79:164,113:h,114:p,115:A},{30:183,65:o,77:O,78:P,79:164,113:h,114:p,115:A},t(M,[2,175]),t(c,[2,20]),t(fe,[2,25]),t(H1,[2,43],{18:184,10:$1}),t(I1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:o,77:O,78:P,79:164,113:h,114:p,115:A},{75:[1,188],76:189,113:ye,116:Ee},t(B1,[2,73]),t(B1,[2,75]),t(B1,[2,76]),t(B1,[2,161]),t(B1,[2,162]),{8:Q,9:J,10:ke,11:Z,12:ge,14:be,21:191,27:De,29:[1,190],32:Fe,42:Te,58:Se,73:Ce,80:135,81:_e,82:Be,83:me,84:xe,85:ve,86:Le,87:$e,88:192,102:Ie,106:Re,108:Ne,111:Oe,112:Pe,113:we},t(E,[2,94]),t(E,[2,96]),t(E,[2,97]),t(E,[2,150]),t(E,[2,151]),t(E,[2,152]),t(E,[2,153]),t(E,[2,154]),t(E,[2,155]),t(E,[2,156]),t(E,[2,157]),t(E,[2,158]),t(E,[2,159]),t(E,[2,160]),t(E,[2,83]),t(E,[2,84]),t(E,[2,85]),t(E,[2,86]),t(E,[2,87]),t(E,[2,88]),t(E,[2,89]),t(E,[2,90]),t(E,[2,91]),t(E,[2,92]),t(E,[2,93]),{6:11,7:12,8:d,9:w,10:b,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,193],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:P1,82:w1,83:U1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:G1,119:K1,120:X1,121:Y1},{10:$1,18:194},{10:[1,195],42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:109,111:L,112:$,113:I},{10:[1,196]},{10:[1,197],103:[1,198]},t(Ve,[2,121]),{10:[1,199],42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:109,111:L,112:$,113:I},{10:[1,200],42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:109,111:L,112:$,113:I},{77:[1,201]},t(F,[2,102],{10:[1,202]}),t(F,[2,104],{10:[1,203]}),{77:[1,204]},t(G,[2,177]),{77:[1,205],95:[1,206]},t(z1,[2,50],{110:109,42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,111:L,112:$,113:I}),{31:[1,207],65:o,79:208,113:h,114:p,115:A},t(h1,[2,79]),t(h1,[2,81]),t(h1,[2,82]),t(h1,[2,146]),t(h1,[2,147]),t(h1,[2,148]),t(h1,[2,149]),{47:[1,209],65:o,79:208,113:h,114:p,115:A},{30:210,65:o,77:O,78:P,79:164,113:h,114:p,115:A},{49:[1,211],65:o,79:208,113:h,114:p,115:A},{51:[1,212],65:o,79:208,113:h,114:p,115:A},{53:[1,213],65:o,79:208,113:h,114:p,115:A},{55:[1,214],65:o,79:208,113:h,114:p,115:A},{58:[1,215]},{62:[1,216],65:o,79:208,113:h,114:p,115:A},{64:[1,217],65:o,79:208,113:h,114:p,115:A},{30:218,65:o,77:O,78:P,79:164,113:h,114:p,115:A},{31:[1,219],65:o,79:208,113:h,114:p,115:A},{65:o,67:[1,220],69:[1,221],79:208,113:h,114:p,115:A},{65:o,67:[1,223],69:[1,222],79:208,113:h,114:p,115:A},t(H1,[2,44],{42:Ue}),t(I1,[2,70]),t(I1,[2,69]),{60:[1,224],65:o,79:208,113:h,114:p,115:A},t(I1,[2,72]),t(B1,[2,74]),{30:225,65:o,77:O,78:P,79:164,113:h,114:p,115:A},t(ne,D,{5:226}),t(E,[2,95]),t(y,[2,35]),{41:227,42:f,43:39,45:40,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{10:q,58:e1,81:t1,89:228,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{10:q,58:e1,81:t1,89:239,101:[1,240],102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{10:q,58:e1,81:t1,89:241,101:[1,242],102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{102:[1,243]},{10:q,58:e1,81:t1,89:244,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{42:f,45:245,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},t(F,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},t(F,[2,109]),t(F,[2,111],{10:[1,249]}),t(F,[2,112]),t(R,[2,51]),t(h1,[2,80]),t(R,[2,52]),{49:[1,250],65:o,79:208,113:h,114:p,115:A},t(R,[2,59]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),{106:[1,251]},t(R,[2,58]),t(R,[2,60]),{64:[1,252],65:o,79:208,113:h,114:p,115:A},t(R,[2,62]),t(R,[2,63]),t(R,[2,65]),t(R,[2,64]),t(R,[2,66]),t([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:o,79:208,113:h,114:p,115:A},{6:11,7:12,8:d,9:w,10:b,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,254],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:P1,82:w1,83:U1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:G1,119:K1,120:X1,121:Y1},t(z1,[2,48]),t(F,[2,114],{103:m1}),t(Me,[2,123],{105:256,10:q,58:e1,81:t1,102:s1,106:u1,107:i1,108:n1,109:r1}),t(W,[2,125]),t(W,[2,127]),t(W,[2,128]),t(W,[2,129]),t(W,[2,130]),t(W,[2,131]),t(W,[2,132]),t(W,[2,133]),t(W,[2,134]),t(F,[2,115],{103:m1}),{10:[1,257]},t(F,[2,116],{103:m1}),{10:[1,258]},t(Ve,[2,122]),t(F,[2,98],{103:m1}),t(F,[2,99],{110:109,42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,111:L,112:$,113:I}),t(F,[2,103]),t(F,[2,105],{10:[1,259]}),t(F,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:Q,9:J,11:Z,21:264},t(y,[2,34]),{10:q,58:e1,81:t1,102:s1,104:265,105:230,106:u1,107:i1,108:n1,109:r1},t(W,[2,126]),{14:y1,42:E1,58:k1,86:g1,98:266,102:b1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1,117:84},{14:y1,42:E1,58:k1,86:g1,98:267,102:b1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1,117:84},{95:[1,268]},t(F,[2,113]),t(R,[2,53]),{30:269,65:o,77:O,78:P,79:164,113:h,114:p,115:A},t(R,[2,61]),t(ne,D,{5:270}),t(Me,[2,124],{105:256,10:q,58:e1,81:t1,102:s1,106:u1,107:i1,108:n1,109:r1}),t(F,[2,119],{117:160,10:[1,271],14:y1,42:E1,58:k1,86:g1,102:b1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1}),t(F,[2,120],{117:160,10:[1,272],14:y1,42:E1,58:k1,86:g1,102:b1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1}),t(F,[2,107]),{31:[1,273],65:o,79:208,113:h,114:p,115:A},{6:11,7:12,8:d,9:w,10:b,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,274],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:P1,82:w1,83:U1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:G1,119:K1,120:X1,121:Y1},{10:q,58:e1,81:t1,89:275,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{10:q,58:e1,81:t1,89:276,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},t(R,[2,57]),t(y,[2,33]),t(F,[2,117],{103:m1}),t(F,[2,118],{103:m1})],defaultActions:{},parseError:function(j,a){if(a.recoverable)this.trace(j);else{var l=new Error(j);throw l.hash=a,l}},parse:function(j){var a=this,l=[0],n=[],k=[null],e=[],U=this.table,s="",K=0,Ge=0,Tt=2,Ke=1,St=e.slice.call(arguments,1),S=Object.create(this.lexer),d1={yy:{}};for(var ce in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ce)&&(d1.yy[ce]=this.yy[ce]);S.setInput(j,d1.yy),d1.yy.lexer=S,d1.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var le=S.yylloc;e.push(le);var Ct=S.options&&S.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(){var c1;return c1=n.pop()||S.lex()||Ke,typeof c1!="number"&&(c1 instanceof Array&&(n=c1,c1=n.pop()),c1=a.symbols_[c1]||c1),c1}for(var V,f1,X,oe,x1={},W1,a1,Xe,j1;;){if(f1=l[l.length-1],this.defaultActions[f1]?X=this.defaultActions[f1]:((V===null||typeof V>"u")&&(V=_t()),X=U[f1]&&U[f1][V]),typeof X>"u"||!X.length||!X[0]){var he="";j1=[];for(W1 in U[f1])this.terminals_[W1]&&W1>Tt&&j1.push("'"+this.terminals_[W1]+"'");S.showPosition?he="Parse error on line "+(K+1)+`:
|
|
1
|
+
import{j as Bt,w as mt,v as xt,x as vt,y as Lt,b as $t,aK as It,l as Rt,O as J1,g as ee,m as Nt,i as de,P as R1}from"./index-BocEneU2.js";var pe=function(){var t=function(j,a,l,n){for(l=l||{},n=j.length;n--;l[j[n]]=a);return l},r=[1,4],i=[1,3],u=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],D=[2,2],d=[1,13],P=[1,14],b=[1,15],N=[1,16],H=[1,23],o1=[1,25],p1=[1,26],A1=[1,27],f=[1,49],T=[1,48],w1=[1,29],P1=[1,30],U1=[1,31],V1=[1,32],M1=[1,33],C=[1,44],_=[1,46],B=[1,42],m=[1,47],x=[1,43],v=[1,50],L=[1,45],$=[1,51],I=[1,52],G1=[1,34],K1=[1,35],X1=[1,36],Y1=[1,37],$1=[1,57],y=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Q=[1,61],J=[1,60],Z=[1,62],H1=[8,9,11,73,75],y1=[1,88],E1=[1,93],k1=[1,92],g1=[1,89],b1=[1,85],D1=[1,91],F1=[1,87],T1=[1,94],S1=[1,90],C1=[1,95],_1=[1,86],z1=[8,9,10,11,73,75],R=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],fe=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],I1=[42,58,86,99,102,103,106,108,111,112,113],ye=[1,121],Ee=[1,120],ke=[1,128],ge=[1,142],be=[1,143],De=[1,144],Fe=[1,145],Te=[1,130],Se=[1,132],Ce=[1,136],_e=[1,137],Be=[1,138],me=[1,139],xe=[1,140],ve=[1,141],Le=[1,146],$e=[1,147],Ie=[1,126],Re=[1,127],Ne=[1,134],Oe=[1,129],we=[1,133],Pe=[1,131],ne=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Ue=[1,149],F=[8,9,11],G=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],o=[1,169],O=[1,165],w=[1,166],h=[1,170],p=[1,167],A=[1,168],B1=[75,113,116],E=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Ve=[10,103],h1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],q=[1,235],e1=[1,233],t1=[1,237],s1=[1,231],u1=[1,232],i1=[1,234],n1=[1,236],r1=[1,238],m1=[1,255],Me=[8,9,11,103],W=[8,9,10,11,58,81,102,103,106,107,108,109],re={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(j,a,l,n,k,e,U){var s=e.length-1;switch(k){case 2:this.$=[];break;case 3:(!Array.isArray(e[s])||e[s].length>0)&&e[s-1].push(e[s]),this.$=e[s-1];break;case 4:case 176:this.$=e[s];break;case 11:n.setDirection("TB"),this.$="TB";break;case 12:n.setDirection(e[s-1]),this.$=e[s-1];break;case 27:this.$=e[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=n.addSubGraph(e[s-6],e[s-1],e[s-4]);break;case 34:this.$=n.addSubGraph(e[s-3],e[s-1],e[s-3]);break;case 35:this.$=n.addSubGraph(void 0,e[s-1],void 0);break;case 37:this.$=e[s].trim(),n.setAccTitle(this.$);break;case 38:case 39:this.$=e[s].trim(),n.setAccDescription(this.$);break;case 43:n.addLink(e[s-2].stmt,e[s],e[s-1]),this.$={stmt:e[s],nodes:e[s].concat(e[s-2].nodes)};break;case 44:n.addLink(e[s-3].stmt,e[s-1],e[s-2]),this.$={stmt:e[s-1],nodes:e[s-1].concat(e[s-3].nodes)};break;case 45:this.$={stmt:e[s-1],nodes:e[s-1]};break;case 46:this.$={stmt:e[s],nodes:e[s]};break;case 47:this.$=[e[s]];break;case 48:this.$=e[s-4].concat(e[s]);break;case 49:this.$=e[s];break;case 50:this.$=e[s-2],n.setClass(e[s-2],e[s]);break;case 51:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"square");break;case 52:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"doublecircle");break;case 53:this.$=e[s-5],n.addVertex(e[s-5],e[s-2],"circle");break;case 54:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"ellipse");break;case 55:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"stadium");break;case 56:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"subroutine");break;case 57:this.$=e[s-7],n.addVertex(e[s-7],e[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[e[s-5],e[s-3]]]));break;case 58:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"cylinder");break;case 59:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"round");break;case 60:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"diamond");break;case 61:this.$=e[s-5],n.addVertex(e[s-5],e[s-2],"hexagon");break;case 62:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"odd");break;case 63:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"trapezoid");break;case 64:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"inv_trapezoid");break;case 65:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"lean_right");break;case 66:this.$=e[s-3],n.addVertex(e[s-3],e[s-1],"lean_left");break;case 67:this.$=e[s],n.addVertex(e[s]);break;case 68:e[s-1].text=e[s],this.$=e[s-1];break;case 69:case 70:e[s-2].text=e[s-1],this.$=e[s-2];break;case 71:this.$=e[s];break;case 72:var K=n.destructLink(e[s],e[s-2]);this.$={type:K.type,stroke:K.stroke,length:K.length,text:e[s-1]};break;case 73:this.$={text:e[s],type:"text"};break;case 74:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 75:this.$={text:e[s],type:"string"};break;case 76:this.$={text:e[s],type:"markdown"};break;case 77:var K=n.destructLink(e[s]);this.$={type:K.type,stroke:K.stroke,length:K.length};break;case 78:this.$=e[s-1];break;case 79:this.$={text:e[s],type:"text"};break;case 80:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 81:this.$={text:e[s],type:"string"};break;case 82:case 97:this.$={text:e[s],type:"markdown"};break;case 94:this.$={text:e[s],type:"text"};break;case 95:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 96:this.$={text:e[s],type:"text"};break;case 98:this.$=e[s-4],n.addClass(e[s-2],e[s]);break;case 99:this.$=e[s-4],n.setClass(e[s-2],e[s]);break;case 100:case 108:this.$=e[s-1],n.setClickEvent(e[s-1],e[s]);break;case 101:case 109:this.$=e[s-3],n.setClickEvent(e[s-3],e[s-2]),n.setTooltip(e[s-3],e[s]);break;case 102:this.$=e[s-2],n.setClickEvent(e[s-2],e[s-1],e[s]);break;case 103:this.$=e[s-4],n.setClickEvent(e[s-4],e[s-3],e[s-2]),n.setTooltip(e[s-4],e[s]);break;case 104:this.$=e[s-2],n.setLink(e[s-2],e[s]);break;case 105:this.$=e[s-4],n.setLink(e[s-4],e[s-2]),n.setTooltip(e[s-4],e[s]);break;case 106:this.$=e[s-4],n.setLink(e[s-4],e[s-2],e[s]);break;case 107:this.$=e[s-6],n.setLink(e[s-6],e[s-4],e[s]),n.setTooltip(e[s-6],e[s-2]);break;case 110:this.$=e[s-1],n.setLink(e[s-1],e[s]);break;case 111:this.$=e[s-3],n.setLink(e[s-3],e[s-2]),n.setTooltip(e[s-3],e[s]);break;case 112:this.$=e[s-3],n.setLink(e[s-3],e[s-2],e[s]);break;case 113:this.$=e[s-5],n.setLink(e[s-5],e[s-4],e[s]),n.setTooltip(e[s-5],e[s-2]);break;case 114:this.$=e[s-4],n.addVertex(e[s-2],void 0,void 0,e[s]);break;case 115:this.$=e[s-4],n.updateLink([e[s-2]],e[s]);break;case 116:this.$=e[s-4],n.updateLink(e[s-2],e[s]);break;case 117:this.$=e[s-8],n.updateLinkInterpolate([e[s-6]],e[s-2]),n.updateLink([e[s-6]],e[s]);break;case 118:this.$=e[s-8],n.updateLinkInterpolate(e[s-6],e[s-2]),n.updateLink(e[s-6],e[s]);break;case 119:this.$=e[s-6],n.updateLinkInterpolate([e[s-4]],e[s]);break;case 120:this.$=e[s-6],n.updateLinkInterpolate(e[s-4],e[s]);break;case 121:case 123:this.$=[e[s]];break;case 122:case 124:e[s-2].push(e[s]),this.$=e[s-2];break;case 126:this.$=e[s-1]+e[s];break;case 174:this.$=e[s];break;case 175:this.$=e[s-1]+""+e[s];break;case 177:this.$=e[s-1]+""+e[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:r,10:i,12:u},{1:[3]},t(c,D,{5:6}),{4:7,9:r,10:i,12:u},{4:8,9:r,10:i,12:u},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:d,9:P,10:b,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:w1,82:P1,83:U1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:G1,119:K1,120:X1,121:Y1},t(c,[2,9]),t(c,[2,10]),t(c,[2,11]),{8:[1,54],9:[1,55],10:$1,15:53,18:56},t(y,[2,3]),t(y,[2,4]),t(y,[2,5]),t(y,[2,6]),t(y,[2,7]),t(y,[2,8]),{8:Q,9:J,11:Z,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:Q,9:J,11:Z,21:66},{8:Q,9:J,11:Z,21:67},{8:Q,9:J,11:Z,21:68},{8:Q,9:J,11:Z,21:69},{8:Q,9:J,11:Z,21:70},{8:Q,9:J,10:[1,71],11:Z,21:72},t(y,[2,36]),{35:[1,73]},{37:[1,74]},t(y,[2,39]),t(H1,[2,46],{18:75,10:$1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:y1,42:E1,58:k1,77:[1,83],86:g1,92:[1,80],94:[1,81],98:82,102:b1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1,117:84},t(y,[2,178]),t(y,[2,179]),t(y,[2,180]),t(y,[2,181]),t(z1,[2,47]),t(z1,[2,49],{44:[1,96]}),t(R,[2,67],{110:109,29:[1,97],42:f,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:T,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:C,99:_,102:B,103:m,106:x,108:v,111:L,112:$,113:I}),t(M,[2,174]),t(M,[2,135]),t(M,[2,136]),t(M,[2,137]),t(M,[2,138]),t(M,[2,139]),t(M,[2,140]),t(M,[2,141]),t(M,[2,142]),t(M,[2,143]),t(M,[2,144]),t(M,[2,145]),t(c,[2,12]),t(c,[2,18]),t(c,[2,19]),{9:[1,110]},t(fe,[2,26],{18:111,10:$1}),t(y,[2,27]),{40:112,41:38,42:f,43:39,45:40,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},t(y,[2,40]),t(y,[2,41]),t(y,[2,42]),t(I1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:ye,116:Ee},t([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),t(y,[2,28]),t(y,[2,29]),t(y,[2,30]),t(y,[2,31]),t(y,[2,32]),{10:ke,12:ge,14:be,27:De,28:122,32:Fe,42:Te,58:Se,73:Ce,77:[1,124],78:[1,125],80:135,81:_e,82:Be,83:me,84:xe,85:ve,86:Le,87:$e,88:123,102:Ie,106:Re,108:Ne,111:Oe,112:we,113:Pe},t(ne,D,{5:148}),t(y,[2,37]),t(y,[2,38]),t(H1,[2,45],{42:Ue}),{42:f,45:150,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{99:[1,151],100:152,102:[1,153]},{42:f,45:154,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{42:f,45:155,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},t(F,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},t(F,[2,108],{117:160,10:[1,159],14:y1,42:E1,58:k1,86:g1,102:b1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1}),t(F,[2,110],{10:[1,161]}),t(G,[2,176]),t(G,[2,163]),t(G,[2,164]),t(G,[2,165]),t(G,[2,166]),t(G,[2,167]),t(G,[2,168]),t(G,[2,169]),t(G,[2,170]),t(G,[2,171]),t(G,[2,172]),t(G,[2,173]),{42:f,45:162,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{30:163,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:171,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:173,48:[1,172],65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:174,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:175,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:176,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{106:[1,177]},{30:178,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:179,63:[1,180],65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:181,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:182,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{30:183,65:o,77:O,78:w,79:164,113:h,114:p,115:A},t(M,[2,175]),t(c,[2,20]),t(fe,[2,25]),t(H1,[2,43],{18:184,10:$1}),t(I1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{75:[1,188],76:189,113:ye,116:Ee},t(B1,[2,73]),t(B1,[2,75]),t(B1,[2,76]),t(B1,[2,161]),t(B1,[2,162]),{8:Q,9:J,10:ke,11:Z,12:ge,14:be,21:191,27:De,29:[1,190],32:Fe,42:Te,58:Se,73:Ce,80:135,81:_e,82:Be,83:me,84:xe,85:ve,86:Le,87:$e,88:192,102:Ie,106:Re,108:Ne,111:Oe,112:we,113:Pe},t(E,[2,94]),t(E,[2,96]),t(E,[2,97]),t(E,[2,150]),t(E,[2,151]),t(E,[2,152]),t(E,[2,153]),t(E,[2,154]),t(E,[2,155]),t(E,[2,156]),t(E,[2,157]),t(E,[2,158]),t(E,[2,159]),t(E,[2,160]),t(E,[2,83]),t(E,[2,84]),t(E,[2,85]),t(E,[2,86]),t(E,[2,87]),t(E,[2,88]),t(E,[2,89]),t(E,[2,90]),t(E,[2,91]),t(E,[2,92]),t(E,[2,93]),{6:11,7:12,8:d,9:P,10:b,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,193],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:w1,82:P1,83:U1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:G1,119:K1,120:X1,121:Y1},{10:$1,18:194},{10:[1,195],42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:109,111:L,112:$,113:I},{10:[1,196]},{10:[1,197],103:[1,198]},t(Ve,[2,121]),{10:[1,199],42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:109,111:L,112:$,113:I},{10:[1,200],42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:109,111:L,112:$,113:I},{77:[1,201]},t(F,[2,102],{10:[1,202]}),t(F,[2,104],{10:[1,203]}),{77:[1,204]},t(G,[2,177]),{77:[1,205],95:[1,206]},t(z1,[2,50],{110:109,42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,111:L,112:$,113:I}),{31:[1,207],65:o,79:208,113:h,114:p,115:A},t(h1,[2,79]),t(h1,[2,81]),t(h1,[2,82]),t(h1,[2,146]),t(h1,[2,147]),t(h1,[2,148]),t(h1,[2,149]),{47:[1,209],65:o,79:208,113:h,114:p,115:A},{30:210,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{49:[1,211],65:o,79:208,113:h,114:p,115:A},{51:[1,212],65:o,79:208,113:h,114:p,115:A},{53:[1,213],65:o,79:208,113:h,114:p,115:A},{55:[1,214],65:o,79:208,113:h,114:p,115:A},{58:[1,215]},{62:[1,216],65:o,79:208,113:h,114:p,115:A},{64:[1,217],65:o,79:208,113:h,114:p,115:A},{30:218,65:o,77:O,78:w,79:164,113:h,114:p,115:A},{31:[1,219],65:o,79:208,113:h,114:p,115:A},{65:o,67:[1,220],69:[1,221],79:208,113:h,114:p,115:A},{65:o,67:[1,223],69:[1,222],79:208,113:h,114:p,115:A},t(H1,[2,44],{42:Ue}),t(I1,[2,70]),t(I1,[2,69]),{60:[1,224],65:o,79:208,113:h,114:p,115:A},t(I1,[2,72]),t(B1,[2,74]),{30:225,65:o,77:O,78:w,79:164,113:h,114:p,115:A},t(ne,D,{5:226}),t(E,[2,95]),t(y,[2,35]),{41:227,42:f,43:39,45:40,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},{10:q,58:e1,81:t1,89:228,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{10:q,58:e1,81:t1,89:239,101:[1,240],102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{10:q,58:e1,81:t1,89:241,101:[1,242],102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{102:[1,243]},{10:q,58:e1,81:t1,89:244,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{42:f,45:245,58:T,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I},t(F,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},t(F,[2,109]),t(F,[2,111],{10:[1,249]}),t(F,[2,112]),t(R,[2,51]),t(h1,[2,80]),t(R,[2,52]),{49:[1,250],65:o,79:208,113:h,114:p,115:A},t(R,[2,59]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),{106:[1,251]},t(R,[2,58]),t(R,[2,60]),{64:[1,252],65:o,79:208,113:h,114:p,115:A},t(R,[2,62]),t(R,[2,63]),t(R,[2,65]),t(R,[2,64]),t(R,[2,66]),t([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:o,79:208,113:h,114:p,115:A},{6:11,7:12,8:d,9:P,10:b,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,254],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:w1,82:P1,83:U1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:G1,119:K1,120:X1,121:Y1},t(z1,[2,48]),t(F,[2,114],{103:m1}),t(Me,[2,123],{105:256,10:q,58:e1,81:t1,102:s1,106:u1,107:i1,108:n1,109:r1}),t(W,[2,125]),t(W,[2,127]),t(W,[2,128]),t(W,[2,129]),t(W,[2,130]),t(W,[2,131]),t(W,[2,132]),t(W,[2,133]),t(W,[2,134]),t(F,[2,115],{103:m1}),{10:[1,257]},t(F,[2,116],{103:m1}),{10:[1,258]},t(Ve,[2,122]),t(F,[2,98],{103:m1}),t(F,[2,99],{110:109,42:f,58:T,86:C,99:_,102:B,103:m,106:x,108:v,111:L,112:$,113:I}),t(F,[2,103]),t(F,[2,105],{10:[1,259]}),t(F,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:Q,9:J,11:Z,21:264},t(y,[2,34]),{10:q,58:e1,81:t1,102:s1,104:265,105:230,106:u1,107:i1,108:n1,109:r1},t(W,[2,126]),{14:y1,42:E1,58:k1,86:g1,98:266,102:b1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1,117:84},{14:y1,42:E1,58:k1,86:g1,98:267,102:b1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1,117:84},{95:[1,268]},t(F,[2,113]),t(R,[2,53]),{30:269,65:o,77:O,78:w,79:164,113:h,114:p,115:A},t(R,[2,61]),t(ne,D,{5:270}),t(Me,[2,124],{105:256,10:q,58:e1,81:t1,102:s1,106:u1,107:i1,108:n1,109:r1}),t(F,[2,119],{117:160,10:[1,271],14:y1,42:E1,58:k1,86:g1,102:b1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1}),t(F,[2,120],{117:160,10:[1,272],14:y1,42:E1,58:k1,86:g1,102:b1,103:D1,106:F1,108:T1,111:S1,112:C1,113:_1}),t(F,[2,107]),{31:[1,273],65:o,79:208,113:h,114:p,115:A},{6:11,7:12,8:d,9:P,10:b,11:N,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,274],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:f,43:39,45:40,58:T,81:w1,82:P1,83:U1,84:V1,85:M1,86:C,99:_,102:B,103:m,106:x,108:v,110:41,111:L,112:$,113:I,118:G1,119:K1,120:X1,121:Y1},{10:q,58:e1,81:t1,89:275,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},{10:q,58:e1,81:t1,89:276,102:s1,104:229,105:230,106:u1,107:i1,108:n1,109:r1},t(R,[2,57]),t(y,[2,33]),t(F,[2,117],{103:m1}),t(F,[2,118],{103:m1})],defaultActions:{},parseError:function(j,a){if(a.recoverable)this.trace(j);else{var l=new Error(j);throw l.hash=a,l}},parse:function(j){var a=this,l=[0],n=[],k=[null],e=[],U=this.table,s="",K=0,Ge=0,Tt=2,Ke=1,St=e.slice.call(arguments,1),S=Object.create(this.lexer),d1={yy:{}};for(var ce in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ce)&&(d1.yy[ce]=this.yy[ce]);S.setInput(j,d1.yy),d1.yy.lexer=S,d1.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var le=S.yylloc;e.push(le);var Ct=S.options&&S.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(){var c1;return c1=n.pop()||S.lex()||Ke,typeof c1!="number"&&(c1 instanceof Array&&(n=c1,c1=n.pop()),c1=a.symbols_[c1]||c1),c1}for(var V,f1,X,oe,x1={},W1,a1,Xe,j1;;){if(f1=l[l.length-1],this.defaultActions[f1]?X=this.defaultActions[f1]:((V===null||typeof V>"u")&&(V=_t()),X=U[f1]&&U[f1][V]),typeof X>"u"||!X.length||!X[0]){var he="";j1=[];for(W1 in U[f1])this.terminals_[W1]&&W1>Tt&&j1.push("'"+this.terminals_[W1]+"'");S.showPosition?he="Parse error on line "+(K+1)+`:
|
|
2
2
|
`+S.showPosition()+`
|
|
3
3
|
Expecting `+j1.join(", ")+", got '"+(this.terminals_[V]||V)+"'":he="Parse error on line "+(K+1)+": Unexpected "+(V==Ke?"end of input":"'"+(this.terminals_[V]||V)+"'"),this.parseError(he,{text:S.match,token:this.terminals_[V]||V,line:S.yylineno,loc:le,expected:j1})}if(X[0]instanceof Array&&X.length>1)throw new Error("Parse Error: multiple actions possible at state: "+f1+", token: "+V);switch(X[0]){case 1:l.push(V),k.push(S.yytext),e.push(S.yylloc),l.push(X[1]),V=null,Ge=S.yyleng,s=S.yytext,K=S.yylineno,le=S.yylloc;break;case 2:if(a1=this.productions_[X[1]][1],x1.$=k[k.length-a1],x1._$={first_line:e[e.length-(a1||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(a1||1)].first_column,last_column:e[e.length-1].last_column},Ct&&(x1._$.range=[e[e.length-(a1||1)].range[0],e[e.length-1].range[1]]),oe=this.performAction.apply(x1,[s,Ge,K,d1.yy,X[1],k,e].concat(St)),typeof oe<"u")return oe;a1&&(l=l.slice(0,-1*a1*2),k=k.slice(0,-1*a1),e=e.slice(0,-1*a1)),l.push(this.productions_[X[1]][0]),k.push(x1.$),e.push(x1._$),Xe=U[l[l.length-2]][l[l.length-1]],l.push(Xe);break;case 3:return!0}}return!0}},Ft=function(){var j={EOF:1,parseError:function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},setInput:function(a,l){return this.yy=l||this.yy||{},this._input=a,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},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var l=a.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var l=a.length,n=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var k=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 e=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===k.length?this.yylloc.first_column:0)+k[k.length-n.length].length-n[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),l=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|
|
5
5
|
`+l+"^"},test_match:function(a,l){var n,k,e;if(this.options.backtrack_lexer&&(e={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&&(e.yylloc.range=this.yylloc.range.slice(0))),k=a[0].match(/(?:\r\n?|\n).*/g),k&&(this.yylineno+=k.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],n=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var U in e)this[U]=e[U];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,l,n,k;this._more||(this.yytext="",this.match="");for(var e=this._currentRules(),U=0;U<e.length;U++)if(n=this._input.match(this.rules[e[U]]),n&&(!l||n[0].length>l[0].length)){if(l=n,k=U,this.options.backtrack_lexer){if(a=this.test_match(n,e[U]),a!==!1)return a;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(a=this.test_match(l,e[k]),a!==!1?a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return a||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(a,l,n,k){switch(n){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:this.begin("callbackname");break;case 8:this.popState();break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 11:this.popState();break;case 12:return 93;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("md_string");break;case 16:return"STR";case 17:this.popState();break;case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 27:this.popState();break;case 28:return 85;case 29:return a.lex.firstGraph()&&this.begin("dir"),12;case 30:return a.lex.firstGraph()&&this.begin("dir"),12;case 31:return a.lex.firstGraph()&&this.begin("dir"),12;case 32:return 27;case 33:return 32;case 34:return 95;case 35:return 95;case 36:return 95;case 37:return 95;case 38:return this.popState(),13;case 39:return this.popState(),14;case 40:return this.popState(),14;case 41:return this.popState(),14;case 42:return this.popState(),14;case 43:return this.popState(),14;case 44:return this.popState(),14;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:return 108;case 55:return 44;case 56:return 58;case 57:return 42;case 58:return 8;case 59:return 103;case 60:return 112;case 61:return this.popState(),75;case 62:return this.pushState("edgeText"),73;case 63:return 116;case 64:return this.popState(),75;case 65:return this.pushState("thickEdgeText"),73;case 66:return 116;case 67:return this.popState(),75;case 68:return this.pushState("dottedEdgeText"),73;case 69:return 116;case 70:return 75;case 71:return this.popState(),51;case 72:return"TEXT";case 73:return this.pushState("ellipseText"),50;case 74:return this.popState(),53;case 75:return this.pushState("text"),52;case 76:return this.popState(),55;case 77:return this.pushState("text"),54;case 78:return 56;case 79:return this.pushState("text"),65;case 80:return this.popState(),62;case 81:return this.pushState("text"),61;case 82:return this.popState(),47;case 83:return this.pushState("text"),46;case 84:return this.popState(),67;case 85:return this.popState(),69;case 86:return 114;case 87:return this.pushState("trapText"),66;case 88:return this.pushState("trapText"),68;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 94:return 112;case 95:return 108;case 96:return 42;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;case 101:return this.pushState("text"),60;case 102:return this.popState(),49;case 103:return this.pushState("text"),48;case 104:return this.popState(),31;case 105:return this.pushState("text"),29;case 106:return this.popState(),64;case 107:return this.pushState("text"),63;case 108:return"TEXT";case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112:return 11}},rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{callbackargs:{rules:[11,12,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},callbackname:{rules:[8,9,10,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},href:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},click:{rules:[15,18,27,28,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dottedEdgeText:{rules:[15,18,67,69,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},thickEdgeText:{rules:[15,18,64,66,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},edgeText:{rules:[15,18,61,63,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},trapText:{rules:[15,18,70,73,75,77,81,83,84,85,86,87,88,101,103,105,107],inclusive:!1},ellipseText:{rules:[15,18,70,71,72,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},text:{rules:[15,18,70,73,74,75,76,77,80,81,82,83,87,88,100,101,102,103,104,105,106,107,108],inclusive:!1},vertex:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dir:{rules:[15,18,38,39,40,41,42,43,44,45,46,47,48,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr_multiline:{rules:[5,6,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr:{rules:[3,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_title:{rules:[1,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},md_string:{rules:[13,14,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},string:{rules:[15,16,17,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},INITIAL:{rules:[0,2,4,7,15,18,19,20,21,22,23,24,25,26,29,30,31,32,33,34,35,36,37,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,65,67,68,70,73,75,77,78,79,81,83,87,88,89,90,91,92,93,94,95,96,97,98,99,101,103,105,107,109,110,111,112],inclusive:!0}}};return j}();re.lexer=Ft;function ae(){this.yy={}}return ae.prototype=re,re.Parser=ae,new ae}();pe.parser=pe;const Yt=pe,Ot="flowchart-";let Ye=0,L1=ee(),g={},z=[],v1={},l1=[],Z1={},q1={},Q1=0,Ae=!0,Y,te,se=[];const ue=t=>Rt.sanitizeText(t,L1),O1=function(t){const r=Object.keys(g);for(const i of r)if(g[i].id===t)return g[i].domId;return t},He=function(t,r,i,u,c,D,d={}){let w,b=t;b!==void 0&&b.trim().length!==0&&(g[b]===void 0&&(g[b]={id:b,labelType:"text",domId:Ot+b+"-"+Ye,styles:[],classes:[]}),Ye++,r!==void 0?(L1=ee(),w=ue(r.text.trim()),g[b].labelType=r.type,w[0]==='"'&&w[w.length-1]==='"'&&(w=w.substring(1,w.length-1)),g[b].text=w):g[b].text===void 0&&(g[b].text=t),i!==void 0&&(g[b].type=i),u!=null&&u.forEach(function(N){g[b].styles.push(N)}),c!=null&&c.forEach(function(N){g[b].classes.push(N)}),D!==void 0&&(g[b].dir=D),g[b].props===void 0?g[b].props=d:d!==void 0&&Object.assign(g[b].props,d))},ze=function(t,r,i){const u={start:t,end:r,type:void 0,text:"",labelType:"text"};J1.info("abc78 Got edge...",u);const c=i.text;if(c!==void 0&&(u.text=ue(c.text.trim()),u.text[0]==='"'&&u.text[u.text.length-1]==='"'&&(u.text=u.text.substring(1,u.text.length-1)),u.labelType=c.type),i!==void 0&&(u.type=i.type,u.stroke=i.stroke,u.length=i.length),(u==null?void 0:u.length)>10&&(u.length=10),z.length<(L1.maxEdges??500))J1.info("abc78 pushing edge..."),z.push(u);else throw new Error(`Edge limit exceeded. ${z.length} edges found, but the limit is ${L1.maxEdges}.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return a||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(a,l,n,k){switch(n){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:this.begin("callbackname");break;case 8:this.popState();break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 11:this.popState();break;case 12:return 93;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("md_string");break;case 16:return"STR";case 17:this.popState();break;case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 27:this.popState();break;case 28:return 85;case 29:return a.lex.firstGraph()&&this.begin("dir"),12;case 30:return a.lex.firstGraph()&&this.begin("dir"),12;case 31:return a.lex.firstGraph()&&this.begin("dir"),12;case 32:return 27;case 33:return 32;case 34:return 95;case 35:return 95;case 36:return 95;case 37:return 95;case 38:return this.popState(),13;case 39:return this.popState(),14;case 40:return this.popState(),14;case 41:return this.popState(),14;case 42:return this.popState(),14;case 43:return this.popState(),14;case 44:return this.popState(),14;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:return 108;case 55:return 44;case 56:return 58;case 57:return 42;case 58:return 8;case 59:return 103;case 60:return 112;case 61:return this.popState(),75;case 62:return this.pushState("edgeText"),73;case 63:return 116;case 64:return this.popState(),75;case 65:return this.pushState("thickEdgeText"),73;case 66:return 116;case 67:return this.popState(),75;case 68:return this.pushState("dottedEdgeText"),73;case 69:return 116;case 70:return 75;case 71:return this.popState(),51;case 72:return"TEXT";case 73:return this.pushState("ellipseText"),50;case 74:return this.popState(),53;case 75:return this.pushState("text"),52;case 76:return this.popState(),55;case 77:return this.pushState("text"),54;case 78:return 56;case 79:return this.pushState("text"),65;case 80:return this.popState(),62;case 81:return this.pushState("text"),61;case 82:return this.popState(),47;case 83:return this.pushState("text"),46;case 84:return this.popState(),67;case 85:return this.popState(),69;case 86:return 114;case 87:return this.pushState("trapText"),66;case 88:return this.pushState("trapText"),68;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 94:return 112;case 95:return 108;case 96:return 42;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;case 101:return this.pushState("text"),60;case 102:return this.popState(),49;case 103:return this.pushState("text"),48;case 104:return this.popState(),31;case 105:return this.pushState("text"),29;case 106:return this.popState(),64;case 107:return this.pushState("text"),63;case 108:return"TEXT";case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112:return 11}},rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{callbackargs:{rules:[11,12,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},callbackname:{rules:[8,9,10,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},href:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},click:{rules:[15,18,27,28,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dottedEdgeText:{rules:[15,18,67,69,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},thickEdgeText:{rules:[15,18,64,66,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},edgeText:{rules:[15,18,61,63,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},trapText:{rules:[15,18,70,73,75,77,81,83,84,85,86,87,88,101,103,105,107],inclusive:!1},ellipseText:{rules:[15,18,70,71,72,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},text:{rules:[15,18,70,73,74,75,76,77,80,81,82,83,87,88,100,101,102,103,104,105,106,107,108],inclusive:!1},vertex:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dir:{rules:[15,18,38,39,40,41,42,43,44,45,46,47,48,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr_multiline:{rules:[5,6,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr:{rules:[3,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_title:{rules:[1,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},md_string:{rules:[13,14,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},string:{rules:[15,16,17,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},INITIAL:{rules:[0,2,4,7,15,18,19,20,21,22,23,24,25,26,29,30,31,32,33,34,35,36,37,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,65,67,68,70,73,75,77,78,79,81,83,87,88,89,90,91,92,93,94,95,96,97,98,99,101,103,105,107,109,110,111,112],inclusive:!0}}};return j}();re.lexer=Ft;function ae(){this.yy={}}return ae.prototype=re,re.Parser=ae,new ae}();pe.parser=pe;const Yt=pe,Ot="flowchart-";let Ye=0,L1=ee(),g={},z=[],v1={},l1=[],Z1={},q1={},Q1=0,Ae=!0,Y,te,se=[];const ue=t=>Rt.sanitizeText(t,L1),O1=function(t){const r=Object.keys(g);for(const i of r)if(g[i].id===t)return g[i].domId;return t},He=function(t,r,i,u,c,D,d={}){let P,b=t;b!==void 0&&b.trim().length!==0&&(g[b]===void 0&&(g[b]={id:b,labelType:"text",domId:Ot+b+"-"+Ye,styles:[],classes:[]}),Ye++,r!==void 0?(L1=ee(),P=ue(r.text.trim()),g[b].labelType=r.type,P[0]==='"'&&P[P.length-1]==='"'&&(P=P.substring(1,P.length-1)),g[b].text=P):g[b].text===void 0&&(g[b].text=t),i!==void 0&&(g[b].type=i),u!=null&&u.forEach(function(N){g[b].styles.push(N)}),c!=null&&c.forEach(function(N){g[b].classes.push(N)}),D!==void 0&&(g[b].dir=D),g[b].props===void 0?g[b].props=d:d!==void 0&&Object.assign(g[b].props,d))},ze=function(t,r,i){const u={start:t,end:r,type:void 0,text:"",labelType:"text"};J1.info("abc78 Got edge...",u);const c=i.text;if(c!==void 0&&(u.text=ue(c.text.trim()),u.text[0]==='"'&&u.text[u.text.length-1]==='"'&&(u.text=u.text.substring(1,u.text.length-1)),u.labelType=c.type),i!==void 0&&(u.type=i.type,u.stroke=i.stroke,u.length=i.length),(u==null?void 0:u.length)>10&&(u.length=10),z.length<(L1.maxEdges??500))J1.info("abc78 pushing edge..."),z.push(u);else throw new Error(`Edge limit exceeded. ${z.length} edges found, but the limit is ${L1.maxEdges}.
|
|
7
7
|
|
|
8
8
|
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
|
9
9
|
You cannot set this config via configuration inside the diagram as it is a secure config.
|
|
10
|
-
You have to call mermaid.initialize.`)},We=function(t,r,i){J1.info("addLink (abc78)",t,r,i);let u,c;for(u=0;u<t.length;u++)for(c=0;c<r.length;c++)ze(t[u],r[c],i)},je=function(t,r){t.forEach(function(i){i==="default"?z.defaultInterpolate=r:z[i].interpolate=r})},Qe=function(t,r){t.forEach(function(i){if(i>=z.length)throw new Error(`The index ${i} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${z.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);i==="default"?z.defaultStyle=r:(de.isSubstringInArray("fill",r)===-1&&r.push("fill:none"),z[i].style=r)})},Je=function(t,r){t.split(",").forEach(function(i){v1[i]===void 0&&(v1[i]={id:i,styles:[],textStyles:[]}),r!=null&&r.forEach(function(u){if(u.match("color")){const c=u.replace("fill","bgFill").replace("color","fill");v1[i].textStyles.push(c)}v1[i].styles.push(u)})})},Ze=function(t){Y=t,Y.match(/.*</)&&(Y="RL"),Y.match(/.*\^/)&&(Y="BT"),Y.match(/.*>/)&&(Y="LR"),Y.match(/.*v/)&&(Y="TB"),Y==="TD"&&(Y="TB")},ie=function(t,r){t.split(",").forEach(function(i){let u=i;g[u]!==void 0&&g[u].classes.push(r),Z1[u]!==void 0&&Z1[u].classes.push(r)})},
|
|
10
|
+
You have to call mermaid.initialize.`)},We=function(t,r,i){J1.info("addLink (abc78)",t,r,i);let u,c;for(u=0;u<t.length;u++)for(c=0;c<r.length;c++)ze(t[u],r[c],i)},je=function(t,r){t.forEach(function(i){i==="default"?z.defaultInterpolate=r:z[i].interpolate=r})},Qe=function(t,r){t.forEach(function(i){if(i>=z.length)throw new Error(`The index ${i} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${z.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);i==="default"?z.defaultStyle=r:(de.isSubstringInArray("fill",r)===-1&&r.push("fill:none"),z[i].style=r)})},Je=function(t,r){t.split(",").forEach(function(i){v1[i]===void 0&&(v1[i]={id:i,styles:[],textStyles:[]}),r!=null&&r.forEach(function(u){if(u.match("color")){const c=u.replace("fill","bgFill").replace("color","fill");v1[i].textStyles.push(c)}v1[i].styles.push(u)})})},Ze=function(t){Y=t,Y.match(/.*</)&&(Y="RL"),Y.match(/.*\^/)&&(Y="BT"),Y.match(/.*>/)&&(Y="LR"),Y.match(/.*v/)&&(Y="TB"),Y==="TD"&&(Y="TB")},ie=function(t,r){t.split(",").forEach(function(i){let u=i;g[u]!==void 0&&g[u].classes.push(r),Z1[u]!==void 0&&Z1[u].classes.push(r)})},wt=function(t,r){t.split(",").forEach(function(i){r!==void 0&&(q1[te==="gen-1"?O1(i):i]=ue(r))})},Pt=function(t,r,i){let u=O1(t);if(ee().securityLevel!=="loose"||r===void 0)return;let c=[];if(typeof i=="string"){c=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let D=0;D<c.length;D++){let d=c[D].trim();d.charAt(0)==='"'&&d.charAt(d.length-1)==='"'&&(d=d.substr(1,d.length-2)),c[D]=d}}c.length===0&&c.push(t),g[t]!==void 0&&(g[t].haveCallback=!0,se.push(function(){const D=document.querySelector(`[id="${u}"]`);D!==null&&D.addEventListener("click",function(){de.runFunc(r,...c)},!1)}))},qe=function(t,r,i){t.split(",").forEach(function(u){g[u]!==void 0&&(g[u].link=de.formatUrl(r,L1),g[u].linkTarget=i)}),ie(t,"clickable")},et=function(t){if(q1.hasOwnProperty(t))return q1[t]},tt=function(t,r,i){t.split(",").forEach(function(u){Pt(u,r,i)}),ie(t,"clickable")},st=function(t){se.forEach(function(r){r(t)})},ut=function(){return Y.trim()},it=function(){return g},nt=function(){return z},rt=function(){return v1},at=function(t){let r=R1(".mermaidTooltip");(r._groups||r)[0][0]===null&&(r=R1("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),R1(t).select("svg").selectAll("g.node").on("mouseover",function(){const i=R1(this);if(i.attr("title")===null)return;const u=this.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(i.attr("title")).style("left",window.scrollX+u.left+(u.right-u.left)/2+"px").style("top",window.scrollY+u.bottom+"px"),r.html(r.html().replace(/<br\/>/g,"<br/>")),i.classed("hover",!0)}).on("mouseout",function(){r.transition().duration(500).style("opacity",0),R1(this).classed("hover",!1)})};se.push(at);const ct=function(t="gen-1"){g={},v1={},z=[],se=[at],l1=[],Z1={},Q1=0,q1={},Ae=!0,te=t,L1=ee(),Nt()},lt=t=>{te=t||"gen-2"},ot=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},ht=function(t,r,i){let u=t.text.trim(),c=i.text;t===i&&i.text.match(/\s/)&&(u=void 0);function D(H){const o1={boolean:{},number:{},string:{}},p1=[];let A1;return{nodeList:H.filter(function(f){const T=typeof f;return f.stmt&&f.stmt==="dir"?(A1=f.value,!1):f.trim()===""?!1:T in o1?o1[T].hasOwnProperty(f)?!1:o1[T][f]=!0:p1.includes(f)?!1:p1.push(f)}),dir:A1}}let d=[];const{nodeList:P,dir:b}=D(d.concat.apply(d,r));if(d=P,te==="gen-1")for(let H=0;H<d.length;H++)d[H]=O1(d[H]);u=u||"subGraph"+Q1,c=c||"",c=ue(c),Q1=Q1+1;const N={id:u,nodes:d,title:c.trim(),classes:[],dir:b,labelType:i.type};return J1.info("Adding",N.id,N.nodes,N.dir),N.nodes=bt(N,l1).nodes,l1.push(N),Z1[u]=N,u},Ut=function(t){for(const[r,i]of l1.entries())if(i.id===t)return r;return-1};let N1=-1;const pt=[],At=function(t,r){const i=l1[r].nodes;if(N1=N1+1,N1>2e3)return;if(pt[N1]=r,l1[r].id===t)return{result:!0,count:0};let u=0,c=1;for(;u<i.length;){const D=Ut(i[u]);if(D>=0){const d=At(t,D);if(d.result)return{result:!0,count:c+d.count};c=c+d.count}u=u+1}return{result:!1,count:c}},dt=function(t){return pt[t]},ft=function(){N1=-1,l1.length>0&&At("none",l1.length-1)},yt=function(){return l1},Et=()=>Ae?(Ae=!1,!0):!1,Vt=t=>{let r=t.trim(),i="arrow_open";switch(r[0]){case"<":i="arrow_point",r=r.slice(1);break;case"x":i="arrow_cross",r=r.slice(1);break;case"o":i="arrow_circle",r=r.slice(1);break}let u="normal";return r.includes("=")&&(u="thick"),r.includes(".")&&(u="dotted"),{type:i,stroke:u}},Mt=(t,r)=>{const i=r.length;let u=0;for(let c=0;c<i;++c)r[c]===t&&++u;return u},Gt=t=>{const r=t.trim();let i=r.slice(0,-1),u="arrow_open";switch(r.slice(-1)){case"x":u="arrow_cross",r[0]==="x"&&(u="double_"+u,i=i.slice(1));break;case">":u="arrow_point",r[0]==="<"&&(u="double_"+u,i=i.slice(1));break;case"o":u="arrow_circle",r[0]==="o"&&(u="double_"+u,i=i.slice(1));break}let c="normal",D=i.length-1;i[0]==="="&&(c="thick"),i[0]==="~"&&(c="invisible");let d=Mt(".",i);return d&&(c="dotted",D=d),{type:u,stroke:c,length:D}},kt=(t,r)=>{const i=Gt(t);let u;if(r){if(u=Vt(r),u.stroke!==i.stroke)return{type:"INVALID",stroke:"INVALID"};if(u.type==="arrow_open")u.type=i.type;else{if(u.type!==i.type)return{type:"INVALID",stroke:"INVALID"};u.type="double_"+u.type}return u.type==="double_arrow"&&(u.type="double_arrow_point"),u.length=i.length,u}return i},gt=(t,r)=>{let i=!1;return t.forEach(u=>{u.nodes.indexOf(r)>=0&&(i=!0)}),i},bt=(t,r)=>{const i=[];return t.nodes.forEach((u,c)=>{gt(r,u)||i.push(t.nodes[c])}),{nodes:i}},Dt={firstGraph:Et},Kt={defaultConfig:()=>It.flowchart,setAccTitle:$t,getAccTitle:Lt,getAccDescription:vt,setAccDescription:xt,addVertex:He,lookUpDomId:O1,addLink:We,updateLinkInterpolate:je,updateLink:Qe,addClass:Je,setDirection:Ze,setClass:ie,setTooltip:wt,getTooltip:et,setClickEvent:tt,setLink:qe,bindFunctions:st,getDirection:ut,getVertices:it,getEdges:nt,getClasses:rt,clear:ct,setGen:lt,defaultStyle:ot,addSubGraph:ht,getDepthFirstPos:dt,indexNodes:ft,getSubGraphs:yt,destructLink:kt,lex:Dt,exists:gt,makeUniq:bt,setDiagramTitle:mt,getDiagramTitle:Bt},Ht=Object.freeze(Object.defineProperty({__proto__:null,addClass:Je,addLink:We,addSingleLink:ze,addSubGraph:ht,addVertex:He,bindFunctions:st,clear:ct,default:Kt,defaultStyle:ot,destructLink:kt,firstGraph:Et,getClasses:rt,getDepthFirstPos:dt,getDirection:ut,getEdges:nt,getSubGraphs:yt,getTooltip:et,getVertices:it,indexNodes:ft,lex:Dt,lookUpDomId:O1,setClass:ie,setClickEvent:tt,setDirection:Ze,setGen:lt,setLink:qe,updateLink:Qe,updateLinkInterpolate:je},Symbol.toStringTag,{value:"Module"}));export{Ht as H,Yt as X,Kt as j};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as
|
|
1
|
+
import{j as D,X as vt}from"./flowDb-c6c81e3f-DFROkPpA-B3HlgleO.js";import{O as j,g as $,P as x,h as mt,a as U,k as R,Y as C,p as Q,n as J,l as Z,c as kt}from"./index-BocEneU2.js";import{K as St}from"./graph-CvRY9YIM-BSWPV9Nr.js";import{A as _t,j as Ot,e as Lt,k as B,a as At}from"./layout-DSZZaifl-Dg6wRbVD.js";import{h as It,w as Tt,Z as Mt,e as A,t as tt,p as et,f as rt,u as O,b as at}from"./styles-d45a18b0-VfGWd52Q-CGigGBMU.js";import"./index-5325376f-D7k5u-pg-BkjFLQrR.js";import"./clone-C0MdfhAf-BMHvCdCo.js";import"./edges-96097737-BnGLzlID-DglIvYsr.js";import"./createText-1719965b-D5GExXUl-Ckz8tHz2.js";import"./channel-BYhLgIow-BRybLlZc.js";function Pt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Nt(r,e){return fetch(r,e).then(Pt)}function Bt(r){return(e,t)=>Nt(e,t).then(a=>new DOMParser().parseFromString(a,r))}var Et=Bt("image/svg+xml"),W={normal:$t,vee:Ct,undirected:Dt};function jt(r){W=r}function $t(r,e,t,a){var n=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),i=n.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");A(i,t[a+"Style"]),t[a+"Class"]&&i.attr("class",t[a+"Class"])}function Ct(r,e,t,a){var n=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),i=n.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");A(i,t[a+"Style"]),t[a+"Class"]&&i.attr("class",t[a+"Class"])}function Dt(r,e,t,a){var n=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),i=n.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");A(i,t[a+"Style"]),t[a+"Class"]&&i.attr("class",t[a+"Class"])}function Rt(r,e){var t=r;return t.node().appendChild(e.label),A(t,e.labelStyle),t}function Ut(r,e){for(var t=r.append("text"),a=Wt(e.label).split(`
|
|
2
2
|
`),n=0;n<a.length;n++)t.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(a[n]);return A(t,e.labelStyle),t}function Wt(r){for(var e="",t=!1,a,n=0;n<r.length;++n)if(a=r[n],t){switch(a){case"n":e+=`
|
|
3
|
-
`;break;default:e+=a}t=!1}else a==="\\"?t=!0:e+=a;return e}function Y(r,e,t){var a=e.label,n=r.append("g");e.labelType==="svg"?Ut(n,e):typeof a!="string"||e.labelType==="html"?tt(n,e):Dt(n,e);var i=n.node().getBBox(),o;switch(t){case"top":o=-e.height/2;break;case"bottom":o=e.height/2-i.height;break;default:o=-i.height/2}return n.attr("transform","translate("+-i.width/2+","+o+")"),n}var X=function(r,e){var t=e.nodes().filter(function(i){return et(e,i)}),a=r.selectAll("g.cluster").data(t,function(i){return i});O(a.exit(),e).style("opacity",0).remove();var n=a.enter().append("g").attr("class","cluster").attr("id",function(i){var o=e.node(i);return o.id}).style("opacity",0).each(function(i){var o=e.node(i),s=x(this);x(this).append("rect");var d=s.append("g").attr("class","label");Y(d,o,o.clusterLabelPos)});return a=a.merge(n),a=O(a,e).style("opacity",1),a.selectAll("rect").each(function(i){var o=e.node(i),s=x(this);A(s,o.style)}),a};function Xt(r){X=r}let q=function(r,e){var t=r.selectAll("g.edgeLabel").data(e.edges(),function(n){return at(n)}).classed("update",!0);t.exit().remove(),t.enter().append("g").classed("edgeLabel",!0).style("opacity",0),t=r.selectAll("g.edgeLabel"),t.each(function(n){var i=x(this);i.select(".label").remove();var o=e.edge(n),s=Y(i,e.edge(n),0).classed("label",!0),d=s.node().getBBox();o.labelId&&s.attr("id",o.labelId),Object.prototype.hasOwnProperty.call(o,"width")||(o.width=d.width),Object.prototype.hasOwnProperty.call(o,"height")||(o.height=d.height)});var a;return t.exit?a=t.exit():a=t.selectAll(null),O(a,e).style("opacity",0).remove(),t};function qt(r){q=r}function G(r,e){return r.intersect(e)}var z=function(r,e,t){var a=r.selectAll("g.edgePath").data(e.edges(),function(o){return at(o)}).classed("update",!0),n=Ft(a,e);Gt(a,e);var i=a.merge!==void 0?a.merge(n):a;return O(i,e).style("opacity",1),i.each(function(o){var s=x(this),d=e.edge(o);d.elem=this,d.id&&s.attr("id",d.id),rt(s,d.class,(s.classed("update")?"update ":"")+"edgePath")}),i.selectAll("path.path").each(function(o){var s=e.edge(o);s.arrowheadId=Lt("arrowhead");var d=x(this).attr("marker-end",function(){return"url("+Ht(location.href,s.arrowheadId)+")"}).style("fill","none");O(d,e).attr("d",function(u){return Vt(e,u)}),A(d,s.style)}),i.selectAll("defs *").remove(),i.selectAll("defs").each(function(o){var s=e.edge(o),d=t[s.arrowhead];d(x(this),s.arrowheadId,s,"arrowhead")}),i};function zt(r){z=r}function Ht(r,e){var t=r.split("#")[0];return t+"#"+e}function Vt(r,e){var t=r.edge(e),a=r.node(e.v),n=r.node(e.w),i=t.points.slice(1,t.points.length-1);return i.unshift(G(a,i[0])),i.push(G(n,i[i.length-1])),nt(t,i)}function nt(r,e){var t=(kt||Nt.line)().x(function(a){return a.x}).y(function(a){return a.y});return(t.curve||t.interpolate)(r.curve),t(e)}function Yt(r){var e=r.getBBox(),t=r.ownerSVGElement.getScreenCTM().inverse().multiply(r.getScreenCTM()).translate(e.width/2,e.height/2);return{x:t.e,y:t.f}}function Ft(r,e){var t=r.enter().append("g").attr("class","edgePath").style("opacity",0);return t.append("path").attr("class","path").attr("d",function(a){var n=e.edge(a),i=e.node(a.v).elem,o=At(n.points.length).map(function(){return Yt(i)});return nt(n,o)}),t.append("defs"),t}function Gt(r,e){var t=r.exit();O(t,e).style("opacity",0).remove()}var H=function(r,e,t){var a=e.nodes().filter(function(o){return!et(e,o)}),n=r.selectAll("g.node").data(a,function(o){return o}).classed("update",!0);n.exit().remove(),n.enter().append("g").attr("class","node").style("opacity",0),n=r.selectAll("g.node"),n.each(function(o){var s=e.node(o),d=x(this);rt(d,s.class,(d.classed("update")?"update ":"")+"node"),d.select("g.label").remove();var u=d.append("g").attr("class","label"),l=Y(u,s),g=t[s.shape],c=Ot(l.node().getBBox(),"width","height");s.elem=this,s.id&&d.attr("id",s.id),s.labelId&&u.attr("id",s.labelId),Object.prototype.hasOwnProperty.call(s,"width")&&(c.width=s.width),Object.prototype.hasOwnProperty.call(s,"height")&&(c.height=s.height),c.width+=s.paddingLeft+s.paddingRight,c.height+=s.paddingTop+s.paddingBottom,u.attr("transform","translate("+(s.paddingLeft-s.paddingRight)/2+","+(s.paddingTop-s.paddingBottom)/2+")");var h=x(this);h.select(".label-container").remove();var f=g(h,c,s).classed("label-container",!0);A(f,s.style);var b=f.node().getBBox();s.width=b.width,s.height=b.height});var i;return n.exit?i=n.exit():i=n.selectAll(null),O(i,e).style("opacity",0).remove(),n};function Qt(r){H=r}function Kt(r,e){var t=r.filter(function(){return!x(this).classed("update")});function a(n){var i=e.node(n);return"translate("+i.x+","+i.y+")"}t.attr("transform",a),O(r,e).style("opacity",1).attr("transform",a),O(t.selectAll("rect"),e).attr("width",function(n){return e.node(n).width}).attr("height",function(n){return e.node(n).height}).attr("x",function(n){var i=e.node(n);return-i.width/2}).attr("y",function(n){var i=e.node(n);return-i.height/2})}function Jt(r,e){var t=r.filter(function(){return!x(this).classed("update")});function a(n){var i=e.edge(n);return Object.prototype.hasOwnProperty.call(i,"x")?"translate("+i.x+","+i.y+")":""}t.attr("transform",a),O(r,e).style("opacity",1).attr("transform",a)}function Zt(r,e){var t=r.filter(function(){return!x(this).classed("update")});function a(n){var i=e.node(n);return"translate("+i.x+","+i.y+")"}t.attr("transform",a),O(r,e).style("opacity",1).attr("transform",a)}function it(r,e,t,a){var n=r.x,i=r.y,o=n-a.x,s=i-a.y,d=Math.sqrt(e*e*s*s+t*t*o*o),u=Math.abs(e*t*o/d);a.x<n&&(u=-u);var l=Math.abs(e*t*s/d);return a.y<i&&(l=-l),{x:n+u,y:i+l}}function te(r,e,t){return it(r,e,e,t)}function ee(r,e,t,a){var n,i,o,s,d,u,l,g,c,h,f,b,p,w,k;if(n=e.y-r.y,o=r.x-e.x,d=e.x*r.y-r.x*e.y,c=n*t.x+o*t.y+d,h=n*a.x+o*a.y+d,!(c!==0&&h!==0&&Q(c,h))&&(i=a.y-t.y,s=t.x-a.x,u=a.x*t.y-t.x*a.y,l=i*r.x+s*r.y+u,g=i*e.x+s*e.y+u,!(l!==0&&g!==0&&Q(l,g))&&(f=n*s-i*o,f!==0)))return b=Math.abs(f/2),p=o*u-s*d,w=p<0?(p-b)/f:(p+b)/f,p=i*d-n*u,k=p<0?(p-b)/f:(p+b)/f,{x:w,y:k}}function Q(r,e){return r*e>0}function L(r,e,t){var a=r.x,n=r.y,i=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;e.forEach(function(f){o=Math.min(o,f.x),s=Math.min(s,f.y)});for(var d=a-r.width/2-o,u=n-r.height/2-s,l=0;l<e.length;l++){var g=e[l],c=e[l<e.length-1?l+1:0],h=ee(r,t,{x:d+g.x,y:u+g.y},{x:d+c.x,y:u+c.y});h&&i.push(h)}return i.length?(i.length>1&&i.sort(function(f,b){var p=f.x-t.x,w=f.y-t.y,k=Math.sqrt(p*p+w*w),T=b.x-t.x,S=b.y-t.y,y=Math.sqrt(T*T+S*S);return k<y?-1:k===y?0:1}),i[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",r),r)}function F(r,e){var t=r.x,a=r.y,n=e.x-t,i=e.y-a,o=r.width/2,s=r.height/2,d,u;return Math.abs(i)*o>Math.abs(n)*s?(i<0&&(s=-s),d=i===0?0:s*n/i,u=s):(n<0&&(o=-o),d=o,u=n===0?0:o*i/n),{x:t+d,y:a+u}}var V={rect:ae,ellipse:ne,circle:ie,diamond:oe};function re(r){V=r}function ae(r,e,t){var a=r.insert("rect",":first-child").attr("rx",t.rx).attr("ry",t.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return t.intersect=function(n){return F(t,n)},a}function ne(r,e,t){var a=e.width/2,n=e.height/2,i=r.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",a).attr("ry",n);return t.intersect=function(o){return it(t,a,n,o)},i}function ie(r,e,t){var a=Math.max(e.width,e.height)/2,n=r.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",a);return t.intersect=function(i){return te(t,a,i)},n}function oe(r,e,t){var a=e.width*Math.SQRT2/2,n=e.height*Math.SQRT2/2,i=[{x:0,y:-n},{x:-a,y:0},{x:0,y:n},{x:a,y:0}],o=r.insert("polygon",":first-child").attr("points",i.map(function(s){return s.x+","+s.y}).join(" "));return t.intersect=function(s){return L(t,i,s)},o}function se(){var r=function(e,t){ce(t);var a=N(e,"output"),n=N(a,"clusters"),i=N(a,"edgePaths"),o=q(N(a,"edgeLabels"),t),s=H(N(a,"nodes"),t,V);_t(t),Zt(s,t),Jt(o,t),z(i,t,W);var d=X(n,t);Kt(d,t),he(t)};return r.createNodes=function(e){return arguments.length?(Qt(e),r):H},r.createClusters=function(e){return arguments.length?(Xt(e),r):X},r.createEdgeLabels=function(e){return arguments.length?(qt(e),r):q},r.createEdgePaths=function(e){return arguments.length?(zt(e),r):z},r.shapes=function(e){return arguments.length?(re(e),r):V},r.arrows=function(e){return arguments.length?(Et(e),r):W},r}var le={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},de={arrowhead:"normal",curve:C};function ce(r){r.nodes().forEach(e=>{const t=r.node(e);!Object.prototype.hasOwnProperty.call(t,"label")&&!r.children(e).length&&(t.label=e),Object.prototype.hasOwnProperty.call(t,"paddingX")&&B(t,{paddingLeft:t.paddingX,paddingRight:t.paddingX}),Object.prototype.hasOwnProperty.call(t,"paddingY")&&B(t,{paddingTop:t.paddingY,paddingBottom:t.paddingY}),Object.prototype.hasOwnProperty.call(t,"padding")&&B(t,{paddingLeft:t.padding,paddingRight:t.padding,paddingTop:t.padding,paddingBottom:t.padding}),B(t,le),["paddingLeft","paddingRight","paddingTop","paddingBottom"].forEach(a=>{t[a]=Number(t[a])}),Object.prototype.hasOwnProperty.call(t,"width")&&(t._prevWidth=t.width),Object.prototype.hasOwnProperty.call(t,"height")&&(t._prevHeight=t.height)}),r.edges().forEach(function(e){var t=r.edge(e);Object.prototype.hasOwnProperty.call(t,"label")||(t.label=""),B(t,de)})}function he(r){r.nodes().forEach(e=>{var t=r.node(e);Object.prototype.hasOwnProperty.call(t,"_prevWidth")?t.width=t._prevWidth:delete t.width,Object.prototype.hasOwnProperty.call(t,"_prevHeight")?t.height=t._prevHeight:delete t.height,delete t._prevWidth,delete t._prevHeight})}function N(r,e){var t=r.select("g."+e);return t.empty()&&(t=r.append("g").attr("class",e)),t}function ot(r,e,t){const a=e.width,n=e.height,i=(a+n)*.9,o=[{x:i/2,y:0},{x:i,y:-i/2},{x:i/2,y:-i},{x:0,y:-i/2}],s=I(r,i,i,o);return t.intersect=function(d){return L(t,o,d)},s}function st(r,e,t){const a=e.height,n=a/4,i=e.width+2*n,o=[{x:n,y:0},{x:i-n,y:0},{x:i,y:-a/2},{x:i-n,y:-a},{x:n,y:-a},{x:0,y:-a/2}],s=I(r,i,a,o);return t.intersect=function(d){return L(t,o,d)},s}function lt(r,e,t){const a=e.width,n=e.height,i=[{x:-n/2,y:0},{x:a,y:0},{x:a,y:-n},{x:-n/2,y:-n},{x:0,y:-n/2}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function dt(r,e,t){const a=e.width,n=e.height,i=[{x:-2*n/6,y:0},{x:a-n/6,y:0},{x:a+2*n/6,y:-n},{x:n/6,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function ct(r,e,t){const a=e.width,n=e.height,i=[{x:2*n/6,y:0},{x:a+n/6,y:0},{x:a-2*n/6,y:-n},{x:-n/6,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function ht(r,e,t){const a=e.width,n=e.height,i=[{x:-2*n/6,y:0},{x:a+2*n/6,y:0},{x:a-n/6,y:-n},{x:n/6,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function ut(r,e,t){const a=e.width,n=e.height,i=[{x:n/6,y:0},{x:a-n/6,y:0},{x:a+2*n/6,y:-n},{x:-2*n/6,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function pt(r,e,t){const a=e.width,n=e.height,i=[{x:0,y:0},{x:a+n/2,y:0},{x:a,y:-n/2},{x:a+n/2,y:-n},{x:0,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function ft(r,e,t){const a=e.height,n=e.width+a/4,i=r.insert("rect",":first-child").attr("rx",a/2).attr("ry",a/2).attr("x",-n/2).attr("y",-a/2).attr("width",n).attr("height",a);return t.intersect=function(o){return F(t,o)},i}function gt(r,e,t){const a=e.width,n=e.height,i=[{x:0,y:0},{x:a,y:0},{x:a,y:-n},{x:0,y:-n},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-n},{x:-8,y:-n},{x:-8,y:0}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function yt(r,e,t){const a=e.width,n=a/2,i=n/(2.5+a/50),o=e.height+i,s="M 0,"+i+" a "+n+","+i+" 0,0,0 "+a+" 0 a "+n+","+i+" 0,0,0 "+-a+" 0 l 0,"+o+" a "+n+","+i+" 0,0,0 "+a+" 0 l 0,"+-o,d=r.attr("label-offset-y",i).insert("path",":first-child").attr("d",s).attr("transform","translate("+-a/2+","+-(o/2+i)+")");return t.intersect=function(u){const l=F(t,u),g=l.x-t.x;if(n!=0&&(Math.abs(g)<t.width/2||Math.abs(g)==t.width/2&&Math.abs(l.y-t.y)>t.height/2-i)){let c=i*i*(1-g*g/(n*n));c!=0&&(c=Math.sqrt(c)),c=i-c,u.y-t.y>0&&(c=-c),l.y+=c}return l},d}function ue(r){r.shapes().question=ot,r.shapes().hexagon=st,r.shapes().stadium=ft,r.shapes().subroutine=gt,r.shapes().cylinder=yt,r.shapes().rect_left_inv_arrow=lt,r.shapes().lean_right=dt,r.shapes().lean_left=ct,r.shapes().trapezoid=ht,r.shapes().inv_trapezoid=ut,r.shapes().rect_right_inv_arrow=pt}function pe(r){r({question:ot}),r({hexagon:st}),r({stadium:ft}),r({subroutine:gt}),r({cylinder:yt}),r({rect_left_inv_arrow:lt}),r({lean_right:dt}),r({lean_left:ct}),r({trapezoid:ht}),r({inv_trapezoid:ut}),r({rect_right_inv_arrow:pt})}function I(r,e,t,a){return r.insert("polygon",":first-child").attr("points",a.map(function(n){return n.x+","+n.y}).join(" ")).attr("transform","translate("+-e/2+","+t/2+")")}const fe={addToRender:ue,addToRenderV2:pe},wt={},ge=function(r){const e=Object.keys(r);for(const t of e)wt[t]=r[t]},bt=async function(r,e,t,a,n,i){const o=a?a.select(`[id="${t}"]`):x(`[id="${t}"]`),s=n||document,d=Object.keys(r);for(const u of d){const l=r[u];let g="default";l.classes.length>0&&(g=l.classes.join(" "));const c=D(l.styles);let h=l.text!==void 0?l.text:l.id,f;if(K($().flowchart.htmlLabels)){const w={label:await J(h.replace(/fa[blrs]?:fa-[\w-]+/g,k=>`<i class='${k.replace(":"," ")}'></i>`),$())};f=tt(o,w).node(),f.parentNode.removeChild(f)}else{const w=s.createElementNS("http://www.w3.org/2000/svg","text");w.setAttribute("style",c.labelStyle.replace("color:","fill:"));const k=h.split(Z.lineBreakRegex);for(const T of k){const S=s.createElementNS("http://www.w3.org/2000/svg","tspan");S.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),S.setAttribute("dy","1em"),S.setAttribute("x","1"),S.textContent=T,w.appendChild(S)}f=w}let b=0,p="";switch(l.type){case"round":b=5,p="rect";break;case"square":p="rect";break;case"diamond":p="question";break;case"hexagon":p="hexagon";break;case"odd":p="rect_left_inv_arrow";break;case"lean_right":p="lean_right";break;case"lean_left":p="lean_left";break;case"trapezoid":p="trapezoid";break;case"inv_trapezoid":p="inv_trapezoid";break;case"odd_right":p="rect_left_inv_arrow";break;case"circle":p="circle";break;case"ellipse":p="ellipse";break;case"stadium":p="stadium";break;case"subroutine":p="subroutine";break;case"cylinder":p="cylinder";break;case"group":p="rect";break;default:p="rect"}E.warn("Adding node",l.id,l.domId),e.setNode(i.db.lookUpDomId(l.id),{labelType:"svg",labelStyle:c.labelStyle,shape:p,label:f,rx:b,ry:b,class:g,style:c.style,id:i.db.lookUpDomId(l.id)})}},xt=async function(r,e,t){let a=0,n,i;if(r.defaultStyle!==void 0){const o=D(r.defaultStyle);n=o.style,i=o.labelStyle}for(const o of r){a++;const s="L-"+o.start+"-"+o.end,d="LS-"+o.start,u="LE-"+o.end,l={};o.type==="arrow_open"?l.arrowhead="none":l.arrowhead="normal";let g="",c="";if(o.style!==void 0){const h=D(o.style);g=h.style,c=h.labelStyle}else switch(o.stroke){case"normal":g="fill:none",n!==void 0&&(g=n),i!==void 0&&(c=i);break;case"dotted":g="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":g=" stroke-width: 3.5px;fill:none";break}l.style=g,l.labelStyle=c,o.interpolate!==void 0?l.curve=U(o.interpolate,C):r.defaultInterpolate!==void 0?l.curve=U(r.defaultInterpolate,C):l.curve=U(wt.curve,C),o.text===void 0?o.style!==void 0&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",K($().flowchart.htmlLabels)?(l.labelType="html",l.label=`<span id="L-${s}" class="edgeLabel L-${d}' L-${u}" style="${l.labelStyle}">${await J(o.text.replace(/fa[blrs]?:fa-[\w-]+/g,h=>`<i class='${h.replace(":"," ")}'></i>`),$())}</span>`):(l.labelType="text",l.label=o.text.replace(Z.lineBreakRegex,`
|
|
4
|
-
`),o.style===void 0&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),l.id=s,l.class=d+" "+u,l.minlen=o.length||1,e.setEdge(t.db.lookUpDomId(o.start),t.db.lookUpDomId(o.end),l,a)}},ye=function(r,e){return
|
|
3
|
+
`;break;default:e+=a}t=!1}else a==="\\"?t=!0:e+=a;return e}function H(r,e,t){var a=e.label,n=r.append("g");e.labelType==="svg"?Rt(n,e):typeof a!="string"||e.labelType==="html"?tt(n,e):Ut(n,e);var i=n.node().getBBox(),o;switch(t){case"top":o=-e.height/2;break;case"bottom":o=e.height/2-i.height;break;default:o=-i.height/2}return n.attr("transform","translate("+-i.width/2+","+o+")"),n}var z=function(r,e){var t=e.nodes().filter(function(i){return et(e,i)}),a=r.selectAll("g.cluster").data(t,function(i){return i});O(a.exit(),e).style("opacity",0).remove();var n=a.enter().append("g").attr("class","cluster").attr("id",function(i){var o=e.node(i);return o.id}).style("opacity",0).each(function(i){var o=e.node(i),s=x(this);x(this).append("rect");var d=s.append("g").attr("class","label");H(d,o,o.clusterLabelPos)});return a=a.merge(n),a=O(a,e).style("opacity",1),a.selectAll("rect").each(function(i){var o=e.node(i),s=x(this);A(s,o.style)}),a};function zt(r){z=r}let Y=function(r,e){var t=r.selectAll("g.edgeLabel").data(e.edges(),function(n){return at(n)}).classed("update",!0);t.exit().remove(),t.enter().append("g").classed("edgeLabel",!0).style("opacity",0),t=r.selectAll("g.edgeLabel"),t.each(function(n){var i=x(this);i.select(".label").remove();var o=e.edge(n),s=H(i,e.edge(n),0).classed("label",!0),d=s.node().getBBox();o.labelId&&s.attr("id",o.labelId),Object.prototype.hasOwnProperty.call(o,"width")||(o.width=d.width),Object.prototype.hasOwnProperty.call(o,"height")||(o.height=d.height)});var a;return t.exit?a=t.exit():a=t.selectAll(null),O(a,e).style("opacity",0).remove(),t};function Yt(r){Y=r}function G(r,e){return r.intersect(e)}var q=function(r,e,t){var a=r.selectAll("g.edgePath").data(e.edges(),function(o){return at(o)}).classed("update",!0),n=Ft(a,e);Gt(a,e);var i=a.merge!==void 0?a.merge(n):a;return O(i,e).style("opacity",1),i.each(function(o){var s=x(this),d=e.edge(o);d.elem=this,d.id&&s.attr("id",d.id),rt(s,d.class,(s.classed("update")?"update ":"")+"edgePath")}),i.selectAll("path.path").each(function(o){var s=e.edge(o);s.arrowheadId=Lt("arrowhead");var d=x(this).attr("marker-end",function(){return"url("+Xt(location.href,s.arrowheadId)+")"}).style("fill","none");O(d,e).attr("d",function(u){return Vt(e,u)}),A(d,s.style)}),i.selectAll("defs *").remove(),i.selectAll("defs").each(function(o){var s=e.edge(o),d=t[s.arrowhead];d(x(this),s.arrowheadId,s,"arrowhead")}),i};function qt(r){q=r}function Xt(r,e){var t=r.split("#")[0];return t+"#"+e}function Vt(r,e){var t=r.edge(e),a=r.node(e.v),n=r.node(e.w),i=t.points.slice(1,t.points.length-1);return i.unshift(G(a,i[0])),i.push(G(n,i[i.length-1])),nt(t,i)}function nt(r,e){var t=(kt||Et.line)().x(function(a){return a.x}).y(function(a){return a.y});return(t.curve||t.interpolate)(r.curve),t(e)}function Ht(r){var e=r.getBBox(),t=r.ownerSVGElement.getScreenCTM().inverse().multiply(r.getScreenCTM()).translate(e.width/2,e.height/2);return{x:t.e,y:t.f}}function Ft(r,e){var t=r.enter().append("g").attr("class","edgePath").style("opacity",0);return t.append("path").attr("class","path").attr("d",function(a){var n=e.edge(a),i=e.node(a.v).elem,o=At(n.points.length).map(function(){return Ht(i)});return nt(n,o)}),t.append("defs"),t}function Gt(r,e){var t=r.exit();O(t,e).style("opacity",0).remove()}var X=function(r,e,t){var a=e.nodes().filter(function(o){return!et(e,o)}),n=r.selectAll("g.node").data(a,function(o){return o}).classed("update",!0);n.exit().remove(),n.enter().append("g").attr("class","node").style("opacity",0),n=r.selectAll("g.node"),n.each(function(o){var s=e.node(o),d=x(this);rt(d,s.class,(d.classed("update")?"update ":"")+"node"),d.select("g.label").remove();var u=d.append("g").attr("class","label"),l=H(u,s),g=t[s.shape],c=Ot(l.node().getBBox(),"width","height");s.elem=this,s.id&&d.attr("id",s.id),s.labelId&&u.attr("id",s.labelId),Object.prototype.hasOwnProperty.call(s,"width")&&(c.width=s.width),Object.prototype.hasOwnProperty.call(s,"height")&&(c.height=s.height),c.width+=s.paddingLeft+s.paddingRight,c.height+=s.paddingTop+s.paddingBottom,u.attr("transform","translate("+(s.paddingLeft-s.paddingRight)/2+","+(s.paddingTop-s.paddingBottom)/2+")");var h=x(this);h.select(".label-container").remove();var f=g(h,c,s).classed("label-container",!0);A(f,s.style);var b=f.node().getBBox();s.width=b.width,s.height=b.height});var i;return n.exit?i=n.exit():i=n.selectAll(null),O(i,e).style("opacity",0).remove(),n};function Kt(r){X=r}function Qt(r,e){var t=r.filter(function(){return!x(this).classed("update")});function a(n){var i=e.node(n);return"translate("+i.x+","+i.y+")"}t.attr("transform",a),O(r,e).style("opacity",1).attr("transform",a),O(t.selectAll("rect"),e).attr("width",function(n){return e.node(n).width}).attr("height",function(n){return e.node(n).height}).attr("x",function(n){var i=e.node(n);return-i.width/2}).attr("y",function(n){var i=e.node(n);return-i.height/2})}function Jt(r,e){var t=r.filter(function(){return!x(this).classed("update")});function a(n){var i=e.edge(n);return Object.prototype.hasOwnProperty.call(i,"x")?"translate("+i.x+","+i.y+")":""}t.attr("transform",a),O(r,e).style("opacity",1).attr("transform",a)}function Zt(r,e){var t=r.filter(function(){return!x(this).classed("update")});function a(n){var i=e.node(n);return"translate("+i.x+","+i.y+")"}t.attr("transform",a),O(r,e).style("opacity",1).attr("transform",a)}function it(r,e,t,a){var n=r.x,i=r.y,o=n-a.x,s=i-a.y,d=Math.sqrt(e*e*s*s+t*t*o*o),u=Math.abs(e*t*o/d);a.x<n&&(u=-u);var l=Math.abs(e*t*s/d);return a.y<i&&(l=-l),{x:n+u,y:i+l}}function te(r,e,t){return it(r,e,e,t)}function ee(r,e,t,a){var n,i,o,s,d,u,l,g,c,h,f,b,p,w,k;if(n=e.y-r.y,o=r.x-e.x,d=e.x*r.y-r.x*e.y,c=n*t.x+o*t.y+d,h=n*a.x+o*a.y+d,!(c!==0&&h!==0&&K(c,h))&&(i=a.y-t.y,s=t.x-a.x,u=a.x*t.y-t.x*a.y,l=i*r.x+s*r.y+u,g=i*e.x+s*e.y+u,!(l!==0&&g!==0&&K(l,g))&&(f=n*s-i*o,f!==0)))return b=Math.abs(f/2),p=o*u-s*d,w=p<0?(p-b)/f:(p+b)/f,p=i*d-n*u,k=p<0?(p-b)/f:(p+b)/f,{x:w,y:k}}function K(r,e){return r*e>0}function L(r,e,t){var a=r.x,n=r.y,i=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;e.forEach(function(f){o=Math.min(o,f.x),s=Math.min(s,f.y)});for(var d=a-r.width/2-o,u=n-r.height/2-s,l=0;l<e.length;l++){var g=e[l],c=e[l<e.length-1?l+1:0],h=ee(r,t,{x:d+g.x,y:u+g.y},{x:d+c.x,y:u+c.y});h&&i.push(h)}return i.length?(i.length>1&&i.sort(function(f,b){var p=f.x-t.x,w=f.y-t.y,k=Math.sqrt(p*p+w*w),T=b.x-t.x,S=b.y-t.y,y=Math.sqrt(T*T+S*S);return k<y?-1:k===y?0:1}),i[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",r),r)}function F(r,e){var t=r.x,a=r.y,n=e.x-t,i=e.y-a,o=r.width/2,s=r.height/2,d,u;return Math.abs(i)*o>Math.abs(n)*s?(i<0&&(s=-s),d=i===0?0:s*n/i,u=s):(n<0&&(o=-o),d=o,u=n===0?0:o*i/n),{x:t+d,y:a+u}}var V={rect:ae,ellipse:ne,circle:ie,diamond:oe};function re(r){V=r}function ae(r,e,t){var a=r.insert("rect",":first-child").attr("rx",t.rx).attr("ry",t.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return t.intersect=function(n){return F(t,n)},a}function ne(r,e,t){var a=e.width/2,n=e.height/2,i=r.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",a).attr("ry",n);return t.intersect=function(o){return it(t,a,n,o)},i}function ie(r,e,t){var a=Math.max(e.width,e.height)/2,n=r.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",a);return t.intersect=function(i){return te(t,a,i)},n}function oe(r,e,t){var a=e.width*Math.SQRT2/2,n=e.height*Math.SQRT2/2,i=[{x:0,y:-n},{x:-a,y:0},{x:0,y:n},{x:a,y:0}],o=r.insert("polygon",":first-child").attr("points",i.map(function(s){return s.x+","+s.y}).join(" "));return t.intersect=function(s){return L(t,i,s)},o}function se(){var r=function(e,t){ce(t);var a=E(e,"output"),n=E(a,"clusters"),i=E(a,"edgePaths"),o=Y(E(a,"edgeLabels"),t),s=X(E(a,"nodes"),t,V);_t(t),Zt(s,t),Jt(o,t),q(i,t,W);var d=z(n,t);Qt(d,t),he(t)};return r.createNodes=function(e){return arguments.length?(Kt(e),r):X},r.createClusters=function(e){return arguments.length?(zt(e),r):z},r.createEdgeLabels=function(e){return arguments.length?(Yt(e),r):Y},r.createEdgePaths=function(e){return arguments.length?(qt(e),r):q},r.shapes=function(e){return arguments.length?(re(e),r):V},r.arrows=function(e){return arguments.length?(jt(e),r):W},r}var le={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},de={arrowhead:"normal",curve:C};function ce(r){r.nodes().forEach(e=>{const t=r.node(e);!Object.prototype.hasOwnProperty.call(t,"label")&&!r.children(e).length&&(t.label=e),Object.prototype.hasOwnProperty.call(t,"paddingX")&&B(t,{paddingLeft:t.paddingX,paddingRight:t.paddingX}),Object.prototype.hasOwnProperty.call(t,"paddingY")&&B(t,{paddingTop:t.paddingY,paddingBottom:t.paddingY}),Object.prototype.hasOwnProperty.call(t,"padding")&&B(t,{paddingLeft:t.padding,paddingRight:t.padding,paddingTop:t.padding,paddingBottom:t.padding}),B(t,le),["paddingLeft","paddingRight","paddingTop","paddingBottom"].forEach(a=>{t[a]=Number(t[a])}),Object.prototype.hasOwnProperty.call(t,"width")&&(t._prevWidth=t.width),Object.prototype.hasOwnProperty.call(t,"height")&&(t._prevHeight=t.height)}),r.edges().forEach(function(e){var t=r.edge(e);Object.prototype.hasOwnProperty.call(t,"label")||(t.label=""),B(t,de)})}function he(r){r.nodes().forEach(e=>{var t=r.node(e);Object.prototype.hasOwnProperty.call(t,"_prevWidth")?t.width=t._prevWidth:delete t.width,Object.prototype.hasOwnProperty.call(t,"_prevHeight")?t.height=t._prevHeight:delete t.height,delete t._prevWidth,delete t._prevHeight})}function E(r,e){var t=r.select("g."+e);return t.empty()&&(t=r.append("g").attr("class",e)),t}function ot(r,e,t){const a=e.width,n=e.height,i=(a+n)*.9,o=[{x:i/2,y:0},{x:i,y:-i/2},{x:i/2,y:-i},{x:0,y:-i/2}],s=I(r,i,i,o);return t.intersect=function(d){return L(t,o,d)},s}function st(r,e,t){const a=e.height,n=a/4,i=e.width+2*n,o=[{x:n,y:0},{x:i-n,y:0},{x:i,y:-a/2},{x:i-n,y:-a},{x:n,y:-a},{x:0,y:-a/2}],s=I(r,i,a,o);return t.intersect=function(d){return L(t,o,d)},s}function lt(r,e,t){const a=e.width,n=e.height,i=[{x:-n/2,y:0},{x:a,y:0},{x:a,y:-n},{x:-n/2,y:-n},{x:0,y:-n/2}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function dt(r,e,t){const a=e.width,n=e.height,i=[{x:-2*n/6,y:0},{x:a-n/6,y:0},{x:a+2*n/6,y:-n},{x:n/6,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function ct(r,e,t){const a=e.width,n=e.height,i=[{x:2*n/6,y:0},{x:a+n/6,y:0},{x:a-2*n/6,y:-n},{x:-n/6,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function ht(r,e,t){const a=e.width,n=e.height,i=[{x:-2*n/6,y:0},{x:a+2*n/6,y:0},{x:a-n/6,y:-n},{x:n/6,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function ut(r,e,t){const a=e.width,n=e.height,i=[{x:n/6,y:0},{x:a-n/6,y:0},{x:a+2*n/6,y:-n},{x:-2*n/6,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function pt(r,e,t){const a=e.width,n=e.height,i=[{x:0,y:0},{x:a+n/2,y:0},{x:a,y:-n/2},{x:a+n/2,y:-n},{x:0,y:-n}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function ft(r,e,t){const a=e.height,n=e.width+a/4,i=r.insert("rect",":first-child").attr("rx",a/2).attr("ry",a/2).attr("x",-n/2).attr("y",-a/2).attr("width",n).attr("height",a);return t.intersect=function(o){return F(t,o)},i}function gt(r,e,t){const a=e.width,n=e.height,i=[{x:0,y:0},{x:a,y:0},{x:a,y:-n},{x:0,y:-n},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-n},{x:-8,y:-n},{x:-8,y:0}],o=I(r,a,n,i);return t.intersect=function(s){return L(t,i,s)},o}function yt(r,e,t){const a=e.width,n=a/2,i=n/(2.5+a/50),o=e.height+i,s="M 0,"+i+" a "+n+","+i+" 0,0,0 "+a+" 0 a "+n+","+i+" 0,0,0 "+-a+" 0 l 0,"+o+" a "+n+","+i+" 0,0,0 "+a+" 0 l 0,"+-o,d=r.attr("label-offset-y",i).insert("path",":first-child").attr("d",s).attr("transform","translate("+-a/2+","+-(o/2+i)+")");return t.intersect=function(u){const l=F(t,u),g=l.x-t.x;if(n!=0&&(Math.abs(g)<t.width/2||Math.abs(g)==t.width/2&&Math.abs(l.y-t.y)>t.height/2-i)){let c=i*i*(1-g*g/(n*n));c!=0&&(c=Math.sqrt(c)),c=i-c,u.y-t.y>0&&(c=-c),l.y+=c}return l},d}function ue(r){r.shapes().question=ot,r.shapes().hexagon=st,r.shapes().stadium=ft,r.shapes().subroutine=gt,r.shapes().cylinder=yt,r.shapes().rect_left_inv_arrow=lt,r.shapes().lean_right=dt,r.shapes().lean_left=ct,r.shapes().trapezoid=ht,r.shapes().inv_trapezoid=ut,r.shapes().rect_right_inv_arrow=pt}function pe(r){r({question:ot}),r({hexagon:st}),r({stadium:ft}),r({subroutine:gt}),r({cylinder:yt}),r({rect_left_inv_arrow:lt}),r({lean_right:dt}),r({lean_left:ct}),r({trapezoid:ht}),r({inv_trapezoid:ut}),r({rect_right_inv_arrow:pt})}function I(r,e,t,a){return r.insert("polygon",":first-child").attr("points",a.map(function(n){return n.x+","+n.y}).join(" ")).attr("transform","translate("+-e/2+","+t/2+")")}const fe={addToRender:ue,addToRenderV2:pe},wt={},ge=function(r){const e=Object.keys(r);for(const t of e)wt[t]=r[t]},bt=async function(r,e,t,a,n,i){const o=a?a.select(`[id="${t}"]`):x(`[id="${t}"]`),s=n||document,d=Object.keys(r);for(const u of d){const l=r[u];let g="default";l.classes.length>0&&(g=l.classes.join(" "));const c=U(l.styles);let h=l.text!==void 0?l.text:l.id,f;if(Q($().flowchart.htmlLabels)){const w={label:await J(h.replace(/fa[blrs]?:fa-[\w-]+/g,k=>`<i class='${k.replace(":"," ")}'></i>`),$())};f=tt(o,w).node(),f.parentNode.removeChild(f)}else{const w=s.createElementNS("http://www.w3.org/2000/svg","text");w.setAttribute("style",c.labelStyle.replace("color:","fill:"));const k=h.split(Z.lineBreakRegex);for(const T of k){const S=s.createElementNS("http://www.w3.org/2000/svg","tspan");S.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),S.setAttribute("dy","1em"),S.setAttribute("x","1"),S.textContent=T,w.appendChild(S)}f=w}let b=0,p="";switch(l.type){case"round":b=5,p="rect";break;case"square":p="rect";break;case"diamond":p="question";break;case"hexagon":p="hexagon";break;case"odd":p="rect_left_inv_arrow";break;case"lean_right":p="lean_right";break;case"lean_left":p="lean_left";break;case"trapezoid":p="trapezoid";break;case"inv_trapezoid":p="inv_trapezoid";break;case"odd_right":p="rect_left_inv_arrow";break;case"circle":p="circle";break;case"ellipse":p="ellipse";break;case"stadium":p="stadium";break;case"subroutine":p="subroutine";break;case"cylinder":p="cylinder";break;case"group":p="rect";break;default:p="rect"}j.warn("Adding node",l.id,l.domId),e.setNode(i.db.lookUpDomId(l.id),{labelType:"svg",labelStyle:c.labelStyle,shape:p,label:f,rx:b,ry:b,class:g,style:c.style,id:i.db.lookUpDomId(l.id)})}},xt=async function(r,e,t){let a=0,n,i;if(r.defaultStyle!==void 0){const o=U(r.defaultStyle);n=o.style,i=o.labelStyle}for(const o of r){a++;const s="L-"+o.start+"-"+o.end,d="LS-"+o.start,u="LE-"+o.end,l={};o.type==="arrow_open"?l.arrowhead="none":l.arrowhead="normal";let g="",c="";if(o.style!==void 0){const h=U(o.style);g=h.style,c=h.labelStyle}else switch(o.stroke){case"normal":g="fill:none",n!==void 0&&(g=n),i!==void 0&&(c=i);break;case"dotted":g="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":g=" stroke-width: 3.5px;fill:none";break}l.style=g,l.labelStyle=c,o.interpolate!==void 0?l.curve=R(o.interpolate,C):r.defaultInterpolate!==void 0?l.curve=R(r.defaultInterpolate,C):l.curve=R(wt.curve,C),o.text===void 0?o.style!==void 0&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",Q($().flowchart.htmlLabels)?(l.labelType="html",l.label=`<span id="L-${s}" class="edgeLabel L-${d}' L-${u}" style="${l.labelStyle}">${await J(o.text.replace(/fa[blrs]?:fa-[\w-]+/g,h=>`<i class='${h.replace(":"," ")}'></i>`),$())}</span>`):(l.labelType="text",l.label=o.text.replace(Z.lineBreakRegex,`
|
|
4
|
+
`),o.style===void 0&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),l.id=s,l.class=d+" "+u,l.minlen=o.length||1,e.setEdge(t.db.lookUpDomId(o.start),t.db.lookUpDomId(o.end),l,a)}},ye=function(r,e){return j.info("Extracting classes"),e.db.getClasses()},we=async function(r,e,t,a){j.info("Drawing flowchart");const{securityLevel:n,flowchart:i}=$();let o;n==="sandbox"&&(o=x("#i"+e));const s=n==="sandbox"?x(o.nodes()[0].contentDocument.body):x("body"),d=n==="sandbox"?o.nodes()[0].contentDocument:document;let u=a.db.getDirection();u===void 0&&(u="TD");const l=i.nodeSpacing||50,g=i.rankSpacing||50,c=new St({multigraph:!0,compound:!0}).setGraph({rankdir:u,nodesep:l,ranksep:g,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let h;const f=a.db.getSubGraphs();for(let y=f.length-1;y>=0;y--)h=f[y],a.db.addVertex(h.id,h.title,"group",void 0,h.classes);const b=a.db.getVertices();j.warn("Get vertices",b);const p=a.db.getEdges();let w=0;for(w=f.length-1;w>=0;w--){h=f[w],Mt("cluster").append("text");for(let y=0;y<h.nodes.length;y++)j.warn("Setting subgraph",h.nodes[y],a.db.lookUpDomId(h.nodes[y]),a.db.lookUpDomId(h.id)),c.setParent(a.db.lookUpDomId(h.nodes[y]),a.db.lookUpDomId(h.id))}await bt(b,c,e,s,d,a),await xt(p,c,a);const k=new se;fe.addToRender(k),k.arrows().none=function(y,v,_,m){const M=y.append("marker").attr("id",v).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");A(M,_[m+"Style"])},k.arrows().normal=function(y,v){y.append("marker").attr("id",v).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};const T=s.select(`[id="${e}"]`),S=s.select("#"+e+" g");for(k(S,c),S.selectAll("g.node").attr("title",function(){return a.db.getTooltip(this.id)}),a.db.indexNodes("subGraph"+w),w=0;w<f.length;w++)if(h=f[w],h.title!=="undefined"){const y=d.querySelectorAll("#"+e+' [id="'+a.db.lookUpDomId(h.id)+'"] rect'),v=d.querySelectorAll("#"+e+' [id="'+a.db.lookUpDomId(h.id)+'"]'),_=y[0].x.baseVal.value,m=y[0].y.baseVal.value,M=y[0].width.baseVal.value,N=x(v[0]).select(".label");N.attr("transform",`translate(${_+M/2}, ${m+14})`),N.attr("id",e+"Text");for(let P=0;P<h.classes.length;P++)v[0].classList.add(h.classes[P])}if(!i.htmlLabels){const y=d.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const v of y){const _=v.getBBox(),m=d.createElementNS("http://www.w3.org/2000/svg","rect");m.setAttribute("rx",0),m.setAttribute("ry",0),m.setAttribute("width",_.width),m.setAttribute("height",_.height),v.insertBefore(m,v.firstChild)}}mt(c,T,i.diagramPadding,i.useMaxWidth),Object.keys(b).forEach(function(y){const v=b[y];if(v.link){const _=s.select("#"+e+' [id="'+a.db.lookUpDomId(y)+'"]');if(_){const m=d.createElementNS("http://www.w3.org/2000/svg","a");m.setAttributeNS("http://www.w3.org/2000/svg","class",v.classes.join(" ")),m.setAttributeNS("http://www.w3.org/2000/svg","href",v.link),m.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),n==="sandbox"?m.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):v.linkTarget&&m.setAttributeNS("http://www.w3.org/2000/svg","target",v.linkTarget);const M=_.insert(function(){return m},":first-child"),N=_.select(".label-container");N&&M.append(function(){return N.node()});const P=_.select(".label");P&&M.append(function(){return P.node()})}}})},be={setConf:ge,addVertices:bt,addEdges:xt,getClasses:ye,draw:we},Te={parser:vt,db:D,renderer:Tt,styles:It,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,be.setConf(r.flowchart),D.clear(),D.setGen("gen-1")}};export{Te as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o,X as e}from"./flowDb-c6c81e3f-DFROkPpA-B3HlgleO.js";import{h as a,w as t}from"./styles-d45a18b0-VfGWd52Q-CGigGBMU.js";import{J as s}from"./index-BocEneU2.js";import"./graph-CvRY9YIM-BSWPV9Nr.js";import"./layout-DSZZaifl-Dg6wRbVD.js";import"./index-5325376f-D7k5u-pg-BkjFLQrR.js";import"./clone-C0MdfhAf-BMHvCdCo.js";import"./edges-96097737-BnGLzlID-DglIvYsr.js";import"./createText-1719965b-D5GExXUl-Ckz8tHz2.js";import"./channel-BYhLgIow-BRybLlZc.js";const k={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,s({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{k as diagram};
|