@readme/markdown 11.1.1 → 11.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Code/index.tsx +4 -3
- package/components/CodeTabs/index.tsx +5 -2
- package/dist/10.node.js +419 -207
- package/dist/10.node.js.map +1 -1
- package/dist/101.node.js +23 -0
- package/dist/101.node.js.map +1 -0
- package/dist/109.node.js +63 -0
- package/dist/109.node.js.map +1 -0
- package/dist/197.node.js +63 -0
- package/dist/197.node.js.map +1 -0
- package/dist/213.node.js +23 -0
- package/dist/213.node.js.map +1 -0
- package/dist/{580.node.js → 259.node.js} +98 -79
- package/dist/259.node.js.map +1 -0
- package/dist/339.node.js +4 -4
- package/dist/{912.node.js → 356.node.js} +154 -150
- package/dist/356.node.js.map +1 -0
- package/dist/357.node.js +1352 -0
- package/dist/357.node.js.map +1 -0
- package/dist/387.node.js +23 -0
- package/dist/387.node.js.map +1 -0
- package/dist/398.node.js +63 -0
- package/dist/398.node.js.map +1 -0
- package/dist/{805.node.js → 405.node.js} +110 -91
- package/dist/405.node.js.map +1 -0
- package/dist/{23.node.js → 434.node.js} +178 -118
- package/dist/434.node.js.map +1 -0
- package/dist/{550.node.js → 470.node.js} +105 -80
- package/dist/470.node.js.map +1 -0
- package/dist/{870.node.js → 474.node.js} +84 -77
- package/dist/474.node.js.map +1 -0
- package/dist/{649.node.js → 483.node.js} +70 -67
- package/dist/483.node.js.map +1 -0
- package/dist/486.node.js +23865 -25247
- package/dist/486.node.js.map +1 -1
- package/dist/{982.node.js → 524.node.js} +124 -88
- package/dist/524.node.js.map +1 -0
- package/dist/53.node.js +506 -0
- package/dist/53.node.js.map +1 -0
- package/dist/{898.node.js → 561.node.js} +54 -52
- package/dist/561.node.js.map +1 -0
- package/dist/579.node.js +23 -0
- package/dist/579.node.js.map +1 -0
- package/dist/{881.node.js → 680.node.js} +202 -142
- package/dist/680.node.js.map +1 -0
- package/dist/{915.node.js → 7.node.js} +265 -1210
- package/dist/7.node.js.map +1 -0
- package/dist/{188.node.js → 705.node.js} +135 -132
- package/dist/705.node.js.map +1 -0
- package/dist/713.node.js +23 -0
- package/dist/713.node.js.map +1 -0
- package/dist/{135.node.js → 720.node.js} +230 -138
- package/dist/720.node.js.map +1 -0
- package/dist/{364.node.js → 763.node.js} +488 -432
- package/dist/763.node.js.map +1 -0
- package/dist/{572.node.js → 828.node.js} +229 -185
- package/dist/828.node.js.map +1 -0
- package/dist/{311.node.js → 834.node.js} +106 -104
- package/dist/834.node.js.map +1 -0
- package/dist/{359.node.js → 863.node.js} +290 -236
- package/dist/863.node.js.map +1 -0
- package/dist/872.node.js +630 -0
- package/dist/872.node.js.map +1 -0
- package/dist/879.node.js +61 -0
- package/dist/879.node.js.map +1 -0
- package/dist/{371.node.js → 880.node.js} +401 -400
- package/dist/880.node.js.map +1 -0
- package/dist/{214.node.js → 894.node.js} +116 -114
- package/dist/894.node.js.map +1 -0
- package/dist/{890.node.js → 90.node.js} +134 -129
- package/dist/90.node.js.map +1 -0
- package/dist/{855.node.js → 901.node.js} +510 -522
- package/dist/901.node.js.map +1 -0
- package/dist/903.node.js +23 -0
- package/dist/903.node.js.map +1 -0
- package/dist/{38.node.js → 929.node.js} +920 -442
- package/dist/929.node.js.map +1 -0
- package/dist/941.node.js +23 -0
- package/dist/941.node.js.map +1 -0
- package/dist/995.node.js +2 -2
- package/dist/hooks/useHydrated/index.d.ts +6 -0
- package/dist/main.js +26 -8
- package/dist/main.node.js +32 -6
- package/dist/main.node.js.map +1 -1
- package/package.json +3 -3
- package/dist/122.node.js +0 -23
- package/dist/122.node.js.map +0 -1
- package/dist/135.node.js.map +0 -1
- package/dist/136.node.js +0 -23
- package/dist/136.node.js.map +0 -1
- package/dist/188.node.js.map +0 -1
- package/dist/214.node.js.map +0 -1
- package/dist/23.node.js.map +0 -1
- package/dist/311.node.js.map +0 -1
- package/dist/354.node.js +0 -23
- package/dist/354.node.js.map +0 -1
- package/dist/359.node.js.map +0 -1
- package/dist/364.node.js.map +0 -1
- package/dist/371.node.js.map +0 -1
- package/dist/38.node.js.map +0 -1
- package/dist/391.node.js +0 -522
- package/dist/391.node.js.map +0 -1
- package/dist/462.node.js +0 -23
- package/dist/462.node.js.map +0 -1
- package/dist/48.node.js +0 -57
- package/dist/48.node.js.map +0 -1
- package/dist/537.node.js +0 -59
- package/dist/537.node.js.map +0 -1
- package/dist/550.node.js.map +0 -1
- package/dist/572.node.js.map +0 -1
- package/dist/580.node.js.map +0 -1
- package/dist/649.node.js.map +0 -1
- package/dist/740.node.js +0 -23
- package/dist/740.node.js.map +0 -1
- package/dist/741.node.js +0 -23
- package/dist/741.node.js.map +0 -1
- package/dist/779.node.js +0 -57
- package/dist/779.node.js.map +0 -1
- package/dist/805.node.js.map +0 -1
- package/dist/855.node.js.map +0 -1
- package/dist/870.node.js.map +0 -1
- package/dist/874.node.js +0 -57
- package/dist/874.node.js.map +0 -1
- package/dist/881.node.js.map +0 -1
- package/dist/890.node.js.map +0 -1
- package/dist/898.node.js.map +0 -1
- package/dist/912.node.js.map +0 -1
- package/dist/915.node.js.map +0 -1
- package/dist/982.node.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"524.node.js","mappings":";;;;;;;;;;;;AAE8B;;AAE9B;AACA,oCAAoC,qEAAM;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIE;;;;;;;;;;;;;;;;;;;;;;;;ACrB4B;AAGA;AAIA;AAKA;AACA;AACA;AACA;AACA;AAMA;AAIA;;AAE9B;AACA;AACA,0BAA0B,qEAAM;AAChC,sBAAsB,gBAAgB,KAAK;AAC3C;AACA,GAAG;AACH;AACA,2BAA2B,qEAAM;AACjC,KAAK;AACL,UAAU;AACV,gBAAgB,kXAAkX;AAClY,kBAAkB,8LAA8L;AAChN;AACA,mCAAmC,qEAAM;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,cAAc;AAC1C;AACA;AACA;AACA,4BAA4B,eAAe;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,cAAc;AAC1C;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,cAAc,qCAAqC,IAAI,QAAQ,IAAI,WAAW,IAAI,oCAAoC,IAAI,uGAAuG,oBAAoB,WAAW,oCAAoC,gGAAgG,IAAI,4FAA4F,IAAI,iCAAiC,oBAAoB,oEAAoE,sCAAsC,iBAAiB,yFAAyF,aAAa,KAAK,aAAa,IAAI,iCAAiC,IAAI,gGAAgG,oBAAoB,iBAAiB,sEAAsE,iBAAiB,uDAAuD,SAAS,sBAAsB,aAAa,IAAI,aAAa,oBAAoB,iBAAiB,uDAAuD,SAAS,sBAAsB,aAAa;AACjxC,sBAAsB,sBAAsB;AAC5C,gCAAgC,qEAAM;AACtC;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,KAAK;AACL,2BAA2B,qEAAM;AACjC;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,qEAAM;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,qEAAM;AACZ,iEAAiE;AACjE;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,kCAAkC,qEAAM;AACxC;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP;AACA,gCAAgC,qEAAM;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,6BAA6B,qEAAM;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,6BAA6B,qEAAM;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,4BAA4B,qEAAM;AAClC;AACA;AACA,OAAO;AACP;AACA,8BAA8B,qEAAM;AACpC;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA,OAAO;AACP;AACA,4BAA4B,qEAAM;AAClC;AACA,OAAO;AACP;AACA,iCAAiC,qEAAM;AACvC;AACA;AACA,OAAO;AACP;AACA,qCAAqC,qEAAM;AAC3C;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,oCAAoC,qEAAM;AAC1C;AACA;AACA;AACA,OAAO;AACP;AACA,kCAAkC,qEAAM;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,4BAA4B,qEAAM;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,kBAAkB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,OAAO;AACP;AACA,2BAA2B,qEAAM;AACjC;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP;AACA,6BAA6B,qEAAM;AACnC;AACA,OAAO;AACP;AACA,gCAAgC,qEAAM;AACtC;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP;AACA,qCAAqC,qEAAM;AAC3C;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP,4DAA4D;AAC5D,gCAAgC,qEAAM;AACtC;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP;AACA,iCAAiC,qEAAM;AACvC;AACA,OAAO;AACP;AACA,sCAAsC,qEAAM;AAC5C;AACA,OAAO;AACP,iBAAiB,0BAA0B;AAC3C,qCAAqC,qEAAM;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,sBAAsB,uDAAuD,gBAAgB,sOAAsO,EAAE,6DAA6D,EAAE,+JAA+J,EAAE,wEAAwE;AAC7mB,oBAAoB,yBAAyB,iCAAiC,oBAAoB,qCAAqC,iBAAiB,wCAAwC,aAAa,sCAAsC,YAAY,uCAAuC,aAAa,uCAAuC,YAAY,uCAAuC,YAAY,+EAA+E,eAAe;AACvf;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,EAAE,qEAAM;AACR;AACA;AACA;AACA,CAAC;AACD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,4BAA4B,qEAAM;AAClC;AACA;AACA;AACA;AACA,CAAC;AACD,iCAAiC,qEAAM;AACvC;AACA;AACA;AACA;AACA;AACA,iCAAiC,QAAQ;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,kCAAkC,qEAAM;AACxC;AACA,CAAC;AACD,8BAA8B,qEAAM;AACpC;AACA;AACA;AACA,eAAe,yEAAS;AACxB;AACA;AACA;AACA,aAAa,2EAAY;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,2EAAY;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,+BAA+B,UAAU,yEAAS;AAC7D,CAAC;AACD,8BAA8B,qEAAM;AACpC,eAAe,yEAAS;AACxB,yCAAyC,gFAAqB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,2EAAY;AACpB;AACA,WAAW,2EAAY;AACvB,yCAAyC,gFAAqB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,sBAAsB;AACzC,MAAM;AACN;AACA;AACA,gBAAgB,kEAAI,aAAa,QAAQ,qEAAW,EAAE;AACtD;AACA,wCAAwC,UAAU;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,qEAAM;AACpC,EAAE,8DAAG;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA,CAAC;AACD,sCAAsC,qEAAM;AAC5C;AACA,CAAC;AACD,mCAAmC,qEAAM;AACzC;AACA;AACA;AACA,iBAAiB,yEAAS;AAC1B;AACA;AACA,gBAAgB,2EAAY;AAC5B;AACA;AACA,sBAAsB,2EAAY;AAClC;AACA,CAAC;AACD,+BAA+B,qEAAM;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,gCAAgC,qEAAM,OAAO,8DAAG;AAChD,qCAAqC,qEAAM;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B,qEAAM;AACjC,EAAE,8DAAG;AACL;AACA;AACA,eAAe,yEAAS;AACxB;AACA,cAAc,8EAAgB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,2EAAa;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,yEAAU,oBAAoB,cAAc;AACvE;AACA;AACA,YAAY,2EAAY;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,gFAAiB;AACnB;AACA;AACA,6BAA6B,gFAAqB;AAClD,iCAAiC,gFAAqB;AACtD;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACiD;AACjD,kCAAkC,qEAAM;AACxC;AACA,kBAAkB,+BAA+B;AACjD;AACA,QAAQ,4DAAM;AACd,iCAAiC,4DAAO;AACxC,MAAM;AACN,iCAAiC,4DAAM;AACvC;AACA;AACA,mCAAmC,qEAAM,sCAAsC,4DAAM,iBAAiB,4DAAO;AAC7G,kBAAkB,+BAA+B;AACjD;AACA;AACA,eAAe,OAAO,iBAAiB,OAAO,iBAAiB,OAAO,mBAAmB,OAAO,oBAAoB,OAAO;AAC3H,cAAc;AACd,gBAAgB;;AAEhB;AACA,eAAe,OAAO;AACtB,aAAa;AACb;AACA,iBAAiB;AACjB;AACA,eAAe;AACf;AACA,oBAAoB;AACpB,gBAAgB;AAChB;AACA,kBAAkB;AAClB,sBAAsB;AACtB;AACA,eAAe,OAAO;AACtB,gBAAgB;AAChB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ,cAAc;AACd;AACA;;AAEA;AACA,YAAY;AACZ,cAAc;AACd;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,gCAAgC,qEAAM;AACtC;AACA;AACA;AACA,IAAI;AACJ;AACA,YAAY;AACZ;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,2EAAa;AACnB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAGE","sources":["webpack://@readme/markdown/./node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.mjs","webpack://@readme/markdown/./node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-3W4ZIXB7.mjs"],"sourcesContent":["import {\n __name\n} from \"./chunk-AGHRB4JF.mjs\";\n\n// src/diagrams/globalStyles.ts\nvar getIconStyles = /* @__PURE__ */ __name(() => `\n /* Font Awesome icon styling - consolidated */\n .label-icon {\n display: inline-block;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n }\n \n .node .label-icon path {\n fill: currentColor;\n stroke: revert;\n stroke-width: revert;\n }\n`, \"getIconStyles\");\n\nexport {\n getIconStyles\n};\n","import {\n selectSvgElement\n} from \"./chunk-EXTU4WIE.mjs\";\nimport {\n getIconStyles\n} from \"./chunk-FMBD7UC4.mjs\";\nimport {\n JSON_SCHEMA,\n load\n} from \"./chunk-MI3HLSF2.mjs\";\nimport {\n insertCluster,\n insertNode,\n positionNode\n} from \"./chunk-JZLCHNYA.mjs\";\nimport \"./chunk-CVBHYZKI.mjs\";\nimport \"./chunk-ATLVNIR6.mjs\";\nimport \"./chunk-JA3XYJ7Z.mjs\";\nimport \"./chunk-S3R3BYOJ.mjs\";\nimport {\n defaultConfig_default,\n getConfig2 as getConfig,\n sanitizeText,\n setupGraphViewbox\n} from \"./chunk-ABZYJK2D.mjs\";\nimport {\n __name,\n log\n} from \"./chunk-AGHRB4JF.mjs\";\n\n// src/diagrams/kanban/parser/kanban.jison\nvar parser = (function() {\n var o = /* @__PURE__ */ __name(function(k, v, o2, l) {\n for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;\n return o2;\n }, \"o\"), $V0 = [1, 4], $V1 = [1, 13], $V2 = [1, 12], $V3 = [1, 15], $V4 = [1, 16], $V5 = [1, 20], $V6 = [1, 19], $V7 = [6, 7, 8], $V8 = [1, 26], $V9 = [1, 24], $Va = [1, 25], $Vb = [6, 7, 11], $Vc = [1, 31], $Vd = [6, 7, 11, 24], $Ve = [1, 6, 13, 16, 17, 20, 23], $Vf = [1, 35], $Vg = [1, 36], $Vh = [1, 6, 7, 11, 13, 16, 17, 20, 23], $Vi = [1, 38];\n var parser2 = {\n trace: /* @__PURE__ */ __name(function trace() {\n }, \"trace\"),\n yy: {},\n symbols_: { \"error\": 2, \"start\": 3, \"mindMap\": 4, \"spaceLines\": 5, \"SPACELINE\": 6, \"NL\": 7, \"KANBAN\": 8, \"document\": 9, \"stop\": 10, \"EOF\": 11, \"statement\": 12, \"SPACELIST\": 13, \"node\": 14, \"shapeData\": 15, \"ICON\": 16, \"CLASS\": 17, \"nodeWithId\": 18, \"nodeWithoutId\": 19, \"NODE_DSTART\": 20, \"NODE_DESCR\": 21, \"NODE_DEND\": 22, \"NODE_ID\": 23, \"SHAPE_DATA\": 24, \"$accept\": 0, \"$end\": 1 },\n terminals_: { 2: \"error\", 6: \"SPACELINE\", 7: \"NL\", 8: \"KANBAN\", 11: \"EOF\", 13: \"SPACELIST\", 16: \"ICON\", 17: \"CLASS\", 20: \"NODE_DSTART\", 21: \"NODE_DESCR\", 22: \"NODE_DEND\", 23: \"NODE_ID\", 24: \"SHAPE_DATA\" },\n productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 3], [12, 2], [12, 2], [12, 2], [12, 1], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [19, 3], [18, 1], [18, 4], [15, 2], [15, 1]],\n performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {\n var $0 = $$.length - 1;\n switch (yystate) {\n case 6:\n case 7:\n return yy;\n break;\n case 8:\n yy.getLogger().trace(\"Stop NL \");\n break;\n case 9:\n yy.getLogger().trace(\"Stop EOF \");\n break;\n case 11:\n yy.getLogger().trace(\"Stop NL2 \");\n break;\n case 12:\n yy.getLogger().trace(\"Stop EOF2 \");\n break;\n case 15:\n yy.getLogger().info(\"Node: \", $$[$0 - 1].id);\n yy.addNode($$[$0 - 2].length, $$[$0 - 1].id, $$[$0 - 1].descr, $$[$0 - 1].type, $$[$0]);\n break;\n case 16:\n yy.getLogger().info(\"Node: \", $$[$0].id);\n yy.addNode($$[$0 - 1].length, $$[$0].id, $$[$0].descr, $$[$0].type);\n break;\n case 17:\n yy.getLogger().trace(\"Icon: \", $$[$0]);\n yy.decorateNode({ icon: $$[$0] });\n break;\n case 18:\n case 23:\n yy.decorateNode({ class: $$[$0] });\n break;\n case 19:\n yy.getLogger().trace(\"SPACELIST\");\n break;\n case 20:\n yy.getLogger().trace(\"Node: \", $$[$0 - 1].id);\n yy.addNode(0, $$[$0 - 1].id, $$[$0 - 1].descr, $$[$0 - 1].type, $$[$0]);\n break;\n case 21:\n yy.getLogger().trace(\"Node: \", $$[$0].id);\n yy.addNode(0, $$[$0].id, $$[$0].descr, $$[$0].type);\n break;\n case 22:\n yy.decorateNode({ icon: $$[$0] });\n break;\n case 27:\n yy.getLogger().trace(\"node found ..\", $$[$0 - 2]);\n this.$ = { id: $$[$0 - 1], descr: $$[$0 - 1], type: yy.getType($$[$0 - 2], $$[$0]) };\n break;\n case 28:\n this.$ = { id: $$[$0], descr: $$[$0], type: 0 };\n break;\n case 29:\n yy.getLogger().trace(\"node found ..\", $$[$0 - 3]);\n this.$ = { id: $$[$0 - 3], descr: $$[$0 - 1], type: yy.getType($$[$0 - 2], $$[$0]) };\n break;\n case 30:\n this.$ = $$[$0 - 1] + $$[$0];\n break;\n case 31:\n this.$ = $$[$0];\n break;\n }\n }, \"anonymous\"),\n table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: $V0 }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: $V0 }, { 6: $V1, 7: [1, 10], 9: 9, 12: 11, 13: $V2, 14: 14, 16: $V3, 17: $V4, 18: 17, 19: 18, 20: $V5, 23: $V6 }, o($V7, [2, 3]), { 1: [2, 2] }, o($V7, [2, 4]), o($V7, [2, 5]), { 1: [2, 6], 6: $V1, 12: 21, 13: $V2, 14: 14, 16: $V3, 17: $V4, 18: 17, 19: 18, 20: $V5, 23: $V6 }, { 6: $V1, 9: 22, 12: 11, 13: $V2, 14: 14, 16: $V3, 17: $V4, 18: 17, 19: 18, 20: $V5, 23: $V6 }, { 6: $V8, 7: $V9, 10: 23, 11: $Va }, o($Vb, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: $V5, 23: $V6 }), o($Vb, [2, 19]), o($Vb, [2, 21], { 15: 30, 24: $Vc }), o($Vb, [2, 22]), o($Vb, [2, 23]), o($Vd, [2, 25]), o($Vd, [2, 26]), o($Vd, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: $V8, 7: $V9, 10: 34, 11: $Va }, { 1: [2, 7], 6: $V1, 12: 21, 13: $V2, 14: 14, 16: $V3, 17: $V4, 18: 17, 19: 18, 20: $V5, 23: $V6 }, o($Ve, [2, 14], { 7: $Vf, 11: $Vg }), o($Vh, [2, 8]), o($Vh, [2, 9]), o($Vh, [2, 10]), o($Vb, [2, 16], { 15: 37, 24: $Vc }), o($Vb, [2, 17]), o($Vb, [2, 18]), o($Vb, [2, 20], { 24: $Vi }), o($Vd, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, o($Ve, [2, 13], { 7: $Vf, 11: $Vg }), o($Vh, [2, 11]), o($Vh, [2, 12]), o($Vb, [2, 15], { 24: $Vi }), o($Vd, [2, 30]), { 22: [1, 41] }, o($Vd, [2, 27]), o($Vd, [2, 29])],\n defaultActions: { 2: [2, 1], 6: [2, 2] },\n parseError: /* @__PURE__ */ __name(function parseError(str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n }, \"parseError\"),\n parse: /* @__PURE__ */ __name(function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = \"\", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer2 = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer2.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer2;\n sharedState.yy.parser = this;\n if (typeof lexer2.yylloc == \"undefined\") {\n lexer2.yylloc = {};\n }\n var yyloc = lexer2.yylloc;\n lstack.push(yyloc);\n var ranges = lexer2.options && lexer2.options.ranges;\n if (typeof sharedState.yy.parseError === \"function\") {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n __name(popStack, \"popStack\");\n function lex() {\n var token;\n token = tstack.pop() || lexer2.lex() || EOF;\n if (typeof token !== \"number\") {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n __name(lex, \"lex\");\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == \"undefined\") {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === \"undefined\" || !action.length || !action[0]) {\n var errStr = \"\";\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push(\"'\" + this.terminals_[p] + \"'\");\n }\n }\n if (lexer2.showPosition) {\n errStr = \"Parse error on line \" + (yylineno + 1) + \":\\n\" + lexer2.showPosition() + \"\\nExpecting \" + expected.join(\", \") + \", got '\" + (this.terminals_[symbol] || symbol) + \"'\";\n } else {\n errStr = \"Parse error on line \" + (yylineno + 1) + \": Unexpected \" + (symbol == EOF ? \"end of input\" : \"'\" + (this.terminals_[symbol] || symbol) + \"'\");\n }\n this.parseError(errStr, {\n text: lexer2.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer2.yylineno,\n loc: yyloc,\n expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error(\"Parse Error: multiple actions possible at state: \" + state + \", token: \" + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer2.yytext);\n lstack.push(lexer2.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer2.yyleng;\n yytext = lexer2.yytext;\n yylineno = lexer2.yylineno;\n yyloc = lexer2.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== \"undefined\") {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n }, \"parse\")\n };\n var lexer = /* @__PURE__ */ (function() {\n var lexer2 = {\n EOF: 1,\n parseError: /* @__PURE__ */ __name(function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n }, \"parseError\"),\n // resets the lexer, sets new input\n setInput: /* @__PURE__ */ __name(function(input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = \"\";\n this.conditionStack = [\"INITIAL\"];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0, 0];\n }\n this.offset = 0;\n return this;\n }, \"setInput\"),\n // consumes and returns one char from the input\n input: /* @__PURE__ */ __name(function() {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n this._input = this._input.slice(1);\n return ch;\n }, \"input\"),\n // unshifts one char (or a string) into the input\n unput: /* @__PURE__ */ __name(function(ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len\n };\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n }, \"unput\"),\n // When called from action, caches matched text and appends it on next action\n more: /* @__PURE__ */ __name(function() {\n this._more = true;\n return this;\n }, \"more\"),\n // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\n reject: /* @__PURE__ */ __name(function() {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n 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).\\n\" + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n return this;\n }, \"reject\"),\n // retain first n characters of the match\n less: /* @__PURE__ */ __name(function(n) {\n this.unput(this.match.slice(n));\n }, \"less\"),\n // displays already matched input, i.e. for error messages\n pastInput: /* @__PURE__ */ __name(function() {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? \"...\" : \"\") + past.substr(-20).replace(/\\n/g, \"\");\n }, \"pastInput\"),\n // displays upcoming input, i.e. for error messages\n upcomingInput: /* @__PURE__ */ __name(function() {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20 - next.length);\n }\n return (next.substr(0, 20) + (next.length > 20 ? \"...\" : \"\")).replace(/\\n/g, \"\");\n }, \"upcomingInput\"),\n // displays the character position where the lexing error occurred, i.e. for error messages\n showPosition: /* @__PURE__ */ __name(function() {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n }, \"showPosition\"),\n // test the lexed token: return FALSE when not a match, otherwise return token\n test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {\n var token, lines, backup;\n if (this.options.backtrack_lexer) {\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length : this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false;\n }\n return false;\n }, \"test_match\"),\n // return next match in input\n next: /* @__PURE__ */ __name(function() {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n var token, match, tempMatch, index;\n if (!this._more) {\n this.yytext = \"\";\n this.match = \"\";\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue;\n } else {\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError(\"Lexical error on line \" + (this.yylineno + 1) + \". Unrecognized text.\\n\" + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n }, \"next\"),\n // return next match that has a token\n lex: /* @__PURE__ */ __name(function lex() {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n }, \"lex\"),\n // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\n begin: /* @__PURE__ */ __name(function begin(condition) {\n this.conditionStack.push(condition);\n }, \"begin\"),\n // pop the previously active lexer condition state off the condition stack\n popState: /* @__PURE__ */ __name(function popState() {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n }, \"popState\"),\n // produce the lexer rule set which is active for the currently active lexer condition state\n _currentRules: /* @__PURE__ */ __name(function _currentRules() {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n }, \"_currentRules\"),\n // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\n topState: /* @__PURE__ */ __name(function topState(n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n }, \"topState\"),\n // alias for begin(condition)\n pushState: /* @__PURE__ */ __name(function pushState(condition) {\n this.begin(condition);\n }, \"pushState\"),\n // return the number of states currently on the stack\n stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {\n return this.conditionStack.length;\n }, \"stateStackSize\"),\n options: { \"case-insensitive\": true },\n performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {\n var YYSTATE = YY_START;\n switch ($avoiding_name_collisions) {\n case 0:\n this.pushState(\"shapeData\");\n yy_.yytext = \"\";\n return 24;\n break;\n case 1:\n this.pushState(\"shapeDataStr\");\n return 24;\n break;\n case 2:\n this.popState();\n return 24;\n break;\n case 3:\n const re = /\\n\\s*/g;\n yy_.yytext = yy_.yytext.replace(re, \"<br/>\");\n return 24;\n break;\n case 4:\n return 24;\n break;\n case 5:\n this.popState();\n break;\n case 6:\n yy.getLogger().trace(\"Found comment\", yy_.yytext);\n return 6;\n break;\n case 7:\n return 8;\n break;\n case 8:\n this.begin(\"CLASS\");\n break;\n case 9:\n this.popState();\n return 17;\n break;\n case 10:\n this.popState();\n break;\n case 11:\n yy.getLogger().trace(\"Begin icon\");\n this.begin(\"ICON\");\n break;\n case 12:\n yy.getLogger().trace(\"SPACELINE\");\n return 6;\n break;\n case 13:\n return 7;\n break;\n case 14:\n return 16;\n break;\n case 15:\n yy.getLogger().trace(\"end icon\");\n this.popState();\n break;\n case 16:\n yy.getLogger().trace(\"Exploding node\");\n this.begin(\"NODE\");\n return 20;\n break;\n case 17:\n yy.getLogger().trace(\"Cloud\");\n this.begin(\"NODE\");\n return 20;\n break;\n case 18:\n yy.getLogger().trace(\"Explosion Bang\");\n this.begin(\"NODE\");\n return 20;\n break;\n case 19:\n yy.getLogger().trace(\"Cloud Bang\");\n this.begin(\"NODE\");\n return 20;\n break;\n case 20:\n this.begin(\"NODE\");\n return 20;\n break;\n case 21:\n this.begin(\"NODE\");\n return 20;\n break;\n case 22:\n this.begin(\"NODE\");\n return 20;\n break;\n case 23:\n this.begin(\"NODE\");\n return 20;\n break;\n case 24:\n return 13;\n break;\n case 25:\n return 23;\n break;\n case 26:\n return 11;\n break;\n case 27:\n this.begin(\"NSTR2\");\n break;\n case 28:\n return \"NODE_DESCR\";\n break;\n case 29:\n this.popState();\n break;\n case 30:\n yy.getLogger().trace(\"Starting NSTR\");\n this.begin(\"NSTR\");\n break;\n case 31:\n yy.getLogger().trace(\"description:\", yy_.yytext);\n return \"NODE_DESCR\";\n break;\n case 32:\n this.popState();\n break;\n case 33:\n this.popState();\n yy.getLogger().trace(\"node end ))\");\n return \"NODE_DEND\";\n break;\n case 34:\n this.popState();\n yy.getLogger().trace(\"node end )\");\n return \"NODE_DEND\";\n break;\n case 35:\n this.popState();\n yy.getLogger().trace(\"node end ...\", yy_.yytext);\n return \"NODE_DEND\";\n break;\n case 36:\n this.popState();\n yy.getLogger().trace(\"node end ((\");\n return \"NODE_DEND\";\n break;\n case 37:\n this.popState();\n yy.getLogger().trace(\"node end (-\");\n return \"NODE_DEND\";\n break;\n case 38:\n this.popState();\n yy.getLogger().trace(\"node end (-\");\n return \"NODE_DEND\";\n break;\n case 39:\n this.popState();\n yy.getLogger().trace(\"node end ((\");\n return \"NODE_DEND\";\n break;\n case 40:\n this.popState();\n yy.getLogger().trace(\"node end ((\");\n return \"NODE_DEND\";\n break;\n case 41:\n yy.getLogger().trace(\"Long description:\", yy_.yytext);\n return 21;\n break;\n case 42:\n yy.getLogger().trace(\"Long description:\", yy_.yytext);\n return 21;\n break;\n }\n }, \"anonymous\"),\n rules: [/^(?:@\\{)/i, /^(?:[\"])/i, /^(?:[\"])/i, /^(?:[^\\\"]+)/i, /^(?:[^}^\"]+)/i, /^(?:\\})/i, /^(?:\\s*%%.*)/i, /^(?:kanban\\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\\n)/i, /^(?:::icon\\()/i, /^(?:[\\s]+[\\n])/i, /^(?:[\\n]+)/i, /^(?:[^\\)]+)/i, /^(?:\\))/i, /^(?:-\\))/i, /^(?:\\(-)/i, /^(?:\\)\\))/i, /^(?:\\))/i, /^(?:\\(\\()/i, /^(?:\\{\\{)/i, /^(?:\\()/i, /^(?:\\[)/i, /^(?:[\\s]+)/i, /^(?:[^\\(\\[\\n\\)\\{\\}@]+)/i, /^(?:$)/i, /^(?:[\"][`])/i, /^(?:[^`\"]+)/i, /^(?:[`][\"])/i, /^(?:[\"])/i, /^(?:[^\"]+)/i, /^(?:[\"])/i, /^(?:[\\)]\\))/i, /^(?:[\\)])/i, /^(?:[\\]])/i, /^(?:\\}\\})/i, /^(?:\\(-)/i, /^(?:-\\))/i, /^(?:\\(\\()/i, /^(?:\\()/i, /^(?:[^\\)\\]\\(\\}]+)/i, /^(?:.+(?!\\(\\())/i],\n conditions: { \"shapeDataEndBracket\": { \"rules\": [], \"inclusive\": false }, \"shapeDataStr\": { \"rules\": [2, 3], \"inclusive\": false }, \"shapeData\": { \"rules\": [1, 4, 5], \"inclusive\": false }, \"CLASS\": { \"rules\": [9, 10], \"inclusive\": false }, \"ICON\": { \"rules\": [14, 15], \"inclusive\": false }, \"NSTR2\": { \"rules\": [28, 29], \"inclusive\": false }, \"NSTR\": { \"rules\": [31, 32], \"inclusive\": false }, \"NODE\": { \"rules\": [27, 30, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], \"inclusive\": false }, \"INITIAL\": { \"rules\": [0, 6, 7, 8, 11, 12, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], \"inclusive\": true } }\n };\n return lexer2;\n })();\n parser2.lexer = lexer;\n function Parser() {\n this.yy = {};\n }\n __name(Parser, \"Parser\");\n Parser.prototype = parser2;\n parser2.Parser = Parser;\n return new Parser();\n})();\nparser.parser = parser;\nvar kanban_default = parser;\n\n// src/diagrams/kanban/kanbanDb.ts\nvar nodes = [];\nvar sections = [];\nvar cnt = 0;\nvar elements = {};\nvar clear = /* @__PURE__ */ __name(() => {\n nodes = [];\n sections = [];\n cnt = 0;\n elements = {};\n}, \"clear\");\nvar getSection = /* @__PURE__ */ __name((level) => {\n if (nodes.length === 0) {\n return null;\n }\n const sectionLevel = nodes[0].level;\n let lastSection = null;\n for (let i = nodes.length - 1; i >= 0; i--) {\n if (nodes[i].level === sectionLevel && !lastSection) {\n lastSection = nodes[i];\n }\n if (nodes[i].level < sectionLevel) {\n throw new Error('Items without section detected, found section (\"' + nodes[i].label + '\")');\n }\n }\n if (level === lastSection?.level) {\n return null;\n }\n return lastSection;\n}, \"getSection\");\nvar getSections = /* @__PURE__ */ __name(function() {\n return sections;\n}, \"getSections\");\nvar getData = /* @__PURE__ */ __name(function() {\n const edges = [];\n const _nodes = [];\n const sections2 = getSections();\n const conf = getConfig();\n for (const section of sections2) {\n const node = {\n id: section.id,\n label: sanitizeText(section.label ?? \"\", conf),\n isGroup: true,\n ticket: section.ticket,\n shape: \"kanbanSection\",\n level: section.level,\n look: conf.look\n };\n _nodes.push(node);\n const children = nodes.filter((n) => n.parentId === section.id);\n for (const item of children) {\n const childNode = {\n id: item.id,\n parentId: section.id,\n label: sanitizeText(item.label ?? \"\", conf),\n isGroup: false,\n ticket: item?.ticket,\n priority: item?.priority,\n assigned: item?.assigned,\n icon: item?.icon,\n shape: \"kanbanItem\",\n level: item.level,\n rx: 5,\n ry: 5,\n cssStyles: [\"text-align: left\"]\n };\n _nodes.push(childNode);\n }\n }\n return { nodes: _nodes, edges, other: {}, config: getConfig() };\n}, \"getData\");\nvar addNode = /* @__PURE__ */ __name((level, id, descr, type, shapeData) => {\n const conf = getConfig();\n let padding = conf.mindmap?.padding ?? defaultConfig_default.mindmap.padding;\n switch (type) {\n case nodeType.ROUNDED_RECT:\n case nodeType.RECT:\n case nodeType.HEXAGON:\n padding *= 2;\n }\n const node = {\n id: sanitizeText(id, conf) || \"kbn\" + cnt++,\n level,\n label: sanitizeText(descr, conf),\n width: conf.mindmap?.maxNodeWidth ?? defaultConfig_default.mindmap.maxNodeWidth,\n padding,\n isGroup: false\n };\n if (shapeData !== void 0) {\n let yamlData;\n if (!shapeData.includes(\"\\n\")) {\n yamlData = \"{\\n\" + shapeData + \"\\n}\";\n } else {\n yamlData = shapeData + \"\\n\";\n }\n const doc = load(yamlData, { schema: JSON_SCHEMA });\n if (doc.shape && (doc.shape !== doc.shape.toLowerCase() || doc.shape.includes(\"_\"))) {\n throw new Error(`No such shape: ${doc.shape}. Shape names should be lowercase.`);\n }\n if (doc?.shape && doc.shape === \"kanbanItem\") {\n node.shape = doc?.shape;\n }\n if (doc?.label) {\n node.label = doc?.label;\n }\n if (doc?.icon) {\n node.icon = doc?.icon.toString();\n }\n if (doc?.assigned) {\n node.assigned = doc?.assigned.toString();\n }\n if (doc?.ticket) {\n node.ticket = doc?.ticket.toString();\n }\n if (doc?.priority) {\n node.priority = doc?.priority;\n }\n }\n const section = getSection(level);\n if (section) {\n node.parentId = section.id || \"kbn\" + cnt++;\n } else {\n sections.push(node);\n }\n nodes.push(node);\n}, \"addNode\");\nvar nodeType = {\n DEFAULT: 0,\n NO_BORDER: 0,\n ROUNDED_RECT: 1,\n RECT: 2,\n CIRCLE: 3,\n CLOUD: 4,\n BANG: 5,\n HEXAGON: 6\n};\nvar getType = /* @__PURE__ */ __name((startStr, endStr) => {\n log.debug(\"In get type\", startStr, endStr);\n switch (startStr) {\n case \"[\":\n return nodeType.RECT;\n case \"(\":\n return endStr === \")\" ? nodeType.ROUNDED_RECT : nodeType.CLOUD;\n case \"((\":\n return nodeType.CIRCLE;\n case \")\":\n return nodeType.CLOUD;\n case \"))\":\n return nodeType.BANG;\n case \"{{\":\n return nodeType.HEXAGON;\n default:\n return nodeType.DEFAULT;\n }\n}, \"getType\");\nvar setElementForId = /* @__PURE__ */ __name((id, element) => {\n elements[id] = element;\n}, \"setElementForId\");\nvar decorateNode = /* @__PURE__ */ __name((decoration) => {\n if (!decoration) {\n return;\n }\n const config = getConfig();\n const node = nodes[nodes.length - 1];\n if (decoration.icon) {\n node.icon = sanitizeText(decoration.icon, config);\n }\n if (decoration.class) {\n node.cssClasses = sanitizeText(decoration.class, config);\n }\n}, \"decorateNode\");\nvar type2Str = /* @__PURE__ */ __name((type) => {\n switch (type) {\n case nodeType.DEFAULT:\n return \"no-border\";\n case nodeType.RECT:\n return \"rect\";\n case nodeType.ROUNDED_RECT:\n return \"rounded-rect\";\n case nodeType.CIRCLE:\n return \"circle\";\n case nodeType.CLOUD:\n return \"cloud\";\n case nodeType.BANG:\n return \"bang\";\n case nodeType.HEXAGON:\n return \"hexgon\";\n // cspell: disable-line\n default:\n return \"no-border\";\n }\n}, \"type2Str\");\nvar getLogger = /* @__PURE__ */ __name(() => log, \"getLogger\");\nvar getElementById = /* @__PURE__ */ __name((id) => elements[id], \"getElementById\");\nvar db = {\n clear,\n addNode,\n getSections,\n getData,\n nodeType,\n getType,\n setElementForId,\n decorateNode,\n type2Str,\n getLogger,\n getElementById\n};\nvar kanbanDb_default = db;\n\n// src/diagrams/kanban/kanbanRenderer.ts\nvar draw = /* @__PURE__ */ __name(async (text, id, _version, diagObj) => {\n log.debug(\"Rendering kanban diagram\\n\" + text);\n const db2 = diagObj.db;\n const data4Layout = db2.getData();\n const conf = getConfig();\n conf.htmlLabels = false;\n const svg = selectSvgElement(id);\n const sectionsElem = svg.append(\"g\");\n sectionsElem.attr(\"class\", \"sections\");\n const nodesElem = svg.append(\"g\");\n nodesElem.attr(\"class\", \"items\");\n const sections2 = data4Layout.nodes.filter(\n // TODO: TypeScript 5.5 will infer this predicate automatically\n (node) => node.isGroup\n );\n let cnt2 = 0;\n const padding = 10;\n const sectionObjects = [];\n let maxLabelHeight = 25;\n for (const section of sections2) {\n const WIDTH = conf?.kanban?.sectionWidth || 200;\n cnt2 = cnt2 + 1;\n section.x = WIDTH * cnt2 + (cnt2 - 1) * padding / 2;\n section.width = WIDTH;\n section.y = 0;\n section.height = WIDTH * 3;\n section.rx = 5;\n section.ry = 5;\n section.cssClasses = section.cssClasses + \" section-\" + cnt2;\n const sectionObj = await insertCluster(sectionsElem, section);\n maxLabelHeight = Math.max(maxLabelHeight, sectionObj?.labelBBox?.height);\n sectionObjects.push(sectionObj);\n }\n let i = 0;\n for (const section of sections2) {\n const sectionObj = sectionObjects[i];\n i = i + 1;\n const WIDTH = conf?.kanban?.sectionWidth || 200;\n const top = -WIDTH * 3 / 2 + maxLabelHeight;\n let y = top;\n const sectionItems = data4Layout.nodes.filter((node) => node.parentId === section.id);\n for (const item of sectionItems) {\n if (item.isGroup) {\n throw new Error(\"Groups within groups are not allowed in Kanban diagrams\");\n }\n item.x = section.x;\n item.width = WIDTH - 1.5 * padding;\n const nodeEl = await insertNode(nodesElem, item, { config: conf });\n const bbox = nodeEl.node().getBBox();\n item.y = y + bbox.height / 2;\n await positionNode(item);\n y = item.y + bbox.height / 2 + padding / 2;\n }\n const rect = sectionObj.cluster.select(\"rect\");\n const height = Math.max(y - top + 3 * padding, 50) + (maxLabelHeight - 25);\n rect.attr(\"height\", height);\n }\n setupGraphViewbox(\n void 0,\n svg,\n conf.mindmap?.padding ?? defaultConfig_default.kanban.padding,\n conf.mindmap?.useMaxWidth ?? defaultConfig_default.kanban.useMaxWidth\n );\n}, \"draw\");\nvar kanbanRenderer_default = {\n draw\n};\n\n// src/diagrams/kanban/styles.ts\nimport { darken, lighten, isDark } from \"khroma\";\nvar genSections = /* @__PURE__ */ __name((options) => {\n let sections2 = \"\";\n for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {\n options[\"lineColor\" + i] = options[\"lineColor\" + i] || options[\"cScaleInv\" + i];\n if (isDark(options[\"lineColor\" + i])) {\n options[\"lineColor\" + i] = lighten(options[\"lineColor\" + i], 20);\n } else {\n options[\"lineColor\" + i] = darken(options[\"lineColor\" + i], 20);\n }\n }\n const adjuster = /* @__PURE__ */ __name((color, level) => options.darkMode ? darken(color, level) : lighten(color, level), \"adjuster\");\n for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {\n const sw = \"\" + (17 - 3 * i);\n sections2 += `\n .section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle, .section-${i - 1} polygon, .section-${i - 1} path {\n fill: ${adjuster(options[\"cScale\" + i], 10)};\n stroke: ${adjuster(options[\"cScale\" + i], 10)};\n\n }\n .section-${i - 1} text {\n fill: ${options[\"cScaleLabel\" + i]};\n }\n .node-icon-${i - 1} {\n font-size: 40px;\n color: ${options[\"cScaleLabel\" + i]};\n }\n .section-edge-${i - 1}{\n stroke: ${options[\"cScale\" + i]};\n }\n .edge-depth-${i - 1}{\n stroke-width: ${sw};\n }\n .section-${i - 1} line {\n stroke: ${options[\"cScaleInv\" + i]} ;\n stroke-width: 3;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${options.background};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n }\n\n .kanban-ticket-link {\n fill: ${options.background};\n stroke: ${options.nodeBorder};\n text-decoration: underline;\n }\n `;\n }\n return sections2;\n}, \"genSections\");\nvar getStyles = /* @__PURE__ */ __name((options) => `\n .edge {\n stroke-width: 3;\n }\n ${genSections(options)}\n .section-root rect, .section-root path, .section-root circle, .section-root polygon {\n fill: ${options.git0};\n }\n .section-root text {\n fill: ${options.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .cluster-label, .label {\n color: ${options.textColor};\n fill: ${options.textColor};\n }\n .kanban-label {\n dy: 1em;\n alignment-baseline: middle;\n text-anchor: middle;\n dominant-baseline: middle;\n text-align: center;\n }\n ${getIconStyles()}\n`, \"getStyles\");\nvar styles_default = getStyles;\n\n// src/diagrams/kanban/kanban-definition.ts\nvar diagram = {\n db: kanbanDb_default,\n renderer: kanbanRenderer_default,\n parser: kanban_default,\n styles: styles_default\n};\nexport {\n diagram\n};\n"],"names":[],"sourceRoot":""}
|
package/dist/53.node.js
ADDED
|
@@ -0,0 +1,506 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.id = 53;
|
|
3
|
+
exports.ids = [53];
|
|
4
|
+
exports.modules = {
|
|
5
|
+
|
|
6
|
+
/***/ 3053:
|
|
7
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8
|
+
|
|
9
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ diagram: () => (/* binding */ diagram)
|
|
11
|
+
/* harmony export */ });
|
|
12
|
+
/* harmony import */ var _chunk_DI55MBZ5_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6901);
|
|
13
|
+
/* harmony import */ var _chunk_55IACEB6_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6884);
|
|
14
|
+
/* harmony import */ var _chunk_QN33PNHL_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7925);
|
|
15
|
+
/* harmony import */ var _chunk_N4CR4FBY_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8188);
|
|
16
|
+
/* harmony import */ var _chunk_QXUST7PY_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5301);
|
|
17
|
+
/* harmony import */ var _chunk_HN2XXSSU_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6103);
|
|
18
|
+
/* harmony import */ var _chunk_JZLCHNYA_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7655);
|
|
19
|
+
/* harmony import */ var _chunk_CVBHYZKI_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(5164);
|
|
20
|
+
/* harmony import */ var _chunk_ATLVNIR6_mjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(5750);
|
|
21
|
+
/* harmony import */ var _chunk_JA3XYJ7Z_mjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(5866);
|
|
22
|
+
/* harmony import */ var _chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(9131);
|
|
23
|
+
/* harmony import */ var _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(6399);
|
|
24
|
+
/* harmony import */ var _chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(416);
|
|
25
|
+
/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(796);
|
|
26
|
+
/* harmony import */ var dagre_d3_es_src_dagre_index_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(995);
|
|
27
|
+
/* harmony import */ var dagre_d3_es_src_graphlib_index_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(4416);
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
// src/diagrams/state/stateRenderer.js
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
// src/diagrams/state/shapes.js
|
|
48
|
+
|
|
49
|
+
var drawStartState = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .__name */ .K2)((g) => g.append("circle").attr("class", "start-state").attr("r", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.sizeUnit).attr("cx", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding + (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.sizeUnit).attr("cy", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding + (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.sizeUnit), "drawStartState");
|
|
50
|
+
var drawDivider = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .__name */ .K2)((g) => g.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.textHeight).attr("class", "divider").attr("x2", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider");
|
|
51
|
+
var drawSimpleState = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .__name */ .K2)((g, stateDef) => {
|
|
52
|
+
const state = g.append("text").attr("x", 2 * (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding).attr("y", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.textHeight + 2 * (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding).attr("font-size", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.fontSize).attr("class", "state-title").text(stateDef.id);
|
|
53
|
+
const classBox = state.node().getBBox();
|
|
54
|
+
g.insert("rect", ":first-child").attr("x", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding).attr("y", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding).attr("width", classBox.width + 2 * (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding).attr("height", classBox.height + 2 * (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding).attr("rx", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.radius);
|
|
55
|
+
return state;
|
|
56
|
+
}, "drawSimpleState");
|
|
57
|
+
var drawDescrState = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .__name */ .K2)((g, stateDef) => {
|
|
58
|
+
const addTspan = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .__name */ .K2)(function(textEl, txt, isFirst2) {
|
|
59
|
+
const tSpan = textEl.append("tspan").attr("x", 2 * (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding).text(txt);
|
|
60
|
+
if (!isFirst2) {
|
|
61
|
+
tSpan.attr("dy", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.textHeight);
|
|
62
|
+
}
|
|
63
|
+
}, "addTspan");
|
|
64
|
+
const title = g.append("text").attr("x", 2 * (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding).attr("y", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.textHeight + 1.3 * (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding).attr("font-size", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.fontSize).attr("class", "state-title").text(stateDef.descriptions[0]);
|
|
65
|
+
const titleBox = title.node().getBBox();
|
|
66
|
+
const titleHeight = titleBox.height;
|
|
67
|
+
const description = g.append("text").attr("x", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding).attr(
|
|
68
|
+
"y",
|
|
69
|
+
titleHeight + (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding * 0.4 + (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.dividerMargin + (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.textHeight
|
|
70
|
+
).attr("class", "state-description");
|
|
71
|
+
let isFirst = true;
|
|
72
|
+
let isSecond = true;
|
|
73
|
+
stateDef.descriptions.forEach(function(descr) {
|
|
74
|
+
if (!isFirst) {
|
|
75
|
+
addTspan(description, descr, isSecond);
|
|
76
|
+
isSecond = false;
|
|
77
|
+
}
|
|
78
|
+
isFirst = false;
|
|
79
|
+
});
|
|
80
|
+
const descrLine = g.append("line").attr("x1", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding).attr("y1", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding + titleHeight + (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.dividerMargin / 2).attr("y2", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding + titleHeight + (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.dividerMargin / 2).attr("class", "descr-divider");
|
|
81
|
+
const descrBox = description.node().getBBox();
|
|
82
|
+
const width = Math.max(descrBox.width, titleBox.width);
|
|
83
|
+
descrLine.attr("x2", width + 3 * (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding);
|
|
84
|
+
g.insert("rect", ":first-child").attr("x", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding).attr("y", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding).attr("width", width + 2 * (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding).attr("height", descrBox.height + titleHeight + 2 * (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding).attr("rx", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.radius);
|
|
85
|
+
return g;
|
|
86
|
+
}, "drawDescrState");
|
|
87
|
+
var addTitleAndBox = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .__name */ .K2)((g, stateDef, altBkg) => {
|
|
88
|
+
const pad = (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding;
|
|
89
|
+
const dblPad = 2 * (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding;
|
|
90
|
+
const orgBox = g.node().getBBox();
|
|
91
|
+
const orgWidth = orgBox.width;
|
|
92
|
+
const orgX = orgBox.x;
|
|
93
|
+
const title = g.append("text").attr("x", 0).attr("y", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.titleShift).attr("font-size", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.fontSize).attr("class", "state-title").text(stateDef.id);
|
|
94
|
+
const titleBox = title.node().getBBox();
|
|
95
|
+
const titleWidth = titleBox.width + dblPad;
|
|
96
|
+
let width = Math.max(titleWidth, orgWidth);
|
|
97
|
+
if (width === orgWidth) {
|
|
98
|
+
width = width + dblPad;
|
|
99
|
+
}
|
|
100
|
+
let startX;
|
|
101
|
+
const graphBox = g.node().getBBox();
|
|
102
|
+
if (stateDef.doc) {
|
|
103
|
+
}
|
|
104
|
+
startX = orgX - pad;
|
|
105
|
+
if (titleWidth > orgWidth) {
|
|
106
|
+
startX = (orgWidth - width) / 2 + pad;
|
|
107
|
+
}
|
|
108
|
+
if (Math.abs(orgX - graphBox.x) < pad && titleWidth > orgWidth) {
|
|
109
|
+
startX = orgX - (titleWidth - orgWidth) / 2;
|
|
110
|
+
}
|
|
111
|
+
const lineY = 1 - (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.textHeight;
|
|
112
|
+
g.insert("rect", ":first-child").attr("x", startX).attr("y", lineY).attr("class", altBkg ? "alt-composit" : "composit").attr("width", width).attr(
|
|
113
|
+
"height",
|
|
114
|
+
graphBox.height + (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.textHeight + (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.titleShift + 1
|
|
115
|
+
).attr("rx", "0");
|
|
116
|
+
title.attr("x", startX + pad);
|
|
117
|
+
if (titleWidth <= orgWidth) {
|
|
118
|
+
title.attr("x", orgX + (width - dblPad) / 2 - titleWidth / 2 + pad);
|
|
119
|
+
}
|
|
120
|
+
g.insert("rect", ":first-child").attr("x", startX).attr(
|
|
121
|
+
"y",
|
|
122
|
+
(0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.titleShift - (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.textHeight - (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding
|
|
123
|
+
).attr("width", width).attr("height", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.textHeight * 3).attr("rx", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.radius);
|
|
124
|
+
g.insert("rect", ":first-child").attr("x", startX).attr(
|
|
125
|
+
"y",
|
|
126
|
+
(0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.titleShift - (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.textHeight - (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding
|
|
127
|
+
).attr("width", width).attr("height", graphBox.height + 3 + 2 * (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.textHeight).attr("rx", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.radius);
|
|
128
|
+
return g;
|
|
129
|
+
}, "addTitleAndBox");
|
|
130
|
+
var drawEndState = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .__name */ .K2)((g) => {
|
|
131
|
+
g.append("circle").attr("class", "end-state-outer").attr("r", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.sizeUnit + (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.miniPadding).attr(
|
|
132
|
+
"cx",
|
|
133
|
+
(0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding + (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.sizeUnit + (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.miniPadding
|
|
134
|
+
).attr(
|
|
135
|
+
"cy",
|
|
136
|
+
(0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding + (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.sizeUnit + (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.miniPadding
|
|
137
|
+
);
|
|
138
|
+
return g.append("circle").attr("class", "end-state-inner").attr("r", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.sizeUnit).attr("cx", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding + (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.sizeUnit + 2).attr("cy", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding + (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.sizeUnit + 2);
|
|
139
|
+
}, "drawEndState");
|
|
140
|
+
var drawForkJoinState = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .__name */ .K2)((g, stateDef) => {
|
|
141
|
+
let width = (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.forkWidth;
|
|
142
|
+
let height = (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.forkHeight;
|
|
143
|
+
if (stateDef.parentId) {
|
|
144
|
+
let tmp = width;
|
|
145
|
+
width = height;
|
|
146
|
+
height = tmp;
|
|
147
|
+
}
|
|
148
|
+
return g.append("rect").style("stroke", "black").style("fill", "black").attr("width", width).attr("height", height).attr("x", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding).attr("y", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding);
|
|
149
|
+
}, "drawForkJoinState");
|
|
150
|
+
var _drawLongText = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .__name */ .K2)((_text, x, y, g) => {
|
|
151
|
+
let textHeight = 0;
|
|
152
|
+
const textElem = g.append("text");
|
|
153
|
+
textElem.style("text-anchor", "start");
|
|
154
|
+
textElem.attr("class", "noteText");
|
|
155
|
+
let text = _text.replace(/\r\n/g, "<br/>");
|
|
156
|
+
text = text.replace(/\n/g, "<br/>");
|
|
157
|
+
const lines = text.split(_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .common_default */ .Y2.lineBreakRegex);
|
|
158
|
+
let tHeight = 1.25 * (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.noteMargin;
|
|
159
|
+
for (const line2 of lines) {
|
|
160
|
+
const txt = line2.trim();
|
|
161
|
+
if (txt.length > 0) {
|
|
162
|
+
const span = textElem.append("tspan");
|
|
163
|
+
span.text(txt);
|
|
164
|
+
if (tHeight === 0) {
|
|
165
|
+
const textBounds = span.node().getBBox();
|
|
166
|
+
tHeight += textBounds.height;
|
|
167
|
+
}
|
|
168
|
+
textHeight += tHeight;
|
|
169
|
+
span.attr("x", x + (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.noteMargin);
|
|
170
|
+
span.attr("y", y + textHeight + 1.25 * (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.noteMargin);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return { textWidth: textElem.node().getBBox().width, textHeight };
|
|
174
|
+
}, "_drawLongText");
|
|
175
|
+
var drawNote = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .__name */ .K2)((text, g) => {
|
|
176
|
+
g.attr("class", "state-note");
|
|
177
|
+
const note = g.append("rect").attr("x", 0).attr("y", (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding);
|
|
178
|
+
const rectElem = g.append("g");
|
|
179
|
+
const { textWidth, textHeight } = _drawLongText(text, 0, 0, rectElem);
|
|
180
|
+
note.attr("height", textHeight + 2 * (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.noteMargin);
|
|
181
|
+
note.attr("width", textWidth + (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.noteMargin * 2);
|
|
182
|
+
return note;
|
|
183
|
+
}, "drawNote");
|
|
184
|
+
var drawState = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .__name */ .K2)(function(elem, stateDef) {
|
|
185
|
+
const id = stateDef.id;
|
|
186
|
+
const stateInfo = {
|
|
187
|
+
id,
|
|
188
|
+
label: stateDef.id,
|
|
189
|
+
width: 0,
|
|
190
|
+
height: 0
|
|
191
|
+
};
|
|
192
|
+
const g = elem.append("g").attr("id", id).attr("class", "stateGroup");
|
|
193
|
+
if (stateDef.type === "start") {
|
|
194
|
+
drawStartState(g);
|
|
195
|
+
}
|
|
196
|
+
if (stateDef.type === "end") {
|
|
197
|
+
drawEndState(g);
|
|
198
|
+
}
|
|
199
|
+
if (stateDef.type === "fork" || stateDef.type === "join") {
|
|
200
|
+
drawForkJoinState(g, stateDef);
|
|
201
|
+
}
|
|
202
|
+
if (stateDef.type === "note") {
|
|
203
|
+
drawNote(stateDef.note.text, g);
|
|
204
|
+
}
|
|
205
|
+
if (stateDef.type === "divider") {
|
|
206
|
+
drawDivider(g);
|
|
207
|
+
}
|
|
208
|
+
if (stateDef.type === "default" && stateDef.descriptions.length === 0) {
|
|
209
|
+
drawSimpleState(g, stateDef);
|
|
210
|
+
}
|
|
211
|
+
if (stateDef.type === "default" && stateDef.descriptions.length > 0) {
|
|
212
|
+
drawDescrState(g, stateDef);
|
|
213
|
+
}
|
|
214
|
+
const stateBox = g.node().getBBox();
|
|
215
|
+
stateInfo.width = stateBox.width + 2 * (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding;
|
|
216
|
+
stateInfo.height = stateBox.height + 2 * (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding;
|
|
217
|
+
return stateInfo;
|
|
218
|
+
}, "drawState");
|
|
219
|
+
var edgeCount = 0;
|
|
220
|
+
var drawEdge = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .__name */ .K2)(function(elem, path, relation) {
|
|
221
|
+
const getRelationType = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .__name */ .K2)(function(type) {
|
|
222
|
+
switch (type) {
|
|
223
|
+
case _chunk_DI55MBZ5_mjs__WEBPACK_IMPORTED_MODULE_0__/* .StateDB */ .u4.relationType.AGGREGATION:
|
|
224
|
+
return "aggregation";
|
|
225
|
+
case _chunk_DI55MBZ5_mjs__WEBPACK_IMPORTED_MODULE_0__/* .StateDB */ .u4.relationType.EXTENSION:
|
|
226
|
+
return "extension";
|
|
227
|
+
case _chunk_DI55MBZ5_mjs__WEBPACK_IMPORTED_MODULE_0__/* .StateDB */ .u4.relationType.COMPOSITION:
|
|
228
|
+
return "composition";
|
|
229
|
+
case _chunk_DI55MBZ5_mjs__WEBPACK_IMPORTED_MODULE_0__/* .StateDB */ .u4.relationType.DEPENDENCY:
|
|
230
|
+
return "dependency";
|
|
231
|
+
}
|
|
232
|
+
}, "getRelationType");
|
|
233
|
+
path.points = path.points.filter((p) => !Number.isNaN(p.y));
|
|
234
|
+
const lineData = path.points;
|
|
235
|
+
const lineFunction = (0,d3__WEBPACK_IMPORTED_MODULE_13__/* .line */ .n8j)().x(function(d) {
|
|
236
|
+
return d.x;
|
|
237
|
+
}).y(function(d) {
|
|
238
|
+
return d.y;
|
|
239
|
+
}).curve(d3__WEBPACK_IMPORTED_MODULE_13__/* .curveBasis */ .qrM);
|
|
240
|
+
const svgPath = elem.append("path").attr("d", lineFunction(lineData)).attr("id", "edge" + edgeCount).attr("class", "transition");
|
|
241
|
+
let url = "";
|
|
242
|
+
if ((0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.arrowMarkerAbsolute) {
|
|
243
|
+
url = (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getUrl */ .ID)(true);
|
|
244
|
+
}
|
|
245
|
+
svgPath.attr(
|
|
246
|
+
"marker-end",
|
|
247
|
+
"url(" + url + "#" + getRelationType(_chunk_DI55MBZ5_mjs__WEBPACK_IMPORTED_MODULE_0__/* .StateDB */ .u4.relationType.DEPENDENCY) + "End)"
|
|
248
|
+
);
|
|
249
|
+
if (relation.title !== void 0) {
|
|
250
|
+
const label = elem.append("g").attr("class", "stateLabel");
|
|
251
|
+
const { x, y } = _chunk_S3R3BYOJ_mjs__WEBPACK_IMPORTED_MODULE_10__/* .utils_default */ ._K.calcLabelPosition(path.points);
|
|
252
|
+
const rows = _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .common_default */ .Y2.getRows(relation.title);
|
|
253
|
+
let titleHeight = 0;
|
|
254
|
+
const titleRows = [];
|
|
255
|
+
let maxWidth = 0;
|
|
256
|
+
let minX = 0;
|
|
257
|
+
for (let i = 0; i <= rows.length; i++) {
|
|
258
|
+
const title = label.append("text").attr("text-anchor", "middle").text(rows[i]).attr("x", x).attr("y", y + titleHeight);
|
|
259
|
+
const boundsTmp = title.node().getBBox();
|
|
260
|
+
maxWidth = Math.max(maxWidth, boundsTmp.width);
|
|
261
|
+
minX = Math.min(minX, boundsTmp.x);
|
|
262
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .log */ .Rm.info(boundsTmp.x, x, y + titleHeight);
|
|
263
|
+
if (titleHeight === 0) {
|
|
264
|
+
const titleBox = title.node().getBBox();
|
|
265
|
+
titleHeight = titleBox.height;
|
|
266
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .log */ .Rm.info("Title height", titleHeight, y);
|
|
267
|
+
}
|
|
268
|
+
titleRows.push(title);
|
|
269
|
+
}
|
|
270
|
+
let boxHeight = titleHeight * rows.length;
|
|
271
|
+
if (rows.length > 1) {
|
|
272
|
+
const heightAdj = (rows.length - 1) * titleHeight * 0.5;
|
|
273
|
+
titleRows.forEach((title, i) => title.attr("y", y + i * titleHeight - heightAdj));
|
|
274
|
+
boxHeight = titleHeight * rows.length;
|
|
275
|
+
}
|
|
276
|
+
const bounds = label.node().getBBox();
|
|
277
|
+
label.insert("rect", ":first-child").attr("class", "box").attr("x", x - maxWidth / 2 - (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding / 2).attr("y", y - boxHeight / 2 - (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding / 2 - 3.5).attr("width", maxWidth + (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding).attr("height", boxHeight + (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state.padding);
|
|
278
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .log */ .Rm.info(bounds);
|
|
279
|
+
}
|
|
280
|
+
edgeCount++;
|
|
281
|
+
}, "drawEdge");
|
|
282
|
+
|
|
283
|
+
// src/diagrams/state/stateRenderer.js
|
|
284
|
+
var conf;
|
|
285
|
+
var transformationLog = {};
|
|
286
|
+
var setConf = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .__name */ .K2)(function() {
|
|
287
|
+
}, "setConf");
|
|
288
|
+
var insertMarkers = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .__name */ .K2)(function(elem) {
|
|
289
|
+
elem.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
|
|
290
|
+
}, "insertMarkers");
|
|
291
|
+
var draw = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .__name */ .K2)(function(text, id, _version, diagObj) {
|
|
292
|
+
conf = (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().state;
|
|
293
|
+
const securityLevel = (0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .getConfig2 */ .D7)().securityLevel;
|
|
294
|
+
let sandboxElement;
|
|
295
|
+
if (securityLevel === "sandbox") {
|
|
296
|
+
sandboxElement = (0,d3__WEBPACK_IMPORTED_MODULE_13__/* .select */ .Ltv)("#i" + id);
|
|
297
|
+
}
|
|
298
|
+
const root = securityLevel === "sandbox" ? (0,d3__WEBPACK_IMPORTED_MODULE_13__/* .select */ .Ltv)(sandboxElement.nodes()[0].contentDocument.body) : (0,d3__WEBPACK_IMPORTED_MODULE_13__/* .select */ .Ltv)("body");
|
|
299
|
+
const doc = securityLevel === "sandbox" ? sandboxElement.nodes()[0].contentDocument : document;
|
|
300
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .log */ .Rm.debug("Rendering diagram " + text);
|
|
301
|
+
const diagram2 = root.select(`[id='${id}']`);
|
|
302
|
+
insertMarkers(diagram2);
|
|
303
|
+
const rootDoc = diagObj.db.getRootDoc();
|
|
304
|
+
renderDoc(rootDoc, diagram2, void 0, false, root, doc, diagObj);
|
|
305
|
+
const padding = conf.padding;
|
|
306
|
+
const bounds = diagram2.node().getBBox();
|
|
307
|
+
const width = bounds.width + padding * 2;
|
|
308
|
+
const height = bounds.height + padding * 2;
|
|
309
|
+
const svgWidth = width * 1.75;
|
|
310
|
+
(0,_chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .configureSvgSize */ .a$)(diagram2, height, svgWidth, conf.useMaxWidth);
|
|
311
|
+
diagram2.attr(
|
|
312
|
+
"viewBox",
|
|
313
|
+
`${bounds.x - conf.padding} ${bounds.y - conf.padding} ` + width + " " + height
|
|
314
|
+
);
|
|
315
|
+
}, "draw");
|
|
316
|
+
var getLabelWidth = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .__name */ .K2)((text) => {
|
|
317
|
+
return text ? text.length * conf.fontSizeFactor : 1;
|
|
318
|
+
}, "getLabelWidth");
|
|
319
|
+
var renderDoc = /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .__name */ .K2)((doc, diagram2, parentId, altBkg, root, domDocument, diagObj) => {
|
|
320
|
+
const graph = new dagre_d3_es_src_graphlib_index_js__WEBPACK_IMPORTED_MODULE_15__/* .Graph */ .T({
|
|
321
|
+
compound: true,
|
|
322
|
+
multigraph: true
|
|
323
|
+
});
|
|
324
|
+
let i;
|
|
325
|
+
let edgeFreeDoc = true;
|
|
326
|
+
for (i = 0; i < doc.length; i++) {
|
|
327
|
+
if (doc[i].stmt === "relation") {
|
|
328
|
+
edgeFreeDoc = false;
|
|
329
|
+
break;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
if (parentId) {
|
|
333
|
+
graph.setGraph({
|
|
334
|
+
rankdir: "LR",
|
|
335
|
+
multigraph: true,
|
|
336
|
+
compound: true,
|
|
337
|
+
// acyclicer: 'greedy',
|
|
338
|
+
ranker: "tight-tree",
|
|
339
|
+
ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,
|
|
340
|
+
nodeSep: edgeFreeDoc ? 1 : 50,
|
|
341
|
+
isMultiGraph: true
|
|
342
|
+
// ranksep: 5,
|
|
343
|
+
// nodesep: 1
|
|
344
|
+
});
|
|
345
|
+
} else {
|
|
346
|
+
graph.setGraph({
|
|
347
|
+
rankdir: "TB",
|
|
348
|
+
multigraph: true,
|
|
349
|
+
compound: true,
|
|
350
|
+
// isCompound: true,
|
|
351
|
+
// acyclicer: 'greedy',
|
|
352
|
+
// ranker: 'longest-path'
|
|
353
|
+
ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,
|
|
354
|
+
nodeSep: edgeFreeDoc ? 1 : 50,
|
|
355
|
+
ranker: "tight-tree",
|
|
356
|
+
// ranker: 'network-simplex'
|
|
357
|
+
isMultiGraph: true
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
graph.setDefaultEdgeLabel(function() {
|
|
361
|
+
return {};
|
|
362
|
+
});
|
|
363
|
+
const states = diagObj.db.getStates();
|
|
364
|
+
const relations = diagObj.db.getRelations();
|
|
365
|
+
const keys = Object.keys(states);
|
|
366
|
+
let first = true;
|
|
367
|
+
for (const key of keys) {
|
|
368
|
+
const stateDef = states[key];
|
|
369
|
+
if (parentId) {
|
|
370
|
+
stateDef.parentId = parentId;
|
|
371
|
+
}
|
|
372
|
+
let node;
|
|
373
|
+
if (stateDef.doc) {
|
|
374
|
+
let sub = diagram2.append("g").attr("id", stateDef.id).attr("class", "stateGroup");
|
|
375
|
+
node = renderDoc(stateDef.doc, sub, stateDef.id, !altBkg, root, domDocument, diagObj);
|
|
376
|
+
if (first) {
|
|
377
|
+
sub = addTitleAndBox(sub, stateDef, altBkg);
|
|
378
|
+
let boxBounds = sub.node().getBBox();
|
|
379
|
+
node.width = boxBounds.width;
|
|
380
|
+
node.height = boxBounds.height + conf.padding / 2;
|
|
381
|
+
transformationLog[stateDef.id] = { y: conf.compositTitleSize };
|
|
382
|
+
} else {
|
|
383
|
+
let boxBounds = sub.node().getBBox();
|
|
384
|
+
node.width = boxBounds.width;
|
|
385
|
+
node.height = boxBounds.height;
|
|
386
|
+
}
|
|
387
|
+
} else {
|
|
388
|
+
node = drawState(diagram2, stateDef, graph);
|
|
389
|
+
}
|
|
390
|
+
if (stateDef.note) {
|
|
391
|
+
const noteDef = {
|
|
392
|
+
descriptions: [],
|
|
393
|
+
id: stateDef.id + "-note",
|
|
394
|
+
note: stateDef.note,
|
|
395
|
+
type: "note"
|
|
396
|
+
};
|
|
397
|
+
const note = drawState(diagram2, noteDef, graph);
|
|
398
|
+
if (stateDef.note.position === "left of") {
|
|
399
|
+
graph.setNode(node.id + "-note", note);
|
|
400
|
+
graph.setNode(node.id, node);
|
|
401
|
+
} else {
|
|
402
|
+
graph.setNode(node.id, node);
|
|
403
|
+
graph.setNode(node.id + "-note", note);
|
|
404
|
+
}
|
|
405
|
+
graph.setParent(node.id, node.id + "-group");
|
|
406
|
+
graph.setParent(node.id + "-note", node.id + "-group");
|
|
407
|
+
} else {
|
|
408
|
+
graph.setNode(node.id, node);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .log */ .Rm.debug("Count=", graph.nodeCount(), graph);
|
|
412
|
+
let cnt = 0;
|
|
413
|
+
relations.forEach(function(relation) {
|
|
414
|
+
cnt++;
|
|
415
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .log */ .Rm.debug("Setting edge", relation);
|
|
416
|
+
graph.setEdge(
|
|
417
|
+
relation.id1,
|
|
418
|
+
relation.id2,
|
|
419
|
+
{
|
|
420
|
+
relation,
|
|
421
|
+
width: getLabelWidth(relation.title),
|
|
422
|
+
height: conf.labelHeight * _chunk_ABZYJK2D_mjs__WEBPACK_IMPORTED_MODULE_11__/* .common_default */ .Y2.getRows(relation.title).length,
|
|
423
|
+
labelpos: "c"
|
|
424
|
+
},
|
|
425
|
+
"id" + cnt
|
|
426
|
+
);
|
|
427
|
+
});
|
|
428
|
+
(0,dagre_d3_es_src_dagre_index_js__WEBPACK_IMPORTED_MODULE_14__/* .layout */ .Zp)(graph);
|
|
429
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .log */ .Rm.debug("Graph after layout", graph.nodes());
|
|
430
|
+
const svgElem = diagram2.node();
|
|
431
|
+
graph.nodes().forEach(function(v) {
|
|
432
|
+
if (v !== void 0 && graph.node(v) !== void 0) {
|
|
433
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .log */ .Rm.warn("Node " + v + ": " + JSON.stringify(graph.node(v)));
|
|
434
|
+
root.select("#" + svgElem.id + " #" + v).attr(
|
|
435
|
+
"transform",
|
|
436
|
+
"translate(" + (graph.node(v).x - graph.node(v).width / 2) + "," + (graph.node(v).y + (transformationLog[v] ? transformationLog[v].y : 0) - graph.node(v).height / 2) + " )"
|
|
437
|
+
);
|
|
438
|
+
root.select("#" + svgElem.id + " #" + v).attr("data-x-shift", graph.node(v).x - graph.node(v).width / 2);
|
|
439
|
+
const dividers = domDocument.querySelectorAll("#" + svgElem.id + " #" + v + " .divider");
|
|
440
|
+
dividers.forEach((divider) => {
|
|
441
|
+
const parent = divider.parentElement;
|
|
442
|
+
let pWidth = 0;
|
|
443
|
+
let pShift = 0;
|
|
444
|
+
if (parent) {
|
|
445
|
+
if (parent.parentElement) {
|
|
446
|
+
pWidth = parent.parentElement.getBBox().width;
|
|
447
|
+
}
|
|
448
|
+
pShift = parseInt(parent.getAttribute("data-x-shift"), 10);
|
|
449
|
+
if (Number.isNaN(pShift)) {
|
|
450
|
+
pShift = 0;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
divider.setAttribute("x1", 0 - pShift + 8);
|
|
454
|
+
divider.setAttribute("x2", pWidth - pShift - 8);
|
|
455
|
+
});
|
|
456
|
+
} else {
|
|
457
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .log */ .Rm.debug("No Node " + v + ": " + JSON.stringify(graph.node(v)));
|
|
458
|
+
}
|
|
459
|
+
});
|
|
460
|
+
let stateBox = svgElem.getBBox();
|
|
461
|
+
graph.edges().forEach(function(e) {
|
|
462
|
+
if (e !== void 0 && graph.edge(e) !== void 0) {
|
|
463
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .log */ .Rm.debug("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(graph.edge(e)));
|
|
464
|
+
drawEdge(diagram2, graph.edge(e), graph.edge(e).relation);
|
|
465
|
+
}
|
|
466
|
+
});
|
|
467
|
+
stateBox = svgElem.getBBox();
|
|
468
|
+
const stateInfo = {
|
|
469
|
+
id: parentId ? parentId : "root",
|
|
470
|
+
label: parentId ? parentId : "root",
|
|
471
|
+
width: 0,
|
|
472
|
+
height: 0
|
|
473
|
+
};
|
|
474
|
+
stateInfo.width = stateBox.width + 2 * conf.padding;
|
|
475
|
+
stateInfo.height = stateBox.height + 2 * conf.padding;
|
|
476
|
+
_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .log */ .Rm.debug("Doc rendered", stateInfo, graph);
|
|
477
|
+
return stateInfo;
|
|
478
|
+
}, "renderDoc");
|
|
479
|
+
var stateRenderer_default = {
|
|
480
|
+
setConf,
|
|
481
|
+
draw
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
// src/diagrams/state/stateDiagram.ts
|
|
485
|
+
var diagram = {
|
|
486
|
+
parser: _chunk_DI55MBZ5_mjs__WEBPACK_IMPORTED_MODULE_0__/* .stateDiagram_default */ .Zk,
|
|
487
|
+
get db() {
|
|
488
|
+
return new _chunk_DI55MBZ5_mjs__WEBPACK_IMPORTED_MODULE_0__/* .StateDB */ .u4(1);
|
|
489
|
+
},
|
|
490
|
+
renderer: stateRenderer_default,
|
|
491
|
+
styles: _chunk_DI55MBZ5_mjs__WEBPACK_IMPORTED_MODULE_0__/* .styles_default */ .tM,
|
|
492
|
+
init: /* @__PURE__ */ (0,_chunk_AGHRB4JF_mjs__WEBPACK_IMPORTED_MODULE_12__/* .__name */ .K2)((cnf) => {
|
|
493
|
+
if (!cnf.state) {
|
|
494
|
+
cnf.state = {};
|
|
495
|
+
}
|
|
496
|
+
cnf.state.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
|
|
497
|
+
}, "init")
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
/***/ })
|
|
503
|
+
|
|
504
|
+
};
|
|
505
|
+
;
|
|
506
|
+
//# sourceMappingURL=53.node.js.map
|