@bkm016/basalt 0.1.1 → 0.1.2

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 (196) hide show
  1. package/README.md +16 -22
  2. package/chunk-06hdzq5n.js +2 -0
  3. package/chunk-09rj27b2.js +2 -0
  4. package/{chunk-qnr1f5pj.js → chunk-0y7ne3d0.js} +2 -2
  5. package/{chunk-vgvq3q12.js → chunk-10xzzn07.js} +2 -2
  6. package/{chunk-6qertm2t.js → chunk-1qpces5a.js} +1 -1
  7. package/{chunk-nt2gntad.js → chunk-1zdwrgd4.js} +1 -1
  8. package/{chunk-sh74qzvt.js → chunk-27gntzs5.js} +4 -4
  9. package/{chunk-1v7st27a.js → chunk-2esbgxps.js} +14 -14
  10. package/{chunk-exnn1867.js → chunk-362g64pd.js} +1 -1
  11. package/{chunk-1aspj1hn.js → chunk-3cjsd292.js} +2 -2
  12. package/chunk-5c9j8qe4.js +478 -0
  13. package/{chunk-8dxzqwq3.js → chunk-5j1krv9v.js} +1 -1
  14. package/{chunk-vkkj4awb.js → chunk-6hssbcgj.js} +1 -1
  15. package/{chunk-1b7gbe8g.js → chunk-75m78j7x.js} +2 -2
  16. package/{chunk-kfq8wyd3.js → chunk-8296hw9m.js} +1 -1
  17. package/{chunk-szat3vp4.js → chunk-8d46jtbj.js} +2 -2
  18. package/{chunk-qczbfccb.js → chunk-8tjad3r0.js} +4 -4
  19. package/{chunk-agntrqs9.js → chunk-97rzj7f6.js} +1 -1
  20. package/{chunk-k7w7ac9q.js → chunk-981f9dw8.js} +8 -8
  21. package/{chunk-xysny0ve.js → chunk-aefadsy6.js} +2 -2
  22. package/{chunk-jhd54p1b.js → chunk-bannb9xm.js} +1 -1
  23. package/{chunk-a3tqx584.js → chunk-c7x1zq39.js} +1 -1
  24. package/{chunk-rv06x0kn.js → chunk-cjc90f84.js} +1 -1
  25. package/{chunk-x3dnb9sz.js → chunk-d2j735sd.js} +2 -2
  26. package/{chunk-yskm0hsy.js → chunk-d8gtbw9g.js} +1 -1
  27. package/{chunk-rm3kcxq9.js → chunk-fjtvjrkg.js} +13 -13
  28. package/{chunk-h6sw8fbt.js → chunk-fm0k0qtz.js} +1 -1
  29. package/{chunk-1yzt0qm0.js → chunk-fw2bpqmw.js} +1 -1
  30. package/{chunk-45cz26ap.js → chunk-gp7y0fja.js} +13 -13
  31. package/{chunk-2bb01ddq.js → chunk-gzxnene8.js} +1 -1
  32. package/{chunk-a8nyk4k9.js → chunk-hwr56pfj.js} +1 -1
  33. package/{chunk-0hbjv3y6.js → chunk-jwdb0ccj.js} +3 -3
  34. package/{chunk-kf8hq21a.js → chunk-k23t7vhs.js} +5 -5
  35. package/{chunk-bhqyxyap.js → chunk-k506w58v.js} +1 -1
  36. package/{chunk-44ek81ad.js → chunk-k6w6y71k.js} +2 -2
  37. package/chunk-m40gxwq4.js +5 -0
  38. package/chunk-m8vkwdgr.js +5 -0
  39. package/{chunk-f7egr55n.js → chunk-mvfsxdx6.js} +13 -13
  40. package/{chunk-pvncysbb.js → chunk-nbb9trwz.js} +1 -1
  41. package/{chunk-0szjy61m.js → chunk-pbcy6zdt.js} +1 -1
  42. package/chunk-pmqtkqsf.js +2 -0
  43. package/{chunk-hat3s3pr.js → chunk-pxsrqrd0.js} +1 -1
  44. package/{chunk-xsbxykr4.js → chunk-qe0teyn1.js} +1 -1
  45. package/{chunk-2zqny2sy.js → chunk-r7fpkb49.js} +1 -1
  46. package/{chunk-3m7qwfm3.js → chunk-rtzqqngy.js} +3 -3
  47. package/{chunk-6e49xsf5.js → chunk-shadcb9z.js} +2 -2
  48. package/{chunk-0qqb6v41.js → chunk-shhrr741.js} +120 -120
  49. package/{chunk-cv5wsd9m.js → chunk-t6zs4kw0.js} +2 -2
  50. package/{chunk-hcn9cf6v.js → chunk-v258nxcz.js} +1 -1
  51. package/{chunk-a6r4z44b.js → chunk-vk1gxk1t.js} +1 -1
  52. package/{chunk-s37s3k24.js → chunk-x1xss1d7.js} +2 -2
  53. package/{chunk-dakrpbe6.js → chunk-x4874m8e.js} +2 -2
  54. package/{chunk-wx7kdf0b.js → chunk-xfvvh1s5.js} +1 -1
  55. package/{chunk-0yytz0r1.js → chunk-y0m980k3.js} +5 -5
  56. package/{chunk-dhm42y04.js → chunk-y58ygzn9.js} +3 -3
  57. package/{chunk-2wkaw73s.js → chunk-y648fzx0.js} +5 -5
  58. package/{chunk-32at88hc.js → chunk-y7nma9rk.js} +1 -1
  59. package/{chunk-pmc3y1z8.js → chunk-ykens1hy.js} +1 -1
  60. package/{chunk-q8zx3kt6.js → chunk-z55bmysw.js} +1 -1
  61. package/{chunk-qx0m82rw.js → chunk-zmsgwr3s.js} +1 -1
  62. package/{chunk-501zkf9b.js → chunk-ztsjgssj.js} +1 -1
  63. package/compiled.js +5 -5
  64. package/package.json +1 -1
  65. package/ui-test-worker.js +63 -63
  66. package/web/chunk-0sewdyz1.js +1 -0
  67. package/web/{chunk-xbty0rv7.js → chunk-1z5p7a1h.js} +1 -1
  68. package/web/chunk-21ke27j6.js +1 -0
  69. package/web/{chunk-2msj52w6.js → chunk-24k0r5aq.js} +1 -1
  70. package/web/{chunk-a5x2zveg.js → chunk-284a17k8.js} +1 -1
  71. package/web/{chunk-ca682sm6.js → chunk-2pjdtesn.js} +14 -14
  72. package/web/{chunk-z7dcbxws.js → chunk-3mvr2gwh.js} +1 -1
  73. package/web/chunk-3t3zwx9j.js +1 -0
  74. package/web/{chunk-e6jxqbv7.js → chunk-3z93efr4.js} +1 -1
  75. package/web/{chunk-05w4fyzc.js → chunk-43jqvsrg.js} +1 -1
  76. package/web/{chunk-jwzd9tzk.js → chunk-4bry4xds.js} +2 -2
  77. package/web/{chunk-4ks96e4r.js → chunk-5e7ygjdn.js} +1 -1
  78. package/web/{chunk-qefasa1j.js → chunk-5jbf7n5q.js} +1 -1
  79. package/web/{chunk-e32y85kx.js → chunk-5rx8rtsa.js} +1 -1
  80. package/web/chunk-5xc9d5ft.js +1 -0
  81. package/web/{chunk-a1z5qx1r.js → chunk-693m9kt7.js} +3 -3
  82. package/web/{chunk-70qwwwak.js → chunk-6qejm5s2.js} +1 -1
  83. package/web/{chunk-kdyjnwdx.js → chunk-8ah6ce1b.js} +2 -2
  84. package/web/{chunk-5vw9rs4r.js → chunk-8e43yaq3.js} +3 -3
  85. package/web/{chunk-qnaqf0cr.js → chunk-8wye0wbb.js} +1 -1
  86. package/web/{chunk-45fzdcgz.js → chunk-986z0p48.js} +5 -5
  87. package/web/{chunk-y0m8hrwz.js → chunk-9dd1c37b.js} +77 -77
  88. package/web/{chunk-9yakxvjb.js → chunk-9re6yttj.js} +2 -2
  89. package/web/{chunk-2scce33n.js → chunk-abbvjt4e.js} +1 -1
  90. package/web/{chunk-b4wbk7vc.js → chunk-agmkx996.js} +3 -3
  91. package/web/{chunk-hev4hq89.js → chunk-anbn2ttv.js} +2 -2
  92. package/web/chunk-aqm3spxt.js +1139 -0
  93. package/web/{chunk-fk0dh93x.js → chunk-avwpjsxw.js} +5 -5
  94. package/web/chunk-b470hvpk.js +1 -0
  95. package/web/{chunk-9dxjafp2.js → chunk-bt1m87ck.js} +2 -2
  96. package/web/chunk-cqp1d4p0.js +1 -0
  97. package/web/{chunk-ss1bcb0n.js → chunk-ctcrk3qn.js} +2 -2
  98. package/web/{chunk-pf2ab8p8.js → chunk-ctd8bfg2.js} +1 -1
  99. package/web/{chunk-q5ke7a33.js → chunk-cwvtraca.js} +1 -1
  100. package/web/{chunk-yd46jhqv.js → chunk-dk90px7g.js} +1 -1
  101. package/web/{chunk-0mrkjnte.js → chunk-ds7srg4p.js} +1 -1
  102. package/web/{chunk-fscafg24.js → chunk-dt8ss97f.js} +5 -5
  103. package/web/{chunk-9p12mgs6.js → chunk-ezkqa7we.js} +1 -1
  104. package/web/{chunk-f26smjjf.js → chunk-f078k1ej.js} +1 -1
  105. package/web/chunk-fekjj24p.css +1 -0
  106. package/web/{chunk-a3verqw9.js → chunk-fqj9kry9.js} +5 -5
  107. package/web/chunk-frjfamx7.js +8 -0
  108. package/web/{chunk-g4azyef7.js → chunk-fy8ey195.js} +1 -1
  109. package/web/{chunk-wptv8atc.js → chunk-g8ee1csm.js} +1 -1
  110. package/web/{chunk-w880psmw.js → chunk-h31p43qa.js} +1 -1
  111. package/web/chunk-h5p5jsrw.js +1 -0
  112. package/web/chunk-h9fmr6ch.js +1 -0
  113. package/web/{chunk-qh7265qw.js → chunk-jf2ehmvp.js} +2 -2
  114. package/web/{chunk-fz06t6km.js → chunk-jmnaq7c1.js} +1 -1
  115. package/web/chunk-jq0pw0k2.js +1 -0
  116. package/web/{chunk-p3b9crsa.js → chunk-jvj66qhs.js} +2 -2
  117. package/web/{chunk-xjxv8dg8.js → chunk-jzmzhj8z.js} +4 -4
  118. package/web/chunk-k4cfnvyq.js +1 -0
  119. package/web/{chunk-dt462hk9.js → chunk-kgerjbn4.js} +1 -1
  120. package/web/{chunk-bc78qf1m.js → chunk-kww4azv5.js} +5 -5
  121. package/web/chunk-m29dhjkh.js +1 -0
  122. package/web/chunk-mj6tee5h.js +1 -0
  123. package/web/{chunk-jrcyc9s9.js → chunk-mjpjkyd1.js} +1 -1
  124. package/web/{chunk-20q90epj.js → chunk-n8sky2q6.js} +1 -1
  125. package/web/{chunk-fm2ybfj5.js → chunk-pk3ap3wh.js} +4 -4
  126. package/web/{chunk-bgnnrpna.js → chunk-q1pkntc6.js} +4 -4
  127. package/web/{chunk-taynqrgq.js → chunk-qryrg2pq.js} +2 -2
  128. package/web/{chunk-gqw3f02j.js → chunk-r92sbgwv.js} +5 -5
  129. package/web/{chunk-0vt9fg48.js → chunk-raqqscwa.js} +2 -2
  130. package/web/{chunk-3jhyzmnf.js → chunk-rc2vq9wz.js} +3 -3
  131. package/web/{chunk-2ps6mepk.js → chunk-rkj743fg.js} +3 -3
  132. package/web/{chunk-e53wfgb8.js → chunk-rrws61wf.js} +1 -1
  133. package/web/{chunk-9an7cjd9.js → chunk-s3hwejnr.js} +2 -2
  134. package/web/{chunk-dzwxgqgm.js → chunk-s3rdx28k.js} +2 -2
  135. package/web/{chunk-2m12wyrb.js → chunk-shbw6wg8.js} +1 -1
  136. package/web/chunk-szcy5z56.js +1 -0
  137. package/web/{chunk-tmvakq7n.js → chunk-t1xk6hca.js} +4 -4
  138. package/web/chunk-t2hhdg9r.js +1 -0
  139. package/web/chunk-tj4cmkwe.js +1 -0
  140. package/web/{chunk-bjkc94mv.js → chunk-tn1xzmgx.js} +1 -1
  141. package/web/{chunk-4v8en1yw.js → chunk-tnv7z83q.js} +1 -1
  142. package/web/chunk-v2b5q0n5.js +1 -0
  143. package/web/{chunk-3ee04tmm.js → chunk-vj6kstpp.js} +5 -5
  144. package/web/{chunk-b1pe46zz.js → chunk-vjqmnkh2.js} +1 -1
  145. package/web/{chunk-qd8bxxdj.js → chunk-vkc149rb.js} +1 -1
  146. package/web/{chunk-v28fx2nd.js → chunk-vny496ba.js} +1 -1
  147. package/web/{chunk-rpmpttbk.js → chunk-vz5ck6x9.js} +1 -1
  148. package/web/{chunk-y49fhfda.js → chunk-xa88zgkr.js} +1 -1
  149. package/web/{chunk-q0p5xqe1.js → chunk-xdcs8qz3.js} +4 -4
  150. package/web/chunk-y5x74t89.js +1 -0
  151. package/web/{chunk-xrxne80b.js → chunk-yen2kkn2.js} +1 -1
  152. package/web/{chunk-bj90t5gh.js → chunk-yjv2c45j.js} +4 -4
  153. package/web/chunk-yx3dh5hg.js +1 -0
  154. package/web/chunk-yz4fmtk2.js +1 -0
  155. package/web/{chunk-8p4tc9f4.js → chunk-z24vs8q9.js} +3 -3
  156. package/web/chunk-z5j6x6j8.js +2 -0
  157. package/web/chunk-z5stjrhc.js +1 -0
  158. package/web/{chunk-90kp4pnz.js → chunk-z760wagr.js} +1 -1
  159. package/web/{chunk-tqmwd9qp.js → chunk-znvnb9dh.js} +1 -1
  160. package/web/{chunk-22a4ety5.js → chunk-zrzq29e6.js} +1 -1
  161. package/web/{icon-yx2p2pye.svg → icon-1wgy7kzy.svg} +13 -13
  162. package/web/icon.svg +13 -13
  163. package/web/index.html +2 -2
  164. package/web/install.sh +0 -0
  165. package/web/sw.js +9 -0
  166. package/worker.js +1 -1
  167. package/chunk-09vr609h.js +0 -2
  168. package/chunk-58vz2qsq.js +0 -2
  169. package/chunk-c25s4w6a.js +0 -5
  170. package/chunk-t057xfrt.js +0 -5
  171. package/chunk-wjd9fr23.js +0 -2
  172. package/chunk-zef13k3h.js +0 -471
  173. package/web/chunk-2pver6r4.js +0 -1
  174. package/web/chunk-37ajk6zg.js +0 -2
  175. package/web/chunk-4wkm9fda.js +0 -1
  176. package/web/chunk-amzgyy1k.js +0 -1
  177. package/web/chunk-cff5hcm8.js +0 -8
  178. package/web/chunk-esp1mmgr.js +0 -1
  179. package/web/chunk-ew3cgdtd.js +0 -1
  180. package/web/chunk-gjq1pxw3.js +0 -1
  181. package/web/chunk-h5ejbf6e.js +0 -1
  182. package/web/chunk-jjh5jvva.js +0 -1
  183. package/web/chunk-k5btcvbg.js +0 -1
  184. package/web/chunk-kpvgecwy.js +0 -1
  185. package/web/chunk-kq40ss39.js +0 -1
  186. package/web/chunk-q7dsnvpf.js +0 -1
  187. package/web/chunk-rg426vkf.js +0 -1
  188. package/web/chunk-ry9256r7.js +0 -1
  189. package/web/chunk-scpwc9ev.js +0 -1
  190. package/web/chunk-ssy07dd2.js +0 -1
  191. package/web/chunk-tgpbhzn9.js +0 -1
  192. package/web/chunk-vt40e1kp.js +0 -1136
  193. package/web/chunk-w53rba6g.js +0 -1
  194. package/web/chunk-w86n42dy.js +0 -1
  195. package/web/chunk-wtawdeej.css +0 -1
  196. package/web/chunk-zde7mj43.js +0 -1
@@ -1,4 +1,4 @@
1
- import{e,r,se,Le,y,C,S,E,T,A,I,L,s,an,Tn,p,et,tt,N,Fe,le,ae,ie,Ye,Dr,he,ge}from"./chunk-y0m8hrwz.js";import{Mt}from"./chunk-p3b9crsa.js";import{je}from"./chunk-2m12wyrb.js";import{Pt}from"./chunk-37ajk6zg.js";import{fe}from"./chunk-ss1bcb0n.js";import{oe}from"./chunk-hev4hq89.js";var A1="flowchart-",m1=class{constructor(){this.vertexCounter=0,this.config=s(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=S,this.setAccDescription=T,this.setDiagramTitle=I,this.getAccTitle=E,this.getAccDescription=A,this.getDiagramTitle=L,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 n of this.vertices.values())if(n.id===t)return this.diagramId?`${this.diagramId}-${n.domId}`:n.domId;return this.diagramId?`${this.diagramId}-${t}`:t}addVertex(t,n,u,o,c,g,d={},D){if(!t||t.trim().length===0)return;let f;if(D!==void 0){let _;if(!D.includes(`
1
+ import{e,r,le,Le,y,C,S,E,T,A,I,L,s,an,Tn,p,et,tt,N,Fe,ce,ae,ie,Ye,Dr,ge,ye}from"./chunk-9dd1c37b.js";import{Pt}from"./chunk-jvj66qhs.js";import{je}from"./chunk-shbw6wg8.js";import{Ot}from"./chunk-z5j6x6j8.js";import{he}from"./chunk-ctcrk3qn.js";import{se}from"./chunk-anbn2ttv.js";var A1="flowchart-",m1=class{constructor(){this.vertexCounter=0,this.config=s(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=S,this.setAccDescription=T,this.setDiagramTitle=I,this.getAccTitle=E,this.getAccDescription=A,this.getDiagramTitle=L,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 n of this.vertices.values())if(n.id===t)return this.diagramId?`${this.diagramId}-${n.domId}`:n.domId;return this.diagramId?`${this.diagramId}-${t}`:t}addVertex(t,n,u,o,c,g,d={},D){if(!t||t.trim().length===0)return;let f;if(D!==void 0){let _;if(!D.includes(`
2
2
  `))_=`{
3
3
  `+D+`
4
4
  }`;else _=D+`
@@ -6,13 +6,13 @@ import{e,r,se,Le,y,C,S,E,T,A,I,L,s,an,Tn,p,et,tt,N,Fe,le,ae,ie,Ye,Dr,he,ge}from"
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,n,u){let o=this.isLinkData(u)?u.id.replace("@",""):void 0;r.info("addLink",t,n,o);for(let c of t)for(let g of n){let d=c===t[t.length-1],D=g===n[0];if(d&&D)this.addSingleLink(c,g,u,o);else this.addSingleLink(c,g,u,void 0)}}updateLinkInterpolate(t,n){t.forEach((u)=>{if(u==="default")this.edges.defaultInterpolate=n;else this.edges[u].interpolate=n})}updateLink(t,n){t.forEach((u)=>{if(typeof u==="number"&&u>=this.edges.length)throw Error(`The index ${u} 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(u==="default")this.edges.defaultStyle=n;else if(this.edges[u].style=n,(this.edges[u]?.style?.length??0)>0&&!this.edges[u]?.style?.some((o)=>o?.startsWith("fill")))this.edges[u]?.style?.push("fill:none")})}addClass(t,n){let u=n.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach((o)=>{let c=this.classes.get(o);if(c===void 0)c={id:o,styles:[],textStyles:[]},this.classes.set(o,c);if(u!==void 0&&u!==null)u.forEach((g)=>{if(/color/.exec(g)){let d=g.replace("fill","bgFill");c.textStyles.push(d)}c.styles.push(g)})})}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,n){for(let u of t.split(",")){let o=this.vertices.get(u);if(o)o.classes.push(n);let c=this.edges.find((d)=>d.id===u);if(c)c.classes.push(n);let g=this.subGraphLookup.get(u);if(g)g.classes.push(n)}}setTooltip(t,n){if(n===void 0)return;n=this.sanitizeText(n);for(let u of t.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(u):u,n)}setClickFun(t,n,u){if(s().securityLevel!=="loose")return;if(n===void 0)return;let o=[];if(typeof u==="string"){o=u.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let g=0;g<o.length;g++){let d=o[g].trim();if(d.startsWith('"')&&d.endsWith('"'))d=d.substr(1,d.length-2);o[g]=d}}if(o.length===0)o.push(t);let c=this.vertices.get(t);if(c)c.haveCallback=!0,this.funs.push(()=>{let g=this.lookUpDomId(t),d=document.querySelector(`[id="${g}"]`);if(d!==null)d.addEventListener("click",()=>{N.runFunc(n,...o)},!1)})}setLink(t,n,u){t.split(",").forEach((o)=>{let c=this.vertices.get(o);if(c!==void 0)c.link=N.formatUrl(n,this.config),c.linkTarget=u}),this.setClass(t,"clickable")}getTooltip(t){return this.tooltips.get(t)}setClickEvent(t,n,u){t.split(",").forEach((o)=>{this.setClickFun(o,n,u)}),this.setClass(t,"clickable")}bindFunctions(t){this.funs.forEach((n)=>{n(t)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(t){let n=Mt();p(t).select("svg").selectAll("g.node").on("mouseover",(c)=>{let g=p(c.currentTarget),d=g.attr("title");if(d===null)return;let D=c.currentTarget?.getBoundingClientRect();n.transition().duration(200).style("opacity",".9"),n.text(g.attr("title")).style("left",window.scrollX+D.left+(D.right-D.left)/2+"px").style("top",window.scrollY+D.bottom+"px"),n.html(Le.sanitize(d)),g.classed("hover",!0)}).on("mouseout",(c)=>{n.transition().duration(500).style("opacity",0),p(c.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.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=s(),C()}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,n,u){let o=t.text.trim(),c=u.text;if(t===u&&/\s/.exec(u.text))o=void 0;let d=e((x)=>{let _={boolean:{},number:{},string:{}},G=[],j;return{nodeList:x.filter(function(h){let k=typeof h;if(h.stmt&&h.stmt==="dir")return j=h.value,!1;if(h.trim()==="")return!1;if(k in _)return _[k].hasOwnProperty(h)?!1:_[k][h]=!0;else return G.includes(h)?!1:G.push(h)}),dir:j}},"uniq")(n.flat()),{nodeList:D,dir:f}=d,U=s().flowchart??{};if(f=f??(U.inheritDir?this.getDirection()??s().direction??void 0:void 0),this.version==="gen-1")for(let x=0;x<D.length;x++)D[x]=this.lookUpDomId(D[x]);o=o??"subGraph"+this.subCount,c=c||"",c=this.sanitizeText(c),this.subCount=this.subCount+1;let B={id:o,nodes:D,title:c.trim(),classes:[],dir:f,labelType:this.sanitizeNodeLabelType(u?.type)};r.info("Adding",B.id,B.nodes,B.dir),B.nodes=this.makeUniq(B,this.subGraphs).nodes.filter((x)=>x!==o);let W=this.subGraphs.find((x)=>x.id===o);if(W)W.nodes.push(...B.nodes);else this.subGraphs.push(B);return this.subGraphLookup.set(o,W??B),o}getPosForId(t){for(let[n,u]of this.subGraphs.entries())if(u.id===t)return n;return-1}indexNodes2(t,n){let u=this.subGraphs[n].nodes;if(this.secCount=this.secCount+1,this.secCount>2000)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=n,this.subGraphs[n].id===t)return{result:!0,count:0};let o=0,c=1;while(o<u.length){let g=this.getPosForId(u[o]);if(g>=0){let d=this.indexNodes2(t,g);if(d.result)return{result:!0,count:c+d.count};else c=c+d.count}o=o+1}return{result:!1,count:c}}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 n=t.trim(),u="arrow_open";switch(n[0]){case"<":u="arrow_point",n=n.slice(1);break;case"x":u="arrow_cross",n=n.slice(1);break;case"o":u="arrow_circle",n=n.slice(1);break}let o="normal";if(n.includes("="))o="thick";if(n.includes("."))o="dotted";return{type:u,stroke:o}}countChar(t,n){let u=n.length,o=0;for(let c=0;c<u;++c)if(n[c]===t)++o;return o}destructEndLink(t){let n=t.trim(),u=n.slice(0,-1),o="arrow_open";switch(n.slice(-1)){case"x":if(o="arrow_cross",n.startsWith("x"))o="double_"+o,u=u.slice(1);break;case">":if(o="arrow_point",n.startsWith("<"))o="double_"+o,u=u.slice(1);break;case"o":if(o="arrow_circle",n.startsWith("o"))o="double_"+o,u=u.slice(1);break}let c="normal",g=u.length-1;if(u.startsWith("="))c="thick";if(u.startsWith("~"))c="invisible";let d=this.countChar(".",u);if(d)c="dotted",g=d;return{type:o,stroke:c,length:g}}destructLink(t,n){let u=this.destructEndLink(t),o;if(n){if(o=this.destructStartLink(n),o.stroke!==u.stroke)return{type:"INVALID",stroke:"INVALID"};if(o.type==="arrow_open")o.type=u.type;else{if(o.type!==u.type)return{type:"INVALID",stroke:"INVALID"};o.type="double_"+o.type}if(o.type==="double_arrow")o.type="double_arrow_point";return o.length=u.length,o}return u}exists(t,n){for(let u of t)if(u.nodes.includes(n))return!0;return!1}makeUniq(t,n){let u=[];return t.nodes.forEach((o,c)=>{if(!this.exists(n,o))u.push(t.nodes[c])}),{nodes:u}}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,n){return t.find((u)=>u.id===n)}destructEdgeType(t){let n="none",u="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":u=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":n=t.replace("double_",""),u=n;break}return{arrowTypeStart:n,arrowTypeEnd:u}}addNodeFromVertex(t,n,u,o,c,g){let d=u.get(t.id),D=o.get(t.id)??!1,f=this.findNode(n,t.id);if(f)f.cssStyles=t.styles,f.cssCompiledStyles=this.getCompiledStyles(t.classes),f.cssClasses=t.classes.join(" ");else{let U={id:t.id,label:t.text,labelType:t.labelType,labelStyle:"",parentId:d,padding:c.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:g,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};if(D)n.push({...U,isGroup:!0,shape:"rect"});else n.push({...U,isGroup:!1,shape:this.getTypeFromVertex(t),minWidth:c.flowchart?.minNodeWidth})}}getCompiledStyles(t){let n=[];for(let u of t){let o=this.classes.get(u);if(o?.styles)n=[...n,...o.styles??[]].map((c)=>c.trim());if(o?.textStyles)n=[...n,...o.textStyles??[]].map((c)=>c.trim())}return n}getData(){let t=s(),n=[],u=[],o=this.getSubGraphs(),c=new Map,g=new Map,d=new Map;for(let h of o)for(let k of h.nodes)if(this.subGraphLookup.has(k))d.set(k,h.id);let D=new Map,f=new Map;for(let h of o){let k=d.get(h.id);if(k!==void 0)f.set(k,[...f.get(k)??[],h.id])}let U=0,B=e((h)=>{D.set(h,U++);for(let k of f.get(h)??[])B(k)},"walk");for(let h of o)if(!d.has(h.id))B(h.id);let W=e((h)=>this.subGraphLookup.get(h)?.metadata?.view==="collapsed","isCollapsed"),x=e((h)=>{let k,de=new Set,be=h;while(be!==void 0&&!de.has(be)){if(de.add(be),W(be))k=be;be=d.get(be)}return k},"outermostCollapsed"),_=new Set,G=new Map;for(let h of o){let k=x(h.id);if(k===void 0)continue;if(h.id!==k)_.add(h.id),G.set(h.id,k);for(let de of h.nodes){if(de===k)continue;_.add(de),G.set(de,k)}}for(let h=o.length-1;h>=0;h--){let k=o[h];if(_.has(k.id))continue;if(k.nodes.length>0)g.set(k.id,!0);for(let de of k.nodes)c.set(de,k.id)}for(let h=o.length-1;h>=0;h--){let k=o[h];if(_.has(k.id))continue;if(k.metadata?.view==="collapsed")n.push({id:k.id,label:k.title,labelStyle:"",labelType:k.labelType,parentId:c.get(k.id),padding:8,cssCompiledStyles:this.getCompiledStyles(k.classes),cssClasses:k.classes.join(" "),shape:"collapsedGroup",dir:k.dir,isGroup:!1,look:t.look,colorIndex:D.get(k.id)});else n.push({id:k.id,label:k.title,labelStyle:"",labelType:k.labelType,parentId:c.get(k.id),padding:8,cssCompiledStyles:this.getCompiledStyles(k.classes),cssClasses:k.classes.join(" "),shape:"rect",dir:k.dir,isGroup:!0,look:t.look,colorIndex:D.get(k.id),metadata:k.metadata})}this.getVertices().forEach((h)=>{if(_.has(h.id))return;this.addNodeFromVertex(h,n,c,g,t,t.look||"classic")});let Ne=this.getEdges();return Ne.forEach((h,k)=>{let{arrowTypeStart:de,arrowTypeEnd:be}=this.destructEdgeType(h.type),K=[...Ne.defaultStyle??[]],Y=G.get(h.start)??h.start,H=G.get(h.end)??h.end;if(Y===H&&(G.has(h.start)||G.has(h.end)))return;if(h.style)K.push(...h.style);let q={id:Fe(Y,H,{counter:k,prefix:"L"},h.id),isUserDefinedId:h.isUserDefinedId,start:Y,end:H,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":de,arrowTypeEnd:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":be,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(h.classes),labelStyle:K,style:K,pattern:h.stroke,look:t.look,animate:h.animate,animation:h.animation,curve:h.interpolate||this.edges.defaultInterpolate||t.flowchart?.curve};u.push(q)}),{nodes:n,edges:u,other:{},config:t}}defaultConfig(){return Tn.flowchart}},C1=e(function(t,n){return n.db.getClasses()},"getClasses"),D1=e(async function(t,n,u,o){r.info("REF0:"),r.info("Drawing state diagram (v2)",n);let{securityLevel:c,flowchart:g,layout:d}=s();o.db.setDiagramId(n),r.debug("Before getData: ");let D=o.db.getData();r.debug("Data: ",D);let f=fe(n,c),U=o.db.getDirection();D.type=o.type,D.layoutAlgorithm=ge(d),D.direction=U,D.nodeSpacing=g?.nodeSpacing||50,D.rankSpacing=g?.rankSpacing||50,D.markers=["point","circle","cross"],D.diagramId=n,r.debug("REF1:",D),await he(D,f);let B=D.config.flowchart?.diagramPadding??8;N.insertTitle(f,"flowchartTitleText",g?.titleTopMargin||0,o.db.getDiagramTitle()),oe(f,B,"flowchart",g?.useMaxWidth||!1)},"draw"),T1={getClasses:C1,draw:D1},Ft=function(){var t=e(function(Oe,b,m,F){for(m=m||{},F=Oe.length;F--;m[Oe[F]]=b);return m},"o"),n=[1,4],u=[1,3],o=[1,5],c=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],g=[2,2],d=[1,13],D=[1,14],f=[1,15],U=[1,16],B=[1,23],W=[1,25],x=[1,26],_=[1,27],G=[1,50],j=[1,49],Ne=[1,29],h=[1,30],k=[1,31],de=[1,32],be=[1,33],K=[1,45],Y=[1,47],H=[1,43],q=[1,48],Q=[1,44],J=[1,51],Z=[1,46],ee=[1,52],te=[1,53],ct=[1,34],ht=[1,35],dt=[1,36],pt=[1,37],ft=[1,38],Ge=[1,58],P=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Te=[1,62],Ee=[1,61],Se=[1,63],Ke=[8,9,11,75,77,78],_t=[1,79],He=[1,92],qe=[1,97],Xe=[1,96],Qe=[1,93],Je=[1,89],Ze=[1,95],$e=[1,91],st=[1,98],it=[1,94],rt=[1,99],at=[1,90],Me=[8,9,10,11,40,75,77,78],ne=[8,9,10,11,40,46,75,77,78],ke=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],Bt=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],nt=[44,60,89,102,105,106,109,111,114,115,116],vt=[1,122],Lt=[1,123],bt=[1,125],kt=[1,124],Vt=[44,60,62,74,89,102,105,106,109,111,114,115,116],wt=[1,134],It=[1,148],Rt=[1,149],Nt=[1,150],Gt=[1,151],Ot=[1,136],Ut=[1,138],Wt=[1,142],zt=[1,143],jt=[1,144],Kt=[1,145],Yt=[1,146],Ht=[1,147],qt=[1,152],Xt=[1,153],Qt=[1,132],Jt=[1,133],Zt=[1,140],$t=[1,135],e1=[1,139],t1=[1,137],Ct=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],s1=[1,155],i1=[1,157],z=[8,9,11],Ae=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],v=[1,177],ue=[1,173],ce=[1,174],V=[1,178],w=[1,175],R=[1,176],ut=[77,116,119],O=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],r1=[10,106],Pe=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],ye=[1,248],xe=[1,246],_e=[1,250],Be=[1,244],ve=[1,245],Ve=[1,247],we=[1,249],Ie=[1,251],ot=[1,269],a1=[8,9,11,106],De=[8,9,10,11,60,84,105,106,109,110,111,112],Dt={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,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$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",44:"AMP",46:"STYLE_SEPARATOR",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",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"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],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,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],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:e(function(b,m,F,l,M,i,Ue){var a=i.length-1;switch(M){case 2:this.$=[];break;case 3:if(!Array.isArray(i[a])||i[a].length>0)i[a-1].push(i[a]);this.$=i[a-1];break;case 4:case 183:this.$=i[a];break;case 11:l.setDirection("TB"),this.$="TB";break;case 12:l.setDirection(i[a-1]),this.$=i[a-1];break;case 27:this.$=i[a-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=l.addSubGraph(i[a-6],i[a-1],i[a-4]);break;case 34:this.$=l.addSubGraph(i[a-3],i[a-1],i[a-3]);break;case 35:this.$=l.addSubGraph(void 0,i[a-1],void 0);break;case 37:this.$=i[a].trim(),l.setAccTitle(this.$);break;case 38:case 39:this.$=i[a].trim(),l.setAccDescription(this.$);break;case 43:this.$=i[a-1]+i[a];break;case 44:this.$=i[a];break;case 45:l.addVertex(i[a-1][i[a-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,i[a]),l.addLink(i[a-3].stmt,i[a-1],i[a-2]),this.$={stmt:i[a-1],nodes:i[a-1].concat(i[a-3].nodes)};break;case 46:l.addLink(i[a-2].stmt,i[a],i[a-1]),this.$={stmt:i[a],nodes:i[a].concat(i[a-2].nodes)};break;case 47:l.addLink(i[a-3].stmt,i[a-1],i[a-2]),this.$={stmt:i[a-1],nodes:i[a-1].concat(i[a-3].nodes)};break;case 48:this.$={stmt:i[a-1],nodes:i[a-1]};break;case 49:l.addVertex(i[a-1][i[a-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,i[a]),this.$={stmt:i[a-1],nodes:i[a-1],shapeData:i[a]};break;case 50:this.$={stmt:i[a],nodes:i[a]};break;case 51:this.$=[i[a]];break;case 52:l.addVertex(i[a-5][i[a-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,i[a-4]),this.$=i[a-5].concat(i[a]);break;case 53:this.$=i[a-4].concat(i[a]);break;case 54:this.$=i[a];break;case 55:this.$=i[a-2],l.setClass(i[a-2],i[a]);break;case 56:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"square");break;case 57:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"doublecircle");break;case 58:this.$=i[a-5],l.addVertex(i[a-5],i[a-2],"circle");break;case 59:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"ellipse");break;case 60:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"stadium");break;case 61:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"subroutine");break;case 62:this.$=i[a-7],l.addVertex(i[a-7],i[a-1],"rect",void 0,void 0,void 0,Object.fromEntries([[i[a-5],i[a-3]]]));break;case 63:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"cylinder");break;case 64:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"round");break;case 65:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"diamond");break;case 66:this.$=i[a-5],l.addVertex(i[a-5],i[a-2],"hexagon");break;case 67:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"odd");break;case 68:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"trapezoid");break;case 69:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"inv_trapezoid");break;case 70:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"lean_right");break;case 71:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"lean_left");break;case 72:this.$=i[a],l.addVertex(i[a]);break;case 73:i[a-1].text=i[a],this.$=i[a-1];break;case 74:case 75:i[a-2].text=i[a-1],this.$=i[a-2];break;case 76:this.$=i[a];break;case 77:var X=l.destructLink(i[a],i[a-2]);this.$={type:X.type,stroke:X.stroke,length:X.length,text:i[a-1]};break;case 78:var X=l.destructLink(i[a],i[a-2]);this.$={type:X.type,stroke:X.stroke,length:X.length,text:i[a-1],id:i[a-3]};break;case 79:this.$={text:i[a],type:"text"};break;case 80:this.$={text:i[a-1].text+""+i[a],type:i[a-1].type};break;case 81:this.$={text:i[a],type:"string"};break;case 82:this.$={text:i[a],type:"markdown"};break;case 83:var X=l.destructLink(i[a]);this.$={type:X.type,stroke:X.stroke,length:X.length};break;case 84:var X=l.destructLink(i[a]);this.$={type:X.type,stroke:X.stroke,length:X.length,id:i[a-1]};break;case 85:this.$=i[a-1];break;case 86:this.$={text:i[a],type:"text"};break;case 87:this.$={text:i[a-1].text+""+i[a],type:i[a-1].type};break;case 88:this.$={text:i[a],type:"string"};break;case 89:case 104:this.$={text:i[a],type:"markdown"};break;case 101:this.$={text:i[a],type:"text"};break;case 102:this.$={text:i[a-1].text+""+i[a],type:i[a-1].type};break;case 103:this.$={text:i[a],type:"text"};break;case 105:this.$=i[a-4],l.addClass(i[a-2],i[a]);break;case 106:this.$=i[a-4],l.setClass(i[a-2],i[a]);break;case 107:case 115:this.$=i[a-1],l.setClickEvent(i[a-1],i[a]);break;case 108:case 116:this.$=i[a-3],l.setClickEvent(i[a-3],i[a-2]),l.setTooltip(i[a-3],i[a]);break;case 109:this.$=i[a-2],l.setClickEvent(i[a-2],i[a-1],i[a]);break;case 110:this.$=i[a-4],l.setClickEvent(i[a-4],i[a-3],i[a-2]),l.setTooltip(i[a-4],i[a]);break;case 111:this.$=i[a-2],l.setLink(i[a-2],i[a]);break;case 112:this.$=i[a-4],l.setLink(i[a-4],i[a-2]),l.setTooltip(i[a-4],i[a]);break;case 113:this.$=i[a-4],l.setLink(i[a-4],i[a-2],i[a]);break;case 114:this.$=i[a-6],l.setLink(i[a-6],i[a-4],i[a]),l.setTooltip(i[a-6],i[a-2]);break;case 117:this.$=i[a-1],l.setLink(i[a-1],i[a]);break;case 118:this.$=i[a-3],l.setLink(i[a-3],i[a-2]),l.setTooltip(i[a-3],i[a]);break;case 119:this.$=i[a-3],l.setLink(i[a-3],i[a-2],i[a]);break;case 120:this.$=i[a-5],l.setLink(i[a-5],i[a-4],i[a]),l.setTooltip(i[a-5],i[a-2]);break;case 121:this.$=i[a-4],l.addVertex(i[a-2],void 0,void 0,i[a]);break;case 122:this.$=i[a-4],l.updateLink([i[a-2]],i[a]);break;case 123:this.$=i[a-4],l.updateLink(i[a-2],i[a]);break;case 124:this.$=i[a-8],l.updateLinkInterpolate([i[a-6]],i[a-2]),l.updateLink([i[a-6]],i[a]);break;case 125:this.$=i[a-8],l.updateLinkInterpolate(i[a-6],i[a-2]),l.updateLink(i[a-6],i[a]);break;case 126:this.$=i[a-6],l.updateLinkInterpolate([i[a-4]],i[a]);break;case 127:this.$=i[a-6],l.updateLinkInterpolate(i[a-4],i[a]);break;case 128:case 130:this.$=[i[a]];break;case 129:case 131:i[a-2].push(i[a]),this.$=i[a-2];break;case 133:this.$=i[a-1]+i[a];break;case 181:this.$=i[a];break;case 182:this.$=i[a-1]+""+i[a];break;case 184:this.$=i[a-1]+""+i[a];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:n,10:u,12:o},{1:[3]},t(c,g,{5:6}),{4:7,9:n,10:u,12:o},{4:8,9:n,10:u,12:o},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:d,9:D,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,33:24,34:W,36:x,38:_,42:28,43:39,44:G,45:40,47:41,60:j,84:Ne,85:h,86:k,87:de,88:be,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},t(c,[2,9]),t(c,[2,10]),t(c,[2,11]),{8:[1,55],9:[1,56],10:Ge,15:54,18:57},t(P,[2,3]),t(P,[2,4]),t(P,[2,5]),t(P,[2,6]),t(P,[2,7]),t(P,[2,8]),{8:Te,9:Ee,11:Se,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:Te,9:Ee,11:Se,21:68},{8:Te,9:Ee,11:Se,21:69},{8:Te,9:Ee,11:Se,21:70},{8:Te,9:Ee,11:Se,21:71},{8:Te,9:Ee,11:Se,21:72},{8:Te,9:Ee,10:[1,73],11:Se,21:74},t(P,[2,36]),{35:[1,75]},{37:[1,76]},t(P,[2,39]),t(Ke,[2,50],{18:77,39:78,10:Ge,40:_t}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:He,44:qe,60:Xe,80:[1,87],89:Qe,95:[1,84],97:[1,85],101:86,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at,120:88},t(P,[2,185]),t(P,[2,186]),t(P,[2,187]),t(P,[2,188]),t(P,[2,189]),t(Me,[2,51]),t(Me,[2,54],{46:[1,100]}),t(ne,[2,72],{113:113,29:[1,101],44:G,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:j,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),t(ke,[2,181]),t(ke,[2,142]),t(ke,[2,143]),t(ke,[2,144]),t(ke,[2,145]),t(ke,[2,146]),t(ke,[2,147]),t(ke,[2,148]),t(ke,[2,149]),t(ke,[2,150]),t(ke,[2,151]),t(ke,[2,152]),t(c,[2,12]),t(c,[2,18]),t(c,[2,19]),{9:[1,114]},t(Bt,[2,26],{18:115,10:Ge}),t(P,[2,27]),{42:116,43:39,44:G,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},t(P,[2,40]),t(P,[2,41]),t(P,[2,42]),t(nt,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:vt,81:Lt,116:bt,119:kt},{75:[1,126],77:[1,127]},t(Vt,[2,83]),t(P,[2,28]),t(P,[2,29]),t(P,[2,30]),t(P,[2,31]),t(P,[2,32]),{10:wt,12:It,14:Rt,27:Nt,28:128,32:Gt,44:Ot,60:Ut,75:Wt,80:[1,130],81:[1,131],83:141,84:zt,85:jt,86:Kt,87:Yt,88:Ht,89:qt,90:Xt,91:129,105:Qt,109:Jt,111:Zt,114:$t,115:e1,116:t1},t(Ct,g,{5:154}),t(P,[2,37]),t(P,[2,38]),t(Ke,[2,48],{44:s1}),t(Ke,[2,49],{18:156,10:Ge,40:i1}),t(Me,[2,44]),{44:G,47:158,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{102:[1,159],103:160,105:[1,161]},{44:G,47:162,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{44:G,47:163,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},t(z,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},t(z,[2,115],{120:168,10:[1,167],14:He,44:qe,60:Xe,89:Qe,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at}),t(z,[2,117],{10:[1,169]}),t(Ae,[2,183]),t(Ae,[2,170]),t(Ae,[2,171]),t(Ae,[2,172]),t(Ae,[2,173]),t(Ae,[2,174]),t(Ae,[2,175]),t(Ae,[2,176]),t(Ae,[2,177]),t(Ae,[2,178]),t(Ae,[2,179]),t(Ae,[2,180]),{44:G,47:170,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{30:171,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:179,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:181,50:[1,180],67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:182,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:183,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:184,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{109:[1,185]},{30:186,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:187,65:[1,188],67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:189,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:190,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{30:191,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},t(ke,[2,182]),t(c,[2,20]),t(Bt,[2,25]),t(Ke,[2,46],{39:192,18:193,10:Ge,40:_t}),t(nt,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{77:[1,197],79:198,116:bt,119:kt},t(ut,[2,79]),t(ut,[2,81]),t(ut,[2,82]),t(ut,[2,168]),t(ut,[2,169]),{76:199,79:121,80:vt,81:Lt,116:bt,119:kt},t(Vt,[2,84]),{8:Te,9:Ee,10:wt,11:Se,12:It,14:Rt,21:201,27:Nt,29:[1,200],32:Gt,44:Ot,60:Ut,75:Wt,83:141,84:zt,85:jt,86:Kt,87:Yt,88:Ht,89:qt,90:Xt,91:202,105:Qt,109:Jt,111:Zt,114:$t,115:e1,116:t1},t(O,[2,101]),t(O,[2,103]),t(O,[2,104]),t(O,[2,157]),t(O,[2,158]),t(O,[2,159]),t(O,[2,160]),t(O,[2,161]),t(O,[2,162]),t(O,[2,163]),t(O,[2,164]),t(O,[2,165]),t(O,[2,166]),t(O,[2,167]),t(O,[2,90]),t(O,[2,91]),t(O,[2,92]),t(O,[2,93]),t(O,[2,94]),t(O,[2,95]),t(O,[2,96]),t(O,[2,97]),t(O,[2,98]),t(O,[2,99]),t(O,[2,100]),{6:11,7:12,8:d,9:D,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,203],33:24,34:W,36:x,38:_,42:28,43:39,44:G,45:40,47:41,60:j,84:Ne,85:h,86:k,87:de,88:be,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},{10:Ge,18:204},{44:[1,205]},t(Me,[2,43]),{10:[1,206],44:G,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{10:[1,207]},{10:[1,208],106:[1,209]},t(r1,[2,128]),{10:[1,210],44:G,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{10:[1,211],44:G,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{80:[1,212]},t(z,[2,109],{10:[1,213]}),t(z,[2,111],{10:[1,214]}),{80:[1,215]},t(Ae,[2,184]),{80:[1,216],98:[1,217]},t(Me,[2,55],{113:113,44:G,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),{31:[1,218],67:v,82:219,116:V,117:w,118:R},t(Pe,[2,86]),t(Pe,[2,88]),t(Pe,[2,89]),t(Pe,[2,153]),t(Pe,[2,154]),t(Pe,[2,155]),t(Pe,[2,156]),{49:[1,220],67:v,82:219,116:V,117:w,118:R},{30:221,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{51:[1,222],67:v,82:219,116:V,117:w,118:R},{53:[1,223],67:v,82:219,116:V,117:w,118:R},{55:[1,224],67:v,82:219,116:V,117:w,118:R},{57:[1,225],67:v,82:219,116:V,117:w,118:R},{60:[1,226]},{64:[1,227],67:v,82:219,116:V,117:w,118:R},{66:[1,228],67:v,82:219,116:V,117:w,118:R},{30:229,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},{31:[1,230],67:v,82:219,116:V,117:w,118:R},{67:v,69:[1,231],71:[1,232],82:219,116:V,117:w,118:R},{67:v,69:[1,234],71:[1,233],82:219,116:V,117:w,118:R},t(Ke,[2,45],{18:156,10:Ge,40:i1}),t(Ke,[2,47],{44:s1}),t(nt,[2,75]),t(nt,[2,74]),{62:[1,235],67:v,82:219,116:V,117:w,118:R},t(nt,[2,77]),t(ut,[2,80]),{77:[1,236],79:198,116:bt,119:kt},{30:237,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},t(Ct,g,{5:238}),t(O,[2,102]),t(P,[2,35]),{43:239,44:G,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{10:Ge,18:240},{10:ye,60:xe,84:_e,92:241,105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},{10:ye,60:xe,84:_e,92:252,104:[1,253],105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},{10:ye,60:xe,84:_e,92:254,104:[1,255],105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},{105:[1,256]},{10:ye,60:xe,84:_e,92:257,105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},{44:G,47:258,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},t(z,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},t(z,[2,116]),t(z,[2,118],{10:[1,262]}),t(z,[2,119]),t(ne,[2,56]),t(Pe,[2,87]),t(ne,[2,57]),{51:[1,263],67:v,82:219,116:V,117:w,118:R},t(ne,[2,64]),t(ne,[2,59]),t(ne,[2,60]),t(ne,[2,61]),{109:[1,264]},t(ne,[2,63]),t(ne,[2,65]),{66:[1,265],67:v,82:219,116:V,117:w,118:R},t(ne,[2,67]),t(ne,[2,68]),t(ne,[2,70]),t(ne,[2,69]),t(ne,[2,71]),t([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),t(nt,[2,78]),{31:[1,266],67:v,82:219,116:V,117:w,118:R},{6:11,7:12,8:d,9:D,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,267],33:24,34:W,36:x,38:_,42:28,43:39,44:G,45:40,47:41,60:j,84:Ne,85:h,86:k,87:de,88:be,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},t(Me,[2,53]),{43:268,44:G,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},t(z,[2,121],{106:ot}),t(a1,[2,130],{108:270,10:ye,60:xe,84:_e,105:Be,109:ve,110:Ve,111:we,112:Ie}),t(De,[2,132]),t(De,[2,134]),t(De,[2,135]),t(De,[2,136]),t(De,[2,137]),t(De,[2,138]),t(De,[2,139]),t(De,[2,140]),t(De,[2,141]),t(z,[2,122],{106:ot}),{10:[1,271]},t(z,[2,123],{106:ot}),{10:[1,272]},t(r1,[2,129]),t(z,[2,105],{106:ot}),t(z,[2,106],{113:113,44:G,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),t(z,[2,110]),t(z,[2,112],{10:[1,273]}),t(z,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:Te,9:Ee,11:Se,21:278},t(P,[2,34]),t(Me,[2,52]),{10:ye,60:xe,84:_e,105:Be,107:279,108:243,109:ve,110:Ve,111:we,112:Ie},t(De,[2,133]),{14:He,44:qe,60:Xe,89:Qe,101:280,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at,120:88},{14:He,44:qe,60:Xe,89:Qe,101:281,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at,120:88},{98:[1,282]},t(z,[2,120]),t(ne,[2,58]),{30:283,67:v,80:ue,81:ce,82:172,116:V,117:w,118:R},t(ne,[2,66]),t(Ct,g,{5:284}),t(a1,[2,131],{108:270,10:ye,60:xe,84:_e,105:Be,109:ve,110:Ve,111:we,112:Ie}),t(z,[2,126],{120:168,10:[1,285],14:He,44:qe,60:Xe,89:Qe,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at}),t(z,[2,127],{120:168,10:[1,286],14:He,44:qe,60:Xe,89:Qe,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at}),t(z,[2,114]),{31:[1,287],67:v,82:219,116:V,117:w,118:R},{6:11,7:12,8:d,9:D,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,288],33:24,34:W,36:x,38:_,42:28,43:39,44:G,45:40,47:41,60:j,84:Ne,85:h,86:k,87:de,88:be,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},{10:ye,60:xe,84:_e,92:289,105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},{10:ye,60:xe,84:_e,92:290,105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},t(ne,[2,62]),t(P,[2,33]),t(z,[2,124],{106:ot}),t(z,[2,125],{106:ot})],defaultActions:{},parseError:e(function(b,m){if(m.recoverable)this.trace(b);else{var F=Error(b);throw F.hash=m,F}},"parseError"),parse:e(function(b){var m=this,F=[0],l=[],M=[null],i=[],Ue=this.table,a="",X=0,n1=0,u1=0,f1=2,o1=1,b1=i.slice.call(arguments,1),re=Object.create(this.lexer),We={yy:{}};for(var Tt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Tt))We.yy[Tt]=this.yy[Tt];if(re.setInput(b,We.yy),We.yy.lexer=re,We.yy.parser=this,typeof re.yylloc>"u")re.yylloc={};var Et=re.yylloc;i.push(Et);var k1=re.options&&re.options.ranges;if(typeof We.yy.parseError==="function")this.parseError=We.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function g1(Ce){F.length=F.length-2*Ce,M.length=M.length-Ce,i.length=i.length-Ce}e(g1,"popStack");function l1(){var Ce=l.pop()||re.lex()||o1;if(typeof Ce!=="number"){if(Ce instanceof Array)l=Ce,Ce=l.pop();Ce=m.symbols_[Ce]||Ce}return Ce}e(l1,"lex");var pe,St,ze,me,F1,yt,lt={},At,Re,c1,mt;while(!0){if(ze=F[F.length-1],this.defaultActions[ze])me=this.defaultActions[ze];else{if(pe===null||typeof pe>"u")pe=l1();me=Ue[ze]&&Ue[ze][pe]}if(typeof me>"u"||!me.length||!me[0]){var xt="";mt=[];for(At in Ue[ze])if(this.terminals_[At]&&At>f1)mt.push("'"+this.terminals_[At]+"'");if(re.showPosition)xt="Parse error on line "+(X+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,n,u){let o=this.isLinkData(u)?u.id.replace("@",""):void 0;r.info("addLink",t,n,o);for(let c of t)for(let g of n){let d=c===t[t.length-1],D=g===n[0];if(d&&D)this.addSingleLink(c,g,u,o);else this.addSingleLink(c,g,u,void 0)}}updateLinkInterpolate(t,n){t.forEach((u)=>{if(u==="default")this.edges.defaultInterpolate=n;else this.edges[u].interpolate=n})}updateLink(t,n){t.forEach((u)=>{if(typeof u==="number"&&u>=this.edges.length)throw Error(`The index ${u} 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(u==="default")this.edges.defaultStyle=n;else if(this.edges[u].style=n,(this.edges[u]?.style?.length??0)>0&&!this.edges[u]?.style?.some((o)=>o?.startsWith("fill")))this.edges[u]?.style?.push("fill:none")})}addClass(t,n){let u=n.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach((o)=>{let c=this.classes.get(o);if(c===void 0)c={id:o,styles:[],textStyles:[]},this.classes.set(o,c);if(u!==void 0&&u!==null)u.forEach((g)=>{if(/color/.exec(g)){let d=g.replace("fill","bgFill");c.textStyles.push(d)}c.styles.push(g)})})}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,n){for(let u of t.split(",")){let o=this.vertices.get(u);if(o)o.classes.push(n);let c=this.edges.find((d)=>d.id===u);if(c)c.classes.push(n);let g=this.subGraphLookup.get(u);if(g)g.classes.push(n)}}setTooltip(t,n){if(n===void 0)return;n=this.sanitizeText(n);for(let u of t.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(u):u,n)}setClickFun(t,n,u){if(s().securityLevel!=="loose")return;if(n===void 0)return;let o=[];if(typeof u==="string"){o=u.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let g=0;g<o.length;g++){let d=o[g].trim();if(d.startsWith('"')&&d.endsWith('"'))d=d.substr(1,d.length-2);o[g]=d}}if(o.length===0)o.push(t);let c=this.vertices.get(t);if(c)c.haveCallback=!0,this.funs.push(()=>{let g=this.lookUpDomId(t),d=document.querySelector(`[id="${g}"]`);if(d!==null)d.addEventListener("click",()=>{N.runFunc(n,...o)},!1)})}setLink(t,n,u){t.split(",").forEach((o)=>{let c=this.vertices.get(o);if(c!==void 0)c.link=N.formatUrl(n,this.config),c.linkTarget=u}),this.setClass(t,"clickable")}getTooltip(t){return this.tooltips.get(t)}setClickEvent(t,n,u){t.split(",").forEach((o)=>{this.setClickFun(o,n,u)}),this.setClass(t,"clickable")}bindFunctions(t){this.funs.forEach((n)=>{n(t)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(t){let n=Pt();p(t).select("svg").selectAll("g.node").on("mouseover",(c)=>{let g=p(c.currentTarget),d=g.attr("title");if(d===null)return;let D=c.currentTarget?.getBoundingClientRect();n.transition().duration(200).style("opacity",".9"),n.text(g.attr("title")).style("left",window.scrollX+D.left+(D.right-D.left)/2+"px").style("top",window.scrollY+D.bottom+"px"),n.html(Le.sanitize(d)),g.classed("hover",!0)}).on("mouseout",(c)=>{n.transition().duration(500).style("opacity",0),p(c.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.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=s(),C()}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,n,u){let o=t.text.trim(),c=u.text;if(t===u&&/\s/.exec(u.text))o=void 0;let d=e((x)=>{let _={boolean:{},number:{},string:{}},G=[],j;return{nodeList:x.filter(function(h){let k=typeof h;if(h.stmt&&h.stmt==="dir")return j=h.value,!1;if(h.trim()==="")return!1;if(k in _)return _[k].hasOwnProperty(h)?!1:_[k][h]=!0;else return G.includes(h)?!1:G.push(h)}),dir:j}},"uniq")(n.flat()),{nodeList:D,dir:f}=d,U=s().flowchart??{};if(f=f??(U.inheritDir?this.getDirection()??s().direction??void 0:void 0),this.version==="gen-1")for(let x=0;x<D.length;x++)D[x]=this.lookUpDomId(D[x]);o=o??"subGraph"+this.subCount,c=c||"",c=this.sanitizeText(c),this.subCount=this.subCount+1;let B={id:o,nodes:D,title:c.trim(),classes:[],dir:f,labelType:this.sanitizeNodeLabelType(u?.type)};r.info("Adding",B.id,B.nodes,B.dir),B.nodes=this.makeUniq(B,this.subGraphs).nodes.filter((x)=>x!==o);let W=this.subGraphs.find((x)=>x.id===o);if(W)W.nodes.push(...B.nodes);else this.subGraphs.push(B);return this.subGraphLookup.set(o,W??B),o}getPosForId(t){for(let[n,u]of this.subGraphs.entries())if(u.id===t)return n;return-1}indexNodes2(t,n){let u=this.subGraphs[n].nodes;if(this.secCount=this.secCount+1,this.secCount>2000)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=n,this.subGraphs[n].id===t)return{result:!0,count:0};let o=0,c=1;while(o<u.length){let g=this.getPosForId(u[o]);if(g>=0){let d=this.indexNodes2(t,g);if(d.result)return{result:!0,count:c+d.count};else c=c+d.count}o=o+1}return{result:!1,count:c}}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 n=t.trim(),u="arrow_open";switch(n[0]){case"<":u="arrow_point",n=n.slice(1);break;case"x":u="arrow_cross",n=n.slice(1);break;case"o":u="arrow_circle",n=n.slice(1);break}let o="normal";if(n.includes("="))o="thick";if(n.includes("."))o="dotted";return{type:u,stroke:o}}countChar(t,n){let u=n.length,o=0;for(let c=0;c<u;++c)if(n[c]===t)++o;return o}destructEndLink(t){let n=t.trim(),u=n.slice(0,-1),o="arrow_open";switch(n.slice(-1)){case"x":if(o="arrow_cross",n.startsWith("x"))o="double_"+o,u=u.slice(1);break;case">":if(o="arrow_point",n.startsWith("<"))o="double_"+o,u=u.slice(1);break;case"o":if(o="arrow_circle",n.startsWith("o"))o="double_"+o,u=u.slice(1);break}let c="normal",g=u.length-1;if(u.startsWith("="))c="thick";if(u.startsWith("~"))c="invisible";let d=this.countChar(".",u);if(d)c="dotted",g=d;return{type:o,stroke:c,length:g}}destructLink(t,n){let u=this.destructEndLink(t),o;if(n){if(o=this.destructStartLink(n),o.stroke!==u.stroke)return{type:"INVALID",stroke:"INVALID"};if(o.type==="arrow_open")o.type=u.type;else{if(o.type!==u.type)return{type:"INVALID",stroke:"INVALID"};o.type="double_"+o.type}if(o.type==="double_arrow")o.type="double_arrow_point";return o.length=u.length,o}return u}exists(t,n){for(let u of t)if(u.nodes.includes(n))return!0;return!1}makeUniq(t,n){let u=[];return t.nodes.forEach((o,c)=>{if(!this.exists(n,o))u.push(t.nodes[c])}),{nodes:u}}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,n){return t.find((u)=>u.id===n)}destructEdgeType(t){let n="none",u="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":u=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":n=t.replace("double_",""),u=n;break}return{arrowTypeStart:n,arrowTypeEnd:u}}addNodeFromVertex(t,n,u,o,c,g){let d=u.get(t.id),D=o.get(t.id)??!1,f=this.findNode(n,t.id);if(f)f.cssStyles=t.styles,f.cssCompiledStyles=this.getCompiledStyles(t.classes),f.cssClasses=t.classes.join(" ");else{let U={id:t.id,label:t.text,labelType:t.labelType,labelStyle:"",parentId:d,padding:c.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:g,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};if(D)n.push({...U,isGroup:!0,shape:"rect"});else n.push({...U,isGroup:!1,shape:this.getTypeFromVertex(t),minWidth:c.flowchart?.minNodeWidth})}}getCompiledStyles(t){let n=[];for(let u of t){let o=this.classes.get(u);if(o?.styles)n=[...n,...o.styles??[]].map((c)=>c.trim());if(o?.textStyles)n=[...n,...o.textStyles??[]].map((c)=>c.trim())}return n}getData(){let t=s(),n=[],u=[],o=this.getSubGraphs(),c=new Map,g=new Map,d=new Map;for(let h of o)for(let k of h.nodes)if(this.subGraphLookup.has(k))d.set(k,h.id);let D=new Map,f=new Map;for(let h of o){let k=d.get(h.id);if(k!==void 0)f.set(k,[...f.get(k)??[],h.id])}let U=0,B=e((h)=>{D.set(h,U++);for(let k of f.get(h)??[])B(k)},"walk");for(let h of o)if(!d.has(h.id))B(h.id);let W=e((h)=>this.subGraphLookup.get(h)?.metadata?.view==="collapsed","isCollapsed"),x=e((h)=>{let k,de=new Set,fe=h;while(fe!==void 0&&!de.has(fe)){if(de.add(fe),W(fe))k=fe;fe=d.get(fe)}return k},"outermostCollapsed"),_=new Set,G=new Map;for(let h of o){let k=x(h.id);if(k===void 0)continue;if(h.id!==k)_.add(h.id),G.set(h.id,k);for(let de of h.nodes){if(de===k)continue;_.add(de),G.set(de,k)}}for(let h=o.length-1;h>=0;h--){let k=o[h];if(_.has(k.id))continue;if(k.nodes.length>0)g.set(k.id,!0);for(let de of k.nodes)c.set(de,k.id)}for(let h=o.length-1;h>=0;h--){let k=o[h];if(_.has(k.id))continue;if(k.metadata?.view==="collapsed")n.push({id:k.id,label:k.title,labelStyle:"",labelType:k.labelType,parentId:c.get(k.id),padding:8,cssCompiledStyles:this.getCompiledStyles(k.classes),cssClasses:k.classes.join(" "),shape:"collapsedGroup",dir:k.dir,isGroup:!1,look:t.look,colorIndex:D.get(k.id)});else n.push({id:k.id,label:k.title,labelStyle:"",labelType:k.labelType,parentId:c.get(k.id),padding:8,cssCompiledStyles:this.getCompiledStyles(k.classes),cssClasses:k.classes.join(" "),shape:"rect",dir:k.dir,isGroup:!0,look:t.look,colorIndex:D.get(k.id),metadata:k.metadata})}this.getVertices().forEach((h)=>{if(_.has(h.id))return;this.addNodeFromVertex(h,n,c,g,t,t.look||"classic")});let Ne=this.getEdges();return Ne.forEach((h,k)=>{let{arrowTypeStart:de,arrowTypeEnd:fe}=this.destructEdgeType(h.type),K=[...Ne.defaultStyle??[]],Y=G.get(h.start)??h.start,H=G.get(h.end)??h.end;if(Y===H&&(G.has(h.start)||G.has(h.end)))return;if(h.style)K.push(...h.style);let q={id:Fe(Y,H,{counter:k,prefix:"L"},h.id),isUserDefinedId:h.isUserDefinedId,start:Y,end:H,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":de,arrowTypeEnd:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":fe,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(h.classes),labelStyle:K,style:K,pattern:h.stroke,look:t.look,animate:h.animate,animation:h.animation,curve:h.interpolate||this.edges.defaultInterpolate||t.flowchart?.curve};u.push(q)}),{nodes:n,edges:u,other:{},config:t}}defaultConfig(){return Tn.flowchart}},C1=e(function(t,n){return n.db.getClasses()},"getClasses"),D1=e(async function(t,n,u,o){r.info("REF0:"),r.info("Drawing state diagram (v2)",n);let{securityLevel:c,flowchart:g,layout:d}=s();o.db.setDiagramId(n),r.debug("Before getData: ");let D=o.db.getData();r.debug("Data: ",D);let f=he(n,c),U=o.db.getDirection();D.type=o.type,D.layoutAlgorithm=ye(d),D.direction=U,D.nodeSpacing=g?.nodeSpacing||50,D.rankSpacing=g?.rankSpacing||50,D.markers=["point","circle","cross"],D.diagramId=n,r.debug("REF1:",D),await ge(D,f);let B=D.config.flowchart?.diagramPadding??8;N.insertTitle(f,"flowchartTitleText",g?.titleTopMargin||0,o.db.getDiagramTitle()),se(f,B,"flowchart",g?.useMaxWidth||!1)},"draw"),T1={getClasses:C1,draw:D1},Ft=function(){var t=e(function(Oe,b,m,F){for(m=m||{},F=Oe.length;F--;m[Oe[F]]=b);return m},"o"),n=[1,4],u=[1,3],o=[1,5],c=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],g=[2,2],d=[1,13],D=[1,14],f=[1,15],U=[1,16],B=[1,23],W=[1,25],x=[1,26],_=[1,27],G=[1,50],j=[1,49],Ne=[1,29],h=[1,30],k=[1,31],de=[1,32],fe=[1,33],K=[1,45],Y=[1,47],H=[1,43],q=[1,48],Q=[1,44],J=[1,51],Z=[1,46],ee=[1,52],te=[1,53],ct=[1,34],ht=[1,35],dt=[1,36],pt=[1,37],ft=[1,38],Ge=[1,58],P=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],De=[1,62],Te=[1,61],Ee=[1,63],Ke=[8,9,11,75,77,78],_t=[1,79],He=[1,92],qe=[1,97],Xe=[1,96],Qe=[1,93],Je=[1,89],Ze=[1,95],$e=[1,91],st=[1,98],it=[1,94],rt=[1,99],at=[1,90],Me=[8,9,10,11,40,75,77,78],ne=[8,9,10,11,40,46,75,77,78],be=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],Bt=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],nt=[44,60,89,102,105,106,109,111,114,115,116],vt=[1,122],Lt=[1,123],bt=[1,125],kt=[1,124],Vt=[44,60,62,74,89,102,105,106,109,111,114,115,116],wt=[1,134],It=[1,148],Rt=[1,149],Nt=[1,150],Gt=[1,151],Mt=[1,136],Ut=[1,138],Wt=[1,142],zt=[1,143],jt=[1,144],Kt=[1,145],Yt=[1,146],Ht=[1,147],qt=[1,152],Xt=[1,153],Qt=[1,132],Jt=[1,133],Zt=[1,140],$t=[1,135],e1=[1,139],t1=[1,137],Ct=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],s1=[1,155],i1=[1,157],z=[8,9,11],ke=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],v=[1,177],ue=[1,173],oe=[1,174],V=[1,178],w=[1,175],R=[1,176],ut=[77,116,119],O=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],r1=[10,106],Pe=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],Se=[1,248],xe=[1,246],_e=[1,250],Be=[1,244],ve=[1,245],Ve=[1,247],we=[1,249],Ie=[1,251],ot=[1,269],a1=[8,9,11,106],Ce=[8,9,10,11,60,84,105,106,109,110,111,112],Dt={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,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$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",44:"AMP",46:"STYLE_SEPARATOR",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",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"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],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,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],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:e(function(b,m,F,l,M,i,Ue){var a=i.length-1;switch(M){case 2:this.$=[];break;case 3:if(!Array.isArray(i[a])||i[a].length>0)i[a-1].push(i[a]);this.$=i[a-1];break;case 4:case 183:this.$=i[a];break;case 11:l.setDirection("TB"),this.$="TB";break;case 12:l.setDirection(i[a-1]),this.$=i[a-1];break;case 27:this.$=i[a-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=l.addSubGraph(i[a-6],i[a-1],i[a-4]);break;case 34:this.$=l.addSubGraph(i[a-3],i[a-1],i[a-3]);break;case 35:this.$=l.addSubGraph(void 0,i[a-1],void 0);break;case 37:this.$=i[a].trim(),l.setAccTitle(this.$);break;case 38:case 39:this.$=i[a].trim(),l.setAccDescription(this.$);break;case 43:this.$=i[a-1]+i[a];break;case 44:this.$=i[a];break;case 45:l.addVertex(i[a-1][i[a-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,i[a]),l.addLink(i[a-3].stmt,i[a-1],i[a-2]),this.$={stmt:i[a-1],nodes:i[a-1].concat(i[a-3].nodes)};break;case 46:l.addLink(i[a-2].stmt,i[a],i[a-1]),this.$={stmt:i[a],nodes:i[a].concat(i[a-2].nodes)};break;case 47:l.addLink(i[a-3].stmt,i[a-1],i[a-2]),this.$={stmt:i[a-1],nodes:i[a-1].concat(i[a-3].nodes)};break;case 48:this.$={stmt:i[a-1],nodes:i[a-1]};break;case 49:l.addVertex(i[a-1][i[a-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,i[a]),this.$={stmt:i[a-1],nodes:i[a-1],shapeData:i[a]};break;case 50:this.$={stmt:i[a],nodes:i[a]};break;case 51:this.$=[i[a]];break;case 52:l.addVertex(i[a-5][i[a-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,i[a-4]),this.$=i[a-5].concat(i[a]);break;case 53:this.$=i[a-4].concat(i[a]);break;case 54:this.$=i[a];break;case 55:this.$=i[a-2],l.setClass(i[a-2],i[a]);break;case 56:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"square");break;case 57:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"doublecircle");break;case 58:this.$=i[a-5],l.addVertex(i[a-5],i[a-2],"circle");break;case 59:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"ellipse");break;case 60:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"stadium");break;case 61:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"subroutine");break;case 62:this.$=i[a-7],l.addVertex(i[a-7],i[a-1],"rect",void 0,void 0,void 0,Object.fromEntries([[i[a-5],i[a-3]]]));break;case 63:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"cylinder");break;case 64:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"round");break;case 65:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"diamond");break;case 66:this.$=i[a-5],l.addVertex(i[a-5],i[a-2],"hexagon");break;case 67:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"odd");break;case 68:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"trapezoid");break;case 69:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"inv_trapezoid");break;case 70:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"lean_right");break;case 71:this.$=i[a-3],l.addVertex(i[a-3],i[a-1],"lean_left");break;case 72:this.$=i[a],l.addVertex(i[a]);break;case 73:i[a-1].text=i[a],this.$=i[a-1];break;case 74:case 75:i[a-2].text=i[a-1],this.$=i[a-2];break;case 76:this.$=i[a];break;case 77:var X=l.destructLink(i[a],i[a-2]);this.$={type:X.type,stroke:X.stroke,length:X.length,text:i[a-1]};break;case 78:var X=l.destructLink(i[a],i[a-2]);this.$={type:X.type,stroke:X.stroke,length:X.length,text:i[a-1],id:i[a-3]};break;case 79:this.$={text:i[a],type:"text"};break;case 80:this.$={text:i[a-1].text+""+i[a],type:i[a-1].type};break;case 81:this.$={text:i[a],type:"string"};break;case 82:this.$={text:i[a],type:"markdown"};break;case 83:var X=l.destructLink(i[a]);this.$={type:X.type,stroke:X.stroke,length:X.length};break;case 84:var X=l.destructLink(i[a]);this.$={type:X.type,stroke:X.stroke,length:X.length,id:i[a-1]};break;case 85:this.$=i[a-1];break;case 86:this.$={text:i[a],type:"text"};break;case 87:this.$={text:i[a-1].text+""+i[a],type:i[a-1].type};break;case 88:this.$={text:i[a],type:"string"};break;case 89:case 104:this.$={text:i[a],type:"markdown"};break;case 101:this.$={text:i[a],type:"text"};break;case 102:this.$={text:i[a-1].text+""+i[a],type:i[a-1].type};break;case 103:this.$={text:i[a],type:"text"};break;case 105:this.$=i[a-4],l.addClass(i[a-2],i[a]);break;case 106:this.$=i[a-4],l.setClass(i[a-2],i[a]);break;case 107:case 115:this.$=i[a-1],l.setClickEvent(i[a-1],i[a]);break;case 108:case 116:this.$=i[a-3],l.setClickEvent(i[a-3],i[a-2]),l.setTooltip(i[a-3],i[a]);break;case 109:this.$=i[a-2],l.setClickEvent(i[a-2],i[a-1],i[a]);break;case 110:this.$=i[a-4],l.setClickEvent(i[a-4],i[a-3],i[a-2]),l.setTooltip(i[a-4],i[a]);break;case 111:this.$=i[a-2],l.setLink(i[a-2],i[a]);break;case 112:this.$=i[a-4],l.setLink(i[a-4],i[a-2]),l.setTooltip(i[a-4],i[a]);break;case 113:this.$=i[a-4],l.setLink(i[a-4],i[a-2],i[a]);break;case 114:this.$=i[a-6],l.setLink(i[a-6],i[a-4],i[a]),l.setTooltip(i[a-6],i[a-2]);break;case 117:this.$=i[a-1],l.setLink(i[a-1],i[a]);break;case 118:this.$=i[a-3],l.setLink(i[a-3],i[a-2]),l.setTooltip(i[a-3],i[a]);break;case 119:this.$=i[a-3],l.setLink(i[a-3],i[a-2],i[a]);break;case 120:this.$=i[a-5],l.setLink(i[a-5],i[a-4],i[a]),l.setTooltip(i[a-5],i[a-2]);break;case 121:this.$=i[a-4],l.addVertex(i[a-2],void 0,void 0,i[a]);break;case 122:this.$=i[a-4],l.updateLink([i[a-2]],i[a]);break;case 123:this.$=i[a-4],l.updateLink(i[a-2],i[a]);break;case 124:this.$=i[a-8],l.updateLinkInterpolate([i[a-6]],i[a-2]),l.updateLink([i[a-6]],i[a]);break;case 125:this.$=i[a-8],l.updateLinkInterpolate(i[a-6],i[a-2]),l.updateLink(i[a-6],i[a]);break;case 126:this.$=i[a-6],l.updateLinkInterpolate([i[a-4]],i[a]);break;case 127:this.$=i[a-6],l.updateLinkInterpolate(i[a-4],i[a]);break;case 128:case 130:this.$=[i[a]];break;case 129:case 131:i[a-2].push(i[a]),this.$=i[a-2];break;case 133:this.$=i[a-1]+i[a];break;case 181:this.$=i[a];break;case 182:this.$=i[a-1]+""+i[a];break;case 184:this.$=i[a-1]+""+i[a];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:n,10:u,12:o},{1:[3]},t(c,g,{5:6}),{4:7,9:n,10:u,12:o},{4:8,9:n,10:u,12:o},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:d,9:D,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,33:24,34:W,36:x,38:_,42:28,43:39,44:G,45:40,47:41,60:j,84:Ne,85:h,86:k,87:de,88:fe,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},t(c,[2,9]),t(c,[2,10]),t(c,[2,11]),{8:[1,55],9:[1,56],10:Ge,15:54,18:57},t(P,[2,3]),t(P,[2,4]),t(P,[2,5]),t(P,[2,6]),t(P,[2,7]),t(P,[2,8]),{8:De,9:Te,11:Ee,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:De,9:Te,11:Ee,21:68},{8:De,9:Te,11:Ee,21:69},{8:De,9:Te,11:Ee,21:70},{8:De,9:Te,11:Ee,21:71},{8:De,9:Te,11:Ee,21:72},{8:De,9:Te,10:[1,73],11:Ee,21:74},t(P,[2,36]),{35:[1,75]},{37:[1,76]},t(P,[2,39]),t(Ke,[2,50],{18:77,39:78,10:Ge,40:_t}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:He,44:qe,60:Xe,80:[1,87],89:Qe,95:[1,84],97:[1,85],101:86,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at,120:88},t(P,[2,185]),t(P,[2,186]),t(P,[2,187]),t(P,[2,188]),t(P,[2,189]),t(Me,[2,51]),t(Me,[2,54],{46:[1,100]}),t(ne,[2,72],{113:113,29:[1,101],44:G,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:j,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),t(be,[2,181]),t(be,[2,142]),t(be,[2,143]),t(be,[2,144]),t(be,[2,145]),t(be,[2,146]),t(be,[2,147]),t(be,[2,148]),t(be,[2,149]),t(be,[2,150]),t(be,[2,151]),t(be,[2,152]),t(c,[2,12]),t(c,[2,18]),t(c,[2,19]),{9:[1,114]},t(Bt,[2,26],{18:115,10:Ge}),t(P,[2,27]),{42:116,43:39,44:G,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},t(P,[2,40]),t(P,[2,41]),t(P,[2,42]),t(nt,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:vt,81:Lt,116:bt,119:kt},{75:[1,126],77:[1,127]},t(Vt,[2,83]),t(P,[2,28]),t(P,[2,29]),t(P,[2,30]),t(P,[2,31]),t(P,[2,32]),{10:wt,12:It,14:Rt,27:Nt,28:128,32:Gt,44:Mt,60:Ut,75:Wt,80:[1,130],81:[1,131],83:141,84:zt,85:jt,86:Kt,87:Yt,88:Ht,89:qt,90:Xt,91:129,105:Qt,109:Jt,111:Zt,114:$t,115:e1,116:t1},t(Ct,g,{5:154}),t(P,[2,37]),t(P,[2,38]),t(Ke,[2,48],{44:s1}),t(Ke,[2,49],{18:156,10:Ge,40:i1}),t(Me,[2,44]),{44:G,47:158,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{102:[1,159],103:160,105:[1,161]},{44:G,47:162,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{44:G,47:163,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},t(z,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},t(z,[2,115],{120:168,10:[1,167],14:He,44:qe,60:Xe,89:Qe,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at}),t(z,[2,117],{10:[1,169]}),t(ke,[2,183]),t(ke,[2,170]),t(ke,[2,171]),t(ke,[2,172]),t(ke,[2,173]),t(ke,[2,174]),t(ke,[2,175]),t(ke,[2,176]),t(ke,[2,177]),t(ke,[2,178]),t(ke,[2,179]),t(ke,[2,180]),{44:G,47:170,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{30:171,67:v,80:ue,81:oe,82:172,116:V,117:w,118:R},{30:179,67:v,80:ue,81:oe,82:172,116:V,117:w,118:R},{30:181,50:[1,180],67:v,80:ue,81:oe,82:172,116:V,117:w,118:R},{30:182,67:v,80:ue,81:oe,82:172,116:V,117:w,118:R},{30:183,67:v,80:ue,81:oe,82:172,116:V,117:w,118:R},{30:184,67:v,80:ue,81:oe,82:172,116:V,117:w,118:R},{109:[1,185]},{30:186,67:v,80:ue,81:oe,82:172,116:V,117:w,118:R},{30:187,65:[1,188],67:v,80:ue,81:oe,82:172,116:V,117:w,118:R},{30:189,67:v,80:ue,81:oe,82:172,116:V,117:w,118:R},{30:190,67:v,80:ue,81:oe,82:172,116:V,117:w,118:R},{30:191,67:v,80:ue,81:oe,82:172,116:V,117:w,118:R},t(be,[2,182]),t(c,[2,20]),t(Bt,[2,25]),t(Ke,[2,46],{39:192,18:193,10:Ge,40:_t}),t(nt,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:v,80:ue,81:oe,82:172,116:V,117:w,118:R},{77:[1,197],79:198,116:bt,119:kt},t(ut,[2,79]),t(ut,[2,81]),t(ut,[2,82]),t(ut,[2,168]),t(ut,[2,169]),{76:199,79:121,80:vt,81:Lt,116:bt,119:kt},t(Vt,[2,84]),{8:De,9:Te,10:wt,11:Ee,12:It,14:Rt,21:201,27:Nt,29:[1,200],32:Gt,44:Mt,60:Ut,75:Wt,83:141,84:zt,85:jt,86:Kt,87:Yt,88:Ht,89:qt,90:Xt,91:202,105:Qt,109:Jt,111:Zt,114:$t,115:e1,116:t1},t(O,[2,101]),t(O,[2,103]),t(O,[2,104]),t(O,[2,157]),t(O,[2,158]),t(O,[2,159]),t(O,[2,160]),t(O,[2,161]),t(O,[2,162]),t(O,[2,163]),t(O,[2,164]),t(O,[2,165]),t(O,[2,166]),t(O,[2,167]),t(O,[2,90]),t(O,[2,91]),t(O,[2,92]),t(O,[2,93]),t(O,[2,94]),t(O,[2,95]),t(O,[2,96]),t(O,[2,97]),t(O,[2,98]),t(O,[2,99]),t(O,[2,100]),{6:11,7:12,8:d,9:D,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,203],33:24,34:W,36:x,38:_,42:28,43:39,44:G,45:40,47:41,60:j,84:Ne,85:h,86:k,87:de,88:fe,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},{10:Ge,18:204},{44:[1,205]},t(Me,[2,43]),{10:[1,206],44:G,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{10:[1,207]},{10:[1,208],106:[1,209]},t(r1,[2,128]),{10:[1,210],44:G,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{10:[1,211],44:G,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{80:[1,212]},t(z,[2,109],{10:[1,213]}),t(z,[2,111],{10:[1,214]}),{80:[1,215]},t(ke,[2,184]),{80:[1,216],98:[1,217]},t(Me,[2,55],{113:113,44:G,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),{31:[1,218],67:v,82:219,116:V,117:w,118:R},t(Pe,[2,86]),t(Pe,[2,88]),t(Pe,[2,89]),t(Pe,[2,153]),t(Pe,[2,154]),t(Pe,[2,155]),t(Pe,[2,156]),{49:[1,220],67:v,82:219,116:V,117:w,118:R},{30:221,67:v,80:ue,81:oe,82:172,116:V,117:w,118:R},{51:[1,222],67:v,82:219,116:V,117:w,118:R},{53:[1,223],67:v,82:219,116:V,117:w,118:R},{55:[1,224],67:v,82:219,116:V,117:w,118:R},{57:[1,225],67:v,82:219,116:V,117:w,118:R},{60:[1,226]},{64:[1,227],67:v,82:219,116:V,117:w,118:R},{66:[1,228],67:v,82:219,116:V,117:w,118:R},{30:229,67:v,80:ue,81:oe,82:172,116:V,117:w,118:R},{31:[1,230],67:v,82:219,116:V,117:w,118:R},{67:v,69:[1,231],71:[1,232],82:219,116:V,117:w,118:R},{67:v,69:[1,234],71:[1,233],82:219,116:V,117:w,118:R},t(Ke,[2,45],{18:156,10:Ge,40:i1}),t(Ke,[2,47],{44:s1}),t(nt,[2,75]),t(nt,[2,74]),{62:[1,235],67:v,82:219,116:V,117:w,118:R},t(nt,[2,77]),t(ut,[2,80]),{77:[1,236],79:198,116:bt,119:kt},{30:237,67:v,80:ue,81:oe,82:172,116:V,117:w,118:R},t(Ct,g,{5:238}),t(O,[2,102]),t(P,[2,35]),{43:239,44:G,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{10:Ge,18:240},{10:Se,60:xe,84:_e,92:241,105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},{10:Se,60:xe,84:_e,92:252,104:[1,253],105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},{10:Se,60:xe,84:_e,92:254,104:[1,255],105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},{105:[1,256]},{10:Se,60:xe,84:_e,92:257,105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},{44:G,47:258,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},t(z,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},t(z,[2,116]),t(z,[2,118],{10:[1,262]}),t(z,[2,119]),t(ne,[2,56]),t(Pe,[2,87]),t(ne,[2,57]),{51:[1,263],67:v,82:219,116:V,117:w,118:R},t(ne,[2,64]),t(ne,[2,59]),t(ne,[2,60]),t(ne,[2,61]),{109:[1,264]},t(ne,[2,63]),t(ne,[2,65]),{66:[1,265],67:v,82:219,116:V,117:w,118:R},t(ne,[2,67]),t(ne,[2,68]),t(ne,[2,70]),t(ne,[2,69]),t(ne,[2,71]),t([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),t(nt,[2,78]),{31:[1,266],67:v,82:219,116:V,117:w,118:R},{6:11,7:12,8:d,9:D,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,267],33:24,34:W,36:x,38:_,42:28,43:39,44:G,45:40,47:41,60:j,84:Ne,85:h,86:k,87:de,88:fe,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},t(Me,[2,53]),{43:268,44:G,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},t(z,[2,121],{106:ot}),t(a1,[2,130],{108:270,10:Se,60:xe,84:_e,105:Be,109:ve,110:Ve,111:we,112:Ie}),t(Ce,[2,132]),t(Ce,[2,134]),t(Ce,[2,135]),t(Ce,[2,136]),t(Ce,[2,137]),t(Ce,[2,138]),t(Ce,[2,139]),t(Ce,[2,140]),t(Ce,[2,141]),t(z,[2,122],{106:ot}),{10:[1,271]},t(z,[2,123],{106:ot}),{10:[1,272]},t(r1,[2,129]),t(z,[2,105],{106:ot}),t(z,[2,106],{113:113,44:G,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),t(z,[2,110]),t(z,[2,112],{10:[1,273]}),t(z,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:De,9:Te,11:Ee,21:278},t(P,[2,34]),t(Me,[2,52]),{10:Se,60:xe,84:_e,105:Be,107:279,108:243,109:ve,110:Ve,111:we,112:Ie},t(Ce,[2,133]),{14:He,44:qe,60:Xe,89:Qe,101:280,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at,120:88},{14:He,44:qe,60:Xe,89:Qe,101:281,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at,120:88},{98:[1,282]},t(z,[2,120]),t(ne,[2,58]),{30:283,67:v,80:ue,81:oe,82:172,116:V,117:w,118:R},t(ne,[2,66]),t(Ct,g,{5:284}),t(a1,[2,131],{108:270,10:Se,60:xe,84:_e,105:Be,109:ve,110:Ve,111:we,112:Ie}),t(z,[2,126],{120:168,10:[1,285],14:He,44:qe,60:Xe,89:Qe,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at}),t(z,[2,127],{120:168,10:[1,286],14:He,44:qe,60:Xe,89:Qe,105:Je,106:Ze,109:$e,111:st,114:it,115:rt,116:at}),t(z,[2,114]),{31:[1,287],67:v,82:219,116:V,117:w,118:R},{6:11,7:12,8:d,9:D,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,288],33:24,34:W,36:x,38:_,42:28,43:39,44:G,45:40,47:41,60:j,84:Ne,85:h,86:k,87:de,88:fe,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},{10:Se,60:xe,84:_e,92:289,105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},{10:Se,60:xe,84:_e,92:290,105:Be,107:242,108:243,109:ve,110:Ve,111:we,112:Ie},t(ne,[2,62]),t(P,[2,33]),t(z,[2,124],{106:ot}),t(z,[2,125],{106:ot})],defaultActions:{},parseError:e(function(b,m){if(m.recoverable)this.trace(b);else{var F=Error(b);throw F.hash=m,F}},"parseError"),parse:e(function(b){var m=this,F=[0],l=[],M=[null],i=[],Ue=this.table,a="",X=0,n1=0,u1=0,f1=2,o1=1,b1=i.slice.call(arguments,1),re=Object.create(this.lexer),We={yy:{}};for(var Tt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Tt))We.yy[Tt]=this.yy[Tt];if(re.setInput(b,We.yy),We.yy.lexer=re,We.yy.parser=this,typeof re.yylloc>"u")re.yylloc={};var Et=re.yylloc;i.push(Et);var k1=re.options&&re.options.ranges;if(typeof We.yy.parseError==="function")this.parseError=We.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function g1(me){F.length=F.length-2*me,M.length=M.length-me,i.length=i.length-me}e(g1,"popStack");function l1(){var me=l.pop()||re.lex()||o1;if(typeof me!=="number"){if(me instanceof Array)l=me,me=l.pop();me=m.symbols_[me]||me}return me}e(l1,"lex");var pe,St,ze,Ae,F1,yt,lt={},At,Re,c1,mt;while(!0){if(ze=F[F.length-1],this.defaultActions[ze])Ae=this.defaultActions[ze];else{if(pe===null||typeof pe>"u")pe=l1();Ae=Ue[ze]&&Ue[ze][pe]}if(typeof Ae>"u"||!Ae.length||!Ae[0]){var xt="";mt=[];for(At in Ue[ze])if(this.terminals_[At]&&At>f1)mt.push("'"+this.terminals_[At]+"'");if(re.showPosition)xt="Parse error on line "+(X+1)+`:
10
10
  `+re.showPosition()+`
11
- Expecting `+mt.join(", ")+", got '"+(this.terminals_[pe]||pe)+"'";else xt="Parse error on line "+(X+1)+": Unexpected "+(pe==o1?"end of input":"'"+(this.terminals_[pe]||pe)+"'");this.parseError(xt,{text:re.match,token:this.terminals_[pe]||pe,line:re.yylineno,loc:Et,expected:mt})}if(me[0]instanceof Array&&me.length>1)throw Error("Parse Error: multiple actions possible at state: "+ze+", token: "+pe);switch(me[0]){case 1:if(F.push(pe),M.push(re.yytext),i.push(re.yylloc),F.push(me[1]),pe=null,!St){if(n1=re.yyleng,a=re.yytext,X=re.yylineno,Et=re.yylloc,u1>0)u1--}else pe=St,St=null;break;case 2:if(Re=this.productions_[me[1]][1],lt.$=M[M.length-Re],lt._$={first_line:i[i.length-(Re||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(Re||1)].first_column,last_column:i[i.length-1].last_column},k1)lt._$.range=[i[i.length-(Re||1)].range[0],i[i.length-1].range[1]];if(yt=this.performAction.apply(lt,[a,n1,X,We.yy,me[1],M,i].concat(b1)),typeof yt<"u")return yt;if(Re)F=F.slice(0,-1*Re*2),M=M.slice(0,-1*Re),i=i.slice(0,-1*Re);F.push(this.productions_[me[1]][0]),M.push(lt.$),i.push(lt._$),c1=Ue[F[F.length-2]][F[F.length-1]],F.push(c1);break;case 3:return!0}}return!0},"parse")},p1=function(){var Oe={EOF:1,parseError:e(function(m,F){if(this.yy.parser)this.yy.parser.parseError(m,F);else throw Error(m)},"parseError"),setInput:e(function(b,m){if(this.yy=m||this.yy||{},this._input=b,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 b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var m=b.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),b},"input"),unput:e(function(b){var m=b.length,F=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var l=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),F.length-1)this.yylineno-=F.length-1;var M=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:F?(F.length===l.length?this.yylloc.first_column:0)+l[l.length-F.length].length-F[0].length:this.yylloc.first_column-m},this.options.ranges)this.yylloc.range=[M[0],M[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).
11
+ Expecting `+mt.join(", ")+", got '"+(this.terminals_[pe]||pe)+"'";else xt="Parse error on line "+(X+1)+": Unexpected "+(pe==o1?"end of input":"'"+(this.terminals_[pe]||pe)+"'");this.parseError(xt,{text:re.match,token:this.terminals_[pe]||pe,line:re.yylineno,loc:Et,expected:mt})}if(Ae[0]instanceof Array&&Ae.length>1)throw Error("Parse Error: multiple actions possible at state: "+ze+", token: "+pe);switch(Ae[0]){case 1:if(F.push(pe),M.push(re.yytext),i.push(re.yylloc),F.push(Ae[1]),pe=null,!St){if(n1=re.yyleng,a=re.yytext,X=re.yylineno,Et=re.yylloc,u1>0)u1--}else pe=St,St=null;break;case 2:if(Re=this.productions_[Ae[1]][1],lt.$=M[M.length-Re],lt._$={first_line:i[i.length-(Re||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(Re||1)].first_column,last_column:i[i.length-1].last_column},k1)lt._$.range=[i[i.length-(Re||1)].range[0],i[i.length-1].range[1]];if(yt=this.performAction.apply(lt,[a,n1,X,We.yy,Ae[1],M,i].concat(b1)),typeof yt<"u")return yt;if(Re)F=F.slice(0,-1*Re*2),M=M.slice(0,-1*Re),i=i.slice(0,-1*Re);F.push(this.productions_[Ae[1]][0]),M.push(lt.$),i.push(lt._$),c1=Ue[F[F.length-2]][F[F.length-1]],F.push(c1);break;case 3:return!0}}return!0},"parse")},p1=function(){var Oe={EOF:1,parseError:e(function(m,F){if(this.yy.parser)this.yy.parser.parseError(m,F);else throw Error(m)},"parseError"),setInput:e(function(b,m){if(this.yy=m||this.yy||{},this._input=b,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 b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var m=b.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),b},"input"),unput:e(function(b){var m=b.length,F=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var l=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),F.length-1)this.yylineno-=F.length-1;var M=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:F?(F.length===l.length?this.yylloc.first_column:0)+l[l.length-F.length].length-F[0].length:this.yylloc.first_column-m},this.options.ranges)this.yylloc.range=[M[0],M[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
12
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(b){this.unput(this.match.slice(b))},"less"),pastInput:e(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var b=this.match;if(b.length<20)b+=this._input.substr(0,20-b.length);return(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var b=this.pastInput(),m=Array(b.length+1).join("-");return b+this.upcomingInput()+`
13
13
  `+m+"^"},"showPosition"),test_match:e(function(b,m){var F,l,M;if(this.options.backtrack_lexer){if(M={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)M.yylloc.range=this.yylloc.range.slice(0)}if(l=b[0].match(/(?:\r\n?|\n).*/g),l)this.yylineno+=l.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,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(b[0].length),this.matched+=b[0],F=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(F)return F;else if(this._backtrack){for(var i in M)this[i]=M[i];return!1}return!1},"test_match"),next:e(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var b,m,F,l;if(!this._more)this.yytext="",this.match="";var M=this._currentRules();for(var i=0;i<M.length;i++)if(F=this._input.match(this.rules[M[i]]),F&&(!m||F[0].length>m[0].length)){if(m=F,l=i,this.options.backtrack_lexer)if(b=this.test_match(F,M[i]),b!==!1)return b;else if(this._backtrack){m=!1;continue}else return!1;else if(!this.options.flex)break}if(m){if(b=this.test_match(m,M[l]),b!==!1)return b;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
14
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,F,l,M){var i=M;switch(l){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"),F.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 F.yytext=F.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 95;case 17:this.popState();break;case 18:return 96;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 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;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 98;case 42:return 98;case 43:return 98;case 44:return 98;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 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;break;case 71:return this.pushState("edgeText"),75;break;case 72:return 119;case 73:return this.popState(),77;break;case 74:return this.pushState("thickEdgeText"),75;break;case 75:return 119;case 76:return this.popState(),77;break;case 77:return this.pushState("dottedEdgeText"),75;break;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;break;case 81:return"TEXT";case 82:return this.pushState("ellipseText"),52;break;case 83:return this.popState(),55;break;case 84:return this.pushState("text"),54;break;case 85:return this.popState(),57;break;case 86:return this.pushState("text"),56;break;case 87:return 58;case 88:return this.pushState("text"),67;break;case 89:return this.popState(),64;break;case 90:return this.pushState("text"),63;break;case 91:return this.popState(),49;break;case 92:return this.pushState("text"),48;break;case 93:return this.popState(),69;break;case 94:return this.popState(),71;break;case 95:return 117;case 96:return this.pushState("trapText"),68;break;case 97:return this.pushState("trapText"),70;break;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;break;case 110:return this.pushState("text"),62;break;case 111:return this.popState(),51;break;case 112:return this.pushState("text"),50;break;case 113:return this.popState(),31;break;case 114:return this.pushState("text"),29;break;case 115:return this.popState(),66;break;case 116:return this.pushState("text"),65;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 Oe}();Dt.lexer=p1;function gt(){this.yy={}}return e(gt,"Parser"),gt.prototype=Dt,Dt.Parser=gt,new gt}();Ft.parser=Ft;var h1=Ft,d1=Object.assign({},h1);d1.parse=(t)=>{let n=t.replace(/}\s*\n/g,`}
15
- `);return h1.parse(n)};var E1=d1,S1=e((t)=>{let{theme:n,bkgColorArray:u,borderColorArray:o}=t;if(!ae(n,o))return"";let c=ie(t.look),g=le(u),d="";for(let D=0;D<Ye(t.THEME_COLOR_LIMIT,o);D++){let f=o[D%o.length],U=g?`fill: ${u[D%u.length]};`:"",B=`[data-look="${c}"][data-color-id="color-${D}"]`,W=e((_)=>`${B}.node ${_}, ${B}.rough-node ${_}`,"collapsedRule"),x=e((_)=>`${B}.swimlane.cluster .swimlane-title${_}, ${B}.swimlane.cluster .swimlane-body${_}`,"laneRule");d+=`
15
+ `);return h1.parse(n)};var E1=d1,S1=e((t)=>{let{theme:n,bkgColorArray:u,borderColorArray:o}=t;if(!ae(n,o))return"";let c=ie(t.look),g=ce(u),d="";for(let D=0;D<Ye(t.THEME_COLOR_LIMIT,o);D++){let f=o[D%o.length],U=g?`fill: ${u[D%u.length]};`:"",B=`[data-look="${c}"][data-color-id="color-${D}"]`,W=e((_)=>`${B}.node ${_}, ${B}.rough-node ${_}`,"collapsedRule"),x=e((_)=>`${B}.swimlane.cluster .swimlane-title${_}, ${B}.swimlane.cluster .swimlane-body${_}`,"laneRule");d+=`
16
16
 
17
17
  ${B}.cluster:not(.swimlane) rect {
18
18
  stroke: ${f};
@@ -56,7 +56,7 @@ ${g?`
56
56
  ${W(".collapsed-separator")} {
57
57
  stroke: ${f};
58
58
  }
59
- `}return d},"genColor"),y1=e((t,n)=>{let u=Pt,o=u(t,"r"),c=u(t,"g"),g=u(t,"b");return se(o,c,g,n)},"fade"),x1=e((t)=>`${S1(t)}
59
+ `}return d},"genColor"),y1=e((t,n)=>{let u=Ot,o=u(t,"r"),c=u(t,"g"),g=u(t,"b");return le(o,c,g,n)},"fade"),x1=e((t)=>`${S1(t)}
60
60
  .label {
61
61
  font-family: ${t.fontFamily};
62
62
  color: ${t.nodeTextColor||t.textColor};
@@ -0,0 +1,8 @@
1
+ import{e}from"./chunk-9dd1c37b.js";import"./chunk-jvj66qhs.js";import{Ei,Ai}from"./chunk-fqj9kry9.js";import"./chunk-shbw6wg8.js";import"./chunk-z5j6x6j8.js";import"./chunk-ctcrk3qn.js";import"./chunk-anbn2ttv.js";var r=e((t)=>`${Ei(t)}
2
+ .swimlane.cluster:not([data-color-id]) rect {
3
+ stroke: ${t.clusterBorder} !important;
4
+ }
5
+ [data-look="neo"].cluster rect {
6
+ filter: none;
7
+ }
8
+ `,"getStyles"),o=r,D=Ai({styles:o});export{D as diagram};
@@ -1,4 +1,4 @@
1
- import{hn}from"./chunk-9p12mgs6.js";import{W}from"./chunk-b1pe46zz.js";import{e,r,D,b,y,C,S,E,T,A,I,L,s,wr,p,Ui,U,N}from"./chunk-y0m8hrwz.js";import{X}from"./chunk-taynqrgq.js";var v={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ce=D.gitGraph,J=e(()=>U({...Ce,...b().gitGraph}),"getConfig"),m=new hn(()=>{let t=J(),{mainBranchName:a,mainBranchOrder:o}=t;return{mainBranchName:a,commits:new Map,head:null,branchConfig:new Map([[a,{name:a,order:o}]]),branches:new Map([[a,null]]),currBranch:a,direction:"LR",seq:0,options:{}}});function ne(){return Ui({length:7})}e(ne,"getID");function pe(t,a){let o=Object.create(null);return t.reduce((i,d)=>{let l=a(d);if(!o[l])o[l]=!0,i.push(d);return i},[])}e(pe,"uniqBy");var ve=e(function(t){m.records.direction=t},"setDirection"),Ee=e(function(t){r.debug("options str",t),t=t?.trim(),t=t||"{}";try{m.records.options=JSON.parse(t)}catch(a){r.error("error while parsing gitGraph options",a.message)}},"setOptions"),Te=e(function(){return m.records.options},"getOptions"),Le=e(function(t){let{msg:a,id:o,type:i,tags:d}=t;r.info("commit",a,o,i,d),r.debug("Entering commit:",a,o,i,d);let l=J();o=y.sanitizeText(o,l),a=y.sanitizeText(a,l),d=d?.map((n)=>y.sanitizeText(n,l));let c={id:o?o:m.records.seq+"-"+ne(),message:a,seq:m.records.seq++,type:i??v.NORMAL,tags:d??[],parents:m.records.head==null?[]:[m.records.head.id],branch:m.records.currBranch};if(m.records.head=c,r.info("main branch",l.mainBranchName),m.records.commits.has(c.id))r.warn(`Commit ID ${c.id} already exists`);m.records.commits.set(c.id,c),m.records.branches.set(m.records.currBranch,c.id),r.debug("in pushCommit "+c.id)},"commit"),Me=e(function(t){let{name:a,order:o}=t;if(a=y.sanitizeText(a,J()),m.records.branches.has(a))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${a}")`);m.records.branches.set(a,m.records.head!=null?m.records.head.id:null),m.records.branchConfig.set(a,{name:a,order:o}),ye(a),r.debug("in createBranch")},"branch"),Pe=e((t)=>{let{branch:a,id:o,type:i,tags:d}=t,l=J();if(a=y.sanitizeText(a,l),o)o=y.sanitizeText(o,l);let c=m.records.branches.get(m.records.currBranch),n=m.records.branches.get(a),g=c?m.records.commits.get(c):void 0,x=n?m.records.commits.get(n):void 0;if(g&&x&&g.branch===a)throw Error(`Cannot merge branch '${a}' into itself.`);if(m.records.currBranch===a){let h=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw h.hash={text:`merge ${a}`,token:`merge ${a}`,expected:["branch abc"]},h}if(g===void 0||!g){let h=Error(`Incorrect usage of "merge". Current branch (${m.records.currBranch})has no commits`);throw h.hash={text:`merge ${a}`,token:`merge ${a}`,expected:["commit"]},h}if(!m.records.branches.has(a)){let h=Error('Incorrect usage of "merge". Branch to be merged ('+a+") does not exist");throw h.hash={text:`merge ${a}`,token:`merge ${a}`,expected:[`branch ${a}`]},h}if(x===void 0||!x){let h=Error('Incorrect usage of "merge". Branch to be merged ('+a+") has no commits");throw h.hash={text:`merge ${a}`,token:`merge ${a}`,expected:['"commit"']},h}if(g===x){let h=Error('Incorrect usage of "merge". Both branches have same head');throw h.hash={text:`merge ${a}`,token:`merge ${a}`,expected:["branch abc"]},h}if(o&&m.records.commits.has(o)){let h=Error('Incorrect usage of "merge". Commit with id:'+o+" already exists, use different custom id");throw h.hash={text:`merge ${a} ${o} ${i} ${d?.join(" ")}`,token:`merge ${a} ${o} ${i} ${d?.join(" ")}`,expected:[`merge ${a} ${o}_UNIQUE ${i} ${d?.join(" ")}`]},h}let u=n?n:"",f={id:o||`${m.records.seq}-${ne()}`,message:`merged branch ${a} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,u],branch:m.records.currBranch,type:v.MERGE,customType:i,customId:o?!0:!1,tags:d??[]};m.records.head=f,m.records.commits.set(f.id,f),m.records.branches.set(m.records.currBranch,f.id),r.debug(m.records.branches),r.debug("in mergeBranch")},"merge"),Re=e(function(t){let{id:a,targetId:o,tags:i,parent:d}=t;r.debug("Entering cherryPick:",a,o,i);let l=J();if(a=y.sanitizeText(a,l),o=y.sanitizeText(o,l),i=i?.map((g)=>y.sanitizeText(g,l)),d=y.sanitizeText(d,l),!a||!m.records.commits.has(a)){let g=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${a} ${o}`,token:`cherryPick ${a} ${o}`,expected:["cherry-pick abc"]},g}let c=m.records.commits.get(a);if(c===void 0||!c)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(d&&!(Array.isArray(c.parents)&&c.parents.includes(d)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let n=c.branch;if(c.type===v.MERGE&&!d)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!o||!m.records.commits.has(o)){if(n===m.records.currBranch){let f=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${a} ${o}`,token:`cherryPick ${a} ${o}`,expected:["cherry-pick abc"]},f}let g=m.records.branches.get(m.records.currBranch);if(g===void 0||!g){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${a} ${o}`,token:`cherryPick ${a} ${o}`,expected:["cherry-pick abc"]},f}let x=m.records.commits.get(g);if(x===void 0||!x){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${a} ${o}`,token:`cherryPick ${a} ${o}`,expected:["cherry-pick abc"]},f}let u={id:m.records.seq+"-"+ne(),message:`cherry-picked ${c?.message} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,c.id],branch:m.records.currBranch,type:v.CHERRY_PICK,tags:i?i.filter(Boolean):[`cherry-pick:${c.id}${c.type===v.MERGE?`|parent:${d}`:""}`]};m.records.head=u,m.records.commits.set(u.id,u),m.records.branches.set(m.records.currBranch,u.id),r.debug(m.records.branches),r.debug("in cherryPick")}},"cherryPick"),ye=e(function(t){if(t=y.sanitizeText(t,J()),!m.records.branches.has(t)){let a=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw a.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},a}else{m.records.currBranch=t;let a=m.records.branches.get(m.records.currBranch);if(a===void 0||!a)m.records.head=null;else m.records.head=m.records.commits.get(a)??null}},"checkout");function he(t,a,o){let i=t.indexOf(a);if(i===-1)t.push(o);else t.splice(i,1,o)}e(he,"upsert");function me(t){let a=t.reduce((d,l)=>{if(d.seq>l.seq)return d;return l},t[0]),o="";t.forEach(function(d){if(d===a)o+="\t*";else o+="\t|"});let i=[o,a.id,a.seq];for(let d in m.records.branches)if(m.records.branches.get(d)===a.id)i.push(d);if(r.debug(i.join(" ")),a.parents&&a.parents.length==2&&a.parents[0]&&a.parents[1]){let d=m.records.commits.get(a.parents[0]);if(he(t,a,d),a.parents[1])t.push(m.records.commits.get(a.parents[1]))}else if(a.parents.length==0)return;else if(a.parents[0]){let d=m.records.commits.get(a.parents[0]);he(t,a,d)}t=pe(t,(d)=>d.id),me(t)}e(me,"prettyPrintCommitHistory");var Oe=e(function(){r.debug(m.records.commits);let t=xe()[0];me([t])},"prettyPrint"),Ie=e(function(){m.reset(),C()},"clear"),_e=e(function(){return[...m.records.branchConfig.values()].map((a,o)=>{if(a.order!==null&&a.order!==void 0)return a;return{...a,order:parseFloat(`0.${o}`)}}).sort((a,o)=>(a.order??0)-(o.order??0)).map(({name:a})=>({name:a}))},"getBranchesAsObjArray"),Ge=e(function(){return m.records.branches},"getBranches"),De=e(function(){return m.records.commits},"getCommits"),xe=e(function(){let t=[...m.records.commits.values()];return t.forEach(function(a){r.debug(a.id)}),t.sort((a,o)=>a.seq-o.seq),t},"getCommitsArray"),We=e(function(){return m.records.currBranch},"getCurrentBranch"),qe=e(function(){return m.records.direction},"getDirection"),Ae=e(function(){return m.records.head},"getHead"),ue={commitType:v,getConfig:J,setDirection:ve,setOptions:Ee,getOptions:Te,commit:Le,branch:Me,merge:Pe,cherryPick:Re,checkout:ye,prettyPrint:Oe,clear:Ie,getBranchesAsObjArray:_e,getBranches:Ge,getCommits:De,getCommitsArray:xe,getCurrentBranch:We,getDirection:qe,getHead:Ae,setAccTitle:S,getAccTitle:E,getAccDescription:A,setAccDescription:T,setDiagramTitle:I,getDiagramTitle:L},He=e((t,a)=>{if(W(t,a),t.dir)a.setDirection(t.dir);for(let o of t.statements)Se(o,a)},"populate"),Se=e((t,a)=>{let i={Commit:e((d)=>a.commit(Ne(d)),"Commit"),Branch:e((d)=>a.branch(Fe(d)),"Branch"),Merge:e((d)=>a.merge(ze(d)),"Merge"),Checkout:e((d)=>a.checkout(Ye(d)),"Checkout"),CherryPicking:e((d)=>a.cherryPick(je(d)),"CherryPicking")}[t.$type];if(i)i(t);else r.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Ne=e((t)=>({id:t.id,msg:t.message??"",type:t.type!==void 0?v[t.type]:v.NORMAL,tags:t.tags??void 0}),"parseCommit"),Fe=e((t)=>({name:t.name,order:t.order??0}),"parseBranch"),ze=e((t)=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?v[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Ye=e((t)=>t.branch,"parseCheckout"),je=e((t)=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),Ke={parse:e(async(t)=>{let a=await X("gitGraph",t);r.debug(a),He(a,ue)},"parse")},j=10,K=40,H=4,z=2,V=8,ce=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),le=12,ge=new Set(["redux-color","redux-dark-color"]),Ue=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),Z=e((t,a,o=!1)=>{if(o&&t>0)return(t-1)%(a-1)+1;return t%a},"calcColorIndex"),_=new Map,G=new Map,oe=30,te=new Map,se=[],Y=0,B="LR",Ve=e(()=>{_.clear(),G.clear(),te.clear(),Y=0,se=[],B="LR"},"clear"),be=e((t)=>{let a=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t==="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach((i)=>{let d=document.createElementNS("http://www.w3.org/2000/svg","tspan");d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),d.setAttribute("dy","1em"),d.setAttribute("x","0"),d.setAttribute("class","row"),d.textContent=i.trim(),a.appendChild(d)}),a},"drawText"),we=e((t)=>{let a,o,i;if(B==="BT")o=e((d,l)=>d<=l,"comparisonFunc"),i=1/0;else o=e((d,l)=>d>=l,"comparisonFunc"),i=0;return t.forEach((d)=>{let l=B==="TB"||B=="BT"?G.get(d)?.y:G.get(d)?.x;if(l!==void 0&&o(l,i))a=d,i=l}),a},"findClosestParent"),Ze=e((t)=>{let a="",o=1/0;return t.forEach((i)=>{let d=G.get(i).y;if(d<=o)a=i,o=d}),a||void 0},"findClosestParentBT"),Xe=e((t,a,o)=>{let i=o,d=o,l=[];t.forEach((c)=>{let n=a.get(c);if(!n)throw Error(`Commit not found for key ${c}`);if(n.parents.length)i=Qe(n),d=Math.max(i,d);else l.push(n);et(n,i)}),i=d,l.forEach((c)=>{tt(c,i,o)}),t.forEach((c)=>{let n=a.get(c);if(n?.parents.length){let g=Ze(n.parents);if(i=G.get(g).y-K,i<=d)d=i;let x=_.get(n.branch).pos,u=i-j;G.set(n.id,{x,y:u})}})},"setParallelBTPos"),Je=e((t)=>{let a=we(t.parents.filter((i)=>i!==null));if(!a)throw Error(`Closest parent not found for commit ${t.id}`);let o=G.get(a)?.y;if(o===void 0)throw Error(`Closest parent position not found for commit ${t.id}`);return o},"findClosestParentPos"),Qe=e((t)=>Je(t)+K,"calculateCommitPosition"),et=e((t,a)=>{let o=_.get(t.branch);if(!o)throw Error(`Branch not found for commit ${t.id}`);let i=o.pos,d=a+j;return G.set(t.id,{x:i,y:d}),{x:i,y:d}},"setCommitPosition"),tt=e((t,a,o)=>{let i=_.get(t.branch);if(!i)throw Error(`Branch not found for commit ${t.id}`);let d=a+o,l=i.pos;G.set(t.id,{x:l,y:d})},"setRootPosition"),rt=e((t,a,o,i,d,l)=>{let{theme:c}=s(),n=ce.has(c??""),g=ge.has(c??""),x=Ue.has(c??"");if(l===v.HIGHLIGHT)t.append("rect").attr("x",o.x-10+(n?3:0)).attr("y",o.y-10+(n?3:0)).attr("width",n?14:20).attr("height",n?14:20).attr("class",`commit ${a.id} commit-highlight${Z(d,V,g)} ${i}-outer`),t.append("rect").attr("x",o.x-6+(n?2:0)).attr("y",o.y-6+(n?2:0)).attr("width",n?8:12).attr("height",n?8:12).attr("class",`commit ${a.id} commit${Z(d,V,g)} ${i}-inner`);else if(l===v.CHERRY_PICK)t.append("circle").attr("cx",o.x).attr("cy",o.y).attr("r",n?7:10).attr("class",`commit ${a.id} ${i}`),t.append("circle").attr("cx",o.x-3).attr("cy",o.y+2).attr("r",n?2.5:2.75).attr("fill",x?"#000000":"#fff").attr("class",`commit ${a.id} ${i}`),t.append("circle").attr("cx",o.x+3).attr("cy",o.y+2).attr("r",n?2.5:2.75).attr("fill",x?"#000000":"#fff").attr("class",`commit ${a.id} ${i}`),t.append("line").attr("x1",o.x+3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke",x?"#000000":"#fff").attr("class",`commit ${a.id} ${i}`),t.append("line").attr("x1",o.x-3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke",x?"#000000":"#fff").attr("class",`commit ${a.id} ${i}`);else{let u=t.append("circle");if(u.attr("cx",o.x),u.attr("cy",o.y),u.attr("r",n?7:10),u.attr("class",`commit ${a.id} commit${Z(d,V,g)}`),l===v.MERGE){let f=t.append("circle");f.attr("cx",o.x),f.attr("cy",o.y),f.attr("r",n?5:6),f.attr("class",`commit ${i} ${a.id} commit${Z(d,V,g)}`)}if(l===v.REVERSE){let f=t.append("path"),h=n?4:5;f.attr("d",`M ${o.x-h},${o.y-h}L${o.x+h},${o.y+h}M${o.x-h},${o.y+h}L${o.x+h},${o.y-h}`).attr("class",`commit ${i} ${a.id} commit${Z(d,V,g)}`)}}},"drawCommitBullet"),at=e((t,a,o,i,d)=>{if(a.type!==v.CHERRY_PICK&&(a.customId&&a.type===v.MERGE||a.type!==v.MERGE)&&d.showCommitLabel){let l=t.append("g"),c=l.insert("rect").attr("class","commit-label-bkg"),n=l.append("text").attr("x",i).attr("y",o.y+25).attr("class","commit-label").text(a.id),g=n.node()?.getBBox();if(g){if(c.attr("x",o.posWithOffset-g.width/2-z).attr("y",o.y+13.5).attr("width",g.width+2*z).attr("height",g.height+2*z),B==="TB"||B==="BT")c.attr("x",o.x-(g.width+4*H+5)).attr("y",o.y-12),n.attr("x",o.x-(g.width+4*H)).attr("y",o.y+g.height-12);else n.attr("x",o.posWithOffset-g.width/2);if(d.rotateCommitLabel)if(B==="TB"||B==="BT")n.attr("transform","rotate(-45, "+o.x+", "+o.y+")"),c.attr("transform","rotate(-45, "+o.x+", "+o.y+")");else{let x=-7.5-(g.width+10)/25*9.5,u=10+g.width/25*8.5;l.attr("transform","translate("+x+", "+u+") rotate(-45, "+i+", "+o.y+")")}}}},"drawCommitLabel"),ot=e((t,a,o,i)=>{if(a.tags.length>0){let d=0,l=0,c=0,n=[];for(let g of a.tags.reverse()){let x=t.insert("polygon"),u=t.append("circle"),f=t.append("text").attr("y",o.y-16-d).attr("class","tag-label").text(g),h=f.node()?.getBBox();if(!h)throw Error("Tag bbox not found");l=Math.max(l,h.width),c=Math.max(c,h.height),f.attr("x",o.posWithOffset-h.width/2),n.push({tag:f,hole:u,rect:x,yOffset:d}),d+=20}for(let{tag:g,hole:x,rect:u,yOffset:f}of n){let h=c/2,k=o.y-19.2-f;if(u.attr("class","tag-label-bkg").attr("points",`
1
+ import{hn}from"./chunk-ezkqa7we.js";import{W}from"./chunk-vjqmnkh2.js";import{e,r,D,b,y,C,S,E,T,A,I,L,s,wr,p,Ui,U,N}from"./chunk-9dd1c37b.js";import{X}from"./chunk-qryrg2pq.js";var v={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ce=D.gitGraph,J=e(()=>U({...Ce,...b().gitGraph}),"getConfig"),m=new hn(()=>{let t=J(),{mainBranchName:a,mainBranchOrder:o}=t;return{mainBranchName:a,commits:new Map,head:null,branchConfig:new Map([[a,{name:a,order:o}]]),branches:new Map([[a,null]]),currBranch:a,direction:"LR",seq:0,options:{}}});function ne(){return Ui({length:7})}e(ne,"getID");function pe(t,a){let o=Object.create(null);return t.reduce((i,d)=>{let l=a(d);if(!o[l])o[l]=!0,i.push(d);return i},[])}e(pe,"uniqBy");var ve=e(function(t){m.records.direction=t},"setDirection"),Ee=e(function(t){r.debug("options str",t),t=t?.trim(),t=t||"{}";try{m.records.options=JSON.parse(t)}catch(a){r.error("error while parsing gitGraph options",a.message)}},"setOptions"),Te=e(function(){return m.records.options},"getOptions"),Le=e(function(t){let{msg:a,id:o,type:i,tags:d}=t;r.info("commit",a,o,i,d),r.debug("Entering commit:",a,o,i,d);let l=J();o=y.sanitizeText(o,l),a=y.sanitizeText(a,l),d=d?.map((n)=>y.sanitizeText(n,l));let c={id:o?o:m.records.seq+"-"+ne(),message:a,seq:m.records.seq++,type:i??v.NORMAL,tags:d??[],parents:m.records.head==null?[]:[m.records.head.id],branch:m.records.currBranch};if(m.records.head=c,r.info("main branch",l.mainBranchName),m.records.commits.has(c.id))r.warn(`Commit ID ${c.id} already exists`);m.records.commits.set(c.id,c),m.records.branches.set(m.records.currBranch,c.id),r.debug("in pushCommit "+c.id)},"commit"),Me=e(function(t){let{name:a,order:o}=t;if(a=y.sanitizeText(a,J()),m.records.branches.has(a))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${a}")`);m.records.branches.set(a,m.records.head!=null?m.records.head.id:null),m.records.branchConfig.set(a,{name:a,order:o}),ye(a),r.debug("in createBranch")},"branch"),Pe=e((t)=>{let{branch:a,id:o,type:i,tags:d}=t,l=J();if(a=y.sanitizeText(a,l),o)o=y.sanitizeText(o,l);let c=m.records.branches.get(m.records.currBranch),n=m.records.branches.get(a),g=c?m.records.commits.get(c):void 0,x=n?m.records.commits.get(n):void 0;if(g&&x&&g.branch===a)throw Error(`Cannot merge branch '${a}' into itself.`);if(m.records.currBranch===a){let h=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw h.hash={text:`merge ${a}`,token:`merge ${a}`,expected:["branch abc"]},h}if(g===void 0||!g){let h=Error(`Incorrect usage of "merge". Current branch (${m.records.currBranch})has no commits`);throw h.hash={text:`merge ${a}`,token:`merge ${a}`,expected:["commit"]},h}if(!m.records.branches.has(a)){let h=Error('Incorrect usage of "merge". Branch to be merged ('+a+") does not exist");throw h.hash={text:`merge ${a}`,token:`merge ${a}`,expected:[`branch ${a}`]},h}if(x===void 0||!x){let h=Error('Incorrect usage of "merge". Branch to be merged ('+a+") has no commits");throw h.hash={text:`merge ${a}`,token:`merge ${a}`,expected:['"commit"']},h}if(g===x){let h=Error('Incorrect usage of "merge". Both branches have same head');throw h.hash={text:`merge ${a}`,token:`merge ${a}`,expected:["branch abc"]},h}if(o&&m.records.commits.has(o)){let h=Error('Incorrect usage of "merge". Commit with id:'+o+" already exists, use different custom id");throw h.hash={text:`merge ${a} ${o} ${i} ${d?.join(" ")}`,token:`merge ${a} ${o} ${i} ${d?.join(" ")}`,expected:[`merge ${a} ${o}_UNIQUE ${i} ${d?.join(" ")}`]},h}let u=n?n:"",f={id:o||`${m.records.seq}-${ne()}`,message:`merged branch ${a} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,u],branch:m.records.currBranch,type:v.MERGE,customType:i,customId:o?!0:!1,tags:d??[]};m.records.head=f,m.records.commits.set(f.id,f),m.records.branches.set(m.records.currBranch,f.id),r.debug(m.records.branches),r.debug("in mergeBranch")},"merge"),Re=e(function(t){let{id:a,targetId:o,tags:i,parent:d}=t;r.debug("Entering cherryPick:",a,o,i);let l=J();if(a=y.sanitizeText(a,l),o=y.sanitizeText(o,l),i=i?.map((g)=>y.sanitizeText(g,l)),d=y.sanitizeText(d,l),!a||!m.records.commits.has(a)){let g=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${a} ${o}`,token:`cherryPick ${a} ${o}`,expected:["cherry-pick abc"]},g}let c=m.records.commits.get(a);if(c===void 0||!c)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(d&&!(Array.isArray(c.parents)&&c.parents.includes(d)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let n=c.branch;if(c.type===v.MERGE&&!d)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!o||!m.records.commits.has(o)){if(n===m.records.currBranch){let f=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${a} ${o}`,token:`cherryPick ${a} ${o}`,expected:["cherry-pick abc"]},f}let g=m.records.branches.get(m.records.currBranch);if(g===void 0||!g){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${a} ${o}`,token:`cherryPick ${a} ${o}`,expected:["cherry-pick abc"]},f}let x=m.records.commits.get(g);if(x===void 0||!x){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${a} ${o}`,token:`cherryPick ${a} ${o}`,expected:["cherry-pick abc"]},f}let u={id:m.records.seq+"-"+ne(),message:`cherry-picked ${c?.message} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,c.id],branch:m.records.currBranch,type:v.CHERRY_PICK,tags:i?i.filter(Boolean):[`cherry-pick:${c.id}${c.type===v.MERGE?`|parent:${d}`:""}`]};m.records.head=u,m.records.commits.set(u.id,u),m.records.branches.set(m.records.currBranch,u.id),r.debug(m.records.branches),r.debug("in cherryPick")}},"cherryPick"),ye=e(function(t){if(t=y.sanitizeText(t,J()),!m.records.branches.has(t)){let a=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw a.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},a}else{m.records.currBranch=t;let a=m.records.branches.get(m.records.currBranch);if(a===void 0||!a)m.records.head=null;else m.records.head=m.records.commits.get(a)??null}},"checkout");function he(t,a,o){let i=t.indexOf(a);if(i===-1)t.push(o);else t.splice(i,1,o)}e(he,"upsert");function me(t){let a=t.reduce((d,l)=>{if(d.seq>l.seq)return d;return l},t[0]),o="";t.forEach(function(d){if(d===a)o+="\t*";else o+="\t|"});let i=[o,a.id,a.seq];for(let d in m.records.branches)if(m.records.branches.get(d)===a.id)i.push(d);if(r.debug(i.join(" ")),a.parents&&a.parents.length==2&&a.parents[0]&&a.parents[1]){let d=m.records.commits.get(a.parents[0]);if(he(t,a,d),a.parents[1])t.push(m.records.commits.get(a.parents[1]))}else if(a.parents.length==0)return;else if(a.parents[0]){let d=m.records.commits.get(a.parents[0]);he(t,a,d)}t=pe(t,(d)=>d.id),me(t)}e(me,"prettyPrintCommitHistory");var Oe=e(function(){r.debug(m.records.commits);let t=xe()[0];me([t])},"prettyPrint"),Ie=e(function(){m.reset(),C()},"clear"),_e=e(function(){return[...m.records.branchConfig.values()].map((a,o)=>{if(a.order!==null&&a.order!==void 0)return a;return{...a,order:parseFloat(`0.${o}`)}}).sort((a,o)=>(a.order??0)-(o.order??0)).map(({name:a})=>({name:a}))},"getBranchesAsObjArray"),Ge=e(function(){return m.records.branches},"getBranches"),De=e(function(){return m.records.commits},"getCommits"),xe=e(function(){let t=[...m.records.commits.values()];return t.forEach(function(a){r.debug(a.id)}),t.sort((a,o)=>a.seq-o.seq),t},"getCommitsArray"),We=e(function(){return m.records.currBranch},"getCurrentBranch"),qe=e(function(){return m.records.direction},"getDirection"),Ae=e(function(){return m.records.head},"getHead"),ue={commitType:v,getConfig:J,setDirection:ve,setOptions:Ee,getOptions:Te,commit:Le,branch:Me,merge:Pe,cherryPick:Re,checkout:ye,prettyPrint:Oe,clear:Ie,getBranchesAsObjArray:_e,getBranches:Ge,getCommits:De,getCommitsArray:xe,getCurrentBranch:We,getDirection:qe,getHead:Ae,setAccTitle:S,getAccTitle:E,getAccDescription:A,setAccDescription:T,setDiagramTitle:I,getDiagramTitle:L},He=e((t,a)=>{if(W(t,a),t.dir)a.setDirection(t.dir);for(let o of t.statements)Se(o,a)},"populate"),Se=e((t,a)=>{let i={Commit:e((d)=>a.commit(Ne(d)),"Commit"),Branch:e((d)=>a.branch(Fe(d)),"Branch"),Merge:e((d)=>a.merge(ze(d)),"Merge"),Checkout:e((d)=>a.checkout(Ye(d)),"Checkout"),CherryPicking:e((d)=>a.cherryPick(je(d)),"CherryPicking")}[t.$type];if(i)i(t);else r.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Ne=e((t)=>({id:t.id,msg:t.message??"",type:t.type!==void 0?v[t.type]:v.NORMAL,tags:t.tags??void 0}),"parseCommit"),Fe=e((t)=>({name:t.name,order:t.order??0}),"parseBranch"),ze=e((t)=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?v[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Ye=e((t)=>t.branch,"parseCheckout"),je=e((t)=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),Ke={parse:e(async(t)=>{let a=await X("gitGraph",t);r.debug(a),He(a,ue)},"parse")},j=10,K=40,H=4,z=2,V=8,ce=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),le=12,ge=new Set(["redux-color","redux-dark-color"]),Ue=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),Z=e((t,a,o=!1)=>{if(o&&t>0)return(t-1)%(a-1)+1;return t%a},"calcColorIndex"),_=new Map,G=new Map,oe=30,te=new Map,se=[],Y=0,B="LR",Ve=e(()=>{_.clear(),G.clear(),te.clear(),Y=0,se=[],B="LR"},"clear"),be=e((t)=>{let a=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t==="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach((i)=>{let d=document.createElementNS("http://www.w3.org/2000/svg","tspan");d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),d.setAttribute("dy","1em"),d.setAttribute("x","0"),d.setAttribute("class","row"),d.textContent=i.trim(),a.appendChild(d)}),a},"drawText"),we=e((t)=>{let a,o,i;if(B==="BT")o=e((d,l)=>d<=l,"comparisonFunc"),i=1/0;else o=e((d,l)=>d>=l,"comparisonFunc"),i=0;return t.forEach((d)=>{let l=B==="TB"||B=="BT"?G.get(d)?.y:G.get(d)?.x;if(l!==void 0&&o(l,i))a=d,i=l}),a},"findClosestParent"),Ze=e((t)=>{let a="",o=1/0;return t.forEach((i)=>{let d=G.get(i).y;if(d<=o)a=i,o=d}),a||void 0},"findClosestParentBT"),Xe=e((t,a,o)=>{let i=o,d=o,l=[];t.forEach((c)=>{let n=a.get(c);if(!n)throw Error(`Commit not found for key ${c}`);if(n.parents.length)i=Qe(n),d=Math.max(i,d);else l.push(n);et(n,i)}),i=d,l.forEach((c)=>{tt(c,i,o)}),t.forEach((c)=>{let n=a.get(c);if(n?.parents.length){let g=Ze(n.parents);if(i=G.get(g).y-K,i<=d)d=i;let x=_.get(n.branch).pos,u=i-j;G.set(n.id,{x,y:u})}})},"setParallelBTPos"),Je=e((t)=>{let a=we(t.parents.filter((i)=>i!==null));if(!a)throw Error(`Closest parent not found for commit ${t.id}`);let o=G.get(a)?.y;if(o===void 0)throw Error(`Closest parent position not found for commit ${t.id}`);return o},"findClosestParentPos"),Qe=e((t)=>Je(t)+K,"calculateCommitPosition"),et=e((t,a)=>{let o=_.get(t.branch);if(!o)throw Error(`Branch not found for commit ${t.id}`);let i=o.pos,d=a+j;return G.set(t.id,{x:i,y:d}),{x:i,y:d}},"setCommitPosition"),tt=e((t,a,o)=>{let i=_.get(t.branch);if(!i)throw Error(`Branch not found for commit ${t.id}`);let d=a+o,l=i.pos;G.set(t.id,{x:l,y:d})},"setRootPosition"),rt=e((t,a,o,i,d,l)=>{let{theme:c}=s(),n=ce.has(c??""),g=ge.has(c??""),x=Ue.has(c??"");if(l===v.HIGHLIGHT)t.append("rect").attr("x",o.x-10+(n?3:0)).attr("y",o.y-10+(n?3:0)).attr("width",n?14:20).attr("height",n?14:20).attr("class",`commit ${a.id} commit-highlight${Z(d,V,g)} ${i}-outer`),t.append("rect").attr("x",o.x-6+(n?2:0)).attr("y",o.y-6+(n?2:0)).attr("width",n?8:12).attr("height",n?8:12).attr("class",`commit ${a.id} commit${Z(d,V,g)} ${i}-inner`);else if(l===v.CHERRY_PICK)t.append("circle").attr("cx",o.x).attr("cy",o.y).attr("r",n?7:10).attr("class",`commit ${a.id} ${i}`),t.append("circle").attr("cx",o.x-3).attr("cy",o.y+2).attr("r",n?2.5:2.75).attr("fill",x?"#000000":"#fff").attr("class",`commit ${a.id} ${i}`),t.append("circle").attr("cx",o.x+3).attr("cy",o.y+2).attr("r",n?2.5:2.75).attr("fill",x?"#000000":"#fff").attr("class",`commit ${a.id} ${i}`),t.append("line").attr("x1",o.x+3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke",x?"#000000":"#fff").attr("class",`commit ${a.id} ${i}`),t.append("line").attr("x1",o.x-3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke",x?"#000000":"#fff").attr("class",`commit ${a.id} ${i}`);else{let u=t.append("circle");if(u.attr("cx",o.x),u.attr("cy",o.y),u.attr("r",n?7:10),u.attr("class",`commit ${a.id} commit${Z(d,V,g)}`),l===v.MERGE){let f=t.append("circle");f.attr("cx",o.x),f.attr("cy",o.y),f.attr("r",n?5:6),f.attr("class",`commit ${i} ${a.id} commit${Z(d,V,g)}`)}if(l===v.REVERSE){let f=t.append("path"),h=n?4:5;f.attr("d",`M ${o.x-h},${o.y-h}L${o.x+h},${o.y+h}M${o.x-h},${o.y+h}L${o.x+h},${o.y-h}`).attr("class",`commit ${i} ${a.id} commit${Z(d,V,g)}`)}}},"drawCommitBullet"),at=e((t,a,o,i,d)=>{if(a.type!==v.CHERRY_PICK&&(a.customId&&a.type===v.MERGE||a.type!==v.MERGE)&&d.showCommitLabel){let l=t.append("g"),c=l.insert("rect").attr("class","commit-label-bkg"),n=l.append("text").attr("x",i).attr("y",o.y+25).attr("class","commit-label").text(a.id),g=n.node()?.getBBox();if(g){if(c.attr("x",o.posWithOffset-g.width/2-z).attr("y",o.y+13.5).attr("width",g.width+2*z).attr("height",g.height+2*z),B==="TB"||B==="BT")c.attr("x",o.x-(g.width+4*H+5)).attr("y",o.y-12),n.attr("x",o.x-(g.width+4*H)).attr("y",o.y+g.height-12);else n.attr("x",o.posWithOffset-g.width/2);if(d.rotateCommitLabel)if(B==="TB"||B==="BT")n.attr("transform","rotate(-45, "+o.x+", "+o.y+")"),c.attr("transform","rotate(-45, "+o.x+", "+o.y+")");else{let x=-7.5-(g.width+10)/25*9.5,u=10+g.width/25*8.5;l.attr("transform","translate("+x+", "+u+") rotate(-45, "+i+", "+o.y+")")}}}},"drawCommitLabel"),ot=e((t,a,o,i)=>{if(a.tags.length>0){let d=0,l=0,c=0,n=[];for(let g of a.tags.reverse()){let x=t.insert("polygon"),u=t.append("circle"),f=t.append("text").attr("y",o.y-16-d).attr("class","tag-label").text(g),h=f.node()?.getBBox();if(!h)throw Error("Tag bbox not found");l=Math.max(l,h.width),c=Math.max(c,h.height),f.attr("x",o.posWithOffset-h.width/2),n.push({tag:f,hole:u,rect:x,yOffset:d}),d+=20}for(let{tag:g,hole:x,rect:u,yOffset:f}of n){let h=c/2,k=o.y-19.2-f;if(u.attr("class","tag-label-bkg").attr("points",`
2
2
  ${i-l/2-H/2},${k+z}
3
3
  ${i-l/2-H/2},${k-z}
4
4
  ${o.posWithOffset-l/2-H},${k-h-z}
@@ -1,2 +1,2 @@
1
- import{e,r,b,s,N,M,Ct,St,go,ht,Kt,yo,Wn,Me,vo,Vi,Tt,Gi,Qt,Yn}from"./chunk-y0m8hrwz.js";import{Q}from"./chunk-kdyjnwdx.js";import{x}from"./chunk-vt40e1kp.js";function sa(t,{edgePathsClass:i="edges edgePaths"}={}){let n=t.insert("g").attr("class","root"),a=n.insert("g").attr("class","clusters"),o=n.insert("g").attr("class",i),c=n.insert("g").attr("class","edgeLabels"),u=n.insert("g").attr("class","nodes");return{clusters:a,edgePaths:o,edgeLabels:c,nodes:u,rootGroups:n}}e(sa,"createLayoutElementGroups");async function S(t,i,n){if(i.label){let{shapeSvg:a,bbox:o}=await M(t,n===void 0?i:{...i,width:n});i.labelBBox={width:o.width,height:o.height},a.remove()}else i.labelBBox={width:0,height:0}}e(S,"measureGroupLabel");async function la(t,i,n){let a=await St(t,i,n),o=a.node()?.getBBox()??{width:0,height:0};return i.width=o.width,i.height=o.height,a}e(la,"insertMeasuredNode");function k(t,i,n){let a=t,o=new Set;while(a){if(a.dir)return a.dir;if(!a.parentId||o.has(a.parentId))break;o.add(a.parentId),a=i.get(a.parentId)}return n}e(k,"resolveNodeDir");async function R(t,i,n={}){let a=new Q({multigraph:!0,compound:!0}),o=[...i.edges],c=s(),u=sa(t),{edgeLabels:d,nodes:l}=u,g=new Map,h=new Map(i.nodes.map((f)=>[f.id,f])),C=i.direction,w=t.node()!=null;await Promise.all(i.nodes.map(async(f)=>{if(f.isGroup){if(w){let p=n.unwrapGroupLabels&&f.labelType!=="markdown";await S(l,f,p?Number.POSITIVE_INFINITY:void 0)}a.setNode(f.id,{...f})}else{if(w){let p=await la(l,f,{config:c,dir:k(f,h,C)});g.set(f.id,p)}a.setNode(f.id,{...f})}}));for(let f of o){if(w&&Vi(f))await Tt(d,f);if(a.setEdge(f.start,f.end,{...f},f.id),!i.edges.some((E)=>E.id===f.id))i.edges.push(f)}if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:f}=await (x("22a4ety5"),import("./chunk-22a4ety5.js"));f(t,i)}return{graph:a,groups:u,nodeElements:g}}e(R,"createGraphWithElements");var G=new Map,m=new Map,T=new Map,Z=e(()=>{m.clear(),T.clear(),G.clear()},"clear"),v=e((t,i)=>{let n=m.get(i)||[];return r.trace("In isDescendant",i," ",t," = ",n.includes(t)),n.includes(t)},"isDescendant"),I=e((t,i)=>{let n=m.get(i)||[];if(r.info("Descendants of ",i," is ",n),r.info("Edge is ",t),t.v===i||t.w===i)return!1;if(!n)return r.debug("Tilt, ",i,",not in descendants"),!1;return n.includes(t.v)||v(t.v,i)||v(t.w,i)||n.includes(t.w)},"edgeInCluster"),P=e((t,i,n,a)=>{r.debug("Copying children of ",t,"root",a,"data",i.node(t),a);let o=i.children(t)||[];if(t!==a)o.push(t);r.debug("Copying (nodes) clusterId",t,"nodes",o),o.forEach((c)=>{if(i.children(c).length>0)P(c,i,n,a);else{let u=i.node(c);if(r.info("cp ",c," to ",a," with parent ",t),n.setNode(c,u),a!==i.parent(c))r.debug("Setting parent",c,i.parent(c)),n.setParent(c,i.parent(c));if(t!==a&&c!==t)r.debug("Setting parent",c,t),n.setParent(c,t);else r.info("In copy ",t,"root",a,"data",i.node(t),a),r.debug("Not Setting parent for node=",c,"cluster!==rootId",t!==a,"node!==clusterId",c!==t);let d=i.edges(c);r.debug("Copying Edges",d),d.forEach((l)=>{r.info("Edge",l);let g=i.edge(l.v,l.w,l.name);r.info("Edge data",g,a);try{if(I(l,a))r.info("Copying as ",l.v,l.w,g,l.name),n.setEdge(l.v,l.w,g,l.name),r.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]));else r.info("Skipping copy of edge ",l.v,"-->",l.w," rootId: ",a," clusterId:",t)}catch(h){r.error(h)}})}r.debug("Removing node",c),i.removeNode(c)})},"copy"),B=e((t,i)=>{let n=i.children(t),a=[...n];for(let o of n)T.set(o,t),a=[...a,...B(o,i)];return a},"extractDescendants"),ee=e((t,i,n)=>{let a=t.edges().filter((l)=>l.v===i||l.w===i),o=t.edges().filter((l)=>l.v===n||l.w===n),c=a.map((l)=>({v:l.v===i?n:l.v,w:l.w===i?i:l.w})),u=o.map((l)=>({v:l.v,w:l.w}));return c.filter((l)=>u.some((g)=>l.v===g.v&&l.w===g.w))},"findCommonEdges"),$n=e((t,i,n)=>{let a=i.children(t);if(r.trace("Searching children of id ",t,a),a.length<1)return t;let o;for(let c of a){let u=$n(c,i,n),d=ee(i,n,u);if(u)if(d.length>0)o=u;else return u}return o},"findNonClusterChild"),D=e((t)=>{if(!G.has(t))return t;if(!G.get(t).externalConnections)return t;if(G.has(t))return G.get(t).id;return t},"getAnchorId"),eo=e((t,i)=>{if(!t||i>10){r.debug("Opting out, no graph ");return}else r.debug("Opting in, graph ");t.nodes().forEach(function(n){if(t.children(n).length>0)r.debug("Cluster identified",n," Replacement id in edges: ",$n(n,t,n)),m.set(n,B(n,t)),G.set(n,{id:$n(n,t,n),clusterData:t.node(n)})}),t.nodes().forEach(function(n){let a=t.children(n),o=t.edges();if(a.length>0)r.debug("Cluster identified",n,m),o.forEach((c)=>{let u=v(c.v,n),d=v(c.w,n);if(u^d)r.debug("Edge: ",c," leaves cluster ",n),r.debug("Descendants of XXX ",n,": ",m.get(n)),G.get(n).externalConnections=!0});else r.debug("Not a cluster ",n,m)});for(let n of G.keys()){let a=G.get(n).id,o=t.parent(a);if(o!==n&&G.has(o)&&!G.get(o).externalConnections)G.get(n).id=o;let c=t.edges().some((u)=>u.v===n);if(a&&G.get(n)?.externalConnections&&c&&_(t,a,n)){let u=te(t,n,t.parent(a));if(u)G.get(n).id=u}}t.edges().forEach(function(n){let a=t.edge(n);r.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),r.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(t.edge(n)));let{v:o,w:c}=n;if(r.debug("Fix XXX",G,"ids:",n.v,n.w,"Translating: ",G.get(n.v)," --- ",G.get(n.w)),G.get(n.v)||G.get(n.w)){if(r.debug("Fixing and trying - removing XXX",n.v,n.w,n.name),o=D(n.v),c=D(n.w),t.removeEdge(n.v,n.w,n.name),o!==n.v){let u=t.parent(o);G.get(u).externalConnections=!0,a.fromCluster=n.v}if(c!==n.w){let u=t.parent(c);G.get(u).externalConnections=!0,a.toCluster=n.w}r.debug("Fix Replacing with XXX",o,c,n.name),t.setEdge(o,c,a,n.name)}}),A(t,0),r.trace(G)},"adjustClustersAndEdges"),A=e((t,i)=>{if(i>10){r.error("Bailing out");return}let n=t.nodes(),a=!1;for(let o of n){let c=t.children(o);a=a||c.length>0}if(!a){r.debug("Done, no node has children",t.nodes());return}r.debug("Nodes = ",n,i);for(let o of n)if(r.debug("Extracting node",o,G,G.has(o)&&!G.get(o).externalConnections,!t.parent(o),t.node(o),t.children("D")," Depth ",i),!G.has(o))r.debug("Not a cluster",o,i);else if(!G.get(o).externalConnections&&t.children(o)&&t.children(o).length>0){r.debug("Cluster without external connections, without a parent and with children",o,i);let u=t.graph().rankdir==="TB"?"LR":"TB";if(G.get(o)?.clusterData?.dir)u=G.get(o).clusterData.dir,r.debug("Fixing dir",G.get(o).clusterData.dir,u);let d=new Q({multigraph:!0,compound:!0}).setGraph({rankdir:u,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});P(o,t,d,o),t.setNode(o,{clusterNode:!0,id:o,clusterData:G.get(o).clusterData,label:G.get(o).label,graph:d})}else r.debug("Cluster ** ",o," **not meeting the criteria !externalConnections:",!G.get(o).externalConnections," no parent: ",!t.parent(o)," children ",t.children(o)&&t.children(o).length>0,t.children("D"),i),r.debug(G);n=t.nodes(),r.debug("New list of nodes",n);for(let o of n){let c=t.node(o);if(r.debug(" Now next level",o,c),c?.clusterNode)A(c.graph,i+1)}},"extractor"),X=e((t,i)=>{if(i.length===0)return[];let n=Object.assign([],i);return i.forEach((a)=>{let o=t.children(a),c=X(t,o);n=[...n,...c]}),n},"sorter"),ca=e((t)=>X(t,t.children()),"sortNodesByHierarchy"),_=e((t,i,n)=>{let a=t.parent(i);while(a&&a!==n){let o=G.get(a);if(o&&!o.externalConnections)return!0;a=t.parent(a)}return!1},"isNodeInExtractableCluster"),te=e((t,i,n)=>{let a=t.children(i)??[];for(let o of a){if(o===n||v(o,n))continue;let c=$n(o,t,i);if(!c)continue;if(!_(t,c,i))return c}return null},"findSafeAnchorNode");function lr({prepareLayout:t,measureLayout:i,runLayoutCore:n,paintLayout:a,afterPaint:o,paintOptions:c}){let u=i??F;return e(async function(l,g,h,C){let w=g.select("g");(h?.insertMarkers??Yn)(w,l.markers,l.type,l.diagramId),O();let f={element:w,helpers:h,options:C};f.preparedLayout=await t?.(l,f);let p=await u(l,f),E=await n(l,f),y={...f,measure:p};if(a)await a(l,y,E);else await j(l,y,c);await o?.(l,y,E)},"render")}e(lr,"createCommonLayoutRenderer");function O(){go(),vo(),yo(),Z()}e(O,"clearLayoutRenderState");async function F(t,{element:i},n){return await R(i,t,n)}e(F,"defaultMeasureLayout");async function j(t,i,n={}){let{measure:a}=i,{groups:o}=a;for(let u of n.getNodes?.(t,i)??t.nodes){if(n.skipNode?.(u,i))continue;await H(o,u,i,n)}let c=J(t.nodes);for(let u of t.edges){if(W(u,n))continue;await V(o,u,c,t,n,i)}}e(j,"paintLayoutData");async function H(t,i,n,a){if(i.clusterNode)ht(i);else if(z(i,n,a))await Kt(t.clusters,i);else ht(i)}e(H,"paintLayoutNode");function z(t,i,n){return t.isGroup===!0&&(n.isCluster?.(t,i)??!0)}e(z,"shouldPaintAsCluster");function J(t){let i=new Map;for(let n of t)if(n?.id)i.set(n.id,n);return i}e(J,"buildNodeLookup");function W(t,i){return t.isLayoutOnly||Boolean(i.skipEdge?.(t))}e(W,"shouldSkipPaintEdge");async function V(t,i,n,a,o,c){let u=Qt(t.edgePaths,{...i},o.clusterDb??new Map,a.type,L(i.start,i,n,c,o),L(i.end,i,n,c,o),a.diagramId,Y(i,o),a.layoutAlgorithm);if(Vi(i)){if(!Wn.has(i.id))await Tt(t.edgeLabels,i);q(i,u)}}e(V,"paintLayoutEdge");function L(t,i,n,a,o){return o.getEdgeNode?.(t,i,a)??(t?n.get(t)??{}:{})}e(L,"getRenderedNode");function Y(t,i){return typeof i.skipIntersect==="function"?i.skipIntersect(t):i.skipIntersect??!1}e(Y,"shouldSkipIntersect");function q(t,i){let n=i?.updatedPath??i?.originalPath,a=b(),{subGraphTitleTotalMargin:o}=Ct({flowchart:a.flowchart??{}});if(t.label){let c=Wn.get(t.id),{x:u,y:d}=Gi(t,i);c.attr("transform",`translate(${u}, ${d+o/2})`)}for(let[c,u]of[["startLeft",t.startLabelLeft],["startRight",t.startLabelRight],["endLeft",t.endLabelLeft],["endRight",t.endLabelRight]])if(u){let{x:d,y:l}=K(t,c,n);Me.get(t.id)[c].attr("transform",`translate(${d}, ${l})`)}}e(q,"positionRenderedEdgeLabel");var ne={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function K(t,i,n){let a=t.terminalLabelCenters?.[i];if(a)return{...a};if(!n)return{x:t.x,y:t.y};let o=i.startsWith("start")?t.arrowTypeStart:t.arrowTypeEnd;return N.calcTerminalLabelPosition(o?10:0,ne[i],n)}e(K,"terminalLabelTranslate");
1
+ import{e,r,b,s,N,M,Ct,St,go,ht,Qt,yo,Wn,Me,vo,Vi,Tt,Gi,Jt,Yn}from"./chunk-9dd1c37b.js";import{Q}from"./chunk-8ah6ce1b.js";import{x}from"./chunk-aqm3spxt.js";function sa(t,{edgePathsClass:i="edges edgePaths"}={}){let n=t.insert("g").attr("class","root"),a=n.insert("g").attr("class","clusters"),o=n.insert("g").attr("class",i),c=n.insert("g").attr("class","edgeLabels"),u=n.insert("g").attr("class","nodes");return{clusters:a,edgePaths:o,edgeLabels:c,nodes:u,rootGroups:n}}e(sa,"createLayoutElementGroups");async function S(t,i,n){if(i.label){let{shapeSvg:a,bbox:o}=await M(t,n===void 0?i:{...i,width:n});i.labelBBox={width:o.width,height:o.height},a.remove()}else i.labelBBox={width:0,height:0}}e(S,"measureGroupLabel");async function la(t,i,n){let a=await St(t,i,n),o=a.node()?.getBBox()??{width:0,height:0};return i.width=o.width,i.height=o.height,a}e(la,"insertMeasuredNode");function k(t,i,n){let a=t,o=new Set;while(a){if(a.dir)return a.dir;if(!a.parentId||o.has(a.parentId))break;o.add(a.parentId),a=i.get(a.parentId)}return n}e(k,"resolveNodeDir");async function R(t,i,n={}){let a=new Q({multigraph:!0,compound:!0}),o=[...i.edges],c=s(),u=sa(t),{edgeLabels:d,nodes:l}=u,g=new Map,h=new Map(i.nodes.map((f)=>[f.id,f])),C=i.direction,w=t.node()!=null;await Promise.all(i.nodes.map(async(f)=>{if(f.isGroup){if(w){let p=n.unwrapGroupLabels&&f.labelType!=="markdown";await S(l,f,p?Number.POSITIVE_INFINITY:void 0)}a.setNode(f.id,{...f})}else{if(w){let p=await la(l,f,{config:c,dir:k(f,h,C)});g.set(f.id,p)}a.setNode(f.id,{...f})}}));for(let f of o){if(w&&Vi(f))await Tt(d,f);if(a.setEdge(f.start,f.end,{...f},f.id),!i.edges.some((E)=>E.id===f.id))i.edges.push(f)}if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:f}=await (x("zrzq29e6"),import("./chunk-zrzq29e6.js"));f(t,i)}return{graph:a,groups:u,nodeElements:g}}e(R,"createGraphWithElements");var G=new Map,m=new Map,T=new Map,Z=e(()=>{m.clear(),T.clear(),G.clear()},"clear"),v=e((t,i)=>{let n=m.get(i)||[];return r.trace("In isDescendant",i," ",t," = ",n.includes(t)),n.includes(t)},"isDescendant"),I=e((t,i)=>{let n=m.get(i)||[];if(r.info("Descendants of ",i," is ",n),r.info("Edge is ",t),t.v===i||t.w===i)return!1;if(!n)return r.debug("Tilt, ",i,",not in descendants"),!1;return n.includes(t.v)||v(t.v,i)||v(t.w,i)||n.includes(t.w)},"edgeInCluster"),P=e((t,i,n,a)=>{r.debug("Copying children of ",t,"root",a,"data",i.node(t),a);let o=i.children(t)||[];if(t!==a)o.push(t);r.debug("Copying (nodes) clusterId",t,"nodes",o),o.forEach((c)=>{if(i.children(c).length>0)P(c,i,n,a);else{let u=i.node(c);if(r.info("cp ",c," to ",a," with parent ",t),n.setNode(c,u),a!==i.parent(c))r.debug("Setting parent",c,i.parent(c)),n.setParent(c,i.parent(c));if(t!==a&&c!==t)r.debug("Setting parent",c,t),n.setParent(c,t);else r.info("In copy ",t,"root",a,"data",i.node(t),a),r.debug("Not Setting parent for node=",c,"cluster!==rootId",t!==a,"node!==clusterId",c!==t);let d=i.edges(c);r.debug("Copying Edges",d),d.forEach((l)=>{r.info("Edge",l);let g=i.edge(l.v,l.w,l.name);r.info("Edge data",g,a);try{if(I(l,a))r.info("Copying as ",l.v,l.w,g,l.name),n.setEdge(l.v,l.w,g,l.name),r.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]));else r.info("Skipping copy of edge ",l.v,"-->",l.w," rootId: ",a," clusterId:",t)}catch(h){r.error(h)}})}r.debug("Removing node",c),i.removeNode(c)})},"copy"),B=e((t,i)=>{let n=i.children(t),a=[...n];for(let o of n)T.set(o,t),a=[...a,...B(o,i)];return a},"extractDescendants"),ee=e((t,i,n)=>{let a=t.edges().filter((l)=>l.v===i||l.w===i),o=t.edges().filter((l)=>l.v===n||l.w===n),c=a.map((l)=>({v:l.v===i?n:l.v,w:l.w===i?i:l.w})),u=o.map((l)=>({v:l.v,w:l.w}));return c.filter((l)=>u.some((g)=>l.v===g.v&&l.w===g.w))},"findCommonEdges"),$n=e((t,i,n)=>{let a=i.children(t);if(r.trace("Searching children of id ",t,a),a.length<1)return t;let o;for(let c of a){let u=$n(c,i,n),d=ee(i,n,u);if(u)if(d.length>0)o=u;else return u}return o},"findNonClusterChild"),D=e((t)=>{if(!G.has(t))return t;if(!G.get(t).externalConnections)return t;if(G.has(t))return G.get(t).id;return t},"getAnchorId"),eo=e((t,i)=>{if(!t||i>10){r.debug("Opting out, no graph ");return}else r.debug("Opting in, graph ");t.nodes().forEach(function(n){if(t.children(n).length>0)r.debug("Cluster identified",n," Replacement id in edges: ",$n(n,t,n)),m.set(n,B(n,t)),G.set(n,{id:$n(n,t,n),clusterData:t.node(n)})}),t.nodes().forEach(function(n){let a=t.children(n),o=t.edges();if(a.length>0)r.debug("Cluster identified",n,m),o.forEach((c)=>{let u=v(c.v,n),d=v(c.w,n);if(u^d)r.debug("Edge: ",c," leaves cluster ",n),r.debug("Descendants of XXX ",n,": ",m.get(n)),G.get(n).externalConnections=!0});else r.debug("Not a cluster ",n,m)});for(let n of G.keys()){let a=G.get(n).id,o=t.parent(a);if(o!==n&&G.has(o)&&!G.get(o).externalConnections)G.get(n).id=o;let c=t.edges().some((u)=>u.v===n);if(a&&G.get(n)?.externalConnections&&c&&_(t,a,n)){let u=te(t,n,t.parent(a));if(u)G.get(n).id=u}}t.edges().forEach(function(n){let a=t.edge(n);r.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),r.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(t.edge(n)));let{v:o,w:c}=n;if(r.debug("Fix XXX",G,"ids:",n.v,n.w,"Translating: ",G.get(n.v)," --- ",G.get(n.w)),G.get(n.v)||G.get(n.w)){if(r.debug("Fixing and trying - removing XXX",n.v,n.w,n.name),o=D(n.v),c=D(n.w),t.removeEdge(n.v,n.w,n.name),o!==n.v){let u=t.parent(o);G.get(u).externalConnections=!0,a.fromCluster=n.v}if(c!==n.w){let u=t.parent(c);G.get(u).externalConnections=!0,a.toCluster=n.w}r.debug("Fix Replacing with XXX",o,c,n.name),t.setEdge(o,c,a,n.name)}}),A(t,0),r.trace(G)},"adjustClustersAndEdges"),A=e((t,i)=>{if(i>10){r.error("Bailing out");return}let n=t.nodes(),a=!1;for(let o of n){let c=t.children(o);a=a||c.length>0}if(!a){r.debug("Done, no node has children",t.nodes());return}r.debug("Nodes = ",n,i);for(let o of n)if(r.debug("Extracting node",o,G,G.has(o)&&!G.get(o).externalConnections,!t.parent(o),t.node(o),t.children("D")," Depth ",i),!G.has(o))r.debug("Not a cluster",o,i);else if(!G.get(o).externalConnections&&t.children(o)&&t.children(o).length>0){r.debug("Cluster without external connections, without a parent and with children",o,i);let u=t.graph().rankdir==="TB"?"LR":"TB";if(G.get(o)?.clusterData?.dir)u=G.get(o).clusterData.dir,r.debug("Fixing dir",G.get(o).clusterData.dir,u);let d=new Q({multigraph:!0,compound:!0}).setGraph({rankdir:u,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});P(o,t,d,o),t.setNode(o,{clusterNode:!0,id:o,clusterData:G.get(o).clusterData,label:G.get(o).label,graph:d})}else r.debug("Cluster ** ",o," **not meeting the criteria !externalConnections:",!G.get(o).externalConnections," no parent: ",!t.parent(o)," children ",t.children(o)&&t.children(o).length>0,t.children("D"),i),r.debug(G);n=t.nodes(),r.debug("New list of nodes",n);for(let o of n){let c=t.node(o);if(r.debug(" Now next level",o,c),c?.clusterNode)A(c.graph,i+1)}},"extractor"),X=e((t,i)=>{if(i.length===0)return[];let n=Object.assign([],i);return i.forEach((a)=>{let o=t.children(a),c=X(t,o);n=[...n,...c]}),n},"sorter"),ca=e((t)=>X(t,t.children()),"sortNodesByHierarchy"),_=e((t,i,n)=>{let a=t.parent(i);while(a&&a!==n){let o=G.get(a);if(o&&!o.externalConnections)return!0;a=t.parent(a)}return!1},"isNodeInExtractableCluster"),te=e((t,i,n)=>{let a=t.children(i)??[];for(let o of a){if(o===n||v(o,n))continue;let c=$n(o,t,i);if(!c)continue;if(!_(t,c,i))return c}return null},"findSafeAnchorNode");function lr({prepareLayout:t,measureLayout:i,runLayoutCore:n,paintLayout:a,afterPaint:o,paintOptions:c}){let u=i??F;return e(async function(l,g,h,C){let w=g.select("g");(h?.insertMarkers??Yn)(w,l.markers,l.type,l.diagramId),O();let f={element:w,helpers:h,options:C};f.preparedLayout=await t?.(l,f);let p=await u(l,f),E=await n(l,f),y={...f,measure:p};if(a)await a(l,y,E);else await j(l,y,c);await o?.(l,y,E)},"render")}e(lr,"createCommonLayoutRenderer");function O(){go(),vo(),yo(),Z()}e(O,"clearLayoutRenderState");async function F(t,{element:i},n){return await R(i,t,n)}e(F,"defaultMeasureLayout");async function j(t,i,n={}){let{measure:a}=i,{groups:o}=a;for(let u of n.getNodes?.(t,i)??t.nodes){if(n.skipNode?.(u,i))continue;await H(o,u,i,n)}let c=J(t.nodes);for(let u of t.edges){if(W(u,n))continue;await V(o,u,c,t,n,i)}}e(j,"paintLayoutData");async function H(t,i,n,a){if(i.clusterNode)ht(i);else if(z(i,n,a))await Qt(t.clusters,i);else ht(i)}e(H,"paintLayoutNode");function z(t,i,n){return t.isGroup===!0&&(n.isCluster?.(t,i)??!0)}e(z,"shouldPaintAsCluster");function J(t){let i=new Map;for(let n of t)if(n?.id)i.set(n.id,n);return i}e(J,"buildNodeLookup");function W(t,i){return t.isLayoutOnly||Boolean(i.skipEdge?.(t))}e(W,"shouldSkipPaintEdge");async function V(t,i,n,a,o,c){let u=Jt(t.edgePaths,{...i},o.clusterDb??new Map,a.type,L(i.start,i,n,c,o),L(i.end,i,n,c,o),a.diagramId,Y(i,o),a.layoutAlgorithm);if(Vi(i)){if(!Wn.has(i.id))await Tt(t.edgeLabels,i);q(i,u)}}e(V,"paintLayoutEdge");function L(t,i,n,a,o){return o.getEdgeNode?.(t,i,a)??(t?n.get(t)??{}:{})}e(L,"getRenderedNode");function Y(t,i){return typeof i.skipIntersect==="function"?i.skipIntersect(t):i.skipIntersect??!1}e(Y,"shouldSkipIntersect");function q(t,i){let n=i?.updatedPath??i?.originalPath,a=b(),{subGraphTitleTotalMargin:o}=Ct({flowchart:a.flowchart??{}});if(t.label){let c=Wn.get(t.id),{x:u,y:d}=Gi(t,i);c.attr("transform",`translate(${u}, ${d+o/2})`)}for(let[c,u]of[["startLeft",t.startLabelLeft],["startRight",t.startLabelRight],["endLeft",t.endLabelLeft],["endRight",t.endLabelRight]])if(u){let{x:d,y:l}=K(t,c,n);Me.get(t.id)[c].attr("transform",`translate(${d}, ${l})`)}}e(q,"positionRenderedEdgeLabel");var ne={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function K(t,i,n){let a=t.terminalLabelCenters?.[i];if(a)return{...a};if(!n)return{x:t.x,y:t.y};let o=i.startsWith("start")?t.arrowTypeStart:t.arrowTypeEnd;return N.calcTerminalLabelPosition(o?10:0,ne[i],n)}e(K,"terminalLabelTranslate");
2
2
  export{sa,la,G,$n,eo,ca,lr};
@@ -1 +1 @@
1
- import{h,o,i,a,v,t,n,_,gt,te,ue}from"./chunk-vt40e1kp.js";var H={global:"全局",project:"项目",custom:"自定义",builtin:"内置"};function O({skill:s,issue:x,connection:y}){let{Button:P,CopyButton:f,style:w,useTheme:S}=_();S();let[m,L]=a(),[j,g]=a(),[I,D]=a(0);return o(()=>{let c=!0;g(void 0),L(void 0);let p=new URLSearchParams;if(s.projectID)p.set("projectID",s.projectID);if(s.location)p.set("location",s.location);let b=p.toString()?`?${p.toString()}`:"";return Promise.all([y.request(`/api/skills/${encodeURIComponent(s.name)}/content${b}`),y.request(`/api/skills/${encodeURIComponent(s.name)}/files${b}`)]).then(([u,N])=>{if(c)L({text:u.text,files:N.files})}).catch((u)=>{if(c)g(u instanceof Error?u.message:"读取失败")}),()=>{c=!1}},[y,s.name,s.projectID,s.location,I]),n("div",{className:"min-w-0 space-y-5 text-sm text-ink",children:[t("p",{className:"whitespace-pre-wrap break-words [overflow-wrap:anywhere] text-dim",children:s.description||"暂无描述"}),n("div",{children:[n("p",{className:"break-all text-xs text-dim",children:[H[s.scope],s.projectName?` · ${s.projectName}`:""]}),n("div",{className:"mt-1 flex min-w-0 items-center gap-2",children:[t("code",{className:w("markdown.inlineCode","min-w-0 flex-1 break-all text-xs"),children:s.location}),t(f,{text:s.location,label:"复制完整路径",className:"size-10"})]})]}),n("ul",{className:"space-y-1 break-words text-xs text-dim",children:[t("li",{children:"启用状态按名称生效,影响所有同名技能的新会话可用性。"}),s.disableModelInvocation&&t("li",{children:"仅手动:可由用户调用,不向模型自动提供。"}),s.platforms&&n("li",{children:["平台限制:",s.platforms.join("、")]}),s.disabled&&t("li",{children:"已禁用:不会提供给新会话。"}),x?.overriddenBy&&n("li",{className:"break-all",children:["被覆盖:同名技能优先使用 ",x.overriddenBy]})]}),s.commands?.length?n("div",{children:[t("h3",{className:"font-medium",children:"bin 命令"}),t("p",{className:"mt-1 text-xs text-dim",children:"技能目录中的可执行命令。"}),t("ul",{className:"mt-2 space-y-1 font-mono text-xs",children:s.commands.map((c)=>t("li",{className:"break-all",children:c},c))})]}):null,j?n("div",{role:"alert",className:"space-y-2",children:[n("p",{className:"break-words text-danger",children:["读取失败:",j]}),t(P,{className:"h-10",onClick:()=>D(I+1),children:"重试"})]}):!m?t("p",{role:"status",className:"text-dim",children:"正在读取文件…"}):n(v,{children:[n("section",{children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[t("h3",{className:"font-medium",children:"SKILL.md 原文"}),t(f,{text:m.text,label:"复制 SKILL.md 原文",className:"size-10"})]}),n("p",{className:"mb-2 text-xs text-faint",children:[m.text.length.toLocaleString()," 字符 · 约 ",Math.ceil(m.text.length/4).toLocaleString()," ","tokens(估算)"]}),t("pre",{className:w("surface.subtle",w("chat.toolOutput"),"rounded-lg bg-raised p-3 text-xs leading-5 break-all"),children:m.text})]}),n("section",{children:[n("h3",{className:"font-medium",children:["目录文件 · ",m.files.length,m.files.length===200?"(最多显示 200 个)":""]}),t("ul",{className:"mt-2 space-y-1 font-mono text-xs text-dim",children:m.files.map((c)=>t("li",{className:"break-all",children:c},c))})]})]})]})}var J="size-4 cursor-pointer rounded border-line text-accent accent-accent focus-visible:outline-2 focus-visible:outline-accent";function ae({connection:s}){let{Button:x,Input:y,Dialog:P,style:f,useTheme:w}=_();w();let[S,m]=a([]),[L,j]=a([]),[g,I]=a(),[D,c]=a(""),[p,b]=a(),[u,N]=a(!0),[q,B]=a(),[z,A]=a(),d=i(0),k=i(!1),C=h(async(e=!1)=>{let l=++d.current;k.current=!0,N(!0);try{if(e)await s.request("/api/skills/rescan",{method:"POST"});let[r,T]=await Promise.all([s.request("/api/skills?all=true"),s.request("/api/skills/settings")]);if(l!==d.current)return;m(r.skills),j(r.issues),I(T),A(new Date),B(void 0)}catch(r){if(l===d.current)B(r instanceof Error?r.message:"读取失败")}finally{if(l===d.current)k.current=!1,N(!1)}},[s]);o(()=>(C(),()=>{d.current++}),[C]);async function K(e){if(k.current)return;k.current=!0;let l=++d.current;N(!0);try{let r=await s.request("/api/skills/settings",{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(e)});if(l!==d.current)return;I(r),await C()}catch(r){if(l!==d.current)return;B(r instanceof Error?r.message:"保存设置失败"),k.current=!1,N(!1)}}let W=D.trim().toLocaleLowerCase(),E=S.filter((e)=>`${e.name} ${e.description??""}`.toLocaleLowerCase().includes(W)),R=(e)=>L.find((l)=>l.kind==="overridden"&&(l.path==="<built-in>"?e.scope==="builtin":l.path.replace(/\\/g,"/")===`${e.location.replace(/\\/g,"/")}/SKILL.md`));return n("div",{className:"min-w-0 space-y-6",children:[n("section",{className:"min-w-0",children:[n("div",{className:"mb-2.5 flex flex-wrap items-end justify-between gap-3 px-0.5",children:[n("div",{className:"min-w-0 flex-1 basis-48",children:[t("h2",{className:f("settings.groupTitle"),children:"技能"}),t("p",{"aria-live":"polite",className:f("settings.groupDesc"),children:z&&`找到 ${S.length} 个 · ${z.toLocaleTimeString("zh-CN",{hour12:!1})}`})]}),n(x,{variant:"ghost",disabled:u,onClick:()=>C(!0),className:"h-9 px-2.5 text-xs",children:[t(te,{className:`size-3.5 ${u?"animate-spin":""}`}),t("span",{className:"ml-1",children:"重新扫描"})]})]}),q&&n("div",{role:"alert",className:"mb-3 flex flex-wrap items-center gap-2 rounded-xl border border-line p-3",children:[n("p",{className:"min-w-0 flex-1 break-words text-sm text-danger",children:["无法更新技能:",q]}),t(x,{disabled:u,onClick:()=>C(),children:"重试"})]}),n("div",{className:"relative mb-3 min-w-0",children:[t(ue,{"aria-hidden":!0,className:"pointer-events-none absolute top-3 left-3 size-4 text-faint"}),t(y,{type:"search","aria-label":"搜索技能",placeholder:"搜索技能",value:D,onChange:(e)=>c(e.target.value),className:"h-10 min-w-0 pl-9"})]}),t("div",{className:f("settings.groupBox"),children:u&&!S.length?t("div",{role:"status","aria-label":"正在加载",className:"divide-y divide-line",children:[0,1,2].map((e)=>n("div",{className:"h-16 space-y-2 px-4 py-3",children:[t("div",{className:"h-3 w-24 animate-pulse rounded bg-raised"}),t("div",{className:"h-3 w-2/3 animate-pulse rounded bg-raised"})]},e))}):E.length===0?t("p",{className:"p-4 text-sm text-dim",children:"没有找到匹配的技能"}):t("ul",{className:"divide-y divide-line",children:E.map((e)=>{let l=R(e),r=e.disabled;return n("li",{className:`flex min-w-0 items-center justify-between gap-3 px-4 py-2.5 transition-colors hover:bg-raised/40 ${r?"opacity-55":""}`,children:[n("button",{type:"button",className:"group flex min-h-12 min-w-0 flex-1 cursor-pointer items-center gap-3 py-1 text-left focus-visible:outline-2 focus-visible:outline-accent","aria-label":`查看技能 ${e.name}`,onClick:()=>b(e),children:[n("span",{className:"min-w-0 flex-1",children:[n("span",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[t("span",{className:"truncate text-sm font-medium text-ink",title:e.name,children:e.name}),l&&n("span",{className:"flex shrink-0 items-center gap-1 text-xs text-warning",children:[t(gt,{className:"size-3.5"}),"被覆盖"]})]}),e.description&&t("span",{className:"mt-0.5 block truncate text-xs text-dim",title:e.description,children:e.description})]}),t("span",{className:f("control.badge","shrink-0 text-[11px] text-dim"),children:e.scope==="project"?"项目":e.scope==="builtin"?"built-in":"全局"})]}),t("span",{className:"relative flex size-10 shrink-0 items-center justify-center",children:t("input",{type:"checkbox","aria-label":`启用技能 ${e.name}`,className:J,disabled:u,checked:!r,onChange:(T)=>{if(!g)return;let U=g.disabled??[],M=T.target.checked?U.filter((F)=>F!==e.name):[...U,e.name];K({...g,disabled:M})}})})]},`${e.scope}:${e.projectID??""}:${e.name}`)})})})]}),t(P,{open:Boolean(p),onOpenChange:(e)=>{if(!e)b(void 0)},title:p?.name??"",size:"lg",footer:t("div",{className:"flex w-full justify-end",children:t(x,{variant:"primary",onClick:()=>b(void 0),children:"关闭"})}),children:p&&t(O,{skill:p,issue:R(p),connection:s})})]})}export{ae as SkillsSection};
1
+ import{h,o,i,a,v,t,n,_,gt,te,de}from"./chunk-aqm3spxt.js";var H={global:"全局",project:"项目",custom:"自定义",builtin:"内置"};function O({skill:s,issue:x,connection:y}){let{Button:P,CopyButton:f,style:w,useTheme:S}=_();S();let[m,L]=a(),[j,g]=a(),[I,D]=a(0);return o(()=>{let c=!0;g(void 0),L(void 0);let p=new URLSearchParams;if(s.projectID)p.set("projectID",s.projectID);if(s.location)p.set("location",s.location);let b=p.toString()?`?${p.toString()}`:"";return Promise.all([y.request(`/api/skills/${encodeURIComponent(s.name)}/content${b}`),y.request(`/api/skills/${encodeURIComponent(s.name)}/files${b}`)]).then(([u,N])=>{if(c)L({text:u.text,files:N.files})}).catch((u)=>{if(c)g(u instanceof Error?u.message:"读取失败")}),()=>{c=!1}},[y,s.name,s.projectID,s.location,I]),n("div",{className:"min-w-0 space-y-5 text-sm text-ink",children:[t("p",{className:"whitespace-pre-wrap break-words [overflow-wrap:anywhere] text-dim",children:s.description||"暂无描述"}),n("div",{children:[n("p",{className:"break-all text-xs text-dim",children:[H[s.scope],s.projectName?` · ${s.projectName}`:""]}),n("div",{className:"mt-1 flex min-w-0 items-center gap-2",children:[t("code",{className:w("markdown.inlineCode","min-w-0 flex-1 break-all text-xs"),children:s.location}),t(f,{text:s.location,label:"复制完整路径",className:"size-10"})]})]}),n("ul",{className:"space-y-1 break-words text-xs text-dim",children:[t("li",{children:"启用状态按名称生效,影响所有同名技能的新会话可用性。"}),s.disableModelInvocation&&t("li",{children:"仅手动:可由用户调用,不向模型自动提供。"}),s.platforms&&n("li",{children:["平台限制:",s.platforms.join("、")]}),s.disabled&&t("li",{children:"已禁用:不会提供给新会话。"}),x?.overriddenBy&&n("li",{className:"break-all",children:["被覆盖:同名技能优先使用 ",x.overriddenBy]})]}),s.commands?.length?n("div",{children:[t("h3",{className:"font-medium",children:"bin 命令"}),t("p",{className:"mt-1 text-xs text-dim",children:"技能目录中的可执行命令。"}),t("ul",{className:"mt-2 space-y-1 font-mono text-xs",children:s.commands.map((c)=>t("li",{className:"break-all",children:c},c))})]}):null,j?n("div",{role:"alert",className:"space-y-2",children:[n("p",{className:"break-words text-danger",children:["读取失败:",j]}),t(P,{className:"h-10",onClick:()=>D(I+1),children:"重试"})]}):!m?t("p",{role:"status",className:"text-dim",children:"正在读取文件…"}):n(v,{children:[n("section",{children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[t("h3",{className:"font-medium",children:"SKILL.md 原文"}),t(f,{text:m.text,label:"复制 SKILL.md 原文",className:"size-10"})]}),n("p",{className:"mb-2 text-xs text-faint",children:[m.text.length.toLocaleString()," 字符 · 约 ",Math.ceil(m.text.length/4).toLocaleString()," ","tokens(估算)"]}),t("pre",{className:w("surface.subtle",w("chat.toolOutput"),"rounded-lg bg-raised p-3 text-xs leading-5 break-all"),children:m.text})]}),n("section",{children:[n("h3",{className:"font-medium",children:["目录文件 · ",m.files.length,m.files.length===200?"(最多显示 200 个)":""]}),t("ul",{className:"mt-2 space-y-1 font-mono text-xs text-dim",children:m.files.map((c)=>t("li",{className:"break-all",children:c},c))})]})]})]})}var J="size-4 cursor-pointer rounded border-line text-accent accent-accent focus-visible:outline-2 focus-visible:outline-accent";function ae({connection:s}){let{Button:x,Input:y,Dialog:P,style:f,useTheme:w}=_();w();let[S,m]=a([]),[L,j]=a([]),[g,I]=a(),[D,c]=a(""),[p,b]=a(),[u,N]=a(!0),[q,B]=a(),[z,A]=a(),d=i(0),k=i(!1),C=h(async(e=!1)=>{let l=++d.current;k.current=!0,N(!0);try{if(e)await s.request("/api/skills/rescan",{method:"POST"});let[r,T]=await Promise.all([s.request("/api/skills?all=true"),s.request("/api/skills/settings")]);if(l!==d.current)return;m(r.skills),j(r.issues),I(T),A(new Date),B(void 0)}catch(r){if(l===d.current)B(r instanceof Error?r.message:"读取失败")}finally{if(l===d.current)k.current=!1,N(!1)}},[s]);o(()=>(C(),()=>{d.current++}),[C]);async function K(e){if(k.current)return;k.current=!0;let l=++d.current;N(!0);try{let r=await s.request("/api/skills/settings",{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(e)});if(l!==d.current)return;I(r),await C()}catch(r){if(l!==d.current)return;B(r instanceof Error?r.message:"保存设置失败"),k.current=!1,N(!1)}}let W=D.trim().toLocaleLowerCase(),E=S.filter((e)=>`${e.name} ${e.description??""}`.toLocaleLowerCase().includes(W)),R=(e)=>L.find((l)=>l.kind==="overridden"&&(l.path==="<built-in>"?e.scope==="builtin":l.path.replace(/\\/g,"/")===`${e.location.replace(/\\/g,"/")}/SKILL.md`));return n("div",{className:"min-w-0 space-y-6",children:[n("section",{className:"min-w-0",children:[n("div",{className:"mb-2.5 flex flex-wrap items-end justify-between gap-3 px-0.5",children:[n("div",{className:"min-w-0 flex-1 basis-48",children:[t("h2",{className:f("settings.groupTitle"),children:"技能"}),t("p",{"aria-live":"polite",className:f("settings.groupDesc"),children:z&&`找到 ${S.length} 个 · ${z.toLocaleTimeString("zh-CN",{hour12:!1})}`})]}),n(x,{variant:"ghost",disabled:u,onClick:()=>C(!0),className:"h-9 px-2.5 text-xs",children:[t(te,{className:`size-3.5 ${u?"animate-spin":""}`}),t("span",{className:"ml-1",children:"重新扫描"})]})]}),q&&n("div",{role:"alert",className:"mb-3 flex flex-wrap items-center gap-2 rounded-xl border border-line p-3",children:[n("p",{className:"min-w-0 flex-1 break-words text-sm text-danger",children:["无法更新技能:",q]}),t(x,{disabled:u,onClick:()=>C(),children:"重试"})]}),n("div",{className:"relative mb-3 min-w-0",children:[t(de,{"aria-hidden":!0,className:"pointer-events-none absolute top-3 left-3 size-4 text-faint"}),t(y,{type:"search","aria-label":"搜索技能",placeholder:"搜索技能",value:D,onChange:(e)=>c(e.target.value),className:"h-10 min-w-0 pl-9"})]}),t("div",{className:f("settings.groupBox"),children:u&&!S.length?t("div",{role:"status","aria-label":"正在加载",className:"divide-y divide-line",children:[0,1,2].map((e)=>n("div",{className:"h-16 space-y-2 px-4 py-3",children:[t("div",{className:"h-3 w-24 animate-pulse rounded bg-raised"}),t("div",{className:"h-3 w-2/3 animate-pulse rounded bg-raised"})]},e))}):E.length===0?t("p",{className:"p-4 text-sm text-dim",children:"没有找到匹配的技能"}):t("ul",{className:"divide-y divide-line",children:E.map((e)=>{let l=R(e),r=e.disabled;return n("li",{className:`flex min-w-0 items-center justify-between gap-3 px-4 py-2.5 transition-colors hover:bg-raised/40 ${r?"opacity-55":""}`,children:[n("button",{type:"button",className:"group flex min-h-12 min-w-0 flex-1 cursor-pointer items-center gap-3 py-1 text-left focus-visible:outline-2 focus-visible:outline-accent","aria-label":`查看技能 ${e.name}`,onClick:()=>b(e),children:[n("span",{className:"min-w-0 flex-1",children:[n("span",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[t("span",{className:"truncate text-sm font-medium text-ink",title:e.name,children:e.name}),l&&n("span",{className:"flex shrink-0 items-center gap-1 text-xs text-warning",children:[t(gt,{className:"size-3.5"}),"被覆盖"]})]}),e.description&&t("span",{className:"mt-0.5 block truncate text-xs text-dim",title:e.description,children:e.description})]}),t("span",{className:f("control.badge","shrink-0 text-[11px] text-dim"),children:e.scope==="project"?"项目":e.scope==="builtin"?"built-in":"全局"})]}),t("span",{className:"relative flex size-10 shrink-0 items-center justify-center",children:t("input",{type:"checkbox","aria-label":`启用技能 ${e.name}`,className:J,disabled:u,checked:!r,onChange:(T)=>{if(!g)return;let U=g.disabled??[],M=T.target.checked?U.filter((F)=>F!==e.name):[...U,e.name];K({...g,disabled:M})}})})]},`${e.scope}:${e.projectID??""}:${e.name}`)})})})]}),t(P,{open:Boolean(p),onOpenChange:(e)=>{if(!e)b(void 0)},title:p?.name??"",size:"lg",footer:t("div",{className:"flex w-full justify-end",children:t(x,{variant:"primary",onClick:()=>b(void 0),children:"关闭"})}),children:p&&t(O,{skill:p,issue:R(p),connection:s})})]})}export{ae as SkillsSection};
@@ -0,0 +1 @@
1
+ import{ar}from"./chunk-qryrg2pq.js";export{ar as createRailroadEbnfServices};
@@ -0,0 +1 @@
1
+ import{hi}from"./chunk-qryrg2pq.js";export{hi as createRadarServices};