@softistx/pulsarix-widget 0.8.5 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/README.md +76 -48
  2. package/dist/chunks/{abnfDiagram-XWFEHMT6.b9yk4x5x.js → abnfDiagram-XWFEHMT6.rxx9wyp3.js} +1 -1
  3. package/dist/chunks/architecture-WOLXFQ4H.hwrxbct0.js +1 -0
  4. package/dist/chunks/architectureDiagram-CSQXQB3N.mrm0pgc0.js +36 -0
  5. package/dist/chunks/{blockDiagram-BEDRHYPZ.bb08b9nt.js → blockDiagram-BEDRHYPZ.f4dfpk7e.js} +11 -11
  6. package/dist/chunks/{c4Diagram-M2UUVUY5.px0epccd.js → c4Diagram-M2UUVUY5.rz43j1my.js} +3 -3
  7. package/dist/chunks/{chat-markdown-CrbWbK1O.k4nmgyey.js → chat-markdown-BSu4FB_l.xgn4yj83.js} +29 -29
  8. package/dist/chunks/{classDiagram-v2-KXABOMEV.f02387t9.js → classDiagram-v2-KXABOMEV.m96cfcad.js} +8 -8
  9. package/dist/chunks/cose-bilkent-JH36ORCC.zz2rwyw6.js +1 -0
  10. package/dist/chunks/cynefin-EF2NZ3EQ.y29bn1cz.js +1 -0
  11. package/dist/chunks/{cynefinDiagram-NJNITYFG.zt7gprt1.js → cynefinDiagram-NJNITYFG.az2k68wq.js} +1 -1
  12. package/dist/chunks/{dagre-KIHZ2IZ3.702bqbr9.js → dagre-KIHZ2IZ3.mgwg8bc4.js} +2 -2
  13. package/dist/chunks/{diagram-7YQZDPLS.m7vf21j6.js → diagram-7YQZDPLS.x8fg6705.js} +2 -2
  14. package/dist/chunks/{diagram-QBROCOUO.33e5hv7x.js → diagram-QBROCOUO.db60dsss.js} +24 -24
  15. package/dist/chunks/{diagram-RJJCUUZO.94k74bz7.js → diagram-RJJCUUZO.a7e9w297.js} +4 -4
  16. package/dist/chunks/{diagram-WERXNKYE.7fe849z6.js → diagram-WERXNKYE.a04f53kd.js} +2 -2
  17. package/dist/chunks/diagram-YHHI257C.v19jhmrh.js +3 -0
  18. package/dist/chunks/{diagram-YR4HJLHV.310x2we2.js → diagram-YR4HJLHV.c5e87gmw.js} +1 -1
  19. package/dist/chunks/{ebnfDiagram-N527522P.a4crteq1.js → ebnfDiagram-N527522P.bjrxfgze.js} +1 -1
  20. package/dist/chunks/editor-shortcuts-dialog-Cz3T8435.5ve4nsaw.js +1 -0
  21. package/dist/chunks/editor.yak1qktd.js +4 -0
  22. package/dist/chunks/{elk-O5DQBFGD.dx61etan.js → elk-O5DQBFGD.1ydp0b7a.js} +13 -13
  23. package/dist/chunks/emoji-picker-00Bw2c2b.gzznrrz5.js +4 -0
  24. package/dist/chunks/{erDiagram-K3K3BIDK.qzqv67zm.js → erDiagram-K3K3BIDK.g171ckq1.js} +8 -8
  25. package/dist/chunks/eventmodeling-K75KTNOO.46qfxqj7.js +1 -0
  26. package/dist/chunks/{flow-diagram-AiM6FiIm.73jr19pb.js → flow-diagram-DGZOc1z1.3gbgbm5m.js} +6 -6
  27. package/dist/chunks/flowDiagram-Z6JWZHQI.f0eaj70g.js +1 -0
  28. package/dist/chunks/{ganttDiagram-3PRQTZWP.xngzb32h.js → ganttDiagram-3PRQTZWP.3b9dh4nr.js} +5 -5
  29. package/dist/chunks/gitGraph-VSP46ZUC.swware7n.js +1 -0
  30. package/dist/chunks/{gitGraphDiagram-VXDFKS5L.1sm36z2q.js → gitGraphDiagram-VXDFKS5L.thyp7vsd.js} +22 -22
  31. package/dist/chunks/{grid-E2QIVN74.76pgtn2n.js → grid-E2QIVN74.entqjpa3.js} +1 -1
  32. package/dist/chunks/illustration-BcaGDjvB.1q9xtmyq.js +1 -0
  33. package/dist/chunks/{index.r0p3fm9f.js → index.0g1t1pjx.js} +1 -1
  34. package/dist/chunks/{index.rfyzb2yv.js → index.35d4zbh8.js} +4 -4
  35. package/dist/chunks/index.5fcbba6e.js +2 -0
  36. package/dist/chunks/{index.7gxz6d1f.js → index.6pzexww5.js} +10 -10
  37. package/dist/chunks/{index.zm5x44tn.js → index.8vaktk8x.js} +1 -1
  38. package/dist/chunks/{index.dnnzjw18.js → index.8zg579vd.js} +2 -2
  39. package/dist/chunks/{index.0k4tbjhp.js → index.9n1y396a.js} +1 -1
  40. package/dist/chunks/{index.8f3x951p.js → index.a3njhfdd.js} +2 -2
  41. package/dist/chunks/{index.a6rz456z.js → index.cw97ff3b.js} +2 -2
  42. package/dist/chunks/{index.fv9af3wd.js → index.d57x7pg9.js} +6 -6
  43. package/dist/chunks/{index.fbeztcp3.js → index.g2ba0pke.js} +2 -2
  44. package/dist/chunks/index.h1xzvasx.js +2 -0
  45. package/dist/chunks/{index.hvdnkr5m.js → index.qr6a02kx.js} +2 -2
  46. package/dist/chunks/index.rkgfxpm3.js +44 -0
  47. package/dist/chunks/index.sw8gvntb.js +2 -0
  48. package/dist/chunks/{index.0e4s8r4m.js → index.v02zf4zg.js} +2 -2
  49. package/dist/chunks/{index.t34t6kpe.js → index.w1516g8q.js} +35 -35
  50. package/dist/chunks/{index.9bf5qrah.js → index.w4emtsqw.js} +2 -2
  51. package/dist/chunks/{index.nsckd1vt.js → index.yhmqh641.js} +2 -2
  52. package/dist/chunks/{index.1d7qpsyx.js → index.zkngte5k.js} +2 -2
  53. package/dist/chunks/{index.a1bxkgd3.js → index.zkx4ryzt.js} +104 -104
  54. package/dist/chunks/info-OHQRW6UA.1er9b42t.js +1 -0
  55. package/dist/chunks/{infoDiagram-EZ3ZOAHP.pfd0fjwn.js → infoDiagram-EZ3ZOAHP.833fvq8n.js} +2 -2
  56. package/dist/chunks/{ishikawaDiagram-S3EKX5GW.h5kjez1x.js → ishikawaDiagram-S3EKX5GW.q3evaw24.js} +5 -5
  57. package/dist/chunks/{journeyDiagram-POQNLL5X.55cqc9p0.js → journeyDiagram-POQNLL5X.9werrmpy.js} +5 -5
  58. package/dist/chunks/{kanban-definition-BH5XI6FM.pkdvda4y.js → kanban-definition-BH5XI6FM.f3ssda0m.js} +7 -7
  59. package/dist/chunks/markup-color-chrome-ykGNUl8y.pcgw4znz.js +1 -0
  60. package/dist/chunks/markup-custom-color-MM-HnrqY.sygnt3gs.js +1 -0
  61. package/dist/chunks/mention-list-6cR5VSPa.x0x55xzp.js +1 -0
  62. package/dist/chunks/{mermaid.core.j7s05j63.js → mermaid.core.5cqab0cw.js} +7 -7
  63. package/dist/chunks/{mindmap-definition-WVAN44T4.x3jbxvft.js → mindmap-definition-WVAN44T4.pjjxgse0.js} +6 -6
  64. package/dist/chunks/packet-JDAUHWVQ.t5jwb2rb.js +1 -0
  65. package/dist/chunks/panel.2vwd6k3h.js +7 -0
  66. package/dist/chunks/{pegDiagram-D4NLKWP3.xq15gqy9.js → pegDiagram-D4NLKWP3.mdacgbzb.js} +1 -1
  67. package/dist/chunks/pie-XZMESJXO.pe88zesw.js +1 -0
  68. package/dist/chunks/pieDiagram-36ENHN4W.fb0d6a9w.js +39 -0
  69. package/dist/chunks/plated-illustration-pTqcYOQg.6b9fm4a7.js +1 -0
  70. package/dist/chunks/{quadrantDiagram-ZQUDMS73.k28g8jpn.js → quadrantDiagram-ZQUDMS73.m5cgqatg.js} +4 -4
  71. package/dist/chunks/radar-ABXABTNO.jtbddwfq.js +1 -0
  72. package/dist/chunks/railroad-I3PHUGI6.kvyt0f9s.js +1 -0
  73. package/dist/chunks/railroad-abnf-LNEFI6M7.ybx0vspg.js +1 -0
  74. package/dist/chunks/railroad-ebnf-DWYD2UWJ.yx4c4enn.js +1 -0
  75. package/dist/chunks/railroad-peg-JR7BVNR7.mb71eyqe.js +1 -0
  76. package/dist/chunks/{railroadDiagram-JIZHGYPL.e7p2vqgg.js → railroadDiagram-JIZHGYPL.w2e1k61e.js} +1 -1
  77. package/dist/chunks/{render-VIF2ZAQL.w5ytncsg.js → render-VIF2ZAQL.exs2rt60.js} +1 -1
  78. package/dist/chunks/{requirementDiagram-AXW2TVFA.arekdz02.js → requirementDiagram-AXW2TVFA.mrxb120d.js} +4 -4
  79. package/dist/chunks/{sankeyDiagram-FBCJTAIF.1d04xcmb.js → sankeyDiagram-FBCJTAIF.csj5n1sg.js} +6 -6
  80. package/dist/chunks/{sequenceDiagram-3LA2ROMG.j4xywwp1.js → sequenceDiagram-3LA2ROMG.73qx1ab4.js} +11 -11
  81. package/dist/chunks/{sizeCapture-2Q2CQKSF.862bnf6p.js → sizeCapture-2Q2CQKSF.vfe8maj3.js} +1 -1
  82. package/dist/chunks/{stateDiagram-v2-ATKHQDJO.xvvtr0y2.js → stateDiagram-v2-ATKHQDJO.h4grfmy4.js} +8 -8
  83. package/dist/chunks/{swimlanes-YQL5WMAO.dtnjb4xt.js → swimlanes-YQL5WMAO.e2y8jam1.js} +1 -1
  84. package/dist/chunks/swimlanesDiagram-UCCPES4V.dtthssd5.js +8 -0
  85. package/dist/chunks/{timeline-definition-7Z437IG3.zfhqzc4r.js → timeline-definition-7Z437IG3.2zxa6hz5.js} +9 -9
  86. package/dist/chunks/treeView-D4JQ5SDB.3kgztv30.js +1 -0
  87. package/dist/chunks/treemap-SAJKECNS.xj47e2ae.js +1 -0
  88. package/dist/chunks/{usecaseDiagram-RDK6N6HP.ewxnyz4c.js → usecaseDiagram-RDK6N6HP.61cdyktj.js} +57 -57
  89. package/dist/chunks/{vennDiagram-SHRQU5PJ.wkzf1f00.js → vennDiagram-SHRQU5PJ.4tspw3rs.js} +7 -7
  90. package/dist/chunks/wardley-7MLQ67FV.pckbr6zr.js +1 -0
  91. package/dist/chunks/{wardleyDiagram-F3OXNVQS.srjfm4nb.js → wardleyDiagram-F3OXNVQS.q2p8tshx.js} +4 -4
  92. package/dist/chunks/{xychartDiagram-GDYJKCDI.xfa2vexk.js → xychartDiagram-GDYJKCDI.69desp9j.js} +5 -5
  93. package/dist/index.js +48 -21
  94. package/dist/react.js +74 -0
  95. package/dist/server.js +20 -0
  96. package/dist/types/config.d.ts +1 -1
  97. package/dist/types/mount.d.ts +1 -1
  98. package/dist/types/react.d.ts +27 -0
  99. package/dist/types/server.d.ts +15 -0
  100. package/docs/integration.md +109 -36
  101. package/package.json +20 -5
  102. package/dist/chunks/architecture-WOLXFQ4H.aft3rkrr.js +0 -1
  103. package/dist/chunks/architectureDiagram-CSQXQB3N.qz18rz0g.js +0 -36
  104. package/dist/chunks/cose-bilkent-JH36ORCC.azq9k24r.js +0 -1
  105. package/dist/chunks/cynefin-EF2NZ3EQ.dk039jny.js +0 -1
  106. package/dist/chunks/diagram-YHHI257C.qjjjfq7w.js +0 -3
  107. package/dist/chunks/editor-shortcuts-dialog-B0ppoiza.x3p4h07t.js +0 -1
  108. package/dist/chunks/editor.arg3zy29.js +0 -4
  109. package/dist/chunks/emoji-picker-CbvQZ2ZL.nst616hd.js +0 -4
  110. package/dist/chunks/eventmodeling-K75KTNOO.gmm1bcak.js +0 -1
  111. package/dist/chunks/flowDiagram-Z6JWZHQI.fzwqg115.js +0 -1
  112. package/dist/chunks/gitGraph-VSP46ZUC.0m8jykgw.js +0 -1
  113. package/dist/chunks/illustration-BOW28wq5.bkz28k1x.js +0 -1
  114. package/dist/chunks/index.32jxrb9b.js +0 -2
  115. package/dist/chunks/index.7k5v3p25.js +0 -2
  116. package/dist/chunks/index.e35b4yh5.js +0 -44
  117. package/dist/chunks/index.wrjdgn4c.js +0 -2
  118. package/dist/chunks/info-OHQRW6UA.e0a85drn.js +0 -1
  119. package/dist/chunks/markup-color-chrome-ykGNUl8y.0ds56d6x.js +0 -1
  120. package/dist/chunks/markup-custom-color-Dgm2hHI7.7darvajx.js +0 -1
  121. package/dist/chunks/mention-list-CkAUzPBG.mtjgmmzb.js +0 -1
  122. package/dist/chunks/packet-JDAUHWVQ.52409p3r.js +0 -1
  123. package/dist/chunks/panel.9tp7gr60.js +0 -7
  124. package/dist/chunks/pie-XZMESJXO.q5kre8cx.js +0 -1
  125. package/dist/chunks/pieDiagram-36ENHN4W.8h0wam54.js +0 -39
  126. package/dist/chunks/plated-illustration-COZYWJ81.xy7ba5mq.js +0 -1
  127. package/dist/chunks/radar-ABXABTNO.yk872k2n.js +0 -1
  128. package/dist/chunks/railroad-I3PHUGI6.9wfa6vs3.js +0 -1
  129. package/dist/chunks/railroad-abnf-LNEFI6M7.70zznk3b.js +0 -1
  130. package/dist/chunks/railroad-ebnf-DWYD2UWJ.4pvdng0p.js +0 -1
  131. package/dist/chunks/railroad-peg-JR7BVNR7.ev15ebp6.js +0 -1
  132. package/dist/chunks/swimlanesDiagram-UCCPES4V.0q8kd5qn.js +0 -8
  133. package/dist/chunks/treeView-D4JQ5SDB.3fzswdjp.js +0 -1
  134. package/dist/chunks/treemap-SAJKECNS.cgh74bhn.js +0 -1
  135. package/dist/chunks/wardley-7MLQ67FV.6q5tgt0s.js +0 -1
@@ -0,0 +1,2 @@
1
+ import{sa}from"./index.rkgfxpm3.js";var X={};sa(X,{default:()=>Ot});var J={};sa(J,{default:()=>or});var Mr=typeof global=="object"&&global&&global.Object===Object&&global,H=Mr;var Nr=typeof self=="object"&&self&&self.Object===Object&&self,Dr=H||Nr||Function("return this")(),Ae=Dr;var Rr=Ae.Symbol,je=Rr;var St=Object.prototype,{hasOwnProperty:Br,toString:Wr}=St,G=je?je.toStringTag:void 0;function Kr(t){var e=Br.call(t,G),r=t[G];try{t[G]=void 0;var o=!0}catch(f){}var a=Wr.call(t);if(o)if(e)t[G]=r;else delete t[G];return a}var Pt=Kr;var kr=Object.prototype,Yr=kr.toString;function Xr(t){return Yr.call(t)}var Ct=Xr;var Zr="[object Null]",Jr="[object Undefined]",Et=je?je.toStringTag:void 0;function Qr(t){if(t==null)return t===void 0?Jr:Zr;return Et&&Et in Object(t)?Pt(t):Ct(t)}var ot=Qr;function Vr(t){return t!=null&&typeof t=="object"}var Ne=Vr;var to="[object Symbol]";function eo(t){return typeof t=="symbol"||Ne(t)&&ot(t)==to}var bt=eo;function ro(t,e){var r=-1,o=t==null?0:t.length,a=Array(o);while(++r<o)a[r]=e(t[r],r,t);return a}var ar=ro;var oo=Array.isArray,te=oo;var ao=1/0,It=je?je.prototype:void 0,Lt=It?It.toString:void 0;function jt(t){if(typeof t=="string")return t;if(te(t))return ar(t,jt)+"";if(bt(t))return Lt?Lt.call(t):"";var e=t+"";return e=="0"&&1/t==-ao?"-0":e}var Mt=jt;function fo(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var we=fo;function io(t){return t}var ht=io;var no="[object AsyncFunction]",so="[object Function]",po="[object GeneratorFunction]",uo="[object Proxy]";function mo(t){if(!we(t))return!1;var e=ot(t);return e==so||e==po||e==no||e==uo}var ir=mo;var lo=Ae["__core-js_shared__"],q=lo;var Dt=function(){var t=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function xo(t){return!!Dt&&Dt in t}var Rt=xo;var ho=Function.prototype,co=ho.toString;function go(t){if(t!=null){try{return co.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var y=go;var yo=/[\\^$.*+?()[\]{}|]/g,_o=/^\[object .+?Constructor\]$/,bo=Function.prototype,vo=Object.prototype,Oo=bo.toString,Ao=vo.hasOwnProperty,To=RegExp("^"+Oo.call(Ao).replace(yo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wo(t){if(!we(t)||Rt(t))return!1;var e=ir(t)?To:_o;return e.test(y(t))}var Ft=wo;function So(t,e){return t==null?void 0:t[e]}var Bt=So;function Po(t,e){var r=Bt(t,e);return Ft(r)?r:void 0}var x=Po;var Co=x(Ae,"WeakMap"),k=Co;function Eo(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var Gt=Eo;function Io(){}var Ut=Io;var Lo=800,jo=16,Mo=Date.now;function No(t){var e=0,r=0;return function(){var o=Mo(),a=jo-(o-r);if(r=o,a>0){if(++e>=Lo)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var zt=No;function Do(t){return function(){return t}}var pt=Do;var Ro=function(){try{var t=x(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),Hn=Ro;var Fo=!Hn?ht:function(t,e){return Hn(t,"toString",{configurable:!0,enumerable:!1,value:pt(e),writable:!0})},Kt=Fo;var Bo=zt(Kt),Pi=Bo;function Go(t,e){var r=-1,o=t==null?0:t.length;while(++r<o)if(e(t[r],r,t)===!1)break;return t}var Bi=Go;function Uo(t,e,r,o){var a=t.length,f=r+(o?1:-1);while(o?f--:++f<a)if(e(t[f],f,t))return f;return-1}var Fi=Uo;function zo(t){return t!==t}var Ht=zo;function Wo(t,e,r){var o=r-1,a=t.length;while(++o<a)if(t[o]===e)return o;return-1}var qt=Wo;function Ko(t,e,r){return e===e?qt(t,e,r):Fi(t,Ht,r)}var $t=Ko;function Ho(t,e){var r=t==null?0:t.length;return!!r&&$t(t,e,0)>-1}var kt=Ho;var qo=9007199254740991,$o=/^(?:0|[1-9]\d*)$/;function ko(t,e){var r=typeof t;return e=e==null?qo:e,!!e&&(r=="number"||r!="symbol"&&$o.test(t))&&(t>-1&&t%1==0&&t<e)}var Fr=ko;function Yo(t,e){return t===e||t!==t&&e!==e}var Nt=Yo;var Yt=Math.max;function Xo(t,e,r){return e=Yt(e===void 0?t.length-1:e,0),function(){var o=arguments,a=-1,f=Yt(o.length-e,0),i=Array(f);while(++a<f)i[a]=o[e+a];a=-1;var n=Array(e+1);while(++a<e)n[a]=o[a];return n[e]=r(i),Gt(t,this,n)}}var $i=Xo;function Zo(t,e){return Pi($i(t,e,ht),t+"")}var $r=Zo;var Jo=9007199254740991;function Qo(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Jo}var j=Qo;function Vo(t){return t!=null&&j(t.length)&&!ir(t)}var Ge=Vo;var ta=Object.prototype;function ea(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||ta;return t===r}var zr=ea;function ra(t,e){var r=-1,o=Array(t);while(++r<t)o[r]=e(r);return o}var Xt=ra;var oa="[object Arguments]";function aa(t){return Ne(t)&&ot(t)==oa}var dt=aa;var Zt=Object.prototype,{hasOwnProperty:fa,propertyIsEnumerable:ia}=Zt,na=dt(function(){return arguments}())?dt:function(t){return Ne(t)&&fa.call(t,"callee")&&!ia.call(t,"callee")},Wt=na;function pa(){return!1}var Jt=pa;var ee=typeof X=="object"&&X&&!X.nodeType&&X,Qt=ee&&typeof Y=="object"&&Y&&!Y.nodeType&&Y,ua=Qt&&Qt.exports===ee,Vt=ua?Ae.Buffer:void 0,ma=Vt?Vt.isBuffer:void 0,la=ma||Jt,Ot=la;var da="[object Arguments]",xa="[object Array]",ha="[object Boolean]",ca="[object Date]",ga="[object Error]",ya="[object Function]",_a="[object Map]",ba="[object Number]",va="[object Object]",Oa="[object RegExp]",Aa="[object Set]",wa="[object String]",Sa="[object WeakMap]",Pa="[object ArrayBuffer]",Ca="[object DataView]",Ea="[object Float32Array]",Ia="[object Float64Array]",La="[object Int8Array]",ja="[object Int16Array]",Ma="[object Int32Array]",Na="[object Uint8Array]",Da="[object Uint8ClampedArray]",Ra="[object Uint16Array]",Fa="[object Uint32Array]",u={};u[Ea]=u[Ia]=u[La]=u[ja]=u[Ma]=u[Na]=u[Da]=u[Ra]=u[Fa]=!0;u[da]=u[xa]=u[Pa]=u[ha]=u[Ca]=u[ca]=u[ga]=u[ya]=u[_a]=u[ba]=u[va]=u[Oa]=u[Aa]=u[wa]=u[Sa]=!1;function Ba(t){return Ne(t)&&j(t.length)&&!!u[ot(t)]}var re=Ba;function Ga(t){return function(e){return t(e)}}var Hr=Ga;var oe=typeof J=="object"&&J&&!J.nodeType&&J,U=oe&&typeof Z=="object"&&Z&&!Z.nodeType&&Z,Ua=U&&U.exports===oe,xt=Ua&&H.process,za=function(){try{var t=U&&U.require&&U.require("util").types;if(t)return t;return xt&&xt.binding&&xt.binding("util")}catch(e){}}(),or=za;var ae=or&&or.isTypedArray,Wa=ae?Hr(ae):re,Ur=Wa;var Ka=Object.prototype,Ha=Ka.hasOwnProperty;function qa(t,e){var r=te(t),o=!r&&Wt(t),a=!r&&!o&&Ot(t),f=!r&&!o&&!a&&Ur(t),i=r||o||a||f,n=i?Xt(t.length,String):[],s=n.length;for(var p in t)if((e||Ha.call(t,p))&&!(i&&(p=="length"||a&&(p=="offset"||p=="parent")||f&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||Fr(p,s))))n.push(p);return n}var zi=qa;function $a(t,e){return function(r){return t(e(r))}}var Hi=$a;var ka=Hi(Object.keys,Object),fe=ka;var Ya=Object.prototype,Xa=Ya.hasOwnProperty;function Za(t){if(!zr(t))return fe(t);var e=[];for(var r in Object(t))if(Xa.call(t,r)&&r!="constructor")e.push(r);return e}var Un=Za;function Ja(t){return Ge(t)?zi(t):Un(t)}var _e=Ja;var Qa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Va=/^\w*$/;function tf(t,e){if(te(t))return!1;var r=typeof t;if(r=="number"||r=="symbol"||r=="boolean"||t==null||bt(t))return!0;return Va.test(t)||!Qa.test(t)||e!=null&&t in Object(e)}var M=tf;var ef=x(Object,"create"),_=ef;function rf(){this.__data__=_?_(null):{},this.size=0}var ie=rf;function of(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var ne=of;var af="__lodash_hash_undefined__",ff=Object.prototype,nf=ff.hasOwnProperty;function sf(t){var e=this.__data__;if(_){var r=e[t];return r===af?void 0:r}return nf.call(e,t)?e[t]:void 0}var se=sf;var pf=Object.prototype,uf=pf.hasOwnProperty;function mf(t){var e=this.__data__;return _?e[t]!==void 0:uf.call(e,t)}var pe=mf;var lf="__lodash_hash_undefined__";function df(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=_&&e===void 0?lf:e,this}var ue=df;function N(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var o=t[e];this.set(o[0],o[1])}}N.prototype.clear=ie;N.prototype.delete=ne;N.prototype.get=se;N.prototype.has=pe;N.prototype.set=ue;var ct=N;function xf(){this.__data__=[],this.size=0}var me=xf;function hf(t,e){var r=t.length;while(r--)if(Nt(t[r][0],e))return r;return-1}var O=hf;var cf=Array.prototype,gf=cf.splice;function yf(t){var e=this.__data__,r=O(e,t);if(r<0)return!1;var o=e.length-1;if(r==o)e.pop();else gf.call(e,r,1);return--this.size,!0}var de=yf;function _f(t){var e=this.__data__,r=O(e,t);return r<0?void 0:e[r][1]}var xe=_f;function bf(t){return O(this.__data__,t)>-1}var he=bf;function vf(t,e){var r=this.__data__,o=O(r,t);if(o<0)++this.size,r.push([t,e]);else r[o][1]=e;return this}var ce=vf;function D(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var o=t[e];this.set(o[0],o[1])}}D.prototype.clear=me;D.prototype.delete=de;D.prototype.get=xe;D.prototype.has=he;D.prototype.set=ce;var A=D;var Of=x(Ae,"Map"),T=Of;function Af(){this.size=0,this.__data__={hash:new ct,map:new(T||A),string:new ct}}var ge=Af;function Tf(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var ye=Tf;function wf(t,e){var r=t.__data__;return ye(e)?r[typeof e=="string"?"string":"hash"]:r.map}var w=wf;function Sf(t){var e=w(this,t).delete(t);return this.size-=e?1:0,e}var be=Sf;function Pf(t){return w(this,t).get(t)}var ve=Pf;function Cf(t){return w(this,t).has(t)}var Oe=Cf;function Ef(t,e){var r=w(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}var Te=Ef;function R(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var o=t[e];this.set(o[0],o[1])}}R.prototype.clear=ge;R.prototype.delete=be;R.prototype.get=ve;R.prototype.has=Oe;R.prototype.set=Te;var E=R;var If="Expected a function";function gt(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw TypeError(If);var r=function(){var o=arguments,a=e?e.apply(this,o):o[0],f=r.cache;if(f.has(a))return f.get(a);var i=t.apply(this,o);return r.cache=f.set(a,i)||f,i};return r.cache=new(gt.Cache||E),r}gt.Cache=E;var Se=gt;var Lf=500;function jf(t){var e=Se(t,function(o){if(r.size===Lf)r.clear();return o}),r=e.cache;return e}var Pe=jf;var Mf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nf=/\\(\\)?/g,Df=Pe(function(t){var e=[];if(t.charCodeAt(0)===46)e.push("");return t.replace(Mf,function(r,o,a,f){e.push(a?f.replace(Nf,"$1"):o||r)}),e}),Ce=Df;function Rf(t){return t==null?"":Mt(t)}var Ui=Rf;function Ff(t,e){if(te(t))return t;return M(t,e)?[t]:Ce(Ui(t))}var qr=Ff;var Bf=1/0;function Gf(t){if(typeof t=="string"||bt(t))return t;var e=t+"";return e=="0"&&1/t==-Bf?"-0":e}var sr=Gf;function Uf(t,e){e=qr(e,t);var r=0,o=e.length;while(t!=null&&r<o)t=t[sr(e[r++])];return r&&r==o?t:void 0}var jr=Uf;function zf(t,e,r){var o=t==null?void 0:jr(t,e);return o===void 0?r:o}var Ee=zf;function Wf(t,e){var r=-1,o=e.length,a=t.length;while(++r<o)t[a+r]=e[r];return t}var qn=Wf;var Ie=je?je.isConcatSpreadable:void 0;function Kf(t){return te(t)||Wt(t)||!!(Ie&&t&&t[Ie])}var Me=Kf;function De(t,e,r,o,a){var f=-1,i=t.length;r||(r=Me),a||(a=[]);while(++f<i){var n=t[f];if(e>0&&r(n))if(e>1)De(n,e-1,r,o,a);else qn(a,n);else if(!o)a[a.length]=n}return a}var jn=De;function Hf(t,e,r,o){var a=-1,f=t==null?0:t.length;if(o&&f)r=t[++a];while(++a<f)r=e(r,t[a],a,t);return r}var Re=Hf;function qf(){this.__data__=new A,this.size=0}var Fe=qf;function $f(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var Be=$f;function kf(t){return this.__data__.get(t)}var Ue=kf;function Yf(t){return this.__data__.has(t)}var ze=Yf;var Xf=200;function Zf(t,e){var r=this.__data__;if(r instanceof A){var o=r.__data__;if(!T||o.length<Xf-1)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new E(o)}return r.set(t,e),this.size=r.size,this}var We=Zf;function F(t){var e=this.__data__=new A(t);this.size=e.size}F.prototype.clear=Fe;F.prototype.delete=Be;F.prototype.get=Ue;F.prototype.has=ze;F.prototype.set=We;var lr=F;function Jf(t,e){var r=-1,o=t==null?0:t.length,a=0,f=[];while(++r<o){var i=t[r];if(e(i,r,t))f[a++]=i}return f}var Q=Jf;function Qf(){return[]}var qi=Qf;var Vf=Object.prototype,ti=Vf.propertyIsEnumerable,Ke=Object.getOwnPropertySymbols,ei=!Ke?qi:function(t){if(t==null)return[];return t=Object(t),Q(Ke(t),function(e){return ti.call(t,e)})},Gn=ei;function ri(t,e,r){var o=e(t);return te(t)?o:qn(o,r(t))}var ji=ri;function oi(t){return ji(t,_e,Gn)}var Ta=oi;var ai=x(Ae,"DataView"),V=ai;var fi=x(Ae,"Promise"),tt=fi;var ii=x(Ae,"Set"),S=ii;var He="[object Map]",ni="[object Object]",qe="[object Promise]",$e="[object Set]",ke="[object WeakMap]",Ye="[object DataView]",si=y(V),pi=y(T),ui=y(tt),mi=y(S),li=y(k),I=ot;if(V&&I(new V(new ArrayBuffer(1)))!=Ye||T&&I(new T)!=He||tt&&I(tt.resolve())!=qe||S&&I(new S)!=$e||k&&I(new k)!=ke)I=function(t){var e=ot(t),r=e==ni?t.constructor:void 0,o=r?y(r):"";if(o)switch(o){case si:return Ye;case pi:return He;case ui:return qe;case mi:return $e;case li:return ke}return e};var vt=I;var di=Ae.Uint8Array,Vn=di;var xi="__lodash_hash_undefined__";function hi(t){return this.__data__.set(t,xi),this}var Xe=hi;function ci(t){return this.__data__.has(t)}var Je=ci;function et(t){var e=-1,r=t==null?0:t.length;this.__data__=new E;while(++e<r)this.add(t[e])}et.prototype.add=et.prototype.push=Xe;et.prototype.has=Je;var rt=et;function gi(t,e){var r=-1,o=t==null?0:t.length;while(++r<o)if(e(t[r],r,t))return!0;return!1}var Qe=gi;function yi(t,e){return t.has(e)}var at=yi;var _i=1,bi=2;function vi(t,e,r,o,a,f){var i=r&_i,n=t.length,s=e.length;if(n!=s&&!(i&&s>n))return!1;var p=f.get(t),d=f.get(e);if(p&&d)return p==e&&d==t;var l=-1,m=!0,g=r&bi?new rt:void 0;f.set(t,e),f.set(e,t);while(++l<n){var h=t[l],c=e[l];if(o)var v=i?o(c,h,l,e,t,f):o(h,c,l,t,e,f);if(v!==void 0){if(v)continue;m=!1;break}if(g){if(!Qe(e,function(P,C){if(!at(g,C)&&(h===P||a(h,P,r,o,f)))return g.push(C)})){m=!1;break}}else if(!(h===c||a(h,c,r,o,f))){m=!1;break}}return f.delete(t),f.delete(e),m}var ft=vi;function Oi(t){var e=-1,r=Array(t.size);return t.forEach(function(o,a){r[++e]=[a,o]}),r}var Ve=Oi;function Ai(t){var e=-1,r=Array(t.size);return t.forEach(function(o){r[++e]=o}),r}var B=Ai;var Ti=1,wi=2,Si="[object Boolean]",Ci="[object Date]",Ei="[object Error]",Ii="[object Map]",Li="[object Number]",Mi="[object RegExp]",Ni="[object Set]",Di="[object String]",Ri="[object Symbol]",ki="[object ArrayBuffer]",Yi="[object DataView]",tr=je?je.prototype:void 0,_t=tr?tr.valueOf:void 0;function Xi(t,e,r,o,a,f,i){switch(r){case Yi:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ki:if(t.byteLength!=e.byteLength||!f(new Vn(t),new Vn(e)))return!1;return!0;case Si:case Ci:case Li:return Nt(+t,+e);case Ei:return t.name==e.name&&t.message==e.message;case Mi:case Di:return t==e+"";case Ii:var n=Ve;case Ni:var s=o&Ti;if(n||(n=B),t.size!=e.size&&!s)return!1;var p=i.get(t);if(p)return p==e;o|=wi,i.set(t,e);var d=ft(n(t),n(e),o,a,f,i);return i.delete(t),d;case Ri:if(_t)return _t.call(t)==_t.call(e)}return!1}var er=Xi;var Zi=1,Ji=Object.prototype,Qi=Ji.hasOwnProperty;function tn(t,e,r,o,a,f){var i=r&Zi,n=Ta(t),s=n.length,p=Ta(e),d=p.length;if(s!=d&&!i)return!1;var l=s;while(l--){var m=n[l];if(!(i?m in e:Qi.call(e,m)))return!1}var g=f.get(t),h=f.get(e);if(g&&h)return g==e&&h==t;var c=!0;f.set(t,e),f.set(e,t);var v=i;while(++l<s){m=n[l];var P=t[m],C=e[m];if(o)var wt=i?o(C,P,m,e,t,f):o(P,C,m,t,e,f);if(!(wt===void 0?P===C||a(P,C,r,o,f):wt)){c=!1;break}v||(v=m=="constructor")}if(c&&!v){var W=t.constructor,K=e.constructor;if(W!=K&&(("constructor"in t)&&("constructor"in e))&&!(typeof W=="function"&&W instanceof W&&typeof K=="function"&&K instanceof K))c=!1}return f.delete(t),f.delete(e),c}var rr=tn;var en=1,fr="[object Arguments]",nr="[object Array]",it="[object Object]",rn=Object.prototype,pr=rn.hasOwnProperty;function on(t,e,r,o,a,f){var i=te(t),n=te(e),s=i?nr:vt(t),p=n?nr:vt(e);s=s==fr?it:s,p=p==fr?it:p;var d=s==it,l=p==it,m=s==p;if(m&&Ot(t)){if(!Ot(e))return!1;i=!0,d=!1}if(m&&!d)return f||(f=new lr),i||Ur(t)?ft(t,e,r,o,a,f):er(t,e,s,r,o,a,f);if(!(r&en)){var g=d&&pr.call(t,"__wrapped__"),h=l&&pr.call(e,"__wrapped__");if(g||h){var c=g?t.value():t,v=h?e.value():e;return f||(f=new lr),a(c,v,r,o,f)}}if(!m)return!1;return f||(f=new lr),rr(t,e,r,o,a,f)}var ur=on;function mr(t,e,r,o,a){if(t===e)return!0;if(t==null||e==null||!Ne(t)&&!Ne(e))return t!==t&&e!==e;return ur(t,e,r,o,mr,a)}var nt=mr;var an=1,fn=2;function nn(t,e,r,o){var a=r.length,f=a,i=!o;if(t==null)return!f;t=Object(t);while(a--){var n=r[a];if(i&&n[2]?n[1]!==t[n[0]]:!(n[0]in t))return!1}while(++a<f){n=r[a];var s=n[0],p=t[s],d=n[1];if(i&&n[2]){if(p===void 0&&!(s in t))return!1}else{var l=new lr;if(o)var m=o(p,d,s,t,e,l);if(!(m===void 0?nt(d,p,an|fn,o,l):m))return!1}}return!0}var dr=nn;function sn(t){return t===t&&!we(t)}var ut=sn;function pn(t){var e=_e(t),r=e.length;while(r--){var o=e[r],a=t[o];e[r]=[o,a,ut(a)]}return e}var xr=pn;function un(t,e){return function(r){if(r==null)return!1;return r[t]===e&&(e!==void 0||(t in Object(r)))}}var mt=un;function mn(t){var e=xr(t);if(e.length==1&&e[0][2])return mt(e[0][0],e[0][1]);return function(r){return r===t||dr(r,t,e)}}var hr=mn;function ln(t,e){return t!=null&&e in Object(t)}var gr=ln;function dn(t,e,r){e=qr(e,t);var o=-1,a=e.length,f=!1;while(++o<a){var i=sr(e[o]);if(!(f=t!=null&&r(t,i)))break;t=t[i]}if(f||++o!=a)return f;return a=t==null?0:t.length,!!a&&j(a)&&Fr(i,a)&&(te(t)||Wt(t))}var Gi=dn;function xn(t,e){return t!=null&&Gi(t,e,gr)}var Vi=xn;var hn=1,cn=2;function gn(t,e){if(M(t)&&ut(e))return mt(sr(t),e);return function(r){var o=Ee(r,t);return o===void 0&&o===e?Vi(r,t):nt(e,o,hn|cn)}}var yr=gn;function yn(t){return function(e){return e==null?void 0:e[t]}}var Wi=yn;function _n(t){return function(e){return jr(e,t)}}var _r=_n;function bn(t){return M(t)?Wi(sr(t)):_r(t)}var br=bn;function vn(t){if(typeof t=="function")return t;if(t==null)return ht;if(typeof t=="object")return te(t)?yr(t[0],t[1]):hr(t);return br(t)}var Ze=vn;function On(t){return function(e,r,o){var a=-1,f=Object(e),i=o(e),n=i.length;while(n--){var s=i[t?n:++a];if(r(f[s],s,f)===!1)break}return e}}var vr=On;var An=vr(),Wn=An;function Tn(t,e){return t&&Wn(t,e,_e)}var Kn=Tn;function wn(t,e){return function(r,o){if(r==null)return r;if(!Ge(r))return t(r,o);var a=r.length,f=e?a:-1,i=Object(r);while(e?f--:++f<a)if(o(i[f],f,i)===!1)break;return r}}var Or=wn;var Sn=Or(Kn),Gr=Sn;function Pn(t){return Ne(t)&&Ge(t)}var Ki=Pn;function Cn(t,e,r){var o=-1,a=t==null?0:t.length;while(++o<a)if(r(e,t[o]))return!0;return!1}var Ar=Cn;function En(t){return typeof t=="function"?t:ht}var Yn=En;function In(t,e){var r=te(t)?Bi:Gr;return r(t,Yn(e))}var b=In;function Ln(t,e){var r=[];return Gr(t,function(o,a,f){if(e(o,a,f))r.push(o)}),r}var Tr=Ln;function Mn(t,e){var r=te(t)?Q:Tr;return r(t,Ze(e,3))}var st=Mn;function Nn(t,e){return ar(e,function(r){return t[r]})}var wr=Nn;function Dn(t){return t==null?[]:wr(t,_e(t))}var yt=Dn;var Rn="[object Map]",Fn="[object Set]",Bn=Object.prototype,zn=Bn.hasOwnProperty;function $n(t){if(t==null)return!0;if(Ge(t)&&(te(t)||typeof t=="string"||typeof t.splice=="function"||Ot(t)||Ur(t)||Wt(t)))return!t.length;var e=vt(t);if(e==Rn||e==Fn)return!t.size;if(zr(t))return!Un(t).length;for(var r in t)if(zn.call(t,r))return!1;return!0}var lt=$n;function kn(t){return t===void 0}var Le=kn;function Xn(t,e,r,o,a){return a(t,function(f,i,n){r=o?(o=!1,f):e(r,f,i,n)}),r}var Sr=Xn;function Zn(t,e,r){var o=te(t)?Re:Sr,a=arguments.length<3;return o(t,Ze(e,4),r,a,Gr)}var cr=Zn;var Jn=1/0,Qn=!(S&&1/B(new S([,-0]))[1]==Jn)?Ut:function(t){return new S(t)},Pr=Qn;var ts=200;function es(t,e,r){var o=-1,a=kt,f=t.length,i=!0,n=[],s=n;if(r)i=!1,a=Ar;else if(f>=ts){var p=e?null:Pr(t);if(p)return B(p);i=!1,a=at,s=new rt}else s=e?[]:n;t:while(++o<f){var d=t[o],l=e?e(d):d;if(d=r||d!==0?d:0,i&&l===l){var m=s.length;while(m--)if(s[m]===l)continue t;if(e)s.push(l);n.push(d)}else if(!a(s,l,r)){if(s!==n)s.push(l);n.push(d)}}return n}var Cr=es;var rs=$r(function(t){return Cr(jn(t,1,Ki,!0))}),At=rs;var as="\x00",L="\x00",Er="\x01";class le{constructor(t={}){if(this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=pt(void 0),this._defaultEdgeLabelFn=pt(void 0),this._nodes={},this._isCompound)this._parent={},this._children={},this._children[L]={};this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){if(!ir(t))t=pt(t);return this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return _e(this._nodes)}sources(){var t=this;return st(this.nodes(),function(e){return lt(t._in[e])})}sinks(){var t=this;return st(this.nodes(),function(e){return lt(t._out[e])})}setNodes(t,e){var r=arguments,o=this;return b(t,function(a){if(r.length>1)o.setNode(a,e);else o.setNode(a)}),this}setNode(t,e){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){if(arguments.length>1)this._nodes[t]=e;return this}if(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound)this._parent[t]=L,this._children[t]={},this._children[L][t]=!0;return this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=(r)=>this.removeEdge(this._edgeObjs[r]);if(delete this._nodes[t],this._isCompound)this._removeFromParentsChildList(t),delete this._parent[t],b(this.children(t),(r)=>{this.setParent(r)}),delete this._children[t];b(_e(this._in[t]),e),delete this._in[t],delete this._preds[t],b(_e(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(Le(e))e=L;else{e+="";for(var r=e;!Le(r);r=this.parent(r))if(r===t)throw Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==L)return e}}children(t){if(Le(t))t=L;if(this._isCompound){var e=this._children[t];if(e)return _e(e)}else if(t===L)return this.nodes();else if(this.hasNode(t))return[]}predecessors(t){var e=this._preds[t];if(e)return _e(e)}successors(t){var e=this._sucs[t];if(e)return _e(e)}neighbors(t){var e=this.predecessors(t);if(e)return At(e,this.successors(t))}isLeaf(t){var e;if(this.isDirected())e=this.successors(t);else e=this.neighbors(t);return e.length===0}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;b(this._nodes,function(f,i){if(t(i))e.setNode(i,f)}),b(this._edgeObjs,function(f){if(e.hasNode(f.v)&&e.hasNode(f.w))e.setEdge(f,r.edge(f))});var o={};function a(f){var i=r.parent(f);if(i===void 0||e.hasNode(i))return o[f]=i,i;else if(i in o)return o[i];else return a(i)}if(this._isCompound)b(e.nodes(),function(f){e.setParent(f,a(f))});return e}setDefaultEdgeLabel(t){if(!ir(t))t=pt(t);return this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return yt(this._edgeObjs)}setPath(t,e){var r=this,o=arguments;return cr(t,function(a,f){if(o.length>1)r.setEdge(a,f,e);else r.setEdge(a,f);return f}),this}setEdge(){var t,e,r,o,a=!1,f=arguments[0];if(typeof f==="object"&&f!==null&&"v"in f){if(t=f.v,e=f.w,r=f.name,arguments.length===2)o=arguments[1],a=!0}else if(t=f,e=arguments[1],r=arguments[3],arguments.length>2)o=arguments[2],a=!0;if(t=""+t,e=""+e,!Le(r))r=""+r;var i=z(this._isDirected,t,e,r);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,i)){if(a)this._edgeLabels[i]=o;return this}if(!Le(r)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[i]=a?o:this._defaultEdgeLabelFn(t,e,r);var n=fs(this._isDirected,t,e,r);return t=n.v,e=n.w,Object.freeze(n),this._edgeObjs[i]=n,Ir(this._preds[e],t),Ir(this._sucs[t],e),this._in[e][i]=n,this._out[t][i]=n,this._edgeCount++,this}edge(t,e,r){var o=arguments.length===1?Tt(this._isDirected,arguments[0]):z(this._isDirected,t,e,r);return this._edgeLabels[o]}hasEdge(t,e,r){var o=arguments.length===1?Tt(this._isDirected,arguments[0]):z(this._isDirected,t,e,r);return Object.prototype.hasOwnProperty.call(this._edgeLabels,o)}removeEdge(t,e,r){var o=arguments.length===1?Tt(this._isDirected,arguments[0]):z(this._isDirected,t,e,r),a=this._edgeObjs[o];if(a)t=a.v,e=a.w,delete this._edgeLabels[o],delete this._edgeObjs[o],Lr(this._preds[e],t),Lr(this._sucs[t],e),delete this._in[e][o],delete this._out[t][o],this._edgeCount--;return this}inEdges(t,e){var r=this._in[t];if(r){var o=yt(r);if(!e)return o;return st(o,function(a){return a.v===e})}}outEdges(t,e){var r=this._out[t];if(r){var o=yt(r);if(!e)return o;return st(o,function(a){return a.w===e})}}nodeEdges(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}}le.prototype._nodeCount=0;le.prototype._edgeCount=0;function Ir(t,e){if(t[e])t[e]++;else t[e]=1}function Lr(t,e){if(!--t[e])delete t[e]}function z(t,e,r,o){var a=""+e,f=""+r;if(!t&&a>f){var i=a;a=f,f=i}return a+Er+f+Er+(Le(o)?as:o)}function fs(t,e,r,o){var a=""+e,f=""+r;if(!t&&a>f){var i=a;a=f,f=i}var n={v:a,w:f};if(o)n.name=o;return n}function Tt(t,e){return z(t,e.v,e.w,e.name)}
2
+ export{Ae,je,ot,Ne,bt,ar,te,we,ht,ir,pt,Hn,Pi,Bi,Fi,Fr,Nt,$i,$r,Ge,zr,Wt,Ot,Hr,or,Ur,zi,Hi,Un,_e,Ui,qr,sr,jr,qn,jn,lr,qi,Gn,ji,Ta,vt,Vn,Gi,Vi,Wi,Ze,Wn,Kn,Gr,Ki,Yn,b,st,yt,Le,cr,le};
@@ -1,2 +1,2 @@
1
- import{e,hn,m,pn}from"./index.a1bxkgd3.js";import{Fe}from"./index.e35b4yh5.js";var o=Fe(pn(),1);var _r=e((s,t)=>{let r=s.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.name)r.attr("name",t.name);if(t.rx)r.attr("rx",t.rx);if(t.ry)r.attr("ry",t.ry);if(t.attrs!==void 0)for(let a in t.attrs)r.attr(a,t.attrs[a]);if(t.class)r.attr("class",t.class);return r},"drawRect"),Ca=e((s,t)=>{let r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};_r(s,r).lower()},"drawBackgroundRect"),ul=e((s,t)=>{let r=t.text.replace(hn," "),a=s.append("text");if(a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class)a.attr("class",t.class);let i=a.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.text(r),a},"drawText"),Ki=e((s,t,r,a)=>{let i=s.append("image");i.attr("x",t),i.attr("y",r);let n=o.sanitizeUrl(a);i.attr("xlink:href",n)},"drawImage"),Yi=e((s,t,r,a)=>{let i=s.append("use");i.attr("x",t),i.attr("y",r);let n=o.sanitizeUrl(a);i.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),ct=e(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),Xi=e(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),Xt=e(()=>{let s=m(".mermaidTooltip");if(s.empty())s=m("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100");return s},"createTooltip");
2
- export{_r,Ca,ul,Ki,Yi,ct,Xi,Xt};
1
+ import{e,pn,p,mn}from"./index.zkx4ryzt.js";import{Pe}from"./index.rkgfxpm3.js";var o=Pe(mn(),1);var Ar=e((s,t)=>{let r=s.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.name)r.attr("name",t.name);if(t.rx)r.attr("rx",t.rx);if(t.ry)r.attr("ry",t.ry);if(t.attrs!==void 0)for(let a in t.attrs)r.attr(a,t.attrs[a]);if(t.class)r.attr("class",t.class);return r},"drawRect"),Ca=e((s,t)=>{let r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};Ar(s,r).lower()},"drawBackgroundRect"),dl=e((s,t)=>{let r=t.text.replace(pn," "),a=s.append("text");if(a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class)a.attr("class",t.class);let i=a.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.text(r),a},"drawText"),Yi=e((s,t,r,a)=>{let i=s.append("image");i.attr("x",t),i.attr("y",r);let n=o.sanitizeUrl(a);i.attr("xlink:href",n)},"drawImage"),Xi=e((s,t,r,a)=>{let i=s.append("use");i.attr("x",t),i.attr("y",r);let n=o.sanitizeUrl(a);i.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),lt=e(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),Qi=e(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),Kt=e(()=>{let s=p(".mermaidTooltip");if(s.empty())s=p("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100");return s},"createTooltip");
2
+ export{Ar,Ca,dl,Yi,Xi,lt,Qi,Kt};
@@ -1,62 +1,62 @@
1
- import{Xn}from"./index.zm5x44tn.js";import{e,n,be,gt,Pe,Ir,y,A,L,R,I,M,D,O,u,Pt,Kr,m,ut,dt,ve,he,pe,tt,z,We,aa,Cs,bn,Ae,_e}from"./index.a1bxkgd3.js";import{Xt}from"./index.0e4s8r4m.js";import{Xe}from"./index.dnnzjw18.js";import{Ee}from"./index.7k5v3p25.js";import{ge}from"./index.9bf5qrah.js";var x1="flowchart-",g1=["row","column","horizontalAlign","verticalAlign"],F1=new Set(["shape","label","icon","form","pos","img","w","h","constraint","priority","assigned","ticket","labelType","view",...g1]);function _t(t,r=!1){if(!t)return;let o=t,a={};for(let l of g1)if(Object.hasOwn(o,l))a[l]=o[l];if(r&&Object.hasOwn(o,"algorithm"))a.algorithm=o.algorithm;return Object.keys(a).length>0?a:void 0}e(_t,"pickFlowchartLayoutMetadata");var v1=["laneRole","laneIndex","drawnExtent"];function A1(t){if(!t||typeof t!=="object")return t;let r={...t};for(let o of v1)Reflect.deleteProperty(r,o);return r}e(A1,"withoutInternalKeys");var _1=class{constructor(){this.vertexCounter=0,this.config=u(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=L,this.setAccDescription=I,this.setDiagramTitle=D,this.getAccTitle=R,this.getAccDescription=M,this.getDiagramTitle=O,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{e(this,"FlowDB")}sanitizeText(t){return y.sanitizeText(t,this.config)}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}setDiagramId(t){this.diagramId=t}lookUpDomId(t){for(let r of this.vertices.values())if(r.id===t)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${t}`:t}addVertex(t,r,o,a,l,b,d={},C){if(!t||t.trim().length===0)return;let p;if(C!==void 0){let S;if(!C.includes(`
2
- `))S=`{
3
- `+C+`
4
- }`;else S=C+`
5
- `;p=A1(Xn(dt(S,{schema:ut})))}let W=this.subGraphLookup.get(t);if(W&&p){if(Object.keys(p).length>0)W.metadata={...W.metadata,...p};return}let x=this.edges.find((S)=>S.id===t);if(x){let S=p;if(S?.animate!==void 0)x.animate=S.animate;if(S?.animation!==void 0)x.animation=S.animation;if(S?.curve!==void 0)x.interpolate=S.curve;if(S?.step!==void 0)if(bn(S))x.step=S.step;else n.warn(`Ignoring step on edge ${t}: expected a positive integer`,S.step);return}let K,E=this.vertices.get(t);if(E===void 0){if(r===void 0&&o===void 0&&a!==void 0&&a!==null)n.warn(`Style applied to unknown node "${t}". This may indicate a typo. The node will be created automatically.`);E={id:t,labelType:"text",domId:x1+t+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(t,E)}if(this.vertexCounter++,r!==void 0){if(this.config=u(),K=this.sanitizeText(r.text.trim()),E.labelType=r.type,K.startsWith('"')&&K.endsWith('"'))K=K.substring(1,K.length-1);E.text=K}else if(E.text===void 0)E.text=t;if(o!==void 0)E.type=o;if(a!==void 0&&a!==null)a.forEach((S)=>{E.styles.push(S)});if(l!==void 0&&l!==null)l.forEach((S)=>{E.classes.push(S)});if(b!==void 0)E.dir=b;if(E.props===void 0)E.props=d;else if(d!==void 0)Object.assign(E.props,d);if(p!==void 0){if(E.metadata={...E.metadata,...p},p.shape){if(p.shape!==p.shape.toLowerCase()||p.shape.includes("_"))throw Error(`No such shape: ${p.shape}. Shape names should be lowercase.`);else if(!aa(p.shape))throw Error(`No such shape: ${p.shape}.`);E.type=p?.shape}if(p?.label)E.text=p?.label,E.labelType=this.sanitizeNodeLabelType(p?.labelType);if(p?.icon){if(E.icon=p?.icon,!p.label?.trim()&&E.text===t)E.text=""}if(p?.form)E.form=p?.form;if(p?.pos)E.pos=p?.pos;if(p?.img){if(E.img=p?.img,!p.label?.trim()&&E.text===t)E.text=""}if(p?.constraint)E.constraint=p.constraint;if(p.w)E.assetWidth=Number(p.w);if(p.h)E.assetHeight=Number(p.h)}}addSingleLink(t,r,o,a){let d={start:t,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};n.info("abc78 Got edge...",d);let C=o.text;if(C!==void 0){if(d.text=this.sanitizeText(C.text.trim()),d.text.startsWith('"')&&d.text.endsWith('"'))d.text=d.text.substring(1,d.text.length-1);d.labelType=this.sanitizeNodeLabelType(C.type)}if(o!==void 0)d.type=o.type,d.stroke=o.stroke,d.length=o.length>10?10:o.length;if(a&&!this.edges.some((p)=>p.id===a))d.id=a,d.isUserDefinedId=!0;else{let p=this.edges.filter((W)=>W.start===d.start&&W.end===d.end);if(p.length===0)d.id=We(d.start,d.end,{counter:0,prefix:"L"});else d.id=We(d.start,d.end,{counter:p.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))n.info("Pushing edge..."),this.edges.push(d);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
1
+ import{Xn}from"./index.8vaktk8x.js";import{e,n,me,mt,Oe,Lr,y,A,L,R,I,M,P,O,u,Dt,Wr,p,ct,ut,ge,de,fe,Je,F,Ve,aa,Cs,vn,Se,Ee}from"./index.zkx4ryzt.js";import{Kt}from"./index.v02zf4zg.js";import{Ye}from"./index.8zg579vd.js";import{Ce}from"./index.5fcbba6e.js";import{pe}from"./index.w4emtsqw.js";var x1="flowchart-",g1=["row","column","horizontalAlign","verticalAlign"],F1=new Set(["shape","label","icon","form","pos","img","w","h","constraint","priority","assigned","ticket","labelType","view",...g1]);function Bt(t,r=!1){if(!t)return;let o=t,a={};for(let l of g1)if(Object.hasOwn(o,l))a[l]=o[l];if(r&&Object.hasOwn(o,"algorithm"))a.algorithm=o.algorithm;return Object.keys(a).length>0?a:void 0}e(Bt,"pickFlowchartLayoutMetadata");var v1=["laneRole","laneIndex","drawnExtent"];function A1(t){if(!t||typeof t!=="object")return t;let r={...t};for(let o of v1)Reflect.deleteProperty(r,o);return r}e(A1,"withoutInternalKeys");var _1=class{constructor(){this.vertexCounter=0,this.config=u(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=L,this.setAccDescription=I,this.setDiagramTitle=P,this.getAccTitle=R,this.getAccDescription=M,this.getDiagramTitle=O,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{e(this,"FlowDB")}sanitizeText(t){return y.sanitizeText(t,this.config)}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}setDiagramId(t){this.diagramId=t}lookUpDomId(t){for(let r of this.vertices.values())if(r.id===t)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${t}`:t}addVertex(t,r,o,a,l,k,d={},D){if(!t||t.trim().length===0)return;let f;if(D!==void 0){let C;if(!D.includes(`
2
+ `))C=`{
3
+ `+D+`
4
+ }`;else C=D+`
5
+ `;f=A1(Xn(ut(C,{schema:ct})))}let j=this.subGraphLookup.get(t);if(j&&f){if(Object.keys(f).length>0)j.metadata={...j.metadata,...f};return}let E=this.edges.find((C)=>C.id===t);if(E){let C=f;if(C?.animate!==void 0)E.animate=C.animate;if(C?.animation!==void 0)E.animation=C.animation;if(C?.curve!==void 0)E.interpolate=C.curve;if(C?.step!==void 0)if(vn(C))E.step=C.step;else n.warn(`Ignoring step on edge ${t}: expected a positive integer`,C.step);return}let K,T=this.vertices.get(t);if(T===void 0){if(r===void 0&&o===void 0&&a!==void 0&&a!==null)n.warn(`Style applied to unknown node "${t}". This may indicate a typo. The node will be created automatically.`);T={id:t,labelType:"text",domId:x1+t+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(t,T)}if(this.vertexCounter++,r!==void 0){if(this.config=u(),K=this.sanitizeText(r.text.trim()),T.labelType=r.type,K.startsWith('"')&&K.endsWith('"'))K=K.substring(1,K.length-1);T.text=K}else if(T.text===void 0)T.text=t;if(o!==void 0)T.type=o;if(a!==void 0&&a!==null)a.forEach((C)=>{T.styles.push(C)});if(l!==void 0&&l!==null)l.forEach((C)=>{T.classes.push(C)});if(k!==void 0)T.dir=k;if(T.props===void 0)T.props=d;else if(d!==void 0)Object.assign(T.props,d);if(f!==void 0){if(T.metadata={...T.metadata,...f},f.shape){if(f.shape!==f.shape.toLowerCase()||f.shape.includes("_"))throw Error(`No such shape: ${f.shape}. Shape names should be lowercase.`);else if(!aa(f.shape))throw Error(`No such shape: ${f.shape}.`);T.type=f?.shape}if(f?.label)T.text=f?.label,T.labelType=this.sanitizeNodeLabelType(f?.labelType);if(f?.icon){if(T.icon=f?.icon,!f.label?.trim()&&T.text===t)T.text=""}if(f?.form)T.form=f?.form;if(f?.pos)T.pos=f?.pos;if(f?.img){if(T.img=f?.img,!f.label?.trim()&&T.text===t)T.text=""}if(f?.constraint)T.constraint=f.constraint;if(f.w)T.assetWidth=Number(f.w);if(f.h)T.assetHeight=Number(f.h)}}addSingleLink(t,r,o,a){let d={start:t,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};n.info("abc78 Got edge...",d);let D=o.text;if(D!==void 0){if(d.text=this.sanitizeText(D.text.trim()),d.text.startsWith('"')&&d.text.endsWith('"'))d.text=d.text.substring(1,d.text.length-1);d.labelType=this.sanitizeNodeLabelType(D.type)}if(o!==void 0)d.type=o.type,d.stroke=o.stroke,d.length=o.length>10?10:o.length;if(a&&!this.edges.some((f)=>f.id===a))d.id=a,d.isUserDefinedId=!0;else{let f=this.edges.filter((j)=>j.start===d.start&&j.end===d.end);if(f.length===0)d.id=Ve(d.start,d.end,{counter:0,prefix:"L"});else d.id=Ve(d.start,d.end,{counter:f.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))n.info("Pushing edge..."),this.edges.push(d);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
6
6
 
7
7
  Initialize mermaid with maxEdges set to a higher number to allow more edges.
8
8
  You cannot set this config via configuration inside the diagram as it is a secure config.
9
- You have to call mermaid.initialize.`)}isLinkData(t){return t!==null&&typeof t==="object"&&"id"in t&&typeof t.id==="string"}addLink(t,r,o){let a=this.isLinkData(o)?o.id.replace("@",""):void 0;n.info("addLink",t,r,a);for(let l of t)for(let b of r){let d=l===t[t.length-1],C=b===r[0];if(d&&C)this.addSingleLink(l,b,o,a);else this.addSingleLink(l,b,o,void 0)}}updateLinkInterpolate(t,r){t.forEach((o)=>{if(o==="default")this.edges.defaultInterpolate=r;else this.edges[o].interpolate=r})}updateLink(t,r){t.forEach((o)=>{if(typeof o==="number"&&o>=this.edges.length)throw Error(`The index ${o} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);if(o==="default")this.edges.defaultStyle=r;else if(this.edges[o].style=r,(this.edges[o]?.style?.length??0)>0&&!this.edges[o]?.style?.some((a)=>a?.startsWith("fill")))this.edges[o]?.style?.push("fill:none")})}addClass(t,r){let o=r.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach((a)=>{let l=this.classes.get(a);if(l===void 0)l={id:a,styles:[],textStyles:[]},this.classes.set(a,l);if(o!==void 0&&o!==null)o.forEach((b)=>{if(/color/.exec(b)){let d=b.replace("fill","bgFill");l.textStyles.push(d)}l.styles.push(b)})})}setDirection(t){if(this.direction=t.trim(),/.*</.exec(this.direction))this.direction="RL";if(/.*\^/.exec(this.direction))this.direction="BT";if(/.*>/.exec(this.direction))this.direction="LR";if(/.*v/.exec(this.direction))this.direction="TB";if(this.direction==="TD")this.direction="TB"}setClass(t,r){for(let o of t.split(",")){let a=this.vertices.get(o);if(a)a.classes.push(r);let l=this.edges.find((d)=>d.id===o);if(l)l.classes.push(r);let b=this.subGraphLookup.get(o);if(b)b.classes.push(r)}}setTooltip(t,r){if(r===void 0)return;r=this.sanitizeText(r);for(let o of t.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(o):o,r)}setClickFun(t,r,o){if(u().securityLevel!=="loose")return;if(r===void 0)return;let a=[];if(typeof o==="string"){a=o.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let b=0;b<a.length;b++){let d=a[b].trim();if(d.startsWith('"')&&d.endsWith('"'))d=d.substr(1,d.length-2);a[b]=d}}if(a.length===0)a.push(t);let l=this.vertices.get(t);if(l)l.haveCallback=!0,this.funs.push(()=>{let b=this.lookUpDomId(t),d=document.querySelector(`[id="${b}"]`);if(d!==null)d.addEventListener("click",()=>{z.runFunc(r,...a)},!1)})}setLink(t,r,o){t.split(",").forEach((a)=>{let l=this.vertices.get(a);if(l!==void 0)l.link=z.formatUrl(r,this.config),l.linkTarget=o}),this.setClass(t,"clickable")}getTooltip(t){return this.tooltips.get(t)}setClickEvent(t,r,o){t.split(",").forEach((a)=>{this.setClickFun(a,r,o)}),this.setClass(t,"clickable")}bindFunctions(t){this.funs.forEach((r)=>{r(t)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(t){let r=Xt();m(t).select("svg").selectAll("g.node").on("mouseover",(l)=>{let b=m(l.currentTarget),d=b.attr("title");if(d===null)return;let C=l.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(b.attr("title")).style("left",window.scrollX+C.left+(C.right-C.left)/2+"px").style("top",window.scrollY+C.bottom+"px"),r.html(Pe.sanitize(d)),b.classed("hover",!0)}).on("mouseout",(l)=>{r.transition().duration(500).style("opacity",0),m(l.currentTarget).classed("hover",!1)})}clear(t="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=u(),A()}setGen(t){this.version=t||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(t,r,o){let a=t.text.trim(),l=o.text;if(t===o&&/\s/.exec(o.text))a=void 0;let d=e((S)=>{let w={boolean:{},number:{},string:{}},Y=[],ce;return{nodeList:S.filter(function(se){let de=typeof se;if(se.stmt&&se.stmt==="dir")return ce=se.value,!1;if(se.trim()==="")return!1;if(de in w)return w[de].hasOwnProperty(se)?!1:w[de][se]=!0;else return Y.includes(se)?!1:Y.push(se)}),dir:ce}},"uniq")(r.flat()),{nodeList:C,dir:p}=d,W=u().flowchart??{};if(p=p??(W.inheritDir?this.getDirection()??u().direction??void 0:void 0),this.version==="gen-1")for(let S=0;S<C.length;S++)C[S]=this.lookUpDomId(C[S]);a=a??"subGraph"+this.subCount,l=l||"",l=this.sanitizeText(l),this.subCount=this.subCount+1;let x={id:a,nodes:C,title:l.trim(),classes:[],dir:p,labelType:this.sanitizeNodeLabelType(o?.type)};n.info("Adding",x.id,x.nodes,x.dir);let K=this.makeUniq(x,this.subGraphs).nodes;this.recordDroppedMembers(x,K),x.nodes=K.filter((S)=>S!==a);let E=this.subGraphs.find((S)=>S.id===a);if(E)E.nodes.push(...x.nodes);else this.subGraphs.push(x);return this.subGraphLookup.set(a,E??x),a}recordDroppedMembers(t,r){let o=new Set(r);for(let a of t.nodes){if(o.has(a)||a===t.id)continue;let l=this.subGraphs.find((b)=>b.nodes.includes(a));if(l&&l.id!==t.id&&!this.isNestedIn(l.id,t))this.droppedSubGraphMembers.push({node:a,keptBy:l.id,droppedFrom:t.id})}}isNestedIn(t,r){let o=new Set,a=t;while(a!==void 0&&!o.has(a)){if(r.nodes.includes(a))return!0;o.add(a);let l=a;a=this.subGraphs.find((b)=>b.nodes.includes(l))?.id}return!1}getPosForId(t){for(let[r,o]of this.subGraphs.entries())if(o.id===t)return r;return-1}indexNodes2(t,r){let o=this.subGraphs[r].nodes;if(this.secCount=this.secCount+1,this.secCount>2000)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===t)return{result:!0,count:0};let a=0,l=1;while(a<o.length){let b=this.getPosForId(o[a]);if(b>=0){let d=this.indexNodes2(t,b);if(d.result)return{result:!0,count:l+d.count};else l=l+d.count}a=a+1}return{result:!1,count:l}}getDepthFirstPos(t){return this.posCrossRef[t]}indexNodes(){if(this.secCount=-1,this.subGraphs.length>0)this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){if(this.firstGraphFlag)return this.firstGraphFlag=!1,!0;return!1}destructStartLink(t){let r=t.trim(),o="arrow_open";switch(r[0]){case"<":o="arrow_point",r=r.slice(1);break;case"x":o="arrow_cross",r=r.slice(1);break;case"o":o="arrow_circle",r=r.slice(1);break}let a="normal";if(r.includes("="))a="thick";if(r.includes("."))a="dotted";return{type:o,stroke:a}}countChar(t,r){let o=r.length,a=0;for(let l=0;l<o;++l)if(r[l]===t)++a;return a}destructEndLink(t){let r=t.trim(),o=r.slice(0,-1),a="arrow_open";switch(r.slice(-1)){case"x":if(a="arrow_cross",r.startsWith("x"))a="double_"+a,o=o.slice(1);break;case">":if(a="arrow_point",r.startsWith("<"))a="double_"+a,o=o.slice(1);break;case"o":if(a="arrow_circle",r.startsWith("o"))a="double_"+a,o=o.slice(1);break}let l="normal",b=o.length-1;if(o.startsWith("="))l="thick";if(o.startsWith("~"))l="invisible";let d=this.countChar(".",o);if(d)l="dotted",b=d;return{type:a,stroke:l,length:b}}destructLink(t,r){let o=this.destructEndLink(t),a;if(r){if(a=this.destructStartLink(r),a.stroke!==o.stroke)return{type:"INVALID",stroke:"INVALID"};if(a.type==="arrow_open")a.type=o.type;else{if(a.type!==o.type)return{type:"INVALID",stroke:"INVALID"};a.type="double_"+a.type}if(a.type==="double_arrow")a.type="double_arrow_point";return a.length=o.length,a}return o}exists(t,r){for(let o of t)if(o.nodes.includes(r))return!0;return!1}makeUniq(t,r){let o=[];return t.nodes.forEach((a,l)=>{if(!this.exists(r,a))o.push(t.nodes[l])}),{nodes:o}}getTypeFromVertex(t){if(t.img)return"imageSquare";if(t.icon){if(t.form==="circle")return"iconCircle";if(t.form==="square")return"iconSquare";if(t.form==="rounded")return"iconRounded";return"icon"}switch(t.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return t.type}}findNode(t,r){return t.find((o)=>o.id===r)}destructEdgeType(t){let r="none",o="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":o=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=t.replace("double_",""),o=r;break}return{arrowTypeStart:r,arrowTypeEnd:o}}addNodeFromVertex(t,r,o,a,l,b){let d=o.get(t.id),C=a.get(t.id)??!1,p=this.findNode(r,t.id);if(p)p.cssStyles=t.styles,p.cssCompiledStyles=this.getCompiledStyles(t.classes),p.cssClasses=t.classes.join(" ");else{let W={id:t.id,label:t.text,labelType:t.labelType,labelStyle:"",parentId:d,padding:l.flowchart?.padding||8,cssStyles:t.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...t.classes]),cssClasses:"default "+t.classes.join(" "),dir:t.dir,domId:t.domId,look:b,link:t.link,linkTarget:t.linkTarget,tooltip:this.getTooltip(t.id),icon:t.icon,pos:t.pos,img:t.img,assetWidth:t.assetWidth,assetHeight:t.assetHeight,constraint:t.constraint,metadata:_t(t.metadata)};if(C)r.push({...W,isGroup:!0,shape:"rect"});else r.push({...W,isGroup:!1,shape:this.getTypeFromVertex(t),minWidth:l.flowchart?.minNodeWidth})}}getCompiledStyles(t){let r=[];for(let o of t){let a=this.classes.get(o);if(a?.styles)r=[...r,...a.styles??[]].map((l)=>l.trim());if(a?.textStyles)r=[...r,...a.textStyles??[]].map((l)=>l.trim())}return r}getData(){let t=u(),r=[],o=[],a=this.getSubGraphs(),l=new Map,b=new Map,d=new Map;for(let h of a)for(let f of h.nodes)if(this.subGraphLookup.has(f))d.set(f,h.id);let C=new Map,p=new Map;for(let h of a){let f=d.get(h.id);if(f!==void 0)p.set(f,[...p.get(f)??[],h.id])}let W=0,x=e((h)=>{C.set(h,W++);for(let f of p.get(h)??[])x(f)},"walk");for(let h of a)if(!d.has(h.id))x(h.id);let K=e((h)=>this.subGraphLookup.get(h)?.metadata?.view==="collapsed","isCollapsed"),E=e((h)=>{let f,V=new Set,N=h;while(N!==void 0&&!V.has(N)){if(V.add(N),K(N))f=N;N=d.get(N)}return f},"outermostCollapsed"),S=new Set,w=new Map;for(let h of a){let f=E(h.id);if(f===void 0)continue;if(h.id!==f)S.add(h.id),w.set(h.id,f);for(let V of h.nodes){if(V===f)continue;S.add(V),w.set(V,f)}}for(let h=a.length-1;h>=0;h--){let f=a[h];if(S.has(f.id))continue;if(f.nodes.length>0)b.set(f.id,!0);for(let V of f.nodes)l.set(V,f.id)}for(let h=a.length-1;h>=0;h--){let f=a[h];if(S.has(f.id))continue;if(f.metadata?.view==="collapsed")r.push({id:f.id,label:f.title,labelStyle:"",labelType:f.labelType,parentId:l.get(f.id),padding:8,cssCompiledStyles:this.getCompiledStyles(f.classes),cssClasses:f.classes.join(" "),shape:"collapsedGroup",dir:f.dir,isGroup:!1,look:t.look,colorIndex:C.get(f.id)});else r.push({id:f.id,label:f.title,labelStyle:"",labelType:f.labelType,parentId:l.get(f.id),padding:8,cssCompiledStyles:this.getCompiledStyles(f.classes),cssClasses:f.classes.join(" "),shape:"rect",dir:f.dir,isGroup:!0,look:t.look,colorIndex:C.get(f.id),metadata:_t(f.metadata,!0)})}this.getVertices().forEach((h)=>{if(S.has(h.id))return;this.addNodeFromVertex(h,r,l,b,t,t.look||"classic")});let ce=this.getEdges(),Ne=ce.reduce((h,f)=>bn(f)?Math.max(h,f.step):h,0),se=Cs(t.flowchart?.stepDuration),de=t.flowchart?.stepNumbers===!0?{showStepNumber:!0}:{};ce.forEach((h,f)=>{let{arrowTypeStart:V,arrowTypeEnd:N}=this.destructEdgeType(h.type),H=[...ce.defaultStyle??[]],q=w.get(h.start)??h.start,X=w.get(h.end)??h.end;if(q===X&&(w.has(h.start)||w.has(h.end)))return;if(h.style)H.push(...h.style);let Q={id:We(q,X,{counter:f,prefix:"L"},h.id),isUserDefinedId:h.isUserDefinedId,start:q,end:X,type:h.type??"normal",label:h.text,labelType:h.labelType,labelpos:"c",thickness:h.stroke,minlen:h.length,classes:h?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":V,arrowTypeEnd:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":N,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(h.classes),labelStyle:H,style:H,pattern:h.stroke,look:t.look,animate:h.animate,animation:h.animation,...bn(h)?{step:h.step,stepCount:Ne,stepDuration:se,...de}:{},curve:h.interpolate||this.edges.defaultInterpolate||t.flowchart?.curve};o.push(Q)});let ze=this.droppedSubGraphMembers.length>0?{droppedSubGraphMembers:[...this.droppedSubGraphMembers]}:{};return{nodes:r,edges:o,other:ze,config:t}}validate(){if(u().layout!=="grid")return;let r=[...this.vertices.values(),...this.subGraphs];Ir(void 0,r);for(let o of r){let a=this.subGraphLookup.has(o.id);for(let l of Object.keys(o.metadata??{})){if(F1.has(l)||a&&l==="algorithm")continue;n.warn(`Unknown metadata key "${l}" on ${a?"subgraph":"node"} "${o.id}" with grid layout.`)}}}defaultConfig(){return Kr.flowchart}},B1=e(function(t,r){return r.db.getClasses()},"getClasses"),L1=e(async function(t,r,o,a){n.info("REF0:"),n.info("Drawing state diagram (v2)",r);let{securityLevel:l,flowchart:b,layout:d}=u();a.db.setDiagramId(r),n.debug("Before getData: ");let C=a.db.getData();n.debug("Data: ",C);let p=Ee(r,l),W=a.db.getDirection();C.type=a.type,C.layoutAlgorithm=_e(d),C.direction=W,C.nodeSpacing=b?.nodeSpacing||50,C.rankSpacing=b?.rankSpacing||50,C.markers=["point","circle","cross"],C.diagramId=r,n.debug("REF1:",C),await Ae(C,p);let x=C.config.flowchart?.diagramPadding??8;z.insertTitle(p,"flowchartTitleText",b?.titleTopMargin||0,a.db.getDiagramTitle()),ge(p,x,"flowchart",b?.useMaxWidth||!1)},"draw"),w1={getClasses:B1,draw:L1},Bt=function(){var t=e(function(Re,k,g,T){for(g=g||{},T=Re.length;T--;g[Re[T]]=k);return g},"o"),r=[1,4],o=[1,3],a=[1,5],l=[1,8,9,10,11,27,34,36,38,45,61,85,86,87,88,89,90,103,106,107,110,112,115,116,117,122,123,124,125,126],b=[2,2],d=[1,13],C=[1,14],p=[1,15],W=[1,16],x=[1,23],K=[1,25],E=[1,26],S=[1,27],w=[1,51],Y=[1,50],ce=[1,30],Ne=[1,31],se=[1,32],de=[1,33],ze=[1,34],h=[1,46],f=[1,48],V=[1,44],N=[1,49],H=[1,45],q=[1,52],X=[1,47],Q=[1,53],Z=[1,54],lt=[1,35],ct=[1,36],ht=[1,37],pt=[1,38],ft=[1,39],Ge=[1,59],G=[1,8,9,10,11,27,32,34,36,38,45,61,85,86,87,88,89,90,103,106,107,110,112,115,116,117,122,123,124,125,126],ke=[1,63],me=[1,62],De=[1,64],Ve=[8,9,11,76,78,79],Lt=[1,80],Ct=[1,81],Ke=[1,95],Ye=[1,100],He=[1,99],qe=[1,96],Qe=[1,92],Je=[1,98],Ze=[1,94],$e=[1,101],et=[1,97],st=[1,102],it=[1,93],Me=[8,9,10,11,40,76,78,79],te=[8,9,10,11,40,47,76,78,79],ne=[8,9,10,11,29,40,45,47,49,51,53,55,57,59,61,64,66,68,69,71,76,78,79,90,103,106,107,110,112,115,116,117],wt=[8,9,11,45,61,76,78,79,90,103,106,107,110,112,115,116,117],Vt=[2,26],rt=[45,61,90,103,106,107,110,112,115,116,117],It=[1,126],Rt=[1,127],bt=[1,129],kt=[1,128],Nt=[45,61,63,75,90,103,106,107,110,112,115,116,117],Gt=[1,138],Mt=[1,152],Ot=[1,153],Ut=[1,154],Wt=[1,155],jt=[1,140],zt=[1,142],Kt=[1,146],Yt=[1,147],Ht=[1,148],qt=[1,149],Qt=[1,150],Jt=[1,151],Zt=[1,156],$t=[1,157],e1=[1,136],t1=[1,137],s1=[1,144],i1=[1,139],r1=[1,143],a1=[1,141],St=[8,9,10,11,27,32,34,36,38,45,61,85,86,87,88,89,90,103,106,107,110,112,115,116,117,122,123,124,125,126],n1=[1,159],o1=[8,9,10,11,76,78,79],u1=[1,160],l1=[1,162],j=[8,9,11],oe=[8,9,10,11,14,45,61,90,106,107,110,112,115,116,117],F=[1,182],ie=[1,178],re=[1,179],v=[1,183],_=[1,180],B=[1,181],at=[78,117,120],P=[8,9,10,11,12,14,27,29,32,45,61,76,85,86,87,88,89,90,91,106,110,112,115,116,117],c1=[10,107],Ie=[31,50,52,54,56,58,63,65,67,68,70,72,117,118,119],Ce=[1,253],Se=[1,251],Te=[1,255],ye=[1,249],xe=[1,250],Fe=[1,252],Be=[1,254],Le=[1,256],nt=[1,273],h1=[8,9,11,107],fe=[8,9,10,11,61,85,106,107,110,111,112,113],Tt={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,withShape:41,node:42,link:43,styledVertex:44,AMP:45,vertex:46,STYLE_SEPARATOR:47,idString:48,DOUBLECIRCLESTART:49,DOUBLECIRCLEEND:50,PS:51,PE:52,"(-":53,"-)":54,STADIUMSTART:55,STADIUMEND:56,SUBROUTINESTART:57,SUBROUTINEEND:58,VERTEX_WITH_PROPS_START:59,"NODE_STRING[field]":60,COLON:61,"NODE_STRING[value]":62,PIPE:63,CYLINDERSTART:64,CYLINDEREND:65,DIAMOND_START:66,DIAMOND_STOP:67,TAGEND:68,TRAPSTART:69,TRAPEND:70,INVTRAPSTART:71,INVTRAPEND:72,linkStatement:73,arrowText:74,TESTSTR:75,START_LINK:76,edgeText:77,LINK:78,LINK_ID:79,edgeTextToken:80,STR:81,MD_STR:82,textToken:83,keywords:84,STYLE:85,LINKSTYLE:86,CLASSDEF:87,CLASS:88,CLICK:89,DOWN:90,UP:91,textNoTagsToken:92,stylesOpt:93,"idString[vertex]":94,"idString[class]":95,CALLBACKNAME:96,CALLBACKARGS:97,HREF:98,LINK_TARGET:99,"STR[link]":100,"STR[tooltip]":101,alphaNum:102,DEFAULT:103,numList:104,INTERPOLATE:105,NUM:106,COMMA:107,style:108,styleComponent:109,NODE_STRING:110,UNIT:111,BRKT:112,PCT:113,idStringToken:114,MINUS:115,MULT:116,UNICODE_TEXT:117,TEXT:118,TAGSTART:119,EDGE_TEXT:120,alphaNumToken:121,direction_tb:122,direction_bt:123,direction_rl:124,direction_lr:125,direction_td:126,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",45:"AMP",47:"STYLE_SEPARATOR",49:"DOUBLECIRCLESTART",50:"DOUBLECIRCLEEND",51:"PS",52:"PE",53:"(-",54:"-)",55:"STADIUMSTART",56:"STADIUMEND",57:"SUBROUTINESTART",58:"SUBROUTINEEND",59:"VERTEX_WITH_PROPS_START",60:"NODE_STRING[field]",61:"COLON",62:"NODE_STRING[value]",63:"PIPE",64:"CYLINDERSTART",65:"CYLINDEREND",66:"DIAMOND_START",67:"DIAMOND_STOP",68:"TAGEND",69:"TRAPSTART",70:"TRAPEND",71:"INVTRAPSTART",72:"INVTRAPEND",75:"TESTSTR",76:"START_LINK",78:"LINK",79:"LINK_ID",81:"STR",82:"MD_STR",85:"STYLE",86:"LINKSTYLE",87:"CLASSDEF",88:"CLASS",89:"CLICK",90:"DOWN",91:"UP",94:"idString[vertex]",95:"idString[class]",96:"CALLBACKNAME",97:"CALLBACKARGS",98:"HREF",99:"LINK_TARGET",100:"STR[link]",101:"STR[tooltip]",103:"DEFAULT",105:"INTERPOLATE",106:"NUM",107:"COMMA",110:"NODE_STRING",111:"UNIT",112:"BRKT",113:"PCT",115:"MINUS",116:"MULT",117:"UNICODE_TEXT",118:"TEXT",119:"TAGSTART",120:"EDGE_TEXT",122:"direction_tb",123:"direction_bt",124:"direction_rl",125:"direction_lr",126:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[41,2],[41,3],[20,3],[20,4],[20,3],[20,4],[20,2],[20,1],[20,2],[20,1],[42,1],[42,5],[42,5],[44,1],[44,3],[46,4],[46,4],[46,6],[46,4],[46,4],[46,4],[46,8],[46,4],[46,4],[46,4],[46,6],[46,4],[46,4],[46,4],[46,4],[46,4],[46,1],[43,2],[43,3],[43,3],[43,1],[43,3],[43,4],[77,1],[77,2],[77,1],[77,1],[73,1],[73,2],[74,3],[30,1],[30,2],[30,1],[30,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[104,1],[104,3],[93,1],[93,3],[108,1],[108,2],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[83,1],[83,1],[83,1],[83,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[80,1],[80,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[48,1],[48,2],[102,1],[102,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:e(function(k,g,T,c,U,s,Oe){var i=s.length-1;switch(U){case 2:this.$=[];break;case 3:if(!Array.isArray(s[i])||s[i].length>0)s[i-1].push(s[i]);this.$=s[i-1];break;case 4:case 187:this.$=s[i];break;case 11:c.setDirection("TB"),this.$="TB";break;case 12:c.setDirection(s[i-1]),this.$=s[i-1];break;case 27:this.$=s[i-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=c.addSubGraph(s[i-6],s[i-1],s[i-4]);break;case 34:this.$=c.addSubGraph(s[i-3],s[i-1],s[i-3]);break;case 35:this.$=c.addSubGraph(void 0,s[i-1],void 0);break;case 37:this.$=s[i].trim(),c.setAccTitle(this.$);break;case 38:case 39:this.$=s[i].trim(),c.setAccDescription(this.$);break;case 43:this.$=s[i-1]+s[i];break;case 44:this.$=s[i];break;case 45:this.$={nodes:s[i-1],shapeData:s[i]};break;case 46:this.$={nodes:s[i-2],shapeData:s[i]};break;case 47:c.addVertex(s[i].nodes[s[i].nodes.length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i].shapeData),c.addLink(s[i-2].stmt,s[i].nodes,s[i-1]),this.$={stmt:s[i].nodes,nodes:s[i].nodes.concat(s[i-2].nodes)};break;case 48:c.addVertex(s[i-1].nodes[s[i-1].nodes.length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i-1].shapeData),c.addLink(s[i-3].stmt,s[i-1].nodes,s[i-2]),this.$={stmt:s[i-1].nodes,nodes:s[i-1].nodes.concat(s[i-3].nodes)};break;case 49:c.addLink(s[i-2].stmt,s[i],s[i-1]),this.$={stmt:s[i],nodes:s[i].concat(s[i-2].nodes)};break;case 50:c.addLink(s[i-3].stmt,s[i-1],s[i-2]),this.$={stmt:s[i-1],nodes:s[i-1].concat(s[i-3].nodes)};break;case 51:this.$={stmt:s[i-1],nodes:s[i-1]};break;case 52:c.addVertex(s[i].nodes[s[i].nodes.length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i].shapeData),this.$={stmt:s[i].nodes,nodes:s[i].nodes,shapeData:s[i].shapeData};break;case 53:c.addVertex(s[i-1].nodes[s[i-1].nodes.length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i-1].shapeData),this.$={stmt:s[i-1].nodes,nodes:s[i-1].nodes,shapeData:s[i-1].shapeData};break;case 54:this.$={stmt:s[i],nodes:s[i]};break;case 55:this.$=[s[i]];break;case 56:c.addVertex(s[i-4].nodes[s[i-4].nodes.length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i-4].shapeData),this.$=s[i-4].nodes.concat(s[i]);break;case 57:this.$=s[i-4].concat(s[i]);break;case 58:this.$=s[i];break;case 59:this.$=s[i-2],c.setClass(s[i-2],s[i]);break;case 60:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"square");break;case 61:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"doublecircle");break;case 62:this.$=s[i-5],c.addVertex(s[i-5],s[i-2],"circle");break;case 63:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"ellipse");break;case 64:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"stadium");break;case 65:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"subroutine");break;case 66:this.$=s[i-7],c.addVertex(s[i-7],s[i-1],"rect",void 0,void 0,void 0,Object.fromEntries([[s[i-5],s[i-3]]]));break;case 67:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"cylinder");break;case 68:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"round");break;case 69:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"diamond");break;case 70:this.$=s[i-5],c.addVertex(s[i-5],s[i-2],"hexagon");break;case 71:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"odd");break;case 72:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"trapezoid");break;case 73:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"inv_trapezoid");break;case 74:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"lean_right");break;case 75:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"lean_left");break;case 76:this.$=s[i],c.addVertex(s[i]);break;case 77:s[i-1].text=s[i],this.$=s[i-1];break;case 78:case 79:s[i-2].text=s[i-1],this.$=s[i-2];break;case 80:this.$=s[i];break;case 81:var J=c.destructLink(s[i],s[i-2]);this.$={type:J.type,stroke:J.stroke,length:J.length,text:s[i-1]};break;case 82:var J=c.destructLink(s[i],s[i-2]);this.$={type:J.type,stroke:J.stroke,length:J.length,text:s[i-1],id:s[i-3]};break;case 83:this.$={text:s[i],type:"text"};break;case 84:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 85:this.$={text:s[i],type:"string"};break;case 86:this.$={text:s[i],type:"markdown"};break;case 87:var J=c.destructLink(s[i]);this.$={type:J.type,stroke:J.stroke,length:J.length};break;case 88:var J=c.destructLink(s[i]);this.$={type:J.type,stroke:J.stroke,length:J.length,id:s[i-1]};break;case 89:this.$=s[i-1];break;case 90:this.$={text:s[i],type:"text"};break;case 91:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 92:this.$={text:s[i],type:"string"};break;case 93:case 108:this.$={text:s[i],type:"markdown"};break;case 105:this.$={text:s[i],type:"text"};break;case 106:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 107:this.$={text:s[i],type:"text"};break;case 109:this.$=s[i-4],c.addClass(s[i-2],s[i]);break;case 110:this.$=s[i-4],c.setClass(s[i-2],s[i]);break;case 111:case 119:this.$=s[i-1],c.setClickEvent(s[i-1],s[i]);break;case 112:case 120:this.$=s[i-3],c.setClickEvent(s[i-3],s[i-2]),c.setTooltip(s[i-3],s[i]);break;case 113:this.$=s[i-2],c.setClickEvent(s[i-2],s[i-1],s[i]);break;case 114:this.$=s[i-4],c.setClickEvent(s[i-4],s[i-3],s[i-2]),c.setTooltip(s[i-4],s[i]);break;case 115:this.$=s[i-2],c.setLink(s[i-2],s[i]);break;case 116:this.$=s[i-4],c.setLink(s[i-4],s[i-2]),c.setTooltip(s[i-4],s[i]);break;case 117:this.$=s[i-4],c.setLink(s[i-4],s[i-2],s[i]);break;case 118:this.$=s[i-6],c.setLink(s[i-6],s[i-4],s[i]),c.setTooltip(s[i-6],s[i-2]);break;case 121:this.$=s[i-1],c.setLink(s[i-1],s[i]);break;case 122:this.$=s[i-3],c.setLink(s[i-3],s[i-2]),c.setTooltip(s[i-3],s[i]);break;case 123:this.$=s[i-3],c.setLink(s[i-3],s[i-2],s[i]);break;case 124:this.$=s[i-5],c.setLink(s[i-5],s[i-4],s[i]),c.setTooltip(s[i-5],s[i-2]);break;case 125:this.$=s[i-4],c.addVertex(s[i-2],void 0,void 0,s[i]);break;case 126:this.$=s[i-4],c.updateLink([s[i-2]],s[i]);break;case 127:this.$=s[i-4],c.updateLink(s[i-2],s[i]);break;case 128:this.$=s[i-8],c.updateLinkInterpolate([s[i-6]],s[i-2]),c.updateLink([s[i-6]],s[i]);break;case 129:this.$=s[i-8],c.updateLinkInterpolate(s[i-6],s[i-2]),c.updateLink(s[i-6],s[i]);break;case 130:this.$=s[i-6],c.updateLinkInterpolate([s[i-4]],s[i]);break;case 131:this.$=s[i-6],c.updateLinkInterpolate(s[i-4],s[i]);break;case 132:case 134:this.$=[s[i]];break;case 133:case 135:s[i-2].push(s[i]),this.$=s[i-2];break;case 137:this.$=s[i-1]+s[i];break;case 185:this.$=s[i];break;case 186:this.$=s[i-1]+""+s[i];break;case 188:this.$=s[i-1]+""+s[i];break;case 189:this.$={stmt:"dir",value:"TB"};break;case 190:this.$={stmt:"dir",value:"BT"};break;case 191:this.$={stmt:"dir",value:"RL"};break;case 192:this.$={stmt:"dir",value:"LR"};break;case 193:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:r,10:o,12:a},{1:[3]},t(l,b,{5:6}),{4:7,9:r,10:o,12:a},{4:8,9:r,10:o,12:a},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:d,9:C,10:p,11:W,20:17,22:18,23:19,24:20,25:21,26:22,27:x,33:24,34:K,36:E,38:S,41:29,42:28,44:40,45:w,46:41,48:42,61:Y,85:ce,86:Ne,87:se,88:de,89:ze,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z,122:lt,123:ct,124:ht,125:pt,126:ft},t(l,[2,9]),t(l,[2,10]),t(l,[2,11]),{8:[1,56],9:[1,57],10:Ge,15:55,18:58},t(G,[2,3]),t(G,[2,4]),t(G,[2,5]),t(G,[2,6]),t(G,[2,7]),t(G,[2,8]),{8:ke,9:me,11:De,21:60,43:61,73:65,76:[1,66],78:[1,68],79:[1,67]},{8:ke,9:me,11:De,21:69},{8:ke,9:me,11:De,21:70},{8:ke,9:me,11:De,21:71},{8:ke,9:me,11:De,21:72},{8:ke,9:me,11:De,21:73},{8:ke,9:me,10:[1,74],11:De,21:75},t(G,[2,36]),{35:[1,76]},{37:[1,77]},t(G,[2,39]),t(Ve,[2,54],{18:78,39:79,10:Lt,40:Ct}),t(Ve,[2,52],{18:82,10:Ge}),{10:[1,83]},{10:[1,84]},{10:[1,85]},{10:[1,86]},{14:Ke,45:Ye,61:He,81:[1,90],90:qe,96:[1,87],98:[1,88],102:89,106:Qe,107:Je,110:Ze,112:$e,115:et,116:st,117:it,121:91},t(G,[2,189]),t(G,[2,190]),t(G,[2,191]),t(G,[2,192]),t(G,[2,193]),t(Me,[2,55]),t(Me,[2,58],{47:[1,103]}),t(te,[2,76],{114:116,29:[1,104],45:w,49:[1,105],51:[1,106],53:[1,107],55:[1,108],57:[1,109],59:[1,110],61:Y,64:[1,111],66:[1,112],68:[1,113],69:[1,114],71:[1,115],90:h,103:f,106:V,107:N,110:H,112:q,115:X,116:Q,117:Z}),t(ne,[2,185]),t(ne,[2,146]),t(ne,[2,147]),t(ne,[2,148]),t(ne,[2,149]),t(ne,[2,150]),t(ne,[2,151]),t(ne,[2,152]),t(ne,[2,153]),t(ne,[2,154]),t(ne,[2,155]),t(ne,[2,156]),t(l,[2,12]),t(l,[2,18]),t(l,[2,19]),{9:[1,117]},t(wt,Vt,{18:118,10:Ge}),t(G,[2,27]),{41:119,42:120,44:40,45:w,46:41,48:42,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},t(G,[2,40]),t(G,[2,41]),t(G,[2,42]),t(rt,[2,80],{74:121,63:[1,123],75:[1,122]}),{77:124,80:125,81:It,82:Rt,117:bt,120:kt},{76:[1,130],78:[1,131]},t(Nt,[2,87]),t(G,[2,28]),t(G,[2,29]),t(G,[2,30]),t(G,[2,31]),t(G,[2,32]),{10:Gt,12:Mt,14:Ot,27:Ut,28:132,32:Wt,45:jt,61:zt,76:Kt,81:[1,134],82:[1,135],84:145,85:Yt,86:Ht,87:qt,88:Qt,89:Jt,90:Zt,91:$t,92:133,106:e1,110:t1,112:s1,115:i1,116:r1,117:a1},t(St,b,{5:158}),t(G,[2,37]),t(G,[2,38]),t(Ve,[2,51],{45:n1}),t(o1,[2,45],{40:u1}),t([8,9,11,45,76,78,79],Vt,{18:118,39:161,10:Ge,40:Ct}),t(Me,[2,44]),t(Ve,[2,53],{45:l1}),{45:w,48:163,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},{103:[1,164],104:165,106:[1,166]},{45:w,48:167,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},{45:w,48:168,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},t(j,[2,111],{10:[1,169],97:[1,170]}),{81:[1,171]},t(j,[2,119],{121:173,10:[1,172],14:Ke,45:Ye,61:He,90:qe,106:Qe,107:Je,110:Ze,112:$e,115:et,116:st,117:it}),t(j,[2,121],{10:[1,174]}),t(oe,[2,187]),t(oe,[2,174]),t(oe,[2,175]),t(oe,[2,176]),t(oe,[2,177]),t(oe,[2,178]),t(oe,[2,179]),t(oe,[2,180]),t(oe,[2,181]),t(oe,[2,182]),t(oe,[2,183]),t(oe,[2,184]),{45:w,48:175,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},{30:176,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{30:184,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{30:186,51:[1,185],68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{30:187,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{30:188,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{30:189,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{110:[1,190]},{30:191,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{30:192,66:[1,193],68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{30:194,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{30:195,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{30:196,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},t(ne,[2,186]),t(l,[2,20]),t(wt,[2,25]),t(Ve,[2,47],{18:197,10:Ge}),t(Ve,[2,49],{39:79,18:198,10:Lt,40:Ct}),t(rt,[2,77],{10:[1,199]}),{10:[1,200]},{30:201,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{78:[1,202],80:203,117:bt,120:kt},t(at,[2,83]),t(at,[2,85]),t(at,[2,86]),t(at,[2,172]),t(at,[2,173]),{77:204,80:125,81:It,82:Rt,117:bt,120:kt},t(Nt,[2,88]),{8:ke,9:me,10:Gt,11:De,12:Mt,14:Ot,21:206,27:Ut,29:[1,205],32:Wt,45:jt,61:zt,76:Kt,84:145,85:Yt,86:Ht,87:qt,88:Qt,89:Jt,90:Zt,91:$t,92:207,106:e1,110:t1,112:s1,115:i1,116:r1,117:a1},t(P,[2,105]),t(P,[2,107]),t(P,[2,108]),t(P,[2,161]),t(P,[2,162]),t(P,[2,163]),t(P,[2,164]),t(P,[2,165]),t(P,[2,166]),t(P,[2,167]),t(P,[2,168]),t(P,[2,169]),t(P,[2,170]),t(P,[2,171]),t(P,[2,94]),t(P,[2,95]),t(P,[2,96]),t(P,[2,97]),t(P,[2,98]),t(P,[2,99]),t(P,[2,100]),t(P,[2,101]),t(P,[2,102]),t(P,[2,103]),t(P,[2,104]),{6:11,7:12,8:d,9:C,10:p,11:W,20:17,22:18,23:19,24:20,25:21,26:22,27:x,32:[1,208],33:24,34:K,36:E,38:S,41:29,42:28,44:40,45:w,46:41,48:42,61:Y,85:ce,86:Ne,87:se,88:de,89:ze,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z,122:lt,123:ct,124:ht,125:pt,126:ft},{10:Ge,18:209},t(Me,[2,43]),t(o1,[2,46],{40:u1}),{10:Ge,18:210},{10:[1,211],45:w,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,114:116,115:X,116:Q,117:Z},{10:[1,212]},{10:[1,213],107:[1,214]},t(c1,[2,132]),{10:[1,215],45:w,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,114:116,115:X,116:Q,117:Z},{10:[1,216],45:w,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,114:116,115:X,116:Q,117:Z},{81:[1,217]},t(j,[2,113],{10:[1,218]}),t(j,[2,115],{10:[1,219]}),{81:[1,220]},t(oe,[2,188]),{81:[1,221],99:[1,222]},t(Me,[2,59],{114:116,45:w,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,115:X,116:Q,117:Z}),{31:[1,223],68:F,83:224,117:v,118:_,119:B},t(Ie,[2,90]),t(Ie,[2,92]),t(Ie,[2,93]),t(Ie,[2,157]),t(Ie,[2,158]),t(Ie,[2,159]),t(Ie,[2,160]),{50:[1,225],68:F,83:224,117:v,118:_,119:B},{30:226,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{52:[1,227],68:F,83:224,117:v,118:_,119:B},{54:[1,228],68:F,83:224,117:v,118:_,119:B},{56:[1,229],68:F,83:224,117:v,118:_,119:B},{58:[1,230],68:F,83:224,117:v,118:_,119:B},{61:[1,231]},{65:[1,232],68:F,83:224,117:v,118:_,119:B},{67:[1,233],68:F,83:224,117:v,118:_,119:B},{30:234,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{31:[1,235],68:F,83:224,117:v,118:_,119:B},{68:F,70:[1,236],72:[1,237],83:224,117:v,118:_,119:B},{68:F,70:[1,239],72:[1,238],83:224,117:v,118:_,119:B},t(Ve,[2,48],{45:l1}),t(Ve,[2,50],{45:n1}),t(rt,[2,79]),t(rt,[2,78]),{63:[1,240],68:F,83:224,117:v,118:_,119:B},t(rt,[2,81]),t(at,[2,84]),{78:[1,241],80:203,117:bt,120:kt},{30:242,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},t(St,b,{5:243}),t(P,[2,106]),t(G,[2,35]),{44:244,45:w,46:41,48:42,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},{44:245,45:w,46:41,48:42,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},{10:Ce,61:Se,85:Te,93:246,106:ye,108:247,109:248,110:xe,111:Fe,112:Be,113:Le},{10:Ce,61:Se,85:Te,93:257,105:[1,258],106:ye,108:247,109:248,110:xe,111:Fe,112:Be,113:Le},{10:Ce,61:Se,85:Te,93:259,105:[1,260],106:ye,108:247,109:248,110:xe,111:Fe,112:Be,113:Le},{106:[1,261]},{10:Ce,61:Se,85:Te,93:262,106:ye,108:247,109:248,110:xe,111:Fe,112:Be,113:Le},{45:w,48:263,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},t(j,[2,112]),{81:[1,264]},{81:[1,265],99:[1,266]},t(j,[2,120]),t(j,[2,122],{10:[1,267]}),t(j,[2,123]),t(te,[2,60]),t(Ie,[2,91]),t(te,[2,61]),{52:[1,268],68:F,83:224,117:v,118:_,119:B},t(te,[2,68]),t(te,[2,63]),t(te,[2,64]),t(te,[2,65]),{110:[1,269]},t(te,[2,67]),t(te,[2,69]),{67:[1,270],68:F,83:224,117:v,118:_,119:B},t(te,[2,71]),t(te,[2,72]),t(te,[2,74]),t(te,[2,73]),t(te,[2,75]),t([10,45,61,90,103,106,107,110,112,115,116,117],[2,89]),t(rt,[2,82]),{31:[1,271],68:F,83:224,117:v,118:_,119:B},{6:11,7:12,8:d,9:C,10:p,11:W,20:17,22:18,23:19,24:20,25:21,26:22,27:x,32:[1,272],33:24,34:K,36:E,38:S,41:29,42:28,44:40,45:w,46:41,48:42,61:Y,85:ce,86:Ne,87:se,88:de,89:ze,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z,122:lt,123:ct,124:ht,125:pt,126:ft},t(Me,[2,57]),t(Me,[2,56]),t(j,[2,125],{107:nt}),t(h1,[2,134],{109:274,10:Ce,61:Se,85:Te,106:ye,110:xe,111:Fe,112:Be,113:Le}),t(fe,[2,136]),t(fe,[2,138]),t(fe,[2,139]),t(fe,[2,140]),t(fe,[2,141]),t(fe,[2,142]),t(fe,[2,143]),t(fe,[2,144]),t(fe,[2,145]),t(j,[2,126],{107:nt}),{10:[1,275]},t(j,[2,127],{107:nt}),{10:[1,276]},t(c1,[2,133]),t(j,[2,109],{107:nt}),t(j,[2,110],{114:116,45:w,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,115:X,116:Q,117:Z}),t(j,[2,114]),t(j,[2,116],{10:[1,277]}),t(j,[2,117]),{99:[1,278]},{52:[1,279]},{63:[1,280]},{67:[1,281]},{8:ke,9:me,11:De,21:282},t(G,[2,34]),{10:Ce,61:Se,85:Te,106:ye,108:283,109:248,110:xe,111:Fe,112:Be,113:Le},t(fe,[2,137]),{14:Ke,45:Ye,61:He,90:qe,102:284,106:Qe,107:Je,110:Ze,112:$e,115:et,116:st,117:it,121:91},{14:Ke,45:Ye,61:He,90:qe,102:285,106:Qe,107:Je,110:Ze,112:$e,115:et,116:st,117:it,121:91},{99:[1,286]},t(j,[2,124]),t(te,[2,62]),{30:287,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},t(te,[2,70]),t(St,b,{5:288}),t(h1,[2,135],{109:274,10:Ce,61:Se,85:Te,106:ye,110:xe,111:Fe,112:Be,113:Le}),t(j,[2,130],{121:173,10:[1,289],14:Ke,45:Ye,61:He,90:qe,106:Qe,107:Je,110:Ze,112:$e,115:et,116:st,117:it}),t(j,[2,131],{121:173,10:[1,290],14:Ke,45:Ye,61:He,90:qe,106:Qe,107:Je,110:Ze,112:$e,115:et,116:st,117:it}),t(j,[2,118]),{31:[1,291],68:F,83:224,117:v,118:_,119:B},{6:11,7:12,8:d,9:C,10:p,11:W,20:17,22:18,23:19,24:20,25:21,26:22,27:x,32:[1,292],33:24,34:K,36:E,38:S,41:29,42:28,44:40,45:w,46:41,48:42,61:Y,85:ce,86:Ne,87:se,88:de,89:ze,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z,122:lt,123:ct,124:ht,125:pt,126:ft},{10:Ce,61:Se,85:Te,93:293,106:ye,108:247,109:248,110:xe,111:Fe,112:Be,113:Le},{10:Ce,61:Se,85:Te,93:294,106:ye,108:247,109:248,110:xe,111:Fe,112:Be,113:Le},t(te,[2,66]),t(G,[2,33]),t(j,[2,128],{107:nt}),t(j,[2,129],{107:nt})],defaultActions:{},parseError:e(function(k,g){if(g.recoverable)this.trace(k);else{var T=Error(k);throw T.hash=g,T}},"parseError"),parse:e(function(k){var g=this,T=[0],c=[],U=[null],s=[],Oe=this.table,i="",J=0,d1=0,p1=0,S1=2,f1=1,T1=s.slice.call(arguments,1),ee=Object.create(this.lexer),Ue={yy:{}};for(var Et in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Et))Ue.yy[Et]=this.yy[Et];if(ee.setInput(k,Ue.yy),Ue.yy.lexer=ee,Ue.yy.parser=this,typeof ee.yylloc>"u")ee.yylloc={};var yt=ee.yylloc;s.push(yt);var E1=ee.options&&ee.options.ranges;if(typeof Ue.yy.parseError==="function")this.parseError=Ue.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function y1(le){T.length=T.length-2*le,U.length=U.length-le,s.length=s.length-le}e(y1,"popStack");function b1(){var le=c.pop()||ee.lex()||f1;if(typeof le!=="number"){if(le instanceof Array)c=le,le=c.pop();le=g.symbols_[le]||le}return le}e(b1,"lex");var ae,xt,je,ue,G1,Ft,ot={},mt,we,k1,Dt;while(!0){if(je=T[T.length-1],this.defaultActions[je])ue=this.defaultActions[je];else{if(ae===null||typeof ae>"u")ae=b1();ue=Oe[je]&&Oe[je][ae]}if(typeof ue>"u"||!ue.length||!ue[0]){var vt="";Dt=[];for(mt in Oe[je])if(this.terminals_[mt]&&mt>S1)Dt.push("'"+this.terminals_[mt]+"'");if(ee.showPosition)vt="Parse error on line "+(J+1)+`:
9
+ You have to call mermaid.initialize.`)}isLinkData(t){return t!==null&&typeof t==="object"&&"id"in t&&typeof t.id==="string"}addLink(t,r,o){let a=this.isLinkData(o)?o.id.replace("@",""):void 0;n.info("addLink",t,r,a);for(let l of t)for(let k of r){let d=l===t[t.length-1],D=k===r[0];if(d&&D)this.addSingleLink(l,k,o,a);else this.addSingleLink(l,k,o,void 0)}}updateLinkInterpolate(t,r){t.forEach((o)=>{if(o==="default")this.edges.defaultInterpolate=r;else this.edges[o].interpolate=r})}updateLink(t,r){t.forEach((o)=>{if(typeof o==="number"&&o>=this.edges.length)throw Error(`The index ${o} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);if(o==="default")this.edges.defaultStyle=r;else if(this.edges[o].style=r,(this.edges[o]?.style?.length??0)>0&&!this.edges[o]?.style?.some((a)=>a?.startsWith("fill")))this.edges[o]?.style?.push("fill:none")})}addClass(t,r){let o=r.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach((a)=>{let l=this.classes.get(a);if(l===void 0)l={id:a,styles:[],textStyles:[]},this.classes.set(a,l);if(o!==void 0&&o!==null)o.forEach((k)=>{if(/color/.exec(k)){let d=k.replace("fill","bgFill");l.textStyles.push(d)}l.styles.push(k)})})}setDirection(t){if(this.direction=t.trim(),/.*</.exec(this.direction))this.direction="RL";if(/.*\^/.exec(this.direction))this.direction="BT";if(/.*>/.exec(this.direction))this.direction="LR";if(/.*v/.exec(this.direction))this.direction="TB";if(this.direction==="TD")this.direction="TB"}setClass(t,r){for(let o of t.split(",")){let a=this.vertices.get(o);if(a)a.classes.push(r);let l=this.edges.find((d)=>d.id===o);if(l)l.classes.push(r);let k=this.subGraphLookup.get(o);if(k)k.classes.push(r)}}setTooltip(t,r){if(r===void 0)return;r=this.sanitizeText(r);for(let o of t.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(o):o,r)}setClickFun(t,r,o){if(u().securityLevel!=="loose")return;if(r===void 0)return;let a=[];if(typeof o==="string"){a=o.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let k=0;k<a.length;k++){let d=a[k].trim();if(d.startsWith('"')&&d.endsWith('"'))d=d.substr(1,d.length-2);a[k]=d}}if(a.length===0)a.push(t);let l=this.vertices.get(t);if(l)l.haveCallback=!0,this.funs.push(()=>{let k=this.lookUpDomId(t),d=document.querySelector(`[id="${k}"]`);if(d!==null)d.addEventListener("click",()=>{F.runFunc(r,...a)},!1)})}setLink(t,r,o){t.split(",").forEach((a)=>{let l=this.vertices.get(a);if(l!==void 0)l.link=F.formatUrl(r,this.config),l.linkTarget=o}),this.setClass(t,"clickable")}getTooltip(t){return this.tooltips.get(t)}setClickEvent(t,r,o){t.split(",").forEach((a)=>{this.setClickFun(a,r,o)}),this.setClass(t,"clickable")}bindFunctions(t){this.funs.forEach((r)=>{r(t)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(t){let r=Kt();p(t).select("svg").selectAll("g.node").on("mouseover",(l)=>{let k=p(l.currentTarget),d=k.attr("title");if(d===null)return;let D=l.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(k.attr("title")).style("left",window.scrollX+D.left+(D.right-D.left)/2+"px").style("top",window.scrollY+D.bottom+"px"),r.html(Oe.sanitize(d)),k.classed("hover",!0)}).on("mouseout",(l)=>{r.transition().duration(500).style("opacity",0),p(l.currentTarget).classed("hover",!1)})}clear(t="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=u(),A()}setGen(t){this.version=t||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(t,r,o){let a=t.text.trim(),l=o.text;if(t===o&&/\s/.exec(o.text))a=void 0;let d=e((C)=>{let w={boolean:{},number:{},string:{}},Y=[],ce;return{nodeList:C.filter(function(se){let he=typeof se;if(se.stmt&&se.stmt==="dir")return ce=se.value,!1;if(se.trim()==="")return!1;if(he in w)return w[he].hasOwnProperty(se)?!1:w[he][se]=!0;else return Y.includes(se)?!1:Y.push(se)}),dir:ce}},"uniq")(r.flat()),{nodeList:D,dir:f}=d,j=u().flowchart??{};if(f=f??(j.inheritDir?this.getDirection()??u().direction??void 0:void 0),this.version==="gen-1")for(let C=0;C<D.length;C++)D[C]=this.lookUpDomId(D[C]);a=a??"subGraph"+this.subCount,l=l||"",l=this.sanitizeText(l),this.subCount=this.subCount+1;let E={id:a,nodes:D,title:l.trim(),classes:[],dir:f,labelType:this.sanitizeNodeLabelType(o?.type)};n.info("Adding",E.id,E.nodes,E.dir);let K=this.makeUniq(E,this.subGraphs).nodes;this.recordDroppedMembers(E,K),E.nodes=K.filter((C)=>C!==a);let T=this.subGraphs.find((C)=>C.id===a);if(T)T.nodes.push(...E.nodes);else this.subGraphs.push(E);return this.subGraphLookup.set(a,T??E),a}recordDroppedMembers(t,r){let o=new Set(r);for(let a of t.nodes){if(o.has(a)||a===t.id)continue;let l=this.subGraphs.find((k)=>k.nodes.includes(a));if(l&&l.id!==t.id&&!this.isNestedIn(l.id,t))this.droppedSubGraphMembers.push({node:a,keptBy:l.id,droppedFrom:t.id})}}isNestedIn(t,r){let o=new Set,a=t;while(a!==void 0&&!o.has(a)){if(r.nodes.includes(a))return!0;o.add(a);let l=a;a=this.subGraphs.find((k)=>k.nodes.includes(l))?.id}return!1}getPosForId(t){for(let[r,o]of this.subGraphs.entries())if(o.id===t)return r;return-1}indexNodes2(t,r){let o=this.subGraphs[r].nodes;if(this.secCount=this.secCount+1,this.secCount>2000)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===t)return{result:!0,count:0};let a=0,l=1;while(a<o.length){let k=this.getPosForId(o[a]);if(k>=0){let d=this.indexNodes2(t,k);if(d.result)return{result:!0,count:l+d.count};else l=l+d.count}a=a+1}return{result:!1,count:l}}getDepthFirstPos(t){return this.posCrossRef[t]}indexNodes(){if(this.secCount=-1,this.subGraphs.length>0)this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){if(this.firstGraphFlag)return this.firstGraphFlag=!1,!0;return!1}destructStartLink(t){let r=t.trim(),o="arrow_open";switch(r[0]){case"<":o="arrow_point",r=r.slice(1);break;case"x":o="arrow_cross",r=r.slice(1);break;case"o":o="arrow_circle",r=r.slice(1);break}let a="normal";if(r.includes("="))a="thick";if(r.includes("."))a="dotted";return{type:o,stroke:a}}countChar(t,r){let o=r.length,a=0;for(let l=0;l<o;++l)if(r[l]===t)++a;return a}destructEndLink(t){let r=t.trim(),o=r.slice(0,-1),a="arrow_open";switch(r.slice(-1)){case"x":if(a="arrow_cross",r.startsWith("x"))a="double_"+a,o=o.slice(1);break;case">":if(a="arrow_point",r.startsWith("<"))a="double_"+a,o=o.slice(1);break;case"o":if(a="arrow_circle",r.startsWith("o"))a="double_"+a,o=o.slice(1);break}let l="normal",k=o.length-1;if(o.startsWith("="))l="thick";if(o.startsWith("~"))l="invisible";let d=this.countChar(".",o);if(d)l="dotted",k=d;return{type:a,stroke:l,length:k}}destructLink(t,r){let o=this.destructEndLink(t),a;if(r){if(a=this.destructStartLink(r),a.stroke!==o.stroke)return{type:"INVALID",stroke:"INVALID"};if(a.type==="arrow_open")a.type=o.type;else{if(a.type!==o.type)return{type:"INVALID",stroke:"INVALID"};a.type="double_"+a.type}if(a.type==="double_arrow")a.type="double_arrow_point";return a.length=o.length,a}return o}exists(t,r){for(let o of t)if(o.nodes.includes(r))return!0;return!1}makeUniq(t,r){let o=[];return t.nodes.forEach((a,l)=>{if(!this.exists(r,a))o.push(t.nodes[l])}),{nodes:o}}getTypeFromVertex(t){if(t.img)return"imageSquare";if(t.icon){if(t.form==="circle")return"iconCircle";if(t.form==="square")return"iconSquare";if(t.form==="rounded")return"iconRounded";return"icon"}switch(t.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return t.type}}findNode(t,r){return t.find((o)=>o.id===r)}destructEdgeType(t){let r="none",o="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":o=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=t.replace("double_",""),o=r;break}return{arrowTypeStart:r,arrowTypeEnd:o}}addNodeFromVertex(t,r,o,a,l,k){let d=o.get(t.id),D=a.get(t.id)??!1,f=this.findNode(r,t.id);if(f)f.cssStyles=t.styles,f.cssCompiledStyles=this.getCompiledStyles(t.classes),f.cssClasses=t.classes.join(" ");else{let j={id:t.id,label:t.text,labelType:t.labelType,labelStyle:"",parentId:d,padding:l.flowchart?.padding||8,cssStyles:t.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...t.classes]),cssClasses:"default "+t.classes.join(" "),dir:t.dir,domId:t.domId,look:k,link:t.link,linkTarget:t.linkTarget,tooltip:this.getTooltip(t.id),icon:t.icon,pos:t.pos,img:t.img,assetWidth:t.assetWidth,assetHeight:t.assetHeight,constraint:t.constraint,metadata:Bt(t.metadata)};if(D)r.push({...j,isGroup:!0,shape:"rect"});else r.push({...j,isGroup:!1,shape:this.getTypeFromVertex(t),minWidth:l.flowchart?.minNodeWidth})}}getCompiledStyles(t){let r=[];for(let o of t){let a=this.classes.get(o);if(a?.styles)r=[...r,...a.styles??[]].map((l)=>l.trim());if(a?.textStyles)r=[...r,...a.textStyles??[]].map((l)=>l.trim())}return r}getData(){let t=u(),r=[],o=[],a=this.getSubGraphs(),l=new Map,k=new Map,d=new Map;for(let h of a)for(let b of h.nodes)if(this.subGraphLookup.has(b))d.set(b,h.id);let D=new Map,f=new Map;for(let h of a){let b=d.get(h.id);if(b!==void 0)f.set(b,[...f.get(b)??[],h.id])}let j=0,E=e((h)=>{D.set(h,j++);for(let b of f.get(h)??[])E(b)},"walk");for(let h of a)if(!d.has(h.id))E(h.id);let K=e((h)=>this.subGraphLookup.get(h)?.metadata?.view==="collapsed","isCollapsed"),T=e((h)=>{let b,V=new Set,N=h;while(N!==void 0&&!V.has(N)){if(V.add(N),K(N))b=N;N=d.get(N)}return b},"outermostCollapsed"),C=new Set,w=new Map;for(let h of a){let b=T(h.id);if(b===void 0)continue;if(h.id!==b)C.add(h.id),w.set(h.id,b);for(let V of h.nodes){if(V===b)continue;C.add(V),w.set(V,b)}}for(let h=a.length-1;h>=0;h--){let b=a[h];if(C.has(b.id))continue;if(b.nodes.length>0)k.set(b.id,!0);for(let V of b.nodes)l.set(V,b.id)}for(let h=a.length-1;h>=0;h--){let b=a[h];if(C.has(b.id))continue;if(b.metadata?.view==="collapsed")r.push({id:b.id,label:b.title,labelStyle:"",labelType:b.labelType,parentId:l.get(b.id),padding:8,cssCompiledStyles:this.getCompiledStyles(b.classes),cssClasses:b.classes.join(" "),shape:"collapsedGroup",dir:b.dir,isGroup:!1,look:t.look,colorIndex:D.get(b.id)});else r.push({id:b.id,label:b.title,labelStyle:"",labelType:b.labelType,parentId:l.get(b.id),padding:8,cssCompiledStyles:this.getCompiledStyles(b.classes),cssClasses:b.classes.join(" "),shape:"rect",dir:b.dir,isGroup:!0,look:t.look,colorIndex:D.get(b.id),metadata:Bt(b.metadata,!0)})}this.getVertices().forEach((h)=>{if(C.has(h.id))return;this.addNodeFromVertex(h,r,l,k,t,t.look||"classic")});let ce=this.getEdges(),Ge=ce.reduce((h,b)=>vn(b)?Math.max(h,b.step):h,0),se=Cs(t.flowchart?.stepDuration),he=t.flowchart?.stepNumbers===!0?{showStepNumber:!0}:{};ce.forEach((h,b)=>{let{arrowTypeStart:V,arrowTypeEnd:N}=this.destructEdgeType(h.type),H=[...ce.defaultStyle??[]],q=w.get(h.start)??h.start,X=w.get(h.end)??h.end;if(q===X&&(w.has(h.start)||w.has(h.end)))return;if(h.style)H.push(...h.style);let Q={id:Ve(q,X,{counter:b,prefix:"L"},h.id),isUserDefinedId:h.isUserDefinedId,start:q,end:X,type:h.type??"normal",label:h.text,labelType:h.labelType,labelpos:"c",thickness:h.stroke,minlen:h.length,classes:h?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":V,arrowTypeEnd:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":N,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(h.classes),labelStyle:H,style:H,pattern:h.stroke,look:t.look,animate:h.animate,animation:h.animation,...vn(h)?{step:h.step,stepCount:Ge,stepDuration:se,...he}:{},curve:h.interpolate||this.edges.defaultInterpolate||t.flowchart?.curve};o.push(Q)});let ze=this.droppedSubGraphMembers.length>0?{droppedSubGraphMembers:[...this.droppedSubGraphMembers]}:{};return{nodes:r,edges:o,other:ze,config:t}}validate(){if(u().layout!=="grid")return;let r=[...this.vertices.values(),...this.subGraphs];Lr(void 0,r);for(let o of r){let a=this.subGraphLookup.has(o.id);for(let l of Object.keys(o.metadata??{})){if(F1.has(l)||a&&l==="algorithm")continue;n.warn(`Unknown metadata key "${l}" on ${a?"subgraph":"node"} "${o.id}" with grid layout.`)}}}defaultConfig(){return Wr.flowchart}},B1=e(function(t,r){return r.db.getClasses()},"getClasses"),L1=e(async function(t,r,o,a){n.info("REF0:"),n.info("Drawing state diagram (v2)",r);let{securityLevel:l,flowchart:k,layout:d}=u();a.db.setDiagramId(r),n.debug("Before getData: ");let D=a.db.getData();n.debug("Data: ",D);let f=Ce(r,l),j=a.db.getDirection();D.type=a.type,D.layoutAlgorithm=Ee(d),D.direction=j,D.nodeSpacing=k?.nodeSpacing||50,D.rankSpacing=k?.rankSpacing||50,D.markers=["point","circle","cross"],D.diagramId=r,n.debug("REF1:",D),await Se(D,f);let E=D.config.flowchart?.diagramPadding??8;F.insertTitle(f,"flowchartTitleText",k?.titleTopMargin||0,a.db.getDiagramTitle()),pe(f,E,"flowchart",k?.useMaxWidth||!1)},"draw"),w1={getClasses:B1,draw:L1},Lt=function(){var t=e(function(Ne,g,m,S){for(m=m||{},S=Ne.length;S--;m[Ne[S]]=g);return m},"o"),r=[1,4],o=[1,3],a=[1,5],l=[1,8,9,10,11,27,34,36,38,45,61,85,86,87,88,89,90,103,106,107,110,112,115,116,117,122,123,124,125,126],k=[2,2],d=[1,13],D=[1,14],f=[1,15],j=[1,16],E=[1,23],K=[1,25],T=[1,26],C=[1,27],w=[1,51],Y=[1,50],ce=[1,30],Ge=[1,31],se=[1,32],he=[1,33],ze=[1,34],h=[1,46],b=[1,48],V=[1,44],N=[1,49],H=[1,45],q=[1,52],X=[1,47],Q=[1,53],Z=[1,54],lt=[1,35],ht=[1,36],dt=[1,37],pt=[1,38],ft=[1,39],Me=[1,59],G=[1,8,9,10,11,27,32,34,36,38,45,61,85,86,87,88,89,90,103,106,107,110,112,115,116,117,122,123,124,125,126],ke=[1,63],Ae=[1,62],De=[1,64],Ie=[8,9,11,76,78,79],wt=[1,80],St=[1,81],Ke=[1,95],He=[1,100],qe=[1,99],Xe=[1,96],Qe=[1,92],Ze=[1,98],$e=[1,94],et=[1,101],tt=[1,97],st=[1,102],it=[1,93],Pe=[8,9,10,11,40,76,78,79],te=[8,9,10,11,40,47,76,78,79],ne=[8,9,10,11,29,40,45,47,49,51,53,55,57,59,61,64,66,68,69,71,76,78,79,90,103,106,107,110,112,115,116,117],Vt=[8,9,11,45,61,76,78,79,90,103,106,107,110,112,115,116,117],It=[2,26],rt=[45,61,90,103,106,107,110,112,115,116,117],Rt=[1,126],Nt=[1,127],bt=[1,129],kt=[1,128],Gt=[45,61,63,75,90,103,106,107,110,112,115,116,117],Mt=[1,138],Pt=[1,152],Ot=[1,153],Ut=[1,154],Wt=[1,155],jt=[1,140],zt=[1,142],Yt=[1,146],Ht=[1,147],qt=[1,148],Xt=[1,149],Qt=[1,150],Jt=[1,151],Zt=[1,156],$t=[1,157],e1=[1,136],t1=[1,137],s1=[1,144],i1=[1,139],r1=[1,143],a1=[1,141],Tt=[8,9,10,11,27,32,34,36,38,45,61,85,86,87,88,89,90,103,106,107,110,112,115,116,117,122,123,124,125,126],n1=[1,159],o1=[8,9,10,11,76,78,79],u1=[1,160],l1=[1,162],z=[8,9,11],oe=[8,9,10,11,14,45,61,90,106,107,110,112,115,116,117],x=[1,182],ie=[1,178],re=[1,179],v=[1,183],_=[1,180],B=[1,181],at=[78,117,120],U=[8,9,10,11,12,14,27,29,32,45,61,76,85,86,87,88,89,90,91,106,110,112,115,116,117],c1=[10,107],Re=[31,50,52,54,56,58,63,65,67,68,70,72,117,118,119],Te=[1,253],ye=[1,251],xe=[1,255],Fe=[1,249],ve=[1,250],_e=[1,252],Be=[1,254],Le=[1,256],nt=[1,273],h1=[8,9,11,107],be=[8,9,10,11,61,85,106,107,110,111,112,113],Et={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,withShape:41,node:42,link:43,styledVertex:44,AMP:45,vertex:46,STYLE_SEPARATOR:47,idString:48,DOUBLECIRCLESTART:49,DOUBLECIRCLEEND:50,PS:51,PE:52,"(-":53,"-)":54,STADIUMSTART:55,STADIUMEND:56,SUBROUTINESTART:57,SUBROUTINEEND:58,VERTEX_WITH_PROPS_START:59,"NODE_STRING[field]":60,COLON:61,"NODE_STRING[value]":62,PIPE:63,CYLINDERSTART:64,CYLINDEREND:65,DIAMOND_START:66,DIAMOND_STOP:67,TAGEND:68,TRAPSTART:69,TRAPEND:70,INVTRAPSTART:71,INVTRAPEND:72,linkStatement:73,arrowText:74,TESTSTR:75,START_LINK:76,edgeText:77,LINK:78,LINK_ID:79,edgeTextToken:80,STR:81,MD_STR:82,textToken:83,keywords:84,STYLE:85,LINKSTYLE:86,CLASSDEF:87,CLASS:88,CLICK:89,DOWN:90,UP:91,textNoTagsToken:92,stylesOpt:93,"idString[vertex]":94,"idString[class]":95,CALLBACKNAME:96,CALLBACKARGS:97,HREF:98,LINK_TARGET:99,"STR[link]":100,"STR[tooltip]":101,alphaNum:102,DEFAULT:103,numList:104,INTERPOLATE:105,NUM:106,COMMA:107,style:108,styleComponent:109,NODE_STRING:110,UNIT:111,BRKT:112,PCT:113,idStringToken:114,MINUS:115,MULT:116,UNICODE_TEXT:117,TEXT:118,TAGSTART:119,EDGE_TEXT:120,alphaNumToken:121,direction_tb:122,direction_bt:123,direction_rl:124,direction_lr:125,direction_td:126,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",45:"AMP",47:"STYLE_SEPARATOR",49:"DOUBLECIRCLESTART",50:"DOUBLECIRCLEEND",51:"PS",52:"PE",53:"(-",54:"-)",55:"STADIUMSTART",56:"STADIUMEND",57:"SUBROUTINESTART",58:"SUBROUTINEEND",59:"VERTEX_WITH_PROPS_START",60:"NODE_STRING[field]",61:"COLON",62:"NODE_STRING[value]",63:"PIPE",64:"CYLINDERSTART",65:"CYLINDEREND",66:"DIAMOND_START",67:"DIAMOND_STOP",68:"TAGEND",69:"TRAPSTART",70:"TRAPEND",71:"INVTRAPSTART",72:"INVTRAPEND",75:"TESTSTR",76:"START_LINK",78:"LINK",79:"LINK_ID",81:"STR",82:"MD_STR",85:"STYLE",86:"LINKSTYLE",87:"CLASSDEF",88:"CLASS",89:"CLICK",90:"DOWN",91:"UP",94:"idString[vertex]",95:"idString[class]",96:"CALLBACKNAME",97:"CALLBACKARGS",98:"HREF",99:"LINK_TARGET",100:"STR[link]",101:"STR[tooltip]",103:"DEFAULT",105:"INTERPOLATE",106:"NUM",107:"COMMA",110:"NODE_STRING",111:"UNIT",112:"BRKT",113:"PCT",115:"MINUS",116:"MULT",117:"UNICODE_TEXT",118:"TEXT",119:"TAGSTART",120:"EDGE_TEXT",122:"direction_tb",123:"direction_bt",124:"direction_rl",125:"direction_lr",126:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[41,2],[41,3],[20,3],[20,4],[20,3],[20,4],[20,2],[20,1],[20,2],[20,1],[42,1],[42,5],[42,5],[44,1],[44,3],[46,4],[46,4],[46,6],[46,4],[46,4],[46,4],[46,8],[46,4],[46,4],[46,4],[46,6],[46,4],[46,4],[46,4],[46,4],[46,4],[46,1],[43,2],[43,3],[43,3],[43,1],[43,3],[43,4],[77,1],[77,2],[77,1],[77,1],[73,1],[73,2],[74,3],[30,1],[30,2],[30,1],[30,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[104,1],[104,3],[93,1],[93,3],[108,1],[108,2],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[83,1],[83,1],[83,1],[83,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[80,1],[80,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[48,1],[48,2],[102,1],[102,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:e(function(g,m,S,c,W,s,Ue){var i=s.length-1;switch(W){case 2:this.$=[];break;case 3:if(!Array.isArray(s[i])||s[i].length>0)s[i-1].push(s[i]);this.$=s[i-1];break;case 4:case 187:this.$=s[i];break;case 11:c.setDirection("TB"),this.$="TB";break;case 12:c.setDirection(s[i-1]),this.$=s[i-1];break;case 27:this.$=s[i-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=c.addSubGraph(s[i-6],s[i-1],s[i-4]);break;case 34:this.$=c.addSubGraph(s[i-3],s[i-1],s[i-3]);break;case 35:this.$=c.addSubGraph(void 0,s[i-1],void 0);break;case 37:this.$=s[i].trim(),c.setAccTitle(this.$);break;case 38:case 39:this.$=s[i].trim(),c.setAccDescription(this.$);break;case 43:this.$=s[i-1]+s[i];break;case 44:this.$=s[i];break;case 45:this.$={nodes:s[i-1],shapeData:s[i]};break;case 46:this.$={nodes:s[i-2],shapeData:s[i]};break;case 47:c.addVertex(s[i].nodes[s[i].nodes.length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i].shapeData),c.addLink(s[i-2].stmt,s[i].nodes,s[i-1]),this.$={stmt:s[i].nodes,nodes:s[i].nodes.concat(s[i-2].nodes)};break;case 48:c.addVertex(s[i-1].nodes[s[i-1].nodes.length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i-1].shapeData),c.addLink(s[i-3].stmt,s[i-1].nodes,s[i-2]),this.$={stmt:s[i-1].nodes,nodes:s[i-1].nodes.concat(s[i-3].nodes)};break;case 49:c.addLink(s[i-2].stmt,s[i],s[i-1]),this.$={stmt:s[i],nodes:s[i].concat(s[i-2].nodes)};break;case 50:c.addLink(s[i-3].stmt,s[i-1],s[i-2]),this.$={stmt:s[i-1],nodes:s[i-1].concat(s[i-3].nodes)};break;case 51:this.$={stmt:s[i-1],nodes:s[i-1]};break;case 52:c.addVertex(s[i].nodes[s[i].nodes.length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i].shapeData),this.$={stmt:s[i].nodes,nodes:s[i].nodes,shapeData:s[i].shapeData};break;case 53:c.addVertex(s[i-1].nodes[s[i-1].nodes.length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i-1].shapeData),this.$={stmt:s[i-1].nodes,nodes:s[i-1].nodes,shapeData:s[i-1].shapeData};break;case 54:this.$={stmt:s[i],nodes:s[i]};break;case 55:this.$=[s[i]];break;case 56:c.addVertex(s[i-4].nodes[s[i-4].nodes.length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i-4].shapeData),this.$=s[i-4].nodes.concat(s[i]);break;case 57:this.$=s[i-4].concat(s[i]);break;case 58:this.$=s[i];break;case 59:this.$=s[i-2],c.setClass(s[i-2],s[i]);break;case 60:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"square");break;case 61:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"doublecircle");break;case 62:this.$=s[i-5],c.addVertex(s[i-5],s[i-2],"circle");break;case 63:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"ellipse");break;case 64:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"stadium");break;case 65:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"subroutine");break;case 66:this.$=s[i-7],c.addVertex(s[i-7],s[i-1],"rect",void 0,void 0,void 0,Object.fromEntries([[s[i-5],s[i-3]]]));break;case 67:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"cylinder");break;case 68:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"round");break;case 69:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"diamond");break;case 70:this.$=s[i-5],c.addVertex(s[i-5],s[i-2],"hexagon");break;case 71:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"odd");break;case 72:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"trapezoid");break;case 73:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"inv_trapezoid");break;case 74:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"lean_right");break;case 75:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"lean_left");break;case 76:this.$=s[i],c.addVertex(s[i]);break;case 77:s[i-1].text=s[i],this.$=s[i-1];break;case 78:case 79:s[i-2].text=s[i-1],this.$=s[i-2];break;case 80:this.$=s[i];break;case 81:var J=c.destructLink(s[i],s[i-2]);this.$={type:J.type,stroke:J.stroke,length:J.length,text:s[i-1]};break;case 82:var J=c.destructLink(s[i],s[i-2]);this.$={type:J.type,stroke:J.stroke,length:J.length,text:s[i-1],id:s[i-3]};break;case 83:this.$={text:s[i],type:"text"};break;case 84:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 85:this.$={text:s[i],type:"string"};break;case 86:this.$={text:s[i],type:"markdown"};break;case 87:var J=c.destructLink(s[i]);this.$={type:J.type,stroke:J.stroke,length:J.length};break;case 88:var J=c.destructLink(s[i]);this.$={type:J.type,stroke:J.stroke,length:J.length,id:s[i-1]};break;case 89:this.$=s[i-1];break;case 90:this.$={text:s[i],type:"text"};break;case 91:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 92:this.$={text:s[i],type:"string"};break;case 93:case 108:this.$={text:s[i],type:"markdown"};break;case 105:this.$={text:s[i],type:"text"};break;case 106:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 107:this.$={text:s[i],type:"text"};break;case 109:this.$=s[i-4],c.addClass(s[i-2],s[i]);break;case 110:this.$=s[i-4],c.setClass(s[i-2],s[i]);break;case 111:case 119:this.$=s[i-1],c.setClickEvent(s[i-1],s[i]);break;case 112:case 120:this.$=s[i-3],c.setClickEvent(s[i-3],s[i-2]),c.setTooltip(s[i-3],s[i]);break;case 113:this.$=s[i-2],c.setClickEvent(s[i-2],s[i-1],s[i]);break;case 114:this.$=s[i-4],c.setClickEvent(s[i-4],s[i-3],s[i-2]),c.setTooltip(s[i-4],s[i]);break;case 115:this.$=s[i-2],c.setLink(s[i-2],s[i]);break;case 116:this.$=s[i-4],c.setLink(s[i-4],s[i-2]),c.setTooltip(s[i-4],s[i]);break;case 117:this.$=s[i-4],c.setLink(s[i-4],s[i-2],s[i]);break;case 118:this.$=s[i-6],c.setLink(s[i-6],s[i-4],s[i]),c.setTooltip(s[i-6],s[i-2]);break;case 121:this.$=s[i-1],c.setLink(s[i-1],s[i]);break;case 122:this.$=s[i-3],c.setLink(s[i-3],s[i-2]),c.setTooltip(s[i-3],s[i]);break;case 123:this.$=s[i-3],c.setLink(s[i-3],s[i-2],s[i]);break;case 124:this.$=s[i-5],c.setLink(s[i-5],s[i-4],s[i]),c.setTooltip(s[i-5],s[i-2]);break;case 125:this.$=s[i-4],c.addVertex(s[i-2],void 0,void 0,s[i]);break;case 126:this.$=s[i-4],c.updateLink([s[i-2]],s[i]);break;case 127:this.$=s[i-4],c.updateLink(s[i-2],s[i]);break;case 128:this.$=s[i-8],c.updateLinkInterpolate([s[i-6]],s[i-2]),c.updateLink([s[i-6]],s[i]);break;case 129:this.$=s[i-8],c.updateLinkInterpolate(s[i-6],s[i-2]),c.updateLink(s[i-6],s[i]);break;case 130:this.$=s[i-6],c.updateLinkInterpolate([s[i-4]],s[i]);break;case 131:this.$=s[i-6],c.updateLinkInterpolate(s[i-4],s[i]);break;case 132:case 134:this.$=[s[i]];break;case 133:case 135:s[i-2].push(s[i]),this.$=s[i-2];break;case 137:this.$=s[i-1]+s[i];break;case 185:this.$=s[i];break;case 186:this.$=s[i-1]+""+s[i];break;case 188:this.$=s[i-1]+""+s[i];break;case 189:this.$={stmt:"dir",value:"TB"};break;case 190:this.$={stmt:"dir",value:"BT"};break;case 191:this.$={stmt:"dir",value:"RL"};break;case 192:this.$={stmt:"dir",value:"LR"};break;case 193:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:r,10:o,12:a},{1:[3]},t(l,k,{5:6}),{4:7,9:r,10:o,12:a},{4:8,9:r,10:o,12:a},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:d,9:D,10:f,11:j,20:17,22:18,23:19,24:20,25:21,26:22,27:E,33:24,34:K,36:T,38:C,41:29,42:28,44:40,45:w,46:41,48:42,61:Y,85:ce,86:Ge,87:se,88:he,89:ze,90:h,103:b,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z,122:lt,123:ht,124:dt,125:pt,126:ft},t(l,[2,9]),t(l,[2,10]),t(l,[2,11]),{8:[1,56],9:[1,57],10:Me,15:55,18:58},t(G,[2,3]),t(G,[2,4]),t(G,[2,5]),t(G,[2,6]),t(G,[2,7]),t(G,[2,8]),{8:ke,9:Ae,11:De,21:60,43:61,73:65,76:[1,66],78:[1,68],79:[1,67]},{8:ke,9:Ae,11:De,21:69},{8:ke,9:Ae,11:De,21:70},{8:ke,9:Ae,11:De,21:71},{8:ke,9:Ae,11:De,21:72},{8:ke,9:Ae,11:De,21:73},{8:ke,9:Ae,10:[1,74],11:De,21:75},t(G,[2,36]),{35:[1,76]},{37:[1,77]},t(G,[2,39]),t(Ie,[2,54],{18:78,39:79,10:wt,40:St}),t(Ie,[2,52],{18:82,10:Me}),{10:[1,83]},{10:[1,84]},{10:[1,85]},{10:[1,86]},{14:Ke,45:He,61:qe,81:[1,90],90:Xe,96:[1,87],98:[1,88],102:89,106:Qe,107:Ze,110:$e,112:et,115:tt,116:st,117:it,121:91},t(G,[2,189]),t(G,[2,190]),t(G,[2,191]),t(G,[2,192]),t(G,[2,193]),t(Pe,[2,55]),t(Pe,[2,58],{47:[1,103]}),t(te,[2,76],{114:116,29:[1,104],45:w,49:[1,105],51:[1,106],53:[1,107],55:[1,108],57:[1,109],59:[1,110],61:Y,64:[1,111],66:[1,112],68:[1,113],69:[1,114],71:[1,115],90:h,103:b,106:V,107:N,110:H,112:q,115:X,116:Q,117:Z}),t(ne,[2,185]),t(ne,[2,146]),t(ne,[2,147]),t(ne,[2,148]),t(ne,[2,149]),t(ne,[2,150]),t(ne,[2,151]),t(ne,[2,152]),t(ne,[2,153]),t(ne,[2,154]),t(ne,[2,155]),t(ne,[2,156]),t(l,[2,12]),t(l,[2,18]),t(l,[2,19]),{9:[1,117]},t(Vt,It,{18:118,10:Me}),t(G,[2,27]),{41:119,42:120,44:40,45:w,46:41,48:42,61:Y,90:h,103:b,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},t(G,[2,40]),t(G,[2,41]),t(G,[2,42]),t(rt,[2,80],{74:121,63:[1,123],75:[1,122]}),{77:124,80:125,81:Rt,82:Nt,117:bt,120:kt},{76:[1,130],78:[1,131]},t(Gt,[2,87]),t(G,[2,28]),t(G,[2,29]),t(G,[2,30]),t(G,[2,31]),t(G,[2,32]),{10:Mt,12:Pt,14:Ot,27:Ut,28:132,32:Wt,45:jt,61:zt,76:Yt,81:[1,134],82:[1,135],84:145,85:Ht,86:qt,87:Xt,88:Qt,89:Jt,90:Zt,91:$t,92:133,106:e1,110:t1,112:s1,115:i1,116:r1,117:a1},t(Tt,k,{5:158}),t(G,[2,37]),t(G,[2,38]),t(Ie,[2,51],{45:n1}),t(o1,[2,45],{40:u1}),t([8,9,11,45,76,78,79],It,{18:118,39:161,10:Me,40:St}),t(Pe,[2,44]),t(Ie,[2,53],{45:l1}),{45:w,48:163,61:Y,90:h,103:b,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},{103:[1,164],104:165,106:[1,166]},{45:w,48:167,61:Y,90:h,103:b,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},{45:w,48:168,61:Y,90:h,103:b,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},t(z,[2,111],{10:[1,169],97:[1,170]}),{81:[1,171]},t(z,[2,119],{121:173,10:[1,172],14:Ke,45:He,61:qe,90:Xe,106:Qe,107:Ze,110:$e,112:et,115:tt,116:st,117:it}),t(z,[2,121],{10:[1,174]}),t(oe,[2,187]),t(oe,[2,174]),t(oe,[2,175]),t(oe,[2,176]),t(oe,[2,177]),t(oe,[2,178]),t(oe,[2,179]),t(oe,[2,180]),t(oe,[2,181]),t(oe,[2,182]),t(oe,[2,183]),t(oe,[2,184]),{45:w,48:175,61:Y,90:h,103:b,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},{30:176,68:x,81:ie,82:re,83:177,117:v,118:_,119:B},{30:184,68:x,81:ie,82:re,83:177,117:v,118:_,119:B},{30:186,51:[1,185],68:x,81:ie,82:re,83:177,117:v,118:_,119:B},{30:187,68:x,81:ie,82:re,83:177,117:v,118:_,119:B},{30:188,68:x,81:ie,82:re,83:177,117:v,118:_,119:B},{30:189,68:x,81:ie,82:re,83:177,117:v,118:_,119:B},{110:[1,190]},{30:191,68:x,81:ie,82:re,83:177,117:v,118:_,119:B},{30:192,66:[1,193],68:x,81:ie,82:re,83:177,117:v,118:_,119:B},{30:194,68:x,81:ie,82:re,83:177,117:v,118:_,119:B},{30:195,68:x,81:ie,82:re,83:177,117:v,118:_,119:B},{30:196,68:x,81:ie,82:re,83:177,117:v,118:_,119:B},t(ne,[2,186]),t(l,[2,20]),t(Vt,[2,25]),t(Ie,[2,47],{18:197,10:Me}),t(Ie,[2,49],{39:79,18:198,10:wt,40:St}),t(rt,[2,77],{10:[1,199]}),{10:[1,200]},{30:201,68:x,81:ie,82:re,83:177,117:v,118:_,119:B},{78:[1,202],80:203,117:bt,120:kt},t(at,[2,83]),t(at,[2,85]),t(at,[2,86]),t(at,[2,172]),t(at,[2,173]),{77:204,80:125,81:Rt,82:Nt,117:bt,120:kt},t(Gt,[2,88]),{8:ke,9:Ae,10:Mt,11:De,12:Pt,14:Ot,21:206,27:Ut,29:[1,205],32:Wt,45:jt,61:zt,76:Yt,84:145,85:Ht,86:qt,87:Xt,88:Qt,89:Jt,90:Zt,91:$t,92:207,106:e1,110:t1,112:s1,115:i1,116:r1,117:a1},t(U,[2,105]),t(U,[2,107]),t(U,[2,108]),t(U,[2,161]),t(U,[2,162]),t(U,[2,163]),t(U,[2,164]),t(U,[2,165]),t(U,[2,166]),t(U,[2,167]),t(U,[2,168]),t(U,[2,169]),t(U,[2,170]),t(U,[2,171]),t(U,[2,94]),t(U,[2,95]),t(U,[2,96]),t(U,[2,97]),t(U,[2,98]),t(U,[2,99]),t(U,[2,100]),t(U,[2,101]),t(U,[2,102]),t(U,[2,103]),t(U,[2,104]),{6:11,7:12,8:d,9:D,10:f,11:j,20:17,22:18,23:19,24:20,25:21,26:22,27:E,32:[1,208],33:24,34:K,36:T,38:C,41:29,42:28,44:40,45:w,46:41,48:42,61:Y,85:ce,86:Ge,87:se,88:he,89:ze,90:h,103:b,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z,122:lt,123:ht,124:dt,125:pt,126:ft},{10:Me,18:209},t(Pe,[2,43]),t(o1,[2,46],{40:u1}),{10:Me,18:210},{10:[1,211],45:w,61:Y,90:h,103:b,106:V,107:N,110:H,112:q,114:116,115:X,116:Q,117:Z},{10:[1,212]},{10:[1,213],107:[1,214]},t(c1,[2,132]),{10:[1,215],45:w,61:Y,90:h,103:b,106:V,107:N,110:H,112:q,114:116,115:X,116:Q,117:Z},{10:[1,216],45:w,61:Y,90:h,103:b,106:V,107:N,110:H,112:q,114:116,115:X,116:Q,117:Z},{81:[1,217]},t(z,[2,113],{10:[1,218]}),t(z,[2,115],{10:[1,219]}),{81:[1,220]},t(oe,[2,188]),{81:[1,221],99:[1,222]},t(Pe,[2,59],{114:116,45:w,61:Y,90:h,103:b,106:V,107:N,110:H,112:q,115:X,116:Q,117:Z}),{31:[1,223],68:x,83:224,117:v,118:_,119:B},t(Re,[2,90]),t(Re,[2,92]),t(Re,[2,93]),t(Re,[2,157]),t(Re,[2,158]),t(Re,[2,159]),t(Re,[2,160]),{50:[1,225],68:x,83:224,117:v,118:_,119:B},{30:226,68:x,81:ie,82:re,83:177,117:v,118:_,119:B},{52:[1,227],68:x,83:224,117:v,118:_,119:B},{54:[1,228],68:x,83:224,117:v,118:_,119:B},{56:[1,229],68:x,83:224,117:v,118:_,119:B},{58:[1,230],68:x,83:224,117:v,118:_,119:B},{61:[1,231]},{65:[1,232],68:x,83:224,117:v,118:_,119:B},{67:[1,233],68:x,83:224,117:v,118:_,119:B},{30:234,68:x,81:ie,82:re,83:177,117:v,118:_,119:B},{31:[1,235],68:x,83:224,117:v,118:_,119:B},{68:x,70:[1,236],72:[1,237],83:224,117:v,118:_,119:B},{68:x,70:[1,239],72:[1,238],83:224,117:v,118:_,119:B},t(Ie,[2,48],{45:l1}),t(Ie,[2,50],{45:n1}),t(rt,[2,79]),t(rt,[2,78]),{63:[1,240],68:x,83:224,117:v,118:_,119:B},t(rt,[2,81]),t(at,[2,84]),{78:[1,241],80:203,117:bt,120:kt},{30:242,68:x,81:ie,82:re,83:177,117:v,118:_,119:B},t(Tt,k,{5:243}),t(U,[2,106]),t(G,[2,35]),{44:244,45:w,46:41,48:42,61:Y,90:h,103:b,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},{44:245,45:w,46:41,48:42,61:Y,90:h,103:b,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},{10:Te,61:ye,85:xe,93:246,106:Fe,108:247,109:248,110:ve,111:_e,112:Be,113:Le},{10:Te,61:ye,85:xe,93:257,105:[1,258],106:Fe,108:247,109:248,110:ve,111:_e,112:Be,113:Le},{10:Te,61:ye,85:xe,93:259,105:[1,260],106:Fe,108:247,109:248,110:ve,111:_e,112:Be,113:Le},{106:[1,261]},{10:Te,61:ye,85:xe,93:262,106:Fe,108:247,109:248,110:ve,111:_e,112:Be,113:Le},{45:w,48:263,61:Y,90:h,103:b,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},t(z,[2,112]),{81:[1,264]},{81:[1,265],99:[1,266]},t(z,[2,120]),t(z,[2,122],{10:[1,267]}),t(z,[2,123]),t(te,[2,60]),t(Re,[2,91]),t(te,[2,61]),{52:[1,268],68:x,83:224,117:v,118:_,119:B},t(te,[2,68]),t(te,[2,63]),t(te,[2,64]),t(te,[2,65]),{110:[1,269]},t(te,[2,67]),t(te,[2,69]),{67:[1,270],68:x,83:224,117:v,118:_,119:B},t(te,[2,71]),t(te,[2,72]),t(te,[2,74]),t(te,[2,73]),t(te,[2,75]),t([10,45,61,90,103,106,107,110,112,115,116,117],[2,89]),t(rt,[2,82]),{31:[1,271],68:x,83:224,117:v,118:_,119:B},{6:11,7:12,8:d,9:D,10:f,11:j,20:17,22:18,23:19,24:20,25:21,26:22,27:E,32:[1,272],33:24,34:K,36:T,38:C,41:29,42:28,44:40,45:w,46:41,48:42,61:Y,85:ce,86:Ge,87:se,88:he,89:ze,90:h,103:b,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z,122:lt,123:ht,124:dt,125:pt,126:ft},t(Pe,[2,57]),t(Pe,[2,56]),t(z,[2,125],{107:nt}),t(h1,[2,134],{109:274,10:Te,61:ye,85:xe,106:Fe,110:ve,111:_e,112:Be,113:Le}),t(be,[2,136]),t(be,[2,138]),t(be,[2,139]),t(be,[2,140]),t(be,[2,141]),t(be,[2,142]),t(be,[2,143]),t(be,[2,144]),t(be,[2,145]),t(z,[2,126],{107:nt}),{10:[1,275]},t(z,[2,127],{107:nt}),{10:[1,276]},t(c1,[2,133]),t(z,[2,109],{107:nt}),t(z,[2,110],{114:116,45:w,61:Y,90:h,103:b,106:V,107:N,110:H,112:q,115:X,116:Q,117:Z}),t(z,[2,114]),t(z,[2,116],{10:[1,277]}),t(z,[2,117]),{99:[1,278]},{52:[1,279]},{63:[1,280]},{67:[1,281]},{8:ke,9:Ae,11:De,21:282},t(G,[2,34]),{10:Te,61:ye,85:xe,106:Fe,108:283,109:248,110:ve,111:_e,112:Be,113:Le},t(be,[2,137]),{14:Ke,45:He,61:qe,90:Xe,102:284,106:Qe,107:Ze,110:$e,112:et,115:tt,116:st,117:it,121:91},{14:Ke,45:He,61:qe,90:Xe,102:285,106:Qe,107:Ze,110:$e,112:et,115:tt,116:st,117:it,121:91},{99:[1,286]},t(z,[2,124]),t(te,[2,62]),{30:287,68:x,81:ie,82:re,83:177,117:v,118:_,119:B},t(te,[2,70]),t(Tt,k,{5:288}),t(h1,[2,135],{109:274,10:Te,61:ye,85:xe,106:Fe,110:ve,111:_e,112:Be,113:Le}),t(z,[2,130],{121:173,10:[1,289],14:Ke,45:He,61:qe,90:Xe,106:Qe,107:Ze,110:$e,112:et,115:tt,116:st,117:it}),t(z,[2,131],{121:173,10:[1,290],14:Ke,45:He,61:qe,90:Xe,106:Qe,107:Ze,110:$e,112:et,115:tt,116:st,117:it}),t(z,[2,118]),{31:[1,291],68:x,83:224,117:v,118:_,119:B},{6:11,7:12,8:d,9:D,10:f,11:j,20:17,22:18,23:19,24:20,25:21,26:22,27:E,32:[1,292],33:24,34:K,36:T,38:C,41:29,42:28,44:40,45:w,46:41,48:42,61:Y,85:ce,86:Ge,87:se,88:he,89:ze,90:h,103:b,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z,122:lt,123:ht,124:dt,125:pt,126:ft},{10:Te,61:ye,85:xe,93:293,106:Fe,108:247,109:248,110:ve,111:_e,112:Be,113:Le},{10:Te,61:ye,85:xe,93:294,106:Fe,108:247,109:248,110:ve,111:_e,112:Be,113:Le},t(te,[2,66]),t(G,[2,33]),t(z,[2,128],{107:nt}),t(z,[2,129],{107:nt})],defaultActions:{},parseError:e(function(g,m){if(m.recoverable)this.trace(g);else{var S=Error(g);throw S.hash=m,S}},"parseError"),parse:e(function(g){var m=this,S=[0],c=[],W=[null],s=[],Ue=this.table,i="",J=0,d1=0,p1=0,S1=2,f1=1,T1=s.slice.call(arguments,1),ee=Object.create(this.lexer),We={yy:{}};for(var yt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,yt))We.yy[yt]=this.yy[yt];if(ee.setInput(g,We.yy),We.yy.lexer=ee,We.yy.parser=this,typeof ee.yylloc>"u")ee.yylloc={};var xt=ee.yylloc;s.push(xt);var E1=ee.options&&ee.options.ranges;if(typeof We.yy.parseError==="function")this.parseError=We.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function y1(le){S.length=S.length-2*le,W.length=W.length-le,s.length=s.length-le}e(y1,"popStack");function b1(){var le=c.pop()||ee.lex()||f1;if(typeof le!=="number"){if(le instanceof Array)c=le,le=c.pop();le=m.symbols_[le]||le}return le}e(b1,"lex");var ae,Ft,je,ue,G1,vt,ot={},At,we,k1,Ct;while(!0){if(je=S[S.length-1],this.defaultActions[je])ue=this.defaultActions[je];else{if(ae===null||typeof ae>"u")ae=b1();ue=Ue[je]&&Ue[je][ae]}if(typeof ue>"u"||!ue.length||!ue[0]){var _t="";Ct=[];for(At in Ue[je])if(this.terminals_[At]&&At>S1)Ct.push("'"+this.terminals_[At]+"'");if(ee.showPosition)_t="Parse error on line "+(J+1)+`:
10
10
  `+ee.showPosition()+`
11
- Expecting `+Dt.join(", ")+", got '"+(this.terminals_[ae]||ae)+"'";else vt="Parse error on line "+(J+1)+": Unexpected "+(ae==f1?"end of input":"'"+(this.terminals_[ae]||ae)+"'");this.parseError(vt,{text:ee.match,token:this.terminals_[ae]||ae,line:ee.yylineno,loc:yt,expected:Dt})}if(ue[0]instanceof Array&&ue.length>1)throw Error("Parse Error: multiple actions possible at state: "+je+", token: "+ae);switch(ue[0]){case 1:if(T.push(ae),U.push(ee.yytext),s.push(ee.yylloc),T.push(ue[1]),ae=null,!xt){if(d1=ee.yyleng,i=ee.yytext,J=ee.yylineno,yt=ee.yylloc,p1>0)p1--}else ae=xt,xt=null;break;case 2:if(we=this.productions_[ue[1]][1],ot.$=U[U.length-we],ot._$={first_line:s[s.length-(we||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(we||1)].first_column,last_column:s[s.length-1].last_column},E1)ot._$.range=[s[s.length-(we||1)].range[0],s[s.length-1].range[1]];if(Ft=this.performAction.apply(ot,[i,d1,J,Ue.yy,ue[1],U,s].concat(T1)),typeof Ft<"u")return Ft;if(we)T=T.slice(0,-1*we*2),U=U.slice(0,-1*we),s=s.slice(0,-1*we);T.push(this.productions_[ue[1]][0]),U.push(ot.$),s.push(ot._$),k1=Oe[T[T.length-2]][T[T.length-1]],T.push(k1);break;case 3:return!0}}return!0},"parse")},C1=function(){var Re={EOF:1,parseError:e(function(g,T){if(this.yy.parser)this.yy.parser.parseError(g,T);else throw Error(g)},"parseError"),setInput:e(function(k,g){if(this.yy=g||this.yy||{},this._input=k,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];return this.offset=0,this},"setInput"),input:e(function(){var k=this._input[0];this.yytext+=k,this.yyleng++,this.offset++,this.match+=k,this.matched+=k;var g=k.match(/(?:\r\n?|\n).*/g);if(g)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),k},"input"),unput:e(function(k){var g=k.length,T=k.split(/(?:\r\n?|\n)/g);this._input=k+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var c=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),T.length-1)this.yylineno-=T.length-1;var U=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:T?(T.length===c.length?this.yylloc.first_column:0)+c[c.length-T.length].length-T[0].length:this.yylloc.first_column-g},this.options.ranges)this.yylloc.range=[U[0],U[0]+this.yyleng-g];return this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
12
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(k){this.unput(this.match.slice(k))},"less"),pastInput:e(function(){var k=this.matched.substr(0,this.matched.length-this.match.length);return(k.length>20?"...":"")+k.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var k=this.match;if(k.length<20)k+=this._input.substr(0,20-k.length);return(k.substr(0,20)+(k.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var k=this.pastInput(),g=Array(k.length+1).join("-");return k+this.upcomingInput()+`
13
- `+g+"^"},"showPosition"),test_match:e(function(k,g){var T,c,U;if(this.options.backtrack_lexer){if(U={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)U.yylloc.range=this.yylloc.range.slice(0)}if(c=k[0].match(/(?:\r\n?|\n).*/g),c)this.yylineno+=c.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+k[0].length},this.yytext+=k[0],this.match+=k[0],this.matches=k,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(k[0].length),this.matched+=k[0],T=this.performAction.call(this,this.yy,this,g,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(T)return T;else if(this._backtrack){for(var s in U)this[s]=U[s];return!1}return!1},"test_match"),next:e(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var k,g,T,c;if(!this._more)this.yytext="",this.match="";var U=this._currentRules();for(var s=0;s<U.length;s++)if(T=this._input.match(this.rules[U[s]]),T&&(!g||T[0].length>g[0].length)){if(g=T,c=s,this.options.backtrack_lexer)if(k=this.test_match(T,U[s]),k!==!1)return k;else if(this._backtrack){g=!1;continue}else return!1;else if(!this.options.flex)break}if(g){if(k=this.test_match(g,U[c]),k!==!1)return k;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
14
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){var g=this.next();if(g)return g;else return this.lex()},"lex"),begin:e(function(g){this.conditionStack.push(g)},"begin"),popState:e(function(){var g=this.conditionStack.length-1;if(g>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:e(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:e(function(g){if(g=this.conditionStack.length-1-Math.abs(g||0),g>=0)return this.conditionStack[g];else return"INITIAL"},"topState"),pushState:e(function(g){this.begin(g)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:e(function(g,T,c,U){var s=U;switch(c){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),T.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let Oe=/\n\s*/g;return T.yytext=T.yytext.replace(Oe,"<br/>"),40;break;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 96;case 17:this.popState();break;case 18:return 97;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 85;case 26:return 103;case 27:return 86;case 28:return 105;case 29:return 87;case 30:return 88;case 31:return 98;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 89;case 35:if(g.lex.firstGraph())this.begin("dir");return 12;case 36:if(g.lex.firstGraph())this.begin("dir");return 12;case 37:if(g.lex.firstGraph())this.begin("dir");return 12;case 38:if(g.lex.firstGraph())this.begin("dir");return 12;case 39:return 27;case 40:return 32;case 41:return 99;case 42:return 99;case 43:return 99;case 44:return 99;case 45:return this.popState(),13;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return this.popState(),14;break;case 50:return this.popState(),14;break;case 51:return this.popState(),14;break;case 52:return this.popState(),14;break;case 53:return this.popState(),14;break;case 54:return this.popState(),14;break;case 55:return this.popState(),14;break;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 125;case 60:return 126;case 61:return 79;case 62:return 106;case 63:return 112;case 64:return 47;case 65:return 61;case 66:return 45;case 67:return 8;case 68:return 107;case 69:return 116;case 70:return this.popState(),78;break;case 71:return this.pushState("edgeText"),76;break;case 72:return 120;case 73:return this.popState(),78;break;case 74:return this.pushState("thickEdgeText"),76;break;case 75:return 120;case 76:return this.popState(),78;break;case 77:return this.pushState("dottedEdgeText"),76;break;case 78:return 120;case 79:return 78;case 80:return this.popState(),54;break;case 81:return"TEXT";case 82:return this.pushState("ellipseText"),53;break;case 83:return this.popState(),56;break;case 84:return this.pushState("text"),55;break;case 85:return this.popState(),58;break;case 86:return this.pushState("text"),57;break;case 87:return 59;case 88:return this.pushState("text"),68;break;case 89:return this.popState(),65;break;case 90:return this.pushState("text"),64;break;case 91:return this.popState(),50;break;case 92:return this.pushState("text"),49;break;case 93:return this.popState(),70;break;case 94:return this.popState(),72;break;case 95:return 118;case 96:return this.pushState("trapText"),69;break;case 97:return this.pushState("trapText"),71;break;case 98:return 119;case 99:return 68;case 100:return 91;case 101:return"SEP";case 102:return 90;case 103:return 116;case 104:return 112;case 105:return 45;case 106:return 110;case 107:return 115;case 108:return 117;case 109:return this.popState(),63;break;case 110:return this.pushState("text"),63;break;case 111:return this.popState(),52;break;case 112:return this.pushState("text"),51;break;case 113:return this.popState(),31;break;case 114:return this.pushState("text"),29;break;case 115:return this.popState(),67;break;case 116:return this.pushState("text"),66;break;case 117:return"TEXT";case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"\[\]\(\)\{\}\|]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:[^\S\n\r]+)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}};return Re}();Tt.lexer=C1;function At(){this.yy={}}return e(At,"Parser"),At.prototype=Tt,Tt.Parser=At,new At}();Bt.parser=Bt;var m1=Bt,D1=Object.assign({},m1);D1.parse=(t)=>{let r=t.replace(/}\s*\n/g,`}
15
- `);return m1.parse(r)};var V1=D1,I1=e((t)=>{let{theme:r,bkgColorArray:o,borderColorArray:a}=t;if(!he(r,a))return"";let l=pe(t.look),b=ve(o),d="";for(let C=0;C<tt(t.THEME_COLOR_LIMIT,a);C++){let p=a[C%a.length],W=b?`fill: ${o[C%o.length]};`:"",x=`[data-look="${l}"][data-color-id="color-${C}"]`,K=e((S)=>`${x}.node ${S}, ${x}.rough-node ${S}`,"collapsedRule"),E=e((S)=>`${x}.swimlane.cluster .swimlane-title${S}, ${x}.swimlane.cluster .swimlane-body${S}`,"laneRule");d+=`
16
-
17
- ${x}.cluster:not(.swimlane) rect {
18
- stroke: ${p};
19
- ${W}
11
+ Expecting `+Ct.join(", ")+", got '"+(this.terminals_[ae]||ae)+"'";else _t="Parse error on line "+(J+1)+": Unexpected "+(ae==f1?"end of input":"'"+(this.terminals_[ae]||ae)+"'");this.parseError(_t,{text:ee.match,token:this.terminals_[ae]||ae,line:ee.yylineno,loc:xt,expected:Ct})}if(ue[0]instanceof Array&&ue.length>1)throw Error("Parse Error: multiple actions possible at state: "+je+", token: "+ae);switch(ue[0]){case 1:if(S.push(ae),W.push(ee.yytext),s.push(ee.yylloc),S.push(ue[1]),ae=null,!Ft){if(d1=ee.yyleng,i=ee.yytext,J=ee.yylineno,xt=ee.yylloc,p1>0)p1--}else ae=Ft,Ft=null;break;case 2:if(we=this.productions_[ue[1]][1],ot.$=W[W.length-we],ot._$={first_line:s[s.length-(we||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(we||1)].first_column,last_column:s[s.length-1].last_column},E1)ot._$.range=[s[s.length-(we||1)].range[0],s[s.length-1].range[1]];if(vt=this.performAction.apply(ot,[i,d1,J,We.yy,ue[1],W,s].concat(T1)),typeof vt<"u")return vt;if(we)S=S.slice(0,-1*we*2),W=W.slice(0,-1*we),s=s.slice(0,-1*we);S.push(this.productions_[ue[1]][0]),W.push(ot.$),s.push(ot._$),k1=Ue[S[S.length-2]][S[S.length-1]],S.push(k1);break;case 3:return!0}}return!0},"parse")},C1=function(){var Ne={EOF:1,parseError:e(function(m,S){if(this.yy.parser)this.yy.parser.parseError(m,S);else throw Error(m)},"parseError"),setInput:e(function(g,m){if(this.yy=m||this.yy||{},this._input=g,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];return this.offset=0,this},"setInput"),input:e(function(){var g=this._input[0];this.yytext+=g,this.yyleng++,this.offset++,this.match+=g,this.matched+=g;var m=g.match(/(?:\r\n?|\n).*/g);if(m)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),g},"input"),unput:e(function(g){var m=g.length,S=g.split(/(?:\r\n?|\n)/g);this._input=g+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var c=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),S.length-1)this.yylineno-=S.length-1;var W=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:S?(S.length===c.length?this.yylloc.first_column:0)+c[c.length-S.length].length-S[0].length:this.yylloc.first_column-m},this.options.ranges)this.yylloc.range=[W[0],W[0]+this.yyleng-m];return this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
12
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(g){this.unput(this.match.slice(g))},"less"),pastInput:e(function(){var g=this.matched.substr(0,this.matched.length-this.match.length);return(g.length>20?"...":"")+g.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var g=this.match;if(g.length<20)g+=this._input.substr(0,20-g.length);return(g.substr(0,20)+(g.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var g=this.pastInput(),m=Array(g.length+1).join("-");return g+this.upcomingInput()+`
13
+ `+m+"^"},"showPosition"),test_match:e(function(g,m){var S,c,W;if(this.options.backtrack_lexer){if(W={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)W.yylloc.range=this.yylloc.range.slice(0)}if(c=g[0].match(/(?:\r\n?|\n).*/g),c)this.yylineno+=c.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+g[0].length},this.yytext+=g[0],this.match+=g[0],this.matches=g,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(g[0].length),this.matched+=g[0],S=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(S)return S;else if(this._backtrack){for(var s in W)this[s]=W[s];return!1}return!1},"test_match"),next:e(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var g,m,S,c;if(!this._more)this.yytext="",this.match="";var W=this._currentRules();for(var s=0;s<W.length;s++)if(S=this._input.match(this.rules[W[s]]),S&&(!m||S[0].length>m[0].length)){if(m=S,c=s,this.options.backtrack_lexer)if(g=this.test_match(S,W[s]),g!==!1)return g;else if(this._backtrack){m=!1;continue}else return!1;else if(!this.options.flex)break}if(m){if(g=this.test_match(m,W[c]),g!==!1)return g;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
14
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){var m=this.next();if(m)return m;else return this.lex()},"lex"),begin:e(function(m){this.conditionStack.push(m)},"begin"),popState:e(function(){var m=this.conditionStack.length-1;if(m>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:e(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:e(function(m){if(m=this.conditionStack.length-1-Math.abs(m||0),m>=0)return this.conditionStack[m];else return"INITIAL"},"topState"),pushState:e(function(m){this.begin(m)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:e(function(m,S,c,W){var s=W;switch(c){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),S.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let Ue=/\n\s*/g;return S.yytext=S.yytext.replace(Ue,"<br/>"),40;break;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 96;case 17:this.popState();break;case 18:return 97;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 85;case 26:return 103;case 27:return 86;case 28:return 105;case 29:return 87;case 30:return 88;case 31:return 98;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 89;case 35:if(m.lex.firstGraph())this.begin("dir");return 12;case 36:if(m.lex.firstGraph())this.begin("dir");return 12;case 37:if(m.lex.firstGraph())this.begin("dir");return 12;case 38:if(m.lex.firstGraph())this.begin("dir");return 12;case 39:return 27;case 40:return 32;case 41:return 99;case 42:return 99;case 43:return 99;case 44:return 99;case 45:return this.popState(),13;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return this.popState(),14;break;case 50:return this.popState(),14;break;case 51:return this.popState(),14;break;case 52:return this.popState(),14;break;case 53:return this.popState(),14;break;case 54:return this.popState(),14;break;case 55:return this.popState(),14;break;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 125;case 60:return 126;case 61:return 79;case 62:return 106;case 63:return 112;case 64:return 47;case 65:return 61;case 66:return 45;case 67:return 8;case 68:return 107;case 69:return 116;case 70:return this.popState(),78;break;case 71:return this.pushState("edgeText"),76;break;case 72:return 120;case 73:return this.popState(),78;break;case 74:return this.pushState("thickEdgeText"),76;break;case 75:return 120;case 76:return this.popState(),78;break;case 77:return this.pushState("dottedEdgeText"),76;break;case 78:return 120;case 79:return 78;case 80:return this.popState(),54;break;case 81:return"TEXT";case 82:return this.pushState("ellipseText"),53;break;case 83:return this.popState(),56;break;case 84:return this.pushState("text"),55;break;case 85:return this.popState(),58;break;case 86:return this.pushState("text"),57;break;case 87:return 59;case 88:return this.pushState("text"),68;break;case 89:return this.popState(),65;break;case 90:return this.pushState("text"),64;break;case 91:return this.popState(),50;break;case 92:return this.pushState("text"),49;break;case 93:return this.popState(),70;break;case 94:return this.popState(),72;break;case 95:return 118;case 96:return this.pushState("trapText"),69;break;case 97:return this.pushState("trapText"),71;break;case 98:return 119;case 99:return 68;case 100:return 91;case 101:return"SEP";case 102:return 90;case 103:return 116;case 104:return 112;case 105:return 45;case 106:return 110;case 107:return 115;case 108:return 117;case 109:return this.popState(),63;break;case 110:return this.pushState("text"),63;break;case 111:return this.popState(),52;break;case 112:return this.pushState("text"),51;break;case 113:return this.popState(),31;break;case 114:return this.pushState("text"),29;break;case 115:return this.popState(),67;break;case 116:return this.pushState("text"),66;break;case 117:return"TEXT";case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"\[\]\(\)\{\}\|]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:[^\S\n\r]+)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}};return Ne}();Et.lexer=C1;function gt(){this.yy={}}return e(gt,"Parser"),gt.prototype=Et,Et.Parser=gt,new gt}();Lt.parser=Lt;var m1=Lt,D1=Object.assign({},m1);D1.parse=(t)=>{let r=t.replace(/}\s*\n/g,`}
15
+ `);return m1.parse(r)};var V1=D1,I1=e((t)=>{let{theme:r,bkgColorArray:o,borderColorArray:a}=t;if(!de(r,a))return"";let l=fe(t.look),k=ge(o),d="";for(let D=0;D<Je(t.THEME_COLOR_LIMIT,a);D++){let f=a[D%a.length],j=k?`fill: ${o[D%o.length]};`:"",E=`[data-look="${l}"][data-color-id="color-${D}"]`,K=e((C)=>`${E}.node ${C}, ${E}.rough-node ${C}`,"collapsedRule"),T=e((C)=>`${E}.swimlane.cluster .swimlane-title${C}, ${E}.swimlane.cluster .swimlane-body${C}`,"laneRule");d+=`
16
+
17
+ ${E}.cluster:not(.swimlane) rect {
18
+ stroke: ${f};
19
+ ${j}
20
20
  }
21
21
 
22
- ${x}.cluster:not(.swimlane) path {
23
- stroke: ${p};
24
- ${W}
22
+ ${E}.cluster:not(.swimlane) path {
23
+ stroke: ${f};
24
+ ${j}
25
25
  }
26
26
 
27
27
  /* Lane, classic and neo. */
28
- ${x}.swimlane.cluster rect.swimlane-title,
29
- ${x}.swimlane.cluster rect.swimlane-body {
30
- stroke: ${p};
31
- ${W}
28
+ ${E}.swimlane.cluster rect.swimlane-title,
29
+ ${E}.swimlane.cluster rect.swimlane-body {
30
+ stroke: ${f};
31
+ ${j}
32
32
  }
33
33
 
34
34
  /* Lane, handDrawn: roughjs emits the hachure fill first, then the outline. */
35
- ${E(" path:nth-of-type(2)")} {
36
- stroke: ${p};
35
+ ${T(" path:nth-of-type(2)")} {
36
+ stroke: ${f};
37
37
  }
38
- ${b?`
38
+ ${k?`
39
39
  /* A roughjs fill is drawn as lines, so the lane fill is a stroke here. */
40
- ${E(" path:first-of-type")} {
41
- stroke: ${o[C%o.length]};
40
+ ${T(" path:first-of-type")} {
41
+ stroke: ${o[D%o.length]};
42
42
  }
43
43
  `:""}
44
44
  ${K(".collapsed-group")},
45
45
  ${K(".collapsed-group path")} {
46
- stroke: ${p};
47
- ${W}
46
+ stroke: ${f};
47
+ ${j}
48
48
  }
49
49
 
50
50
  /* The ellipsis dots and the separator take clusterBorder further down, so without
51
51
  these the container is palette-coloured while its own markers are not. */
52
52
  ${K(".collapsed-indicator")} {
53
- fill: ${p};
53
+ fill: ${f};
54
54
  }
55
55
 
56
56
  ${K(".collapsed-separator")} {
57
- stroke: ${p};
57
+ stroke: ${f};
58
58
  }
59
- `}return d},"genColor"),R1=e((t,r)=>{let o=gt,a=o(t,"r"),l=o(t,"g"),b=o(t,"b");return be(a,l,b,r)},"fade"),N1=e((t)=>`${I1(t)}
59
+ `}return d},"genColor"),R1=e((t,r)=>{let o=mt,a=o(t,"r"),l=o(t,"g"),k=o(t,"b");return me(a,l,k,r)},"fade"),N1=e((t)=>`${I1(t)}
60
60
  .label {
61
61
  font-family: ${t.fontFamily};
62
62
  color: ${t.nodeTextColor||t.textColor};
@@ -209,6 +209,6 @@ ${b?`
209
209
  }
210
210
  text-align: center;
211
211
  }
212
- ${Xe()}
213
- `,"getStyles"),cs=N1,us=e(({styles:t=cs}={})=>({parser:V1,get db(){return new _1},renderer:w1,styles:t,init:e((r)=>{if(!r.flowchart)r.flowchart={};r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,Pt({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),gc=us();
214
- export{cs,us,gc};
212
+ ${Ye()}
213
+ `,"getStyles"),cs=N1,us=e(({styles:t=cs}={})=>({parser:V1,get db(){return new _1},renderer:w1,styles:t,init:e((r)=>{if(!r.flowchart)r.flowchart={};r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,Dt({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),mc=us();
214
+ export{cs,us,mc};
@@ -1,2 +1,2 @@
1
- import{e,n,j}from"./index.a1bxkgd3.js";var ge=e((t,i,o,h)=>{t.attr("class",o);let{width:r,height:a,x:w,y:x}=u(t,i);j(t,a,r,h);let c=m(w,x,r,a,i);t.attr("viewBox",c),n.debug(`viewBox configured: ${c} with padding: ${i}`)},"setupViewPortForSVG"),u=e((t,i)=>{let o=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:o.width+i*2,height:o.height+i*2,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),m=e((t,i,o,h,r)=>`${t-r} ${i-r} ${o} ${h}`,"createViewBox");
2
- export{ge};
1
+ import{e,n,j}from"./index.zkx4ryzt.js";var pe=e((t,i,o,h)=>{t.attr("class",o);let{width:r,height:a,x:w,y:x}=u(t,i);j(t,a,r,h);let c=m(w,x,r,a,i);t.attr("viewBox",c),n.debug(`viewBox configured: ${c} with padding: ${i}`)},"setupViewPortForSVG"),u=e((t,i)=>{let o=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:o.width+i*2,height:o.height+i*2,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),m=e((t,i,o,h,r)=>`${t-r} ${i-r} ${o} ${h}`,"createViewBox");
2
+ export{pe};
@@ -1,2 +1,2 @@
1
- function Ll(e){let t=[],n="",r=0;for(;r<e.length;){if(e.startsWith("://",r)){t.push(`${n}://`),n="",r+=3;continue}let s=e[r];if(r+=1,".-_".includes(s)&&n){if(".-_".includes(n.charAt(n.length-1))){n+=s;continue}t.push(n),n=s}else n+=s,"/:?&=#,;@".includes(s)&&(t.push(n),n="")}return n&&t.push(n),t}function Il(e){return e==="word"?"break-words":e==="anywhere"?"[overflow-wrap:anywhere]":""}
2
- export{Ll,Il};
1
+ function Il(e){let t=[],n="",r=0;for(;r<e.length;){if(e.startsWith("://",r)){t.push(`${n}://`),n="",r+=3;continue}let s=e[r];if(r+=1,".-_".includes(s)&&n){if(".-_".includes(n.charAt(n.length-1))){n+=s;continue}t.push(n),n=s}else n+=s,"/:?&=#,;@".includes(s)&&(t.push(n),n="")}return n&&t.push(n),t}function Rl(e){return e==="word"?"break-words":e==="anywhere"?"[overflow-wrap:anywhere]":""}
2
+ export{Il,Rl};
@@ -1,2 +1,2 @@
1
- import{E,d,P,o,r,Se}from"./index.e35b4yh5.js";var w=/^rgb\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)\s*\)$/;function b(e,n){e.clearRect(0,0,1,1),e.fillStyle="#000",e.fillStyle=n,e.fillRect(0,0,1,1);let[l=0,t=0,a=0,i=255]=e.getImageData(0,0,1,1).data;return[l,t,a,i]}function x(e,n){let l=e.ownerDocument,t,a=l.createElement("span");a.setAttribute("aria-hidden","true"),a.style.setProperty("display","none"),e.append(a);try{return n.map(({css:i,tone:s})=>{s?a.setAttribute("data-tone",s):a.removeAttribute("data-tone"),a.style.setProperty("color",""),a.style.setProperty("color",i);let u=l.defaultView?.getComputedStyle(a).color??"",f=w.exec(u);if(f)return[Number(f[1]),Number(f[2]),Number(f[3]),255];if(!u)return null;if(t===void 0){let m=l.createElement("canvas");m.width=m.height=1,t=m.getContext("2d",{willReadFrequently:!0})}return t?b(t,u):null})}finally{a.remove()}}var S=/^#([0-9a-fA-F]{3})$/,R=/^#([0-9a-fA-F]{6})$/;function On(e){let n=e.trim();if(!n)return null;let l=n.startsWith("#")?n:`#${n}`,t=S.exec(l);if(t?.[1]){let[a,i,s]=t[1];return`#${a}${a}${i}${i}${s}${s}`.toLowerCase()}return R.test(l)?l.toLowerCase():null}var k=/^var\(\s*(--[\w-]+)\s*(,[\s\S]*)?\)$/,c=(e,n)=>({key:`material.image-editor.markup.color-names.${e}`,en:n}),A=c("white","White"),g=c("black","Black"),I={"#ffffff":A,"#111827":g,"#000000":g,"#f97316":c("orange","Orange"),"#8b5cf6":c("violet","Violet"),"var(--primary)":c("primary","Primary"),"var(--destructive)":c("danger","Danger"),"var(--warning)":c("warning","Warning"),"var(--success)":c("success","Success"),"var(--info)":c("info","Info")},Js=(e)=>I[On(e)??e.trim().toLowerCase()],p=(e)=>e.toString(16).padStart(2,"0");function el(e,n){let l=On(e);if(l)return l;let t=k.exec(e.trim()),[a]=x(n,[{css:t&&!t[2]?`var(${t[1]}, transparent)`:e}]);return a?.[3]?`#${p(a[0])}${p(a[1])}${p(a[2])}`:null}function L(e,n,l){let t=On(n);return!t||l.includes(t)?[...e]:[t,...e.filter((a)=>a!==t)].slice(0,6)}function D(e){let n=[];for(let l of e){let t=On(l);t&&!n.includes(t)&&n.push(t)}return n.slice(0,6)}function N({recentColors:e,onRecentColorsChange:n}){let[l,t]=o([]),a=e===void 0?l:D(e),i=Se(a),s=Se(n),u=Se(e!==void 0);return{colors:a,add:d((f,m)=>{let v=L(i.current,f,m);v.join()!==i.current.join()&&(u.current||t(v),s.current?.(v))},[i,u,s])}}var C=E(null),h=E(null);function tl({value:e,recentColors:n,onRecentColorsChange:l,children:t}){let a=N({recentColors:n,onRecentColorsChange:l});return r(C.Provider,{value:e,children:r(h.Provider,{value:a,children:t})})}var y=()=>Error("ImageEditor parts must be used inside <ImageEditor>");function V(){let e=P(C);if(!e)throw y();return e}function rl(){let e=P(h);if(!e)throw y();return e}function nl(e){let n=e.trim().replace("#",""),l=n.length===3?n.replace(/./g,(u)=>u+u):n;if(!/^[0-9a-f]{6}/i.test(l))return!1;let t=Number.parseInt(l.slice(0,6),16),a=t>>16&255,i=t>>8&255,s=t&255;return 0.299*a+0.587*i+0.114*s>160}function Wo(e){return e.label??e.value}function Dn(e,n){return!!(e&&n&&e.toLowerCase()===n.toLowerCase())}function wa(e){return e&&/^#[0-9a-f]{6}$/i.test(e)?e:"#000000"}
2
- export{On,Js,el,tl,V,rl,nl,Wo,Dn,wa};
1
+ import{E,d,D,o,r,Me}from"./index.rkgfxpm3.js";var w=/^rgb\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)\s*\)$/;function b(e,n){e.clearRect(0,0,1,1),e.fillStyle="#000",e.fillStyle=n,e.fillRect(0,0,1,1);let[l=0,t=0,a=0,i=255]=e.getImageData(0,0,1,1).data;return[l,t,a,i]}function x(e,n){let l=e.ownerDocument,t,a=l.createElement("span");a.setAttribute("aria-hidden","true"),a.style.setProperty("display","none"),e.append(a);try{return n.map(({css:i,tone:s})=>{s?a.setAttribute("data-tone",s):a.removeAttribute("data-tone"),a.style.setProperty("color",""),a.style.setProperty("color",i);let u=l.defaultView?.getComputedStyle(a).color??"",f=w.exec(u);if(f)return[Number(f[1]),Number(f[2]),Number(f[3]),255];if(!u)return null;if(t===void 0){let m=l.createElement("canvas");m.width=m.height=1,t=m.getContext("2d",{willReadFrequently:!0})}return t?b(t,u):null})}finally{a.remove()}}var S=/^#([0-9a-fA-F]{3})$/,P=/^#([0-9a-fA-F]{6})$/;function On(e){let n=e.trim();if(!n)return null;let l=n.startsWith("#")?n:`#${n}`,t=S.exec(l);if(t?.[1]){let[a,i,s]=t[1];return`#${a}${a}${i}${i}${s}${s}`.toLowerCase()}return P.test(l)?l.toLowerCase():null}var R=/^var\(\s*(--[\w-]+)\s*(,[\s\S]*)?\)$/,c=(e,n)=>({key:`material.image-editor.markup.color-names.${e}`,en:n}),k=c("white","White"),g=c("black","Black"),A={"#ffffff":k,"#111827":g,"#000000":g,"#f97316":c("orange","Orange"),"#8b5cf6":c("violet","Violet"),"var(--primary)":c("primary","Primary"),"var(--destructive)":c("danger","Danger"),"var(--warning)":c("warning","Warning"),"var(--success)":c("success","Success"),"var(--info)":c("info","Info")},el=(e)=>A[On(e)??e.trim().toLowerCase()],p=(e)=>e.toString(16).padStart(2,"0");function tl(e,n){let l=On(e);if(l)return l;let t=R.exec(e.trim()),[a]=x(n,[{css:t&&!t[2]?`var(${t[1]}, transparent)`:e}]);return a?.[3]?`#${p(a[0])}${p(a[1])}${p(a[2])}`:null}function I(e,n,l){let t=On(n);return!t||l.includes(t)?[...e]:[t,...e.filter((a)=>a!==t)].slice(0,6)}function L(e){let n=[];for(let l of e){let t=On(l);t&&!n.includes(t)&&n.push(t)}return n.slice(0,6)}function N({recentColors:e,onRecentColorsChange:n}){let[l,t]=o([]),a=e===void 0?l:L(e),i=Me(a),s=Me(n),u=Me(e!==void 0);return{colors:a,add:d((f,m)=>{let v=I(i.current,f,m);v.join()!==i.current.join()&&(u.current||t(v),s.current?.(v))},[i,u,s])}}var C=E(null),h=E(null);function rl({value:e,recentColors:n,onRecentColorsChange:l,children:t}){let a=N({recentColors:n,onRecentColorsChange:l});return r(C.Provider,{value:e,children:r(h.Provider,{value:a,children:t})})}var y=()=>Error("ImageEditor parts must be used inside <ImageEditor>");function V(){let e=D(C);if(!e)throw y();return e}function nl(){let e=D(h);if(!e)throw y();return e}function al(e){let n=e.trim().replace("#",""),l=n.length===3?n.replace(/./g,(u)=>u+u):n;if(!/^[0-9a-f]{6}/i.test(l))return!1;let t=Number.parseInt(l.slice(0,6),16),a=t>>16&255,i=t>>8&255,s=t&255;return 0.299*a+0.587*i+0.114*s>160}function Wo(e){return e.label??e.value}function Dn(e,n){return!!(e&&n&&e.toLowerCase()===n.toLowerCase())}function wa(e){return e&&/^#[0-9a-f]{6}$/i.test(e)?e:"#000000"}
2
+ export{On,el,tl,rl,V,nl,al,Wo,Dn,wa};