@eventcatalogtest/studio
Version:
A drag and drop UI for distributed systems that keeps your diagrams where they belong – in your repo
1 lines • 70.9 kB
JavaScript
"use strict";exports.id=9540,exports.ids=[9540],exports.modules={18530:(a,b,d)=>{d.d(b,{CP:()=>k,HT:()=>m,PB:()=>l,aC:()=>j,lC:()=>h,m:()=>i,tk:()=>g});var e=d(32892),f=d(26595),g=(0,e.K2)((a,b)=>{let d=a.append("rect");if(d.attr("x",b.x),d.attr("y",b.y),d.attr("fill",b.fill),d.attr("stroke",b.stroke),d.attr("width",b.width),d.attr("height",b.height),b.name&&d.attr("name",b.name),b.rx&&d.attr("rx",b.rx),b.ry&&d.attr("ry",b.ry),void 0!==b.attrs)for(let a in b.attrs)d.attr(a,b.attrs[a]);return b.class&&d.attr("class",b.class),d},"drawRect"),h=(0,e.K2)((a,b)=>{g(a,{x:b.startx,y:b.starty,width:b.stopx-b.startx,height:b.stopy-b.starty,fill:b.fill,stroke:b.stroke,class:"rect"}).lower()},"drawBackgroundRect"),i=(0,e.K2)((a,b)=>{let d=b.text.replace(e.H1," "),f=a.append("text");f.attr("x",b.x),f.attr("y",b.y),f.attr("class","legend"),f.style("text-anchor",b.anchor),b.class&&f.attr("class",b.class);let g=f.append("tspan");return g.attr("x",b.x+2*b.textMargin),g.text(d),f},"drawText"),j=(0,e.K2)((a,b,d,e)=>{let g=a.append("image");g.attr("x",b),g.attr("y",d);let h=(0,f.J)(e);g.attr("xlink:href",h)},"drawImage"),k=(0,e.K2)((a,b,d,e)=>{let g=a.append("use");g.attr("x",b),g.attr("y",d);let h=(0,f.J)(e);g.attr("xlink:href",`#${h}`)},"drawEmbeddedImage"),l=(0,e.K2)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),m=(0,e.K2)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj")},19540:(a,b,d)=>{d.d(b,{diagram:()=>aD});var e,f=d(18530),g=d(65299),h=d(32892),i=d(38073),j=d(26595),k=function(){var a=(0,h.K2)(function(a,b,d,e){for(d=d||{},e=a.length;e--;d[a[e]]=b);return d},"o"),b=[1,24],d=[1,25],e=[1,26],f=[1,27],g=[1,28],i=[1,63],j=[1,64],k=[1,65],l=[1,66],m=[1,67],n=[1,68],o=[1,69],p=[1,29],q=[1,30],r=[1,31],s=[1,32],t=[1,33],u=[1,34],v=[1,35],w=[1,36],x=[1,37],y=[1,38],z=[1,39],A=[1,40],B=[1,41],C=[1,42],D=[1,43],E=[1,44],F=[1,45],G=[1,46],H=[1,47],I=[1,48],J=[1,50],K=[1,51],L=[1,52],M=[1,53],N=[1,54],O=[1,55],P=[1,56],Q=[1,57],R=[1,58],S=[1,59],T=[1,60],U=[14,42],V=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],W=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],X=[1,82],Y=[1,83],Z=[1,84],$=[1,85],_=[12,14,42],aa=[12,14,33,42],ab=[12,14,33,42,76,77,79,80],ac=[12,33],ad=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ae={trace:(0,h.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:(0,h.K2)(function(a,b,d,e,f,g,h){var i=g.length-1;switch(f){case 3:e.setDirection("TB");break;case 4:e.setDirection("BT");break;case 5:e.setDirection("RL");break;case 6:e.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:e.setC4Type(g[i-3]);break;case 19:e.setTitle(g[i].substring(6)),this.$=g[i].substring(6);break;case 20:e.setAccDescription(g[i].substring(15)),this.$=g[i].substring(15);break;case 21:this.$=g[i].trim(),e.setTitle(this.$);break;case 22:case 23:this.$=g[i].trim(),e.setAccDescription(this.$);break;case 28:g[i].splice(2,0,"ENTERPRISE"),e.addPersonOrSystemBoundary(...g[i]),this.$=g[i];break;case 29:g[i].splice(2,0,"SYSTEM"),e.addPersonOrSystemBoundary(...g[i]),this.$=g[i];break;case 30:e.addPersonOrSystemBoundary(...g[i]),this.$=g[i];break;case 31:g[i].splice(2,0,"CONTAINER"),e.addContainerBoundary(...g[i]),this.$=g[i];break;case 32:e.addDeploymentNode("node",...g[i]),this.$=g[i];break;case 33:e.addDeploymentNode("nodeL",...g[i]),this.$=g[i];break;case 34:e.addDeploymentNode("nodeR",...g[i]),this.$=g[i];break;case 35:e.popBoundaryParseStack();break;case 39:e.addPersonOrSystem("person",...g[i]),this.$=g[i];break;case 40:e.addPersonOrSystem("external_person",...g[i]),this.$=g[i];break;case 41:e.addPersonOrSystem("system",...g[i]),this.$=g[i];break;case 42:e.addPersonOrSystem("system_db",...g[i]),this.$=g[i];break;case 43:e.addPersonOrSystem("system_queue",...g[i]),this.$=g[i];break;case 44:e.addPersonOrSystem("external_system",...g[i]),this.$=g[i];break;case 45:e.addPersonOrSystem("external_system_db",...g[i]),this.$=g[i];break;case 46:e.addPersonOrSystem("external_system_queue",...g[i]),this.$=g[i];break;case 47:e.addContainer("container",...g[i]),this.$=g[i];break;case 48:e.addContainer("container_db",...g[i]),this.$=g[i];break;case 49:e.addContainer("container_queue",...g[i]),this.$=g[i];break;case 50:e.addContainer("external_container",...g[i]),this.$=g[i];break;case 51:e.addContainer("external_container_db",...g[i]),this.$=g[i];break;case 52:e.addContainer("external_container_queue",...g[i]),this.$=g[i];break;case 53:e.addComponent("component",...g[i]),this.$=g[i];break;case 54:e.addComponent("component_db",...g[i]),this.$=g[i];break;case 55:e.addComponent("component_queue",...g[i]),this.$=g[i];break;case 56:e.addComponent("external_component",...g[i]),this.$=g[i];break;case 57:e.addComponent("external_component_db",...g[i]),this.$=g[i];break;case 58:e.addComponent("external_component_queue",...g[i]),this.$=g[i];break;case 60:e.addRel("rel",...g[i]),this.$=g[i];break;case 61:e.addRel("birel",...g[i]),this.$=g[i];break;case 62:e.addRel("rel_u",...g[i]),this.$=g[i];break;case 63:e.addRel("rel_d",...g[i]),this.$=g[i];break;case 64:e.addRel("rel_l",...g[i]),this.$=g[i];break;case 65:e.addRel("rel_r",...g[i]),this.$=g[i];break;case 66:e.addRel("rel_b",...g[i]),this.$=g[i];break;case 67:g[i].splice(0,1),e.addRel("rel",...g[i]),this.$=g[i];break;case 68:e.updateElStyle("update_el_style",...g[i]),this.$=g[i];break;case 69:e.updateRelStyle("update_rel_style",...g[i]),this.$=g[i];break;case 70:e.updateLayoutConfig("update_layout_config",...g[i]),this.$=g[i];break;case 71:this.$=[g[i]];break;case 72:g[i].unshift(g[i-1]),this.$=g[i];break;case 73:case 75:this.$=g[i].trim();break;case 74:let j={};j[g[i-1].trim()]=g[i].trim(),this.$=j;break;case 76:this.$=""}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:b,23:d,24:e,26:f,28:g,29:49,30:61,32:62,34:i,36:j,37:k,38:l,39:m,40:n,41:o,43:23,44:p,45:q,46:r,47:s,48:t,49:u,50:v,51:w,52:x,53:y,54:z,55:A,56:B,57:C,58:D,59:E,60:F,61:G,62:H,63:I,64:J,65:K,66:L,67:M,68:N,69:O,70:P,71:Q,72:R,73:S,74:T},{13:70,19:20,20:21,21:22,22:b,23:d,24:e,26:f,28:g,29:49,30:61,32:62,34:i,36:j,37:k,38:l,39:m,40:n,41:o,43:23,44:p,45:q,46:r,47:s,48:t,49:u,50:v,51:w,52:x,53:y,54:z,55:A,56:B,57:C,58:D,59:E,60:F,61:G,62:H,63:I,64:J,65:K,66:L,67:M,68:N,69:O,70:P,71:Q,72:R,73:S,74:T},{13:71,19:20,20:21,21:22,22:b,23:d,24:e,26:f,28:g,29:49,30:61,32:62,34:i,36:j,37:k,38:l,39:m,40:n,41:o,43:23,44:p,45:q,46:r,47:s,48:t,49:u,50:v,51:w,52:x,53:y,54:z,55:A,56:B,57:C,58:D,59:E,60:F,61:G,62:H,63:I,64:J,65:K,66:L,67:M,68:N,69:O,70:P,71:Q,72:R,73:S,74:T},{13:72,19:20,20:21,21:22,22:b,23:d,24:e,26:f,28:g,29:49,30:61,32:62,34:i,36:j,37:k,38:l,39:m,40:n,41:o,43:23,44:p,45:q,46:r,47:s,48:t,49:u,50:v,51:w,52:x,53:y,54:z,55:A,56:B,57:C,58:D,59:E,60:F,61:G,62:H,63:I,64:J,65:K,66:L,67:M,68:N,69:O,70:P,71:Q,72:R,73:S,74:T},{13:73,19:20,20:21,21:22,22:b,23:d,24:e,26:f,28:g,29:49,30:61,32:62,34:i,36:j,37:k,38:l,39:m,40:n,41:o,43:23,44:p,45:q,46:r,47:s,48:t,49:u,50:v,51:w,52:x,53:y,54:z,55:A,56:B,57:C,58:D,59:E,60:F,61:G,62:H,63:I,64:J,65:K,66:L,67:M,68:N,69:O,70:P,71:Q,72:R,73:S,74:T},{14:[1,74]},a(U,[2,13],{43:23,29:49,30:61,32:62,20:75,34:i,36:j,37:k,38:l,39:m,40:n,41:o,44:p,45:q,46:r,47:s,48:t,49:u,50:v,51:w,52:x,53:y,54:z,55:A,56:B,57:C,58:D,59:E,60:F,61:G,62:H,63:I,64:J,65:K,66:L,67:M,68:N,69:O,70:P,71:Q,72:R,73:S,74:T}),a(U,[2,14]),a(V,[2,16],{12:[1,76]}),a(U,[2,36],{12:[1,77]}),a(W,[2,19]),a(W,[2,20]),{25:[1,78]},{27:[1,79]},a(W,[2,23]),{35:80,75:81,76:X,77:Y,79:Z,80:$},{35:86,75:81,76:X,77:Y,79:Z,80:$},{35:87,75:81,76:X,77:Y,79:Z,80:$},{35:88,75:81,76:X,77:Y,79:Z,80:$},{35:89,75:81,76:X,77:Y,79:Z,80:$},{35:90,75:81,76:X,77:Y,79:Z,80:$},{35:91,75:81,76:X,77:Y,79:Z,80:$},{35:92,75:81,76:X,77:Y,79:Z,80:$},{35:93,75:81,76:X,77:Y,79:Z,80:$},{35:94,75:81,76:X,77:Y,79:Z,80:$},{35:95,75:81,76:X,77:Y,79:Z,80:$},{35:96,75:81,76:X,77:Y,79:Z,80:$},{35:97,75:81,76:X,77:Y,79:Z,80:$},{35:98,75:81,76:X,77:Y,79:Z,80:$},{35:99,75:81,76:X,77:Y,79:Z,80:$},{35:100,75:81,76:X,77:Y,79:Z,80:$},{35:101,75:81,76:X,77:Y,79:Z,80:$},{35:102,75:81,76:X,77:Y,79:Z,80:$},{35:103,75:81,76:X,77:Y,79:Z,80:$},{35:104,75:81,76:X,77:Y,79:Z,80:$},a(_,[2,59]),{35:105,75:81,76:X,77:Y,79:Z,80:$},{35:106,75:81,76:X,77:Y,79:Z,80:$},{35:107,75:81,76:X,77:Y,79:Z,80:$},{35:108,75:81,76:X,77:Y,79:Z,80:$},{35:109,75:81,76:X,77:Y,79:Z,80:$},{35:110,75:81,76:X,77:Y,79:Z,80:$},{35:111,75:81,76:X,77:Y,79:Z,80:$},{35:112,75:81,76:X,77:Y,79:Z,80:$},{35:113,75:81,76:X,77:Y,79:Z,80:$},{35:114,75:81,76:X,77:Y,79:Z,80:$},{35:115,75:81,76:X,77:Y,79:Z,80:$},{20:116,29:49,30:61,32:62,34:i,36:j,37:k,38:l,39:m,40:n,41:o,43:23,44:p,45:q,46:r,47:s,48:t,49:u,50:v,51:w,52:x,53:y,54:z,55:A,56:B,57:C,58:D,59:E,60:F,61:G,62:H,63:I,64:J,65:K,66:L,67:M,68:N,69:O,70:P,71:Q,72:R,73:S,74:T},{12:[1,118],33:[1,117]},{35:119,75:81,76:X,77:Y,79:Z,80:$},{35:120,75:81,76:X,77:Y,79:Z,80:$},{35:121,75:81,76:X,77:Y,79:Z,80:$},{35:122,75:81,76:X,77:Y,79:Z,80:$},{35:123,75:81,76:X,77:Y,79:Z,80:$},{35:124,75:81,76:X,77:Y,79:Z,80:$},{35:125,75:81,76:X,77:Y,79:Z,80:$},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},a(U,[2,15]),a(V,[2,17],{21:22,19:130,22:b,23:d,24:e,26:f,28:g}),a(U,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:b,23:d,24:e,26:f,28:g,34:i,36:j,37:k,38:l,39:m,40:n,41:o,44:p,45:q,46:r,47:s,48:t,49:u,50:v,51:w,52:x,53:y,54:z,55:A,56:B,57:C,58:D,59:E,60:F,61:G,62:H,63:I,64:J,65:K,66:L,67:M,68:N,69:O,70:P,71:Q,72:R,73:S,74:T}),a(W,[2,21]),a(W,[2,22]),a(_,[2,39]),a(aa,[2,71],{75:81,35:132,76:X,77:Y,79:Z,80:$}),a(ab,[2,73]),{78:[1,133]},a(ab,[2,75]),a(ab,[2,76]),a(_,[2,40]),a(_,[2,41]),a(_,[2,42]),a(_,[2,43]),a(_,[2,44]),a(_,[2,45]),a(_,[2,46]),a(_,[2,47]),a(_,[2,48]),a(_,[2,49]),a(_,[2,50]),a(_,[2,51]),a(_,[2,52]),a(_,[2,53]),a(_,[2,54]),a(_,[2,55]),a(_,[2,56]),a(_,[2,57]),a(_,[2,58]),a(_,[2,60]),a(_,[2,61]),a(_,[2,62]),a(_,[2,63]),a(_,[2,64]),a(_,[2,65]),a(_,[2,66]),a(_,[2,67]),a(_,[2,68]),a(_,[2,69]),a(_,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},a(ac,[2,28]),a(ac,[2,29]),a(ac,[2,30]),a(ac,[2,31]),a(ac,[2,32]),a(ac,[2,33]),a(ac,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},a(V,[2,18]),a(U,[2,38]),a(aa,[2,72]),a(ab,[2,74]),a(_,[2,24]),a(_,[2,35]),a(ad,[2,25]),a(ad,[2,26],{12:[1,138]}),a(ad,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:(0,h.K2)(function(a,b){if(b.recoverable)this.trace(a);else{var d=Error(a);throw d.hash=b,d}},"parseError"),parse:(0,h.K2)(function(a){var b=this,d=[0],e=[],f=[null],g=[],i=this.table,j="",k=0,l=0,m=0,n=g.slice.call(arguments,1),o=Object.create(this.lexer),p={};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(p[q]=this.yy[q]);o.setInput(a,p),p.lexer=o,p.parser=this,void 0===o.yylloc&&(o.yylloc={});var r=o.yylloc;g.push(r);var s=o.options&&o.options.ranges;function t(){var a;return"number"!=typeof(a=e.pop()||o.lex()||1)&&(a instanceof Array&&(a=(e=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof p.parseError?this.parseError=p.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,h.K2)(function(a){d.length=d.length-2*a,f.length=f.length-a,g.length=g.length-a},"popStack"),(0,h.K2)(t,"lex");for(var u,v,w,x,y,z,A,B,C,D={};;){if(w=d[d.length-1],this.defaultActions[w]?x=this.defaultActions[w]:(null==u&&(u=t()),x=i[w]&&i[w][u]),void 0===x||!x.length||!x[0]){var E="";for(z in C=[],i[w])this.terminals_[z]&&z>2&&C.push("'"+this.terminals_[z]+"'");E=o.showPosition?"Parse error on line "+(k+1)+":\n"+o.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[u]||u)+"'":"Parse error on line "+(k+1)+": Unexpected "+(1==u?"end of input":"'"+(this.terminals_[u]||u)+"'"),this.parseError(E,{text:o.match,token:this.terminals_[u]||u,line:o.yylineno,loc:r,expected:C})}if(x[0]instanceof Array&&x.length>1)throw Error("Parse Error: multiple actions possible at state: "+w+", token: "+u);switch(x[0]){case 1:d.push(u),f.push(o.yytext),g.push(o.yylloc),d.push(x[1]),u=null,v?(u=v,v=null):(l=o.yyleng,j=o.yytext,k=o.yylineno,r=o.yylloc,m>0&&m--);break;case 2:if(A=this.productions_[x[1]][1],D.$=f[f.length-A],D._$={first_line:g[g.length-(A||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(A||1)].first_column,last_column:g[g.length-1].last_column},s&&(D._$.range=[g[g.length-(A||1)].range[0],g[g.length-1].range[1]]),void 0!==(y=this.performAction.apply(D,[j,l,k,p,x[1],f,g].concat(n))))return y;A&&(d=d.slice(0,-1*A*2),f=f.slice(0,-1*A),g=g.slice(0,-1*A)),d.push(this.productions_[x[1]][0]),f.push(D.$),g.push(D._$),B=i[d[d.length-2]][d[d.length-1]],d.push(B);break;case 3:return!0}}return!0},"parse")};function af(){this.yy={}}return ae.lexer={EOF:1,parseError:(0,h.K2)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,h.K2)(function(a,b){return this.yy=b||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},"setInput"),input:(0,h.K2)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:(0,h.K2)(function(a){var b=a.length,d=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var e=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),d.length-1&&(this.yylineno-=d.length-1);var f=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:d?(d.length===e.length?this.yylloc.first_column:0)+e[e.length-d.length].length-d[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,h.K2)(function(){return this._more=!0,this},"more"),reject:(0,h.K2)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,h.K2)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,h.K2)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,h.K2)(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,"")},"upcomingInput"),showPosition:(0,h.K2)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,h.K2)(function(a,b){var d,e,f;if(this.options.backtrack_lexer&&(f={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&&(f.yylloc.range=this.yylloc.range.slice(0))),(e=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=e.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:e?e[e.length-1].length-e[e.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],d=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack)for(var g in f)this[g]=f[g];return!1},"test_match"),next:(0,h.K2)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,d,e,f=this._currentRules(),g=0;g<f.length;g++)if((d=this._input.match(this.rules[f[g]]))&&(!b||d[0].length>b[0].length)){if(b=d,e=g,this.options.backtrack_lexer){if(!1!==(a=this.test_match(d,f[g])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,f[e]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,h.K2)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,h.K2)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,h.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,h.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,h.K2)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,h.K2)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,h.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,h.K2)(function(a,b,d,e){switch(d){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 73:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 16:case 70:break;case 14:c;break;case 15:return 12;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:case 53:return this.begin("rel_u"),66;case 54:case 55:return this.begin("rel_d"),67;case 56:case 57:return this.begin("rel_l"),68;case 58:case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:case 79:this.popState(),this.popState();break;case 69:case 71:return 80;case 72:this.begin("string");break;case 74:case 80:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,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,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}},(0,h.K2)(af,"Parser"),af.prototype=ae,ae.Parser=af,new af}();k.parser=k;var l=[],m=[""],n="global",o="",p=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],q=[],r="",s=!1,t=4,u=2,v=(0,h.K2)(function(){return e},"getC4Type"),w=(0,h.K2)(function(a){e=(0,h.jZ)(a,(0,h.D7)())},"setC4Type"),x=(0,h.K2)(function(a,b,d,e,f,g,h,i,j){if(null==a||null==b||null==d||null==e)return;let k={},l=q.find(a=>a.from===b&&a.to===d);if(l?k=l:q.push(k),k.type=a,k.from=b,k.to=d,k.label={text:e},null==f)k.techn={text:""};else if("object"==typeof f){let[a,b]=Object.entries(f)[0];k[a]={text:b}}else k.techn={text:f};if(null==g)k.descr={text:""};else if("object"==typeof g){let[a,b]=Object.entries(g)[0];k[a]={text:b}}else k.descr={text:g};if("object"==typeof h){let[a,b]=Object.entries(h)[0];k[a]=b}else k.sprite=h;if("object"==typeof i){let[a,b]=Object.entries(i)[0];k[a]=b}else k.tags=i;if("object"==typeof j){let[a,b]=Object.entries(j)[0];k[a]=b}else k.link=j;k.wrap=T()},"addRel"),y=(0,h.K2)(function(a,b,d,e,f,g,h){if(null===b||null===d)return;let i={},j=l.find(a=>a.alias===b);if(j&&b===j.alias?i=j:(i.alias=b,l.push(i)),null==d?i.label={text:""}:i.label={text:d},null==e)i.descr={text:""};else if("object"==typeof e){let[a,b]=Object.entries(e)[0];i[a]={text:b}}else i.descr={text:e};if("object"==typeof f){let[a,b]=Object.entries(f)[0];i[a]=b}else i.sprite=f;if("object"==typeof g){let[a,b]=Object.entries(g)[0];i[a]=b}else i.tags=g;if("object"==typeof h){let[a,b]=Object.entries(h)[0];i[a]=b}else i.link=h;i.typeC4Shape={text:a},i.parentBoundary=n,i.wrap=T()},"addPersonOrSystem"),z=(0,h.K2)(function(a,b,d,e,f,g,h,i){if(null===b||null===d)return;let j={},k=l.find(a=>a.alias===b);if(k&&b===k.alias?j=k:(j.alias=b,l.push(j)),null==d?j.label={text:""}:j.label={text:d},null==e)j.techn={text:""};else if("object"==typeof e){let[a,b]=Object.entries(e)[0];j[a]={text:b}}else j.techn={text:e};if(null==f)j.descr={text:""};else if("object"==typeof f){let[a,b]=Object.entries(f)[0];j[a]={text:b}}else j.descr={text:f};if("object"==typeof g){let[a,b]=Object.entries(g)[0];j[a]=b}else j.sprite=g;if("object"==typeof h){let[a,b]=Object.entries(h)[0];j[a]=b}else j.tags=h;if("object"==typeof i){let[a,b]=Object.entries(i)[0];j[a]=b}else j.link=i;j.wrap=T(),j.typeC4Shape={text:a},j.parentBoundary=n},"addContainer"),A=(0,h.K2)(function(a,b,d,e,f,g,h,i){if(null===b||null===d)return;let j={},k=l.find(a=>a.alias===b);if(k&&b===k.alias?j=k:(j.alias=b,l.push(j)),null==d?j.label={text:""}:j.label={text:d},null==e)j.techn={text:""};else if("object"==typeof e){let[a,b]=Object.entries(e)[0];j[a]={text:b}}else j.techn={text:e};if(null==f)j.descr={text:""};else if("object"==typeof f){let[a,b]=Object.entries(f)[0];j[a]={text:b}}else j.descr={text:f};if("object"==typeof g){let[a,b]=Object.entries(g)[0];j[a]=b}else j.sprite=g;if("object"==typeof h){let[a,b]=Object.entries(h)[0];j[a]=b}else j.tags=h;if("object"==typeof i){let[a,b]=Object.entries(i)[0];j[a]=b}else j.link=i;j.wrap=T(),j.typeC4Shape={text:a},j.parentBoundary=n},"addComponent"),B=(0,h.K2)(function(a,b,d,e,f){if(null===a||null===b)return;let g={},h=p.find(b=>b.alias===a);if(h&&a===h.alias?g=h:(g.alias=a,p.push(g)),null==b?g.label={text:""}:g.label={text:b},null==d)g.type={text:"system"};else if("object"==typeof d){let[a,b]=Object.entries(d)[0];g[a]={text:b}}else g.type={text:d};if("object"==typeof e){let[a,b]=Object.entries(e)[0];g[a]=b}else g.tags=e;if("object"==typeof f){let[a,b]=Object.entries(f)[0];g[a]=b}else g.link=f;g.parentBoundary=n,g.wrap=T(),o=n,n=a,m.push(o)},"addPersonOrSystemBoundary"),C=(0,h.K2)(function(a,b,d,e,f){if(null===a||null===b)return;let g={},h=p.find(b=>b.alias===a);if(h&&a===h.alias?g=h:(g.alias=a,p.push(g)),null==b?g.label={text:""}:g.label={text:b},null==d)g.type={text:"container"};else if("object"==typeof d){let[a,b]=Object.entries(d)[0];g[a]={text:b}}else g.type={text:d};if("object"==typeof e){let[a,b]=Object.entries(e)[0];g[a]=b}else g.tags=e;if("object"==typeof f){let[a,b]=Object.entries(f)[0];g[a]=b}else g.link=f;g.parentBoundary=n,g.wrap=T(),o=n,n=a,m.push(o)},"addContainerBoundary"),D=(0,h.K2)(function(a,b,d,e,f,g,h,i){if(null===b||null===d)return;let j={},k=p.find(a=>a.alias===b);if(k&&b===k.alias?j=k:(j.alias=b,p.push(j)),null==d?j.label={text:""}:j.label={text:d},null==e)j.type={text:"node"};else if("object"==typeof e){let[a,b]=Object.entries(e)[0];j[a]={text:b}}else j.type={text:e};if(null==f)j.descr={text:""};else if("object"==typeof f){let[a,b]=Object.entries(f)[0];j[a]={text:b}}else j.descr={text:f};if("object"==typeof h){let[a,b]=Object.entries(h)[0];j[a]=b}else j.tags=h;if("object"==typeof i){let[a,b]=Object.entries(i)[0];j[a]=b}else j.link=i;j.nodeType=a,j.parentBoundary=n,j.wrap=T(),o=n,n=b,m.push(o)},"addDeploymentNode"),E=(0,h.K2)(function(){n=o,m.pop(),o=m.pop(),m.push(o)},"popBoundaryParseStack"),F=(0,h.K2)(function(a,b,d,e,f,g,h,i,j,k,m){let n=l.find(a=>a.alias===b);if(void 0!==n||void 0!==(n=p.find(a=>a.alias===b))){if(null!=d)if("object"==typeof d){let[a,b]=Object.entries(d)[0];n[a]=b}else n.bgColor=d;if(null!=e)if("object"==typeof e){let[a,b]=Object.entries(e)[0];n[a]=b}else n.fontColor=e;if(null!=f)if("object"==typeof f){let[a,b]=Object.entries(f)[0];n[a]=b}else n.borderColor=f;if(null!=g)if("object"==typeof g){let[a,b]=Object.entries(g)[0];n[a]=b}else n.shadowing=g;if(null!=h)if("object"==typeof h){let[a,b]=Object.entries(h)[0];n[a]=b}else n.shape=h;if(null!=i)if("object"==typeof i){let[a,b]=Object.entries(i)[0];n[a]=b}else n.sprite=i;if(null!=j)if("object"==typeof j){let[a,b]=Object.entries(j)[0];n[a]=b}else n.techn=j;if(null!=k)if("object"==typeof k){let[a,b]=Object.entries(k)[0];n[a]=b}else n.legendText=k;if(null!=m)if("object"==typeof m){let[a,b]=Object.entries(m)[0];n[a]=b}else n.legendSprite=m}},"updateElStyle"),G=(0,h.K2)(function(a,b,d,e,f,g,h){let i=q.find(a=>a.from===b&&a.to===d);if(void 0!==i){if(null!=e)if("object"==typeof e){let[a,b]=Object.entries(e)[0];i[a]=b}else i.textColor=e;if(null!=f)if("object"==typeof f){let[a,b]=Object.entries(f)[0];i[a]=b}else i.lineColor=f;if(null!=g)if("object"==typeof g){let[a,b]=Object.entries(g)[0];i[a]=parseInt(b)}else i.offsetX=parseInt(g);if(null!=h)if("object"==typeof h){let[a,b]=Object.entries(h)[0];i[a]=parseInt(b)}else i.offsetY=parseInt(h)}},"updateRelStyle"),H=(0,h.K2)(function(a,b,d){let e=t,f=u;e="object"==typeof b?parseInt(Object.values(b)[0]):parseInt(b),f="object"==typeof d?parseInt(Object.values(d)[0]):parseInt(d),e>=1&&(t=e),f>=1&&(u=f)},"updateLayoutConfig"),I=(0,h.K2)(function(){return t},"getC4ShapeInRow"),J=(0,h.K2)(function(){return u},"getC4BoundaryInRow"),K=(0,h.K2)(function(){return n},"getCurrentBoundaryParse"),L=(0,h.K2)(function(){return o},"getParentBoundaryParse"),M=(0,h.K2)(function(a){return null==a?l:l.filter(b=>b.parentBoundary===a)},"getC4ShapeArray"),N=(0,h.K2)(function(a){return l.find(b=>b.alias===a)},"getC4Shape"),O=(0,h.K2)(function(a){return Object.keys(M(a))},"getC4ShapeKeys"),P=(0,h.K2)(function(a){return null==a?p:p.filter(b=>b.parentBoundary===a)},"getBoundaries"),Q=(0,h.K2)(function(){return q},"getRels"),R=(0,h.K2)(function(){return r},"getTitle"),S=(0,h.K2)(function(a){s=a},"setWrap"),T=(0,h.K2)(function(){return s},"autoWrap"),U=(0,h.K2)(function(){l=[],p=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],o="",n="global",m=[""],q=[],m=[""],r="",s=!1,t=4,u=2},"clear"),V=(0,h.K2)(function(a){r=(0,h.jZ)(a,(0,h.D7)())},"setTitle"),W={addPersonOrSystem:y,addPersonOrSystemBoundary:B,addContainer:z,addContainerBoundary:C,addComponent:A,addDeploymentNode:D,popBoundaryParseStack:E,addRel:x,updateElStyle:F,updateRelStyle:G,updateLayoutConfig:H,autoWrap:T,setWrap:S,getC4ShapeArray:M,getC4Shape:N,getC4ShapeKeys:O,getBoundaries:P,getBoundarys:P,getCurrentBoundaryParse:K,getParentBoundaryParse:L,getRels:Q,getTitle:R,getC4Type:v,getC4ShapeInRow:I,getC4BoundaryInRow:J,setAccTitle:h.SV,getAccTitle:h.iN,getAccDescription:h.m7,setAccDescription:h.EI,getConfig:(0,h.K2)(()=>(0,h.D7)().c4,"getConfig"),clear:U,LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:V,setC4Type:w},X=(0,h.K2)(function(a,b){return(0,f.tk)(a,b)},"drawRect"),Y=(0,h.K2)(function(a,b,d,e,f,g){let h=a.append("image");h.attr("width",b),h.attr("height",d),h.attr("x",e),h.attr("y",f);let i=g.startsWith("data:image/png;base64")?g:(0,j.J)(g);h.attr("xlink:href",i)},"drawImage"),Z=(0,h.K2)((a,b,d)=>{let e=a.append("g"),f=0;for(let a of b){let b=a.textColor?a.textColor:"#444444",g=a.lineColor?a.lineColor:"#444444",h=a.offsetX?parseInt(a.offsetX):0,i=a.offsetY?parseInt(a.offsetY):0;if(0===f){let b=e.append("line");b.attr("x1",a.startPoint.x),b.attr("y1",a.startPoint.y),b.attr("x2",a.endPoint.x),b.attr("y2",a.endPoint.y),b.attr("stroke-width","1"),b.attr("stroke",g),b.style("fill","none"),"rel_b"!==a.type&&b.attr("marker-end","url(#arrowhead)"),("birel"===a.type||"rel_b"===a.type)&&b.attr("marker-start","url(#arrowend)"),f=-1}else{let b=e.append("path");b.attr("fill","none").attr("stroke-width","1").attr("stroke",g).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",a.startPoint.x).replaceAll("starty",a.startPoint.y).replaceAll("controlx",a.startPoint.x+(a.endPoint.x-a.startPoint.x)/2-(a.endPoint.x-a.startPoint.x)/4).replaceAll("controly",a.startPoint.y+(a.endPoint.y-a.startPoint.y)/2).replaceAll("stopx",a.endPoint.x).replaceAll("stopy",a.endPoint.y)),"rel_b"!==a.type&&b.attr("marker-end","url(#arrowhead)"),("birel"===a.type||"rel_b"===a.type)&&b.attr("marker-start","url(#arrowend)")}let j=d.messageFont();ai(d)(a.label.text,e,Math.min(a.startPoint.x,a.endPoint.x)+Math.abs(a.endPoint.x-a.startPoint.x)/2+h,Math.min(a.startPoint.y,a.endPoint.y)+Math.abs(a.endPoint.y-a.startPoint.y)/2+i,a.label.width,a.label.height,{fill:b},j),a.techn&&""!==a.techn.text&&(j=d.messageFont(),ai(d)("["+a.techn.text+"]",e,Math.min(a.startPoint.x,a.endPoint.x)+Math.abs(a.endPoint.x-a.startPoint.x)/2+h,Math.min(a.startPoint.y,a.endPoint.y)+Math.abs(a.endPoint.y-a.startPoint.y)/2+d.messageFontSize+5+i,Math.max(a.label.width,a.techn.width),a.techn.height,{fill:b,"font-style":"italic"},j))}},"drawRels"),$=(0,h.K2)(function(a,b,d){let e=a.append("g"),f=b.bgColor?b.bgColor:"none",g=b.borderColor?b.borderColor:"#444444",h=b.fontColor?b.fontColor:"black",i={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};b.nodeType&&(i={"stroke-width":1}),X(e,{x:b.x,y:b.y,fill:f,stroke:g,width:b.width,height:b.height,rx:2.5,ry:2.5,attrs:i});let j=d.boundaryFont();j.fontWeight="bold",j.fontSize=j.fontSize+2,j.fontColor=h,ai(d)(b.label.text,e,b.x,b.y+b.label.Y,b.width,b.height,{fill:"#444444"},j),b.type&&""!==b.type.text&&((j=d.boundaryFont()).fontColor=h,ai(d)(b.type.text,e,b.x,b.y+b.type.Y,b.width,b.height,{fill:"#444444"},j)),b.descr&&""!==b.descr.text&&((j=d.boundaryFont()).fontSize=j.fontSize-2,j.fontColor=h,ai(d)(b.descr.text,e,b.x,b.y+b.descr.Y,b.width,b.height,{fill:"#444444"},j))},"drawBoundary"),_=(0,h.K2)(function(a,b,d){let e=b.bgColor?b.bgColor:d[b.typeC4Shape.text+"_bg_color"],g=b.borderColor?b.borderColor:d[b.typeC4Shape.text+"_border_color"],h=b.fontColor?b.fontColor:"#FFFFFF",i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(b.typeC4Shape.text){case"person":i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}let j=a.append("g");j.attr("class","person-man");let k=(0,f.PB)();switch(b.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":k.x=b.x,k.y=b.y,k.fill=e,k.width=b.width,k.height=b.height,k.stroke=g,k.rx=2.5,k.ry=2.5,k.attrs={"stroke-width":.5},X(j,k);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":j.append("path").attr("fill",e).attr("stroke-width","0.5").attr("stroke",g).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",b.x).replaceAll("starty",b.y).replaceAll("half",b.width/2).replaceAll("height",b.height)),j.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",g).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",b.x).replaceAll("starty",b.y).replaceAll("half",b.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":j.append("path").attr("fill",e).attr("stroke-width","0.5").attr("stroke",g).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",b.x).replaceAll("starty",b.y).replaceAll("width",b.width).replaceAll("half",b.height/2)),j.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",g).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",b.x+b.width).replaceAll("starty",b.y).replaceAll("half",b.height/2))}let l=ah(d,b.typeC4Shape.text);switch(j.append("text").attr("fill",h).attr("font-family",l.fontFamily).attr("font-size",l.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",b.typeC4Shape.width).attr("x",b.x+b.width/2-b.typeC4Shape.width/2).attr("y",b.y+b.typeC4Shape.Y).text("<<"+b.typeC4Shape.text+">>"),b.typeC4Shape.text){case"person":case"external_person":Y(j,48,48,b.x+b.width/2-24,b.y+b.image.Y,i)}let m=d[b.typeC4Shape.text+"Font"]();return m.fontWeight="bold",m.fontSize=m.fontSize+2,m.fontColor=h,ai(d)(b.label.text,j,b.x,b.y+b.label.Y,b.width,b.height,{fill:h},m),(m=d[b.typeC4Shape.text+"Font"]()).fontColor=h,b.techn&&b.techn?.text!==""?ai(d)(b.techn.text,j,b.x,b.y+b.techn.Y,b.width,b.height,{fill:h,"font-style":"italic"},m):b.type&&""!==b.type.text&&ai(d)(b.type.text,j,b.x,b.y+b.type.Y,b.width,b.height,{fill:h,"font-style":"italic"},m),b.descr&&""!==b.descr.text&&((m=d.personFont()).fontColor=h,ai(d)(b.descr.text,j,b.x,b.y+b.descr.Y,b.width,b.height,{fill:h},m)),b.height},"drawC4Shape"),aa=(0,h.K2)(function(a){a.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-