@softistx/pulsarix-widget 0.7.3 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -8
- package/dist/chunks/abnfDiagram-XWFEHMT6.jcqkp43e.js +1 -0
- package/dist/chunks/architecture-WOLXFQ4H.6qa86taq.js +1 -0
- package/dist/chunks/architectureDiagram-CSQXQB3N.pk9dxdfb.js +36 -0
- package/dist/chunks/blockDiagram-BEDRHYPZ.ehefn7dt.js +140 -0
- package/dist/chunks/bpmnIcons-APHXDYXF.whh96nc8.js +1 -0
- package/dist/chunks/c4Diagram-M2UUVUY5.knj3as6x.js +38 -0
- package/dist/chunks/chat-markdown-DLDNLXM9.tvekh9sm.js +301 -0
- package/dist/chunks/classDiagram-v2-KXABOMEV.vtb7vjzn.js +217 -0
- package/dist/chunks/cose-bilkent-JH36ORCC.gb18dr42.js +1 -0
- package/dist/chunks/cynefin-EF2NZ3EQ.e86yfa9w.js +1 -0
- package/dist/chunks/cynefinDiagram-NJNITYFG.akmr90zk.js +62 -0
- package/dist/chunks/dagre-KIHZ2IZ3.7n7s7vq2.js +4 -0
- package/dist/chunks/diagram-7YQZDPLS.d3sdv0py.js +41 -0
- package/dist/chunks/diagram-QBROCOUO.2v08zs42.js +200 -0
- package/dist/chunks/diagram-RJJCUUZO.tpnwa621.js +30 -0
- package/dist/chunks/diagram-WERXNKYE.hz7tgbtr.js +24 -0
- package/dist/chunks/diagram-YHHI257C.9gge9ecb.js +3 -0
- package/dist/chunks/diagram-YR4HJLHV.bajpx75b.js +24 -0
- package/dist/chunks/ebnfDiagram-N527522P.hxbbq671.js +1 -0
- package/dist/chunks/editor-shortcuts-dialog-I77EAez1.0s00eh53.js +1 -0
- package/dist/chunks/editor.h5bxwyxn.js +4 -0
- package/dist/chunks/elk-O5DQBFGD.vy7cdqps.js +27 -0
- package/dist/chunks/emoji-picker-BofyuTmK.qf287fk6.js +4 -0
- package/dist/chunks/erDiagram-K3K3BIDK.kzs3v0ts.js +99 -0
- package/dist/chunks/eventmodeling-K75KTNOO.9yb5zf47.js +1 -0
- package/dist/chunks/flow-diagram-OPO1ep57.5006stqg.js +7 -0
- package/dist/chunks/flowDiagram-Z6JWZHQI.zf0kndsp.js +1 -0
- package/dist/chunks/ganttDiagram-3PRQTZWP.qkcp8pvg.js +292 -0
- package/dist/chunks/gitGraph-VSP46ZUC.txpj8e6d.js +1 -0
- package/dist/chunks/gitGraphDiagram-VXDFKS5L.ry9dejxm.js +106 -0
- package/dist/chunks/grid-E2QIVN74.q51enfx7.js +1 -0
- package/dist/chunks/illustration-BoOzuxNg.h0gnxa4s.js +1 -0
- package/dist/chunks/index.0hrfbrja.js +44 -0
- package/dist/chunks/index.153rcscj.js +2 -0
- package/dist/chunks/index.20dvswea.js +2 -0
- package/dist/chunks/index.23p1k2rx.js +2 -0
- package/dist/chunks/index.3k4gyba0.js +2 -0
- package/dist/chunks/index.51yk4ene.js +2 -0
- package/dist/chunks/index.9zhger75.js +142 -0
- package/dist/chunks/index.bfeafb22.js +1 -0
- package/dist/chunks/index.cf9nd6xy.js +2 -0
- package/dist/chunks/index.eec12m3n.js +16 -0
- package/dist/chunks/index.fab58nn0.js +2 -0
- package/dist/chunks/index.fgsp5qqn.js +303 -0
- package/dist/chunks/index.fv9af3wd.js +333 -0
- package/dist/chunks/index.fvh2m60c.js +2 -0
- package/dist/chunks/index.gqa9s37g.js +2 -0
- package/dist/chunks/index.h6120080.js +2 -0
- package/dist/chunks/index.q9dsw4bt.js +2 -0
- package/dist/chunks/index.vnhefjwh.js +2 -0
- package/dist/chunks/index.x163xe9c.js +89 -0
- package/dist/chunks/index.x1xqs5m5.js +214 -0
- package/dist/chunks/index.yf0h5qnv.js +2 -0
- package/dist/chunks/info-OHQRW6UA.xea9bh7d.js +1 -0
- package/dist/chunks/infoDiagram-EZ3ZOAHP.r2yygqw8.js +2 -0
- package/dist/chunks/ishikawaDiagram-S3EKX5GW.gwqtdvb2.js +70 -0
- package/dist/chunks/journeyDiagram-POQNLL5X.rp31qkq5.js +139 -0
- package/dist/chunks/kanban-definition-BH5XI6FM.ymsqx6en.js +89 -0
- package/dist/chunks/katex.n08hp8fc.js +257 -0
- package/dist/chunks/markup-color-chrome-ykGNUl8y.06cy435c.js +1 -0
- package/dist/chunks/markup-custom-color-C8Xc6JxB.an2wngns.js +1 -0
- package/dist/chunks/mention-list-Dhq70jL5.1k61f24q.js +1 -0
- package/dist/chunks/mermaid.core.x45crg0h.js +12 -0
- package/dist/chunks/mindmap-definition-WVAN44T4.5cbd4rg2.js +98 -0
- package/dist/chunks/packet-JDAUHWVQ.c7dmae11.js +1 -0
- package/dist/chunks/panel.rzp4q8s3.js +7 -0
- package/dist/chunks/pegDiagram-D4NLKWP3.fsryts4r.js +1 -0
- package/dist/chunks/pie-XZMESJXO.6rv4kzjx.js +1 -0
- package/dist/chunks/pieDiagram-36ENHN4W.k4k2gvg0.js +39 -0
- package/dist/chunks/plated-illustration-BzxADkoZ.wtc9psry.js +1 -0
- package/dist/chunks/quadrantDiagram-ZQUDMS73.j7nj12w0.js +7 -0
- package/dist/chunks/radar-ABXABTNO.58dfc8ba.js +1 -0
- package/dist/chunks/railroad-I3PHUGI6.00fqbahv.js +1 -0
- package/dist/chunks/railroad-abnf-LNEFI6M7.gt1x50q5.js +1 -0
- package/dist/chunks/railroad-ebnf-DWYD2UWJ.qr5qfkga.js +1 -0
- package/dist/chunks/railroad-peg-JR7BVNR7.m61rq7hj.js +1 -0
- package/dist/chunks/railroadDiagram-JIZHGYPL.a681wt3b.js +1 -0
- package/dist/chunks/render-VIF2ZAQL.rn9hpsbx.js +1 -0
- package/dist/chunks/requirementDiagram-AXW2TVFA.shapgy39.js +84 -0
- package/dist/chunks/sankeyDiagram-FBCJTAIF.2syz1e2b.js +40 -0
- package/dist/chunks/sequenceDiagram-3LA2ROMG.jq1w12a6.js +169 -0
- package/dist/chunks/sizeCapture-2Q2CQKSF.jtv53a6j.js +1 -0
- package/dist/chunks/stateDiagram-v2-ATKHQDJO.x0g2rngz.js +291 -0
- package/dist/chunks/swimlanes-YQL5WMAO.j7j7c6ex.js +1 -0
- package/dist/chunks/swimlanesDiagram-UCCPES4V.tzqcsrmd.js +8 -0
- package/dist/chunks/timeline-definition-7Z437IG3.s5bvn8dr.js +120 -0
- package/dist/chunks/treeView-D4JQ5SDB.0x1grm2t.js +1 -0
- package/dist/chunks/treemap-SAJKECNS.1te19jsm.js +1 -0
- package/dist/chunks/usecaseDiagram-RDK6N6HP.9k4r423e.js +370 -0
- package/dist/chunks/vennDiagram-SHRQU5PJ.82q5dzm6.js +34 -0
- package/dist/chunks/wardley-7MLQ67FV.zp6gykk3.js +1 -0
- package/dist/chunks/wardleyDiagram-F3OXNVQS.fm4tw2nc.js +78 -0
- package/dist/chunks/xychartDiagram-GDYJKCDI.57vqn2zd.js +7 -0
- package/dist/index.js +23 -4695
- package/docs/integration.md +146 -33
- package/package.json +7 -6
|
@@ -0,0 +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.fgsp5qqn.js";import{ue}from"./index.20dvswea.js";import{_}from"./index.0hrfbrja.js";function Ii(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(Ii,"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=Ii(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 (_("jtv53a6j"),import("./sizeCapture-2Q2CQKSF.jtv53a6j.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),Di();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 Di(){kl(),Cl(),Tl(),Y()}e(Di,"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
|
+
export{Ii,Mi,Q,dn,cl,Ni,ot,Di,fn};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{e,n,j}from"./index.fgsp5qqn.js";var ge=e((t,i,o,h)=>{t.attr("class",o);let{width:r,height:a,x:w,y:x}=u(t,i);j(t,a,r,h);let c=m(w,x,r,a,i);t.attr("viewBox",c),n.debug(`viewBox configured: ${c} with padding: ${i}`)},"setupViewPortForSVG"),u=e((t,i)=>{let o=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:o.width+i*2,height:o.height+i*2,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),m=e((t,i,o,h,r)=>`${t-r} ${i-r} ${o} ${h}`,"createViewBox");
|
|
2
|
+
export{ge};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{f,d,w,i,X,r,re,ke,B,Je,tr,yr,ci,ui}from"./index.0hrfbrja.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,R=(e,o)=>Q(e,"name",{value:o,configurable:!0}),C={Horizontal:"horizontal",Vertical:"vertical"},P=C.Horizontal,q=Object.values(C),Is=f(R(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 q.includes(e)}R(G,"isValidOrientation");var J=Object.defineProperty,K=(e,o)=>J(e,"name",{value:o,configurable:!0}),L=["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))}K(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(L.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(S,{...l,ref:o})}):r(S,{...l,ref:o})},"ToggleGroupItem")),S=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(Is,{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
|
+
export{Is,Sl,El,Al,_l,oa};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import{e,n,Me,k,q,j,A,u,Y}from"./index.fgsp5qqn.js";var M="",O="",D="",E=[],b=new Map,S=e((t)=>q(t,u()),"sanitizeText"),R=e((t)=>{switch(t.type){case"terminal":return{...t,value:S(t.value)};case"nonterminal":return{...t,name:S(t.name)};case"sequence":return{...t,elements:t.elements.map(R)};case"choice":return{...t,alternatives:t.alternatives.map(R)};case"optional":return{...t,element:R(t.element)};case"repetition":return{...t,element:R(t.element),separator:t.separator?R(t.separator):void 0};case"special":return{...t,text:S(t.text)}}},"sanitizeAstNode"),G=e(()=>{M="",O="",D="",E.length=0,b.clear(),A(),n.debug("[Railroad] Database cleared")},"clear"),P=e((t)=>{M=S(t),n.debug("[Railroad] Title set:",t)},"setTitle"),L=e(()=>M,"getTitle"),U=e((t)=>{let a={...t,name:S(t.name),definition:R(t.definition),comment:t.comment?S(t.comment):void 0};if(n.debug("[Railroad] Adding rule:",a.name),b.has(a.name))n.warn(`[Railroad] Rule '${a.name}' is already defined. Overwriting.`);E.push(a),b.set(a.name,a)},"addRule"),K=e(()=>E,"getRules"),J=e((t)=>b.get(t),"getRule"),Q=e((t)=>{O=S(t).replace(/^\s+/g,""),n.debug("[Railroad] Accessibility title set:",t)},"setAccTitle"),Z=e(()=>O,"getAccTitle"),V=e((t)=>{D=S(t).replace(/\n\s+/g,`
|
|
2
|
+
`),n.debug("[Railroad] Accessibility description set:",t)},"setAccDescription"),ee=e(()=>D,"getAccDescription"),te=P,re=L,ce={clear:G,setTitle:P,getTitle:L,addRule:U,getRules:K,getRule:J,setAccTitle:Q,getAccTitle:Z,setAccDescription:V,getAccDescription:ee,setDiagramTitle:te,getDiagramTitle:re},T={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},ie=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,ne=/^[\w "',.-]+$/,ae=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),I=e((t)=>{if(!t)return!1;return Object.keys(t).every((a)=>a==="railroad"||ae.has(a))},"isRailroadStyleOptions"),oe=e((t)=>{if(!t)return{};if("railroad"in t&&t.railroad)return t.railroad;return I(t)?t:{}},"extractRailroadOverrides"),le=e((t)=>{if(!t||I(t))return{};let{railroad:a,svgId:l,theme:i,look:r,...o}=t;return o},"extractThemeOverrides"),p=e((t,a)=>{if(typeof t!=="string")return a;let l=t.trim();return ie.test(l)?l:a},"sanitizeColorValue"),X=e((t,a)=>{if(typeof t!=="string")return a;let l=t.trim();return ne.test(l)?l:a},"sanitizeFontFamilyValue"),y=e((t,a)=>{let l=typeof t==="number"?t:typeof t==="string"?Number.parseFloat(t):Number.NaN;return Number.isFinite(l)&&l>=0?l:a},"sanitizeNumberValue"),se=e((t)=>{let a=typeof t==="number"?t:typeof t==="string"?Number.parseFloat(t):Number.NaN;return Number.isFinite(a)&&a>0?a:void 0},"parseThemeFontSize"),de=e((t)=>{let a=X(t.fontFamily,T.fontFamily),l=se(t.fontSize)??T.fontSize;return{...T,fontFamily:a,fontSize:l,terminalFill:p(t.secondBkg??t.secondaryColor,T.terminalFill),terminalStroke:p(t.secondaryBorderColor??t.lineColor,T.terminalStroke),terminalTextColor:p(t.secondaryTextColor??t.textColor,T.terminalTextColor),nonTerminalFill:p(t.mainBkg??t.background,T.nonTerminalFill),nonTerminalStroke:p(t.primaryBorderColor??t.lineColor,T.nonTerminalStroke),nonTerminalTextColor:p(t.primaryTextColor??t.textColor,T.nonTerminalTextColor),lineColor:p(t.lineColor,T.lineColor),markerFill:p(t.lineColor,T.markerFill),commentFill:p(t.labelBackground??t.tertiaryColor,T.commentFill),commentStroke:p(t.tertiaryBorderColor??t.lineColor,T.commentStroke),commentTextColor:p(t.tertiaryTextColor??t.textColor,T.commentTextColor),specialFill:p(t.tertiaryColor??t.secondaryColor,T.specialFill),specialStroke:p(t.tertiaryBorderColor??t.secondaryBorderColor,T.specialStroke),ruleNameColor:p(t.titleColor??t.textColor,T.ruleNameColor)}},"buildThemeDefaults"),W=e((t)=>{let a=k(),l={...Me(),...a.themeVariables??{},...le(t)},i=de(l),r={...a.railroad??{},...oe(t)};return{compactMode:r.compactMode??i.compactMode,padding:y(r.padding,i.padding),verticalSeparation:y(r.verticalSeparation,i.verticalSeparation),horizontalSeparation:y(r.horizontalSeparation,i.horizontalSeparation),arcRadius:y(r.arcRadius,i.arcRadius),fontSize:y(r.fontSize,i.fontSize),fontFamily:X(r.fontFamily,i.fontFamily),terminalFill:p(r.terminalFill,i.terminalFill),terminalStroke:p(r.terminalStroke,i.terminalStroke),terminalTextColor:p(r.terminalTextColor,i.terminalTextColor),nonTerminalFill:p(r.nonTerminalFill,i.nonTerminalFill),nonTerminalStroke:p(r.nonTerminalStroke,i.nonTerminalStroke),nonTerminalTextColor:p(r.nonTerminalTextColor,i.nonTerminalTextColor),lineColor:p(r.lineColor,i.lineColor),strokeWidth:y(r.strokeWidth,i.strokeWidth),markerFill:p(r.markerFill,i.markerFill),commentFill:p(r.commentFill,i.commentFill),commentStroke:p(r.commentStroke,i.commentStroke),commentTextColor:p(r.commentTextColor,i.commentTextColor),specialFill:p(r.specialFill,i.specialFill),specialStroke:p(r.specialStroke,i.specialStroke),ruleNameColor:p(r.ruleNameColor,i.ruleNameColor),showMarkers:r.showMarkers??i.showMarkers,markerRadius:y(r.markerRadius,i.markerRadius)}},"buildRailroadStyleOptions"),Gt=e((t)=>{let{fontFamily:a,fontSize:l,terminalFill:i,terminalStroke:r,terminalTextColor:o,nonTerminalFill:g,nonTerminalStroke:c,nonTerminalTextColor:s,lineColor:f,strokeWidth:h,markerFill:m,commentFill:C,commentStroke:d,commentTextColor:x,specialFill:z,specialStroke:F,ruleNameColor:v}=W(t);return`
|
|
3
|
+
.railroad-diagram {
|
|
4
|
+
font-family: ${a};
|
|
5
|
+
font-size: ${l}px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.railroad-terminal rect {
|
|
9
|
+
fill: ${i};
|
|
10
|
+
stroke: ${r};
|
|
11
|
+
stroke-width: ${h}px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.railroad-terminal text {
|
|
15
|
+
fill: ${o};
|
|
16
|
+
font-family: ${a};
|
|
17
|
+
font-size: ${l}px;
|
|
18
|
+
text-anchor: middle;
|
|
19
|
+
dominant-baseline: middle;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.railroad-nonterminal rect {
|
|
23
|
+
fill: ${g};
|
|
24
|
+
stroke: ${c};
|
|
25
|
+
stroke-width: ${h}px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.railroad-nonterminal text {
|
|
29
|
+
fill: ${s};
|
|
30
|
+
font-family: ${a};
|
|
31
|
+
font-size: ${l}px;
|
|
32
|
+
text-anchor: middle;
|
|
33
|
+
dominant-baseline: middle;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.railroad-line {
|
|
37
|
+
stroke: ${f};
|
|
38
|
+
stroke-width: ${h}px;
|
|
39
|
+
fill: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.railroad-start circle,
|
|
43
|
+
.railroad-end circle {
|
|
44
|
+
fill: ${m};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.railroad-comment ellipse {
|
|
48
|
+
fill: ${C};
|
|
49
|
+
stroke: ${d};
|
|
50
|
+
stroke-width: ${h}px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.railroad-comment text {
|
|
54
|
+
fill: ${x};
|
|
55
|
+
font-style: italic;
|
|
56
|
+
font-family: ${a};
|
|
57
|
+
font-size: ${l}px;
|
|
58
|
+
text-anchor: middle;
|
|
59
|
+
dominant-baseline: middle;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.railroad-special rect {
|
|
63
|
+
fill: ${z};
|
|
64
|
+
stroke: ${F};
|
|
65
|
+
stroke-width: ${h}px;
|
|
66
|
+
stroke-dasharray: 5,3;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.railroad-special text {
|
|
70
|
+
fill: ${s};
|
|
71
|
+
font-family: ${a};
|
|
72
|
+
font-size: ${l}px;
|
|
73
|
+
text-anchor: middle;
|
|
74
|
+
dominant-baseline: middle;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.railroad-rule-name {
|
|
78
|
+
font-weight: bold;
|
|
79
|
+
fill: ${v};
|
|
80
|
+
font-family: ${a};
|
|
81
|
+
font-size: ${l}px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.railroad-group {
|
|
85
|
+
/* Grouping container, no specific styles */
|
|
86
|
+
}
|
|
87
|
+
`},"getStyles"),w=class{constructor(){this.d=""}static{e(this,"PathBuilder")}moveTo(t,a){return this.d+=`M ${t} ${a} `,this}lineTo(t,a){return this.d+=`L ${t} ${a} `,this}horizontalTo(t){return this.d+=`H ${t} `,this}verticalTo(t){return this.d+=`V ${t} `,this}arcTo(t,a,l,i,r,o,g){return this.d+=`A ${t} ${a} ${l} ${i?1:0} ${r?1:0} ${o} ${g} `,this}build(){return this.d.trim()}},me=class{constructor(t,a=W()){this.textCache=new Map,this.svg=t,this.config=a}static{e(this,"RailroadRenderer")}measureText(t){if(this.textCache.has(t))return this.textCache.get(t);let a=this.svg.append("text").attr("font-family",this.config.fontFamily).attr("font-size",this.config.fontSize).text(t),l=a.node().getBBox(),i={width:l.width,height:l.height};return a.remove(),this.textCache.set(t,i),i}renderTerminal(t,a){let l=this.measureText(a),i=l.width+this.config.padding*2,r=l.height+this.config.padding*2,o=t.append("g").attr("class","railroad-terminal");return o.append("rect").attr("x",0).attr("y",0).attr("width",i).attr("height",r).attr("rx",10).attr("ry",10),o.append("text").attr("x",i/2).attr("y",r/2).text(a),{element:o.node(),dimensions:{width:i,height:r,up:r/2,down:r/2}}}renderNonTerminal(t,a){let l=this.measureText(a),i=l.width+this.config.padding*2,r=l.height+this.config.padding*2,o=t.append("g").attr("class","railroad-nonterminal");return o.append("rect").attr("x",0).attr("y",0).attr("width",i).attr("height",r),o.append("text").attr("x",i/2).attr("y",r/2).text(a),{element:o.node(),dimensions:{width:i,height:r,up:r/2,down:r/2}}}renderSequence(t,a){let l=a.map((s)=>this.renderExpression(t,s)),i=0,r=0,o=0;for(let s of l)i+=s.dimensions.width,r=Math.max(r,s.dimensions.up),o=Math.max(o,s.dimensions.down);i+=(l.length-1)*this.config.horizontalSeparation;let g=t.append("g").attr("class","railroad-sequence"),c=0;for(let s=0;s<l.length;s++){let f=l[s],h=r-f.dimensions.up;if(g.node().appendChild(f.element).setAttribute("transform",`translate(${c}, ${h})`),s<l.length-1){let C=c+f.dimensions.width,d=C+this.config.horizontalSeparation,x=r;g.append("path").attr("class","railroad-line").attr("d",new w().moveTo(C,x).lineTo(d,x).build())}c+=f.dimensions.width+this.config.horizontalSeparation}return{element:g.node(),dimensions:{width:i,height:r+o,up:r,down:o}}}renderChoice(t,a){let l=a.map((m)=>this.renderExpression(t,m)),i=0,r=0;for(let m of l)i=Math.max(i,m.dimensions.width),r+=m.dimensions.height;r+=(l.length-1)*this.config.verticalSeparation;let o=this.config.arcRadius,g=o*4,c=i+g,s=t.append("g").attr("class","railroad-choice"),f=0,h=r/2;for(let m of l){let C=f,d=C+m.dimensions.up,x=o*2+(i-m.dimensions.width)/2;s.node().appendChild(m.element).setAttribute("transform",`translate(${x}, ${C})`);let F=new w,v=d>h;if(d===h)F.moveTo(0,h).lineTo(x,d);else F.moveTo(0,h).arcTo(o,o,0,!1,v,o,h+(v?o:-o)).lineTo(o,d-(v?o:-o)).arcTo(o,o,0,!1,!v,o*2,d).lineTo(x,d);s.append("path").attr("class","railroad-line").attr("d",F.build());let N=new w,_=x+m.dimensions.width,H=c-o*2;if(d===h)N.moveTo(_,d).lineTo(c,h);else N.moveTo(_,d).lineTo(H,d).arcTo(o,o,0,!1,!v,c-o,d+(v?-o:o)).lineTo(c-o,h+(v?o:-o)).arcTo(o,o,0,!1,v,c,h);s.append("path").attr("class","railroad-line").attr("d",N.build()),f+=m.dimensions.height+this.config.verticalSeparation}return{element:s.node(),dimensions:{width:c,height:r,up:h,down:r-h}}}renderOptional(t,a){let l=this.renderExpression(t,a),i=this.config.arcRadius,r=i*2,o=l.dimensions.width+i*4,g=l.dimensions.height+r,c=t.append("g").attr("class","railroad-optional"),s=i*2,f=r;c.node().appendChild(l.element).setAttribute("transform",`translate(${s}, ${f})`);let m=f+l.dimensions.up,C=new w().moveTo(0,m).lineTo(i*2,m);c.append("path").attr("class","railroad-line").attr("d",C.build());let d=new w().moveTo(s+l.dimensions.width,m).lineTo(o,m);c.append("path").attr("class","railroad-line").attr("d",d.build());let x=new w().moveTo(0,m).arcTo(i,i,0,!1,!1,i,m-i).lineTo(i,i).arcTo(i,i,0,!1,!0,i*2,0).lineTo(o-i*2,0).arcTo(i,i,0,!1,!0,o-i,i).lineTo(o-i,m-i).arcTo(i,i,0,!1,!1,o,m);return c.append("path").attr("class","railroad-line").attr("d",x.build()),{element:c.node(),dimensions:{width:o,height:g,up:m,down:g-m}}}renderRepetition(t,a,l){let i=this.renderExpression(t,a),r=this.config.arcRadius,o=r*2,g=i.dimensions.width+r*4,c=l===0,s=i.dimensions.height+o+(c?o:0),f=t.append("g").attr("class","railroad-repetition"),h=r*2,m=c?o:0;f.node().appendChild(i.element).setAttribute("transform",`translate(${h}, ${m})`);let d=m+i.dimensions.up;f.append("path").attr("class","railroad-line").attr("d",new w().moveTo(0,d).lineTo(r*2,d).build()),f.append("path").attr("class","railroad-line").attr("d",new w().moveTo(h+i.dimensions.width,d).lineTo(g,d).build());let x=m+i.dimensions.height+r,z=new w().moveTo(h+i.dimensions.width,d).arcTo(r,r,0,!1,!0,h+i.dimensions.width+r,d+r).lineTo(h+i.dimensions.width+r,x).arcTo(r,r,0,!1,!0,h+i.dimensions.width,x+r).lineTo(r*2,x+r).arcTo(r,r,0,!1,!0,r,x).lineTo(r,d+r).arcTo(r,r,0,!1,!0,r*2,d);if(f.append("path").attr("class","railroad-line").attr("d",z.build()),c){let F=new w().moveTo(0,d).arcTo(r,r,0,!1,!1,r,d-r).lineTo(r,r).arcTo(r,r,0,!1,!0,r*2,0).lineTo(g-r*2,0).arcTo(r,r,0,!1,!0,g-r,r).lineTo(g-r,d-r).arcTo(r,r,0,!1,!1,g,d);f.append("path").attr("class","railroad-line").attr("d",F.build())}return{element:f.node(),dimensions:{width:g,height:s,up:d,down:s-d}}}renderSpecial(t,a){let l=this.measureText("? "+a+" ?"),i=l.width+this.config.padding*2,r=l.height+this.config.padding*2,o=t.append("g").attr("class","railroad-special");return o.append("rect").attr("x",0).attr("y",0).attr("width",i).attr("height",r),o.append("text").attr("x",i/2).attr("y",r/2).text("? "+a+" ?"),{element:o.node(),dimensions:{width:i,height:r,up:r/2,down:r/2}}}renderExpression(t,a){switch(a.type){case"terminal":return this.renderTerminal(t,a.value);case"nonterminal":return this.renderNonTerminal(t,a.name);case"sequence":return this.renderSequence(t,a.elements);case"choice":return this.renderChoice(t,a.alternatives);case"optional":return this.renderOptional(t,a.element);case"repetition":return this.renderRepetition(t,a.element,a.min);case"special":return this.renderSpecial(t,a.text);default:throw Error(`Unknown node type: ${a.type}`)}}renderRule(t,a){let l=this.svg.append("g").attr("class","railroad-rule").attr("transform",`translate(0, ${a})`),i=t.name+" =",r=this.measureText(i).width+20,o=r+20,g=l.append("g"),c=this.renderExpression(g,t.definition),s=Math.max(20,c.dimensions.up),f=s-c.dimensions.up;return g.attr("transform",`translate(${o}, ${f})`),l.append("g").attr("class","railroad-rule-name-group").append("text").attr("class","railroad-rule-name").attr("x",0).attr("y",s).text(i),l.append("g").attr("class","railroad-start").append("circle").attr("cx",r).attr("cy",s).attr("r",this.config.markerRadius),l.append("g").attr("class","railroad-end").append("circle").attr("cx",o+c.dimensions.width+10).attr("cy",s).attr("r",this.config.markerRadius),l.append("path").attr("class","railroad-line").attr("d",new w().moveTo(r+this.config.markerRadius,s).lineTo(o,s).build()),l.append("path").attr("class","railroad-line").attr("d",new w().moveTo(o+c.dimensions.width,s).lineTo(o+c.dimensions.width+10-this.config.markerRadius,s).build()),{height:Math.max(40,f+c.dimensions.height+this.config.padding*2),width:o+c.dimensions.width+10+this.config.markerRadius}}renderDiagram(t){let a=this.config.padding,l=0;for(let i of t){let r=this.renderRule(i,a);a+=r.height+this.config.verticalSeparation,l=Math.max(l,r.width)}return{width:l+this.config.padding*2,height:a+this.config.padding}}},B=e((t,a,l)=>{j(t,a.height,a.width,l),t.attr("viewBox",`0 0 ${a.width} ${a.height}`)},"configureRailroadSvgSize"),he=e((t,a,l)=>{n.debug(`[Railroad] Rendering diagram
|
|
88
|
+
`+t);try{let i=Y(a);i.attr("class","railroad-diagram");let o=k().railroad?.useMaxWidth??!0,g=ce.getRules();if(n.debug(`[Railroad] Rendering ${g.length} rules`),g.length===0){n.warn("[Railroad] No rules to render"),B(i,{height:100,width:200},o);return}let s=new me(i,W()).renderDiagram(g);B(i,s,o),n.debug("[Railroad] Render complete")}catch(i){throw n.error("[Railroad] Render error:",i),i}},"draw"),Vt={draw:he};
|
|
89
|
+
export{ce,Gt,Vt};
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import{Xn}from"./index.153rcscj.js";import{e,n,be,gt,Pe,Rr,y,A,L,I,R,M,O,D,u,Pt,Kr,m,ut,dt,ve,he,pe,tt,z,We,aa,Cs,bn,Ae,_e}from"./index.fgsp5qqn.js";import{Xt}from"./index.23p1k2rx.js";import{Xe}from"./index.eec12m3n.js";import{Ee}from"./index.gqa9s37g.js";import{ge}from"./index.h6120080.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=R,this.setDiagramTitle=O,this.getAccTitle=I,this.getAccDescription=M,this.getDiagramTitle=D,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{e(this,"FlowDB")}sanitizeText(t){return y.sanitizeText(t,this.config)}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}setDiagramId(t){this.diagramId=t}lookUpDomId(t){for(let r of this.vertices.values())if(r.id===t)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${t}`:t}addVertex(t,r,o,a,l,b,d={},C){if(!t||t.trim().length===0)return;let p;if(C!==void 0){let S;if(!C.includes(`
|
|
2
|
+
`))S=`{
|
|
3
|
+
`+C+`
|
|
4
|
+
}`;else S=C+`
|
|
5
|
+
`;p=A1(Xn(dt(S,{schema:ut})))}let W=this.subGraphLookup.get(t);if(W&&p){if(Object.keys(p).length>0)W.metadata={...W.metadata,...p};return}let x=this.edges.find((S)=>S.id===t);if(x){let S=p;if(S?.animate!==void 0)x.animate=S.animate;if(S?.animation!==void 0)x.animation=S.animation;if(S?.curve!==void 0)x.interpolate=S.curve;if(S?.step!==void 0)if(bn(S))x.step=S.step;else n.warn(`Ignoring step on edge ${t}: expected a positive integer`,S.step);return}let K,E=this.vertices.get(t);if(E===void 0){if(r===void 0&&o===void 0&&a!==void 0&&a!==null)n.warn(`Style applied to unknown node "${t}". This may indicate a typo. The node will be created automatically.`);E={id:t,labelType:"text",domId:x1+t+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(t,E)}if(this.vertexCounter++,r!==void 0){if(this.config=u(),K=this.sanitizeText(r.text.trim()),E.labelType=r.type,K.startsWith('"')&&K.endsWith('"'))K=K.substring(1,K.length-1);E.text=K}else if(E.text===void 0)E.text=t;if(o!==void 0)E.type=o;if(a!==void 0&&a!==null)a.forEach((S)=>{E.styles.push(S)});if(l!==void 0&&l!==null)l.forEach((S)=>{E.classes.push(S)});if(b!==void 0)E.dir=b;if(E.props===void 0)E.props=d;else if(d!==void 0)Object.assign(E.props,d);if(p!==void 0){if(E.metadata={...E.metadata,...p},p.shape){if(p.shape!==p.shape.toLowerCase()||p.shape.includes("_"))throw Error(`No such shape: ${p.shape}. Shape names should be lowercase.`);else if(!aa(p.shape))throw Error(`No such shape: ${p.shape}.`);E.type=p?.shape}if(p?.label)E.text=p?.label,E.labelType=this.sanitizeNodeLabelType(p?.labelType);if(p?.icon){if(E.icon=p?.icon,!p.label?.trim()&&E.text===t)E.text=""}if(p?.form)E.form=p?.form;if(p?.pos)E.pos=p?.pos;if(p?.img){if(E.img=p?.img,!p.label?.trim()&&E.text===t)E.text=""}if(p?.constraint)E.constraint=p.constraint;if(p.w)E.assetWidth=Number(p.w);if(p.h)E.assetHeight=Number(p.h)}}addSingleLink(t,r,o,a){let d={start:t,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};n.info("abc78 Got edge...",d);let C=o.text;if(C!==void 0){if(d.text=this.sanitizeText(C.text.trim()),d.text.startsWith('"')&&d.text.endsWith('"'))d.text=d.text.substring(1,d.text.length-1);d.labelType=this.sanitizeNodeLabelType(C.type)}if(o!==void 0)d.type=o.type,d.stroke=o.stroke,d.length=o.length>10?10:o.length;if(a&&!this.edges.some((p)=>p.id===a))d.id=a,d.isUserDefinedId=!0;else{let p=this.edges.filter((W)=>W.start===d.start&&W.end===d.end);if(p.length===0)d.id=We(d.start,d.end,{counter:0,prefix:"L"});else d.id=We(d.start,d.end,{counter:p.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))n.info("Pushing edge..."),this.edges.push(d);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
|
|
6
|
+
|
|
7
|
+
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
|
8
|
+
You cannot set this config via configuration inside the diagram as it is a secure config.
|
|
9
|
+
You have to call mermaid.initialize.`)}isLinkData(t){return t!==null&&typeof t==="object"&&"id"in t&&typeof t.id==="string"}addLink(t,r,o){let a=this.isLinkData(o)?o.id.replace("@",""):void 0;n.info("addLink",t,r,a);for(let l of t)for(let b of r){let d=l===t[t.length-1],C=b===r[0];if(d&&C)this.addSingleLink(l,b,o,a);else this.addSingleLink(l,b,o,void 0)}}updateLinkInterpolate(t,r){t.forEach((o)=>{if(o==="default")this.edges.defaultInterpolate=r;else this.edges[o].interpolate=r})}updateLink(t,r){t.forEach((o)=>{if(typeof o==="number"&&o>=this.edges.length)throw Error(`The index ${o} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);if(o==="default")this.edges.defaultStyle=r;else if(this.edges[o].style=r,(this.edges[o]?.style?.length??0)>0&&!this.edges[o]?.style?.some((a)=>a?.startsWith("fill")))this.edges[o]?.style?.push("fill:none")})}addClass(t,r){let o=r.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach((a)=>{let l=this.classes.get(a);if(l===void 0)l={id:a,styles:[],textStyles:[]},this.classes.set(a,l);if(o!==void 0&&o!==null)o.forEach((b)=>{if(/color/.exec(b)){let d=b.replace("fill","bgFill");l.textStyles.push(d)}l.styles.push(b)})})}setDirection(t){if(this.direction=t.trim(),/.*</.exec(this.direction))this.direction="RL";if(/.*\^/.exec(this.direction))this.direction="BT";if(/.*>/.exec(this.direction))this.direction="LR";if(/.*v/.exec(this.direction))this.direction="TB";if(this.direction==="TD")this.direction="TB"}setClass(t,r){for(let o of t.split(",")){let a=this.vertices.get(o);if(a)a.classes.push(r);let l=this.edges.find((d)=>d.id===o);if(l)l.classes.push(r);let b=this.subGraphLookup.get(o);if(b)b.classes.push(r)}}setTooltip(t,r){if(r===void 0)return;r=this.sanitizeText(r);for(let o of t.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(o):o,r)}setClickFun(t,r,o){if(u().securityLevel!=="loose")return;if(r===void 0)return;let a=[];if(typeof o==="string"){a=o.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let b=0;b<a.length;b++){let d=a[b].trim();if(d.startsWith('"')&&d.endsWith('"'))d=d.substr(1,d.length-2);a[b]=d}}if(a.length===0)a.push(t);let l=this.vertices.get(t);if(l)l.haveCallback=!0,this.funs.push(()=>{let b=this.lookUpDomId(t),d=document.querySelector(`[id="${b}"]`);if(d!==null)d.addEventListener("click",()=>{z.runFunc(r,...a)},!1)})}setLink(t,r,o){t.split(",").forEach((a)=>{let l=this.vertices.get(a);if(l!==void 0)l.link=z.formatUrl(r,this.config),l.linkTarget=o}),this.setClass(t,"clickable")}getTooltip(t){return this.tooltips.get(t)}setClickEvent(t,r,o){t.split(",").forEach((a)=>{this.setClickFun(a,r,o)}),this.setClass(t,"clickable")}bindFunctions(t){this.funs.forEach((r)=>{r(t)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(t){let r=Xt();m(t).select("svg").selectAll("g.node").on("mouseover",(l)=>{let b=m(l.currentTarget),d=b.attr("title");if(d===null)return;let C=l.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(b.attr("title")).style("left",window.scrollX+C.left+(C.right-C.left)/2+"px").style("top",window.scrollY+C.bottom+"px"),r.html(Pe.sanitize(d)),b.classed("hover",!0)}).on("mouseout",(l)=>{r.transition().duration(500).style("opacity",0),m(l.currentTarget).classed("hover",!1)})}clear(t="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=u(),A()}setGen(t){this.version=t||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(t,r,o){let a=t.text.trim(),l=o.text;if(t===o&&/\s/.exec(o.text))a=void 0;let d=e((S)=>{let w={boolean:{},number:{},string:{}},Y=[],ce;return{nodeList:S.filter(function(se){let de=typeof se;if(se.stmt&&se.stmt==="dir")return ce=se.value,!1;if(se.trim()==="")return!1;if(de in w)return w[de].hasOwnProperty(se)?!1:w[de][se]=!0;else return Y.includes(se)?!1:Y.push(se)}),dir:ce}},"uniq")(r.flat()),{nodeList:C,dir:p}=d,W=u().flowchart??{};if(p=p??(W.inheritDir?this.getDirection()??u().direction??void 0:void 0),this.version==="gen-1")for(let S=0;S<C.length;S++)C[S]=this.lookUpDomId(C[S]);a=a??"subGraph"+this.subCount,l=l||"",l=this.sanitizeText(l),this.subCount=this.subCount+1;let x={id:a,nodes:C,title:l.trim(),classes:[],dir:p,labelType:this.sanitizeNodeLabelType(o?.type)};n.info("Adding",x.id,x.nodes,x.dir);let K=this.makeUniq(x,this.subGraphs).nodes;this.recordDroppedMembers(x,K),x.nodes=K.filter((S)=>S!==a);let E=this.subGraphs.find((S)=>S.id===a);if(E)E.nodes.push(...x.nodes);else this.subGraphs.push(x);return this.subGraphLookup.set(a,E??x),a}recordDroppedMembers(t,r){let o=new Set(r);for(let a of t.nodes){if(o.has(a)||a===t.id)continue;let l=this.subGraphs.find((b)=>b.nodes.includes(a));if(l&&l.id!==t.id&&!this.isNestedIn(l.id,t))this.droppedSubGraphMembers.push({node:a,keptBy:l.id,droppedFrom:t.id})}}isNestedIn(t,r){let o=new Set,a=t;while(a!==void 0&&!o.has(a)){if(r.nodes.includes(a))return!0;o.add(a);let l=a;a=this.subGraphs.find((b)=>b.nodes.includes(l))?.id}return!1}getPosForId(t){for(let[r,o]of this.subGraphs.entries())if(o.id===t)return r;return-1}indexNodes2(t,r){let o=this.subGraphs[r].nodes;if(this.secCount=this.secCount+1,this.secCount>2000)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===t)return{result:!0,count:0};let a=0,l=1;while(a<o.length){let b=this.getPosForId(o[a]);if(b>=0){let d=this.indexNodes2(t,b);if(d.result)return{result:!0,count:l+d.count};else l=l+d.count}a=a+1}return{result:!1,count:l}}getDepthFirstPos(t){return this.posCrossRef[t]}indexNodes(){if(this.secCount=-1,this.subGraphs.length>0)this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){if(this.firstGraphFlag)return this.firstGraphFlag=!1,!0;return!1}destructStartLink(t){let r=t.trim(),o="arrow_open";switch(r[0]){case"<":o="arrow_point",r=r.slice(1);break;case"x":o="arrow_cross",r=r.slice(1);break;case"o":o="arrow_circle",r=r.slice(1);break}let a="normal";if(r.includes("="))a="thick";if(r.includes("."))a="dotted";return{type:o,stroke:a}}countChar(t,r){let o=r.length,a=0;for(let l=0;l<o;++l)if(r[l]===t)++a;return a}destructEndLink(t){let r=t.trim(),o=r.slice(0,-1),a="arrow_open";switch(r.slice(-1)){case"x":if(a="arrow_cross",r.startsWith("x"))a="double_"+a,o=o.slice(1);break;case">":if(a="arrow_point",r.startsWith("<"))a="double_"+a,o=o.slice(1);break;case"o":if(a="arrow_circle",r.startsWith("o"))a="double_"+a,o=o.slice(1);break}let l="normal",b=o.length-1;if(o.startsWith("="))l="thick";if(o.startsWith("~"))l="invisible";let d=this.countChar(".",o);if(d)l="dotted",b=d;return{type:a,stroke:l,length:b}}destructLink(t,r){let o=this.destructEndLink(t),a;if(r){if(a=this.destructStartLink(r),a.stroke!==o.stroke)return{type:"INVALID",stroke:"INVALID"};if(a.type==="arrow_open")a.type=o.type;else{if(a.type!==o.type)return{type:"INVALID",stroke:"INVALID"};a.type="double_"+a.type}if(a.type==="double_arrow")a.type="double_arrow_point";return a.length=o.length,a}return o}exists(t,r){for(let o of t)if(o.nodes.includes(r))return!0;return!1}makeUniq(t,r){let o=[];return t.nodes.forEach((a,l)=>{if(!this.exists(r,a))o.push(t.nodes[l])}),{nodes:o}}getTypeFromVertex(t){if(t.img)return"imageSquare";if(t.icon){if(t.form==="circle")return"iconCircle";if(t.form==="square")return"iconSquare";if(t.form==="rounded")return"iconRounded";return"icon"}switch(t.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return t.type}}findNode(t,r){return t.find((o)=>o.id===r)}destructEdgeType(t){let r="none",o="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":o=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=t.replace("double_",""),o=r;break}return{arrowTypeStart:r,arrowTypeEnd:o}}addNodeFromVertex(t,r,o,a,l,b){let d=o.get(t.id),C=a.get(t.id)??!1,p=this.findNode(r,t.id);if(p)p.cssStyles=t.styles,p.cssCompiledStyles=this.getCompiledStyles(t.classes),p.cssClasses=t.classes.join(" ");else{let W={id:t.id,label:t.text,labelType:t.labelType,labelStyle:"",parentId:d,padding:l.flowchart?.padding||8,cssStyles:t.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...t.classes]),cssClasses:"default "+t.classes.join(" "),dir:t.dir,domId:t.domId,look:b,link:t.link,linkTarget:t.linkTarget,tooltip:this.getTooltip(t.id),icon:t.icon,pos:t.pos,img:t.img,assetWidth:t.assetWidth,assetHeight:t.assetHeight,constraint:t.constraint,metadata:_t(t.metadata)};if(C)r.push({...W,isGroup:!0,shape:"rect"});else r.push({...W,isGroup:!1,shape:this.getTypeFromVertex(t),minWidth:l.flowchart?.minNodeWidth})}}getCompiledStyles(t){let r=[];for(let o of t){let a=this.classes.get(o);if(a?.styles)r=[...r,...a.styles??[]].map((l)=>l.trim());if(a?.textStyles)r=[...r,...a.textStyles??[]].map((l)=>l.trim())}return r}getData(){let t=u(),r=[],o=[],a=this.getSubGraphs(),l=new Map,b=new Map,d=new Map;for(let h of a)for(let f of h.nodes)if(this.subGraphLookup.has(f))d.set(f,h.id);let C=new Map,p=new Map;for(let h of a){let f=d.get(h.id);if(f!==void 0)p.set(f,[...p.get(f)??[],h.id])}let W=0,x=e((h)=>{C.set(h,W++);for(let f of p.get(h)??[])x(f)},"walk");for(let h of a)if(!d.has(h.id))x(h.id);let K=e((h)=>this.subGraphLookup.get(h)?.metadata?.view==="collapsed","isCollapsed"),E=e((h)=>{let f,V=new Set,N=h;while(N!==void 0&&!V.has(N)){if(V.add(N),K(N))f=N;N=d.get(N)}return f},"outermostCollapsed"),S=new Set,w=new Map;for(let h of a){let f=E(h.id);if(f===void 0)continue;if(h.id!==f)S.add(h.id),w.set(h.id,f);for(let V of h.nodes){if(V===f)continue;S.add(V),w.set(V,f)}}for(let h=a.length-1;h>=0;h--){let f=a[h];if(S.has(f.id))continue;if(f.nodes.length>0)b.set(f.id,!0);for(let V of f.nodes)l.set(V,f.id)}for(let h=a.length-1;h>=0;h--){let f=a[h];if(S.has(f.id))continue;if(f.metadata?.view==="collapsed")r.push({id:f.id,label:f.title,labelStyle:"",labelType:f.labelType,parentId:l.get(f.id),padding:8,cssCompiledStyles:this.getCompiledStyles(f.classes),cssClasses:f.classes.join(" "),shape:"collapsedGroup",dir:f.dir,isGroup:!1,look:t.look,colorIndex:C.get(f.id)});else r.push({id:f.id,label:f.title,labelStyle:"",labelType:f.labelType,parentId:l.get(f.id),padding:8,cssCompiledStyles:this.getCompiledStyles(f.classes),cssClasses:f.classes.join(" "),shape:"rect",dir:f.dir,isGroup:!0,look:t.look,colorIndex:C.get(f.id),metadata:_t(f.metadata,!0)})}this.getVertices().forEach((h)=>{if(S.has(h.id))return;this.addNodeFromVertex(h,r,l,b,t,t.look||"classic")});let ce=this.getEdges(),Ne=ce.reduce((h,f)=>bn(f)?Math.max(h,f.step):h,0),se=Cs(t.flowchart?.stepDuration),de=t.flowchart?.stepNumbers===!0?{showStepNumber:!0}:{};ce.forEach((h,f)=>{let{arrowTypeStart:V,arrowTypeEnd:N}=this.destructEdgeType(h.type),H=[...ce.defaultStyle??[]],q=w.get(h.start)??h.start,X=w.get(h.end)??h.end;if(q===X&&(w.has(h.start)||w.has(h.end)))return;if(h.style)H.push(...h.style);let Q={id:We(q,X,{counter:f,prefix:"L"},h.id),isUserDefinedId:h.isUserDefinedId,start:q,end:X,type:h.type??"normal",label:h.text,labelType:h.labelType,labelpos:"c",thickness:h.stroke,minlen:h.length,classes:h?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":V,arrowTypeEnd:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":N,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(h.classes),labelStyle:H,style:H,pattern:h.stroke,look:t.look,animate:h.animate,animation:h.animation,...bn(h)?{step:h.step,stepCount:Ne,stepDuration:se,...de}:{},curve:h.interpolate||this.edges.defaultInterpolate||t.flowchart?.curve};o.push(Q)});let ze=this.droppedSubGraphMembers.length>0?{droppedSubGraphMembers:[...this.droppedSubGraphMembers]}:{};return{nodes:r,edges:o,other:ze,config:t}}validate(){if(u().layout!=="grid")return;let r=[...this.vertices.values(),...this.subGraphs];Rr(void 0,r);for(let o of r){let a=this.subGraphLookup.has(o.id);for(let l of Object.keys(o.metadata??{})){if(F1.has(l)||a&&l==="algorithm")continue;n.warn(`Unknown metadata key "${l}" on ${a?"subgraph":"node"} "${o.id}" with grid layout.`)}}}defaultConfig(){return Kr.flowchart}},B1=e(function(t,r){return r.db.getClasses()},"getClasses"),L1=e(async function(t,r,o,a){n.info("REF0:"),n.info("Drawing state diagram (v2)",r);let{securityLevel:l,flowchart:b,layout:d}=u();a.db.setDiagramId(r),n.debug("Before getData: ");let C=a.db.getData();n.debug("Data: ",C);let p=Ee(r,l),W=a.db.getDirection();C.type=a.type,C.layoutAlgorithm=_e(d),C.direction=W,C.nodeSpacing=b?.nodeSpacing||50,C.rankSpacing=b?.rankSpacing||50,C.markers=["point","circle","cross"],C.diagramId=r,n.debug("REF1:",C),await Ae(C,p);let x=C.config.flowchart?.diagramPadding??8;z.insertTitle(p,"flowchartTitleText",b?.titleTopMargin||0,a.db.getDiagramTitle()),ge(p,x,"flowchart",b?.useMaxWidth||!1)},"draw"),w1={getClasses:B1,draw:L1},Bt=function(){var t=e(function(Re,k,g,T){for(g=g||{},T=Re.length;T--;g[Re[T]]=k);return g},"o"),r=[1,4],o=[1,3],a=[1,5],l=[1,8,9,10,11,27,34,36,38,45,61,85,86,87,88,89,90,103,106,107,110,112,115,116,117,122,123,124,125,126],b=[2,2],d=[1,13],C=[1,14],p=[1,15],W=[1,16],x=[1,23],K=[1,25],E=[1,26],S=[1,27],w=[1,51],Y=[1,50],ce=[1,30],Ne=[1,31],se=[1,32],de=[1,33],ze=[1,34],h=[1,46],f=[1,48],V=[1,44],N=[1,49],H=[1,45],q=[1,52],X=[1,47],Q=[1,53],Z=[1,54],lt=[1,35],ct=[1,36],ht=[1,37],pt=[1,38],ft=[1,39],Ge=[1,59],G=[1,8,9,10,11,27,32,34,36,38,45,61,85,86,87,88,89,90,103,106,107,110,112,115,116,117,122,123,124,125,126],ke=[1,63],me=[1,62],De=[1,64],Ve=[8,9,11,76,78,79],Lt=[1,80],Ct=[1,81],Ke=[1,95],Ye=[1,100],He=[1,99],qe=[1,96],Qe=[1,92],Je=[1,98],Ze=[1,94],$e=[1,101],et=[1,97],st=[1,102],it=[1,93],Me=[8,9,10,11,40,76,78,79],te=[8,9,10,11,40,47,76,78,79],ne=[8,9,10,11,29,40,45,47,49,51,53,55,57,59,61,64,66,68,69,71,76,78,79,90,103,106,107,110,112,115,116,117],wt=[8,9,11,45,61,76,78,79,90,103,106,107,110,112,115,116,117],Vt=[2,26],rt=[45,61,90,103,106,107,110,112,115,116,117],It=[1,126],Rt=[1,127],bt=[1,129],kt=[1,128],Nt=[45,61,63,75,90,103,106,107,110,112,115,116,117],Gt=[1,138],Mt=[1,152],Ot=[1,153],Ut=[1,154],Wt=[1,155],jt=[1,140],zt=[1,142],Kt=[1,146],Yt=[1,147],Ht=[1,148],qt=[1,149],Qt=[1,150],Jt=[1,151],Zt=[1,156],$t=[1,157],e1=[1,136],t1=[1,137],s1=[1,144],i1=[1,139],r1=[1,143],a1=[1,141],St=[8,9,10,11,27,32,34,36,38,45,61,85,86,87,88,89,90,103,106,107,110,112,115,116,117,122,123,124,125,126],n1=[1,159],o1=[8,9,10,11,76,78,79],u1=[1,160],l1=[1,162],j=[8,9,11],oe=[8,9,10,11,14,45,61,90,106,107,110,112,115,116,117],F=[1,182],ie=[1,178],re=[1,179],v=[1,183],_=[1,180],B=[1,181],at=[78,117,120],P=[8,9,10,11,12,14,27,29,32,45,61,76,85,86,87,88,89,90,91,106,110,112,115,116,117],c1=[10,107],Ie=[31,50,52,54,56,58,63,65,67,68,70,72,117,118,119],Ce=[1,253],Se=[1,251],Te=[1,255],ye=[1,249],xe=[1,250],Fe=[1,252],Be=[1,254],Le=[1,256],nt=[1,273],h1=[8,9,11,107],fe=[8,9,10,11,61,85,106,107,110,111,112,113],Tt={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,withShape:41,node:42,link:43,styledVertex:44,AMP:45,vertex:46,STYLE_SEPARATOR:47,idString:48,DOUBLECIRCLESTART:49,DOUBLECIRCLEEND:50,PS:51,PE:52,"(-":53,"-)":54,STADIUMSTART:55,STADIUMEND:56,SUBROUTINESTART:57,SUBROUTINEEND:58,VERTEX_WITH_PROPS_START:59,"NODE_STRING[field]":60,COLON:61,"NODE_STRING[value]":62,PIPE:63,CYLINDERSTART:64,CYLINDEREND:65,DIAMOND_START:66,DIAMOND_STOP:67,TAGEND:68,TRAPSTART:69,TRAPEND:70,INVTRAPSTART:71,INVTRAPEND:72,linkStatement:73,arrowText:74,TESTSTR:75,START_LINK:76,edgeText:77,LINK:78,LINK_ID:79,edgeTextToken:80,STR:81,MD_STR:82,textToken:83,keywords:84,STYLE:85,LINKSTYLE:86,CLASSDEF:87,CLASS:88,CLICK:89,DOWN:90,UP:91,textNoTagsToken:92,stylesOpt:93,"idString[vertex]":94,"idString[class]":95,CALLBACKNAME:96,CALLBACKARGS:97,HREF:98,LINK_TARGET:99,"STR[link]":100,"STR[tooltip]":101,alphaNum:102,DEFAULT:103,numList:104,INTERPOLATE:105,NUM:106,COMMA:107,style:108,styleComponent:109,NODE_STRING:110,UNIT:111,BRKT:112,PCT:113,idStringToken:114,MINUS:115,MULT:116,UNICODE_TEXT:117,TEXT:118,TAGSTART:119,EDGE_TEXT:120,alphaNumToken:121,direction_tb:122,direction_bt:123,direction_rl:124,direction_lr:125,direction_td:126,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",45:"AMP",47:"STYLE_SEPARATOR",49:"DOUBLECIRCLESTART",50:"DOUBLECIRCLEEND",51:"PS",52:"PE",53:"(-",54:"-)",55:"STADIUMSTART",56:"STADIUMEND",57:"SUBROUTINESTART",58:"SUBROUTINEEND",59:"VERTEX_WITH_PROPS_START",60:"NODE_STRING[field]",61:"COLON",62:"NODE_STRING[value]",63:"PIPE",64:"CYLINDERSTART",65:"CYLINDEREND",66:"DIAMOND_START",67:"DIAMOND_STOP",68:"TAGEND",69:"TRAPSTART",70:"TRAPEND",71:"INVTRAPSTART",72:"INVTRAPEND",75:"TESTSTR",76:"START_LINK",78:"LINK",79:"LINK_ID",81:"STR",82:"MD_STR",85:"STYLE",86:"LINKSTYLE",87:"CLASSDEF",88:"CLASS",89:"CLICK",90:"DOWN",91:"UP",94:"idString[vertex]",95:"idString[class]",96:"CALLBACKNAME",97:"CALLBACKARGS",98:"HREF",99:"LINK_TARGET",100:"STR[link]",101:"STR[tooltip]",103:"DEFAULT",105:"INTERPOLATE",106:"NUM",107:"COMMA",110:"NODE_STRING",111:"UNIT",112:"BRKT",113:"PCT",115:"MINUS",116:"MULT",117:"UNICODE_TEXT",118:"TEXT",119:"TAGSTART",120:"EDGE_TEXT",122:"direction_tb",123:"direction_bt",124:"direction_rl",125:"direction_lr",126:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[41,2],[41,3],[20,3],[20,4],[20,3],[20,4],[20,2],[20,1],[20,2],[20,1],[42,1],[42,5],[42,5],[44,1],[44,3],[46,4],[46,4],[46,6],[46,4],[46,4],[46,4],[46,8],[46,4],[46,4],[46,4],[46,6],[46,4],[46,4],[46,4],[46,4],[46,4],[46,1],[43,2],[43,3],[43,3],[43,1],[43,3],[43,4],[77,1],[77,2],[77,1],[77,1],[73,1],[73,2],[74,3],[30,1],[30,2],[30,1],[30,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[104,1],[104,3],[93,1],[93,3],[108,1],[108,2],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[83,1],[83,1],[83,1],[83,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[80,1],[80,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[48,1],[48,2],[102,1],[102,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:e(function(k,g,T,c,U,s,Oe){var i=s.length-1;switch(U){case 2:this.$=[];break;case 3:if(!Array.isArray(s[i])||s[i].length>0)s[i-1].push(s[i]);this.$=s[i-1];break;case 4:case 187:this.$=s[i];break;case 11:c.setDirection("TB"),this.$="TB";break;case 12:c.setDirection(s[i-1]),this.$=s[i-1];break;case 27:this.$=s[i-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=c.addSubGraph(s[i-6],s[i-1],s[i-4]);break;case 34:this.$=c.addSubGraph(s[i-3],s[i-1],s[i-3]);break;case 35:this.$=c.addSubGraph(void 0,s[i-1],void 0);break;case 37:this.$=s[i].trim(),c.setAccTitle(this.$);break;case 38:case 39:this.$=s[i].trim(),c.setAccDescription(this.$);break;case 43:this.$=s[i-1]+s[i];break;case 44:this.$=s[i];break;case 45:this.$={nodes:s[i-1],shapeData:s[i]};break;case 46:this.$={nodes:s[i-2],shapeData:s[i]};break;case 47:c.addVertex(s[i].nodes[s[i].nodes.length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i].shapeData),c.addLink(s[i-2].stmt,s[i].nodes,s[i-1]),this.$={stmt:s[i].nodes,nodes:s[i].nodes.concat(s[i-2].nodes)};break;case 48:c.addVertex(s[i-1].nodes[s[i-1].nodes.length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i-1].shapeData),c.addLink(s[i-3].stmt,s[i-1].nodes,s[i-2]),this.$={stmt:s[i-1].nodes,nodes:s[i-1].nodes.concat(s[i-3].nodes)};break;case 49:c.addLink(s[i-2].stmt,s[i],s[i-1]),this.$={stmt:s[i],nodes:s[i].concat(s[i-2].nodes)};break;case 50:c.addLink(s[i-3].stmt,s[i-1],s[i-2]),this.$={stmt:s[i-1],nodes:s[i-1].concat(s[i-3].nodes)};break;case 51:this.$={stmt:s[i-1],nodes:s[i-1]};break;case 52:c.addVertex(s[i].nodes[s[i].nodes.length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i].shapeData),this.$={stmt:s[i].nodes,nodes:s[i].nodes,shapeData:s[i].shapeData};break;case 53:c.addVertex(s[i-1].nodes[s[i-1].nodes.length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i-1].shapeData),this.$={stmt:s[i-1].nodes,nodes:s[i-1].nodes,shapeData:s[i-1].shapeData};break;case 54:this.$={stmt:s[i],nodes:s[i]};break;case 55:this.$=[s[i]];break;case 56:c.addVertex(s[i-4].nodes[s[i-4].nodes.length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i-4].shapeData),this.$=s[i-4].nodes.concat(s[i]);break;case 57:this.$=s[i-4].concat(s[i]);break;case 58:this.$=s[i];break;case 59:this.$=s[i-2],c.setClass(s[i-2],s[i]);break;case 60:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"square");break;case 61:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"doublecircle");break;case 62:this.$=s[i-5],c.addVertex(s[i-5],s[i-2],"circle");break;case 63:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"ellipse");break;case 64:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"stadium");break;case 65:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"subroutine");break;case 66:this.$=s[i-7],c.addVertex(s[i-7],s[i-1],"rect",void 0,void 0,void 0,Object.fromEntries([[s[i-5],s[i-3]]]));break;case 67:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"cylinder");break;case 68:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"round");break;case 69:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"diamond");break;case 70:this.$=s[i-5],c.addVertex(s[i-5],s[i-2],"hexagon");break;case 71:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"odd");break;case 72:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"trapezoid");break;case 73:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"inv_trapezoid");break;case 74:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"lean_right");break;case 75:this.$=s[i-3],c.addVertex(s[i-3],s[i-1],"lean_left");break;case 76:this.$=s[i],c.addVertex(s[i]);break;case 77:s[i-1].text=s[i],this.$=s[i-1];break;case 78:case 79:s[i-2].text=s[i-1],this.$=s[i-2];break;case 80:this.$=s[i];break;case 81:var J=c.destructLink(s[i],s[i-2]);this.$={type:J.type,stroke:J.stroke,length:J.length,text:s[i-1]};break;case 82:var J=c.destructLink(s[i],s[i-2]);this.$={type:J.type,stroke:J.stroke,length:J.length,text:s[i-1],id:s[i-3]};break;case 83:this.$={text:s[i],type:"text"};break;case 84:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 85:this.$={text:s[i],type:"string"};break;case 86:this.$={text:s[i],type:"markdown"};break;case 87:var J=c.destructLink(s[i]);this.$={type:J.type,stroke:J.stroke,length:J.length};break;case 88:var J=c.destructLink(s[i]);this.$={type:J.type,stroke:J.stroke,length:J.length,id:s[i-1]};break;case 89:this.$=s[i-1];break;case 90:this.$={text:s[i],type:"text"};break;case 91:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 92:this.$={text:s[i],type:"string"};break;case 93:case 108:this.$={text:s[i],type:"markdown"};break;case 105:this.$={text:s[i],type:"text"};break;case 106:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 107:this.$={text:s[i],type:"text"};break;case 109:this.$=s[i-4],c.addClass(s[i-2],s[i]);break;case 110:this.$=s[i-4],c.setClass(s[i-2],s[i]);break;case 111:case 119:this.$=s[i-1],c.setClickEvent(s[i-1],s[i]);break;case 112:case 120:this.$=s[i-3],c.setClickEvent(s[i-3],s[i-2]),c.setTooltip(s[i-3],s[i]);break;case 113:this.$=s[i-2],c.setClickEvent(s[i-2],s[i-1],s[i]);break;case 114:this.$=s[i-4],c.setClickEvent(s[i-4],s[i-3],s[i-2]),c.setTooltip(s[i-4],s[i]);break;case 115:this.$=s[i-2],c.setLink(s[i-2],s[i]);break;case 116:this.$=s[i-4],c.setLink(s[i-4],s[i-2]),c.setTooltip(s[i-4],s[i]);break;case 117:this.$=s[i-4],c.setLink(s[i-4],s[i-2],s[i]);break;case 118:this.$=s[i-6],c.setLink(s[i-6],s[i-4],s[i]),c.setTooltip(s[i-6],s[i-2]);break;case 121:this.$=s[i-1],c.setLink(s[i-1],s[i]);break;case 122:this.$=s[i-3],c.setLink(s[i-3],s[i-2]),c.setTooltip(s[i-3],s[i]);break;case 123:this.$=s[i-3],c.setLink(s[i-3],s[i-2],s[i]);break;case 124:this.$=s[i-5],c.setLink(s[i-5],s[i-4],s[i]),c.setTooltip(s[i-5],s[i-2]);break;case 125:this.$=s[i-4],c.addVertex(s[i-2],void 0,void 0,s[i]);break;case 126:this.$=s[i-4],c.updateLink([s[i-2]],s[i]);break;case 127:this.$=s[i-4],c.updateLink(s[i-2],s[i]);break;case 128:this.$=s[i-8],c.updateLinkInterpolate([s[i-6]],s[i-2]),c.updateLink([s[i-6]],s[i]);break;case 129:this.$=s[i-8],c.updateLinkInterpolate(s[i-6],s[i-2]),c.updateLink(s[i-6],s[i]);break;case 130:this.$=s[i-6],c.updateLinkInterpolate([s[i-4]],s[i]);break;case 131:this.$=s[i-6],c.updateLinkInterpolate(s[i-4],s[i]);break;case 132:case 134:this.$=[s[i]];break;case 133:case 135:s[i-2].push(s[i]),this.$=s[i-2];break;case 137:this.$=s[i-1]+s[i];break;case 185:this.$=s[i];break;case 186:this.$=s[i-1]+""+s[i];break;case 188:this.$=s[i-1]+""+s[i];break;case 189:this.$={stmt:"dir",value:"TB"};break;case 190:this.$={stmt:"dir",value:"BT"};break;case 191:this.$={stmt:"dir",value:"RL"};break;case 192:this.$={stmt:"dir",value:"LR"};break;case 193:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:r,10:o,12:a},{1:[3]},t(l,b,{5:6}),{4:7,9:r,10:o,12:a},{4:8,9:r,10:o,12:a},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:d,9:C,10:p,11:W,20:17,22:18,23:19,24:20,25:21,26:22,27:x,33:24,34:K,36:E,38:S,41:29,42:28,44:40,45:w,46:41,48:42,61:Y,85:ce,86:Ne,87:se,88:de,89:ze,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z,122:lt,123:ct,124:ht,125:pt,126:ft},t(l,[2,9]),t(l,[2,10]),t(l,[2,11]),{8:[1,56],9:[1,57],10:Ge,15:55,18:58},t(G,[2,3]),t(G,[2,4]),t(G,[2,5]),t(G,[2,6]),t(G,[2,7]),t(G,[2,8]),{8:ke,9:me,11:De,21:60,43:61,73:65,76:[1,66],78:[1,68],79:[1,67]},{8:ke,9:me,11:De,21:69},{8:ke,9:me,11:De,21:70},{8:ke,9:me,11:De,21:71},{8:ke,9:me,11:De,21:72},{8:ke,9:me,11:De,21:73},{8:ke,9:me,10:[1,74],11:De,21:75},t(G,[2,36]),{35:[1,76]},{37:[1,77]},t(G,[2,39]),t(Ve,[2,54],{18:78,39:79,10:Lt,40:Ct}),t(Ve,[2,52],{18:82,10:Ge}),{10:[1,83]},{10:[1,84]},{10:[1,85]},{10:[1,86]},{14:Ke,45:Ye,61:He,81:[1,90],90:qe,96:[1,87],98:[1,88],102:89,106:Qe,107:Je,110:Ze,112:$e,115:et,116:st,117:it,121:91},t(G,[2,189]),t(G,[2,190]),t(G,[2,191]),t(G,[2,192]),t(G,[2,193]),t(Me,[2,55]),t(Me,[2,58],{47:[1,103]}),t(te,[2,76],{114:116,29:[1,104],45:w,49:[1,105],51:[1,106],53:[1,107],55:[1,108],57:[1,109],59:[1,110],61:Y,64:[1,111],66:[1,112],68:[1,113],69:[1,114],71:[1,115],90:h,103:f,106:V,107:N,110:H,112:q,115:X,116:Q,117:Z}),t(ne,[2,185]),t(ne,[2,146]),t(ne,[2,147]),t(ne,[2,148]),t(ne,[2,149]),t(ne,[2,150]),t(ne,[2,151]),t(ne,[2,152]),t(ne,[2,153]),t(ne,[2,154]),t(ne,[2,155]),t(ne,[2,156]),t(l,[2,12]),t(l,[2,18]),t(l,[2,19]),{9:[1,117]},t(wt,Vt,{18:118,10:Ge}),t(G,[2,27]),{41:119,42:120,44:40,45:w,46:41,48:42,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},t(G,[2,40]),t(G,[2,41]),t(G,[2,42]),t(rt,[2,80],{74:121,63:[1,123],75:[1,122]}),{77:124,80:125,81:It,82:Rt,117:bt,120:kt},{76:[1,130],78:[1,131]},t(Nt,[2,87]),t(G,[2,28]),t(G,[2,29]),t(G,[2,30]),t(G,[2,31]),t(G,[2,32]),{10:Gt,12:Mt,14:Ot,27:Ut,28:132,32:Wt,45:jt,61:zt,76:Kt,81:[1,134],82:[1,135],84:145,85:Yt,86:Ht,87:qt,88:Qt,89:Jt,90:Zt,91:$t,92:133,106:e1,110:t1,112:s1,115:i1,116:r1,117:a1},t(St,b,{5:158}),t(G,[2,37]),t(G,[2,38]),t(Ve,[2,51],{45:n1}),t(o1,[2,45],{40:u1}),t([8,9,11,45,76,78,79],Vt,{18:118,39:161,10:Ge,40:Ct}),t(Me,[2,44]),t(Ve,[2,53],{45:l1}),{45:w,48:163,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},{103:[1,164],104:165,106:[1,166]},{45:w,48:167,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},{45:w,48:168,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},t(j,[2,111],{10:[1,169],97:[1,170]}),{81:[1,171]},t(j,[2,119],{121:173,10:[1,172],14:Ke,45:Ye,61:He,90:qe,106:Qe,107:Je,110:Ze,112:$e,115:et,116:st,117:it}),t(j,[2,121],{10:[1,174]}),t(oe,[2,187]),t(oe,[2,174]),t(oe,[2,175]),t(oe,[2,176]),t(oe,[2,177]),t(oe,[2,178]),t(oe,[2,179]),t(oe,[2,180]),t(oe,[2,181]),t(oe,[2,182]),t(oe,[2,183]),t(oe,[2,184]),{45:w,48:175,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},{30:176,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{30:184,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{30:186,51:[1,185],68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{30:187,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{30:188,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{30:189,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{110:[1,190]},{30:191,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{30:192,66:[1,193],68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{30:194,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{30:195,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{30:196,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},t(ne,[2,186]),t(l,[2,20]),t(wt,[2,25]),t(Ve,[2,47],{18:197,10:Ge}),t(Ve,[2,49],{39:79,18:198,10:Lt,40:Ct}),t(rt,[2,77],{10:[1,199]}),{10:[1,200]},{30:201,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{78:[1,202],80:203,117:bt,120:kt},t(at,[2,83]),t(at,[2,85]),t(at,[2,86]),t(at,[2,172]),t(at,[2,173]),{77:204,80:125,81:It,82:Rt,117:bt,120:kt},t(Nt,[2,88]),{8:ke,9:me,10:Gt,11:De,12:Mt,14:Ot,21:206,27:Ut,29:[1,205],32:Wt,45:jt,61:zt,76:Kt,84:145,85:Yt,86:Ht,87:qt,88:Qt,89:Jt,90:Zt,91:$t,92:207,106:e1,110:t1,112:s1,115:i1,116:r1,117:a1},t(P,[2,105]),t(P,[2,107]),t(P,[2,108]),t(P,[2,161]),t(P,[2,162]),t(P,[2,163]),t(P,[2,164]),t(P,[2,165]),t(P,[2,166]),t(P,[2,167]),t(P,[2,168]),t(P,[2,169]),t(P,[2,170]),t(P,[2,171]),t(P,[2,94]),t(P,[2,95]),t(P,[2,96]),t(P,[2,97]),t(P,[2,98]),t(P,[2,99]),t(P,[2,100]),t(P,[2,101]),t(P,[2,102]),t(P,[2,103]),t(P,[2,104]),{6:11,7:12,8:d,9:C,10:p,11:W,20:17,22:18,23:19,24:20,25:21,26:22,27:x,32:[1,208],33:24,34:K,36:E,38:S,41:29,42:28,44:40,45:w,46:41,48:42,61:Y,85:ce,86:Ne,87:se,88:de,89:ze,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z,122:lt,123:ct,124:ht,125:pt,126:ft},{10:Ge,18:209},t(Me,[2,43]),t(o1,[2,46],{40:u1}),{10:Ge,18:210},{10:[1,211],45:w,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,114:116,115:X,116:Q,117:Z},{10:[1,212]},{10:[1,213],107:[1,214]},t(c1,[2,132]),{10:[1,215],45:w,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,114:116,115:X,116:Q,117:Z},{10:[1,216],45:w,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,114:116,115:X,116:Q,117:Z},{81:[1,217]},t(j,[2,113],{10:[1,218]}),t(j,[2,115],{10:[1,219]}),{81:[1,220]},t(oe,[2,188]),{81:[1,221],99:[1,222]},t(Me,[2,59],{114:116,45:w,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,115:X,116:Q,117:Z}),{31:[1,223],68:F,83:224,117:v,118:_,119:B},t(Ie,[2,90]),t(Ie,[2,92]),t(Ie,[2,93]),t(Ie,[2,157]),t(Ie,[2,158]),t(Ie,[2,159]),t(Ie,[2,160]),{50:[1,225],68:F,83:224,117:v,118:_,119:B},{30:226,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{52:[1,227],68:F,83:224,117:v,118:_,119:B},{54:[1,228],68:F,83:224,117:v,118:_,119:B},{56:[1,229],68:F,83:224,117:v,118:_,119:B},{58:[1,230],68:F,83:224,117:v,118:_,119:B},{61:[1,231]},{65:[1,232],68:F,83:224,117:v,118:_,119:B},{67:[1,233],68:F,83:224,117:v,118:_,119:B},{30:234,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},{31:[1,235],68:F,83:224,117:v,118:_,119:B},{68:F,70:[1,236],72:[1,237],83:224,117:v,118:_,119:B},{68:F,70:[1,239],72:[1,238],83:224,117:v,118:_,119:B},t(Ve,[2,48],{45:l1}),t(Ve,[2,50],{45:n1}),t(rt,[2,79]),t(rt,[2,78]),{63:[1,240],68:F,83:224,117:v,118:_,119:B},t(rt,[2,81]),t(at,[2,84]),{78:[1,241],80:203,117:bt,120:kt},{30:242,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},t(St,b,{5:243}),t(P,[2,106]),t(G,[2,35]),{44:244,45:w,46:41,48:42,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},{44:245,45:w,46:41,48:42,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},{10:Ce,61:Se,85:Te,93:246,106:ye,108:247,109:248,110:xe,111:Fe,112:Be,113:Le},{10:Ce,61:Se,85:Te,93:257,105:[1,258],106:ye,108:247,109:248,110:xe,111:Fe,112:Be,113:Le},{10:Ce,61:Se,85:Te,93:259,105:[1,260],106:ye,108:247,109:248,110:xe,111:Fe,112:Be,113:Le},{106:[1,261]},{10:Ce,61:Se,85:Te,93:262,106:ye,108:247,109:248,110:xe,111:Fe,112:Be,113:Le},{45:w,48:263,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z},t(j,[2,112]),{81:[1,264]},{81:[1,265],99:[1,266]},t(j,[2,120]),t(j,[2,122],{10:[1,267]}),t(j,[2,123]),t(te,[2,60]),t(Ie,[2,91]),t(te,[2,61]),{52:[1,268],68:F,83:224,117:v,118:_,119:B},t(te,[2,68]),t(te,[2,63]),t(te,[2,64]),t(te,[2,65]),{110:[1,269]},t(te,[2,67]),t(te,[2,69]),{67:[1,270],68:F,83:224,117:v,118:_,119:B},t(te,[2,71]),t(te,[2,72]),t(te,[2,74]),t(te,[2,73]),t(te,[2,75]),t([10,45,61,90,103,106,107,110,112,115,116,117],[2,89]),t(rt,[2,82]),{31:[1,271],68:F,83:224,117:v,118:_,119:B},{6:11,7:12,8:d,9:C,10:p,11:W,20:17,22:18,23:19,24:20,25:21,26:22,27:x,32:[1,272],33:24,34:K,36:E,38:S,41:29,42:28,44:40,45:w,46:41,48:42,61:Y,85:ce,86:Ne,87:se,88:de,89:ze,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z,122:lt,123:ct,124:ht,125:pt,126:ft},t(Me,[2,57]),t(Me,[2,56]),t(j,[2,125],{107:nt}),t(h1,[2,134],{109:274,10:Ce,61:Se,85:Te,106:ye,110:xe,111:Fe,112:Be,113:Le}),t(fe,[2,136]),t(fe,[2,138]),t(fe,[2,139]),t(fe,[2,140]),t(fe,[2,141]),t(fe,[2,142]),t(fe,[2,143]),t(fe,[2,144]),t(fe,[2,145]),t(j,[2,126],{107:nt}),{10:[1,275]},t(j,[2,127],{107:nt}),{10:[1,276]},t(c1,[2,133]),t(j,[2,109],{107:nt}),t(j,[2,110],{114:116,45:w,61:Y,90:h,103:f,106:V,107:N,110:H,112:q,115:X,116:Q,117:Z}),t(j,[2,114]),t(j,[2,116],{10:[1,277]}),t(j,[2,117]),{99:[1,278]},{52:[1,279]},{63:[1,280]},{67:[1,281]},{8:ke,9:me,11:De,21:282},t(G,[2,34]),{10:Ce,61:Se,85:Te,106:ye,108:283,109:248,110:xe,111:Fe,112:Be,113:Le},t(fe,[2,137]),{14:Ke,45:Ye,61:He,90:qe,102:284,106:Qe,107:Je,110:Ze,112:$e,115:et,116:st,117:it,121:91},{14:Ke,45:Ye,61:He,90:qe,102:285,106:Qe,107:Je,110:Ze,112:$e,115:et,116:st,117:it,121:91},{99:[1,286]},t(j,[2,124]),t(te,[2,62]),{30:287,68:F,81:ie,82:re,83:177,117:v,118:_,119:B},t(te,[2,70]),t(St,b,{5:288}),t(h1,[2,135],{109:274,10:Ce,61:Se,85:Te,106:ye,110:xe,111:Fe,112:Be,113:Le}),t(j,[2,130],{121:173,10:[1,289],14:Ke,45:Ye,61:He,90:qe,106:Qe,107:Je,110:Ze,112:$e,115:et,116:st,117:it}),t(j,[2,131],{121:173,10:[1,290],14:Ke,45:Ye,61:He,90:qe,106:Qe,107:Je,110:Ze,112:$e,115:et,116:st,117:it}),t(j,[2,118]),{31:[1,291],68:F,83:224,117:v,118:_,119:B},{6:11,7:12,8:d,9:C,10:p,11:W,20:17,22:18,23:19,24:20,25:21,26:22,27:x,32:[1,292],33:24,34:K,36:E,38:S,41:29,42:28,44:40,45:w,46:41,48:42,61:Y,85:ce,86:Ne,87:se,88:de,89:ze,90:h,103:f,106:V,107:N,110:H,112:q,114:43,115:X,116:Q,117:Z,122:lt,123:ct,124:ht,125:pt,126:ft},{10:Ce,61:Se,85:Te,93:293,106:ye,108:247,109:248,110:xe,111:Fe,112:Be,113:Le},{10:Ce,61:Se,85:Te,93:294,106:ye,108:247,109:248,110:xe,111:Fe,112:Be,113:Le},t(te,[2,66]),t(G,[2,33]),t(j,[2,128],{107:nt}),t(j,[2,129],{107:nt})],defaultActions:{},parseError:e(function(k,g){if(g.recoverable)this.trace(k);else{var T=Error(k);throw T.hash=g,T}},"parseError"),parse:e(function(k){var g=this,T=[0],c=[],U=[null],s=[],Oe=this.table,i="",J=0,d1=0,p1=0,S1=2,f1=1,T1=s.slice.call(arguments,1),ee=Object.create(this.lexer),Ue={yy:{}};for(var Et in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Et))Ue.yy[Et]=this.yy[Et];if(ee.setInput(k,Ue.yy),Ue.yy.lexer=ee,Ue.yy.parser=this,typeof ee.yylloc>"u")ee.yylloc={};var yt=ee.yylloc;s.push(yt);var E1=ee.options&&ee.options.ranges;if(typeof Ue.yy.parseError==="function")this.parseError=Ue.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function y1(le){T.length=T.length-2*le,U.length=U.length-le,s.length=s.length-le}e(y1,"popStack");function b1(){var le=c.pop()||ee.lex()||f1;if(typeof le!=="number"){if(le instanceof Array)c=le,le=c.pop();le=g.symbols_[le]||le}return le}e(b1,"lex");var ae,xt,je,ue,G1,Ft,ot={},mt,we,k1,Dt;while(!0){if(je=T[T.length-1],this.defaultActions[je])ue=this.defaultActions[je];else{if(ae===null||typeof ae>"u")ae=b1();ue=Oe[je]&&Oe[je][ae]}if(typeof ue>"u"||!ue.length||!ue[0]){var vt="";Dt=[];for(mt in Oe[je])if(this.terminals_[mt]&&mt>S1)Dt.push("'"+this.terminals_[mt]+"'");if(ee.showPosition)vt="Parse error on line "+(J+1)+`:
|
|
10
|
+
`+ee.showPosition()+`
|
|
11
|
+
Expecting `+Dt.join(", ")+", got '"+(this.terminals_[ae]||ae)+"'";else vt="Parse error on line "+(J+1)+": Unexpected "+(ae==f1?"end of input":"'"+(this.terminals_[ae]||ae)+"'");this.parseError(vt,{text:ee.match,token:this.terminals_[ae]||ae,line:ee.yylineno,loc:yt,expected:Dt})}if(ue[0]instanceof Array&&ue.length>1)throw Error("Parse Error: multiple actions possible at state: "+je+", token: "+ae);switch(ue[0]){case 1:if(T.push(ae),U.push(ee.yytext),s.push(ee.yylloc),T.push(ue[1]),ae=null,!xt){if(d1=ee.yyleng,i=ee.yytext,J=ee.yylineno,yt=ee.yylloc,p1>0)p1--}else ae=xt,xt=null;break;case 2:if(we=this.productions_[ue[1]][1],ot.$=U[U.length-we],ot._$={first_line:s[s.length-(we||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(we||1)].first_column,last_column:s[s.length-1].last_column},E1)ot._$.range=[s[s.length-(we||1)].range[0],s[s.length-1].range[1]];if(Ft=this.performAction.apply(ot,[i,d1,J,Ue.yy,ue[1],U,s].concat(T1)),typeof Ft<"u")return Ft;if(we)T=T.slice(0,-1*we*2),U=U.slice(0,-1*we),s=s.slice(0,-1*we);T.push(this.productions_[ue[1]][0]),U.push(ot.$),s.push(ot._$),k1=Oe[T[T.length-2]][T[T.length-1]],T.push(k1);break;case 3:return!0}}return!0},"parse")},C1=function(){var Re={EOF:1,parseError:e(function(g,T){if(this.yy.parser)this.yy.parser.parseError(g,T);else throw Error(g)},"parseError"),setInput:e(function(k,g){if(this.yy=g||this.yy||{},this._input=k,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:e(function(){var k=this._input[0];this.yytext+=k,this.yyleng++,this.offset++,this.match+=k,this.matched+=k;var g=k.match(/(?:\r\n?|\n).*/g);if(g)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),k},"input"),unput:e(function(k){var g=k.length,T=k.split(/(?:\r\n?|\n)/g);this._input=k+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var c=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),T.length-1)this.yylineno-=T.length-1;var U=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:T?(T.length===c.length?this.yylloc.first_column:0)+c[c.length-T.length].length-T[0].length:this.yylloc.first_column-g},this.options.ranges)this.yylloc.range=[U[0],U[0]+this.yyleng-g];return this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
12
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(k){this.unput(this.match.slice(k))},"less"),pastInput:e(function(){var k=this.matched.substr(0,this.matched.length-this.match.length);return(k.length>20?"...":"")+k.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var k=this.match;if(k.length<20)k+=this._input.substr(0,20-k.length);return(k.substr(0,20)+(k.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var k=this.pastInput(),g=Array(k.length+1).join("-");return k+this.upcomingInput()+`
|
|
13
|
+
`+g+"^"},"showPosition"),test_match:e(function(k,g){var T,c,U;if(this.options.backtrack_lexer){if(U={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)U.yylloc.range=this.yylloc.range.slice(0)}if(c=k[0].match(/(?:\r\n?|\n).*/g),c)this.yylineno+=c.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+k[0].length},this.yytext+=k[0],this.match+=k[0],this.matches=k,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(k[0].length),this.matched+=k[0],T=this.performAction.call(this,this.yy,this,g,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(T)return T;else if(this._backtrack){for(var s in U)this[s]=U[s];return!1}return!1},"test_match"),next:e(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var k,g,T,c;if(!this._more)this.yytext="",this.match="";var U=this._currentRules();for(var s=0;s<U.length;s++)if(T=this._input.match(this.rules[U[s]]),T&&(!g||T[0].length>g[0].length)){if(g=T,c=s,this.options.backtrack_lexer)if(k=this.test_match(T,U[s]),k!==!1)return k;else if(this._backtrack){g=!1;continue}else return!1;else if(!this.options.flex)break}if(g){if(k=this.test_match(g,U[c]),k!==!1)return k;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
14
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){var g=this.next();if(g)return g;else return this.lex()},"lex"),begin:e(function(g){this.conditionStack.push(g)},"begin"),popState:e(function(){var g=this.conditionStack.length-1;if(g>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:e(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:e(function(g){if(g=this.conditionStack.length-1-Math.abs(g||0),g>=0)return this.conditionStack[g];else return"INITIAL"},"topState"),pushState:e(function(g){this.begin(g)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:e(function(g,T,c,U){var s=U;switch(c){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),T.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let Oe=/\n\s*/g;return T.yytext=T.yytext.replace(Oe,"<br/>"),40;break;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 96;case 17:this.popState();break;case 18:return 97;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 85;case 26:return 103;case 27:return 86;case 28:return 105;case 29:return 87;case 30:return 88;case 31:return 98;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 89;case 35:if(g.lex.firstGraph())this.begin("dir");return 12;case 36:if(g.lex.firstGraph())this.begin("dir");return 12;case 37:if(g.lex.firstGraph())this.begin("dir");return 12;case 38:if(g.lex.firstGraph())this.begin("dir");return 12;case 39:return 27;case 40:return 32;case 41:return 99;case 42:return 99;case 43:return 99;case 44:return 99;case 45:return this.popState(),13;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return this.popState(),14;break;case 50:return this.popState(),14;break;case 51:return this.popState(),14;break;case 52:return this.popState(),14;break;case 53:return this.popState(),14;break;case 54:return this.popState(),14;break;case 55:return this.popState(),14;break;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 125;case 60:return 126;case 61:return 79;case 62:return 106;case 63:return 112;case 64:return 47;case 65:return 61;case 66:return 45;case 67:return 8;case 68:return 107;case 69:return 116;case 70:return this.popState(),78;break;case 71:return this.pushState("edgeText"),76;break;case 72:return 120;case 73:return this.popState(),78;break;case 74:return this.pushState("thickEdgeText"),76;break;case 75:return 120;case 76:return this.popState(),78;break;case 77:return this.pushState("dottedEdgeText"),76;break;case 78:return 120;case 79:return 78;case 80:return this.popState(),54;break;case 81:return"TEXT";case 82:return this.pushState("ellipseText"),53;break;case 83:return this.popState(),56;break;case 84:return this.pushState("text"),55;break;case 85:return this.popState(),58;break;case 86:return this.pushState("text"),57;break;case 87:return 59;case 88:return this.pushState("text"),68;break;case 89:return this.popState(),65;break;case 90:return this.pushState("text"),64;break;case 91:return this.popState(),50;break;case 92:return this.pushState("text"),49;break;case 93:return this.popState(),70;break;case 94:return this.popState(),72;break;case 95:return 118;case 96:return this.pushState("trapText"),69;break;case 97:return this.pushState("trapText"),71;break;case 98:return 119;case 99:return 68;case 100:return 91;case 101:return"SEP";case 102:return 90;case 103:return 116;case 104:return 112;case 105:return 45;case 106:return 110;case 107:return 115;case 108:return 117;case 109:return this.popState(),63;break;case 110:return this.pushState("text"),63;break;case 111:return this.popState(),52;break;case 112:return this.pushState("text"),51;break;case 113:return this.popState(),31;break;case 114:return this.pushState("text"),29;break;case 115:return this.popState(),67;break;case 116:return this.pushState("text"),66;break;case 117:return"TEXT";case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"\[\]\(\)\{\}\|]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:[^\S\n\r]+)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}};return Re}();Tt.lexer=C1;function At(){this.yy={}}return e(At,"Parser"),At.prototype=Tt,Tt.Parser=At,new At}();Bt.parser=Bt;var m1=Bt,D1=Object.assign({},m1);D1.parse=(t)=>{let r=t.replace(/}\s*\n/g,`}
|
|
15
|
+
`);return m1.parse(r)};var V1=D1,I1=e((t)=>{let{theme:r,bkgColorArray:o,borderColorArray:a}=t;if(!he(r,a))return"";let l=pe(t.look),b=ve(o),d="";for(let C=0;C<tt(t.THEME_COLOR_LIMIT,a);C++){let p=a[C%a.length],W=b?`fill: ${o[C%o.length]};`:"",x=`[data-look="${l}"][data-color-id="color-${C}"]`,K=e((S)=>`${x}.node ${S}, ${x}.rough-node ${S}`,"collapsedRule"),E=e((S)=>`${x}.swimlane.cluster .swimlane-title${S}, ${x}.swimlane.cluster .swimlane-body${S}`,"laneRule");d+=`
|
|
16
|
+
|
|
17
|
+
${x}.cluster:not(.swimlane) rect {
|
|
18
|
+
stroke: ${p};
|
|
19
|
+
${W}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
${x}.cluster:not(.swimlane) path {
|
|
23
|
+
stroke: ${p};
|
|
24
|
+
${W}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Lane, classic and neo. */
|
|
28
|
+
${x}.swimlane.cluster rect.swimlane-title,
|
|
29
|
+
${x}.swimlane.cluster rect.swimlane-body {
|
|
30
|
+
stroke: ${p};
|
|
31
|
+
${W}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Lane, handDrawn: roughjs emits the hachure fill first, then the outline. */
|
|
35
|
+
${E(" path:nth-of-type(2)")} {
|
|
36
|
+
stroke: ${p};
|
|
37
|
+
}
|
|
38
|
+
${b?`
|
|
39
|
+
/* A roughjs fill is drawn as lines, so the lane fill is a stroke here. */
|
|
40
|
+
${E(" path:first-of-type")} {
|
|
41
|
+
stroke: ${o[C%o.length]};
|
|
42
|
+
}
|
|
43
|
+
`:""}
|
|
44
|
+
${K(".collapsed-group")},
|
|
45
|
+
${K(".collapsed-group path")} {
|
|
46
|
+
stroke: ${p};
|
|
47
|
+
${W}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* The ellipsis dots and the separator take clusterBorder further down, so without
|
|
51
|
+
these the container is palette-coloured while its own markers are not. */
|
|
52
|
+
${K(".collapsed-indicator")} {
|
|
53
|
+
fill: ${p};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
${K(".collapsed-separator")} {
|
|
57
|
+
stroke: ${p};
|
|
58
|
+
}
|
|
59
|
+
`}return d},"genColor"),R1=e((t,r)=>{let o=gt,a=o(t,"r"),l=o(t,"g"),b=o(t,"b");return be(a,l,b,r)},"fade"),N1=e((t)=>`${I1(t)}
|
|
60
|
+
.label {
|
|
61
|
+
font-family: ${t.fontFamily};
|
|
62
|
+
color: ${t.nodeTextColor||t.textColor};
|
|
63
|
+
}
|
|
64
|
+
.cluster-label text {
|
|
65
|
+
fill: ${t.titleColor};
|
|
66
|
+
}
|
|
67
|
+
.cluster-label span {
|
|
68
|
+
color: ${t.titleColor};
|
|
69
|
+
}
|
|
70
|
+
.cluster-label span p {
|
|
71
|
+
background-color: transparent;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.label text,span {
|
|
75
|
+
fill: ${t.nodeTextColor||t.textColor};
|
|
76
|
+
color: ${t.nodeTextColor||t.textColor};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.node rect,
|
|
80
|
+
.node circle,
|
|
81
|
+
.node ellipse,
|
|
82
|
+
.node polygon,
|
|
83
|
+
.node path {
|
|
84
|
+
fill: ${t.mainBkg};
|
|
85
|
+
stroke: ${t.nodeBorder};
|
|
86
|
+
stroke-width: ${t.strokeWidth??1}px;
|
|
87
|
+
}
|
|
88
|
+
.rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
|
|
89
|
+
text-anchor: middle;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.node .katex path {
|
|
93
|
+
fill: #000;
|
|
94
|
+
stroke: #000;
|
|
95
|
+
stroke-width: 1px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
|
|
99
|
+
text-align: center;
|
|
100
|
+
}
|
|
101
|
+
.node.clickable {
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
.root .anchor path {
|
|
107
|
+
fill: ${t.lineColor} !important;
|
|
108
|
+
stroke-width: 0;
|
|
109
|
+
stroke: ${t.lineColor};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.arrowheadPath {
|
|
113
|
+
fill: ${t.arrowheadColor};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.edgePaths .path {
|
|
117
|
+
stroke: ${t.lineColor};
|
|
118
|
+
stroke-width: ${t.strokeWidth??2}px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.flowchart-link {
|
|
122
|
+
stroke: ${t.lineColor};
|
|
123
|
+
fill: none;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.edgeLabel {
|
|
127
|
+
background-color: ${t.edgeLabelBackground};
|
|
128
|
+
p {
|
|
129
|
+
background-color: ${t.edgeLabelBackground};
|
|
130
|
+
}
|
|
131
|
+
rect {
|
|
132
|
+
opacity: 0.5;
|
|
133
|
+
background-color: ${t.edgeLabelBackground};
|
|
134
|
+
fill: ${t.edgeLabelBackground};
|
|
135
|
+
}
|
|
136
|
+
text-align: center;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* For html labels only */
|
|
140
|
+
.labelBkg {
|
|
141
|
+
background-color: ${R1(t.edgeLabelBackground,0.5)};
|
|
142
|
+
// background-color:
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.cluster rect {
|
|
146
|
+
fill: ${t.clusterBkg};
|
|
147
|
+
stroke: ${t.clusterBorder};
|
|
148
|
+
stroke-width: 1px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.cluster text {
|
|
152
|
+
fill: ${t.titleColor};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.cluster span {
|
|
156
|
+
color: ${t.titleColor};
|
|
157
|
+
}
|
|
158
|
+
/* .cluster div {
|
|
159
|
+
color: ${t.titleColor};
|
|
160
|
+
} */
|
|
161
|
+
|
|
162
|
+
/* Collapsed subgraph node (@{ view: collapsed }) */
|
|
163
|
+
.node .collapsed-indicator {
|
|
164
|
+
fill: ${t.clusterBorder};
|
|
165
|
+
stroke: none;
|
|
166
|
+
opacity: 0.6;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.node .collapsed-separator {
|
|
170
|
+
stroke: ${t.clusterBorder};
|
|
171
|
+
stroke-width: 0.75px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
div.mermaidTooltip {
|
|
175
|
+
position: absolute;
|
|
176
|
+
text-align: center;
|
|
177
|
+
max-width: 200px;
|
|
178
|
+
padding: 2px;
|
|
179
|
+
font-family: ${t.fontFamily};
|
|
180
|
+
font-size: 12px;
|
|
181
|
+
background: ${t.tertiaryColor};
|
|
182
|
+
border: 1px solid ${t.border2};
|
|
183
|
+
border-radius: 2px;
|
|
184
|
+
pointer-events: none;
|
|
185
|
+
z-index: 100;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.flowchartTitleText {
|
|
189
|
+
text-anchor: middle;
|
|
190
|
+
font-size: 18px;
|
|
191
|
+
fill: ${t.textColor};
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
rect.text {
|
|
195
|
+
fill: none;
|
|
196
|
+
stroke-width: 0;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.icon-shape, .image-shape {
|
|
200
|
+
background-color: ${t.edgeLabelBackground};
|
|
201
|
+
p {
|
|
202
|
+
background-color: ${t.edgeLabelBackground};
|
|
203
|
+
padding: 2px;
|
|
204
|
+
}
|
|
205
|
+
.label rect {
|
|
206
|
+
opacity: 0.5;
|
|
207
|
+
background-color: ${t.edgeLabelBackground};
|
|
208
|
+
fill: ${t.edgeLabelBackground};
|
|
209
|
+
}
|
|
210
|
+
text-align: center;
|
|
211
|
+
}
|
|
212
|
+
${Xe()}
|
|
213
|
+
`,"getStyles"),cs=N1,us=e(({styles:t=cs}={})=>({parser:V1,get db(){return new _1},renderer:w1,styles:t,init:e((r)=>{if(!r.flowchart)r.flowchart={};r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,Pt({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),gc=us();
|
|
214
|
+
export{cs,us,gc};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Jo}from"./index.9zhger75.js";export{Jo as createInfoServices};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{e,n,j,Y}from"./index.fgsp5qqn.js";import{se}from"./index.9zhger75.js";var i={parse:e(async(r)=>{let t=await se("info",r);n.debug(t)},"parse")},s={version:"12.4.0"},p=e(()=>s.version,"getVersion"),g={getVersion:p},m=e((r,t,o)=>{n.debug(`rendering info diagram
|
|
2
|
+
`+r);let a=Y(t);j(a,100,400,!0),a.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${o}`)},"draw"),v={draw:m},y={parser:i,db:g,renderer:v};export{y as diagram};
|