omni-context-cli 0.0.48 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +7 -7
- package/dist/clients/extension.vsix +0 -0
- package/dist/clients/web/assets/{_baseUniq-CWlTL7nF.js → _baseUniq-O6Fk0Wzr.js} +1 -1
- package/dist/clients/web/assets/{arc-CZjkqmF_.js → arc-n0x23Ctx.js} +1 -1
- package/dist/clients/web/assets/{architectureDiagram-VXUJARFQ-BOYa2bjw.js → architectureDiagram-VXUJARFQ-siUxtu84.js} +1 -1
- package/dist/clients/web/assets/{blockDiagram-VD42YOAC-DDOynruE.js → blockDiagram-VD42YOAC-DSqh9eGY.js} +1 -1
- package/dist/clients/web/assets/{c4Diagram-YG6GDRKO-C-97RpE_.js → c4Diagram-YG6GDRKO-wYR7H7xi.js} +1 -1
- package/dist/clients/web/assets/channel-NwuYDCTJ.js +1 -0
- package/dist/clients/web/assets/{chunk-4BX2VUAB-Cq-CVpiF.js → chunk-4BX2VUAB-Cay_iY5D.js} +1 -1
- package/dist/clients/web/assets/{chunk-55IACEB6-DgNYsQB7.js → chunk-55IACEB6-BeMIObm3.js} +1 -1
- package/dist/clients/web/assets/{chunk-B4BG7PRW-DlQsB2me.js → chunk-B4BG7PRW-B6cIgi7d.js} +1 -1
- package/dist/clients/web/assets/{chunk-DI55MBZ5-BHeF7oM6.js → chunk-DI55MBZ5-BXrfKlO3.js} +1 -1
- package/dist/clients/web/assets/{chunk-FMBD7UC4-D5QlY4R_.js → chunk-FMBD7UC4-67W1cNu_.js} +1 -1
- package/dist/clients/web/assets/{chunk-QN33PNHL-CHk3Nn1_.js → chunk-QN33PNHL-DuPwsSus.js} +1 -1
- package/dist/clients/web/assets/{chunk-QZHKN3VN-CAJ02eyq.js → chunk-QZHKN3VN-DWUuzBl_.js} +1 -1
- package/dist/clients/web/assets/{chunk-TZMSLE5B-fdEkh5Xq.js → chunk-TZMSLE5B-D3SRAd4i.js} +1 -1
- package/dist/clients/web/assets/classDiagram-2ON5EDUG-CA17y53i.js +1 -0
- package/dist/clients/web/assets/classDiagram-v2-WZHVMYZB-CA17y53i.js +1 -0
- package/dist/clients/web/assets/clone-Ccjp7w8U.js +1 -0
- package/dist/clients/web/assets/{cose-bilkent-S5V4N54A-C-KgfDpO.js → cose-bilkent-S5V4N54A-2yiAjDsY.js} +1 -1
- package/dist/clients/web/assets/{dagre-6UL2VRFP-XmHvxEnn.js → dagre-6UL2VRFP-DWtKyQlZ.js} +1 -1
- package/dist/clients/web/assets/{diagram-PSM6KHXK-piStbVS-.js → diagram-PSM6KHXK-BsH8ucOy.js} +1 -1
- package/dist/clients/web/assets/{diagram-QEK2KX5R-CclADJ9n.js → diagram-QEK2KX5R-CgAM_caT.js} +1 -1
- package/dist/clients/web/assets/{diagram-S2PKOQOG-yfPR_M0P.js → diagram-S2PKOQOG-5sXZE5fB.js} +1 -1
- package/dist/clients/web/assets/{erDiagram-Q2GNP2WA-C-QpleLm.js → erDiagram-Q2GNP2WA-SZjIGLfC.js} +1 -1
- package/dist/clients/web/assets/{flowDiagram-NV44I4VS-BXBJgvY4.js → flowDiagram-NV44I4VS-B13r1-Qr.js} +1 -1
- package/dist/clients/web/assets/{ganttDiagram-JELNMOA3-BId-yi2d.js → ganttDiagram-JELNMOA3-tnNnlmJ_.js} +1 -1
- package/dist/clients/web/assets/{gitGraphDiagram-NY62KEGX-C4GmkdUU.js → gitGraphDiagram-NY62KEGX-D3vXxiLR.js} +1 -1
- package/dist/clients/web/assets/{graph-lKpmm44U.js → graph-yEZO5As9.js} +1 -1
- package/dist/clients/web/assets/index-BvMYTiOr.js +27 -0
- package/dist/clients/web/assets/{index-QpapYAy5.css → index-bgcKJQwq.css} +1 -1
- package/dist/clients/web/assets/{infoDiagram-WHAUD3N6-DlTKBMRb.js → infoDiagram-WHAUD3N6-Diqs41Bs.js} +1 -1
- package/dist/clients/web/assets/{journeyDiagram-XKPGCS4Q-uR4zvhag.js → journeyDiagram-XKPGCS4Q-CsFCBnpU.js} +1 -1
- package/dist/clients/web/assets/{kanban-definition-3W4ZIXB7-BAth3XiM.js → kanban-definition-3W4ZIXB7-ToLQEJ6t.js} +1 -1
- package/dist/clients/web/assets/{layout-dqzmM9SC.js → layout-DAYHKwLI.js} +1 -1
- package/dist/clients/web/assets/{linear-BDsjBD51.js → linear-C6-59Tkb.js} +1 -1
- package/dist/clients/web/assets/{min-BpvcSMeI.js → min-CcGwUInn.js} +1 -1
- package/dist/clients/web/assets/{mindmap-definition-VGOIOE7T-YOfHJc2b.js → mindmap-definition-VGOIOE7T-DUxl95g0.js} +1 -1
- package/dist/clients/web/assets/{pieDiagram-ADFJNKIX-sxupIhex.js → pieDiagram-ADFJNKIX-B01HV9sF.js} +1 -1
- package/dist/clients/web/assets/{quadrantDiagram-AYHSOK5B-Clx0aaiI.js → quadrantDiagram-AYHSOK5B-CeqFw4rm.js} +1 -1
- package/dist/clients/web/assets/{requirementDiagram-UZGBJVZJ-Jff8r0V3.js → requirementDiagram-UZGBJVZJ-CFCoQIAQ.js} +1 -1
- package/dist/clients/web/assets/{sankeyDiagram-TZEHDZUN-tCX6Wk6i.js → sankeyDiagram-TZEHDZUN-C4bOlCv6.js} +1 -1
- package/dist/clients/web/assets/{sequenceDiagram-WL72ISMW-B66jOgtV.js → sequenceDiagram-WL72ISMW-CmcZq0aE.js} +1 -1
- package/dist/clients/web/assets/{stateDiagram-FKZM4ZOC-DFsarSTD.js → stateDiagram-FKZM4ZOC-BrC_Infp.js} +1 -1
- package/dist/clients/web/assets/stateDiagram-v2-4FDKWEC3-Bi_Pj5vD.js +1 -0
- package/dist/clients/web/assets/{timeline-definition-IT6M3QCI-B7iIhHj6.js → timeline-definition-IT6M3QCI-C25RxMkJ.js} +1 -1
- package/dist/clients/web/assets/{treemap-KMMF4GRG-bwvPNBHC.js → treemap-KMMF4GRG-CYbXQA3w.js} +1 -1
- package/dist/clients/web/assets/{xychartDiagram-PRI3JC2R-CstqFcD3.js → xychartDiagram-PRI3JC2R-DxEjdm1o.js} +1 -1
- package/dist/clients/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/clients/web/assets/channel-CrQbNsBe.js +0 -1
- package/dist/clients/web/assets/classDiagram-2ON5EDUG-CoAFxeb1.js +0 -1
- package/dist/clients/web/assets/classDiagram-v2-WZHVMYZB-CoAFxeb1.js +0 -1
- package/dist/clients/web/assets/clone-V8tKmkAv.js +0 -1
- package/dist/clients/web/assets/index-5wVqr2Ny.js +0 -27
- package/dist/clients/web/assets/stateDiagram-v2-4FDKWEC3-DhAPZEUr.js +0 -1
package/dist/clients/web/assets/{c4Diagram-YG6GDRKO-C-97RpE_.js → c4Diagram-YG6GDRKO-wYR7H7xi.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,t;import{g as s,d as i}from"./chunk-TZMSLE5B-fdEkh5Xq.js";import{s as n,g as r,a,b as l,_ as o,c as u,d as h,l as f,e as d,f as _,h as b,i as p,j as E,w as y,k as m,m as A}from"./index-5wVqr2Ny.js";var x=function(){var e=o(function(e,t,s,i){for(s=s||{},i=e.length;i--;s[e[i]]=t);return s},"o"),t=[1,24],s=[1,25],i=[1,26],n=[1,27],r=[1,28],a=[1,63],l=[1,64],u=[1,65],h=[1,66],f=[1,67],d=[1,68],_=[1,69],b=[1,29],p=[1,30],E=[1,31],y=[1,32],m=[1,33],A=[1,34],x=[1,35],O=[1,36],T=[1,37],v=[1,38],g=[1,39],C=[1,40],R=[1,41],k=[1,42],S=[1,43],N=[1,44],j=[1,45],w=[1,46],D=[1,47],B=[1,48],I=[1,50],M=[1,51],U=[1,52],L=[1,53],P=[1,54],Y=[1,55],F=[1,56],X=[1,57],Q=[1,58],W=[1,59],q=[1,60],z=[14,42],H=[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],G=[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],V=[1,82],K=[1,83],J=[1,84],Z=[1,85],$=[12,14,42],ee=[12,14,33,42],te=[12,14,33,42,76,77,79,80],se=[12,33],ie=[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],ne={trace:o(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:o(function(e,t,s,i,n,r,a){var l=r.length-1;switch(n){case 3:i.setDirection("TB");break;case 4:i.setDirection("BT");break;case 5:i.setDirection("RL");break;case 6:i.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:i.setC4Type(r[l-3]);break;case 19:i.setTitle(r[l].substring(6)),this.$=r[l].substring(6);break;case 20:i.setAccDescription(r[l].substring(15)),this.$=r[l].substring(15);break;case 21:this.$=r[l].trim(),i.setTitle(this.$);break;case 22:case 23:this.$=r[l].trim(),i.setAccDescription(this.$);break;case 28:r[l].splice(2,0,"ENTERPRISE"),i.addPersonOrSystemBoundary(...r[l]),this.$=r[l];break;case 29:r[l].splice(2,0,"SYSTEM"),i.addPersonOrSystemBoundary(...r[l]),this.$=r[l];break;case 30:i.addPersonOrSystemBoundary(...r[l]),this.$=r[l];break;case 31:r[l].splice(2,0,"CONTAINER"),i.addContainerBoundary(...r[l]),this.$=r[l];break;case 32:i.addDeploymentNode("node",...r[l]),this.$=r[l];break;case 33:i.addDeploymentNode("nodeL",...r[l]),this.$=r[l];break;case 34:i.addDeploymentNode("nodeR",...r[l]),this.$=r[l];break;case 35:i.popBoundaryParseStack();break;case 39:i.addPersonOrSystem("person",...r[l]),this.$=r[l];break;case 40:i.addPersonOrSystem("external_person",...r[l]),this.$=r[l];break;case 41:i.addPersonOrSystem("system",...r[l]),this.$=r[l];break;case 42:i.addPersonOrSystem("system_db",...r[l]),this.$=r[l];break;case 43:i.addPersonOrSystem("system_queue",...r[l]),this.$=r[l];break;case 44:i.addPersonOrSystem("external_system",...r[l]),this.$=r[l];break;case 45:i.addPersonOrSystem("external_system_db",...r[l]),this.$=r[l];break;case 46:i.addPersonOrSystem("external_system_queue",...r[l]),this.$=r[l];break;case 47:i.addContainer("container",...r[l]),this.$=r[l];break;case 48:i.addContainer("container_db",...r[l]),this.$=r[l];break;case 49:i.addContainer("container_queue",...r[l]),this.$=r[l];break;case 50:i.addContainer("external_container",...r[l]),this.$=r[l];break;case 51:i.addContainer("external_container_db",...r[l]),this.$=r[l];break;case 52:i.addContainer("external_container_queue",...r[l]),this.$=r[l];break;case 53:i.addComponent("component",...r[l]),this.$=r[l];break;case 54:i.addComponent("component_db",...r[l]),this.$=r[l];break;case 55:i.addComponent("component_queue",...r[l]),this.$=r[l];break;case 56:i.addComponent("external_component",...r[l]),this.$=r[l];break;case 57:i.addComponent("external_component_db",...r[l]),this.$=r[l];break;case 58:i.addComponent("external_component_queue",...r[l]),this.$=r[l];break;case 60:i.addRel("rel",...r[l]),this.$=r[l];break;case 61:i.addRel("birel",...r[l]),this.$=r[l];break;case 62:i.addRel("rel_u",...r[l]),this.$=r[l];break;case 63:i.addRel("rel_d",...r[l]),this.$=r[l];break;case 64:i.addRel("rel_l",...r[l]),this.$=r[l];break;case 65:i.addRel("rel_r",...r[l]),this.$=r[l];break;case 66:i.addRel("rel_b",...r[l]),this.$=r[l];break;case 67:r[l].splice(0,1),i.addRel("rel",...r[l]),this.$=r[l];break;case 68:i.updateElStyle("update_el_style",...r[l]),this.$=r[l];break;case 69:i.updateRelStyle("update_rel_style",...r[l]),this.$=r[l];break;case 70:i.updateLayoutConfig("update_layout_config",...r[l]),this.$=r[l];break;case 71:this.$=[r[l]];break;case 72:r[l].unshift(r[l-1]),this.$=r[l];break;case 73:case 75:this.$=r[l].trim();break;case 74:let e={};e[r[l-1].trim()]=r[l].trim(),this.$=e;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:t,23:s,24:i,26:n,28:r,29:49,30:61,32:62,34:a,36:l,37:u,38:h,39:f,40:d,41:_,43:23,44:b,45:p,46:E,47:y,48:m,49:A,50:x,51:O,52:T,53:v,54:g,55:C,56:R,57:k,58:S,59:N,60:j,61:w,62:D,63:B,64:I,65:M,66:U,67:L,68:P,69:Y,70:F,71:X,72:Q,73:W,74:q},{13:70,19:20,20:21,21:22,22:t,23:s,24:i,26:n,28:r,29:49,30:61,32:62,34:a,36:l,37:u,38:h,39:f,40:d,41:_,43:23,44:b,45:p,46:E,47:y,48:m,49:A,50:x,51:O,52:T,53:v,54:g,55:C,56:R,57:k,58:S,59:N,60:j,61:w,62:D,63:B,64:I,65:M,66:U,67:L,68:P,69:Y,70:F,71:X,72:Q,73:W,74:q},{13:71,19:20,20:21,21:22,22:t,23:s,24:i,26:n,28:r,29:49,30:61,32:62,34:a,36:l,37:u,38:h,39:f,40:d,41:_,43:23,44:b,45:p,46:E,47:y,48:m,49:A,50:x,51:O,52:T,53:v,54:g,55:C,56:R,57:k,58:S,59:N,60:j,61:w,62:D,63:B,64:I,65:M,66:U,67:L,68:P,69:Y,70:F,71:X,72:Q,73:W,74:q},{13:72,19:20,20:21,21:22,22:t,23:s,24:i,26:n,28:r,29:49,30:61,32:62,34:a,36:l,37:u,38:h,39:f,40:d,41:_,43:23,44:b,45:p,46:E,47:y,48:m,49:A,50:x,51:O,52:T,53:v,54:g,55:C,56:R,57:k,58:S,59:N,60:j,61:w,62:D,63:B,64:I,65:M,66:U,67:L,68:P,69:Y,70:F,71:X,72:Q,73:W,74:q},{13:73,19:20,20:21,21:22,22:t,23:s,24:i,26:n,28:r,29:49,30:61,32:62,34:a,36:l,37:u,38:h,39:f,40:d,41:_,43:23,44:b,45:p,46:E,47:y,48:m,49:A,50:x,51:O,52:T,53:v,54:g,55:C,56:R,57:k,58:S,59:N,60:j,61:w,62:D,63:B,64:I,65:M,66:U,67:L,68:P,69:Y,70:F,71:X,72:Q,73:W,74:q},{14:[1,74]},e(z,[2,13],{43:23,29:49,30:61,32:62,20:75,34:a,36:l,37:u,38:h,39:f,40:d,41:_,44:b,45:p,46:E,47:y,48:m,49:A,50:x,51:O,52:T,53:v,54:g,55:C,56:R,57:k,58:S,59:N,60:j,61:w,62:D,63:B,64:I,65:M,66:U,67:L,68:P,69:Y,70:F,71:X,72:Q,73:W,74:q}),e(z,[2,14]),e(H,[2,16],{12:[1,76]}),e(z,[2,36],{12:[1,77]}),e(G,[2,19]),e(G,[2,20]),{25:[1,78]},{27:[1,79]},e(G,[2,23]),{35:80,75:81,76:V,77:K,79:J,80:Z},{35:86,75:81,76:V,77:K,79:J,80:Z},{35:87,75:81,76:V,77:K,79:J,80:Z},{35:88,75:81,76:V,77:K,79:J,80:Z},{35:89,75:81,76:V,77:K,79:J,80:Z},{35:90,75:81,76:V,77:K,79:J,80:Z},{35:91,75:81,76:V,77:K,79:J,80:Z},{35:92,75:81,76:V,77:K,79:J,80:Z},{35:93,75:81,76:V,77:K,79:J,80:Z},{35:94,75:81,76:V,77:K,79:J,80:Z},{35:95,75:81,76:V,77:K,79:J,80:Z},{35:96,75:81,76:V,77:K,79:J,80:Z},{35:97,75:81,76:V,77:K,79:J,80:Z},{35:98,75:81,76:V,77:K,79:J,80:Z},{35:99,75:81,76:V,77:K,79:J,80:Z},{35:100,75:81,76:V,77:K,79:J,80:Z},{35:101,75:81,76:V,77:K,79:J,80:Z},{35:102,75:81,76:V,77:K,79:J,80:Z},{35:103,75:81,76:V,77:K,79:J,80:Z},{35:104,75:81,76:V,77:K,79:J,80:Z},e($,[2,59]),{35:105,75:81,76:V,77:K,79:J,80:Z},{35:106,75:81,76:V,77:K,79:J,80:Z},{35:107,75:81,76:V,77:K,79:J,80:Z},{35:108,75:81,76:V,77:K,79:J,80:Z},{35:109,75:81,76:V,77:K,79:J,80:Z},{35:110,75:81,76:V,77:K,79:J,80:Z},{35:111,75:81,76:V,77:K,79:J,80:Z},{35:112,75:81,76:V,77:K,79:J,80:Z},{35:113,75:81,76:V,77:K,79:J,80:Z},{35:114,75:81,76:V,77:K,79:J,80:Z},{35:115,75:81,76:V,77:K,79:J,80:Z},{20:116,29:49,30:61,32:62,34:a,36:l,37:u,38:h,39:f,40:d,41:_,43:23,44:b,45:p,46:E,47:y,48:m,49:A,50:x,51:O,52:T,53:v,54:g,55:C,56:R,57:k,58:S,59:N,60:j,61:w,62:D,63:B,64:I,65:M,66:U,67:L,68:P,69:Y,70:F,71:X,72:Q,73:W,74:q},{12:[1,118],33:[1,117]},{35:119,75:81,76:V,77:K,79:J,80:Z},{35:120,75:81,76:V,77:K,79:J,80:Z},{35:121,75:81,76:V,77:K,79:J,80:Z},{35:122,75:81,76:V,77:K,79:J,80:Z},{35:123,75:81,76:V,77:K,79:J,80:Z},{35:124,75:81,76:V,77:K,79:J,80:Z},{35:125,75:81,76:V,77:K,79:J,80:Z},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(z,[2,15]),e(H,[2,17],{21:22,19:130,22:t,23:s,24:i,26:n,28:r}),e(z,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:i,26:n,28:r,34:a,36:l,37:u,38:h,39:f,40:d,41:_,44:b,45:p,46:E,47:y,48:m,49:A,50:x,51:O,52:T,53:v,54:g,55:C,56:R,57:k,58:S,59:N,60:j,61:w,62:D,63:B,64:I,65:M,66:U,67:L,68:P,69:Y,70:F,71:X,72:Q,73:W,74:q}),e(G,[2,21]),e(G,[2,22]),e($,[2,39]),e(ee,[2,71],{75:81,35:132,76:V,77:K,79:J,80:Z}),e(te,[2,73]),{78:[1,133]},e(te,[2,75]),e(te,[2,76]),e($,[2,40]),e($,[2,41]),e($,[2,42]),e($,[2,43]),e($,[2,44]),e($,[2,45]),e($,[2,46]),e($,[2,47]),e($,[2,48]),e($,[2,49]),e($,[2,50]),e($,[2,51]),e($,[2,52]),e($,[2,53]),e($,[2,54]),e($,[2,55]),e($,[2,56]),e($,[2,57]),e($,[2,58]),e($,[2,60]),e($,[2,61]),e($,[2,62]),e($,[2,63]),e($,[2,64]),e($,[2,65]),e($,[2,66]),e($,[2,67]),e($,[2,68]),e($,[2,69]),e($,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(se,[2,28]),e(se,[2,29]),e(se,[2,30]),e(se,[2,31]),e(se,[2,32]),e(se,[2,33]),e(se,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(H,[2,18]),e(z,[2,38]),e(ee,[2,72]),e(te,[2,74]),e($,[2,24]),e($,[2,35]),e(ie,[2,25]),e(ie,[2,26],{12:[1,138]}),e(ie,[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:o(function(e,t){if(!t.recoverable){var s=new Error(e);throw s.hash=t,s}this.trace(e)},"parseError"),parse:o(function(e){var t=this,s=[0],i=[],n=[null],r=[],a=this.table,l="",c=0,u=0,h=r.slice.call(arguments,1),f=Object.create(this.lexer),d={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(d.yy[_]=this.yy[_]);f.setInput(e,d.yy),d.yy.lexer=f,d.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var b=f.yylloc;r.push(b);var p=f.options&&f.options.ranges;function E(){var e;return"number"!=typeof(e=i.pop()||f.lex()||1)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,o(function(e){s.length=s.length-2*e,n.length=n.length-e,r.length=r.length-e},"popStack"),o(E,"lex");for(var y,m,A,x,O,T,v,g,C={};;){if(m=s[s.length-1],this.defaultActions[m]?A=this.defaultActions[m]:(null==y&&(y=E()),A=a[m]&&a[m][y]),void 0===A||!A.length||!A[0]){var R="";for(O in g=[],a[m])this.terminals_[O]&&O>2&&g.push("'"+this.terminals_[O]+"'");R=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+g.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==y?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(R,{text:f.match,token:this.terminals_[y]||y,line:f.yylineno,loc:b,expected:g})}if(A[0]instanceof Array&&A.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+y);switch(A[0]){case 1:s.push(y),n.push(f.yytext),r.push(f.yylloc),s.push(A[1]),y=null,u=f.yyleng,l=f.yytext,c=f.yylineno,b=f.yylloc;break;case 2:if(T=this.productions_[A[1]][1],C.$=n[n.length-T],C._$={first_line:r[r.length-(T||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(T||1)].first_column,last_column:r[r.length-1].last_column},p&&(C._$.range=[r[r.length-(T||1)].range[0],r[r.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[l,u,c,d.yy,A[1],n,r].concat(h))))return x;T&&(s=s.slice(0,-1*T*2),n=n.slice(0,-1*T),r=r.slice(0,-1*T)),s.push(this.productions_[A[1]][0]),n.push(C.$),r.push(C._$),v=a[s[s.length-2]][s[s.length-1]],s.push(v);break;case 3:return!0}}return!0},"parse")},re=function(){return{EOF:1,parseError:o(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:o(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:o(function(e){var t=e.length,s=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=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),s.length-1&&(this.yylineno-=s.length-1);var n=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:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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:o(function(e){this.unput(this.match.slice(e))},"less"),pastInput:o(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:o(function(e,t){var s,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],s=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var r in n)this[r]=n[r];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;var e,t,s,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if((s=this._input.match(this.rules[n[r]]))&&(!t||s[0].length>t[0].length)){if(t=s,i=r,this.options.backtrack_lexer){if(!1!==(e=this.test_match(s,n[r])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,n[i]))&&e:""===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:o(function(){var e=this.next();return e||this.lex()},"lex"),begin:o(function(e){this.conditionStack.push(e)},"begin"),popState:o(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(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:o(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:o(function(e){this.begin(e)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:o(function(e,t,s,i){switch(s){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}}}}();function ae(){this.yy={}}return ne.lexer=re,o(ae,"Parser"),ae.prototype=ne,ne.Parser=ae,new ae}();x.parser=x;var O,T=x,v=[],g=[""],C="global",R="",k=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],S=[],N="",j=!1,w=4,D=2,B=o(function(){return O},"getC4Type"),I=o(function(e){let t=p(e,u());O=t},"setC4Type"),M=o(function(e,t,s,i,n,r,a,l,o){if(null==e||null==t||null==s||null==i)return;let c={};const u=S.find(e=>e.from===t&&e.to===s);if(u?c=u:S.push(c),c.type=e,c.from=t,c.to=s,c.label={text:i},null==n)c.techn={text:""};else if("object"==typeof n){let[e,t]=Object.entries(n)[0];c[e]={text:t}}else c.techn={text:n};if(null==r)c.descr={text:""};else if("object"==typeof r){let[e,t]=Object.entries(r)[0];c[e]={text:t}}else c.descr={text:r};if("object"==typeof a){let[e,t]=Object.entries(a)[0];c[e]=t}else c.sprite=a;if("object"==typeof l){let[e,t]=Object.entries(l)[0];c[e]=t}else c.tags=l;if("object"==typeof o){let[e,t]=Object.entries(o)[0];c[e]=t}else c.link=o;c.wrap=re()},"addRel"),U=o(function(e,t,s,i,n,r,a){if(null===t||null===s)return;let l={};const o=v.find(e=>e.alias===t);if(o&&t===o.alias?l=o:(l.alias=t,v.push(l)),l.label=null==s?{text:""}:{text:s},null==i)l.descr={text:""};else if("object"==typeof i){let[e,t]=Object.entries(i)[0];l[e]={text:t}}else l.descr={text:i};if("object"==typeof n){let[e,t]=Object.entries(n)[0];l[e]=t}else l.sprite=n;if("object"==typeof r){let[e,t]=Object.entries(r)[0];l[e]=t}else l.tags=r;if("object"==typeof a){let[e,t]=Object.entries(a)[0];l[e]=t}else l.link=a;l.typeC4Shape={text:e},l.parentBoundary=C,l.wrap=re()},"addPersonOrSystem"),L=o(function(e,t,s,i,n,r,a,l){if(null===t||null===s)return;let o={};const c=v.find(e=>e.alias===t);if(c&&t===c.alias?o=c:(o.alias=t,v.push(o)),o.label=null==s?{text:""}:{text:s},null==i)o.techn={text:""};else if("object"==typeof i){let[e,t]=Object.entries(i)[0];o[e]={text:t}}else o.techn={text:i};if(null==n)o.descr={text:""};else if("object"==typeof n){let[e,t]=Object.entries(n)[0];o[e]={text:t}}else o.descr={text:n};if("object"==typeof r){let[e,t]=Object.entries(r)[0];o[e]=t}else o.sprite=r;if("object"==typeof a){let[e,t]=Object.entries(a)[0];o[e]=t}else o.tags=a;if("object"==typeof l){let[e,t]=Object.entries(l)[0];o[e]=t}else o.link=l;o.wrap=re(),o.typeC4Shape={text:e},o.parentBoundary=C},"addContainer"),P=o(function(e,t,s,i,n,r,a,l){if(null===t||null===s)return;let o={};const c=v.find(e=>e.alias===t);if(c&&t===c.alias?o=c:(o.alias=t,v.push(o)),o.label=null==s?{text:""}:{text:s},null==i)o.techn={text:""};else if("object"==typeof i){let[e,t]=Object.entries(i)[0];o[e]={text:t}}else o.techn={text:i};if(null==n)o.descr={text:""};else if("object"==typeof n){let[e,t]=Object.entries(n)[0];o[e]={text:t}}else o.descr={text:n};if("object"==typeof r){let[e,t]=Object.entries(r)[0];o[e]=t}else o.sprite=r;if("object"==typeof a){let[e,t]=Object.entries(a)[0];o[e]=t}else o.tags=a;if("object"==typeof l){let[e,t]=Object.entries(l)[0];o[e]=t}else o.link=l;o.wrap=re(),o.typeC4Shape={text:e},o.parentBoundary=C},"addComponent"),Y=o(function(e,t,s,i,n){if(null===e||null===t)return;let r={};const a=k.find(t=>t.alias===e);if(a&&e===a.alias?r=a:(r.alias=e,k.push(r)),r.label=null==t?{text:""}:{text:t},null==s)r.type={text:"system"};else if("object"==typeof s){let[e,t]=Object.entries(s)[0];r[e]={text:t}}else r.type={text:s};if("object"==typeof i){let[e,t]=Object.entries(i)[0];r[e]=t}else r.tags=i;if("object"==typeof n){let[e,t]=Object.entries(n)[0];r[e]=t}else r.link=n;r.parentBoundary=C,r.wrap=re(),R=C,C=e,g.push(R)},"addPersonOrSystemBoundary"),F=o(function(e,t,s,i,n){if(null===e||null===t)return;let r={};const a=k.find(t=>t.alias===e);if(a&&e===a.alias?r=a:(r.alias=e,k.push(r)),r.label=null==t?{text:""}:{text:t},null==s)r.type={text:"container"};else if("object"==typeof s){let[e,t]=Object.entries(s)[0];r[e]={text:t}}else r.type={text:s};if("object"==typeof i){let[e,t]=Object.entries(i)[0];r[e]=t}else r.tags=i;if("object"==typeof n){let[e,t]=Object.entries(n)[0];r[e]=t}else r.link=n;r.parentBoundary=C,r.wrap=re(),R=C,C=e,g.push(R)},"addContainerBoundary"),X=o(function(e,t,s,i,n,r,a,l){if(null===t||null===s)return;let o={};const c=k.find(e=>e.alias===t);if(c&&t===c.alias?o=c:(o.alias=t,k.push(o)),o.label=null==s?{text:""}:{text:s},null==i)o.type={text:"node"};else if("object"==typeof i){let[e,t]=Object.entries(i)[0];o[e]={text:t}}else o.type={text:i};if(null==n)o.descr={text:""};else if("object"==typeof n){let[e,t]=Object.entries(n)[0];o[e]={text:t}}else o.descr={text:n};if("object"==typeof a){let[e,t]=Object.entries(a)[0];o[e]=t}else o.tags=a;if("object"==typeof l){let[e,t]=Object.entries(l)[0];o[e]=t}else o.link=l;o.nodeType=e,o.parentBoundary=C,o.wrap=re(),R=C,C=t,g.push(R)},"addDeploymentNode"),Q=o(function(){C=R,g.pop(),R=g.pop(),g.push(R)},"popBoundaryParseStack"),W=o(function(e,t,s,i,n,r,a,l,o,c,u){let h=v.find(e=>e.alias===t);if(void 0!==h||(h=k.find(e=>e.alias===t),void 0!==h)){if(null!=s)if("object"==typeof s){let[e,t]=Object.entries(s)[0];h[e]=t}else h.bgColor=s;if(null!=i)if("object"==typeof i){let[e,t]=Object.entries(i)[0];h[e]=t}else h.fontColor=i;if(null!=n)if("object"==typeof n){let[e,t]=Object.entries(n)[0];h[e]=t}else h.borderColor=n;if(null!=r)if("object"==typeof r){let[e,t]=Object.entries(r)[0];h[e]=t}else h.shadowing=r;if(null!=a)if("object"==typeof a){let[e,t]=Object.entries(a)[0];h[e]=t}else h.shape=a;if(null!=l)if("object"==typeof l){let[e,t]=Object.entries(l)[0];h[e]=t}else h.sprite=l;if(null!=o)if("object"==typeof o){let[e,t]=Object.entries(o)[0];h[e]=t}else h.techn=o;if(null!=c)if("object"==typeof c){let[e,t]=Object.entries(c)[0];h[e]=t}else h.legendText=c;if(null!=u)if("object"==typeof u){let[e,t]=Object.entries(u)[0];h[e]=t}else h.legendSprite=u}},"updateElStyle"),q=o(function(e,t,s,i,n,r,a){const l=S.find(e=>e.from===t&&e.to===s);if(void 0!==l){if(null!=i)if("object"==typeof i){let[e,t]=Object.entries(i)[0];l[e]=t}else l.textColor=i;if(null!=n)if("object"==typeof n){let[e,t]=Object.entries(n)[0];l[e]=t}else l.lineColor=n;if(null!=r)if("object"==typeof r){let[e,t]=Object.entries(r)[0];l[e]=parseInt(t)}else l.offsetX=parseInt(r);if(null!=a)if("object"==typeof a){let[e,t]=Object.entries(a)[0];l[e]=parseInt(t)}else l.offsetY=parseInt(a)}},"updateRelStyle"),z=o(function(e,t,s){let i=w,n=D;if("object"==typeof t){const e=Object.values(t)[0];i=parseInt(e)}else i=parseInt(t);if("object"==typeof s){const e=Object.values(s)[0];n=parseInt(e)}else n=parseInt(s);i>=1&&(w=i),n>=1&&(D=n)},"updateLayoutConfig"),H=o(function(){return w},"getC4ShapeInRow"),G=o(function(){return D},"getC4BoundaryInRow"),V=o(function(){return C},"getCurrentBoundaryParse"),K=o(function(){return R},"getParentBoundaryParse"),J=o(function(e){return null==e?v:v.filter(t=>t.parentBoundary===e)},"getC4ShapeArray"),Z=o(function(e){return v.find(t=>t.alias===e)},"getC4Shape"),$=o(function(e){return Object.keys(J(e))},"getC4ShapeKeys"),ee=o(function(e){return null==e?k:k.filter(t=>t.parentBoundary===e)},"getBoundaries"),te=ee,se=o(function(){return S},"getRels"),ie=o(function(){return N},"getTitle"),ne=o(function(e){j=e},"setWrap"),re=o(function(){return j},"autoWrap"),ae=o(function(){v=[],k=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],R="",C="global",g=[""],S=[],g=[""],N="",j=!1,w=4,D=2},"clear"),le=o(function(e){let t=p(e,u());N=t},"setTitle"),oe={addPersonOrSystem:U,addPersonOrSystemBoundary:Y,addContainer:L,addContainerBoundary:F,addComponent:P,addDeploymentNode:X,popBoundaryParseStack:Q,addRel:M,updateElStyle:W,updateRelStyle:q,updateLayoutConfig:z,autoWrap:re,setWrap:ne,getC4ShapeArray:J,getC4Shape:Z,getC4ShapeKeys:$,getBoundaries:ee,getBoundarys:te,getCurrentBoundaryParse:V,getParentBoundaryParse:K,getRels:se,getTitle:ie,getC4Type:B,getC4ShapeInRow:H,getC4BoundaryInRow:G,setAccTitle:l,getAccTitle:a,getAccDescription:r,setAccDescription:n,getConfig:o(()=>u().c4,"getConfig"),clear:ae,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:le,setC4Type:I},ce=o(function(e,t){return i(e,t)},"drawRect"),ue=o(function(e,t,s,i,n,r){const a=e.append("image");a.attr("width",t),a.attr("height",s),a.attr("x",i),a.attr("y",n);let l=r.startsWith("data:image/png;base64")?r:E.sanitizeUrl(r);a.attr("xlink:href",l)},"drawImage"),he=o((e,t,s)=>{const i=e.append("g");let n=0;for(let r of t){let e=r.textColor?r.textColor:"#444444",t=r.lineColor?r.lineColor:"#444444",a=r.offsetX?parseInt(r.offsetX):0,l=r.offsetY?parseInt(r.offsetY):0,o="";if(0===n){let e=i.append("line");e.attr("x1",r.startPoint.x),e.attr("y1",r.startPoint.y),e.attr("x2",r.endPoint.x),e.attr("y2",r.endPoint.y),e.attr("stroke-width","1"),e.attr("stroke",t),e.style("fill","none"),"rel_b"!==r.type&&e.attr("marker-end","url("+o+"#arrowhead)"),"birel"!==r.type&&"rel_b"!==r.type||e.attr("marker-start","url("+o+"#arrowend)"),n=-1}else{let e=i.append("path");e.attr("fill","none").attr("stroke-width","1").attr("stroke",t).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",r.startPoint.x).replaceAll("starty",r.startPoint.y).replaceAll("controlx",r.startPoint.x+(r.endPoint.x-r.startPoint.x)/2-(r.endPoint.x-r.startPoint.x)/4).replaceAll("controly",r.startPoint.y+(r.endPoint.y-r.startPoint.y)/2).replaceAll("stopx",r.endPoint.x).replaceAll("stopy",r.endPoint.y)),"rel_b"!==r.type&&e.attr("marker-end","url("+o+"#arrowhead)"),"birel"!==r.type&&"rel_b"!==r.type||e.attr("marker-start","url("+o+"#arrowend)")}let c=s.messageFont();Te(s)(r.label.text,i,Math.min(r.startPoint.x,r.endPoint.x)+Math.abs(r.endPoint.x-r.startPoint.x)/2+a,Math.min(r.startPoint.y,r.endPoint.y)+Math.abs(r.endPoint.y-r.startPoint.y)/2+l,r.label.width,r.label.height,{fill:e},c),r.techn&&""!==r.techn.text&&(c=s.messageFont(),Te(s)("["+r.techn.text+"]",i,Math.min(r.startPoint.x,r.endPoint.x)+Math.abs(r.endPoint.x-r.startPoint.x)/2+a,Math.min(r.startPoint.y,r.endPoint.y)+Math.abs(r.endPoint.y-r.startPoint.y)/2+s.messageFontSize+5+l,Math.max(r.label.width,r.techn.width),r.techn.height,{fill:e,"font-style":"italic"},c))}},"drawRels"),fe=o(function(e,t,s){const i=e.append("g");let n=t.bgColor?t.bgColor:"none",r=t.borderColor?t.borderColor:"#444444",a=t.fontColor?t.fontColor:"black",l={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(l={"stroke-width":1});let o={x:t.x,y:t.y,fill:n,stroke:r,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:l};ce(i,o);let c=s.boundaryFont();c.fontWeight="bold",c.fontSize=c.fontSize+2,c.fontColor=a,Te(s)(t.label.text,i,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},c),t.type&&""!==t.type.text&&(c=s.boundaryFont(),c.fontColor=a,Te(s)(t.type.text,i,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},c)),t.descr&&""!==t.descr.text&&(c=s.boundaryFont(),c.fontSize=c.fontSize-2,c.fontColor=a,Te(s)(t.descr.text,i,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},c))},"drawBoundary"),de=o(function(e,t,i){var n;let r=t.bgColor?t.bgColor:i[t.typeC4Shape.text+"_bg_color"],a=t.borderColor?t.borderColor:i[t.typeC4Shape.text+"_border_color"],l=t.fontColor?t.fontColor:"#FFFFFF",o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":o="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":o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}const c=e.append("g");c.attr("class","person-man");const u=s();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":u.x=t.x,u.y=t.y,u.fill=r,u.width=t.width,u.height=t.height,u.stroke=a,u.rx=2.5,u.ry=2.5,u.attrs={"stroke-width":.5},ce(c,u);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":c.append("path").attr("fill",r).attr("stroke-width","0.5").attr("stroke",a).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",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),c.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",a).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":c.append("path").attr("fill",r).attr("stroke-width","0.5").attr("stroke",a).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",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),c.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",a).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2))}let h=Oe(i,t.typeC4Shape.text);switch(c.append("text").attr("fill",l).attr("font-family",h.fontFamily).attr("font-size",h.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":ue(c,48,48,t.x+t.width/2-24,t.y+t.image.Y,o)}let f=i[t.typeC4Shape.text+"Font"]();return f.fontWeight="bold",f.fontSize=f.fontSize+2,f.fontColor=l,Te(i)(t.label.text,c,t.x,t.y+t.label.Y,t.width,t.height,{fill:l},f),f=i[t.typeC4Shape.text+"Font"](),f.fontColor=l,t.techn&&""!==(null==(n=t.techn)?void 0:n.text)?Te(i)(t.techn.text,c,t.x,t.y+t.techn.Y,t.width,t.height,{fill:l,"font-style":"italic"},f):t.type&&""!==t.type.text&&Te(i)(t.type.text,c,t.x,t.y+t.type.Y,t.width,t.height,{fill:l,"font-style":"italic"},f),t.descr&&""!==t.descr.text&&(f=i.personFont(),f.fontColor=l,Te(i)(t.descr.text,c,t.x,t.y+t.descr.Y,t.width,t.height,{fill:l},f)),t.height},"drawC4Shape"),_e=o(function(e){e.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-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),be=o(function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),pe=o(function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),Ee=o(function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),ye=o(function(e){e.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),me=o(function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),Ae=o(function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertDynamicNumber"),xe=o(function(e){const t=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);t.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),t.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),Oe=o((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"getC4ShapeFont"),Te=function(){function e(e,t,s,n,r,a,l){i(t.append("text").attr("x",s+r/2).attr("y",n+a/2+5).style("text-anchor","middle").text(e),l)}function t(e,t,s,n,r,a,l,o){const{fontSize:c,fontFamily:u,fontWeight:h}=o,f=e.split(m.lineBreakRegex);for(let d=0;d<f.length;d++){const e=d*c-c*(f.length-1)/2,a=t.append("text").attr("x",s+r/2).attr("y",n).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",c).style("font-weight",h).style("font-family",u);a.append("tspan").attr("dy",e).text(f[d]).attr("alignment-baseline","mathematical"),i(a,l)}}function s(e,s,n,r,a,l,o,c){const u=s.append("switch"),h=u.append("foreignObject").attr("x",n).attr("y",r).attr("width",a).attr("height",l).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),t(e,u,n,r,a,0,o,c),i(h,o)}function i(e,t){for(const s in t)t.hasOwnProperty(s)&&e.attr(s,t[s])}return o(e,"byText"),o(t,"byTspan"),o(s,"byFo"),o(i,"_setTextAttrs"),function(i){return"fo"===i.textPlacement?s:"old"===i.textPlacement?e:t}}(),ve={drawRect:ce,drawBoundary:fe,drawC4Shape:de,drawRels:he,drawImage:ue,insertArrowHead:Ee,insertArrowEnd:ye,insertArrowFilledHead:me,insertDynamicNumber:Ae,insertArrowCrossHead:xe,insertDatabaseIcon:_e,insertComputerIcon:be,insertClockIcon:pe},ge=0,Ce=0,Re=4,ke=2;x.yy=oe;var Se={},Ne=(o(e=class{constructor(e){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,je(e.db.getConfig())}setData(e,t,s,i){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=t,this.nextData.starty=this.data.starty=s,this.nextData.stopy=this.data.stopy=i}updateVal(e,t,s,i){void 0===e[t]?e[t]=s:e[t]=i(s,e[t])}insert(e){this.nextData.cnt=this.nextData.cnt+1;let t=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+e.margin:this.nextData.stopx+2*e.margin,s=t+e.width,i=this.nextData.starty+2*e.margin,n=i+e.height;(t>=this.data.widthLimit||s>=this.data.widthLimit||this.nextData.cnt>Re)&&(t=this.nextData.startx+e.margin+Se.nextLinePaddingX,i=this.nextData.stopy+2*e.margin,this.nextData.stopx=s=t+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=n=i+e.height,this.nextData.cnt=1),e.x=t,e.y=i,this.updateVal(this.data,"startx",t,Math.min),this.updateVal(this.data,"starty",i,Math.min),this.updateVal(this.data,"stopx",s,Math.max),this.updateVal(this.data,"stopy",n,Math.max),this.updateVal(this.nextData,"startx",t,Math.min),this.updateVal(this.nextData,"starty",i,Math.min),this.updateVal(this.nextData,"stopx",s,Math.max),this.updateVal(this.nextData,"stopy",n,Math.max)}init(e){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},je(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},"Bounds"),e),je=o(function(e){_(Se,e),e.fontFamily&&(Se.personFontFamily=Se.systemFontFamily=Se.messageFontFamily=e.fontFamily),e.fontSize&&(Se.personFontSize=Se.systemFontSize=Se.messageFontSize=e.fontSize),e.fontWeight&&(Se.personFontWeight=Se.systemFontWeight=Se.messageFontWeight=e.fontWeight)},"setConf"),we=o((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"c4ShapeFont"),De=o(e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),"boundaryFont"),Be=o(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont");function Ie(e,t,s,i,n){if(!t[e].width)if(s)t[e].text=y(t[e].text,n,i),t[e].textLines=t[e].text.split(m.lineBreakRegex).length,t[e].width=n,t[e].height=A(t[e].text,i);else{let s=t[e].text.split(m.lineBreakRegex);t[e].textLines=s.length;let n=0;t[e].height=0,t[e].width=0;for(const r of s)t[e].width=Math.max(b(r,i),t[e].width),n=A(r,i),t[e].height=t[e].height+n}}o(Ie,"calcC4ShapeTextWH");var Me=o(function(e,t,s){t.x=s.data.startx,t.y=s.data.starty,t.width=s.data.stopx-s.data.startx,t.height=s.data.stopy-s.data.starty,t.label.y=Se.c4ShapeMargin-35;let i=t.wrap&&Se.wrap,n=De(Se);n.fontSize=n.fontSize+2,n.fontWeight="bold",Ie("label",t,i,n,b(t.label.text,n)),ve.drawBoundary(e,t,Se)},"drawBoundary"),Ue=o(function(e,t,s,i){let n=0;for(const r of i){n=0;const i=s[r];let a=we(Se,i.typeC4Shape.text);switch(a.fontSize=a.fontSize-2,i.typeC4Shape.width=b("«"+i.typeC4Shape.text+"»",a),i.typeC4Shape.height=a.fontSize+2,i.typeC4Shape.Y=Se.c4ShapePadding,n=i.typeC4Shape.Y+i.typeC4Shape.height-4,i.image={width:0,height:0,Y:0},i.typeC4Shape.text){case"person":case"external_person":i.image.width=48,i.image.height=48,i.image.Y=n,n=i.image.Y+i.image.height}i.sprite&&(i.image.width=48,i.image.height=48,i.image.Y=n,n=i.image.Y+i.image.height);let l=i.wrap&&Se.wrap,o=Se.width-2*Se.c4ShapePadding,c=we(Se,i.typeC4Shape.text);if(c.fontSize=c.fontSize+2,c.fontWeight="bold",Ie("label",i,l,c,o),i.label.Y=n+8,n=i.label.Y+i.label.height,i.type&&""!==i.type.text){i.type.text="["+i.type.text+"]",Ie("type",i,l,we(Se,i.typeC4Shape.text),o),i.type.Y=n+5,n=i.type.Y+i.type.height}else if(i.techn&&""!==i.techn.text){i.techn.text="["+i.techn.text+"]",Ie("techn",i,l,we(Se,i.techn.text),o),i.techn.Y=n+5,n=i.techn.Y+i.techn.height}let u=n,h=i.label.width;if(i.descr&&""!==i.descr.text){Ie("descr",i,l,we(Se,i.typeC4Shape.text),o),i.descr.Y=n+20,n=i.descr.Y+i.descr.height,h=Math.max(i.label.width,i.descr.width),u=n-5*i.descr.textLines}h+=Se.c4ShapePadding,i.width=Math.max(i.width||Se.width,h,Se.width),i.height=Math.max(i.height||Se.height,u,Se.height),i.margin=i.margin||Se.c4ShapeMargin,e.insert(i),ve.drawC4Shape(t,i,Se)}e.bumpLastMargin(Se.c4ShapeMargin)},"drawC4ShapeArray"),Le=(o(t=class{constructor(e,t){this.x=e,this.y=t}},"Point"),t),Pe=o(function(e,t){let s=e.x,i=e.y,n=t.x,r=t.y,a=s+e.width/2,l=i+e.height/2,o=Math.abs(s-n),c=Math.abs(i-r),u=c/o,h=e.height/e.width,f=null;return i==r&&s<n?f=new Le(s+e.width,l):i==r&&s>n?f=new Le(s,l):s==n&&i<r?f=new Le(a,i+e.height):s==n&&i>r&&(f=new Le(a,i)),s>n&&i<r?f=h>=u?new Le(s,l+u*e.width/2):new Le(a-o/c*e.height/2,i+e.height):s<n&&i<r?f=h>=u?new Le(s+e.width,l+u*e.width/2):new Le(a+o/c*e.height/2,i+e.height):s<n&&i>r?f=h>=u?new Le(s+e.width,l-u*e.width/2):new Le(a+e.height/2*o/c,i):s>n&&i>r&&(f=h>=u?new Le(s,l-e.width/2*u):new Le(a-e.height/2*o/c,i)),f},"getIntersectPoint"),Ye=o(function(e,t){let s={x:0,y:0};s.x=t.x+t.width/2,s.y=t.y+t.height/2;let i=Pe(e,s);return s.x=e.x+e.width/2,s.y=e.y+e.height/2,{startPoint:i,endPoint:Pe(t,s)}},"getIntersectPoints"),Fe=o(function(e,t,s,i){let n=0;for(let r of t){n+=1;let e=r.wrap&&Se.wrap,t=Be(Se);"C4Dynamic"===i.db.getC4Type()&&(r.label.text=n+": "+r.label.text);let a=b(r.label.text,t);Ie("label",r,e,t,a),r.techn&&""!==r.techn.text&&(a=b(r.techn.text,t),Ie("techn",r,e,t,a)),r.descr&&""!==r.descr.text&&(a=b(r.descr.text,t),Ie("descr",r,e,t,a));let l=s(r.from),o=s(r.to),c=Ye(l,o);r.startPoint=c.startPoint,r.endPoint=c.endPoint}ve.drawRels(e,t,Se)},"drawRels");function Xe(e,t,s,i,n){let r=new Ne(n);r.data.widthLimit=s.data.widthLimit/Math.min(ke,i.length);for(let[a,l]of i.entries()){let i=0;l.image={width:0,height:0,Y:0},l.sprite&&(l.image.width=48,l.image.height=48,l.image.Y=i,i=l.image.Y+l.image.height);let o=l.wrap&&Se.wrap,c=De(Se);if(c.fontSize=c.fontSize+2,c.fontWeight="bold",Ie("label",l,o,c,r.data.widthLimit),l.label.Y=i+8,i=l.label.Y+l.label.height,l.type&&""!==l.type.text){l.type.text="["+l.type.text+"]",Ie("type",l,o,De(Se),r.data.widthLimit),l.type.Y=i+5,i=l.type.Y+l.type.height}if(l.descr&&""!==l.descr.text){let e=De(Se);e.fontSize=e.fontSize-2,Ie("descr",l,o,e,r.data.widthLimit),l.descr.Y=i+20,i=l.descr.Y+l.descr.height}if(0==a||a%ke===0){let e=s.data.startx+Se.diagramMarginX,t=s.data.stopy+Se.diagramMarginY+i;r.setData(e,e,t,t)}else{let e=r.data.stopx!==r.data.startx?r.data.stopx+Se.diagramMarginX:r.data.startx,t=r.data.starty;r.setData(e,e,t,t)}r.name=l.alias;let u=n.db.getC4ShapeArray(l.alias),h=n.db.getC4ShapeKeys(l.alias);h.length>0&&Ue(r,e,u,h),t=l.alias;let f=n.db.getBoundaries(t);f.length>0&&Xe(e,t,r,f,n),"global"!==l.alias&&Me(e,l,r),s.data.stopy=Math.max(r.data.stopy+Se.c4ShapeMargin,s.data.stopy),s.data.stopx=Math.max(r.data.stopx+Se.c4ShapeMargin,s.data.stopx),ge=Math.max(ge,s.data.stopx),Ce=Math.max(Ce,s.data.stopy)}}o(Xe,"drawInsideBoundary");var Qe={drawPersonOrSystemArray:Ue,drawBoundary:Me,setConf:je,draw:o(function(e,t,s,i){Se=u().c4;const n=u().securityLevel;let r;"sandbox"===n&&(r=h("#i"+t));const a=h("sandbox"===n?r.nodes()[0].contentDocument.body:"body");let l=i.db;i.db.setWrap(Se.wrap),Re=l.getC4ShapeInRow(),ke=l.getC4BoundaryInRow(),f.debug(`C:${JSON.stringify(Se,null,2)}`);const o="sandbox"===n?a.select(`[id="${t}"]`):h(`[id="${t}"]`);ve.insertComputerIcon(o),ve.insertDatabaseIcon(o),ve.insertClockIcon(o);let c=new Ne(i);c.setData(Se.diagramMarginX,Se.diagramMarginX,Se.diagramMarginY,Se.diagramMarginY),c.data.widthLimit=screen.availWidth,ge=Se.diagramMarginX,Ce=Se.diagramMarginY;const _=i.db.getTitle();Xe(o,"",c,i.db.getBoundaries(""),i),ve.insertArrowHead(o),ve.insertArrowEnd(o),ve.insertArrowCrossHead(o),ve.insertArrowFilledHead(o),Fe(o,i.db.getRels(),i.db.getC4Shape,i),c.data.stopx=ge,c.data.stopy=Ce;const b=c.data;let p=b.stopy-b.starty+2*Se.diagramMarginY;const E=b.stopx-b.startx+2*Se.diagramMarginX;_&&o.append("text").text(_).attr("x",(b.stopx-b.startx)/2-4*Se.diagramMarginX).attr("y",b.starty+Se.diagramMarginY),d(o,p,E,Se.useMaxWidth);const y=_?60:0;o.attr("viewBox",b.startx-Se.diagramMarginX+" -"+(Se.diagramMarginY+y)+" "+E+" "+(p+y)),f.debug("models:",b)},"draw")},We={parser:T,db:oe,renderer:Qe,styles:o(e=>`.person {\n stroke: ${e.personBorder};\n fill: ${e.personBkg};\n }\n`,"getStyles"),init:o(({c4:e,wrap:t})=>{Qe.setConf(e),oe.setWrap(t)},"init")};export{We as diagram};
|
|
1
|
+
var e,t;import{g as s,d as i}from"./chunk-TZMSLE5B-D3SRAd4i.js";import{s as n,g as r,a,b as l,_ as o,c as u,d as h,l as f,e as d,f as _,h as b,i as p,j as E,w as y,k as m,m as A}from"./index-BvMYTiOr.js";var x=function(){var e=o(function(e,t,s,i){for(s=s||{},i=e.length;i--;s[e[i]]=t);return s},"o"),t=[1,24],s=[1,25],i=[1,26],n=[1,27],r=[1,28],a=[1,63],l=[1,64],u=[1,65],h=[1,66],f=[1,67],d=[1,68],_=[1,69],b=[1,29],p=[1,30],E=[1,31],y=[1,32],m=[1,33],A=[1,34],x=[1,35],O=[1,36],T=[1,37],v=[1,38],g=[1,39],C=[1,40],R=[1,41],k=[1,42],S=[1,43],N=[1,44],j=[1,45],w=[1,46],D=[1,47],B=[1,48],I=[1,50],M=[1,51],U=[1,52],L=[1,53],P=[1,54],Y=[1,55],F=[1,56],X=[1,57],Q=[1,58],W=[1,59],q=[1,60],z=[14,42],H=[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],G=[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],V=[1,82],K=[1,83],J=[1,84],Z=[1,85],$=[12,14,42],ee=[12,14,33,42],te=[12,14,33,42,76,77,79,80],se=[12,33],ie=[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],ne={trace:o(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:o(function(e,t,s,i,n,r,a){var l=r.length-1;switch(n){case 3:i.setDirection("TB");break;case 4:i.setDirection("BT");break;case 5:i.setDirection("RL");break;case 6:i.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:i.setC4Type(r[l-3]);break;case 19:i.setTitle(r[l].substring(6)),this.$=r[l].substring(6);break;case 20:i.setAccDescription(r[l].substring(15)),this.$=r[l].substring(15);break;case 21:this.$=r[l].trim(),i.setTitle(this.$);break;case 22:case 23:this.$=r[l].trim(),i.setAccDescription(this.$);break;case 28:r[l].splice(2,0,"ENTERPRISE"),i.addPersonOrSystemBoundary(...r[l]),this.$=r[l];break;case 29:r[l].splice(2,0,"SYSTEM"),i.addPersonOrSystemBoundary(...r[l]),this.$=r[l];break;case 30:i.addPersonOrSystemBoundary(...r[l]),this.$=r[l];break;case 31:r[l].splice(2,0,"CONTAINER"),i.addContainerBoundary(...r[l]),this.$=r[l];break;case 32:i.addDeploymentNode("node",...r[l]),this.$=r[l];break;case 33:i.addDeploymentNode("nodeL",...r[l]),this.$=r[l];break;case 34:i.addDeploymentNode("nodeR",...r[l]),this.$=r[l];break;case 35:i.popBoundaryParseStack();break;case 39:i.addPersonOrSystem("person",...r[l]),this.$=r[l];break;case 40:i.addPersonOrSystem("external_person",...r[l]),this.$=r[l];break;case 41:i.addPersonOrSystem("system",...r[l]),this.$=r[l];break;case 42:i.addPersonOrSystem("system_db",...r[l]),this.$=r[l];break;case 43:i.addPersonOrSystem("system_queue",...r[l]),this.$=r[l];break;case 44:i.addPersonOrSystem("external_system",...r[l]),this.$=r[l];break;case 45:i.addPersonOrSystem("external_system_db",...r[l]),this.$=r[l];break;case 46:i.addPersonOrSystem("external_system_queue",...r[l]),this.$=r[l];break;case 47:i.addContainer("container",...r[l]),this.$=r[l];break;case 48:i.addContainer("container_db",...r[l]),this.$=r[l];break;case 49:i.addContainer("container_queue",...r[l]),this.$=r[l];break;case 50:i.addContainer("external_container",...r[l]),this.$=r[l];break;case 51:i.addContainer("external_container_db",...r[l]),this.$=r[l];break;case 52:i.addContainer("external_container_queue",...r[l]),this.$=r[l];break;case 53:i.addComponent("component",...r[l]),this.$=r[l];break;case 54:i.addComponent("component_db",...r[l]),this.$=r[l];break;case 55:i.addComponent("component_queue",...r[l]),this.$=r[l];break;case 56:i.addComponent("external_component",...r[l]),this.$=r[l];break;case 57:i.addComponent("external_component_db",...r[l]),this.$=r[l];break;case 58:i.addComponent("external_component_queue",...r[l]),this.$=r[l];break;case 60:i.addRel("rel",...r[l]),this.$=r[l];break;case 61:i.addRel("birel",...r[l]),this.$=r[l];break;case 62:i.addRel("rel_u",...r[l]),this.$=r[l];break;case 63:i.addRel("rel_d",...r[l]),this.$=r[l];break;case 64:i.addRel("rel_l",...r[l]),this.$=r[l];break;case 65:i.addRel("rel_r",...r[l]),this.$=r[l];break;case 66:i.addRel("rel_b",...r[l]),this.$=r[l];break;case 67:r[l].splice(0,1),i.addRel("rel",...r[l]),this.$=r[l];break;case 68:i.updateElStyle("update_el_style",...r[l]),this.$=r[l];break;case 69:i.updateRelStyle("update_rel_style",...r[l]),this.$=r[l];break;case 70:i.updateLayoutConfig("update_layout_config",...r[l]),this.$=r[l];break;case 71:this.$=[r[l]];break;case 72:r[l].unshift(r[l-1]),this.$=r[l];break;case 73:case 75:this.$=r[l].trim();break;case 74:let e={};e[r[l-1].trim()]=r[l].trim(),this.$=e;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:t,23:s,24:i,26:n,28:r,29:49,30:61,32:62,34:a,36:l,37:u,38:h,39:f,40:d,41:_,43:23,44:b,45:p,46:E,47:y,48:m,49:A,50:x,51:O,52:T,53:v,54:g,55:C,56:R,57:k,58:S,59:N,60:j,61:w,62:D,63:B,64:I,65:M,66:U,67:L,68:P,69:Y,70:F,71:X,72:Q,73:W,74:q},{13:70,19:20,20:21,21:22,22:t,23:s,24:i,26:n,28:r,29:49,30:61,32:62,34:a,36:l,37:u,38:h,39:f,40:d,41:_,43:23,44:b,45:p,46:E,47:y,48:m,49:A,50:x,51:O,52:T,53:v,54:g,55:C,56:R,57:k,58:S,59:N,60:j,61:w,62:D,63:B,64:I,65:M,66:U,67:L,68:P,69:Y,70:F,71:X,72:Q,73:W,74:q},{13:71,19:20,20:21,21:22,22:t,23:s,24:i,26:n,28:r,29:49,30:61,32:62,34:a,36:l,37:u,38:h,39:f,40:d,41:_,43:23,44:b,45:p,46:E,47:y,48:m,49:A,50:x,51:O,52:T,53:v,54:g,55:C,56:R,57:k,58:S,59:N,60:j,61:w,62:D,63:B,64:I,65:M,66:U,67:L,68:P,69:Y,70:F,71:X,72:Q,73:W,74:q},{13:72,19:20,20:21,21:22,22:t,23:s,24:i,26:n,28:r,29:49,30:61,32:62,34:a,36:l,37:u,38:h,39:f,40:d,41:_,43:23,44:b,45:p,46:E,47:y,48:m,49:A,50:x,51:O,52:T,53:v,54:g,55:C,56:R,57:k,58:S,59:N,60:j,61:w,62:D,63:B,64:I,65:M,66:U,67:L,68:P,69:Y,70:F,71:X,72:Q,73:W,74:q},{13:73,19:20,20:21,21:22,22:t,23:s,24:i,26:n,28:r,29:49,30:61,32:62,34:a,36:l,37:u,38:h,39:f,40:d,41:_,43:23,44:b,45:p,46:E,47:y,48:m,49:A,50:x,51:O,52:T,53:v,54:g,55:C,56:R,57:k,58:S,59:N,60:j,61:w,62:D,63:B,64:I,65:M,66:U,67:L,68:P,69:Y,70:F,71:X,72:Q,73:W,74:q},{14:[1,74]},e(z,[2,13],{43:23,29:49,30:61,32:62,20:75,34:a,36:l,37:u,38:h,39:f,40:d,41:_,44:b,45:p,46:E,47:y,48:m,49:A,50:x,51:O,52:T,53:v,54:g,55:C,56:R,57:k,58:S,59:N,60:j,61:w,62:D,63:B,64:I,65:M,66:U,67:L,68:P,69:Y,70:F,71:X,72:Q,73:W,74:q}),e(z,[2,14]),e(H,[2,16],{12:[1,76]}),e(z,[2,36],{12:[1,77]}),e(G,[2,19]),e(G,[2,20]),{25:[1,78]},{27:[1,79]},e(G,[2,23]),{35:80,75:81,76:V,77:K,79:J,80:Z},{35:86,75:81,76:V,77:K,79:J,80:Z},{35:87,75:81,76:V,77:K,79:J,80:Z},{35:88,75:81,76:V,77:K,79:J,80:Z},{35:89,75:81,76:V,77:K,79:J,80:Z},{35:90,75:81,76:V,77:K,79:J,80:Z},{35:91,75:81,76:V,77:K,79:J,80:Z},{35:92,75:81,76:V,77:K,79:J,80:Z},{35:93,75:81,76:V,77:K,79:J,80:Z},{35:94,75:81,76:V,77:K,79:J,80:Z},{35:95,75:81,76:V,77:K,79:J,80:Z},{35:96,75:81,76:V,77:K,79:J,80:Z},{35:97,75:81,76:V,77:K,79:J,80:Z},{35:98,75:81,76:V,77:K,79:J,80:Z},{35:99,75:81,76:V,77:K,79:J,80:Z},{35:100,75:81,76:V,77:K,79:J,80:Z},{35:101,75:81,76:V,77:K,79:J,80:Z},{35:102,75:81,76:V,77:K,79:J,80:Z},{35:103,75:81,76:V,77:K,79:J,80:Z},{35:104,75:81,76:V,77:K,79:J,80:Z},e($,[2,59]),{35:105,75:81,76:V,77:K,79:J,80:Z},{35:106,75:81,76:V,77:K,79:J,80:Z},{35:107,75:81,76:V,77:K,79:J,80:Z},{35:108,75:81,76:V,77:K,79:J,80:Z},{35:109,75:81,76:V,77:K,79:J,80:Z},{35:110,75:81,76:V,77:K,79:J,80:Z},{35:111,75:81,76:V,77:K,79:J,80:Z},{35:112,75:81,76:V,77:K,79:J,80:Z},{35:113,75:81,76:V,77:K,79:J,80:Z},{35:114,75:81,76:V,77:K,79:J,80:Z},{35:115,75:81,76:V,77:K,79:J,80:Z},{20:116,29:49,30:61,32:62,34:a,36:l,37:u,38:h,39:f,40:d,41:_,43:23,44:b,45:p,46:E,47:y,48:m,49:A,50:x,51:O,52:T,53:v,54:g,55:C,56:R,57:k,58:S,59:N,60:j,61:w,62:D,63:B,64:I,65:M,66:U,67:L,68:P,69:Y,70:F,71:X,72:Q,73:W,74:q},{12:[1,118],33:[1,117]},{35:119,75:81,76:V,77:K,79:J,80:Z},{35:120,75:81,76:V,77:K,79:J,80:Z},{35:121,75:81,76:V,77:K,79:J,80:Z},{35:122,75:81,76:V,77:K,79:J,80:Z},{35:123,75:81,76:V,77:K,79:J,80:Z},{35:124,75:81,76:V,77:K,79:J,80:Z},{35:125,75:81,76:V,77:K,79:J,80:Z},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(z,[2,15]),e(H,[2,17],{21:22,19:130,22:t,23:s,24:i,26:n,28:r}),e(z,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:i,26:n,28:r,34:a,36:l,37:u,38:h,39:f,40:d,41:_,44:b,45:p,46:E,47:y,48:m,49:A,50:x,51:O,52:T,53:v,54:g,55:C,56:R,57:k,58:S,59:N,60:j,61:w,62:D,63:B,64:I,65:M,66:U,67:L,68:P,69:Y,70:F,71:X,72:Q,73:W,74:q}),e(G,[2,21]),e(G,[2,22]),e($,[2,39]),e(ee,[2,71],{75:81,35:132,76:V,77:K,79:J,80:Z}),e(te,[2,73]),{78:[1,133]},e(te,[2,75]),e(te,[2,76]),e($,[2,40]),e($,[2,41]),e($,[2,42]),e($,[2,43]),e($,[2,44]),e($,[2,45]),e($,[2,46]),e($,[2,47]),e($,[2,48]),e($,[2,49]),e($,[2,50]),e($,[2,51]),e($,[2,52]),e($,[2,53]),e($,[2,54]),e($,[2,55]),e($,[2,56]),e($,[2,57]),e($,[2,58]),e($,[2,60]),e($,[2,61]),e($,[2,62]),e($,[2,63]),e($,[2,64]),e($,[2,65]),e($,[2,66]),e($,[2,67]),e($,[2,68]),e($,[2,69]),e($,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(se,[2,28]),e(se,[2,29]),e(se,[2,30]),e(se,[2,31]),e(se,[2,32]),e(se,[2,33]),e(se,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(H,[2,18]),e(z,[2,38]),e(ee,[2,72]),e(te,[2,74]),e($,[2,24]),e($,[2,35]),e(ie,[2,25]),e(ie,[2,26],{12:[1,138]}),e(ie,[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:o(function(e,t){if(!t.recoverable){var s=new Error(e);throw s.hash=t,s}this.trace(e)},"parseError"),parse:o(function(e){var t=this,s=[0],i=[],n=[null],r=[],a=this.table,l="",c=0,u=0,h=r.slice.call(arguments,1),f=Object.create(this.lexer),d={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(d.yy[_]=this.yy[_]);f.setInput(e,d.yy),d.yy.lexer=f,d.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var b=f.yylloc;r.push(b);var p=f.options&&f.options.ranges;function E(){var e;return"number"!=typeof(e=i.pop()||f.lex()||1)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,o(function(e){s.length=s.length-2*e,n.length=n.length-e,r.length=r.length-e},"popStack"),o(E,"lex");for(var y,m,A,x,O,T,v,g,C={};;){if(m=s[s.length-1],this.defaultActions[m]?A=this.defaultActions[m]:(null==y&&(y=E()),A=a[m]&&a[m][y]),void 0===A||!A.length||!A[0]){var R="";for(O in g=[],a[m])this.terminals_[O]&&O>2&&g.push("'"+this.terminals_[O]+"'");R=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+g.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==y?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(R,{text:f.match,token:this.terminals_[y]||y,line:f.yylineno,loc:b,expected:g})}if(A[0]instanceof Array&&A.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+y);switch(A[0]){case 1:s.push(y),n.push(f.yytext),r.push(f.yylloc),s.push(A[1]),y=null,u=f.yyleng,l=f.yytext,c=f.yylineno,b=f.yylloc;break;case 2:if(T=this.productions_[A[1]][1],C.$=n[n.length-T],C._$={first_line:r[r.length-(T||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(T||1)].first_column,last_column:r[r.length-1].last_column},p&&(C._$.range=[r[r.length-(T||1)].range[0],r[r.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[l,u,c,d.yy,A[1],n,r].concat(h))))return x;T&&(s=s.slice(0,-1*T*2),n=n.slice(0,-1*T),r=r.slice(0,-1*T)),s.push(this.productions_[A[1]][0]),n.push(C.$),r.push(C._$),v=a[s[s.length-2]][s[s.length-1]],s.push(v);break;case 3:return!0}}return!0},"parse")},re=function(){return{EOF:1,parseError:o(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:o(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:o(function(e){var t=e.length,s=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=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),s.length-1&&(this.yylineno-=s.length-1);var n=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:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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:o(function(e){this.unput(this.match.slice(e))},"less"),pastInput:o(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:o(function(e,t){var s,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],s=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var r in n)this[r]=n[r];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;var e,t,s,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if((s=this._input.match(this.rules[n[r]]))&&(!t||s[0].length>t[0].length)){if(t=s,i=r,this.options.backtrack_lexer){if(!1!==(e=this.test_match(s,n[r])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,n[i]))&&e:""===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:o(function(){var e=this.next();return e||this.lex()},"lex"),begin:o(function(e){this.conditionStack.push(e)},"begin"),popState:o(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(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:o(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:o(function(e){this.begin(e)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:o(function(e,t,s,i){switch(s){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}}}}();function ae(){this.yy={}}return ne.lexer=re,o(ae,"Parser"),ae.prototype=ne,ne.Parser=ae,new ae}();x.parser=x;var O,T=x,v=[],g=[""],C="global",R="",k=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],S=[],N="",j=!1,w=4,D=2,B=o(function(){return O},"getC4Type"),I=o(function(e){let t=p(e,u());O=t},"setC4Type"),M=o(function(e,t,s,i,n,r,a,l,o){if(null==e||null==t||null==s||null==i)return;let c={};const u=S.find(e=>e.from===t&&e.to===s);if(u?c=u:S.push(c),c.type=e,c.from=t,c.to=s,c.label={text:i},null==n)c.techn={text:""};else if("object"==typeof n){let[e,t]=Object.entries(n)[0];c[e]={text:t}}else c.techn={text:n};if(null==r)c.descr={text:""};else if("object"==typeof r){let[e,t]=Object.entries(r)[0];c[e]={text:t}}else c.descr={text:r};if("object"==typeof a){let[e,t]=Object.entries(a)[0];c[e]=t}else c.sprite=a;if("object"==typeof l){let[e,t]=Object.entries(l)[0];c[e]=t}else c.tags=l;if("object"==typeof o){let[e,t]=Object.entries(o)[0];c[e]=t}else c.link=o;c.wrap=re()},"addRel"),U=o(function(e,t,s,i,n,r,a){if(null===t||null===s)return;let l={};const o=v.find(e=>e.alias===t);if(o&&t===o.alias?l=o:(l.alias=t,v.push(l)),l.label=null==s?{text:""}:{text:s},null==i)l.descr={text:""};else if("object"==typeof i){let[e,t]=Object.entries(i)[0];l[e]={text:t}}else l.descr={text:i};if("object"==typeof n){let[e,t]=Object.entries(n)[0];l[e]=t}else l.sprite=n;if("object"==typeof r){let[e,t]=Object.entries(r)[0];l[e]=t}else l.tags=r;if("object"==typeof a){let[e,t]=Object.entries(a)[0];l[e]=t}else l.link=a;l.typeC4Shape={text:e},l.parentBoundary=C,l.wrap=re()},"addPersonOrSystem"),L=o(function(e,t,s,i,n,r,a,l){if(null===t||null===s)return;let o={};const c=v.find(e=>e.alias===t);if(c&&t===c.alias?o=c:(o.alias=t,v.push(o)),o.label=null==s?{text:""}:{text:s},null==i)o.techn={text:""};else if("object"==typeof i){let[e,t]=Object.entries(i)[0];o[e]={text:t}}else o.techn={text:i};if(null==n)o.descr={text:""};else if("object"==typeof n){let[e,t]=Object.entries(n)[0];o[e]={text:t}}else o.descr={text:n};if("object"==typeof r){let[e,t]=Object.entries(r)[0];o[e]=t}else o.sprite=r;if("object"==typeof a){let[e,t]=Object.entries(a)[0];o[e]=t}else o.tags=a;if("object"==typeof l){let[e,t]=Object.entries(l)[0];o[e]=t}else o.link=l;o.wrap=re(),o.typeC4Shape={text:e},o.parentBoundary=C},"addContainer"),P=o(function(e,t,s,i,n,r,a,l){if(null===t||null===s)return;let o={};const c=v.find(e=>e.alias===t);if(c&&t===c.alias?o=c:(o.alias=t,v.push(o)),o.label=null==s?{text:""}:{text:s},null==i)o.techn={text:""};else if("object"==typeof i){let[e,t]=Object.entries(i)[0];o[e]={text:t}}else o.techn={text:i};if(null==n)o.descr={text:""};else if("object"==typeof n){let[e,t]=Object.entries(n)[0];o[e]={text:t}}else o.descr={text:n};if("object"==typeof r){let[e,t]=Object.entries(r)[0];o[e]=t}else o.sprite=r;if("object"==typeof a){let[e,t]=Object.entries(a)[0];o[e]=t}else o.tags=a;if("object"==typeof l){let[e,t]=Object.entries(l)[0];o[e]=t}else o.link=l;o.wrap=re(),o.typeC4Shape={text:e},o.parentBoundary=C},"addComponent"),Y=o(function(e,t,s,i,n){if(null===e||null===t)return;let r={};const a=k.find(t=>t.alias===e);if(a&&e===a.alias?r=a:(r.alias=e,k.push(r)),r.label=null==t?{text:""}:{text:t},null==s)r.type={text:"system"};else if("object"==typeof s){let[e,t]=Object.entries(s)[0];r[e]={text:t}}else r.type={text:s};if("object"==typeof i){let[e,t]=Object.entries(i)[0];r[e]=t}else r.tags=i;if("object"==typeof n){let[e,t]=Object.entries(n)[0];r[e]=t}else r.link=n;r.parentBoundary=C,r.wrap=re(),R=C,C=e,g.push(R)},"addPersonOrSystemBoundary"),F=o(function(e,t,s,i,n){if(null===e||null===t)return;let r={};const a=k.find(t=>t.alias===e);if(a&&e===a.alias?r=a:(r.alias=e,k.push(r)),r.label=null==t?{text:""}:{text:t},null==s)r.type={text:"container"};else if("object"==typeof s){let[e,t]=Object.entries(s)[0];r[e]={text:t}}else r.type={text:s};if("object"==typeof i){let[e,t]=Object.entries(i)[0];r[e]=t}else r.tags=i;if("object"==typeof n){let[e,t]=Object.entries(n)[0];r[e]=t}else r.link=n;r.parentBoundary=C,r.wrap=re(),R=C,C=e,g.push(R)},"addContainerBoundary"),X=o(function(e,t,s,i,n,r,a,l){if(null===t||null===s)return;let o={};const c=k.find(e=>e.alias===t);if(c&&t===c.alias?o=c:(o.alias=t,k.push(o)),o.label=null==s?{text:""}:{text:s},null==i)o.type={text:"node"};else if("object"==typeof i){let[e,t]=Object.entries(i)[0];o[e]={text:t}}else o.type={text:i};if(null==n)o.descr={text:""};else if("object"==typeof n){let[e,t]=Object.entries(n)[0];o[e]={text:t}}else o.descr={text:n};if("object"==typeof a){let[e,t]=Object.entries(a)[0];o[e]=t}else o.tags=a;if("object"==typeof l){let[e,t]=Object.entries(l)[0];o[e]=t}else o.link=l;o.nodeType=e,o.parentBoundary=C,o.wrap=re(),R=C,C=t,g.push(R)},"addDeploymentNode"),Q=o(function(){C=R,g.pop(),R=g.pop(),g.push(R)},"popBoundaryParseStack"),W=o(function(e,t,s,i,n,r,a,l,o,c,u){let h=v.find(e=>e.alias===t);if(void 0!==h||(h=k.find(e=>e.alias===t),void 0!==h)){if(null!=s)if("object"==typeof s){let[e,t]=Object.entries(s)[0];h[e]=t}else h.bgColor=s;if(null!=i)if("object"==typeof i){let[e,t]=Object.entries(i)[0];h[e]=t}else h.fontColor=i;if(null!=n)if("object"==typeof n){let[e,t]=Object.entries(n)[0];h[e]=t}else h.borderColor=n;if(null!=r)if("object"==typeof r){let[e,t]=Object.entries(r)[0];h[e]=t}else h.shadowing=r;if(null!=a)if("object"==typeof a){let[e,t]=Object.entries(a)[0];h[e]=t}else h.shape=a;if(null!=l)if("object"==typeof l){let[e,t]=Object.entries(l)[0];h[e]=t}else h.sprite=l;if(null!=o)if("object"==typeof o){let[e,t]=Object.entries(o)[0];h[e]=t}else h.techn=o;if(null!=c)if("object"==typeof c){let[e,t]=Object.entries(c)[0];h[e]=t}else h.legendText=c;if(null!=u)if("object"==typeof u){let[e,t]=Object.entries(u)[0];h[e]=t}else h.legendSprite=u}},"updateElStyle"),q=o(function(e,t,s,i,n,r,a){const l=S.find(e=>e.from===t&&e.to===s);if(void 0!==l){if(null!=i)if("object"==typeof i){let[e,t]=Object.entries(i)[0];l[e]=t}else l.textColor=i;if(null!=n)if("object"==typeof n){let[e,t]=Object.entries(n)[0];l[e]=t}else l.lineColor=n;if(null!=r)if("object"==typeof r){let[e,t]=Object.entries(r)[0];l[e]=parseInt(t)}else l.offsetX=parseInt(r);if(null!=a)if("object"==typeof a){let[e,t]=Object.entries(a)[0];l[e]=parseInt(t)}else l.offsetY=parseInt(a)}},"updateRelStyle"),z=o(function(e,t,s){let i=w,n=D;if("object"==typeof t){const e=Object.values(t)[0];i=parseInt(e)}else i=parseInt(t);if("object"==typeof s){const e=Object.values(s)[0];n=parseInt(e)}else n=parseInt(s);i>=1&&(w=i),n>=1&&(D=n)},"updateLayoutConfig"),H=o(function(){return w},"getC4ShapeInRow"),G=o(function(){return D},"getC4BoundaryInRow"),V=o(function(){return C},"getCurrentBoundaryParse"),K=o(function(){return R},"getParentBoundaryParse"),J=o(function(e){return null==e?v:v.filter(t=>t.parentBoundary===e)},"getC4ShapeArray"),Z=o(function(e){return v.find(t=>t.alias===e)},"getC4Shape"),$=o(function(e){return Object.keys(J(e))},"getC4ShapeKeys"),ee=o(function(e){return null==e?k:k.filter(t=>t.parentBoundary===e)},"getBoundaries"),te=ee,se=o(function(){return S},"getRels"),ie=o(function(){return N},"getTitle"),ne=o(function(e){j=e},"setWrap"),re=o(function(){return j},"autoWrap"),ae=o(function(){v=[],k=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],R="",C="global",g=[""],S=[],g=[""],N="",j=!1,w=4,D=2},"clear"),le=o(function(e){let t=p(e,u());N=t},"setTitle"),oe={addPersonOrSystem:U,addPersonOrSystemBoundary:Y,addContainer:L,addContainerBoundary:F,addComponent:P,addDeploymentNode:X,popBoundaryParseStack:Q,addRel:M,updateElStyle:W,updateRelStyle:q,updateLayoutConfig:z,autoWrap:re,setWrap:ne,getC4ShapeArray:J,getC4Shape:Z,getC4ShapeKeys:$,getBoundaries:ee,getBoundarys:te,getCurrentBoundaryParse:V,getParentBoundaryParse:K,getRels:se,getTitle:ie,getC4Type:B,getC4ShapeInRow:H,getC4BoundaryInRow:G,setAccTitle:l,getAccTitle:a,getAccDescription:r,setAccDescription:n,getConfig:o(()=>u().c4,"getConfig"),clear:ae,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:le,setC4Type:I},ce=o(function(e,t){return i(e,t)},"drawRect"),ue=o(function(e,t,s,i,n,r){const a=e.append("image");a.attr("width",t),a.attr("height",s),a.attr("x",i),a.attr("y",n);let l=r.startsWith("data:image/png;base64")?r:E.sanitizeUrl(r);a.attr("xlink:href",l)},"drawImage"),he=o((e,t,s)=>{const i=e.append("g");let n=0;for(let r of t){let e=r.textColor?r.textColor:"#444444",t=r.lineColor?r.lineColor:"#444444",a=r.offsetX?parseInt(r.offsetX):0,l=r.offsetY?parseInt(r.offsetY):0,o="";if(0===n){let e=i.append("line");e.attr("x1",r.startPoint.x),e.attr("y1",r.startPoint.y),e.attr("x2",r.endPoint.x),e.attr("y2",r.endPoint.y),e.attr("stroke-width","1"),e.attr("stroke",t),e.style("fill","none"),"rel_b"!==r.type&&e.attr("marker-end","url("+o+"#arrowhead)"),"birel"!==r.type&&"rel_b"!==r.type||e.attr("marker-start","url("+o+"#arrowend)"),n=-1}else{let e=i.append("path");e.attr("fill","none").attr("stroke-width","1").attr("stroke",t).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",r.startPoint.x).replaceAll("starty",r.startPoint.y).replaceAll("controlx",r.startPoint.x+(r.endPoint.x-r.startPoint.x)/2-(r.endPoint.x-r.startPoint.x)/4).replaceAll("controly",r.startPoint.y+(r.endPoint.y-r.startPoint.y)/2).replaceAll("stopx",r.endPoint.x).replaceAll("stopy",r.endPoint.y)),"rel_b"!==r.type&&e.attr("marker-end","url("+o+"#arrowhead)"),"birel"!==r.type&&"rel_b"!==r.type||e.attr("marker-start","url("+o+"#arrowend)")}let c=s.messageFont();Te(s)(r.label.text,i,Math.min(r.startPoint.x,r.endPoint.x)+Math.abs(r.endPoint.x-r.startPoint.x)/2+a,Math.min(r.startPoint.y,r.endPoint.y)+Math.abs(r.endPoint.y-r.startPoint.y)/2+l,r.label.width,r.label.height,{fill:e},c),r.techn&&""!==r.techn.text&&(c=s.messageFont(),Te(s)("["+r.techn.text+"]",i,Math.min(r.startPoint.x,r.endPoint.x)+Math.abs(r.endPoint.x-r.startPoint.x)/2+a,Math.min(r.startPoint.y,r.endPoint.y)+Math.abs(r.endPoint.y-r.startPoint.y)/2+s.messageFontSize+5+l,Math.max(r.label.width,r.techn.width),r.techn.height,{fill:e,"font-style":"italic"},c))}},"drawRels"),fe=o(function(e,t,s){const i=e.append("g");let n=t.bgColor?t.bgColor:"none",r=t.borderColor?t.borderColor:"#444444",a=t.fontColor?t.fontColor:"black",l={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(l={"stroke-width":1});let o={x:t.x,y:t.y,fill:n,stroke:r,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:l};ce(i,o);let c=s.boundaryFont();c.fontWeight="bold",c.fontSize=c.fontSize+2,c.fontColor=a,Te(s)(t.label.text,i,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},c),t.type&&""!==t.type.text&&(c=s.boundaryFont(),c.fontColor=a,Te(s)(t.type.text,i,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},c)),t.descr&&""!==t.descr.text&&(c=s.boundaryFont(),c.fontSize=c.fontSize-2,c.fontColor=a,Te(s)(t.descr.text,i,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},c))},"drawBoundary"),de=o(function(e,t,i){var n;let r=t.bgColor?t.bgColor:i[t.typeC4Shape.text+"_bg_color"],a=t.borderColor?t.borderColor:i[t.typeC4Shape.text+"_border_color"],l=t.fontColor?t.fontColor:"#FFFFFF",o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":o="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":o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}const c=e.append("g");c.attr("class","person-man");const u=s();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":u.x=t.x,u.y=t.y,u.fill=r,u.width=t.width,u.height=t.height,u.stroke=a,u.rx=2.5,u.ry=2.5,u.attrs={"stroke-width":.5},ce(c,u);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":c.append("path").attr("fill",r).attr("stroke-width","0.5").attr("stroke",a).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",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),c.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",a).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":c.append("path").attr("fill",r).attr("stroke-width","0.5").attr("stroke",a).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",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),c.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",a).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2))}let h=Oe(i,t.typeC4Shape.text);switch(c.append("text").attr("fill",l).attr("font-family",h.fontFamily).attr("font-size",h.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":ue(c,48,48,t.x+t.width/2-24,t.y+t.image.Y,o)}let f=i[t.typeC4Shape.text+"Font"]();return f.fontWeight="bold",f.fontSize=f.fontSize+2,f.fontColor=l,Te(i)(t.label.text,c,t.x,t.y+t.label.Y,t.width,t.height,{fill:l},f),f=i[t.typeC4Shape.text+"Font"](),f.fontColor=l,t.techn&&""!==(null==(n=t.techn)?void 0:n.text)?Te(i)(t.techn.text,c,t.x,t.y+t.techn.Y,t.width,t.height,{fill:l,"font-style":"italic"},f):t.type&&""!==t.type.text&&Te(i)(t.type.text,c,t.x,t.y+t.type.Y,t.width,t.height,{fill:l,"font-style":"italic"},f),t.descr&&""!==t.descr.text&&(f=i.personFont(),f.fontColor=l,Te(i)(t.descr.text,c,t.x,t.y+t.descr.Y,t.width,t.height,{fill:l},f)),t.height},"drawC4Shape"),_e=o(function(e){e.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-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),be=o(function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),pe=o(function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),Ee=o(function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),ye=o(function(e){e.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),me=o(function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),Ae=o(function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertDynamicNumber"),xe=o(function(e){const t=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);t.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),t.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),Oe=o((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"getC4ShapeFont"),Te=function(){function e(e,t,s,n,r,a,l){i(t.append("text").attr("x",s+r/2).attr("y",n+a/2+5).style("text-anchor","middle").text(e),l)}function t(e,t,s,n,r,a,l,o){const{fontSize:c,fontFamily:u,fontWeight:h}=o,f=e.split(m.lineBreakRegex);for(let d=0;d<f.length;d++){const e=d*c-c*(f.length-1)/2,a=t.append("text").attr("x",s+r/2).attr("y",n).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",c).style("font-weight",h).style("font-family",u);a.append("tspan").attr("dy",e).text(f[d]).attr("alignment-baseline","mathematical"),i(a,l)}}function s(e,s,n,r,a,l,o,c){const u=s.append("switch"),h=u.append("foreignObject").attr("x",n).attr("y",r).attr("width",a).attr("height",l).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),t(e,u,n,r,a,0,o,c),i(h,o)}function i(e,t){for(const s in t)t.hasOwnProperty(s)&&e.attr(s,t[s])}return o(e,"byText"),o(t,"byTspan"),o(s,"byFo"),o(i,"_setTextAttrs"),function(i){return"fo"===i.textPlacement?s:"old"===i.textPlacement?e:t}}(),ve={drawRect:ce,drawBoundary:fe,drawC4Shape:de,drawRels:he,drawImage:ue,insertArrowHead:Ee,insertArrowEnd:ye,insertArrowFilledHead:me,insertDynamicNumber:Ae,insertArrowCrossHead:xe,insertDatabaseIcon:_e,insertComputerIcon:be,insertClockIcon:pe},ge=0,Ce=0,Re=4,ke=2;x.yy=oe;var Se={},Ne=(o(e=class{constructor(e){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,je(e.db.getConfig())}setData(e,t,s,i){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=t,this.nextData.starty=this.data.starty=s,this.nextData.stopy=this.data.stopy=i}updateVal(e,t,s,i){void 0===e[t]?e[t]=s:e[t]=i(s,e[t])}insert(e){this.nextData.cnt=this.nextData.cnt+1;let t=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+e.margin:this.nextData.stopx+2*e.margin,s=t+e.width,i=this.nextData.starty+2*e.margin,n=i+e.height;(t>=this.data.widthLimit||s>=this.data.widthLimit||this.nextData.cnt>Re)&&(t=this.nextData.startx+e.margin+Se.nextLinePaddingX,i=this.nextData.stopy+2*e.margin,this.nextData.stopx=s=t+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=n=i+e.height,this.nextData.cnt=1),e.x=t,e.y=i,this.updateVal(this.data,"startx",t,Math.min),this.updateVal(this.data,"starty",i,Math.min),this.updateVal(this.data,"stopx",s,Math.max),this.updateVal(this.data,"stopy",n,Math.max),this.updateVal(this.nextData,"startx",t,Math.min),this.updateVal(this.nextData,"starty",i,Math.min),this.updateVal(this.nextData,"stopx",s,Math.max),this.updateVal(this.nextData,"stopy",n,Math.max)}init(e){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},je(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},"Bounds"),e),je=o(function(e){_(Se,e),e.fontFamily&&(Se.personFontFamily=Se.systemFontFamily=Se.messageFontFamily=e.fontFamily),e.fontSize&&(Se.personFontSize=Se.systemFontSize=Se.messageFontSize=e.fontSize),e.fontWeight&&(Se.personFontWeight=Se.systemFontWeight=Se.messageFontWeight=e.fontWeight)},"setConf"),we=o((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"c4ShapeFont"),De=o(e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),"boundaryFont"),Be=o(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont");function Ie(e,t,s,i,n){if(!t[e].width)if(s)t[e].text=y(t[e].text,n,i),t[e].textLines=t[e].text.split(m.lineBreakRegex).length,t[e].width=n,t[e].height=A(t[e].text,i);else{let s=t[e].text.split(m.lineBreakRegex);t[e].textLines=s.length;let n=0;t[e].height=0,t[e].width=0;for(const r of s)t[e].width=Math.max(b(r,i),t[e].width),n=A(r,i),t[e].height=t[e].height+n}}o(Ie,"calcC4ShapeTextWH");var Me=o(function(e,t,s){t.x=s.data.startx,t.y=s.data.starty,t.width=s.data.stopx-s.data.startx,t.height=s.data.stopy-s.data.starty,t.label.y=Se.c4ShapeMargin-35;let i=t.wrap&&Se.wrap,n=De(Se);n.fontSize=n.fontSize+2,n.fontWeight="bold",Ie("label",t,i,n,b(t.label.text,n)),ve.drawBoundary(e,t,Se)},"drawBoundary"),Ue=o(function(e,t,s,i){let n=0;for(const r of i){n=0;const i=s[r];let a=we(Se,i.typeC4Shape.text);switch(a.fontSize=a.fontSize-2,i.typeC4Shape.width=b("«"+i.typeC4Shape.text+"»",a),i.typeC4Shape.height=a.fontSize+2,i.typeC4Shape.Y=Se.c4ShapePadding,n=i.typeC4Shape.Y+i.typeC4Shape.height-4,i.image={width:0,height:0,Y:0},i.typeC4Shape.text){case"person":case"external_person":i.image.width=48,i.image.height=48,i.image.Y=n,n=i.image.Y+i.image.height}i.sprite&&(i.image.width=48,i.image.height=48,i.image.Y=n,n=i.image.Y+i.image.height);let l=i.wrap&&Se.wrap,o=Se.width-2*Se.c4ShapePadding,c=we(Se,i.typeC4Shape.text);if(c.fontSize=c.fontSize+2,c.fontWeight="bold",Ie("label",i,l,c,o),i.label.Y=n+8,n=i.label.Y+i.label.height,i.type&&""!==i.type.text){i.type.text="["+i.type.text+"]",Ie("type",i,l,we(Se,i.typeC4Shape.text),o),i.type.Y=n+5,n=i.type.Y+i.type.height}else if(i.techn&&""!==i.techn.text){i.techn.text="["+i.techn.text+"]",Ie("techn",i,l,we(Se,i.techn.text),o),i.techn.Y=n+5,n=i.techn.Y+i.techn.height}let u=n,h=i.label.width;if(i.descr&&""!==i.descr.text){Ie("descr",i,l,we(Se,i.typeC4Shape.text),o),i.descr.Y=n+20,n=i.descr.Y+i.descr.height,h=Math.max(i.label.width,i.descr.width),u=n-5*i.descr.textLines}h+=Se.c4ShapePadding,i.width=Math.max(i.width||Se.width,h,Se.width),i.height=Math.max(i.height||Se.height,u,Se.height),i.margin=i.margin||Se.c4ShapeMargin,e.insert(i),ve.drawC4Shape(t,i,Se)}e.bumpLastMargin(Se.c4ShapeMargin)},"drawC4ShapeArray"),Le=(o(t=class{constructor(e,t){this.x=e,this.y=t}},"Point"),t),Pe=o(function(e,t){let s=e.x,i=e.y,n=t.x,r=t.y,a=s+e.width/2,l=i+e.height/2,o=Math.abs(s-n),c=Math.abs(i-r),u=c/o,h=e.height/e.width,f=null;return i==r&&s<n?f=new Le(s+e.width,l):i==r&&s>n?f=new Le(s,l):s==n&&i<r?f=new Le(a,i+e.height):s==n&&i>r&&(f=new Le(a,i)),s>n&&i<r?f=h>=u?new Le(s,l+u*e.width/2):new Le(a-o/c*e.height/2,i+e.height):s<n&&i<r?f=h>=u?new Le(s+e.width,l+u*e.width/2):new Le(a+o/c*e.height/2,i+e.height):s<n&&i>r?f=h>=u?new Le(s+e.width,l-u*e.width/2):new Le(a+e.height/2*o/c,i):s>n&&i>r&&(f=h>=u?new Le(s,l-e.width/2*u):new Le(a-e.height/2*o/c,i)),f},"getIntersectPoint"),Ye=o(function(e,t){let s={x:0,y:0};s.x=t.x+t.width/2,s.y=t.y+t.height/2;let i=Pe(e,s);return s.x=e.x+e.width/2,s.y=e.y+e.height/2,{startPoint:i,endPoint:Pe(t,s)}},"getIntersectPoints"),Fe=o(function(e,t,s,i){let n=0;for(let r of t){n+=1;let e=r.wrap&&Se.wrap,t=Be(Se);"C4Dynamic"===i.db.getC4Type()&&(r.label.text=n+": "+r.label.text);let a=b(r.label.text,t);Ie("label",r,e,t,a),r.techn&&""!==r.techn.text&&(a=b(r.techn.text,t),Ie("techn",r,e,t,a)),r.descr&&""!==r.descr.text&&(a=b(r.descr.text,t),Ie("descr",r,e,t,a));let l=s(r.from),o=s(r.to),c=Ye(l,o);r.startPoint=c.startPoint,r.endPoint=c.endPoint}ve.drawRels(e,t,Se)},"drawRels");function Xe(e,t,s,i,n){let r=new Ne(n);r.data.widthLimit=s.data.widthLimit/Math.min(ke,i.length);for(let[a,l]of i.entries()){let i=0;l.image={width:0,height:0,Y:0},l.sprite&&(l.image.width=48,l.image.height=48,l.image.Y=i,i=l.image.Y+l.image.height);let o=l.wrap&&Se.wrap,c=De(Se);if(c.fontSize=c.fontSize+2,c.fontWeight="bold",Ie("label",l,o,c,r.data.widthLimit),l.label.Y=i+8,i=l.label.Y+l.label.height,l.type&&""!==l.type.text){l.type.text="["+l.type.text+"]",Ie("type",l,o,De(Se),r.data.widthLimit),l.type.Y=i+5,i=l.type.Y+l.type.height}if(l.descr&&""!==l.descr.text){let e=De(Se);e.fontSize=e.fontSize-2,Ie("descr",l,o,e,r.data.widthLimit),l.descr.Y=i+20,i=l.descr.Y+l.descr.height}if(0==a||a%ke===0){let e=s.data.startx+Se.diagramMarginX,t=s.data.stopy+Se.diagramMarginY+i;r.setData(e,e,t,t)}else{let e=r.data.stopx!==r.data.startx?r.data.stopx+Se.diagramMarginX:r.data.startx,t=r.data.starty;r.setData(e,e,t,t)}r.name=l.alias;let u=n.db.getC4ShapeArray(l.alias),h=n.db.getC4ShapeKeys(l.alias);h.length>0&&Ue(r,e,u,h),t=l.alias;let f=n.db.getBoundaries(t);f.length>0&&Xe(e,t,r,f,n),"global"!==l.alias&&Me(e,l,r),s.data.stopy=Math.max(r.data.stopy+Se.c4ShapeMargin,s.data.stopy),s.data.stopx=Math.max(r.data.stopx+Se.c4ShapeMargin,s.data.stopx),ge=Math.max(ge,s.data.stopx),Ce=Math.max(Ce,s.data.stopy)}}o(Xe,"drawInsideBoundary");var Qe={drawPersonOrSystemArray:Ue,drawBoundary:Me,setConf:je,draw:o(function(e,t,s,i){Se=u().c4;const n=u().securityLevel;let r;"sandbox"===n&&(r=h("#i"+t));const a=h("sandbox"===n?r.nodes()[0].contentDocument.body:"body");let l=i.db;i.db.setWrap(Se.wrap),Re=l.getC4ShapeInRow(),ke=l.getC4BoundaryInRow(),f.debug(`C:${JSON.stringify(Se,null,2)}`);const o="sandbox"===n?a.select(`[id="${t}"]`):h(`[id="${t}"]`);ve.insertComputerIcon(o),ve.insertDatabaseIcon(o),ve.insertClockIcon(o);let c=new Ne(i);c.setData(Se.diagramMarginX,Se.diagramMarginX,Se.diagramMarginY,Se.diagramMarginY),c.data.widthLimit=screen.availWidth,ge=Se.diagramMarginX,Ce=Se.diagramMarginY;const _=i.db.getTitle();Xe(o,"",c,i.db.getBoundaries(""),i),ve.insertArrowHead(o),ve.insertArrowEnd(o),ve.insertArrowCrossHead(o),ve.insertArrowFilledHead(o),Fe(o,i.db.getRels(),i.db.getC4Shape,i),c.data.stopx=ge,c.data.stopy=Ce;const b=c.data;let p=b.stopy-b.starty+2*Se.diagramMarginY;const E=b.stopx-b.startx+2*Se.diagramMarginX;_&&o.append("text").text(_).attr("x",(b.stopx-b.startx)/2-4*Se.diagramMarginX).attr("y",b.starty+Se.diagramMarginY),d(o,p,E,Se.useMaxWidth);const y=_?60:0;o.attr("viewBox",b.startx-Se.diagramMarginX+" -"+(Se.diagramMarginY+y)+" "+E+" "+(p+y)),f.debug("models:",b)},"draw")},We={parser:T,db:oe,renderer:Qe,styles:o(e=>`.person {\n stroke: ${e.personBorder};\n fill: ${e.personBkg};\n }\n`,"getStyles"),init:o(({c4:e,wrap:t})=>{Qe.setConf(e),oe.setWrap(t)},"init")};export{We as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ap as a,aq as s}from"./index-BvMYTiOr.js";const o=(o,p)=>a.lang.round(s.parse(o)[p]);export{o as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as l}from"./index-
|
|
1
|
+
import{_ as l}from"./index-BvMYTiOr.js";function n(l,n){var o,p,u;l.accDescr&&(null==(o=n.setAccDescription)||o.call(n,l.accDescr)),l.accTitle&&(null==(p=n.setAccTitle)||p.call(n,l.accTitle)),l.title&&(null==(u=n.setDiagramTitle)||u.call(n,l.title))}l(n,"populateCommonDb");export{n as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as a,d as e}from"./index-
|
|
1
|
+
import{_ as a,d as e}from"./index-BvMYTiOr.js";var r=a((a,r)=>{let d;"sandbox"===r&&(d=e("#i"+a));return e("sandbox"===r?d.nodes()[0].contentDocument.body:"body").select(`[id="${a}"]`)},"getDiagramElement");export{r as g};
|