@softistx/pulsarix-widget 0.8.5 → 0.9.1

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 (116) hide show
  1. package/README.md +45 -22
  2. package/dist/chunks/{abnfDiagram-XWFEHMT6.b9yk4x5x.js → abnfDiagram-XWFEHMT6.xef4vppv.js} +1 -1
  3. package/dist/chunks/architecture-WOLXFQ4H.pp4drcrh.js +1 -0
  4. package/dist/chunks/{architectureDiagram-CSQXQB3N.qz18rz0g.js → architectureDiagram-CSQXQB3N.0bddzt5e.js} +1 -1
  5. package/dist/chunks/{blockDiagram-BEDRHYPZ.bb08b9nt.js → blockDiagram-BEDRHYPZ.wgdr8xfr.js} +1 -1
  6. package/dist/chunks/{c4Diagram-M2UUVUY5.px0epccd.js → c4Diagram-M2UUVUY5.t09pndbz.js} +1 -1
  7. package/dist/chunks/{chat-markdown-CrbWbK1O.k4nmgyey.js → chat-markdown-CQ4fSIYN.cv3fprzq.js} +2 -2
  8. package/dist/chunks/{classDiagram-v2-KXABOMEV.f02387t9.js → classDiagram-v2-KXABOMEV.9yfjtevj.js} +1 -1
  9. package/dist/chunks/{cose-bilkent-JH36ORCC.azq9k24r.js → cose-bilkent-JH36ORCC.qam7r9b1.js} +1 -1
  10. package/dist/chunks/cynefin-EF2NZ3EQ.wgr8qmb2.js +1 -0
  11. package/dist/chunks/{cynefinDiagram-NJNITYFG.zt7gprt1.js → cynefinDiagram-NJNITYFG.k6mhek0s.js} +1 -1
  12. package/dist/chunks/{dagre-KIHZ2IZ3.702bqbr9.js → dagre-KIHZ2IZ3.sqeg911s.js} +1 -1
  13. package/dist/chunks/{diagram-7YQZDPLS.m7vf21j6.js → diagram-7YQZDPLS.k1qvmctj.js} +1 -1
  14. package/dist/chunks/{diagram-QBROCOUO.33e5hv7x.js → diagram-QBROCOUO.v7fe7e4g.js} +1 -1
  15. package/dist/chunks/{diagram-RJJCUUZO.94k74bz7.js → diagram-RJJCUUZO.12s15pm6.js} +1 -1
  16. package/dist/chunks/{diagram-WERXNKYE.7fe849z6.js → diagram-WERXNKYE.tmrcv4we.js} +1 -1
  17. package/dist/chunks/{diagram-YHHI257C.qjjjfq7w.js → diagram-YHHI257C.7735ve6v.js} +1 -1
  18. package/dist/chunks/{diagram-YR4HJLHV.310x2we2.js → diagram-YR4HJLHV.nytxr7pa.js} +1 -1
  19. package/dist/chunks/{ebnfDiagram-N527522P.a4crteq1.js → ebnfDiagram-N527522P.6eqw92nv.js} +1 -1
  20. package/dist/chunks/{editor-shortcuts-dialog-B0ppoiza.x3p4h07t.js → editor-shortcuts-dialog-VmvMTjnq.mm7ab69f.js} +1 -1
  21. package/dist/chunks/editor.wb4jsrjy.js +4 -0
  22. package/dist/chunks/{elk-O5DQBFGD.dx61etan.js → elk-O5DQBFGD.a5rqryhg.js} +1 -1
  23. package/dist/chunks/{emoji-picker-CbvQZ2ZL.nst616hd.js → emoji-picker-bnO0yA8e.bymgjc9a.js} +1 -1
  24. package/dist/chunks/{erDiagram-K3K3BIDK.qzqv67zm.js → erDiagram-K3K3BIDK.exfeddaa.js} +1 -1
  25. package/dist/chunks/eventmodeling-K75KTNOO.nkahp6zg.js +1 -0
  26. package/dist/chunks/{flow-diagram-AiM6FiIm.73jr19pb.js → flow-diagram-Byy7DBZZ.pf5vdbkn.js} +1 -1
  27. package/dist/chunks/flowDiagram-Z6JWZHQI.54yz6gfm.js +1 -0
  28. package/dist/chunks/{ganttDiagram-3PRQTZWP.xngzb32h.js → ganttDiagram-3PRQTZWP.0tjaeqjw.js} +1 -1
  29. package/dist/chunks/gitGraph-VSP46ZUC.2a0am491.js +1 -0
  30. package/dist/chunks/{gitGraphDiagram-VXDFKS5L.1sm36z2q.js → gitGraphDiagram-VXDFKS5L.6vvbj88t.js} +1 -1
  31. package/dist/chunks/{grid-E2QIVN74.76pgtn2n.js → grid-E2QIVN74.frpdy6t3.js} +1 -1
  32. package/dist/chunks/illustration-BfueshiW.syv54ccw.js +1 -0
  33. package/dist/chunks/{index.fbeztcp3.js → index.0kv7tp87.js} +1 -1
  34. package/dist/chunks/{index.r0p3fm9f.js → index.3pn4wy4j.js} +1 -1
  35. package/dist/chunks/{index.0e4s8r4m.js → index.7q6v461v.js} +1 -1
  36. package/dist/chunks/{index.hvdnkr5m.js → index.93zpfh3k.js} +1 -1
  37. package/dist/chunks/{index.32jxrb9b.js → index.bs3ygyp2.js} +1 -1
  38. package/dist/chunks/{index.7gxz6d1f.js → index.d8b8y928.js} +2 -2
  39. package/dist/chunks/{index.t34t6kpe.js → index.f6jhkm5c.js} +1 -1
  40. package/dist/chunks/{index.8f3x951p.js → index.kh3f3gw8.js} +1 -1
  41. package/dist/chunks/{index.zm5x44tn.js → index.mcyw2bze.js} +1 -1
  42. package/dist/chunks/{index.7k5v3p25.js → index.newjn1k4.js} +1 -1
  43. package/dist/chunks/{index.1d7qpsyx.js → index.nrd5w1x0.js} +1 -1
  44. package/dist/chunks/{index.9bf5qrah.js → index.pyz71tqx.js} +1 -1
  45. package/dist/chunks/index.rn0vxns6.js +44 -0
  46. package/dist/chunks/{index.0k4tbjhp.js → index.sv013f1z.js} +1 -1
  47. package/dist/chunks/{index.dnnzjw18.js → index.xrg5yg8d.js} +1 -1
  48. package/dist/chunks/{index.wrjdgn4c.js → index.yexf86bf.js} +1 -1
  49. package/dist/chunks/{index.a1bxkgd3.js → index.yfbwd99n.js} +2 -2
  50. package/dist/chunks/{index.rfyzb2yv.js → index.zjykrx6y.js} +1 -1
  51. package/dist/chunks/info-OHQRW6UA.4824y3cd.js +1 -0
  52. package/dist/chunks/{infoDiagram-EZ3ZOAHP.pfd0fjwn.js → infoDiagram-EZ3ZOAHP.qh2bwz3m.js} +1 -1
  53. package/dist/chunks/{ishikawaDiagram-S3EKX5GW.h5kjez1x.js → ishikawaDiagram-S3EKX5GW.w2v6vnwd.js} +1 -1
  54. package/dist/chunks/{journeyDiagram-POQNLL5X.55cqc9p0.js → journeyDiagram-POQNLL5X.ftkfdsrw.js} +1 -1
  55. package/dist/chunks/{kanban-definition-BH5XI6FM.pkdvda4y.js → kanban-definition-BH5XI6FM.9scqhcx5.js} +1 -1
  56. package/dist/chunks/{markup-color-chrome-ykGNUl8y.0ds56d6x.js → markup-color-chrome-ykGNUl8y.8cysjsfb.js} +1 -1
  57. package/dist/chunks/{markup-custom-color-Dgm2hHI7.7darvajx.js → markup-custom-color-CytmKw-R.d25j0pcj.js} +1 -1
  58. package/dist/chunks/{mention-list-CkAUzPBG.mtjgmmzb.js → mention-list-5h2lZwEU.wffam6eb.js} +1 -1
  59. package/dist/chunks/{mermaid.core.j7s05j63.js → mermaid.core.tnh468qk.js} +2 -2
  60. package/dist/chunks/{mindmap-definition-WVAN44T4.x3jbxvft.js → mindmap-definition-WVAN44T4.gskntx1f.js} +1 -1
  61. package/dist/chunks/packet-JDAUHWVQ.w0pv2dxr.js +1 -0
  62. package/dist/chunks/{panel.9tp7gr60.js → panel.dq8vt40k.js} +1 -1
  63. package/dist/chunks/{pegDiagram-D4NLKWP3.xq15gqy9.js → pegDiagram-D4NLKWP3.yb58dpky.js} +1 -1
  64. package/dist/chunks/pie-XZMESJXO.zq72f2fq.js +1 -0
  65. package/dist/chunks/{pieDiagram-36ENHN4W.8h0wam54.js → pieDiagram-36ENHN4W.7pgn8ayz.js} +1 -1
  66. package/dist/chunks/{plated-illustration-COZYWJ81.xy7ba5mq.js → plated-illustration-VrnsTz7H.tcyq0sxa.js} +1 -1
  67. package/dist/chunks/{quadrantDiagram-ZQUDMS73.k28g8jpn.js → quadrantDiagram-ZQUDMS73.1a721ces.js} +1 -1
  68. package/dist/chunks/radar-ABXABTNO.288gs0b8.js +1 -0
  69. package/dist/chunks/railroad-I3PHUGI6.aadrd13j.js +1 -0
  70. package/dist/chunks/railroad-abnf-LNEFI6M7.6btgmncj.js +1 -0
  71. package/dist/chunks/railroad-ebnf-DWYD2UWJ.y44ppt8p.js +1 -0
  72. package/dist/chunks/railroad-peg-JR7BVNR7.328jgxkz.js +1 -0
  73. package/dist/chunks/{railroadDiagram-JIZHGYPL.e7p2vqgg.js → railroadDiagram-JIZHGYPL.xpgkt1zp.js} +1 -1
  74. package/dist/chunks/{render-VIF2ZAQL.w5ytncsg.js → render-VIF2ZAQL.khtqjmgm.js} +1 -1
  75. package/dist/chunks/{requirementDiagram-AXW2TVFA.arekdz02.js → requirementDiagram-AXW2TVFA.ms6anxwg.js} +1 -1
  76. package/dist/chunks/{sankeyDiagram-FBCJTAIF.1d04xcmb.js → sankeyDiagram-FBCJTAIF.40yzed7d.js} +1 -1
  77. package/dist/chunks/{sequenceDiagram-3LA2ROMG.j4xywwp1.js → sequenceDiagram-3LA2ROMG.z0h3shw2.js} +1 -1
  78. package/dist/chunks/{sizeCapture-2Q2CQKSF.862bnf6p.js → sizeCapture-2Q2CQKSF.4dh5g271.js} +1 -1
  79. package/dist/chunks/{stateDiagram-v2-ATKHQDJO.xvvtr0y2.js → stateDiagram-v2-ATKHQDJO.5ftcgs8s.js} +1 -1
  80. package/dist/chunks/{swimlanes-YQL5WMAO.dtnjb4xt.js → swimlanes-YQL5WMAO.r6vmskrb.js} +1 -1
  81. package/dist/chunks/swimlanesDiagram-UCCPES4V.exhrz16x.js +8 -0
  82. package/dist/chunks/{timeline-definition-7Z437IG3.zfhqzc4r.js → timeline-definition-7Z437IG3.eke70hfq.js} +1 -1
  83. package/dist/chunks/treeView-D4JQ5SDB.xz61fh4x.js +1 -0
  84. package/dist/chunks/treemap-SAJKECNS.8gv7pmqr.js +1 -0
  85. package/dist/chunks/{usecaseDiagram-RDK6N6HP.ewxnyz4c.js → usecaseDiagram-RDK6N6HP.d8p4tnc6.js} +1 -1
  86. package/dist/chunks/{vennDiagram-SHRQU5PJ.wkzf1f00.js → vennDiagram-SHRQU5PJ.4s46abxd.js} +1 -1
  87. package/dist/chunks/wardley-7MLQ67FV.6v9j3be8.js +1 -0
  88. package/dist/chunks/{wardleyDiagram-F3OXNVQS.srjfm4nb.js → wardleyDiagram-F3OXNVQS.mq49fny4.js} +1 -1
  89. package/dist/chunks/{xychartDiagram-GDYJKCDI.xfa2vexk.js → xychartDiagram-GDYJKCDI.d7he0fxa.js} +1 -1
  90. package/dist/index.js +10 -10
  91. package/dist/react.js +74 -0
  92. package/dist/server.js +20 -0
  93. package/dist/types/react.d.ts +27 -0
  94. package/dist/types/server.d.ts +15 -0
  95. package/docs/integration.md +78 -11
  96. package/package.json +18 -3
  97. package/dist/chunks/architecture-WOLXFQ4H.aft3rkrr.js +0 -1
  98. package/dist/chunks/cynefin-EF2NZ3EQ.dk039jny.js +0 -1
  99. package/dist/chunks/editor.arg3zy29.js +0 -4
  100. package/dist/chunks/eventmodeling-K75KTNOO.gmm1bcak.js +0 -1
  101. package/dist/chunks/flowDiagram-Z6JWZHQI.fzwqg115.js +0 -1
  102. package/dist/chunks/gitGraph-VSP46ZUC.0m8jykgw.js +0 -1
  103. package/dist/chunks/illustration-BOW28wq5.bkz28k1x.js +0 -1
  104. package/dist/chunks/index.e35b4yh5.js +0 -44
  105. package/dist/chunks/info-OHQRW6UA.e0a85drn.js +0 -1
  106. package/dist/chunks/packet-JDAUHWVQ.52409p3r.js +0 -1
  107. package/dist/chunks/pie-XZMESJXO.q5kre8cx.js +0 -1
  108. package/dist/chunks/radar-ABXABTNO.yk872k2n.js +0 -1
  109. package/dist/chunks/railroad-I3PHUGI6.9wfa6vs3.js +0 -1
  110. package/dist/chunks/railroad-abnf-LNEFI6M7.70zznk3b.js +0 -1
  111. package/dist/chunks/railroad-ebnf-DWYD2UWJ.4pvdng0p.js +0 -1
  112. package/dist/chunks/railroad-peg-JR7BVNR7.ev15ebp6.js +0 -1
  113. package/dist/chunks/swimlanesDiagram-UCCPES4V.0q8kd5qn.js +0 -8
  114. package/dist/chunks/treeView-D4JQ5SDB.3fzswdjp.js +0 -1
  115. package/dist/chunks/treemap-SAJKECNS.cgh74bhn.js +0 -1
  116. package/dist/chunks/wardley-7MLQ67FV.6q5tgt0s.js +0 -1
@@ -0,0 +1 @@
1
+ import{Mo,yc}from"./index.sv013f1z.js";import"./index.rn0vxns6.js";export{yc as Illustration,Mo as t};
@@ -1,2 +1,2 @@
1
- import{e,we,Qr}from"./index.a1bxkgd3.js";var O=0.00001,X=2,Y=0.6;function Mt(t){if(t===!1)return!1;return t==="gap"?"gap":"arc"}e(Mt,"normalizeLineHops");var w=0.000001;function P(t){let n=[];for(let c=0;c<t.length-1;c++)n.push({a:t[c],b:t[c+1]});return n}e(P,"buildSegmentList");function v(t,n,c,a){let i=n.x-t.x,r=n.y-t.y,d=a.x-c.x,l=a.y-c.y,p=i*l-r*d;if(p===0)return null;let s=c.x-t.x,o=c.y-t.y,u=(s*l-o*d)/p,f=(s*r-o*i)/p;if(u<=w||u>=1-w||f<=w||f>=1-w)return null;return{point:{x:t.x+u*i,y:t.y+u*r},tA:u,tB:f}}e(v,"segmentIntersection");function N(t){return Math.abs(t.b.x-t.a.x)>=Math.abs(t.b.y-t.a.y)}e(N,"isHorizontalSeg");function B(t,n,c){if(t.curve!=="rounded")return!1;let a=t.points,i=a[n],r=a[n+1];if(!i||!r)return!1;let d=Math.hypot(r.x-i.x,r.y-i.y),l=c*d,p=Qr(t.cornerRadius),s=n>0?R(a[n-1],i,r,p):null;if(s&&l<s.cutLen)return!0;let o=n+2<a.length?R(i,r,a[n+2],p):null;return o!==null&&d-l<o.cutLen}e(B,"crossingSitsInRoundedCorner");function C(t){let n=[];for(let c=0;c<t.length;c++){let a=t[c],i=P(a.points);for(let r=c+1;r<t.length;r++){let d=t[r],l=P(d.points);for(let[p,s]of i.entries())for(let[o,u]of l.entries()){let f=v(s.a,s.b,u.a,u.b);if(!f)continue;if(B(a,p,f.tA)||B(d,o,f.tB))continue;let y=N(s),E=N(u);if(y!==E?y:!1)n.push({jumpEdgeId:a.id,otherEdgeId:d.id,segIndex:p,t:f.tA,point:f.point});else n.push({jumpEdgeId:d.id,otherEdgeId:a.id,segIndex:o,t:f.tB,point:f.point})}}}return n}e(C,"findEdgeIntersections");function b(t){let n=Math.round(t*1000)/1000;return Number.isInteger(n)?`${n}`:`${n}`}e(b,"fmt");function I(t){return`${b(t.x)},${b(t.y)}`}e(I,"pointToString");function H(t){let n=t.b.x-t.a.x,c=t.b.y-t.a.y;if(Math.abs(n)>=Math.abs(c))return n>=0?1:0;return c>=0?1:0}e(H,"getArcSweepFlag");function _(t,n){if(t.length<2)return t.map((r)=>({...r}));let c=t.map((r)=>({...r})),a=n.arrowTypeStart&&we[n.arrowTypeStart];if(a){let r=t[0],d=t[1],l=Math.atan2(d.y-r.y,d.x-r.x);c[0].x=r.x+a*Math.cos(l),c[0].y=r.y+a*Math.sin(l)}let i=n.arrowTypeEnd&&we[n.arrowTypeEnd];if(i){let r=t.length,d=t[r-2],l=t[r-1],p=Math.atan2(l.y-d.y,l.x-d.x);c[r-1].x=l.x-i*Math.cos(p),c[r-1].y=l.y-i*Math.sin(p)}return c}e(_,"applyMarkerOffsets");function D(t,n,c,a,i){let r=t.point.x,d=t.point.y,l={x:r-n*t.r,y:d-c*t.r},p={x:r+n*t.r,y:d+c*t.r},s=[`L${I(l)}`];if(i==="arc")s.push(`A${b(t.r)},${b(t.r)} 0 0 ${a} ${I(p)}`);else s.push(`M${I(p)}`);return s}e(D,"emitJump");function R(t,n,c,a){let i=n.x-t.x,r=n.y-t.y,d=c.x-n.x,l=c.y-n.y,p=Math.hypot(i,r),s=Math.hypot(d,l);if(p<O||s<O)return null;let o=i/p,u=r/p,f=d/s,y=l/s,E=o*f+u*y,S=Math.max(-1,Math.min(1,E)),M=Math.acos(S);if(M<O||Math.abs(Math.PI-M)<O)return null;let g=Math.min(a/Math.sin(M/2),p/2,s/2);return{startX:n.x-o*g,startY:n.y-u*g,endX:n.x+f*g,endY:n.y+y*g,ctrlX:n.x,ctrlY:n.y,cutLen:g}}e(R,"computeRoundedCorner");function k(t,n,c){let a=t.points;if(a.length<2)return"";let i=_(a,t),r=t.curve==="rounded",d=Qr(t.cornerRadius),l=P(i),p=new Map;for(let o of n){let u=l[o.segIndex];if(!u)continue;let f=Math.hypot(u.b.x-u.a.x,u.b.y-u.a.y),y=p.get(o.segIndex)??[];y.push({t:o.t,point:o.point,d:o.t*f,r:c.jumpRadius}),p.set(o.segIndex,y)}let s=[`M${I(i[0])}`];for(let o=0;o<l.length;o++){let u=l[o],f=Math.hypot(u.b.x-u.a.x,u.b.y-u.a.y),y=f===0?0:(u.b.x-u.a.x)/f,E=f===0?0:(u.b.y-u.a.y)/f,S=H(u),M=0;if(r&&o>0){let h=R(i[o-1],i[o],i[o+1]??i[o],d);if(h)M=h.cutLen}let g=f,m=null;if(r&&o<l.length-1){if(m=R(i[o],i[o+1],i[o+2]??i[o+1],d),m)g=f-m.cutLen}let A=c.jumpRadius*Y,x=[...p.get(o)??[]].sort((h,L)=>h.t-L.t).filter((h)=>{let L=Math.min(h.d-M,g-h.d)-X;return h.r=Math.min(h.r,L),h.r>=A});for(let h=0;h<x.length-1;h++){let L=x[h+1].d-x[h].d;if(x[h].r+x[h+1].r>L){let T=L/2;x[h].r=Math.min(x[h].r,T),x[h+1].r=Math.min(x[h+1].r,T)}}for(let h of x){if(h.r<A)continue;s.push(...D(h,y,E,S,c.jumpStyle))}if(r&&m)s.push(`L${b(m.startX)},${b(m.startY)}`),s.push(`Q${b(m.ctrlX)},${b(m.ctrlY)} ${b(m.endX)},${b(m.endY)}`);else s.push(`L${I(u.b)}`)}return s.join(" ")}e(k,"rewriteEdgePath");function J(t){return/^[\d\s+,.LMelm-]*$/.test(t)}e(J,"isStraightPath");function j(t){if(!t)return!0;return t==="linear"||t==="rounded"||t==="step"||t==="stepBefore"||t==="stepAfter"}e(j,"curveSupportsLineHops");function z(t){if(!t)return null;try{let n=typeof atob==="function"?atob(t):Buffer.from(t,"base64").toString(),c=JSON.parse(n);if(!Array.isArray(c))return null;let a=[];for(let i of c)if(i&&typeof i.x==="number"&&typeof i.y==="number")a.push({x:i.x,y:i.y});return a.length>=2?a:null}catch{return null}}e(z,"decodeDataPoints");function Nt(t,n,c){if(!c.enabled)return;let a=t.node();if(!a)return;let i=new Map;for(let s of n)i.set(s.id,s);let r=new Map;for(let s of a.querySelectorAll("path[data-id]")){let o=s.getAttribute("data-id");if(o!==null&&!r.has(o))r.set(o,s)}let d=[];for(let s of n){let o=r.get(s.id);if(!o)continue;let f=z(o.getAttribute("data-points"))??s.points;d.push({...s,points:f})}let l=C(d);if(l.length===0)return;let p=new Map;for(let s of l){let o=p.get(s.jumpEdgeId)??[];o.push(s),p.set(s.jumpEdgeId,o)}for(let s of d){let o=p.get(s.id);if(!o||o.length===0)continue;let f=i.get(s.id)?.curve;if(f!==void 0&&!j(f))continue;let y=r.get(s.id);if(!y)continue;if(f===void 0){let A=y.getAttribute("d")??"";if(!J(A))continue}let E=y.getAttribute("style")??"",S=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(E),M=S?Number.parseFloat(S[1]):null,g=S?Number.parseFloat(S[2]):null,m=k(s,o,c);if(y.setAttribute("d",m),M!==null&&g!==null&&typeof y.getTotalLength==="function"){let A=y.getTotalLength(),x=Math.max(0,A-M-g),h=`0 ${M} ${x} ${g}`,L=E.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${h};`).replace(/;\s*;+/g,";");y.setAttribute("style",L)}}}e(Nt,"applyLineJumpsToSvg");
1
+ import{e,we,Qr}from"./index.yfbwd99n.js";var O=0.00001,X=2,Y=0.6;function Mt(t){if(t===!1)return!1;return t==="gap"?"gap":"arc"}e(Mt,"normalizeLineHops");var w=0.000001;function P(t){let n=[];for(let c=0;c<t.length-1;c++)n.push({a:t[c],b:t[c+1]});return n}e(P,"buildSegmentList");function v(t,n,c,a){let i=n.x-t.x,r=n.y-t.y,d=a.x-c.x,l=a.y-c.y,p=i*l-r*d;if(p===0)return null;let s=c.x-t.x,o=c.y-t.y,u=(s*l-o*d)/p,f=(s*r-o*i)/p;if(u<=w||u>=1-w||f<=w||f>=1-w)return null;return{point:{x:t.x+u*i,y:t.y+u*r},tA:u,tB:f}}e(v,"segmentIntersection");function N(t){return Math.abs(t.b.x-t.a.x)>=Math.abs(t.b.y-t.a.y)}e(N,"isHorizontalSeg");function B(t,n,c){if(t.curve!=="rounded")return!1;let a=t.points,i=a[n],r=a[n+1];if(!i||!r)return!1;let d=Math.hypot(r.x-i.x,r.y-i.y),l=c*d,p=Qr(t.cornerRadius),s=n>0?R(a[n-1],i,r,p):null;if(s&&l<s.cutLen)return!0;let o=n+2<a.length?R(i,r,a[n+2],p):null;return o!==null&&d-l<o.cutLen}e(B,"crossingSitsInRoundedCorner");function C(t){let n=[];for(let c=0;c<t.length;c++){let a=t[c],i=P(a.points);for(let r=c+1;r<t.length;r++){let d=t[r],l=P(d.points);for(let[p,s]of i.entries())for(let[o,u]of l.entries()){let f=v(s.a,s.b,u.a,u.b);if(!f)continue;if(B(a,p,f.tA)||B(d,o,f.tB))continue;let y=N(s),E=N(u);if(y!==E?y:!1)n.push({jumpEdgeId:a.id,otherEdgeId:d.id,segIndex:p,t:f.tA,point:f.point});else n.push({jumpEdgeId:d.id,otherEdgeId:a.id,segIndex:o,t:f.tB,point:f.point})}}}return n}e(C,"findEdgeIntersections");function b(t){let n=Math.round(t*1000)/1000;return Number.isInteger(n)?`${n}`:`${n}`}e(b,"fmt");function I(t){return`${b(t.x)},${b(t.y)}`}e(I,"pointToString");function H(t){let n=t.b.x-t.a.x,c=t.b.y-t.a.y;if(Math.abs(n)>=Math.abs(c))return n>=0?1:0;return c>=0?1:0}e(H,"getArcSweepFlag");function _(t,n){if(t.length<2)return t.map((r)=>({...r}));let c=t.map((r)=>({...r})),a=n.arrowTypeStart&&we[n.arrowTypeStart];if(a){let r=t[0],d=t[1],l=Math.atan2(d.y-r.y,d.x-r.x);c[0].x=r.x+a*Math.cos(l),c[0].y=r.y+a*Math.sin(l)}let i=n.arrowTypeEnd&&we[n.arrowTypeEnd];if(i){let r=t.length,d=t[r-2],l=t[r-1],p=Math.atan2(l.y-d.y,l.x-d.x);c[r-1].x=l.x-i*Math.cos(p),c[r-1].y=l.y-i*Math.sin(p)}return c}e(_,"applyMarkerOffsets");function D(t,n,c,a,i){let r=t.point.x,d=t.point.y,l={x:r-n*t.r,y:d-c*t.r},p={x:r+n*t.r,y:d+c*t.r},s=[`L${I(l)}`];if(i==="arc")s.push(`A${b(t.r)},${b(t.r)} 0 0 ${a} ${I(p)}`);else s.push(`M${I(p)}`);return s}e(D,"emitJump");function R(t,n,c,a){let i=n.x-t.x,r=n.y-t.y,d=c.x-n.x,l=c.y-n.y,p=Math.hypot(i,r),s=Math.hypot(d,l);if(p<O||s<O)return null;let o=i/p,u=r/p,f=d/s,y=l/s,E=o*f+u*y,S=Math.max(-1,Math.min(1,E)),M=Math.acos(S);if(M<O||Math.abs(Math.PI-M)<O)return null;let g=Math.min(a/Math.sin(M/2),p/2,s/2);return{startX:n.x-o*g,startY:n.y-u*g,endX:n.x+f*g,endY:n.y+y*g,ctrlX:n.x,ctrlY:n.y,cutLen:g}}e(R,"computeRoundedCorner");function k(t,n,c){let a=t.points;if(a.length<2)return"";let i=_(a,t),r=t.curve==="rounded",d=Qr(t.cornerRadius),l=P(i),p=new Map;for(let o of n){let u=l[o.segIndex];if(!u)continue;let f=Math.hypot(u.b.x-u.a.x,u.b.y-u.a.y),y=p.get(o.segIndex)??[];y.push({t:o.t,point:o.point,d:o.t*f,r:c.jumpRadius}),p.set(o.segIndex,y)}let s=[`M${I(i[0])}`];for(let o=0;o<l.length;o++){let u=l[o],f=Math.hypot(u.b.x-u.a.x,u.b.y-u.a.y),y=f===0?0:(u.b.x-u.a.x)/f,E=f===0?0:(u.b.y-u.a.y)/f,S=H(u),M=0;if(r&&o>0){let h=R(i[o-1],i[o],i[o+1]??i[o],d);if(h)M=h.cutLen}let g=f,m=null;if(r&&o<l.length-1){if(m=R(i[o],i[o+1],i[o+2]??i[o+1],d),m)g=f-m.cutLen}let A=c.jumpRadius*Y,x=[...p.get(o)??[]].sort((h,L)=>h.t-L.t).filter((h)=>{let L=Math.min(h.d-M,g-h.d)-X;return h.r=Math.min(h.r,L),h.r>=A});for(let h=0;h<x.length-1;h++){let L=x[h+1].d-x[h].d;if(x[h].r+x[h+1].r>L){let T=L/2;x[h].r=Math.min(x[h].r,T),x[h+1].r=Math.min(x[h+1].r,T)}}for(let h of x){if(h.r<A)continue;s.push(...D(h,y,E,S,c.jumpStyle))}if(r&&m)s.push(`L${b(m.startX)},${b(m.startY)}`),s.push(`Q${b(m.ctrlX)},${b(m.ctrlY)} ${b(m.endX)},${b(m.endY)}`);else s.push(`L${I(u.b)}`)}return s.join(" ")}e(k,"rewriteEdgePath");function J(t){return/^[\d\s+,.LMelm-]*$/.test(t)}e(J,"isStraightPath");function j(t){if(!t)return!0;return t==="linear"||t==="rounded"||t==="step"||t==="stepBefore"||t==="stepAfter"}e(j,"curveSupportsLineHops");function z(t){if(!t)return null;try{let n=typeof atob==="function"?atob(t):Buffer.from(t,"base64").toString(),c=JSON.parse(n);if(!Array.isArray(c))return null;let a=[];for(let i of c)if(i&&typeof i.x==="number"&&typeof i.y==="number")a.push({x:i.x,y:i.y});return a.length>=2?a:null}catch{return null}}e(z,"decodeDataPoints");function Nt(t,n,c){if(!c.enabled)return;let a=t.node();if(!a)return;let i=new Map;for(let s of n)i.set(s.id,s);let r=new Map;for(let s of a.querySelectorAll("path[data-id]")){let o=s.getAttribute("data-id");if(o!==null&&!r.has(o))r.set(o,s)}let d=[];for(let s of n){let o=r.get(s.id);if(!o)continue;let f=z(o.getAttribute("data-points"))??s.points;d.push({...s,points:f})}let l=C(d);if(l.length===0)return;let p=new Map;for(let s of l){let o=p.get(s.jumpEdgeId)??[];o.push(s),p.set(s.jumpEdgeId,o)}for(let s of d){let o=p.get(s.id);if(!o||o.length===0)continue;let f=i.get(s.id)?.curve;if(f!==void 0&&!j(f))continue;let y=r.get(s.id);if(!y)continue;if(f===void 0){let A=y.getAttribute("d")??"";if(!J(A))continue}let E=y.getAttribute("style")??"",S=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(E),M=S?Number.parseFloat(S[1]):null,g=S?Number.parseFloat(S[2]):null,m=k(s,o,c);if(y.setAttribute("d",m),M!==null&&g!==null&&typeof y.getTotalLength==="function"){let A=y.getTotalLength(),x=Math.max(0,A-M-g),h=`0 ${M} ${x} ${g}`,L=E.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${h};`).replace(/;\s*;+/g,";");y.setAttribute("style",L)}}}e(Nt,"applyLineJumpsToSvg");
2
2
  export{Mt,Nt};
@@ -1,2 +1,2 @@
1
- import{e}from"./index.a1bxkgd3.js";function ee(c,i){if(c.accDescr)i.setAccDescription?.(c.accDescr);if(c.accTitle)i.setAccTitle?.(c.accTitle);if(c.title)i.setDiagramTitle?.(c.title)}e(ee,"populateCommonDb");
1
+ import{e}from"./index.yfbwd99n.js";function ee(c,i){if(c.accDescr)i.setAccDescription?.(c.accDescr);if(c.accTitle)i.setAccTitle?.(c.accTitle);if(c.title)i.setDiagramTitle?.(c.title)}e(ee,"populateCommonDb");
2
2
  export{ee};
@@ -1,2 +1,2 @@
1
- import{e,hn,m,pn}from"./index.a1bxkgd3.js";import{Fe}from"./index.e35b4yh5.js";var o=Fe(pn(),1);var _r=e((s,t)=>{let r=s.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.name)r.attr("name",t.name);if(t.rx)r.attr("rx",t.rx);if(t.ry)r.attr("ry",t.ry);if(t.attrs!==void 0)for(let a in t.attrs)r.attr(a,t.attrs[a]);if(t.class)r.attr("class",t.class);return r},"drawRect"),Ca=e((s,t)=>{let r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};_r(s,r).lower()},"drawBackgroundRect"),ul=e((s,t)=>{let r=t.text.replace(hn," "),a=s.append("text");if(a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class)a.attr("class",t.class);let i=a.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.text(r),a},"drawText"),Ki=e((s,t,r,a)=>{let i=s.append("image");i.attr("x",t),i.attr("y",r);let n=o.sanitizeUrl(a);i.attr("xlink:href",n)},"drawImage"),Yi=e((s,t,r,a)=>{let i=s.append("use");i.attr("x",t),i.attr("y",r);let n=o.sanitizeUrl(a);i.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),ct=e(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),Xi=e(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),Xt=e(()=>{let s=m(".mermaidTooltip");if(s.empty())s=m("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100");return s},"createTooltip");
1
+ import{e,hn,m,pn}from"./index.yfbwd99n.js";import{Fe}from"./index.rn0vxns6.js";var o=Fe(pn(),1);var _r=e((s,t)=>{let r=s.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.name)r.attr("name",t.name);if(t.rx)r.attr("rx",t.rx);if(t.ry)r.attr("ry",t.ry);if(t.attrs!==void 0)for(let a in t.attrs)r.attr(a,t.attrs[a]);if(t.class)r.attr("class",t.class);return r},"drawRect"),Ca=e((s,t)=>{let r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};_r(s,r).lower()},"drawBackgroundRect"),ul=e((s,t)=>{let r=t.text.replace(hn," "),a=s.append("text");if(a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class)a.attr("class",t.class);let i=a.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.text(r),a},"drawText"),Ki=e((s,t,r,a)=>{let i=s.append("image");i.attr("x",t),i.attr("y",r);let n=o.sanitizeUrl(a);i.attr("xlink:href",n)},"drawImage"),Yi=e((s,t,r,a)=>{let i=s.append("use");i.attr("x",t),i.attr("y",r);let n=o.sanitizeUrl(a);i.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),ct=e(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),Xi=e(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),Xt=e(()=>{let s=m(".mermaidTooltip");if(s.empty())s=m("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100");return s},"createTooltip");
2
2
  export{_r,Ca,ul,Ki,Yi,ct,Xi,Xt};
@@ -1,2 +1,2 @@
1
- import{e,n,k,u,z,U,Bt,Ft,kl,St,gr,Tl,vn,Ue,Cl,_s,$t,Ls,br,xn}from"./index.a1bxkgd3.js";import{ue}from"./index.wrjdgn4c.js";import{_}from"./index.e35b4yh5.js";function Ri(t,{edgePathsClass:s="edges edgePaths"}={}){let r=t.insert("g").attr("class","root"),o=r.insert("g").attr("class","clusters"),i=r.insert("g").attr("class",s),a=r.insert("g").attr("class","edgeLabels"),l=r.insert("g").attr("class","nodes");return{clusters:o,edgePaths:i,edgeLabels:a,nodes:l,rootGroups:r}}e(Ri,"createLayoutElementGroups");async function L(t,s,r){if(s.label){let{shapeSvg:o,bbox:i}=await U(t,r===void 0?s:{...s,width:r});s.labelBBox={width:i.width,height:i.height},o.remove()}else s.labelBBox={width:0,height:0}}e(L,"measureGroupLabel");async function Mi(t,s,r){let o=await Ft(t,s,r),i=o.node()?.getBBox()??{width:0,height:0};return s.width=i.width,s.height=i.height,o}e(Mi,"insertMeasuredNode");function x(t,s,r){let o=t,i=new Set;while(o){if(o.dir)return o.dir;if(!o.parentId||i.has(o.parentId))break;i.add(o.parentId),o=s.get(o.parentId)}return r}e(x,"resolveNodeDir");async function D(t,s,r={}){let o=new ue({multigraph:!0,compound:!0}),i=[...s.edges],a=u(),l=Ri(t),{edgeLabels:d,nodes:c}=l,g=new Map,b=new Map(s.nodes.map((f)=>[f.id,f])),E=s.direction,h=t.node()!=null;await Promise.all(s.nodes.map(async(f)=>{if(f.isGroup){if(h){let w=r.unwrapGroupLabels&&f.labelType!=="markdown";await L(c,f,w?Number.POSITIVE_INFINITY:void 0)}o.setNode(f.id,{...f})}else{if(h){let w=await Mi(c,f,{config:a,dir:x(f,b,E)});g.set(f.id,w)}o.setNode(f.id,{...f})}}));for(let f of i){if(h&&_s(f))await $t(d,f);if(o.setEdge(f.start,f.end,{...f},f.id),!s.edges.some((v)=>v.id===f.id))s.edges.push(f)}if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:f}=await (_("862bnf6p"),import("./sizeCapture-2Q2CQKSF.862bnf6p.js"));f(t,s)}return{graph:o,groups:l,nodeElements:g}}e(D,"createGraphWithElements");var Q=new Map,m=new Map,S=new Map,Y=e(()=>{m.clear(),S.clear(),Q.clear()},"clear"),p=e((t,s)=>{let r=m.get(s)||[];return n.trace("In isDescendant",s," ",t," = ",r.includes(t)),r.includes(t)},"isDescendant"),q=e((t,s)=>{let r=m.get(s)||[];if(n.info("Descendants of ",s," is ",r),n.info("Edge is ",t),t.v===s||t.w===s)return!1;if(!r)return n.debug("Tilt, ",s,",not in descendants"),!1;return r.includes(t.v)||p(t.v,s)||p(t.w,s)||r.includes(t.w)},"edgeInCluster"),R=e((t,s,r,o)=>{n.debug("Copying children of ",t,"root",o,"data",s.node(t),o);let i=s.children(t)||[];if(t!==o)i.push(t);n.debug("Copying (nodes) clusterId",t,"nodes",i),i.forEach((a)=>{if(s.children(a).length>0)R(a,s,r,o);else{let l=s.node(a);if(n.info("cp ",a," to ",o," with parent ",t),r.setNode(a,l),o!==s.parent(a))n.debug("Setting parent",a,s.parent(a)),r.setParent(a,s.parent(a));if(t!==o&&a!==t)n.debug("Setting parent",a,t),r.setParent(a,t);else n.info("In copy ",t,"root",o,"data",s.node(t),o),n.debug("Not Setting parent for node=",a,"cluster!==rootId",t!==o,"node!==clusterId",a!==t);let d=s.edges(a);n.debug("Copying Edges",d),d.forEach((c)=>{n.info("Edge",c);let g=s.edge(c.v,c.w,c.name);n.info("Edge data",g,o);try{if(q(c,o))n.info("Copying as ",c.v,c.w,g,c.name),r.setEdge(c.v,c.w,g,c.name),n.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]));else n.info("Skipping copy of edge ",c.v,"-->",c.w," rootId: ",o," clusterId:",t)}catch(b){n.error(b)}})}n.debug("Removing node",a),s.removeNode(a)})},"copy"),T=e((t,s)=>{let r=s.children(t),o=[...r];for(let i of r)S.set(i,t),o=[...o,...T(i,s)];return o},"extractDescendants"),K=e((t,s,r)=>{let o=t.edges().filter((c)=>c.v===s||c.w===s),i=t.edges().filter((c)=>c.v===r||c.w===r),a=o.map((c)=>({v:c.v===s?r:c.v,w:c.w===s?s:c.w})),l=i.map((c)=>({v:c.v,w:c.w}));return a.filter((c)=>l.some((g)=>c.v===g.v&&c.w===g.w))},"findCommonEdges"),dn=e((t,s,r)=>{let o=s.children(t);if(n.trace("Searching children of id ",t,o),o.length<1)return t;let i;for(let a of o){let l=dn(a,s,r),d=K(s,r,l);if(l)if(d.length>0)i=l;else return l}return i},"findNonClusterChild"),y=e((t)=>{if(!Q.has(t))return t;if(!Q.get(t).externalConnections)return t;if(Q.has(t))return Q.get(t).id;return t},"getAnchorId"),cl=e((t,s)=>{if(!t||s>10){n.debug("Opting out, no graph ");return}else n.debug("Opting in, graph ");t.nodes().forEach(function(r){if(t.children(r).length>0)n.debug("Cluster identified",r," Replacement id in edges: ",dn(r,t,r)),m.set(r,T(r,t)),Q.set(r,{id:dn(r,t,r),clusterData:t.node(r)})}),t.nodes().forEach(function(r){let o=t.children(r),i=t.edges();if(o.length>0)n.debug("Cluster identified",r,m),i.forEach((a)=>{let l=p(a.v,r),d=p(a.w,r);if(l^d)n.debug("Edge: ",a," leaves cluster ",r),n.debug("Descendants of XXX ",r,": ",m.get(r)),Q.get(r).externalConnections=!0});else n.debug("Not a cluster ",r,m)});for(let r of Q.keys()){let o=Q.get(r).id,i=t.parent(o);if(i!==r&&Q.has(i)&&!Q.get(i).externalConnections)Q.get(r).id=i;let a=t.edges().some((l)=>l.v===r);if(o&&Q.get(r)?.externalConnections&&a&&M(t,o,r)){let l=Z(t,r,t.parent(o));if(l)Q.get(r).id=l}}t.edges().forEach(function(r){let o=t.edge(r);n.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),n.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(t.edge(r)));let{v:i,w:a}=r;if(n.debug("Fix XXX",Q,"ids:",r.v,r.w,"Translating: ",Q.get(r.v)," --- ",Q.get(r.w)),Q.get(r.v)||Q.get(r.w)){if(n.debug("Fixing and trying - removing XXX",r.v,r.w,r.name),i=y(r.v),a=y(r.w),t.removeEdge(r.v,r.w,r.name),i!==r.v){let l=t.parent(i);Q.get(l).externalConnections=!0,o.fromCluster=r.v}if(a!==r.w){let l=t.parent(a);Q.get(l).externalConnections=!0,o.toCluster=r.w}n.debug("Fix Replacing with XXX",i,a,r.name),t.setEdge(i,a,o,r.name)}}),P(t,0),n.trace(Q)},"adjustClustersAndEdges"),P=e((t,s)=>{if(s>10){n.error("Bailing out");return}let r=t.nodes(),o=!1;for(let i of r){let a=t.children(i);o=o||a.length>0}if(!o){n.debug("Done, no node has children",t.nodes());return}n.debug("Nodes = ",r,s);for(let i of r)if(n.debug("Extracting node",i,Q,Q.has(i)&&!Q.get(i).externalConnections,!t.parent(i),t.node(i),t.children("D")," Depth ",s),!Q.has(i))n.debug("Not a cluster",i,s);else if(!Q.get(i).externalConnections&&t.children(i)&&t.children(i).length>0){n.debug("Cluster without external connections, without a parent and with children",i,s);let l=t.graph().rankdir==="TB"?"LR":"TB";if(Q.get(i)?.clusterData?.dir)l=Q.get(i).clusterData.dir,n.debug("Fixing dir",Q.get(i).clusterData.dir,l);let d=new ue({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});R(i,t,d,i),t.setNode(i,{clusterNode:!0,id:i,clusterData:Q.get(i).clusterData,label:Q.get(i).label,graph:d})}else n.debug("Cluster ** ",i," **not meeting the criteria !externalConnections:",!Q.get(i).externalConnections," no parent: ",!t.parent(i)," children ",t.children(i)&&t.children(i).length>0,t.children("D"),s),n.debug(Q);r=t.nodes(),n.debug("New list of nodes",r);for(let i of r){let a=t.node(i);if(n.debug(" Now next level",i,a),a?.clusterNode)P(a.graph,s+1)}},"extractor"),B=e((t,s)=>{if(s.length===0)return[];let r=Object.assign([],s);return s.forEach((o)=>{let i=t.children(o),a=B(t,i);r=[...r,...a]}),r},"sorter"),Ni=e((t)=>B(t,t.children()),"sortNodesByHierarchy"),M=e((t,s,r)=>{let o=t.parent(s);while(o&&o!==r){let i=Q.get(o);if(i&&!i.externalConnections)return!0;o=t.parent(o)}return!1},"isNodeInExtractableCluster"),Z=e((t,s,r)=>{let o=t.children(s)??[];for(let i of o){if(i===r||p(i,r))continue;let a=dn(i,t,s);if(!a)continue;if(!M(t,a,s))return a}return null},"findSafeAnchorNode");function ot({prepareLayout:t,measureLayout:s,runLayoutCore:r,paintLayout:o,afterPaint:i,paintOptions:a}){let l=s??fn;return e(async function(c,g,b,E){let h=g.select("g");(b?.insertMarkers??xn)(h,c.markers,c.type,c.diagramId),Oi();let f={element:h,helpers:b,options:E};f.preparedLayout=await t?.(c,f);let w=await l(c,f),v=await r(c,f),C={...f,measure:w};if(o)await o(c,C,v);else await A(c,C,a);await i?.(c,C,v)},"render")}e(ot,"createCommonLayoutRenderer");function Oi(){kl(),Cl(),Tl(),Y()}e(Oi,"clearLayoutRenderState");async function fn(t,{element:s},r){return await D(s,t,r)}e(fn,"defaultMeasureLayout");async function A(t,s,r={}){let{measure:o}=s,{groups:i}=o;for(let l of r.getNodes?.(t,s)??t.nodes){if(r.skipNode?.(l,s))continue;await X(i,l,s,r)}let a=O(t.nodes);for(let l of t.edges){if(F(l,r))continue;await j(i,l,a,t,r,s)}}e(A,"paintLayoutData");async function X(t,s,r,o){if(s.clusterNode)St(s);else if(G(s,r,o))await gr(t.clusters,s);else St(s)}e(X,"paintLayoutNode");function G(t,s,r){return t.isGroup===!0&&(r.isCluster?.(t,s)??!0)}e(G,"shouldPaintAsCluster");function O(t){let s=new Map;for(let r of t)if(r?.id)s.set(r.id,r);return s}e(O,"buildNodeLookup");function F(t,s){return t.isLayoutOnly||Boolean(s.skipEdge?.(t))}e(F,"shouldSkipPaintEdge");async function j(t,s,r,o,i,a){let l=br(t.edgePaths,{...s},i.clusterDb??new Map,o.type,N(s.start,s,r,a,i),N(s.end,s,r,a,i),o.diagramId,H(s,i),o.layoutAlgorithm);if(_s(s)){if(!vn.has(s.id))await $t(t.edgeLabels,s);J(s,l)}}e(j,"paintLayoutEdge");function N(t,s,r,o,i){return i.getEdgeNode?.(t,s,o)??(t?r.get(t)??{}:{})}e(N,"getRenderedNode");function H(t,s){return typeof s.skipIntersect==="function"?s.skipIntersect(t):s.skipIntersect??!1}e(H,"shouldSkipIntersect");function J(t,s){let r=s?.updatedPath??s?.originalPath,o=k(),{subGraphTitleTotalMargin:i}=Bt({flowchart:o.flowchart??{}});if(t.label){let a=vn.get(t.id),{x:l,y:d}=Ls(t,s);a.attr("transform",`translate(${l}, ${d+i/2})`)}for(let[a,l]of[["startLeft",t.startLabelLeft],["startRight",t.startLabelRight],["endLeft",t.endLabelLeft],["endRight",t.endLabelRight]])if(l){let{x:d,y:c}=W(t,a,r);Ue.get(t.id)[a].attr("transform",`translate(${d}, ${c})`)}}e(J,"positionRenderedEdgeLabel");var I={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function W(t,s,r){let o=t.terminalLabelCenters?.[s];if(o)return{...o};if(!r)return{x:t.x,y:t.y};let i=s.startsWith("start")?t.arrowTypeStart:t.arrowTypeEnd;return z.calcTerminalLabelPosition(i?10:0,I[s],r)}e(W,"terminalLabelTranslate");
1
+ import{e,n,k,u,z,U,Bt,Ft,kl,St,gr,Tl,vn,Ue,Cl,_s,$t,Ls,br,xn}from"./index.yfbwd99n.js";import{ue}from"./index.yexf86bf.js";import{_}from"./index.rn0vxns6.js";function Ri(t,{edgePathsClass:s="edges edgePaths"}={}){let r=t.insert("g").attr("class","root"),o=r.insert("g").attr("class","clusters"),i=r.insert("g").attr("class",s),a=r.insert("g").attr("class","edgeLabels"),l=r.insert("g").attr("class","nodes");return{clusters:o,edgePaths:i,edgeLabels:a,nodes:l,rootGroups:r}}e(Ri,"createLayoutElementGroups");async function L(t,s,r){if(s.label){let{shapeSvg:o,bbox:i}=await U(t,r===void 0?s:{...s,width:r});s.labelBBox={width:i.width,height:i.height},o.remove()}else s.labelBBox={width:0,height:0}}e(L,"measureGroupLabel");async function Mi(t,s,r){let o=await Ft(t,s,r),i=o.node()?.getBBox()??{width:0,height:0};return s.width=i.width,s.height=i.height,o}e(Mi,"insertMeasuredNode");function x(t,s,r){let o=t,i=new Set;while(o){if(o.dir)return o.dir;if(!o.parentId||i.has(o.parentId))break;i.add(o.parentId),o=s.get(o.parentId)}return r}e(x,"resolveNodeDir");async function D(t,s,r={}){let o=new ue({multigraph:!0,compound:!0}),i=[...s.edges],a=u(),l=Ri(t),{edgeLabels:d,nodes:c}=l,g=new Map,b=new Map(s.nodes.map((f)=>[f.id,f])),E=s.direction,h=t.node()!=null;await Promise.all(s.nodes.map(async(f)=>{if(f.isGroup){if(h){let w=r.unwrapGroupLabels&&f.labelType!=="markdown";await L(c,f,w?Number.POSITIVE_INFINITY:void 0)}o.setNode(f.id,{...f})}else{if(h){let w=await Mi(c,f,{config:a,dir:x(f,b,E)});g.set(f.id,w)}o.setNode(f.id,{...f})}}));for(let f of i){if(h&&_s(f))await $t(d,f);if(o.setEdge(f.start,f.end,{...f},f.id),!s.edges.some((v)=>v.id===f.id))s.edges.push(f)}if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:f}=await (_("4dh5g271"),import("./sizeCapture-2Q2CQKSF.4dh5g271.js"));f(t,s)}return{graph:o,groups:l,nodeElements:g}}e(D,"createGraphWithElements");var Q=new Map,m=new Map,S=new Map,Y=e(()=>{m.clear(),S.clear(),Q.clear()},"clear"),p=e((t,s)=>{let r=m.get(s)||[];return n.trace("In isDescendant",s," ",t," = ",r.includes(t)),r.includes(t)},"isDescendant"),q=e((t,s)=>{let r=m.get(s)||[];if(n.info("Descendants of ",s," is ",r),n.info("Edge is ",t),t.v===s||t.w===s)return!1;if(!r)return n.debug("Tilt, ",s,",not in descendants"),!1;return r.includes(t.v)||p(t.v,s)||p(t.w,s)||r.includes(t.w)},"edgeInCluster"),R=e((t,s,r,o)=>{n.debug("Copying children of ",t,"root",o,"data",s.node(t),o);let i=s.children(t)||[];if(t!==o)i.push(t);n.debug("Copying (nodes) clusterId",t,"nodes",i),i.forEach((a)=>{if(s.children(a).length>0)R(a,s,r,o);else{let l=s.node(a);if(n.info("cp ",a," to ",o," with parent ",t),r.setNode(a,l),o!==s.parent(a))n.debug("Setting parent",a,s.parent(a)),r.setParent(a,s.parent(a));if(t!==o&&a!==t)n.debug("Setting parent",a,t),r.setParent(a,t);else n.info("In copy ",t,"root",o,"data",s.node(t),o),n.debug("Not Setting parent for node=",a,"cluster!==rootId",t!==o,"node!==clusterId",a!==t);let d=s.edges(a);n.debug("Copying Edges",d),d.forEach((c)=>{n.info("Edge",c);let g=s.edge(c.v,c.w,c.name);n.info("Edge data",g,o);try{if(q(c,o))n.info("Copying as ",c.v,c.w,g,c.name),r.setEdge(c.v,c.w,g,c.name),n.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]));else n.info("Skipping copy of edge ",c.v,"-->",c.w," rootId: ",o," clusterId:",t)}catch(b){n.error(b)}})}n.debug("Removing node",a),s.removeNode(a)})},"copy"),T=e((t,s)=>{let r=s.children(t),o=[...r];for(let i of r)S.set(i,t),o=[...o,...T(i,s)];return o},"extractDescendants"),K=e((t,s,r)=>{let o=t.edges().filter((c)=>c.v===s||c.w===s),i=t.edges().filter((c)=>c.v===r||c.w===r),a=o.map((c)=>({v:c.v===s?r:c.v,w:c.w===s?s:c.w})),l=i.map((c)=>({v:c.v,w:c.w}));return a.filter((c)=>l.some((g)=>c.v===g.v&&c.w===g.w))},"findCommonEdges"),dn=e((t,s,r)=>{let o=s.children(t);if(n.trace("Searching children of id ",t,o),o.length<1)return t;let i;for(let a of o){let l=dn(a,s,r),d=K(s,r,l);if(l)if(d.length>0)i=l;else return l}return i},"findNonClusterChild"),y=e((t)=>{if(!Q.has(t))return t;if(!Q.get(t).externalConnections)return t;if(Q.has(t))return Q.get(t).id;return t},"getAnchorId"),cl=e((t,s)=>{if(!t||s>10){n.debug("Opting out, no graph ");return}else n.debug("Opting in, graph ");t.nodes().forEach(function(r){if(t.children(r).length>0)n.debug("Cluster identified",r," Replacement id in edges: ",dn(r,t,r)),m.set(r,T(r,t)),Q.set(r,{id:dn(r,t,r),clusterData:t.node(r)})}),t.nodes().forEach(function(r){let o=t.children(r),i=t.edges();if(o.length>0)n.debug("Cluster identified",r,m),i.forEach((a)=>{let l=p(a.v,r),d=p(a.w,r);if(l^d)n.debug("Edge: ",a," leaves cluster ",r),n.debug("Descendants of XXX ",r,": ",m.get(r)),Q.get(r).externalConnections=!0});else n.debug("Not a cluster ",r,m)});for(let r of Q.keys()){let o=Q.get(r).id,i=t.parent(o);if(i!==r&&Q.has(i)&&!Q.get(i).externalConnections)Q.get(r).id=i;let a=t.edges().some((l)=>l.v===r);if(o&&Q.get(r)?.externalConnections&&a&&M(t,o,r)){let l=Z(t,r,t.parent(o));if(l)Q.get(r).id=l}}t.edges().forEach(function(r){let o=t.edge(r);n.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),n.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(t.edge(r)));let{v:i,w:a}=r;if(n.debug("Fix XXX",Q,"ids:",r.v,r.w,"Translating: ",Q.get(r.v)," --- ",Q.get(r.w)),Q.get(r.v)||Q.get(r.w)){if(n.debug("Fixing and trying - removing XXX",r.v,r.w,r.name),i=y(r.v),a=y(r.w),t.removeEdge(r.v,r.w,r.name),i!==r.v){let l=t.parent(i);Q.get(l).externalConnections=!0,o.fromCluster=r.v}if(a!==r.w){let l=t.parent(a);Q.get(l).externalConnections=!0,o.toCluster=r.w}n.debug("Fix Replacing with XXX",i,a,r.name),t.setEdge(i,a,o,r.name)}}),P(t,0),n.trace(Q)},"adjustClustersAndEdges"),P=e((t,s)=>{if(s>10){n.error("Bailing out");return}let r=t.nodes(),o=!1;for(let i of r){let a=t.children(i);o=o||a.length>0}if(!o){n.debug("Done, no node has children",t.nodes());return}n.debug("Nodes = ",r,s);for(let i of r)if(n.debug("Extracting node",i,Q,Q.has(i)&&!Q.get(i).externalConnections,!t.parent(i),t.node(i),t.children("D")," Depth ",s),!Q.has(i))n.debug("Not a cluster",i,s);else if(!Q.get(i).externalConnections&&t.children(i)&&t.children(i).length>0){n.debug("Cluster without external connections, without a parent and with children",i,s);let l=t.graph().rankdir==="TB"?"LR":"TB";if(Q.get(i)?.clusterData?.dir)l=Q.get(i).clusterData.dir,n.debug("Fixing dir",Q.get(i).clusterData.dir,l);let d=new ue({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});R(i,t,d,i),t.setNode(i,{clusterNode:!0,id:i,clusterData:Q.get(i).clusterData,label:Q.get(i).label,graph:d})}else n.debug("Cluster ** ",i," **not meeting the criteria !externalConnections:",!Q.get(i).externalConnections," no parent: ",!t.parent(i)," children ",t.children(i)&&t.children(i).length>0,t.children("D"),s),n.debug(Q);r=t.nodes(),n.debug("New list of nodes",r);for(let i of r){let a=t.node(i);if(n.debug(" Now next level",i,a),a?.clusterNode)P(a.graph,s+1)}},"extractor"),B=e((t,s)=>{if(s.length===0)return[];let r=Object.assign([],s);return s.forEach((o)=>{let i=t.children(o),a=B(t,i);r=[...r,...a]}),r},"sorter"),Ni=e((t)=>B(t,t.children()),"sortNodesByHierarchy"),M=e((t,s,r)=>{let o=t.parent(s);while(o&&o!==r){let i=Q.get(o);if(i&&!i.externalConnections)return!0;o=t.parent(o)}return!1},"isNodeInExtractableCluster"),Z=e((t,s,r)=>{let o=t.children(s)??[];for(let i of o){if(i===r||p(i,r))continue;let a=dn(i,t,s);if(!a)continue;if(!M(t,a,s))return a}return null},"findSafeAnchorNode");function ot({prepareLayout:t,measureLayout:s,runLayoutCore:r,paintLayout:o,afterPaint:i,paintOptions:a}){let l=s??fn;return e(async function(c,g,b,E){let h=g.select("g");(b?.insertMarkers??xn)(h,c.markers,c.type,c.diagramId),Oi();let f={element:h,helpers:b,options:E};f.preparedLayout=await t?.(c,f);let w=await l(c,f),v=await r(c,f),C={...f,measure:w};if(o)await o(c,C,v);else await A(c,C,a);await i?.(c,C,v)},"render")}e(ot,"createCommonLayoutRenderer");function Oi(){kl(),Cl(),Tl(),Y()}e(Oi,"clearLayoutRenderState");async function fn(t,{element:s},r){return await D(s,t,r)}e(fn,"defaultMeasureLayout");async function A(t,s,r={}){let{measure:o}=s,{groups:i}=o;for(let l of r.getNodes?.(t,s)??t.nodes){if(r.skipNode?.(l,s))continue;await X(i,l,s,r)}let a=O(t.nodes);for(let l of t.edges){if(F(l,r))continue;await j(i,l,a,t,r,s)}}e(A,"paintLayoutData");async function X(t,s,r,o){if(s.clusterNode)St(s);else if(G(s,r,o))await gr(t.clusters,s);else St(s)}e(X,"paintLayoutNode");function G(t,s,r){return t.isGroup===!0&&(r.isCluster?.(t,s)??!0)}e(G,"shouldPaintAsCluster");function O(t){let s=new Map;for(let r of t)if(r?.id)s.set(r.id,r);return s}e(O,"buildNodeLookup");function F(t,s){return t.isLayoutOnly||Boolean(s.skipEdge?.(t))}e(F,"shouldSkipPaintEdge");async function j(t,s,r,o,i,a){let l=br(t.edgePaths,{...s},i.clusterDb??new Map,o.type,N(s.start,s,r,a,i),N(s.end,s,r,a,i),o.diagramId,H(s,i),o.layoutAlgorithm);if(_s(s)){if(!vn.has(s.id))await $t(t.edgeLabels,s);J(s,l)}}e(j,"paintLayoutEdge");function N(t,s,r,o,i){return i.getEdgeNode?.(t,s,o)??(t?r.get(t)??{}:{})}e(N,"getRenderedNode");function H(t,s){return typeof s.skipIntersect==="function"?s.skipIntersect(t):s.skipIntersect??!1}e(H,"shouldSkipIntersect");function J(t,s){let r=s?.updatedPath??s?.originalPath,o=k(),{subGraphTitleTotalMargin:i}=Bt({flowchart:o.flowchart??{}});if(t.label){let a=vn.get(t.id),{x:l,y:d}=Ls(t,s);a.attr("transform",`translate(${l}, ${d+i/2})`)}for(let[a,l]of[["startLeft",t.startLabelLeft],["startRight",t.startLabelRight],["endLeft",t.endLabelLeft],["endRight",t.endLabelRight]])if(l){let{x:d,y:c}=W(t,a,r);Ue.get(t.id)[a].attr("transform",`translate(${d}, ${c})`)}}e(J,"positionRenderedEdgeLabel");var I={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function W(t,s,r){let o=t.terminalLabelCenters?.[s];if(o)return{...o};if(!r)return{x:t.x,y:t.y};let i=s.startsWith("start")?t.arrowTypeStart:t.arrowTypeEnd;return z.calcTerminalLabelPosition(i?10:0,I[s],r)}e(W,"terminalLabelTranslate");
2
2
  export{Ri,Mi,Q,dn,cl,Ni,ot,Oi,fn};
@@ -1,2 +1,2 @@
1
- import{f,d,w,i,X,r,re,ke,B,Je,tr,yr,ci,ui}from"./index.e35b4yh5.js";var N=Object.defineProperty,A=(e,o)=>N(e,"name",{value:o,configurable:!0}),F=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{let t=re(`Primitive.${o}`),a=f((n,u)=>{let{asChild:s,...l}=n,c=s?t:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r(c,{...l,ref:u})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{});function H(e,o){e&&X(()=>e.dispatchEvent(o))}A(H,"dispatchDiscreteCustomEvent");var q=Object.defineProperty,S=(e,o)=>q(e,"name",{value:o,configurable:!0}),C={Horizontal:"horizontal",Vertical:"vertical"},P=C.Horizontal,J=Object.values(C),Rs=f(S(function(e,o){let{decorative:t,orientation:a=P,...n}=e,u=G(a)?a:P,s=u===C.Vertical?u:void 0,l=t?{role:"none"}:{"aria-orientation":s,role:"separator"};return r(F.div,{"data-orientation":u,...l,...n,ref:o})},"Separator"));function G(e){return J.includes(e)}S(G,"isValidOrientation");var K=Object.defineProperty,L=(e,o)=>K(e,"name",{value:o,configurable:!0}),Q=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{let t=re(`Primitive.${o}`),a=f((n,u)=>{let{asChild:s,...l}=n,c=s?t:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r(c,{...l,ref:u})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{});function U(e,o){e&&X(()=>e.dispatchEvent(o))}L(U,"dispatchDiscreteCustomEvent");var W=Object.defineProperty,Y=(e,o)=>W(e,"name",{value:o,configurable:!0}),Z="Toggle",ee=f(Y(function(e,o){let{pressed:t,defaultPressed:a,onPressedChange:n,...u}=e,[s,l]=Je({prop:t,onChange:n,defaultProp:a??!1,caller:Z});return r(Q.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...u,ref:o,onClick:B(e.onClick,()=>{e.disabled||l(!s)})})},"Toggle")),oe=Object.defineProperty,ae=(e,o)=>oe(e,"name",{value:o,configurable:!0}),_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{let t=re(`Primitive.${o}`),a=f((n,u)=>{let{asChild:s,...l}=n,c=s?t:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r(c,{...l,ref:u})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{});function ie(e,o){e&&X(()=>e.dispatchEvent(o))}ae(ie,"dispatchDiscreteCustomEvent");var te=Object.defineProperty,p=(e,o)=>te(e,"name",{value:o,configurable:!0}),m="ToggleGroup",b={Single:"single",Multiple:"multiple"},[I,j]=ke(m,[yr]),O=yr(),Sl=f(p(function(e,o){let{type:t,...a}=e;if(t===b.Single)return r(le,{role:"radiogroup",...a,ref:o});if(t===b.Multiple)return r(ne,{role:"toolbar",...a,ref:o});throw Error(`Missing prop \`type\` expected on \`${m}\``)},"ToggleGroup")),[E,V]=I(m),le=f(p(function(e,o){let{value:t,defaultValue:a,onValueChange:n=p(()=>{},"onValueChange"),...u}=e,[s,l]=Je({prop:t,defaultProp:a??"",onChange:n,caller:m});return r(E,{scope:e.__scopeToggleGroup,type:b.Single,value:w(()=>s?[s]:[],[s]),onItemActivate:l,onItemDeactivate:d(()=>l(""),[l]),children:r(x,{...u,ref:o})})},"ToggleGroupImplSingle")),ne=f(p(function(e,o){let{value:t,defaultValue:a,onValueChange:n=p(()=>{},"onValueChange"),...u}=e,[s,l]=Je({prop:t,defaultProp:a??[],onChange:n,caller:m}),c=d((v)=>l((g=[])=>[...g,v]),[l]),h=d((v)=>l((g=[])=>g.filter((M)=>M!==v)),[l]);return r(E,{scope:e.__scopeToggleGroup,type:b.Multiple,value:s,onItemActivate:c,onItemDeactivate:h,children:r(x,{...u,ref:o})})},"ToggleGroupImplMultiple")),[ue,de]=I(m),x=f(p(function(e,o){let{__scopeToggleGroup:t,disabled:a=!1,rovingFocus:n=!0,orientation:u,dir:s,loop:l=!0,...c}=e,h=O(t),v=tr(s),g={dir:v,...c};return r(ue,{scope:t,rovingFocus:n,disabled:a,children:n?r(ci,{asChild:!0,...h,orientation:u,dir:v,loop:l,children:r(_.div,{...g,ref:o})}):r(_.div,{...g,ref:o})})},"ToggleGroupImpl")),y="ToggleGroupItem",El=f(p(function(e,o){let t=V(y,e.__scopeToggleGroup),a=de(y,e.__scopeToggleGroup),n=O(e.__scopeToggleGroup),u=t.value.includes(e.value),s=a.disabled||e.disabled,l={...e,pressed:u,disabled:s},c=i(null);return a.rovingFocus?r(ui,{asChild:!0,...n,focusable:!s,active:u,ref:c,children:r(R,{...l,ref:o})}):r(R,{...l,ref:o})},"ToggleGroupItem")),R=f(p(function(e,o){let{__scopeToggleGroup:t,value:a,...n}=e,u=V(y,t),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=u.type===b.Single?s:void 0;return r(ee,{...l,...n,ref:o,onPressedChange:(c)=>{c?u.onItemActivate(a):u.onItemDeactivate(a)}})},"ToggleGroupItemImpl")),se=Object.defineProperty,fe=(e,o)=>se(e,"name",{value:o,configurable:!0}),D=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{let t=re(`Primitive.${o}`),a=f((n,u)=>{let{asChild:s,...l}=n,c=s?t:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r(c,{...l,ref:u})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{});function ce(e,o){e&&X(()=>e.dispatchEvent(o))}fe(ce,"dispatchDiscreteCustomEvent");var pe=Object.defineProperty,T=(e,o)=>pe(e,"name",{value:o,configurable:!0}),k="Toolbar",[ve,Te]=ke(k,[yr,j]),z=yr();j();var[ge,me]=ve(k),Al=f(T(function(e,o){let{__scopeToolbar:t,orientation:a="horizontal",dir:n,loop:u=!0,...s}=e,l=z(t),c=tr(n);return r(ge,{scope:t,orientation:a,dir:c,children:r(ci,{asChild:!0,...l,orientation:a,dir:c,loop:u,children:r(D.div,{role:"toolbar","aria-orientation":a,dir:c,...s,ref:o})})})},"Toolbar")),be="ToolbarSeparator",_l=f(T(function(e,o){let{__scopeToolbar:t,...a}=e,n=me(be,t);return r(Rs,{orientation:n.orientation==="horizontal"?"vertical":"horizontal",...a,ref:o})},"ToolbarSeparator")),oa=f(T(function(e,o){let{__scopeToolbar:t,...a}=e,n=z(t);return r(ui,{asChild:!0,...n,focusable:!e.disabled,children:r(D.button,{type:"button",...a,ref:o})})},"ToolbarButton"));
1
+ import{f,d,w,i,X,r,re,ke,B,Je,tr,yr,ci,ui}from"./index.rn0vxns6.js";var N=Object.defineProperty,A=(e,o)=>N(e,"name",{value:o,configurable:!0}),F=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{let t=re(`Primitive.${o}`),a=f((n,u)=>{let{asChild:s,...l}=n,c=s?t:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r(c,{...l,ref:u})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{});function H(e,o){e&&X(()=>e.dispatchEvent(o))}A(H,"dispatchDiscreteCustomEvent");var q=Object.defineProperty,S=(e,o)=>q(e,"name",{value:o,configurable:!0}),C={Horizontal:"horizontal",Vertical:"vertical"},P=C.Horizontal,J=Object.values(C),Rs=f(S(function(e,o){let{decorative:t,orientation:a=P,...n}=e,u=G(a)?a:P,s=u===C.Vertical?u:void 0,l=t?{role:"none"}:{"aria-orientation":s,role:"separator"};return r(F.div,{"data-orientation":u,...l,...n,ref:o})},"Separator"));function G(e){return J.includes(e)}S(G,"isValidOrientation");var K=Object.defineProperty,L=(e,o)=>K(e,"name",{value:o,configurable:!0}),Q=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{let t=re(`Primitive.${o}`),a=f((n,u)=>{let{asChild:s,...l}=n,c=s?t:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r(c,{...l,ref:u})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{});function U(e,o){e&&X(()=>e.dispatchEvent(o))}L(U,"dispatchDiscreteCustomEvent");var W=Object.defineProperty,Y=(e,o)=>W(e,"name",{value:o,configurable:!0}),Z="Toggle",ee=f(Y(function(e,o){let{pressed:t,defaultPressed:a,onPressedChange:n,...u}=e,[s,l]=Je({prop:t,onChange:n,defaultProp:a??!1,caller:Z});return r(Q.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...u,ref:o,onClick:B(e.onClick,()=>{e.disabled||l(!s)})})},"Toggle")),oe=Object.defineProperty,ae=(e,o)=>oe(e,"name",{value:o,configurable:!0}),_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{let t=re(`Primitive.${o}`),a=f((n,u)=>{let{asChild:s,...l}=n,c=s?t:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r(c,{...l,ref:u})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{});function ie(e,o){e&&X(()=>e.dispatchEvent(o))}ae(ie,"dispatchDiscreteCustomEvent");var te=Object.defineProperty,p=(e,o)=>te(e,"name",{value:o,configurable:!0}),m="ToggleGroup",b={Single:"single",Multiple:"multiple"},[I,j]=ke(m,[yr]),O=yr(),Sl=f(p(function(e,o){let{type:t,...a}=e;if(t===b.Single)return r(le,{role:"radiogroup",...a,ref:o});if(t===b.Multiple)return r(ne,{role:"toolbar",...a,ref:o});throw Error(`Missing prop \`type\` expected on \`${m}\``)},"ToggleGroup")),[E,V]=I(m),le=f(p(function(e,o){let{value:t,defaultValue:a,onValueChange:n=p(()=>{},"onValueChange"),...u}=e,[s,l]=Je({prop:t,defaultProp:a??"",onChange:n,caller:m});return r(E,{scope:e.__scopeToggleGroup,type:b.Single,value:w(()=>s?[s]:[],[s]),onItemActivate:l,onItemDeactivate:d(()=>l(""),[l]),children:r(x,{...u,ref:o})})},"ToggleGroupImplSingle")),ne=f(p(function(e,o){let{value:t,defaultValue:a,onValueChange:n=p(()=>{},"onValueChange"),...u}=e,[s,l]=Je({prop:t,defaultProp:a??[],onChange:n,caller:m}),c=d((v)=>l((g=[])=>[...g,v]),[l]),h=d((v)=>l((g=[])=>g.filter((M)=>M!==v)),[l]);return r(E,{scope:e.__scopeToggleGroup,type:b.Multiple,value:s,onItemActivate:c,onItemDeactivate:h,children:r(x,{...u,ref:o})})},"ToggleGroupImplMultiple")),[ue,de]=I(m),x=f(p(function(e,o){let{__scopeToggleGroup:t,disabled:a=!1,rovingFocus:n=!0,orientation:u,dir:s,loop:l=!0,...c}=e,h=O(t),v=tr(s),g={dir:v,...c};return r(ue,{scope:t,rovingFocus:n,disabled:a,children:n?r(ci,{asChild:!0,...h,orientation:u,dir:v,loop:l,children:r(_.div,{...g,ref:o})}):r(_.div,{...g,ref:o})})},"ToggleGroupImpl")),y="ToggleGroupItem",El=f(p(function(e,o){let t=V(y,e.__scopeToggleGroup),a=de(y,e.__scopeToggleGroup),n=O(e.__scopeToggleGroup),u=t.value.includes(e.value),s=a.disabled||e.disabled,l={...e,pressed:u,disabled:s},c=i(null);return a.rovingFocus?r(ui,{asChild:!0,...n,focusable:!s,active:u,ref:c,children:r(R,{...l,ref:o})}):r(R,{...l,ref:o})},"ToggleGroupItem")),R=f(p(function(e,o){let{__scopeToggleGroup:t,value:a,...n}=e,u=V(y,t),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=u.type===b.Single?s:void 0;return r(ee,{...l,...n,ref:o,onPressedChange:(c)=>{c?u.onItemActivate(a):u.onItemDeactivate(a)}})},"ToggleGroupItemImpl")),se=Object.defineProperty,fe=(e,o)=>se(e,"name",{value:o,configurable:!0}),D=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{let t=re(`Primitive.${o}`),a=f((n,u)=>{let{asChild:s,...l}=n,c=s?t:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r(c,{...l,ref:u})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{});function ce(e,o){e&&X(()=>e.dispatchEvent(o))}fe(ce,"dispatchDiscreteCustomEvent");var pe=Object.defineProperty,T=(e,o)=>pe(e,"name",{value:o,configurable:!0}),k="Toolbar",[ve,Te]=ke(k,[yr,j]),z=yr();j();var[ge,me]=ve(k),Al=f(T(function(e,o){let{__scopeToolbar:t,orientation:a="horizontal",dir:n,loop:u=!0,...s}=e,l=z(t),c=tr(n);return r(ge,{scope:t,orientation:a,dir:c,children:r(ci,{asChild:!0,...l,orientation:a,dir:c,loop:u,children:r(D.div,{role:"toolbar","aria-orientation":a,dir:c,...s,ref:o})})})},"Toolbar")),be="ToolbarSeparator",_l=f(T(function(e,o){let{__scopeToolbar:t,...a}=e,n=me(be,t);return r(Rs,{orientation:n.orientation==="horizontal"?"vertical":"horizontal",...a,ref:o})},"ToolbarSeparator")),oa=f(T(function(e,o){let{__scopeToolbar:t,...a}=e,n=z(t);return r(ui,{asChild:!0,...n,focusable:!e.disabled,children:r(D.button,{type:"button",...a,ref:o})})},"ToolbarButton"));
2
2
  export{Rs,Sl,El,Al,_l,oa};
@@ -1,4 +1,4 @@
1
- import{sa,_}from"./index.e35b4yh5.js";var rn={};sa(rn,{AbnfAlternation:()=>go,AbnfConcatenation:()=>vo,AbnfElement:()=>hi,AbnfGroup:()=>To,AbnfNumVal:()=>$o,AbnfOptionalGroup:()=>Ro,AbnfPrimary:()=>cr,AbnfRule:()=>yi,AbnfRuleName:()=>Ao,AbnfStringLiteral:()=>Eo,AbstractMermaidTokenBuilder:()=>ce,AbstractMermaidValueConverter:()=>Ie,Architecture:()=>ot,ArchitectureGrammarGeneratedModule:()=>Ml,Branch:()=>Xn,Commit:()=>mr,CommonTokenBuilder:()=>kR,CommonValueConverter:()=>Je,Cynefin:()=>Ht,CynefinGrammarGeneratedModule:()=>Dl,DomainBlock:()=>Jn,DomainItem:()=>xi,EbnfChoice:()=>Co,EbnfExceptionPostfix:()=>bo,EbnfGroup:()=>_o,EbnfNonTerminal:()=>So,EbnfOneOrMorePostfix:()=>wo,EbnfOptional:()=>Po,EbnfOptionalPostfix:()=>ko,EbnfPostfix:()=>Yr,EbnfPrimary:()=>Vt,EbnfRepetition:()=>Io,EbnfRule:()=>gi,EbnfSequence:()=>No,EbnfSpecial:()=>Oo,EbnfTerm:()=>vi,EbnfTerminal:()=>Mo,EbnfZeroOrMorePostfix:()=>Do,EmDataEntity:()=>fr,EmFrame:()=>Kt,EmptyFileSystem:()=>le,EventModel:()=>ht,EventModelingGeneratedModule:()=>Ll,GitGraph:()=>Yt,GitGraphGrammarGeneratedModule:()=>xl,Info:()=>Qr,InfoGrammarGeneratedModule:()=>Gl,Merge:()=>hr,MermaidGeneratedSharedModule:()=>ue,Packet:()=>yr,PacketBlock:()=>gr,PacketGrammarGeneratedModule:()=>Fl,PegAny:()=>Lo,PegGroup:()=>xo,PegIdentifier:()=>Go,PegLiteral:()=>Fo,PegOrderedChoice:()=>jo,PegPrefix:()=>Ti,PegPrimary:()=>Xr,PegRule:()=>$i,PegSequence:()=>zo,PegSuffix:()=>Ri,Pie:()=>Xt,PieGrammarGeneratedModule:()=>jl,PieSection:()=>Zn,Radar:()=>Wt,RadarGrammarGeneratedModule:()=>zl,Railroad:()=>vr,RailroadAbnf:()=>Tr,RailroadAbnfGrammarGeneratedModule:()=>Bl,RailroadChoiceExpr:()=>Bo,RailroadEbnf:()=>$r,RailroadEbnfGrammarGeneratedModule:()=>Ul,RailroadExpression:()=>yt,RailroadGrammarGeneratedModule:()=>Vl,RailroadNonTerminalExpr:()=>Uo,RailroadOneOrMoreExpr:()=>Vo,RailroadOptionalExpr:()=>Wo,RailroadPeg:()=>Rr,RailroadPegGrammarGeneratedModule:()=>Kl,RailroadRule:()=>Ai,RailroadSequenceExpr:()=>qo,RailroadSpecialExpr:()=>Ho,RailroadTerminalExpr:()=>el,RailroadZeroOrMoreExpr:()=>tl,Statement:()=>pr,Transition:()=>en,TreeNode:()=>dr,TreeView:()=>Jr,TreeViewGrammarGeneratedModule:()=>ql,Treemap:()=>Ar,TreemapGrammarGeneratedModule:()=>Wl,Wardley:()=>Oe,WardleyGrammarGeneratedModule:()=>Hl,__name:()=>i,createDefaultCoreModule:()=>ne,createDefaultSharedCoreModule:()=>ae,inject:()=>W,isArchitecture:()=>Vp,isBranch:()=>Kp,isCommit:()=>Wp,isCynefin:()=>qp,isDomainBlock:()=>Hp,isDomainItem:()=>Yp,isEmModelEntityType:()=>Xp,isEmResetFrame:()=>ka,isGitGraph:()=>Jp,isInfo:()=>Zp,isMerge:()=>Qp,isPacket:()=>ed,isPacketBlock:()=>td,isPie:()=>rd,isPieSection:()=>nd,isRailroad:()=>ad,isRailroadAbnf:()=>id,isRailroadEbnf:()=>sd,isRailroadPeg:()=>od,isTransition:()=>ld,isTreemap:()=>ud,isWardley:()=>cd});var{create:rA,defineProperty:Gi,getOwnPropertyDescriptor:nA,getOwnPropertyNames:Sf,getPrototypeOf:aA}=Object,iA=Object.prototype.hasOwnProperty,i=(e,t)=>Gi(e,"name",{value:t,configurable:!0}),sA=(e,t)=>function(){return e&&(t=(0,e[Sf(e)[0]])(e=0)),t},J=(e,t)=>function(){return t||(0,e[Sf(e)[0]])((t={exports:{}}).exports,t),t.exports},oA=(e,t)=>{for(var r in t)Gi(e,r,{get:t[r],enumerable:!0})},Nm=(e,t,r,n)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let a of Sf(t))if(!iA.call(e,a)&&a!==r)Gi(e,a,{get:()=>t[a],enumerable:!(n=nA(t,a))||n.enumerable})}return e},wf=(e,t,r)=>(r=e!=null?rA(aA(e)):{},Nm(t||!e||!e.__esModule?Gi(r,"default",{value:e,enumerable:!0}):r,e)),Pf=(e)=>Nm(Gi({},"__esModule",{value:!0}),e),Fi=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/is.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.boolean=t,e.string=r,e.number=n,e.error=a,e.func=s,e.array=o,e.stringArray=l;function t(u){return u===!0||u===!1}i(t,"boolean");function r(u){return typeof u==="string"||u instanceof String}i(r,"string");function n(u){return typeof u==="number"||u instanceof Number}i(n,"number");function a(u){return u instanceof Error}i(a,"error");function s(u){return typeof u==="function"}i(s,"func");function o(u){return Array.isArray(u)}i(o,"array");function l(u){return o(u)&&u.every((c)=>r(c))}i(l,"stringArray")}}),Om=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messages.js"(e){var t=e&&e.__createBinding||(Object.create?function(A,g,C,O){if(O===void 0)O=C;var w=Object.getOwnPropertyDescriptor(g,C);if(!w||("get"in w?!g.__esModule:w.writable||w.configurable))w={enumerable:!0,get:i(function(){return g[C]},"get")};Object.defineProperty(A,O,w)}:function(A,g,C,O){if(O===void 0)O=C;A[O]=g[C]}),r=e&&e.__setModuleDefault||(Object.create?function(A,g){Object.defineProperty(A,"default",{enumerable:!0,value:g})}:function(A,g){A.default=g}),n=e&&e.__importStar||function(){var A=i(function(g){return A=Object.getOwnPropertyNames||function(C){var O=[];for(var w in C)if(Object.prototype.hasOwnProperty.call(C,w))O[O.length]=w;return O},A(g)},"ownKeys");return function(g){if(g&&g.__esModule)return g;var C={};if(g!=null){for(var O=A(g),w=0;w<O.length;w++)if(O[w]!=="default")t(C,g,O[w])}return r(C,g),C}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;var a=n(Fi()),s;(function(A){A.ParseError=-32700,A.InvalidRequest=-32600,A.MethodNotFound=-32601,A.InvalidParams=-32602,A.InternalError=-32603,A.jsonrpcReservedErrorRangeStart=-32099,A.serverErrorStart=-32099,A.MessageWriteError=-32099,A.MessageReadError=-32098,A.PendingResponseRejected=-32097,A.ConnectionInactive=-32096,A.ServerNotInitialized=-32002,A.UnknownErrorCode=-32001,A.jsonrpcReservedErrorRangeEnd=-32000,A.serverErrorEnd=-32000})(s||(e.ErrorCodes=s={}));var o=class A extends Error{static{i(this,"ResponseError")}code;data;constructor(g,C,O){super(C);this.code=a.number(g)?g:s.UnknownErrorCode,this.data=O,Object.setPrototypeOf(this,A.prototype)}toJson(){let g={code:this.code,message:this.message};if(this.data!==void 0)g.data=this.data;return g}};e.ResponseError=o;var l=class A{static{i(this,"ParameterStructures")}kind;static auto=new A("auto");static byPosition=new A("byPosition");static byName=new A("byName");constructor(g){this.kind=g}static is(g){return g===A.auto||g===A.byName||g===A.byPosition}toString(){return this.kind}};e.ParameterStructures=l;var u=class{static{i(this,"AbstractMessageSignature")}method;numberOfParams;constructor(A,g){this.method=A,this.numberOfParams=g}get parameterStructures(){return l.auto}};e.AbstractMessageSignature=u;var c=class extends u{static{i(this,"RequestType0")}_;constructor(A){super(A,0)}};e.RequestType0=c;var p=class extends u{static{i(this,"RequestType")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.RequestType=p;var h=class extends u{static{i(this,"RequestType1")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.RequestType1=h;var y=class extends u{static{i(this,"RequestType2")}_;constructor(A){super(A,2)}};e.RequestType2=y;var d=class extends u{static{i(this,"RequestType3")}_;constructor(A){super(A,3)}};e.RequestType3=d;var E=class extends u{static{i(this,"RequestType4")}_;constructor(A){super(A,4)}};e.RequestType4=E;var T=class extends u{static{i(this,"RequestType5")}_;constructor(A){super(A,5)}};e.RequestType5=T;var v=class extends u{static{i(this,"RequestType6")}_;constructor(A){super(A,6)}};e.RequestType6=v;var R=class extends u{static{i(this,"RequestType7")}_;constructor(A){super(A,7)}};e.RequestType7=R;var P=class extends u{static{i(this,"RequestType8")}_;constructor(A){super(A,8)}};e.RequestType8=P;var S=class extends u{static{i(this,"RequestType9")}_;constructor(A){super(A,9)}};e.RequestType9=S;var D=class extends u{static{i(this,"NotificationType")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.NotificationType=D;var x=class extends u{static{i(this,"NotificationType0")}_;constructor(A){super(A,0)}};e.NotificationType0=x;var F=class extends u{static{i(this,"NotificationType1")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.NotificationType1=F;var V=class extends u{static{i(this,"NotificationType2")}_;constructor(A){super(A,2)}};e.NotificationType2=V;var ee=class extends u{static{i(this,"NotificationType3")}_;constructor(A){super(A,3)}};e.NotificationType3=ee;var fe=class extends u{static{i(this,"NotificationType4")}_;constructor(A){super(A,4)}};e.NotificationType4=fe;var Z=class extends u{static{i(this,"NotificationType5")}_;constructor(A){super(A,5)}};e.NotificationType5=Z;var k=class extends u{static{i(this,"NotificationType6")}_;constructor(A){super(A,6)}};e.NotificationType6=k;var L=class extends u{static{i(this,"NotificationType7")}_;constructor(A){super(A,7)}};e.NotificationType7=L;var j=class extends u{static{i(this,"NotificationType8")}_;constructor(A){super(A,8)}};e.NotificationType8=j;var z=class extends u{static{i(this,"NotificationType9")}_;constructor(A){super(A,9)}};e.NotificationType9=z;var N;(function(A){function g(w){let M=w;return M&&a.string(M.method)&&(a.string(M.id)||a.number(M.id))}i(g,"isRequest"),A.isRequest=g;function C(w){let M=w;return M&&a.string(M.method)&&w.id===void 0}i(C,"isNotification"),A.isNotification=C;function O(w){let M=w;return M&&(M.result!==void 0||!!M.error)&&(a.string(M.id)||a.number(M.id)||M.id===null)}i(O,"isResponse"),A.isResponse=O})(N||(e.Message=N={}))}}),Mm=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0;var t;(function(a){a.None=0,a.First=1,a.AsOld=a.First,a.Last=2,a.AsNew=a.Last})(t||(e.Touch=t={}));var r=class{static{i(this,"LinkedMap")}[Symbol.toStringTag]="LinkedMap";_map;_head;_tail;_size;_state;constructor(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}before(a){let s=this._map.get(a);return s?s.previous?.value:void 0}after(a){let s=this._map.get(a);return s?s.next?.value:void 0}has(a){return this._map.has(a)}get(a,s=t.None){let o=this._map.get(a);if(!o)return;if(s!==t.None)this.touch(o,s);return o.value}set(a,s,o=t.None){let l=this._map.get(a);if(l){if(l.value=s,o!==t.None)this.touch(l,o)}else{switch(l={key:a,value:s,next:void 0,previous:void 0},o){case t.None:this.addItemLast(l);break;case t.First:this.addItemFirst(l);break;case t.Last:this.addItemLast(l);break;default:this.addItemLast(l);break}this._map.set(a,l),this._size++}return this}delete(a){return!!this.remove(a)}remove(a){let s=this._map.get(a);if(!s)return;return this._map.delete(a),this.removeItem(s),this._size--,s.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error("Invalid list");let a=this._head;return this._map.delete(a.key),this.removeItem(a),this._size--,a.value}forEach(a,s){let o=this._state,l=this._head;while(l){if(s)a.bind(s)(l.value,l.key,this);else a(l.value,l.key,this);if(this._state!==o)throw Error("LinkedMap got modified during iteration.");l=l.next}}keys(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:s.key,done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}values(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:s.value,done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}entries(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:[s.key,s.value],done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}[Symbol.iterator](){return this.entries()}trimOld(a){if(a>=this.size)return;if(a===0){this.clear();return}let s=this._head,o=this.size;while(s&&o>a)this._map.delete(s.key),s=s.next,o--;if(this._head=s,this._size=o,s)s.previous=void 0;this._state++}addItemFirst(a){if(!this._head&&!this._tail)this._tail=a;else if(!this._head)throw Error("Invalid list");else a.next=this._head,this._head.previous=a;this._head=a,this._state++}addItemLast(a){if(!this._head&&!this._tail)this._head=a;else if(!this._tail)throw Error("Invalid list");else a.previous=this._tail,this._tail.next=a;this._tail=a,this._state++}removeItem(a){if(a===this._head&&a===this._tail)this._head=void 0,this._tail=void 0;else if(a===this._head){if(!a.next)throw Error("Invalid list");a.next.previous=void 0,this._head=a.next}else if(a===this._tail){if(!a.previous)throw Error("Invalid list");a.previous.next=void 0,this._tail=a.previous}else{let{next:s,previous:o}=a;if(!s||!o)throw Error("Invalid list");s.previous=o,o.next=s}a.next=void 0,a.previous=void 0,this._state++}touch(a,s){if(!this._head||!this._tail)throw Error("Invalid list");if(s!==t.First&&s!==t.Last)return;if(s===t.First){if(a===this._head)return;let{next:o,previous:l}=a;if(a===this._tail)l.next=void 0,this._tail=l;else o.previous=l,l.next=o;a.previous=void 0,a.next=this._head,this._head.previous=a,this._head=a,this._state++}else if(s===t.Last){if(a===this._tail)return;let{next:o,previous:l}=a;if(a===this._head)o.previous=void 0,this._head=o;else o.previous=l,l.next=o;a.next=void 0,a.previous=this._tail,this._tail.next=a,this._tail=a,this._state++}}toJSON(){let a=[];return this.forEach((s,o)=>{a.push([o,s])}),a}fromJSON(a){this.clear();for(let[s,o]of a)this.set(s,o)}};e.LinkedMap=r;var n=class extends r{static{i(this,"LRUCache")}_limit;_ratio;constructor(a,s=1){super();this._limit=a,this._ratio=Math.min(Math.max(0,s),1)}get limit(){return this._limit}set limit(a){this._limit=a,this.checkTrim()}get ratio(){return this._ratio}set ratio(a){this._ratio=Math.min(Math.max(0,a),1),this.checkTrim()}get(a,s=t.AsNew){return super.get(a,s)}peek(a){return super.get(a,t.None)}set(a,s){return super.set(a,s,t.Last),this.checkTrim(),this}checkTrim(){if(this.size>this._limit)this.trimOld(Math.round(this._limit*this._ratio))}};e.LRUCache=n}}),lA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0;var t;(function(r){function n(a){return{dispose:a}}i(n,"create"),r.create=n})(t||(e.Disposable=t={}))}}),sn=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/ral.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t;function r(){if(t===void 0)throw Error("No runtime abstraction layer installed");return t}i(r,"RAL"),function(n){function a(s){if(s===void 0)throw Error("No runtime abstraction layer provided");t=s}i(a,"install"),n.install=a}(r||(r={})),e.default=r}}),ji=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/events.js"(e){var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var r=t(sn()),n;(function(o){let l={dispose(){}};o.None=function(){return l}})(n||(e.Event=n={}));var a=class{static{i(this,"CallbackList")}_callbacks;_contexts;add(o,l=null,u){if(!this._callbacks)this._callbacks=[],this._contexts=[];if(this._callbacks.push(o),this._contexts.push(l),Array.isArray(u))u.push({dispose:i(()=>this.remove(o,l),"dispose")})}remove(o,l=null){if(!this._callbacks)return;let u=!1;for(let c=0,p=this._callbacks.length;c<p;c++)if(this._callbacks[c]===o)if(this._contexts[c]===l){this._callbacks.splice(c,1),this._contexts.splice(c,1);return}else u=!0;if(u)throw Error("When adding a listener with a context, you should remove it with the same context")}invoke(...o){if(!this._callbacks)return[];let l=[],u=this._callbacks.slice(0),c=this._contexts.slice(0);for(let p=0,h=u.length;p<h;p++)try{l.push(u[p].apply(c[p],o))}catch(y){(0,r.default)().console.error(y)}return l}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},s=class o{static{i(this,"Emitter")}_options;static _noop=i(function(){},"_noop");_event;_callbacks;constructor(l){this._options=l}get event(){if(!this._event)this._event=(l,u,c)=>{if(!this._callbacks)this._callbacks=new a;if(this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty())this._options.onFirstListenerAdd(this);this._callbacks.add(l,u);let p={dispose:i(()=>{if(!this._callbacks)return;if(this._callbacks.remove(l,u),p.dispose=o._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty())this._options.onLastListenerRemove(this)},"dispose")};if(Array.isArray(c))c.push(p);return p};return this._event}fire(l){if(this._callbacks)this._callbacks.invoke.call(this._callbacks,l)}dispose(){if(this._callbacks)this._callbacks.dispose(),this._callbacks=void 0}};e.Emitter=s}}),kf=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e){var t=e&&e.__createBinding||(Object.create?function(y,d,E,T){if(T===void 0)T=E;var v=Object.getOwnPropertyDescriptor(d,E);if(!v||("get"in v?!d.__esModule:v.writable||v.configurable))v={enumerable:!0,get:i(function(){return d[E]},"get")};Object.defineProperty(y,T,v)}:function(y,d,E,T){if(T===void 0)T=E;y[T]=d[E]}),r=e&&e.__setModuleDefault||(Object.create?function(y,d){Object.defineProperty(y,"default",{enumerable:!0,value:d})}:function(y,d){y.default=d}),n=e&&e.__importStar||function(){var y=i(function(d){return y=Object.getOwnPropertyNames||function(E){var T=[];for(var v in E)if(Object.prototype.hasOwnProperty.call(E,v))T[T.length]=v;return T},y(d)},"ownKeys");return function(d){if(d&&d.__esModule)return d;var E={};if(d!=null){for(var T=y(d),v=0;v<T.length;v++)if(T[v]!=="default")t(E,d,T[v])}return r(E,d),E}}(),a=e&&e.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var s=a(sn()),o=n(Fi()),l=ji(),u;(function(y){y.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:l.Event.None}),y.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:l.Event.None});function d(E){let T=E;return T&&(T===y.None||T===y.Cancelled||o.boolean(T.isCancellationRequested)&&!!T.onCancellationRequested)}i(d,"is"),y.is=d})(u||(e.CancellationToken=u={}));var c=Object.freeze(function(y,d){let E=(0,s.default)().timer.setTimeout(y.bind(d),0);return{dispose(){E.dispose()}}}),p=class{static{i(this,"MutableToken")}_isCancelled=!1;_emitter;cancel(){if(!this._isCancelled){if(this._isCancelled=!0,this._emitter)this._emitter.fire(void 0),this.dispose()}}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){if(this._isCancelled)return c;if(!this._emitter)this._emitter=new l.Emitter;return this._emitter.event}dispose(){if(this._emitter)this._emitter.dispose(),this._emitter=void 0}},h=class{static{i(this,"CancellationTokenSource")}_token;get token(){if(!this._token)this._token=new p;return this._token}cancel(){if(!this._token)this._token=u.Cancelled;else this._token.cancel()}dispose(){if(!this._token)this._token=u.None;else if(this._token instanceof p)this._token.dispose()}};e.CancellationTokenSource=h}}),uA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=void 0;var t=kf(),r;(function(l){l.Continue=0,l.Cancelled=1})(r||(r={}));var n=class{static{i(this,"SharedArraySenderStrategy")}buffers;constructor(){this.buffers=new Map}enableCancellation(l){if(l.id===null)return;let u=new SharedArrayBuffer(4),c=new Int32Array(u,0,1);c[0]=r.Continue,this.buffers.set(l.id,u),l.$cancellationData=u}async sendCancellation(l,u){let c=this.buffers.get(u);if(c===void 0)return;let p=new Int32Array(c,0,1);Atomics.store(p,0,r.Cancelled)}cleanup(l){this.buffers.delete(l)}dispose(){this.buffers.clear()}};e.SharedArraySenderStrategy=n;var a=class{static{i(this,"SharedArrayBufferCancellationToken")}data;constructor(l){this.data=new Int32Array(l,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},s=class{static{i(this,"SharedArrayBufferCancellationTokenSource")}token;constructor(l){this.token=new a(l)}cancel(){}dispose(){}},o=class{static{i(this,"SharedArrayReceiverStrategy")}kind="request";createCancellationTokenSource(l){let u=l.$cancellationData;if(u===void 0)return new t.CancellationTokenSource;return new s(u)}};e.SharedArrayReceiverStrategy=o}}),Dm=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(e){var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.Semaphore=void 0;var r=t(sn()),n=class{static{i(this,"Semaphore")}_capacity;_active;_waiting;constructor(a=1){if(a<=0)throw Error("Capacity must be greater than 0");this._capacity=a,this._active=0,this._waiting=[]}lock(a){return new Promise((s,o)=>{this._waiting.push({thunk:a,resolve:s,reject:o}),this.runNext()})}get active(){return this._active}runNext(){if(this._waiting.length===0||this._active===this._capacity)return;(0,r.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let a=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error("Too many thunks active");try{let s=a.thunk();if(s instanceof Promise)s.then((o)=>{this._active--,a.resolve(o),this.runNext()},(o)=>{this._active--,a.reject(o),this.runNext()});else this._active--,a.resolve(s),this.runNext()}catch(s){this._active--,a.reject(s),this.runNext()}}};e.Semaphore=n}}),cA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e){var t=e&&e.__createBinding||(Object.create?function(d,E,T,v){if(v===void 0)v=T;var R=Object.getOwnPropertyDescriptor(E,T);if(!R||("get"in R?!E.__esModule:R.writable||R.configurable))R={enumerable:!0,get:i(function(){return E[T]},"get")};Object.defineProperty(d,v,R)}:function(d,E,T,v){if(v===void 0)v=T;d[v]=E[T]}),r=e&&e.__setModuleDefault||(Object.create?function(d,E){Object.defineProperty(d,"default",{enumerable:!0,value:E})}:function(d,E){d.default=E}),n=e&&e.__importStar||function(){var d=i(function(E){return d=Object.getOwnPropertyNames||function(T){var v=[];for(var R in T)if(Object.prototype.hasOwnProperty.call(T,R))v[v.length]=R;return v},d(E)},"ownKeys");return function(E){if(E&&E.__esModule)return E;var T={};if(E!=null){for(var v=d(E),R=0;R<v.length;R++)if(v[R]!=="default")t(T,E,v[R])}return r(T,E),T}}(),a=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;var s=a(sn()),o=n(Fi()),l=ji(),u=Dm(),c;(function(d){function E(T){let v=T;return v&&o.func(v.listen)&&o.func(v.dispose)&&o.func(v.onError)&&o.func(v.onClose)&&o.func(v.onPartialMessage)}i(E,"is"),d.is=E})(c||(e.MessageReader=c={}));var p=class{static{i(this,"AbstractMessageReader")}errorEmitter;closeEmitter;partialMessageEmitter;constructor(){this.errorEmitter=new l.Emitter,this.closeEmitter=new l.Emitter,this.partialMessageEmitter=new l.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(d){this.errorEmitter.fire(this.asError(d))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(d){this.partialMessageEmitter.fire(d)}asError(d){if(d instanceof Error)return d;else return Error(`Reader received error. Reason: ${o.string(d.message)?d.message:"unknown"}`)}};e.AbstractMessageReader=p;var h;(function(d){function E(T){let v,R,P,S=new Map,D,x=new Map;if(T===void 0||typeof T==="string")v=T??"utf-8";else{if(v=T.charset??"utf-8",T.contentDecoder!==void 0)P=T.contentDecoder,S.set(P.name,P);if(T.contentDecoders!==void 0)for(let F of T.contentDecoders)S.set(F.name,F);if(T.contentTypeDecoder!==void 0)D=T.contentTypeDecoder,x.set(D.name,D);if(T.contentTypeDecoders!==void 0)for(let F of T.contentTypeDecoders)x.set(F.name,F)}if(D===void 0)D=(0,s.default)().applicationJson.decoder,x.set(D.name,D);return{charset:v,contentDecoder:P,contentDecoders:S,contentTypeDecoder:D,contentTypeDecoders:x}}i(E,"fromOptions"),d.fromOptions=E})(h||(h={}));var y=class extends p{static{i(this,"ReadableStreamMessageReader")}readable;options;callback;nextMessageLength;messageToken;buffer;partialMessageTimer;_partialMessageTimeout;readSemaphore;constructor(d,E){super();this.readable=d,this.options=h.fromOptions(E),this.buffer=(0,s.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new u.Semaphore(1)}set partialMessageTimeout(d){this._partialMessageTimeout=d}get partialMessageTimeout(){return this._partialMessageTimeout}listen(d){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=d;let E=this.readable.onData((T)=>{this.onData(T)});return this.readable.onError((T)=>this.fireError(T)),this.readable.onClose(()=>this.fireClose()),E}onData(d){try{this.buffer.append(d);while(!0){if(this.nextMessageLength===-1){let T=this.buffer.tryReadHeaders(!0);if(!T)return;let v=T.get("content-length");if(!v){this.fireError(Error(`Header must provide a Content-Length property.
1
+ import{sa,_}from"./index.rn0vxns6.js";var rn={};sa(rn,{AbnfAlternation:()=>go,AbnfConcatenation:()=>vo,AbnfElement:()=>hi,AbnfGroup:()=>To,AbnfNumVal:()=>$o,AbnfOptionalGroup:()=>Ro,AbnfPrimary:()=>cr,AbnfRule:()=>yi,AbnfRuleName:()=>Ao,AbnfStringLiteral:()=>Eo,AbstractMermaidTokenBuilder:()=>ce,AbstractMermaidValueConverter:()=>Ie,Architecture:()=>ot,ArchitectureGrammarGeneratedModule:()=>Ml,Branch:()=>Xn,Commit:()=>mr,CommonTokenBuilder:()=>kR,CommonValueConverter:()=>Je,Cynefin:()=>Ht,CynefinGrammarGeneratedModule:()=>Dl,DomainBlock:()=>Jn,DomainItem:()=>xi,EbnfChoice:()=>Co,EbnfExceptionPostfix:()=>bo,EbnfGroup:()=>_o,EbnfNonTerminal:()=>So,EbnfOneOrMorePostfix:()=>wo,EbnfOptional:()=>Po,EbnfOptionalPostfix:()=>ko,EbnfPostfix:()=>Yr,EbnfPrimary:()=>Vt,EbnfRepetition:()=>Io,EbnfRule:()=>gi,EbnfSequence:()=>No,EbnfSpecial:()=>Oo,EbnfTerm:()=>vi,EbnfTerminal:()=>Mo,EbnfZeroOrMorePostfix:()=>Do,EmDataEntity:()=>fr,EmFrame:()=>Kt,EmptyFileSystem:()=>le,EventModel:()=>ht,EventModelingGeneratedModule:()=>Ll,GitGraph:()=>Yt,GitGraphGrammarGeneratedModule:()=>xl,Info:()=>Qr,InfoGrammarGeneratedModule:()=>Gl,Merge:()=>hr,MermaidGeneratedSharedModule:()=>ue,Packet:()=>yr,PacketBlock:()=>gr,PacketGrammarGeneratedModule:()=>Fl,PegAny:()=>Lo,PegGroup:()=>xo,PegIdentifier:()=>Go,PegLiteral:()=>Fo,PegOrderedChoice:()=>jo,PegPrefix:()=>Ti,PegPrimary:()=>Xr,PegRule:()=>$i,PegSequence:()=>zo,PegSuffix:()=>Ri,Pie:()=>Xt,PieGrammarGeneratedModule:()=>jl,PieSection:()=>Zn,Radar:()=>Wt,RadarGrammarGeneratedModule:()=>zl,Railroad:()=>vr,RailroadAbnf:()=>Tr,RailroadAbnfGrammarGeneratedModule:()=>Bl,RailroadChoiceExpr:()=>Bo,RailroadEbnf:()=>$r,RailroadEbnfGrammarGeneratedModule:()=>Ul,RailroadExpression:()=>yt,RailroadGrammarGeneratedModule:()=>Vl,RailroadNonTerminalExpr:()=>Uo,RailroadOneOrMoreExpr:()=>Vo,RailroadOptionalExpr:()=>Wo,RailroadPeg:()=>Rr,RailroadPegGrammarGeneratedModule:()=>Kl,RailroadRule:()=>Ai,RailroadSequenceExpr:()=>qo,RailroadSpecialExpr:()=>Ho,RailroadTerminalExpr:()=>el,RailroadZeroOrMoreExpr:()=>tl,Statement:()=>pr,Transition:()=>en,TreeNode:()=>dr,TreeView:()=>Jr,TreeViewGrammarGeneratedModule:()=>ql,Treemap:()=>Ar,TreemapGrammarGeneratedModule:()=>Wl,Wardley:()=>Oe,WardleyGrammarGeneratedModule:()=>Hl,__name:()=>i,createDefaultCoreModule:()=>ne,createDefaultSharedCoreModule:()=>ae,inject:()=>W,isArchitecture:()=>Vp,isBranch:()=>Kp,isCommit:()=>Wp,isCynefin:()=>qp,isDomainBlock:()=>Hp,isDomainItem:()=>Yp,isEmModelEntityType:()=>Xp,isEmResetFrame:()=>ka,isGitGraph:()=>Jp,isInfo:()=>Zp,isMerge:()=>Qp,isPacket:()=>ed,isPacketBlock:()=>td,isPie:()=>rd,isPieSection:()=>nd,isRailroad:()=>ad,isRailroadAbnf:()=>id,isRailroadEbnf:()=>sd,isRailroadPeg:()=>od,isTransition:()=>ld,isTreemap:()=>ud,isWardley:()=>cd});var{create:rA,defineProperty:Gi,getOwnPropertyDescriptor:nA,getOwnPropertyNames:Sf,getPrototypeOf:aA}=Object,iA=Object.prototype.hasOwnProperty,i=(e,t)=>Gi(e,"name",{value:t,configurable:!0}),sA=(e,t)=>function(){return e&&(t=(0,e[Sf(e)[0]])(e=0)),t},J=(e,t)=>function(){return t||(0,e[Sf(e)[0]])((t={exports:{}}).exports,t),t.exports},oA=(e,t)=>{for(var r in t)Gi(e,r,{get:t[r],enumerable:!0})},Nm=(e,t,r,n)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let a of Sf(t))if(!iA.call(e,a)&&a!==r)Gi(e,a,{get:()=>t[a],enumerable:!(n=nA(t,a))||n.enumerable})}return e},wf=(e,t,r)=>(r=e!=null?rA(aA(e)):{},Nm(t||!e||!e.__esModule?Gi(r,"default",{value:e,enumerable:!0}):r,e)),Pf=(e)=>Nm(Gi({},"__esModule",{value:!0}),e),Fi=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/is.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.boolean=t,e.string=r,e.number=n,e.error=a,e.func=s,e.array=o,e.stringArray=l;function t(u){return u===!0||u===!1}i(t,"boolean");function r(u){return typeof u==="string"||u instanceof String}i(r,"string");function n(u){return typeof u==="number"||u instanceof Number}i(n,"number");function a(u){return u instanceof Error}i(a,"error");function s(u){return typeof u==="function"}i(s,"func");function o(u){return Array.isArray(u)}i(o,"array");function l(u){return o(u)&&u.every((c)=>r(c))}i(l,"stringArray")}}),Om=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messages.js"(e){var t=e&&e.__createBinding||(Object.create?function(A,g,C,O){if(O===void 0)O=C;var w=Object.getOwnPropertyDescriptor(g,C);if(!w||("get"in w?!g.__esModule:w.writable||w.configurable))w={enumerable:!0,get:i(function(){return g[C]},"get")};Object.defineProperty(A,O,w)}:function(A,g,C,O){if(O===void 0)O=C;A[O]=g[C]}),r=e&&e.__setModuleDefault||(Object.create?function(A,g){Object.defineProperty(A,"default",{enumerable:!0,value:g})}:function(A,g){A.default=g}),n=e&&e.__importStar||function(){var A=i(function(g){return A=Object.getOwnPropertyNames||function(C){var O=[];for(var w in C)if(Object.prototype.hasOwnProperty.call(C,w))O[O.length]=w;return O},A(g)},"ownKeys");return function(g){if(g&&g.__esModule)return g;var C={};if(g!=null){for(var O=A(g),w=0;w<O.length;w++)if(O[w]!=="default")t(C,g,O[w])}return r(C,g),C}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;var a=n(Fi()),s;(function(A){A.ParseError=-32700,A.InvalidRequest=-32600,A.MethodNotFound=-32601,A.InvalidParams=-32602,A.InternalError=-32603,A.jsonrpcReservedErrorRangeStart=-32099,A.serverErrorStart=-32099,A.MessageWriteError=-32099,A.MessageReadError=-32098,A.PendingResponseRejected=-32097,A.ConnectionInactive=-32096,A.ServerNotInitialized=-32002,A.UnknownErrorCode=-32001,A.jsonrpcReservedErrorRangeEnd=-32000,A.serverErrorEnd=-32000})(s||(e.ErrorCodes=s={}));var o=class A extends Error{static{i(this,"ResponseError")}code;data;constructor(g,C,O){super(C);this.code=a.number(g)?g:s.UnknownErrorCode,this.data=O,Object.setPrototypeOf(this,A.prototype)}toJson(){let g={code:this.code,message:this.message};if(this.data!==void 0)g.data=this.data;return g}};e.ResponseError=o;var l=class A{static{i(this,"ParameterStructures")}kind;static auto=new A("auto");static byPosition=new A("byPosition");static byName=new A("byName");constructor(g){this.kind=g}static is(g){return g===A.auto||g===A.byName||g===A.byPosition}toString(){return this.kind}};e.ParameterStructures=l;var u=class{static{i(this,"AbstractMessageSignature")}method;numberOfParams;constructor(A,g){this.method=A,this.numberOfParams=g}get parameterStructures(){return l.auto}};e.AbstractMessageSignature=u;var c=class extends u{static{i(this,"RequestType0")}_;constructor(A){super(A,0)}};e.RequestType0=c;var p=class extends u{static{i(this,"RequestType")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.RequestType=p;var h=class extends u{static{i(this,"RequestType1")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.RequestType1=h;var y=class extends u{static{i(this,"RequestType2")}_;constructor(A){super(A,2)}};e.RequestType2=y;var d=class extends u{static{i(this,"RequestType3")}_;constructor(A){super(A,3)}};e.RequestType3=d;var E=class extends u{static{i(this,"RequestType4")}_;constructor(A){super(A,4)}};e.RequestType4=E;var T=class extends u{static{i(this,"RequestType5")}_;constructor(A){super(A,5)}};e.RequestType5=T;var v=class extends u{static{i(this,"RequestType6")}_;constructor(A){super(A,6)}};e.RequestType6=v;var R=class extends u{static{i(this,"RequestType7")}_;constructor(A){super(A,7)}};e.RequestType7=R;var P=class extends u{static{i(this,"RequestType8")}_;constructor(A){super(A,8)}};e.RequestType8=P;var S=class extends u{static{i(this,"RequestType9")}_;constructor(A){super(A,9)}};e.RequestType9=S;var D=class extends u{static{i(this,"NotificationType")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.NotificationType=D;var x=class extends u{static{i(this,"NotificationType0")}_;constructor(A){super(A,0)}};e.NotificationType0=x;var F=class extends u{static{i(this,"NotificationType1")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.NotificationType1=F;var V=class extends u{static{i(this,"NotificationType2")}_;constructor(A){super(A,2)}};e.NotificationType2=V;var ee=class extends u{static{i(this,"NotificationType3")}_;constructor(A){super(A,3)}};e.NotificationType3=ee;var fe=class extends u{static{i(this,"NotificationType4")}_;constructor(A){super(A,4)}};e.NotificationType4=fe;var Z=class extends u{static{i(this,"NotificationType5")}_;constructor(A){super(A,5)}};e.NotificationType5=Z;var k=class extends u{static{i(this,"NotificationType6")}_;constructor(A){super(A,6)}};e.NotificationType6=k;var L=class extends u{static{i(this,"NotificationType7")}_;constructor(A){super(A,7)}};e.NotificationType7=L;var j=class extends u{static{i(this,"NotificationType8")}_;constructor(A){super(A,8)}};e.NotificationType8=j;var z=class extends u{static{i(this,"NotificationType9")}_;constructor(A){super(A,9)}};e.NotificationType9=z;var N;(function(A){function g(w){let M=w;return M&&a.string(M.method)&&(a.string(M.id)||a.number(M.id))}i(g,"isRequest"),A.isRequest=g;function C(w){let M=w;return M&&a.string(M.method)&&w.id===void 0}i(C,"isNotification"),A.isNotification=C;function O(w){let M=w;return M&&(M.result!==void 0||!!M.error)&&(a.string(M.id)||a.number(M.id)||M.id===null)}i(O,"isResponse"),A.isResponse=O})(N||(e.Message=N={}))}}),Mm=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0;var t;(function(a){a.None=0,a.First=1,a.AsOld=a.First,a.Last=2,a.AsNew=a.Last})(t||(e.Touch=t={}));var r=class{static{i(this,"LinkedMap")}[Symbol.toStringTag]="LinkedMap";_map;_head;_tail;_size;_state;constructor(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}before(a){let s=this._map.get(a);return s?s.previous?.value:void 0}after(a){let s=this._map.get(a);return s?s.next?.value:void 0}has(a){return this._map.has(a)}get(a,s=t.None){let o=this._map.get(a);if(!o)return;if(s!==t.None)this.touch(o,s);return o.value}set(a,s,o=t.None){let l=this._map.get(a);if(l){if(l.value=s,o!==t.None)this.touch(l,o)}else{switch(l={key:a,value:s,next:void 0,previous:void 0},o){case t.None:this.addItemLast(l);break;case t.First:this.addItemFirst(l);break;case t.Last:this.addItemLast(l);break;default:this.addItemLast(l);break}this._map.set(a,l),this._size++}return this}delete(a){return!!this.remove(a)}remove(a){let s=this._map.get(a);if(!s)return;return this._map.delete(a),this.removeItem(s),this._size--,s.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error("Invalid list");let a=this._head;return this._map.delete(a.key),this.removeItem(a),this._size--,a.value}forEach(a,s){let o=this._state,l=this._head;while(l){if(s)a.bind(s)(l.value,l.key,this);else a(l.value,l.key,this);if(this._state!==o)throw Error("LinkedMap got modified during iteration.");l=l.next}}keys(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:s.key,done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}values(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:s.value,done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}entries(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:[s.key,s.value],done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}[Symbol.iterator](){return this.entries()}trimOld(a){if(a>=this.size)return;if(a===0){this.clear();return}let s=this._head,o=this.size;while(s&&o>a)this._map.delete(s.key),s=s.next,o--;if(this._head=s,this._size=o,s)s.previous=void 0;this._state++}addItemFirst(a){if(!this._head&&!this._tail)this._tail=a;else if(!this._head)throw Error("Invalid list");else a.next=this._head,this._head.previous=a;this._head=a,this._state++}addItemLast(a){if(!this._head&&!this._tail)this._head=a;else if(!this._tail)throw Error("Invalid list");else a.previous=this._tail,this._tail.next=a;this._tail=a,this._state++}removeItem(a){if(a===this._head&&a===this._tail)this._head=void 0,this._tail=void 0;else if(a===this._head){if(!a.next)throw Error("Invalid list");a.next.previous=void 0,this._head=a.next}else if(a===this._tail){if(!a.previous)throw Error("Invalid list");a.previous.next=void 0,this._tail=a.previous}else{let{next:s,previous:o}=a;if(!s||!o)throw Error("Invalid list");s.previous=o,o.next=s}a.next=void 0,a.previous=void 0,this._state++}touch(a,s){if(!this._head||!this._tail)throw Error("Invalid list");if(s!==t.First&&s!==t.Last)return;if(s===t.First){if(a===this._head)return;let{next:o,previous:l}=a;if(a===this._tail)l.next=void 0,this._tail=l;else o.previous=l,l.next=o;a.previous=void 0,a.next=this._head,this._head.previous=a,this._head=a,this._state++}else if(s===t.Last){if(a===this._tail)return;let{next:o,previous:l}=a;if(a===this._head)o.previous=void 0,this._head=o;else o.previous=l,l.next=o;a.next=void 0,a.previous=this._tail,this._tail.next=a,this._tail=a,this._state++}}toJSON(){let a=[];return this.forEach((s,o)=>{a.push([o,s])}),a}fromJSON(a){this.clear();for(let[s,o]of a)this.set(s,o)}};e.LinkedMap=r;var n=class extends r{static{i(this,"LRUCache")}_limit;_ratio;constructor(a,s=1){super();this._limit=a,this._ratio=Math.min(Math.max(0,s),1)}get limit(){return this._limit}set limit(a){this._limit=a,this.checkTrim()}get ratio(){return this._ratio}set ratio(a){this._ratio=Math.min(Math.max(0,a),1),this.checkTrim()}get(a,s=t.AsNew){return super.get(a,s)}peek(a){return super.get(a,t.None)}set(a,s){return super.set(a,s,t.Last),this.checkTrim(),this}checkTrim(){if(this.size>this._limit)this.trimOld(Math.round(this._limit*this._ratio))}};e.LRUCache=n}}),lA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0;var t;(function(r){function n(a){return{dispose:a}}i(n,"create"),r.create=n})(t||(e.Disposable=t={}))}}),sn=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/ral.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t;function r(){if(t===void 0)throw Error("No runtime abstraction layer installed");return t}i(r,"RAL"),function(n){function a(s){if(s===void 0)throw Error("No runtime abstraction layer provided");t=s}i(a,"install"),n.install=a}(r||(r={})),e.default=r}}),ji=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/events.js"(e){var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var r=t(sn()),n;(function(o){let l={dispose(){}};o.None=function(){return l}})(n||(e.Event=n={}));var a=class{static{i(this,"CallbackList")}_callbacks;_contexts;add(o,l=null,u){if(!this._callbacks)this._callbacks=[],this._contexts=[];if(this._callbacks.push(o),this._contexts.push(l),Array.isArray(u))u.push({dispose:i(()=>this.remove(o,l),"dispose")})}remove(o,l=null){if(!this._callbacks)return;let u=!1;for(let c=0,p=this._callbacks.length;c<p;c++)if(this._callbacks[c]===o)if(this._contexts[c]===l){this._callbacks.splice(c,1),this._contexts.splice(c,1);return}else u=!0;if(u)throw Error("When adding a listener with a context, you should remove it with the same context")}invoke(...o){if(!this._callbacks)return[];let l=[],u=this._callbacks.slice(0),c=this._contexts.slice(0);for(let p=0,h=u.length;p<h;p++)try{l.push(u[p].apply(c[p],o))}catch(y){(0,r.default)().console.error(y)}return l}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},s=class o{static{i(this,"Emitter")}_options;static _noop=i(function(){},"_noop");_event;_callbacks;constructor(l){this._options=l}get event(){if(!this._event)this._event=(l,u,c)=>{if(!this._callbacks)this._callbacks=new a;if(this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty())this._options.onFirstListenerAdd(this);this._callbacks.add(l,u);let p={dispose:i(()=>{if(!this._callbacks)return;if(this._callbacks.remove(l,u),p.dispose=o._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty())this._options.onLastListenerRemove(this)},"dispose")};if(Array.isArray(c))c.push(p);return p};return this._event}fire(l){if(this._callbacks)this._callbacks.invoke.call(this._callbacks,l)}dispose(){if(this._callbacks)this._callbacks.dispose(),this._callbacks=void 0}};e.Emitter=s}}),kf=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e){var t=e&&e.__createBinding||(Object.create?function(y,d,E,T){if(T===void 0)T=E;var v=Object.getOwnPropertyDescriptor(d,E);if(!v||("get"in v?!d.__esModule:v.writable||v.configurable))v={enumerable:!0,get:i(function(){return d[E]},"get")};Object.defineProperty(y,T,v)}:function(y,d,E,T){if(T===void 0)T=E;y[T]=d[E]}),r=e&&e.__setModuleDefault||(Object.create?function(y,d){Object.defineProperty(y,"default",{enumerable:!0,value:d})}:function(y,d){y.default=d}),n=e&&e.__importStar||function(){var y=i(function(d){return y=Object.getOwnPropertyNames||function(E){var T=[];for(var v in E)if(Object.prototype.hasOwnProperty.call(E,v))T[T.length]=v;return T},y(d)},"ownKeys");return function(d){if(d&&d.__esModule)return d;var E={};if(d!=null){for(var T=y(d),v=0;v<T.length;v++)if(T[v]!=="default")t(E,d,T[v])}return r(E,d),E}}(),a=e&&e.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var s=a(sn()),o=n(Fi()),l=ji(),u;(function(y){y.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:l.Event.None}),y.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:l.Event.None});function d(E){let T=E;return T&&(T===y.None||T===y.Cancelled||o.boolean(T.isCancellationRequested)&&!!T.onCancellationRequested)}i(d,"is"),y.is=d})(u||(e.CancellationToken=u={}));var c=Object.freeze(function(y,d){let E=(0,s.default)().timer.setTimeout(y.bind(d),0);return{dispose(){E.dispose()}}}),p=class{static{i(this,"MutableToken")}_isCancelled=!1;_emitter;cancel(){if(!this._isCancelled){if(this._isCancelled=!0,this._emitter)this._emitter.fire(void 0),this.dispose()}}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){if(this._isCancelled)return c;if(!this._emitter)this._emitter=new l.Emitter;return this._emitter.event}dispose(){if(this._emitter)this._emitter.dispose(),this._emitter=void 0}},h=class{static{i(this,"CancellationTokenSource")}_token;get token(){if(!this._token)this._token=new p;return this._token}cancel(){if(!this._token)this._token=u.Cancelled;else this._token.cancel()}dispose(){if(!this._token)this._token=u.None;else if(this._token instanceof p)this._token.dispose()}};e.CancellationTokenSource=h}}),uA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=void 0;var t=kf(),r;(function(l){l.Continue=0,l.Cancelled=1})(r||(r={}));var n=class{static{i(this,"SharedArraySenderStrategy")}buffers;constructor(){this.buffers=new Map}enableCancellation(l){if(l.id===null)return;let u=new SharedArrayBuffer(4),c=new Int32Array(u,0,1);c[0]=r.Continue,this.buffers.set(l.id,u),l.$cancellationData=u}async sendCancellation(l,u){let c=this.buffers.get(u);if(c===void 0)return;let p=new Int32Array(c,0,1);Atomics.store(p,0,r.Cancelled)}cleanup(l){this.buffers.delete(l)}dispose(){this.buffers.clear()}};e.SharedArraySenderStrategy=n;var a=class{static{i(this,"SharedArrayBufferCancellationToken")}data;constructor(l){this.data=new Int32Array(l,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},s=class{static{i(this,"SharedArrayBufferCancellationTokenSource")}token;constructor(l){this.token=new a(l)}cancel(){}dispose(){}},o=class{static{i(this,"SharedArrayReceiverStrategy")}kind="request";createCancellationTokenSource(l){let u=l.$cancellationData;if(u===void 0)return new t.CancellationTokenSource;return new s(u)}};e.SharedArrayReceiverStrategy=o}}),Dm=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(e){var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.Semaphore=void 0;var r=t(sn()),n=class{static{i(this,"Semaphore")}_capacity;_active;_waiting;constructor(a=1){if(a<=0)throw Error("Capacity must be greater than 0");this._capacity=a,this._active=0,this._waiting=[]}lock(a){return new Promise((s,o)=>{this._waiting.push({thunk:a,resolve:s,reject:o}),this.runNext()})}get active(){return this._active}runNext(){if(this._waiting.length===0||this._active===this._capacity)return;(0,r.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let a=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error("Too many thunks active");try{let s=a.thunk();if(s instanceof Promise)s.then((o)=>{this._active--,a.resolve(o),this.runNext()},(o)=>{this._active--,a.reject(o),this.runNext()});else this._active--,a.resolve(s),this.runNext()}catch(s){this._active--,a.reject(s),this.runNext()}}};e.Semaphore=n}}),cA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e){var t=e&&e.__createBinding||(Object.create?function(d,E,T,v){if(v===void 0)v=T;var R=Object.getOwnPropertyDescriptor(E,T);if(!R||("get"in R?!E.__esModule:R.writable||R.configurable))R={enumerable:!0,get:i(function(){return E[T]},"get")};Object.defineProperty(d,v,R)}:function(d,E,T,v){if(v===void 0)v=T;d[v]=E[T]}),r=e&&e.__setModuleDefault||(Object.create?function(d,E){Object.defineProperty(d,"default",{enumerable:!0,value:E})}:function(d,E){d.default=E}),n=e&&e.__importStar||function(){var d=i(function(E){return d=Object.getOwnPropertyNames||function(T){var v=[];for(var R in T)if(Object.prototype.hasOwnProperty.call(T,R))v[v.length]=R;return v},d(E)},"ownKeys");return function(E){if(E&&E.__esModule)return E;var T={};if(E!=null){for(var v=d(E),R=0;R<v.length;R++)if(v[R]!=="default")t(T,E,v[R])}return r(T,E),T}}(),a=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;var s=a(sn()),o=n(Fi()),l=ji(),u=Dm(),c;(function(d){function E(T){let v=T;return v&&o.func(v.listen)&&o.func(v.dispose)&&o.func(v.onError)&&o.func(v.onClose)&&o.func(v.onPartialMessage)}i(E,"is"),d.is=E})(c||(e.MessageReader=c={}));var p=class{static{i(this,"AbstractMessageReader")}errorEmitter;closeEmitter;partialMessageEmitter;constructor(){this.errorEmitter=new l.Emitter,this.closeEmitter=new l.Emitter,this.partialMessageEmitter=new l.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(d){this.errorEmitter.fire(this.asError(d))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(d){this.partialMessageEmitter.fire(d)}asError(d){if(d instanceof Error)return d;else return Error(`Reader received error. Reason: ${o.string(d.message)?d.message:"unknown"}`)}};e.AbstractMessageReader=p;var h;(function(d){function E(T){let v,R,P,S=new Map,D,x=new Map;if(T===void 0||typeof T==="string")v=T??"utf-8";else{if(v=T.charset??"utf-8",T.contentDecoder!==void 0)P=T.contentDecoder,S.set(P.name,P);if(T.contentDecoders!==void 0)for(let F of T.contentDecoders)S.set(F.name,F);if(T.contentTypeDecoder!==void 0)D=T.contentTypeDecoder,x.set(D.name,D);if(T.contentTypeDecoders!==void 0)for(let F of T.contentTypeDecoders)x.set(F.name,F)}if(D===void 0)D=(0,s.default)().applicationJson.decoder,x.set(D.name,D);return{charset:v,contentDecoder:P,contentDecoders:S,contentTypeDecoder:D,contentTypeDecoders:x}}i(E,"fromOptions"),d.fromOptions=E})(h||(h={}));var y=class extends p{static{i(this,"ReadableStreamMessageReader")}readable;options;callback;nextMessageLength;messageToken;buffer;partialMessageTimer;_partialMessageTimeout;readSemaphore;constructor(d,E){super();this.readable=d,this.options=h.fromOptions(E),this.buffer=(0,s.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new u.Semaphore(1)}set partialMessageTimeout(d){this._partialMessageTimeout=d}get partialMessageTimeout(){return this._partialMessageTimeout}listen(d){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=d;let E=this.readable.onData((T)=>{this.onData(T)});return this.readable.onError((T)=>this.fireError(T)),this.readable.onClose(()=>this.fireClose()),E}onData(d){try{this.buffer.append(d);while(!0){if(this.nextMessageLength===-1){let T=this.buffer.tryReadHeaders(!0);if(!T)return;let v=T.get("content-length");if(!v){this.fireError(Error(`Header must provide a Content-Length property.
2
2
  ${JSON.stringify(Object.fromEntries(T))}`));return}let R=parseInt(v);if(isNaN(R)){this.fireError(Error(`Content-Length value must be a number. Got ${v}`));return}this.nextMessageLength=R}let E=this.buffer.tryReadBody(this.nextMessageLength);if(E===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let T=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(E):E,v=await this.options.contentTypeDecoder.decode(T,this.options);this.callback(v)}).catch((T)=>{this.fireError(T)})}}catch(E){this.fireError(E)}}clearPartialMessageTimer(){if(this.partialMessageTimer)this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0}setPartialMessageTimer(){if(this.clearPartialMessageTimer(),this._partialMessageTimeout<=0)return;this.partialMessageTimer=(0,s.default)().timer.setTimeout((d,E)=>{if(this.partialMessageTimer=void 0,d===this.messageToken)this.firePartialMessage({messageToken:d,waitingTime:E}),this.setPartialMessageTimer()},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout)}};e.ReadableStreamMessageReader=y}}),fA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(e){var t=e&&e.__createBinding||(Object.create?function(T,v,R,P){if(P===void 0)P=R;var S=Object.getOwnPropertyDescriptor(v,R);if(!S||("get"in S?!v.__esModule:S.writable||S.configurable))S={enumerable:!0,get:i(function(){return v[R]},"get")};Object.defineProperty(T,P,S)}:function(T,v,R,P){if(P===void 0)P=R;T[P]=v[R]}),r=e&&e.__setModuleDefault||(Object.create?function(T,v){Object.defineProperty(T,"default",{enumerable:!0,value:v})}:function(T,v){T.default=v}),n=e&&e.__importStar||function(){var T=i(function(v){return T=Object.getOwnPropertyNames||function(R){var P=[];for(var S in R)if(Object.prototype.hasOwnProperty.call(R,S))P[P.length]=S;return P},T(v)},"ownKeys");return function(v){if(v&&v.__esModule)return v;var R={};if(v!=null){for(var P=T(v),S=0;S<P.length;S++)if(P[S]!=="default")t(R,v,P[S])}return r(R,v),R}}(),a=e&&e.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(e,"__esModule",{value:!0}),e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=void 0;var s=a(sn()),o=n(Fi()),l=Dm(),u=ji(),c="Content-Length: ",p=`\r
3
3
  `,h;(function(T){function v(R){let P=R;return P&&o.func(P.dispose)&&o.func(P.onClose)&&o.func(P.onError)&&o.func(P.write)}i(v,"is"),T.is=v})(h||(e.MessageWriter=h={}));var y=class{static{i(this,"AbstractMessageWriter")}errorEmitter;closeEmitter;constructor(){this.errorEmitter=new u.Emitter,this.closeEmitter=new u.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(T,v,R){this.errorEmitter.fire([this.asError(T),v,R])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(T){if(T instanceof Error)return T;else return Error(`Writer received error. Reason: ${o.string(T.message)?T.message:"unknown"}`)}};e.AbstractMessageWriter=y;var d;(function(T){function v(R){if(R===void 0||typeof R==="string")return{charset:R??"utf-8",contentTypeEncoder:(0,s.default)().applicationJson.encoder};else return{charset:R.charset??"utf-8",contentEncoder:R.contentEncoder,contentTypeEncoder:R.contentTypeEncoder??(0,s.default)().applicationJson.encoder}}i(v,"fromOptions"),T.fromOptions=v})(d||(d={}));var E=class extends y{static{i(this,"WriteableStreamMessageWriter")}writable;options;errorCount;writeSemaphore;constructor(T,v){super();this.writable=T,this.options=d.fromOptions(v),this.errorCount=0,this.writeSemaphore=new l.Semaphore(1),this.writable.onError((R)=>this.fireError(R)),this.writable.onClose(()=>this.fireClose())}async write(T){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(T,this.options).then((R)=>{if(this.options.contentEncoder!==void 0)return this.options.contentEncoder.encode(R);else return R}).then((R)=>{let P=[];return P.push(c,R.byteLength.toString(),p),P.push(p),this.doWrite(T,P,R)},(R)=>{throw this.fireError(R),R}))}async doWrite(T,v,R){try{return await this.writable.write(v.join(""),"ascii"),this.writable.write(R)}catch(P){return this.handleError(P,T),Promise.reject(P)}}handleError(T,v){this.errorCount++,this.fireError(T,v,this.errorCount)}end(){this.writable.end()}};e.WriteableStreamMessageWriter=E}}),pA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMessageBuffer=void 0;var t=13,r=10,n=`\r
4
4
  `,a=class{static{i(this,"AbstractMessageBuffer")}_encoding;_chunks;_totalLength;constructor(s="utf-8"){this._encoding=s,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(s){let o=typeof s==="string"?this.fromString(s,this._encoding):s;this._chunks.push(o),this._totalLength+=o.byteLength}tryReadHeaders(s=!1){if(this._chunks.length===0)return;let o=0,l=0,u=0,c=0;e:while(l<this._chunks.length){let d=this._chunks[l];u=0;while(u<d.length){switch(d[u]){case t:switch(o){case 0:o=1;break;case 2:o=3;break;default:o=0}break;case r:switch(o){case 1:o=2;break;case 3:o=4,u++;break e;default:o=0}break;default:o=0}u++}c+=d.byteLength,l++}if(o!==4)return;let p=this._read(c+u),h=new Map,y=this.toString(p,"ascii").split(n);if(y.length<2)return h;for(let d=0;d<y.length-2;d++){let E=y[d],T=E.indexOf(":");if(T===-1)throw Error(`Message header must separate key and value using ':'
@@ -136,7 +136,7 @@ ${t}`;if(this.inline)return`{${n}}`;else return n}};function bR(e,t,r){if(e==="l
136
136
  `);return}},Je=class extends Ie{static{i(this,"CommonValueConverter")}runCustomConverter(e,t,r){return}},ce=class extends aR{static{i(this,"AbstractMermaidTokenBuilder")}constructor(e){super();this.keywords=new Set(e)}buildKeywordTokens(e,t,r){let n=super.buildKeywordTokens(e,t,r);return n.forEach((a)=>{if(this.keywords.has(a.name)&&a.PATTERN!==void 0)a.PATTERN=new RegExp(a.PATTERN.toString()+"(?:(?=%%)|(?!\\S))")}),n}},kR=class extends ce{static{i(this,"CommonTokenBuilder")}};var dP=class extends ce{static{i(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},IR={parser:{TokenBuilder:i(()=>new dP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function Ko(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),zl,IR);return t.ServiceRegistry.register(r),{shared:t,Radar:r}}i(Ko,"createRadarServices");var mP=class extends ce{static{i(this,"RailroadTokenBuilder")}constructor(){super(["railroad-beta"])}},NR=i((e)=>{let t=e.slice(1,-1),r="";for(let n=0;n<t.length;n++){let a=t[n];if(a==="\\"&&n+1<t.length){n++;let s=t[n];switch(s){case"n":r+=`
137
137
  `;break;case"r":r+="\r";break;case"t":r+="\t";break;default:r+=s}continue}r+=a}return r},"decodeEscapedString"),hP=class extends Ie{static{i(this,"RailroadValueConverter")}runConverter(e,t,r){let n=super.runConverter(e,t,r);if(e.name==="TITLE"&&typeof n==="string"){let a=n.trim();if(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))return NR(a)}return n}runCustomConverter(e,t,r){if(e.name==="RR_STRING")return NR(t);return}},OR={parser:{TokenBuilder:i(()=>new mP,"TokenBuilder"),ValueConverter:i(()=>new hP,"ValueConverter")}};function Pn(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Vl,OR);return t.ServiceRegistry.register(r),{shared:t,Railroad:r}}i(Pn,"createRailroadServices");var yP=class extends ce{static{i(this,"RailroadEbnfTokenBuilder")}constructor(){super(["railroad-ebnf-beta"])}},MR=i((e)=>{let t=e.slice(1,-1),r="";for(let n=0;n<t.length;n++){let a=t[n];if(a==="\\"&&n+1<t.length){n++;let s=t[n];switch(s){case"n":r+=`
138
138
  `;break;case"r":r+="\r";break;case"t":r+="\t";break;default:r+=s}continue}r+=a}return r},"decodeEscapedString"),gP=class extends Ie{static{i(this,"RailroadEbnfValueConverter")}runConverter(e,t,r){let n=super.runConverter(e,t,r);if(e.name==="TITLE"&&typeof n==="string"){let a=n.trim();if(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))return MR(a)}return n}runCustomConverter(e,t,r){if(e.name==="EBNF_STRING")return MR(t);if(e.name==="EBNF_SPECIAL_SEQUENCE")return t.slice(1,-1).trim();return}},DR={parser:{TokenBuilder:i(()=>new yP,"TokenBuilder"),ValueConverter:i(()=>new gP,"ValueConverter")}};function Bn(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Ul,DR);return t.ServiceRegistry.register(r),{shared:t,RailroadEbnf:r}}i(Bn,"createRailroadEbnfServices");var vP=class extends ce{static{i(this,"RailroadAbnfTokenBuilder")}constructor(){super(["railroad-abnf-beta"])}},TP=class extends Ie{static{i(this,"RailroadAbnfValueConverter")}runConverter(e,t,r){let n=super.runConverter(e,t,r);if(e.name==="TITLE"&&typeof n==="string"){let a=n.trim();if(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))return a.slice(1,-1)}return n}runCustomConverter(e,t,r){if(e.name==="ABNF_STRING")return t.slice(1,-1);return}},LR={parser:{TokenBuilder:i(()=>new vP,"TokenBuilder"),ValueConverter:i(()=>new TP,"ValueConverter")}};function Fn(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Bl,LR);return t.ServiceRegistry.register(r),{shared:t,RailroadAbnf:r}}i(Fn,"createRailroadAbnfServices");var $P=class extends ce{static{i(this,"RailroadPegTokenBuilder")}constructor(){super(["railroad-peg-beta"])}},xR=i((e)=>{let t=e.slice(1,-1),r="";for(let n=0;n<t.length;n++){let a=t[n];if(a==="\\"&&n+1<t.length){n++;let s=t[n];switch(s){case"n":r+=`
139
- `;break;case"r":r+="\r";break;case"t":r+="\t";break;default:r+=s}continue}r+=a}return r},"decodeEscapedString"),RP=class extends Ie{static{i(this,"RailroadPegValueConverter")}runConverter(e,t,r){let n=super.runConverter(e,t,r);if(e.name==="TITLE"&&typeof n==="string"){let a=n.trim();if(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))return xR(a)}return n}runCustomConverter(e,t,r){if(e.name==="PEG_STRING")return xR(t);return}},GR={parser:{TokenBuilder:i(()=>new $P,"TokenBuilder"),ValueConverter:i(()=>new RP,"ValueConverter")}};function $n(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Kl,GR);return t.ServiceRegistry.register(r),{shared:t,RailroadPeg:r}}i($n,"createRailroadPegServices");var AP=class extends ce{static{i(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},EP=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,CP=class extends Ie{static{i(this,"TreemapValueConverter")}runCustomConverter(e,t,r){if(e.name==="NUMBER2")return parseFloat(t.replace(/,/g,""));else if(e.name==="SEPARATOR")return t.substring(1,t.length-1);else if(e.name==="STRING2")return t.substring(1,t.length-1);else if(e.name==="INDENTATION")return t.length;else if(e.name==="ClassDef"){if(typeof t!=="string")return t;let n=EP.exec(t);if(n)return{$type:"ClassDefStatement",className:n[1],styleText:n[2]||void 0}}return}};function FR(e){let t=e.validation.TreemapValidator,r=e.validation.ValidationRegistry;if(r){let n={Treemap:t.checkSingleRoot.bind(t)};r.register(n,t)}}i(FR,"registerValidationChecks");var bP=class{static{i(this,"TreemapValidator")}checkSingleRoot(e,t){let r;for(let n of e.TreemapRows){if(!n.item)continue;if(r===void 0&&n.indent===void 0)r=0;else if(n.indent===void 0)t("error","Multiple root nodes are not allowed in a treemap.",{node:n,property:"item"});else if(r!==void 0&&r>=parseInt(n.indent,10))t("error","Multiple root nodes are not allowed in a treemap.",{node:n,property:"item"})}}},jR={parser:{TokenBuilder:i(()=>new AP,"TokenBuilder"),ValueConverter:i(()=>new CP,"ValueConverter")},validation:{TreemapValidator:i(()=>new bP,"TreemapValidator")}};function Yo(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Wl,jR);return t.ServiceRegistry.register(r),FR(r),{shared:t,Treemap:r}}i(Yo,"createTreemapServices");var _P=class extends Ie{static{i(this,"WardleyValueConverter")}runCustomConverter(e,t,r){switch(e.name.toUpperCase()){case"LINK_LABEL":return t.substring(1).trim();default:return}}},zR={parser:{ValueConverter:i(()=>new _P,"ValueConverter")}};function Xo(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Hl,zR);return t.ServiceRegistry.register(r),{shared:t,Wardley:r}}i(Xo,"createWardleyServices");var SP=class extends ce{static{i(this,"CynefinTokenBuilder")}constructor(){super(["cynefin-beta"])}},BR={parser:{TokenBuilder:i(()=>new SP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function Qo(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Dl,BR);return t.ServiceRegistry.register(r),{shared:t,Cynefin:r}}i(Qo,"createCynefinServices");var wP=class extends ce{static{i(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},UR={parser:{TokenBuilder:i(()=>new wP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function Zo(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),xl,UR);return t.ServiceRegistry.register(r),{shared:t,GitGraph:r}}i(Zo,"createGitGraphServices");var PP=class extends ce{static{i(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},VR={parser:{TokenBuilder:i(()=>new PP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function Jo(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Gl,VR);return t.ServiceRegistry.register(r),{shared:t,Info:r}}i(Jo,"createInfoServices");var kP=class extends ce{static{i(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},KR={parser:{TokenBuilder:i(()=>new kP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function es(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Fl,KR);return t.ServiceRegistry.register(r),{shared:t,Packet:r}}i(es,"createPacketServices");var IP=class extends ce{static{i(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},NP=class extends Ie{static{i(this,"PieValueConverter")}runCustomConverter(e,t,r){if(e.name!=="PIE_SECTION_LABEL")return;return t.replace(/"/g,"").trim()}},WR={parser:{TokenBuilder:i(()=>new IP,"TokenBuilder"),ValueConverter:i(()=>new NP,"ValueConverter")}};function ts(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),jl,WR);return t.ServiceRegistry.register(r),{shared:t,Pie:r}}i(ts,"createPieServices");var OP=class extends Ie{static{i(this,"TreeViewValueConverter")}runCustomConverter(e,t,r){if(e.name==="INDENTATION")return t?.length||0;if(e.name==="QUOTED_NAME")return t.substring(1,t.length-1);if(e.name==="BARE_NAME")return t.replace(/[\t ]+$/,"");if(e.name==="CLASS_ANNOTATION")return t.trim().substring(3).trim();if(e.name==="ICON_ANNOTATION"){let n=t.trim();return n.substring(5,n.length-1)}if(e.name==="DESC_ANNOTATION")return t.trim().substring(2).trim();return}},MP=class extends ce{static{i(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},qR={parser:{TokenBuilder:i(()=>new MP,"TokenBuilder"),ValueConverter:i(()=>new OP,"ValueConverter")}};function rs(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),ql,qR);return t.ServiceRegistry.register(r),{shared:t,TreeView:r}}i(rs,"createTreeViewServices");var DP=class extends ce{static{i(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},LP=class extends Ie{static{i(this,"ArchitectureValueConverter")}runCustomConverter(e,t,r){if(e.name==="ARCH_ICON")return t.replace(/[()]/g,"").trim();else if(e.name==="ARCH_TEXT_ICON")return t.replace(/["()]/g,"");else if(e.name==="ARCH_TITLE"){let n=t.replace(/^\[|]$/g,"").trim();if(n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'"))n=n.slice(1,-1),n=n.replace(/\\"/g,'"').replace(/\\'/g,"'");return n.trim()}return}},HR={parser:{TokenBuilder:i(()=>new DP,"TokenBuilder"),ValueConverter:i(()=>new LP,"ValueConverter")}};function ns(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Ml,HR);return t.ServiceRegistry.register(r),{shared:t,Architecture:r}}i(ns,"createArchitectureServices");var xP=class extends ce{static{i(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},YR=new Set(["cmd","command"]),XR=new Set(["evt","event"]),fd=new Set(["rmo","readmodel"]),JR=new Set(["pcr","processor"]),ZR=new Set(["ui"]);function QR(e){let t=e.validation.EventModelingValidator,r=e.validation.ValidationRegistry;if(r){let n={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};r.register(n,t)}}i(QR,"registerValidationChecks");var GP=class{static{i(this,"EventModelingValidator")}checkSourceFrameTypes(e,t){if(e.sourceFrames.length===0)return;if(YR.has(e.modelEntityType))this.validateSources(e,new Set([...ZR,...JR]),"command","ui or processor",t);else if(XR.has(e.modelEntityType))this.validateSources(e,YR,"event","command",t);else if(fd.has(e.modelEntityType))this.validateSources(e,XR,"read model","event",t);else if(JR.has(e.modelEntityType))this.validateSources(e,fd,"processor","read model",t);else if(ZR.has(e.modelEntityType))this.validateSources(e,fd,"ui","read model",t)}validateSources(e,t,r,n,a){for(let s of e.sourceFrames){let o=s.ref;if(o!==void 0&&!t.has(o.modelEntityType))a("error",`A ${r} can only receive input from a ${n}, not from '${o.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},eA={parser:{TokenBuilder:i(()=>new xP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")},validation:{EventModelingValidator:i(()=>new GP,"EventModelingValidator")}};function as(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Ll,eA);return t.ServiceRegistry.register(r),QR(r),{shared:t,EventModel:r}}i(as,"createEventModelingServices");var je={},FP={info:i(async()=>{let{createInfoServices:e}=await (_("e0a85drn"),import("./info-OHQRW6UA.e0a85drn.js")),t=e().Info.parser.LangiumParser;je.info=t},"info"),packet:i(async()=>{let{createPacketServices:e}=await (_("52409p3r"),import("./packet-JDAUHWVQ.52409p3r.js")),t=e().Packet.parser.LangiumParser;je.packet=t},"packet"),pie:i(async()=>{let{createPieServices:e}=await (_("q5kre8cx"),import("./pie-XZMESJXO.q5kre8cx.js")),t=e().Pie.parser.LangiumParser;je.pie=t},"pie"),treeView:i(async()=>{let{createTreeViewServices:e}=await (_("3fzswdjp"),import("./treeView-D4JQ5SDB.3fzswdjp.js")),t=e().TreeView.parser.LangiumParser;je.treeView=t},"treeView"),architecture:i(async()=>{let{createArchitectureServices:e}=await (_("aft3rkrr"),import("./architecture-WOLXFQ4H.aft3rkrr.js")),t=e().Architecture.parser.LangiumParser;je.architecture=t},"architecture"),gitGraph:i(async()=>{let{createGitGraphServices:e}=await (_("0m8jykgw"),import("./gitGraph-VSP46ZUC.0m8jykgw.js")),t=e().GitGraph.parser.LangiumParser;je.gitGraph=t},"gitGraph"),eventmodeling:i(async()=>{let{createEventModelingServices:e}=await (_("gmm1bcak"),import("./eventmodeling-K75KTNOO.gmm1bcak.js")),t=e().EventModel.parser.LangiumParser;je.eventmodeling=t},"eventmodeling"),radar:i(async()=>{let{createRadarServices:e}=await (_("yk872k2n"),import("./radar-ABXABTNO.yk872k2n.js")),t=e().Radar.parser.LangiumParser;je.radar=t},"radar"),railroad:i(async()=>{let{createRailroadServices:e}=await (_("9wfa6vs3"),import("./railroad-I3PHUGI6.9wfa6vs3.js")),t=e().Railroad.parser.LangiumParser;je.railroad=t},"railroad"),railroadEbnf:i(async()=>{let{createRailroadEbnfServices:e}=await (_("4pvdng0p"),import("./railroad-ebnf-DWYD2UWJ.4pvdng0p.js")),t=e().RailroadEbnf.parser.LangiumParser;je.railroadEbnf=t},"railroadEbnf"),railroadAbnf:i(async()=>{let{createRailroadAbnfServices:e}=await (_("70zznk3b"),import("./railroad-abnf-LNEFI6M7.70zznk3b.js")),t=e().RailroadAbnf.parser.LangiumParser;je.railroadAbnf=t},"railroadAbnf"),railroadPeg:i(async()=>{let{createRailroadPegServices:e}=await (_("ev15ebp6"),import("./railroad-peg-JR7BVNR7.ev15ebp6.js")),t=e().RailroadPeg.parser.LangiumParser;je.railroadPeg=t},"railroadPeg"),treemap:i(async()=>{let{createTreemapServices:e}=await (_("cgh74bhn"),import("./treemap-SAJKECNS.cgh74bhn.js")),t=e().Treemap.parser.LangiumParser;je.treemap=t},"treemap"),wardley:i(async()=>{let{createWardleyServices:e}=await (_("6q5tgt0s"),import("./wardley-7MLQ67FV.6q5tgt0s.js")),t=e().Wardley.parser.LangiumParser;je.wardley=t},"wardley"),cynefin:i(async()=>{let{createCynefinServices:e}=await (_("dk039jny"),import("./cynefin-EF2NZ3EQ.dk039jny.js")),t=e().Cynefin.parser.LangiumParser;je.cynefin=t},"cynefin")};async function se(e,t){let r=FP[e];if(!r)throw Error(`Unknown diagram type: ${e}`);if(!je[e])await r();let a=je[e].parse(t);if(a.lexerErrors.length>0||a.parserErrors.length>0)throw new Lt(a);return a.value}i(se,"parse");var Yl=i((e)=>e!==void 0&&e>=0?e:"?","formatLocation"),Lt=class extends Error{constructor(e){let t=e.lexerErrors.map((n)=>{let a=Yl(n.line),s=Yl(n.column);return`Lexer error on line ${a}, column ${s}: ${n.message}`}).join(`
139
+ `;break;case"r":r+="\r";break;case"t":r+="\t";break;default:r+=s}continue}r+=a}return r},"decodeEscapedString"),RP=class extends Ie{static{i(this,"RailroadPegValueConverter")}runConverter(e,t,r){let n=super.runConverter(e,t,r);if(e.name==="TITLE"&&typeof n==="string"){let a=n.trim();if(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))return xR(a)}return n}runCustomConverter(e,t,r){if(e.name==="PEG_STRING")return xR(t);return}},GR={parser:{TokenBuilder:i(()=>new $P,"TokenBuilder"),ValueConverter:i(()=>new RP,"ValueConverter")}};function $n(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Kl,GR);return t.ServiceRegistry.register(r),{shared:t,RailroadPeg:r}}i($n,"createRailroadPegServices");var AP=class extends ce{static{i(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},EP=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,CP=class extends Ie{static{i(this,"TreemapValueConverter")}runCustomConverter(e,t,r){if(e.name==="NUMBER2")return parseFloat(t.replace(/,/g,""));else if(e.name==="SEPARATOR")return t.substring(1,t.length-1);else if(e.name==="STRING2")return t.substring(1,t.length-1);else if(e.name==="INDENTATION")return t.length;else if(e.name==="ClassDef"){if(typeof t!=="string")return t;let n=EP.exec(t);if(n)return{$type:"ClassDefStatement",className:n[1],styleText:n[2]||void 0}}return}};function FR(e){let t=e.validation.TreemapValidator,r=e.validation.ValidationRegistry;if(r){let n={Treemap:t.checkSingleRoot.bind(t)};r.register(n,t)}}i(FR,"registerValidationChecks");var bP=class{static{i(this,"TreemapValidator")}checkSingleRoot(e,t){let r;for(let n of e.TreemapRows){if(!n.item)continue;if(r===void 0&&n.indent===void 0)r=0;else if(n.indent===void 0)t("error","Multiple root nodes are not allowed in a treemap.",{node:n,property:"item"});else if(r!==void 0&&r>=parseInt(n.indent,10))t("error","Multiple root nodes are not allowed in a treemap.",{node:n,property:"item"})}}},jR={parser:{TokenBuilder:i(()=>new AP,"TokenBuilder"),ValueConverter:i(()=>new CP,"ValueConverter")},validation:{TreemapValidator:i(()=>new bP,"TreemapValidator")}};function Yo(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Wl,jR);return t.ServiceRegistry.register(r),FR(r),{shared:t,Treemap:r}}i(Yo,"createTreemapServices");var _P=class extends Ie{static{i(this,"WardleyValueConverter")}runCustomConverter(e,t,r){switch(e.name.toUpperCase()){case"LINK_LABEL":return t.substring(1).trim();default:return}}},zR={parser:{ValueConverter:i(()=>new _P,"ValueConverter")}};function Xo(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Hl,zR);return t.ServiceRegistry.register(r),{shared:t,Wardley:r}}i(Xo,"createWardleyServices");var SP=class extends ce{static{i(this,"CynefinTokenBuilder")}constructor(){super(["cynefin-beta"])}},BR={parser:{TokenBuilder:i(()=>new SP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function Qo(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Dl,BR);return t.ServiceRegistry.register(r),{shared:t,Cynefin:r}}i(Qo,"createCynefinServices");var wP=class extends ce{static{i(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},UR={parser:{TokenBuilder:i(()=>new wP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function Zo(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),xl,UR);return t.ServiceRegistry.register(r),{shared:t,GitGraph:r}}i(Zo,"createGitGraphServices");var PP=class extends ce{static{i(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},VR={parser:{TokenBuilder:i(()=>new PP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function Jo(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Gl,VR);return t.ServiceRegistry.register(r),{shared:t,Info:r}}i(Jo,"createInfoServices");var kP=class extends ce{static{i(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},KR={parser:{TokenBuilder:i(()=>new kP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function es(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Fl,KR);return t.ServiceRegistry.register(r),{shared:t,Packet:r}}i(es,"createPacketServices");var IP=class extends ce{static{i(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},NP=class extends Ie{static{i(this,"PieValueConverter")}runCustomConverter(e,t,r){if(e.name!=="PIE_SECTION_LABEL")return;return t.replace(/"/g,"").trim()}},WR={parser:{TokenBuilder:i(()=>new IP,"TokenBuilder"),ValueConverter:i(()=>new NP,"ValueConverter")}};function ts(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),jl,WR);return t.ServiceRegistry.register(r),{shared:t,Pie:r}}i(ts,"createPieServices");var OP=class extends Ie{static{i(this,"TreeViewValueConverter")}runCustomConverter(e,t,r){if(e.name==="INDENTATION")return t?.length||0;if(e.name==="QUOTED_NAME")return t.substring(1,t.length-1);if(e.name==="BARE_NAME")return t.replace(/[\t ]+$/,"");if(e.name==="CLASS_ANNOTATION")return t.trim().substring(3).trim();if(e.name==="ICON_ANNOTATION"){let n=t.trim();return n.substring(5,n.length-1)}if(e.name==="DESC_ANNOTATION")return t.trim().substring(2).trim();return}},MP=class extends ce{static{i(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},qR={parser:{TokenBuilder:i(()=>new MP,"TokenBuilder"),ValueConverter:i(()=>new OP,"ValueConverter")}};function rs(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),ql,qR);return t.ServiceRegistry.register(r),{shared:t,TreeView:r}}i(rs,"createTreeViewServices");var DP=class extends ce{static{i(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},LP=class extends Ie{static{i(this,"ArchitectureValueConverter")}runCustomConverter(e,t,r){if(e.name==="ARCH_ICON")return t.replace(/[()]/g,"").trim();else if(e.name==="ARCH_TEXT_ICON")return t.replace(/["()]/g,"");else if(e.name==="ARCH_TITLE"){let n=t.replace(/^\[|]$/g,"").trim();if(n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'"))n=n.slice(1,-1),n=n.replace(/\\"/g,'"').replace(/\\'/g,"'");return n.trim()}return}},HR={parser:{TokenBuilder:i(()=>new DP,"TokenBuilder"),ValueConverter:i(()=>new LP,"ValueConverter")}};function ns(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Ml,HR);return t.ServiceRegistry.register(r),{shared:t,Architecture:r}}i(ns,"createArchitectureServices");var xP=class extends ce{static{i(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},YR=new Set(["cmd","command"]),XR=new Set(["evt","event"]),fd=new Set(["rmo","readmodel"]),JR=new Set(["pcr","processor"]),ZR=new Set(["ui"]);function QR(e){let t=e.validation.EventModelingValidator,r=e.validation.ValidationRegistry;if(r){let n={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};r.register(n,t)}}i(QR,"registerValidationChecks");var GP=class{static{i(this,"EventModelingValidator")}checkSourceFrameTypes(e,t){if(e.sourceFrames.length===0)return;if(YR.has(e.modelEntityType))this.validateSources(e,new Set([...ZR,...JR]),"command","ui or processor",t);else if(XR.has(e.modelEntityType))this.validateSources(e,YR,"event","command",t);else if(fd.has(e.modelEntityType))this.validateSources(e,XR,"read model","event",t);else if(JR.has(e.modelEntityType))this.validateSources(e,fd,"processor","read model",t);else if(ZR.has(e.modelEntityType))this.validateSources(e,fd,"ui","read model",t)}validateSources(e,t,r,n,a){for(let s of e.sourceFrames){let o=s.ref;if(o!==void 0&&!t.has(o.modelEntityType))a("error",`A ${r} can only receive input from a ${n}, not from '${o.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},eA={parser:{TokenBuilder:i(()=>new xP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")},validation:{EventModelingValidator:i(()=>new GP,"EventModelingValidator")}};function as(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Ll,eA);return t.ServiceRegistry.register(r),QR(r),{shared:t,EventModel:r}}i(as,"createEventModelingServices");var je={},FP={info:i(async()=>{let{createInfoServices:e}=await (_("4824y3cd"),import("./info-OHQRW6UA.4824y3cd.js")),t=e().Info.parser.LangiumParser;je.info=t},"info"),packet:i(async()=>{let{createPacketServices:e}=await (_("w0pv2dxr"),import("./packet-JDAUHWVQ.w0pv2dxr.js")),t=e().Packet.parser.LangiumParser;je.packet=t},"packet"),pie:i(async()=>{let{createPieServices:e}=await (_("zq72f2fq"),import("./pie-XZMESJXO.zq72f2fq.js")),t=e().Pie.parser.LangiumParser;je.pie=t},"pie"),treeView:i(async()=>{let{createTreeViewServices:e}=await (_("xz61fh4x"),import("./treeView-D4JQ5SDB.xz61fh4x.js")),t=e().TreeView.parser.LangiumParser;je.treeView=t},"treeView"),architecture:i(async()=>{let{createArchitectureServices:e}=await (_("pp4drcrh"),import("./architecture-WOLXFQ4H.pp4drcrh.js")),t=e().Architecture.parser.LangiumParser;je.architecture=t},"architecture"),gitGraph:i(async()=>{let{createGitGraphServices:e}=await (_("2a0am491"),import("./gitGraph-VSP46ZUC.2a0am491.js")),t=e().GitGraph.parser.LangiumParser;je.gitGraph=t},"gitGraph"),eventmodeling:i(async()=>{let{createEventModelingServices:e}=await (_("nkahp6zg"),import("./eventmodeling-K75KTNOO.nkahp6zg.js")),t=e().EventModel.parser.LangiumParser;je.eventmodeling=t},"eventmodeling"),radar:i(async()=>{let{createRadarServices:e}=await (_("288gs0b8"),import("./radar-ABXABTNO.288gs0b8.js")),t=e().Radar.parser.LangiumParser;je.radar=t},"radar"),railroad:i(async()=>{let{createRailroadServices:e}=await (_("aadrd13j"),import("./railroad-I3PHUGI6.aadrd13j.js")),t=e().Railroad.parser.LangiumParser;je.railroad=t},"railroad"),railroadEbnf:i(async()=>{let{createRailroadEbnfServices:e}=await (_("y44ppt8p"),import("./railroad-ebnf-DWYD2UWJ.y44ppt8p.js")),t=e().RailroadEbnf.parser.LangiumParser;je.railroadEbnf=t},"railroadEbnf"),railroadAbnf:i(async()=>{let{createRailroadAbnfServices:e}=await (_("6btgmncj"),import("./railroad-abnf-LNEFI6M7.6btgmncj.js")),t=e().RailroadAbnf.parser.LangiumParser;je.railroadAbnf=t},"railroadAbnf"),railroadPeg:i(async()=>{let{createRailroadPegServices:e}=await (_("328jgxkz"),import("./railroad-peg-JR7BVNR7.328jgxkz.js")),t=e().RailroadPeg.parser.LangiumParser;je.railroadPeg=t},"railroadPeg"),treemap:i(async()=>{let{createTreemapServices:e}=await (_("8gv7pmqr"),import("./treemap-SAJKECNS.8gv7pmqr.js")),t=e().Treemap.parser.LangiumParser;je.treemap=t},"treemap"),wardley:i(async()=>{let{createWardleyServices:e}=await (_("6v9j3be8"),import("./wardley-7MLQ67FV.6v9j3be8.js")),t=e().Wardley.parser.LangiumParser;je.wardley=t},"wardley"),cynefin:i(async()=>{let{createCynefinServices:e}=await (_("wgr8qmb2"),import("./cynefin-EF2NZ3EQ.wgr8qmb2.js")),t=e().Cynefin.parser.LangiumParser;je.cynefin=t},"cynefin")};async function se(e,t){let r=FP[e];if(!r)throw Error(`Unknown diagram type: ${e}`);if(!je[e])await r();let a=je[e].parse(t);if(a.lexerErrors.length>0||a.parserErrors.length>0)throw new Lt(a);return a.value}i(se,"parse");var Yl=i((e)=>e!==void 0&&e>=0?e:"?","formatLocation"),Lt=class extends Error{constructor(e){let t=e.lexerErrors.map((n)=>{let a=Yl(n.line),s=Yl(n.column);return`Lexer error on line ${a}, column ${s}: ${n.message}`}).join(`
140
140
  `),r=e.parserErrors.map((n)=>{let a=Yl(n.token.startLine),s=Yl(n.token.startColumn);return`Parse error on line ${a}, column ${s}: ${n.message}`}).join(`
141
141
  `);super(`Parsing failed: ${t} ${r}`);this.result=e}static{i(this,"MermaidParseError")}};
142
142
  export{ka,Ko,Pn,Bn,Fn,$n,Yo,Xo,Qo,Zo,Jo,es,ts,rs,ns,as,se,Lt};
@@ -1,4 +1,4 @@
1
- import{Xn}from"./index.zm5x44tn.js";import{e,n,be,gt,Pe,Ir,y,A,L,R,I,M,D,O,u,Pt,Kr,m,ut,dt,ve,he,pe,tt,z,We,aa,Cs,bn,Ae,_e}from"./index.a1bxkgd3.js";import{Xt}from"./index.0e4s8r4m.js";import{Xe}from"./index.dnnzjw18.js";import{Ee}from"./index.7k5v3p25.js";import{ge}from"./index.9bf5qrah.js";var x1="flowchart-",g1=["row","column","horizontalAlign","verticalAlign"],F1=new Set(["shape","label","icon","form","pos","img","w","h","constraint","priority","assigned","ticket","labelType","view",...g1]);function _t(t,r=!1){if(!t)return;let o=t,a={};for(let l of g1)if(Object.hasOwn(o,l))a[l]=o[l];if(r&&Object.hasOwn(o,"algorithm"))a.algorithm=o.algorithm;return Object.keys(a).length>0?a:void 0}e(_t,"pickFlowchartLayoutMetadata");var v1=["laneRole","laneIndex","drawnExtent"];function A1(t){if(!t||typeof t!=="object")return t;let r={...t};for(let o of v1)Reflect.deleteProperty(r,o);return r}e(A1,"withoutInternalKeys");var _1=class{constructor(){this.vertexCounter=0,this.config=u(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=L,this.setAccDescription=I,this.setDiagramTitle=D,this.getAccTitle=R,this.getAccDescription=M,this.getDiagramTitle=O,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{e(this,"FlowDB")}sanitizeText(t){return y.sanitizeText(t,this.config)}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}setDiagramId(t){this.diagramId=t}lookUpDomId(t){for(let r of this.vertices.values())if(r.id===t)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${t}`:t}addVertex(t,r,o,a,l,b,d={},C){if(!t||t.trim().length===0)return;let p;if(C!==void 0){let S;if(!C.includes(`
1
+ import{Xn}from"./index.mcyw2bze.js";import{e,n,be,gt,Pe,Ir,y,A,L,R,I,M,D,O,u,Pt,Kr,m,ut,dt,ve,he,pe,tt,z,We,aa,Cs,bn,Ae,_e}from"./index.yfbwd99n.js";import{Xt}from"./index.7q6v461v.js";import{Xe}from"./index.xrg5yg8d.js";import{Ee}from"./index.newjn1k4.js";import{ge}from"./index.pyz71tqx.js";var x1="flowchart-",g1=["row","column","horizontalAlign","verticalAlign"],F1=new Set(["shape","label","icon","form","pos","img","w","h","constraint","priority","assigned","ticket","labelType","view",...g1]);function _t(t,r=!1){if(!t)return;let o=t,a={};for(let l of g1)if(Object.hasOwn(o,l))a[l]=o[l];if(r&&Object.hasOwn(o,"algorithm"))a.algorithm=o.algorithm;return Object.keys(a).length>0?a:void 0}e(_t,"pickFlowchartLayoutMetadata");var v1=["laneRole","laneIndex","drawnExtent"];function A1(t){if(!t||typeof t!=="object")return t;let r={...t};for(let o of v1)Reflect.deleteProperty(r,o);return r}e(A1,"withoutInternalKeys");var _1=class{constructor(){this.vertexCounter=0,this.config=u(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=L,this.setAccDescription=I,this.setDiagramTitle=D,this.getAccTitle=R,this.getAccDescription=M,this.getDiagramTitle=O,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{e(this,"FlowDB")}sanitizeText(t){return y.sanitizeText(t,this.config)}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}setDiagramId(t){this.diagramId=t}lookUpDomId(t){for(let r of this.vertices.values())if(r.id===t)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${t}`:t}addVertex(t,r,o,a,l,b,d={},C){if(!t||t.trim().length===0)return;let p;if(C!==void 0){let S;if(!C.includes(`
2
2
  `))S=`{
3
3
  `+C+`
4
4
  }`;else S=C+`
@@ -1,2 +1,2 @@
1
- import{e}from"./index.a1bxkgd3.js";var Br=class{constructor(t){this.init=t,this.records=this.init()}static{e(this,"ImperativeState")}reset(){this.records=this.init()}};
1
+ import{e}from"./index.yfbwd99n.js";var Br=class{constructor(t){this.init=t,this.records=this.init()}static{e(this,"ImperativeState")}reset(){this.records=this.init()}};
2
2
  export{Br};
@@ -1,2 +1,2 @@
1
- import{e}from"./index.a1bxkgd3.js";function Xn(c){let n=new WeakMap;function o(t){if(t===null||typeof t!=="object")return t;let s=n.get(t);if(s!==void 0)return s;if(Array.isArray(t)){let r=Array(t.length);return n.set(t,r),t.forEach((p,f)=>{r[f]=o(p)}),r}let i={};n.set(t,i);for(let r of Object.keys(t)){if(r==="__proto__"||r==="constructor"||r==="prototype")continue;i[r]=o(t[r])}return i}return e(o,"sanitize"),o(c)}e(Xn,"stripPrototypeKeys");
1
+ import{e}from"./index.yfbwd99n.js";function Xn(c){let n=new WeakMap;function o(t){if(t===null||typeof t!=="object")return t;let s=n.get(t);if(s!==void 0)return s;if(Array.isArray(t)){let r=Array(t.length);return n.set(t,r),t.forEach((p,f)=>{r[f]=o(p)}),r}let i={};n.set(t,i);for(let r of Object.keys(t)){if(r==="__proto__"||r==="constructor"||r==="prototype")continue;i[r]=o(t[r])}return i}return e(o,"sanitize"),o(c)}e(Xn,"stripPrototypeKeys");
2
2
  export{Xn};
@@ -1,2 +1,2 @@
1
- import{e,m}from"./index.a1bxkgd3.js";var Ee=e((o,t)=>{let n;if(t==="sandbox")n=m("#i"+o);return(t==="sandbox"?m(n.nodes()[0].contentDocument.body):m("body")).select(`[id="${o}"]`)},"getDiagramElement");
1
+ import{e,m}from"./index.yfbwd99n.js";var Ee=e((o,t)=>{let n;if(t==="sandbox")n=m("#i"+o);return(t==="sandbox"?m(n.nodes()[0].contentDocument.body):m("body")).select(`[id="${o}"]`)},"getDiagramElement");
2
2
  export{Ee};
@@ -1,2 +1,2 @@
1
- import{E,d,P,o,r,Se}from"./index.e35b4yh5.js";var w=/^rgb\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)\s*\)$/;function b(e,n){e.clearRect(0,0,1,1),e.fillStyle="#000",e.fillStyle=n,e.fillRect(0,0,1,1);let[l=0,t=0,a=0,i=255]=e.getImageData(0,0,1,1).data;return[l,t,a,i]}function x(e,n){let l=e.ownerDocument,t,a=l.createElement("span");a.setAttribute("aria-hidden","true"),a.style.setProperty("display","none"),e.append(a);try{return n.map(({css:i,tone:s})=>{s?a.setAttribute("data-tone",s):a.removeAttribute("data-tone"),a.style.setProperty("color",""),a.style.setProperty("color",i);let u=l.defaultView?.getComputedStyle(a).color??"",f=w.exec(u);if(f)return[Number(f[1]),Number(f[2]),Number(f[3]),255];if(!u)return null;if(t===void 0){let m=l.createElement("canvas");m.width=m.height=1,t=m.getContext("2d",{willReadFrequently:!0})}return t?b(t,u):null})}finally{a.remove()}}var S=/^#([0-9a-fA-F]{3})$/,R=/^#([0-9a-fA-F]{6})$/;function On(e){let n=e.trim();if(!n)return null;let l=n.startsWith("#")?n:`#${n}`,t=S.exec(l);if(t?.[1]){let[a,i,s]=t[1];return`#${a}${a}${i}${i}${s}${s}`.toLowerCase()}return R.test(l)?l.toLowerCase():null}var k=/^var\(\s*(--[\w-]+)\s*(,[\s\S]*)?\)$/,c=(e,n)=>({key:`material.image-editor.markup.color-names.${e}`,en:n}),A=c("white","White"),g=c("black","Black"),I={"#ffffff":A,"#111827":g,"#000000":g,"#f97316":c("orange","Orange"),"#8b5cf6":c("violet","Violet"),"var(--primary)":c("primary","Primary"),"var(--destructive)":c("danger","Danger"),"var(--warning)":c("warning","Warning"),"var(--success)":c("success","Success"),"var(--info)":c("info","Info")},Js=(e)=>I[On(e)??e.trim().toLowerCase()],p=(e)=>e.toString(16).padStart(2,"0");function el(e,n){let l=On(e);if(l)return l;let t=k.exec(e.trim()),[a]=x(n,[{css:t&&!t[2]?`var(${t[1]}, transparent)`:e}]);return a?.[3]?`#${p(a[0])}${p(a[1])}${p(a[2])}`:null}function L(e,n,l){let t=On(n);return!t||l.includes(t)?[...e]:[t,...e.filter((a)=>a!==t)].slice(0,6)}function D(e){let n=[];for(let l of e){let t=On(l);t&&!n.includes(t)&&n.push(t)}return n.slice(0,6)}function N({recentColors:e,onRecentColorsChange:n}){let[l,t]=o([]),a=e===void 0?l:D(e),i=Se(a),s=Se(n),u=Se(e!==void 0);return{colors:a,add:d((f,m)=>{let v=L(i.current,f,m);v.join()!==i.current.join()&&(u.current||t(v),s.current?.(v))},[i,u,s])}}var C=E(null),h=E(null);function tl({value:e,recentColors:n,onRecentColorsChange:l,children:t}){let a=N({recentColors:n,onRecentColorsChange:l});return r(C.Provider,{value:e,children:r(h.Provider,{value:a,children:t})})}var y=()=>Error("ImageEditor parts must be used inside <ImageEditor>");function V(){let e=P(C);if(!e)throw y();return e}function rl(){let e=P(h);if(!e)throw y();return e}function nl(e){let n=e.trim().replace("#",""),l=n.length===3?n.replace(/./g,(u)=>u+u):n;if(!/^[0-9a-f]{6}/i.test(l))return!1;let t=Number.parseInt(l.slice(0,6),16),a=t>>16&255,i=t>>8&255,s=t&255;return 0.299*a+0.587*i+0.114*s>160}function Wo(e){return e.label??e.value}function Dn(e,n){return!!(e&&n&&e.toLowerCase()===n.toLowerCase())}function wa(e){return e&&/^#[0-9a-f]{6}$/i.test(e)?e:"#000000"}
1
+ import{E,d,P,o,r,Se}from"./index.rn0vxns6.js";var w=/^rgb\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)\s*\)$/;function b(e,n){e.clearRect(0,0,1,1),e.fillStyle="#000",e.fillStyle=n,e.fillRect(0,0,1,1);let[l=0,t=0,a=0,i=255]=e.getImageData(0,0,1,1).data;return[l,t,a,i]}function x(e,n){let l=e.ownerDocument,t,a=l.createElement("span");a.setAttribute("aria-hidden","true"),a.style.setProperty("display","none"),e.append(a);try{return n.map(({css:i,tone:s})=>{s?a.setAttribute("data-tone",s):a.removeAttribute("data-tone"),a.style.setProperty("color",""),a.style.setProperty("color",i);let u=l.defaultView?.getComputedStyle(a).color??"",f=w.exec(u);if(f)return[Number(f[1]),Number(f[2]),Number(f[3]),255];if(!u)return null;if(t===void 0){let m=l.createElement("canvas");m.width=m.height=1,t=m.getContext("2d",{willReadFrequently:!0})}return t?b(t,u):null})}finally{a.remove()}}var S=/^#([0-9a-fA-F]{3})$/,R=/^#([0-9a-fA-F]{6})$/;function On(e){let n=e.trim();if(!n)return null;let l=n.startsWith("#")?n:`#${n}`,t=S.exec(l);if(t?.[1]){let[a,i,s]=t[1];return`#${a}${a}${i}${i}${s}${s}`.toLowerCase()}return R.test(l)?l.toLowerCase():null}var k=/^var\(\s*(--[\w-]+)\s*(,[\s\S]*)?\)$/,c=(e,n)=>({key:`material.image-editor.markup.color-names.${e}`,en:n}),A=c("white","White"),g=c("black","Black"),I={"#ffffff":A,"#111827":g,"#000000":g,"#f97316":c("orange","Orange"),"#8b5cf6":c("violet","Violet"),"var(--primary)":c("primary","Primary"),"var(--destructive)":c("danger","Danger"),"var(--warning)":c("warning","Warning"),"var(--success)":c("success","Success"),"var(--info)":c("info","Info")},Js=(e)=>I[On(e)??e.trim().toLowerCase()],p=(e)=>e.toString(16).padStart(2,"0");function el(e,n){let l=On(e);if(l)return l;let t=k.exec(e.trim()),[a]=x(n,[{css:t&&!t[2]?`var(${t[1]}, transparent)`:e}]);return a?.[3]?`#${p(a[0])}${p(a[1])}${p(a[2])}`:null}function L(e,n,l){let t=On(n);return!t||l.includes(t)?[...e]:[t,...e.filter((a)=>a!==t)].slice(0,6)}function D(e){let n=[];for(let l of e){let t=On(l);t&&!n.includes(t)&&n.push(t)}return n.slice(0,6)}function N({recentColors:e,onRecentColorsChange:n}){let[l,t]=o([]),a=e===void 0?l:D(e),i=Se(a),s=Se(n),u=Se(e!==void 0);return{colors:a,add:d((f,m)=>{let v=L(i.current,f,m);v.join()!==i.current.join()&&(u.current||t(v),s.current?.(v))},[i,u,s])}}var C=E(null),h=E(null);function tl({value:e,recentColors:n,onRecentColorsChange:l,children:t}){let a=N({recentColors:n,onRecentColorsChange:l});return r(C.Provider,{value:e,children:r(h.Provider,{value:a,children:t})})}var y=()=>Error("ImageEditor parts must be used inside <ImageEditor>");function V(){let e=P(C);if(!e)throw y();return e}function rl(){let e=P(h);if(!e)throw y();return e}function nl(e){let n=e.trim().replace("#",""),l=n.length===3?n.replace(/./g,(u)=>u+u):n;if(!/^[0-9a-f]{6}/i.test(l))return!1;let t=Number.parseInt(l.slice(0,6),16),a=t>>16&255,i=t>>8&255,s=t&255;return 0.299*a+0.587*i+0.114*s>160}function Wo(e){return e.label??e.value}function Dn(e,n){return!!(e&&n&&e.toLowerCase()===n.toLowerCase())}function wa(e){return e&&/^#[0-9a-f]{6}$/i.test(e)?e:"#000000"}
2
2
  export{On,Js,el,tl,V,rl,nl,Wo,Dn,wa};
@@ -1,2 +1,2 @@
1
- import{e,n,j}from"./index.a1bxkgd3.js";var ge=e((t,i,o,h)=>{t.attr("class",o);let{width:r,height:a,x:w,y:x}=u(t,i);j(t,a,r,h);let c=m(w,x,r,a,i);t.attr("viewBox",c),n.debug(`viewBox configured: ${c} with padding: ${i}`)},"setupViewPortForSVG"),u=e((t,i)=>{let o=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:o.width+i*2,height:o.height+i*2,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),m=e((t,i,o,h,r)=>`${t-r} ${i-r} ${o} ${h}`,"createViewBox");
1
+ import{e,n,j}from"./index.yfbwd99n.js";var ge=e((t,i,o,h)=>{t.attr("class",o);let{width:r,height:a,x:w,y:x}=u(t,i);j(t,a,r,h);let c=m(w,x,r,a,i);t.attr("viewBox",c),n.debug(`viewBox configured: ${c} with padding: ${i}`)},"setupViewPortForSVG"),u=e((t,i)=>{let o=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:o.width+i*2,height:o.height+i*2,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),m=e((t,i,o,h,r)=>`${t-r} ${i-r} ${o} ${h}`,"createViewBox");
2
2
  export{ge};