@explorable-viz/fluid 0.7.77 → 0.7.79

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.
@@ -27874,29 +27874,22 @@ var verticesVertex = (dictFunctor) => (dictFoldable) => ({
27874
27874
  return (x2) => $0(dictFunctor.map(singleton3)(x2));
27875
27875
  })()
27876
27876
  });
27877
- var eqDVertex = { eq: (v) => (v1) => v._1 === v1._1 };
27878
- var ordDVertex = { compare: (v) => (v1) => ordString.compare(v._1)(v1._1), Eq0: () => eqDVertex };
27879
- var unDVertex = /* @__PURE__ */ map2(ordVertex)((x2) => x2._1);
27880
27877
  var showVertices = (\u03B1s) => "{" + joinWith(", ")(fromFoldable4(map2(ordString)(unsafeCoerce)(\u03B1s))) + "}";
27881
27878
  var showEdgeList = (es) => joinWith("\n")([
27882
27879
  "digraph G {",
27883
27880
  ...arrayMap((v) => " " + v)([
27884
27881
  "rankdir = RL",
27885
- ...arrayMap((v) => v._1 + " -> {" + joinWith(", ")(fromFoldable4(map2(ordString)(unsafeCoerce)(v._2._1))) + "}")(fromFoldable13(reverse2(es)))
27882
+ ...arrayMap((v) => v._1 + " -> {" + joinWith(", ")(fromFoldable4(map2(ordString)(unsafeCoerce)(v._2))) + "}")(fromFoldable13(reverse2(es)))
27886
27883
  ]),
27887
27884
  "}"
27888
27885
  ]);
27889
- var pack1 = (x2) => (k) => k(showString)(x2);
27890
27886
  var toEdgeList = (dictGraph) => (g) => {
27891
27887
  const $0 = (v) => {
27892
27888
  if (v._1.tag === "Nil") {
27893
27889
  return $Step("Done", v._2);
27894
27890
  }
27895
27891
  if (v._1.tag === "Cons") {
27896
- return $Step(
27897
- "Loop",
27898
- $Tuple(v._1._2, $List("Cons", $Tuple(v._1._1, $Tuple(dictGraph.outN(g)(v._1._1), pack1(""))), v._2))
27899
- );
27892
+ return $Step("Loop", $Tuple(v._1._2, $List("Cons", $Tuple(v._1._1, dictGraph.outN(g)(v._1._1)), v._2)));
27900
27893
  }
27901
27894
  fail();
27902
27895
  };
@@ -28168,15 +28161,14 @@ var $GraphImpl = (_1) => ({ tag: "GraphImpl", _1 });
28168
28161
  var eqSet = { eq: (v) => (v1) => eqMap(eqVertex)(eqUnit).eq(v)(v1) };
28169
28162
  var eq = /* @__PURE__ */ (() => eqObject(eqSet).eq)();
28170
28163
  var fromFoldable6 = /* @__PURE__ */ foldlArray((m) => (a) => insert3(ordVertex)(a)()(m))(Leaf2);
28171
- var pack = (x2) => (k) => k(showString)(x2);
28172
28164
  var toUnfoldable6 = /* @__PURE__ */ toUnfoldable4(unfoldableList);
28173
28165
  var fromFoldable15 = /* @__PURE__ */ (() => foldableSet.foldr(Cons)(Nil))();
28174
28166
  var fromFoldable23 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordVertex)(a)()(m))(Leaf2))();
28175
28167
  var toUnfoldable12 = /* @__PURE__ */ toAscUnfoldable(unfoldableArray);
28176
28168
  var fromFoldable32 = /* @__PURE__ */ fromFoldable2(ordVertex)(foldableArray);
28177
28169
  var verticesGraphImpl = { vertices: (v) => v._1.vertices };
28178
- var eqGraphImpl = { eq: (v) => (v1) => eq(_fmapObject(v._1.out, fst))(_fmapObject(v1._1.out, fst)) };
28179
- var sinks$p = (m) => fromFoldable6(arrayMap((x2) => x2._1)(filter((x2) => x2._2._1.tag === "Leaf")(toArrayWithKey(Tuple)(m))));
28170
+ var eqGraphImpl = { eq: (v) => (v1) => eq(v._1.out)(v1._1.out) };
28171
+ var sinks$p = (m) => fromFoldable6(arrayMap((x2) => x2._1)(filter((x2) => x2._2.tag === "Leaf")(toArrayWithKey(Tuple)(m))));
28180
28172
  var init5 = (\u03B1s) => () => {
28181
28173
  const obj = {};
28182
28174
  return monadRecST.tailRecM((v) => {
@@ -28188,7 +28180,7 @@ var init5 = (\u03B1s) => () => {
28188
28180
  const $1 = v._1._2;
28189
28181
  const $2 = v._2;
28190
28182
  return () => {
28191
- $2[$0] = $Tuple(Leaf2, pack("uninit: init"));
28183
+ $2[$0] = Leaf2;
28192
28184
  return $Step("Loop", $Tuple($1, $2));
28193
28185
  };
28194
28186
  }
@@ -28224,7 +28216,7 @@ var addIfMissing = (acc) => (v) => {
28224
28216
  return () => {
28225
28217
  const v1 = $0();
28226
28218
  if (v1.tag === "Nothing") {
28227
- acc[v] = $Tuple(Leaf2, pack("uninit: missing"));
28219
+ acc[v] = Leaf2;
28228
28220
  return acc;
28229
28221
  }
28230
28222
  if (v1.tag === "Just") {
@@ -28258,28 +28250,27 @@ var outMap = (\u03B1s) => (es) => {
28258
28250
  if (v._1.tag === "Cons") {
28259
28251
  const $1 = v._2;
28260
28252
  const $2 = v._1._2;
28261
- const $3 = v._1._1._2._2;
28262
- const $4 = v._1._1._1;
28263
- const $5 = v._1._1._2._1;
28264
- const $6 = peek($4)($1);
28253
+ const $3 = v._1._1._1;
28254
+ const $4 = v._1._1._2;
28255
+ const $5 = peek($3)($1);
28265
28256
  return () => {
28266
- const $7 = $6();
28257
+ const $6 = $5();
28267
28258
  if ((() => {
28268
- if ($7.tag === "Nothing") {
28259
+ if ($6.tag === "Nothing") {
28269
28260
  return true;
28270
28261
  }
28271
- if ($7.tag === "Just") {
28272
- return eqMap(eqVertex)(eqUnit).eq($7._1._1)(Leaf2);
28262
+ if ($6.tag === "Just") {
28263
+ return eqMap(eqVertex)(eqUnit).eq($6._1)(Leaf2);
28273
28264
  }
28274
28265
  fail();
28275
28266
  })()) {
28276
- const \u03B2s$p = toUnfoldable6($5);
28267
+ const \u03B2s$p = toUnfoldable6($4);
28277
28268
  monadRecST.tailRecM(assertPresent($1))(\u03B2s$p)();
28278
- $1[$4] = $Tuple($5, $3);
28269
+ $1[$3] = $4;
28279
28270
  const acc$p = addIfMissing$p(\u03B2s$p)($1)();
28280
28271
  return $Step("Loop", $Tuple($2, acc$p));
28281
28272
  }
28282
- return throwException(error("Duplicate edge list entry for " + showStringImpl($4)))()();
28273
+ return throwException(error("Duplicate edge list entry for " + showStringImpl($3)))()();
28283
28274
  };
28284
28275
  }
28285
28276
  fail();
@@ -28296,38 +28287,37 @@ var inMap = (\u03B1s) => (es) => {
28296
28287
  }
28297
28288
  if (v._1.tag === "Cons") {
28298
28289
  const $1 = v._1._2;
28299
- const $2 = v._1._1._2._2;
28300
- const $3 = v._1._1._1;
28301
- const $4 = monadRecST.tailRecM((v2) => {
28302
- if (v2._1.tag === "Nil") {
28303
- return () => $Step("Done", v2._2);
28290
+ const $2 = v._1._1._1;
28291
+ const $3 = monadRecST.tailRecM((v1) => {
28292
+ if (v1._1.tag === "Nil") {
28293
+ return () => $Step("Done", v1._2);
28304
28294
  }
28305
- if (v2._1.tag === "Cons") {
28306
- const $42 = v2._2;
28307
- const $5 = v2._1._1;
28308
- const $6 = v2._1._2;
28309
- const $7 = peek($5)($42);
28295
+ if (v1._1.tag === "Cons") {
28296
+ const $32 = v1._2;
28297
+ const $4 = v1._1._1;
28298
+ const $5 = v1._1._2;
28299
+ const $6 = peek($4)($32);
28310
28300
  return () => {
28311
- const v1 = $7();
28301
+ const v1$1 = $6();
28312
28302
  const acc$p = (() => {
28313
- if (v1.tag === "Nothing") {
28314
- $42[$5] = $Tuple($$$Map("Two", Leaf2, $3, void 0, Leaf2), $2);
28315
- return $42;
28303
+ if (v1$1.tag === "Nothing") {
28304
+ $32[$4] = $$$Map("Two", Leaf2, $2, void 0, Leaf2);
28305
+ return $32;
28316
28306
  }
28317
- if (v1.tag === "Just") {
28318
- $42[$5] = $Tuple(insert3(ordVertex)($3)()(v1._1._1), $2);
28319
- return $42;
28307
+ if (v1$1.tag === "Just") {
28308
+ $32[$4] = insert3(ordVertex)($2)()(v1$1._1);
28309
+ return $32;
28320
28310
  }
28321
28311
  fail();
28322
28312
  })();
28323
- return $Step("Loop", $Tuple($6, acc$p));
28313
+ return $Step("Loop", $Tuple($5, acc$p));
28324
28314
  };
28325
28315
  }
28326
28316
  fail();
28327
- })($Tuple(toUnfoldable6(v._1._1._2._1), v._2));
28317
+ })($Tuple(toUnfoldable6(v._1._1._2), v._2));
28328
28318
  return () => {
28329
- const a = $4();
28330
- const acc$p = addIfMissing(a)($3)();
28319
+ const a = $3();
28320
+ const acc$p = addIfMissing(a)($2)();
28331
28321
  return $Step("Loop", $Tuple($1, acc$p));
28332
28322
  };
28333
28323
  }
@@ -28336,8 +28326,7 @@ var inMap = (\u03B1s) => (es) => {
28336
28326
  };
28337
28327
  };
28338
28328
  var graphGraphImpl = {
28339
- outN: (v) => (\u03B1) => definitely("in graph")(_lookup(Nothing, Just, \u03B1, v._1.out))._1,
28340
- vertexData: (v) => (\u03B1) => definitely("in graph")(_lookup(Nothing, Just, \u03B1, v._1.out))._2,
28329
+ outN: (v) => (\u03B1) => definitely("in graph")(_lookup(Nothing, Just, \u03B1, v._1.out)),
28341
28330
  inN: (g) => graphGraphImpl.outN(graphGraphImpl.op(g)),
28342
28331
  elem: (\u03B1) => (v) => {
28343
28332
  const $0 = _lookup(Nothing, Just, \u03B1, v._1.out);
@@ -28376,7 +28365,7 @@ var graphGraphImpl = {
28376
28365
  topologicalSort: (v) => reverse2(topologicalSort(ordVertex)(fromFoldable32(arrayMap((x2) => $Tuple(
28377
28366
  x2._1,
28378
28367
  $Tuple(void 0, x2._2)
28379
- ))(toUnfoldable12(_fmapObject(_fmapObject(v._1.out, fst), toUnfoldable6)))))),
28368
+ ))(toUnfoldable12(_fmapObject(v._1.out, toUnfoldable6)))))),
28380
28369
  Eq0: () => eqGraphImpl,
28381
28370
  Vertices1: () => verticesGraphImpl
28382
28371
  };
@@ -34065,32 +34054,6 @@ var Dictionary3 = (value0) => $BaseVal("Dictionary", value0);
34065
34054
  var DictRep = (x2) => x2;
34066
34055
  var MatrixRep = (x2) => x2;
34067
34056
  var Env = (x2) => x2;
34068
- var showBaseVal = {
34069
- show: (v) => {
34070
- if (v.tag === "Int") {
34071
- return showIntImpl(v._1);
34072
- }
34073
- if (v.tag === "Float") {
34074
- return showNumberImpl(v._1);
34075
- }
34076
- if (v.tag === "Str") {
34077
- return showStringImpl(v._1);
34078
- }
34079
- if (v.tag === "Constr") {
34080
- return showStringImpl(v._1);
34081
- }
34082
- if (v.tag === "Dictionary") {
34083
- return "Dictionary";
34084
- }
34085
- if (v.tag === "Matrix") {
34086
- return "Matrix";
34087
- }
34088
- if (v.tag === "Fun") {
34089
- return "Function";
34090
- }
34091
- fail();
34092
- }
34093
- };
34094
34057
  var isEmptyEnv = { isEmpty: (v) => isEmpty(v) };
34095
34058
  var setEnvString = {
34096
34059
  empty,
@@ -34901,7 +34864,7 @@ var string2 = {
34901
34864
  return typeError(v)("Str");
34902
34865
  }
34903
34866
  };
34904
- var unary = (dictShow) => (dictBoundedJoinSemilattice) => {
34867
+ var unary = (dictBoundedJoinSemilattice) => {
34905
34868
  const bot2 = dictBoundedJoinSemilattice.bot;
34906
34869
  return (id3) => (f) => $Tuple(
34907
34870
  id3,
@@ -34919,17 +34882,17 @@ var unary = (dictShow) => (dictBoundedJoinSemilattice) => {
34919
34882
  const $0 = dictMonadError.MonadThrow0().Monad0().Bind1().Apply0().Functor0();
34920
34883
  return (v) => {
34921
34884
  if (v.tag === "Cons" && v._2.tag === "Nil") {
34922
- const v$p = f.fwd(f.i.unpack(v._1._2));
34885
+ const $1 = v._1._2;
34923
34886
  return $0.map((() => {
34924
- const $1 = f.o;
34925
- return (v$1) => $Val(v$1._2, $1.pack(v$1._1));
34926
- })())($0.map((v2) => $Tuple(v$p, v2))(dictMonadWithGraphAlloc.new($$$Map(
34887
+ const $2 = f.o;
34888
+ return (v$1) => $Val(v$1._2, $2.pack(v$1._1));
34889
+ })())($0.map((v2) => $Tuple(f.fwd(f.i.unpack($1)), v2))(dictMonadWithGraphAlloc.new($$$Map(
34927
34890
  "Two",
34928
34891
  Leaf2,
34929
34892
  v._1._1,
34930
34893
  void 0,
34931
34894
  Leaf2
34932
- ))((k) => k(dictShow)(v$p))));
34895
+ ))));
34933
34896
  }
34934
34897
  fail();
34935
34898
  };
@@ -35058,7 +35021,7 @@ var $$boolean = {
35058
35021
  return typeError(v)("Boolean");
35059
35022
  }
35060
35023
  };
35061
- var binaryZero = (dictShow) => (dictBoundedJoinSemilattice) => {
35024
+ var binaryZero = (dictBoundedJoinSemilattice) => {
35062
35025
  const bot2 = dictBoundedJoinSemilattice.bot;
35063
35026
  return (dictIsZero) => (id3) => (f) => $Tuple(
35064
35027
  id3,
@@ -35078,11 +35041,10 @@ var binaryZero = (dictShow) => (dictBoundedJoinSemilattice) => {
35078
35041
  if (v.tag === "Cons" && v._2.tag === "Cons" && v._2._2.tag === "Nil") {
35079
35042
  const $1 = f.i.unpack(v._1._2);
35080
35043
  const $2 = f.i.unpack(v._2._1._2);
35081
- const v$p = f.fwd($1)($2);
35082
35044
  return $0.map((() => {
35083
35045
  const $3 = f.o;
35084
35046
  return (v$1) => $Val(v$1._2, $3.pack(v$1._1));
35085
- })())($0.map((v4) => $Tuple(v$p, v4))(dictMonadWithGraphAlloc.new((() => {
35047
+ })())($0.map((v4) => $Tuple(f.fwd($1)($2), v4))(dictMonadWithGraphAlloc.new((() => {
35086
35048
  if (dictIsZero.isZero($1)) {
35087
35049
  return $$$Map("Two", Leaf2, v._1._1, void 0, Leaf2);
35088
35050
  }
@@ -35096,7 +35058,7 @@ var binaryZero = (dictShow) => (dictBoundedJoinSemilattice) => {
35096
35058
  void 0,
35097
35059
  Leaf2
35098
35060
  ));
35099
- })())((k) => k(dictShow)(v$p))));
35061
+ })())));
35100
35062
  }
35101
35063
  fail();
35102
35064
  };
@@ -35147,7 +35109,7 @@ var binaryZero = (dictShow) => (dictBoundedJoinSemilattice) => {
35147
35109
  )
35148
35110
  );
35149
35111
  };
35150
- var binary = (dictShow) => (dictBoundedJoinSemilattice) => {
35112
+ var binary = (dictBoundedJoinSemilattice) => {
35151
35113
  const bot2 = dictBoundedJoinSemilattice.bot;
35152
35114
  return (id3) => (f) => $Tuple(
35153
35115
  id3,
@@ -35165,17 +35127,18 @@ var binary = (dictShow) => (dictBoundedJoinSemilattice) => {
35165
35127
  const $0 = dictMonadError.MonadThrow0().Monad0().Bind1().Apply0().Functor0();
35166
35128
  return (v) => {
35167
35129
  if (v.tag === "Cons" && v._2.tag === "Cons" && v._2._2.tag === "Nil") {
35168
- const v$p = f.fwd(f.i1.unpack(v._1._2))(f.i2.unpack(v._2._1._2));
35130
+ const $1 = v._1._2;
35131
+ const $2 = v._2._1._2;
35169
35132
  return $0.map((() => {
35170
- const $1 = f.o;
35171
- return (v$1) => $Val(v$1._2, $1.pack(v$1._1));
35172
- })())($0.map((v3) => $Tuple(v$p, v3))(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v._2._1._1)()($$$Map(
35133
+ const $3 = f.o;
35134
+ return (v$1) => $Val(v$1._2, $3.pack(v$1._1));
35135
+ })())($0.map((v3) => $Tuple(f.fwd(f.i1.unpack($1))(f.i2.unpack($2)), v3))(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v._2._1._1)()($$$Map(
35173
35136
  "Two",
35174
35137
  Leaf2,
35175
35138
  v._1._1,
35176
35139
  void 0,
35177
35140
  Leaf2
35178
- )))((k) => k(dictShow)(v$p))));
35141
+ )))));
35179
35142
  }
35180
35143
  fail();
35181
35144
  };
@@ -37722,9 +37685,9 @@ var drawableTableView = {
37722
37685
  var arrayDictToArray2 = (x2) => arrayMap((a) => arrayMap((a$1) => $$get2(showString)(mapDictString)(a$1)(a))(x2));
37723
37686
 
37724
37687
  // output-es/App.View/index.js
37725
- var pack2 = (x2) => (k) => k(drawableBarChart)(x2);
37726
- var pack12 = (x2) => (k) => k(drawableLineChart)(x2);
37727
- var pack22 = (x2) => (k) => k(drawableScatterPlot)(x2);
37688
+ var pack = (x2) => (k) => k(drawableBarChart)(x2);
37689
+ var pack1 = (x2) => (k) => k(drawableLineChart)(x2);
37690
+ var pack2 = (x2) => (k) => k(drawableScatterPlot)(x2);
37728
37691
  var pack3 = (x2) => (k) => k(drawableParagraphSelState)(x2);
37729
37692
  var pack4 = (x2) => (k) => k(drawableMultiView)(x2);
37730
37693
  var identity28 = (x2) => x2;
@@ -37734,13 +37697,13 @@ var view = () => (v) => (v1) => (v2) => {
37734
37697
  if (v1._2.tag === "Constr") {
37735
37698
  if (v1._2._2.tag === "Cons" && v1._2._2._2.tag === "Nil") {
37736
37699
  if (v1._2._1 === "BarChart") {
37737
- return pack2(dict(reflectDictSelState\u{1D54A}$x215ValS22.from())(v1._2._2._1));
37700
+ return pack(dict(reflectDictSelState\u{1D54A}$x215ValS22.from())(v1._2._2._1));
37738
37701
  }
37739
37702
  if (v1._2._1 === "LineChart") {
37740
- return pack12(dict(reflectDictSelState\u{1D54A}$x215ValS13.from())(v1._2._2._1));
37703
+ return pack1(dict(reflectDictSelState\u{1D54A}$x215ValS13.from())(v1._2._2._1));
37741
37704
  }
37742
37705
  if (v1._2._1 === "ScatterPlot") {
37743
- return pack22(dict(reflectDictSelState\u{1D54A}$x215ValS5.from())(v1._2._2._1));
37706
+ return pack2(dict(reflectDictSelState\u{1D54A}$x215ValS5.from())(v1._2._2._1));
37744
37707
  }
37745
37708
  if (v1._2._1 === "Paragraph") {
37746
37709
  return pack3(reflectValSelState\u{1D54A}Paragr.from()(v1._2._2._1));
@@ -37856,8 +37819,8 @@ var monadWithGraphWithGraphT = (dictMonad) => {
37856
37819
  const $1 = monadStateStateT(dictMonad);
37857
37820
  const monadStateT = { Applicative0: () => applicativeStateT(dictMonad), Bind1: () => bindStateT(dictMonad) };
37858
37821
  return {
37859
- extend: (\u03B1) => (\u03B1s) => (vd) => {
37860
- const $2 = Cons($Tuple(\u03B1, $Tuple(\u03B1s, vd)));
37822
+ extend: (\u03B1) => (\u03B1s) => {
37823
+ const $2 = Cons($Tuple(\u03B1, \u03B1s));
37861
37824
  const $3 = $1.state((s) => $Tuple(void 0, $2(s)));
37862
37825
  return (s) => $0.map((v1) => $Tuple(void 0, v1._2))($3(s));
37863
37826
  },
@@ -37937,7 +37900,7 @@ var monadWithGraphAllocWithGr = (dictMonadError) => {
37937
37900
  const monadWithGraphWithGraphT1 = monadWithGraphWithGraphT(monadStateT);
37938
37901
  const monadErrorStateT2 = monadErrorStateT(monadErrorStateT(dictMonadError));
37939
37902
  return {
37940
- new: (\u03B1s) => (vd) => bindStateT2.bind(fresh1)((\u03B1) => bindStateT2.bind(monadWithGraphWithGraphT1.extend(\u03B1)(\u03B1s)(vd))(() => applicativeStateT(monadStateT).pure(\u03B1))),
37903
+ new: (\u03B1s) => bindStateT2.bind(fresh1)((\u03B1) => bindStateT2.bind(monadWithGraphWithGraphT1.extend(\u03B1)(\u03B1s))(() => applicativeStateT(monadStateT).pure(\u03B1))),
37941
37904
  MonadAlloc0: () => monadAllocWithGraphAllocT1,
37942
37905
  MonadError1: () => monadErrorStateT2,
37943
37906
  MonadWithGraph2: () => monadWithGraphWithGraphT1
@@ -37947,7 +37910,6 @@ var monadWithGraphAllocWithGr = (dictMonadError) => {
37947
37910
  // output-es/Graph.Slice/index.js
37948
37911
  var pure2 = /* @__PURE__ */ (() => applicativeStateT(monadIdentity).pure)();
37949
37912
  var extend3 = /* @__PURE__ */ (() => monadWithGraphWithGraphT(monadIdentity).extend)();
37950
- var pack7 = (x2) => (k) => k(showString)(x2);
37951
37913
  var tailRecM = /* @__PURE__ */ (() => monadRecStateT(monadRecIdentity).tailRecM)();
37952
37914
  var member4 = /* @__PURE__ */ (() => setSet(ordVertex).member)();
37953
37915
  var fromFoldable19 = /* @__PURE__ */ (() => foldableSet.foldr(Cons)(Nil))();
@@ -37973,7 +37935,7 @@ var fwdSlice = (dictGraph) => {
37973
37935
  fail();
37974
37936
  })();
37975
37937
  if (eqMap(eqVertex)(eqUnit).eq(\u03B2s)(dictGraph.outN($0)(v1.es._1._1))) {
37976
- return bindStateT(monadIdentity).bind(extend3(v1.es._1._1)(\u03B2s)(pack7("uninit: fwd")))(() => pure2($Step(
37938
+ return bindStateT(monadIdentity).bind(extend3(v1.es._1._1)(\u03B2s))(() => pure2($Step(
37977
37939
  "Loop",
37978
37940
  {
37979
37941
  pending: $$delete3(ordVertex)(v1.es._1._1)(v1.pending),
@@ -37998,12 +37960,10 @@ var bwdSlice = (dictGraph) => {
37998
37960
  return pure2($Step("Done", void 0));
37999
37961
  }
38000
37962
  if (v1.pending.tag === "Cons") {
38001
- const $2 = v1.pending._1._2._2;
38002
- const $3 = v1.pending._1._2._1;
38003
37963
  if (member4(v1.pending._1._1)(v1.visited)) {
38004
37964
  return pure2($Step("Loop", { visited: v1.visited, "\u03B1s": Nil, pending: v1.pending._2 }));
38005
37965
  }
38006
- return bindStateT(monadIdentity).bind(extend3(v1.pending._1._1)($3)(spyWhen(false)("Value found at " + showStringImpl(v1.pending._1._1))((v$1) => v$1((dictShow) => dictShow.show))($2)))(() => pure2($Step(
37966
+ return bindStateT(monadIdentity).bind(extend3(v1.pending._1._1)(v1.pending._1._2))(() => pure2($Step(
38007
37967
  "Loop",
38008
37968
  { visited: insert3(ordVertex)(v1.pending._1._1)()(v1.visited), "\u03B1s": Nil, pending: v1.pending._2 }
38009
37969
  )));
@@ -38017,7 +37977,7 @@ var bwdSlice = (dictGraph) => {
38017
37977
  {
38018
37978
  visited: v1.visited,
38019
37979
  "\u03B1s": foldableList.foldr(Cons)(v1["\u03B1s"]._2)(fromFoldable19(\u03B2s)),
38020
- pending: $List("Cons", $Tuple(v1["\u03B1s"]._1, $Tuple(\u03B2s, dictGraph.vertexData($0)(v1["\u03B1s"]._1))), v1.pending)
37980
+ pending: $List("Cons", $Tuple(v1["\u03B1s"]._1, \u03B2s), v1.pending)
38021
37981
  }
38022
37982
  ));
38023
37983
  }
@@ -38031,14 +37991,13 @@ var bwdSlice = (dictGraph) => {
38031
37991
  };
38032
37992
 
38033
37993
  // output-es/EvalGraph/index.js
38034
- var setSet4 = /* @__PURE__ */ setSet(ordDVertex);
37994
+ var setSet4 = /* @__PURE__ */ setSet(ordVertex);
38035
37995
  var disjointUnion2 = /* @__PURE__ */ disjointUnion(mapEnvStringVal);
38036
37996
  var fromFoldable20 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordString)(a)()(m))(Leaf2))();
38037
37997
  var show22 = /* @__PURE__ */ (() => showSet(showString).show)();
38038
37998
  var toUnfoldable10 = /* @__PURE__ */ toUnfoldable4(unfoldableList);
38039
37999
  var union1 = /* @__PURE__ */ (() => setSet(ordString).union)();
38040
38000
  var fv = /* @__PURE__ */ (() => fVDict(fVElim).fv)();
38041
- var pack8 = (x2) => (k) => k(showBaseVal)(x2);
38042
38001
  var fromFoldable110 = /* @__PURE__ */ fromFoldable(foldableList);
38043
38002
  var greaterThanOrEq = /* @__PURE__ */ (() => {
38044
38003
  const $0 = ordTuple(ordInt)(ordInt);
@@ -38128,31 +38087,29 @@ var match = (dictMonadWithGraphAlloc) => {
38128
38087
  if (v._2.tag === "Constr") {
38129
38088
  const $1 = v._2._1;
38130
38089
  const $2 = v1._1;
38131
- const $3 = v._2;
38132
- const $4 = v._2._2;
38133
- const $5 = v._1;
38090
+ const $3 = v._2._2;
38091
+ const $4 = v._1;
38134
38092
  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(
38135
38093
  Nothing,
38136
38094
  Just,
38137
38095
  $1,
38138
38096
  $2
38139
- )))((\u03BA) => Bind1.bind(matchMany(dictMonadWithGraphAlloc)($4)(\u03BA))((v3) => $0.pure($Tuple(
38140
- v3._1,
38141
- $Tuple(v3._2._1, insert3(ordDVertex)($Tuple($5, (k) => k(showBaseVal)($3)))()(v3._2._2))
38097
+ )))((\u03BA) => Bind1.bind(matchMany(dictMonadWithGraphAlloc)($3)(\u03BA))((v2) => $0.pure($Tuple(
38098
+ v2._1,
38099
+ $Tuple(v2._2._1, insert3(ordVertex)($4)()(v2._2._2))
38142
38100
  )))));
38143
38101
  }
38144
38102
  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)));
38145
38103
  }
38146
38104
  if (v1.tag === "ElimDict") {
38147
38105
  if (v._2.tag === "Dictionary") {
38148
- const $1 = v._2;
38149
- const $2 = v1._1;
38150
- const $3 = v._2._1;
38151
- const $4 = v._1;
38152
- const $5 = v1._2;
38153
- return Bind1.bind(check(MonadThrow0)(difference2(ordString)($2)(fromFoldable20(mapObjectString.keys($3))).tag === "Leaf")("Pattern mismatch: found " + show22(mapObjectString.keys($3)) + ", expected " + show22($2)))(() => Bind1.bind(matchMany(dictMonadWithGraphAlloc)(listMap((k) => $$get2(showString)(mapObjectString)(k)($3)._2)(toUnfoldable10($2)))($5))((v3) => $0.pure($Tuple(
38154
- v3._1,
38155
- $Tuple(v3._2._1, insert3(ordDVertex)($Tuple($4, (k) => k(showBaseVal)($1)))()(v3._2._2))
38106
+ const $1 = v1._1;
38107
+ const $2 = v._2._1;
38108
+ const $3 = v._1;
38109
+ const $4 = v1._2;
38110
+ return Bind1.bind(check(MonadThrow0)(difference2(ordString)($1)(fromFoldable20(mapObjectString.keys($2))).tag === "Leaf")("Pattern mismatch: found " + show22(mapObjectString.keys($2)) + ", expected " + show22($1)))(() => Bind1.bind(matchMany(dictMonadWithGraphAlloc)(listMap((k) => $$get2(showString)(mapObjectString)(k)($2)._2)(toUnfoldable10($1)))($4))((v2) => $0.pure($Tuple(
38111
+ v2._1,
38112
+ $Tuple(v2._2._1, insert3(ordVertex)($3)()(v2._2._2))
38156
38113
  ))));
38157
38114
  }
38158
38115
  return MonadThrow0.throwError(error("Pattern mismatch: found " + intercalate4("\n")(removeDocWS(prettyVal(highlightableVertex).pretty(v)).lines) + ", expected " + show22(v1._1)));
@@ -38190,22 +38147,22 @@ var closeDefs = (dictMonadWithGraphAlloc) => {
38190
38147
  const traverse2 = traversableDict.traverse(Monad0.Applicative0());
38191
38148
  return (\u03B3) => (\u03C1) => (\u03B1s) => Functor0.map(Env)(traverse2((\u03C3) => {
38192
38149
  const \u03C1$p = forDefs(\u03C1)(\u03C3);
38193
- const v = $BaseVal(
38150
+ const $0 = $BaseVal(
38194
38151
  "Fun",
38195
38152
  $Fun(
38196
38153
  "Closure",
38197
38154
  (() => {
38198
- const $0 = union1(fv(\u03C1$p))(fVElim.fv(\u03C3));
38155
+ const $02 = union1(fv(\u03C1$p))(fVElim.fv(\u03C3));
38199
38156
  return filterWithKey((x2) => {
38200
- const $1 = setSet(ordString).member(x2)($0);
38201
- return (v2) => $1;
38157
+ const $1 = setSet(ordString).member(x2)($02);
38158
+ return (v) => $1;
38202
38159
  })(\u03B3);
38203
38160
  })(),
38204
38161
  \u03C1$p,
38205
38162
  \u03C3
38206
38163
  )
38207
38164
  );
38208
- return Functor0.map((f) => f(v))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(unDVertex(\u03B1s))(pack8(v))));
38165
+ return Functor0.map((f) => f($0))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(\u03B1s)));
38209
38166
  })(\u03C1));
38210
38167
  };
38211
38168
  var $$eval = (dictMonadWithGraphAlloc) => {
@@ -38230,22 +38187,13 @@ var $$eval = (dictMonadWithGraphAlloc) => {
38230
38187
  return withMsg2("Variable lookup")(lookup$p(MonadThrow0)(showString)(mapEnvStringVal)(v1._1)(v));
38231
38188
  }
38232
38189
  if (v1.tag === "Int") {
38233
- return Functor0.map((f) => f($BaseVal("Int", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(unDVertex(v2)))(pack8($BaseVal(
38234
- "Int",
38235
- v1._2
38236
- )))));
38190
+ return Functor0.map((f) => f($BaseVal("Int", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))));
38237
38191
  }
38238
38192
  if (v1.tag === "Float") {
38239
- return Functor0.map((f) => f($BaseVal("Float", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(unDVertex(v2)))(pack8($BaseVal(
38240
- "Float",
38241
- v1._2
38242
- )))));
38193
+ return Functor0.map((f) => f($BaseVal("Float", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))));
38243
38194
  }
38244
38195
  if (v1.tag === "Str") {
38245
- return Functor0.map((f) => f($BaseVal("Str", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(unDVertex(v2)))(pack8($BaseVal(
38246
- "Str",
38247
- v1._2
38248
- )))));
38196
+ return Functor0.map((f) => f($BaseVal("Str", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))));
38249
38197
  }
38250
38198
  if (v1.tag === "Dictionary") {
38251
38199
  const $0 = v1._1;
@@ -38254,8 +38202,8 @@ var $$eval = (dictMonadWithGraphAlloc) => {
38254
38202
  return (a) => $1(a)(v2);
38255
38203
  })()))(v1._2)))((v3) => {
38256
38204
  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));
38257
- const v5 = $BaseVal("Dictionary", fromFoldable110(zipWith2(Tuple)(v4._1)(zipWith2(Tuple)(v4._2)(v3._2))));
38258
- return Functor0.map((f) => f(v5))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($0)()(unDVertex(v2)))(pack8(v5))));
38205
+ const $1 = $BaseVal("Dictionary", fromFoldable110(zipWith2(Tuple)(v4._1)(zipWith2(Tuple)(v4._2)(v3._2))));
38206
+ return Functor0.map((f) => f($1))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($0)()(v2))));
38259
38207
  });
38260
38208
  }
38261
38209
  if (v1.tag === "Constr") {
@@ -38285,11 +38233,7 @@ var $$eval = (dictMonadWithGraphAlloc) => {
38285
38233
  })()))(() => Bind1.bind(traverse2((() => {
38286
38234
  const $3 = $$eval(dictMonadWithGraphAlloc)(v);
38287
38235
  return (a) => $3(a)(v2);
38288
- })())($1))((vs) => Functor0.map((f) => f($BaseVal("Constr", $0, vs)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($2)()(unDVertex(v2)))(pack8($BaseVal(
38289
- "Constr",
38290
- $0,
38291
- vs
38292
- )))))));
38236
+ })())($1))((vs) => Functor0.map((f) => f($BaseVal("Constr", $0, vs)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($2)()(v2))))));
38293
38237
  }
38294
38238
  if (v1.tag === "Matrix") {
38295
38239
  const $0 = v1._2;
@@ -38317,21 +38261,18 @@ var $$eval = (dictMonadWithGraphAlloc) => {
38317
38261
  return $8;
38318
38262
  })())))($0)(v2)
38319
38263
  ]))
38320
- ])))((vss) => Functor0.map((f) => f($BaseVal("Matrix", $Tuple(vss, $Tuple($Tuple($4, $6), $Tuple($5, $7))))))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($3)()(unDVertex(v2)))(pack8($BaseVal(
38321
- "Matrix",
38322
- $Tuple(vss, $Tuple($Tuple($4, $6), $Tuple($5, $7)))
38323
- )))))));
38264
+ ])))((vss) => Functor0.map((f) => f($BaseVal("Matrix", $Tuple(vss, $Tuple($Tuple($4, $6), $Tuple($5, $7))))))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($3)()(v2))))));
38324
38265
  });
38325
38266
  }
38326
38267
  if (v1.tag === "Lambda") {
38327
- const v3 = $BaseVal(
38268
+ const $0 = $BaseVal(
38328
38269
  "Fun",
38329
38270
  $Fun(
38330
38271
  "Closure",
38331
38272
  (() => {
38332
- const $0 = fVElim.fv(v1._2);
38273
+ const $02 = fVElim.fv(v1._2);
38333
38274
  return filterWithKey((x2) => {
38334
- const $1 = setSet(ordString).member(x2)($0);
38275
+ const $1 = setSet(ordString).member(x2)($02);
38335
38276
  return (v$1) => $1;
38336
38277
  })(v);
38337
38278
  })(),
@@ -38339,7 +38280,7 @@ var $$eval = (dictMonadWithGraphAlloc) => {
38339
38280
  v1._2
38340
38281
  )
38341
38282
  );
38342
- return Functor0.map((f) => f(v3))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(unDVertex(v2)))(pack8(v3))));
38283
+ return Functor0.map((f) => f($0))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))));
38343
38284
  }
38344
38285
  if (v1.tag === "Project") {
38345
38286
  const $0 = v1._2;
@@ -38385,8 +38326,8 @@ var $$eval = (dictMonadWithGraphAlloc) => {
38385
38326
  }
38386
38327
  if (v1.tag === "LetRec") {
38387
38328
  const $0 = v1._2;
38388
- const inserted\u03B1 = insert3(ordDVertex)($Tuple(v1._1._1, (k) => k(showString)("Expr")))()(v2);
38389
- return Bind1.bind(closeDefs1(v)(v1._1._2)(inserted\u03B1))((\u03B3$p) => $$eval(dictMonadWithGraphAlloc)(unionWith((v$1) => identity18)(v)(\u03B3$p))($0)(inserted\u03B1));
38329
+ const $1 = v1._1._1;
38330
+ return Bind1.bind(closeDefs1(v)(v1._1._2)(insert3(ordVertex)($1)()(v2)))((\u03B3$p) => $$eval(dictMonadWithGraphAlloc)(unionWith((v$1) => identity18)(v)(\u03B3$p))($0)(insert3(ordVertex)($1)()(v2)));
38390
38331
  }
38391
38332
  fail();
38392
38333
  };
@@ -38402,20 +38343,10 @@ var apply2 = (dictMonadWithGraphAlloc) => {
38402
38343
  const $0 = (v2) => MonadThrow0.throwError(error("Found " + intercalate4("\n")(removeDocWS(prettyVal(highlightableVertex).pretty(v2)).lines) + ", expected function"));
38403
38344
  if (v._2.tag === "Fun") {
38404
38345
  if (v._2._1.tag === "Closure") {
38405
- const $1 = v._2;
38406
- const $2 = v._1;
38407
- const $3 = v._2._1._1;
38408
- const $4 = v._2._1._3;
38409
- return Bind1.bind(closeDefs1($3)(v._2._1._2)($$$Map(
38410
- "Two",
38411
- Leaf2,
38412
- $Tuple($2, (k) => k(showBaseVal)($1)),
38413
- void 0,
38414
- Leaf2
38415
- )))((\u03B32) => Bind1.bind(match1(v1)($4))((v3) => $$eval(dictMonadWithGraphAlloc)(unionWith((v$1) => identity18)(unionWith((v$1) => identity18)($3)(\u03B32))(v3._1))(v3._2._1.tag === "ContExpr" ? v3._2._1._1 : throwException(error("Expression expected"))())(insert3(ordDVertex)($Tuple(
38416
- $2,
38417
- (k) => k(showBaseVal)($1)
38418
- ))()(v3._2._2))));
38346
+ const $1 = v._1;
38347
+ const $2 = v._2._1._1;
38348
+ const $3 = v._2._1._3;
38349
+ 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)(unionWith((v$1) => identity18)(unionWith((v$1) => identity18)($2)(\u03B32))(v3._1))(v3._2._1.tag === "ContExpr" ? v3._2._1._1 : throwException(error("Expression expected"))())(insert3(ordVertex)($1)()(v3._2._2))));
38419
38350
  }
38420
38351
  if (v._2._1.tag === "Foreign") {
38421
38352
  const $1 = v._2._1._1._1;
@@ -38448,7 +38379,7 @@ var apply2 = (dictMonadWithGraphAlloc) => {
38448
38379
  v._1,
38449
38380
  void 0,
38450
38381
  Leaf2
38451
- ))(pack8($BaseVal("Fun", $Fun("Foreign", $Tuple($1, $2), vs$p))))));
38382
+ ))));
38452
38383
  }
38453
38384
  return $2._1["op'"](dictMonadWithGraphAlloc)(MonadError1)(vs$p);
38454
38385
  }
@@ -38499,26 +38430,26 @@ var apply2 = (dictMonadWithGraphAlloc) => {
38499
38430
  };
38500
38431
  return go(0)($2) < (n - 1 | 0);
38501
38432
  })()) {
38502
- const v$p2 = $BaseVal(
38433
+ const $42 = $BaseVal(
38503
38434
  "Fun",
38504
38435
  $Fun("PartialConstr", $1, foldableList.foldr(Cons)($List("Cons", v1, Nil))($2))
38505
38436
  );
38506
- return Functor0.map((f) => f(v$p2))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
38437
+ return Functor0.map((f) => f($42))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
38507
38438
  "Two",
38508
38439
  Leaf2,
38509
38440
  $3,
38510
38441
  void 0,
38511
38442
  Leaf2
38512
- ))(pack8(v$p2))));
38443
+ ))));
38513
38444
  }
38514
- const v$p = $BaseVal("Constr", $1, foldableList.foldr(Cons)($List("Cons", v1, Nil))($2));
38515
- return Functor0.map((f) => f(v$p))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
38445
+ const $4 = $BaseVal("Constr", $1, foldableList.foldr(Cons)($List("Cons", v1, Nil))($2));
38446
+ return Functor0.map((f) => f($4))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
38516
38447
  "Two",
38517
38448
  Leaf2,
38518
38449
  $3,
38519
38450
  void 0,
38520
38451
  Leaf2
38521
- ))(pack8(v$p))));
38452
+ ))));
38522
38453
  });
38523
38454
  }
38524
38455
  }
@@ -38544,10 +38475,7 @@ var eval_module = (dictMonadWithGraphAlloc) => {
38544
38475
  }
38545
38476
  if (v1._1.tag === "Right") {
38546
38477
  const $1 = v1._2;
38547
- return $0.bind(closeDefs1(unionWith((v$1) => identity18)(\u03B3)(v))(v1._1._1._2)(insert3(ordDVertex)($Tuple(
38548
- v1._1._1._1,
38549
- (k) => k(showString)("Expr")
38550
- ))()(v2)))((\u03B3$p$p) => go(unionWith((v$1) => identity18)(v)(\u03B3$p$p))($1)(v2));
38478
+ return $0.bind(closeDefs1(unionWith((v$1) => identity18)(\u03B3)(v))(v1._1._1._2)(insert3(ordVertex)(v1._1._1._1)()(v2)))((\u03B3$p$p) => go(unionWith((v$1) => identity18)(v)(\u03B3$p$p))($1)(v2));
38551
38479
  }
38552
38480
  }
38553
38481
  fail();
@@ -42936,7 +42864,6 @@ var apply2Bwd = (dictAnn) => {
42936
42864
  };
42937
42865
 
42938
42866
  // output-es/Primitive.Defs/index.js
42939
- var pack9 = (x2) => (k) => k(showBaseVal)(x2);
42940
42867
  var erase = /* @__PURE__ */ (() => functorVal.map((v) => {
42941
42868
  }))();
42942
42869
  var unzip6 = /* @__PURE__ */ unzip3(functorDict);
@@ -42946,24 +42873,11 @@ var foldWithIndexM = (dictMonad) => (f) => (a0) => foldableWithIndexStringDi.fol
42946
42873
  return (a) => $0(a)(b);
42947
42874
  })()))(dictMonad.Applicative0().pure(a0));
42948
42875
  var disjointUnion5 = /* @__PURE__ */ disjointUnion(mapDictString);
42949
- var unary2 = /* @__PURE__ */ unary(showInt)(boundedJoinSemilatticeUni);
42950
- var showEither = {
42951
- show: (v) => {
42952
- if (v.tag === "Left") {
42953
- return "(Left " + showIntImpl(v._1) + ")";
42954
- }
42955
- if (v.tag === "Right") {
42956
- return "(Right " + showNumberImpl(v._1) + ")";
42957
- }
42958
- fail();
42959
- }
42960
- };
42961
- var binary2 = /* @__PURE__ */ binary(showEither)(boundedJoinSemilatticeUni);
42962
- var binaryZero2 = /* @__PURE__ */ (() => binaryZero(showEither)(boundedJoinSemilatticeUni)({
42963
- isZero: fanin2(isZeroInt.isZero)(isZeroNumber.isZero)
42964
- }))();
42965
- var binary1 = /* @__PURE__ */ binary(showBoolean)(boundedJoinSemilatticeUni);
42966
- var binaryZero1 = /* @__PURE__ */ binaryZero(showInt)(boundedJoinSemilatticeUni)(isZeroInt);
42876
+ var unary2 = /* @__PURE__ */ unary(boundedJoinSemilatticeUni);
42877
+ var binary2 = /* @__PURE__ */ binary(boundedJoinSemilatticeUni);
42878
+ var binaryZero2 = /* @__PURE__ */ binaryZero(boundedJoinSemilatticeUni);
42879
+ var binaryZero1 = /* @__PURE__ */ (() => binaryZero2({ isZero: fanin2(isZeroInt.isZero)(isZeroNumber.isZero) }))();
42880
+ var binaryZero22 = /* @__PURE__ */ binaryZero2(isZeroInt);
42967
42881
  var pow3 = /* @__PURE__ */ union5(asNumberIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)((x2) => (y2) => pow(toNumber(x2))(toNumber(y2)))(pow);
42968
42882
  var numToStr = (v2) => {
42969
42883
  if (v2.tag === "Left") {
@@ -42985,14 +42899,14 @@ var matrixUpdate = /* @__PURE__ */ $Tuple(
42985
42899
  return (v) => {
42986
42900
  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") {
42987
42901
  const $0 = v._2._2._1;
42988
- 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));
42989
- return Functor0.map((f) => f(v$p))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
42902
+ 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));
42903
+ return Functor0.map((f) => f($1))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
42990
42904
  "Two",
42991
42905
  Leaf2,
42992
42906
  v._1._1,
42993
42907
  void 0,
42994
42908
  Leaf2
42995
- ))(pack9(v$p))));
42909
+ ))));
42996
42910
  }
42997
42911
  return MonadThrow0.throwError(error("Matrix, pair of integers and value expected"));
42998
42912
  };
@@ -43174,31 +43088,28 @@ var dims = /* @__PURE__ */ $Tuple(
43174
43088
  const Functor0 = Bind1.Apply0().Functor0();
43175
43089
  return (v) => {
43176
43090
  if (v.tag === "Cons" && v._1._2.tag === "Matrix" && v._2.tag === "Nil") {
43177
- const $0 = v._1._2._1._2._1._1;
43178
- const $1 = v._1._2._1._2._2._1;
43179
- const $2 = v._1._1;
43180
- const $3 = v._1._2._1._2._2._2;
43181
- return Bind1.bind(Functor0.map((f) => f($BaseVal("Int", $0)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
43091
+ const $0 = v._1._2._1._2._2._1;
43092
+ const $1 = v._1._1;
43093
+ const $2 = v._1._2._1._2._2._2;
43094
+ return Bind1.bind(Functor0.map((f) => f($BaseVal("Int", v._1._2._1._2._1._1)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
43182
43095
  "Two",
43183
43096
  Leaf2,
43184
43097
  v._1._2._1._2._1._2,
43185
43098
  void 0,
43186
43099
  Leaf2
43187
- ))(pack9($BaseVal("Int", $0))))))((v1) => Bind1.bind(Functor0.map((f) => f($BaseVal("Int", $1)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
43100
+ )))))((v1) => Bind1.bind(Functor0.map((f) => f($BaseVal("Int", $0)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
43188
43101
  "Two",
43189
43102
  Leaf2,
43190
- $3,
43103
+ $2,
43191
43104
  void 0,
43192
43105
  Leaf2
43193
- ))(pack9($BaseVal("Int", $1))))))((v2) => Functor0.map((f) => f($BaseVal(
43194
- "Constr",
43195
- "Pair",
43196
- $List("Cons", v1, $List("Cons", v2, Nil))
43197
- )))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map("Two", Leaf2, $2, void 0, Leaf2))(pack9($BaseVal(
43198
- "Constr",
43199
- "Pair",
43200
- $List("Cons", v1, $List("Cons", v2, Nil))
43201
- )))))));
43106
+ )))))((v2) => Functor0.map((f) => f($BaseVal("Constr", "Pair", $List("Cons", v1, $List("Cons", v2, Nil)))))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
43107
+ "Two",
43108
+ Leaf2,
43109
+ $1,
43110
+ void 0,
43111
+ Leaf2
43112
+ ))))));
43202
43113
  }
43203
43114
  return MonadThrow0.throwError(error("Matrix expected"));
43204
43115
  };
@@ -43278,7 +43189,7 @@ var dict_map = /* @__PURE__ */ $Tuple(
43278
43189
  $1,
43279
43190
  void 0,
43280
43191
  Leaf2
43281
- ))(pack9($BaseVal("Dictionary", d$p))))));
43192
+ )))));
43282
43193
  }
43283
43194
  return MonadThrow0.throwError(error("Function and dictionary expected"));
43284
43195
  };
@@ -43343,31 +43254,27 @@ var dict_intersectionWith = /* @__PURE__ */ $Tuple(
43343
43254
  const Bind1 = Monad0.Bind1();
43344
43255
  const Apply0 = Bind1.Apply0();
43345
43256
  const $0 = Apply0.Functor0();
43346
- const Applicative0 = Monad0.Applicative0();
43257
+ const sequence1 = traversableDict.sequence(Monad0.Applicative0());
43347
43258
  return (v) => {
43348
43259
  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") {
43349
43260
  const $1 = v._1;
43350
- const $2 = v._2._1._1;
43351
- const $3 = v._2._2._1._1;
43352
- const v$p = $0.map(Dictionary3)($0.map(DictRep)(traversableDict.traverse(Applicative0)(identity19)(intersectionWith_Object((v2) => (v3) => {
43353
- const $4 = v3._2;
43354
- const $5 = v2._1;
43355
- const $6 = v3._1;
43356
- return Bind1.bind(Bind1.bind(apply4($1)(v2._2))((a) => apply4(a)($4)))((v4) => Bind1.bind(dictMonadWithGraphAlloc.new(insert3(ordVertex)($6)()($$$Map(
43357
- "Two",
43358
- Leaf2,
43359
- $5,
43360
- void 0,
43361
- Leaf2
43362
- )))(pack9(v4._2)))((\u03B2$p$p) => $0.map(Tuple(\u03B2$p$p))(Applicative0.pure(v4))));
43363
- })(v._2._1._2._1)(v._2._2._1._2._1))));
43364
- return Bind1.bind(v$p)((packable) => Apply0.apply($0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($3)()($$$Map(
43261
+ return Apply0.apply($0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v._2._2._1._1)()($$$Map(
43365
43262
  "Two",
43366
43263
  Leaf2,
43367
- $2,
43264
+ v._2._1._1,
43368
43265
  void 0,
43369
43266
  Leaf2
43370
- )))(pack9(packable))))(v$p));
43267
+ )))))($0.map(Dictionary3)($0.map(DictRep)(sequence1(intersectionWith_Object((v2) => (v3) => {
43268
+ const $2 = v2._2;
43269
+ const $3 = v3._2;
43270
+ return Bind1.bind(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v3._1)()($$$Map(
43271
+ "Two",
43272
+ Leaf2,
43273
+ v2._1,
43274
+ void 0,
43275
+ Leaf2
43276
+ ))))((\u03B2$p$p) => $0.map(Tuple(\u03B2$p$p))(Bind1.bind(apply4($1)($2))((a) => apply4(a)($3))));
43277
+ })(v._2._1._2._1)(v._2._2._1._2._1)))));
43371
43278
  }
43372
43279
  return MonadThrow0.throwError(error("Function and two dictionaries expected"));
43373
43280
  };
@@ -43600,14 +43507,14 @@ var dict_disjointUnion = /* @__PURE__ */ $Tuple(
43600
43507
  const Functor0 = MonadThrow0.Monad0().Bind1().Apply0().Functor0();
43601
43508
  return (v) => {
43602
43509
  if (v.tag === "Cons" && v._1._2.tag === "Dictionary" && v._2.tag === "Cons" && v._2._1._2.tag === "Dictionary" && v._2._2.tag === "Nil") {
43603
- const v1 = $BaseVal("Dictionary", disjointUnion5(v._1._2._1)(v._2._1._2._1));
43604
- return Functor0.map((f) => f(v1))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v._2._1._1)()($$$Map(
43510
+ const $0 = $BaseVal("Dictionary", disjointUnion5(v._1._2._1)(v._2._1._2._1));
43511
+ return Functor0.map((f) => f($0))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v._2._1._1)()($$$Map(
43605
43512
  "Two",
43606
43513
  Leaf2,
43607
43514
  v._1._1,
43608
43515
  void 0,
43609
43516
  Leaf2
43610
- )))(pack9(v1))));
43517
+ )))));
43611
43518
  }
43612
43519
  return MonadThrow0.throwError(error("Dictionaries expected"));
43613
43520
  };
@@ -43648,14 +43555,14 @@ var dict_difference = /* @__PURE__ */ $Tuple(
43648
43555
  const Functor0 = MonadThrow0.Monad0().Bind1().Apply0().Functor0();
43649
43556
  return (v) => {
43650
43557
  if (v.tag === "Cons" && v._1._2.tag === "Dictionary" && v._2.tag === "Cons" && v._2._1._2.tag === "Dictionary" && v._2._2.tag === "Nil") {
43651
- const v1 = $BaseVal("Dictionary", mapFObjectString.difference(v._1._2._1)(v._2._1._2._1));
43652
- return Functor0.map((f) => f(v1))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v._2._1._1)()($$$Map(
43558
+ const $0 = $BaseVal("Dictionary", mapFObjectString.difference(v._1._2._1)(v._2._1._2._1));
43559
+ return Functor0.map((f) => f($0))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v._2._1._1)()($$$Map(
43653
43560
  "Two",
43654
43561
  Leaf2,
43655
43562
  v._1._1,
43656
43563
  void 0,
43657
43564
  Leaf2
43658
- )))(pack9(v1))));
43565
+ )))));
43659
43566
  }
43660
43567
  return MonadThrow0.throwError(error("Dictionaries expected."));
43661
43568
  };
@@ -43724,8 +43631,8 @@ var primitives = /* @__PURE__ */ fromFoldable(foldableArray)([
43724
43631
  /* @__PURE__ */ extern1(dims),
43725
43632
  /* @__PURE__ */ extern1(error_),
43726
43633
  /* @__PURE__ */ unary2("floor")({ i: number5, o: $$int, fwd: floor2 }),
43727
- /* @__PURE__ */ unary(showNumber)(boundedJoinSemilatticeUni)("log")({ i: intOrNumber, o: number5, fwd: log3 }),
43728
- /* @__PURE__ */ unary(showString)(boundedJoinSemilatticeUni)("numToStr")({ i: intOrNumber, o: string2, fwd: numToStr }),
43634
+ /* @__PURE__ */ unary2("log")({ i: intOrNumber, o: number5, fwd: log3 }),
43635
+ /* @__PURE__ */ unary2("numToStr")({ i: intOrNumber, o: string2, fwd: numToStr }),
43729
43636
  /* @__PURE__ */ binary2("+")({
43730
43637
  i1: intOrNumber,
43731
43638
  i2: intOrNumber,
@@ -43738,30 +43645,25 @@ var primitives = /* @__PURE__ */ fromFoldable(foldableArray)([
43738
43645
  o: intOrNumber,
43739
43646
  fwd: /* @__PURE__ */ union5(asIntIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)(intSub)(numSub)
43740
43647
  }),
43741
- /* @__PURE__ */ binaryZero2("*")({
43648
+ /* @__PURE__ */ binaryZero1("*")({
43742
43649
  i: intOrNumber,
43743
43650
  o: intOrNumber,
43744
43651
  fwd: /* @__PURE__ */ union5(asIntIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)(intMul)(numMul)
43745
43652
  }),
43746
- /* @__PURE__ */ binaryZero2("**")({ i: intOrNumber, o: intOrNumber, fwd: pow3 }),
43747
- /* @__PURE__ */ binaryZero2("/")({ i: intOrNumber, o: intOrNumber, fwd: divide }),
43748
- /* @__PURE__ */ binary1("==")({
43653
+ /* @__PURE__ */ binaryZero1("**")({ i: intOrNumber, o: intOrNumber, fwd: pow3 }),
43654
+ /* @__PURE__ */ binaryZero1("/")({ i: intOrNumber, o: intOrNumber, fwd: divide }),
43655
+ /* @__PURE__ */ binary2("==")({
43749
43656
  i1: intOrNumberOrString,
43750
43657
  i2: intOrNumberOrString,
43751
43658
  o: $$boolean,
43752
43659
  fwd: /* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)(eqIntImpl)(/* @__PURE__ */ unionStr(asBooleanBoolean)(asNumberString)(eqNumberImpl)(eqStringImpl))
43753
43660
  }),
43754
- /* @__PURE__ */ binary1("/=")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: notEquals }),
43755
- /* @__PURE__ */ binary1("<")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: lessThan }),
43756
- /* @__PURE__ */ binary1(">")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: greaterThan }),
43757
- /* @__PURE__ */ binary1("<=")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: lessThanEquals }),
43758
- /* @__PURE__ */ binary1(">=")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: greaterThanEquals }),
43759
- /* @__PURE__ */ binary(showString)(boundedJoinSemilatticeUni)("++")({
43760
- i1: string2,
43761
- i2: string2,
43762
- o: string2,
43763
- fwd: concatString
43764
- }),
43661
+ /* @__PURE__ */ binary2("/=")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: notEquals }),
43662
+ /* @__PURE__ */ binary2("<")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: lessThan }),
43663
+ /* @__PURE__ */ binary2(">")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: greaterThan }),
43664
+ /* @__PURE__ */ binary2("<=")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: lessThanEquals }),
43665
+ /* @__PURE__ */ binary2(">=")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: greaterThanEquals }),
43666
+ /* @__PURE__ */ binary2("++")({ i1: string2, i2: string2, o: string2, fwd: concatString }),
43765
43667
  /* @__PURE__ */ extern1(matrixLookup),
43766
43668
  /* @__PURE__ */ extern1(dict_difference),
43767
43669
  /* @__PURE__ */ extern1(dict_disjointUnion),
@@ -43770,10 +43672,10 @@ var primitives = /* @__PURE__ */ fromFoldable(foldableArray)([
43770
43672
  /* @__PURE__ */ extern1(dict_intersectionWith),
43771
43673
  /* @__PURE__ */ extern1(dict_map),
43772
43674
  /* @__PURE__ */ extern1(matrixUpdate),
43773
- /* @__PURE__ */ binaryZero1("div")({ i: $$int, o: $$int, fwd: intDiv2 }),
43774
- /* @__PURE__ */ binaryZero1("mod")({ i: $$int, o: $$int, fwd: intMod }),
43775
- /* @__PURE__ */ binaryZero1("quot")({ i: $$int, o: $$int, fwd: quot }),
43776
- /* @__PURE__ */ binaryZero1("rem")({ i: $$int, o: $$int, fwd: rem })
43675
+ /* @__PURE__ */ binaryZero22("div")({ i: $$int, o: $$int, fwd: intDiv2 }),
43676
+ /* @__PURE__ */ binaryZero22("mod")({ i: $$int, o: $$int, fwd: intMod }),
43677
+ /* @__PURE__ */ binaryZero22("quot")({ i: $$int, o: $$int, fwd: quot }),
43678
+ /* @__PURE__ */ binaryZero22("rem")({ i: $$int, o: $$int, fwd: rem })
43777
43679
  ]);
43778
43680
 
43779
43681
  // output-es/ProgCxt/index.js