@explorable-viz/fluid 0.7.77 → 0.7.78

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.
@@ -156,14 +156,6 @@ var intercalate = function(separator) {
156
156
  var showString = { show: showStringImpl };
157
157
  var showNumber = { show: showNumberImpl };
158
158
  var showInt = { show: showIntImpl };
159
- var showBoolean = {
160
- show: (v) => {
161
- if (v) {
162
- return "true";
163
- }
164
- return "false";
165
- }
166
- };
167
159
 
168
160
  // output-es/Data.Generic.Rep/index.js
169
161
  var $NoArguments = () => ({ tag: "NoArguments" });
@@ -11584,29 +11576,22 @@ var verticesVertex = (dictFunctor) => (dictFoldable) => ({
11584
11576
  return (x) => $0(dictFunctor.map(singleton2)(x));
11585
11577
  })()
11586
11578
  });
11587
- var eqDVertex = { eq: (v) => (v1) => v._1 === v1._1 };
11588
- var ordDVertex = { compare: (v) => (v1) => ordString.compare(v._1)(v1._1), Eq0: () => eqDVertex };
11589
- var unDVertex = /* @__PURE__ */ map(ordVertex)((x) => x._1);
11590
11579
  var showVertices = (\u03B1s) => "{" + joinWith(", ")(fromFoldable5(map(ordString)(unsafeCoerce)(\u03B1s))) + "}";
11591
11580
  var showEdgeList = (es) => joinWith("\n")([
11592
11581
  "digraph G {",
11593
11582
  ...arrayMap((v) => " " + v)([
11594
11583
  "rankdir = RL",
11595
- ...arrayMap((v) => v._1 + " -> {" + joinWith(", ")(fromFoldable5(map(ordString)(unsafeCoerce)(v._2._1))) + "}")(fromFoldable13(reverse2(es)))
11584
+ ...arrayMap((v) => v._1 + " -> {" + joinWith(", ")(fromFoldable5(map(ordString)(unsafeCoerce)(v._2))) + "}")(fromFoldable13(reverse2(es)))
11596
11585
  ]),
11597
11586
  "}"
11598
11587
  ]);
11599
- var pack1 = (x) => (k) => k(showString)(x);
11600
11588
  var toEdgeList = (dictGraph) => (g) => {
11601
11589
  const $0 = (v) => {
11602
11590
  if (v._1.tag === "Nil") {
11603
11591
  return $Step("Done", v._2);
11604
11592
  }
11605
11593
  if (v._1.tag === "Cons") {
11606
- return $Step(
11607
- "Loop",
11608
- $Tuple(v._1._2, $List("Cons", $Tuple(v._1._1, $Tuple(dictGraph.outN(g)(v._1._1), pack1(""))), v._2))
11609
- );
11594
+ return $Step("Loop", $Tuple(v._1._2, $List("Cons", $Tuple(v._1._1, dictGraph.outN(g)(v._1._1)), v._2)));
11610
11595
  }
11611
11596
  fail();
11612
11597
  };
@@ -11894,15 +11879,14 @@ var $GraphImpl = (_1) => ({ tag: "GraphImpl", _1 });
11894
11879
  var eqSet2 = { eq: (v) => (v1) => eqMap(eqVertex)(eqUnit).eq(v)(v1) };
11895
11880
  var eq = /* @__PURE__ */ (() => eqObject(eqSet2).eq)();
11896
11881
  var fromFoldable7 = /* @__PURE__ */ foldlArray((m) => (a) => insert(ordVertex)(a)()(m))(Leaf2);
11897
- var pack = (x) => (k) => k(showString)(x);
11898
11882
  var toUnfoldable6 = /* @__PURE__ */ toUnfoldable4(unfoldableList);
11899
11883
  var fromFoldable15 = /* @__PURE__ */ (() => foldableSet.foldr(Cons)(Nil))();
11900
11884
  var fromFoldable23 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert(ordVertex)(a)()(m))(Leaf2))();
11901
11885
  var toUnfoldable12 = /* @__PURE__ */ toAscUnfoldable(unfoldableArray);
11902
11886
  var fromFoldable32 = /* @__PURE__ */ fromFoldable(ordVertex)(foldableArray);
11903
11887
  var verticesGraphImpl = { vertices: (v) => v._1.vertices };
11904
- var eqGraphImpl = { eq: (v) => (v1) => eq(_fmapObject(v._1.out, fst))(_fmapObject(v1._1.out, fst)) };
11905
- var sinks$p = (m) => fromFoldable7(arrayMap((x) => x._1)(filter((x) => x._2._1.tag === "Leaf")(toArrayWithKey(Tuple)(m))));
11888
+ var eqGraphImpl = { eq: (v) => (v1) => eq(v._1.out)(v1._1.out) };
11889
+ var sinks$p = (m) => fromFoldable7(arrayMap((x) => x._1)(filter((x) => x._2.tag === "Leaf")(toArrayWithKey(Tuple)(m))));
11906
11890
  var init4 = (\u03B1s) => () => {
11907
11891
  const obj = {};
11908
11892
  return monadRecST.tailRecM((v) => {
@@ -11914,7 +11898,7 @@ var init4 = (\u03B1s) => () => {
11914
11898
  const $1 = v._1._2;
11915
11899
  const $2 = v._2;
11916
11900
  return () => {
11917
- $2[$0] = $Tuple(Leaf2, pack("uninit: init"));
11901
+ $2[$0] = Leaf2;
11918
11902
  return $Step("Loop", $Tuple($1, $2));
11919
11903
  };
11920
11904
  }
@@ -11950,7 +11934,7 @@ var addIfMissing = (acc) => (v) => {
11950
11934
  return () => {
11951
11935
  const v1 = $0();
11952
11936
  if (v1.tag === "Nothing") {
11953
- acc[v] = $Tuple(Leaf2, pack("uninit: missing"));
11937
+ acc[v] = Leaf2;
11954
11938
  return acc;
11955
11939
  }
11956
11940
  if (v1.tag === "Just") {
@@ -11984,28 +11968,27 @@ var outMap = (\u03B1s) => (es) => {
11984
11968
  if (v._1.tag === "Cons") {
11985
11969
  const $1 = v._2;
11986
11970
  const $2 = v._1._2;
11987
- const $3 = v._1._1._2._2;
11988
- const $4 = v._1._1._1;
11989
- const $5 = v._1._1._2._1;
11990
- const $6 = peek($4)($1);
11971
+ const $3 = v._1._1._1;
11972
+ const $4 = v._1._1._2;
11973
+ const $5 = peek($3)($1);
11991
11974
  return () => {
11992
- const $7 = $6();
11975
+ const $6 = $5();
11993
11976
  if ((() => {
11994
- if ($7.tag === "Nothing") {
11977
+ if ($6.tag === "Nothing") {
11995
11978
  return true;
11996
11979
  }
11997
- if ($7.tag === "Just") {
11998
- return eqMap(eqVertex)(eqUnit).eq($7._1._1)(Leaf2);
11980
+ if ($6.tag === "Just") {
11981
+ return eqMap(eqVertex)(eqUnit).eq($6._1)(Leaf2);
11999
11982
  }
12000
11983
  fail();
12001
11984
  })()) {
12002
- const \u03B2s$p = toUnfoldable6($5);
11985
+ const \u03B2s$p = toUnfoldable6($4);
12003
11986
  monadRecST.tailRecM(assertPresent($1))(\u03B2s$p)();
12004
- $1[$4] = $Tuple($5, $3);
11987
+ $1[$3] = $4;
12005
11988
  const acc$p = addIfMissing$p(\u03B2s$p)($1)();
12006
11989
  return $Step("Loop", $Tuple($2, acc$p));
12007
11990
  }
12008
- return throwException(error("Duplicate edge list entry for " + showStringImpl($4)))()();
11991
+ return throwException(error("Duplicate edge list entry for " + showStringImpl($3)))()();
12009
11992
  };
12010
11993
  }
12011
11994
  fail();
@@ -12022,38 +12005,37 @@ var inMap = (\u03B1s) => (es) => {
12022
12005
  }
12023
12006
  if (v._1.tag === "Cons") {
12024
12007
  const $1 = v._1._2;
12025
- const $2 = v._1._1._2._2;
12026
- const $3 = v._1._1._1;
12027
- const $4 = monadRecST.tailRecM((v2) => {
12028
- if (v2._1.tag === "Nil") {
12029
- return () => $Step("Done", v2._2);
12008
+ const $2 = v._1._1._1;
12009
+ const $3 = monadRecST.tailRecM((v1) => {
12010
+ if (v1._1.tag === "Nil") {
12011
+ return () => $Step("Done", v1._2);
12030
12012
  }
12031
- if (v2._1.tag === "Cons") {
12032
- const $42 = v2._2;
12033
- const $5 = v2._1._1;
12034
- const $6 = v2._1._2;
12035
- const $7 = peek($5)($42);
12013
+ if (v1._1.tag === "Cons") {
12014
+ const $32 = v1._2;
12015
+ const $4 = v1._1._1;
12016
+ const $5 = v1._1._2;
12017
+ const $6 = peek($4)($32);
12036
12018
  return () => {
12037
- const v1 = $7();
12019
+ const v1$1 = $6();
12038
12020
  const acc$p = (() => {
12039
- if (v1.tag === "Nothing") {
12040
- $42[$5] = $Tuple($$$Map("Two", Leaf2, $3, void 0, Leaf2), $2);
12041
- return $42;
12021
+ if (v1$1.tag === "Nothing") {
12022
+ $32[$4] = $$$Map("Two", Leaf2, $2, void 0, Leaf2);
12023
+ return $32;
12042
12024
  }
12043
- if (v1.tag === "Just") {
12044
- $42[$5] = $Tuple(insert(ordVertex)($3)()(v1._1._1), $2);
12045
- return $42;
12025
+ if (v1$1.tag === "Just") {
12026
+ $32[$4] = insert(ordVertex)($2)()(v1$1._1);
12027
+ return $32;
12046
12028
  }
12047
12029
  fail();
12048
12030
  })();
12049
- return $Step("Loop", $Tuple($6, acc$p));
12031
+ return $Step("Loop", $Tuple($5, acc$p));
12050
12032
  };
12051
12033
  }
12052
12034
  fail();
12053
- })($Tuple(toUnfoldable6(v._1._1._2._1), v._2));
12035
+ })($Tuple(toUnfoldable6(v._1._1._2), v._2));
12054
12036
  return () => {
12055
- const a = $4();
12056
- const acc$p = addIfMissing(a)($3)();
12037
+ const a = $3();
12038
+ const acc$p = addIfMissing(a)($2)();
12057
12039
  return $Step("Loop", $Tuple($1, acc$p));
12058
12040
  };
12059
12041
  }
@@ -12062,8 +12044,7 @@ var inMap = (\u03B1s) => (es) => {
12062
12044
  };
12063
12045
  };
12064
12046
  var graphGraphImpl = {
12065
- outN: (v) => (\u03B1) => definitely("in graph")(_lookup(Nothing, Just, \u03B1, v._1.out))._1,
12066
- vertexData: (v) => (\u03B1) => definitely("in graph")(_lookup(Nothing, Just, \u03B1, v._1.out))._2,
12047
+ outN: (v) => (\u03B1) => definitely("in graph")(_lookup(Nothing, Just, \u03B1, v._1.out)),
12067
12048
  inN: (g) => graphGraphImpl.outN(graphGraphImpl.op(g)),
12068
12049
  elem: (\u03B1) => (v) => {
12069
12050
  const $0 = _lookup(Nothing, Just, \u03B1, v._1.out);
@@ -12102,7 +12083,7 @@ var graphGraphImpl = {
12102
12083
  topologicalSort: (v) => reverse2(topologicalSort(ordVertex)(fromFoldable32(arrayMap((x) => $Tuple(
12103
12084
  x._1,
12104
12085
  $Tuple(void 0, x._2)
12105
- ))(toUnfoldable12(_fmapObject(_fmapObject(v._1.out, fst), toUnfoldable6)))))),
12086
+ ))(toUnfoldable12(_fmapObject(v._1.out, toUnfoldable6)))))),
12106
12087
  Eq0: () => eqGraphImpl,
12107
12088
  Vertices1: () => verticesGraphImpl
12108
12089
  };
@@ -12134,8 +12115,8 @@ var monadWithGraphWithGraphT = (dictMonad) => {
12134
12115
  const $1 = monadStateStateT(dictMonad);
12135
12116
  const monadStateT2 = { Applicative0: () => applicativeStateT(dictMonad), Bind1: () => bindStateT(dictMonad) };
12136
12117
  return {
12137
- extend: (\u03B1) => (\u03B1s) => (vd) => {
12138
- const $2 = Cons($Tuple(\u03B1, $Tuple(\u03B1s, vd)));
12118
+ extend: (\u03B1) => (\u03B1s) => {
12119
+ const $2 = Cons($Tuple(\u03B1, \u03B1s));
12139
12120
  const $3 = $1.state((s) => $Tuple(void 0, $2(s)));
12140
12121
  return (s) => $0.map((v1) => $Tuple(void 0, v1._2))($3(s));
12141
12122
  },
@@ -12215,7 +12196,7 @@ var monadWithGraphAllocWithGr = (dictMonadError) => {
12215
12196
  const monadWithGraphWithGraphT1 = monadWithGraphWithGraphT(monadStateT2);
12216
12197
  const monadErrorStateT2 = monadErrorStateT(monadErrorStateT(dictMonadError));
12217
12198
  return {
12218
- new: (\u03B1s) => (vd) => bindStateT2.bind(fresh1)((\u03B1) => bindStateT2.bind(monadWithGraphWithGraphT1.extend(\u03B1)(\u03B1s)(vd))(() => applicativeStateT(monadStateT2).pure(\u03B1))),
12199
+ new: (\u03B1s) => bindStateT2.bind(fresh1)((\u03B1) => bindStateT2.bind(monadWithGraphWithGraphT1.extend(\u03B1)(\u03B1s))(() => applicativeStateT(monadStateT2).pure(\u03B1))),
12219
12200
  MonadAlloc0: () => monadAllocWithGraphAllocT1,
12220
12201
  MonadError1: () => monadErrorStateT2,
12221
12202
  MonadWithGraph2: () => monadWithGraphWithGraphT1
@@ -12225,7 +12206,6 @@ var monadWithGraphAllocWithGr = (dictMonadError) => {
12225
12206
  // output-es/Graph.Slice/index.js
12226
12207
  var pure = /* @__PURE__ */ (() => applicativeStateT(monadIdentity).pure)();
12227
12208
  var extend = /* @__PURE__ */ (() => monadWithGraphWithGraphT(monadIdentity).extend)();
12228
- var pack2 = (x) => (k) => k(showString)(x);
12229
12209
  var tailRecM = /* @__PURE__ */ (() => monadRecStateT(monadRecIdentity).tailRecM)();
12230
12210
  var member3 = /* @__PURE__ */ (() => setSet(ordVertex).member)();
12231
12211
  var fromFoldable9 = /* @__PURE__ */ (() => foldableSet.foldr(Cons)(Nil))();
@@ -12251,7 +12231,7 @@ var fwdSlice = (dictGraph) => {
12251
12231
  fail();
12252
12232
  })();
12253
12233
  if (eqMap(eqVertex)(eqUnit).eq(\u03B2s)(dictGraph.outN($0)(v1.es._1._1))) {
12254
- return bindStateT(monadIdentity).bind(extend(v1.es._1._1)(\u03B2s)(pack2("uninit: fwd")))(() => pure($Step(
12234
+ return bindStateT(monadIdentity).bind(extend(v1.es._1._1)(\u03B2s))(() => pure($Step(
12255
12235
  "Loop",
12256
12236
  {
12257
12237
  pending: $$delete(ordVertex)(v1.es._1._1)(v1.pending),
@@ -12276,12 +12256,10 @@ var bwdSlice = (dictGraph) => {
12276
12256
  return pure($Step("Done", void 0));
12277
12257
  }
12278
12258
  if (v1.pending.tag === "Cons") {
12279
- const $2 = v1.pending._1._2._2;
12280
- const $3 = v1.pending._1._2._1;
12281
12259
  if (member3(v1.pending._1._1)(v1.visited)) {
12282
12260
  return pure($Step("Loop", { visited: v1.visited, "\u03B1s": Nil, pending: v1.pending._2 }));
12283
12261
  }
12284
- return bindStateT(monadIdentity).bind(extend(v1.pending._1._1)($3)(spyWhen(false)("Value found at " + showStringImpl(v1.pending._1._1))((v$1) => v$1((dictShow) => dictShow.show))($2)))(() => pure($Step(
12262
+ return bindStateT(monadIdentity).bind(extend(v1.pending._1._1)(v1.pending._1._2))(() => pure($Step(
12285
12263
  "Loop",
12286
12264
  { visited: insert(ordVertex)(v1.pending._1._1)()(v1.visited), "\u03B1s": Nil, pending: v1.pending._2 }
12287
12265
  )));
@@ -12295,7 +12273,7 @@ var bwdSlice = (dictGraph) => {
12295
12273
  {
12296
12274
  visited: v1.visited,
12297
12275
  "\u03B1s": foldableList.foldr(Cons)(v1["\u03B1s"]._2)(fromFoldable9(\u03B2s)),
12298
- pending: $List("Cons", $Tuple(v1["\u03B1s"]._1, $Tuple(\u03B2s, dictGraph.vertexData($0)(v1["\u03B1s"]._1))), v1.pending)
12276
+ pending: $List("Cons", $Tuple(v1["\u03B1s"]._1, \u03B2s), v1.pending)
12299
12277
  }
12300
12278
  ));
12301
12279
  }
@@ -17111,32 +17089,6 @@ var Dictionary3 = (value0) => $BaseVal("Dictionary", value0);
17111
17089
  var DictRep = (x) => x;
17112
17090
  var MatrixRep = (x) => x;
17113
17091
  var Env = (x) => x;
17114
- var showBaseVal = {
17115
- show: (v) => {
17116
- if (v.tag === "Int") {
17117
- return showIntImpl(v._1);
17118
- }
17119
- if (v.tag === "Float") {
17120
- return showNumberImpl(v._1);
17121
- }
17122
- if (v.tag === "Str") {
17123
- return showStringImpl(v._1);
17124
- }
17125
- if (v.tag === "Constr") {
17126
- return showStringImpl(v._1);
17127
- }
17128
- if (v.tag === "Dictionary") {
17129
- return "Dictionary";
17130
- }
17131
- if (v.tag === "Matrix") {
17132
- return "Matrix";
17133
- }
17134
- if (v.tag === "Fun") {
17135
- return "Function";
17136
- }
17137
- fail();
17138
- }
17139
- };
17140
17092
  var isEmptyEnv = { isEmpty: (v) => isEmpty2(v) };
17141
17093
  var setEnvString = {
17142
17094
  empty,
@@ -17922,7 +17874,7 @@ var string = {
17922
17874
  return typeError(v)("Str");
17923
17875
  }
17924
17876
  };
17925
- var unary = (dictShow) => (dictBoundedJoinSemilattice) => {
17877
+ var unary = (dictBoundedJoinSemilattice) => {
17926
17878
  const bot = dictBoundedJoinSemilattice.bot;
17927
17879
  return (id) => (f) => $Tuple(
17928
17880
  id,
@@ -17940,17 +17892,17 @@ var unary = (dictShow) => (dictBoundedJoinSemilattice) => {
17940
17892
  const $0 = dictMonadError.MonadThrow0().Monad0().Bind1().Apply0().Functor0();
17941
17893
  return (v) => {
17942
17894
  if (v.tag === "Cons" && v._2.tag === "Nil") {
17943
- const v$p = f.fwd(f.i.unpack(v._1._2));
17895
+ const $1 = v._1._2;
17944
17896
  return $0.map((() => {
17945
- const $1 = f.o;
17946
- return (v$1) => $Val(v$1._2, $1.pack(v$1._1));
17947
- })())($0.map((v2) => $Tuple(v$p, v2))(dictMonadWithGraphAlloc.new($$$Map(
17897
+ const $2 = f.o;
17898
+ return (v$1) => $Val(v$1._2, $2.pack(v$1._1));
17899
+ })())($0.map((v2) => $Tuple(f.fwd(f.i.unpack($1)), v2))(dictMonadWithGraphAlloc.new($$$Map(
17948
17900
  "Two",
17949
17901
  Leaf2,
17950
17902
  v._1._1,
17951
17903
  void 0,
17952
17904
  Leaf2
17953
- ))((k) => k(dictShow)(v$p))));
17905
+ ))));
17954
17906
  }
17955
17907
  fail();
17956
17908
  };
@@ -18079,7 +18031,7 @@ var $$boolean = {
18079
18031
  return typeError(v)("Boolean");
18080
18032
  }
18081
18033
  };
18082
- var binaryZero = (dictShow) => (dictBoundedJoinSemilattice) => {
18034
+ var binaryZero = (dictBoundedJoinSemilattice) => {
18083
18035
  const bot = dictBoundedJoinSemilattice.bot;
18084
18036
  return (dictIsZero) => (id) => (f) => $Tuple(
18085
18037
  id,
@@ -18099,11 +18051,10 @@ var binaryZero = (dictShow) => (dictBoundedJoinSemilattice) => {
18099
18051
  if (v.tag === "Cons" && v._2.tag === "Cons" && v._2._2.tag === "Nil") {
18100
18052
  const $1 = f.i.unpack(v._1._2);
18101
18053
  const $2 = f.i.unpack(v._2._1._2);
18102
- const v$p = f.fwd($1)($2);
18103
18054
  return $0.map((() => {
18104
18055
  const $3 = f.o;
18105
18056
  return (v$1) => $Val(v$1._2, $3.pack(v$1._1));
18106
- })())($0.map((v4) => $Tuple(v$p, v4))(dictMonadWithGraphAlloc.new((() => {
18057
+ })())($0.map((v4) => $Tuple(f.fwd($1)($2), v4))(dictMonadWithGraphAlloc.new((() => {
18107
18058
  if (dictIsZero.isZero($1)) {
18108
18059
  return $$$Map("Two", Leaf2, v._1._1, void 0, Leaf2);
18109
18060
  }
@@ -18117,7 +18068,7 @@ var binaryZero = (dictShow) => (dictBoundedJoinSemilattice) => {
18117
18068
  void 0,
18118
18069
  Leaf2
18119
18070
  ));
18120
- })())((k) => k(dictShow)(v$p))));
18071
+ })())));
18121
18072
  }
18122
18073
  fail();
18123
18074
  };
@@ -18168,7 +18119,7 @@ var binaryZero = (dictShow) => (dictBoundedJoinSemilattice) => {
18168
18119
  )
18169
18120
  );
18170
18121
  };
18171
- var binary = (dictShow) => (dictBoundedJoinSemilattice) => {
18122
+ var binary = (dictBoundedJoinSemilattice) => {
18172
18123
  const bot = dictBoundedJoinSemilattice.bot;
18173
18124
  return (id) => (f) => $Tuple(
18174
18125
  id,
@@ -18186,17 +18137,18 @@ var binary = (dictShow) => (dictBoundedJoinSemilattice) => {
18186
18137
  const $0 = dictMonadError.MonadThrow0().Monad0().Bind1().Apply0().Functor0();
18187
18138
  return (v) => {
18188
18139
  if (v.tag === "Cons" && v._2.tag === "Cons" && v._2._2.tag === "Nil") {
18189
- const v$p = f.fwd(f.i1.unpack(v._1._2))(f.i2.unpack(v._2._1._2));
18140
+ const $1 = v._1._2;
18141
+ const $2 = v._2._1._2;
18190
18142
  return $0.map((() => {
18191
- const $1 = f.o;
18192
- return (v$1) => $Val(v$1._2, $1.pack(v$1._1));
18193
- })())($0.map((v3) => $Tuple(v$p, v3))(dictMonadWithGraphAlloc.new(insert(ordVertex)(v._2._1._1)()($$$Map(
18143
+ const $3 = f.o;
18144
+ return (v$1) => $Val(v$1._2, $3.pack(v$1._1));
18145
+ })())($0.map((v3) => $Tuple(f.fwd(f.i1.unpack($1))(f.i2.unpack($2)), v3))(dictMonadWithGraphAlloc.new(insert(ordVertex)(v._2._1._1)()($$$Map(
18194
18146
  "Two",
18195
18147
  Leaf2,
18196
18148
  v._1._1,
18197
18149
  void 0,
18198
18150
  Leaf2
18199
- )))((k) => k(dictShow)(v$p))));
18151
+ )))));
18200
18152
  }
18201
18153
  fail();
18202
18154
  };
@@ -18257,14 +18209,13 @@ var union5 = (dictAs) => (dictAs1) => (dictAs2) => (dictAs3) => (v) => (v1) => (
18257
18209
  var unionStr = (dictAs) => (dictAs1) => union5(dictAs)(dictAs)(dictAs1)(dictAs1);
18258
18210
 
18259
18211
  // output-es/EvalGraph/index.js
18260
- var setSet4 = /* @__PURE__ */ setSet(ordDVertex);
18212
+ var setSet4 = /* @__PURE__ */ setSet(ordVertex);
18261
18213
  var disjointUnion2 = /* @__PURE__ */ disjointUnion(mapEnvStringVal);
18262
18214
  var fromFoldable17 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert(ordString)(a)()(m))(Leaf2))();
18263
18215
  var show22 = /* @__PURE__ */ (() => showSet(showString).show)();
18264
18216
  var toUnfoldable9 = /* @__PURE__ */ toUnfoldable4(unfoldableList);
18265
18217
  var union1 = /* @__PURE__ */ (() => setSet(ordString).union)();
18266
18218
  var fv = /* @__PURE__ */ (() => fVDict(fVElim).fv)();
18267
- var pack3 = (x) => (k) => k(showBaseVal)(x);
18268
18219
  var fromFoldable18 = /* @__PURE__ */ fromFoldable2(foldableList);
18269
18220
  var greaterThanOrEq = /* @__PURE__ */ (() => {
18270
18221
  const $0 = ordTuple(ordInt)(ordInt);
@@ -18354,31 +18305,29 @@ var match = (dictMonadWithGraphAlloc) => {
18354
18305
  if (v._2.tag === "Constr") {
18355
18306
  const $1 = v._2._1;
18356
18307
  const $2 = v1._1;
18357
- const $3 = v._2;
18358
- const $4 = v._2._2;
18359
- const $5 = v._1;
18308
+ const $3 = v._2._2;
18309
+ const $4 = v._1;
18360
18310
  return Bind1.bind(withMsg2("Pattern mismatch")(consistentWith2($$$Map("Two", Leaf2, $1, void 0, Leaf2))(mapObjectString.keys($2))))(() => Bind1.bind(orElse(MonadThrow0)("Incomplete patterns: no branch for " + showCtr($1))(_lookup(
18361
18311
  Nothing,
18362
18312
  Just,
18363
18313
  $1,
18364
18314
  $2
18365
- )))((\u03BA) => Bind1.bind(matchMany(dictMonadWithGraphAlloc)($4)(\u03BA))((v3) => $0.pure($Tuple(
18366
- v3._1,
18367
- $Tuple(v3._2._1, insert(ordDVertex)($Tuple($5, (k) => k(showBaseVal)($3)))()(v3._2._2))
18315
+ )))((\u03BA) => Bind1.bind(matchMany(dictMonadWithGraphAlloc)($3)(\u03BA))((v2) => $0.pure($Tuple(
18316
+ v2._1,
18317
+ $Tuple(v2._2._1, insert(ordVertex)($4)()(v2._2._2))
18368
18318
  )))));
18369
18319
  }
18370
18320
  return Bind1.bind(dataTypeForSetCtr.dataTypeFor(MonadThrow0)(mapObjectString.keys(v1._1)))((d) => MonadThrow0.throwError(error("Pattern mismatch: found " + intercalate4("\n")(removeDocWS(prettyVal(highlightableVertex).pretty(v)).lines) + ", expected " + d._1)));
18371
18321
  }
18372
18322
  if (v1.tag === "ElimDict") {
18373
18323
  if (v._2.tag === "Dictionary") {
18374
- const $1 = v._2;
18375
- const $2 = v1._1;
18376
- const $3 = v._2._1;
18377
- const $4 = v._1;
18378
- const $5 = v1._2;
18379
- return Bind1.bind(check(MonadThrow0)(difference2(ordString)($2)(fromFoldable17(mapObjectString.keys($3))).tag === "Leaf")("Pattern mismatch: found " + show22(mapObjectString.keys($3)) + ", expected " + show22($2)))(() => Bind1.bind(matchMany(dictMonadWithGraphAlloc)(listMap((k) => $$get(showString)(mapObjectString)(k)($3)._2)(toUnfoldable9($2)))($5))((v3) => $0.pure($Tuple(
18380
- v3._1,
18381
- $Tuple(v3._2._1, insert(ordDVertex)($Tuple($4, (k) => k(showBaseVal)($1)))()(v3._2._2))
18324
+ const $1 = v1._1;
18325
+ const $2 = v._2._1;
18326
+ const $3 = v._1;
18327
+ const $4 = v1._2;
18328
+ return Bind1.bind(check(MonadThrow0)(difference2(ordString)($1)(fromFoldable17(mapObjectString.keys($2))).tag === "Leaf")("Pattern mismatch: found " + show22(mapObjectString.keys($2)) + ", expected " + show22($1)))(() => Bind1.bind(matchMany(dictMonadWithGraphAlloc)(listMap((k) => $$get(showString)(mapObjectString)(k)($2)._2)(toUnfoldable9($1)))($4))((v2) => $0.pure($Tuple(
18329
+ v2._1,
18330
+ $Tuple(v2._2._1, insert(ordVertex)($3)()(v2._2._2))
18382
18331
  ))));
18383
18332
  }
18384
18333
  return MonadThrow0.throwError(error("Pattern mismatch: found " + intercalate4("\n")(removeDocWS(prettyVal(highlightableVertex).pretty(v)).lines) + ", expected " + show22(v1._1)));
@@ -18392,22 +18341,22 @@ var closeDefs = (dictMonadWithGraphAlloc) => {
18392
18341
  const traverse2 = traversableDict.traverse(Monad0.Applicative0());
18393
18342
  return (\u03B3) => (\u03C1) => (\u03B1s) => Functor0.map(Env)(traverse2((\u03C3) => {
18394
18343
  const \u03C1$p = forDefs(\u03C1)(\u03C3);
18395
- const v = $BaseVal(
18344
+ const $0 = $BaseVal(
18396
18345
  "Fun",
18397
18346
  $Fun(
18398
18347
  "Closure",
18399
18348
  (() => {
18400
- const $0 = union1(fv(\u03C1$p))(fVElim.fv(\u03C3));
18349
+ const $02 = union1(fv(\u03C1$p))(fVElim.fv(\u03C3));
18401
18350
  return filterWithKey2((x) => {
18402
- const $1 = setSet(ordString).member(x)($0);
18403
- return (v2) => $1;
18351
+ const $1 = setSet(ordString).member(x)($02);
18352
+ return (v) => $1;
18404
18353
  })(\u03B3);
18405
18354
  })(),
18406
18355
  \u03C1$p,
18407
18356
  \u03C3
18408
18357
  )
18409
18358
  );
18410
- return Functor0.map((f) => f(v))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(unDVertex(\u03B1s))(pack3(v))));
18359
+ return Functor0.map((f) => f($0))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(\u03B1s)));
18411
18360
  })(\u03C1));
18412
18361
  };
18413
18362
  var $$eval = (dictMonadWithGraphAlloc) => {
@@ -18432,22 +18381,13 @@ var $$eval = (dictMonadWithGraphAlloc) => {
18432
18381
  return withMsg2("Variable lookup")(lookup$p(MonadThrow0)(showString)(mapEnvStringVal)(v1._1)(v));
18433
18382
  }
18434
18383
  if (v1.tag === "Int") {
18435
- return Functor0.map((f) => f($BaseVal("Int", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)(v1._1)()(unDVertex(v2)))(pack3($BaseVal(
18436
- "Int",
18437
- v1._2
18438
- )))));
18384
+ return Functor0.map((f) => f($BaseVal("Int", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)(v1._1)()(v2))));
18439
18385
  }
18440
18386
  if (v1.tag === "Float") {
18441
- return Functor0.map((f) => f($BaseVal("Float", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)(v1._1)()(unDVertex(v2)))(pack3($BaseVal(
18442
- "Float",
18443
- v1._2
18444
- )))));
18387
+ return Functor0.map((f) => f($BaseVal("Float", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)(v1._1)()(v2))));
18445
18388
  }
18446
18389
  if (v1.tag === "Str") {
18447
- return Functor0.map((f) => f($BaseVal("Str", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)(v1._1)()(unDVertex(v2)))(pack3($BaseVal(
18448
- "Str",
18449
- v1._2
18450
- )))));
18390
+ return Functor0.map((f) => f($BaseVal("Str", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)(v1._1)()(v2))));
18451
18391
  }
18452
18392
  if (v1.tag === "Dictionary") {
18453
18393
  const $0 = v1._1;
@@ -18456,8 +18396,8 @@ var $$eval = (dictMonadWithGraphAlloc) => {
18456
18396
  return (a) => $1(a)(v2);
18457
18397
  })()))(v1._2)))((v3) => {
18458
18398
  const v4 = unzip(listMap((v$1) => $Tuple(v$1._2.tag === "Str" ? v$1._2._1 : typeError(v$1._2)("Str"), v$1._1))(v3._1));
18459
- const v5 = $BaseVal("Dictionary", fromFoldable18(zipWith2(Tuple)(v4._1)(zipWith2(Tuple)(v4._2)(v3._2))));
18460
- return Functor0.map((f) => f(v5))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)($0)()(unDVertex(v2)))(pack3(v5))));
18399
+ const $1 = $BaseVal("Dictionary", fromFoldable18(zipWith2(Tuple)(v4._1)(zipWith2(Tuple)(v4._2)(v3._2))));
18400
+ return Functor0.map((f) => f($1))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)($0)()(v2))));
18461
18401
  });
18462
18402
  }
18463
18403
  if (v1.tag === "Constr") {
@@ -18487,11 +18427,7 @@ var $$eval = (dictMonadWithGraphAlloc) => {
18487
18427
  })()))(() => Bind1.bind(traverse2((() => {
18488
18428
  const $3 = $$eval(dictMonadWithGraphAlloc)(v);
18489
18429
  return (a) => $3(a)(v2);
18490
- })())($1))((vs) => Functor0.map((f) => f($BaseVal("Constr", $0, vs)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)($2)()(unDVertex(v2)))(pack3($BaseVal(
18491
- "Constr",
18492
- $0,
18493
- vs
18494
- )))))));
18430
+ })())($1))((vs) => Functor0.map((f) => f($BaseVal("Constr", $0, vs)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)($2)()(v2))))));
18495
18431
  }
18496
18432
  if (v1.tag === "Matrix") {
18497
18433
  const $0 = v1._2;
@@ -18519,21 +18455,18 @@ var $$eval = (dictMonadWithGraphAlloc) => {
18519
18455
  return $8;
18520
18456
  })())))($0)(v2)
18521
18457
  ]))
18522
- ])))((vss) => Functor0.map((f) => f($BaseVal("Matrix", $Tuple(vss, $Tuple($Tuple($4, $6), $Tuple($5, $7))))))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)($3)()(unDVertex(v2)))(pack3($BaseVal(
18523
- "Matrix",
18524
- $Tuple(vss, $Tuple($Tuple($4, $6), $Tuple($5, $7)))
18525
- )))))));
18458
+ ])))((vss) => Functor0.map((f) => f($BaseVal("Matrix", $Tuple(vss, $Tuple($Tuple($4, $6), $Tuple($5, $7))))))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)($3)()(v2))))));
18526
18459
  });
18527
18460
  }
18528
18461
  if (v1.tag === "Lambda") {
18529
- const v3 = $BaseVal(
18462
+ const $0 = $BaseVal(
18530
18463
  "Fun",
18531
18464
  $Fun(
18532
18465
  "Closure",
18533
18466
  (() => {
18534
- const $0 = fVElim.fv(v1._2);
18467
+ const $02 = fVElim.fv(v1._2);
18535
18468
  return filterWithKey2((x) => {
18536
- const $1 = setSet(ordString).member(x)($0);
18469
+ const $1 = setSet(ordString).member(x)($02);
18537
18470
  return (v$1) => $1;
18538
18471
  })(v);
18539
18472
  })(),
@@ -18541,7 +18474,7 @@ var $$eval = (dictMonadWithGraphAlloc) => {
18541
18474
  v1._2
18542
18475
  )
18543
18476
  );
18544
- return Functor0.map((f) => f(v3))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)(v1._1)()(unDVertex(v2)))(pack3(v3))));
18477
+ return Functor0.map((f) => f($0))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)(v1._1)()(v2))));
18545
18478
  }
18546
18479
  if (v1.tag === "Project") {
18547
18480
  const $0 = v1._2;
@@ -18587,8 +18520,8 @@ var $$eval = (dictMonadWithGraphAlloc) => {
18587
18520
  }
18588
18521
  if (v1.tag === "LetRec") {
18589
18522
  const $0 = v1._2;
18590
- const inserted\u03B1 = insert(ordDVertex)($Tuple(v1._1._1, (k) => k(showString)("Expr")))()(v2);
18591
- return Bind1.bind(closeDefs1(v)(v1._1._2)(inserted\u03B1))((\u03B3$p) => $$eval(dictMonadWithGraphAlloc)(unionWith2((v$1) => identity14)(v)(\u03B3$p))($0)(inserted\u03B1));
18523
+ const $1 = v1._1._1;
18524
+ return Bind1.bind(closeDefs1(v)(v1._1._2)(insert(ordVertex)($1)()(v2)))((\u03B3$p) => $$eval(dictMonadWithGraphAlloc)(unionWith2((v$1) => identity14)(v)(\u03B3$p))($0)(insert(ordVertex)($1)()(v2)));
18592
18525
  }
18593
18526
  fail();
18594
18527
  };
@@ -18604,20 +18537,10 @@ var apply2 = (dictMonadWithGraphAlloc) => {
18604
18537
  const $0 = (v2) => MonadThrow0.throwError(error("Found " + intercalate4("\n")(removeDocWS(prettyVal(highlightableVertex).pretty(v2)).lines) + ", expected function"));
18605
18538
  if (v._2.tag === "Fun") {
18606
18539
  if (v._2._1.tag === "Closure") {
18607
- const $1 = v._2;
18608
- const $2 = v._1;
18609
- const $3 = v._2._1._1;
18610
- const $4 = v._2._1._3;
18611
- return Bind1.bind(closeDefs1($3)(v._2._1._2)($$$Map(
18612
- "Two",
18613
- Leaf2,
18614
- $Tuple($2, (k) => k(showBaseVal)($1)),
18615
- void 0,
18616
- Leaf2
18617
- )))((\u03B32) => Bind1.bind(match1(v1)($4))((v3) => $$eval(dictMonadWithGraphAlloc)(unionWith2((v$1) => identity14)(unionWith2((v$1) => identity14)($3)(\u03B32))(v3._1))(v3._2._1.tag === "ContExpr" ? v3._2._1._1 : throwException(error("Expression expected"))())(insert(ordDVertex)($Tuple(
18618
- $2,
18619
- (k) => k(showBaseVal)($1)
18620
- ))()(v3._2._2))));
18540
+ const $1 = v._1;
18541
+ const $2 = v._2._1._1;
18542
+ const $3 = v._2._1._3;
18543
+ return Bind1.bind(closeDefs1($2)(v._2._1._2)($$$Map("Two", Leaf2, $1, void 0, Leaf2)))((\u03B32) => Bind1.bind(match1(v1)($3))((v3) => $$eval(dictMonadWithGraphAlloc)(unionWith2((v$1) => identity14)(unionWith2((v$1) => identity14)($2)(\u03B32))(v3._1))(v3._2._1.tag === "ContExpr" ? v3._2._1._1 : throwException(error("Expression expected"))())(insert(ordVertex)($1)()(v3._2._2))));
18621
18544
  }
18622
18545
  if (v._2._1.tag === "Foreign") {
18623
18546
  const $1 = v._2._1._1._1;
@@ -18650,7 +18573,7 @@ var apply2 = (dictMonadWithGraphAlloc) => {
18650
18573
  v._1,
18651
18574
  void 0,
18652
18575
  Leaf2
18653
- ))(pack3($BaseVal("Fun", $Fun("Foreign", $Tuple($1, $2), vs$p))))));
18576
+ ))));
18654
18577
  }
18655
18578
  return $2._1["op'"](dictMonadWithGraphAlloc)(MonadError1)(vs$p);
18656
18579
  }
@@ -18701,26 +18624,26 @@ var apply2 = (dictMonadWithGraphAlloc) => {
18701
18624
  };
18702
18625
  return go(0)($2) < (n - 1 | 0);
18703
18626
  })()) {
18704
- const v$p2 = $BaseVal(
18627
+ const $42 = $BaseVal(
18705
18628
  "Fun",
18706
18629
  $Fun("PartialConstr", $1, foldableList.foldr(Cons)($List("Cons", v1, Nil))($2))
18707
18630
  );
18708
- return Functor0.map((f) => f(v$p2))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
18631
+ return Functor0.map((f) => f($42))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
18709
18632
  "Two",
18710
18633
  Leaf2,
18711
18634
  $3,
18712
18635
  void 0,
18713
18636
  Leaf2
18714
- ))(pack3(v$p2))));
18637
+ ))));
18715
18638
  }
18716
- const v$p = $BaseVal("Constr", $1, foldableList.foldr(Cons)($List("Cons", v1, Nil))($2));
18717
- return Functor0.map((f) => f(v$p))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
18639
+ const $4 = $BaseVal("Constr", $1, foldableList.foldr(Cons)($List("Cons", v1, Nil))($2));
18640
+ return Functor0.map((f) => f($4))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
18718
18641
  "Two",
18719
18642
  Leaf2,
18720
18643
  $3,
18721
18644
  void 0,
18722
18645
  Leaf2
18723
- ))(pack3(v$p))));
18646
+ ))));
18724
18647
  });
18725
18648
  }
18726
18649
  }
@@ -18746,10 +18669,7 @@ var eval_module = (dictMonadWithGraphAlloc) => {
18746
18669
  }
18747
18670
  if (v1._1.tag === "Right") {
18748
18671
  const $1 = v1._2;
18749
- return $0.bind(closeDefs1(unionWith2((v$1) => identity14)(\u03B3)(v))(v1._1._1._2)(insert(ordDVertex)($Tuple(
18750
- v1._1._1._1,
18751
- (k) => k(showString)("Expr")
18752
- ))()(v2)))((\u03B3$p$p) => go(unionWith2((v$1) => identity14)(v)(\u03B3$p$p))($1)(v2));
18672
+ return $0.bind(closeDefs1(unionWith2((v$1) => identity14)(\u03B3)(v))(v1._1._1._2)(insert(ordVertex)(v1._1._1._1)()(v2)))((\u03B3$p$p) => go(unionWith2((v$1) => identity14)(v)(\u03B3$p$p))($1)(v2));
18753
18673
  }
18754
18674
  }
18755
18675
  fail();
@@ -23992,7 +23912,6 @@ var apply2Bwd = (dictAnn) => {
23992
23912
  };
23993
23913
 
23994
23914
  // output-es/Primitive.Defs/index.js
23995
- var pack4 = (x) => (k) => k(showBaseVal)(x);
23996
23915
  var erase = /* @__PURE__ */ (() => functorVal.map((v) => {
23997
23916
  }))();
23998
23917
  var unzip6 = /* @__PURE__ */ unzip3(functorDict);
@@ -24002,24 +23921,11 @@ var foldWithIndexM = (dictMonad) => (f) => (a0) => foldableWithIndexStringDi.fol
24002
23921
  return (a) => $0(a)(b);
24003
23922
  })()))(dictMonad.Applicative0().pure(a0));
24004
23923
  var disjointUnion5 = /* @__PURE__ */ disjointUnion(mapDictString);
24005
- var unary2 = /* @__PURE__ */ unary(showInt)(boundedJoinSemilatticeUni);
24006
- var showEither = {
24007
- show: (v) => {
24008
- if (v.tag === "Left") {
24009
- return "(Left " + showIntImpl(v._1) + ")";
24010
- }
24011
- if (v.tag === "Right") {
24012
- return "(Right " + showNumberImpl(v._1) + ")";
24013
- }
24014
- fail();
24015
- }
24016
- };
24017
- var binary2 = /* @__PURE__ */ binary(showEither)(boundedJoinSemilatticeUni);
24018
- var binaryZero2 = /* @__PURE__ */ (() => binaryZero(showEither)(boundedJoinSemilatticeUni)({
24019
- isZero: fanin2(isZeroInt.isZero)(isZeroNumber.isZero)
24020
- }))();
24021
- var binary1 = /* @__PURE__ */ binary(showBoolean)(boundedJoinSemilatticeUni);
24022
- var binaryZero1 = /* @__PURE__ */ binaryZero(showInt)(boundedJoinSemilatticeUni)(isZeroInt);
23924
+ var unary2 = /* @__PURE__ */ unary(boundedJoinSemilatticeUni);
23925
+ var binary2 = /* @__PURE__ */ binary(boundedJoinSemilatticeUni);
23926
+ var binaryZero2 = /* @__PURE__ */ binaryZero(boundedJoinSemilatticeUni);
23927
+ var binaryZero1 = /* @__PURE__ */ (() => binaryZero2({ isZero: fanin2(isZeroInt.isZero)(isZeroNumber.isZero) }))();
23928
+ var binaryZero22 = /* @__PURE__ */ binaryZero2(isZeroInt);
24023
23929
  var pow3 = /* @__PURE__ */ union5(asNumberIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)((x) => (y) => pow(toNumber(x))(toNumber(y)))(pow);
24024
23930
  var numToStr = (v2) => {
24025
23931
  if (v2.tag === "Left") {
@@ -24041,14 +23947,14 @@ var matrixUpdate = /* @__PURE__ */ $Tuple(
24041
23947
  return (v) => {
24042
23948
  if (v.tag === "Cons" && v._1._2.tag === "Matrix" && v._2.tag === "Cons" && v._2._1._2.tag === "Constr" && v._2._1._2._2.tag === "Cons" && v._2._1._2._2._1._2.tag === "Int" && v._2._1._2._2._2.tag === "Cons" && v._2._1._2._2._2._1._2.tag === "Int" && v._2._1._2._2._2._2.tag === "Nil" && v._2._2.tag === "Cons" && v._2._2._2.tag === "Nil" && v._2._1._2._1 === "Pair") {
24043
23949
  const $0 = v._2._2._1;
24044
- const v$p = $BaseVal("Matrix", matrixPut(v._2._1._2._2._1._2._1)(v._2._1._2._2._2._1._2._1)((v$1) => $0)(v._1._2._1));
24045
- return Functor0.map((f) => f(v$p))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
23950
+ const $1 = $BaseVal("Matrix", matrixPut(v._2._1._2._2._1._2._1)(v._2._1._2._2._2._1._2._1)((v$1) => $0)(v._1._2._1));
23951
+ return Functor0.map((f) => f($1))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
24046
23952
  "Two",
24047
23953
  Leaf2,
24048
23954
  v._1._1,
24049
23955
  void 0,
24050
23956
  Leaf2
24051
- ))(pack4(v$p))));
23957
+ ))));
24052
23958
  }
24053
23959
  return MonadThrow0.throwError(error("Matrix, pair of integers and value expected"));
24054
23960
  };
@@ -24230,31 +24136,28 @@ var dims = /* @__PURE__ */ $Tuple(
24230
24136
  const Functor0 = Bind1.Apply0().Functor0();
24231
24137
  return (v) => {
24232
24138
  if (v.tag === "Cons" && v._1._2.tag === "Matrix" && v._2.tag === "Nil") {
24233
- const $0 = v._1._2._1._2._1._1;
24234
- const $1 = v._1._2._1._2._2._1;
24235
- const $2 = v._1._1;
24236
- const $3 = v._1._2._1._2._2._2;
24237
- return Bind1.bind(Functor0.map((f) => f($BaseVal("Int", $0)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
24139
+ const $0 = v._1._2._1._2._2._1;
24140
+ const $1 = v._1._1;
24141
+ const $2 = v._1._2._1._2._2._2;
24142
+ return Bind1.bind(Functor0.map((f) => f($BaseVal("Int", v._1._2._1._2._1._1)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
24238
24143
  "Two",
24239
24144
  Leaf2,
24240
24145
  v._1._2._1._2._1._2,
24241
24146
  void 0,
24242
24147
  Leaf2
24243
- ))(pack4($BaseVal("Int", $0))))))((v1) => Bind1.bind(Functor0.map((f) => f($BaseVal("Int", $1)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
24148
+ )))))((v1) => Bind1.bind(Functor0.map((f) => f($BaseVal("Int", $0)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
24244
24149
  "Two",
24245
24150
  Leaf2,
24246
- $3,
24151
+ $2,
24247
24152
  void 0,
24248
24153
  Leaf2
24249
- ))(pack4($BaseVal("Int", $1))))))((v2) => Functor0.map((f) => f($BaseVal(
24250
- "Constr",
24251
- "Pair",
24252
- $List("Cons", v1, $List("Cons", v2, Nil))
24253
- )))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map("Two", Leaf2, $2, void 0, Leaf2))(pack4($BaseVal(
24254
- "Constr",
24255
- "Pair",
24256
- $List("Cons", v1, $List("Cons", v2, Nil))
24257
- )))))));
24154
+ )))))((v2) => Functor0.map((f) => f($BaseVal("Constr", "Pair", $List("Cons", v1, $List("Cons", v2, Nil)))))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
24155
+ "Two",
24156
+ Leaf2,
24157
+ $1,
24158
+ void 0,
24159
+ Leaf2
24160
+ ))))));
24258
24161
  }
24259
24162
  return MonadThrow0.throwError(error("Matrix expected"));
24260
24163
  };
@@ -24334,7 +24237,7 @@ var dict_map = /* @__PURE__ */ $Tuple(
24334
24237
  $1,
24335
24238
  void 0,
24336
24239
  Leaf2
24337
- ))(pack4($BaseVal("Dictionary", d$p))))));
24240
+ )))));
24338
24241
  }
24339
24242
  return MonadThrow0.throwError(error("Function and dictionary expected"));
24340
24243
  };
@@ -24399,31 +24302,27 @@ var dict_intersectionWith = /* @__PURE__ */ $Tuple(
24399
24302
  const Bind1 = Monad0.Bind1();
24400
24303
  const Apply0 = Bind1.Apply0();
24401
24304
  const $0 = Apply0.Functor0();
24402
- const Applicative0 = Monad0.Applicative0();
24305
+ const sequence1 = traversableDict.sequence(Monad0.Applicative0());
24403
24306
  return (v) => {
24404
24307
  if (v.tag === "Cons" && v._2.tag === "Cons" && v._2._1._2.tag === "Dictionary" && v._2._2.tag === "Cons" && v._2._2._1._2.tag === "Dictionary" && v._2._2._2.tag === "Nil") {
24405
24308
  const $1 = v._1;
24406
- const $2 = v._2._1._1;
24407
- const $3 = v._2._2._1._1;
24408
- const v$p = $0.map(Dictionary3)($0.map(DictRep)(traversableDict.traverse(Applicative0)(identity15)(intersectionWith_Object((v2) => (v3) => {
24409
- const $4 = v3._2;
24410
- const $5 = v2._1;
24411
- const $6 = v3._1;
24412
- return Bind1.bind(Bind1.bind(apply6($1)(v2._2))((a) => apply6(a)($4)))((v4) => Bind1.bind(dictMonadWithGraphAlloc.new(insert(ordVertex)($6)()($$$Map(
24413
- "Two",
24414
- Leaf2,
24415
- $5,
24416
- void 0,
24417
- Leaf2
24418
- )))(pack4(v4._2)))((\u03B2$p$p) => $0.map(Tuple(\u03B2$p$p))(Applicative0.pure(v4))));
24419
- })(v._2._1._2._1)(v._2._2._1._2._1))));
24420
- return Bind1.bind(v$p)((packable) => Apply0.apply($0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)($3)()($$$Map(
24309
+ return Apply0.apply($0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)(v._2._2._1._1)()($$$Map(
24421
24310
  "Two",
24422
24311
  Leaf2,
24423
- $2,
24312
+ v._2._1._1,
24424
24313
  void 0,
24425
24314
  Leaf2
24426
- )))(pack4(packable))))(v$p));
24315
+ )))))($0.map(Dictionary3)($0.map(DictRep)(sequence1(intersectionWith_Object((v2) => (v3) => {
24316
+ const $2 = v2._2;
24317
+ const $3 = v3._2;
24318
+ return Bind1.bind(dictMonadWithGraphAlloc.new(insert(ordVertex)(v3._1)()($$$Map(
24319
+ "Two",
24320
+ Leaf2,
24321
+ v2._1,
24322
+ void 0,
24323
+ Leaf2
24324
+ ))))((\u03B2$p$p) => $0.map(Tuple(\u03B2$p$p))(Bind1.bind(apply6($1)($2))((a) => apply6(a)($3))));
24325
+ })(v._2._1._2._1)(v._2._2._1._2._1)))));
24427
24326
  }
24428
24327
  return MonadThrow0.throwError(error("Function and two dictionaries expected"));
24429
24328
  };
@@ -24656,14 +24555,14 @@ var dict_disjointUnion = /* @__PURE__ */ $Tuple(
24656
24555
  const Functor0 = MonadThrow0.Monad0().Bind1().Apply0().Functor0();
24657
24556
  return (v) => {
24658
24557
  if (v.tag === "Cons" && v._1._2.tag === "Dictionary" && v._2.tag === "Cons" && v._2._1._2.tag === "Dictionary" && v._2._2.tag === "Nil") {
24659
- const v1 = $BaseVal("Dictionary", disjointUnion5(v._1._2._1)(v._2._1._2._1));
24660
- return Functor0.map((f) => f(v1))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)(v._2._1._1)()($$$Map(
24558
+ const $0 = $BaseVal("Dictionary", disjointUnion5(v._1._2._1)(v._2._1._2._1));
24559
+ return Functor0.map((f) => f($0))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)(v._2._1._1)()($$$Map(
24661
24560
  "Two",
24662
24561
  Leaf2,
24663
24562
  v._1._1,
24664
24563
  void 0,
24665
24564
  Leaf2
24666
- )))(pack4(v1))));
24565
+ )))));
24667
24566
  }
24668
24567
  return MonadThrow0.throwError(error("Dictionaries expected"));
24669
24568
  };
@@ -24704,14 +24603,14 @@ var dict_difference = /* @__PURE__ */ $Tuple(
24704
24603
  const Functor0 = MonadThrow0.Monad0().Bind1().Apply0().Functor0();
24705
24604
  return (v) => {
24706
24605
  if (v.tag === "Cons" && v._1._2.tag === "Dictionary" && v._2.tag === "Cons" && v._2._1._2.tag === "Dictionary" && v._2._2.tag === "Nil") {
24707
- const v1 = $BaseVal("Dictionary", mapFObjectString.difference(v._1._2._1)(v._2._1._2._1));
24708
- return Functor0.map((f) => f(v1))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)(v._2._1._1)()($$$Map(
24606
+ const $0 = $BaseVal("Dictionary", mapFObjectString.difference(v._1._2._1)(v._2._1._2._1));
24607
+ return Functor0.map((f) => f($0))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)(v._2._1._1)()($$$Map(
24709
24608
  "Two",
24710
24609
  Leaf2,
24711
24610
  v._1._1,
24712
24611
  void 0,
24713
24612
  Leaf2
24714
- )))(pack4(v1))));
24613
+ )))));
24715
24614
  }
24716
24615
  return MonadThrow0.throwError(error("Dictionaries expected."));
24717
24616
  };
@@ -24780,8 +24679,8 @@ var primitives = /* @__PURE__ */ fromFoldable2(foldableArray)([
24780
24679
  /* @__PURE__ */ extern1(dims),
24781
24680
  /* @__PURE__ */ extern1(error_),
24782
24681
  /* @__PURE__ */ unary2("floor")({ i: number, o: $$int, fwd: floor2 }),
24783
- /* @__PURE__ */ unary(showNumber)(boundedJoinSemilatticeUni)("log")({ i: intOrNumber, o: number, fwd: log3 }),
24784
- /* @__PURE__ */ unary(showString)(boundedJoinSemilatticeUni)("numToStr")({ i: intOrNumber, o: string, fwd: numToStr }),
24682
+ /* @__PURE__ */ unary2("log")({ i: intOrNumber, o: number, fwd: log3 }),
24683
+ /* @__PURE__ */ unary2("numToStr")({ i: intOrNumber, o: string, fwd: numToStr }),
24785
24684
  /* @__PURE__ */ binary2("+")({
24786
24685
  i1: intOrNumber,
24787
24686
  i2: intOrNumber,
@@ -24794,30 +24693,25 @@ var primitives = /* @__PURE__ */ fromFoldable2(foldableArray)([
24794
24693
  o: intOrNumber,
24795
24694
  fwd: /* @__PURE__ */ union5(asIntIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)(intSub)(numSub)
24796
24695
  }),
24797
- /* @__PURE__ */ binaryZero2("*")({
24696
+ /* @__PURE__ */ binaryZero1("*")({
24798
24697
  i: intOrNumber,
24799
24698
  o: intOrNumber,
24800
24699
  fwd: /* @__PURE__ */ union5(asIntIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)(intMul)(numMul)
24801
24700
  }),
24802
- /* @__PURE__ */ binaryZero2("**")({ i: intOrNumber, o: intOrNumber, fwd: pow3 }),
24803
- /* @__PURE__ */ binaryZero2("/")({ i: intOrNumber, o: intOrNumber, fwd: divide }),
24804
- /* @__PURE__ */ binary1("==")({
24701
+ /* @__PURE__ */ binaryZero1("**")({ i: intOrNumber, o: intOrNumber, fwd: pow3 }),
24702
+ /* @__PURE__ */ binaryZero1("/")({ i: intOrNumber, o: intOrNumber, fwd: divide }),
24703
+ /* @__PURE__ */ binary2("==")({
24805
24704
  i1: intOrNumberOrString,
24806
24705
  i2: intOrNumberOrString,
24807
24706
  o: $$boolean,
24808
24707
  fwd: /* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)(eqIntImpl)(/* @__PURE__ */ unionStr(asBooleanBoolean)(asNumberString)(eqNumberImpl)(eqStringImpl))
24809
24708
  }),
24810
- /* @__PURE__ */ binary1("/=")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: notEquals }),
24811
- /* @__PURE__ */ binary1("<")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: lessThan }),
24812
- /* @__PURE__ */ binary1(">")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: greaterThan }),
24813
- /* @__PURE__ */ binary1("<=")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: lessThanEquals }),
24814
- /* @__PURE__ */ binary1(">=")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: greaterThanEquals }),
24815
- /* @__PURE__ */ binary(showString)(boundedJoinSemilatticeUni)("++")({
24816
- i1: string,
24817
- i2: string,
24818
- o: string,
24819
- fwd: concatString
24820
- }),
24709
+ /* @__PURE__ */ binary2("/=")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: notEquals }),
24710
+ /* @__PURE__ */ binary2("<")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: lessThan }),
24711
+ /* @__PURE__ */ binary2(">")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: greaterThan }),
24712
+ /* @__PURE__ */ binary2("<=")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: lessThanEquals }),
24713
+ /* @__PURE__ */ binary2(">=")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: greaterThanEquals }),
24714
+ /* @__PURE__ */ binary2("++")({ i1: string, i2: string, o: string, fwd: concatString }),
24821
24715
  /* @__PURE__ */ extern1(matrixLookup),
24822
24716
  /* @__PURE__ */ extern1(dict_difference),
24823
24717
  /* @__PURE__ */ extern1(dict_disjointUnion),
@@ -24826,10 +24720,10 @@ var primitives = /* @__PURE__ */ fromFoldable2(foldableArray)([
24826
24720
  /* @__PURE__ */ extern1(dict_intersectionWith),
24827
24721
  /* @__PURE__ */ extern1(dict_map),
24828
24722
  /* @__PURE__ */ extern1(matrixUpdate),
24829
- /* @__PURE__ */ binaryZero1("div")({ i: $$int, o: $$int, fwd: intDiv2 }),
24830
- /* @__PURE__ */ binaryZero1("mod")({ i: $$int, o: $$int, fwd: intMod }),
24831
- /* @__PURE__ */ binaryZero1("quot")({ i: $$int, o: $$int, fwd: quot }),
24832
- /* @__PURE__ */ binaryZero1("rem")({ i: $$int, o: $$int, fwd: rem })
24723
+ /* @__PURE__ */ binaryZero22("div")({ i: $$int, o: $$int, fwd: intDiv2 }),
24724
+ /* @__PURE__ */ binaryZero22("mod")({ i: $$int, o: $$int, fwd: intMod }),
24725
+ /* @__PURE__ */ binaryZero22("quot")({ i: $$int, o: $$int, fwd: quot }),
24726
+ /* @__PURE__ */ binaryZero22("rem")({ i: $$int, o: $$int, fwd: rem })
24833
24727
  ]);
24834
24728
 
24835
24729
  // output-es/ProgCxt/index.js
@@ -28550,7 +28444,7 @@ var parseImports = /* @__PURE__ */ $Parser(
28550
28444
  );
28551
28445
  var evaluate = (v) => {
28552
28446
  const $0 = v._1.fileName;
28553
- const fluidSrcPaths = ["fluid", ...v._1.library ? ["node_modules/@explorable-viz/fluid"] : []];
28447
+ const fluidSrcPaths = ["fluid", ...v._1.library ? ["node_modules/@explorable-viz/fluid/dist/fluid/fluid"] : []];
28554
28448
  return _bind(loadProgCxt3(fluidSrcPaths)(v._1.imports)(v._1.datasets))((progCxt) => _bind(prepConfig3(fluidSrcPaths)($0)(progCxt))((v1) => _bind(graphEval2(v1.gconfig)(v1.e))((v2) => _pure($Val(
28555
28449
  void 0,
28556
28450
  functorBaseVal.map((v$1) => {