@elyx-code/project-logic-tree 0.0.6627 → 0.0.6628

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
@@ -82,14 +82,14 @@ const Qf = [o.GlobalEvent], ZM = [
82
82
  ], BD = [
83
83
  ...ZM,
84
84
  o.Condition
85
- ], Vi = [
85
+ ], Ni = [
86
86
  ...BD,
87
87
  o.InternalCall
88
88
  ], Wt = [
89
89
  o.FunctionDeclaration,
90
90
  ...Qf
91
91
  ], cn = [
92
- ...Vi,
92
+ ...Ni,
93
93
  o.ReturnStatement,
94
94
  o.BreakStatement,
95
95
  o.ContinueStatement
@@ -99,7 +99,7 @@ const Qf = [o.GlobalEvent], ZM = [
99
99
  o.BreakStatement,
100
100
  o.ContinueStatement
101
101
  ], ln = [
102
- ...Vi,
102
+ ...Ni,
103
103
  ...Wt
104
104
  ], nWe = [
105
105
  ...BD,
@@ -49453,58 +49453,58 @@ const Gtt = {
49453
49453
  outputDescription: null,
49454
49454
  error: Ikt,
49455
49455
  parent: null
49456
- }, _i = Y[o.Operation][Ti.DeriveKeyPBKDF2], md = {
49456
+ }, Oi = Y[o.Operation][Ti.DeriveKeyPBKDF2], md = {
49457
49457
  id: "crypto-derive-key-pbkdf2--ref",
49458
49458
  type: o.GenericReference,
49459
- entityId: _i.id,
49459
+ entityId: Oi.id,
49460
49460
  version: "1",
49461
49461
  entityType: o.ActionDescriptor
49462
49462
  }, Dkt = {
49463
49463
  type: o.GenericReference,
49464
49464
  id: "crypto-pbkdf2--password-ref",
49465
- entityId: _i.inputs.password.id,
49465
+ entityId: Oi.inputs.password.id,
49466
49466
  version: "1",
49467
49467
  entityType: o.ValueDescriptor
49468
49468
  }, wkt = {
49469
49469
  type: o.GenericReference,
49470
49470
  id: "crypto-pbkdf2--salt-ref",
49471
- entityId: _i.inputs.salt.id,
49471
+ entityId: Oi.inputs.salt.id,
49472
49472
  version: "1",
49473
49473
  entityType: o.ValueDescriptor
49474
49474
  }, Ckt = {
49475
49475
  type: o.GenericReference,
49476
49476
  id: "crypto-pbkdf2--iterations-ref",
49477
- entityId: _i.inputs.iterations.id,
49477
+ entityId: Oi.inputs.iterations.id,
49478
49478
  version: "1",
49479
49479
  entityType: o.ValueDescriptor
49480
49480
  }, _kt = {
49481
49481
  type: o.GenericReference,
49482
49482
  id: "crypto-pbkdf2--length-ref",
49483
- entityId: _i.inputs.length.id,
49483
+ entityId: Oi.inputs.length.id,
49484
49484
  version: "1",
49485
49485
  entityType: o.ValueDescriptor
49486
49486
  }, Okt = {
49487
49487
  type: o.GenericReference,
49488
49488
  id: "crypto-pbkdf2--hash-alg-ref",
49489
- entityId: _i.inputs.hashAlg.id,
49489
+ entityId: Oi.inputs.hashAlg.id,
49490
49490
  version: "1",
49491
49491
  entityType: o.ValueDescriptor
49492
49492
  }, Vkt = {
49493
49493
  type: o.GenericReference,
49494
49494
  id: "crypto-pbkdf2--password-encoding-ref",
49495
- entityId: _i.inputs.passwordEncoding.id,
49495
+ entityId: Oi.inputs.passwordEncoding.id,
49496
49496
  version: "1",
49497
49497
  entityType: o.ValueDescriptor
49498
49498
  }, Nkt = {
49499
49499
  type: o.GenericReference,
49500
49500
  id: "crypto-pbkdf2--salt-encoding-ref",
49501
- entityId: _i.inputs.saltEncoding.id,
49501
+ entityId: Oi.inputs.saltEncoding.id,
49502
49502
  version: "1",
49503
49503
  entityType: o.ValueDescriptor
49504
49504
  }, Pkt = {
49505
49505
  type: o.GenericReference,
49506
49506
  id: "crypto-pbkdf2--output-encoding-ref",
49507
- entityId: _i.inputs.outputEncoding.id,
49507
+ entityId: Oi.inputs.outputEncoding.id,
49508
49508
  version: "1",
49509
49509
  entityType: o.ValueDescriptor
49510
49510
  }, Gu = {
@@ -49513,7 +49513,7 @@ const Gtt = {
49513
49513
  interactiveEntities: null,
49514
49514
  actionEntities: null,
49515
49515
  inferred: !1,
49516
- id: _i.inputs.password.dataType.id,
49516
+ id: Oi.inputs.password.dataType.id,
49517
49517
  deletable: !1,
49518
49518
  editable: !1,
49519
49519
  type: o.DataType,
@@ -49536,49 +49536,49 @@ const Gtt = {
49536
49536
  parent: Dkt
49537
49537
  }, xkt = {
49538
49538
  ...Gu,
49539
- id: _i.inputs.salt.dataType.id,
49539
+ id: Oi.inputs.salt.dataType.id,
49540
49540
  parent: wkt
49541
49541
  }, q4 = {
49542
49542
  ...Gu,
49543
- id: _i.inputs.iterations.dataType.id,
49543
+ id: Oi.inputs.iterations.dataType.id,
49544
49544
  entity: we,
49545
49545
  parent: Ckt
49546
49546
  }, $kt = {
49547
49547
  ...q4,
49548
- id: _i.inputs.length.dataType.id,
49548
+ id: Oi.inputs.length.dataType.id,
49549
49549
  parent: _kt
49550
49550
  }, Lkt = {
49551
49551
  ...Gu,
49552
- id: _i.inputs.hashAlg.dataType.id,
49552
+ id: Oi.inputs.hashAlg.dataType.id,
49553
49553
  entity: gt,
49554
49554
  options: K4,
49555
49555
  parent: Okt
49556
49556
  }, Mkt = {
49557
49557
  ...Gu,
49558
- id: _i.inputs.passwordEncoding.dataType.id,
49558
+ id: Oi.inputs.passwordEncoding.dataType.id,
49559
49559
  entity: gt,
49560
49560
  options: gl,
49561
49561
  parent: Vkt
49562
49562
  }, Gkt = {
49563
49563
  ...Gu,
49564
- id: _i.inputs.saltEncoding.dataType.id,
49564
+ id: Oi.inputs.saltEncoding.dataType.id,
49565
49565
  entity: gt,
49566
49566
  options: gl,
49567
49567
  parent: Nkt
49568
49568
  }, Bkt = {
49569
49569
  ...Gu,
49570
- id: _i.inputs.outputEncoding.dataType.id,
49570
+ id: Oi.inputs.outputEncoding.dataType.id,
49571
49571
  entity: gt,
49572
49572
  options: gl,
49573
49573
  parent: Pkt
49574
49574
  }, Ukt = {
49575
49575
  type: o.GenericReference,
49576
49576
  id: "crypto-pbkdf2--iterations-default-parent-ref",
49577
- entityId: _i.inputs.iterations.id,
49577
+ entityId: Oi.inputs.iterations.id,
49578
49578
  version: "1",
49579
49579
  entityType: o.ValueDescriptor
49580
49580
  }, kkt = {
49581
- id: _i.inputs.iterations.defaultValue.id,
49581
+ id: Oi.inputs.iterations.defaultValue.id,
49582
49582
  deletable: !1,
49583
49583
  editable: !1,
49584
49584
  type: o.LiteralValue,
@@ -49597,11 +49597,11 @@ const Gtt = {
49597
49597
  }, jkt = {
49598
49598
  type: o.GenericReference,
49599
49599
  id: "crypto-pbkdf2--length-default-parent-ref",
49600
- entityId: _i.inputs.length.id,
49600
+ entityId: Oi.inputs.length.id,
49601
49601
  version: "1",
49602
49602
  entityType: o.ValueDescriptor
49603
49603
  }, Kkt = {
49604
- id: _i.inputs.length.defaultValue.id,
49604
+ id: Oi.inputs.length.defaultValue.id,
49605
49605
  deletable: !1,
49606
49606
  editable: !1,
49607
49607
  type: o.LiteralValue,
@@ -49620,11 +49620,11 @@ const Gtt = {
49620
49620
  }, Fkt = {
49621
49621
  type: o.GenericReference,
49622
49622
  id: "crypto-pbkdf2--hash-alg-default-parent-ref",
49623
- entityId: _i.inputs.hashAlg.id,
49623
+ entityId: Oi.inputs.hashAlg.id,
49624
49624
  version: "1",
49625
49625
  entityType: o.ValueDescriptor
49626
49626
  }, Skt = {
49627
- id: _i.inputs.hashAlg.defaultValue.id,
49627
+ id: Oi.inputs.hashAlg.defaultValue.id,
49628
49628
  deletable: !1,
49629
49629
  editable: !1,
49630
49630
  type: o.LiteralValue,
@@ -49643,11 +49643,11 @@ const Gtt = {
49643
49643
  }, qkt = {
49644
49644
  type: o.GenericReference,
49645
49645
  id: "crypto-pbkdf2--password-encoding-default-parent-ref",
49646
- entityId: _i.inputs.passwordEncoding.id,
49646
+ entityId: Oi.inputs.passwordEncoding.id,
49647
49647
  version: "1",
49648
49648
  entityType: o.ValueDescriptor
49649
49649
  }, Zkt = {
49650
- id: _i.inputs.passwordEncoding.defaultValue.id,
49650
+ id: Oi.inputs.passwordEncoding.defaultValue.id,
49651
49651
  deletable: !1,
49652
49652
  editable: !1,
49653
49653
  type: o.LiteralValue,
@@ -49666,11 +49666,11 @@ const Gtt = {
49666
49666
  }, Hkt = {
49667
49667
  type: o.GenericReference,
49668
49668
  id: "crypto-pbkdf2--salt-encoding-default-parent-ref",
49669
- entityId: _i.inputs.saltEncoding.id,
49669
+ entityId: Oi.inputs.saltEncoding.id,
49670
49670
  version: "1",
49671
49671
  entityType: o.ValueDescriptor
49672
49672
  }, Wkt = {
49673
- id: _i.inputs.saltEncoding.defaultValue.id,
49673
+ id: Oi.inputs.saltEncoding.defaultValue.id,
49674
49674
  deletable: !1,
49675
49675
  editable: !1,
49676
49676
  type: o.LiteralValue,
@@ -49689,11 +49689,11 @@ const Gtt = {
49689
49689
  }, zkt = {
49690
49690
  type: o.GenericReference,
49691
49691
  id: "crypto-pbkdf2--output-encoding-default-parent-ref",
49692
- entityId: _i.inputs.outputEncoding.id,
49692
+ entityId: Oi.inputs.outputEncoding.id,
49693
49693
  version: "1",
49694
49694
  entityType: o.ValueDescriptor
49695
49695
  }, Jkt = {
49696
- id: _i.inputs.outputEncoding.defaultValue.id,
49696
+ id: Oi.inputs.outputEncoding.defaultValue.id,
49697
49697
  deletable: !1,
49698
49698
  editable: !1,
49699
49699
  type: o.LiteralValue,
@@ -49710,7 +49710,7 @@ const Gtt = {
49710
49710
  autogeneration: null,
49711
49711
  parent: zkt
49712
49712
  }, Ykt = {
49713
- id: _i.inputs.password.id,
49713
+ id: Oi.inputs.password.id,
49714
49714
  deletable: !1,
49715
49715
  editable: !1,
49716
49716
  type: o.ValueDescriptor,
@@ -49729,7 +49729,7 @@ const Gtt = {
49729
49729
  index: 0,
49730
49730
  parent: md
49731
49731
  }, Xkt = {
49732
- id: _i.inputs.salt.id,
49732
+ id: Oi.inputs.salt.id,
49733
49733
  deletable: !1,
49734
49734
  editable: !1,
49735
49735
  type: o.ValueDescriptor,
@@ -49748,7 +49748,7 @@ const Gtt = {
49748
49748
  index: 1,
49749
49749
  parent: md
49750
49750
  }, Qkt = {
49751
- id: _i.inputs.iterations.id,
49751
+ id: Oi.inputs.iterations.id,
49752
49752
  deletable: !1,
49753
49753
  editable: !1,
49754
49754
  type: o.ValueDescriptor,
@@ -49767,7 +49767,7 @@ const Gtt = {
49767
49767
  index: 2,
49768
49768
  parent: md
49769
49769
  }, ejt = {
49770
- id: _i.inputs.length.id,
49770
+ id: Oi.inputs.length.id,
49771
49771
  deletable: !1,
49772
49772
  editable: !1,
49773
49773
  type: o.ValueDescriptor,
@@ -49786,7 +49786,7 @@ const Gtt = {
49786
49786
  index: 3,
49787
49787
  parent: md
49788
49788
  }, tjt = {
49789
- id: _i.inputs.hashAlg.id,
49789
+ id: Oi.inputs.hashAlg.id,
49790
49790
  deletable: !1,
49791
49791
  editable: !1,
49792
49792
  type: o.ValueDescriptor,
@@ -49805,7 +49805,7 @@ const Gtt = {
49805
49805
  index: 4,
49806
49806
  parent: md
49807
49807
  }, ijt = {
49808
- id: _i.inputs.passwordEncoding.id,
49808
+ id: Oi.inputs.passwordEncoding.id,
49809
49809
  deletable: !1,
49810
49810
  editable: !1,
49811
49811
  type: o.ValueDescriptor,
@@ -49824,7 +49824,7 @@ const Gtt = {
49824
49824
  index: 5,
49825
49825
  parent: md
49826
49826
  }, rjt = {
49827
- id: _i.inputs.saltEncoding.id,
49827
+ id: Oi.inputs.saltEncoding.id,
49828
49828
  deletable: !1,
49829
49829
  editable: !1,
49830
49830
  type: o.ValueDescriptor,
@@ -49843,7 +49843,7 @@ const Gtt = {
49843
49843
  index: 6,
49844
49844
  parent: md
49845
49845
  }, njt = {
49846
- id: _i.inputs.outputEncoding.id,
49846
+ id: Oi.inputs.outputEncoding.id,
49847
49847
  deletable: !1,
49848
49848
  editable: !1,
49849
49849
  type: o.ValueDescriptor,
@@ -49863,7 +49863,7 @@ const Gtt = {
49863
49863
  parent: md
49864
49864
  }, ajt = {
49865
49865
  ...Gu,
49866
- id: _i.dataType.id,
49866
+ id: Oi.dataType.id,
49867
49867
  entity: ue,
49868
49868
  // encoded derived key as string
49869
49869
  parent: md
@@ -49875,7 +49875,7 @@ const Gtt = {
49875
49875
  entityType: o.ActionDescriptor
49876
49876
  }, ljt = {
49877
49877
  parentRelationType: G.ReturnedError,
49878
- id: _i.error.id,
49878
+ id: Oi.error.id,
49879
49879
  deletable: !1,
49880
49880
  editable: !1,
49881
49881
  type: o.ValueDescriptor,
@@ -92887,15 +92887,15 @@ function nAi(d) {
92887
92887
  p.id
92888
92888
  );
92889
92889
  (i == null ? void 0 : i.type) === o.DefinitionEntity && i.parent.type !== o.DataType && (d.project.emit(
92890
- $i.EXPLICIT_DEFINITION_ENTITY_ADDED,
92890
+ _i.EXPLICIT_DEFINITION_ENTITY_ADDED,
92891
92891
  i,
92892
92892
  d
92893
92893
  ), Zi(i, Ie.PERSISTED_ENTITY) ? d.project.emit(
92894
- $i.PERSISTED_DEFINITION_ENTITY_ADDED,
92894
+ _i.PERSISTED_DEFINITION_ENTITY_ADDED,
92895
92895
  i,
92896
92896
  d
92897
92897
  ) : Zi(i, Ie.RELATIONAL_DATABASE) && d.project.emit(
92898
- $i.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,
92898
+ _i.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,
92899
92899
  i,
92900
92900
  d
92901
92901
  ));
@@ -92904,15 +92904,15 @@ function nAi(d) {
92904
92904
  p.id
92905
92905
  );
92906
92906
  (i == null ? void 0 : i.type) === o.DefinitionEntity && i.parent.type !== o.DataType && (d.project.emit(
92907
- $i.EXPLICIT_DEFINITION_ENTITY_UPDATED,
92907
+ _i.EXPLICIT_DEFINITION_ENTITY_UPDATED,
92908
92908
  i,
92909
92909
  d
92910
92910
  ), Zi(i, Ie.PERSISTED_ENTITY) ? d.project.emit(
92911
- $i.PERSISTED_DEFINITION_ENTITY_UPDATED,
92911
+ _i.PERSISTED_DEFINITION_ENTITY_UPDATED,
92912
92912
  i,
92913
92913
  d
92914
92914
  ) : Zi(i, Ie.RELATIONAL_DATABASE) && d.project.emit(
92915
- $i.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED,
92915
+ _i.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED,
92916
92916
  i,
92917
92917
  d
92918
92918
  ));
@@ -92921,15 +92921,15 @@ function nAi(d) {
92921
92921
  p.id
92922
92922
  );
92923
92923
  (i == null ? void 0 : i.type) === o.DefinitionEntity && i.parent.type !== o.DataType && (d.project.emit(
92924
- $i.EXPLICIT_DEFINITION_ENTITY_REMOVED,
92924
+ _i.EXPLICIT_DEFINITION_ENTITY_REMOVED,
92925
92925
  i,
92926
92926
  d
92927
92927
  ), Zi(i, Ie.PERSISTED_ENTITY) ? d.project.emit(
92928
- $i.PERSISTED_DEFINITION_ENTITY_REMOVED,
92928
+ _i.PERSISTED_DEFINITION_ENTITY_REMOVED,
92929
92929
  i,
92930
92930
  d
92931
92931
  ) : Zi(i, Ie.RELATIONAL_DATABASE) && d.project.emit(
92932
- $i.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,
92932
+ _i.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,
92933
92933
  i,
92934
92934
  d
92935
92935
  ));
@@ -92943,19 +92943,19 @@ async function aAi(d) {
92943
92943
  );
92944
92944
  (n == null ? void 0 : n.type) === o.DefinitionEntity && n.parent.type !== o.DataType && (p.push(
92945
92945
  d.project.emitAsync(
92946
- $i.EXPLICIT_DEFINITION_ENTITY_ADDED,
92946
+ _i.EXPLICIT_DEFINITION_ENTITY_ADDED,
92947
92947
  n,
92948
92948
  d
92949
92949
  )
92950
92950
  ), Zi(n, Ie.PERSISTED_ENTITY) ? p.push(
92951
92951
  d.project.emitAsync(
92952
- $i.PERSISTED_DEFINITION_ENTITY_ADDED,
92952
+ _i.PERSISTED_DEFINITION_ENTITY_ADDED,
92953
92953
  n,
92954
92954
  d
92955
92955
  )
92956
92956
  ) : Zi(n, Ie.RELATIONAL_DATABASE) && p.push(
92957
92957
  d.project.emitAsync(
92958
- $i.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,
92958
+ _i.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,
92959
92959
  n,
92960
92960
  d
92961
92961
  )
@@ -92966,19 +92966,19 @@ async function aAi(d) {
92966
92966
  );
92967
92967
  (n == null ? void 0 : n.type) === o.DefinitionEntity && n.parent.type !== o.DataType && (p.push(
92968
92968
  d.project.emitAsync(
92969
- $i.EXPLICIT_DEFINITION_ENTITY_UPDATED,
92969
+ _i.EXPLICIT_DEFINITION_ENTITY_UPDATED,
92970
92970
  n,
92971
92971
  d
92972
92972
  )
92973
92973
  ), Zi(n, Ie.PERSISTED_ENTITY) ? p.push(
92974
92974
  d.project.emitAsync(
92975
- $i.PERSISTED_DEFINITION_ENTITY_UPDATED,
92975
+ _i.PERSISTED_DEFINITION_ENTITY_UPDATED,
92976
92976
  n,
92977
92977
  d
92978
92978
  )
92979
92979
  ) : Zi(n, Ie.RELATIONAL_DATABASE) && p.push(
92980
92980
  d.project.emitAsync(
92981
- $i.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED,
92981
+ _i.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED,
92982
92982
  n,
92983
92983
  d
92984
92984
  )
@@ -92989,19 +92989,19 @@ async function aAi(d) {
92989
92989
  );
92990
92990
  (n == null ? void 0 : n.type) === o.DefinitionEntity && n.parent.type !== o.DataType && (p.push(
92991
92991
  d.project.emitAsync(
92992
- $i.EXPLICIT_DEFINITION_ENTITY_REMOVED,
92992
+ _i.EXPLICIT_DEFINITION_ENTITY_REMOVED,
92993
92993
  n,
92994
92994
  d
92995
92995
  )
92996
92996
  ), Zi(n, Ie.PERSISTED_ENTITY) ? p.push(
92997
92997
  d.project.emitAsync(
92998
- $i.PERSISTED_DEFINITION_ENTITY_REMOVED,
92998
+ _i.PERSISTED_DEFINITION_ENTITY_REMOVED,
92999
92999
  n,
93000
93000
  d
93001
93001
  )
93002
93002
  ) : Zi(n, Ie.RELATIONAL_DATABASE) && p.push(
93003
93003
  d.project.emitAsync(
93004
- $i.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,
93004
+ _i.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,
93005
93005
  n,
93006
93006
  d
93007
93007
  )
@@ -93334,14 +93334,18 @@ class S extends qf {
93334
93334
  return this.autoclose && this.autoCloseActionName && this.autoCloseActionName === i && (this.self && n === ((l = this.self) == null ? void 0 : l.id) || !this.self) && await this.closeAsync(), this;
93335
93335
  }
93336
93336
  async closeAsync(i = {}) {
93337
+ const n = {
93338
+ persistType: "sequential",
93339
+ ...i
93340
+ };
93337
93341
  if (!this.open || this.startedClose)
93338
93342
  return ne.warn(
93339
93343
  `Change-set (${this.id}) is already closed or in the process of closing.`
93340
93344
  ), this;
93341
- const n = i.awaitBeforeClose ?? !0, l = i.awaitExtenalClosing ?? !0;
93342
- return this.startedClose || (this.startedClose = !0, n ? await this.beforeCloseAsync() : this.beforeCloseAsync()), !this.isValid && this.self && !this.added[this.self.id] && !this.updated[this.self.id] && this.removed[this.self.id], this.discardOrphans(), this.sanitize(), this.recursiveCaptureUpstreamVersions(), this.lockedVersions || (this.captureAllChangesInVersionInstances(), this.recursiveCaptureUpstreamVersions()), this.open = !1, this.isEmpty ? (ne.warn(
93345
+ const l = i.awaitBeforeClose ?? !0, c = i.awaitExternalPersist ?? !0;
93346
+ return this.startedClose || (this.startedClose = !0, l ? await this.beforeCloseAsync() : this.beforeCloseAsync()), !this.isValid && this.self && !this.added[this.self.id] && !this.updated[this.self.id] && this.removed[this.self.id], this.discardOrphans(), this.sanitize(), this.recursiveCaptureUpstreamVersions(), this.lockedVersions || (this.captureAllChangesInVersionInstances(), this.recursiveCaptureUpstreamVersions()), this.open = !1, this.isEmpty ? (ne.warn(
93343
93347
  `[ChangeSet.closeAsync] Empty change-set (${this.id}) discarded upon closing.`
93344
- ), this.dirty = !1, this.project.discardChangeSet(this), console.log("[ChangeSet.closeAsync] Closing pending change-sets..."), this.project.closePendingChangeSets(), this) : (l ? await this.project.closeChangeSet(this) : this.project.closeChangeSet(this), this);
93348
+ ), this.dirty = !1, this.project.discardChangeSet(this), console.log("[ChangeSet.closeAsync] Closing pending change-sets..."), this.project.closePersistChangeSetsSequentially(), this) : (c ? n.persistType === "parallel" ? await this.project.persistChangeSetInParallel(this) : await this.project.persistChangeSetSequentially(this) : n.persistType === "parallel" ? this.project.persistChangeSetInParallel(this) : this.project.persistChangeSetSequentially(this), this);
93345
93349
  }
93346
93350
  attemptAutoclose(i, n) {
93347
93351
  var l;
@@ -93396,10 +93400,22 @@ class S extends qf {
93396
93400
  // In order to avoid infinite loops, for side effects of the 'close' change set methods that affect the change-set state itself
93397
93401
  // We trigger some side effects before closing the change-set
93398
93402
  async beforeCloseAsync() {
93399
- this.syncDependents(), await this.emitAsyncProjectSideEffects(), this.teardown();
93403
+ this.project.emit(
93404
+ _i.BEFORE_CHANGE_SET_CLOSE_BEFORE_SIDE_EFFECTS,
93405
+ this
93406
+ ), this.syncDependents(), await this.emitAsyncProjectSideEffects(), this.project.emit(
93407
+ _i.BEFORE_CHANGE_SET_CLOSE_AFTER_SIDE_EFFECTS,
93408
+ this
93409
+ ), this.teardown();
93400
93410
  }
93401
93411
  beforeClose() {
93402
- this.syncDependents(), this.emitProjectSideEffects(), this.teardown();
93412
+ this.project.emit(
93413
+ _i.BEFORE_CHANGE_SET_CLOSE_BEFORE_SIDE_EFFECTS,
93414
+ this
93415
+ ), this.syncDependents(), this.emitProjectSideEffects(), this.project.emit(
93416
+ _i.BEFORE_CHANGE_SET_CLOSE_AFTER_SIDE_EFFECTS,
93417
+ this
93418
+ ), this.teardown();
93403
93419
  }
93404
93420
  teardown() {
93405
93421
  this.destroy();
@@ -93411,7 +93427,11 @@ class S extends qf {
93411
93427
  async emitAsyncProjectSideEffects() {
93412
93428
  return aAi(this);
93413
93429
  }
93414
- close() {
93430
+ close(i = {}) {
93431
+ const n = {
93432
+ persistType: "sequential",
93433
+ ...i
93434
+ };
93415
93435
  if (!this.open || this.startedClose)
93416
93436
  return ne.warn(
93417
93437
  `Change-set (${this.id}) is already closed or in the process of closing.`
@@ -93419,7 +93439,7 @@ class S extends qf {
93419
93439
  if (this.startedClose || (this.startedClose = !0, this.beforeClose()), !this.isValid && this.self && !this.added[this.self.id] && !this.updated[this.self.id] && this.removed[this.self.id], this.discardOrphans(), this.sanitize(), this.captureAllChangesInVersionInstances(), this.lockedVersions || (this.recursiveCaptureUpstreamVersions(), this.captureAllChangesInVersionInstances()), this.open = !1, this.isEmpty)
93420
93440
  return ne.warn(
93421
93441
  `[ChangeSet.close] Empty change-set (${this.id}) discarded upon closing.`
93422
- ), this.project.discardChangeSet(this), console.log("[ChangeSet.close] Closing pending change-sets..."), this.project.closePendingChangeSets(), this;
93442
+ ), this.project.discardChangeSet(this), console.log("[ChangeSet.close] Closing pending change-sets..."), this.project.closePersistChangeSetsSequentially(), this;
93423
93443
  if (this.added[this.project.id] && this.updatedIds.length)
93424
93444
  throw new Error(
93425
93445
  "No 'updated' entities should be present in the change-set when the project entity is in the 'added' list. New projects can only have newly added entities"
@@ -93432,7 +93452,7 @@ class S extends qf {
93432
93452
  throw new Error(
93433
93453
  "Change-set must also have the project entity as 'updated' or 'added'. All changes must propagate upstream until the root project entity."
93434
93454
  );
93435
- return this.project.closeChangeSet(this), this;
93455
+ return n.persistType === "parallel" ? this.project.persistChangeSetInParallel(this) : this.project.persistChangeSetSequentially(this), this;
93436
93456
  }
93437
93457
  // Add to 'affected' any dependencies that are not present in the change-set
93438
93458
  addDependentsToAffected(i) {
@@ -93644,7 +93664,7 @@ class De {
93644
93664
  this.id = p.id, this.message = p.message, this.severity = p.severity, this.code = p.code;
93645
93665
  }
93646
93666
  toEntityError(p) {
93647
- return this.code in Ee ? new xi({
93667
+ return this.code in Ee ? new $i({
93648
93668
  id: this.id,
93649
93669
  message: this.message,
93650
93670
  severity: this.severity,
@@ -93653,7 +93673,7 @@ class De {
93653
93673
  }) : null;
93654
93674
  }
93655
93675
  }
93656
- class xi {
93676
+ class $i {
93657
93677
  constructor(p) {
93658
93678
  // A deterministic error code, so if the same error occurs again in a subsequent validation run,
93659
93679
  // it can be identified as the same problem
@@ -93678,7 +93698,7 @@ class xi {
93678
93698
  this.id = p.id, this.message = p.message, this.severity = p.severity, this.code = p.code, this.entity = p.entity, this.firstRelationship = p.firstRelationship, this.secondRelationship = p.secondRelationship;
93679
93699
  }
93680
93700
  clone() {
93681
- return new xi({
93701
+ return new $i({
93682
93702
  id: this.id,
93683
93703
  message: this.message,
93684
93704
  severity: this.severity,
@@ -93695,7 +93715,7 @@ function _A(d) {
93695
93715
  }
93696
93716
  function jt(d) {
93697
93717
  const p = d.entity.errors.find((n) => n.id === d.id);
93698
- return p ? { new: !1, error: p } : { new: !0, error: new xi(d) };
93718
+ return p ? { new: !1, error: p } : { new: !0, error: new $i(d) };
93699
93719
  }
93700
93720
  function EMi(d, p) {
93701
93721
  const i = /* @__PURE__ */ new Map();
@@ -104729,7 +104749,7 @@ I(si, "MUTABLE_DOWNSTREAM_PROPERTIES", ["inputs", "outputs"]), I(si, "INMUTABLE_
104729
104749
  ...si.UPSTREAM_PROPERTIES,
104730
104750
  ...si.DOWNSTREAM_PROPERTIES
104731
104751
  ]);
104732
- let Oi = si;
104752
+ let Vi = si;
104733
104753
  var kAi = /* @__PURE__ */ ((d) => (d.Parent = "loop-parent-field", d.LoopDataTypeEntity = "loop-data-type-entity-field", d.LoopDataType = "loop-data-type-field", d.LoopBodyDataTypeEntity = "loop-body-data-type-entity-field", d.LoopBodyDataType = "loop-body-data-type-field", d))(kAi || {});
104734
104754
  const Ut = class Ut extends Vr {
104735
104755
  constructor(i, n) {
@@ -108262,7 +108282,7 @@ I(Ut, "repository", {
108262
108282
  ...Ir,
108263
108283
  o.Project
108264
108284
  ]), I(Ut, "PARENT_TYPES", [
108265
- ...Oi.USER_MANAGED_PARENT_TYPES
108285
+ ...Vi.USER_MANAGED_PARENT_TYPES
108266
108286
  ]), I(Ut, "CURRENT_ITERATION_NUMBER_ARG_NAME", "Current iteration number"), I(Ut, "CURRENT_VALUE_ARG_NAME", "Current value"), I(Ut, "MUTABLE_BASE_PROPERTIES", ["catchesError"]), I(Ut, "INMUTABLE_BASE_PROPERTIES", [
108267
108287
  "id",
108268
108288
  "type",
@@ -112310,11 +112330,11 @@ class uL extends O_ {
112310
112330
  get startedInitialization() {
112311
112331
  return this._project.startedInitialization;
112312
112332
  }
112313
- closePendingChangeSets() {
112314
- return this._project.closePendingChangeSets();
112333
+ closePersistChangeSetsSequentially() {
112334
+ return this._project.closePersistChangeSetsSequentially();
112315
112335
  }
112316
- closeChangeSet(i) {
112317
- return this._project.closeChangeSet(i);
112336
+ persistChangeSetSequentially(i) {
112337
+ return this._project.persistChangeSetSequentially(i);
112318
112338
  }
112319
112339
  toLatestChangeSet(i, n, l, c = !1, e = "here-this") {
112320
112340
  return this._project.toLatestChangeSet(
@@ -127736,7 +127756,7 @@ class Up extends qf {
127736
127756
  // And returns a resolved list of dynamic values to be used during the execution
127737
127757
  mergeExernalValuesWithInternalInputs(i, n) {
127738
127758
  const l = [];
127739
- return [...Vi, ...Wt].includes(
127759
+ return [...Ni, ...Wt].includes(
127740
127760
  n.type
127741
127761
  ) ? l.push(
127742
127762
  ...n.inputs
@@ -129039,7 +129059,7 @@ class Up extends qf {
129039
129059
  e.forEach((v) => {
129040
129060
  this.addEntity(v);
129041
129061
  }), e.reduce(
129042
- (v, E) => kt.includes(E.type) ? [...v, ...E.outputs] : Vi.includes(E.type) && E.type !== o.Condition ? [
129062
+ (v, E) => kt.includes(E.type) ? [...v, ...E.outputs] : Ni.includes(E.type) && E.type !== o.Condition ? [
129043
129063
  ...v,
129044
129064
  ...E.outputs,
129045
129065
  ...E.inputs
@@ -130180,7 +130200,7 @@ function sVi(d) {
130180
130200
  i += E.height;
130181
130201
  }));
130182
130202
  }
130183
- Vi.includes(d.type) ? (St.includes(d.type) ? n.push(
130203
+ Ni.includes(d.type) ? (St.includes(d.type) ? n.push(
130184
130204
  ...(d.usedInputs || []).flatMap((T) => [
130185
130205
  T
130186
130206
  ]) || []
@@ -130198,7 +130218,7 @@ function sVi(d) {
130198
130218
  const c = [];
130199
130219
  if (d.type === o.FunctionDeclaration || d.type === o.GlobalEvent ? c.push(
130200
130220
  ...d.inputs || []
130201
- ) : Vi.includes(d.type) && (St.includes(d.type) ? c.push(...d.usedOutputs || []) : c.push(...d.outputs || [])), St.includes(d.type)) {
130221
+ ) : Ni.includes(d.type) && (St.includes(d.type) ? c.push(...d.usedOutputs || []) : c.push(...d.outputs || [])), St.includes(d.type)) {
130202
130222
  d.readsValue && (i += Kd, i += vD), d.writesValues.length && (i += Kd, i += vD), d.internalCalls.length && d.usedInternalCalls.forEach(
130203
130223
  () => i += VR + Kd
130204
130224
  );
@@ -138832,9 +138852,9 @@ var s3 = {};
138832
138852
  const l = (c) => [...new TextEncoder().encode(c)];
138833
138853
  d.parseTextBlob = l;
138834
138854
  })(s3);
138835
- var Pi = {};
138836
- Object.defineProperty(Pi, "__esModule", { value: !0 });
138837
- Pi.createArrayDataTypeChain = Pi.createListExpr = Pi.createParenExpr = Pi.createAlias = Pi.createIdentifier = Pi.createKeyword = Pi.createPostfixOpExpr = Pi.createPrefixOpExpr = Pi.createFuncCall = Pi.createMemberExprChain = Pi.createJoinExprChain = Pi.createCompoundSelectStmt = Pi.createCompoundSelectStmtChain = Pi.createCastOperatorExprChain = Pi.createBinaryExpr = Pi.createBinaryExprChain = Pi.createStringConcatExprChain = void 0;
138855
+ var xi = {};
138856
+ Object.defineProperty(xi, "__esModule", { value: !0 });
138857
+ xi.createArrayDataTypeChain = xi.createListExpr = xi.createParenExpr = xi.createAlias = xi.createIdentifier = xi.createKeyword = xi.createPostfixOpExpr = xi.createPrefixOpExpr = xi.createFuncCall = xi.createMemberExprChain = xi.createJoinExprChain = xi.createCompoundSelectStmt = xi.createCompoundSelectStmtChain = xi.createCastOperatorExprChain = xi.createBinaryExpr = xi.createBinaryExprChain = xi.createStringConcatExprChain = void 0;
138838
138858
  const Za = el, MVi = GT, GVi = qn, kA = (d) => {
138839
138859
  if (!d.left.range || !d.right.range)
138840
138860
  return d;
@@ -138844,11 +138864,11 @@ const Za = el, MVi = GT, GVi = qn, kA = (d) => {
138844
138864
  function BVi(d, p) {
138845
138865
  return p.reduce((i, [n, l]) => kA(H_(i, n, "", [], l)), d);
138846
138866
  }
138847
- Pi.createStringConcatExprChain = BVi;
138867
+ xi.createStringConcatExprChain = BVi;
138848
138868
  function UVi(d, p) {
138849
138869
  return p.reduce((i, [n, l, c, e]) => kA(H_(i, n, l, c, e)), d);
138850
138870
  }
138851
- Pi.createBinaryExprChain = UVi;
138871
+ xi.createBinaryExprChain = UVi;
138852
138872
  function H_(d, p, i, n, l) {
138853
138873
  return {
138854
138874
  type: "binary_expr",
@@ -138857,11 +138877,11 @@ function H_(d, p, i, n, l) {
138857
138877
  right: (0, Za.leading)(l, n)
138858
138878
  };
138859
138879
  }
138860
- Pi.createBinaryExpr = H_;
138880
+ xi.createBinaryExpr = H_;
138861
138881
  function kVi(d, p) {
138862
138882
  return p.reduce((i, [n, l, c, e]) => kA(jVi(i, n, l, c, e)), d);
138863
138883
  }
138864
- Pi.createCastOperatorExprChain = kVi;
138884
+ xi.createCastOperatorExprChain = kVi;
138865
138885
  function jVi(d, p, i, n, l) {
138866
138886
  return {
138867
138887
  type: "cast_operator_expr",
@@ -138873,7 +138893,7 @@ function jVi(d, p, i, n, l) {
138873
138893
  function KVi(d, p) {
138874
138894
  return p.reduce((i, [n, l, c, e]) => kA(l3(i, n, l, c, e)), d);
138875
138895
  }
138876
- Pi.createCompoundSelectStmtChain = KVi;
138896
+ xi.createCompoundSelectStmtChain = KVi;
138877
138897
  function l3(d, p, i, n, l) {
138878
138898
  return {
138879
138899
  type: "compound_select_stmt",
@@ -138882,7 +138902,7 @@ function l3(d, p, i, n, l) {
138882
138902
  right: (0, Za.leading)(l, n)
138883
138903
  };
138884
138904
  }
138885
- Pi.createCompoundSelectStmt = l3;
138905
+ xi.createCompoundSelectStmt = l3;
138886
138906
  const FVi = (d) => {
138887
138907
  var p, i;
138888
138908
  if (!d.left.range)
@@ -138917,7 +138937,7 @@ function qVi(d, p) {
138917
138937
  }
138918
138938
  }, d);
138919
138939
  }
138920
- Pi.createJoinExprChain = qVi;
138940
+ xi.createJoinExprChain = qVi;
138921
138941
  function ZVi(d) {
138922
138942
  return d[1] === ".";
138923
138943
  }
@@ -138927,7 +138947,7 @@ function HVi(d) {
138927
138947
  function WVi(d, p) {
138928
138948
  return p.reduce((i, n) => HVi(n) ? YVi(o3(i, n)) : JVi(zVi(i, n)), d);
138929
138949
  }
138930
- Pi.createMemberExprChain = WVi;
138950
+ xi.createMemberExprChain = WVi;
138931
138951
  function zVi(d, p) {
138932
138952
  if (ZVi(p)) {
138933
138953
  const [i, n, l, c] = p;
@@ -138954,7 +138974,7 @@ function o3(d, [p, i]) {
138954
138974
  over: i.over
138955
138975
  };
138956
138976
  }
138957
- Pi.createFuncCall = o3;
138977
+ xi.createFuncCall = o3;
138958
138978
  const JVi = (d) => {
138959
138979
  if (!d.object.range || !d.property.range)
138960
138980
  return d;
@@ -138976,7 +138996,7 @@ function XVi(d, p) {
138976
138996
  expr: p
138977
138997
  };
138978
138998
  }
138979
- Pi.createPrefixOpExpr = XVi;
138999
+ xi.createPrefixOpExpr = XVi;
138980
139000
  function QVi(d, p) {
138981
139001
  return {
138982
139002
  type: "postfix_op_expr",
@@ -138984,40 +139004,40 @@ function QVi(d, p) {
138984
139004
  operator: d
138985
139005
  };
138986
139006
  }
138987
- Pi.createPostfixOpExpr = QVi;
139007
+ xi.createPostfixOpExpr = QVi;
138988
139008
  const eNi = (d) => ({
138989
139009
  type: "keyword",
138990
139010
  text: d,
138991
139011
  name: d.toUpperCase()
138992
139012
  });
138993
- Pi.createKeyword = eNi;
139013
+ xi.createKeyword = eNi;
138994
139014
  const tNi = (d, p) => ({
138995
139015
  type: "identifier",
138996
139016
  text: d,
138997
139017
  name: p
138998
139018
  });
138999
- Pi.createIdentifier = tNi;
139019
+ xi.createIdentifier = tNi;
139000
139020
  const iNi = (d, p) => {
139001
139021
  if (!p)
139002
139022
  return d;
139003
139023
  const [i, n] = p;
139004
139024
  return Object.assign({ type: "alias", expr: (0, Za.trailing)(d, i) }, n);
139005
139025
  };
139006
- Pi.createAlias = iNi;
139026
+ xi.createAlias = iNi;
139007
139027
  const rNi = (d, p, i) => ({
139008
139028
  type: "paren_expr",
139009
139029
  expr: (0, Za.surrounding)(d, p, i)
139010
139030
  });
139011
- Pi.createParenExpr = rNi;
139031
+ xi.createParenExpr = rNi;
139012
139032
  const nNi = (d, p) => ({
139013
139033
  type: "list_expr",
139014
139034
  items: (0, MVi.readCommaSepList)(d, p)
139015
139035
  });
139016
- Pi.createListExpr = nNi;
139036
+ xi.createListExpr = nNi;
139017
139037
  function aNi(d, p) {
139018
139038
  return p.reduce((i, [n, l]) => sNi(lNi(i, n, l)), d);
139019
139039
  }
139020
- Pi.createArrayDataTypeChain = aNi;
139040
+ xi.createArrayDataTypeChain = aNi;
139021
139041
  const sNi = (d) => {
139022
139042
  if (!d.dataType.range || !d.bounds.range)
139023
139043
  return d;
@@ -139103,7 +139123,7 @@ const ML = KA, bNi = (d) => (0, ML.getOptions)().includeRange ? Object.assign(Ob
139103
139123
  SA.loc = bNi;
139104
139124
  Object.defineProperty(Wf, "__esModule", { value: !0 });
139105
139125
  Wf.PeggySyntaxError = Wf.parse = void 0;
139106
- const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ = SA, W_ = (
139126
+ const Cf = qn, $R = GT, _f = s3, U = xi, Wl = el, P = jA, nn = KA, GL = FA, _ = SA, W_ = (
139107
139127
  // Generated by Peggy 3.0.2.
139108
139128
  //
139109
139129
  // https://peggyjs.org/
@@ -147760,11 +147780,11 @@ const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ =
147760
147780
  }
147761
147781
  function rUe() {
147762
147782
  var t, s, a, u, f, h;
147763
- return t = r, s = r, a = Mo(), a !== e ? (u = g(), f = N5e(), f !== e ? (h = g(), a = [a, u, f, h], s = a) : (r = s, s = e)) : (r = s, s = e), s !== e ? (a = Ni(), a !== e ? (R = t, t = Uce(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
147783
+ return t = r, s = r, a = Mo(), a !== e ? (u = g(), f = N5e(), f !== e ? (h = g(), a = [a, u, f, h], s = a) : (r = s, s = e)) : (r = s, s = e), s !== e ? (a = Pi(), a !== e ? (R = t, t = Uce(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
147764
147784
  }
147765
147785
  function nUe() {
147766
147786
  var t, s, a, u, f, h, A, C;
147767
- return t = r, s = r, a = Mo(), a !== e ? (u = g(), f = W8e(), f !== e ? (h = g(), a = [a, u, f, h], s = a) : (r = s, s = e)) : (r = s, s = e), s !== e ? (a = Ni(), a !== e ? (u = r, f = g(), h = aUe(), h !== e ? (f = [f, h], u = f) : (r = u, u = e), u === e && (u = null), f = r, h = g(), A = sUe(), A !== e ? (h = [h, A], f = h) : (r = f, f = e), f === e && (f = null), h = r, A = g(), C = lUe(), C !== e ? (A = [A, C], h = A) : (r = h, h = e), h === e && (h = null), R = t, t = kce(s, a, u, f, h)) : (r = t, t = e)) : (r = t, t = e), t;
147787
+ return t = r, s = r, a = Mo(), a !== e ? (u = g(), f = W8e(), f !== e ? (h = g(), a = [a, u, f, h], s = a) : (r = s, s = e)) : (r = s, s = e), s !== e ? (a = Pi(), a !== e ? (u = r, f = g(), h = aUe(), h !== e ? (f = [f, h], u = f) : (r = u, u = e), u === e && (u = null), f = r, h = g(), A = sUe(), A !== e ? (h = [h, A], f = h) : (r = f, f = e), f === e && (f = null), h = r, A = g(), C = lUe(), C !== e ? (A = [A, C], h = A) : (r = h, h = e), h === e && (h = null), R = t, t = kce(s, a, u, f, h)) : (r = t, t = e)) : (r = t, t = e), t;
147768
147788
  }
147769
147789
  function aUe() {
147770
147790
  var t, s, a, u, f, h;
@@ -147806,19 +147826,19 @@ const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ =
147806
147826
  }
147807
147827
  function XV() {
147808
147828
  var t, s, a, u, f, h;
147809
- return t = r, s = r, a = RHe(), a !== e ? (u = g(), f = un(), f !== e ? (h = g(), a = [a, u, f, h], s = a) : (r = s, s = e)) : (r = s, s = e), s !== e ? (a = Ni(), a !== e ? (R = t, t = Sce(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
147829
+ return t = r, s = r, a = RHe(), a !== e ? (u = g(), f = un(), f !== e ? (h = g(), a = [a, u, f, h], s = a) : (r = s, s = e)) : (r = s, s = e), s !== e ? (a = Pi(), a !== e ? (R = t, t = Sce(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
147810
147830
  }
147811
147831
  function oUe() {
147812
147832
  var t, s, a, u, f, h, A;
147813
- return t = r, s = r, a = j8e(), a !== e ? (u = g(), a = [a, u], s = a) : (r = s, s = e), s === e && (s = null), a = r, u = M5e(), u !== e ? (f = g(), h = un(), h !== e ? (A = g(), u = [u, f, h, A], a = u) : (r = a, a = e)) : (r = a, a = e), a !== e ? (u = Ni(), u !== e ? (R = t, t = qce(s, a, u)) : (r = t, t = e)) : (r = t, t = e), t;
147833
+ return t = r, s = r, a = j8e(), a !== e ? (u = g(), a = [a, u], s = a) : (r = s, s = e), s === e && (s = null), a = r, u = M5e(), u !== e ? (f = g(), h = un(), h !== e ? (A = g(), u = [u, f, h, A], a = u) : (r = a, a = e)) : (r = a, a = e), a !== e ? (u = Pi(), u !== e ? (R = t, t = qce(s, a, u)) : (r = t, t = e)) : (r = t, t = e), t;
147814
147834
  }
147815
147835
  function dUe() {
147816
147836
  var t, s, a, u, f, h;
147817
- return t = r, s = r, a = dHe(), a !== e ? (u = g(), f = un(), f !== e ? (h = g(), a = [a, u, f, h], s = a) : (r = s, s = e)) : (r = s, s = e), s !== e ? (a = Ni(), a !== e ? (R = t, t = Zce(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
147837
+ return t = r, s = r, a = dHe(), a !== e ? (u = g(), f = un(), f !== e ? (h = g(), a = [a, u, f, h], s = a) : (r = s, s = e)) : (r = s, s = e), s !== e ? (a = Pi(), a !== e ? (R = t, t = Zce(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
147818
147838
  }
147819
147839
  function uUe() {
147820
147840
  var t, s, a, u, f, h;
147821
- return t = r, s = r, a = F5e(), a !== e ? (u = g(), f = un(), f !== e ? (h = g(), a = [a, u, f, h], s = a) : (r = s, s = e)) : (r = s, s = e), s !== e ? (a = Ni(), a !== e ? (R = t, t = Hce(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
147841
+ return t = r, s = r, a = F5e(), a !== e ? (u = g(), f = un(), f !== e ? (h = g(), a = [a, u, f, h], s = a) : (r = s, s = e)) : (r = s, s = e), s !== e ? (a = Pi(), a !== e ? (R = t, t = Hce(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
147822
147842
  }
147823
147843
  function pUe() {
147824
147844
  var t, s, a, u, f, h, A, C, z;
@@ -148415,7 +148435,7 @@ const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ =
148415
148435
  }
148416
148436
  function AN() {
148417
148437
  var t, s, a, u, f, h;
148418
- return t = r, s = r, a = Zr(), a !== e ? (u = g(), f = Kl(), f !== e ? (h = g(), a = [a, u, f, h], s = a) : (r = s, s = e)) : (r = s, s = e), s !== e ? (a = Ni(), a !== e ? (R = t, t = yhe(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
148438
+ return t = r, s = r, a = Zr(), a !== e ? (u = g(), f = Kl(), f !== e ? (h = g(), a = [a, u, f, h], s = a) : (r = s, s = e)) : (r = s, s = e), s !== e ? (a = Pi(), a !== e ? (R = t, t = yhe(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
148419
148439
  }
148420
148440
  function Eke() {
148421
148441
  var t, s, a, u, f, h, A, C, z;
@@ -148487,7 +148507,7 @@ const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ =
148487
148507
  }
148488
148508
  function RN() {
148489
148509
  var t, s, a, u, f, h, A, C;
148490
- return t = r, s = r, a = Ci(), a !== e ? (u = g(), f = Zr(), f !== e ? (h = g(), A = Kl(), A !== e ? (C = g(), a = [a, u, f, h, A, C], s = a) : (r = s, s = e)) : (r = s, s = e)) : (r = s, s = e), s !== e ? (a = Ni(), a !== e ? (R = t, t = Mhe(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
148510
+ return t = r, s = r, a = Ci(), a !== e ? (u = g(), f = Zr(), f !== e ? (h = g(), A = Kl(), A !== e ? (C = g(), a = [a, u, f, h, A, C], s = a) : (r = s, s = e)) : (r = s, s = e)) : (r = s, s = e), s !== e ? (a = Pi(), a !== e ? (R = t, t = Mhe(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
148491
148511
  }
148492
148512
  function xo() {
148493
148513
  var t, s, a, u;
@@ -148640,15 +148660,15 @@ const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ =
148640
148660
  }
148641
148661
  function qke() {
148642
148662
  var t, s, a, u, f, h, A;
148643
- return t = r, s = r, a = Rp(), a !== e ? (u = g(), f = s0(), f !== e ? (h = g(), a = [a, u, f, h], s = a) : (r = s, s = e)) : (r = s, s = e), s !== e ? (a = r, u = $a(), u !== e ? (f = g(), u = [u, f], a = u) : (r = a, a = e), a === e && (a = null), u = Ni(), u !== e ? (f = r, h = g(), A = Zke(), A !== e ? (h = [h, A], f = h) : (r = f, f = e), f === e && (f = null), R = t, t = m0e(s, a, u, f)) : (r = t, t = e)) : (r = t, t = e), t;
148663
+ return t = r, s = r, a = Rp(), a !== e ? (u = g(), f = s0(), f !== e ? (h = g(), a = [a, u, f, h], s = a) : (r = s, s = e)) : (r = s, s = e), s !== e ? (a = r, u = $a(), u !== e ? (f = g(), u = [u, f], a = u) : (r = a, a = e), a === e && (a = null), u = Pi(), u !== e ? (f = r, h = g(), A = Zke(), A !== e ? (h = [h, A], f = h) : (r = f, f = e), f === e && (f = null), R = t, t = m0e(s, a, u, f)) : (r = t, t = e)) : (r = t, t = e), t;
148644
148664
  }
148645
148665
  function Zke() {
148646
148666
  var t, s, a, u;
148647
- return t = r, s = r, a = o$(), a === e && (a = i$()), a !== e ? (u = g(), a = [a, u], s = a) : (r = s, s = e), s !== e ? (a = Ni(), a !== e ? (R = t, t = T0e(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
148667
+ return t = r, s = r, a = o$(), a === e && (a = i$()), a !== e ? (u = g(), a = [a, u], s = a) : (r = s, s = e), s !== e ? (a = Pi(), a !== e ? (R = t, t = T0e(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
148648
148668
  }
148649
148669
  function Hke() {
148650
148670
  var t, s, a, u, f, h, A;
148651
- return t = r, s = r, a = Go(), a !== e ? (u = g(), f = s0(), f !== e ? (h = g(), a = [a, u, f, h], s = a) : (r = s, s = e)) : (r = s, s = e), s !== e ? (a = Ni(), a !== e ? (u = r, f = g(), h = Hr(), h !== e ? (A = g(), f = [f, h, A], u = f) : (r = u, u = e), u !== e ? (f = Ni(), f !== e ? (R = t, t = v0e(s, a, u, f)) : (r = t, t = e)) : (r = t, t = e)) : (r = t, t = e)) : (r = t, t = e), t;
148671
+ return t = r, s = r, a = Go(), a !== e ? (u = g(), f = s0(), f !== e ? (h = g(), a = [a, u, f, h], s = a) : (r = s, s = e)) : (r = s, s = e), s !== e ? (a = Pi(), a !== e ? (u = r, f = g(), h = Hr(), h !== e ? (A = g(), f = [f, h, A], u = f) : (r = u, u = e), u !== e ? (f = Pi(), f !== e ? (R = t, t = v0e(s, a, u, f)) : (r = t, t = e)) : (r = t, t = e)) : (r = t, t = e)) : (r = t, t = e), t;
148652
148672
  }
148653
148673
  function Wke() {
148654
148674
  var t, s, a, u, f, h, A, C;
@@ -149039,15 +149059,15 @@ const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ =
149039
149059
  }
149040
149060
  function $je() {
149041
149061
  var t;
149042
- return t = Lo(), t === e && (t = Ni(), t === e && (t = mp())), t;
149062
+ return t = Lo(), t === e && (t = Pi(), t === e && (t = mp())), t;
149043
149063
  }
149044
149064
  function Lje() {
149045
149065
  var t;
149046
- return t = Mje(), t === e && (t = Ni()), t;
149066
+ return t = Mje(), t === e && (t = Pi()), t;
149047
149067
  }
149048
149068
  function Mje() {
149049
149069
  var t, s, a, u, f, h;
149050
- return t = r, s = r, a = Ni(), a !== e ? (u = g(), a = [a, u], s = a) : (r = s, s = e), s !== e ? (l.charCodeAt(r) === 44 ? (a = b, r++) : (a = e, m === 0 && N(Fe)), a !== e ? (u = r, f = g(), h = Ni(), h !== e ? (f = [f, h], u = f) : (r = u, u = e), u !== e ? (R = t, t = kme(s, u)) : (r = t, t = e)) : (r = t, t = e)) : (r = t, t = e), t;
149070
+ return t = r, s = r, a = Pi(), a !== e ? (u = g(), a = [a, u], s = a) : (r = s, s = e), s !== e ? (l.charCodeAt(r) === 44 ? (a = b, r++) : (a = e, m === 0 && N(Fe)), a !== e ? (u = r, f = g(), h = Pi(), h !== e ? (f = [f, h], u = f) : (r = u, u = e), u !== e ? (R = t, t = kme(s, u)) : (r = t, t = e)) : (r = t, t = e)) : (r = t, t = e), t;
149051
149071
  }
149052
149072
  function $h() {
149053
149073
  var t, s, a, u, f, h, A, C;
@@ -149393,11 +149413,11 @@ const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ =
149393
149413
  }
149394
149414
  function mKe() {
149395
149415
  var t, s, a, u, f;
149396
- return t = r, s = r, a = G5e(), a !== e ? (u = g(), a = [a, u], s = a) : (r = s, s = e), s === e && (s = null), a = r, u = p2(), u !== e ? (f = g(), u = [u, f], a = u) : (r = a, a = e), a !== e ? (u = Ni(), u === e && (u = kx()), u !== e ? (R = t, t = kTe(s, a, u)) : (r = t, t = e)) : (r = t, t = e), t;
149416
+ return t = r, s = r, a = G5e(), a !== e ? (u = g(), a = [a, u], s = a) : (r = s, s = e), s === e && (s = null), a = r, u = p2(), u !== e ? (f = g(), u = [u, f], a = u) : (r = a, a = e), a !== e ? (u = Pi(), u === e && (u = kx()), u !== e ? (R = t, t = kTe(s, a, u)) : (r = t, t = e)) : (r = t, t = e), t;
149397
149417
  }
149398
149418
  function TKe() {
149399
149419
  var t, s, a, u, f, h;
149400
- return t = r, s = r, a = k2(), a !== e ? (u = g(), f = B2(), f !== e ? (h = g(), a = [a, u, f, h], s = a) : (r = s, s = e)) : (r = s, s = e), s !== e ? (a = Ni(), a !== e ? (R = t, t = jTe(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
149420
+ return t = r, s = r, a = k2(), a !== e ? (u = g(), f = B2(), f !== e ? (h = g(), a = [a, u, f, h], s = a) : (r = s, s = e)) : (r = s, s = e), s !== e ? (a = Pi(), a !== e ? (R = t, t = jTe(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
149401
149421
  }
149402
149422
  function vKe() {
149403
149423
  var t, s, a, u, f, h;
@@ -149473,7 +149493,7 @@ const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ =
149473
149493
  }
149474
149494
  function PKe() {
149475
149495
  var t, s, a, u, f, h;
149476
- return t = r, s = r, a = Ci(), a !== e ? (u = g(), a = [a, u], s = a) : (r = s, s = e), s !== e ? (a = r, u = W9e(), u === e && (u = jI()), u !== e ? (f = g(), u = [u, f], a = u) : (r = a, a = e), a === e && (a = null), u = r, f = Op(), f !== e ? (h = g(), f = [f, h], u = f) : (r = u, u = e), u !== e ? (f = N8e(), f === e && (f = Ke(), f === e && (f = Ni())), f !== e ? (R = t, t = ive(s, a, u, f)) : (r = t, t = e)) : (r = t, t = e)) : (r = t, t = e), t;
149496
+ return t = r, s = r, a = Ci(), a !== e ? (u = g(), a = [a, u], s = a) : (r = s, s = e), s !== e ? (a = r, u = W9e(), u === e && (u = jI()), u !== e ? (f = g(), u = [u, f], a = u) : (r = a, a = e), a === e && (a = null), u = r, f = Op(), f !== e ? (h = g(), f = [f, h], u = f) : (r = u, u = e), u !== e ? (f = N8e(), f === e && (f = Ke(), f === e && (f = Pi())), f !== e ? (R = t, t = ive(s, a, u, f)) : (r = t, t = e)) : (r = t, t = e)) : (r = t, t = e), t;
149477
149497
  }
149478
149498
  function xKe() {
149479
149499
  var t, s, a, u, f;
@@ -149888,7 +149908,7 @@ const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ =
149888
149908
  }
149889
149909
  function OFe() {
149890
149910
  var t, s, a, u, f, h;
149891
- return t = r, s = r, a = aa(), a !== e ? (u = g(), f = a8e(), f !== e ? (h = g(), a = [a, u, f, h], s = a) : (r = s, s = e)) : (r = s, s = e), s !== e ? (l.charCodeAt(r) === 61 ? (a = $, r++) : (a = e, m === 0 && N(ta)), a !== e ? (u = r, f = g(), h = Ni(), h !== e ? (f = [f, h], u = f) : (r = u, u = e), u !== e ? (R = t, t = tEe(s, u)) : (r = t, t = e)) : (r = t, t = e)) : (r = t, t = e), t;
149911
+ return t = r, s = r, a = aa(), a !== e ? (u = g(), f = a8e(), f !== e ? (h = g(), a = [a, u, f, h], s = a) : (r = s, s = e)) : (r = s, s = e), s !== e ? (l.charCodeAt(r) === 61 ? (a = $, r++) : (a = e, m === 0 && N(ta)), a !== e ? (u = r, f = g(), h = Pi(), h !== e ? (f = [f, h], u = f) : (r = u, u = e), u !== e ? (R = t, t = tEe(s, u)) : (r = t, t = e)) : (r = t, t = e)) : (r = t, t = e), t;
149892
149912
  }
149893
149913
  function xg() {
149894
149914
  var t, s, a, u, f, h, A, C;
@@ -149920,7 +149940,7 @@ const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ =
149920
149940
  }
149921
149941
  function MFe() {
149922
149942
  var t, s, a, u, f, h;
149923
- return t = r, s = r, a = U2(), a !== e ? (u = g(), a = [a, u], s = a) : (r = s, s = e), s !== e ? (a = r, u = Ke(), u !== e ? (f = g(), u = [u, f], a = u) : (r = a, a = e), a === e && (a = null), u = r, f = Mo(), f !== e ? (h = g(), f = [f, h], u = f) : (r = u, u = e), u !== e ? (f = Ni(), f !== e ? (R = t, t = oEe(s, a, u, f)) : (r = t, t = e)) : (r = t, t = e)) : (r = t, t = e), t === e && (t = r, s = r, a = U2(), a !== e ? (u = g(), a = [a, u], s = a) : (r = s, s = e), s !== e ? (a = Ke(), a === e && (a = null), R = t, t = dEe(s, a)) : (r = t, t = e)), t;
149943
+ return t = r, s = r, a = U2(), a !== e ? (u = g(), a = [a, u], s = a) : (r = s, s = e), s !== e ? (a = r, u = Ke(), u !== e ? (f = g(), u = [u, f], a = u) : (r = a, a = e), a === e && (a = null), u = r, f = Mo(), f !== e ? (h = g(), f = [f, h], u = f) : (r = u, u = e), u !== e ? (f = Pi(), f !== e ? (R = t, t = oEe(s, a, u, f)) : (r = t, t = e)) : (r = t, t = e)) : (r = t, t = e), t === e && (t = r, s = r, a = U2(), a !== e ? (u = g(), a = [a, u], s = a) : (r = s, s = e), s !== e ? (a = Ke(), a === e && (a = null), R = t, t = dEe(s, a)) : (r = t, t = e)), t;
149924
149944
  }
149925
149945
  function GFe() {
149926
149946
  var t, s, a, u;
@@ -150061,7 +150081,7 @@ const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ =
150061
150081
  }
150062
150082
  function Lg() {
150063
150083
  var t, s, a, u;
150064
- return t = r, s = r, a = Ke(), a !== e ? (u = g(), a = [a, u], s = a) : (r = s, s = e), s !== e ? (a = Ni(), a !== e ? (R = t, t = $Ee(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
150084
+ return t = r, s = r, a = Ke(), a !== e ? (u = g(), a = [a, u], s = a) : (r = s, s = e), s !== e ? (a = Pi(), a !== e ? (R = t, t = $Ee(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
150065
150085
  }
150066
150086
  function iSe() {
150067
150087
  var t, s, a, u, f, h;
@@ -150098,7 +150118,7 @@ const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ =
150098
150118
  }
150099
150119
  function LP() {
150100
150120
  var t;
150101
- return t = Ni(), t === e && (t = ra(), t === e && (t = Ke(), t === e && (t = mx(), t === e && (t = Zr(), t === e && (t = N$(), t === e && (t = MI(), t === e && (t = zZe(), t === e && (t = A9e(), t === e && (t = WZe(), t === e && (t = Ua(), t === e && (t = vb(), t === e && (t = Q$(), t === e && (t = V$(), t === e && (t = s2())))))))))))))), t;
150121
+ return t = Pi(), t === e && (t = ra(), t === e && (t = Ke(), t === e && (t = mx(), t === e && (t = Zr(), t === e && (t = N$(), t === e && (t = MI(), t === e && (t = zZe(), t === e && (t = A9e(), t === e && (t = WZe(), t === e && (t = Ua(), t === e && (t = vb(), t === e && (t = Q$(), t === e && (t = V$(), t === e && (t = s2())))))))))))))), t;
150102
150122
  }
150103
150123
  function Gv() {
150104
150124
  var t, s, a, u, f, h, A;
@@ -150172,11 +150192,11 @@ const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ =
150172
150192
  }
150173
150193
  function ySe() {
150174
150194
  var t, s, a, u, f;
150175
- return t = r, s = T$(), s !== e ? (a = r, u = g(), f = Ni(), f !== e ? (u = [u, f], a = u) : (r = a, a = e), a !== e ? (R = t, t = fAe(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
150195
+ return t = r, s = T$(), s !== e ? (a = r, u = g(), f = Pi(), f !== e ? (u = [u, f], a = u) : (r = a, a = e), a !== e ? (R = t, t = fAe(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
150176
150196
  }
150177
150197
  function Bv() {
150178
150198
  var t, s, a, u, f;
150179
- return t = r, s = Kl(), s !== e ? (a = r, u = g(), f = Ke(), f === e && (f = Ni()), f !== e ? (u = [u, f], a = u) : (r = a, a = e), a !== e ? (R = t, t = yAe(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
150199
+ return t = r, s = Kl(), s !== e ? (a = r, u = g(), f = Ke(), f === e && (f = Pi()), f !== e ? (u = [u, f], a = u) : (r = a, a = e), a !== e ? (R = t, t = yAe(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
150180
150200
  }
150181
150201
  function hSe() {
150182
150202
  var t, s;
@@ -150200,7 +150220,7 @@ const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ =
150200
150220
  }
150201
150221
  function vSe() {
150202
150222
  var t, s, a, u, f, h;
150203
- return t = r, s = x$(), s === e && (s = g2()), s !== e ? (a = r, u = g(), l.charCodeAt(r) === 61 ? (f = $, r++) : (f = e, m === 0 && N(ta)), f !== e ? (u = [u, f], a = u) : (r = a, a = e), a === e && (a = null), u = r, f = g(), h = Ni(), h !== e ? (f = [f, h], u = f) : (r = u, u = e), u !== e ? (R = t, t = EAe(s, a, u)) : (r = t, t = e)) : (r = t, t = e), t;
150223
+ return t = r, s = x$(), s === e && (s = g2()), s !== e ? (a = r, u = g(), l.charCodeAt(r) === 61 ? (f = $, r++) : (f = e, m === 0 && N(ta)), f !== e ? (u = [u, f], a = u) : (r = a, a = e), a === e && (a = null), u = r, f = g(), h = Pi(), h !== e ? (f = [f, h], u = f) : (r = u, u = e), u !== e ? (R = t, t = EAe(s, a, u)) : (r = t, t = e)) : (r = t, t = e), t;
150204
150224
  }
150205
150225
  function bSe() {
150206
150226
  var t, s, a, u;
@@ -150614,7 +150634,7 @@ const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ =
150614
150634
  }
150615
150635
  function ix() {
150616
150636
  var t, s, a, u, f, h;
150617
- return t = r, s = Ta(), s !== e ? (a = g(), u = K5e(), u !== e ? (f = g(), h = Ni(), h !== e ? (R = t, t = Tge(s, a, u, f, h)) : (r = t, t = e)) : (r = t, t = e)) : (r = t, t = e), t === e && (t = Ta()), t;
150637
+ return t = r, s = Ta(), s !== e ? (a = g(), u = K5e(), u !== e ? (f = g(), h = Pi(), h !== e ? (R = t, t = Tge(s, a, u, f, h)) : (r = t, t = e)) : (r = t, t = e)) : (r = t, t = e), t === e && (t = Ta()), t;
150618
150638
  }
150619
150639
  function e3e() {
150620
150640
  var t, s, a, u, f;
@@ -150929,7 +150949,7 @@ const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ =
150929
150949
  }
150930
150950
  function E3e() {
150931
150951
  var t, s, a, u, f, h, A, C;
150932
- return t = r, s = r, a = a$(), a !== e ? (u = g(), f = Pp(), f !== e ? (h = g(), A = gR(), A !== e ? (C = g(), a = [a, u, f, h, A, C], s = a) : (r = s, s = e)) : (r = s, s = e)) : (r = s, s = e), s !== e ? (a = Ni(), a !== e ? (R = t, t = CIe(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
150952
+ return t = r, s = r, a = a$(), a !== e ? (u = g(), f = Pp(), f !== e ? (h = g(), A = gR(), A !== e ? (C = g(), a = [a, u, f, h, A, C], s = a) : (r = s, s = e)) : (r = s, s = e)) : (r = s, s = e), s !== e ? (a = Pi(), a !== e ? (R = t, t = CIe(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
150933
150953
  }
150934
150954
  function A3e() {
150935
150955
  var t, s, a, u, f;
@@ -150938,8 +150958,8 @@ const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ =
150938
150958
  function g3e() {
150939
150959
  var t, s, a, u, f, h, A, C;
150940
150960
  if (t = r, s = I3e(), s !== e) {
150941
- for (a = [], u = r, f = g(), l.charCodeAt(r) === 44 ? (h = b, r++) : (h = e, m === 0 && N(Fe)), h !== e ? (A = g(), C = Ni(), C !== e ? (f = [f, h, A, C], u = f) : (r = u, u = e)) : (r = u, u = e); u !== e; )
150942
- a.push(u), u = r, f = g(), l.charCodeAt(r) === 44 ? (h = b, r++) : (h = e, m === 0 && N(Fe)), h !== e ? (A = g(), C = Ni(), C !== e ? (f = [f, h, A, C], u = f) : (r = u, u = e)) : (r = u, u = e);
150961
+ for (a = [], u = r, f = g(), l.charCodeAt(r) === 44 ? (h = b, r++) : (h = e, m === 0 && N(Fe)), h !== e ? (A = g(), C = Pi(), C !== e ? (f = [f, h, A, C], u = f) : (r = u, u = e)) : (r = u, u = e); u !== e; )
150962
+ a.push(u), u = r, f = g(), l.charCodeAt(r) === 44 ? (h = b, r++) : (h = e, m === 0 && N(Fe)), h !== e ? (A = g(), C = Pi(), C !== e ? (f = [f, h, A, C], u = f) : (r = u, u = e)) : (r = u, u = e);
150943
150963
  R = t, t = OIe(s, a);
150944
150964
  } else
150945
150965
  r = t, t = e;
@@ -151302,7 +151322,7 @@ const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ =
151302
151322
  }
151303
151323
  function wqe() {
151304
151324
  var t, s, a, u, f, h;
151305
- return t = r, l.charCodeAt(r) === 40 ? (s = Pt, r++) : (s = e, m === 0 && N(xt)), s !== e ? (a = g(), u = Ni(), u !== e ? (f = g(), l.charCodeAt(r) === 41 ? (h = Mt, r++) : (h = e, m === 0 && N(Gt)), h !== e ? (R = t, t = pDe(a, u, f)) : (r = t, t = e)) : (r = t, t = e)) : (r = t, t = e), t;
151325
+ return t = r, l.charCodeAt(r) === 40 ? (s = Pt, r++) : (s = e, m === 0 && N(xt)), s !== e ? (a = g(), u = Pi(), u !== e ? (f = g(), l.charCodeAt(r) === 41 ? (h = Mt, r++) : (h = e, m === 0 && N(Gt)), h !== e ? (R = t, t = pDe(a, u, f)) : (r = t, t = e)) : (r = t, t = e)) : (r = t, t = e), t;
151306
151326
  }
151307
151327
  function Cqe() {
151308
151328
  var t, s, a, u, f, h;
@@ -151736,9 +151756,9 @@ const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ =
151736
151756
  }
151737
151757
  function oI() {
151738
151758
  var t, s, a, u, f, h, A, C;
151739
- if (t = r, s = Ni(), s !== e) {
151740
- for (a = [], u = r, f = g(), l.charCodeAt(r) === 44 ? (h = b, r++) : (h = e, m === 0 && N(Fe)), h !== e ? (A = g(), C = Ni(), C !== e ? (f = [f, h, A, C], u = f) : (r = u, u = e)) : (r = u, u = e); u !== e; )
151741
- a.push(u), u = r, f = g(), l.charCodeAt(r) === 44 ? (h = b, r++) : (h = e, m === 0 && N(Fe)), h !== e ? (A = g(), C = Ni(), C !== e ? (f = [f, h, A, C], u = f) : (r = u, u = e)) : (r = u, u = e);
151759
+ if (t = r, s = Pi(), s !== e) {
151760
+ for (a = [], u = r, f = g(), l.charCodeAt(r) === 44 ? (h = b, r++) : (h = e, m === 0 && N(Fe)), h !== e ? (A = g(), C = Pi(), C !== e ? (f = [f, h, A, C], u = f) : (r = u, u = e)) : (r = u, u = e); u !== e; )
151761
+ a.push(u), u = r, f = g(), l.charCodeAt(r) === 44 ? (h = b, r++) : (h = e, m === 0 && N(Fe)), h !== e ? (A = g(), C = Pi(), C !== e ? (f = [f, h, A, C], u = f) : (r = u, u = e)) : (r = u, u = e);
151742
151762
  R = t, t = nwe(s, a);
151743
151763
  } else
151744
151764
  r = t, t = e;
@@ -151898,7 +151918,7 @@ const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ =
151898
151918
  }
151899
151919
  function v6e() {
151900
151920
  var t, s, a, u;
151901
- return t = r, s = r, a = cr(), a !== e ? (u = g(), a = [a, u], s = a) : (r = s, s = e), s !== e ? (a = Ni(), a !== e ? (R = t, t = _we(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
151921
+ return t = r, s = r, a = cr(), a !== e ? (u = g(), a = [a, u], s = a) : (r = s, s = e), s !== e ? (a = Pi(), a !== e ? (R = t, t = _we(s, a)) : (r = t, t = e)) : (r = t, t = e), t;
151902
151922
  }
151903
151923
  function b6e() {
151904
151924
  var t, s, a, u, f, h;
@@ -152085,7 +152105,7 @@ const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ =
152085
152105
  }
152086
152106
  function Hs() {
152087
152107
  var t;
152088
- return t = Ni(), t === e && (t = ra(), t === e && (t = Hx(), t === e && (t = Yv(), t === e && (t = kx(), t === e && (t = J6e(), t === e && (t = Y6e(), t === e && (t = X6e(), t === e && (t = Q6e(), t === e && (t = eZe(), t === e && (t = tZe())))))))))), t;
152108
+ return t = Pi(), t === e && (t = ra(), t === e && (t = Hx(), t === e && (t = Yv(), t === e && (t = kx(), t === e && (t = J6e(), t === e && (t = Y6e(), t === e && (t = X6e(), t === e && (t = Q6e(), t === e && (t = eZe(), t === e && (t = tZe())))))))))), t;
152089
152109
  }
152090
152110
  function kx() {
152091
152111
  var t, s;
@@ -152095,7 +152115,7 @@ const Cf = qn, $R = GT, _f = s3, U = Pi, Wl = el, P = jA, nn = KA, GL = FA, _ =
152095
152115
  var t, s;
152096
152116
  return t = r, s = xHe(), s !== e && (R = t, s = pCe(s)), t = s, t === e && (t = r, s = Q5e(), s !== e && (R = t, s = cCe(s)), t = s), t;
152097
152117
  }
152098
- function Ni() {
152118
+ function Pi() {
152099
152119
  var t, s, a;
152100
152120
  return m++, t = r, s = r, m++, a = Qe(), m--, a !== e ? (r = s, s = void 0) : s = e, s !== e ? (a = V6e(), a !== e ? (R = t, t = fCe(a)) : (r = t, t = e)) : (r = t, t = e), t === e && (t = r, s = r, m++, a = vt(), m--, a !== e ? (r = s, s = void 0) : s = e, s === e && (s = r, m++, a = He(), m--, a !== e ? (r = s, s = void 0) : s = e, s === e && (s = r, m++, a = $e(), m--, a !== e ? (r = s, s = void 0) : s = e)), s !== e ? (a = Ma(), a !== e ? (R = t, t = yCe(a)) : (r = t, t = e)) : (r = t, t = e)), m--, t === e && (s = e, m === 0 && N(GX)), t;
152101
152121
  }
@@ -159288,25 +159308,25 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
159288
159308
  /* DataType */
159289
159309
  }
159290
159310
  ]), this.project.off(
159291
- $i.PROJECT_INITIALIZED,
159311
+ _i.PROJECT_INITIALIZED,
159292
159312
  this.onProjectInitialized
159293
159313
  ), this.project.off(
159294
- $i.PERSISTED_DEFINITION_ENTITY_ADDED,
159314
+ _i.PERSISTED_DEFINITION_ENTITY_ADDED,
159295
159315
  this.onPersistedEntityAdded
159296
159316
  ), this.project.off(
159297
- $i.PERSISTED_DEFINITION_ENTITY_UPDATED,
159317
+ _i.PERSISTED_DEFINITION_ENTITY_UPDATED,
159298
159318
  this.onPersistedEntityUpdated
159299
159319
  ), this.project.off(
159300
- $i.PERSISTED_DEFINITION_ENTITY_REMOVED,
159320
+ _i.PERSISTED_DEFINITION_ENTITY_REMOVED,
159301
159321
  this.onPersistedEntityRemoved
159302
159322
  ), this.project.off(
159303
- $i.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,
159323
+ _i.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,
159304
159324
  this.onRelationalDatabaseEntityAdded
159305
159325
  ), this.project.off(
159306
- $i.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED,
159326
+ _i.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED,
159307
159327
  this.onRelationalDatabaseEntityUpdated
159308
159328
  ), this.project.off(
159309
- $i.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,
159329
+ _i.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,
159310
159330
  this.onRelationalDatabaseEntityRemoved
159311
159331
  ), this;
159312
159332
  }
@@ -159333,25 +159353,25 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
159333
159353
  /* DataType */
159334
159354
  }
159335
159355
  ]), this.project.on(
159336
- $i.PROJECT_INITIALIZED,
159356
+ _i.PROJECT_INITIALIZED,
159337
159357
  this.onProjectInitialized
159338
159358
  ), this.project.on(
159339
- $i.PERSISTED_DEFINITION_ENTITY_ADDED,
159359
+ _i.PERSISTED_DEFINITION_ENTITY_ADDED,
159340
159360
  this.onPersistedEntityAdded
159341
159361
  ), this.project.on(
159342
- $i.PERSISTED_DEFINITION_ENTITY_UPDATED,
159362
+ _i.PERSISTED_DEFINITION_ENTITY_UPDATED,
159343
159363
  this.onPersistedEntityUpdated
159344
159364
  ), this.project.on(
159345
- $i.PERSISTED_DEFINITION_ENTITY_REMOVED,
159365
+ _i.PERSISTED_DEFINITION_ENTITY_REMOVED,
159346
159366
  this.onPersistedEntityRemoved
159347
159367
  ), this.project.on(
159348
- $i.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,
159368
+ _i.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,
159349
159369
  this.onRelationalDatabaseEntityAdded
159350
159370
  ), this.project.on(
159351
- $i.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED,
159371
+ _i.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED,
159352
159372
  this.onRelationalDatabaseEntityUpdated
159353
159373
  ), this.project.on(
159354
- $i.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,
159374
+ _i.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,
159355
159375
  this.onRelationalDatabaseEntityRemoved
159356
159376
  ), this;
159357
159377
  }
@@ -164391,7 +164411,7 @@ const pi = class pi extends Vr {
164391
164411
  {
164392
164412
  parent: {
164393
164413
  list: !1,
164394
- types: [...Vi, ...kt]
164414
+ types: [...Ni, ...kt]
164395
164415
  }
164396
164416
  },
164397
164417
  n
@@ -164521,7 +164541,7 @@ The entity is ${xM(
164521
164541
  })
164522
164542
  );
164523
164543
  }
164524
- } else if (Vi.filter(
164544
+ } else if (Ni.filter(
164525
164545
  (b) => St.includes(b)
164526
164546
  ).includes(y.type)) {
164527
164547
  const w = Bq(y), O = w.find(
@@ -165621,7 +165641,7 @@ I(pi, "repository", {
165621
165641
  APILoad: async (i, ...n) => null,
165622
165642
  APILoadVersion: async (i, n, ...l) => null
165623
165643
  }), I(pi, "type", o.InputMap), I(pi, "USER_MANAGED_PARENT_TYPES", [
165624
- ...Vi,
165644
+ ...Ni,
165625
165645
  ...kt
165626
165646
  ]), I(pi, "PARENT_TYPES", [
165627
165647
  ...pi.USER_MANAGED_PARENT_TYPES
@@ -165795,7 +165815,7 @@ const ci = class ci extends Vr {
165795
165815
  {
165796
165816
  parent: {
165797
165817
  list: !1,
165798
- types: Vi.filter(
165818
+ types: Ni.filter(
165799
165819
  (v) => v !== o.Condition
165800
165820
  )
165801
165821
  },
@@ -165810,7 +165830,7 @@ const ci = class ci extends Vr {
165810
165830
  const y = n.get(
165811
165831
  l.parent
165812
165832
  );
165813
- if (y && Vi.filter(
165833
+ if (y && Ni.filter(
165814
165834
  (v) => v !== o.Condition
165815
165835
  ).includes(y.type)) {
165816
165836
  const v = y.outputs.find(
@@ -168098,7 +168118,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
168098
168118
  y,
168099
168119
  e
168100
168120
  );
168101
- return v.hydrateAncestors(), n && v.setParent(n, i), c && (v.subscribe(), v.addSelfToProject(i)), v.initChildren(i), i == null || i.attemptAutoclose(V.CloneEntity, this.id), v;
168121
+ return v.hydrateAncestors(), n && v.setParent(n, i), c && (v.subscribe(), v.addSelfToProject(i)), i == null || i.add(v, H.Added), v.initChildren(i), i == null || i.attemptAutoclose(V.CloneEntity, this.id), v;
168102
168122
  }
168103
168123
  // This function merges a given source entity with the current one
168104
168124
  // The goal is to keep the current instance with the current id
@@ -174255,7 +174275,7 @@ If you are trying to create a new entity, please use a different id, for example
174255
174275
  };
174256
174276
  }
174257
174277
  case o.ActionDescriptor: {
174258
- const y = Oi.validateGenerationTarget(
174278
+ const y = Vi.validateGenerationTarget(
174259
174279
  l,
174260
174280
  p
174261
174281
  );
@@ -174375,7 +174395,7 @@ ${xp}`,
174375
174395
  severity: pe.Error,
174376
174396
  code: re.InvalidInmutablePropertyOverride
174377
174397
  })
174378
- ) : Vi.includes(p.type) && (d.successCalls && i.push(
174398
+ ) : Ni.includes(p.type) && (d.successCalls && i.push(
174379
174399
  new De({
174380
174400
  id: `${p.id}--${re.InvalidInmutablePropertyOverride}`,
174381
174401
  message: `Entity of type "${p.type}" with id "${p.id}" cannot have the property "successCalls" updated.
@@ -174886,7 +174906,7 @@ function Dt(d, p, i) {
174886
174906
  }
174887
174907
  const rc = `Pass-through callable entities are entities that need to be called by another caller, then they execute some internal logic and when finished, it can call other callable entities with the "calledBySuccess" property or "calledByError" property based on whether their internal execution was successful or an error ocurred respectively.
174888
174908
  All pass-through callable entities are: ${Dt(
174889
- Vi,
174909
+ Ni,
174890
174910
  ", ",
174891
174911
  " and "
174892
174912
  )}.`, e1 = `Entry point entities are the entities which start the execution of a logic chain. They are ${Dt(
@@ -175023,7 +175043,7 @@ Termination entities are ${Dt(
175023
175043
  )}.${c}`
175024
175044
  })
175025
175045
  );
175026
- } else if (!Vi.includes(p.type))
175046
+ } else if (!Ni.includes(p.type))
175027
175047
  n.push(
175028
175048
  new De({
175029
175049
  id: `${d.id}--${p.id}--${re.InvalidReference}`,
@@ -175088,7 +175108,7 @@ Termination entities are ${Dt(
175088
175108
  )}.${l}`
175089
175109
  })
175090
175110
  );
175091
- } else if (!Vi.includes(p.type))
175111
+ } else if (!Ni.includes(p.type))
175092
175112
  i.push(
175093
175113
  new De({
175094
175114
  id: `${d.id}--${p.id}--${re.InvalidReference}`,
@@ -175142,7 +175162,7 @@ Termination entities are ${Dt(
175142
175162
  )}.${l}`
175143
175163
  })
175144
175164
  );
175145
- } else if (Vi.includes(p.type))
175165
+ } else if (Ni.includes(p.type))
175146
175166
  i.push(
175147
175167
  new De({
175148
175168
  id: `${d.id}--${p.id}--${re.InvalidReference}`,
@@ -175731,7 +175751,7 @@ function D4i(d, p, i = "calledBy") {
175731
175751
  message: `Entity with id "${d}" referenced in '${i}' property not found in the project. Perhaps it should be created first? Perhaps it is the wrong ID?`
175732
175752
  })
175733
175753
  ), n;
175734
- if ([...Vi, ...Wt].includes(l.type))
175754
+ if ([...Ni, ...Wt].includes(l.type))
175735
175755
  return [];
175736
175756
  if (kt.includes(l.type)) {
175737
175757
  const c = l.calledBy || [], e = c.length ? `
@@ -175787,7 +175807,7 @@ function w4i(d, p, i = "calledByError") {
175787
175807
  message: `Entity with id "${d}" referenced in '${i}' property not found in the project. Perhaps it should be created first? Perhaps it is the wrong ID?`
175788
175808
  })
175789
175809
  ), n;
175790
- if (Vi.includes(l.type))
175810
+ if (Ni.includes(l.type))
175791
175811
  return [];
175792
175812
  if (kt.includes(l.type)) {
175793
175813
  const c = l.calledBy || [], e = c.length ? `
@@ -176272,7 +176292,7 @@ function sp(d) {
176272
176292
  const p = [];
176273
176293
  if (d.parent === d.project)
176274
176294
  !d.calledBy.length && d.type !== o.VariableDeclaration && p.push(
176275
- new xi({
176295
+ new $i({
176276
176296
  id: `${d.id}--${ve.DisconnectedCallableEntity}`,
176277
176297
  code: ve.DisconnectedCallableEntity,
176278
176298
  severity: pe.Warning,
@@ -176306,7 +176326,7 @@ This '${d.type}' is blocked `;
176306
176326
  d.project
176307
176327
  )}" with id "${y.id}" that calls a '${T.type}' entity with id "${T.id}"`, e < i.blocks.length - 1 ? l += ", " : l += ".";
176308
176328
  }), p.push(
176309
- new xi({
176329
+ new $i({
176310
176330
  id: `${d.id}--${Ee.UnreachableEntity}`,
176311
176331
  code: Ee.UnreachableEntity,
176312
176332
  severity: pe.Warning,
@@ -179403,7 +179423,7 @@ function Sd(d, p, i, n) {
179403
179423
  ) : ((v = T.implements) == null ? void 0 : v.id) === ((E = c.implements) == null ? void 0 : E.id);
179404
179424
  });
179405
179425
  if (e) {
179406
- const T = new xi({
179426
+ const T = new $i({
179407
179427
  id: c.id + "--" + e.id + "--" + n,
179408
179428
  message: `Entity of type ${c.type} named "${c.name}" with id "${c.id}" overrides a base ${e.type} ${e.name} with id "${e.id}" that has the same name`,
179409
179429
  severity: pe.Error,
@@ -179414,7 +179434,7 @@ function Sd(d, p, i, n) {
179414
179434
  l.push(T);
179415
179435
  }
179416
179436
  if (y) {
179417
- const T = new xi({
179437
+ const T = new $i({
179418
179438
  id: c.id + "--" + y.id + "--" + i,
179419
179439
  message: `Entity of type ${c.type} named "${c.name}" with id "${c.id}" overrides a base ${y.type} ${y.name} with id "${y.id}" that implements the same base descriptor`,
179420
179440
  severity: pe.Error,
@@ -179435,7 +179455,7 @@ function Sd(d, p, i, n) {
179435
179455
  ) : ((E = v.implements) == null ? void 0 : E.id) === ((b = c.implements) == null ? void 0 : b.id);
179436
179456
  });
179437
179457
  if (e) {
179438
- const v = new xi({
179458
+ const v = new $i({
179439
179459
  id: e.id + "--" + c.id + "--" + n,
179440
179460
  message: `Entity of type ${e.type} named "${e.name}" with id "${e.id}" overrides a base entity ${c.name} with id "${c.id}" that has the same name`,
179441
179461
  severity: pe.Error,
@@ -179446,7 +179466,7 @@ function Sd(d, p, i, n) {
179446
179466
  l.push(v);
179447
179467
  }
179448
179468
  if (y) {
179449
- const v = new xi({
179469
+ const v = new $i({
179450
179470
  id: y.id + "--" + c.id + "--" + i,
179451
179471
  message: `Entity of type ${y.type} named "${y.name}" with id "${y.id}" overrides a base entity ${c.name} with id "${c.id}" that implements the same base ${Array.isArray(
179452
179472
  y == null ? void 0 : y.implements
@@ -179542,7 +179562,7 @@ function xq(d, p) {
179542
179562
  override: p
179543
179563
  };
179544
179564
  if (n.includes(" ")) {
179545
- const l = new xi({
179565
+ const l = new $i({
179546
179566
  id: d.id + "--string-value-must-not-have-spaces",
179547
179567
  message: `Entity of type ${d.type} with id "${d.id}" has an invalid value "${p}". The value cannot contain spaces.`,
179548
179568
  severity: pe.Error,
@@ -179569,7 +179589,7 @@ function b$i(d, p) {
179569
179589
  override: p
179570
179590
  };
179571
179591
  if (n.includes(" ")) {
179572
- const l = new xi({
179592
+ const l = new $i({
179573
179593
  id: d.id + "--string-value-must-not-have-spaces",
179574
179594
  message: `Entity of type ${d.type} with id "${d.id}" has an invalid value "${p}". The value cannot contain spaces or dashes.`,
179575
179595
  severity: pe.Error,
@@ -179579,7 +179599,7 @@ function b$i(d, p) {
179579
179599
  i.push(l);
179580
179600
  }
179581
179601
  if (n.includes("-")) {
179582
- const l = new xi({
179602
+ const l = new $i({
179583
179603
  id: d.id + "--string-value-must-not-have-dashes",
179584
179604
  message: `Entity of type ${d.type} with id "${d.id}" has an invalid value "${p}". The value cannot contain spaces or dashes.`,
179585
179605
  severity: pe.Error,
@@ -180160,7 +180180,7 @@ function j4i(d, p) {
180160
180180
  if (Wt.includes(d.type)) {
180161
180181
  if (d.calls.includes(p))
180162
180182
  return d.type === o.Loop ? "loop-body" : "entry";
180163
- } else if (Vi.includes(d.type) && d.type !== o.InternalCall) {
180183
+ } else if (Ni.includes(d.type) && d.type !== o.InternalCall) {
180164
180184
  if (d.successCalls.includes(p))
180165
180185
  return "success";
180166
180186
  if (d.errorCalls.includes(p))
@@ -180243,7 +180263,7 @@ function I$i(d) {
180243
180263
  ancestor: c,
180244
180264
  callType: "entry"
180245
180265
  };
180246
- } else if (Vi.includes(c.type)) {
180266
+ } else if (Ni.includes(c.type)) {
180247
180267
  if (c.successCalls.includes(
180248
180268
  d
180249
180269
  ))
@@ -180499,7 +180519,7 @@ function Wb(d, p, i = !1) {
180499
180519
  ancestor: q,
180500
180520
  callType: "entry"
180501
180521
  };
180502
- if (Vi.includes(q.type)) {
180522
+ if (Ni.includes(q.type)) {
180503
180523
  if (q.successCalls.includes(
180504
180524
  n
180505
180525
  ))
@@ -180549,7 +180569,7 @@ function Wb(d, p, i = !1) {
180549
180569
  ancestor: c,
180550
180570
  callType: "entry"
180551
180571
  };
180552
- } else if (Vi.includes(c.type)) {
180572
+ } else if (Ni.includes(c.type)) {
180553
180573
  if (d.calledBy.length === 1) {
180554
180574
  if (c.successCalls.includes(
180555
180575
  n
@@ -180610,12 +180630,12 @@ function Wb(d, p, i = !1) {
180610
180630
  const X = b.filter((ae) => ae !== q).map((ae) => ae.callee);
180611
180631
  return Wt.includes(q.callee.type) && q.callee.calls.length === 1 && X.find(
180612
180632
  (ae) => ae === q.callee.calls[0]
180613
- ) || Vi.includes(q.callee.type) && q.callee.successCalls.length === 1 && X.find(
180633
+ ) || Ni.includes(q.callee.type) && q.callee.successCalls.length === 1 && X.find(
180614
180634
  (ae) => {
180615
180635
  var Q;
180616
180636
  return ae.id === ((Q = q.callee.successCalls[0]) == null ? void 0 : Q.id);
180617
180637
  }
180618
- ) ? !1 : !(Vi.includes(q.callee.type) && q.callee.errorCalls.length === 1 && X.find(
180638
+ ) ? !1 : !(Ni.includes(q.callee.type) && q.callee.errorCalls.length === 1 && X.find(
180619
180639
  (ae) => {
180620
180640
  var Q;
180621
180641
  return ae.id === ((Q = q.callee.errorCalls[0]) == null ? void 0 : Q.id);
@@ -180651,7 +180671,7 @@ function Wb(d, p, i = !1) {
180651
180671
  ancestor: q.callee,
180652
180672
  callType: "entry"
180653
180673
  };
180654
- if (Vi.includes(q.callee.type)) {
180674
+ if (Ni.includes(q.callee.type)) {
180655
180675
  if (q.callType === "success" && q.callee.type === o.InternalCall)
180656
180676
  return {
180657
180677
  ancestor: q.callee,
@@ -181279,7 +181299,7 @@ function Uo(d) {
181279
181299
  };
181280
181300
  });
181281
181301
  }
181282
- if (Vi.includes(d.type)) {
181302
+ if (Ni.includes(d.type)) {
181283
181303
  const p = [
181284
181304
  ...In(d.successCalls).map(
181285
181305
  (l) => ({
@@ -181341,7 +181361,7 @@ function fE(d) {
181341
181361
  function _$i(d) {
181342
181362
  if (!d)
181343
181363
  return null;
181344
- if (Vi.includes(d.type))
181364
+ if (Ni.includes(d.type))
181345
181365
  return d;
181346
181366
  const p = d.parent;
181347
181367
  return p ? _$i(p) : null;
@@ -181355,7 +181375,7 @@ function O$i(d) {
181355
181375
  return p ? O$i(p) : null;
181356
181376
  }
181357
181377
  function S4i(d) {
181358
- return d.type === o.VariableDeclaration ? [d] : Vi.includes(d.type) ? [
181378
+ return d.type === o.VariableDeclaration ? [d] : Ni.includes(d.type) ? [
181359
181379
  ...d.inputs,
181360
181380
  ...d.outputs || []
181361
181381
  ] : kt.includes(d.type) ? d.outputs : Qf.includes(d.type) || d.type === o.FunctionDeclaration ? d.inputs : [];
@@ -181390,7 +181410,7 @@ function Zo(d) {
181390
181410
  return D(p);
181391
181411
  }
181392
181412
  function AO(d) {
181393
- return Vi.includes(d.type) ? [
181413
+ return Ni.includes(d.type) ? [
181394
181414
  ...Zo(
181395
181415
  d.successCalls
181396
181416
  ),
@@ -181442,7 +181462,7 @@ function Rt(d) {
181442
181462
  ...In(d.successCalls),
181443
181463
  ...In(d.errorCalls),
181444
181464
  ...d.body ? Rt(d.body) : []
181445
- ]) : Vi.includes(d.type) ? D([
181465
+ ]) : Ni.includes(d.type) ? D([
181446
181466
  ...In(d.successCalls),
181447
181467
  ...In(d.errorCalls)
181448
181468
  ]) : Wt.includes(d.type) ? D(
@@ -181450,7 +181470,7 @@ function Rt(d) {
181450
181470
  ) : [];
181451
181471
  }
181452
181472
  function J4i(d) {
181453
- return Vi.includes(d.type) ? [
181473
+ return Ni.includes(d.type) ? [
181454
181474
  ...In(d.successCalls),
181455
181475
  ...In(d.errorCalls)
181456
181476
  ] : Wt.includes(d.type) ? In(d.calls) : [];
@@ -181638,7 +181658,7 @@ function k$i(d, p) {
181638
181658
  case o.Operation:
181639
181659
  return n.outputs.find((l) => l.id === d.id) !== void 0;
181640
181660
  case o.VariableDeclaration:
181641
- return Vi.includes(d.type) ? f2i(
181661
+ return Ni.includes(d.type) ? f2i(
181642
181662
  d
181643
181663
  ).find((c) => {
181644
181664
  var e;
@@ -182418,7 +182438,7 @@ function Q4i(d, p) {
182418
182438
  return p.type === o.Condition ? p.inputs.find((i) => i.declaration.id === d.id) : p.type === o.FunctionCall || p.type === o.Operation ? p.inputs.find((i) => i.declaration.id === d.id) : null;
182419
182439
  }
182420
182440
  function f2i(d) {
182421
- return Vi.includes(d.type) ? d.inputs : [];
182441
+ return Ni.includes(d.type) ? d.inputs : [];
182422
182442
  }
182423
182443
  function eBi(d) {
182424
182444
  var p;
@@ -182439,7 +182459,7 @@ function tBi(d, p) {
182439
182459
  }) || null;
182440
182460
  }
182441
182461
  function iBi(d) {
182442
- return d.type === o.Condition ? [] : Vi.includes(d.type) ? d.outputs : [];
182462
+ return d.type === o.Condition ? [] : Ni.includes(d.type) ? d.outputs : [];
182443
182463
  }
182444
182464
  function ND(d) {
182445
182465
  const p = d.readsValue;
@@ -182554,7 +182574,7 @@ function eo(d, p = !1) {
182554
182574
  ...l
182555
182575
  );
182556
182576
  }
182557
- if (Vi.includes(d.type) && d.type !== o.Condition && d.type !== o.Loop) {
182577
+ if (Ni.includes(d.type) && d.type !== o.Condition && d.type !== o.Loop) {
182558
182578
  const n = d == null ? void 0 : d.outputs.map((e) => X0(e)).flat(), l = d.successCalls.map(
182559
182579
  (e) => Si(e)
182560
182580
  ), c = d.errorCalls.map(
@@ -182651,7 +182671,7 @@ function PD(d, p = !1) {
182651
182671
  ...l
182652
182672
  );
182653
182673
  }
182654
- if (Vi.includes(d.type) && d.type !== o.Condition && d.type !== o.Loop) {
182674
+ if (Ni.includes(d.type) && d.type !== o.Condition && d.type !== o.Loop) {
182655
182675
  const n = d == null ? void 0 : d.outputs.map((e) => Q0(e)).flat(), l = d.successCalls, c = d.errorCalls;
182656
182676
  i.push(
182657
182677
  ...D(
@@ -183064,7 +183084,7 @@ function qT(d) {
183064
183084
  case o.PrimitiveEntity:
183065
183085
  return Aa;
183066
183086
  case o.ActionDescriptor:
183067
- return Oi;
183087
+ return Vi;
183068
183088
  case o.LiteralValue:
183069
183089
  return Wr;
183070
183090
  case o.ContinueStatement:
@@ -183318,7 +183338,7 @@ function zb(d) {
183318
183338
  ).find((b) => b === T) || n(c, T));
183319
183339
  });
183320
183340
  let y;
183321
- if (Vi.includes(c.type) && (y = c), y) {
183341
+ if (Ni.includes(c.type) && (y = c), y) {
183322
183342
  const T = zb(y);
183323
183343
  T.reachable || Rt(
183324
183344
  d
@@ -183335,7 +183355,7 @@ function zb(d) {
183335
183355
  ).find((b) => b === T) || n(c, T));
183336
183356
  });
183337
183357
  let y;
183338
- if (Vi.includes(c.type) && (y = c), y) {
183358
+ if (Ni.includes(c.type) && (y = c), y) {
183339
183359
  const T = zb(y);
183340
183360
  T.reachable || Rt(
183341
183361
  d
@@ -183507,7 +183527,7 @@ function yBi(d) {
183507
183527
  case o.Property:
183508
183528
  return Ja;
183509
183529
  case o.ActionDescriptor:
183510
- return Oi;
183530
+ return Vi;
183511
183531
  case o.ReturnStatement:
183512
183532
  return Xd;
183513
183533
  case o.ContinueStatement:
@@ -187407,7 +187427,7 @@ ${wD}`
187407
187427
  /* PropertyDataType */
187408
187428
  }
187409
187429
  ]), this.project.off(
187410
- $i.PROJECT_INITIALIZED,
187430
+ _i.PROJECT_INITIALIZED,
187411
187431
  this.onProjectInitialized
187412
187432
  ), this;
187413
187433
  }
@@ -187442,7 +187462,7 @@ ${wD}`
187442
187462
  /* PropertyDataType */
187443
187463
  }
187444
187464
  ]), this.project.on(
187445
- $i.PROJECT_INITIALIZED,
187465
+ _i.PROJECT_INITIALIZED,
187446
187466
  this.onProjectInitialized
187447
187467
  ), this;
187448
187468
  }
@@ -188998,7 +189018,7 @@ function Z2i(d) {
188998
189018
  function H2i(d, p) {
188999
189019
  const i = [], n = Zn(p);
189000
189020
  if (!p.abstract) {
189001
- const e = new xi({
189021
+ const e = new $i({
189002
189022
  id: d.id + "--" + p.id + "--" + ve.ImplementingNonAbstractEntity,
189003
189023
  message: `Entity "${d.name}" with id "${d.id}" is implementing a non-abstract built-in entity "${p.name}" with id "${p.id}"`,
189004
189024
  severity: pe.Error,
@@ -189012,7 +189032,7 @@ function H2i(d, p) {
189012
189032
  (e) => e.id !== p.id
189013
189033
  );
189014
189034
  if (d.abstract) {
189015
- const e = new xi({
189035
+ const e = new $i({
189016
189036
  id: d.id + "--" + p.id + "--" + ve.AbstractEntityImplements,
189017
189037
  message: `Entity "${d.name}" with id "${d.id}" is marked as abstract and cannot implement built-in entity "${p.name}" with id "${p.id}"`,
189018
189038
  severity: pe.Error,
@@ -189023,7 +189043,7 @@ function H2i(d, p) {
189023
189043
  i.push(e);
189024
189044
  }
189025
189045
  if (d.static && !p.static) {
189026
- const e = new xi({
189046
+ const e = new $i({
189027
189047
  id: d.id + "--" + p.id + "--" + ve.StaticImplementingNonStaticEntity,
189028
189048
  message: `Entity "${d.name}" with id "${d.id}" is marked as static and cannot implement non-static built-in entity "${p.name}" with id "${p.id}"`,
189029
189049
  severity: pe.Error,
@@ -189034,7 +189054,7 @@ function H2i(d, p) {
189034
189054
  i.push(e);
189035
189055
  }
189036
189056
  if (!d.static && p.static) {
189037
- const e = new xi({
189057
+ const e = new $i({
189038
189058
  id: d.id + "--" + p.id + "--" + ve.NonStaticImplementingStaticEntity,
189039
189059
  message: `Entity "${d.name}" with id "${d.id}" is not marked as static and cannot implement static built-in entity "${p.name}" with id "${p.id}"`,
189040
189060
  severity: pe.Error,
@@ -189051,7 +189071,7 @@ function H2i(d, p) {
189051
189071
  );
189052
189072
  y.length && y.forEach((T) => {
189053
189073
  if (T.id !== e.id) {
189054
- const v = new xi({
189074
+ const v = new $i({
189055
189075
  id: d.id + "--" + T.id + "--" + e.id + "--" + ve.ImplementsIncompatibleEntities,
189056
189076
  message: `Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${T.name}" with id "${T.id}" but also implements entity "${e.name}" with id "${e.id}" which is incompatible`,
189057
189077
  severity: pe.Error,
@@ -189070,7 +189090,7 @@ function H2i(d, p) {
189070
189090
  );
189071
189091
  b.length && b.forEach((w) => {
189072
189092
  if (w.id !== E.id) {
189073
- const O = new xi({
189093
+ const O = new $i({
189074
189094
  id: d.id + "--" + w.id + "--" + E.id + "--" + ve.ImplementsIncompatibleEntities,
189075
189095
  message: `Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${w.name}" with id "${w.id}" but also implements entity "${E.name}" with id "${E.id}" which is incompatible`,
189076
189096
  severity: pe.Error,
@@ -189104,7 +189124,7 @@ function H2i(d, p) {
189104
189124
  if (!n.find(
189105
189125
  (y) => y.id === e.id
189106
189126
  )) {
189107
- const y = new xi({
189127
+ const y = new $i({
189108
189128
  id: d.id + "--" + p.id + "--" + e.id + "--" + ve.ExtendsIncompatibleEntities,
189109
189129
  message: `Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${p.name}" with id "${p.id}" but also extends entity "${e.name}" with id "${e.id}" which is incompatible`,
189110
189130
  severity: pe.Error,
@@ -189205,7 +189225,7 @@ function W2i(d, p, i = !1) {
189205
189225
  );
189206
189226
  q.length && q.forEach((X) => {
189207
189227
  if (X.id !== Z.id) {
189208
- const ae = new xi({
189228
+ const ae = new $i({
189209
189229
  id: d.id + "--" + X.id + "--" + Z.id + "--" + ve.ImplementsIncompatibleEntities,
189210
189230
  message: `Entity "${d.name}" with id "${d.id}" is extending built-in entity "${X.name}" with id "${X.id}" but also extends or implements entity "${Z.name}" with id "${Z.id}" which is incompatible`,
189211
189231
  severity: pe.Error,
@@ -189258,7 +189278,7 @@ function W2i(d, p, i = !1) {
189258
189278
  );
189259
189279
  w.length && w.forEach((O) => {
189260
189280
  if (O.id !== b.id) {
189261
- const $ = new xi({
189281
+ const $ = new $i({
189262
189282
  id: d.id + "--" + O.id + "--" + b.id + "--" + ve.ImplementsIncompatibleEntities,
189263
189283
  message: `Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${O.name}" with id "${O.id}" but also implements entity "${b.name}" with id "${b.id}" which is incompatible`,
189264
189284
  severity: pe.Error,
@@ -189277,7 +189297,7 @@ function W2i(d, p, i = !1) {
189277
189297
  );
189278
189298
  k.length && k.forEach((Z) => {
189279
189299
  if (Z.id !== M.id) {
189280
- const q = new xi({
189300
+ const q = new $i({
189281
189301
  id: d.id + "--" + Z.id + "--" + M.id + "--" + ve.ImplementsIncompatibleEntities,
189282
189302
  message: `Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${Z.name}" with id "${Z.id}" but also implements entity "${M.name}" with id "${M.id}" which is incompatible`,
189283
189303
  severity: pe.Error,
@@ -189325,7 +189345,7 @@ function W2i(d, p, i = !1) {
189325
189345
  if (!l.find(
189326
189346
  (w) => w.id === b.id
189327
189347
  )) {
189328
- const w = new xi({
189348
+ const w = new $i({
189329
189349
  id: d.id + "--" + p.id + "--" + b.id + "--" + ve.ImplementsIncompatibleEntities,
189330
189350
  message: `Entity "${d.name}" with id "${d.id}" is extending built-in entity "${p.name}" with id "${p.id}" but also extends entity "${b.name}" with id "${b.id}" which is incompatible`,
189331
189351
  severity: pe.Error,
@@ -189342,7 +189362,7 @@ function z2i(d) {
189342
189362
  const p = [];
189343
189363
  if (d.implements.forEach((i) => {
189344
189364
  if (!i.static) {
189345
- const n = new xi({
189365
+ const n = new $i({
189346
189366
  id: d.id + "--" + i.id + "--" + ve.StaticImplementingNonStaticEntity,
189347
189367
  message: `Entity "${d.name}" with id "${d.id}" is static but implements entity "${i.name}" with id "${i.id}" which is non-static`,
189348
189368
  severity: pe.Error,
@@ -189353,7 +189373,7 @@ function z2i(d) {
189353
189373
  p.push(n);
189354
189374
  }
189355
189375
  }), d.extends && !d.extends.static) {
189356
- const i = new xi({
189376
+ const i = new $i({
189357
189377
  id: d.id + "--" + d.extends.id + "--" + ve.StaticExtendingNonStaticEntity,
189358
189378
  message: `Entity "${d.name}" with id "${d.id}" is static but extends entity "${d.extends.name}" with id "${d.extends.id}" which is non-static`,
189359
189379
  severity: pe.Error,
@@ -189368,7 +189388,7 @@ function z2i(d) {
189368
189388
  function J2i(d) {
189369
189389
  const p = [];
189370
189390
  if (d.implements.length) {
189371
- const i = new xi({
189391
+ const i = new $i({
189372
189392
  id: d.id + "--" + ve.AbstractEntityImplements,
189373
189393
  message: `Entity "${d.name}" with id "${d.id}" cannot be marked as abstract because it implements other entities`,
189374
189394
  severity: pe.Error,
@@ -189378,7 +189398,7 @@ function J2i(d) {
189378
189398
  p.push(i);
189379
189399
  }
189380
189400
  if (d.extends && !d.extends.abstract) {
189381
- const i = new xi({
189401
+ const i = new $i({
189382
189402
  id: d.id + "--" + d.extends.id + "--" + ve.AbstractExtendingNonAbstractEntity,
189383
189403
  message: `Entity "${d.name}" with id "${d.id}" is abstract but extends entity "${d.extends.name}" with id "${d.extends.id}" which is non-abstract`,
189384
189404
  severity: pe.Error,
@@ -189393,7 +189413,7 @@ function J2i(d) {
189393
189413
  function Y2i(d) {
189394
189414
  const p = [];
189395
189415
  if (d.extends && d.extends.static) {
189396
- const i = new xi({
189416
+ const i = new $i({
189397
189417
  id: d.id + "--" + d.extends.id + "--" + ve.NonStaticExtendingStaticEntity,
189398
189418
  message: `Entity "${d.name}" with id "${d.id}" is non-static but extends entity "${d.extends.name}" with id "${d.extends.id}" which is static`,
189399
189419
  severity: pe.Error,
@@ -189408,7 +189428,7 @@ function Y2i(d) {
189408
189428
  function X2i(d) {
189409
189429
  const p = [];
189410
189430
  if (d.extends && d.extends.abstract) {
189411
- const i = new xi({
189431
+ const i = new $i({
189412
189432
  id: d.id + "--" + d.extends.id + "--" + ve.NonAbstractExtendingAbstractEntity,
189413
189433
  message: `Entity "${d.name}" with id "${d.id}" is non-abstract but extends entity "${d.extends.name}" with id "${d.extends.id}" which is abstract`,
189414
189434
  severity: pe.Error,
@@ -192591,7 +192611,7 @@ function ki(d, p) {
192591
192611
  case o.InstalledProject:
192592
192612
  return i || new Qp(d, p);
192593
192613
  case o.ActionDescriptor:
192594
- return i || new Oi(d, p);
192614
+ return i || new Vi(d, p);
192595
192615
  case o.ReturnStatement:
192596
192616
  return i || new Xd(d, p);
192597
192617
  case o.Loop:
@@ -192682,7 +192702,7 @@ function _Bi(d, p) {
192682
192702
  case o.Search:
192683
192703
  return Xp.fromGenerationTarget(d, p);
192684
192704
  case o.ActionDescriptor:
192685
- return Oi.fromGenerationTarget(
192705
+ return Vi.fromGenerationTarget(
192686
192706
  d,
192687
192707
  p
192688
192708
  );
@@ -192809,7 +192829,7 @@ class a1 {
192809
192829
  }
192810
192830
  class BBi {
192811
192831
  }
192812
- var $i = /* @__PURE__ */ ((d) => (d.PROJECT_INITIALIZED = "project-initialized", d.CHANGE_SET_CLOSED = "change-set-closed", d.EXPLICIT_DEFINITION_ENTITY_ADDED = "explicit-definition-entity-added", d.EXPLICIT_DEFINITION_ENTITY_REMOVED = "explicit-definition-entity-removed", d.EXPLICIT_DEFINITION_ENTITY_UPDATED = "explicit-definition-entity-updated", d.PERSISTED_DEFINITION_ENTITY_ADDED = "persisted-definition-entity-added", d.PERSISTED_DEFINITION_ENTITY_REMOVED = "persisted-definition-entity-removed", d.PERSISTED_DEFINITION_ENTITY_UPDATED = "persisted-definition-entity-updated", d.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED = "relational-database-definition-entity-added", d.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED = "relational-database-definition-entity-removed", d.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED = "relational-database-definition-entity-updated", d))($i || {});
192832
+ var _i = /* @__PURE__ */ ((d) => (d.PROJECT_INITIALIZED = "project-initialized", d.BEFORE_CHANGE_SET_CLOSE_BEFORE_SIDE_EFFECTS = "before-change-set-close-before-side-effects", d.BEFORE_CHANGE_SET_CLOSE_AFTER_SIDE_EFFECTS = "before-change-set-close-after-side-effects", d.CHANGE_SET_PERSISTED = "change-set-persisted", d.BEFORE_CHANGE_SET_PERSIST = "before-change-set-persist", d.EXPLICIT_DEFINITION_ENTITY_ADDED = "explicit-definition-entity-added", d.EXPLICIT_DEFINITION_ENTITY_REMOVED = "explicit-definition-entity-removed", d.EXPLICIT_DEFINITION_ENTITY_UPDATED = "explicit-definition-entity-updated", d.PERSISTED_DEFINITION_ENTITY_ADDED = "persisted-definition-entity-added", d.PERSISTED_DEFINITION_ENTITY_REMOVED = "persisted-definition-entity-removed", d.PERSISTED_DEFINITION_ENTITY_UPDATED = "persisted-definition-entity-updated", d.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED = "relational-database-definition-entity-added", d.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED = "relational-database-definition-entity-removed", d.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED = "relational-database-definition-entity-updated", d))(_i || {});
192813
192833
  const o6 = {
192814
192834
  ...YF,
192815
192835
  events: new qf()
@@ -192879,7 +192899,8 @@ const o6 = {
192879
192899
  // Meta
192880
192900
  I(this, "initialized", !1);
192881
192901
  I(this, "startedInitialization", !1);
192882
- I(this, "onCloseChangeSetCallback", null);
192902
+ I(this, "onPersistChangeSetSequentiallyCallback", null);
192903
+ I(this, "onPersistChangeSetInParallelCallback", null);
192883
192904
  I(this, "onAddChangeSetCallback", null);
192884
192905
  I(this, "onDiscardChangeSetCallback", null);
192885
192906
  if (this.parentContext = n, this.initialData = i, this.id = i.id, this.name = i.name, this.description = i.description, this.x = 0, this.y = 0, this.instances[this.id] = this, !Ct.UUID)
@@ -192956,19 +192977,19 @@ const o6 = {
192956
192977
  get emitAsyncSequentiallyAllSettled() {
192957
192978
  return this.parentContext.events.emitAsyncSequentiallyAllSettled;
192958
192979
  }
192959
- async closePendingChangeSets() {
192960
- console.log("[ProjectState.closePendingChangeSets] called");
192980
+ async closePersistChangeSetsSequentially() {
192981
+ console.log("[ProjectState.closePersistChangeSetsSequentially] called");
192961
192982
  const i = this.history.find(
192962
192983
  (n) => n.dirty && !n.open && !n.submitting
192963
192984
  );
192964
192985
  i && (console.log(
192965
- `[ProjectState.closePendingChangeSets] closing pending change-set ${i.id} - ${i.autoCloseActionName}`
192966
- ), await this.closeChangeSet(i));
192986
+ `[ProjectState.closePersistChangeSetsSequentially] closing pending change-set ${i.id} - ${i.autoCloseActionName}`
192987
+ ), await this.persistChangeSetSequentially(i));
192967
192988
  }
192968
- async onCloseChangeSet(i) {
192969
- this.onCloseChangeSetCallback = i, console.log(
192970
- "[ProjectState.onCloseChangeSet] onCloseChangeSetCallback has been set. Checking for pending change-sets."
192971
- ), await this.closePendingChangeSets();
192989
+ async onPersistChangeSetSequentially(i) {
192990
+ this.onPersistChangeSetSequentiallyCallback = i, console.log(
192991
+ "[ProjectState.onPersistChangeSetSequentially] onPersistChangeSetSequentiallyCallback has been set. Checking for pending change-sets."
192992
+ ), await this.closePersistChangeSetsSequentially();
192972
192993
  }
192973
192994
  onAddChangeSet(i) {
192974
192995
  this.onAddChangeSetCallback = i;
@@ -192976,27 +192997,42 @@ const o6 = {
192976
192997
  onDiscardChangeSet(i) {
192977
192998
  this.onDiscardChangeSetCallback = i;
192978
192999
  }
192979
- async closeChangeSet(i) {
193000
+ async persistChangeSetSequentially(i) {
192980
193001
  if (console.log(
192981
- `[ProjectState.closeChangeSet] called for change-set ${i.id} - ${i.autoCloseActionName}`
193002
+ `[ProjectState.persistChangeSetSequentially] called for change-set ${i.id} - ${i.autoCloseActionName}`
192982
193003
  ), !i.dirty || i.open || i.submitting) {
192983
193004
  console.log(
192984
- `[ProjectState.closeChangeSet] change-set ${i.id} - ${i.autoCloseActionName} is not dirty, or is open, or is already being submitted, skipping.`
193005
+ `[ProjectState.persistChangeSetSequentially] change-set ${i.id} - ${i.autoCloseActionName} is not dirty, or is open, or is already being submitted, skipping.`
192985
193006
  );
192986
193007
  return;
192987
193008
  }
192988
193009
  const n = this.history.findIndex((e) => e.id === i.id), l = this.history.slice(0, n), c = l[l.length - 1];
192989
193010
  if (c != null && c.dirty) {
192990
193011
  console.log(
192991
- `[ProjectState.closeChangeSet] lastBeforeSelf is dirty: ${c.id} - ${c.autoCloseActionName}, closing it first.`
193012
+ `[ProjectState.persistChangeSetSequentially] lastBeforeSelf is dirty: ${c.id} - ${c.autoCloseActionName}, closing it first.`
193013
+ );
193014
+ return;
193015
+ }
193016
+ this.onPersistChangeSetSequentiallyCallback && (console.log(
193017
+ `[ProjectState.persistChangeSetSequentially] invoking onPersistChangeSetSequentiallyCallback for change-set ${i.id} - ${i.autoCloseActionName}`
193018
+ ), this.emit("before-change-set-persist", i), i.submitting = !0, (await this.onPersistChangeSetSequentiallyCallback(
193019
+ i
193020
+ )).success && (i.dirty = !1, this.emit("change-set-persisted", i), console.log(
193021
+ `[ProjectState.persistChangeSetSequentially] change-set ${i.id} - ${i.autoCloseActionName} closed successfully, checking for pending change-sets to close.`
193022
+ ), this.closePersistChangeSetsSequentially()));
193023
+ }
193024
+ async persistChangeSetInParallel(i) {
193025
+ if (console.log(
193026
+ `[ProjectState.persistChangeSetInParallel] called for change-set ${i.id} - ${i.autoCloseActionName}`
193027
+ ), !i.dirty || i.open || i.submitting) {
193028
+ console.log(
193029
+ `[ProjectState.persistChangeSetInParallel] change-set ${i.id} - ${i.autoCloseActionName} is not dirty, or is open, or is already being submitted, skipping.`
192992
193030
  );
192993
193031
  return;
192994
193032
  }
192995
- this.onCloseChangeSetCallback && (console.log(
192996
- `[ProjectState.closeChangeSet] invoking onCloseChangeSetCallback for change-set ${i.id} - ${i.autoCloseActionName}`
192997
- ), i.submitting = !0, (await this.onCloseChangeSetCallback(i)).success && (i.dirty = !1, this.emit("change-set-closed", i), console.log(
192998
- `[ProjectState.closeChangeSet] change-set ${i.id} - ${i.autoCloseActionName} closed successfully, checking for pending change-sets to close.`
192999
- ), this.closePendingChangeSets()));
193033
+ this.onPersistChangeSetInParallelCallback && (console.log(
193034
+ `[ProjectState.persistChangeSetInParallel] invoking onPersistChangeSetInParallelCallback for change-set ${i.id} - ${i.autoCloseActionName}`
193035
+ ), this.emit("before-change-set-persist", i), i.submitting = !0, (await this.onPersistChangeSetInParallelCallback(i)).success && (i.dirty = !1, this.emit("change-set-persisted", i)));
193000
193036
  }
193001
193037
  // Returns the last open change set or creates a new one with the information provided
193002
193038
  toLatestChangeSet(i, n, l, c = !1, e = "here-this") {
@@ -194719,12 +194755,12 @@ I(Ct, "MUTABLE_DOWNSTREAM_PROPERTIES", [
194719
194755
  ...Ct.DOWNSTREAM_PROPERTIES
194720
194756
  ]);
194721
194757
  let x = Ct;
194722
- class sLi extends Oi {
194758
+ class sLi extends Vi {
194723
194759
  constructor(p) {
194724
194760
  super(FE, p);
194725
194761
  }
194726
194762
  }
194727
- class lLi extends Oi {
194763
+ class lLi extends Vi {
194728
194764
  constructor(i) {
194729
194765
  super(ko, i);
194730
194766
  I(this, "id", Mi.Parallel);
@@ -194771,7 +194807,7 @@ class lLi extends Oi {
194771
194807
  // // return [result];
194772
194808
  // };
194773
194809
  }
194774
- class oLi extends Oi {
194810
+ class oLi extends Vi {
194775
194811
  constructor(i) {
194776
194812
  super(As, i);
194777
194813
  I(this, "id", As.id);
@@ -194814,7 +194850,7 @@ class oLi extends Oi {
194814
194850
  // return [result];
194815
194851
  // };
194816
194852
  }
194817
- class dLi extends Oi {
194853
+ class dLi extends Vi {
194818
194854
  constructor(i) {
194819
194855
  super($p, i);
194820
194856
  I(this, "id", Mi.Sequential);
@@ -194858,7 +194894,7 @@ class dLi extends Oi {
194858
194894
  // return [results];
194859
194895
  // };
194860
194896
  }
194861
- class uLi extends Oi {
194897
+ class uLi extends Vi {
194862
194898
  constructor(i) {
194863
194899
  super(rT, i);
194864
194900
  I(this, "autoexecutable", !0);
@@ -195385,32 +195421,32 @@ class uLi extends Oi {
195385
195421
  };
195386
195422
  }
195387
195423
  }
195388
- class pLi extends Oi {
195424
+ class pLi extends Vi {
195389
195425
  constructor(p) {
195390
195426
  super(HG, p);
195391
195427
  }
195392
195428
  }
195393
- class cLi extends Oi {
195429
+ class cLi extends Vi {
195394
195430
  constructor(p) {
195395
195431
  super(WG, p);
195396
195432
  }
195397
195433
  }
195398
- class fLi extends Oi {
195434
+ class fLi extends Vi {
195399
195435
  constructor(p) {
195400
195436
  super(JG, p);
195401
195437
  }
195402
195438
  }
195403
- class yLi extends Oi {
195439
+ class yLi extends Vi {
195404
195440
  constructor(p) {
195405
195441
  super(Rw, p);
195406
195442
  }
195407
195443
  }
195408
- class hLi extends Oi {
195444
+ class hLi extends Vi {
195409
195445
  constructor(p) {
195410
195446
  super(jD, p);
195411
195447
  }
195412
195448
  }
195413
- class mLi extends Oi {
195449
+ class mLi extends Vi {
195414
195450
  constructor(p) {
195415
195451
  super(VE, p);
195416
195452
  }
@@ -195443,7 +195479,7 @@ function d6(d) {
195443
195479
  // new ActionDescriptorState(generateHexadecimalTokenOperation, project),
195444
195480
  ];
195445
195481
  return kB.forEach((i) => {
195446
- p.some((n) => n.id === i.id) || p.push(new Oi(i, d));
195482
+ p.some((n) => n.id === i.id) || p.push(new Vi(i, d));
195447
195483
  }), p.forEach((i) => {
195448
195484
  i.initChildren(null), d.subscribeBuiltInInstance(i);
195449
195485
  }), d.operationDeclarations = p, p;
@@ -195495,7 +195531,7 @@ var Jo = /* @__PURE__ */ ((d) => (d.StatusCodeMustBeNumber = "status-code-must-b
195495
195531
  function vLi(d, p) {
195496
195532
  const i = [];
195497
195533
  if (typeof p != "number") {
195498
- const n = new xi({
195534
+ const n = new $i({
195499
195535
  id: d.id + "--status-code-must-be-number",
195500
195536
  message: `Entity of type ${d.type} with id "${d.id}" has an invalid value "${p}". The value must be a number.`,
195501
195537
  severity: pe.Error,
@@ -195508,7 +195544,7 @@ function vLi(d, p) {
195508
195544
  };
195509
195545
  }
195510
195546
  if (p < 100) {
195511
- const n = new xi({
195547
+ const n = new $i({
195512
195548
  id: d.id + "--status-code-must-be-between-100-and-599",
195513
195549
  message: `Entity of type ${d.type} with id "${d.id}" has an invalid value "${p}". The value must be a number between 100 and 599.`,
195514
195550
  severity: pe.Error,
@@ -195518,7 +195554,7 @@ function vLi(d, p) {
195518
195554
  i.push(n);
195519
195555
  }
195520
195556
  if (p > 599) {
195521
- const n = new xi({
195557
+ const n = new $i({
195522
195558
  id: d.id + "--status-code-must-be-between-100-and-599",
195523
195559
  message: `Entity of type ${d.type} with id "${d.id}" has an invalid value "${p}". The value must be a number between 100 and 599.`,
195524
195560
  severity: pe.Error,
@@ -195596,7 +195632,7 @@ class bLi extends zo {
195596
195632
  const $ = O.getDefaultValue();
195597
195633
  return ($ == null ? void 0 : $.value) || "";
195598
195634
  }).includes(v)) {
195599
- const w = new xi({
195635
+ const w = new $i({
195600
195636
  id: T.id + "--" + sa.MustBeUniqueAmongSameEntities,
195601
195637
  message: `Entity of type ${T.type} with id "${T.id}" has an invalid value "${v}". The value must be unique among all endpoint paths.`,
195602
195638
  severity: pe.Error,
@@ -195624,7 +195660,7 @@ var Ha = /* @__PURE__ */ ((d) => (d.UUIDMustBeString = "uuid-must-be-string", d.
195624
195660
  function UBi(d, p) {
195625
195661
  const i = [];
195626
195662
  if (typeof p != "string") {
195627
- const l = new xi({
195663
+ const l = new $i({
195628
195664
  id: d.id + "--uuid-must-be-string",
195629
195665
  message: `Entity of type ${d.type} with id "${d.id}" has an invalid value "${p}". The value must be text.`,
195630
195666
  severity: pe.Error,
@@ -195643,7 +195679,7 @@ function UBi(d, p) {
195643
195679
  override: p
195644
195680
  };
195645
195681
  if (!Yq(p)) {
195646
- const l = new xi({
195682
+ const l = new $i({
195647
195683
  id: d.id + "--uuid-must-be-valid-format",
195648
195684
  message: `Entity of type ${d.type} with id "${d.id}" has an invalid value "${p}". The value must be a valid UUID format. Eg: "123e4567-e89b-12d3-a456-426614174000".`,
195649
195685
  severity: pe.Error,
@@ -195742,7 +195778,7 @@ function p6(d) {
195742
195778
  }
195743
195779
  function c6(d) {
195744
195780
  const p = [
195745
- new Oi(BC, d)
195781
+ new Vi(BC, d)
195746
195782
  ];
195747
195783
  return p.forEach((i) => {
195748
195784
  i.initChildren(null), d.subscribeBuiltInInstance(i);
@@ -195750,38 +195786,38 @@ function c6(d) {
195750
195786
  }
195751
195787
  function f6(d) {
195752
195788
  const p = [
195753
- new Oi(oA, d),
195754
- new Oi(Wy, d),
195755
- new Oi(iA, d),
195756
- new Oi(
195789
+ new Vi(oA, d),
195790
+ new Vi(Wy, d),
195791
+ new Vi(iA, d),
195792
+ new Vi(
195757
195793
  pT,
195758
195794
  d
195759
195795
  ),
195760
- new Oi(
195796
+ new Vi(
195761
195797
  cT,
195762
195798
  d
195763
195799
  ),
195764
- new Oi(IC, d)
195800
+ new Vi(IC, d)
195765
195801
  ];
195766
195802
  p.forEach((n) => {
195767
195803
  n.initChildren(null), d.subscribeBuiltInInstance(n);
195768
195804
  }), d.loopDeclarations = p;
195769
195805
  const i = [
195770
- new Oi(OC, d),
195771
- new Oi(nA, d),
195772
- new Oi(
195806
+ new Vi(OC, d),
195807
+ new Vi(nA, d),
195808
+ new Vi(
195773
195809
  DC,
195774
195810
  d
195775
195811
  ),
195776
- new Oi(
195812
+ new Vi(
195777
195813
  ZB,
195778
195814
  d
195779
195815
  ),
195780
- new Oi(
195816
+ new Vi(
195781
195817
  zB,
195782
195818
  d
195783
195819
  ),
195784
- new Oi(RC, d)
195820
+ new Vi(RC, d)
195785
195821
  ];
195786
195822
  return i.forEach((n) => {
195787
195823
  n.initChildren(null), d.subscribeBuiltInInstance(n);
@@ -195797,13 +195833,13 @@ function y6(d) {
195797
195833
  }
195798
195834
  function h6(d) {
195799
195835
  const p = [
195800
- new Oi(vU, d),
195801
- new Oi(TU, d),
195802
- new Oi(bU, d),
195803
- new Oi(EU, d)
195836
+ new Vi(vU, d),
195837
+ new Vi(TU, d),
195838
+ new Vi(bU, d),
195839
+ new Vi(EU, d)
195804
195840
  ];
195805
195841
  return AU.forEach((i) => {
195806
- p.some((n) => n.id === i.id) || p.push(new Oi(i, d));
195842
+ p.some((n) => n.id === i.id) || p.push(new Vi(i, d));
195807
195843
  }), p.forEach((i) => {
195808
195844
  i.initChildren(null), d.subscribeBuiltInInstance(i);
195809
195845
  }), d.conditionDeclarations = p, p;
@@ -196408,7 +196444,7 @@ export {
196408
196444
  pGi as ALL_CONNECTION_DISABLED_REASONS,
196409
196445
  fGi as ALL_OTHER_DISABLED_REASONS,
196410
196446
  cGi as ALL_TESTING_DISABLED_REASONS,
196411
- Oi as ActionDescriptorState,
196447
+ Vi as ActionDescriptorState,
196412
196448
  kGi as ActionInputMapState,
196413
196449
  FGi as ActionOutputMapState,
196414
196450
  En as Area,
@@ -196523,7 +196559,7 @@ export {
196523
196559
  tXt as EXTERNAL_INTERGRATION_OPERATIONS,
196524
196560
  Lb as EfimeralValueStore,
196525
196561
  bLi as EndpointEntity,
196526
- xi as EntityError,
196562
+ $i as EntityError,
196527
196563
  pe as EntityErrorSeverity,
196528
196564
  De as EntityGenerationError,
196529
196565
  re as EntityGenerationErrorCode,
@@ -196841,7 +196877,7 @@ export {
196841
196877
  kR as PARENT_AUTO_CALCULATION_FROM_CALLER_EXPLANATION,
196842
196878
  skt as PASSWORD_OPERATIONS,
196843
196879
  rc as PASS_THROUGH_CALLABLE_ENTITIES_EXPLANATION,
196844
- Vi as PASS_THROUGH_CALLABLE_TYPES,
196880
+ Ni as PASS_THROUGH_CALLABLE_TYPES,
196845
196881
  um as PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS,
196846
196882
  KAi as PLACEHOLDER_VALUE_STORE_CLIENT,
196847
196883
  OR as PROPERTY_HEIGHT,
@@ -196854,7 +196890,7 @@ export {
196854
196890
  Aa as PrimitiveEntityState,
196855
196891
  le as PrimitiveTypes,
196856
196892
  x as ProjectState,
196857
- $i as ProjectStateEvents,
196893
+ _i as ProjectStateEvents,
196858
196894
  K2i as PropertyDependencyField,
196859
196895
  Pf as PropertyParentChildRelation,
196860
196896
  Ja as PropertyState,