@loopstack/loopstack-studio 0.28.0 → 0.29.1

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 (377) hide show
  1. package/dist/_virtual/rolldown_runtime.js +13 -15
  2. package/dist/api/config.js +2 -2
  3. package/dist/components/dynamic-form/Form.js +49 -52
  4. package/dist/config.js +6 -0
  5. package/dist/features/debug/components/WorkflowFlowViewer.js +94 -81
  6. package/dist/features/debug/components/workflow-flow/StateNode.js +154 -79
  7. package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +43 -31
  8. package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +52 -51
  9. package/dist/features/debug/lib/edge-paths.js +45 -30
  10. package/dist/features/debug/lib/flow-types.js +2 -0
  11. package/dist/features/debug/lib/flow-utils.js +66 -64
  12. package/dist/features/documents/components/DocumentList.js +19 -18
  13. package/dist/features/workbench/WorkflowItem.js +4 -3
  14. package/dist/features/workbench/components/EmbedLogsContent.js +5 -0
  15. package/dist/features/workbench/components/NewRunDialog.js +2 -2
  16. package/dist/features/workbench/components/PreviewEmptyState.js +10 -0
  17. package/dist/features/workbench/components/PreviewWorkbench.js +14 -0
  18. package/dist/features/workbench/components/RecentRunItem.js +48 -0
  19. package/dist/features/workbench/components/WorkflowForms.js +4 -3
  20. package/dist/features/workbench/hooks/useEmbedBridge.js +3 -0
  21. package/dist/features/workbench/hooks/useWorkflowData.js +9 -9
  22. package/dist/features/workbench/index.js +4 -0
  23. package/dist/features/workspaces/Workspaces.js +2 -2
  24. package/dist/features/workspaces/components/ExecutionTimeline.js +9 -8
  25. package/dist/hooks/index.js +2 -2
  26. package/dist/hooks/query-keys.js +3 -3
  27. package/dist/hooks/useConfig.js +15 -15
  28. package/dist/index.d.ts +12 -12
  29. package/dist/index.js +3 -3
  30. package/dist/loopstack-studio.css +1 -1
  31. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{architecture-YZFGNWBL.js → architecture-7EHR7CIX.js} +2 -2
  32. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-7N4EOEYR.js → chunk-4EGX6M5U.js} +9 -13
  33. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-KGLVRYIC.js → chunk-5DO6E6H7.js} +3 -7
  34. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BR22UD5L.js +56 -0
  35. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-2KRD3SAO.js → chunk-FHYWG6QK.js} +3 -7
  36. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-FOC6F5B3.js → chunk-MPE355IW.js} +3 -7
  37. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js +24 -0
  38. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js +48 -0
  39. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js +20219 -0
  40. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js +19 -0
  41. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-67CJDMHE.js → chunk-UIBZB4QT.js} +3 -7
  42. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js +25 -0
  43. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-FCH6USID.js +3 -0
  44. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{gitGraph-7Q5UKJZL.js → gitGraph-WXDBUCRP.js} +2 -2
  45. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-J43DQDTF.js +3 -0
  46. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-YPE3B663.js +3 -0
  47. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-LRSECV5Y.js +3 -0
  48. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-GUYGQ44K.js +3 -0
  49. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{treeView-SZITEDCU.js → treeView-BLDUP644.js} +2 -2
  50. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-LRROVOQU.js +3 -0
  51. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-L42UT6IY.js +3 -0
  52. package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +24 -19
  53. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +36 -26
  54. package/dist/node_modules/@xyflow/react/dist/esm/index.js +1 -1
  55. package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +257 -254
  56. package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +19 -19
  57. package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +48 -48
  58. package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +9 -9
  59. package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +3 -3
  60. package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +11 -11
  61. package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +4 -4
  62. package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +4 -4
  63. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +8 -8
  64. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +5 -5
  65. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +72 -72
  66. package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +1 -1
  67. package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +25 -25
  68. package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -8
  69. package/dist/node_modules/dagre-d3-es/src/dagre/util.js +48 -48
  70. package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +109 -109
  71. package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +17 -17
  72. package/dist/node_modules/dompurify/dist/purify.es.js +293 -205
  73. package/dist/node_modules/es-toolkit/dist/_internal/globalThis.js +4 -0
  74. package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +4 -0
  75. package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +4 -0
  76. package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +4 -0
  77. package/dist/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +5 -0
  78. package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -0
  79. package/dist/node_modules/es-toolkit/dist/compat/function/memoize.js +12 -0
  80. package/dist/node_modules/es-toolkit/dist/compat/object/clone.js +97 -0
  81. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +5 -0
  82. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +29 -0
  83. package/dist/node_modules/es-toolkit/dist/compat/object/merge.js +6 -0
  84. package/dist/node_modules/es-toolkit/dist/compat/object/mergeWith.js +49 -0
  85. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +5 -0
  86. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArray.js +4 -0
  87. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +5 -0
  88. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +6 -0
  89. package/dist/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js +16 -0
  90. package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +4 -0
  91. package/dist/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +12 -0
  92. package/dist/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js +5 -0
  93. package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -0
  94. package/dist/node_modules/es-toolkit/dist/object/clone.js +29 -0
  95. package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +114 -0
  96. package/dist/node_modules/es-toolkit/dist/predicate/isBuffer.js +5 -0
  97. package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +4 -0
  98. package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +4 -0
  99. package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +4 -0
  100. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +2 -2
  101. package/dist/node_modules/internmap/src/index.js +1 -1
  102. package/dist/node_modules/katex/dist/katex.js +379 -417
  103. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +3 -3
  104. package/dist/node_modules/lodash-es/_assignMergeValue.js +1 -1
  105. package/dist/node_modules/lodash-es/_assignValue.js +1 -1
  106. package/dist/node_modules/lodash-es/_baseClone.js +9 -9
  107. package/dist/node_modules/lodash-es/_baseForOwn.js +1 -1
  108. package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +1 -1
  109. package/dist/node_modules/lodash-es/_baseMatchesProperty.js +6 -6
  110. package/dist/node_modules/lodash-es/_baseMerge.js +2 -2
  111. package/dist/node_modules/lodash-es/_baseMergeDeep.js +7 -7
  112. package/dist/node_modules/lodash-es/_baseOrderBy.js +12 -12
  113. package/dist/node_modules/lodash-es/_baseRest.js +1 -1
  114. package/dist/node_modules/lodash-es/_baseSet.js +1 -1
  115. package/dist/node_modules/lodash-es/_baseSetToString.js +3 -3
  116. package/dist/node_modules/lodash-es/_baseToString.js +2 -2
  117. package/dist/node_modules/lodash-es/_baseUniq.js +1 -1
  118. package/dist/node_modules/lodash-es/_createRange.js +1 -1
  119. package/dist/node_modules/lodash-es/_createSet.js +3 -3
  120. package/dist/node_modules/lodash-es/_flatRest.js +1 -1
  121. package/dist/node_modules/lodash-es/_getAllKeys.js +2 -2
  122. package/dist/node_modules/lodash-es/_getAllKeysIn.js +1 -1
  123. package/dist/node_modules/lodash-es/_getSymbolsIn.js +1 -1
  124. package/dist/node_modules/lodash-es/_getTag.js +1 -1
  125. package/dist/node_modules/lodash-es/_hasPath.js +2 -2
  126. package/dist/node_modules/lodash-es/_initCloneByTag.js +1 -1
  127. package/dist/node_modules/lodash-es/_initCloneObject.js +1 -1
  128. package/dist/node_modules/lodash-es/_isFlattenable.js +1 -1
  129. package/dist/node_modules/lodash-es/_isIterateeCall.js +1 -1
  130. package/dist/node_modules/lodash-es/_isKey.js +1 -1
  131. package/dist/node_modules/lodash-es/_setToString.js +1 -1
  132. package/dist/node_modules/lodash-es/defaults.js +1 -1
  133. package/dist/node_modules/lodash-es/findIndex.js +2 -2
  134. package/dist/node_modules/lodash-es/forEach.js +1 -1
  135. package/dist/node_modules/lodash-es/forIn.js +1 -1
  136. package/dist/node_modules/lodash-es/isEmpty.js +2 -2
  137. package/dist/node_modules/lodash-es/isPlainObject.js +1 -1
  138. package/dist/node_modules/lodash-es/map.js +1 -1
  139. package/dist/node_modules/lodash-es/max.js +1 -1
  140. package/dist/node_modules/lodash-es/merge.js +3 -3
  141. package/dist/node_modules/lodash-es/min.js +1 -1
  142. package/dist/node_modules/lodash-es/minBy.js +1 -1
  143. package/dist/node_modules/lodash-es/reduce.js +1 -1
  144. package/dist/node_modules/lodash-es/toNumber.js +1 -1
  145. package/dist/node_modules/lodash-es/union.js +3 -3
  146. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{architectureDiagram-Q4EWVU46.js → architectureDiagram-3BPJPVTR.js} +310 -308
  147. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{blockDiagram-DXYQGD6D.js → blockDiagram-GPEHLZMM.js} +215 -190
  148. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-AHTNJAMY.js → c4Diagram-AAUBKEIU.js} +3 -3
  149. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-EDXVE4YY.js → chunk-2J33WTMH.js} +1 -1
  150. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5FUZZQ4R.js → chunk-3OPIFGDE.js} +48 -20
  151. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5PVQY5BW.js → chunk-5ZQYHXKU.js} +8 -8
  152. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-4TB4RGXK.js → chunk-727SXJPM.js} +555 -459
  153. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-OYMX7WX6.js → chunk-AQP2D5EJ.js} +155 -145
  154. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ICPOFSXX.js → chunk-CSCIHK7Q.js} +106 -12
  155. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ENJZ2VHE.js → chunk-KSCS5N6A.js} +12 -12
  156. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ZZ45TVLE.js → chunk-L5ZTLDWV.js} +2 -2
  157. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-336JU56O.js → chunk-LZXEDZCA.js} +5 -5
  158. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-YZCP3GAM.js → chunk-ND2GUHAM.js} +1 -1
  159. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-X2U36JSP.js → chunk-NZK2D7GU.js} +1 -1
  160. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-U2HBQHQK.js → chunk-O5CBEL6O.js} +2 -2
  161. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-426QAEUC.js → chunk-WU5MYG2G.js} +1 -1
  162. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-6PBFFD2Q.js → classDiagram-4FO5ZUOK.js} +11 -11
  163. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-v2-HSJHXN6E.js → classDiagram-v2-Q7XG4LA2.js} +11 -11
  164. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{dagre-KV5264BT.js → dagre-BM42HDAG.js} +8 -8
  165. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-MMDJMWI5.js → diagram-2AECGRRQ.js} +3 -3
  166. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-5BDNPKRD.js → diagram-5GNKFQAL.js} +3 -3
  167. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-KO2AKTUF.js +433 -0
  168. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-TYMM5635.js → diagram-LMA3HP47.js} +3 -3
  169. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-G4DWMVQ6.js → diagram-OG6HWLK6.js} +5 -5
  170. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-SMLLAGMA.js → erDiagram-TEJ5UH35.js} +9 -9
  171. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-DWJPFMVM.js → flowDiagram-I6XJVG4X.js} +10 -10
  172. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ganttDiagram-T4ZO3ILL.js → ganttDiagram-6RSMTGT7.js} +7 -4
  173. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{gitGraphDiagram-UUTBAWPF.js → gitGraphDiagram-PVQCEYII.js} +2 -2
  174. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{infoDiagram-42DDH7IO.js → infoDiagram-5YYISTIA.js} +3 -3
  175. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ishikawaDiagram-UXIWVN3A.js → ishikawaDiagram-YF4QCWOH.js} +3 -3
  176. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{journeyDiagram-VCZTEJTY.js → journeyDiagram-JHISSGLW.js} +2 -2
  177. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-6JOO6SKY.js → kanban-definition-UN3LZRKU.js} +7 -7
  178. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-QFDTVHPH.js → mindmap-definition-RKZ34NQL.js} +9 -9
  179. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{pieDiagram-DEJITSTG.js → pieDiagram-4H26LBE5.js} +3 -3
  180. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-34T5L4WZ.js → quadrantDiagram-W4KKPZXB.js} +364 -337
  181. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-MS252O5E.js → requirementDiagram-4Y6WPE33.js} +9 -9
  182. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sankeyDiagram-XADWPNL6.js → sankeyDiagram-5OEKKPKP.js} +187 -138
  183. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sequenceDiagram-FGHM5R23.js → sequenceDiagram-3UESZ5HK.js} +15 -8
  184. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-FHFEXIEX.js → stateDiagram-AJRCARHV.js} +10 -10
  185. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-v2-QKLJ7IA2.js → stateDiagram-v2-BHNVJYJU.js} +10 -10
  186. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{timeline-definition-GMOUNBTQ.js → timeline-definition-PNZ67QCA.js} +3 -3
  187. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{vennDiagram-DHZGUBPP.js → vennDiagram-CIIHVFJN.js} +3 -3
  188. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-YWT4CUSO.js +640 -0
  189. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{xychartDiagram-5P7HB3ND.js → xychartDiagram-2RQKCTM6.js} +4 -4
  190. package/dist/node_modules/mermaid/dist/mermaid.core.js +96 -70
  191. package/dist/node_modules/stylis/src/Enum.js +2 -2
  192. package/dist/node_modules/stylis/src/Middleware.js +9 -0
  193. package/dist/node_modules/stylis/src/Parser.js +55 -44
  194. package/dist/node_modules/stylis/src/Utility.js +9 -12
  195. package/dist/node_modules/unified/lib/index.js +1 -1
  196. package/dist/packages/contracts/dist/enums/index.js +4 -24
  197. package/dist/packages/contracts/dist/enums/registry.enum.js +9 -20
  198. package/dist/packages/contracts/dist/enums/sort-order.enum.js +5 -10
  199. package/dist/packages/contracts/dist/enums/user-type.enum.js +5 -10
  200. package/dist/packages/contracts/dist/enums/workflow-state.enum.js +5 -10
  201. package/dist/pages/DebugWorkflowDetailsPage.js +2 -2
  202. package/dist/pages/DebugWorkflowsPage.js +12 -12
  203. package/dist/pages/EmbedWorkbenchPage.js +4 -3
  204. package/dist/pages/PreviewWorkbenchPage.js +126 -124
  205. package/dist/pages/StudioLandingPage.js +28 -72
  206. package/dist/pages/WorkspacePage.js +2 -2
  207. package/package.json +2 -2
  208. package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -23
  209. package/dist/node_modules/@chevrotain/gast/lib/src/model.js +0 -151
  210. package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -40
  211. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +0 -2
  212. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -85
  213. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -35
  214. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -570
  215. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -25
  216. package/dist/node_modules/@chevrotain/utils/lib/src/print.js +0 -9
  217. package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +0 -8
  218. package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -10
  219. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +0 -28
  220. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +0 -23
  221. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +0 -1197
  222. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +0 -60
  223. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +0 -29
  224. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +0 -3
  225. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +0 -3
  226. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +0 -3
  227. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +0 -3
  228. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +0 -3
  229. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +0 -3
  230. package/dist/node_modules/chevrotain/lib/src/api.js +0 -10
  231. package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -10
  232. package/dist/node_modules/chevrotain/lib/src/parse/constants.js +0 -2
  233. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -13
  234. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -49
  235. package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -77
  236. package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -33
  237. package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -275
  238. package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -23
  239. package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -28
  240. package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -14
  241. package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -262
  242. package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -5
  243. package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -41
  244. package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -241
  245. package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -30
  246. package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -56
  247. package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -114
  248. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -46
  249. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -166
  250. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -43
  251. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -107
  252. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -21
  253. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -312
  254. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -285
  255. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -144
  256. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -92
  257. package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -11
  258. package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +0 -437
  259. package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -9
  260. package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -253
  261. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -152
  262. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -15
  263. package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +0 -65
  264. package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -39
  265. package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -346
  266. package/dist/node_modules/chevrotain-allstar/lib/atn.js +0 -194
  267. package/dist/node_modules/chevrotain-allstar/lib/dfa.js +0 -32
  268. package/dist/node_modules/chevrotain-allstar/lib/index.js +0 -1
  269. package/dist/node_modules/langium/lib/default-module.js +0 -85
  270. package/dist/node_modules/langium/lib/dependency-injection.js +0 -62
  271. package/dist/node_modules/langium/lib/documentation/comment-provider.js +0 -11
  272. package/dist/node_modules/langium/lib/documentation/documentation-provider.js +0 -36
  273. package/dist/node_modules/langium/lib/documentation/jsdoc.js +0 -303
  274. package/dist/node_modules/langium/lib/index.js +0 -182
  275. package/dist/node_modules/langium/lib/languages/generated/ast.js +0 -1089
  276. package/dist/node_modules/langium/lib/languages/grammar-config.js +0 -13
  277. package/dist/node_modules/langium/lib/parser/async-parser.js +0 -83
  278. package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +0 -7
  279. package/dist/node_modules/langium/lib/parser/cst-node-builder.js +0 -160
  280. package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
  281. package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +0 -11
  282. package/dist/node_modules/langium/lib/parser/langium-parser.js +0 -388
  283. package/dist/node_modules/langium/lib/parser/lexer.js +0 -50
  284. package/dist/node_modules/langium/lib/parser/parser-builder-base.js +0 -275
  285. package/dist/node_modules/langium/lib/parser/token-builder.js +0 -61
  286. package/dist/node_modules/langium/lib/parser/value-converter.js +0 -78
  287. package/dist/node_modules/langium/lib/references/linker.js +0 -190
  288. package/dist/node_modules/langium/lib/references/name-provider.js +0 -13
  289. package/dist/node_modules/langium/lib/references/references.js +0 -76
  290. package/dist/node_modules/langium/lib/references/scope-computation.js +0 -35
  291. package/dist/node_modules/langium/lib/references/scope-provider.js +0 -34
  292. package/dist/node_modules/langium/lib/references/scope.js +0 -73
  293. package/dist/node_modules/langium/lib/serializer/hydrator.js +0 -125
  294. package/dist/node_modules/langium/lib/serializer/json-serializer.js +0 -145
  295. package/dist/node_modules/langium/lib/service-registry.js +0 -37
  296. package/dist/node_modules/langium/lib/syntax-tree.js +0 -70
  297. package/dist/node_modules/langium/lib/utils/ast-utils.js +0 -157
  298. package/dist/node_modules/langium/lib/utils/caching.js +0 -91
  299. package/dist/node_modules/langium/lib/utils/cancellation.js +0 -5
  300. package/dist/node_modules/langium/lib/utils/collections.js +0 -85
  301. package/dist/node_modules/langium/lib/utils/cst-utils.js +0 -190
  302. package/dist/node_modules/langium/lib/utils/disposable.js +0 -8
  303. package/dist/node_modules/langium/lib/utils/errors.js +0 -12
  304. package/dist/node_modules/langium/lib/utils/event.js +0 -5
  305. package/dist/node_modules/langium/lib/utils/grammar-loader.js +0 -22
  306. package/dist/node_modules/langium/lib/utils/grammar-utils.js +0 -296
  307. package/dist/node_modules/langium/lib/utils/index.js +0 -53
  308. package/dist/node_modules/langium/lib/utils/promise-utils.js +0 -30
  309. package/dist/node_modules/langium/lib/utils/regexp-utils.js +0 -167
  310. package/dist/node_modules/langium/lib/utils/stream.js +0 -327
  311. package/dist/node_modules/langium/lib/utils/uri-utils.js +0 -107
  312. package/dist/node_modules/langium/lib/validation/document-validator.js +0 -210
  313. package/dist/node_modules/langium/lib/validation/validation-registry.js +0 -87
  314. package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +0 -57
  315. package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +0 -28
  316. package/dist/node_modules/langium/lib/workspace/configuration.js +0 -51
  317. package/dist/node_modules/langium/lib/workspace/document-builder.js +0 -201
  318. package/dist/node_modules/langium/lib/workspace/documents.js +0 -142
  319. package/dist/node_modules/langium/lib/workspace/file-system-provider.js +0 -34
  320. package/dist/node_modules/langium/lib/workspace/index-manager.js +0 -49
  321. package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
  322. package/dist/node_modules/langium/lib/workspace/workspace-lock.js +0 -42
  323. package/dist/node_modules/langium/lib/workspace/workspace-manager.js +0 -66
  324. package/dist/node_modules/lodash-es/flatMap.js +0 -7
  325. package/dist/node_modules/lodash-es/uniqBy.js +0 -7
  326. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +0 -574
  327. package/dist/node_modules/vscode-jsonrpc/browser.js +0 -7
  328. package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -52
  329. package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -120
  330. package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +0 -337
  331. package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -57
  332. package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -647
  333. package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -13
  334. package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +0 -64
  335. package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +0 -34
  336. package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -235
  337. package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -93
  338. package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -129
  339. package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -85
  340. package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -161
  341. package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -18
  342. package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -44
  343. package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -58
  344. package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +0 -28
  345. package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -36
  346. package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -12
  347. package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -31
  348. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -19
  349. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -15
  350. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -11
  351. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -11
  352. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -33
  353. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -35
  354. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -15
  355. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -11
  356. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -19
  357. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -11
  358. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -15
  359. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -674
  360. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -11
  361. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -19
  362. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -126
  363. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -24
  364. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -11
  365. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -31
  366. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -11
  367. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -11
  368. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -19
  369. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -15
  370. package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -42
  371. package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +0 -138
  372. package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -1084
  373. package/dist/node_modules/vscode-uri/lib/esm/index.js +0 -373
  374. /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode-codepoint.js +0 -0
  375. /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode.js +0 -0
  376. /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/generated/decode-data-html.js +0 -0
  377. /package/dist/node_modules/{unified/node_modules/is-plain-obj → is-plain-obj}/index.js +0 -0
@@ -1,15 +1,15 @@
1
1
  import { __export, __name, log } from "./chunk-AGHRB4JF.js";
2
- import { clear, getAccDescription, getAccTitle, getConfig, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-ICPOFSXX.js";
2
+ import { clear, getAccDescription, getAccTitle, getConfig, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-CSCIHK7Q.js";
3
3
  import "./chunk-BSJP7CBP.js";
4
- import { utils_default } from "./chunk-5PVQY5BW.js";
5
- import "./chunk-ZZ45TVLE.js";
6
- import "./chunk-X2U36JSP.js";
7
- import "./chunk-U2HBQHQK.js";
8
- import "./chunk-5FUZZQ4R.js";
9
- import "./chunk-ENJZ2VHE.js";
10
- import { getRegisteredLayoutAlgorithm, render } from "./chunk-336JU56O.js";
4
+ import { utils_default } from "./chunk-5ZQYHXKU.js";
5
+ import "./chunk-L5ZTLDWV.js";
6
+ import "./chunk-NZK2D7GU.js";
7
+ import "./chunk-O5CBEL6O.js";
8
+ import "./chunk-3OPIFGDE.js";
9
+ import "./chunk-KSCS5N6A.js";
10
+ import { getRegisteredLayoutAlgorithm, render } from "./chunk-LZXEDZCA.js";
11
11
  import { getDiagramElement } from "./chunk-55IACEB6.js";
12
- import { setupViewPortForSVG } from "./chunk-EDXVE4YY.js";
12
+ import { setupViewPortForSVG } from "./chunk-2J33WTMH.js";
13
13
  var parser = (function() {
14
14
  var e = /* @__PURE__ */ __name(function(e, t, n, r) {
15
15
  for (n ||= {}, r = e.length; r--; n[e[r]] = t);
@@ -1,5 +1,5 @@
1
1
  import { __name } from "./chunk-AGHRB4JF.js";
2
- import { clear, common_default, defaultConfig2, getAccDescription, getAccTitle, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle, setupGraphViewbox } from "./chunk-ICPOFSXX.js";
2
+ import { clear, common_default, defaultConfig2, getAccDescription, getAccTitle, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle, setupGraphViewbox } from "./chunk-CSCIHK7Q.js";
3
3
  import select_default from "../../../../d3-selection/src/select.js";
4
4
  import ordinal from "../../../../d3-scale/src/ordinal.js";
5
5
  import Tableau10_default from "../../../../d3-scale-chromatic/src/categorical/Tableau10.js";
@@ -8,15 +8,15 @@ import { center, justify, left, right } from "../../../../d3-sankey/src/align.js
8
8
  import Sankey from "../../../../d3-sankey/src/sankey.js";
9
9
  import sankeyLinkHorizontal_default from "../../../../d3-sankey/src/sankeyLinkHorizontal.js";
10
10
  var parser = (function() {
11
- var i = /* @__PURE__ */ __name(function(e, i, a, o) {
12
- for (a ||= {}, o = e.length; o--; a[e[o]] = i);
13
- return a;
14
- }, "o"), a = [1, 9], o = [1, 10], s = [
11
+ var n = /* @__PURE__ */ __name(function(e, n, r, i) {
12
+ for (r ||= {}, i = e.length; i--; r[e[i]] = n);
13
+ return r;
14
+ }, "o"), r = [1, 9], i = [1, 10], a = [
15
15
  1,
16
16
  5,
17
17
  10,
18
18
  12
19
- ], c = {
19
+ ], o = {
20
20
  trace: /* @__PURE__ */ __name(function() {}, "trace"),
21
21
  yy: {},
22
22
  symbols_: {
@@ -69,20 +69,20 @@ var parser = (function() {
69
69
  [16, 3],
70
70
  [17, 1]
71
71
  ],
72
- performAction: /* @__PURE__ */ __name(function(e, i, a, o, s, c, l) {
73
- var u = c.length - 1;
74
- switch (s) {
72
+ performAction: /* @__PURE__ */ __name(function(e, n, r, i, a, o, s) {
73
+ var c = o.length - 1;
74
+ switch (a) {
75
75
  case 7:
76
- let e = o.findOrCreateNode(c[u - 4].trim().replaceAll("\"\"", "\"")), i = o.findOrCreateNode(c[u - 2].trim().replaceAll("\"\"", "\"")), a = parseFloat(c[u].trim());
77
- o.addLink(e, i, a);
76
+ let e = i.findOrCreateNode(o[c - 4].trim().replaceAll("\"\"", "\"")), n = i.findOrCreateNode(o[c - 2].trim().replaceAll("\"\"", "\"")), r = parseFloat(o[c].trim());
77
+ i.addLink(e, n, r);
78
78
  break;
79
79
  case 8:
80
80
  case 9:
81
81
  case 11:
82
- this.$ = c[u];
82
+ this.$ = o[c];
83
83
  break;
84
84
  case 10:
85
- this.$ = c[u - 1];
85
+ this.$ = o[c - 1];
86
86
  break;
87
87
  }
88
88
  }, "anonymous"),
@@ -99,54 +99,54 @@ var parser = (function() {
99
99
  15: 6,
100
100
  16: 7,
101
101
  17: 8,
102
- 18: a,
103
- 20: o
102
+ 18: r,
103
+ 20: i
104
104
  },
105
105
  {
106
106
  1: [2, 6],
107
107
  7: 11,
108
108
  10: [1, 12]
109
109
  },
110
- i(o, [2, 4], {
110
+ n(i, [2, 4], {
111
111
  9: 13,
112
112
  5: [1, 14]
113
113
  }),
114
114
  { 12: [1, 15] },
115
- i(s, [2, 8]),
116
- i(s, [2, 9]),
115
+ n(a, [2, 8]),
116
+ n(a, [2, 9]),
117
117
  { 19: [1, 16] },
118
- i(s, [2, 11]),
118
+ n(a, [2, 11]),
119
119
  { 1: [2, 1] },
120
120
  { 1: [2, 5] },
121
- i(o, [2, 2]),
121
+ n(i, [2, 2]),
122
122
  {
123
123
  6: 17,
124
124
  8: 5,
125
125
  15: 6,
126
126
  16: 7,
127
127
  17: 8,
128
- 18: a,
129
- 20: o
128
+ 18: r,
129
+ 20: i
130
130
  },
131
131
  {
132
132
  15: 18,
133
133
  16: 7,
134
134
  17: 8,
135
- 18: a,
136
- 20: o
135
+ 18: r,
136
+ 20: i
137
137
  },
138
138
  { 18: [1, 19] },
139
- i(o, [2, 3]),
139
+ n(i, [2, 3]),
140
140
  { 12: [1, 20] },
141
- i(s, [2, 10]),
141
+ n(a, [2, 10]),
142
142
  {
143
143
  15: 21,
144
144
  16: 7,
145
145
  17: 8,
146
- 18: a,
147
- 20: o
146
+ 18: r,
147
+ 20: i
148
148
  },
149
- i([
149
+ n([
150
150
  1,
151
151
  5,
152
152
  10
@@ -156,63 +156,63 @@ var parser = (function() {
156
156
  11: [2, 1],
157
157
  12: [2, 5]
158
158
  },
159
- parseError: /* @__PURE__ */ __name(function(e, i) {
160
- if (i.recoverable) this.trace(e);
159
+ parseError: /* @__PURE__ */ __name(function(e, n) {
160
+ if (n.recoverable) this.trace(e);
161
161
  else {
162
- var a = Error(e);
163
- throw a.hash = i, a;
162
+ var r = Error(e);
163
+ throw r.hash = n, r;
164
164
  }
165
165
  }, "parseError"),
166
- parse: /* @__PURE__ */ __name(function(i) {
167
- var a = this, o = [0], s = [], c = [null], l = [], u = this.table, d = "", f = 0, p = 0, m = 0, h = 2, g = 1, _ = l.slice.call(arguments, 1), v = Object.create(this.lexer), y = { yy: {} };
168
- for (var b in this.yy) Object.prototype.hasOwnProperty.call(this.yy, b) && (y.yy[b] = this.yy[b]);
169
- v.setInput(i, y.yy), y.yy.lexer = v, y.yy.parser = this, v.yylloc === void 0 && (v.yylloc = {});
170
- var x = v.yylloc;
171
- l.push(x);
172
- var S = v.options && v.options.ranges;
173
- typeof y.yy.parseError == "function" ? this.parseError = y.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
174
- function C(e) {
175
- o.length -= 2 * e, c.length -= e, l.length -= e;
166
+ parse: /* @__PURE__ */ __name(function(n) {
167
+ var r = this, i = [0], a = [], o = [null], s = [], c = this.table, l = "", u = 0, d = 0, f = 0, p = 2, m = 1, h = s.slice.call(arguments, 1), g = Object.create(this.lexer), _ = { yy: {} };
168
+ for (var v in this.yy) Object.prototype.hasOwnProperty.call(this.yy, v) && (_.yy[v] = this.yy[v]);
169
+ g.setInput(n, _.yy), _.yy.lexer = g, _.yy.parser = this, g.yylloc === void 0 && (g.yylloc = {});
170
+ var y = g.yylloc;
171
+ s.push(y);
172
+ var b = g.options && g.options.ranges;
173
+ typeof _.yy.parseError == "function" ? this.parseError = _.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
174
+ function x(e) {
175
+ i.length -= 2 * e, o.length -= e, s.length -= e;
176
176
  }
177
- __name(C, "popStack");
178
- function w() {
179
- var e = s.pop() || v.lex() || g;
180
- return typeof e != "number" && (e instanceof Array && (s = e, e = s.pop()), e = a.symbols_[e] || e), e;
177
+ __name(x, "popStack");
178
+ function S() {
179
+ var e = a.pop() || g.lex() || m;
180
+ return typeof e != "number" && (e instanceof Array && (a = e, e = a.pop()), e = r.symbols_[e] || e), e;
181
181
  }
182
- __name(w, "lex");
183
- for (var T, E, D, O, k, A = {}, j, M, N, P;;) {
184
- if (D = o[o.length - 1], this.defaultActions[D] ? O = this.defaultActions[D] : (T ??= w(), O = u[D] && u[D][T]), O === void 0 || !O.length || !O[0]) {
185
- var F = "";
186
- for (j in P = [], u[D]) this.terminals_[j] && j > h && P.push("'" + this.terminals_[j] + "'");
187
- F = v.showPosition ? "Parse error on line " + (f + 1) + ":\n" + v.showPosition() + "\nExpecting " + P.join(", ") + ", got '" + (this.terminals_[T] || T) + "'" : "Parse error on line " + (f + 1) + ": Unexpected " + (T == g ? "end of input" : "'" + (this.terminals_[T] || T) + "'"), this.parseError(F, {
188
- text: v.match,
189
- token: this.terminals_[T] || T,
190
- line: v.yylineno,
191
- loc: x,
192
- expected: P
182
+ __name(S, "lex");
183
+ for (var C, w, T, E, D, O = {}, k, A, j, M;;) {
184
+ if (T = i[i.length - 1], this.defaultActions[T] ? E = this.defaultActions[T] : (C ??= S(), E = c[T] && c[T][C]), E === void 0 || !E.length || !E[0]) {
185
+ var N = "";
186
+ for (k in M = [], c[T]) this.terminals_[k] && k > p && M.push("'" + this.terminals_[k] + "'");
187
+ N = g.showPosition ? "Parse error on line " + (u + 1) + ":\n" + g.showPosition() + "\nExpecting " + M.join(", ") + ", got '" + (this.terminals_[C] || C) + "'" : "Parse error on line " + (u + 1) + ": Unexpected " + (C == m ? "end of input" : "'" + (this.terminals_[C] || C) + "'"), this.parseError(N, {
188
+ text: g.match,
189
+ token: this.terminals_[C] || C,
190
+ line: g.yylineno,
191
+ loc: y,
192
+ expected: M
193
193
  });
194
194
  }
195
- if (O[0] instanceof Array && O.length > 1) throw Error("Parse Error: multiple actions possible at state: " + D + ", token: " + T);
196
- switch (O[0]) {
195
+ if (E[0] instanceof Array && E.length > 1) throw Error("Parse Error: multiple actions possible at state: " + T + ", token: " + C);
196
+ switch (E[0]) {
197
197
  case 1:
198
- o.push(T), c.push(v.yytext), l.push(v.yylloc), o.push(O[1]), T = null, E ? (T = E, E = null) : (p = v.yyleng, d = v.yytext, f = v.yylineno, x = v.yylloc, m > 0 && m--);
198
+ i.push(C), o.push(g.yytext), s.push(g.yylloc), i.push(E[1]), C = null, w ? (C = w, w = null) : (d = g.yyleng, l = g.yytext, u = g.yylineno, y = g.yylloc, f > 0 && f--);
199
199
  break;
200
200
  case 2:
201
- if (M = this.productions_[O[1]][1], A.$ = c[c.length - M], A._$ = {
202
- first_line: l[l.length - (M || 1)].first_line,
203
- last_line: l[l.length - 1].last_line,
204
- first_column: l[l.length - (M || 1)].first_column,
205
- last_column: l[l.length - 1].last_column
206
- }, S && (A._$.range = [l[l.length - (M || 1)].range[0], l[l.length - 1].range[1]]), k = this.performAction.apply(A, [
201
+ if (A = this.productions_[E[1]][1], O.$ = o[o.length - A], O._$ = {
202
+ first_line: s[s.length - (A || 1)].first_line,
203
+ last_line: s[s.length - 1].last_line,
204
+ first_column: s[s.length - (A || 1)].first_column,
205
+ last_column: s[s.length - 1].last_column
206
+ }, b && (O._$.range = [s[s.length - (A || 1)].range[0], s[s.length - 1].range[1]]), D = this.performAction.apply(O, [
207
+ l,
207
208
  d,
208
- p,
209
- f,
210
- y.yy,
211
- O[1],
212
- c,
213
- l
214
- ].concat(_)), k !== void 0) return k;
215
- M && (o = o.slice(0, -1 * M * 2), c = c.slice(0, -1 * M), l = l.slice(0, -1 * M)), o.push(this.productions_[O[1]][0]), c.push(A.$), l.push(A._$), N = u[o[o.length - 2]][o[o.length - 1]], o.push(N);
209
+ u,
210
+ _.yy,
211
+ E[1],
212
+ o,
213
+ s
214
+ ].concat(h)), D !== void 0) return D;
215
+ A && (i = i.slice(0, -1 * A * 2), o = o.slice(0, -1 * A), s = s.slice(0, -1 * A)), i.push(this.productions_[E[1]][0]), o.push(O.$), s.push(O._$), j = c[i[i.length - 2]][i[i.length - 1]], i.push(j);
216
216
  break;
217
217
  case 3: return !0;
218
218
  }
@@ -220,15 +220,15 @@ var parser = (function() {
220
220
  return !0;
221
221
  }, "parse")
222
222
  };
223
- c.lexer = /* @__PURE__ */ (function() {
223
+ o.lexer = /* @__PURE__ */ (function() {
224
224
  return {
225
225
  EOF: 1,
226
- parseError: /* @__PURE__ */ __name(function(e, i) {
227
- if (this.yy.parser) this.yy.parser.parseError(e, i);
226
+ parseError: /* @__PURE__ */ __name(function(e, n) {
227
+ if (this.yy.parser) this.yy.parser.parseError(e, n);
228
228
  else throw Error(e);
229
229
  }, "parseError"),
230
- setInput: /* @__PURE__ */ __name(function(e, i) {
231
- return this.yy = i || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
230
+ setInput: /* @__PURE__ */ __name(function(e, n) {
231
+ return this.yy = n || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
232
232
  first_line: 1,
233
233
  first_column: 0,
234
234
  last_line: 1,
@@ -240,17 +240,17 @@ var parser = (function() {
240
240
  return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
241
241
  }, "input"),
242
242
  unput: /* @__PURE__ */ __name(function(e) {
243
- var i = e.length, a = e.split(/(?:\r\n?|\n)/g);
244
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
245
- var o = this.match.split(/(?:\r\n?|\n)/g);
246
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), a.length - 1 && (this.yylineno -= a.length - 1);
247
- var s = this.yylloc.range;
243
+ var n = e.length, r = e.split(/(?:\r\n?|\n)/g);
244
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
245
+ var i = this.match.split(/(?:\r\n?|\n)/g);
246
+ 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);
247
+ var a = this.yylloc.range;
248
248
  return this.yylloc = {
249
249
  first_line: this.yylloc.first_line,
250
250
  last_line: this.yylineno + 1,
251
251
  first_column: this.yylloc.first_column,
252
- last_column: a ? (a.length === o.length ? this.yylloc.first_column : 0) + o[o.length - a.length].length - a[0].length : this.yylloc.first_column - i
253
- }, this.options.ranges && (this.yylloc.range = [s[0], s[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
252
+ last_column: r ? (r.length === i.length ? this.yylloc.first_column : 0) + i[i.length - r.length].length - r[0].length : this.yylloc.first_column - n
253
+ }, this.options.ranges && (this.yylloc.range = [a[0], a[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
254
254
  }, "unput"),
255
255
  more: /* @__PURE__ */ __name(function() {
256
256
  return this._more = !0, this;
@@ -276,12 +276,12 @@ var parser = (function() {
276
276
  return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
277
277
  }, "upcomingInput"),
278
278
  showPosition: /* @__PURE__ */ __name(function() {
279
- var e = this.pastInput(), i = Array(e.length + 1).join("-");
280
- return e + this.upcomingInput() + "\n" + i + "^";
279
+ var e = this.pastInput(), n = Array(e.length + 1).join("-");
280
+ return e + this.upcomingInput() + "\n" + n + "^";
281
281
  }, "showPosition"),
282
- test_match: /* @__PURE__ */ __name(function(e, i) {
283
- var a, o, s;
284
- if (this.options.backtrack_lexer && (s = {
282
+ test_match: /* @__PURE__ */ __name(function(e, n) {
283
+ var r, i, a;
284
+ if (this.options.backtrack_lexer && (a = {
285
285
  yylineno: this.yylineno,
286
286
  yylloc: {
287
287
  first_line: this.yylloc.first_line,
@@ -300,14 +300,14 @@ var parser = (function() {
300
300
  yy: this.yy,
301
301
  conditionStack: this.conditionStack.slice(0),
302
302
  done: this.done
303
- }, this.options.ranges && (s.yylloc.range = this.yylloc.range.slice(0))), o = e[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
303
+ }, this.options.ranges && (a.yylloc.range = this.yylloc.range.slice(0))), i = e[0].match(/(?:\r\n?|\n).*/g), i && (this.yylineno += i.length), this.yylloc = {
304
304
  first_line: this.yylloc.last_line,
305
305
  last_line: this.yylineno + 1,
306
306
  first_column: this.yylloc.last_column,
307
- last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
308
- }, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], a = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a) return a;
307
+ last_column: i ? i[i.length - 1].length - i[i.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
308
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[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;
309
309
  if (this._backtrack) {
310
- for (var c in s) this[c] = s[c];
310
+ for (var o in a) this[o] = a[o];
311
311
  return !1;
312
312
  }
313
313
  return !1;
@@ -315,18 +315,18 @@ var parser = (function() {
315
315
  next: /* @__PURE__ */ __name(function() {
316
316
  if (this.done) return this.EOF;
317
317
  this._input || (this.done = !0);
318
- var e, i, a, o;
318
+ var e, n, r, i;
319
319
  this._more || (this.yytext = "", this.match = "");
320
- for (var s = this._currentRules(), c = 0; c < s.length; c++) if (a = this._input.match(this.rules[s[c]]), a && (!i || a[0].length > i[0].length)) {
321
- if (i = a, o = c, this.options.backtrack_lexer) {
322
- if (e = this.test_match(a, s[c]), e !== !1) return e;
320
+ for (var a = this._currentRules(), o = 0; o < a.length; o++) if (r = this._input.match(this.rules[a[o]]), r && (!n || r[0].length > n[0].length)) {
321
+ if (n = r, i = o, this.options.backtrack_lexer) {
322
+ if (e = this.test_match(r, a[o]), e !== !1) return e;
323
323
  if (this._backtrack) {
324
- i = !1;
324
+ n = !1;
325
325
  continue;
326
326
  } else return !1;
327
327
  } else if (!this.options.flex) break;
328
328
  }
329
- return i ? (e = this.test_match(i, s[o]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
329
+ return n ? (e = this.test_match(n, a[i]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
330
330
  text: "",
331
331
  token: null,
332
332
  line: this.yylineno
@@ -354,8 +354,8 @@ var parser = (function() {
354
354
  return this.conditionStack.length;
355
355
  }, "stateStackSize"),
356
356
  options: { "case-insensitive": !0 },
357
- performAction: /* @__PURE__ */ __name(function(e, i, a, o) {
358
- switch (a) {
357
+ performAction: /* @__PURE__ */ __name(function(e, n, r, i) {
358
+ switch (r) {
359
359
  case 0: return this.pushState("csv"), 4;
360
360
  case 1: return this.pushState("csv"), 4;
361
361
  case 2: return 10;
@@ -412,21 +412,21 @@ var parser = (function() {
412
412
  }
413
413
  };
414
414
  })();
415
- function l() {
415
+ function s() {
416
416
  this.yy = {};
417
417
  }
418
- return __name(l, "Parser"), l.prototype = c, c.Parser = l, new l();
418
+ return __name(s, "Parser"), s.prototype = o, o.Parser = s, new s();
419
419
  })();
420
420
  parser.parser = parser;
421
421
  var sankey_default = parser, links = [], nodes = [], nodesMap = /* @__PURE__ */ new Map(), clear2 = /* @__PURE__ */ __name(() => {
422
422
  links = [], nodes = [], nodesMap = /* @__PURE__ */ new Map(), clear();
423
423
  }, "clear"), SankeyLink = class {
424
- constructor(e, i, a = 0) {
425
- this.source = e, this.target = i, this.value = a;
424
+ constructor(e, n, r = 0) {
425
+ this.source = e, this.target = n, this.value = r;
426
426
  }
427
427
  static #e = __name(this, "SankeyLink");
428
- }, addLink = /* @__PURE__ */ __name((e, i, a) => {
429
- links.push(new SankeyLink(e, i, a));
428
+ }, addLink = /* @__PURE__ */ __name((e, n, r) => {
429
+ links.push(new SankeyLink(e, n, r));
430
430
  }, "addLink"), SankeyNode = class {
431
431
  constructor(e) {
432
432
  this.ID = e;
@@ -448,8 +448,8 @@ var sankey_default = parser, links = [], nodes = [], nodesMap = /* @__PURE__ */
448
448
  addLink,
449
449
  findOrCreateNode: /* @__PURE__ */ __name((e) => {
450
450
  e = common_default.sanitizeText(e, getConfig2());
451
- let i = nodesMap.get(e);
452
- return i === void 0 && (i = new SankeyNode(e), nodesMap.set(e, i), nodes.push(i)), i;
451
+ let n = nodesMap.get(e);
452
+ return n === void 0 && (n = new SankeyNode(e), nodesMap.set(e, n), nodes.push(n)), n;
453
453
  }, "findOrCreateNode"),
454
454
  getAccTitle,
455
455
  setAccTitle,
@@ -458,11 +458,11 @@ var sankey_default = parser, links = [], nodes = [], nodesMap = /* @__PURE__ */
458
458
  getDiagramTitle,
459
459
  setDiagramTitle,
460
460
  clear: clear2
461
- }, Uid = class i {
461
+ }, Uid = class n {
462
462
  static #e = __name(this, "Uid");
463
463
  static #t = this.count = 0;
464
464
  static next(e) {
465
- return new i(e + ++i.count);
465
+ return new n(e + ++n.count);
466
466
  }
467
467
  constructor(e) {
468
468
  this.id = e, this.href = `#${e}`;
@@ -475,40 +475,89 @@ var sankey_default = parser, links = [], nodes = [], nodesMap = /* @__PURE__ */
475
475
  right,
476
476
  center,
477
477
  justify
478
- }, sankeyRenderer_default = { draw: /* @__PURE__ */ __name(function(i, a, s, c) {
479
- let { securityLevel: u, sankey: d } = getConfig2(), f = defaultConfig2.sankey, p;
480
- u === "sandbox" && (p = select_default("#i" + a));
481
- let v = select_default(u === "sandbox" ? p.nodes()[0].contentDocument.body : "body"), y = u === "sandbox" ? v.select(`[id="${a}"]`) : select_default(`[id="${a}"]`), b = d?.width ?? f.width, x = d?.height ?? f.width, w = d?.useMaxWidth ?? f.useMaxWidth, T = d?.nodeAlignment ?? f.nodeAlignment, E = d?.prefix ?? f.prefix, D = d?.suffix ?? f.suffix, O = d?.showValues ?? f.showValues, k = c.db.getGraph(), A = alignmentsMap[T];
482
- Sankey().nodeId((e) => e.id).nodeWidth(10).nodePadding(10 + (O ? 15 : 0)).nodeAlign(A).extent([[0, 0], [b, x]])(k);
483
- let j = ordinal(Tableau10_default);
484
- y.append("g").attr("class", "nodes").selectAll(".node").data(k.nodes).join("g").attr("class", "node").attr("id", (e) => (e.uid = Uid.next("node-")).id).attr("transform", function(e) {
478
+ }, findCentralNodeLayer = /* @__PURE__ */ __name((e) => {
479
+ let n = 0, r = 0;
480
+ for (let i of e) {
481
+ let e = i.value ?? 0;
482
+ e > n && (n = e, r = i.layer ?? 0);
483
+ }
484
+ return r;
485
+ }, "findCentralNodeLayer"), sankeyRenderer_default = { draw: /* @__PURE__ */ __name(function(n, r, a, o) {
486
+ let { securityLevel: c, sankey: l } = getConfig2(), u = defaultConfig2.sankey, d;
487
+ c === "sandbox" && (d = select_default("#i" + r));
488
+ let g = select_default(c === "sandbox" ? d.nodes()[0].contentDocument.body : "body"), _ = c === "sandbox" ? g.select(`[id="${r}"]`) : select_default(`[id="${r}"]`), v = l?.width ?? u.width, y = l?.height ?? u.width, S = l?.useMaxWidth ?? u.useMaxWidth, C = l?.nodeAlignment ?? u.nodeAlignment, w = l?.prefix ?? u.prefix, T = l?.suffix ?? u.suffix, E = l?.showValues ?? u.showValues, D = l?.nodeWidth ?? u.nodeWidth ?? 10, O = l?.nodePadding ?? u.nodePadding ?? 12, k = l?.labelStyle ?? u.labelStyle ?? "legacy", A = l?.nodeColors ?? {}, j = o.db.getGraph(), P = alignmentsMap[C];
489
+ Sankey().nodeId((e) => e.id).nodeWidth(D).nodePadding(O + (E ? 15 : 0)).nodeAlign(P).extent([[0, 0], [v, y]])(j);
490
+ let F = findCentralNodeLayer(j.nodes), I = ordinal(Tableau10_default), L = /* @__PURE__ */ __name((e) => A[e] ?? I(e), "getNodeColor");
491
+ _.append("g").attr("class", "nodes").selectAll(".node").data(j.nodes).join("g").attr("class", "node").attr("id", (e) => (e.uid = Uid.next("node-")).id).attr("transform", function(e) {
485
492
  return "translate(" + e.x0 + "," + e.y0 + ")";
486
- }).attr("x", (e) => e.x0).attr("y", (e) => e.y0).append("rect").attr("height", (e) => e.y1 - e.y0).attr("width", (e) => e.x1 - e.x0).attr("fill", (e) => j(e.id));
487
- let M = /* @__PURE__ */ __name(({ id: e, value: i }) => O ? `${e}
488
- ${E}${Math.round(i * 100) / 100}${D}` : e, "getText");
489
- y.append("g").attr("class", "node-labels").attr("font-size", 14).selectAll("text").data(k.nodes).join("text").attr("x", (e) => e.x0 < b / 2 ? e.x1 + 6 : e.x0 - 6).attr("y", (e) => (e.y1 + e.y0) / 2).attr("dy", `${O ? "0" : "0.35"}em`).attr("text-anchor", (e) => e.x0 < b / 2 ? "start" : "end").text(M);
490
- let N = y.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", .5).selectAll(".link").data(k.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), I = d?.linkColor ?? "gradient";
491
- if (I === "gradient") {
492
- let e = N.append("linearGradient").attr("id", (e) => (e.uid = Uid.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (e) => e.source.x1).attr("x2", (e) => e.target.x0);
493
- e.append("stop").attr("offset", "0%").attr("stop-color", (e) => j(e.source.id)), e.append("stop").attr("offset", "100%").attr("stop-color", (e) => j(e.target.id));
493
+ }).attr("x", (e) => e.x0).attr("y", (e) => e.y0).append("rect").attr("height", (e) => e.y1 - e.y0).attr("width", (e) => e.x1 - e.x0).attr("fill", (e) => L(e.id));
494
+ let R = /* @__PURE__ */ __name(({ id: e, value: n }) => E ? `${e}
495
+ ${w}${Math.round(n * 100) / 100}${T}` : e, "getText"), z = /* @__PURE__ */ __name((e) => k === "outlined" ? (e.layer ?? 0) < F ? {
496
+ x: e.x0 - 6,
497
+ anchor: "end"
498
+ } : {
499
+ x: e.x1 + 6,
500
+ anchor: "start"
501
+ } : e.x0 < v / 2 ? {
502
+ x: e.x1 + 6,
503
+ anchor: "start"
504
+ } : {
505
+ x: e.x0 - 6,
506
+ anchor: "end"
507
+ }, "getLabelPosition"), B = _.append("g").attr("class", "node-labels").attr("font-size", 14), V = /* @__PURE__ */ __name((e) => B.selectAll(e ? `.${e}` : "text").data(j.nodes).join("text").attr("class", e ?? null).attr("x", (e) => z(e).x).attr("y", (e) => (e.y1 + e.y0) / 2).attr("dy", `${E ? "0" : "0.35"}em`).attr("text-anchor", (e) => z(e).anchor).text(R), "appendLabel");
508
+ k === "outlined" ? (V("sankey-label-bg"), V("sankey-label-fg")) : V();
509
+ let H = _.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", .5).selectAll(".link").data(j.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), U = l?.linkColor ?? "gradient";
510
+ if (U === "gradient") {
511
+ let e = H.append("linearGradient").attr("id", (e) => (e.uid = Uid.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (e) => e.source.x1).attr("x2", (e) => e.target.x0);
512
+ e.append("stop").attr("offset", "0%").attr("stop-color", (e) => L(e.source.id)), e.append("stop").attr("offset", "100%").attr("stop-color", (e) => L(e.target.id));
494
513
  }
495
- let L;
496
- switch (I) {
514
+ let W;
515
+ switch (U) {
497
516
  case "gradient":
498
- L = /* @__PURE__ */ __name((e) => e.uid, "coloring");
517
+ W = /* @__PURE__ */ __name((e) => e.uid, "coloring");
499
518
  break;
500
519
  case "source":
501
- L = /* @__PURE__ */ __name((e) => j(e.source.id), "coloring");
520
+ W = /* @__PURE__ */ __name((e) => L(e.source.id), "coloring");
502
521
  break;
503
522
  case "target":
504
- L = /* @__PURE__ */ __name((e) => j(e.target.id), "coloring");
523
+ W = /* @__PURE__ */ __name((e) => L(e.target.id), "coloring");
505
524
  break;
506
- default: L = I;
525
+ default: W = U;
507
526
  }
508
- N.append("path").attr("d", sankeyLinkHorizontal_default()).attr("stroke", L).attr("stroke-width", (e) => Math.max(1, e.width)), setupGraphViewbox(void 0, y, 0, w);
527
+ H.append("path").attr("d", sankeyLinkHorizontal_default()).attr("stroke", W).attr("stroke-width", (e) => Math.max(1, e.width)), setupGraphViewbox(void 0, _, 0, S);
509
528
  }, "draw") }, prepareTextForParsing = /* @__PURE__ */ __name((e) => e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, "\n").trim(), "prepareTextForParsing"), styles_default = /* @__PURE__ */ __name((e) => `.label {
510
- font-family: ${e.fontFamily};
511
- }`, "getStyles"), originalParse = sankey_default.parse.bind(sankey_default);
529
+ font-family: ${e.fontFamily};
530
+ }
531
+
532
+ .node-labels {
533
+ font-family: ${e.fontFamily};
534
+ }
535
+
536
+ /* Outlined label style - background stroke for better readability */
537
+ .sankey-label-bg {
538
+ stroke: ${e.mainBkg || e.background || "#fff"};
539
+ stroke-width: 4px;
540
+ stroke-linejoin: round;
541
+ paint-order: stroke;
542
+ }
543
+
544
+ /* Foreground label text */
545
+ .sankey-label-fg {
546
+ fill: ${e.textColor};
547
+ }
548
+
549
+ /* Node styling */
550
+ .node rect {
551
+ shape-rendering: crispEdges;
552
+ }
553
+
554
+ /* Link styling */
555
+ .link {
556
+ fill: none;
557
+ stroke-opacity: 0.5;
558
+ mix-blend-mode: multiply;
559
+ }
560
+ `, "getStyles"), originalParse = sankey_default.parse.bind(sankey_default);
512
561
  sankey_default.parse = (e) => originalParse(prepareTextForParsing(e));
513
562
  var diagram = {
514
563
  styles: styles_default,
@@ -1,11 +1,11 @@
1
1
  import { __name, log } from "./chunk-AGHRB4JF.js";
2
- import { assignWithDepth_default, calculateMathMLDimensions, clear, common_default, configureSvgSize, getAccDescription, getAccTitle, getConfig, getConfig2, getDiagramTitle, getUrl, hasKatex, renderKatexSanitized, sanitizeText, setAccDescription, setAccTitle, setConfig2, setDiagramTitle } from "./chunk-ICPOFSXX.js";
2
+ import { assignWithDepth_default, calculateMathMLDimensions, clear, common_default, configureSvgSize, getAccDescription, getAccTitle, getConfig, getConfig2, getDiagramTitle, getUrl, hasKatex, renderKatexSanitized, sanitizeText, setAccDescription, setAccTitle, setConfig2, setDiagramTitle } from "./chunk-CSCIHK7Q.js";
3
3
  import select_default from "../../../../d3-selection/src/select.js";
4
4
  import "../../../../d3/src/index.js";
5
5
  import { JSON_SCHEMA, load } from "./chunk-XPW4576I.js";
6
6
  import { require_dist } from "../../../../@braintree/sanitize-url/dist/index.js";
7
- import { ZERO_WIDTH_SPACE, parseFontSize, utils_default } from "./chunk-5PVQY5BW.js";
8
- import { drawBackgroundRect, drawEmbeddedImage, drawImage, drawRect, getNoteRect, getTextObj } from "./chunk-YZCP3GAM.js";
7
+ import { ZERO_WIDTH_SPACE, parseFontSize, utils_default } from "./chunk-5ZQYHXKU.js";
8
+ import { drawBackgroundRect, drawEmbeddedImage, drawImage, drawRect, getNoteRect, getTextObj } from "./chunk-ND2GUHAM.js";
9
9
  import { ImperativeState } from "./chunk-QZHKN3VN.js";
10
10
  var import_dist = require_dist(), parser = (function() {
11
11
  var t = /* @__PURE__ */ __name(function(e, t, n, r) {
@@ -2198,7 +2198,7 @@ var import_dist = require_dist(), parser = (function() {
2198
2198
  /^(?:#[^\n]*)/i,
2199
2199
  /^(?:%(?!\{)[^\n]*)/i,
2200
2200
  /^(?:[^\}]%%[^\n]*)/i,
2201
- /^(?:[0-9]+(?=[ \n]+))/i,
2201
+ /^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,
2202
2202
  /^(?:@\{)/i,
2203
2203
  /^(?:[^\}]+)/i,
2204
2204
  /^(?:\}(?=\s+as\s))/i,
@@ -2969,6 +2969,11 @@ var sequenceDiagram_default = parser, LINETYPE = {
2969
2969
  stroke: none;
2970
2970
  }
2971
2971
 
2972
+ .sectionTitle, .sectionTitle > tspan {
2973
+ fill: ${e.loopTextColor};
2974
+ stroke: none;
2975
+ }
2976
+
2972
2977
  .loopLine {
2973
2978
  stroke-width: 2px;
2974
2979
  stroke-dasharray: 2, 2;
@@ -3288,7 +3293,7 @@ var sequenceDiagram_default = parser, LINETYPE = {
3288
3293
  let _ = hasKatex(g.text) ? await drawKatex(m, g, n) : drawText(m, g);
3289
3294
  if (n.sectionTitles !== void 0) {
3290
3295
  for (let [e, t] of Object.entries(n.sectionTitles)) if (t.message) {
3291
- g.text = t.message, g.x = n.startx + (n.stopx - n.startx) / 2, g.y = n.sections[e].y + o + s, g.class = "loopText", g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.fontFamily = u, g.fontSize = d, g.fontWeight = f, g.wrap = n.wrap, hasKatex(g.text) ? (n.starty = n.sections[e].y, await drawKatex(m, g, n)) : drawText(m, g);
3296
+ g.text = t.message, g.x = n.startx + (n.stopx - n.startx) / 2, g.y = n.sections[e].y + o + s, g.class = "sectionTitle", g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.fontFamily = u, g.fontSize = d, g.fontWeight = f, g.wrap = n.wrap, hasKatex(g.text) ? (n.starty = n.sections[e].y, await drawKatex(m, g, n)) : drawText(m, g);
3292
3297
  let r = Math.round(_.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3293
3298
  n.sections[e].height += r - (o + s);
3294
3299
  }
@@ -3646,7 +3651,7 @@ async function boundMessage(e, t) {
3646
3651
  __name(boundMessage, "boundMessage");
3647
3652
  var drawMessage = /* @__PURE__ */ __name(async function(e, t, n, r, i, o) {
3648
3653
  let { startx: s, stopx: c, starty: l, message: u, type: d, sequenceIndex: m, sequenceVisible: h } = t, g = utils_default.calculateTextDimensions(u, messageFont(conf)), _ = getTextObj();
3649
- _.x = s, _.y = l + 10, _.width = c - s, _.class = "messageText", _.dy = "1em", _.text = u, _.fontFamily = conf.messageFontFamily, _.fontSize = conf.messageFontSize, _.fontWeight = conf.messageFontWeight, _.anchor = conf.messageAlign, _.valign = "center", _.textMargin = conf.wrapPadding, _.tspan = !1, hasKatex(_.text) ? await drawKatex(e, _, {
3654
+ _.x = Math.min(s, c), _.y = l + 10, _.width = Math.abs(c - s), _.class = "messageText", _.dy = "1em", _.text = u, _.fontFamily = conf.messageFontFamily, _.fontSize = conf.messageFontSize, _.fontWeight = conf.messageFontWeight, _.anchor = conf.messageAlign, _.valign = "center", _.textMargin = conf.wrapPadding, _.tspan = !1, hasKatex(_.text) ? await drawKatex(e, _, {
3650
3655
  startx: s,
3651
3656
  stopx: c,
3652
3657
  starty: n
@@ -3662,7 +3667,9 @@ var drawMessage = /* @__PURE__ */ __name(async function(e, t, n, r, i, o) {
3662
3667
  let a = d === r.db.LINETYPE.BIDIRECTIONAL_SOLID || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED, l = d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, u = hasCentralConnection(i, r), f = s, p = c;
3663
3668
  a ? (s < c ? f = s + 12 : (f = s - 6 + (u ? -5 : 0), f += i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), y.attr("x1", f)) : l ? (c > s ? p = c - 12 : (p = c - 6, f += i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), p += u ? 15 : 0, y.attr("x2", p), y.attr("x1", f)) : y.attr("x1", s + 6);
3664
3669
  let h = 0, g = s === c, _ = s <= c;
3665
- h = g ? t.fromBounds + 1 : l ? _ ? t.toBounds - 1 : t.fromBounds + 1 : _ ? t.fromBounds + 1 : t.toBounds - 1, e.append("line").attr("x1", h).attr("y1", n).attr("x2", h).attr("y2", n).attr("stroke-width", 0).attr("marker-start", "url(" + b + "#" + o + "-sequencenumber)"), e.append("text").attr("x", h).attr("y", n + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(m);
3670
+ h = g ? t.fromBounds + 1 : l ? _ ? t.toBounds - 1 : t.fromBounds + 1 : _ ? t.fromBounds + 1 : t.toBounds - 1;
3671
+ let v = "12px", x = m.toString().length;
3672
+ x > 5 ? v = "7px" : x > 3 && (v = "9px"), e.append("line").attr("x1", h).attr("y1", n).attr("x2", h).attr("y2", n).attr("stroke-width", 0).attr("marker-start", "url(" + b + "#" + o + "-sequencenumber)"), e.append("text").attr("x", h).attr("y", n + 4).attr("font-family", "sans-serif").attr("font-size", v).attr("text-anchor", "middle").attr("class", "sequenceNumber").text(m);
3666
3673
  }
3667
3674
  }, "drawMessage"), addActorRenderingData = /* @__PURE__ */ __name(function(e, t, n, r, i, o, s) {
3668
3675
  let c = 0, l = 0, u, d = 0;
@@ -3885,7 +3892,7 @@ var draw = /* @__PURE__ */ __name(async function(n, r, i, a) {
3885
3892
  a.db.LINETYPE.DOTTED_POINT,
3886
3893
  a.db.LINETYPE.BIDIRECTIONAL_SOLID,
3887
3894
  a.db.LINETYPE.BIDIRECTIONAL_DOTTED
3888
- ].includes(e.type) && (k += A), N++;
3895
+ ].includes(e.type) && (k = Math.round((k + A) * 100) / 100), N++;
3889
3896
  }
3890
3897
  log.debug("createdActors", g), log.debug("destroyedActors", _), await drawActors(m, h, y, !1, r, a, E);
3891
3898
  for (let e of j) await drawMessage(m, e.messageModel, e.lineStartY, a, e.msg, r);