@elyx-code/project-logic-tree 0.0.6115 → 0.0.6117

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
@@ -54,7 +54,7 @@ const _n = [
54
54
  a.InputMap,
55
55
  a.OutputMap,
56
56
  a.InternalCall
57
- ], Y7 = [
57
+ ], W7 = [
58
58
  ...au,
59
59
  a.Condition,
60
60
  a.Loop,
@@ -96,7 +96,7 @@ const _n = [
96
96
  ], PT = [
97
97
  ...iu,
98
98
  ...qe
99
- ], H7 = [...dn, ...qe], z7 = [
99
+ ], Y7 = [...dn, ...qe], H7 = [
100
100
  ...su,
101
101
  ...qe
102
102
  ], Mt = [
@@ -106,7 +106,7 @@ const _n = [
106
106
  a.ReturnStatement,
107
107
  a.BreakStatement,
108
108
  a.ContinueStatement
109
- ], Z7 = [
109
+ ], z7 = [
110
110
  a.CustomEntity,
111
111
  a.BuiltInBaseEntity,
112
112
  a.Project,
@@ -1503,7 +1503,7 @@ const N = {
1503
1503
  id: "split-string-operation-second-part-result-string-return-parent-ref",
1504
1504
  entityId: ne.Join,
1505
1505
  entityType: a.ActionDescriptor
1506
- }, K7 = {
1506
+ }, Z7 = {
1507
1507
  parentRelationType: P.FixedReturns,
1508
1508
  id: On.outputs.secondPartResult.id,
1509
1509
  type: a.ValueDescriptor,
@@ -4726,7 +4726,7 @@ const Gv = {
4726
4726
  dataType: bD,
4727
4727
  description: "The name of the main database inside of the server instance where the data will be stored.",
4728
4728
  parent: pi
4729
- }, X7 = {
4729
+ }, K7 = {
4730
4730
  id: "relational-database-built-in-base-entity-username-property-data-type-ref-id",
4731
4731
  type: a.GenericReference,
4732
4732
  entityId: "relational-database-built-in-base-entity-username-property-data-type-idd",
@@ -4780,7 +4780,7 @@ const Gv = {
4780
4780
  dataType: RD,
4781
4781
  description: "The username that will be used to connect to the database.",
4782
4782
  parent: pi
4783
- }, Q7 = {
4783
+ }, X7 = {
4784
4784
  id: "relational-database-built-in-base-entity-password-property-data-type-ref-id",
4785
4785
  type: a.GenericReference,
4786
4786
  entityId: "relational-database-built-in-base-entity-password-property-data-type-id",
@@ -5013,7 +5013,7 @@ const Gv = {
5013
5013
  private: !1,
5014
5014
  x: 0,
5015
5015
  y: 0
5016
- }, Qu = N[a.BuiltInBaseEntity][j.PERSISTED_ENTITY].properties, eJ = {
5016
+ }, Qu = N[a.BuiltInBaseEntity][j.PERSISTED_ENTITY].properties, Q7 = {
5017
5017
  id: "persisted-built-in-base-entity-database-property-data-type-ref-id",
5018
5018
  type: a.GenericReference,
5019
5019
  entityId: "persisted-built-in-base-entity-database-property-data-type-id",
@@ -5188,7 +5188,7 @@ const Gv = {
5188
5188
  entityId: "persisted-built-in-base-entity-ref-id",
5189
5189
  entityType: a.BuiltInBaseEntity,
5190
5190
  id: Ut.SoftDeletePersistedEntity
5191
- }, tJ = {
5191
+ }, eJ = {
5192
5192
  type: a.FunctionDeclaration,
5193
5193
  id: Ut.SoftDeletePersistedEntity,
5194
5194
  name: Ut.SoftDeletePersistedEntity,
@@ -5219,7 +5219,7 @@ const Gv = {
5219
5219
  error: null,
5220
5220
  outputs: [],
5221
5221
  parent: HD
5222
- }, tp = N[a.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY, nJ = {
5222
+ }, tp = N[a.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY, tJ = {
5223
5223
  id: "cron-job-built-in-base-entity-expression-property-data-type-ref",
5224
5224
  type: a.GenericReference,
5225
5225
  entityId: "cron-job-built-in-base-entity-expression-property-data-type",
@@ -8974,7 +8974,7 @@ function $O(r) {
8974
8974
  function FO(r) {
8975
8975
  return Math.random() >= 0.5;
8976
8976
  }
8977
- function rJ(r) {
8977
+ function nJ(r) {
8978
8978
  if (!r || !r.autogeneration)
8979
8979
  return null;
8980
8980
  switch (r.autogeneration.type) {
@@ -19711,7 +19711,7 @@ class jr {
19711
19711
  });
19712
19712
  }
19713
19713
  }
19714
- function aJ(r) {
19714
+ function rJ(r) {
19715
19715
  const e = /* @__PURE__ */ new Set();
19716
19716
  return r.filter((t) => e.has(t.id) ? !1 : (e.add(t.id), !0));
19717
19717
  }
@@ -19719,7 +19719,7 @@ function X(r) {
19719
19719
  const e = r.entity.errors.find((n) => n.id === r.id);
19720
19720
  return e ? { new: !1, error: e } : { new: !0, error: new jr(r) };
19721
19721
  }
19722
- function iJ(r, e) {
19722
+ function aJ(r, e) {
19723
19723
  const t = /* @__PURE__ */ new Map();
19724
19724
  return r.forEach((n) => {
19725
19725
  t.set(n.id, n);
@@ -21510,7 +21510,7 @@ function oo() {
21510
21510
  Da()
21511
21511
  ]);
21512
21512
  }
21513
- function sJ() {
21513
+ function iJ() {
21514
21514
  return p.union([
21515
21515
  Pr(),
21516
21516
  Xd(),
@@ -21520,7 +21520,7 @@ function sJ() {
21520
21520
  Bi()
21521
21521
  ]);
21522
21522
  }
21523
- function oJ() {
21523
+ function sJ() {
21524
21524
  return p.union([
21525
21525
  Ar(),
21526
21526
  bt(),
@@ -21626,55 +21626,55 @@ function nt() {
21626
21626
  Hd()
21627
21627
  ]);
21628
21628
  }
21629
- function lJ() {
21629
+ function oJ() {
21630
21630
  return p.union([
21631
21631
  zd(),
21632
21632
  Or()
21633
21633
  ]);
21634
21634
  }
21635
- function dJ() {
21635
+ function lJ() {
21636
21636
  return p.union([
21637
21637
  Le(),
21638
21638
  nt()
21639
21639
  ]);
21640
21640
  }
21641
- function cJ() {
21641
+ function dJ() {
21642
21642
  return p.union([
21643
21643
  Zd(),
21644
21644
  Or()
21645
21645
  ]);
21646
21646
  }
21647
- function uJ() {
21647
+ function cJ() {
21648
21648
  return p.union([
21649
21649
  Kd(),
21650
21650
  nt()
21651
21651
  ]);
21652
21652
  }
21653
- function pJ() {
21653
+ function uJ() {
21654
21654
  return p.union([
21655
21655
  J6(),
21656
21656
  Or()
21657
21657
  ]);
21658
21658
  }
21659
- function yJ() {
21659
+ function pJ() {
21660
21660
  return p.union([
21661
21661
  rt(),
21662
21662
  nt()
21663
21663
  ]);
21664
21664
  }
21665
- function hJ() {
21665
+ function yJ() {
21666
21666
  return p.union([
21667
21667
  q6(),
21668
21668
  Or()
21669
21669
  ]);
21670
21670
  }
21671
- function fJ() {
21671
+ function hJ() {
21672
21672
  return p.union([
21673
21673
  W6(),
21674
21674
  nt()
21675
21675
  ]);
21676
21676
  }
21677
- function mJ() {
21677
+ function fJ() {
21678
21678
  return p.union([Or(), ba()]);
21679
21679
  }
21680
21680
  function Xn() {
@@ -21683,45 +21683,45 @@ function Xn() {
21683
21683
  fn()
21684
21684
  ]);
21685
21685
  }
21686
- function TJ() {
21686
+ function mJ() {
21687
21687
  return p.union([
21688
21688
  zd(),
21689
21689
  Or()
21690
21690
  ]);
21691
21691
  }
21692
- function EJ() {
21692
+ function TJ() {
21693
21693
  return p.union([
21694
21694
  Le(),
21695
21695
  nt()
21696
21696
  ]);
21697
21697
  }
21698
- function bJ() {
21698
+ function EJ() {
21699
21699
  return p.union([
21700
21700
  Zd(),
21701
21701
  Or()
21702
21702
  ]);
21703
21703
  }
21704
- function vJ() {
21704
+ function bJ() {
21705
21705
  return p.union([
21706
21706
  Kd(),
21707
21707
  nt()
21708
21708
  ]);
21709
21709
  }
21710
- function RJ() {
21710
+ function vJ() {
21711
21711
  return p.union([
21712
21712
  Dr(),
21713
21713
  Ia(),
21714
21714
  va()
21715
21715
  ]);
21716
21716
  }
21717
- function gJ() {
21717
+ function RJ() {
21718
21718
  return p.union([
21719
21719
  ga(),
21720
21720
  Bn(),
21721
21721
  Ra()
21722
21722
  ]);
21723
21723
  }
21724
- function IJ() {
21724
+ function gJ() {
21725
21725
  return p.union([
21726
21726
  kr(),
21727
21727
  tk(),
@@ -21752,7 +21752,7 @@ function IJ() {
21752
21752
  Vi()
21753
21753
  ]);
21754
21754
  }
21755
- function DJ() {
21755
+ function IJ() {
21756
21756
  return p.union([
21757
21757
  eo(),
21758
21758
  Ct(),
@@ -21783,7 +21783,7 @@ function DJ() {
21783
21783
  xd()
21784
21784
  ]);
21785
21785
  }
21786
- function SJ() {
21786
+ function DJ() {
21787
21787
  return p.union([
21788
21788
  qd(),
21789
21789
  Jr(),
@@ -21800,7 +21800,7 @@ function SJ() {
21800
21800
  Ni()
21801
21801
  ]);
21802
21802
  }
21803
- function PJ() {
21803
+ function SJ() {
21804
21804
  return p.union([
21805
21805
  io(),
21806
21806
  Cr(),
@@ -23776,7 +23776,7 @@ function zt(r, e) {
23776
23776
  /* CheckUnknown */
23777
23777
  };
23778
23778
  }
23779
- function OJ(r) {
23779
+ function PJ(r) {
23780
23780
  const e = r.project.builtInBaseEntities.find(
23781
23781
  (i) => i.id === j.EXECUTION
23782
23782
  ), t = {
@@ -23887,7 +23887,7 @@ function D(r) {
23887
23887
  function Gr(r) {
23888
23888
  return r.declaration || r;
23889
23889
  }
23890
- function AJ(r) {
23890
+ function OJ(r) {
23891
23891
  return r.type === a.VariableDeclaration ? r.parent === r.project ? "global-declaration" : "local-declaration" : r.declaration.parent === r.project ? "global-instance" : "local-instance";
23892
23892
  }
23893
23893
  function qm(r, e) {
@@ -23906,12 +23906,12 @@ function qm(r, e) {
23906
23906
  }
23907
23907
  return t;
23908
23908
  }
23909
- function CJ(r) {
23909
+ function AJ(r) {
23910
23910
  return r.split(/[\s-]+/).filter((n) => n.length > 0).map(
23911
23911
  (n, i) => i === 0 ? n.toLowerCase() : n[0].toUpperCase() + n.slice(1).toLowerCase()
23912
23912
  ).join("");
23913
23913
  }
23914
- function wJ(r) {
23914
+ function CJ(r) {
23915
23915
  return r.split(/[\s-]+/).filter((n) => n.length > 0).map(
23916
23916
  (n) => n[0].toUpperCase() + n.slice(1).toLowerCase()
23917
23917
  ).join("");
@@ -23971,7 +23971,7 @@ function ps(r) {
23971
23971
  `${r.entity.name.slice(0, 1).toUpperCase() + r.entity.name.slice(1)} entity`
23972
23972
  );
23973
23973
  }
23974
- function BJ(r) {
23974
+ function wJ(r) {
23975
23975
  if (!r)
23976
23976
  return "Any data type";
23977
23977
  const e = r.getDataType();
@@ -24017,7 +24017,7 @@ function b5(r) {
24017
24017
  }
24018
24018
  return "Entity";
24019
24019
  }
24020
- function MJ(r) {
24020
+ function BJ(r) {
24021
24021
  const e = yT(r);
24022
24022
  if (!e) {
24023
24023
  const t = pT(r);
@@ -24519,7 +24519,7 @@ function Zm(r, e) {
24519
24519
  })
24520
24520
  );
24521
24521
  else {
24522
- const o = l7(
24522
+ const o = o7(
24523
24523
  i
24524
24524
  ).filter(
24525
24525
  (l) => l.name === r.name
@@ -24538,7 +24538,7 @@ Please provide a unique 'name' string.`,
24538
24538
  }
24539
24539
  return t;
24540
24540
  }
24541
- function NJ(r, e) {
24541
+ function MJ(r, e) {
24542
24542
  switch (r.type) {
24543
24543
  case a.CustomEntity:
24544
24544
  return vc(r, e);
@@ -36926,7 +36926,7 @@ d(me, "MUTABLE_DOWNSTREAM_PROPERTIES", ["defaultValue"]), d(me, "INMUTABLE_DOWNS
36926
36926
  ...me.DOWNSTREAM_PROPERTIES
36927
36927
  ]);
36928
36928
  let jn = me;
36929
- class _J extends jn {
36929
+ class NJ extends jn {
36930
36930
  constructor(t, n) {
36931
36931
  super(t, n);
36932
36932
  // @ts-ignore
@@ -36939,7 +36939,7 @@ class _J extends jn {
36939
36939
  return super.toJSON(t);
36940
36940
  }
36941
36941
  }
36942
- class VJ extends jn {
36942
+ class _J extends jn {
36943
36943
  constructor(t, n) {
36944
36944
  super(t, n);
36945
36945
  d(this, "name", null);
@@ -37502,7 +37502,7 @@ d(Te, "MUTABLE_DOWNSTREAM_PROPERTIES", ["writesValues"]), d(Te, "INMUTABLE_DOWNS
37502
37502
  ...Te.DOWNSTREAM_PROPERTIES
37503
37503
  ]);
37504
37504
  let kn = Te;
37505
- class xJ extends kn {
37505
+ class VJ extends kn {
37506
37506
  constructor(t, n) {
37507
37507
  super(t, n);
37508
37508
  // @ts-ignore
@@ -37515,7 +37515,7 @@ class xJ extends kn {
37515
37515
  return super.toJSON(t);
37516
37516
  }
37517
37517
  }
37518
- class LJ extends kn {
37518
+ class xJ extends kn {
37519
37519
  constructor(t, n) {
37520
37520
  super(t, n);
37521
37521
  // @ts-ignore
@@ -41520,7 +41520,7 @@ d(Re, "MUTABLE_DOWNSTREAM_PROPERTIES", ["dataType", "defaultValue"]), d(Re, "INM
41520
41520
  ...Re.DOWNSTREAM_PROPERTIES
41521
41521
  ]);
41522
41522
  let na = Re;
41523
- function GJ(r, e) {
41523
+ function LJ(r, e) {
41524
41524
  if (!r.type && !r.id)
41525
41525
  return {
41526
41526
  errors: [
@@ -41808,7 +41808,7 @@ And there are no upstream references that can be updated.` : `
41808
41808
  There are no upstream references that can be updated.`;
41809
41809
  return i;
41810
41810
  }
41811
- function $J(r, e) {
41811
+ function GJ(r, e) {
41812
41812
  const t = [];
41813
41813
  let n = !1;
41814
41814
  if (yr.includes(e.type) && t.push(
@@ -42213,7 +42213,7 @@ To modify '${l}', target the entity that it points to and its equivalent propert
42213
42213
  }
42214
42214
  return t;
42215
42215
  }
42216
- function FJ(r, e) {
42216
+ function $J(r, e) {
42217
42217
  const t = [];
42218
42218
  if (!r.parent)
42219
42219
  return t;
@@ -42403,14 +42403,14 @@ All pass-through callable entities are: ${k(
42403
42403
  gn,
42404
42404
  ", ",
42405
42405
  " and "
42406
- )}.`, UJ = `Callable entities are entities that can be called by other entities. They can be called by an entry-point, a success caller, or an error caller.
42406
+ )}.`, FJ = `Callable entities are entities that can be called by other entities. They can be called by an entry-point, a success caller, or an error caller.
42407
42407
  All callable entity types are: ${k(
42408
42408
  dn,
42409
42409
  ", ",
42410
42410
  " and "
42411
42411
  )}.`, rr = `Caller to callee relationships can be updated with the 'add_caller' and 'remove_caller' generation action with the properties: 'callerEntityId', a 'calleeEntityId'. For adding a caller, you can optionally add a boolean property 'fromError' (if the caller calls when an error occured in its execution).
42412
42412
  Either of these two actions will only affect the one relationship between the given caller and callee and ignore any others present in either entity.`, tu = `Break and continue statements need to have exactly one 'return-declaration' entity each. It represents the result of the current iteration of the loop. It can have any name and have any 'data-type' but it needs to be identical among all statements in the same loop.
42413
- Meaning, if the return declaration in one 'break-statement' is named 'result' and has a 'data-type' of 'number', all other 'break-statements' and 'continue-statements' in the same loop need to have a 'return-declaration' with the same name and 'data-type'.`, jJ = `Return statements need to be identical inside the same scope. For example if a 'return-statement' belongs to a function, with multiple branches of logic, leading to multiple 'return-statement' entities, all of them need to have the exact same amount of 'return-declaration' entities, sharing the same name and an equivalent 'data-type' entity.
42413
+ Meaning, if the return declaration in one 'break-statement' is named 'result' and has a 'data-type' of 'number', all other 'break-statements' and 'continue-statements' in the same loop need to have a 'return-declaration' with the same name and 'data-type'.`, UJ = `Return statements need to be identical inside the same scope. For example if a 'return-statement' belongs to a function, with multiple branches of logic, leading to multiple 'return-statement' entities, all of them need to have the exact same amount of 'return-declaration' entities, sharing the same name and an equivalent 'data-type' entity.
42414
42414
  Furthermore, some 'function-declarations' and all 'global-events' might be implementing a base 'action-descriptor' entity, which defines exactly the shape and number of the return declarations.`, nu = `A variable without a data type which reads an-untyped object value, or has object properties written into it as input-map writes, will infere its data-type. This means that a 'data-type' will be created, with an implicitly declared 'custom-entity' as its 'entity' property, defining the structure of the object.
42415
42415
  This data type entity is what will define which properties are available to be read from the variable or any of its instances as 'output-map' entities.`, cr = `Entities of type '${a.BuiltInBaseEntity}' that have the 'interactive' property set to false cannot be used programmatically during runtime. They can't be used as data types or instanciated in variables. Their methods can't be called by the code, and are only called by the system in the background. Their properties' values are constant and set only once when declared. They also can't be extended with unrecognized properties or methods that aren't part of the base out-of-the-box entity.`, Qm = `Entities that read values from other entities, can be connected with entities that write values to them. Value reading entity types are: '${k(
42416
42416
  _n,
@@ -42447,7 +42447,7 @@ function Tn(r) {
42447
42447
  ${typeof r == "string" ? r : JSON.stringify(r, null, 2)}
42448
42448
  \`\`\``;
42449
42449
  }
42450
- function kJ(r, e) {
42450
+ function jJ(r, e) {
42451
42451
  let t = {};
42452
42452
  switch (r) {
42453
42453
  case "add_caller":
@@ -42944,7 +42944,7 @@ The new termination statement is redundant because both entities would be called
42944
42944
  (h) => h.scope !== e
42945
42945
  );
42946
42946
  if (y.length) {
42947
- const h = b7(
42947
+ const h = E7(
42948
42948
  y.map((E) => E.scope)
42949
42949
  );
42950
42950
  n.parent = h.id;
@@ -43261,7 +43261,7 @@ ${ru}`,
43261
43261
  modifiedData: o
43262
43262
  };
43263
43263
  }
43264
- function JJ(r, e, t = "calledBy") {
43264
+ function kJ(r, e, t = "calledBy") {
43265
43265
  const n = [];
43266
43266
  if (!r)
43267
43267
  return [];
@@ -43320,7 +43320,7 @@ All caller entity types are: ${k(
43320
43320
  );
43321
43321
  return n;
43322
43322
  }
43323
- function qJ(r, e, t = "calledByError") {
43323
+ function JJ(r, e, t = "calledByError") {
43324
43324
  const n = [];
43325
43325
  if (!r)
43326
43326
  return [];
@@ -43385,7 +43385,7 @@ ${dr}`,
43385
43385
  );
43386
43386
  return n;
43387
43387
  }
43388
- function WJ(r, e) {
43388
+ function qJ(r, e) {
43389
43389
  const t = [], n = e.get(
43390
43390
  r
43391
43391
  );
@@ -43515,7 +43515,7 @@ function Bo(r) {
43515
43515
  - ${r.loopDeclarations.map((e) => `${e.id} (${C(e, r)})`).join(`
43516
43516
  - `)}`;
43517
43517
  }
43518
- function YJ(r) {
43518
+ function WJ(r) {
43519
43519
  return `All reserved action decriptor ids for '${a.Operation}' entities are:
43520
43520
  - ${r.operationDeclarations.map((e) => `${e.id} (${C(e, r)})`).join(`
43521
43521
  - `)}`;
@@ -43660,7 +43660,7 @@ All built-in 'action-descriptor' entities that define 'operation' entity, are (I
43660
43660
  })
43661
43661
  ), t;
43662
43662
  }
43663
- function HJ(r, e) {
43663
+ function YJ(r, e) {
43664
43664
  const t = [];
43665
43665
  if (!r)
43666
43666
  return [];
@@ -43709,7 +43709,7 @@ All built-in 'action-descriptor' entities that define 'condition' entity, are (I
43709
43709
  })
43710
43710
  ), t;
43711
43711
  }
43712
- function zJ(r, e) {
43712
+ function HJ(r, e) {
43713
43713
  const t = [];
43714
43714
  if (!r)
43715
43715
  return [];
@@ -45446,10 +45446,10 @@ function ys(r, e) {
45446
45446
  const t = Ic(r, e);
45447
45447
  return t.last === e && t.list.length > 0 && t.list[0] !== e;
45448
45448
  }
45449
- function ZJ(r, e) {
45449
+ function zJ(r, e) {
45450
45450
  return !!Ic(r, e).last;
45451
45451
  }
45452
- function KJ(r) {
45452
+ function ZJ(r) {
45453
45453
  if (qe.includes(r.type))
45454
45454
  return r;
45455
45455
  if ([...dn, a.VariableDeclaration].includes(r.type)) {
@@ -45544,13 +45544,13 @@ function b2(r) {
45544
45544
  const e = r.parent;
45545
45545
  return e ? b2(e) : null;
45546
45546
  }
45547
- function XJ(r) {
45547
+ function KJ(r) {
45548
45548
  return r.type === a.VariableDeclaration ? [r] : Je.includes(r.type) ? [
45549
45549
  ...r.inputs,
45550
45550
  ...r.outputs || []
45551
45551
  ] : $e.includes(r.type) ? r.outputs : si.includes(r.type) || r.type === a.FunctionDeclaration ? r.inputs : [];
45552
45552
  }
45553
- function QJ(r) {
45553
+ function XJ(r) {
45554
45554
  const e = ur(r), t = [], n = [];
45555
45555
  PT.includes(r.type) && t.push(...sT(r));
45556
45556
  const i = e.filter((s) => {
@@ -45562,7 +45562,7 @@ function QJ(r) {
45562
45562
  function v2(r) {
45563
45563
  return [...r].sort((e, t) => ys(t, e) ? -1 : 0);
45564
45564
  }
45565
- function eq(r) {
45565
+ function QJ(r) {
45566
45566
  const e = v2(r), t = [];
45567
45567
  return e.forEach((n) => {
45568
45568
  const i = t[t.length - 1];
@@ -45591,20 +45591,20 @@ function sT(r) {
45591
45591
  r.calls
45592
45592
  ) : [];
45593
45593
  }
45594
- function tq(r, e) {
45594
+ function eq(r, e) {
45595
45595
  return sT(r).includes(e);
45596
45596
  }
45597
45597
  function oT(r) {
45598
45598
  return r.writesValues || [];
45599
45599
  }
45600
- function nq(r, e) {
45600
+ function tq(r, e) {
45601
45601
  return oT(r).includes(e);
45602
45602
  }
45603
45603
  function R2(r) {
45604
45604
  var e;
45605
45605
  return Fe.includes((e = r == null ? void 0 : r.readsValue) == null ? void 0 : e.type) ? r.readsValue : null;
45606
45606
  }
45607
- function rq(r) {
45607
+ function nq(r) {
45608
45608
  return r.writesValues;
45609
45609
  }
45610
45610
  function g2(r = []) {
@@ -45645,7 +45645,7 @@ function Ge(r) {
45645
45645
  )
45646
45646
  ) : [];
45647
45647
  }
45648
- function aq(r) {
45648
+ function rq(r) {
45649
45649
  return Je.includes(r.type) ? [
45650
45650
  ...vn(
45651
45651
  At(
@@ -45830,7 +45830,7 @@ function w2(r, e) {
45830
45830
  case a.Operation:
45831
45831
  return n.outputs.find((i) => i.id === r.id) !== void 0;
45832
45832
  case a.VariableDeclaration:
45833
- return Je.includes(r.type) ? o7(
45833
+ return Je.includes(r.type) ? s7(
45834
45834
  r
45835
45835
  ).find((s) => {
45836
45836
  var o;
@@ -45845,7 +45845,7 @@ function w2(r, e) {
45845
45845
  }
45846
45846
  });
45847
45847
  }
45848
- function iq(r) {
45848
+ function aq(r) {
45849
45849
  const e = C2(r.project);
45850
45850
  return w2(r, e);
45851
45851
  }
@@ -45867,7 +45867,7 @@ function B2(r, e) {
45867
45867
  ...r.outputs || []
45868
45868
  ].map((s) => {
45869
45869
  const o = Zi(s, e);
45870
- return o ? d7(
45870
+ return o ? l7(
45871
45871
  o,
45872
45872
  e
45873
45873
  ) : null;
@@ -46383,9 +46383,12 @@ function a7(r, e = /* @__PURE__ */ new Set(), t = {
46383
46383
  ...r.parent ? O(r.parent, e, t) : []
46384
46384
  ];
46385
46385
  }
46386
- const i7 = /* @__PURE__ */ new Set(), lT = RS.flatMap(
46387
- (r) => O(r, i7)
46388
- ).map((r) => r.id);
46386
+ function lT() {
46387
+ const r = /* @__PURE__ */ new Set();
46388
+ return RS.flatMap(
46389
+ (t) => O(t, r)
46390
+ ).map((t) => t.id);
46391
+ }
46389
46392
  function O(r, e = /* @__PURE__ */ new Set(), t = {
46390
46393
  ignoreBuiltInBaseEntities: !1
46391
46394
  }) {
@@ -46393,7 +46396,7 @@ function O(r, e = /* @__PURE__ */ new Set(), t = {
46393
46396
  throw new Error("Entity must be defined to be flattened");
46394
46397
  if (r.type === a.GenericReference)
46395
46398
  return [];
46396
- if (t.ignoreBuiltInBaseEntities && (yr.includes(r.type) || lT.includes(r.id)))
46399
+ if (t.ignoreBuiltInBaseEntities && (yr.includes(r.type) || lT().includes(r.id)))
46397
46400
  return [];
46398
46401
  if (e.has(r.id))
46399
46402
  return [];
@@ -46455,7 +46458,7 @@ function O(r, e = /* @__PURE__ */ new Set(), t = {
46455
46458
  }
46456
46459
  return [];
46457
46460
  }
46458
- function s7(r, e) {
46461
+ function i7(r, e) {
46459
46462
  if (yr.includes(r.type))
46460
46463
  return /* @__PURE__ */ new Set();
46461
46464
  const t = B2(
@@ -46499,33 +46502,33 @@ function dT(r) {
46499
46502
  r.type
46500
46503
  ) ? r.declaration.inputs : r.type === a.FunctionDeclaration || si.includes(r.type) ? r.inputs : r.type === a.Search ? r.inputsDeclarations : [];
46501
46504
  }
46502
- function sq(r, e) {
46505
+ function iq(r, e) {
46503
46506
  return e.type === a.Condition ? e.inputs.find((t) => t.declaration.id === r.id) : e.type === a.FunctionCall || e.type === a.Operation ? e.inputs.find((t) => t.declaration.id === r.id) : null;
46504
46507
  }
46505
- function o7(r) {
46508
+ function s7(r) {
46506
46509
  return Je.includes(r.type) ? r.inputs : [];
46507
46510
  }
46508
- function l7(r) {
46511
+ function o7(r) {
46509
46512
  var e;
46510
46513
  return r.type === a.FunctionCall ? ((e = r.declaration.returnStatements[0]) == null ? void 0 : e.outputs) || [] : [a.Operation, a.Condition, a.Loop].includes(
46511
46514
  r.type
46512
46515
  ) ? r.declaration.outputs : r.type === a.Search ? r.outputsDeclarations : $e.includes(r.type) ? r.outputs : [];
46513
46516
  }
46514
- function oq(r, e) {
46517
+ function sq(r, e) {
46515
46518
  return e.type === a.Condition ? null : e.type === a.FunctionCall || e.type === a.Operation ? e.outputs.find((t) => t.declaration.id === r.id) : null;
46516
46519
  }
46517
- function lq(r) {
46520
+ function oq(r) {
46518
46521
  return r.type === a.Condition ? [] : Je.includes(r.type) ? r.outputs : [];
46519
46522
  }
46520
46523
  function Zo(r) {
46521
46524
  const e = r.readsValue;
46522
46525
  return e ? lt(e) : null;
46523
46526
  }
46524
- function d7(r, e) {
46527
+ function l7(r, e) {
46525
46528
  const t = r.readsValue;
46526
46529
  return t ? Dc(t, e) : null;
46527
46530
  }
46528
- function c7(r) {
46531
+ function d7(r) {
46529
46532
  const e = r.internalCalls || [];
46530
46533
  return f(
46531
46534
  At(
@@ -46612,7 +46615,7 @@ function ur(r, e = !1) {
46612
46615
  if (Fe.includes(r.type)) {
46613
46616
  const n = Ba(
46614
46617
  r
46615
- ), i = c7(r);
46618
+ ), i = d7(r);
46616
46619
  t.push(
46617
46620
  ...n,
46618
46621
  ...i
@@ -46653,7 +46656,7 @@ function ur(r, e = !1) {
46653
46656
  t
46654
46657
  );
46655
46658
  }
46656
- function u7(r, e = !1) {
46659
+ function c7(r, e = !1) {
46657
46660
  const t = ur(
46658
46661
  r,
46659
46662
  e
@@ -46661,15 +46664,15 @@ function u7(r, e = !1) {
46661
46664
  ...t,
46662
46665
  ...t.reduce((i, s) => [
46663
46666
  ...i,
46664
- ...u7(s, e)
46667
+ ...c7(s, e)
46665
46668
  ], [])
46666
46669
  ];
46667
46670
  return f(n);
46668
46671
  }
46669
- function p7(r) {
46672
+ function u7(r) {
46670
46673
  const e = wa(r), t = [
46671
46674
  ...e,
46672
- ...e.reduce((n, i) => [...n, ...p7(i)], [])
46675
+ ...e.reduce((n, i) => [...n, ...u7(i)], [])
46673
46676
  ];
46674
46677
  return f(t);
46675
46678
  }
@@ -46711,7 +46714,7 @@ function pT(r) {
46711
46714
  ...Sc(r)
46712
46715
  ].filter((t, n, i) => i.indexOf(t) === n);
46713
46716
  }
46714
- function y7(r) {
46717
+ function p7(r) {
46715
46718
  return r.implements.length === 0 && r.extends.length === 0 ? null : r.implements.find(
46716
46719
  (n) => n.type === a.BuiltInBaseEntity && n.name === j.PERSISTED_ENTITY
46717
46720
  ) ? r : [
@@ -46719,7 +46722,7 @@ function y7(r) {
46719
46722
  ...r.extends
46720
46723
  ].reduce((n, i) => {
46721
46724
  if (i.type === a.CustomEntity) {
46722
- const s = y7(
46725
+ const s = p7(
46723
46726
  i
46724
46727
  );
46725
46728
  if (s)
@@ -46728,13 +46731,13 @@ function y7(r) {
46728
46731
  return n;
46729
46732
  }, null);
46730
46733
  }
46731
- function dq(r) {
46734
+ function lq(r) {
46732
46735
  const e = r.extends.find(
46733
46736
  (t) => t.type === a.BuiltInBaseEntity
46734
46737
  );
46735
46738
  return e && e.type === a.BuiltInBaseEntity ? e : null;
46736
46739
  }
46737
- function cq(r) {
46740
+ function dq(r) {
46738
46741
  const e = r.implements.find(
46739
46742
  (t) => t.type === a.BuiltInBaseEntity
46740
46743
  );
@@ -46761,13 +46764,13 @@ function hT(r) {
46761
46764
  (n) => !n.interactive
46762
46765
  );
46763
46766
  }
46764
- function uq(r) {
46767
+ function cq(r) {
46765
46768
  return r.parent === r.project && r.project.variableDeclarations.includes(r);
46766
46769
  }
46767
46770
  function fT(r) {
46768
46771
  return r.parent !== r.project ? !1 : a.VariableDeclaration === r.type ? r.project.variableDeclarations.includes(r) : a.VariableInstance === r.type ? r.project.variableInstances.includes(r) : a.FunctionCall === r.type ? r.project.functionCalls.includes(r) : a.Condition === r.type ? r.project.conditions.includes(r) : a.Operation === r.type ? r.project.operations.includes(r) : a.Loop === r.type ? r.project.loops.includes(r) : a.Search === r.type ? r.project.searches.includes(r) : !1;
46769
46772
  }
46770
- function h7(r) {
46773
+ function y7(r) {
46771
46774
  if ([
46772
46775
  ...qe,
46773
46776
  a.CustomEntity,
@@ -46778,7 +46781,7 @@ function h7(r) {
46778
46781
  ))
46779
46782
  return !1;
46780
46783
  const e = wa(r);
46781
- return e.length === 0 ? !0 : e.some((t) => h7(t));
46784
+ return e.length === 0 ? !0 : e.some((t) => y7(t));
46782
46785
  }
46783
46786
  function mT(r) {
46784
46787
  return [
@@ -46790,31 +46793,31 @@ function mT(r) {
46790
46793
  r
46791
46794
  ) ? !1 : wa(r).length === 0;
46792
46795
  }
46793
- function f7(r, e = 0) {
46796
+ function h7(r, e = 0) {
46794
46797
  if (mT(r)) {
46795
46798
  const t = wa(r);
46796
- return t.length === 0 ? r : t.map((i) => f7(i, e + 1)).reduce((i, s) => i ? s && s.x < i.x ? s : i : s, null);
46799
+ return t.length === 0 ? r : t.map((i) => h7(i, e + 1)).reduce((i, s) => i ? s && s.x < i.x ? s : i : s, null);
46797
46800
  }
46798
46801
  return null;
46799
46802
  }
46800
- function m7(r) {
46803
+ function f7(r) {
46801
46804
  const e = [];
46802
46805
  if (mT(r))
46803
46806
  e.push(r);
46804
46807
  else
46805
46808
  return [];
46806
46809
  return wa(r).forEach((n) => {
46807
- e.push(...m7(n));
46810
+ e.push(...f7(n));
46808
46811
  }), e;
46809
46812
  }
46810
- function T7(r) {
46813
+ function m7(r) {
46811
46814
  return r.type === a.FunctionDeclaration && r.parent !== r.project && !![
46812
46815
  a.CustomEntity,
46813
46816
  a.Loop,
46814
46817
  a.InstalledProject
46815
46818
  ].includes(r.parent.type);
46816
46819
  }
46817
- function pq(r, e) {
46820
+ function uq(r, e) {
46818
46821
  const t = /* @__PURE__ */ new Map();
46819
46822
  return r.forEach((n) => {
46820
46823
  t.set(n.id, n);
@@ -46960,7 +46963,7 @@ function hs(r, e, t) {
46960
46963
  commonAncestorScope: t
46961
46964
  };
46962
46965
  }
46963
- function E7(r, e, t) {
46966
+ function T7(r, e, t) {
46964
46967
  const n = hs(
46965
46968
  r,
46966
46969
  e,
@@ -47014,9 +47017,9 @@ function E7(r, e, t) {
47014
47017
  }
47015
47018
  return null;
47016
47019
  }
47017
- function b7(r) {
47020
+ function E7(r) {
47018
47021
  return r.length === 0 ? null : r.length === 1 ? r[0] : r.reduce((t, n) => {
47019
- const i = E7(t, n, n.project);
47022
+ const i = T7(t, n, n.project);
47020
47023
  return !i || i === n ? t : n;
47021
47024
  }, r[0]);
47022
47025
  }
@@ -47038,7 +47041,7 @@ function pr(r) {
47038
47041
  const e = r.parent;
47039
47042
  return !e || e.type === a.Project ? null : pr(e);
47040
47043
  }
47041
- function yq(r, e) {
47044
+ function pq(r, e) {
47042
47045
  var t;
47043
47046
  if (r.readsValue) {
47044
47047
  const n = Ft(
@@ -47125,10 +47128,10 @@ function Ki(r) {
47125
47128
  blocks: e
47126
47129
  };
47127
47130
  }
47128
- function hq(r) {
47129
- return Qo.includes(r.type) ? r.type === a.FunctionDeclaration ? !T7(r) : !0 : !1;
47131
+ function yq(r) {
47132
+ return Qo.includes(r.type) ? r.type === a.FunctionDeclaration ? !m7(r) : !0 : !1;
47130
47133
  }
47131
- function fq(r) {
47134
+ function hq(r) {
47132
47135
  if (a.ActionDescriptor === r.type) {
47133
47136
  if (r.project.operationDeclarations.find(
47134
47137
  (s) => s.id === r.id
@@ -47155,7 +47158,7 @@ function Ui(r, e) {
47155
47158
  const t = yT(r) || r;
47156
47159
  return !!pT(t).includes(e);
47157
47160
  }
47158
- function mq(r) {
47161
+ function fq(r) {
47159
47162
  const e = [];
47160
47163
  return r.entities.forEach((t) => {
47161
47164
  if (Ui(t, j.PERSISTED_ENTITY)) {
@@ -47164,7 +47167,7 @@ function mq(r) {
47164
47167
  }
47165
47168
  }), f(e);
47166
47169
  }
47167
- function Tq(r) {
47170
+ function mq(r) {
47168
47171
  const e = [];
47169
47172
  return r.entities.forEach((t) => {
47170
47173
  if (Ui(t, j.RELATIONAL_DATABASE)) {
@@ -47173,7 +47176,7 @@ function Tq(r) {
47173
47176
  }
47174
47177
  }), f(e);
47175
47178
  }
47176
- function Eq(r) {
47179
+ function Tq(r) {
47177
47180
  return r.type !== a.CustomEntity || r.abstract || !Ui(r, j.PERSISTED_ENTITY) ? null : (r == null ? void 0 : r.properties.find(
47178
47181
  (t) => {
47179
47182
  var n;
@@ -47181,7 +47184,7 @@ function Eq(r) {
47181
47184
  }
47182
47185
  )) || null;
47183
47186
  }
47184
- function bq(r) {
47187
+ function Eq(r) {
47185
47188
  if (r.type !== a.CustomEntity)
47186
47189
  return [];
47187
47190
  if (r.abstract)
@@ -47194,7 +47197,7 @@ function bq(r) {
47194
47197
  });
47195
47198
  return e.push(...t), e;
47196
47199
  }
47197
- function vq(r) {
47200
+ function bq(r) {
47198
47201
  var t;
47199
47202
  if (!r || r.type !== a.CustomEntity || !Ui(r, j.PERSISTED_ENTITY))
47200
47203
  return null;
@@ -47213,7 +47216,7 @@ function Ye(r, e) {
47213
47216
  let t = e.project;
47214
47217
  return r.type === a.Project ? t = r : ((n = e.project) == null ? void 0 : n.id) !== r.project.id && (t = r.project), t;
47215
47218
  }
47216
- function v7(r, e) {
47219
+ function b7(r, e) {
47217
47220
  const t = [];
47218
47221
  if (r.parent)
47219
47222
  if (r.id === r.parent)
@@ -47409,7 +47412,7 @@ const ge = class ge {
47409
47412
  let n = JSON.parse(
47410
47413
  JSON.stringify(e)
47411
47414
  );
47412
- const i = [], s = v7(n, t), o = vc(n, t);
47415
+ const i = [], s = b7(n, t), o = vc(n, t);
47413
47416
  i.push(
47414
47417
  ...s,
47415
47418
  ...o,
@@ -48195,7 +48198,7 @@ d(ge, "MUTABLE_DOWNSTREAM_PROPERTIES", [
48195
48198
  ...ge.DOWNSTREAM_PROPERTIES
48196
48199
  ]);
48197
48200
  let aa = ge;
48198
- function R7(r) {
48201
+ function v7(r) {
48199
48202
  const e = a9(), t = r.toJSON();
48200
48203
  e.safeParse(t).success;
48201
48204
  const i = [];
@@ -48422,7 +48425,7 @@ const xa = class xa {
48422
48425
  return this.errors = [], this.properties.forEach((e) => e.clearErrors()), this.methods.forEach((e) => e.clearErrors()), this.abstractMethods.forEach((e) => e.clearErrors()), this;
48423
48426
  }
48424
48427
  validate() {
48425
- const e = R7(this);
48428
+ const e = v7(this);
48426
48429
  return this.errors = e, {
48427
48430
  success: !0,
48428
48431
  error: null,
@@ -48459,7 +48462,7 @@ const xa = class xa {
48459
48462
  };
48460
48463
  d(xa, "repository", Ac);
48461
48464
  let Rn = xa;
48462
- function g7(r) {
48465
+ function R7(r) {
48463
48466
  const e = z8(), t = r.toJSON();
48464
48467
  e.safeParse(t).success;
48465
48468
  const i = [];
@@ -48676,7 +48679,7 @@ const fs = class fs {
48676
48679
  return this.errors = [], this.properties.forEach((e) => e.clearErrors()), this.methods.forEach((e) => e.clearErrors()), this.abstractMethods.forEach((e) => e.clearErrors()), this;
48677
48680
  }
48678
48681
  validate() {
48679
- const e = g7(this);
48682
+ const e = R7(this);
48680
48683
  return this.errors = e, { success: !0, error: null, data: this.toJSON() };
48681
48684
  }
48682
48685
  // Returns the errors of this entity and all its nested entities recursively
@@ -48776,7 +48779,7 @@ function v(r, e) {
48776
48779
  const t = je(r, e);
48777
48780
  return t.subscribe(), t;
48778
48781
  }
48779
- function Rq(r, e) {
48782
+ function vq(r, e) {
48780
48783
  if (!r)
48781
48784
  throw new Error("Entity is null");
48782
48785
  switch (r.type) {
@@ -48872,7 +48875,7 @@ const V = {
48872
48875
  seenEntityMaps: /* @__PURE__ */ new Map(),
48873
48876
  seenEntities: /* @__PURE__ */ new Set()
48874
48877
  };
48875
- class I7 {
48878
+ class g7 {
48876
48879
  constructor() {
48877
48880
  d(this, "initialData");
48878
48881
  }
@@ -48881,30 +48884,30 @@ const M = {
48881
48884
  cascade: !1
48882
48885
  }, Ac = {
48883
48886
  load: async (r) => null
48884
- }, gq = {
48887
+ }, Rq = {
48885
48888
  create: async (r) => r,
48886
48889
  update: async (r) => r,
48887
48890
  delete: async (r) => {
48888
48891
  },
48889
48892
  ...Ac
48890
48893
  };
48891
- class Iq {
48894
+ class gq {
48895
+ }
48896
+ class Iq extends g7 {
48892
48897
  }
48893
- class Dq extends I7 {
48898
+ class Dq {
48894
48899
  }
48895
48900
  class Sq {
48896
48901
  }
48897
48902
  class Pq {
48898
48903
  }
48899
- class Oq {
48900
- }
48901
48904
  class ET {
48902
48905
  }
48903
- class Aq extends ET {
48906
+ class Oq extends ET {
48904
48907
  }
48905
- class Cq extends ET {
48908
+ class Aq extends ET {
48906
48909
  }
48907
- class wq {
48910
+ class Cq {
48908
48911
  }
48909
48912
  class yo {
48910
48913
  static initReadsValue(e) {
@@ -48958,52 +48961,7 @@ class ho {
48958
48961
  ]), e.writesValues;
48959
48962
  }
48960
48963
  }
48961
- class Bq {
48962
- }
48963
- class bT {
48964
- constructor(e, t = "hirarchy") {
48965
- d(this, "order", []);
48966
- d(this, "flatRecord", {});
48967
- this.strategy = t, this.flatten(e), this.orderEntities();
48968
- }
48969
- flatten(e) {
48970
- const t = new Set(lT), n = f(
48971
- O(e, t, {
48972
- ignoreBuiltInBaseEntities: !0
48973
- })
48974
- ), i = /* @__PURE__ */ new Set();
48975
- for (const s of n)
48976
- this.flatRecord[s.id] = s, i.add(s.id);
48977
- this.order = Array.from(i);
48978
- }
48979
- moveEntityAfterDependencies(e) {
48980
- const t = s7(e, this.flatRecord);
48981
- for (const n of t) {
48982
- const i = this.order.indexOf(n), s = this.order.indexOf(e.id);
48983
- if (i > s)
48984
- return this.order.splice(s, 1), this.order.splice(i, 0, e.id), !0;
48985
- }
48986
- return !1;
48987
- }
48988
- orderEntities() {
48989
- let e = !1;
48990
- for (let t = 0; t < this.order.length; t++) {
48991
- const n = this.order[t], i = this.flatRecord[n];
48992
- if (this.moveEntityAfterDependencies(i)) {
48993
- e = !0;
48994
- break;
48995
- }
48996
- }
48997
- e && this.orderEntities();
48998
- }
48999
- visitEntities(e) {
49000
- const t = this.strategy === "reverse-hirarchy" ? this.order.slice().reverse() : this.order;
49001
- for (const n of t)
49002
- e(this.flatRecord[n]);
49003
- }
49004
- visit(e) {
49005
- return this.visitEntities(e), this;
49006
- }
48964
+ class wq {
49007
48965
  }
49008
48966
  const Q = class Q {
49009
48967
  constructor(e) {
@@ -49636,29 +49594,7 @@ const Q = class Q {
49636
49594
  return this.errors;
49637
49595
  }
49638
49596
  clone() {
49639
- const e = /* @__PURE__ */ new Map(), t = this.getAllBuiltInIds();
49640
- Object.keys(this.instances).forEach((i) => {
49641
- if (t.includes(i)) {
49642
- e.set(i, i);
49643
- return;
49644
- }
49645
- e.set(i, Q.UUID.uuid());
49646
- });
49647
- const n = vT(
49648
- this.toShallowJSON({ seenEntityMaps: e })
49649
- );
49650
- return new bT(this).visit((i) => {
49651
- const s = v(
49652
- i.toShallowJSON({ seenEntityMaps: e }),
49653
- n
49654
- );
49655
- s.hydrateAncestors(), s.addSelfToProject();
49656
- }).visit((i) => {
49657
- const s = n.get(
49658
- e.get(i.id)
49659
- );
49660
- s && s.afterAllChildrenInitialized();
49661
- }), n.afterAllChildrenInitialized(), n;
49597
+ return this;
49662
49598
  }
49663
49599
  getCustomEntity(e) {
49664
49600
  return this.entities.find((t) => t.id === e) || null;
@@ -50177,7 +50113,7 @@ d(Q, "MUTABLE_DOWNSTREAM_PROPERTIES", [
50177
50113
  ...Q.DOWNSTREAM_PROPERTIES
50178
50114
  ]);
50179
50115
  let B = Q;
50180
- class D7 extends se {
50116
+ class I7 extends se {
50181
50117
  constructor(t) {
50182
50118
  super(nn, t);
50183
50119
  d(this, "id", Ve.Parallel);
@@ -50228,7 +50164,7 @@ class D7 extends se {
50228
50164
  // // return [result];
50229
50165
  // };
50230
50166
  }
50231
- class S7 extends se {
50167
+ class D7 extends se {
50232
50168
  constructor(t) {
50233
50169
  super(Dt, t);
50234
50170
  d(this, "id", Dt.id);
@@ -50274,7 +50210,7 @@ class S7 extends se {
50274
50210
  // return [result];
50275
50211
  // };
50276
50212
  }
50277
- class P7 extends se {
50213
+ class S7 extends se {
50278
50214
  constructor(t) {
50279
50215
  super(Mn, t);
50280
50216
  d(this, "id", Ve.Sequential);
@@ -50322,17 +50258,17 @@ class P7 extends se {
50322
50258
  // return [results];
50323
50259
  // };
50324
50260
  }
50325
- class O7 extends se {
50261
+ class P7 extends se {
50326
50262
  constructor(e) {
50327
50263
  super(Es, e);
50328
50264
  }
50329
50265
  }
50330
- class A7 extends se {
50266
+ class O7 extends se {
50331
50267
  constructor(e) {
50332
50268
  super(oa, e);
50333
50269
  }
50334
50270
  }
50335
- class C7 extends se {
50271
+ class A7 extends se {
50336
50272
  constructor(t) {
50337
50273
  super(da, t);
50338
50274
  d(this, "autoexecutable", !0);
@@ -50504,50 +50440,50 @@ class C7 extends se {
50504
50440
  return ((n = t.declaration) == null ? void 0 : n.id) === N.operation[_e.Validate].outputs.outputEntity.id ? this.syncOutputDataOutputMapDataType(t) : null;
50505
50441
  }
50506
50442
  }
50507
- class w7 extends se {
50443
+ class C7 extends se {
50508
50444
  constructor(e) {
50509
50445
  super(fu, e);
50510
50446
  }
50511
50447
  }
50512
- class B7 extends se {
50448
+ class w7 extends se {
50513
50449
  constructor(e) {
50514
50450
  super(Tu, e);
50515
50451
  }
50516
50452
  }
50517
- class M7 extends se {
50453
+ class B7 extends se {
50518
50454
  constructor(e) {
50519
50455
  super(Eu, e);
50520
50456
  }
50521
50457
  }
50522
- class N7 extends se {
50458
+ class M7 extends se {
50523
50459
  constructor(e) {
50524
50460
  super(rl, e);
50525
50461
  }
50526
50462
  }
50527
- class _7 extends se {
50463
+ class N7 extends se {
50528
50464
  constructor(e) {
50529
50465
  super(el, e);
50530
50466
  }
50531
50467
  }
50532
- class V7 extends se {
50468
+ class _7 extends se {
50533
50469
  constructor(e) {
50534
50470
  super(Ts, e);
50535
50471
  }
50536
50472
  }
50537
- function x7(r) {
50473
+ function V7(r) {
50538
50474
  const e = [
50539
- new P7(r),
50540
- new D7(r),
50541
50475
  new S7(r),
50476
+ new I7(r),
50477
+ new D7(r),
50478
+ new P7(r),
50542
50479
  new O7(r),
50543
50480
  new A7(r),
50544
- new C7(r),
50545
- new N7(r),
50546
- new w7(r),
50547
50481
  new M7(r),
50482
+ new C7(r),
50548
50483
  new B7(r),
50484
+ new w7(r),
50485
+ new N7(r),
50549
50486
  new _7(r),
50550
- new V7(r),
50551
50487
  new se(hu, r),
50552
50488
  new se(yu, r)
50553
50489
  ];
@@ -50555,7 +50491,7 @@ function x7(r) {
50555
50491
  t.initChildren(), r.subscribeBuiltInInstance(t);
50556
50492
  }), r.operationDeclarations = e, e;
50557
50493
  }
50558
- class L7 extends Rn {
50494
+ class x7 extends Rn {
50559
50495
  constructor(t) {
50560
50496
  super(ot, t);
50561
50497
  d(this, "initialData");
@@ -50595,9 +50531,9 @@ class L7 extends Rn {
50595
50531
  }), this.extends = this.initialData.extends.map((n) => v(n, this.project));
50596
50532
  }
50597
50533
  }
50598
- function G7(r) {
50534
+ function L7(r) {
50599
50535
  const e = [
50600
- new L7(r),
50536
+ new x7(r),
50601
50537
  new Rn(Rs, r),
50602
50538
  new Rn(An, r),
50603
50539
  new Rn(bl, r)
@@ -50607,7 +50543,7 @@ function G7(r) {
50607
50543
  r.subscribeBuiltInInstance(t);
50608
50544
  }), r.builtInBaseEntities = e, e;
50609
50545
  }
50610
- function $7(r) {
50546
+ function G7(r) {
50611
50547
  const e = [
50612
50548
  new Ht(J, r),
50613
50549
  new Ht(Jn, r),
@@ -50622,7 +50558,7 @@ function $7(r) {
50622
50558
  r.subscribeBuiltInInstance(t);
50623
50559
  }), r.primitives = e, e;
50624
50560
  }
50625
- function F7(r) {
50561
+ function $7(r) {
50626
50562
  const e = [
50627
50563
  new se(Rl, r)
50628
50564
  ];
@@ -50630,7 +50566,7 @@ function F7(r) {
50630
50566
  t.initChildren(), r.subscribeBuiltInInstance(t);
50631
50567
  }), r.globalEventActionDescriptors = e, e;
50632
50568
  }
50633
- function U7(r) {
50569
+ function F7(r) {
50634
50570
  const e = [
50635
50571
  new se(vs, r),
50636
50572
  new se(fr, r),
@@ -50669,7 +50605,7 @@ function U7(r) {
50669
50605
  n.initChildren(), r.subscribeBuiltInInstance(n);
50670
50606
  }), r.loopDeclarationsBodies = t, e;
50671
50607
  }
50672
- function j7(r) {
50608
+ function U7(r) {
50673
50609
  const e = [
50674
50610
  new na(Il, r)
50675
50611
  ];
@@ -50677,7 +50613,7 @@ function j7(r) {
50677
50613
  t.initChildren(), r.subscribeBuiltInInstance(t);
50678
50614
  }), r.valueDescriptors = e, e;
50679
50615
  }
50680
- function k7(r) {
50616
+ function j7(r) {
50681
50617
  const e = [
50682
50618
  new se(ca, r),
50683
50619
  new se(fi, r)
@@ -50686,8 +50622,53 @@ function k7(r) {
50686
50622
  t.initChildren(), r.subscribeBuiltInInstance(t);
50687
50623
  }), r.operationDeclarations = e, e;
50688
50624
  }
50625
+ class bT {
50626
+ constructor(e, t = "hirarchy") {
50627
+ d(this, "order", []);
50628
+ d(this, "flatRecord", {});
50629
+ this.strategy = t, this.flatten(e), this.orderEntities();
50630
+ }
50631
+ flatten(e) {
50632
+ const t = new Set(lT()), n = f(
50633
+ O(e, t, {
50634
+ ignoreBuiltInBaseEntities: !0
50635
+ })
50636
+ ), i = /* @__PURE__ */ new Set();
50637
+ for (const s of n)
50638
+ this.flatRecord[s.id] = s, i.add(s.id);
50639
+ this.order = Array.from(i);
50640
+ }
50641
+ moveEntityAfterDependencies(e) {
50642
+ const t = i7(e, this.flatRecord);
50643
+ for (const n of t) {
50644
+ const i = this.order.indexOf(n), s = this.order.indexOf(e.id);
50645
+ if (i > s)
50646
+ return this.order.splice(s, 1), this.order.splice(i, 0, e.id), !0;
50647
+ }
50648
+ return !1;
50649
+ }
50650
+ orderEntities() {
50651
+ let e = !1;
50652
+ for (let t = 0; t < this.order.length; t++) {
50653
+ const n = this.order[t], i = this.flatRecord[n];
50654
+ if (this.moveEntityAfterDependencies(i)) {
50655
+ e = !0;
50656
+ break;
50657
+ }
50658
+ }
50659
+ e && this.orderEntities();
50660
+ }
50661
+ visitEntities(e) {
50662
+ const t = this.strategy === "reverse-hirarchy" ? this.order.slice().reverse() : this.order;
50663
+ for (const n of t)
50664
+ e(this.flatRecord[n]);
50665
+ }
50666
+ visit(e) {
50667
+ return this.visitEntities(e), this;
50668
+ }
50669
+ }
50689
50670
  const xr = {}, qi = {};
50690
- async function J7(r, e = {}) {
50671
+ async function k7(r, e = {}) {
50691
50672
  const t = {
50692
50673
  ...w8
50693
50674
  };
@@ -50714,11 +50695,38 @@ async function J7(r, e = {}) {
50714
50695
  }
50715
50696
  function vT(r) {
50716
50697
  const e = new B(r);
50717
- return $7(e), G7(e), x7(e), F7(e), U7(e), j7(e), k7(e), e.getAllBuiltIn().forEach((n) => {
50698
+ return G7(e), L7(e), V7(e), $7(e), F7(e), U7(e), j7(e), e.getAllBuiltIn().forEach((n) => {
50718
50699
  e.builtInInstances[n.id] || (e.builtInInstances[n.id] = n, delete e.instances[n.id]);
50719
50700
  }), e;
50720
50701
  }
50721
- function q7(r) {
50702
+ function Bq(r) {
50703
+ const e = /* @__PURE__ */ new Map(), t = r.getAllBuiltInIds();
50704
+ Object.keys(r.instances).forEach((i) => {
50705
+ if (t.includes(i)) {
50706
+ e.set(i, i);
50707
+ return;
50708
+ }
50709
+ e.set(i, B.UUID.uuid());
50710
+ });
50711
+ const n = vT(
50712
+ r.toShallowJSON({ seenEntityMaps: e })
50713
+ );
50714
+ return new bT(r).visit((i) => {
50715
+ const s = v(
50716
+ i.toShallowJSON({
50717
+ seenEntityMaps: e
50718
+ }),
50719
+ n
50720
+ );
50721
+ s.hydrateAncestors(), s.addSelfToProject();
50722
+ }).visit((i) => {
50723
+ const s = n.get(
50724
+ e.get(i.id)
50725
+ );
50726
+ s && s.afterAllChildrenInitialized();
50727
+ }), n.afterAllChildrenInitialized(), n;
50728
+ }
50729
+ function J7(r) {
50722
50730
  const e = vT(r);
50723
50731
  return new bT(r).visit((t) => {
50724
50732
  const n = v(
@@ -50738,11 +50746,11 @@ async function Mq(r, e = {}) {
50738
50746
  return xr[r.id];
50739
50747
  if (r.id && qi[r.id])
50740
50748
  return await qi[r.id], xr[r.id];
50741
- const t = J7(r, e);
50749
+ const t = k7(r, e);
50742
50750
  r.id && (qi[r.id] = t);
50743
50751
  const n = await t;
50744
50752
  if (n.data) {
50745
- const i = q7(n.data);
50753
+ const i = J7(n.data);
50746
50754
  return xr[r.id] = i, r.id && delete qi[r.id], i;
50747
50755
  }
50748
50756
  return null;
@@ -50755,7 +50763,6 @@ export {
50755
50763
  ru as AI_VALUE_CONNECTION_GENERATION_ACTION_EXPLANATION,
50756
50764
  eS as ALL_BUILT_IN_BASE_ENTITIES,
50757
50765
  fS as ALL_BUILT_IN_CONDITION_ENTITIES,
50758
- lT as ALL_BUILT_IN_ENTITY_IDS,
50759
50766
  TS as ALL_BUILT_IN_GLOBAL_EVENT_ENTITIES,
50760
50767
  BI as ALL_BUILT_IN_LOOP_ENTITIES,
50761
50768
  JR as ALL_BUILT_IN_OPERATION_ENTITIES,
@@ -50763,22 +50770,22 @@ export {
50763
50770
  RS as ALL_BUILT_IN_TOP_LEVEL_ENTITIES,
50764
50771
  vS as ALL_BUILT_IN_VALUE_DESCRIPTORS,
50765
50772
  se as ActionDescriptorState,
50766
- VJ as ActionInputMapState,
50767
- LJ as ActionOutputMapState,
50773
+ _J as ActionInputMapState,
50774
+ xJ as ActionOutputMapState,
50768
50775
  kb as AppendToListOperationInputIds,
50769
50776
  Jb as AppendToListOperationOutputIds,
50770
50777
  ea as ArgumentDeclarationState,
50771
50778
  tu as BREAK_AND_CONTINUE_STATEMENTS_RETURN_DECLARATIONS_EXPLANATION,
50772
50779
  N as BUILT_IN_BASE_ENTITY_IDS,
50773
50780
  yr as BUILT_IN_ENTITY_TYPES,
50774
- Sq as BaseCanvasDraggableState,
50781
+ Dq as BaseCanvasDraggableState,
50775
50782
  j as BaseEntityNames,
50776
- Dq as BaseState,
50783
+ Iq as BaseState,
50777
50784
  ou as BaseValueDescriptorIds,
50778
50785
  ii as BreakStatementState,
50779
50786
  Rn as BuiltInBaseEntityState,
50780
50787
  xr as CACHED_PROJECTS_BY_ID,
50781
- UJ as CALLABLE_ENTITIES_EXPLANATION,
50788
+ FJ as CALLABLE_ENTITIES_EXPLANATION,
50782
50789
  dn as CALLABLE_TYPES,
50783
50790
  n2 as CALLER_ENTITIES_EXPLANATION,
50784
50791
  gn as CALLER_TYPES,
@@ -50786,9 +50793,9 @@ export {
50786
50793
  yS as COMPARISON_CONDITIONS,
50787
50794
  hS as CONDITIONS,
50788
50795
  lR as CUSTOM_ENTITY_OPERATIONS,
50789
- Oq as CallableEntityClass,
50796
+ Pq as CallableEntityClass,
50790
50797
  ET as CallerEntityClass,
50791
- Pq as ChildEntityState,
50798
+ Sq as ChildEntityState,
50792
50799
  ke as ComparisonOperatorTypes,
50793
50800
  Zr as ConditionState,
50794
50801
  St as ContinueStatementState,
@@ -50798,17 +50805,17 @@ export {
50798
50805
  su as DRAGGABLE_CALLABLE_TYPES,
50799
50806
  PT as DRAGGABLE_CALLER_TYPES,
50800
50807
  Qo as DRAGGABLE_ELEMENT_TYPES,
50801
- z7 as DRAGGABLE_EXECUTABLE_TYPES,
50808
+ H7 as DRAGGABLE_EXECUTABLE_TYPES,
50802
50809
  iu as DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES,
50803
50810
  Yt as DataTypeCompatibilityTypes,
50804
50811
  et as DataTypeParentChildRelation,
50805
50812
  ti as DataTypeState,
50806
- gq as EDITABLE_PERSISTANCE_REPOSITORY_DEFAULTS,
50813
+ Rq as EDITABLE_PERSISTANCE_REPOSITORY_DEFAULTS,
50807
50814
  Ho as ENTITIES_WITH_VALLUES_EXPLANATION,
50808
50815
  M as ENTITY_PERSISTANCE_OPTIONS_DEFAULTS,
50809
50816
  V as ENTITY_RECUSION_OPTIONS_DEFAULTS,
50810
- Z7 as ENTITY_TYPES,
50811
- Y7 as ENTITY_WITH_DECLARATION_TYPES,
50817
+ z7 as ENTITY_TYPES,
50818
+ W7 as ENTITY_WITH_DECLARATION_TYPES,
50812
50819
  Mt as ENTITY_WITH_LOGIC_SCOPE_TYPES,
50813
50820
  OT as ENTITY_WITH_NAMES_TYPES,
50814
50821
  DT as ENTITY_WITH_PARENT_TYPES,
@@ -50818,7 +50825,7 @@ export {
50818
50825
  uo as ENTRY_POINT_ENTITIES_EXPLANATION,
50819
50826
  qe as ENTRY_POINT_TYPES,
50820
50827
  si as EVENT_TYPES,
50821
- H7 as EXECUTABLE_TYPES,
50828
+ Y7 as EXECUTABLE_TYPES,
50822
50829
  Vv as EXECUTION_OPERATIONS,
50823
50830
  jr as EntityError,
50824
50831
  T as EntityErrorSeverity,
@@ -50827,9 +50834,9 @@ export {
50827
50834
  x as EntityInstanceErrorCode,
50828
50835
  _e as EntityOperations,
50829
50836
  a as EntityType,
50830
- Bq as EntityWithLogicScopeClass,
50831
- wq as EntityWithValueClass,
50832
- Aq as EntryPointEntityClass,
50837
+ wq as EntityWithLogicScopeClass,
50838
+ Cq as EntityWithValueClass,
50839
+ Oq as EntryPointEntityClass,
50833
50840
  Ve as ExecutionOperations,
50834
50841
  X5 as ExecutionTerminationType,
50835
50842
  ra as FunctionCallState,
@@ -50862,34 +50869,34 @@ export {
50862
50869
  dr as PASS_THROUGH_CALLABLE_ENTITIES_EXPLANATION,
50863
50870
  Je as PASS_THROUGH_CALLABLE_TYPES,
50864
50871
  eT as PROPERTY_NOT_VALUE_READER_WRITTER_EXPLANATION,
50865
- D7 as ParallelExecutionOperation,
50866
- Cq as PassThroughCallableEntityClass,
50867
- L7 as PersistedEntity,
50872
+ I7 as ParallelExecutionOperation,
50873
+ Aq as PassThroughCallableEntityClass,
50874
+ x7 as PersistedEntity,
50868
50875
  Ut as PersistedEntityMethods,
50869
50876
  Ht as PrimitiveEntityState,
50870
50877
  A as PrimitiveTypes,
50871
50878
  B as ProjectState,
50872
50879
  Wr as PropertyState,
50873
50880
  Ac as READ_ONLY_ENTITY_PERSISTANCE_REPOSITORY,
50874
- jJ as RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION,
50881
+ UJ as RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION,
50875
50882
  jt as ReturnDeclarationState,
50876
50883
  ta as ReturnStatementState,
50877
50884
  aS as STANDALONE_CONDITIONS,
50878
50885
  ZE as STRING_OPERATIONS,
50879
50886
  Xo as ScopeCompatibilityType,
50880
50887
  Xr as SearchState,
50881
- P7 as SequentialExecutionOperation,
50888
+ S7 as SequentialExecutionOperation,
50882
50889
  gv as SequentialExecutionOperationInputIds,
50883
50890
  Iv as SequentialExecutionOperationOutputIds,
50884
50891
  w as SharedEntityErrorCode,
50885
- I7 as SharedStateFunctionality,
50892
+ g7 as SharedStateFunctionality,
50886
50893
  yb as SplitListOperationInputIds,
50887
50894
  hb as SplitListOperationOutputIds,
50888
50895
  Xt as StandaloneOperatorTypes,
50889
50896
  ne as StringOperations,
50890
50897
  $e as TERMINATION_TYPES,
50891
50898
  AT as USER_MANAGED_ENTITY_TYPES,
50892
- Iq as UserManagedEntityStateFunctionality,
50899
+ gq as UserManagedEntityStateFunctionality,
50893
50900
  Qm as VALUE_READING_ENTITIES_EXPLANATION,
50894
50901
  _n as VALUE_READING_TYPES,
50895
50902
  r2 as VALUE_WRITING_ENTITIES_EXPLANATION,
@@ -50902,10 +50909,10 @@ export {
50902
50909
  yo as ValueReadingEntityClass,
50903
50910
  ho as ValueWritingEntityClass,
50904
50911
  rn as VariableDeclarationState,
50905
- _J as VariableInputMapState,
50912
+ NJ as VariableInputMapState,
50906
50913
  Kr as VariableInstanceState,
50907
- xJ as VariableOutputMapState,
50908
- S7 as WaitOperation,
50914
+ VJ as VariableOutputMapState,
50915
+ D7 as WaitOperation,
50909
50916
  fv as WaitOperationInputIds,
50910
50917
  mv as WaitOperationOutputIds,
50911
50918
  rl as appendToListOperation,
@@ -50930,16 +50937,17 @@ export {
50930
50937
  zt as checkAreDataTypesCompatible,
50931
50938
  c5 as checkArePropertiesCompatibleAsDataType,
50932
50939
  ys as checkIsBranchDependentButNotDirectlyOnBranch,
50933
- ZJ as checkIsBranchDependentOnBranch,
50940
+ zJ as checkIsBranchDependentOnBranch,
50934
50941
  Ki as checkIsCallableEntityReachable,
50935
- hq as checkIsCanvasEntity,
50936
- h7 as checkIsDetachedBranch,
50942
+ yq as checkIsCanvasEntity,
50943
+ y7 as checkIsDetachedBranch,
50937
50944
  mT as checkIsDetachedBranchShallow,
50938
- uq as checkIsGlobalVariable,
50945
+ cq as checkIsGlobalVariable,
50939
50946
  fT as checkIsGloballyDeclared,
50940
- T7 as checkIsMethod,
50947
+ m7 as checkIsMethod,
50941
50948
  Ko as checkIsNestedScope,
50942
50949
  hs as checkScopeCompatibility,
50950
+ Bq as cloneProject,
50943
50951
  vs as countedLoopActionDescriptor,
50944
50952
  II as countedLoopActionDescriptorDynamicReturnDeclaration,
50945
50953
  gI as countedLoopActionDescriptorDynamicReturnDeclarationParentRef,
@@ -50975,12 +50983,12 @@ export {
50975
50983
  Wv as createNewInstanceOperationOutputEntityDeclarationParentRef,
50976
50984
  Jv as createNewInstanceOperationRef,
50977
50985
  Ie as createSemanticId,
50978
- Rq as createStateFromGenerationTargetType,
50986
+ vq as createStateFromGenerationTargetType,
50979
50987
  je as createStateFromType,
50980
50988
  v as createStateFromTypeAndSubscribe,
50981
50989
  bl as cronJobBuiltInBaseEntity,
50982
50990
  XD as cronJobBuiltInBaseEntityExpressionProperty,
50983
- nJ as cronJobBuiltInBaseEntityExpressionPropertyDataTypeRef,
50991
+ tJ as cronJobBuiltInBaseEntityExpressionPropertyDataTypeRef,
50984
50992
  zD as cronJobBuiltInBaseEntityExpressionPropertyRef,
50985
50993
  KD as cronJobBuiltInBaseEntityRef,
50986
50994
  ep as cronJobTriggeredFunctionDeclarationBlueprint,
@@ -51053,10 +51061,10 @@ export {
51053
51061
  np as executionBuiltInEntityAbortMethod,
51054
51062
  QD as executionBuiltInEntityAbortMethodParentRef,
51055
51063
  f as filterOutDuplicateEntities,
51056
- aJ as filterOutDuplicateErrors,
51064
+ rJ as filterOutDuplicateErrors,
51057
51065
  rT as findEntityFromKeys,
51058
51066
  w2 as findReferenceToSelfInList,
51059
- iq as findReferencesToSelfInProject,
51067
+ aq as findReferencesToSelfInProject,
51060
51068
  M2 as flattenActionDescriptor,
51061
51069
  N2 as flattenArgumentDeclaration,
51062
51070
  _2 as flattenBreakStatement,
@@ -51073,9 +51081,9 @@ export {
51073
51081
  Sc as flattenCustomEntityImplementionTypes,
51074
51082
  $2 as flattenDataType,
51075
51083
  _t as flattenDerivedCanvasEntities,
51076
- m7 as flattenDetachedBranch,
51084
+ f7 as flattenDetachedBranch,
51077
51085
  Ge as flattenElementCalls,
51078
- aq as flattenElementCallsOnTheSameScope,
51086
+ rq as flattenElementCallsOnTheSameScope,
51079
51087
  O as flattenEntity,
51080
51088
  F2 as flattenFunctionCall,
51081
51089
  U2 as flattenFunctionDeclaration,
@@ -51091,8 +51099,8 @@ export {
51091
51099
  K2 as flattenProject,
51092
51100
  C2 as flattenProjectElements,
51093
51101
  X2 as flattenProperty,
51094
- p7 as flattenRelatedCanvasElementsOnTheLeft,
51095
- u7 as flattenRelatedCanvasElementsOnTheRight,
51102
+ u7 as flattenRelatedCanvasElementsOnTheLeft,
51103
+ c7 as flattenRelatedCanvasElementsOnTheRight,
51096
51104
  Q2 as flattenReturnDeclaration,
51097
51105
  e7 as flattenReturnStatement,
51098
51106
  t7 as flattenSearch,
@@ -51103,9 +51111,9 @@ export {
51103
51111
  O2 as flattenVariableWrites,
51104
51112
  Ce as flattenVariables,
51105
51113
  Km as fromZodParseToEntityGenerationErrors,
51106
- rJ as generate,
51107
- kJ as generateActionExample,
51108
- OJ as generateExecutionDataType,
51114
+ nJ as generate,
51115
+ jJ as generateActionExample,
51116
+ PJ as generateExecutionDataType,
51109
51117
  We as generateIdFromStrategy,
51110
51118
  Oo as generateMutablePropertiesExplanation,
51111
51119
  FO as generateRandomBoolean,
@@ -51125,7 +51133,8 @@ export {
51125
51133
  Mo as getAllActionDescriptorsForConditions,
51126
51134
  wo as getAllActionDescriptorsForGlobalEvents,
51127
51135
  Bo as getAllActionDescriptorsForLoops,
51128
- YJ as getAllActionDescriptorsForOperations,
51136
+ WJ as getAllActionDescriptorsForOperations,
51137
+ lT as getAllBuiltInEntityIds,
51129
51138
  l2 as getAllGloballyDeclaredFunctionDeclarationsExplanation,
51130
51139
  Mr as getBaseBuiltInEntities,
51131
51140
  e2 as getBaseSchemaBasedOnType,
@@ -51133,57 +51142,57 @@ export {
51133
51142
  rt as getCallableEntityReferenceSchema,
51134
51143
  J6 as getCallableEntityTypeSchema,
51135
51144
  Wt as getCalledBy,
51136
- dJ as getCallerEntityReferenceSchema,
51137
- lJ as getCallerEntityTypeSchema,
51145
+ lJ as getCallerEntityReferenceSchema,
51146
+ oJ as getCallerEntityTypeSchema,
51138
51147
  sT as getCalls,
51139
- c7 as getCanvasEntitiesDerivedFromInternalCalls,
51148
+ d7 as getCanvasEntitiesDerivedFromInternalCalls,
51140
51149
  Ba as getCanvasEntitiesDerivedFromWrites,
51141
51150
  Zo as getCanvasEntityDerivedFromValueReadingEntity,
51142
- d7 as getCanvasEntityDerivedFromValueReadingEntityFromTransfer,
51143
- PJ as getCanvasEntityReferenceSchema,
51144
- SJ as getCanvasEntityTypeSchema,
51145
- XJ as getChildrenEntityWithValues,
51146
- bq as getColumnProperties,
51151
+ l7 as getCanvasEntityDerivedFromValueReadingEntityFromTransfer,
51152
+ SJ as getCanvasEntityReferenceSchema,
51153
+ DJ as getCanvasEntityTypeSchema,
51154
+ KJ as getChildrenEntityWithValues,
51155
+ Eq as getColumnProperties,
51147
51156
  iT as getCommonAncestor,
51148
51157
  m2 as getCommonChildren,
51149
51158
  Ui as getCustomEntityExtends,
51150
- Tq as getDatabaseEntities,
51151
- vq as getDatabaseEntity,
51159
+ mq as getDatabaseEntities,
51160
+ bq as getDatabaseEntity,
51152
51161
  Gr as getDeclaration,
51153
- b7 as getDeepestScope,
51154
- s7 as getDependencyIds,
51162
+ E7 as getDeepestScope,
51163
+ i7 as getDependencyIds,
51155
51164
  W6 as getDraggableCallableEntityReferenceSchema,
51156
51165
  q6 as getDraggableCallableEntityTypeSchema,
51157
- uJ as getDraggableCallerEntityReferenceSchema,
51158
- cJ as getDraggableCallerEntityTypeSchema,
51159
- fJ as getDraggableExecutableEntityReferenceSchema,
51160
- hJ as getDraggableExecutableEntityTypeSchema,
51166
+ cJ as getDraggableCallerEntityReferenceSchema,
51167
+ dJ as getDraggableCallerEntityTypeSchema,
51168
+ hJ as getDraggableExecutableEntityReferenceSchema,
51169
+ yJ as getDraggableExecutableEntityTypeSchema,
51161
51170
  Kd as getDraggablePassThroughCallableEntityReferenceSchema,
51162
51171
  Zd as getDraggablePassThroughCallableEntityTypeSchema,
51163
- vJ as getDraggablePlayableEntityReferenceSchema,
51164
- bJ as getDraggablePlayableEntityTypeSchema,
51172
+ bJ as getDraggablePlayableEntityReferenceSchema,
51173
+ EJ as getDraggablePlayableEntityTypeSchema,
51165
51174
  dT as getEntityArgumentDeclarations,
51166
- o7 as getEntityInputMaps,
51167
- lq as getEntityOutputMaps,
51168
- DJ as getEntityReferenceSchema,
51169
- l7 as getEntityReturnDeclarations,
51170
- IJ as getEntityTypeSchema,
51175
+ s7 as getEntityInputMaps,
51176
+ oq as getEntityOutputMaps,
51177
+ IJ as getEntityReferenceSchema,
51178
+ o7 as getEntityReturnDeclarations,
51179
+ gJ as getEntityTypeSchema,
51171
51180
  Xn as getEntityWithLogicScopeReferenceSchema,
51172
- mJ as getEntityWithLogicScopeTypeSchema,
51181
+ fJ as getEntityWithLogicScopeTypeSchema,
51173
51182
  k6 as getEntityWithValueReferenceSchema,
51174
- oJ as getEntityWithValueTypeSchema,
51183
+ sJ as getEntityWithValueTypeSchema,
51175
51184
  nt as getEntryPointEntityReferenceSchema,
51176
51185
  Or as getEntryPointEntityTypeSchema,
51177
51186
  Hd as getEventEntityReferenceSchema,
51178
51187
  Yd as getEventEntityTypeSchema,
51179
- yJ as getExecutableEntityReferenceSchema,
51180
- pJ as getExecutableEntityTypeSchema,
51181
- dq as getExtendedBuiltInEntity,
51188
+ pJ as getExecutableEntityReferenceSchema,
51189
+ uJ as getExecutableEntityTypeSchema,
51190
+ lq as getExtendedBuiltInEntity,
51182
51191
  yT as getExtendedCustomEntity,
51183
51192
  t2 as getGenerationTargetSchemaBasedOnType,
51184
- f7 as getHeadIfPartOfDetachedBranch,
51185
- E7 as getHighestScope,
51186
- cq as getImplementedBuiltInEntity,
51193
+ h7 as getHeadIfPartOfDetachedBranch,
51194
+ T7 as getHighestScope,
51195
+ dq as getImplementedBuiltInEntity,
51187
51196
  hT as getIsInteractive,
51188
51197
  Eu as getLastInListOperation,
51189
51198
  jb as getLastInListOperationError,
@@ -51196,20 +51205,20 @@ export {
51196
51205
  Fb as getLastInListOperationOutputElementReturn,
51197
51206
  $b as getLastInListOperationOutputElementReturnParentRef,
51198
51207
  Vb as getLastInListOperationOutputElementReturnRef,
51199
- rq as getLinkedEntitiesFromArgumentDeclaration,
51200
- y7 as getLowestPersistedEntityImplementation,
51208
+ nq as getLinkedEntitiesFromArgumentDeclaration,
51209
+ p7 as getLowestPersistedEntityImplementation,
51201
51210
  T2 as getParentCallableEntity,
51202
51211
  b2 as getParentCallerEntity,
51203
51212
  At as getParentCanvasEntities,
51204
51213
  lt as getParentCanvasEntity,
51205
51214
  Dc as getParentCanvasEntityFromTransfer,
51206
- KJ as getParentEntryPoint,
51215
+ ZJ as getParentEntryPoint,
51207
51216
  E2 as getParentPassthroughCallableEntity,
51208
51217
  Le as getPassThroughCallableEntityReferenceSchema,
51209
51218
  zd as getPassThroughCallableEntityTypeSchema,
51210
- mq as getPeristedEntities,
51211
- EJ as getPlayableEntityReferenceSchema,
51212
- TJ as getPlayableEntityTypeSchema,
51219
+ fq as getPeristedEntities,
51220
+ TJ as getPlayableEntityReferenceSchema,
51221
+ mJ as getPlayableEntityTypeSchema,
51213
51222
  Mq as getProject,
51214
51223
  Oc as getPrototypeByType,
51215
51224
  D as getReferenceEntityId,
@@ -51220,13 +51229,13 @@ export {
51220
51229
  ur as getRelatedCanvasElementsOnTheRight,
51221
51230
  TT as getRootEntryPointScopeOwner,
51222
51231
  Pt as getScopeOwner,
51223
- gJ as getTerminationReferenceSchema,
51224
- RJ as getTerminationTypeSchema,
51225
- sq as getUsedArgFromDeclaration,
51226
- oq as getUsedReturnFromDeclaration,
51232
+ RJ as getTerminationReferenceSchema,
51233
+ vJ as getTerminationTypeSchema,
51234
+ iq as getUsedArgFromDeclaration,
51235
+ sq as getUsedReturnFromDeclaration,
51227
51236
  j6 as getValueReadingEntityReferenceSchema,
51228
51237
  Kn as getValueReadingEntityTypeSchema,
51229
- sJ as getValueWritingEntityReferenceSchema,
51238
+ iJ as getValueWritingEntityReferenceSchema,
51230
51239
  oo as getValueWritingEntityTypeSchema,
51231
51240
  R2 as getVariableFromInputMapping,
51232
51241
  D2 as getVariableFromReturnVariablePointer,
@@ -51239,7 +51248,7 @@ export {
51239
51248
  I2 as getVariablesFromReturnDeclarations,
51240
51249
  qm as getVariablesInSameOrHigherScope,
51241
51250
  oT as getWrites,
51242
- eq as groupCallsBasedOnParallelizableExecution,
51251
+ QJ as groupCallsBasedOnParallelizableExecution,
51243
51252
  h2 as handleAfterEntityImplementationSideEffects,
51244
51253
  y2 as handleBeforeEntityImplementationSideEffects,
51245
51254
  ol as httpRequestBodyArgument,
@@ -51294,7 +51303,7 @@ export {
51294
51303
  h5 as inferVariableDeclarationDataType,
51295
51304
  y5 as inferVariableInstanceDataType,
51296
51305
  vT as initBaseProjectEntity,
51297
- q7 as initProject,
51306
+ J7 as initProject,
51298
51307
  vg as iterateOverListActionDescriptorListArgumentDeclaration,
51299
51308
  Eg as iterateOverListActionDescriptorListArgumentDeclarationDataType,
51300
51309
  Tg as iterateOverListActionDescriptorListArgumentDeclarationDataTypeParentRef,
@@ -51430,9 +51439,9 @@ export {
51430
51439
  KR as manualFlowLoopBodyActionDescriptorAnyDynamicArgumentParentRef,
51431
51440
  eg as manualFlowLoopBodyActionDescriptorAnyDynamicReturn,
51432
51441
  QR as manualFlowLoopBodyActionDescriptorAnyDynamicReturnParentRef,
51433
- fq as mapActionDescriptorToTypeItRepresents,
51434
- iJ as mergeEntityErrorsList,
51435
- pq as mergeListOfEntities,
51442
+ hq as mapActionDescriptorToTypeItRepresents,
51443
+ aJ as mergeEntityErrorsList,
51444
+ uq as mergeListOfEntities,
51436
51445
  mR as methodDefaultValue,
51437
51446
  w8 as mockClientProject,
51438
51447
  fi as moreThanOrEqualCondition,
@@ -51503,7 +51512,7 @@ export {
51503
51512
  ot as persistedBuiltInBaseEntity,
51504
51513
  yi as persistedBuiltInBaseEntityDatabaseProperty,
51505
51514
  xD as persistedBuiltInBaseEntityDatabasePropertyDataType,
51506
- eJ as persistedBuiltInBaseEntityDatabasePropertyDataTypeRef,
51515
+ Q7 as persistedBuiltInBaseEntityDatabasePropertyDataTypeRef,
51507
51516
  LD as persistedBuiltInBaseEntityDatabasePropertyParentRef,
51508
51517
  VD as persistedBuiltInBaseEntityDatabasePropertyRef,
51509
51518
  hi as persistedBuiltInBaseEntityPrimaryKeyProperty,
@@ -51541,30 +51550,30 @@ export {
51541
51550
  SD as relationalDatabaseBuiltInBaseEntityMinSizePropertyRef,
51542
51551
  Tl as relationalDatabaseBuiltInBaseEntityPasswordProperty,
51543
51552
  ID as relationalDatabaseBuiltInBaseEntityPasswordPropertyDataType,
51544
- Q7 as relationalDatabaseBuiltInBaseEntityPasswordPropertyDataTypeRef,
51553
+ X7 as relationalDatabaseBuiltInBaseEntityPasswordPropertyDataTypeRef,
51545
51554
  gD as relationalDatabaseBuiltInBaseEntityPasswordPropertyRef,
51546
51555
  pi as relationalDatabaseBuiltInBaseEntityRef,
51547
51556
  ml as relationalDatabaseBuiltInBaseEntityUsernameProperty,
51548
51557
  RD as relationalDatabaseBuiltInBaseEntityUsernamePropertyDataType,
51549
- X7 as relationalDatabaseBuiltInBaseEntityUsernamePropertyDataTypeRef,
51558
+ K7 as relationalDatabaseBuiltInBaseEntityUsernamePropertyDataTypeRef,
51550
51559
  vD as relationalDatabaseBuiltInBaseEntityUsernamePropertyRef,
51551
51560
  g5 as resolveActionDescriptorName,
51552
51561
  E5 as resolveBaseEntityName,
51553
51562
  b5 as resolveBuiltInBaseEntityDataTypeLabel,
51554
51563
  Ye as resolveClonedEntityProject,
51555
51564
  Po as resolveConditionOperatorLabel,
51556
- MJ as resolveCustomEntityDataTypeLabel,
51565
+ BJ as resolveCustomEntityDataTypeLabel,
51557
51566
  bc as resolveDataType,
51558
51567
  aT as resolveDataTypeEntityOrNestedChildrenFromLiteralValue,
51559
51568
  ps as resolveDataTypeLabel,
51560
- BJ as resolveEntityDataTypeLabel,
51569
+ wJ as resolveEntityDataTypeLabel,
51561
51570
  C as resolveEntityName,
51562
- tq as resolveFirstCallsSecond,
51563
- nq as resolveFirstWritesSecond,
51564
- Eq as resolvePrimaryKeyProperty,
51571
+ eq as resolveFirstCallsSecond,
51572
+ tq as resolveFirstWritesSecond,
51573
+ Tq as resolvePrimaryKeyProperty,
51565
51574
  R5 as resolvePrimitiveEntityName,
51566
51575
  v5 as resolveSearchName,
51567
- AJ as resolveVariableScope,
51576
+ OJ as resolveVariableScope,
51568
51577
  Mn as sequentialExecutionOperation,
51569
51578
  _v as sequentialExecutionOperationError,
51570
51579
  Nv as sequentialExecutionOperationErrorParentRef,
@@ -51579,10 +51588,10 @@ export {
51579
51588
  Pv as sequentialExecutionOperationListOfFunctionsBlueprint,
51580
51589
  Sv as sequentialExecutionOperationListOfFunctionsBlueprintDynamicInput,
51581
51590
  Dv as sequentialExecutionOperationListOfFunctionsBlueprintDynamicOutput,
51582
- tJ as softDeletePersistedEntityMethod,
51591
+ eJ as softDeletePersistedEntityMethod,
51583
51592
  YD as softDeletePersistedEntityMethodParentRef,
51584
51593
  v2 as sortCallsBasedOnExecutionDependencies,
51585
- QJ as sortChildrenEntitiesBasedOnExecutionDependencies,
51594
+ XJ as sortChildrenEntitiesBasedOnExecutionDependencies,
51586
51595
  Tu as splitListOperation,
51587
51596
  wb as splitListOperationError,
51588
51597
  Cb as splitListOperationErrorParentRef,
@@ -51613,7 +51622,7 @@ export {
51613
51622
  VE as splitStringOperationIndexArgumentRef,
51614
51623
  xE as splitStringOperationIndexDataType,
51615
51624
  FE as splitStringOperationSecondPartResultStringDataType,
51616
- K7 as splitStringOperationSecondPartResultStringReturn,
51625
+ Z7 as splitStringOperationSecondPartResultStringReturn,
51617
51626
  qE as splitStringOperationSecondPartResultStringReturnParentRef,
51618
51627
  $E as splitStringOperationSecondPartResultStringReturnRef,
51619
51628
  jE as splitStringOperationStringArgument,
@@ -51624,21 +51633,21 @@ export {
51624
51633
  Bf as stringValueAutogenerationSchema,
51625
51634
  Qc as suggestNewIdForEntity,
51626
51635
  _q as test_primitive_entities_export,
51627
- CJ as toCamelCase,
51636
+ AJ as toCamelCase,
51628
51637
  Ft as toEntityState,
51629
51638
  T5 as toKebabCase,
51630
51639
  Yo as toLowerCaseKebabCase,
51631
- wJ as toPascalCase,
51640
+ CJ as toPascalCase,
51632
51641
  it as untypedDataPrototype,
51633
51642
  Me as updateErrorsList,
51634
- yq as updateValueReader,
51643
+ pq as updateValueReader,
51635
51644
  cR as urlDefaultValue,
51636
51645
  Wn as uuidPrototype,
51637
51646
  zm as validateArgumentDeclarationName,
51638
- qJ as validateCalledByErrorIdInAction,
51639
- JJ as validateCalledByIdInAction,
51647
+ JJ as validateCalledByErrorIdInAction,
51648
+ kJ as validateCalledByIdInAction,
51640
51649
  o2 as validateCallers,
51641
- HJ as validateConditionEntityDeclaration,
51650
+ YJ as validateConditionEntityDeclaration,
51642
51651
  vc as validateCustomEntityName,
51643
51652
  da as validateDataOperation,
51644
51653
  Qv as validateDataOperationDataToValidateArgument,
@@ -51657,16 +51666,16 @@ export {
51657
51666
  i2 as validateErrorCaller,
51658
51667
  d2 as validateFunctionCallDeclaration,
51659
51668
  Wm as validateFunctionDeclarationName,
51660
- FJ as validateGeneratedEntityParentIsNotBuiltInEntity,
51661
- GJ as validateGeneration,
51669
+ $J as validateGeneratedEntityParentIsNotBuiltInEntity,
51670
+ LJ as validateGeneration,
51662
51671
  Ue as validateGenerationTarget,
51663
- $J as validateGenerationUpdate,
51664
- zJ as validateLoopEntityDeclaration,
51665
- NJ as validateName,
51672
+ GJ as validateGenerationUpdate,
51673
+ HJ as validateLoopEntityDeclaration,
51674
+ MJ as validateName,
51666
51675
  c2 as validateOperationEntityDeclaration,
51667
51676
  Hm as validatePropertyName,
51668
51677
  tr as validateReachability,
51669
- WJ as validateReadsValueInActionPayload,
51678
+ qJ as validateReadsValueInActionPayload,
51670
51679
  Rc as validateReferenceObject,
51671
51680
  eu as validateReferenceToOne,
51672
51681
  tt as validateReferences,