@loopstack/loopstack-studio 0.28.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/rolldown_runtime.js +13 -15
- package/dist/components/dynamic-form/Form.js +49 -52
- package/dist/config.js +6 -0
- package/dist/features/debug/components/WorkflowFlowViewer.js +94 -81
- package/dist/features/debug/components/workflow-flow/StateNode.js +154 -79
- package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +43 -31
- package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +52 -51
- package/dist/features/debug/lib/edge-paths.js +45 -30
- package/dist/features/debug/lib/flow-types.js +2 -0
- package/dist/features/debug/lib/flow-utils.js +66 -64
- package/dist/features/documents/components/DocumentList.js +19 -18
- package/dist/features/workbench/WorkflowItem.js +4 -3
- package/dist/features/workbench/components/EmbedLogsContent.js +5 -0
- package/dist/features/workbench/components/PreviewEmptyState.js +10 -0
- package/dist/features/workbench/components/PreviewWorkbench.js +14 -0
- package/dist/features/workbench/components/RecentRunItem.js +48 -0
- package/dist/features/workbench/components/WorkflowForms.js +4 -3
- package/dist/features/workbench/hooks/useEmbedBridge.js +3 -0
- package/dist/features/workbench/hooks/useWorkflowData.js +9 -9
- package/dist/features/workbench/index.js +4 -0
- package/dist/features/workspaces/components/ExecutionTimeline.js +9 -8
- package/dist/loopstack-studio.css +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{architecture-YZFGNWBL.js → architecture-7EHR7CIX.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-7N4EOEYR.js → chunk-4EGX6M5U.js} +9 -13
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-KGLVRYIC.js → chunk-5DO6E6H7.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BR22UD5L.js +56 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-2KRD3SAO.js → chunk-FHYWG6QK.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-FOC6F5B3.js → chunk-MPE355IW.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js +24 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js +48 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js +20219 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js +19 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-67CJDMHE.js → chunk-UIBZB4QT.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js +25 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-FCH6USID.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{gitGraph-7Q5UKJZL.js → gitGraph-WXDBUCRP.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-J43DQDTF.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-YPE3B663.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-LRSECV5Y.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-GUYGQ44K.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{treeView-SZITEDCU.js → treeView-BLDUP644.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-LRROVOQU.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-L42UT6IY.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +24 -19
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +36 -26
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +1 -1
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +257 -254
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +19 -19
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +9 -9
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +3 -3
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +11 -11
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +5 -5
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +72 -72
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +1 -1
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +25 -25
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +109 -109
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +17 -17
- package/dist/node_modules/dompurify/dist/purify.es.js +293 -205
- package/dist/node_modules/es-toolkit/dist/_internal/globalThis.js +4 -0
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/memoize.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/clone.js +97 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +29 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/merge.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/mergeWith.js +49 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArray.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js +16 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js +5 -0
- package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -0
- package/dist/node_modules/es-toolkit/dist/object/clone.js +29 -0
- package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +114 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isBuffer.js +5 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +4 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +4 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +4 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +2 -2
- package/dist/node_modules/internmap/src/index.js +1 -1
- package/dist/node_modules/katex/dist/katex.js +379 -417
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +3 -3
- package/dist/node_modules/lodash-es/_assignMergeValue.js +1 -1
- package/dist/node_modules/lodash-es/_assignValue.js +1 -1
- package/dist/node_modules/lodash-es/_baseClone.js +9 -9
- package/dist/node_modules/lodash-es/_baseForOwn.js +1 -1
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +1 -1
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +6 -6
- package/dist/node_modules/lodash-es/_baseMerge.js +2 -2
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +7 -7
- package/dist/node_modules/lodash-es/_baseOrderBy.js +12 -12
- package/dist/node_modules/lodash-es/_baseRest.js +1 -1
- package/dist/node_modules/lodash-es/_baseSet.js +1 -1
- package/dist/node_modules/lodash-es/_baseSetToString.js +3 -3
- package/dist/node_modules/lodash-es/_baseToString.js +2 -2
- package/dist/node_modules/lodash-es/_baseUniq.js +1 -1
- package/dist/node_modules/lodash-es/_createRange.js +1 -1
- package/dist/node_modules/lodash-es/_createSet.js +3 -3
- package/dist/node_modules/lodash-es/_flatRest.js +1 -1
- package/dist/node_modules/lodash-es/_getAllKeys.js +2 -2
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +1 -1
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +1 -1
- package/dist/node_modules/lodash-es/_getTag.js +1 -1
- package/dist/node_modules/lodash-es/_hasPath.js +2 -2
- package/dist/node_modules/lodash-es/_initCloneByTag.js +1 -1
- package/dist/node_modules/lodash-es/_initCloneObject.js +1 -1
- package/dist/node_modules/lodash-es/_isFlattenable.js +1 -1
- package/dist/node_modules/lodash-es/_isIterateeCall.js +1 -1
- package/dist/node_modules/lodash-es/_isKey.js +1 -1
- package/dist/node_modules/lodash-es/_setToString.js +1 -1
- package/dist/node_modules/lodash-es/defaults.js +1 -1
- package/dist/node_modules/lodash-es/findIndex.js +2 -2
- package/dist/node_modules/lodash-es/forEach.js +1 -1
- package/dist/node_modules/lodash-es/forIn.js +1 -1
- package/dist/node_modules/lodash-es/isEmpty.js +2 -2
- package/dist/node_modules/lodash-es/isPlainObject.js +1 -1
- package/dist/node_modules/lodash-es/map.js +1 -1
- package/dist/node_modules/lodash-es/max.js +1 -1
- package/dist/node_modules/lodash-es/merge.js +3 -3
- package/dist/node_modules/lodash-es/min.js +1 -1
- package/dist/node_modules/lodash-es/minBy.js +1 -1
- package/dist/node_modules/lodash-es/reduce.js +1 -1
- package/dist/node_modules/lodash-es/toNumber.js +1 -1
- package/dist/node_modules/lodash-es/union.js +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{architectureDiagram-Q4EWVU46.js → architectureDiagram-3BPJPVTR.js} +310 -308
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{blockDiagram-DXYQGD6D.js → blockDiagram-GPEHLZMM.js} +215 -190
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-AHTNJAMY.js → c4Diagram-AAUBKEIU.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-EDXVE4YY.js → chunk-2J33WTMH.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5FUZZQ4R.js → chunk-3OPIFGDE.js} +48 -20
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5PVQY5BW.js → chunk-5ZQYHXKU.js} +8 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-4TB4RGXK.js → chunk-727SXJPM.js} +555 -459
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-OYMX7WX6.js → chunk-AQP2D5EJ.js} +155 -145
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ICPOFSXX.js → chunk-CSCIHK7Q.js} +106 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ENJZ2VHE.js → chunk-KSCS5N6A.js} +12 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ZZ45TVLE.js → chunk-L5ZTLDWV.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-336JU56O.js → chunk-LZXEDZCA.js} +5 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-YZCP3GAM.js → chunk-ND2GUHAM.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-X2U36JSP.js → chunk-NZK2D7GU.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-U2HBQHQK.js → chunk-O5CBEL6O.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-426QAEUC.js → chunk-WU5MYG2G.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-6PBFFD2Q.js → classDiagram-4FO5ZUOK.js} +11 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-v2-HSJHXN6E.js → classDiagram-v2-Q7XG4LA2.js} +11 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{dagre-KV5264BT.js → dagre-BM42HDAG.js} +8 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-MMDJMWI5.js → diagram-2AECGRRQ.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-5BDNPKRD.js → diagram-5GNKFQAL.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-KO2AKTUF.js +433 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-TYMM5635.js → diagram-LMA3HP47.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-G4DWMVQ6.js → diagram-OG6HWLK6.js} +5 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-SMLLAGMA.js → erDiagram-TEJ5UH35.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-DWJPFMVM.js → flowDiagram-I6XJVG4X.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ganttDiagram-T4ZO3ILL.js → ganttDiagram-6RSMTGT7.js} +7 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{gitGraphDiagram-UUTBAWPF.js → gitGraphDiagram-PVQCEYII.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{infoDiagram-42DDH7IO.js → infoDiagram-5YYISTIA.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ishikawaDiagram-UXIWVN3A.js → ishikawaDiagram-YF4QCWOH.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{journeyDiagram-VCZTEJTY.js → journeyDiagram-JHISSGLW.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-6JOO6SKY.js → kanban-definition-UN3LZRKU.js} +7 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-QFDTVHPH.js → mindmap-definition-RKZ34NQL.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{pieDiagram-DEJITSTG.js → pieDiagram-4H26LBE5.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-34T5L4WZ.js → quadrantDiagram-W4KKPZXB.js} +364 -337
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-MS252O5E.js → requirementDiagram-4Y6WPE33.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sankeyDiagram-XADWPNL6.js → sankeyDiagram-5OEKKPKP.js} +187 -138
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sequenceDiagram-FGHM5R23.js → sequenceDiagram-3UESZ5HK.js} +15 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-FHFEXIEX.js → stateDiagram-AJRCARHV.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-v2-QKLJ7IA2.js → stateDiagram-v2-BHNVJYJU.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{timeline-definition-GMOUNBTQ.js → timeline-definition-PNZ67QCA.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{vennDiagram-DHZGUBPP.js → vennDiagram-CIIHVFJN.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-YWT4CUSO.js +640 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{xychartDiagram-5P7HB3ND.js → xychartDiagram-2RQKCTM6.js} +4 -4
- package/dist/node_modules/mermaid/dist/mermaid.core.js +96 -70
- package/dist/node_modules/stylis/src/Enum.js +2 -2
- package/dist/node_modules/stylis/src/Middleware.js +9 -0
- package/dist/node_modules/stylis/src/Parser.js +55 -44
- package/dist/node_modules/stylis/src/Utility.js +9 -12
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/packages/contracts/dist/enums/index.js +4 -24
- package/dist/packages/contracts/dist/enums/registry.enum.js +9 -20
- package/dist/packages/contracts/dist/enums/sort-order.enum.js +5 -10
- package/dist/packages/contracts/dist/enums/user-type.enum.js +5 -10
- package/dist/packages/contracts/dist/enums/workflow-state.enum.js +5 -10
- package/dist/pages/EmbedWorkbenchPage.js +4 -3
- package/dist/pages/PreviewWorkbenchPage.js +126 -124
- package/dist/pages/StudioLandingPage.js +28 -72
- package/package.json +2 -2
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -23
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +0 -151
- package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -40
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +0 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -85
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -35
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -570
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -25
- package/dist/node_modules/@chevrotain/utils/lib/src/print.js +0 -9
- package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +0 -8
- package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -10
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +0 -28
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +0 -1197
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +0 -60
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +0 -29
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +0 -3
- package/dist/node_modules/chevrotain/lib/src/api.js +0 -10
- package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -10
- package/dist/node_modules/chevrotain/lib/src/parse/constants.js +0 -2
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -13
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -49
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -77
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -33
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -275
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -23
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -28
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -14
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -262
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -5
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -41
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -241
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -30
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -56
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -114
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -46
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -166
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -43
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -107
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -21
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -312
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -285
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -144
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -92
- package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -11
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +0 -437
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -9
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -253
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -152
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -15
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +0 -65
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -39
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -346
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +0 -194
- package/dist/node_modules/chevrotain-allstar/lib/dfa.js +0 -32
- package/dist/node_modules/chevrotain-allstar/lib/index.js +0 -1
- package/dist/node_modules/langium/lib/default-module.js +0 -85
- package/dist/node_modules/langium/lib/dependency-injection.js +0 -62
- package/dist/node_modules/langium/lib/documentation/comment-provider.js +0 -11
- package/dist/node_modules/langium/lib/documentation/documentation-provider.js +0 -36
- package/dist/node_modules/langium/lib/documentation/jsdoc.js +0 -303
- package/dist/node_modules/langium/lib/index.js +0 -182
- package/dist/node_modules/langium/lib/languages/generated/ast.js +0 -1089
- package/dist/node_modules/langium/lib/languages/grammar-config.js +0 -13
- package/dist/node_modules/langium/lib/parser/async-parser.js +0 -83
- package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +0 -7
- package/dist/node_modules/langium/lib/parser/cst-node-builder.js +0 -160
- package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
- package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +0 -11
- package/dist/node_modules/langium/lib/parser/langium-parser.js +0 -388
- package/dist/node_modules/langium/lib/parser/lexer.js +0 -50
- package/dist/node_modules/langium/lib/parser/parser-builder-base.js +0 -275
- package/dist/node_modules/langium/lib/parser/token-builder.js +0 -61
- package/dist/node_modules/langium/lib/parser/value-converter.js +0 -78
- package/dist/node_modules/langium/lib/references/linker.js +0 -190
- package/dist/node_modules/langium/lib/references/name-provider.js +0 -13
- package/dist/node_modules/langium/lib/references/references.js +0 -76
- package/dist/node_modules/langium/lib/references/scope-computation.js +0 -35
- package/dist/node_modules/langium/lib/references/scope-provider.js +0 -34
- package/dist/node_modules/langium/lib/references/scope.js +0 -73
- package/dist/node_modules/langium/lib/serializer/hydrator.js +0 -125
- package/dist/node_modules/langium/lib/serializer/json-serializer.js +0 -145
- package/dist/node_modules/langium/lib/service-registry.js +0 -37
- package/dist/node_modules/langium/lib/syntax-tree.js +0 -70
- package/dist/node_modules/langium/lib/utils/ast-utils.js +0 -157
- package/dist/node_modules/langium/lib/utils/caching.js +0 -91
- package/dist/node_modules/langium/lib/utils/cancellation.js +0 -5
- package/dist/node_modules/langium/lib/utils/collections.js +0 -85
- package/dist/node_modules/langium/lib/utils/cst-utils.js +0 -190
- package/dist/node_modules/langium/lib/utils/disposable.js +0 -8
- package/dist/node_modules/langium/lib/utils/errors.js +0 -12
- package/dist/node_modules/langium/lib/utils/event.js +0 -5
- package/dist/node_modules/langium/lib/utils/grammar-loader.js +0 -22
- package/dist/node_modules/langium/lib/utils/grammar-utils.js +0 -296
- package/dist/node_modules/langium/lib/utils/index.js +0 -53
- package/dist/node_modules/langium/lib/utils/promise-utils.js +0 -30
- package/dist/node_modules/langium/lib/utils/regexp-utils.js +0 -167
- package/dist/node_modules/langium/lib/utils/stream.js +0 -327
- package/dist/node_modules/langium/lib/utils/uri-utils.js +0 -107
- package/dist/node_modules/langium/lib/validation/document-validator.js +0 -210
- package/dist/node_modules/langium/lib/validation/validation-registry.js +0 -87
- package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +0 -57
- package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +0 -28
- package/dist/node_modules/langium/lib/workspace/configuration.js +0 -51
- package/dist/node_modules/langium/lib/workspace/document-builder.js +0 -201
- package/dist/node_modules/langium/lib/workspace/documents.js +0 -142
- package/dist/node_modules/langium/lib/workspace/file-system-provider.js +0 -34
- package/dist/node_modules/langium/lib/workspace/index-manager.js +0 -49
- package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
- package/dist/node_modules/langium/lib/workspace/workspace-lock.js +0 -42
- package/dist/node_modules/langium/lib/workspace/workspace-manager.js +0 -66
- package/dist/node_modules/lodash-es/flatMap.js +0 -7
- package/dist/node_modules/lodash-es/uniqBy.js +0 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +0 -574
- package/dist/node_modules/vscode-jsonrpc/browser.js +0 -7
- package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -52
- package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -120
- package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +0 -337
- package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -57
- package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -647
- package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -13
- package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +0 -64
- package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +0 -34
- package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -235
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -93
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -129
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -85
- package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -161
- package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -18
- package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -44
- package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -58
- package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +0 -28
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -36
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -12
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -31
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -33
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -35
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -674
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -126
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -24
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -31
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -42
- package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +0 -138
- package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -1084
- package/dist/node_modules/vscode-uri/lib/esm/index.js +0 -373
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode-codepoint.js +0 -0
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode.js +0 -0
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/generated/decode-data-html.js +0 -0
- /package/dist/node_modules/{unified/node_modules/is-plain-obj → is-plain-obj}/index.js +0 -0
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import merge_default from "../../../../lodash-es/merge.js";
|
|
2
|
-
import map_default from "../../../../lodash-es/map.js";
|
|
3
|
-
import min_default from "../../../../lodash-es/min.js";
|
|
4
|
-
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
5
|
-
import reduce_default from "../../../../lodash-es/reduce.js";
|
|
6
1
|
import last_default from "../../../../lodash-es/last.js";
|
|
2
|
+
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
7
3
|
import find_default from "../../../../lodash-es/find.js";
|
|
4
|
+
import map_default from "../../../../lodash-es/map.js";
|
|
8
5
|
import forIn_default from "../../../../lodash-es/forIn.js";
|
|
9
6
|
import values_default from "../../../../lodash-es/values.js";
|
|
10
7
|
import mapValues_default from "../../../../lodash-es/mapValues.js";
|
|
11
8
|
import max_default from "../../../../lodash-es/max.js";
|
|
9
|
+
import merge_default from "../../../../lodash-es/merge.js";
|
|
10
|
+
import min_default from "../../../../lodash-es/min.js";
|
|
12
11
|
import minBy_default from "../../../../lodash-es/minBy.js";
|
|
13
12
|
import range_default from "../../../../lodash-es/range.js";
|
|
13
|
+
import reduce_default from "../../../../lodash-es/reduce.js";
|
|
14
14
|
import sortBy_default from "../../../../lodash-es/sortBy.js";
|
|
15
15
|
import { Graph } from "../../graphlib/graph.js";
|
|
16
16
|
import "../../graphlib/index.js";
|
|
17
17
|
import { buildLayerMatrix } from "../util.js";
|
|
18
|
-
function findType1Conflicts(
|
|
19
|
-
var
|
|
20
|
-
function
|
|
21
|
-
var S = 0, C = 0, w =
|
|
22
|
-
return forEach_default(
|
|
23
|
-
var E = findOtherInnerSegmentNode(
|
|
24
|
-
(E ||
|
|
25
|
-
forEach_default(
|
|
26
|
-
var
|
|
27
|
-
(x < S || D < x) && !(
|
|
18
|
+
function findType1Conflicts(v, y) {
|
|
19
|
+
var b = {};
|
|
20
|
+
function x(y, x) {
|
|
21
|
+
var S = 0, C = 0, w = y.length, T = last_default(x);
|
|
22
|
+
return forEach_default(x, function(e, y) {
|
|
23
|
+
var E = findOtherInnerSegmentNode(v, e), D = E ? v.node(E).order : w;
|
|
24
|
+
(E || e === T) && (forEach_default(x.slice(C, y + 1), function(e) {
|
|
25
|
+
forEach_default(v.predecessors(e), function(_) {
|
|
26
|
+
var y = v.node(_), x = y.order;
|
|
27
|
+
(x < S || D < x) && !(y.dummy && v.node(e).dummy) && addConflict(b, _, e);
|
|
28
28
|
});
|
|
29
|
-
}), C =
|
|
30
|
-
}),
|
|
29
|
+
}), C = y + 1, S = D);
|
|
30
|
+
}), x;
|
|
31
31
|
}
|
|
32
|
-
return reduce_default(
|
|
32
|
+
return reduce_default(y, x), b;
|
|
33
33
|
}
|
|
34
|
-
function findType2Conflicts(e,
|
|
35
|
-
var
|
|
36
|
-
function
|
|
34
|
+
function findType2Conflicts(e, v) {
|
|
35
|
+
var y = {};
|
|
36
|
+
function b(v, b, x, S, C) {
|
|
37
37
|
var w;
|
|
38
38
|
forEach_default(range_default(b, x), function(b) {
|
|
39
|
-
w =
|
|
40
|
-
var
|
|
41
|
-
|
|
39
|
+
w = v[b], e.node(w).dummy && forEach_default(e.predecessors(w), function(_) {
|
|
40
|
+
var v = e.node(_);
|
|
41
|
+
v.dummy && (v.order < S || v.order > C) && addConflict(y, _, w);
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
var
|
|
47
|
-
return forEach_default(
|
|
48
|
-
if (e.node(
|
|
49
|
-
var T = e.predecessors(
|
|
50
|
-
T.length && (S = e.node(T[0]).order,
|
|
45
|
+
function x(v, y) {
|
|
46
|
+
var x = -1, S, C = 0;
|
|
47
|
+
return forEach_default(y, function(_, w) {
|
|
48
|
+
if (e.node(_).dummy === "border") {
|
|
49
|
+
var T = e.predecessors(_);
|
|
50
|
+
T.length && (S = e.node(T[0]).order, b(y, C, w, x, S), C = w, x = S);
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
}),
|
|
52
|
+
b(y, C, y.length, S, v.length);
|
|
53
|
+
}), y;
|
|
54
54
|
}
|
|
55
|
-
return reduce_default(
|
|
55
|
+
return reduce_default(v, x), y;
|
|
56
56
|
}
|
|
57
57
|
function findOtherInnerSegmentNode(e, _) {
|
|
58
58
|
if (e.node(_).dummy) return find_default(e.predecessors(_), function(_) {
|
|
@@ -85,23 +85,23 @@ function hasConflict(e, _, v) {
|
|
|
85
85
|
}
|
|
86
86
|
return !!e[_] && Object.prototype.hasOwnProperty.call(e[_], v);
|
|
87
87
|
}
|
|
88
|
-
function verticalAlignment(e,
|
|
88
|
+
function verticalAlignment(e, v, y, b) {
|
|
89
89
|
var x = {}, S = {}, C = {};
|
|
90
|
-
return forEach_default(
|
|
90
|
+
return forEach_default(v, function(e) {
|
|
91
91
|
forEach_default(e, function(e, _) {
|
|
92
92
|
x[e] = e, S[e] = e, C[e] = _;
|
|
93
93
|
});
|
|
94
|
-
}), forEach_default(
|
|
95
|
-
var
|
|
94
|
+
}), forEach_default(v, function(e) {
|
|
95
|
+
var v = -1;
|
|
96
96
|
forEach_default(e, function(e) {
|
|
97
|
-
var
|
|
98
|
-
if (
|
|
99
|
-
|
|
97
|
+
var _ = b(e);
|
|
98
|
+
if (_.length) {
|
|
99
|
+
_ = sortBy_default(_, function(e) {
|
|
100
100
|
return C[e];
|
|
101
101
|
});
|
|
102
|
-
for (var w = (
|
|
103
|
-
var D =
|
|
104
|
-
S[e] === e &&
|
|
102
|
+
for (var w = (_.length - 1) / 2, T = Math.floor(w), E = Math.ceil(w); T <= E; ++T) {
|
|
103
|
+
var D = _[T];
|
|
104
|
+
S[e] === e && v < C[D] && !hasConflict(y, e, D) && (S[D] = e, S[e] = x[e] = x[D], v = C[D]);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
});
|
|
@@ -110,8 +110,8 @@ function verticalAlignment(e, _, v, b) {
|
|
|
110
110
|
align: S
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
function horizontalCompaction(e,
|
|
114
|
-
var S = {}, C = buildBlockGraph(e,
|
|
113
|
+
function horizontalCompaction(e, v, y, b, x) {
|
|
114
|
+
var S = {}, C = buildBlockGraph(e, v, y, x), w = x ? "borderLeft" : "borderRight";
|
|
115
115
|
function T(e, _) {
|
|
116
116
|
for (var v = C.nodes(), y = v.pop(), b = {}; y;) b[y] ? e(y) : (b[y] = !0, v.push(y), v = v.concat(_(y))), y = v.pop();
|
|
117
117
|
}
|
|
@@ -127,18 +127,18 @@ function horizontalCompaction(e, _, v, b, x) {
|
|
|
127
127
|
v !== Infinity && y.borderType !== w && (S[_] = Math.max(S[_], v));
|
|
128
128
|
}
|
|
129
129
|
return T(E, C.predecessors.bind(C)), T(D, C.successors.bind(C)), forEach_default(b, function(e) {
|
|
130
|
-
S[e] = S[
|
|
130
|
+
S[e] = S[y[e]];
|
|
131
131
|
}), S;
|
|
132
132
|
}
|
|
133
|
-
function buildBlockGraph(e,
|
|
133
|
+
function buildBlockGraph(e, v, y, b) {
|
|
134
134
|
var x = new Graph(), S = e.graph(), C = sep(S.nodesep, S.edgesep, b);
|
|
135
|
-
return forEach_default(
|
|
135
|
+
return forEach_default(v, function(v) {
|
|
136
136
|
var b;
|
|
137
|
-
forEach_default(
|
|
138
|
-
var
|
|
139
|
-
if (x.setNode(
|
|
140
|
-
var S =
|
|
141
|
-
x.setEdge(S,
|
|
137
|
+
forEach_default(v, function(_) {
|
|
138
|
+
var v = y[_];
|
|
139
|
+
if (x.setNode(v), b) {
|
|
140
|
+
var S = y[b], w = x.edge(S, v);
|
|
141
|
+
x.setEdge(S, v, Math.max(C(e, _, b), w || 0));
|
|
142
142
|
}
|
|
143
143
|
b = _;
|
|
144
144
|
});
|
|
@@ -153,40 +153,40 @@ function findSmallestWidthAlignment(e, _) {
|
|
|
153
153
|
}), v - y;
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
function alignCoordinates(e,
|
|
157
|
-
var
|
|
158
|
-
forEach_default(["u", "d"], function(
|
|
159
|
-
forEach_default(["l", "r"], function(
|
|
160
|
-
var
|
|
161
|
-
if (D !==
|
|
156
|
+
function alignCoordinates(e, v) {
|
|
157
|
+
var y = values_default(v), b = min_default(y), w = max_default(y);
|
|
158
|
+
forEach_default(["u", "d"], function(y) {
|
|
159
|
+
forEach_default(["l", "r"], function(_) {
|
|
160
|
+
var E = y + _, D = e[E], O;
|
|
161
|
+
if (D !== v) {
|
|
162
162
|
var k = values_default(D);
|
|
163
|
-
O =
|
|
163
|
+
O = _ === "l" ? b - min_default(k) : w - max_default(k), O && (e[E] = mapValues_default(D, function(e) {
|
|
164
164
|
return e + O;
|
|
165
165
|
}));
|
|
166
166
|
}
|
|
167
167
|
});
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
function balance(e,
|
|
171
|
-
return mapValues_default(e.ul, function(
|
|
172
|
-
if (
|
|
170
|
+
function balance(e, _) {
|
|
171
|
+
return mapValues_default(e.ul, function(v, b) {
|
|
172
|
+
if (_) return e[_.toLowerCase()][b];
|
|
173
173
|
var x = sortBy_default(map_default(e, b));
|
|
174
174
|
return (x[1] + x[2]) / 2;
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
|
-
function positionX(
|
|
178
|
-
var
|
|
179
|
-
return forEach_default(["u", "d"], function(
|
|
180
|
-
|
|
181
|
-
|
|
177
|
+
function positionX(e) {
|
|
178
|
+
var v = buildLayerMatrix(e), b = merge_default(findType1Conflicts(e, v), findType2Conflicts(e, v)), C = {}, T;
|
|
179
|
+
return forEach_default(["u", "d"], function(w) {
|
|
180
|
+
T = w === "u" ? v : values_default(v).reverse(), forEach_default(["l", "r"], function(_) {
|
|
181
|
+
_ === "r" && (T = map_default(T, function(e) {
|
|
182
182
|
return values_default(e).reverse();
|
|
183
183
|
}));
|
|
184
|
-
var
|
|
185
|
-
|
|
184
|
+
var v = (w === "u" ? e.predecessors : e.successors).bind(e), E = verticalAlignment(e, T, b, v), D = horizontalCompaction(e, T, E.root, E.align, _ === "r");
|
|
185
|
+
_ === "r" && (D = mapValues_default(D, function(e) {
|
|
186
186
|
return -e;
|
|
187
|
-
})),
|
|
187
|
+
})), C[w + _] = D;
|
|
188
188
|
});
|
|
189
|
-
}), alignCoordinates(
|
|
189
|
+
}), alignCoordinates(C, findSmallestWidthAlignment(e, C)), balance(C, e.graph().align);
|
|
190
190
|
}
|
|
191
191
|
function sep(e, _, v) {
|
|
192
192
|
return function(y, b, x) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import map_default from "../../../../lodash-es/map.js";
|
|
2
1
|
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
2
|
+
import map_default from "../../../../lodash-es/map.js";
|
|
3
3
|
import forOwn_default from "../../../../lodash-es/forOwn.js";
|
|
4
4
|
import max_default from "../../../../lodash-es/max.js";
|
|
5
5
|
import { asNonCompoundGraph, buildLayerMatrix } from "../util.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import filter_default from "../../../../lodash-es/filter.js";
|
|
2
1
|
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
2
|
+
import filter_default from "../../../../lodash-es/filter.js";
|
|
3
3
|
import find_default from "../../../../lodash-es/find.js";
|
|
4
4
|
import minBy_default from "../../../../lodash-es/minBy.js";
|
|
5
5
|
import { simplify } from "../util.js";
|
|
@@ -15,24 +15,24 @@ function networkSimplex(e) {
|
|
|
15
15
|
initLowLimValues(d), initCutValues(d, e);
|
|
16
16
|
for (var f, p; f = leaveEdge(d);) p = enterEdge(d, e, f), exchangeEdges(d, e, f, p);
|
|
17
17
|
}
|
|
18
|
-
function initCutValues(
|
|
19
|
-
var p = postorder(
|
|
20
|
-
p = p.slice(0, p.length - 1), forEach_default(p, function(
|
|
21
|
-
assignCutValue(
|
|
18
|
+
function initCutValues(d, f) {
|
|
19
|
+
var p = postorder(d, d.nodes());
|
|
20
|
+
p = p.slice(0, p.length - 1), forEach_default(p, function(e) {
|
|
21
|
+
assignCutValue(d, f, e);
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
function assignCutValue(e, d, f) {
|
|
25
25
|
var p = e.node(f).parent;
|
|
26
26
|
e.edge(f, p).cutvalue = calcCutValue(e, d, f);
|
|
27
27
|
}
|
|
28
|
-
function calcCutValue(
|
|
29
|
-
var m =
|
|
30
|
-
return g ||= (h = !1, f.edge(m, p)), _ = g.weight, forEach_default(f.nodeEdges(p), function(
|
|
31
|
-
var g =
|
|
28
|
+
function calcCutValue(d, f, p) {
|
|
29
|
+
var m = d.node(p).parent, h = !0, g = f.edge(p, m), _ = 0;
|
|
30
|
+
return g ||= (h = !1, f.edge(m, p)), _ = g.weight, forEach_default(f.nodeEdges(p), function(e) {
|
|
31
|
+
var g = e.v === p, v = g ? e.w : e.v;
|
|
32
32
|
if (v !== m) {
|
|
33
|
-
var y = g === h, b = f.edge(
|
|
34
|
-
if (_ += y ? b : -b, isTreeEdge(
|
|
35
|
-
var x =
|
|
33
|
+
var y = g === h, b = f.edge(e).weight;
|
|
34
|
+
if (_ += y ? b : -b, isTreeEdge(d, p, v)) {
|
|
35
|
+
var x = d.edge(p, v).cutvalue;
|
|
36
36
|
_ += y ? -x : x;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -41,10 +41,10 @@ function calcCutValue(e, f, p) {
|
|
|
41
41
|
function initLowLimValues(e, d) {
|
|
42
42
|
arguments.length < 2 && (d = e.nodes()[0]), dfsAssignLowLim(e, {}, 1, d);
|
|
43
43
|
}
|
|
44
|
-
function dfsAssignLowLim(
|
|
45
|
-
var g = p, _ =
|
|
46
|
-
return f[m] = !0, forEach_default(
|
|
47
|
-
Object.prototype.hasOwnProperty.call(f,
|
|
44
|
+
function dfsAssignLowLim(d, f, p, m, h) {
|
|
45
|
+
var g = p, _ = d.node(m);
|
|
46
|
+
return f[m] = !0, forEach_default(d.neighbors(m), function(e) {
|
|
47
|
+
Object.prototype.hasOwnProperty.call(f, e) || (p = dfsAssignLowLim(d, f, p, e, m));
|
|
48
48
|
}), _.low = g, _.lim = p++, h ? _.parent = h : delete _.parent, p;
|
|
49
49
|
}
|
|
50
50
|
function leaveEdge(e) {
|
|
@@ -52,12 +52,12 @@ function leaveEdge(e) {
|
|
|
52
52
|
return e.edge(d).cutvalue < 0;
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
function enterEdge(
|
|
55
|
+
function enterEdge(e, f, m) {
|
|
56
56
|
var h = m.v, _ = m.w;
|
|
57
57
|
f.hasEdge(h, _) || (h = m.w, _ = m.v);
|
|
58
|
-
var v =
|
|
59
|
-
return v.lim > y.lim && (b = y, x = !0), minBy_default(filter_default(f.edges(), function(
|
|
60
|
-
return x === isDescendant(
|
|
58
|
+
var v = e.node(h), y = e.node(_), b = v, x = !1;
|
|
59
|
+
return v.lim > y.lim && (b = y, x = !0), minBy_default(filter_default(f.edges(), function(d) {
|
|
60
|
+
return x === isDescendant(e, e.node(d.v), b) && x !== isDescendant(e, e.node(d.w), b);
|
|
61
61
|
}), function(e) {
|
|
62
62
|
return slack(f, e);
|
|
63
63
|
});
|
|
@@ -66,13 +66,13 @@ function exchangeEdges(e, d, f, p) {
|
|
|
66
66
|
var m = f.v, h = f.w;
|
|
67
67
|
e.removeEdge(m, h), e.setEdge(p.v, p.w, {}), initLowLimValues(e), initCutValues(e, d), updateRanks(e, d);
|
|
68
68
|
}
|
|
69
|
-
function updateRanks(
|
|
70
|
-
var m = preorder(
|
|
69
|
+
function updateRanks(d, p) {
|
|
70
|
+
var m = preorder(d, find_default(d.nodes(), function(e) {
|
|
71
71
|
return !p.node(e).parent;
|
|
72
72
|
}));
|
|
73
|
-
m = m.slice(1), forEach_default(m, function(
|
|
74
|
-
var f =
|
|
75
|
-
m || (m = p.edge(f,
|
|
73
|
+
m = m.slice(1), forEach_default(m, function(e) {
|
|
74
|
+
var f = d.node(e).parent, m = p.edge(e, f), h = !1;
|
|
75
|
+
m || (m = p.edge(f, e), h = !0), p.node(e).rank = p.node(f).rank + (h ? m.minlen : -m.minlen);
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
function isTreeEdge(e, d, f) {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
+
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
1
2
|
import map_default from "../../../../lodash-es/map.js";
|
|
2
3
|
import min_default from "../../../../lodash-es/min.js";
|
|
3
|
-
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
4
4
|
function longestPath(r) {
|
|
5
5
|
var i = {};
|
|
6
|
-
function a(
|
|
7
|
-
var o = r.node(
|
|
8
|
-
if (Object.prototype.hasOwnProperty.call(i,
|
|
9
|
-
i[
|
|
10
|
-
var s = min_default(map_default(r.outEdges(
|
|
6
|
+
function a(e) {
|
|
7
|
+
var o = r.node(e);
|
|
8
|
+
if (Object.prototype.hasOwnProperty.call(i, e)) return o.rank;
|
|
9
|
+
i[e] = !0;
|
|
10
|
+
var s = min_default(map_default(r.outEdges(e), function(e) {
|
|
11
11
|
return a(e.w) - r.edge(e).minlen;
|
|
12
12
|
}));
|
|
13
13
|
return (s === Infinity || s == null) && (s = 0), o.rank = s;
|
|
14
14
|
}
|
|
15
15
|
forEach_default(r.sources(), a);
|
|
16
16
|
}
|
|
17
|
-
function slack(e,
|
|
18
|
-
return e.node(
|
|
17
|
+
function slack(e, n) {
|
|
18
|
+
return e.node(n.w).rank - e.node(n.v).rank - e.edge(n).minlen;
|
|
19
19
|
}
|
|
20
20
|
export { longestPath, slack };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import map_default from "../../../lodash-es/map.js";
|
|
2
|
-
import min_default from "../../../lodash-es/min.js";
|
|
3
|
-
import forEach_default from "../../../lodash-es/forEach.js";
|
|
4
1
|
import now_default from "../../../lodash-es/now.js";
|
|
2
|
+
import forEach_default from "../../../lodash-es/forEach.js";
|
|
3
|
+
import map_default from "../../../lodash-es/map.js";
|
|
5
4
|
import has_default from "../../../lodash-es/has.js";
|
|
6
5
|
import isUndefined_default from "../../../lodash-es/isUndefined.js";
|
|
7
6
|
import max_default from "../../../lodash-es/max.js";
|
|
7
|
+
import min_default from "../../../lodash-es/min.js";
|
|
8
8
|
import range_default from "../../../lodash-es/range.js";
|
|
9
9
|
import uniqueId_default from "../../../lodash-es/uniqueId.js";
|
|
10
10
|
import { Graph } from "../graphlib/graph.js";
|
|
@@ -17,27 +17,27 @@ function addDummyNode(e, p, m, h) {
|
|
|
17
17
|
return m.dummy = p, e.setNode(g, m), g;
|
|
18
18
|
}
|
|
19
19
|
function simplify(e) {
|
|
20
|
-
var
|
|
21
|
-
return forEach_default(e.nodes(), function(
|
|
22
|
-
|
|
23
|
-
}), forEach_default(e.edges(), function(
|
|
24
|
-
var h =
|
|
20
|
+
var m = new Graph().setGraph(e.graph());
|
|
21
|
+
return forEach_default(e.nodes(), function(p) {
|
|
22
|
+
m.setNode(p, e.node(p));
|
|
23
|
+
}), forEach_default(e.edges(), function(p) {
|
|
24
|
+
var h = m.edge(p.v, p.w) || {
|
|
25
25
|
weight: 0,
|
|
26
26
|
minlen: 1
|
|
27
|
-
}, g = e.edge(
|
|
28
|
-
|
|
27
|
+
}, g = e.edge(p);
|
|
28
|
+
m.setEdge(p.v, p.w, {
|
|
29
29
|
weight: h.weight + g.weight,
|
|
30
30
|
minlen: Math.max(h.minlen, g.minlen)
|
|
31
31
|
});
|
|
32
|
-
}),
|
|
32
|
+
}), m;
|
|
33
33
|
}
|
|
34
34
|
function asNonCompoundGraph(e) {
|
|
35
|
-
var
|
|
36
|
-
return forEach_default(e.nodes(), function(
|
|
37
|
-
e.children(
|
|
38
|
-
}), forEach_default(e.edges(), function(
|
|
39
|
-
|
|
40
|
-
}),
|
|
35
|
+
var m = new Graph({ multigraph: e.isMultigraph() }).setGraph(e.graph());
|
|
36
|
+
return forEach_default(e.nodes(), function(p) {
|
|
37
|
+
e.children(p).length || m.setNode(p, e.node(p));
|
|
38
|
+
}), forEach_default(e.edges(), function(p) {
|
|
39
|
+
m.setEdge(p, e.edge(p));
|
|
40
|
+
}), m;
|
|
41
41
|
}
|
|
42
42
|
function intersectRect(e, p) {
|
|
43
43
|
var m = e.x, h = e.y, g = p.x - m, _ = p.y - h, v = e.width / 2, y = e.height / 2;
|
|
@@ -48,36 +48,36 @@ function intersectRect(e, p) {
|
|
|
48
48
|
y: h + x
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
function buildLayerMatrix(
|
|
52
|
-
var h = map_default(range_default(maxRank(
|
|
51
|
+
function buildLayerMatrix(e) {
|
|
52
|
+
var h = map_default(range_default(maxRank(e) + 1), function() {
|
|
53
53
|
return [];
|
|
54
54
|
});
|
|
55
|
-
return forEach_default(
|
|
56
|
-
var m =
|
|
57
|
-
isUndefined_default(
|
|
55
|
+
return forEach_default(e.nodes(), function(p) {
|
|
56
|
+
var m = e.node(p), _ = m.rank;
|
|
57
|
+
isUndefined_default(_) || (h[_][m.order] = p);
|
|
58
58
|
}), h;
|
|
59
59
|
}
|
|
60
|
-
function normalizeRanks(
|
|
61
|
-
var
|
|
62
|
-
return
|
|
60
|
+
function normalizeRanks(e) {
|
|
61
|
+
var g = min_default(map_default(e.nodes(), function(p) {
|
|
62
|
+
return e.node(p).rank;
|
|
63
63
|
}));
|
|
64
|
-
forEach_default(
|
|
65
|
-
var
|
|
66
|
-
has_default(
|
|
64
|
+
forEach_default(e.nodes(), function(p) {
|
|
65
|
+
var m = e.node(p);
|
|
66
|
+
has_default(m, "rank") && (m.rank -= g);
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
function removeEmptyRanks(
|
|
70
|
-
var
|
|
71
|
-
return
|
|
72
|
-
})),
|
|
73
|
-
forEach_default(
|
|
74
|
-
var
|
|
75
|
-
|
|
69
|
+
function removeEmptyRanks(e) {
|
|
70
|
+
var h = min_default(map_default(e.nodes(), function(p) {
|
|
71
|
+
return e.node(p).rank;
|
|
72
|
+
})), _ = [];
|
|
73
|
+
forEach_default(e.nodes(), function(p) {
|
|
74
|
+
var m = e.node(p).rank - h;
|
|
75
|
+
_[m] || (_[m] = []), _[m].push(p);
|
|
76
76
|
});
|
|
77
|
-
var y = 0, b =
|
|
78
|
-
forEach_default(
|
|
79
|
-
isUndefined_default(
|
|
80
|
-
|
|
77
|
+
var y = 0, b = e.graph().nodeRankFactor;
|
|
78
|
+
forEach_default(_, function(m, h) {
|
|
79
|
+
isUndefined_default(m) && h % b !== 0 ? --y : y && forEach_default(m, function(p) {
|
|
80
|
+
e.node(p).rank += y;
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
83
|
}
|
|
@@ -88,27 +88,27 @@ function addBorderNode(e, p, m, h) {
|
|
|
88
88
|
};
|
|
89
89
|
return arguments.length >= 4 && (g.rank = m, g.order = h), addDummyNode(e, "border", g, p);
|
|
90
90
|
}
|
|
91
|
-
function maxRank(
|
|
92
|
-
return max_default(map_default(
|
|
93
|
-
var m =
|
|
91
|
+
function maxRank(e) {
|
|
92
|
+
return max_default(map_default(e.nodes(), function(p) {
|
|
93
|
+
var m = e.node(p).rank;
|
|
94
94
|
if (!isUndefined_default(m)) return m;
|
|
95
95
|
}));
|
|
96
96
|
}
|
|
97
|
-
function partition(e,
|
|
97
|
+
function partition(e, m) {
|
|
98
98
|
var h = {
|
|
99
99
|
lhs: [],
|
|
100
100
|
rhs: []
|
|
101
101
|
};
|
|
102
102
|
return forEach_default(e, function(e) {
|
|
103
|
-
|
|
103
|
+
m(e) ? h.lhs.push(e) : h.rhs.push(e);
|
|
104
104
|
}), h;
|
|
105
105
|
}
|
|
106
|
-
function time(
|
|
107
|
-
var
|
|
106
|
+
function time(p, m) {
|
|
107
|
+
var h = now_default();
|
|
108
108
|
try {
|
|
109
|
-
return
|
|
109
|
+
return m();
|
|
110
110
|
} finally {
|
|
111
|
-
console.log(
|
|
111
|
+
console.log(p + " time: " + (now_default() - h) + "ms");
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
function notime(e, p) {
|