redraft-local 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/README.md +143 -0
  2. package/bin/redraft.js +5 -0
  3. package/bin/redraft.mjs +5 -0
  4. package/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  5. package/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  6. package/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  7. package/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  8. package/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  9. package/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  10. package/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  11. package/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  12. package/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  13. package/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  14. package/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  15. package/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  16. package/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  17. package/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  18. package/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  19. package/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  20. package/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  21. package/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  22. package/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  23. package/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  24. package/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  25. package/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  26. package/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  27. package/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  28. package/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  29. package/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  30. package/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  31. package/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  32. package/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  33. package/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  34. package/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  35. package/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  36. package/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  37. package/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  38. package/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  39. package/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  40. package/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  41. package/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  42. package/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  43. package/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  44. package/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  45. package/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  46. package/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  47. package/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  48. package/dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  49. package/dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  50. package/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  51. package/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  52. package/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  53. package/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  54. package/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  55. package/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  56. package/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  57. package/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  58. package/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  59. package/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  60. package/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  61. package/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  62. package/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  63. package/dist/assets/apl-B4CMkyY2.js +1 -0
  64. package/dist/assets/arc-BgLKgAzo.js +1 -0
  65. package/dist/assets/architectureDiagram-3BPJPVTR-DUjZFSch.js +36 -0
  66. package/dist/assets/asciiarmor-Df11BRmG.js +1 -0
  67. package/dist/assets/asn1-EdZsLKOL.js +1 -0
  68. package/dist/assets/asterisk-B-8jnY81.js +1 -0
  69. package/dist/assets/blockDiagram-GPEHLZMM-B5lXfnYt.js +132 -0
  70. package/dist/assets/brainfuck-C4LP7Hcl.js +1 -0
  71. package/dist/assets/c4Diagram-AAUBKEIU-BvClm0qm.js +10 -0
  72. package/dist/assets/channel-7EQqZR3B.js +1 -0
  73. package/dist/assets/chunk-2J33WTMH-CEHXzvmq.js +1 -0
  74. package/dist/assets/chunk-4BX2VUAB-DSC0P7-r.js +1 -0
  75. package/dist/assets/chunk-55IACEB6--6omHD3y.js +1 -0
  76. package/dist/assets/chunk-727SXJPM-_oYajenN.js +206 -0
  77. package/dist/assets/chunk-AQP2D5EJ-CtBEk7Wt.js +231 -0
  78. package/dist/assets/chunk-FMBD7UC4-CUG06_Py.js +15 -0
  79. package/dist/assets/chunk-ND2GUHAM-ByZ-QCVp.js +1 -0
  80. package/dist/assets/chunk-QZHKN3VN-DyKKbGn5.js +1 -0
  81. package/dist/assets/classDiagram-4FO5ZUOK-E-KsPQ0n.js +1 -0
  82. package/dist/assets/classDiagram-v2-Q7XG4LA2-E-KsPQ0n.js +1 -0
  83. package/dist/assets/clike-B9uivgTg.js +1 -0
  84. package/dist/assets/clojure-BMjYHr_A.js +1 -0
  85. package/dist/assets/cmake-BQqOBYOt.js +1 -0
  86. package/dist/assets/cobol-CWcv1MsR.js +1 -0
  87. package/dist/assets/coffeescript-S37ZYGWr.js +1 -0
  88. package/dist/assets/commonlisp-DBKNyK5s.js +1 -0
  89. package/dist/assets/cose-bilkent-S5V4N54A-DO1d36Xa.js +1 -0
  90. package/dist/assets/crystal-SjHAIU92.js +1 -0
  91. package/dist/assets/css-BnMrqG3P.js +1 -0
  92. package/dist/assets/cypher-C_CwsFkJ.js +1 -0
  93. package/dist/assets/cytoscape.esm-D3_iZ_3b.js +321 -0
  94. package/dist/assets/d-pRatUO7H.js +1 -0
  95. package/dist/assets/dagre-BM42HDAG-CtijaGW4.js +4 -0
  96. package/dist/assets/defaultLocale-DX6XiGOO.js +1 -0
  97. package/dist/assets/diagram-2AECGRRQ-CLuIxwuH.js +43 -0
  98. package/dist/assets/diagram-5GNKFQAL-C1SsZ_SX.js +10 -0
  99. package/dist/assets/diagram-KO2AKTUF-0Q55p83r.js +3 -0
  100. package/dist/assets/diagram-LMA3HP47-Cxe6Lxmi.js +24 -0
  101. package/dist/assets/diagram-OG6HWLK6-DdRxQD4N.js +24 -0
  102. package/dist/assets/diff-DbItnlRl.js +1 -0
  103. package/dist/assets/dockerfile-BKs6k2Af.js +1 -0
  104. package/dist/assets/dtd-DF_7sFjM.js +1 -0
  105. package/dist/assets/dylan-DwRh75JA.js +1 -0
  106. package/dist/assets/ebnf-CDyGwa7X.js +1 -0
  107. package/dist/assets/ecl-Cabwm37j.js +1 -0
  108. package/dist/assets/eiffel-CnydiIhH.js +1 -0
  109. package/dist/assets/elm-vLlmbW-K.js +1 -0
  110. package/dist/assets/erDiagram-TEJ5UH35-Br4OpnN3.js +85 -0
  111. package/dist/assets/erlang-BNw1qcRV.js +1 -0
  112. package/dist/assets/factor-kuTfRLto.js +1 -0
  113. package/dist/assets/fcl-Kvtd6kyn.js +1 -0
  114. package/dist/assets/flowDiagram-I6XJVG4X-BiWm4cMT.js +162 -0
  115. package/dist/assets/forth-Ffai-XNe.js +1 -0
  116. package/dist/assets/fortran-DYz_wnZ1.js +1 -0
  117. package/dist/assets/ganttDiagram-6RSMTGT7-Brtf61gk.js +292 -0
  118. package/dist/assets/gas-Bneqetm1.js +1 -0
  119. package/dist/assets/gherkin-heZmZLOM.js +1 -0
  120. package/dist/assets/gitGraphDiagram-PVQCEYII-B_3TyVGw.js +106 -0
  121. package/dist/assets/graph-DtBDQa9e.js +1 -0
  122. package/dist/assets/groovy-D9Dt4D0W.js +1 -0
  123. package/dist/assets/haskell-Cw1EW3IL.js +1 -0
  124. package/dist/assets/haxe-H-WmDvRZ.js +1 -0
  125. package/dist/assets/http-DBlCnlav.js +1 -0
  126. package/dist/assets/idl-BEugSyMb.js +1 -0
  127. package/dist/assets/index-2ky3dpil.js +1 -0
  128. package/dist/assets/index-4KK6bEqw.js +1 -0
  129. package/dist/assets/index-5ZUGo5ij.js +1 -0
  130. package/dist/assets/index-7FKqtxp0.js +13 -0
  131. package/dist/assets/index-B-96Htfw.js +6 -0
  132. package/dist/assets/index-BADfuR--.js +1 -0
  133. package/dist/assets/index-BD8MFdSo.js +1 -0
  134. package/dist/assets/index-BR9BrISk.js +1 -0
  135. package/dist/assets/index-BfnTu5JW.js +1 -0
  136. package/dist/assets/index-BgooUBR3.js +1 -0
  137. package/dist/assets/index-BkakCAI-.js +1 -0
  138. package/dist/assets/index-CBjB7xM7.js +1 -0
  139. package/dist/assets/index-CZY06TRX.js +1381 -0
  140. package/dist/assets/index-CiPTn2KW.js +2 -0
  141. package/dist/assets/index-CymWWySw.js +1 -0
  142. package/dist/assets/index-DKi-lLAL.js +1 -0
  143. package/dist/assets/index-Da6DydBE.js +1 -0
  144. package/dist/assets/index-Df2jy_bv.js +7 -0
  145. package/dist/assets/index-Ds7udwcB.js +3 -0
  146. package/dist/assets/index-MfTARqwV.css +1 -0
  147. package/dist/assets/index-OT6ZQvoz.js +1 -0
  148. package/dist/assets/index-Ot1nLBuC.js +1 -0
  149. package/dist/assets/index-PN8t7sGq.js +1 -0
  150. package/dist/assets/index-qn0Rsj7y.js +1 -0
  151. package/dist/assets/infoDiagram-5YYISTIA-DXpolhhW.js +2 -0
  152. package/dist/assets/init-Gi6I4Gst.js +1 -0
  153. package/dist/assets/ishikawaDiagram-YF4QCWOH-CaMQv6HD.js +70 -0
  154. package/dist/assets/javascript-iXu5QeM3.js +1 -0
  155. package/dist/assets/journeyDiagram-JHISSGLW-grFPpRCE.js +139 -0
  156. package/dist/assets/julia-DuME0IfC.js +1 -0
  157. package/dist/assets/kanban-definition-UN3LZRKU-BXTf-nUc.js +89 -0
  158. package/dist/assets/katex-HP8lGamR.js +257 -0
  159. package/dist/assets/layout-BfOOH1Wh.js +1 -0
  160. package/dist/assets/linear-DzLvWW3N.js +1 -0
  161. package/dist/assets/livescript-BwQOo05w.js +1 -0
  162. package/dist/assets/lua-VAEuO923.js +1 -0
  163. package/dist/assets/mathematica-DTrFuWx2.js +1 -0
  164. package/dist/assets/mbox-CNhZ1qSd.js +1 -0
  165. package/dist/assets/mindmap-definition-RKZ34NQL-DnhBS8H1.js +96 -0
  166. package/dist/assets/mirc-CjQqDB4T.js +1 -0
  167. package/dist/assets/mllike-CXdrOF99.js +1 -0
  168. package/dist/assets/modelica-Dc1JOy9r.js +1 -0
  169. package/dist/assets/mscgen-BA5vi2Kp.js +1 -0
  170. package/dist/assets/mumps-BT43cFF4.js +1 -0
  171. package/dist/assets/nginx-DdIZxoE0.js +1 -0
  172. package/dist/assets/nsis-LdVXkNf5.js +1 -0
  173. package/dist/assets/ntriples-BfvgReVJ.js +1 -0
  174. package/dist/assets/octave-Ck1zUtKM.js +1 -0
  175. package/dist/assets/ordinal-Cboi1Yqb.js +1 -0
  176. package/dist/assets/oz-BzwKVEFT.js +1 -0
  177. package/dist/assets/pascal--L3eBynH.js +1 -0
  178. package/dist/assets/perl-CdXCOZ3F.js +1 -0
  179. package/dist/assets/pieDiagram-4H26LBE5-DjWB8MBQ.js +30 -0
  180. package/dist/assets/pig-CevX1Tat.js +1 -0
  181. package/dist/assets/powershell-CFHJl5sT.js +1 -0
  182. package/dist/assets/properties-C78fOPTZ.js +1 -0
  183. package/dist/assets/protobuf-ChK-085T.js +1 -0
  184. package/dist/assets/pug-DeIclll2.js +1 -0
  185. package/dist/assets/puppet-DMA9R1ak.js +1 -0
  186. package/dist/assets/python-BuPzkPfP.js +1 -0
  187. package/dist/assets/q-pXgVlZs6.js +1 -0
  188. package/dist/assets/quadrantDiagram-W4KKPZXB-AbXkFaom.js +7 -0
  189. package/dist/assets/r-B6wPVr8A.js +1 -0
  190. package/dist/assets/requirementDiagram-4Y6WPE33-Dmvesc_X.js +84 -0
  191. package/dist/assets/rpm-CTu-6PCP.js +1 -0
  192. package/dist/assets/ruby-B2Rjki9n.js +1 -0
  193. package/dist/assets/sankeyDiagram-5OEKKPKP-CTvY1DJo.js +40 -0
  194. package/dist/assets/sas-B4kiWyti.js +1 -0
  195. package/dist/assets/scheme-C41bIUwD.js +1 -0
  196. package/dist/assets/sequenceDiagram-3UESZ5HK-ejgTSjfJ.js +162 -0
  197. package/dist/assets/shell-CjFT_Tl9.js +1 -0
  198. package/dist/assets/sieve-C3Gn_uJK.js +1 -0
  199. package/dist/assets/simple-mode-GW_nhZxv.js +1 -0
  200. package/dist/assets/smalltalk-CnHTOXQT.js +1 -0
  201. package/dist/assets/solr-DehyRSwq.js +1 -0
  202. package/dist/assets/sparql-DkYu6x3z.js +1 -0
  203. package/dist/assets/spreadsheet-BCZA_wO0.js +1 -0
  204. package/dist/assets/sql-D0XecflT.js +1 -0
  205. package/dist/assets/stateDiagram-AJRCARHV-Drx8IQcv.js +1 -0
  206. package/dist/assets/stateDiagram-v2-BHNVJYJU-BWYCpSzu.js +1 -0
  207. package/dist/assets/stex-C3f8Ysf7.js +1 -0
  208. package/dist/assets/stylus-B533Al4x.js +1 -0
  209. package/dist/assets/swift-BzpIVaGY.js +1 -0
  210. package/dist/assets/tcl-DVfN8rqt.js +1 -0
  211. package/dist/assets/textile-CnDTJFAw.js +1 -0
  212. package/dist/assets/tiddlywiki-DO-Gjzrf.js +1 -0
  213. package/dist/assets/tiki-DGYXhP31.js +1 -0
  214. package/dist/assets/timeline-definition-PNZ67QCA-DXznZ8i_.js +120 -0
  215. package/dist/assets/toml-Bm5Em-hy.js +1 -0
  216. package/dist/assets/troff-wAsdV37c.js +1 -0
  217. package/dist/assets/ttcn-CfJYG6tj.js +1 -0
  218. package/dist/assets/ttcn-cfg-B9xdYoR4.js +1 -0
  219. package/dist/assets/turtle-B1tBg_DP.js +1 -0
  220. package/dist/assets/vb-CmGdzxic.js +1 -0
  221. package/dist/assets/vbscript-BuJXcnF6.js +1 -0
  222. package/dist/assets/velocity-D8B20fx6.js +1 -0
  223. package/dist/assets/vennDiagram-CIIHVFJN-CLIExu7h.js +34 -0
  224. package/dist/assets/verilog-C6RDOZhf.js +1 -0
  225. package/dist/assets/vhdl-lSbBsy5d.js +1 -0
  226. package/dist/assets/wardley-L42UT6IY-CJGVDUi0.js +161 -0
  227. package/dist/assets/wardleyDiagram-YWT4CUSO-DB0Z_Z7a.js +78 -0
  228. package/dist/assets/webidl-ZXfAyPTL.js +1 -0
  229. package/dist/assets/xquery-DzFWVndE.js +1 -0
  230. package/dist/assets/xychartDiagram-2RQKCTM6-CLdNuotp.js +7 -0
  231. package/dist/assets/yacas-BJ4BC0dw.js +1 -0
  232. package/dist/assets/z80-Hz9HOZM7.js +1 -0
  233. package/dist/favicon.png +0 -0
  234. package/dist/index.html +14 -0
  235. package/dist/logo.png +0 -0
  236. package/dist-server/cli.mjs +725 -0
  237. package/package.json +79 -0
@@ -0,0 +1,89 @@
1
+ import{_ as o,v as te,r as H,a7 as fe,aD as ye,aE as be,aF as me,aB as Ee,a5 as K,z as j,R as _e,S as ke,ay as Se,az as ce,aA as le}from"./index-CZY06TRX.js";import{g as Ne}from"./chunk-FMBD7UC4-CUG06_Py.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],E=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],_=[6,7,11],G=[1,31],N=[6,7,11,24],B=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],M=[1,38],T={trace:o(function(){},"trace"),yy:{},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},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"},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]],performAction:o(function(s,n,r,a,u,t,U){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:E,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:E,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:E,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(_,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(_,[2,19]),e(_,[2,21],{15:30,24:G}),e(_,[2,22]),e(_,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:E,18:17,19:18,20:m,23:l},e(B,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(_,[2,16],{15:37,24:G}),e(_,[2,17]),e(_,[2,18]),e(_,[2,20],{24:M}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(B,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(_,[2,15],{24:M}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],U=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;t.push(q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var k,P,x,Q,F={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((k===null||typeof k>"u")&&(k=ae()),x=U[P]&&U[P][k]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in U[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
2
+ `+b.showPosition()+`
3
+ Expecting `+X.join(", ")+", got '"+(this.terminals_[k]||k)+"'":Z="Parse error on line "+(W+1)+": Unexpected "+(k==re?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(Z,{text:b.match,token:this.terminals_[k]||k,line:b.yylineno,loc:q,expected:X})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+k);switch(x[0]){case 1:r.push(k),u.push(b.yytext),t.push(b.yylloc),r.push(x[1]),k=null,ie=b.yyleng,c=b.yytext,W=b.yylineno,q=b.yylloc;break;case 2:if(C=this.productions_[x[1]][1],F.$=u[u.length-C],F._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},de&&(F._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(F,[c,ie,W,R.yy,x[1],u,t].concat(ge)),typeof Q<"u")return Q;C&&(r=r.slice(0,-1*C*2),u=u.slice(0,-1*C),t=t.slice(0,-1*C)),r.push(this.productions_[x[1]][0]),u.push(F.$),t.push(F._$),oe=U[r[r.length-2]][r[r.length-1]],r.push(oe);break;case 3:return!0}}return!0},"parse")},Y=(function(){var O={EOF:1,parseError:o(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),setInput:o(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var n=s.length,r=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=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),r.length-1&&(this.yylineno-=r.length-1);var u=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:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
5
+ `+n+"^"},"showPosition"),test_match:o(function(s,n){var r,a,u;if(this.options.backtrack_lexer&&(u={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(u.yylloc.range=this.yylloc.range.slice(0))),a=s[0].match(/(?:\r\n?|\n).*/g),a&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],r=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var t in u)this[t]=u[t];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,n,r,a;this._more||(this.yytext="",this.match="");for(var u=this._currentRules(),t=0;t<u.length;t++)if(r=this._input.match(this.rules[u[t]]),r&&(!n||r[0].length>n[0].length)){if(n=r,a=t,this.options.backtrack_lexer){if(s=this.test_match(r,u[t]),s!==!1)return s;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(s=this.test_match(n,u[a]),s!==!1?s:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var n=this.next();return n||this.lex()},"lex"),begin:o(function(n){this.conditionStack.push(n)},"begin"),popState:o(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(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:o(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:o(function(n){this.begin(n)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(n,r,a,u){switch(a){case 0:return this.pushState("shapeData"),r.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const t=/\n\s*/g;return r.yytext=r.yytext.replace(t,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return n.getLogger().trace("Found comment",r.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:n.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return n.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:n.getLogger().trace("end icon"),this.popState();break;case 16:return n.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return n.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return n.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return n.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:return this.begin("NODE"),20;case 21:return this.begin("NODE"),20;case 22:return this.begin("NODE"),20;case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:n.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return n.getLogger().trace("description:",r.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),n.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),n.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),n.getLogger().trace("node end ...",r.yytext),"NODE_DEND";case 36:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 41:return n.getLogger().trace("Long description:",r.yytext),21;case 42:return n.getLogger().trace("Long description:",r.yytext),21}},"anonymous"),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],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return O})();T.lexer=Y;function V(){this.yy={}}return o(V,"Parser"),V.prototype=T,T.Parser=V,new V})();$.parser=$;var xe=$,v=[],ne=[],ee=0,se={},ve=o(()=>{v=[],ne=[],ee=0,se={}},"clear"),De=o(e=>{if(v.length===0)return null;const h=v[0].level;let p=null;for(let i=v.length-1;i>=0;i--)if(v[i].level===h&&!p&&(p=v[i]),v[i].level<h)throw new Error('Items without section detected, found section ("'+v[i].label+'")');return e===p?.level?null:p},"getSection"),he=o(function(){return ne},"getSections"),Le=o(function(){const e=[],h=[],p=he(),i=H();for(const d of p){const E={id:d.id,label:j(d.label??"",i),labelType:"markdown",isGroup:!0,ticket:d.ticket,shape:"kanbanSection",level:d.level,look:i.look};h.push(E);const m=v.filter(l=>l.parentId===d.id);for(const l of m){const D={id:l.id,parentId:d.id,label:j(l.label??"",i),labelType:"markdown",isGroup:!1,ticket:l?.ticket,priority:l?.priority,assigned:l?.assigned,icon:l?.icon,shape:"kanbanItem",level:l.level,rx:5,ry:5,cssStyles:["text-align: left"]};h.push(D)}}return{nodes:h,edges:e,other:{},config:H()}},"getData"),Oe=o((e,h,p,i,d)=>{const E=H();let m=E.mindmap?.padding??K.mindmap.padding;switch(i){case y.ROUNDED_RECT:case y.RECT:case y.HEXAGON:m*=2}const l={id:j(h,E)||"kbn"+ee++,level:e,label:j(p,E),width:E.mindmap?.maxNodeWidth??K.mindmap.maxNodeWidth,padding:m,isGroup:!1};if(d!==void 0){let I;d.includes(`
7
+ `)?I=d+`
8
+ `:I=`{
9
+ `+d+`
10
+ }`;const g=_e(I,{schema:ke});if(g.shape&&(g.shape!==g.shape.toLowerCase()||g.shape.includes("_")))throw new Error(`No such shape: ${g.shape}. Shape names should be lowercase.`);g?.shape&&g.shape==="kanbanItem"&&(l.shape=g?.shape),g?.label&&(l.label=g?.label),g?.icon&&(l.icon=g?.icon.toString()),g?.assigned&&(l.assigned=g?.assigned.toString()),g?.ticket&&(l.ticket=g?.ticket.toString()),g?.priority&&(l.priority=g?.priority)}const D=De(e);D?l.parentId=D.id||"kbn"+ee++:ne.push(l),v.push(l)},"addNode"),y={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Ie=o((e,h)=>{switch(te.debug("In get type",e,h),e){case"[":return y.RECT;case"(":return h===")"?y.ROUNDED_RECT:y.CLOUD;case"((":return y.CIRCLE;case")":return y.CLOUD;case"))":return y.BANG;case"{{":return y.HEXAGON;default:return y.DEFAULT}},"getType"),Ce=o((e,h)=>{se[e]=h},"setElementForId"),we=o(e=>{if(!e)return;const h=H(),p=v[v.length-1];e.icon&&(p.icon=j(e.icon,h)),e.class&&(p.cssClasses=j(e.class,h))},"decorateNode"),Ae=o(e=>{switch(e){case y.DEFAULT:return"no-border";case y.RECT:return"rect";case y.ROUNDED_RECT:return"rounded-rect";case y.CIRCLE:return"circle";case y.CLOUD:return"cloud";case y.BANG:return"bang";case y.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),Te=o(()=>te,"getLogger"),Re=o(e=>se[e],"getElementById"),Pe={clear:ve,addNode:Oe,getSections:he,getData:Le,nodeType:y,getType:Ie,setElementForId:Ce,decorateNode:we,type2Str:Ae,getLogger:Te,getElementById:Re},Be=Pe,Ve=o(async(e,h,p,i)=>{te.debug(`Rendering kanban diagram
11
+ `+e);const E=i.db.getData(),m=H();m.htmlLabels=!1;const l=fe(h);for(const f of E.nodes)f.domId=`${h}-${f.id}`;const D=l.append("g");D.attr("class","sections");const I=l.append("g");I.attr("class","items");const g=E.nodes.filter(f=>f.isGroup);let w=0;const _=10,G=[];let N=25;for(const f of g){const A=m?.kanban?.sectionWidth||200;w=w+1,f.x=A*w+(w-1)*_/2,f.width=A,f.y=0,f.height=A*3,f.rx=5,f.ry=5,f.cssClasses=f.cssClasses+" section-"+w;const L=await ye(D,f);N=Math.max(N,L?.labelBBox?.height),G.push(L)}let B=0;for(const f of g){const A=G[B];B=B+1;const L=m?.kanban?.sectionWidth||200,M=-L*3/2+N;let T=M;const Y=E.nodes.filter(s=>s.parentId===f.id);for(const s of Y){if(s.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");s.x=f.x,s.width=L-1.5*_;const r=(await be(I,s,{config:m})).node().getBBox();s.y=T+r.height/2,await me(s),T=s.y+r.height/2+_/2}const V=A.cluster.select("rect"),O=Math.max(T-M+3*_,50)+(N-25);V.attr("height",O)}Ee(void 0,l,m.mindmap?.padding??K.kanban.padding,m.mindmap?.useMaxWidth??K.kanban.useMaxWidth)},"draw"),Fe={draw:Ve},je=o(e=>{let h="";for(let i=0;i<e.THEME_COLOR_LIMIT;i++)e["lineColor"+i]=e["lineColor"+i]||e["cScaleInv"+i],Se(e["lineColor"+i])?e["lineColor"+i]=ce(e["lineColor"+i],20):e["lineColor"+i]=le(e["lineColor"+i],20);const p=o((i,d)=>e.darkMode?le(i,d):ce(i,d),"adjuster");for(let i=0;i<e.THEME_COLOR_LIMIT;i++){const d=""+(17-3*i);h+=`
12
+ .section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} polygon, .section-${i-1} path {
13
+ fill: ${p(e["cScale"+i],10)};
14
+ stroke: ${p(e["cScale"+i],10)};
15
+
16
+ }
17
+ .section-${i-1} text {
18
+ fill: ${e["cScaleLabel"+i]};
19
+ }
20
+ .node-icon-${i-1} {
21
+ font-size: 40px;
22
+ color: ${e["cScaleLabel"+i]};
23
+ }
24
+ .section-edge-${i-1}{
25
+ stroke: ${e["cScale"+i]};
26
+ }
27
+ .edge-depth-${i-1}{
28
+ stroke-width: ${d};
29
+ }
30
+ .section-${i-1} line {
31
+ stroke: ${e["cScaleInv"+i]} ;
32
+ stroke-width: 3;
33
+ }
34
+
35
+ .disabled, .disabled circle, .disabled text {
36
+ fill: lightgray;
37
+ }
38
+ .disabled text {
39
+ fill: #efefef;
40
+ }
41
+
42
+ .node rect,
43
+ .node circle,
44
+ .node ellipse,
45
+ .node polygon,
46
+ .node path {
47
+ fill: ${e.background};
48
+ stroke: ${e.nodeBorder};
49
+ stroke-width: 1px;
50
+ }
51
+
52
+ .kanban-ticket-link {
53
+ fill: ${e.background};
54
+ stroke: ${e.nodeBorder};
55
+ text-decoration: underline;
56
+ }
57
+ `}return h},"genSections"),Ge=o(e=>`
58
+ .edge {
59
+ stroke-width: 3;
60
+ }
61
+ ${je(e)}
62
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
63
+ fill: ${e.git0};
64
+ }
65
+ .section-root text {
66
+ fill: ${e.gitBranchLabel0};
67
+ }
68
+ .icon-container {
69
+ height:100%;
70
+ display: flex;
71
+ justify-content: center;
72
+ align-items: center;
73
+ }
74
+ .edge {
75
+ fill: none;
76
+ }
77
+ .cluster-label, .label {
78
+ color: ${e.textColor};
79
+ fill: ${e.textColor};
80
+ }
81
+ .kanban-label {
82
+ dy: 1em;
83
+ alignment-baseline: middle;
84
+ text-anchor: middle;
85
+ dominant-baseline: middle;
86
+ text-align: center;
87
+ }
88
+ ${Ne()}
89
+ `,"getStyles"),Me=Ge,We={db:Be,renderer:Fe,parser:xe,styles:Me};export{We as diagram};