@explorable-viz/fluid 0.7.88 → 0.7.89

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.
@@ -744,8 +744,8 @@ var foldableArray = {
744
744
  }
745
745
  };
746
746
  var foldrDefault = (dictFoldable) => {
747
- const foldMap2 = dictFoldable.foldMap(monoidEndo);
748
- return (c) => (u) => (xs) => foldMap2((x2) => c(x2))(xs)(u);
747
+ const foldMap22 = dictFoldable.foldMap(monoidEndo);
748
+ return (c) => (u) => (xs) => foldMap22((x2) => c(x2))(xs)(u);
749
749
  };
750
750
 
751
751
  // output-es/Unsafe.Coerce/foreign.js
@@ -8429,19 +8429,19 @@ var FacetProvider = class {
8429
8429
  this.value = value;
8430
8430
  this.id = nextID++;
8431
8431
  }
8432
- dynamicSlot(addresses) {
8432
+ dynamicSlot(addresses2) {
8433
8433
  var _a2;
8434
8434
  let getter = this.value;
8435
8435
  let compare2 = this.facet.compareInput;
8436
- let id3 = this.id, idx = addresses[id3] >> 1, multi = this.type == 2;
8436
+ let id3 = this.id, idx = addresses2[id3] >> 1, multi = this.type == 2;
8437
8437
  let depDoc = false, depSel = false, depAddrs = [];
8438
8438
  for (let dep of this.dependencies) {
8439
8439
  if (dep == "doc")
8440
8440
  depDoc = true;
8441
8441
  else if (dep == "selection")
8442
8442
  depSel = true;
8443
- else if ((((_a2 = addresses[dep.id]) !== null && _a2 !== void 0 ? _a2 : 1) & 1) == 0)
8444
- depAddrs.push(addresses[dep.id]);
8443
+ else if ((((_a2 = addresses2[dep.id]) !== null && _a2 !== void 0 ? _a2 : 1) & 1) == 0)
8444
+ depAddrs.push(addresses2[dep.id]);
8445
8445
  }
8446
8446
  return {
8447
8447
  create(state) {
@@ -8492,11 +8492,11 @@ function ensureAll(state, addrs) {
8492
8492
  changed = true;
8493
8493
  return changed;
8494
8494
  }
8495
- function dynamicFacetSlot(addresses, facet, providers) {
8496
- let providerAddrs = providers.map((p) => addresses[p.id]);
8495
+ function dynamicFacetSlot(addresses2, facet, providers) {
8496
+ let providerAddrs = providers.map((p) => addresses2[p.id]);
8497
8497
  let providerTypes = providers.map((p) => p.type);
8498
8498
  let dynamic = providerAddrs.filter((p) => !(p & 1));
8499
- let idx = addresses[facet.id] >> 1;
8499
+ let idx = addresses2[facet.id] >> 1;
8500
8500
  function get3(state) {
8501
8501
  let values2 = [];
8502
8502
  for (let i = 0; i < providerAddrs.length; i++) {
@@ -8562,8 +8562,8 @@ var StateField = class {
8562
8562
  let init6 = state.facet(initField).find((i) => i.field == this);
8563
8563
  return ((init6 === null || init6 === void 0 ? void 0 : init6.create) || this.createF)(state);
8564
8564
  }
8565
- slot(addresses) {
8566
- let idx = addresses[this.id] >> 1;
8565
+ slot(addresses2) {
8566
+ let idx = addresses2[this.id] >> 1;
8567
8567
  return {
8568
8568
  create: (state) => {
8569
8569
  state.values[idx] = this.create(state);
@@ -27856,9 +27856,9 @@ var member3 = /* @__PURE__ */ (() => setSet(ordVertex).member)();
27856
27856
  var select\u03B1s\u{1D539}Vertex = (dictApply) => {
27857
27857
  const $0 = dictApply.Functor0();
27858
27858
  return (dictFoldable) => {
27859
- const unions12 = dictFoldable.foldl(union3(ordVertex))(Leaf2);
27859
+ const unions22 = dictFoldable.foldl(union3(ordVertex))(Leaf2);
27860
27860
  return {
27861
- "select\u03B1s": (v\u{1D539}) => (v\u03B1) => unions12(dictApply.apply($0.map((v) => {
27861
+ "select\u03B1s": (v\u{1D539}) => (v\u03B1) => unions22(dictApply.apply($0.map((v) => {
27862
27862
  if (v) {
27863
27863
  return singleton3;
27864
27864
  }
@@ -27868,12 +27868,20 @@ var select\u03B1s\u{1D539}Vertex = (dictApply) => {
27868
27868
  };
27869
27869
  };
27870
27870
  };
27871
+ var eqDVertex = { eq: (v) => (v1) => v._1 === v1._1 };
27872
+ var ordDVertex = { compare: (v) => (v1) => ordString.compare(v._1)(v1._1), Eq0: () => eqDVertex };
27873
+ var unions1 = /* @__PURE__ */ foldlArray(/* @__PURE__ */ union3(ordDVertex))(Leaf2);
27874
+ var verticesDict = (dictVertices) => {
27875
+ const vertices1 = dictVertices.vertices;
27876
+ return { vertices: (d) => unions1(arrayMap(vertices1)(values(d))) };
27877
+ };
27878
+ var typeNameVertexData = { typeName: (v) => v((dictTypeName) => dictTypeName.typeName) };
27871
27879
  var showVertices = (\u03B1s) => "{" + joinWith(", ")(fromFoldable4(map2(ordString)(unsafeCoerce)(\u03B1s))) + "}";
27872
27880
  var showEdgeList = (es) => joinWith("\n")([
27873
27881
  "digraph G {",
27874
27882
  ...arrayMap((v) => " " + v)([
27875
27883
  "rankdir = RL",
27876
- ...arrayMap((v) => v._1 + " -> {" + joinWith(", ")(fromFoldable4(map2(ordString)(unsafeCoerce)(v._2))) + "}")(fromFoldable13(reverse2(es)))
27884
+ ...arrayMap((v) => v._1._1 + " -> {" + joinWith(", ")(fromFoldable4(map2(ordString)(unsafeCoerce)(v._2))) + "}")(fromFoldable13(reverse2(es)))
27877
27885
  ]),
27878
27886
  "}"
27879
27887
  ]);
@@ -27883,7 +27891,13 @@ var toEdgeList = (dictGraph) => (g) => {
27883
27891
  return $Step("Done", v._2);
27884
27892
  }
27885
27893
  if (v._1.tag === "Cons") {
27886
- return $Step("Loop", $Tuple(v._1._2, $List("Cons", $Tuple(v._1._1, dictGraph.outN(g)(v._1._1)), v._2)));
27894
+ return $Step(
27895
+ "Loop",
27896
+ $Tuple(
27897
+ v._1._2,
27898
+ $List("Cons", $Tuple($Tuple(v._1._1, dictGraph.vertexData(g)(v._1._1)), dictGraph.outN(g)(v._1._1)), v._2)
27899
+ )
27900
+ );
27887
27901
  }
27888
27902
  fail();
27889
27903
  };
@@ -27940,6 +27954,7 @@ var inEdges = (dictGraph) => (g) => (\u03B1s) => {
27940
27954
  };
27941
27955
  return go($0($Tuple(fromFoldable22(\u03B1s), Nil)));
27942
27956
  };
27957
+ var addresses = /* @__PURE__ */ map2(ordVertex)((x2) => x2._1);
27943
27958
 
27944
27959
  // output-es/Data.CatQueue/index.js
27945
27960
  var $CatQueue = (_1, _2) => ({ tag: "CatQueue", _1, _2 });
@@ -28154,15 +28169,20 @@ var peek = /* @__PURE__ */ peekImpl2(Just)(Nothing);
28154
28169
  var $GraphImpl = (_1) => ({ tag: "GraphImpl", _1 });
28155
28170
  var eqSet = { eq: (v) => (v1) => eqMap(eqVertex)(eqUnit).eq(v)(v1) };
28156
28171
  var eq = /* @__PURE__ */ (() => eqObject(eqSet).eq)();
28157
- var fromFoldable6 = /* @__PURE__ */ foldlArray((m) => (a) => insert3(ordVertex)(a)()(m))(Leaf2);
28172
+ var fromFoldable15 = /* @__PURE__ */ foldlArray((m) => (a) => insert3(ordVertex)(a)()(m))(Leaf2);
28158
28173
  var toUnfoldable6 = /* @__PURE__ */ toUnfoldable4(unfoldableList);
28159
- var fromFoldable15 = /* @__PURE__ */ (() => foldableSet.foldr(Cons)(Nil))();
28160
- var fromFoldable23 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordVertex)(a)()(m))(Leaf2))();
28174
+ var fromFoldable23 = /* @__PURE__ */ (() => foldableSet.foldr(Cons)(Nil))();
28175
+ var fromFoldable32 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordVertex)(a)()(m))(Leaf2))();
28161
28176
  var toUnfoldable12 = /* @__PURE__ */ toAscUnfoldable(unfoldableArray);
28162
- var fromFoldable32 = /* @__PURE__ */ fromFoldable2(ordVertex)(foldableArray);
28163
- var verticesGraphImpl = { vertices: (v) => v._1.vertices };
28164
- var eqGraphImpl = { eq: (v) => (v1) => eq(v._1.out)(v1._1.out) };
28165
- var sinks$p = (m) => fromFoldable6(arrayMap((x2) => x2._1)(filter((x2) => x2._2.tag === "Leaf")(toArrayWithKey(Tuple)(m))));
28177
+ var fromFoldable42 = /* @__PURE__ */ fromFoldable2(ordVertex)(foldableArray);
28178
+ var verticesGraphImpl = {
28179
+ vertices: (v) => fold((z) => (v$1) => (a) => insert3(ordDVertex)(a)()(z))(Leaf2)(_mapWithKey(
28180
+ v._1.out,
28181
+ (k) => (v1) => $Tuple(k, v1._2)
28182
+ ))
28183
+ };
28184
+ var eqGraphImpl = { eq: (v) => (v1) => eq(_fmapObject(v._1.out, fst))(_fmapObject(v1._1.out, fst)) };
28185
+ var sinks$p = (m) => fromFoldable15(arrayMap((x2) => x2._1)(filter((x2) => x2._2._1.tag === "Leaf")(toArrayWithKey(Tuple)(m))));
28166
28186
  var init5 = (\u03B1s) => () => {
28167
28187
  const obj = {};
28168
28188
  return monadRecST.tailRecM((v) => {
@@ -28170,11 +28190,11 @@ var init5 = (\u03B1s) => () => {
28170
28190
  return () => $Step("Done", v._2);
28171
28191
  }
28172
28192
  if (v._1.tag === "Cons") {
28173
- const $0 = v._1._1;
28193
+ const $0 = v._1._1._1;
28174
28194
  const $1 = v._1._2;
28175
28195
  const $2 = v._2;
28176
28196
  return () => {
28177
- $2[$0] = Leaf2;
28197
+ $2[$0] = $Tuple(Leaf2, v._1._1._2);
28178
28198
  return $Step("Loop", $Tuple($1, $2));
28179
28199
  };
28180
28200
  }
@@ -28205,34 +28225,6 @@ var assertPresent = (v) => (v1) => {
28205
28225
  }
28206
28226
  fail();
28207
28227
  };
28208
- var addIfMissing = (acc) => (v) => {
28209
- const $0 = peek(v)(acc);
28210
- return () => {
28211
- const v1 = $0();
28212
- if (v1.tag === "Nothing") {
28213
- acc[v] = Leaf2;
28214
- return acc;
28215
- }
28216
- if (v1.tag === "Just") {
28217
- return acc;
28218
- }
28219
- fail();
28220
- };
28221
- };
28222
- var addIfMissing$p = (\u03B1s) => (acc) => monadRecST.tailRecM((v) => {
28223
- if (v._1.tag === "Nil") {
28224
- return () => $Step("Done", v._2);
28225
- }
28226
- if (v._1.tag === "Cons") {
28227
- const $0 = v._1._2;
28228
- const $1 = addIfMissing(v._2)(v._1._1);
28229
- return () => {
28230
- const acc$p$p = $1();
28231
- return $Step("Loop", $Tuple($0, acc$p$p));
28232
- };
28233
- }
28234
- fail();
28235
- })($Tuple(\u03B1s, acc));
28236
28228
  var outMap = (\u03B1s) => (es) => {
28237
28229
  const $0 = init5(\u03B1s);
28238
28230
  return () => {
@@ -28244,33 +28236,48 @@ var outMap = (\u03B1s) => (es) => {
28244
28236
  if (v._1.tag === "Cons") {
28245
28237
  const $1 = v._2;
28246
28238
  const $2 = v._1._2;
28247
- const $3 = v._1._1._1;
28248
- const $4 = v._1._1._2;
28249
- const $5 = peek($3)($1);
28239
+ const $3 = v._1._1._1._2;
28240
+ const $4 = v._1._1._1._1;
28241
+ const $5 = v._1._1._2;
28242
+ const $6 = peek($4)($1);
28250
28243
  return () => {
28251
- const $6 = $5();
28244
+ const $7 = $6();
28252
28245
  if ((() => {
28253
- if ($6.tag === "Nothing") {
28246
+ if ($7.tag === "Nothing") {
28254
28247
  return true;
28255
28248
  }
28256
- if ($6.tag === "Just") {
28257
- return eqMap(eqVertex)(eqUnit).eq($6._1)(Leaf2);
28249
+ if ($7.tag === "Just") {
28250
+ return eqMap(eqVertex)(eqUnit).eq($7._1._1)(Leaf2);
28258
28251
  }
28259
28252
  fail();
28260
28253
  })()) {
28261
- const \u03B2s$p = toUnfoldable6($4);
28262
- monadRecST.tailRecM(assertPresent($1))(\u03B2s$p)();
28263
- $1[$3] = $4;
28264
- const acc$p = addIfMissing$p(\u03B2s$p)($1)();
28265
- return $Step("Loop", $Tuple($2, acc$p));
28254
+ monadRecST.tailRecM(assertPresent($1))(toUnfoldable6($5))();
28255
+ $1[$4] = $Tuple($5, $3);
28256
+ return $Step("Loop", $Tuple($2, $1));
28266
28257
  }
28267
- return throwException(error("Duplicate edge list entry for " + showStringImpl($3)))()();
28258
+ return throwException(error("Duplicate edge list entry for " + showStringImpl($4)))()();
28268
28259
  };
28269
28260
  }
28270
28261
  fail();
28271
28262
  })($Tuple(es, out))();
28272
28263
  };
28273
28264
  };
28265
+ var addIfMissing = (acc) => (v) => {
28266
+ const $0 = v._2;
28267
+ const $1 = v._1;
28268
+ const $2 = peek($1)(acc);
28269
+ return () => {
28270
+ const v1 = $2();
28271
+ if (v1.tag === "Nothing") {
28272
+ acc[$1] = $Tuple(Leaf2, $0);
28273
+ return acc;
28274
+ }
28275
+ if (v1.tag === "Just") {
28276
+ return acc;
28277
+ }
28278
+ fail();
28279
+ };
28280
+ };
28274
28281
  var inMap = (\u03B1s) => (es) => {
28275
28282
  const $0 = init5(\u03B1s);
28276
28283
  return () => {
@@ -28281,37 +28288,38 @@ var inMap = (\u03B1s) => (es) => {
28281
28288
  }
28282
28289
  if (v._1.tag === "Cons") {
28283
28290
  const $1 = v._1._2;
28284
- const $2 = v._1._1._1;
28285
- const $3 = monadRecST.tailRecM((v1) => {
28286
- if (v1._1.tag === "Nil") {
28287
- return () => $Step("Done", v1._2);
28291
+ const $2 = v._1._1._1._2;
28292
+ const $3 = v._1._1._1._1;
28293
+ const $4 = monadRecST.tailRecM((v2) => {
28294
+ if (v2._1.tag === "Nil") {
28295
+ return () => $Step("Done", v2._2);
28288
28296
  }
28289
- if (v1._1.tag === "Cons") {
28290
- const $32 = v1._2;
28291
- const $4 = v1._1._1;
28292
- const $5 = v1._1._2;
28293
- const $6 = peek($4)($32);
28297
+ if (v2._1.tag === "Cons") {
28298
+ const $42 = v2._2;
28299
+ const $5 = v2._1._1;
28300
+ const $6 = v2._1._2;
28301
+ const $7 = peek($5)($42);
28294
28302
  return () => {
28295
- const v1$1 = $6();
28303
+ const v1 = $7();
28296
28304
  const acc$p = (() => {
28297
- if (v1$1.tag === "Nothing") {
28298
- $32[$4] = $$$Map("Two", Leaf2, $2, void 0, Leaf2);
28299
- return $32;
28305
+ if (v1.tag === "Nothing") {
28306
+ $42[$5] = $Tuple($$$Map("Two", Leaf2, $3, void 0, Leaf2), $2);
28307
+ return $42;
28300
28308
  }
28301
- if (v1$1.tag === "Just") {
28302
- $32[$4] = insert3(ordVertex)($2)()(v1$1._1);
28303
- return $32;
28309
+ if (v1.tag === "Just") {
28310
+ $42[$5] = $Tuple(insert3(ordVertex)($3)()(v1._1._1), $2);
28311
+ return $42;
28304
28312
  }
28305
28313
  fail();
28306
28314
  })();
28307
- return $Step("Loop", $Tuple($5, acc$p));
28315
+ return $Step("Loop", $Tuple($6, acc$p));
28308
28316
  };
28309
28317
  }
28310
28318
  fail();
28311
28319
  })($Tuple(toUnfoldable6(v._1._1._2), v._2));
28312
28320
  return () => {
28313
- const a = $3();
28314
- const acc$p = addIfMissing(a)($2)();
28321
+ const $5 = $4();
28322
+ const acc$p = addIfMissing($5)($Tuple($3, $2))();
28315
28323
  return $Step("Loop", $Tuple($1, acc$p));
28316
28324
  };
28317
28325
  }
@@ -28320,7 +28328,8 @@ var inMap = (\u03B1s) => (es) => {
28320
28328
  };
28321
28329
  };
28322
28330
  var graphGraphImpl = {
28323
- outN: (v) => (\u03B1) => definitely("in graph")(_lookup(Nothing, Just, \u03B1, v._1.out)),
28331
+ outN: (v) => (\u03B1) => definitely("in graph")(_lookup(Nothing, Just, \u03B1, v._1.out))._1,
28332
+ vertexData: (v) => (\u03B1) => definitely("in graph")(_lookup(Nothing, Just, \u03B1, v._1.out))._2,
28324
28333
  inN: (g) => graphGraphImpl.outN(graphGraphImpl.op(g)),
28325
28334
  elem: (\u03B1) => (v) => {
28326
28335
  const $0 = _lookup(Nothing, Just, \u03B1, v._1.out);
@@ -28344,7 +28353,7 @@ var graphGraphImpl = {
28344
28353
  vertices: Leaf2
28345
28354
  }),
28346
28355
  fromEdgeList: (\u03B1s) => (es) => {
28347
- const \u03B1s$p = fromFoldable15(\u03B1s);
28356
+ const \u03B1s$p = fromFoldable23(\u03B1s);
28348
28357
  const es$p = reverse2(es);
28349
28358
  const in_ = inMap(\u03B1s$p)(es$p)();
28350
28359
  const out = outMap(\u03B1s$p)(es$p)();
@@ -28353,13 +28362,13 @@ var graphGraphImpl = {
28353
28362
  in_,
28354
28363
  sinks: sinks$p(out),
28355
28364
  sources: sinks$p(in_),
28356
- vertices: fromFoldable23(map2(ordVertex)(Vertex)(mapObjectString.keys(out)))
28365
+ vertices: fromFoldable32(map2(ordVertex)(Vertex)(mapObjectString.keys(out)))
28357
28366
  });
28358
28367
  },
28359
- topologicalSort: (v) => reverse2(topologicalSort(ordVertex)(fromFoldable32(arrayMap((x2) => $Tuple(
28368
+ topologicalSort: (v) => reverse2(topologicalSort(ordVertex)(fromFoldable42(arrayMap((x2) => $Tuple(
28360
28369
  x2._1,
28361
28370
  $Tuple(void 0, x2._2)
28362
- ))(toUnfoldable12(_fmapObject(v._1.out, toUnfoldable6)))))),
28371
+ ))(toUnfoldable12(_fmapObject(_fmapObject(v._1.out, fst), toUnfoldable6)))))),
28363
28372
  Eq0: () => eqGraphImpl,
28364
28373
  Vertices1: () => verticesGraphImpl
28365
28374
  };
@@ -29175,12 +29184,34 @@ var $Elim = (tag, _1, _2) => ({ tag, _1, _2 });
29175
29184
  var $Expr = (tag, _1, _2, _3, _4) => ({ tag, _1, _2, _3, _4 });
29176
29185
  var $RecDefs = (_1, _2) => ({ tag: "RecDefs", _1, _2 });
29177
29186
  var $VarDef = (_1, _2) => ({ tag: "VarDef", _1, _2 });
29187
+ var union5 = /* @__PURE__ */ (() => setSet(ordDVertex).union)();
29188
+ var unions12 = /* @__PURE__ */ (() => {
29189
+ const go = (go$a0$copy) => (go$a1$copy) => {
29190
+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
29191
+ while (go$c) {
29192
+ const b = go$a0, v = go$a1;
29193
+ if (v.tag === "Nil") {
29194
+ go$c = false;
29195
+ go$r = b;
29196
+ continue;
29197
+ }
29198
+ if (v.tag === "Cons") {
29199
+ go$a0 = unionWith2(ordDVertex)($$const)(b)(v._1);
29200
+ go$a1 = v._2;
29201
+ continue;
29202
+ }
29203
+ fail();
29204
+ }
29205
+ return go$r;
29206
+ };
29207
+ return go(Leaf2);
29208
+ })();
29178
29209
  var eqSet2 = { eq: (v) => (v1) => eqMap(eqString)(eqUnit).eq(v)(v1) };
29179
29210
  var identity25 = (x2) => x2;
29180
29211
  var setSet2 = /* @__PURE__ */ setSet(ordString);
29181
- var fromFoldable7 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordString)(a)()(m))(Leaf2))();
29212
+ var fromFoldable6 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordString)(a)()(m))(Leaf2))();
29182
29213
  var asMaplet2 = /* @__PURE__ */ asMaplet(mapDictString);
29183
- var unions1 = /* @__PURE__ */ (() => {
29214
+ var unions3 = /* @__PURE__ */ (() => {
29184
29215
  const go = (go$a0$copy) => (go$a1$copy) => {
29185
29216
  let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
29186
29217
  while (go$c) {
@@ -29216,6 +29247,97 @@ var ElimDict = (value0) => (value1) => $Elim("ElimDict", value0, value1);
29216
29247
  var VarDef = (value0) => (value1) => $VarDef(value0, value1);
29217
29248
  var RecDefs = (value0) => (value1) => $RecDefs(value0, value1);
29218
29249
  var Module = (x2) => x2;
29250
+ var typeNameRecDefs = { typeName: (v) => "RecDefs" };
29251
+ var pack = (x2) => (k) => k(typeNameRecDefs)(x2);
29252
+ var typeNameExpr = { typeName: (v) => "Expr" };
29253
+ var pack1 = (x2) => (k) => k(typeNameExpr)(x2);
29254
+ var verticesVarDefVertex = { vertices: (v) => union5(verticesElimVertex.vertices(v._1))(verticesExprVertex.vertices(v._2)) };
29255
+ var verticesRecDefsVertex = {
29256
+ vertices: (v) => union5($$$Map("Two", Leaf2, $Tuple(v._1, pack(v)), void 0, Leaf2))(verticesDict(verticesElimVertex).vertices(v._2))
29257
+ };
29258
+ var verticesExprVertex = {
29259
+ vertices: (v) => {
29260
+ if (v.tag === "Var") {
29261
+ return Leaf2;
29262
+ }
29263
+ if (v.tag === "Op") {
29264
+ return Leaf2;
29265
+ }
29266
+ if (v.tag === "Int") {
29267
+ return $$$Map("Two", Leaf2, $Tuple(v._1, pack1(v)), void 0, Leaf2);
29268
+ }
29269
+ if (v.tag === "Float") {
29270
+ return $$$Map("Two", Leaf2, $Tuple(v._1, pack1(v)), void 0, Leaf2);
29271
+ }
29272
+ if (v.tag === "Str") {
29273
+ return $$$Map("Two", Leaf2, $Tuple(v._1, pack1(v)), void 0, Leaf2);
29274
+ }
29275
+ if (v.tag === "Dictionary") {
29276
+ return union5($$$Map("Two", Leaf2, $Tuple(v._1, pack1(v)), void 0, Leaf2))(unions12(listMap((v1) => union5(verticesExprVertex.vertices(v1._1))(verticesExprVertex.vertices(v1._2)))(v._2)));
29277
+ }
29278
+ if (v.tag === "Constr") {
29279
+ return union5($$$Map("Two", Leaf2, $Tuple(v._1, pack1(v)), void 0, Leaf2))(unions12(listMap(verticesExprVertex.vertices)(v._3)));
29280
+ }
29281
+ if (v.tag === "Matrix") {
29282
+ return union5($$$Map("Two", Leaf2, $Tuple(v._1, pack1(v)), void 0, Leaf2))(union5(verticesExprVertex.vertices(v._2))(verticesExprVertex.vertices(v._4)));
29283
+ }
29284
+ if (v.tag === "Lambda") {
29285
+ return union5($$$Map("Two", Leaf2, $Tuple(v._1, pack1(v)), void 0, Leaf2))(verticesElimVertex.vertices(v._2));
29286
+ }
29287
+ if (v.tag === "Project") {
29288
+ return verticesExprVertex.vertices(v._1);
29289
+ }
29290
+ if (v.tag === "DProject") {
29291
+ return union5(verticesExprVertex.vertices(v._1))(verticesExprVertex.vertices(v._2));
29292
+ }
29293
+ if (v.tag === "App") {
29294
+ return union5(verticesExprVertex.vertices(v._1))(verticesExprVertex.vertices(v._2));
29295
+ }
29296
+ if (v.tag === "Let") {
29297
+ return union5(verticesVarDefVertex.vertices(v._1))(verticesExprVertex.vertices(v._2));
29298
+ }
29299
+ if (v.tag === "LetRec") {
29300
+ return union5(verticesRecDefsVertex.vertices(v._1))(verticesExprVertex.vertices(v._2));
29301
+ }
29302
+ fail();
29303
+ }
29304
+ };
29305
+ var verticesElimVertex = {
29306
+ vertices: (v) => {
29307
+ if (v.tag === "ElimVar") {
29308
+ return verticesContVertex.vertices(v._2);
29309
+ }
29310
+ if (v.tag === "ElimConstr") {
29311
+ return verticesDict(verticesContVertex).vertices(v._1);
29312
+ }
29313
+ if (v.tag === "ElimDict") {
29314
+ return verticesContVertex.vertices(v._2);
29315
+ }
29316
+ fail();
29317
+ }
29318
+ };
29319
+ var verticesContVertex = {
29320
+ vertices: (v) => {
29321
+ if (v.tag === "ContExpr") {
29322
+ return verticesExprVertex.vertices(v._1);
29323
+ }
29324
+ if (v.tag === "ContElim") {
29325
+ return verticesElimVertex.vertices(v._1);
29326
+ }
29327
+ fail();
29328
+ }
29329
+ };
29330
+ var verticesModuleVertex = {
29331
+ vertices: (v) => unions12(listMap((v1) => {
29332
+ if (v1.tag === "Left") {
29333
+ return verticesVarDefVertex.vertices(v1._1);
29334
+ }
29335
+ if (v1.tag === "Right") {
29336
+ return verticesRecDefsVertex.vertices(v1._1);
29337
+ }
29338
+ fail();
29339
+ })(v))
29340
+ };
29219
29341
  var joinSemilatticeVarDef = (dictJoinSemilattice) => ({ join: (v) => (v1) => $VarDef(joinSemilatticeElim(dictJoinSemilattice).join(v._1)(v1._1), joinSemilatticeExpr(dictJoinSemilattice).join(v._2)(v1._2)) });
29220
29342
  var joinSemilatticeRecDefs = (dictJoinSemilattice) => ({ join: (v) => (v1) => $RecDefs(dictJoinSemilattice.join(v._1)(v1._1), unionWith(joinSemilatticeElim(dictJoinSemilattice).join)(v._2)(v1._2)) });
29221
29343
  var joinSemilatticeExpr = (dictJoinSemilattice) => ({
@@ -30143,7 +30265,7 @@ var applyCont = {
30143
30265
  var fVDict = (dictFV) => {
30144
30266
  const fv1 = dictFV.fv;
30145
30267
  return {
30146
- fv: (\u03C1) => setSet2.difference(fold((z) => (v) => union3(ordString)(z))(Leaf2)(_fmapObject(\u03C1, fv1)))(fromFoldable7(mapObjectString.keys(\u03C1)))
30268
+ fv: (\u03C1) => setSet2.difference(fold((z) => (v) => union3(ordString)(z))(Leaf2)(_fmapObject(\u03C1, fv1)))(fromFoldable6(mapObjectString.keys(\u03C1)))
30147
30269
  };
30148
30270
  };
30149
30271
  var foldlModuleDef = (v) => (v1) => (v2) => {
@@ -30277,10 +30399,10 @@ var fVExpr = {
30277
30399
  return Leaf2;
30278
30400
  }
30279
30401
  if (v.tag === "Dictionary") {
30280
- return unions1(listMap((v1) => setSet2.union(fVExpr.fv(v1._1))(fVExpr.fv(v1._2)))(v._2));
30402
+ return unions3(listMap((v1) => setSet2.union(fVExpr.fv(v1._1))(fVExpr.fv(v1._2)))(v._2));
30281
30403
  }
30282
30404
  if (v.tag === "Constr") {
30283
- return unions1(listMap(fVExpr.fv)(v._3));
30405
+ return unions3(listMap(fVExpr.fv)(v._3));
30284
30406
  }
30285
30407
  if (v.tag === "Matrix") {
30286
30408
  return setSet2.union(fVExpr.fv(v._2))(fVExpr.fv(v._4));
@@ -30475,7 +30597,7 @@ var ClauseIsSymbol = { reflectSymbol: () => "Clause" };
30475
30597
  var difference3 = /* @__PURE__ */ difference(eqString);
30476
30598
  var toUnfoldable7 = /* @__PURE__ */ toUnfoldable4(unfoldableList);
30477
30599
  var monadThrowExceptT2 = /* @__PURE__ */ monadThrowExceptT(monadIdentity);
30478
- var fromFoldable8 = /* @__PURE__ */ fromFoldable(foldableArray);
30600
+ var fromFoldable7 = /* @__PURE__ */ fromFoldable(foldableArray);
30479
30601
  var fromFoldable16 = /* @__PURE__ */ fromFoldable(foldableNonEmptyList);
30480
30602
  var fromFoldable24 = /* @__PURE__ */ fromFoldable(foldableList);
30481
30603
  var monadErrorExceptT2 = /* @__PURE__ */ monadErrorExceptT(monadIdentity);
@@ -32215,7 +32337,7 @@ var forConstrBwd = (v) => (v1) => {
32215
32337
  }
32216
32338
  fail();
32217
32339
  };
32218
- var elimBool = (\u03BA) => (\u03BA$p) => $Elim("ElimConstr", fromFoldable8([$Tuple("True", \u03BA), $Tuple("False", \u03BA$p)]));
32340
+ var elimBool = (\u03BA) => (\u03BA$p) => $Elim("ElimConstr", fromFoldable7([$Tuple("True", \u03BA), $Tuple("False", \u03BA$p)]));
32219
32341
  var econs = (\u03B1) => (e) => (e$p) => $Expr("Constr", \u03B1, ":", $List("Cons", e, $List("Cons", e$p, Nil)));
32220
32342
  var ctrFor = (v) => {
32221
32343
  if (v.tag === "Left") {
@@ -32676,7 +32798,7 @@ var listCompFwd = (dictMonadError) => {
32676
32798
  $1,
32677
32799
  $Elim(
32678
32800
  "ElimConstr",
32679
- fromFoldable8([
32801
+ fromFoldable7([
32680
32802
  $Tuple("True", $Cont("ContExpr", e)),
32681
32803
  $Tuple("False", $Cont("ContExpr", $Expr("Constr", $1, "Nil", Nil)))
32682
32804
  ])
@@ -33342,7 +33464,7 @@ var toUnfoldable13 = /* @__PURE__ */ toAscUnfoldable(unfoldableList);
33342
33464
  var Simple = /* @__PURE__ */ $ExprType("Simple");
33343
33465
  var Expression = /* @__PURE__ */ $ExprType("Expression");
33344
33466
  var vert = (dictFoldable) => {
33345
- const fromFoldable29 = dictFoldable.foldr(Cons)(Nil);
33467
+ const fromFoldable28 = dictFoldable.foldr(Cons)(Nil);
33346
33468
  return (delim) => {
33347
33469
  const vert$p = (v) => {
33348
33470
  if (v.tag === "Nil") {
@@ -33358,7 +33480,7 @@ var vert = (dictFoldable) => {
33358
33480
  }
33359
33481
  fail();
33360
33482
  };
33361
- return (x2) => vert$p(fromFoldable29(x2));
33483
+ return (x2) => vert$p(fromFoldable28(x2));
33362
33484
  };
33363
33485
  };
33364
33486
  var vert1 = /* @__PURE__ */ vert(foldableArray);
@@ -34033,11 +34155,36 @@ var $EnvExpr = (_1, _2) => ({ tag: "EnvExpr", _1, _2 });
34033
34155
  var $ForeignOp$p = (_1) => ({ tag: "ForeignOp'", _1 });
34034
34156
  var $Fun = (tag, _1, _2, _3) => ({ tag, _1, _2, _3 });
34035
34157
  var $Val = (_1, _2) => ({ tag: "Val", _1, _2 });
34158
+ var setSet3 = /* @__PURE__ */ setSet(ordDVertex);
34159
+ var unions = /* @__PURE__ */ foldlArray(/* @__PURE__ */ union3(ordDVertex))(Leaf2);
34160
+ var vertices = /* @__PURE__ */ (() => verticesDict(verticesElimVertex).vertices)();
34161
+ var unions13 = /* @__PURE__ */ (() => {
34162
+ const go = (go$a0$copy) => (go$a1$copy) => {
34163
+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
34164
+ while (go$c) {
34165
+ const b = go$a0, v = go$a1;
34166
+ if (v.tag === "Nil") {
34167
+ go$c = false;
34168
+ go$r = b;
34169
+ continue;
34170
+ }
34171
+ if (v.tag === "Cons") {
34172
+ go$a0 = unionWith2(ordDVertex)($$const)(b)(v._1);
34173
+ go$a1 = v._2;
34174
+ continue;
34175
+ }
34176
+ fail();
34177
+ }
34178
+ return go$r;
34179
+ };
34180
+ return go(Leaf2);
34181
+ })();
34182
+ var foldMap2 = /* @__PURE__ */ foldMap({ mempty: Leaf2, Semigroup0: () => ({ append: union3(ordDVertex) }) });
34036
34183
  var identity26 = (x2) => x2;
34037
34184
  var boundedLattice = { BoundedJoinSemilattice0: () => boundedJoinSemilatticeUni, BoundedMeetSemilattice1: () => boundedMeetSemilatticeUni };
34038
34185
  var show3 = /* @__PURE__ */ (() => showSet(showString).show)();
34039
- var fromFoldable9 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordString)(a)()(m))(Leaf2))();
34040
- var setSet3 = /* @__PURE__ */ setSet(ordString);
34186
+ var fromFoldable8 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordString)(a)()(m))(Leaf2))();
34187
+ var setSet1 = /* @__PURE__ */ setSet(ordString);
34041
34188
  var toUnfoldable14 = /* @__PURE__ */ toUnfoldable4(unfoldableList);
34042
34189
  var intersection2 = /* @__PURE__ */ intersection(ordString);
34043
34190
  var Val = (value0) => (value1) => $Val(value0, value1);
@@ -34048,6 +34195,78 @@ var Dictionary3 = (value0) => $BaseVal("Dictionary", value0);
34048
34195
  var DictRep = (x2) => x2;
34049
34196
  var MatrixRep = (x2) => x2;
34050
34197
  var Env = (x2) => x2;
34198
+ var typeNameMatrixDim = { typeName: (v) => "MatrixDim" };
34199
+ var pack2 = (x2) => (k) => k(typeNameMatrixDim)(x2);
34200
+ var typeNameDictKey = { typeName: (v) => "DictKey" };
34201
+ var pack12 = (x2) => (k) => k(typeNameDictKey)(x2);
34202
+ var typeNameBaseVal = { typeName: (v) => "BaseVal" };
34203
+ var pack22 = (x2) => (k) => k(typeNameBaseVal)(x2);
34204
+ var verticesValVertex = {
34205
+ vertices: (v) => setSet3.union($$$Map("Two", Leaf2, $Tuple(v._1, pack22(v._2)), void 0, Leaf2))(verticesBaseValVertex.vertices(v._2))
34206
+ };
34207
+ var verticesMatrixRepVertex = {
34208
+ vertices: (v) => setSet3.union(unions(concat(arrayMap(arrayMap(verticesValVertex.vertices))(v._1))))(setSet3.union($$$Map(
34209
+ "Two",
34210
+ Leaf2,
34211
+ $Tuple(v._2._1._2, pack2(v._2._1)),
34212
+ void 0,
34213
+ Leaf2
34214
+ ))($$$Map("Two", Leaf2, $Tuple(v._2._2._2, pack2(v._2._2)), void 0, Leaf2)))
34215
+ };
34216
+ var verticesFunVertex = {
34217
+ vertices: (v) => {
34218
+ if (v.tag === "Closure") {
34219
+ return setSet3.union(verticesEnvVertex.vertices(v._1))(setSet3.union(vertices(v._2))(verticesElimVertex.vertices(v._3)));
34220
+ }
34221
+ if (v.tag === "Foreign") {
34222
+ return unions13(listMap(verticesValVertex.vertices)(v._2));
34223
+ }
34224
+ if (v.tag === "PartialConstr") {
34225
+ return unions13(listMap(verticesValVertex.vertices)(v._2));
34226
+ }
34227
+ fail();
34228
+ }
34229
+ };
34230
+ var verticesEnvVertex = { vertices: (v) => unions13(listMap(verticesValVertex.vertices)(mapObjectString.values(v))) };
34231
+ var verticesDictRepVertex = {
34232
+ vertices: (v) => foldMap2((k) => (v1) => setSet3.union($$$Map(
34233
+ "Two",
34234
+ Leaf2,
34235
+ $Tuple(v1._1, pack12($Tuple(k, v1._1))),
34236
+ void 0,
34237
+ Leaf2
34238
+ ))(verticesValVertex.vertices(v1._2)))(v)
34239
+ };
34240
+ var verticesBaseValVertex = {
34241
+ vertices: (v) => {
34242
+ if (v.tag === "Int") {
34243
+ return setSet3.empty;
34244
+ }
34245
+ if (v.tag === "Float") {
34246
+ return setSet3.empty;
34247
+ }
34248
+ if (v.tag === "Str") {
34249
+ return setSet3.empty;
34250
+ }
34251
+ if (v.tag === "Constr") {
34252
+ return unions13(listMap(verticesValVertex.vertices)(v._2));
34253
+ }
34254
+ if (v.tag === "Dictionary") {
34255
+ return verticesDictRepVertex.vertices(v._1);
34256
+ }
34257
+ if (v.tag === "Matrix") {
34258
+ return verticesMatrixRepVertex.vertices(v._1);
34259
+ }
34260
+ if (v.tag === "Fun") {
34261
+ return verticesFunVertex.vertices(v._1);
34262
+ }
34263
+ fail();
34264
+ }
34265
+ };
34266
+ var verticesEnvExprVertex = {
34267
+ vertices: (v) => setSet3.union(unions13(listMap(verticesValVertex.vertices)(mapObjectString.values(v._1))))(verticesExprVertex.vertices(v._2))
34268
+ };
34269
+ var joinSemilatticeMatrixDim = (dictJoinSemilattice) => ({ join: (v) => (v1) => $Tuple(mustEq(eqInt)(showInt)(v._1)(v1._1), dictJoinSemilattice.join(v._2)(v1._2)) });
34051
34270
  var isEmptyEnv = { isEmpty: (v) => isEmpty(v) };
34052
34271
  var setEnvString = {
34053
34272
  empty,
@@ -34101,6 +34320,7 @@ var highlightableBoolean = {
34101
34320
  fail();
34102
34321
  }
34103
34322
  };
34323
+ var functorMatrixDim = { map: (f) => (m) => $Tuple(m._1, f(m._2)) };
34104
34324
  var functorVal = { map: (f) => (m) => $Val(f(m._1), functorBaseVal.map(f)(m._2)) };
34105
34325
  var functorMatrixRep = {
34106
34326
  map: (f) => (m) => $Tuple(
@@ -34161,6 +34381,13 @@ var botOfUnit$x215Raw$x215 = (dictBoundedJoinSemilattice) => ({
34161
34381
  })()
34162
34382
  });
34163
34383
  var functorEnvExpr = { map: (f) => (m) => $EnvExpr(_fmapObject(m._1, functorVal.map(f)), functorExpr.map(f)(m._2)) };
34384
+ var foldableMatrixDim = { foldl: (f) => (z) => (m) => f(z)(m._2), foldr: (f) => (z) => (m) => f(m._2)(z), foldMap: (dictMonoid) => (f) => (m) => f(m._2) };
34385
+ var traversableMatrixDim = {
34386
+ traverse: (dictApplicative) => (f) => (m) => dictApplicative.Apply0().Functor0().map((v1) => v1)(traversableTuple.traverse(dictApplicative)(f)(m)),
34387
+ sequence: (dictApplicative) => (v) => traversableMatrixDim.traverse(dictApplicative)(identity26)(v),
34388
+ Functor0: () => functorMatrixDim,
34389
+ Foldable1: () => foldableMatrixDim
34390
+ };
34164
34391
  var foldableVal = {
34165
34392
  foldl: (f) => (z) => (m) => foldableBaseVal.foldl(f)(f(z)(m._1))(m._2),
34166
34393
  foldr: (f) => (z) => (m) => f(m._1)(foldableBaseVal.foldr(f)(z)(m._2)),
@@ -34235,20 +34462,20 @@ var foldableFun = {
34235
34462
  foldMap: (dictMonoid) => {
34236
34463
  const $0 = dictMonoid.Semigroup0();
34237
34464
  const foldMap1 = foldMap(dictMonoid);
34238
- const foldMap6 = foldableElim.foldMap(dictMonoid);
34239
- const foldMap7 = foldableList.foldMap(dictMonoid);
34465
+ const foldMap8 = foldableElim.foldMap(dictMonoid);
34466
+ const foldMap9 = foldableList.foldMap(dictMonoid);
34240
34467
  return (f) => (m) => {
34241
34468
  if (m.tag === "Closure") {
34242
34469
  return $0.append(foldableEnv.foldMap(dictMonoid)(f)(m._1))($0.append((() => {
34243
- const $1 = foldMap6(f);
34470
+ const $1 = foldMap8(f);
34244
34471
  return foldMap1((v) => $1)(m._2);
34245
- })())(foldMap6(f)(m._3)));
34472
+ })())(foldMap8(f)(m._3)));
34246
34473
  }
34247
34474
  if (m.tag === "Foreign") {
34248
- return foldMap7(foldableVal.foldMap(dictMonoid)(f))(m._2);
34475
+ return foldMap9(foldableVal.foldMap(dictMonoid)(f))(m._2);
34249
34476
  }
34250
34477
  if (m.tag === "PartialConstr") {
34251
- return foldMap7(foldableVal.foldMap(dictMonoid)(f))(m._2);
34478
+ return foldMap9(foldableVal.foldMap(dictMonoid)(f))(m._2);
34252
34479
  }
34253
34480
  fail();
34254
34481
  };
@@ -34336,7 +34563,7 @@ var foldableBaseVal = {
34336
34563
  },
34337
34564
  foldMap: (dictMonoid) => {
34338
34565
  const mempty = dictMonoid.mempty;
34339
- const foldMap5 = foldableList.foldMap(dictMonoid);
34566
+ const foldMap7 = foldableList.foldMap(dictMonoid);
34340
34567
  return (f) => (m) => {
34341
34568
  if (m.tag === "Int") {
34342
34569
  return mempty;
@@ -34348,7 +34575,7 @@ var foldableBaseVal = {
34348
34575
  return mempty;
34349
34576
  }
34350
34577
  if (m.tag === "Constr") {
34351
- return foldMap5(foldableVal.foldMap(dictMonoid)(f))(m._2);
34578
+ return foldMap7(foldableVal.foldMap(dictMonoid)(f))(m._2);
34352
34579
  }
34353
34580
  if (m.tag === "Dictionary") {
34354
34581
  return foldableDictRep.foldMap(dictMonoid)(f)(m._1);
@@ -34367,9 +34594,9 @@ var foldableEnvExpr = {
34367
34594
  foldl: (f) => (z) => (m) => foldableExpr.foldl(f)(fold((z$1) => (v) => foldableVal.foldl(f)(z$1))(z)(m._1))(m._2),
34368
34595
  foldr: (f) => (z) => (m) => foldableEnv.foldr(f)(foldableExpr.foldr(f)(z)(m._2))(m._1),
34369
34596
  foldMap: (dictMonoid) => {
34370
- const foldMap5 = foldableEnv.foldMap(dictMonoid);
34371
- const foldMap6 = foldableExpr.foldMap(dictMonoid);
34372
- return (f) => (m) => dictMonoid.Semigroup0().append(foldMap5(f)(m._1))(foldMap6(f)(m._2));
34597
+ const foldMap7 = foldableEnv.foldMap(dictMonoid);
34598
+ const foldMap8 = foldableExpr.foldMap(dictMonoid);
34599
+ return (f) => (m) => dictMonoid.Semigroup0().append(foldMap7(f)(m._1))(foldMap8(f)(m._2));
34373
34600
  }
34374
34601
  };
34375
34602
  var traversableVal = {
@@ -34384,8 +34611,8 @@ var traversableVal = {
34384
34611
  var traversableMatrixRep = {
34385
34612
  traverse: (dictApplicative) => {
34386
34613
  const bitraverse1 = bitraversableTuple.bitraverse(dictApplicative);
34387
- const traverse7 = traversableArray.traverse(dictApplicative);
34388
- return (f) => (v) => dictApplicative.Apply0().Functor0().map(MatrixRep)(bitraverse1(traverse7(traverse7(traversableVal.traverse(dictApplicative)(f))))(bitraverse1(traversableTuple.traverse(dictApplicative)(f))(traversableTuple.traverse(dictApplicative)(f)))(v));
34614
+ const traverse8 = traversableArray.traverse(dictApplicative);
34615
+ return (f) => (v) => dictApplicative.Apply0().Functor0().map(MatrixRep)(bitraverse1(traverse8(traverse8(traversableVal.traverse(dictApplicative)(f))))(bitraverse1(traversableMatrixDim.traverse(dictApplicative)(f))(traversableMatrixDim.traverse(dictApplicative)(f)))(v));
34389
34616
  },
34390
34617
  sequence: (dictApplicative) => traversableMatrixRep.traverse(dictApplicative)(identity5),
34391
34618
  Functor0: () => functorMatrixRep,
@@ -34395,20 +34622,20 @@ var traversableFun = {
34395
34622
  traverse: (dictApplicative) => {
34396
34623
  const Apply0 = dictApplicative.Apply0();
34397
34624
  const $0 = Apply0.Functor0();
34398
- const traverse7 = traversableDict.traverse(dictApplicative);
34399
- const traverse8 = traversableElim.traverse(dictApplicative);
34400
- const traverse9 = traversableList.traverse(dictApplicative);
34625
+ const traverse8 = traversableDict.traverse(dictApplicative);
34626
+ const traverse9 = traversableElim.traverse(dictApplicative);
34627
+ const traverse10 = traversableList.traverse(dictApplicative);
34401
34628
  return (f) => (m) => {
34402
34629
  if (m.tag === "Closure") {
34403
- return Apply0.apply(Apply0.apply($0.map((v3) => (v4) => (v5) => $Fun("Closure", v3, v4, v5))(traversableEnv.traverse(dictApplicative)(f)(m._1)))(traverse7(traverse8(f))(m._2)))(traverse8(f)(m._3));
34630
+ return Apply0.apply(Apply0.apply($0.map((v3) => (v4) => (v5) => $Fun("Closure", v3, v4, v5))(traversableEnv.traverse(dictApplicative)(f)(m._1)))(traverse8(traverse9(f))(m._2)))(traverse9(f)(m._3));
34404
34631
  }
34405
34632
  if (m.tag === "Foreign") {
34406
34633
  const $1 = m._1;
34407
- return $0.map((v2) => $Fun("Foreign", $1, v2))(traverse9(traversableVal.traverse(dictApplicative)(f))(m._2));
34634
+ return $0.map((v2) => $Fun("Foreign", $1, v2))(traverse10(traversableVal.traverse(dictApplicative)(f))(m._2));
34408
34635
  }
34409
34636
  if (m.tag === "PartialConstr") {
34410
34637
  const $1 = m._1;
34411
- return $0.map((v2) => $Fun("PartialConstr", $1, v2))(traverse9(traversableVal.traverse(dictApplicative)(f))(m._2));
34638
+ return $0.map((v2) => $Fun("PartialConstr", $1, v2))(traverse10(traversableVal.traverse(dictApplicative)(f))(m._2));
34412
34639
  }
34413
34640
  fail();
34414
34641
  };
@@ -34419,8 +34646,8 @@ var traversableFun = {
34419
34646
  };
34420
34647
  var traversableEnv = {
34421
34648
  traverse: (dictApplicative) => {
34422
- const traverse7 = traversableDict.traverse(dictApplicative);
34423
- return (f) => (m) => dictApplicative.Apply0().Functor0().map((v1) => v1)(traverse7(traversableVal.traverse(dictApplicative)(f))(m));
34649
+ const traverse8 = traversableDict.traverse(dictApplicative);
34650
+ return (f) => (m) => dictApplicative.Apply0().Functor0().map((v1) => v1)(traverse8(traversableVal.traverse(dictApplicative)(f))(m));
34424
34651
  },
34425
34652
  sequence: (dictApplicative) => (v) => traversableEnv.traverse(dictApplicative)(identity26)(v),
34426
34653
  Functor0: () => functorEnv,
@@ -34428,9 +34655,9 @@ var traversableEnv = {
34428
34655
  };
34429
34656
  var traversableDictRep = {
34430
34657
  traverse: (dictApplicative) => {
34431
- const traverse7 = traversableDict.traverse(dictApplicative);
34658
+ const traverse8 = traversableDict.traverse(dictApplicative);
34432
34659
  const bitraverse1 = bitraversableTuple.bitraverse(dictApplicative);
34433
- return (f) => (v) => dictApplicative.Apply0().Functor0().map(DictRep)(traverse7(bitraverse1(f)(traversableVal.traverse(dictApplicative)(f)))(v));
34660
+ return (f) => (v) => dictApplicative.Apply0().Functor0().map(DictRep)(traverse8(bitraverse1(f)(traversableVal.traverse(dictApplicative)(f)))(v));
34434
34661
  },
34435
34662
  sequence: (dictApplicative) => traversableDictRep.traverse(dictApplicative)(identity5),
34436
34663
  Functor0: () => functorDictRep,
@@ -34439,7 +34666,7 @@ var traversableDictRep = {
34439
34666
  var traversableBaseVal = {
34440
34667
  traverse: (dictApplicative) => {
34441
34668
  const $0 = dictApplicative.Apply0().Functor0();
34442
- const traverse7 = traversableList.traverse(dictApplicative);
34669
+ const traverse8 = traversableList.traverse(dictApplicative);
34443
34670
  return (f) => (m) => {
34444
34671
  if (m.tag === "Int") {
34445
34672
  return dictApplicative.pure($BaseVal("Int", m._1));
@@ -34452,7 +34679,7 @@ var traversableBaseVal = {
34452
34679
  }
34453
34680
  if (m.tag === "Constr") {
34454
34681
  const $1 = m._1;
34455
- return $0.map((v2) => $BaseVal("Constr", $1, v2))(traverse7(traversableVal.traverse(dictApplicative)(f))(m._2));
34682
+ return $0.map((v2) => $BaseVal("Constr", $1, v2))(traverse8(traversableVal.traverse(dictApplicative)(f))(m._2));
34456
34683
  }
34457
34684
  if (m.tag === "Dictionary") {
34458
34685
  return $0.map((v1) => $BaseVal("Dictionary", v1))(traversableDictRep.traverse(dictApplicative)(f)(m._1));
@@ -34586,14 +34813,12 @@ var expandableBaseValRawBaseV = (dictBoundedJoinSemilattice) => ({
34586
34813
  return throwException(error("Shape mismatch"))();
34587
34814
  }
34588
34815
  });
34816
+ var applyMatrixDim = { apply: (v) => (v1) => $Tuple(mustEq(eqInt)(showInt)(v._1)(v1._1), v._2(v1._2)), Functor0: () => functorMatrixDim };
34589
34817
  var applyVal = { apply: (v) => (v1) => $Val(v._1(v1._1), applyBaseVal.apply(v._2)(v1._2)), Functor0: () => functorVal };
34590
34818
  var applyMatrixRep = {
34591
34819
  apply: (v) => (v1) => $Tuple(
34592
34820
  zipWith(zipWith(applyVal.apply))(v._1)(v1._1),
34593
- $Tuple(
34594
- $Tuple(mustEq(eqInt)(showInt)(v._2._1._1)(v1._2._1._1), v._2._1._2(v1._2._1._2)),
34595
- $Tuple(mustEq(eqInt)(showInt)(v._2._2._1)(v1._2._2._1), v._2._2._2(v1._2._2._2))
34596
- )
34821
+ $Tuple(applyMatrixDim.apply(v._2._1)(v1._2._1), applyMatrixDim.apply(v._2._2)(v1._2._2))
34597
34822
  ),
34598
34823
  Functor0: () => functorMatrixRep
34599
34824
  };
@@ -34681,15 +34906,15 @@ var applyEnvExpr = {
34681
34906
  Functor0: () => functorEnvExpr
34682
34907
  };
34683
34908
  var joinSemilatticeVal = (dictJoinSemilattice) => ({ join: (v) => (v1) => $Val(dictJoinSemilattice.join(v._1)(v1._1), joinSemilatticeBaseVal(dictJoinSemilattice).join(v._2)(v1._2)) });
34684
- var joinSemilatticeMatrixRep = (dictJoinSemilattice) => ({
34685
- join: (v) => (v1) => $Tuple(
34686
- joinSemilatticeArray(joinSemilatticeArray(joinSemilatticeVal(dictJoinSemilattice))).join(v._1)(v1._1),
34687
- $Tuple(
34688
- $Tuple(mustEq(eqInt)(showInt)(v._2._1._1)(v1._2._1._1), dictJoinSemilattice.join(v._2._1._2)(v1._2._1._2)),
34689
- $Tuple(mustEq(eqInt)(showInt)(v._2._2._1)(v1._2._2._1), dictJoinSemilattice.join(v._2._2._2)(v1._2._2._2))
34909
+ var joinSemilatticeMatrixRep = (dictJoinSemilattice) => {
34910
+ const $0 = joinSemilatticeMatrixDim(dictJoinSemilattice);
34911
+ return {
34912
+ join: (v) => (v1) => $Tuple(
34913
+ joinSemilatticeArray(joinSemilatticeArray(joinSemilatticeVal(dictJoinSemilattice))).join(v._1)(v1._1),
34914
+ $Tuple($0.join(v._2._1)(v1._2._1), $0.join(v._2._2)(v1._2._2))
34690
34915
  )
34691
- )
34692
- });
34916
+ };
34917
+ };
34693
34918
  var joinSemilatticeFun = (dictJoinSemilattice) => {
34694
34919
  const joinSemilatticeElim2 = joinSemilatticeElim(dictJoinSemilattice);
34695
34920
  return {
@@ -34792,7 +35017,7 @@ var unrestrictGC = (dictBoundedMeetSemilattice) => (\u03B3) => (xs) => assertWit
34792
35017
  })(\u03B3$p))
34793
35018
  });
34794
35019
  var reaches = (\u03C1) => (xs) => {
34795
- const dom_\u03C1 = fromFoldable9(mapObjectString.keys(\u03C1));
35020
+ const dom_\u03C1 = fromFoldable8(mapObjectString.keys(\u03C1));
34796
35021
  const go = (go$a0$copy) => (go$a1$copy) => {
34797
35022
  let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
34798
35023
  while (go$c) {
@@ -34803,20 +35028,20 @@ var reaches = (\u03C1) => (xs) => {
34803
35028
  continue;
34804
35029
  }
34805
35030
  if (v.tag === "Cons") {
34806
- if (setSet3.member(v._1)(v1)) {
35031
+ if (setSet1.member(v._1)(v1)) {
34807
35032
  go$a0 = v._2;
34808
35033
  go$a1 = v1;
34809
35034
  continue;
34810
35035
  }
34811
35036
  go$a0 = foldableList.foldr(Cons)(v._2)(toUnfoldable14(intersection2(fVElim.fv($$get2(showString)(mapDictString)(v._1)(\u03C1)))(dom_\u03C1)));
34812
- go$a1 = setSet3.union($$$Map("Two", Leaf2, v._1, void 0, Leaf2))(v1);
35037
+ go$a1 = setSet1.union($$$Map("Two", Leaf2, v._1, void 0, Leaf2))(v1);
34813
35038
  continue;
34814
35039
  }
34815
35040
  fail();
34816
35041
  }
34817
35042
  return go$r;
34818
35043
  };
34819
- return go(toUnfoldable14(xs))(setSet3.empty);
35044
+ return go(toUnfoldable14(xs))(setSet1.empty);
34820
35045
  };
34821
35046
  var matrixPut = (i) => (j) => (\u03B4v) => (v) => {
34822
35047
  const vs_i = definitely("index within bounds")(index(v._1)(i - 1 | 0));
@@ -34836,7 +35061,7 @@ var matrixGet = (i) => (j) => (v) => definitely("index out of bounds!")((() => {
34836
35061
  fail();
34837
35062
  })());
34838
35063
  var forDefs = (\u03C1) => (\u03C3) => {
34839
- const $0 = reaches(\u03C1)(intersection2(fVElim.fv(\u03C3))(fromFoldable9(mapObjectString.keys(\u03C1))));
35064
+ const $0 = reaches(\u03C1)(intersection2(fVElim.fv(\u03C3))(fromFoldable8(mapObjectString.keys(\u03C1))));
34840
35065
  return filterWithKey((x2) => {
34841
35066
  const $1 = setSet(ordString).member(x2)($0);
34842
35067
  return (v) => $1;
@@ -34872,21 +35097,11 @@ var unary = (dictBoundedJoinSemilattice) => {
34872
35097
  id3,
34873
35098
  $ForeignOp$p({
34874
35099
  arity: 1,
34875
- "op'": (dictMonadWithGraphAlloc) => (dictMonadError) => {
34876
- const $0 = dictMonadError.MonadThrow0().Monad0().Bind1().Apply0().Functor0();
34877
- return (v) => {
35100
+ "op'": (dictMonadWithGraphAlloc) => {
35101
+ const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
35102
+ return (dictMonadError) => (v) => {
34878
35103
  if (v.tag === "Cons" && v._2.tag === "Nil") {
34879
- const $1 = v._1._2;
34880
- return $0.map((() => {
34881
- const $2 = f.o;
34882
- return (v$1) => $Val(v$1._2, $2.pack(v$1._1));
34883
- })())($0.map((v2) => $Tuple(f.fwd(f.i.unpack($1)), v2))(dictMonadWithGraphAlloc.new($$$Map(
34884
- "Two",
34885
- Leaf2,
34886
- v._1._1,
34887
- void 0,
34888
- Leaf2
34889
- ))));
35104
+ return $$new(Val)($$$Map("Two", Leaf2, v._1._1, void 0, Leaf2))(f.o.pack(f.fwd(f.i.unpack(v._1._2))));
34890
35105
  }
34891
35106
  fail();
34892
35107
  };
@@ -35029,20 +35244,17 @@ var binaryZero = (dictBoundedJoinSemilattice) => {
35029
35244
  id3,
35030
35245
  $ForeignOp$p({
35031
35246
  arity: 2,
35032
- "op'": (dictMonadWithGraphAlloc) => (dictMonadError) => {
35033
- const $0 = dictMonadError.MonadThrow0().Monad0().Bind1().Apply0().Functor0();
35034
- return (v) => {
35247
+ "op'": (dictMonadWithGraphAlloc) => {
35248
+ const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
35249
+ return (dictMonadError) => (v) => {
35035
35250
  if (v.tag === "Cons" && v._2.tag === "Cons" && v._2._2.tag === "Nil") {
35036
- const $1 = f.i.unpack(v._1._2);
35037
- const $2 = f.i.unpack(v._2._1._2);
35038
- return $0.map((() => {
35039
- const $3 = f.o;
35040
- return (v$1) => $Val(v$1._2, $3.pack(v$1._1));
35041
- })())($0.map((v4) => $Tuple(f.fwd($1)($2), v4))(dictMonadWithGraphAlloc.new((() => {
35042
- if (dictIsZero.isZero($1)) {
35251
+ const $0 = f.i.unpack(v._1._2);
35252
+ const $1 = f.i.unpack(v._2._1._2);
35253
+ return $$new(Val)((() => {
35254
+ if (dictIsZero.isZero($0)) {
35043
35255
  return $$$Map("Two", Leaf2, v._1._1, void 0, Leaf2);
35044
35256
  }
35045
- if (dictIsZero.isZero($2)) {
35257
+ if (dictIsZero.isZero($1)) {
35046
35258
  return $$$Map("Two", Leaf2, v._2._1._1, void 0, Leaf2);
35047
35259
  }
35048
35260
  return insert3(ordVertex)(v._2._1._1)()($$$Map(
@@ -35052,7 +35264,7 @@ var binaryZero = (dictBoundedJoinSemilattice) => {
35052
35264
  void 0,
35053
35265
  Leaf2
35054
35266
  ));
35055
- })())));
35267
+ })())(f.o.pack(f.fwd($0)($1)));
35056
35268
  }
35057
35269
  fail();
35058
35270
  };
@@ -35117,22 +35329,17 @@ var binary = (dictBoundedJoinSemilattice) => {
35117
35329
  id3,
35118
35330
  $ForeignOp$p({
35119
35331
  arity: 2,
35120
- "op'": (dictMonadWithGraphAlloc) => (dictMonadError) => {
35121
- const $0 = dictMonadError.MonadThrow0().Monad0().Bind1().Apply0().Functor0();
35122
- return (v) => {
35332
+ "op'": (dictMonadWithGraphAlloc) => {
35333
+ const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
35334
+ return (dictMonadError) => (v) => {
35123
35335
  if (v.tag === "Cons" && v._2.tag === "Cons" && v._2._2.tag === "Nil") {
35124
- const $1 = v._1._2;
35125
- const $2 = v._2._1._2;
35126
- return $0.map((() => {
35127
- const $3 = f.o;
35128
- return (v$1) => $Val(v$1._2, $3.pack(v$1._1));
35129
- })())($0.map((v3) => $Tuple(f.fwd(f.i1.unpack($1))(f.i2.unpack($2)), v3))(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v._2._1._1)()($$$Map(
35336
+ return $$new(Val)(insert3(ordVertex)(v._2._1._1)()($$$Map(
35130
35337
  "Two",
35131
35338
  Leaf2,
35132
35339
  v._1._1,
35133
35340
  void 0,
35134
35341
  Leaf2
35135
- )))));
35342
+ )))(f.o.pack(f.fwd(f.i1.unpack(v._1._2))(f.i2.unpack(v._2._1._2))));
35136
35343
  }
35137
35344
  fail();
35138
35345
  };
@@ -35170,7 +35377,7 @@ var asIntNumberOrString = { as: (x2) => $Either("Left", toNumber(x2)) };
35170
35377
  var asIntNumber = { as: toNumber };
35171
35378
  var asIntIntOrNumber = { as: Left };
35172
35379
  var asBooleanBoolean = { as: (x2) => x2 };
35173
- var union5 = (dictAs) => (dictAs1) => (dictAs2) => (dictAs3) => (v) => (v1) => (v2) => (v3) => {
35380
+ var union6 = (dictAs) => (dictAs1) => (dictAs2) => (dictAs3) => (v) => (v1) => (v2) => (v3) => {
35174
35381
  if (v2.tag === "Left") {
35175
35382
  if (v3.tag === "Left") {
35176
35383
  return dictAs.as(v(v2._1)(v3._1));
@@ -35190,7 +35397,7 @@ var union5 = (dictAs) => (dictAs1) => (dictAs2) => (dictAs3) => (v) => (v1) => (
35190
35397
  }
35191
35398
  fail();
35192
35399
  };
35193
- var unionStr = (dictAs) => (dictAs1) => union5(dictAs)(dictAs)(dictAs1)(dictAs1);
35400
+ var unionStr = (dictAs) => (dictAs1) => union6(dictAs)(dictAs)(dictAs1)(dictAs1);
35194
35401
 
35195
35402
  // output-es/Web.Event.Event/foreign.js
35196
35403
  function _target(e) {
@@ -35887,7 +36094,7 @@ function on(eventType) {
35887
36094
 
35888
36095
  // output-es/App.View.Util.D3/index.js
35889
36096
  var $ElementType = (tag) => tag;
35890
- var fromFoldable10 = /* @__PURE__ */ fromFoldable(foldableArray);
36097
+ var fromFoldable9 = /* @__PURE__ */ fromFoldable(foldableArray);
35891
36098
  var Caption = /* @__PURE__ */ $ElementType("Caption");
35892
36099
  var Circle = /* @__PURE__ */ $ElementType("Circle");
35893
36100
  var G = /* @__PURE__ */ $ElementType("G");
@@ -36468,7 +36675,7 @@ function drawBarChart_(barChartHelpers2, uiHelpers2, {
36468
36675
  var drawBarChart = (x1) => (x2) => (x3) => (x4) => drawBarChart_(x1, x2, x3, x4);
36469
36676
 
36470
36677
  // output-es/App.View.BarChart/index.js
36471
- var fromFoldable11 = /* @__PURE__ */ fromFoldable(foldableArray);
36678
+ var fromFoldable10 = /* @__PURE__ */ fromFoldable(foldableArray);
36472
36679
  var reflectDictSelState\u{1D54A}$x215ValS2 = {
36473
36680
  from: () => (r) => ({
36474
36681
  y: (() => {
@@ -36518,7 +36725,7 @@ var barChartHelpers = {
36518
36725
  fail();
36519
36726
  })();
36520
36727
  const col = indexCol(v1.j);
36521
- return fromFoldable11([
36728
+ return fromFoldable10([
36522
36729
  $Tuple(
36523
36730
  "fill",
36524
36731
  (() => {
@@ -36705,7 +36912,7 @@ var setSelState2 = (v) => (redraw) => (rootElement) => {
36705
36912
  return () => {
36706
36913
  const point$p = $2();
36707
36914
  const v2 = definitely("index within bounds")(index($0)(point$p.i));
36708
- const $3 = attrs(point2)(fromFoldable10((() => {
36915
+ const $3 = attrs(point2)(fromFoldable9((() => {
36709
36916
  const $32 = definitely("index within bounds")(index(v2.points)(point$p.j));
36710
36917
  const sel = join($32.x._2)($32.y._2);
36711
36918
  const fill$p = (isPersistent(sel) ? (a) => colorShade(a)(-30) : identity27)(nameCol(v2.name._1)(arrayMap((x2) => x2.name._1)($0)));
@@ -36735,7 +36942,7 @@ var setSelState2 = (v) => (redraw) => (rootElement) => {
36735
36942
  return () => {
36736
36943
  const segment$p = $2();
36737
36944
  const v2 = definitely("index within bounds")(index($0)(segment$p.i));
36738
- return attrs(segment)(fromFoldable10((() => {
36945
+ return attrs(segment)(fromFoldable9((() => {
36739
36946
  const sel = meet((() => {
36740
36947
  const $3 = definitely("index within bounds")(index(v2.points)(segment$p.j1));
36741
36948
  return join($3.x._2)($3.y._2);
@@ -36794,7 +37001,7 @@ var createRootElement = (v) => (div1) => (childId) => {
36794
37001
  const $132 = $3.x;
36795
37002
  const $14 = $3.y;
36796
37003
  const $15 = xAxis(to(range5))(nubBy(ordNumber.compare)($7));
36797
- const $16 = createChild(parent)(showElementType.show(G))(fromFoldable10([
37004
+ const $16 = createChild(parent)(showElementType.show(G))(fromFoldable9([
36798
37005
  classes(["x-axis"]),
36799
37006
  translate({ x: 0, y: range5.height })
36800
37007
  ]));
@@ -36805,14 +37012,14 @@ var createRootElement = (v) => (div1) => (childId) => {
36805
37012
  if ($132._1 === "Rotated") {
36806
37013
  const labels = $18();
36807
37014
  for_3(labels)((a) => {
36808
- const $192 = attrs(a)(fromFoldable10([$Tuple("transform", "rotate(45)")]));
37015
+ const $192 = attrs(a)(fromFoldable9([$Tuple("transform", "rotate(45)")]));
36809
37016
  return () => {
36810
37017
  const $202 = $192();
36811
- return styles($202)(fromFoldable10([$Tuple("text-anchor", "start")]))();
37018
+ return styles($202)(fromFoldable9([$Tuple("text-anchor", "start")]))();
36812
37019
  };
36813
37020
  })();
36814
37021
  }
36815
- const $19 = createChild(parent)(showElementType.show(G))(fromFoldable10([
37022
+ const $19 = createChild(parent)(showElementType.show(G))(fromFoldable9([
36816
37023
  classes(["y-axis"])
36817
37024
  ]))();
36818
37025
  const y2 = yAxis(to(range5))(3)($19)();
@@ -36820,17 +37027,17 @@ var createRootElement = (v) => (div1) => (childId) => {
36820
37027
  if ($14._1 === "Rotated") {
36821
37028
  const labels = $20();
36822
37029
  for_3(labels)((a) => {
36823
- const $21 = attrs(a)(fromFoldable10([$Tuple("transform", "rotate(45)")]));
37030
+ const $21 = attrs(a)(fromFoldable9([$Tuple("transform", "rotate(45)")]));
36824
37031
  return () => {
36825
37032
  const $22 = $21();
36826
- return styles($22)(fromFoldable10([$Tuple("text-anchor", "end")]))();
37033
+ return styles($22)(fromFoldable9([$Tuple("text-anchor", "end")]))();
36827
37034
  };
36828
37035
  })();
36829
37036
  }
36830
37037
  return { x: x2, y: y2 };
36831
37038
  };
36832
37039
  };
36833
- const $13 = createChild(div1)(showElementType.show(SVG))(fromFoldable10([
37040
+ const $13 = createChild(div1)(showElementType.show(SVG))(fromFoldable9([
36834
37041
  $Tuple("width", showIntImpl($4)),
36835
37042
  $Tuple("height", showIntImpl($5)),
36836
37043
  $Tuple("id", childId)
@@ -36843,7 +37050,7 @@ var createRootElement = (v) => (div1) => (childId) => {
36843
37050
  remove3(v2.x)();
36844
37051
  remove3(v2.y)();
36845
37052
  const interior = { width: ((($4 - a$p$1.width | 0) - 3 | 0) - $11 | 0) - 15 | 0, height: (($5 - 6 | 0) - a$p.height | 0) - caption_height | 0 };
36846
- const g = createChild(svg)(showElementType.show(G))(fromFoldable10([
37053
+ const g = createChild(svg)(showElementType.show(G))(fromFoldable9([
36847
37054
  translate({ x: a$p$1.width, y: 6 })
36848
37055
  ]))();
36849
37056
  createAxes(interior, g)();
@@ -36876,7 +37083,7 @@ var createRootElement = (v) => (div1) => (childId) => {
36876
37083
  return [];
36877
37084
  })(range(0)($1.length - 1 | 0))($1)))((v2$1) => {
36878
37085
  const $142 = setDatum(v2$1._2);
36879
- const $15 = createChild(g)(showElementType.show(Path2))(fromFoldable10([
37086
+ const $15 = createChild(g)(showElementType.show(Path2))(fromFoldable9([
36880
37087
  classes(["linechart-segment"]),
36881
37088
  $Tuple("d", line(to(interior))([v2$1._1.start, v2$1._1.end]))
36882
37089
  ]));
@@ -36887,7 +37094,7 @@ var createRootElement = (v) => (div1) => (childId) => {
36887
37094
  })();
36888
37095
  for_3(concat(zipWith((i) => (v2$1) => zipWith((j) => (p) => $Tuple(p, { i, j }))(range(0)(v2$1.points.length - 1 | 0))(v2$1.points))(range(0)($1.length - 1 | 0))($1)))((v2$1) => {
36889
37096
  const $142 = setDatum({ i: v2$1._2.i, j: v2$1._2.j });
36890
- const $15 = createChild(g)(showElementType.show(Circle))(fromFoldable10([
37097
+ const $15 = createChild(g)(showElementType.show(Circle))(fromFoldable9([
36891
37098
  classes(["linechart-point"]),
36892
37099
  $Tuple("stroke-width", "1"),
36893
37100
  $Tuple("cx", showNumberImpl(to(interior).x(v2$1._1.x._1))),
@@ -36898,7 +37105,7 @@ var createRootElement = (v) => (div1) => (childId) => {
36898
37105
  return $142($16)();
36899
37106
  };
36900
37107
  })();
36901
- const $14 = createChild(svg)(showElementType.show(Text2))(fromFoldable10([
37108
+ const $14 = createChild(svg)(showElementType.show(Text2))(fromFoldable9([
36902
37109
  $Tuple("x", showIntImpl(intDiv($4, 2))),
36903
37110
  $Tuple("y", showIntImpl($5 - intDiv(caption_height, 2) | 0)),
36904
37111
  classes(["title-text"]),
@@ -36906,10 +37113,10 @@ var createRootElement = (v) => (div1) => (childId) => {
36906
37113
  $Tuple("text-anchor", "middle")
36907
37114
  ]))();
36908
37115
  setText($0._1)($14)();
36909
- const legend$p = createChild(g)(showElementType.show(G))(fromFoldable10([
37116
+ const legend$p = createChild(g)(showElementType.show(G))(fromFoldable9([
36910
37117
  translate({ x: interior.width + 15 | 0, y: max4(0)(intDiv(interior.height - $12 | 0, 2)) })
36911
37118
  ]))();
36912
- createChild(legend$p)(showElementType.show(Rect))(fromFoldable10([
37119
+ createChild(legend$p)(showElementType.show(Rect))(fromFoldable9([
36913
37120
  classes(["legend-box"]),
36914
37121
  $Tuple("x", "0"),
36915
37122
  $Tuple("y", "0"),
@@ -36918,18 +37125,18 @@ var createRootElement = (v) => (div1) => (childId) => {
36918
37125
  ]))();
36919
37126
  for_3(zipWith((i) => (v3) => ({ i, name: v3.name._1 }))(range(0)($1.length - 1 | 0))($1))((v3) => {
36920
37127
  const $15 = v3.name;
36921
- const $16 = createChild(legend$p)(showElementType.show(G))(fromFoldable10([
37128
+ const $16 = createChild(legend$p)(showElementType.show(G))(fromFoldable9([
36922
37129
  classes(["legend-entry"]),
36923
37130
  translate({ x: 0, y: (v3.i * 15 | 0) + 2 | 0 })
36924
37131
  ]));
36925
37132
  return () => {
36926
37133
  const g$1 = $16();
36927
- const $17 = createChild(g$1)(showElementType.show(Text2))(fromFoldable10([
37134
+ const $17 = createChild(g$1)(showElementType.show(Text2))(fromFoldable9([
36928
37135
  classes(["legend-text"]),
36929
37136
  translate({ x: 15, y: 9 })
36930
37137
  ]))();
36931
37138
  setText($15)($17)();
36932
- return createChild(g$1)(showElementType.show(Circle))(fromFoldable10([
37139
+ return createChild(g$1)(showElementType.show(Circle))(fromFoldable9([
36933
37140
  $Tuple("fill", nameCol($15)(arrayMap((x2) => x2.name._1)($1))),
36934
37141
  $Tuple("r", "2"),
36935
37142
  $Tuple("cx", "6"),
@@ -37194,7 +37401,7 @@ var setSelState4 = (v) => (redraw) => (rootElement) => {
37194
37401
  return () => {
37195
37402
  const v1 = $1();
37196
37403
  const $2 = getText(v)(v1.i);
37197
- const $3 = styles(elem2)(fromFoldable10([
37404
+ const $3 = styles(elem2)(fromFoldable9([
37198
37405
  $Tuple("border-bottom", isTransient($2._2) ? "1px solid blue" : "none"),
37199
37406
  $Tuple(
37200
37407
  "background",
@@ -37227,14 +37434,14 @@ var setSelState4 = (v) => (redraw) => (rootElement) => {
37227
37434
  };
37228
37435
  };
37229
37436
  var createRootElement2 = (v) => (div) => (childId) => {
37230
- const $0 = createChild(div)(showElementType.show(Text2))(fromFoldable10([
37437
+ const $0 = createChild(div)(showElementType.show(Text2))(fromFoldable9([
37231
37438
  classes(["paragraph"]),
37232
37439
  $Tuple("id", childId)
37233
37440
  ]));
37234
37441
  return () => {
37235
37442
  const rootElement = $0();
37236
37443
  forWithIndex_2(v)((i) => (elem2) => {
37237
- const $1 = createChild(rootElement)(showElementType.show(Text2))(fromFoldable10([
37444
+ const $1 = createChild(rootElement)(showElementType.show(Text2))(fromFoldable9([
37238
37445
  classes(["text-fragment"]),
37239
37446
  $Tuple("id", childId)
37240
37447
  ]));
@@ -37345,7 +37552,7 @@ var join3 = (v) => (v1) => {
37345
37552
  }
37346
37553
  fail();
37347
37554
  };
37348
- var fromFoldable17 = /* @__PURE__ */ fromFoldable(foldableArray);
37555
+ var fromFoldable11 = /* @__PURE__ */ fromFoldable(foldableArray);
37349
37556
  var reflectDictSelState\u{1D54A}$x215ValS5 = {
37350
37557
  from: () => (r) => ({
37351
37558
  caption: (() => {
@@ -37360,7 +37567,7 @@ var scatterPlotHelpers = {
37360
37567
  point_attrs: (v) => (v1) => {
37361
37568
  const v2 = definitely("index within bounds")(index(v.points)(v1.i));
37362
37569
  const sel = join3(v2.x._2)(v2.y._2);
37363
- return fromFoldable17([
37570
+ return fromFoldable11([
37364
37571
  $Tuple(
37365
37572
  "r",
37366
37573
  showNumberImpl(toNumber(2) * (() => {
@@ -37476,20 +37683,20 @@ var createRootElement3 = (v) => (div) => (childId) => {
37476
37683
  const $0 = v.colNames;
37477
37684
  const $1 = v.filter;
37478
37685
  const $2 = v.rows;
37479
- const $3 = createChild(div)(showElementType.show(Table))(fromFoldable10([
37686
+ const $3 = createChild(div)(showElementType.show(Table))(fromFoldable9([
37480
37687
  classes(["table-view"]),
37481
37688
  $Tuple("id", childId)
37482
37689
  ]));
37483
37690
  return () => {
37484
37691
  const rootElement = $3();
37485
- createChild(rootElement)(showElementType.show(Caption))(fromFoldable10([
37692
+ createChild(rootElement)(showElementType.show(Caption))(fromFoldable9([
37486
37693
  classes(["title-text", "table-caption"]),
37487
37694
  $Tuple("dominant-baseline", "middle"),
37488
37695
  $Tuple("text-anchor", "left")
37489
37696
  ]))();
37490
37697
  const colNames$p = ["__n", ...$0];
37491
- const $4 = createChild(rootElement)(showElementType.show(THead))(fromFoldable10([]))();
37492
- const row = createChild($4)(showElementType.show(TR))(fromFoldable10([]))();
37698
+ const $4 = createChild(rootElement)(showElementType.show(THead))(fromFoldable9([]))();
37699
+ const row = createChild($4)(showElementType.show(TR))(fromFoldable9([]))();
37493
37700
  forWithIndex_3(colNames$p)((j) => (colName) => {
37494
37701
  const value = (() => {
37495
37702
  if (colName === "__n") {
@@ -37500,7 +37707,7 @@ var createRootElement3 = (v) => (div) => (childId) => {
37500
37707
  }
37501
37708
  return colName;
37502
37709
  })();
37503
- const $5 = createChild(row)(showElementType.show(TH))(fromFoldable10([
37710
+ const $5 = createChild(row)(showElementType.show(TH))(fromFoldable9([
37504
37711
  classes(["table-cell", ...colName === "__n" ? ["filter-toggle", "toggle-button"] : []])
37505
37712
  ]));
37506
37713
  const $6 = setText(value);
@@ -37511,9 +37718,9 @@ var createRootElement3 = (v) => (div) => (childId) => {
37511
37718
  return $7($9)();
37512
37719
  };
37513
37720
  })();
37514
- const body = createChild(rootElement)(showElementType.show(TBody))(fromFoldable10([]))();
37721
+ const body = createChild(rootElement)(showElementType.show(TBody))(fromFoldable9([]))();
37515
37722
  forWithIndex_3($2)((i) => (row$1) => {
37516
- const $5 = createChild(body)(showElementType.show(TR))(fromFoldable10([
37723
+ const $5 = createChild(body)(showElementType.show(TR))(fromFoldable9([
37517
37724
  classes(["table-row"])
37518
37725
  ]));
37519
37726
  const $6 = setDatum({ i });
@@ -37521,14 +37728,14 @@ var createRootElement3 = (v) => (div) => (childId) => {
37521
37728
  const $7 = $5();
37522
37729
  const row$p = $6($7)();
37523
37730
  return forWithIndex_3([showIntImpl(i + 1 | 0), ...arrayMap(prim)(row$1)])((j) => (value) => {
37524
- const $8 = createChild(row$p)(showElementType.show(TD))(fromFoldable10([
37731
+ const $8 = createChild(row$p)(showElementType.show(TD))(fromFoldable9([
37525
37732
  classes(j >= 0 ? ["table-cell"] : [])
37526
37733
  ]));
37527
37734
  const $9 = setText(value);
37528
37735
  const $10 = setDatum({ i, j: j - 1 | 0, value, colName: definitely("index within bounds")(index(colNames$p)(j)) });
37529
37736
  return () => {
37530
37737
  const $11 = $8();
37531
- const $12 = styles($11)(fromFoldable10([
37738
+ const $12 = styles($11)(fromFoldable9([
37532
37739
  $Tuple("border-top", "1px solid transparent"),
37533
37740
  $Tuple("border-left", "1px solid transparent")
37534
37741
  ]))();
@@ -37606,7 +37813,7 @@ var setSelState6 = (v) => (redraw) => (rootElement) => {
37606
37813
  const $6 = classed(v12.colName === "__n" ? "" : selClassesFor(definitely("index within bounds")(index(definitely("index within bounds")(index($0)(v12.i)))(v12.j))._1))(true)($5)();
37607
37814
  for_2(["mousedown", "mouseenter", "mouseleave"])((ev) => on(ev)(redraw)($6))();
37608
37815
  }
37609
- return styles(cell)(fromFoldable10([
37816
+ return styles(cell)(fromFoldable9([
37610
37817
  $Tuple(
37611
37818
  "border-right",
37612
37819
  (() => {
@@ -37679,10 +37886,10 @@ var drawableTableView = {
37679
37886
  var arrayDictToArray2 = (x2) => arrayMap((a) => arrayMap((a$1) => $$get2(showString)(mapDictString)(a$1)(a))(x2));
37680
37887
 
37681
37888
  // output-es/App.View/index.js
37682
- var pack = (x2) => (k) => k(drawableBarChart)(x2);
37683
- var pack1 = (x2) => (k) => k(drawableLineChart)(x2);
37684
- var pack2 = (x2) => (k) => k(drawableScatterPlot)(x2);
37685
- var pack3 = (x2) => (k) => k(drawableParagraphSelState)(x2);
37889
+ var pack3 = (x2) => (k) => k(drawableBarChart)(x2);
37890
+ var pack13 = (x2) => (k) => k(drawableLineChart)(x2);
37891
+ var pack23 = (x2) => (k) => k(drawableScatterPlot)(x2);
37892
+ var pack32 = (x2) => (k) => k(drawableParagraphSelState)(x2);
37686
37893
  var pack4 = (x2) => (k) => k(drawableMultiView)(x2);
37687
37894
  var identity28 = (x2) => x2;
37688
37895
  var pack5 = (x2) => (k) => k(drawableTableView)(x2);
@@ -37691,16 +37898,16 @@ var view = () => (v) => (v1) => (v2) => {
37691
37898
  if (v1._2.tag === "Constr") {
37692
37899
  if (v1._2._2.tag === "Cons" && v1._2._2._2.tag === "Nil") {
37693
37900
  if (v1._2._1 === "BarChart") {
37694
- return pack(dict(reflectDictSelState\u{1D54A}$x215ValS22.from())(v1._2._2._1));
37901
+ return pack3(dict(reflectDictSelState\u{1D54A}$x215ValS22.from())(v1._2._2._1));
37695
37902
  }
37696
37903
  if (v1._2._1 === "LineChart") {
37697
- return pack1(dict(reflectDictSelState\u{1D54A}$x215ValS13.from())(v1._2._2._1));
37904
+ return pack13(dict(reflectDictSelState\u{1D54A}$x215ValS13.from())(v1._2._2._1));
37698
37905
  }
37699
37906
  if (v1._2._1 === "ScatterPlot") {
37700
- return pack2(dict(reflectDictSelState\u{1D54A}$x215ValS5.from())(v1._2._2._1));
37907
+ return pack23(dict(reflectDictSelState\u{1D54A}$x215ValS5.from())(v1._2._2._1));
37701
37908
  }
37702
37909
  if (v1._2._1 === "Paragraph") {
37703
- return pack3(reflectValSelState\u{1D54A}Paragr.from()(v1._2._2._1));
37910
+ return pack32(reflectValSelState\u{1D54A}Paragr.from()(v1._2._2._1));
37704
37911
  }
37705
37912
  if (v1._2._1 === "MultiView") {
37706
37913
  const vws = _fmapObject(
@@ -37787,7 +37994,7 @@ var monadErrorStateT = (dictMonadError) => {
37787
37994
  };
37788
37995
 
37789
37996
  // output-es/Graph.WithGraph/index.js
37790
- var fromFoldable18 = /* @__PURE__ */ (() => {
37997
+ var fromFoldable17 = /* @__PURE__ */ (() => {
37791
37998
  const go = (go$a0$copy) => (go$a1$copy) => {
37792
37999
  let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
37793
38000
  while (go$c) {
@@ -37834,7 +38041,7 @@ var monadAllocAllocT = (dictMonad) => {
37834
38041
  var runAllocT = (dictMonad) => (m) => (n) => dictMonad.Bind1().bind(m(n))((v) => dictMonad.Applicative0().pure($Tuple(
37835
38042
  v._2,
37836
38043
  $Tuple(
37837
- fromFoldable18(listMap((x2) => showIntImpl(x2))((() => {
38044
+ fromFoldable17(listMap((x2) => showIntImpl(x2))((() => {
37838
38045
  const $0 = n + 1 | 0;
37839
38046
  if (v._2 < $0) {
37840
38047
  return Nil;
@@ -37879,9 +38086,8 @@ var runWithGraphT_spy = (dictMonad) => {
37879
38086
  const runWithGraphT2 = runWithGraphT(dictMonad);
37880
38087
  const spyFunWhenM2 = spyFunWhenM(dictMonad.Bind1().Apply0().Functor0());
37881
38088
  return (dictGraph) => {
37882
- const $0 = runWithGraphT2(dictGraph);
37883
- const $1 = spyFunWhenM2(false)("runWithGraphT")(showVertices)((x2) => showEdgeList(toEdgeList(dictGraph)(x2._1)));
37884
- return (x2) => $1($0(x2));
38089
+ const runWithGraphT3 = runWithGraphT2(dictGraph);
38090
+ return (wg) => (\u03B1s) => spyFunWhenM2(false)("runWithGraphT")((x2) => showVertices(addresses(x2)))((x2) => showEdgeList(toEdgeList(dictGraph)(x2._1)))(runWithGraphT3(wg))(\u03B1s);
37885
38091
  };
37886
38092
  };
37887
38093
  var runWithGraphT_spy1 = /* @__PURE__ */ runWithGraphT_spy(monadIdentity);
@@ -37894,7 +38100,7 @@ var monadWithGraphAllocWithGr = (dictMonadError) => {
37894
38100
  const monadWithGraphWithGraphT1 = monadWithGraphWithGraphT(monadStateT);
37895
38101
  const monadErrorStateT2 = monadErrorStateT(monadErrorStateT(dictMonadError));
37896
38102
  return {
37897
- new: (\u03B1s) => bindStateT2.bind(fresh1)((\u03B1) => bindStateT2.bind(monadWithGraphWithGraphT1.extend(\u03B1)(\u03B1s))(() => applicativeStateT(monadStateT).pure(\u03B1))),
38103
+ new: (dictTypeName) => (constr) => (\u03B1s) => (vd) => bindStateT2.bind(fresh1)((\u03B1) => bindStateT2.bind(monadWithGraphWithGraphT1.extend($Tuple(\u03B1, (k) => k(dictTypeName)(vd)))(\u03B1s))(() => applicativeStateT(monadStateT).pure(constr(\u03B1)(vd)))),
37898
38104
  MonadAlloc0: () => monadAllocWithGraphAllocT1,
37899
38105
  MonadError1: () => monadErrorStateT2,
37900
38106
  MonadWithGraph2: () => monadWithGraphWithGraphT1
@@ -37906,30 +38112,29 @@ var pure2 = /* @__PURE__ */ (() => applicativeStateT(monadIdentity).pure)();
37906
38112
  var extend3 = /* @__PURE__ */ (() => monadWithGraphWithGraphT(monadIdentity).extend)();
37907
38113
  var tailRecM = /* @__PURE__ */ (() => monadRecStateT(monadRecIdentity).tailRecM)();
37908
38114
  var member4 = /* @__PURE__ */ (() => setSet(ordVertex).member)();
37909
- var fromFoldable19 = /* @__PURE__ */ (() => foldableSet.foldr(Cons)(Nil))();
38115
+ var fromFoldable18 = /* @__PURE__ */ (() => foldableSet.foldr(Cons)(Nil))();
37910
38116
  var intersection3 = /* @__PURE__ */ intersection(ordVertex);
37911
38117
  var fwdSlice = (dictGraph) => {
37912
38118
  const runWithGraph_spy = runWithGraphT_spy1(dictGraph);
37913
38119
  return (v) => {
37914
38120
  const $0 = v._2;
37915
- const $1 = v._1;
37916
38121
  return runWithGraph_spy(tailRecM((v1) => {
37917
38122
  if (v1.es.tag === "Nil") {
37918
38123
  return pure2($Step("Done", void 0));
37919
38124
  }
37920
38125
  if (v1.es.tag === "Cons") {
37921
- const $2 = lookup2(ordVertex)(v1.es._1._1)(v1.pending);
38126
+ const $1 = lookup2(ordVertex)(v1.es._1._1)(v1.pending);
37922
38127
  const \u03B2s = (() => {
37923
- if ($2.tag === "Nothing") {
38128
+ if ($1.tag === "Nothing") {
37924
38129
  return $$$Map("Two", Leaf2, v1.es._1._2, void 0, Leaf2);
37925
38130
  }
37926
- if ($2.tag === "Just") {
37927
- return insert3(ordVertex)(v1.es._1._2)()($2._1);
38131
+ if ($1.tag === "Just") {
38132
+ return insert3(ordVertex)(v1.es._1._2)()($1._1);
37928
38133
  }
37929
38134
  fail();
37930
38135
  })();
37931
38136
  if (eqMap(eqVertex)(eqUnit).eq(\u03B2s)(dictGraph.outN($0)(v1.es._1._1))) {
37932
- return bindStateT(monadIdentity).bind(extend3(v1.es._1._1)(\u03B2s))(() => pure2($Step(
38137
+ return bindStateT(monadIdentity).bind(extend3($Tuple(v1.es._1._1, dictGraph.vertexData($0)(v1.es._1._1)))(\u03B2s))(() => pure2($Step(
37933
38138
  "Loop",
37934
38139
  {
37935
38140
  pending: $$delete3(ordVertex)(v1.es._1._1)(v1.pending),
@@ -37940,26 +38145,37 @@ var fwdSlice = (dictGraph) => {
37940
38145
  return pure2($Step("Loop", { pending: insert3(ordVertex)(v1.es._1._1)(\u03B2s)(v1.pending), es: v1.es._2 }));
37941
38146
  }
37942
38147
  fail();
37943
- })({ pending: Leaf2, es: inEdges(dictGraph)($0)($1) }))(assertWhen(true)("inputs are sinks")((v$1) => difference2(ordVertex)($1)(dictGraph.sinks($0)).tag === "Leaf")($1))._1;
38148
+ })({ pending: Leaf2, es: inEdges(dictGraph)($0)(v._1) }))((() => {
38149
+ const $1 = map2(ordDVertex)((\u03B1) => $Tuple(\u03B1, dictGraph.vertexData($0)(\u03B1)))(v._1);
38150
+ return assertWhen(true)("inputs are sinks")((v$1) => difference2(ordVertex)(addresses($1))(dictGraph.sinks($0)).tag === "Leaf")($1);
38151
+ })())._1;
37944
38152
  };
37945
38153
  };
37946
38154
  var bwdSlice = (dictGraph) => {
37947
38155
  const runWithGraph_spy = runWithGraphT_spy1(dictGraph);
37948
38156
  return (v) => {
37949
38157
  const $0 = v._2;
37950
- const $1 = v._1;
38158
+ const $1 = map2(ordDVertex)((\u03B1) => $Tuple(
38159
+ \u03B1,
38160
+ spyWhen(false)("Vertex data found at " + showStringImpl(\u03B1))(typeNameVertexData.typeName)(dictGraph.vertexData($0)(\u03B1))
38161
+ ))(v._1);
37951
38162
  return runWithGraph_spy(tailRecM((v1) => {
37952
38163
  if (v1["\u03B1s"].tag === "Nil") {
37953
38164
  if (v1.pending.tag === "Nil") {
37954
38165
  return pure2($Step("Done", void 0));
37955
38166
  }
37956
38167
  if (v1.pending.tag === "Cons") {
37957
- if (member4(v1.pending._1._1)(v1.visited)) {
38168
+ const $2 = v1.pending._1._1._2;
38169
+ const $3 = v1.pending._1._1._1;
38170
+ if (member4($3)(v1.visited)) {
37958
38171
  return pure2($Step("Loop", { visited: v1.visited, "\u03B1s": Nil, pending: v1.pending._2 }));
37959
38172
  }
37960
- return bindStateT(monadIdentity).bind(extend3(v1.pending._1._1)(v1.pending._1._2))(() => pure2($Step(
38173
+ return bindStateT(monadIdentity).bind(extend3($Tuple(
38174
+ $3,
38175
+ spyWhen(false)("Vertex data found at " + showStringImpl($3))(typeNameVertexData.typeName)($2)
38176
+ ))(v1.pending._1._2))(() => pure2($Step(
37961
38177
  "Loop",
37962
- { visited: insert3(ordVertex)(v1.pending._1._1)()(v1.visited), "\u03B1s": Nil, pending: v1.pending._2 }
38178
+ { visited: insert3(ordVertex)($3)()(v1.visited), "\u03B1s": Nil, pending: v1.pending._2 }
37963
38179
  )));
37964
38180
  }
37965
38181
  fail();
@@ -37970,15 +38186,15 @@ var bwdSlice = (dictGraph) => {
37970
38186
  "Loop",
37971
38187
  {
37972
38188
  visited: v1.visited,
37973
- "\u03B1s": foldableList.foldr(Cons)(v1["\u03B1s"]._2)(fromFoldable19(\u03B2s)),
37974
- pending: $List("Cons", $Tuple(v1["\u03B1s"]._1, \u03B2s), v1.pending)
38189
+ "\u03B1s": foldableList.foldr(Cons)(v1["\u03B1s"]._2)(fromFoldable18(\u03B2s)),
38190
+ pending: $List("Cons", $Tuple($Tuple(v1["\u03B1s"]._1, dictGraph.vertexData($0)(v1["\u03B1s"]._1)), \u03B2s), v1.pending)
37975
38191
  }
37976
38192
  ));
37977
38193
  }
37978
38194
  fail();
37979
38195
  })({
37980
38196
  visited: Leaf2,
37981
- "\u03B1s": fromFoldable19(intersection3(assertWhen(true)("inputs are sinks")((v$1) => difference2(ordVertex)($1)(dictGraph.Vertices1().vertices($0)).tag === "Leaf")($1))(dictGraph.sources($0))),
38197
+ "\u03B1s": fromFoldable18(intersection3(addresses(assertWhen(true)("inputs are sinks")((v$1) => difference2(ordDVertex)($1)(dictGraph.Vertices1().vertices($0)).tag === "Leaf")($1)))(dictGraph.sources($0))),
37982
38198
  pending: Nil
37983
38199
  }))(Leaf2)._1;
37984
38200
  };
@@ -37987,7 +38203,7 @@ var bwdSlice = (dictGraph) => {
37987
38203
  // output-es/EvalGraph/index.js
37988
38204
  var setSet4 = /* @__PURE__ */ setSet(ordVertex);
37989
38205
  var disjointUnion2 = /* @__PURE__ */ disjointUnion(mapEnvStringVal);
37990
- var fromFoldable20 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordString)(a)()(m))(Leaf2))();
38206
+ var fromFoldable19 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordString)(a)()(m))(Leaf2))();
37991
38207
  var show22 = /* @__PURE__ */ (() => showSet(showString).show)();
37992
38208
  var toUnfoldable10 = /* @__PURE__ */ toUnfoldable4(unfoldableList);
37993
38209
  var union1 = /* @__PURE__ */ (() => setSet(ordString).union)();
@@ -38099,7 +38315,7 @@ var match = (dictMonadWithGraphAlloc) => {
38099
38315
  const $2 = v._2._1;
38100
38316
  const $3 = v._1;
38101
38317
  const $4 = v1._2;
38102
- 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(
38318
+ return Bind1.bind(check(MonadThrow0)(difference2(ordString)($1)(fromFoldable19(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(
38103
38319
  v2._1,
38104
38320
  $Tuple(v2._2._1, insert3(ordVertex)($3)()(v2._2._2))
38105
38321
  ))));
@@ -38124,8 +38340,8 @@ var graphGC = (dictGraph) => {
38124
38340
  const $2 = v["in\u03B1"];
38125
38341
  const $3 = v["out\u03B1"];
38126
38342
  return {
38127
- fwd: (in\u{1D539}) => select\u03B1s\u{1D539}Vertex3["select\u{1D539}s"]($3)($0.vertices(v.graph_fwd(select\u03B1s\u{1D539}Vertex22["select\u03B1s"](in\u{1D539})($2))($1))),
38128
- bwd: (out\u{1D539}) => select\u03B1s\u{1D539}Vertex22["select\u{1D539}s"]($2)($0.vertices(v.graph_bwd(select\u03B1s\u{1D539}Vertex3["select\u03B1s"](out\u{1D539})($3))($1)))
38343
+ fwd: (in\u{1D539}) => select\u03B1s\u{1D539}Vertex3["select\u{1D539}s"]($3)(addresses($0.vertices(v.graph_fwd(select\u03B1s\u{1D539}Vertex22["select\u03B1s"](in\u{1D539})($2))($1)))),
38344
+ bwd: (out\u{1D539}) => select\u03B1s\u{1D539}Vertex22["select\u{1D539}s"]($2)(addresses($0.vertices(v.graph_bwd(select\u03B1s\u{1D539}Vertex3["select\u03B1s"](out\u{1D539})($3))($1))))
38129
38345
  };
38130
38346
  };
38131
38347
  };
@@ -38135,35 +38351,35 @@ var graphGC = (dictGraph) => {
38135
38351
  };
38136
38352
  var closeDefs = (dictMonadWithGraphAlloc) => {
38137
38353
  const Monad0 = dictMonadWithGraphAlloc.MonadWithGraph2().Monad0();
38138
- const Functor0 = Monad0.Bind1().Apply0().Functor0();
38139
38354
  const traverse2 = traversableDict.traverse(Monad0.Applicative0());
38140
- return (\u03B3) => (\u03C1) => (\u03B1s) => Functor0.map(Env)(traverse2((\u03C3) => {
38355
+ const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
38356
+ return (\u03B3) => (\u03C1) => (\u03B1s) => Monad0.Bind1().Apply0().Functor0().map(Env)(traverse2((\u03C3) => {
38141
38357
  const \u03C1$p = forDefs(\u03C1)(\u03C3);
38142
- const $0 = $BaseVal(
38358
+ return $$new(Val)(\u03B1s)($BaseVal(
38143
38359
  "Fun",
38144
38360
  $Fun(
38145
38361
  "Closure",
38146
38362
  (() => {
38147
- const $02 = union1(fv(\u03C1$p))(fVElim.fv(\u03C3));
38363
+ const $0 = union1(fv(\u03C1$p))(fVElim.fv(\u03C3));
38148
38364
  return filterWithKey((x2) => {
38149
- const $1 = setSet(ordString).member(x2)($02);
38365
+ const $1 = setSet(ordString).member(x2)($0);
38150
38366
  return (v) => $1;
38151
38367
  })(\u03B3);
38152
38368
  })(),
38153
38369
  \u03C1$p,
38154
38370
  \u03C3
38155
38371
  )
38156
- );
38157
- return Functor0.map((f) => f($0))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(\u03B1s)));
38372
+ ));
38158
38373
  })(\u03C1));
38159
38374
  };
38160
38375
  var $$eval = (dictMonadWithGraphAlloc) => {
38161
38376
  const MonadError1 = dictMonadWithGraphAlloc.MonadError1();
38162
38377
  const withMsg2 = withMsg(MonadError1);
38163
38378
  const MonadThrow0 = MonadError1.MonadThrow0();
38379
+ const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
38164
38380
  const Monad0 = dictMonadWithGraphAlloc.MonadWithGraph2().Monad0();
38165
38381
  const Bind1 = Monad0.Bind1();
38166
- const Functor0 = Bind1.Apply0().Functor0();
38382
+ const $0 = Bind1.Apply0().Functor0();
38167
38383
  const Applicative0 = Monad0.Applicative0();
38168
38384
  const traverse2 = traversableList.traverse(Applicative0);
38169
38385
  const traverse3 = traversablePair.traverse(Applicative0);
@@ -38179,30 +38395,32 @@ var $$eval = (dictMonadWithGraphAlloc) => {
38179
38395
  return withMsg2("Variable lookup")(lookup$p(MonadThrow0)(showString)(mapEnvStringVal)(v1._1)(v));
38180
38396
  }
38181
38397
  if (v1.tag === "Int") {
38182
- return Functor0.map((f) => f($BaseVal("Int", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))));
38398
+ return $$new(Val)(insert3(ordVertex)(v1._1)()(v2))($BaseVal("Int", v1._2));
38183
38399
  }
38184
38400
  if (v1.tag === "Float") {
38185
- return Functor0.map((f) => f($BaseVal("Float", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))));
38401
+ return $$new(Val)(insert3(ordVertex)(v1._1)()(v2))($BaseVal("Float", v1._2));
38186
38402
  }
38187
38403
  if (v1.tag === "Str") {
38188
- return Functor0.map((f) => f($BaseVal("Str", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))));
38404
+ return $$new(Val)(insert3(ordVertex)(v1._1)()(v2))($BaseVal("Str", v1._2));
38189
38405
  }
38190
38406
  if (v1.tag === "Dictionary") {
38191
- const $0 = v1._1;
38192
- return Bind1.bind(Functor0.map(unzip4)(traverse2(traverse3((() => {
38193
- const $1 = $$eval(dictMonadWithGraphAlloc)(v);
38194
- return (a) => $1(a)(v2);
38407
+ const $1 = v1._1;
38408
+ return Bind1.bind($0.map(unzip4)(traverse2(traverse3((() => {
38409
+ const $2 = $$eval(dictMonadWithGraphAlloc)(v);
38410
+ return (a) => $2(a)(v2);
38195
38411
  })()))(v1._2)))((v3) => {
38196
38412
  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));
38197
- const $1 = $BaseVal("Dictionary", fromFoldable110(zipWith2(Tuple)(v4._1)(zipWith2(Tuple)(v4._2)(v3._2))));
38198
- return Functor0.map((f) => f($1))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($0)()(v2))));
38413
+ return $$new(Val)(insert3(ordVertex)($1)()(v2))($BaseVal(
38414
+ "Dictionary",
38415
+ fromFoldable110(zipWith2(Tuple)(v4._1)(zipWith2(Tuple)(v4._2)(v3._2)))
38416
+ ));
38199
38417
  });
38200
38418
  }
38201
38419
  if (v1.tag === "Constr") {
38202
- const $0 = v1._2;
38203
- const $1 = v1._3;
38204
- const $2 = v1._1;
38205
- return Bind1.bind(checkArity3($0)((() => {
38420
+ const $1 = v1._2;
38421
+ const $2 = v1._3;
38422
+ const $3 = v1._1;
38423
+ return Bind1.bind(checkArity3($1)((() => {
38206
38424
  const go = (go$a0$copy) => (go$a1$copy) => {
38207
38425
  let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
38208
38426
  while (go$c) {
@@ -38221,67 +38439,69 @@ var $$eval = (dictMonadWithGraphAlloc) => {
38221
38439
  }
38222
38440
  return go$r;
38223
38441
  };
38224
- return go(0)($1);
38442
+ return go(0)($2);
38225
38443
  })()))(() => Bind1.bind(traverse2((() => {
38226
- const $3 = $$eval(dictMonadWithGraphAlloc)(v);
38227
- return (a) => $3(a)(v2);
38228
- })())($1))((vs) => Functor0.map((f) => f($BaseVal("Constr", $0, vs)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($2)()(v2))))));
38444
+ const $4 = $$eval(dictMonadWithGraphAlloc)(v);
38445
+ return (a) => $4(a)(v2);
38446
+ })())($2))((vs) => $$new(Val)(insert3(ordVertex)($3)()(v2))($BaseVal("Constr", $1, vs))));
38229
38447
  }
38230
38448
  if (v1.tag === "Matrix") {
38231
- const $0 = v1._2;
38232
- const $1 = v1._3._1;
38233
- const $2 = v1._3._2;
38234
- const $3 = v1._1;
38449
+ const $1 = v1._2;
38450
+ const $2 = v1._3._1;
38451
+ const $3 = v1._3._2;
38452
+ const $4 = v1._1;
38235
38453
  return Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)(v1._4)(v2))((v3) => {
38236
38454
  const v5 = intPair.unpack(v3._2);
38237
- const $4 = v5._1._1;
38238
- const $5 = v5._2._1;
38239
- const $6 = v5._1._2;
38240
- const $7 = v5._2._2;
38241
- return Bind1.bind(check(MonadThrow0)(greaterThanOrEq($Tuple($4, $5))($Tuple(1, 1)))("array must be at least (" + show32($Tuple(1, 1)) + "); got (" + show32($Tuple(
38242
- $4,
38243
- $5
38244
- )) + ")"))(() => Bind1.bind(sequence1(arrayBind(range(1)($4))((i) => [
38245
- sequence1(arrayBind(range(1)($5))((j) => [
38455
+ const $5 = v5._1._1;
38456
+ const $6 = v5._2._1;
38457
+ const $7 = v5._1._2;
38458
+ const $8 = v5._2._2;
38459
+ return Bind1.bind(check(MonadThrow0)(greaterThanOrEq($Tuple($5, $6))($Tuple(1, 1)))("array must be at least (" + show32($Tuple(1, 1)) + "); got (" + show32($Tuple(
38460
+ $5,
38461
+ $6
38462
+ )) + ")"))(() => Bind1.bind(sequence1(arrayBind(range(1)($5))((i) => [
38463
+ sequence1(arrayBind(range(1)($6))((j) => [
38246
38464
  $$eval(dictMonadWithGraphAlloc)(unionWith((v$1) => identity18)(v)(disjointUnion2((() => {
38247
- const $8 = {};
38248
- $8[$1] = $Val($6, $BaseVal("Int", i));
38249
- return $8;
38465
+ const $9 = {};
38466
+ $9[$2] = $Val($7, $BaseVal("Int", i));
38467
+ return $9;
38250
38468
  })())((() => {
38251
- const $8 = {};
38252
- $8[$2] = $Val($7, $BaseVal("Int", j));
38253
- return $8;
38254
- })())))($0)(v2)
38469
+ const $9 = {};
38470
+ $9[$3] = $Val($8, $BaseVal("Int", j));
38471
+ return $9;
38472
+ })())))($1)(v2)
38255
38473
  ]))
38256
- ])))((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))))));
38474
+ ])))((vss) => $$new(Val)(insert3(ordVertex)($4)()(v2))($BaseVal(
38475
+ "Matrix",
38476
+ $Tuple(vss, $Tuple($Tuple($5, $7), $Tuple($6, $8)))
38477
+ ))));
38257
38478
  });
38258
38479
  }
38259
38480
  if (v1.tag === "Lambda") {
38260
- const $0 = $BaseVal(
38481
+ return $$new(Val)(insert3(ordVertex)(v1._1)()(v2))($BaseVal(
38261
38482
  "Fun",
38262
38483
  $Fun(
38263
38484
  "Closure",
38264
38485
  (() => {
38265
- const $02 = fVElim.fv(v1._2);
38486
+ const $1 = fVElim.fv(v1._2);
38266
38487
  return filterWithKey((x2) => {
38267
- const $1 = setSet(ordString).member(x2)($02);
38268
- return (v$1) => $1;
38488
+ const $2 = setSet(ordString).member(x2)($1);
38489
+ return (v$1) => $2;
38269
38490
  })(v);
38270
38491
  })(),
38271
38492
  empty,
38272
38493
  v1._2
38273
38494
  )
38274
- );
38275
- return Functor0.map((f) => f($0))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))));
38495
+ ));
38276
38496
  }
38277
38497
  if (v1.tag === "Project") {
38278
- const $0 = v1._2;
38498
+ const $1 = v1._2;
38279
38499
  return Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)(v1._1)(v2))((v3) => {
38280
38500
  if (v3._2.tag === "Dictionary") {
38281
- return withMsg2("Dict lookup")(orElse(MonadThrow0)('Key "' + $0 + '" not found')((() => {
38282
- const $1 = _lookup(Nothing, Just, $0, v3._2._1);
38283
- if ($1.tag === "Just") {
38284
- return $Maybe("Just", $1._1._2);
38501
+ return withMsg2("Dict lookup")(orElse(MonadThrow0)('Key "' + $1 + '" not found')((() => {
38502
+ const $2 = _lookup(Nothing, Just, $1, v3._2._1);
38503
+ if ($2.tag === "Just") {
38504
+ return $Maybe("Just", $2._1._2);
38285
38505
  }
38286
38506
  return Nothing;
38287
38507
  })()));
@@ -38290,14 +38510,14 @@ var $$eval = (dictMonadWithGraphAlloc) => {
38290
38510
  });
38291
38511
  }
38292
38512
  if (v1.tag === "DProject") {
38293
- const $0 = v1._2;
38294
- return Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)(v1._1)(v2))((v3) => Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)($0)(v2))((v$p) => {
38513
+ const $1 = v1._2;
38514
+ return Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)(v1._1)(v2))((v3) => Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)($1)(v2))((v$p) => {
38295
38515
  if (v3._2.tag === "Dictionary") {
38296
38516
  if (v$p._2.tag === "Str") {
38297
38517
  return withMsg2("Dict lookup")(orElse(MonadThrow0)('Key "' + v$p._2._1 + '" not found')((() => {
38298
- const $1 = _lookup(Nothing, Just, v$p._2._1, v3._2._1);
38299
- if ($1.tag === "Just") {
38300
- return $Maybe("Just", $1._1._2);
38518
+ const $2 = _lookup(Nothing, Just, v$p._2._1, v3._2._1);
38519
+ if ($2.tag === "Just") {
38520
+ return $Maybe("Just", $2._1._2);
38301
38521
  }
38302
38522
  return Nothing;
38303
38523
  })()));
@@ -38308,18 +38528,18 @@ var $$eval = (dictMonadWithGraphAlloc) => {
38308
38528
  }));
38309
38529
  }
38310
38530
  if (v1.tag === "App") {
38311
- const $0 = v1._2;
38312
- return Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)(v1._1)(v2))((v3) => Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)($0)(v2))((v$p) => apply2(dictMonadWithGraphAlloc)(v3)(v$p)));
38531
+ const $1 = v1._2;
38532
+ return Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)(v1._1)(v2))((v3) => Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)($1)(v2))((v$p) => apply2(dictMonadWithGraphAlloc)(v3)(v$p)));
38313
38533
  }
38314
38534
  if (v1.tag === "Let") {
38315
- const $0 = v1._2;
38316
- const $1 = v1._1._1;
38317
- return Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)(v1._1._2)(v2))((v3) => Bind1.bind(match1(v3)($1))((v4) => $$eval(dictMonadWithGraphAlloc)(unionWith((v$1) => identity18)(v)(v4._1))($0)(v4._2._2)));
38535
+ const $1 = v1._2;
38536
+ const $2 = v1._1._1;
38537
+ return Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)(v1._1._2)(v2))((v3) => Bind1.bind(match1(v3)($2))((v4) => $$eval(dictMonadWithGraphAlloc)(unionWith((v$1) => identity18)(v)(v4._1))($1)(v4._2._2)));
38318
38538
  }
38319
38539
  if (v1.tag === "LetRec") {
38320
- const $0 = v1._2;
38321
- const $1 = v1._1._1;
38322
- 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)));
38540
+ const $1 = v1._2;
38541
+ const $2 = v1._1._1;
38542
+ return Bind1.bind(closeDefs1(v)(v1._1._2)(insert3(ordVertex)($2)()(v2)))((\u03B3$p) => $$eval(dictMonadWithGraphAlloc)(unionWith((v$1) => identity18)(v)(\u03B3$p))($1)(insert3(ordVertex)($2)()(v2)));
38323
38543
  }
38324
38544
  fail();
38325
38545
  };
@@ -38328,7 +38548,7 @@ var apply2 = (dictMonadWithGraphAlloc) => {
38328
38548
  const Bind1 = dictMonadWithGraphAlloc.MonadWithGraph2().Monad0().Bind1();
38329
38549
  const closeDefs1 = closeDefs(dictMonadWithGraphAlloc);
38330
38550
  const match1 = match(dictMonadWithGraphAlloc);
38331
- const Functor0 = Bind1.Apply0().Functor0();
38551
+ const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
38332
38552
  const MonadError1 = dictMonadWithGraphAlloc.MonadError1();
38333
38553
  const MonadThrow0 = MonadError1.MonadThrow0();
38334
38554
  return (v) => (v1) => {
@@ -38341,8 +38561,7 @@ var apply2 = (dictMonadWithGraphAlloc) => {
38341
38561
  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))));
38342
38562
  }
38343
38563
  if (v._2._1.tag === "Foreign") {
38344
- const $1 = v._2._1._1._1;
38345
- const $2 = v._2._1._1._2;
38564
+ const $1 = v._2._1._1._2;
38346
38565
  const vs$p = foldableList.foldr(Cons)($List("Cons", v1, Nil))(v._2._1._2);
38347
38566
  if ((() => {
38348
38567
  const go = (go$a0$copy) => (go$a1$copy) => {
@@ -38363,24 +38582,19 @@ var apply2 = (dictMonadWithGraphAlloc) => {
38363
38582
  }
38364
38583
  return go$r;
38365
38584
  };
38366
- return $2._1.arity > go(0)(vs$p);
38585
+ return $1._1.arity > go(0)(vs$p);
38367
38586
  })()) {
38368
- return Functor0.map((f) => f($BaseVal("Fun", $Fun("Foreign", $Tuple($1, $2), vs$p))))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
38369
- "Two",
38370
- Leaf2,
38371
- v._1,
38372
- void 0,
38373
- Leaf2
38374
- ))));
38587
+ return $$new(Val)($$$Map("Two", Leaf2, v._1, void 0, Leaf2))($BaseVal(
38588
+ "Fun",
38589
+ $Fun("Foreign", $Tuple(v._2._1._1._1, $1), vs$p)
38590
+ ));
38375
38591
  }
38376
- return $2._1["op'"](dictMonadWithGraphAlloc)(MonadError1)(vs$p);
38592
+ return $1._1["op'"](dictMonadWithGraphAlloc)(MonadError1)(vs$p);
38377
38593
  }
38378
38594
  if (v._2._1.tag === "PartialConstr") {
38379
- const $1 = v._2._1._1;
38380
- const $2 = v._2._1._2;
38381
- const $3 = v._1;
38382
- const n = defined(arity(monadThrowExceptT(monadIdentity))($1));
38383
- return Bind1.bind(check(MonadThrow0)((() => {
38595
+ const $1 = v._1;
38596
+ const n = defined(arity(monadThrowExceptT(monadIdentity))(v._2._1._1));
38597
+ const v$p = (() => {
38384
38598
  const go = (go$a0$copy) => (go$a1$copy) => {
38385
38599
  let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
38386
38600
  while (go$c) {
@@ -38399,50 +38613,42 @@ var apply2 = (dictMonadWithGraphAlloc) => {
38399
38613
  }
38400
38614
  return go$r;
38401
38615
  };
38402
- return go(0)($2) < n;
38403
- })())("Too many arguments to " + showCtr($1)))(() => {
38404
- if ((() => {
38405
- const go = (go$a0$copy) => (go$a1$copy) => {
38406
- let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
38407
- while (go$c) {
38408
- const b = go$a0, v$1 = go$a1;
38409
- if (v$1.tag === "Nil") {
38410
- go$c = false;
38411
- go$r = b;
38412
- continue;
38413
- }
38414
- if (v$1.tag === "Cons") {
38415
- go$a0 = b + 1 | 0;
38416
- go$a1 = v$1._2;
38417
- continue;
38418
- }
38419
- fail();
38616
+ return go(0)(v._2._1._2) < (n - 1 | 0);
38617
+ })() ? $BaseVal(
38618
+ "Fun",
38619
+ $Fun(
38620
+ "PartialConstr",
38621
+ v._2._1._1,
38622
+ foldableList.foldr(Cons)($List("Cons", v1, Nil))(v._2._1._2)
38623
+ )
38624
+ ) : $BaseVal("Constr", v._2._1._1, foldableList.foldr(Cons)($List("Cons", v1, Nil))(v._2._1._2));
38625
+ return Bind1.bind(check(MonadThrow0)((() => {
38626
+ const go = (go$a0$copy) => (go$a1$copy) => {
38627
+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
38628
+ while (go$c) {
38629
+ const b = go$a0, v$1 = go$a1;
38630
+ if (v$1.tag === "Nil") {
38631
+ go$c = false;
38632
+ go$r = b;
38633
+ continue;
38420
38634
  }
38421
- return go$r;
38422
- };
38423
- return go(0)($2) < (n - 1 | 0);
38424
- })()) {
38425
- const $42 = $BaseVal(
38426
- "Fun",
38427
- $Fun("PartialConstr", $1, foldableList.foldr(Cons)($List("Cons", v1, Nil))($2))
38428
- );
38429
- return Functor0.map((f) => f($42))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
38430
- "Two",
38431
- Leaf2,
38432
- $3,
38433
- void 0,
38434
- Leaf2
38435
- ))));
38436
- }
38437
- const $4 = $BaseVal("Constr", $1, foldableList.foldr(Cons)($List("Cons", v1, Nil))($2));
38438
- return Functor0.map((f) => f($4))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
38439
- "Two",
38440
- Leaf2,
38441
- $3,
38442
- void 0,
38443
- Leaf2
38444
- ))));
38445
- });
38635
+ if (v$1.tag === "Cons") {
38636
+ go$a0 = b + 1 | 0;
38637
+ go$a1 = v$1._2;
38638
+ continue;
38639
+ }
38640
+ fail();
38641
+ }
38642
+ return go$r;
38643
+ };
38644
+ return go(0)(v._2._1._2) < n;
38645
+ })())("Too many arguments to " + showCtr(v._2._1._1)))(() => $$new(Val)($$$Map(
38646
+ "Two",
38647
+ Leaf2,
38648
+ $1,
38649
+ void 0,
38650
+ Leaf2
38651
+ ))(v$p));
38446
38652
  }
38447
38653
  }
38448
38654
  return $0(v1);
@@ -38508,13 +38714,13 @@ var graphEval = (dictMonadError) => {
38508
38714
  const $1 = v["\u03B3"];
38509
38715
  const $2 = spyFunWhen(false)("fwdSlice")((x2) => $Tuple(showVertices(x2._1), showEdgeList(toEdgeList(graphGraphImpl)(x2._2))))(showGraph(graphGraphImpl))(fwdSlice2);
38510
38716
  const $3 = spyFunWhen(false)("bwdSlice")((x2) => $Tuple(showVertices(x2._1), showEdgeList(toEdgeList(graphGraphImpl)(x2._2))))(showGraph(graphGraphImpl))(bwdSlice2);
38511
- return Monad0.Bind1().bind(runAllocT(Monad0)(bindStateT2.bind(alloc(e))((e\u03B1) => bindStateT2.bind(runWithGraphT_spy2(eval1($1)(e\u03B1)(Leaf2))(foldableEnvExpr.foldl((m) => (a) => insert3(ordVertex)(a)()(m))(Leaf2)($EnvExpr(
38717
+ return Monad0.Bind1().bind(runAllocT(Monad0)(bindStateT2.bind(alloc(e))((e\u03B1) => bindStateT2.bind(runWithGraphT_spy2(eval1($1)(e\u03B1)(Leaf2))(verticesEnvExprVertex.vertices($EnvExpr(
38512
38718
  $1,
38513
38719
  e\u03B1
38514
38720
  ))))((v1) => {
38515
38721
  const $4 = v1._1;
38516
38722
  const $5 = v1._2;
38517
- return bindStateT2.bind(check2(difference2(ordVertex)(foldableBaseVal.foldl((m) => (a) => insert3(ordVertex)(a)()(m))(insert3(ordVertex)($5._1)()(Leaf2))($5._2))($4._1.vertices).tag === "Leaf")("outputs in graph"))(() => applicativeStateT(Monad0).pure($Tuple(
38723
+ return bindStateT2.bind(check2(difference2(ordDVertex)(verticesValVertex.vertices($5))(verticesGraphImpl.vertices($4)).tag === "Leaf")("outputs in graph"))(() => applicativeStateT(Monad0).pure($Tuple(
38518
38724
  $4,
38519
38725
  $Tuple($EnvExpr($1, e\u03B1), $5)
38520
38726
  )));
@@ -40268,7 +40474,7 @@ var sepBy_try = (p) => (sep) => {
40268
40474
  };
40269
40475
 
40270
40476
  // output-es/Parse/index.js
40271
- var fromFoldable21 = /* @__PURE__ */ (() => fromFoldableImpl(foldableList.foldr))();
40477
+ var fromFoldable20 = /* @__PURE__ */ (() => fromFoldableImpl(foldableList.foldr))();
40272
40478
  var fromFoldable111 = /* @__PURE__ */ (() => fromFoldableImpl(foldableNonEmptyList.foldr))();
40273
40479
  var onlyIf = (b) => (a) => {
40274
40480
  const $0 = b ? (state1, v, v1, v2, done) => done(state1, void 0) : fail2("No alternative");
@@ -40277,7 +40483,7 @@ var onlyIf = (b) => (a) => {
40277
40483
  var choose2 = /* @__PURE__ */ choose(altParserT);
40278
40484
  var fanin3 = /* @__PURE__ */ fanin(categoryFn)(choiceFn);
40279
40485
  var identity31 = (x2) => x2;
40280
- var operators = (binaryOp) => fromFoldable21(listMap(arrayMap((v) => $Operator(
40486
+ var operators = (binaryOp) => fromFoldable20(listMap(arrayMap((v) => $Operator(
40281
40487
  "Infix",
40282
40488
  (() => {
40283
40489
  const $0 = binaryOp(v.op);
@@ -41778,7 +41984,7 @@ var $ForeignTrace$p = (_1, _2) => ({ tag: "ForeignTrace'", _1, _2 });
41778
41984
  var $Match = (tag, _1, _2) => ({ tag, _1, _2 });
41779
41985
  var $Trace = (tag, _1, _2, _3, _4) => ({ tag, _1, _2, _3, _4 });
41780
41986
  var $VarDef3 = (_1, _2) => ({ tag: "VarDef", _1, _2 });
41781
- var unions = /* @__PURE__ */ (() => {
41987
+ var unions2 = /* @__PURE__ */ (() => {
41782
41988
  const go = (go$a0$copy) => (go$a1$copy) => {
41783
41989
  let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
41784
41990
  while (go$c) {
@@ -41809,7 +42015,7 @@ var bVMatch = {
41809
42015
  return Leaf2;
41810
42016
  }
41811
42017
  if (v.tag === "MatchConstr") {
41812
- return unions(listMap(bVMatch.bv)(v._2));
42018
+ return unions2(listMap(bVMatch.bv)(v._2));
41813
42019
  }
41814
42020
  if (v.tag === "MatchDict") {
41815
42021
  return fold((z) => (v$1) => union3(ordString)(z))(Leaf2)(_fmapObject(v._1, bVMatch.bv));
@@ -41820,14 +42026,14 @@ var bVMatch = {
41820
42026
 
41821
42027
  // output-es/Eval/index.js
41822
42028
  var disjointUnion3 = /* @__PURE__ */ disjointUnion(mapEnvStringVal);
41823
- var fromFoldable25 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordString)(a)()(m))(Leaf2))();
42029
+ var fromFoldable21 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordString)(a)()(m))(Leaf2))();
41824
42030
  var show23 = /* @__PURE__ */ (() => showSet(showString).show)();
41825
42031
  var toUnfoldable15 = /* @__PURE__ */ toUnfoldable4(unfoldableList);
41826
42032
  var fromFoldable112 = /* @__PURE__ */ fromFoldable(foldableList);
41827
- var union6 = /* @__PURE__ */ (() => setSet(ordString).union)();
42033
+ var union7 = /* @__PURE__ */ (() => setSet(ordString).union)();
41828
42034
  var fv2 = /* @__PURE__ */ (() => fVDict(fVElim).fv)();
41829
42035
  var unzip5 = /* @__PURE__ */ unzip3(functorList);
41830
- var fromFoldable26 = /* @__PURE__ */ (() => fromFoldableImpl(foldableList.foldr))();
42036
+ var fromFoldable25 = /* @__PURE__ */ (() => fromFoldableImpl(foldableList.foldr))();
41831
42037
  var greaterThanOrEq1 = /* @__PURE__ */ (() => {
41832
42038
  const $0 = ordTuple(ordInt)(ordInt);
41833
42039
  return (a1) => (a2) => $0.compare(a1)(a2) !== "LT";
@@ -41944,7 +42150,7 @@ var match4 = (dictMonadError) => {
41944
42150
  const $3 = v._2._1;
41945
42151
  const $4 = v._1;
41946
42152
  const $5 = v1._2;
41947
- return Bind1.bind(check(MonadThrow0)(difference2(ordString)($2)(fromFoldable25(mapObjectString.keys($3))).tag === "Leaf")("Pattern mismatch: found " + show23(mapObjectString.keys($3)) + ", expected " + show23($2)))(() => {
42153
+ return Bind1.bind(check(MonadThrow0)(difference2(ordString)($2)(fromFoldable21(mapObjectString.keys($3))).tag === "Leaf")("Pattern mismatch: found " + show23(mapObjectString.keys($3)) + ", expected " + show23($2)))(() => {
41948
42154
  const xs$p = toUnfoldable15($2);
41949
42155
  return Bind1.bind(matchMany2(dictMonadError)(dictAnn)(listMap((k) => $$get2(showString)(mapObjectString)(k)($3)._2)(xs$p))($5))((v2) => $0.pure($Tuple(
41950
42156
  v2._1,
@@ -41972,7 +42178,7 @@ var closeDefs2 = (\u03B3) => (\u03C1) => (\u03B1) => _fmapObject(
41972
42178
  $Fun(
41973
42179
  "Closure",
41974
42180
  (() => {
41975
- const $0 = union6(fv2(\u03C1$p))(fVElim.fv(\u03C3));
42181
+ const $0 = union7(fv2(\u03C1$p))(fVElim.fv(\u03C3));
41976
42182
  return filterWithKey((x2) => {
41977
42183
  const $1 = setSet(ordString).member(x2)($0);
41978
42184
  return (v) => $1;
@@ -42091,11 +42297,11 @@ var $$eval2 = (dictMonadError) => {
42091
42297
  )) + "); got (" + show33($Tuple($7, $8)) + ")"))(() => Bind1.bind(Functor0.map((() => {
42092
42298
  const $11 = listMap((x2) => {
42093
42299
  const $112 = unzip5(x2);
42094
- return $Tuple(fromFoldable26($112._1), fromFoldable26($112._2));
42300
+ return $Tuple(fromFoldable25($112._1), fromFoldable25($112._2));
42095
42301
  });
42096
42302
  return (x2) => {
42097
42303
  const $12 = unzip5($11(x2));
42098
- return $Tuple(fromFoldable26($12._1), fromFoldable26($12._2));
42304
+ return $Tuple(fromFoldable25($12._1), fromFoldable25($12._2));
42099
42305
  };
42100
42306
  })())(sequence1(bindList.bind(range4(1)($7))((i) => $List(
42101
42307
  "Cons",
@@ -42247,7 +42453,7 @@ var apply3 = (dictMonadError) => {
42247
42453
  unionWith((v$1) => identity18)(unionWith((v$1) => identity18)($3)(\u03B32))(v2._1),
42248
42454
  v2._2._1.tag === "ContExpr" ? v2._2._1._1 : throwException(error("Expression expected"))()
42249
42455
  ))(dictAnn.BoundedLattice1().BoundedMeetSemilattice1().MeetSemilattice0().meet($2)(v2._2._2._1)))((v3) => $0.pure($Tuple(
42250
- $AppTrace("AppClosure", fromFoldable25(mapObjectString.keys($4)), $5, v3._1),
42456
+ $AppTrace("AppClosure", fromFoldable21(mapObjectString.keys($4)), $5, v3._1),
42251
42457
  v3._2
42252
42458
  )));
42253
42459
  });
@@ -42392,7 +42598,7 @@ var apply22 = (dictMonadError) => {
42392
42598
  // output-es/EvalBwd/index.js
42393
42599
  var disjointUnion_inv2 = /* @__PURE__ */ disjointUnion_inv(ordString)(mapEnvStringVal);
42394
42600
  var toUnfoldable16 = /* @__PURE__ */ toAscUnfoldable(unfoldableList);
42395
- var fromFoldable27 = /* @__PURE__ */ fromFoldable(foldableList);
42601
+ var fromFoldable26 = /* @__PURE__ */ fromFoldable(foldableList);
42396
42602
  var fromFoldable113 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordString)(a)()(m))(Leaf2))();
42397
42603
  var botOfUnit$x215Raw$x2152 = (dictBoundedJoinSemilattice) => ({
42398
42604
  botOf: (() => {
@@ -42404,7 +42610,7 @@ var botOfUnit$x215Raw$x2152 = (dictBoundedJoinSemilattice) => ({
42404
42610
  return (x2) => $Tuple($0, $1(x2._2));
42405
42611
  })()
42406
42612
  });
42407
- var union7 = /* @__PURE__ */ (() => setSet(ordString).union)();
42613
+ var union8 = /* @__PURE__ */ (() => setSet(ordString).union)();
42408
42614
  var disjointUnion4 = /* @__PURE__ */ disjointUnion(mapEnvStringVal);
42409
42615
  var foldl1 = /* @__PURE__ */ (() => foldable1NonEmpty(foldableList).foldl1)();
42410
42616
  var matchManyBwd = (dictAnn) => (v) => (v1) => (v2) => (v3) => {
@@ -42468,7 +42674,7 @@ var matchBwd = (dictAnn) => {
42468
42674
  const v4 = unzip(toUnfoldable16(v3._1));
42469
42675
  const v5 = matchManyBwd(dictAnn)(v)(v1)(v2)(reverse2(v4._2));
42470
42676
  return $Tuple(
42471
- $Val(v2, $BaseVal("Dictionary", fromFoldable27(zipWith2(Tuple)(v4._1)(listMap((v6) => $Tuple(bot1, v6))(v5._1))))),
42677
+ $Val(v2, $BaseVal("Dictionary", fromFoldable26(zipWith2(Tuple)(v4._1)(listMap((v6) => $Tuple(bot1, v6))(v5._1))))),
42472
42678
  $Elim("ElimDict", fromFoldable113(mapObjectString.keys(v3._1)), v5._2)
42473
42679
  );
42474
42680
  }
@@ -42720,7 +42926,7 @@ var evalBwd$p = (dictAnn) => {
42720
42926
  })((() => {
42721
42927
  const $13 = (v32) => {
42722
42928
  const v42 = evalBwd$p(dictAnn)(definitely("index within bounds")(index(definitely("index within bounds")(index($9)(v32._1 - 1 | 0)))(v32._2 - 1 | 0)))(definitely("index within bounds")(index(definitely("index within bounds")(index($8)(v32._1 - 1 | 0)))(v32._2 - 1 | 0)));
42723
- const v5 = append_inv(ordString)(mapEnvStringVal)(union7($$$Map(
42929
+ const v5 = append_inv(ordString)(mapEnvStringVal)(union8($$$Map(
42724
42930
  "Two",
42725
42931
  Leaf2,
42726
42932
  $10,
@@ -42870,7 +43076,7 @@ var binary2 = /* @__PURE__ */ binary(boundedJoinSemilatticeUni);
42870
43076
  var binaryZero2 = /* @__PURE__ */ binaryZero(boundedJoinSemilatticeUni);
42871
43077
  var binaryZero1 = /* @__PURE__ */ (() => binaryZero2({ isZero: fanin2(isZeroInt.isZero)(isZeroNumber.isZero) }))();
42872
43078
  var binaryZero22 = /* @__PURE__ */ binaryZero2(isZeroInt);
42873
- var pow3 = /* @__PURE__ */ union5(asNumberIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)((x2) => (y2) => pow(toNumber(x2))(toNumber(y2)))(pow);
43079
+ var pow3 = /* @__PURE__ */ union6(asNumberIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)((x2) => (y2) => pow(toNumber(x2))(toNumber(y2)))(pow);
42874
43080
  var numToStr = (v2) => {
42875
43081
  if (v2.tag === "Left") {
42876
43082
  return showIntImpl(v2._1);
@@ -42880,27 +43086,25 @@ var numToStr = (v2) => {
42880
43086
  }
42881
43087
  fail();
42882
43088
  };
42883
- var notEquals = /* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)((x2) => (y2) => x2 !== y2)(/* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asNumberString)(asNumberString)((x2) => (y2) => x2 !== y2)((x2) => (y2) => x2 !== y2));
43089
+ var notEquals = /* @__PURE__ */ union6(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)((x2) => (y2) => x2 !== y2)(/* @__PURE__ */ union6(asBooleanBoolean)(asBooleanBoolean)(asNumberString)(asNumberString)((x2) => (y2) => x2 !== y2)((x2) => (y2) => x2 !== y2));
42884
43090
  var matrixUpdate = /* @__PURE__ */ $Tuple(
42885
43091
  "matrixUpdate",
42886
43092
  /* @__PURE__ */ $ForeignOp$p({
42887
43093
  arity: 3,
42888
- "op'": (dictMonadWithGraphAlloc) => (dictMonadError) => {
42889
- const MonadThrow0 = dictMonadError.MonadThrow0();
42890
- const Functor0 = MonadThrow0.Monad0().Bind1().Apply0().Functor0();
42891
- return (v) => {
42892
- 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") {
42893
- const $0 = v._2._2._1;
42894
- 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));
42895
- return Functor0.map((f) => f($1))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
42896
- "Two",
42897
- Leaf2,
42898
- v._1._1,
42899
- void 0,
42900
- Leaf2
42901
- ))));
42902
- }
42903
- return MonadThrow0.throwError(error("Matrix, pair of integers and value expected"));
43094
+ "op'": (dictMonadWithGraphAlloc) => {
43095
+ const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
43096
+ return (dictMonadError) => {
43097
+ const $$throw2 = $$throw(dictMonadError.MonadThrow0());
43098
+ return (v) => {
43099
+ 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") {
43100
+ const $0 = v._2._2._1;
43101
+ return $$new(Val)($$$Map("Two", Leaf2, v._1._1, void 0, Leaf2))($BaseVal(
43102
+ "Matrix",
43103
+ 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)
43104
+ ));
43105
+ }
43106
+ return $$throw2("Matrix, pair of integers and value expected");
43107
+ };
42904
43108
  };
42905
43109
  },
42906
43110
  op: (dictAnn) => (dictMonadError) => {
@@ -43035,10 +43239,10 @@ var log3 = (v2) => {
43035
43239
  }
43036
43240
  fail();
43037
43241
  };
43038
- var lessThanEquals = /* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)((a1) => (a2) => a1 <= a2)(/* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asNumberString)(asNumberString)((a1) => (a2) => a1 <= a2)((a1) => (a2) => a1 <= a2));
43039
- var lessThan = /* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)((a1) => (a2) => a1 < a2)(/* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asNumberString)(asNumberString)((a1) => (a2) => a1 < a2)((a1) => (a2) => a1 < a2));
43040
- var greaterThanEquals = /* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)((a1) => (a2) => a1 >= a2)(/* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asNumberString)(asNumberString)((a1) => (a2) => a1 >= a2)((a1) => (a2) => a1 >= a2));
43041
- var greaterThan = /* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)((a1) => (a2) => a1 > a2)(/* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asNumberString)(asNumberString)((a1) => (a2) => a1 > a2)((a1) => (a2) => a1 > a2));
43242
+ var lessThanEquals = /* @__PURE__ */ union6(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)((a1) => (a2) => a1 <= a2)(/* @__PURE__ */ union6(asBooleanBoolean)(asBooleanBoolean)(asNumberString)(asNumberString)((a1) => (a2) => a1 <= a2)((a1) => (a2) => a1 <= a2));
43243
+ var lessThan = /* @__PURE__ */ union6(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)((a1) => (a2) => a1 < a2)(/* @__PURE__ */ union6(asBooleanBoolean)(asBooleanBoolean)(asNumberString)(asNumberString)((a1) => (a2) => a1 < a2)((a1) => (a2) => a1 < a2));
43244
+ var greaterThanEquals = /* @__PURE__ */ union6(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)((a1) => (a2) => a1 >= a2)(/* @__PURE__ */ union6(asBooleanBoolean)(asBooleanBoolean)(asNumberString)(asNumberString)((a1) => (a2) => a1 >= a2)((a1) => (a2) => a1 >= a2));
43245
+ var greaterThan = /* @__PURE__ */ union6(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)((a1) => (a2) => a1 > a2)(/* @__PURE__ */ union6(asBooleanBoolean)(asBooleanBoolean)(asNumberString)(asNumberString)((a1) => (a2) => a1 > a2)((a1) => (a2) => a1 > a2));
43042
43246
  var extern = (dictBoundedJoinSemilattice) => {
43043
43247
  const bot2 = dictBoundedJoinSemilattice.bot;
43044
43248
  return (v) => $Tuple(v._1, $Val(bot2, $BaseVal("Fun", $Fun("Foreign", $Tuple(v._1, v._2), Nil))));
@@ -43069,41 +43273,34 @@ var error_ = /* @__PURE__ */ $Tuple(
43069
43273
  op_bwd: (dictAnn) => (v) => throwException(error("unimplemented"))()
43070
43274
  })
43071
43275
  );
43072
- var divide = /* @__PURE__ */ union5(asNumberIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)((x2) => (y2) => toNumber(x2) / toNumber(y2))(numDiv);
43276
+ var divide = /* @__PURE__ */ union6(asNumberIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)((x2) => (y2) => toNumber(x2) / toNumber(y2))(numDiv);
43073
43277
  var dims = /* @__PURE__ */ $Tuple(
43074
43278
  "dims",
43075
43279
  /* @__PURE__ */ $ForeignOp$p({
43076
43280
  arity: 1,
43077
- "op'": (dictMonadWithGraphAlloc) => (dictMonadError) => {
43078
- const MonadThrow0 = dictMonadError.MonadThrow0();
43079
- const Bind1 = MonadThrow0.Monad0().Bind1();
43080
- const Functor0 = Bind1.Apply0().Functor0();
43081
- return (v) => {
43082
- if (v.tag === "Cons" && v._1._2.tag === "Matrix" && v._2.tag === "Nil") {
43083
- const $0 = v._1._2._1._2._2._1;
43084
- const $1 = v._1._1;
43085
- const $2 = v._1._2._1._2._2._2;
43086
- return Bind1.bind(Functor0.map((f) => f($BaseVal("Int", v._1._2._1._2._1._1)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
43087
- "Two",
43088
- Leaf2,
43089
- v._1._2._1._2._1._2,
43090
- void 0,
43091
- Leaf2
43092
- )))))((v1) => Bind1.bind(Functor0.map((f) => f($BaseVal("Int", $0)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
43093
- "Two",
43094
- Leaf2,
43095
- $2,
43096
- void 0,
43097
- Leaf2
43098
- )))))((v2) => Functor0.map((f) => f($BaseVal("Constr", "Pair", $List("Cons", v1, $List("Cons", v2, Nil)))))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
43099
- "Two",
43100
- Leaf2,
43101
- $1,
43102
- void 0,
43103
- Leaf2
43104
- ))))));
43105
- }
43106
- return MonadThrow0.throwError(error("Matrix expected"));
43281
+ "op'": (dictMonadWithGraphAlloc) => {
43282
+ const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
43283
+ return (dictMonadError) => {
43284
+ const MonadThrow0 = dictMonadError.MonadThrow0();
43285
+ const $0 = MonadThrow0.Monad0().Bind1();
43286
+ return (v) => {
43287
+ if (v.tag === "Cons" && v._1._2.tag === "Matrix" && v._2.tag === "Nil") {
43288
+ const $1 = v._1._2._1._2._2._1;
43289
+ const $2 = v._1._1;
43290
+ const $3 = v._1._2._1._2._2._2;
43291
+ return $0.bind($$new(Val)($$$Map("Two", Leaf2, v._1._2._1._2._1._2, void 0, Leaf2))($BaseVal(
43292
+ "Int",
43293
+ v._1._2._1._2._1._1
43294
+ )))((v1) => $0.bind($$new(Val)($$$Map("Two", Leaf2, $3, void 0, Leaf2))($BaseVal("Int", $1)))((v2) => $$new(Val)($$$Map(
43295
+ "Two",
43296
+ Leaf2,
43297
+ $2,
43298
+ void 0,
43299
+ Leaf2
43300
+ ))($BaseVal("Constr", "Pair", $List("Cons", v1, $List("Cons", v2, Nil))))));
43301
+ }
43302
+ return MonadThrow0.throwError(error("Matrix expected"));
43303
+ };
43107
43304
  };
43108
43305
  },
43109
43306
  op: (dictAnn) => (dictMonadError) => {
@@ -43162,26 +43359,23 @@ var dict_map = /* @__PURE__ */ $Tuple(
43162
43359
  arity: 2,
43163
43360
  "op'": (dictMonadWithGraphAlloc) => {
43164
43361
  const apply4 = apply2(dictMonadWithGraphAlloc);
43362
+ const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
43165
43363
  return (dictMonadError) => {
43166
43364
  const MonadThrow0 = dictMonadError.MonadThrow0();
43167
43365
  const Monad0 = MonadThrow0.Monad0();
43168
43366
  const Bind1 = Monad0.Bind1();
43169
43367
  const traverse1 = traversableDict.traverse(Monad0.Applicative0());
43170
- const Functor0 = Bind1.Apply0().Functor0();
43171
43368
  return (v) => {
43172
43369
  if (v.tag === "Cons" && v._2.tag === "Cons" && v._2._1._2.tag === "Dictionary" && v._2._2.tag === "Nil") {
43173
43370
  const $0 = v._1;
43174
43371
  const $1 = v._2._1._1;
43175
43372
  return Bind1.bind(traverse1((v2) => {
43176
43373
  const $2 = v2._1;
43177
- return Functor0.map((v3) => $Tuple($2, v3))(apply4($0)(v2._2));
43178
- })(v._2._1._2._1))((d$p) => Functor0.map((f) => f($BaseVal("Dictionary", d$p)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
43179
- "Two",
43180
- Leaf2,
43181
- $1,
43182
- void 0,
43183
- Leaf2
43184
- )))));
43374
+ return Bind1.Apply0().Functor0().map((v3) => $Tuple($2, v3))(apply4($0)(v2._2));
43375
+ })(v._2._1._2._1))((d$p) => $$new(Val)($$$Map("Two", Leaf2, $1, void 0, Leaf2))($BaseVal(
43376
+ "Dictionary",
43377
+ d$p
43378
+ )));
43185
43379
  }
43186
43380
  return MonadThrow0.throwError(error("Function and dictionary expected"));
43187
43381
  };
@@ -43240,33 +43434,36 @@ var dict_intersectionWith = /* @__PURE__ */ $Tuple(
43240
43434
  arity: 3,
43241
43435
  "op'": (dictMonadWithGraphAlloc) => {
43242
43436
  const apply4 = apply2(dictMonadWithGraphAlloc);
43437
+ const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
43243
43438
  return (dictMonadError) => {
43244
43439
  const MonadThrow0 = dictMonadError.MonadThrow0();
43245
43440
  const Monad0 = MonadThrow0.Monad0();
43246
43441
  const Bind1 = Monad0.Bind1();
43247
- const Apply0 = Bind1.Apply0();
43248
- const $0 = Apply0.Functor0();
43249
- const sequence1 = traversableDict.sequence(Monad0.Applicative0());
43442
+ const Applicative0 = Monad0.Applicative0();
43443
+ const $0 = Bind1.Apply0().Functor0();
43250
43444
  return (v) => {
43251
43445
  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") {
43252
43446
  const $1 = v._1;
43253
- return Apply0.apply($0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v._2._2._1._1)()($$$Map(
43254
- "Two",
43255
- Leaf2,
43256
- v._2._1._1,
43257
- void 0,
43258
- Leaf2
43259
- )))))($0.map(Dictionary3)($0.map(DictRep)(sequence1(intersectionWith_Object((v2) => (v3) => {
43260
- const $2 = v2._2;
43261
- const $3 = v3._2;
43262
- return Bind1.bind(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v3._1)()($$$Map(
43447
+ const $2 = v._2._1._1;
43448
+ const $3 = v._2._2._1._1;
43449
+ return Bind1.bind($0.map(Dictionary3)($0.map(DictRep)(traversableDict.traverse(Applicative0)(identity19)(intersectionWith_Object((v2) => (v3) => {
43450
+ const $4 = v3._2;
43451
+ const $5 = v2._1;
43452
+ const $6 = v3._1;
43453
+ return Bind1.bind(Bind1.bind(apply4($1)(v2._2))((a) => apply4(a)($4)))((v4) => Bind1.bind($$new(Val)(insert3(ordVertex)($6)()($$$Map(
43263
43454
  "Two",
43264
43455
  Leaf2,
43265
- v2._1,
43456
+ $5,
43266
43457
  void 0,
43267
43458
  Leaf2
43268
- ))))((\u03B2$p$p) => $0.map(Tuple(\u03B2$p$p))(Bind1.bind(apply4($1)($2))((a) => apply4(a)($3))));
43269
- })(v._2._1._2._1)(v._2._2._1._2._1)))));
43459
+ )))(v4._2))((v5) => Applicative0.pure($Tuple(v5._1, v4))));
43460
+ })(v._2._1._2._1)(v._2._2._1._2._1)))))((v$p) => $$new(Val)(insert3(ordVertex)($3)()($$$Map(
43461
+ "Two",
43462
+ Leaf2,
43463
+ $2,
43464
+ void 0,
43465
+ Leaf2
43466
+ )))(v$p));
43270
43467
  }
43271
43468
  return MonadThrow0.throwError(error("Function and two dictionaries expected"));
43272
43469
  };
@@ -43494,21 +43691,22 @@ var dict_disjointUnion = /* @__PURE__ */ $Tuple(
43494
43691
  "dict_disjointUnion",
43495
43692
  /* @__PURE__ */ $ForeignOp$p({
43496
43693
  arity: 2,
43497
- "op'": (dictMonadWithGraphAlloc) => (dictMonadError) => {
43498
- const MonadThrow0 = dictMonadError.MonadThrow0();
43499
- const Functor0 = MonadThrow0.Monad0().Bind1().Apply0().Functor0();
43500
- return (v) => {
43501
- if (v.tag === "Cons" && v._1._2.tag === "Dictionary" && v._2.tag === "Cons" && v._2._1._2.tag === "Dictionary" && v._2._2.tag === "Nil") {
43502
- const $0 = $BaseVal("Dictionary", disjointUnion5(v._1._2._1)(v._2._1._2._1));
43503
- return Functor0.map((f) => f($0))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v._2._1._1)()($$$Map(
43504
- "Two",
43505
- Leaf2,
43506
- v._1._1,
43507
- void 0,
43508
- Leaf2
43509
- )))));
43510
- }
43511
- return MonadThrow0.throwError(error("Dictionaries expected"));
43694
+ "op'": (dictMonadWithGraphAlloc) => {
43695
+ const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
43696
+ return (dictMonadError) => {
43697
+ const $$throw2 = $$throw(dictMonadError.MonadThrow0());
43698
+ return (v) => {
43699
+ if (v.tag === "Cons" && v._1._2.tag === "Dictionary" && v._2.tag === "Cons" && v._2._1._2.tag === "Dictionary" && v._2._2.tag === "Nil") {
43700
+ return $$new(Val)(insert3(ordVertex)(v._2._1._1)()($$$Map(
43701
+ "Two",
43702
+ Leaf2,
43703
+ v._1._1,
43704
+ void 0,
43705
+ Leaf2
43706
+ )))($BaseVal("Dictionary", disjointUnion5(v._1._2._1)(v._2._1._2._1)));
43707
+ }
43708
+ return $$throw2("Dictionaries expected");
43709
+ };
43512
43710
  };
43513
43711
  },
43514
43712
  op: (dictAnn) => (dictMonadError) => {
@@ -43542,21 +43740,22 @@ var dict_difference = /* @__PURE__ */ $Tuple(
43542
43740
  "dict_difference",
43543
43741
  /* @__PURE__ */ $ForeignOp$p({
43544
43742
  arity: 2,
43545
- "op'": (dictMonadWithGraphAlloc) => (dictMonadError) => {
43546
- const MonadThrow0 = dictMonadError.MonadThrow0();
43547
- const Functor0 = MonadThrow0.Monad0().Bind1().Apply0().Functor0();
43548
- return (v) => {
43549
- if (v.tag === "Cons" && v._1._2.tag === "Dictionary" && v._2.tag === "Cons" && v._2._1._2.tag === "Dictionary" && v._2._2.tag === "Nil") {
43550
- const $0 = $BaseVal("Dictionary", mapFObjectString.difference(v._1._2._1)(v._2._1._2._1));
43551
- return Functor0.map((f) => f($0))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v._2._1._1)()($$$Map(
43552
- "Two",
43553
- Leaf2,
43554
- v._1._1,
43555
- void 0,
43556
- Leaf2
43557
- )))));
43558
- }
43559
- return MonadThrow0.throwError(error("Dictionaries expected."));
43743
+ "op'": (dictMonadWithGraphAlloc) => {
43744
+ const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
43745
+ return (dictMonadError) => {
43746
+ const $$throw2 = $$throw(dictMonadError.MonadThrow0());
43747
+ return (v) => {
43748
+ if (v.tag === "Cons" && v._1._2.tag === "Dictionary" && v._2.tag === "Cons" && v._2._1._2.tag === "Dictionary" && v._2._2.tag === "Nil") {
43749
+ return $$new(Val)(insert3(ordVertex)(v._2._1._1)()($$$Map(
43750
+ "Two",
43751
+ Leaf2,
43752
+ v._1._1,
43753
+ void 0,
43754
+ Leaf2
43755
+ )))($BaseVal("Dictionary", mapFObjectString.difference(v._1._2._1)(v._2._1._2._1)));
43756
+ }
43757
+ return $$throw2("Dictionaries expected.");
43758
+ };
43560
43759
  };
43561
43760
  },
43562
43761
  op: (dictAnn) => (dictMonadError) => {
@@ -43629,18 +43828,18 @@ var primitives = /* @__PURE__ */ fromFoldable(foldableArray)([
43629
43828
  i1: intOrNumber,
43630
43829
  i2: intOrNumber,
43631
43830
  o: intOrNumber,
43632
- fwd: /* @__PURE__ */ union5(asIntIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)(intAdd)(numAdd)
43831
+ fwd: /* @__PURE__ */ union6(asIntIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)(intAdd)(numAdd)
43633
43832
  }),
43634
43833
  /* @__PURE__ */ binary2("-")({
43635
43834
  i1: intOrNumber,
43636
43835
  i2: intOrNumber,
43637
43836
  o: intOrNumber,
43638
- fwd: /* @__PURE__ */ union5(asIntIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)(intSub)(numSub)
43837
+ fwd: /* @__PURE__ */ union6(asIntIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)(intSub)(numSub)
43639
43838
  }),
43640
43839
  /* @__PURE__ */ binaryZero1("*")({
43641
43840
  i: intOrNumber,
43642
43841
  o: intOrNumber,
43643
- fwd: /* @__PURE__ */ union5(asIntIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)(intMul)(numMul)
43842
+ fwd: /* @__PURE__ */ union6(asIntIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)(intMul)(numMul)
43644
43843
  }),
43645
43844
  /* @__PURE__ */ binaryZero1("**")({ i: intOrNumber, o: intOrNumber, fwd: pow3 }),
43646
43845
  /* @__PURE__ */ binaryZero1("/")({ i: intOrNumber, o: intOrNumber, fwd: divide }),
@@ -43648,7 +43847,7 @@ var primitives = /* @__PURE__ */ fromFoldable(foldableArray)([
43648
43847
  i1: intOrNumberOrString,
43649
43848
  i2: intOrNumberOrString,
43650
43849
  o: $$boolean,
43651
- fwd: /* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)(eqIntImpl)(/* @__PURE__ */ unionStr(asBooleanBoolean)(asNumberString)(eqNumberImpl)(eqStringImpl))
43850
+ fwd: /* @__PURE__ */ union6(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)(eqIntImpl)(/* @__PURE__ */ unionStr(asBooleanBoolean)(asNumberString)(eqNumberImpl)(eqStringImpl))
43652
43851
  }),
43653
43852
  /* @__PURE__ */ binary2("/=")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: notEquals }),
43654
43853
  /* @__PURE__ */ binary2("<")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: lessThan }),
@@ -43671,7 +43870,32 @@ var primitives = /* @__PURE__ */ fromFoldable(foldableArray)([
43671
43870
  ]);
43672
43871
 
43673
43872
  // output-es/ProgCxt/index.js
43873
+ var union9 = /* @__PURE__ */ (() => setSet(ordDVertex).union)();
43874
+ var unions4 = /* @__PURE__ */ (() => {
43875
+ const go = (go$a0$copy) => (go$a1$copy) => {
43876
+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
43877
+ while (go$c) {
43878
+ const b = go$a0, v = go$a1;
43879
+ if (v.tag === "Nil") {
43880
+ go$c = false;
43881
+ go$r = b;
43882
+ continue;
43883
+ }
43884
+ if (v.tag === "Cons") {
43885
+ go$a0 = unionWith2(ordDVertex)($$const)(b)(v._1);
43886
+ go$a1 = v._2;
43887
+ continue;
43888
+ }
43889
+ fail();
43890
+ }
43891
+ return go$r;
43892
+ };
43893
+ return go(Leaf2);
43894
+ })();
43674
43895
  var identity32 = (x2) => x2;
43896
+ var verticesProgCxtVertex = {
43897
+ vertices: (v) => union9(unions13(listMap(verticesValVertex.vertices)(mapObjectString.values(v.primitives))))(union9(unions4(listMap(verticesModuleVertex.vertices)(v.mods)))(unions4(listMap((x2) => verticesExprVertex.vertices(x2._2))(v.datasets))))
43898
+ };
43675
43899
  var functorProgCxt = {
43676
43900
  map: (f) => (m) => ({
43677
43901
  primitives: _fmapObject(m.primitives, functorVal.map(f)),
@@ -43808,7 +44032,7 @@ var initialConfig = (dictMonadError) => {
43808
44032
  Bind1: () => bindStateT(Monad0)
43809
44033
  })(graphGraphImpl);
43810
44034
  const eval_progCxt2 = eval_progCxt(monadWithGraphAllocWithGr(dictMonadError));
43811
- return (dictFV) => (e) => (progCxt) => Bind1.bind(Applicative0.pure())(() => Bind1.bind(runAllocT(Monad0)($1.bind(alloc(progCxt))((progCxt$p) => $1.bind(runWithGraphT_spy2(eval_progCxt2(progCxt$p))(foldableProgCxt.foldl((m) => (a) => insert3(ordVertex)(a)()(m))(Leaf2)(progCxt$p)))((v) => applicativeStateT(Monad0).pure($Tuple(
44035
+ return (dictFV) => (e) => (progCxt) => Bind1.bind(Applicative0.pure())(() => Bind1.bind(runAllocT(Monad0)($1.bind(alloc(progCxt))((progCxt$p) => $1.bind(runWithGraphT_spy2(eval_progCxt2(progCxt$p))(verticesProgCxtVertex.vertices(progCxt$p)))((v) => applicativeStateT(Monad0).pure($Tuple(
43812
44036
  progCxt$p,
43813
44037
  (() => {
43814
44038
  const $2 = dictFV.fv(e);
@@ -43961,7 +44185,7 @@ var getTransient = (v) => {
43961
44185
  }
43962
44186
  fail();
43963
44187
  };
43964
- var fromFoldable28 = /* @__PURE__ */ foldlArray((m) => (a) => insert3(ordString)(a)()(m))(Leaf2);
44188
+ var fromFoldable27 = /* @__PURE__ */ foldlArray((m) => (a) => insert3(ordString)(a)()(m))(Leaf2);
43965
44189
  var graphGC2 = /* @__PURE__ */ graphGC(graphGraphImpl);
43966
44190
  var graphGC1 = /* @__PURE__ */ graphGC2(applyEnvExpr)(applyVal)(foldableEnvExpr)(foldableVal);
43967
44191
  var graphGC22 = /* @__PURE__ */ graphGC2(applyVal)(applyEnvExpr)(foldableVal)(foldableEnvExpr);
@@ -44150,7 +44374,7 @@ var loadFig = (v) => (dictMonadAff) => {
44150
44374
  })(v2["in\u03B1"]);
44151
44375
  const \u03B30 = _fmapObject(v2["in\u03B1"]._1, functorVal.map((v$1) => false));
44152
44376
  const v0 = $Val(false, functorBaseVal.map((v$1) => false)(v2["out\u03B1"]._2));
44153
- const $5 = unrestrictGC(boundedMeetSemilatticeBoo)(v3._1)(fromFoldable28($3));
44377
+ const $5 = unrestrictGC(boundedMeetSemilatticeBoo)(v3._1)(fromFoldable27($3));
44154
44378
  const $6 = unprojExpr(boundedMeetSemilatticeBoo)($EnvExpr(v3._1, v3._2));
44155
44379
  const focus = { fwd: (x2) => $6.fwd($5.fwd(x2)), bwd: (x2) => $5.bwd($6.bwd(x2)) };
44156
44380
  const $7 = graphGC1(v2);
@@ -44462,7 +44686,7 @@ var decodeJson = /* @__PURE__ */ (() => decodeRecord(gDecodeJsonCons((() => {
44462
44686
  })(gDecodeJsonCons2(gDecodeJsonCons2(gDecodeJsonCons2(gDecodeJsonNil)({ reflectSymbol: () => "inputs" })()())({ reflectSymbol: () => "imports" })()())({
44463
44687
  reflectSymbol: () => "fluidSrcPath"
44464
44688
  })()())({ reflectSymbol: () => "file" })()())({ reflectSymbol: () => "datasets" })()())().decodeJson)();
44465
- var figSpecFromJson = (spec) => ({ fluidSrcPaths: arrayMap(Folder)(spec.fluidSrcPath), datasets: spec.datasets, imports: spec.imports, file: spec.file, inputs: spec.inputs });
44689
+ var figSpecFromJson = (spec) => ({ fluidSrcPaths: arrayMap(Folder)(spec.fluidSrcPath), datasets: spec.datasets, imports: spec.imports, file: spec.file, inputs: spec.inputs, queries: [] });
44466
44690
  var loadFigure = (fileName) => runAffs_((v) => drawFig(v._1)(v._2))([
44467
44691
  _bind($$get(driver)($ResponseFormat("Json", identity))(fileName))((result) => {
44468
44692
  if (result.tag === "Left") {