diff --git a/CHANGELOG.md b/CHANGELOG.md index 0fe510c..df11dfa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,15 @@ # Change Log +## 0.4.2 + +* Update dependencies. + * mermaid `9.2.2` from `9.1.3` + * and more...(webpack, typescript and for devs) + ## 0.4.1 * Update dependencies. - * mermaid `8.14.0` from `9.1.3` + * mermaid `9.1.3` from `8.14.0` ## 0.4.0 diff --git a/README.md b/README.md index 2e62c8a..8a2800c 100644 --- a/README.md +++ b/README.md @@ -36,10 +36,16 @@ This is usefull to avoid multipicate the same code on many files. [CHANGELOG.md](CHANGELOG.md) +## 0.4.2 + +* Update dependencies. + * mermaid `9.2.2` from `9.1.3` + * and more...(webpack, typescript and for devs) + ## 0.4.1 * Update dependencies. - * mermaid `8.14.0` from `9.1.3` + * mermaid `9.1.3` from `8.14.0` ## 0.4.0 diff --git a/dist/mermaid/mermaid.js b/dist/mermaid/mermaid.js index 9f9f770..26b2bbd 100644 --- a/dist/mermaid/mermaid.js +++ b/dist/mermaid/mermaid.js @@ -1,2 +1,2 @@ /*! For license information please see mermaid.js.LICENSE.txt */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.mermaid=t():e.mermaid=t()}("undefined"!=typeof self?self:this,(()=>(()=>{var e={"./src/diagrams/c4/parser/c4Diagram.jison":(e,t,r)=>{e=r.nmd(e);var n=function(){var e=function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},t=[1,6],r=[1,7],n=[1,8],s=[1,9],a=[1,16],i=[1,11],o=[1,12],l=[1,13],d=[1,14],u=[1,15],h=[1,27],f=[1,33],p=[1,34],m=[1,35],g=[1,36],y=[1,37],_=[1,72],b=[1,73],v=[1,74],x=[1,75],k=[1,76],j=[1,77],w=[1,78],C=[1,38],T=[1,39],E=[1,40],S=[1,41],A=[1,42],M=[1,43],D=[1,44],O=[1,45],B=[1,46],I=[1,47],N=[1,48],L=[1,49],R=[1,50],F=[1,51],P=[1,52],z=[1,53],q=[1,54],Y=[1,55],U=[1,56],W=[1,57],G=[1,59],$=[1,60],H=[1,61],V=[1,62],X=[1,63],K=[1,64],Z=[1,65],Q=[1,66],J=[1,67],ee=[1,68],te=[1,69],re=[24,52],ne=[24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],se=[15,24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],ae=[1,94],ie=[1,95],oe=[1,96],le=[1,97],ce=[15,24,52],de=[7,8,9,10,18,22,25,26,27,28],ue=[15,24,43,52],he=[15,24,43,52,86,87,89,90],fe=[15,43],pe=[44,46,47,48,49,50,51,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],me={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,C4_CONTEXT:22,statements:23,EOF:24,C4_CONTAINER:25,C4_COMPONENT:26,C4_DYNAMIC:27,C4_DEPLOYMENT:28,otherStatements:29,diagramStatements:30,otherStatement:31,title:32,accDescription:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,boundaryStatement:39,boundaryStartStatement:40,boundaryStopStatement:41,boundaryStart:42,LBRACE:43,ENTERPRISE_BOUNDARY:44,attributes:45,SYSTEM_BOUNDARY:46,BOUNDARY:47,CONTAINER_BOUNDARY:48,NODE:49,NODE_L:50,NODE_R:51,RBRACE:52,diagramStatement:53,PERSON:54,PERSON_EXT:55,SYSTEM:56,SYSTEM_DB:57,SYSTEM_QUEUE:58,SYSTEM_EXT:59,SYSTEM_EXT_DB:60,SYSTEM_EXT_QUEUE:61,CONTAINER:62,CONTAINER_DB:63,CONTAINER_QUEUE:64,CONTAINER_EXT:65,CONTAINER_EXT_DB:66,CONTAINER_EXT_QUEUE:67,COMPONENT:68,COMPONENT_DB:69,COMPONENT_QUEUE:70,COMPONENT_EXT:71,COMPONENT_EXT_DB:72,COMPONENT_EXT_QUEUE:73,REL:74,BIREL:75,REL_U:76,REL_D:77,REL_L:78,REL_R:79,REL_B:80,REL_INDEX:81,UPDATE_EL_STYLE:82,UPDATE_REL_STYLE:83,UPDATE_LAYOUT_CONFIG:84,attribute:85,STR:86,STR_KEY:87,STR_VALUE:88,ATTRIBUTE:89,ATTRIBUTE_EMPTY:90,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"C4_CONTEXT",24:"EOF",25:"C4_CONTAINER",26:"C4_COMPONENT",27:"C4_DYNAMIC",28:"C4_DEPLOYMENT",32:"title",33:"accDescription",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",43:"LBRACE",44:"ENTERPRISE_BOUNDARY",46:"SYSTEM_BOUNDARY",47:"BOUNDARY",48:"CONTAINER_BOUNDARY",49:"NODE",50:"NODE_L",51:"NODE_R",52:"RBRACE",54:"PERSON",55:"PERSON_EXT",56:"SYSTEM",57:"SYSTEM_DB",58:"SYSTEM_QUEUE",59:"SYSTEM_EXT",60:"SYSTEM_EXT_DB",61:"SYSTEM_EXT_QUEUE",62:"CONTAINER",63:"CONTAINER_DB",64:"CONTAINER_QUEUE",65:"CONTAINER_EXT",66:"CONTAINER_EXT_DB",67:"CONTAINER_EXT_QUEUE",68:"COMPONENT",69:"COMPONENT_DB",70:"COMPONENT_QUEUE",71:"COMPONENT_EXT",72:"COMPONENT_EXT_DB",73:"COMPONENT_EXT_QUEUE",74:"REL",75:"BIREL",76:"REL_U",77:"REL_D",78:"REL_L",79:"REL_R",80:"REL_B",81:"REL_INDEX",82:"UPDATE_EL_STYLE",83:"UPDATE_REL_STYLE",84:"UPDATE_LAYOUT_CONFIG",86:"STR",87:"STR_KEY",88:"STR_VALUE",89:"ATTRIBUTE",90:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[11,4],[11,4],[11,4],[11,4],[23,1],[23,1],[23,2],[29,1],[29,2],[29,3],[31,1],[31,1],[31,2],[31,2],[31,1],[39,3],[40,3],[40,3],[40,4],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[41,1],[30,1],[30,2],[30,3],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,1],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[45,1],[45,2],[85,1],[85,2],[85,1],[85,1]],performAction:function(e,t,r,n,s,a,i){var o=a.length-1;switch(s){case 4:n.setDirection("TB");break;case 5:n.setDirection("BT");break;case 6:n.setDirection("RL");break;case 7:n.setDirection("LR");break;case 11:console.log("open_directive: ",a[o]),n.parseDirective("%%{","open_directive");break;case 12:break;case 13:a[o]=a[o].trim().replace(/'/g,'"'),console.log("arg_directive: ",a[o]),n.parseDirective(a[o],"arg_directive");break;case 14:console.log("close_directive: ",a[o]),n.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:n.setC4Type(a[o-3]);break;case 26:n.setTitle(a[o].substring(6)),this.$=a[o].substring(6);break;case 27:n.setAccDescription(a[o].substring(15)),this.$=a[o].substring(15);break;case 28:this.$=a[o].trim(),n.setTitle(this.$);break;case 29:case 30:this.$=a[o].trim(),n.setAccDescription(this.$);break;case 35:case 36:console.log(a[o-1],JSON.stringify(a[o])),a[o].splice(2,0,"ENTERPRISE"),n.addPersonOrSystemBoundary(...a[o]),this.$=a[o];break;case 37:console.log(a[o-1],JSON.stringify(a[o])),n.addPersonOrSystemBoundary(...a[o]),this.$=a[o];break;case 38:console.log(a[o-1],JSON.stringify(a[o])),a[o].splice(2,0,"CONTAINER"),n.addContainerBoundary(...a[o]),this.$=a[o];break;case 39:console.log(a[o-1],JSON.stringify(a[o])),n.addDeploymentNode("node",...a[o]),this.$=a[o];break;case 40:console.log(a[o-1],JSON.stringify(a[o])),n.addDeploymentNode("nodeL",...a[o]),this.$=a[o];break;case 41:console.log(a[o-1],JSON.stringify(a[o])),n.addDeploymentNode("nodeR",...a[o]),this.$=a[o];break;case 42:n.popBoundaryParseStack();break;case 46:console.log(a[o-1],JSON.stringify(a[o])),n.addPersonOrSystem("person",...a[o]),this.$=a[o];break;case 47:console.log(a[o-1],JSON.stringify(a[o])),n.addPersonOrSystem("external_person",...a[o]),this.$=a[o];break;case 48:console.log(a[o-1],JSON.stringify(a[o])),n.addPersonOrSystem("system",...a[o]),this.$=a[o];break;case 49:console.log(a[o-1],JSON.stringify(a[o])),n.addPersonOrSystem("system_db",...a[o]),this.$=a[o];break;case 50:console.log(a[o-1],JSON.stringify(a[o])),n.addPersonOrSystem("system_queue",...a[o]),this.$=a[o];break;case 51:console.log(a[o-1],JSON.stringify(a[o])),n.addPersonOrSystem("external_system",...a[o]),this.$=a[o];break;case 52:console.log(a[o-1],JSON.stringify(a[o])),n.addPersonOrSystem("external_system_db",...a[o]),this.$=a[o];break;case 53:console.log(a[o-1],JSON.stringify(a[o])),n.addPersonOrSystem("external_system_queue",...a[o]),this.$=a[o];break;case 54:console.log(a[o-1],JSON.stringify(a[o])),n.addContainer("container",...a[o]),this.$=a[o];break;case 55:console.log(a[o-1],JSON.stringify(a[o])),n.addContainer("container_db",...a[o]),this.$=a[o];break;case 56:console.log(a[o-1],JSON.stringify(a[o])),n.addContainer("container_queue",...a[o]),this.$=a[o];break;case 57:console.log(a[o-1],JSON.stringify(a[o])),n.addContainer("external_container",...a[o]),this.$=a[o];break;case 58:console.log(a[o-1],JSON.stringify(a[o])),n.addContainer("external_container_db",...a[o]),this.$=a[o];break;case 59:console.log(a[o-1],JSON.stringify(a[o])),n.addContainer("external_container_queue",...a[o]),this.$=a[o];break;case 60:console.log(a[o-1],JSON.stringify(a[o])),n.addComponent("component",...a[o]),this.$=a[o];break;case 61:console.log(a[o-1],JSON.stringify(a[o])),n.addComponent("component_db",...a[o]),this.$=a[o];break;case 62:console.log(a[o-1],JSON.stringify(a[o])),n.addComponent("component_queue",...a[o]),this.$=a[o];break;case 63:console.log(a[o-1],JSON.stringify(a[o])),n.addComponent("external_component",...a[o]),this.$=a[o];break;case 64:console.log(a[o-1],JSON.stringify(a[o])),n.addComponent("external_component_db",...a[o]),this.$=a[o];break;case 65:console.log(a[o-1],JSON.stringify(a[o])),n.addComponent("external_component_queue",...a[o]),this.$=a[o];break;case 67:console.log(a[o-1],JSON.stringify(a[o])),n.addRel("rel",...a[o]),this.$=a[o];break;case 68:console.log(a[o-1],JSON.stringify(a[o])),n.addRel("birel",...a[o]),this.$=a[o];break;case 69:console.log(a[o-1],JSON.stringify(a[o])),n.addRel("rel_u",...a[o]),this.$=a[o];break;case 70:console.log(a[o-1],JSON.stringify(a[o])),n.addRel("rel_d",...a[o]),this.$=a[o];break;case 71:console.log(a[o-1],JSON.stringify(a[o])),n.addRel("rel_l",...a[o]),this.$=a[o];break;case 72:console.log(a[o-1],JSON.stringify(a[o])),n.addRel("rel_r",...a[o]),this.$=a[o];break;case 73:console.log(a[o-1],JSON.stringify(a[o])),n.addRel("rel_b",...a[o]),this.$=a[o];break;case 74:console.log(a[o-1],JSON.stringify(a[o])),a[o].splice(0,1),n.addRel("rel",...a[o]),this.$=a[o];break;case 75:console.log(a[o-1],JSON.stringify(a[o])),n.updateElStyle("update_el_style",...a[o]),this.$=a[o];break;case 76:console.log(a[o-1],JSON.stringify(a[o])),n.updateRelStyle("update_rel_style",...a[o]),this.$=a[o];break;case 77:console.log(a[o-1],JSON.stringify(a[o])),n.updateLayoutConfig("update_layout_config",...a[o]),this.$=a[o];break;case 78:console.log("PUSH ATTRIBUTE: ",a[o]),this.$=[a[o]];break;case 79:console.log("PUSH ATTRIBUTE: ",a[o-1]),a[o].unshift(a[o-1]),this.$=a[o];break;case 80:case 82:this.$=a[o].trim();break;case 81:console.log("kv: ",a[o-1],a[o]);let e={};e[a[o-1].trim()]=a[o].trim(),this.$=e;break;case 83:this.$=""}},table:[{3:1,4:2,5:3,6:4,7:t,8:r,9:n,10:s,11:5,12:10,18:a,22:i,25:o,26:l,27:d,28:u},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:t,8:r,9:n,10:s,11:5,12:10,18:a,22:i,25:o,26:l,27:d,28:u},{1:[2,8]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{1:[2,7]},{13:18,19:[1,19]},{15:[1,20]},{15:[1,21]},{15:[1,22]},{15:[1,23]},{15:[1,24]},{19:[2,11]},{1:[2,3]},{14:25,16:[1,26],21:h},e([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:f,33:p,34:m,36:g,38:y,39:58,40:70,42:71,44:_,46:b,47:v,48:x,49:k,50:j,51:w,53:32,54:C,55:T,56:E,57:S,58:A,59:M,60:D,61:O,62:B,63:I,64:N,65:L,66:R,67:F,68:P,69:z,70:q,71:Y,72:U,73:W,74:G,75:$,76:H,77:V,78:X,79:K,80:Z,81:Q,82:J,83:ee,84:te},{23:79,29:29,30:30,31:31,32:f,33:p,34:m,36:g,38:y,39:58,40:70,42:71,44:_,46:b,47:v,48:x,49:k,50:j,51:w,53:32,54:C,55:T,56:E,57:S,58:A,59:M,60:D,61:O,62:B,63:I,64:N,65:L,66:R,67:F,68:P,69:z,70:q,71:Y,72:U,73:W,74:G,75:$,76:H,77:V,78:X,79:K,80:Z,81:Q,82:J,83:ee,84:te},{23:80,29:29,30:30,31:31,32:f,33:p,34:m,36:g,38:y,39:58,40:70,42:71,44:_,46:b,47:v,48:x,49:k,50:j,51:w,53:32,54:C,55:T,56:E,57:S,58:A,59:M,60:D,61:O,62:B,63:I,64:N,65:L,66:R,67:F,68:P,69:z,70:q,71:Y,72:U,73:W,74:G,75:$,76:H,77:V,78:X,79:K,80:Z,81:Q,82:J,83:ee,84:te},{23:81,29:29,30:30,31:31,32:f,33:p,34:m,36:g,38:y,39:58,40:70,42:71,44:_,46:b,47:v,48:x,49:k,50:j,51:w,53:32,54:C,55:T,56:E,57:S,58:A,59:M,60:D,61:O,62:B,63:I,64:N,65:L,66:R,67:F,68:P,69:z,70:q,71:Y,72:U,73:W,74:G,75:$,76:H,77:V,78:X,79:K,80:Z,81:Q,82:J,83:ee,84:te},{23:82,29:29,30:30,31:31,32:f,33:p,34:m,36:g,38:y,39:58,40:70,42:71,44:_,46:b,47:v,48:x,49:k,50:j,51:w,53:32,54:C,55:T,56:E,57:S,58:A,59:M,60:D,61:O,62:B,63:I,64:N,65:L,66:R,67:F,68:P,69:z,70:q,71:Y,72:U,73:W,74:G,75:$,76:H,77:V,78:X,79:K,80:Z,81:Q,82:J,83:ee,84:te},{15:[1,83]},{17:84,20:[1,85]},{15:[2,14]},{24:[1,86]},e(re,[2,20],{53:32,39:58,40:70,42:71,30:87,44:_,46:b,47:v,48:x,49:k,50:j,51:w,54:C,55:T,56:E,57:S,58:A,59:M,60:D,61:O,62:B,63:I,64:N,65:L,66:R,67:F,68:P,69:z,70:q,71:Y,72:U,73:W,74:G,75:$,76:H,77:V,78:X,79:K,80:Z,81:Q,82:J,83:ee,84:te}),e(re,[2,21]),e(ne,[2,23],{15:[1,88]}),e(re,[2,43],{15:[1,89]}),e(se,[2,26]),e(se,[2,27]),{35:[1,90]},{37:[1,91]},e(se,[2,30]),{45:92,85:93,86:ae,87:ie,89:oe,90:le},{45:98,85:93,86:ae,87:ie,89:oe,90:le},{45:99,85:93,86:ae,87:ie,89:oe,90:le},{45:100,85:93,86:ae,87:ie,89:oe,90:le},{45:101,85:93,86:ae,87:ie,89:oe,90:le},{45:102,85:93,86:ae,87:ie,89:oe,90:le},{45:103,85:93,86:ae,87:ie,89:oe,90:le},{45:104,85:93,86:ae,87:ie,89:oe,90:le},{45:105,85:93,86:ae,87:ie,89:oe,90:le},{45:106,85:93,86:ae,87:ie,89:oe,90:le},{45:107,85:93,86:ae,87:ie,89:oe,90:le},{45:108,85:93,86:ae,87:ie,89:oe,90:le},{45:109,85:93,86:ae,87:ie,89:oe,90:le},{45:110,85:93,86:ae,87:ie,89:oe,90:le},{45:111,85:93,86:ae,87:ie,89:oe,90:le},{45:112,85:93,86:ae,87:ie,89:oe,90:le},{45:113,85:93,86:ae,87:ie,89:oe,90:le},{45:114,85:93,86:ae,87:ie,89:oe,90:le},{45:115,85:93,86:ae,87:ie,89:oe,90:le},{45:116,85:93,86:ae,87:ie,89:oe,90:le},e(ce,[2,66]),{45:117,85:93,86:ae,87:ie,89:oe,90:le},{45:118,85:93,86:ae,87:ie,89:oe,90:le},{45:119,85:93,86:ae,87:ie,89:oe,90:le},{45:120,85:93,86:ae,87:ie,89:oe,90:le},{45:121,85:93,86:ae,87:ie,89:oe,90:le},{45:122,85:93,86:ae,87:ie,89:oe,90:le},{45:123,85:93,86:ae,87:ie,89:oe,90:le},{45:124,85:93,86:ae,87:ie,89:oe,90:le},{45:125,85:93,86:ae,87:ie,89:oe,90:le},{45:126,85:93,86:ae,87:ie,89:oe,90:le},{45:127,85:93,86:ae,87:ie,89:oe,90:le},{30:128,39:58,40:70,42:71,44:_,46:b,47:v,48:x,49:k,50:j,51:w,53:32,54:C,55:T,56:E,57:S,58:A,59:M,60:D,61:O,62:B,63:I,64:N,65:L,66:R,67:F,68:P,69:z,70:q,71:Y,72:U,73:W,74:G,75:$,76:H,77:V,78:X,79:K,80:Z,81:Q,82:J,83:ee,84:te},{15:[1,130],43:[1,129]},{45:131,85:93,86:ae,87:ie,89:oe,90:le},{45:132,85:93,86:ae,87:ie,89:oe,90:le},{45:133,85:93,86:ae,87:ie,89:oe,90:le},{45:134,85:93,86:ae,87:ie,89:oe,90:le},{45:135,85:93,86:ae,87:ie,89:oe,90:le},{45:136,85:93,86:ae,87:ie,89:oe,90:le},{45:137,85:93,86:ae,87:ie,89:oe,90:le},{24:[1,138]},{24:[1,139]},{24:[1,140]},{24:[1,141]},e(de,[2,9]),{14:142,21:h},{21:[2,13]},{1:[2,15]},e(re,[2,22]),e(ne,[2,24],{31:31,29:143,32:f,33:p,34:m,36:g,38:y}),e(re,[2,44],{29:29,30:30,31:31,53:32,39:58,40:70,42:71,23:144,32:f,33:p,34:m,36:g,38:y,44:_,46:b,47:v,48:x,49:k,50:j,51:w,54:C,55:T,56:E,57:S,58:A,59:M,60:D,61:O,62:B,63:I,64:N,65:L,66:R,67:F,68:P,69:z,70:q,71:Y,72:U,73:W,74:G,75:$,76:H,77:V,78:X,79:K,80:Z,81:Q,82:J,83:ee,84:te}),e(se,[2,28]),e(se,[2,29]),e(ce,[2,46]),e(ue,[2,78],{85:93,45:145,86:ae,87:ie,89:oe,90:le}),e(he,[2,80]),{88:[1,146]},e(he,[2,82]),e(he,[2,83]),e(ce,[2,47]),e(ce,[2,48]),e(ce,[2,49]),e(ce,[2,50]),e(ce,[2,51]),e(ce,[2,52]),e(ce,[2,53]),e(ce,[2,54]),e(ce,[2,55]),e(ce,[2,56]),e(ce,[2,57]),e(ce,[2,58]),e(ce,[2,59]),e(ce,[2,60]),e(ce,[2,61]),e(ce,[2,62]),e(ce,[2,63]),e(ce,[2,64]),e(ce,[2,65]),e(ce,[2,67]),e(ce,[2,68]),e(ce,[2,69]),e(ce,[2,70]),e(ce,[2,71]),e(ce,[2,72]),e(ce,[2,73]),e(ce,[2,74]),e(ce,[2,75]),e(ce,[2,76]),e(ce,[2,77]),{41:147,52:[1,148]},{15:[1,149]},{43:[1,150]},e(fe,[2,35]),e(fe,[2,36]),e(fe,[2,37]),e(fe,[2,38]),e(fe,[2,39]),e(fe,[2,40]),e(fe,[2,41]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,151]},e(ne,[2,25]),e(re,[2,45]),e(ue,[2,79]),e(he,[2,81]),e(ce,[2,31]),e(ce,[2,42]),e(pe,[2,32]),e(pe,[2,33],{15:[1,152]}),e(de,[2,10]),e(pe,[2,34])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],6:[2,4],7:[2,5],8:[2,6],9:[2,7],16:[2,11],17:[2,3],27:[2,14],85:[2,13],86:[2,15],138:[2,16],139:[2,17],140:[2,18],141:[2,19]},parseError:function(e,t){if(!t.recoverable){var r=new Error(e);throw r.hash=t,r}this.trace(e)},parse:function(e){var t=this,r=[0],n=[],s=[null],a=[],i=this.table,o="",l=0,c=0,d=0,u=2,h=1,f=a.slice.call(arguments,1),p=Object.create(this.lexer),m={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(m.yy[g]=this.yy[g]);p.setInput(e,m.yy),m.yy.lexer=p,m.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;a.push(y);var _=p.options&&p.options.ranges;function b(){var e;return"number"!=typeof(e=n.pop()||p.lex()||h)&&(e instanceof Array&&(e=(n=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof m.yy.parseError?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,x,k,j,w,C,T,E,S,A={};;){if(k=r[r.length-1],this.defaultActions[k]?j=this.defaultActions[k]:(null==v&&(v=b()),j=i[k]&&i[k][v]),void 0===j||!j.length||!j[0]){var M="";for(C in S=[],i[k])this.terminals_[C]&&C>u&&S.push("'"+this.terminals_[C]+"'");M=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(M,{text:p.match,token:this.terminals_[v]||v,line:p.yylineno,loc:y,expected:S})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+v);switch(j[0]){case 1:r.push(v),s.push(p.yytext),a.push(p.yylloc),r.push(j[1]),v=null,x?(v=x,x=null):(c=p.yyleng,o=p.yytext,l=p.yylineno,y=p.yylloc,d>0&&d--);break;case 2:if(T=this.productions_[j[1]][1],A.$=s[s.length-T],A._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},_&&(A._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(A,[o,c,l,m.yy,j[1],s,a].concat(f))))return w;T&&(r=r.slice(0,-1*T*2),s=s.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[j[1]][0]),s.push(A.$),a.push(A._$),E=i[r[r.length-2]][r[r.length-1]],r.push(E);break;case 3:return!0}}return!0}},ge={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput: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},input: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},unput:function(e){var t=e.length,r=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 n=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),r.length-1&&(this.yylineno-=r.length-1);var s=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var r,n,s;if(this.options.backtrack_lexer&&(s={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&&(s.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.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],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in s)this[a]=s[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),a=0;at[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,s[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,s[n]))&&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})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,r,n){switch(r){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:case 21:break;case 19:c;break;case 20:return 15;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),console.log("begin person_ext"),55;case 28:return this.begin("person"),console.log("begin person"),54;case 29:return this.begin("system_ext_queue"),console.log("begin system_ext_queue"),61;case 30:return this.begin("system_ext_db"),console.log("begin system_ext_db"),60;case 31:return this.begin("system_ext"),console.log("begin system_ext"),59;case 32:return this.begin("system_queue"),console.log("begin system_queue"),58;case 33:return this.begin("system_db"),console.log("begin system_db"),57;case 34:return this.begin("system"),console.log("begin system"),56;case 35:return this.begin("boundary"),console.log("begin boundary"),47;case 36:return this.begin("enterprise_boundary"),console.log("begin enterprise_boundary"),44;case 37:return this.begin("system_boundary"),console.log("begin system_boundary"),46;case 38:return this.begin("container_ext_queue"),console.log("begin container_ext_queue"),67;case 39:return this.begin("container_ext_db"),console.log("begin container_ext_db"),66;case 40:return this.begin("container_ext"),console.log("begin container_ext"),65;case 41:return this.begin("container_queue"),console.log("begin container_queue"),64;case 42:return this.begin("container_db"),console.log("begin container_db"),63;case 43:return this.begin("container"),console.log("begin container"),62;case 44:return this.begin("container_boundary"),console.log("begin container_boundary"),48;case 45:return this.begin("component_ext_queue"),console.log("begin component_ext_queue"),73;case 46:return this.begin("component_ext_db"),console.log("begin component_ext_db"),72;case 47:return this.begin("component_ext"),console.log("begin component_ext"),71;case 48:return this.begin("component_queue"),console.log("begin component_queue"),70;case 49:return this.begin("component_db"),console.log("begin component_db"),69;case 50:return this.begin("component"),console.log("begin component"),68;case 51:case 52:return this.begin("node"),console.log("begin node"),49;case 53:return this.begin("node_l"),console.log("begin node_l"),50;case 54:return this.begin("node_r"),console.log("begin node_r"),51;case 55:return this.begin("rel"),console.log("begin rel"),74;case 56:return this.begin("birel"),console.log("begin birel"),75;case 57:case 58:return this.begin("rel_u"),console.log("begin rel_u"),76;case 59:case 60:return this.begin("rel_d"),console.log("begin rel_d"),77;case 61:case 62:return this.begin("rel_l"),console.log("begin rel_l"),78;case 63:case 64:return this.begin("rel_r"),console.log("begin rel_r"),79;case 65:return this.begin("rel_b"),console.log("begin rel_b"),80;case 66:return this.begin("rel_index"),console.log("begin rel_index"),81;case 67:return this.begin("update_el_style"),console.log("begin update_el_style"),82;case 68:return this.begin("update_rel_style"),console.log("begin update_rel_style"),83;case 69:return this.begin("update_layout_config"),console.log("begin update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return console.log("begin attribute with ATTRIBUTE_EMPTY"),this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:console.log("begin attribute"),this.begin("attribute");break;case 73:console.log("STOP attribute"),this.popState(),console.log("STOP diagram"),this.popState();break;case 74:return console.log(",,"),90;case 75:console.log(",");break;case 76:return console.log("ATTRIBUTE_EMPTY"),90;case 77:console.log("begin string"),this.begin("string");break;case 78:console.log("STOP string"),this.popState();break;case 79:return console.log("STR"),"STR";case 80:console.log("begin string_kv"),this.begin("string_kv");break;case 81:return console.log("STR_KEY"),this.begin("string_kv_key"),"STR_KEY";case 82:console.log("begin string_kv_value"),this.popState(),this.begin("string_kv_value");break;case 83:return console.log("STR_VALUE"),"STR_VALUE";case 84:console.log("STOP string_kv_value"),this.popState(),this.popState();break;case 85:return console.log("not STR"),"STR";case 86:return console.log("begin boundary block"),"LBRACE";case 87:return console.log("STOP boundary block"),"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\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:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},string_kv_value:{rules:[83,84],inclusive:!1},string_kv_key:{rules:[82],inclusive:!1},string_kv:{rules:[81],inclusive:!1},string:{rules:[78,79],inclusive:!1},attribute:{rules:[73,74,75,76,77,80,85],inclusive:!1},update_layout_config:{rules:[70,71,72,73],inclusive:!1},update_rel_style:{rules:[70,71,72,73],inclusive:!1},update_el_style:{rules:[70,71,72,73],inclusive:!1},rel_b:{rules:[70,71,72,73],inclusive:!1},rel_r:{rules:[70,71,72,73],inclusive:!1},rel_l:{rules:[70,71,72,73],inclusive:!1},rel_d:{rules:[70,71,72,73],inclusive:!1},rel_u:{rules:[70,71,72,73],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[70,71,72,73],inclusive:!1},node_r:{rules:[70,71,72,73],inclusive:!1},node_l:{rules:[70,71,72,73],inclusive:!1},node:{rules:[70,71,72,73],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[70,71,72,73],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[70,71,72,73],inclusive:!1},component_ext:{rules:[70,71,72,73],inclusive:!1},component_queue:{rules:[70,71,72,73],inclusive:!1},component_db:{rules:[70,71,72,73],inclusive:!1},component:{rules:[70,71,72,73],inclusive:!1},container_boundary:{rules:[70,71,72,73],inclusive:!1},container_ext_queue:{rules:[],inclusive:!1},container_ext_db:{rules:[70,71,72,73],inclusive:!1},container_ext:{rules:[70,71,72,73],inclusive:!1},container_queue:{rules:[70,71,72,73],inclusive:!1},container_db:{rules:[70,71,72,73],inclusive:!1},container:{rules:[70,71,72,73],inclusive:!1},birel:{rules:[70,71,72,73],inclusive:!1},system_boundary:{rules:[70,71,72,73],inclusive:!1},enterprise_boundary:{rules:[70,71,72,73],inclusive:!1},boundary:{rules:[70,71,72,73],inclusive:!1},system_ext_queue:{rules:[70,71,72,73],inclusive:!1},system_ext_db:{rules:[70,71,72,73],inclusive:!1},system_ext:{rules:[70,71,72,73],inclusive:!1},system_queue:{rules:[70,71,72,73],inclusive:!1},system_db:{rules:[70,71,72,73],inclusive:!1},system:{rules:[70,71,72,73],inclusive:!1},person_ext:{rules:[70,71,72,73],inclusive:!1},person:{rules:[70,71,72,73],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,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,65,66,67,68,69,86,87,88,89,90],inclusive:!0}}};function ye(){this.yy={}}return me.lexer=ge,ye.prototype=me,me.Parser=ye,new ye}();t.parser=n,t.Parser=n.Parser,t.parse=function(){return n.parse.apply(n,arguments)},t.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var n=r("?1da1").readFileSync(r("./node_modules/path-browserify/index.js").normalize(e[1]),"utf8");return t.parser.parse(n)},r.c[r.s]===e&&t.main(process.argv.slice(1))},"./src/diagrams/class/parser/classDiagram.jison":(e,t,r)=>{e=r.nmd(e);var n=function(){var e=function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},t=[1,3],r=[1,7],n=[1,8],s=[1,9],a=[1,10],i=[1,13],o=[1,12],l=[1,16,25],c=[1,20],d=[1,31],u=[1,32],h=[1,33],f=[1,35],p=[1,38],m=[1,36],g=[1,37],y=[1,39],_=[1,40],b=[1,41],v=[1,42],x=[1,45],k=[1,46],j=[1,47],w=[1,48],C=[16,25],T=[1,62],E=[1,63],S=[1,64],A=[1,65],M=[1,66],D=[1,67],O=[16,25,32,44,45,53,56,57,58,59,60,61,66,68],B=[16,25,30,32,44,45,49,53,56,57,58,59,60,61,66,68,83,84,85,86],I=[5,8,9,10,11,16,19,23,25],N=[53,83,84,85,86],L=[53,60,61,83,84,85,86],R=[53,56,57,58,59,83,84,85,86],F=[16,25,32],P=[1,99],z={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statments:5,direction:6,directive:7,direction_tb:8,direction_bt:9,direction_rl:10,direction_lr:11,graphConfig:12,openDirective:13,typeDirective:14,closeDirective:15,NEWLINE:16,":":17,argDirective:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,CLASS_DIAGRAM:23,statements:24,EOF:25,statement:26,className:27,alphaNumToken:28,classLiteralName:29,GENERICTYPE:30,relationStatement:31,LABEL:32,classStatement:33,methodStatement:34,annotationStatement:35,clickStatement:36,cssClassStatement:37,acc_title:38,acc_title_value:39,acc_descr:40,acc_descr_value:41,acc_descr_multiline_value:42,CLASS:43,STYLE_SEPARATOR:44,STRUCT_START:45,members:46,STRUCT_STOP:47,ANNOTATION_START:48,ANNOTATION_END:49,MEMBER:50,SEPARATOR:51,relation:52,STR:53,relationType:54,lineType:55,AGGREGATION:56,EXTENSION:57,COMPOSITION:58,DEPENDENCY:59,LINE:60,DOTTED_LINE:61,CALLBACK:62,LINK:63,LINK_TARGET:64,CLICK:65,CALLBACK_NAME:66,CALLBACK_ARGS:67,HREF:68,CSSCLASS:69,commentToken:70,textToken:71,graphCodeTokens:72,textNoTagsToken:73,TAGSTART:74,TAGEND:75,"==":76,"--":77,PCT:78,DEFAULT:79,SPACE:80,MINUS:81,keywords:82,UNICODE_TEXT:83,NUM:84,ALPHA:85,BQUOTE_STR:86,$accept:0,$end:1},terminals_:{2:"error",5:"statments",8:"direction_tb",9:"direction_bt",10:"direction_rl",11:"direction_lr",16:"NEWLINE",17:":",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",23:"CLASS_DIAGRAM",25:"EOF",30:"GENERICTYPE",32:"LABEL",38:"acc_title",39:"acc_title_value",40:"acc_descr",41:"acc_descr_value",42:"acc_descr_multiline_value",43:"CLASS",44:"STYLE_SEPARATOR",45:"STRUCT_START",47:"STRUCT_STOP",48:"ANNOTATION_START",49:"ANNOTATION_END",50:"MEMBER",51:"SEPARATOR",53:"STR",56:"AGGREGATION",57:"EXTENSION",58:"COMPOSITION",59:"DEPENDENCY",60:"LINE",61:"DOTTED_LINE",62:"CALLBACK",63:"LINK",64:"LINK_TARGET",65:"CLICK",66:"CALLBACK_NAME",67:"CALLBACK_ARGS",68:"HREF",69:"CSSCLASS",72:"graphCodeTokens",74:"TAGSTART",75:"TAGEND",76:"==",77:"--",78:"PCT",79:"DEFAULT",80:"SPACE",81:"MINUS",82:"keywords",83:"UNICODE_TEXT",84:"NUM",85:"ALPHA",86:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,1],[3,2],[6,1],[6,1],[6,1],[6,1],[4,1],[7,4],[7,6],[13,1],[14,1],[18,1],[15,1],[12,4],[24,1],[24,2],[24,3],[27,1],[27,1],[27,2],[27,2],[27,2],[26,1],[26,2],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,2],[26,2],[26,1],[33,2],[33,4],[33,5],[33,7],[35,4],[46,1],[46,2],[34,1],[34,2],[34,1],[34,1],[31,3],[31,4],[31,4],[31,5],[52,3],[52,2],[52,2],[52,1],[54,1],[54,1],[54,1],[54,1],[55,1],[55,1],[36,3],[36,4],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[37,3],[70,1],[70,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[73,1],[73,1],[73,1],[73,1],[28,1],[28,1],[28,1],[29,1]],performAction:function(e,t,r,n,s,a,i){var o=a.length-1;switch(s){case 5:n.setDirection("TB");break;case 6:n.setDirection("BT");break;case 7:n.setDirection("RL");break;case 8:n.setDirection("LR");break;case 12:n.parseDirective("%%{","open_directive");break;case 13:n.parseDirective(a[o],"type_directive");break;case 14:a[o]=a[o].trim().replace(/'/g,'"'),n.parseDirective(a[o],"arg_directive");break;case 15:n.parseDirective("}%%","close_directive","class");break;case 20:case 21:this.$=a[o];break;case 22:this.$=a[o-1]+a[o];break;case 23:case 24:this.$=a[o-1]+"~"+a[o];break;case 25:n.addRelation(a[o]);break;case 26:a[o-1].title=n.cleanupLabel(a[o]),n.addRelation(a[o-1]);break;case 34:this.$=a[o].trim(),n.setAccTitle(this.$);break;case 35:case 36:this.$=a[o].trim(),n.setAccDescription(this.$);break;case 37:n.addClass(a[o]);break;case 38:n.addClass(a[o-2]),n.setCssClass(a[o-2],a[o]);break;case 39:n.addClass(a[o-3]),n.addMembers(a[o-3],a[o-1]);break;case 40:n.addClass(a[o-5]),n.setCssClass(a[o-5],a[o-3]),n.addMembers(a[o-5],a[o-1]);break;case 41:n.addAnnotation(a[o],a[o-2]);break;case 42:this.$=[a[o]];break;case 43:a[o].push(a[o-1]),this.$=a[o];break;case 44:case 46:case 47:break;case 45:n.addMember(a[o-1],n.cleanupLabel(a[o]));break;case 48:this.$={id1:a[o-2],id2:a[o],relation:a[o-1],relationTitle1:"none",relationTitle2:"none"};break;case 49:this.$={id1:a[o-3],id2:a[o],relation:a[o-1],relationTitle1:a[o-2],relationTitle2:"none"};break;case 50:this.$={id1:a[o-3],id2:a[o],relation:a[o-2],relationTitle1:"none",relationTitle2:a[o-1]};break;case 51:this.$={id1:a[o-4],id2:a[o],relation:a[o-2],relationTitle1:a[o-3],relationTitle2:a[o-1]};break;case 52:this.$={type1:a[o-2],type2:a[o],lineType:a[o-1]};break;case 53:this.$={type1:"none",type2:a[o],lineType:a[o-1]};break;case 54:this.$={type1:a[o-1],type2:"none",lineType:a[o]};break;case 55:this.$={type1:"none",type2:"none",lineType:a[o]};break;case 56:this.$=n.relationType.AGGREGATION;break;case 57:this.$=n.relationType.EXTENSION;break;case 58:this.$=n.relationType.COMPOSITION;break;case 59:this.$=n.relationType.DEPENDENCY;break;case 60:this.$=n.lineType.LINE;break;case 61:this.$=n.lineType.DOTTED_LINE;break;case 62:case 68:this.$=a[o-2],n.setClickEvent(a[o-1],a[o]);break;case 63:case 69:this.$=a[o-3],n.setClickEvent(a[o-2],a[o-1]),n.setTooltip(a[o-2],a[o]);break;case 64:case 72:this.$=a[o-2],n.setLink(a[o-1],a[o]);break;case 65:case 73:this.$=a[o-3],n.setLink(a[o-2],a[o-1],a[o]);break;case 66:case 74:this.$=a[o-3],n.setLink(a[o-2],a[o-1]),n.setTooltip(a[o-2],a[o]);break;case 67:case 75:this.$=a[o-4],n.setLink(a[o-3],a[o-2],a[o]),n.setTooltip(a[o-3],a[o-1]);break;case 70:this.$=a[o-3],n.setClickEvent(a[o-2],a[o-1],a[o]);break;case 71:this.$=a[o-4],n.setClickEvent(a[o-3],a[o-2],a[o-1]),n.setTooltip(a[o-3],a[o]);break;case 76:n.setCssClass(a[o-1],a[o])}},table:[{3:1,4:2,5:t,6:4,7:5,8:r,9:n,10:s,11:a,12:6,13:11,19:i,23:o},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{3:14,4:2,5:t,6:4,7:5,8:r,9:n,10:s,11:a,12:6,13:11,19:i,23:o},{1:[2,9]},e(l,[2,5]),e(l,[2,6]),e(l,[2,7]),e(l,[2,8]),{14:15,20:[1,16]},{16:[1,17]},{20:[2,12]},{1:[2,4]},{15:18,17:[1,19],22:c},e([17,22],[2,13]),{6:30,7:29,8:r,9:n,10:s,11:a,13:11,19:i,24:21,26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:d,40:u,42:h,43:f,48:p,50:m,51:g,62:y,63:_,65:b,69:v,83:x,84:k,85:j,86:w},{16:[1,49]},{18:50,21:[1,51]},{16:[2,15]},{25:[1,52]},{16:[1,53],25:[2,17]},e(C,[2,25],{32:[1,54]}),e(C,[2,27]),e(C,[2,28]),e(C,[2,29]),e(C,[2,30]),e(C,[2,31]),e(C,[2,32]),e(C,[2,33]),{39:[1,55]},{41:[1,56]},e(C,[2,36]),e(C,[2,44],{52:57,54:60,55:61,32:[1,59],53:[1,58],56:T,57:E,58:S,59:A,60:M,61:D}),{27:68,28:43,29:44,83:x,84:k,85:j,86:w},e(C,[2,46]),e(C,[2,47]),{28:69,83:x,84:k,85:j},{27:70,28:43,29:44,83:x,84:k,85:j,86:w},{27:71,28:43,29:44,83:x,84:k,85:j,86:w},{27:72,28:43,29:44,83:x,84:k,85:j,86:w},{53:[1,73]},e(O,[2,20],{28:43,29:44,27:74,30:[1,75],83:x,84:k,85:j,86:w}),e(O,[2,21],{30:[1,76]}),e(B,[2,90]),e(B,[2,91]),e(B,[2,92]),e([16,25,30,32,44,45,53,56,57,58,59,60,61,66,68],[2,93]),e(I,[2,10]),{15:77,22:c},{22:[2,14]},{1:[2,16]},{6:30,7:29,8:r,9:n,10:s,11:a,13:11,19:i,24:78,25:[2,18],26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:d,40:u,42:h,43:f,48:p,50:m,51:g,62:y,63:_,65:b,69:v,83:x,84:k,85:j,86:w},e(C,[2,26]),e(C,[2,34]),e(C,[2,35]),{27:79,28:43,29:44,53:[1,80],83:x,84:k,85:j,86:w},{52:81,54:60,55:61,56:T,57:E,58:S,59:A,60:M,61:D},e(C,[2,45]),{55:82,60:M,61:D},e(N,[2,55],{54:83,56:T,57:E,58:S,59:A}),e(L,[2,56]),e(L,[2,57]),e(L,[2,58]),e(L,[2,59]),e(R,[2,60]),e(R,[2,61]),e(C,[2,37],{44:[1,84],45:[1,85]}),{49:[1,86]},{53:[1,87]},{53:[1,88]},{66:[1,89],68:[1,90]},{28:91,83:x,84:k,85:j},e(O,[2,22]),e(O,[2,23]),e(O,[2,24]),{16:[1,92]},{25:[2,19]},e(F,[2,48]),{27:93,28:43,29:44,83:x,84:k,85:j,86:w},{27:94,28:43,29:44,53:[1,95],83:x,84:k,85:j,86:w},e(N,[2,54],{54:96,56:T,57:E,58:S,59:A}),e(N,[2,53]),{28:97,83:x,84:k,85:j},{46:98,50:P},{27:100,28:43,29:44,83:x,84:k,85:j,86:w},e(C,[2,62],{53:[1,101]}),e(C,[2,64],{53:[1,103],64:[1,102]}),e(C,[2,68],{53:[1,104],67:[1,105]}),e(C,[2,72],{53:[1,107],64:[1,106]}),e(C,[2,76]),e(I,[2,11]),e(F,[2,50]),e(F,[2,49]),{27:108,28:43,29:44,83:x,84:k,85:j,86:w},e(N,[2,52]),e(C,[2,38],{45:[1,109]}),{47:[1,110]},{46:111,47:[2,42],50:P},e(C,[2,41]),e(C,[2,63]),e(C,[2,65]),e(C,[2,66],{64:[1,112]}),e(C,[2,69]),e(C,[2,70],{53:[1,113]}),e(C,[2,73]),e(C,[2,74],{64:[1,114]}),e(F,[2,51]),{46:115,50:P},e(C,[2,39]),{47:[2,43]},e(C,[2,67]),e(C,[2,71]),e(C,[2,75]),{47:[1,116]},e(C,[2,40])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],6:[2,9],13:[2,12],14:[2,4],20:[2,15],51:[2,14],52:[2,16],78:[2,19],111:[2,43]},parseError:function(e,t){if(!t.recoverable){var r=new Error(e);throw r.hash=t,r}this.trace(e)},parse:function(e){var t=this,r=[0],n=[],s=[null],a=[],i=this.table,o="",l=0,c=0,d=0,u=2,h=1,f=a.slice.call(arguments,1),p=Object.create(this.lexer),m={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(m.yy[g]=this.yy[g]);p.setInput(e,m.yy),m.yy.lexer=p,m.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;a.push(y);var _=p.options&&p.options.ranges;function b(){var e;return"number"!=typeof(e=n.pop()||p.lex()||h)&&(e instanceof Array&&(e=(n=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof m.yy.parseError?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,x,k,j,w,C,T,E,S,A={};;){if(k=r[r.length-1],this.defaultActions[k]?j=this.defaultActions[k]:(null==v&&(v=b()),j=i[k]&&i[k][v]),void 0===j||!j.length||!j[0]){var M="";for(C in S=[],i[k])this.terminals_[C]&&C>u&&S.push("'"+this.terminals_[C]+"'");M=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(M,{text:p.match,token:this.terminals_[v]||v,line:p.yylineno,loc:y,expected:S})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+v);switch(j[0]){case 1:r.push(v),s.push(p.yytext),a.push(p.yylloc),r.push(j[1]),v=null,x?(v=x,x=null):(c=p.yyleng,o=p.yytext,l=p.yylineno,y=p.yylloc,d>0&&d--);break;case 2:if(T=this.productions_[j[1]][1],A.$=s[s.length-T],A._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},_&&(A._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(A,[o,c,l,m.yy,j[1],s,a].concat(f))))return w;T&&(r=r.slice(0,-1*T*2),s=s.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[j[1]][0]),s.push(A.$),a.push(A._$),E=i[r[r.length-2]][r[r.length-1]],r.push(E);break;case 3:return!0}}return!0}},q={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput: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},input: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},unput:function(e){var t=e.length,r=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 n=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),r.length-1&&(this.yylineno-=r.length-1);var s=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var r,n,s;if(this.options.backtrack_lexer&&(s={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&&(s.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.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],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in s)this[a]=s[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),a=0;at[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,s[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,s[n]))&&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})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,r,n){switch(r){case 0:return this.begin("open_directive"),19;case 1:return 8;case 2:return 9;case 3:return 10;case 4:return 11;case 5:return this.begin("type_directive"),20;case 6:return this.popState(),this.begin("arg_directive"),17;case 7:return this.popState(),this.popState(),22;case 8:return 21;case 9:case 10:case 19:case 26:break;case 11:return this.begin("acc_title"),38;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),40;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:case 36:case 39:case 42:case 45:case 48:case 51:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 16;case 20:case 21:return 23;case 22:return this.begin("struct"),45;case 23:return"EOF_IN_STRUCT";case 24:return"OPEN_IN_STRUCT";case 25:return this.popState(),47;case 27:return"MEMBER";case 28:return 43;case 29:return 69;case 30:return 62;case 31:return 63;case 32:return 65;case 33:return 48;case 34:return 49;case 35:this.begin("generic");break;case 37:return"GENERICTYPE";case 38:this.begin("string");break;case 40:return"STR";case 41:this.begin("bqstring");break;case 43:return"BQUOTE_STR";case 44:this.begin("href");break;case 46:return 68;case 47:this.begin("callback_name");break;case 49:this.popState(),this.begin("callback_args");break;case 50:return 66;case 52:return 67;case 53:case 54:case 55:case 56:return 64;case 57:case 58:return 57;case 59:case 60:return 59;case 61:return 58;case 62:return 56;case 63:return 60;case 64:return 61;case 65:return 32;case 66:return 44;case 67:return 81;case 68:return"DOT";case 69:return"PLUS";case 70:return 78;case 71:case 72:return"EQUALS";case 73:return 85;case 74:return"PUNCTUATION";case 75:return 84;case 76:return 83;case 77:return 80;case 78:return 25}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[51,52],inclusive:!1},callback_name:{rules:[48,49,50],inclusive:!1},href:{rules:[45,46],inclusive:!1},struct:{rules:[23,24,25,26,27],inclusive:!1},generic:{rules:[36,37],inclusive:!1},bqstring:{rules:[42,43],inclusive:!1},string:{rules:[39,40],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,28,29,30,31,32,33,34,35,38,41,44,47,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78],inclusive:!0}}};function Y(){this.yy={}}return z.lexer=q,Y.prototype=z,z.Parser=Y,new Y}();t.parser=n,t.Parser=n.Parser,t.parse=function(){return n.parse.apply(n,arguments)},t.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var n=r("?35ed").readFileSync(r("./node_modules/path-browserify/index.js").normalize(e[1]),"utf8");return t.parser.parse(n)},r.c[r.s]===e&&t.main(process.argv.slice(1))},"./src/diagrams/er/parser/erDiagram.jison":(e,t,r)=>{e=r.nmd(e);var n=function(){var e=function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},t=[1,2],r=[1,5],n=[6,9,11,23,25,27,29,30,49],s=[1,17],a=[1,18],i=[1,19],o=[1,20],l=[1,21],c=[1,24],d=[1,29],u=[1,30],h=[1,31],f=[1,32],p=[6,9,11,15,20,23,25,27,29,30,42,43,44,45,49],m=[1,45],g=[30,46,47],y=[4,6,9,11,23,25,27,29,30,49],_=[42,43,44,45],b=[22,37],v=[1,64],x={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,".":31,attribute:32,attributeType:33,attributeName:34,attributeKeyType:35,attributeComment:36,ATTRIBUTE_WORD:37,ATTRIBUTE_KEY:38,COMMENT:39,cardinality:40,relType:41,ZERO_OR_ONE:42,ZERO_OR_MORE:43,ONE_OR_MORE:44,ONLY_ONE:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,open_directive:49,type_directive:50,arg_directive:51,close_directive:52,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:".",37:"ATTRIBUTE_WORD",38:"ATTRIBUTE_KEY",39:"COMMENT",42:"ZERO_OR_ONE",43:"ZERO_OR_MORE",44:"ONE_OR_MORE",45:"ONLY_ONE",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD",49:"open_directive",50:"type_directive",51:"arg_directive",52:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[17,3],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[36,1],[18,3],[40,1],[40,1],[40,1],[40,1],[41,1],[41,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(e,t,r,n,s,a,i){var o=a.length-1;switch(s){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:a[o-1].push(a[o]),this.$=a[o-1];break;case 5:case 6:case 20:case 28:case 29:case 30:case 40:this.$=a[o];break;case 12:n.addEntity(a[o-4]),n.addEntity(a[o-2]),n.addRelationship(a[o-4],a[o],a[o-2],a[o-3]);break;case 13:n.addEntity(a[o-3]),n.addAttributes(a[o-3],a[o-1]);break;case 14:n.addEntity(a[o-2]);break;case 15:n.addEntity(a[o]);break;case 16:case 17:this.$=a[o].trim(),n.setAccTitle(this.$);break;case 18:case 19:this.$=a[o].trim(),n.setAccDescription(this.$);break;case 21:this.$=a[o-2]+a[o-1]+a[o];break;case 22:this.$=[a[o]];break;case 23:a[o].push(a[o-1]),this.$=a[o];break;case 24:this.$={attributeType:a[o-1],attributeName:a[o]};break;case 25:this.$={attributeType:a[o-2],attributeName:a[o-1],attributeKeyType:a[o]};break;case 26:this.$={attributeType:a[o-2],attributeName:a[o-1],attributeComment:a[o]};break;case 27:this.$={attributeType:a[o-3],attributeName:a[o-2],attributeKeyType:a[o-1],attributeComment:a[o]};break;case 31:case 39:this.$=a[o].replace(/"/g,"");break;case 32:this.$={cardA:a[o],relType:a[o-1],cardB:a[o-2]};break;case 33:this.$=n.Cardinality.ZERO_OR_ONE;break;case 34:this.$=n.Cardinality.ZERO_OR_MORE;break;case 35:this.$=n.Cardinality.ONE_OR_MORE;break;case 36:this.$=n.Cardinality.ONLY_ONE;break;case 37:this.$=n.Identification.NON_IDENTIFYING;break;case 38:this.$=n.Identification.IDENTIFYING;break;case 41:n.parseDirective("%%{","open_directive");break;case 42:n.parseDirective(a[o],"type_directive");break;case 43:a[o]=a[o].trim().replace(/'/g,'"'),n.parseDirective(a[o],"arg_directive");break;case 44:n.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:t,7:3,12:4,49:r},{1:[3]},e(n,[2,3],{5:6}),{3:7,4:t,7:3,12:4,49:r},{13:8,50:[1,9]},{50:[2,41]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:s,25:a,27:i,29:o,30:l,49:r},{1:[2,2]},{14:22,15:[1,23],52:c},e([15,52],[2,42]),e(n,[2,8],{1:[2,1]}),e(n,[2,4]),{7:15,10:25,12:4,17:16,23:s,25:a,27:i,29:o,30:l,49:r},e(n,[2,6]),e(n,[2,7]),e(n,[2,11]),e(n,[2,15],{18:26,40:28,20:[1,27],42:d,43:u,44:h,45:f}),{24:[1,33]},{26:[1,34]},{28:[1,35]},e(n,[2,19]),e(p,[2,20],{31:[1,36]}),{11:[1,37]},{16:38,51:[1,39]},{11:[2,44]},e(n,[2,5]),{17:40,30:l},{21:41,22:[1,42],32:43,33:44,37:m},{41:46,46:[1,47],47:[1,48]},e(g,[2,33]),e(g,[2,34]),e(g,[2,35]),e(g,[2,36]),e(n,[2,16]),e(n,[2,17]),e(n,[2,18]),{17:49,30:l},e(y,[2,9]),{14:50,52:c},{52:[2,43]},{15:[1,51]},{22:[1,52]},e(n,[2,14]),{21:53,22:[2,22],32:43,33:44,37:m},{34:54,37:[1,55]},{37:[2,28]},{40:56,42:d,43:u,44:h,45:f},e(_,[2,37]),e(_,[2,38]),e(p,[2,21]),{11:[1,57]},{19:58,30:[1,60],48:[1,59]},e(n,[2,13]),{22:[2,23]},e(b,[2,24],{35:61,36:62,38:[1,63],39:v}),e([22,37,38,39],[2,29]),{30:[2,32]},e(y,[2,10]),e(n,[2,12]),e(n,[2,39]),e(n,[2,40]),e(b,[2,25],{36:65,39:v}),e(b,[2,26]),e([22,37,39],[2,30]),e(b,[2,31]),e(b,[2,27])],defaultActions:{5:[2,41],7:[2,2],24:[2,44],39:[2,43],45:[2,28],53:[2,23],56:[2,32]},parseError:function(e,t){if(!t.recoverable){var r=new Error(e);throw r.hash=t,r}this.trace(e)},parse:function(e){var t=this,r=[0],n=[],s=[null],a=[],i=this.table,o="",l=0,c=0,d=0,u=2,h=1,f=a.slice.call(arguments,1),p=Object.create(this.lexer),m={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(m.yy[g]=this.yy[g]);p.setInput(e,m.yy),m.yy.lexer=p,m.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;a.push(y);var _=p.options&&p.options.ranges;function b(){var e;return"number"!=typeof(e=n.pop()||p.lex()||h)&&(e instanceof Array&&(e=(n=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof m.yy.parseError?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,x,k,j,w,C,T,E,S,A={};;){if(k=r[r.length-1],this.defaultActions[k]?j=this.defaultActions[k]:(null==v&&(v=b()),j=i[k]&&i[k][v]),void 0===j||!j.length||!j[0]){var M="";for(C in S=[],i[k])this.terminals_[C]&&C>u&&S.push("'"+this.terminals_[C]+"'");M=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(M,{text:p.match,token:this.terminals_[v]||v,line:p.yylineno,loc:y,expected:S})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+v);switch(j[0]){case 1:r.push(v),s.push(p.yytext),a.push(p.yylloc),r.push(j[1]),v=null,x?(v=x,x=null):(c=p.yyleng,o=p.yytext,l=p.yylineno,y=p.yylloc,d>0&&d--);break;case 2:if(T=this.productions_[j[1]][1],A.$=s[s.length-T],A._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},_&&(A._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(A,[o,c,l,m.yy,j[1],s,a].concat(f))))return w;T&&(r=r.slice(0,-1*T*2),s=s.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[j[1]][0]),s.push(A.$),a.push(A._$),E=i[r[r.length-2]][r[r.length-1]],r.push(E);break;case 3:return!0}}return!0}},k={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput: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},input: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},unput:function(e){var t=e.length,r=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 n=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),r.length-1&&(this.yylineno-=r.length-1);var s=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var r,n,s;if(this.options.backtrack_lexer&&(s={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&&(s.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.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],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in s)this[a]=s[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),a=0;at[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,s[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,s[n]))&&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})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,r,n){switch(r){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.begin("open_directive"),49;case 8:return this.begin("type_directive"),50;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),52;case 11:return 51;case 12:case 13:case 15:case 20:case 24:break;case 14:return 11;case 16:return 9;case 17:return 48;case 18:return 4;case 19:return this.begin("block"),20;case 21:return 38;case 22:return 37;case 23:return 39;case 25:return this.popState(),22;case 26:case 39:return t.yytext[0];case 27:case 31:return 42;case 28:case 32:return 43;case 29:case 33:return 44;case 30:return 45;case 34:case 36:case 37:return 46;case 35:return 47;case 38:return 30;case 40:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK))\b)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\|o\b)/i,/^(?:\}o\b)/i,/^(?:\}\|)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[20,21,22,23,24,25,26],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,19,27,28,29,30,31,32,33,34,35,36,37,38,39,40],inclusive:!0}}};function j(){this.yy={}}return x.lexer=k,j.prototype=x,x.Parser=j,new j}();t.parser=n,t.Parser=n.Parser,t.parse=function(){return n.parse.apply(n,arguments)},t.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var n=r("?3c87").readFileSync(r("./node_modules/path-browserify/index.js").normalize(e[1]),"utf8");return t.parser.parse(n)},r.c[r.s]===e&&t.main(process.argv.slice(1))},"./src/diagrams/flowchart/parser/flow.jison":(e,t,r)=>{e=r.nmd(e);var n=function(){var e=function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},t=[1,9],r=[1,7],n=[1,6],s=[1,8],a=[1,20,21,22,23,38,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],i=[2,10],o=[1,20],l=[1,21],c=[1,22],d=[1,23],u=[1,30],h=[1,32],f=[1,33],p=[1,34],m=[1,62],g=[1,48],y=[1,52],_=[1,36],b=[1,37],v=[1,38],x=[1,39],k=[1,40],j=[1,56],w=[1,63],C=[1,51],T=[1,53],E=[1,55],S=[1,59],A=[1,60],M=[1,41],D=[1,42],O=[1,43],B=[1,44],I=[1,61],N=[1,50],L=[1,54],R=[1,57],F=[1,58],P=[1,49],z=[1,66],q=[1,71],Y=[1,20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],U=[1,75],W=[1,74],G=[1,76],$=[20,21,23,81,82],H=[1,99],V=[1,104],X=[1,107],K=[1,108],Z=[1,101],Q=[1,106],J=[1,109],ee=[1,102],te=[1,114],re=[1,113],ne=[1,103],se=[1,105],ae=[1,110],ie=[1,111],oe=[1,112],le=[1,115],ce=[20,21,22,23,81,82],de=[20,21,22,23,53,81,82],ue=[20,21,22,23,40,52,53,55,57,59,61,63,65,66,67,69,71,73,74,76,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],he=[20,21,23],fe=[20,21,23,52,66,67,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],pe=[1,12,20,21,22,23,24,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],me=[52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],ge=[1,149],ye=[1,157],_e=[1,158],be=[1,159],ve=[1,160],xe=[1,144],ke=[1,145],je=[1,141],we=[1,152],Ce=[1,153],Te=[1,154],Ee=[1,155],Se=[1,156],Ae=[1,161],Me=[1,162],De=[1,147],Oe=[1,150],Be=[1,146],Ie=[1,143],Ne=[20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],Le=[1,165],Re=[20,21,22,23,26,52,66,67,91,105,106,109,111,112,122,123,124,125,126,127],Fe=[20,21,22,23,24,26,38,40,41,42,52,56,58,60,62,64,66,67,68,70,72,73,75,77,81,82,86,87,88,89,90,91,92,95,105,106,109,111,112,113,114,122,123,124,125,126,127],Pe=[12,21,22,24],ze=[22,106],qe=[1,250],Ye=[1,245],Ue=[1,246],We=[1,254],Ge=[1,251],$e=[1,248],He=[1,247],Ve=[1,249],Xe=[1,252],Ke=[1,253],Ze=[1,255],Qe=[1,273],Je=[20,21,23,106],et=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],tt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,vertex:51,AMP:52,STYLE_SEPARATOR:53,idString:54,DOUBLECIRCLESTART:55,DOUBLECIRCLEEND:56,PS:57,PE:58,"(-":59,"-)":60,STADIUMSTART:61,STADIUMEND:62,SUBROUTINESTART:63,SUBROUTINEEND:64,VERTEX_WITH_PROPS_START:65,ALPHA:66,COLON:67,PIPE:68,CYLINDERSTART:69,CYLINDEREND:70,DIAMOND_START:71,DIAMOND_STOP:72,TAGEND:73,TRAPSTART:74,TRAPEND:75,INVTRAPSTART:76,INVTRAPEND:77,linkStatement:78,arrowText:79,TESTSTR:80,START_LINK:81,LINK:82,textToken:83,STR:84,keywords:85,STYLE:86,LINKSTYLE:87,CLASSDEF:88,CLASS:89,CLICK:90,DOWN:91,UP:92,textNoTags:93,textNoTagsToken:94,DEFAULT:95,stylesOpt:96,alphaNum:97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,HEX:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,MINUS:109,UNIT:110,BRKT:111,DOT:112,PCT:113,TAGSTART:114,alphaNumToken:115,idStringToken:116,alphaNumStatement:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,PUNCTUATION:122,UNICODE_TEXT:123,PLUS:124,EQUALS:125,MULT:126,UNDERSCORE:127,graphCodeTokens:128,ARROW_CROSS:129,ARROW_POINT:130,ARROW_CIRCLE:131,ARROW_OPEN:132,QUOTE:133,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",52:"AMP",53:"STYLE_SEPARATOR",55:"DOUBLECIRCLESTART",56:"DOUBLECIRCLEEND",57:"PS",58:"PE",59:"(-",60:"-)",61:"STADIUMSTART",62:"STADIUMEND",63:"SUBROUTINESTART",64:"SUBROUTINEEND",65:"VERTEX_WITH_PROPS_START",66:"ALPHA",67:"COLON",68:"PIPE",69:"CYLINDERSTART",70:"CYLINDEREND",71:"DIAMOND_START",72:"DIAMOND_STOP",73:"TAGEND",74:"TRAPSTART",75:"TRAPEND",76:"INVTRAPSTART",77:"INVTRAPEND",80:"TESTSTR",81:"START_LINK",82:"LINK",84:"STR",86:"STYLE",87:"LINKSTYLE",88:"CLASSDEF",89:"CLASS",90:"CLICK",91:"DOWN",92:"UP",95:"DEFAULT",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"HEX",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"MINUS",110:"UNIT",111:"BRKT",112:"DOT",113:"PCT",114:"TAGSTART",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr",122:"PUNCTUATION",123:"UNICODE_TEXT",124:"PLUS",125:"EQUALS",126:"MULT",127:"UNDERSCORE",129:"ARROW_CROSS",130:"ARROW_POINT",131:"ARROW_CIRCLE",132:"ARROW_OPEN",133:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[19,2],[19,2],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[50,1],[50,5],[50,3],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,8],[51,4],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,4],[51,4],[51,1],[49,2],[49,3],[49,3],[49,1],[49,3],[78,1],[79,3],[39,1],[39,2],[39,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[93,1],[93,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[103,1],[103,3],[96,1],[96,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[94,1],[94,1],[94,1],[94,1],[54,1],[54,2],[97,1],[97,2],[117,1],[117,1],[117,1],[117,1],[43,1],[43,1],[43,1],[43,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1]],performAction:function(e,t,r,n,s,a,i){var o=a.length-1;switch(s){case 5:n.parseDirective("%%{","open_directive");break;case 6:n.parseDirective(a[o],"type_directive");break;case 7:a[o]=a[o].trim().replace(/'/g,'"'),n.parseDirective(a[o],"arg_directive");break;case 8:n.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:a[o]!==[]&&a[o-1].push(a[o]),this.$=a[o-1];break;case 12:case 82:case 84:case 96:case 152:case 154:case 155:case 78:case 150:this.$=a[o];break;case 19:n.setDirection("TB"),this.$="TB";break;case 20:n.setDirection(a[o-1]),this.$=a[o-1];break;case 35:this.$=a[o-1].nodes;break;case 41:this.$=n.addSubGraph(a[o-6],a[o-1],a[o-4]);break;case 42:this.$=n.addSubGraph(a[o-3],a[o-1],a[o-3]);break;case 43:this.$=n.addSubGraph(void 0,a[o-1],void 0);break;case 45:this.$=a[o].trim(),n.setAccTitle(this.$);break;case 46:case 47:this.$=a[o].trim(),n.setAccDescription(this.$);break;case 51:n.addLink(a[o-2].stmt,a[o],a[o-1]),this.$={stmt:a[o],nodes:a[o].concat(a[o-2].nodes)};break;case 52:n.addLink(a[o-3].stmt,a[o-1],a[o-2]),this.$={stmt:a[o-1],nodes:a[o-1].concat(a[o-3].nodes)};break;case 53:this.$={stmt:a[o-1],nodes:a[o-1]};break;case 54:this.$={stmt:a[o],nodes:a[o]};break;case 55:case 123:case 125:this.$=[a[o]];break;case 56:this.$=a[o-4].concat(a[o]);break;case 57:this.$=[a[o-2]],n.setClass(a[o-2],a[o]);break;case 58:this.$=a[o-3],n.addVertex(a[o-3],a[o-1],"square");break;case 59:this.$=a[o-3],n.addVertex(a[o-3],a[o-1],"doublecircle");break;case 60:this.$=a[o-5],n.addVertex(a[o-5],a[o-2],"circle");break;case 61:this.$=a[o-3],n.addVertex(a[o-3],a[o-1],"ellipse");break;case 62:this.$=a[o-3],n.addVertex(a[o-3],a[o-1],"stadium");break;case 63:this.$=a[o-3],n.addVertex(a[o-3],a[o-1],"subroutine");break;case 64:this.$=a[o-7],n.addVertex(a[o-7],a[o-1],"rect",void 0,void 0,void 0,Object.fromEntries([[a[o-5],a[o-3]]]));break;case 65:this.$=a[o-3],n.addVertex(a[o-3],a[o-1],"cylinder");break;case 66:this.$=a[o-3],n.addVertex(a[o-3],a[o-1],"round");break;case 67:this.$=a[o-3],n.addVertex(a[o-3],a[o-1],"diamond");break;case 68:this.$=a[o-5],n.addVertex(a[o-5],a[o-2],"hexagon");break;case 69:this.$=a[o-3],n.addVertex(a[o-3],a[o-1],"odd");break;case 70:this.$=a[o-3],n.addVertex(a[o-3],a[o-1],"trapezoid");break;case 71:this.$=a[o-3],n.addVertex(a[o-3],a[o-1],"inv_trapezoid");break;case 72:this.$=a[o-3],n.addVertex(a[o-3],a[o-1],"lean_right");break;case 73:this.$=a[o-3],n.addVertex(a[o-3],a[o-1],"lean_left");break;case 74:this.$=a[o],n.addVertex(a[o]);break;case 75:a[o-1].text=a[o],this.$=a[o-1];break;case 76:case 77:a[o-2].text=a[o-1],this.$=a[o-2];break;case 79:var l=n.destructLink(a[o],a[o-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:a[o-1]};break;case 80:l=n.destructLink(a[o]),this.$={type:l.type,stroke:l.stroke,length:l.length};break;case 81:this.$=a[o-1];break;case 83:case 97:case 153:case 151:this.$=a[o-1]+""+a[o];break;case 98:case 99:this.$=a[o-4],n.addClass(a[o-2],a[o]);break;case 100:this.$=a[o-4],n.setClass(a[o-2],a[o]);break;case 101:case 109:this.$=a[o-1],n.setClickEvent(a[o-1],a[o]);break;case 102:case 110:this.$=a[o-3],n.setClickEvent(a[o-3],a[o-2]),n.setTooltip(a[o-3],a[o]);break;case 103:this.$=a[o-2],n.setClickEvent(a[o-2],a[o-1],a[o]);break;case 104:this.$=a[o-4],n.setClickEvent(a[o-4],a[o-3],a[o-2]),n.setTooltip(a[o-4],a[o]);break;case 105:case 111:this.$=a[o-1],n.setLink(a[o-1],a[o]);break;case 106:case 112:this.$=a[o-3],n.setLink(a[o-3],a[o-2]),n.setTooltip(a[o-3],a[o]);break;case 107:case 113:this.$=a[o-3],n.setLink(a[o-3],a[o-2],a[o]);break;case 108:case 114:this.$=a[o-5],n.setLink(a[o-5],a[o-4],a[o]),n.setTooltip(a[o-5],a[o-2]);break;case 115:this.$=a[o-4],n.addVertex(a[o-2],void 0,void 0,a[o]);break;case 116:case 118:this.$=a[o-4],n.updateLink(a[o-2],a[o]);break;case 117:this.$=a[o-4],n.updateLink([a[o-2]],a[o]);break;case 119:this.$=a[o-8],n.updateLinkInterpolate([a[o-6]],a[o-2]),n.updateLink([a[o-6]],a[o]);break;case 120:this.$=a[o-8],n.updateLinkInterpolate(a[o-6],a[o-2]),n.updateLink(a[o-6],a[o]);break;case 121:this.$=a[o-6],n.updateLinkInterpolate([a[o-4]],a[o]);break;case 122:this.$=a[o-6],n.updateLinkInterpolate(a[o-4],a[o]);break;case 124:case 126:a[o-2].push(a[o]),this.$=a[o-2];break;case 128:this.$=a[o-1]+a[o];break;case 156:this.$="v";break;case 157:this.$="-";break;case 158:this.$={stmt:"dir",value:"TB"};break;case 159:this.$={stmt:"dir",value:"BT"};break;case 160:this.$={stmt:"dir",value:"RL"};break;case 161:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:t,16:4,21:r,22:n,24:s},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:t,16:4,21:r,22:n,24:s},e(a,i,{17:11}),{7:12,13:[1,13]},{16:14,21:r,22:n,24:s},{16:15,21:r,22:n,24:s},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:o,21:l,22:c,23:d,32:24,33:25,34:26,35:27,36:28,37:29,38:u,43:31,44:h,46:f,48:p,50:35,51:45,52:m,54:46,66:g,67:y,86:_,87:b,88:v,89:x,90:k,91:j,95:w,105:C,106:T,109:E,111:S,112:A,116:47,118:M,119:D,120:O,121:B,122:I,123:N,124:L,125:R,126:F,127:P},{8:64,10:[1,65],15:z},e([10,15],[2,6]),e(a,[2,17]),e(a,[2,18]),e(a,[2,19]),{20:[1,68],21:[1,69],22:q,27:67,30:70},e(Y,[2,11]),e(Y,[2,12]),e(Y,[2,13]),e(Y,[2,14]),e(Y,[2,15]),e(Y,[2,16]),{9:72,20:U,21:W,23:G,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:U,21:W,23:G},{9:81,20:U,21:W,23:G},{9:82,20:U,21:W,23:G},{9:83,20:U,21:W,23:G},{9:84,20:U,21:W,23:G},{9:86,20:U,21:W,22:[1,85],23:G},e(Y,[2,44]),{45:[1,87]},{47:[1,88]},e(Y,[2,47]),e($,[2,54],{30:89,22:q}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:H,52:V,66:X,67:K,84:[1,97],91:Z,97:96,98:[1,94],100:[1,95],105:Q,106:J,109:ee,111:te,112:re,115:100,117:98,122:ne,123:se,124:ae,125:ie,126:oe,127:le},e(Y,[2,158]),e(Y,[2,159]),e(Y,[2,160]),e(Y,[2,161]),e(ce,[2,55],{53:[1,116]}),e(de,[2,74],{116:129,40:[1,117],52:m,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[1,122],65:[1,123],66:g,67:y,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],91:j,95:w,105:C,106:T,109:E,111:S,112:A,122:I,123:N,124:L,125:R,126:F,127:P}),e(ue,[2,150]),e(ue,[2,175]),e(ue,[2,176]),e(ue,[2,177]),e(ue,[2,178]),e(ue,[2,179]),e(ue,[2,180]),e(ue,[2,181]),e(ue,[2,182]),e(ue,[2,183]),e(ue,[2,184]),e(ue,[2,185]),e(ue,[2,186]),e(ue,[2,187]),e(ue,[2,188]),e(ue,[2,189]),e(ue,[2,190]),{9:130,20:U,21:W,23:G},{11:131,14:[1,132]},e(he,[2,8]),e(a,[2,20]),e(a,[2,26]),e(a,[2,27]),{21:[1,133]},e(fe,[2,34],{30:134,22:q}),e(Y,[2,35]),{50:135,51:45,52:m,54:46,66:g,67:y,91:j,95:w,105:C,106:T,109:E,111:S,112:A,116:47,122:I,123:N,124:L,125:R,126:F,127:P},e(pe,[2,48]),e(pe,[2,49]),e(pe,[2,50]),e(me,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:ge,24:ye,26:_e,38:be,39:139,42:ve,52:V,66:X,67:K,73:xe,81:ke,83:140,84:je,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},e([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),e(Y,[2,36]),e(Y,[2,37]),e(Y,[2,38]),e(Y,[2,39]),e(Y,[2,40]),{22:ge,24:ye,26:_e,38:be,39:163,42:ve,52:V,66:X,67:K,73:xe,81:ke,83:140,84:je,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},e(Ne,i,{17:164}),e(Y,[2,45]),e(Y,[2,46]),e($,[2,53],{52:Le}),{26:H,52:V,66:X,67:K,91:Z,97:166,102:[1,167],105:Q,106:J,109:ee,111:te,112:re,115:100,117:98,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{95:[1,168],103:169,105:[1,170]},{26:H,52:V,66:X,67:K,91:Z,95:[1,171],97:172,105:Q,106:J,109:ee,111:te,112:re,115:100,117:98,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{26:H,52:V,66:X,67:K,91:Z,97:173,105:Q,106:J,109:ee,111:te,112:re,115:100,117:98,122:ne,123:se,124:ae,125:ie,126:oe,127:le},e(he,[2,101],{22:[1,174],99:[1,175]}),e(he,[2,105],{22:[1,176]}),e(he,[2,109],{115:100,117:178,22:[1,177],26:H,52:V,66:X,67:K,91:Z,105:Q,106:J,109:ee,111:te,112:re,122:ne,123:se,124:ae,125:ie,126:oe,127:le}),e(he,[2,111],{22:[1,179]}),e(Re,[2,152]),e(Re,[2,154]),e(Re,[2,155]),e(Re,[2,156]),e(Re,[2,157]),e(Fe,[2,162]),e(Fe,[2,163]),e(Fe,[2,164]),e(Fe,[2,165]),e(Fe,[2,166]),e(Fe,[2,167]),e(Fe,[2,168]),e(Fe,[2,169]),e(Fe,[2,170]),e(Fe,[2,171]),e(Fe,[2,172]),e(Fe,[2,173]),e(Fe,[2,174]),{52:m,54:180,66:g,67:y,91:j,95:w,105:C,106:T,109:E,111:S,112:A,116:47,122:I,123:N,124:L,125:R,126:F,127:P},{22:ge,24:ye,26:_e,38:be,39:181,42:ve,52:V,66:X,67:K,73:xe,81:ke,83:140,84:je,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:ge,24:ye,26:_e,38:be,39:182,42:ve,52:V,66:X,67:K,73:xe,81:ke,83:140,84:je,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:ge,24:ye,26:_e,38:be,39:184,42:ve,52:V,57:[1,183],66:X,67:K,73:xe,81:ke,83:140,84:je,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:ge,24:ye,26:_e,38:be,39:185,42:ve,52:V,66:X,67:K,73:xe,81:ke,83:140,84:je,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:ge,24:ye,26:_e,38:be,39:186,42:ve,52:V,66:X,67:K,73:xe,81:ke,83:140,84:je,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:ge,24:ye,26:_e,38:be,39:187,42:ve,52:V,66:X,67:K,73:xe,81:ke,83:140,84:je,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{66:[1,188]},{22:ge,24:ye,26:_e,38:be,39:189,42:ve,52:V,66:X,67:K,73:xe,81:ke,83:140,84:je,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:ge,24:ye,26:_e,38:be,39:190,42:ve,52:V,66:X,67:K,71:[1,191],73:xe,81:ke,83:140,84:je,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:ge,24:ye,26:_e,38:be,39:192,42:ve,52:V,66:X,67:K,73:xe,81:ke,83:140,84:je,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:ge,24:ye,26:_e,38:be,39:193,42:ve,52:V,66:X,67:K,73:xe,81:ke,83:140,84:je,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:ge,24:ye,26:_e,38:be,39:194,42:ve,52:V,66:X,67:K,73:xe,81:ke,83:140,84:je,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},e(ue,[2,151]),e(Pe,[2,3]),{8:195,15:z},{15:[2,7]},e(a,[2,28]),e(fe,[2,33]),e($,[2,51],{30:196,22:q}),e(me,[2,75],{22:[1,197]}),{22:[1,198]},{22:ge,24:ye,26:_e,38:be,39:199,42:ve,52:V,66:X,67:K,73:xe,81:ke,83:140,84:je,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:ge,24:ye,26:_e,38:be,42:ve,52:V,66:X,67:K,73:xe,81:ke,82:[1,200],83:201,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},e(Fe,[2,82]),e(Fe,[2,84]),e(Fe,[2,140]),e(Fe,[2,141]),e(Fe,[2,142]),e(Fe,[2,143]),e(Fe,[2,144]),e(Fe,[2,145]),e(Fe,[2,146]),e(Fe,[2,147]),e(Fe,[2,148]),e(Fe,[2,149]),e(Fe,[2,85]),e(Fe,[2,86]),e(Fe,[2,87]),e(Fe,[2,88]),e(Fe,[2,89]),e(Fe,[2,90]),e(Fe,[2,91]),e(Fe,[2,92]),e(Fe,[2,93]),e(Fe,[2,94]),e(Fe,[2,95]),{9:203,20:U,21:W,22:ge,23:G,24:ye,26:_e,38:be,40:[1,202],42:ve,52:V,66:X,67:K,73:xe,81:ke,83:201,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{18:18,19:19,20:o,21:l,22:c,23:d,32:24,33:25,34:26,35:27,36:28,37:29,38:u,42:[1,204],43:31,44:h,46:f,48:p,50:35,51:45,52:m,54:46,66:g,67:y,86:_,87:b,88:v,89:x,90:k,91:j,95:w,105:C,106:T,109:E,111:S,112:A,116:47,118:M,119:D,120:O,121:B,122:I,123:N,124:L,125:R,126:F,127:P},{22:q,30:205},{22:[1,206],26:H,52:V,66:X,67:K,91:Z,105:Q,106:J,109:ee,111:te,112:re,115:100,117:178,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},e(ze,[2,123]),{22:[1,211]},{22:[1,212],26:H,52:V,66:X,67:K,91:Z,105:Q,106:J,109:ee,111:te,112:re,115:100,117:178,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:[1,213],26:H,52:V,66:X,67:K,91:Z,105:Q,106:J,109:ee,111:te,112:re,115:100,117:178,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{84:[1,214]},e(he,[2,103],{22:[1,215]}),{84:[1,216],101:[1,217]},{84:[1,218]},e(Re,[2,153]),{84:[1,219],101:[1,220]},e(ce,[2,57],{116:129,52:m,66:g,67:y,91:j,95:w,105:C,106:T,109:E,111:S,112:A,122:I,123:N,124:L,125:R,126:F,127:P}),{22:ge,24:ye,26:_e,38:be,41:[1,221],42:ve,52:V,66:X,67:K,73:xe,81:ke,83:201,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:ge,24:ye,26:_e,38:be,42:ve,52:V,56:[1,222],66:X,67:K,73:xe,81:ke,83:201,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:ge,24:ye,26:_e,38:be,39:223,42:ve,52:V,66:X,67:K,73:xe,81:ke,83:140,84:je,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:ge,24:ye,26:_e,38:be,42:ve,52:V,58:[1,224],66:X,67:K,73:xe,81:ke,83:201,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:ge,24:ye,26:_e,38:be,42:ve,52:V,60:[1,225],66:X,67:K,73:xe,81:ke,83:201,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:ge,24:ye,26:_e,38:be,42:ve,52:V,62:[1,226],66:X,67:K,73:xe,81:ke,83:201,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:ge,24:ye,26:_e,38:be,42:ve,52:V,64:[1,227],66:X,67:K,73:xe,81:ke,83:201,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{67:[1,228]},{22:ge,24:ye,26:_e,38:be,42:ve,52:V,66:X,67:K,70:[1,229],73:xe,81:ke,83:201,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:ge,24:ye,26:_e,38:be,42:ve,52:V,66:X,67:K,72:[1,230],73:xe,81:ke,83:201,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:ge,24:ye,26:_e,38:be,39:231,42:ve,52:V,66:X,67:K,73:xe,81:ke,83:140,84:je,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:ge,24:ye,26:_e,38:be,41:[1,232],42:ve,52:V,66:X,67:K,73:xe,81:ke,83:201,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:ge,24:ye,26:_e,38:be,42:ve,52:V,66:X,67:K,73:xe,75:[1,233],77:[1,234],81:ke,83:201,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{22:ge,24:ye,26:_e,38:be,42:ve,52:V,66:X,67:K,73:xe,75:[1,236],77:[1,235],81:ke,83:201,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{9:237,20:U,21:W,23:G},e($,[2,52],{52:Le}),e(me,[2,77]),e(me,[2,76]),{22:ge,24:ye,26:_e,38:be,42:ve,52:V,66:X,67:K,68:[1,238],73:xe,81:ke,83:201,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},e(me,[2,79]),e(Fe,[2,83]),{22:ge,24:ye,26:_e,38:be,39:239,42:ve,52:V,66:X,67:K,73:xe,81:ke,83:140,84:je,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},e(Ne,i,{17:240}),e(Y,[2,43]),{51:241,52:m,54:46,66:g,67:y,91:j,95:w,105:C,106:T,109:E,111:S,112:A,116:47,122:I,123:N,124:L,125:R,126:F,127:P},{22:qe,66:Ye,67:Ue,86:We,96:242,102:Ge,105:$e,107:243,108:244,109:He,110:Ve,111:Xe,112:Ke,113:Ze},{22:qe,66:Ye,67:Ue,86:We,96:256,102:Ge,105:$e,107:243,108:244,109:He,110:Ve,111:Xe,112:Ke,113:Ze},{22:qe,66:Ye,67:Ue,86:We,96:257,102:Ge,104:[1,258],105:$e,107:243,108:244,109:He,110:Ve,111:Xe,112:Ke,113:Ze},{22:qe,66:Ye,67:Ue,86:We,96:259,102:Ge,104:[1,260],105:$e,107:243,108:244,109:He,110:Ve,111:Xe,112:Ke,113:Ze},{105:[1,261]},{22:qe,66:Ye,67:Ue,86:We,96:262,102:Ge,105:$e,107:243,108:244,109:He,110:Ve,111:Xe,112:Ke,113:Ze},{22:qe,66:Ye,67:Ue,86:We,96:263,102:Ge,105:$e,107:243,108:244,109:He,110:Ve,111:Xe,112:Ke,113:Ze},{26:H,52:V,66:X,67:K,91:Z,97:264,105:Q,106:J,109:ee,111:te,112:re,115:100,117:98,122:ne,123:se,124:ae,125:ie,126:oe,127:le},e(he,[2,102]),{84:[1,265]},e(he,[2,106],{22:[1,266]}),e(he,[2,107]),e(he,[2,110]),e(he,[2,112],{22:[1,267]}),e(he,[2,113]),e(de,[2,58]),e(de,[2,59]),{22:ge,24:ye,26:_e,38:be,42:ve,52:V,58:[1,268],66:X,67:K,73:xe,81:ke,83:201,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},e(de,[2,66]),e(de,[2,61]),e(de,[2,62]),e(de,[2,63]),{66:[1,269]},e(de,[2,65]),e(de,[2,67]),{22:ge,24:ye,26:_e,38:be,42:ve,52:V,66:X,67:K,72:[1,270],73:xe,81:ke,83:201,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},e(de,[2,69]),e(de,[2,70]),e(de,[2,72]),e(de,[2,71]),e(de,[2,73]),e(Pe,[2,4]),e([22,52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,81]),{22:ge,24:ye,26:_e,38:be,41:[1,271],42:ve,52:V,66:X,67:K,73:xe,81:ke,83:201,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{18:18,19:19,20:o,21:l,22:c,23:d,32:24,33:25,34:26,35:27,36:28,37:29,38:u,42:[1,272],43:31,44:h,46:f,48:p,50:35,51:45,52:m,54:46,66:g,67:y,86:_,87:b,88:v,89:x,90:k,91:j,95:w,105:C,106:T,109:E,111:S,112:A,116:47,118:M,119:D,120:O,121:B,122:I,123:N,124:L,125:R,126:F,127:P},e(ce,[2,56]),e(he,[2,115],{106:Qe}),e(Je,[2,125],{108:274,22:qe,66:Ye,67:Ue,86:We,102:Ge,105:$e,109:He,110:Ve,111:Xe,112:Ke,113:Ze}),e(et,[2,127]),e(et,[2,129]),e(et,[2,130]),e(et,[2,131]),e(et,[2,132]),e(et,[2,133]),e(et,[2,134]),e(et,[2,135]),e(et,[2,136]),e(et,[2,137]),e(et,[2,138]),e(et,[2,139]),e(he,[2,116],{106:Qe}),e(he,[2,117],{106:Qe}),{22:[1,275]},e(he,[2,118],{106:Qe}),{22:[1,276]},e(ze,[2,124]),e(he,[2,98],{106:Qe}),e(he,[2,99],{106:Qe}),e(he,[2,100],{115:100,117:178,26:H,52:V,66:X,67:K,91:Z,105:Q,106:J,109:ee,111:te,112:re,122:ne,123:se,124:ae,125:ie,126:oe,127:le}),e(he,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:U,21:W,23:G},e(Y,[2,42]),{22:qe,66:Ye,67:Ue,86:We,102:Ge,105:$e,107:283,108:244,109:He,110:Ve,111:Xe,112:Ke,113:Ze},e(et,[2,128]),{26:H,52:V,66:X,67:K,91:Z,97:284,105:Q,106:J,109:ee,111:te,112:re,115:100,117:98,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{26:H,52:V,66:X,67:K,91:Z,97:285,105:Q,106:J,109:ee,111:te,112:re,115:100,117:98,122:ne,123:se,124:ae,125:ie,126:oe,127:le},e(he,[2,108]),e(he,[2,114]),e(de,[2,60]),{22:ge,24:ye,26:_e,38:be,39:286,42:ve,52:V,66:X,67:K,73:xe,81:ke,83:140,84:je,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},e(de,[2,68]),e(Ne,i,{17:287}),e(Je,[2,126],{108:274,22:qe,66:Ye,67:Ue,86:We,102:Ge,105:$e,109:He,110:Ve,111:Xe,112:Ke,113:Ze}),e(he,[2,121],{115:100,117:178,22:[1,288],26:H,52:V,66:X,67:K,91:Z,105:Q,106:J,109:ee,111:te,112:re,122:ne,123:se,124:ae,125:ie,126:oe,127:le}),e(he,[2,122],{115:100,117:178,22:[1,289],26:H,52:V,66:X,67:K,91:Z,105:Q,106:J,109:ee,111:te,112:re,122:ne,123:se,124:ae,125:ie,126:oe,127:le}),{22:ge,24:ye,26:_e,38:be,41:[1,290],42:ve,52:V,66:X,67:K,73:xe,81:ke,83:201,85:151,86:we,87:Ce,88:Te,89:Ee,90:Se,91:Ae,92:Me,94:142,95:De,105:Q,106:J,109:Oe,111:te,112:re,113:Be,114:Ie,115:148,122:ne,123:se,124:ae,125:ie,126:oe,127:le},{18:18,19:19,20:o,21:l,22:c,23:d,32:24,33:25,34:26,35:27,36:28,37:29,38:u,42:[1,291],43:31,44:h,46:f,48:p,50:35,51:45,52:m,54:46,66:g,67:y,86:_,87:b,88:v,89:x,90:k,91:j,95:w,105:C,106:T,109:E,111:S,112:A,116:47,118:M,119:D,120:O,121:B,122:I,123:N,124:L,125:R,126:F,127:P},{22:qe,66:Ye,67:Ue,86:We,96:292,102:Ge,105:$e,107:243,108:244,109:He,110:Ve,111:Xe,112:Ke,113:Ze},{22:qe,66:Ye,67:Ue,86:We,96:293,102:Ge,105:$e,107:243,108:244,109:He,110:Ve,111:Xe,112:Ke,113:Ze},e(de,[2,64]),e(Y,[2,41]),e(he,[2,119],{106:Qe}),e(he,[2,120],{106:Qe})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(e,t){if(!t.recoverable){var r=new Error(e);throw r.hash=t,r}this.trace(e)},parse:function(e){var t=this,r=[0],n=[],s=[null],a=[],i=this.table,o="",l=0,c=0,d=0,u=2,h=1,f=a.slice.call(arguments,1),p=Object.create(this.lexer),m={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(m.yy[g]=this.yy[g]);p.setInput(e,m.yy),m.yy.lexer=p,m.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;a.push(y);var _=p.options&&p.options.ranges;function b(){var e;return"number"!=typeof(e=n.pop()||p.lex()||h)&&(e instanceof Array&&(e=(n=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof m.yy.parseError?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,x,k,j,w,C,T,E,S,A={};;){if(k=r[r.length-1],this.defaultActions[k]?j=this.defaultActions[k]:(null==v&&(v=b()),j=i[k]&&i[k][v]),void 0===j||!j.length||!j[0]){var M="";for(C in S=[],i[k])this.terminals_[C]&&C>u&&S.push("'"+this.terminals_[C]+"'");M=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(M,{text:p.match,token:this.terminals_[v]||v,line:p.yylineno,loc:y,expected:S})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+v);switch(j[0]){case 1:r.push(v),s.push(p.yytext),a.push(p.yylloc),r.push(j[1]),v=null,x?(v=x,x=null):(c=p.yyleng,o=p.yytext,l=p.yylineno,y=p.yylloc,d>0&&d--);break;case 2:if(T=this.productions_[j[1]][1],A.$=s[s.length-T],A._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},_&&(A._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(A,[o,c,l,m.yy,j[1],s,a].concat(f))))return w;T&&(r=r.slice(0,-1*T*2),s=s.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[j[1]][0]),s.push(A.$),a.push(A._$),E=i[r[r.length-2]][r[r.length-1]],r.push(E);break;case 3:return!0}}return!0}},rt={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput: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},input: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},unput:function(e){var t=e.length,r=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 n=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),r.length-1&&(this.yylineno-=r.length-1);var s=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var r,n,s;if(this.options.backtrack_lexer&&(s={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&&(s.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.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],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in s)this[a]=s[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),a=0;at[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,s[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,s[n]))&&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})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,r,n){switch(r){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:case 6:break;case 7:return this.begin("acc_title"),44;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),46;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:case 15:case 24:case 27:case 30:case 33:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 16:return"STR";case 17:return 86;case 18:return 95;case 19:return 87;case 20:return 104;case 21:return 88;case 22:return 89;case 23:this.begin("href");break;case 25:return 100;case 26:this.begin("callbackname");break;case 28:this.popState(),this.begin("callbackargs");break;case 29:return 98;case 31:return 99;case 32:this.begin("click");break;case 34:return 90;case 35:case 36:return e.lex.firstGraph()&&this.begin("dir"),24;case 37:return 38;case 38:return 42;case 39:case 40:case 41:case 42:return 101;case 43:return this.popState(),25;case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:return this.popState(),26;case 54:return 118;case 55:return 119;case 56:return 120;case 57:return 121;case 58:return 105;case 59:return 111;case 60:return 53;case 61:return 67;case 62:return 52;case 63:return 20;case 64:return 106;case 65:return 126;case 66:case 67:case 68:return 82;case 69:case 70:case 71:return 81;case 72:return 59;case 73:return 60;case 74:return 61;case 75:return 62;case 76:return 63;case 77:return 64;case 78:return 65;case 79:return 69;case 80:return 70;case 81:return 55;case 82:return 56;case 83:return 109;case 84:return 112;case 85:return 127;case 86:return 124;case 87:return 113;case 88:case 89:return 125;case 90:return 114;case 91:return 73;case 92:return 92;case 93:return"SEP";case 94:return 91;case 95:return 66;case 96:return 75;case 97:return 74;case 98:return 77;case 99:return 76;case 100:return 122;case 101:return 123;case 102:return 68;case 103:return 57;case 104:return 58;case 105:return 40;case 106:return 41;case 107:return 71;case 108:return 72;case 109:return 133;case 110:return 21;case 111:return 22;case 112:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[30,31],inclusive:!1},callbackname:{rules:[27,28,29],inclusive:!1},href:{rules:[24,25],inclusive:!1},click:{rules:[33,34],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[43,44,45,46,47,48,49,50,51,52,53],inclusive:!1},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,5,6,7,9,11,14,17,18,19,20,21,22,23,26,32,35,36,37,38,39,40,41,42,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112],inclusive:!0}}};function nt(){this.yy={}}return tt.lexer=rt,nt.prototype=tt,tt.Parser=nt,new nt}();t.parser=n,t.Parser=n.Parser,t.parse=function(){return n.parse.apply(n,arguments)},t.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var n=r("?dbae").readFileSync(r("./node_modules/path-browserify/index.js").normalize(e[1]),"utf8");return t.parser.parse(n)},r.c[r.s]===e&&t.main(process.argv.slice(1))},"./src/diagrams/gantt/parser/gantt.jison":(e,t,r)=>{e=r.nmd(e);var n=function(){var e=function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},t=[1,3],r=[1,5],n=[7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],s=[1,15],a=[1,16],i=[1,17],o=[1,18],l=[1,19],c=[1,20],d=[1,21],u=[1,22],h=[1,23],f=[1,24],p=[1,25],m=[1,26],g=[1,28],y=[1,30],_=[1,33],b=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],v={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,excludes:16,includes:17,todayMarker:18,title:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,clickStatement:26,taskTxt:27,taskData:28,openDirective:29,typeDirective:30,closeDirective:31,":":32,argDirective:33,click:34,callbackname:35,callbackargs:36,href:37,clickStatementDebug:38,open_directive:39,type_directive:40,arg_directive:41,close_directive:42,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"excludes",17:"includes",18:"todayMarker",19:"title",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"taskTxt",28:"taskData",32:":",34:"click",35:"callbackname",36:"callbackargs",37:"href",39:"open_directive",40:"type_directive",41:"arg_directive",42:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[26,2],[26,3],[26,3],[26,4],[26,3],[26,4],[26,2],[38,2],[38,3],[38,3],[38,4],[38,3],[38,4],[38,2],[29,1],[30,1],[33,1],[31,1]],performAction:function(e,t,r,n,s,a,i){var o=a.length-1;switch(s){case 2:return a[o-1];case 3:case 7:case 8:this.$=[];break;case 4:a[o-1].push(a[o]),this.$=a[o-1];break;case 5:case 6:this.$=a[o];break;case 9:n.setDateFormat(a[o].substr(11)),this.$=a[o].substr(11);break;case 10:n.enableInclusiveEndDates(),this.$=a[o].substr(18);break;case 11:n.TopAxis(),this.$=a[o].substr(8);break;case 12:n.setAxisFormat(a[o].substr(11)),this.$=a[o].substr(11);break;case 13:n.setExcludes(a[o].substr(9)),this.$=a[o].substr(9);break;case 14:n.setIncludes(a[o].substr(9)),this.$=a[o].substr(9);break;case 15:n.setTodayMarker(a[o].substr(12)),this.$=a[o].substr(12);break;case 16:n.setDiagramTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 17:this.$=a[o].trim(),n.setAccTitle(this.$);break;case 18:case 19:this.$=a[o].trim(),n.setAccDescription(this.$);break;case 20:n.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 22:n.addTask(a[o-1],a[o]),this.$="task";break;case 26:this.$=a[o-1],n.setClickEvent(a[o-1],a[o],null);break;case 27:this.$=a[o-2],n.setClickEvent(a[o-2],a[o-1],a[o]);break;case 28:this.$=a[o-2],n.setClickEvent(a[o-2],a[o-1],null),n.setLink(a[o-2],a[o]);break;case 29:this.$=a[o-3],n.setClickEvent(a[o-3],a[o-2],a[o-1]),n.setLink(a[o-3],a[o]);break;case 30:this.$=a[o-2],n.setClickEvent(a[o-2],a[o],null),n.setLink(a[o-2],a[o-1]);break;case 31:this.$=a[o-3],n.setClickEvent(a[o-3],a[o-1],a[o]),n.setLink(a[o-3],a[o-2]);break;case 32:this.$=a[o-1],n.setLink(a[o-1],a[o]);break;case 33:case 39:this.$=a[o-1]+" "+a[o];break;case 34:case 35:case 37:this.$=a[o-2]+" "+a[o-1]+" "+a[o];break;case 36:case 38:this.$=a[o-3]+" "+a[o-2]+" "+a[o-1]+" "+a[o];break;case 40:n.parseDirective("%%{","open_directive");break;case 41:n.parseDirective(a[o],"type_directive");break;case 42:a[o]=a[o].trim().replace(/'/g,'"'),n.parseDirective(a[o],"arg_directive");break;case 43:n.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:t,29:4,39:r},{1:[3]},{3:6,4:2,5:t,29:4,39:r},e(n,[2,3],{6:7}),{30:8,40:[1,9]},{40:[2,40]},{1:[2,1]},{4:29,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:s,13:a,14:i,15:o,16:l,17:c,18:d,19:u,20:h,22:f,24:p,25:m,26:27,27:g,29:4,34:y,39:r},{31:31,32:[1,32],42:_},e([32,42],[2,41]),e(n,[2,8],{1:[2,2]}),e(n,[2,4]),{4:29,10:34,12:s,13:a,14:i,15:o,16:l,17:c,18:d,19:u,20:h,22:f,24:p,25:m,26:27,27:g,29:4,34:y,39:r},e(n,[2,6]),e(n,[2,7]),e(n,[2,9]),e(n,[2,10]),e(n,[2,11]),e(n,[2,12]),e(n,[2,13]),e(n,[2,14]),e(n,[2,15]),e(n,[2,16]),{21:[1,35]},{23:[1,36]},e(n,[2,19]),e(n,[2,20]),e(n,[2,21]),{28:[1,37]},e(n,[2,23]),{35:[1,38],37:[1,39]},{11:[1,40]},{33:41,41:[1,42]},{11:[2,43]},e(n,[2,5]),e(n,[2,17]),e(n,[2,18]),e(n,[2,22]),e(n,[2,26],{36:[1,43],37:[1,44]}),e(n,[2,32],{35:[1,45]}),e(b,[2,24]),{31:46,42:_},{42:[2,42]},e(n,[2,27],{37:[1,47]}),e(n,[2,28]),e(n,[2,30],{36:[1,48]}),{11:[1,49]},e(n,[2,29]),e(n,[2,31]),e(b,[2,25])],defaultActions:{5:[2,40],6:[2,1],33:[2,43],42:[2,42]},parseError:function(e,t){if(!t.recoverable){var r=new Error(e);throw r.hash=t,r}this.trace(e)},parse:function(e){var t=this,r=[0],n=[],s=[null],a=[],i=this.table,o="",l=0,c=0,d=0,u=2,h=1,f=a.slice.call(arguments,1),p=Object.create(this.lexer),m={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(m.yy[g]=this.yy[g]);p.setInput(e,m.yy),m.yy.lexer=p,m.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;a.push(y);var _=p.options&&p.options.ranges;function b(){var e;return"number"!=typeof(e=n.pop()||p.lex()||h)&&(e instanceof Array&&(e=(n=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof m.yy.parseError?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,x,k,j,w,C,T,E,S,A={};;){if(k=r[r.length-1],this.defaultActions[k]?j=this.defaultActions[k]:(null==v&&(v=b()),j=i[k]&&i[k][v]),void 0===j||!j.length||!j[0]){var M="";for(C in S=[],i[k])this.terminals_[C]&&C>u&&S.push("'"+this.terminals_[C]+"'");M=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(M,{text:p.match,token:this.terminals_[v]||v,line:p.yylineno,loc:y,expected:S})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+v);switch(j[0]){case 1:r.push(v),s.push(p.yytext),a.push(p.yylloc),r.push(j[1]),v=null,x?(v=x,x=null):(c=p.yyleng,o=p.yytext,l=p.yylineno,y=p.yylloc,d>0&&d--);break;case 2:if(T=this.productions_[j[1]][1],A.$=s[s.length-T],A._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},_&&(A._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(A,[o,c,l,m.yy,j[1],s,a].concat(f))))return w;T&&(r=r.slice(0,-1*T*2),s=s.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[j[1]][0]),s.push(A.$),a.push(A._$),E=i[r[r.length-2]][r[r.length-1]],r.push(E);break;case 3:return!0}}return!0}},x={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput: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},input: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},unput:function(e){var t=e.length,r=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 n=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),r.length-1&&(this.yylineno-=r.length-1);var s=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var r,n,s;if(this.options.backtrack_lexer&&(s={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&&(s.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.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],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in s)this[a]=s[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),a=0;at[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,s[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,s[n]))&&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})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,r,n){switch(r){case 0:return this.begin("open_directive"),39;case 1:return this.begin("type_directive"),40;case 2:return this.popState(),this.begin("arg_directive"),32;case 3:return this.popState(),this.popState(),42;case 4:return 41;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 20:case 23:case 26:case 29:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:case 13:case 14:case 16:case 17:case 18:break;case 15:return 11;case 19:this.begin("href");break;case 21:return 37;case 22:this.begin("callbackname");break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 35;case 27:return 36;case 28:this.begin("click");break;case 30:return 34;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 17;case 37:return 16;case 38:return 18;case 39:return"date";case 40:return 19;case 41:return"accDescription";case 42:return 25;case 43:return 27;case 44:return 28;case 45:return 32;case 46:return 7;case 47:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],inclusive:!0}}};function k(){this.yy={}}return v.lexer=x,k.prototype=v,v.Parser=k,new k}();t.parser=n,t.Parser=n.Parser,t.parse=function(){return n.parse.apply(n,arguments)},t.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var n=r("?8ed1").readFileSync(r("./node_modules/path-browserify/index.js").normalize(e[1]),"utf8");return t.parser.parse(n)},r.c[r.s]===e&&t.main(process.argv.slice(1))},"./src/diagrams/git/parser/gitGraph.jison":(e,t,r)=>{e=r.nmd(e);var n=function(){var e=function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},t=[1,4],r=[1,7],n=[1,5],s=[1,9],a=[1,6],i=[2,6],o=[1,16],l=[6,8,14,20,22,24,25,27,29,32,35,37,49,53],c=[8,14,20,22,24,25,27,29,32,35,37],d=[8,13,14,20,22,24,25,27,29,32,35,37],u=[1,26],h=[6,8,14,49,53],f=[8,14,53],p=[1,64],m=[1,65],g=[1,66],y=[8,14,33,36,41,53],_={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ID:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,MERGE:35,COMMIT_TAG:36,COMMIT:37,commit_arg:38,COMMIT_TYPE:39,commitType:40,COMMIT_MSG:41,NORMAL:42,REVERSE:43,HIGHLIGHT:44,openDirective:45,typeDirective:46,closeDirective:47,argDirective:48,open_directive:49,type_directive:50,arg_directive:51,close_directive:52,";":53,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",28:"ID",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"MERGE",36:"COMMIT_TAG",37:"COMMIT",39:"COMMIT_TYPE",41:"COMMIT_MSG",42:"NORMAL",43:"REVERSE",44:"HIGHLIGHT",49:"open_directive",50:"type_directive",51:"arg_directive",52:"close_directive",53:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[18,2],[18,4],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[38,0],[38,1],[40,1],[40,1],[40,1],[5,3],[5,5],[45,1],[46,1],[48,1],[47,1],[4,1],[4,1],[4,1]],performAction:function(e,t,r,n,s,a,i){var o=a.length-1;switch(s){case 3:return a[o];case 4:return a[o-1];case 5:return n.setDirection(a[o-3]),a[o-1];case 7:n.setOptions(a[o-1]),this.$=a[o];break;case 8:a[o-1]+=a[o],this.$=a[o-1];break;case 10:this.$=[];break;case 11:a[o-1].push(a[o]),this.$=a[o-1];break;case 12:this.$=a[o-1];break;case 17:this.$=a[o].trim(),n.setAccTitle(this.$);break;case 18:case 19:this.$=a[o].trim(),n.setAccDescription(this.$);break;case 20:n.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 22:n.checkout(a[o]);break;case 23:n.branch(a[o]);break;case 24:n.branch(a[o-2],a[o]);break;case 25:n.cherryPick(a[o]);break;case 26:n.merge(a[o]);break;case 27:n.merge(a[o-2],a[o]);break;case 28:n.commit(a[o]);break;case 29:n.commit("","",n.commitType.NORMAL,a[o]);break;case 30:n.commit("","",a[o],"");break;case 31:n.commit("","",a[o],a[o-2]);break;case 32:n.commit("","",a[o-2],a[o]);break;case 33:n.commit("",a[o],n.commitType.NORMAL,"");break;case 34:n.commit("",a[o-2],n.commitType.NORMAL,a[o]);break;case 35:n.commit("",a[o],n.commitType.NORMAL,a[o-2]);break;case 36:n.commit("",a[o-2],a[o],"");break;case 37:n.commit("",a[o],a[o-2],"");break;case 38:n.commit("",a[o-4],a[o-2],a[o]);break;case 39:n.commit("",a[o-4],a[o],a[o-2]);break;case 40:n.commit("",a[o-2],a[o-4],a[o]);break;case 41:n.commit("",a[o],a[o-4],a[o-2]);break;case 42:n.commit("",a[o],a[o-2],a[o-4]);break;case 43:n.commit("",a[o-2],a[o],a[o-4]);break;case 44:n.commit(a[o],"",n.commitType.NORMAL,"");break;case 45:n.commit(a[o],"",n.commitType.NORMAL,a[o-2]);break;case 46:n.commit(a[o-2],"",n.commitType.NORMAL,a[o]);break;case 47:n.commit(a[o-2],"",a[o],"");break;case 48:n.commit(a[o],"",a[o-2],"");break;case 49:n.commit(a[o],a[o-2],n.commitType.NORMAL,"");break;case 50:n.commit(a[o-2],a[o],n.commitType.NORMAL,"");break;case 51:n.commit(a[o-4],"",a[o-2],a[o]);break;case 52:n.commit(a[o-4],"",a[o],a[o-2]);break;case 53:n.commit(a[o-2],"",a[o-4],a[o]);break;case 54:n.commit(a[o],"",a[o-4],a[o-2]);break;case 55:n.commit(a[o],"",a[o-2],a[o-4]);break;case 56:n.commit(a[o-2],"",a[o],a[o-4]);break;case 57:n.commit(a[o-4],a[o],a[o-2],"");break;case 58:n.commit(a[o-4],a[o-2],a[o],"");break;case 59:n.commit(a[o-2],a[o],a[o-4],"");break;case 60:n.commit(a[o],a[o-2],a[o-4],"");break;case 61:n.commit(a[o],a[o-4],a[o-2],"");break;case 62:n.commit(a[o-2],a[o-4],a[o],"");break;case 63:n.commit(a[o-4],a[o],n.commitType.NORMAL,a[o-2]);break;case 64:n.commit(a[o-4],a[o-2],n.commitType.NORMAL,a[o]);break;case 65:n.commit(a[o-2],a[o],n.commitType.NORMAL,a[o-4]);break;case 66:n.commit(a[o],a[o-2],n.commitType.NORMAL,a[o-4]);break;case 67:n.commit(a[o],a[o-4],n.commitType.NORMAL,a[o-2]);break;case 68:n.commit(a[o-2],a[o-4],n.commitType.NORMAL,a[o]);break;case 69:n.commit(a[o-6],a[o-4],a[o-2],a[o]);break;case 70:n.commit(a[o-6],a[o-4],a[o],a[o-2]);break;case 71:n.commit(a[o-6],a[o-2],a[o-4],a[o]);break;case 72:n.commit(a[o-6],a[o],a[o-4],a[o-2]);break;case 73:n.commit(a[o-6],a[o-2],a[o],a[o-4]);break;case 74:n.commit(a[o-6],a[o],a[o-2],a[o-4]);break;case 75:n.commit(a[o-4],a[o-6],a[o-2],a[o]);break;case 76:n.commit(a[o-4],a[o-6],a[o],a[o-2]);break;case 77:n.commit(a[o-2],a[o-6],a[o-4],a[o]);break;case 78:n.commit(a[o],a[o-6],a[o-4],a[o-2]);break;case 79:n.commit(a[o-2],a[o-6],a[o],a[o-4]);break;case 80:n.commit(a[o],a[o-6],a[o-2],a[o-4]);break;case 81:n.commit(a[o],a[o-4],a[o-2],a[o-6]);break;case 82:n.commit(a[o-2],a[o-4],a[o],a[o-6]);break;case 83:n.commit(a[o],a[o-2],a[o-4],a[o-6]);break;case 84:n.commit(a[o-2],a[o],a[o-4],a[o-6]);break;case 85:n.commit(a[o-4],a[o-2],a[o],a[o-6]);break;case 86:n.commit(a[o-4],a[o],a[o-2],a[o-6]);break;case 87:n.commit(a[o-2],a[o-4],a[o-6],a[o]);break;case 88:n.commit(a[o],a[o-4],a[o-6],a[o-2]);break;case 89:n.commit(a[o-2],a[o],a[o-6],a[o-4]);break;case 90:n.commit(a[o],a[o-2],a[o-6],a[o-4]);break;case 91:n.commit(a[o-4],a[o-2],a[o-6],a[o]);break;case 92:n.commit(a[o-4],a[o],a[o-6],a[o-2]);break;case 93:this.$="";break;case 94:this.$=a[o];break;case 95:this.$=n.commitType.NORMAL;break;case 96:this.$=n.commitType.REVERSE;break;case 97:this.$=n.commitType.HIGHLIGHT;break;case 100:n.parseDirective("%%{","open_directive");break;case 101:n.parseDirective(a[o],"type_directive");break;case 102:a[o]=a[o].trim().replace(/'/g,'"'),n.parseDirective(a[o],"arg_directive");break;case 103:n.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:t,8:r,14:n,45:8,49:s,53:a},{1:[3]},{3:10,4:2,5:3,6:t,8:r,14:n,45:8,49:s,53:a},{3:11,4:2,5:3,6:t,8:r,14:n,45:8,49:s,53:a},{7:12,8:i,9:[1,13],10:[1,14],11:15,14:o},e(l,[2,104]),e(l,[2,105]),e(l,[2,106]),{46:17,50:[1,18]},{50:[2,100]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:i,11:15,14:o},{9:[1,21]},e(c,[2,10],{12:22,13:[1,23]}),e(d,[2,9]),{9:[1,25],47:24,52:u},e([9,52],[2,101]),{1:[2,3]},{8:[1,27]},{7:28,8:i,11:15,14:o},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:33,19:34,20:[1,35],22:[1,36],24:[1,37],25:[1,38],26:39,27:[1,40],29:[1,44],32:[1,43],35:[1,42],37:[1,41]},e(d,[2,8]),e(h,[2,98]),{48:45,51:[1,46]},e(h,[2,103]),{1:[2,4]},{8:[1,47]},e(c,[2,11]),{4:48,8:r,14:n,53:a},e(c,[2,13]),e(f,[2,14]),e(f,[2,15]),e(f,[2,16]),{21:[1,49]},{23:[1,50]},e(f,[2,19]),e(f,[2,20]),e(f,[2,21]),{28:[1,51]},e(f,[2,93],{38:52,33:[1,55],34:[1,57],36:[1,53],39:[1,54],41:[1,56]}),{28:[1,58]},{33:[1,59]},{28:[1,60]},{47:61,52:u},{52:[2,102]},{1:[2,5]},e(c,[2,12]),e(f,[2,17]),e(f,[2,18]),e(f,[2,22]),e(f,[2,28]),{34:[1,62]},{40:63,42:p,43:m,44:g},{34:[1,67]},{34:[1,68]},e(f,[2,94]),e(f,[2,26],{36:[1,69]}),{34:[1,70]},e(f,[2,23],{30:[1,71]}),e(h,[2,99]),e(f,[2,29],{33:[1,73],39:[1,72],41:[1,74]}),e(f,[2,30],{33:[1,76],36:[1,75],41:[1,77]}),e(y,[2,95]),e(y,[2,96]),e(y,[2,97]),e(f,[2,33],{36:[1,78],39:[1,79],41:[1,80]}),e(f,[2,44],{33:[1,83],36:[1,81],39:[1,82]}),{34:[1,84]},e(f,[2,25]),{31:[1,85]},{40:86,42:p,43:m,44:g},{34:[1,87]},{34:[1,88]},{34:[1,89]},{34:[1,90]},{34:[1,91]},{34:[1,92]},{40:93,42:p,43:m,44:g},{34:[1,94]},{34:[1,95]},{40:96,42:p,43:m,44:g},{34:[1,97]},e(f,[2,27]),e(f,[2,24]),e(f,[2,31],{33:[1,98],41:[1,99]}),e(f,[2,35],{39:[1,100],41:[1,101]}),e(f,[2,45],{33:[1,103],39:[1,102]}),e(f,[2,32],{33:[1,104],41:[1,105]}),e(f,[2,37],{36:[1,106],41:[1,107]}),e(f,[2,48],{33:[1,109],36:[1,108]}),e(f,[2,34],{39:[1,110],41:[1,111]}),e(f,[2,36],{36:[1,112],41:[1,113]}),e(f,[2,49],{36:[1,115],39:[1,114]}),e(f,[2,46],{33:[1,117],39:[1,116]}),e(f,[2,47],{33:[1,119],36:[1,118]}),e(f,[2,50],{36:[1,121],39:[1,120]}),{34:[1,122]},{34:[1,123]},{40:124,42:p,43:m,44:g},{34:[1,125]},{40:126,42:p,43:m,44:g},{34:[1,127]},{34:[1,128]},{34:[1,129]},{34:[1,130]},{34:[1,131]},{34:[1,132]},{34:[1,133]},{40:134,42:p,43:m,44:g},{34:[1,135]},{34:[1,136]},{34:[1,137]},{40:138,42:p,43:m,44:g},{34:[1,139]},{40:140,42:p,43:m,44:g},{34:[1,141]},{34:[1,142]},{34:[1,143]},{40:144,42:p,43:m,44:g},{34:[1,145]},e(f,[2,42],{41:[1,146]}),e(f,[2,55],{33:[1,147]}),e(f,[2,43],{41:[1,148]}),e(f,[2,66],{39:[1,149]}),e(f,[2,56],{33:[1,150]}),e(f,[2,65],{39:[1,151]}),e(f,[2,41],{41:[1,152]}),e(f,[2,54],{33:[1,153]}),e(f,[2,40],{41:[1,154]}),e(f,[2,60],{36:[1,155]}),e(f,[2,53],{33:[1,156]}),e(f,[2,59],{36:[1,157]}),e(f,[2,39],{41:[1,158]}),e(f,[2,67],{39:[1,159]}),e(f,[2,38],{41:[1,160]}),e(f,[2,61],{36:[1,161]}),e(f,[2,62],{36:[1,162]}),e(f,[2,68],{39:[1,163]}),e(f,[2,52],{33:[1,164]}),e(f,[2,63],{39:[1,165]}),e(f,[2,51],{33:[1,166]}),e(f,[2,57],{36:[1,167]}),e(f,[2,58],{36:[1,168]}),e(f,[2,64],{39:[1,169]}),{34:[1,170]},{34:[1,171]},{34:[1,172]},{40:173,42:p,43:m,44:g},{34:[1,174]},{40:175,42:p,43:m,44:g},{34:[1,176]},{34:[1,177]},{34:[1,178]},{34:[1,179]},{34:[1,180]},{34:[1,181]},{34:[1,182]},{40:183,42:p,43:m,44:g},{34:[1,184]},{34:[1,185]},{34:[1,186]},{40:187,42:p,43:m,44:g},{34:[1,188]},{40:189,42:p,43:m,44:g},{34:[1,190]},{34:[1,191]},{34:[1,192]},{40:193,42:p,43:m,44:g},e(f,[2,83]),e(f,[2,84]),e(f,[2,81]),e(f,[2,82]),e(f,[2,86]),e(f,[2,85]),e(f,[2,90]),e(f,[2,89]),e(f,[2,88]),e(f,[2,87]),e(f,[2,92]),e(f,[2,91]),e(f,[2,80]),e(f,[2,79]),e(f,[2,78]),e(f,[2,77]),e(f,[2,75]),e(f,[2,76]),e(f,[2,74]),e(f,[2,73]),e(f,[2,72]),e(f,[2,71]),e(f,[2,69]),e(f,[2,70])],defaultActions:{9:[2,100],10:[2,1],11:[2,2],19:[2,3],27:[2,4],46:[2,102],47:[2,5]},parseError:function(e,t){if(!t.recoverable){var r=new Error(e);throw r.hash=t,r}this.trace(e)},parse:function(e){var t=this,r=[0],n=[],s=[null],a=[],i=this.table,o="",l=0,c=0,d=0,u=2,h=1,f=a.slice.call(arguments,1),p=Object.create(this.lexer),m={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(m.yy[g]=this.yy[g]);p.setInput(e,m.yy),m.yy.lexer=p,m.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;a.push(y);var _=p.options&&p.options.ranges;function b(){var e;return"number"!=typeof(e=n.pop()||p.lex()||h)&&(e instanceof Array&&(e=(n=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof m.yy.parseError?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,x,k,j,w,C,T,E,S,A={};;){if(k=r[r.length-1],this.defaultActions[k]?j=this.defaultActions[k]:(null==v&&(v=b()),j=i[k]&&i[k][v]),void 0===j||!j.length||!j[0]){var M="";for(C in S=[],i[k])this.terminals_[C]&&C>u&&S.push("'"+this.terminals_[C]+"'");M=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(M,{text:p.match,token:this.terminals_[v]||v,line:p.yylineno,loc:y,expected:S})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+v);switch(j[0]){case 1:r.push(v),s.push(p.yytext),a.push(p.yylloc),r.push(j[1]),v=null,x?(v=x,x=null):(c=p.yyleng,o=p.yytext,l=p.yylineno,y=p.yylloc,d>0&&d--);break;case 2:if(T=this.productions_[j[1]][1],A.$=s[s.length-T],A._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},_&&(A._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(A,[o,c,l,m.yy,j[1],s,a].concat(f))))return w;T&&(r=r.slice(0,-1*T*2),s=s.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[j[1]][0]),s.push(A.$),a.push(A._$),E=i[r[r.length-2]][r[r.length-1]],r.push(E);break;case 3:return!0}}return!0}},b={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput: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},input: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},unput:function(e){var t=e.length,r=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 n=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),r.length-1&&(this.yylineno-=r.length-1);var s=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var r,n,s;if(this.options.backtrack_lexer&&(s={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&&(s.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.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],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in s)this[a]=s[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),a=0;at[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,s[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,s[n]))&&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})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,r,n){switch(r){case 0:return this.begin("open_directive"),49;case 1:return this.begin("type_directive"),50;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),52;case 4:return 51;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 35:case 38:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:case 14:case 15:break;case 16:return 6;case 17:return 37;case 18:return 33;case 19:return 39;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 36;case 25:return 29;case 26:return 30;case 27:return 35;case 28:return 32;case 29:return 27;case 30:case 31:return 10;case 32:return 9;case 33:return"CARET";case 34:this.begin("options");break;case 36:return 13;case 37:this.begin("string");break;case 39:return 34;case 40:return 31;case 41:return 28;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch\b)/i,/^(?:order:)/i,/^(?:merge\b)/i,/^(?:cherry-pick\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+)/i,/^(?:[a-zA-Z][-_\./a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[35,36],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,37,40,41,42],inclusive:!0}}};function v(){this.yy={}}return _.lexer=b,v.prototype=_,_.Parser=v,new v}();t.parser=n,t.Parser=n.Parser,t.parse=function(){return n.parse.apply(n,arguments)},t.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var n=r("?2b40").readFileSync(r("./node_modules/path-browserify/index.js").normalize(e[1]),"utf8");return t.parser.parse(n)},r.c[r.s]===e&&t.main(process.argv.slice(1))},"./src/diagrams/info/parser/info.jison":(e,t,r)=>{e=r.nmd(e);var n=function(){var e=function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},t=[6,9,10],r={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(e,t,r,n,s,a,i){switch(a.length,s){case 1:return n;case 4:break;case 6:n.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},e(t,[2,3]),e(t,[2,4]),e(t,[2,5]),e(t,[2,6])],defaultActions:{4:[2,1]},parseError:function(e,t){if(!t.recoverable){var r=new Error(e);throw r.hash=t,r}this.trace(e)},parse:function(e){var t=this,r=[0],n=[],s=[null],a=[],i=this.table,o="",l=0,c=0,d=0,u=2,h=1,f=a.slice.call(arguments,1),p=Object.create(this.lexer),m={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(m.yy[g]=this.yy[g]);p.setInput(e,m.yy),m.yy.lexer=p,m.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;a.push(y);var _=p.options&&p.options.ranges;function b(){var e;return"number"!=typeof(e=n.pop()||p.lex()||h)&&(e instanceof Array&&(e=(n=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof m.yy.parseError?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,x,k,j,w,C,T,E,S,A={};;){if(k=r[r.length-1],this.defaultActions[k]?j=this.defaultActions[k]:(null==v&&(v=b()),j=i[k]&&i[k][v]),void 0===j||!j.length||!j[0]){var M="";for(C in S=[],i[k])this.terminals_[C]&&C>u&&S.push("'"+this.terminals_[C]+"'");M=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(M,{text:p.match,token:this.terminals_[v]||v,line:p.yylineno,loc:y,expected:S})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+v);switch(j[0]){case 1:r.push(v),s.push(p.yytext),a.push(p.yylloc),r.push(j[1]),v=null,x?(v=x,x=null):(c=p.yyleng,o=p.yytext,l=p.yylineno,y=p.yylloc,d>0&&d--);break;case 2:if(T=this.productions_[j[1]][1],A.$=s[s.length-T],A._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},_&&(A._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(A,[o,c,l,m.yy,j[1],s,a].concat(f))))return w;T&&(r=r.slice(0,-1*T*2),s=s.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[j[1]][0]),s.push(A.$),a.push(A._$),E=i[r[r.length-2]][r[r.length-1]],r.push(E);break;case 3:return!0}}return!0}},n={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput: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},input: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},unput:function(e){var t=e.length,r=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 n=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),r.length-1&&(this.yylineno-=r.length-1);var s=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var r,n,s;if(this.options.backtrack_lexer&&(s={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&&(s.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.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],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in s)this[a]=s[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),a=0;at[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,s[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,s[n]))&&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})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,r,n){switch(r){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function s(){this.yy={}}return r.lexer=n,s.prototype=r,r.Parser=s,new s}();t.parser=n,t.Parser=n.Parser,t.parse=function(){return n.parse.apply(n,arguments)},t.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var n=r("?c5f1").readFileSync(r("./node_modules/path-browserify/index.js").normalize(e[1]),"utf8");return t.parser.parse(n)},r.c[r.s]===e&&t.main(process.argv.slice(1))},"./src/diagrams/pie/parser/pie.jison":(e,t,r)=>{e=r.nmd(e);var n=function(){var e=function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},t=[1,4],r=[1,5],n=[1,6],s=[1,7],a=[1,9],i=[1,11,13,15,17,19,20,26,27,28,29],o=[2,5],l=[1,6,11,13,15,17,19,20,26,27,28,29],c=[26,27,28],d=[2,8],u=[1,18],h=[1,19],f=[1,20],p=[1,21],m=[1,22],g=[1,23],y=[1,28],_=[6,26,27,28,29],b={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(e,t,r,n,s,a,i){var o=a.length-1;switch(s){case 4:n.setShowData(!0);break;case 7:this.$=a[o-1];break;case 9:n.addSection(a[o-1],n.cleanupValue(a[o]));break;case 10:this.$=a[o].trim(),n.setDiagramTitle(this.$);break;case 11:this.$=a[o].trim(),n.setAccTitle(this.$);break;case 12:case 13:this.$=a[o].trim(),n.setAccDescription(this.$);break;case 14:n.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 21:n.parseDirective("%%{","open_directive");break;case 22:n.parseDirective(a[o],"type_directive");break;case 23:a[o]=a[o].trim().replace(/'/g,'"'),n.parseDirective(a[o],"arg_directive");break;case 24:n.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:t,21:8,26:r,27:n,28:s,29:a},{1:[3]},{3:10,4:2,5:3,6:t,21:8,26:r,27:n,28:s,29:a},{3:11,4:2,5:3,6:t,21:8,26:r,27:n,28:s,29:a},e(i,o,{7:12,8:[1,13]}),e(l,[2,18]),e(l,[2,19]),e(l,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},e(c,d,{21:8,9:16,10:17,5:24,1:[2,3],11:u,13:h,15:f,17:p,19:m,20:g,29:a}),e(i,o,{7:25}),{23:26,24:[1,27],32:y},e([24,32],[2,22]),e(i,[2,6]),{4:29,26:r,27:n,28:s},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},e(c,[2,13]),e(c,[2,14]),e(c,[2,15]),e(c,d,{21:8,9:16,10:17,5:24,1:[2,4],11:u,13:h,15:f,17:p,19:m,20:g,29:a}),e(_,[2,16]),{25:34,31:[1,35]},e(_,[2,24]),e(i,[2,7]),e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),e(c,[2,12]),{23:36,32:y},{32:[2,23]},e(_,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(e,t){if(!t.recoverable){var r=new Error(e);throw r.hash=t,r}this.trace(e)},parse:function(e){var t=this,r=[0],n=[],s=[null],a=[],i=this.table,o="",l=0,c=0,d=0,u=2,h=1,f=a.slice.call(arguments,1),p=Object.create(this.lexer),m={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(m.yy[g]=this.yy[g]);p.setInput(e,m.yy),m.yy.lexer=p,m.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;a.push(y);var _=p.options&&p.options.ranges;function b(){var e;return"number"!=typeof(e=n.pop()||p.lex()||h)&&(e instanceof Array&&(e=(n=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof m.yy.parseError?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,x,k,j,w,C,T,E,S,A={};;){if(k=r[r.length-1],this.defaultActions[k]?j=this.defaultActions[k]:(null==v&&(v=b()),j=i[k]&&i[k][v]),void 0===j||!j.length||!j[0]){var M="";for(C in S=[],i[k])this.terminals_[C]&&C>u&&S.push("'"+this.terminals_[C]+"'");M=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(M,{text:p.match,token:this.terminals_[v]||v,line:p.yylineno,loc:y,expected:S})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+v);switch(j[0]){case 1:r.push(v),s.push(p.yytext),a.push(p.yylloc),r.push(j[1]),v=null,x?(v=x,x=null):(c=p.yyleng,o=p.yytext,l=p.yylineno,y=p.yylloc,d>0&&d--);break;case 2:if(T=this.productions_[j[1]][1],A.$=s[s.length-T],A._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},_&&(A._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(A,[o,c,l,m.yy,j[1],s,a].concat(f))))return w;T&&(r=r.slice(0,-1*T*2),s=s.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[j[1]][0]),s.push(A.$),a.push(A._$),E=i[r[r.length-2]][r[r.length-1]],r.push(E);break;case 3:return!0}}return!0}},v={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput: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},input: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},unput:function(e){var t=e.length,r=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 n=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),r.length-1&&(this.yylineno-=r.length-1);var s=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var r,n,s;if(this.options.backtrack_lexer&&(s={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&&(s.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.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],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in s)this[a]=s[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),a=0;at[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,s[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,s[n]))&&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})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,r,n){switch(r){case 0:return this.begin("open_directive"),29;case 1:return this.begin("type_directive"),30;case 2:return this.popState(),this.begin("arg_directive"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;case 5:case 6:case 8:case 9:break;case 7:return 26;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("acc_title"),15;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),17;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:case 20:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 21:return"txt";case 22:return 6;case 23:return 8;case 24:return"value";case 25:return 28}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}};function x(){this.yy={}}return b.lexer=v,x.prototype=b,b.Parser=x,new x}();t.parser=n,t.Parser=n.Parser,t.parse=function(){return n.parse.apply(n,arguments)},t.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var n=r("?a3fa").readFileSync(r("./node_modules/path-browserify/index.js").normalize(e[1]),"utf8");return t.parser.parse(n)},r.c[r.s]===e&&t.main(process.argv.slice(1))},"./src/diagrams/requirement/parser/requirementDiagram.jison":(e,t,r)=>{e=r.nmd(e);var n=function(){var e=function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},t=[1,3],r=[1,5],n=[1,6],s=[1,7],a=[1,8],i=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],o=[1,22],l=[2,13],c=[1,26],d=[1,27],u=[1,28],h=[1,29],f=[1,30],p=[1,31],m=[1,24],g=[1,32],y=[1,33],_=[1,36],b=[71,72],v=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],x=[1,56],k=[1,57],j=[1,58],w=[1,59],C=[1,60],T=[1,61],E=[1,62],S=[62,63],A=[1,74],M=[1,70],D=[1,71],O=[1,72],B=[1,73],I=[1,75],N=[1,79],L=[1,80],R=[1,77],F=[1,78],P=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],z={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",37:"VERIFYMTHD",39:"STRUCT_STOP",40:"REQUIREMENT",41:"FUNCTIONAL_REQUIREMENT",42:"INTERFACE_REQUIREMENT",43:"PERFORMANCE_REQUIREMENT",44:"PHYSICAL_REQUIREMENT",45:"DESIGN_CONSTRAINT",46:"LOW_RISK",47:"MED_RISK",48:"HIGH_RISK",49:"VERIFY_ANALYSIS",50:"VERIFY_DEMONSTRATION",51:"VERIFY_INSPECTION",52:"VERIFY_TEST",53:"ELEMENT",56:"TYPE",58:"DOCREF",60:"END_ARROW_L",62:"LINE",63:"END_ARROW_R",64:"CONTAINS",65:"COPIES",66:"DERIVES",67:"SATISFIES",68:"VERIFIES",69:"REFINES",70:"TRACES",71:"unqString",72:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[4,2],[4,2],[4,1],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[23,5],[29,5],[29,5],[29,5],[29,5],[29,2],[29,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[36,1],[36,1],[36,1],[38,1],[38,1],[38,1],[38,1],[24,5],[55,5],[55,5],[55,2],[55,1],[25,5],[25,5],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[27,1],[27,1],[32,1],[32,1],[34,1],[34,1],[54,1],[54,1],[57,1],[57,1],[59,1],[59,1]],performAction:function(e,t,r,n,s,a,i){var o=a.length-1;switch(s){case 6:this.$=a[o].trim(),n.setAccTitle(this.$);break;case 7:case 8:this.$=a[o].trim(),n.setAccDescription(this.$);break;case 9:n.parseDirective("%%{","open_directive");break;case 10:n.parseDirective(a[o],"type_directive");break;case 11:a[o]=a[o].trim().replace(/'/g,'"'),n.parseDirective(a[o],"arg_directive");break;case 12:n.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:n.addRequirement(a[o-3],a[o-4]);break;case 20:n.setNewReqId(a[o-2]);break;case 21:n.setNewReqText(a[o-2]);break;case 22:n.setNewReqRisk(a[o-2]);break;case 23:n.setNewReqVerifyMethod(a[o-2]);break;case 26:this.$=n.RequirementType.REQUIREMENT;break;case 27:this.$=n.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=n.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=n.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=n.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=n.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=n.RiskLevel.LOW_RISK;break;case 33:this.$=n.RiskLevel.MED_RISK;break;case 34:this.$=n.RiskLevel.HIGH_RISK;break;case 35:this.$=n.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=n.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=n.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=n.VerifyType.VERIFY_TEST;break;case 39:n.addElement(a[o-3]);break;case 40:n.setNewElementType(a[o-2]);break;case 41:n.setNewElementDocRef(a[o-2]);break;case 44:n.addRelationship(a[o-2],a[o],a[o-4]);break;case 45:n.addRelationship(a[o-2],a[o-4],a[o]);break;case 46:this.$=n.Relationships.CONTAINS;break;case 47:this.$=n.Relationships.COPIES;break;case 48:this.$=n.Relationships.DERIVES;break;case 49:this.$=n.Relationships.SATISFIES;break;case 50:this.$=n.Relationships.VERIFIES;break;case 51:this.$=n.Relationships.REFINES;break;case 52:this.$=n.Relationships.TRACES}},table:[{3:1,4:2,6:t,9:4,14:r,16:n,18:s,19:a},{1:[3]},{3:10,4:2,5:[1,9],6:t,9:4,14:r,16:n,18:s,19:a},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},e(i,[2,8]),{20:[2,9]},{3:16,4:2,6:t,9:4,14:r,16:n,18:s,19:a},{1:[2,2]},{4:21,5:o,7:17,8:l,9:4,14:r,16:n,18:s,19:a,23:18,24:19,25:20,26:23,32:25,40:c,41:d,42:u,43:h,44:f,45:p,53:m,71:g,72:y},{11:34,12:[1,35],22:_},e([12,22],[2,10]),e(i,[2,6]),e(i,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:o,7:38,8:l,9:4,14:r,16:n,18:s,19:a,23:18,24:19,25:20,26:23,32:25,40:c,41:d,42:u,43:h,44:f,45:p,53:m,71:g,72:y},{4:21,5:o,7:39,8:l,9:4,14:r,16:n,18:s,19:a,23:18,24:19,25:20,26:23,32:25,40:c,41:d,42:u,43:h,44:f,45:p,53:m,71:g,72:y},{4:21,5:o,7:40,8:l,9:4,14:r,16:n,18:s,19:a,23:18,24:19,25:20,26:23,32:25,40:c,41:d,42:u,43:h,44:f,45:p,53:m,71:g,72:y},{4:21,5:o,7:41,8:l,9:4,14:r,16:n,18:s,19:a,23:18,24:19,25:20,26:23,32:25,40:c,41:d,42:u,43:h,44:f,45:p,53:m,71:g,72:y},{4:21,5:o,7:42,8:l,9:4,14:r,16:n,18:s,19:a,23:18,24:19,25:20,26:23,32:25,40:c,41:d,42:u,43:h,44:f,45:p,53:m,71:g,72:y},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},e(b,[2,26]),e(b,[2,27]),e(b,[2,28]),e(b,[2,29]),e(b,[2,30]),e(b,[2,31]),e(v,[2,55]),e(v,[2,56]),e(i,[2,4]),{13:51,21:[1,52]},e(i,[2,12]),{1:[2,3]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{8:[2,17]},{8:[2,18]},{28:[1,53]},{28:[2,53]},{28:[2,54]},{28:[1,54]},{28:[2,59]},{28:[2,60]},{61:55,64:x,65:k,66:j,67:w,68:C,69:T,70:E},{61:63,64:x,65:k,66:j,67:w,68:C,69:T,70:E},{11:64,22:_},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},e(S,[2,46]),e(S,[2,47]),e(S,[2,48]),e(S,[2,49]),e(S,[2,50]),e(S,[2,51]),e(S,[2,52]),{63:[1,68]},e(i,[2,5]),{5:A,29:69,30:M,33:D,35:O,37:B,39:I},{5:N,39:L,55:76,56:R,58:F},{32:81,71:g,72:y},{32:82,71:g,72:y},e(P,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:A,29:87,30:M,33:D,35:O,37:B,39:I},e(P,[2,25]),e(P,[2,39]),{31:[1,88]},{31:[1,89]},{5:N,39:L,55:90,56:R,58:F},e(P,[2,43]),e(P,[2,44]),e(P,[2,45]),{32:91,71:g,72:y},{34:92,71:[1,93],72:[1,94]},{36:95,46:[1,96],47:[1,97],48:[1,98]},{38:99,49:[1,100],50:[1,101],51:[1,102],52:[1,103]},e(P,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},e(P,[2,42]),{5:[1,110]},{5:[1,111]},{5:[2,57]},{5:[2,58]},{5:[1,112]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[1,113]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[2,38]},{5:[1,114]},{5:[2,61]},{5:[2,62]},{5:[1,115]},{5:[2,63]},{5:[2,64]},{5:A,29:116,30:M,33:D,35:O,37:B,39:I},{5:A,29:117,30:M,33:D,35:O,37:B,39:I},{5:A,29:118,30:M,33:D,35:O,37:B,39:I},{5:A,29:119,30:M,33:D,35:O,37:B,39:I},{5:N,39:L,55:120,56:R,58:F},{5:N,39:L,55:121,56:R,58:F},e(P,[2,20]),e(P,[2,21]),e(P,[2,22]),e(P,[2,23]),e(P,[2,40]),e(P,[2,41])],defaultActions:{8:[2,9],10:[2,2],16:[2,1],37:[2,3],38:[2,14],39:[2,15],40:[2,16],41:[2,17],42:[2,18],44:[2,53],45:[2,54],47:[2,59],48:[2,60],52:[2,11],93:[2,57],94:[2,58],96:[2,32],97:[2,33],98:[2,34],100:[2,35],101:[2,36],102:[2,37],103:[2,38],105:[2,61],106:[2,62],108:[2,63],109:[2,64]},parseError:function(e,t){if(!t.recoverable){var r=new Error(e);throw r.hash=t,r}this.trace(e)},parse:function(e){var t=this,r=[0],n=[],s=[null],a=[],i=this.table,o="",l=0,c=0,d=0,u=2,h=1,f=a.slice.call(arguments,1),p=Object.create(this.lexer),m={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(m.yy[g]=this.yy[g]);p.setInput(e,m.yy),m.yy.lexer=p,m.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;a.push(y);var _=p.options&&p.options.ranges;function b(){var e;return"number"!=typeof(e=n.pop()||p.lex()||h)&&(e instanceof Array&&(e=(n=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof m.yy.parseError?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,x,k,j,w,C,T,E,S,A={};;){if(k=r[r.length-1],this.defaultActions[k]?j=this.defaultActions[k]:(null==v&&(v=b()),j=i[k]&&i[k][v]),void 0===j||!j.length||!j[0]){var M="";for(C in S=[],i[k])this.terminals_[C]&&C>u&&S.push("'"+this.terminals_[C]+"'");M=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(M,{text:p.match,token:this.terminals_[v]||v,line:p.yylineno,loc:y,expected:S})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+v);switch(j[0]){case 1:r.push(v),s.push(p.yytext),a.push(p.yylloc),r.push(j[1]),v=null,x?(v=x,x=null):(c=p.yyleng,o=p.yytext,l=p.yylineno,y=p.yylloc,d>0&&d--);break;case 2:if(T=this.productions_[j[1]][1],A.$=s[s.length-T],A._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},_&&(A._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(A,[o,c,l,m.yy,j[1],s,a].concat(f))))return w;T&&(r=r.slice(0,-1*T*2),s=s.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[j[1]][0]),s.push(A.$),a.push(A._$),E=i[r[r.length-2]][r[r.length-1]],r.push(E);break;case 3:return!0}}return!0}},q={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput: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},input: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},unput:function(e){var t=e.length,r=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 n=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),r.length-1&&(this.yylineno-=r.length-1);var s=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var r,n,s;if(this.options.backtrack_lexer&&(s={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&&(s.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.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],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in s)this[a]=s[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),a=0;at[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,s[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,s[n]))&&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})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,r,n){switch(r){case 0:return this.begin("open_directive"),19;case 1:return this.begin("type_directive"),20;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return"title";case 6:return this.begin("acc_title"),14;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),16;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 53:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 5;case 14:case 15:case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin("string");break;case 54:return"qString";case 55:return t.yytext=t.yytext.trim(),71}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[53,54],inclusive:!1},INITIAL:{rules:[0,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,55],inclusive:!0}}};function Y(){this.yy={}}return z.lexer=q,Y.prototype=z,z.Parser=Y,new Y}();t.parser=n,t.Parser=n.Parser,t.parse=function(){return n.parse.apply(n,arguments)},t.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var n=r("?ebf4").readFileSync(r("./node_modules/path-browserify/index.js").normalize(e[1]),"utf8");return t.parser.parse(n)},r.c[r.s]===e&&t.main(process.argv.slice(1))},"./src/diagrams/sequence/parser/sequenceDiagram.jison":(e,t,r)=>{e=r.nmd(e);var n=function(){var e=function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},t=[1,2],r=[1,3],n=[1,5],s=[1,7],a=[2,5],i=[1,15],o=[1,17],l=[1,18],c=[1,19],d=[1,21],u=[1,22],h=[1,23],f=[1,29],p=[1,30],m=[1,31],g=[1,32],y=[1,33],_=[1,34],b=[1,35],v=[1,36],x=[1,37],k=[1,38],j=[1,39],w=[1,40],C=[1,43],T=[1,44],E=[1,45],S=[1,46],A=[1,47],M=[1,48],D=[1,51],O=[1,4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,51,52,53,58,59,60,61,69,79],B=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,53,58,59,60,61,69,79],I=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,52,53,58,59,60,61,69,79],N=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,51,53,58,59,60,61,69,79],L=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,53,58,59,60,61,69,79],R=[67,68,69],F=[1,121],P=[1,4,5,7,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,51,52,53,58,59,60,61,69,79],z={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,openDirective:11,typeDirective:12,closeDirective:13,":":14,argDirective:15,participant:16,actor:17,AS:18,restOfLine:19,participant_actor:20,signal:21,autonumber:22,NUM:23,off:24,activate:25,deactivate:26,note_statement:27,links_statement:28,link_statement:29,properties_statement:30,details_statement:31,title:32,legacy_title:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,loop:39,end:40,rect:41,opt:42,alt:43,else_sections:44,par:45,par_sections:46,critical:47,option_sections:48,break:49,option:50,and:51,else:52,note:53,placement:54,text2:55,over:56,actor_pair:57,links:58,link:59,properties:60,details:61,spaceList:62,",":63,left_of:64,right_of:65,signaltype:66,"+":67,"-":68,ACTOR:69,SOLID_OPEN_ARROW:70,DOTTED_OPEN_ARROW:71,SOLID_ARROW:72,DOTTED_ARROW:73,SOLID_CROSS:74,DOTTED_CROSS:75,SOLID_POINT:76,DOTTED_POINT:77,TXT:78,open_directive:79,type_directive:80,arg_directive:81,close_directive:82,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",14:":",16:"participant",18:"AS",19:"restOfLine",20:"participant_actor",22:"autonumber",23:"NUM",24:"off",25:"activate",26:"deactivate",32:"title",33:"legacy_title",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",39:"loop",40:"end",41:"rect",42:"opt",43:"alt",45:"par",47:"critical",49:"break",50:"option",51:"and",52:"else",53:"note",56:"over",58:"links",59:"link",60:"properties",61:"details",63:",",64:"left_of",65:"right_of",67:"+",68:"-",69:"ACTOR",70:"SOLID_OPEN_ARROW",71:"DOTTED_OPEN_ARROW",72:"SOLID_ARROW",73:"DOTTED_ARROW",74:"SOLID_CROSS",75:"DOTTED_CROSS",76:"SOLID_POINT",77:"DOTTED_POINT",78:"TXT",79:"open_directive",80:"type_directive",81:"arg_directive",82:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,5],[10,3],[10,2],[10,4],[10,3],[10,3],[10,2],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,2],[10,2],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[48,1],[48,4],[46,1],[46,4],[44,1],[44,4],[27,4],[27,4],[28,3],[29,3],[30,3],[31,3],[62,2],[62,1],[57,3],[57,1],[54,1],[54,1],[21,5],[21,5],[21,4],[17,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[55,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(e,t,r,n,s,a,i){var o=a.length-1;switch(s){case 4:return n.apply(a[o]),a[o];case 5:case 9:this.$=[];break;case 6:a[o-1].push(a[o]),this.$=a[o-1];break;case 7:case 8:case 56:this.$=a[o];break;case 12:a[o-3].type="addParticipant",a[o-3].description=n.parseMessage(a[o-1]),this.$=a[o-3];break;case 13:a[o-1].type="addParticipant",this.$=a[o-1];break;case 14:a[o-3].type="addActor",a[o-3].description=n.parseMessage(a[o-1]),this.$=a[o-3];break;case 15:a[o-1].type="addActor",this.$=a[o-1];break;case 17:this.$={type:"sequenceIndex",sequenceIndex:Number(a[o-2]),sequenceIndexStep:Number(a[o-1]),sequenceVisible:!0,signalType:n.LINETYPE.AUTONUMBER};break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(a[o-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:n.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:n.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:n.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"activeStart",signalType:n.LINETYPE.ACTIVE_START,actor:a[o-1]};break;case 22:this.$={type:"activeEnd",signalType:n.LINETYPE.ACTIVE_END,actor:a[o-1]};break;case 28:n.setDiagramTitle(a[o].substring(6)),this.$=a[o].substring(6);break;case 29:n.setDiagramTitle(a[o].substring(7)),this.$=a[o].substring(7);break;case 30:this.$=a[o].trim(),n.setAccTitle(this.$);break;case 31:case 32:this.$=a[o].trim(),n.setAccDescription(this.$);break;case 33:a[o-1].unshift({type:"loopStart",loopText:n.parseMessage(a[o-2]),signalType:n.LINETYPE.LOOP_START}),a[o-1].push({type:"loopEnd",loopText:a[o-2],signalType:n.LINETYPE.LOOP_END}),this.$=a[o-1];break;case 34:a[o-1].unshift({type:"rectStart",color:n.parseMessage(a[o-2]),signalType:n.LINETYPE.RECT_START}),a[o-1].push({type:"rectEnd",color:n.parseMessage(a[o-2]),signalType:n.LINETYPE.RECT_END}),this.$=a[o-1];break;case 35:a[o-1].unshift({type:"optStart",optText:n.parseMessage(a[o-2]),signalType:n.LINETYPE.OPT_START}),a[o-1].push({type:"optEnd",optText:n.parseMessage(a[o-2]),signalType:n.LINETYPE.OPT_END}),this.$=a[o-1];break;case 36:a[o-1].unshift({type:"altStart",altText:n.parseMessage(a[o-2]),signalType:n.LINETYPE.ALT_START}),a[o-1].push({type:"altEnd",signalType:n.LINETYPE.ALT_END}),this.$=a[o-1];break;case 37:a[o-1].unshift({type:"parStart",parText:n.parseMessage(a[o-2]),signalType:n.LINETYPE.PAR_START}),a[o-1].push({type:"parEnd",signalType:n.LINETYPE.PAR_END}),this.$=a[o-1];break;case 38:a[o-1].unshift({type:"criticalStart",criticalText:n.parseMessage(a[o-2]),signalType:n.LINETYPE.CRITICAL_START}),a[o-1].push({type:"criticalEnd",signalType:n.LINETYPE.CRITICAL_END}),this.$=a[o-1];break;case 39:a[o-1].unshift({type:"breakStart",breakText:n.parseMessage(a[o-2]),signalType:n.LINETYPE.BREAK_START}),a[o-1].push({type:"breakEnd",optText:n.parseMessage(a[o-2]),signalType:n.LINETYPE.BREAK_END}),this.$=a[o-1];break;case 42:this.$=a[o-3].concat([{type:"option",optionText:n.parseMessage(a[o-1]),signalType:n.LINETYPE.CRITICAL_OPTION},a[o]]);break;case 44:this.$=a[o-3].concat([{type:"and",parText:n.parseMessage(a[o-1]),signalType:n.LINETYPE.PAR_AND},a[o]]);break;case 46:this.$=a[o-3].concat([{type:"else",altText:n.parseMessage(a[o-1]),signalType:n.LINETYPE.ALT_ELSE},a[o]]);break;case 47:this.$=[a[o-1],{type:"addNote",placement:a[o-2],actor:a[o-1].actor,text:a[o]}];break;case 48:a[o-2]=[].concat(a[o-1],a[o-1]).slice(0,2),a[o-2][0]=a[o-2][0].actor,a[o-2][1]=a[o-2][1].actor,this.$=[a[o-1],{type:"addNote",placement:n.PLACEMENT.OVER,actor:a[o-2].slice(0,2),text:a[o]}];break;case 49:this.$=[a[o-1],{type:"addLinks",actor:a[o-1].actor,text:a[o]}];break;case 50:this.$=[a[o-1],{type:"addALink",actor:a[o-1].actor,text:a[o]}];break;case 51:this.$=[a[o-1],{type:"addProperties",actor:a[o-1].actor,text:a[o]}];break;case 52:this.$=[a[o-1],{type:"addDetails",actor:a[o-1].actor,text:a[o]}];break;case 55:this.$=[a[o-2],a[o]];break;case 57:this.$=n.PLACEMENT.LEFTOF;break;case 58:this.$=n.PLACEMENT.RIGHTOF;break;case 59:this.$=[a[o-4],a[o-1],{type:"addMessage",from:a[o-4].actor,to:a[o-1].actor,signalType:a[o-3],msg:a[o]},{type:"activeStart",signalType:n.LINETYPE.ACTIVE_START,actor:a[o-1]}];break;case 60:this.$=[a[o-4],a[o-1],{type:"addMessage",from:a[o-4].actor,to:a[o-1].actor,signalType:a[o-3],msg:a[o]},{type:"activeEnd",signalType:n.LINETYPE.ACTIVE_END,actor:a[o-4]}];break;case 61:this.$=[a[o-3],a[o-1],{type:"addMessage",from:a[o-3].actor,to:a[o-1].actor,signalType:a[o-2],msg:a[o]}];break;case 62:this.$={type:"addParticipant",actor:a[o]};break;case 63:this.$=n.LINETYPE.SOLID_OPEN;break;case 64:this.$=n.LINETYPE.DOTTED_OPEN;break;case 65:this.$=n.LINETYPE.SOLID;break;case 66:this.$=n.LINETYPE.DOTTED;break;case 67:this.$=n.LINETYPE.SOLID_CROSS;break;case 68:this.$=n.LINETYPE.DOTTED_CROSS;break;case 69:this.$=n.LINETYPE.SOLID_POINT;break;case 70:this.$=n.LINETYPE.DOTTED_POINT;break;case 71:this.$=n.parseMessage(a[o].trim().substring(1));break;case 72:n.parseDirective("%%{","open_directive");break;case 73:n.parseDirective(a[o],"type_directive");break;case 74:a[o]=a[o].trim().replace(/'/g,'"'),n.parseDirective(a[o],"arg_directive");break;case 75:n.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:t,5:r,6:4,7:n,11:6,79:s},{1:[3]},{3:8,4:t,5:r,6:4,7:n,11:6,79:s},{3:9,4:t,5:r,6:4,7:n,11:6,79:s},{3:10,4:t,5:r,6:4,7:n,11:6,79:s},e([1,4,5,16,20,22,25,26,32,33,34,36,38,39,41,42,43,45,47,49,53,58,59,60,61,69,79],a,{8:11}),{12:12,80:[1,13]},{80:[2,72]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:i,5:o,6:41,9:14,10:16,11:6,16:l,17:42,20:c,21:20,22:d,25:u,26:h,27:24,28:25,29:26,30:27,31:28,32:f,33:p,34:m,36:g,38:y,39:_,41:b,42:v,43:x,45:k,47:j,49:w,53:C,58:T,59:E,60:S,61:A,69:M,79:s},{13:49,14:[1,50],82:D},e([14,82],[2,73]),e(O,[2,6]),{6:41,10:52,11:6,16:l,17:42,20:c,21:20,22:d,25:u,26:h,27:24,28:25,29:26,30:27,31:28,32:f,33:p,34:m,36:g,38:y,39:_,41:b,42:v,43:x,45:k,47:j,49:w,53:C,58:T,59:E,60:S,61:A,69:M,79:s},e(O,[2,8]),e(O,[2,9]),{17:53,69:M},{17:54,69:M},{5:[1,55]},{5:[1,58],23:[1,56],24:[1,57]},{17:59,69:M},{17:60,69:M},{5:[1,61]},{5:[1,62]},{5:[1,63]},{5:[1,64]},{5:[1,65]},e(O,[2,28]),e(O,[2,29]),{35:[1,66]},{37:[1,67]},e(O,[2,32]),{19:[1,68]},{19:[1,69]},{19:[1,70]},{19:[1,71]},{19:[1,72]},{19:[1,73]},{19:[1,74]},e(O,[2,40]),{66:75,70:[1,76],71:[1,77],72:[1,78],73:[1,79],74:[1,80],75:[1,81],76:[1,82],77:[1,83]},{54:84,56:[1,85],64:[1,86],65:[1,87]},{17:88,69:M},{17:89,69:M},{17:90,69:M},{17:91,69:M},e([5,18,63,70,71,72,73,74,75,76,77,78],[2,62]),{5:[1,92]},{15:93,81:[1,94]},{5:[2,75]},e(O,[2,7]),{5:[1,96],18:[1,95]},{5:[1,98],18:[1,97]},e(O,[2,16]),{5:[1,100],23:[1,99]},{5:[1,101]},e(O,[2,20]),{5:[1,102]},{5:[1,103]},e(O,[2,23]),e(O,[2,24]),e(O,[2,25]),e(O,[2,26]),e(O,[2,27]),e(O,[2,30]),e(O,[2,31]),e(B,a,{8:104}),e(B,a,{8:105}),e(B,a,{8:106}),e(I,a,{44:107,8:108}),e(N,a,{46:109,8:110}),e(L,a,{48:111,8:112}),e(B,a,{8:113}),{17:116,67:[1,114],68:[1,115],69:M},e(R,[2,63]),e(R,[2,64]),e(R,[2,65]),e(R,[2,66]),e(R,[2,67]),e(R,[2,68]),e(R,[2,69]),e(R,[2,70]),{17:117,69:M},{17:119,57:118,69:M},{69:[2,57]},{69:[2,58]},{55:120,78:F},{55:122,78:F},{55:123,78:F},{55:124,78:F},e(P,[2,10]),{13:125,82:D},{82:[2,74]},{19:[1,126]},e(O,[2,13]),{19:[1,127]},e(O,[2,15]),{5:[1,128]},e(O,[2,18]),e(O,[2,19]),e(O,[2,21]),e(O,[2,22]),{4:i,5:o,6:41,9:14,10:16,11:6,16:l,17:42,20:c,21:20,22:d,25:u,26:h,27:24,28:25,29:26,30:27,31:28,32:f,33:p,34:m,36:g,38:y,39:_,40:[1,129],41:b,42:v,43:x,45:k,47:j,49:w,53:C,58:T,59:E,60:S,61:A,69:M,79:s},{4:i,5:o,6:41,9:14,10:16,11:6,16:l,17:42,20:c,21:20,22:d,25:u,26:h,27:24,28:25,29:26,30:27,31:28,32:f,33:p,34:m,36:g,38:y,39:_,40:[1,130],41:b,42:v,43:x,45:k,47:j,49:w,53:C,58:T,59:E,60:S,61:A,69:M,79:s},{4:i,5:o,6:41,9:14,10:16,11:6,16:l,17:42,20:c,21:20,22:d,25:u,26:h,27:24,28:25,29:26,30:27,31:28,32:f,33:p,34:m,36:g,38:y,39:_,40:[1,131],41:b,42:v,43:x,45:k,47:j,49:w,53:C,58:T,59:E,60:S,61:A,69:M,79:s},{40:[1,132]},{4:i,5:o,6:41,9:14,10:16,11:6,16:l,17:42,20:c,21:20,22:d,25:u,26:h,27:24,28:25,29:26,30:27,31:28,32:f,33:p,34:m,36:g,38:y,39:_,40:[2,45],41:b,42:v,43:x,45:k,47:j,49:w,52:[1,133],53:C,58:T,59:E,60:S,61:A,69:M,79:s},{40:[1,134]},{4:i,5:o,6:41,9:14,10:16,11:6,16:l,17:42,20:c,21:20,22:d,25:u,26:h,27:24,28:25,29:26,30:27,31:28,32:f,33:p,34:m,36:g,38:y,39:_,40:[2,43],41:b,42:v,43:x,45:k,47:j,49:w,51:[1,135],53:C,58:T,59:E,60:S,61:A,69:M,79:s},{40:[1,136]},{4:i,5:o,6:41,9:14,10:16,11:6,16:l,17:42,20:c,21:20,22:d,25:u,26:h,27:24,28:25,29:26,30:27,31:28,32:f,33:p,34:m,36:g,38:y,39:_,40:[2,41],41:b,42:v,43:x,45:k,47:j,49:w,50:[1,137],53:C,58:T,59:E,60:S,61:A,69:M,79:s},{4:i,5:o,6:41,9:14,10:16,11:6,16:l,17:42,20:c,21:20,22:d,25:u,26:h,27:24,28:25,29:26,30:27,31:28,32:f,33:p,34:m,36:g,38:y,39:_,40:[1,138],41:b,42:v,43:x,45:k,47:j,49:w,53:C,58:T,59:E,60:S,61:A,69:M,79:s},{17:139,69:M},{17:140,69:M},{55:141,78:F},{55:142,78:F},{55:143,78:F},{63:[1,144],78:[2,56]},{5:[2,49]},{5:[2,71]},{5:[2,50]},{5:[2,51]},{5:[2,52]},{5:[1,145]},{5:[1,146]},{5:[1,147]},e(O,[2,17]),e(O,[2,33]),e(O,[2,34]),e(O,[2,35]),e(O,[2,36]),{19:[1,148]},e(O,[2,37]),{19:[1,149]},e(O,[2,38]),{19:[1,150]},e(O,[2,39]),{55:151,78:F},{55:152,78:F},{5:[2,61]},{5:[2,47]},{5:[2,48]},{17:153,69:M},e(P,[2,11]),e(O,[2,12]),e(O,[2,14]),e(I,a,{8:108,44:154}),e(N,a,{8:110,46:155}),e(L,a,{8:112,48:156}),{5:[2,59]},{5:[2,60]},{78:[2,55]},{40:[2,46]},{40:[2,44]},{40:[2,42]}],defaultActions:{7:[2,72],8:[2,1],9:[2,2],10:[2,3],51:[2,75],86:[2,57],87:[2,58],94:[2,74],120:[2,49],121:[2,71],122:[2,50],123:[2,51],124:[2,52],141:[2,61],142:[2,47],143:[2,48],151:[2,59],152:[2,60],153:[2,55],154:[2,46],155:[2,44],156:[2,42]},parseError:function(e,t){if(!t.recoverable){var r=new Error(e);throw r.hash=t,r}this.trace(e)},parse:function(e){var t=this,r=[0],n=[],s=[null],a=[],i=this.table,o="",l=0,c=0,d=0,u=2,h=1,f=a.slice.call(arguments,1),p=Object.create(this.lexer),m={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(m.yy[g]=this.yy[g]);p.setInput(e,m.yy),m.yy.lexer=p,m.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;a.push(y);var _=p.options&&p.options.ranges;function b(){var e;return"number"!=typeof(e=n.pop()||p.lex()||h)&&(e instanceof Array&&(e=(n=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof m.yy.parseError?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,x,k,j,w,C,T,E,S,A={};;){if(k=r[r.length-1],this.defaultActions[k]?j=this.defaultActions[k]:(null==v&&(v=b()),j=i[k]&&i[k][v]),void 0===j||!j.length||!j[0]){var M="";for(C in S=[],i[k])this.terminals_[C]&&C>u&&S.push("'"+this.terminals_[C]+"'");M=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(M,{text:p.match,token:this.terminals_[v]||v,line:p.yylineno,loc:y,expected:S})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+v);switch(j[0]){case 1:r.push(v),s.push(p.yytext),a.push(p.yylloc),r.push(j[1]),v=null,x?(v=x,x=null):(c=p.yyleng,o=p.yytext,l=p.yylineno,y=p.yylloc,d>0&&d--);break;case 2:if(T=this.productions_[j[1]][1],A.$=s[s.length-T],A._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},_&&(A._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(A,[o,c,l,m.yy,j[1],s,a].concat(f))))return w;T&&(r=r.slice(0,-1*T*2),s=s.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[j[1]][0]),s.push(A.$),a.push(A._$),E=i[r[r.length-2]][r[r.length-1]],r.push(E);break;case 3:return!0}}return!0}},q={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput: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},input: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},unput:function(e){var t=e.length,r=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 n=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),r.length-1&&(this.yylineno-=r.length-1);var s=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var r,n,s;if(this.options.backtrack_lexer&&(s={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&&(s.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.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],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in s)this[a]=s[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),a=0;at[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,s[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,s[n]))&&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})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,r,n){switch(r){case 0:return this.begin("open_directive"),79;case 1:return this.begin("type_directive"),80;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),82;case 4:return 81;case 5:case 52:case 65:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return 23;case 12:return this.begin("ID"),16;case 13:return this.begin("ID"),20;case 14:return t.yytext=t.yytext.trim(),this.begin("ALIAS"),69;case 15:return this.popState(),this.popState(),this.begin("LINE"),18;case 16:return this.popState(),this.popState(),5;case 17:return this.begin("LINE"),39;case 18:return this.begin("LINE"),41;case 19:return this.begin("LINE"),42;case 20:return this.begin("LINE"),43;case 21:return this.begin("LINE"),52;case 22:return this.begin("LINE"),45;case 23:return this.begin("LINE"),51;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),50;case 26:return this.begin("LINE"),49;case 27:return this.popState(),19;case 28:return 40;case 29:return 64;case 30:return 65;case 31:return 58;case 32:return 59;case 33:return 60;case 34:return 61;case 35:return 56;case 36:return 53;case 37:return this.begin("ID"),25;case 38:return this.begin("ID"),26;case 39:return 32;case 40:return 33;case 41:return this.begin("acc_title"),34;case 42:return this.popState(),"acc_title_value";case 43:return this.begin("acc_descr"),36;case 44:return this.popState(),"acc_descr_value";case 45:this.begin("acc_descr_multiline");break;case 46:this.popState();break;case 47:return"acc_descr_multiline_value";case 48:return 7;case 49:return 22;case 50:return 24;case 51:return 63;case 53:return t.yytext=t.yytext.trim(),69;case 54:return 72;case 55:return 73;case 56:return 70;case 57:return 71;case 58:return 74;case 59:return 75;case 60:return 76;case 61:return 77;case 62:return 78;case 63:return 67;case 64:return 68;case 66:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[46,47],inclusive:!1},acc_descr:{rules:[44],inclusive:!1},acc_title:{rules:[42],inclusive:!1},open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,14],inclusive:!1},ALIAS:{rules:[7,8,15,16],inclusive:!1},LINE:{rules:[7,8,27],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,45,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66],inclusive:!0}}};function Y(){this.yy={}}return z.lexer=q,Y.prototype=z,z.Parser=Y,new Y}();t.parser=n,t.Parser=n.Parser,t.parse=function(){return n.parse.apply(n,arguments)},t.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var n=r("?e940").readFileSync(r("./node_modules/path-browserify/index.js").normalize(e[1]),"utf8");return t.parser.parse(n)},r.c[r.s]===e&&t.main(process.argv.slice(1))},"./src/diagrams/state/parser/stateDiagram.jison":(e,t,r)=>{e=r.nmd(e);var n=function(){var e=function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},t=[1,2],r=[1,3],n=[1,5],s=[1,7],a=[2,5],i=[1,15],o=[1,17],l=[1,19],c=[1,20],d=[1,21],u=[1,22],h=[1,33],f=[1,23],p=[1,24],m=[1,25],g=[1,26],y=[1,27],_=[1,30],b=[1,31],v=[1,32],x=[1,35],k=[1,36],j=[1,37],w=[1,38],C=[1,34],T=[1,41],E=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],S=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],A=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],M=[4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],D={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,idStatement:11,DESCR:12,"--\x3e":13,HIDE_EMPTY:14,scale:15,WIDTH:16,COMPOSIT_STATE:17,STRUCT_START:18,STRUCT_STOP:19,STATE_DESCR:20,AS:21,ID:22,FORK:23,JOIN:24,CHOICE:25,CONCURRENT:26,note:27,notePosition:28,NOTE_TEXT:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,openDirective:36,typeDirective:37,closeDirective:38,":":39,argDirective:40,direction_tb:41,direction_bt:42,direction_rl:43,direction_lr:44,eol:45,";":46,EDGE_STATE:47,left_of:48,right_of:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",12:"DESCR",13:"--\x3e",14:"HIDE_EMPTY",15:"scale",16:"WIDTH",17:"COMPOSIT_STATE",18:"STRUCT_START",19:"STRUCT_STOP",20:"STATE_DESCR",21:"AS",22:"ID",23:"FORK",24:"JOIN",25:"CHOICE",26:"CONCURRENT",27:"note",29:"NOTE_TEXT",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",39:":",41:"direction_tb",42:"direction_bt",43:"direction_rl",44:"direction_lr",46:";",47:"EDGE_STATE",48:"left_of",49:"right_of",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[10,2],[10,2],[10,1],[6,3],[6,5],[30,1],[30,1],[30,1],[30,1],[45,1],[45,1],[11,1],[11,1],[28,1],[28,1],[36,1],[37,1],[40,1],[38,1]],performAction:function(e,t,r,n,s,a,i){var o=a.length-1;switch(s){case 4:return n.setRootDoc(a[o]),a[o];case 5:this.$=[];break;case 6:"nl"!=a[o]&&(a[o-1].push(a[o]),this.$=a[o-1]);break;case 7:case 8:case 39:case 40:this.$=a[o];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:a[o],type:"default",description:""};break;case 11:this.$={stmt:"state",id:a[o-1],type:"default",description:n.trimColon(a[o])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:a[o-2],type:"default",description:""},state2:{stmt:"state",id:a[o],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:a[o-3],type:"default",description:""},state2:{stmt:"state",id:a[o-1],type:"default",description:""},description:a[o].substr(1).trim()};break;case 17:this.$={stmt:"state",id:a[o-3],type:"default",description:"",doc:a[o-1]};break;case 18:var l=a[o],c=a[o-2].trim();if(a[o].match(":")){var d=a[o].split(":");l=d[0],c=[c,d[1]]}this.$={stmt:"state",id:l,type:"default",description:c};break;case 19:this.$={stmt:"state",id:a[o-3],type:"default",description:a[o-5],doc:a[o-1]};break;case 20:this.$={stmt:"state",id:a[o],type:"fork"};break;case 21:this.$={stmt:"state",id:a[o],type:"join"};break;case 22:this.$={stmt:"state",id:a[o],type:"choice"};break;case 23:this.$={stmt:"state",id:n.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:a[o-1].trim(),note:{position:a[o-2].trim(),text:a[o].trim()}};break;case 28:this.$=a[o].trim(),n.setAccTitle(this.$);break;case 29:case 30:this.$=a[o].trim(),n.setAccDescription(this.$);break;case 33:n.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 34:n.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 35:n.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 36:n.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 43:n.parseDirective("%%{","open_directive");break;case 44:n.parseDirective(a[o],"type_directive");break;case 45:a[o]=a[o].trim().replace(/'/g,'"'),n.parseDirective(a[o],"arg_directive");break;case 46:n.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:t,5:r,6:4,7:n,36:6,50:s},{1:[3]},{3:8,4:t,5:r,6:4,7:n,36:6,50:s},{3:9,4:t,5:r,6:4,7:n,36:6,50:s},{3:10,4:t,5:r,6:4,7:n,36:6,50:s},e([1,4,5,14,15,17,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],a,{8:11}),{37:12,51:[1,13]},{51:[2,43]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:i,5:o,6:28,9:14,10:16,11:18,14:l,15:c,17:d,20:u,22:h,23:f,24:p,25:m,26:g,27:y,30:29,31:_,33:b,35:v,36:6,41:x,42:k,43:j,44:w,47:C,50:s},{38:39,39:[1,40],53:T},e([39,53],[2,44]),e(E,[2,6]),{6:28,10:42,11:18,14:l,15:c,17:d,20:u,22:h,23:f,24:p,25:m,26:g,27:y,30:29,31:_,33:b,35:v,36:6,41:x,42:k,43:j,44:w,47:C,50:s},e(E,[2,8]),e(E,[2,9]),e(E,[2,10],{12:[1,43],13:[1,44]}),e(E,[2,14]),{16:[1,45]},e(E,[2,16],{18:[1,46]}),{21:[1,47]},e(E,[2,20]),e(E,[2,21]),e(E,[2,22]),e(E,[2,23]),{28:48,29:[1,49],48:[1,50],49:[1,51]},e(E,[2,26]),e(E,[2,27]),{32:[1,52]},{34:[1,53]},e(E,[2,30]),e(S,[2,39]),e(S,[2,40]),e(E,[2,33]),e(E,[2,34]),e(E,[2,35]),e(E,[2,36]),e(A,[2,31]),{40:54,52:[1,55]},e(A,[2,46]),e(E,[2,7]),e(E,[2,11]),{11:56,22:h,47:C},e(E,[2,15]),e(M,a,{8:57}),{22:[1,58]},{22:[1,59]},{21:[1,60]},{22:[2,41]},{22:[2,42]},e(E,[2,28]),e(E,[2,29]),{38:61,53:T},{53:[2,45]},e(E,[2,12],{12:[1,62]}),{4:i,5:o,6:28,9:14,10:16,11:18,14:l,15:c,17:d,19:[1,63],20:u,22:h,23:f,24:p,25:m,26:g,27:y,30:29,31:_,33:b,35:v,36:6,41:x,42:k,43:j,44:w,47:C,50:s},e(E,[2,18],{18:[1,64]}),{29:[1,65]},{22:[1,66]},e(A,[2,32]),e(E,[2,13]),e(E,[2,17]),e(M,a,{8:67}),e(E,[2,24]),e(E,[2,25]),{4:i,5:o,6:28,9:14,10:16,11:18,14:l,15:c,17:d,19:[1,68],20:u,22:h,23:f,24:p,25:m,26:g,27:y,30:29,31:_,33:b,35:v,36:6,41:x,42:k,43:j,44:w,47:C,50:s},e(E,[2,19])],defaultActions:{7:[2,43],8:[2,1],9:[2,2],10:[2,3],50:[2,41],51:[2,42],55:[2,45]},parseError:function(e,t){if(!t.recoverable){var r=new Error(e);throw r.hash=t,r}this.trace(e)},parse:function(e){var t=this,r=[0],n=[],s=[null],a=[],i=this.table,o="",l=0,c=0,d=0,u=2,h=1,f=a.slice.call(arguments,1),p=Object.create(this.lexer),m={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(m.yy[g]=this.yy[g]);p.setInput(e,m.yy),m.yy.lexer=p,m.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;a.push(y);var _=p.options&&p.options.ranges;function b(){var e;return"number"!=typeof(e=n.pop()||p.lex()||h)&&(e instanceof Array&&(e=(n=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof m.yy.parseError?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,x,k,j,w,C,T,E,S,A={};;){if(k=r[r.length-1],this.defaultActions[k]?j=this.defaultActions[k]:(null==v&&(v=b()),j=i[k]&&i[k][v]),void 0===j||!j.length||!j[0]){var M="";for(C in S=[],i[k])this.terminals_[C]&&C>u&&S.push("'"+this.terminals_[C]+"'");M=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(M,{text:p.match,token:this.terminals_[v]||v,line:p.yylineno,loc:y,expected:S})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+v);switch(j[0]){case 1:r.push(v),s.push(p.yytext),a.push(p.yylloc),r.push(j[1]),v=null,x?(v=x,x=null):(c=p.yyleng,o=p.yytext,l=p.yylineno,y=p.yylloc,d>0&&d--);break;case 2:if(T=this.productions_[j[1]][1],A.$=s[s.length-T],A._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},_&&(A._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(A,[o,c,l,m.yy,j[1],s,a].concat(f))))return w;T&&(r=r.slice(0,-1*T*2),s=s.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[j[1]][0]),s.push(A.$),a.push(A._$),E=i[r[r.length-2]][r[r.length-1]],r.push(E);break;case 3:return!0}}return!0}},O={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput: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},input: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},unput:function(e){var t=e.length,r=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 n=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),r.length-1&&(this.yylineno-=r.length-1);var s=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var r,n,s;if(this.options.backtrack_lexer&&(s={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&&(s.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.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],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in s)this[a]=s[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),a=0;at[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,s[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,s[n]))&&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})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,r,n){switch(r){case 0:case 33:return 41;case 1:case 34:return 42;case 2:case 35:return 43;case 3:case 36:return 44;case 4:return this.begin("open_directive"),50;case 5:return this.begin("type_directive"),51;case 6:return this.popState(),this.begin("arg_directive"),39;case 7:return this.popState(),this.popState(),53;case 8:return 52;case 9:case 10:case 12:case 13:case 14:case 15:case 46:case 52:break;case 11:case 66:return 5;case 16:return this.pushState("SCALE"),15;case 17:return 16;case 18:case 24:case 40:case 43:this.popState();break;case 19:return this.begin("acc_title"),31;case 20:return this.popState(),"acc_title_value";case 21:return this.begin("acc_descr"),33;case 22:return this.popState(),"acc_descr_value";case 23:this.begin("acc_descr_multiline");break;case 25:return"acc_descr_multiline_value";case 26:this.pushState("STATE");break;case 27:case 30:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),23;case 28:case 31:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),24;case 29:case 32:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),25;case 37:this.begin("STATE_STRING");break;case 38:return this.popState(),this.pushState("STATE_ID"),"AS";case 39:case 54:return this.popState(),"ID";case 41:return"STATE_DESCR";case 42:return 17;case 44:return this.popState(),this.pushState("struct"),18;case 45:return this.popState(),19;case 47:return this.begin("NOTE"),27;case 48:return this.popState(),this.pushState("NOTE_ID"),48;case 49:return this.popState(),this.pushState("NOTE_ID"),49;case 50:this.popState(),this.pushState("FLOATING_NOTE");break;case 51:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 53:return"NOTE_TEXT";case 55:return this.popState(),this.pushState("NOTE_TEXT"),22;case 56:return this.popState(),t.yytext=t.yytext.substr(2).trim(),29;case 57:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),29;case 58:case 59:return 7;case 60:return 14;case 61:return 47;case 62:return 22;case 63:return t.yytext=t.yytext.trim(),12;case 64:return 13;case 65:return 26;case 67:return"INVALID"}},rules:[/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[13,14],inclusive:!1},close_directive:{rules:[13,14],inclusive:!1},arg_directive:{rules:[7,8,13,14],inclusive:!1},type_directive:{rules:[6,7,13,14],inclusive:!1},open_directive:{rules:[5,13,14],inclusive:!1},struct:{rules:[13,14,26,33,34,35,36,45,46,47,61,62,63,64,65],inclusive:!1},FLOATING_NOTE_ID:{rules:[54],inclusive:!1},FLOATING_NOTE:{rules:[51,52,53],inclusive:!1},NOTE_TEXT:{rules:[56,57],inclusive:!1},NOTE_ID:{rules:[55],inclusive:!1},NOTE:{rules:[48,49,50],inclusive:!1},acc_descr_multiline:{rules:[24,25],inclusive:!1},acc_descr:{rules:[22],inclusive:!1},acc_title:{rules:[20],inclusive:!1},SCALE:{rules:[17,18],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[39],inclusive:!1},STATE_STRING:{rules:[40,41],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[13,14,27,28,29,30,31,32,37,38,42,43,44],inclusive:!1},ID:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,14,15,16,19,21,23,26,44,47,58,59,60,61,62,63,64,66,67],inclusive:!0}}};function B(){this.yy={}}return D.lexer=O,B.prototype=D,D.Parser=B,new B}();t.parser=n,t.Parser=n.Parser,t.parse=function(){return n.parse.apply(n,arguments)},t.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var n=r("?a3b8").readFileSync(r("./node_modules/path-browserify/index.js").normalize(e[1]),"utf8");return t.parser.parse(n)},r.c[r.s]===e&&t.main(process.argv.slice(1))},"./src/diagrams/user-journey/parser/journey.jison":(e,t,r)=>{e=r.nmd(e);var n=function(){var e=function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},t=[1,2],r=[1,5],n=[6,9,11,17,18,20,22,23,24,26],s=[1,15],a=[1,16],i=[1,17],o=[1,18],l=[1,19],c=[1,20],d=[1,24],u=[4,6,9,11,17,18,20,22,23,24,26],h={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",24:"taskName",25:"taskData",26:"open_directive",27:"type_directive",28:"arg_directive",29:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(e,t,r,n,s,a,i){var o=a.length-1;switch(s){case 1:return a[o-1];case 3:case 7:case 8:this.$=[];break;case 4:a[o-1].push(a[o]),this.$=a[o-1];break;case 5:case 6:this.$=a[o];break;case 11:n.setDiagramTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 12:this.$=a[o].trim(),n.setAccTitle(this.$);break;case 13:case 14:this.$=a[o].trim(),n.setAccDescription(this.$);break;case 15:n.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 16:n.addTask(a[o-1],a[o]),this.$="task";break;case 18:n.parseDirective("%%{","open_directive");break;case 19:n.parseDirective(a[o],"type_directive");break;case 20:a[o]=a[o].trim().replace(/'/g,'"'),n.parseDirective(a[o],"arg_directive");break;case 21:n.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:t,7:3,12:4,26:r},{1:[3]},e(n,[2,3],{5:6}),{3:7,4:t,7:3,12:4,26:r},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:s,18:a,20:i,22:o,23:l,24:c,26:r},{1:[2,2]},{14:22,15:[1,23],29:d},e([15,29],[2,19]),e(n,[2,8],{1:[2,1]}),e(n,[2,4]),{7:21,10:25,12:4,17:s,18:a,20:i,22:o,23:l,24:c,26:r},e(n,[2,6]),e(n,[2,7]),e(n,[2,11]),{19:[1,26]},{21:[1,27]},e(n,[2,14]),e(n,[2,15]),{25:[1,28]},e(n,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},e(n,[2,5]),e(n,[2,12]),e(n,[2,13]),e(n,[2,16]),e(u,[2,9]),{14:32,29:d},{29:[2,20]},{11:[1,33]},e(u,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(e,t){if(!t.recoverable){var r=new Error(e);throw r.hash=t,r}this.trace(e)},parse:function(e){var t=this,r=[0],n=[],s=[null],a=[],i=this.table,o="",l=0,c=0,d=0,u=2,h=1,f=a.slice.call(arguments,1),p=Object.create(this.lexer),m={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(m.yy[g]=this.yy[g]);p.setInput(e,m.yy),m.yy.lexer=p,m.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;a.push(y);var _=p.options&&p.options.ranges;function b(){var e;return"number"!=typeof(e=n.pop()||p.lex()||h)&&(e instanceof Array&&(e=(n=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof m.yy.parseError?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,x,k,j,w,C,T,E,S,A={};;){if(k=r[r.length-1],this.defaultActions[k]?j=this.defaultActions[k]:(null==v&&(v=b()),j=i[k]&&i[k][v]),void 0===j||!j.length||!j[0]){var M="";for(C in S=[],i[k])this.terminals_[C]&&C>u&&S.push("'"+this.terminals_[C]+"'");M=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(M,{text:p.match,token:this.terminals_[v]||v,line:p.yylineno,loc:y,expected:S})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+v);switch(j[0]){case 1:r.push(v),s.push(p.yytext),a.push(p.yylloc),r.push(j[1]),v=null,x?(v=x,x=null):(c=p.yyleng,o=p.yytext,l=p.yylineno,y=p.yylloc,d>0&&d--);break;case 2:if(T=this.productions_[j[1]][1],A.$=s[s.length-T],A._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},_&&(A._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(A,[o,c,l,m.yy,j[1],s,a].concat(f))))return w;T&&(r=r.slice(0,-1*T*2),s=s.slice(0,-1*T),a=a.slice(0,-1*T)),r.push(this.productions_[j[1]][0]),s.push(A.$),a.push(A._$),E=i[r[r.length-2]][r[r.length-1]],r.push(E);break;case 3:return!0}}return!0}},f={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput: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},input: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},unput:function(e){var t=e.length,r=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 n=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),r.length-1&&(this.yylineno-=r.length-1);var s=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var r,n,s;if(this.options.backtrack_lexer&&(s={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&&(s.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.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],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in s)this[a]=s[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),a=0;at[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,s[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,s[n]))&&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})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,r,n){switch(r){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};function p(){this.yy={}}return h.lexer=f,p.prototype=h,h.Parser=p,new p}();t.parser=n,t.Parser=n.Parser,t.parse=function(){return n.parse.apply(n,arguments)},t.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var n=r("?0f62").readFileSync(r("./node_modules/path-browserify/index.js").normalize(e[1]),"utf8");return t.parser.parse(n)},r.c[r.s]===e&&t.main(process.argv.slice(1))},"./node_modules/@braintree/sanitize-url/dist/index.js":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeUrl=void 0;var r=/^([^\w]*)(javascript|data|vbscript)/im,n=/&#(\w+)(^\w|;)?/g,s=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,a=/^([^:]+):/gm,i=[".","/"];t.sanitizeUrl=function(e){var t,o=(t=e||"",t.replace(n,(function(e,t){return String.fromCharCode(t)}))).replace(s,"").trim();if(!o)return"about:blank";if(function(e){return i.indexOf(e[0])>-1}(o))return o;var l=o.match(a);if(!l)return o;var c=l[0];return r.test(c)?"about:blank":o}},"./src/accessibility.js":(e,t,r)=>{"use strict";function n(e,t,r){if(void 0!==t.insert){var n=e.getAccTitle(),s=e.getAccDescription();t.attr("role","img").attr("aria-labelledby","chart-title-"+r+" chart-desc-"+r),t.insert("desc",":first-child").attr("id","chart-desc-"+r).text(s),t.insert("title",":first-child").attr("id","chart-title-"+r).text(n)}}r.r(t),r.d(t,{default:()=>n})},"./src/commonDb.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{clear:()=>c,default:()=>g,getAccDescription:()=>f,getAccTitle:()=>u,getDiagramTitle:()=>m,setAccDescription:()=>h,setAccTitle:()=>d,setDiagramTitle:()=>p});var n=r("./src/diagrams/common/common.js"),s=r("./src/config.js"),a="",i="",o="",l=function(e){return(0,n.sanitizeText)(e,(0,s.getConfig)())},c=function(){a="",o="",i=""},d=function(e){a=l(e).replace(/^\s+/g,"")},u=function(){return a||i},h=function(e){o=l(e).replace(/\n\s+/g,"\n")},f=function(){return o},p=function(e){i=l(e)},m=function(){return i};const g={setAccTitle:d,getAccTitle:u,setDiagramTitle:p,getDiagramTitle:m,getAccDescription:f,setAccDescription:h,clear:c}},"./src/config.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{addDirective:()=>x,defaultConfig:()=>c,getConfig:()=>b,getSiteConfig:()=>y,reset:()=>k,sanitize:()=>v,saveConfigFromInitialize:()=>m,setConfig:()=>_,setSiteConfig:()=>p,updateCurrentConfig:()=>f,updateSiteConfig:()=>g});var n=r("./src/utils.js"),s=r("./src/logger.js"),a=r("./src/themes/index.js"),i=r("./src/defaultConfig.js");function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var l,c=Object.freeze(i.default),d=(0,n.assignWithDepth)({},c),u=[],h=(0,n.assignWithDepth)({},c),f=function(e,t){for(var r=(0,n.assignWithDepth)({},e),s={},i=0;i-1||t[r].indexOf(">")>-1||t[r].indexOf("url(data:")>-1)&&delete t[r],"object"===o(t[r])&&e(t[r])}))},x=function(e){e.fontFamily&&(e.themeVariables&&e.themeVariables.fontFamily||(e.themeVariables={fontFamily:e.fontFamily})),u.push(e),f(d,u)},k=function(){f(d,u=[])}},"./src/dagre-wrapper/clusters.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{clear:()=>f,getClusterTitleWidth:()=>h,insertCluster:()=>u,positionCluster:()=>p});var n=r("./src/dagre-wrapper/intersect/intersect-rect.js"),s=r("./src/logger.js"),a=r("./src/dagre-wrapper/createLabel.js"),i=r("./node_modules/d3/src/index.js"),o=r("./src/config.js"),l=r("./src/diagrams/common/common.js"),c={rect:function(e,t){s.log.trace("Creating subgraph rect for ",t.id,t);var r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),c=r.insert("rect",":first-child"),d=r.insert("g").attr("class","cluster-label"),u=d.node().appendChild((0,a.default)(t.labelText,t.labelStyle,void 0,!0)),h=u.getBBox();if((0,l.evaluate)((0,o.getConfig)().flowchart.htmlLabels)){var f=u.children[0],p=(0,i.select)(u);h=f.getBoundingClientRect(),p.attr("width",h.width),p.attr("height",h.height)}var m=0*t.padding,g=m/2,y=t.width<=h.width+m?h.width+m:t.width;t.width<=h.width+m?t.diff=(h.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,s.log.trace("Data ",t,JSON.stringify(t)),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-y/2).attr("y",t.y-t.height/2-g).attr("width",y).attr("height",t.height+m),d.attr("transform","translate("+(t.x-h.width/2)+", "+(t.y-t.height/2+t.padding/3)+")");var _=c.node().getBBox();return t.width=_.width,t.height=_.height,t.intersect=function(e){return(0,n.default)(t,e)},r},roundedWithTitle:function(e,t){var r=e.insert("g").attr("class",t.classes).attr("id",t.id),s=r.insert("rect",":first-child"),c=r.insert("g").attr("class","cluster-label"),d=r.append("rect"),u=c.node().appendChild((0,a.default)(t.labelText,t.labelStyle,void 0,!0)),h=u.getBBox();if((0,l.evaluate)((0,o.getConfig)().flowchart.htmlLabels)){var f=u.children[0],p=(0,i.select)(u);h=f.getBoundingClientRect(),p.attr("width",h.width),p.attr("height",h.height)}h=u.getBBox();var m=0*t.padding,g=m/2,y=t.width<=h.width+t.padding?h.width+t.padding:t.width;t.width<=h.width+t.padding?t.diff=(h.width+0*t.padding-t.width)/2:t.diff=-t.padding/2,s.attr("class","outer").attr("x",t.x-y/2-g).attr("y",t.y-t.height/2-g).attr("width",y+m).attr("height",t.height+m),d.attr("class","inner").attr("x",t.x-y/2-g).attr("y",t.y-t.height/2-g+h.height-1).attr("width",y+m).attr("height",t.height+m-h.height-3),c.attr("transform","translate("+(t.x-h.width/2)+", "+(t.y-t.height/2-t.padding/3+((0,l.evaluate)((0,o.getConfig)().flowchart.htmlLabels)?5:3))+")");var _=s.node().getBBox();return t.height=_.height,t.intersect=function(e){return(0,n.default)(t,e)},r},noteGroup:function(e,t){var r=e.insert("g").attr("class","note-cluster").attr("id",t.id),s=r.insert("rect",":first-child"),a=0*t.padding,i=a/2;s.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-i).attr("y",t.y-t.height/2-i).attr("width",t.width+a).attr("height",t.height+a).attr("fill","none");var o=s.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(e){return(0,n.default)(t,e)},r},divider:function(e,t){var r=e.insert("g").attr("class",t.classes).attr("id",t.id),s=r.insert("rect",":first-child"),a=0*t.padding,i=a/2;s.attr("class","divider").attr("x",t.x-t.width/2-i).attr("y",t.y-t.height/2).attr("width",t.width+a).attr("height",t.height+a);var o=s.node().getBBox();return t.width=o.width,t.height=o.height,t.diff=-t.padding/2,t.intersect=function(e){return(0,n.default)(t,e)},r}},d={},u=function(e,t){s.log.trace("Inserting cluster");var r=t.shape||"rect";d[t.id]=c[r](e,t)},h=function(e,t){var r=(0,a.default)(t.labelText,t.labelStyle,void 0,!0);e.node().appendChild(r);var n=r.getBBox().width;return e.node().removeChild(r),n},f=function(){d={}},p=function(e){s.log.info("Position cluster ("+e.id+", "+e.x+", "+e.y+")"),d[e.id].attr("transform","translate("+e.x+", "+e.y+")")}},"./src/dagre-wrapper/createLabel.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r("./node_modules/d3/src/index.js"),s=r("./src/logger.js"),a=r("./src/config.js"),i=r("./src/diagrams/common/common.js");function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}const l=function(e,t,r,l){var c,d,u,h,f,p,m=e||"";if("object"===o(m)&&(m=m[0]),(0,i.evaluate)((0,a.getConfig)().flowchart.htmlLabels))return m=m.replace(/\\n|\n/g,"
"),s.log.info("vertexText"+m),c={isNode:l,label:m.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(e){return"")})),labelStyle:t.replace("fill:","color:")},u=(0,n.select)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),h=u.append("xhtml:div"),f=c.label,p=c.isNode?"nodeLabel":"edgeLabel",h.html('"+f+""),(d=c.labelStyle)&&h.attr("style",d),h.style("display","inline-block"),h.style("white-space","nowrap"),h.attr("xmlns","http://www.w3.org/1999/xhtml"),u.node();var g=document.createElementNS("http://www.w3.org/2000/svg","text");g.setAttribute("style",t.replace("color:","fill:"));var y=[];y="string"==typeof m?m.split(/\\n|\n|/gi):Array.isArray(m)?m:[];for(var _=0;_{"use strict";r.r(t),r.d(t,{clear:()=>u,insertEdge:()=>y,insertEdgeLabel:()=>h,intersection:()=>m,positionEdgeLabel:()=>p});var n=r("./src/logger.js"),s=r("./src/dagre-wrapper/createLabel.js"),a=r("./node_modules/d3/src/index.js"),i=r("./src/config.js"),o=r("./src/utils.js"),l=r("./src/diagrams/common/common.js"),c={},d={},u=function(){c={},d={}},h=function(e,t){var r=(0,s.default)(t.label,t.labelStyle),n=e.insert("g").attr("class","edgeLabel"),o=n.insert("g").attr("class","label");o.node().appendChild(r);var u,h=r.getBBox();if((0,l.evaluate)((0,i.getConfig)().flowchart.htmlLabels)){var p=r.children[0],m=(0,a.select)(r);h=p.getBoundingClientRect(),m.attr("width",h.width),m.attr("height",h.height)}if(o.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),c[t.id]=n,t.width=h.width,t.height=h.height,t.startLabelLeft){var g=(0,s.default)(t.startLabelLeft,t.labelStyle),y=e.insert("g").attr("class","edgeTerminals"),_=y.insert("g").attr("class","inner");u=_.node().appendChild(g);var b=g.getBBox();_.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),d[t.id]||(d[t.id]={}),d[t.id].startLeft=y,f(u,t.startLabelLeft)}if(t.startLabelRight){var v=(0,s.default)(t.startLabelRight,t.labelStyle),x=e.insert("g").attr("class","edgeTerminals"),k=x.insert("g").attr("class","inner");u=x.node().appendChild(v),k.node().appendChild(v);var j=v.getBBox();k.attr("transform","translate("+-j.width/2+", "+-j.height/2+")"),d[t.id]||(d[t.id]={}),d[t.id].startRight=x,f(u,t.startLabelRight)}if(t.endLabelLeft){var w=(0,s.default)(t.endLabelLeft,t.labelStyle),C=e.insert("g").attr("class","edgeTerminals"),T=C.insert("g").attr("class","inner");u=T.node().appendChild(w);var E=w.getBBox();T.attr("transform","translate("+-E.width/2+", "+-E.height/2+")"),C.node().appendChild(w),d[t.id]||(d[t.id]={}),d[t.id].endLeft=C,f(u,t.endLabelLeft)}if(t.endLabelRight){var S=(0,s.default)(t.endLabelRight,t.labelStyle),A=e.insert("g").attr("class","edgeTerminals"),M=A.insert("g").attr("class","inner");u=M.node().appendChild(S);var D=S.getBBox();M.attr("transform","translate("+-D.width/2+", "+-D.height/2+")"),A.node().appendChild(S),d[t.id]||(d[t.id]={}),d[t.id].endRight=A,f(u,t.endLabelRight)}};function f(e,t){(0,i.getConfig)().flowchart.htmlLabels&&e&&(e.style.width=9*t.length+"px",e.style.height="12px")}var p=function(e,t){n.log.info("Moving label abc78 ",e.id,e.label,c[e.id]);var r=t.updatedPath?t.updatedPath:t.originalPath;if(e.label){var s=c[e.id],a=e.x,i=e.y;if(r){var l=o.default.calcLabelPosition(r);n.log.info("Moving label from (",a,",",i,") to (",l.x,",",l.y,") abc78")}s.attr("transform","translate("+a+", "+i+")")}if(e.startLabelLeft){var u=d[e.id].startLeft,h=e.x,f=e.y;if(r){var p=o.default.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);h=p.x,f=p.y}u.attr("transform","translate("+h+", "+f+")")}if(e.startLabelRight){var m=d[e.id].startRight,g=e.x,y=e.y;if(r){var _=o.default.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);g=_.x,y=_.y}m.attr("transform","translate("+g+", "+y+")")}if(e.endLabelLeft){var b=d[e.id].endLeft,v=e.x,x=e.y;if(r){var k=o.default.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);v=k.x,x=k.y}b.attr("transform","translate("+v+", "+x+")")}if(e.endLabelRight){var j=d[e.id].endRight,w=e.x,C=e.y;if(r){var T=o.default.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);w=T.x,C=T.y}j.attr("transform","translate("+w+", "+C+")")}},m=function(e,t,r){n.log.warn("intersection calc abc89:\n outsidePoint: ".concat(JSON.stringify(t),"\n insidePoint : ").concat(JSON.stringify(r),"\n node : x:").concat(e.x," y:").concat(e.y," w:").concat(e.width," h:").concat(e.height));var s=e.x,a=e.y,i=Math.abs(s-r.x),o=e.width/2,l=r.xMath.abs(s-t.x)*c){var h=r.y=i||a>=o}(t,e)||a)n.log.warn("abc88 outside",e,s),s=e,a||r.push(e);else{var i=m(t,s,e);n.log.warn("abc88 inside",e,s,i),n.log.warn("abc88 intersection",i);var o=!1;r.forEach((function(e){o=o||e.x===i.x&&e.y===i.y})),r.find((function(e){return e.x===i.x&&e.y===i.y}))?n.log.warn("abc88 no intersect",i,r):r.push(i),a=!0}})),n.log.warn("abc88 returning points",r),r},y=function(e,t,r,s,o,l){var c=r.points,d=!1,u=l.node(t.v),h=l.node(t.w);n.log.info("abc88 InsertEdge: ",r),h.intersect&&u.intersect&&((c=c.slice(1,r.points.length-1)).unshift(u.intersect(c[0])),n.log.info("Last point",c[c.length-1],h,h.intersect(c[c.length-1])),c.push(h.intersect(c[c.length-1]))),r.toCluster&&(n.log.info("to cluster abc88",s[r.toCluster]),c=g(r.points,s[r.toCluster].node),d=!0),r.fromCluster&&(n.log.info("from cluster abc88",s[r.fromCluster]),c=g(c.reverse(),s[r.fromCluster].node).reverse(),d=!0);var f,p=c.filter((function(e){return!Number.isNaN(e.y)}));f=("graph"===o||"flowchart"===o)&&r.curve||a.curveBasis;var m,y=(0,a.line)().x((function(e){return e.x})).y((function(e){return e.y})).curve(f);switch(r.thickness){case"normal":m="edge-thickness-normal";break;case"thick":m="edge-thickness-thick";break;default:m=""}switch(r.pattern){case"solid":m+=" edge-pattern-solid";break;case"dotted":m+=" edge-pattern-dotted";break;case"dashed":m+=" edge-pattern-dashed"}var _=e.append("path").attr("d",y(p)).attr("id",r.id).attr("class"," "+m+(r.classes?" "+r.classes:"")).attr("style",r.style),b="";switch((0,i.getConfig)().state.arrowMarkerAbsolute&&(b=(b=(b=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),n.log.info("arrowTypeStart",r.arrowTypeStart),n.log.info("arrowTypeEnd",r.arrowTypeEnd),r.arrowTypeStart){case"arrow_cross":_.attr("marker-start","url("+b+"#"+o+"-crossStart)");break;case"arrow_point":_.attr("marker-start","url("+b+"#"+o+"-pointStart)");break;case"arrow_barb":_.attr("marker-start","url("+b+"#"+o+"-barbStart)");break;case"arrow_circle":_.attr("marker-start","url("+b+"#"+o+"-circleStart)");break;case"aggregation":_.attr("marker-start","url("+b+"#"+o+"-aggregationStart)");break;case"extension":_.attr("marker-start","url("+b+"#"+o+"-extensionStart)");break;case"composition":_.attr("marker-start","url("+b+"#"+o+"-compositionStart)");break;case"dependency":_.attr("marker-start","url("+b+"#"+o+"-dependencyStart)")}switch(r.arrowTypeEnd){case"arrow_cross":_.attr("marker-end","url("+b+"#"+o+"-crossEnd)");break;case"arrow_point":_.attr("marker-end","url("+b+"#"+o+"-pointEnd)");break;case"arrow_barb":_.attr("marker-end","url("+b+"#"+o+"-barbEnd)");break;case"arrow_circle":_.attr("marker-end","url("+b+"#"+o+"-circleEnd)");break;case"aggregation":_.attr("marker-end","url("+b+"#"+o+"-aggregationEnd)");break;case"extension":_.attr("marker-end","url("+b+"#"+o+"-extensionEnd)");break;case"composition":_.attr("marker-end","url("+b+"#"+o+"-compositionEnd)");break;case"dependency":_.attr("marker-end","url("+b+"#"+o+"-dependencyEnd)")}var v={};return d&&(v.updatedPath=c),v.originalPath=r.points,v}},"./src/dagre-wrapper/index.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{render:()=>m});var n=r("./node_modules/dagre/index.js"),s=r.n(n),a=r("./node_modules/graphlib/index.js"),i=r.n(a),o=r("./src/dagre-wrapper/markers.js"),l=r("./src/dagre-wrapper/shapes/util.js"),c=r("./src/dagre-wrapper/mermaid-graphlib.js"),d=r("./src/dagre-wrapper/nodes.js"),u=r("./src/dagre-wrapper/clusters.js"),h=r("./src/dagre-wrapper/edges.js"),f=r("./src/logger.js"),p=function e(t,r,n,a){f.log.info("Graph in recursive render: XXX",i().json.write(r),a);var o=r.graph().rankdir;f.log.trace("Dir in recursive render - dir:",o);var p=t.insert("g").attr("class","root");r.nodes()?f.log.info("Recursive render XXX",r.nodes()):f.log.info("No nodes found for",r),r.edges().length>0&&f.log.trace("Recursive edges",r.edge(r.edges()[0]));var m=p.insert("g").attr("class","clusters"),g=p.insert("g").attr("class","edgePaths"),y=p.insert("g").attr("class","edgeLabels"),_=p.insert("g").attr("class","nodes");r.nodes().forEach((function(t){var s=r.node(t);if(void 0!==a){var i=JSON.parse(JSON.stringify(a.clusterData));f.log.info("Setting data for cluster XXX (",t,") ",i,a),r.setNode(a.id,i),r.parent(t)||(f.log.trace("Setting parent",t,a.id),r.setParent(t,a.id,i))}if(f.log.info("(Insert) Node XXX"+t+": "+JSON.stringify(r.node(t))),s&&s.clusterNode){f.log.info("Cluster identified",t,s.width,r.node(t));var u=e(_,s.graph,n,r.node(t)),h=u.elem;(0,l.updateNodeBounds)(s,h),s.diff=u.diff||0,f.log.info("Node bounds (abc123)",t,s,s.width,s.x,s.y),(0,d.setNodeElem)(h,s),f.log.warn("Recursive render complete ",h,s)}else r.children(t).length>0?(f.log.info("Cluster - the non recursive path XXX",t,s.id,s,r),f.log.info((0,c.findNonClusterChild)(s.id,r)),c.clusterDb[s.id]={id:(0,c.findNonClusterChild)(s.id,r),node:s}):(f.log.info("Node - the non recursive path",t,s.id,s),(0,d.insertNode)(_,r.node(t),o))})),r.edges().forEach((function(e){var t=r.edge(e.v,e.w,e.name);f.log.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),f.log.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(r.edge(e))),f.log.info("Fix",c.clusterDb,"ids:",e.v,e.w,"Translateing: ",c.clusterDb[e.v],c.clusterDb[e.w]),(0,h.insertEdgeLabel)(y,t)})),r.edges().forEach((function(e){f.log.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e))})),f.log.info("#############################################"),f.log.info("### Layout ###"),f.log.info("#############################################"),f.log.info(r),s().layout(r),f.log.info("Graph after layout:",i().json.write(r));var b=0;return(0,c.sortNodesByHierarchy)(r).forEach((function(e){var t=r.node(e);f.log.info("Position "+e+": "+JSON.stringify(r.node(e))),f.log.info("Position "+e+": ("+t.x,","+t.y,") width: ",t.width," height: ",t.height),t&&t.clusterNode?(0,d.positionNode)(t):r.children(e).length>0?((0,u.insertCluster)(m,t),c.clusterDb[t.id].node=t):(0,d.positionNode)(t)})),r.edges().forEach((function(e){var t=r.edge(e);f.log.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t),t);var s=(0,h.insertEdge)(g,e,t,c.clusterDb,n,r);(0,h.positionEdgeLabel)(t,s)})),r.nodes().forEach((function(e){var t=r.node(e);f.log.info(e,t.type,t.diff),"group"===t.type&&(b=t.diff)})),{elem:p,diff:b}},m=function(e,t,r,n,s){(0,o.default)(e,r,n,s),(0,d.clear)(),(0,h.clear)(),(0,u.clear)(),(0,c.clear)(),f.log.warn("Graph at first:",i().json.write(t)),(0,c.adjustClustersAndEdges)(t),f.log.warn("Graph after:",i().json.write(t)),p(e,t,n)}},"./src/dagre-wrapper/intersect/index.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r("./src/dagre-wrapper/intersect/intersect-node.js"),s=r.n(n),a=r("./src/dagre-wrapper/intersect/intersect-circle.js"),i=r("./src/dagre-wrapper/intersect/intersect-ellipse.js"),o=r("./src/dagre-wrapper/intersect/intersect-polygon.js"),l=r("./src/dagre-wrapper/intersect/intersect-rect.js");const c={node:s(),circle:a.default,ellipse:i.default,polygon:o.default,rect:l.default}},"./src/dagre-wrapper/intersect/intersect-circle.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r("./src/dagre-wrapper/intersect/intersect-ellipse.js");const s=function(e,t,r){return(0,n.default)(e,t,t,r)}},"./src/dagre-wrapper/intersect/intersect-ellipse.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=function(e,t,r,n){var s=e.x,a=e.y,i=s-n.x,o=a-n.y,l=Math.sqrt(t*t*o*o+r*r*i*i),c=Math.abs(t*r*i/l);n.x{"use strict";function n(e,t){return e*t>0}r.r(t),r.d(t,{default:()=>s});const s=function(e,t,r,s){var a,i,o,l,c,d,u,h,f,p,m,g,y;if(a=t.y-e.y,o=e.x-t.x,c=t.x*e.y-e.x*t.y,f=a*r.x+o*r.y+c,p=a*s.x+o*s.y+c,!(0!==f&&0!==p&&n(f,p)||(i=s.y-r.y,l=r.x-s.x,d=s.x*r.y-r.x*s.y,u=i*e.x+l*e.y+d,h=i*t.x+l*t.y+d,0!==u&&0!==h&&n(u,h)||0==(m=a*l-i*o))))return g=Math.abs(m/2),{x:(y=o*d-l*c)<0?(y-g)/m:(y+g)/m,y:(y=i*c-a*d)<0?(y-g)/m:(y+g)/m}}},"./src/dagre-wrapper/intersect/intersect-node.js":e=>{e.exports=function(e,t){return e.intersect(t)}},"./src/dagre-wrapper/intersect/intersect-polygon.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r("./src/dagre-wrapper/intersect/intersect-line.js");const s=function(e,t,r){var s=e.x,a=e.y,i=[],o=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;"function"==typeof t.forEach?t.forEach((function(e){o=Math.min(o,e.x),l=Math.min(l,e.y)})):(o=Math.min(o,t.x),l=Math.min(l,t.y));for(var c=s-e.width/2-o,d=a-e.height/2-l,u=0;u1&&i.sort((function(e,t){var n=e.x-r.x,s=e.y-r.y,a=Math.sqrt(n*n+s*s),i=t.x-r.x,o=t.y-r.y,l=Math.sqrt(i*i+o*o);return a{"use strict";r.r(t),r.d(t,{default:()=>n});const n=function(e,t){var r,n,s=e.x,a=e.y,i=t.x-s,o=t.y-a,l=e.width/2,c=e.height/2;return Math.abs(o)*l>Math.abs(i)*c?(o<0&&(c=-c),r=0===o?0:c*i/o,n=c):(i<0&&(l=-l),r=l,n=0===i?0:l*o/i),{x:s+r,y:a+n}}},"./src/dagre-wrapper/markers.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r("./src/logger.js"),s={extension:function(e,t,r){n.log.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",t+"-extensionStart").attr("class","marker extension "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:function(e,t){e.append("defs").append("marker").attr("id",t+"-compositionStart").attr("class","marker composition "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:function(e,t){e.append("defs").append("marker").attr("id",t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:function(e,t){e.append("defs").append("marker").attr("id",t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",19).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")},point:function(e,t){e.append("marker").attr("id",t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").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").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:function(e,t){e.append("marker").attr("id",t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:function(e,t){e.append("marker").attr("id",t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:function(e,t){e.append("defs").append("marker").attr("id",t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}};const a=function(e,t,r,n){t.forEach((function(t){s[t](e,r,n)}))}},"./src/dagre-wrapper/mermaid-graphlib.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{adjustClustersAndEdges:()=>g,clear:()=>c,clusterDb:()=>i,extractDecendants:()=>h,extractor:()=>y,findNonClusterChild:()=>p,sortNodesByHierarchy:()=>b,validate:()=>f});var n=r("./src/logger.js"),s=r("./node_modules/graphlib/index.js"),a=r.n(s),i={},o={},l={},c=function(){o={},l={},i={}},d=function(e,t){return n.log.trace("In isDecendant",t," ",e," = ",o[t].indexOf(e)>=0),o[t].indexOf(e)>=0},u=function e(t,r,s,a){n.log.warn("Copying children of ",t,"root",a,"data",r.node(t),a);var i=r.children(t)||[];t!==a&&i.push(t),n.log.warn("Copying (nodes) clusterId",t,"nodes",i),i.forEach((function(i){if(r.children(i).length>0)e(i,r,s,a);else{var l=r.node(i);n.log.info("cp ",i," to ",a," with parent ",t),s.setNode(i,l),a!==r.parent(i)&&(n.log.warn("Setting parent",i,r.parent(i)),s.setParent(i,r.parent(i))),t!==a&&i!==t?(n.log.debug("Setting parent",i,t),s.setParent(i,t)):(n.log.info("In copy ",t,"root",a,"data",r.node(t),a),n.log.debug("Not Setting parent for node=",i,"cluster!==rootId",t!==a,"node!==clusterId",i!==t));var c=r.edges(i);n.log.debug("Copying Edges",c),c.forEach((function(e){n.log.info("Edge",e);var i=r.edge(e.v,e.w,e.name);n.log.info("Edge data",i,a);try{!function(e,t){return n.log.info("Decendants of ",t," is ",o[t]),n.log.info("Edge is ",e),e.v!==t&&e.w!==t&&(o[t]?(n.log.info("Here "),o[t].indexOf(e.v)>=0||!!d(e.v,t)||!!d(e.w,t)||o[t].indexOf(e.w)>=0):(n.log.debug("Tilt, ",t,",not in decendants"),!1))}(e,a)?n.log.info("Skipping copy of edge ",e.v,"--\x3e",e.w," rootId: ",a," clusterId:",t):(n.log.info("Copying as ",e.v,e.w,i,e.name),s.setEdge(e.v,e.w,i,e.name),n.log.info("newGraph edges ",s.edges(),s.edge(s.edges()[0])))}catch(e){n.log.error(e)}}))}n.log.debug("Removing node",i),r.removeNode(i)}))},h=function e(t,r){for(var n=r.children(t),s=[].concat(n),a=0;a0)return n.log.trace("The node ",t[r].v," is part of and edge even though it has children"),!1;if(e.children(t[r].w).length>0)return n.log.trace("The node ",t[r].w," is part of and edge even though it has children"),!1}return!0},p=function e(t,r){n.log.trace("Searching",t);var s=r.children(t);if(n.log.trace("Searching children of id ",t,s),s.length<1)return n.log.trace("This is a valid node",t),t;for(var a=0;a ",i),i}},m=function(e){return i[e]&&i[e].externalConnections&&i[e]?i[e].id:e},g=function(e,t){!e||t>10?n.log.debug("Opting out, no graph "):(n.log.debug("Opting in, graph "),e.nodes().forEach((function(t){e.children(t).length>0&&(n.log.warn("Cluster identified",t," Replacement id in edges: ",p(t,e)),o[t]=h(t,e),i[t]={id:p(t,e),clusterData:e.node(t)})})),e.nodes().forEach((function(t){var r=e.children(t),s=e.edges();r.length>0?(n.log.debug("Cluster identified",t,o),s.forEach((function(e){e.v!==t&&e.w!==t&&d(e.v,t)^d(e.w,t)&&(n.log.warn("Edge: ",e," leaves cluster ",t),n.log.warn("Decendants of XXX ",t,": ",o[t]),i[t].externalConnections=!0)}))):n.log.debug("Not a cluster ",t,o)})),e.edges().forEach((function(t){var r=e.edge(t);n.log.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),n.log.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));var s=t.v,a=t.w;if(n.log.warn("Fix XXX",i,"ids:",t.v,t.w,"Translateing: ",i[t.v]," --- ",i[t.w]),i[t.v]&&i[t.w]&&i[t.v]===i[t.w]){n.log.warn("Fixing and trixing link to self - removing XXX",t.v,t.w,t.name),n.log.warn("Fixing and trixing - removing XXX",t.v,t.w,t.name),s=m(t.v),a=m(t.w),e.removeEdge(t.v,t.w,t.name);var o=t.w+"---"+t.v;e.setNode(o,{domId:o,id:o,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});var l=JSON.parse(JSON.stringify(r)),c=JSON.parse(JSON.stringify(r));l.label="",l.arrowTypeEnd="none",c.label="",l.fromCluster=t.v,c.toCluster=t.v,e.setEdge(s,o,l,t.name+"-cyclic-special"),e.setEdge(o,a,c,t.name+"-cyclic-special")}else(i[t.v]||i[t.w])&&(n.log.warn("Fixing and trixing - removing XXX",t.v,t.w,t.name),s=m(t.v),a=m(t.w),e.removeEdge(t.v,t.w,t.name),s!==t.v&&(r.fromCluster=t.v),a!==t.w&&(r.toCluster=t.w),n.log.warn("Fix Replacing with XXX",s,a,t.name),e.setEdge(s,a,r,t.name))})),n.log.warn("Adjusted Graph",a().json.write(e)),y(e,0),n.log.trace(i))},y=function e(t,r){if(n.log.warn("extractor - ",r,a().json.write(t),t.children("D")),r>10)n.log.error("Bailing out");else{for(var s=t.nodes(),o=!1,l=0;l0}if(o){n.log.debug("Nodes = ",s,r);for(var h=0;h0){n.log.warn("Cluster without external connections, without a parent and with children",f,r);var p="TB"===t.graph().rankdir?"LR":"TB";i[f]&&i[f].clusterData&&i[f].clusterData.dir&&(p=i[f].clusterData.dir,n.log.warn("Fixing dir",i[f].clusterData.dir,p));var m=new(a().Graph)({multigraph:!0,compound:!0}).setGraph({rankdir:p,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));n.log.warn("Old graph before copy",a().json.write(t)),u(f,t,m,f),t.setNode(f,{clusterNode:!0,id:f,clusterData:i[f].clusterData,labelText:i[f].labelText,graph:m}),n.log.warn("New graph after copy node: (",f,")",a().json.write(m)),n.log.debug("Old graph after copy",a().json.write(t))}else n.log.warn("Cluster ** ",f," **not meeting the criteria !externalConnections:",!i[f].externalConnections," no parent: ",!t.parent(f)," children ",t.children(f)&&t.children(f).length>0,t.children("D"),r),n.log.debug(i);else n.log.debug("Not a cluster",f,r)}s=t.nodes(),n.log.warn("New list of nodes",s);for(var g=0;g{"use strict";r.r(t),r.d(t,{clear:()=>b,insertNode:()=>y,positionNode:()=>v,setNodeElem:()=>_});var n=r("./node_modules/d3/src/index.js"),s=r("./src/logger.js"),a=r("./src/dagre-wrapper/shapes/util.js"),i=r("./src/config.js"),o=r("./src/dagre-wrapper/intersect/index.js"),l=r("./src/dagre-wrapper/createLabel.js"),c=r("./src/dagre-wrapper/shapes/note.js"),d=r("./src/diagrams/class/svgDraw.js"),u=r("./src/diagrams/common/common.js");function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function f(e,t,r,n){var a=[],i=function(e){a.push(e),a.push(0)},o=function(e){a.push(0),a.push(e)};t.includes("t")?(s.log.debug("add top border"),i(r)):o(r),t.includes("r")?(s.log.debug("add right border"),i(n)):o(n),t.includes("b")?(s.log.debug("add bottom border"),i(r)):o(r),t.includes("l")?(s.log.debug("add left border"),i(n)):o(n),e.attr("stroke-dasharray",a.join(" "))}var p=function(e,t,r){var n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),s=70,i=10;"LR"===r&&(s=10,i=70);var l=n.append("rect").attr("x",-1*s/2).attr("y",-1*i/2).attr("width",s).attr("height",i).attr("class","fork-join");return(0,a.updateNodeBounds)(t,l),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(e){return o.default.rect(t,e)},n},m={question:function(e,t){var r=(0,a.labelHelper)(e,t,void 0,!0),n=r.shapeSvg,i=r.bbox,l=i.width+t.padding+(i.height+t.padding),c=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];s.log.info("Question main (Circle)");var d=(0,a.insertPolygonShape)(n,l,l,c);return d.attr("style",t.style),(0,a.updateNodeBounds)(t,d),t.intersect=function(e){return s.log.warn("Intersect called"),o.default.polygon(t,c,e)},n},rect:function(e,t){var r=(0,a.labelHelper)(e,t,"node "+t.classes,!0),n=r.shapeSvg,i=r.bbox,l=r.halfPadding;s.log.trace("Classes = ",t.classes);var c=n.insert("rect",":first-child"),d=i.width+t.padding,u=i.height+t.padding;if(c.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",-i.width/2-l).attr("y",-i.height/2-l).attr("width",d).attr("height",u),t.props){var h=new Set(Object.keys(t.props));t.props.borders&&(f(c,t.props.borders,d,u),h.delete("borders")),h.forEach((function(e){s.log.warn("Unknown node property ".concat(e))}))}return(0,a.updateNodeBounds)(t,c),t.intersect=function(e){return o.default.rect(t,e)},n},labelRect:function(e,t){var r=(0,a.labelHelper)(e,t,"label",!0),n=r.shapeSvg;r.bbox,r.halfPadding,s.log.trace("Classes = ",t.classes);var i=n.insert("rect",":first-child");if(i.attr("width",0).attr("height",0),n.attr("class","label edgeLabel"),t.props){var l=new Set(Object.keys(t.props));t.props.borders&&(f(i,t.props.borders,0,0),l.delete("borders")),l.forEach((function(e){s.log.warn("Unknown node property ".concat(e))}))}return(0,a.updateNodeBounds)(t,i),t.intersect=function(e){return o.default.rect(t,e)},n},rectWithTitle:function(e,t){var r;r=t.classes?"node "+t.classes:"node default";var c,d=e.insert("g").attr("class",r).attr("id",t.domId||t.id),f=d.insert("rect",":first-child"),p=d.insert("line"),m=d.insert("g").attr("class","label"),g=t.labelText.flat?t.labelText.flat():t.labelText;c="object"===h(g)?g[0]:g,s.log.info("Label text abc79",c,g,"object"===h(g));var y=m.node().appendChild((0,l.default)(c,t.labelStyle,!0,!0)),_={width:0,height:0};if((0,u.evaluate)((0,i.getConfig)().flowchart.htmlLabels)){var b=y.children[0],v=(0,n.select)(y);_=b.getBoundingClientRect(),v.attr("width",_.width),v.attr("height",_.height)}s.log.info("Text 2",g);var x=g.slice(1,g.length),k=y.getBBox(),j=m.node().appendChild((0,l.default)(x.join?x.join("
"):x,t.labelStyle,!0,!0));if((0,u.evaluate)((0,i.getConfig)().flowchart.htmlLabels)){var w=j.children[0],C=(0,n.select)(j);_=w.getBoundingClientRect(),C.attr("width",_.width),C.attr("height",_.height)}var T=t.padding/2;return(0,n.select)(j).attr("transform","translate( "+(_.width>k.width?0:(k.width-_.width)/2)+", "+(k.height+T+5)+")"),(0,n.select)(y).attr("transform","translate( "+(_.widtht.height/2-c)){var s=c*c*(1-n*n/(l*l));0!=s&&(s=Math.sqrt(s)),s=c-s,e.y-t.y>0&&(s=-s),r.y+=s}return r},n},start:function(e,t){var r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=r.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),(0,a.updateNodeBounds)(t,n),t.intersect=function(e){return o.default.circle(t,7,e)},r},end:function(e,t){var r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=r.insert("circle",":first-child"),s=r.insert("circle",":first-child");return s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),n.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),(0,a.updateNodeBounds)(t,s),t.intersect=function(e){return o.default.circle(t,7,e)},r},note:c.default,subroutine:function(e,t){var r=(0,a.labelHelper)(e,t,void 0,!0),n=r.shapeSvg,s=r.bbox,i=s.width+t.padding,l=s.height+t.padding,c=[{x:0,y:0},{x:i,y:0},{x:i,y:-l},{x:0,y:-l},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-l},{x:-8,y:-l},{x:-8,y:0}],d=(0,a.insertPolygonShape)(n,i,l,c);return d.attr("style",t.style),(0,a.updateNodeBounds)(t,d),t.intersect=function(e){return o.default.polygon(t,c,e)},n},fork:p,join:p,class_box:function(e,t){var r,s=t.padding/2;r=t.classes?"node "+t.classes:"node default";var c=e.insert("g").attr("class",r).attr("id",t.domId||t.id),h=c.insert("rect",":first-child"),f=c.insert("line"),p=c.insert("line"),m=0,g=4,y=c.insert("g").attr("class","label"),_=0,b=t.classData.annotations&&t.classData.annotations[0],v=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",x=y.node().appendChild((0,l.default)(v,t.labelStyle,!0,!0)),k=x.getBBox();if((0,u.evaluate)((0,i.getConfig)().flowchart.htmlLabels)){var j=x.children[0],w=(0,n.select)(x);k=j.getBoundingClientRect(),w.attr("width",k.width),w.attr("height",k.height)}t.classData.annotations[0]&&(g+=k.height+4,m+=k.width);var C=t.classData.id;void 0!==t.classData.type&&""!==t.classData.type&&((0,i.getConfig)().flowchart.htmlLabels?C+="<"+t.classData.type+">":C+="<"+t.classData.type+">");var T=y.node().appendChild((0,l.default)(C,t.labelStyle,!0,!0));(0,n.select)(T).attr("class","classTitle");var E=T.getBBox();if((0,u.evaluate)((0,i.getConfig)().flowchart.htmlLabels)){var S=T.children[0],A=(0,n.select)(T);E=S.getBoundingClientRect(),A.attr("width",E.width),A.attr("height",E.height)}g+=E.height+4,E.width>m&&(m=E.width);var M=[];t.classData.members.forEach((function(e){var r=(0,d.parseMember)(e),s=r.displayText;(0,i.getConfig)().flowchart.htmlLabels&&(s=s.replace(//g,">"));var a=y.node().appendChild((0,l.default)(s,r.cssStyle?r.cssStyle:t.labelStyle,!0,!0)),o=a.getBBox();if((0,u.evaluate)((0,i.getConfig)().flowchart.htmlLabels)){var c=a.children[0],h=(0,n.select)(a);o=c.getBoundingClientRect(),h.attr("width",o.width),h.attr("height",o.height)}o.width>m&&(m=o.width),g+=o.height+4,M.push(a)})),g+=8;var D=[];if(t.classData.methods.forEach((function(e){var r=(0,d.parseMember)(e),s=r.displayText;(0,i.getConfig)().flowchart.htmlLabels&&(s=s.replace(//g,">"));var a=y.node().appendChild((0,l.default)(s,r.cssStyle?r.cssStyle:t.labelStyle,!0,!0)),o=a.getBBox();if((0,u.evaluate)((0,i.getConfig)().flowchart.htmlLabels)){var c=a.children[0],h=(0,n.select)(a);o=c.getBoundingClientRect(),h.attr("width",o.width),h.attr("height",o.height)}o.width>m&&(m=o.width),g+=o.height+4,D.push(a)})),g+=8,b){var O=(m-k.width)/2;(0,n.select)(x).attr("transform","translate( "+(-1*m/2+O)+", "+-1*g/2+")"),_=k.height+4}var B=(m-E.width)/2;return(0,n.select)(T).attr("transform","translate( "+(-1*m/2+B)+", "+(-1*g/2+_)+")"),_+=E.height+4,f.attr("class","divider").attr("x1",-m/2-s).attr("x2",m/2+s).attr("y1",-g/2-s+8+_).attr("y2",-g/2-s+8+_),_+=8,M.forEach((function(e){(0,n.select)(e).attr("transform","translate( "+-m/2+", "+(-1*g/2+_+4)+")"),_+=E.height+4})),_+=8,p.attr("class","divider").attr("x1",-m/2-s).attr("x2",m/2+s).attr("y1",-g/2-s+8+_).attr("y2",-g/2-s+8+_),_+=8,D.forEach((function(e){(0,n.select)(e).attr("transform","translate( "+-m/2+", "+(-1*g/2+_)+")"),_+=E.height+4})),h.attr("class","outer title-state").attr("x",-m/2-s).attr("y",-g/2-s).attr("width",m+t.padding).attr("height",g+t.padding),(0,a.updateNodeBounds)(t,h),t.intersect=function(e){return o.default.rect(t,e)},c}},g={},y=function(e,t,r){var n,s,a;t.link?("sandbox"===(0,i.getConfig)().securityLevel?a="_top":t.linkTarget&&(a=t.linkTarget||"_blank"),n=e.insert("svg:a").attr("xlink:href",t.link).attr("target",a),s=m[t.shape](n,t,r)):n=s=m[t.shape](e,t,r),t.tooltip&&s.attr("title",t.tooltip),t.class&&s.attr("class","node default "+t.class),g[t.id]=n,t.haveCallback&&g[t.id].attr("class",g[t.id].attr("class")+" clickable")},_=function(e,t){g[t.id]=e},b=function(){g={}},v=function(e){var t=g[e.id];s.log.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");var r=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+r-e.width/2)+", "+(e.y-e.height/2-8)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),r}},"./src/dagre-wrapper/shapes/note.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r("./src/dagre-wrapper/shapes/util.js"),s=r("./src/logger.js"),a=r("./src/dagre-wrapper/intersect/index.js");const i=function(e,t){var r=(0,n.labelHelper)(e,t,"node "+t.classes,!0),i=r.shapeSvg,o=r.bbox,l=r.halfPadding;s.log.info("Classes = ",t.classes);var c=i.insert("rect",":first-child");return c.attr("rx",t.rx).attr("ry",t.ry).attr("x",-o.width/2-l).attr("y",-o.height/2-l).attr("width",o.width+t.padding).attr("height",o.height+t.padding),(0,n.updateNodeBounds)(t,c),t.intersect=function(e){return a.default.rect(t,e)},i}},"./src/dagre-wrapper/shapes/util.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{insertPolygonShape:()=>d,labelHelper:()=>l,updateNodeBounds:()=>c});var n=r("./src/dagre-wrapper/createLabel.js"),s=r("./src/config.js"),a=r("./src/mermaidAPI.js"),i=r("./node_modules/d3/src/index.js"),o=r("./src/diagrams/common/common.js"),l=function(e,t,r,l){var c;c=r||"node default";var d=e.insert("g").attr("class",c).attr("id",t.domId||t.id),u=d.insert("g").attr("class","label").attr("style",t.labelStyle),h="string"==typeof t.labelText?t.labelText:t.labelText[0],f=u.node().appendChild((0,n.default)((0,o.sanitizeText)((0,a.decodeEntities)(h),(0,s.getConfig)()),t.labelStyle,!1,l)),p=f.getBBox();if((0,o.evaluate)((0,s.getConfig)().flowchart.htmlLabels)){var m=f.children[0],g=(0,i.select)(f);p=m.getBoundingClientRect(),g.attr("width",p.width),g.attr("height",p.height)}var y=t.padding/2;return u.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),{shapeSvg:d,bbox:p,halfPadding:y,label:u}},c=function(e,t){var r=t.node().getBBox();e.width=r.width,e.height=r.height};function d(e,t,r,n){return e.insert("polygon",":first-child").attr("points",n.map((function(e){return e.x+","+e.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}},"./src/defaultConfig.js":(e,t,r)=>{"use strict";function n(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);ro,default:()=>l});var i={theme:"default",themeVariables:r("./src/themes/index.js").default.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-d3"},sequence:{hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{arrowMarkerAbsolute:!1,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},state:{dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0},requirement:{useWidth:void 0,useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},gitGraph:{diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0},c4:{useWidth:void 0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,useMaxWidth:!0,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"}};i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,i.gitGraph.arrowMarkerAbsolute=i.arrowMarkerAbsolute;var o=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).reduce((function(s,i){return Array.isArray(t[i])?s:"object"===a(t[i])&&null!==t[i]?[].concat(n(s),[r+i],n(e(t[i],""))):[].concat(n(s),[r+i])}),[])}(i,"");const l=i},"./src/diagrams/c4/c4Db.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{ARROWTYPE:()=>X,LINETYPE:()=>V,PLACEMENT:()=>K,addComponent:()=>E,addContainer:()=>T,addContainerBoundary:()=>A,addDeploymentNode:()=>M,addPersonOrSystem:()=>C,addPersonOrSystemBoundary:()=>S,addRel:()=>w,autoWrap:()=>$,clear:()=>H,default:()=>Q,getBoundarys:()=>Y,getC4BoundaryInRow:()=>L,getC4Shape:()=>z,getC4ShapeArray:()=>P,getC4ShapeInRow:()=>N,getC4ShapeKeys:()=>q,getC4Type:()=>x,getCurrentBoundaryParse:()=>R,getParentBoundaryParse:()=>F,getRels:()=>U,getTitle:()=>W,parseDirective:()=>j,popBoundaryParseStack:()=>D,setC4Type:()=>k,setTitle:()=>Z,setWrap:()=>G,updateElStyle:()=>O,updateLayoutConfig:()=>I,updateRelStyle:()=>B});var n=r("./src/mermaidAPI.js"),s=r("./src/config.js"),a=r("./src/diagrams/common/common.js"),i=r("./src/commonDb.js");function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,s,a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){o=!0,s=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw s}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=1&&(b=n),s>=1&&(v=s)},N=function(){return b},L=function(){return v},R=function(){return f},F=function(){return p},P=function(e){return null==e?u:u.filter((function(t){return t.parentBoundary===e}))},z=function(e){return u.find((function(t){return t.alias===e}))},q=function(e){return Object.keys(P(e))},Y=function(e){return null==e?m:m.filter((function(t){return t.parentBoundary===e}))},U=function(){return g},W=function(){return y},G=function(e){_=e},$=function(){return _},H=function(){u=[],m=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],p="",f="global",h=[""],g=[],h=[""],y="",_=!1,b=4,v=2},V={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},X={FILLED:0,OPEN:1},K={LEFTOF:0,RIGHTOF:1,OVER:2},Z=function(e){var t=(0,a.sanitizeText)(e,s.getConfig());y=t};const Q={addPersonOrSystem:C,addPersonOrSystemBoundary:S,addContainer:T,addContainerBoundary:A,addComponent:E,addDeploymentNode:M,popBoundaryParseStack:D,addRel:w,updateElStyle:O,updateRelStyle:B,updateLayoutConfig:I,autoWrap:$,setWrap:G,getC4ShapeArray:P,getC4Shape:z,getC4ShapeKeys:q,getBoundarys:Y,getCurrentBoundaryParse:R,getParentBoundaryParse:F,getRels:U,getTitle:W,getC4Type:x,getC4ShapeInRow:N,getC4BoundaryInRow:L,setAccTitle:i.setAccTitle,getAccTitle:i.getAccTitle,getAccDescription:i.getAccDescription,setAccDescription:i.setAccDescription,parseDirective:j,getConfig:function(){return s.getConfig().c4},clear:H,LINETYPE:V,ARROWTYPE:X,PLACEMENT:K,setTitle:Z,setC4Type:k}},"./src/diagrams/c4/c4Renderer.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>I,draw:()=>B,drawBoundary:()=>T,drawC4ShapeArray:()=>E,drawRels:()=>D,setConf:()=>k});var n=r("./node_modules/d3/src/index.js"),s=r("./src/diagrams/c4/svgDraw.js"),a=r("./src/logger.js"),i=r("./src/diagrams/c4/parser/c4Diagram.jison"),o=r("./src/diagrams/common/common.js"),l=r("./src/diagrams/c4/c4Db.js"),c=r("./src/config.js"),d=r("./src/utils.js"),u=r("./src/accessibility.js");function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=this.data.widthLimit||r>=this.data.widthLimit||this.nextData.cnt>_)&&(t=this.nextData.startx+e.margin+v.nextLinePaddingX,n=this.nextData.stopy+2*e.margin,this.nextData.stopx=r=t+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=s=n+e.height,this.nextData.cnt=1),e.x=t,e.y=n,this.updateVal(this.data,"startx",t,Math.min),this.updateVal(this.data,"starty",n,Math.min),this.updateVal(this.data,"stopx",r,Math.max),this.updateVal(this.data,"stopy",s,Math.max),this.updateVal(this.nextData,"startx",t,Math.min),this.updateVal(this.nextData,"starty",n,Math.min),this.updateVal(this.nextData,"stopx",r,Math.max),this.updateVal(this.nextData,"stopy",s,Math.max)}},{key:"init",value:function(){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},k(i.parser.yy.getConfig())}},{key:"bumpLastMargin",value:function(e){this.data.stopx+=e,this.data.stopy+=e}}]),e}(),k=function(e){(0,d.assignWithDepth)(v,e),e.fontFamily&&(v.personFontFamily=v.systemFontFamily=v.messageFontFamily=e.fontFamily),e.fontSize&&(v.personFontSize=v.systemFontSize=v.messageFontSize=e.fontSize),e.fontWeight&&(v.personFontWeight=v.systemFontWeight=v.messageFontWeight=e.fontWeight)},j=function(e,t){return{fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}},w=function(e){return{fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}};function C(e,t,r,n,s){if(!t[e].width)if(r)t[e].text=(0,d.wrapLabel)(t[e].text,s,n),t[e].textLines=t[e].text.split(o.default.lineBreakRegex).length,t[e].width=s,t[e].height=(0,d.calculateTextHeight)(t[e].text,n);else{var a=t[e].text.split(o.default.lineBreakRegex);t[e].textLines=a.length;var i=0;t[e].height=0,t[e].width=0;for(var l=0;l>",l),o.typeC4Shape.height=l.fontSize+2,o.typeC4Shape.Y=v.c4ShapePadding,a=o.typeC4Shape.Y+o.typeC4Shape.height-4,o.image={width:0,height:0,Y:0},o.typeC4Shape.text){case"person":case"external_person":o.image.width=48,o.image.height=48,o.image.Y=a,a=o.image.Y+o.image.height}o.sprite&&(o.image.width=48,o.image.height=48,o.image.Y=a,a=o.image.Y+o.image.height);var c=o.wrap&&v.wrap,u=v.width-2*v.c4ShapePadding,h=j(v,o.typeC4Shape.text);h.fontSize=h.fontSize+2,h.fontWeight="bold",C("label",o,c,h,u),o.label.Y=a+8,a=o.label.Y+o.label.height,o.type&&""!==o.type.text?(o.type.text="["+o.type.text+"]",C("type",o,c,j(v,o.typeC4Shape.text),u),o.type.Y=a+5,a=o.type.Y+o.type.height):o.techn&&""!==o.techn.text&&(o.techn.text="["+o.techn.text+"]",C("techn",o,c,j(v,o.techn.text),u),o.techn.Y=a+5,a=o.techn.Y+o.techn.height);var f=a,p=o.label.width;o.descr&&""!==o.descr.text&&(C("descr",o,c,j(v,o.typeC4Shape.text),u),o.descr.Y=a+20,a=o.descr.Y+o.descr.height,p=Math.max(o.label.width,o.descr.width),f=a-5*o.descr.textLines),p+=v.c4ShapePadding,o.width=Math.max(o.width||v.width,p,v.width),o.height=Math.max(o.height||v.height,f,v.height),o.margin=o.margin||v.c4ShapeMargin,e.insert(o),s.default.drawC4Shape(t,o,v)}e.bumpLastMargin(v.c4ShapeMargin)},S=m((function e(t,r){f(this,e),this.x=t,this.y=r})),A=function(e,t){var r=e.x,n=e.y,s=t.x,a=t.y,i=r+e.width/2,o=n+e.height/2,l=Math.abs(r-s),c=Math.abs(n-a),d=c/l,u=e.height/e.width,h=null;return n==a&&rs?h=new S(r,o):r==s&&na&&(h=new S(i,n)),r>s&&n=d?new S(r,o+d*e.width/2):new S(i-l/c*e.height/2,n+e.height):r=d?new S(r+e.width,o+d*e.width/2):new S(i+l/c*e.height/2,n+e.height):ra?h=u>=d?new S(r+e.width,o-d*e.width/2):new S(i+e.height/2*l/c,n):r>s&&n>a&&(h=u>=d?new S(r,o-e.width/2*d):new S(i-e.height/2*l/c,n)),h},M=function(e,t){var r={x:0,y:0};r.x=t.x+t.width/2,r.y=t.y+t.height/2;var n=A(e,r);return r.x=e.x+e.width/2,r.y=e.y+e.height/2,{startPoint:n,endPoint:A(t,r)}},D=function(e,t,r){var n,a,o=0,l=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,s=function(){};return{s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw a}}}}(t);try{for(l.s();!(n=l.n()).done;){var c=n.value;o+=1;var u=c.wrap&&v.wrap,f={fontFamily:(a=v).messageFontFamily,fontSize:a.messageFontSize,fontWeight:a.messageFontWeight};"C4Dynamic"===i.parser.yy.getC4Type()&&(c.label.text=o+": "+c.label.text);var p=(0,d.calculateTextWidth)(c.label.text,f);C("label",c,u,f,p),c.techn&&""!==c.techn.text&&C("techn",c,u,f,p=(0,d.calculateTextWidth)(c.techn.text,f)),c.descr&&""!==c.descr.text&&C("descr",c,u,f,p=(0,d.calculateTextWidth)(c.descr.text,f));var m=r(c.from),g=r(c.to),y=M(m,g);c.startPoint=y.startPoint,c.endPoint=y.endPoint}}catch(e){l.e(e)}finally{l.f()}s.default.drawRels(e,t,v)};function O(e,t,r,n){var s=new x;s.data.widthLimit=r.data.widthLimit/Math.min(b,n.length);for(var a=0;a0&&E(s,e,_,k),t=o.alias;var j=i.parser.yy.getBoundarys(t);j.length>0&&O(e,t,s,j),"global"!==o.alias&&T(e,o,s),r.data.stopy=Math.max(s.data.stopy+v.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(s.data.stopx+v.c4ShapeMargin,r.data.stopx),g=Math.max(g,r.data.stopx),y=Math.max(y,r.data.stopy)}}var B=function(e,t){v=c.getConfig().c4;var r,o=c.getConfig().securityLevel;"sandbox"===o&&(r=(0,n.select)("#i"+t));var l="sandbox"===o?(0,n.select)(r.nodes()[0].contentDocument.body):(0,n.select)("body"),h=("sandbox"===o?r.nodes()[0].contentDocument:document,i.parser.yy);i.parser.yy.clear(),i.parser.yy.setWrap(v.wrap),i.parser.parse(e+"\n"),_=h.getC4ShapeInRow(),b=h.getC4BoundaryInRow(),a.log.debug("C:".concat(JSON.stringify(v,null,2)));var f="sandbox"===o?l.select('[id="'.concat(t,'"]')):(0,n.select)('[id="'.concat(t,'"]'));s.default.insertComputerIcon(f),s.default.insertDatabaseIcon(f),s.default.insertClockIcon(f);var p=new x;p.setData(v.diagramMarginX,v.diagramMarginX,v.diagramMarginY,v.diagramMarginY),p.data.widthLimit=screen.availWidth,g=v.diagramMarginX,y=v.diagramMarginY;var m=i.parser.yy.getTitle();i.parser.yy.getC4Type(),O(f,"",p,i.parser.yy.getBoundarys("")),s.default.insertArrowHead(f),s.default.insertArrowEnd(f),s.default.insertArrowCrossHead(f),s.default.insertArrowFilledHead(f),D(f,i.parser.yy.getRels(),i.parser.yy.getC4Shape),p.data.stopx=g,p.data.stopy=y;var k=p.data,j=k.stopy-k.starty+2*v.diagramMarginY,w=k.stopx-k.startx+2*v.diagramMarginX;m&&f.append("text").text(m).attr("x",(k.stopx-k.startx)/2-4*v.diagramMarginX).attr("y",k.starty+v.diagramMarginY),(0,d.configureSvgSize)(f,j,w,v.useMaxWidth);var C=m?60:0;f.attr("viewBox",k.startx-v.diagramMarginX+" -"+(v.diagramMarginY+C)+" "+w+" "+(j+C)),(0,u.default)(i.parser.yy,f,t),a.log.debug("models:",k)};const I={drawPersonOrSystemArray:E,drawBoundary:T,setConf:k,draw:B}},"./src/diagrams/c4/styles.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=function(e){return".person {\n stroke: ".concat(e.personBorder,";\n fill: ").concat(e.personBkg,";\n }\n")}},"./src/diagrams/c4/svgDraw.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>C,drawC4Shape:()=>h,drawEmbeddedImage:()=>l,drawImage:()=>o,drawLabel:()=>d,drawRect:()=>i,drawRels:()=>u,drawText:()=>c,getNoteRect:()=>k,getTextObj:()=>x,insertArrowCrossHead:()=>v,insertArrowEnd:()=>y,insertArrowFilledHead:()=>_,insertArrowHead:()=>g,insertClockIcon:()=>m,insertComputerIcon:()=>p,insertDatabaseIcon:()=>f,insertDynamicNumber:()=>b});var n=r("./src/diagrams/common/common.js"),s=r("./node_modules/@braintree/sanitize-url/dist/index.js");function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0)switch(t.valign){case"top":case"start":l=function(){return Math.round(t.y+t.textMargin)};break;case"middle":case"center":l=function(){return Math.round(t.y+(r+s+t.textMargin)/2)};break;case"bottom":case"end":l=function(){return Math.round(t.y+(r+s+2*t.textMargin)-t.textMargin)}}if(void 0!==t.anchor&&void 0!==t.textMargin&&void 0!==t.width)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="text-after-edge",t.alignmentBaseline="middle";break;case"middle":case"center":t.x=Math.round(t.x+t.width/2),t.anchor="middle",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"right":case"end":t.x=Math.round(t.x+t.width-t.textMargin),t.anchor="end",t.dominantBaseline="text-before-edge",t.alignmentBaseline="middle"}for(var c=0;c0&&(s+=(u._groups||u)[0][0].getBBox().height,r=s),i.push(u)}return i},d=function(e,t){var r,n,s,a,i=e.append("polygon");return i.attr("points",(r=t.x)+","+(n=t.y)+" "+(r+(s=t.width))+","+n+" "+(r+s)+","+(n+(a=t.height)-7)+" "+(r+s-8.4)+","+(n+a)+" "+r+","+(n+a)),i.attr("class","labelBox"),t.y=t.y+t.height/2,c(e,t),i},u=function(e,t,r){var n,s=e.append("g"),i=0,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,s=function(){};return{s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw i}}}}(t);try{for(o.s();!(n=o.n()).done;){var l=n.value,c=l.textColor?l.textColor:"#444444",d=l.lineColor?l.lineColor:"#444444",u=l.offsetX?parseInt(l.offsetX):0,h=l.offsetY?parseInt(l.offsetY):0;if(0===i){var f=s.append("line");f.attr("x1",l.startPoint.x),f.attr("y1",l.startPoint.y),f.attr("x2",l.endPoint.x),f.attr("y2",l.endPoint.y),f.attr("stroke-width","1"),f.attr("stroke",d),f.style("fill","none"),"rel_b"!==l.type&&f.attr("marker-end","url(#arrowhead)"),"birel"!==l.type&&"rel_b"!==l.type||f.attr("marker-start","url(#arrowend)"),i=-1}else{var p=s.append("path");p.attr("fill","none").attr("stroke-width","1").attr("stroke",d).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",l.startPoint.x).replaceAll("starty",l.startPoint.y).replaceAll("controlx",l.startPoint.x+(l.endPoint.x-l.startPoint.x)/2-(l.endPoint.x-l.startPoint.x)/4).replaceAll("controly",l.startPoint.y+(l.endPoint.y-l.startPoint.y)/2).replaceAll("stopx",l.endPoint.x).replaceAll("stopy",l.endPoint.y)),"rel_b"!==l.type&&p.attr("marker-end","url(#arrowhead)"),"birel"!==l.type&&"rel_b"!==l.type||p.attr("marker-start","url(#arrowend)")}var m=r.messageFont();w(r)(l.label.text,s,Math.min(l.startPoint.x,l.endPoint.x)+Math.abs(l.endPoint.x-l.startPoint.x)/2+u,Math.min(l.startPoint.y,l.endPoint.y)+Math.abs(l.endPoint.y-l.startPoint.y)/2+h,l.label.width,l.label.height,{fill:c},m),l.techn&&""!==l.techn.text&&(m=r.messageFont(),w(r)("["+l.techn.text+"]",s,Math.min(l.startPoint.x,l.endPoint.x)+Math.abs(l.endPoint.x-l.startPoint.x)/2+u,Math.min(l.startPoint.y,l.endPoint.y)+Math.abs(l.endPoint.y-l.startPoint.y)/2+r.messageFontSize+5+h,Math.max(l.label.width,l.techn.width),l.techn.height,{fill:c,"font-style":"italic"},m))}}catch(e){o.e(e)}finally{o.f()}},h=function(e,t,r){var n=t.bgColor?t.bgColor:r[t.typeC4Shape.text+"_bg_color"],s=t.borderColor?t.borderColor:r[t.typeC4Shape.text+"_border_color"],a=t.fontColor?t.fontColor:"#FFFFFF",l="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":l="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":l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}var c=e.append("g");c.attr("class","person-man");var d=k();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":d.x=t.x,d.y=t.y,d.fill=n,d.width=t.width,d.height=t.height,d.style="stroke:"+s+";stroke-width:0.5;",d.rx=2.5,d.ry=2.5,i(c,d);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",n).attr("stroke-width","0.5").attr("stroke",s).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",s).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",n).attr("stroke-width","0.5").attr("stroke",s).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",s).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))}var u=j(r,t.typeC4Shape.text);switch(c.append("text").attr("fill",a).attr("font-family",u.fontFamily).attr("font-size",u.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":o(c,48,48,t.x+t.width/2-24,t.y+t.image.Y,l)}var h=r[t.typeC4Shape.text+"Font"]();return h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=a,w(r)(t.label.text,c,t.x,t.y+t.label.Y,t.width,t.height,{fill:a},h),(h=r[t.typeC4Shape.text+"Font"]()).fontColor=a,t.thchn&&""!==t.thchn.text?w(r)(t.thchn.text,c,t.x,t.y+t.thchn.Y,t.width,t.height,{fill:a,"font-style":"italic"},h):t.type&&""!==t.type.text&&w(r)(t.type.text,c,t.x,t.y+t.type.Y,t.width,t.height,{fill:a,"font-style":"italic"},h),t.descr&&""!==t.descr.text&&((h=r.personFont()).fontColor=a,w(r)(t.descr.text,c,t.x,t.y+t.descr.Y,t.width,t.height,{fill:a},h)),t.height},f=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")},p=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")},m=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")},g=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")},y=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")},_=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")},b=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)},v=function(e){var 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")},x=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},k=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},j=function(e,t){return{fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}},w=function(){function e(e,t,r,n,a,i,o){s(t.append("text").attr("x",r+a/2).attr("y",n+i/2+5).style("text-anchor","middle").text(e),o)}function t(e,t,r,a,i,o,l,c){for(var d=c.fontSize,u=c.fontFamily,h=c.fontWeight,f=e.split(n.default.lineBreakRegex),p=0;p{"use strict";r.r(t),r.d(t,{addAnnotation:()=>T,addClass:()=>b,addMember:()=>E,addMembers:()=>S,addRelation:()=>C,bindFunctions:()=>I,cleanupLabel:()=>A,clear:()=>x,default:()=>P,getClass:()=>k,getClasses:()=>j,getRelations:()=>w,lineType:()=>N,lookUpDomId:()=>v,parseDirective:()=>y,relationType:()=>L,setClickEvent:()=>O,setCssClass:()=>M,setLink:()=>D});var n=r("./node_modules/d3/src/index.js"),s=r("./src/logger.js"),a=r("./src/config.js"),i=r("./src/diagrams/common/common.js"),o=r("./src/utils.js"),l=r("./src/mermaidAPI.js"),c=r("./src/commonDb.js");function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0){var n=e.split("~");r=n[0],t=i.default.sanitizeText(n[1],a.getConfig())}return{className:r,type:t}},b=function(e){var t=_(e);void 0===f[t.className]&&(f[t.className]={id:t.className,type:t.type,cssClasses:[],methods:[],members:[],annotations:[],domId:u+t.className+"-"+p},p++)},v=function(e){for(var t=Object.keys(f),r=0;r>")?n.annotations.push(g(s.substring(2,s.length-2))):s.indexOf(")")>0?n.methods.push(g(s)):s&&n.members.push(g(s))}},S=function(e,t){Array.isArray(t)&&(t.reverse(),t.forEach((function(t){return E(e,t)})))},A=function(e){return":"===e.substring(0,1)?i.default.sanitizeText(e.substr(1).trim(),a.getConfig()):g(e.trim())},M=function(e,t){e.split(",").forEach((function(e){var r=e;e[0].match(/\d/)&&(r=u+r),void 0!==f[r]&&f[r].cssClasses.push(t)}))},D=function(e,t,r){var n=a.getConfig();e.split(",").forEach((function(e){var s=e;e[0].match(/\d/)&&(s=u+s),void 0!==f[s]&&(f[s].link=o.default.formatUrl(t,n),"sandbox"===n.securityLevel?f[s].linkTarget="_top":f[s].linkTarget="string"==typeof r?g(r):"_blank")})),M(e,"clickable")},O=function(e,t,r){e.split(",").forEach((function(e){B(e,t,r),f[e].haveCallback=!0})),M(e,"clickable")},B=function(e,t,r){var n=a.getConfig(),s=e,i=v(s);if("loose"===n.securityLevel&&void 0!==t&&void 0!==f[s]){var l=[];if("string"==typeof r){l=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var c=0;c{"use strict";r.r(t),r.d(t,{addClasses:()=>m,addRelations:()=>g,default:()=>v,draw:()=>_,setConf:()=>y});var n=r("./node_modules/d3/src/index.js"),s=(r("./node_modules/dagre/index.js"),r("./node_modules/graphlib/index.js")),a=r.n(s),i=r("./src/logger.js"),o=r("./src/diagrams/class/classDb.js"),l=r("./src/diagrams/class/parser/classDiagram.jison"),c=r("./src/config.js"),d=r("./src/dagre-wrapper/index.js"),u=r("./src/utils.js"),h=r("./src/diagrams/common/common.js"),f=r("./src/accessibility.js");l.parser.yy=o.default;var p={dividerMargin:10,padding:5,textHeight:10},m=function(e,t){var r=Object.keys(e);i.log.info("keys:",r),i.log.info(e),r.forEach((function(r){var n=e[r],s="";n.cssClasses.length>0&&(s=s+" "+n.cssClasses.join(" "));var a,o,l={labelStyle:""},d=void 0!==n.text?n.text:n.id;n.type,o="class_box",t.setNode(n.id,{labelStyle:l.labelStyle,shape:o,labelText:(a=d,h.default.sanitizeText(a,(0,c.getConfig)())),classData:n,rx:0,ry:0,class:s,style:l.style,id:n.id,domId:n.domId,haveCallback:n.haveCallback,link:n.link,width:"group"===n.type?500:void 0,type:n.type,padding:(0,c.getConfig)().flowchart.padding}),i.log.info("setNode",{labelStyle:l.labelStyle,shape:o,labelText:d,rx:0,ry:0,class:s,style:l.style,id:n.id,width:"group"===n.type?500:void 0,type:n.type,padding:(0,c.getConfig)().flowchart.padding})}))},g=function(e,t){var r=0;e.forEach((function(s){r++;var a={classes:"relation"};a.pattern=1==s.relation.lineType?"dashed":"solid",a.id="id"+r,"arrow_open"===s.type?a.arrowhead="none":a.arrowhead="normal",i.log.info(a,s),a.startLabelRight="none"===s.relationTitle1?"":s.relationTitle1,a.endLabelLeft="none"===s.relationTitle2?"":s.relationTitle2,a.arrowTypeStart=b(s.relation.type1),a.arrowTypeEnd=b(s.relation.type2);var o="",l="";if(void 0!==s.style){var d=(0,u.getStylesFromArray)(s.style);o=d.style,l=d.labelStyle}else o="fill:none";a.style=o,a.labelStyle=l,void 0!==s.interpolate?a.curve=(0,u.interpolateToCurve)(s.interpolate,n.curveLinear):void 0!==e.defaultInterpolate?a.curve=(0,u.interpolateToCurve)(e.defaultInterpolate,n.curveLinear):a.curve=(0,u.interpolateToCurve)(p.curve,n.curveLinear),s.text=s.title,void 0===s.text?void 0!==s.style&&(a.arrowheadStyle="fill: #333"):(a.arrowheadStyle="fill: #333",a.labelpos="c",(0,c.getConfig)().flowchart.htmlLabels?(a.labelType="html",a.label=''+s.text+""):(a.labelType="text",a.label=s.text.replace(h.default.lineBreakRegex,"\n"),void 0===s.style&&(a.style=a.style||"stroke: #333; stroke-width: 1.5px;fill:none"),a.labelStyle=a.labelStyle.replace("color:","fill:"))),t.setEdge(s.id1,s.id2,a,r)}))},y=function(e){Object.keys(e).forEach((function(t){p[t]=e[t]}))},_=function(e,t){i.log.info("Drawing class - ",t),o.default.clear(),l.parser.parse(e);var r=(0,c.getConfig)().flowchart,s=(0,c.getConfig)().securityLevel;i.log.info("config:",r);var h,p=r.nodeSpacing||50,y=r.rankSpacing||50,_=new(a().Graph)({multigraph:!0,compound:!0}).setGraph({rankdir:o.default.getDirection(),nodesep:p,ranksep:y,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),b=o.default.getClasses(),v=o.default.getRelations();i.log.info(v),m(b,_,t),g(v,_),"sandbox"===s&&(h=(0,n.select)("#i"+t));var x="sandbox"===s?(0,n.select)(h.nodes()[0].contentDocument.body):(0,n.select)("body"),k=x.select('[id="'.concat(t,'"]'));k.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var j=x.select("#"+t+" g");if((0,d.render)(j,_,["aggregation","extension","composition","dependency"],"classDiagram",t),(0,u.setupGraphViewbox)(_,k,r.diagramPadding,r.useMaxWidth),!r.htmlLabels)for(var w="sandbox"===s?h.nodes()[0].contentDocument:document,C=w.querySelectorAll('[id="'+t+'"] .edgeLabel .label'),T=0;T{"use strict";r.r(t),r.d(t,{default:()=>v,draw:()=>b,setConf:()=>_});var n=r("./node_modules/d3/src/index.js"),s=r("./node_modules/dagre/index.js"),a=r.n(s),i=r("./node_modules/graphlib/index.js"),o=r.n(i),l=r("./src/logger.js"),c=r("./src/diagrams/class/classDb.js"),d=r("./src/diagrams/class/parser/classDiagram.jison"),u=r("./src/diagrams/class/svgDraw.js"),h=r("./src/utils.js"),f=r("./src/config.js"),p=r("./src/accessibility.js");d.parser.yy=c.default;var m={},g={dividerMargin:10,padding:5,textHeight:10},y=function(e){var t=Object.entries(m).find((function(t){return t[1].label===e}));if(t)return t[0]},_=function(e){Object.keys(e).forEach((function(t){g[t]=e[t]}))},b=function(e,t){m={},d.parser.yy.clear(),d.parser.parse(e),l.log.info("Rendering diagram "+e);var r,s=(0,f.getConfig)().securityLevel;"sandbox"===s&&(r=(0,n.select)("#i"+t));var i,_="sandbox"===s?(0,n.select)(r.nodes()[0].contentDocument.body):(0,n.select)("body"),b=("sandbox"===s?r.nodes()[0].contentDocument:document,_.select("[id='".concat(t,"']")));b.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),(i=b).append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).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");var v=new(o().Graph)({multigraph:!0});v.setGraph({isMultiGraph:!0}),v.setDefaultEdgeLabel((function(){return{}}));for(var x=c.default.getClasses(),k=Object.keys(x),j=0;j "+e.w+": "+JSON.stringify(v.edge(e))),u.default.drawEdge(b,v.edge(e),v.edge(e).relation,g))}));var T=b.node().getBBox(),E=T.width+40,S=T.height+40;(0,h.configureSvgSize)(b,S,E,g.useMaxWidth);var A="".concat(T.x-20," ").concat(T.y-20," ").concat(E," ").concat(S);l.log.debug("viewBox ".concat(A)),b.attr("viewBox",A),(0,p.default)(d.parser.yy,b,t)};const v={setConf:_,draw:b}},"./src/diagrams/class/styles.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=function(e){return"g.classGroup text {\n fill: ".concat(e.nodeBorder,";\n fill: ").concat(e.classText,";\n stroke: none;\n font-family: ").concat(e.fontFamily,";\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n.nodeLabel, .edgeLabel {\n color: ").concat(e.classText,";\n}\n.edgeLabel .label rect {\n fill: ").concat(e.mainBkg,";\n}\n.label text {\n fill: ").concat(e.classText,";\n}\n.edgeLabel .label span {\n background: ").concat(e.mainBkg,";\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(e.mainBkg,";\n stroke: ").concat(e.nodeBorder,";\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ").concat(e.nodeBorder,";\n stroke: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ").concat(e.mainBkg,";\n stroke: ").concat(e.nodeBorder,";\n}\n\ng.classGroup line {\n stroke: ").concat(e.nodeBorder,";\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ").concat(e.mainBkg,";\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ").concat(e.nodeBorder,";\n font-size: 10px;\n}\n\n.relation {\n stroke: ").concat(e.lineColor,";\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n#compositionStart, .composition {\n fill: ").concat(e.lineColor," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ").concat(e.lineColor," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ").concat(e.lineColor," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ").concat(e.lineColor," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: ").concat(e.lineColor," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: ").concat(e.lineColor," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: ").concat(e.mainBkg," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: ").concat(e.mainBkg," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n}\n\n")}},"./src/diagrams/class/svgDraw.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y,drawClass:()=>c,drawEdge:()=>l,parseMember:()=>d});var n=r("./node_modules/d3/src/index.js"),s=r("./src/diagrams/class/classDb.js"),a=r("./src/utils.js"),i=r("./src/logger.js"),o=0,l=function(e,t,r,l){var c=function(e){switch(e){case s.relationType.AGGREGATION:return"aggregation";case s.relationType.EXTENSION:return"extension";case s.relationType.COMPOSITION:return"composition";case s.relationType.DEPENDENCY:return"dependency"}};t.points=t.points.filter((function(e){return!Number.isNaN(e.y)}));var d,u,h=t.points,f=(0,n.line)().x((function(e){return e.x})).y((function(e){return e.y})).curve(n.curveBasis),p=e.append("path").attr("d",f(h)).attr("id","edge"+o).attr("class","relation"),m="";l.arrowMarkerAbsolute&&(m=(m=(m=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),1==r.relation.lineType&&p.attr("class","relation dashed-line"),"none"!==r.relation.type1&&p.attr("marker-start","url("+m+"#"+c(r.relation.type1)+"Start)"),"none"!==r.relation.type2&&p.attr("marker-end","url("+m+"#"+c(r.relation.type2)+"End)");var g,y,_,b,v=t.points.length,x=a.default.calcLabelPosition(t.points);if(d=x.x,u=x.y,v%2!=0&&v>1){var k=a.default.calcCardinalityPosition("none"!==r.relation.type1,t.points,t.points[0]),j=a.default.calcCardinalityPosition("none"!==r.relation.type2,t.points,t.points[v-1]);i.log.debug("cardinality_1_point "+JSON.stringify(k)),i.log.debug("cardinality_2_point "+JSON.stringify(j)),g=k.x,y=k.y,_=j.x,b=j.y}if(void 0!==r.title){var w=e.append("g").attr("class","classLabel"),C=w.append("text").attr("class","label").attr("x",d).attr("y",u).attr("fill","red").attr("text-anchor","middle").text(r.title);window.label=C;var T=C.node().getBBox();w.insert("rect",":first-child").attr("class","box").attr("x",T.x-l.padding/2).attr("y",T.y-l.padding/2).attr("width",T.width+l.padding).attr("height",T.height+l.padding)}i.log.info("Rendering relation "+JSON.stringify(r)),void 0!==r.relationTitle1&&"none"!==r.relationTitle1&&e.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",g).attr("y",y).attr("fill","black").attr("font-size","6").text(r.relationTitle1),void 0!==r.relationTitle2&&"none"!==r.relationTitle2&&e.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",_).attr("y",b).attr("fill","black").attr("font-size","6").text(r.relationTitle2),o++},c=function(e,t,r){i.log.info("Rendering class "+t);var n,a=t.id,o={id:a,label:t.id,width:0,height:0},l=e.append("g").attr("id",(0,s.lookUpDomId)(a)).attr("class","classGroup");n=t.link?l.append("svg:a").attr("xlink:href",t.link).attr("target",t.linkTarget).append("text").attr("y",r.textHeight+r.padding).attr("x",0):l.append("text").attr("y",r.textHeight+r.padding).attr("x",0);var c=!0;t.annotations.forEach((function(e){var t=n.append("tspan").text("«"+e+"»");c||t.attr("dy",r.textHeight),c=!1}));var d=t.id;void 0!==t.type&&""!==t.type&&(d+="<"+t.type+">");var u=n.append("tspan").text(d).attr("class","title");c||u.attr("dy",r.textHeight);var h=n.node().getBBox().height,f=l.append("line").attr("x1",0).attr("y1",r.padding+h+r.dividerMargin/2).attr("y2",r.padding+h+r.dividerMargin/2),m=l.append("text").attr("x",r.padding).attr("y",h+r.dividerMargin+r.textHeight).attr("fill","white").attr("class","classText");c=!0,t.members.forEach((function(e){p(m,e,c,r),c=!1}));var g=m.node().getBBox(),y=l.append("line").attr("x1",0).attr("y1",r.padding+h+r.dividerMargin+g.height).attr("y2",r.padding+h+r.dividerMargin+g.height),_=l.append("text").attr("x",r.padding).attr("y",h+2*r.dividerMargin+g.height+r.textHeight).attr("fill","white").attr("class","classText");c=!0,t.methods.forEach((function(e){p(_,e,c,r),c=!1}));var b=l.node().getBBox(),v=" ";t.cssClasses.length>0&&(v+=t.cssClasses.join(" "));var x=l.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",b.width+2*r.padding).attr("height",b.height+r.padding+.5*r.dividerMargin).attr("class",v).node().getBBox().width;return n.node().childNodes.forEach((function(e){e.setAttribute("x",(x-e.getBBox().width)/2)})),t.tooltip&&n.insert("title").text(t.tooltip),f.attr("x2",x),y.attr("x2",x),o.width=x,o.height=b.height+r.padding+.5*r.dividerMargin,o},d=function(e){var t=e.match(/^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+) *(\*|\$)?$/),r=e.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return t&&!r?u(t):r?h(r):f(e)},u=function(e){var t="",r="";try{var n=e[1]?e[1].trim():"",s=e[2]?e[2].trim():"",a=e[3]?m(e[3].trim()):"",i=e[4]?e[4].trim():"",o=e[5]?e[5].trim():"";r=n+s+a+" "+i,t=g(o)}catch(t){r=e}return{displayText:r,cssStyle:t}},h=function(e){var t="",r="";try{var n=e[1]?e[1].trim():"",s=e[2]?e[2].trim():"",a=e[3]?m(e[3].trim()):"",i=e[4]?e[4].trim():"";r=n+s+"("+a+")"+(e[5]?" : "+m(e[5]).trim():""),t=g(i)}catch(t){r=e}return{displayText:r,cssStyle:t}},f=function(e){var t="",r="",n="",s=e.indexOf("("),a=e.indexOf(")");if(s>1&&a>s&&a<=e.length){var i="",o="",l=e.substring(0,1);l.match(/\w/)?o=e.substring(0,s).trim():(l.match(/\+|-|~|#/)&&(i=l),o=e.substring(1,s).trim());var c=e.substring(s+1,a),d=e.substring(a+1,1);r=g(d),t=i+o+"("+m(c.trim())+")",a<"".length&&""!==(n=e.substring(a+2).trim())&&(n=" : "+m(n))}else t=m(e);return{displayText:t,cssStyle:r}},p=function(e,t,r,n){var s=d(t),a=e.append("tspan").attr("x",n.padding).text(s.displayText);""!==s.cssStyle&&a.attr("style",s.cssStyle),r||a.attr("dy",n.textHeight)},m=function e(t){var r=t;return-1!=t.indexOf("~")?e(r=(r=r.replace("~","<")).replace("~",">")):r},g=function(e){switch(e){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};const y={drawClass:c,drawEdge:l,parseMember:d}},"./src/diagrams/common/common.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y,evaluate:()=>g,getRows:()=>a,hasBreaks:()=>h,lineBreakRegex:()=>u,removeEscapes:()=>i,removeScript:()=>o,sanitizeText:()=>c,sanitizeTextOrArray:()=>d,splitBreaks:()=>f});var n=r("./node_modules/dompurify/dist/purify.js"),s=r.n(n),a=function(e){if(!e)return 1;var t=m(e);return(t=t.replace(/\\n/g,"#br#")).split("#br#")},i=function(e){var t=e.replace(/\\u[\dA-F]{4}/gi,(function(e){return String.fromCharCode(parseInt(e.replace(/\\u/g,""),16))}));return(t=(t=t.replace(/\\x([0-9a-f]{2})/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))}))).replace(/\\[\d\d\d]{3}/gi,(function(e){return String.fromCharCode(parseInt(e.replace(/\\/g,""),8))}))).replace(/\\[\d\d\d]{2}/gi,(function(e){return String.fromCharCode(parseInt(e.replace(/\\/g,""),8))}))},o=function(e){for(var t="",r=0;r>=0;){if(!((r=e.indexOf("=0)){t+=e,r=-1;break}t+=e.substr(0,r),(r=(e=e.substr(r+1)).indexOf("<\/script>"))>=0&&(r+=9,e=e.substr(r))}var n=i(t);return(n=(n=(n=(n=n.replaceAll(/script>/gi,"#")).replaceAll(/javascript:/gi,"#")).replaceAll(/javascript&colon/gi,"#")).replaceAll(/onerror=/gi,"onerror:")).replaceAll(/')}else"loose"!==m.securityLevel&&(U=he().sanitize(U,{ADD_TAGS:["foreignobject"],ADD_ATTR:["dominant-baseline"]}));if(void 0!==r)switch(A){case"flowchart":case"flowchart-v2":r(U,x.default.bindFunctions);break;case"gantt":r(U,T.default.bindFunctions);break;case"class":case"classDiagram":r(U,h.default.bindFunctions);break;default:r(U)}else oe.log.debug("CB = undefined!");(0,ie.attachFunctions)();var H="sandbox"===m.securityLevel?"#i"+e:"#d"+e,V=(0,n.select)(H).node();return null!==V&&"function"==typeof V.remove&&(0,n.select)(H).node().remove(),U},parse:function(e){var t=!1;try{e+="\n";var r=o.getConfig(),n=de.default.detectInit(e,r);n&&oe.log.info("reinit ",n);var s,a=de.default.detectType(e,r);switch(oe.log.debug("Type "+a),a){case"c4":l.default.clear(),(s=u()).parser.yy=l.default;break;case"gitGraph":M.default.clear(),(s=B()).parser.yy=M.default;break;case"flowchart":case"flowchart-v2":x.default.clear(),(s=C()).parser.yy=x.default;break;case"sequence":V.default.clear(),(s=H()).parser.yy=V.default;break;case"gantt":(s=A()).parser.yy=T.default;break;case"class":case"classDiagram":(s=g()).parser.yy=h.default;break;case"state":case"stateDiagram":(s=Z()).parser.yy=Q.default;break;case"info":oe.log.debug("info info info"),(s=R()).parser.yy=I.default;break;case"pie":oe.log.debug("pie"),(s=P()).parser.yy=z.default;break;case"er":oe.log.debug("er"),(s=v()).parser.yy=y.default;break;case"journey":oe.log.debug("Journey"),(s=se()).parser.yy=te.default;break;case"requirement":case"requirementDiagram":oe.log.debug("RequirementDiagram"),(s=U()).parser.yy=W.default}s.parser.yy.graphType=a,s.parser.yy.parseError=function(e,t){throw{str:e,hash:t}},s.parse(e)}catch(e){if(t=!0,!fe.default.parseError)throw e;null!=e.str?fe.default.parseError(e.str,e.hash):fe.default.parseError(e)}return!t},parseDirective:function(e,t,r,n){try{if(void 0!==t)switch(t=t.trim(),r){case"open_directive":ye={};break;case"type_directive":ye.type=t.toLowerCase();break;case"arg_directive":ye.args=JSON.parse(t);break;case"close_directive":(function(e,t,r){switch(oe.log.debug("Directive type=".concat(t.type," with args:"),t.args),t.type){case"init":case"initialize":["config"].forEach((function(e){void 0!==t.args[e]&&("flowchart-v2"===r&&(r="flowchart"),t.args[r]=t.args[e],delete t.args[e])})),oe.log.debug("sanitize in handleDirective",t.args),(0,de.directiveSanitizer)(t.args),oe.log.debug("sanitize in handleDirective (done)",t.args),t.args,o.addDirective(t.args);break;case"wrap":case"nowrap":e&&e.setWrap&&e.setWrap("wrap"===t.type);break;case"themeCss":oe.log.warn("themeCss encountered");break;default:oe.log.warn("Unhandled directive: source: '%%{".concat(t.type,": ").concat(JSON.stringify(t.args?t.args:{}),"}%%"),t)}})(e,ye,n),ye=null}}catch(e){oe.log.error("Error while rendering sequenceDiagram directive: ".concat(t," jison context: ").concat(r)),oe.log.error(e.message)}},initialize:function(e){e&&e.fontFamily&&(e.themeVariables&&e.themeVariables.fontFamily||(e.themeVariables={fontFamily:e.fontFamily})),o.saveConfigFromInitialize(e),e&&e.theme&&ce.default[e.theme]?e.themeVariables=ce.default[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=ce.default.default.getThemeVariables(e.themeVariables));var t="object"===pe(e)?o.setSiteConfig(e):o.getSiteConfig();_e(t),(0,oe.setLogLevel)(t.logLevel)},reinitialize:function(){},getConfig:o.getConfig,setConfig:o.setConfig,getSiteConfig:o.getSiteConfig,updateSiteConfig:o.updateSiteConfig,reset:function(){o.reset()},globalReset:function(){o.reset(o.defaultConfig),_e(o.getConfig())},defaultConfig:o.defaultConfig});(0,oe.setLogLevel)(o.getConfig().logLevel),o.reset(o.getConfig());const ve=be},"./src/styles.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{calcThemeVariables:()=>y,default:()=>_});var n=r("./src/diagrams/class/styles.js"),s=r("./src/diagrams/er/styles.js"),a=r("./src/diagrams/flowchart/styles.js"),i=r("./src/diagrams/gantt/styles.js"),o=r("./src/diagrams/git/styles.js"),l=r("./src/diagrams/info/styles.js"),c=r("./src/diagrams/pie/styles.js"),d=r("./src/diagrams/requirement/styles.js"),u=r("./src/diagrams/sequence/styles.js"),h=r("./src/diagrams/state/styles.js"),f=r("./src/diagrams/user-journey/styles.js"),p=r("./src/diagrams/c4/styles.js"),m=r("./src/logger.js"),g={flowchart:a.default,"flowchart-v2":a.default,sequence:u.default,gantt:i.default,classDiagram:n.default,"classDiagram-v2":n.default,class:n.default,stateDiagram:h.default,state:h.default,gitGraph:o.default,info:l.default,pie:c.default,er:s.default,journey:f.default,requirement:d.default,c4:p.default},y=function(e,t){return m.log.info("userOverides",t),e.calcColors(t)};const _=function(e,t,r){return" {\n font-family: ".concat(r.fontFamily,";\n font-size: ").concat(r.fontSize,";\n fill: ").concat(r.textColor,"\n }\n\n /* Classes common for multiple diagrams */\n\n .error-icon {\n fill: ").concat(r.errorBkgColor,";\n }\n .error-text {\n fill: ").concat(r.errorTextColor,";\n stroke: ").concat(r.errorTextColor,";\n }\n\n .edge-thickness-normal {\n stroke-width: 2px;\n }\n .edge-thickness-thick {\n stroke-width: 3.5px\n }\n .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n .marker {\n fill: ").concat(r.lineColor,";\n stroke: ").concat(r.lineColor,";\n }\n .marker.cross {\n stroke: ").concat(r.lineColor,";\n }\n\n svg {\n font-family: ").concat(r.fontFamily,";\n font-size: ").concat(r.fontSize,";\n }\n\n ").concat(g[e](r),"\n\n ").concat(t,"\n")}},"./src/themes/index.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r("./src/themes/theme-base.js"),s=r("./src/themes/theme-dark.js"),a=r("./src/themes/theme-default.js"),i=r("./src/themes/theme-forest.js"),o=r("./src/themes/theme-neutral.js");const l={base:{getThemeVariables:n.getThemeVariables},dark:{getThemeVariables:s.getThemeVariables},default:{getThemeVariables:a.getThemeVariables},forest:{getThemeVariables:i.getThemeVariables},neutral:{getThemeVariables:o.getThemeVariables}}},"./src/themes/theme-base.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{getThemeVariables:()=>u});var n=r("./node_modules/khroma/dist/methods/adjust.js"),s=r("./node_modules/khroma/dist/methods/invert.js"),a=r("./node_modules/khroma/dist/methods/darken.js"),i=r("./node_modules/khroma/dist/methods/lighten.js"),o=r("./src/themes/theme-helpers.js");function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){for(var r=0;r{"use strict";r.r(t),r.d(t,{getThemeVariables:()=>h});var n=r("./node_modules/khroma/dist/methods/lighten.js"),s=r("./node_modules/khroma/dist/methods/adjust.js"),a=r("./node_modules/khroma/dist/methods/invert.js"),i=r("./node_modules/khroma/dist/methods/rgba.js"),o=r("./node_modules/khroma/dist/methods/darken.js"),l=r("./src/themes/theme-helpers.js");function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){for(var r=0;r{"use strict";r.r(t),r.d(t,{getThemeVariables:()=>h});var n=r("./node_modules/khroma/dist/methods/adjust.js"),s=r("./node_modules/khroma/dist/methods/invert.js"),a=r("./node_modules/khroma/dist/methods/rgba.js"),i=r("./node_modules/khroma/dist/methods/lighten.js"),o=r("./node_modules/khroma/dist/methods/darken.js"),l=r("./src/themes/theme-helpers.js");function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){for(var r=0;r{"use strict";r.r(t),r.d(t,{getThemeVariables:()=>u});var n=r("./node_modules/khroma/dist/methods/lighten.js"),s=r("./node_modules/khroma/dist/methods/invert.js"),a=r("./node_modules/khroma/dist/methods/darken.js"),i=r("./node_modules/khroma/dist/methods/adjust.js"),o=r("./src/themes/theme-helpers.js");function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){for(var r=0;r{"use strict";r.r(t),r.d(t,{mkBorder:()=>s});var n=r("./node_modules/khroma/dist/methods/adjust.js"),s=function(e,t){return t?(0,n.default)(e,{s:-40,l:10}):(0,n.default)(e,{s:-40,l:-10})}},"./src/themes/theme-neutral.js":(e,t,r)=>{"use strict";r.r(t),r.d(t,{getThemeVariables:()=>u});var n=r("./node_modules/khroma/dist/methods/lighten.js"),s=r("./node_modules/khroma/dist/methods/adjust.js"),a=r("./node_modules/khroma/dist/methods/invert.js"),i=r("./node_modules/khroma/dist/methods/darken.js"),o=r("./src/themes/theme-helpers.js");function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){for(var r=0;r{"use strict";r.r(t),r.d(t,{assignWithDepth:()=>B,calculateSvgSizeAttrs:()=>q,calculateTextDimensions:()=>z,calculateTextHeight:()=>F,calculateTextWidth:()=>P,configureSvgSize:()=>Y,default:()=>V,detectDirective:()=>x,detectInit:()=>v,detectType:()=>k,directiveSanitizer:()=>$,drawSimpleText:()=>N,entityDecode:()=>G,formatUrl:()=>T,generateId:()=>D,getStylesFromArray:()=>A,getTextObj:()=>I,initIdGenerator:()=>W,interpolateToCurve:()=>C,isSubstringInArray:()=>w,random:()=>O,runFunc:()=>E,sanitizeCss:()=>H,setupGraphViewbox:()=>U,wrapLabel:()=>L});var n=r("./node_modules/@braintree/sanitize-url/dist/index.js"),s=r("./node_modules/d3/src/index.js"),a=r("./src/diagrams/common/common.js"),i=r("./src/defaultConfig.js"),o=r("./src/logger.js"),l=void 0;function c(e,t){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw a}}}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function h(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:null;try{var r=new RegExp("[%]{2}(?![{]".concat(_.source,")(?=[}][%]{2}).*\n"),"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),o.log.debug("Detecting diagram directive".concat(null!==t?" type:"+t:""," based on the text:").concat(e));for(var n,s=[];null!==(n=y.exec(e));)if(n.index===y.lastIndex&&y.lastIndex++,n&&!t||t&&n[1]&&n[1].match(t)||t&&n[2]&&n[2].match(t)){var a=n[1]?n[1]:n[2],i=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;s.push({type:a,args:i})}return 0===s.length&&s.push({type:e,args:null}),1===s.length?s[0]:s}catch(r){return o.log.error("ERROR: ".concat(r.message," - Unable to parse directive\n ").concat(null!==t?" type:"+t:""," based on the text:").concat(e)),{type:null,args:null}}},k=function(e,t){return(e=e.replace(y,"").replace(b,"\n")).match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/)?"c4":e.match(/^\s*sequenceDiagram/)?"sequence":e.match(/^\s*gantt/)?"gantt":e.match(/^\s*classDiagram-v2/)?"classDiagram":e.match(/^\s*classDiagram/)?t&&t.class&&"dagre-wrapper"===t.class.defaultRenderer?"classDiagram":"class":e.match(/^\s*stateDiagram-v2/)?"stateDiagram":e.match(/^\s*stateDiagram/)?t&&t.class&&"dagre-wrapper"===t.state.defaultRenderer?"stateDiagram":"state":e.match(/^\s*gitGraph/)?"gitGraph":e.match(/^\s*flowchart/)?"flowchart-v2":e.match(/^\s*info/)?"info":e.match(/^\s*pie/)?"pie":e.match(/^\s*erDiagram/)?"er":e.match(/^\s*journey/)?"journey":e.match(/^\s*requirement/)||e.match(/^\s*requirementDiagram/)?"requirement":t&&t.flowchart&&"dagre-wrapper"===t.flowchart.defaultRenderer?"flowchart-v2":"flowchart"},j=function(e,t){var r={};return function(){for(var n=arguments.length,s=new Array(n),a=0;a1?o-1:0),c=1;c"},r),a.default.lineBreakRegex.test(e))return e;var n=e.split(" "),s=[],i="";return n.forEach((function(e,a){var o=P("".concat(e," "),r),l=P(i,r);if(o>t){var c=R(e,t,"-",r),d=c.hyphenatedStrings,u=c.remainingWord;s.push.apply(s,[i].concat(h(d))),i=u}else l+o>=t?(s.push(i),i=e):i=[i,e].filter(Boolean).join(" ");a+1===n.length&&s.push(i)})),s.filter((function(e){return""!==e})).join(r.joinWith)}),(function(e,t,r){return"".concat(e,"-").concat(t,"-").concat(r.fontSize,"-").concat(r.fontWeight,"-").concat(r.fontFamily,"-").concat(r.joinWith)})),R=j((function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",n=arguments.length>3?arguments[3]:void 0;n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);var s=e.split(""),a=[],i="";return s.forEach((function(e,o){var l="".concat(i).concat(e);if(P(l,n)>=t){var c=o+1,d=s.length===c,u="".concat(l).concat(r);a.push(d?l:u),i=""}else i=l})),{hyphenatedStrings:a,remainingWord:i}}),(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",n=arguments.length>3?arguments[3]:void 0;return"".concat(e,"-").concat(t,"-").concat(r,"-").concat(n.fontSize,"-").concat(n.fontWeight,"-").concat(n.fontFamily)})),F=function(e,t){return t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},t),z(e,t).height},P=function(e,t){return t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},t),z(e,t).width},z=j((function(e,t){var r=t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},t),n=r.fontSize,i=r.fontFamily,o=r.fontWeight;if(!e)return{width:0,height:0};var l=["sans-serif",i],c=e.split(a.default.lineBreakRegex),u=[],h=(0,s.select)("body");if(!h.remove)return{width:0,height:0,lineHeight:0};for(var f=h.append("svg"),p=0,m=l;pu[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1]}),(function(e,t){return"".concat(e,"-").concat(t.fontSize,"-").concat(t.fontWeight,"-").concat(t.fontFamily)})),q=function(e,t,r){var n=new Map;return n.set("height",e),r?(n.set("width","100%"),n.set("style","max-width: ".concat(t,"px;"))):n.set("width",t),n},Y=function(e,t,r,n){!function(e,t){var r,n=d(t);try{for(n.s();!(r=n.n()).done;){var s=r.value;e.attr(s[0],s[1])}}catch(e){n.e(e)}finally{n.f()}}(e,q(t,r,n))},U=function(e,t,r,n){var s=t.node().getBBox(),a=s.width,i=s.height,l=e._label.width,c=e._label.height,d=0,u=0;a>l?(d=(a-l)/2+r,l=a+2*r):Math.abs(a-l)>=2*r+1&&(l-=r),i>c&&(u=(i-c)/2+r,c=i+2*r),Y(t,c,l,n);var h="0 0 ".concat(l," ").concat(c);o.log.debug("Graph.label",e._label,"swidth",a,"sheight",i,"width",l,"height",c,"tx",d,"ty",u,"vBox",h),t.attr("viewBox",h),t.select("g").attr("transform","translate(".concat(d,", ").concat(u,")"))},W=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.deterministic=t,this.seed=r,this.count=r?r.length:0}var t,r;return t=e,(r=[{key:"next",value:function(){return this.deterministic?this.count++:Date.now()}}])&&c(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),G=function(e){return m=m||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),m.innerHTML=e,unescape(m.textContent)},$=function e(t){if(o.log.debug("directiveSanitizer called with",t),"object"===u(t)&&(t.length?t.forEach((function(t){return e(t)})):Object.keys(t).forEach((function(r){o.log.debug("Checking key",r),0===r.indexOf("__")&&(o.log.debug("sanitize deleting __ option",r),delete t[r]),r.indexOf("proto")>=0&&(o.log.debug("sanitize deleting proto option",r),delete t[r]),r.indexOf("constr")>=0&&(o.log.debug("sanitize deleting constr option",r),delete t[r]),r.indexOf("themeCSS")>=0&&(o.log.debug("sanitizing themeCss option"),t[r]=H(t[r])),r.indexOf("fontFamily")>=0&&(o.log.debug("sanitizing fontFamily option"),t[r]=H(t[r])),r.indexOf("altFontFamily")>=0&&(o.log.debug("sanitizing altFontFamily option"),t[r]=H(t[r])),i.configKeys.indexOf(r)<0?(o.log.debug("sanitize deleting option",r),delete t[r]):"object"===u(t[r])&&(o.log.debug("sanitize deleting object",r),e(t[r]))}))),t.themeVariables)for(var r=Object.keys(t.themeVariables),n=0;n=1&&(s={x:e.x,y:e.y}),a>0&&a<1&&(s={x:(1-a)*t.x+a*e.x,y:(1-a)*t.y+a*e.y})}}t=e})),s}(e)},calcCardinalityPosition:function(e,t,r){var n;o.log.info("our points",t),t[0]!==r&&(t=t.reverse()),t.forEach((function(e){S(e,n),n=e}));var s,a=25;n=void 0,t.forEach((function(e){if(n&&!s){var t=S(e,n);if(t=1&&(s={x:e.x,y:e.y}),r>0&&r<1&&(s={x:(1-r)*n.x+r*e.x,y:(1-r)*n.y+r*e.y})}}n=e}));var i=e?10:5,l=Math.atan2(t[0].y-s.y,t[0].x-s.x),c={x:0,y:0};return c.x=Math.sin(l)*i+(t[0].x+s.x)/2,c.y=-Math.cos(l)*i+(t[0].y+s.y)/2,c},calcTerminalLabelPosition:function(e,t,r){var n,s=JSON.parse(JSON.stringify(r));o.log.info("our points",s),"start_left"!==t&&"start_right"!==t&&(s=s.reverse()),s.forEach((function(e){S(e,n),n=e}));var a,i=25+e;n=void 0,s.forEach((function(e){if(n&&!a){var t=S(e,n);if(t=1&&(a={x:e.x,y:e.y}),r>0&&r<1&&(a={x:(1-r)*n.x+r*e.x,y:(1-r)*n.y+r*e.y})}}n=e}));var l=10+.5*e,c=Math.atan2(s[0].y-a.y,s[0].x-a.x),d={x:0,y:0};return d.x=Math.sin(c)*l+(s[0].x+a.x)/2,d.y=-Math.cos(c)*l+(s[0].y+a.y)/2,"start_left"===t&&(d.x=Math.sin(c+Math.PI)*l+(s[0].x+a.x)/2,d.y=-Math.cos(c+Math.PI)*l+(s[0].y+a.y)/2),"end_right"===t&&(d.x=Math.sin(c-Math.PI)*l+(s[0].x+a.x)/2-5,d.y=-Math.cos(c-Math.PI)*l+(s[0].y+a.y)/2-5),"end_left"===t&&(d.x=Math.sin(c)*l+(s[0].x+a.x)/2-5,d.y=-Math.cos(c)*l+(s[0].y+a.y)/2-5),d},formatUrl:T,getStylesFromArray:A,generateId:D,random:O,memoize:j,runFunc:E,entityDecode:G,initIdGenerator:W,directiveSanitizer:$,sanitizeCss:H}},"./node_modules/dagre-d3/index.js":(e,t,r)=>{e.exports={graphlib:r("./node_modules/dagre-d3/lib/graphlib.js"),dagre:r("./node_modules/dagre-d3/lib/dagre.js"),intersect:r("./node_modules/dagre-d3/lib/intersect/index.js"),render:r("./node_modules/dagre-d3/lib/render.js"),util:r("./node_modules/dagre-d3/lib/util.js"),version:r("./node_modules/dagre-d3/lib/version.js")}},"./node_modules/dagre-d3/lib/arrows.js":(e,t,r)=>{var n=r("./node_modules/dagre-d3/lib/util.js");function s(e,t,r,s){var a=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");n.applyStyle(a,r[s+"Style"]),r[s+"Class"]&&a.attr("class",r[s+"Class"])}e.exports={default:s,normal:s,vee:function(e,t,r,s){var a=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");n.applyStyle(a,r[s+"Style"]),r[s+"Class"]&&a.attr("class",r[s+"Class"])},undirected:function(e,t,r,s){var a=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");n.applyStyle(a,r[s+"Style"]),r[s+"Class"]&&a.attr("class",r[s+"Class"])}}},"./node_modules/dagre-d3/lib/create-clusters.js":(e,t,r)=>{var n=r("./node_modules/dagre-d3/lib/util.js"),s=r("./node_modules/dagre-d3/lib/d3.js"),a=r("./node_modules/dagre-d3/lib/label/add-label.js");e.exports=function(e,t){var r,i=t.nodes().filter((function(e){return n.isSubgraph(t,e)})),o=e.selectAll("g.cluster").data(i,(function(e){return e}));return o.selectAll("*").remove(),o.enter().append("g").attr("class","cluster").attr("id",(function(e){return t.node(e).id})).style("opacity",0),o=e.selectAll("g.cluster"),n.applyTransition(o,t).style("opacity",1),o.each((function(e){var r=t.node(e),n=s.select(this);s.select(this).append("rect");var i=n.append("g").attr("class","label");a(i,r,r.clusterLabelPos)})),o.selectAll("rect").each((function(e){var r=t.node(e),a=s.select(this);n.applyStyle(a,r.style)})),r=o.exit?o.exit():o.selectAll(null),n.applyTransition(r,t).style("opacity",0).remove(),o}},"./node_modules/dagre-d3/lib/create-edge-labels.js":(e,t,r)=>{"use strict";var n=r("./node_modules/dagre-d3/lib/lodash.js"),s=r("./node_modules/dagre-d3/lib/label/add-label.js"),a=r("./node_modules/dagre-d3/lib/util.js"),i=r("./node_modules/dagre-d3/lib/d3.js");e.exports=function(e,t){var r,o=e.selectAll("g.edgeLabel").data(t.edges(),(function(e){return a.edgeToId(e)})).classed("update",!0);return o.exit().remove(),o.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(o=e.selectAll("g.edgeLabel")).each((function(e){var r=i.select(this);r.select(".label").remove();var a=t.edge(e),o=s(r,t.edge(e),0,0).classed("label",!0),l=o.node().getBBox();a.labelId&&o.attr("id",a.labelId),n.has(a,"width")||(a.width=l.width),n.has(a,"height")||(a.height=l.height)})),r=o.exit?o.exit():o.selectAll(null),a.applyTransition(r,t).style("opacity",0).remove(),o}},"./node_modules/dagre-d3/lib/create-edge-paths.js":(e,t,r)=>{"use strict";var n=r("./node_modules/dagre-d3/lib/lodash.js"),s=r("./node_modules/dagre-d3/lib/intersect/intersect-node.js"),a=r("./node_modules/dagre-d3/lib/util.js"),i=r("./node_modules/dagre-d3/lib/d3.js");function o(e,t){var r=(i.line||i.svg.line)().x((function(e){return e.x})).y((function(e){return e.y}));return(r.curve||r.interpolate)(e.curve),r(t)}e.exports=function(e,t,r){var l=e.selectAll("g.edgePath").data(t.edges(),(function(e){return a.edgeToId(e)})).classed("update",!0),c=function(e,t){var r=e.enter().append("g").attr("class","edgePath").style("opacity",0);return r.append("path").attr("class","path").attr("d",(function(e){var r=t.edge(e),s=t.node(e.v).elem;return o(r,n.range(r.points.length).map((function(){return t=(e=s).getBBox(),{x:(r=e.ownerSVGElement.getScreenCTM().inverse().multiply(e.getScreenCTM()).translate(t.width/2,t.height/2)).e,y:r.f};var e,t,r})))})),r.append("defs"),r}(l,t);!function(e,t){var r=e.exit();a.applyTransition(r,t).style("opacity",0).remove()}(l,t);var d=void 0!==l.merge?l.merge(c):l;return a.applyTransition(d,t).style("opacity",1),d.each((function(e){var r=i.select(this),n=t.edge(e);n.elem=this,n.id&&r.attr("id",n.id),a.applyClass(r,n.class,(r.classed("update")?"update ":"")+"edgePath")})),d.selectAll("path.path").each((function(e){var r=t.edge(e);r.arrowheadId=n.uniqueId("arrowhead");var l=i.select(this).attr("marker-end",(function(){return"url("+(e=location.href,t=r.arrowheadId,e.split("#")[0]+"#"+t+")");var e,t})).style("fill","none");a.applyTransition(l,t).attr("d",(function(e){return function(e,t){var r=e.edge(t),n=e.node(t.v),a=e.node(t.w),i=r.points.slice(1,r.points.length-1);return i.unshift(s(n,i[0])),i.push(s(a,i[i.length-1])),o(r,i)}(t,e)})),a.applyStyle(l,r.style)})),d.selectAll("defs *").remove(),d.selectAll("defs").each((function(e){var n=t.edge(e);(0,r[n.arrowhead])(i.select(this),n.arrowheadId,n,"arrowhead")})),d}},"./node_modules/dagre-d3/lib/create-nodes.js":(e,t,r)=>{"use strict";var n=r("./node_modules/dagre-d3/lib/lodash.js"),s=r("./node_modules/dagre-d3/lib/label/add-label.js"),a=r("./node_modules/dagre-d3/lib/util.js"),i=r("./node_modules/dagre-d3/lib/d3.js");e.exports=function(e,t,r){var o,l=t.nodes().filter((function(e){return!a.isSubgraph(t,e)})),c=e.selectAll("g.node").data(l,(function(e){return e})).classed("update",!0);return c.exit().remove(),c.enter().append("g").attr("class","node").style("opacity",0),(c=e.selectAll("g.node")).each((function(e){var o=t.node(e),l=i.select(this);a.applyClass(l,o.class,(l.classed("update")?"update ":"")+"node"),l.select("g.label").remove();var c=l.append("g").attr("class","label"),d=s(c,o),u=r[o.shape],h=n.pick(d.node().getBBox(),"width","height");o.elem=this,o.id&&l.attr("id",o.id),o.labelId&&c.attr("id",o.labelId),n.has(o,"width")&&(h.width=o.width),n.has(o,"height")&&(h.height=o.height),h.width+=o.paddingLeft+o.paddingRight,h.height+=o.paddingTop+o.paddingBottom,c.attr("transform","translate("+(o.paddingLeft-o.paddingRight)/2+","+(o.paddingTop-o.paddingBottom)/2+")");var f=i.select(this);f.select(".label-container").remove();var p=u(f,h,o).classed("label-container",!0);a.applyStyle(p,o.style);var m=p.node().getBBox();o.width=m.width,o.height=m.height})),o=c.exit?c.exit():c.selectAll(null),a.applyTransition(o,t).style("opacity",0).remove(),c}},"./node_modules/dagre-d3/lib/d3.js":(e,t,r)=>{var n;if(!n)try{n=r("./node_modules/d3/src/index.js")}catch(e){}n||(n=window.d3),e.exports=n},"./node_modules/dagre-d3/lib/dagre.js":(e,t,r)=>{var n;try{n=r("./node_modules/dagre/index.js")}catch(e){}n||(n=window.dagre),e.exports=n},"./node_modules/dagre-d3/lib/graphlib.js":(e,t,r)=>{var n;try{n=r("./node_modules/graphlib/index.js")}catch(e){}n||(n=window.graphlib),e.exports=n},"./node_modules/dagre-d3/lib/intersect/index.js":(e,t,r)=>{e.exports={node:r("./node_modules/dagre-d3/lib/intersect/intersect-node.js"),circle:r("./node_modules/dagre-d3/lib/intersect/intersect-circle.js"),ellipse:r("./node_modules/dagre-d3/lib/intersect/intersect-ellipse.js"),polygon:r("./node_modules/dagre-d3/lib/intersect/intersect-polygon.js"),rect:r("./node_modules/dagre-d3/lib/intersect/intersect-rect.js")}},"./node_modules/dagre-d3/lib/intersect/intersect-circle.js":(e,t,r)=>{var n=r("./node_modules/dagre-d3/lib/intersect/intersect-ellipse.js");e.exports=function(e,t,r){return n(e,t,t,r)}},"./node_modules/dagre-d3/lib/intersect/intersect-ellipse.js":e=>{e.exports=function(e,t,r,n){var s=e.x,a=e.y,i=s-n.x,o=a-n.y,l=Math.sqrt(t*t*o*o+r*r*i*i),c=Math.abs(t*r*i/l);n.x{function t(e,t){return e*t>0}e.exports=function(e,r,n,s){var a,i,o,l,c,d,u,h,f,p,m,g,y;if(!(a=r.y-e.y,o=e.x-r.x,c=r.x*e.y-e.x*r.y,f=a*n.x+o*n.y+c,p=a*s.x+o*s.y+c,0!==f&&0!==p&&t(f,p)||(i=s.y-n.y,l=n.x-s.x,d=s.x*n.y-n.x*s.y,u=i*e.x+l*e.y+d,h=i*r.x+l*r.y+d,0!==u&&0!==h&&t(u,h)||0==(m=a*l-i*o))))return g=Math.abs(m/2),{x:(y=o*d-l*c)<0?(y-g)/m:(y+g)/m,y:(y=i*c-a*d)<0?(y-g)/m:(y+g)/m}}},"./node_modules/dagre-d3/lib/intersect/intersect-node.js":e=>{e.exports=function(e,t){return e.intersect(t)}},"./node_modules/dagre-d3/lib/intersect/intersect-polygon.js":(e,t,r)=>{var n=r("./node_modules/dagre-d3/lib/intersect/intersect-line.js");e.exports=function(e,t,r){var s=e.x,a=e.y,i=[],o=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;t.forEach((function(e){o=Math.min(o,e.x),l=Math.min(l,e.y)}));for(var c=s-e.width/2-o,d=a-e.height/2-l,u=0;u1&&i.sort((function(e,t){var n=e.x-r.x,s=e.y-r.y,a=Math.sqrt(n*n+s*s),i=t.x-r.x,o=t.y-r.y,l=Math.sqrt(i*i+o*o);return a{e.exports=function(e,t){var r,n,s=e.x,a=e.y,i=t.x-s,o=t.y-a,l=e.width/2,c=e.height/2;return Math.abs(o)*l>Math.abs(i)*c?(o<0&&(c=-c),r=0===o?0:c*i/o,n=c):(i<0&&(l=-l),r=l,n=0===i?0:l*o/i),{x:s+r,y:a+n}}},"./node_modules/dagre-d3/lib/label/add-html-label.js":(e,t,r)=>{var n=r("./node_modules/dagre-d3/lib/util.js");e.exports=function(e,t){var r=e.append("foreignObject").attr("width","100000"),s=r.append("xhtml:div");s.attr("xmlns","http://www.w3.org/1999/xhtml");var a=t.label;switch(typeof a){case"function":s.insert(a);break;case"object":s.insert((function(){return a}));break;default:s.html(a)}n.applyStyle(s,t.labelStyle),s.style("display","inline-block"),s.style("white-space","nowrap");var i=s.node().getBoundingClientRect();return r.attr("width",i.width).attr("height",i.height),r}},"./node_modules/dagre-d3/lib/label/add-label.js":(e,t,r)=>{var n=r("./node_modules/dagre-d3/lib/label/add-text-label.js"),s=r("./node_modules/dagre-d3/lib/label/add-html-label.js"),a=r("./node_modules/dagre-d3/lib/label/add-svg-label.js");e.exports=function(e,t,r){var i=t.label,o=e.append("g");"svg"===t.labelType?a(o,t):"string"!=typeof i||"html"===t.labelType?s(o,t):n(o,t);var l,c=o.node().getBBox();switch(r){case"top":l=-t.height/2;break;case"bottom":l=t.height/2-c.height;break;default:l=-c.height/2}return o.attr("transform","translate("+-c.width/2+","+l+")"),o}},"./node_modules/dagre-d3/lib/label/add-svg-label.js":(e,t,r)=>{var n=r("./node_modules/dagre-d3/lib/util.js");e.exports=function(e,t){var r=e;return r.node().appendChild(t.label),n.applyStyle(r,t.labelStyle),r}},"./node_modules/dagre-d3/lib/label/add-text-label.js":(e,t,r)=>{var n=r("./node_modules/dagre-d3/lib/util.js");e.exports=function(e,t){for(var r=e.append("text"),s=function(e){for(var t,r="",n=!1,s=0;s{var n;try{n={defaults:r("./node_modules/lodash/defaults.js"),each:r("./node_modules/lodash/each.js"),isFunction:r("./node_modules/lodash/isFunction.js"),isPlainObject:r("./node_modules/lodash/isPlainObject.js"),pick:r("./node_modules/lodash/pick.js"),has:r("./node_modules/lodash/has.js"),range:r("./node_modules/lodash/range.js"),uniqueId:r("./node_modules/lodash/uniqueId.js")}}catch(e){}n||(n=window._),e.exports=n},"./node_modules/dagre-d3/lib/position-clusters.js":(e,t,r)=>{"use strict";var n=r("./node_modules/dagre-d3/lib/util.js"),s=r("./node_modules/dagre-d3/lib/d3.js");e.exports=function(e,t){var r=e.filter((function(){return!s.select(this).classed("update")}));function a(e){var r=t.node(e);return"translate("+r.x+","+r.y+")"}r.attr("transform",a),n.applyTransition(e,t).style("opacity",1).attr("transform",a),n.applyTransition(r.selectAll("rect"),t).attr("width",(function(e){return t.node(e).width})).attr("height",(function(e){return t.node(e).height})).attr("x",(function(e){return-t.node(e).width/2})).attr("y",(function(e){return-t.node(e).height/2}))}},"./node_modules/dagre-d3/lib/position-edge-labels.js":(e,t,r)=>{"use strict";var n=r("./node_modules/dagre-d3/lib/util.js"),s=r("./node_modules/dagre-d3/lib/d3.js"),a=r("./node_modules/dagre-d3/lib/lodash.js");e.exports=function(e,t){function r(e){var r=t.edge(e);return a.has(r,"x")?"translate("+r.x+","+r.y+")":""}e.filter((function(){return!s.select(this).classed("update")})).attr("transform",r),n.applyTransition(e,t).style("opacity",1).attr("transform",r)}},"./node_modules/dagre-d3/lib/position-nodes.js":(e,t,r)=>{"use strict";var n=r("./node_modules/dagre-d3/lib/util.js"),s=r("./node_modules/dagre-d3/lib/d3.js");e.exports=function(e,t){function r(e){var r=t.node(e);return"translate("+r.x+","+r.y+")"}e.filter((function(){return!s.select(this).classed("update")})).attr("transform",r),n.applyTransition(e,t).style("opacity",1).attr("transform",r)}},"./node_modules/dagre-d3/lib/render.js":(e,t,r)=>{var n=r("./node_modules/dagre-d3/lib/lodash.js"),s=r("./node_modules/dagre-d3/lib/d3.js"),a=r("./node_modules/dagre-d3/lib/dagre.js").layout;e.exports=function(){var e=r("./node_modules/dagre-d3/lib/create-nodes.js"),t=r("./node_modules/dagre-d3/lib/create-clusters.js"),s=r("./node_modules/dagre-d3/lib/create-edge-labels.js"),c=r("./node_modules/dagre-d3/lib/create-edge-paths.js"),d=r("./node_modules/dagre-d3/lib/position-nodes.js"),u=r("./node_modules/dagre-d3/lib/position-edge-labels.js"),h=r("./node_modules/dagre-d3/lib/position-clusters.js"),f=r("./node_modules/dagre-d3/lib/shapes.js"),p=r("./node_modules/dagre-d3/lib/arrows.js"),m=function(r,m){!function(e){e.nodes().forEach((function(t){var r=e.node(t);n.has(r,"label")||e.children(t).length||(r.label=t),n.has(r,"paddingX")&&n.defaults(r,{paddingLeft:r.paddingX,paddingRight:r.paddingX}),n.has(r,"paddingY")&&n.defaults(r,{paddingTop:r.paddingY,paddingBottom:r.paddingY}),n.has(r,"padding")&&n.defaults(r,{paddingLeft:r.padding,paddingRight:r.padding,paddingTop:r.padding,paddingBottom:r.padding}),n.defaults(r,i),n.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function(e){r[e]=Number(r[e])})),n.has(r,"width")&&(r._prevWidth=r.width),n.has(r,"height")&&(r._prevHeight=r.height)})),e.edges().forEach((function(t){var r=e.edge(t);n.has(r,"label")||(r.label=""),n.defaults(r,o)}))}(m);var g=l(r,"output"),y=l(g,"clusters"),_=l(g,"edgePaths"),b=s(l(g,"edgeLabels"),m),v=e(l(g,"nodes"),m,f);a(m),d(v,m),u(b,m),c(_,m,p);var x=t(y,m);h(x,m),function(e){n.each(e.nodes(),(function(t){var r=e.node(t);n.has(r,"_prevWidth")?r.width=r._prevWidth:delete r.width,n.has(r,"_prevHeight")?r.height=r._prevHeight:delete r.height,delete r._prevWidth,delete r._prevHeight}))}(m)};return m.createNodes=function(t){return arguments.length?(e=t,m):e},m.createClusters=function(e){return arguments.length?(t=e,m):t},m.createEdgeLabels=function(e){return arguments.length?(s=e,m):s},m.createEdgePaths=function(e){return arguments.length?(c=e,m):c},m.shapes=function(e){return arguments.length?(f=e,m):f},m.arrows=function(e){return arguments.length?(p=e,m):p},m};var i={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},o={arrowhead:"normal",curve:s.curveLinear};function l(e,t){var r=e.select("g."+t);return r.empty()&&(r=e.append("g").attr("class",t)),r}},"./node_modules/dagre-d3/lib/shapes.js":(e,t,r)=>{"use strict";var n=r("./node_modules/dagre-d3/lib/intersect/intersect-rect.js"),s=r("./node_modules/dagre-d3/lib/intersect/intersect-ellipse.js"),a=r("./node_modules/dagre-d3/lib/intersect/intersect-circle.js"),i=r("./node_modules/dagre-d3/lib/intersect/intersect-polygon.js");e.exports={rect:function(e,t,r){var s=e.insert("rect",":first-child").attr("rx",r.rx).attr("ry",r.ry).attr("x",-t.width/2).attr("y",-t.height/2).attr("width",t.width).attr("height",t.height);return r.intersect=function(e){return n(r,e)},s},ellipse:function(e,t,r){var n=t.width/2,a=t.height/2,i=e.insert("ellipse",":first-child").attr("x",-t.width/2).attr("y",-t.height/2).attr("rx",n).attr("ry",a);return r.intersect=function(e){return s(r,n,a,e)},i},circle:function(e,t,r){var n=Math.max(t.width,t.height)/2,s=e.insert("circle",":first-child").attr("x",-t.width/2).attr("y",-t.height/2).attr("r",n);return r.intersect=function(e){return a(r,n,e)},s},diamond:function(e,t,r){var n=t.width*Math.SQRT2/2,s=t.height*Math.SQRT2/2,a=[{x:0,y:-s},{x:-n,y:0},{x:0,y:s},{x:n,y:0}],o=e.insert("polygon",":first-child").attr("points",a.map((function(e){return e.x+","+e.y})).join(" "));return r.intersect=function(e){return i(r,a,e)},o}}},"./node_modules/dagre-d3/lib/util.js":(e,t,r)=>{var n=r("./node_modules/dagre-d3/lib/lodash.js");e.exports={isSubgraph:function(e,t){return!!e.children(t).length},edgeToId:function(e){return a(e.v)+":"+a(e.w)+":"+a(e.name)},applyStyle:function(e,t){t&&e.attr("style",t)},applyClass:function(e,t,r){t&&e.attr("class",t).attr("class",r+" "+e.attr("class"))},applyTransition:function(e,t){var r=t.graph();if(n.isPlainObject(r)){var s=r.transition;if(n.isFunction(s))return s(e)}return e}};var s=/:/g;function a(e){return e?String(e).replace(s,"\\:"):""}},"./node_modules/dagre-d3/lib/version.js":e=>{e.exports="0.6.4"},"./node_modules/dagre/index.js":(e,t,r)=>{e.exports={graphlib:r("./node_modules/dagre/lib/graphlib.js"),layout:r("./node_modules/dagre/lib/layout.js"),debug:r("./node_modules/dagre/lib/debug.js"),util:{time:r("./node_modules/dagre/lib/util.js").time,notime:r("./node_modules/dagre/lib/util.js").notime},version:r("./node_modules/dagre/lib/version.js")}},"./node_modules/dagre/lib/acyclic.js":(e,t,r)=>{"use strict";var n=r("./node_modules/dagre/lib/lodash.js"),s=r("./node_modules/dagre/lib/greedy-fas.js");e.exports={run:function(e){var t="greedy"===e.graph().acyclicer?s(e,function(e){return function(t){return e.edge(t).weight}}(e)):function(e){var t=[],r={},s={};return n.forEach(e.nodes(),(function a(i){n.has(s,i)||(s[i]=!0,r[i]=!0,n.forEach(e.outEdges(i),(function(e){n.has(r,e.w)?t.push(e):a(e.w)})),delete r[i])})),t}(e);n.forEach(t,(function(t){var r=e.edge(t);e.removeEdge(t),r.forwardName=t.name,r.reversed=!0,e.setEdge(t.w,t.v,r,n.uniqueId("rev"))}))},undo:function(e){n.forEach(e.edges(),(function(t){var r=e.edge(t);if(r.reversed){e.removeEdge(t);var n=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,n)}}))}}},"./node_modules/dagre/lib/add-border-segments.js":(e,t,r)=>{var n=r("./node_modules/dagre/lib/lodash.js"),s=r("./node_modules/dagre/lib/util.js");function a(e,t,r,n,a,i){var o={width:0,height:0,rank:i,borderType:t},l=a[t][i-1],c=s.addDummyNode(e,"border",o,r);a[t][i]=c,e.setParent(c,n),l&&e.setEdge(l,c,{weight:1})}e.exports=function(e){n.forEach(e.children(),(function t(r){var s=e.children(r),i=e.node(r);if(s.length&&n.forEach(s,t),n.has(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,l=i.maxRank+1;o{"use strict";var n=r("./node_modules/dagre/lib/lodash.js");function s(e){n.forEach(e.nodes(),(function(t){a(e.node(t))})),n.forEach(e.edges(),(function(t){a(e.edge(t))}))}function a(e){var t=e.width;e.width=e.height,e.height=t}function i(e){e.y=-e.y}function o(e){var t=e.x;e.x=e.y,e.y=t}e.exports={adjust:function(e){var t=e.graph().rankdir.toLowerCase();"lr"!==t&&"rl"!==t||s(e)},undo:function(e){var t=e.graph().rankdir.toLowerCase();"bt"!==t&&"rl"!==t||function(e){n.forEach(e.nodes(),(function(t){i(e.node(t))})),n.forEach(e.edges(),(function(t){var r=e.edge(t);n.forEach(r.points,i),n.has(r,"y")&&i(r)}))}(e),"lr"!==t&&"rl"!==t||(function(e){n.forEach(e.nodes(),(function(t){o(e.node(t))})),n.forEach(e.edges(),(function(t){var r=e.edge(t);n.forEach(r.points,o),n.has(r,"x")&&o(r)}))}(e),s(e))}}},"./node_modules/dagre/lib/data/list.js":e=>{function t(){var e={};e._next=e._prev=e,this._sentinel=e}function r(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function n(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=t,t.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return r(t),t},t.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&r(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},t.prototype.toString=function(){for(var e=[],t=this._sentinel,r=t._prev;r!==t;)e.push(JSON.stringify(r,n)),r=r._prev;return"["+e.join(", ")+"]"}},"./node_modules/dagre/lib/debug.js":(e,t,r)=>{var n=r("./node_modules/dagre/lib/lodash.js"),s=r("./node_modules/dagre/lib/util.js"),a=r("./node_modules/dagre/lib/graphlib.js").Graph;e.exports={debugOrdering:function(e){var t=s.buildLayerMatrix(e),r=new a({compound:!0,multigraph:!0}).setGraph({});return n.forEach(e.nodes(),(function(t){r.setNode(t,{label:t}),r.setParent(t,"layer"+e.node(t).rank)})),n.forEach(e.edges(),(function(e){r.setEdge(e.v,e.w,{},e.name)})),n.forEach(t,(function(e,t){var s="layer"+t;r.setNode(s,{rank:"same"}),n.reduce(e,(function(e,t){return r.setEdge(e,t,{style:"invis"}),t}))})),r}}},"./node_modules/dagre/lib/graphlib.js":(e,t,r)=>{var n;try{n=r("./node_modules/graphlib/index.js")}catch(e){}n||(n=window.graphlib),e.exports=n},"./node_modules/dagre/lib/greedy-fas.js":(e,t,r)=>{var n=r("./node_modules/dagre/lib/lodash.js"),s=r("./node_modules/dagre/lib/graphlib.js").Graph,a=r("./node_modules/dagre/lib/data/list.js");e.exports=function(e,t){if(e.nodeCount()<=1)return[];var r=function(e,t){var r=new s,i=0,o=0;n.forEach(e.nodes(),(function(e){r.setNode(e,{v:e,in:0,out:0})})),n.forEach(e.edges(),(function(e){var n=r.edge(e.v,e.w)||0,s=t(e),a=n+s;r.setEdge(e.v,e.w,a),o=Math.max(o,r.node(e.v).out+=s),i=Math.max(i,r.node(e.w).in+=s)}));var c=n.range(o+i+3).map((function(){return new a})),d=i+1;return n.forEach(r.nodes(),(function(e){l(c,d,r.node(e))})),{graph:r,buckets:c,zeroIdx:d}}(e,t||i),c=function(e,t,r){for(var n,s=[],a=t[t.length-1],i=t[0];e.nodeCount();){for(;n=i.dequeue();)o(e,t,r,n);for(;n=a.dequeue();)o(e,t,r,n);if(e.nodeCount())for(var l=t.length-2;l>0;--l)if(n=t[l].dequeue()){s=s.concat(o(e,t,r,n,!0));break}}return s}(r.graph,r.buckets,r.zeroIdx);return n.flatten(n.map(c,(function(t){return e.outEdges(t.v,t.w)})),!0)};var i=n.constant(1);function o(e,t,r,s,a){var i=a?[]:void 0;return n.forEach(e.inEdges(s.v),(function(n){var s=e.edge(n),o=e.node(n.v);a&&i.push({v:n.v,w:n.w}),o.out-=s,l(t,r,o)})),n.forEach(e.outEdges(s.v),(function(n){var s=e.edge(n),a=n.w,i=e.node(a);i.in-=s,l(t,r,i)})),e.removeNode(s.v),i}function l(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}},"./node_modules/dagre/lib/layout.js":(e,t,r)=>{"use strict";var n=r("./node_modules/dagre/lib/lodash.js"),s=r("./node_modules/dagre/lib/acyclic.js"),a=r("./node_modules/dagre/lib/normalize.js"),i=r("./node_modules/dagre/lib/rank/index.js"),o=r("./node_modules/dagre/lib/util.js").normalizeRanks,l=r("./node_modules/dagre/lib/parent-dummy-chains.js"),c=r("./node_modules/dagre/lib/util.js").removeEmptyRanks,d=r("./node_modules/dagre/lib/nesting-graph.js"),u=r("./node_modules/dagre/lib/add-border-segments.js"),h=r("./node_modules/dagre/lib/coordinate-system.js"),f=r("./node_modules/dagre/lib/order/index.js"),p=r("./node_modules/dagre/lib/position/index.js"),m=r("./node_modules/dagre/lib/util.js"),g=r("./node_modules/dagre/lib/graphlib.js").Graph;e.exports=function(e,t){var r=t&&t.debugTiming?m.time:m.notime;r("layout",(function(){var t=r(" buildLayoutGraph",(function(){return function(e){var t=new g({multigraph:!0,compound:!0}),r=T(e.graph());return t.setGraph(n.merge({},_,C(r,y),n.pick(r,b))),n.forEach(e.nodes(),(function(r){var s=T(e.node(r));t.setNode(r,n.defaults(C(s,v),x)),t.setParent(r,e.parent(r))})),n.forEach(e.edges(),(function(r){var s=T(e.edge(r));t.setEdge(r,n.merge({},j,C(s,k),n.pick(s,w)))})),t}(e)}));r(" runLayout",(function(){!function(e,t){t(" makeSpaceForEdgeLabels",(function(){!function(e){var t=e.graph();t.ranksep/=2,n.forEach(e.edges(),(function(r){var n=e.edge(r);n.minlen*=2,"c"!==n.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?n.width+=n.labeloffset:n.height+=n.labeloffset)}))}(e)})),t(" removeSelfEdges",(function(){!function(e){n.forEach(e.edges(),(function(t){if(t.v===t.w){var r=e.node(t.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}}))}(e)})),t(" acyclic",(function(){s.run(e)})),t(" nestingGraph.run",(function(){d.run(e)})),t(" rank",(function(){i(m.asNonCompoundGraph(e))})),t(" injectEdgeLabelProxies",(function(){!function(e){n.forEach(e.edges(),(function(t){var r=e.edge(t);if(r.width&&r.height){var n=e.node(t.v),s={rank:(e.node(t.w).rank-n.rank)/2+n.rank,e:t};m.addDummyNode(e,"edge-proxy",s,"_ep")}}))}(e)})),t(" removeEmptyRanks",(function(){c(e)})),t(" nestingGraph.cleanup",(function(){d.cleanup(e)})),t(" normalizeRanks",(function(){o(e)})),t(" assignRankMinMax",(function(){!function(e){var t=0;n.forEach(e.nodes(),(function(r){var s=e.node(r);s.borderTop&&(s.minRank=e.node(s.borderTop).rank,s.maxRank=e.node(s.borderBottom).rank,t=n.max(t,s.maxRank))})),e.graph().maxRank=t}(e)})),t(" removeEdgeLabelProxies",(function(){!function(e){n.forEach(e.nodes(),(function(t){var r=e.node(t);"edge-proxy"===r.dummy&&(e.edge(r.e).labelRank=r.rank,e.removeNode(t))}))}(e)})),t(" normalize.run",(function(){a.run(e)})),t(" parentDummyChains",(function(){l(e)})),t(" addBorderSegments",(function(){u(e)})),t(" order",(function(){f(e)})),t(" insertSelfEdges",(function(){!function(e){var t=m.buildLayerMatrix(e);n.forEach(t,(function(t){var r=0;n.forEach(t,(function(t,s){var a=e.node(t);a.order=s+r,n.forEach(a.selfEdges,(function(t){m.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:a.rank,order:s+ ++r,e:t.e,label:t.label},"_se")})),delete a.selfEdges}))}))}(e)})),t(" adjustCoordinateSystem",(function(){h.adjust(e)})),t(" position",(function(){p(e)})),t(" positionSelfEdges",(function(){!function(e){n.forEach(e.nodes(),(function(t){var r=e.node(t);if("selfedge"===r.dummy){var n=e.node(r.e.v),s=n.x+n.width/2,a=n.y,i=r.x-s,o=n.height/2;e.setEdge(r.e,r.label),e.removeNode(t),r.label.points=[{x:s+2*i/3,y:a-o},{x:s+5*i/6,y:a-o},{x:s+i,y:a},{x:s+5*i/6,y:a+o},{x:s+2*i/3,y:a+o}],r.label.x=r.x,r.label.y=r.y}}))}(e)})),t(" removeBorderNodes",(function(){!function(e){n.forEach(e.nodes(),(function(t){if(e.children(t).length){var r=e.node(t),s=e.node(r.borderTop),a=e.node(r.borderBottom),i=e.node(n.last(r.borderLeft)),o=e.node(n.last(r.borderRight));r.width=Math.abs(o.x-i.x),r.height=Math.abs(a.y-s.y),r.x=i.x+r.width/2,r.y=s.y+r.height/2}})),n.forEach(e.nodes(),(function(t){"border"===e.node(t).dummy&&e.removeNode(t)}))}(e)})),t(" normalize.undo",(function(){a.undo(e)})),t(" fixupEdgeLabelCoords",(function(){!function(e){n.forEach(e.edges(),(function(t){var r=e.edge(t);if(n.has(r,"x"))switch("l"!==r.labelpos&&"r"!==r.labelpos||(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset}}))}(e)})),t(" undoCoordinateSystem",(function(){h.undo(e)})),t(" translateGraph",(function(){!function(e){var t=Number.POSITIVE_INFINITY,r=0,s=Number.POSITIVE_INFINITY,a=0,i=e.graph(),o=i.marginx||0,l=i.marginy||0;function c(e){var n=e.x,i=e.y,o=e.width,l=e.height;t=Math.min(t,n-o/2),r=Math.max(r,n+o/2),s=Math.min(s,i-l/2),a=Math.max(a,i+l/2)}n.forEach(e.nodes(),(function(t){c(e.node(t))})),n.forEach(e.edges(),(function(t){var r=e.edge(t);n.has(r,"x")&&c(r)})),t-=o,s-=l,n.forEach(e.nodes(),(function(r){var n=e.node(r);n.x-=t,n.y-=s})),n.forEach(e.edges(),(function(r){var a=e.edge(r);n.forEach(a.points,(function(e){e.x-=t,e.y-=s})),n.has(a,"x")&&(a.x-=t),n.has(a,"y")&&(a.y-=s)})),i.width=r-t+o,i.height=a-s+l}(e)})),t(" assignNodeIntersects",(function(){!function(e){n.forEach(e.edges(),(function(t){var r,n,s=e.edge(t),a=e.node(t.v),i=e.node(t.w);s.points?(r=s.points[0],n=s.points[s.points.length-1]):(s.points=[],r=i,n=a),s.points.unshift(m.intersectRect(a,r)),s.points.push(m.intersectRect(i,n))}))}(e)})),t(" reversePoints",(function(){!function(e){n.forEach(e.edges(),(function(t){var r=e.edge(t);r.reversed&&r.points.reverse()}))}(e)})),t(" acyclic.undo",(function(){s.undo(e)}))}(t,r)})),r(" updateInputGraph",(function(){!function(e,t){n.forEach(e.nodes(),(function(r){var n=e.node(r),s=t.node(r);n&&(n.x=s.x,n.y=s.y,t.children(r).length&&(n.width=s.width,n.height=s.height))})),n.forEach(e.edges(),(function(r){var s=e.edge(r),a=t.edge(r);s.points=a.points,n.has(a,"x")&&(s.x=a.x,s.y=a.y)})),e.graph().width=t.graph().width,e.graph().height=t.graph().height}(e,t)}))}))};var y=["nodesep","edgesep","ranksep","marginx","marginy"],_={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],v=["width","height"],x={width:0,height:0},k=["minlen","weight","width","height","labeloffset"],j={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},w=["labelpos"];function C(e,t){return n.mapValues(n.pick(e,t),Number)}function T(e){var t={};return n.forEach(e,(function(e,r){t[r.toLowerCase()]=e})),t}},"./node_modules/dagre/lib/lodash.js":(e,t,r)=>{var n;try{n={cloneDeep:r("./node_modules/lodash/cloneDeep.js"),constant:r("./node_modules/lodash/constant.js"),defaults:r("./node_modules/lodash/defaults.js"),each:r("./node_modules/lodash/each.js"),filter:r("./node_modules/lodash/filter.js"),find:r("./node_modules/lodash/find.js"),flatten:r("./node_modules/lodash/flatten.js"),forEach:r("./node_modules/lodash/forEach.js"),forIn:r("./node_modules/lodash/forIn.js"),has:r("./node_modules/lodash/has.js"),isUndefined:r("./node_modules/lodash/isUndefined.js"),last:r("./node_modules/lodash/last.js"),map:r("./node_modules/lodash/map.js"),mapValues:r("./node_modules/lodash/mapValues.js"),max:r("./node_modules/lodash/max.js"),merge:r("./node_modules/lodash/merge.js"),min:r("./node_modules/lodash/min.js"),minBy:r("./node_modules/lodash/minBy.js"),now:r("./node_modules/lodash/now.js"),pick:r("./node_modules/lodash/pick.js"),range:r("./node_modules/lodash/range.js"),reduce:r("./node_modules/lodash/reduce.js"),sortBy:r("./node_modules/lodash/sortBy.js"),uniqueId:r("./node_modules/lodash/uniqueId.js"),values:r("./node_modules/lodash/values.js"),zipObject:r("./node_modules/lodash/zipObject.js")}}catch(e){}n||(n=window._),e.exports=n},"./node_modules/dagre/lib/nesting-graph.js":(e,t,r)=>{var n=r("./node_modules/dagre/lib/lodash.js"),s=r("./node_modules/dagre/lib/util.js");function a(e,t,r,i,o,l,c){var d=e.children(c);if(d.length){var u=s.addBorderNode(e,"_bt"),h=s.addBorderNode(e,"_bb"),f=e.node(c);e.setParent(u,c),f.borderTop=u,e.setParent(h,c),f.borderBottom=h,n.forEach(d,(function(n){a(e,t,r,i,o,l,n);var s=e.node(n),d=s.borderTop?s.borderTop:n,f=s.borderBottom?s.borderBottom:n,p=s.borderTop?i:2*i,m=d!==f?1:o-l[c]+1;e.setEdge(u,d,{weight:p,minlen:m,nestingEdge:!0}),e.setEdge(f,h,{weight:p,minlen:m,nestingEdge:!0})})),e.parent(c)||e.setEdge(t,u,{weight:0,minlen:o+l[c]})}else c!==t&&e.setEdge(t,c,{weight:0,minlen:r})}e.exports={run:function(e){var t=s.addDummyNode(e,"root",{},"_root"),r=function(e){var t={};function r(s,a){var i=e.children(s);i&&i.length&&n.forEach(i,(function(e){r(e,a+1)})),t[s]=a}return n.forEach(e.children(),(function(e){r(e,1)})),t}(e),i=n.max(n.values(r))-1,o=2*i+1;e.graph().nestingRoot=t,n.forEach(e.edges(),(function(t){e.edge(t).minlen*=o}));var l=function(e){return n.reduce(e.edges(),(function(t,r){return t+e.edge(r).weight}),0)}(e)+1;n.forEach(e.children(),(function(n){a(e,t,o,l,i,r,n)})),e.graph().nodeRankFactor=o},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,n.forEach(e.edges(),(function(t){e.edge(t).nestingEdge&&e.removeEdge(t)}))}}},"./node_modules/dagre/lib/normalize.js":(e,t,r)=>{"use strict";var n=r("./node_modules/dagre/lib/lodash.js"),s=r("./node_modules/dagre/lib/util.js");e.exports={run:function(e){e.graph().dummyChains=[],n.forEach(e.edges(),(function(t){!function(e,t){var r,n,a,i=t.v,o=e.node(i).rank,l=t.w,c=e.node(l).rank,d=t.name,u=e.edge(t),h=u.labelRank;if(c!==o+1){for(e.removeEdge(t),a=0,++o;o{var n=r("./node_modules/dagre/lib/lodash.js");e.exports=function(e,t,r){var s,a={};n.forEach(r,(function(r){for(var n,i,o=e.parent(r);o;){if((n=e.parent(o))?(i=a[n],a[n]=o):(i=s,s=o),i&&i!==o)return void t.setEdge(i,o);o=n}}))}},"./node_modules/dagre/lib/order/barycenter.js":(e,t,r)=>{var n=r("./node_modules/dagre/lib/lodash.js");e.exports=function(e,t){return n.map(t,(function(t){var r=e.inEdges(t);if(r.length){var s=n.reduce(r,(function(t,r){var n=e.edge(r),s=e.node(r.v);return{sum:t.sum+n.weight*s.order,weight:t.weight+n.weight}}),{sum:0,weight:0});return{v:t,barycenter:s.sum/s.weight,weight:s.weight}}return{v:t}}))}},"./node_modules/dagre/lib/order/build-layer-graph.js":(e,t,r)=>{var n=r("./node_modules/dagre/lib/lodash.js"),s=r("./node_modules/dagre/lib/graphlib.js").Graph;e.exports=function(e,t,r){var a=function(e){for(var t;e.hasNode(t=n.uniqueId("_root")););return t}(e),i=new s({compound:!0}).setGraph({root:a}).setDefaultNodeLabel((function(t){return e.node(t)}));return n.forEach(e.nodes(),(function(s){var o=e.node(s),l=e.parent(s);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(i.setNode(s),i.setParent(s,l||a),n.forEach(e[r](s),(function(t){var r=t.v===s?t.w:t.v,a=i.edge(r,s),o=n.isUndefined(a)?0:a.weight;i.setEdge(r,s,{weight:e.edge(t).weight+o})})),n.has(o,"minRank")&&i.setNode(s,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))})),i}},"./node_modules/dagre/lib/order/cross-count.js":(e,t,r)=>{"use strict";var n=r("./node_modules/dagre/lib/lodash.js");function s(e,t,r){for(var s=n.zipObject(r,n.map(r,(function(e,t){return t}))),a=n.flatten(n.map(t,(function(t){return n.sortBy(n.map(e.outEdges(t),(function(t){return{pos:s[t.w],weight:e.edge(t).weight}})),"pos")})),!0),i=1;i0;)t%2&&(r+=l[t+1]),l[t=t-1>>1]+=e.weight;c+=e.weight*r}))),c}e.exports=function(e,t){for(var r=0,n=1;n{"use strict";var n=r("./node_modules/dagre/lib/lodash.js"),s=r("./node_modules/dagre/lib/order/init-order.js"),a=r("./node_modules/dagre/lib/order/cross-count.js"),i=r("./node_modules/dagre/lib/order/sort-subgraph.js"),o=r("./node_modules/dagre/lib/order/build-layer-graph.js"),l=r("./node_modules/dagre/lib/order/add-subgraph-constraints.js"),c=r("./node_modules/dagre/lib/graphlib.js").Graph,d=r("./node_modules/dagre/lib/util.js");function u(e,t,r){return n.map(t,(function(t){return o(e,t,r)}))}function h(e,t){var r=new c;n.forEach(e,(function(e){var s=e.graph().root,a=i(e,s,r,t);n.forEach(a.vs,(function(t,r){e.node(t).order=r})),l(e,r,a.vs)}))}function f(e,t){n.forEach(t,(function(t){n.forEach(t,(function(t,r){e.node(t).order=r}))}))}e.exports=function(e){var t=d.maxRank(e),r=u(e,n.range(1,t+1),"inEdges"),i=u(e,n.range(t-1,-1,-1),"outEdges"),o=s(e);f(e,o);for(var l,c=Number.POSITIVE_INFINITY,p=0,m=0;m<4;++p,++m){h(p%2?r:i,p%4>=2),o=d.buildLayerMatrix(e);var g=a(e,o);g{"use strict";var n=r("./node_modules/dagre/lib/lodash.js");e.exports=function(e){var t={},r=n.filter(e.nodes(),(function(t){return!e.children(t).length})),s=n.max(n.map(r,(function(t){return e.node(t).rank}))),a=n.map(n.range(s+1),(function(){return[]})),i=n.sortBy(r,(function(t){return e.node(t).rank}));return n.forEach(i,(function r(s){if(!n.has(t,s)){t[s]=!0;var i=e.node(s);a[i.rank].push(s),n.forEach(e.successors(s),r)}})),a}},"./node_modules/dagre/lib/order/resolve-conflicts.js":(e,t,r)=>{"use strict";var n=r("./node_modules/dagre/lib/lodash.js");e.exports=function(e,t){var r={};return n.forEach(e,(function(e,t){var s=r[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};n.isUndefined(e.barycenter)||(s.barycenter=e.barycenter,s.weight=e.weight)})),n.forEach(t.edges(),(function(e){var t=r[e.v],s=r[e.w];n.isUndefined(t)||n.isUndefined(s)||(s.indegree++,t.out.push(r[e.w]))})),function(e){var t=[];function r(e){return function(t){var r,s,a,i;t.merged||(n.isUndefined(t.barycenter)||n.isUndefined(e.barycenter)||t.barycenter>=e.barycenter)&&(s=t,a=0,i=0,(r=e).weight&&(a+=r.barycenter*r.weight,i+=r.weight),s.weight&&(a+=s.barycenter*s.weight,i+=s.weight),r.vs=s.vs.concat(r.vs),r.barycenter=a/i,r.weight=i,r.i=Math.min(s.i,r.i),s.merged=!0)}}function s(t){return function(r){r.in.push(t),0==--r.indegree&&e.push(r)}}for(;e.length;){var a=e.pop();t.push(a),n.forEach(a.in.reverse(),r(a)),n.forEach(a.out,s(a))}return n.map(n.filter(t,(function(e){return!e.merged})),(function(e){return n.pick(e,["vs","i","barycenter","weight"])}))}(n.filter(r,(function(e){return!e.indegree})))}},"./node_modules/dagre/lib/order/sort-subgraph.js":(e,t,r)=>{var n=r("./node_modules/dagre/lib/lodash.js"),s=r("./node_modules/dagre/lib/order/barycenter.js"),a=r("./node_modules/dagre/lib/order/resolve-conflicts.js"),i=r("./node_modules/dagre/lib/order/sort.js");e.exports=function e(t,r,o,l){var c=t.children(r),d=t.node(r),u=d?d.borderLeft:void 0,h=d?d.borderRight:void 0,f={};u&&(c=n.filter(c,(function(e){return e!==u&&e!==h})));var p=s(t,c);n.forEach(p,(function(r){if(t.children(r.v).length){var s=e(t,r.v,o,l);f[r.v]=s,n.has(s,"barycenter")&&(a=r,i=s,n.isUndefined(a.barycenter)?(a.barycenter=i.barycenter,a.weight=i.weight):(a.barycenter=(a.barycenter*a.weight+i.barycenter*i.weight)/(a.weight+i.weight),a.weight+=i.weight))}var a,i}));var m=a(p,o);!function(e,t){n.forEach(e,(function(e){e.vs=n.flatten(e.vs.map((function(e){return t[e]?t[e].vs:e})),!0)}))}(m,f);var g=i(m,l);if(u&&(g.vs=n.flatten([u,g.vs,h],!0),t.predecessors(u).length)){var y=t.node(t.predecessors(u)[0]),_=t.node(t.predecessors(h)[0]);n.has(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+y.order+_.order)/(g.weight+2),g.weight+=2}return g}},"./node_modules/dagre/lib/order/sort.js":(e,t,r)=>{var n=r("./node_modules/dagre/lib/lodash.js"),s=r("./node_modules/dagre/lib/util.js");function a(e,t,r){for(var s;t.length&&(s=n.last(t)).i<=r;)t.pop(),e.push(s.vs),r++;return r}e.exports=function(e,t){var r,i=s.partition(e,(function(e){return n.has(e,"barycenter")})),o=i.lhs,l=n.sortBy(i.rhs,(function(e){return-e.i})),c=[],d=0,u=0,h=0;o.sort((r=!!t,function(e,t){return e.barycentert.barycenter?1:r?t.i-e.i:e.i-t.i})),h=a(c,l,h),n.forEach(o,(function(e){h+=e.vs.length,c.push(e.vs),d+=e.barycenter*e.weight,u+=e.weight,h=a(c,l,h)}));var f={vs:n.flatten(c,!0)};return u&&(f.barycenter=d/u,f.weight=u),f}},"./node_modules/dagre/lib/parent-dummy-chains.js":(e,t,r)=>{var n=r("./node_modules/dagre/lib/lodash.js");e.exports=function(e){var t=function(e){var t={},r=0;return n.forEach(e.children(),(function s(a){var i=r;n.forEach(e.children(a),s),t[a]={low:i,lim:r++}})),t}(e);n.forEach(e.graph().dummyChains,(function(r){for(var n=e.node(r),s=n.edgeObj,a=function(e,t,r,n){var s,a,i=[],o=[],l=Math.min(t[r].low,t[n].low),c=Math.max(t[r].lim,t[n].lim);s=r;do{s=e.parent(s),i.push(s)}while(s&&(t[s].low>l||c>t[s].lim));for(a=s,s=n;(s=e.parent(s))!==a;)o.push(s);return{path:i.concat(o.reverse()),lca:a}}(e,t,s.v,s.w),i=a.path,o=a.lca,l=0,c=i[l],d=!0;r!==s.w;){if(n=e.node(r),d){for(;(c=i[l])!==o&&e.node(c).maxRank{"use strict";var n=r("./node_modules/dagre/lib/lodash.js"),s=r("./node_modules/dagre/lib/graphlib.js").Graph,a=r("./node_modules/dagre/lib/util.js");function i(e,t){var r={};return n.reduce(t,(function(t,s){var a=0,i=0,o=t.length,c=n.last(s);return n.forEach(s,(function(t,d){var u=function(e,t){if(e.node(t).dummy)return n.find(e.predecessors(t),(function(t){return e.node(t).dummy}))}(e,t),h=u?e.node(u).order:o;(u||t===c)&&(n.forEach(s.slice(i,d+1),(function(t){n.forEach(e.predecessors(t),(function(n){var s=e.node(n),i=s.order;!(io)&&l(r,t,c)}))}))}return n.reduce(t,(function(t,r){var a,i=-1,o=0;return n.forEach(r,(function(n,l){if("border"===e.node(n).dummy){var c=e.predecessors(n);c.length&&(a=e.node(c[0]).order,s(r,o,l,i,a),o=l,i=a)}s(r,o,r.length,a,t.length)})),r})),r}function l(e,t,r){if(t>r){var n=t;t=r,r=n}var s=e[t];s||(e[t]=s={}),s[r]=!0}function c(e,t,r){if(t>r){var s=t;t=r,r=s}return n.has(e[t],r)}function d(e,t,r,s){var a={},i={},o={};return n.forEach(t,(function(e){n.forEach(e,(function(e,t){a[e]=e,i[e]=e,o[e]=t}))})),n.forEach(t,(function(e){var t=-1;n.forEach(e,(function(e){var l=s(e);if(l.length){l=n.sortBy(l,(function(e){return o[e]}));for(var d=(l.length-1)/2,u=Math.floor(d),h=Math.ceil(d);u<=h;++u){var f=l[u];i[e]===e&&t{"use strict";var n=r("./node_modules/dagre/lib/lodash.js"),s=r("./node_modules/dagre/lib/util.js"),a=r("./node_modules/dagre/lib/position/bk.js").positionX;e.exports=function(e){(function(e){var t=s.buildLayerMatrix(e),r=e.graph().ranksep,a=0;n.forEach(t,(function(t){var s=n.max(n.map(t,(function(t){return e.node(t).height})));n.forEach(t,(function(t){e.node(t).y=a+s/2})),a+=s+r}))})(e=s.asNonCompoundGraph(e)),n.forEach(a(e),(function(t,r){e.node(r).x=t}))}},"./node_modules/dagre/lib/rank/feasible-tree.js":(e,t,r)=>{"use strict";var n=r("./node_modules/dagre/lib/lodash.js"),s=r("./node_modules/dagre/lib/graphlib.js").Graph,a=r("./node_modules/dagre/lib/rank/util.js").slack;function i(e,t){return n.forEach(e.nodes(),(function r(s){n.forEach(t.nodeEdges(s),(function(n){var i=n.v,o=s===i?n.w:i;e.hasNode(o)||a(t,n)||(e.setNode(o,{}),e.setEdge(s,o,{}),r(o))}))})),e.nodeCount()}function o(e,t){return n.minBy(t.edges(),(function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return a(t,r)}))}function l(e,t,r){n.forEach(e.nodes(),(function(e){t.node(e).rank+=r}))}e.exports=function(e){var t,r,n=new s({directed:!1}),c=e.nodes()[0],d=e.nodeCount();for(n.setNode(c,{});i(n,e){"use strict";var n=r("./node_modules/dagre/lib/rank/util.js").longestPath,s=r("./node_modules/dagre/lib/rank/feasible-tree.js"),a=r("./node_modules/dagre/lib/rank/network-simplex.js");e.exports=function(e){switch(e.graph().ranker){case"network-simplex":default:!function(e){a(e)}(e);break;case"tight-tree":!function(e){n(e),s(e)}(e);break;case"longest-path":i(e)}};var i=n},"./node_modules/dagre/lib/rank/network-simplex.js":(e,t,r)=>{"use strict";var n=r("./node_modules/dagre/lib/lodash.js"),s=r("./node_modules/dagre/lib/rank/feasible-tree.js"),a=r("./node_modules/dagre/lib/rank/util.js").slack,i=r("./node_modules/dagre/lib/rank/util.js").longestPath,o=r("./node_modules/dagre/lib/graphlib.js").alg.preorder,l=r("./node_modules/dagre/lib/graphlib.js").alg.postorder,c=r("./node_modules/dagre/lib/util.js").simplify;function d(e){e=c(e),i(e);var t,r=s(e);for(f(r),u(r,e);t=m(r);)y(r,e,t,g(r,e,t))}function u(e,t){var r=l(e,e.nodes());r=r.slice(0,r.length-1),n.forEach(r,(function(r){!function(e,t,r){var n=e.node(r).parent;e.edge(r,n).cutvalue=h(e,t,r)}(e,t,r)}))}function h(e,t,r){var s=e.node(r).parent,a=!0,i=t.edge(r,s),o=0;return i||(a=!1,i=t.edge(s,r)),o=i.weight,n.forEach(t.nodeEdges(r),(function(n){var i,l,c=n.v===r,d=c?n.w:n.v;if(d!==s){var u=c===a,h=t.edge(n).weight;if(o+=u?h:-h,i=r,l=d,e.hasEdge(i,l)){var f=e.edge(r,d).cutvalue;o+=u?-f:f}}})),o}function f(e,t){arguments.length<2&&(t=e.nodes()[0]),p(e,{},1,t)}function p(e,t,r,s,a){var i=r,o=e.node(s);return t[s]=!0,n.forEach(e.neighbors(s),(function(a){n.has(t,a)||(r=p(e,t,r,a,s))})),o.low=i,o.lim=r++,a?o.parent=a:delete o.parent,r}function m(e){return n.find(e.edges(),(function(t){return e.edge(t).cutvalue<0}))}function g(e,t,r){var s=r.v,i=r.w;t.hasEdge(s,i)||(s=r.w,i=r.v);var o=e.node(s),l=e.node(i),c=o,d=!1;o.lim>l.lim&&(c=l,d=!0);var u=n.filter(t.edges(),(function(t){return d===_(0,e.node(t.v),c)&&d!==_(0,e.node(t.w),c)}));return n.minBy(u,(function(e){return a(t,e)}))}function y(e,t,r,s){var a=r.v,i=r.w;e.removeEdge(a,i),e.setEdge(s.v,s.w,{}),f(e),u(e,t),function(e,t){var r=n.find(e.nodes(),(function(e){return!t.node(e).parent})),s=o(e,r);s=s.slice(1),n.forEach(s,(function(r){var n=e.node(r).parent,s=t.edge(r,n),a=!1;s||(s=t.edge(n,r),a=!0),t.node(r).rank=t.node(n).rank+(a?s.minlen:-s.minlen)}))}(e,t)}function _(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}e.exports=d,d.initLowLimValues=f,d.initCutValues=u,d.calcCutValue=h,d.leaveEdge=m,d.enterEdge=g,d.exchangeEdges=y},"./node_modules/dagre/lib/rank/util.js":(e,t,r)=>{"use strict";var n=r("./node_modules/dagre/lib/lodash.js");e.exports={longestPath:function(e){var t={};n.forEach(e.sources(),(function r(s){var a=e.node(s);if(n.has(t,s))return a.rank;t[s]=!0;var i=n.min(n.map(e.outEdges(s),(function(t){return r(t.w)-e.edge(t).minlen})));return i!==Number.POSITIVE_INFINITY&&null!=i||(i=0),a.rank=i}))},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},"./node_modules/dagre/lib/util.js":(e,t,r)=>{"use strict";var n=r("./node_modules/dagre/lib/lodash.js"),s=r("./node_modules/dagre/lib/graphlib.js").Graph;function a(e,t,r,s){var a;do{a=n.uniqueId(s)}while(e.hasNode(a));return r.dummy=t,e.setNode(a,r),a}function i(e){return n.max(n.map(e.nodes(),(function(t){var r=e.node(t).rank;if(!n.isUndefined(r))return r})))}e.exports={addDummyNode:a,simplify:function(e){var t=(new s).setGraph(e.graph());return n.forEach(e.nodes(),(function(r){t.setNode(r,e.node(r))})),n.forEach(e.edges(),(function(r){var n=t.edge(r.v,r.w)||{weight:0,minlen:1},s=e.edge(r);t.setEdge(r.v,r.w,{weight:n.weight+s.weight,minlen:Math.max(n.minlen,s.minlen)})})),t},asNonCompoundGraph:function(e){var t=new s({multigraph:e.isMultigraph()}).setGraph(e.graph());return n.forEach(e.nodes(),(function(r){e.children(r).length||t.setNode(r,e.node(r))})),n.forEach(e.edges(),(function(r){t.setEdge(r,e.edge(r))})),t},successorWeights:function(e){var t=n.map(e.nodes(),(function(t){var r={};return n.forEach(e.outEdges(t),(function(t){r[t.w]=(r[t.w]||0)+e.edge(t).weight})),r}));return n.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=n.map(e.nodes(),(function(t){var r={};return n.forEach(e.inEdges(t),(function(t){r[t.v]=(r[t.v]||0)+e.edge(t).weight})),r}));return n.zipObject(e.nodes(),t)},intersectRect:function(e,t){var r,n,s=e.x,a=e.y,i=t.x-s,o=t.y-a,l=e.width/2,c=e.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(o)*l>Math.abs(i)*c?(o<0&&(c=-c),r=c*i/o,n=c):(i<0&&(l=-l),r=l,n=l*o/i),{x:s+r,y:a+n}},buildLayerMatrix:function(e){var t=n.map(n.range(i(e)+1),(function(){return[]}));return n.forEach(e.nodes(),(function(r){var s=e.node(r),a=s.rank;n.isUndefined(a)||(t[a][s.order]=r)})),t},normalizeRanks:function(e){var t=n.min(n.map(e.nodes(),(function(t){return e.node(t).rank})));n.forEach(e.nodes(),(function(r){var s=e.node(r);n.has(s,"rank")&&(s.rank-=t)}))},removeEmptyRanks:function(e){var t=n.min(n.map(e.nodes(),(function(t){return e.node(t).rank}))),r=[];n.forEach(e.nodes(),(function(n){var s=e.node(n).rank-t;r[s]||(r[s]=[]),r[s].push(n)}));var s=0,a=e.graph().nodeRankFactor;n.forEach(r,(function(t,r){n.isUndefined(t)&&r%a!=0?--s:s&&n.forEach(t,(function(t){e.node(t).rank+=s}))}))},addBorderNode:function(e,t,r,n){var s={width:0,height:0};return arguments.length>=4&&(s.rank=r,s.order=n),a(e,"border",s,t)},maxRank:i,partition:function(e,t){var r={lhs:[],rhs:[]};return n.forEach(e,(function(e){t(e)?r.lhs.push(e):r.rhs.push(e)})),r},time:function(e,t){var r=n.now();try{return t()}finally{console.log(e+" time: "+(n.now()-r)+"ms")}},notime:function(e,t){return t()}}},"./node_modules/dagre/lib/version.js":e=>{e.exports="0.8.5"},"./node_modules/dompurify/dist/purify.js":function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,r){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,r)}function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function n(e,s,a){return n=r()?Reflect.construct:function(e,r,n){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(e,s));return n&&t(a,n.prototype),a},n.apply(null,arguments)}function s(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?r-1:0),s=1;s/gm),G=h(/^data-[\-\w.\u00B7-\uFFFF]/),$=h(/^aria-[\-\w]+$/),H=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V=h(/^(?:\w+script|data):/i),X=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=h(/^html$/i),Z=function(){return"undefined"==typeof window?null:window},Q=function(t,r){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var n=null,s="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(s)&&(n=r.currentScript.getAttribute(s));var a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};return function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z(),n=function(e){return t(e)};if(n.version="2.3.8",n.removed=[],!r||!r.document||9!==r.document.nodeType)return n.isSupported=!1,n;var a=r.document,i=r.document,o=r.DocumentFragment,l=r.HTMLTemplateElement,c=r.Node,d=r.Element,h=r.NodeFilter,f=r.NamedNodeMap,p=void 0===f?r.NamedNodeMap||r.MozNamedAttrMap:f,m=r.HTMLFormElement,g=r.DOMParser,y=r.trustedTypes,S=d.prototype,J=D(S,"cloneNode"),ee=D(S,"nextSibling"),te=D(S,"childNodes"),re=D(S,"parentNode");if("function"==typeof l){var ne=i.createElement("template");ne.content&&ne.content.ownerDocument&&(i=ne.content.ownerDocument)}var se=Q(y,a),ae=se?se.createHTML(""):"",ie=i,oe=ie.implementation,le=ie.createNodeIterator,ce=ie.createDocumentFragment,de=ie.getElementsByTagName,ue=a.importNode,he={};try{he=M(i).documentMode?i.documentMode:{}}catch(e){}var fe={};n.isSupported="function"==typeof re&&oe&&void 0!==oe.createHTMLDocument&&9!==he;var pe,me,ge=U,ye=W,_e=G,be=$,ve=V,xe=X,ke=H,je=null,we=A({},[].concat(s(O),s(B),s(I),s(L),s(F))),Ce=null,Te=A({},[].concat(s(P),s(z),s(q),s(Y))),Ee=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Se=null,Ae=null,Me=!0,De=!0,Oe=!1,Be=!1,Ie=!1,Ne=!1,Le=!1,Re=!1,Fe=!1,Pe=!1,ze=!0,qe=!0,Ye=!1,Ue={},We=null,Ge=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),$e=null,He=A({},["audio","video","img","source","image","track"]),Ve=null,Xe=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ke="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml",Je=Qe,et=!1,tt=["application/xhtml+xml","text/html"],rt="text/html",nt=null,st=i.createElement("form"),at=function(e){return e instanceof RegExp||e instanceof Function},it=function(t){nt&&nt===t||(t&&"object"===e(t)||(t={}),t=M(t),je="ALLOWED_TAGS"in t?A({},t.ALLOWED_TAGS):we,Ce="ALLOWED_ATTR"in t?A({},t.ALLOWED_ATTR):Te,Ve="ADD_URI_SAFE_ATTR"in t?A(M(Xe),t.ADD_URI_SAFE_ATTR):Xe,$e="ADD_DATA_URI_TAGS"in t?A(M(He),t.ADD_DATA_URI_TAGS):He,We="FORBID_CONTENTS"in t?A({},t.FORBID_CONTENTS):Ge,Se="FORBID_TAGS"in t?A({},t.FORBID_TAGS):{},Ae="FORBID_ATTR"in t?A({},t.FORBID_ATTR):{},Ue="USE_PROFILES"in t&&t.USE_PROFILES,Me=!1!==t.ALLOW_ARIA_ATTR,De=!1!==t.ALLOW_DATA_ATTR,Oe=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Be=t.SAFE_FOR_TEMPLATES||!1,Ie=t.WHOLE_DOCUMENT||!1,Re=t.RETURN_DOM||!1,Fe=t.RETURN_DOM_FRAGMENT||!1,Pe=t.RETURN_TRUSTED_TYPE||!1,Le=t.FORCE_BODY||!1,ze=!1!==t.SANITIZE_DOM,qe=!1!==t.KEEP_CONTENT,Ye=t.IN_PLACE||!1,ke=t.ALLOWED_URI_REGEXP||ke,Je=t.NAMESPACE||Qe,t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ee.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ee.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ee.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),pe=pe=-1===tt.indexOf(t.PARSER_MEDIA_TYPE)?rt:t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===pe?function(e){return e}:x,Be&&(De=!1),Fe&&(Re=!0),Ue&&(je=A({},s(F)),Ce=[],!0===Ue.html&&(A(je,O),A(Ce,P)),!0===Ue.svg&&(A(je,B),A(Ce,z),A(Ce,Y)),!0===Ue.svgFilters&&(A(je,I),A(Ce,z),A(Ce,Y)),!0===Ue.mathMl&&(A(je,L),A(Ce,q),A(Ce,Y))),t.ADD_TAGS&&(je===we&&(je=M(je)),A(je,t.ADD_TAGS)),t.ADD_ATTR&&(Ce===Te&&(Ce=M(Ce)),A(Ce,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&A(Ve,t.ADD_URI_SAFE_ATTR),t.FORBID_CONTENTS&&(We===Ge&&(We=M(We)),A(We,t.FORBID_CONTENTS)),qe&&(je["#text"]=!0),Ie&&A(je,["html","head","body"]),je.table&&(A(je,["tbody"]),delete Se.tbody),u&&u(t),nt=t)},ot=A({},["mi","mo","mn","ms","mtext"]),lt=A({},["foreignobject","desc","title","annotation-xml"]),ct=A({},["title","style","font","a","script"]),dt=A({},B);A(dt,I),A(dt,N);var ut=A({},L);A(ut,R);var ht=function(e){var t=re(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});var r=x(e.tagName),n=x(t.tagName);return e.namespaceURI===Ze?t.namespaceURI===Qe?"svg"===r:t.namespaceURI===Ke?"svg"===r&&("annotation-xml"===n||ot[n]):Boolean(dt[r]):e.namespaceURI===Ke?t.namespaceURI===Qe?"math"===r:t.namespaceURI===Ze?"math"===r&<[n]:Boolean(ut[r]):e.namespaceURI===Qe&&!(t.namespaceURI===Ze&&!lt[n])&&!(t.namespaceURI===Ke&&!ot[n])&&!ut[r]&&(ct[r]||!dt[r])},ft=function(e){v(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ae}catch(t){e.remove()}}},pt=function(e,t){try{v(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){v(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ce[e])if(Re||Fe)try{ft(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},mt=function(e){var t,r;if(Le)e=""+e;else{var n=k(e,/^[\r\n\t ]+/);r=n&&n[0]}"application/xhtml+xml"===pe&&(e=''+e+"");var s=se?se.createHTML(e):e;if(Je===Qe)try{t=(new g).parseFromString(s,pe)}catch(e){}if(!t||!t.documentElement){t=oe.createDocument(Je,"template",null);try{t.documentElement.innerHTML=et?"":s}catch(e){}}var a=t.body||t.documentElement;return e&&r&&a.insertBefore(i.createTextNode(r),a.childNodes[0]||null),Je===Qe?de.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:a},gt=function(e){return le.call(e.ownerDocument||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},yt=function(e){return e instanceof m&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof p)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},_t=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},bt=function(e,t,r){fe[e]&&_(fe[e],(function(e){e.call(n,t,r,nt)}))},vt=function(e){var t;if(bt("beforeSanitizeElements",e,null),yt(e))return ft(e),!0;if(T(/[\u0080-\uFFFF]/,e.nodeName))return ft(e),!0;var r=me(e.nodeName);if(bt("uponSanitizeElement",e,{tagName:r,allowedTags:je}),e.hasChildNodes()&&!_t(e.firstElementChild)&&(!_t(e.content)||!_t(e.content.firstElementChild))&&T(/<[/\w]/g,e.innerHTML)&&T(/<[/\w]/g,e.textContent))return ft(e),!0;if("select"===r&&T(/