@sme.up/ketchup2 1.4.0 → 1.5.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 (207) hide show
  1. package/dist/_basePickBy-C8RsxlpP.cjs +1 -0
  2. package/dist/_basePickBy-Ca4nzDCq.js +151 -0
  3. package/dist/_baseUniq-4AMvkUHx.cjs +1 -0
  4. package/dist/_baseUniq-4DYbSb4g.js +614 -0
  5. package/dist/arc-0onjh8Q1.cjs +1 -0
  6. package/dist/arc-Bp2TTsxp.js +83 -0
  7. package/dist/architecture-O4VJ6CD3-BO-KWOMO.js +5 -0
  8. package/dist/architecture-O4VJ6CD3-BY3keMJR.cjs +1 -0
  9. package/dist/architectureDiagram-W76B3OCA-Bl619mqp.cjs +36 -0
  10. package/dist/architectureDiagram-W76B3OCA-D9RT0bQQ.js +4660 -0
  11. package/dist/assets/buttonListAssets.d.ts.map +1 -1
  12. package/dist/assets/svg/info_outline.svg +1 -0
  13. package/dist/assets/svg/more_horizontal.svg +1 -0
  14. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  15. package/dist/basic-components/button-group/button-group.d.ts.map +1 -1
  16. package/dist/basic-components/cell/cell-types.d.ts +11 -0
  17. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  18. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  19. package/dist/basic-components/checkbox/checkbox.d.ts.map +1 -1
  20. package/dist/basic-components/combobox/combobox.d.ts.map +1 -1
  21. package/dist/basic-components/icon/icon.d.ts.map +1 -1
  22. package/dist/basic-components/list/list-types.d.ts +1 -0
  23. package/dist/basic-components/list/list-types.d.ts.map +1 -1
  24. package/dist/basic-components/list/list.d.ts.map +1 -1
  25. package/dist/basic-components/mulitple-autocomplete/multiple-autocomplete-types.d.ts +4 -0
  26. package/dist/basic-components/mulitple-autocomplete/multiple-autocomplete-types.d.ts.map +1 -1
  27. package/dist/basic-components/mulitple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
  28. package/dist/basic-components/text/text.d.ts.map +1 -1
  29. package/dist/basic-components/textarea/textarea-types.d.ts +1 -0
  30. package/dist/basic-components/textarea/textarea-types.d.ts.map +1 -1
  31. package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
  32. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  33. package/dist/basic-components/typography/typography-types.d.ts +13 -1
  34. package/dist/basic-components/typography/typography-types.d.ts.map +1 -1
  35. package/dist/basic-components/typography/typography.d.ts.map +1 -1
  36. package/dist/blockDiagram-QIGZ2CNN-Cwz-49Hp.cjs +122 -0
  37. package/dist/blockDiagram-QIGZ2CNN-DusKAnCv.js +2261 -0
  38. package/dist/c4Diagram-FPNF74CW-BgZK1w_0.cjs +10 -0
  39. package/dist/c4Diagram-FPNF74CW-CLRSUR6U.js +1580 -0
  40. package/dist/channel-DeT7sbHs.cjs +1 -0
  41. package/dist/channel-Dj-sZC_y.js +5 -0
  42. package/dist/chunk-4BX2VUAB-B3l1Ono_.cjs +1 -0
  43. package/dist/chunk-4BX2VUAB-Bgwq4Diy.js +8 -0
  44. package/dist/chunk-55IACEB6-C1opfhtY.js +8 -0
  45. package/dist/chunk-55IACEB6-C6PQzR3x.cjs +1 -0
  46. package/dist/chunk-FMBD7UC4-C51OwFKG.cjs +15 -0
  47. package/dist/chunk-FMBD7UC4-W5VVHmrc.js +19 -0
  48. package/dist/chunk-K7UQS3LO-CpNcY51w.js +1375 -0
  49. package/dist/chunk-K7UQS3LO-jP-qBkZT.cjs +165 -0
  50. package/dist/chunk-QN33PNHL-B5ELiM3k.js +19 -0
  51. package/dist/chunk-QN33PNHL-BEvtonwy.cjs +1 -0
  52. package/dist/chunk-QZHKN3VN-BGGyel0T.cjs +1 -0
  53. package/dist/chunk-QZHKN3VN-JGjxSMku.js +15 -0
  54. package/dist/chunk-TVAH2DTR-BYlMByBM.js +1370 -0
  55. package/dist/chunk-TVAH2DTR-DnLs3B2h.cjs +220 -0
  56. package/dist/chunk-TZMSLE5B-BKH4WKcd.js +64 -0
  57. package/dist/chunk-TZMSLE5B-CTsbwbO3.cjs +1 -0
  58. package/dist/classDiagram-KNZD7YFC-CQIiCgRf.js +16 -0
  59. package/dist/classDiagram-KNZD7YFC-jStKK4eB.cjs +1 -0
  60. package/dist/classDiagram-v2-RKCZMP56-CQIiCgRf.js +16 -0
  61. package/dist/classDiagram-v2-RKCZMP56-jStKK4eB.cjs +1 -0
  62. package/dist/clone-BWQ0Hk5U.js +8 -0
  63. package/dist/clone-BbrGYdY4.cjs +1 -0
  64. package/dist/components/app-bar/app-bar.data.d.ts +2 -0
  65. package/dist/components/app-bar/app-bar.data.d.ts.map +1 -1
  66. package/dist/components/breadcrumbs/breadcrumbs-types.d.ts +13 -0
  67. package/dist/components/breadcrumbs/breadcrumbs-types.d.ts.map +1 -0
  68. package/dist/components/breadcrumbs/breadcrumbs.d.ts +4 -0
  69. package/dist/components/breadcrumbs/breadcrumbs.d.ts.map +1 -0
  70. package/dist/components/data-table/columns/useColumnWidths.d.ts.map +1 -1
  71. package/dist/components/data-table/filtering/data-table-filter-utils.d.ts.map +1 -1
  72. package/dist/components/data-table/header/Header.d.ts.map +1 -1
  73. package/dist/components/echarts.tsx/echarts-graph-types.d.ts +8 -0
  74. package/dist/components/echarts.tsx/echarts-graph-types.d.ts.map +1 -0
  75. package/dist/components/echarts.tsx/echarts-graph.d.ts +4 -0
  76. package/dist/components/echarts.tsx/echarts-graph.d.ts.map +1 -0
  77. package/dist/components/field/field-types.d.ts +2 -0
  78. package/dist/components/field/field-types.d.ts.map +1 -1
  79. package/dist/components/field/field.d.ts.map +1 -1
  80. package/dist/components/input-panel/assets/data.d.ts +1 -0
  81. package/dist/components/input-panel/assets/data.d.ts.map +1 -1
  82. package/dist/components/input-panel/input-panel-types.d.ts +5 -0
  83. package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
  84. package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
  85. package/dist/components/input-panel/input-panel.d.ts.map +1 -1
  86. package/dist/components/mermaid/mermaid-types.d.ts +8 -0
  87. package/dist/components/mermaid/mermaid-types.d.ts.map +1 -0
  88. package/dist/components/mermaid/mermaid.d.ts +4 -0
  89. package/dist/components/mermaid/mermaid.d.ts.map +1 -0
  90. package/dist/components/tab-bar/tab-bar-types.d.ts +11 -0
  91. package/dist/components/tab-bar/tab-bar-types.d.ts.map +1 -1
  92. package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
  93. package/dist/components/toolbar/assets/data.d.ts +7 -0
  94. package/dist/components/toolbar/assets/data.d.ts.map +1 -0
  95. package/dist/components/toolbar/toolbar-node.d.ts +3 -0
  96. package/dist/components/toolbar/toolbar-node.d.ts.map +1 -0
  97. package/dist/components/toolbar/toolbar-types.d.ts +78 -0
  98. package/dist/components/toolbar/toolbar-types.d.ts.map +1 -0
  99. package/dist/components/toolbar/toolbar-utils/useKeyboardNavigation.d.ts +12 -0
  100. package/dist/components/toolbar/toolbar-utils/useKeyboardNavigation.d.ts.map +1 -0
  101. package/dist/components/toolbar/toolbar-utils/useToolbarInteractions.d.ts +8 -0
  102. package/dist/components/toolbar/toolbar-utils/useToolbarInteractions.d.ts.map +1 -0
  103. package/dist/components/toolbar/toolbar-utils/utils.d.ts +12 -0
  104. package/dist/components/toolbar/toolbar-utils/utils.d.ts.map +1 -0
  105. package/dist/components/toolbar/toolbar.d.ts +3 -0
  106. package/dist/components/toolbar/toolbar.d.ts.map +1 -0
  107. package/dist/cose-bilkent-S5V4N54A-B4JnIgaa.js +2608 -0
  108. package/dist/cose-bilkent-S5V4N54A-DfSYAN4b.cjs +1 -0
  109. package/dist/cytoscape.esm-CamnA8MN.js +18735 -0
  110. package/dist/cytoscape.esm-uM8noIeE.cjs +331 -0
  111. package/dist/dagre-5GWH7T2D-DJ2exxQr.js +444 -0
  112. package/dist/dagre-5GWH7T2D-prvPY7PG.cjs +4 -0
  113. package/dist/defaultLocale-D7EN2tov.js +171 -0
  114. package/dist/defaultLocale-DIVzfLaQ.cjs +1 -0
  115. package/dist/diagram-N5W7TBWH-By_2P30B.js +532 -0
  116. package/dist/diagram-N5W7TBWH-CeUaJPOp.cjs +24 -0
  117. package/dist/diagram-QEK2KX5R-BUvMLN6S.cjs +43 -0
  118. package/dist/diagram-QEK2KX5R-DbnHXk_4.js +217 -0
  119. package/dist/diagram-S2PKOQOG-BrYhLVIy.js +142 -0
  120. package/dist/diagram-S2PKOQOG-OK7fnVi7.cjs +24 -0
  121. package/dist/erDiagram-AWTI2OKA-RFzTot8M.js +841 -0
  122. package/dist/erDiagram-AWTI2OKA-g_jlgQzA.cjs +60 -0
  123. package/dist/flowDiagram-PVAE7QVJ-B3R11Aox.cjs +162 -0
  124. package/dist/flowDiagram-PVAE7QVJ-D9mXGgMa.js +1620 -0
  125. package/dist/functional-components/filter-group/filter-builder-types.d.ts +1 -3
  126. package/dist/functional-components/filter-group/filter-builder-types.d.ts.map +1 -1
  127. package/dist/functional-components/filter-group/filter-builder.d.ts.map +1 -1
  128. package/dist/functional-components/helper-tooltip/helper-tooltip-types.d.ts +12 -0
  129. package/dist/functional-components/helper-tooltip/helper-tooltip-types.d.ts.map +1 -0
  130. package/dist/functional-components/helper-tooltip/helper-tooltip.d.ts +3 -0
  131. package/dist/functional-components/helper-tooltip/helper-tooltip.d.ts.map +1 -0
  132. package/dist/functional-components/label/label-types.d.ts +4 -0
  133. package/dist/functional-components/label/label-types.d.ts.map +1 -1
  134. package/dist/functional-components/label/label.d.ts.map +1 -1
  135. package/dist/ganttDiagram-OWAHRB6G-DBRiNI5D.js +2504 -0
  136. package/dist/ganttDiagram-OWAHRB6G-Pm7GR_TY.cjs +267 -0
  137. package/dist/gitGraph-ZV4HHKMB-D8V_C5KP.cjs +1 -0
  138. package/dist/gitGraph-ZV4HHKMB-eEo6BeMY.js +5 -0
  139. package/dist/gitGraphDiagram-NY62KEGX-CqQTEJ2T.js +699 -0
  140. package/dist/gitGraphDiagram-NY62KEGX-DboC2-zX.cjs +65 -0
  141. package/dist/graph-CDx2s7rR.cjs +1 -0
  142. package/dist/graph-CI25A6Kp.js +247 -0
  143. package/dist/hooks/useFloating.d.ts +2 -2
  144. package/dist/hooks/useFloating.d.ts.map +1 -1
  145. package/dist/index-Dj0ZpuHR.js +24067 -0
  146. package/dist/index-TKKiVw_8.cjs +301 -0
  147. package/dist/index.d.ts +34 -16
  148. package/dist/index.d.ts.map +1 -1
  149. package/dist/info-63CPKGFF-BNTMLGHi.cjs +1 -0
  150. package/dist/info-63CPKGFF-DFSUnGmm.js +5 -0
  151. package/dist/infoDiagram-STP46IZ2-XI14GI2O.js +24 -0
  152. package/dist/infoDiagram-STP46IZ2-cEMZnZwe.cjs +2 -0
  153. package/dist/init-CHZsXQcr.cjs +1 -0
  154. package/dist/init-DjUOC4st.js +16 -0
  155. package/dist/journeyDiagram-BIP6EPQ6-4r8HPM76.js +836 -0
  156. package/dist/journeyDiagram-BIP6EPQ6-DSATBOy7.cjs +139 -0
  157. package/dist/kanban-definition-6OIFK2YF-DArDhI5N.cjs +89 -0
  158. package/dist/kanban-definition-6OIFK2YF-IpG0t2dU.js +719 -0
  159. package/dist/katex-C2g-EhzP.cjs +261 -0
  160. package/dist/katex-CUSbq6rG.js +11692 -0
  161. package/dist/ketchup2.cjs.js +1 -50
  162. package/dist/ketchup2.css +1 -1
  163. package/dist/ketchup2.es.js +25 -7643
  164. package/dist/layout-BecFZ4zf.js +1324 -0
  165. package/dist/layout-tzBIhASb.cjs +1 -0
  166. package/dist/linear-R3HoIM28.cjs +1 -0
  167. package/dist/linear-xGWDkmQQ.js +259 -0
  168. package/dist/locale/en/translation.json.d.ts +5 -0
  169. package/dist/locale/it/translation.json.d.ts +5 -0
  170. package/dist/mermaid-parser.core-DR7pLDVq.cjs +128 -0
  171. package/dist/mermaid-parser.core-DgSQdd2P.js +12966 -0
  172. package/dist/mindmap-definition-Q6HEUPPD-CBd_3OoJ.js +755 -0
  173. package/dist/mindmap-definition-Q6HEUPPD-DziA_FlL.cjs +68 -0
  174. package/dist/ordinal-CagbB1m8.cjs +1 -0
  175. package/dist/ordinal-DfAQgscy.js +61 -0
  176. package/dist/packet-HUATNLJX-8m622N0T.js +5 -0
  177. package/dist/packet-HUATNLJX-D4q4_tdF.cjs +1 -0
  178. package/dist/pie-WTHONI2E-BkaU-1dT.js +5 -0
  179. package/dist/pie-WTHONI2E-Xdgx4zVT.cjs +1 -0
  180. package/dist/pieDiagram-ADFJNKIX-B27FR3VA.js +161 -0
  181. package/dist/pieDiagram-ADFJNKIX-C3_xZOy7.cjs +30 -0
  182. package/dist/quadrantDiagram-LMRXKWRM-DTb52YQ-.js +1022 -0
  183. package/dist/quadrantDiagram-LMRXKWRM-DjfwCssa.cjs +7 -0
  184. package/dist/radar-NJJJXTRR-CmDh362n.cjs +1 -0
  185. package/dist/radar-NJJJXTRR-DFMxAHYB.js +5 -0
  186. package/dist/requirementDiagram-4UW4RH46-CNnd2CY8.cjs +64 -0
  187. package/dist/requirementDiagram-4UW4RH46-Cpp55-Ws.js +850 -0
  188. package/dist/sankeyDiagram-GR3RE2ED-DGwCb9oE.cjs +10 -0
  189. package/dist/sankeyDiagram-GR3RE2ED-DKK_ac-i.js +810 -0
  190. package/dist/sequenceDiagram-C3RYC4MD-BREsTbdm.cjs +145 -0
  191. package/dist/sequenceDiagram-C3RYC4MD-CO9gcZLo.js +2511 -0
  192. package/dist/stateDiagram-KXAO66HF-CVAuruFr.js +263 -0
  193. package/dist/stateDiagram-KXAO66HF-M3UqQp73.cjs +1 -0
  194. package/dist/stateDiagram-v2-UMBNRL4Z-Ck-52CSr.js +16 -0
  195. package/dist/stateDiagram-v2-UMBNRL4Z-Dx3SusnW.cjs +1 -0
  196. package/dist/timeline-definition-XQNQX7LJ-Dc_TAvXx.js +797 -0
  197. package/dist/timeline-definition-XQNQX7LJ-DjsU7CwU.cjs +61 -0
  198. package/dist/treemap-75Q7IDZK-Bq3QS7Yd.cjs +1 -0
  199. package/dist/treemap-75Q7IDZK-CqGc4LKE.js +5 -0
  200. package/dist/types/data-structures.d.ts +7 -0
  201. package/dist/types/data-structures.d.ts.map +1 -1
  202. package/dist/types/translation.d.ts +4 -1
  203. package/dist/types/translation.d.ts.map +1 -1
  204. package/dist/utils/wrapper-types/date.d.ts.map +1 -1
  205. package/dist/xychartDiagram-6GGTOJPD-BQLiiNMc.cjs +7 -0
  206. package/dist/xychartDiagram-6GGTOJPD-CHaqT91Z.js +1340 -0
  207. package/package.json +37 -24
@@ -0,0 +1,68 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ie=require("./chunk-55IACEB6-C6PQzR3x.cjs"),ne=require("./chunk-QN33PNHL-BEvtonwy.cjs"),r=require("./index-TKKiVw_8.cjs");var j=function(){var a=r.__name(function(L,n,t,o){for(t=t||{},o=L.length;o--;t[L[o]]=n);return t},"o"),e=[1,4],i=[1,13],l=[1,12],u=[1,15],h=[1,16],f=[1,20],m=[1,19],p=[6,7,8],D=[1,26],G=[1,24],z=[1,25],E=[6,7,11],H=[1,6,13,15,16,19,22],$=[1,33],W=[1,34],C=[1,6,7,11,13,15,16,19,22],M={trace:r.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:r.__name(function(n,t,o,c,d,s,I){var g=s.length-1;switch(d){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",s[g].id),c.addNode(s[g-1].length,s[g].id,s[g].descr,s[g].type);break;case 16:c.getLogger().trace("Icon: ",s[g]),c.decorateNode({icon:s[g]});break;case 17:case 21:c.decorateNode({class:s[g]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",s[g].id),c.addNode(0,s[g].id,s[g].descr,s[g].type);break;case 20:c.decorateNode({icon:s[g]});break;case 25:c.getLogger().trace("node found ..",s[g-2]),this.$={id:s[g-1],descr:s[g-1],type:c.getType(s[g-2],s[g])};break;case 26:this.$={id:s[g],descr:s[g],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",s[g-3]),this.$={id:s[g-3],descr:s[g-1],type:c.getType(s[g-2],s[g])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:i,7:[1,10],9:9,12:11,13:l,14:14,15:u,16:h,17:17,18:18,19:f,22:m},a(p,[2,3]),{1:[2,2]},a(p,[2,4]),a(p,[2,5]),{1:[2,6],6:i,12:21,13:l,14:14,15:u,16:h,17:17,18:18,19:f,22:m},{6:i,9:22,12:11,13:l,14:14,15:u,16:h,17:17,18:18,19:f,22:m},{6:D,7:G,10:23,11:z},a(E,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:f,22:m}),a(E,[2,18]),a(E,[2,19]),a(E,[2,20]),a(E,[2,21]),a(E,[2,23]),a(E,[2,24]),a(E,[2,26],{19:[1,30]}),{20:[1,31]},{6:D,7:G,10:32,11:z},{1:[2,7],6:i,12:21,13:l,14:14,15:u,16:h,17:17,18:18,19:f,22:m},a(H,[2,14],{7:$,11:W}),a(C,[2,8]),a(C,[2,9]),a(C,[2,10]),a(E,[2,15]),a(E,[2,16]),a(E,[2,17]),{20:[1,35]},{21:[1,36]},a(H,[2,13],{7:$,11:W}),a(C,[2,11]),a(C,[2,12]),{21:[1,37]},a(E,[2,25]),a(E,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:r.__name(function(n,t){if(t.recoverable)this.trace(n);else{var o=new Error(n);throw o.hash=t,o}},"parseError"),parse:r.__name(function(n){var t=this,o=[0],c=[],d=[null],s=[],I=this.table,g="",A=0,X=0,K=2,q=1,Z=s.slice.call(arguments,1),y=Object.create(this.lexer),x={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(x.yy[B]=this.yy[B]);y.setInput(n,x.yy),x.yy.lexer=y,x.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var U=y.yylloc;s.push(U);var ee=y.options&&y.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function te(b){o.length=o.length-2*b,d.length=d.length-b,s.length=s.length-b}r.__name(te,"popStack");function Y(){var b;return b=c.pop()||y.lex()||q,typeof b!="number"&&(b instanceof Array&&(c=b,b=c.pop()),b=t.symbols_[b]||b),b}r.__name(Y,"lex");for(var _,T,S,F,v={},w,N,Q,P;;){if(T=o[o.length-1],this.defaultActions[T]?S=this.defaultActions[T]:((_===null||typeof _>"u")&&(_=Y()),S=I[T]&&I[T][_]),typeof S>"u"||!S.length||!S[0]){var V="";P=[];for(w in I[T])this.terminals_[w]&&w>K&&P.push("'"+this.terminals_[w]+"'");y.showPosition?V="Parse error on line "+(A+1)+`:
2
+ `+y.showPosition()+`
3
+ Expecting `+P.join(", ")+", got '"+(this.terminals_[_]||_)+"'":V="Parse error on line "+(A+1)+": Unexpected "+(_==q?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(V,{text:y.match,token:this.terminals_[_]||_,line:y.yylineno,loc:U,expected:P})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+_);switch(S[0]){case 1:o.push(_),d.push(y.yytext),s.push(y.yylloc),o.push(S[1]),_=null,X=y.yyleng,g=y.yytext,A=y.yylineno,U=y.yylloc;break;case 2:if(N=this.productions_[S[1]][1],v.$=d[d.length-N],v._$={first_line:s[s.length-(N||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(N||1)].first_column,last_column:s[s.length-1].last_column},ee&&(v._$.range=[s[s.length-(N||1)].range[0],s[s.length-1].range[1]]),F=this.performAction.apply(v,[g,X,A,x.yy,S[1],d,s].concat(Z)),typeof F<"u")return F;N&&(o=o.slice(0,-1*N*2),d=d.slice(0,-1*N),s=s.slice(0,-1*N)),o.push(this.productions_[S[1]][0]),d.push(v.$),s.push(v._$),Q=I[o[o.length-2]][o[o.length-1]],o.push(Q);break;case 3:return!0}}return!0},"parse")},J=function(){var L={EOF:1,parseError:r.__name(function(t,o){if(this.yy.parser)this.yy.parser.parseError(t,o);else throw new Error(t)},"parseError"),setInput:r.__name(function(n,t){return this.yy=t||this.yy||{},this._input=n,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:r.__name(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var t=n.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:r.__name(function(n){var t=n.length,o=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:r.__name(function(){return this._more=!0,this},"more"),reject:r.__name(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:r.__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:r.__name(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r.__name(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r.__name(function(){var n=this.pastInput(),t=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
5
+ `+t+"^"},"showPosition"),test_match:r.__name(function(n,t){var o,c,d;if(this.options.backtrack_lexer&&(d={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&&(d.yylloc.range=this.yylloc.range.slice(0))),c=n[0].match(/(?:\r\n?|\n).*/g),c&&(this.yylineno+=c.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,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(n[0].length),this.matched+=n[0],o=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var s in d)this[s]=d[s];return!1}return!1},"test_match"),next:r.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,t,o,c;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),s=0;s<d.length;s++)if(o=this._input.match(this.rules[d[s]]),o&&(!t||o[0].length>t[0].length)){if(t=o,c=s,this.options.backtrack_lexer){if(n=this.test_match(o,d[s]),n!==!1)return n;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(n=this.test_match(t,d[c]),n!==!1?n:!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:r.__name(function(){var t=this.next();return t||this.lex()},"lex"),begin:r.__name(function(t){this.conditionStack.push(t)},"begin"),popState:r.__name(function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:r.__name(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:r.__name(function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:r.__name(function(t){this.begin(t)},"pushState"),stateStackSize:r.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:r.__name(function(t,o,c,d){switch(c){case 0:return t.getLogger().trace("Found comment",o.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return t.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:t.getLogger().trace("end icon"),this.popState();break;case 10:return t.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return t.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return t.getLogger().trace("description:",o.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),t.getLogger().trace("node end ...",o.yytext),"NODE_DEND";case 30:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 35:return t.getLogger().trace("Long description:",o.yytext),20;case 36:return t.getLogger().trace("Long description:",o.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return L}();M.lexer=J;function R(){this.yy={}}return r.__name(R,"Parser"),R.prototype=M,M.Parser=R,new R}();j.parser=j;var se=j,k={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},O,re=(O=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=k,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}clear(){this.nodes=[],this.count=0,this.elements={}}getParent(e){for(let i=this.nodes.length-1;i>=0;i--)if(this.nodes[i].level<e)return this.nodes[i];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,i,l,u){r.log.info("addNode",e,i,l,u);const h=r.getConfig2();let f=h.mindmap?.padding??r.defaultConfig_default.mindmap.padding;switch(u){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:f*=2;break}const m={id:this.count++,nodeId:r.sanitizeText(i,h),level:e,descr:r.sanitizeText(l,h),type:u,children:[],width:h.mindmap?.maxNodeWidth??r.defaultConfig_default.mindmap.maxNodeWidth,padding:f},p=this.getParent(e);if(p)p.children.push(m),this.nodes.push(m);else if(this.nodes.length===0)this.nodes.push(m);else throw new Error(`There can be only one root. No parent could be found for ("${m.descr}")`)}getType(e,i){switch(r.log.debug("In get type",e,i),e){case"[":return this.nodeType.RECT;case"(":return i===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,i){this.elements[e]=i}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;const i=r.getConfig2(),l=this.nodes[this.nodes.length-1];e.icon&&(l.icon=r.sanitizeText(e.icon,i)),e.class&&(l.class=r.sanitizeText(e.class,i))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,i){if(e.level===0?e.section=void 0:e.section=i,e.children)for(const[l,u]of e.children.entries()){const h=e.level===0?l:i;this.assignSections(u,h)}}flattenNodes(e,i){const l=["mindmap-node"];e.level===0?l.push("section-root","section--1"):e.section!==void 0&&l.push(`section-${e.section}`),e.class&&l.push(e.class);const u=l.join(" "),h=r.__name(m=>{switch(m){case k.CIRCLE:return"mindmapCircle";case k.RECT:return"rect";case k.ROUNDED_RECT:return"rounded";case k.CLOUD:return"cloud";case k.BANG:return"bang";case k.HEXAGON:return"hexagon";case k.DEFAULT:return"defaultMindmapNode";case k.NO_BORDER:default:return"rect"}},"getShapeFromType"),f={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,isGroup:!1,shape:h(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:u,cssStyles:[],look:"default",icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(i.push(f),e.children)for(const m of e.children)this.flattenNodes(m,i)}generateEdges(e,i){if(e.children)for(const l of e.children){let u="edge";l.section!==void 0&&(u+=` section-edge-${l.section}`);const h=e.level+1;u+=` edge-depth-${h}`;const f={id:`edge_${e.id}_${l.id}`,start:e.id.toString(),end:l.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:"default",classes:u,depth:e.level,section:l.section};i.push(f),this.generateEdges(l,i)}}getData(){const e=this.getMindmap(),i=r.getConfig2(),u=r.getUserDefinedConfig().layout!==void 0,h=i;if(u||(h.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:h};r.log.debug("getData: mindmapRoot",e,i),this.assignSections(e);const f=[],m=[];this.flattenNodes(e,f),this.generateEdges(e,m),r.log.debug(`getData: processed ${f.length} nodes and ${m.length} edges`);const p=new Map;for(const D of f)p.set(D.id,{shape:D.shape,width:D.width,height:D.height,padding:D.padding});return{nodes:f,edges:m,config:h,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(p),type:"mindmap",diagramId:"mindmap-"+r.v4()}}getLogger(){return r.log}},r.__name(O,"MindmapDB"),O),ae=r.__name(async(a,e,i,l)=>{r.log.debug(`Rendering mindmap diagram
7
+ `+a);const u=l.db,h=u.getData(),f=ie.getDiagramElement(e,h.config.securityLevel);h.type=l.type,h.layoutAlgorithm=r.getRegisteredLayoutAlgorithm(h.config.layout,{fallback:"cose-bilkent"}),h.diagramId=e,u.getMindmap()&&(h.nodes.forEach(p=>{p.shape==="rounded"?(p.radius=15,p.taper=15,p.stroke="none",p.width=0,p.padding=15):p.shape==="circle"?p.padding=10:p.shape==="rect"&&(p.width=0,p.padding=10)}),await r.render(h,f),ne.setupViewPortForSVG(f,h.config.mindmap?.padding??r.defaultConfig_default.mindmap.padding,"mindmapDiagram",h.config.mindmap?.useMaxWidth??r.defaultConfig_default.mindmap.useMaxWidth))},"draw"),oe={draw:ae},ce=r.__name(a=>{let e="";for(let i=0;i<a.THEME_COLOR_LIMIT;i++)a["lineColor"+i]=a["lineColor"+i]||a["cScaleInv"+i],r.isDark(a["lineColor"+i])?a["lineColor"+i]=r.lighten(a["lineColor"+i],20):a["lineColor"+i]=r.darken(a["lineColor"+i],20);for(let i=0;i<a.THEME_COLOR_LIMIT;i++){const l=""+(17-3*i);e+=`
8
+ .section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} polygon, .section-${i-1} path {
9
+ fill: ${a["cScale"+i]};
10
+ }
11
+ .section-${i-1} text {
12
+ fill: ${a["cScaleLabel"+i]};
13
+ }
14
+ .node-icon-${i-1} {
15
+ font-size: 40px;
16
+ color: ${a["cScaleLabel"+i]};
17
+ }
18
+ .section-edge-${i-1}{
19
+ stroke: ${a["cScale"+i]};
20
+ }
21
+ .edge-depth-${i-1}{
22
+ stroke-width: ${l};
23
+ }
24
+ .section-${i-1} line {
25
+ stroke: ${a["cScaleInv"+i]} ;
26
+ stroke-width: 3;
27
+ }
28
+
29
+ .disabled, .disabled circle, .disabled text {
30
+ fill: lightgray;
31
+ }
32
+ .disabled text {
33
+ fill: #efefef;
34
+ }
35
+ `}return e},"genSections"),le=r.__name(a=>`
36
+ .edge {
37
+ stroke-width: 3;
38
+ }
39
+ ${ce(a)}
40
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
41
+ fill: ${a.git0};
42
+ }
43
+ .section-root text {
44
+ fill: ${a.gitBranchLabel0};
45
+ }
46
+ .section-root span {
47
+ color: ${a.gitBranchLabel0};
48
+ }
49
+ .section-2 span {
50
+ color: ${a.gitBranchLabel0};
51
+ }
52
+ .icon-container {
53
+ height:100%;
54
+ display: flex;
55
+ justify-content: center;
56
+ align-items: center;
57
+ }
58
+ .edge {
59
+ fill: none;
60
+ }
61
+ .mindmap-node-label {
62
+ dy: 1em;
63
+ alignment-baseline: middle;
64
+ text-anchor: middle;
65
+ dominant-baseline: middle;
66
+ text-align: center;
67
+ }
68
+ `,"getStyles"),he=le,ge={get db(){return new re},renderer:oe,parser:se,styles:he};exports.diagram=ge;
@@ -0,0 +1 @@
1
+ "use strict";const l=require("./init-CHZsXQcr.cjs");class o extends Map{constructor(n,t=p){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),n!=null)for(const[r,s]of n)this.set(r,s)}get(n){return super.get(c(this,n))}has(n){return super.has(c(this,n))}set(n,t){return super.set(g(this,n),t)}delete(n){return super.delete(h(this,n))}}function c({_intern:e,_key:n},t){const r=n(t);return e.has(r)?e.get(r):t}function g({_intern:e,_key:n},t){const r=n(t);return e.has(r)?e.get(r):(e.set(r,t),t)}function h({_intern:e,_key:n},t){const r=n(t);return e.has(r)&&(t=e.get(r),e.delete(r)),t}function p(e){return e!==null&&typeof e=="object"?e.valueOf():e}const f=Symbol("implicit");function a(){var e=new o,n=[],t=[],r=f;function s(i){let u=e.get(i);if(u===void 0){if(r!==f)return r;e.set(i,u=n.push(i)-1)}return t[u%t.length]}return s.domain=function(i){if(!arguments.length)return n.slice();n=[],e=new o;for(const u of i)e.has(u)||e.set(u,n.push(u)-1);return s},s.range=function(i){return arguments.length?(t=Array.from(i),s):t.slice()},s.unknown=function(i){return arguments.length?(r=i,s):r},s.copy=function(){return a(n,t).unknown(r)},l.initRange.apply(s,arguments),s}exports.ordinal=a;
@@ -0,0 +1,61 @@
1
+ import { i as a } from "./init-DjUOC4st.js";
2
+ class o extends Map {
3
+ constructor(n, t = g) {
4
+ if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: t } }), n != null) for (const [r, s] of n) this.set(r, s);
5
+ }
6
+ get(n) {
7
+ return super.get(c(this, n));
8
+ }
9
+ has(n) {
10
+ return super.has(c(this, n));
11
+ }
12
+ set(n, t) {
13
+ return super.set(l(this, n), t);
14
+ }
15
+ delete(n) {
16
+ return super.delete(p(this, n));
17
+ }
18
+ }
19
+ function c({ _intern: e, _key: n }, t) {
20
+ const r = n(t);
21
+ return e.has(r) ? e.get(r) : t;
22
+ }
23
+ function l({ _intern: e, _key: n }, t) {
24
+ const r = n(t);
25
+ return e.has(r) ? e.get(r) : (e.set(r, t), t);
26
+ }
27
+ function p({ _intern: e, _key: n }, t) {
28
+ const r = n(t);
29
+ return e.has(r) && (t = e.get(r), e.delete(r)), t;
30
+ }
31
+ function g(e) {
32
+ return e !== null && typeof e == "object" ? e.valueOf() : e;
33
+ }
34
+ const f = Symbol("implicit");
35
+ function h() {
36
+ var e = new o(), n = [], t = [], r = f;
37
+ function s(u) {
38
+ let i = e.get(u);
39
+ if (i === void 0) {
40
+ if (r !== f) return r;
41
+ e.set(u, i = n.push(u) - 1);
42
+ }
43
+ return t[i % t.length];
44
+ }
45
+ return s.domain = function(u) {
46
+ if (!arguments.length) return n.slice();
47
+ n = [], e = new o();
48
+ for (const i of u)
49
+ e.has(i) || e.set(i, n.push(i) - 1);
50
+ return s;
51
+ }, s.range = function(u) {
52
+ return arguments.length ? (t = Array.from(u), s) : t.slice();
53
+ }, s.unknown = function(u) {
54
+ return arguments.length ? (r = u, s) : r;
55
+ }, s.copy = function() {
56
+ return h(n, t).unknown(r);
57
+ }, a.apply(s, arguments), s;
58
+ }
59
+ export {
60
+ h as o
61
+ };
@@ -0,0 +1,5 @@
1
+ import { P as c, a as r } from "./mermaid-parser.core-DgSQdd2P.js";
2
+ export {
3
+ c as PacketModule,
4
+ r as createPacketServices
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-DR7pLDVq.cjs");exports.PacketModule=e.PacketModule;exports.createPacketServices=e.createPacketServices;
@@ -0,0 +1,5 @@
1
+ import { b as a, d as i } from "./mermaid-parser.core-DgSQdd2P.js";
2
+ export {
3
+ a as PieModule,
4
+ i as createPieServices
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-DR7pLDVq.cjs");exports.PieModule=e.PieModule;exports.createPieServices=e.createPieServices;
@@ -0,0 +1,161 @@
1
+ import { a8 as S, a3 as F, aI as j, _ as p, g as q, s as H, a as Z, b as J, q as K, p as Q, l as z, c as X, D as Y, H as ee, N as te, e as ae, y as re, F as ne } from "./index-Dj0ZpuHR.js";
2
+ import { p as ie } from "./chunk-4BX2VUAB-Bgwq4Diy.js";
3
+ import { p as se } from "./mermaid-parser.core-DgSQdd2P.js";
4
+ import { d as R } from "./arc-Bp2TTsxp.js";
5
+ import { o as le } from "./ordinal-DfAQgscy.js";
6
+ function oe(e, a) {
7
+ return a < e ? -1 : a > e ? 1 : a >= e ? 0 : NaN;
8
+ }
9
+ function ce(e) {
10
+ return e;
11
+ }
12
+ function ue() {
13
+ var e = ce, a = oe, f = null, y = S(0), s = S(F), o = S(0);
14
+ function l(t) {
15
+ var n, c = (t = j(t)).length, d, x, m = 0, u = new Array(c), i = new Array(c), v = +y.apply(this, arguments), w = Math.min(F, Math.max(-F, s.apply(this, arguments) - v)), h, C = Math.min(Math.abs(w) / c, o.apply(this, arguments)), $ = C * (w < 0 ? -1 : 1), g;
16
+ for (n = 0; n < c; ++n)
17
+ (g = i[u[n] = n] = +e(t[n], n, t)) > 0 && (m += g);
18
+ for (a != null ? u.sort(function(A, D) {
19
+ return a(i[A], i[D]);
20
+ }) : f != null && u.sort(function(A, D) {
21
+ return f(t[A], t[D]);
22
+ }), n = 0, x = m ? (w - c * $) / m : 0; n < c; ++n, v = h)
23
+ d = u[n], g = i[d], h = v + (g > 0 ? g * x : 0) + $, i[d] = {
24
+ data: t[d],
25
+ index: n,
26
+ value: g,
27
+ startAngle: v,
28
+ endAngle: h,
29
+ padAngle: C
30
+ };
31
+ return i;
32
+ }
33
+ return l.value = function(t) {
34
+ return arguments.length ? (e = typeof t == "function" ? t : S(+t), l) : e;
35
+ }, l.sortValues = function(t) {
36
+ return arguments.length ? (a = t, f = null, l) : a;
37
+ }, l.sort = function(t) {
38
+ return arguments.length ? (f = t, a = null, l) : f;
39
+ }, l.startAngle = function(t) {
40
+ return arguments.length ? (y = typeof t == "function" ? t : S(+t), l) : y;
41
+ }, l.endAngle = function(t) {
42
+ return arguments.length ? (s = typeof t == "function" ? t : S(+t), l) : s;
43
+ }, l.padAngle = function(t) {
44
+ return arguments.length ? (o = typeof t == "function" ? t : S(+t), l) : o;
45
+ }, l;
46
+ }
47
+ var pe = ne.pie, N = {
48
+ sections: /* @__PURE__ */ new Map(),
49
+ showData: !1
50
+ }, T = N.sections, G = N.showData, de = structuredClone(pe), ge = /* @__PURE__ */ p(() => structuredClone(de), "getConfig"), fe = /* @__PURE__ */ p(() => {
51
+ T = /* @__PURE__ */ new Map(), G = N.showData, re();
52
+ }, "clear"), he = /* @__PURE__ */ p(({ label: e, value: a }) => {
53
+ if (a < 0)
54
+ throw new Error(
55
+ `"${e}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`
56
+ );
57
+ T.has(e) || (T.set(e, a), z.debug(`added new section: ${e}, with value: ${a}`));
58
+ }, "addSection"), me = /* @__PURE__ */ p(() => T, "getSections"), ve = /* @__PURE__ */ p((e) => {
59
+ G = e;
60
+ }, "setShowData"), Se = /* @__PURE__ */ p(() => G, "getShowData"), L = {
61
+ getConfig: ge,
62
+ clear: fe,
63
+ setDiagramTitle: Q,
64
+ getDiagramTitle: K,
65
+ setAccTitle: J,
66
+ getAccTitle: Z,
67
+ setAccDescription: H,
68
+ getAccDescription: q,
69
+ addSection: he,
70
+ getSections: me,
71
+ setShowData: ve,
72
+ getShowData: Se
73
+ }, ye = /* @__PURE__ */ p((e, a) => {
74
+ ie(e, a), a.setShowData(e.showData), e.sections.map(a.addSection);
75
+ }, "populateDb"), xe = {
76
+ parse: /* @__PURE__ */ p(async (e) => {
77
+ const a = await se("pie", e);
78
+ z.debug(a), ye(a, L);
79
+ }, "parse")
80
+ }, we = /* @__PURE__ */ p((e) => `
81
+ .pieCircle{
82
+ stroke: ${e.pieStrokeColor};
83
+ stroke-width : ${e.pieStrokeWidth};
84
+ opacity : ${e.pieOpacity};
85
+ }
86
+ .pieOuterCircle{
87
+ stroke: ${e.pieOuterStrokeColor};
88
+ stroke-width: ${e.pieOuterStrokeWidth};
89
+ fill: none;
90
+ }
91
+ .pieTitleText {
92
+ text-anchor: middle;
93
+ font-size: ${e.pieTitleTextSize};
94
+ fill: ${e.pieTitleTextColor};
95
+ font-family: ${e.fontFamily};
96
+ }
97
+ .slice {
98
+ font-family: ${e.fontFamily};
99
+ fill: ${e.pieSectionTextColor};
100
+ font-size:${e.pieSectionTextSize};
101
+ // fill: white;
102
+ }
103
+ .legend text {
104
+ fill: ${e.pieLegendTextColor};
105
+ font-family: ${e.fontFamily};
106
+ font-size: ${e.pieLegendTextSize};
107
+ }
108
+ `, "getStyles"), Ae = we, De = /* @__PURE__ */ p((e) => {
109
+ const a = [...e.values()].reduce((s, o) => s + o, 0), f = [...e.entries()].map(([s, o]) => ({ label: s, value: o })).filter((s) => s.value / a * 100 >= 1).sort((s, o) => o.value - s.value);
110
+ return ue().value((s) => s.value)(f);
111
+ }, "createPieArcs"), Ce = /* @__PURE__ */ p((e, a, f, y) => {
112
+ z.debug(`rendering pie chart
113
+ ` + e);
114
+ const s = y.db, o = X(), l = Y(s.getConfig(), o.pie), t = 40, n = 18, c = 4, d = 450, x = d, m = ee(a), u = m.append("g");
115
+ u.attr("transform", "translate(" + x / 2 + "," + d / 2 + ")");
116
+ const { themeVariables: i } = o;
117
+ let [v] = te(i.pieOuterStrokeWidth);
118
+ v ??= 2;
119
+ const w = l.textPosition, h = Math.min(x, d) / 2 - t, C = R().innerRadius(0).outerRadius(h), $ = R().innerRadius(h * w).outerRadius(h * w);
120
+ u.append("circle").attr("cx", 0).attr("cy", 0).attr("r", h + v / 2).attr("class", "pieOuterCircle");
121
+ const g = s.getSections(), A = De(g), D = [
122
+ i.pie1,
123
+ i.pie2,
124
+ i.pie3,
125
+ i.pie4,
126
+ i.pie5,
127
+ i.pie6,
128
+ i.pie7,
129
+ i.pie8,
130
+ i.pie9,
131
+ i.pie10,
132
+ i.pie11,
133
+ i.pie12
134
+ ];
135
+ let b = 0;
136
+ g.forEach((r) => {
137
+ b += r;
138
+ });
139
+ const W = A.filter((r) => (r.data.value / b * 100).toFixed(0) !== "0"), E = le(D);
140
+ u.selectAll("mySlices").data(W).enter().append("path").attr("d", C).attr("fill", (r) => E(r.data.label)).attr("class", "pieCircle"), u.selectAll("mySlices").data(W).enter().append("text").text((r) => (r.data.value / b * 100).toFixed(0) + "%").attr("transform", (r) => "translate(" + $.centroid(r) + ")").style("text-anchor", "middle").attr("class", "slice"), u.append("text").text(s.getDiagramTitle()).attr("x", 0).attr("y", -400 / 2).attr("class", "pieTitleText");
141
+ const I = [...g.entries()].map(([r, M]) => ({
142
+ label: r,
143
+ value: M
144
+ })), k = u.selectAll(".legend").data(I).enter().append("g").attr("class", "legend").attr("transform", (r, M) => {
145
+ const P = n + c, B = P * I.length / 2, V = 12 * n, U = M * P - B;
146
+ return "translate(" + V + "," + U + ")";
147
+ });
148
+ k.append("rect").attr("width", n).attr("height", n).style("fill", (r) => E(r.label)).style("stroke", (r) => E(r.label)), k.append("text").attr("x", n + c).attr("y", n - c).text((r) => s.getShowData() ? `${r.label} [${r.value}]` : r.label);
149
+ const _ = Math.max(
150
+ ...k.selectAll("text").nodes().map((r) => r?.getBoundingClientRect().width ?? 0)
151
+ ), O = x + t + n + c + _;
152
+ m.attr("viewBox", `0 0 ${O} ${d}`), ae(m, d, O, l.useMaxWidth);
153
+ }, "draw"), $e = { draw: Ce }, Fe = {
154
+ parser: xe,
155
+ db: L,
156
+ renderer: $e,
157
+ styles: Ae
158
+ };
159
+ export {
160
+ Fe as diagram
161
+ };
@@ -0,0 +1,30 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-TKKiVw_8.cjs"),q=require("./chunk-4BX2VUAB-B3l1Ono_.cjs"),B=require("./mermaid-parser.core-DR7pLDVq.cjs"),N=require("./arc-0onjh8Q1.cjs"),V=require("./ordinal-CagbB1m8.cjs");function U(e,n){return n<e?-1:n>e?1:n>=e?0:NaN}function j(e){return e}function X(){var e=j,n=U,f=null,S=t.constant(0),s=t.constant(t.tau),c=t.constant(0);function o(a){var i,u=(a=t.array(a)).length,d,y,h=0,g=new Array(u),l=new Array(u),v=+S.apply(this,arguments),A=Math.min(t.tau,Math.max(-t.tau,s.apply(this,arguments)-v)),m,w=Math.min(Math.abs(A)/u,c.apply(this,arguments)),T=w*(A<0?-1:1),p;for(i=0;i<u;++i)(p=l[g[i]=i]=+e(a[i],i,a))>0&&(h+=p);for(n!=null?g.sort(function(x,D){return n(l[x],l[D])}):f!=null&&g.sort(function(x,D){return f(a[x],a[D])}),i=0,y=h?(A-u*T)/h:0;i<u;++i,v=m)d=g[i],p=l[d],m=v+(p>0?p*y:0)+T,l[d]={data:a[d],index:i,value:p,startAngle:v,endAngle:m,padAngle:w};return l}return o.value=function(a){return arguments.length?(e=typeof a=="function"?a:t.constant(+a),o):e},o.sortValues=function(a){return arguments.length?(n=a,f=null,o):n},o.sort=function(a){return arguments.length?(f=a,n=null,o):f},o.startAngle=function(a){return arguments.length?(S=typeof a=="function"?a:t.constant(+a),o):S},o.endAngle=function(a){return arguments.length?(s=typeof a=="function"?a:t.constant(+a),o):s},o.padAngle=function(a){return arguments.length?(c=typeof a=="function"?a:t.constant(+a),o):c},o}var Z=t.defaultConfig_default.pie,E={sections:new Map,showData:!1},_=E.sections,M=E.showData,H=structuredClone(Z),J=t.__name(()=>structuredClone(H),"getConfig"),K=t.__name(()=>{_=new Map,M=E.showData,t.clear()},"clear"),Q=t.__name(({label:e,value:n})=>{if(n<0)throw new Error(`"${e}" has invalid value: ${n}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);_.has(e)||(_.set(e,n),t.log.debug(`added new section: ${e}, with value: ${n}`))},"addSection"),Y=t.__name(()=>_,"getSections"),ee=t.__name(e=>{M=e},"setShowData"),te=t.__name(()=>M,"getShowData"),O={getConfig:J,clear:K,setDiagramTitle:t.setDiagramTitle,getDiagramTitle:t.getDiagramTitle,setAccTitle:t.setAccTitle,getAccTitle:t.getAccTitle,setAccDescription:t.setAccDescription,getAccDescription:t.getAccDescription,addSection:Q,getSections:Y,setShowData:ee,getShowData:te},ae=t.__name((e,n)=>{q.populateCommonDb(e,n),n.setShowData(e.showData),e.sections.map(n.addSection)},"populateDb"),ne={parse:t.__name(async e=>{const n=await B.parse("pie",e);t.log.debug(n),ae(n,O)},"parse")},re=t.__name(e=>`
2
+ .pieCircle{
3
+ stroke: ${e.pieStrokeColor};
4
+ stroke-width : ${e.pieStrokeWidth};
5
+ opacity : ${e.pieOpacity};
6
+ }
7
+ .pieOuterCircle{
8
+ stroke: ${e.pieOuterStrokeColor};
9
+ stroke-width: ${e.pieOuterStrokeWidth};
10
+ fill: none;
11
+ }
12
+ .pieTitleText {
13
+ text-anchor: middle;
14
+ font-size: ${e.pieTitleTextSize};
15
+ fill: ${e.pieTitleTextColor};
16
+ font-family: ${e.fontFamily};
17
+ }
18
+ .slice {
19
+ font-family: ${e.fontFamily};
20
+ fill: ${e.pieSectionTextColor};
21
+ font-size:${e.pieSectionTextSize};
22
+ // fill: white;
23
+ }
24
+ .legend text {
25
+ fill: ${e.pieLegendTextColor};
26
+ font-family: ${e.fontFamily};
27
+ font-size: ${e.pieLegendTextSize};
28
+ }
29
+ `,"getStyles"),ie=re,le=t.__name(e=>{const n=[...e.values()].reduce((s,c)=>s+c,0),f=[...e.entries()].map(([s,c])=>({label:s,value:c})).filter(s=>s.value/n*100>=1).sort((s,c)=>c.value-s.value);return X().value(s=>s.value)(f)},"createPieArcs"),se=t.__name((e,n,f,S)=>{t.log.debug(`rendering pie chart
30
+ `+e);const s=S.db,c=t.getConfig2(),o=t.cleanAndMerge(s.getConfig(),c.pie),a=40,i=18,u=4,d=450,y=d,h=t.selectSvgElement(n),g=h.append("g");g.attr("transform","translate("+y/2+","+d/2+")");const{themeVariables:l}=c;let[v]=t.parseFontSize(l.pieOuterStrokeWidth);v??=2;const A=o.textPosition,m=Math.min(y,d)/2-a,w=N.d3arc().innerRadius(0).outerRadius(m),T=N.d3arc().innerRadius(m*A).outerRadius(m*A);g.append("circle").attr("cx",0).attr("cy",0).attr("r",m+v/2).attr("class","pieOuterCircle");const p=s.getSections(),x=le(p),D=[l.pie1,l.pie2,l.pie3,l.pie4,l.pie5,l.pie6,l.pie7,l.pie8,l.pie9,l.pie10,l.pie11,l.pie12];let C=0;p.forEach(r=>{C+=r});const z=x.filter(r=>(r.data.value/C*100).toFixed(0)!=="0"),$=V.ordinal(D);g.selectAll("mySlices").data(z).enter().append("path").attr("d",w).attr("fill",r=>$(r.data.label)).attr("class","pieCircle"),g.selectAll("mySlices").data(z).enter().append("text").text(r=>(r.data.value/C*100).toFixed(0)+"%").attr("transform",r=>"translate("+T.centroid(r)+")").style("text-anchor","middle").attr("class","slice"),g.append("text").text(s.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText");const F=[...p.entries()].map(([r,k])=>({label:r,value:k})),b=g.selectAll(".legend").data(F).enter().append("g").attr("class","legend").attr("transform",(r,k)=>{const G=i+u,R=G*F.length/2,I=12*i,L=k*G-R;return"translate("+I+","+L+")"});b.append("rect").attr("width",i).attr("height",i).style("fill",r=>$(r.label)).style("stroke",r=>$(r.label)),b.append("text").attr("x",i+u).attr("y",i-u).text(r=>s.getShowData()?`${r.label} [${r.value}]`:r.label);const W=Math.max(...b.selectAll("text").nodes().map(r=>r?.getBoundingClientRect().width??0)),P=y+a+i+u+W;h.attr("viewBox",`0 0 ${P} ${d}`),t.configureSvgSize(h,d,P,o.useMaxWidth)},"draw"),oe={draw:se},ce={parser:ne,db:O,renderer:oe,styles:ie};exports.diagram=ce;