@elyx-code/project-logic-tree 0.0.6123 → 0.0.6124

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -23770,9 +23770,9 @@ function b5(r) {
23770
23770
  return "Entity";
23771
23771
  }
23772
23772
  function Mq(r) {
23773
- const e = TT(r);
23773
+ const e = ET(r);
23774
23774
  if (!e) {
23775
- const t = mT(r);
23775
+ const t = TT(r);
23776
23776
  return t.includes(j.HTTP_ENDPOINT) ? "HTTP endpoint" : t.includes(j.PERSISTED_ENTITY) ? "Persisted entity" : t.includes(j.CRON_JOB) ? "Scheduled execution" : t.includes(j.RELATIONAL_DATABASE) ? "Relational database" : C(r, r.project) + " entity";
23777
23777
  }
23778
23778
  return C(e, r.project) + " entity";
@@ -24217,7 +24217,7 @@ function Qm(r, e) {
24217
24217
  })
24218
24218
  );
24219
24219
  else {
24220
- const o = yT(
24220
+ const o = hT(
24221
24221
  a
24222
24222
  ).filter(
24223
24223
  (l) => l.name === r.name
@@ -35076,7 +35076,7 @@ This variable's data-type has an 'entity' field that references an entity with i
35076
35076
  }).error
35077
35077
  );
35078
35078
  else {
35079
- const a = ET(n), s = [];
35079
+ const a = vT(n), s = [];
35080
35080
  [
35081
35081
  i.DefinitionEntity,
35082
35082
  i.BuiltInBaseEntity,
@@ -35258,7 +35258,7 @@ This variable's data-type has an 'entity' field that references an entity with i
35258
35258
  })
35259
35259
  );
35260
35260
  else {
35261
- const y = ET(
35261
+ const y = vT(
35262
35262
  c
35263
35263
  );
35264
35264
  let h = "";
@@ -36317,7 +36317,7 @@ The entity of the data-type has the following properties that can be reads as in
36317
36317
  } else if (qe.filter(
36318
36318
  (y) => $e.includes(y)
36319
36319
  ).includes(o.type)) {
36320
- const h = yT(o), E = h.find(
36320
+ const h = hT(o), E = h.find(
36321
36321
  (g) => g.id === n.declaration
36322
36322
  ), R = `The parent entity has the following argument declarations that can be referenced by input-maps, ids: '${k(
36323
36323
  h.map((g) => g.id),
@@ -44686,6 +44686,121 @@ d(Ae, "MUTABLE_DOWNSTREAM_PROPERTIES", [
44686
44686
  ...Ae.DOWNSTREAM_PROPERTIES
44687
44687
  ]);
44688
44688
  let ii = Ae;
44689
+ function au(r) {
44690
+ return r && typeof r.then == "function";
44691
+ }
44692
+ class oT {
44693
+ constructor(e) {
44694
+ d(this, "order", []);
44695
+ d(this, "flatRecord", {});
44696
+ d(this, "onGoingVisits", {});
44697
+ this.flatten(e), this.orderEntities();
44698
+ }
44699
+ flatten(e) {
44700
+ const t = new Set(yT()), n = f(
44701
+ P(e, t, {
44702
+ ignoreBuiltInBaseEntities: !0
44703
+ })
44704
+ ), a = /* @__PURE__ */ new Set();
44705
+ for (const s of n)
44706
+ this.flatRecord[s.id] = s, a.add(s.id);
44707
+ this.order = Array.from(a);
44708
+ }
44709
+ moveEntityAfterDependencies(e) {
44710
+ const t = _o(e, this.flatRecord);
44711
+ for (const n of t) {
44712
+ const a = this.order.indexOf(n), s = this.order.indexOf(e.id);
44713
+ if (a > s)
44714
+ return this.order.splice(s, 1), this.order.splice(a, 0, e.id), !0;
44715
+ }
44716
+ return !1;
44717
+ }
44718
+ orderEntities() {
44719
+ let e = !1;
44720
+ for (let t = 0; t < this.order.length; t++) {
44721
+ const n = this.order[t], a = this.flatRecord[n];
44722
+ if (this.moveEntityAfterDependencies(a)) {
44723
+ e = !0;
44724
+ break;
44725
+ }
44726
+ }
44727
+ e && this.orderEntities();
44728
+ }
44729
+ getUpstreamOngoingDependenciesVisits(e, t) {
44730
+ const n = _o(
44731
+ this.flatRecord[e],
44732
+ this.flatRecord
44733
+ ), a = {};
44734
+ return Object.entries(this.onGoingVisits[t] || {}).forEach(
44735
+ ([s, o]) => {
44736
+ Array.from(n).includes(s) && (a[s] = o);
44737
+ }
44738
+ ), a;
44739
+ }
44740
+ // For the reverse visit, the relevant dependencies are downstream dependencies.
44741
+ // So a given entity would have to wait for downstream dependencies to finish before it can be visited.
44742
+ // Instead of getting the upstream dependency of the entity that we will execute next ('entityId'),
44743
+ // we get the upstream dependencies of all ongoing visits and check if the entity we are about to visit is among them.
44744
+ getDownstreamOngoingDependenciesVisits(e, t) {
44745
+ const n = Object.keys(this.onGoingVisits[t] || {}), a = new Set(
44746
+ n.flatMap(
44747
+ (o) => Array.from(
44748
+ _o(this.flatRecord[o], this.flatRecord)
44749
+ )
44750
+ )
44751
+ ), s = {};
44752
+ return Array.from(a).forEach((o) => {
44753
+ o === e && (s[o] = this.onGoingVisits[t][o]);
44754
+ }), s;
44755
+ }
44756
+ // Awaits and clears the promises for the given entities
44757
+ async settlePromises(e, t) {
44758
+ const n = Object.values(e);
44759
+ n.length && await Promise.all(n), Object.keys(e).forEach((a) => {
44760
+ delete this.onGoingVisits[t][a];
44761
+ });
44762
+ }
44763
+ visit(e) {
44764
+ const t = this.order;
44765
+ for (const n of t)
44766
+ e(this.flatRecord[n]);
44767
+ return this;
44768
+ }
44769
+ reverseVisit(e) {
44770
+ const t = this.order.slice().reverse();
44771
+ for (const n of t)
44772
+ e(this.flatRecord[n]);
44773
+ return this;
44774
+ }
44775
+ async visitAsync(e) {
44776
+ const t = this.order, n = Math.random().toString(36).substring(7);
44777
+ this.onGoingVisits[n] = {};
44778
+ for (const a of t) {
44779
+ const s = this.getUpstreamOngoingDependenciesVisits(
44780
+ a,
44781
+ n
44782
+ );
44783
+ Object.keys(s).length && await this.settlePromises(s, n);
44784
+ const o = e(this.flatRecord[a]);
44785
+ au(o) && (this.onGoingVisits[n][a] = o);
44786
+ }
44787
+ return await this.settlePromises(this.onGoingVisits[n], n), this.onGoingVisits[n] = {}, this;
44788
+ }
44789
+ async reverseVisitAsync(e) {
44790
+ const t = this.order.slice().reverse(), n = Math.random().toString(36).substring(7);
44791
+ this.onGoingVisits[n] = {};
44792
+ for (const a of t) {
44793
+ const s = this.getDownstreamOngoingDependenciesVisits(
44794
+ a,
44795
+ n
44796
+ );
44797
+ Object.keys(s).length && await this.settlePromises(s, n);
44798
+ const o = e(this.flatRecord[a]);
44799
+ au(o) && (this.onGoingVisits[n][a] = o);
44800
+ }
44801
+ return await this.settlePromises(this.onGoingVisits[n], n), this.onGoingVisits[n] = {}, this;
44802
+ }
44803
+ }
44689
44804
  function h2(r) {
44690
44805
  var e;
44691
44806
  switch (r.id) {
@@ -44883,7 +44998,7 @@ function Dc(r, e, t) {
44883
44998
  }
44884
44999
  };
44885
45000
  }
44886
- function oT(r, e) {
45001
+ function lT(r, e) {
44887
45002
  return e.entities.find((a) => {
44888
45003
  const s = a.properties, o = s.map((h) => h.name), l = r.every((h) => o.includes(h)), u = o.filter((h) => !r.includes(h)), c = s.every(
44889
45004
  (h) => !u.includes(h.name) || !h.required
@@ -44916,7 +45031,7 @@ function m2(r, e, t = et.OrDataTypeGroup) {
44916
45031
  self: u
44917
45032
  };
44918
45033
  }
44919
- function lT(r, e, t, n) {
45034
+ function dT(r, e, t, n) {
44920
45035
  const a = [], s = [], o = [];
44921
45036
  switch (typeof r) {
44922
45037
  case "string":
@@ -45067,7 +45182,7 @@ function lT(r, e, t, n) {
45067
45182
  } else
45068
45183
  R.length === 1 && !E ? e.setEntity(R[0]) : c.forEach((g, I) => {
45069
45184
  if (typeof g == "object" && !Array.isArray(g) && g !== null) {
45070
- const S = oT(
45185
+ const S = lT(
45071
45186
  Object.keys(g),
45072
45187
  e.project
45073
45188
  );
@@ -45098,7 +45213,7 @@ function lT(r, e, t, n) {
45098
45213
  e.project
45099
45214
  );
45100
45215
  L.setParent(e), L.initChildren(), L.addSelfToProject();
45101
- const $ = lT(
45216
+ const $ = dT(
45102
45217
  g,
45103
45218
  L,
45104
45219
  {
@@ -45144,7 +45259,7 @@ function lT(r, e, t, n) {
45144
45259
  };
45145
45260
  }
45146
45261
  function Mo(r, e, t, n) {
45147
- const a = [], s = [], o = [], l = Object.keys(r), u = oT(l, e);
45262
+ const a = [], s = [], o = [], l = Object.keys(r), u = lT(l, e);
45148
45263
  if (u)
45149
45264
  return {
45150
45265
  hasCreated: !1,
@@ -45219,7 +45334,7 @@ function Mo(r, e, t, n) {
45219
45334
  e
45220
45335
  );
45221
45336
  ie.setParent(L), ie.initChildren(), ie.addSelfToProject(), s.push(ie);
45222
- const He = lT(
45337
+ const He = dT(
45223
45338
  $,
45224
45339
  ie,
45225
45340
  {
@@ -45284,7 +45399,7 @@ function Kq(r) {
45284
45399
  }
45285
45400
  return null;
45286
45401
  }
45287
- function dT(r, e) {
45402
+ function cT(r, e) {
45288
45403
  if (!r || !e)
45289
45404
  throw new Error("Both entities must be defined to find a common ancestor");
45290
45405
  if (r === e)
@@ -45305,7 +45420,7 @@ function dT(r, e) {
45305
45420
  return null;
45306
45421
  } else
45307
45422
  return null;
45308
- return dT(t, n);
45423
+ return cT(t, n);
45309
45424
  }
45310
45425
  function lt(r) {
45311
45426
  if (Qo.includes(r.type)) {
@@ -45378,7 +45493,7 @@ function Xq(r) {
45378
45493
  }
45379
45494
  function Qq(r) {
45380
45495
  const e = ur(r), t = [], n = [];
45381
- wT.includes(r.type) && t.push(...cT(r));
45496
+ wT.includes(r.type) && t.push(...uT(r));
45382
45497
  const a = e.filter((s) => {
45383
45498
  const o = t.includes(s);
45384
45499
  return o ? !1 : dn.includes(s.type) && !o ? (n.push(s), !1) : !0;
@@ -45405,7 +45520,7 @@ function Ct(r) {
45405
45520
  );
45406
45521
  return f(e);
45407
45522
  }
45408
- function cT(r) {
45523
+ function uT(r) {
45409
45524
  return qe.includes(r.type) ? [
45410
45525
  ...Ct(
45411
45526
  r.successCalls
@@ -45418,13 +45533,13 @@ function cT(r) {
45418
45533
  ) : [];
45419
45534
  }
45420
45535
  function tJ(r, e) {
45421
- return cT(r).includes(e);
45536
+ return uT(r).includes(e);
45422
45537
  }
45423
- function uT(r) {
45538
+ function pT(r) {
45424
45539
  return r.writesValues || [];
45425
45540
  }
45426
45541
  function nJ(r, e) {
45427
- return uT(r).includes(e);
45542
+ return pT(r).includes(e);
45428
45543
  }
45429
45544
  function g2(r) {
45430
45545
  var e;
@@ -46211,7 +46326,7 @@ function a7(r, e = /* @__PURE__ */ new Set(), t = {
46211
46326
  ...r.parent ? P(r.parent, e, t) : []
46212
46327
  ];
46213
46328
  }
46214
- function pT() {
46329
+ function yT() {
46215
46330
  const r = /* @__PURE__ */ new Set();
46216
46331
  return SS.flatMap(
46217
46332
  (t) => P(t, r)
@@ -46224,7 +46339,7 @@ function P(r, e = /* @__PURE__ */ new Set(), t = {
46224
46339
  throw new Error("Entity must be defined to be flattened");
46225
46340
  if (r.type === i.GenericReference)
46226
46341
  return [];
46227
- if (t.ignoreBuiltInBaseEntities && (yr.includes(r.type) || pT().includes(r.id)))
46342
+ if (t.ignoreBuiltInBaseEntities && (yr.includes(r.type) || yT().includes(r.id)))
46228
46343
  return [];
46229
46344
  if (e.has(r.id))
46230
46345
  return [];
@@ -46325,7 +46440,7 @@ function _o(r, e) {
46325
46440
  }
46326
46441
  return n;
46327
46442
  }
46328
- function yT(r) {
46443
+ function hT(r) {
46329
46444
  return r.type === i.FunctionCall || r.type === i.InternalCall || [i.Operation, i.Condition, i.Loop].includes(
46330
46445
  r.type
46331
46446
  ) ? r.declaration.inputs : r.type === i.FunctionDeclaration || la.includes(r.type) ? r.inputs : r.type === i.Search ? r.inputsDeclarations : [];
@@ -46367,7 +46482,7 @@ function d7(r) {
46367
46482
  );
46368
46483
  }
46369
46484
  function _i(r) {
46370
- const e = uT(r), t = [];
46485
+ const e = pT(r), t = [];
46371
46486
  return e.forEach((n) => {
46372
46487
  if ($e.includes(n.type))
46373
46488
  t.push(n);
@@ -46520,23 +46635,23 @@ function Ac(r) {
46520
46635
  ...Oc(t)
46521
46636
  ] : [...e, t.name], []);
46522
46637
  }
46523
- function hT(r) {
46638
+ function fT(r) {
46524
46639
  return r.extends.reduce((e, t) => t.type === i.DefinitionEntity ? [
46525
46640
  ...e,
46526
46641
  t,
46527
- ...hT(t),
46528
- ...fT(t)
46642
+ ...fT(t),
46643
+ ...mT(t)
46529
46644
  ] : [...e, t], []);
46530
46645
  }
46531
- function fT(r) {
46646
+ function mT(r) {
46532
46647
  return r.implements.reduce((e, t) => t.type === i.DefinitionEntity ? [
46533
46648
  ...e,
46534
46649
  t,
46535
- ...fT(t),
46536
- ...hT(t)
46650
+ ...mT(t),
46651
+ ...fT(t)
46537
46652
  ] : [...e, t], []);
46538
46653
  }
46539
- function mT(r) {
46654
+ function TT(r) {
46540
46655
  return [
46541
46656
  ...Ac(r),
46542
46657
  ...Oc(r)
@@ -46571,7 +46686,7 @@ function cJ(r) {
46571
46686
  );
46572
46687
  return e && e.type === i.BuiltInBaseEntity ? e : null;
46573
46688
  }
46574
- function TT(r) {
46689
+ function ET(r) {
46575
46690
  const e = r.extends.find(
46576
46691
  (t) => t.type === i.DefinitionEntity
46577
46692
  );
@@ -46587,7 +46702,7 @@ function _r(r) {
46587
46702
  );
46588
46703
  return f(e);
46589
46704
  }
46590
- function ET(r) {
46705
+ function vT(r) {
46591
46706
  return r.type === i.PrimitiveEntity ? !0 : r.type === i.BuiltInBaseEntity ? r.interactive : !_r(r).find(
46592
46707
  (n) => !n.interactive
46593
46708
  );
@@ -46595,7 +46710,7 @@ function ET(r) {
46595
46710
  function uJ(r) {
46596
46711
  return r.parent === r.project && r.project.variableDeclarations.includes(r);
46597
46712
  }
46598
- function vT(r) {
46713
+ function bT(r) {
46599
46714
  return r.parent !== r.project ? !1 : i.VariableDeclaration === r.type ? r.project.variableDeclarations.includes(r) : i.VariableInstance === r.type ? r.project.variableInstances.includes(r) : i.FunctionCall === r.type ? r.project.functionCalls.includes(r) : i.Condition === r.type ? r.project.conditions.includes(r) : i.Operation === r.type ? r.project.operations.includes(r) : i.Loop === r.type ? r.project.loops.includes(r) : i.Search === r.type ? r.project.searches.includes(r) : !1;
46600
46715
  }
46601
46716
  function y7(r) {
@@ -46604,25 +46719,25 @@ function y7(r) {
46604
46719
  i.DefinitionEntity,
46605
46720
  i.InstalledProject,
46606
46721
  i.Project
46607
- ].includes(r.type) || vT(
46722
+ ].includes(r.type) || bT(
46608
46723
  r
46609
46724
  ))
46610
46725
  return !1;
46611
46726
  const e = Mi(r);
46612
46727
  return e.length === 0 ? !0 : e.some((t) => y7(t));
46613
46728
  }
46614
- function bT(r) {
46729
+ function RT(r) {
46615
46730
  return [
46616
46731
  ...Je,
46617
46732
  i.DefinitionEntity,
46618
46733
  i.InstalledProject,
46619
46734
  i.Project
46620
- ].includes(r.type) || vT(
46735
+ ].includes(r.type) || bT(
46621
46736
  r
46622
46737
  ) ? !1 : Mi(r).length === 0;
46623
46738
  }
46624
46739
  function h7(r, e = 0) {
46625
- if (bT(r)) {
46740
+ if (RT(r)) {
46626
46741
  const t = Mi(r);
46627
46742
  return t.length === 0 ? r : t.map((a) => h7(a, e + 1)).reduce((a, s) => a ? s && s.x < a.x ? s : a : s, null);
46628
46743
  }
@@ -46630,7 +46745,7 @@ function h7(r, e = 0) {
46630
46745
  }
46631
46746
  function f7(r) {
46632
46747
  const e = [];
46633
- if (bT(r))
46748
+ if (RT(r))
46634
46749
  e.push(r);
46635
46750
  else
46636
46751
  return [];
@@ -46712,14 +46827,14 @@ function Ot(r, e) {
46712
46827
  } else
46713
46828
  return t === e ? e : Ot(t, e);
46714
46829
  }
46715
- function RT(r, e) {
46830
+ function gT(r, e) {
46716
46831
  if (yr.includes(r.type) || e.getBuiltIn(r.id))
46717
46832
  return null;
46718
46833
  const t = Vt(
46719
46834
  r.parent,
46720
46835
  e
46721
46836
  );
46722
- return t ? t === e ? Et.includes(r.type) ? r : null : t.type === i.DefinitionEntity ? r : RT(t, e) : null;
46837
+ return t ? t === e ? Et.includes(r.type) ? r : null : t.type === i.DefinitionEntity ? r : gT(t, e) : null;
46723
46838
  }
46724
46839
  function Ko(r, e, t) {
46725
46840
  if (r === e || e === t || r === t)
@@ -46773,7 +46888,7 @@ function hs(r, e, t) {
46773
46888
  type: "a-in-b",
46774
46889
  commonAncestorScope: a
46775
46890
  };
46776
- const l = dT(n, a);
46891
+ const l = cT(n, a);
46777
46892
  return l === t ? {
46778
46893
  compatible: !1,
46779
46894
  type: "parallel-in-project",
@@ -46892,7 +47007,7 @@ function Ka(r) {
46892
47007
  blockedByCalling: o
46893
47008
  });
46894
47009
  }
46895
- const a = RT(
47010
+ const a = gT(
46896
47011
  r,
46897
47012
  r.project
46898
47013
  );
@@ -46983,8 +47098,8 @@ function fJ(r) {
46983
47098
  function Ua(r, e) {
46984
47099
  if (r.type !== i.DefinitionEntity || r.abstract)
46985
47100
  return !1;
46986
- const t = TT(r) || r;
46987
- return !!mT(t).includes(e);
47101
+ const t = ET(r) || r;
47102
+ return !!TT(t).includes(e);
46988
47103
  }
46989
47104
  function mJ(r) {
46990
47105
  const e = [];
@@ -48738,11 +48853,11 @@ class PJ {
48738
48853
  }
48739
48854
  class OJ {
48740
48855
  }
48741
- class gT {
48856
+ class IT {
48742
48857
  }
48743
- class AJ extends gT {
48858
+ class AJ extends IT {
48744
48859
  }
48745
- class CJ extends gT {
48860
+ class CJ extends IT {
48746
48861
  }
48747
48862
  class wJ {
48748
48863
  }
@@ -50484,121 +50599,6 @@ function k7(r) {
50484
50599
  t.initChildren(), r.subscribeBuiltInInstance(t);
50485
50600
  }), r.operationDeclarations = e, e;
50486
50601
  }
50487
- function au(r) {
50488
- return r && typeof r.then == "function";
50489
- }
50490
- class IT {
50491
- constructor(e) {
50492
- d(this, "order", []);
50493
- d(this, "flatRecord", {});
50494
- d(this, "onGoingVisits", {});
50495
- this.flatten(e), this.orderEntities();
50496
- }
50497
- flatten(e) {
50498
- const t = new Set(pT()), n = f(
50499
- P(e, t, {
50500
- ignoreBuiltInBaseEntities: !0
50501
- })
50502
- ), a = /* @__PURE__ */ new Set();
50503
- for (const s of n)
50504
- this.flatRecord[s.id] = s, a.add(s.id);
50505
- this.order = Array.from(a);
50506
- }
50507
- moveEntityAfterDependencies(e) {
50508
- const t = _o(e, this.flatRecord);
50509
- for (const n of t) {
50510
- const a = this.order.indexOf(n), s = this.order.indexOf(e.id);
50511
- if (a > s)
50512
- return this.order.splice(s, 1), this.order.splice(a, 0, e.id), !0;
50513
- }
50514
- return !1;
50515
- }
50516
- orderEntities() {
50517
- let e = !1;
50518
- for (let t = 0; t < this.order.length; t++) {
50519
- const n = this.order[t], a = this.flatRecord[n];
50520
- if (this.moveEntityAfterDependencies(a)) {
50521
- e = !0;
50522
- break;
50523
- }
50524
- }
50525
- e && this.orderEntities();
50526
- }
50527
- getUpstreamOngoingDependenciesVisits(e, t) {
50528
- const n = _o(
50529
- this.flatRecord[e],
50530
- this.flatRecord
50531
- ), a = {};
50532
- return Object.entries(this.onGoingVisits[t] || {}).forEach(
50533
- ([s, o]) => {
50534
- Array.from(n).includes(s) && (a[s] = o);
50535
- }
50536
- ), a;
50537
- }
50538
- // For the reverse visit, the relevant dependencies are downstream dependencies.
50539
- // So a given entity would have to wait for downstream dependencies to finish before it can be visited.
50540
- // Instead of getting the upstream dependency of the entity that we will execute next ('entityId'),
50541
- // we get the upstream dependencies of all ongoing visits and check if the entity we are about to visit is among them.
50542
- getDownstreamOngoingDependenciesVisits(e, t) {
50543
- const n = Object.keys(this.onGoingVisits[t] || {}), a = new Set(
50544
- n.flatMap(
50545
- (o) => Array.from(
50546
- _o(this.flatRecord[o], this.flatRecord)
50547
- )
50548
- )
50549
- ), s = {};
50550
- return Array.from(a).forEach((o) => {
50551
- o === e && (s[o] = this.onGoingVisits[t][o]);
50552
- }), s;
50553
- }
50554
- // Awaits and clears the promises for the given entities
50555
- async settlePromises(e, t) {
50556
- const n = Object.values(e);
50557
- n.length && await Promise.all(n), Object.keys(e).forEach((a) => {
50558
- delete this.onGoingVisits[t][a];
50559
- });
50560
- }
50561
- visit(e) {
50562
- const t = this.order;
50563
- for (const n of t)
50564
- e(this.flatRecord[n]);
50565
- return this;
50566
- }
50567
- reverseVisit(e) {
50568
- const t = this.order.slice().reverse();
50569
- for (const n of t)
50570
- e(this.flatRecord[n]);
50571
- return this;
50572
- }
50573
- async visitAsync(e) {
50574
- const t = this.order, n = Math.random().toString(36).substring(7);
50575
- this.onGoingVisits[n] = {};
50576
- for (const a of t) {
50577
- const s = this.getUpstreamOngoingDependenciesVisits(
50578
- a,
50579
- n
50580
- );
50581
- Object.keys(s).length && await this.settlePromises(s, n);
50582
- const o = e(this.flatRecord[a]);
50583
- au(o) && (this.onGoingVisits[n][a] = o);
50584
- }
50585
- return await this.settlePromises(this.onGoingVisits[n], n), this.onGoingVisits[n] = {}, this;
50586
- }
50587
- async reverseVisitAsync(e) {
50588
- const t = this.order.slice().reverse(), n = Math.random().toString(36).substring(7);
50589
- this.onGoingVisits[n] = {};
50590
- for (const a of t) {
50591
- const s = this.getDownstreamOngoingDependenciesVisits(
50592
- a,
50593
- n
50594
- );
50595
- Object.keys(s).length && await this.settlePromises(s, n);
50596
- const o = e(this.flatRecord[a]);
50597
- au(o) && (this.onGoingVisits[n][a] = o);
50598
- }
50599
- return await this.settlePromises(this.onGoingVisits[n], n), this.onGoingVisits[n] = {}, this;
50600
- }
50601
- }
50602
50602
  const Lr = {}, Ja = {};
50603
50603
  async function q7(r, e = {}) {
50604
50604
  const t = {
@@ -50643,7 +50643,7 @@ function MJ(r) {
50643
50643
  const n = DT(
50644
50644
  r.toShallowJSON({ seenEntityMaps: e })
50645
50645
  );
50646
- return new IT(r).visit((a) => {
50646
+ return new oT(r).visit((a) => {
50647
50647
  const s = b(
50648
50648
  a.toShallowJSON({
50649
50649
  seenEntityMaps: e
@@ -50660,7 +50660,7 @@ function MJ(r) {
50660
50660
  }
50661
50661
  function J7(r) {
50662
50662
  const e = DT(r);
50663
- return new IT(r).visit((t) => {
50663
+ return new oT(r).visit((t) => {
50664
50664
  const n = b(
50665
50665
  t,
50666
50666
  e
@@ -50726,7 +50726,7 @@ export {
50726
50726
  ES as CONDITIONS,
50727
50727
  pR as CUSTOM_ENTITY_OPERATIONS,
50728
50728
  OJ as CallableEntityClass,
50729
- gT as CallerEntityClass,
50729
+ IT as CallerEntityClass,
50730
50730
  PJ as ChildEntityState,
50731
50731
  ke as ComparisonOperatorTypes,
50732
50732
  Kr as ConditionState,
@@ -50827,6 +50827,7 @@ export {
50827
50827
  Xt as StandaloneOperatorTypes,
50828
50828
  ne as StringOperations,
50829
50829
  Fe as TERMINATION_TYPES,
50830
+ oT as Traverser,
50830
50831
  MT as USER_MANAGED_ENTITY_TYPES,
50831
50832
  IJ as UserManagedEntityStateFunctionality,
50832
50833
  rT as VALUE_READING_ENTITIES_EXPLANATION,
@@ -50873,9 +50874,9 @@ export {
50873
50874
  Ka as checkIsCallableEntityReachable,
50874
50875
  hJ as checkIsCanvasEntity,
50875
50876
  y7 as checkIsDetachedBranch,
50876
- bT as checkIsDetachedBranchShallow,
50877
+ RT as checkIsDetachedBranchShallow,
50877
50878
  uJ as checkIsGlobalVariable,
50878
- vT as checkIsGloballyDeclared,
50879
+ bT as checkIsGloballyDeclared,
50879
50880
  m7 as checkIsMethod,
50880
50881
  Ko as checkIsNestedScope,
50881
50882
  hs as checkScopeCompatibility,
@@ -50994,7 +50995,7 @@ export {
50994
50995
  rS as executionBuiltInEntityAbortMethodParentRef,
50995
50996
  f as filterOutDuplicateEntities,
50996
50997
  iq as filterOutDuplicateErrors,
50997
- oT as findEntityFromKeys,
50998
+ lT as findEntityFromKeys,
50998
50999
  B2 as findReferenceToSelfInList,
50999
51000
  aJ as findReferencesToSelfInProject,
51000
51001
  _2 as flattenActionDescriptor,
@@ -51007,10 +51008,10 @@ export {
51007
51008
  G2 as flattenContinueStatement,
51008
51009
  F2 as flattenDataType,
51009
51010
  $2 as flattenDefinitionEntity,
51010
- mT as flattenDefinitionEntityExtensionAndImplementationTypes,
51011
+ TT as flattenDefinitionEntityExtensionAndImplementationTypes,
51011
51012
  Ac as flattenDefinitionEntityExtensionTypes,
51012
- hT as flattenDefinitionEntityExtensions,
51013
- fT as flattenDefinitionEntityImplementations,
51013
+ fT as flattenDefinitionEntityExtensions,
51014
+ mT as flattenDefinitionEntityImplementations,
51014
51015
  Oc as flattenDefinitionEntityImplementionTypes,
51015
51016
  Nt as flattenDerivedCanvasEntities,
51016
51017
  f7 as flattenDetachedBranch,
@@ -51066,7 +51067,7 @@ export {
51066
51067
  Co as getAllActionDescriptorsForGlobalEvents,
51067
51068
  wo as getAllActionDescriptorsForLoops,
51068
51069
  Yq as getAllActionDescriptorsForOperations,
51069
- pT as getAllBuiltInEntityIds,
51070
+ yT as getAllBuiltInEntityIds,
51070
51071
  d2 as getAllGloballyDeclaredFunctionDeclarationsExplanation,
51071
51072
  _r as getBaseBuiltInEntities,
51072
51073
  t2 as getBaseSchemaBasedOnType,
@@ -51076,7 +51077,7 @@ export {
51076
51077
  Wt as getCalledBy,
51077
51078
  dq as getCallerEntityReferenceSchema,
51078
51079
  lq as getCallerEntityTypeSchema,
51079
- cT as getCalls,
51080
+ uT as getCalls,
51080
51081
  d7 as getCanvasEntitiesDerivedFromInternalCalls,
51081
51082
  _i as getCanvasEntitiesDerivedFromWrites,
51082
51083
  Zo as getCanvasEntityDerivedFromValueReadingEntity,
@@ -51085,7 +51086,7 @@ export {
51085
51086
  Sq as getCanvasEntityTypeSchema,
51086
51087
  Xq as getChildrenEntityWithValues,
51087
51088
  vJ as getColumnProperties,
51088
- dT as getCommonAncestor,
51089
+ cT as getCommonAncestor,
51089
51090
  T2 as getCommonChildren,
51090
51091
  TJ as getDatabaseEntities,
51091
51092
  bJ as getDatabaseEntity,
@@ -51102,7 +51103,7 @@ export {
51102
51103
  Xd as getDraggablePassThroughCallableEntityTypeSchema,
51103
51104
  bq as getDraggablePlayableEntityReferenceSchema,
51104
51105
  vq as getDraggablePlayableEntityTypeSchema,
51105
- yT as getEntityArgumentDeclarations,
51106
+ hT as getEntityArgumentDeclarations,
51106
51107
  s7 as getEntityInputMaps,
51107
51108
  lJ as getEntityOutputMaps,
51108
51109
  Dq as getEntityReferenceSchema,
@@ -51119,12 +51120,12 @@ export {
51119
51120
  yq as getExecutableEntityReferenceSchema,
51120
51121
  pq as getExecutableEntityTypeSchema,
51121
51122
  dJ as getExtendedBuiltInEntity,
51122
- TT as getExtendedDefinitionEntity,
51123
+ ET as getExtendedDefinitionEntity,
51123
51124
  n2 as getGenerationTargetSchemaBasedOnType,
51124
51125
  h7 as getHeadIfPartOfDetachedBranch,
51125
51126
  T7 as getHighestScope,
51126
51127
  cJ as getImplementedBuiltInEntity,
51127
- ET as getIsInteractive,
51128
+ vT as getIsInteractive,
51128
51129
  vu as getLastInListOperation,
51129
51130
  Wv as getLastInListOperationError,
51130
51131
  Jv as getLastInListOperationErrorParentRef,
@@ -51158,7 +51159,7 @@ export {
51158
51159
  Mi as getRelatedCanvasElementsOnTheLeft,
51159
51160
  M2 as getRelatedCanvasElementsOnTheLeftFromTransfer,
51160
51161
  ur as getRelatedCanvasElementsOnTheRight,
51161
- RT as getRootEntryPointScopeOwner,
51162
+ gT as getRootEntryPointScopeOwner,
51162
51163
  Ot as getScopeOwner,
51163
51164
  gq as getTerminationReferenceSchema,
51164
51165
  Rq as getTerminationTypeSchema,
@@ -51179,7 +51180,7 @@ export {
51179
51180
  O2 as getVariablesFromOutputMaps,
51180
51181
  D2 as getVariablesFromReturnDeclarations,
51181
51182
  zm as getVariablesInSameOrHigherScope,
51182
- uT as getWrites,
51183
+ pT as getWrites,
51183
51184
  eJ as groupCallsBasedOnParallelizableExecution,
51184
51185
  f2 as handleAfterEntityImplementationSideEffects,
51185
51186
  h2 as handleBeforeEntityImplementationSideEffects,
@@ -51236,6 +51237,7 @@ export {
51236
51237
  h5 as inferVariableInstanceDataType,
51237
51238
  DT as initBaseProjectEntity,
51238
51239
  J7 as initProject,
51240
+ au as isPromise,
51239
51241
  Dg as iterateOverListActionDescriptorListArgumentDeclaration,
51240
51242
  gg as iterateOverListActionDescriptorListArgumentDeclarationDataType,
51241
51243
  Rg as iterateOverListActionDescriptorListArgumentDeclarationDataTypeParentRef,
@@ -51495,7 +51497,7 @@ export {
51495
51497
  Ye as resolveClonedEntityProject,
51496
51498
  So as resolveConditionOperatorLabel,
51497
51499
  Rc as resolveDataType,
51498
- lT as resolveDataTypeEntityOrNestedChildrenFromLiteralValue,
51500
+ dT as resolveDataTypeEntityOrNestedChildrenFromLiteralValue,
51499
51501
  ps as resolveDataTypeLabel,
51500
51502
  Mq as resolveDefinitionEntityDataTypeLabel,
51501
51503
  Bq as resolveEntityDataTypeLabel,