@loopstack/loopstack-studio 0.25.0 → 0.25.2
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/components/ai-elements/message.js +2 -2
- package/dist/components/ai-elements/reasoning.js +9 -9
- package/dist/loopstack-studio.css +1 -1
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +2 -5
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +69 -72
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{architecture-7HQA4BMR.js → architecture-YZFGNWBL.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-TQ3KTPDO.js → chunk-2KRD3SAO.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-4F5CHEZ2.js → chunk-67CJDMHE.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-UMXZTB3W.js → chunk-7N4EOEYR.js} +5 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-PL6DKKU2.js → chunk-AA7GKIK3.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +23 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-SJTYNZTY.js → chunk-FOC6F5B3.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +1197 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-FRFDVMJY.js → chunk-KGLVRYIC.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-B2363JML.js → chunk-LIHQZDEY.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +29 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{gitGraph-G5XIXVHT.js → gitGraph-7Q5UKJZL.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +27 -17
- package/dist/node_modules/@upsetjs/venn.js/build/venn.esm.js +903 -0
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +76 -75
- package/dist/node_modules/@xyflow/system/dist/esm/index.js +30 -28
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +31 -40
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +23 -26
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +12 -13
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +181 -205
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +11 -13
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +12 -13
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +8 -9
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +176 -183
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +17 -19
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +153 -160
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +10 -12
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +36 -38
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +37 -45
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +12 -14
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +80 -86
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +6 -2
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +39 -41
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +7 -8
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +69 -70
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +215 -205
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +76 -76
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +29 -39
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +252 -274
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +93 -106
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +61 -61
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +31 -41
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +15 -18
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +226 -226
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +17 -17
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +17 -14
- 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 +61 -61
- 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 +67 -67
- package/dist/node_modules/katex/dist/katex.js +1256 -1209
- package/dist/node_modules/khroma/dist/methods/transparentize.js +3 -0
- package/dist/node_modules/lodash-es/_baseClone.js +2 -2
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +6 -6
- package/dist/node_modules/lodash-es/_baseToString.js +1 -1
- package/dist/node_modules/lodash-es/_baseUniq.js +1 -1
- package/dist/node_modules/lodash-es/_createSet.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/findIndex.js +2 -2
- package/dist/node_modules/lodash-es/flatMap.js +1 -1
- package/dist/node_modules/lodash-es/forEach.js +1 -1
- package/dist/node_modules/lodash-es/max.js +1 -1
- 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/mermaid/dist/chunks/mermaid.core/architectureDiagram-Q4EWVU46.js +691 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{blockDiagram-VD42YOAC.js → blockDiagram-DXYQGD6D.js} +183 -157
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-YG6GDRKO.js → c4Diagram-AHTNJAMY.js} +65 -63
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-336JU56O.js +47 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-EXTU4WIE.js → chunk-426QAEUC.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-B4BG7PRW.js → chunk-4TB4RGXK.js} +533 -393
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js +3638 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-S3R3BYOJ.js → chunk-5PVQY5BW.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-HN2XXSSU.js → chunk-BSJP7CBP.js} +20 -14
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-QN33PNHL.js → chunk-EDXVE4YY.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js +568 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js +2320 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-DI55MBZ5.js → chunk-OYMX7WX6.js} +35 -21
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.js +272 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ATLVNIR6.js → chunk-X2U36JSP.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-MI3HLSF2.js → chunk-XPW4576I.js} +11 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.js +60 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.js +30 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-2ON5EDUG.js → classDiagram-6PBFFD2Q.js} +12 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-v2-WZHVMYZB.js → classDiagram-v2-HSJHXN6E.js} +12 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{dagre-6UL2VRFP.js → dagre-KV5264BT.js} +8 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.js +99 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-PSM6KHXK.js → diagram-G4DWMVQ6.js} +20 -23
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.js +211 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-S2PKOQOG.js → diagram-TYMM5635.js} +4 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-Q2GNP2WA.js → erDiagram-SMLLAGMA.js} +486 -386
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-NV44I4VS.js → flowDiagram-DWJPFMVM.js} +915 -898
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ganttDiagram-JELNMOA3.js → ganttDiagram-T4ZO3ILL.js} +59 -29
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.js +728 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-42DDH7IO.js +17 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-UXIWVN3A.js +714 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{journeyDiagram-XKPGCS4Q.js → journeyDiagram-VCZTEJTY.js} +32 -32
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-3W4ZIXB7.js → kanban-definition-6JOO6SKY.js} +13 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-VGOIOE7T.js → mindmap-definition-QFDTVHPH.js} +105 -59
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.js +117 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-AYHSOK5B.js → quadrantDiagram-34T5L4WZ.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-UZGBJVZJ.js → requirementDiagram-MS252O5E.js} +49 -19
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sankeyDiagram-TZEHDZUN.js → sankeyDiagram-XADWPNL6.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js +4155 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-FKZM4ZOC.js → stateDiagram-FHFEXIEX.js} +12 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-v2-4FDKWEC3.js → stateDiagram-v2-QKLJ7IA2.js} +11 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.js +1071 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-DHZGUBPP.js +959 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +574 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{xychartDiagram-PRI3JC2R.js → xychartDiagram-5P7HB3ND.js} +38 -35
- package/dist/node_modules/mermaid/dist/mermaid.core.js +235 -192
- package/dist/node_modules/nanoid/url-alphabet/index.js +1 -1
- package/dist/node_modules/remend/dist/index.js +333 -264
- package/dist/node_modules/streamdown/dist/chunk-BO2N2NFS.js +2498 -0
- package/dist/node_modules/streamdown/dist/highlighted-body-OFNGDK62.js +35 -0
- package/dist/node_modules/streamdown/dist/index.js +1 -1
- package/dist/node_modules/streamdown/dist/mermaid-GHXKKRXX.js +3 -0
- package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +672 -667
- package/dist/pages/DashboardPage.js +3 -3
- package/package.json +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TCCFYFTB.js +0 -787
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-VBDWY6EO.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-DYOGHKS2.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-VRWISCQL.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-ZZBFDIW7.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-GDKQZRPO.js +0 -3
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +0 -16
- package/dist/node_modules/lodash-es/_arrayAggregator.js +0 -9
- package/dist/node_modules/lodash-es/_arrayEvery.js +0 -6
- package/dist/node_modules/lodash-es/_baseAggregator.js +0 -8
- package/dist/node_modules/lodash-es/_baseDifference.js +0 -22
- package/dist/node_modules/lodash-es/_baseEvery.js +0 -9
- package/dist/node_modules/lodash-es/_baseIsRegExp.js +0 -8
- package/dist/node_modules/lodash-es/_baseSlice.js +0 -8
- package/dist/node_modules/lodash-es/_baseSome.js +0 -9
- package/dist/node_modules/lodash-es/_createAggregator.js +0 -12
- package/dist/node_modules/lodash-es/assign.js +0 -14
- package/dist/node_modules/lodash-es/compact.js +0 -9
- package/dist/node_modules/lodash-es/difference.js +0 -8
- package/dist/node_modules/lodash-es/drop.js +0 -8
- package/dist/node_modules/lodash-es/dropRight.js +0 -8
- package/dist/node_modules/lodash-es/every.js +0 -11
- package/dist/node_modules/lodash-es/groupBy.js +0 -6
- package/dist/node_modules/lodash-es/head.js +0 -5
- package/dist/node_modules/lodash-es/includes.js +0 -13
- package/dist/node_modules/lodash-es/indexOf.js +0 -11
- package/dist/node_modules/lodash-es/isRegExp.js +0 -5
- package/dist/node_modules/lodash-es/negate.js +0 -16
- package/dist/node_modules/lodash-es/pickBy.js +0 -15
- package/dist/node_modules/lodash-es/reject.js +0 -10
- package/dist/node_modules/lodash-es/some.js +0 -11
- package/dist/node_modules/lodash-es/uniq.js +0 -6
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.js +0 -673
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +0 -1547
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.js +0 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DR5Q36YT.js +0 -135
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.js +0 -247
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.js +0 -3516
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.js +0 -39
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.js +0 -497
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.js +0 -55
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.js +0 -211
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-V2S2FVAM.js +0 -621
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-HS3SLOUP.js +0 -18
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.js +0 -117
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.js +0 -3560
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.js +0 -833
- package/dist/node_modules/streamdown/dist/chunk-RLXIAIE6.js +0 -2189
- package/dist/node_modules/streamdown/dist/highlighted-body-B3W2YXNL.js +0 -33
- package/dist/node_modules/streamdown/dist/mermaid-3ZIDBTTL.js +0 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import filter_default from "../../lodash-es/filter.js";
|
|
2
|
-
import map_default from "../../lodash-es/map.js";
|
|
3
1
|
import { Alternation, NonTerminal, Option, Repetition, RepetitionMandatory, RepetitionMandatoryWithSeparator, RepetitionWithSeparator, Terminal } from "../../@chevrotain/gast/lib/src/model.js";
|
|
4
2
|
import "../../chevrotain/lib/src/api.js";
|
|
3
|
+
import map_default from "../../lodash-es/map.js";
|
|
4
|
+
import filter_default from "../../lodash-es/filter.js";
|
|
5
5
|
function buildATNKey(u, A, j) {
|
|
6
6
|
return `${u.name}_${A}_${j}`;
|
|
7
7
|
}
|
|
@@ -55,8 +55,8 @@ function createRuleStartAndStopATNStates(u, A) {
|
|
|
55
55
|
N.stop = P, u.ruleToStartState.set(j, N), u.ruleToStopState.set(j, P);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function atom(
|
|
59
|
-
return z instanceof Terminal ? tokenRef(
|
|
58
|
+
function atom(L, R, z) {
|
|
59
|
+
return z instanceof Terminal ? tokenRef(L, R, z.terminalType, z) : z instanceof NonTerminal ? ruleRef(L, R, z) : z instanceof Alternation ? alternation(L, R, z) : z instanceof Option ? option(L, R, z) : z instanceof Repetition ? repetition(L, R, z) : z instanceof RepetitionWithSeparator ? repetitionSep(L, R, z) : z instanceof RepetitionMandatory ? repetitionMandatory(L, R, z) : z instanceof RepetitionMandatoryWithSeparator ? repetitionMandatorySep(L, R, z) : block(L, R, z);
|
|
60
60
|
}
|
|
61
61
|
function repetition(u, A, j) {
|
|
62
62
|
let M = newState(u, A, j, { type: 5 });
|
|
@@ -74,17 +74,17 @@ function repetitionMandatorySep(u, A, j) {
|
|
|
74
74
|
let M = newState(u, A, j, { type: 4 });
|
|
75
75
|
return defineDecisionState(u, M), plus(u, A, j, makeAlts(u, A, M, j, block(u, A, j)), tokenRef(u, A, j.separator, j));
|
|
76
76
|
}
|
|
77
|
-
function alternation(u,
|
|
78
|
-
let
|
|
79
|
-
return defineDecisionState(u,
|
|
77
|
+
function alternation(u, A, j) {
|
|
78
|
+
let M = newState(u, A, j, { type: 1 });
|
|
79
|
+
return defineDecisionState(u, M), makeAlts(u, A, M, j, ...map_default(j.definition, (j) => atom(u, A, j)));
|
|
80
80
|
}
|
|
81
81
|
function option(u, A, j) {
|
|
82
82
|
let M = newState(u, A, j, { type: 1 });
|
|
83
83
|
return defineDecisionState(u, M), optional(u, A, j, makeAlts(u, A, M, j, block(u, A, j)));
|
|
84
84
|
}
|
|
85
|
-
function block(
|
|
86
|
-
let
|
|
87
|
-
return
|
|
85
|
+
function block(u, A, j) {
|
|
86
|
+
let M = filter_default(map_default(j.definition, (j) => atom(u, A, j)), (u) => u !== void 0);
|
|
87
|
+
return M.length === 1 ? M[0] : M.length === 0 ? void 0 : makeBlock(u, M);
|
|
88
88
|
}
|
|
89
89
|
function plus(u, A, j, M, N) {
|
|
90
90
|
let P = M.left, F = M.right, I = newState(u, A, j, { type: 11 });
|
|
@@ -124,13 +124,13 @@ function makeAlts(u, A, j, M, ...N) {
|
|
|
124
124
|
};
|
|
125
125
|
return u.decisionMap[buildATNKey(A, getProdType(M), M.idx)] = j, F;
|
|
126
126
|
}
|
|
127
|
-
function getProdType(
|
|
128
|
-
if (
|
|
129
|
-
if (
|
|
130
|
-
if (
|
|
131
|
-
if (
|
|
132
|
-
if (
|
|
133
|
-
if (
|
|
127
|
+
function getProdType(A) {
|
|
128
|
+
if (A instanceof Alternation) return "Alternation";
|
|
129
|
+
if (A instanceof Option) return "Option";
|
|
130
|
+
if (A instanceof Repetition) return "Repetition";
|
|
131
|
+
if (A instanceof RepetitionWithSeparator) return "RepetitionWithSeparator";
|
|
132
|
+
if (A instanceof RepetitionMandatory) return "RepetitionMandatory";
|
|
133
|
+
if (A instanceof RepetitionMandatoryWithSeparator) return "RepetitionMandatoryWithSeparator";
|
|
134
134
|
throw Error("Invalid production type encountered");
|
|
135
135
|
}
|
|
136
136
|
function makeBlock(u, A) {
|
|
@@ -5588,13 +5588,16 @@ var noninf = function(e) {
|
|
|
5588
5588
|
}
|
|
5589
5589
|
}, updateBoundsFromMiter = function(e, t, n, r, a, o) {
|
|
5590
5590
|
if (!(n === 0 || r <= 0 || a === "inside")) {
|
|
5591
|
-
var s = t.cy()
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
o,
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5591
|
+
var s = t.cy().renderer(), c = s.nodeShapes[s.getNodeShape(t)];
|
|
5592
|
+
if (c) {
|
|
5593
|
+
var l = t.position(), u = l.x, d = l.y, f = t.width(), m = t.height();
|
|
5594
|
+
c.hasMiterBounds ? (a === "center" && (r /= 2), updateBoundsFromBox(e, c.miterBounds(u, d, f, m, r))) : o != null && o > 0 && expandBoundingBoxSides(e, [
|
|
5595
|
+
o,
|
|
5596
|
+
o,
|
|
5597
|
+
o,
|
|
5598
|
+
o
|
|
5599
|
+
]);
|
|
5600
|
+
}
|
|
5598
5601
|
}
|
|
5599
5602
|
}, updateBoundsFromMiterBorder = function(e, t) {
|
|
5600
5603
|
if (!t.cy().headless()) {
|
|
@@ -7089,7 +7092,7 @@ elesfn$1.instanceString = function() {
|
|
|
7089
7092
|
if (h.isEdge()) {
|
|
7090
7093
|
for (var S = h, C = ["source", "target"], w = C.length, T = !1, E = 0; E < w; E++) {
|
|
7091
7094
|
var D = C[E], O = _[D];
|
|
7092
|
-
number$1(O) && (O = _[D] = "" + _[D]), O == null || O === "" ? (error("Can not create edge `" + v + "` with unspecified " + D), T = !0) : r.hasElementWithId(O) || (error("Can not create edge `" + v + "` with
|
|
7095
|
+
number$1(O) && (O = _[D] = "" + _[D]), O == null || O === "" ? (error("Can not create edge `" + v + "` with unspecified " + D), T = !0) : r.hasElementWithId(O) || (error("Can not create edge `" + v + "` with nonexistent " + D + " `" + O + "`"), T = !0);
|
|
7093
7096
|
}
|
|
7094
7097
|
if (T) {
|
|
7095
7098
|
m();
|
|
@@ -15934,8 +15937,8 @@ function modelToRenderedPosition(e, t, n, r, a) {
|
|
|
15934
15937
|
var o = r * n + t.x, s = a * n + t.y;
|
|
15935
15938
|
return s = Math.round(e.canvasHeight - s), [o, s];
|
|
15936
15939
|
}
|
|
15937
|
-
function isSimpleShape(e) {
|
|
15938
|
-
return e.pstyle("background-fill").value !== "solid" || e.pstyle("background-image").strValue !== "none" ? !1 : e.pstyle("border-width").value === 0 || e.pstyle("border-opacity").value === 0 ? !0 : e.pstyle("border-style").value === "solid";
|
|
15940
|
+
function isSimpleShape(e, t) {
|
|
15941
|
+
return t.picking ? !0 : e.pstyle("background-fill").value !== "solid" || e.pstyle("background-image").strValue !== "none" ? !1 : e.pstyle("border-width").value === 0 || e.pstyle("border-opacity").value === 0 ? !0 : e.pstyle("border-style").value === "solid";
|
|
15939
15942
|
}
|
|
15940
15943
|
function arrayEqual(e, t) {
|
|
15941
15944
|
if (e.length !== t.length) return !1;
|
|
@@ -17071,7 +17074,7 @@ var AtlasManager = /* @__PURE__ */ function() {
|
|
|
17071
17074
|
var r = this.simpleShapeOptions.get(n);
|
|
17072
17075
|
if (this._isVisible(e, r)) {
|
|
17073
17076
|
var a = r.shapeProps, o = this._getVertTypeForShape(e, a.shape);
|
|
17074
|
-
if (o === void 0 || r.isSimple && !r.isSimple(e)) {
|
|
17077
|
+
if (o === void 0 || r.isSimple && !r.isSimple(e, this.renderTarget)) {
|
|
17075
17078
|
this.drawTexture(e, t, n);
|
|
17076
17079
|
return;
|
|
17077
17080
|
}
|
|
@@ -17081,8 +17084,8 @@ var AtlasManager = /* @__PURE__ */ function() {
|
|
|
17081
17084
|
u[0] = l, u[1] = l, u[2] = l, u[3] = l, o === BOTTOM_ROUND_RECTANGLE && (u[0] = 0, u[2] = 0);
|
|
17082
17085
|
}
|
|
17083
17086
|
indexToVec4(t, this.indexBuffer.getView(s));
|
|
17084
|
-
var d = e.pstyle(a.
|
|
17085
|
-
toWebGLColor(
|
|
17087
|
+
var d = this.renderTarget.picking ? 1 : e.pstyle(a.opacity).value, f = e.pstyle(a.color).value;
|
|
17088
|
+
toWebGLColor(f, d, this.colorBuffer.getView(s));
|
|
17086
17089
|
var m = this.lineWidthBuffer.getView(s);
|
|
17087
17090
|
if (m[0] = 0, m[1] = 0, a.border) {
|
|
17088
17091
|
var h = e.pstyle("border-width").value;
|
|
@@ -18087,7 +18090,7 @@ sheetfn.instanceString = function() {
|
|
|
18087
18090
|
}
|
|
18088
18091
|
return e;
|
|
18089
18092
|
};
|
|
18090
|
-
var version = "3.33.
|
|
18093
|
+
var version = "3.33.2", cytoscape = function(e) {
|
|
18091
18094
|
if (e === void 0 && (e = {}), plainObject(e)) return new Core(e);
|
|
18092
18095
|
if (string(e)) return extension.apply(extension, arguments);
|
|
18093
18096
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import constant_default from "../../../lodash-es/constant.js";
|
|
2
|
+
import map_default from "../../../lodash-es/map.js";
|
|
2
3
|
import flatten_default from "../../../lodash-es/flatten.js";
|
|
3
4
|
import forEach_default from "../../../lodash-es/forEach.js";
|
|
4
|
-
import map_default from "../../../lodash-es/map.js";
|
|
5
5
|
import range_default from "../../../lodash-es/range.js";
|
|
6
6
|
import { Graph } from "../graphlib/graph.js";
|
|
7
7
|
import "../graphlib/index.js";
|
|
8
8
|
import { List } from "./data/list.js";
|
|
9
9
|
var DEFAULT_WEIGHT_FN = constant_default(1);
|
|
10
|
-
function greedyFAS(e,
|
|
10
|
+
function greedyFAS(e, a) {
|
|
11
11
|
if (e.nodeCount() <= 1) return [];
|
|
12
|
-
var o = buildState(e,
|
|
12
|
+
var o = buildState(e, a || DEFAULT_WEIGHT_FN);
|
|
13
13
|
return flatten_default(map_default(doGreedyFAS(o.graph, o.buckets, o.zeroIdx), function(r) {
|
|
14
14
|
return e.outEdges(r.v, r.w);
|
|
15
15
|
}));
|
|
@@ -27,38 +27,38 @@ function doGreedyFAS(e, r, i) {
|
|
|
27
27
|
}
|
|
28
28
|
return a;
|
|
29
29
|
}
|
|
30
|
-
function removeNode(e, r,
|
|
30
|
+
function removeNode(e, r, i, o, s) {
|
|
31
31
|
var c = s ? [] : void 0;
|
|
32
|
-
return forEach_default(e.inEdges(o.v), function(
|
|
33
|
-
var o = e.edge(
|
|
32
|
+
return forEach_default(e.inEdges(o.v), function(a) {
|
|
33
|
+
var o = e.edge(a), l = e.node(a.v);
|
|
34
34
|
s && c.push({
|
|
35
|
-
v:
|
|
36
|
-
w:
|
|
37
|
-
}), l.out -= o, assignBucket(r,
|
|
38
|
-
}), forEach_default(e.outEdges(o.v), function(
|
|
39
|
-
var o = e.edge(
|
|
40
|
-
c.in -= o, assignBucket(r,
|
|
35
|
+
v: a.v,
|
|
36
|
+
w: a.w
|
|
37
|
+
}), l.out -= o, assignBucket(r, i, l);
|
|
38
|
+
}), forEach_default(e.outEdges(o.v), function(a) {
|
|
39
|
+
var o = e.edge(a), s = a.w, c = e.node(s);
|
|
40
|
+
c.in -= o, assignBucket(r, i, c);
|
|
41
41
|
}), e.removeNode(o.v), c;
|
|
42
42
|
}
|
|
43
43
|
function buildState(e, r) {
|
|
44
|
-
var
|
|
44
|
+
var i = new Graph(), l = 0, u = 0;
|
|
45
45
|
forEach_default(e.nodes(), function(e) {
|
|
46
|
-
|
|
46
|
+
i.setNode(e, {
|
|
47
47
|
v: e,
|
|
48
48
|
in: 0,
|
|
49
49
|
out: 0
|
|
50
50
|
});
|
|
51
51
|
}), forEach_default(e.edges(), function(e) {
|
|
52
|
-
var
|
|
53
|
-
|
|
52
|
+
var a = i.edge(e.v, e.w) || 0, o = r(e), s = a + o;
|
|
53
|
+
i.setEdge(e.v, e.w, s), u = Math.max(u, i.node(e.v).out += o), l = Math.max(l, i.node(e.w).in += o);
|
|
54
54
|
});
|
|
55
55
|
var d = range_default(u + l + 3).map(function() {
|
|
56
56
|
return new List();
|
|
57
57
|
}), f = l + 1;
|
|
58
|
-
return forEach_default(
|
|
59
|
-
assignBucket(d, f,
|
|
58
|
+
return forEach_default(i.nodes(), function(e) {
|
|
59
|
+
assignBucket(d, f, i.node(e));
|
|
60
60
|
}), {
|
|
61
|
-
graph:
|
|
61
|
+
graph: i,
|
|
62
62
|
buckets: d,
|
|
63
63
|
zeroIdx: f
|
|
64
64
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import merge_default from "../../../lodash-es/merge.js";
|
|
2
|
+
import forEach_default from "../../../lodash-es/forEach.js";
|
|
2
3
|
import defaults_default from "../../../lodash-es/defaults.js";
|
|
3
4
|
import last_default from "../../../lodash-es/last.js";
|
|
4
|
-
import forEach_default from "../../../lodash-es/forEach.js";
|
|
5
5
|
import mapValues_default from "../../../lodash-es/mapValues.js";
|
|
6
6
|
import max_default from "../../../lodash-es/max.js";
|
|
7
7
|
import pick_default from "../../../lodash-es/pick.js";
|
|
@@ -27,14 +27,14 @@ function layout(g, G) {
|
|
|
27
27
|
function runLayout(g, G) {
|
|
28
28
|
G(" makeSpaceForEdgeLabels", () => makeSpaceForEdgeLabels(g)), G(" removeSelfEdges", () => removeSelfEdges(g)), G(" acyclic", () => run(g)), G(" nestingGraph.run", () => run$2(g)), G(" rank", () => rank(asNonCompoundGraph(g))), G(" injectEdgeLabelProxies", () => injectEdgeLabelProxies(g)), G(" removeEmptyRanks", () => removeEmptyRanks(g)), G(" nestingGraph.cleanup", () => cleanup(g)), G(" normalizeRanks", () => normalizeRanks(g)), G(" assignRankMinMax", () => assignRankMinMax(g)), G(" removeEdgeLabelProxies", () => removeEdgeLabelProxies(g)), G(" normalize.run", () => run$1(g)), G(" parentDummyChains", () => parentDummyChains(g)), G(" addBorderSegments", () => addBorderSegments(g)), G(" order", () => order(g)), G(" insertSelfEdges", () => insertSelfEdges(g)), G(" adjustCoordinateSystem", () => adjust(g)), G(" position", () => position(g)), G(" positionSelfEdges", () => positionSelfEdges(g)), G(" removeBorderNodes", () => removeBorderNodes(g)), G(" normalize.undo", () => undo$2(g)), G(" fixupEdgeLabelCoords", () => fixupEdgeLabelCoords(g)), G(" undoCoordinateSystem", () => undo$1(g)), G(" translateGraph", () => translateGraph(g)), G(" assignNodeIntersects", () => assignNodeIntersects(g)), G(" reversePoints", () => reversePointsForReversedEdges(g)), G(" acyclic.undo", () => undo(g));
|
|
29
29
|
}
|
|
30
|
-
function updateInputGraph(g,
|
|
31
|
-
forEach_default(g.nodes(), function(
|
|
32
|
-
var q = g.node(
|
|
33
|
-
q && (q.x = J.x, q.y = J.y,
|
|
34
|
-
}), forEach_default(g.edges(), function(
|
|
35
|
-
var q = g.edge(
|
|
30
|
+
function updateInputGraph(g, K) {
|
|
31
|
+
forEach_default(g.nodes(), function(G) {
|
|
32
|
+
var q = g.node(G), J = K.node(G);
|
|
33
|
+
q && (q.x = J.x, q.y = J.y, K.children(G).length && (q.width = J.width, q.height = J.height));
|
|
34
|
+
}), forEach_default(g.edges(), function(G) {
|
|
35
|
+
var q = g.edge(G), J = K.edge(G);
|
|
36
36
|
q.points = J.points, Object.prototype.hasOwnProperty.call(J, "x") && (q.x = J.x, q.y = J.y);
|
|
37
|
-
}), g.graph().width =
|
|
37
|
+
}), g.graph().width = K.graph().width, g.graph().height = K.graph().height;
|
|
38
38
|
}
|
|
39
39
|
var graphNumAttrs = [
|
|
40
40
|
"nodesep",
|
|
@@ -69,24 +69,24 @@ var graphNumAttrs = [
|
|
|
69
69
|
labeloffset: 10,
|
|
70
70
|
labelpos: "r"
|
|
71
71
|
}, edgeAttrs = ["labelpos"];
|
|
72
|
-
function buildLayoutGraph(
|
|
72
|
+
function buildLayoutGraph(q) {
|
|
73
73
|
var J = new Graph({
|
|
74
74
|
multigraph: !0,
|
|
75
75
|
compound: !0
|
|
76
|
-
}), Y = canonicalize(
|
|
77
|
-
return J.setGraph(merge_default({}, graphDefaults, selectNumberAttrs(Y, graphNumAttrs), pick_default(Y, graphAttrs))), forEach_default(
|
|
78
|
-
var
|
|
79
|
-
J.setNode(g, defaults_default(selectNumberAttrs(
|
|
80
|
-
}), forEach_default(
|
|
81
|
-
var
|
|
82
|
-
J.setEdge(G, merge_default({}, edgeDefaults, selectNumberAttrs(
|
|
76
|
+
}), Y = canonicalize(q.graph());
|
|
77
|
+
return J.setGraph(merge_default({}, graphDefaults, selectNumberAttrs(Y, graphNumAttrs), pick_default(Y, graphAttrs))), forEach_default(q.nodes(), function(g) {
|
|
78
|
+
var G = canonicalize(q.node(g));
|
|
79
|
+
J.setNode(g, defaults_default(selectNumberAttrs(G, nodeNumAttrs), nodeDefaults)), J.setParent(g, q.parent(g));
|
|
80
|
+
}), forEach_default(q.edges(), function(G) {
|
|
81
|
+
var K = canonicalize(q.edge(G));
|
|
82
|
+
J.setEdge(G, merge_default({}, edgeDefaults, selectNumberAttrs(K, edgeNumAttrs), pick_default(K, edgeAttrs)));
|
|
83
83
|
}), J;
|
|
84
84
|
}
|
|
85
85
|
function makeSpaceForEdgeLabels(g) {
|
|
86
|
-
var
|
|
87
|
-
|
|
88
|
-
var q = g.edge(
|
|
89
|
-
q.minlen *= 2, q.labelpos.toLowerCase() !== "c" && (
|
|
86
|
+
var K = g.graph();
|
|
87
|
+
K.ranksep /= 2, forEach_default(g.edges(), function(G) {
|
|
88
|
+
var q = g.edge(G);
|
|
89
|
+
q.minlen *= 2, q.labelpos.toLowerCase() !== "c" && (K.rankdir === "TB" || K.rankdir === "BT" ? q.width += q.labeloffset : q.height += q.labeloffset);
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
function injectEdgeLabelProxies(g) {
|
|
@@ -102,11 +102,11 @@ function injectEdgeLabelProxies(g) {
|
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
function assignRankMinMax(g) {
|
|
105
|
-
var
|
|
106
|
-
forEach_default(g.nodes(), function(
|
|
107
|
-
var q = g.node(
|
|
108
|
-
q.borderTop && (q.minRank = g.node(q.borderTop).rank, q.maxRank = g.node(q.borderBottom).rank,
|
|
109
|
-
}), g.graph().maxRank =
|
|
105
|
+
var K = 0;
|
|
106
|
+
forEach_default(g.nodes(), function(G) {
|
|
107
|
+
var q = g.node(G);
|
|
108
|
+
q.borderTop && (q.minRank = g.node(q.borderTop).rank, q.maxRank = g.node(q.borderBottom).rank, K = max_default(K, q.maxRank));
|
|
109
|
+
}), g.graph().maxRank = K;
|
|
110
110
|
}
|
|
111
111
|
function removeEdgeLabelProxies(g) {
|
|
112
112
|
forEach_default(g.nodes(), function(G) {
|
|
@@ -115,25 +115,25 @@ function removeEdgeLabelProxies(g) {
|
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
function translateGraph(g) {
|
|
118
|
-
var
|
|
118
|
+
var K = Infinity, q = 0, J = Infinity, Y = 0, X = g.graph(), Z = X.marginx || 0, Q = X.marginy || 0;
|
|
119
119
|
function $(g) {
|
|
120
|
-
var
|
|
121
|
-
|
|
120
|
+
var G = g.x, X = g.y, Z = g.width, Q = g.height;
|
|
121
|
+
K = Math.min(K, G - Z / 2), q = Math.max(q, G + Z / 2), J = Math.min(J, X - Q / 2), Y = Math.max(Y, X + Q / 2);
|
|
122
122
|
}
|
|
123
123
|
forEach_default(g.nodes(), function(G) {
|
|
124
124
|
$(g.node(G));
|
|
125
125
|
}), forEach_default(g.edges(), function(G) {
|
|
126
126
|
var K = g.edge(G);
|
|
127
127
|
Object.prototype.hasOwnProperty.call(K, "x") && $(K);
|
|
128
|
-
}),
|
|
129
|
-
var q = g.node(
|
|
130
|
-
q.x -=
|
|
131
|
-
}), forEach_default(g.edges(), function(
|
|
132
|
-
var Y = g.edge(
|
|
128
|
+
}), K -= Z, J -= Q, forEach_default(g.nodes(), function(G) {
|
|
129
|
+
var q = g.node(G);
|
|
130
|
+
q.x -= K, q.y -= J;
|
|
131
|
+
}), forEach_default(g.edges(), function(q) {
|
|
132
|
+
var Y = g.edge(q);
|
|
133
133
|
forEach_default(Y.points, function(g) {
|
|
134
|
-
g.x -=
|
|
135
|
-
}), Object.prototype.hasOwnProperty.call(Y, "x") && (Y.x -=
|
|
136
|
-
}), X.width =
|
|
134
|
+
g.x -= K, g.y -= J;
|
|
135
|
+
}), Object.prototype.hasOwnProperty.call(Y, "x") && (Y.x -= K), Object.prototype.hasOwnProperty.call(Y, "y") && (Y.y -= J);
|
|
136
|
+
}), X.width = q - K + Z, X.height = Y - J + Q;
|
|
137
137
|
}
|
|
138
138
|
function assignNodeIntersects(g) {
|
|
139
139
|
forEach_default(g.edges(), function(G) {
|
|
@@ -163,8 +163,8 @@ function reversePointsForReversedEdges(g) {
|
|
|
163
163
|
function removeBorderNodes(g) {
|
|
164
164
|
forEach_default(g.nodes(), function(G) {
|
|
165
165
|
if (g.children(G).length) {
|
|
166
|
-
var
|
|
167
|
-
|
|
166
|
+
var K = g.node(G), J = g.node(K.borderTop), Y = g.node(K.borderBottom), X = g.node(last_default(K.borderLeft)), Z = g.node(last_default(K.borderRight));
|
|
167
|
+
K.width = Math.abs(Z.x - X.x), K.height = Math.abs(Y.y - J.y), K.x = X.x + K.width / 2, K.y = J.y + K.height / 2;
|
|
168
168
|
}
|
|
169
169
|
}), forEach_default(g.nodes(), function(G) {
|
|
170
170
|
g.node(G).dummy === "border" && g.removeNode(G);
|
|
@@ -182,16 +182,16 @@ function removeSelfEdges(g) {
|
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
184
|
function insertSelfEdges(g) {
|
|
185
|
-
forEach_default(buildLayerMatrix(g), function(
|
|
186
|
-
var
|
|
187
|
-
forEach_default(
|
|
188
|
-
var Y = g.node(
|
|
189
|
-
Y.order = J +
|
|
185
|
+
forEach_default(buildLayerMatrix(g), function(K) {
|
|
186
|
+
var q = 0;
|
|
187
|
+
forEach_default(K, function(K, J) {
|
|
188
|
+
var Y = g.node(K);
|
|
189
|
+
Y.order = J + q, forEach_default(Y.selfEdges, function(G) {
|
|
190
190
|
addDummyNode(g, "selfedge", {
|
|
191
191
|
width: G.label.width,
|
|
192
192
|
height: G.label.height,
|
|
193
193
|
rank: Y.rank,
|
|
194
|
-
order: J + ++
|
|
194
|
+
order: J + ++q,
|
|
195
195
|
e: G.e,
|
|
196
196
|
label: G.label
|
|
197
197
|
}, "_se");
|
|
@@ -233,9 +233,9 @@ function selectNumberAttrs(g, G) {
|
|
|
233
233
|
return mapValues_default(pick_default(g, G), Number);
|
|
234
234
|
}
|
|
235
235
|
function canonicalize(g) {
|
|
236
|
-
var
|
|
237
|
-
return forEach_default(g, function(g,
|
|
238
|
-
G
|
|
239
|
-
}),
|
|
236
|
+
var K = {};
|
|
237
|
+
return forEach_default(g, function(g, G) {
|
|
238
|
+
K[G.toLowerCase()] = g;
|
|
239
|
+
}), K;
|
|
240
240
|
}
|
|
241
241
|
export { layout };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import forEach_default from "../../../lodash-es/forEach.js";
|
|
2
|
+
import reduce_default from "../../../lodash-es/reduce.js";
|
|
2
3
|
import values_default from "../../../lodash-es/values.js";
|
|
3
4
|
import max_default from "../../../lodash-es/max.js";
|
|
4
|
-
import reduce_default from "../../../lodash-es/reduce.js";
|
|
5
5
|
import { addBorderNode, addDummyNode } from "./util.js";
|
|
6
|
-
function run(
|
|
7
|
-
var a = addDummyNode(
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
function run(n) {
|
|
7
|
+
var a = addDummyNode(n, "root", {}, "_root"), s = treeDepths(n), u = max_default(values_default(s)) - 1, d = 2 * u + 1;
|
|
8
|
+
n.graph().nestingRoot = a, forEach_default(n.edges(), function(e) {
|
|
9
|
+
n.edge(e).minlen *= d;
|
|
10
10
|
});
|
|
11
|
-
var f = sumWeights(
|
|
12
|
-
forEach_default(
|
|
13
|
-
dfs(
|
|
14
|
-
}),
|
|
11
|
+
var f = sumWeights(n) + 1;
|
|
12
|
+
forEach_default(n.children(), function(e) {
|
|
13
|
+
dfs(n, a, d, f, u, s, e);
|
|
14
|
+
}), n.graph().nodeRankFactor = d;
|
|
15
15
|
}
|
|
16
16
|
function dfs(n, r, i, o, s, c, l) {
|
|
17
17
|
var u = n.children(l);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import map_default from "../../../../lodash-es/map.js";
|
|
1
2
|
import flatten_default from "../../../../lodash-es/flatten.js";
|
|
2
3
|
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
3
|
-
import map_default from "../../../../lodash-es/map.js";
|
|
4
4
|
import sortBy_default from "../../../../lodash-es/sortBy.js";
|
|
5
5
|
import zipObject_default from "../../../../lodash-es/zipObject.js";
|
|
6
6
|
function crossCount(e, n) {
|
|
@@ -10,8 +10,8 @@ function crossCount(e, n) {
|
|
|
10
10
|
function twoLayerCrossCount(a, o, s) {
|
|
11
11
|
for (var c = zipObject_default(s, map_default(s, function(e, n) {
|
|
12
12
|
return n;
|
|
13
|
-
})), l = flatten_default(map_default(o, function(
|
|
14
|
-
return sortBy_default(map_default(a.outEdges(
|
|
13
|
+
})), l = flatten_default(map_default(o, function(n) {
|
|
14
|
+
return sortBy_default(map_default(a.outEdges(n), function(e) {
|
|
15
15
|
return {
|
|
16
16
|
pos: c[e.w],
|
|
17
17
|
weight: a.edge(e).weight
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import cloneDeep_default from "../../../../lodash-es/cloneDeep.js";
|
|
2
|
-
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
3
1
|
import map_default from "../../../../lodash-es/map.js";
|
|
2
|
+
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
3
|
+
import cloneDeep_default from "../../../../lodash-es/cloneDeep.js";
|
|
4
4
|
import range_default from "../../../../lodash-es/range.js";
|
|
5
5
|
import { Graph } from "../../graphlib/graph.js";
|
|
6
6
|
import "../../graphlib/index.js";
|
|
@@ -10,19 +10,19 @@ import { buildLayerGraph } from "./build-layer-graph.js";
|
|
|
10
10
|
import { crossCount } from "./cross-count.js";
|
|
11
11
|
import { initOrder } from "./init-order.js";
|
|
12
12
|
import { sortSubgraph } from "./sort-subgraph.js";
|
|
13
|
-
function order(
|
|
14
|
-
var
|
|
15
|
-
assignOrder(
|
|
13
|
+
function order(e) {
|
|
14
|
+
var s = maxRank(e), u = buildLayerGraphs(e, range_default(1, s + 1), "inEdges"), f = buildLayerGraphs(e, range_default(s - 1, -1, -1), "outEdges"), p = initOrder(e);
|
|
15
|
+
assignOrder(e, p);
|
|
16
16
|
for (var m = Infinity, h, g = 0, _ = 0; _ < 4; ++g, ++_) {
|
|
17
|
-
sweepLayerGraphs(g % 2 ? u : f, g % 4 >= 2), p = buildLayerMatrix(
|
|
18
|
-
var v = crossCount(
|
|
17
|
+
sweepLayerGraphs(g % 2 ? u : f, g % 4 >= 2), p = buildLayerMatrix(e);
|
|
18
|
+
var v = crossCount(e, p);
|
|
19
19
|
v < m && (_ = 0, h = cloneDeep_default(p), m = v);
|
|
20
20
|
}
|
|
21
|
-
assignOrder(
|
|
21
|
+
assignOrder(e, h);
|
|
22
22
|
}
|
|
23
|
-
function buildLayerGraphs(
|
|
24
|
-
return map_default(
|
|
25
|
-
return buildLayerGraph(
|
|
23
|
+
function buildLayerGraphs(s, c, l) {
|
|
24
|
+
return map_default(c, function(e) {
|
|
25
|
+
return buildLayerGraph(s, e, l);
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
function sweepLayerGraphs(e, c) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
2
|
-
import filter_default from "../../../../lodash-es/filter.js";
|
|
3
1
|
import map_default from "../../../../lodash-es/map.js";
|
|
2
|
+
import filter_default from "../../../../lodash-es/filter.js";
|
|
3
|
+
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
4
4
|
import has_default from "../../../../lodash-es/has.js";
|
|
5
5
|
import max_default from "../../../../lodash-es/max.js";
|
|
6
6
|
import range_default from "../../../../lodash-es/range.js";
|
|
@@ -13,8 +13,8 @@ function initOrder(s) {
|
|
|
13
13
|
})) + 1), function() {
|
|
14
14
|
return [];
|
|
15
15
|
});
|
|
16
|
-
function d(
|
|
17
|
-
has_default(c,
|
|
16
|
+
function d(e) {
|
|
17
|
+
has_default(c, e) || (c[e] = !0, u[s.node(e).rank].push(e), forEach_default(s.successors(e), d));
|
|
18
18
|
}
|
|
19
19
|
return forEach_default(sortBy_default(l, function(e) {
|
|
20
20
|
return s.node(e).rank;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
2
|
-
import filter_default from "../../../../lodash-es/filter.js";
|
|
3
1
|
import map_default from "../../../../lodash-es/map.js";
|
|
2
|
+
import filter_default from "../../../../lodash-es/filter.js";
|
|
3
|
+
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
4
4
|
import isUndefined_default from "../../../../lodash-es/isUndefined.js";
|
|
5
5
|
import pick_default from "../../../../lodash-es/pick.js";
|
|
6
|
-
function resolveConflicts(
|
|
6
|
+
function resolveConflicts(e, a) {
|
|
7
7
|
var o = {};
|
|
8
|
-
return forEach_default(
|
|
8
|
+
return forEach_default(e, function(e, n) {
|
|
9
9
|
var r = o[e.v] = {
|
|
10
10
|
indegree: 0,
|
|
11
11
|
in: [],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import filter_default from "../../../../lodash-es/filter.js";
|
|
1
2
|
import flatten_default from "../../../../lodash-es/flatten.js";
|
|
2
3
|
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
3
|
-
import filter_default from "../../../../lodash-es/filter.js";
|
|
4
4
|
import isUndefined_default from "../../../../lodash-es/isUndefined.js";
|
|
5
5
|
import { barycenter } from "./barycenter.js";
|
|
6
6
|
import { resolveConflicts } from "./resolve-conflicts.js";
|
|
@@ -13,8 +13,8 @@ function sortSubgraph(l, u, d, f) {
|
|
|
13
13
|
var v = barycenter(l, p);
|
|
14
14
|
forEach_default(v, function(e) {
|
|
15
15
|
if (l.children(e.v).length) {
|
|
16
|
-
var
|
|
17
|
-
_[e.v] =
|
|
16
|
+
var c = sortSubgraph(l, e.v, d, f);
|
|
17
|
+
_[e.v] = c, Object.prototype.hasOwnProperty.call(c, "barycenter") && mergeBarycenters(e, c);
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
var y = resolveConflicts(v, d);
|
|
@@ -30,14 +30,14 @@ function sortSubgraph(l, u, d, f) {
|
|
|
30
30
|
}
|
|
31
31
|
return b;
|
|
32
32
|
}
|
|
33
|
-
function expandSubgraphs(
|
|
34
|
-
forEach_default(
|
|
35
|
-
|
|
33
|
+
function expandSubgraphs(e, l) {
|
|
34
|
+
forEach_default(e, function(e) {
|
|
35
|
+
e.vs = flatten_default(e.vs.map(function(e) {
|
|
36
36
|
return l[e] ? l[e].vs : e;
|
|
37
37
|
}));
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
function mergeBarycenters(e,
|
|
41
|
-
isUndefined_default(e.barycenter) ? (e.barycenter =
|
|
40
|
+
function mergeBarycenters(e, c) {
|
|
41
|
+
isUndefined_default(e.barycenter) ? (e.barycenter = c.barycenter, e.weight = c.weight) : (e.barycenter = (e.barycenter * e.weight + c.barycenter * c.weight) / (e.weight + c.weight), e.weight += c.weight);
|
|
42
42
|
}
|
|
43
43
|
export { sortSubgraph };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import flatten_default from "../../../../lodash-es/flatten.js";
|
|
2
|
-
import last_default from "../../../../lodash-es/last.js";
|
|
3
2
|
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
3
|
+
import last_default from "../../../../lodash-es/last.js";
|
|
4
4
|
import sortBy_default from "../../../../lodash-es/sortBy.js";
|
|
5
5
|
import { partition } from "../util.js";
|
|
6
|
-
function sort(
|
|
7
|
-
var c = partition(
|
|
6
|
+
function sort(i, s) {
|
|
7
|
+
var c = partition(i, function(e) {
|
|
8
8
|
return Object.prototype.hasOwnProperty.call(e, "barycenter");
|
|
9
9
|
}), l = c.lhs, u = sortBy_default(c.rhs, function(e) {
|
|
10
10
|
return -e.i;
|
|
@@ -15,8 +15,8 @@ function sort(r, s) {
|
|
|
15
15
|
var h = { vs: flatten_default(d) };
|
|
16
16
|
return p && (h.barycenter = f / p, h.weight = p), h;
|
|
17
17
|
}
|
|
18
|
-
function consumeUnsortable(e,
|
|
19
|
-
for (var o;
|
|
18
|
+
function consumeUnsortable(e, r, a) {
|
|
19
|
+
for (var o; r.length && (o = last_default(r)).i <= a;) r.pop(), e.push(o.vs), a++;
|
|
20
20
|
return a;
|
|
21
21
|
}
|
|
22
22
|
function compareWithBias(e) {
|