@agent-workshop/adoc-webapp 0.1.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/LICENSE +5 -0
- package/THIRD_PARTY_NOTICES.md +49 -0
- package/dist/assets/app.css +406 -0
- package/dist/assets/app.js +201 -0
- package/dist/assets/chunks/abnfDiagram-YUKMZFIV-UTBMKFXS.js +1 -0
- package/dist/assets/chunks/architecture-WOLXFQ4H-S6WNHT5H.js +1 -0
- package/dist/assets/chunks/architectureDiagram-47P4ROYG-SQCOEPXG.js +36 -0
- package/dist/assets/chunks/blockDiagram-E7TT5TSB-F5DSMBHI.js +140 -0
- package/dist/assets/chunks/c4Diagram-CRA5TL53-G4W35RYC.js +38 -0
- package/dist/assets/chunks/chunk-2TCGAX73.js +1 -0
- package/dist/assets/chunks/chunk-35SWHG2Z.js +1 -0
- package/dist/assets/chunks/chunk-4UKVVSLZ.js +2 -0
- package/dist/assets/chunks/chunk-56PLA4MI.js +1 -0
- package/dist/assets/chunks/chunk-6QSLXF4I.js +1 -0
- package/dist/assets/chunks/chunk-7DQROAU7.js +1 -0
- package/dist/assets/chunks/chunk-7FXP6RHI.js +1 -0
- package/dist/assets/chunks/chunk-7ITQOSYJ.js +15 -0
- package/dist/assets/chunks/chunk-7W3KTJUJ.js +1 -0
- package/dist/assets/chunks/chunk-ABLFMIK7.js +1 -0
- package/dist/assets/chunks/chunk-AVITUR4K.js +1 -0
- package/dist/assets/chunks/chunk-AVJJGJEF.js +1 -0
- package/dist/assets/chunks/chunk-BYKZQKZN.js +1 -0
- package/dist/assets/chunks/chunk-CBAFHIQV.js +213 -0
- package/dist/assets/chunks/chunk-CMFTFM5L.js +1 -0
- package/dist/assets/chunks/chunk-E2AIA637.js +14 -0
- package/dist/assets/chunks/chunk-ENUKY65A.js +72 -0
- package/dist/assets/chunks/chunk-EPS7YYLR.js +2 -0
- package/dist/assets/chunks/chunk-FDHLSHAZ.js +1 -0
- package/dist/assets/chunks/chunk-GBOXGTKU.js +1 -0
- package/dist/assets/chunks/chunk-GDF64WIG.js +1 -0
- package/dist/assets/chunks/chunk-GTJDAHEV.js +2 -0
- package/dist/assets/chunks/chunk-H57PPMTP.js +1 -0
- package/dist/assets/chunks/chunk-HHYS5L3R.js +1 -0
- package/dist/assets/chunks/chunk-INV6BDXO.js +2 -0
- package/dist/assets/chunks/chunk-IR3NHMOO.js +1 -0
- package/dist/assets/chunks/chunk-KLF2A562.js +1 -0
- package/dist/assets/chunks/chunk-LZTAJOGZ.js +1 -0
- package/dist/assets/chunks/chunk-M3XBBO6R.js +135 -0
- package/dist/assets/chunks/chunk-NBZPV65B.js +62 -0
- package/dist/assets/chunks/chunk-NCTJNXDF.js +1 -0
- package/dist/assets/chunks/chunk-O4U2B2FP.js +339 -0
- package/dist/assets/chunks/chunk-OB665XPY.js +1 -0
- package/dist/assets/chunks/chunk-OFD4YTIR.js +10 -0
- package/dist/assets/chunks/chunk-PHKIAKHS.js +1 -0
- package/dist/assets/chunks/chunk-R4OZRASH.js +32 -0
- package/dist/assets/chunks/chunk-UAGOPMXU.js +1 -0
- package/dist/assets/chunks/chunk-UAQETDSH.js +3 -0
- package/dist/assets/chunks/chunk-UORYZEAD.js +1 -0
- package/dist/assets/chunks/chunk-W4ELJFHG.js +1 -0
- package/dist/assets/chunks/chunk-WBPRABWA.js +136 -0
- package/dist/assets/chunks/chunk-XISCFCXG.js +88 -0
- package/dist/assets/chunks/chunk-XLJVPE6C.js +1 -0
- package/dist/assets/chunks/chunk-XQHNSJKC.js +1 -0
- package/dist/assets/chunks/chunk-XYDA52BE.js +1 -0
- package/dist/assets/chunks/chunk-YAHQK6MQ.js +1 -0
- package/dist/assets/chunks/chunk-ZGUCZDEK.js +1 -0
- package/dist/assets/chunks/chunk-ZRBDUQXP.js +1 -0
- package/dist/assets/chunks/classDiagram-v2-K4WV4PDN-EMBTPOHC.js +217 -0
- package/dist/assets/chunks/cose-bilkent-JH36ORCC-CNYFETCT.js +1 -0
- package/dist/assets/chunks/cynefin-EF2NZ3EQ-2AP5N5QY.js +1 -0
- package/dist/assets/chunks/cynefinDiagram-3GCD6N5R-WVTLESK3.js +62 -0
- package/dist/assets/chunks/dagre-W4DXFKR2-FPRZGQVB.js +4 -0
- package/dist/assets/chunks/diagram-2UJZ2QOL-VPSSQLZN.js +200 -0
- package/dist/assets/chunks/diagram-OVF4WLC6-PZ2RN37Y.js +24 -0
- package/dist/assets/chunks/diagram-PFPMY2P6-5GPN6RRZ.js +30 -0
- package/dist/assets/chunks/diagram-UMYRVEAY-OHFOPEFR.js +24 -0
- package/dist/assets/chunks/diagram-YEKJPTXX-PFA7KRZC.js +41 -0
- package/dist/assets/chunks/diagram-ZIFT7M5P-XOPZR7XN.js +3 -0
- package/dist/assets/chunks/ebnfDiagram-VR2GEFS7-MAGCN3HN.js +1 -0
- package/dist/assets/chunks/elk-IJKZMXRS-FZ2NQWIX.js +27 -0
- package/dist/assets/chunks/erDiagram-O2IAPWRE-746JHX2P.js +99 -0
- package/dist/assets/chunks/eventmodeling-K75KTNOO-FKRVI4N2.js +1 -0
- package/dist/assets/chunks/flowDiagram-OXPTDLAJ-XYHRK7XD.js +1 -0
- package/dist/assets/chunks/ganttDiagram-R7TSEDQI-DN5XENJA.js +292 -0
- package/dist/assets/chunks/gitGraph-VSP46ZUC-YT36MSRW.js +1 -0
- package/dist/assets/chunks/gitGraphDiagram-XJZIOB7I-NXP267LJ.js +106 -0
- package/dist/assets/chunks/info-OHQRW6UA-BRTC44VB.js +1 -0
- package/dist/assets/chunks/infoDiagram-5W2HQ5XZ-RT6YEU7N.js +2 -0
- package/dist/assets/chunks/ishikawaDiagram-K3B6WC7H-EJP5H2KV.js +70 -0
- package/dist/assets/chunks/journeyDiagram-COXZFDF6-M6MBFVND.js +139 -0
- package/dist/assets/chunks/kanban-definition-P3RFRI5V-WBYRNWVT.js +89 -0
- package/dist/assets/chunks/katex-42FXWECD.js +257 -0
- package/dist/assets/chunks/mermaid.core-SMXJOLYJ.js +18 -0
- package/dist/assets/chunks/mindmap-definition-LZFPQGKD-KVJVOCR5.js +96 -0
- package/dist/assets/chunks/packet-JDAUHWVQ-SGFXPYMB.js +1 -0
- package/dist/assets/chunks/pegDiagram-BGZESJAR-ECEGDREM.js +1 -0
- package/dist/assets/chunks/pie-XZMESJXO-LSQBPXPC.js +1 -0
- package/dist/assets/chunks/pieDiagram-CAPJLFHJ-D75MPXOK.js +39 -0
- package/dist/assets/chunks/quadrantDiagram-GDMTTRAM-HMUXMSEH.js +7 -0
- package/dist/assets/chunks/radar-ABXABTNO-TPYHBLNO.js +1 -0
- package/dist/assets/chunks/railroad-I3PHUGI6-WWIXL3LY.js +1 -0
- package/dist/assets/chunks/railroad-abnf-LNEFI6M7-DHJUY4R6.js +1 -0
- package/dist/assets/chunks/railroad-ebnf-DWYD2UWJ-4OJ4ECXX.js +1 -0
- package/dist/assets/chunks/railroad-peg-JR7BVNR7-VUOBDVLQ.js +1 -0
- package/dist/assets/chunks/railroadDiagram-SM67HX2B-Z757I54E.js +1 -0
- package/dist/assets/chunks/requirementDiagram-X7JNWC4A-7BW46JLY.js +84 -0
- package/dist/assets/chunks/sankeyDiagram-UM26HJRW-273BIID3.js +40 -0
- package/dist/assets/chunks/sequenceDiagram-ZO4K6R2Y-KG23HXTI.js +169 -0
- package/dist/assets/chunks/sizeCapture-INFHLROL-5N3POCQZ.js +1 -0
- package/dist/assets/chunks/stateDiagram-v2-TBUQTH76-AIML3PSW.js +291 -0
- package/dist/assets/chunks/swimlanes-N4OXWK64-TBFQZWAR.js +1 -0
- package/dist/assets/chunks/swimlanesDiagram-K3J5GTZL-TREAP6RB.js +8 -0
- package/dist/assets/chunks/timeline-definition-YOQAKGHF-QHTD5EBR.js +120 -0
- package/dist/assets/chunks/treeView-D4JQ5SDB-JJEYBPMW.js +1 -0
- package/dist/assets/chunks/treemap-SAJKECNS-I3YRCM2B.js +1 -0
- package/dist/assets/chunks/usecaseDiagram-VIAY4XPW-GNNFV4RS.js +370 -0
- package/dist/assets/chunks/vennDiagram-BLWOH2XV-YE23JXYX.js +34 -0
- package/dist/assets/chunks/wardley-7MLQ67FV-AKOGXXNF.js +1 -0
- package/dist/assets/chunks/wardleyDiagram-YMQ3BMBF-D7XYLZCZ.js +78 -0
- package/dist/assets/chunks/xychartDiagram-TAQBALBS-AT4Y7JWY.js +7 -0
- package/dist/assets/fonts/D2Coding-Bold.woff2 +0 -0
- package/dist/assets/fonts/D2Coding-OFL.txt +97 -0
- package/dist/assets/fonts/D2Coding.woff2 +0 -0
- package/dist/assets/fonts/Pretendard-LICENSE.txt +94 -0
- package/dist/assets/fonts/PretendardVariable.woff2 +0 -0
- package/dist/assets/fonts/SymbolsNerdFont-LICENSE.txt +21 -0
- package/dist/assets/fonts/SymbolsNerdFontMono.woff2 +0 -0
- package/dist/assets/xterm.css +285 -0
- package/dist/index.html +14 -0
- package/dist/licenses/@braintree__sanitize-url@7.1.2/LICENSE +21 -0
- package/dist/licenses/@chevrotain__cst-dts-gen@13.2.0/LICENSE.txt +202 -0
- package/dist/licenses/@chevrotain__gast@13.2.0/LICENSE.txt +202 -0
- package/dist/licenses/@chevrotain__regexp-to-ast@13.2.0/LICENSE.txt +202 -0
- package/dist/licenses/@chevrotain__utils@13.2.0/LICENSE.txt +202 -0
- package/dist/licenses/@iconify__utils@3.1.7/license.txt +21 -0
- package/dist/licenses/@mermaid-js__parser@2.0.1/LICENSE +21 -0
- package/dist/licenses/@remix-run__route-pattern@0.22.1/LICENSE +21 -0
- package/dist/licenses/@upsetjs__venn.js@2.0.0/LICENSE +22 -0
- package/dist/licenses/@xterm__addon-fit@0.11.0/LICENSE +19 -0
- package/dist/licenses/@xterm__xterm@6.0.0/LICENSE +21 -0
- package/dist/licenses/chevrotain@13.2.0/LICENSE.txt +202 -0
- package/dist/licenses/cookie-es@3.1.1/LICENSE +28 -0
- package/dist/licenses/cose-base@1.0.3/LICENSE +21 -0
- package/dist/licenses/cose-base@2.2.0/LICENSE +21 -0
- package/dist/licenses/cytoscape-cose-bilkent@4.1.0/LICENSE +21 -0
- package/dist/licenses/cytoscape-fcose@2.2.0/LICENSE +19 -0
- package/dist/licenses/cytoscape@3.34.3/LICENSE +19 -0
- package/dist/licenses/cytoscape@3.34.3/license-update.mjs +32 -0
- package/dist/licenses/d3-array@2.12.1/LICENSE +27 -0
- package/dist/licenses/d3-array@3.2.4/LICENSE +13 -0
- package/dist/licenses/d3-axis@3.0.0/LICENSE +13 -0
- package/dist/licenses/d3-brush@3.0.0/LICENSE +13 -0
- package/dist/licenses/d3-chord@3.0.1/LICENSE +13 -0
- package/dist/licenses/d3-color@3.1.0/LICENSE +13 -0
- package/dist/licenses/d3-contour@4.0.2/LICENSE +13 -0
- package/dist/licenses/d3-delaunay@6.0.4/LICENSE +14 -0
- package/dist/licenses/d3-dispatch@3.0.1/LICENSE +13 -0
- package/dist/licenses/d3-drag@3.0.0/LICENSE +13 -0
- package/dist/licenses/d3-dsv@3.0.1/LICENSE +13 -0
- package/dist/licenses/d3-ease@3.0.1/LICENSE +28 -0
- package/dist/licenses/d3-fetch@3.0.1/LICENSE +13 -0
- package/dist/licenses/d3-force@3.0.0/LICENSE +13 -0
- package/dist/licenses/d3-format@3.1.2/LICENSE +13 -0
- package/dist/licenses/d3-geo@3.1.1/LICENSE +34 -0
- package/dist/licenses/d3-hierarchy@3.1.2/LICENSE +13 -0
- package/dist/licenses/d3-interpolate@3.0.1/LICENSE +13 -0
- package/dist/licenses/d3-path@1.0.9/LICENSE +27 -0
- package/dist/licenses/d3-path@3.1.0/LICENSE +13 -0
- package/dist/licenses/d3-polygon@3.0.1/LICENSE +13 -0
- package/dist/licenses/d3-quadtree@3.0.1/LICENSE +13 -0
- package/dist/licenses/d3-random@3.0.1/LICENSE +13 -0
- package/dist/licenses/d3-sankey@0.12.3/LICENSE +27 -0
- package/dist/licenses/d3-scale-chromatic@3.1.0/LICENSE +28 -0
- package/dist/licenses/d3-scale@4.0.2/LICENSE +13 -0
- package/dist/licenses/d3-selection@3.0.0/LICENSE +13 -0
- package/dist/licenses/d3-shape@1.3.7/LICENSE +27 -0
- package/dist/licenses/d3-shape@3.2.0/LICENSE +13 -0
- package/dist/licenses/d3-time-format@4.1.0/LICENSE +13 -0
- package/dist/licenses/d3-time@3.1.0/LICENSE +13 -0
- package/dist/licenses/d3-timer@3.0.1/LICENSE +13 -0
- package/dist/licenses/d3-transition@3.0.1/LICENSE +13 -0
- package/dist/licenses/d3-zoom@3.0.0/LICENSE +13 -0
- package/dist/licenses/d3@7.9.0/LICENSE +13 -0
- package/dist/licenses/dagre-d3-es@7.0.14/LICENSE.md +23 -0
- package/dist/licenses/dayjs@1.11.23/LICENSE +21 -0
- package/dist/licenses/delaunator@5.1.0/LICENSE +15 -0
- package/dist/licenses/dompurify@3.4.16/LICENSE +202 -0
- package/dist/licenses/dompurify@3.4.16/LICENSE-MPL +373 -0
- package/dist/licenses/elkjs@0.9.3/LICENSE.md +264 -0
- package/dist/licenses/es-toolkit@1.52.0/LICENSE +21 -0
- package/dist/licenses/es-toolkit@1.52.0/NOTICE +39 -0
- package/dist/licenses/internmap@1.0.1/LICENSE +13 -0
- package/dist/licenses/internmap@2.0.3/LICENSE +13 -0
- package/dist/licenses/katex@0.16.47/LICENSE +21 -0
- package/dist/licenses/khroma@2.1.0/license +21 -0
- package/dist/licenses/layout-base@1.0.2/LICENSE +21 -0
- package/dist/licenses/layout-base@2.0.1/LICENSE +21 -0
- package/dist/licenses/lodash-es@4.18.1/LICENSE +47 -0
- package/dist/licenses/lucide-react@1.50.0/LICENSE +43 -0
- package/dist/licenses/lucide-react@1.50.0/copyright.mjs +22 -0
- package/dist/licenses/marked@16.4.2/LICENSE.md +44 -0
- package/dist/licenses/mermaid@12.1.0/LICENSE +21 -0
- package/dist/licenses/packages.json +945 -0
- package/dist/licenses/pretendard@1.3.9/LICENSE.txt +94 -0
- package/dist/licenses/react-dom@19.3.0/LICENSE +21 -0
- package/dist/licenses/react-router@8.4.0/LICENSE.md +23 -0
- package/dist/licenses/react@19.3.0/LICENSE +21 -0
- package/dist/licenses/robust-predicates@3.0.3/LICENSE +24 -0
- package/dist/licenses/roughjs@4.6.6/LICENSE +21 -0
- package/dist/licenses/scheduler@0.28.0/LICENSE +21 -0
- package/dist/licenses/stylis@4.4.0/LICENSE +21 -0
- package/dist/licenses/ts-dedent@2.3.0/LICENSE +21 -0
- package/dist/licenses/uuid@14.0.2/LICENSE.md +9 -0
- package/package.json +44 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import{a as Xr}from"./chunk-LZTAJOGZ.js";import{a as Wr,b as Kr}from"./chunk-R4OZRASH.js";import{a as ie}from"./chunk-GBOXGTKU.js";import"./chunk-XYDA52BE.js";import"./chunk-IR3NHMOO.js";import"./chunk-OFD4YTIR.js";import"./chunk-ZRBDUQXP.js";import"./chunk-NBZPV65B.js";import"./chunk-NCTJNXDF.js";import"./chunk-ZGUCZDEK.js";import{a as ae}from"./chunk-ENUKY65A.js";import{b as Qr}from"./chunk-HHYS5L3R.js";import"./chunk-KLF2A562.js";import{b as Dr,d as Zr,m as Tr,n as Jr,p as re,q as V,r as ee,s as te}from"./chunk-GTJDAHEV.js";import"./chunk-XLJVPE6C.js";import{A as Sr,B as Hr,C as $,D as Br,E as q,G as Yr,P as jr,R as Er,S as qr,ea as X,fa as or,g as Rr,i as Ir,j as Fr,k as J,l as rr,m as er,n as Or,o as $r,q as tr,r as zr,t as Pr,u as ar,v as Nr,w as ir,x as Vr,y as Ur,z as Gr}from"./chunk-M3XBBO6R.js";import{b as g,c as br,h as k}from"./chunk-W4ELJFHG.js";import{a as i}from"./chunk-UAGOPMXU.js";import"./chunk-PHKIAKHS.js";var U="comm",nr="rule",sr="decl";var oe="@media",ne="@import";var se="@supports";var de="@namespace",W="@keyframes";var dr="@layer",ce="@scope";var le=Math.abs,z=String.fromCharCode;function cr(r){return r.trim()}function K(r,e,t){return r.replace(e,t)}function R(r,e){return r.charCodeAt(e)|0}function I(r,e,t){return r.slice(e,t)}function S(r){return r.length}function lr(r){return r.length}function G(r,e){return e.push(r),r}var mr=1,H=1,me=0,_=0,h=0,Y="";function ur(r,e,t,a,o,n,d,s){return{value:r,root:e,parent:t,type:a,props:o,children:n,line:mr,column:H,length:d,return:"",siblings:s}}function ue(){return h}function pe(){return h=_>0?R(Y,--_):0,H--,h===10&&(H=1,mr--),h}function M(){return h=_<me?R(Y,_++):0,H++,h===10&&(H=1,mr++),h}function F(){return R(Y,_)}function Q(){return _}function pr(r,e){return I(Y,r,e)}function B(r){switch(r){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function fe(r){return mr=H=1,me=S(Y=r),_=0,[]}function ge(r){return Y="",r}function fr(r){return cr(pr(_-1,Ar(r===91?r+2:r===40?r+1:r)))}function ve(r){for(;(h=F())&&h<33;)M();return B(r)>2||B(h)>3?"":" "}function he(r,e){for(;--e&&M()&&!(h<48||h>102||h>57&&h<65||h>70&&h<97););return pr(r,Q()+(e<6&&F()==32&&M()==32))}function Ar(r){for(;M();)switch(h){case r:return _;case 34:case 39:r!==34&&r!==39&&Ar(h);break;case 40:r===41&&Ar(r);break;case 92:M();break}return _}function ye(r,e){for(;M()&&r+h!==57;)if(r+h===84&&F()===47)break;return"/*"+pr(e,_-1)+"*"+z(r===47?r:M())}function we(r){for(;!B(F());)M();return pr(r,_)}function Se(r){return ge(gr("",null,null,null,[""],r=fe(r),0,[0],r))}function gr(r,e,t,a,o,n,d,s,c){for(var u=0,f=0,p=d,m=0,x=0,E=0,b=1,w=1,D=1,T=0,v=0,C="",N=o,L=n,A=a,l=C;w;)switch(E=v,v=M()){case 40:E!=108&&R(l,p-1)==58?(T++,l+="("):l+=fr(v);break;case 41:T--,l+=")";break;case 34:case 39:case 91:l+=fr(v);break;case 9:case 10:case 13:case 32:if(T>0){l+=z(v);break}l+=ve(E);break;case 92:l+=he(Q()-1,7);continue;case 47:switch(F()){case 42:case 47:G(kt(ye(M(),Q()),e,t,c),c),(B(E||1)==5||B(F()||1)==5)&&S(l)&&I(l,-1,void 0)!==" "&&(l+=" ");break;default:l+="/"}break;case 123*b:s[u++]=S(l)*D;case 125*b:case 59:case 0:if(T>0&&v){l+=z(v);break}switch(v){case 0:case 125:w=0;case 59+f:D==-1&&(l=K(l,/\f/g,"")),x>0&&(S(l)-p||b===0)&&G(x>32?be(l+";",a,t,p-1,c):be(K(l," ","")+";",a,t,p-2,c),c);break;case 59:l+=";";default:if(G(A=xe(l,e,t,u,f,o,s,C,N=[],L=[],p,n),n),v===123)if(f===0)gr(l,e,A,A,N,n,p,s,L);else{switch(m){case 99:if(R(l,3)===110)break;case 108:if(R(l,2)===97)break;default:f=0;case 100:case 109:case 115:}f?gr(r,A,A,a&&G(xe(r,A,A,0,0,o,s,C,o,N=[],p,L),L),o,L,p,s,a?N:L):gr(l,A,A,A,[""],L,0,s,L)}}u=f=x=0,b=D=1,C=l="",p=d;break;case 58:p=1+S(l),x=E;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&pe()==125)continue}switch(l+=z(v),v*b){case 38:D=f>0?1:(l+="\f",-1);break;case 44:if(T>0)break;s[u++]=(S(l)-1)*D,D=1;break;case 64:F()===45&&(l+=fr(M())),m=F(),f=p=S(C=l+=we(Q())),v++;break;case 45:E===45&&S(l)==2&&(b=0)}}return n}function xe(r,e,t,a,o,n,d,s,c,u,f,p){for(var m=o-1,x=o===0?n:[""],E=lr(x),b=0,w=0,D=0;b<a;++b)for(var T=0,v=I(r,m+1,m=le(w=d[b])),C=r;T<E;++T)(C=cr(w>0?x[T]+" "+v:K(v,/&\f/g,x[T])))&&(c[D++]=C);return ur(r,e,t,o===0?nr:s,c,u,f,p)}function kt(r,e,t,a){return ur(r,e,t,U,z(ue()),I(r,2,-2),0,a)}function be(r,e,t,a,o){return ur(r,e,t,sr,I(r,0,a),I(r,a+1,-1),a,o)}function vr(r,e){for(var t="",a=0;a<r.length;a++)t+=e(r[a],a,r,e)||"";return t}function Ee(r,e,t,a){switch(r.type){case dr:if(r.children.length)break;case ne:case de:case sr:return r.return=r.return||r.value;case U:return"";case W:return r.return=r.value+"{"+vr(r.children,a)+"}";case nr:if(!S(r.value=r.props.join(",")))return""}return S(t=vr(r.children,a))?r.return=r.value+"{"+t+"}":""}function De(r){var e=lr(r);return function(t,a,o,n){for(var d="",s=0;s<e;s++)d+=r[s](t,a,o,n)||"";return d}}var Ce="c4",Rt=i(r=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(r),"detector"),It=i(async()=>{let{diagram:r}=await import("./c4Diagram-CRA5TL53-G4W35RYC.js");return{id:Ce,diagram:r}},"loader"),Ft={id:Ce,detector:Rt,loader:It},Ot=Ft,Le="flowchart-v2",$t=i(r=>/^\s*(graph|flowchart)/.test(r),"detector"),zt=i(async()=>{let{diagram:r}=await import("./flowDiagram-OXPTDLAJ-XYHRK7XD.js");return{id:Le,diagram:r}},"loader"),Pt={id:Le,detector:$t,loader:zt},Nt=Pt,ke="agentflow",Vt=i(r=>/^\s*agentflow-beta\b/.test(r),"detector"),Ut=i(async()=>{let{diagram:r}=await import("./diagram-2UJZ2QOL-VPSSQLZN.js");return{id:ke,diagram:r}},"loader"),Gt={id:ke,detector:Vt,loader:Ut},Ht=Gt,Re="swimlane",Bt=i(r=>/^\s*swimlane-beta\b/.test(r),"detector"),Yt=i(async()=>{let{diagram:r}=await import("./swimlanesDiagram-K3J5GTZL-TREAP6RB.js");return{id:Re,diagram:r}},"loader"),jt={id:Re,detector:Bt,loader:Yt},qt=jt,Ie="er",Xt=i(r=>/^\s*erDiagram/.test(r),"detector"),Wt=i(async()=>{let{diagram:r}=await import("./erDiagram-O2IAPWRE-746JHX2P.js");return{id:Ie,diagram:r}},"loader"),Kt={id:Ie,detector:Xt,loader:Wt},Qt=Kt,Fe="gitGraph",Zt=i(r=>/^\s*gitGraph/.test(r),"detector"),Jt=i(async()=>{let{diagram:r}=await import("./gitGraphDiagram-XJZIOB7I-NXP267LJ.js");return{id:Fe,diagram:r}},"loader"),ra={id:Fe,detector:Zt,loader:Jt},ea=ra,Oe="gantt",ta=i(r=>/^\s*gantt/.test(r),"detector"),aa=i(async()=>{let{diagram:r}=await import("./ganttDiagram-R7TSEDQI-DN5XENJA.js");return{id:Oe,diagram:r}},"loader"),ia={id:Oe,detector:ta,loader:aa},oa=ia,$e="info",na=i(r=>/^\s*info/.test(r),"detector"),sa=i(async()=>{let{diagram:r}=await import("./infoDiagram-5W2HQ5XZ-RT6YEU7N.js");return{id:$e,diagram:r}},"loader"),da={id:$e,detector:na,loader:sa},ze="pie",ca=i(r=>/^\s*pie/.test(r),"detector"),la=i(async()=>{let{diagram:r}=await import("./pieDiagram-CAPJLFHJ-D75MPXOK.js");return{id:ze,diagram:r}},"loader"),ma={id:ze,detector:ca,loader:la},Pe="quadrantChart",ua=i(r=>/^\s*quadrantChart/.test(r),"detector"),pa=i(async()=>{let{diagram:r}=await import("./quadrantDiagram-GDMTTRAM-HMUXMSEH.js");return{id:Pe,diagram:r}},"loader"),fa={id:Pe,detector:ua,loader:pa},ga=fa,Ne="xychart",va=i(r=>/^\s*xychart(-beta)?/.test(r),"detector"),ha=i(async()=>{let{diagram:r}=await import("./xychartDiagram-TAQBALBS-AT4Y7JWY.js");return{id:Ne,diagram:r}},"loader"),ya={id:Ne,detector:va,loader:ha},wa=ya,Ve="requirement",xa=i(r=>/^\s*requirement(Diagram)?/.test(r),"detector"),ba=i(async()=>{let{diagram:r}=await import("./requirementDiagram-X7JNWC4A-7BW46JLY.js");return{id:Ve,diagram:r}},"loader"),Sa={id:Ve,detector:xa,loader:ba},Ea=Sa,Ue="sequence",Da=i(r=>/^\s*sequenceDiagram/.test(r),"detector"),Ta=i(async()=>{let{diagram:r}=await import("./sequenceDiagram-ZO4K6R2Y-KG23HXTI.js");return{id:Ue,diagram:r}},"loader"),Aa={id:Ue,detector:Da,loader:Ta},_a=Aa,Ge="classDiagram",Ma=i(r=>/^\s*classDiagram/.test(r),"detector"),Ca=i(async()=>{let{diagram:r}=await import("./classDiagram-v2-K4WV4PDN-EMBTPOHC.js");return{id:Ge,diagram:r}},"loader"),La={id:Ge,detector:Ma,loader:Ca},ka=La,He="stateDiagram",Ra=i(r=>/^\s*stateDiagram/.test(r),"detector"),Ia=i(async()=>{let{diagram:r}=await import("./stateDiagram-v2-TBUQTH76-AIML3PSW.js");return{id:He,diagram:r}},"loader"),Fa={id:He,detector:Ra,loader:Ia},Oa=Fa,Be="journey",$a=i(r=>/^\s*journey/.test(r),"detector"),za=i(async()=>{let{diagram:r}=await import("./journeyDiagram-COXZFDF6-M6MBFVND.js");return{id:Be,diagram:r}},"loader"),Pa={id:Be,detector:$a,loader:za},Na=Pa,hr=4,Z=75,Va=i(r=>{let e=[];for(let o of r.split(/\s+/)){let n=[...o];for(;n.length>Z;)e.push(n.slice(0,Z).join("")),n=n.slice(Z);n.length>0&&e.push(n.join(""))}let t=[],a="";for(let o of e){let n=a?`${a} ${o}`:o;[...n].length>Z?(t.push(a),a=o):a=n}if(a&&t.push(a),t.length>hr){t.length=hr;let o=t[hr-1]??"";t[hr-1]=`${[...o].slice(0,Z-3).join("")}...`}return t},"wrapErrorMessage"),Ua=i((r,e,t,a)=>{g.debug(`rendering svg for syntax error
|
|
2
|
+
`);let o=Xr(e),n=o.append("g"),d=Va(a?.db.getErrorMessage?.()??""),s=d.length>0?500+d.length*56:512;o.attr("viewBox",`0 0 2412 ${s}`),jr(o,100,s,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${t}`),d.forEach((c,u)=>{n.append("text").attr("class","error-text").attr("x",1440).attr("y",510+u*56).attr("font-size","42px").style("text-anchor","middle").text(c)})},"draw"),Ye={draw:Ua},Ga=Ye,_r,Ha={clear(){_r=void 0},setErrorMessage(r){_r=r},getErrorMessage(){return _r}},Ba={db:Ha,renderer:Ye,parser:{parse:i(()=>{},"parse")}},Ya=Ba,je="flowchart-elk",ja=i((r,e={})=>/^\s*flowchart-elk/.test(r)?(e.layout="elk",!0):!1,"detector"),qa=i(async()=>{let{diagram:r}=await import("./flowDiagram-OXPTDLAJ-XYHRK7XD.js");return{id:je,diagram:r}},"loader"),Xa={id:je,detector:ja,loader:qa},Wa=Xa,qe="timeline",Ka=i(r=>/^\s*timeline/.test(r),"detector"),Qa=i(async()=>{let{diagram:r}=await import("./timeline-definition-YOQAKGHF-QHTD5EBR.js");return{id:qe,diagram:r}},"loader"),Za={id:qe,detector:Ka,loader:Qa},Ja=Za,Xe="mindmap",ri=i(r=>/^\s*mindmap/.test(r),"detector"),ei=i(async()=>{let{diagram:r}=await import("./mindmap-definition-LZFPQGKD-KVJVOCR5.js");return{id:Xe,diagram:r}},"loader"),ti={id:Xe,detector:ri,loader:ei},ai=ti,We="kanban",ii=i(r=>/^\s*kanban/.test(r),"detector"),oi=i(async()=>{let{diagram:r}=await import("./kanban-definition-P3RFRI5V-WBYRNWVT.js");return{id:We,diagram:r}},"loader"),ni={id:We,detector:ii,loader:oi},si=ni,Ke="sankey",di=i(r=>/^\s*sankey(-beta)?/.test(r),"detector"),ci=i(async()=>{let{diagram:r}=await import("./sankeyDiagram-UM26HJRW-273BIID3.js");return{id:Ke,diagram:r}},"loader"),li={id:Ke,detector:di,loader:ci},mi=li,Qe="packet",ui=i(r=>/^\s*packet(-beta)?/.test(r),"detector"),pi=i(async()=>{let{diagram:r}=await import("./diagram-UMYRVEAY-OHFOPEFR.js");return{id:Qe,diagram:r}},"loader"),fi={id:Qe,detector:ui,loader:pi},Ze="radar",gi=i(r=>/^\s*radar-beta/.test(r),"detector"),vi=i(async()=>{let{diagram:r}=await import("./diagram-YEKJPTXX-PFA7KRZC.js");return{id:Ze,diagram:r}},"loader"),hi={id:Ze,detector:gi,loader:vi},Je="block",yi=i(r=>/^\s*block(-beta)?/.test(r),"detector"),wi=i(async()=>{let{diagram:r}=await import("./blockDiagram-E7TT5TSB-F5DSMBHI.js");return{id:Je,diagram:r}},"loader"),xi={id:Je,detector:yi,loader:wi},bi=xi,rt="treeView",Si=i(r=>/^\s*treeView-beta/.test(r),"detector"),Ei=i(async()=>{let{diagram:r}=await import("./diagram-PFPMY2P6-5GPN6RRZ.js");return{id:rt,diagram:r}},"loader"),Di={id:rt,detector:Si,loader:Ei},Ti=Di,et="architecture",Ai=i(r=>/^\s*architecture/.test(r),"detector"),_i=i(async()=>{let{diagram:r}=await import("./architectureDiagram-47P4ROYG-SQCOEPXG.js");return{id:et,diagram:r}},"loader"),Mi={id:et,detector:Ai,loader:_i},Ci=Mi,tt="eventmodeling",Li=i(r=>/^\s*eventmodeling/.test(r),"detector"),ki=i(async()=>{let{diagram:r}=await import("./diagram-ZIFT7M5P-XOPZR7XN.js");return{id:tt,diagram:r}},"loader"),Ri={id:tt,detector:Li,loader:ki},Ii=Ri,at="ishikawa",Fi=i(r=>/^\s*ishikawa(-beta)?\b/i.test(r),"detector"),Oi=i(async()=>{let{diagram:r}=await import("./ishikawaDiagram-K3B6WC7H-EJP5H2KV.js");return{id:at,diagram:r}},"loader"),$i={id:at,detector:Fi,loader:Oi},it="venn",zi=i(r=>/^\s*venn-beta/.test(r),"detector"),Pi=i(async()=>{let{diagram:r}=await import("./vennDiagram-BLWOH2XV-YE23JXYX.js");return{id:it,diagram:r}},"loader"),Ni={id:it,detector:zi,loader:Pi},Vi=Ni,ot="treemap",Ui=i(r=>/^\s*treemap/.test(r),"detector"),Gi=i(async()=>{let{diagram:r}=await import("./diagram-OVF4WLC6-PZ2RN37Y.js");return{id:ot,diagram:r}},"loader"),Hi={id:ot,detector:Ui,loader:Gi},nt="usecase",Bi=i(r=>/^\s*usecase-beta(?:\s|$)/.test(r),"detector"),Yi=i(async()=>{let{diagram:r}=await import("./usecaseDiagram-VIAY4XPW-GNNFV4RS.js");return{id:nt,diagram:r}},"loader"),ji={id:nt,detector:Bi,loader:Yi},st="wardley",qi=i(r=>/^\s*wardley-beta/i.test(r),"detector"),Xi=i(async()=>{let{diagram:r}=await import("./wardleyDiagram-YMQ3BMBF-D7XYLZCZ.js");return{id:st,diagram:r}},"loader"),Wi={id:st,detector:qi,loader:Xi},Ki=Wi,dt="cynefin",Qi=i(r=>/^\s*cynefin-beta(?:[\s:]|$)/.test(r),"detector"),Zi=i(async()=>{let{diagram:r}=await import("./cynefinDiagram-3GCD6N5R-WVTLESK3.js");return{id:dt,diagram:r}},"loader"),Ji={id:dt,detector:Qi,loader:Zi},ct="railroad",ro=i(r=>/^\s*railroad-beta/i.test(r),"detector"),eo=i(async()=>{let{diagram:r}=await import("./railroadDiagram-SM67HX2B-Z757I54E.js");return{id:ct,diagram:r}},"loader"),to={id:ct,detector:ro,loader:eo},lt="railroadEbnf",ao=i(r=>/^\s*railroad-ebnf-beta/i.test(r),"detector"),io=i(async()=>{let{diagram:r}=await import("./ebnfDiagram-VR2GEFS7-MAGCN3HN.js");return{id:lt,diagram:r}},"loader"),oo={id:lt,detector:ao,loader:io},mt="railroadAbnf",no=i(r=>/^\s*railroad-abnf-beta/i.test(r),"detector"),so=i(async()=>{let{diagram:r}=await import("./abnfDiagram-YUKMZFIV-UTBMKFXS.js");return{id:mt,diagram:r}},"loader"),co={id:mt,detector:no,loader:so},ut="railroadPeg",lo=i(r=>/^\s*railroad-peg-beta/i.test(r),"detector"),mo=i(async()=>{let{diagram:r}=await import("./pegDiagram-BGZESJAR-ECEGDREM.js");return{id:ut,diagram:r}},"loader"),uo={id:ut,detector:lo,loader:mo},Te=!1,xr=i(()=>{Te||(Te=!0,X("error",Ya,r=>r.toLowerCase().trim()==="error"),X("---",{db:{clear:i(()=>{},"clear")},styles:{},renderer:{draw:i(()=>{},"draw")},parser:{parse:i(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:i(()=>null,"init")},r=>r.toLowerCase().trimStart().startsWith("---")),er(Wa,ai,Ci),er(Ht,Ot,si,ka,Qt,oa,da,ma,Ea,_a,qt,Nt,Ja,ea,Oa,Na,ga,mi,fi,wa,bi,Ii,Ti,hi,$i,Hi,to,oo,co,uo,Vi,Ki,Ji,ji))},"addDiagrams"),po=i(async()=>{g.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(J).map(async([t,{detector:a,loader:o}])=>{if(o)try{or(t)}catch{try{let{diagram:n,id:d}=await o();X(d,n,a)}catch(n){throw g.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete J[t],n}}}))).filter(t=>t.status==="rejected");if(e.length>0){g.error(`Failed to load ${e.length} external diagrams`);for(let t of e)g.error(t);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams"),fo="graphics-document document";function pt(r,e){r.attr("role",fo),e!==""&&r.attr("aria-roledescription",e)}i(pt,"setA11yDiagramInfo");function ft(r,e,t,a){if(r.insert!==void 0){if(t){let o=`chart-desc-${a}`;r.attr("aria-describedby",o),r.insert("desc",":first-child").attr("id",o).text(t)}if(e){let o=`chart-title-${a}`;r.attr("aria-labelledby",o),r.insert("title",":first-child").attr("id",o).text(e)}}}i(ft,"addSVGa11yTitleDescription");var yr=class gt{constructor(e,t,a,o,n){this.type=e,this.text=t,this.db=a,this.parser=o,this.renderer=n}static{i(this,"Diagram")}static async fromText(e,t={}){let a=typeof e=="string"?{raw:e,cleaned:e}:e,o=$(),n=rr(a.cleaned,o);try{or(n)}catch{let m=Or(n);if(!m)throw new Fr(`Diagram ${n} not found.`);let{id:x,diagram:E}=await m();X(x,E)}let{db:d,parser:s,renderer:c,init:u}=or(n);s.parser&&(s.parser.yy=d),d.clear?.(),u?.(o),t.title&&d.setDiagramTitle?.(t.title);let f=a.cleaned;if(d.preserveCommentsWhenParsing&&a.withComments){let m=o.maxTextSize??zr.maxTextSize;a.withComments.length>m?g.warn(`Comment-preserving source exceeds maxTextSize (${a.withComments.length} > ${m}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):f=a.withComments}let p=ee(f)+`
|
|
3
|
+
`;return a.frontmatterLineOffset&&d.setFrontmatterLineOffset?.(a.frontmatterLineOffset),await s.parse(p),new gt(n,p,d,s,c)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},Ae=[],go=i(()=>{Ae.forEach(r=>{r()}),Ae=[]},"attachFunctions"),vo=i(r=>r.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function vt(r){let e=Ir(r);if(!e)return{text:r,metadata:{}};let t=e.indent,a=t?e.body.split(`
|
|
4
|
+
`).map(d=>d.startsWith(t)?d.slice(t.length):d).join(`
|
|
5
|
+
`):e.body,o=Kr(a,{schema:Wr})??{};o=typeof o=="object"&&!Array.isArray(o)?o:{};let n={};return o.displayMode&&(n.displayMode=o.displayMode.toString()),o.title&&(n.title=o.title.toString()),o.config&&(n.config=o.config),{text:r.slice(e.length),metadata:n}}i(vt,"extractFrontMatter");var ho=i(r=>r.replace(/\r\n?/g,`
|
|
6
|
+
`).replace(/<(\w+)([^>]*)>/g,(e,t,a)=>"<"+t+a.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),yo=i(r=>{let{text:e,metadata:t}=vt(r),{displayMode:a,title:o,config:n={}}=t;return a&&(n.gantt||(n.gantt={}),n.gantt.displayMode=a),{title:o,config:n,text:e}},"processFrontmatter"),wo=i(r=>{let e=V.detectInit(r)??{},t=V.detectDirective(r,"wrap");return Array.isArray(t)?e.wrap=t.some(({type:a})=>a==="wrap"):t?.type==="wrap"&&(e.wrap=!0),{text:Zr(r),directive:e}},"processDirectives");function Lr(r){let e=r,t=ho(r),a=yo(t),o=wo(a.text),n=re(a.config,o.directive),d=o.text,s=vo(d),c=t.length>a.text.length?(t.substring(0,t.length-a.text.length).match(/\n/g)??[]).length:0;return{code:{raw:e,cleaned:s,withComments:d,frontmatterLineOffset:c},title:a.title,config:n}}i(Lr,"preprocessDiagram");function ht(r){let e=new TextEncoder().encode(r),t=Array.from(e,a=>String.fromCodePoint(a)).join("");return btoa(t)}i(ht,"toBase64");var xo=5e4,bo="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",So="sandbox",Eo="loose",Do="http://www.w3.org/2000/svg",To="http://www.w3.org/1999/xlink",Ao="http://www.w3.org/1999/xhtml",_o="100%",Mo="100%",Co="border:0;margin:0;",Lo="margin:0",ko="allow-top-navigation-by-user-activation allow-popups",Ro='The "iframe" tag is not supported by your browser.',Io=["foreignobject"],Fo=["dominant-baseline"];function kr(r){let e=Lr(r);q();let t;try{t=rr(e.code.cleaned,$())}catch{t=void 0}return ir(t),Br(e.config??{}),e}i(kr,"processAndSetConfigs");async function yt(r,e){xr();try{let{code:t,config:a}=kr(r);return{diagramType:(await yr.fromText(t)).type,config:a}}catch(t){if(e?.suppressErrors)return!1;throw t}finally{ir(void 0)}}i(yt,"parse");var _e=i((r,e,t=[])=>{let a=Pr(`{ ${t.join(" !important; ")} !important; }`);return`.${r} ${e} ${a}`},"cssImportantStyles"),Oo=i((r,e=new Map)=>{let t=new CSSStyleSheet;if(r.fontFamily!==void 0&&t.insertRule(`:root { --mermaid-font-family: ${r.fontFamily}}`,t.cssRules.length),r.altFontFamily!==void 0&&t.insertRule(`:root { --mermaid-alt-font-family: ${r.altFontFamily}}`,t.cssRules.length),e instanceof Map){let s=Yr(r)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(c=>{Dr(c.styles)||s.forEach(u=>{t.insertRule(_e(c.id,u,c.styles),t.cssRules.length)}),Dr(c.textStyles)||t.insertRule(_e(c.id,"tspan",(c?.textStyles||[]).map(u=>u.replace("color","fill"))),t.cssRules.length)})}let a="";if(r.themeCSS!==void 0)if(typeof t.replaceSync=="function"){let o=new CSSStyleSheet;o.replaceSync(r.themeCSS),a=Er(o)+`
|
|
7
|
+
`}else a+=`${r.themeCSS}
|
|
8
|
+
`;return a+Er(t)},"createCssStyles"),$o=i((r,e)=>vr(Se(`${r}{${e}}`),De([i(function(a,o,n,d){if(a.type==="rule"&&Array.isArray(a.props)){if(a.parent&&a.parent.type===W)return;a.props=a.props.map(s=>s===r&&Array.isArray(a.children)&&a.children.every(u=>u.type!=="decl"?!1:new Set(["font-family","font-size","fill"]).has(u.props))||(s.startsWith(`${r} `)||s.startsWith(`${r}>`))&&!s.startsWith(`${r} ||`)?s:`${r} ${s}`)}else a.type.startsWith("@")&&([...[oe,se,dr,ce,"@container","@starting-style"],W].includes(a.type)||(g.warn(`Removing unsupported at-rule ${a.type} from CSS`),a.type=U))},"addNamespace"),Ee])),"compileCSS"),zo=i((r,e,t,a)=>{let o=Oo(r,t),n=qr(e,o,{...r.themeVariables,theme:r.theme,look:r.look},a);return $o(a,n)},"createUserStyles"),Po=i((r="",e,t)=>{let a=r;return!t&&!e&&(a=a.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),a=te(a),a=a.replace(/<br>/g,"<br/>"),a},"cleanUpSvgCode"),No=i((r="",e)=>{let t=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":Mo,a=ht(`<body style="${Lo}">${r}</body>`);return`<iframe style="width:${_o};height:${t};${Co}" src="data:text/html;charset=UTF-8;base64,${a}" sandbox="${ko}">
|
|
9
|
+
${Ro}
|
|
10
|
+
</iframe>`},"putIntoIFrame"),Me=i((r,e,t,a,o)=>{let n=r.append("div");n.attr("id",t),a&&n.attr("style",a);let d=n.append("svg").attr("id",e).attr("width","100%").attr("xmlns",Do);return o&&d.attr("xmlns:xlink",o),d.append("g"),r},"appendDivSvgG");function Cr(r,e){return r.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}i(Cr,"sandboxedIframe");var Vo=i((r,e,t,a)=>{r.getElementById(e)?.remove(),r.getElementById(t)?.remove(),r.getElementById(a)?.remove()},"removeExistingElements"),Uo=i(async function(r,e,t){xr();let a=kr(e),o=a.code;e=o.cleaned;let n=$();g.debug(n),e.length>(n?.maxTextSize??xo)&&(e=bo,o={raw:e,cleaned:e});let d=`#${r}`,s="i"+r,c="#"+s,u="d"+r,f="#"+u,p=i(()=>{let j=k(x?c:f).node();j&&"remove"in j&&j.remove()},"removeTempElements"),m=k(document.body),x=n.securityLevel===So,E=n.securityLevel===Eo,b=n.fontFamily;if(t!==void 0){if(t&&(t.innerHTML=""),x){let y=Cr(k(t),s);m=k(y.nodes()[0].contentDocument.body),m.node().style.margin="0"}else m=k(t);Me(m,r,u,`font-family: ${b}`,To)}else{if(Vo(document,r,u,s),x){let y=Cr(k(document.body),s);m=k(y.nodes()[0].contentDocument.body),m.node().style.margin="0"}else m=k("body");Me(m,r,u)}let w,D;try{w=await yr.fromText(o,{title:a.title})}catch(y){if(n.suppressErrorRendering)throw p(),y;w=await yr.fromText("error"),D=y,w.db.setErrorMessage?.(Jr(y))}let T=m.select(f).node(),v=w.type,C=T.firstChild,N=C.firstChild,L=w.renderer.getClasses?.(e,w),A=zo(n,v,L,d),l=document.createElement("style");l.innerHTML=A,C.insertBefore(l,N);try{await w.renderer.draw(e,r,"12.1.0",w)}catch(y){throw n.suppressErrorRendering?p():Ga.draw(e,r,"12.1.0"),y}let At=m.select(`${f} svg`),_t=w.db.getAccTitle?.(),Mt=w.db.getAccDescription?.();xt(v,At,_t,Mt);let Ct=i(()=>{m.select(`[id="${r}"]`).selectAll("foreignobject > *").attr("xmlns",Ao);let y=m.select(f).node().innerHTML;if(g.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),y=Po(y,x,Nr(n.arrowMarkerAbsolute)),x){let j=m.select(f+" svg").node();y=No(y,j)}else E||(y=Rr.sanitize(y,{ADD_TAGS:Io,ADD_ATTR:Fo,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return go(),y},"serializeSvg")();if(D)throw D;return p(),{diagramType:v,svg:Ct,bindFunctions:w.db.bindFunctions}},"renderDiagram"),Go=i(async function(r,e,t){try{return await Uo(r,e,t)}finally{ir(void 0)}},"render");function wt(r={}){let e=$r({},r);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),Ur(e);let t=ar.theme;e?.theme&&Object.hasOwn(tr,e.theme)?e.themeVariables=tr[e.theme].getThemeVariables(e.themeVariables):e&&(e.theme!=null&&e.theme!=="null"&&(e.theme=t),e.themeVariables=tr[t].getThemeVariables(e.themeVariables));let a=typeof e=="object"?Vr(e):Sr();br(a.logLevel),xr()}i(wt,"initialize");var Ho=i((r,e={})=>{let{code:t}=Lr(r);return yr.fromText(t,e)},"getDiagramFromText");function xt(r,e,t,a){pt(e,r),ft(e,t,a,e.attr("id"))}i(xt,"addA11yInfo");var P=Object.freeze({render:Go,parse:yt,getDiagramFromText:Ho,initialize:wt,getConfig:$,setConfig:Hr,getSiteConfig:Sr,updateSiteConfig:Gr,reset:i(()=>{q()},"reset"),globalReset:i(()=>{q(ar)},"globalReset"),defaultConfig:ar});br($().logLevel);q($());var Bo=i((r,e,t)=>{g.warn(r),Tr(r)?(t&&t(r.str,r.hash),e.push({...r,message:r.str,error:r})):(t&&t(r),r instanceof Error&&e.push({str:r.message,message:r.message,hash:r.name,error:r}))},"handleError"),bt=i(async function(r={querySelector:".mermaid"}){try{await Yo(r)}catch(e){if(Tr(e)&&g.error(e.str),O.parseError&&O.parseError(e),!r.suppressErrors)throw g.error("Use the suppressErrors option to suppress these errors"),e}},"run"),Yo=i(async function({postRenderCallback:r,querySelector:e,nodes:t}={querySelector:".mermaid"}){let a=P.getConfig();g.debug(`${r?"":"No "}Callback function found`);let o;if(t)o=t;else if(e)o=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");g.debug(`Found ${o.length} diagrams`),a?.startOnLoad!==void 0&&(g.debug("Start On Load: "+a?.startOnLoad),P.updateSiteConfig({startOnLoad:a?.startOnLoad}));let n=new V.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed),d,s=[];for(let c of Array.from(o)){if(g.info("Rendering diagram: "+c.id),c.getAttribute("data-processed"))continue;c.setAttribute("data-processed","true");let u=`mermaid-${n.next()}`;d=c.innerHTML,d=ae(V.entityDecode(d)).trim().replace(/<br\s*\/?>/gi,"<br/>");let f=V.detectInit(d);f&&g.debug("Detected early reinit: ",f);try{let{svg:p,bindFunctions:m}=await Tt(u,d,c);c.innerHTML=p,r&&await r(u),m&&m(c)}catch(p){Bo(p,s,O.parseError)}}if(s.length>0)throw s[0]},"runThrowsErrors"),St=i(function(r){P.initialize(r)},"initialize"),jo=i(async function(r,e,t){g.warn("mermaid.init is deprecated. Please use run instead."),r&&St(r);let a={postRenderCallback:t,querySelector:".mermaid"};typeof e=="string"?a.querySelector=e:e&&(e instanceof HTMLElement?a.nodes=[e]:a.nodes=e),await bt(a)},"init"),qo=i(async(r,{lazyLoad:e=!0}={})=>{xr(),er(...r),e===!1&&await po()},"registerExternalDiagrams"),Et=i(function(){if(O.startOnLoad){let{startOnLoad:r}=P.getConfig();r&&O.run().catch(e=>g.error("Mermaid failed to initialize",e))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",Et,!1);var Xo=i(function(r){O.parseError=r},"setParseErrorHandler"),wr=[],Mr=!1,Dt=i(async()=>{if(!Mr){for(Mr=!0;wr.length>0;){let r=wr.shift();if(r)try{await r()}catch(e){g.error("Error executing queue",e)}}Mr=!1}},"executeQueue"),Wo=i(async(r,e)=>new Promise((t,a)=>{let o=i(()=>new Promise((n,d)=>{P.parse(r,e).then(s=>{n(s),t(s)},s=>{g.error("Error parsing",s),O.parseError?.(s),d(s),a(s)})}),"performCall");wr.push(o),Dt().catch(a)}),"parse"),Tt=i((r,e,t)=>new Promise((a,o)=>{let n=i(()=>new Promise((d,s)=>{P.render(r,e,t).then(c=>{d(c),a(c)},c=>{g.error("Error parsing",c),O.parseError?.(c),s(c),o(c)})}),"performCall");wr.push(n),Dt().catch(o)}),"render"),Ko=i(()=>Object.keys(J).map(r=>({id:r})),"getRegisteredDiagramsMetadata"),O={startOnLoad:!0,mermaidAPI:P,parse:Wo,render:Tt,init:jo,run:bt,registerExternalDiagrams:qo,registerLayoutLoaders:ie,initialize:St,parseError:void 0,contentLoaded:Et,setParseErrorHandler:Xo,detectType:rr,registerIconPacks:Qr,getRegisteredDiagramsMetadata:Ko},$n=O;export{$n as default};
|
|
11
|
+
/*! Bundled license information:
|
|
12
|
+
|
|
13
|
+
mermaid/dist/mermaid.core.mjs:
|
|
14
|
+
(*! Check if previously processed *)
|
|
15
|
+
(*!
|
|
16
|
+
* Wait for document loaded before starting the execution
|
|
17
|
+
*)
|
|
18
|
+
*/
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import{a as ge}from"./chunk-BYKZQKZN.js";import{b as he,c as de}from"./chunk-GBOXGTKU.js";import{a as ue}from"./chunk-7DQROAU7.js";import"./chunk-XYDA52BE.js";import"./chunk-IR3NHMOO.js";import"./chunk-OFD4YTIR.js";import"./chunk-ZRBDUQXP.js";import"./chunk-NBZPV65B.js";import"./chunk-NCTJNXDF.js";import"./chunk-ZGUCZDEK.js";import"./chunk-ENUKY65A.js";import"./chunk-HHYS5L3R.js";import"./chunk-KLF2A562.js";import"./chunk-GTJDAHEV.js";import"./chunk-XLJVPE6C.js";import{$ as C,C as ce,F as le,I as M,c as se,d as oe,e as ae,r as B}from"./chunk-M3XBBO6R.js";import{b as T}from"./chunk-W4ELJFHG.js";import{a as h}from"./chunk-UAGOPMXU.js";import"./chunk-PHKIAKHS.js";var k=[];for(let e=0;e<256;++e)k.push((e+256).toString(16).slice(1));function pe(e,i=0){return(k[e[i+0]]+k[e[i+1]]+k[e[i+2]]+k[e[i+3]]+"-"+k[e[i+4]]+k[e[i+5]]+"-"+k[e[i+6]]+k[e[i+7]]+"-"+k[e[i+8]]+k[e[i+9]]+"-"+k[e[i+10]]+k[e[i+11]]+k[e[i+12]]+k[e[i+13]]+k[e[i+14]]+k[e[i+15]]).toLowerCase()}var Ee=new Uint8Array(16);function q(){return crypto.getRandomValues(Ee)}function _e(e,i,l){return!i&&!e&&crypto.randomUUID?crypto.randomUUID():Se(e,i,l)}function Se(e,i,l){e=e||{};let a=e.random??e.rng?.()??q();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,i){if(l=l||0,l<0||l+16>i.length)throw new RangeError(`UUID byte range ${l}:${l+15} is out of buffer bounds`);for(let t=0;t<16;++t)i[l+t]=a[t];return i}return pe(a)}var J=_e;var K=(function(){var e=h(function(D,s,n,o){for(n=n||{},o=D.length;o--;n[D[o]]=s);return n},"o"),i=[1,4],l=[1,13],a=[1,12],t=[1,15],d=[1,16],f=[1,20],m=[1,19],b=[6,7,8],O=[1,26],w=[1,24],R=[1,25],g=[6,7,11],A=[1,6,13,15,16,19,22],Q=[1,33],Z=[1,34],$=[1,6,7,11,13,15,16,19,22],j={trace:h(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:h(function(s,n,o,c,p,r,U){var u=r.length-1;switch(p){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[u].id),c.addNode(r[u-1].length,r[u].id,r[u].descr,r[u].type);break;case 16:c.getLogger().trace("Icon: ",r[u]),c.decorateNode({icon:r[u]});break;case 17:case 21:c.decorateNode({class:r[u]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[u].id),c.addNode(0,r[u].id,r[u].descr,r[u].type);break;case 20:c.decorateNode({icon:r[u]});break;case 25:c.getLogger().trace("node found ..",r[u-2]),this.$={id:r[u-1],descr:r[u-1],type:c.getType(r[u-2],r[u])};break;case 26:this.$={id:r[u],descr:r[u],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[u-3]),this.$={id:r[u-3],descr:r[u-1],type:c.getType(r[u-2],r[u])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:i},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:i},{6:l,7:[1,10],9:9,12:11,13:a,14:14,15:t,16:d,17:17,18:18,19:f,22:m},e(b,[2,3]),{1:[2,2]},e(b,[2,4]),e(b,[2,5]),{1:[2,6],6:l,12:21,13:a,14:14,15:t,16:d,17:17,18:18,19:f,22:m},{6:l,9:22,12:11,13:a,14:14,15:t,16:d,17:17,18:18,19:f,22:m},{6:O,7:w,10:23,11:R},e(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:f,22:m}),e(g,[2,18]),e(g,[2,19]),e(g,[2,20]),e(g,[2,21]),e(g,[2,23]),e(g,[2,24]),e(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:O,7:w,10:32,11:R},{1:[2,7],6:l,12:21,13:a,14:14,15:t,16:d,17:17,18:18,19:f,22:m},e(A,[2,14],{7:Q,11:Z}),e($,[2,8]),e($,[2,9]),e($,[2,10]),e(g,[2,15]),e(g,[2,16]),e(g,[2,17]),{20:[1,35]},{21:[1,36]},e(A,[2,13],{7:Q,11:Z}),e($,[2,11]),e($,[2,12]),{21:[1,37]},e(g,[2,25]),e(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:h(function(s,n){if(n.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=n,o}},"parseError"),parse:h(function(s){var n=this,o=[0],c=[],p=[null],r=[],U=this.table,u="",V=0,ee=0,te=0,me=2,ie=1,ye=r.slice.call(arguments,1),y=Object.create(this.lexer),L={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(L.yy[H]=this.yy[H]);y.setInput(s,L.yy),L.yy.lexer=y,L.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var W=y.yylloc;r.push(W);var ke=y.options&&y.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function be(_){o.length=o.length-2*_,p.length=p.length-_,r.length=r.length-_}h(be,"popStack");function ne(){var _;return _=c.pop()||y.lex()||ie,typeof _!="number"&&(_ instanceof Array&&(c=_,_=c.pop()),_=n.symbols_[_]||_),_}h(ne,"lex");for(var E,X,v,S,we,z,I={},F,x,re,G;;){if(v=o[o.length-1],this.defaultActions[v]?S=this.defaultActions[v]:((E===null||typeof E>"u")&&(E=ne()),S=U[v]&&U[v][E]),typeof S>"u"||!S.length||!S[0]){var Y="";G=[];for(F in U[v])this.terminals_[F]&&F>me&&G.push("'"+this.terminals_[F]+"'");y.showPosition?Y="Parse error on line "+(V+1)+`:
|
|
2
|
+
`+y.showPosition()+`
|
|
3
|
+
Expecting `+G.join(", ")+", got '"+(this.terminals_[E]||E)+"'":Y="Parse error on line "+(V+1)+": Unexpected "+(E==ie?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(Y,{text:y.match,token:this.terminals_[E]||E,line:y.yylineno,loc:W,expected:G})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+E);switch(S[0]){case 1:o.push(E),p.push(y.yytext),r.push(y.yylloc),o.push(S[1]),E=null,X?(E=X,X=null):(ee=y.yyleng,u=y.yytext,V=y.yylineno,W=y.yylloc,te>0&&te--);break;case 2:if(x=this.productions_[S[1]][1],I.$=p[p.length-x],I._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},ke&&(I._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),z=this.performAction.apply(I,[u,ee,V,L.yy,S[1],p,r].concat(ye)),typeof z<"u")return z;x&&(o=o.slice(0,-1*x*2),p=p.slice(0,-1*x),r=r.slice(0,-1*x)),o.push(this.productions_[S[1]][0]),p.push(I.$),r.push(I._$),re=U[o[o.length-2]][o[o.length-1]],o.push(re);break;case 3:return!0}}return!0},"parse")},fe=(function(){var D={EOF:1,parseError:h(function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);else throw new Error(n)},"parseError"),setInput:h(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:h(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:h(function(s){var n=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:h(function(){return this._more=!0,this},"more"),reject:h(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).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:h(function(s){this.unput(this.match.slice(s))},"less"),pastInput:h(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:h(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:h(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
5
|
+
`+n+"^"},"showPosition"),test_match:h(function(s,n){var o,c,p;if(this.options.backtrack_lexer&&(p={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&&(p.yylloc.range=this.yylloc.range.slice(0))),c=s[0].match(/(?:\r\n?|\n).*/g),c&&(this.yylineno+=c.length),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+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],o=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var r in p)this[r]=p[r];return!1}return!1},"test_match"),next:h(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,n,o,c;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),r=0;r<p.length;r++)if(o=this._input.match(this.rules[p[r]]),o&&(!n||o[0].length>n[0].length)){if(n=o,c=r,this.options.backtrack_lexer){if(s=this.test_match(o,p[r]),s!==!1)return s;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(s=this.test_match(n,p[c]),s!==!1?s:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:h(function(){var n=this.next();return n||this.lex()},"lex"),begin:h(function(n){this.conditionStack.push(n)},"begin"),popState:h(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:h(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:h(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:h(function(n){this.begin(n)},"pushState"),stateStackSize:h(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:h(function(n,o,c,p){var r=p;switch(c){case 0:return n.getLogger().trace("Found comment",o.yytext),6;break;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;break;case 4:this.popState();break;case 5:n.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return n.getLogger().trace("SPACELINE"),6;break;case 7:return 7;case 8:return 15;case 9:n.getLogger().trace("end icon"),this.popState();break;case 10:return n.getLogger().trace("Exploding node"),this.begin("NODE"),19;break;case 11:return n.getLogger().trace("Cloud"),this.begin("NODE"),19;break;case 12:return n.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;break;case 13:return n.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;break;case 14:return this.begin("NODE"),19;break;case 15:return this.begin("NODE"),19;break;case 16:return this.begin("NODE"),19;break;case 17:return this.begin("NODE"),19;break;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:n.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return n.getLogger().trace("description:",o.yytext),"NODE_DESCR";break;case 26:this.popState();break;case 27:return this.popState(),n.getLogger().trace("node end ))"),"NODE_DEND";break;case 28:return this.popState(),n.getLogger().trace("node end )"),"NODE_DEND";break;case 29:return this.popState(),n.getLogger().trace("node end ...",o.yytext),"NODE_DEND";break;case 30:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 31:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";break;case 32:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";break;case 33:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 34:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 35:return n.getLogger().trace("Long description:",o.yytext),20;break;case 36:return n.getLogger().trace("Long description:",o.yytext),20;break}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return D})();j.lexer=fe;function P(){this.yy={}}return h(P,"Parser"),P.prototype=j,j.Parser=P,new P})();K.parser=K;var xe=K,Ne=12,N={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},De=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=N,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{h(this,"MindmapDB")}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let i=this.nodes.length-1;i>=0;i--)if(this.nodes[i].level<e)return this.nodes[i];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,i,l,a){T.info("addNode",e,i,l,a);let t=!1;this.nodes.length===0?(this.baseLevel=e,e=0,t=!0):this.baseLevel!==void 0&&(e=e-this.baseLevel,t=!1);let d=C(),f=d.mindmap?.padding??B.mindmap.padding;switch(a){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:f*=2;break}let m={id:this.count++,nodeId:M(i,d),level:e,descr:M(l,d),type:a,children:[],width:d.mindmap?.maxNodeWidth??B.mindmap.maxNodeWidth,padding:f,isRoot:t},b=this.getParent(e);if(b)b.children.push(m),this.nodes.push(m);else if(t)this.nodes.push(m);else throw new Error(`There can be only one root. No parent could be found for ("${m.descr}")`)}getType(e,i){switch(T.debug("In get type",e,i),e){case"[":return this.nodeType.RECT;case"(":return i===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,i){this.elements[e]=i}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let i=C(),l=this.nodes[this.nodes.length-1];e.icon&&(l.icon=M(e.icon,i)),e.class&&(l.class=M(e.class,i))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,i){if(e.level===0?e.section=void 0:e.section=i,e.children)for(let[l,a]of e.children.entries()){let t=e.level===0?l%(Ne-1):i;this.assignSections(a,t)}}flattenNodes(e,i){let l=C(),a=["mindmap-node"];e.isRoot===!0?a.push("section-root","section--1"):e.section!==void 0&&a.push(`section-${e.section}`),e.class&&a.push(e.class);let t=a.join(" "),d=h(m=>{let O=(l.theme?.toLowerCase()??"").includes("redux");switch(m){case N.CIRCLE:return"mindmapCircle";case N.RECT:return"rect";case N.ROUNDED_RECT:return"rounded";case N.CLOUD:return"cloud";case N.BANG:return"bang";case N.HEXAGON:return"hexagon";case N.DEFAULT:return O?"rounded":"defaultMindmapNode";case N.NO_BORDER:default:return"rect"}},"getShapeFromType"),f={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:d(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:t,cssStyles:[],look:l.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(i.push(f),e.children)for(let m of e.children)this.flattenNodes(m,i)}generateEdges(e,i){if(!e.children)return;let l=C();for(let a of e.children){let t="edge";a.section!==void 0&&(t+=` section-edge-${a.section}`);let d=e.level+1;t+=` edge-depth-${d}`;let f={id:`edge_${e.id}_${a.id}`,start:e.id.toString(),end:a.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:l.look,classes:t,depth:e.level,section:a.section};i.push(f),this.generateEdges(a,i)}}getData(){let e=this.getMindmap(),i=C(),a=le().layout!==void 0,t=i;if(a||(t.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:t};T.debug("getData: mindmapRoot",e,i),this.assignSections(e);let d=[],f=[];this.flattenNodes(e,d),this.generateEdges(e,f),T.debug(`getData: processed ${d.length} nodes and ${f.length} edges`);let m=new Map;for(let b of d)m.set(b.id,{shape:b.shape,width:b.width,height:b.height,padding:b.padding});return{nodes:d,edges:f,config:t,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(m),type:"mindmap",diagramId:"mindmap-"+J()}}getLogger(){return T}},Le=h(async(e,i,l,a)=>{T.debug(`Rendering mindmap diagram
|
|
7
|
+
`+e);let t=a.db,d=t.getData(),f=ge(i,d.config.securityLevel);if(d.type=a.type,d.layoutAlgorithm=de(d.config.layout,{fallback:"cose-bilkent"}),d.diagramId=i,!t.getMindmap())return;d.nodes.forEach(g=>{g.shape==="rounded"?(g.radius=15,g.taper=15,g.stroke="none",g.width=0,g.padding=15):g.shape==="circle"?g.padding=10:g.shape==="rect"?(g.width=0,g.padding=10):g.shape==="hexagon"&&(g.width=0,g.height=0)}),await he(d,f);let{themeVariables:b}=ce(),{useGradient:O,gradientStart:w,gradientStop:R}=b;if(O&&w&&R){let g=f.attr("id"),A=f.append("defs").append("linearGradient").attr("id",`${g}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");A.append("stop").attr("offset","0%").attr("stop-color",w).attr("stop-opacity",1),A.append("stop").attr("offset","100%").attr("stop-color",R).attr("stop-opacity",1)}ue(f,d.config.mindmap?.padding??B.mindmap.padding,"mindmapDiagram",d.config.mindmap?.useMaxWidth??B.mindmap.useMaxWidth)},"draw"),ve={draw:Le},Te=h(e=>{let{theme:i,look:l}=e,a="";for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e["lineColor"+t]=e["lineColor"+t]||e["cScaleInv"+t],se(e["lineColor"+t])?e["lineColor"+t]=oe(e["lineColor"+t],20):e["lineColor"+t]=ae(e["lineColor"+t],20);for(let t=0;t<e.THEME_COLOR_LIMIT;t++){let d=""+(l==="neo"?Math.max(10-(t-1)*2,2):17-3*t);a+=`
|
|
8
|
+
.section-${t-1} rect, .section-${t-1} path, .section-${t-1} circle, .section-${t-1} polygon, .section-${t-1} path {
|
|
9
|
+
fill: ${e["cScale"+t]};
|
|
10
|
+
}
|
|
11
|
+
.section-${t-1} text {
|
|
12
|
+
fill: ${e["cScaleLabel"+t]};
|
|
13
|
+
}
|
|
14
|
+
.section-${t-1} span {
|
|
15
|
+
color: ${e["cScaleLabel"+t]};
|
|
16
|
+
}
|
|
17
|
+
.node-icon-${t-1} {
|
|
18
|
+
font-size: 40px;
|
|
19
|
+
color: ${e["cScaleLabel"+t]};
|
|
20
|
+
}
|
|
21
|
+
.section-edge-${t-1}{
|
|
22
|
+
stroke: ${e["cScale"+t]};
|
|
23
|
+
}
|
|
24
|
+
.edge-depth-${t-1}{
|
|
25
|
+
stroke-width: ${d};
|
|
26
|
+
}
|
|
27
|
+
.section-${t-1} line {
|
|
28
|
+
stroke: ${e["cScaleInv"+t]} ;
|
|
29
|
+
stroke-width: 3;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.disabled, .disabled circle, .disabled text {
|
|
33
|
+
fill: lightgray;
|
|
34
|
+
}
|
|
35
|
+
.disabled text {
|
|
36
|
+
fill: #efefef;
|
|
37
|
+
}
|
|
38
|
+
[data-look="neo"].mindmap-node.section-${t-1} rect, [data-look="neo"].mindmap-node.section-${t-1} path, [data-look="neo"].mindmap-node.section-${t-1} circle, [data-look="neo"].mindmap-node.section-${t-1} polygon {
|
|
39
|
+
fill: ${i==="redux"||i==="redux-dark"||i==="neutral"?e.mainBkg:e["cScale"+t]};
|
|
40
|
+
stroke: ${i==="redux"||i==="redux-dark"?e.nodeBorder:e["cScale"+t]};
|
|
41
|
+
stroke-width: ${e.strokeWidth??2}px;
|
|
42
|
+
}
|
|
43
|
+
[data-look="neo"].section-edge-${t-1}{
|
|
44
|
+
stroke: ${i?.includes("redux")||i==="neo-dark"?e.nodeBorder:e["cScale"+t]};
|
|
45
|
+
}
|
|
46
|
+
[data-look="neo"].mindmap-node.section-${t-1} text {
|
|
47
|
+
fill: ${i==="redux"||i==="redux-dark"?e.nodeBorder:e["cScaleLabel"+(i==="neutral"?1:t)]};
|
|
48
|
+
}
|
|
49
|
+
`}return a},"genSections"),Oe=h((e,i,l)=>{let a="";for(let t=0;t<e;t++)a+=`
|
|
50
|
+
[data-look="neo"].mindmap-node.section-${t-1} rect, [data-look="neo"].mindmap-node.section-${t-1} path, [data-look="neo"].mindmap-node.section-${t-1} circle, [data-look="neo"].mindmap-node.section-${t-1} polygon {
|
|
51
|
+
stroke: url(${i}-gradient);
|
|
52
|
+
fill: ${l};
|
|
53
|
+
}
|
|
54
|
+
.section-${t-1} line {
|
|
55
|
+
stroke-width: 0;
|
|
56
|
+
}`;return a},"genGradient"),Ie=h(e=>{let{theme:i}=e,l=e.svgId,a=e.dropShadow?e.dropShadow.replace("url(#drop-shadow)",`url(${l}-drop-shadow)`):"none";return`
|
|
57
|
+
.edge {
|
|
58
|
+
stroke-width: 3;
|
|
59
|
+
}
|
|
60
|
+
${Te(e)}
|
|
61
|
+
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
62
|
+
fill: ${e.git0};
|
|
63
|
+
}
|
|
64
|
+
.section-root text {
|
|
65
|
+
fill: ${e.gitBranchLabel0};
|
|
66
|
+
}
|
|
67
|
+
.section-root span {
|
|
68
|
+
color: ${i?.includes("redux")?e.nodeBorder:e.gitBranchLabel0};
|
|
69
|
+
}
|
|
70
|
+
.icon-container {
|
|
71
|
+
height:100%;
|
|
72
|
+
display: flex;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
align-items: center;
|
|
75
|
+
}
|
|
76
|
+
.edge {
|
|
77
|
+
fill: none;
|
|
78
|
+
}
|
|
79
|
+
.mindmap-node-label {
|
|
80
|
+
dy: 1em;
|
|
81
|
+
alignment-baseline: middle;
|
|
82
|
+
text-anchor: middle;
|
|
83
|
+
dominant-baseline: middle;
|
|
84
|
+
text-align: center;
|
|
85
|
+
}
|
|
86
|
+
[data-look="neo"].mindmap-node {
|
|
87
|
+
filter: ${a};
|
|
88
|
+
}
|
|
89
|
+
[data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
|
|
90
|
+
fill: ${i?.includes("redux")?e.mainBkg:e.git0};
|
|
91
|
+
}
|
|
92
|
+
[data-look="neo"].mindmap-node.section-root .text-inner-tspan {
|
|
93
|
+
fill: ${i?.includes("redux")?e.nodeBorder:e["cScaleLabel"+(i==="neutral"?1:0)]};
|
|
94
|
+
}
|
|
95
|
+
${e.useGradient&&l&&e.mainBkg?Oe(e.THEME_COLOR_LIMIT,l,e.mainBkg):""}
|
|
96
|
+
`},"getStyles"),Ce=Ie,rt={get db(){return new De},renderer:ve,parser:xe,styles:Ce};export{rt as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as r}from"./chunk-7FXP6RHI.js";import"./chunk-WBPRABWA.js";import"./chunk-PHKIAKHS.js";export{e as PacketModule,r as createPacketServices};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b as m,c as p}from"./chunk-XISCFCXG.js";import{a as s}from"./chunk-OB665XPY.js";import"./chunk-LZTAJOGZ.js";import{b as l}from"./chunk-UAQETDSH.js";import"./chunk-ABLFMIK7.js";import"./chunk-7W3KTJUJ.js";import"./chunk-AVJJGJEF.js";import"./chunk-AVITUR4K.js";import"./chunk-UORYZEAD.js";import"./chunk-2TCGAX73.js";import"./chunk-XQHNSJKC.js";import"./chunk-EPS7YYLR.js";import"./chunk-INV6BDXO.js";import"./chunk-56PLA4MI.js";import{b as i}from"./chunk-4UKVVSLZ.js";import"./chunk-CMFTFM5L.js";import"./chunk-7FXP6RHI.js";import"./chunk-FDHLSHAZ.js";import"./chunk-GDF64WIG.js";import"./chunk-WBPRABWA.js";import"./chunk-M3XBBO6R.js";import{b as n}from"./chunk-W4ELJFHG.js";import{a as t}from"./chunk-UAGOPMXU.js";import"./chunk-PHKIAKHS.js";var f=i().RailroadPeg.parser.LangiumParser,c=t(e=>{let r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{let r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{let r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${u(r)}`:`!${u(r)}`}:r},"transformPrefix"),u=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{let r=v(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),v=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return c(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=t(e=>({name:e.name,definition:c(e.definition)}),"transformRule"),h=t(e=>{s(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(y(r)))},"populateDb"),b={parse:t(e=>{a.clear(),n.debug("[PEG Parser] Starting Langium parse");let r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new l(r);let o=r.value;n.debug("[PEG Parser] Parsed rules:",o.rules.length),h(o),n.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},R={parser:b,db:a,renderer:p,styles:m};export{R as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as r}from"./chunk-FDHLSHAZ.js";import"./chunk-WBPRABWA.js";import"./chunk-PHKIAKHS.js";export{e as PieModule,r as createPieServices};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import{a as ot}from"./chunk-OB665XPY.js";import{a as at}from"./chunk-LZTAJOGZ.js";import{a as nt}from"./chunk-UAQETDSH.js";import"./chunk-ABLFMIK7.js";import"./chunk-7W3KTJUJ.js";import"./chunk-AVJJGJEF.js";import"./chunk-AVITUR4K.js";import"./chunk-UORYZEAD.js";import"./chunk-2TCGAX73.js";import"./chunk-XQHNSJKC.js";import"./chunk-EPS7YYLR.js";import"./chunk-INV6BDXO.js";import"./chunk-56PLA4MI.js";import"./chunk-4UKVVSLZ.js";import"./chunk-CMFTFM5L.js";import"./chunk-7FXP6RHI.js";import"./chunk-FDHLSHAZ.js";import"./chunk-GDF64WIG.js";import"./chunk-WBPRABWA.js";import{o as rt,p as it}from"./chunk-GTJDAHEV.js";import"./chunk-XLJVPE6C.js";import{$ as Y,P as V,U as X,V as Z,W as j,X as q,Y as J,Z as K,_ as Q,r as U}from"./chunk-M3XBBO6R.js";import{F as R,I as et,b as T,m as tt}from"./chunk-W4ELJFHG.js";import{a as l}from"./chunk-UAGOPMXU.js";import"./chunk-PHKIAKHS.js";var lt=U.pie,L={sections:new Map,showData:!1,config:lt},b=L.sections,O=L.showData,St=structuredClone(lt),xt=l(()=>structuredClone(St),"getConfig"),wt=l(()=>{b=new Map,O=L.showData,X()},"clear"),Ct=l(({label:t,value:a})=>{if(a<0)throw new Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);b.has(t)||(b.set(t,a),T.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),$t=l(()=>b,"getSections"),Dt=l(t=>{O=t},"setShowData"),yt=l(()=>O,"getShowData"),st={getConfig:xt,clear:wt,setDiagramTitle:K,getDiagramTitle:Q,setAccTitle:Z,getAccTitle:j,setAccDescription:q,getAccDescription:J,addSection:Ct,getSections:$t,setShowData:Dt,getShowData:yt},Tt=l((t,a)=>{ot(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),bt={parse:l(async t=>{let a=await nt("pie",t);T.debug(a),Tt(a,st)},"parse")},At=l(t=>`
|
|
2
|
+
.pieCircle{
|
|
3
|
+
stroke: ${t.pieStrokeColor};
|
|
4
|
+
stroke-width : ${t.pieStrokeWidth};
|
|
5
|
+
opacity : ${t.pieOpacity};
|
|
6
|
+
}
|
|
7
|
+
.pieCircle.highlighted{
|
|
8
|
+
scale: 1.05;
|
|
9
|
+
opacity: 1;
|
|
10
|
+
}
|
|
11
|
+
.pieCircle.highlightedOnHover:hover{
|
|
12
|
+
transition-duration: 250ms;
|
|
13
|
+
scale: 1.05;
|
|
14
|
+
opacity: 1;
|
|
15
|
+
}
|
|
16
|
+
.pieOuterCircle{
|
|
17
|
+
stroke: ${t.pieOuterStrokeColor};
|
|
18
|
+
stroke-width: ${t.pieOuterStrokeWidth};
|
|
19
|
+
fill: none;
|
|
20
|
+
}
|
|
21
|
+
.pieTitleText {
|
|
22
|
+
text-anchor: middle;
|
|
23
|
+
font-size: ${t.pieTitleTextSize};
|
|
24
|
+
fill: ${t.pieTitleTextColor};
|
|
25
|
+
font-family: ${t.fontFamily};
|
|
26
|
+
}
|
|
27
|
+
.slice {
|
|
28
|
+
font-family: ${t.fontFamily};
|
|
29
|
+
fill: ${t.pieSectionTextColor};
|
|
30
|
+
font-size:${t.pieSectionTextSize};
|
|
31
|
+
// fill: white;
|
|
32
|
+
}
|
|
33
|
+
.legend text {
|
|
34
|
+
fill: ${t.pieLegendTextColor};
|
|
35
|
+
font-family: ${t.fontFamily};
|
|
36
|
+
font-size: ${t.pieLegendTextSize};
|
|
37
|
+
}
|
|
38
|
+
`,"getStyles"),kt=At,_t=l(t=>{let a=[...t.values()].reduce((n,m)=>n+m,0),W=[...t.entries()].map(([n,m])=>({label:n,value:m})).filter(n=>n.value/a*100>=1);return et().value(n=>n.value).sort(null)(W)},"createPieArcs"),zt=l((t,a,W,F)=>{T.debug(`rendering pie chart
|
|
39
|
+
`+t);let n=F.db,m=Y(),h=it(n.getConfig(),m.pie),H=40,i=18,c=4,S=450,x=S,A=at(a),$=A.append("g");$.attr("transform","translate("+x/2+","+S/2+")");let{themeVariables:o}=m,[M]=rt(o.pieOuterStrokeWidth);M??=2;let ct=h.legendPosition,P=h.textPosition,dt=h.donutHole>0&&h.donutHole<=.9?h.donutHole:0,f=Math.min(x,S)/2-H,gt=R().innerRadius(dt*f).outerRadius(f),pt=R().innerRadius(f*P).outerRadius(f*P),w=$.append("g");w.append("circle").attr("cx",0).attr("cy",0).attr("r",f+M/2).attr("class","pieOuterCircle");let D=n.getSections(),ht=_t(D),ft=[o.pie1,o.pie2,o.pie3,o.pie4,o.pie5,o.pie6,o.pie7,o.pie8,o.pie9,o.pie10,o.pie11,o.pie12],k=0;D.forEach(e=>{k+=e});let G=ht.filter(e=>(e.data.value/k*100).toFixed(0)!=="0"),_=tt(ft).domain([...D.keys()]);w.selectAll("mySlices").data(G).enter().append("path").attr("d",gt).attr("fill",e=>_(e.data.label)).attr("class",e=>{let r="pieCircle";return h.highlightSlice==="hover"?r+=" highlightedOnHover":h.highlightSlice===e.data.label&&(r+=" highlighted"),r}),w.selectAll("mySlices").data(G).enter().append("text").text(e=>(e.data.value/k*100).toFixed(0)+"%").attr("transform",e=>"translate("+pt.centroid(e)+")").style("text-anchor","middle").attr("class","slice");let ut=$.append("text").text(n.getDiagramTitle()).attr("x",0).attr("y",-(S-50)/2).attr("class","pieTitleText"),C=[...D.entries()].map(([e,r])=>({label:e,value:r})),u=$.selectAll(".legend").data(C).enter().append("g").attr("class","legend");u.append("rect").attr("width",i).attr("height",i).style("fill",e=>_(e.label)).style("stroke",e=>_(e.label)),u.append("text").attr("x",i+c).attr("y",i-c).text(e=>n.getShowData()?`${e.label} [${e.value}]`:e.label);let v=Math.max(...u.selectAll("text").nodes().map(e=>e?.getBoundingClientRect().width??0)),y=S,z=x+H,s=i+c,E=C.length*s;switch(ct){case"center":u.attr("transform",(e,r)=>{let d=s*C.length/2,g=-v/2-(i+c),p=r*s-d;return"translate("+g+","+p+")"});break;case"top":y+=E,u.attr("transform",(e,r)=>{let d=f,g=-v/2-(i+c),p=r*s-d;return`translate(${g}, ${p})`}),w.attr("transform",()=>`translate(0, ${E+s})`);break;case"bottom":y+=E,u.attr("transform",(e,r)=>{let d=-f-s,g=-v/2-(i+c),p=r*s-d;return"translate("+g+","+p+")"});break;case"left":z+=i+c+v,u.attr("transform",(e,r)=>{let d=s*C.length/2,g=-f-(i+c),p=r*s-d;return"translate("+g+","+p+")"}),w.attr("transform",()=>`translate(${v+i+c}, 0)`);break;default:z+=i+c+v,u.attr("transform",(e,r)=>{let d=s*C.length/2,g=12*i,p=r*s-d;return"translate("+g+","+p+")"});break}let B=ut.node()?.getBoundingClientRect().width??0,mt=x/2-B/2,vt=x/2+B/2,N=Math.min(0,mt),I=Math.max(z,vt)-N;A.attr("viewBox",`${N} 0 ${I} ${y}`),V(A,y,I,h.useMaxWidth)},"draw"),Et={draw:zt},Bt={parser:bt,db:st,renderer:Et,styles:kt};export{Bt as diagram};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{$ as Tt,I as re,P as se,U as oe,V as le,W as he,X as ce,Y as de,Z as ue,_ as Et,p as ne,r as D}from"./chunk-M3XBBO6R.js";import{b as ct,h as mt,o as Dt}from"./chunk-W4ELJFHG.js";import{a as s}from"./chunk-UAGOPMXU.js";import"./chunk-PHKIAKHS.js";var zt=(function(){var t=s(function(Y,r,l,u){for(l=l||{},u=Y.length;u--;l[Y[u]]=r);return l},"o"),a=[1,3],p=[1,4],f=[1,5],o=[1,6],x=[1,7],_=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],h=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],c=[55,56,57],k=[2,36],m=[1,37],q=[1,36],y=[1,38],b=[1,35],T=[1,43],g=[1,41],A=[1,45],dt=[1,14],ut=[1,23],xt=[1,18],ft=[1,19],ot=[1,20],St=[1,21],lt=[1,22],i=[1,24],It=[1,25],wt=[1,26],Bt=[1,27],Rt=[1,28],Nt=[1,29],U=[1,32],Q=[1,33],F=[1,34],P=[1,39],v=[1,40],C=[1,42],L=[1,44],H=[1,63],X=[1,62],E=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Wt=[1,66],Ut=[1,67],Qt=[1,68],Ot=[1,69],Ht=[1,70],Xt=[1,71],Mt=[1,72],Yt=[1,73],jt=[1,74],Gt=[1,75],Kt=[1,76],Zt=[1,77],B=[4,5,6,7,8,9,10,11,12,13,14,15,18],K=[1,91],Z=[1,92],J=[1,93],$=[1,100],tt=[1,94],et=[1,97],it=[1,95],at=[1,96],nt=[1,98],rt=[1,99],_t=[1,103],Jt=[10,55,56,57],N=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],At={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:s(function(r,l,u,d,S,e,ht){var n=e.length-1;switch(S){case 23:this.$=e[n];break;case 24:this.$=e[n-1]+""+e[n];break;case 26:this.$=e[n-1]+e[n];break;case 27:this.$=[e[n].trim()];break;case 28:e[n-2].push(e[n].trim()),this.$=e[n-2];break;case 29:this.$=e[n-4],d.addClass(e[n-2],e[n]);break;case 37:this.$=[];break;case 42:this.$=e[n].trim(),d.setDiagramTitle(this.$);break;case 43:this.$=e[n].trim(),d.setAccTitle(this.$);break;case 44:case 45:this.$=e[n].trim(),d.setAccDescription(this.$);break;case 46:d.addSection(e[n].substr(8)),this.$=e[n].substr(8);break;case 47:d.addPoint(e[n-3],"",e[n-1],e[n],[]);break;case 48:d.addPoint(e[n-4],e[n-3],e[n-1],e[n],[]);break;case 49:d.addPoint(e[n-4],"",e[n-2],e[n-1],e[n]);break;case 50:d.addPoint(e[n-5],e[n-4],e[n-2],e[n-1],e[n]);break;case 51:d.setXAxisLeftText(e[n-2]),d.setXAxisRightText(e[n]);break;case 52:e[n-1].text+=" \u27F6 ",d.setXAxisLeftText(e[n-1]);break;case 53:d.setXAxisLeftText(e[n]);break;case 54:d.setYAxisBottomText(e[n-2]),d.setYAxisTopText(e[n]);break;case 55:e[n-1].text+=" \u27F6 ",d.setYAxisBottomText(e[n-1]);break;case 56:d.setYAxisBottomText(e[n]);break;case 57:d.setQuadrant1Text(e[n]);break;case 58:d.setQuadrant2Text(e[n]);break;case 59:d.setQuadrant3Text(e[n]);break;case 60:d.setQuadrant4Text(e[n]);break;case 64:this.$={text:e[n],type:"text"};break;case 65:this.$={text:e[n-1].text+""+e[n],type:e[n-1].type};break;case 66:this.$={text:e[n],type:"text"};break;case 67:this.$={text:e[n],type:"markdown"};break;case 68:this.$=e[n];break;case 69:this.$=e[n-1]+""+e[n];break}},"anonymous"),table:[{18:a,26:1,27:2,28:p,55:f,56:o,57:x},{1:[3]},{18:a,26:8,27:2,28:p,55:f,56:o,57:x},{18:a,26:9,27:2,28:p,55:f,56:o,57:x},t(_,[2,33],{29:10}),t(h,[2,61]),t(h,[2,62]),t(h,[2,63]),{1:[2,30]},{1:[2,31]},t(c,k,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:m,5:q,10:y,12:b,13:T,14:g,15:A,18:dt,25:ut,35:xt,37:ft,39:ot,41:St,42:lt,48:i,50:It,51:wt,52:Bt,53:Rt,54:Nt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(_,[2,34]),{27:46,55:f,56:o,57:x},t(c,[2,37]),t(c,k,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:m,5:q,10:y,12:b,13:T,14:g,15:A,18:dt,25:ut,35:xt,37:ft,39:ot,41:St,42:lt,48:i,50:It,51:wt,52:Bt,53:Rt,54:Nt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(c,[2,39]),t(c,[2,40]),t(c,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(c,[2,45]),t(c,[2,46]),{18:[1,51]},{4:m,5:q,10:y,12:b,13:T,14:g,15:A,43:52,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:m,5:q,10:y,12:b,13:T,14:g,15:A,43:53,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:m,5:q,10:y,12:b,13:T,14:g,15:A,43:54,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:m,5:q,10:y,12:b,13:T,14:g,15:A,43:55,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:m,5:q,10:y,12:b,13:T,14:g,15:A,43:56,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:m,5:q,10:y,12:b,13:T,14:g,15:A,43:57,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,44:[1,58],47:[1,59],58:61,59:60,63:F,64:P,65:v,66:C,67:L},t(E,[2,64]),t(E,[2,66]),t(E,[2,67]),t(E,[2,70]),t(E,[2,71]),t(E,[2,72]),t(E,[2,73]),t(E,[2,74]),t(E,[2,75]),t(E,[2,76]),t(E,[2,77]),t(E,[2,78]),t(E,[2,79]),t(E,[2,80]),t(E,[2,81]),t(_,[2,35]),t(c,[2,38]),t(c,[2,42]),t(c,[2,43]),t(c,[2,44]),{3:65,4:Wt,5:Ut,6:Qt,7:Ot,8:Ht,9:Xt,10:Mt,11:Yt,12:jt,13:Gt,14:Kt,15:Zt,21:64},t(c,[2,53],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,49:[1,78],63:F,64:P,65:v,66:C,67:L}),t(c,[2,56],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,49:[1,79],63:F,64:P,65:v,66:C,67:L}),t(c,[2,57],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),t(c,[2,58],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),t(c,[2,59],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),t(c,[2,60],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),{45:[1,80]},{44:[1,81]},t(E,[2,65]),t(E,[2,82]),t(E,[2,83]),t(E,[2,84]),{3:83,4:Wt,5:Ut,6:Qt,7:Ot,8:Ht,9:Xt,10:Mt,11:Yt,12:jt,13:Gt,14:Kt,15:Zt,18:[1,82]},t(B,[2,23]),t(B,[2,1]),t(B,[2,2]),t(B,[2,3]),t(B,[2,4]),t(B,[2,5]),t(B,[2,6]),t(B,[2,7]),t(B,[2,8]),t(B,[2,9]),t(B,[2,10]),t(B,[2,11]),t(B,[2,12]),t(c,[2,52],{58:31,43:84,4:m,5:q,10:y,12:b,13:T,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(c,[2,55],{58:31,43:85,4:m,5:q,10:y,12:b,13:T,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),{46:[1,86]},{45:[1,87]},{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:rt,22:89,23:88},t(B,[2,24]),t(c,[2,51],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),t(c,[2,54],{59:60,58:61,4:m,5:q,8:H,10:y,12:b,13:T,14:g,15:A,18:X,63:F,64:P,65:v,66:C,67:L}),t(c,[2,47],{22:89,16:90,23:101,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:rt}),{46:[1,102]},t(c,[2,29],{10:_t}),t(Jt,[2,27],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:rt}),t(N,[2,25]),t(N,[2,13]),t(N,[2,14]),t(N,[2,15]),t(N,[2,16]),t(N,[2,17]),t(N,[2,18]),t(N,[2,19]),t(N,[2,20]),t(N,[2,21]),t(N,[2,22]),t(c,[2,49],{10:_t}),t(c,[2,48],{22:89,16:90,23:105,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:rt}),{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:rt,22:106},t(N,[2,26]),t(c,[2,50],{10:_t}),t(Jt,[2,28],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:rt})],defaultActions:{8:[2,30],9:[2,31]},parseError:s(function(r,l){if(l.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=l,u}},"parseError"),parse:s(function(r){var l=this,u=[0],d=[],S=[null],e=[],ht=this.table,n="",pt=0,$t=0,te=0,Ce=2,ee=1,Le=e.slice.call(arguments,1),z=Object.create(this.lexer),j={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(j.yy[Ft]=this.yy[Ft]);z.setInput(r,j.yy),j.yy.lexer=z,j.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});var Pt=z.yylloc;e.push(Pt);var Ee=z.options&&z.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function De(R){u.length=u.length-2*R,S.length=S.length-R,e.length=e.length-R}s(De,"popStack");function ie(){var R;return R=d.pop()||z.lex()||ee,typeof R!="number"&&(R instanceof Array&&(d=R,R=d.pop()),R=l.symbols_[R]||R),R}s(ie,"lex");for(var I,vt,G,W,Ne,Ct,st={},yt,M,ae,bt;;){if(G=u[u.length-1],this.defaultActions[G]?W=this.defaultActions[G]:((I===null||typeof I>"u")&&(I=ie()),W=ht[G]&&ht[G][I]),typeof W>"u"||!W.length||!W[0]){var Lt="";bt=[];for(yt in ht[G])this.terminals_[yt]&&yt>Ce&&bt.push("'"+this.terminals_[yt]+"'");z.showPosition?Lt="Parse error on line "+(pt+1)+`:
|
|
2
|
+
`+z.showPosition()+`
|
|
3
|
+
Expecting `+bt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Lt="Parse error on line "+(pt+1)+": Unexpected "+(I==ee?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Lt,{text:z.match,token:this.terminals_[I]||I,line:z.yylineno,loc:Pt,expected:bt})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+I);switch(W[0]){case 1:u.push(I),S.push(z.yytext),e.push(z.yylloc),u.push(W[1]),I=null,vt?(I=vt,vt=null):($t=z.yyleng,n=z.yytext,pt=z.yylineno,Pt=z.yylloc,te>0&&te--);break;case 2:if(M=this.productions_[W[1]][1],st.$=S[S.length-M],st._$={first_line:e[e.length-(M||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(M||1)].first_column,last_column:e[e.length-1].last_column},Ee&&(st._$.range=[e[e.length-(M||1)].range[0],e[e.length-1].range[1]]),Ct=this.performAction.apply(st,[n,$t,pt,j.yy,W[1],S,e].concat(Le)),typeof Ct<"u")return Ct;M&&(u=u.slice(0,-1*M*2),S=S.slice(0,-1*M),e=e.slice(0,-1*M)),u.push(this.productions_[W[1]][0]),S.push(st.$),e.push(st._$),ae=ht[u[u.length-2]][u[u.length-1]],u.push(ae);break;case 3:return!0}}return!0},"parse")},ve=(function(){var Y={EOF:1,parseError:s(function(l,u){if(this.yy.parser)this.yy.parser.parseError(l,u);else throw new Error(l)},"parseError"),setInput:s(function(r,l){return this.yy=l||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var l=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===d.length?this.yylloc.first_column:0)+d[d.length-u.length].length-u[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(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).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
5
|
+
`+l+"^"},"showPosition"),test_match:s(function(r,l){var u,d,S;if(this.options.backtrack_lexer&&(S={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(S.yylloc.range=this.yylloc.range.slice(0))),d=r[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],u=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u)return u;if(this._backtrack){for(var e in S)this[e]=S[e];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,l,u,d;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),e=0;e<S.length;e++)if(u=this._input.match(this.rules[S[e]]),u&&(!l||u[0].length>l[0].length)){if(l=u,d=e,this.options.backtrack_lexer){if(r=this.test_match(u,S[e]),r!==!1)return r;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(r=this.test_match(l,S[d]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var l=this.next();return l||this.lex()},"lex"),begin:s(function(l){this.conditionStack.push(l)},"begin"),popState:s(function(){var l=this.conditionStack.length-1;return l>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s(function(l){return l=this.conditionStack.length-1-Math.abs(l||0),l>=0?this.conditionStack[l]:"INITIAL"},"topState"),pushState:s(function(l){this.begin(l)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(l,u,d,S){var e=S;switch(d){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;break;case 5:return this.popState(),"title_value";break;case 6:return this.begin("acc_title"),37;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),39;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;break;case 29:return this.begin("point_start"),44;break;case 30:return this.begin("point_x"),45;break;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;break;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return Y})();At.lexer=ve;function gt(){this.yy={}}return s(gt,"Parser"),gt.prototype=At,At.Parser=gt,new gt})();zt.parser=zt;var ze=zt,w=ne(),Ve=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{s(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:D.quadrantChart?.chartWidth||500,chartWidth:D.quadrantChart?.chartHeight||500,titlePadding:D.quadrantChart?.titlePadding||10,titleFontSize:D.quadrantChart?.titleFontSize||20,quadrantPadding:D.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:D.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:D.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:D.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:D.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:D.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:D.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:D.quadrantChart?.pointTextPadding||5,pointLabelFontSize:D.quadrantChart?.pointLabelFontSize||12,pointRadius:D.quadrantChart?.pointRadius||5,xAxisPosition:D.quadrantChart?.xAxisPosition||"top",yAxisPosition:D.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:D.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:D.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:w.quadrant1Fill,quadrant2Fill:w.quadrant2Fill,quadrant3Fill:w.quadrant3Fill,quadrant4Fill:w.quadrant4Fill,quadrant1TextFill:w.quadrant1TextFill,quadrant2TextFill:w.quadrant2TextFill,quadrant3TextFill:w.quadrant3TextFill,quadrant4TextFill:w.quadrant4TextFill,quadrantPointFill:w.quadrantPointFill,quadrantPointTextFill:w.quadrantPointTextFill,quadrantXAxisTextFill:w.quadrantXAxisTextFill,quadrantYAxisTextFill:w.quadrantYAxisTextFill,quadrantTitleFill:w.quadrantTitleFill,quadrantInternalBorderStrokeFill:w.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:w.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,ct.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}addClass(t,a){this.classes.set(t,a)}setConfig(t){ct.trace("setConfig called with: ",t),this.config={...this.config,...t}}setThemeConfig(t){ct.trace("setThemeConfig called with: ",t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,a,p,f){let o=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,x={top:t==="top"&&a?o:0,bottom:t==="bottom"&&a?o:0},_=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,h={left:this.config.yAxisPosition==="left"&&p?_:0,right:this.config.yAxisPosition==="right"&&p?_:0},c=this.config.titleFontSize+this.config.titlePadding*2,k={top:f?c:0},m=this.config.quadrantPadding+h.left,q=this.config.quadrantPadding+x.top+k.top,y=this.config.chartWidth-this.config.quadrantPadding*2-h.left-h.right,b=this.config.chartHeight-this.config.quadrantPadding*2-x.top-x.bottom-k.top,T=y/2,g=b/2;return{xAxisSpace:x,yAxisSpace:h,titleSpace:k,quadrantSpace:{quadrantLeft:m,quadrantTop:q,quadrantWidth:y,quadrantHalfWidth:T,quadrantHeight:b,quadrantHalfHeight:g}}}getAxisLabels(t,a,p,f){let{quadrantSpace:o,titleSpace:x}=f,{quadrantHalfHeight:_,quadrantHeight:h,quadrantLeft:c,quadrantHalfWidth:k,quadrantTop:m,quadrantWidth:q}=o,y=!!this.data.xAxisRightText,b=!!this.data.yAxisTopText,T=[];return this.data.xAxisLeftText&&a&&T.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+(y?k/2:0),y:t==="top"?this.config.xAxisLabelPadding+x.top:this.config.xAxisLabelPadding+m+h+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:y?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&a&&T.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+k+(y?k/2:0),y:t==="top"?this.config.xAxisLabelPadding+x.top:this.config.xAxisLabelPadding+m+h+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:y?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&p&&T.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+q+this.config.quadrantPadding,y:m+h-(b?_/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:b?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&p&&T.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+q+this.config.quadrantPadding,y:m+_-(b?_/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:b?"center":"left",horizontalPos:"top",rotation:-90}),T}getQuadrants(t){let{quadrantSpace:a}=t,{quadrantHalfHeight:p,quadrantLeft:f,quadrantHalfWidth:o,quadrantTop:x}=a,_=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f+o,y:x,width:o,height:p,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f,y:x,width:o,height:p,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f,y:x+p,width:o,height:p,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f+o,y:x+p,width:o,height:p,fill:this.themeConfig.quadrant4Fill}];for(let h of _)h.text.x=h.x+h.width/2,this.data.points.length===0?(h.text.y=h.y+h.height/2,h.text.horizontalPos="middle"):(h.text.y=h.y+this.config.quadrantTextTopPadding,h.text.horizontalPos="top");return _}getQuadrantPoints(t){let{quadrantSpace:a}=t,{quadrantHeight:p,quadrantLeft:f,quadrantTop:o,quadrantWidth:x}=a,_=Dt().domain([0,1]).range([f,x+f]),h=Dt().domain([0,1]).range([p+o,o]);return this.data.points.map(k=>{let m=this.classes.get(k.className);return m&&(k={...m,...k}),{x:_(k.x),y:h(k.y),fill:k.color??this.themeConfig.quadrantPointFill,radius:k.radius??this.config.pointRadius,text:{text:k.text,fill:this.themeConfig.quadrantPointTextFill,x:_(k.x),y:h(k.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:k.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:k.strokeWidth??"0px"}})}getBorders(t){let a=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:p}=t,{quadrantHalfHeight:f,quadrantHeight:o,quadrantLeft:x,quadrantHalfWidth:_,quadrantTop:h,quadrantWidth:c}=p;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:x-a,y1:h,x2:x+c+a,y2:h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:x+c,y1:h+a,x2:x+c,y2:h+o-a},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:x-a,y1:h+o,x2:x+c+a,y2:h+o},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:x,y1:h+a,x2:x,y2:h+o-a},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:x+_,y1:h+a,x2:x+_,y2:h+o-a},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:x+a,y1:h+f,x2:x+c-a,y2:h+f}]}getTitle(t){if(t)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let t=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),a=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),p=this.config.showTitle&&!!this.data.titleText,f=this.data.points.length>0?"bottom":this.config.xAxisPosition,o=this.calculateSpace(f,t,a,p);return{points:this.getQuadrantPoints(o),quadrants:this.getQuadrants(o),axisLabels:this.getAxisLabels(f,t,a,o),borderLines:this.getBorders(o),title:this.getTitle(p)}}},qt=class extends Error{static{s(this,"InvalidStyleError")}constructor(t,a,p){super(`value for ${t} ${a} is invalid, please use a valid ${p}`),this.name="InvalidStyleError"}};function Vt(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}s(Vt,"validateHexCode");function xe(t){return!/^\d+$/.test(t)}s(xe,"validateNumber");function fe(t){return!/^\d+px$/.test(t)}s(fe,"validateSizeInPixels");function O(t){return re(t.trim(),Tt())}s(O,"textSanitizer");var V=new Ve;function ge(t){V.setData({quadrant1Text:O(t.text)})}s(ge,"setQuadrant1Text");function pe(t){V.setData({quadrant2Text:O(t.text)})}s(pe,"setQuadrant2Text");function ye(t){V.setData({quadrant3Text:O(t.text)})}s(ye,"setQuadrant3Text");function be(t){V.setData({quadrant4Text:O(t.text)})}s(be,"setQuadrant4Text");function Te(t){V.setData({xAxisLeftText:O(t.text)})}s(Te,"setXAxisLeftText");function me(t){V.setData({xAxisRightText:O(t.text)})}s(me,"setXAxisRightText");function qe(t){V.setData({yAxisTopText:O(t.text)})}s(qe,"setYAxisTopText");function ke(t){V.setData({yAxisBottomText:O(t.text)})}s(ke,"setYAxisBottomText");function kt(t){let a={};for(let p of t){let[f,o]=p.trim().split(/\s*:\s*/);if(f==="radius"){if(xe(o))throw new qt(f,o,"number");a.radius=parseInt(o)}else if(f==="color"){if(Vt(o))throw new qt(f,o,"hex code");a.color=o}else if(f==="stroke-color"){if(Vt(o))throw new qt(f,o,"hex code");a.strokeColor=o}else if(f==="stroke-width"){if(fe(o))throw new qt(f,o,"number of pixels (eg. 10px)");a.strokeWidth=o}else throw new Error(`style named ${f} is not supported.`)}return a}s(kt,"parseStyles");function Se(t,a,p,f,o){let x=kt(o);V.addPoints([{x:p,y:f,text:O(t.text),className:a,...x}])}s(Se,"addPoint");function _e(t,a){V.addClass(t,kt(a))}s(_e,"addClass");function Ae(t){V.setConfig({chartWidth:t})}s(Ae,"setWidth");function Fe(t){V.setConfig({chartHeight:t})}s(Fe,"setHeight");function Pe(){let t=Tt(),{themeVariables:a,quadrantChart:p}=t;return p&&V.setConfig(p),V.setThemeConfig({quadrant1Fill:a.quadrant1Fill,quadrant2Fill:a.quadrant2Fill,quadrant3Fill:a.quadrant3Fill,quadrant4Fill:a.quadrant4Fill,quadrant1TextFill:a.quadrant1TextFill,quadrant2TextFill:a.quadrant2TextFill,quadrant3TextFill:a.quadrant3TextFill,quadrant4TextFill:a.quadrant4TextFill,quadrantPointFill:a.quadrantPointFill,quadrantPointTextFill:a.quadrantPointTextFill,quadrantXAxisTextFill:a.quadrantXAxisTextFill,quadrantYAxisTextFill:a.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:a.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:a.quadrantInternalBorderStrokeFill,quadrantTitleFill:a.quadrantTitleFill}),V.setData({titleText:Et()}),V.build()}s(Pe,"getQuadrantData");var Ie=s(function(){V.clear(),oe()},"clear"),we={setWidth:Ae,setHeight:Fe,setQuadrant1Text:ge,setQuadrant2Text:pe,setQuadrant3Text:ye,setQuadrant4Text:be,setXAxisLeftText:Te,setXAxisRightText:me,setYAxisTopText:qe,setYAxisBottomText:ke,parseStyles:kt,addPoint:Se,addClass:_e,getQuadrantData:Pe,clear:Ie,setAccTitle:le,getAccTitle:he,setDiagramTitle:ue,getDiagramTitle:Et,getAccDescription:de,setAccDescription:ce},Be=s((t,a,p,f)=>{function o(i){return i==="top"?"hanging":"middle"}s(o,"getDominantBaseLine");function x(i){return i==="left"?"start":"middle"}s(x,"getTextAnchor");function _(i){return`translate(${i.x}, ${i.y}) rotate(${i.rotation||0})`}s(_,"getTransformation");let h=Tt();ct.debug(`Rendering quadrant chart
|
|
7
|
+
`+t);let c=h.securityLevel,k;c==="sandbox"&&(k=mt("#i"+a));let q=(c==="sandbox"?mt(k.nodes()[0].contentDocument.body):mt("body")).select(`[id="${a}"]`),y=q.append("g").attr("class","main"),b=h.quadrantChart?.chartWidth??500,T=h.quadrantChart?.chartHeight??500;se(q,T,b,h.quadrantChart?.useMaxWidth??!0),q.attr("viewBox","0 0 "+b+" "+T),f.db.setHeight(T),f.db.setWidth(b);let g=f.db.getQuadrantData(),A=y.append("g").attr("class","quadrants"),dt=y.append("g").attr("class","border"),ut=y.append("g").attr("class","data-points"),xt=y.append("g").attr("class","labels"),ft=y.append("g").attr("class","title");g.title&&ft.append("text").attr("x",0).attr("y",0).attr("fill",g.title.fill).attr("font-size",g.title.fontSize).attr("dominant-baseline",o(g.title.horizontalPos)).attr("text-anchor",x(g.title.verticalPos)).attr("transform",_(g.title)).text(g.title.text),g.borderLines&&dt.selectAll("line").data(g.borderLines).enter().append("line").attr("x1",i=>i.x1).attr("y1",i=>i.y1).attr("x2",i=>i.x2).attr("y2",i=>i.y2).style("stroke",i=>i.strokeFill).style("stroke-width",i=>i.strokeWidth);let ot=A.selectAll("g.quadrant").data(g.quadrants).enter().append("g").attr("class","quadrant");ot.append("rect").attr("x",i=>i.x).attr("y",i=>i.y).attr("width",i=>i.width).attr("height",i=>i.height).attr("fill",i=>i.fill),ot.append("text").attr("x",0).attr("y",0).attr("fill",i=>i.text.fill).attr("font-size",i=>i.text.fontSize).attr("dominant-baseline",i=>o(i.text.horizontalPos)).attr("text-anchor",i=>x(i.text.verticalPos)).attr("transform",i=>_(i.text)).text(i=>i.text.text),xt.selectAll("g.label").data(g.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(i=>i.text).attr("fill",i=>i.fill).attr("font-size",i=>i.fontSize).attr("dominant-baseline",i=>o(i.horizontalPos)).attr("text-anchor",i=>x(i.verticalPos)).attr("transform",i=>_(i));let lt=ut.selectAll("g.data-point").data(g.points).enter().append("g").attr("class","data-point");lt.append("circle").attr("cx",i=>i.x).attr("cy",i=>i.y).attr("r",i=>i.radius).attr("fill",i=>i.fill).attr("stroke",i=>i.strokeColor).attr("stroke-width",i=>i.strokeWidth),lt.append("text").attr("x",0).attr("y",0).text(i=>i.text.text).attr("fill",i=>i.text.fill).attr("font-size",i=>i.text.fontSize).attr("dominant-baseline",i=>o(i.text.horizontalPos)).attr("text-anchor",i=>x(i.text.verticalPos)).attr("transform",i=>_(i.text))},"draw"),Re={draw:Be},Xe={parser:ze,db:we,renderer:Re,styles:s(()=>"","styles")};export{Xe as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r,b as e}from"./chunk-XQHNSJKC.js";import"./chunk-WBPRABWA.js";import"./chunk-PHKIAKHS.js";export{r as RadarModule,e as createRadarServices};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r,b as o}from"./chunk-EPS7YYLR.js";import"./chunk-WBPRABWA.js";import"./chunk-PHKIAKHS.js";export{r as RailroadModule,o as createRailroadServices};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r,b as o}from"./chunk-56PLA4MI.js";import"./chunk-WBPRABWA.js";import"./chunk-PHKIAKHS.js";export{r as RailroadAbnfModule,o as createRailroadAbnfServices};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r,b as o}from"./chunk-INV6BDXO.js";import"./chunk-WBPRABWA.js";import"./chunk-PHKIAKHS.js";export{r as RailroadEbnfModule,o as createRailroadEbnfServices};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as r}from"./chunk-4UKVVSLZ.js";import"./chunk-WBPRABWA.js";import"./chunk-PHKIAKHS.js";export{e as RailroadPegModule,r as createRailroadPegServices};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b as p,c as u}from"./chunk-XISCFCXG.js";import{a as l}from"./chunk-OB665XPY.js";import"./chunk-LZTAJOGZ.js";import{b as m}from"./chunk-UAQETDSH.js";import"./chunk-ABLFMIK7.js";import"./chunk-7W3KTJUJ.js";import"./chunk-AVJJGJEF.js";import"./chunk-AVITUR4K.js";import"./chunk-UORYZEAD.js";import"./chunk-2TCGAX73.js";import"./chunk-XQHNSJKC.js";import{b as s}from"./chunk-EPS7YYLR.js";import"./chunk-INV6BDXO.js";import"./chunk-56PLA4MI.js";import"./chunk-4UKVVSLZ.js";import"./chunk-CMFTFM5L.js";import"./chunk-7FXP6RHI.js";import"./chunk-FDHLSHAZ.js";import"./chunk-GDF64WIG.js";import"./chunk-WBPRABWA.js";import"./chunk-M3XBBO6R.js";import{b as i}from"./chunk-W4ELJFHG.js";import{a as n}from"./chunk-UAGOPMXU.js";import"./chunk-PHKIAKHS.js";var d=s().Railroad.parser.LangiumParser,t=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{let r=e.elements.map(t);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{let r=e.alternatives.map(t);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:t(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:t(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:t(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:t(e.definition)}),"transformRule"),f=n(e=>{l(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(c(r)))},"populateDb"),g={parse:n(e=>{a.clear(),i.debug("[Railroad Parser] Starting Langium parse");let r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new m(r);let o=r.value;i.debug("[Railroad Parser] Parsed rules:",o.rules.length),f(o),i.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:a}},y={parser:g,db:a,renderer:u,styles:p},w=y;export{w as default,y as diagram};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import{a as at}from"./chunk-BYKZQKZN.js";import{b as rt,c as nt}from"./chunk-GBOXGTKU.js";import{a as lt}from"./chunk-7DQROAU7.js";import"./chunk-XYDA52BE.js";import"./chunk-IR3NHMOO.js";import"./chunk-OFD4YTIR.js";import"./chunk-ZRBDUQXP.js";import"./chunk-NBZPV65B.js";import"./chunk-NCTJNXDF.js";import"./chunk-ZGUCZDEK.js";import"./chunk-ENUKY65A.js";import"./chunk-HHYS5L3R.js";import{b as et,c as tt,d as st,e as it}from"./chunk-KLF2A562.js";import{q as Ze}from"./chunk-GTJDAHEV.js";import"./chunk-XLJVPE6C.js";import{$ as ye,C as Ce,U as Ke,V as We,W as je,X as Ge,Y as ze,Z as Xe,_ as Je}from"./chunk-M3XBBO6R.js";import{b as ge}from"./chunk-W4ELJFHG.js";import{a as u,b as He}from"./chunk-UAGOPMXU.js";import"./chunk-PHKIAKHS.js";var Ae=(function(){var e=u(function($,r,n,l){for(n=n||{},l=$.length;l--;n[$[l]]=r);return n},"o"),m=[1,3],h=[1,4],c=[1,5],i=[1,6],o=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],k=[1,22],S=[2,7],d=[1,26],g=[1,27],y=[1,28],q=[1,29],C=[1,33],A=[1,34],V=[1,35],v=[1,36],L=[1,37],x=[1,38],w=[1,24],D=[1,31],O=[1,32],M=[1,30],E=[1,39],b=[1,40],p=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ve=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],de=[27,29],ve=[1,70],Le=[1,71],xe=[1,72],we=[1,73],De=[1,74],Oe=[1,75],Me=[1,76],Z=[1,83],U=[1,80],ee=[1,84],te=[1,85],se=[1,86],ie=[1,87],re=[1,88],ne=[1,89],ae=[1,90],le=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Fe=[1,101],$e=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],ce=[1,116],he=[1,117],ue=[1,114],me=[1,115],_e={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:u(function(r,n,l,s,f,t,fe){var a=t.length-1;switch(f){case 4:this.$=t[a].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[a].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[a-3],t[a-4]);break;case 22:s.addRequirement(t[a-5],t[a-6]),s.setClass([t[a-5]],t[a-3]);break;case 23:s.setNewReqId(t[a-2]);break;case 24:s.setNewReqText(t[a-2]);break;case 25:s.setNewReqRisk(t[a-2]);break;case 26:s.setNewReqVerifyMethod(t[a-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[a-3]);break;case 43:s.addElement(t[a-5]),s.setClass([t[a-5]],t[a-3]);break;case 44:s.setNewElementType(t[a-2]);break;case 45:s.setNewElementDocRef(t[a-2]);break;case 48:s.addRelationship(t[a-2],t[a],t[a-4]);break;case 49:s.addRelationship(t[a-2],t[a-4],t[a]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[a-2],s.defineClass(t[a-1],t[a]);break;case 58:s.setClass(t[a-1],t[a]);break;case 59:s.setClass([t[a-2]],t[a]);break;case 60:case 62:this.$=[t[a]];break;case 61:case 63:this.$=t[a-2].concat([t[a]]);break;case 64:this.$=t[a-2],s.setCssStyle(t[a-1],t[a]);break;case 65:this.$=[t[a]];break;case 66:t[a-2].push(t[a]),this.$=t[a-2];break;case 68:this.$=t[a-1]+t[a];break}},"anonymous"),table:[{3:1,4:2,6:m,9:h,11:c,13:i},{1:[3]},{3:8,4:2,5:[1,7],6:m,9:h,11:c,13:i},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(o,[2,6]),{3:12,4:2,6:m,9:h,11:c,13:i},{1:[2,2]},{4:17,5:k,7:13,8:S,9:h,11:c,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:g,23:y,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:E,90:b},e(o,[2,4]),e(o,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:k,7:42,8:S,9:h,11:c,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:g,23:y,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:E,90:b},{4:17,5:k,7:43,8:S,9:h,11:c,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:g,23:y,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:E,90:b},{4:17,5:k,7:44,8:S,9:h,11:c,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:g,23:y,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:E,90:b},{4:17,5:k,7:45,8:S,9:h,11:c,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:g,23:y,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:E,90:b},{4:17,5:k,7:46,8:S,9:h,11:c,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:g,23:y,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:E,90:b},{4:17,5:k,7:47,8:S,9:h,11:c,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:g,23:y,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:E,90:b},{4:17,5:k,7:48,8:S,9:h,11:c,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:g,23:y,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:E,90:b},{4:17,5:k,7:49,8:S,9:h,11:c,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:g,23:y,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:E,90:b},{4:17,5:k,7:50,8:S,9:h,11:c,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:g,23:y,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:E,90:b},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(p,[2,17]),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),{30:60,33:62,75:P,89:E,90:b},{30:63,33:62,75:P,89:E,90:b},{30:64,33:62,75:P,89:E,90:b},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ve,[2,81]),e(Ve,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(de,[2,79]),e(de,[2,80]),{27:[1,67],29:[1,68]},e(de,[2,85]),e(de,[2,86]),{62:69,65:ve,66:Le,67:xe,68:we,69:De,70:Oe,71:Me},{62:77,65:ve,66:Le,67:xe,68:we,69:De,70:Oe,71:Me},{30:78,33:62,75:P,89:E,90:b},{73:79,75:Z,76:U,78:81,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:Z,76:U,78:81,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:oe},{30:94,33:62,75:P,76:U,89:E,90:b},{5:[1,95]},{30:96,33:62,75:P,89:E,90:b},{5:[1,97]},{30:98,33:62,75:P,89:E,90:b},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(p,[2,59],{76:U}),e(p,[2,64],{76:Fe}),{33:103,75:[1,102],89:E,90:b},e($e,[2,65],{79:104,75:Z,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:oe}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(p,[2,57],{76:Fe}),e(p,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:ce,40:he,56:113,57:ue,59:me},{27:[1,118],76:U},{33:119,89:E,90:b},{33:120,89:E,90:b},{75:Z,78:121,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(T,[2,68]),e(p,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(p,[2,28]),{5:[1,127]},e(p,[2,42]),{32:[1,128]},{32:[1,129]},{5:ce,40:he,56:130,57:ue,59:me},e(p,[2,47]),{5:[1,131]},e(p,[2,48]),e(p,[2,49]),e($e,[2,66],{79:104,75:Z,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:oe}),{33:132,89:E,90:b},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(p,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(p,[2,46]),{5:ce,40:he,56:152,57:ue,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(p,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(p,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:ce,40:he,56:163,57:ue,59:me},{5:ce,40:he,56:164,57:ue,59:me},e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,44]),e(p,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:u(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:u(function(r){var n=this,l=[0],s=[],f=[null],t=[],fe=this.table,a="",be=0,Pe=0,Ue=0,ht=2,Ye=1,ut=t.slice.call(arguments,1),R=Object.create(this.lexer),G={yy:{}};for(var Se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Se)&&(G.yy[Se]=this.yy[Se]);R.setInput(r,G.yy),G.yy.lexer=R,G.yy.parser=this,typeof R.yylloc>"u"&&(R.yylloc={});var Ie=R.yylloc;t.push(Ie);var mt=R.options&&R.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft(I){l.length=l.length-2*I,f.length=f.length-I,t.length=t.length-I}u(ft,"popStack");function Be(){var I;return I=s.pop()||R.lex()||Ye,typeof I!="number"&&(I instanceof Array&&(s=I,I=s.pop()),I=n.symbols_[I]||I),I}u(Be,"lex");for(var _,Te,z,N,gt,Ne,J={},Re,F,Qe,ke;;){if(z=l[l.length-1],this.defaultActions[z]?N=this.defaultActions[z]:((_===null||typeof _>"u")&&(_=Be()),N=fe[z]&&fe[z][_]),typeof N>"u"||!N.length||!N[0]){var qe="";ke=[];for(Re in fe[z])this.terminals_[Re]&&Re>ht&&ke.push("'"+this.terminals_[Re]+"'");R.showPosition?qe="Parse error on line "+(be+1)+`:
|
|
2
|
+
`+R.showPosition()+`
|
|
3
|
+
Expecting `+ke.join(", ")+", got '"+(this.terminals_[_]||_)+"'":qe="Parse error on line "+(be+1)+": Unexpected "+(_==Ye?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(qe,{text:R.match,token:this.terminals_[_]||_,line:R.yylineno,loc:Ie,expected:ke})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+_);switch(N[0]){case 1:l.push(_),f.push(R.yytext),t.push(R.yylloc),l.push(N[1]),_=null,Te?(_=Te,Te=null):(Pe=R.yyleng,a=R.yytext,be=R.yylineno,Ie=R.yylloc,Ue>0&&Ue--);break;case 2:if(F=this.productions_[N[1]][1],J.$=f[f.length-F],J._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},mt&&(J._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),Ne=this.performAction.apply(J,[a,Pe,be,G.yy,N[1],f,t].concat(ut)),typeof Ne<"u")return Ne;F&&(l=l.slice(0,-1*F*2),f=f.slice(0,-1*F),t=t.slice(0,-1*F)),l.push(this.productions_[N[1]][0]),f.push(J.$),t.push(J._$),Qe=fe[l[l.length-2]][l[l.length-1]],l.push(Qe);break;case 3:return!0}}return!0},"parse")},ct=(function(){var $={EOF:1,parseError:u(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:u(function(r,n){return this.yy=n||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:u(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===s.length?this.yylloc.first_column:0)+s[s.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(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).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(r){this.unput(this.match.slice(r))},"less"),pastInput:u(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
5
|
+
`+n+"^"},"showPosition"),test_match:u(function(r,n){var l,s,f;if(this.options.backtrack_lexer&&(f={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&&(f.yylloc.range=this.yylloc.range.slice(0))),s=r[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],l=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var t in f)this[t]=f[t];return!1}return!1},"test_match"),next:u(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,n,l,s;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),t=0;t<f.length;t++)if(l=this._input.match(this.rules[f[t]]),l&&(!n||l[0].length>n[0].length)){if(n=l,s=t,this.options.backtrack_lexer){if(r=this.test_match(l,f[t]),r!==!1)return r;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(r=this.test_match(n,f[s]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:u(function(){var n=this.next();return n||this.lex()},"lex"),begin:u(function(n){this.conditionStack.push(n)},"begin"),popState:u(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:u(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:u(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:u(function(n){this.begin(n)},"pushState"),stateStackSize:u(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:u(function(n,l,s,f){var t=f;switch(s){case 0:return"title";case 1:return this.begin("acc_title"),9;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),11;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;break;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;break;case 60:return this.begin("style"),74;break;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return l.yytext=l.yytext.trim(),89;break;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};return $})();_e.lexer=ct;function Ee(){this.yy={}}return u(Ee,"Parser"),Ee.prototype=_e,_e.Parser=Ee,new Ee})();Ae.parser=Ae;var dt=Ae,pt=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=We,this.getAccTitle=je,this.setAccDescription=Ge,this.getAccDescription=ze,this.setDiagramTitle=Xe,this.getDiagramTitle=Je,this.getConfig=u(()=>ye().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{u(this,"RequirementDB")}getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(e,m){return this.requirements.has(e)||this.requirements.set(e,{name:e,type:m,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=e)}setNewReqText(e){this.latestRequirement!==void 0&&(this.latestRequirement.text=e)}setNewReqRisk(e){this.latestRequirement!==void 0&&(this.latestRequirement.risk=e)}setNewReqVerifyMethod(e){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=e)}addElement(e){return this.elements.has(e)||(this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),ge.info("Added new element: ",e)),this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){this.latestElement!==void 0&&(this.latestElement.type=e)}setNewElementDocRef(e){this.latestElement!==void 0&&(this.latestElement.docRef=e)}addRelationship(e,m,h){this.relations.push({type:e,src:m,dst:h})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,Ke()}setCssStyle(e,m){for(let h of e){let c=this.requirements.get(h)??this.elements.get(h);if(!m||!c)return;for(let i of m)i.includes(",")?c.cssStyles.push(...i.split(",")):c.cssStyles.push(i)}}setClass(e,m){for(let h of e){let c=this.requirements.get(h)??this.elements.get(h);if(c)for(let i of m){c.classes.push(i);let o=this.classes.get(i)?.styles;o&&c.cssStyles.push(...o)}}}defineClass(e,m){for(let h of e){let c=this.classes.get(h);c===void 0&&(c={id:h,styles:[],textStyles:[]},this.classes.set(h,c)),m&&m.forEach(function(i){if(/color/.exec(i)){let o=i.replace("fill","bgFill");c.textStyles.push(o)}c.styles.push(i)}),this.requirements.forEach(i=>{i.classes.includes(h)&&i.cssStyles.push(...m.flatMap(o=>o.split(",")))}),this.elements.forEach(i=>{i.classes.includes(h)&&i.cssStyles.push(...m.flatMap(o=>o.split(",")))})}}getClasses(){return this.classes}getData(){let e=ye(),m=[],h=[];for(let i of this.requirements.values()){let o=i;o.id=i.name,o.cssStyles=i.cssStyles,o.cssClasses=i.classes.join(" "),o.shape="requirementBox",o.look=e.look,o.colorIndex=m.length,m.push(o)}for(let i of this.elements.values()){let o=i;o.shape="requirementBox",o.look=e.look,o.id=i.name,o.cssStyles=i.cssStyles,o.cssClasses=i.classes.join(" "),o.colorIndex=m.length,m.push(o)}let c=0;for(let i of this.relations){let o=i.type===this.Relationships.CONTAINS,k={id:`${i.src}-${i.dst}-${c++}`,start:this.requirements.get(i.src)?.name??this.elements.get(i.src)?.name,end:this.requirements.get(i.dst)?.name??this.elements.get(i.dst)?.name,label:`<<${i.type}>>`,classes:"relationshipLine",style:["fill:none",o?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:o?"normal":"dashed",arrowTypeStart:o?"requirement_contains":"",arrowTypeEnd:o?"":"requirement_arrow",look:e.look,labelType:"markdown"};h.push(k)}return{nodes:m,edges:h,other:{},config:e,direction:this.getDirection()}}},Et=u(()=>{let e=Ce(),{theme:m,themeVariables:h}=e,{bkgColorArray:c,borderColorArray:i}=h;if(!tt(m,i))return"";let o=st(e.look),k="",S=et(c);for(let d=0;d<it(i);d++){let g=i[d],y=S?`fill: ${c[d%c.length]};`:"";k+=`
|
|
7
|
+
|
|
8
|
+
[data-look="${o}"][data-color-id="color-${d}"].node path {
|
|
9
|
+
stroke: ${g};
|
|
10
|
+
${y}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[data-look="${o}"][data-color-id="color-${d}"].node rect {
|
|
14
|
+
stroke: ${g};
|
|
15
|
+
${y}
|
|
16
|
+
}
|
|
17
|
+
`}return k},"genColor"),bt=u(e=>{let m=Ce(),{look:h,themeVariables:c}=m,{requirementEdgeLabelBackground:i}=c;return`
|
|
18
|
+
${Et()}
|
|
19
|
+
marker {
|
|
20
|
+
fill: ${e.relationColor};
|
|
21
|
+
stroke: ${e.relationColor};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
marker.cross {
|
|
25
|
+
stroke: ${e.lineColor};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
svg {
|
|
29
|
+
font-family: ${e.fontFamily};
|
|
30
|
+
font-size: ${e.fontSize};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.reqBox {
|
|
34
|
+
fill: ${e.requirementBackground};
|
|
35
|
+
fill-opacity: 1.0;
|
|
36
|
+
stroke: ${e.requirementBorderColor};
|
|
37
|
+
stroke-width: ${e.requirementBorderSize};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.reqTitle, .reqLabel{
|
|
41
|
+
fill: ${e.requirementTextColor};
|
|
42
|
+
}
|
|
43
|
+
.reqLabelBox {
|
|
44
|
+
fill: ${e.relationLabelBackground};
|
|
45
|
+
fill-opacity: 1.0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.req-title-line {
|
|
49
|
+
stroke: ${e.requirementBorderColor};
|
|
50
|
+
stroke-width: ${e.requirementBorderSize};
|
|
51
|
+
}
|
|
52
|
+
.relationshipLine {
|
|
53
|
+
stroke: ${e.relationColor};
|
|
54
|
+
stroke-width: ${h==="neo"?e.strokeWidth:"1px"};
|
|
55
|
+
}
|
|
56
|
+
.relationshipLabel {
|
|
57
|
+
fill: ${e.relationLabelColor};
|
|
58
|
+
}
|
|
59
|
+
.edgeLabel {
|
|
60
|
+
background-color: ${e.edgeLabelBackground};
|
|
61
|
+
}
|
|
62
|
+
.edgeLabel .label rect {
|
|
63
|
+
fill: ${e.edgeLabelBackground};
|
|
64
|
+
}
|
|
65
|
+
.edgeLabel .label text {
|
|
66
|
+
fill: ${e.relationLabelColor};
|
|
67
|
+
}
|
|
68
|
+
.divider {
|
|
69
|
+
stroke: ${e.nodeBorder};
|
|
70
|
+
stroke-width: 1;
|
|
71
|
+
}
|
|
72
|
+
.label {
|
|
73
|
+
font-family: ${e.fontFamily};
|
|
74
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
75
|
+
}
|
|
76
|
+
.label text,span {
|
|
77
|
+
fill: ${e.nodeTextColor||e.textColor};
|
|
78
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
79
|
+
}
|
|
80
|
+
.labelBkg {
|
|
81
|
+
background-color: ${i??e.edgeLabelBackground};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
`},"getStyles"),Rt=bt,ot={};He(ot,{draw:()=>kt});var kt=u(async function(e,m,h,c){ge.info("REF0:"),ge.info("Drawing requirement diagram (unified)",m);let{securityLevel:i,state:o,layout:k,look:S}=ye(),d=c.db.getData(),g=at(m,i);d.type=c.type,d.layoutAlgorithm=nt(k),d.nodeSpacing=o?.nodeSpacing??50,d.rankSpacing=o?.rankSpacing??50,d.markers=S==="neo"?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],d.diagramId=m,await rt(d,g);let y=8;Ze.insertTitle(g,"requirementDiagramTitleText",o?.titleTopMargin??25,c.db.getDiagramTitle()),lt(g,y,"requirementDiagram",o?.useMaxWidth??!0)},"draw"),Mt={parser:dt,get db(){return new pt},renderer:ot,styles:Rt};export{Mt as diagram};
|