@elyx-code/project-logic-tree 0.0.5995 → 0.0.5996

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 xf = Object.defineProperty;
2
2
  var $f = (n, e, t) => e in n ? xf(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var l = (n, e, t) => ($f(n, typeof e != "symbol" ? e + "" : e, t), t);
4
- var r = /* @__PURE__ */ ((n) => (n.CustomEntity = "custom-entity", n.BuiltInBaseEntity = "built-in-base-entity", n.Project = "project", n.InstalledProject = "installed-project", n.GlobalEvent = "global-event", n.DataType = "data-type", n.FunctionCall = "function-call", n.FunctionDeclaration = "function-declaration", n.ActionDescriptor = "action-descriptor", n.ValueDescriptor = "value-descriptor", n.ArgumentDeclaration = "argument-declaration", n.InputMap = "input-map", n.ReturnStatement = "return-statement", n.BreakStatement = "break-statement", n.ContinueStatement = "continue-statement", n.ReturnDeclaration = "return-declaration", n.OutputMap = "output-map", n.PrimitiveEntity = "primitive-entity", n.PrimitiveValue = "primitive-value", n.Property = "property", n.Operation = "operation", n.Condition = "condition", n.VariableDeclaration = "variable-declaration", n.VariableInstance = "variable-instance", n.Search = "search", n.Loop = "loop", n.InternalCall = "internal-call", n.GenericReference = "generic-reference", n))(r || {}), M = /* @__PURE__ */ ((n) => (n.HTTP_ENDPOINT = "BUILT_IN_HTTP_ENDPOINT_ENTITY", n.RELATIONAL_DATABASE = "BUILT_IN_RELATIONAL_DATABASE_ENTITY", n.PERSISTED_ENTITY = "BUILT_IN_PERSISTED_ENTITY_ENTITY", n.CRON_JOB = "BUILT_IN_CRON_JOB_ENTITY", n.EXECUTION = "BUILT_IN_EXECUTION_ENTITY", n.KEY_VALUE_PARAM = "BUILT_IN_KEY_VALUE_PARAM_ENTITY", n))(M || {}), Ue = /* @__PURE__ */ ((n) => (n.CurrentDateAndTime = "current-date-and-time", n.Unique = "unique", n.Random = "random", n))(Ue || {}), At = /* @__PURE__ */ ((n) => (n.DeletePersistedEntity = "base-delete-persisted-entity", n.SoftDeletePersistedEntity = "base-soft-delete-persisted-entity", n.AbortExecution = "base-abort-execution", n))(At || {}), V = /* @__PURE__ */ ((n) => (n.Fixed = "fixed", n.None = "none", n.Dynamic = "dynamic", n))(V || {}), C = /* @__PURE__ */ ((n) => (n.FixedArguments = "fixed-arguments", n.FixedReturns = "fixed-returns", n.ReturnedError = "returned-error", n.OngoingProcessExecution = "ongoing-process-execution", n))(C || {}), v = /* @__PURE__ */ ((n) => (n.EntityTemplate = "entity-template", n.ActionDescriptor = "action-descriptor", n.String = "string", n.Number = "number", n.Boolean = "boolean", n.Null = "null", n.Enum = "enum", n.JSON = "json", n.Date = "date", n.UUID = "uuid", n.File = "file", n))(v || {}), ut = /* @__PURE__ */ ((n) => (n.Addition = "addition", n.Substraction = "substraction", n.Multiplication = "multiplication", n.Division = "division", n.Remainder = "remainder", n.Exponentiation = "exponentiation", n))(ut || {}), ge = /* @__PURE__ */ ((n) => (n.Join = "string-join", n.Split = "stringSsplit", n.DeleteLast = "string-delete-last", n.DeleteFirst = "string-delete-first", n.DeleteIndex = "string-delete-index", n.AddIndex = "string-add-index", n.ReplaceFirst = "string-replace-first", n.ReplaceLast = "string-replace-last", n.ReplaceIndex = "string-replace-index", n.ReplaceSingleMatch = "string-replace-single-match", n.ReplaceAllMatches = "string-replace-all-matches", n.GetIndex = "string-get-index", n.GetFirst = "string-get-first", n.GetLast = "string-get-last", n.Append = "string-append", n.Prepend = "string-prepend", n))(ge || {}), j = /* @__PURE__ */ ((n) => (n.Join = "list-join", n.Split = "list-split", n.DeleteLast = "list-delete-last", n.DeleteFirst = "list-delete-first", n.DeleteIndex = "list-delete-index", n.AddIndex = "list-add-index", n.ReplaceFirst = "list-replace-first", n.ReplaceLast = "list-replace-last", n.ReplaceIndex = "list-replace-index", n.ReplaceSingleMatch = "list-replace-single-match", n.ReplaceAllMatches = "list-replace-all-matches", n.GetIndex = "list-get-index", n.GetFirst = "list-get-first", n.GetLast = "list-get-last", n.Append = "list-append", n.Prepend = "list-prepend", n))(j || {}), Pe = /* @__PURE__ */ ((n) => (n.Parallel = "parallel", n.Sequential = "sequential", n.Wait = "wait", n))(Pe || {}), nt = /* @__PURE__ */ ((n) => (n.CreateNewInstance = "create-new-instance", n.Validate = "validate", n))(nt || {}), Ke = /* @__PURE__ */ ((n) => (n.HttpRequest = "base-http-request", n))(Ke || {}), Se = /* @__PURE__ */ ((n) => (n.Equal = "equal", n.NotEqual = "not-equal", n.And = "and", n.Or = "or", n.LessThan = "less-than", n.MoreThan = "more-than", n.LessThanOrEqual = "less-than-or-equal", n.MoreThanOrEqual = "more-than-or-equal", n))(Se || {}), $t = /* @__PURE__ */ ((n) => (n.Empty = "empty", n.NotEmpty = "not-empty", n))($t || {}), Fe = /* @__PURE__ */ ((n) => (n.ManualFlow = "manual-flow-loop", n.Counted = "counted-loop", n.List = "list-loop", n.ObjectKeys = "object-keys-loop", n.ObjectValues = "object-values-loop", n.String = "string-loop", n))(Fe || {}), Je = /* @__PURE__ */ ((n) => (n.OrDataTypeGroup = "or-data-type-group", n.AndDataTypeGroup = "and-data-type-group", n.DynamicArgumentTypes = "dynamic-argument-types", n.DynamicReturnTypes = "dynamic-return-types", n))(Je || {}), un = /* @__PURE__ */ ((n) => (n.PROJECT_PUBLICATION_COMPLETED = "GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED", n))(un || {}), Vf = /* @__PURE__ */ ((n) => (n.Error = "error", n.Task = "task", n))(Vf || {});
4
+ var r = /* @__PURE__ */ ((n) => (n.CustomEntity = "custom-entity", n.BuiltInBaseEntity = "built-in-base-entity", n.Project = "project", n.InstalledProject = "installed-project", n.GlobalEvent = "global-event", n.DataType = "data-type", n.FunctionCall = "function-call", n.FunctionDeclaration = "function-declaration", n.ActionDescriptor = "action-descriptor", n.ValueDescriptor = "value-descriptor", n.ArgumentDeclaration = "argument-declaration", n.InputMap = "input-map", n.ReturnStatement = "return-statement", n.BreakStatement = "break-statement", n.ContinueStatement = "continue-statement", n.ReturnDeclaration = "return-declaration", n.OutputMap = "output-map", n.PrimitiveEntity = "primitive-entity", n.PrimitiveValue = "primitive-value", n.Property = "property", n.Operation = "operation", n.Condition = "condition", n.VariableDeclaration = "variable-declaration", n.VariableInstance = "variable-instance", n.Search = "search", n.Loop = "loop", n.InternalCall = "internal-call", n.GenericReference = "generic-reference", n))(r || {}), M = /* @__PURE__ */ ((n) => (n.HTTP_ENDPOINT = "BUILT_IN_HTTP_ENDPOINT_ENTITY", n.RELATIONAL_DATABASE = "BUILT_IN_RELATIONAL_DATABASE_ENTITY", n.PERSISTED_ENTITY = "BUILT_IN_PERSISTED_ENTITY_ENTITY", n.CRON_JOB = "BUILT_IN_CRON_JOB_ENTITY", n.EXECUTION = "BUILT_IN_EXECUTION_ENTITY", n.KEY_VALUE_PARAM = "BUILT_IN_KEY_VALUE_PARAM_ENTITY", n))(M || {}), Ue = /* @__PURE__ */ ((n) => (n.CurrentDateAndTime = "current-date-and-time", n.Unique = "unique", n.Random = "random", n))(Ue || {}), At = /* @__PURE__ */ ((n) => (n.DeletePersistedEntity = "base-delete-persisted-entity", n.SoftDeletePersistedEntity = "base-soft-delete-persisted-entity", n.AbortExecution = "base-abort-execution", n))(At || {}), V = /* @__PURE__ */ ((n) => (n.Fixed = "fixed", n.None = "none", n.Dynamic = "dynamic", n))(V || {}), C = /* @__PURE__ */ ((n) => (n.FixedArguments = "fixed-arguments", n.FixedReturns = "fixed-returns", n.ReturnedError = "returned-error", n.OngoingProcessExecution = "ongoing-process-execution", n))(C || {}), v = /* @__PURE__ */ ((n) => (n.EntityTemplate = "entity-template", n.ActionDescriptor = "action-descriptor", n.String = "string", n.Number = "number", n.Boolean = "boolean", n.Null = "null", n.Enum = "enum", n.JSON = "json", n.Date = "date", n.UUID = "uuid", n.File = "file", n))(v || {}), ut = /* @__PURE__ */ ((n) => (n.Addition = "addition", n.Substraction = "substraction", n.Multiplication = "multiplication", n.Division = "division", n.Remainder = "remainder", n.Exponentiation = "exponentiation", n))(ut || {}), ge = /* @__PURE__ */ ((n) => (n.Join = "string-join", n.Split = "stringSsplit", n.DeleteLast = "string-delete-last", n.DeleteFirst = "string-delete-first", n.DeleteIndex = "string-delete-index", n.AddIndex = "string-add-index", n.ReplaceFirst = "string-replace-first", n.ReplaceLast = "string-replace-last", n.ReplaceIndex = "string-replace-index", n.ReplaceSingleMatch = "string-replace-single-match", n.ReplaceAllMatches = "string-replace-all-matches", n.GetIndex = "string-get-index", n.GetFirst = "string-get-first", n.GetLast = "string-get-last", n.Append = "string-append", n.Prepend = "string-prepend", n))(ge || {}), j = /* @__PURE__ */ ((n) => (n.Join = "list-join", n.Split = "list-split", n.DeleteLast = "list-delete-last", n.DeleteFirst = "list-delete-first", n.DeleteIndex = "list-delete-index", n.AddIndex = "list-add-index", n.ReplaceFirst = "list-replace-first", n.ReplaceLast = "list-replace-last", n.ReplaceIndex = "list-replace-index", n.ReplaceSingleMatch = "list-replace-single-match", n.ReplaceAllMatches = "list-replace-all-matches", n.GetIndex = "list-get-index", n.GetFirst = "list-get-first", n.GetLast = "list-get-last", n.Append = "list-append", n.Prepend = "list-prepend", n))(j || {}), Pe = /* @__PURE__ */ ((n) => (n.Parallel = "parallel", n.Sequential = "sequential", n.Wait = "wait", n))(Pe || {}), nt = /* @__PURE__ */ ((n) => (n.CreateNewInstance = "create-new-instance", n.Validate = "validate", n))(nt || {}), Ke = /* @__PURE__ */ ((n) => (n.HttpRequest = "base-http-request", n))(Ke || {}), Se = /* @__PURE__ */ ((n) => (n.Equal = "equal", n.NotEqual = "not-equal", n.And = "and", n.Or = "or", n.LessThan = "less-than", n.MoreThan = "more-than", n.LessThanOrEqual = "less-than-or-equal", n.MoreThanOrEqual = "more-than-or-equal", n))(Se || {}), Vt = /* @__PURE__ */ ((n) => (n.Empty = "empty", n.NotEmpty = "not-empty", n))(Vt || {}), Fe = /* @__PURE__ */ ((n) => (n.ManualFlow = "manual-flow-loop", n.Counted = "counted-loop", n.List = "list-loop", n.ObjectKeys = "object-keys-loop", n.ObjectValues = "object-values-loop", n.String = "string-loop", n))(Fe || {}), Je = /* @__PURE__ */ ((n) => (n.OrDataTypeGroup = "or-data-type-group", n.AndDataTypeGroup = "and-data-type-group", n.DynamicArgumentTypes = "dynamic-argument-types", n.DynamicReturnTypes = "dynamic-return-types", n))(Je || {}), un = /* @__PURE__ */ ((n) => (n.PROJECT_PUBLICATION_COMPLETED = "GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED", n))(un || {}), Vf = /* @__PURE__ */ ((n) => (n.Error = "error", n.Task = "task", n))(Vf || {});
5
5
  const Kn = [
6
6
  r.VariableDeclaration,
7
7
  r.VariableInstance,
@@ -1229,7 +1229,7 @@ const CT = {
1229
1229
  index: 1,
1230
1230
  parent: $T,
1231
1231
  parentRelationType: C.ReturnedError
1232
- }, Lt = {
1232
+ }, Ft = {
1233
1233
  id: Pe.Parallel,
1234
1234
  type: r.ActionDescriptor,
1235
1235
  description: "Execute a list of actions in parallel",
@@ -1425,7 +1425,7 @@ const HT = {
1425
1425
  dynamicReturnTypes: null,
1426
1426
  parent: null
1427
1427
  }, nE = {
1428
- [Pe.Parallel]: Lt,
1428
+ [Pe.Parallel]: Ft,
1429
1429
  [Pe.Wait]: ct,
1430
1430
  [Pe.Sequential]: ln
1431
1431
  };
@@ -1737,8 +1737,8 @@ const xe = {
1737
1737
  rightHand: "condition-more-than-or-equal-right-hand-input-id"
1738
1738
  }
1739
1739
  },
1740
- [$t.NotEmpty]: {
1741
- id: $t.NotEmpty,
1740
+ [Vt.NotEmpty]: {
1741
+ id: Vt.NotEmpty,
1742
1742
  inputs: {
1743
1743
  leftHand: "condition-not-empty-input-id"
1744
1744
  }
@@ -3524,7 +3524,7 @@ const xe = {
3524
3524
  type: r.GenericReference,
3525
3525
  id: "not-empty-condition-ref",
3526
3526
  entityType: r.ActionDescriptor,
3527
- entityId: $t.NotEmpty
3527
+ entityId: Vt.NotEmpty
3528
3528
  }, dv = {
3529
3529
  id: lv.inputs.leftHand,
3530
3530
  type: r.ValueDescriptor,
@@ -3538,9 +3538,9 @@ const xe = {
3538
3538
  parent: cv
3539
3539
  }, wr = {
3540
3540
  type: r.ActionDescriptor,
3541
- id: $t.NotEmpty,
3541
+ id: Vt.NotEmpty,
3542
3542
  version: 1,
3543
- name: $t.NotEmpty,
3543
+ name: Vt.NotEmpty,
3544
3544
  description: "Checks if the value is not empty",
3545
3545
  parent: null,
3546
3546
  fixedArguments: [dv],
@@ -3551,7 +3551,7 @@ const xe = {
3551
3551
  returnsType: V.None,
3552
3552
  error: null
3553
3553
  }, uv = {
3554
- [$t.NotEmpty]: wr
3554
+ [Vt.NotEmpty]: wr
3555
3555
  }, Od = xe[r.Condition]["more-than-or-equal"], pv = {
3556
3556
  type: r.GenericReference,
3557
3557
  id: "more-than-or-equal-condition-left-hand-argument-parent-ref",
@@ -4003,7 +4003,7 @@ const Ec = (n, e) => {
4003
4003
  }
4004
4004
  };
4005
4005
  };
4006
- function k(n) {
4006
+ function q(n) {
4007
4007
  if (!n)
4008
4008
  return {};
4009
4009
  const { errorMap: e, invalid_type_error: t, required_error: i, description: a } = n;
@@ -4115,7 +4115,7 @@ class W {
4115
4115
  return this._refinement((i, a) => e(i) ? !0 : (a.addIssue(typeof t == "function" ? t(i, a) : t), !1));
4116
4116
  }
4117
4117
  _refinement(e) {
4118
- return new Vt({
4118
+ return new Gt({
4119
4119
  schema: this,
4120
4120
  typeName: G.ZodEffects,
4121
4121
  effect: { type: "refinement", refinement: e }
@@ -4134,7 +4134,7 @@ class W {
4134
4134
  return this.nullable().optional();
4135
4135
  }
4136
4136
  array() {
4137
- return Nt.create(this, this._def);
4137
+ return xt.create(this, this._def);
4138
4138
  }
4139
4139
  promise() {
4140
4140
  return or.create(this, this._def);
@@ -4146,8 +4146,8 @@ class W {
4146
4146
  return li.create(this, e, this._def);
4147
4147
  }
4148
4148
  transform(e) {
4149
- return new Vt({
4150
- ...k(this._def),
4149
+ return new Gt({
4150
+ ...q(this._def),
4151
4151
  schema: this,
4152
4152
  typeName: G.ZodEffects,
4153
4153
  effect: { type: "transform", transform: e }
@@ -4156,7 +4156,7 @@ class W {
4156
4156
  default(e) {
4157
4157
  const t = typeof e == "function" ? e : () => e;
4158
4158
  return new yi({
4159
- ...k(this._def),
4159
+ ...q(this._def),
4160
4160
  innerType: this,
4161
4161
  defaultValue: t,
4162
4162
  typeName: G.ZodDefault
@@ -4166,13 +4166,13 @@ class W {
4166
4166
  return new Po({
4167
4167
  typeName: G.ZodBranded,
4168
4168
  type: this,
4169
- ...k(this._def)
4169
+ ...q(this._def)
4170
4170
  });
4171
4171
  }
4172
4172
  catch(e) {
4173
4173
  const t = typeof e == "function" ? e : () => e;
4174
4174
  return new hi({
4175
- ...k(this._def),
4175
+ ...q(this._def),
4176
4176
  innerType: this,
4177
4177
  catchValue: t,
4178
4178
  typeName: G.ZodCatch
@@ -4216,7 +4216,7 @@ function Nd(n) {
4216
4216
  function xv(n, e) {
4217
4217
  return !!((e === "v4" || !e) && wv.test(n) || (e === "v6" || !e) && Bv.test(n));
4218
4218
  }
4219
- class _t extends W {
4219
+ class Nt extends W {
4220
4220
  _parse(e) {
4221
4221
  if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== B.string) {
4222
4222
  const s = this._getOrReturnCtx(e);
@@ -4368,7 +4368,7 @@ class _t extends W {
4368
4368
  });
4369
4369
  }
4370
4370
  _addCheck(e) {
4371
- return new _t({
4371
+ return new Nt({
4372
4372
  ...this._def,
4373
4373
  checks: [...this._def.checks, e]
4374
4374
  });
@@ -4494,19 +4494,19 @@ class _t extends W {
4494
4494
  return this.min(1, N.errToObj(e));
4495
4495
  }
4496
4496
  trim() {
4497
- return new _t({
4497
+ return new Nt({
4498
4498
  ...this._def,
4499
4499
  checks: [...this._def.checks, { kind: "trim" }]
4500
4500
  });
4501
4501
  }
4502
4502
  toLowerCase() {
4503
- return new _t({
4503
+ return new Nt({
4504
4504
  ...this._def,
4505
4505
  checks: [...this._def.checks, { kind: "toLowerCase" }]
4506
4506
  });
4507
4507
  }
4508
4508
  toUpperCase() {
4509
- return new _t({
4509
+ return new Nt({
4510
4510
  ...this._def,
4511
4511
  checks: [...this._def.checks, { kind: "toUpperCase" }]
4512
4512
  });
@@ -4566,13 +4566,13 @@ class _t extends W {
4566
4566
  return e;
4567
4567
  }
4568
4568
  }
4569
- _t.create = (n) => {
4569
+ Nt.create = (n) => {
4570
4570
  var e;
4571
- return new _t({
4571
+ return new Nt({
4572
4572
  checks: [],
4573
4573
  typeName: G.ZodString,
4574
4574
  coerce: (e = n == null ? void 0 : n.coerce) !== null && e !== void 0 ? e : !1,
4575
- ...k(n)
4575
+ ...q(n)
4576
4576
  });
4577
4577
  };
4578
4578
  function $v(n, e) {
@@ -4749,7 +4749,7 @@ yn.create = (n) => new yn({
4749
4749
  checks: [],
4750
4750
  typeName: G.ZodNumber,
4751
4751
  coerce: (n == null ? void 0 : n.coerce) || !1,
4752
- ...k(n)
4752
+ ...q(n)
4753
4753
  });
4754
4754
  class hn extends W {
4755
4755
  constructor() {
@@ -4876,7 +4876,7 @@ hn.create = (n) => {
4876
4876
  checks: [],
4877
4877
  typeName: G.ZodBigInt,
4878
4878
  coerce: (e = n == null ? void 0 : n.coerce) !== null && e !== void 0 ? e : !1,
4879
- ...k(n)
4879
+ ...q(n)
4880
4880
  });
4881
4881
  };
4882
4882
  class ii extends W {
@@ -4895,7 +4895,7 @@ class ii extends W {
4895
4895
  ii.create = (n) => new ii({
4896
4896
  typeName: G.ZodBoolean,
4897
4897
  coerce: (n == null ? void 0 : n.coerce) || !1,
4898
- ...k(n)
4898
+ ...q(n)
4899
4899
  });
4900
4900
  class Cn extends W {
4901
4901
  _parse(e) {
@@ -4973,7 +4973,7 @@ Cn.create = (n) => new Cn({
4973
4973
  checks: [],
4974
4974
  coerce: (n == null ? void 0 : n.coerce) || !1,
4975
4975
  typeName: G.ZodDate,
4976
- ...k(n)
4976
+ ...q(n)
4977
4977
  });
4978
4978
  class da extends W {
4979
4979
  _parse(e) {
@@ -4990,7 +4990,7 @@ class da extends W {
4990
4990
  }
4991
4991
  da.create = (n) => new da({
4992
4992
  typeName: G.ZodSymbol,
4993
- ...k(n)
4993
+ ...q(n)
4994
4994
  });
4995
4995
  class ai extends W {
4996
4996
  _parse(e) {
@@ -5007,7 +5007,7 @@ class ai extends W {
5007
5007
  }
5008
5008
  ai.create = (n) => new ai({
5009
5009
  typeName: G.ZodUndefined,
5010
- ...k(n)
5010
+ ...q(n)
5011
5011
  });
5012
5012
  class si extends W {
5013
5013
  _parse(e) {
@@ -5024,7 +5024,7 @@ class si extends W {
5024
5024
  }
5025
5025
  si.create = (n) => new si({
5026
5026
  typeName: G.ZodNull,
5027
- ...k(n)
5027
+ ...q(n)
5028
5028
  });
5029
5029
  class sr extends W {
5030
5030
  constructor() {
@@ -5036,7 +5036,7 @@ class sr extends W {
5036
5036
  }
5037
5037
  sr.create = (n) => new sr({
5038
5038
  typeName: G.ZodAny,
5039
- ...k(n)
5039
+ ...q(n)
5040
5040
  });
5041
5041
  class On extends W {
5042
5042
  constructor() {
@@ -5048,7 +5048,7 @@ class On extends W {
5048
5048
  }
5049
5049
  On.create = (n) => new On({
5050
5050
  typeName: G.ZodUnknown,
5051
- ...k(n)
5051
+ ...q(n)
5052
5052
  });
5053
5053
  class tn extends W {
5054
5054
  _parse(e) {
@@ -5062,7 +5062,7 @@ class tn extends W {
5062
5062
  }
5063
5063
  tn.create = (n) => new tn({
5064
5064
  typeName: G.ZodNever,
5065
- ...k(n)
5065
+ ...q(n)
5066
5066
  });
5067
5067
  class ua extends W {
5068
5068
  _parse(e) {
@@ -5079,9 +5079,9 @@ class ua extends W {
5079
5079
  }
5080
5080
  ua.create = (n) => new ua({
5081
5081
  typeName: G.ZodVoid,
5082
- ...k(n)
5082
+ ...q(n)
5083
5083
  });
5084
- class Nt extends W {
5084
+ class xt extends W {
5085
5085
  _parse(e) {
5086
5086
  const { ctx: t, status: i } = this._processInputParams(e), a = this._def;
5087
5087
  if (t.parsedType !== B.array)
@@ -5125,19 +5125,19 @@ class Nt extends W {
5125
5125
  return this._def.type;
5126
5126
  }
5127
5127
  min(e, t) {
5128
- return new Nt({
5128
+ return new xt({
5129
5129
  ...this._def,
5130
5130
  minLength: { value: e, message: N.toString(t) }
5131
5131
  });
5132
5132
  }
5133
5133
  max(e, t) {
5134
- return new Nt({
5134
+ return new xt({
5135
5135
  ...this._def,
5136
5136
  maxLength: { value: e, message: N.toString(t) }
5137
5137
  });
5138
5138
  }
5139
5139
  length(e, t) {
5140
- return new Nt({
5140
+ return new xt({
5141
5141
  ...this._def,
5142
5142
  exactLength: { value: e, message: N.toString(t) }
5143
5143
  });
@@ -5146,13 +5146,13 @@ class Nt extends W {
5146
5146
  return this.min(1, e);
5147
5147
  }
5148
5148
  }
5149
- Nt.create = (n, e) => new Nt({
5149
+ xt.create = (n, e) => new xt({
5150
5150
  type: n,
5151
5151
  minLength: null,
5152
5152
  maxLength: null,
5153
5153
  exactLength: null,
5154
5154
  typeName: G.ZodArray,
5155
- ...k(e)
5155
+ ...q(e)
5156
5156
  });
5157
5157
  function Xn(n) {
5158
5158
  if (n instanceof Ce) {
@@ -5166,7 +5166,7 @@ function Xn(n) {
5166
5166
  shape: () => e
5167
5167
  });
5168
5168
  } else
5169
- return n instanceof Nt ? new Nt({
5169
+ return n instanceof xt ? new xt({
5170
5170
  ...n._def,
5171
5171
  type: Xn(n.element)
5172
5172
  }) : n instanceof Ut ? Ut.create(Xn(n.unwrap())) : n instanceof mn ? mn.create(Xn(n.unwrap())) : n instanceof qt ? qt.create(n.items.map((e) => Xn(e))) : n;
@@ -5443,21 +5443,21 @@ Ce.create = (n, e) => new Ce({
5443
5443
  unknownKeys: "strip",
5444
5444
  catchall: tn.create(),
5445
5445
  typeName: G.ZodObject,
5446
- ...k(e)
5446
+ ...q(e)
5447
5447
  });
5448
5448
  Ce.strictCreate = (n, e) => new Ce({
5449
5449
  shape: () => n,
5450
5450
  unknownKeys: "strict",
5451
5451
  catchall: tn.create(),
5452
5452
  typeName: G.ZodObject,
5453
- ...k(e)
5453
+ ...q(e)
5454
5454
  });
5455
5455
  Ce.lazycreate = (n, e) => new Ce({
5456
5456
  shape: n,
5457
5457
  unknownKeys: "strip",
5458
5458
  catchall: tn.create(),
5459
5459
  typeName: G.ZodObject,
5460
- ...k(e)
5460
+ ...q(e)
5461
5461
  });
5462
5462
  class oi extends W {
5463
5463
  _parse(e) {
@@ -5530,9 +5530,9 @@ class oi extends W {
5530
5530
  oi.create = (n, e) => new oi({
5531
5531
  options: n,
5532
5532
  typeName: G.ZodUnion,
5533
- ...k(e)
5533
+ ...q(e)
5534
5534
  });
5535
- const Zt = (n) => n instanceof di ? Zt(n.schema) : n instanceof Vt ? Zt(n.innerType()) : n instanceof ui ? [n.value] : n instanceof fn ? n.options : n instanceof pi ? Y.objectValues(n.enum) : n instanceof yi ? Zt(n._def.innerType) : n instanceof ai ? [void 0] : n instanceof si ? [null] : n instanceof Ut ? [void 0, ...Zt(n.unwrap())] : n instanceof mn ? [null, ...Zt(n.unwrap())] : n instanceof Po || n instanceof fi ? Zt(n.unwrap()) : n instanceof hi ? Zt(n._def.innerType) : [];
5535
+ const Zt = (n) => n instanceof di ? Zt(n.schema) : n instanceof Gt ? Zt(n.innerType()) : n instanceof ui ? [n.value] : n instanceof fn ? n.options : n instanceof pi ? Y.objectValues(n.enum) : n instanceof yi ? Zt(n._def.innerType) : n instanceof ai ? [void 0] : n instanceof si ? [null] : n instanceof Ut ? [void 0, ...Zt(n.unwrap())] : n instanceof mn ? [null, ...Zt(n.unwrap())] : n instanceof Po || n instanceof fi ? Zt(n.unwrap()) : n instanceof hi ? Zt(n._def.innerType) : [];
5536
5536
  class Oa extends W {
5537
5537
  _parse(e) {
5538
5538
  const { ctx: t } = this._processInputParams(e);
@@ -5591,7 +5591,7 @@ class Oa extends W {
5591
5591
  discriminator: e,
5592
5592
  options: t,
5593
5593
  optionsMap: a,
5594
- ...k(i)
5594
+ ...q(i)
5595
5595
  });
5596
5596
  }
5597
5597
  }
@@ -5658,7 +5658,7 @@ li.create = (n, e, t) => new li({
5658
5658
  left: n,
5659
5659
  right: e,
5660
5660
  typeName: G.ZodIntersection,
5661
- ...k(t)
5661
+ ...q(t)
5662
5662
  });
5663
5663
  class qt extends W {
5664
5664
  _parse(e) {
@@ -5707,7 +5707,7 @@ qt.create = (n, e) => {
5707
5707
  items: n,
5708
5708
  typeName: G.ZodTuple,
5709
5709
  rest: null,
5710
- ...k(e)
5710
+ ...q(e)
5711
5711
  });
5712
5712
  };
5713
5713
  class ci extends W {
@@ -5742,12 +5742,12 @@ class ci extends W {
5742
5742
  keyType: e,
5743
5743
  valueType: t,
5744
5744
  typeName: G.ZodRecord,
5745
- ...k(i)
5745
+ ...q(i)
5746
5746
  }) : new ci({
5747
- keyType: _t.create(),
5747
+ keyType: Nt.create(),
5748
5748
  valueType: e,
5749
5749
  typeName: G.ZodRecord,
5750
- ...k(t)
5750
+ ...q(t)
5751
5751
  });
5752
5752
  }
5753
5753
  }
@@ -5797,7 +5797,7 @@ pa.create = (n, e, t) => new pa({
5797
5797
  valueType: e,
5798
5798
  keyType: n,
5799
5799
  typeName: G.ZodMap,
5800
- ...k(t)
5800
+ ...q(t)
5801
5801
  });
5802
5802
  class wn extends W {
5803
5803
  _parse(e) {
@@ -5861,7 +5861,7 @@ wn.create = (n, e) => new wn({
5861
5861
  minSize: null,
5862
5862
  maxSize: null,
5863
5863
  typeName: G.ZodSet,
5864
- ...k(e)
5864
+ ...q(e)
5865
5865
  });
5866
5866
  class rr extends W {
5867
5867
  constructor() {
@@ -5960,7 +5960,7 @@ class rr extends W {
5960
5960
  args: e || qt.create([]).rest(On.create()),
5961
5961
  returns: t || On.create(),
5962
5962
  typeName: G.ZodFunction,
5963
- ...k(i)
5963
+ ...q(i)
5964
5964
  });
5965
5965
  }
5966
5966
  }
@@ -5976,7 +5976,7 @@ class di extends W {
5976
5976
  di.create = (n, e) => new di({
5977
5977
  getter: n,
5978
5978
  typeName: G.ZodLazy,
5979
- ...k(e)
5979
+ ...q(e)
5980
5980
  });
5981
5981
  class ui extends W {
5982
5982
  _parse(e) {
@@ -5997,13 +5997,13 @@ class ui extends W {
5997
5997
  ui.create = (n, e) => new ui({
5998
5998
  value: n,
5999
5999
  typeName: G.ZodLiteral,
6000
- ...k(e)
6000
+ ...q(e)
6001
6001
  });
6002
6002
  function xd(n, e) {
6003
6003
  return new fn({
6004
6004
  values: n,
6005
6005
  typeName: G.ZodEnum,
6006
- ...k(e)
6006
+ ...q(e)
6007
6007
  });
6008
6008
  }
6009
6009
  class fn extends W {
@@ -6097,7 +6097,7 @@ ei = /* @__PURE__ */ new WeakMap();
6097
6097
  pi.create = (n, e) => new pi({
6098
6098
  values: n,
6099
6099
  typeName: G.ZodNativeEnum,
6100
- ...k(e)
6100
+ ...q(e)
6101
6101
  });
6102
6102
  class or extends W {
6103
6103
  unwrap() {
@@ -6121,9 +6121,9 @@ class or extends W {
6121
6121
  or.create = (n, e) => new or({
6122
6122
  type: n,
6123
6123
  typeName: G.ZodPromise,
6124
- ...k(e)
6124
+ ...q(e)
6125
6125
  });
6126
- class Vt extends W {
6126
+ class Gt extends W {
6127
6127
  innerType() {
6128
6128
  return this._def.schema;
6129
6129
  }
@@ -6200,17 +6200,17 @@ class Vt extends W {
6200
6200
  Y.assertNever(a);
6201
6201
  }
6202
6202
  }
6203
- Vt.create = (n, e, t) => new Vt({
6203
+ Gt.create = (n, e, t) => new Gt({
6204
6204
  schema: n,
6205
6205
  typeName: G.ZodEffects,
6206
6206
  effect: e,
6207
- ...k(t)
6207
+ ...q(t)
6208
6208
  });
6209
- Vt.createWithPreprocess = (n, e, t) => new Vt({
6209
+ Gt.createWithPreprocess = (n, e, t) => new Gt({
6210
6210
  schema: e,
6211
6211
  effect: { type: "preprocess", transform: n },
6212
6212
  typeName: G.ZodEffects,
6213
- ...k(t)
6213
+ ...q(t)
6214
6214
  });
6215
6215
  class Ut extends W {
6216
6216
  _parse(e) {
@@ -6223,7 +6223,7 @@ class Ut extends W {
6223
6223
  Ut.create = (n, e) => new Ut({
6224
6224
  innerType: n,
6225
6225
  typeName: G.ZodOptional,
6226
- ...k(e)
6226
+ ...q(e)
6227
6227
  });
6228
6228
  class mn extends W {
6229
6229
  _parse(e) {
@@ -6236,7 +6236,7 @@ class mn extends W {
6236
6236
  mn.create = (n, e) => new mn({
6237
6237
  innerType: n,
6238
6238
  typeName: G.ZodNullable,
6239
- ...k(e)
6239
+ ...q(e)
6240
6240
  });
6241
6241
  class yi extends W {
6242
6242
  _parse(e) {
@@ -6256,7 +6256,7 @@ yi.create = (n, e) => new yi({
6256
6256
  innerType: n,
6257
6257
  typeName: G.ZodDefault,
6258
6258
  defaultValue: typeof e.default == "function" ? e.default : () => e.default,
6259
- ...k(e)
6259
+ ...q(e)
6260
6260
  });
6261
6261
  class hi extends W {
6262
6262
  _parse(e) {
@@ -6299,7 +6299,7 @@ hi.create = (n, e) => new hi({
6299
6299
  innerType: n,
6300
6300
  typeName: G.ZodCatch,
6301
6301
  catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
6302
- ...k(e)
6302
+ ...q(e)
6303
6303
  });
6304
6304
  class ya extends W {
6305
6305
  _parse(e) {
@@ -6316,7 +6316,7 @@ class ya extends W {
6316
6316
  }
6317
6317
  ya.create = (n) => new ya({
6318
6318
  typeName: G.ZodNaN,
6319
- ...k(n)
6319
+ ...q(n)
6320
6320
  });
6321
6321
  const Vv = Symbol("zod_brand");
6322
6322
  class Po extends W {
@@ -6384,7 +6384,7 @@ class fi extends W {
6384
6384
  fi.create = (n, e) => new fi({
6385
6385
  innerType: n,
6386
6386
  typeName: G.ZodReadonly,
6387
- ...k(e)
6387
+ ...q(e)
6388
6388
  });
6389
6389
  function $d(n, e = {}, t) {
6390
6390
  return n ? sr.create().superRefine((i, a) => {
@@ -6404,8 +6404,8 @@ var G;
6404
6404
  })(G || (G = {}));
6405
6405
  const Lv = (n, e = {
6406
6406
  message: `Input not instance of ${n.name}`
6407
- }) => $d((t) => t instanceof n, e), ha = _t.create, Do = yn.create, Fv = ya.create, Uv = hn.create, Ao = ii.create, Vd = Cn.create, jv = da.create, kv = ai.create, Gd = si.create, qv = sr.create, ta = On.create, Jv = tn.create, Wv = ua.create, Hv = Nt.create, Ld = Ce.create, Yv = Ce.strictCreate, zv = oi.create, Zv = Oa.create, Xv = li.create, Qv = qt.create, Fd = ci.create, Kv = pa.create, eg = wn.create, tg = rr.create, ng = di.create, rg = ui.create, Ud = fn.create, ig = pi.create, ag = or.create, Rc = Vt.create, sg = Ut.create, og = mn.create, lg = Vt.createWithPreprocess, cg = Bi.create, dg = () => ha().optional(), ug = () => Do().optional(), pg = () => Ao().optional(), yg = {
6408
- string: (n) => _t.create({ ...n, coerce: !0 }),
6407
+ }) => $d((t) => t instanceof n, e), ha = Nt.create, Do = yn.create, Fv = ya.create, Uv = hn.create, Ao = ii.create, Vd = Cn.create, jv = da.create, kv = ai.create, Gd = si.create, qv = sr.create, ta = On.create, Jv = tn.create, Wv = ua.create, Hv = xt.create, Ld = Ce.create, Yv = Ce.strictCreate, zv = oi.create, Zv = Oa.create, Xv = li.create, Qv = qt.create, Fd = ci.create, Kv = pa.create, eg = wn.create, tg = rr.create, ng = di.create, rg = ui.create, Ud = fn.create, ig = pi.create, ag = or.create, Rc = Gt.create, sg = Ut.create, og = mn.create, lg = Gt.createWithPreprocess, cg = Bi.create, dg = () => ha().optional(), ug = () => Do().optional(), pg = () => Ao().optional(), yg = {
6408
+ string: (n) => Nt.create({ ...n, coerce: !0 }),
6409
6409
  number: (n) => yn.create({ ...n, coerce: !0 }),
6410
6410
  boolean: (n) => ii.create({
6411
6411
  ...n,
@@ -6440,7 +6440,7 @@ var c = /* @__PURE__ */ Object.freeze({
6440
6440
  getParsedType: cn,
6441
6441
  ZodType: W,
6442
6442
  datetimeRegex: Nd,
6443
- ZodString: _t,
6443
+ ZodString: Nt,
6444
6444
  ZodNumber: yn,
6445
6445
  ZodBigInt: hn,
6446
6446
  ZodBoolean: ii,
@@ -6452,7 +6452,7 @@ var c = /* @__PURE__ */ Object.freeze({
6452
6452
  ZodUnknown: On,
6453
6453
  ZodNever: tn,
6454
6454
  ZodVoid: ua,
6455
- ZodArray: Nt,
6455
+ ZodArray: xt,
6456
6456
  ZodObject: Ce,
6457
6457
  ZodUnion: oi,
6458
6458
  ZodDiscriminatedUnion: Oa,
@@ -6467,8 +6467,8 @@ var c = /* @__PURE__ */ Object.freeze({
6467
6467
  ZodEnum: fn,
6468
6468
  ZodNativeEnum: pi,
6469
6469
  ZodPromise: or,
6470
- ZodEffects: Vt,
6471
- ZodTransformer: Vt,
6470
+ ZodEffects: Gt,
6471
+ ZodTransformer: Gt,
6472
6472
  ZodOptional: Ut,
6473
6473
  ZodNullable: mn,
6474
6474
  ZodDefault: yi,
@@ -7080,7 +7080,7 @@ var SI = (() => {
7080
7080
  validate: (R, g = !1) => {
7081
7081
  if (!R || typeof R != "string")
7082
7082
  return !1;
7083
- const O = a.consistentLength ? R.length === s : R.length <= s, $ = R.split("").every((q) => i.includes(q));
7083
+ const O = a.consistentLength ? R.length === s : R.length <= s, $ = R.split("").every((k) => i.includes(k));
7084
7084
  return g === !1 ? O && $ : O && $ && PI(Ic(R, u));
7085
7085
  }
7086
7086
  };
@@ -11145,7 +11145,7 @@ const zO = {
11145
11145
  calls: [qw, Uw],
11146
11146
  x: 0,
11147
11147
  y: 0
11148
- }, Ot = "abort-execution-func-declaration-id", $i = "abort-execution-func-exec-var-declaration-id", Wa = "abort-execution-func-small-wait-op-id", $o = "abort-execution-func-long-wait-op-id", Mu = "abort-execution-func-long-wait-process-output-id", _u = "abort-execution-func-exec-var-instance-write-id", Nu = "abort-execution-func-long-wait-return-stmt-id", xu = "abort-execution-func-small-wait-return-stmt-id", Hw = "abort-execution-func-exec-var-instance-abort-call-id", Vo = "abort-execution-func-exec-var-instance-abort-internal-call-id", $u = "abort-execution-func-exec-second-wait-op-id", Yw = {
11148
+ }, Ct = "abort-execution-func-declaration-id", $i = "abort-execution-func-exec-var-declaration-id", Wa = "abort-execution-func-small-wait-op-id", $o = "abort-execution-func-long-wait-op-id", Mu = "abort-execution-func-long-wait-process-output-id", _u = "abort-execution-func-exec-var-instance-write-id", Nu = "abort-execution-func-long-wait-return-stmt-id", xu = "abort-execution-func-small-wait-return-stmt-id", Hw = "abort-execution-func-exec-var-instance-abort-call-id", Vo = "abort-execution-func-exec-var-instance-abort-internal-call-id", $u = "abort-execution-func-exec-second-wait-op-id", Yw = {
11149
11149
  type: r.GenericReference,
11150
11150
  id: "short-wait-return-statement-returned-hello-string-data-type-parent-ref-id",
11151
11151
  entityType: r.ReturnDeclaration,
@@ -11203,7 +11203,7 @@ const zO = {
11203
11203
  type: r.GenericReference,
11204
11204
  id: "short-wait-return-statement-parent-ref-id",
11205
11205
  entityType: r.FunctionDeclaration,
11206
- entityId: Ot
11206
+ entityId: Ct
11207
11207
  }, Vu = {
11208
11208
  type: r.ReturnStatement,
11209
11209
  id: xu,
@@ -11251,7 +11251,7 @@ const zO = {
11251
11251
  type: r.GenericReference,
11252
11252
  id: "small-wait-parent-ref-id",
11253
11253
  entityType: r.FunctionDeclaration,
11254
- entityId: Ot
11254
+ entityId: Ct
11255
11255
  }, aB = {
11256
11256
  type: r.GenericReference,
11257
11257
  id: "small-wait-called-by-ref-one-id",
@@ -11289,7 +11289,7 @@ const zO = {
11289
11289
  type: r.GenericReference,
11290
11290
  id: "abort-exec-func-abort-call-var-instance-main-project-ref-id",
11291
11291
  entityType: r.FunctionDeclaration,
11292
- entityId: Ot
11292
+ entityId: Ct
11293
11293
  }, dB = {
11294
11294
  type: r.GenericReference,
11295
11295
  id: "abort-exec-func-abort-call-var-instance-declaration-ref-id",
@@ -11341,7 +11341,7 @@ const zO = {
11341
11341
  type: r.GenericReference,
11342
11342
  id: "abort-exec-func-var-write-instance-main-project-ref-id",
11343
11343
  entityType: r.FunctionDeclaration,
11344
- entityId: Ot
11344
+ entityId: Ct
11345
11345
  }, hB = {
11346
11346
  type: r.GenericReference,
11347
11347
  id: "abort-exec-func-var-write-instance-called-by-ref-one-id",
@@ -11351,7 +11351,7 @@ const zO = {
11351
11351
  type: r.GenericReference,
11352
11352
  id: "abort-exec-func-var-write-instance-called-by-ref-two-id",
11353
11353
  entityType: r.FunctionDeclaration,
11354
- entityId: Ot
11354
+ entityId: Ct
11355
11355
  }, mB = {
11356
11356
  type: r.GenericReference,
11357
11357
  id: "abort-exec-func-abort-call-var-instance-declaration-ref-id",
@@ -11404,12 +11404,12 @@ const RB = {
11404
11404
  type: r.GenericReference,
11405
11405
  id: "abort-exec-func-var-decl-main-project-ref-id",
11406
11406
  entityType: r.FunctionDeclaration,
11407
- entityId: Ot
11407
+ entityId: Ct
11408
11408
  }, vB = {
11409
11409
  type: r.GenericReference,
11410
11410
  id: "abort-exec-func-var-decl-called-by-ref-one-id",
11411
11411
  entityType: r.FunctionDeclaration,
11412
- entityId: Ot
11412
+ entityId: Ct
11413
11413
  }, gB = {
11414
11414
  id: $i,
11415
11415
  type: r.VariableDeclaration,
@@ -11488,7 +11488,7 @@ const RB = {
11488
11488
  type: r.GenericReference,
11489
11489
  id: "long-wait-return-statement-parent-ref-id",
11490
11490
  entityType: r.FunctionDeclaration,
11491
- entityId: Ot
11491
+ entityId: Ct
11492
11492
  }, Lu = {
11493
11493
  type: r.ReturnStatement,
11494
11494
  id: Nu,
@@ -11536,12 +11536,12 @@ const RB = {
11536
11536
  type: r.GenericReference,
11537
11537
  id: "long-parent-ref-id",
11538
11538
  entityType: r.FunctionDeclaration,
11539
- entityId: Ot
11539
+ entityId: Ct
11540
11540
  }, _B = {
11541
11541
  type: r.GenericReference,
11542
11542
  id: "long-called-by-ref-one-id",
11543
11543
  entityType: r.FunctionDeclaration,
11544
- entityId: Ot
11544
+ entityId: Ct
11545
11545
  }, NB = {
11546
11546
  id: Mu,
11547
11547
  type: r.OutputMap,
@@ -11603,12 +11603,12 @@ const RB = {
11603
11603
  type: r.GenericReference,
11604
11604
  id: "small-wait-parent-ref-id",
11605
11605
  entityType: r.FunctionDeclaration,
11606
- entityId: Ot
11606
+ entityId: Ct
11607
11607
  }, FB = {
11608
11608
  type: r.GenericReference,
11609
11609
  id: "small-wait-called-by-ref-one-id",
11610
11610
  entityType: r.FunctionDeclaration,
11611
- entityId: Ot
11611
+ entityId: Ct
11612
11612
  }, UB = {
11613
11613
  id: Wa,
11614
11614
  type: r.Operation,
@@ -13819,7 +13819,7 @@ const Lp = {
13819
13819
  id: Qo,
13820
13820
  type: r.Operation,
13821
13821
  version: 1,
13822
- declaration: Lt,
13822
+ declaration: Ft,
13823
13823
  inputs: [H0],
13824
13824
  dynamicArguments: [],
13825
13825
  outputs: [],
@@ -13877,7 +13877,7 @@ const Lp = {
13877
13877
  id: "wait-for-random-amount-id",
13878
13878
  type: r.Operation,
13879
13879
  version: 1,
13880
- declaration: Lt,
13880
+ declaration: Ft,
13881
13881
  inputs: [K0],
13882
13882
  dynamicArguments: [],
13883
13883
  process: null,
@@ -14061,7 +14061,7 @@ const s1 = {
14061
14061
  id: Fi,
14062
14062
  type: r.Operation,
14063
14063
  version: 1,
14064
- declaration: Lt,
14064
+ declaration: Ft,
14065
14065
  inputs: [h1],
14066
14066
  dynamicArguments: [],
14067
14067
  outputs: [p1],
@@ -17305,8 +17305,8 @@ function AL() {
17305
17305
  Se.LessThanOrEqual,
17306
17306
  Se.And,
17307
17307
  Se.Or,
17308
- $t.Empty,
17309
- $t.NotEmpty
17308
+ Vt.Empty,
17309
+ Vt.NotEmpty
17310
17310
  ]);
17311
17311
  }
17312
17312
  function Ji() {
@@ -17672,7 +17672,7 @@ function WL() {
17672
17672
  })
17673
17673
  );
17674
17674
  }
17675
- function Gt() {
17675
+ function Lt() {
17676
17676
  return c.object({
17677
17677
  id: c.string(),
17678
17678
  version: c.number(),
@@ -17688,77 +17688,77 @@ function Gt() {
17688
17688
  });
17689
17689
  }
17690
17690
  function HL() {
17691
- return Gt().extend({
17691
+ return Lt().extend({
17692
17692
  name: c.literal(v.String),
17693
17693
  value: c.string(),
17694
17694
  autogeneration: Zy.nullable()
17695
17695
  });
17696
17696
  }
17697
17697
  function YL() {
17698
- return Gt().extend({
17698
+ return Lt().extend({
17699
17699
  name: c.literal(v.Number),
17700
17700
  value: c.number(),
17701
17701
  autogeneration: Xy.nullable()
17702
17702
  });
17703
17703
  }
17704
17704
  function zL() {
17705
- return Gt().extend({
17705
+ return Lt().extend({
17706
17706
  name: c.literal(v.Boolean),
17707
17707
  value: c.boolean(),
17708
17708
  autogeneration: zy.nullable()
17709
17709
  });
17710
17710
  }
17711
17711
  function ZL() {
17712
- return Gt().extend({
17712
+ return Lt().extend({
17713
17713
  name: c.literal(v.Null),
17714
17714
  value: c.null(),
17715
17715
  autogeneration: c.null()
17716
17716
  });
17717
17717
  }
17718
17718
  function XL() {
17719
- return Gt().extend({
17719
+ return Lt().extend({
17720
17720
  name: c.literal(v.Date),
17721
17721
  value: c.date(),
17722
17722
  autogeneration: Qy.nullable()
17723
17723
  });
17724
17724
  }
17725
17725
  function QL() {
17726
- return Gt().extend({
17726
+ return Lt().extend({
17727
17727
  name: c.literal(v.JSON),
17728
17728
  value: sh(),
17729
17729
  autogeneration: c.null()
17730
17730
  });
17731
17731
  }
17732
17732
  function KL() {
17733
- return Gt().extend({
17733
+ return Lt().extend({
17734
17734
  name: c.literal(v.Enum),
17735
17735
  value: c.string(),
17736
17736
  autogeneration: c.null()
17737
17737
  });
17738
17738
  }
17739
17739
  function e4() {
17740
- return Gt().extend({
17740
+ return Lt().extend({
17741
17741
  name: c.literal(v.File),
17742
17742
  value: c.string(),
17743
17743
  autogeneration: c.null()
17744
17744
  });
17745
17745
  }
17746
17746
  function t4() {
17747
- return Gt().extend({
17747
+ return Lt().extend({
17748
17748
  name: c.literal(v.UUID),
17749
17749
  value: c.string(),
17750
17750
  autogeneration: Yy.nullable()
17751
17751
  });
17752
17752
  }
17753
17753
  function n4() {
17754
- return Gt().extend({
17754
+ return Lt().extend({
17755
17755
  name: c.literal(v.EntityTemplate),
17756
17756
  value: Hn(),
17757
17757
  autogeneration: c.null()
17758
17758
  });
17759
17759
  }
17760
17760
  function r4() {
17761
- return Gt().extend({
17761
+ return Lt().extend({
17762
17762
  name: c.literal(v.ActionDescriptor),
17763
17763
  value: Hi(),
17764
17764
  autogeneration: c.null()
@@ -20281,7 +20281,7 @@ function zU(n, e) {
20281
20281
  }
20282
20282
  return !(i.length > 0);
20283
20283
  }
20284
- var wt = /* @__PURE__ */ ((n) => (n.BothUnconstrained = "both-unconstrained", n.AConstraintBUnconstrained = "a-constraint-b-unconstrained", n.BConstraintAUnconstrained = "b-constraint-a-unconstrained", n.Same = "same", n.AIsListBIsNot = "a-is-list-b-is-not", n.BIsListAIsNot = "b-is-list-a-is-not", n.AIsNullableBIsNot = "a-is-nullable-b-is-not", n.BIsNullableAIsNot = "b-is-nullable-a-is-not", n.AIsTemplateBIsNot = "a-is-template-b-is-not", n.BIsTemplateAIsNot = "b-is-template-a-is-not", n.BothUntyped = "both-untyped", n.AIsUntypedBIsNot = "a-is-untyped-b-is-not", n.BIsUntypedAIsNot = "b-is-untyped-a-is-not", n.TypeEntityMismatch = "type-entity-mismatch", n.SameCustomEntities = "same-custom-entities", n.CompatibleCustomEntities = "compatible-custom-entities", n.IncompatibleCustomEntities = "incompatible-custom-entities", n.SamePrimitiveEntities = "same-primitive-entities", n.IncompatiblePrimitiveEntities = "incompatible-primitive-entities", n.SameBuiltInBaseEntities = "same-built-in-base-entities", n.IncompatibleBuiltInBaseEntities = "incompatible-built-in-base-entities", n.CheckUnknown = "check-unknown", n))(wt || {});
20284
+ var Bt = /* @__PURE__ */ ((n) => (n.BothUnconstrained = "both-unconstrained", n.AConstraintBUnconstrained = "a-constraint-b-unconstrained", n.BConstraintAUnconstrained = "b-constraint-a-unconstrained", n.Same = "same", n.AIsListBIsNot = "a-is-list-b-is-not", n.BIsListAIsNot = "b-is-list-a-is-not", n.AIsNullableBIsNot = "a-is-nullable-b-is-not", n.BIsNullableAIsNot = "b-is-nullable-a-is-not", n.AIsTemplateBIsNot = "a-is-template-b-is-not", n.BIsTemplateAIsNot = "b-is-template-a-is-not", n.BothUntyped = "both-untyped", n.AIsUntypedBIsNot = "a-is-untyped-b-is-not", n.BIsUntypedAIsNot = "b-is-untyped-a-is-not", n.TypeEntityMismatch = "type-entity-mismatch", n.SameCustomEntities = "same-custom-entities", n.CompatibleCustomEntities = "compatible-custom-entities", n.IncompatibleCustomEntities = "incompatible-custom-entities", n.SamePrimitiveEntities = "same-primitive-entities", n.IncompatiblePrimitiveEntities = "incompatible-primitive-entities", n.SameBuiltInBaseEntities = "same-built-in-base-entities", n.IncompatibleBuiltInBaseEntities = "incompatible-built-in-base-entities", n.CheckUnknown = "check-unknown", n))(Bt || {});
20285
20285
  function lc(n, e) {
20286
20286
  var t, i, a, s, o, d, u, y, m, f, R;
20287
20287
  if (n && n.type !== r.DataType || e && e.type !== r.DataType)
@@ -20574,7 +20574,7 @@ function cf(n, e) {
20574
20574
  if (n.type === r.Project)
20575
20575
  t.push(...n.variableDeclarations);
20576
20576
  else {
20577
- const a = xt(Ie(n)).filter(
20577
+ const a = $t(Ie(n)).filter(
20578
20578
  (s) => s.type === r.VariableDeclaration
20579
20579
  );
20580
20580
  t.push(...a), n.parent && (Tt.includes(n.parent.type) || n.parent.type === r.Project) && t.push(
@@ -20731,9 +20731,9 @@ function Ms(n) {
20731
20731
  return "and";
20732
20732
  case Se.Or:
20733
20733
  return "or";
20734
- case $t.Empty:
20734
+ case Vt.Empty:
20735
20735
  return "is empty";
20736
- case $t.NotEmpty:
20736
+ case Vt.NotEmpty:
20737
20737
  return "is not empty";
20738
20738
  }
20739
20739
  }
@@ -20931,18 +20931,18 @@ function D(n, e) {
20931
20931
  case r.Operation:
20932
20932
  case r.InternalCall:
20933
20933
  case r.Loop:
20934
- const i = Bt(n.declaration, e);
20934
+ const i = Mt(n.declaration, e);
20935
20935
  return D(i, e);
20936
20936
  case r.ActionDescriptor:
20937
20937
  return d8(n);
20938
20938
  case r.BreakStatement:
20939
- const a = Bt(
20939
+ const a = Mt(
20940
20940
  n.parent,
20941
20941
  e
20942
20942
  );
20943
20943
  return `Stop loop ${D(a, e)}`;
20944
20944
  case r.ContinueStatement:
20945
- const s = Bt(
20945
+ const s = Mt(
20946
20946
  n.parent,
20947
20947
  e
20948
20948
  );
@@ -20951,7 +20951,7 @@ function D(n, e) {
20951
20951
  e
20952
20952
  )}`;
20953
20953
  case r.FunctionCall:
20954
- return Bt(
20954
+ return Mt(
20955
20955
  n.declaration,
20956
20956
  e
20957
20957
  ).name;
@@ -20975,12 +20975,12 @@ function D(n, e) {
20975
20975
  return `If ${Ms(d)}`;
20976
20976
  }
20977
20977
  case r.ReturnStatement: {
20978
- const d = Bt(n.parent, e);
20978
+ const d = Mt(n.parent, e);
20979
20979
  return `Output of ${D(d, e)}`;
20980
20980
  }
20981
20981
  case r.InputMap:
20982
20982
  if (n.declaration) {
20983
- const d = Bt(
20983
+ const d = Mt(
20984
20984
  n.declaration,
20985
20985
  e
20986
20986
  );
@@ -20988,7 +20988,7 @@ function D(n, e) {
20988
20988
  } else
20989
20989
  return n.name || "";
20990
20990
  case r.VariableInstance: {
20991
- const d = Bt(
20991
+ const d = Mt(
20992
20992
  n.declaration,
20993
20993
  e
20994
20994
  );
@@ -20996,7 +20996,7 @@ function D(n, e) {
20996
20996
  }
20997
20997
  case r.OutputMap:
20998
20998
  if (n.declaration) {
20999
- const d = Bt(
20999
+ const d = Mt(
21000
21000
  n.declaration,
21001
21001
  e
21002
21002
  );
@@ -21082,7 +21082,7 @@ function yf(n, e) {
21082
21082
  issue: null
21083
21083
  })
21084
21084
  );
21085
- const i = n.parent && Bt(n.parent, e) || e;
21085
+ const i = n.parent && Mt(n.parent, e) || e;
21086
21086
  if (!i)
21087
21087
  t.push(
21088
21088
  new T({
@@ -22095,9 +22095,9 @@ ${_n}`, a.push(
22095
22095
  );
22096
22096
  } else {
22097
22097
  const O = f.methods.find(
22098
- (Ct) => {
22098
+ (wt) => {
22099
22099
  var Me;
22100
- return ((Me = Ct.implements) == null ? void 0 : Me.id) === i.implements;
22100
+ return ((Me = wt.implements) == null ? void 0 : Me.id) === i.implements;
22101
22101
  }
22102
22102
  );
22103
22103
  O && a.push(
@@ -22114,7 +22114,7 @@ If you want to modify the existing implementation, you can update the existing m
22114
22114
  );
22115
22115
  const $ = i.implements;
22116
22116
  f.abstractMethods.find(
22117
- (Ct) => Ct.id === $
22117
+ (wt) => wt.id === $
22118
22118
  ) || a.push(
22119
22119
  new T({
22120
22120
  id: `${i.id}--${p.InvalidImplementsReference}`,
@@ -23139,15 +23139,15 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
23139
23139
  );
23140
23140
  u.defaultValue = y || null;
23141
23141
  const m = (g = this.andChildrenGroup) == null ? void 0 : g.map(
23142
- ($, q) => $.clone(
23142
+ ($, k) => $.clone(
23143
23143
  this,
23144
- d + "-and-group-data-type-" + q + "-id",
23144
+ d + "-and-group-data-type-" + k + "-id",
23145
23145
  i
23146
23146
  )
23147
23147
  ), f = (O = this.orChildrenGroup) == null ? void 0 : O.map(
23148
- ($, q) => $.clone(
23148
+ ($, k) => $.clone(
23149
23149
  this,
23150
- d + "-or-group-data-type-" + q + "-id",
23150
+ d + "-or-group-data-type-" + k + "-id",
23151
23151
  i
23152
23152
  )
23153
23153
  );
@@ -27297,13 +27297,13 @@ ${Jc}`,
27297
27297
  (Me) => Me.type === r.ReturnDeclaration
27298
27298
  ), $ = O.find(
27299
27299
  (Me) => Me.name === i.name
27300
- ), q = O.length ? `The parent entity already implements the following return declarations: ${_(
27300
+ ), k = O.length ? `The parent entity already implements the following return declarations: ${_(
27301
27301
  O.map(
27302
27302
  (Me) => `'${Me.id}' (${Me.name})`
27303
27303
  ),
27304
27304
  ", ",
27305
27305
  " and "
27306
- )}.` : "The parent entity does not yet have any implemented return declarations.", Ct = g.length ? `The parent entity is still missing the following returns in the implementation: ${_(
27306
+ )}.` : "The parent entity does not yet have any implemented return declarations.", wt = g.length ? `The parent entity is still missing the following returns in the implementation: ${_(
27307
27307
  g.map(
27308
27308
  (Me) => `'${Me.id}' (${Me.name})`
27309
27309
  ),
@@ -27317,8 +27317,8 @@ ${Jc}`,
27317
27317
  severity: h.Error,
27318
27318
  message: `Entity of type '${r.ReturnDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${y.type}' with id '${y.id}' that implements a ${r.ActionDescriptor} with fixed outputs.
27319
27319
  Adding a new return would make the implementation invalid. An return with the same name already exists in the parent entity.
27320
- ${q}
27321
- ${Ct}`,
27320
+ ${k}
27321
+ ${wt}`,
27322
27322
  issue: null
27323
27323
  })
27324
27324
  ) : a.push(
@@ -27328,8 +27328,8 @@ ${Ct}`,
27328
27328
  severity: h.Error,
27329
27329
  message: `Entity of type '${r.ReturnDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${y.type}' with id '${y.id}' that implements a ${r.ActionDescriptor} with fixed outputs.
27330
27330
  Adding a new return would make the implementation invalid. There are no returns in the descriptor with the same name.
27331
- ${q}
27332
- ${Ct}`,
27331
+ ${k}
27332
+ ${wt}`,
27333
27333
  issue: null
27334
27334
  })
27335
27335
  );
@@ -27616,7 +27616,7 @@ l(ie, "MUTABLE_DOWNSTREAM_PROPERTIES", []), l(ie, "INMUTABLE_DOWNSTREAM_PROPERTI
27616
27616
  ...ie.UPSTREAM_PROPERTIES,
27617
27617
  ...ie.DOWNSTREAM_PROPERTIES
27618
27618
  ]);
27619
- let St = ie;
27619
+ let Ot = ie;
27620
27620
  function O8(n) {
27621
27621
  var o;
27622
27622
  const e = cL(), t = n.toJSON();
@@ -28250,9 +28250,9 @@ l(ve, "MUTABLE_DOWNSTREAM_PROPERTIES", [
28250
28250
  ...ve.MUTABLE_DOWNSTREAM_PROPERTIES,
28251
28251
  ...ve.INMUTABLE_DOWNSTREAM_PROPERTIES
28252
28252
  ]), l(ve, "PROPERTIES", [
28253
- ...St.META_PROPERTIES,
28254
- ...St.UPSTREAM_PROPERTIES,
28255
- ...St.DOWNSTREAM_PROPERTIES
28253
+ ...Ot.META_PROPERTIES,
28254
+ ...Ot.UPSTREAM_PROPERTIES,
28255
+ ...Ot.DOWNSTREAM_PROPERTIES
28256
28256
  ]);
28257
28257
  let Rr = ve;
28258
28258
  function C8(n) {
@@ -28599,41 +28599,40 @@ This variable's data-type has an 'entity' field that references an entity with i
28599
28599
  }).error
28600
28600
  );
28601
28601
  else {
28602
- const a = Bf(i);
28603
- let s = "";
28604
- a ? i.methods.length ? s = `
28602
+ const a = Bf(i), s = [];
28603
+ [
28604
+ r.CustomEntity,
28605
+ r.BuiltInBaseEntity,
28606
+ r.PrimitiveEntity
28607
+ ].includes(i.type) && s.push(
28608
+ ...i.getAllInteractiveMethods()
28609
+ );
28610
+ let o = "";
28611
+ a ? i.methods.length ? o = `
28605
28612
  All 'function-declaration' entities attached as methods to the parent data-type 'entity' field, available to be called as 'internal-calls' in this variable are:
28606
- - ${i.methods.map((u) => u.id).join(
28613
+ - ${i.methods.map((y) => y.id).join(
28607
28614
  `
28608
28615
  - `
28609
28616
  )}
28610
- You can reference any of them as the 'delcaration' property on a new 'internal-call' entity.` : i.type === r.CustomEntity ? s = `
28617
+ You can reference any of them as the 'delcaration' property on a new 'internal-call' entity.` : i.type === r.CustomEntity ? o = `
28611
28618
  This variable's data-type 'entity' is a custom entity which doesn't have any methods attached to it yet.
28612
28619
  You can attach methods to it by creating 'function-declaration' entities which have the entity as its 'parent' field. Then you can reference them as the 'declaration' property on a new 'internal-call' entity in a variable` : [r.BuiltInBaseEntity, r.PrimitiveEntity].includes(
28613
28620
  i.type
28614
- ) && (s = `
28621
+ ) && (o = `
28615
28622
  This variable's data-type 'entity' is a ${i.type} which doesn't have any methods attached to it yet.
28616
- Built-in entity types can't have methods attached to them by the user. They are predefined entities that can't be modified. You can reference them as the 'declaration' property on a new 'internal-call' entity in a variable`) : i.type === r.CustomEntity ? s = `
28617
- This variable's data-type 'entity' is a custom entity which extends or implements a non-interactive 'built-in-base-entity'.s` : i.type === r.BuiltInBaseEntity && (s = `
28623
+ Built-in entity types can't have methods attached to them by the user. They are predefined entities that can't be modified. You can reference them as the 'declaration' property on a new 'internal-call' entity in a variable`) : i.type === r.CustomEntity ? o = `
28624
+ This variable's data-type 'entity' is a custom entity which extends or implements a non-interactive 'built-in-base-entity'.s` : i.type === r.BuiltInBaseEntity && (o = `
28618
28625
  This variable's data-type 'entity' is a non-interactive 'built-in-base-entity'.s`);
28619
- const o = (i.methods || []).find((d) => d.id === n.declaration.id);
28620
- o ? o.type !== r.FunctionDeclaration ? e.push(
28626
+ const d = s.find(
28627
+ (u) => u.id === n.declaration.id
28628
+ );
28629
+ d ? d.type !== r.FunctionDeclaration && e.push(
28621
28630
  U({
28622
28631
  id: `${n.id}--${b.InternalCallDeclarationIsNotFunctionDeclaration}`,
28623
28632
  code: b.InternalCallDeclarationIsNotFunctionDeclaration,
28624
28633
  severity: h.Error,
28625
28634
  message: `Entity of type "${n.type}" with id "${n.id}", points to a 'declaration' that isn't a 'function-declaration' entity.
28626
- The declaration of the internal-call must be a 'function-declaration' entity which exists as a method in the entity of the data-type of the parent variable.${s}`,
28627
- issue: null,
28628
- entity: n
28629
- }).error
28630
- ) : n.declaration.parent.id !== i.id && e.push(
28631
- U({
28632
- id: `${n.id}--${b.InternalCallDeclarationNotInParentDatatypeEntity}`,
28633
- code: b.InternalCallDeclarationNotInParentDatatypeEntity,
28634
- severity: h.Error,
28635
- message: `Entity of type "${n.type}" with id "${n.id}", has a declaration method (function-declaration) that doesn't belong to its parent's data type entity.
28636
- The data type on this variable points to a different entity than the declaration of the internal-call.${s}`,
28635
+ The declaration of the internal-call must be a 'function-declaration' entity which exists as a method in the entity of the data-type of the parent variable.${o}`,
28637
28636
  issue: null,
28638
28637
  entity: n
28639
28638
  }).error
@@ -28642,7 +28641,7 @@ The data type on this variable points to a different entity than the declaration
28642
28641
  id: `${n.id}--${b.InternalCallDeclarationNotFoundInParentDatatypeEntity}`,
28643
28642
  code: b.InternalCallDeclarationNotFoundInParentDatatypeEntity,
28644
28643
  severity: h.Error,
28645
- message: `Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) with id "${n.declaration}".${s}`,
28644
+ message: `Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) with id "${n.declaration}".${o}`,
28646
28645
  issue: null,
28647
28646
  entity: n
28648
28647
  }).error
@@ -28802,10 +28801,10 @@ This variable's data-type 'entity' is a custom entity which extends or implement
28802
28801
  ${_n}` : y.type === r.BuiltInBaseEntity && (f = `
28803
28802
  This variable's data-type 'entity' is a non-interactive 'built-in-base-entity'.
28804
28803
  ${_n}`);
28805
- const R = i.declaration, g = t.get(
28804
+ const R = i.declaration;
28805
+ if (!t.get(
28806
28806
  R
28807
- );
28808
- if (!g)
28807
+ ))
28809
28808
  a.push(
28810
28809
  new T({
28811
28810
  id: `${i.id}--${p.ReferencedEntityNotFound}`,
@@ -28816,8 +28815,18 @@ ${_n}`);
28816
28815
  })
28817
28816
  );
28818
28817
  else {
28819
- const O = (y.methods || []).find(($) => $.id === i.declaration);
28820
- O ? O.type !== r.FunctionDeclaration ? a.push(
28818
+ const O = [];
28819
+ [
28820
+ r.CustomEntity,
28821
+ r.BuiltInBaseEntity,
28822
+ r.PrimitiveEntity
28823
+ ].includes(y.type) && O.push(
28824
+ ...y.getAllInteractiveMethods()
28825
+ );
28826
+ const $ = O.find(
28827
+ (k) => k.id === i.declaration
28828
+ );
28829
+ $ ? $.type !== r.FunctionDeclaration && a.push(
28821
28830
  new T({
28822
28831
  id: `${i.id}--${b.InternalCallDeclarationIsNotFunctionDeclaration}`,
28823
28832
  code: b.InternalCallDeclarationIsNotFunctionDeclaration,
@@ -28826,15 +28835,6 @@ ${_n}`);
28826
28835
  The declaration of the internal-call must be a 'function-declaration' entity which exists as a method in the entity of the data-type of the parent variable.${f}`,
28827
28836
  issue: null
28828
28837
  })
28829
- ) : g.parent.id !== y.id && a.push(
28830
- new T({
28831
- id: `${i.id}--${b.InternalCallDeclarationNotInParentDatatypeEntity}`,
28832
- code: b.InternalCallDeclarationNotInParentDatatypeEntity,
28833
- severity: h.Error,
28834
- message: `Entity of type "${i.type}" with id "${i.id}", has a declaration method (function-declaration) that doesn't belong to its parent's data type entity.
28835
- The data type on this variable points to a different entity than the declaration of the internal-call.${f}`,
28836
- issue: null
28837
- })
28838
28838
  ) : a.push(
28839
28839
  new T({
28840
28840
  id: `${i.id}--${b.InternalCallDeclarationNotFoundInParentDatatypeEntity}`,
@@ -30434,10 +30434,10 @@ const le = class le {
30434
30434
  ($) => $.name === i.name
30435
30435
  ), m = u.fixedArguments.filter(($) => !d.inputs.find(
30436
30436
  // @ts-ignore
30437
- (Ct) => (
30437
+ (wt) => (
30438
30438
  // @ts-ignore
30439
- Ct.type === r.ArgumentDeclaration && // @ts-ignore
30440
- Ct.name === $.name
30439
+ wt.type === r.ArgumentDeclaration && // @ts-ignore
30440
+ wt.name === $.name
30441
30441
  )
30442
30442
  )), f = (
30443
30443
  // @ts-ignore
@@ -31940,9 +31940,9 @@ l(Qe, "MUTABLE_DOWNSTREAM_PROPERTIES", ["outputs", "throws"]), l(Qe, "INMUTABLE_
31940
31940
  ...dt.MUTABLE_DOWNSTREAM_PROPERTIES,
31941
31941
  ...dt.INMUTABLE_DOWNSTREAM_PROPERTIES
31942
31942
  ]), l(Qe, "PROPERTIES", [
31943
- ...St.META_PROPERTIES,
31944
- ...St.UPSTREAM_PROPERTIES,
31945
- ...St.DOWNSTREAM_PROPERTIES
31943
+ ...Ot.META_PROPERTIES,
31944
+ ...Ot.UPSTREAM_PROPERTIES,
31945
+ ...Ot.DOWNSTREAM_PROPERTIES
31946
31946
  ]);
31947
31947
  let gr = Qe;
31948
31948
  function L8(n) {
@@ -33663,7 +33663,7 @@ If you are trying to create a new entity, please use a different id, for example
33663
33663
  e
33664
33664
  );
33665
33665
  case r.ReturnDeclaration:
33666
- return St.validateGenerationTarget(
33666
+ return Ot.validateGenerationTarget(
33667
33667
  t,
33668
33668
  e
33669
33669
  );
@@ -33786,7 +33786,7 @@ And there are no upstream references that can be updated.` : `
33786
33786
  There are no upstream references that can be updated.`;
33787
33787
  return a;
33788
33788
  }
33789
- function e5(n, e) {
33789
+ function e3(n, e) {
33790
33790
  const t = [];
33791
33791
  let i = !1;
33792
33792
  if (Di.includes(e.type) && t.push(
@@ -33891,13 +33891,13 @@ ${Sn}`,
33891
33891
  const a = mc(e.type);
33892
33892
  if (a) {
33893
33893
  // @ts-ignore
33894
- (a.INMUTABLE_META_PROPERTIES || []).forEach((q) => {
33895
- ["type", "id"].includes(q) || // @ts-ignore
33896
- n[q] && // @ts-ignore
33897
- !ti(n[q]) && (t.push(
33894
+ (a.INMUTABLE_META_PROPERTIES || []).forEach((k) => {
33895
+ ["type", "id"].includes(k) || // @ts-ignore
33896
+ n[k] && // @ts-ignore
33897
+ !ti(n[k]) && (t.push(
33898
33898
  new T({
33899
33899
  id: `${e.id}--${p.InvalidInmutablePropertyOverride}`,
33900
- message: `Entity of type "${e.type}" with id "${e.id}" cannot have the property "${q}" updated. It is an inmutable property that is set only when the entity is created.
33900
+ message: `Entity of type "${e.type}" with id "${e.id}" cannot have the property "${k}" updated. It is an inmutable property that is set only when the entity is created.
33901
33901
  If you need to update this property, you should delete the entity and create a new one with the updated value.`,
33902
33902
  severity: h.Error,
33903
33903
  code: p.InvalidInmutablePropertyOverride,
@@ -33905,28 +33905,28 @@ If you need to update this property, you should delete the entity and create a n
33905
33905
  })
33906
33906
  ), i = !0);
33907
33907
  }), // @ts-ignore
33908
- (a.DOWNSTREAM_PROPERTIES || []).forEach((q) => {
33908
+ (a.DOWNSTREAM_PROPERTIES || []).forEach((k) => {
33909
33909
  // @ts-ignore
33910
- n[q] && // @ts-ignore
33911
- !ti(n[q]) && (t.push(
33910
+ n[k] && // @ts-ignore
33911
+ !ti(n[k]) && (t.push(
33912
33912
  new T({
33913
33913
  id: `${e.id}--${p.InvalidDownstreamPropertyOverride}`,
33914
- message: `Entity of type "${e.type}" with id "${e.id}" cannot have the property "${q}" set directly. It is a downstream property that points to a downstream nested entity.
33914
+ message: `Entity of type "${e.type}" with id "${e.id}" cannot have the property "${k}" set directly. It is a downstream property that points to a downstream nested entity.
33915
33915
  All downstream references are managed by the downstream entity. Entities only manage their own upstream references.
33916
- To modify '${q}', target the entity that it points to and its equivalent property.`,
33916
+ To modify '${k}', target the entity that it points to and its equivalent property.`,
33917
33917
  severity: h.Error,
33918
33918
  code: p.InvalidDownstreamPropertyOverride,
33919
33919
  issue: null
33920
33920
  })
33921
33921
  ), i = !0);
33922
33922
  }), // @ts-ignore
33923
- (a.INMUTABLE_UPSTREAM_PROPERTIES || []).forEach((q) => {
33923
+ (a.INMUTABLE_UPSTREAM_PROPERTIES || []).forEach((k) => {
33924
33924
  // @ts-ignore
33925
- n[q] && // @ts-ignore
33926
- !ti(n[q]) && (t.push(
33925
+ n[k] && // @ts-ignore
33926
+ !ti(n[k]) && (t.push(
33927
33927
  new T({
33928
33928
  id: `${e.id}--${p.InvalidInmutablePropertyOverride}`,
33929
- message: `Entity of type "${e.type}" with id "${e.id}" cannot have the property "${q}" updated. It is an inmutable property that is set only when the entity is created.
33929
+ message: `Entity of type "${e.type}" with id "${e.id}" cannot have the property "${k}" updated. It is an inmutable property that is set only when the entity is created.
33930
33930
  If you need to update this property, you should delete the entity and create a new one with the updated value.`,
33931
33931
  severity: h.Error,
33932
33932
  code: p.InvalidInmutablePropertyOverride,
@@ -33935,11 +33935,11 @@ If you need to update this property, you should delete the entity and create a n
33935
33935
  ), i = !0);
33936
33936
  });
33937
33937
  const $ = a.PROPERTIES || [];
33938
- $.length > 0 && Object.keys(n).forEach((q) => {
33939
- $.includes(q) || t.push(
33938
+ $.length > 0 && Object.keys(n).forEach((k) => {
33939
+ $.includes(k) || t.push(
33940
33940
  new T({
33941
33941
  id: `${e.id}--${p.UnrecognizedProperty}`,
33942
- message: `Entity of type "${e.type}" with id "${e.id}" has an unrecognized property "${q}" that will be ignored.`,
33942
+ message: `Entity of type "${e.type}" with id "${e.id}" has an unrecognized property "${k}" that will be ignored.`,
33943
33943
  severity: h.Warning,
33944
33944
  code: p.UnrecognizedProperty,
33945
33945
  issue: null
@@ -34191,7 +34191,7 @@ To modify '${d}', target the entity that it points to and its equivalent propert
34191
34191
  }
34192
34192
  return t;
34193
34193
  }
34194
- function t5(n, e) {
34194
+ function t3(n, e) {
34195
34195
  const t = [];
34196
34196
  if (!n.parent)
34197
34197
  return t;
@@ -34380,14 +34380,14 @@ All pass-through callable entities are: ${_(
34380
34380
  pn,
34381
34381
  ", ",
34382
34382
  " and "
34383
- )}.`, n5 = `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.
34383
+ )}.`, n3 = `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.
34384
34384
  All callable entity types are: ${_(
34385
34385
  xn,
34386
34386
  ", ",
34387
34387
  " and "
34388
34388
  )}.`, Sn = `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).
34389
34389
  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.`, Jc = `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.
34390
- 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'.`, r5 = `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.
34390
+ 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'.`, r3 = `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.
34391
34391
  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.`, Wc = `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.
34392
34392
  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.`, _n = `Entities of type '${r.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.`, bf = `Entities that read values from other entities, can be connected with entities that write values to them. Value reading entity types are: '${_(
34393
34393
  Kn,
@@ -34424,7 +34424,7 @@ function Xt(n) {
34424
34424
  ${typeof n == "string" ? n : JSON.stringify(n, null, 2)}
34425
34425
  \`\`\``;
34426
34426
  }
34427
- function i5(n, e) {
34427
+ function i3(n, e) {
34428
34428
  let t = {};
34429
34429
  switch (n) {
34430
34430
  case "add_caller":
@@ -34796,7 +34796,7 @@ function z8(n, e) {
34796
34796
  ) ? (Ae.includes(i.type) && ((i.calledBySuccess || []).find(
34797
34797
  (O) => O === f.id
34798
34798
  ) ? (f.successCalls || []).find(
34799
- (q) => Ae.includes(q.type)
34799
+ (k) => Ae.includes(k.type)
34800
34800
  ) && t.push(
34801
34801
  new T({
34802
34802
  id: `${i.id}--${f.id}--${b.UnreachableEntity}`,
@@ -34809,7 +34809,7 @@ The new termination statement is redundant because both entities would be called
34809
34809
  ) : (i.calledByError || []).find(
34810
34810
  (O) => O === f.id
34811
34811
  ) ? (f.errorCalls || []).find(
34812
- (q) => Ae.includes(q.type)
34812
+ (k) => Ae.includes(k.type)
34813
34813
  ) && t.push(
34814
34814
  new T({
34815
34815
  id: `${i.id}--${f.id}--${b.UnreachableEntity}`,
@@ -34822,7 +34822,7 @@ The new termination statement is redundant because both entities would be called
34822
34822
  ) : (i.calledByEntry || []).find(
34823
34823
  (O) => O === f.id
34824
34824
  ) && (f.calls || []).find(
34825
- (q) => Ae.includes(q.type)
34825
+ (k) => Ae.includes(k.type)
34826
34826
  ) && t.push(
34827
34827
  new T({
34828
34828
  id: `${i.id}--${f.id}--${b.UnreachableEntity}`,
@@ -34859,7 +34859,7 @@ The new termination statement is redundant because both entities would be called
34859
34859
  g ? (Ae.includes(i.type) && ((i.calledBySuccess || []).find(
34860
34860
  (O) => O === f.id
34861
34861
  ) ? (f.successCalls || []).find(
34862
- (q) => Ae.includes(q.type)
34862
+ (k) => Ae.includes(k.type)
34863
34863
  ) && t.push(
34864
34864
  new T({
34865
34865
  id: `${i.id}--${f.id}--${b.UnreachableEntity}`,
@@ -34872,7 +34872,7 @@ The new termination statement is redundant because both entities would be called
34872
34872
  ) : (i.calledByError || []).find(
34873
34873
  (O) => O === f.id
34874
34874
  ) ? (f.errorCalls || []).find(
34875
- (q) => Ae.includes(q.type)
34875
+ (k) => Ae.includes(k.type)
34876
34876
  ) && t.push(
34877
34877
  new T({
34878
34878
  id: `${i.id}--${f.id}--${b.UnreachableEntity}`,
@@ -34885,7 +34885,7 @@ The new termination statement is redundant because both entities would be called
34885
34885
  ) : (i.calledByEntry || []).find(
34886
34886
  (O) => O === f.id
34887
34887
  ) && (f.calls || []).find(
34888
- (q) => Ae.includes(q.type)
34888
+ (k) => Ae.includes(k.type)
34889
34889
  ) && t.push(
34890
34890
  new T({
34891
34891
  id: `${i.id}--${f.id}--${b.UnreachableEntity}`,
@@ -35238,7 +35238,7 @@ ${Hc}`,
35238
35238
  modifiedData: o
35239
35239
  };
35240
35240
  }
35241
- function a5(n, e, t = "calledBy") {
35241
+ function a3(n, e, t = "calledBy") {
35242
35242
  const i = [];
35243
35243
  if (!n)
35244
35244
  return [];
@@ -35297,7 +35297,7 @@ All caller entity types are: ${_(
35297
35297
  );
35298
35298
  return i;
35299
35299
  }
35300
- function s5(n, e, t = "calledByError") {
35300
+ function s3(n, e, t = "calledByError") {
35301
35301
  const i = [];
35302
35302
  if (!n)
35303
35303
  return [];
@@ -35362,7 +35362,7 @@ ${Mn}`,
35362
35362
  );
35363
35363
  return i;
35364
35364
  }
35365
- function o5(n, e) {
35365
+ function o3(n, e) {
35366
35366
  const t = [], i = e.get(
35367
35367
  n
35368
35368
  );
@@ -35492,7 +35492,7 @@ function Vs(n) {
35492
35492
  - ${n.loopDeclarations.map((e) => `${e.id} (${D(e, n)})`).join(`
35493
35493
  - `)}`;
35494
35494
  }
35495
- function l5(n) {
35495
+ function l3(n) {
35496
35496
  return `All reserved action decriptor ids for '${r.Operation}' entities are:
35497
35497
  - ${n.operationDeclarations.map((e) => `${e.id} (${D(e, n)})`).join(`
35498
35498
  - `)}`;
@@ -35637,7 +35637,7 @@ All built-in 'action-descriptor' entities that define 'operation' entity, are (I
35637
35637
  })
35638
35638
  ), t;
35639
35639
  }
35640
- function c5(n, e) {
35640
+ function c3(n, e) {
35641
35641
  const t = [];
35642
35642
  if (!n)
35643
35643
  return [];
@@ -35686,7 +35686,7 @@ All built-in 'action-descriptor' entities that define 'condition' entity, are (I
35686
35686
  })
35687
35687
  ), t;
35688
35688
  }
35689
- function d5(n, e) {
35689
+ function d3(n, e) {
35690
35690
  const t = [];
35691
35691
  if (!n)
35692
35692
  return [];
@@ -35739,16 +35739,16 @@ function K8(n, e, t) {
35739
35739
  const i = `entity of type "${n.type}" with id "${n.id}"`, a = `entity with id "${n.id}"`, s = `entity of type "${e.type}" with id "${e.id}"`, o = `entity with id "${e.id}"`, d = Qs(
35740
35740
  `${i} and ${s} have incompatible data types and cannot be connected as value-reader and value-writter.`
35741
35741
  );
35742
- return t.type === wt.AIsListBIsNot ? `${d}
35743
- ${a} is a list, but ${o} is not. A list can't be connected to a single value.` : t.type === wt.BIsListAIsNot ? `${d}
35744
- ${a} is not a list, but ${o} is. A single value can't be connected to a list.` : t.type === wt.AIsNullableBIsNot ? `${d}
35745
- ${a} is nullable, but ${o} is not. A nullable value can't be connected to a non-nullable value since an empty value might be incorrectly provided.` : t.type === wt.BIsNullableAIsNot ? `${d}
35746
- ${a} is not nullable, but ${o} is. A non-nullable value can't be connected to a nullable value since an empty value might be incorrectly provided.` : t.type === wt.AIsTemplateBIsNot ? `${d}
35747
- ${a} is a template, but ${o} is not. A data type that provides an entity as a "template" means that the value should be used as the type definition, or prototype of the entity, not as a specific instance of the entity.` : t.type === wt.BIsTemplateAIsNot ? `${d}
35748
- ${a} is not a template, but ${o} is. A data type that provides an entity as a "template" means that the value should be used as the type definition, or prototype of the entity, not as a specific instance of the entity.` : t.type === wt.TypeEntityMismatch ? `${d}
35749
- Their 'entity' property is of different types. They must be of the same type to be connected. For example, the 'entity' can be a '${r.CustomEntity}' or a '${r.PrimitiveEntity}'.` : t.type === wt.IncompatibleCustomEntities ? `${d}
35750
- Both point to custom entities, but they are not compatible to be connected. They must be either the same custom entity, or a custom entity that has equivalent shape, which includes the same properties all with compatible data types with the properties in the counterpart entity.` : t.type === wt.IncompatiblePrimitiveEntities ? `${d}
35751
- ${a} is of primitive type '${((u = n.getDataType()) == null ? void 0 : u.entity).name}' and ${o} is of primitive type '${((y = e.getDataType()) == null ? void 0 : y.entity).name}'. They must be of the same primitive type to be connected.` : t.type === wt.IncompatibleBuiltInBaseEntities ? `${d}
35742
+ return t.type === Bt.AIsListBIsNot ? `${d}
35743
+ ${a} is a list, but ${o} is not. A list can't be connected to a single value.` : t.type === Bt.BIsListAIsNot ? `${d}
35744
+ ${a} is not a list, but ${o} is. A single value can't be connected to a list.` : t.type === Bt.AIsNullableBIsNot ? `${d}
35745
+ ${a} is nullable, but ${o} is not. A nullable value can't be connected to a non-nullable value since an empty value might be incorrectly provided.` : t.type === Bt.BIsNullableAIsNot ? `${d}
35746
+ ${a} is not nullable, but ${o} is. A non-nullable value can't be connected to a nullable value since an empty value might be incorrectly provided.` : t.type === Bt.AIsTemplateBIsNot ? `${d}
35747
+ ${a} is a template, but ${o} is not. A data type that provides an entity as a "template" means that the value should be used as the type definition, or prototype of the entity, not as a specific instance of the entity.` : t.type === Bt.BIsTemplateAIsNot ? `${d}
35748
+ ${a} is not a template, but ${o} is. A data type that provides an entity as a "template" means that the value should be used as the type definition, or prototype of the entity, not as a specific instance of the entity.` : t.type === Bt.TypeEntityMismatch ? `${d}
35749
+ Their 'entity' property is of different types. They must be of the same type to be connected. For example, the 'entity' can be a '${r.CustomEntity}' or a '${r.PrimitiveEntity}'.` : t.type === Bt.IncompatibleCustomEntities ? `${d}
35750
+ Both point to custom entities, but they are not compatible to be connected. They must be either the same custom entity, or a custom entity that has equivalent shape, which includes the same properties all with compatible data types with the properties in the counterpart entity.` : t.type === Bt.IncompatiblePrimitiveEntities ? `${d}
35751
+ ${a} is of primitive type '${((u = n.getDataType()) == null ? void 0 : u.entity).name}' and ${o} is of primitive type '${((y = e.getDataType()) == null ? void 0 : y.entity).name}'. They must be of the same primitive type to be connected.` : t.type === Bt.IncompatibleBuiltInBaseEntities ? `${d}
35752
35752
  Both point to a built-in-base-entity. But${a} is of built-in base type '${((m = n.getDataType()) == null ? void 0 : m.entity).name}' and ${o} is of built-in base type '${((f = e.getDataType()) == null ? void 0 : f.entity).name}'. They must be of the same built-in base type to be connected.` : d;
35753
35753
  }
35754
35754
  function Es(n, e) {
@@ -36748,17 +36748,17 @@ function pc(n, e, t) {
36748
36748
  g.name,
36749
36749
  r.FunctionDeclaration,
36750
36750
  n.project
36751
- ), $ = g.implementAsFunctionDeclaration(O), q = {
36751
+ ), $ = g.implementAsFunctionDeclaration(O), k = {
36752
36752
  id: O + "-parent-ref-id",
36753
36753
  type: r.GenericReference,
36754
36754
  entityId: i,
36755
36755
  entityType: r.CustomEntity
36756
- }, Ct = {
36756
+ }, wt = {
36757
36757
  ...$,
36758
36758
  implements: g,
36759
- parent: q
36759
+ parent: k
36760
36760
  }, Me = E(
36761
- Ct,
36761
+ wt,
36762
36762
  n.project
36763
36763
  );
36764
36764
  return y.addMethod(Me), Me.setParent(y), Me.initChildren(), Me.implements = g, Me;
@@ -36812,10 +36812,10 @@ function va(n, e) {
36812
36812
  const t = yc(n, e);
36813
36813
  return t.last === e && t.list.length > 0 && t.list[0] !== e;
36814
36814
  }
36815
- function u5(n, e) {
36815
+ function u3(n, e) {
36816
36816
  return !!yc(n, e).last;
36817
36817
  }
36818
- function p5(n) {
36818
+ function p3(n) {
36819
36819
  if ($e.includes(n.type))
36820
36820
  return n;
36821
36821
  if ([...xn, r.VariableDeclaration].includes(n.type)) {
@@ -36860,13 +36860,13 @@ function He(n) {
36860
36860
  return e ? He(e) : null;
36861
36861
  }
36862
36862
  }
36863
- function y5(n) {
36863
+ function y3(n) {
36864
36864
  return n.type === r.VariableDeclaration ? [n] : Ne.includes(n.type) ? [
36865
36865
  ...n.inputs,
36866
36866
  ...n.outputs || []
36867
36867
  ] : n.type === r.ReturnStatement ? n.outputs : Pi.includes(n.type) || n.type === r.FunctionDeclaration ? n.inputs : [];
36868
36868
  }
36869
- function h5(n) {
36869
+ function h3(n) {
36870
36870
  const e = Nn(n), t = [], i = [];
36871
36871
  Lf.includes(n.type) && t.push(...Df(n));
36872
36872
  const a = e.filter((s) => {
@@ -36878,7 +36878,7 @@ function h5(n) {
36878
36878
  function i6(n) {
36879
36879
  return [...n].sort((e, t) => va(t, e) ? -1 : 0);
36880
36880
  }
36881
- function f5(n) {
36881
+ function f3(n) {
36882
36882
  const e = i6(n), t = [];
36883
36883
  return e.forEach((i) => {
36884
36884
  const a = t[t.length - 1];
@@ -36889,7 +36889,7 @@ function f5(n) {
36889
36889
  t.push([i]);
36890
36890
  }), t;
36891
36891
  }
36892
- function xt(n) {
36892
+ function $t(n) {
36893
36893
  const e = n.map(
36894
36894
  (t) => He(t)
36895
36895
  );
@@ -36897,30 +36897,30 @@ function xt(n) {
36897
36897
  }
36898
36898
  function Df(n) {
36899
36899
  return Ne.includes(n.type) ? [
36900
- ...xt(
36900
+ ...$t(
36901
36901
  n.successCalls
36902
36902
  ),
36903
- ...xt(
36903
+ ...$t(
36904
36904
  n.errorCalls
36905
36905
  )
36906
- ] : $e.includes(n.type) ? xt(
36906
+ ] : $e.includes(n.type) ? $t(
36907
36907
  n.calls
36908
36908
  ) : [];
36909
36909
  }
36910
- function m5(n, e) {
36910
+ function m3(n, e) {
36911
36911
  return Df(n).includes(e);
36912
36912
  }
36913
36913
  function Af(n) {
36914
36914
  return n.writesValues || [];
36915
36915
  }
36916
- function T5(n, e) {
36916
+ function T3(n, e) {
36917
36917
  return Af(n).includes(e);
36918
36918
  }
36919
36919
  function a6(n) {
36920
36920
  var e;
36921
36921
  return Ge.includes((e = n == null ? void 0 : n.readsValue) == null ? void 0 : e.type) ? n.readsValue : null;
36922
36922
  }
36923
- function E5(n) {
36923
+ function E3(n) {
36924
36924
  return n.writesValues;
36925
36925
  }
36926
36926
  function s6(n = []) {
@@ -36944,19 +36944,19 @@ function d6(n = []) {
36944
36944
  return n.reduce((e, t) => t.type === r.OutputMap ? [...e, ...c6(t)] : e, []);
36945
36945
  }
36946
36946
  function Ie(n) {
36947
- if (n.id === "e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a" && console.log("Flattening calls for element"), Ne.includes(n.type)) {
36948
- n.id === "e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a" && console.log("Is a pass through callable type");
36949
- const e = xt(
36950
- n.successCalls
36951
- ), t = xt(
36952
- n.errorCalls
36953
- );
36954
- n.id === "e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a" && (console.log("Success calls", e), console.log("Error calls", t));
36955
- const i = ir(e), a = ir(t);
36956
- return n.id === "e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a" && (console.log("Flat success calls", i), console.log("Flat error calls", a)), [...i, ...a];
36957
- }
36958
- return $e.includes(n.type) ? ir(
36959
- xt(
36947
+ return Ne.includes(n.type) ? [
36948
+ ...ir(
36949
+ $t(
36950
+ n.successCalls
36951
+ )
36952
+ ),
36953
+ ...ir(
36954
+ $t(
36955
+ n.errorCalls
36956
+ )
36957
+ )
36958
+ ] : $e.includes(n.type) ? ir(
36959
+ $t(
36960
36960
  n.calls
36961
36961
  )
36962
36962
  ) : [];
@@ -37090,19 +37090,19 @@ function y6(n) {
37090
37090
  ...u,
37091
37091
  ...no(y.inputs),
37092
37092
  ...ir(
37093
- xt(y.calls)
37093
+ $t(y.calls)
37094
37094
  ),
37095
37095
  ...y.returnStatements
37096
37096
  ], []), o = n.functions.reduce((u, y) => [
37097
37097
  ...u,
37098
37098
  ...ir(
37099
- xt(y.calls)
37099
+ $t(y.calls)
37100
37100
  ),
37101
37101
  ...y.returnStatements
37102
37102
  ], []), d = n.events.reduce((u, y) => [
37103
37103
  ...u,
37104
37104
  ...ir(
37105
- xt(y.calls)
37105
+ $t(y.calls)
37106
37106
  ),
37107
37107
  ...y.returnStatements
37108
37108
  ], []);
@@ -37143,7 +37143,7 @@ function h6(n, e) {
37143
37143
  }
37144
37144
  });
37145
37145
  }
37146
- function R5(n) {
37146
+ function R3(n) {
37147
37147
  const e = y6(n.project);
37148
37148
  return h6(n, e);
37149
37149
  }
@@ -37177,7 +37177,7 @@ function Sf(n) {
37177
37177
  n.type
37178
37178
  ) ? n.declaration.fixedArguments : n.type === r.FunctionDeclaration || Pi.includes(n.type) ? n.inputs : n.type === r.Search ? n.inputsDeclarations : [];
37179
37179
  }
37180
- function b5(n, e) {
37180
+ function b3(n, e) {
37181
37181
  return e.type === r.Condition ? e.inputs.find((t) => t.declaration.id === n.id) : e.type === r.FunctionCall || e.type === r.Operation ? e.inputs.find((t) => t.declaration.id === n.id) : null;
37182
37182
  }
37183
37183
  function f6(n) {
@@ -37189,10 +37189,10 @@ function Of(n) {
37189
37189
  n.type
37190
37190
  ) ? n.declaration.fixedReturns : n.type === r.Search ? n.outputsDeclarations : Ae.includes(n.type) ? n.outputs : [];
37191
37191
  }
37192
- function v5(n, e) {
37192
+ function v3(n, e) {
37193
37193
  return e.type === r.Condition ? null : e.type === r.FunctionCall || e.type === r.Operation ? e.outputs.find((t) => t.declaration.id === n.id) : null;
37194
37194
  }
37195
- function g5(n) {
37195
+ function g3(n) {
37196
37196
  return n.type === r.Condition ? [] : Ne.includes(n.type) ? n.outputs : [];
37197
37197
  }
37198
37198
  function Yc(n) {
@@ -37202,7 +37202,7 @@ function Yc(n) {
37202
37202
  function m6(n) {
37203
37203
  const e = n.internalCalls || [];
37204
37204
  return S(
37205
- xt(
37205
+ $t(
37206
37206
  S(
37207
37207
  e.flatMap((t) => [...t.successCalls, ...t.errorCalls])
37208
37208
  )
@@ -37411,13 +37411,13 @@ function b6(n) {
37411
37411
  null
37412
37412
  );
37413
37413
  }
37414
- function I5(n) {
37414
+ function I3(n) {
37415
37415
  const e = n.extends.find(
37416
37416
  (t) => t.type === r.BuiltInBaseEntity
37417
37417
  );
37418
37418
  return e && e.type === r.BuiltInBaseEntity ? e : null;
37419
37419
  }
37420
- function P5(n) {
37420
+ function P3(n) {
37421
37421
  const e = n.implements.find(
37422
37422
  (t) => t.type === r.BuiltInBaseEntity
37423
37423
  );
@@ -37444,7 +37444,7 @@ function Bf(n) {
37444
37444
  (i) => !i.interactive
37445
37445
  );
37446
37446
  }
37447
- function D5(n) {
37447
+ function D3(n) {
37448
37448
  return n.parent === n.project && n.project.variableDeclarations.includes(n);
37449
37449
  }
37450
37450
  function Mf(n) {
@@ -37534,7 +37534,7 @@ function mc(n) {
37534
37534
  case r.ArgumentDeclaration:
37535
37535
  return vr;
37536
37536
  case r.ReturnDeclaration:
37537
- return St;
37537
+ return Ot;
37538
37538
  case r.Property:
37539
37539
  return pr;
37540
37540
  case r.InstalledProject:
@@ -37542,7 +37542,7 @@ function mc(n) {
37542
37542
  case r.Project:
37543
37543
  return x;
37544
37544
  case r.BuiltInBaseEntity:
37545
- return Ft;
37545
+ return St;
37546
37546
  default:
37547
37547
  return null;
37548
37548
  }
@@ -37567,7 +37567,7 @@ function pt(n, e) {
37567
37567
  function Nf(n, e) {
37568
37568
  if (Di.includes(n.type) || e.getAllBuiltInIds().includes(n.id))
37569
37569
  return null;
37570
- const i = Bt(
37570
+ const i = Mt(
37571
37571
  n.parent,
37572
37572
  e
37573
37573
  );
@@ -37703,7 +37703,7 @@ function O6(n) {
37703
37703
  return !a || a === i ? t : i;
37704
37704
  }, n[0]);
37705
37705
  }
37706
- function Bt(n, e) {
37706
+ function Mt(n, e) {
37707
37707
  let t;
37708
37708
  return typeof n == "string" ? t = n : n.type === r.GenericReference ? t = P(n) : t = n.id, t === e.id ? e : e.get(t);
37709
37709
  }
@@ -37720,7 +37720,7 @@ function Xr(n) {
37720
37720
  function Rs(n, e) {
37721
37721
  var t;
37722
37722
  if (n.readsValue) {
37723
- const i = Bt(
37723
+ const i = Mt(
37724
37724
  n.readsValue,
37725
37725
  e.project
37726
37726
  );
@@ -37744,28 +37744,22 @@ function aa(n) {
37744
37744
  n,
37745
37745
  n.project
37746
37746
  );
37747
- return n.id === "e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a" && console.log("Validating reachability for entity: ", n), n.calledBySuccess.forEach((s) => {
37747
+ return n.calledBySuccess.forEach((s) => {
37748
37748
  [
37749
37749
  ...s.successCalls || []
37750
37750
  ].forEach((u) => {
37751
- if (Ae.includes(u.type) && u !== n) {
37752
- n.id === "e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a" && console.log("Termination found: ", u);
37753
- const y = Ie(
37754
- n
37755
- );
37756
- n.id === "e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a" && console.log("All following calls: ", y);
37757
- const m = y.find((f) => f === u);
37758
- m || (n.id === "e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a" && console.log("Found termination in calls: ", m), i(s, u)), n.id === "e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a" && console.log("Found termination in calls: ", m);
37759
- }
37751
+ Ae.includes(u.type) && u !== n && (Ie(
37752
+ n
37753
+ ).find((f) => f === u) || i(s, u));
37760
37754
  });
37761
37755
  let d;
37762
37756
  if (Ne.includes(s.type) && (d = s), d) {
37763
37757
  const u = aa(d);
37764
- n.id === "e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a" && console.log("Result of caller reachability: ", u), u.reachable || (console.log("Parent caller not reachable, adding blocks: ", u.blocks), Ie(
37758
+ u.reachable || Ie(
37765
37759
  n
37766
37760
  ).find((f) => f === s) || u.blocks.forEach((f) => {
37767
37761
  i(s, f.blockedByCalling);
37768
- }));
37762
+ });
37769
37763
  }
37770
37764
  }), n.calledByError.forEach((s) => {
37771
37765
  [
@@ -37810,10 +37804,10 @@ function aa(n) {
37810
37804
  blocks: e
37811
37805
  };
37812
37806
  }
37813
- function A5(n) {
37807
+ function A3(n) {
37814
37808
  return Xc.includes(n.type) ? n.type === r.FunctionDeclaration ? !D6(n) : !0 : !1;
37815
37809
  }
37816
- function S5(n) {
37810
+ function S3(n) {
37817
37811
  if (r.ActionDescriptor === n.type) {
37818
37812
  if (n.project.operationDeclarations.find(
37819
37813
  (s) => s.id === n.id
@@ -38449,6 +38443,22 @@ Alternatively you can update the parent data-type entity with 'update' action to
38449
38443
  implement(e, t) {
38450
38444
  return pc(this, e, t);
38451
38445
  }
38446
+ // Returns all methods, own, or inherited from the entities this entity extends
38447
+ // That can be called interactively during runtime
38448
+ getAllInteractiveMethods() {
38449
+ const e = this.implements.filter(
38450
+ (i) => i.type === r.CustomEntity || i.type === r.BuiltInBaseEntity && i.interactive
38451
+ );
38452
+ return [
38453
+ ...this.methods,
38454
+ ...this.extends.flatMap(
38455
+ (i) => i.getAllInteractiveMethods()
38456
+ ),
38457
+ ...e.flatMap(
38458
+ (i) => i.getAllInteractiveMethods()
38459
+ )
38460
+ ];
38461
+ }
38452
38462
  };
38453
38463
  l(ue, "MUTABLE_BASE_PROPERTIES", [
38454
38464
  "name",
@@ -38488,30 +38498,31 @@ l(ue, "MUTABLE_DOWNSTREAM_PROPERTIES", [
38488
38498
  ]);
38489
38499
  let Dr = ue;
38490
38500
  function w6(n) {
38491
- const e = xG(), t = n.toJSON();
38501
+ const e = qG(), t = n.toJSON();
38492
38502
  e.safeParse(t).success;
38493
38503
  const a = [];
38494
38504
  return X(n.errors, a);
38495
38505
  }
38496
- class Mt {
38506
+ class St {
38497
38507
  constructor(e, t) {
38498
38508
  l(this, "initialData");
38499
38509
  l(this, "id");
38500
38510
  l(this, "version");
38501
38511
  l(this, "name");
38502
38512
  l(this, "description", null);
38503
- l(this, "type", r.PrimitiveEntity);
38513
+ l(this, "type", r.BuiltInBaseEntity);
38514
+ l(this, "abstract", !1);
38504
38515
  l(this, "static");
38505
- l(this, "abstract");
38506
38516
  // Nested entities
38507
38517
  l(this, "properties", []);
38508
38518
  l(this, "methods", []);
38509
38519
  l(this, "abstractMethods", []);
38510
38520
  l(this, "extends", []);
38521
+ l(this, "interactive", !1);
38511
38522
  l(this, "errors", []);
38512
38523
  // Parent project full state
38513
38524
  l(this, "project");
38514
- this.initialData = e, this.project = t, this.id = e.id, this.version = e.version, this.name = e.name, this.static = e.static, this.abstract = e.abstract, this.properties = this.initialData.properties.map((i) => {
38525
+ this.initialData = this.initialData || e, this.project = this.project || t, this.id = this.id || e.id, this.version = this.version || e.version, this.name = this.name || e.name, this.static = this.static || e.static, this.interactive = this.interactive || e.interactive, this.abstract = e.abstract, this.properties = this.initialData.properties.map((i) => {
38515
38526
  const a = E(
38516
38527
  i,
38517
38528
  this.project
@@ -38522,14 +38533,29 @@ class Mt {
38522
38533
  i,
38523
38534
  this.project
38524
38535
  );
38525
- return a.parent = this, a;
38536
+ return a.setParent(this), a.initChildren(), a;
38526
38537
  }), this.abstractMethods = this.initialData.abstractMethods.map((i) => {
38527
38538
  const a = E(
38528
38539
  i,
38529
38540
  this.project
38530
38541
  );
38531
- return a.parent = this, a;
38532
- });
38542
+ return a.setParent(this), a.initChildren(), a;
38543
+ }), this.extends = this.initialData.extends.map((i) => E(i, this.project));
38544
+ }
38545
+ // Returns the properties that are not abstract from the entities extended by this entity
38546
+ get extendedProperties() {
38547
+ return S(
38548
+ this.extends.reduce((e, t) => {
38549
+ if (t instanceof St) {
38550
+ const i = [
38551
+ ...t.properties,
38552
+ ...t.extendedProperties
38553
+ ].filter((a) => !a.abstract);
38554
+ e.push(...i);
38555
+ }
38556
+ return e;
38557
+ }, [])
38558
+ );
38533
38559
  }
38534
38560
  subscribe() {
38535
38561
  return this.project.subscribeInstance(this), this;
@@ -38545,14 +38571,14 @@ class Mt {
38545
38571
  // If 'ignoreUpstream' is true, it will not remove the entity from the upstream entities
38546
38572
  // Like a reference to itself from the parent.
38547
38573
  // This is used when the remove is called from the parent (an upstream) entity
38548
- remove({
38549
- ignoreUpstream: e,
38550
- seenEntities: t
38551
- } = {
38574
+ remove(e = {
38552
38575
  ignoreUpstream: !1,
38553
38576
  seenEntities: /* @__PURE__ */ new Set()
38554
38577
  }) {
38555
- return { affected: [], removed: [] };
38578
+ return {
38579
+ affected: [],
38580
+ removed: []
38581
+ };
38556
38582
  }
38557
38583
  // Re-add this entity to the state after it was removed
38558
38584
  // This is useful when we want to undo a removal
@@ -38567,9 +38593,8 @@ class Mt {
38567
38593
  this,
38568
38594
  ...this.properties.flatMap((i) => i.toFlat(e)),
38569
38595
  ...this.methods.flatMap((i) => i.toFlat(e)),
38570
- ...this.abstractMethods.flatMap(
38571
- (i) => i.toFlat(e)
38572
- )
38596
+ ...this.abstractMethods.flatMap((i) => i.toFlat(e)),
38597
+ ...this.extends.flatMap((i) => i.toFlat(e))
38573
38598
  ]);
38574
38599
  }
38575
38600
  toFlatIds(e = /* @__PURE__ */ new Set()) {
@@ -38581,7 +38606,8 @@ class Mt {
38581
38606
  ...this.methods.flatMap((i) => i.toFlatIds(e)),
38582
38607
  ...this.abstractMethods.flatMap(
38583
38608
  (i) => i.toFlatIds(e)
38584
- )
38609
+ ),
38610
+ ...this.extends.flatMap((i) => i.toFlatIds(e))
38585
38611
  ]);
38586
38612
  }
38587
38613
  toJSON() {
@@ -38591,8 +38617,9 @@ class Mt {
38591
38617
  type: this.type,
38592
38618
  name: this.name,
38593
38619
  description: this.description,
38594
- static: this.static,
38595
38620
  abstract: this.abstract,
38621
+ static: this.static,
38622
+ interactive: this.interactive,
38596
38623
  properties: this.properties.map((e) => e.toJSON()),
38597
38624
  methods: this.methods.map((e) => e.toJSON()),
38598
38625
  abstractMethods: this.abstractMethods.map((e) => e.toJSON()),
@@ -38616,6 +38643,7 @@ class Mt {
38616
38643
  description: this.description,
38617
38644
  abstract: this.abstract,
38618
38645
  static: this.static,
38646
+ interactive: this.interactive,
38619
38647
  properties: this.properties.map((e) => e.toReference()),
38620
38648
  methods: this.methods.map((e) => e.toReference()),
38621
38649
  abstractMethods: this.abstractMethods.map(
@@ -38644,6 +38672,7 @@ class Mt {
38644
38672
  description: this.description,
38645
38673
  static: this.static,
38646
38674
  abstract: this.abstract,
38675
+ interactive: this.interactive,
38647
38676
  extends: this.extends.map((e) => e.id)
38648
38677
  };
38649
38678
  }
@@ -38683,35 +38712,48 @@ class Mt {
38683
38712
  return this.errors;
38684
38713
  }
38685
38714
  clone() {
38686
- return new Mt(this.toJSON(), this.project);
38715
+ return new St(this.toJSON(), this.project);
38716
+ }
38717
+ // Assuming the current entity is an abstract entity, it creates a new entity which implements it and all its properties and methods
38718
+ implement(e, t) {
38719
+ return pc(this, e, t);
38720
+ }
38721
+ // Returns all methods, own, or inherited from the entities this entity extends
38722
+ // That can be called interactively during runtime
38723
+ getAllInteractiveMethods() {
38724
+ const e = [];
38725
+ return this.interactive && (e.push(...this.methods), this.extends.filter(
38726
+ (i) => i.type === r.BuiltInBaseEntity && i.interactive || i.type === r.PrimitiveEntity
38727
+ ).forEach((i) => {
38728
+ i instanceof St && e.push(...i.getAllInteractiveMethods());
38729
+ })), e;
38687
38730
  }
38688
38731
  }
38689
38732
  function B6(n) {
38690
- const e = qG(), t = n.toJSON();
38733
+ const e = xG(), t = n.toJSON();
38691
38734
  e.safeParse(t).success;
38692
38735
  const a = [];
38693
38736
  return X(n.errors, a);
38694
38737
  }
38695
- class Ft {
38738
+ class _t {
38696
38739
  constructor(e, t) {
38697
38740
  l(this, "initialData");
38698
38741
  l(this, "id");
38699
38742
  l(this, "version");
38700
38743
  l(this, "name");
38701
38744
  l(this, "description", null);
38702
- l(this, "type", r.BuiltInBaseEntity);
38703
- l(this, "abstract", !1);
38745
+ l(this, "type", r.PrimitiveEntity);
38704
38746
  l(this, "static");
38747
+ l(this, "abstract");
38705
38748
  // Nested entities
38706
38749
  l(this, "properties", []);
38707
38750
  l(this, "methods", []);
38708
38751
  l(this, "abstractMethods", []);
38709
38752
  l(this, "extends", []);
38710
- l(this, "interactive", !1);
38711
38753
  l(this, "errors", []);
38712
38754
  // Parent project full state
38713
38755
  l(this, "project");
38714
- this.initialData = this.initialData || e, this.project = this.project || t, this.id = this.id || e.id, this.version = this.version || e.version, this.name = this.name || e.name, this.static = this.static || e.static, this.interactive = this.interactive || e.interactive, this.abstract = e.abstract, this.properties = this.initialData.properties.map((i) => {
38756
+ this.initialData = e, this.project = t, this.id = e.id, this.version = e.version, this.name = e.name, this.static = e.static, this.abstract = e.abstract, this.properties = this.initialData.properties.map((i) => {
38715
38757
  const a = E(
38716
38758
  i,
38717
38759
  this.project
@@ -38722,29 +38764,14 @@ class Ft {
38722
38764
  i,
38723
38765
  this.project
38724
38766
  );
38725
- return a.setParent(this), a.initChildren(), a;
38767
+ return a.parent = this, a;
38726
38768
  }), this.abstractMethods = this.initialData.abstractMethods.map((i) => {
38727
38769
  const a = E(
38728
38770
  i,
38729
38771
  this.project
38730
38772
  );
38731
- return a.setParent(this), a.initChildren(), a;
38732
- }), this.extends = this.initialData.extends.map((i) => E(i, this.project));
38733
- }
38734
- // Returns the properties that are not abstract from the entities extended by this entity
38735
- get extendedProperties() {
38736
- return S(
38737
- this.extends.reduce((e, t) => {
38738
- if (t instanceof Ft) {
38739
- const i = [
38740
- ...t.properties,
38741
- ...t.extendedProperties
38742
- ].filter((a) => !a.abstract);
38743
- e.push(...i);
38744
- }
38745
- return e;
38746
- }, [])
38747
- );
38773
+ return a.parent = this, a;
38774
+ });
38748
38775
  }
38749
38776
  subscribe() {
38750
38777
  return this.project.subscribeInstance(this), this;
@@ -38760,14 +38787,14 @@ class Ft {
38760
38787
  // If 'ignoreUpstream' is true, it will not remove the entity from the upstream entities
38761
38788
  // Like a reference to itself from the parent.
38762
38789
  // This is used when the remove is called from the parent (an upstream) entity
38763
- remove(e = {
38790
+ remove({
38791
+ ignoreUpstream: e,
38792
+ seenEntities: t
38793
+ } = {
38764
38794
  ignoreUpstream: !1,
38765
38795
  seenEntities: /* @__PURE__ */ new Set()
38766
38796
  }) {
38767
- return {
38768
- affected: [],
38769
- removed: []
38770
- };
38797
+ return { affected: [], removed: [] };
38771
38798
  }
38772
38799
  // Re-add this entity to the state after it was removed
38773
38800
  // This is useful when we want to undo a removal
@@ -38780,25 +38807,21 @@ class Ft {
38780
38807
  toFlat(e = /* @__PURE__ */ new Set()) {
38781
38808
  return e.has(this.id) ? [] : (e.add(this.id), [
38782
38809
  this,
38783
- ...this.properties.flatMap(
38784
- (i) => i.toFlat(e)
38785
- ),
38810
+ ...this.properties.flatMap((i) => i.toFlat(e)),
38786
38811
  ...this.methods.flatMap((i) => i.toFlat(e)),
38787
- ...this.abstractMethods.flatMap(
38788
- (i) => i.toFlat(e)
38789
- ),
38790
- ...this.extends.flatMap((i) => i.toFlat(e))
38812
+ ...this.abstractMethods.flatMap((i) => i.toFlat(e))
38791
38813
  ]);
38792
38814
  }
38793
38815
  toFlatIds(e = /* @__PURE__ */ new Set()) {
38794
38816
  return e.has(this.id) ? [] : (e.add(this.id), [
38795
38817
  this.id,
38796
- ...this.properties.flatMap((i) => i.toFlatIds(e)),
38818
+ ...this.properties.flatMap(
38819
+ (i) => i.toFlatIds(e)
38820
+ ),
38797
38821
  ...this.methods.flatMap((i) => i.toFlatIds(e)),
38798
38822
  ...this.abstractMethods.flatMap(
38799
38823
  (i) => i.toFlatIds(e)
38800
- ),
38801
- ...this.extends.flatMap((i) => i.toFlatIds(e))
38824
+ )
38802
38825
  ]);
38803
38826
  }
38804
38827
  toJSON() {
@@ -38808,9 +38831,8 @@ class Ft {
38808
38831
  type: this.type,
38809
38832
  name: this.name,
38810
38833
  description: this.description,
38811
- abstract: this.abstract,
38812
38834
  static: this.static,
38813
- interactive: this.interactive,
38835
+ abstract: this.abstract,
38814
38836
  properties: this.properties.map((e) => e.toJSON()),
38815
38837
  methods: this.methods.map((e) => e.toJSON()),
38816
38838
  abstractMethods: this.abstractMethods.map((e) => e.toJSON()),
@@ -38834,7 +38856,6 @@ class Ft {
38834
38856
  description: this.description,
38835
38857
  abstract: this.abstract,
38836
38858
  static: this.static,
38837
- interactive: this.interactive,
38838
38859
  properties: this.properties.map((e) => e.toReference()),
38839
38860
  methods: this.methods.map((e) => e.toReference()),
38840
38861
  abstractMethods: this.abstractMethods.map(
@@ -38863,7 +38884,6 @@ class Ft {
38863
38884
  description: this.description,
38864
38885
  static: this.static,
38865
38886
  abstract: this.abstract,
38866
- interactive: this.interactive,
38867
38887
  extends: this.extends.map((e) => e.id)
38868
38888
  };
38869
38889
  }
@@ -38903,11 +38923,17 @@ class Ft {
38903
38923
  return this.errors;
38904
38924
  }
38905
38925
  clone() {
38906
- return new Ft(this.toJSON(), this.project);
38926
+ return new _t(this.toJSON(), this.project);
38907
38927
  }
38908
- // Assuming the current entity is an abstract entity, it creates a new entity which implements it and all its properties and methods
38909
- implement(e, t) {
38910
- return pc(this, e, t);
38928
+ // Returns all methods, own, or inherited from the entities this entity extends
38929
+ // That can be called interactively during runtime
38930
+ getAllInteractiveMethods() {
38931
+ const e = [];
38932
+ return e.push(...this.methods), this.extends.filter(
38933
+ (i) => i.type === r.BuiltInBaseEntity && i.interactive || i.type === r.PrimitiveEntity
38934
+ ).forEach((i) => {
38935
+ i instanceof St && e.push(...i.getAllInteractiveMethods());
38936
+ }), e;
38911
38937
  }
38912
38938
  }
38913
38939
  function bs(n, e) {
@@ -38920,7 +38946,7 @@ function bs(n, e) {
38920
38946
  case r.CustomEntity:
38921
38947
  return t || new Dr(n, e);
38922
38948
  case r.PrimitiveEntity:
38923
- return t || new Mt(n, e);
38949
+ return t || new _t(n, e);
38924
38950
  case r.FunctionDeclaration:
38925
38951
  return t || new yr(n, e);
38926
38952
  case r.GlobalEvent:
@@ -38942,7 +38968,7 @@ function bs(n, e) {
38942
38968
  case r.OutputMap:
38943
38969
  return t || new Rn(n, e);
38944
38970
  case r.ReturnDeclaration:
38945
- return t || new St(n, e);
38971
+ return t || new Ot(n, e);
38946
38972
  case r.ArgumentDeclaration:
38947
38973
  return t || new vr(n, e);
38948
38974
  case r.InputMap:
@@ -38962,7 +38988,7 @@ function bs(n, e) {
38962
38988
  case r.ValueDescriptor:
38963
38989
  return t || new Ir(n, e);
38964
38990
  case r.BuiltInBaseEntity:
38965
- return t || new Ft(n, e);
38991
+ return t || new St(n, e);
38966
38992
  case r.InternalCall:
38967
38993
  return t || new vi(n, e);
38968
38994
  case r.ContinueStatement:
@@ -38979,7 +39005,7 @@ function E(n, e) {
38979
39005
  const t = bs(n, e);
38980
39006
  return t.subscribe(), t;
38981
39007
  }
38982
- function O5(n, e) {
39008
+ function O3(n, e) {
38983
39009
  if (!n)
38984
39010
  throw new Error("Entity is null");
38985
39011
  switch (n.type) {
@@ -39020,7 +39046,7 @@ function O5(n, e) {
39020
39046
  case r.OutputMap:
39021
39047
  return Rn.fromGenerationTarget(n, e);
39022
39048
  case r.ReturnDeclaration:
39023
- return St.fromGenerationTarget(
39049
+ return Ot.fromGenerationTarget(
39024
39050
  n,
39025
39051
  e
39026
39052
  );
@@ -40076,13 +40102,13 @@ l(H, "MUTABLE_DOWNSTREAM_PROPERTIES", [
40076
40102
  let x = H;
40077
40103
  class M6 extends _e {
40078
40104
  constructor(t) {
40079
- super(Lt, t);
40105
+ super(Ft, t);
40080
40106
  l(this, "id", Pe.Parallel);
40081
40107
  l(this, "name", Pe.Parallel);
40082
40108
  l(this, "description", "Execute a list of actions one after the other");
40083
40109
  l(this, "version", 1);
40084
40110
  l(this, "autoexecutable", !0);
40085
- l(this, "initialData", Lt);
40111
+ l(this, "initialData", Ft);
40086
40112
  l(this, "type", r.ActionDescriptor);
40087
40113
  // Nested entities
40088
40114
  l(this, "fixedArguments", []);
@@ -40092,13 +40118,13 @@ class M6 extends _e {
40092
40118
  l(this, "dynamicReturnTypes", null);
40093
40119
  // Parent project full state
40094
40120
  l(this, "project");
40095
- this.project = t, this.fixedArguments = Lt.fixedArguments.map((i) => {
40121
+ this.project = t, this.fixedArguments = Ft.fixedArguments.map((i) => {
40096
40122
  const a = E(
40097
40123
  i,
40098
40124
  this.project
40099
40125
  );
40100
40126
  return a.setParent(this), a.initChildren(), a;
40101
- }), this.fixedReturns = Lt.fixedReturns.map(
40127
+ }), this.fixedReturns = Ft.fixedReturns.map(
40102
40128
  (i) => {
40103
40129
  const a = E(
40104
40130
  i,
@@ -40106,8 +40132,8 @@ class M6 extends _e {
40106
40132
  );
40107
40133
  return a.setParent(this), a.initChildren(), a;
40108
40134
  }
40109
- ), this.error = Lt.error ? E(
40110
- Lt.error,
40135
+ ), this.error = Ft.error ? E(
40136
+ Ft.error,
40111
40137
  this.project
40112
40138
  ) : null;
40113
40139
  }
@@ -40244,7 +40270,7 @@ function x6(n) {
40244
40270
  t.initChildren(), n.subscribeBuiltInInstance(t);
40245
40271
  }), n.operationDeclarations = e, e;
40246
40272
  }
40247
- class $6 extends Ft {
40273
+ class $6 extends St {
40248
40274
  constructor(t) {
40249
40275
  super(Oe, t);
40250
40276
  l(this, "initialData");
@@ -40287,10 +40313,10 @@ class $6 extends Ft {
40287
40313
  function V6(n) {
40288
40314
  const e = [
40289
40315
  new $6(n),
40290
- new Ft(To, n),
40291
- new Ft(Vn, n),
40292
- new Ft(Dd, n),
40293
- new Ft(mo, n)
40316
+ new St(To, n),
40317
+ new St(Vn, n),
40318
+ new St(Dd, n),
40319
+ new St(mo, n)
40294
40320
  ];
40295
40321
  return e.forEach((t) => {
40296
40322
  n.subscribeBuiltInInstance(t);
@@ -40298,14 +40324,14 @@ function V6(n) {
40298
40324
  }
40299
40325
  function G6(n) {
40300
40326
  const e = [
40301
- new Mt(L, n),
40302
- new Mt(Ar, n),
40303
- new Mt(Be, n),
40304
- new Mt(st, n),
40305
- new Mt($n, n),
40306
- new Mt(Ai, n),
40307
- new Mt(ao, n),
40308
- new Mt(Qc, n)
40327
+ new _t(L, n),
40328
+ new _t(Ar, n),
40329
+ new _t(Be, n),
40330
+ new _t(st, n),
40331
+ new _t($n, n),
40332
+ new _t(Ai, n),
40333
+ new _t(ao, n),
40334
+ new _t(Qc, n)
40309
40335
  ];
40310
40336
  return e.forEach((t) => {
40311
40337
  n.subscribeBuiltInInstance(t);
@@ -40375,7 +40401,7 @@ function q6(n) {
40375
40401
  const e = new x(n);
40376
40402
  return G6(e), V6(e), x6(e), L6(e), F6(e), U6(e), j6(e), e.initChildren(), e;
40377
40403
  }
40378
- async function C5(n, e = {}) {
40404
+ async function C3(n, e = {}) {
40379
40405
  try {
40380
40406
  if (n.id && nr[n.id])
40381
40407
  return nr[n.id];
@@ -40393,10 +40419,10 @@ async function C5(n, e = {}) {
40393
40419
  return console.error("Error fetching project: ", t), null;
40394
40420
  }
40395
40421
  }
40396
- function w5(n) {
40422
+ function w3(n) {
40397
40423
  return nr[n.id] && delete nr[n.id], null;
40398
40424
  }
40399
- const B5 = "test_primitive_entities_export";
40425
+ const B3 = "test_primitive_entities_export";
40400
40426
  export {
40401
40427
  Hc as AI_VALUE_CONNECTION_GENERATION_ACTION_EXPLANATION,
40402
40428
  _e as ActionDescriptorState,
@@ -40414,9 +40440,9 @@ export {
40414
40440
  U9 as BaseState,
40415
40441
  pd as BaseValueDescriptorIds,
40416
40442
  Ii as BreakStatementState,
40417
- Ft as BuiltInBaseEntityState,
40443
+ St as BuiltInBaseEntityState,
40418
40444
  nr as CACHED_PROJECTS_BY_ID,
40419
- n5 as CALLABLE_ENTITIES_EXPLANATION,
40445
+ n3 as CALLABLE_ENTITIES_EXPLANATION,
40420
40446
  xn as CALLABLE_TYPES,
40421
40447
  q8 as CALLER_ENTITIES_EXPLANATION,
40422
40448
  pn as CALLER_TYPES,
@@ -40438,7 +40464,7 @@ export {
40438
40464
  Xc as DRAGGABLE_ELEMENT_TYPES,
40439
40465
  Z6 as DRAGGABLE_EXECUTABLE_TYPES,
40440
40466
  zc as DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES,
40441
- wt as DataTypeCompatibilityTypes,
40467
+ Bt as DataTypeCompatibilityTypes,
40442
40468
  Je as DataTypeParentChildRelation,
40443
40469
  Ri as DataTypeState,
40444
40470
  to as ENTITIES_WITH_VALLUES_EXPLANATION,
@@ -40501,13 +40527,13 @@ export {
40501
40527
  W9 as PassThroughCallableEntityClass,
40502
40528
  $6 as PersistedEntity,
40503
40529
  At as PersistedEntityMethods,
40504
- Mt as PrimitiveEntityState,
40530
+ _t as PrimitiveEntityState,
40505
40531
  v as PrimitiveTypes,
40506
40532
  gi as PrimitiveValueState,
40507
40533
  x as ProjectState,
40508
40534
  pr as PropertyState,
40509
- r5 as RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION,
40510
- St as ReturnDeclarationState,
40535
+ r3 as RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION,
40536
+ Ot as ReturnDeclarationState,
40511
40537
  gr as ReturnStatementState,
40512
40538
  uv as STANDALONE_CONDITIONS,
40513
40539
  Rm as STRING_OPERATIONS,
@@ -40520,7 +40546,7 @@ export {
40520
40546
  P8 as SharedStateFunctionality,
40521
40547
  $m as SplitListOperationInputIds,
40522
40548
  Vm as SplitListOperationOutputIds,
40523
- $t as StandaloneOperatorTypes,
40549
+ Vt as StandaloneOperatorTypes,
40524
40550
  ge as StringOperations,
40525
40551
  Ae as TERMINATION_TYPES,
40526
40552
  Q6 as USER_MANAGED_ENTITY_TYPES,
@@ -40582,12 +40608,12 @@ export {
40582
40608
  lc as checkAreDataTypesCompatible,
40583
40609
  YU as checkArePropertiesCompatibleAsDataType,
40584
40610
  va as checkIsBranchDependentButNotDirectlyOnBranch,
40585
- u5 as checkIsBranchDependentOnBranch,
40611
+ u3 as checkIsBranchDependentOnBranch,
40586
40612
  aa as checkIsCallableEntityReachable,
40587
- A5 as checkIsCanvasEntity,
40613
+ A3 as checkIsCanvasEntity,
40588
40614
  g6 as checkIsDetachedBranch,
40589
40615
  _f as checkIsDetachedBranchShallow,
40590
- D5 as checkIsGlobalVariable,
40616
+ D3 as checkIsGlobalVariable,
40591
40617
  Mf as checkIsGloballyDeclared,
40592
40618
  D6 as checkIsMethod,
40593
40619
  ro as checkIsNestedScope,
@@ -40603,7 +40629,7 @@ export {
40603
40629
  cE as createNewInstanceOperationOutputEntityDeclarationParentRef,
40604
40630
  oE as createNewInstanceOperationRef,
40605
40631
  en as createSemanticId,
40606
- O5 as createStateFromGenerationTargetType,
40632
+ O3 as createStateFromGenerationTargetType,
40607
40633
  bs as createStateFromType,
40608
40634
  E as createStateFromTypeAndSubscribe,
40609
40635
  Dd as cronJobBuiltInBaseEntity,
@@ -40619,7 +40645,7 @@ export {
40619
40645
  Qy as dateValueAutogenerationSchema,
40620
40646
  vd as deletePersistedEntityMethod,
40621
40647
  _b as deletePersistedEntityMethodParentRef,
40622
- w5 as deleteRootProject,
40648
+ w3 as deleteRootProject,
40623
40649
  To as endpointBuiltInBaseEntity,
40624
40650
  wR as endpointBuiltInBaseEntityRef,
40625
40651
  Eb as endpointBuiltInBaseEntityRefFour,
@@ -40682,7 +40708,7 @@ export {
40682
40708
  S as filterOutDuplicateEntities,
40683
40709
  p9 as filterOutDuplicateErrors,
40684
40710
  h6 as findReferenceToSelfInList,
40685
- R5 as findReferencesToSelfInProject,
40711
+ R3 as findReferencesToSelfInProject,
40686
40712
  ir as flattenCalls,
40687
40713
  yc as flattenCanvasAncestorsUntil,
40688
40714
  R6 as flattenCustomEntityExtensionAndImplementationTypes,
@@ -40701,7 +40727,7 @@ export {
40701
40727
  z as flattenVariables,
40702
40728
  Ef as fromZodParseToEntityGenerationErrors,
40703
40729
  u9 as generate,
40704
- i5 as generateActionExample,
40730
+ i3 as generateActionExample,
40705
40731
  ZU as generateExecutionDataType,
40706
40732
  _s as generateMutablePropertiesExplanation,
40707
40733
  VI as generateRandomBoolean,
@@ -40721,7 +40747,7 @@ export {
40721
40747
  Gs as getAllActionDescriptorsForConditions,
40722
40748
  $s as getAllActionDescriptorsForGlobalEvents,
40723
40749
  Vs as getAllActionDescriptorsForLoops,
40724
- l5 as getAllActionDescriptorsForOperations,
40750
+ l3 as getAllActionDescriptorsForOperations,
40725
40751
  Z8 as getAllGloballyDeclaredFunctionDeclarationsExplanation,
40726
40752
  Zn as getBaseBuiltInEntities,
40727
40753
  j8 as getBaseSchemaBasedOnType,
@@ -40736,7 +40762,7 @@ export {
40736
40762
  Yc as getCanvasEntityDerivedFromValueReadingEntity,
40737
40763
  N9 as getCanvasEntityReferenceSchema,
40738
40764
  _9 as getCanvasEntityTypeSchema,
40739
- y5 as getChildrenEntityWithValues,
40765
+ y3 as getChildrenEntityWithValues,
40740
40766
  Pf as getCommonAncestor,
40741
40767
  r6 as getCommonChildren,
40742
40768
  lf as getDeclaration,
@@ -40753,7 +40779,7 @@ export {
40753
40779
  S9 as getDraggablePlayableEntityTypeSchema,
40754
40780
  Sf as getEntityArgumentDeclarations,
40755
40781
  f6 as getEntityInputMaps,
40756
- g5 as getEntityOutputMaps,
40782
+ g3 as getEntityOutputMaps,
40757
40783
  M9 as getEntityReferenceSchema,
40758
40784
  Of as getEntityReturnDeclarations,
40759
40785
  B9 as getEntityTypeSchema,
@@ -40767,12 +40793,12 @@ export {
40767
40793
  $l as getEventEntityTypeSchema,
40768
40794
  v9 as getExecutableEntityReferenceSchema,
40769
40795
  b9 as getExecutableEntityTypeSchema,
40770
- I5 as getExtendedBuiltInEntity,
40796
+ I3 as getExtendedBuiltInEntity,
40771
40797
  v6 as getExtendedCustomEntity,
40772
40798
  k8 as getGenerationTargetSchemaBasedOnType,
40773
40799
  I6 as getHeadIfPartOfDetachedBranch,
40774
40800
  S6 as getHighestScope,
40775
- P5 as getImplementedBuiltInEntity,
40801
+ P3 as getImplementedBuiltInEntity,
40776
40802
  Bf as getIsInteractive,
40777
40803
  ad as getLastInListOperation,
40778
40804
  uT as getLastInListOperationError,
@@ -40785,16 +40811,16 @@ export {
40785
40811
  cT as getLastInListOperationOutputElementReturn,
40786
40812
  lT as getLastInListOperationOutputElementReturnParentRef,
40787
40813
  iT as getLastInListOperationOutputElementReturnRef,
40788
- E5 as getLinkedEntitiesFromArgumentDeclaration,
40814
+ E3 as getLinkedEntitiesFromArgumentDeclaration,
40789
40815
  b6 as getLowestPersistedEntityImplementation,
40790
- xt as getParentCanvasEntities,
40816
+ $t as getParentCanvasEntities,
40791
40817
  He as getParentCanvasEntity,
40792
- p5 as getParentEntryPoint,
40818
+ p3 as getParentEntryPoint,
40793
40819
  be as getPassThroughCallableEntityReferenceSchema,
40794
40820
  Gl as getPassThroughCallableEntityTypeSchema,
40795
40821
  A9 as getPlayableEntityReferenceSchema,
40796
40822
  D9 as getPlayableEntityTypeSchema,
40797
- C5 as getProject,
40823
+ C3 as getProject,
40798
40824
  mc as getPrototypeByType,
40799
40825
  P as getReferenceEntityId,
40800
40826
  Ns as getReferencedEntitiesStateOrErrors,
@@ -40805,8 +40831,8 @@ export {
40805
40831
  pt as getScopeOwner,
40806
40832
  w9 as getTerminationReferenceSchema,
40807
40833
  C9 as getTerminationTypeSchema,
40808
- b5 as getUsedArgFromDeclaration,
40809
- v5 as getUsedReturnFromDeclaration,
40834
+ b3 as getUsedArgFromDeclaration,
40835
+ v3 as getUsedReturnFromDeclaration,
40810
40836
  O4 as getValueReadingEntityReferenceSchema,
40811
40837
  gn as getValueReadingEntityTypeSchema,
40812
40838
  h9 as getValueWritingEntityReferenceSchema,
@@ -40822,7 +40848,7 @@ export {
40822
40848
  o6 as getVariablesFromReturnDeclarations,
40823
40849
  cf as getVariablesInSameOrHigherScope,
40824
40850
  Af as getWrites,
40825
- f5 as groupCallsBasedOnParallelizableExecution,
40851
+ f3 as groupCallsBasedOnParallelizableExecution,
40826
40852
  n6 as handleAfterEntityImplementationSideEffects,
40827
40853
  t6 as handleBeforeEntityImplementationSideEffects,
40828
40854
  ho as httpRequestBodyArgument,
@@ -40915,7 +40941,7 @@ export {
40915
40941
  mR as manualFlowActionDescriptorDeclarationReturnDeclarationDataType,
40916
40942
  fR as manualFlowActionDescriptorDeclarationReturnDeclarationDataTypeParentRef,
40917
40943
  TR as manualFlowActionDescriptorDeclarationReturnDeclarationParentRef,
40918
- S5 as mapActionDescriptorToTypeItRepresents,
40944
+ S3 as mapActionDescriptorToTypeItRepresents,
40919
40945
  y9 as mergeEntityErrorsList,
40920
40946
  A6 as mergeListOfEntities,
40921
40947
  xE as methodDefaultValue,
@@ -40945,7 +40971,7 @@ export {
40945
40971
  Xf as numberAdditionOperationSecondNumberDataType,
40946
40972
  Be as numberPrototype,
40947
40973
  Xy as numberValueAutogenerationSchema,
40948
- Lt as parallelExecutionOperation,
40974
+ Ft as parallelExecutionOperation,
40949
40975
  VT as parallelExecutionOperationError,
40950
40976
  $T as parallelExecutionOperationErrorParentRef,
40951
40977
  _T as parallelExecutionOperationListOfExecutionResultsDataType,
@@ -41012,8 +41038,8 @@ export {
41012
41038
  i8 as resolveDataTypeLabel,
41013
41039
  s8 as resolveEntityDataTypeLabel,
41014
41040
  D as resolveEntityName,
41015
- m5 as resolveFirstCallsSecond,
41016
- T5 as resolveFirstWritesSecond,
41041
+ m3 as resolveFirstCallsSecond,
41042
+ T3 as resolveFirstWritesSecond,
41017
41043
  c8 as resolvePrimitiveEntityName,
41018
41044
  a8 as resolvePropertyDataTypeLabel,
41019
41045
  l8 as resolveSearchName,
@@ -41036,7 +41062,7 @@ export {
41036
41062
  xb as softDeletePersistedEntityMethod,
41037
41063
  Nb as softDeletePersistedEntityMethodParentRef,
41038
41064
  i6 as sortCallsBasedOnExecutionDependencies,
41039
- h5 as sortChildrenEntitiesBasedOnExecutionDependencies,
41065
+ h3 as sortChildrenEntitiesBasedOnExecutionDependencies,
41040
41066
  id as splitListOperation,
41041
41067
  Km as splitListOperationError,
41042
41068
  Qm as splitListOperationErrorParentRef,
@@ -41058,9 +41084,9 @@ export {
41058
41084
  L as stringPrototype,
41059
41085
  Zy as stringValueAutogenerationSchema,
41060
41086
  kc as suggestNewIdForEntity,
41061
- B5 as test_primitive_entities_export,
41087
+ B3 as test_primitive_entities_export,
41062
41088
  $9 as toCamelCase,
41063
- Bt as toEntityState,
41089
+ Mt as toEntityState,
41064
41090
  n8 as toKebabCase,
41065
41091
  eo as toLowerCaseKebabCase,
41066
41092
  V9 as toPascalCase,
@@ -41070,10 +41096,10 @@ export {
41070
41096
  CE as urlDefaultValue,
41071
41097
  ao as uuidPrototype,
41072
41098
  ff as validateArgumentDeclarationName,
41073
- s5 as validateCalledByErrorIdInAction,
41074
- a5 as validateCalledByIdInAction,
41099
+ s3 as validateCalledByErrorIdInAction,
41100
+ a3 as validateCalledByIdInAction,
41075
41101
  z8 as validateCallers,
41076
- c5 as validateConditionEntityDeclaration,
41102
+ c3 as validateConditionEntityDeclaration,
41077
41103
  dc as validateCustomEntityName,
41078
41104
  Or as validateDataOperation,
41079
41105
  EE as validateDataOperationDataToValidateArgument,
@@ -41092,16 +41118,16 @@ export {
41092
41118
  H8 as validateErrorCaller,
41093
41119
  X8 as validateFunctionCallDeclaration,
41094
41120
  pf as validateFunctionDeclarationName,
41095
- t5 as validateGeneratedEntityParentIsNotBuiltInEntity,
41121
+ t3 as validateGeneratedEntityParentIsNotBuiltInEntity,
41096
41122
  K9 as validateGeneration,
41097
41123
  De as validateGenerationTarget,
41098
- e5 as validateGenerationUpdate,
41099
- d5 as validateLoopEntityDeclaration,
41124
+ e3 as validateGenerationUpdate,
41125
+ d3 as validateLoopEntityDeclaration,
41100
41126
  L9 as validateName,
41101
41127
  Q8 as validateOperationEntityDeclaration,
41102
41128
  hf as validatePropertyName,
41103
41129
  An as validateReachability,
41104
- o5 as validateReadsValueInActionPayload,
41130
+ o3 as validateReadsValueInActionPayload,
41105
41131
  uc as validateReferenceObject,
41106
41132
  qc as validateReferenceToOne,
41107
41133
  Ve as validateReferences,