@dooc-dev/dooc 0.0.5 → 0.0.6
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/dist/cli.js +128 -67
- package/dist/code-worker.global.js +152 -0
- package/dist/code.global.js +101 -101
- package/dist/compiler/bundle-urls.js +2 -0
- package/dist/compiler/check.js +2 -0
- package/dist/compiler/compile.js +13 -3
- package/dist/compiler/dxf.d.ts +1 -0
- package/dist/compiler/dxf.js +81 -0
- package/dist/compiler/export.js +22 -15
- package/dist/compiler/figures.js +39 -10
- package/dist/compiler/files.js +2 -0
- package/dist/compiler/ignored-files.d.ts +2 -0
- package/dist/compiler/ignored-files.js +30 -0
- package/dist/compiler/ops.js +1 -1
- package/dist/compiler/subformat-schema.d.ts +14 -0
- package/dist/compiler/subformat-schema.js +92 -0
- package/dist/compiler/subformats.d.ts +5 -7
- package/dist/compiler/subformats.js +115 -75
- package/dist/core/code-file.js +7 -5
- package/dist/core/code-grammars.d.ts +5 -0
- package/dist/core/code-grammars.js +34 -0
- package/dist/core/content-metadata.d.ts +2 -1
- package/dist/core/content-metadata.js +7 -2
- package/dist/core/content-types.d.ts +1 -1
- package/dist/core/escape-html.d.ts +1 -0
- package/dist/core/escape-html.js +1 -0
- package/dist/core/figure-frame.js +1 -1
- package/dist/core/file-embed.js +7 -3
- package/dist/core/html.d.ts +4 -1
- package/dist/core/html.js +8 -7
- package/dist/core/language.js +5 -2
- package/dist/core/markdown.js +3 -1
- package/dist/core/previewers.d.ts +8 -0
- package/dist/core/previewers.js +2 -0
- package/dist/core/schema-fields.d.ts +13 -0
- package/dist/core/schema-fields.js +175 -0
- package/dist/core/schema-graph-mount.js +26 -3
- package/dist/core/schema-refs.d.ts +8 -0
- package/dist/core/schema-refs.js +82 -0
- package/dist/core/toc-ui.js +1 -1
- package/dist/edit.global.js +266 -285
- package/dist/flow.global.js +3 -3
- package/dist/graph/abnfDiagram-S7VZAUFO-ASBULSKE.js +1 -0
- package/dist/graph/architecture-WOLXFQ4H-V57EDXXY.js +1 -0
- package/dist/graph/architectureDiagram-YGSQEFNW-GIMP347N.js +36 -0
- package/dist/graph/blockDiagram-APKKGZFW-RDL2T4JW.js +140 -0
- package/dist/graph/bpmnIcons-APHXDYXF-TWOSQNUQ.js +1 -0
- package/dist/graph/c4Diagram-KJ2TOQU5-75LIUC4F.js +38 -0
- package/dist/graph/chunk-26TUJSYJ.js +1 -0
- package/dist/graph/chunk-3LU66YMI.js +1 -0
- package/dist/graph/chunk-3RNHDNP5.js +1 -0
- package/dist/graph/chunk-3Y2PDVDE.js +1 -0
- package/dist/graph/chunk-3YJHMOOA.js +3 -0
- package/dist/graph/chunk-4KILFWYV.js +339 -0
- package/dist/graph/chunk-4QDE4SUK.js +1 -0
- package/dist/graph/chunk-5OO6DATX.js +1 -0
- package/dist/graph/chunk-5UUEAHTN.js +1 -0
- package/dist/graph/chunk-6T55RVVR.js +1 -0
- package/dist/graph/chunk-ARAJTKOH.js +2 -0
- package/dist/graph/chunk-BBD5CEDC.js +72 -0
- package/dist/graph/chunk-BVXT562I.js +1 -0
- package/dist/graph/chunk-BZAMCJ6B.js +32 -0
- package/dist/graph/chunk-C6J4A356.js +15 -0
- package/dist/graph/chunk-EG5UVNOC.js +213 -0
- package/dist/graph/chunk-GF4TOPUK.js +1 -0
- package/dist/graph/chunk-GYT4IYBZ.js +1 -0
- package/dist/graph/chunk-HJG2HUYJ.js +88 -0
- package/dist/graph/chunk-HOPPTA6H.js +62 -0
- package/dist/graph/chunk-I3DMZIHV.js +1 -0
- package/dist/graph/chunk-IC23EEF6.js +1 -0
- package/dist/graph/chunk-ISO77HML.js +1 -0
- package/dist/graph/chunk-JD7ZBJD2.js +1 -0
- package/dist/graph/chunk-JRSH5GNS.js +1 -0
- package/dist/graph/chunk-JSHWCPFJ.js +1 -0
- package/dist/graph/chunk-K2KLZU7M.js +10 -0
- package/dist/graph/chunk-K4I76XBX.js +14 -0
- package/dist/graph/chunk-KT4VPQD5.js +135 -0
- package/dist/graph/chunk-KU6GTEMS.js +1 -0
- package/dist/graph/chunk-LT6LXKCR.js +136 -0
- package/dist/graph/chunk-MPR575IN.js +1 -0
- package/dist/graph/chunk-N3OHKGRZ.js +1 -0
- package/dist/graph/chunk-O656ZI37.js +1 -0
- package/dist/graph/chunk-OFZLK5G4.js +1 -0
- package/dist/graph/chunk-PDH25ALM.js +2 -0
- package/dist/graph/chunk-PW2RGZ3O.js +1 -0
- package/dist/graph/chunk-QCJUF4YA.js +1 -0
- package/dist/graph/chunk-QEEA3KYY.js +2 -0
- package/dist/graph/chunk-QYAXYFNI.js +1 -0
- package/dist/graph/chunk-QYTM6GY3.js +1 -0
- package/dist/graph/chunk-R63JUMUK.js +1 -0
- package/dist/graph/chunk-SCEY3ZPT.js +1 -0
- package/dist/graph/chunk-VM2H7G2R.js +1 -0
- package/dist/graph/chunk-XQS73SBQ.js +1 -0
- package/dist/graph/chunk-YCRLJT2S.js +1 -0
- package/dist/graph/chunk-Z4FIZ7CR.js +1 -0
- package/dist/graph/chunk-ZMCB7VP2.js +1 -0
- package/dist/graph/chunk-ZSZXN4BT.js +2 -0
- package/dist/graph/classDiagram-v2-L25IHNXF-JL7LVDZH.js +217 -0
- package/dist/graph/cose-bilkent-JH36ORCC-PNM3EYPB.js +1 -0
- package/dist/graph/cynefin-EF2NZ3EQ-PSXP3DXL.js +1 -0
- package/dist/graph/cynefinDiagram-L36ESFBY-QVY54CXO.js +62 -0
- package/dist/graph/dagre-SPEB5RXH-HPGQXBZJ.js +4 -0
- package/dist/graph/diagram-3B7GL73J-DWH5WS2P.js +200 -0
- package/dist/graph/diagram-DNEMPZML-TEGH2U5I.js +24 -0
- package/dist/graph/diagram-L3MUGCDN-X4MREUWR.js +41 -0
- package/dist/graph/diagram-LA4NIPWU-NXT746HG.js +24 -0
- package/dist/graph/diagram-MHCOC4E2-JGHXSAGS.js +3 -0
- package/dist/graph/diagram-XPFHEONP-ZHZPBLT4.js +30 -0
- package/dist/graph/ebnfDiagram-UZSYDL2S-SMF6KJ43.js +1 -0
- package/dist/graph/elk-XV6XMXQE-AZ4HLCWI.js +27 -0
- package/dist/graph/erDiagram-EYBAPDEH-B3JNJ357.js +99 -0
- package/dist/graph/eventmodeling-K75KTNOO-WG6DDYMC.js +1 -0
- package/dist/graph/flowDiagram-MALGAFMO-2R7EYAQI.js +1 -0
- package/dist/graph/ganttDiagram-23REXITY-YXBYWFOJ.js +292 -0
- package/dist/graph/gitGraph-VSP46ZUC-VBFWJBBT.js +1 -0
- package/dist/graph/gitGraphDiagram-STJD7YCW-4FZDCFGV.js +106 -0
- package/dist/graph/info-OHQRW6UA-ALVDUVYV.js +1 -0
- package/dist/graph/infoDiagram-KBXO4MBG-7EHX2GQG.js +2 -0
- package/dist/graph/ishikawaDiagram-M35NCXHK-FRZD2PWQ.js +70 -0
- package/dist/graph/journeyDiagram-OPLOXDXO-7Z66JCPR.js +139 -0
- package/dist/graph/kanban-definition-BZKZHSQY-NN5AIKTE.js +89 -0
- package/dist/graph/katex-DXDNVO6V.js +257 -0
- package/dist/graph/mindmap-definition-I2QAS2VK-HDPCABN2.js +98 -0
- package/dist/graph/packet-JDAUHWVQ-5MQIBWAH.js +1 -0
- package/dist/graph/pegDiagram-FD4XPPHP-H2BFNCKT.js +1 -0
- package/dist/graph/pie-XZMESJXO-T5VRKHVT.js +1 -0
- package/dist/graph/pieDiagram-J4AKIIQI-O3NJSVD3.js +39 -0
- package/dist/graph/quadrantDiagram-XTYBLID2-TMTZJI3P.js +7 -0
- package/dist/graph/radar-ABXABTNO-C6FXIBYW.js +1 -0
- package/dist/graph/railroad-I3PHUGI6-ZSO5JXB3.js +1 -0
- package/dist/graph/railroad-abnf-LNEFI6M7-CI4GQRHB.js +1 -0
- package/dist/graph/railroad-ebnf-DWYD2UWJ-MUENNCGK.js +1 -0
- package/dist/graph/railroad-peg-JR7BVNR7-N3X5GGIX.js +1 -0
- package/dist/graph/railroadDiagram-MRQ6NCDL-JHWS23UO.js +1 -0
- package/dist/graph/requirementDiagram-Y7LWUY3S-7DVLPO4B.js +84 -0
- package/dist/graph/sankeyDiagram-WGJFYUXA-Z5L4R5TR.js +40 -0
- package/dist/graph/schema-graph-global.js +639 -0
- package/dist/graph/sequenceDiagram-5NDRBG5M-RCTU25NT.js +169 -0
- package/dist/graph/sizeCapture-INFHLROL-RROY32P5.js +1 -0
- package/dist/graph/stateDiagram-v2-FJ4FJNEA-BXUSPWDK.js +291 -0
- package/dist/graph/swimlanes-UMQ2AFYF-LDD74Q2S.js +1 -0
- package/dist/graph/swimlanesDiagram-OMPLPG4O-ZYULLJSU.js +8 -0
- package/dist/graph/timeline-definition-SEUHKTQE-ZQSMIVAS.js +120 -0
- package/dist/graph/treeView-D4JQ5SDB-42S7U73N.js +1 -0
- package/dist/graph/treemap-SAJKECNS-RUBYQ7XF.js +1 -0
- package/dist/graph/usecaseDiagram-AFA6YXN4-57RDRYXF.js +370 -0
- package/dist/graph/vennDiagram-NNMJR3RB-5C3LVAV6.js +34 -0
- package/dist/graph/wardley-7MLQ67FV-NV5HXTTC.js +1 -0
- package/dist/graph/wardleyDiagram-S7YFUSEH-6D5BKXHM.js +78 -0
- package/dist/graph/xychartDiagram-GGNKY7IX-6ET3ZM67.js +7 -0
- package/dist/mcp.js +5 -4
- package/dist/plugins.global.js +71 -104
- package/dist/subformats.global.js +6 -112
- package/dist/ui.global.js +75 -108
- package/dist/viewer/build.d.ts +2 -0
- package/dist/viewer/build.js +22 -8
- package/dist/viewer/code-file.js +7 -2
- package/dist/viewer/figure-preview.d.ts +4 -0
- package/dist/viewer/figure-preview.js +54 -0
- package/dist/viewer/hmr.js +4 -3
- package/dist/viewer/lazy-preview.d.ts +2 -0
- package/dist/viewer/lazy-preview.js +43 -0
- package/dist/viewer/locales/eng.json +26 -3
- package/dist/viewer/locales/jpn.json +26 -3
- package/dist/viewer/locales/zho.json +26 -3
- package/dist/viewer/plugin-blocks.js +1 -1
- package/dist/viewer/plugins.js +1 -1
- package/dist/viewer/resource-library.d.ts +1 -1
- package/dist/viewer/resource-library.js +5 -4
- package/dist/viewer/serve.d.ts +2 -1
- package/dist/viewer/serve.js +148 -41
- package/dist/viewer/textfile.d.ts +2 -0
- package/dist/viewer/textfile.js +20 -5
- package/package.json +5 -3
- package/dist/viewer/lazy-graph.d.ts +0 -2
- package/dist/viewer/lazy-graph.js +0 -30
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as t,c as a,d as o,e as i,g as u,l as d,x as s,y as l}from"./chunk-LT6LXKCR.js";var f=class extends l{static{e(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},m={parser:{TokenBuilder:e(()=>new f,"TokenBuilder"),ValueConverter:e(()=>new s,"ValueConverter")}};function v(c=i){let r=o(a(c),u),n=o(t({shared:r}),d,m);return r.ServiceRegistry.register(n),{shared:r,Info:n}}e(v,"createInfoServices");export{m as a,v as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./chunk-GYT4IYBZ.js";var s=class{constructor(i){this.init=i,this.records=this.init()}static{t(this,"ImperativeState")}reset(){this.records=this.init()}};export{s as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r,b as s,c as l,d as a,e as c,g as v,j as u,x as E,y as m}from"./chunk-LT6LXKCR.js";var V=class extends m{static{r(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},S=new Set(["cmd","command"]),y=new Set(["evt","event"]),d=new Set(["rmo","readmodel"]),h=new Set(["pcr","processor"]),M=new Set(["ui"]);function T(e){let t=e.validation.EventModelingValidator,o=e.validation.ValidationRegistry;if(o){let i={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};o.register(i,t)}}r(T,"registerValidationChecks");var k=class{static{r(this,"EventModelingValidator")}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(S.has(e.modelEntityType)?this.validateSources(e,new Set([...M,...h]),"command","ui or processor",t):y.has(e.modelEntityType)?this.validateSources(e,S,"event","command",t):d.has(e.modelEntityType)?this.validateSources(e,y,"read model","event",t):h.has(e.modelEntityType)?this.validateSources(e,d,"processor","read model",t):M.has(e.modelEntityType)&&this.validateSources(e,d,"ui","read model",t))}validateSources(e,t,o,i,g){for(let p of e.sourceFrames){let n=p.ref;n!==void 0&&!t.has(n.modelEntityType)&&g("error",`A ${o} can only receive input from a ${i}, not from '${n.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},C={parser:{TokenBuilder:r(()=>new V,"TokenBuilder"),ValueConverter:r(()=>new E,"ValueConverter")},validation:{EventModelingValidator:r(()=>new k,"EventModelingValidator")}};function w(e=c){let t=a(l(e),v),o=a(s({shared:t}),u,C);return t.ServiceRegistry.register(o),T(o),{shared:t,EventModel:o}}r(w,"createEventModelingServices");export{C as a,w as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as wt}from"./chunk-3RNHDNP5.js";var Rt=wt(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.BLANK_URL=k.relativeFirstCharacters=k.whitespaceEscapeCharsRegex=k.urlSchemeRegex=k.ctrlCharactersRegex=k.htmlCtrlEntityRegex=k.htmlEntitiesRegex=k.invalidProtocolRegex=void 0;k.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;k.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;k.htmlCtrlEntityRegex=/&(newline|tab);/gi;k.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;k.urlSchemeRegex=/^.+(:|:)/gim;k.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;k.relativeFirstCharacters=[".","/"];k.BLANK_URL="about:blank"});var nn=wt(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.sanitizeUrl=tn;var R=Rt();function Gt(t){return R.relativeFirstCharacters.indexOf(t[0])>-1}function Jt(t){var n=t.replace(R.ctrlCharactersRegex,"");return n.replace(R.htmlEntitiesRegex,function(i,e){return String.fromCharCode(e)})}function jt(t){return URL.canParse(t)}function St(t){try{return decodeURIComponent(t)}catch{return t}}function tn(t){if(!t)return R.BLANK_URL;var n,i=St(t.trim());do i=Jt(i).replace(R.htmlCtrlEntityRegex,"").replace(R.ctrlCharactersRegex,"").replace(R.whitespaceEscapeCharsRegex,"").trim(),i=St(i),n=i.match(R.ctrlCharactersRegex)||i.match(R.htmlEntitiesRegex)||i.match(R.htmlCtrlEntityRegex)||i.match(R.whitespaceEscapeCharsRegex);while(n&&n.length>0);var e=i;if(!e)return R.BLANK_URL;if(Gt(e))return e;var o=e.trimStart(),r=o.match(R.urlSchemeRegex);if(!r)return e;var a=r[0].toLowerCase().trim();if(R.invalidProtocolRegex.test(a))return R.BLANK_URL;var s=o.replace(/\\/g,"/");if(a==="mailto:"||a.includes("://"))return s;if(a==="http:"||a==="https:"){if(!jt(s))return R.BLANK_URL;var l=new URL(s);return l.protocol=l.protocol.toLowerCase(),l.hostname=l.hostname.toLowerCase(),l.toString()}return s}});var H=Math.PI,dt=2*H,F=1e-6,en=dt-F;function Ct(t){this._+=t[0];for(let n=1,i=t.length;n<i;++n)this._+=arguments[n]+t[n]}function sn(t){let n=Math.floor(t);if(!(n>=0))throw new Error(`invalid digits: ${t}`);if(n>15)return Ct;let i=10**n;return function(e){this._+=e[0];for(let o=1,r=e.length;o<r;++o)this._+=Math.round(arguments[o]*i)/i+e[o]}}function Et(t,n,i,e){return t===i&&n===e}function on(t){let n=Math.floor(t);if(!(n<=15))return Et;let i=10**n,e=function(o){return Math.round(o*i)};return function(o,r,a,s){return e(o)===e(a)&&e(r)===e(s)}}var V=class{constructor(n){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=n==null?Ct:sn(n),this._equal=n==null?Et:on(n)}moveTo(n,i){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+i}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(n,i){this._append`L${this._x1=+n},${this._y1=+i}`}quadraticCurveTo(n,i,e,o){this._append`Q${+n},${+i},${this._x1=+e},${this._y1=+o}`}bezierCurveTo(n,i,e,o,r,a){this._append`C${+n},${+i},${+e},${+o},${this._x1=+r},${this._y1=+a}`}arcTo(n,i,e,o,r){if(n=+n,i=+i,e=+e,o=+o,r=+r,r<0)throw new Error(`negative radius: ${r}`);let a=this._x1,s=this._y1,l=e-n,_=o-i,h=a-n,p=s-i,u=h*h+p*p;if(this._x1===null)this._append`M${this._x1=n},${this._y1=i}`;else if(u>F)if(!(Math.abs(p*l-_*h)>F)||!r)this._append`L${this._x1=n},${this._y1=i}`;else{let f=e-a,y=o-s,v=l*l+_*_,N=f*f+y*y,m=Math.sqrt(v),b=Math.sqrt(u),T=r*Math.tan((H-Math.acos((v+u-N)/(2*m*b)))/2),g=T/b,w=T/m;Math.abs(g-1)>F&&this._append`L${n+g*h},${i+g*p}`,this._append`A${r},${r},0,0,${+(p*f>h*y)},${this._x1=n+w*l},${this._y1=i+w*_}`}}arc(n,i,e,o,r,a){if(n=+n,i=+i,e=+e,a=!!a,e<0)throw new Error(`negative radius: ${e}`);let s=e*Math.cos(o),l=e*Math.sin(o),_=n+s,h=i+l,p=1^a,u=a?o-r:r-o;if(this._x1===null?this._append`M${_},${h}`:(Math.abs(this._x1-_)>F||Math.abs(this._y1-h)>F)&&this._append`L${_},${h}`,!!e){if(u<0&&(u=u%dt+dt),u>en)this._append`A${e},${e},0,1,${p},${n-s},${i-l}A${e},${e},0,1,${p},${this._x1=_},${this._y1=h}`;else if(u>F){let f=n+e*Math.cos(r),y=i+e*Math.sin(r);if(u>=H&&this._equal(_,h,f,y)){u/=2;let v=o+u;this._append`A${e},${e},0,${+(u>=H)},${p},${n+e*Math.cos(v)},${i+e*Math.sin(v)}`}this._append`A${e},${e},0,${+(u>=H)},${p},${this._x1=f},${this._y1=y}`}}}rect(n,i,e,o){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+i}h${e=+e}v${+o}h${-e}Z`}toString(){return this._}};function rn(){return new V}rn.prototype=V.prototype;function x(t){return function(){return t}}var Nt=Math.abs,S=Math.atan2,X=Math.cos,hn=Math.max,yt=Math.min,M=Math.sin,P=Math.sqrt,C=1e-12,I=Math.PI,nt=I/2,W=2*I;function an(t){return t>1?0:t<-1?I:Math.acos(t)}function Mt(t){return t>=1?nt:t<=-1?-nt:Math.asin(t)}function Lt(t){let n=3;return t.digits=function(i){if(!arguments.length)return n;if(i==null)n=null;else{let e=Math.floor(i);if(!(e>=0))throw new RangeError(`invalid digits: ${i}`);n=e}return t},()=>new V(n)}function ln(t){return t.innerRadius}function un(t){return t.outerRadius}function _n(t){return t.startAngle}function cn(t){return t.endAngle}function fn(t){return t&&t.padAngle}function pn(t,n,i,e,o,r,a,s){var l=i-t,_=e-n,h=a-o,p=s-r,u=p*l-h*_;if(!(u*u<C))return u=(h*(n-r)-p*(t-o))/u,[t+u*l,n+u*_]}function tt(t,n,i,e,o,r,a){var s=t-i,l=n-e,_=(a?r:-r)/P(s*s+l*l),h=_*l,p=-_*s,u=t+h,f=n+p,y=i+h,v=e+p,N=(u+y)/2,m=(f+v)/2,b=y-u,T=v-f,g=b*b+T*T,w=o-r,E=u*v-y*f,q=(T<0?-1:1)*P(hn(0,w*w*g-E*E)),B=(E*T-b*q)/g,U=(-E*b-T*q)/g,O=(E*T+b*q)/g,A=(-E*b+T*q)/g,$=B-N,c=U-m,d=O-N,Y=A-m;return $*$+c*c>d*d+Y*Y&&(B=O,U=A),{cx:B,cy:U,x01:-h,y01:-p,x11:B*(o/w-1),y11:U*(o/w-1)}}function Sn(){var t=ln,n=un,i=x(0),e=null,o=_n,r=cn,a=fn,s=null,l=Lt(_);function _(){var h,p,u=+t.apply(this,arguments),f=+n.apply(this,arguments),y=o.apply(this,arguments)-nt,v=r.apply(this,arguments)-nt,N=Nt(v-y),m=v>y;if(s||(s=h=l()),f<u&&(p=f,f=u,u=p),!(f>C))s.moveTo(0,0);else if(N>W-C)s.moveTo(f*X(y),f*M(y)),s.arc(0,0,f,y,v,!m),u>C&&(s.moveTo(u*X(v),u*M(v)),s.arc(0,0,u,v,y,m));else{var b=y,T=v,g=y,w=v,E=N,q=N,B=a.apply(this,arguments)/2,U=B>C&&(e?+e.apply(this,arguments):P(u*u+f*f)),O=yt(Nt(f-u)/2,+i.apply(this,arguments)),A=O,$=O,c,d;if(U>C){var Y=Mt(U/u*M(B)),Z=Mt(U/f*M(B));(E-=Y*2)>C?(Y*=m?1:-1,g+=Y,w-=Y):(E=0,g=w=(y+v)/2),(q-=Z*2)>C?(Z*=m?1:-1,b+=Z,T-=Z):(q=0,b=T=(y+v)/2)}var D=f*X(b),K=f*M(b),Q=u*X(w),G=u*M(w);if(O>C){var J=f*X(T),j=f*M(T),at=u*X(g),lt=u*M(g),L;if(N<I)if(L=pn(D,K,at,lt,J,j,Q,G)){var ut=D-L[0],_t=K-L[1],ct=J-L[0],ft=j-L[1],bt=1/M(an((ut*ct+_t*ft)/(P(ut*ut+_t*_t)*P(ct*ct+ft*ft)))/2),kt=P(L[0]*L[0]+L[1]*L[1]);A=yt(O,(u-kt)/(bt-1)),$=yt(O,(f-kt)/(bt+1))}else A=$=0}q>C?$>C?(c=tt(at,lt,D,K,f,$,m),d=tt(J,j,Q,G,f,$,m),s.moveTo(c.cx+c.x01,c.cy+c.y01),$<O?s.arc(c.cx,c.cy,$,S(c.y01,c.x01),S(d.y01,d.x01),!m):(s.arc(c.cx,c.cy,$,S(c.y01,c.x01),S(c.y11,c.x11),!m),s.arc(0,0,f,S(c.cy+c.y11,c.cx+c.x11),S(d.cy+d.y11,d.cx+d.x11),!m),s.arc(d.cx,d.cy,$,S(d.y11,d.x11),S(d.y01,d.x01),!m))):(s.moveTo(D,K),s.arc(0,0,f,b,T,!m)):s.moveTo(D,K),!(u>C)||!(E>C)?s.lineTo(Q,G):A>C?(c=tt(Q,G,J,j,u,-A,m),d=tt(D,K,at,lt,u,-A,m),s.lineTo(c.cx+c.x01,c.cy+c.y01),A<O?s.arc(c.cx,c.cy,A,S(c.y01,c.x01),S(d.y01,d.x01),!m):(s.arc(c.cx,c.cy,A,S(c.y01,c.x01),S(c.y11,c.x11),!m),s.arc(0,0,u,S(c.cy+c.y11,c.cx+c.x11),S(d.cy+d.y11,d.cx+d.x11),m),s.arc(d.cx,d.cy,A,S(d.y11,d.x11),S(d.y01,d.x01),!m))):s.arc(0,0,u,w,g,m)}if(s.closePath(),h)return s=null,h+""||null}return _.centroid=function(){var h=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,p=(+o.apply(this,arguments)+ +r.apply(this,arguments))/2-I/2;return[X(p)*h,M(p)*h]},_.innerRadius=function(h){return arguments.length?(t=typeof h=="function"?h:x(+h),_):t},_.outerRadius=function(h){return arguments.length?(n=typeof h=="function"?h:x(+h),_):n},_.cornerRadius=function(h){return arguments.length?(i=typeof h=="function"?h:x(+h),_):i},_.padRadius=function(h){return arguments.length?(e=h==null?null:typeof h=="function"?h:x(+h),_):e},_.startAngle=function(h){return arguments.length?(o=typeof h=="function"?h:x(+h),_):o},_.endAngle=function(h){return arguments.length?(r=typeof h=="function"?h:x(+h),_):r},_.padAngle=function(h){return arguments.length?(a=typeof h=="function"?h:x(+h),_):a},_.context=function(h){return arguments.length?(s=h??null,_):s},_}var Cn=Array.prototype.slice;function qt(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Bt(t){this._context=t}Bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n);break}}};function Ut(t){return new Bt(t)}function dn(t){return t[0]}function yn(t){return t[1]}function En(t,n){var i=x(!0),e=null,o=Ut,r=null,a=Lt(s);t=typeof t=="function"?t:t===void 0?dn:x(t),n=typeof n=="function"?n:n===void 0?yn:x(n);function s(l){var _,h=(l=qt(l)).length,p,u=!1,f;for(e==null&&(r=o(f=a())),_=0;_<=h;++_)!(_<h&&i(p=l[_],_,l))===u&&((u=!u)?r.lineStart():r.lineEnd()),u&&r.point(+t(p,_,l),+n(p,_,l));if(f)return r=null,f+""||null}return s.x=function(l){return arguments.length?(t=typeof l=="function"?l:x(+l),s):t},s.y=function(l){return arguments.length?(n=typeof l=="function"?l:x(+l),s):n},s.defined=function(l){return arguments.length?(i=typeof l=="function"?l:x(!!l),s):i},s.curve=function(l){return arguments.length?(o=l,e!=null&&(r=o(e)),s):o},s.context=function(l){return arguments.length?(l==null?e=r=null:r=o(e=l),s):e},s}function mn(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function vn(t){return t}function Nn(){var t=vn,n=mn,i=null,e=x(0),o=x(W),r=x(0);function a(s){var l,_=(s=qt(s)).length,h,p,u=0,f=new Array(_),y=new Array(_),v=+e.apply(this,arguments),N=Math.min(W,Math.max(-W,o.apply(this,arguments)-v)),m,b=Math.min(Math.abs(N)/_,r.apply(this,arguments)),T=b*(N<0?-1:1),g;for(l=0;l<_;++l)(g=y[f[l]=l]=+t(s[l],l,s))>0&&(u+=g);for(n!=null?f.sort(function(w,E){return n(y[w],y[E])}):i!=null&&f.sort(function(w,E){return i(s[w],s[E])}),l=0,p=u?(N-_*T)/u:0;l<_;++l,v=m)h=f[l],g=y[h],m=v+(g>0?g*p:0)+T,y[h]={data:s[h],index:l,value:g,startAngle:v,endAngle:m,padAngle:b};return y}return a.value=function(s){return arguments.length?(t=typeof s=="function"?s:x(+s),a):t},a.sortValues=function(s){return arguments.length?(n=s,i=null,a):n},a.sort=function(s){return arguments.length?(i=s,n=null,a):i},a.startAngle=function(s){return arguments.length?(e=typeof s=="function"?s:x(+s),a):e},a.endAngle=function(s){return arguments.length?(o=typeof s=="function"?s:x(+s),a):o},a.padAngle=function(s){return arguments.length?(r=typeof s=="function"?s:x(+s),a):r},a}var Mn=gn(Ut);function Xt(t){this._curve=t}Xt.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};function gn(t){function n(i){return new Xt(t(i))}return n._curve=t,n}var it=class{constructor(n,i){this._context=n,this._x=i}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(n,i){switch(n=+n,i=+i,this._point){case 0:{this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+n)/2,this._y0,this._x0,i,n,i):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+i)/2,n,this._y0,n,i);break}}this._x0=n,this._y0=i}};function An(t){return new it(t,!0)}function $n(t){return new it(t,!1)}var Pn=P(3);var xn=P(1/3),On=xn*2;var zt=M(I/10)/M(7*I/10),Ln=M(W/10)*zt,qn=-X(W/10)*zt;var Bn=P(3);var Un=P(3);var Xn=P(3)/2,Tn=1/P(12),zn=(Tn/2+1)*3;function z(){}function et(t,n,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+i)/6)}function rt(t){this._context=t}rt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:et(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:et(this,t,n);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};function Yn(t){return new rt(t)}function Yt(t){this._context=t}Yt.prototype={areaStart:z,areaEnd:z,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:et(this,t,n);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};function Fn(t){return new Yt(t)}function Ft(t){this._context=t}Ft.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,e=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(i,e):this._context.moveTo(i,e);break;case 3:this._point=4;default:et(this,t,n);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};function In(t){return new Ft(t)}function It(t,n){this._basis=new rt(t),this._beta=n}It.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,i=t.length-1;if(i>0)for(var e=t[0],o=n[0],r=t[i]-e,a=n[i]-o,s=-1,l;++s<=i;)l=s/i,this._basis.point(this._beta*t[s]+(1-this._beta)*(e+l*r),this._beta*n[s]+(1-this._beta)*(o+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var Dn=(function t(n){function i(e){return n===1?new rt(e):new It(e,n)}return i.beta=function(e){return t(+e)},i})(.85);function st(t,n,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function vt(t,n){this._context=t,this._k=(1-n)/6}vt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:st(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:st(this,t,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Kn=(function t(n){function i(e){return new vt(e,n)}return i.tension=function(e){return t(+e)},i})(0);function gt(t,n){this._context=t,this._k=(1-n)/6}gt.prototype={areaStart:z,areaEnd:z,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:st(this,t,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Vn=(function t(n){function i(e){return new gt(e,n)}return i.tension=function(e){return t(+e)},i})(0);function xt(t,n){this._context=t,this._k=(1-n)/6}xt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:st(this,t,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Wn=(function t(n){function i(e){return new xt(e,n)}return i.tension=function(e){return t(+e)},i})(0);function Tt(t,n,i){var e=t._x1,o=t._y1,r=t._x2,a=t._y2;if(t._l01_a>C){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);e=(e*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,o=(o*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>C){var _=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);r=(r*_+t._x1*t._l23_2a-n*t._l12_2a)/h,a=(a*_+t._y1*t._l23_2a-i*t._l12_2a)/h}t._context.bezierCurveTo(e,o,r,a,t._x2,t._y2)}function Dt(t,n){this._context=t,this._alpha=n}Dt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var i=this._x2-t,e=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+e*e,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:Tt(this,t,n);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Hn=(function t(n){function i(e){return n?new Dt(e,n):new vt(e,0)}return i.alpha=function(e){return t(+e)},i})(.5);function Kt(t,n){this._context=t,this._alpha=n}Kt.prototype={areaStart:z,areaEnd:z,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,n){if(t=+t,n=+n,this._point){var i=this._x2-t,e=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+e*e,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Tt(this,t,n);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Zn=(function t(n){function i(e){return n?new Kt(e,n):new gt(e,0)}return i.alpha=function(e){return t(+e)},i})(.5);function Vt(t,n){this._context=t,this._alpha=n}Vt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var i=this._x2-t,e=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+e*e,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Tt(this,t,n);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Qn=(function t(n){function i(e){return n?new Vt(e,n):new xt(e,0)}return i.alpha=function(e){return t(+e)},i})(.5);function Wt(t){this._context=t}Wt.prototype={areaStart:z,areaEnd:z,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}};function Gn(t){return new Wt(t)}function At(t){return t<0?-1:1}function $t(t,n,i){var e=t._x1-t._x0,o=n-t._x1,r=(t._y1-t._y0)/(e||o<0&&-0),a=(i-t._y1)/(o||e<0&&-0),s=(r*o+a*e)/(e+o);return(At(r)+At(a))*Math.min(Math.abs(r),Math.abs(a),.5*Math.abs(s))||0}function Pt(t,n){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-n)/2:n}function mt(t,n,i){var e=t._x0,o=t._y0,r=t._x1,a=t._y1,s=(r-e)/3;t._context.bezierCurveTo(e+s,o+s*n,r-s,a-s*i,r,a)}function ot(t){this._context=t}ot.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:mt(this,this._t0,Pt(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var i=NaN;if(t=+t,n=+n,!(t===this._x1&&n===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,mt(this,Pt(this,i=$t(this,t,n)),i);break;default:mt(this,this._t0,i=$t(this,t,n));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=i}}};function Ht(t){this._context=new Zt(t)}(Ht.prototype=Object.create(ot.prototype)).point=function(t,n){ot.prototype.point.call(this,n,t)};function Zt(t){this._context=t}Zt.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,i,e,o,r){this._context.bezierCurveTo(n,t,e,i,r,o)}};function Jn(t){return new ot(t)}function jn(t){return new Ht(t)}function Qt(t){this._context=t}Qt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),i===2)this._context.lineTo(t[1],n[1]);else for(var e=Ot(t),o=Ot(n),r=0,a=1;a<i;++r,++a)this._context.bezierCurveTo(e[0][r],o[0][r],e[1][r],o[1][r],t[a],n[a]);(this._line||this._line!==0&&i===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}};function Ot(t){var n,i=t.length-1,e,o=new Array(i),r=new Array(i),a=new Array(i);for(o[0]=0,r[0]=2,a[0]=t[0]+2*t[1],n=1;n<i-1;++n)o[n]=1,r[n]=4,a[n]=4*t[n]+2*t[n+1];for(o[i-1]=2,r[i-1]=7,a[i-1]=8*t[i-1]+t[i],n=1;n<i;++n)e=o[n]/r[n-1],r[n]-=e,a[n]-=e*a[n-1];for(o[i-1]=a[i-1]/r[i-1],n=i-2;n>=0;--n)o[n]=(a[n]-o[n+1])/r[n];for(r[i-1]=(t[i]+o[i-1])/2,n=0;n<i-1;++n)r[n]=2*t[n+1]-o[n+1];return[o,r]}function ti(t){return new Qt(t)}function ht(t,n){this._context=t,this._t=n}ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,n)}break}}this._x=t,this._y=n}};function ni(t){return new ht(t,.5)}function ii(t){return new ht(t,0)}function ei(t){return new ht(t,1)}export{nn as a,Sn as b,Ut as c,En as d,Nn as e,An as f,$n as g,Yn as h,Fn as i,In as j,Dn as k,Kn as l,Vn as m,Wn as n,Hn as o,Zn as p,Qn as q,Gn as r,Jn as s,jn as t,ti as u,ni as v,ii as w,ei as x};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as o,b as d,c,d as i,e as l,g as u,s as v,w as g,y as m}from"./chunk-LT6LXKCR.js";var f=class extends m{static{o(this,"RailroadPegTokenBuilder")}constructor(){super(["railroad-peg-beta"])}},h=o(a=>{let e=a.slice(1,-1),r="";for(let t=0;t<e.length;t++){let n=e[t];if(n==="\\"&&t+1<e.length){t++;let s=e[t];switch(s){case"n":r+=`
|
|
2
|
+
`;break;case"r":r+="\r";break;case"t":r+=" ";break;default:r+=s}continue}r+=n}return r},"decodeEscapedString"),p=class extends g{static{o(this,"RailroadPegValueConverter")}runConverter(a,e,r){let t=super.runConverter(a,e,r);if(a.name==="TITLE"&&typeof t=="string"){let n=t.trim();if(n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'"))return h(n)}return t}runCustomConverter(a,e,r){if(a.name==="PEG_STRING")return h(e)}},C={parser:{TokenBuilder:o(()=>new f,"TokenBuilder"),ValueConverter:o(()=>new p,"ValueConverter")}};function R(a=l){let e=i(c(a),u),r=i(d({shared:e}),v,C);return e.ServiceRegistry.register(r),{shared:e,RailroadPeg:r}}o(R,"createRailroadPegServices");export{C as a,R as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as E}from"./chunk-K4I76XBX.js";import{b as _,c as G}from"./chunk-R63JUMUK.js";import{f as x,g as O,h as F,i as D,j as S,k as $,m as j,n as H}from"./chunk-K2KLZU7M.js";import{a as M,b as A,d as X,e as L}from"./chunk-JD7ZBJD2.js";import{a as B}from"./chunk-HOPPTA6H.js";import{q as P}from"./chunk-QEEA3KYY.js";import{$ as T,C as R}from"./chunk-KT4VPQD5.js";import{b as a}from"./chunk-JRSH5GNS.js";import{a as u}from"./chunk-GYT4IYBZ.js";function J(e,{edgePathsClass:n="edges edgePaths"}={}){let t=e.insert("g").attr("class","root"),s=t.insert("g").attr("class","clusters"),r=t.insert("g").attr("class",n),i=t.insert("g").attr("class","edgeLabels"),c=t.insert("g").attr("class","nodes");return{clusters:s,edgePaths:r,edgeLabels:i,nodes:c,rootGroups:t}}u(J,"createLayoutElementGroups");async function W(e,n,t){if(n.label){let{shapeSvg:s,bbox:r}=await B(e,t===void 0?n:{...n,width:t});n.labelBBox={width:r.width,height:r.height},s.remove()}else n.labelBBox={width:0,height:0}}u(W,"measureGroupLabel");async function V(e,n,t){let s=await A(e,n,t),r=s.node()?.getBBox()??{width:0,height:0};return n.width=r.width,n.height=r.height,s}u(V,"insertMeasuredNode");function Y(e,n,t){let s=e,r=new Set;for(;s;){if(s.dir)return s.dir;if(!s.parentId||r.has(s.parentId))break;r.add(s.parentId),s=n.get(s.parentId)}return t}u(Y,"resolveNodeDir");async function q(e,n,t={}){let s=new E({multigraph:!0,compound:!0}),r=[...n.edges],i=T(),c=J(e),{edgeLabels:d,nodes:o}=c,g=new Map,b=new Map(n.nodes.map(f=>[f.id,f])),N=n.direction,h=e.node()!=null;await Promise.all(n.nodes.map(async f=>{if(f.isGroup){if(h){let w=t.unwrapGroupLabels&&f.labelType!=="markdown";await W(o,f,w?Number.POSITIVE_INFINITY:void 0)}s.setNode(f.id,{...f})}else{if(h){let w=await V(o,f,{config:i,dir:Y(f,b,N)});g.set(f.id,w)}s.setNode(f.id,{...f})}}));for(let f of r)h&&D(f)&&await S(d,f),s.setEdge(f.start,f.end,{...f},f.id),n.edges.some(v=>v.id===f.id)||n.edges.push(f);if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:f}=await import("./sizeCapture-INFHLROL-RROY32P5.js");f(e,n)}return{graph:s,groups:c,nodeElements:g}}u(q,"createGraphWithElements");var l=new Map,m=new Map,K=new Map,ge=u(()=>{m.clear(),K.clear(),l.clear()},"clear"),p=u((e,n)=>{let t=m.get(n)||[];return a.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)},"isDescendant"),me=u((e,n)=>{let t=m.get(n)||[];return a.info("Descendants of ",n," is ",t),a.info("Edge is ",e),e.v===n||e.w===n?!1:t?t.includes(e.v)||p(e.v,n)||p(e.w,n)||t.includes(e.w):(a.debug("Tilt, ",n,",not in descendants"),!1)},"edgeInCluster"),Q=u((e,n,t,s)=>{a.debug("Copying children of ",e,"root",s,"data",n.node(e),s);let r=n.children(e)||[];e!==s&&r.push(e),a.debug("Copying (nodes) clusterId",e,"nodes",r),r.forEach(i=>{if(n.children(i).length>0)Q(i,n,t,s);else{let c=n.node(i);a.info("cp ",i," to ",s," with parent ",e),t.setNode(i,c),s!==n.parent(i)&&(a.debug("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==s&&i!==e?(a.debug("Setting parent",i,e),t.setParent(i,e)):(a.info("In copy ",e,"root",s,"data",n.node(e),s),a.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==s,"node!==clusterId",i!==e));let d=n.edges(i);a.debug("Copying Edges",d),d.forEach(o=>{a.info("Edge",o);let g=n.edge(o.v,o.w,o.name);a.info("Edge data",g,s);try{me(o,s)?(a.info("Copying as ",o.v,o.w,g,o.name),t.setEdge(o.v,o.w,g,o.name),a.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):a.info("Skipping copy of edge ",o.v,"-->",o.w," rootId: ",s," clusterId:",e)}catch(b){a.error(b)}})}a.debug("Removing node",i),n.removeNode(i)})},"copy"),U=u((e,n)=>{let t=n.children(e),s=[...t];for(let r of t)K.set(r,e),s=[...s,...U(r,n)];return s},"extractDescendants"),be=u((e,n,t)=>{let s=e.edges().filter(o=>o.v===n||o.w===n),r=e.edges().filter(o=>o.v===t||o.w===t),i=s.map(o=>({v:o.v===n?t:o.v,w:o.w===n?n:o.w})),c=r.map(o=>({v:o.v,w:o.w}));return i.filter(o=>c.some(g=>o.v===g.v&&o.w===g.w))},"findCommonEdges"),C=u((e,n,t)=>{let s=n.children(e);if(a.trace("Searching children of id ",e,s),s.length<1)return e;let r;for(let i of s){let c=C(i,n,t),d=be(n,t,c);if(c)if(d.length>0)r=c;else return c}return r},"findNonClusterChild"),z=u(e=>!l.has(e)||!l.get(e).externalConnections?e:l.has(e)?l.get(e).id:e,"getAnchorId"),Se=u((e,n)=>{if(!e||n>10){a.debug("Opting out, no graph ");return}else a.debug("Opting in, graph ");e.nodes().forEach(function(t){e.children(t).length>0&&(a.debug("Cluster identified",t," Replacement id in edges: ",C(t,e,t)),m.set(t,U(t,e)),l.set(t,{id:C(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){let s=e.children(t),r=e.edges();s.length>0?(a.debug("Cluster identified",t,m),r.forEach(i=>{let c=p(i.v,t),d=p(i.w,t);c^d&&(a.debug("Edge: ",i," leaves cluster ",t),a.debug("Descendants of XXX ",t,": ",m.get(t)),l.get(t).externalConnections=!0)})):a.debug("Not a cluster ",t,m)});for(let t of l.keys()){let s=l.get(t).id,r=e.parent(s);r!==t&&l.has(r)&&!l.get(r).externalConnections&&(l.get(t).id=r);let i=e.edges().some(c=>c.v===t);if(s&&l.get(t)?.externalConnections&&i&&ee(e,s,t)){let c=he(e,t,e.parent(s));c&&(l.get(t).id=c)}}e.edges().forEach(function(t){let s=e.edge(t);a.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),a.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let r=t.v,i=t.w;if(a.debug("Fix XXX",l,"ids:",t.v,t.w,"Translating: ",l.get(t.v)," --- ",l.get(t.w)),l.get(t.v)||l.get(t.w)){if(a.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),r=z(t.v),i=z(t.w),e.removeEdge(t.v,t.w,t.name),r!==t.v){let c=e.parent(r);l.get(c).externalConnections=!0,s.fromCluster=t.v}if(i!==t.w){let c=e.parent(i);l.get(c).externalConnections=!0,s.toCluster=t.w}a.debug("Fix Replacing with XXX",r,i,t.name),e.setEdge(r,i,s,t.name)}}),Z(e,0),a.trace(l)},"adjustClustersAndEdges"),Z=u((e,n)=>{if(n>10){a.error("Bailing out");return}let t=e.nodes(),s=!1;for(let r of t){let i=e.children(r);s=s||i.length>0}if(!s){a.debug("Done, no node has children",e.nodes());return}a.debug("Nodes = ",t,n);for(let r of t)if(a.debug("Extracting node",r,l,l.has(r)&&!l.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",n),!l.has(r))a.debug("Not a cluster",r,n);else if(!l.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){a.debug("Cluster without external connections, without a parent and with children",r,n);let c=e.graph().rankdir==="TB"?"LR":"TB";l.get(r)?.clusterData?.dir&&(c=l.get(r).clusterData.dir,a.debug("Fixing dir",l.get(r).clusterData.dir,c));let d=new E({multigraph:!0,compound:!0}).setGraph({rankdir:c,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});Q(r,e,d,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:l.get(r).clusterData,label:l.get(r).label,graph:d})}else a.debug("Cluster ** ",r," **not meeting the criteria !externalConnections:",!l.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),n),a.debug(l);t=e.nodes(),a.debug("New list of nodes",t);for(let r of t){let i=e.node(r);a.debug(" Now next level",r,i),i?.clusterNode&&Z(i.graph,n+1)}},"extractor"),I=u((e,n)=>{if(n.length===0)return[];let t=Object.assign([],n);return n.forEach(s=>{let r=e.children(s),i=I(e,r);t=[...t,...i]}),t},"sorter"),ke=u(e=>I(e,e.children()),"sortNodesByHierarchy"),ee=u((e,n,t)=>{let s=e.parent(n);for(;s&&s!==t;){let r=l.get(s);if(r&&!r.externalConnections)return!0;s=e.parent(s)}return!1},"isNodeInExtractableCluster"),he=u((e,n,t)=>{let s=e.children(n)??[];for(let r of s){if(r===t||p(r,t))continue;let i=C(r,e,n);if(i&&!ee(e,i,n))return i}return null},"findSafeAnchorNode");function we({prepareLayout:e,measureLayout:n,runLayoutCore:t,paintLayout:s,afterPaint:r,paintOptions:i}){let c=n??ne;return u(async function(o,g,b,N){let h=g.select("g");(b?.insertMarkers??H)(h,o.markers,o.type,o.diagramId),te();let f={element:h,helpers:b,options:N};f.preparedLayout=await e?.(o,f);let w=await c(o,f),v=await t(o,f),y={...f,measure:w};s?await s(o,y,v):await re(o,y,i),await r?.(o,y,v)},"render")}u(we,"createCommonLayoutRenderer");function te(){X(),F(),G(),ge()}u(te,"clearLayoutRenderState");async function ne(e,{element:n},t){return await q(n,e,t)}u(ne,"defaultMeasureLayout");async function re(e,n,t={}){let{measure:s}=n,{groups:r}=s;for(let c of t.getNodes?.(e,n)??e.nodes)t.skipNode?.(c,n)||await se(r,c,n,t);let i=oe(e.nodes);for(let c of e.edges)ae(c,t)||await ce(r,c,i,e,t,n)}u(re,"paintLayoutData");async function se(e,n,t,s){n.clusterNode?L(n):ie(n,t,s)?await _(e.clusters,n):L(n)}u(se,"paintLayoutNode");function ie(e,n,t){return e.isGroup===!0&&(t.isCluster?.(e,n)??!0)}u(ie,"shouldPaintAsCluster");function oe(e){let n=new Map;for(let t of e)t?.id&&n.set(t.id,t);return n}u(oe,"buildNodeLookup");function ae(e,n){return e.isLayoutOnly||!!n.skipEdge?.(e)}u(ae,"shouldSkipPaintEdge");async function ce(e,n,t,s,r,i){let c=j(e.edgePaths,{...n},r.clusterDb??new Map,s.type,k(n.start,n,t,i,r),k(n.end,n,t,i,r),s.diagramId,le(n,r),s.layoutAlgorithm);D(n)&&(x.has(n.id)||await S(e.edgeLabels,n),ue(n,c))}u(ce,"paintLayoutEdge");function k(e,n,t,s,r){return r.getEdgeNode?.(e,n,s)??(e?t.get(e)??{}:{})}u(k,"getRenderedNode");function le(e,n){return typeof n.skipIntersect=="function"?n.skipIntersect(e):n.skipIntersect??!1}u(le,"shouldSkipIntersect");function ue(e,n){let t=n?.updatedPath??n?.originalPath,s=R(),{subGraphTitleTotalMargin:r}=M({flowchart:s.flowchart??{}});if(e.label){let i=x.get(e.id),{x:c,y:d}=$(e,n);i.attr("transform",`translate(${c}, ${d+r/2})`)}for(let[i,c]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(c){let{x:d,y:o}=fe(e,i,t);O.get(e.id)[i].attr("transform",`translate(${d}, ${o})`)}}u(ue,"positionRenderedEdgeLabel");var pe={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function fe(e,n,t){let s=e.terminalLabelCenters?.[n];if(s)return{...s};if(!t)return{x:e.x,y:e.y};let r=n.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return P.calcTerminalLabelPosition(r?10:0,pe[n],t)}u(fe,"terminalLabelTranslate");export{J as a,V as b,l as c,C as d,Se as e,ke as f,we as g,ne as h};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as c}from"./chunk-KT4VPQD5.js";import{a as i}from"./chunk-GYT4IYBZ.js";var S=i(t=>{let{handDrawnSeed:e}=c();return{fill:t,hachureAngle:120,hachureGap:1.5,fillWeight:1.5,roughness:.7,stroke:t,seed:e}},"solidStateFill"),p=i(t=>Array.isArray(t)?t:t?t.split(";").map(e=>e.trim()).filter(Boolean):[],"normalizeStyleList"),h=i(t=>{let e=f([...t.cssCompiledStyles||[],...t.cssStyles||[],...p(t.labelStyle)]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),f=i(t=>{let e=new Map;return t.forEach(o=>{let[a,s]=o.split(":");e.set(a.trim(),s?.trim())}),e},"styles2Map"),u=i(t=>t==="color"||t==="font-size"||t==="font-family"||t==="font-weight"||t==="font-style"||t==="text-decoration"||t==="text-align"||t==="text-transform"||t==="line-height"||t==="letter-spacing"||t==="word-spacing"||t==="text-shadow"||t==="text-overflow"||t==="white-space"||t==="word-wrap"||t==="word-break"||t==="overflow-wrap"||t==="hyphens","isLabelStyle"),v=i(t=>{let{stylesArray:e}=h(t),o=[],a=[],s=[],n=[];return e.forEach(r=>{let l=r[0];u(l)?o.push(r.join(":")+" !important"):(a.push(r.join(":")+" !important"),l.includes("stroke")&&s.push(r.join(":")+" !important"),l==="fill"&&n.push(r.join(":")+" !important"))}),{labelStyles:o.join(";"),nodeStyles:a.join(";"),stylesArray:e,borderStyles:s,backgroundStyles:n}},"styles2String"),w=i((t,e)=>{let{themeVariables:o,handDrawnSeed:a}=c(),{nodeBorder:s,mainBkg:n}=o,{stylesMap:r}=h(t);return Object.assign({roughness:.7,fill:r.get("fill")||n,fillStyle:"hachure",fillWeight:1.5,hachureGap:1.5,stroke:r.get("stroke")||s,seed:a,strokeWidth:r.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:d(r.get("stroke-dasharray"))},e)},"userNodeOverrides"),d=i(t=>{if(!t)return[0,0];let e=t.trim().split(/\s+/).map(Number);if(e.length===1){let s=isNaN(e[0])?0:e[0];return[s,s]}let o=isNaN(e[0])?0:e[0],a=isNaN(e[1])?0:e[1];return[o,a]},"getStrokeDashArray");export{S as a,h as b,u as c,v as d,w as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as ct,c as xr,f as Ar,g as wr,h as Or,i as Br,j as Sr,k as Ir,l as Mr,m as Pr,n as Er,o as Wr,p as Lr,q as Dr,r as jr,s as Tr,t as $r,u as Rr,v as Fr,w as Nr,x as vr}from"./chunk-OFZLK5G4.js";import{O as $,h as I,l as dr,o as nr,s as hr}from"./chunk-KT4VPQD5.js";import{b as w,d as br}from"./chunk-JRSH5GNS.js";import{a}from"./chunk-GYT4IYBZ.js";import{c as pt}from"./chunk-3RNHDNP5.js";function d(r){return r==null||typeof r!="object"&&typeof r!="function"}function h(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}var R="[object RegExp]",M="[object String]",P="[object Number]",E="[object Boolean]",W="[object Arguments]",F="[object Symbol]",N="[object Date]",v="[object Map]",_="[object Set]",U="[object Array]";var k="[object ArrayBuffer]",V="[object Object]";var z="[object DataView]",H="[object Uint8Array]",q="[object Uint8ClampedArray]",K="[object Uint16Array]",X="[object Uint32Array]";var Y="[object Int8Array]",G="[object Int16Array]",J="[object Int32Array]";var Z="[object Float32Array]",Q="[object Float64Array]";function _r(r){return Array.isArray(r)}var ut=Object.prototype.hasOwnProperty;function b(r,t){return ut.call(r,t)}function C(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}function y(r){return C(r)}function lt(r){if(d(r))return r;let t=h(r);if(!yt(r))return{};if(_r(r)){let e=Array.from(r);return r.length>0&&typeof r[0]=="string"&&b(r,"index")&&(e.index=r.index,e.input=r.input),e}if(y(r)){let e=r,n=e.constructor;return new n(e.buffer,e.byteOffset,e.length)}if(t==="[object ArrayBuffer]")return new ArrayBuffer(r.byteLength);if(t==="[object DataView]"){let e=r,n=e.buffer,m=e.byteOffset,i=e.byteLength,f=new ArrayBuffer(i),s=new Uint8Array(n,m,i);return new Uint8Array(f).set(s),new DataView(f)}if(t==="[object Boolean]"||t==="[object Number]"||t==="[object String]"){let e=r.constructor,n=new e(r.valueOf());return t==="[object String]"?dt(n,r):mr(n,r),n}if(t==="[object Date]")return new Date(Number(r));if(t==="[object RegExp]"){let e=r,n=new RegExp(e.source,e.flags);return n.lastIndex=e.lastIndex,n}if(t==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(r));if(t==="[object Map]"){let e=r,n=new Map;return e.forEach((m,i)=>{n.set(i,m)}),n}if(t==="[object Set]"){let e=r,n=new Set;return e.forEach(m=>{n.add(m)}),n}if(t==="[object Arguments]"){let e=r,n={};return mr(n,e),n.length=e.length,n[Symbol.iterator]=e[Symbol.iterator],n}let o={};return ht(o,r),mr(o,r),gt(o,r),o}function yt(r){switch(h(r)){case W:case U:case k:case z:case E:case N:case Z:case Q:case Y:case G:case J:case v:case P:case V:case R:case _:case M:case F:case H:case q:case K:case X:return!0;default:return!1}}function mr(r,t){for(let o in t)b(t,o)&&(r[o]=t[o])}function gt(r,t){let o=Object.getOwnPropertySymbols(t);for(let e=0;e<o.length;e++){let n=o[e];Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}}function dt(r,t){let o=t.valueOf().length;for(let e in t)b(t,e)&&(Number.isNaN(Number(e))||Number(e)>=o)&&(r[e]=t[e])}function ht(r,t){let o=Object.getPrototypeOf(t);o!==null&&typeof t.constructor=="function"&&Object.setPrototypeOf(r,o)}function rr(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){var t;let e=r[Symbol.toStringTag];return e==null||!(!((t=Object.getOwnPropertyDescriptor(r,Symbol.toStringTag))===null||t===void 0)&&t.writable)?!1:r.toString()===`[object ${e}]`}let o=r;for(;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(r)===o}function Ur(r){return Number.isSafeInteger(r)&&r>=0}function tr(r){return r!=null&&typeof r!="function"&&Ur(r.length)}function kr(r){return r==="__proto__"}var fr=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})();function O(r){return typeof fr.Buffer<"u"&&fr.Buffer.isBuffer(r)}function Vr(r){return O(r)}function er(r){return Object.getOwnPropertySymbols(r).filter(t=>Object.prototype.propertyIsEnumerable.call(r,t))}function zr(r,t){return S(r,void 0,r,new Map,t)}function S(r,t,o,e,n){if(n!=null){let i=n(r,t,o,e);if(i!==void 0)return i}if(d(r))return r;if(e.has(r))return e.get(r);if(Array.isArray(r)){let i=new Array(r.length);e.set(r,i);for(let f=0;f<r.length;f++)i[f]=S(r[f],f,o,e,n);return b(r,"index")&&(i.index=r.index),b(r,"input")&&(i.input=r.input),i}if(r instanceof Date)return new Date(r.getTime());if(r instanceof RegExp){let i=new RegExp(r.source,r.flags);return i.lastIndex=r.lastIndex,i}if(r instanceof Map){let i=new Map;return e.set(r,i),r.forEach((f,s)=>{i.set(s,S(f,s,o,e,n))}),i}if(r instanceof Set){let i=new Set;return e.set(r,i),r.forEach(f=>{i.add(S(f,void 0,o,e,n))}),i}if(Vr(r))return r.subarray();if(y(r)){let i=new(Object.getPrototypeOf(r)).constructor(r.length);e.set(r,i);for(let f=0;f<r.length;f++)i[f]=S(r[f],f,o,e,n);return i}if(r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);if(r instanceof DataView){let i=new DataView(r.buffer.slice(0),r.byteOffset,r.byteLength);return e.set(r,i),B(i,r,o,e,n),i}if(typeof File<"u"&&r instanceof File){let i=new File([r],r.name,{type:r.type});return e.set(r,i),B(i,r,o,e,n),i}if(typeof Blob<"u"&&r instanceof Blob){let i=new Blob([r],{type:r.type});return e.set(r,i),B(i,r,o,e,n),i}let m=h(r);if(m==="[object Error]")return r===o?{}:r;switch(m){case P:case M:case E:{let i=new r.constructor(r.valueOf());return e.set(r,i),B(i,r,o,e,n),i}case W:{let i={};return e.set(r,i),B(i,r,o,e,n),i.length=r.length,i[Symbol.iterator]=r[Symbol.iterator],i}}if(typeof r=="object"&&bt(m)){let i=m==="[object Object]"&&typeof r.constructor!="function"?{}:Object.create(Object.getPrototypeOf(r));return e.set(r,i),B(i,r,o,e,n),i}return r}function B(r,t,o,e,n){let m=[...Object.keys(t),...er(t)];for(let i=0;i<m.length;i++){let f=m[i],s=Object.getOwnPropertyDescriptor(r,f);(s==null||s.writable)&&(r[f]=S(t[f],f,o,e,n))}}function bt(r){switch(r){case W:case U:case k:case z:case E:case N:case Z:case Q:case Y:case G:case J:case v:case P:case V:case R:case _:case M:case F:case H:case q:case K:case X:return!0;default:return!1}}function sr(r){return zr(r)}function L(r){return r!==null&&typeof r=="object"&&h(r)==="[object Arguments]"}function D(r){return typeof r=="object"&&r!==null}function Hr(r){return D(r)&&tr(r)}function qr(r){let t=r?.constructor;return r===(typeof t=="function"?t.prototype:Object.prototype)}function x(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");let o=function(...e){let n=t?t.apply(this,e):e[0],m=o.cache;if(m.has(n))return m.get(n);let i=r.apply(this,e);return o.cache=m.set(n,i)||m,i};return o.cache=new(x.Cache||Map),o}x.Cache=Map;function Kr(r){if(d(r))return r;if(Array.isArray(r)||C(r)||r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);let t=Object.getPrototypeOf(r);if(t==null)return Object.assign(Object.create(t),r);let o=t.constructor;if(r instanceof Date||r instanceof Map||r instanceof Set)return new o(r);if(r instanceof RegExp){let e=new o(r);return e.lastIndex=r.lastIndex,e}if(r instanceof DataView)return new o(r.buffer.slice(0));if(r instanceof Error){let e;return typeof AggregateError<"u"&&r instanceof AggregateError?e=new o(r.errors,r.message,{cause:r.cause}):e=new o(r.message,{cause:r.cause}),e.stack=r.stack,Object.assign(e,r),e}if(typeof File<"u"&&r instanceof File)return new o([r],r.name,{type:r.type,lastModified:r.lastModified});if(typeof r=="object"){let e=Object.create(t);return Object.assign(e,r)}return r}function Xr(r,...t){let o=t.slice(0,-1),e=t[t.length-1],n=r;for(let m=0;m<o.length;m++){let i=o[m];n=or(n,i,e,new Map)}return n}function or(r,t,o,e){if(d(r)&&(r=Object(r)),t==null||typeof t!="object")return r;if(e.has(t))return Kr(e.get(t));if(e.set(t,r),Array.isArray(t)){t=t.slice();for(let m=0;m<t.length;m++)m in t||(t[m]=void 0)}let n=[...Object.keys(t),...er(t)];for(let m=0;m<n.length;m++){let i=n[m];if(kr(i))continue;let f=t[i],s=r[i];if(L(f)&&(f=Object.assign({},f)),L(s)&&(s=Object.assign({},s)),O(f)&&(f=sr(f)),Array.isArray(f))if(Array.isArray(s)){let u=[],c=Reflect.ownKeys(s);for(let g=0;g<c.length;g++){let l=c[g];u[l]=s[l]}s=u}else if(Hr(s)){let u=[];for(let c=0;c<s.length;c++)u[c]=s[c];s=u}else s=[];let p=o(s,f,i,r,t,e);p!==void 0?r[i]=p:Array.isArray(f)||D(s)&&D(f)&&(rr(s)||rr(f)||y(s)||y(f))?r[i]=or(s,f,o,e):s==null&&rr(f)?r[i]=or({},f,o,e):s==null&&y(f)?r[i]=sr(f):(s===void 0||f!==void 0)&&(r[i]=f)}return r}function Yr(){}function ar(r,...t){return Xr(r,...t,Yr)}function xt(r){if(r==null)return!0;if(tr(r))return typeof r.splice!="function"&&typeof r!="string"&&!O(r)&&!y(r)&&!L(r)?!1:r.length===0;if(typeof r=="object"||typeof r=="function"){if(r instanceof Map||r instanceof Set)return r.size===0;let t=Object.keys(r);return qr(r)?t.filter(o=>o!=="constructor").length===0:t.length===0}return!0}var Zr=pt(ct(),1);var At="\u200B",wt={curveBasis:Or,curveBasisClosed:Br,curveBasisOpen:Sr,curveBumpX:Ar,curveBumpY:wr,curveBundle:Ir,curveCardinalClosed:Pr,curveCardinalOpen:Er,curveCardinal:Mr,curveCatmullRomClosed:Lr,curveCatmullRomOpen:Dr,curveCatmullRom:Wr,curveLinear:xr,curveLinearClosed:jr,curveMonotoneX:Tr,curveMonotoneY:$r,curveNatural:Rr,curveStep:Fr,curveStepAfter:vr,curveStepBefore:Nr},Ot=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Bt=a(function(r,t){let o=Qr(r,/(?:init\b)|(?:initialize\b)/),e={};if(Array.isArray(o)){let i=o.map(f=>f.args);hr(i),e=nr(e,[...i])}else e=o.args;if(!e)return;let n=dr(r,t),m="config";return e[m]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),e[n]=e[m],delete e[m]),e},"detectInit"),Qr=a(function(r,t=null){try{let o=new RegExp(`[%]{2}(?![{]${Ot.source})(?=[}][%]{2}).*
|
|
2
|
+
`,"ig");r=r.trim().replace(o,"").replace(/'/gm,'"'),w.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${r}`);let e,n=[];for(;(e=I.exec(r))!==null;)if(e.index===I.lastIndex&&I.lastIndex++,e&&!t||t&&e[1]?.match(t)||t&&e[2]?.match(t)){let m=e[1]?e[1]:e[2],i=e[3]?e[3].trim():e[4]?JSON.parse(e[4].trim()):null;n.push({type:m,args:i})}return n.length===0?{type:r,args:null}:n.length===1?n[0]:n}catch(o){return w.error(`ERROR: ${o.message} - Unable to parse directive type: '${t}' based on the text: '${r}'`),{type:void 0,args:null}}},"detectDirective"),po=a(function(r){return r.replace(I,"")},"removeDirectives"),St=a(function(r,t){for(let[o,e]of t.entries())if(e.match(r))return o;return-1},"isSubstringInArray");function Cr(r,t){if(!r)return t;let o=`curve${r.charAt(0).toUpperCase()+r.slice(1)}`;return wt[o]??t}a(Cr,"interpolateToCurve");function rt(r,t){let o=r.trim();if(o)return t.securityLevel!=="loose"?(0,Zr.sanitizeUrl)(o):o}a(rt,"formatUrl");var It=a((r,...t)=>{let o=r.split("."),e=o.length-1,n=o[e],m=window;for(let i=0;i<e;i++)if(m=m[o[i]],!m){w.error(`Function name: ${r} not found in window`);return}m[n](...t)},"runFunc");function pr(r,t){return!r||!t?0:Math.sqrt(Math.pow(t.x-r.x,2)+Math.pow(t.y-r.y,2))}a(pr,"distance");function tt(r){let t,o=0;r.forEach(n=>{o+=pr(n,t),t=n});let e=o/2;return cr(r,e)}a(tt,"traverseEdge");function et(r){return r.length===1?r[0]:tt(r)}a(et,"calcLabelPosition");var Gr=a((r,t=2)=>{let o=Math.pow(10,t);return Math.round(r*o)/o},"roundNumber"),cr=a((r,t)=>{let o,e=t;for(let n of r){if(o){let m=pr(n,o);if(m===0)return o;if(m<e)e-=m;else{let i=e/m;if(i<=0)return o;if(i>=1)return{x:n.x,y:n.y};if(i>0&&i<1)return{x:Gr((1-i)*o.x+i*n.x,5),y:Gr((1-i)*o.y+i*n.y,5)}}}o=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),Mt=a((r,t,o)=>{w.info(`our points ${JSON.stringify(t)}`),t[0]!==o&&(t=t.reverse());let n=cr(t,25),m=r?10:5,i=Math.atan2(t[0].y-n.y,t[0].x-n.x),f={x:0,y:0};return f.x=Math.sin(i)*m+(t[0].x+n.x)/2,f.y=-Math.cos(i)*m+(t[0].y+n.y)/2,f},"calcCardinalityPosition");function ot(r,t,o){let e=structuredClone(o);w.info("our points",e),t!=="start_left"&&t!=="start_right"&&e.reverse();let n=25+r,m=cr(e,n),i=10+r*.5,f=Math.atan2(e[0].y-m.y,e[0].x-m.x),s={x:0,y:0};return t==="start_left"?(s.x=Math.sin(f+Math.PI)*i+(e[0].x+m.x)/2,s.y=-Math.cos(f+Math.PI)*i+(e[0].y+m.y)/2):t==="end_right"?(s.x=Math.sin(f-Math.PI)*i+(e[0].x+m.x)/2,s.y=-Math.cos(f-Math.PI)*i+(e[0].y+m.y)/2):(s.x=Math.sin(f)*i+(e[0].x+m.x)/2,s.y=-Math.cos(f)*i+(e[0].y+m.y)/2),s}a(ot,"calcTerminalLabelPosition");function it(r){let t="",o="";for(let e of r)e!==void 0&&(e.startsWith("color:")||e.startsWith("text-align:")?o=o+e+";":t=t+e+";");return{style:t,labelStyle:o}}a(it,"getStylesFromArray");var Jr=0,Pt=a(()=>(Jr++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Jr),"generateId");function nt(r){let t="",o="0123456789abcdef",e=o.length;for(let n=0;n<r;n++)t+=o.charAt(Math.floor(Math.random()*e));return t}a(nt,"makeRandomHex");var Et=a(r=>nt(r.length),"random"),Wt=a(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),Lt=a(function(r,t){let o=t.text.replace($.lineBreakRegex," "),[,e]=lr(t.fontSize),n=r.append("text");n.attr("x",t.x),n.attr("y",t.y),n.style("text-anchor",t.anchor),n.style("font-family",t.fontFamily),n.style("font-size",e),n.style("font-weight",t.fontWeight),n.attr("fill",t.fill),t.class!==void 0&&n.attr("class",t.class);let m=n.append("tspan");return m.attr("x",t.x+t.textMargin*2),m.attr("fill",t.fill),m.text(o),n},"drawSimpleText"),Dt=x((r,t,o)=>{if(!r||(o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},o),$.hasBreaks(r)))return r;let e=r.split(" ").filter(Boolean),n=[],m="";return e.forEach((i,f)=>{let s=j(`${i} `,o),p=j(m,o);if(s>t){let{hyphenatedStrings:g,remainingWord:l}=jt(i,t,"-",o);n.push(m,...g),m=l}else p+s>=t?(n.push(m),m=i):m=[m,i].filter(Boolean).join(" ");f+1===e.length&&n.push(m)}),n.filter(i=>i!=="").join(o.joinWith)},(r,t,o)=>`${r}${t}${o.fontSize}${o.fontWeight}${o.fontFamily}${o.joinWith}`),jt=x((r,t,o="-",e)=>{e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},e);let n=[...r],m=[],i="";return n.forEach((f,s)=>{let p=`${i}${f}`;if(j(p,e)>=t){let c=s+1,g=n.length===c,l=`${p}${o}`;m.push(g?p:l),i=""}else i=p}),{hyphenatedStrings:m,remainingWord:i}},(r,t,o="-",e)=>`${r}${t}${o}${e.fontSize}${e.fontWeight}${e.fontFamily}`);function mt(r,t){return ur(r,t).height}a(mt,"calculateTextHeight");function j(r,t){return ur(r,t).width}a(j,"calculateTextWidth");var ur=x((r,t)=>{let{fontSize:o=12,fontFamily:e="Arial",fontWeight:n=400}=t;if(!r)return{width:0,height:0};let[,m]=lr(o),i=["sans-serif",e],f=r.split($.lineBreakRegex),s=[],p=br("body");if(!p.remove)return{width:0,height:0,lineHeight:0};let u=p.append("svg");for(let g of i){let l=0,A={width:0,height:0,lineHeight:0};for(let at of f){let yr=Wt();yr.text=at||At;let gr=Lt(u,yr).style("font-size",m).style("font-weight",n).style("font-family",g),T=(gr._groups||gr)[0][0].getBBox();if(T.width===0&&T.height===0)throw new Error("svg element not in render tree");A.width=Math.round(Math.max(A.width,T.width)),l=Math.round(T.height),A.height+=l,A.lineHeight=Math.round(Math.max(A.lineHeight,l))}s.push(A)}u.remove();let c=isNaN(s[1].height)||isNaN(s[1].width)||isNaN(s[1].lineHeight)||s[0].height>s[1].height&&s[0].width>s[1].width&&s[0].lineHeight>s[1].lineHeight?0:1;return s[c]},(r,t)=>`${r}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Tt=class{constructor(r=!1,t){this.count=0,this.count=t?t.length:0,this.next=r?()=>this.count++:()=>Date.now()}static{a(this,"InitIDGenerator")}},ir,$t=a(function(r){return ir=ir||document.createElement("div"),r=escape(r).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ir.innerHTML=r,unescape(ir.textContent)},"entityDecode");function Rt(r){return"str"in r}a(Rt,"isDetailedError");function Ft(r){return r instanceof Error?r.message:String(r)}a(Ft,"getErrorMessage");var Nt=a((r,t,o,e)=>{if(!e)return;let n=r.node()?.getBBox();n&&r.append("text").text(e).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-o).attr("class",t)},"insertTitle"),lr=a(r=>{if(typeof r=="number")return[r,r+"px"];let t=parseInt(r??"",10);return Number.isNaN(t)?[void 0,void 0]:r===String(t)?[t,r+"px"]:[t,r]},"parseFontSize");function ft(r,t){return ar({},r,t)}a(ft,"cleanAndMerge");var co={assignWithDepth:nr,wrapLabel:Dt,calculateTextHeight:mt,calculateTextWidth:j,calculateTextDimensions:ur,cleanAndMerge:ft,detectInit:Bt,detectDirective:Qr,isSubstringInArray:St,interpolateToCurve:Cr,calcLabelPosition:et,calcCardinalityPosition:Mt,calcTerminalLabelPosition:ot,formatUrl:rt,getStylesFromArray:it,generateId:Pt,random:Et,runFunc:It,entityDecode:$t,insertTitle:Nt,isLabelCoordinateInPath:st,parseFontSize:lr,InitIDGenerator:Tt},uo=a(function(r){let t=r;return t=t.replace(/style.*:\S*#.*;/g,function(o){return o.substring(0,o.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(o){return o.substring(0,o.length-1)}),t=t.replace(/#\w+;/g,function(o){let e=o.substring(1,o.length-1);return/^\+?\d+$/.test(e)?"\uFB02\xB0\xB0"+e+"\xB6\xDF":"\uFB02\xB0"+e+"\xB6\xDF"}),t},"encodeEntities"),lo=a(function(r){return r.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),yo=a((r,t,{counter:o=0,prefix:e,suffix:n},m)=>m||`${e?`${e}_`:""}${r}_${t}_${o}${n?`_${n}`:""}`,"getEdgeId");function vt(r){return r??null}a(vt,"handleUndefinedAttr");function st(r,t){let o=Math.round(r.x),e=Math.round(r.y),n=t.replace(/(\d+\.\d+)/g,m=>Math.round(parseFloat(m)).toString());return n.includes(o.toString())||n.includes(e.toString())}a(st,"isLabelCoordinateInPath");export{lt as a,xt as b,At as c,po as d,Cr as e,it as f,Pt as g,Et as h,Dt as i,mt as j,j as k,ur as l,Rt as m,Ft as n,lr as o,ft as p,co as q,uo as r,lo as s,yo as t,vt as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t,b as s,c as m,d as a,e as o,g as d,u as c,w as u,y as T}from"./chunk-LT6LXKCR.js";var l=class extends u{static{t(this,"TreeViewValueConverter")}runCustomConverter(r,e,n){if(r.name==="INDENTATION")return e?.length||0;if(r.name==="QUOTED_NAME")return e.substring(1,e.length-1);if(r.name==="BARE_NAME")return e.replace(/[\t ]+$/,"");if(r.name==="CLASS_ANNOTATION")return e.trim().substring(3).trim();if(r.name==="ICON_ANNOTATION"){let i=e.trim();return i.substring(5,i.length-1)}if(r.name==="DESC_ANNOTATION")return e.trim().substring(2).trim()}},N=class extends T{static{t(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},V={parser:{TokenBuilder:t(()=>new N,"TokenBuilder"),ValueConverter:t(()=>new l,"ValueConverter")}};function v(r=o){let e=a(m(r),d),n=a(s({shared:e}),c,V);return e.ServiceRegistry.register(n),{shared:e,TreeView:n}}t(v,"createTreeViewServices");export{V as a,v as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o,b as i,c as s,d as n,e as l,g as d,t as m,w as c,y as p}from"./chunk-LT6LXKCR.js";var f=class extends p{static{o(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},u=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,v=class extends c{static{o(this,"TreemapValueConverter")}runCustomConverter(r,e,t){if(r.name==="NUMBER2")return parseFloat(e.replace(/,/g,""));if(r.name==="SEPARATOR")return e.substring(1,e.length-1);if(r.name==="STRING2")return e.substring(1,e.length-1);if(r.name==="INDENTATION")return e.length;if(r.name==="ClassDef"){if(typeof e!="string")return e;let a=u.exec(e);if(a)return{$type:"ClassDefStatement",className:a[1],styleText:a[2]||void 0}}}};function T(r){let e=r.validation.TreemapValidator,t=r.validation.ValidationRegistry;if(t){let a={Treemap:e.checkSingleRoot.bind(e)};t.register(a,e)}}o(T,"registerValidationChecks");var g=class{static{o(this,"TreemapValidator")}checkSingleRoot(r,e){let t;for(let a of r.TreemapRows)a.item&&(t===void 0&&a.indent===void 0?t=0:a.indent===void 0?e("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}):t!==void 0&&t>=parseInt(a.indent,10)&&e("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}))}},h={parser:{TokenBuilder:o(()=>new f,"TokenBuilder"),ValueConverter:o(()=>new v,"ValueConverter")},validation:{TreemapValidator:o(()=>new g,"TreemapValidator")}};function C(r=l){let e=n(s(r),d),t=n(i({shared:e}),m,h);return e.ServiceRegistry.register(t),T(t),{shared:e,Treemap:t}}o(C,"createTreemapServices");export{h as a,C as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as F}from"./chunk-JD7ZBJD2.js";import{c as X,e as q,f as tt}from"./chunk-HOPPTA6H.js";import{a as H}from"./chunk-4QDE4SUK.js";import{b as ct,d as J,e as O}from"./chunk-QCJUF4YA.js";import{e as z}from"./chunk-BBD5CEDC.js";import{g as P}from"./chunk-KU6GTEMS.js";import{$ as Y,G as W,v as lt}from"./chunk-KT4VPQD5.js";import{b as N,d as j}from"./chunk-JRSH5GNS.js";import{a as M}from"./chunk-GYT4IYBZ.js";var ht=M(async(h,t,{variant:r="swimlane"}={})=>{let d=r==="pool",m=d?"pool swimlane":"swimlane",x=d?"pool-label swimlane-label":"swimlane-label",b=d?"pool-title swimlane-title":"swimlane-title",k=d?"pool-body swimlane-body":"swimlane-body",T=Y(),{theme:B,themeVariables:S,handDrawnSeed:o}=T,{clusterBkg:y,clusterBorder:a,borderColorArray:C}=S,s=a,{labelStyles:i,nodeStyles:e,borderStyles:w,backgroundStyles:n}=J(t),c=h.insert("g").attr("class","cluster "+m+" "+(t.cssClasses||"")).attr("id",t.domId??t.id).attr("data-id",t.id).attr("data-et","cluster").attr("data-look",t.look);P(c,t.colorIndex,B,C);let f=lt(T.flowchart.htmlLabels),g=t.direction==="LR",u=c.insert("g").attr("class","cluster-label "+x),D=await z(u,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0,width:t.width}),l=D.getBBox();if(f){let I=D.children[0],G=j(D);l=I.getBoundingClientRect(),G.attr("width",l.width),G.attr("height",l.height)}let R=t.padding??0,p=t.width<=l.width+R?l.width+R:t.width;t.width<=l.width+R?t.diff=(p-t.width)/2-R:t.diff=-R;let $=t.height,v=t.y-$/2,E=t.y+$/2,A=t.x-p/2,gt=t.swimlaneContentTop!==void 0?t.swimlaneContentTop:v+$/3,at=g?4:0,it=l.height+2*at,L,V;if(g){let I=Math.max(it,l.height+2*at),G=A+I,_=Math.max(0,p-I);if(t.look==="handDrawn"){let Q=H.svg(c),rt=O(t,{roughness:.7,fill:y,stroke:s,seed:o}),Z=O(t,{roughness:.7,fill:"none",stroke:s,seed:o}),st=Q.rectangle(A,v,I,$,rt);L=c.insert(()=>st,":first-child").attr("class",b);let et=Q.rectangle(G,v,_,$,Z);V=c.insert(()=>et,":first-child").attr("class",k),L.select("path:nth-child(2)").attr("style",w.join(";")),L.select("path").attr("style",n.join(";").replace("fill","stroke"))}else L=c.insert("rect",":first-child"),V=c.insert("rect",":first-child"),L.attr("class",b).attr("style",e).attr("x",A).attr("y",v).attr("width",I).attr("height",$).attr("fill",y).attr("stroke",s),V.attr("class",k).attr("style",e).attr("x",G).attr("y",v).attr("width",_).attr("height",$).attr("fill","none").attr("stroke",s);let K=A+I/2,U=t.y;u.attr("transform",`translate(${K}, ${U}) rotate(-90) translate(${-l.width/2}, ${-l.height/2})`)}else{let I=Math.max(0,gt-v),G=Math.min(it,I),_=v+G,K=Math.max(0,E-_),U=t.x-p/2;if(t.look==="handDrawn"){let Z=H.svg(c),st=O(t,{roughness:.7,fill:y,stroke:s,fillWeight:3,seed:o}),et=O(t,{roughness:.7,fill:"none",stroke:s,seed:o}),dt=Z.rectangle(U,v,p,G,st);L=c.insert(()=>dt,":first-child").attr("class",b);let ft=Z.rectangle(U,_,p,K,et);V=c.insert(()=>ft,":first-child").attr("class",k),L.select("path:nth-child(2)").attr("style",w.join(";")),L.select("path").attr("style",n.join(";").replace("fill","stroke"))}else L=c.insert("rect",":first-child"),V=c.insert("rect",":first-child"),L.attr("class",b).attr("style",e).attr("x",U).attr("y",v).attr("width",p).attr("height",G).attr("fill",y).attr("stroke",s),V.attr("class",k).attr("style",e).attr("x",U).attr("y",_).attr("width",p).attr("height",K).attr("fill","none").attr("stroke",s);let Q=t.x-l.width/2,rt=v+(G-l.height)/2;u.attr("transform",`translate(${Q}, ${rt})`)}if(N.trace("Swimlane data ",t,JSON.stringify(t)),i){let I=u.select("span");I&&I.attr("style",i)}return t.offsetX=0,t.width=p,t.height=$,t.offsetY=l.height-R/2,t.intersect=function(I){return X(t,I)},{cluster:c,labelBBox:l}},"swimlane"),ot=M(async(h,t)=>{N.info("Creating subgraph rect for ",t.id,t);let r=Y(),{theme:d,themeVariables:m,handDrawnSeed:x}=r,{clusterBkg:b,clusterBorder:k,borderColorArray:T}=m,{labelStyles:B,nodeStyles:S,borderStyles:o,backgroundStyles:y}=J(t),a=h.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look);P(a,t.colorIndex,d,T);let C=W(r),s=a.insert("g").attr("class","cluster-label "),i;t.labelType==="markdown"?i=await z(s,t.label,{style:t.labelStyle,useHtmlLabels:C,isNode:!0,width:t.width}):i=await tt(s,t.label,t.labelStyle||"",!1,!0);let e=i.getBBox();if(W(r)){let l=i.children[0],R=j(i);e=l.getBoundingClientRect(),R.attr("width",e.width),R.attr("height",e.height)}let w=t.width<=e.width+t.padding?e.width+t.padding:t.width;t.width<=e.width+t.padding?t.diff=(w-t.width)/2-t.padding:t.diff=-t.padding;let n=t.height,c=t.x-w/2,f=t.y-n/2;N.trace("Data ",t,JSON.stringify(t));let g;if(t.look==="handDrawn"){let l=H.svg(a),R=O(t,{roughness:.7,fill:b,stroke:k,fillWeight:3,seed:x}),p=l.path(q(c,f,w,n,0),R);g=a.insert(()=>(N.debug("Rough node insert CXC",p),p),":first-child"),g.select("path:nth-child(2)").attr("style",o.join(";")),g.select("path").attr("style",y.join(";").replace("fill","stroke"))}else g=a.insert("rect",":first-child"),g.attr("style",S).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",f).attr("width",w).attr("height",n);let{subGraphTitleTopMargin:u}=F(r);if(s.attr("transform",`translate(${t.x-e.width/2}, ${t.y-t.height/2+u})`),B){let l=s.select("span");l&&l.attr("style",B)}let D=g.node().getBBox();return t.offsetX=0,t.width=D.width,t.height=D.height,t.offsetY=e.height-t.padding/2,t.intersect=function(l){return X(t,l)},{cluster:a,labelBBox:e}},"rect"),ut=M((h,t)=>{let r=h.insert("g").attr("class","note-cluster").attr("id",t.domId),d=r.insert("rect",":first-child"),m=0*t.padding,x=m/2;d.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-x).attr("y",t.y-t.height/2-x).attr("width",t.width+m).attr("height",t.height+m).attr("fill","none");let b=d.node().getBBox();return t.width=b.width,t.height=b.height,t.intersect=function(k){return X(t,k)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),yt=M(async(h,t)=>{let r=Y(),{theme:d,themeVariables:m,handDrawnSeed:x}=r,{altBackground:b,borderColorArray:k,compositeBackground:T,compositeTitleBackground:B,nodeBorder:S}=m,o=h.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look);P(o,t.colorIndex,d,k);let y=o.insert("g",":first-child"),a=o.insert("g").attr("class","cluster-label"),C=o.append("rect"),s=await tt(a,t.label,t.labelStyle,void 0,!0),i=s.getBBox();if(W(r)){let p=s.children[0],$=j(s);i=p.getBoundingClientRect(),$.attr("width",i.width),$.attr("height",i.height)}let e=0*t.padding,w=e/2,n=(t.width<=i.width+t.padding?i.width+t.padding:t.width)+e;t.width<=i.width+t.padding?t.diff=(n-t.width)/2-t.padding:t.diff=-t.padding;let c=t.height+e,f=t.height+e-i.height-6,g=t.x-n/2,u=t.y-c/2;t.width=n;let D=t.y-t.height/2-w+i.height+2,l;if(t.look==="handDrawn"){let p=t.cssClasses.includes("statediagram-cluster-alt"),$=H.svg(o),v=t.rx||t.ry?$.path(q(g,u,n,c,10),{roughness:.7,fill:B,fillStyle:"solid",stroke:S,seed:x}):$.rectangle(g,u,n,c,{seed:x});l=o.insert(()=>v,":first-child");let E=$.rectangle(g,D,n,f,{fill:p?b:T,fillStyle:p?"hachure":"solid",stroke:S,seed:x});l=o.insert(()=>v,":first-child"),C=o.insert(()=>E),l.attr("class","outer"),C.attr("class","inner")}else l=y.insert("rect",":first-child"),l.attr("class","outer").attr("x",g).attr("y",u).attr("width",n).attr("height",c).attr("data-look",t.look),C.attr("class","inner").attr("x",g).attr("y",D).attr("width",n).attr("height",f);a.attr("transform",`translate(${t.x-i.width/2}, ${u+1-(W(r)?0:3)})`);let R=l.node().getBBox();return t.height=R.height,t.offsetX=0,t.offsetY=i.height-t.padding/2,t.labelBBox=i,t.intersect=function(p){return X(t,p)},{cluster:o,labelBBox:i}},"roundedWithTitle"),wt=M(async(h,t)=>{N.info("Creating subgraph rect for ",t.id,t);let r=Y(),{themeVariables:d,handDrawnSeed:m}=r,{clusterBkg:x,clusterBorder:b}=d,{labelStyles:k,nodeStyles:T,borderStyles:B,backgroundStyles:S}=J(t),o=h.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),y=W(r),a=o.insert("g").attr("class","cluster-label "),C=await z(a,t.label,{style:t.labelStyle,useHtmlLabels:y,isNode:!0,width:t.width}),s=C.getBBox();if(W(r)){let u=C.children[0],D=j(C);s=u.getBoundingClientRect(),D.attr("width",s.width),D.attr("height",s.height)}let i=t.width<=s.width+t.padding?s.width+t.padding:t.width;t.width<=s.width+t.padding?t.diff=(i-t.width)/2-t.padding:t.diff=-t.padding;let e=t.height,w=t.x-i/2,n=t.y-e/2;N.trace("Data ",t,JSON.stringify(t));let c;if(t.look==="handDrawn"){let u=H.svg(o),D=O(t,{roughness:.7,fill:x,stroke:b,fillWeight:4,seed:m}),l=u.path(q(w,n,i,e,t.rx),D);c=o.insert(()=>(N.debug("Rough node insert CXC",l),l),":first-child"),c.select("path:nth-child(2)").attr("style",B.join(";")),c.select("path").attr("style",S.join(";").replace("fill","stroke"))}else c=o.insert("rect",":first-child"),c.attr("style",T).attr("rx",t.rx).attr("ry",t.ry).attr("x",w).attr("y",n).attr("width",i).attr("height",e);let{subGraphTitleTopMargin:f}=F(r);if(a.attr("transform",`translate(${t.x-s.width/2}, ${t.y-t.height/2+f})`),k){let u=a.select("span");u&&u.attr("style",k)}let g=c.node().getBBox();return t.offsetX=0,t.width=g.width,t.height=g.height,t.offsetY=s.height-t.padding/2,t.intersect=function(u){return X(t,u)},{cluster:o,labelBBox:s}},"kanbanSection"),bt=M((h,t)=>{let r=Y(),{theme:d,themeVariables:m,handDrawnSeed:x}=r,{altBackground:b,nodeBorder:k,borderColorArray:T}=m,B=h.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look);P(B,t.colorIndex,d,T);let S=B.insert("g",":first-child"),o=0*t.padding,y=t.width+o;t.diff=-t.padding;let a=t.height+o,C=t.x-y/2,s=t.y-a/2;t.width=y;let i;if(t.look==="handDrawn"){let n=H.svg(B).rectangle(C,s,y,a,{fill:b??"#efefef",fillStyle:"solid",roughness:.5,strokeLineDash:[5],stroke:k,seed:x});i=B.insert(()=>n,":first-child").attr("class","divider")}else{i=S.insert("rect",":first-child");let w="outer";t.look,w="divider",i.attr("class",w).attr("x",C).attr("y",s).attr("width",y).attr("height",a).attr("data-look",t.look)}let e=i.node().getBBox();return t.height=e.height,t.offsetX=0,t.offsetY=0,t.intersect=function(w){return X(t,w)},{cluster:B,labelBBox:{}}},"divider"),pt=M(async(h,t,r)=>{N.info(`Creating ${r.cssClass} for `,t.id,t);let d=Y(),{theme:m,themeVariables:x,handDrawnSeed:b}=d,{borderColorArray:k}=x,{labelStyles:T,borderStyles:B}=J(t),S=h.insert("g").attr("class","cluster "+r.cssClass+" "+t.cssClasses).attr("id",t.domId??t.id).attr("data-look",t.look);P(S,t.colorIndex,m,k);let o=W(d),y=S.insert("g").attr("class","cluster-label"),a={width:0,height:0},C=t.label?.trim();if(C){let f;if(t.labelType==="markdown"?f=await z(y,t.label,{style:t.labelStyle,useHtmlLabels:o,isNode:!0,width:t.width}):f=await tt(y,t.label,t.labelStyle||"",!1,!0),a=f.getBBox(),o){let g=f.children[0],u=j(f);a=g.getBoundingClientRect(),u.attr("width",a.width),u.attr("height",a.height)}}let s=t.width<=a.width+t.padding?a.width+t.padding:t.width;t.width<=a.width+t.padding?t.diff=(s-t.width)/2-t.padding:t.diff=-t.padding;let i=t.height,e=t.x-s/2,w=t.y-i/2,n;if(t.look==="handDrawn"){let f=H.svg(S),g=O(t,{roughness:r.roughness,fill:r.fill,stroke:r.stroke,strokeWidth:r.strokeWidth,seed:b,...r.fill==="none"?{fillWeight:0}:{fillStyle:"solid"},...r.strokeDash?{strokeLineDash:r.strokeDash}:{}}),u=f.path(q(e,w,s,i,r.rx),g);n=S.insert(()=>u,":first-child"),n.select("path:nth-child(2)").attr("style",B.join(";"))}else n=S.insert("rect",":first-child"),n.attr("rx",r.rx).attr("ry",r.rx).attr("x",e).attr("y",w).attr("width",s).attr("height",i).attr("fill",r.fill).attr("stroke",r.stroke).attr("stroke-width",r.strokeWidth+"px"),r.strokeDash&&n.attr("stroke-dasharray",r.strokeDash.join(", "));if(C){let{subGraphTitleTopMargin:f}=F(d);if(y.attr("transform",`translate(${t.x-a.width/2}, ${t.y-t.height/2+f})`),T){let g=y.select("span");g&&g.attr("style",T)}}let c=n.node().getBBox();return t.offsetX=0,t.width=c.width,t.height=c.height,t.offsetY=a.height-t.padding/2,t.intersect=function(f){return X(t,f)},{cluster:S,labelBBox:a}},"createContainerGroup"),mt=M(async(h,t)=>{let{themeVariables:r}=Y(),d=r.flowContainerStroke||r.secondaryBorderColor;return pt(h,t,{cssClass:"flow-cluster",rx:10,fill:"none",stroke:d,strokeWidth:.75,roughness:.7})},"flowGroup"),xt=M((h,t)=>{let r=h.boundaryType||"rect",d=r==="package"?20:h.padding,m=r==="package"?t.height+10:0,x=Math.max(h.width,t.width+d),b=r==="package"?Math.max(h.height,m+h.padding*2):h.height,k=h.x-x/2,T=h.y-b/2;return{boundaryType:r,width:x,height:b,x:k,y:T,bodyY:T+m,bodyHeight:b-m,tabHeight:m,tabWidth:r==="package"?Math.min(x,Math.max(80,t.width+20)):0}},"getUsecaseSystemBoundaryGeometry"),kt=M(async(h,t)=>{N.info("Creating usecase system boundary for ",t.id,t);let r=Y(),{theme:d,themeVariables:m,handDrawnSeed:x}=r,{clusterBkg:b,clusterBorder:k,borderColorArray:T}=m,{labelStyles:B,nodeStyles:S}=J(t),{stylesMap:o}=ct(t),y=t.boundaryType||"rect",a=h.insert("g").attr("class",`cluster usecase-system-boundary usecase-system-boundary-${y} ${t.cssClasses}`).attr("id",typeof t.domId=="string"?t.domId:t.id).attr("data-boundary-type",y).attr("data-look",t.look);P(a,t.colorIndex,d,T);let C=W(r),s=a.insert("g").attr("class","cluster-label system-boundary-title"),i=await z(s,t.label,{style:B,useHtmlLabels:C,isNode:!0}),e=i.getBBox();if(C){let v=i.children[0],E=j(i);e=v.getBoundingClientRect(),E.attr("width",e.width),E.attr("height",e.height)}let w=xt(t,e),{width:n,height:c,x:f,y:g,bodyY:u,bodyHeight:D,tabHeight:l,tabWidth:R}=w;t.diff=t.width<=e.width+t.padding?(n-t.width)/2-t.padding:-t.padding;let p=O(t,{fill:o.get("fill")||b,stroke:o.get("stroke")||k,strokeWidth:o.get("stroke-width")?.replace("px","")||1,seed:x});if(t.look==="handDrawn"){let v=H.svg(a),E=v.rectangle(f,u,n,D,p);if(a.insert(()=>E,":first-child").attr("class","boundary-body label-container"),y==="package"){let A=v.rectangle(f,g,R,l,p);a.insert(()=>A,":first-child").attr("class","boundary-tab system-boundary-package-tab label-container")}}else a.insert("rect",":first-child").attr("class","boundary-body label-container").attr("style",S).attr("x",f).attr("y",u).attr("width",n).attr("height",D),y==="package"&&a.insert("rect",":first-child").attr("class","boundary-tab system-boundary-package-tab label-container").attr("style",S).attr("x",f).attr("y",g).attr("width",R).attr("height",l);let{subGraphTitleTopMargin:$}=F(r);return y==="package"?s.attr("transform",`translate(${f+(R-e.width)/2}, ${g+(l-e.height)/2})`):s.attr("transform",`translate(${t.x-e.width/2}, ${g+$})`),B&&(s.attr("style",B),s.select("span").attr("style",B)),t.offsetX=0,t.width=n,t.height=c,t.offsetY=e.height-t.padding/2,t.labelBBox=e,t.intersect=function(v){return X(t,v)},{cluster:a,labelBBox:e}},"usecaseSystemBoundary"),Bt=ot,St=M((h,t)=>ht(h,t,{variant:"pool"}),"pool"),Ct={rect:ot,squareRect:Bt,roundedWithTitle:yt,noteGroup:ut,divider:bt,kanbanSection:wt,flowGroup:mt,usecaseSystemBoundary:kt,swimlane:ht,pool:St},vt=new Set(["noteGroup","divider"]),Ot=M(h=>!vt.has(h??"rect"),"clusterPaintsTitle"),nt=new Map,Xt=M(async(h,t)=>{let r=t.shape||"rect",d=await Ct[r](h,t);return nt.set(t.id,d),d},"insertCluster"),Et=M(()=>{nt=new Map},"clear");export{Ot as a,Xt as b,Et as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t,b as s,c as u,d as i,e as n,g as o,h as l,w as d,y as h}from"./chunk-LT6LXKCR.js";var m=class extends h{static{t(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},A=class extends d{static{t(this,"ArchitectureValueConverter")}runCustomConverter(c,r,a){if(c.name==="ARCH_ICON")return r.replace(/[()]/g,"").trim();if(c.name==="ARCH_TEXT_ICON")return r.replace(/["()]/g,"");if(c.name==="ARCH_TITLE"){let e=r.replace(/^\[|]$/g,"").trim();return(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,'"').replace(/\\'/g,"'")),e.trim()}}},C={parser:{TokenBuilder:t(()=>new m,"TokenBuilder"),ValueConverter:t(()=>new A,"ValueConverter")}};function v(c=n){let r=i(u(c),o),a=i(s({shared:r}),l,C);return r.ServiceRegistry.register(a),{shared:r,Architecture:a}}t(v,"createArchitectureServices");export{C as a,v as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as o}from"./chunk-JRSH5GNS.js";import{a as m}from"./chunk-GYT4IYBZ.js";var g=m((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{g as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r,b as o,c as l,d,e as n,g as s,v as u,w as c}from"./chunk-LT6LXKCR.js";var i=class extends c{static{r(this,"WardleyValueConverter")}runCustomConverter(t,e,a){if(t.name.toUpperCase()==="LINK_LABEL")return e.substring(1).trim()}},m={parser:{ValueConverter:r(()=>new i,"ValueConverter")}};function v(t=n){let e=d(l(t),s),a=d(o({shared:e}),u,m);return e.ServiceRegistry.register(a),{shared:e,Wardley:a}}r(v,"createWardleyServices");export{m as a,v as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as s}from"./chunk-KT4VPQD5.js";import{d as e}from"./chunk-JRSH5GNS.js";import{a as n}from"./chunk-GYT4IYBZ.js";var a=n(t=>{let{securityLevel:c}=s(),o=e("body");if(c==="sandbox"){let m=e(`#i${t}`).node()?.contentDocument??document;o=e(m.body)}return o.select(`#${t}`)},"selectSvgElement");export{a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as o,c as n,d as i,e as s,g as u,n as d,w as c,y as l}from"./chunk-LT6LXKCR.js";var m=class extends l{static{e(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},v=class extends c{static{e(this,"PieValueConverter")}runCustomConverter(t,r,a){if(t.name==="PIE_SECTION_LABEL")return r.replace(/"/g,"").trim()}},C={parser:{TokenBuilder:e(()=>new m,"TokenBuilder"),ValueConverter:e(()=>new v,"ValueConverter")}};function P(t=s){let r=i(n(t),u),a=i(o({shared:r}),d,C);return r.ServiceRegistry.register(a),{shared:r,Pie:a}}e(P,"createPieServices");export{C as a,P as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-GYT4IYBZ.js";var w=a((t,p)=>{let{theme:i,themeVariables:s}=p,{useGradient:c,gradientStart:l,gradientStop:f}=s??{},o=t.attr("id"),h=i?.includes("dark")?"#FFFFFF":"#000000",r=a((g,e,n)=>t.append("defs").append("filter").attr("id",g).attr("height",e).attr("width",e).append("feDropShadow").attr("dx",n).attr("dy",n).attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",h),"dropShadow");if(r(`${o}-drop-shadow`,"130%","4"),r(`${o}-drop-shadow-small`,"150%","2"),!c)return;let d=t.append("linearGradient").attr("id",`${o}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");d.append("svg:stop").attr("offset","0%").attr("stop-color",l).attr("stop-opacity",1),d.append("svg:stop").attr("offset","100%").attr("stop-color",f).attr("stop-opacity",1)},"insertLookDefs");export{w as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as o,b as d,c,d as i,e as l,g as u,q as f,w as E,y as m}from"./chunk-LT6LXKCR.js";var b=class extends m{static{o(this,"RailroadEbnfTokenBuilder")}constructor(){super(["railroad-ebnf-beta"])}},v=o(a=>{let e=a.slice(1,-1),r="";for(let t=0;t<e.length;t++){let n=e[t];if(n==="\\"&&t+1<e.length){t++;let s=e[t];switch(s){case"n":r+=`
|
|
2
|
+
`;break;case"r":r+="\r";break;case"t":r+=" ";break;default:r+=s}continue}r+=n}return r},"decodeEscapedString"),h=class extends E{static{o(this,"RailroadEbnfValueConverter")}runConverter(a,e,r){let t=super.runConverter(a,e,r);if(a.name==="TITLE"&&typeof t=="string"){let n=t.trim();if(n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'"))return v(n)}return t}runCustomConverter(a,e,r){if(a.name==="EBNF_STRING")return v(e);if(a.name==="EBNF_SPECIAL_SEQUENCE")return e.slice(1,-1).trim()}},C={parser:{TokenBuilder:o(()=>new b,"TokenBuilder"),ValueConverter:o(()=>new h,"ValueConverter")}};function R(a=l){let e=i(c(a),u),r=i(d({shared:e}),f,C);return e.ServiceRegistry.register(r),{shared:e,RailroadEbnf:r}}o(R,"createRailroadEbnfServices");export{C as a,R as b};
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import{a as dt}from"./chunk-C6J4A356.js";import{h as ht}from"./chunk-I3DMZIHV.js";import{a as pt}from"./chunk-VM2H7G2R.js";import{a as At}from"./chunk-26TUJSYJ.js";import{b as ot,c as ct}from"./chunk-6T55RVVR.js";import"./chunk-ZMCB7VP2.js";import"./chunk-R63JUMUK.js";import"./chunk-K2KLZU7M.js";import"./chunk-JD7ZBJD2.js";import"./chunk-HOPPTA6H.js";import"./chunk-4QDE4SUK.js";import"./chunk-QCJUF4YA.js";import"./chunk-BBD5CEDC.js";import"./chunk-ISO77HML.js";import{b as rt,c as nt,d as lt,f as ut}from"./chunk-KU6GTEMS.js";import{q as be,t as at}from"./chunk-QEEA3KYY.js";import"./chunk-OFZLK5G4.js";import{$ as F,I as qe,K as P,O as v,U as Je,V as Ze,W as $e,X as et,Y as tt,Z as st,_ as it,g as He}from"./chunk-KT4VPQD5.js";import{b as Ae,d as $}from"./chunk-JRSH5GNS.js";import{a as b}from"./chunk-GYT4IYBZ.js";import"./chunk-3RNHDNP5.js";var Me=(function(){var t=b(function(O,c,d,p){for(d=d||{},p=O.length;p--;d[O[p]]=c);return d},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],o=[1,26],h=[1,42],u=[1,24],f=[1,25],k=[1,32],_=[1,33],U=[1,34],g=[1,45],ke=[1,35],me=[1,36],ge=[1,37],Ce=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],C=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],ee=[1,58],te=[1,59],se=[1,60],ie=[1,61],ae=[1,62],_e=[1,63],Se=[1,64],S=[1,8,9,41],Ve=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],re=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ne=[13,60,86,100,102,103],z=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],le=[1,103],Y=[1,121],K=[1,117],W=[1,113],Q=[1,119],j=[1,114],X=[1,115],H=[1,116],q=[1,118],J=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],ue=[12,39],Ne=[1,8,9,39,41,44,46],oe=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:b(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:b(function(c,d,p,l,m,e,Z){var s=e.length-1;switch(m){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:o,48:h,51:u,52:f,54:k,56:_,57:U,60:g,62:ke,63:me,64:ge,65:Ce,75:Ee,76:Te,78:ye,82:De,83:Fe,86:C,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Be,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:ee,69:te,70:se,71:ie,72:ae,73:_e,74:Se}),{39:[1,65]},t(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:g,86:C,100:E,102:T},{16:39,17:40,19:70,60:g,86:C,100:E,102:T,103:y},{16:39,17:40,19:71,60:g,86:C,100:E,102:T,103:y},{16:39,17:40,19:72,60:g,86:C,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:g,86:C,100:E,102:T,103:y},{13:Ve,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:g,86:C,100:E,102:T,103:y}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:g,86:C,100:E,102:T,103:y},{16:39,17:40,19:87,60:g,86:C,100:E,102:T,103:y},t(re,[2,133]),t(re,[2,134]),t(re,[2,135]),t(re,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:o,48:h,51:u,52:f,54:k,56:_,57:U,60:g,62:ke,63:me,64:ge,65:Ce,75:Ee,76:Te,78:ye,82:De,83:Fe,86:C,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:o,48:h,51:u,52:f,54:k,56:_,57:U,60:g,62:ke,63:me,64:ge,65:Ce,75:Ee,76:Te,78:ye,82:De,83:Fe,86:C,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:g,86:C,100:E,102:T,103:y},{53:92,66:56,67:57,68:ee,69:te,70:se,71:ie,72:ae,73:_e,74:Se},t(A,[2,64]),{67:93,73:_e,74:Se},t(ne,[2,83],{66:94,68:ee,69:te,70:se,71:ie,72:ae}),t(z,[2,84]),t(z,[2,85]),t(z,[2,86]),t(z,[2,87]),t(z,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:h,54:k,56:_},{16:100,60:g,86:C,100:E,102:T},{41:[1,102],45:101,51:le},{16:104,60:g,86:C,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:Y,50:K,59:110,60:W,82:Q,84:111,85:112,86:j,87:X,88:H,89:q,90:J},{60:[1,122]},{13:Ve,55:123},t(S,[2,72]),t(S,[2,138]),{22:Y,50:K,59:124,60:W,61:[1,125],82:Q,84:111,85:112,86:j,87:X,88:H,89:q,90:J},t(Ge,[2,74]),{16:39,17:40,19:126,60:g,86:C,100:E,102:T,103:y},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(ue,[2,9],{16:85,17:86,15:130,18:[1,129],60:g,86:C,100:E,102:T,103:y}),t(ue,[2,10]),t(Ne,[2,55],{11:131,12:Ue}),t(Be,[2,7]),{9:[1,132]},t(oe,[2,67]),{16:39,17:40,19:133,60:g,86:C,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:g,86:C,100:E,102:T,103:y},t(ne,[2,82],{66:136,68:ee,69:te,70:se,71:ie,72:ae}),t(ne,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:h,54:k,56:_},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(S,[2,48],{39:[1,142]}),{41:[1,143]},t(S,[2,50]),{41:[2,61],45:144,51:le},{47:[1,145]},{16:39,17:40,19:146,60:g,86:C,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:Y,50:K,60:W,82:Q,86:j,87:X,88:H,89:q,90:J}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(S,[2,71]),t(A,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:g,86:C,100:E,102:T,103:y},t(ue,[2,12]),t(Ne,[2,56]),{1:[2,4]},t(oe,[2,69]),t(oe,[2,68]),{16:39,17:40,19:158,60:g,86:C,100:E,102:T,103:y},t(ne,[2,80]),t(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:h,54:k,56:_},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:h,54:k,56:_},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:h,54:k,56:_},{45:163,51:le},t(S,[2,49]),{41:[2,62]},t(S,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:Y,50:K,60:W,82:Q,84:169,85:112,86:j,87:X,88:H,89:q,90:J},t(x,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(ue,[2,11]),t(oe,[2,70]),t(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:le},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:Y,50:K,60:W,82:Q,86:j,87:X,88:H,89:q,90:J}),t(Ne,[2,8]),t(S,[2,51]),{41:[1,175]},t(S,[2,54]),t(A,[2,104]),t(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:b(function(c,d){if(d.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=d,p}},"parseError"),parse:b(function(c){var d=this,p=[0],l=[],m=[null],e=[],Z=this.table,s="",he=0,Ke=0,We=0,gt=2,Qe=1,Ct=e.slice.call(arguments,1),D=Object.create(this.lexer),w={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(w.yy[xe]=this.yy[xe]);D.setInput(c,w.yy),w.yy.lexer=D,w.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var Et=D.options&&D.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Tt(N){p.length=p.length-2*N,m.length=m.length-N,e.length=e.length-N}b(Tt,"popStack");function je(){var N;return N=l.pop()||D.lex()||Qe,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=d.symbols_[N]||N),N}b(je,"lex");for(var B,Ie,M,L,vt,Oe,G={},de,I,Xe,pe;;){if(M=p[p.length-1],this.defaultActions[M]?L=this.defaultActions[M]:((B===null||typeof B>"u")&&(B=je()),L=Z[M]&&Z[M][B]),typeof L>"u"||!L.length||!L[0]){var we="";pe=[];for(de in Z[M])this.terminals_[de]&&de>gt&&pe.push("'"+this.terminals_[de]+"'");D.showPosition?we="Parse error on line "+(he+1)+`:
|
|
2
|
+
`+D.showPosition()+`
|
|
3
|
+
Expecting `+pe.join(", ")+", got '"+(this.terminals_[B]||B)+"'":we="Parse error on line "+(he+1)+": Unexpected "+(B==Qe?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(we,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:ve,expected:pe})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+B);switch(L[0]){case 1:p.push(B),m.push(D.yytext),e.push(D.yylloc),p.push(L[1]),B=null,Ie?(B=Ie,Ie=null):(Ke=D.yyleng,s=D.yytext,he=D.yylineno,ve=D.yylloc,We>0&&We--);break;case 2:if(I=this.productions_[L[1]][1],G.$=m[m.length-I],G._$={first_line:e[e.length-(I||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(I||1)].first_column,last_column:e[e.length-1].last_column},Et&&(G._$.range=[e[e.length-(I||1)].range[0],e[e.length-1].range[1]]),Oe=this.performAction.apply(G,[s,Ke,he,w.yy,L[1],m,e].concat(Ct)),typeof Oe<"u")return Oe;I&&(p=p.slice(0,-1*I*2),m=m.slice(0,-1*I),e=e.slice(0,-1*I)),p.push(this.productions_[L[1]][0]),m.push(G.$),e.push(G._$),Xe=Z[p[p.length-2]][p[p.length-1]],p.push(Xe);break;case 3:return!0}}return!0},"parse")},mt=(function(){var O={EOF:1,parseError:b(function(d,p){if(this.yy.parser)this.yy.parser.parseError(d,p);else throw new Error(d)},"parseError"),setInput:b(function(c,d){return this.yy=d||this.yy||{},this._input=c,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:b(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var d=c.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:b(function(c){var d=c.length,p=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var l=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),p.length-1&&(this.yylineno-=p.length-1);var m=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:p?(p.length===l.length?this.yylloc.first_column:0)+l[l.length-p.length].length-p[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:b(function(){return this._more=!0,this},"more"),reject:b(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:b(function(c){this.unput(this.match.slice(c))},"less"),pastInput:b(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:b(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:b(function(){var c=this.pastInput(),d=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
|
|
5
|
+
`+d+"^"},"showPosition"),test_match:b(function(c,d){var p,l,m;if(this.options.backtrack_lexer&&(m={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(m.yylloc.range=this.yylloc.range.slice(0))),l=c[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,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(c[0].length),this.matched+=c[0],p=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),p)return p;if(this._backtrack){for(var e in m)this[e]=m[e];return!1}return!1},"test_match"),next:b(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var c,d,p,l;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),e=0;e<m.length;e++)if(p=this._input.match(this.rules[m[e]]),p&&(!d||p[0].length>d[0].length)){if(d=p,l=e,this.options.backtrack_lexer){if(c=this.test_match(p,m[e]),c!==!1)return c;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(c=this.test_match(d,m[l]),c!==!1?c:!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:b(function(){var d=this.next();return d||this.lex()},"lex"),begin:b(function(d){this.conditionStack.push(d)},"begin"),popState:b(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:b(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:b(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),pushState:b(function(d){this.begin(d)},"pushState"),stateStackSize:b(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:b(function(d,p,l,m){var e=m;switch(l){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),35;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 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;break;case 30:return this.popState(),8;break;case 31:break;case 32:return this.begin("namespace-body"),39;break;case 33:this.popState(),this.less(0);break;case 34:return this.popState(),41;break;case 35:return"EOF_IN_STRUCT";case 36:return 8;case 37:break;case 38:return"EDGE_STATE";case 39:return this.begin("class"),48;break;case 40:return this.popState(),8;break;case 41:break;case 42:return this.popState(),this.popState(),41;break;case 43:return this.begin("class-body"),39;break;case 44:return this.popState(),41;break;case 45:return"EOF_IN_STRUCT";case 46:return"EDGE_STATE";case 47:return"OPEN_IN_STRUCT";case 48:break;case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 59:this.popState();break;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 62:this.popState();break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 77;case 69:return 69;case 70:return 69;case 71:return 71;case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:return 89;case 86:return 89;case 87:return 90;case 88:return"EQUALS";case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:return 50;case 97:return 50;case 98:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}};return O})();Le.lexer=mt;function ce(){this.yy={}}return b(ce,"Parser"),ce.prototype=Le,Le.Parser=ce,new ce})();Me.parser=Me;var yt=Me,bt=["#","+","~","-",""],ft=class{static{b(this,"ClassMember")}constructor(t,i){this.memberType=i,this.visibility="",this.classifier="",this.text="";let a=qe(t,F());this.parseMember(a)}getDisplayDetails(){let t=this.visibility+P(this.id);this.memberType==="method"&&(t+=`(${P(this.parameters.trim())})`,this.returnType&&(t+=" : "+P(this.returnType))),t=t.trim();let i=this.parseClassifier();return{displayText:t,cssStyle:i}}parseMember(t){let i="";if(this.memberType==="method"){let n=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(n){let o=n[1]?n[1].trim():"";if(bt.includes(o)&&(this.visibility=o),this.id=n[2],this.parameters=n[3]?n[3].trim():"",i=n[4]?n[4].trim():"",this.returnType=n[5]?n[5].trim():"",i===""){let h=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(h)&&(i=h,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let r=t.length,n=t.substring(0,1),o=t.substring(r-1);bt.includes(n)&&(this.visibility=n),/[$*]/.exec(o)&&(i=o),this.id=t.substring(this.visibility===""?0:1,i===""?r:r-1)}this.classifier=i,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();let a=`${this.visibility?"\\"+this.visibility:""}${P(this.id)}${this.memberType==="method"?`(${P(this.parameters)})${this.returnType?" : "+P(this.returnType):""}`:""}`;this.text=a.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<")&&(this.text=this.text.replace("\\<","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},fe="classId-",kt=0,V=b(t=>v.sanitizeText(t,F()),"sanitizeText"),Dt=class Pe{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=b(i=>{let a=ht();$(i).select("svg").selectAll("g").filter(function(){return $(this).attr("title")!==null}).on("mouseover",o=>{let h=$(o.currentTarget),u=h.attr("title");if(!u)return;let f=o.currentTarget.getBoundingClientRect();a.transition().duration(200).style("opacity",".9"),a.html(He.sanitize(u)).style("left",`${window.scrollX+f.left+f.width/2}px`).style("top",`${window.scrollY+f.bottom+4}px`),h.classed("hover",!0)}).on("mouseout",o=>{a.transition().duration(500).style("opacity",0),$(o.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=Ze,this.getAccTitle=$e,this.setAccDescription=et,this.getAccDescription=tt,this.setDiagramTitle=st,this.getDiagramTitle=it,this.getConfig=b(()=>F().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{b(this,"ClassDB")}splitClassNameAndType(i){let a=v.sanitizeText(i,F()),r="",n=a;if(a.indexOf("~")>0){let o=a.split("~");n=V(o[0]),r=V(o[1])}return{className:n,type:r}}setClassLabel(i,a){let r=v.sanitizeText(i,F());a&&(a=V(a));let{className:n}=this.splitClassNameAndType(r);this.classes.get(n).label=a,this.classes.get(n).text=`${a}${this.classes.get(n).type?`<${this.classes.get(n).type}>`:""}`}addClass(i){let a=v.sanitizeText(i,F()),{className:r,type:n}=this.splitClassNameAndType(a);if(this.classes.has(r))return;let o=v.sanitizeText(r,F());this.classes.set(o,{id:o,type:n,label:o,text:`${o}${n?`<${n}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:fe+o+"-"+kt}),kt++}addInterface(i,a){let r={id:`interface${this.interfaces.length}`,label:i,classId:a};this.interfaces.push(r)}setDiagramId(i){this.diagramId=i}lookUpDomId(i){let a=v.sanitizeText(i,F());if(this.classes.has(a)){let r=this.classes.get(a).domId;return this.diagramId?`${this.diagramId}-${r}`:r}throw new Error("Class not found: "+a)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",Je()}getClass(i){return this.classes.get(i)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(i){let a=typeof i=="number"?`note${i}`:i;return this.notes.get(a)}getNotes(){return this.notes}addRelation(i){Ae.debug("Adding relation: "+JSON.stringify(i));let a=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];i.relation.type1===this.relationType.LOLLIPOP&&!a.includes(i.relation.type2)?(this.addClass(i.id2),this.addInterface(i.id1,i.id2),i.id1=`interface${this.interfaces.length-1}`):i.relation.type2===this.relationType.LOLLIPOP&&!a.includes(i.relation.type1)?(this.addClass(i.id1),this.addInterface(i.id2,i.id1),i.id2=`interface${this.interfaces.length-1}`):(this.addClass(i.id1),this.addClass(i.id2)),i.id1=this.splitClassNameAndType(i.id1).className,i.id2=this.splitClassNameAndType(i.id2).className,i.relationTitle1=v.sanitizeText(i.relationTitle1.trim(),F()),i.relationTitle2=v.sanitizeText(i.relationTitle2.trim(),F()),this.relations.push(i)}addAnnotation(i,a){let r=this.splitClassNameAndType(i).className;this.classes.get(r).annotations.push(a)}addMember(i,a){this.addClass(i);let r=this.splitClassNameAndType(i).className,n=this.classes.get(r);if(typeof a=="string"){let o=a.trim();o.startsWith("<<")&&o.endsWith(">>")?n.annotations.push(V(o.substring(2,o.length-2))):o.indexOf(")")>0?n.methods.push(new ft(o,"method")):o&&n.members.push(new ft(o,"attribute"))}}addMembers(i,a){Array.isArray(a)&&(a.reverse(),a.forEach(r=>this.addMember(i,r)))}addNote(i,a){let r=this.notes.size,n={id:`note${r}`,class:a,text:i,index:r};return this.notes.set(n.id,n),n.id}cleanupLabel(i){return i.startsWith(":")&&(i=i.substring(1)),V(i.trim())}setCssClass(i,a){i.split(",").forEach(r=>{let n=r;/\d/.exec(r[0])&&(n=fe+n),n=this.splitClassNameAndType(n).className;let o=this.classes.get(n);o&&(o.cssClasses+=" "+a)})}defineClass(i,a){for(let r of i){let n=this.styleClasses.get(r);n===void 0&&(n={id:r,styles:[],textStyles:[]},this.styleClasses.set(r,n)),a&&a.forEach(o=>{if(/color/.exec(o)){let h=o.replace("fill","bgFill");n.textStyles.push(h)}n.styles.push(o)}),this.classes.forEach(o=>{o.cssClasses.includes(r)&&o.styles.push(...a.flatMap(h=>h.split(",")))})}}setTooltip(i,a){i.split(",").forEach(r=>{if(a!==void 0){let n=this.splitClassNameAndType(r).className,o=this.classes.get(n);o&&(o.tooltip=V(a))}})}getTooltip(i,a){return a&&this.namespaces.has(a)?this.namespaces.get(a).classes.get(i).tooltip:this.classes.get(i).tooltip}setLink(i,a,r){let n=F();i.split(",").forEach(o=>{let h=o;/\d/.exec(o[0])&&(h=fe+h),h=this.splitClassNameAndType(h).className;let u=this.classes.get(h);u&&(u.link=be.formatUrl(a,n),n.securityLevel==="sandbox"?u.linkTarget="_top":typeof r=="string"?u.linkTarget=V(r):u.linkTarget="_blank")}),this.setCssClass(i,"clickable")}setClickEvent(i,a,r){i.split(",").forEach(n=>{this.setClickFunc(n,a,r);let o=this.splitClassNameAndType(n).className,h=this.classes.get(o);h&&(h.haveCallback=!0)}),this.setCssClass(i,"clickable")}setClickFunc(i,a,r){let n=v.sanitizeText(i,F());if(F().securityLevel!=="loose"||a===void 0)return;let h=this.splitClassNameAndType(n).className;if(this.classes.has(h)){let u=[];if(typeof r=="string"){u=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let f=0;f<u.length;f++){let k=u[f].trim();k.startsWith('"')&&k.endsWith('"')&&(k=k.substr(1,k.length-2)),u[f]=k}}u.length===0&&u.push(h),this.functions.push(()=>{let f=this.lookUpDomId(h),k=document.querySelector(`[id="${f}"]`);k!==null&&k.addEventListener("click",()=>{be.runFunc(a,...u)},!1)})}}bindFunctions(i){this.functions.forEach(a=>{a(i)})}escapeHtml(i){return i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}getDirection(){return this.direction}setDirection(i){this.direction=i}static resolveQualifiedId(i,a){let r=a.at(-1);return r?`${r}.${i}`:i}static getAncestorIds(i){let a=i.split("."),r=new Array(a.length);r[0]=a[0];for(let n=1;n<a.length;n++)r[n]=`${r[n-1]}.${a[n]}`;return r}createNamespaceNode(i,a,r,n=!1){return{id:i,label:a,classes:new Map,notes:new Map,children:new Map,domId:fe+i+"-"+this.namespaceCounter++,parent:r,explicit:n}}linkParentChild(i,a){let r=this.namespaces.get(i),n=this.namespaces.get(a);!r||!n||(r.children.has(a)||r.children.set(a,n),n.parent??=i)}addNamespace(i,a){let r=Pe.resolveQualifiedId(i,this.namespaceStack);if(this.namespaceStack.push(r),this.namespaces.has(r)){let h=this.namespaces.get(r);return h.explicit=!0,a&&(h.label=a),r}let n=r.split("."),o=Pe.getAncestorIds(r);for(let h=0;h<o.length;h++){let u=o[h],f=h>0?o[h-1]:void 0,k=h===o.length-1,_=k&&a?a:n[h];this.namespaces.has(u)?k&&(this.namespaces.get(u).explicit=!0):this.namespaces.set(u,this.createNamespaceNode(u,_,f,k)),f&&this.linkParentChild(f,u)}return r}popNamespace(){this.namespaceStack.pop()}getNamespace(i){return this.namespaces.get(i)}getNamespaces(){return this.namespaces}addClassesToNamespace(i,a,r){if(this.namespaces.has(i)){for(let n of a){let{className:o}=this.splitClassNameAndType(n),h=this.getClass(o);h.parent=i,this.namespaces.get(i).classes.set(o,h)}for(let n of r){let o=this.getNote(n);o.parent=i,this.namespaces.get(i).notes.set(n,o)}}}setCssStyle(i,a){let r=this.classes.get(i);if(!(!a||!r))for(let n of a)n.includes(",")?r.styles.push(...n.split(",")):r.styles.push(n)}getArrowMarker(i){let a;switch(i){case 0:a="aggregation";break;case 1:a="extension";break;case 2:a="composition";break;case 3:a="dependency";break;case 4:a="lollipop";break;default:a="none"}return a}resolveExplicitAncestor(i){let a=i;for(;a;){let r=this.namespaces.get(a);if(!r)return;if(r.explicit)return a;a=r.parent}}getData(){let i=[],a=[],r=F(),n=r.class?.hierarchicalNamespaces??!0;for(let u of this.namespaces.values()){if(!n&&!u.explicit)continue;let f={id:u.id,label:n?u.label:u.id,isGroup:!0,padding:r.class.padding??16,shape:"rect",cssStyles:[],look:r.look,parentId:n?u.parent:void 0};i.push(f)}let o=0;for(let u of this.classes.values()){let f=n?u.parent:this.resolveExplicitAncestor(u.parent),k={...u,type:void 0,isGroup:!1,parentId:f,look:r.look,colorIndex:o++};i.push(k)}for(let u of this.notes.values()){let f=n?u.parent:this.resolveExplicitAncestor(u.parent),k={id:u.id,label:u.text,isGroup:!1,shape:"note",padding:r.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${r.themeVariables.noteBkgColor}`,`stroke: ${r.themeVariables.noteBorderColor}`],look:r.look,parentId:f,labelType:"markdown"};i.push(k);let _=this.classes.get(u.class)?.id;if(_){let U={id:`edgeNote${u.index}`,start:u.id,end:_,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:r.look};a.push(U)}}for(let u of this.interfaces){let f={id:u.id,label:u.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:r.look};i.push(f)}let h=0;for(let u of this.relations){h++;let f={id:at(u.id1,u.id2,{prefix:"id",counter:h}),start:u.id1,end:u.id2,type:"normal",label:u.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(u.relation.type1),arrowTypeEnd:this.getArrowMarker(u.relation.type2),startLabelRight:u.relationTitle1==="none"?"":u.relationTitle1,endLabelLeft:u.relationTitle2==="none"?"":u.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:u.style||"",pattern:u.relation.lineType==1?"dashed":"solid",look:r.look,labelType:"markdown"};a.push(f)}return{nodes:i,edges:a,other:{},config:r,direction:this.getDirection()}}},Ft=b(t=>{let{theme:i,bkgColorArray:a,borderColorArray:r}=t;if(!nt(i,r))return"";let n=lt(t.look),o=rt(a),h="";for(let u=0;u<ut(t.THEME_COLOR_LIMIT,r);u++){let f=r[u%r.length];h+=`
|
|
7
|
+
|
|
8
|
+
[data-look="${n}"][data-color-id="color-${u}"].node .outer-path path {
|
|
9
|
+
stroke: ${f};
|
|
10
|
+
${o?`fill: ${a[u%a.length]};`:""}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[data-look="${n}"][data-color-id="color-${u}"].node .divider path {
|
|
14
|
+
stroke: ${f};
|
|
15
|
+
}
|
|
16
|
+
`}return h},"genColor"),Bt=b(t=>`${Ft(t)}
|
|
17
|
+
g.classGroup text {
|
|
18
|
+
fill: ${t.nodeBorder||t.classText};
|
|
19
|
+
stroke: none;
|
|
20
|
+
font-family: ${t.fontFamily};
|
|
21
|
+
font-size: 10px;
|
|
22
|
+
|
|
23
|
+
.title {
|
|
24
|
+
font-weight: bolder;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.cluster-label text {
|
|
30
|
+
fill: ${t.titleColor};
|
|
31
|
+
}
|
|
32
|
+
.cluster-label span {
|
|
33
|
+
color: ${t.titleColor};
|
|
34
|
+
}
|
|
35
|
+
.cluster-label span p {
|
|
36
|
+
background-color: transparent;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.cluster rect {
|
|
40
|
+
fill: ${t.clusterBkg};
|
|
41
|
+
stroke: ${t.clusterBorder};
|
|
42
|
+
stroke-width: 1px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.cluster text {
|
|
46
|
+
fill: ${t.titleColor};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.cluster span {
|
|
50
|
+
color: ${t.titleColor};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.nodeLabel, .edgeLabel {
|
|
54
|
+
color: ${t.classText};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.noteLabel .nodeLabel, .noteLabel .edgeLabel {
|
|
58
|
+
color: ${t.noteTextColor};
|
|
59
|
+
}
|
|
60
|
+
.edgeLabel .label rect {
|
|
61
|
+
fill: ${t.mainBkg};
|
|
62
|
+
}
|
|
63
|
+
.label text {
|
|
64
|
+
fill: ${t.classText};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.labelBkg {
|
|
68
|
+
background: ${t.mainBkg};
|
|
69
|
+
}
|
|
70
|
+
.edgeLabel .label span {
|
|
71
|
+
background: ${t.mainBkg};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.classTitle {
|
|
75
|
+
font-weight: bolder;
|
|
76
|
+
}
|
|
77
|
+
.node rect,
|
|
78
|
+
.node circle,
|
|
79
|
+
.node ellipse,
|
|
80
|
+
.node polygon,
|
|
81
|
+
.node path {
|
|
82
|
+
fill: ${t.mainBkg};
|
|
83
|
+
stroke: ${t.nodeBorder};
|
|
84
|
+
stroke-width: ${t.strokeWidth};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
.divider {
|
|
89
|
+
stroke: ${t.nodeBorder};
|
|
90
|
+
stroke-width: 1;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
g.clickable {
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
g.classGroup rect {
|
|
98
|
+
fill: ${t.mainBkg};
|
|
99
|
+
stroke: ${t.nodeBorder};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
g.classGroup line {
|
|
103
|
+
stroke: ${t.nodeBorder};
|
|
104
|
+
stroke-width: 1;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.classLabel .box {
|
|
108
|
+
stroke: none;
|
|
109
|
+
stroke-width: 0;
|
|
110
|
+
fill: ${t.mainBkg};
|
|
111
|
+
opacity: 0.5;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.classLabel .label {
|
|
115
|
+
fill: ${t.nodeBorder};
|
|
116
|
+
font-size: 10px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.relation {
|
|
120
|
+
stroke: ${t.lineColor};
|
|
121
|
+
stroke-width: ${t.strokeWidth};
|
|
122
|
+
fill: none;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.dashed-line{
|
|
126
|
+
stroke-dasharray: 3;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.dotted-line{
|
|
130
|
+
stroke-dasharray: 1 2;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
[id$="-compositionStart"], .composition {
|
|
134
|
+
fill: ${t.lineColor} !important;
|
|
135
|
+
stroke: ${t.lineColor} !important;
|
|
136
|
+
stroke-width: 1;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
[id$="-compositionEnd"], .composition {
|
|
140
|
+
fill: ${t.lineColor} !important;
|
|
141
|
+
stroke: ${t.lineColor} !important;
|
|
142
|
+
stroke-width: 1;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
[id$="-dependencyStart"], .dependency {
|
|
146
|
+
fill: ${t.lineColor} !important;
|
|
147
|
+
stroke: ${t.lineColor} !important;
|
|
148
|
+
stroke-width: 1;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
[id$="-dependencyEnd"], .dependency {
|
|
152
|
+
fill: ${t.lineColor} !important;
|
|
153
|
+
stroke: ${t.lineColor} !important;
|
|
154
|
+
stroke-width: 1;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
[id$="-extensionStart"], .extension {
|
|
158
|
+
fill: transparent !important;
|
|
159
|
+
stroke: ${t.lineColor} !important;
|
|
160
|
+
stroke-width: 1;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
[id$="-extensionEnd"], .extension {
|
|
164
|
+
fill: transparent !important;
|
|
165
|
+
stroke: ${t.lineColor} !important;
|
|
166
|
+
stroke-width: 1;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
[id$="-aggregationStart"], .aggregation {
|
|
170
|
+
fill: transparent !important;
|
|
171
|
+
stroke: ${t.lineColor} !important;
|
|
172
|
+
stroke-width: 1;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
[id$="-aggregationEnd"], .aggregation {
|
|
176
|
+
fill: transparent !important;
|
|
177
|
+
stroke: ${t.lineColor} !important;
|
|
178
|
+
stroke-width: 1;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
[id$="-lollipopStart"], .lollipop {
|
|
182
|
+
fill: ${t.mainBkg} !important;
|
|
183
|
+
stroke: ${t.lineColor} !important;
|
|
184
|
+
stroke-width: 1;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
[id$="-lollipopEnd"], .lollipop {
|
|
188
|
+
fill: ${t.mainBkg} !important;
|
|
189
|
+
stroke: ${t.lineColor} !important;
|
|
190
|
+
stroke-width: 1;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.edgeTerminals {
|
|
194
|
+
font-size: 11px;
|
|
195
|
+
line-height: initial;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.classTitleText {
|
|
199
|
+
text-anchor: middle;
|
|
200
|
+
font-size: 18px;
|
|
201
|
+
fill: ${t.textColor};
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.edgeLabel[data-look="neo"] {
|
|
205
|
+
background-color: ${t.edgeLabelBackground};
|
|
206
|
+
p {
|
|
207
|
+
background-color: ${t.edgeLabelBackground};
|
|
208
|
+
}
|
|
209
|
+
rect {
|
|
210
|
+
opacity: 0.5;
|
|
211
|
+
background-color: ${t.edgeLabelBackground};
|
|
212
|
+
fill: ${t.edgeLabelBackground};
|
|
213
|
+
}
|
|
214
|
+
text-align: center;
|
|
215
|
+
}
|
|
216
|
+
${dt()}
|
|
217
|
+
`,"getStyles"),_t=Bt,St=b((t,i="TB")=>{if(!t.doc)return i;let a=i;for(let r of t.doc)r.stmt==="dir"&&(a=r.value);return a},"getDir"),Nt=b(function(t,i){return i.db.getClasses()},"getClasses"),Lt=b(async function(t,i,a,r){Ae.info("REF0:"),Ae.info("Drawing class diagram (v3)",i);let{securityLevel:n,state:o,layout:h}=F();r.db.setDiagramId(i);let u=r.db.getData(),f=pt(i,n);u.type=r.type,u.layoutAlgorithm=ct(h),u.nodeSpacing=o?.nodeSpacing||50,u.rankSpacing=o?.rankSpacing||50,u.markers=["aggregation","extension","composition","dependency","lollipop"],u.diagramId=i,await ot(u,f);let k=8;be.insertTitle(f,"classDiagramTitleText",o?.titleTopMargin??25,r.db.getDiagramTitle()),At(f,k,"classDiagram",o?.useMaxWidth??!0)},"draw"),xt={getClasses:Nt,draw:Lt,getDir:St},$t={parser:yt,get db(){return new Dt},renderer:xt,styles:_t,init:b(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{$t as diagram};
|