@elyx-code/project-logic-tree 0.0.6271 → 0.0.6272

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
@@ -1,7 +1,7 @@
1
1
  var Fv = Object.defineProperty;
2
2
  var gv = (r, a, e) => a in r ? Fv(r, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[a] = e;
3
3
  var h = (r, a, e) => (gv(r, typeof a != "symbol" ? a + "" : a, e), e);
4
- var n = /* @__PURE__ */ ((r) => (r.DefinitionEntity = "definition-entity", r.BuiltInBaseEntity = "built-in-base-entity", r.Project = "project", r.InstalledProject = "installed-project", r.GlobalEvent = "global-event", r.DataType = "data-type", r.FunctionCall = "function-call", r.FunctionDeclaration = "function-declaration", r.ActionDescriptor = "action-descriptor", r.ValueDescriptor = "value-descriptor", r.ArgumentDeclaration = "argument-declaration", r.InputMap = "input-map", r.ReturnStatement = "return-statement", r.BreakStatement = "break-statement", r.ContinueStatement = "continue-statement", r.ReturnDeclaration = "return-declaration", r.OutputMap = "output-map", r.PrimitiveEntity = "primitive-entity", r.LiteralValue = "literal-value", r.Property = "property", r.Operation = "operation", r.Condition = "condition", r.VariableDeclaration = "variable-declaration", r.VariableInstance = "variable-instance", r.Search = "search", r.Loop = "loop", r.InternalCall = "internal-call", r.GenericReference = "generic-reference", r))(n || {}), z = /* @__PURE__ */ ((r) => (r.HTTP_ENDPOINT = "BUILT_IN_HTTP_ENDPOINT_ENTITY", r.RELATIONAL_DATABASE = "BUILT_IN_RELATIONAL_DATABASE_ENTITY", r.PERSISTED_ENTITY = "BUILT_IN_PERSISTED_ENTITY_ENTITY", r.CRON_JOB = "BUILT_IN_CRON_JOB_ENTITY", r.EXECUTION = "BUILT_IN_EXECUTION_ENTITY", r.KEY_VALUE_PARAM = "BUILT_IN_KEY_VALUE_PARAM_ENTITY", r))(z || {}), Tt = /* @__PURE__ */ ((r) => (r.CurrentDateAndTime = "current-date-and-time", r.Unique = "unique", r.Random = "random", r))(Tt || {}), M = /* @__PURE__ */ ((r) => (r.EntityTemplate = "entity-template", r.ActionDescriptor = "action-descriptor", r.String = "string", r.Number = "number", r.Boolean = "boolean", r.Null = "null", r.Enum = "enum", r.KeyValue = "key-value", r.Date = "date", r.UUID = "uuid", r.File = "file", r.Untyped = "untyped", r))(M || {}), it = /* @__PURE__ */ ((r) => (r.Addition = "addition", r.Subtraction = "subtraction", r.Multiplication = "multiplication", r.Division = "division", r.Remainder = "remainder", r.Exponentiation = "exponentiation", r))(it || {}), Ze = /* @__PURE__ */ ((r) => (r.Join = "string-join", r.Split = "string-split", r.DeleteLast = "string-delete-last", r.DeleteFirst = "string-delete-first", r.DeleteIndex = "string-delete-index", r.AddIndex = "string-add-index", r.ReplaceFirst = "string-replace-first", r.ReplaceLast = "string-replace-last", r.ReplaceIndex = "string-replace-index", r.ReplaceSingleMatch = "string-replace-single-match", r.ReplaceAllMatches = "string-replace-all-matches", r.GetIndex = "string-get-index", r.GetFirst = "string-get-first", r.GetLast = "string-get-last", r.Append = "string-append", r.Prepend = "string-prepend", r))(Ze || {}), ye = /* @__PURE__ */ ((r) => (r.Join = "list-join", r.Split = "list-split", r.DeleteLast = "list-delete-last", r.DeleteFirst = "list-delete-first", r.DeleteIndex = "list-delete-index", r.AddIndex = "list-add-index", r.ReplaceFirst = "list-replace-first", r.ReplaceLast = "list-replace-last", r.ReplaceIndex = "list-replace-index", r.ReplaceSingleMatch = "list-replace-single-match", r.ReplaceAllMatches = "list-replace-all-matches", r.GetIndex = "list-get-index", r.GetFirst = "list-get-first", r.GetLast = "list-get-last", r.Append = "list-append", r.Prepend = "list-prepend", r))(ye || {}), et = /* @__PURE__ */ ((r) => (r.Parallel = "parallel", r.Sequential = "sequential", r.Wait = "wait", r))(et || {}), Qe = /* @__PURE__ */ ((r) => (r.CreateNewInstance = "create-new-instance", r.Validate = "validate", r))(Qe || {}), Jt = /* @__PURE__ */ ((r) => (r.HttpRequest = "base-http-request", r))(Jt || {}), ct = /* @__PURE__ */ ((r) => (r.Equal = "equal", r.NotEqual = "not-equal", r.And = "and", r.Or = "or", r.LessThan = "less-than", r.MoreThan = "more-than", r.LessThanOrEqual = "less-than-or-equal", r.MoreThanOrEqual = "more-than-or-equal", r))(ct || {}), Bi = /* @__PURE__ */ ((r) => (r.Empty = "empty", r.NotEmpty = "not-empty", r))(Bi || {}), ee = /* @__PURE__ */ ((r) => (r.ManualFlow = "manual-flow-loop", r.Counted = "counted-loop", r.List = "list-loop", r.ObjectKeys = "object-keys-loop", r.ObjectValues = "object-values-loop", r.String = "string-loop", r))(ee || {}), N = /* @__PURE__ */ ((r) => (r.FixedArguments = "fixed-arguments", r.FixedReturns = "fixed-returns", r.ReturnedError = "returned-error", r.OngoingProcessExecution = "ongoing-process-execution", r.DynamicArgument = "dynamic-argument-types", r.DynamicReturn = "dynamic-return-types", r))(N || {}), Pt = /* @__PURE__ */ ((r) => (r.OrDataTypeGroup = "or-data-type-group", r.AndDataTypeGroup = "and-data-type-group", r))(Pt || {}), Tr = /* @__PURE__ */ ((r) => (r.PROJECT_PUBLICATION_COMPLETED = "GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED", r))(Tr || {}), Ai = /* @__PURE__ */ ((r) => (r.DeletePersistedEntity = "base-delete-persisted-entity", r.SoftDeletePersistedEntity = "base-soft-delete-persisted-entity", r.AbortExecution = "base-abort-execution", r))(Ai || {}), Os = /* @__PURE__ */ ((r) => (r.Error = "error", r.Task = "task", r.Return = "return", r))(Os || {});
4
+ var n = /* @__PURE__ */ ((r) => (r.DefinitionEntity = "definition-entity", r.BuiltInBaseEntity = "built-in-base-entity", r.Project = "project", r.InstalledProject = "installed-project", r.GlobalEvent = "global-event", r.DataType = "data-type", r.FunctionCall = "function-call", r.FunctionDeclaration = "function-declaration", r.ActionDescriptor = "action-descriptor", r.ValueDescriptor = "value-descriptor", r.ArgumentDeclaration = "argument-declaration", r.InputMap = "input-map", r.ReturnStatement = "return-statement", r.BreakStatement = "break-statement", r.ContinueStatement = "continue-statement", r.ReturnDeclaration = "return-declaration", r.OutputMap = "output-map", r.PrimitiveEntity = "primitive-entity", r.LiteralValue = "literal-value", r.Property = "property", r.Operation = "operation", r.Condition = "condition", r.VariableDeclaration = "variable-declaration", r.VariableInstance = "variable-instance", r.Search = "search", r.Loop = "loop", r.InternalCall = "internal-call", r.GenericReference = "generic-reference", r))(n || {}), z = /* @__PURE__ */ ((r) => (r.HTTP_ENDPOINT = "BUILT_IN_HTTP_ENDPOINT_ENTITY", r.RELATIONAL_DATABASE = "BUILT_IN_RELATIONAL_DATABASE_ENTITY", r.PERSISTED_ENTITY = "BUILT_IN_PERSISTED_ENTITY_ENTITY", r.CRON_JOB = "BUILT_IN_CRON_JOB_ENTITY", r.EXECUTION = "BUILT_IN_EXECUTION_ENTITY", r.KEY_VALUE_PARAM = "BUILT_IN_KEY_VALUE_PARAM_ENTITY", r))(z || {}), Tt = /* @__PURE__ */ ((r) => (r.CurrentDateAndTime = "current-date-and-time", r.Unique = "unique", r.Random = "random", r))(Tt || {}), M = /* @__PURE__ */ ((r) => (r.EntityTemplate = "entity-template", r.ActionDescriptor = "action-descriptor", r.String = "string", r.Number = "number", r.Boolean = "boolean", r.Null = "null", r.Enum = "enum", r.KeyValue = "key-value", r.Date = "date", r.UUID = "uuid", r.File = "file", r.Untyped = "untyped", r))(M || {}), it = /* @__PURE__ */ ((r) => (r.Addition = "addition", r.Subtraction = "subtraction", r.Multiplication = "multiplication", r.Division = "division", r.Remainder = "remainder", r.Exponentiation = "exponentiation", r))(it || {}), Ze = /* @__PURE__ */ ((r) => (r.Join = "string-join", r.Split = "string-split", r.DeleteLast = "string-delete-last", r.DeleteFirst = "string-delete-first", r.DeleteIndex = "string-delete-index", r.AddIndex = "string-add-index", r.ReplaceFirst = "string-replace-first", r.ReplaceLast = "string-replace-last", r.ReplaceIndex = "string-replace-index", r.ReplaceSingleMatch = "string-replace-single-match", r.ReplaceAllMatches = "string-replace-all-matches", r.GetIndex = "string-get-index", r.GetFirst = "string-get-first", r.GetLast = "string-get-last", r.Append = "string-append", r.Prepend = "string-prepend", r))(Ze || {}), ye = /* @__PURE__ */ ((r) => (r.Join = "list-join", r.Split = "list-split", r.DeleteLast = "list-delete-last", r.DeleteFirst = "list-delete-first", r.DeleteIndex = "list-delete-index", r.AddIndex = "list-add-index", r.ReplaceFirst = "list-replace-first", r.ReplaceLast = "list-replace-last", r.ReplaceIndex = "list-replace-index", r.ReplaceSingleMatch = "list-replace-single-match", r.ReplaceAllMatches = "list-replace-all-matches", r.GetIndex = "list-get-index", r.GetFirst = "list-get-first", r.GetLast = "list-get-last", r.Append = "list-append", r.Prepend = "list-prepend", r))(ye || {}), et = /* @__PURE__ */ ((r) => (r.Parallel = "parallel", r.Sequential = "sequential", r.Wait = "wait", r))(et || {}), Qe = /* @__PURE__ */ ((r) => (r.CreateNewInstance = "create-new-instance", r.Validate = "validate", r))(Qe || {}), Jt = /* @__PURE__ */ ((r) => (r.HttpRequest = "base-http-request", r))(Jt || {}), ct = /* @__PURE__ */ ((r) => (r.Equal = "equal", r.NotEqual = "not-equal", r.And = "and", r.Or = "or", r.LessThan = "less-than", r.MoreThan = "more-than", r.LessThanOrEqual = "less-than-or-equal", r.MoreThanOrEqual = "more-than-or-equal", r))(ct || {}), Bi = /* @__PURE__ */ ((r) => (r.Empty = "empty", r.NotEmpty = "not-empty", r))(Bi || {}), ee = /* @__PURE__ */ ((r) => (r.ManualFlow = "manual-flow-loop", r.Counted = "counted-loop", r.List = "list-loop", r.ObjectKeys = "object-keys-loop", r.ObjectValues = "object-values-loop", r.String = "string-loop", r))(ee || {}), N = /* @__PURE__ */ ((r) => (r.FixedArguments = "fixed-arguments", r.FixedReturns = "fixed-returns", r.ReturnedError = "returned-error", r.OngoingProcessExecution = "ongoing-process-execution", r.DynamicArgument = "dynamic-argument-types", r.DynamicReturn = "dynamic-return-types", r))(N || {}), Vt = /* @__PURE__ */ ((r) => (r.OrDataTypeGroup = "or-data-type-group", r.AndDataTypeGroup = "and-data-type-group", r))(Vt || {}), Tr = /* @__PURE__ */ ((r) => (r.PROJECT_PUBLICATION_COMPLETED = "GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED", r))(Tr || {}), Ai = /* @__PURE__ */ ((r) => (r.DeletePersistedEntity = "base-delete-persisted-entity", r.SoftDeletePersistedEntity = "base-soft-delete-persisted-entity", r.AbortExecution = "base-abort-execution", r))(Ai || {}), Os = /* @__PURE__ */ ((r) => (r.Error = "error", r.Task = "task", r.Return = "return", r))(Os || {});
5
5
  const Fr = [
6
6
  n.VariableDeclaration,
7
7
  n.VariableInstance,
@@ -6636,7 +6636,7 @@ const sA = {
6636
6636
  dataType: e1,
6637
6637
  description: "If true, this database will automatically scale up or down in memory size, based on the usage.",
6638
6638
  parent: t1
6639
- }, Rt = {
6639
+ }, Dt = {
6640
6640
  id: z.RELATIONAL_DATABASE,
6641
6641
  version: "1",
6642
6642
  createdAt: "2024-01-01T00:00:00.000Z",
@@ -6717,7 +6717,7 @@ const sA = {
6717
6717
  andChildrenGroup: null,
6718
6718
  orChildrenGroup: null,
6719
6719
  isList: !1,
6720
- entity: Rt,
6720
+ entity: Dt,
6721
6721
  asType: !0,
6722
6722
  parent: r1
6723
6723
  }, s1 = {
@@ -6774,7 +6774,7 @@ const sA = {
6774
6774
  isList: !1,
6775
6775
  entity: Ee,
6776
6776
  asType: !1,
6777
- parentRelationType: Pt.OrDataTypeGroup,
6777
+ parentRelationType: Vt.OrDataTypeGroup,
6778
6778
  parent: a1
6779
6779
  }, l1 = {
6780
6780
  id: "persisted-built-in-base-entity-primary-key-property-string-data-type-option-parent-ref-id",
@@ -6802,7 +6802,7 @@ const sA = {
6802
6802
  isList: !1,
6803
6803
  entity: se,
6804
6804
  asType: !1,
6805
- parentRelationType: Pt.OrDataTypeGroup,
6805
+ parentRelationType: Vt.OrDataTypeGroup,
6806
6806
  parent: l1
6807
6807
  }, u1 = {
6808
6808
  id: "persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-parent-ref-id",
@@ -6830,7 +6830,7 @@ const sA = {
6830
6830
  isList: !1,
6831
6831
  entity: Vr,
6832
6832
  asType: !1,
6833
- parentRelationType: Pt.OrDataTypeGroup,
6833
+ parentRelationType: Vt.OrDataTypeGroup,
6834
6834
  parent: u1
6835
6835
  }, c1 = {
6836
6836
  id: "persisted-built-in-base-entity-primary-key-property-ref-id",
@@ -7086,7 +7086,7 @@ const sA = {
7086
7086
  abstractMethods: []
7087
7087
  }, R1 = [
7088
7088
  ui,
7089
- Rt,
7089
+ Dt,
7090
7090
  jt,
7091
7091
  pd,
7092
7092
  cd
@@ -11258,7 +11258,7 @@ const OP = {
11258
11258
  abstractMethods: [],
11259
11259
  extends: [],
11260
11260
  implements: [
11261
- Rt
11261
+ Dt
11262
11262
  ],
11263
11263
  x: 0,
11264
11264
  y: 0,
@@ -11294,7 +11294,7 @@ const OP = {
11294
11294
  andChildrenGroup: null,
11295
11295
  orChildrenGroup: null,
11296
11296
  isList: !1,
11297
- entity: Rt,
11297
+ entity: Dt,
11298
11298
  asType: !1,
11299
11299
  parent: NP
11300
11300
  }, jP = {
@@ -12153,7 +12153,7 @@ const vV = {
12153
12153
  methods: [],
12154
12154
  abstractMethods: [],
12155
12155
  extends: [],
12156
- implements: [Rt],
12156
+ implements: [Dt],
12157
12157
  x: 0,
12158
12158
  y: 0,
12159
12159
  parent: NV
@@ -12188,7 +12188,7 @@ const vV = {
12188
12188
  andChildrenGroup: null,
12189
12189
  orChildrenGroup: null,
12190
12190
  isList: !1,
12191
- entity: Rt,
12191
+ entity: Dt,
12192
12192
  asType: !1,
12193
12193
  parent: UV
12194
12194
  }, LV = {
@@ -16635,7 +16635,7 @@ const px = {
16635
16635
  andChildrenGroup: null,
16636
16636
  orChildrenGroup: null,
16637
16637
  isList: !1,
16638
- entity: Rt,
16638
+ entity: Dt,
16639
16639
  asType: !1,
16640
16640
  parent: Ox
16641
16641
  }, Vx = {
@@ -16793,7 +16793,7 @@ const px = {
16793
16793
  andChildrenGroup: null,
16794
16794
  orChildrenGroup: null,
16795
16795
  isList: !1,
16796
- entity: Rt,
16796
+ entity: Dt,
16797
16797
  asType: !1,
16798
16798
  parent: jx
16799
16799
  }, Gx = {
@@ -25121,14 +25121,14 @@ var Tm = { exports: {} };
25121
25121
  return Ie ? hr : hr.endOf(u);
25122
25122
  }, At = function($r, ti) {
25123
25123
  return ae.w(Q.toDate()[$r].apply(Q.toDate("s"), (Ie ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ti)), Q);
25124
- }, Ot = this.$W, Lt = this.$M, Ei = this.$D, xn = "set" + (this.$u ? "UTC" : "");
25124
+ }, wt = this.$W, Lt = this.$M, Ei = this.$D, xn = "set" + (this.$u ? "UTC" : "");
25125
25125
  switch (Ae) {
25126
25126
  case E:
25127
25127
  return Ie ? ot(1, 0) : ot(31, 11);
25128
25128
  case c:
25129
25129
  return Ie ? ot(1, Lt) : ot(0, Lt + 1);
25130
25130
  case f:
25131
- var Lr = this.$locale().weekStart || 0, Is = (Ot < Lr ? Ot + 7 : Ot) - Lr;
25131
+ var Lr = this.$locale().weekStart || 0, Is = (wt < Lr ? wt + 7 : wt) - Lr;
25132
25132
  return ot(Ie ? Ei - Is : Ei + (6 - Is), Lt);
25133
25133
  case u:
25134
25134
  case R:
@@ -25147,8 +25147,8 @@ var Tm = { exports: {} };
25147
25147
  }, te.$set = function(H, de) {
25148
25148
  var Q, Ie = ae.p(H), Ae = "set" + (this.$u ? "UTC" : ""), ot = (Q = {}, Q[u] = Ae + "Date", Q[R] = Ae + "Date", Q[c] = Ae + "Month", Q[E] = Ae + "FullYear", Q[d] = Ae + "Hours", Q[o] = Ae + "Minutes", Q[l] = Ae + "Seconds", Q[s] = Ae + "Milliseconds", Q)[Ie], At = Ie === u ? this.$D + (de - this.$W) : de;
25149
25149
  if (Ie === c || Ie === E) {
25150
- var Ot = this.clone().set(R, 1);
25151
- Ot.$d[ot](At), Ot.init(), this.$d = Ot.set(R, Math.min(this.$D, Ot.daysInMonth())).$d;
25150
+ var wt = this.clone().set(R, 1);
25151
+ wt.$d[ot](At), wt.init(), this.$d = wt.set(R, Math.min(this.$D, wt.daysInMonth())).$d;
25152
25152
  } else
25153
25153
  ot && this.$d[ot](At);
25154
25154
  return this.init(), this;
@@ -25171,15 +25171,15 @@ var Tm = { exports: {} };
25171
25171
  return ot(1);
25172
25172
  if (Ae === f)
25173
25173
  return ot(7);
25174
- var At = (Q = {}, Q[o] = t, Q[d] = i, Q[l] = e, Q)[Ae] || 1, Ot = this.$d.getTime() + H * At;
25175
- return ae.w(Ot, this);
25174
+ var At = (Q = {}, Q[o] = t, Q[d] = i, Q[l] = e, Q)[Ae] || 1, wt = this.$d.getTime() + H * At;
25175
+ return ae.w(wt, this);
25176
25176
  }, te.subtract = function(H, de) {
25177
25177
  return this.add(-1 * H, de);
25178
25178
  }, te.format = function(H) {
25179
25179
  var de = this, Q = this.$locale();
25180
25180
  if (!this.isValid())
25181
25181
  return Q.invalidDate || O;
25182
- var Ie = H || "YYYY-MM-DDTHH:mm:ssZ", Ae = ae.z(this), ot = this.$H, At = this.$m, Ot = this.$M, Lt = Q.weekdays, Ei = Q.months, xn = Q.meridiem, Lr = function(ti, hr, As, wa) {
25182
+ var Ie = H || "YYYY-MM-DDTHH:mm:ssZ", Ae = ae.z(this), ot = this.$H, At = this.$m, wt = this.$M, Lt = Q.weekdays, Ei = Q.months, xn = Q.meridiem, Lr = function(ti, hr, As, wa) {
25183
25183
  return ti && (ti[hr] || ti(de, Ie)) || As[hr].slice(0, wa);
25184
25184
  }, Is = function(ti) {
25185
25185
  return ae.s(ot % 12 || 12, ti, "0");
@@ -25195,13 +25195,13 @@ var Tm = { exports: {} };
25195
25195
  case "YYYY":
25196
25196
  return ae.s(de.$y, 4, "0");
25197
25197
  case "M":
25198
- return Ot + 1;
25198
+ return wt + 1;
25199
25199
  case "MM":
25200
- return ae.s(Ot + 1, 2, "0");
25200
+ return ae.s(wt + 1, 2, "0");
25201
25201
  case "MMM":
25202
- return Lr(Q.monthsShort, Ot, Ei, 3);
25202
+ return Lr(Q.monthsShort, wt, Ei, 3);
25203
25203
  case "MMMM":
25204
- return Lr(Ei, Ot);
25204
+ return Lr(Ei, wt);
25205
25205
  case "D":
25206
25206
  return de.$D;
25207
25207
  case "DD":
@@ -25245,7 +25245,7 @@ var Tm = { exports: {} };
25245
25245
  }, te.utcOffset = function() {
25246
25246
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
25247
25247
  }, te.diff = function(H, de, Q) {
25248
- var Ie, Ae = this, ot = ae.p(de), At = W(H), Ot = (At.utcOffset() - this.utcOffset()) * t, Lt = this - At, Ei = function() {
25248
+ var Ie, Ae = this, ot = ae.p(de), At = W(H), wt = (At.utcOffset() - this.utcOffset()) * t, Lt = this - At, Ei = function() {
25249
25249
  return ae.m(Ae, At);
25250
25250
  };
25251
25251
  switch (ot) {
@@ -25259,10 +25259,10 @@ var Tm = { exports: {} };
25259
25259
  Ie = Ei() / 3;
25260
25260
  break;
25261
25261
  case f:
25262
- Ie = (Lt - Ot) / 6048e5;
25262
+ Ie = (Lt - wt) / 6048e5;
25263
25263
  break;
25264
25264
  case u:
25265
- Ie = (Lt - Ot) / 864e5;
25265
+ Ie = (Lt - wt) / 864e5;
25266
25266
  break;
25267
25267
  case d:
25268
25268
  Ie = Lt / i;
@@ -25838,7 +25838,7 @@ function S8() {
25838
25838
  return m.object({
25839
25839
  calledBySuccess: m.array(st()),
25840
25840
  calledByError: m.array(st()),
25841
- calledByEntry: m.array(Dt()),
25841
+ calledByEntry: m.array(Ot()),
25842
25842
  declaration: Gi(),
25843
25843
  inputs: m.array(Ni()),
25844
25844
  outputs: m.array(Kt()),
@@ -25911,7 +25911,7 @@ function t6() {
25911
25911
  return m.object({
25912
25912
  calledBySuccess: m.array(st()),
25913
25913
  calledByError: m.array(st()),
25914
- calledByEntry: m.array(Dt()),
25914
+ calledByEntry: m.array(Ot()),
25915
25915
  outputs: m.array(rr()),
25916
25916
  throws: m.optional(rr()),
25917
25917
  parent: Ki()
@@ -25976,7 +25976,7 @@ function s6() {
25976
25976
  return m.object({
25977
25977
  calledBySuccess: m.array(st()),
25978
25978
  calledByError: m.array(st()),
25979
- calledByEntry: m.array(Dt()),
25979
+ calledByEntry: m.array(Ot()),
25980
25980
  outputs: m.array(rr()),
25981
25981
  throws: m.optional(rr()),
25982
25982
  parent: Nr()
@@ -26105,7 +26105,7 @@ function f6() {
26105
26105
  return m.object({
26106
26106
  calledBySuccess: m.array(st()),
26107
26107
  calledByError: m.array(st()),
26108
- calledByEntry: m.array(Dt()),
26108
+ calledByEntry: m.array(Ot()),
26109
26109
  outputs: m.array(rr()),
26110
26110
  throws: m.optional(rr()),
26111
26111
  parent: Ki()
@@ -26233,7 +26233,7 @@ function A6() {
26233
26233
  errorCalls: m.array(Bt()),
26234
26234
  calledBySuccess: m.array(st()),
26235
26235
  calledByError: m.array(st()),
26236
- calledByEntry: m.array(Dt()),
26236
+ calledByEntry: m.array(Ot()),
26237
26237
  writesValues: m.array(Mr()),
26238
26238
  declaration: vi(),
26239
26239
  inputs: m.array(Ni()),
@@ -26319,7 +26319,7 @@ function w6() {
26319
26319
  errorCalls: m.array(Bt()),
26320
26320
  calledBySuccess: m.array(st()),
26321
26321
  calledByError: m.array(st()),
26322
- calledByEntry: m.array(Dt()),
26322
+ calledByEntry: m.array(Ot()),
26323
26323
  leftValue: Ni(),
26324
26324
  rightValue: Ni().nullable(),
26325
26325
  operator: R6(),
@@ -26395,7 +26395,7 @@ function _6() {
26395
26395
  errorCalls: m.array(Bt()),
26396
26396
  calledBySuccess: m.array(st()),
26397
26397
  calledByError: m.array(st()),
26398
- calledByEntry: m.array(Dt()),
26398
+ calledByEntry: m.array(Ot()),
26399
26399
  inputsDeclarations: m.array(_n()),
26400
26400
  inputs: m.array(Ni()),
26401
26401
  outputsDeclarations: m.array(gs()),
@@ -26469,7 +26469,7 @@ function x6() {
26469
26469
  errorCalls: m.array(Bt()),
26470
26470
  calledBySuccess: m.array(st()),
26471
26471
  calledByError: m.array(st()),
26472
- calledByEntry: m.array(Dt()),
26472
+ calledByEntry: m.array(Ot()),
26473
26473
  writesValues: m.array(Mr()),
26474
26474
  declaration: vi(),
26475
26475
  inputs: m.array(Ni()),
@@ -26614,7 +26614,7 @@ function k6() {
26614
26614
  errorCalls: m.array(Bt()),
26615
26615
  calledBySuccess: m.array(st()),
26616
26616
  calledByError: m.array(st()),
26617
- calledByEntry: m.array(Dt()),
26617
+ calledByEntry: m.array(Ot()),
26618
26618
  writesValues: m.array(Mr()),
26619
26619
  declaration: Gi(),
26620
26620
  inputs: m.array(Ni()),
@@ -26942,7 +26942,7 @@ function p3() {
26942
26942
  internalCalls: m.array(Ia()),
26943
26943
  calledBySuccess: m.array(st()),
26944
26944
  calledByError: m.array(st()),
26945
- calledByEntry: m.array(Dt()),
26945
+ calledByEntry: m.array(Ot()),
26946
26946
  parent: m.union([
26947
26947
  Nr(),
26948
26948
  ai()
@@ -27020,7 +27020,7 @@ function m3() {
27020
27020
  internalCalls: m.array(Ia()),
27021
27021
  calledBySuccess: m.array(st()),
27022
27022
  calledByError: m.array(st()),
27023
- calledByEntry: m.array(Dt()),
27023
+ calledByEntry: m.array(Ot()),
27024
27024
  parent: m.union([
27025
27025
  Nr(),
27026
27026
  ai()
@@ -27287,7 +27287,7 @@ function Cn() {
27287
27287
  $u()
27288
27288
  ]);
27289
27289
  }
27290
- function Dt() {
27290
+ function Ot() {
27291
27291
  return m.union([
27292
27292
  Aa(),
27293
27293
  Gu()
@@ -27302,7 +27302,7 @@ function nW() {
27302
27302
  function sW() {
27303
27303
  return m.union([
27304
27304
  st(),
27305
- Dt()
27305
+ Ot()
27306
27306
  ]);
27307
27307
  }
27308
27308
  function aW() {
@@ -27314,7 +27314,7 @@ function aW() {
27314
27314
  function oW() {
27315
27315
  return m.union([
27316
27316
  ku(),
27317
- Dt()
27317
+ Ot()
27318
27318
  ]);
27319
27319
  }
27320
27320
  function lW() {
@@ -27326,7 +27326,7 @@ function lW() {
27326
27326
  function dW() {
27327
27327
  return m.union([
27328
27328
  Bt(),
27329
- Dt()
27329
+ Ot()
27330
27330
  ]);
27331
27331
  }
27332
27332
  function uW() {
@@ -27338,7 +27338,7 @@ function uW() {
27338
27338
  function pW() {
27339
27339
  return m.union([
27340
27340
  M3(),
27341
- Dt()
27341
+ Ot()
27342
27342
  ]);
27343
27343
  }
27344
27344
  function cW() {
@@ -27346,7 +27346,7 @@ function cW() {
27346
27346
  }
27347
27347
  function Nr() {
27348
27348
  return m.union([
27349
- Dt(),
27349
+ Ot(),
27350
27350
  Ki()
27351
27351
  ]);
27352
27352
  }
@@ -27359,7 +27359,7 @@ function fW() {
27359
27359
  function hW() {
27360
27360
  return m.union([
27361
27361
  st(),
27362
- Dt()
27362
+ Ot()
27363
27363
  ]);
27364
27364
  }
27365
27365
  function yW() {
@@ -27371,7 +27371,7 @@ function yW() {
27371
27371
  function mW() {
27372
27372
  return m.union([
27373
27373
  ku(),
27374
- Dt()
27374
+ Ot()
27375
27375
  ]);
27376
27376
  }
27377
27377
  function vW() {
@@ -27534,7 +27534,7 @@ function U3() {
27534
27534
  dataType: Pn().nullable(),
27535
27535
  writesValues: m.array(Mr()),
27536
27536
  parent: m.union([
27537
- Dt(),
27537
+ Ot(),
27538
27538
  kr(),
27539
27539
  kr(),
27540
27540
  Ea(),
@@ -30190,7 +30190,7 @@ ${un}`, e.push(
30190
30190
  }
30191
30191
  }
30192
30192
  }
30193
- const t = bt(r, {}, a);
30193
+ const t = Rt(r, {}, a);
30194
30194
  return e.push(...t.errors), e;
30195
30195
  }
30196
30196
  class at {
@@ -30214,15 +30214,15 @@ function n7(r) {
30214
30214
  a.id
30215
30215
  );
30216
30216
  (e == null ? void 0 : e.type) === n.DefinitionEntity && (r.project.emit(
30217
- wt.DEFINITION_ENTITY_ADDED,
30217
+ Pt.DEFINITION_ENTITY_ADDED,
30218
30218
  e,
30219
30219
  r
30220
30220
  ), Li(e, z.PERSISTED_ENTITY) ? r.project.emit(
30221
- wt.PERSISTED_DEFINITION_ENTITY_ADDED,
30221
+ Pt.PERSISTED_DEFINITION_ENTITY_ADDED,
30222
30222
  e,
30223
30223
  r
30224
30224
  ) : Li(e, z.RELATIONAL_DATABASE) && r.project.emit(
30225
- wt.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,
30225
+ Pt.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,
30226
30226
  e,
30227
30227
  r
30228
30228
  ));
@@ -30231,15 +30231,15 @@ function n7(r) {
30231
30231
  a.id
30232
30232
  );
30233
30233
  (e == null ? void 0 : e.type) === n.DefinitionEntity && (r.project.emit(
30234
- wt.DEFINITION_ENTITY_UPDATED,
30234
+ Pt.DEFINITION_ENTITY_UPDATED,
30235
30235
  e,
30236
30236
  r
30237
30237
  ), Li(e, z.PERSISTED_ENTITY) ? r.project.emit(
30238
- wt.PERSISTED_DEFINITION_ENTITY_UPDATED,
30238
+ Pt.PERSISTED_DEFINITION_ENTITY_UPDATED,
30239
30239
  e,
30240
30240
  r
30241
30241
  ) : Li(e, z.RELATIONAL_DATABASE) && r.project.emit(
30242
- wt.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED,
30242
+ Pt.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED,
30243
30243
  e,
30244
30244
  r
30245
30245
  ));
@@ -30248,15 +30248,15 @@ function n7(r) {
30248
30248
  a.id
30249
30249
  );
30250
30250
  (e == null ? void 0 : e.type) === n.DefinitionEntity && (r.project.emit(
30251
- wt.DEFINITION_ENTITY_REMOVED,
30251
+ Pt.DEFINITION_ENTITY_REMOVED,
30252
30252
  e,
30253
30253
  r
30254
30254
  ), Li(e, z.PERSISTED_ENTITY) ? r.project.emit(
30255
- wt.PERSISTED_DEFINITION_ENTITY_REMOVED,
30255
+ Pt.PERSISTED_DEFINITION_ENTITY_REMOVED,
30256
30256
  e,
30257
30257
  r
30258
30258
  ) : Li(e, z.RELATIONAL_DATABASE) && r.project.emit(
30259
- wt.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,
30259
+ Pt.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,
30260
30260
  e,
30261
30261
  r
30262
30262
  ));
@@ -31888,7 +31888,7 @@ const Re = class Re extends at {
31888
31888
  let i = JSON.parse(
31889
31889
  JSON.stringify(e)
31890
31890
  );
31891
- const s = [], l = bt(
31891
+ const s = [], l = Rt(
31892
31892
  i,
31893
31893
  {
31894
31894
  parent: {
@@ -33372,7 +33372,7 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
33372
33372
  })
33373
33373
  );
33374
33374
  }
33375
- f === n.DataType && (!i.parentRelationType || !(i.parentRelationType === Pt.AndDataTypeGroup || i.parentRelationType === Pt.OrDataTypeGroup)) && s.push(
33375
+ f === n.DataType && (!i.parentRelationType || !(i.parentRelationType === Vt.AndDataTypeGroup || i.parentRelationType === Vt.OrDataTypeGroup)) && s.push(
33376
33376
  new w({
33377
33377
  id: `${e.id}--${b.InvalidParentRelationType}`,
33378
33378
  code: b.InvalidParentRelationType,
@@ -33662,7 +33662,7 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
33662
33662
  )
33663
33663
  )) {
33664
33664
  const t = [this], i = [], s = [], l = [];
33665
- return this.parent.type === n.DataType ? this.parentRelationType === Pt.AndDataTypeGroup ? this.parent.addToAndGroup(this) : this.parentRelationType === Pt.OrDataTypeGroup && this.parent.addToOrGroup(this) : this.parent.setDataType(this), t.push(this.parent), this.subscribe(), this.subscribeToDependencies(), e == null || e.attemptAutoclose("add-self-to-project", this.id), {
33665
+ return this.parent.type === n.DataType ? this.parentRelationType === Vt.AndDataTypeGroup ? this.parent.addToAndGroup(this) : this.parentRelationType === Vt.OrDataTypeGroup && this.parent.addToOrGroup(this) : this.parent.setDataType(this), t.push(this.parent), this.subscribe(), this.subscribeToDependencies(), e == null || e.attemptAutoclose("add-self-to-project", this.id), {
33666
33666
  updated: p(t),
33667
33667
  added: p(i),
33668
33668
  removed: p(s),
@@ -33839,14 +33839,14 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
33839
33839
  ((d = this.parent) == null ? void 0 : d.type) === n.DataType && this.parent.removeChildGroup(this);
33840
33840
  const u = this.parent;
33841
33841
  if ((u == null ? void 0 : u.type) === n.DataType) {
33842
- if (this.parentRelationType === Pt.AndDataTypeGroup) {
33842
+ if (this.parentRelationType === Vt.AndDataTypeGroup) {
33843
33843
  if (Array.isArray(u.andChildrenGroup)) {
33844
33844
  const f = u.andChildrenGroup.findIndex(
33845
33845
  (c) => c.id === this.id
33846
33846
  );
33847
33847
  f !== -1 && u.andChildrenGroup.splice(f, 1);
33848
33848
  }
33849
- } else if (this.parentRelationType === Pt.OrDataTypeGroup && Array.isArray(u.orChildrenGroup)) {
33849
+ } else if (this.parentRelationType === Vt.OrDataTypeGroup && Array.isArray(u.orChildrenGroup)) {
33850
33850
  const f = u.orChildrenGroup.findIndex(
33851
33851
  (c) => c.id === this.id
33852
33852
  );
@@ -33905,7 +33905,7 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
33905
33905
  }
33906
33906
  if (this.parent.type === n.DataType) {
33907
33907
  const o = this.parent;
33908
- this.parentRelationType === Pt.AndDataTypeGroup ? Array.isArray(o.andChildrenGroup) && o.andChildrenGroup.push(this) : this.parentRelationType === Pt.OrDataTypeGroup && Array.isArray(o.orChildrenGroup) && o.orChildrenGroup.push(this);
33908
+ this.parentRelationType === Vt.AndDataTypeGroup ? Array.isArray(o.andChildrenGroup) && o.andChildrenGroup.push(this) : this.parentRelationType === Vt.OrDataTypeGroup && Array.isArray(o.orChildrenGroup) && o.orChildrenGroup.push(this);
33909
33909
  } else {
33910
33910
  const o = this.parent;
33911
33911
  o.setDataType(this), i.push(o);
@@ -34592,7 +34592,7 @@ const Oe = class Oe extends at {
34592
34592
  let i = JSON.parse(
34593
34593
  JSON.stringify(e)
34594
34594
  );
34595
- const s = [], l = bt(
34595
+ const s = [], l = Rt(
34596
34596
  i,
34597
34597
  {
34598
34598
  parent: {
@@ -36119,7 +36119,7 @@ const we = class we extends at {
36119
36119
  let i = JSON.parse(
36120
36120
  JSON.stringify(e)
36121
36121
  );
36122
- const s = [], l = bt(
36122
+ const s = [], l = Rt(
36123
36123
  i,
36124
36124
  {
36125
36125
  parent: {
@@ -37350,7 +37350,7 @@ const $e = class $e extends at {
37350
37350
  let i = JSON.parse(
37351
37351
  JSON.stringify(e)
37352
37352
  );
37353
- const s = [], l = bt(
37353
+ const s = [], l = Rt(
37354
37354
  i,
37355
37355
  {
37356
37356
  parent: {
@@ -38324,7 +38324,7 @@ const Xe = class Xe extends at {
38324
38324
  let i = JSON.parse(
38325
38325
  JSON.stringify(e)
38326
38326
  );
38327
- const s = [], l = bt(
38327
+ const s = [], l = Rt(
38328
38328
  i,
38329
38329
  {
38330
38330
  parent: {
@@ -39409,7 +39409,7 @@ const $W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39409
39409
  let i = JSON.parse(
39410
39410
  JSON.stringify(e)
39411
39411
  );
39412
- const s = [], l = bt(
39412
+ const s = [], l = Rt(
39413
39413
  i,
39414
39414
  {
39415
39415
  // implements: {
@@ -40436,7 +40436,7 @@ const Ve = class Ve extends at {
40436
40436
  let i = JSON.parse(
40437
40437
  JSON.stringify(e)
40438
40438
  );
40439
- const s = [], l = bt(
40439
+ const s = [], l = Rt(
40440
40440
  i,
40441
40441
  {
40442
40442
  parent: {
@@ -41945,7 +41945,7 @@ const le = class le extends at {
41945
41945
  // Validates the entity payload after generation and returns any errors
41946
41946
  static validateGenerationTarget(e, t) {
41947
41947
  let i = JSON.parse(JSON.stringify(e));
41948
- const s = [], l = bt(
41948
+ const s = [], l = Rt(
41949
41949
  i,
41950
41950
  {
41951
41951
  parent: {
@@ -44014,7 +44014,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44014
44014
  inferred: !1,
44015
44015
  andChildrenGroup: [],
44016
44016
  orChildrenGroup: [],
44017
- parentRelationType: Pt.OrDataTypeGroup,
44017
+ parentRelationType: Vt.OrDataTypeGroup,
44018
44018
  parent: L.toReference()
44019
44019
  }, W = V(
44020
44020
  he,
@@ -44083,7 +44083,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44083
44083
  inferred: !1,
44084
44084
  andChildrenGroup: [],
44085
44085
  orChildrenGroup: [],
44086
- parentRelationType: Pt.OrDataTypeGroup,
44086
+ parentRelationType: Vt.OrDataTypeGroup,
44087
44087
  parent: J.toReference()
44088
44088
  }, xt = V(
44089
44089
  ae,
@@ -44832,7 +44832,7 @@ const Ge = class Ge extends at {
44832
44832
  let i = JSON.parse(
44833
44833
  JSON.stringify(e)
44834
44834
  );
44835
- const s = [], l = bt(
44835
+ const s = [], l = Rt(
44836
44836
  i,
44837
44837
  {
44838
44838
  parent: {
@@ -46147,7 +46147,7 @@ const Ce = class Ce extends at {
46147
46147
  let i = JSON.parse(
46148
46148
  JSON.stringify(e)
46149
46149
  );
46150
- const s = [], l = bt(
46150
+ const s = [], l = Rt(
46151
46151
  i,
46152
46152
  {
46153
46153
  parent: {
@@ -47947,7 +47947,7 @@ const _e = class _e extends at {
47947
47947
  let i = JSON.parse(
47948
47948
  JSON.stringify(e)
47949
47949
  );
47950
- const s = [], l = bt(
47950
+ const s = [], l = Rt(
47951
47951
  i,
47952
47952
  {
47953
47953
  parent: {
@@ -49943,7 +49943,7 @@ const qe = class qe extends at {
49943
49943
  let i = JSON.parse(
49944
49944
  JSON.stringify(e)
49945
49945
  );
49946
- const s = [], l = bt(
49946
+ const s = [], l = Rt(
49947
49947
  i,
49948
49948
  {
49949
49949
  parent: {
@@ -50122,16 +50122,16 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
50122
50122
  /* Parent */
50123
50123
  }
50124
50124
  ]), this.project.off(
50125
- wt.PERSISTED_DEFINITION_ENTITY_ADDED,
50125
+ Pt.PERSISTED_DEFINITION_ENTITY_ADDED,
50126
50126
  this.onPersistedEntityAdded
50127
50127
  ), this.project.off(
50128
- wt.PERSISTED_DEFINITION_ENTITY_REMOVED,
50128
+ Pt.PERSISTED_DEFINITION_ENTITY_REMOVED,
50129
50129
  this.onPersistedEntityRemoved
50130
50130
  ), this.project.off(
50131
- wt.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,
50131
+ Pt.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,
50132
50132
  this.onRelationalDatabaseEntityAdded
50133
50133
  ), this.project.off(
50134
- wt.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,
50134
+ Pt.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,
50135
50135
  this.onRelationalDatabaseEntityRemoved
50136
50136
  ), this;
50137
50137
  }
@@ -50146,16 +50146,16 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
50146
50146
  /* Parent */
50147
50147
  }
50148
50148
  ]), this.project.on(
50149
- wt.PERSISTED_DEFINITION_ENTITY_ADDED,
50149
+ Pt.PERSISTED_DEFINITION_ENTITY_ADDED,
50150
50150
  this.onPersistedEntityAdded
50151
50151
  ), this.project.on(
50152
- wt.PERSISTED_DEFINITION_ENTITY_REMOVED,
50152
+ Pt.PERSISTED_DEFINITION_ENTITY_REMOVED,
50153
50153
  this.onPersistedEntityRemoved
50154
50154
  ), this.project.on(
50155
- wt.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,
50155
+ Pt.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,
50156
50156
  this.onRelationalDatabaseEntityAdded
50157
50157
  ), this.project.on(
50158
- wt.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,
50158
+ Pt.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,
50159
50159
  this.onRelationalDatabaseEntityRemoved
50160
50160
  ), this;
50161
50161
  }
@@ -52327,7 +52327,7 @@ const Be = class Be extends at {
52327
52327
  let i = JSON.parse(
52328
52328
  JSON.stringify(e)
52329
52329
  );
52330
- const s = [], l = bt(
52330
+ const s = [], l = Rt(
52331
52331
  i,
52332
52332
  {
52333
52333
  parent: {
@@ -53930,7 +53930,7 @@ const Me = class Me extends at {
53930
53930
  let i = JSON.parse(
53931
53931
  JSON.stringify(e)
53932
53932
  );
53933
- const s = [], l = bt(
53933
+ const s = [], l = Rt(
53934
53934
  i,
53935
53935
  {
53936
53936
  parent: {
@@ -55078,7 +55078,7 @@ const Ne = class Ne extends at {
55078
55078
  let i = JSON.parse(
55079
55079
  JSON.stringify(e)
55080
55080
  );
55081
- const s = [], l = bt(
55081
+ const s = [], l = Rt(
55082
55082
  i,
55083
55083
  {
55084
55084
  parent: {
@@ -56161,7 +56161,7 @@ const xe = class xe extends at {
56161
56161
  let i = JSON.parse(
56162
56162
  JSON.stringify(e)
56163
56163
  );
56164
- const s = [], l = bt(
56164
+ const s = [], l = Rt(
56165
56165
  i,
56166
56166
  {
56167
56167
  parent: {
@@ -58296,7 +58296,7 @@ const ge = class ge extends at {
58296
58296
  let i = JSON.parse(
58297
58297
  JSON.stringify(e)
58298
58298
  );
58299
- const s = [], l = bt(
58299
+ const s = [], l = Rt(
58300
58300
  i,
58301
58301
  {
58302
58302
  parent: {
@@ -59268,7 +59268,7 @@ const je = class je extends at {
59268
59268
  let i = JSON.parse(
59269
59269
  JSON.stringify(e)
59270
59270
  );
59271
- const s = [], l = bt(
59271
+ const s = [], l = Rt(
59272
59272
  i,
59273
59273
  {
59274
59274
  parent: {
@@ -59563,7 +59563,7 @@ ${Qi(
59563
59563
  )) {
59564
59564
  var o, d, u, f, c, T, E, R;
59565
59565
  const t = [this], i = [], s = [], l = [];
59566
- return this.parentRelationType === N.FixedArguments || this.parentRelationType === N.DynamicArgument ? ((o = this.parent) == null ? void 0 : o.type) === n.Search || ((d = this.parent) == null ? void 0 : d.type) === n.Loop ? (this.parent.addInputDeclaration(this, e), t.push(this.parent)) : ((f = (u = this.parent) == null ? void 0 : u.addInput) == null || f.call(u, this), t.push(this.parent)) : this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn ? ((c = this.parent) == null ? void 0 : c.type) === n.Search || ((T = this.parent) == null ? void 0 : T.type) === n.Loop ? (this.parent.addOutputDeclaration(this, e), t.push(this.parent)) : ((R = (E = this.parent) == null ? void 0 : E.addOutput) == null || R.call(E, this), t.push(this.parent)) : this.parentRelationType === N.ReturnedError && this.parent && (this.parent.error = this, t.push(this.parent)), this.subscribe(), this.subscribeToDependencies(), e == null || e.attemptAutoclose("add-self-to-project", this.id), {
59566
+ return this.parentRelationType === N.FixedArguments || this.parentRelationType === N.DynamicArgument ? ((o = this.parent) == null ? void 0 : o.type) === n.Search || ((d = this.parent) == null ? void 0 : d.type) === n.Loop ? (this.parent.addInputDeclaration(this, e), t.push(this.parent)) : ((f = (u = this.parent) == null ? void 0 : u.addInput) == null || f.call(u, this, e), t.push(this.parent)) : this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn ? ((c = this.parent) == null ? void 0 : c.type) === n.Search || ((T = this.parent) == null ? void 0 : T.type) === n.Loop ? (this.parent.addOutputDeclaration(this, e), t.push(this.parent)) : ((R = (E = this.parent) == null ? void 0 : E.addOutput) == null || R.call(E, this, e), t.push(this.parent)) : this.parentRelationType === N.ReturnedError && this.parent && (this.parent.error = this, t.push(this.parent)), this.subscribe(), this.subscribeToDependencies(), e == null || e.attemptAutoclose("add-self-to-project", this.id), {
59567
59567
  updated: p(t),
59568
59568
  added: p(i),
59569
59569
  removed: p(s),
@@ -60020,7 +60020,10 @@ ${Qi(
60020
60020
  this.project
60021
60021
  );
60022
60022
  if (l.hydrateAncestors(), l.addSelfToProject(e), e == null || e.add(l, I.Added), l.initChildren(e), this.dataType) {
60023
- const o = this.dataType.clone(e, l);
60023
+ const o = this.dataType.clone(
60024
+ e,
60025
+ l
60026
+ );
60024
60027
  l.setDataType(o);
60025
60028
  }
60026
60029
  if (this.defaultValue) {
@@ -61703,7 +61706,7 @@ ${o}`,
61703
61706
  }
61704
61707
  return e;
61705
61708
  }
61706
- function bt(r, a, e, t = !1) {
61709
+ function Rt(r, a, e, t = !1) {
61707
61710
  const i = [], s = { ...a };
61708
61711
  let l = JSON.parse(JSON.stringify(r));
61709
61712
  if (!t) {
@@ -62687,7 +62690,7 @@ const ke = class ke extends at {
62687
62690
  let i = JSON.parse(
62688
62691
  JSON.stringify(e)
62689
62692
  );
62690
- const s = [], l = bt(
62693
+ const s = [], l = Rt(
62691
62694
  i,
62692
62695
  {
62693
62696
  parent: {
@@ -64428,7 +64431,7 @@ function bv(r, a) {
64428
64431
  return o && u;
64429
64432
  }) || null;
64430
64433
  }
64431
- function Z7(r, a, e, t = Pt.OrDataTypeGroup) {
64434
+ function Z7(r, a, e, t = Vt.OrDataTypeGroup) {
64432
64435
  const i = [], s = [], l = [], o = [], u = {
64433
64436
  id: y.UUID.uuid(),
64434
64437
  version: y.UUID.uuid(),
@@ -64588,7 +64591,7 @@ function Rv(r, a, e, t, i) {
64588
64591
  actionEntities: !1,
64589
64592
  like: !0,
64590
64593
  inferred: !1,
64591
- parentRelationType: Pt.OrDataTypeGroup,
64594
+ parentRelationType: Vt.OrDataTypeGroup,
64592
64595
  parent: a.toReference()
64593
64596
  }, W = V(
64594
64597
  he,
@@ -64641,7 +64644,7 @@ function Rv(r, a, e, t, i) {
64641
64644
  he || K[0],
64642
64645
  a,
64643
64646
  t,
64644
- Pt.OrDataTypeGroup
64647
+ Vt.OrDataTypeGroup
64645
64648
  );
64646
64649
  s.push(...W.updated), l.push(...W.added), o.push(...W.removed);
64647
64650
  }
@@ -64666,7 +64669,7 @@ function Rv(r, a, e, t, i) {
64666
64669
  actionEntities: !1,
64667
64670
  like: !0,
64668
64671
  inferred: !1,
64669
- parentRelationType: Pt.OrDataTypeGroup,
64672
+ parentRelationType: Vt.OrDataTypeGroup,
64670
64673
  parent: a.toReference()
64671
64674
  }, W = V(
64672
64675
  he,
@@ -65159,19 +65162,24 @@ function Dv(r, a) {
65159
65162
  return null;
65160
65163
  return Dv(e, t);
65161
65164
  }
65162
- function Vt(r) {
65165
+ function bt(r) {
65163
65166
  if (Zl.includes(r.type)) {
65164
65167
  if (r.type === n.FunctionDeclaration) {
65165
65168
  const a = r.parent;
65166
65169
  if (a.type === n.DefinitionEntity)
65167
- return a;
65170
+ return bt(a);
65168
65171
  if (a.type === n.Loop)
65169
65172
  return a;
65170
65173
  }
65171
- return r;
65174
+ return (
65175
+ // Some definition-entities are implicitly created by the system
65176
+ // To represent dynamically inferred data-types, in which case,
65177
+ // they are not canvas entities, but we can still find their parent canvas entity as usual
65178
+ r.type === n.DefinitionEntity && r.parent.type === n.DataType ? bt(r.parent) : r
65179
+ );
65172
65180
  } else {
65173
65181
  const a = r.parent;
65174
- return a ? Vt(a) : null;
65182
+ return a ? bt(a) : null;
65175
65183
  }
65176
65184
  }
65177
65185
  function yp(r, a) {
@@ -65253,7 +65261,7 @@ function Dz(r) {
65253
65261
  }
65254
65262
  function Zt(r) {
65255
65263
  const a = r.map(
65256
- (e) => Vt(e)
65264
+ (e) => bt(e)
65257
65265
  );
65258
65266
  return p(a);
65259
65267
  }
@@ -65377,7 +65385,7 @@ function He(r, a = /* @__PURE__ */ new Set()) {
65377
65385
  return [
65378
65386
  ...ve(r).reduce(
65379
65387
  (s, l) => {
65380
- const o = Vt(l);
65388
+ const o = bt(l);
65381
65389
  return [
65382
65390
  ...s,
65383
65391
  ...He(
@@ -65396,7 +65404,7 @@ function He(r, a = /* @__PURE__ */ new Set()) {
65396
65404
  r.inputs
65397
65405
  ), i = ve(r).reduce(
65398
65406
  (s, l) => {
65399
- const o = Vt(l);
65407
+ const o = bt(l);
65400
65408
  return [
65401
65409
  ...s,
65402
65410
  ...He(
@@ -65418,7 +65426,7 @@ function He(r, a = /* @__PURE__ */ new Set()) {
65418
65426
  r
65419
65427
  ).reduce(
65420
65428
  (s, l) => {
65421
- const o = Vt(l);
65429
+ const o = bt(l);
65422
65430
  return [
65423
65431
  ...s,
65424
65432
  ...He(
@@ -65435,7 +65443,7 @@ function He(r, a = /* @__PURE__ */ new Set()) {
65435
65443
  a.add(r.id);
65436
65444
  const t = ve(r).reduce(
65437
65445
  (i, s) => {
65438
- const l = Vt(s);
65446
+ const l = bt(s);
65439
65447
  return [
65440
65448
  ...i,
65441
65449
  ...He(
@@ -65668,7 +65676,7 @@ function Es(r) {
65668
65676
  const a = [];
65669
65677
  if (lr.includes(r.type)) {
65670
65678
  r.calledBy.forEach((i) => {
65671
- const s = Vt(i);
65679
+ const s = bt(i);
65672
65680
  s && a.push(s);
65673
65681
  });
65674
65682
  const t = [
@@ -66268,7 +66276,7 @@ function Nz(r) {
66268
66276
  }
66269
66277
  function $l(r) {
66270
66278
  const a = r.readsValue;
66271
- return a ? Vt(a) : null;
66279
+ return a ? bt(a) : null;
66272
66280
  }
66273
66281
  function LJ(r, a) {
66274
66282
  const e = r.readsValue;
@@ -66325,7 +66333,7 @@ function cn(r, a = !1) {
66325
66333
  e.push(...t);
66326
66334
  }
66327
66335
  if (r.type === n.Condition) {
66328
- const t = r.successCalls.map((s) => Vt(s)), i = r.errorCalls.map((s) => Vt(s));
66336
+ const t = r.successCalls.map((s) => bt(s)), i = r.errorCalls.map((s) => bt(s));
66329
66337
  e.push(
66330
66338
  ...t,
66331
66339
  ...i
@@ -66335,7 +66343,7 @@ function cn(r, a = !1) {
66335
66343
  if (r.collapsed && a)
66336
66344
  return [];
66337
66345
  const t = r.inputs.map((s) => bs(s)).flat(), i = r.calls.map(
66338
- (s) => Vt(s)
66346
+ (s) => bt(s)
66339
66347
  );
66340
66348
  e.push(
66341
66349
  ...p(
@@ -66346,9 +66354,9 @@ function cn(r, a = !1) {
66346
66354
  }
66347
66355
  if (dt.includes(r.type) && r.type !== n.Condition && r.type !== n.Loop) {
66348
66356
  const t = r == null ? void 0 : r.outputs.map((l) => bs(l)).flat(), i = r.successCalls.map(
66349
- (l) => Vt(l)
66357
+ (l) => bt(l)
66350
66358
  ), s = r.errorCalls.map(
66351
- (l) => Vt(l)
66359
+ (l) => bt(l)
66352
66360
  );
66353
66361
  e.push(
66354
66362
  ...p(
@@ -66377,8 +66385,8 @@ function cn(r, a = !1) {
66377
66385
  e.push(...l);
66378
66386
  }
66379
66387
  const i = r.errorCalls.map(
66380
- (l) => Vt(l)
66381
- ), s = r.successCalls.map((l) => Vt(l));
66388
+ (l) => bt(l)
66389
+ ), s = r.successCalls.map((l) => bt(l));
66382
66390
  e.push(
66383
66391
  ...p(
66384
66392
  t
@@ -66390,7 +66398,7 @@ function cn(r, a = !1) {
66390
66398
  if (r.type === n.FunctionDeclaration) {
66391
66399
  if (r.collapsed && a)
66392
66400
  return [];
66393
- const t = r.inputs.map((s) => bs(s)).flat(), i = r.calls.map((s) => Vt(s));
66401
+ const t = r.inputs.map((s) => bs(s)).flat(), i = r.calls.map((s) => bt(s));
66394
66402
  e.push(
66395
66403
  ...p(
66396
66404
  t
@@ -66900,7 +66908,7 @@ function ja(r) {
66900
66908
  return;
66901
66909
  let o;
66902
66910
  if (s.type === n.FunctionDeclaration) {
66903
- const d = Vt(s);
66911
+ const d = bt(s);
66904
66912
  if (d.type === n.DefinitionEntity)
66905
66913
  return;
66906
66914
  d.type === n.Loop && (o = d);
@@ -67115,7 +67123,7 @@ function Yz(r) {
67115
67123
  ...r.listUpdated,
67116
67124
  ...r.listAffected
67117
67125
  ].forEach((t) => {
67118
- const i = Vt(t);
67126
+ const i = bt(t);
67119
67127
  !i || e.has(i.id) || (e.add(i.id), a.push(i));
67120
67128
  }), p(a);
67121
67129
  }
@@ -70714,7 +70722,7 @@ class $v {
70714
70722
  }), this.subscribedEvents = {};
70715
70723
  }
70716
70724
  }
70717
- var wt = /* @__PURE__ */ ((r) => (r.DEFINITION_ENTITY_ADDED = "definition-entity-added", r.DEFINITION_ENTITY_REMOVED = "definition-entity-removed", r.DEFINITION_ENTITY_UPDATED = "definition-entity-updated", r.PERSISTED_DEFINITION_ENTITY_ADDED = "persisted-definition-entity-added", r.PERSISTED_DEFINITION_ENTITY_REMOVED = "persisted-definition-entity-removed", r.PERSISTED_DEFINITION_ENTITY_UPDATED = "persisted-definition-entity-updated", r.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED = "relational-database-definition-entity-added", r.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED = "relational-database-definition-entity-removed", r.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED = "relational-database-definition-entity-updated", r))(wt || {});
70725
+ var Pt = /* @__PURE__ */ ((r) => (r.DEFINITION_ENTITY_ADDED = "definition-entity-added", r.DEFINITION_ENTITY_REMOVED = "definition-entity-removed", r.DEFINITION_ENTITY_UPDATED = "definition-entity-updated", r.PERSISTED_DEFINITION_ENTITY_ADDED = "persisted-definition-entity-added", r.PERSISTED_DEFINITION_ENTITY_REMOVED = "persisted-definition-entity-removed", r.PERSISTED_DEFINITION_ENTITY_UPDATED = "persisted-definition-entity-updated", r.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED = "relational-database-definition-entity-added", r.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED = "relational-database-definition-entity-removed", r.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED = "relational-database-definition-entity-updated", r))(Pt || {});
70718
70726
  function pq(r, a) {
70719
70727
  a.forEach((e) => {
70720
70728
  Object.getOwnPropertyNames(e.prototype).forEach((t) => {
@@ -71761,13 +71769,6 @@ const ie = class ie extends Gv {
71761
71769
  addDefinitionEntity(e) {
71762
71770
  return this.entities.includes(e) || this.entities.push(e), e;
71763
71771
  }
71764
- addFunctionDeclarationFromTransfer(e) {
71765
- const t = V(
71766
- e,
71767
- this
71768
- );
71769
- return this.addFunctionDeclaration(t), t;
71770
- }
71771
71772
  addFunctionDeclaration(e) {
71772
71773
  return this.functions.includes(e) || this.functions.push(e), e;
71773
71774
  }
@@ -73197,15 +73198,15 @@ class Cq extends Ji {
73197
73198
  const lY = "test_primitive_entities_export";
73198
73199
  class _q extends Ji {
73199
73200
  constructor(e) {
73200
- super(Rt, e);
73201
+ super(Dt, e);
73201
73202
  h(this, "initialData");
73202
73203
  h(this, "id", z.PERSISTED_ENTITY);
73203
73204
  h(this, "version", "1");
73204
73205
  h(this, "name", z.PERSISTED_ENTITY);
73205
- h(this, "description", Rt.description);
73206
+ h(this, "description", Dt.description);
73206
73207
  h(this, "type", n.BuiltInBaseEntity);
73207
- h(this, "abstract", Rt.abstract);
73208
- h(this, "static", Rt.static);
73208
+ h(this, "abstract", Dt.abstract);
73209
+ h(this, "static", Dt.static);
73209
73210
  // Nested entities
73210
73211
  h(this, "properties", []);
73211
73212
  h(this, "methods", []);
@@ -73214,7 +73215,7 @@ class _q extends Ji {
73214
73215
  h(this, "errors", []);
73215
73216
  // Parent project full state
73216
73217
  h(this, "project");
73217
- this.initialData = Rt, this.project = e, this.id = Rt.id, this.version = Rt.version, this.name = Rt.name, this.static = Rt.static, this.abstract = Rt.abstract, this.properties = this.initialData.properties.map((i) => {
73218
+ this.initialData = Dt, this.project = e, this.id = Dt.id, this.version = Dt.version, this.name = Dt.name, this.static = Dt.static, this.abstract = Dt.abstract, this.properties = this.initialData.properties.map((i) => {
73218
73219
  const s = V(
73219
73220
  i,
73220
73221
  this.project
@@ -73246,7 +73247,7 @@ function Bq(r) {
73246
73247
  new wq(r),
73247
73248
  new Cq(r),
73248
73249
  new _q(r),
73249
- new Ji(Rt, r),
73250
+ new Ji(Dt, r),
73250
73251
  new Ji(pd, r)
73251
73252
  // new BuiltInBaseEntityState(keyValueParamBuiltInBaseEntity, project),
73252
73253
  ];
@@ -73509,7 +73510,7 @@ function dY(r, {
73509
73510
  const f = u.toShallowJSON({
73510
73511
  seenEntityMaps: e
73511
73512
  });
73512
- u.type === n.ValueDescriptor && u.name === "Iteration result" && (console.log("Og entity shallow copy: ", f), console.log("Og entity full: ", u)), f.previousVersion = null, f.createdAt = i, f.version = y.UUID.uuid();
73513
+ f.previousVersion = null, f.createdAt = i, f.version = y.UUID.uuid();
73513
73514
  const c = V(
73514
73515
  f,
73515
73516
  l
@@ -73646,7 +73647,7 @@ export {
73646
73647
  Hp as DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS,
73647
73648
  wi as DataTypeCompatibilityTypes,
73648
73649
  z0 as DataTypeDependencyField,
73649
- Pt as DataTypeParentChildRelation,
73650
+ Vt as DataTypeParentChildRelation,
73650
73651
  Hr as DataTypeState,
73651
73652
  gl as DefinitionEntityDependencyField,
73652
73653
  hn as DefinitionEntityState,
@@ -73730,7 +73731,7 @@ export {
73730
73731
  ri as PrimitiveEntityState,
73731
73732
  M as PrimitiveTypes,
73732
73733
  y as ProjectState,
73733
- wt as ProjectStateEvents,
73734
+ Pt as ProjectStateEvents,
73734
73735
  s7 as PropertyDependencyField,
73735
73736
  zr as PropertyState,
73736
73737
  dq as READ_ONLY_ENTITY_PERSISTANCE_REPOSITORY,
@@ -74067,7 +74068,7 @@ export {
74067
74068
  cW as getEntityWithLogicScopeTypeSchema,
74068
74069
  C3 as getEntityWithValueReferenceSchema,
74069
74070
  rW as getEntityWithValueTypeSchema,
74070
- Dt as getEntryPointEntityReferenceSchema,
74071
+ Ot as getEntryPointEntityReferenceSchema,
74071
74072
  Cn as getEntryPointEntityTypeSchema,
74072
74073
  Gu as getEventEntityReferenceSchema,
74073
74074
  $u as getEventEntityTypeSchema,
@@ -74097,7 +74098,7 @@ export {
74097
74098
  Y7 as getParentCallableEntity,
74098
74099
  K7 as getParentCallerEntity,
74099
74100
  Zt as getParentCanvasEntities,
74100
- Vt as getParentCanvasEntity,
74101
+ bt as getParentCanvasEntity,
74101
74102
  yp as getParentCanvasEntityFromTransfer,
74102
74103
  Az as getParentEntryPoint,
74103
74104
  H7 as getParentPassthroughCallableEntity,
@@ -74438,7 +74439,7 @@ export {
74438
74439
  fd as projectPublicationCompletedGlobalEvent,
74439
74440
  HO as propertyToZodSchema,
74440
74441
  _W as propertyValidation,
74441
- Rt as relationalDatabaseBuiltInBaseEntity,
74442
+ Dt as relationalDatabaseBuiltInBaseEntity,
74442
74443
  Fc as relationalDatabaseBuiltInBaseEntityAutoscalingProperty,
74443
74444
  e1 as relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataType,
74444
74445
  QD as relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataTypeRef,
@@ -74592,7 +74593,7 @@ export {
74592
74593
  pz as validateReadsValueInActionPayload,
74593
74594
  cp as validateReferenceObject,
74594
74595
  Zp as validateReferenceToOne,
74595
- bt as validateReferences,
74596
+ Rt as validateReferences,
74596
74597
  g0 as validateReturnDeclarationName,
74597
74598
  M7 as validateSuccessCaller,
74598
74599
  So as validateValueReaderGenerationUpdate,